1 2008-09-10 Joel Sherrill <joel.sherrill@oarcorp.com>
3 * gcc-interface/Makefile.in: Switch RTEMS to s-interr-hwint.adb.
4 * s-osinte-rtems.ads: Add shared hardware interrupt adapter
5 layer. RTEMS binds to OS provided adapter routines so there are
6 no modifications to s-osinte-rtems.adb.
8 2008-09-09 Arnaud Charlet <charlet@adacore.com>
9 Joel Sherrill <joel.sherrill@oarcorp.com>
11 * gcc-interface/Makefile.in: Switch VxWorks to s-interr-hwint.adb.
13 * s-interr-vxworks.adb: Renamed to s-interr-hwint.adb
15 * s-interr-hwint.adb: New file.
17 * s-osinte-vxworks.ads, s-osinte-vxworks.adb: Add new functions
18 needed by s-interr-hwint.adb.
20 * s-osinte-vxworks-kernel.adb: New file.
22 2008-09-05 Joel Sherrill <joel.sherrill@oarcorp.com>
24 * s-stchop-rtems.adb: Add file missed in early commit. Already
25 referenced in gcc-interface/Makefile.in.
27 2008-08-30 Thomas Quinot <quinot@adacore.com>
29 * gcc-interface/Make-lang.in: Allow s-oscons.{o,ali} to
30 be built even without a separate libada directory.
32 2008-08-22 Arnaud Charlet <charlet@adacore.com>
34 * lib-xref.ads: Fix typo in subprogram reference definition.
36 2008-08-22 Robert Dewar <dewar@adacore.com>
38 * s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-strops.adb: Minor code fix
43 * s-utf_32.adb (Get_Category): Fix obvious typo
45 * s-wwdcha.adb: Minor code reorganization
48 2008-08-22 Robert Dewar <dewar@adacore.com>
50 * checks.adb (Determine_Range): Deal with values that might be invalid
52 * opt.adb, opt.ads (Assume_No_Invalid_Values[_Config]): New
53 configuration switches.
55 * par-prag.adb: Dummy entry for pragma Assume_No_Invalid_Values
57 * sem_prag.adb: Implement pragma Assume_No_Default_Values
59 * snames.adb, snames.ads, snames.h:
60 Add entries for pragma Assume_No_Invalid_Values
62 * switch-c.adb: Add processing for -gnatB switch
64 * usage.adb: Add entry for flag -gnatB (no bad invalid values)
66 2008-08-22 Javier Miranda <miranda@adacore.com>
68 * exp_ch3.adb (Build_Init_Statements): Transfer to the body of the
69 init procedure all the expanded code associated with the spec of
70 task types and protected types.
72 2008-08-22 Gary Dismukes <dismukes@adacore.com>
74 * exp_aggr.adb (Static_Array_Aggregate): Call Analyze_And_Resolve on the
75 component expression copies rather than directly setting Etype and
78 2008-08-22 Gary Dismukes <dismukes@adacore.com>
80 * sem_util.adb (Has_Preelaborable_Initialization): Revise checking of
81 private types to allow for types derived from a private type with
82 preelaborable initialization, but return False for a private extension
83 (unless it has the pragma).
85 2008-08-22 Robert Dewar <dewar@adacore.com>
87 * opt.ads: Minor code reorganization (put entries in alpha order)
89 2008-08-22 Pascal Obry <obry@adacore.com>
91 * initialize.c, adaint.c: Use Lock_Task and Unlock_Task for non-blocking
94 2008-08-22 Geert Bosch <bosch@adacore.com>
96 * gcc-interface/trans.c: Define FP_ARITH_MAY_WIDEN
97 (convert_with_check): Only use longest_float_type if FP_ARITH_MAY_WIDEN is 0
99 2008-08-22 Doug Rupp <rupp@adacore.com>
101 * bindgen.adb [VMS] (Gen_Adainit_Ada, Gen_Adainit_C): Import and call
105 (__gnat_set_features): New function.
106 (__gnat_features_set): New tracking variable.
107 (__gl_no_malloc_64): New feature global variable
109 2008-08-22 Ed Schonberg <schonberg@adacore.com>
111 * sem_ch8.adb (Use_One_Type): Do not emit warning message about redundant
112 use_type_clause in an instance.
114 2008-08-22 Bob Duff <duff@adacore.com>
116 * exp_ch6.ads: Remove pragma Precondition, since it breaks some builds.
118 2008-08-22 Robert Dewar <dewar@adacore.com>
120 * exp_ch6.adb: Minor reformatting
122 * exp_ch7.adb: Minor reformatting
124 * exp_ch7.ads: Put routines in proper alpha order
126 * exp_dist.adb: Minor reformatting
128 2008-08-22 Vincent Celier <celier@adacore.com>
130 * prj.ads: Minor comment update
132 2008-08-22 Robert Dewar <dewar@adacore.com>
134 * sem_ch5.adb (One_Bound): Fix latent bug involving secondary stack
136 2008-08-22 Ed Schonberg <schonberg@adacore.com>
139 (Base_Init_Proc): For a protected subtype, use the base type of the
140 corresponding record to locate the propoer initialization procedure.
142 2008-08-22 Robert Dewar <dewar@adacore.com>
145 (In_Subrange_Of): New calling sequence
146 (Determine_Range): Prepare for new processing using base type
149 (Compile_Time_Compare): Use new calling sequence
152 (Compile_Time_Compare): Use new calling sequence
155 (Compile_Time_Compare): New calling sequence allows dealing with
157 (In_Subrange_Of): Ditto
160 (Compile_Time_Compare): New calling sequence allows dealing with
162 (In_Subrange_Of): Ditto
164 2008-08-22 Pascal Obry <obry@adacore.com>
166 * adaint.c: Fix possible race condition on win32_wait().
168 2008-08-22 Bob Duff <duff@adacore.com>
170 * exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb, freeze.adb,
171 exp_ch4.adb, exp_ch6.ads, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
172 exp_intr.adb, exp_ch3.adb: Rename:
173 Exp_Ch7.Controlled_Type => Needs_Finalization
174 Exp_Ch7.CW_Or_Controlled_Type => CW_Or_Has_Controlled_Part
175 Exp_Ch5.Expand_N_Extended_Return_Statement.Controlled_Type =>
177 (Has_Some_Controlled_Component): Fix bug in array case.
179 2008-08-22 Robert Dewar <dewar@adacore.com>
181 * sem_ch8.adb: Minor reformatting
183 2008-08-22 Kevin Pouget <pouget@adacore.com>
185 * s-shasto.ads, s-shasto.adb: Move Shared_Var_ROpen, Shared_Var_WOpen and
186 Shared_Var_Close procedure specifications from package spec to package body.
188 * rtsfind.ads: Remove RE_Shared_Var_Close, RE_Shared_Var_ROpen,
189 RE_Shared_Var_WOpen entries.
191 * exp_dist.adb: Update RE_Any_Content_Ptr to RE_Any_Container_Ptr in
192 Build_To_Any_Call, Build_TypeCode_Call and Build_From_Any_Call procedures.
194 2008-08-22 Eric Botcazou <ebotcazou@adacore.com>
196 * init.c: adjust EH support code on Alpha/Tru64 as well.
198 * raise-gcc.c: Add back a couple of comments.
200 2008-08-22 Ed Schonberg <schonberg@adacore.com>
202 * exp_ch5.adb (Expand_Simple_Function_Return): If secondary stack is
203 involved and the return type is class-wide, use the type of the expression
204 for the generated access type. Suppress useless discriminant checks on the
207 2008-08-22 Bob Duff <duff@adacore.com>
209 * exp_ch7.adb: Minor comment fix
211 * exp_ch6.ads: Minor comment fix
213 2008-08-22 Thomas Quinot <quinot@adacore.com>
215 * sem_ch8.adb: Minor reformatting
216 Minor code reorganization (introduce subprogram to factor duplicated
219 2008-08-22 Sergey Rybin <rybin@adacore.com>
221 * gnat_ugn.texi: Change the description of gnatcheck default rule
224 2008-08-22 Eric Botcazou <ebotcazou@adacore.com>
226 * init.c (__gnat_adjust_context_for_raise): Delete for AIX, HP-UX,
227 Solaris, FreeBSD, VxWorks and PowerPC/Linux. For x86{-64}/Linux,
228 do not adjust the PC anymore.
229 (__gnat_error_handler): Do not call __gnat_adjust_context_for_raise
230 on AIX, HP-UX, Solaris, FreeBSD and VxWorks.
232 * raise-gcc.c (get_call_site_action_for): Use _Unwind_GetIPInfo
233 instead of _Unwind_GetIP.
235 2008-08-22 Gary Dismukes <dismukes@adacore.com>
237 * exp_aggr.adb (Static_Array_Aggregate): When a static array aggregate
238 with a range is transformed into a positional aggregate, any copied
239 component literals should be marked Is_Static_Expression.
241 * sem_eval.adb (Compile_Time_Known_Value): Don't treat null literals as
242 not being known at at compile time when Configurable_Run_Time_Mode is
245 2008-08-22 Robert Dewar <dewar@adacore.com>
248 (Expand_N_Attribute_Reference): No validity checking on OUT parameter of
249 Read or Input attribute.
251 2008-08-22 Ed Schonberg <schonberg@adacore.com>
253 * sem_ch8.adb (Use_One_Type): when checking which of two use_type
254 clauses in related units is redundant, if one of the units is a package
255 instantiation, use its instance_spec to determine which unit is the
256 ancestor of the other.
258 2008-08-22 Javier Miranda <miranda@adacore.com>
260 * exp_attr.adb (Expand_N_Attribute_Reference): In case of access
261 attributes add missing support to handle designated types that come
262 from the limited view.
264 * exp_disp.adb (Expand_Interface_Conversion): Remove wrong assertion.
266 2008-08-22 Sergey Rybin <rybin@adacore.com>
268 * vms_data.ads: Add entry for new gnatcheck -mNNN option
270 * gnat_ugn.texi: Add description for gnatcheck option '-m'
272 2008-08-22 Sergey Rybin <rybin@adacore.com>
274 * gnat_ugn.texi: Update the gnatcheck subsection for metric rules
275 acoording to the latest changes in the metric rule interface
277 2008-08-22 Vincent Celier <celier@adacore.com>
279 * make.adb (Check.File_Not_A_Source_Of): New Boolean function
280 (Check): Check if the file names registered in the ALI file for the
281 spec, the body and each of the subunits are the ones expected.
283 2008-08-22 Robert Dewar <dewar@adacore.com>
285 * g-catiio.adb: Code cleanup.
287 2008-08-20 Vincent Celier <celier@adacore.com>
289 * make.adb (Gnatmake): Remove extra space in version line
292 (Scan_ALI): Use Name_Find, not Name_Enter to get the name of a subunit,
293 as the name may already have been entered in the table by the Project
296 2008-08-20 Jose Ruiz <ruiz@adacore.com>
298 * errno.c (__get_errno, __set_errno for MaRTE): Transform then into
299 weak symbols so we use the version provided by MaRTE when available.
301 2008-08-20 Emmanuel Briot <briot@adacore.com>
303 * g-catiio.ads, g-catiio.adb:
304 (Value): Avoid an unnecessary system call to Clock in most cases.
305 This call is only needed when only the time is provided in the string,
306 and ignored in all other cases. This is more efficient.
308 2008-08-20 Eric Botcazou <ebotcazou@adacore.com>
310 * raise-gcc.c: Fix formatting nits.
312 2008-08-20 Robert Dewar <dewar@adacore.com>
315 (Adjust_Record_For_Reverse_Bit_Order): Do not access First_Bit for
316 non-existing component clause.
318 * exp_ch5.adb: Minor reformatting
320 * g-comlin.adb: Minor reformatting
322 * make.adb: Minor reformatting
324 * prj-proc.adb: Minor reformatting
326 * stylesw.ads: Minor reformatting
328 2008-08-20 Vincent Celier <celier@adacore.com>
330 * make.adb (Gnatmake_Switch_Found): New Boolean global variable
331 (Switch_May_Be_Passed_To_The_Compiler): New Boolean global variable
332 (Add_Switches): New Boolean parameter Unknown_Switches_To_The_Compiler
333 defaulted to True. Fail when Unknown_Switches_To_The_Compiler is False
334 and a switch is not recognized by gnatmake.
335 (Gnatmake): Implement new scheme for gnatmake switches and global
336 compilation switches.
337 (Switches_Of): Try successively Switches (<file name>),
338 Switches ("Ada"), Switches (others) and Default_Switches ("Ada").
340 2008-08-20 Ed Schonberg <schonberg@adacore.com>
342 * styleg-c.ads, styleg-c.adb (Missing_Overriding): new procedure to
343 implement style check that overriding operations are explicitly marked
346 * style.ads (Missing_Overriding): new procedure that provides interface
349 * stylesw.ads, stylesw.adb: New style switch -gnatyO, to enable check
350 that the declaration or body of overriding operations carries an
351 explicit overriding indicator.
354 (Analyze_Subprogram_Renaming): if operation is overriding, check whether
355 explicit indicator should be present.
357 * sem_ch6.adb (Verify_Overriding_Indicator,
358 Check_Overriding_Indicator): If operation is overriding, check whether
359 declaration and/or body of subprogram should be present
361 2008-08-20 Vincent Celier <celier@adacore.com>
363 * prj-nmsc.adb (Check_Naming_Schemes): Accept source file names for
364 gprbuild when casing is MixedCase, whatever the casing of the letters
367 2008-08-20 Gary Dismukes <dismukes@adacore.com>
369 * exp_ch3.adb (Build_Array_Init_Proc): Clarify comment related to
370 creating dummy init proc.
371 (Requires_Init_Proc): Return False in the case No_Default_Initialization
372 is in force and the type does not have associated default
373 initialization. Move test of Is_Public (with tests of restrictions
374 No_Initialize_Scalars and No_Default_Initialization) to end, past tests
375 for default initialization.
377 2008-08-20 Jerome Lambourg <lambourg@adacore.com>
379 * g-comlin.adb (For_Each_Simple_Switch): Take care of switches not part
380 of any alias or prefix but having attached parameters (as \"-O2\").
382 2008-08-20 Robert Dewar <dewar@adacore.com>
384 * s-fileio.adb: Minor reformatting
386 2008-08-20 Thomas Quinot <quinot@adacore.com>
388 * exp_strm.adb (Build_Elementary_Input_Call,
389 Build_Elementary_Write_Call): Fix incorrect condition in circuitry that
390 selects the stream attribute routines for long float types.
392 2008-08-20 Vincent Celier <celier@adacore.com>
394 * prj-proc.adb (Process_Declarative_Items): Add Location for Array_Data
396 * prj.ads (Array_Data): Add a component Location
398 2008-08-20 Ed Schonberg <schonberg@adacore.com>
401 (Analyze_Pragma, case Obsolescent): Add entity information on the pragma
402 argument for ASIS and navigation use.
404 2008-08-20 Ed Schonberg <schonberg@adacore.com>
406 * einfo.ads: Add comment.
408 2008-08-20 Bob Duff <duff@adacore.com>
410 * sem_eval.ads: Minor comment fix.
412 2008-08-20 Bob Duff <duff@adacore.com>
414 * exp_ch4.adb (Expand_N_And_Then, Expand_N_Or_Else): Improve constant
415 folding. We were folding things like "False and then ...", but not
416 "X and then ..." where X is a constant whose value is known at compile
419 2008-08-20 Hristian Kirtchev <kirtchev@adacore.com>
421 * exp_ch5.adb (Controlled_Type): New routine.
422 (Expand_N_Extended_Return_Statement): When generating a move of the
423 final list in extended return statements, check the type of the
424 function and in the case of double expanded return statements, the type
425 of the returned object.
426 (Expand_Simple_Function_Return): Perform an interface conversion when
427 the type of the returned object is an interface and the context is an
428 extended return statement.
430 2008-08-20 Ed Schonberg <schonberg@adacore.com>
432 * sem_util.adb (Set_Debug_Info_Needed): If the entity is a private type
433 and the full view is visible, set flag on full view as well.
435 2008-08-20 Thomas Quinot <quinot@adacore.com>
437 * g-comlin.adb: Minor reformatting
438 Minor code reorganization.
440 * freeze.adb: Minor reformatting
442 2008-08-20 Vincent Celier <celier@adacore.com>
444 * prj-nmsc.adb (Check_File): An excluded Ada source file may be a
445 source of another project.
447 2008-08-20 Pascal Obry <obry@adacore.com>
449 * s-os_lib.ads: Minor reformatting.
451 2008-08-20 Arnaud Charlet <charlet@adacore.com>
453 * gnatvsn.ads: Minor reformatting.
455 2008-08-20 Arnaud Charlet <charlet@adacore.com>
457 * a-crbtgk.adb, repinfo.adb, g-traceb.ads, repinfo.ads,
458 system-linux-s390x.ads, s-fatflt.ads, s-parame-ae653.ads, g-spipat.adb,
459 g-spipat.ads, g-tasloc.adb, g-debpoo.adb, g-except.ads, g-debpoo.ads,
460 mdll-utl.adb, g-string.adb, g-soliop-solaris.ads, par-sync.adb,
461 exp_ch6.ads, a-cihama.ads, g-curexc.ads, system-linux-sh4.ads,
462 g-utf_32.adb, g-hesorg.adb, s-proinf-irix-athread.ads, s-parint.adb,
463 s-parint.ads, exp_ch7.ads, system-linux-alpha.ads, g-dirope.adb,
464 sinfo-cn.adb, par-labl.adb, a-ciorse.adb, g-calend.adb,
465 s-parame-vms-alpha.ads, nlists.h, exp_imgv.adb, exp_fixd.ads,
466 g-calend.ads, gnatcmd.ads, g-table.adb, s-memory-mingw.adb,
467 g-alveop.ads, g-memdum.ads, g-altive.ads, initialize.c, g-regpat.adb,
468 g-busorg.ads, g-regpat.ads, g-encstr.ads, g-regexp.adb, g-regexp.ads,
469 live.ads, g-dyntab.adb, prj-nmsc.ads, par-ch12.adb, 9drpc.adb,
470 g-alvevi.ads, s-memory.adb, math_lib.adb, s-parame.ads, s-memory.ads,
471 s-regexp.adb, a-exexda.adb, i-cstrea-vms.adb, a-exexpr.adb,
472 g-soliop-mingw.ads, s-imgrea.adb, namet.adb, system-vms.ads,
473 s-inmaop-dummy.adb, s-finroo.ads, a-ngcefu.adb, s-hibaen.ads,
474 g-soliop.ads, s-auxdec.adb, g-locfil.ads, gnatxref.adb, memroot.adb,
475 osint-b.ads, memroot.ads, s-parame-hpux.ads, errutil.adb,
476 system-linux-s390.ads, par-util.adb, osint-c.ads, exp_pakd.ads,
477 i-pacdec.ads, par-endh.adb, mlib-tgt.ads, prj-strt.ads,
478 s-osprim-vms.adb, s-proinf.ads, output.ads, g-moreex.ads,
479 a-finali.ads, s-fatlfl.ads, namet.h, mdll.ads, g-dynhta.ads,
480 s-imgenu.ads, par-tchk.adb, g-excact.ads, memtrack.adb, s-fatgen.adb,
481 a-exexpr-gcc.adb, g-arrspl.adb, par-ch4.adb, g-cgideb.adb, freeze.ads,
482 g-altcon.adb, s-fatllf.ads, gnatfind.adb, s-osinte-lynxos-3.adb,
483 a-exextr.adb, g-htable.ads, a-calfor.adb, s-imgcha.adb, argv.c,
484 a-chahan.ads, g-hesora.adb, system-vms_64.ads, par-ch5.adb, g-md5.adb,
485 lib-xref.ads, g-md5.ads, g-casuti.ads, s-fatsfl.ads, exp_dbug.ads,
486 s-htable.ads, a-ngcoar.adb, s-arit64.ads, a-ngelfu.adb, a-filico.ads,
487 par-ch6.adb, s-inmaop.ads, s-parame-vxworks.ads, s-casuti.ads,
488 a-numaux-darwin.adb, a-cohama.ads, system-linux-sparc.ads, g-os_lib.adb,
489 system-vms-ia64.ads, s-parame-vms-restrict.ads, a-clrefi.ads,
490 s-parame-vms-ia64.ads, a-strfix.adb, a-coorse.adb, a-comlin.ads,
491 a-chtgke.adb, s-imgint.adb, g-expect.ads, exp_ch4.ads, s-finimp.adb,
492 mingw32.h, g-heasor.adb, g-alleve.adb, a-ngrear.adb, s-mastop-irix.adb,
493 s-poosiz.adb, link.c: Fix copyright notice.
495 2008-08-20 Arnaud Charlet <charlet@adacore.com>
497 * g-comlin.ads: Update comments.
499 2008-08-20 Ed Schonberg <schonberg@adacore.com>
501 * sem_ch8.adb (Analyze_Subprogram_Renaming): Inherit Is_Imported flag.
503 2008-08-20 Gary Dismukes <dismukes@adacore.com>
506 (Expand_Exception_Handlers): Call Make_Exception_Handler instead of
507 Make_Implicit_Exception_Handler when rewriting an exception handler with
508 a choice parameter, and pass the handler's Sloc instead of that of the
509 handled sequence of statements. Make_Implicit_Exception_Handler sets the
510 Sloc to No_Location (unless debugging generated code), which we don't
511 want for the case of a user handler.
513 2008-08-20 Robert Dewar <dewar@adacore.com>
515 * freeze.adb (Freeze_Record_Type): Improve msg for non-contiguous field
518 (Adjust_Record_For_Reverse_Bit_Order): Messages about layout are
519 now labeled as info msgs, not warnings.
521 * tbuild.ads: Clarify documentation of Make_Implicit_Exception_Handler
523 * usage.adb: Minor change to avoid overlong line for -gnatwz/Z
525 * a-textio.adb: Remove redundant test.
527 * a-witeio.adb: Minor code reorganization
528 Remove redundant test found working on another issue
530 * a-ztexio.adb: Minor code reorganization
531 Remove redundant test found working on another issue
533 2008-08-20 Thomas Quinot <quinot@adacore.com>
535 * s-fileio.adb (Open) Use C helper function to determine whether a
536 given errno value corresponds to a "file not found" error.
538 * sysdep.c (__gnat_is_file_not_found_error): New C helper function.
540 2008-08-20 Jose Ruiz <ruiz@adacore.com>
542 * errno.c (__get_errno for MaRTE): Use the MaRTE function pthread_errno
543 to get access to the per-task errno variable.
544 (__set_errno for MaRTE): Do not redefine this function here since it is
545 already defined in MaRTE.
547 2008-08-20 Tristan Gingold <gingold@adacore.com>
549 * gnat_ugn.texi: Gcov is not supported on static library on AIX.
551 2008-08-20 Robert Dewar <dewar@adacore.com>
553 * freeze.adb: Minor reformatting
555 * g-comlin.adb: Minor reformatting
557 * g-socket.adb: Minor reformatting
559 * g-socthi-mingw.adb: Minor reformatting
561 * g-stheme.adb: Minor reformatting
563 2008-08-20 Ed Schonberg <schonberg@adacore.com>
565 * sem_aggr.adb, sem_type.adb, exp_ch9.ads, einfo.ads,
566 exp_ch6.adb, exp_aggr.adb (Valid_Ancestor): Resolve
567 confusion between partial and full views of an ancestor of the context
568 type when the parent is a private extension declared in a parent unit,
569 and full views are available for the context type.
571 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
572 Robert Dewar <dewar@adacore.com>
575 * bindgen.adb (Gen_Output_File_Ada): Zero-terminate the
577 Move comment in the right place.
578 * g-comver.adb (Version): Look for a zero-termination in
579 addition to a closing parenthesis.
581 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
583 * exp_ch13.adb, exp_disp.adb, sem_cat.adb, sem_ch10.adb,
584 * sem_ch12.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
585 * sem_prag.adb, sem_util.adb, sem_warn.adb: Use
586 Is_Package_Or_Generic_Package instead of hand-crafted tests.
588 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
591 * sem_ch6.adb (Check_Private_Overriding): Check for generic packages
594 2008-08-17 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
596 * adaint.c (_gnat_set_close_on_exec) [_WIN32]: Implement.
598 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
600 * gcc-interface/trans.c (call_to_gnu): Use the Sloc of the call
601 for back-copy statements in lieu of that of the actual.
603 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
606 * gcc-interface/decl.c (gnat_to_gnu_entity): Use DECL_SIZE_UNIT in the
607 setjmp test consistently. Adjust for new behavior of flag_stack_check.
608 * gcc-interface/utils2.c (build_call_alloc_dealloc): Remove redundant
609 test of flag_stack_check. Adjust for new behavior of flag_stack_check.
611 2008-08-13 Samuel Tardieu <sam@rfc1149.net>
614 * sem_util.ads, sem_util.adb (Is_Protected_Self_Reference): New.
615 * sem_attr.adb (Check_Type): The current instance of a protected
616 object is not a type name.
617 (Analyze_Access_Attribute): Accept instances of protected objects.
618 (Analyze_Attribute, Attribute_Address clause): Ditto.
619 * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite
620 the prefix as being the current instance if needed.
622 2008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
624 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) [WINDOWS]:
625 Remove duplicate s-win32.o. Add s-winext.o.
627 2008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
629 * g-stsifd-sockets.adb (Create): Replace Constants.SOCK_STREAM
630 with SOSC.SOCK__STREAM.
631 * g-socthi-mingw.adb (C_Select) Replace Constants.MSG_OOB with
634 2008-08-11 Joel Sherrill <joel.sherrill@oarcorp.com>
636 * s-oscons-tmplt.c: RTEMS defines AF_INET6 but does support it.
637 * gsocket.h, socket.c: Update to support RTEMS.
638 * gcc-interface/Make-lang.in: Include CFLAGS_FOR_TARGET when cross.
640 2008-08-10 Samuel Tardieu <sam@rfc1149.net>
641 Robert Dewar <dewar@adacore.com>
643 * exp_ch4.adb (Expand_N_Op_Expon): Force evaluation of
644 left argument even when right argument is 0.
645 (Expand_N_Op_Mod): Ditto when right argument is 1.
646 (Expand_N_Op_Multiply): Ditto when any argument is 0.
647 (Expand_N_Op_Rem): Ditto when right argument is 1.
649 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
651 * gcc-interface/misc.c (gnat_handle_option): Replace set_Wunused
654 2008-08-08 Ed Schonberg <schonberg@adacore.com>
656 * freeze.adb (Generate_Prim_Op_References): New procedure, abstracted
657 from Freeze_Entity. Used to generate cross-reference information for
658 types declared in generic packages.
660 2008-08-08 Thomas Quinot <quinot@adacore.com>
662 * gcc-interface/Makefile.in: Reintroduce g-soccon.ads as a
665 2008-08-08 Thomas Quinot <quinot@adacore.com>
668 On Windows, include <errno.h> and redefine only selected errno values
669 from their <winsock2.h> definitions.
671 * s-osinte-freebsd.ads: Minor reformatting
673 * s-osinte-hpux.ads, s-osinte-irix.ads: Minor reformatting
675 * g-soccon.ads: New file.
677 * g-stheme.adb, g-socthi-vms.adb, g-socthi-vxworks.adb,
678 g-socthi-mingw.adb, g-sttsne-vxworks.adb, g-socthi.adb,
679 g-stsifd-sockets.adb, g-socket.adb, g-socket.ads,
680 g-sothco.adb, g-sothco.ads: Add back GNAT.Sockets.Constants as a child
681 unit, to allow building software that depends on this internal unit
682 with both older and newer compilers.
684 2008-08-08 Robert Dewar <dewar@adacore.com>
686 * s-strxdr.adb: Minor reformatting
688 2008-08-08 Bob Duff <duff@adacore.com>
690 * gnat_ugn.texi: The "Run-Time Checks" section said "arithmetic overflow
691 checking for integer operations (including division by zero)", which
692 is wrong -- divide by zero is not part of overflow checking.
693 Also added misc clarification about what check-suppression means.
695 * gnat_rm.texi: Clarify the meaning of pragma Suppress.
697 2008-08-08 Jerome Lambourg <lambourg@adacore.com>
699 * g-comlin.adb (Add_Switch): Handle addition of switches at the
700 begining of the command line.
701 (Append, Add): Renaming of Append to Add as this now allows addition
702 at the begining of the list.
704 * g-comlin.ads (Add_Switch): Handle addition of switches at the
705 begining of the command line.
707 2008-08-08 Thomas Quinot <quinot@adacore.com>
710 (Name): Document application scope (only legacy PC serial ports on
713 2008-08-08 Thomas Quinot <quinot@adacore.com>
715 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Revert
716 previous change, not needed after all.
718 2008-08-08 Ed Schonberg <schonberg@adacore.com>
720 * exp_ch4.adb (Expand_Allocator_Expression): add check if null
721 exclusion indicator is present
723 2008-08-08 Robert Dewar <dewar@adacore.com>
725 * g-comlin.adb: Minor code reorganization
728 * g-comlin.ads: Minor reformatting
730 * s-fileio.adb: Minor reformatting
732 * sem_attr.adb: Minor code reorganization (use Nkind_In)
735 2008-08-06 Samuel Tardieu <sam@rfc1149.net>
737 * gcc-interface/Make-lang.in: Use GCC_FOR_TARGET when dealing
738 with s-oscons-tmplt.i.
740 2008-08-06 Samuel Tardieu <sam@rfc1149.net>
742 * gcc-interface/Make-lang.in (OSCONS_CPPFLAGS): Remove.
744 2008-08-06 Ed Schonberg <schonberg@adacore.com>
746 * sem_ch3.adb (Analyze_Component_Declaration): Protect against misuse
749 * sem_ch8.adb (Analyze_Object_Renaming): Diagnose properly a renaming
750 of a formal parameter of an incomplete type. Improve error message for
751 other improper uses of incomplete types.
753 2008-08-06 Robert Dewar <dewar@adacore.com>
755 * gnat_ugn.texi: Clarify -gnato documentation
757 2008-08-06 Thomas Quinot <quinot@adacore.com>
759 * gcc-interface/Makefile.in,
760 g-socthi-vxworks.adb, g-socthi-mingw.adb, g-sttsne-vxworks.adb,
761 g-socthi.adb, g-socket.adb, g-socket.ads, g-sothco.ads,
762 g-soccon-linux-x86.ads, g-soccon-vxworks.ads, g-soccon-mingw.ads,
763 g-soccon-hpux-ia64.ads, g-soccon-irix.ads, g-soccon-linux-64.ads,
764 g-soccon-aix.ads, g-soccon-solaris.ads, g-soccon-lynxos.ads,
765 g-soccon-vms.ads, g-soccon.ads, g-soccon-freebsd.ads,
766 g-soccon-linux-ppc.ads, g-soccon-tru64.ads, g-soccon-hpux.ads,
767 g-soccon-solaris-64.ads, gen-oscons.c, g-soccon-darwin.ads,
768 g-soccon-mingw-64.ads, g-soccon-linux-mips.ads, g-soccon-rtems.ads:
769 Remove GNAT.Sockets.Constants. This internal package is replaced by
772 2008-08-06 Thomas Quinot <quinot@adacore.com>
774 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in:
775 Remove obsolete targets referencing gen-soccon
776 When generating s-oscons.ads, use a file name that includes the
777 THREAD_KIND, to ensure that the (potentially different) version from a
778 previous build with a different threads flavour does not get reused.
780 2008-08-06 Thomas Quinot <quinot@adacore.com>
782 * sem_res.adb: Minor reformatting
784 * s-fileio.adb (Open): When file open operation fails, raise Name_Error
785 only when the operating system reports a non-existing file or directory
786 (ENOENT), otherwise raise Name_Error.
788 * exp_ch11.adb: Minor reformatting
790 2008-08-06 Ed Schonberg <schonberg@adacore.com>
792 * sem_ch3.adb (Access_Subprogram_Declaration): If the return type is
793 incomplete, add the access_to_subprogram type to the list of private
794 dependents only if the incomplete type will be completed in the current
796 (Build_Discriminant_Constraints): If the type of the discriminant is
797 access_to_variable, reject a constraint that is access_to_constant.
799 2008-08-06 Thomas Quinot <quinot@adacore.com>
801 * g-socket-dummy.adb, g-socket-dummy.ads, g-sothco-dummy.adb,
802 g-sothco-dummy.ads, g-socthi-dummy.adb, g-socthi-dummy.ads,
803 g-sttsne-dummy.ads: New files.
805 * gcc-interface/Makefile.in, Makefile.rtl: Use placeholder sources
806 with pragma Unimplemented_Unit for sockets packages on Nucleus.
808 2008-08-06 Pascal Obry <obry@adacore.com>
810 * adaint.c: Another fix for ACL support on Windows.
812 2008-08-06 Javier Miranda <miranda@adacore.com>
814 * exp_disp (Expand_Interface_Actuals): Adds missing support for
815 expansion of calls to subprograms using selected components.
817 2008-08-06 Ed Schonberg <schonberg@adacore.com>
819 * sem_res.adb (Resolve_Call): Use base type to determine whether a
820 dereference is needed because a subtype of an access_to_subprogram is
821 simply an access-subtype
823 2008-08-06 Jerome Lambourg <lambourg@adacore.com>
825 * g-comlin.adb (Set_Command_Line): Now that aliases can contain
826 parameters, always specify the expected separator.
828 2008-08-06 Thomas Quinot <quinot@adacore.com>
830 * xnmake.adb: Use new XUtil package for platform independent text
833 2008-08-06 Vincent Celier <celier@adacore.com>
835 * gnat_ugn.texi: Document compiler switch -gnateG
837 2008-08-06 Quentin Ochem <ochem@adacore.com>
839 * s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark
840 in the case of an empty pattern size.
841 (Compute_Result): Do not do any computation in the case of an empty
843 (Report_Result): Fixed computation of the overflow guard.
845 2008-08-06 Ed Schonberg <schonberg@adacore.com>
847 * g-awk.adb (Finalize): Do not use directly objects of the type in the
848 finalization routine to prevent elaboration order anomalies in new
851 2008-08-06 Ed Schonberg <schonberg@adacore.com>
853 * sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete
854 declaration for the same type.
856 2008-08-06 Thomas Quinot <quinot@adacore.com>
858 * sem.adb: Minor rewording (comment)
860 2008-08-06 Jerome Lambourg <lambourg@adacore.com>
862 * g-comlin.adb (Define_Switch, Get_Switches): New.
863 (Can_Have_Parameter, Require_Parameter, Actual_Switch): New, used when
865 (For_Each_Simple_Switch): Allow more control over parameters handling.
866 This generic method now allows ungrouping of switches with parameters
867 and switches with more than one letter after the prefix.
868 (Set_Command_Line): Take care of switches that are prefixed with a
869 switch handling parameters without delimiter (-gnatya and -gnaty3 for
871 (Add_Switch, Remove_Switch): Handle parameters possibly present inside
872 a group, as in gnaty3aM80 (3 and 80 are parameters). Report status of
874 (Start, Alias_Switches, Group_Switches): Take care of parameters
875 possibly present inside a group.
877 * g-comlin.ads (Define_Switch): New method used to define a list of
878 expected switches, that are necessary for correctly ungrouping switches
879 with more that one character after the prefix.
880 (Get_Switches): Method that builds a getopt string from the list of
881 switches as set previously by Define_Switch.
882 (Add_Switch, Remove_Switch): New versions of the methods, reporting the
883 status of the operation. Also allow the removal of switches with
885 (Command_Line_Configuration_Record): Maintain a list of expected
888 2008-08-06 Doug Rupp <rupp@adacore.com>
890 * gcc-interface/decl.c (gnat_to_gnu_param): Force 32bit descriptor if
891 TARGET_MALLOC64 clear.
893 * gcc-interface/utils2.c (build_call_alloc_dealloc): Force 32bit malloc
894 if TARGET_MALLOC64 clear.
896 * gcc-interface/gigi.h (TARGET_ABI_OPEN_VMS): Move here from utils2.c
897 (TARGET_MALLC64): New macro. Default to clear.
899 2008-08-06 Doug Rupp <rupp@adacore.com>
901 * gcc-interface/utils2.c (snames.h) Include
902 (TARGET_ABI_OPEN_VMS): Initialize.
903 (build_call_alloc_dealloc); [TARGET_ABI_OPEN_VMS] Allocate on 32bit heap
906 2008-08-06 Ed Schonberg <schonberg@adacore.com>
908 * sem_ch3.adb (Process_Discriminants): diagnose redundant or improper
909 null exclusion in a discriminant declaration
911 * sem_ch8.adb (Analyze_Object_Renaming): diagnose null exclusion
912 indicators when type is not an access type.
914 * sem_ch12.adb (Formal_Object_Declaration): diagnose null exclusion
915 indicators when type is not an access type.
917 2008-08-06 Javier Miranda <miranda@adacore.com>
919 * exp_disp (Expand_Interface_Conversion): Freeze the entity associated
920 with the target interface before expanding the code of the interface
923 2008-08-05 Ed Schonberg <schonberg@adacore.com>
926 (Freeze_Entity): A deferred constant does not violate the restriction
927 No_Default_Initialization,
929 * sem_ch3.adb (Process_Subtype): An allocator is a valid construct that
930 can carry a null exclusion indicator, and on which an error may be
931 posted if the indicator is redundant.
933 * sem_ch8.adb (Analyze_Object_Renaming): Verify that a null exclusion
934 does not apply to a subtype mark that already excludes null.
936 * sem_ch12.adb (Formal_Object_Declaration): Verify that a null
937 exclusion does not apply to a subtype mark that already excludes null.
939 2008-08-05 Thomas Quinot <quinot@adacore.com>
941 * Makefile.rtl: Compile s-oscons.ads as part of the runtime library.
943 2008-08-05 Doug Rupp <rupp@adacore.com>
945 * vms_data.ads: Translation for /POINTER_SIZE qualifier.
947 2008-08-05 Thomas Quinot <quinot@adacore.com>
949 * gsocket.h: Make this file includable in a Nucleus environment, which
950 does not support sockets.
952 * socket.c: Remove Nucleus-specific hack.
954 2008-08-05 Pascal Obry <obry@adacore.com>
956 * adaint.c: Remove support for readable attribute on vxworks and nucleus
958 2008-08-05 Ed Schonberg <schonberg@adacore.com>
961 (Analyze_Attribute, case 'Result): handle properly the case where some
962 operand of the expression in a post-condition generates a transient
965 * sem_ch5.adb (Analyze_Assignment_Statement): Apply conversion to
966 right-hand side when it is an anonymous access_to_subprogram, to force
967 static accessibility check when needed.
969 2008-08-05 Sergey Rybin <rybin@adacore.com>
971 * gnat_ugn.texi: Changing the description of the gnatcheck metrics
972 rule according to the change in the rule option.
973 Add documentation for -gnatw.b/-gnatw.B
975 2008-08-05 Robert Dewar <dewar@adacore.com>
977 * ug_words: Add entries for -gnatw.b/-gnatw.B
979 * vms_data.ads: Add entries for -gnatw.b/-gnatw.B
981 2008-08-05 Vincent Celier <celier@adacore.com>
983 * a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put
986 * a-ztdeio.adb: Ditto.
988 2008-08-05 Pascal Obry <obry@adacore.com>
990 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Add support for the
993 2008-08-05 Vincent Celier <celier@adacore.com>
996 (Wide_String_To_String): Returns a String with the same 'First as its
998 (Wide_Wide_String_To_String): Ditto
1001 (Wide_String_To_String): Document that the lowest index of the returned
1002 String is equal to S'First.
1004 2008-08-05 Thomas Quinot <quinot@adacore.com>
1006 * xoscons.adb, xutil.ads, xutil.adb, s-oscons-tmplt.c: New files.
1008 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Generate
1011 2008-08-05 Robert Dewar <dewar@adacore.com>
1013 * opt.ads (Warn_On_Biased_Representation): New flag
1016 (Analyze_Attribute_Definition_Clause): Issue warning when biased
1017 representation is required.
1018 (Minimum_Size): Don't allow biasing if enum rep clause case
1021 (Set_Dot_Warning_Switch): Add handling of -gnatw.b/B switches
1022 (Set_Warning_Switch): Include -gnatw.b in -gnatwa, -gnatw.B in gnatws
1024 * usage.adb: Add lines for -gnatw.b/B switches
1026 2008-08-05 Pascal Obry <obry@adacore.com>
1028 * a-coinve.adb: Reorder the code to avoid uninitialized warning.
1030 * adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
1032 2008-08-05 Thomas Quinot <quinot@adacore.com>
1034 * socket.c: Minor reformatting.
1036 2008-08-05 Robert Dewar <dewar@adacore.com>
1038 * sem_ch3.adb: Minor reformatting
1040 * prj-nmsc.adb: Minor reformatting
1042 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1044 * sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex
1045 visibility check on the component type if the simple test fails.
1047 2008-08-05 Jose Ruiz <ruiz@adacore.com>
1049 * init.c (__gnat_install_handler for linux): If we are building the
1050 Xenomai run time then we need to do two additional things: avoid
1051 memory swapping and transform the Linux environment task into a native
1054 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for xenomai run
1055 time): Use interface to Xenomai native skin and avoid linux-specific
1056 way of setting CPU affinity.
1057 (EH_MECHANISM for the xenomai run time): Use sjlj exception mechanism.
1059 2008-08-05 Bob Duff <duff@adacore.com>
1061 * checks.ads: Minor comment fix
1063 2008-08-05 Thomas Quinot <quinot@adacore.com>
1065 * g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb,
1066 g-sercom-linux.adb (Data_Bits): Change literals B7 and B8 to CS7 and
1069 2008-08-05 Robert Dewar <dewar@adacore.com>
1071 * mlib.adb: Minor code reorganization
1074 * make.adb: Minor reformatting
1076 * prj-attr.ads: Minor reformatting
1078 * s-os_lib.adb: Minor reformatting
1080 * s-fileio.adb: Minor code reorganization
1083 * prj.ads: Minor reformatting
1085 2008-08-05 Bob Duff <duff@adacore.com>
1087 * sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in
1088 unresolved initial value of "null", because it causes implicitly
1089 generated "=" operators to be ambiguous, and because this type should
1090 not be passed to gigi.
1092 2008-08-05 Vincent Celier <celier@adacore.com>
1094 * mlib.adb: Update comments.
1096 * make.adb (Switches_Of): Check for Switches (others), before checking
1097 for Default_Switches ("Ada").
1098 (Gnatmake): Use Builder'Switches (others) in preference to
1099 Builder'Default_Switches ("Ada") if there are several mains.
1102 (Add_Attribute): Add component Others_Allowed in Attribute_Record
1106 Add markers to indicates that attributes Switches allow others as index
1107 (Others_Allowed_For): New Boolean function, returning True for
1108 attributes with the mark.
1109 (Initialize): Recognize optional letter 'O' as the marker for
1110 associative array attributes where others is allowed as the index.
1113 (Others_Allowed_For): New Boolean function
1114 (Attribute_Record): New Boolean component Others_Allowed
1117 (Parse_Attribute_Declaration): For associative array attribute where
1118 others is allowed as the index, allow others as an index.
1121 (Process_Binder): Skip associative array attributes with index others
1122 (Process_Compiler): Ditto
1125 (Value_Of (Index, In_Array)): Make no attempt to put in lower case when
1126 index is All_Other_Names.
1129 (All_Other_Names): New constant
1132 (Process_Declarative_Items): Skip associative array attribute when index
1133 is reserved word "others".
1135 2008-08-05 Vasiliy Fofanov <fofanov@adacore.com>
1137 * gen-oscons.c: Adapt for VMS where termios.h is not available.
1139 2008-08-05 Thomas Quinot <quinot@adacore.com>
1141 * a-rttiev.adb: Minor reformatting (comments)
1143 * gen-soccon.c: Rename to gen-oscons.c
1145 * gen-oscons.c: New file. Now generate System.OS_Constants instead of
1146 GNAT.Sockets.Constants.
1147 Add new constants for GNAT.Serial_Communications and System.File_IO.
1149 2008-08-05 Javier Miranda <miranda@adacore.com>
1151 * sem_util.adb (Collect_Interfaces_Info): Minor reformating.
1152 * exp_ch3.adb (Build_Offset_To_Top_Functions): Code cleanup: the
1153 implementation of this routine has been simplified.
1155 2008-08-05 Pascal Obry <obry@adacore.com>
1157 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Fix the
1158 Set_Read_Only Win32 implementation.
1160 2008-08-05 Thomas Quinot <quinot@adacore.com>
1162 * exp_strm.adb: Minor reformatting (comments)
1164 * sem_ch12.adb: Minor reformatting.
1166 2008-08-05 Robert Dewar <dewar@adacore.com>
1168 * sem_ch3.adb: Minor reformatting
1170 * checks.adb: Minor reformatting
1172 2008-08-05 Thomas Quinot <quinot@adacore.com>
1174 * tbuild.ads (New_External_Name): Update spec to reflect relaxed
1175 restriction on Prefix.
1177 2008-08-05 Jerome Lambourg <lambourg@adacore.com>
1179 * g-comlin.adb (Sort_Sections, Group_Switches): New/Modified internal
1180 methods needed to handle switch sections when building a command line.
1181 (Define_Section, Add_Switch, Remove_Switch, Is_New_Section,
1182 Current_Section): New public methods or methods modified to handle
1183 building command lines with sections.
1184 (Set_Command_Line): Take into account sections when analysing a switch
1186 (Start): Sort the switches by sections before iterating the command line
1189 * g-comlin.ads (Define_Section, Add_Switch, Remove_Switch,
1190 Is_New_Section, Current_Section): New methods or methods modified to
1191 handle building command lines with sections.
1193 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1195 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access
1196 discriminants, indicate that the corresponding object declaration has
1197 no initialization, to prevent spurious warnings when the access type is
1200 2008-08-05 Ed Schonberg <schonberg@adacore.com>
1202 * sem_res.adb (Resolve_Call): If this is a call to the predefined
1203 Abort_Task, warn if the call appears within a protected operation.
1205 2008-08-04 Robert Dewar <dewar@adacore.com>
1207 * exp_ch4.adb (Expand_N_In): Suppress range warnings in instances
1209 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1212 (Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an
1213 anonymous access to protected subprogram that is the return type of the
1214 specification of a subprogram body.
1217 (Analyze_Subprogram_Body): if the return type is an anonymous access to
1218 subprogram, freeze it now to prevent access anomalies in the back-end.
1220 * exp_ch9.adb: Minor code cleanup.
1221 Make sure that new declarations are inserted into the tree before
1222 analysis (from code reading).
1224 2008-08-04 Robert Dewar <dewar@adacore.com>
1227 (Expand_Simple_Function_Return): Check No_Secondary_Stack restriction
1230 2008-08-04 Thomas Quinot <quinot@adacore.com>
1232 * sem_type.adb, sem_ch4.adb, sprint.adb, exp_ch3.adb: Minor reformatting
1234 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
1236 * g-soccon-mingw.ads: Fix value for MSG_WAITALL
1238 2008-08-04 Javier Miranda <miranda@adacore.com>
1240 * sem_prag.adb (Process_Convention): Add missing support for
1241 N_Private_Extension_Declaration nodes.
1243 2008-08-04 Robert Dewar <dewar@adacore.com>
1245 * exp_ch4.adb: Minor reformatting
1247 2008-08-04 Pascal Obry <obry@adacore.com>
1249 * adaint.h: Add missing prototype.
1251 * adaint.c: Refine support for Windows file attributes.
1253 2008-08-04 Robert Dewar <dewar@adacore.com>
1256 (Valid_Conversion): Catch case of designated types having different
1257 sizes, even though they statically match.
1259 2008-08-04 Javier Miranda <miranda@adacore.com>
1261 * sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch
1262 added in previous patch to handle access to subprograms.
1264 2008-08-04 Robert Dewar <dewar@adacore.com>
1267 (Freeze_Entity): Only check No_Default_Initialization restriction for
1268 constructs that come from source
1270 2008-08-04 Thomas Quinot <quinot@adacore.com>
1272 * exp_ch6.adb: Minor comment fix.
1274 * sem_ch4.adb: Minor reformatting.
1276 2008-08-04 Robert Dewar <dewar@adacore.com>
1278 * sem_res.adb: (Large_Storage_Type): Improve previous change.
1280 2008-08-04 Pascal Obry <obry@adacore.com>
1282 * adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with
1285 2008-08-04 Javier Miranda <miranda@adacore.com>
1287 * sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support
1288 for N_Formal_Object_Declaration nodes. Adding kludge required by
1289 First_Formal to provide its functionality with access to functions.
1290 (Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support
1291 for anonymous access types returned by functions.
1293 * sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate
1294 conversion of null-excluding access types (required only once to force
1295 the generation of the required runtime check).
1297 * sem_type.adb (Covers): minor reformating
1299 * checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors
1300 with internally generated nodes. Avoid generating the error inside init
1303 * sem_res.adb (Resolve_Membership_Test): Minor reformating.
1304 (Resolve_Null): Generate the null-excluding check in case of assignment
1305 to a null-excluding object.
1306 (Valid_Conversion): Add missing support for anonymous access to
1309 * sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for
1310 anonymous access types whose designated type is an itype. This case
1311 occurs with anonymous access to protected subprograms types.
1312 (Analyze_Return_Type): Add missing support for anonymous access to
1313 protected subprogram.
1315 * sem_eval.adb (Subtypes_Statically_Match): In case of access to
1316 subprograms addition of missing check on matching convention. Required
1317 to properly handle access to protected subprogram types.
1319 * exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on
1320 null excluding access types.
1322 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1324 * sem_ch12.adb: Add comments
1326 * sem_ch4.adb (Analyze_Allocator): If the designated type is a non-null
1327 access type and the allocator is not initialized, warn rather than
1330 2008-08-04 Robert Dewar <dewar@adacore.com>
1332 * exp_ch4.adb: Minor reformatting
1334 * exp_dist.adb: Minor reformatting
1336 * g-comlin.adb: Minor reformatting
1338 2008-08-04 Gary Dismukes <dismukes@adacore.com>
1340 * exp_aggr.adb (Build_Record_Aggr_Code): Perform a conversion of the
1341 target to the type of the aggregate in the case where the target object
1344 * exp_ch5.adb (Expand_Simple_Function_Return): When the function's
1345 result type is class-wide and inherently limited, and the expression
1346 has a specific type, create a return object of the specific type, for
1347 more efficient handling of returns of build-in-place aggregates (avoids
1348 conversions of the class-wide return object to the specific type on
1349 component assignments).
1351 * sem_ch6.adb (Check_Return_Subtype_Indication): Suppress the error
1352 about a type mismatch for a class-wide function with a return object
1353 having a specific type when the object declaration doesn't come from
1354 source. Such an object can result from the expansion of a simple return.
1356 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
1358 * g-soccon-mingw-64.ads, system-mingw-x86_64.ads: New files.
1360 * gcc-interface/Makefile.in: Use 64bit-specific system files when
1361 compiling for 64bit windows.
1363 2008-08-04 Jerome Lambourg <lambourg@adacore.com>
1365 * g-comlin.adb (Group_Switches): Preserve the switch order when
1366 grouping and allow switch grouping of switches with more than one
1367 character extension (e.g. gnatw.x).
1368 (Args_From_Expanded): Remove this now obsolete method.
1370 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1372 * exp_ch4.adb (Get_Allocator_Final_List): Freeze anonymous type for
1373 chain at once, to ensure that type is properly decorated for back-end,
1374 when allocator appears within a loop.
1376 2008-08-04 Kevin Pouget <pouget@adacore.com>
1378 * snames.h, snames.adb, snames.ads:
1379 Add Attr_To_Any, Attr_From_Any and Attr_TypeCode defines.
1381 * exp_dist.ads, exp_dist.adb: Add Build_From_Any_Call,
1382 Build_To_Any_Call and Build_TypeCode_Call procedures.
1384 * exp_attr.adb, sem_attr.adb: Add corresponding cases.
1386 * rtsfind.ads: Add corresponding names.
1388 * tbuild.adb: Update prefix restrictions to allow '_' character.
1390 2008-08-04 Doug Rupp <rupp@adacore.com>
1392 * gigi.h (fill_vms_descriptor): Add third parameter gnat_actual
1393 * trans.c (call_to_gnu): Call fill_vms_descriptor with new parameter.
1394 * utils2.c (fill_vms_descriptor): Add third parameter for error sloc and
1395 use it. Calculate pointer range overflow using 64bit types.
1397 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1399 * sem_ch3.adb (Access_Definition): A formal object declaration is a
1400 legal context for an anonymous access to subprogram.
1402 * sem_ch4.adb (Analyze_One_Call): If the call can be interpreted as an
1403 indirect call, report success to the caller to include possible
1406 * sem_ch6.adb (Check_Return_Type_Indication): Apply proper conformance
1408 of the extended return is an anonymous access_to_subprogram type.
1411 (Resolve_Call): Insert a dereference if the type of the subprogram is an
1412 access_to_subprogram and the context requires its return type, and a
1413 dereference has not been introduced previously.
1415 2008-08-04 Arnaud Charlet <charlet@adacore.com>
1417 * usage.adb (Usage): Minor rewording of -gnatwz switch, to improve
1418 gnatcheck support in GPS.
1420 2008-08-04 Vincent Celier <celier@adacore.com>
1422 * mlib.adb (Create_Sym_Links): Create relative symbolic links when
1425 2008-08-04 Vincent Celier <celier@adacore.com>
1427 * gprep.adb (Process_One_File): Call Prep.Preprocess with a Boolean
1428 variable, but don't check the resulting value as it has no impact on
1432 (Generate_Processed_File): New Boolean flag, set to True in the compiler
1433 when switch -gnateG is used.
1436 (Preprocess): new Boolean out parameter Source_Modified. Set it to True
1437 when the source is modified by the preprocessor and there is no
1438 preprocessing errors.
1440 * prep.ads (Preprocess): new Boolean out parameter Source_Modified
1443 (Load_File): Output the result of preprocessing if the source text was
1446 * switch-c.adb (Scan_Front_End_Switches): Recognize switch -gnateG
1448 * switch-m.adb (Normalize_Compiler_Switches): Normalize switch -gnateG
1450 * ug_words: Add VMS equivalent for -gnateG
1453 Add VMS option /GENERATE_PROCESSED_SOURCE, equivalent to switch -gnateG
1455 2008-08-04 Doug Rupp <rupp@adacore.com>
1457 * gcc-interface/utils2.c:
1458 (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer
1459 in 32bit descriptor.
1461 2008-08-04 Robert Dewar <dewar@adacore.com>
1463 * par-ch10.adb: Minor reformatting
1465 * i-cobol.adb: Minor reformatting.
1467 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1469 * sem_ch3.adb (Access_Definition): Create an itype reference for an
1470 anonymous access return type of a regular function that is not a
1473 2008-08-04 Vincent Celier <celier@adacore.com>
1475 * prj-attr.adb: New Builder attribute Global_Compilation_Switches
1477 * snames.adb: New standard name Global_Compilation_Switches
1479 * snames.ads: New standard name Global_Compilation_Switches
1481 * make.adb: Correct spelling error in comment
1483 2008-08-04 Arnaud Charlet <charlet@adacore.com>
1485 * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI
1488 2008-08-04 Thomas Quinot <quinot@adacore.com>
1490 * sem_ch10.adb: Minor comment fix.
1492 2008-08-04 Robert Dewar <dewar@adacore.com>
1494 * restrict.adb: Improved messages for restriction warnings
1496 * restrict.ads: Improved messages for restriction messages
1498 * s-rident.ads (Profile_Name): Add No_Profile
1500 2008-08-04 Robert Dewar <dewar@adacore.com>
1502 * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
1504 2008-08-04 Robert Dewar <dewar@adacore.com>
1506 * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
1508 2008-08-04 Vincent Celier <celier@adacore.com>
1511 (Copy_Package_Declarations): When inheriting package Naming from a
1512 project being extended, do not inherit source exception names.
1514 2008-08-04 Ed Schonberg <schonberg@adacore.com>
1516 * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
1517 list of declaration to find previous subprogram, do not go to the
1518 original node of a generic unit.
1520 2008-08-02 Eric Botcazou <ebotcazou@adacore.com>
1522 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
1523 New case. Convert BOOLEAN_TYPE operation to the default integer type.
1525 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
1527 * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
1528 * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
1529 and adjust for above renaming.
1530 * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
1531 gnu_expr_alt_type parameter. Convert the expression to it instead
1532 of changing its type in place.
1533 (build_function_stub): Adjust call to above function.
1535 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
1537 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
1538 code. Do not get full definition of deferred constants with address
1539 clause for a use. Do not ignore deferred constant definitions with
1540 address clause. Ignore constant definitions already marked with the
1542 <object>: Remove obsolete comment. For a deferred constant with
1543 address clause, get the initializer from the full view.
1544 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
1545 Rework and remove obsolete comment.
1546 <N_Object_Declaration>: For a deferred constant with address clause,
1547 mark the full view with the error node.
1548 * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
1551 2008-08-01 Hristian Kirtchev <kirtchev@adacore.com>
1553 * rtsfind.ads: Add block IO versions of stream routines for Strings.
1555 * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
1556 sem_prag.adb, snames.adb, snames.ads, snames.h,
1557 par-prag.adb: Undo previous stream related changes.
1559 * s-rident.ads: Add new restriction No_Stream_Optimizations.
1561 * s-ststop.ads, s-ststop.adb: Comment reformatting.
1562 Define enumeration type to designate different IO mechanisms.
1563 Enchance generic package Stream_Ops_Internal to include an
1564 implementation of Input and Output.
1566 * exp_attr.adb (Find_Stream_Subprogram): If restriction
1567 No_Stream_Optimization is active, choose the default byte IO
1568 implementations of stream attributes for Strings.
1569 Otherwise use the corresponding block IO version.
1571 2008-08-01 Olivier Hainque <hainque@adacore.com>
1573 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not
1574 turn Ada Pure into GCC const, now implicitely implying nothrow as well.
1576 2008-08-01 Robert Dewar <dewar@adacore.com>
1578 * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
1579 convert plain identifier into defining identifier.
1581 2008-08-01 Robert Dewar <dewar@adacore.com>
1583 * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
1586 * lib-xref.adb: Add error defense.
1588 2008-08-01 Bob Duff <duff@adacore.com>
1590 * ioexcept.ads, sequenio.ads, directio.ads: Correct comment.
1592 2008-08-01 Gary Dismukes <dismukes@adacore.com>
1594 * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
1595 correct accessibility levels. In the "when others" case, retrieve the
1596 access level of the Etype of Prev rather than Prev_Orig, because the
1597 original exression has not always been analyzed.
1599 2008-08-01 Robert Dewar <dewar@adacore.com>
1601 * prj-nmsc.adb: Minor reformatting
1603 * sem_ch4.adb: Minor reformatting
1604 Minor code reorganization
1606 * prj.ads: Minor reformatting
1608 * s-os_lib.adb: Minor reformatting
1610 * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
1613 * scans.ads: Minor reformatting.
1615 * sem_prag.adb (Analyze_Pragma): Put entries in alpha order
1616 (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma
1619 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
1621 * sem_ch12.adb: Minor comment reformatting
1623 * par-ch3.adb (P_Type_Declaration): Properly handle missing type
1626 2008-08-01 Robert Dewar <dewar@adacore.com>
1628 * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
1631 2008-08-01 Ed Schonberg <schonberg@adacore.com>
1633 * checks.adb (Apply_Float_Conversion_Check): If the expression to be
1634 converted is a real literal and the target type has static bounds,
1635 perform the conversion exactly to prevent floating-point anomalies on
1638 2008-08-01 Vincent Celier <celier@adacore.com>
1640 * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
1642 * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
1644 * prj.adb (Object_Exist_For): Use Object_Generated, not
1645 Objects_Generated that is removed and was never modified anyway.
1648 (Path_Syntax_Kind): New enumeration type
1649 (Language_Config): New component Path_Syntax, defaulted to Host.
1650 Components PIC_Option and Objects_Generated removed, as they are not
1653 * snames.adb: New standard name Path_Syntax
1655 * snames.ads: New standard name Path_Syntax
1657 2008-08-01 Vincent Celier <celier@adacore.com>
1660 (Adalib_Path): New variable to store the path of the adalib directory
1661 when procedure Specify_Adalib_Dir is called.
1662 (Lib_Directory): If Adalib_Path is not null, return its value
1663 (Specify_Adalib_Dir): New procedure
1665 * mlib-utl.ads (Specify_Adalib_Dir): New procedure
1667 2008-08-01 Ed Schonberg <schonberg@adacore.com>
1670 (Check_Precondition_Postcondition): If not generating code, analyze the
1671 expression in a postcondition that appears in a subprogram body, so that
1672 it is properly decorated for ASIS use.
1674 2008-08-01 Gary Dismukes <dismukes@adacore.com>
1676 * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
1677 Orig_Prev to Prev in the case where the actual is N_Function_Call or
1678 N_Identifier. This was interfering with other cases that are rewritten
1679 as N_Identifier, such as allocators, resulting in passing of the wrong
1680 accessibility level, and based on testing this code is apparently no
1681 longer needed at all.
1683 2008-08-01 Ed Schonberg <schonberg@adacore.com>
1685 * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
1686 procedure call whose prefix
1687 is a parameterless function call that returns an access_to_procedure.
1689 2008-08-01 Jose Ruiz <ruiz@adacore.com>
1691 * adaint.c (__gnat_tmp_name): Refine the generation of temporary names
1692 for RTX. Adding a suffix that is incremented at each iteration.
1694 2008-08-01 Robert Dewar <dewar@adacore.com>
1696 * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
1699 2008-08-01 Jerome Lambourg <lambourg@adacore.com>
1701 * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
1702 paths, which are authorized by Windows but can lead to errors when used
1705 2008-08-01 Ed Schonberg <schonberg@adacore.com>
1707 * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
1708 a pending instantiation for the body of a subprogram that is to be
1712 (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
1714 * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
1715 create a pending instance for its body, so that calls to the subprogram
1716 can be inlined by the back-end.
1718 2008-08-01 Jose Ruiz <ruiz@adacore.com>
1720 * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
1723 2008-08-01 Robert Dewar <dewar@adacore.com>
1725 * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
1727 2008-08-01 Doug Rupp <rupp@adacore.com>
1729 * gnat_rm.texi: Document new mechanism Short_Descriptor.
1731 * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
1734 * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
1735 mechanism and Short_Descriptor mechanism values.
1737 * snames.adb (preset_names): Add short_descriptor entry.
1739 * snames.ads: Add Name_Short_Descriptor.
1741 * types.h: Add new By_Short_Descriptor mechanism values.
1743 * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
1744 mechanism and Short_Descriptor mechanism values.
1746 * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
1748 (Descriptor_Codes): Modify range for new mechanism values.
1750 * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
1753 * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
1754 (gnat_to_gnu_param): Handle By_Short_Descriptor.
1756 * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
1757 (build_vms_descriptor32): New prototype.
1758 (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
1760 * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
1761 argument in call fill_vms_descriptor.
1763 * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
1764 build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
1765 (build_vms_descriptor): Renamed from build_vms_descriptor64.
1766 (convert_vms_descriptor32): New function.
1767 (convert_vms_descriptor64): New function.
1768 (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
1771 * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
1774 2008-08-01 Jose Ruiz <ruiz@adacore.com>
1776 * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
1777 nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
1780 2008-08-01 Jose Ruiz <ruiz@adacore.com>
1782 * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
1783 current directory so only fully qualified names are allowed.
1785 2008-08-01 Robert Dewar <dewar@adacore.com>
1788 Minor editing, remove uncomfortable use of semicolon
1790 * s-ststop.adb: Add some ??? comments
1792 * sem_ch10.adb: Minor reformatting
1795 Minor comment fixes, some pragmas were not properly
1796 categorized in the comments, documentation change only
1798 * xref_lib.adb: Minor reformatting
1800 * sinput.adb: Minor reformatting
1802 * gnatchop.adb: Minor reformatting
1804 * sem_util.ads: Minor reformatting.
1806 * opt.ads: Minor documentation fix
1808 * scng.adb: Minor reformatting
1810 * prj-part.adb: Update comments
1812 2008-08-01 Ed Schonberg <schonberg@adacore.com>
1814 * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
1815 tagged synchronized type, use corresponding record type.
1817 2008-08-01 Doug Rupp <rupp@adacore.com>
1819 * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
1820 dummy transfer address for debugging.
1822 * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
1824 * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
1826 2008-07-31 Eric Botcazou <ebotcazou@adacore.com>
1828 * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
1829 * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
1831 2008-07-31 Pascal Obry <obry@adacore.com>
1833 * prj-nmsc.adb: Keep Object and Exec directory casing.
1835 2008-07-31 Jose Ruiz <ruiz@adacore.com>
1837 * system-rtx-rtss.ads
1838 Change the default stack size. It is important to set the commit part.
1841 (Initialize): Get the clock resolution.
1842 (RT_Resolution): Return the clock resolution that is indicated by the
1845 * s-parame-vxworks.adb
1846 Document that this body is used for RTX in RTSS (kernel) mode.
1848 * gcc-interface/Makefile.in
1849 (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
1850 s-parame-vxworks.adb body in order to have reasonable stack sizes in
1851 RTX RTSS kernel mode. Virtual memory is not used in that case, so we
1852 cannot ask for too big values.
1854 2008-07-31 Robert Dewar <dewar@adacore.com>
1856 * exp_aggr.adb: Minor reformatting
1858 * makeutl.adb: Minor reformatting
1860 * prj-env.adb: Minor reformatting
1862 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
1864 * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
1865 tagged type is completed by a concurrent type.
1867 2008-07-31 Gary Dismukes <dismukes@adacore.com>
1870 (Resolve_Record_Aggregate): Bypass error that a type without
1871 components must have a "null record" aggregate when compiling for Ada
1872 2005, since it's legal to give an aggregate of form (others => <>)
1875 2008-07-31 Javier Miranda <miranda@adacore.com>
1877 * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
1878 handle synchronized types. Required to handle well the object.operation
1879 notation applied to synchronized types.
1881 2008-07-31 Quentin Ochem <ochem@adacore.com>
1883 * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
1884 anymore - just used internally.
1885 Added handling of very small tasks - when the theoretical size is
1886 already full at the point of the call.
1887 (Report_Result): Fixed result computation, Stack_Used_When_Filling does
1888 not need to be added to the result.
1890 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
1892 * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
1893 corresponding spec is a primitive wrapper. Update comment.
1895 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
1897 * bindgen.adb Comment reformatting. Update the list of run-time globals.
1898 (Gen_Adainit_Ada): Add the declaration, import and value set for
1899 configuration flag Canonical_Streams.
1900 (Gen_Adainit_C): Add the declaration and initial value of external
1901 symbol __gl_canonical_streams.
1903 * init.c: Update the list of global values computed by the binder.
1905 * opt.ads: Add flag Canonical_Streams.
1907 * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
1908 semantically handled pragmas.
1910 * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
1911 (Analyze_Pragma): Add case for pragma Canonical_Streams.
1913 * snames.adb: Add character value for name Canonical_Streams.
1916 Add Name_Canonical_Streams to the list of configuration pragmas.
1917 Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
1919 * snames.h: Add a definition for Pragma_Canonical_Streams.
1922 Add a flag and import to seize the value of external symbol
1923 __gl_canonical_streams. Update comment and initial value of constant
1926 * gnat_rm.texi: Add section of pragma Canonical_Streams.
1929 Add pragma Canonical_Streams to the list of configuration pragmas.
1931 2008-07-31 Ed Schonberg <schonberg@adacore.com>
1933 * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
1934 has the form A.B.C and B is a unit renaming, analyze its compilation
1935 unit and add a with_clause on A.b to the context.
1937 2008-07-31 Vincent Celier <celier@adacore.com>
1939 * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
1940 return the empty string, instead of raising Constraint_Error.
1942 2008-07-31 Gary Dismukes <dismukes@adacore.com>
1944 * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
1946 * checks.adb (Apply_Accessibility_Check): Insert the check on
1950 (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
1951 to new parameter Insert_Node on call to Apply_Accessibility_Check.
1952 Necessary to distinguish the insertion node because the dereferenced
1953 formal may come from a rename, but the check must be inserted in
1954 front of the attribute.
1957 (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
1958 call to Apply_Accessibility_Check.
1959 (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
1960 on call to Apply_Accessibility_Check.
1963 2008-07-31 Javier Miranda <miranda@adacore.com>
1965 * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
1966 types when the candidate type is a synchronized type.
1968 * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
1969 types, and complete management of synchronized types adding missing
1970 code to handle formal that is a synchronized type.
1972 * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
1973 are not available and cause the compiler to blowup. Found compiling
1974 test with switch -gnatc
1976 * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
1977 Has_Correct_Formal_Mode plus code cleanup.
1979 2008-07-31 Bob Duff <duff@adacore.com>
1981 * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
1982 recognized as two end-of-lines, but it should be just one.
1984 2008-07-31 Thomas Quinot <quinot@adacore.com>
1986 * exp_ch9.adb: Minor reformatting
1988 * tbuild.ads: Fix several occurrences of incorrectly referring to
1989 Name_Find as Find_Name.
1991 2008-07-31 Ed Schonberg <schonberg@adacore.com>
1993 * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
1994 and the context is an object declaration with non-static bounds, treat
1995 the aggregate as non-static.
1997 2008-07-31 Vincent Celier <celier@adacore.com>
1999 * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
2000 Move back spec of Parse_Single_Project to body, as it is not called
2001 outside of package Prj.Part.
2002 (Project_Data): Remove components Linker_Name, Linker_Path and
2003 Minimum_Linker_Options as they are no longer set.
2004 Remove function There_Are_Ada_Sources from package Prj and move code
2005 in the only place it was used, in Prj.Env.Set_Ada_Paths.
2007 2008-07-31 Arnaud Charlet <charlet@adacore.com>
2009 * mlib-utl.ads: Fix typo.
2011 2008-07-31 Robert Dewar <dewar@adacore.com>
2013 * sem_ch12.adb: Minor reformatting
2015 2008-07-31 Sergey Rybin <rybin@adacore.com>
2017 * gnat_ugn.texi: Change the description of the
2018 Overly_Nested_Control_Structures: now the rule always requires a
2019 positive parameter for '+R' option
2021 2008-07-31 Thomas Quinot <quinot@adacore.com>
2023 * g-pehage.adb: Minor reformatting
2025 2008-07-31 Pascal Obry <obry@adacore.com>
2027 * s-finimp.ads: Minor reformatting.
2029 2008-07-31 Vincent Celier <celier@adacore.com>
2031 * s-regexp.ads: Minor comment fix
2033 2008-07-31 Arnaud Charlet <charlet@adacore.com>
2035 * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
2036 so that we can compile this file successfully with -gnatc.
2038 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
2040 * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
2041 of the type when looking for stream subprograms for type String,
2042 Wide_String and Wide_Wide_String.
2044 * s-ststop.adb: Change the initialization expression of constant
2047 2008-07-31 Geert Bosch <bosch@adacore.com>
2050 New file implementing __gnat_mulv64 signed integer multiplication with
2053 * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
2055 * gcc-interface/gigi.h:
2056 (standard_types): Add ADT_mulv64_decl
2057 (mulv64_decl): Define subprogram declaration for __gnat_mulv64
2059 * gcc-interface/utils.c:
2060 (init_gigi_decls): Add initialization of mulv64_decl
2062 * gcc-interface/trans.c:
2063 (build_unary_op_trapv): New function
2064 (build_binary_op_trapv): New function
2065 (gnat_to_gnu): Use the above functions instead of
2066 build_{unary,binary}_op
2068 * gcc-interface/Makefile.in
2069 (LIBGNAT_SRCS): Add arit64.c
2070 (LIBGNAT_OBJS): Add arit64.o
2072 2008-07-31 Vincent Celier <celier@adacore.com>
2074 * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
2075 Linker'Default_Switches are declared. Warn if they are declared.
2077 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2079 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
2080 Insert_Actions to place the pointer declaration in the code, rather
2081 than Insert_Before_And_Analyze, so that insertions of temporaries are
2082 kept in the proper order when transient scopes are present.
2085 2008-07-31 Robert Dewar <dewar@adacore.com>
2087 * einfo.adb (Spec_PPC): Now defined for generic subprograms
2089 * einfo.ads (Spec_PPC): Now defined for generic subprograms
2091 * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
2094 2008-07-31 Vincent Celier <celier@adacore.com>
2096 * s-os_lib.adb: Minor comment fix
2098 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2100 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
2101 transfer pre/postconditions from generic copy to original tree, so that
2102 they will appear in each instance.
2103 (Process_PPCs): Do not transform postconditions into a procedure in a
2104 generic context, to prevent double expansion of check pragmas.
2106 * sem_attr.adb: In an instance, the prefix of the 'result attribute
2107 can be the renaming of the
2108 current instance, so check validity of the name accordingly.
2110 2008-07-31 Robert Dewar <dewar@adacore.com>
2112 * mlib-utl.ads: Minor reformatting
2114 2008-07-31 Ed Schonberg <schonberg@adacore.com>
2116 sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
2117 from context. This attribute must be usable in Ada95 mode.
2118 The attribute can appear in the body of a function marked
2119 Inline_Always, but in this case the postocondition is not enforced.
2121 sem_prag.adb (Check_Precondition_Postcondition): within the expansion
2122 of an inlined call pre- and postconditions are legal
2124 2008-07-31 Vincent Celier <celier@adacore.com>
2126 * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
2127 were for gprmake only
2129 2008-07-31 Robert Dewar <dewar@adacore.com>
2131 * gnat_ugn.texi: Update -gnatN documentation.
2133 * gnat_rm.texi: Add note about pre/postcondition
2134 pragmas not checked in conjunction with front-end inlining.
2136 2008-07-31 Robert Dewar <dewar@adacore.com>
2138 * g-pehage.adb, g-pehage.ads: Minor reformatting
2140 2008-07-31 Arnaud Charlet <charlet@adacore.com>
2142 * mlib-utl.ads, prj-makr.ads: Add comments.
2144 2008-07-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2146 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS)
2147 [WINDOWS]: Add s-winext.o.
2149 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
2152 * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
2153 * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
2154 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
2155 Set precision to 1 for subtype of BOOLEAN_TYPE.
2156 (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
2157 (make_type_from_size): Deal with BOOLEAN_TYPE.
2158 * gcc-interface/misc.c (gnat_print_type): Likewise.
2159 * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
2160 Set boolean_type_node as its translation in the table, as well
2161 as boolean_false_node for False and boolean_true_node for True.
2162 * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
2163 8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
2164 (create_param_decl): Deal with BOOLEAN_TYPE.
2165 (build_vms_descriptor): Likewise.
2166 (build_vms_descriptor64): Likewise.
2167 (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
2169 2008-07-30 Robert Dewar <dewar@adacore.com>
2171 * exp_ch9.adb: Minor reformatting
2173 * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
2174 if no primitive operation is found.
2176 * exp_util.adb: (Find_Prim_Op): Add comments for previous change
2178 * sem_ch8.adb: Minor reformatting
2180 2008-07-30 Laurent Pautet <pautet@adacore.com>
2183 Remove a limitation on the length of the words handled by the minimal
2184 perfect hash function generator.
2187 Detail the use of subprograms Insert, Initialize, Compute and Finalize.
2190 2008-07-30 Robert Dewar <dewar@adacore.com>
2192 * gnatlink.adb: Minor reformatting
2194 2008-07-30 Thomas Quinot <quinot@adacore.com>
2196 * rtsfind.adb (Check_RPC): Check version consistency even when not
2197 generating RCI stubs. Provide more detailed error message in case of
2200 2008-07-30 Ed Schonberg <schonberg@adacore.com>
2202 * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
2203 as a actual in an instance, check for a missing attribute to prevent
2204 program_error on an illegal program.
2206 * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
2207 error if primitive is not found, so that exception can be handled
2208 elsewhere on illegal programs.
2210 2008-07-30 Robert Dewar <dewar@adacore.com>
2212 * uintp.adb (UI_GCD): Fix potential overflow
2214 2008-07-30 Hristian Kirtchev <kirtchev@adacore.com>
2216 * einfo.adb: Flag245 is now used.
2217 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
2218 check to include functions.
2219 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
2220 (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
2222 (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
2223 to the list of displayed flags.
2225 * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
2226 Wrapped_Entity. These two flags are now present in functions.
2227 New flag Is_Private_Primitive.
2228 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
2231 (Build_Wrapper_Bodies): New subprogram.
2232 (Build_Wrapper_Body): The spec and body have been moved to in
2233 Build_Wrapper_ Bodies. Code cleanup.
2234 (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
2235 Wrappers are now generated for primitives declared between the private
2236 and full view of a concurrent type that implements an interface.
2237 (Build_Wrapper_Specs): New subprogram.
2238 (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
2239 creation mechanism with a call to Build_Wrapper_Bodies.
2240 (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
2241 wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
2242 (Expand_N_Task_Body): Replace the wrapper body creation
2243 mechanism with a call to Build_Wrapper_Bodies.
2244 (Expand_N_Task_Type_Declaration): Replace the wrapper spec
2245 creation mechanism with a call to Build_Wrapper_Specs.
2246 (Is_Private_Primitive_Subprogram): New subprogram.
2247 (Overriding_Possible): Code cleanup.
2248 (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
2250 * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
2252 * sem_ch3.adb: Add with and use clause for Exp_Ch9.
2253 (Process_Full_View): Build wrapper specs for all primitives
2254 that belong to a private view completed by a concurrent type
2255 implementing an interface.
2257 * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
2259 concurrent type with a private view that implements an interface, try to
2260 find the proper spec.
2261 (Analyze_Subprogram_Declaration): Mark a subprogram as a private
2262 primitive if the type of its first parameter is a non-generic tagged
2264 (Analyze_Subprogram_Specification): Code reformatting.
2265 (Disambiguate_Spec): New routine.
2266 (Find_Corresponding_Spec): Add a flag to controll the output of errors.
2267 (Is_Private_Concurrent_Primitive): New routine.
2270 (Find_Corresponding_Spec): Add a formal to control the output of errors.
2272 2008-07-30 Doug Rupp <rupp@adacore.com>
2274 * gigi.h (build_vms_descriptor64): New function prototype.
2275 (fill_vms_descriptor): Modified function prototype.
2277 * utils.c (build_vms_descriptor64): New function.
2279 * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
2281 * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
2284 * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
2285 64bit and 32bit descriptor and save the 64bit version as an alternate
2286 TREE_TYPE in the parameter.
2287 (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
2290 * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
2292 2008-07-30 Robert Dewar <dewar@adacore.com>
2294 * make.adb: Minor reformatting
2296 * mlib-utl.adb: Minor reformatting
2298 * osint.ads: Minor reformatting
2300 2008-07-30 Jose Ruiz <ruiz@adacore.com>
2303 (__gnat_file_exists): Do not use __gnat_stat for RTX.
2304 (__main for RTX in RTSS mode): Create this dummy procedure symbol to
2305 avoid the use of this symbol from libgcc.a in RTX kernel mode.
2308 (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
2309 the function RtPrintf for console output.
2311 * argv.c Do not use the environ variable for RTX.
2313 * gnatlink.adb (gnatlink): The part that handles the --RTS option has
2314 been moved before the call to Osint.Add_Default_Search_Dirs in order
2315 to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
2316 from the appropriate run time.
2319 (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
2320 target is a RTSS module for RTX.
2322 * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
2323 RTX_RTSS_Kernel_Module
2324 (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
2326 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
2327 exception handling mechanism for Windows and RTX in Win32 mode, but
2328 not for RTX in kernel mode (RTSS).
2329 (LIBGNAT_SRCS): Remove ada.h
2331 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
2333 * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
2334 T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
2335 (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
2336 * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
2337 X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
2338 ALL_ADA_CFLAGS): Remove.
2339 (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
2340 replace ALL_ADA_CFLAGS with ADA_CFLAGS.
2341 (GCC_CFLAGS): Remove X_CFLAGS.
2342 (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
2343 (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
2344 (ADA_CFLAGS): Substitute.
2346 2008-07-30 Laurent Guerby <laurent@guerby.net>
2349 * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
2350 Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
2351 Replace stamp-gnatlib* by stamp-gnatlib*-rts.
2352 * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
2353 by stamp-gnatlib2-rts.
2355 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2357 PR documentation/15479
2358 * gnat-style.texi: Remove AdaCore copyright statement and GPL
2359 statement for GNAT. Add @copying stanza, use it. Update to
2360 GFDL 1.2. Do not list GFDL as Invariant Section, do not list
2361 title as Front-Cover Text.
2362 * gnat_rm.texi: Likewise.
2363 * gnat_ugn.texi: Likewise.
2365 2008-07-29 Jan Hubicka <jh@suse.cz>
2367 * trans.c (process_inlined_subprograms): Remove tree_really_inline
2370 2008-07-29 Arnaud Charlet <charlet@adacore.com>
2372 * gcc-interface: New directory.
2374 * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
2375 utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
2376 config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
2377 to gcc-interface subdirectory.
2379 2008-07-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2381 * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
2383 2008-07-28 Jan Hubicka <jh@suse.cz>
2385 * misc.c (gnat_post_options): Do not set flag_no_inline.
2387 2008-07-28 Richard Guenther <rguenther@suse.de>
2389 Merge from gimple-tuples-branch.
2391 2008-07-22 Olivier Hainque <hainque@adacore.com>
2393 * gigi.h (end_subprog_body): New ELAB_P argument, saying if
2394 this is called for an elab proc to be discarded if empty.
2395 * utils.c (end_subprog_body): Honor ELAB_P.
2396 (build_function_stub): Adjust call to end_subprog_body.
2397 * trans.c (Subprogram_Body_to_gnu): Likewise.
2398 (gigi): Reorganize processing of elab procs to prevent
2399 gimplifying twice, using the new end_subprog_body argument.
2401 2008-07-19 Richard Guenther <rguenther@suse.de>
2403 * Make-lang.in (trans.o): Add tree-iterator.h dependency.
2404 (utils.o): Likewise.
2405 * trans.c: Include tree-iterator.h.
2406 (gnat_gimplify_expr): Adjust prototype. Fix typo.
2407 (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
2408 (set_expr_location_from_node): Likewise.
2410 * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
2412 * utils.c: Include tree-iterator.h.
2413 * gigi.h (gnat_gimplify_expr): Adjust prototype.
2415 2008-07-18 Aldy Hernandez <aldyh@redhat.com>
2417 * trans.c: Include gimple.h instead of tree-gimple.h.
2420 2008-07-14 Aldy Hernandez <aldyh@redhat.com>
2422 * trans.c (gnat_gimplify_expr): Use gimplify_assign.
2424 2008-07-25 Jan Hubicka <jh@suse.cz>
2426 * utils.c (end_subprog_body): Remove inline trees check.
2427 * misc.c (gnat_post_options): Do not set flag_inline_trees.
2429 2008-07-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2431 * raise-gcc.c: Move tsystem.h before tm.h.
2433 2008-07-20 Arnaud Charlet <charlet@adacore.com>
2435 * gnathtml.pl: New file.
2437 2008-07-19 Olivier Hainque <hainque@adacore.com>
2439 * targtyps.c (get_target_default_allocator_alignment): Use
2440 MALLOC_ABI_ALIGNMENT.
2442 2008-07-17 Olivier Hainque <hainque@adacore.com>
2444 * adaint.c (__MINGW32__ section): Include ctype.h and define
2445 a fallback ISALPHA if IN_RTS.
2446 (__gnat_is_absolute_path): Use ISALPHA instead of isalpha.
2448 2008-07-17 Olivier Hainque <hainque@adacore.com>
2450 * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
2451 argument, to apply to references in addition to definitions. Prevent
2452 setting TREE_STATIC on externals.
2453 (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
2455 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2457 PR documentation/15479
2458 * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
2459 Replace backets around optional parameters with @ovar
2460 where possible, use @r{[}, @r{]} otherwise.
2461 Replace some @r, @i, and @emph with @var where appropriate.
2463 2008-07-02 Eric Botcazou <ebotcazou@adacore.com>
2465 * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
2467 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2469 * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
2470 -Wc++-compat warnings.
2471 * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
2472 __gnat_locate_exec_on_path): Likewise.
2473 * decl.c (annotate_value): Likewise.
2474 * misc.c (gnat_handle_option): Likewise.
2475 * trans.c (gnat_to_gnu, extract_encoding, decode_name,
2476 post_error_ne_tree): Likewise.
2478 2008-06-27 Eric Botcazou <ebotcazou@adacore.com>
2480 * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
2481 version of its type, attempt to first convert its elements.
2483 2008-06-26 Chris Proctor <chrisp_42@bigpond.com>
2485 * Makefile.in: Fix *86 kfreebsd target specific pairs.
2487 2008-06-25 Samuel Tardieu <sam@rfc1149.net>
2489 * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
2491 2008-06-24 Eric Botcazou <ebotcazou@adacore.com>
2493 * utils2.c (known_alignment): Derive the alignment from pointed-to
2494 types only if it is otherwise unknown.
2495 <INTEGER_CST>: Tidy.
2496 <MULT_EXPR>: Likewise.
2497 <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
2500 2008-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2503 * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
2505 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2507 * gnat_rm.texi (Implementation Defined Characteristics)
2508 (Standard Library Routines): Use @smallexample for indented
2509 text. Drop Indentation outside examples.
2510 * gnat_ugn.texi: Likewise.
2512 2008-06-13 Olivier Hainque <hainque@adacore.com>
2514 * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
2516 (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
2517 realignment with force_align_arg_pointer attribute on foreign
2518 convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
2520 2008-06-13 Olivier Hainque <hainque@adacore.com>
2522 * utils.c (rest_of_record_type_compilation): When computing
2523 encodings for the components of a variable size type, early
2524 strip conversions on the current position expression to make
2525 sure it's shape is visible. Use remove_conversions for this
2528 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
2530 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
2531 constrained subtype of a discriminated type, discard the fields that
2532 are beyond its limits according to its size.
2534 2008-06-10 Olivier Hainque <hainque@adacore.com>
2536 * utils.c (create_subprog_decl): If this is for the 'main' entry
2537 point according to the asm name, redirect main_identifier_node.
2539 2008-06-09 Eric Botcazou <ebotcazou@adacore.com>
2541 * decl.c (components_to_record): Adjust the packedness for the
2542 qualified union as well.
2544 2008-06-09 Arnaud Charlet <charlet@adacore.com>
2546 * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
2549 2008-06-07 Samuel Tardieu <sam@rfc1149.net>
2551 * sem_res.adb (Large_Storage_Type): A type is large if it
2552 requires as many bits as Positive to store its values and its
2553 bounds are known at compile time.
2554 * sem_ch13.adb (Minimum_Size): Note that this function returns
2555 0 if the size is not known at compile time.
2557 2008-06-06 Nicolas Setton <setton@adacore.com>
2558 Olivier Hainque <hainque@adacore.com>
2560 * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
2561 attribute, parallel descriptive type attached to another
2562 type for debug info generation purposes.
2563 * utils.c (add_parallel_type): New function, register
2564 parallel type to be attached to a type.
2565 (get_parallel_type): New function, fetch a registered
2566 parallel type, if any.
2567 (rest_of_record_type_compilation): Register the parallel
2568 type we make for variable size records.
2569 * gigi.h (add_parallel_type, get_parallel_type): Declare.
2570 * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
2571 parallel debug types we make.
2572 * trans.c (extract_encoding, decode_name): New functions.
2573 (gigi): If the DWARF attribute extensions are available, setup
2575 * lang.opt: Register language specific processing request
2577 * misc.c (gnat_dwarf_extensions): New global variable. How much
2578 do we want of our DWARF extensions. 0 by default.
2579 (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
2580 (gnat_post_options): Map gnat_dwarf_extensions to the
2581 commonuse_gnu_debug_info_extensions for later processing.
2583 2008-06-04 Samuel Tardieu <sam@rfc1149.net>
2585 * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
2587 2008-06-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2589 * Makefile.in (common_tools): Fix typos in $(exeext) extension.
2590 * gnat_ugn.texi (Style Checking)
2591 (Adding the Results of Compiler Checks to gnatcheck Output)
2592 (Example of Binder Output File): Fix typos.
2593 * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
2594 exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
2595 s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
2596 s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
2597 sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
2598 sinfo.ads, utils.c: Fix typos in comments.
2599 * sem_ch6.adb, vms_data.ads: Fix typos in strings.
2601 2008-05-29 Thomas Quinot <quinot@adacore.com>
2603 * sem_eval.adb: Minor reformatting
2605 2008-05-29 Ed Schonberg <schonberg@adacore.com>
2607 * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
2608 is abstract, do not apply abstractness check on subprogram if this is
2609 a renaming declaration.
2611 2008-05-29 Arnaud Charlet <charlet@adacore.com>
2614 * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
2615 allow recognition of program suffix in addition to prefix.
2617 * gnatchop.adb (Locate_Executable): Add support for prefix.
2619 * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
2620 mlib-utl.adb: Adjust calls to Program_Name.
2622 2008-05-29 Robert Dewar <dewar@adacore.com>
2624 * sem_ch3.adb: Minor reformatting
2625 * sem_prag.adb: Minor reformatting
2626 * sem_res.adb: Minor reformatting
2627 * sinput-p.ads: Minor reformatting
2629 2008-05-29 Javier Miranda <miranda@adacore.com>
2632 (Abstract_Interface_List): Add missing support for full type-declaration
2633 associated with synchronized types.
2635 2008-05-29 Robert Dewar <dewar@adacore.com>
2637 * sem_eval.adb (Is_Same_Value): Take care of several more cases
2639 2008-05-28 Ed Schonberg <schonberg@adacore.com>
2641 * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
2642 access type, wrap the expression in a conversion to force an
2643 accessibility check.
2645 * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
2646 accessibility checks even when expansion is disabled in order to
2647 generate messages in the presence of previous errors or in
2648 semantics-only mode.
2650 2008-05-28 Eric Botcazou <ebotcazou@adacore.com>
2652 * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
2653 * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
2655 2008-05-28 Vincent Celier <celier@adacore.com>
2658 * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
2659 preprocessing expressions
2661 2008-05-28 Vincent Celier <celier@adacore.com>
2663 * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
2666 * sinput-p.ads: Minor comment update and reformatting
2668 2008-05-28 Ed Schonberg <schonberg@adacore.com>
2670 * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
2671 type has a deeper level than any master only when it is the type of an
2674 2008-05-28 Javier Miranda <miranda@adacore.com>
2676 * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
2678 2008-05-28 Javier Miranda <miranda@adacore.com>
2680 * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
2681 * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
2682 * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
2683 Add code that was previously located in
2684 Find_Overridden_Synchronized_Primitive because it is only used here.
2686 2008-05-28 Sergey Rybin <rybin@adacore.com>
2688 * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
2689 Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
2691 2008-05-28 Robert Dewar <dewar@adacore.com>
2694 Add missing restrictions, and properly label all GNAT defined ones
2697 Add entry for Ada_Real_Time.Timing_Events.Timing_Event
2698 Add entry for Ada.Task_Termination.Set_Specific_Handler
2699 Add entry for Ada.Task_Termination.Specific_Handler
2702 Add missing restrictions and properly mark all gnat defined ones
2705 (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
2708 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
2710 * gnat_rm.texi: Add missing restrictions, and properly label all
2713 2008-05-28 Robert Dewar <dewar@adacore.com>
2716 (Check_Restriction): violation of restriction No_Finalization is
2717 treated as a serious error to stop expansion
2719 2008-05-28 Robert Dewar <dewar@adacore.com>
2721 * exp_util.adb: Minor reformatting
2722 * exp_util.ads: Minor reformatting.
2724 2008-05-28 Arnaud Charlet <charlet@adacore.com>
2726 * Make-lang.in: Remove gprmake.
2728 * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
2730 2008-05-28 Ed Schonberg <schonberg@adacore.com>
2732 * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
2733 improper progenitor names, and avoid cascaded errors.
2735 2008-05-28 Robert Dewar <dewar@adacore.com>
2737 * gnat_rm.texi: Add note on Old giving warning when applied to constant
2739 * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
2742 2008-05-28 Robert Dewar <dewar@adacore.com>
2744 * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
2747 2008-05-28 Robert Dewar <dewar@adacore.com>
2750 (Expand_Simple_Function_Return): Copy unaligned result into temporary
2752 2008-05-28 Javier Miranda <miranda@adacore.com>
2754 * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
2755 for user-defined predefined primitives.
2757 * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
2758 (Find_Overridden_Synchronized_Primitive): Ditto.
2760 * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
2762 2008-05-27 Arnaud Charlet <charlet@adacore.com>
2764 * a-ststio.adb, s-direio.adb:
2765 Further code clean up of previous change.
2768 2008-05-27 Vincent Celier <celier@adacore.com>
2770 * prj-nmsc.adb: Minor reformatting
2772 2008-05-27 Bob Duff <duff@adacore.com>
2774 * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
2775 untagged private type with a tagged full type, where the full type has
2776 a self reference, create the corresponding class-wide type early, in
2777 case the self reference is "access T'Class".
2779 2008-05-27 Ed Schonberg <schonberg@adacore.com>
2781 * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
2782 tasks and context is an object declaration. create master entity before
2785 2008-05-27 Robert Dewar <dewar@adacore.com>
2787 * mlib-prj.adb: Minor reformatting
2789 * prj-part.adb: Minor reformatting
2791 * prj.ads: Minor reformatting
2793 * exp_ch3.adb: Minor reformatting.
2795 * sem_ch3.ads: Minor reformatting
2797 * sem_eval.adb: Minor reformatting
2799 2008-05-27 Vincent Celier <celier@adacore.com>
2802 <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
2804 2008-05-27 Ed Schonberg <schonberg@adacore.com>
2806 * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
2807 tasks, create an activation chain now, before the expansion into
2808 assignments and build-in-place calls that require the presence of an
2810 (Backend_Processing_Possible): If the component type is inherently
2811 limited, the aggregate must be expanded into individual built-in-place
2814 * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
2815 determine whether an allocation extra parameter must be built, to
2816 handle case of a private type whose full type is a discriminated type
2819 2008-05-27 Bob Duff <duff@adacore.com>
2822 Document the new behavior regarding trampolines.
2824 2008-05-27 Arnaud Charlet <charlet@adacore.com>
2826 * a-direio.adb, a-sequio.adb: Replace address clause by
2827 unrestricted_access, simpler and compatible with .NET.
2829 2008-05-27 Vincent Celier <celier@adacore.com>
2832 (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
2833 a project file, so that symbolic links are not resolved.
2835 2008-05-27 Arnaud Charlet <charlet@adacore.com>
2837 * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
2838 Replace heavy address clause by 'Unrestricted_Access, cleaner and more
2839 portable across GNAT targets, since this kind of address clause is not
2840 supported by VM back-ends (.NET/JGNAT).
2842 2008-05-27 Arnaud Charlet <charlet@adacore.com>
2844 * bindgen.adb: Update comments.
2846 * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
2848 2008-05-27 Vincent Celier <celier@adacore.com>
2850 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
2851 prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
2852 mlib-tgt.adb, prj-env.adb, prj-env.ads:
2853 (Path_Information): New record type
2854 Use component of type Path_Information when there are two paths, one in
2855 canonical format and one in display format.
2856 Update the project manager to these new components.
2858 2008-05-27 Robert Dewar <dewar@adacore.com>
2860 * makeutl.adb: Minor reformatting
2861 * prj-nmsc.adb: Minor reformatting
2862 * s-stausa.adb: Minor reformatting
2863 * s-stausa.ads: Minor reformatting
2864 * sem_ch6.adb: Minor reformatting
2866 2008-05-27 Thomas Quinot <quinot@adacore.com>
2868 * sem_res.adb: Minor comment fixes
2870 2008-05-27 Thomas Quinot <quinot@adacore.com>
2872 * makeutl.adb: Minor code reorganization
2874 * exp_aggr.adb: Add ??? comment
2877 * exp_ch6.adb: Minor reformatting
2879 2008-05-27 Quentin Ochem <ochem@adacore.com>
2881 * s-stausa.adb (Initialize): Updated result initialization, and
2882 initialization of environment stack.
2883 (Fill_Stack): Improved computation of the pattern zone, taking into
2884 account already filled at the calling point.
2885 (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
2886 Measure and Overflow_Guard.
2887 (Report_Result): Fixed computation of the result using new fields of
2890 * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
2891 params by more explicit Stack_Size / Max_Pattern_Size params.
2892 (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
2893 Added Stack_Used_When_Filling field.
2894 (Task_Result): Replaced Measure / Overflow_Guard by more explicit
2895 Min_Measure and Max_Measure fields.
2897 * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
2899 2008-05-27 Vincent Celier <celier@adacore.com>
2902 (Check_File): Make sure that a unit that replaces the same unit in a
2903 project being extended is properly processed.
2905 2008-05-27 Ed Schonberg <schonberg@adacore.com>
2908 (Get_Discr_Value): Remove obsolete code that failed to find the value
2909 of a discriminant for an inherited task component appearing in a type
2912 2008-05-27 Thomas Quinot <quinot@adacore.com>
2914 (System.File_IO.{Close, Delete, Reset}):
2915 Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
2917 (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
2918 Pass File parameter by reference.
2920 2008-05-27 Vincent Celier <celier@adacore.com>
2923 (Process_Sources_In_Multi_Language_Mode): Check that there are not two
2924 sources of the same project that have the same object file name.
2925 (Find_Explicit_Sources): Always remove a source exception that was not
2928 2008-05-27 Thomas Quinot <quinot@adacore.com>
2930 * sem_ch3.adb: Minor reformatting
2932 2008-05-27 Ed Schonberg <schonberg@adacore.com>
2935 (Is_Interface_Conformant): Handle properly a primitive operation that
2936 overrides an interface function with a controlling access result.
2937 (Type_Conformance): If Skip_Controlling_Formals is true, when matching
2938 inherited and overriding operations, omit as well the conformance check
2939 on result types, to prevent spurious errors.
2941 2008-05-27 Vincent Celier <celier@adacore.com>
2943 * makeutl.ads, makeutl.adb:
2944 (Set_Location): New procedure
2945 (Get_Location): New function
2946 (Update_Main): New procedure
2948 2008-05-27 Vincent Celier <celier@adacore.com>
2951 (Check_Library): Allow standard project to be extended as a static
2953 (Get_Mains): Do not inherit attribute Main in an extending library
2956 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
2958 * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
2959 * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
2960 * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
2961 * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
2962 * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
2963 * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
2964 * system-mingw.ads (Always_Compatible_Rep): Likewise.
2965 * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
2966 * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
2967 * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
2969 2008-05-27 Ed Schonberg <schonberg@adacore.com>
2971 * sem_attr.adb: add guard to previous patch.
2973 2008-05-27 Ed Schonberg <schonberg@adacore.com>
2975 * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
2976 a synchronized tagged type, do not attempt to build dispatch table for
2977 full view. The table is built for the corresponding record type, which
2978 has its own declaration.
2980 2008-05-27 Gary Dismukes <dismukes@adacore.com>
2982 * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
2983 to the known type entity E, rather than setting it to Any_Type. Fixes
2984 possible blowup in function Base_Init_Proc, as called from Freeze_Entity
2985 for objects whose type had an illegal constraint.
2987 2008-05-27 Vincent Celier <celier@adacore.com>
2990 Add succinct documentation for attribute Excluded_Source_List_File
2992 2008-05-27 Vincent Celier <celier@adacore.com>
2994 * prj-attr.adb: Add new project level attribute Map_File_Option
2996 * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
2998 * prj.ads: Minor reformatting and comment update
2999 (Project_Configuration): New component Map_File_Option
3001 * snames.adb: New standard name Map_File_Option
3003 * snames.ads: New standard name Map_File_Option
3005 2008-05-27 Vincent Celier <celier@adacore.com>
3007 * xsnames.adb: Remove unused variable Oname
3009 2008-05-27 Doug Rupp <rupp@adacore.com>
3012 (Expand_N_Function_Call): Fix comments. Minor reformatting.
3015 (Expand_Vax_Foreign_Return): Fix comments.
3017 2008-05-27 Thomas Quinot <quinot@adacore.com>
3019 * exp_dist.adb: Minor reformating
3021 2008-05-26 Gary Dismukes <dismukes@adacore.com>
3023 * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
3024 No_Default_Initialization, which is now delayed until the freeze point
3025 of the object. Add a comment about deferral of the check.
3027 * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
3028 on objects is moved here.
3030 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
3032 * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
3033 (Compare_Array_S16): Adjust for above change.
3034 * s-casi32.adb (Uword): Likewise.
3035 (Compare_Array_S32): Likewise.
3036 * s-casi64.adb (Uword): Likewise.
3037 (Compare_Array_S64): Likewise.
3038 * s-caun16.adb (Uhalf): Likewise.
3039 (Compare_Array_U16): Likewise.
3040 * s-caun32.adb (Uword): Likewise.
3041 (Compare_Array_U32): Likewise.
3042 * s-caun64.adb (Uword): Likewise.
3043 (Compare_Array_U64): Likewise.
3045 2008-05-26 Robert Dewar <dewar@adacore.com>
3047 * exp_ch6.adb: Add ??? comment for previous change
3049 * exp_vfpt.adb: Minor reformatting
3051 * exp_vfpt.ads: Add ??? comment for last change
3053 * sem_attr.adb: Add some ??? comments for previous change
3055 * s-vaflop.ads: Add comments for previous change
3057 2008-05-26 Doug Rupp <rupp@adacore.com>
3059 * s-vaflop-vms-alpha.adb:
3060 Remove System.IO use clause, to prevent spurious ambiguities when
3061 package is access through rtsfind.
3063 2008-05-26 Sergey Rybin <rybin@adacore.com>
3065 * tree_io.ads (ASIS_Version_Number): Update because of the changes
3068 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3071 (Resolve_Attribute, case 'address): S (A .. B)' address can be safely
3072 converted to S (A)'address only if A .. B is known to be a non-null
3075 2008-05-26 Doug Rupp <rupp@adacore.com>
3078 (Return_D, Return_F, Return_G): New functions.
3081 (Return_D, Return_F, Return_G): New functions.
3084 (Expand_Vax_Foreign_Return): New procedure
3087 (Expand_Vax_Foreign_Return): New procedure
3090 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
3091 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
3095 (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
3097 * s-vaflop-vms-alpha.adb:
3098 (Return_D, Return_F, Return_G): New functions.
3100 2008-05-26 Gary Dismukes <dismukes@adacore.com>
3102 * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
3103 init proc entity when there is actual default initialization associated
3104 with the component type, to avoid spurious errors on objects of scalar
3105 array types that are marked Is_Public when No_Default_Initialization
3108 2008-05-26 Thomas Quinot <quinot@adacore.com>
3110 * rtsfind.ads, rtsfind.adb:
3111 (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
3112 (Check_RPC): Support per-PCS-kind API versioning.
3114 exp_dist.ads, exp_dist.adb:
3115 (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
3116 (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
3117 library function Get_RACW.
3118 (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
3119 library function Get_Reference.
3120 (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
3121 through an intermediate Any.
3122 (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
3123 going through an intermediate Any.
3125 * sem_dist.adb: Minor reformatting.
3127 2008-05-26 Javier Miranda <miranda@adacore.com>
3129 * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
3130 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
3131 (Is_Internal): Adding documentation on internal entities that have
3132 attribute Interface_Alias (old attribute Abstract_Interface_Alias)
3134 * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
3135 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
3136 Added assertion to force entities with this attribute to have
3137 attribute Is_Internal set to True.
3138 (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
3140 * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
3141 renamed as Derive_Progenitor_Subprograms. In addition, its code is
3142 a new implementation.
3143 (Add_Interface_Tag_Components): Remove special management of
3144 synchronized interfaces.
3145 (Analyze_Interface_Declaration): Minor reformating
3146 (Build_Derived_Record_Type): Minor reformating
3147 (Check_Abstract_Overriding): Avoid reporting error in case of abstract
3148 predefined primitive inherited from interface type because the body of
3149 internally generated predefined primitives of tagged types are generated
3150 later by Freeze_Type
3151 (Derive_Subprogram): Avoid generating an internal name if the parent
3152 subprogram overrides an interface primitive.
3153 (Derive_Subprograms): New implementation that keeps separate the
3154 management of tagged types not implementing interfaces, from tagged
3155 types that implement interfaces.
3156 (Is_Progenitor): New implementation.
3157 (Process_Full_View): Add documentation
3158 (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
3159 by call to Derive_Progenitor_Subprograms.
3161 * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
3162 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
3163 Skip_Controlling_Formals.
3165 * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
3166 (Check_Conventions): New implementation. Remove local subprogram
3167 Skip_Check. Remove formal Search_From of routine Check_Convention.
3168 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
3169 Skip_Controlling_Formals.
3170 (New_Overloaded_Entity): Enable addition of predefined dispatching
3174 (Find_Primitive_Covering_Interface): New subprogram.
3176 * sem_disp.adb (Check_Dispatching_Operation): Disable registering
3177 the task body procedure as a primitive of the corresponding tagged
3179 (Check_Operation_From_Private_Type): Avoid adding twice an entity
3180 to the list of primitives.
3181 (Find_Primitive_Covering_Interface): New subprogram.
3182 (Override_Dispatching_Operation): Add documentation.
3184 * sem_type.adb (Covers): Minor reformatings
3186 * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
3189 (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
3190 (Implements_Interface): New subprogram.
3191 (Is_Parent): Removed.
3192 (Primitive_Names_Match): New subprogram.
3193 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
3194 (Ultimate_Alias): New subprogram.
3196 * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
3198 Remove special management for synchronized types. Rename formal. Remove
3199 internal subprograms Interface_Present_In_Parent and Add_Interface.
3200 (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
3201 on non-record types by code to return false in such case.
3202 (Implements_Interface): New subprogram.
3203 (Is_Parent): Removed. No special management is now required for
3204 synchronized types covering interfaces.
3205 (Primitive_Names_Match): New subprogram.
3206 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
3207 (Ultimate_Alias): New subprogram.
3209 * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
3210 Add internal entities associated with secondary dispatch tables to
3211 the list of tagged type primitives that are not interfaces.
3212 (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
3213 (Make_Predefined_Primitive_Specs): Code reorganization to improve
3214 the management of predefined equality operator. In addition, if
3215 the type has an equality function corresponding with a primitive
3216 defined in an interface type, the inherited equality is abstract
3217 as well, and no body can be created for it.
3219 * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
3220 exp_util to exp_disp.
3221 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
3222 an entity corresponds with one of the predefined primitives required
3223 to implement interfaces.
3224 Update copyright notice.
3226 * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
3227 final check on abstract subprograms all the primitives associated with
3228 interface primitives because they must be visible in the public and
3230 (Write_DT): Use Find_Dispatching_Type to locate the name of the
3231 interface type. This allows the use of this routine, for debugging
3232 purposes, when the tagged type is not fully decorated.
3233 (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
3234 Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
3235 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
3236 entity corresponds with one of the predefined primitives required to
3237 implement interfaces.
3239 * exp_util.adb (Find_Interface_ADT): New implementation
3240 (Find_Interface): Removed.
3242 * sprint.adb (Sprint_Node_Actual): Generate missing output for the
3243 list of interfaces associated with nodes
3244 N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
3246 2008-05-26 Thomas Quinot <quinot@adacore.com>
3248 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
3249 condition for assignment to temporary.
3251 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3253 * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
3254 checks on the upper bound if the index type is a modular type, to
3255 prevent wrap-around computations when size is close to upper bound of
3258 2008-05-26 Robert Dewar <dewar@adacore.com>
3260 * sem_ch3.adb: Minor reformatting
3262 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3264 * sem_ch12.adb (Remove_Parent): Use specification of instance
3265 to retrieve generic parent,
3266 to handle properly the case where the instance is a child unit.
3267 Add guard to handle properly wrapper packages.
3270 2008-05-26 Thomas Quinot <quinot@adacore.com>
3272 * sinfo.ads: Minor reformatting
3274 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
3276 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
3277 Generate a tag check when the result subtype of a function, defined by
3278 an access definition, designates a specific tagged type.
3279 (Make_Tag_Check): New routine.
3281 2008-05-26 Arnaud Charlet <charlet@adacore.com>
3283 * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
3285 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
3287 * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
3288 (builtin_decl_for): Likewise.
3289 * trans.c (gigi): Likewise.
3290 * utils.c (def_builtin_1): Fix formatting.
3292 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
3294 * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
3295 Create the statements which map a string name to protected or task
3298 * exp_ch9.adb: Add with and use clause for Stringt.
3299 Minor code reformatting.
3300 (Build_Entry_Names): New routine.
3301 (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
3302 for flag Build_Entry_Names which controls the allocation of the data
3303 structure for the string names of entries.
3305 * exp_ch9.ads (Build_Entry_Names): New subprogram.
3307 * exp_util.adb (Entry_Names_OK): New function.
3309 * exp_util.ads (Entry_Names_OK): New function.
3311 * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
3312 enumerations RE_Id and RE_Unit_Table.
3314 * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
3315 (Free_Entry_Names_Array): New routine.
3317 * s-taskin.ads: Comment reformatting.
3318 Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
3319 Add component Entry_Names to record Ada_Task_Control_Block.
3320 (Free_Entry_Names_Array): New routine.
3322 * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
3323 dynamically allocate an array
3324 of string pointers. This structure holds string entry names.
3325 (Free_Entry_Names): New routine.
3326 (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
3327 (Set_Entry_Names): New routine.
3330 (Create_Task): Add formal Build_Entry_Names. The flag is used to
3331 control the allocation of the data structure which stores entry names.
3332 (Set_Entry_Name): New routine.
3335 Add with and use clause for Ada.Unchecked_Conversion.
3336 (Finalize): Deallocate the entry names array.
3337 (Free_Entry_Names): New routine.
3338 (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
3339 create an array of string pointers to hold the entry names.
3340 (Set_Entry_Name): New routine.
3343 Add field Entry_Names to record Protection_Entries.
3344 (Initialize_Protection_Entries): Add formal Build_Entry_Names.
3345 (Set_Entry_Name): New routine.
3347 2008-05-26 Vincent Celier <celier@adacore.com>
3350 (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
3353 (Project_Configuration): New component Shared_Lib_Driver
3355 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3358 (Cleanup_Scopes): For a protected operation, transfer finalization list
3359 to protected body subprogram, to force cleanup actions when needed.
3361 2008-05-26 Robert Dewar <dewar@adacore.com>
3363 * sem_cat.adb: Minor reformatting
3365 * gnatname.adb: Minor reformatting
3367 * osint.ads: Minor reformatting
3369 * s-carun8.ads: Minor reformatting
3371 * g-heasor.ads: Minor comment fix (unit is now pure)
3373 2008-05-26 Robert Dewar <dewar@adacore.com>
3376 (Expand_Current_Value): Properly type generated integer literal
3378 2008-05-26 Sergey Rybin <rybin@adacore.com>
3380 * gnat_ugn.texi: Add description for the new gnatcheck rule -
3381 Separate_Numeric_Error_Handlers.
3383 2008-05-26 Pascal Obry <obry@adacore.com>
3385 * sem_aggr.adb: Minor reformatting.
3387 2008-05-26 Jose Ruiz <ruiz@adacore.com>
3390 (To_Target_Priority): Setting the time slice value to 0 or greater sets
3391 the scheduling policy to FIFO within priorities or round-robin
3393 Hence, the priority must be set in this case to the one selected by the
3396 2008-05-26 Ed Schonberg <schonberg@adacore.com>
3399 (Remove_Parent): If the enclosing scope is an instance whose generic
3400 parent is declared within some parent scope of the just completed
3401 instance, make full views of the entities in that parent visible, when
3404 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
3406 * mingw32.h (STD_MINGW): Set to true for target w64.
3408 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
3410 * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
3411 instead of TREE_STATIC on the ADDR_EXPR.
3413 2008-05-24 Eric Botcazou <ebotcazou@adacore.com>
3415 * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
3416 (Sloc_to_locus): Do not overwrite known GCC locations when translating
3417 GNAT standard locations.
3419 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
3421 * gigi.h (mark_visited): Declare.
3422 * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
3423 only the topmost node of expressions.
3424 (elaborate_expression_1): Look deeper for read-only variables.
3425 * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
3426 (mark_visited): Move logic to mark_visited_r. Invoke walk_tree.
3427 (mark_visited_r): New function.
3429 2008-05-23 Vincent Celier <celier@adacore.com>
3431 * snames.adb: New standard name Excluded_Source_List_File.
3433 * snames.ads: New standard name Excluded_Source_List_File.
3435 * prj-attr.adb: New project level attribute Excluded_Source_List_File.
3437 * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
3438 Get excluded sources from
3439 file indicated by attribute Excluded_Source_List_File, when present and
3440 neither Excluded_Source_Files nor Locally_Removed_Files are declared.
3442 2008-05-23 Robert Dewar <dewar@adacore.com>
3444 * exp_dist.adb: Minor reformatting
3446 2008-05-23 Ed Schonberg <schonberg@adacore.com>
3448 * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
3449 slice, convert it to an indexed component, which is equivalent, more
3450 efficient, and usable even if the slice itself is not addressable.
3452 2008-05-23 Olivier Hainque <hainque@adacore.com>
3454 * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
3455 convention also allows access to named compiler built-in subprograms
3456 such as the GCC __builtin family.
3458 2008-05-23 Vincent Celier <celier@adacore.com>
3460 * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
3461 sep. If there are several possibilities, choose the one with the
3464 2008-05-23 Vincent Celier <celier@adacore.com>
3466 * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
3467 back end switches when executable specified with --GCC= is same as
3468 default, even if there are additional options.
3471 Document when the back end switches from the ALI file are taken into
3472 account when gnatlink is invoked with --GCC=
3474 2008-05-23 Thomas Quinot <quinot@adacore.com>
3477 (copy_File): Do not open destination file if source file is unreadable.
3479 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
3481 * utils.c (handle_type_generic_attribute): Adjust to accept
3482 fixed arguments before an elipsis.
3484 2008-05-21 Thomas Quinot <quinot@adacore.com>
3486 * g-sothco.ads, g-sothco.adb: New files.
3488 2008-05-20 Thomas Quinot <quinot@adacore.com>
3490 * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
3492 * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
3493 Add missing "with" of Ada.Unchecked_Conversion
3495 * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
3496 g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
3497 g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
3498 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
3499 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
3500 g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
3501 Move common code out of GNAT.Sockets.Thin implementations and into
3503 New constant SIZEOF_fd_set
3504 New flag Has_Sockaddr_Len
3505 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3507 * g-stsifd-sockets.adb
3508 (Create): Remove call to Set_Length; use Set_Family to set the family
3509 and (on appropriate platforms) length fields in struct sockaddr.
3511 * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
3512 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
3513 g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
3514 Move common code out of GNAT.Sockets.Thin implementations and into
3517 * g-socket.ads, g-socket.adb:
3518 Move common code out of GNAT.Sockets.Thin implementations and into
3520 (Connect_Socket, Accept_Socket): Provide new versions of these two
3521 routines that operate with a user specified timeout.
3522 (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
3523 this is now handled automatically by Set_Family on platforms that
3527 Move common code out of GNAT.Sockets.Thin implementations and into
3529 (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
3530 this constant to 0 (not -1) because we use it to initialize an
3531 unsigned_char value.
3532 Align values for numeric constants only.
3533 Handle the case of systems that do not support AF_INET6.
3534 New constant SIZEOF_fd_set
3535 New flag Has_Sockaddr_Len
3536 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3538 * gsocket.h: New flag Has_Sockaddr_Len
3539 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
3541 2008-05-20 Santiago Uruena <uruena@adacore.com>
3543 * i-cobol.ads: Interfaces.COBOL should be preelaborate.
3545 2008-05-20 Arnaud Charlet <charlet@adacore.com>
3547 * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
3548 the underlying issue with malloc/free has been fixed. Remove associated
3551 Related to PR ada/24533
3553 2008-05-20 Robert Dewar <dewar@adacore.com>
3555 * ali.adb: Correct casing of ASCII.NUL
3557 * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
3560 2008-05-20 Robert Dewar <dewar@adacore.com>
3561 Gary Dismukes <dismukes@adacore.com>
3563 * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
3564 overflow if result converted to wider integer type.
3565 (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
3566 discriminated types when discriminant checks are suppressed.
3568 2008-05-20 Vincent Celier <celier@adacore.com>
3570 * cstand.adb (Print_Standard): Issue the correct Size clause for type
3571 Wide_Wide_Character.
3573 2008-05-20 Tristan Gingold <gingold@adacore.com>
3575 * decl.c: Do not emit a variable for a object that has an address
3576 representation clause whose value is known at compile time.
3577 When a variable has an address clause whose value is known at compile
3578 time, refer to this variable by using directly the address instead of
3579 dereferencing a pointer.
3581 2008-05-20 Robert Dewar <dewar@adacore.com>
3584 * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
3585 subtypes, always False for non-modular types.
3586 Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
3587 entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
3588 for Shared_Storage package.
3589 (Is_RACW_Stub_Type): New entity flag.
3592 (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
3593 case where we have a modular type with a non-binary modules.
3594 Comments reformattings.
3596 * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
3599 2008-05-20 Javier Miranda <miranda@adacore.com>
3602 (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
3603 tests did not covered the case in which the type of the aggregate has
3604 no progenitors but some its parents has progenitors.
3606 2008-05-20 Gary Dismukes <dismukes@adacore.com>
3607 Hristian Kirtchev <kirtchev@adacore.com>
3610 (Expand_N_Object_Declaration): Correct the condition which triggers the
3611 generation of a call to Displace when initializing a class-wide object.
3612 (Build_Dcheck_Functions): Build discriminant-checking for null variants
3613 when Frontend_Layout_On_Target is true to ensure that they're available
3614 for calling when a record variant size function is built in Layout.
3616 2008-05-20 Ed Schonberg <schonberg@adacore.com>
3618 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
3619 procedure for a derived type retrieve the discriminant values from the
3620 parent using the corresponding discriminant.
3621 (Expand_N_Assignment_Statement): Skip generation of implicit
3622 if-statement associated with controlled types if we are
3623 compiling with restriction No_Finalization.
3625 2008-05-20 Vincent Celier <celier@adacore.com>
3627 * prj.adb (Hash (Project_Id)): New function
3628 (Project_Empty): Add new component Interfaces_Defined
3630 * prj.ads (Source_Data): New component Object_Linked
3631 (Language_Config): New components Object_Generated and Objects_Linked
3632 (Hash (Project_Id)): New function
3633 (Source_Data): New Boolean components In_Interfaces and
3634 Declared_In_Interfaces.
3635 (Project_Data): New Boolean component Interfaces_Defined
3638 New project level attribute Object_Generated and Objects_Linked
3639 Add new project level attribute Interfaces
3641 * prj-dect.adb: Use functions Present and No throughout
3642 (Parse_Variable_Declaration): If a string type is specified as a simple
3643 name and is not found in the current project, look for it also in the
3644 ancestors of the project.
3647 Replace procedure Make with procedures Initialize, Process and Finalize
3648 to implement H414-023: process different directories with different
3650 Use functions Present and No throughout
3653 Replace procedure Make with procedures Initialize, Process and Finalize
3656 (Add_Source): Set component Object_Exists and Object_Linked accordnig to
3657 the language configuration.
3658 (Process_Project_Level_Array_Attributes): Process new attributes
3659 Object_Generated and Object_Linked.
3660 (Report_No_Sources): New Boolean parameter Continuation, defaulted to
3661 False, to indicate that the erreor/warning is a continuation.
3662 (Check): Call Report_No_Sources with Contnuation = True after the first
3664 (Error_Msg): Process successively contnuation character and warning
3666 (Find_Explicit_Sources): Check that all declared sources have been found
3667 (Check_File): Indicate in hash table Source_Names when a declared source
3669 (Check_File): Set Other_Part when found
3670 (Find_Explicit_Sources): In multi language mode, check if all exceptions
3671 to the naming scheme have been found. For Ada, report an error if an
3672 exception has not been found. Otherwise, disregard the exception.
3673 (Check_Interfaces): New procedure
3674 (Add_Source): When Other_Part is defined, set mutual pointers in spec
3676 (Check): In multi-language mode, call Check_Interfaces
3677 (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
3678 for an excluded source.
3679 (Remove_Source): A source replacing a source in the interfaces is also
3682 * prj-pars.adb: Use function Present
3684 * prj-part.adb: Use functions Present and No throughout
3685 (Parse_Single_Project): Set the parent project for child projects
3686 (Create_Virtual_Extending_Project): Register project with no qualifier
3687 (Parse_Single_Project): Allow an abstract project to be extend several
3688 times. Do not allow an abstract project to extend a non abstract
3691 * prj-pp.adb: Use functions Present and No throughout
3692 (Print): Take into account the full associative array attribute
3695 * prj-proc.adb: Use functions Present and No throughout
3696 (Expression): Call itself with the same From_Project_Node for the
3697 default value of an external reference.
3699 * prj-strt.adb: Use functions Present and No throughout
3700 (Parse_Variable_Reference): If a variable is specified as a simple name
3701 and is not found in the current project, look for it also in the
3702 ancestors of the project.
3704 * prj-tree.ads, prj-tree.adb (Present): New function
3706 Use functions Present and No throughout
3707 (Parent_Project_Of): New function
3708 (Set_Parent_Project_Of): New procedure
3710 * snames.ads, snames.adb:
3711 Add new standard names Object_Generated and Objects_Linked
3713 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
3715 * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
3716 and the derived type are of the same kind.
3717 (Expand_Call): Generate type conversions for actuals of
3718 record or array types when the parent and the derived types differ in
3719 size and/or packed status.
3721 2008-05-20 Javier Miranda <miranda@adacore.com>
3722 Ed Schonberg <schonberg@adacore.com>
3724 * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
3725 generating dispatch tables of locally defined tagged types statically.
3726 Remove implicit if-statement that is no longer required.
3727 (Expand_Dispatching_Call): If this is a call to an instance of the
3728 generic dispatching constructor, the type of the first argument may be
3729 a subtype of Tag, so always use the base type to recognize this case.
3731 2008-05-20 Thomas Quinot <quinot@adacore.com>
3734 (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
3735 and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
3736 assigning NULL into the result, to avoid a spurious warning.
3737 (Add_RACW_Features, case Same_Scope): Add assertion that designated type
3739 (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
3741 (Build_From_Any_Function, Build_To_Any_Function,
3742 Build_TypeCode_Function): For a type that has user-specified stream
3743 attributes, use an opaque sequence of octets as the representation.
3745 2008-05-20 Kevin Pouget <pouget@adacore.com>
3747 * exp_smem.ads, exp_smem.adb: Construction of access and assign
3748 routines has been replaced by an instantiation of
3749 System.Shared_Storage.Shared_Var_Procs generic package, while expanding
3750 shared variable declaration.
3751 Calls to access and assign routines have been replaced by calls to
3752 Read/Write routines of System.Shared_Storage.Shared_Var_Procs
3753 instantiated package.
3755 * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
3756 It identifies the new generic package added in s-shasto.
3758 * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
3759 is instantiated for each shared passive variable. It provides
3760 supporting procedures called upon each read or write access by the
3764 For this runtime unit (always compiled in GNAT mode), we allow
3765 stream attributes references for limited types for the case where
3766 shared passive objects are implemented using stream attributes,
3767 which is the default in GNAT's persistent storage implementation.
3769 2008-05-20 Ed Schonberg <schonberg@adacore.com>
3772 (Freeze_Enumeration_Type): For a subtype that inherits a foreign
3773 convention from its base type, do not set the type to that of integer,
3774 because it may inherit a size clause.
3775 Warn on a size clause with a size different
3776 from that of Integer, if the type has convention C.
3778 2008-05-20 Vincent Celier <celier@adacore.com>
3781 (Scan_Args): Rewrite to take into account new switch --and to separate
3782 arguments into sections.
3783 (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
3784 section, then Finalize.
3786 2008-05-20 Tristan Gingold <gingold@adacore.com>
3788 * init.c: Enable stack probing on ppc-linux.
3790 * tracebak.c: Add symbolic traceback for ppc-linux.
3792 * system-linux-ppc.ads: Enable stack probing on ppc-linux.
3794 2008-05-20 Arnaud Charlet <charlet@adacore.com>
3797 (common-tools): New rule, to avoid parallel build failure on gnat tools.
3798 Reenable parallel builds on this Makefile.
3800 * Make-lang.in: Update dependencies.
3802 2008-05-20 Robert Dewar <dewar@adacore.com>
3804 * opt.ads (Treat_Restrictions_As_Warnings): New switch
3806 * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
3807 Treat_Restrictions_As_Warnings.
3809 * switch-c.adb: Recognize new switch -gnatr
3811 * usage.adb: Add line for -gnatr
3813 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
3816 (P_Access_Definition): Change the error message when parsing "access
3817 all" in Ada 95 mode. The message no longer forces the user to recompile
3818 in 05 mode only to discover that anonymous access types are not allowed
3821 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
3824 (P_Protected): Update the error message on missing "-gnat05" switch when
3825 using interfaces in conjunction with protected types. Remove the
3826 incorrect error message associated with the presence of "private" after
3829 2008-05-20 Ed Schonberg <schonberg@adacore.com>
3831 * sem_aggr.adb: Update comments.
3832 Improve previous change for PR ada/17985
3834 2008-05-20 Thomas Quinot <quinot@adacore.com>
3837 (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
3838 the visible part of the spec of a remote types unit.
3839 (Validate_Remote_Access_Object_Type_Declaration):
3840 New local subprogram Is_Valid_Remote_Object_Type, replaces
3841 Is_Recursively_Limited_Private.
3842 (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
3843 non-controlling formals (and the return type, even though this is not
3844 explicit in the standard) must support external streaming.
3845 (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
3846 as above for of RAS types and RCI subprograms. (The return type is not
3848 Update comments related to RACWs designating limited interfaces per
3849 ARG ruling on AI05-060.
3851 * sem_util.ads, sem_util.adb
3852 (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
3853 Is_Remote_Call_Interface to identify RACW types in a stable and
3854 consistent way. We used to rely in this predicate on the privateness of
3855 the designated type and its ancestors, but depending on the currently
3856 visible private parts, this caused false negatives. We now uniformly
3857 rely on checks made at the point where the RACW type is declared.
3858 (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
3860 2008-05-20 Javier Miranda <miranda@adacore.com>
3861 Ed Schonberg <schonberg@adacore.com>
3862 Hristian Kirtchev <kirtchev@adacore.com>
3865 (Analyze_Object_Declaration): Fix over-conservative condition
3866 restricting use of predefined assignment with tagged types that have
3868 (Analyze_Object_Declaration): Relax the check regarding deferred
3869 constants declared in scopes other than packages since they can be
3870 completed with pragma Import.
3871 Add missing escaping of all-caps word 'CPP' in error messages.
3872 (Build_Discriminated_Subtype): Do not inherit representation clauses
3873 from parent type if subtype already carries them, because they are
3874 inherited earlier during derivation and already include those that may
3875 come from a partial view.
3877 * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
3878 Check the declarations of a subprogram body for proper deferred
3879 constant completion.
3881 * sem_ch7.ads, sem_ch7.adb
3882 (Inspect_Deferred_Constant_Completion): Moved to sem_util.
3884 2008-05-20 Ed Schonberg <schonberg@adacore.com>
3885 Thomas Quinot <quinot@adacore.com>
3888 (Try_Indexed_Call): Handle properly a construct of the form F(S) where
3889 F is a parameterless function that returns an array, and S is a subtype
3891 (Analyze_Call): Insert dereference when the prefix is a parameterless
3892 function that returns an access to subprogram and the call has
3894 Reject a non-overloaded call whose name resolves to denote
3895 a primitive operation of the stub type generated to support a remote
3896 access-to-class-wide type.
3898 2008-05-20 Ed Schonberg <schonberg@adacore.com>
3901 (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
3902 when there is a use clause for the same entity in the context.
3903 (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
3904 created for a stream attribute of an abstract type or interface type.
3906 2008-05-20 Thomas Quinot <quinot@adacore.com>
3908 * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
3912 (Add_One_Interp): Ignore any interpretation that is a primitive
3913 operation of an RACW stub type (these primitives are only executed
3914 through dispatching, never through static calls).
3915 (Collect_Interps): When only one interpretation has been found, set N's
3916 Entity and Etype to that interpretation, otherwise Entity and Etype may
3917 still refer to an interpretation that was ignored by Add_One_Interp,
3918 in which case would end up with being marked as not overloaded but with
3919 an Entity attribute not pointing to its (unique) correct interpretation.
3921 2008-05-20 Ed Schonberg <schonberg@adacore.com>
3924 (Eval_Slice): Warn when a slice whose discrete range is a subtype name
3925 denotes the whole array of its prefix.
3927 2008-05-20 Robert Dewar <dewar@adacore.com>
3929 * sem_res.adb (Resolve_Op_Not): Warn on double negation
3931 2008-05-20 Ed Schonberg <schonberg@adacore.com>
3934 (Print_Itype): Do not modify the sloc of the component type of a
3935 (packed) array itype, because it is an unrelated type whose source
3936 location is independent of the point of creation of the itype itself.
3938 2008-05-20 Thomas Quinot <quinot@adacore.com>
3940 * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
3943 2008-05-20 Robert Dewar <dewar@adacore.com>
3944 Vincent Celier <celier@adacore.com>
3946 * vms_data.ads: Add entry for -gnatr
3947 Put GNAT SYNC section in proper alpha order
3948 Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
3950 * gnat_ugn.texi: Add documentation for new gnatname switch --and
3951 Update the style checks section
3952 Add documentation of -gnatr
3953 Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
3954 subsection the explanation how compiler checks should be disabled for
3956 Update the list of Ada 95 reserved words used by in the project language
3957 Add documentation for project qualifiers.
3958 Document that abstract projects may be extended by different projects in
3959 the same project tree.
3960 Add documentation for gnatmake switch -d
3962 * ug_words: Add -gnatyy VMS equivalence string.
3963 Add entry for -gnatr
3965 2008-05-20 Bob Duff <duff@adacore.com>
3968 (Set_Handler): Remove code from both of these that implements
3969 RM-D.15(15/2), because it causes a race condition and potential
3971 (Process_Queued_Events): Add comment explaining "exception when others
3972 => null". Add clarifying ".all", even though implicit .all is legal
3975 2008-05-20 Arnaud Charlet <charlet@adacore.com>
3977 * s-winext.ads: Replace representation clause by pragma Pack. Gives
3978 equivalent representation, but has the advantage of allowing
3979 compilation of this file under 64 bits platforms.
3981 * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
3983 * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
3986 Don't define dummy implementation of convert_addresses on ppc-linux.
3988 2008-05-20 Ed Schonberg <schonberg@adacore.com>
3991 (Expand_Ctrl_Function_Call): Do not attach result to finalization list
3992 if expression is aggregate component.
3994 2008-05-20 Robert Dewar <dewar@adacore.com>
3996 * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
3997 sem_ch12.adb: Update comments. Minor reformatting.
4001 * s-unstyp.ads: Fixed some typos in comments.
4003 2008-05-20 Arnaud Charlet <charlet@adacore.com>
4005 * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
4008 * g-socthi-vxworks.ads: Update to latest socket changes.
4010 * a-caldel-vms.adb: Resync with a-caldel spec.
4012 * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
4015 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
4017 * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
4018 for dummy types pointed to by the converted pointer types.
4020 2008-05-15 Eric Botcazou <ebotcazou@adacore.com>
4022 * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
4023 of records and unions.
4024 (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
4026 2008-05-14 Samuel Tardieu <sam@rfc1149.net>
4027 Robert Dewar <dewar@adacore.com>
4029 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
4030 restrictions to the prefix of 'Old.
4031 * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
4032 * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
4035 2008-05-13 Eric Botcazou <ebotcazou@adacore.com>
4039 * utils.c (convert) <INTEGER_TYPE>: When converting an additive
4040 expression to an integral type with lower precision, use NOP_EXPR
4041 directly in a couple of special cases.
4043 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
4044 Ed Schonberg <schonberg@adacore.com>
4046 * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
4047 constraint expressions.
4049 2008-05-12 Tomas Bily <tbily@suse.cz>
4051 * utils2.c (known_alignment, contains_save_expr_p)
4052 (gnat_mark_addressable): Use CASE_CONVERT.
4053 * decl.c (annotate_value): Likewise.
4054 * trans.c (maybe_stabilize_reference): Likewise.
4055 * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
4056 * utils.c (rest_of_record_type_compilation): Likewise.
4057 * trans.c (protect_multiple_eval, Attribute_to_gnu)
4058 (protect_multiple_eval): Likewise.
4060 2008-05-08 Andreas Schwab <schwab@suse.de>
4062 * utils.c (handle_pure_attribute, init_gigi_decls): Rename
4063 DECL_IS_PURE to DECL_PURE_P.
4065 2008-05-05 Eric Botcazou <ebotcazou@adacore.com>
4067 * decl.c (maybe_pad_type): Add ??? comment.
4069 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
4071 * decl.c (components_to_record): Zero the alignment of the qualified
4072 union built for the variant part upon creating it.
4074 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
4076 * decl.c (maybe_pad_type): Try to get a form of the type with integral
4077 mode even if the alignment is not a factor of the original size. But
4078 make sure to create the inner field with the original size. Reorder.
4079 * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
4080 record as always addressable.
4081 * utils.c (convert): Deal specially with conversions between original
4082 and packable versions of a record type.
4083 * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
4084 recognizing an assignment between padded objects.
4086 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
4088 * decl.c (make_packable_type): Resize the last component to its RM size
4089 only if it is of an aggregate type.
4090 * trans.c (call_to_gnu): Fix nit in comment.
4091 (gnat_to_gnu): Likewise.
4093 2008-04-30 Samuel Tardieu <sam@rfc1149.net>
4095 * Makefile.in: Adapt sh4-linux target.
4097 2008-04-29 Ed Schonberg <schonberg@adacore.com>
4100 * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
4101 tagged type by an untagged protected or task type.
4103 2008-04-28 Eric Botcazou <ebotcazou@adacore.com>
4104 Tristan Gingold <gingold@adacore.com>
4107 * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
4108 of aliased objects with an unconstrained nominal subtype.
4109 Cap the promotion to the effective alignment of the word mode.
4111 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4113 * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
4114 (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
4115 Use '&&' instead of ';'.
4117 2008-04-24 Olivier Hainque <hainque@adacore.com>
4119 * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
4120 doesn't require signed arithmetic anymore.
4122 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
4124 * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
4125 (call_to_gnu): Don't set TREE_INVARIANT.
4126 * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
4128 2008-04-22 Joel Sherrill <joel.sherrill@oarcorp.com>
4130 * s-osinte-rtems.adb: Add sigalstack function.
4131 * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
4132 function. Add Alternate_Stack and Alternate_Stack_Size.
4133 Add missing process_shared field to pthread_condattr_t
4134 and change ss_low_priority to int from timespec.
4136 2008-04-22 Samuel Tardieu <sam@rfc1149.net>
4138 * i-forbla.adb: Link against -llapack and -lblas by default
4139 instead of the private -lgnalasup.
4141 2008-04-21 Olivier Hainque <hainque@adacore.com>
4143 Access to most C builtins from Ada
4144 * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
4145 (handle_pure_attribute, handle_novops_attribute,
4146 handle_nonnull_attribute, handle_sentinel_attribute,
4147 handle_noreturn_attribute, handle_malloc_attribute,
4148 handle_type_generic_attribute): New attribute handlers, from C fe.
4149 (gnat_internal_attribute_table): Map the new handlers.
4150 (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
4151 (init_gigi_decls): ... here.
4152 (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
4153 Move to a section dedicated to builtins processing.
4154 (build_void_list_node, builtin_type_for_size): New functions.
4155 (def_fn_type, get_nonnull_operand): Likewise.
4156 (install_builtin_elementary_type, install_builtin_function_types,
4157 install_builtin_attributes): Likewise.
4158 (fake_attribute_handler): Fake handler for attributes we don't
4160 (def_builtin_1): New function, worker for DEF_BUILTIN.
4161 (install_builtin_functions): New function.
4162 (gnat_install_builtins): Move to the builtins processing section.
4163 Now calling the newly introduced installers.
4165 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
4167 * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
4168 constant objects, but not exceptions.
4169 * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
4171 * utils.c (create_var_decl_1): Likewise.
4172 * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
4173 the type when copying to padded object and the source is a constructor.
4175 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
4177 * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
4178 alignment, reset it to zero if it would end up not being greater
4179 than that of the type.
4181 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
4183 * decl.c (maybe_pad_type): Only generate the XVS parallel type if
4184 the padded type has a variable size.
4186 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
4188 * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
4189 target pointer mechanism as soon as the size is not constant.
4191 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
4193 * gigi.h (create_var_decl_1): Declare.
4194 (create_var_decl): Turn into a macro invoking create_var_decl_1.
4195 (create_true_var_decl): Likewise.
4196 * utils.c (create_var_decl_1): Make global and reorder parameters.
4197 (create_var_decl): Delete.
4198 (create_true_var_decl): Likewise.
4200 2008-04-17 Eric Botcazou <ebotcazou@adacore.com>
4202 * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
4204 * fe.h (Debug_Flag_Dot_A): Delete.
4205 * debug.adb (-gnatd.a): Update documentation.
4207 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
4209 * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
4210 "not null" parameter.
4212 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
4214 * g-socket.adb: Add a message "IPv6 not supported" to the
4215 Socket_Error exception.
4217 2008-04-16 Samuel Tardieu <sam@rfc1149.net>
4220 * sem_ch12.adb (Instantiate_Type): Check whether the full view of
4221 the type is known instead of the underlying type.
4223 2008-04-15 Ed Schonberg <schonberg@adacore.com>
4226 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
4227 procedure for a derived type retrieve the discriminant values from
4228 the parent using the corresponding discriminant.
4230 2008-04-15 Samuel Tardieu <sam@rfc1149.net>
4231 Gary Dismukes <dismukes@adacore.com>
4234 * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
4235 which is not an entity (and hence not a package).
4236 (End_Use_Package): Ditto.
4238 2008-04-15 Ed Schonberg <schonberg@adacore.com>
4241 * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
4242 protected operation that matches the signature, not only an entry, a
4243 regular subprogram or a literal.
4245 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
4247 * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
4248 * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
4249 if a size or alignment is specified. Do not take into account
4250 alignment promotions for the computation of the object's size.
4251 <type>: Call maybe_pad_type only if a size or alignment is specified.
4252 (maybe_pad_type): Really reuse the RM_Size of the original type if
4254 * trans.c (Attribute_to_gnu): Fix a couple of nits.
4255 * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
4256 statements. Use the padded view of the type when copying between
4257 padded objects of the same underlying type.
4259 2008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4261 * vms_data.ads: Fix typo in constant.
4262 * gen-soccon.c: Fix typo in error string.
4263 * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
4265 * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
4266 bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
4267 erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
4268 exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
4269 exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
4270 g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
4271 mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
4272 s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
4273 s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
4274 sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
4275 sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
4276 sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
4277 sinfo.ads: Fix typos in comments.
4279 2008-04-14 Robert Dewar <dewar@adacore.com>
4281 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
4282 to every non-object and change error message.
4284 2008-04-14 Robert Dewar <dewar@adacore.com>
4286 * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
4287 * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
4290 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4293 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
4294 apply pragma Linker_Section on type.
4296 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4299 * sem_prag.adb (Error_Pragma_Ref): New.
4300 (Process_Convention): Specialized message for non-local
4301 subprogram renaming. Detect the problem in homonyms as well.
4303 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4306 * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
4307 * sem_ch12.adb (Instantiate_Object): Use it.
4308 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
4309 storage pool denotes a variable as per RM 13.11(15).
4311 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4313 * sem_util.ads, sem_util.adb (In_Subprogram): New function.
4314 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
4316 2008-04-14 Rolf Ebert <rolf.ebert.gcc@gmx.de>
4319 * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
4320 line endings even on non-Unix platforms.
4322 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
4325 * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
4326 renaming information.
4328 2008-04-13 Samuel Tardieu <sam@rfc1149.net>
4331 * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
4334 2008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4336 * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
4337 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
4338 snames.ads, sprint.adb, stand.ads, stringt.ads,
4339 styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
4340 switch.ads, sysdep.c, table.adb, table.ads,
4341 targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
4342 trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
4343 uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
4344 vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
4345 widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
4346 xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
4349 * sem_ch10.adb, sem_ch10.ads,
4350 sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
4351 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
4352 sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
4353 sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
4354 sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
4355 sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
4356 sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
4357 sem_warn.ads: Fix comment typos.
4359 * s-secsta.adb, s-sequio.ads, s-shasto.ads,
4360 s-soflin.ads, s-stalib.ads, s-stausa.adb,
4361 s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
4362 s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
4363 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
4364 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
4365 s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
4366 s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
4367 s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
4368 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
4369 s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
4370 s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
4371 s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
4372 s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
4373 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
4374 scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
4375 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
4376 sem_cat.adb, sem_cat.ads: Fix comment typos.
4378 2008-04-12 Joel Sherrill <joel@oarcorp.com>
4381 * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
4383 2008-04-12 Arnaud Charlet <charlet@adacore.com>
4385 * s-linux-hppa.ads: Fix syntax errors.
4387 2008-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4389 * gnat_ugn.texi: Fix typos.
4390 * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
4391 restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
4392 s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
4393 s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
4394 s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
4395 s-finimp.adb, s-finroo.ads, s-fishfl.ads,
4396 s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
4397 s-hibaen.ads, s-htable.ads, s-imgcha.adb,
4398 s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
4399 s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
4400 s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
4401 s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
4402 s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
4403 s-osinte-darwin.ads, s-osinte-freebsd.ads,
4404 s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
4405 s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
4406 s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
4407 s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
4408 s-parame-hpux.ads, s-parame-vms-alpha.ads,
4409 s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
4410 s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
4411 s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
4412 s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
4413 s-rident.ads: Fix comment typos.
4415 2008-04-09 Samuel Tardieu <sam@rfc1149.net>
4418 * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
4419 environment if generic instance is a top-level one.
4421 2008-04-09 Doug Rupp <rupp@adacore.com>
4423 * decl.c (validate_size): Set minimum size for fat pointers same as
4424 access types. Code clean ups.
4426 * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
4427 (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
4429 * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
4431 * s-crtl.ads (malloc32) New function, alias for malloc
4432 (realloc32) New function, alias for realloc
4434 * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
4436 * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
4437 allocator size is 32 and default pointer size is 64.
4438 (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
4439 lhs type if smaller, whatever the modes.
4441 * gigi.h (malloc32_decl): New macro definition
4443 * utils.c (init_gigi_decls): New malloc32_decl
4444 Various code clean ups.
4446 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
4447 Task_Address vice System.Address.
4449 * s-taspri-vms.ads: Import System.Aux_DEC
4450 (Task_Address): New subtype of System.Aux_DEC.Short_Address
4451 (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
4453 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
4454 Task_Address vice System.Address.
4456 * s-inmaop-vms.adb: Import System.Task_Primitives
4457 (To_Address): Unchecked convert to Task_Address vice System.Address
4459 * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
4461 (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
4462 (To_Address) Unchecked convert to Task_Address vice System.Address
4464 * s-tpopde-vms.adb: Remove unnecessary warning pragmas
4466 * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
4468 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4470 * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
4471 (fdesc_type_node): Define.
4472 (null_fdesc_node): Likewise.
4473 * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
4474 uses descriptors for vtables and the type comes from a dispatch table,
4475 return the descriptor type.
4476 * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
4477 uses descriptors for vtables and the type comes from a dispatch table,
4478 build a descriptor in the static case and copy the existing one in the
4480 (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
4481 the type is a pointer-to-subprogram coming from a dispatch table,
4482 return the null descriptor.
4483 <N_Unchecked_Type_Conversion>: If the target uses descriptors for
4484 vtables, the source type is the descriptor type and the target type
4485 is a pointer type, first build the pointer.
4486 * utils.c (init_gigi_decls): If the target uses descriptors for vtables
4487 build the descriptor type and the null descriptor.
4489 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4491 * decl.c (prepend_attributes): Fix typo.
4492 * trans.c (Pragma_to_gnu): Likewise.
4493 * utils.c (gnat_genericize): Likewise.
4495 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4496 Richard Kenner <kenner@adacore.com>
4498 * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
4499 * decl.c (gnat_to_gnu_entity): Adjust for above change.
4500 <E_Record_Type>: Try to get a better form of the component for
4501 packing, even if it has an integral mode.
4502 <E_Record_Subtype>: Likewise.
4503 * trans.c (gnat_to_gnu): Do not require BLKmode for the special
4504 exception suppressing the final conversion between record types.
4506 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4508 * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
4509 alignment for space, promote the alignment of non-scalar variables with
4510 no size and alignment.
4511 * gigi.h (gnat_types_compatible_p): Declare.
4512 * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
4513 * trans.c (gnat_to_gnu): Revert revision 129339 change. Minor cleanup.
4514 * utils.c (gnat_types_compatible_p) : New predicate.
4515 (convert): Use it throughout to test for cases where a mere view
4516 conversion is sufficient.
4517 * utils2.c (build_binary_op): Minor tweaks.
4518 (build_unary_op): Likewise.
4520 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4522 * decl.c (adjust_packed): Expand comment.
4524 2008-04-08 Arnaud Charlet <charlet@adacore.com>
4526 * s-tasuti.ads: Use Task_Address instead of System.Address.
4528 * makeutl.adb (Path_Or_File_Name): New function
4530 * nlists.ads, itypes.ads: Update comments.
4532 * s-crtl.ads (malloc32, realloc32): New functions.
4534 * s-auxdec.ads (Short_Address_Size): New constant.
4536 * a-taside.adb, s-tasdeb.adb: Use Task_Address.
4538 * s-ststop.ads, s-ststop.adb: New file.
4540 * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
4543 2008-04-08 Pascal Obry <obry@adacore.com>
4545 * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
4546 (Stop_Bits_Number): New type.
4547 (Parity_Check): Likewise.
4548 (Set): Add parameter to set the number of stop bits and
4549 the parity. Parameter timeout is now a duration instead
4552 * g-sercom-linux.adb:
4553 Implement the stop bits and parity support for GNU/Linux.
4554 Fix handling of timeout, it must be given in tenth of seconds.
4556 * g-sercom-mingw.adb:
4557 Implement the stop bits and parity support for Windows.
4558 Use new s-win32.ads unit instead of declaring Win32 services
4559 directly into this body.
4560 Update handling of timeout as now a duration.
4562 * s-win32.ads, s-winext.ads: New files.
4564 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
4565 Arnaud Charlet <charlet@adacore.com>
4567 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
4569 s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
4570 s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
4572 * s-osinte-lynxos-3.ads,
4573 (Alternate_Stack): Remove when not needed. Simplify declaration
4575 (Alternate_Stack_Size): New constant.
4577 s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
4578 'Unrestricted_Access.
4580 * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
4581 s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
4582 s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
4583 s-osinte-solaris.ads, s-osinte-vms.ads
4584 (SA_ONSTACK): New constant.
4585 (stack_t): New record type.
4586 (sigaltstack): New imported function.
4587 (Alternate_Stack): New imported variable.
4588 (Alternate_Stack_Size): New constant.
4590 * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
4592 * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
4593 s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
4594 s-taspri-vms.ads (Task_Address): New subtype of System.Address
4595 (Task_Address_Size): New constant size of System.Address
4596 (Alternate_Stack_Size): New constant.
4598 * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
4599 (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
4600 Establish the alternate stack if the platform makes use of n alternate
4601 signal stack for stack overflows.
4602 (Create_Task): Take into account the alternate stack in the stack size.
4603 (Initialize): Save the address of the alternate stack into the ATCB for
4604 the environment task.
4605 (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
4607 * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
4609 * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
4611 * s-intman-posix.adb:
4612 (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
4613 alternate signal stack for stack overflows.
4615 * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
4616 x86-64, adjust the saved value of the stack pointer if the signal was
4617 raised by a stack checking probe.
4618 (HP-UX section): Use global __gnat_alternate_stack as signal handler
4619 stack and only for SIGSEGV.
4620 (Linux section): Likewise on x86 and x86-64.
4622 (__gnat_map_signal): Now static.
4623 (__gnat_error_handler): Not static any more.
4624 (__gnat_adjust_context_for_raise): New function. Signal context
4625 adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
4626 propagation circuitry.
4627 (__gnat_error_handler): Second argument of a sigaction handler is a
4628 pointer, not an int, and is unused.
4629 Adjust signal context before mapping to exception.
4630 Install signal handlers for LynxOS case.
4632 * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
4633 (Task_Id): Set size to Task_Address_Size
4634 (To_Task_id): Unchecked convert from Task_Address vice System.Address
4635 (To_Address): Unchecked convert to Task_Address vice System.Address
4637 * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
4638 address into the ATCB if the platform makes use of an alternate signal
4639 stack for stack overflows.
4640 (Free_Task): Add call to Finalize_Attributes_Link.
4641 Add argument Relative_Deadline to pass the value specified for
4642 the task. This is not yet used for any target.
4644 * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
4645 the value specified for the task.
4647 2008-04-08 Arnaud Charlet <charlet@adacore.com>
4649 (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
4650 (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
4651 s-vxwext-rtp.adb): New files.
4653 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
4654 Minor updates to accomodate changes above.
4656 2008-04-08 Pascal Obry <obry@adacore.com>
4658 * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
4659 s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
4660 Use new s-win32.ads unit instead of declaration
4661 from s-osinte-mingw.ads.
4663 * s-osinte-mingw.ads:
4664 Move all non tasking based interface to s-win32.ads.
4666 * s-osprim-mingw.adb:
4667 Remove duplicated declarations and use s-win32.ads
4670 2008-04-08 Vincent Celier <celier@adacore.com>
4671 Arnaud Charlet <charlet@adacore.com>
4673 * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
4674 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
4675 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
4676 mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
4677 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
4679 * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
4680 mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
4681 mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
4682 mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
4683 mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
4684 mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
4685 mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
4686 mlib-tgt-specific-mingw.adb: New names.
4689 On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
4691 (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
4692 Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
4693 Minor updates for VMS
4695 * gnatbl.c: Removed.
4697 2008-04-08 Thomas Quinot <quinot@adacore.com>
4699 * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
4700 g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
4701 gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
4702 a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
4703 s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
4704 ASCII.NUL throughout.
4706 2008-04-08 Arnaud Charlet <charlet@adacore.com>
4707 Matthew Heaney <heaney@adacore.com>
4709 * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
4712 * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
4713 a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
4714 to convention for non-RM specs.
4715 Add descriptive header, and documented each operation
4716 document each operation
4718 2008-04-08 Robert Dewar <dewar@adacore.com>
4719 Bob Duff <duff@adacore.com>
4720 Gary Dismukes <dismukes@adacore.com>
4721 Ed Schonberg <schonberg@adacore.com>
4723 * alloc.ads: Add entries for Obsolescent_Warnings table
4725 * einfo.ads, einfo.adb: Minor reformatting.
4726 (Is_Discriminal): New subprogram.
4727 (Is_Prival): New subprogram.
4728 (Is_Protected_Component): New subprogram.
4729 (Is_Protected_Private): Removed.
4730 (Object_Ref, Set_Object_Ref): Removed.
4731 (Prival, Set_Prival): Change assertion.
4732 (Privals_Chain, Set_Privals_Chain): Removed.
4733 (Prival_Link, Set_Prival_Link): New subprogram.
4734 (Protected_Operation, Set_Protected_Operation): Removed.
4735 (Protection_Object, Set_Protection_Object): New subprogram.
4736 (Write_Field17_Name): Remove case for Object_Ref.
4737 (Write_Field20_Name): Add case for Prival_Link.
4738 (Write_Field22_Name): Remove case for Protected_Operation,
4740 Add case for Protection_Object.
4741 (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
4743 (Overlays_Constant): New flag
4744 (Is_Constant_Object): New predicate
4745 (Is_Standard_Character_Type): New predicate
4746 (Optimize_Alignment_Space): New flag
4747 (Optimize_Alignment_Time): New flag
4748 (Has_Postconditions): New flag
4749 (Obsolescent_Warrning): Field removed
4750 (Spec_PPC_List): New field
4751 (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
4752 subprograms to get and set the relative deadline associated to a task.
4754 * exp_attr.adb (May_Be_External_Call): Account for the case where the
4755 Access attribute is part of a named parameter association.
4756 (Expand_Access_To_Protected_Op): Test for the attribute occurring
4757 within an init proc and use that directly as the scope rather than
4758 traversing up to the protected operation's enclosing scope. Only apply
4759 assertion on Is_Open_Scopes in the case the scope traversal is done.
4760 For the init proc case use the address of the first formal (_init) as
4761 the protected object reference.
4762 Implement Invalid_Value attribute
4763 (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
4764 contents of the dispatch table there is no need to duplicate the
4765 itypes associated with record types (i.e. the implicit full view
4767 Implement Enum_Val attribute
4768 (Expand_N_Attribute_Reference, case Old): Properly handle appearence
4769 within _Postconditions procedure
4770 (Expand_N_Attribute_Reference, case Result): Implement new attribute
4772 * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
4773 a return statement calls a function that is not available in
4774 configurable runtime.
4775 (Analyze_If_Statement): don't optimize simple True/False cases in -O0
4776 (Expand_Non_Function_Return): Generate call to _Postconditions proc
4777 (Expand_Simple_Function_Return): Ditto
4779 * frontend.adb: Add call to Sem_Aux.Initialize
4781 * sem_aux.ads, sem_aux.adb: New file.
4783 * par-prag.adb: Add entries for pragmas Precondition/Postcondition
4784 Add new Pragma_Relative_Deadline.
4785 Add support for pragmas Check and Check_Policy
4787 * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
4788 (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
4789 (Analyze_Attribute): In case of attributes 'Alignment and 'size add
4790 missing check because they are not allowed in CPP tagged types.
4791 Add Sure parameter to Note_Possible_Modification calls
4792 Add implementation of Invalid_Value attribute
4793 Implement new attribute Has_Tagged_Values
4794 Implement Enum_Val attribute
4795 (Analyze_Attribute, case Range): Set Name_Req True for prefix of
4796 generated attributes.
4797 (Analyze_Attribute, case Result): If prefix of the attribute is
4798 overloaded, it always resolves to the enclosing function.
4799 (Analyze_Attribute, case Result): Properly deal with analysis when
4800 Postconditions are not active.
4801 (Resolve_Attribute, case Result): Properly deal with appearence during
4802 preanalysis in spec.
4803 Add processing for attribute Result
4805 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
4807 (Analyze_Subprogram_Body): Install private_with_clauses when the body
4809 (Check_Inline_Pragma): recognize an inline pragma that appears within
4810 the subprogram body to which it applies.
4811 (Analyze_Function_Return): Check that type of the expression of a return
4812 statement in a function with a class-wide result is not declared at a
4813 deeper level than the function.
4814 (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
4815 (Verify_Overriding_Indicator): Handle properly subprogram bodies for
4816 user- defined operators.
4817 (Install_Formals): Moved to spec to allow use from Sem_Prag for
4818 analysis of precondition/postcondition pragmas.
4819 (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
4820 Last_Formal, along with lots of comments on what this is about
4821 (Analyze_Subprogram_Body): Fix case where we move entities from the
4822 spec to the body when there are no body entities (now possible with
4823 precondition and postcondition pragmas).
4824 (Process_PPCs): New procedure
4825 (Analyze_Subprogram_Body): Add call to Process_PPCs
4827 * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
4829 (Pop_Scope): Restore Check_Policy_List on scope exit
4830 (Push_Scope): Save Check_Policy_List on scope entry
4831 Change name In_Default_Expression => In_Spec_Expression
4832 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
4833 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
4834 (Analyze_Object_Renaming): Allow 'Reference as object
4835 (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
4836 (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
4837 of restriction identifier.
4838 Add Sure parameter to Note_Possible_Modication calls
4840 * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
4841 Don't check for primitive operations when calling Rep_Item_Too_Late.
4842 (Process_Import_Or_Interface): Do not place flag on formal
4844 (Analyze_Pragma, case Export): If the entity is a deferred constant,
4845 propagate information to full view, which is the one elaborated by the
4847 (Make_Inline): the pragma is effective if it applies to an internally
4848 generated subprogram declaration for a body that carries the pragma.
4849 (Analyze_Pragma, case Optimize_Alignment): Set new flag
4850 Optimize_Alignment_Local.
4851 (Analyze_PPC_In_Decl_Part): New procedure
4852 (Get_Pragma_Arg): Moved to outer level
4853 (Check_Precondition_Postcondition): Change to allow new visibility
4854 rules for package spec
4855 (Analyze_Pragma, case Check_Policy): Change placement rules to be
4856 same as pragma Suppress/Unsuppress.
4857 Change name In_Default_Expression => In_Spec_Expression
4858 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
4859 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
4860 (Check_Precondition_Postcondition): Do proper visibility preanalysis
4861 for the case of these pragmas appearing in the spec.
4862 (Check_Enabled): New function
4863 (Initialize): New procedure
4864 (Tree_Read): New procedure
4865 (Tree_Write): New procedure
4866 (Check_Precondition_Postcondition): New procedure
4867 Implement pragmas Check and Check_Policy
4868 Merge Assert processing with Check
4870 * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
4871 New warning flag -gnatw.e
4873 * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
4874 returning whether a task (or main procedure) has a pragma
4876 (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
4877 (or main procedure) has a pragma Relative_Deadline.
4878 Add Next_Pragma field to N_Pragma node
4879 (PPC_Enabled): New flag
4880 (Next_Pragma): Now used for Pre/Postcondition processing
4882 * snames.h, snames.ads, snames.adb: New standard name
4884 Add entry for 'Invalid_Value attribute
4885 Add entry for new attribute Has_Tagged_Values
4886 Add entry for Enum_Val attribute
4887 Add new standard names Aggregate, Configuration and Library.
4890 Add Pragma_Precondition
4891 Add Pragma_Postcondition
4892 Add Attribute_Result
4893 New standard name Archive_Builder_Append_Option
4894 (Preset_Names): Add _relative_deadline and relative_deadline definitions
4895 There was also a missing non_preemptive_within_priorities.
4896 (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
4898 Add support for pragmas Check and Check_Policy
4900 * tree_gen.adb: Call Sem_Aux.Tree_Write
4902 * tree_in.adb: Call Sem_Aux.Tree_Read
4904 * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
4907 * exp_intr.adb (Expand_Source_Info): New Build_Location calling
4910 * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
4911 (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
4913 (Expand_Pragma_Check): New procedure
4915 * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
4918 * sinfo.adb (PPC_Enabled): New flag
4920 2008-04-08 Robert Dewar <dewar@adacore.com>
4921 Gary Dismukes <dismukes@adacore.com>
4922 Javier Miranda <miranda@adacore.com>
4923 Ed Schonberg <schonberg@adacore.com>
4925 * fe.h: Remove global Optimize_Alignment flag, no longer used
4927 * layout.adb: Test Optimize_Alignment flags rather than global switch
4929 * lib.ads, lib.adb: New OA_Setting field in library record
4931 * lib-load.adb: New OA_Setting field in library record
4933 * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
4934 units mentioned in limited_with_ clauses in the ali file, with an
4936 New Ox fields in U line
4938 * opt.adb: New flag Optimize_Alignment_Local
4939 (Check_Policy_List[_Config]): New flags
4941 * opt.ads (Invalid_Value_Used): New flag
4942 New switch Optimize_Alignment_Local
4943 (Warn_On_Parameter_Order): New flag
4944 (Check_Policy_List[_Config]): New flags
4946 * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
4947 limited_with clauses.
4948 New data structures for Optimize_Alignment
4950 * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
4952 (Check_Consistent_Optimize_Alignment): Rework for new structure
4953 (Check_Consistent_Restrictions): Fix incorrect error message
4955 sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
4956 created class-wide type (to the Parent field of the specific type).
4957 (Install_Siblings): Handle properly private_with_clauses on subprogram
4958 bodies and on generic units.
4959 (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
4960 illegal limited_with_clause that names a non-existent package.
4961 (Check_Body_Required): Determine whether a unit named a limited_with
4962 clause needs a body.
4963 (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
4964 Capture Optimize_Alignment settings to set new OA_Setting field in
4966 (Build_Limited_Views): Include task and protected type declarations.
4968 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
4969 case of a possible constant redeclaration where the current object is
4970 an entry index constant.
4971 (Analyze_Object_Declaration): Generate an error in case of CPP
4972 class-wide object initialization.
4973 (Analyze_Object_Declaration): Add extra information on warnings for
4974 declaration of unconstrained objects.
4975 (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
4976 conflicts with the setting of Stored_Constraint in the case where the
4977 access type entity has already been created as an E_Incomplete_Type due
4978 to a limited with clause.
4979 Use new Is_Standard_Character_Type predicate
4980 (Analyze_Object_Declaration): Apply access_constant check only after
4981 expression has been resolved, given that it may be overloaded with
4982 several access types.
4983 (Constant_Redeclaration): Additional legality checks for deferred
4984 constant declarations tha involve anonymous access types and/or null
4985 exclusion indicators.
4986 (Analyze_Type_Declaration): Set Optimize_Alignment flags
4987 (Analyze_Subtype_Declaration): Ditto
4988 (Analyze_Object_Declaration): Ditto
4989 (Analyze_Object_Declaration): Don't count tasks in generics
4990 Change name In_Default_Expression => In_Spec_Expression
4991 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
4992 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
4993 (Process_Discriminants): Additional check for illegal use of default
4994 expressions in access discriminant specifications in a type that is not
4996 (Check_Abstract_Overriding): If an inherited function dispaches on an
4997 access result, it must be overridden, even if the type is a null
4999 (Derive_Subprogram): The formals of the derived subprogram have the
5000 names and defaults of the parent subprogram, even if the type is
5001 obtained from the actual subprogram.
5002 (Derive_Subprogram): In the presence of interfaces, a formal of an
5003 inherited operation has the derived type not only if it descends from
5004 the type of the formal of the parent operation, but also if it
5005 implements it. This is relevant for the renamings created for the
5006 primitive operations of the actual for a formal derived type.
5007 (Is_Progenitor): New predicate, to determine whether the type of a
5008 formal in the parent operation must be replaced by the derived type.
5010 * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
5011 predicate recursive to handle components that have a user-defined
5012 Initialize procedure. Handle controlled derived types whose ancestor
5013 has a user-defined Initialize procedured.
5014 (Note_Possible_Modification): Add Sure parameter, generate warning if
5015 sure modification of constant
5016 Use new Is_Standard_Character_Type predicate
5017 (Find_Parameter_Type): when determining whether a protected operation
5018 implements an interface operation, retrieve the type of the formal from
5019 the entity when the formal is an access parameter or an
5020 anonymous-access-to-subprogram.
5021 Move Copy_Parameter_List to sem_util, for use when building stubbed
5023 (Has_Access_Values): Tagged types now return False
5024 (Within_HSS_Or_If): New procedure
5025 (Set_Optimize_Alignment_Flags): New procedure
5026 Change name In_Default_Expression => In_Spec_Expression
5027 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
5028 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
5030 2008-04-08 Tristan Gingold <gingold@adacore.com>
5032 * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
5034 2008-04-08 Tristan Gingold <gingold@adacore.com>
5038 * cuintp.c: Fix 16 bits issue for AVR.
5039 On AVR, integer is 16 bits, so it can't be used to do math with
5041 So use long_integer instead.
5043 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5045 * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
5046 System.OS_Primitives.
5047 Change type of various constants, parameters and local variables from
5048 Time to representation type OS_Time.
5049 (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
5050 Remove the declaration of constant Mili_F from several routines. New
5051 body for internal package Conversions_Operations.
5052 (Time_Of): Add default parameters for several formals.
5054 * a-caldel.adb: Minor reformatting
5056 * a-calend.ads, a-calend.adb: New body for internal package
5057 Conversions_Operations.
5058 (Time_Of): Add default parameters for several formals.
5060 * Makefile.rtl: Add a-ststop
5061 Add Ada.Calendar.Conversions to the list of runtime files.
5064 * a-calcon.adb, a-calcon.ads: New files.
5066 2008-04-08 Jose Ruiz <ruiz@adacore.com>
5067 Tristan Gingold <gingold@adacore.com>
5069 * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
5070 (Install_Restricted_Handlers): New procedure
5071 which is a simplified version of Install_Handlers that does not store
5072 previously installed.
5074 * s-interr-vxworks.adb: Fix ACATS cxc3001
5075 On VxWorks interrupts can't be detached.
5076 (Install_Restricted_Handlers): New procedure.
5078 * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
5081 2008-04-08 Olivier Hainque <hainque@adacore.com>
5083 * s-intman-vxworks.ads, s-intman-vxworks.adb
5084 (Map_And_Raise_Exception): Remove. Was an import of only part of the
5085 required services already implemented elsewhere.
5086 (Notify_Exception): Delete body, import __gnat_error_handler instead.
5087 (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
5088 argument passed to the handler, which we need for ZCX propagation
5091 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5093 * adaint.h, adaint.c (__gnat_current_time_string): New routine.
5095 * g-timsta.adb, g-timsta.ads: New files.
5097 2008-04-08 Robert Dewar <dewar@adacore.com>
5099 * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
5100 (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
5101 (Raise_Exception_Always): Fix documentation accordingly
5103 2008-04-08 Robert Dewar <dewar@adacore.com>
5105 * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
5108 * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
5111 2008-04-08 Javier Miranda <miranda@adacore.com>
5112 Robert Dewar <dewar@adacore.com>
5113 Ed Schonberg <schonberg@adacore.com>
5115 * a-tags.adb (Register_Interface_Offset): New subprogram.
5116 (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
5117 (To_Predef_Prims_Table_Ptr): Removed.
5118 (Acc_Size): Removed.
5119 (To_Acc_Size): Removed.
5120 (Parent_Size): Modified to the call the subprogram returning the size of
5121 the parent by means of the new TSD component Size_Func.
5123 * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
5124 (DT_Offset_To_Top_Offset): New constant value that is used to generate
5125 code referencing the Offset_To_Top component of the dispatch table's
5127 (Prim_Ptr): New declaration of access to procedure. Used to avoid the
5128 use of 'address to initialize dispatch table slots.
5129 (Size_Func): New component of the TSD. Used by the run-time to call the
5130 size primitive of the tagged type.
5132 * checks.adb (Apply_Access_Check): Avoid check when accessing the
5133 Offset_To_Top component of a dispatch table.
5134 (Null_Exclusion_Static_Checks): If the non-null access type appears in a
5135 deferred constant declaration. do not add a null expression, to prevent
5136 spurious errors when full declaration is analyzed.
5137 (Apply_Discriminant_Check): If both discriminant constraints share a
5138 node which is not static but has no side effects, do not generate a
5139 check for that discriminant.
5140 (Generate_Index_Checks): Set Name_Req to true in call to duplicate
5141 subexpr, since the prefix of an attribute is a name.
5143 * checks.ads: Fix nit in comment.
5145 * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
5146 and body of predefined primitives in case of CPP tagged type
5148 (Freeze_Type): Deal properly with no storage pool case
5149 (Make_Predefined_Primitive_Specs): Generate specification of abstract
5150 primitive Deep_Adjust if a nonlimited interface is derived from a
5152 (Build_Dcheck_Functions): Create discriminant-checking functions only
5153 for variants that have some component(s).
5154 (Build_Slice_Assignment): In expanded code for slice assignment, handle
5155 properly the case where the slice bounds extend to the last value of the
5156 underlying representation.
5157 (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
5158 (Is_Variable_Size_Record): An array component has a static size if
5159 index bounds are enumeration literals.
5161 * exp_disp.adb (Make_DT): Use the first subtype to determine whether
5162 an external tag has been specified for the type.
5163 (Building_Static_DT): Add missing support for private types.
5164 (Make_DT): Add declaration of Parent_Typ to ensure consistent access
5165 to the entity associated with the parent of Typ. This is done to
5166 avoid wrong access when the parent is a private type.
5167 (Expand_Interface_Conversion): Improve error message when the
5168 configurable runtime has no support for dynamic interface conversion.
5169 (Expand_Interface_Thunk): Add missing support to interface types in
5170 configurable runtime.
5171 (Expand_Dispatching_Call): remove obsolete code.
5172 (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
5173 ensure that all subtypes and aggregates associated with dispatch
5174 tables have the attribute Is_Dispatch_Table_Entity set to true.
5175 (Register_Primitive): Rename one variable to improve code reading.
5176 Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
5177 of the pointer to the 'size primitive in the TSD.
5179 * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
5180 (RE_Offset_To_Top_Ptr): New entity.
5181 (RE_Register_Interface_Offset): New entity.
5182 (RE_Set_Dynamic_Offset_To_Top): New entity.
5183 (RE_Set_Offset_To_Top): Removed entity.
5184 (RE_Prim_Ptr): New entity
5185 (RE_Size_Func): New entity
5186 (RE_Size_Ptr): New entity
5187 (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
5188 (Ada_Dispatching_Child): Define this new subrange.
5189 (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
5190 RE_Time_Span, and RE_Time_Span_Zero).
5191 (RE_Unit_Table): Add new required run-time calls
5193 * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
5196 * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
5197 (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
5198 initializes the Offset_To_Top component of a dispatch table.
5199 (Build_Predef_Prims): Removed.
5200 (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
5202 (Build_Set_Size_Function): New subprogram.
5204 * exp_ch13.adb: Do not generate storage variable for storage_size zero
5205 (Expand): Handle setting/restoring flag Inside_Freezing_Actions
5207 2008-04-08 Robert Dewar <dewar@adacore.com>
5209 * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
5210 computing Fore when Exp > 0
5212 2008-04-08 Robert Dewar <dewar@adacore.com>
5214 * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
5216 * errout.adb: Remove Big_String_Ptr declarations (now in Types)
5217 Change name Is_Style_Msg to Is_Style_Or_Info_Msg
5219 * fmap.adb: Remove Big_String declarations (now in Types)
5220 (No_Mapping_File): New Boolean global variable
5221 (Initialize): When mapping file cannot be read, set No_Mapping_File to
5223 (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
5224 tables were empty before adding entries, open the mapping file
5225 with Truncate = True, instead of delete/re-create.
5227 * fname-sf.adb: Remove Big_String declarations (now in Types)
5229 * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
5230 s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
5233 * table.ads: Add for Table_Ptr'Storage_Size use 0
5235 * types.ads: Add Big_String declarations
5236 Add Size_Clause of zero for big pointer types
5238 2008-04-08 Vincent Celier <celier@adacore.com>
5240 * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
5241 (Usage): Add line for switch --subdirs=
5242 Add new switch -eL, to follow symbolic links when processing project
5245 * gnatcmd.adb: Process switches -eL and --subdirs=
5246 (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
5247 Program_Name to get proper tool names when AAMP_On_Target is set.
5248 (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
5249 AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
5250 Osint.Program_Name).
5252 * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
5253 (Usage): Add lines for switches -eL and --subdirs=
5255 * makeusg.adb: Add line for switch --subdirs=
5258 (Source_Data): New Boolean component Compiled, defaulted to True
5259 (Empty_File_Name: New global variable in private part, initialized in
5260 procedure Initialize.
5261 (Subdirs_Option): New constant string
5262 (Subdirs): New String_Ptr global variable
5263 (Language_Config): New component Include_Compatible_Languages
5264 (Project_Qualifier): New type for project qualifiers
5265 (Project_Data): New component Qualifier
5266 (Project_Configuration): New component Archive_Builder_Append_Option
5268 * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
5269 another imported project indicate the name of this imported project.
5270 (Check_File): When a unit is in two project files, indicate the project
5271 names and the paths of the source files for each project.
5272 (Add_Source): Set Compiled to False if compiler driver is empty. Only
5273 set object, dependency and switches file names if Compiled is True.
5274 (Process_Compiler): Allow the empty string for value of attribute Driver
5275 (Get_Directories): When Subdirs is not null and Object_Dir is not
5276 specified, locate and create if necessary the actual object dir.
5277 (Locate_Directory): When Subdirs is not empty and Create is not the
5278 empty string, locate and create if necessary the actual directory
5279 as a subdirectory of directory Name.
5280 (Check_Library_Attributes.Check_Library): Allow a project where the only
5281 "sources" are header files of file based languages to be imported by
5282 library projects, in multi-language mode (gprbuild).
5283 (Check_Library_Attributes.Check_Library): In multi-language mode
5284 (gprbuild), allow a library project to import a project with no
5285 sources, even when this is not declared explicitly.
5286 (Check_If_Externally_Built): A virtual project extending an externally
5287 built project is also externally built.
5288 (Check_Library_Attributes): For a virtual project extending a library
5289 project, inherit the library directory.
5290 (Process_Project_Level_Array_Attributes): Process new attribute
5291 Inherit_Source_Path.
5292 For projects with specified qualifiers "standard", "library" or
5293 "abstract", check that the project conforms to the qualifier.
5294 (Process_Project_Level_Simple_Attributes): Process new attribute
5295 Archive_Builder_Append_Option.
5297 * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
5298 (Normalize_Compiler_Switches): Only keep compiler switches that are
5299 passed to gnat1 by the gcc driver and that are stored in the ALI file
5301 Do not take into account switc -save-temps
5303 * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
5304 gprmake is called with -eL.
5305 (Scan_Arg): Recognize switch -eL
5306 (Usage): Add line for switch -eL
5308 * prj.adb (Initialize): Initialize Empty_File_Name
5309 (Project_Empty): New component Qualifier
5311 * prj-attr.ads, prj-attr.adb: New project level attribute
5312 Inherit_Source_Path.
5313 New project level attribute Archive_Builder_Append_Option
5315 * prj-dect.adb: Replace System.Strings by GNAT.Strings.
5317 * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
5318 <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
5319 upward compatibility.
5321 * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
5322 each Trying ..." on different lines.
5323 (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
5324 is "configuration" when not in configuration. Fail when in configuration
5325 when a specified qualifier is other than "configuration".
5327 * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
5328 full associative array together.
5329 (Recursive_Process): Put the project qualifier in the project data
5331 * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
5332 (Set_Project_Qualifier_Of): New procedure
5334 2008-04-08 Robert Dewar <dewar@adacore.com>
5336 * errout.ads: Update comments for new handling of info: messages
5338 * erroutc.adb (Matches): New procedure
5339 (Warning_Specifically_Suppressed): Modified to handle multiple * chars
5340 (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
5341 info messages as well as style messages.
5343 * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
5345 * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
5347 (Check_A_Call): Special "info: " warnings now have ? in the text
5348 (Elab_Warning): Use info message in static case
5350 2008-04-08 Ed Schonberg <schonberg@adacore.com>
5352 * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
5353 whether an array aggregate with static bounds and scalar components
5354 should be expanded into a static constant.
5356 2008-04-08 Gary Dismukes <dismukes@adacore.com>
5357 Ed Schonberg <schonberg@adacore.com>
5358 Robert Dewar <dewar@adacore.com>
5360 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
5361 Has_Stream_Attribute_ Definition when checking for available stream
5362 attributes on parameters of a limited type in Ada 2005. Necessary for
5363 proper recognition of visible stream attribute clauses.
5364 (Has_Stream_Attribute_Definition): If the type is derived from a
5365 private type, then use the derived type's underlying type for checking
5366 whether it has stream attributes.
5367 (Validate_Object_Declaration): The check for a user-defined Initialize
5368 procedure applies also to types with controlled components or a
5369 controlled ancestor.
5370 Reject an object declaration in a preelaborated unit if the type is a
5371 controlled type with an overriding Initialize procedure.
5372 (Validate_Remote_Access_To_Class_Wide_Type): Return without further
5373 checking when the parent of a dereference is a selected component and
5374 the name has not been analyzed.
5376 * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
5377 prefixes that are invalid explicit dereferences of remote
5378 access-to-class-wide values, first checking whether the selected
5379 component is a prefixed form of call to a tagged operation.
5380 (Analyze_Call): Remove code that issues an error for limited function
5381 calls in illegal contexts, as we now support all of the contexts that
5382 were forbidden here.
5383 Allow a function call that returns a task.and appears as the
5384 prefix of a selected component.
5385 (Analyze_Reference): Give error message if we try to make a 'Reference
5386 for an object that is atomic/aliased without its type having the
5387 corresponding attribute.
5388 (Analyze_Call): Remove condition checking for attributes to allow
5389 calls to functions with inherently limited results as prefixes of
5390 attributes. Remove related comment about Class attributes.
5391 (Analyze_Selected_Component): If the prefix is a remote type, check
5392 whether this is a prefixed call before reporting an error.
5393 (Complete_Object_Operation): If the controlling formal is an access to
5394 variable reject an actual that is a constant or an access to one.
5395 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
5396 primitive operations from base type.
5398 * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
5400 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
5401 (Expand_N_Selected_Component): Test for prefix that is a build-in-place
5402 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
5403 (Expand_N_Slice): Test for prefix that is a build-in-place function call
5404 and call Make_Build_In_Place_Call_In_Anonymous_Context.
5405 (Analyze_Call): Remove code that issues an error for limited function
5406 calls in illegal contexts, as we now support all of the contexts that
5407 were forbidden here.
5408 New calling sequence for Get_Simple_Init_Val
5409 (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
5410 (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
5412 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5413 Ed Schonberg <schonberg@adacore.com>
5414 Robert Dewar <dewar@adacore.com>
5416 * exp_ch2.adb: Minor reformatting.
5417 (Expand_Entry_Index_Parameter): Set the type of the identifier.
5418 (Expand_Entry_Reference): Add call to Expand_Protected_Component.
5419 (Expand_Protected_Component): New routine.
5420 (Expand_Protected_Private): Removed.
5421 Add Sure parameter to Note_Possible_Modification calls
5423 * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
5424 generated subprogram declaration must inherit the overriding indicator
5425 from the instantiation node.
5426 (Validate_Access_Type_Instance): If the designated type of the actual is
5427 a limited view, use the available view in all cases, not only if the
5428 type is an incomplete type.
5429 (Instantiate_Object): Actual is illegal if the formal is null-excluding
5430 and the actual subtype does not exclude null.
5431 (Process_Default): Handle properly abstract formal subprograms.
5432 (Check_Formal_Package_Instance): Handle properly defaulted formal
5433 subprograms in a partially parameterized formal package.
5434 Add Sure parameter to Note_Possible_Modification calls
5435 (Validate_Derived_Type_Instance): if the formal is non-limited, the
5436 actual cannot be limited.
5437 (Collect_Previous_Instances): Generate instance bodies for subprograms
5440 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
5442 Add Sure parameter to Note_Possible_Modification calls
5443 (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
5444 (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
5445 constant overlaid by variable and issue warning.
5446 Use new Is_Standard_Character_Type predicate
5447 (Analyze_Record_Representation_Clause): Check that the specified
5448 Last_Bit is not less than First_Bit - 1.
5449 (Analyze_Attribute_Definition_Clause, case Address): Check for
5450 self-referential address clause
5452 * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
5453 detection mechanism when the lhs is a prival.
5454 (Analyze_Assignment): Call Check_Unprotected_Access to detect
5455 assignment of a pointer to protected data, to an object declared
5456 outside of the protected object.
5457 (Analyze_Loop_Statement): Check for unreachable code after loop
5458 Add Sure parameter to Note_Possible_Modication calls
5459 Protect analysis from previous syntax error such as a scope mismatch
5461 (Analyze_Assignment_Statement): The assignment is illegal if the
5462 left-hand is an interface.
5464 * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
5465 violation of restriction No_Implicit_Conditionals
5466 Add Sure parameter to Note_Possible_Modication calls
5467 Use new Is_Standard_Character_Type predicate
5468 (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
5469 call as operator. Fixes problems (e.g. validity checking) which
5470 come from the result looking as though it does not come from source).
5471 (Resolve_Call): Check case of name in named parameter if style checks
5473 (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
5474 from the checking that such calls should not occur from an entry body.
5475 (Resolve_Call): If the return type of an Inline_Always function
5476 requires the secondary stack, create a transient scope for the call
5477 if the body of the function is not available for inlining.
5478 (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
5479 that are actuals for in-out formals.
5480 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
5481 primitive operations from base type.
5482 (Analyze_Selected_Component): If the context is a call to a protected
5483 operation the parent may be an indexed component prior to expansion.
5484 (Resolve_Actuals): If an actual is of a protected subtype, use its
5485 base type to determine whether a conversion to the corresponding record
5487 (Resolve_Short_Circuit): Handle pragma Check
5489 * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
5490 Use new Is_Standard_Character_Type predicate
5491 (Eval_Relational_Op): Catch more cases of string comparison
5493 2008-04-08 Robert Dewar <dewar@adacore.com>
5494 Gary Dismukes <dismukes@adacore.com>
5496 * s-rident.ads: Add No_Default_Initialization restriction
5499 (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
5500 (Set_TSS): Handle No_Default_Initialization case
5502 * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
5503 No_Default_Initialization
5504 (Expand_N_Subprogram_Body): Remove redundant initialization of out
5505 parameters when Normalize_Scalars is active.
5506 (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
5507 Fix casing error in formal parameter name in call
5508 (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
5509 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
5510 dispatching call on VM targets.
5512 2008-04-08 Gary Dismukes <dismukes@adacore.com>
5513 Thomas Quinot <quinot@adacore.com>
5515 * exp_ch7.adb (Find_Final_List): Change the test for generating a
5516 selected component from an access type's Associated_Final_Chain to
5517 check for the presence of that field, rather than assuming it exists
5518 for all named access types.
5519 (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
5520 procedure to call at the end of the generated cleanup procedure.
5521 (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
5522 and an At_End_Proc already exists in the handled sequence of statements
5523 for which cleanup actions are being expanded, the original cleanup
5524 action must be preserved.
5526 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5527 Ed Schonberg <schonberg@adacore.com>
5528 Robert Dewar <dewar@adacore.com>
5529 Gary Dismukes <dismukes@adacore.com>
5531 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
5532 Build_Unprotected_Subprogram_Body): Generate debug info for
5533 declarations related to the handling of private data in task and
5535 (Debug_Private_Data_Declarations): New subprogram.
5536 (Install_Private_Data_Declarations): Remove all debug info flagging.
5537 This is now done by Debug_Private_Data_Declarations at the correct
5539 (Build_Simple_Entry_Call): If the task name is a function call, expand
5540 the prefix into an object declaration, and make the surrounding block a
5542 (Build_Master_Entity): An internal block is a master if it wraps a call.
5543 Code reformatting, update comments. Code clean up.
5544 (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
5545 (Replicate_Entry_Formals): If the formal is an access parameter or
5546 anonymous access to subprogram, copy the original tree to create new
5547 entities for the formals of the subprogram.
5548 (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
5549 for tasks to store the value passed using pragma Relative_Deadline.
5550 (Make_Task_Create_Call): Add the Relative_Deadline argument to the
5551 run-time call to create a task.
5552 (Build_Wrapper_Spec): If the controlling argument of the interface
5553 operation is an access parameter with a non-null indicator, use the
5554 non-null indicator on the wrapper.
5556 * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
5557 present, which it may not be in the case where the type entity is an
5558 incomplete view brought in by a limited with.
5559 (Analyze_Task_Type): Only retrieve the full view when present, which it
5560 may not be in the case where the type entity is an incomplete view brought
5561 in by a limited with.
5562 (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
5563 private components of a protected type, to prevent the generation of freeze
5564 nodes for which there is no proper scope of elaboration.
5566 * exp_util.ads, exp_util.adb
5567 (Remove_Side_Effects): If the expression is a function call that returns a
5568 task, expand into a declaration to invoke the build_in_place machinery.
5569 (Find_Protection_Object): New routine.
5570 (Remove_Side_Effects): Also make a copy of the value
5571 for attributes whose result is of an elementary type.
5572 (Silly_Boolean_Array_Not_Test): New procedure
5573 (Silly_Boolean_Array_Xor_Test): New procedure
5574 (Is_Volatile_Reference): New function
5575 (Remove_Side_Effects): Use Is_Volatile_Reference
5576 (Possible_Bit_Aligned_Component): Handle slice case properly
5578 * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
5579 case test to Exp_Util
5580 (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
5582 2008-04-08 Thomas Quinot <quinot@adacore.com>
5584 * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
5586 (Add_RACW_Features): When processing an RACW in another unit than the
5587 main unit, set Body_Decls to No_List to indicate that the bodies of
5588 the type's TSS must not be generated.
5589 (GARLIC_Support.Add_RACW_Read_Attribute,
5590 GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
5591 Body_Decls is No_List.
5592 (PolyORB_Support.Add_RACW_Read_Attribute,
5593 PolyORB_Support.Add_RACW_Write_Attribute,
5594 PolyORB_Support.Add_RACW_From_Any,
5595 PolyORB_Support.Add_RACW_To_Any,
5596 PolyORB_Support.Add_RACW_TypeCode): Same.
5597 (Transmit_As_Unconstrained): New function.
5598 (Build_Ordered_Parameters_List): Use the above to order parameters.
5599 (GARLIC_Support.Build_General_Calling_Stubs):
5600 Use the above to determine which parameters to unmarshall using 'Input
5601 at the point where their temporary is declared (as opposed to later on
5603 (PolyORB_Support.Build_General_Calling_Stubs):
5604 Use the above to determine which parameters to unmarshall using From_Any
5605 at the point where their temporary is declared (as opposed to later on
5606 with an assignment).
5608 2008-04-08 Ed Schonberg <schonberg@adacore.com>
5610 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
5611 an Input function for an access type, do not perform default
5612 initialization on the local variable that receives the value, to
5613 prevent spurious warnings when the type is null-excluding.
5615 2008-04-08 Robert Dewar <dewar@adacore.com>
5616 Ed Schonberg <schonberg@adacore.com>
5618 * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
5620 (Size_Known): Generic formal scalar types have known at compile
5621 time size, so remove check.
5622 Fix casing error in formal parameter name in call
5623 (Freeze_Subprogram): If the subprogram is a user-defined operator,
5624 recheck its overriding indication.
5626 2008-04-08 Vincent Celier <celier@adacore.com>
5628 * gnat1drv.adb: Send all messages indicating an error to standard error
5630 2008-04-08 Robert Dewar <dewar@adacore.com>
5632 * gnatbind.adb (Restriction_Could_Be_Set): New procedure
5633 (List_Applicable_Restrictions): Do not list existing restrictions
5635 2008-04-08 Thomas Quinot <quinot@adacore.com>
5637 * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
5638 add a pointer to generic sockets literature
5639 do not mention that the given example is "typical" usage.
5640 Remove obsolete comment about multicast not being supported on Windows.
5641 (Connect_Socket): Make Server mode IN rather than IN OUT
5642 since this formal is never modified.
5644 2008-04-08 Robert Dewar <dewar@adacore.com>
5646 * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
5647 the declaration for some different entity.
5648 (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
5649 list is precent (following the parent subtype indication), display
5650 appropriate "and" keyword.
5652 * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
5653 Remove unnecessary calls to Init_Size_Align and Init_Esize.
5654 Add notes on use of Parent field of an Itype
5656 2008-04-08 Ed Schonberg <schonberg@adacore.com>
5657 Robert Dewar <dewar@adacore.com>
5658 Gary Dismukes <dismukes@adacore.com>
5660 * lib-xref.adb (Is_On_LHS): Remove dead code
5661 (Output_Overriden_Op): If the overridden operation is itself inherited,
5662 list the ancestor operation, which is the one whose body or absstract
5663 specification is actually being overridden. For source navigation
5666 * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
5667 operation is primitive for the type.
5668 (Declare_Inherited_Private_Subprograms): If the new operation overrides
5669 an inherited private subprogram, set properly the Overridden_Operation
5670 attribute, for better cross-reference information.
5671 (Analyze_Package_Specification): Do late analysis of spec PPCs
5672 (Install_Private_Declaration, Uninstall_Declarations): Save/restore
5673 properly the full view and underlying full views of a private type in a
5674 child unit, whose full view is derived from a private type in a parent
5675 unit, and whose own full view becomes visible in the child body.
5677 * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
5678 primitive operation after the type has been frozen, add an explicit
5679 reference to the type and the operation, because other primitive
5680 references have been emitted already.
5681 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
5682 dispatching call on VM targets.
5684 2008-04-08 Vincent Celier <celier@adacore.com>
5685 Thomas Quinot <quinot@adacore.com>
5687 * make.adb: (Gnatmake_Called): Remove, no longer necessary
5688 (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
5689 is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
5690 (Insert_Project_Sources): Take into account index in multi-unit source
5692 After building a library project, delete all temporary files.
5693 (Initialize): Reset current output after parsing project file.
5694 (Collect_Arguments_And_Compile): Never insert in the queue the sources
5695 of library projects that are externally built.
5696 Put file name in error and inform messages if -df is used
5697 (Display): If invoked with -d7, do not display path names, but only
5700 * makeutl.ads (Path_Or_File_Name): New function
5701 (Path_Or_File_Name): New function
5703 2008-04-08 Arnaud Charlet <charlet@adacore.com>
5705 * Make-lang.in: Disable warnings during first stage of bootstrap
5707 Update dependencies.
5709 2008-04-08 Vincent Celier <celier@adacore.com>
5711 * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
5712 case to decide if ALI object file is included in library.
5713 (Build_Library): Never attempt to build a library if the project is
5716 2008-04-08 Thomas Quinot <quinot@adacore.com>
5718 * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
5719 (No_List) is defined to return Empty.
5721 2008-04-08 Jose Ruiz <ruiz@adacore.com>
5723 * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
5726 (Read_Default_Search_Dirs): Do not consider spaces as path separators
5727 because spaces may be part of legal paths.
5729 2008-04-08 Robert Dewar <dewar@adacore.com>
5731 * par-ch11.adb (P_Exception_Handler): Check indentation level for
5734 2008-04-08 Ed Schonberg <schonberg@adacore.com>
5736 * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
5737 in a type declaration, if this is not an interface declaration or
5738 private type extension.
5740 2008-04-08 Vincent Celier <celier@adacore.com>
5742 * prj-util.adb (Executable_Of): New String parameter Language. When
5743 Ada_Main is False and Language is not empty, attempt to remove the body
5744 suffix or the spec suffix of the language to get the base of the
5745 executable file name.
5746 (Put): New Boolean parameter Lower_Case, defauilted to False. When
5747 Lower_Case is True, put the value in lower case in the name list.
5748 (Executable_Of): If there is no executable suffix in the configuration,
5749 then do not modify Executable_Extension_On_Target.
5751 * prj-util.ads (Executable_Of): New String parameter Language,
5752 defaulted to the empty string.
5753 (Put): New Boolean parameter Lower_Case, defauilted to False
5755 2008-04-08 Robert Dewar <dewar@adacore.com>
5757 * scng.adb (Scan_Identifier): Handle case of identifier starting with
5758 wide character using UTF-8 encoding.
5760 2008-04-08 Javier Miranda <miranda@adacore.com>
5762 * sem.adb (Analyze): Consider case in which we analyze an empty node
5763 that was generated by a call to a runtime function that is not
5764 available under the configurable runtime.
5766 * sem.ads (Inside_Freezing_Actions): New flag.
5767 (Save_Check_Policy_List): New field in scope stack entry
5769 2008-04-08 Ed Schonberg <schonberg@adacore.com>
5770 Robert Dewar <dewar@adacore.com>
5772 * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
5773 the ancestor part of an extension aggregate for a limited type.
5774 (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
5775 enumeration index bounds.
5776 (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
5777 when array is too short.
5778 (Check_Expr_OK_In_Limited_Aggregate): Move function
5779 Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
5781 (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
5782 Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
5783 component associations.
5784 (Check_Non_Limited_Type): Moved to outer level and renamed.
5785 (Resolve_Record_Aggregate): In an extension aggregate, an association
5786 with a box initialization can only designate a component of the
5787 extension, not a component inherited from the given ancestor
5789 * sem_case.adb: Use new Is_Standard_Character_Type predicate
5791 2008-04-08 Robert Dewar <dewar@adacore.com>
5793 * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
5795 (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
5796 Properly handle case where Aft > Scale and input number is less than
5799 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5801 * s-stoele.ads, s-soflin.ads: Move the location of
5802 Dummy_Communication_Block from System.Storage_Elements to
5805 * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
5806 emulate Communication_Block in certain scenarios.
5808 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
5810 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
5812 Add new subtype S_WWC, unchecked conversion routines From_WWC and
5814 (I_WWC, O_WWC): New routines for input and output of
5815 Wide_Wide_Character.
5817 2008-04-08 Robert Dewar <dewar@adacore.com>
5819 * stringt.adb (Write_String_Table_Entry): Handle wide characters
5822 2008-04-08 Robert Dewar <dewar@adacore.com>
5824 * styleg.adb (Check_Comment): Allow special char after -- in
5825 non-end-of-line case
5827 2008-04-08 Robert Dewar <dewar@adacore.com>
5829 * stylesw.adb: Implement -gnaty + - y options
5830 (Set_GNAT_Style_Check_Options): Includ I in style check string
5832 * stylesw.ads: Add comments for new style switch options
5834 2008-04-08 Sergey Rybin <rybin@adacore.com>
5836 * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
5837 to the set of the GNAT components needed by ASIS.
5839 2008-04-08 Bob Duff <duff@adacore.com>
5841 * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
5843 2008-04-08 Tristan Gingold <gingold@adacore.com>
5845 * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
5846 Improve error message generation.
5848 2008-04-08 Vincent Celier <celier@adacore.com>
5850 * a-direct.adb (Start_Search): Check for Name_Error before checking for
5851 Use_Error, as specified in the RM. Check if directory is open and raise
5852 Use_Error if it is not.
5854 2008-04-08 Vincent Celier <celier@adacore.com>
5855 Robert Dewar <dewar@adacore.com>
5857 * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
5858 AAMP_On_Target is set.
5860 * vms_data.ads: Add NOxxx to style check switch list
5861 Add entry COMPONENTS for -gnatVe
5862 Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
5864 (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
5865 Add qualifiers for gnatmetric coupling options
5866 Add note that -gnata enables all checks
5867 Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
5868 Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
5869 New warning flag -gnatw.e
5871 * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
5872 Add entry for -gnatyN (forgotten before)
5873 Line for new warning switch -gnatw.p
5874 New warning flag -gnatw.e
5876 * gnat_ugn.texi: Add documentation fpr project file switch -aP
5877 Document -gnaty - + y
5878 Replace occurences of "package specification" with "package spec"
5879 Define preprocessing symbols in documentation of gnatprep
5880 Clarify reason for distinguishing overflow checking
5881 Add documentation for project-aware tool switches -eL and --subdirs=
5882 Complete list of configuration pragmas
5883 Specify that, even when gnatmake switch -x is used, mains on the command
5884 line need to be sources of project files.
5885 Editing of gnatcheck/gnatmetric doc.
5886 Add documentation for -gnatw.p/-gnatw.P
5887 Add missing documentation for -fno-inline-functions.
5888 Add documentation for -gnatw.e
5890 * gnat_rm.texi: Add documentation for No_Default_Initialization
5891 Replace occurences of "package specification" with "package spec"
5892 Document use of * in Warnings Off string
5893 Update documentation of alignment/component clauses.
5894 Add documentation for Invalid_Value
5895 Document new consistency rule for Optimize_Alignment
5896 Add documentation for Precondition and Postcondition pragmas
5897 Add documentation for Check and Check_Policy pragmas
5898 Document new Enum_Val attribute
5899 Remove requirement for static string in pragma Assert
5900 Add documentation on GNAT.Time_Stamp
5902 * ug_words: add entry for -gnatVe
5903 Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
5904 Add entry for -gnatw.e
5906 * debug.adb: Add missing documentation for d.a flag
5907 Document new -gnatd.a switch.
5908 Add documentation for new gnatmake debug switch -df
5910 2008-04-08 Thomas Quinot <quinot@adacore.com>
5912 * gen-soccon.c: Bump year in copyright notices.
5914 * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
5916 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
5918 * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
5921 2008-04-08 Robert Dewar <dewar@adacore.com>
5922 Bob Duff <duff@adacore.com>
5924 * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
5925 Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
5927 * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
5929 * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
5931 * g-trasym.ads: Minor comment improvements
5933 * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
5935 * a-sequio.ads, a-direio.ads: improve message for tagged type
5937 * a-strunb.ads: Minor reformatting
5939 * a-tifiio.adb: Minor reformatting
5941 * atree.adb (Fix_Parents): Use clearer names for formals
5942 Cleanup and simplify code
5943 Use named notation in calls
5945 * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
5948 * uintp.adb: Used named notation for some confusing calls
5950 * bindusg.adb: Minor change in one line of output
5952 * cstand.adb: Minor reformatting of src representation of Standard
5954 * a-assert.ads: Add comment.
5956 * g-decstr.adb: Fix bad indentation
5958 * expander.ads, expander.adb: Code clean up.
5960 * sem_dist.ads: Minor comment improvement
5962 * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
5963 s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
5965 * i-cstrin.adb: Fix casing error in formal parameter name in call
5967 2008-04-08 Ed Schonberg <schonberg@adacore.com>
5969 * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
5970 mentioned in limited_with_clauses to do create semantic dependencies
5971 even though they appear in the ali file.
5973 2008-04-08 Emmanuel Briot <briot@adacore.com>
5975 * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
5977 (Get_Configuration): New subprogram.
5979 * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
5980 These optional parameters help preserve the casing of the project's name
5981 when pretty-printing.
5983 2008-04-08 Jerome Lambourg <lambourg@adacore.com>
5984 Arnaud Charlet <charlet@adacore.com>
5986 * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
5987 then use __gnat_set_exit_status to report the returned status code.
5989 * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
5990 messages on .NET, since some constructs of the language are not
5993 * gnatlink.adb (Gnatlink): In case the command line is too long for the
5994 .NET linker, gnatlink now concatenate all .il files and pass this to
5997 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
5998 Xavier Grave <grave@ipno.in2p3.fr>
6000 * Makefile.in: Add make ifeq define for mips/mipsel support.
6001 * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
6002 system-linux-mips.ads: New files.
6004 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
6006 * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
6007 detect systems using GNU libc.
6013 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
6015 * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
6016 constant constant for sysconf call.
6017 (bit_field): New packed boolean type used by cpu_set_t.
6018 (cpu_set_t): New type corresponding to the C type with
6019 the same name. Note that on the Ada side we use a bit
6020 field array for the affinity mask. There is not need
6021 for the C macro for setting individual bit.
6022 (pthread_setaffinity_np): New imported routine.
6023 * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
6026 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
6028 * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
6030 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
6032 * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
6033 * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
6034 * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
6035 * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
6036 Return by Depressed Stack Pointer.
6038 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
6040 * decl.c (is_variable_size): Do not unconditionally return false
6041 on non-strict alignment platforms.
6043 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
6045 * decl.c (rest_of_type_decl_compilation_no_defer): New local function
6046 used to process all the variants of the specified type.
6047 (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
6048 types too. Call rest_of_type_decl_compilation_no_defer if undeferring.
6049 (rest_of_type_decl_compilation): Likewise.
6050 * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
6052 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
6054 * gigi.h (insert_block): Kill.
6055 * utils.c (insert_block): Kill.
6057 2008-04-02 Eric Botcazou <ebotcazou@adacore.com>
6059 * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
6060 type has self-referential size, get the size from the initializing
6061 expression directly if it is also a constant whose nominal type
6062 has self-referential size.
6064 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6067 * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
6070 * env.c: Always include crt_externs.h if __APPLE__ is defined.
6071 (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
6073 2008-04-01 Andreas Jaeger <aj@suse.de>
6075 * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
6078 2008-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6080 * g-table.adb, g-tasloc.adb, g-traceb.ads,
6081 g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
6082 gnatbind.adb, gnatchop.adb, gnatcmd.adb,
6083 gnatcmd.ads, gnatdll.adb, gnatfind.adb,
6084 gnatlink.adb, gnatmem.adb, gprep.adb,
6085 i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
6086 i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
6087 layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
6088 lib-xref.ads, lib.adb, link.c, live.ads,
6089 make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
6090 mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
6091 misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
6092 mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
6093 namet.adb, namet.h, nlists.adb, nlists.ads,
6094 nlists.h, opt.ads, osint-b.ads, osint-c.adb,
6095 osint-c.ads, osint.adb, osint.ads, output.ads,
6096 par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
6097 par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
6098 par-endh.adb, par-labl.adb, par-prag.adb,
6099 par-sync.adb, par-tchk.adb, par-util.adb,
6100 par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
6101 prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
6102 prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
6103 prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
6105 2008-03-31 Eric Botcazou <ebotcazou@adacore.com>
6107 * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
6108 size if it has overflowed.
6110 2008-03-31 Olivier Hainque <hainque@adacore.com>
6111 Eric Botcazou <ebotcazou@adacore.com>
6113 * utils2.c (find_common_type): Document assumption on t1/t2 vs
6114 lhs/rhs. Force use of lhs type if smaller, whatever the modes.
6116 2008-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6118 * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
6119 einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
6120 exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
6121 exp_pakd.ads, exp_prag.adb, exp_smem.adb,
6122 exp_tss.ads, exp_util.adb, exp_util.ads,
6123 exp_vfpt.adb, freeze.adb, freeze.ads,
6124 frontend.adb, g-alleve.adb, g-altcon.adb,
6125 g-altive.ads, g-alveop.ads, g-alvevi.ads,
6126 g-arrspl.adb, g-busorg.ads, g-calend.adb,
6127 g-calend.ads, g-casuti.ads, g-cgideb.adb,
6128 g-comlin.adb, g-comlin.ads, g-curexc.ads,
6129 g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
6130 g-dirope.adb, g-dirope.ads, g-dynhta.ads,
6131 g-dyntab.adb, g-encstr.ads, g-excact.ads,
6132 g-except.ads, g-expect.ads, g-heasor.adb,
6133 g-hesora.adb, g-hesorg.adb, g-htable.ads,
6134 g-locfil.ads, g-md5.adb, g-md5.ads,
6135 g-memdum.ads, g-moreex.ads, g-os_lib.adb,
6136 g-pehage.adb, g-pehage.ads, g-regexp.adb,
6137 g-regexp.ads, g-regpat.adb, g-regpat.ads,
6138 g-soccon-aix.ads, g-soccon-darwin.ads,
6139 g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
6140 g-soccon-hpux.ads, g-soccon-irix.ads,
6141 g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
6142 g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
6143 g-soccon-mingw.ads, g-soccon-solaris-64.ads,
6144 g-soccon-solaris.ads, g-soccon-tru64.ads,
6145 g-soccon-vms.ads, g-soccon-vxworks.ads,
6146 g-soccon.ads, g-socket.adb, g-socket.ads,
6147 g-socthi-mingw.adb, g-socthi-vms.adb,
6148 g-socthi-vxworks.adb, g-soliop-mingw.ads,
6149 g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
6150 g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
6153 2008-03-27 Eric Botcazou <ebotcazou@adacore.com>
6155 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
6156 if the procedure is imported.
6158 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6160 * adaint.c: Fix warnings.
6162 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6164 * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
6166 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6168 * a-witeio.adb: Fix problem with Current_Output (introduce Self).
6169 Fix problem of status check for null file
6171 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6173 * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
6174 s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
6175 s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
6176 i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
6177 s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
6180 2008-03-26 Thomas Quinot <quinot@adacore.com>
6183 * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
6184 Get_Socket_Option): Add support for Receive_Packet_Info.
6186 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
6187 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
6188 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
6189 g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
6190 g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
6191 new constants SO_REUSEPORT and IP_PKTINFO
6193 2008-03-26 Robert Dewar <dewar@adacore.com>
6195 * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
6196 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
6197 a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
6198 a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
6199 a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
6200 a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
6201 s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
6202 s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
6203 a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
6204 s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
6205 s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
6206 s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
6207 s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
6208 s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
6209 s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
6210 s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
6211 s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
6212 s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
6213 s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
6214 s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
6215 a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
6216 a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
6217 s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
6218 s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
6219 s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
6220 s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
6221 s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
6222 a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
6223 a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
6224 s-tasloc.adb: Minor reformatting.
6226 Remove "used for" sections from comments.
6228 2008-03-26 Robert Dewar <dewar@adacore.com>
6230 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
6231 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
6232 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
6233 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
6234 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
6235 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
6236 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
6237 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
6238 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
6239 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
6240 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
6241 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
6242 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
6243 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
6244 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
6245 double spaced if it fits on one line and otherwise single spaced.
6247 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6249 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
6250 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
6251 s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
6252 or task info if the thread could not be created.
6254 2008-03-26 Arnaud Charlet <charlet@adacore.com>
6256 * gnatvsn.ads (Library_Version): Bump to 4.4.
6257 (Current_Year): Bump to 2008.
6259 2008-03-26 Robert Dewar <dewar@adacore.com>
6261 * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
6263 * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
6265 * debug.adb: Add debug flags d.r and d.v
6266 Add debug flag .T (Optimize_Alignment (Time))
6267 Add debug flag .S (Optimize_Alignment (Space))
6269 * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
6270 depending on setting of relevant debug flags.
6271 Replace use of Warnings_Off by Has_Warnings_Off
6272 (Freeze_Entity): In circuit for warning on suspicious convention
6273 actuals, do not give warning if subprogram has same entity as formal
6274 type, or if subprogram does not come from source.
6275 (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
6276 if Optimize_Alignment set to Space.
6278 * frontend.adb: Add call to Sem_Warn.Initialize
6279 Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
6280 Reset Optimize_Alignment mode from debug switches .S and .T
6282 * layout.adb (Layout_Composite_Object): Rewritten for
6283 Optimize_Aligment pragma.
6285 * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
6288 * opt.ads, opt.adb: (Optimize_Alignment): New global switch
6290 * par-prag.adb (N_Pragma): Chars field removed, use Chars
6291 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
6292 this change. Add entry for pragma Optimize_Alignment
6294 * sem_prag.adb (N_Pragma): Chars field removed, use Chars
6295 (Pragma_Identifier (..
6296 instead, adjustments throughout to accomodate this change.
6297 (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
6298 (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
6299 Add implementation of pragma Optimize_Alignment
6301 2008-03-26 Vincent Celier <celier@adacore.com>
6303 * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
6304 Improve memory usage to avoid use of stack.
6306 2008-03-26 Robert Dewar <dewar@adacore.com>
6308 * a-teioed.ads: Correct value of Default_Fill
6310 * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
6312 2008-03-26 Robert Dewar <dewar@adacore.com>
6314 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
6315 with Current_Output (introduce Self).
6317 2008-03-26 Robert Dewar <dewar@adacore.com>
6319 * checks.adb (Ensure_Valid): Capture valid status if possible
6322 2008-03-26 Robert Dewar <dewar@adacore.com>
6324 * stand.ads: Deal with reordering of package standard declarations
6326 * cstand.adb: Put package Standard declarations in proper order
6328 2008-03-26 Robert Dewar <dewar@adacore.com>
6330 * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
6331 (Pragma_Identifier (.. instead.
6332 (OK_To_Reorder_Components): New flag
6333 (Has_Entries): Code cleanup.
6334 (Warnings_Off_Used): New flag
6335 (Warnings_Off_Used_Unmodified): New flag
6336 (Warnings_Off_Used_Unreferenced): New flag
6337 (Has_Warnings_Off): New function
6338 (Has_Unmodified): New function
6339 (Has_Unreferenced): New function
6340 (Is_Trivial_Subprogram): New flag
6341 (Is_Static_Dispatch_Table_Entity): New attribute.
6342 Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
6343 (more consistent with other similar names)
6344 (Access_Subprogram_Type): New classification function
6346 2008-03-26 Robert Dewar <dewar@adacore.com>
6348 * errout.ads: Document new !! insertion sequence
6350 * errout.adb (N_Pragma): Chars field removed, use Chars
6351 (Pragma_Identifier (.. instead.
6352 Replace use of Warnings_Off by Has_Warnings_Off
6353 (Error_Msg_Internal): Don't delete warning ending in !!
6355 2008-03-26 Robert Dewar <dewar@adacore.com>
6357 * par.adb (Check_No_Right_Paren): Removed no longer used
6359 * par-ch10.adb (N_Pragma): Chars field removed, use Chars
6360 (Pragma_Identifier (.. instead.
6362 * par-ch10.adb (P_Subunit): Improvement in error recovery and message
6364 * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
6365 par-ch4.adb: Minor improvements in error recovery and messages.
6367 * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
6370 * par-ch9.adb: Minor improvements in error recovery and messages
6371 (P_Protected): Better error recovery for "protected type x;"
6373 * par-util.adb: Minor improvements in error recovery and messages
6374 (Check_No_Right_Paren): Removed no longer used
6376 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6378 * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
6379 that the prefix of an attribute is the type of the aggregate being
6382 2008-03-26 Javier Miranda <miranda@adacore.com>
6383 Robert Dewar <dewar@adacore.com>
6385 * exp_attr.adb (N_Pragma): Chars field removed.
6386 (Expand_N_Attribute_Reference): If the designated type associated with
6387 attribute 'Unrestricted_Access is a subprogram entity then replace it
6388 by an E_Subprogram_Type itype.
6389 Implement attribute Old
6391 * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
6393 * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
6395 New_Internal_Entity by call to Create_Itype to centralize calls
6396 building itypes, ad propagate the convention of the designated
6397 subprogram. In addition, disable the machinery cleaning constant
6398 indications from all entities in current scope when 'Unrestricted_Access
6399 corresponds with a node initializing a dispatch table slot.
6400 (Analyze_Attribute): Parameterless attributes returning a string or a
6401 type will not be called with improper arguments, so we can remove junk
6402 code that was dealing with this case.
6403 Implement attribute Old
6405 * snames.ads, snames.h, snames.adb: Add entries for attribute Old
6406 Add entry for pragma Optimize_Alignment
6407 New standard names Sync and Synchronize
6409 2008-03-26 Robert Dewar <dewar@adacore.com>
6410 Arnaud Charlet <charlet@adacore.com>
6412 * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
6414 (No_Exception_Propagation_Active): New function.
6415 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
6416 Update comments, and review all uses of No_Exception_Propagation, which
6417 are now correct and in sync with what gigi expects.
6419 * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
6421 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
6422 Update comments, and review all uses of No_Exception_Propagation, which
6423 are now correct and in sync with what gigi expects.
6425 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6427 * sem_ch3.adb (Access_Definition): If the access type is the return
6428 result of a protected function, create an itype reference for it
6429 because usage will be in an inner scope from the point of declaration.
6430 (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
6431 OK_To_Reorder_Components.
6432 (Make_Index): If an overloaded range includes a universal integer
6433 interpretation, resolve to Standard.Integer.
6434 (Analyze_Subtype_Indication): Copy Convention to subtype
6435 (Check_Abstract_Interfaces): Complete semantic checks on the legality of
6436 limited an synchronized progenitors in type declaration and private
6437 extension declarations.
6439 * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
6440 protected subprogram body, determine proper scope from subprogram
6443 2008-03-26 Robert Dewar <dewar@adacore.com>
6445 * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
6448 2008-03-26 Gary Dismukes <dismukes@adacore.com>
6450 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
6451 of a heap allocator for a limited unconstrained function return when
6452 resstriction No_Allocators is active.
6453 (Analyze_Allocator): The restriction No_Allocators is now only checked
6454 on allocators that have Comes_From_Source set, as per RM-H.4(7).
6456 * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
6457 of a heap allocator for a limited unconstrained function return when
6458 resstriction No_Allocators is active.
6459 (Analyze_Allocator): The restriction No_Allocators is now only checked
6460 on allocators that have Comes_From_Source set, as per RM-H.4(7).
6461 (Has_Fixed_Op): If the name in a function call is Standard."*" and the
6462 operands are fixed-point types, the universal_fixed predefined operation
6463 is used, regardless of whether the operand type (s) have a primitive
6464 operation of the same name.
6466 2008-03-26 Javier Miranda <miranda@adacore.com>
6468 * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
6469 Is_Static_Dispatch_Table
6470 (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
6471 to Exchange_Declarations to exchange the private and full-view. Bug
6472 found working in this issue.
6473 (Expand_Dispatching_Call): Propagate the convention of the subprogram
6474 to the subprogram pointer type.
6475 (Make_Secondary_DT): Replace generation of Prim'Address by
6476 Address (Prim'Unrestricted_Access)
6477 (Make_DT): Replace generation of Prim'Address by
6478 Address (Prim'Unrestricted_Access)
6479 (Make_Disp_*_Bodies): When compiling for a restricted profile, use
6480 simple call form for single entry.
6481 (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
6482 tables of predefined primitives).
6483 (Make_Secondary_DT): Add support to handle access to dispatch tables of
6484 predefined primitives.
6485 (Make_Tags): Add entities to Access_Dispatch_Table associated with
6486 access to dispatch tables containing predefined primitives.
6488 * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
6489 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
6491 (Register_Predefined_DT_Entry): Updated to handle the new contents
6492 of attribute Access_Disp_Table (pointers to dispatch tables containing
6493 predefined primitives).
6495 * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
6497 (Find_Interface_ADT): Updated to skip the new contents of attribute
6498 Access_Dispatch_Table (pointers to dispatch tables containing predefined
6501 * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
6503 (Set_Convention): Use new function Is_Access_Subprogram_Type
6504 (Collect_Interfaces_Info): Updated to skip the new contents of attribute
6505 Access_Dispatch_Table (pointers to dispatch tables containing predefined
6508 * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
6509 expanded code avoiding calls to Build_Predef_Prims.
6510 (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
6511 call to Build_Get_Predefined_Prim_Op_Address.
6513 2008-03-26 Javier Miranda <miranda@adacore.com>
6515 * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
6516 subprogram Corresponding_Runtime_Package to know the runtime package
6517 that will provide support to a given protected type.
6519 * exp_ch9.adb (Add_Private_Declarations,
6520 Build_Protected_Subprogram_Call,
6521 Build_Protected_Entry, Build_Simple_Entry_Call,
6522 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
6523 Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
6524 cleanup using the new centralized subprogram Corresponding_Runtime
6525 Package to know the runtime package that provides support to
6526 a given protected type.
6528 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6530 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
6531 assignment is within the initialization procedure for a packed array,
6532 and Initialize_Scalars is enabled, compile right-hand side with checks
6533 off, because the value is purposely out of range.
6535 2008-03-26 Vincent Celier <celier@adacore.com>
6537 * gnatcmd.adb: Add processing for GNAT SYNC
6539 * vms_conv.ads: (Command_Type): Add command Sync
6541 * vms_conv.adb (Initialize): Add Command_List data for new command Sync
6543 * vms_data.ads: Add entries for -gnatw.w
6544 Add qualifier for gnatstub --header-file option
6545 Add switches for GNAT SYNC
6547 * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
6548 (Add_Package_Name): New procedure
6549 (Package_Name_List): New function
6550 (Initialize): Add known package names to the list
6551 (Register_New_Package): Add the new package name to the list
6553 2008-03-26 Robert Dewar <dewar@adacore.com>
6555 * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
6556 s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
6557 Raise_Exception by "raise with" construct.
6559 2008-03-26 Pascal Obry <obry@adacore.com>
6561 * Makefile.in: Add proper GNAT.Serial_Communications implementation on
6562 supported platforms.
6564 * Makefile.rtl: Add g-sercom.o.
6566 * impunit.adb: Add g-sercom.adb.
6568 * s-crtl.ads (open): New routine.
6572 * s-osinte-mingw.ads (BYTE): New type.
6574 (OVERLAPPED): Likewise.
6575 (GENERIC_READ): New constant.
6576 (GENERIC_WRITE): Likewise.
6577 (OPEN_EXISTING): Likewise.
6578 (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
6580 (CreateFile): New routine.
6581 (WriteFile): Likewise.
6582 (ReadFile): Likewise.
6583 (CloseHandle): Move next to the other file oriented routines.
6585 * g-sercom.ads: New unit.
6587 * g-sercom.adb: Default implementation, calls to this unit will raise
6588 a program error exception.
6590 * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
6591 GNU/Linux implementations.
6593 2008-03-26 Robert Dewar <dewar@adacore.com>
6595 * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
6597 * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
6598 unchecked conversion for different conventions only for subprogram
6601 2008-03-26 Vincent Celier <celier@adacore.com>
6603 * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
6604 to check if the specified object file is correct.
6606 2008-03-26 Thomas Quinot <quinot@adacore.com>
6608 * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
6609 Comes_From_Source to exclude primitives from being checked. We want to
6610 exclude predefined primitives only, so use the appropriate specific
6611 predicate. Also, flag a formal parameter of an anonymous
6612 access-to-subprogram type as illegal for a primitive operation of a
6613 remote access to class-wide type.
6615 2008-03-26 Vincent Celier <celier@adacore.com>
6617 * prj-dect.adb (Parse_Package_Declaration): When a package name is not
6618 known, check if it may be a missspelling of a known package name. In
6619 not verbose, not mode, issue warnings only if the package name is a
6620 possible misspelling.
6621 In verbose mode, always issue a warning for a not known package name,
6622 plus a warning if the name is a misspelling of a known package name.
6624 * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
6625 limited withs or limited withs are parse during one call.
6626 (Parse_Single_Project): Post parse context clause in two passes: non
6627 limited withs before current project and limited withs after current
6630 * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
6631 project with the name With_Name, even if it is only extended indirectly.
6632 (Recursive_Process): Process projects in order: first single withs, then
6633 current project, then limited withs.
6635 * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
6636 project with the name With_Name, even if it is only extended indirectly.
6638 2008-03-26 Robert Dewar <dewar@adacore.com>
6640 * scn.adb (Initialize_Scanner): Format messages belong on standard error
6642 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6644 * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
6645 a generic subprogram that is imported, do not attempt to compile
6648 * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
6649 imported, do not generate a raise_program_error for the non-existent
6651 (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
6652 perform minimal name resolution on the generic to avoid spurious
6654 (Find_Actual_Type): the designated type of the actual in a child unit
6655 may be declared in a parent unit without being an actual.
6657 2008-03-26 Robert Dewar <dewar@adacore.com>
6659 * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
6660 * sinfo.ads, sinfo.adb (From_At_End): New flag
6662 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6664 * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
6665 operations that have an interface parameter.
6666 (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
6667 Don't treat No_Return call as raise.
6669 * sem_disp.adb (Check_Dispatching_Operations): apply check for
6670 non-primitive interface primitives to access parameters, not to all
6671 parameters of an access type.
6673 2008-03-26 Ed Schonberg <schonberg@adacore.com>
6675 * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
6676 declarations of a parent unit are made visible when compiling a child
6677 instance, the parent is not a hidden open scope, even though it may
6678 contain other pending instance.
6680 * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
6681 hidden open scope for some child instance, it does affect the
6682 visibility status of other stach entries.
6683 (Analyze_Object_Renaming): Check that a class-wide object cannot be
6684 renamed as an object of a specific type.
6686 2008-03-26 Robert Dewar <dewar@adacore.com>
6688 * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
6689 recursion and raise SE directly.
6690 (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
6691 set for formal type for IN mode parameter.
6693 2008-03-26 Robert Dewar <dewar@adacore.com>
6695 * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
6696 (Initialize): New procedure
6697 (Output_Warnings_Off_Warnings): New procedure
6698 (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
6699 (Output_Non_Modifed_In_Out_Warnings): Ditto
6700 (Warn_On_Unreferenced_Entity): Ditto
6702 2008-03-26 Vincent Celier <celier@adacore.com>
6704 * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
6707 2008-03-26 Matthew Heaney <heaney@adacore.com>
6709 * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
6710 a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
6711 Marked with clauses as private, and controlled operations as overriding
6713 2008-03-26 Robert Dewar <dewar@adacore.com>
6715 * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
6717 2008-03-26 Robert Dewar <dewar@adacore.com>
6719 * back_end.adb, back_end.ads: Minor reformatting
6721 * bindgen.adb: Minor clarification of comments
6723 * fname.ads: Minor comment fixes
6725 * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
6726 prj-nmsc.adb, sem_aggr.adb: Minor reformatting
6728 * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
6729 xsnames.adb: Remove warnings off pragma no longer needed
6731 * a-catizo.ads, a-calari.ads, a-calfor.adb,
6732 a-calfor.ads: Fix header.
6734 2008-03-26 Tristan Gingold <gingold@adacore.com>
6736 * init.c: Do not adjust pc for HPARITH on alpha/vms.
6738 2008-03-26 Robert Dewar <dewar@adacore.com>
6740 * lib-xref.adb: (OK_To_Set_Reference): New function
6741 (Generate_Reference): Don't set referenced from occurrence in Warnings,
6742 Unmodified, or Unreferenced pragma
6744 2008-03-26 Robert Dewar <dewar@adacore.com>
6746 * alloc.ads: Add entries for Warnings_Off_Pragmas table
6748 2008-03-26 GNAT Script <nobody@adacore.com>
6750 * Make-lang.in: Makefile automatically updated
6752 2008-03-26 Robert Dewar <dewar@adacore.com>
6754 * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
6755 par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
6756 removed, use Chars (Pragma_Identifier (.. instead, adjustments
6757 throughout to accomodate this change.
6759 * s-pooglo.ads, s-pooloc.ads: Minor comment updates
6761 * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
6762 Einfo.Set_Needs_Debug_Info)
6764 2008-03-26 Robert Dewar <dewar@adacore.com>
6766 * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
6767 Add description for the new gnatstub option '--header-file'
6768 clarification of -gnatwz/-gnatwZ
6769 Add a "Irix-Specific Considerations" section to document the need to
6770 set LD_LIBRARY_PATH when using the default shared runtime library.
6771 Added documentation for both gcov and gprof.
6773 * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
6774 messages that are not suppressed when clients are compiled.
6775 Add documentation of s-pooglo s-pooloc
6776 Document the new GNAT.Serial_Communications API.
6777 Add documentation for 'Old attribute
6778 Add description of pragma Optimize_Alignment
6780 * ug_words: Add entries for -gnatw.w -gnatw.W
6782 * usage.adb: Add line for -gnatw.w (warn on warnings off)
6784 2008-03-25 Eric Botcazou <ebotcazou@adacore.com>
6787 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
6789 * decl.c (maybe_pad_type): Avoid padding an integral type when
6790 bumping its alignment is sufficient.
6792 2008-03-25 Arnaud Charlet <charlet@adacore.com>
6794 * exp_ch6.adb, exp_disp.adb: Update copyright notice.
6795 Fix wrong formatting (lines too long)
6797 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6799 * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
6800 a-calend-vms.adb, a-calend.adb, a-calend.ads,
6801 a-calfor.adb, a-chahan.ads, a-chtgke.adb,
6802 a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
6803 a-cohama.ads, a-comlin.ads, a-coorse.adb,
6804 a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
6805 a-except-2005.ads, a-except.adb, a-except.ads,
6806 a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
6807 a-exextr.adb, a-filico.ads, a-finali.ads,
6808 a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
6809 a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
6810 a-sequio.ads, a-strbou.ads, a-strfix.adb,
6811 checks.adb, exp_ch3.adb, exp_ch4.adb,
6812 exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
6813 exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
6814 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
6815 exp_dbug.ads, exp_disp.adb, exp_dist.adb,
6816 exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
6818 2008-03-24 Robert Dewar <dewar@adacore.com>
6820 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
6821 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
6822 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
6823 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
6824 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
6825 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
6826 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
6827 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
6828 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
6829 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
6830 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
6831 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
6832 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
6833 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
6834 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
6835 double spaced if it fits on one line and otherwise single spaced.
6837 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6839 PR documentation/15479
6840 * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
6841 (doc/gnat_ugn_unw.texi): ... this, and adjusted.
6842 (doc/gnat_ugn.info): Renamed from ...
6843 (doc/gnat_ugn_unw.info): ... this.
6844 (doc/gnat_ugn.dvi): Renamed from ...
6845 (doc/gnat_ugn_unw.dvi): ... this.
6846 (doc/gnat_ugn.pdf): Renamed from ...
6847 (doc/gnat_ugn_unw.pdf): ... this.
6848 (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
6850 * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
6851 unconditionally to gnat_ugn.info. Fix cross references to the
6852 GNAT Reference Manual. Convert links to the GCC, GDB, Emacs,
6853 and GNU make manuals to be proper texinfo links.
6854 * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
6856 2008-03-21 Olivier Hainque <hainque@adacore.com>
6858 * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
6859 ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
6861 2008-03-21 Eric Botcazou <ebotcazou@adacore.com>
6863 * trans.c (addressable_p): Add notes on addressability issues.
6865 2008-03-21 Olivier Hainque <hainque@adacore.com>
6866 Ed Schonberg <schonberg@adacore.com>
6868 * trans.c (addressable_p): Accept COND_EXPR when both arms
6870 (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
6871 (call_to_gnu): Do not use name reference in the error message
6872 for a misaligned by_reference_parameter. The actual may be a
6875 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
6877 * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
6879 2008-03-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6881 * gnat_rm.texi (Implementation Defined Characteristics)
6882 (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
6884 * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
6885 (Switches for gnatchop, Installing a library): Likewise.
6887 2008-03-10 Eric Botcazou <ebotcazou@adacore.com>
6889 * trans.c (emit_range_check): Do not emit the check if the base type
6890 of the expression is the type against which its range must be checked.
6892 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
6894 * decl.c (maybe_pad_type): Use value_factor_p.
6896 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
6898 * lang.opt (nostdlib): Move around.
6899 * misc.c (gnat_handle_option): Fix formatting.
6900 (gnat_dwarf_name): Move around.
6901 * trans.c (Case_Statement_to_gnu): Fix formatting.
6902 (gnat_to_gnu): Likewise.
6903 * utils.c (aggregate_type_contains_array_p): Likewise.
6904 (create_subprog_decl): Likewise.
6906 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
6908 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
6909 bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
6911 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
6913 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
6914 BIGGEST_ALIGNMENT when capping the alignment of records with
6915 strict alignment and size clause.
6917 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
6919 * lang-specs.h: Pass -gnatwa if -Wall is passed.
6920 * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
6921 and -Wuninitialized.
6922 (gnat_post_options): Clear warn_unused_parameter.
6924 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
6926 * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
6927 aligned bit-fields, bumping the alignment of the record type if deemed
6929 (value_factor_p): Return false instead of 0.
6931 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
6933 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
6934 for scalar types with small alignment.
6936 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
6938 * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
6939 from that of the front-end's end label.
6940 (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
6941 from that of the loop label.
6943 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
6945 * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
6946 comment for the packed array type case.
6947 * utils.c (build_template): Use a loop to strip padding or
6948 containing records for justified modular types.
6950 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
6952 * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
6953 large alignments specified for types.
6954 (validate_alignment): Minor cleanup.
6956 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
6958 * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
6959 (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
6960 the component for packing, if possible, as well as if a component
6961 size clause is specified.
6962 <E_Record_Subtype>: For an array type used to implement a packed
6963 array, get the component type from the original array type.
6964 Try to get a smaller form of the component for packing, if possible,
6965 as well as if a component size clause is specified.
6966 (round_up_to_align): New function.
6967 (make_packable_type): Add in_record parameter.
6968 For a padding record, preserve the size. If not in_record and the
6969 size is too large for an integral mode, attempt to shrink the size
6970 by lowering the alignment.
6971 Ditch the padding bits of the last component.
6972 Compute sizes and mode manually, and propagate the RM size.
6973 Return a BLKmode record type if its size has shrunk.
6974 (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
6975 Use Original_Array_Type to retrieve the type in case of an error.
6976 Adjust call to make_packable_type.
6977 (gnat_to_gnu_field): Likewise.
6978 (concat_id_with_name): Minor tweak.
6979 * trans.c (larger_record_type_p): New predicate.
6980 (call_to_gnu): Compute the nominal type of the object only if the
6981 parameter is by-reference. Do the conversion actual type -> nominal
6982 type if the nominal type is a larger record.
6983 (gnat_to_gnu): Do not require integral modes on the source type to
6984 avoid the conversion for types with identical names.
6985 (addressable_p): Add gnu_type parameter. If it is specified, do not
6986 return true if the expression is not addressable in gnu_type.
6987 Adjust recursive calls.
6988 * utils.c (finish_record_type): Remove dead code.
6990 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
6993 * decl.c (maybe_pad_type): Avoid padding an integral type when
6994 bumping its alignment is sufficient.
6996 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6998 * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
6999 * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
7001 * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
7002 gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
7003 sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
7004 code output strings.
7005 * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
7006 system-vms_64.ads: Fix typos in ada source code comments.
7007 * sinfo-cn.adb: Remove incomplete sentence.
7009 PR documentation/15479
7010 * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
7012 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
7015 * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
7017 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
7020 * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
7021 that underlying type is present.
7023 2008-02-26 Tom Tromey <tromey@redhat.com>
7025 * misc.c (internal_error_function): Remove test of
7026 USE_MAPPED_LOCATION.
7027 * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
7028 (Sloc_to_locus): Remove old location code.
7030 2008-02-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7032 * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
7033 `i.e.' by adding comma or `@:' as appropriate.
7034 * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
7035 plain characters `C', use `@samp{C}'.
7036 * gnat_ugn.texi (File Naming Rules, About gnatkr)
7037 (Krunching Method): Likewise.
7039 * gnat_ugn.texi (Conventions): List environment variables and
7040 metasyntactic variables.
7041 (Compiling Programs): Fix notation of metasyntactic variables.
7042 Add @file where appropriate. Use @file for file extensions,
7044 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
7045 instead of @file, @env instead of @code.
7047 2008-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7049 PR documentation/15479
7050 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
7051 and `...' with `@dots{}' or `@enddots{}'.
7053 PR documentation/15479
7054 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
7055 use @command instead of @code, @option instead of @samp or @code,
7056 @code instead of @var, @samp instead of @file.
7058 PR documentation/15479
7059 * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
7060 in Makefile rules, by using `&&' rather than `;'.
7062 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7064 PR documentation/15479
7065 * gnat_ugn.texi: In non-code, avoid space before colon.
7066 (Regular Expressions in gnatfind and gnatxref): Fix indentation.
7067 (Examples of gnatxref Usage): Use @command{vi} instead of
7069 (Character Set Control): Do not use @code for UTF-8.
7070 (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not
7072 * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
7074 * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years.
7076 2008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
7079 * env.c: Add __rtems__ to if defined.
7080 * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting.
7081 * s-osinte-rtems.ads: Add To_Target_Priority prototype and
7082 PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add
7083 pragma Convention as required.
7084 * gsocket.h: Make compile in and out of RTS.
7085 * Makefile.in: Add system-rtems.ads. Build DEC extensions.
7086 Use g-soccon-rtems.ads.
7087 * g-soccon-rtems.ads, system-rtems.ads: New files.
7089 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7092 * Make-lang.in (gnat1): Add $(GMPLIBS).
7094 2008-01-26 Eric Botcazou <ebotcazou@adacore.com>
7096 * decl.c (components_to_record): Improve comment.
7098 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
7100 * decl.c (components_to_record): Do not reuse the empty union type
7101 if there is a representation clause on the record.
7102 * trans.c (addressable_p): Return true for INTEGER_CST.
7104 2008-01-21 Eric Botcazou <ebotcazou@adacore.com>
7106 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
7107 in pointer arithmetics.
7108 * utils2.c (build_allocator): Likewise.
7110 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
7112 * utils.c (build_function_stub): Properly build the call expression.
7114 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
7116 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
7117 before converting the expression to the type of the object.
7118 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
7119 Stabilize constructors for special wrapping types.
7121 2008-01-13 Eric Botcazou <ebotcazou@adacore.com>
7123 * trans.c (call_to_gnu): Invoke the addressable_p predicate only
7124 when necessary. Merge some conditional statements. Update comments.
7125 Rename unchecked_convert_p local variable to suppress_type_conversion.
7126 Do not suppress conversions in the In case.
7127 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
7128 into account on non strict-alignment platforms.
7130 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
7132 * utils.c (aggregate_type_contains_array_p): New predicate.
7133 (create_field_decl): In a packed record, force byte alignment
7134 for fields without specified position that contain an array.
7136 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
7138 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
7140 2008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
7143 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
7145 (bit_field): New packed boolean type used by cpu_set_t.
7146 (cpu_set_t): New type corresponding to the C type with
7147 the same name. Note that on the Ada side we use a bit
7148 field array for the affinity mask. There is not need
7149 for the C macro for setting individual bit.
7150 (pthread_setaffinity_np): New imported routine.
7152 2008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
7155 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
7156 on OpenBSD as is done on other BSD systems.
7159 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
7160 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
7164 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
7168 * init.c (__gnat_error_handler, __gnat_install_handler,
7169 __gnat_init_float): Define for OpenBSD.
7171 * initialize.c (__gnat_initialize): Define for OpenBSD.
7173 2007-12-27 Samuel Tardieu <sam@rfc1149.net>
7176 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
7177 instead of mktemp() or tmpnam() on NetBSD.
7179 2007-12-23 Eric Botcazou <ebotcazou@adacore.com>
7181 * trans.c (call_to_gnu): Make the temporary for non-addressable
7182 In parameters passed by reference.
7183 (addressable_p): Return true for STRING_CST and CALL_EXPR.
7185 2007-12-19 Robert Dewar <dewar@adacore.com>
7187 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
7188 Add pragma Warnings (Off) for unassigned IN OUT arguments
7190 * sem_warn.adb (Output_Reference): Suppress messages for internal names
7191 (Check_References): Extensive changes to tune up warnings
7192 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
7193 (Has_Pragma_Unmodifed_Check_Spec): New function
7194 (Check_References): Implement pragma Unmodified
7195 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
7197 * par-prag.adb: Dummy entry for pragma Unmodified
7199 * sem_prag.adb: Implement pragma Unmodified
7201 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
7202 (Proc_Next_Component_Or_Discriminant): Fix typo.
7205 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
7207 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
7208 because the former already takes care of discarding the result.
7209 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
7212 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
7214 2007-12-19 Eric Botcazou <ebotcazou@adacore.com>
7216 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
7217 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
7218 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
7219 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
7220 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7221 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
7222 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
7223 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
7224 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7225 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
7226 (Dynamic_Trampolines_Used): Delete.
7228 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
7229 Turn on stack probing mechanism on LynxOS.
7231 2007-12-19 Bob Duff <duff@adacore.com>
7233 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
7234 the resulting tail recursion by hand. This prevents running out of
7235 memory on deeply nested concatenations, since Field2 is where the left
7236 operand of concatenations is stored.
7237 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
7238 clarify that it can only return OK or Abandon.
7240 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
7241 operand by iteration, in order to avoid running out of memory on
7242 deeply-nested concatenations. Use the Parent pointer to get back up the
7244 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
7245 Resolve_Op_Concat_Rest): New procedures split out of
7246 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
7249 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
7250 Traverse_Func, because the former already takes care of discarding the
7253 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
7254 because the former already takes care of discarding the result.
7255 (Remove_Warning_Messages): Use appropriate subtype for Status and
7258 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7260 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
7261 discriminants forces expansion of the aggregate into assignments.
7262 (Init_Record_Controller): If the type of the aggregate is untagged and
7263 is not inherently limited, the record controller is not limited either.
7265 2007-12-19 Robert Dewar <dewar@adacore.com>
7267 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
7268 handling compile time known size of record or array (case of front end
7269 layout active, e.g. in GNAAMP).
7271 2007-12-19 Javier Miranda <miranda@adacore.com>
7273 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
7274 that forces the construction of static dispatch tables in case of
7277 2007-12-19 Robert Dewar <dewar@adacore.com>
7279 * exp_ch9.adb (Null_Statements): Moved to library level
7280 (Trivial_Accept_OK): New function
7281 (Expand_Accept_Declaration): Use Trivial_Accept_OK
7282 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
7284 2007-12-19 Robert Dewar <dewar@adacore.com>
7286 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
7287 in complex case where array is Volatile.
7289 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7291 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
7292 properly the Ada2005 rules concerning when the current instance of a
7293 record type is aliased.
7295 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7297 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
7299 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
7301 (P_Variant_Part): Cleaner patch for parenthesized discriminant
7303 2007-12-19 Vincent Celier <celier@adacore.com>
7305 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
7306 package is not known
7308 * prj-attr.ads (Unknown_Package): New constant
7309 Do not crash when an unknown package is in several projects
7311 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
7314 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
7315 existing package Language_Processing.
7317 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7318 Gary Dismukes <dismukes@adacore.com>
7319 Samuel Tardieu <sam@rfc1149.net>
7321 PR ada/15803, ada/15805
7322 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
7323 illegal access subtypes when there is a constrained partial view.
7324 (Check_For_Premature_Usage): New procedure inside
7325 Access_Subprogram_Declaration for checking that an access-to-subprogram
7326 type doesn't reference its own name within any formal parameters or
7327 result type (including within nested anonymous access types).
7328 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
7329 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
7330 context is an access_to_variable, the expression cannot be an
7333 2007-12-19 Bob Duff <duff@adacore.com>
7335 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
7336 (Analyze_Concatenation): Use iteration instead of recursion in order
7337 to avoid running out of stack space for deeply nested concatenations.
7339 2007-12-19 Ed Schonberg <schonberg@adacore.com>
7340 Gary Dismukes <dismukes@adacore.com>
7342 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
7343 whose renamed entity is a subprogram that requires overriding.
7344 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
7345 issuing an error for premature usage and issue a message that says
7346 'type' rather than 'object'.
7348 2007-12-19 Gary Dismukes <dismukes@adacore.com>
7351 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
7352 presence of a statically tagged operand (Present (Static_Tag)) with
7353 test for Indeterm_Ancestor_Call when determining whether to propagate
7354 the static tag to tag-indeterminate operands (which forces dispatching
7356 (Check_Controlling_Formals): Ada2005, access parameters can have
7358 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
7359 not insert subprogram in list of primitive operations if already there.
7361 2007-12-19 Tristan Gingold <gingold@adacore.com>
7363 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
7366 2007-12-19 Thomas Quinot <quinot@adacore.com>
7368 Part of PR ada/33688
7369 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
7370 datagram info on Linux.
7372 2007-12-19 Vincent Celier <celier@adacore.com>
7374 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
7375 that the source path name is always found in the dependencies.
7377 2007-12-19 Robert Dewar <dewar@adacore.com>
7379 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
7380 Fix name of Wide_Wide_Latin_1/9 file names
7381 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
7382 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
7383 Add missing documentation for Ada.Command_Line.Response_File
7384 Update list of warning letters for Warnings pragma
7385 Add documentation for pragma Unmodified
7387 2007-12-19 Samuel Tardieu <sam@rfc1149.net>
7389 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
7391 2007-12-17 Arnaud Charlet <charlet@adacore.com>
7393 * s-vxwork-alpha.ads: Removed, no longer used.
7395 2007-12-15 Jakub Jelinek <jakub@redhat.com>
7397 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
7399 2007-12-13 Samuel Tardieu <sam@rfc1149.net>
7402 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
7403 mlib-tgt-specific.adb.
7405 2007-12-13 Bob Duff <duff@adacore.com>
7407 * trans.c (Attribute_to_gnu): Check for violations of the
7408 No_Implicit_Dynamic_Code restriction. This checking used to be done in
7409 the front end, but is moved here so we can make it more accurate.
7411 2007-12-13 Pascal Obry <obry@adacore.com>
7413 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
7414 version is provided for older GNU/Linux distribution not
7415 supporting thread affinity sets.
7417 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
7419 (bit_field): New packed boolean type used by cpu_set_t.
7420 (cpu_set_t): New type corresponding to the C type with
7421 the same name. Note that on the Ada side we use a bit
7422 field array for the affinity mask. There is not need
7423 for the C macro for setting individual bit.
7424 (pthread_setaffinity_np): New imported routine.
7426 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
7428 (Create_Task): Set the processor affinity mask if information
7431 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
7433 2007-12-13 Robert Dewar <dewar@adacore.com>
7435 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
7436 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
7437 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
7438 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
7439 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
7440 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
7441 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
7442 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
7443 for subprogram pointers.
7445 * g-ctrl_c.adb: New file.
7447 * g-ctrl_c.ads (Install_Handler): New body.
7449 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
7450 instead of obsolete function Is_Always_Inlined.
7451 (Freeze_Entity): check for tagged type in imported C subprogram
7452 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
7453 (Freeze_Entity): check for convention Ada subprogram pointer in
7454 imported C subprogram.
7455 (Freeze_Fixed_Point_Type): In the case of a base type where the low
7456 bound would be chopped off and go from negative to zero, force
7457 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
7458 bound) so that the size computation for the base type will take
7459 negative values into account.
7461 2007-12-13 Eric Botcazou <ebotcazou@adacore.com>
7462 Bob Duff <duff@adacore.com>
7463 Tristan Gingold <gingold@adacore.com>
7465 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
7466 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
7467 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
7468 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
7469 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
7470 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
7471 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
7472 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
7473 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
7474 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
7475 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
7476 (Always_Compatible_Rep): New flag to control trampolines globally.
7477 (Dynamic_Trampolines_Used): New flag for implementing the
7478 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
7479 and not yet set correctly for some targets).
7481 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
7482 Simply indirectly call s-stchop when a task is created.
7485 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
7486 appears as an argument (entries A) in an ALI file.
7488 * fe.h (Stack_Check_Limits): Declare new target parameter.
7489 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
7491 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
7492 This variable is declared in C to be sure not subject to elaboration
7494 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
7497 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
7498 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
7500 * s-stchop.ads: Add comments.
7502 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
7503 limit method of stack checking.
7505 * s-stchop-limit.ads: New file.
7507 2007-12-13 Robert Dewar <dewar@adacore.com>
7509 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
7510 a-cihama.adb, g-awk.adb,
7511 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
7514 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
7516 * sem.adb: Update handling of assigned value/unreferenced warnings
7518 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
7520 * lib-xref.ads: Improve documentation for k xref type
7523 Update handling of assigned value/unreferenced warnings
7524 (Generate_Reference): Warning for reference to entity for which a
7525 pragma Unreferenced has been given should be unconditional.
7526 If the entity is a discriminal, mark the original
7527 discriminant as referenced.
7529 * sem_warn.ads, sem_warn.adb
7530 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
7531 no entities referenced in package
7532 (Check_One_Unit): Don't give message about no entities referenced in
7533 a package if a pragma Unreferenced has appeared.
7534 Handle new warning flag -gnatw.a/-gnatw.A
7535 Update handling of assigned value/unreferenced warnings
7537 * atree.h: Add flags up to Flag247
7538 (Flag231): New macro.
7540 2007-12-13 Jose Ruiz <ruiz@adacore.com>
7542 * adaint.h: (__gnat_plist_init): Not defined for RTX.
7544 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
7547 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
7548 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
7549 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
7550 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
7553 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
7555 * sysdep.c (winflush_function for RTX): Procedure that does nothing
7556 since we only have problems with Windows 95/98, which are not
7558 (__gnat_ttyname): Return the empty string on Nucleus, just as
7561 2007-12-13 Robert Dewar <dewar@adacore.com>
7563 * a-textio.adb, a-textio.ads:
7564 Extensive changes to private part for wide character encoding
7566 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
7567 (Look_Ahead): Fix mishandling of encoded sequences
7568 Move declaration of Wch_Con to private part (should not be visible)
7570 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
7571 UTF-8. Probably this is never used, but if it is, brackets is
7574 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
7575 setting wide character encoding for no main program case and when
7576 encoding is specified using -W?
7577 Initialize stack limit of environment task if stack limit method of
7578 stack checking is enabled.
7579 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
7580 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
7581 (Get_Main_Unit_Name): New function.
7582 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
7583 (Gen_Output_File): Set Bind_Main_Program to True for .NET
7585 * bindusg.adb: Add line for -Wx switch
7587 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
7589 Add new useful constant WC_Longest_Sequences
7591 * switch-b.adb: Clean up handling of -Wx switch
7592 For -gnatWx, set Wide_Character_Encoding_Method_Specified
7594 * switch-c.adb: -gnatg activates warning on assertion errors
7595 For -gnatWx, set Wide_Character_Encoding_Method_Specified
7597 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
7599 2007-12-13 Robert Dewar <dewar@adacore.com>
7600 Ed Schonberg <schonberg@adacore.com>
7602 * a-ngcoty.adb: New pragma Fast_Math
7604 * opt.adb: New pragma Fast_Math
7607 Add Implemented_By_Entry to the list of pragmas which do not require any
7609 (Favor_Top_Level): New pragma.
7610 New pragma Fast_Math
7612 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
7613 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
7614 Expand_Allocator_Expression): Take into account VM_Target
7615 (Expand_Attribute, case 'Identity): Handle properly the case where
7616 the prefix is a task interface.
7617 New pragma Fast_Math
7619 * par.adb (Next_Token_Is): New function
7620 (P_Pragma): Add Skipping parameter
7621 (U_Left_Paren): New procedure
7622 (U_Right_Paren): New procedure
7623 New pragma Fast_Math
7625 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
7627 New pragma Fast_Math
7629 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
7630 Implemented_By_Entry.
7631 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
7632 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
7633 items, since it can apply to more than one overloadable entity. Set
7634 new flag Has_Pragma_Inline_Always for Inline_Always case.
7635 (Analyze_Pragma, case Complex_Representation): Improve error message.
7636 (Analyze_Pragma, case Assert): When assertions are disabled build the
7637 rewritten code with Sloc of expression rather than pragma, so new
7638 warning about failing is not deleted.
7639 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
7640 protected types and update error message to reflect that. Test whether
7641 the protected type is allowed for the pragma (an error is issued if the
7642 type has any entries, or components that do not have preelaborable
7644 New pragma Fast_Math
7645 (Analyze_Pragma, case No_Return): Handle generic instance
7647 * snames.h, snames.ads, snames.adb:
7648 Add new predefined name for interface primitive _Disp_Requeue.
7649 New pragma Fast_Math
7651 * a-tags.ads, a-tags.adb: New calling sequence for
7652 String_To_Wide_[Wide_]String
7653 (Secondary_Tag): New subprogram.
7655 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
7657 New calling sequence for String_To_Wide_[Wide_]String
7658 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
7659 the use of the secondary stack for image routines.
7661 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
7662 calling sequence for String_To_Wide_[Wide_]String
7664 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
7666 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
7667 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7669 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
7670 (P_Formal_Part): Use Skipping parameter in P_Pragma call
7671 to improve error recovery
7673 * par-util.adb (Next_Token_Is): New function
7674 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
7676 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
7677 semicolon if missing
7678 (P_Pragma): Implement new Skipping parameter
7679 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7680 Fix location of flag for unrecognized pragma message
7682 * par-tchk.adb (U_Left_Paren): New procedure
7683 (U_Right_Paren): New procedure
7685 2007-12-13 Geert Bosch <bosch@adacore.com>
7688 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
7689 the second or later Scaled_Divide would omit leading zeroes,
7690 resulting in too few digits produced and a Layout_Error as result.
7691 (Put): Initialize Pos.
7693 2007-12-13 Robert Dewar <dewar@adacore.com>
7695 atree.ads, atree.adb (Flag231..Flag247): New functions
7696 (Set_Flag231..Set_Flag247): New procedures
7697 (Basic_Set_Convention): Rename Set_Convention to be
7698 Basic_Set_Convention
7699 (Nkind_In): New functions
7700 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7702 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
7704 of obsolete function Is_Always_Inlined
7705 (Register_Predefined_DT_Entry): Initialize slots of the second
7706 secondary dispatch table.
7707 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7708 (Expand_N_Function_Call): Remove special provision for stack checking.
7710 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
7711 Include _Disp_Requeue in the list of predefined operations.
7712 (Find_Interface_ADT): Modified to fulfill the new specification.
7713 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7715 * par-ch4.adb, nlists.ads, nlists.adb:
7716 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
7718 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
7719 Fix location of flag for unrecognized pragma message
7721 * sem_ch7.adb: Use Nkind_In
7723 2007-12-13 Vincent Celier <celier@adacore.com>
7726 Indicate what flags are used by the Project Manager, gprbuild and
7728 (Opt.Follow_Links_For_Dirs): New flag
7729 (Warn_On_Assertion_Failure): New flag
7730 (Wide_Character_Encoding_Method_Specified): New flag
7731 (Suppress_All_Inlining): New switch set by -fno-inline
7732 (Real_VMS_Target): New flag
7733 New pragma Fast_Math
7735 2007-12-13 Robert Dewar <dewar@adacore.com>
7737 * back_end.adb: Recognize -fno-inline
7739 2007-12-13 Robert Dewar <dewar@adacore.com>
7741 * checks.adb: Fix optimization problem with short-circuited form
7743 2007-12-13 Bob Duff <duff@adacore.com>
7745 * clean.adb (Usage): Add line for -aP
7746 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
7747 with a parameter "procedure Usage", instead of passing a pointer to a
7748 procedure. This is to eliminate trampolines (since the Usage procedure
7749 is often nested in a main procedure, and it would be inconvenient to
7752 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
7753 to be generic, with a parameter "procedure Callback (...)", instead of
7754 passing a pointer to a procedure. This is to eliminate trampolines
7755 (since the Callback procedure is usually nested).
7757 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
7758 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
7759 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
7761 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
7762 Use the generic Heap_Sort_G instead of Heap_Sort_A.
7764 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
7766 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
7767 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
7768 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
7769 (Renamed_In_Spec): New flag
7770 (Has_Pragma_Inline_Always): New flag
7771 Add missing doc for pragma Obsolescent_Warning
7772 Add missing doc for 17 additional unused flags (230-247)
7773 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
7774 Alphabetize with clauses.
7775 Separate Is_Thunk and Has_Thunks flags
7776 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
7777 (Related_Interface): Renamed to Related_Type.
7778 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
7779 (Set_Is_Flag): Restrict the assertion.
7781 2007-12-13 Vincent Celier <celier@adacore.com>
7783 * errout.adb (Output_Source_Line): Do not keep a trailing space after
7784 the source line number if the source line is empty.
7786 2007-12-13 Geert Bosch <bosch@adacore.com>
7788 * eval_fat.adb (Decompose_Int): Handle argument of zero.
7789 (Compose): Remove special casing of zero.
7790 (Exponent): Likewise.
7791 (Fraction): Likewise.
7792 (Machine): Likewise.
7793 (Decompose): Update comment.
7795 2007-12-13 Ed Schonberg <schonberg@adacore.com>
7797 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
7798 limited ancestor part, initialize controllers of enclosing record
7799 before expanding ancestor aggregate.
7800 (Gen_Assign): If a component of the aggregate is box-initialized, add
7801 code to call Initialize if the component is controlled, and explicit
7802 assignment of null if the component is an access type.
7804 Handle properly aggregates for limited types that appear in object
7805 declarations when the aggregate contains controlled values such as
7807 When expanding limited aggregates into individual components, do not
7808 call Adjust on controlled components that are limited.
7810 2007-12-13 Ed Schonberg <schonberg@adacore.com>
7812 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
7814 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
7816 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
7817 predefined primitive _Disp_Requeue.
7818 (Make_Predefined_Primitive_Specs): Create the spec for predefined
7819 primitive _Disp_Requeue.
7820 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
7821 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
7822 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
7823 an interface type. In case of limited interfaces we now declare all the
7824 predefined primitives associated with synchronized interfaces as
7826 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
7828 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
7829 tagged type is an interface type and there is no user-defined equality
7831 Add also bodies of predefined primitives associated with synchronized
7833 (Freeze_Record_Type): Do not build bodies of predefined primitives of
7834 interface types because they are now defined abstract.
7835 Add missing documentation.
7836 (Expand_Record_Controller): Update occurrence of Related_Interface
7838 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
7839 (Expand_N_Object_Declaration): Take into account VM_Target when handling
7840 class wide interface object declaration.
7841 (Expand_Previous_Access_Type): Do not create a duplicate master entity
7842 if the access type already has one.
7843 (Expand_N_Object_Declaration): Defend against attempt to validity check
7844 generic types. Noticed for -gnatVcf specified with previous errors.
7846 2007-12-13 Arnaud Charlet <charlet@adacore.com>
7848 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
7849 Expand_Allocator_Expression): Take into account VM_Target
7851 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
7852 secondary stack when VM_Target /= No_VM
7854 2007-12-13 Javier Miranda <miranda@adacore.com>
7855 Ed Schonberg <schonberg@adacore.com>
7857 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
7858 Is_Complation_Unit by Is_Library_Level_Entity in the code
7859 that decides if the static dispatch tables need to be built.
7860 (Wrap_Transient_Declaration): Do not generate a finalization call if
7861 this is a renaming declaration and the renamed object is a component
7862 of a controlled type.
7864 2007-12-13 Gary Dismukes <dismukes@adacore.com>
7866 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
7867 In the case where the renamed subprogram is a dereference, call
7868 Force_Evaluation on the prefix.
7870 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
7871 Ed Schonberg <schonberg@adacore.com>
7873 * exp_ch9.adb (Expand_N_Asynchronous_Select,
7874 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
7875 comment reformatting.
7876 (Set_Privals): Inherit aliased flag from formal. From code reading.
7877 (Build_Simple_Entry_Call): Out parameters of an access type are passed
7878 by copy and initialized from the actual. This includes entry parameters.
7879 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
7880 and Ada 2005 models of requeue.
7881 (Null_Statements): Still connsider do-end block null if it contains
7882 Unreferenced and Warnings pragmas.
7883 (Expand_N_Accept_Statement): Do not optimize away null do end if
7884 dispatching policy is other than defaulted.
7885 (Expand_N_Timed_Entry_Call): When the triggering statement is a
7886 dispatching call, manually analyze the delay statement.
7887 (Find_Parameter_Type): Move subprogram to Sem_Util.
7889 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
7890 Javier Miranda <miranda@adacore.com>
7892 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
7893 _Disp_Requeue occupies dispatch table slot number 15. Move
7894 _Disp_Timed_Select to slot 16.
7895 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
7896 generate the spec and body of _Disp_Reqeueue.
7897 (Make_DT): Build and initialize the second dispatch table.
7898 Handle initialization of RC_Offset when the parent
7899 is a private type with variable size components.
7900 (Make_Secondary_DT): Complete documentation. Add support to
7901 initialize the second dispatch table.
7902 (Make_Tags): Generate the tag of the second dispatch table.
7903 (Register_Primitive): Add support to register primitives in the
7904 second dispatch table.
7906 2007-12-13 Pascal Obry <obry@adacore.com>
7908 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
7909 Windows. This signal is used by gnatmake to kill child processes for
7912 2007-12-13 Javier Miranda <miranda@adacore.com>
7914 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
7915 support for generic dispatching constructor calls in which we need to
7916 locate the tag of a secondary dispatch table associated with an
7917 interface type to properly dispatch the call.
7918 (Expand_N_Attribute_Reference [case Address],
7919 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
7920 handling of VM targets.
7922 2007-12-13 Robert Dewar <dewar@adacore.com>
7923 Ed Schonberg <schonberg@adacore.com>
7925 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
7928 * ug_words: Add entries for -gnatw.a -gnatw.A
7930 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
7931 literal is a subtype with non-static constraints, use the base type of
7932 the context as the base of the string subtype, to prevent type
7934 (Resolve_Actuals): If the actual is an entity name, generate a
7935 reference before the actual is resolved and expanded, to prevent
7936 spurious warnings on formals of enclosing protected operations.
7937 (Analyze_Overloaded_Selected_Component): If type of prefix if
7938 class-wide, use visible components of base type.
7939 (Resolve_Selected_Component): Ditto.
7940 (Resolve_Short_Circuit): Detect case of pragma Assert argument
7941 evaluating to False, and issue warning message.
7943 * usage.adb: Add lines for -gnatw.a and -gnatw.A
7945 2007-12-13 Emmanuel Briot <briot@adacore.com>
7947 * g-calend.ads (No_Time): New constant, to represent an uninitialized
7950 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
7952 (Month_Name_To_Number): New subprogram
7954 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
7955 letter to upper-case.
7957 2007-12-13 Robert Dewar <dewar@adacore.com>
7958 Ed Schonberg <schonberg@adacore.com>
7960 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
7962 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
7963 context is a limited view, use non-limited view when available. If the
7964 non-limited view is an unconstrained array, this enforces consistency
7965 requirements in 3.10.2 (27).
7966 (Layout_Type): For an access type whose designated type is a limited
7967 view, examine its declaration to determine if it is an unconstrained
7968 array, and size the access type accordingly.
7969 (Layout_Type): Do not force 32-bits for convention c subprogram
7970 pointers in -gnatdm mode, only if real vms target.
7972 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
7973 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
7974 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
7975 violations of the No_Implicit_Dynamic_Code restriction.
7976 (Resolve_Attribute, case 'Access): If designated type of context is a
7977 limited view, use non-limited view when available. If the non-limited
7978 view is an unconstrained array, this enforces consistency requirements
7980 (Layout_Type): For an access type whose designated type is a limited
7981 view, examine its declaration to determine if it is an unconstrained
7982 array, and size the access type accordingly.
7984 2007-12-13 Vincent Celier <celier@adacore.com>
7986 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
7987 object directory of main project does not exist.
7988 On VMS, correctly set then environment variable for the source
7991 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
7993 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
7994 set to True this procedure will create the value of type REG_EXPAND_SZ.
7995 It was only possible to create REG_SZ values before.
7997 2007-12-13 Robert Dewar <dewar@adacore.com>
7999 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
8000 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
8001 namet-sp.adb, namet-sp.ads: New files.
8003 * g-speche.adb: Use generic routine in g-spchge
8005 * s-wchcnv.ads, s-wchcnv.adb:
8006 Minor code cleanup (make formal type consistent with spec)
8008 * namet.adb: Update comments.
8010 * par-endh.adb (Evaluate_End_Entry): Use new
8011 Namet.Sp.Is_Bad_Spelling_Of function
8013 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
8015 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
8016 ancestor is an access type initialized with a box, set its type
8017 explicitly, for use in subsequent expansion.
8018 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
8021 2007-12-13 Robert Dewar <dewar@adacore.com>
8023 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
8026 2007-12-13 Robert Dewar <dewar@adacore.com>
8028 * inline.adb (Back_End_Cannot_Inline): Use new flag
8029 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
8031 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
8032 Has_Pragma_Inline_Always instead.
8033 of obsolete function Is_Always_Inlined
8034 (Build_Body_To_Inline): Same change
8035 (Cannot_Inline): Same change
8036 Do not give warning on exception raise in No_Return function
8038 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
8039 component has two inconsistent component clauses in the same record
8040 representation clause, favor the message that complains about
8041 duplication rather than inconsistency.
8043 (Record_Representation_Clause): Do not warn on missing component
8044 clauses for inherited components of a type extension.
8045 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
8046 an overloadable item if it is a pragma that can apply to multiple
8047 overloadable entities (e.g. Inline) because a pragma cannot be on
8048 more than one chain at a time.
8049 (Validate_Unchecked_Conversion): Add code to warn on unchecked
8050 conversion where one of the operands is Ada.Calendar.Time.
8051 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
8052 For now, ignore Component_Size clause on VM targets, as done for
8055 2007-12-13 Emmanuel Briot <briot@adacore.com>
8056 Vincent Celier <celier@adacore.com>
8058 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
8060 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
8062 (Hash): Move instantiation of System.HTable.Hash from spec to body
8063 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
8064 systems, since we do not need to recompute the Name_Id for the canonical
8066 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
8067 as a parameter. This parameter is in fact always "ada" in all calls, and
8068 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
8069 while loading a project with 40000 files
8071 * prj-attr.adb: Fix name of attribute Dependency_Driver
8072 Change the kind of indexing for attribute Root
8074 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
8075 variables already declared, in case constructions.
8077 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
8078 Current_Object_Path_File to No_Path.
8080 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
8081 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
8083 * prj-makr.adb: new parameter Current_Dir
8085 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
8086 Ada sources when language is not Ada.
8087 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
8088 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
8089 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
8090 (Locate_Directory): Always resolve links when computing Canonical_Path
8091 (Look_For_Sources): Make sure that Name_Buffer contains the file name
8092 in Source_Files before checking for the presence of a directory
8094 Optimize calls to Name_Find when on case sensitive systems.
8095 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
8097 (Prj.Nmsc.Check): new parameter Current_Dir
8098 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
8099 cannot be empty and the spec suffix cannot be the same as the body or
8101 (Get_Unit): When a file name can be of several unit kinds (spec, body or
8102 subunit), always consider the longest suffix.
8103 (Check_Configuration): Do not issue an error if there is no compiler
8104 for a language. Just issue a warning and ignore the sources for the
8106 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
8108 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
8109 (Unit_Exceptions): New hash table
8110 (Check_Naming_Schemes): Check if a file that could be a unit because of
8111 the naming scheme is not in fact a source because there is an exception
8113 (Look_For_Sources): Put the unit exceptions in hash table
8115 (Get_Unit_Exceptions): Give initial value No_Source to local variable
8116 Other_Part to avoid exception when code is compiled with validity
8118 (Get_Sources_From_File): Check that there is no directory information
8120 (Look_For_Sources): Check that there is no directory information in the
8121 list of file names in Source_Files.
8122 (Look_For_Sources): In multi-language mode, do not allow exception file
8123 names that are excluded.
8124 (Excluded_Sources_Htable): New hash table
8125 (Search_Directories.Check_File): New procedure to simplify
8127 (Search_Directories): Do not consider excluded sources
8128 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
8130 (Get_Exceptions): Set component Lang_Kind of Source_Data
8131 (Get_Unit_Exceptions): Ditto
8132 (Search_Directories): Ditto
8134 * prj-pars.adb: new parameter Current_Dir
8136 * prj-part.ads, prj-part.adb:
8137 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
8138 (Opt.Follow_Links_For_Dirs): New flag
8139 (Project_Path_Name_Of): Cache information returned by this routine as
8140 Locate_Regular_File is a costly routine. The code to output a log
8141 information and the effective call to Locate_Regular_File is now
8142 factorized into a routine (code clean-up).
8143 (Parse, Parse_Single_Project): new parameter Current_Dir
8144 When main project file cannot be found, indicate in the error
8145 message the project path that was used to do the search.
8147 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
8148 (Prj.Proc.Process*): new parameter Current_Dir
8150 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
8152 2007-12-13 Bob Duff <duff@adacore.com>
8154 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
8155 procedure to be called from the back end to check the
8156 No_Implicit_Dynamic_Code restriction.
8158 2007-12-13 Arnaud Charlet <charlet@adacore.com>
8160 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
8161 Fixes another case where RTE_Available_Call was ignored instead of being
8165 * rtsfind.ads: Add new entries.
8167 2007-12-13 Robert Dewar <dewar@adacore.com>
8169 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
8170 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
8172 * scn.adb: Implement BOM recognition
8174 2007-12-13 Thomas Quinot <quinot@adacore.com>
8175 Ed Schonberg <schonberg@adacore.com>
8177 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
8178 subprogram body that acts as its own spec may not have a non-private
8179 WITH clause on a private sibling.
8180 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
8181 child unit is a renaming, create an implicit with_clause on that
8182 parent, and not on the unit it renames, to prevent visibility errors
8183 in the current unit.
8185 2007-12-13 Ed Schonberg <schonberg@adacore.com>
8187 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
8188 renaming declaration, use the Slocs of the formal parameters from the
8189 declaration of the formal subprogram when creating the formal parameter
8190 entities in the renaming declaration.
8191 (Analyze_Formal_Type_Declaration): Change the placement of the error
8192 message concerning illegal known discriminants. It is now posted on the
8193 type rather than on the first discriminant. This change ensures early
8195 (Freeze_Subprogram_Body): If the generic subprogram is nested within
8196 the package body that contains the instance, do not generate an
8197 out-of-place freeze node for the enclosing package.
8198 (Collect_Previous_Instantiations): Ignore internal instantiations
8199 generated for formal packages.
8200 (Validate_Derived_Type_Instance): Add a check that when a formal
8201 derived type is Known_To_Have_Preelab_Init then the actual type must
8202 have preelaborable initialization, and issue an error when this
8203 condition is violated.
8205 2007-12-13 Robert Dewar <dewar@adacore.com>
8207 * s-imenne.adb, s-imenne.ads: New files.
8209 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
8210 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
8211 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
8212 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
8213 s-imgwch.ads: New calling sequence for Image routines to avoid sec
8216 2007-12-13 Javier Miranda <miranda@adacore.com>
8217 Ed Schonberg <schonberg@adacore.com>
8219 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
8220 generation of spurious error if parent is an interface type; caused
8221 because predefined primitive bodies will be generated later by
8223 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
8225 (Derive_Subprograms): Handle derivations of predefined primitives
8226 after all the user-defined primitives to ensure that they are
8227 found in proper order in instantiations.
8228 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
8229 of Related_Interface to Related_Type.
8230 (Record_Type_Declaration): Minor reordering of calls to decorate the
8231 Tag component because the entity must have set its Ekind attribute
8232 before setting its Is_Tag attribute.
8233 (Analyze_Subtype_Declaration): In the case of subtypes with
8234 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
8236 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8237 Ed Schonberg <schonberg@adacore.com>
8239 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
8240 statement to the list of contexts where a selected component with a
8241 concurrent tagged type prefix should yield a primitive operation.
8242 (Find_Primitive_Operation): Handle case of class-wide types.
8243 (Analyze_Overloaded_Selected_Component): If type of prefix is
8244 class-wide, use visible components of base type.
8245 (Resolve_Selected_Component): Ditto.
8246 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
8247 formal of a generic subprogram. find candidate interpretations by
8248 scanning the list of generic formal declarations.:
8249 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
8250 type from a limited_with_clause, and the full view is available, use it
8251 for subsequent semantic checks.
8252 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
8253 (Find_Primitive_Operation): New function.
8254 (Analyze_Overloaded_Selected_Component): insert explicit dereference
8255 only once if several interpretations of the prefix yield an access type.
8256 (Try_Object_Operation): Code and comment cleanup.
8257 (Analyze_Selected_Component): Reorder local variables. Minot comment and
8258 code reformatting. When the type of the prefix is tagged concurrent, a
8259 correct interpretation might be available in the primitive and
8260 class-wide operations of the type.
8262 2007-12-13 Robert Dewar <dewar@adacore.com>
8263 Ed Schonberg <schonberg@adacore.com>
8265 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
8266 renaming entry as subprogram using rename-as-body if subprogram spec
8268 (Use_One_Type): The clause is legal on an access type whose designated
8269 type has a limited view.
8270 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
8271 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
8272 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
8273 operation denoted by a selected component.
8274 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
8275 it can be an expression, possibly overloaded, that returns a task or
8278 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8279 Gary Dismukes <dismukes@adacore.com>
8281 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
8282 requeue statement is dispatching. Do not emit an error when the name is
8283 not an entry and the context is a dispatching select. Add code to
8284 perform subtype conformance between the formals of the current entry
8285 and those of the target interface primitive.
8286 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
8287 Timed_Entry_Call): Analyze the triggering statement as the first step of
8288 the processing. If this is a dispatching select, postpone the analysis
8289 of all select statements until the Expander transforms the select. This
8290 approach avoids generating duplicate identifiers after the Expander has
8291 replicated some of the select statements. In case the Expander is
8292 disabled, perform regular analysis.
8293 (Check_Triggering_Statement): New routine.
8294 (Analyze_Requeue): Exclude any interpretations that are not entries when
8295 checking overloaded names in a requeue. Also test type conformance for
8296 matching interpretations rather than requiring subtype conformance at
8297 that point to conform with the RM's resolution rule for requeues.
8299 2007-12-13 Ed Schonberg <schonberg@adacore.com>
8301 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
8302 inherited operation is a defaulted tag-indeterminate call, and there is
8303 a statically tagged actual, use the static tag as a controlling actual
8304 for the defaulted actual.
8306 2007-12-13 Geert Bosch <bosch@adacore.com>
8308 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
8309 context, so do not call Check_Non_Static_Context.
8311 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
8313 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
8314 whether formal E is an entity which may have parameters.
8316 2007-12-13 Bob Duff <duff@adacore.com>
8317 Javier Miranda <miranda@adacore.com>
8318 Robert Dewar <dewar@adacore.com>
8320 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
8321 (Set_Convention): New procedure to set the Convention flag, and in
8322 addition make sure the Favor_Top_Level flag is kept in sync (all
8323 foreign-language conventions require Favor_Top_Level = True).
8324 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
8326 (Collect_Interfaces_Info): Minor update to handle the two secondary
8327 dispatch tables. Update occurrence of Related_Interface to Related_Type.
8328 (Generate_Parent_Ref): Add parameter to specify entity to check
8329 (Is_Preelaborable_Expression): Allow the name of a discriminant to
8330 initialize a component of a type with preelaborable initialization.
8331 This includes the case of a discriminal used in such a context.
8332 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
8333 latest Ada 2005 rules about renaming and 'Access of
8334 discriminant-dependent components.
8335 (Check_Nested_Access): Add handling when there are no enclosing
8336 subprograms (e.g. case of a package body).
8337 (Find_Parameter_Type): Factor routine from several other compiler files.
8338 Remove routine from Find_Overridden_Synchronized_Primitive.
8340 2007-12-13 Thomas Quinot <quinot@adacore.com>
8342 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
8343 an invalid access to an uninitialized slot in the
8344 Source_File_Index_Table.
8346 2007-12-13 Thomas Quinot <quinot@adacore.com>
8348 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
8350 2007-12-13 Bob Duff <duff@adacore.com>
8352 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
8353 access-to-subprogram types in this package.
8355 2007-12-13 Olivier Hainque <hainque@adacore.com>
8357 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
8358 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
8359 Stack_Overlay_Address and document that we are using an internal
8361 (Byte_Size, Unsigned_32_Size): Remove, now useless.
8362 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
8363 consistently throughout the various implementation pieces.
8365 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
8366 overlay we are using to fill the stack area with patterns.
8367 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
8368 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
8369 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
8371 2007-12-13 Robert Dewar <dewar@adacore.com>
8373 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
8375 2007-12-13 Arnaud Charlet <charlet@adacore.com>
8378 (Create_Task): Take into account tasks created by foreign threads.
8379 Code clean up: use constants instead of hard coded values.
8381 2007-12-13 Robert Dewar <dewar@adacore.com>
8383 * styleg.adb (Check_Comment): More liberal rules for comment placement
8385 2007-12-13 Olivier Hainque <hainque@adacore.com>
8387 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
8388 of Procedure Value instead of Frame Pointer as the invocation
8389 identifier associated with the instruction pointer in each traceback
8392 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
8393 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
8394 Pointer as the invocation identifier passed to tbk$symbolize.
8396 * s-traent-vms.ads, s-traent-vms.adb
8397 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
8398 Procedure Value instead of Frame Pointer as the invocation identifier
8399 passed to tbk$symbolize.
8401 2007-12-13 Robert Dewar <dewar@adacore.com>
8403 * tbuild.ads, tbuild.adb:
8404 Fix location of flag for unrecognized pragma message
8406 2007-12-13 Robert Dewar <dewar@adacore.com>
8408 * treepr.ads, treepr.adb: (pl): implement use of positive value
8411 2007-12-13 Robert Dewar <dewar@adacore.com>
8413 * xeinfo.adb: Remove warnings
8414 * xnmake.adb: Remove warnings
8415 * xsinfo.adb: Remove warnings
8416 * xtreeprs.adb: Remove warnings
8417 * xsnames.adb: Remove warnings
8419 * a-ngcoar.adb: Fix typo.
8420 * s-interr.adb: Minor reformatting
8421 * env.c: Minor reformatting.
8422 * g-bytswa.adb: Minor reformatting.
8423 * g-rannum.ads: Minor documentation improvements
8424 * s-tasinf-mingw.adb: Minor header fix
8425 * a-clrefi.adb: Minor reformatting
8426 * g-sttsne.ads: Minor documentation improvement
8427 * g-sttsne-locking.ads: Minor documentation improvement
8428 * g-soliop-solaris.ads: Minor documentation improvement
8429 * g-soliop-mingw.ads: Minor documentation improvement
8430 * g-soliop.ads: Minor documentation improvement
8431 * exp_aggr.ads: Minor reformatting
8432 * debug.adb: Add documentation for the gprbuild debug flags
8433 * exp_ch2.adb: Use Nkind_In to simplify code throughout
8434 * exp_pakd.adb: Minor reformatting
8436 * g-altive.ads, g-alleve.adb: Remove assertions.
8437 Add comment about minor differences between targets regarding
8438 floating-point operations.
8440 * g-thread.adb: Remove pragma unreferenced.
8441 * lib.ads: Minor reformatting
8442 * par-ch9.adb: Minor reformatting of error messages
8443 * sem_case.adb: Minor reformatting
8444 * s-fileio.adb: Minor reformattinng
8445 * s-vmexta.ads: Minor typo
8447 Take into account 'Success' value as per new GNAT warning.
8449 2007-12-13 Vincent Celier <celier@adacore.com>
8451 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
8454 2007-12-13 Robert Dewar <dewar@adacore.com>
8455 Bob Duff <duff@adacore.com>
8457 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
8458 Document that suffixes may be terminations of each others
8459 Add doc for -gnatw.a and -gnatw.A
8460 Document gnatbind -Wx switch
8461 Document BOM recognition
8462 Document pragma Implemented_By_Entry.
8465 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
8466 Add doc for pragma Unreferenced suppressing no entities referenced msg
8467 Add documentation of GNAT.Directory_Operations.Iteration
8468 Add documentation of GNAT.Random_Numbers
8469 Add documentation for pragma Shared.
8470 Correct documentation for Bit_Order
8471 Add documentation for the Pool_Address attribute.
8472 Fix and improve documentation of pragma machine_attribute.
8473 New pragma Fast_Math
8474 Document BOM recognition
8476 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
8477 Add /Wide_Character_Encoding for binder
8478 Add qualifier for the new gnatpp option --no-separate-loop-then
8480 2007-12-13 Matthew Heaney <heaney@adacore.com>
8482 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
8483 which generic formal operations are called for each operation.
8485 2007-12-13 Olivier Hainque <hainque@adacore.com>
8487 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
8488 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
8490 2007-12-13 Emmanuel Briot <briot@adacore.com>
8492 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
8493 Reference_Dir unless we actually need it.
8495 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
8496 Tristan Gingold <gingold@adacore.com>
8498 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
8501 a-calend-vms.adb: Remove pragma warning off and add pragma
8504 2007-12-13 Robert Dewar <dewar@adacore.com>
8506 * impunit.adb: Add entries for missing units
8508 * Makefile.rtl: Add new run-time units.
8510 * Make-lang.in: Update dependencies.
8512 2007-12-13 Bob Duff <duff@adacore.com>
8514 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
8515 types, set Can_Use_Internal_Rep appropriately, based on
8516 Always_Compatible_Rep_On_Target.
8518 2007-12-13 Gary Dismukes <dismukes@adacore.com>
8519 Arnaud Charlet <charlet@adacore.com>
8521 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
8522 it to the front end and setting the aamp_target environment variable
8523 to the switch's argument to ensure that gnaampbind and gnaamplink will
8524 take the specified library into account.
8525 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
8526 target, since the CIL compiler supports an "object" file (.il files).
8528 2007-12-13 Vincent Celier <celier@adacore.com>
8530 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
8531 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
8533 2007-12-13 Geert Bosch <bosch@adacore.com>
8535 * s-parame-vxworks.adb:
8536 Update comments to reflect usage of this package by Nucleus.
8538 2007-12-13 Arnaud Charlet <charlet@adacore.com>
8540 * i-vxwork.ads: Kill new warning on Convention C, since changing the
8541 spec would break code.
8543 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
8545 * system-vxworks-alpha.ads: Removed.
8547 2007-12-10 Eric Botcazou <ebotcazou@adacore.com>
8549 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
8551 2007-12-09 Samuel Tardieu <sam@rfc1149.net>
8554 * sem_ch3.adb (Designates_T): New function.
8555 (Mentions_T): Factor reusable part of the logic into Designates_T.
8556 Consider non-access parameters and access and non-access result.
8557 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
8558 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
8560 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
8562 2007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
8565 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
8566 the new implementation of target-specific calls.
8568 2007-12-07 Olivier Hainque <hainque@adacore.com>
8570 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
8571 the designated full view, only follow a second level Full_View link
8572 for Non_Limited_Views of from_limited_with references.
8574 2007-12-07 Samuel Tardieu <sam@rfc1149.net>
8577 * sem_ch6.adb (Process_Formals): Prevent an access type formal
8578 to be initialized with an access to constant object.
8580 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
8581 when an access to constant is used to initialize an access
8585 * a-direct.adb (Compose): Containing_Directory can be an empty string.
8587 2007-12-07 Olivier Hainque <hainque@adacore.com>
8590 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
8591 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
8592 this is from an alignment clause on the GNAT entity.
8593 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
8594 to distinguish the case where we set it from the type's alignment.
8595 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
8596 whether this alignment was set from an explicit alignment clause.
8598 2007-12-06 Eric Botcazou <ebotcazou@adacore.com>
8600 * decl.c (make_packable_type): Revert last change.
8601 (gnat_to_gnu_field): Avoid setting size and position multiple times.
8602 * utils.c (finish_record_type): Retrieve the real name of the type.
8604 2007-12-05 Eric Botcazou <ebotcazou@adacore.com>
8606 * trans.c (lvalue_required_p): Take base node directly instead
8607 of its parent. Rename second parameter to 'gnu_type'.
8608 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
8609 <N_Slice>: Likewise.
8610 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
8611 Adjust calls to lvalue_required_p.
8613 2007-12-05 Samuel Tardieu <sam@rfc1149.net>
8616 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
8617 parameters of an entry call.
8619 2007-12-03 Robert Dewar <dewar@adacore.com>
8620 Samuel Tardieu <sam@rfc1149.net>
8623 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
8624 of variables declared in a library-level package.
8626 2007-12-02 Samuel Tardieu <sam@rfc1149.net>
8628 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
8629 of Empty_String'Unchecked_Access.
8631 * Makefile.in: Add support for sh4-linux.
8633 * system-linux-sh4.ads: New file.
8635 2007-12-01 Kostik Belousov <kostikbel@ukr.net>
8638 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
8639 and its argument must not be free()ed.
8641 2007-11-29 Eric Botcazou <ebotcazou@adacore.com>
8643 * decl.c (make_packable_type): Retrieve the real name of the type.
8644 (maybe_pad_type): Simplify similar code.
8646 2007-11-28 Samuel Tardieu <sam@rfc1149.net>
8649 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
8650 than an identifier is used after "case" in a variant_part.
8653 * par-ch4.adb (Is_Parameterless_Attribute): New map.
8654 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
8655 attribute name or not depending on the new map.
8657 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
8658 returning a string or a type will not be called with improper
8661 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
8663 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
8666 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
8667 Signal an error when attribute argument is a fixed-point value of
8671 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
8672 a derived ordinary fixed point type.
8674 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
8675 RM_Size when a Small clause is found.
8677 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
8680 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
8681 Pass 'false' for the new allocate_struct_function parameter.
8682 * utils.c (build_function_stub): Likewise.
8684 2007-11-25 Richard Guenther <rguenther@suse.de>
8686 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
8687 (gnat_poplevel): Likewise.
8689 2007-11-25 Eric Botcazou <ebotcazou@adacore.com>
8691 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
8692 strict alignment, no alignment clause and a known static size, cap
8693 the type alignment to the greatest power of 2 factor of the size.
8694 (gnat_to_gnu_field): If the field has a component clause, is aliased
8695 or of a type with strict alignment, require that its size be equal to
8697 (validate_size): Use the type size as the minimum size for a type with
8700 2007-11-23 Samuel Tardieu <sam@rfc1149.net>
8702 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
8703 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
8704 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
8705 Use 'Access instead of 'Unchecked_Access in second and third
8706 arguments of pthread_sigmask.
8708 2007-11-23 Eric Botcazou <ebotcazou@adacore.com>
8710 * decl.c (ceil_alignment): New function.
8711 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
8712 (make_packable_type): Likewise.
8714 2007-11-22 Olivier Hainque <hainque@adacore.com>
8716 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
8717 to fit in 80 columns.
8719 2007-11-21 Aurelien Jarno <aurelien@aurel32.net>
8721 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
8722 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
8724 2007-11-19 Eric Botcazou <ebotcazou@adacore.com>
8727 * misc.c (gnat_adjust_rli): Delete.
8728 (gnat_init): Do not initialize the translation code here.
8729 Do not call set_lang_adjust_rli.
8730 * trans.c (init_code_table): Make static.
8731 (gnat_init_stmt_group): Delete.
8732 (gigi): Initialize the translation code entirely here.
8733 Emit debug info for the common types here instead of...
8734 * utils.c (gnat_init_decl_processing): ...here.
8735 * gigi.h (init_code_table): Delete.
8736 (gnat_init_stmt_group): Likewise.
8738 2007-11-16 Olivier Hainque <hainque@adacore.com>
8740 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
8741 retrieving an allocator return value from a super-aligned address from
8743 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
8744 expect a super-aligned address for a fat or thin pointer.
8746 2007-11-14 Eric Botcazou <ebotcazou@adacore.com>
8748 * trans.c (call_to_gnu): Always set the source location on the call
8749 expression. If the function returns-by-target, also set it on the
8752 2007-11-14 Samuel Tardieu <sam@rfc1149.net>
8754 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
8755 sections of non-supported Interix target.
8757 * s-osinte-interix.ads: Removed.
8759 * i-cstrin.ads (chars_ptr): Make it a C convention type.
8761 2007-11-13 Samuel Tardieu <sam@rfc1149.net>
8763 * a-tasatt.adb: Add a comment at the beginning of the package
8764 explaining why in general 'Unchecked_Access must be used instead
8767 * sem_prag.adb (Process_Convention): Move the test for the
8768 entity on which the Convention pragma applies down to also
8769 forbid pragma Convention on enumeration literals reached
8772 2007-11-10 Samuel Tardieu <sam@rfc1149.net>
8774 * a-tasatt.adb: Revert previous change for this file as it will
8775 generate an error when this package is instantiated from a
8778 2007-11-07 Samuel Tardieu <sam@rfc1149.net>
8780 * a-tasatt.adb: Type Wrapper should be declared in comment instead
8781 of already declared type Node_Access.
8782 Use 'Access instead of 'Unchecked_Access when applicable. Local
8783 lifetime is the one of the package.
8784 (Set_Value): W is allocated on the heap.
8786 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
8788 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
8790 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
8793 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
8795 (elaboration code): Timer_Queue lifetime is the one of the
8798 * tracebak.c (i386 alternative): Remove useless comparaison
8799 which is always false; LOWEST_ADDRESS is 0 and is never greater
8800 than an unsigned integer.
8802 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
8803 embedded check for "Ada_Version >= Ada_05".
8805 2007-11-07 Olivier Hainque <hainque@adacore.com>
8807 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
8808 craft and expand comment.
8810 2007-11-01 Eric Botcazou <ebotcazou@adacore.com>
8812 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
8814 2007-10-23 Eric Botcazou <ebotcazou@adacore.com>
8816 * misc.c (gnat_handle_option): Replace call to abort with
8817 call to gcc_unreachable.
8818 (gnat_init): Likewise.
8819 (gnat_expand_expr): Likewise.
8820 (fp_prec_to_size): Likewise.
8821 (fp_size_to_prec): Likewise.
8823 2007-10-23 Richard Guenther <rguenther@suse.de>
8826 * tracebak.c: #undef abort after including system.h.
8828 2007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
8830 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
8831 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
8833 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
8835 2007-10-15 Eric Botcazou <ebotcazou@adacore.com>
8837 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
8838 Set the protection status of the guard page based on the value of On.
8840 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
8842 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
8843 (Exit_Task): Pass False to Hide_Yellow_Zone.
8845 2007-10-15 Robert Dewar <dewar@adacore.com>
8847 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
8848 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
8849 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
8850 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
8851 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
8852 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
8853 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
8854 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
8855 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
8856 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
8857 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
8858 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
8859 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
8860 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
8861 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
8862 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
8864 Add Unreferenced and Warnings (Off) pragmas for cases of
8865 variables modified calls where they are IN OUT or OUT parameters and
8866 the resulting values are not subsequently referenced. In a few cases,
8867 we also remove redundant code found by the new warnings.
8869 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
8870 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
8871 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
8872 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
8873 warning controlled by -gnatw.o that warns on cases of out parameter
8874 values being ignored.
8876 2007-10-15 Geert Bosch <bosch@adacore.com>
8878 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
8880 * expect.c: Initial port to arm-mentor-nucleus.
8881 Use kill for __gnat_kill() on VMS.
8883 2007-10-15 Emmanuel Briot <briot@adacore.com>
8885 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
8887 (Xref_Record): Change type for Line, since in the case of a reference to
8888 a predefined entity (as happens for array index types), the line is set
8890 Add support for parsing multiple array index types info, or
8891 multiple inherited interfaces info. This information cannot be stored
8892 in Xref_Entity_Record, which only supports a single instance of Tref_*,
8893 and is therefore stored in the list of references instead. It has a
8894 special treatement later on in tools that use this information.
8896 2007-10-15 Tristan Gingold <gingold@adacore.com>
8898 * debug.adb: Document use of -gnatd.a and -gnatd.I
8900 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
8902 2007-10-15 Javier Miranda <miranda@adacore.com>
8904 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
8905 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
8906 care of access to class-wide interface types plus removal of bizarre
8907 conversion of tagged object to access type (reported by Gary
8908 Dismukes). After this patch there is no need to perform any
8909 additional management on these nodes in Expand_Interface_Actuals.
8911 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
8912 that handles use of 'Access and 'Unchecked_Access applied to
8913 actuals covering interface types. Such code is now
8914 centralized in Expand_N_Attribute_Reference.
8916 2007-10-15 Ed Schonberg <schonberg@adacore.com>
8918 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
8919 of tagged types whose ultimate ancestor is a CPP type.
8920 (Freeze_Array_Type): For a packed array type, generate an initialization
8921 procedure if the type is public, to handle properly a client that
8922 specifies Normalize_Scalars.
8924 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
8926 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
8927 inside a generic body, retrieve the full view of the entry family
8928 discrete subtype if available.
8930 2007-10-15 Thomas Quinot <quinot@adacore.com>
8932 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
8933 attempt to generate stubs for hidden primitive operations.
8935 2007-10-15 Vincent Celier <celier@adacore.com>
8937 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
8938 returning None, used when there is no platform specific body for
8941 2007-10-15 Bob Duff <duff@adacore.com>
8943 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
8944 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
8945 the generic Heap_Sort_G, in order to avoid trampolines.
8947 2007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
8948 Jose Ruiz <ruiz@adacore.com>
8950 * vx_stack_info.c: New file.
8952 * i-forbla-unimplemented.ads: New file.
8954 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
8955 for unsupported configurations; use it on VMS targets instead of the
8957 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
8958 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
8959 used by VxWorks targets to have access to task-specific data and be
8960 able to extract the stack boundaries for stack checking.
8961 Use system-vms-ia64.ads on ivms.
8963 * Make-lang.in: Update dependencies.
8965 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
8968 2007-10-15 Vincent Celier <celier@adacore.com>
8970 * snames.adb, snames.ads: Add new standard name runtime_library_dir
8972 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
8974 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
8976 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
8977 the source is unknown.
8979 * prj-ext.adb: Spelling error fix
8981 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
8982 95 reserved word in its name.
8983 (Process_Project_Level_Array_Attributes): Process new attribute
8984 Runtime_Library_Dir.
8986 * prj-part.adb (Parse_Single_Project): Do not check the name of the
8987 config project against the user project names.
8989 * prj-proc.adb (Expression): In multi-language mode, indexes that do
8990 not include a dot are always case insensitive.
8991 (Process_Declarative_Items): Ditto
8992 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
8995 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
8996 True, compare both indexes in lower case.
8998 2007-10-15 Robert Dewar <dewar@adacore.com>
9000 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
9002 2007-10-15 Gary Dismukes <dismukes@adacore.com>
9004 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
9005 association for an access component, add an association with null as
9006 the expression. Remove testing for array subtypes and the setting in
9007 that case of Ctyp to the array component type, which prevented proper
9008 inclusion of an association for null-initialized arrays. Collapse
9009 condition that tests for array subtypes into just a test of
9010 Is_Partially_Initialized_Type (which already covers arrays anyway).
9012 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
9014 * sem_ch12.adb: Minor code reformatting.
9015 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
9016 find the parent package which may have been hidden by local
9019 2007-10-15 Gary Dismukes <dismukes@adacore.com>
9021 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
9022 flag of derived concurrent types, taking into account the flag setting
9023 on the parent subtype and any new set of discriminants.
9025 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
9027 * sem_ch4.adb: Minor code and comment reformatting.
9028 (Analyze_Allocator): When the designated type of an unconstrained
9029 allocator is a record with unknown discriminants or an array with
9030 unknown range bounds, emit a detailed error message depending on the
9031 compilation mode and whether the designated type is limited.
9033 2007-10-15 Tristan Gingold <gingold@adacore.com>
9035 * system-vms-ia64.ads: New file.
9037 * system-vms_64.ads: Minor comment fix.
9039 2007-10-15 Ed Schonberg <schonberg@adacore.com>
9041 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
9042 body generated for a function with a controlling result that is a null
9043 extension, discard the generated body in favor of the current explicit
9046 2007-10-15 Ed Schonberg <schonberg@adacore.com>
9048 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
9049 examining its original form, to handle properly operator calls that
9050 have been rewritten.
9052 2007-10-15 Olivier Hainque <hainque@adacore.com>
9054 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
9055 instead of a procedure value in each traceback entry.
9057 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
9058 instead of procedure value to TBK$SYMBOLIZE.
9060 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
9062 (TB_Entry_For): Account for the PV/FP renaming.
9064 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
9066 (Null_TB_Entry): Account for change of component name.
9067 (PV_For): Rename as FP_For.
9069 2007-10-15 Tristan Gingold <gingold@adacore.com>
9071 * trans.c (gnat_to_gnu): Remove the padding structure more often.
9072 This optimize assignment to over-aligned record.
9074 2007-10-15 Emmanuel Briot <briot@adacore.com>
9076 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
9079 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
9080 type, for dispatching calls.
9082 2007-10-15 Vincent Celier <celier@adacore.com>
9083 Robert Dewar <dewar@adacore.com>
9085 * gnat_ugn.texi: Add documentation for switches --version and --help
9086 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
9087 gnatxref, gnatfind, gnatls, and gnatclean.
9089 Mention attribute Excluded_Source_Dirs
9090 Replace obsolescent attribute Locally_Removed_Files with attribute
9091 Excluded_Source_Files.
9092 Improve documentation of -u (gnatbind)
9093 Document how to do reliable stack checking for the environmental task
9096 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
9097 Document attribute Excluded_Source_Files and indicate that attribute
9098 Locally_Removed_Files is obsolescent.
9100 2007-10-15 Thomas Quinot <quinot@adacore.com>
9102 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
9105 Update documentation to note that OpenVMS 8.3 or later must be used
9106 to generate g-soccon-vms.ads.
9108 * atree.adb: Add ??? comment
9110 * exp_util.adb: Minor reformatting.
9111 Add ??? comment in Kill_Dead_Code.
9113 2007-10-15 Robert Dewar <dewar@adacore.com>
9115 * errout.ads: Comment clarification
9117 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
9118 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
9120 * lib.ads: Comment update
9122 * init.c: Minor reformatting.
9124 * sem_attr.adb: Minor formatting
9126 * osint-b.ads: Minor reformatting
9128 * sem_ch9.adb: Implement -gnatd.I switch
9130 * g-comlin.adb: (Start): Fix handling of empty command line.
9132 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
9133 even when -rules follows the -cargs section.
9135 2007-10-08 Ollie Wild <aaw@google.com>
9137 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
9139 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
9141 (gnat_eh_runtime_type): Removed.
9142 (gnat_return_tree): New function.
9144 2007-10-08 Ben Elliston <bje@au.ibm.com>
9148 2007-08-31 Ben Elliston <bje@au.ibm.com>
9150 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
9151 when compiling for powerpc64-*-linux.
9152 * system-linux-ppc64.ads: New file.
9154 2007-09-27 Eric Botcazou <ebotcazou@adacore.com>
9156 Mapped location support
9157 * back_end.adb (Call_Back_End): Pass information about source
9158 files instead of units to gigi.
9159 * gigi.h (struct File_Info_Type): New.
9160 (gigi): Rename and change type of number_units parameter, change
9161 type of file_info_ptr parameter.
9162 * trans.c (number_files): New global variable.
9163 (gigi): Rename and change type of number_units parameter, change
9164 type of file_info_ptr parameter.
9165 If mapped location support is enabled, create the isomorphic mapping
9166 between source files and line maps.
9167 (Sloc_to_locus): If mapped location support is enabled, translate
9168 source location into mapped location.
9169 (annotate_with_node): Rename into set_expr_location_from_node.
9170 Call set_expr_location instead of annotate_with_locus.
9171 (Pragma_to_gnu): Adjust for above change.
9172 (Loop_Statement_to_gnu): Likewise.
9173 (call_to_gnu): Likewise.
9174 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
9175 (gnat_to_gnu): Likewise.
9176 (add_stmt_with_node): Likewise.
9177 (add_cleanup): Likewise.
9178 * utils.c (gnat_init_decl_processing): Do not set input_line.
9180 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
9182 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
9183 (Applicable_Use): Emit a warning when a package tries to use itself.
9184 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
9185 is already in use or the package where it is declared is in use or is
9186 declared in the current package.
9187 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
9189 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
9190 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
9191 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
9193 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
9195 * a-calend-vms.adb, a-calend.adb:
9196 Add a section on leap seconds control along with two entities used to
9197 enable and disable leap seconds support. The array Leap_Second_Times is
9198 now constant and contains hard time values pre-generated. Remove
9199 all elaboration code used to populate the table of leap seconds.
9202 Add entity Leap_Seconds_Support to the list of global run-time variables
9203 along with a comment on its usage and values.
9204 (Gen_Adainit_Ada): Add code to generate the declaration and import of
9205 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
9206 or one (enabled) depending on the presence of binder switch "-y".
9207 (Gen_Adainit_C): Add code to generate the declaration of external int
9208 __gl_leap_seconds_support. Set is value to zero (disabled) or one
9209 (enabled) depending on the presence of binder switch "-y".
9211 * init.c: Add __gl_leap_seconds_support to the list of global values
9212 computed by the binder.
9214 2007-09-26 Jerome Guitton <guitton@adacore.com>
9216 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
9217 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
9218 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
9219 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
9221 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
9223 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
9224 function which can be called by the debugger to interrupt the tasks of
9225 an Ada application asynchronously, as needed on VxWorks.
9226 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
9228 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
9229 renamed from Stop_All_Tasks. Update comments.
9230 (Stop_All_tasks): New function declaration.
9232 2007-09-26 Olivier Hainque <hainque@adacore.com>
9234 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
9235 #include <utime.h> and #define GCC_RESOURCE_H before
9236 #include <sys/wait.h>.
9237 Add more protections in __gnat_translate_vms.
9239 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
9240 #include <sys/wait.h>.
9242 2007-09-26 Thomas Quinot <quinot@adacore.com>
9243 Sergey Rybin <rybin@adacore.com>
9245 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
9247 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
9250 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
9252 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
9255 * sem_dist.ads: Minor comment fix
9257 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
9259 2007-09-26 Javier Miranda <miranda@adacore.com>
9260 Eric Botcazou <ebotcazou@adacore.com>
9263 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
9264 indirection added to the HT_Link component of the TSD. This is required
9265 to statically allocate the TSD.
9268 Minor reordering of the declarations in the private part. Required to
9269 add a level of indirection to the contents of the TSD component HT_Link.
9270 This is required to statically allocate the TSD.
9272 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
9273 Is_Statically_Allocated set from constant objects.
9274 Do not make exported constants created by the compiler volatile.
9275 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
9278 * trans.c (Identifier_to_gnu): For constants, unshare initializers
9279 before returning them.
9281 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
9282 public part of the package.
9283 (Make_DT): Move HT_Link component out of the TSD record. For this
9284 purpose Make_DT now declares a separate object that stores the
9285 HT_Link value, and initializes the TSD component with the address
9286 of this new object. The addition of this level of indirection is
9287 required to statically allocate the TSD because the TSD cannot
9288 have variable components.
9289 (Expand_Interface_Conversion): Improve the expanded code.
9290 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
9292 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
9293 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
9294 if we are building static dispatch tables then we must not generate
9295 extra code to register the primitive because the dispatch table will
9296 be built at the end of the library package; otherwise we notify that
9297 we cannot build the static dispatch table.
9299 2007-09-26 Robert Dewar <dewar@adacore.com>
9301 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
9304 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
9305 (Analyze_Record_Representation_Clause): Suppress junk warning for
9306 missing component clause.
9307 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
9308 tests for controlled type overlay to composites with controlled
9310 (Analyze_Record_Representation_Clause): Add reference for component name
9312 2007-09-26 Javier Miranda <miranda@adacore.com>
9313 Gary Dismukes <dismukes@adacore.com>
9315 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
9316 for thunks associated with interface types.
9318 * einfo.ads: Improve documentatation of Is_Internal
9319 (Is_Thunk): New attribute applicable to subprograms. True for thunks
9320 associated with interface types.
9321 Extensive comment fixes regarding flags that appear in all entities. The
9322 documentation is now consistent for all such flags (there were a number
9323 of errors in the documentation in this regard).
9325 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
9327 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
9328 of these procedures are passed a function call that already has
9329 build-in-place actuals (testing new flag
9330 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
9331 the case where processing continues.
9332 (Expand_Call): If the call is generated from a thunk body then we
9333 propagate the extra actuals associated with the accessibility
9334 level of the access type actuals.
9336 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
9337 of each extra formal of a protected operation to reference the
9338 corresponding extra formal of the subprogram denoted by the
9339 operation's Protected_Body_Subprogram.
9341 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
9342 N_Function_Call nodes.
9344 2007-09-26 Robert Dewar <dewar@adacore.com>
9346 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
9348 * debug.adb: Add d.s flag.
9350 2007-09-26 Gary Dismukes <dismukes@adacore.com>
9352 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
9353 debug variable so that it won't be initialized when pragma
9354 Initialize_Scalars is in effect.
9356 2007-09-26 Gary Dismukes <dismukes@adacore.com>
9358 * freeze.adb (Freeze_Entity): Remove check for preelaborable
9359 initialization of a full view. This is moved to
9360 Analyze_Package_Specification.
9362 * sem_ch7.adb (Analyze_Package_Specification): Add check for
9363 preelaborable initialization of a full view in entity loop.
9364 (Uninstall_Declarations): If entity is a use-visible compilation unit,
9365 its child units are use-visible only if they are visible child units.
9367 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
9368 whether an expression can be used within a type declaration that
9369 requires preelaborable init.
9370 (Check_Components): Replace inline code that does partial checking for
9371 preelaborable default expressions with call to
9372 Is_Preelaborable_Expression.
9373 (Has_Preelaborable_Initialization): In the case of a generic actual
9374 subtype, (that is, Is_Generic_Actual is True), return the result of
9375 applying Has_Preelaborable_Initialization to the generic actual's base
9378 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
9380 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
9381 call to Jan_1_Day _Of_Week to optimize its performance.
9382 (Is_Leap): Move the routine to the scope of Week_In_Year.
9383 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
9384 weekday on which January 1 falls of Year - 1 and Year + 1. This function
9385 avoids calling Time_Of and Split, thus making it more efficent.
9386 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
9388 * g-calend.ads (Week_In_Year): Change comment to reflect new
9391 2007-09-26 Emmanuel Briot <briot@adacore.com>
9393 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
9394 Command_Line): New types
9395 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
9396 support for defining how switches can be grouped on a command line (as
9397 is the case for -gnatw... for GNAT), and how simple switches can be
9398 used as aliases for more complex switches (-gnatwa is same as
9400 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
9401 (Start, Current_*): New subprograms
9402 Added support for parsing an array of strings in addition to the real
9404 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
9405 be moved from the body to the private part of the spec.
9406 (*): All subprograms now have an extra parameter with default value to
9407 specify which parser should be used. For backward compatibility, it
9408 defaults to parsing the command line of the application. They were also
9409 modified to properly handle cases where each of the argument does not
9410 start at index 1 (which is always true for Ada.Command_Line, but not
9411 when processing any Argument_List).
9412 (Free): New subprogram
9413 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
9414 Argument): New subprograms
9415 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
9416 special characters like ':', '=',... are now handled in a single place,
9417 which makes the code more extensible eventually.
9418 (Getopt, Full_Switch): When the switch was returned as part of the
9419 special character '*', make sure it is prepended by the switch character
9420 ('-' in general), so that the application knows whether "foo" or "-foo"
9421 was specified on the command line.
9423 2007-09-26 Florian Villoing <villoing@adacore.com>
9425 * g-dirope.adb (Remove_Dir): In case we are removing directories
9426 recursively, make sure that if an exception is raised during the
9427 processing, the current working directory is reset to its initial
9428 value before propagating the exception.
9430 2007-09-26 Vincent Celier <celier@adacore.com>
9432 * gnatbind.adb: If there are several ALI files specified and there is
9433 a main program to bind, the first ALI is expected to contain the main
9434 subprogram and the names of the binder generated files will be derived
9435 from the first ALI file name.
9436 (Gnatbind): Fix insertion character in invocation of Error_Msg
9438 2007-09-26 Vincent Celier <celier@adacore.com>
9440 * gnatcmd.adb (Check_Files): Do not include sources that have been
9441 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
9443 2007-09-26 Ed Schonberg <schonberg@adacore.com>
9445 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
9446 information about each of its index types, following the type
9447 reference for its component type.
9449 2007-09-26 Vincent Celier <celier@adacore.com>
9451 * make.adb: (Kill): New procedure (__gnat_kill imported)
9452 (Running_Compile, Outstanding_Compiles): Global variables that
9453 were previously local to procedure Compile_Sources.
9454 (Sigint_Intercepted): Send signal SIGINT to all outstanding
9455 compilation processes.
9457 (Gnatmake): If project files are used, create the mapping of all the
9458 sources, so that the correct paths will be found.
9460 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
9462 2007-09-26 Vincent Celier <celier@adacore.com>
9464 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
9466 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
9467 Replace components Compiler_Min_Options and Binder_Min_Options with
9468 Compiler_Required_Switches and Binder_Required_Switches in record
9470 Remove components Default_Language and Config in Project_Tree_Data,
9473 * prj-attr.adb: New attributes Required_Switches (<language>) in
9474 packages Compiler and Binder.
9476 * prj-nmsc.adb: Major rewrite of the processing of configuration
9477 attributes for gprbuild. No impact on GNAT tools.
9479 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
9480 process configuration attributes: this is done in Prj.Nmsc.Check.
9481 (Recursive_Process): Make a full copy of packages inherited from project
9482 being extended, instead of a shallow copy.
9483 (Process_Project_Tree_Phase_1): New procedure
9484 (Process_Project_Tree_Phase_1): New procedure
9485 (Process): Implementation now uses the two new procedures
9487 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
9488 from the project config, not the tree config that no longer exists.
9490 2007-09-26 Vincent Celier <celier@adacore.com>
9492 * Make-lang.in: Update dependencies..
9494 2007-09-26 Vincent Celier <celier@adacore.com>
9496 * osint.adb, osint.ads: Minor reformatting
9498 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
9500 2007-09-26 Gary Dismukes <dismukes@adacore.com>
9502 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
9503 message to cite use of <> in aggregate component associations rather
9504 than wrongly indicating use of limited aggregates.
9506 2007-09-26 Robert Dewar <dewar@adacore.com>
9508 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
9511 2007-09-26 Ed Schonberg <schonberg@adacore.com>
9513 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
9514 ancestor of the derived type, the operations are inherited from the
9515 primary dispatch table of the parent.
9516 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
9517 when the context is an explicit type conversion.
9519 2007-09-26 Ed Schonberg <schonberg@adacore.com>
9521 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
9522 rule for qualified expressions properly, to detect improper conversions
9523 and resolve some cases of overloading.
9525 2007-09-26 Ed Schonberg <schonberg@adacore.com>
9527 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
9528 proper kind of reference to the primitive operation, for better source
9530 (Valid_Conversion): A tagged conversion is legal if both operands are
9533 2007-09-26 Robert Dewar <dewar@adacore.com>
9535 * sem_warn.adb (Check_References): Catch more cases of unreferenced
9538 2007-09-26 Vincent Celier <celier@adacore.com>
9540 * snames.adb, snames.ads: Change Include_Option to Include_Switches
9542 2007-09-26 Robert Dewar <dewar@adacore.com>
9544 * s-wchstw.adb: provide messages for run time unit exceptions
9546 * a-witeio.adb: Minor reformatting
9548 * exp_ch13.adb: Minor reformatting
9550 2007-09-26 Sergey Rybin <rybin@adacore.com>
9552 * vms_data.ads: Revise gnatmetric qualifiers.
9553 Add qualified for the new gnatbind option '-y'
9555 * gnat_ugn.texi: Revise the gnatmetric section.
9556 Add entry for new gnatbind option '-y'.
9558 * gnat_rm.texi: Minor spelling correction.
9559 Document restriction on overlaying controlled types
9561 2007-09-26 Vincent Celier <celier@adacore.com>
9563 * makegpr.adb (Link_Executables): Do not fail when the root project has
9564 no sources, but is an extending project.
9566 2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
9568 * trans.c: Fix misplaced #define.
9570 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
9572 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
9573 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
9575 2007-09-21 Olivier Hainque <hainque@adacore.com>
9577 * utils.c (type_for_nonaliased_component_p): Return false for
9578 all AGGREGATE_TYPEs.
9580 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
9582 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
9583 object covered by 13.3(19) volatile.
9585 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
9589 * utils.c (unchecked_convert): Use a subtype as the intermediate type
9590 in the special VIEW_CONVERT_EXPR case.
9592 2007-09-12 Robert Dewar <dewar@adacore.com>
9594 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
9596 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
9597 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
9598 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
9599 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
9600 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
9601 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
9602 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
9603 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
9604 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
9605 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
9606 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
9607 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
9608 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
9609 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
9610 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
9611 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
9612 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
9613 pragma Compiler_Unit and adds it to relevant library units.
9615 2007-09-12 Ed Schonberg <schonberg@adacore.com>
9617 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
9618 a box need not correspond to any component.
9620 2007-09-12 Robert Dewar <dewar@adacore.com>
9622 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
9623 the tasking version of the Ada run time when foreign threads are
9624 present and there are no explicit Ada tasks or tasking constructs.
9626 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
9628 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
9630 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
9631 the usage of switch -y.
9633 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
9634 when switch -y is present.
9636 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
9637 leap seconds in Ada.Calendar and its children.
9639 2007-09-12 Jose Ruiz <ruiz@adacore.com>
9641 * a-extiti.ads (Timer): The discriminant is a "not null access
9642 constant" in the Reference Manual.
9643 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
9645 2007-09-12 Robert Dewar <dewar@adacore.com>
9647 * a-swuwha.adb: Remove junk RM header
9649 2007-09-12 Vincent Celier <celier@adacore.com>
9651 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
9654 * g-bytswa.ads: Minor reformatting
9656 2007-09-12 Thomas Quinot <quinot@adacore.com>
9658 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
9659 Add new constant Thread_Blocking_IO, always True by default, set False
9660 on a per-runtime basis.
9661 (Need_Netdb_Buffer): New constant.
9663 2007-09-12 Arnaud Charlet <charlet@adacore.com>
9665 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
9666 Added renames for corresponding functions in System.Partition_Interface.
9668 2007-09-12 Doug Rupp <rupp@adacore.com>
9670 * Makefile.in: Remove VMS specific System.CRTL packages which are no
9673 * s-crtl-vms64.ads: Removed.
9675 2007-09-12 Olivier Hainque <hainque@adacore.com>
9677 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
9678 with discriminant constraints, generalize the code for BIT_FIELDs
9679 to PACKED fields of constant size and propagate DECL_PACKED.
9681 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
9683 * decl.c (array_type_has_nonaliased_component): New predicate.
9684 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
9685 set the TYPE_NONALIASED_COMPONENT flag on the type.
9686 <E_Array_Subtype>: Likewise.
9687 * gigi.h (type_for_nonaliased_component_p): Declare.
9688 * utils.c (type_for_nonaliased_component_p): New predicate.
9689 (create_field_decl): Invoke the above predicate to set the
9690 DECL_NONADDRESSABLE_P flag on the field.
9692 2007-09-11 Javier Miranda <miranda@adacore.com>
9694 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
9695 in library level record type entities if we are generating statically
9696 allocated dispatch tables.
9698 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
9699 importing/exporting the _tag declaration by new code
9700 importing/exporting the dispatch table wrapper. This change allows us
9701 to statically allocate of the TSD.
9702 (Make_DT.Export_DT): New procedure.
9703 (Build_Static_DT): New function.
9704 (Has_DT): New function.
9706 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
9707 True_Constant and Current_Value. Required to statically
9708 allocate the dispatch tables.
9709 (Check_Allocator): Make function iterative instead of recursive.
9710 Also return inner allocator node, when present, so that we do not have
9711 to look for that node again in the caller.
9713 2007-09-11 Jan Hubicka <jh@suse.cz>
9715 * misc.c (gnat_expand_body): Kill.
9716 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
9718 2007-09-10 Robert Dewar <dewar@adacore.com>
9720 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
9721 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
9722 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
9723 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
9724 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
9725 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
9726 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
9727 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
9728 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
9729 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
9730 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
9731 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
9732 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
9733 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
9734 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
9735 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
9736 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
9737 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
9738 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
9739 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
9740 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
9741 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
9742 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
9743 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
9744 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
9745 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
9746 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
9747 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
9748 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
9749 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
9750 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
9751 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
9752 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
9753 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
9754 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
9755 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
9756 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
9757 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
9758 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
9759 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
9760 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
9761 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
9762 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
9763 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
9764 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
9765 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
9766 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
9767 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
9768 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
9769 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
9770 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
9771 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
9772 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
9773 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
9774 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
9775 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
9776 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
9777 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
9778 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
9779 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
9780 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
9781 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
9782 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
9783 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
9784 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
9785 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
9786 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
9787 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
9788 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
9789 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
9790 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
9791 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
9792 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
9793 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
9794 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
9795 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
9796 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
9797 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
9798 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
9799 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
9800 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
9801 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
9802 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
9804 2007-09-10 Emmanuel Briot <briot@adacore.com>
9806 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
9809 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
9811 * adaint.c (__gnat_translate_vms): new function.
9813 2007-09-10 Gary Dismukes <dismukes@adacore.com>
9814 Thomas Quinot <quinot@adacore.com>
9816 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
9817 create an abstract subprogram in the case of 'Input. For 'Output we now
9818 create a real spec/body when the type is abstract, since it can
9819 potentially be called.
9820 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
9821 body for 'Output when the type is abstract (only the creation of the
9822 body for 'Input is excluded when the type is abstract).
9823 (Stream_Operation_OK): Add an additional condition in the return
9824 statement, so that False will be returned for TTS_Stream_Input if the
9825 associated tagged type is an abstract extension. Add comments for
9827 (Expand_N_Object_Declaration): For the case of a shared passive
9828 variable, insert init proc call only after the shared variable
9829 procedures have been processed, because the IP call needs to undergo
9830 shared passive variable reference expansion, which requires these
9831 procedures to be available (and elaborated).
9833 2007-09-10 Vincent Celier <celier@adacore.com>
9835 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
9836 parameter Runtime_Project.
9838 2007-09-10 Ed Schonberg <schonberg@adacore.com>
9840 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
9841 given a box association, the type of the component is discriminated,
9842 and the value of the discriminant is the discriminant of the enclosing
9843 type, retrieve its value from the aggregate itself, where it must have
9846 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
9847 to remove other spurious ambiguities on arithmetic operations involving
9848 literals and addresses, on systems where Address is a visible integer
9849 type, when the operator is called in functional notation.
9850 (Try_Primitive_Operation): Within an instance, a call in prefixed form
9851 is legal when the types match, even if the operation is currently
9854 2007-09-10 Ed Schonberg <schonberg@adacore.com>
9856 * sem_ch12.adb (Build_Local_Package): A formal package with no
9857 associations is legal if all formals have defaults. It is not
9858 equivalent to a formal declared with a box.
9860 2007-09-10 Sergey Rybin <rybin@adacore.com>
9862 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
9864 2007-09-10 Sergey Rybin <rybin@adacore.com>
9866 * gnat_ugn.texi: Add description of the new '-lratio' option
9867 Update 7.3.1 section about availability of the feature.
9869 2007-09-10 Thomas Quinot <quinot@adacore.com>
9871 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
9874 2007-09-10 Olivier Hainque <hainque@adacore.com>
9876 * Makefile.in: (mips-irix section): Activate build of libgmem.
9878 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
9880 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
9883 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
9885 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
9886 a debug renaming declaration specially.
9888 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
9890 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
9891 which a constant renaming is treated as a normal object declaration.
9892 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
9893 the N_Indexed_Component case.
9894 <N_Indexed_Component>: Fall through to above case.
9895 <N_Object_Renaming_Declaration>: Return true for all composite types.
9897 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
9899 * decl.c (make_packable_type): If the new type has been given BLKmode,
9900 try again to get an integral mode for it.
9902 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
9904 Re-apply accidentally reverted change:
9906 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
9908 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
9909 get_action_description_for): Replace _Unwind_Word with _uleb128_t
9910 and _Unwind_SWord with _sleb128_t.
9912 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
9914 * trans.c (convert_with_check): Update call to real_2expN.
9916 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
9918 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
9919 * utils.c (end_subprog_body): Likewise.
9921 2007-09-03 Nick Clifton <nickc@redhat.com>
9923 * Make-lang.in: Change copyright header to refer to version 3 of
9924 the GNU General Public License and to point readers at the
9925 COPYING3 file and the FSF's license web page.
9926 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
9927 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
9928 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
9929 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
9932 2007-08-31 Vincent Celier <celier@adacore.com>
9936 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
9937 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
9938 (Check_Version_And_Help): New procedure in package Switch to process
9939 switches --version and --help.
9940 Use Check_Version_And_Help in GNAT tools
9943 (Compile_Sources): Make sure that sources that are "excluded" are not
9945 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
9946 project file is used.
9947 (Version_Switch): Remove, moved to Switch
9948 (Help_Switch): Remove, moved to Switch
9949 (Display_Version): Remove, moved to Switch
9951 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
9952 package Switch to process switches --version and --help.
9953 (Display_Version): New procedure
9955 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
9957 2007-08-31 Javier Miranda <miranda@adacore.com>
9959 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
9962 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
9964 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
9965 (Mark_Non_Null): If the node for which we just generated an access check
9966 is a reference to an *in* parameter and the reference appears in the
9967 declarative part of a subprogram body, mark the node as known non null.
9969 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
9971 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
9972 structure of E_Exception to reflect the new flag.
9973 (Is_Raised, Set_Is_Raised): New inlined routines.
9974 Update the usage of available flag to reflect the addition of Is_Raised.
9975 (Is_Raised, Set_Is_Raised): Bodies of new routines.
9976 (Write_Entity_Flags): Write the status of flag Is_Raised.
9977 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
9978 spurious ambiguities when integer literals appear in the context of an
9979 address type that is a visible integer type.
9981 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
9982 exceptions never being raised.
9983 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
9986 2007-08-31 Javier Miranda <miranda@adacore.com>
9988 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
9989 statement when compiling under restriction No_Exceptions_Proparation.
9991 2007-08-31 Ed Schonberg <schonberg@adacore.com>
9993 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
9994 initialization aggregate for the type, generate itype references for
9995 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
9997 2007-08-31 Gary Dismukes <dismukes@adacore.com>
9999 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
10000 library-level package renaming, pass the declaration associated with
10001 the renaming's special debug variable to Qualify_Entity_Names to ensure
10002 that its encoded name is properly qualified.
10004 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
10005 occurring in the list of entities to qualify, and do not attempt to
10006 traverse an entity list in that case. Variables associated with
10007 ` library-level package renamings can now occur in the table.
10009 * exp_dbug.ads: Revise documentation of the encoding for renaming
10012 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10014 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
10015 access type points to an unconstrained array.
10017 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
10019 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
10022 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
10023 simple redundant qualifications. The check is performed whenever the
10024 expression is a non-overloaded identifier.
10025 (Resolve_Type_Conversion): Enchance the redundant type conversion check
10026 to include loop parameters.
10027 (Valid_Conversion): Avoid generation of spurious error message.
10029 2007-08-31 Bob Duff <duff@adacore.com>
10031 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
10032 concatenations of string literals into a single literal, in order to
10033 avoid very deep recursion in the front end, which was causing stack
10036 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
10037 string, and the right operand is a string literal (the case of "" &
10038 "..."), optimize by avoiding copying the right operand -- just use the
10039 value of the right operand directly.
10041 * stringt.adb (Store_String_Chars): Optimize by growing the
10042 String_Chars table all at once, rather than appending characters one by
10044 (Write_String_Table_Entry): If the string to be printed is very long,
10045 just print the first few characters, followed by the length. Otherwise,
10046 doing "pn(n)" in the debugger can take an extremely long time.
10048 * sem_prag.adb (Process_Interface_Name): Replace loop doing
10049 Store_String_Char with Store_String_Chars.
10051 2007-08-31 Vincent Celier <celier@adacore.com>
10053 * prj-attr.adb: Add new attribute Excluded_Source_Files
10055 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
10056 Locally_Removed_Files.
10058 * snames.ads, snames.adb: New standard name Excluded_Source_Files
10060 2007-08-31 Ed Schonberg <schonberg@adacore.com>
10062 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
10063 clauses of subunits, ignore limited_with_clauses that are illegal and
10064 have not been fully analyzed.
10066 2007-08-31 Ed Schonberg <schonberg@adacore.com>
10068 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
10069 flag, for effiency. It is called when analyzing arithmetic operators
10070 and also for actuals in calls that are universal_integers. The flag is
10071 set for the predefined type address, and for any type or subtype
10074 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
10075 Universal_Integer, when the formal is a descendent of address and the
10076 call appears in user code.
10077 (Analyze_Selected_Component): if the prefix is a private extension, the
10078 tag component is visible.
10080 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
10083 2007-08-31 Robert Dewar <dewar@adacore.com>
10085 * s-fileio.adb (Open): Normalize file name to lower case in non-case
10086 sensitive file name systems to avoid unexpected mismatch in Vista.
10088 2007-08-31 Vincent Celier <celier@adacore.com>
10090 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
10092 2007-08-31 Vincent Celier <celier@adacore.com>
10094 * symbols-vms.adb (Initialize): Read symbol files with continuation
10096 (Finalize): If symbol is long, split the line
10098 2007-08-31 Vincent Celier <celier@adacore.com>
10100 * fmap.ads: Minor comment updates
10102 2007-08-31 GNAT Script <nobody@adacore.com>
10104 * Make-lang.in: Makefile automatically updated
10106 2007-08-31 Bob Duff <duff@adacore.com>
10108 * sinfo.ads: Minor comment fix.
10110 2007-08-31 Thomas Quinot <quinot@adacore.com>
10112 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
10113 with implementation.
10114 Documentation cleanup only.
10116 2007-08-31 Sergey Rybin <rybin@adacore.com>
10118 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
10119 gnatpp '--separate-stmt-name' option.
10120 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
10123 * gnat_ugn.texi: Add description for the new gnatpp
10124 '--separate-stmt-name' and '--use-on-new-line' options.
10126 2007-08-31 Ben Elliston <bje@au.ibm.com>
10128 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
10129 when compiling for powerpc64-*-linux.
10130 * system-linux-ppc64.ads: New file.
10132 2007-08-22 Krister Walfridsson <cato@df.lth.se>
10134 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
10137 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10139 * misc.c (gnat_type_max_size): Constify.
10141 2007-08-16 Gary Dismukes <dismukes@adacore.com>
10143 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
10144 associated with Standard_Debug_Renaming_Type, to be used as the type of
10145 the special variables whose names provide debugger encodings for
10146 renaming declarations.
10148 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
10149 (Set_Debug_Renaming_Link): Change to set Node25.
10150 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
10151 (Write_Field25_Name): Add case for E_Variable to output
10152 "Debug_Renaming_Link".
10153 (Write_Field23_Name): Correct the output string for "Limited_View".
10155 * exp_dbug.adb: Add with and use of Tbuild.
10156 (Debug_Renaming_Declaration): Replace creation of an enumeration type
10157 and literal with creation of a variable of type
10158 Standard_Debug_Renaming_Type whose name encodes both the renamed object
10159 and the entity of the renaming declaration.
10160 (Qualify_Entity_Name): Add the delayed qualification of the entity name
10161 part of the name of a variable that has a Debug_Renaming_Link.
10163 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
10164 special type to be associated with variables that provide debugger
10165 encodings for renaming declarations.
10167 2007-08-16 Gary Dismukes <dismukes@adacore.com>
10168 Ed Schonberg <schonberg@adacore.com>
10169 Javier Miranda <miranda@adacore.com>
10171 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
10172 ancestor part given by an aggregate to test for an unchecked conversion,
10173 since this can occur in some cases when the ancestor part is a function
10174 call, and we don't want to fall into the recursive call to this
10175 procedure in that case.
10177 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
10178 stream attributes on limited types to account for user-specified
10179 attributes as well as whether Input (resp. Output) becomes available
10180 due to Read (resp. Write) being available for the type. Change Boolean
10181 variable to the more accurate name
10182 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
10183 double-"not" predicate at beginning of return statement to more
10184 understandable form.
10186 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
10187 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
10188 in a block statement and use that as the first statement of the
10189 expanded return rather than incorrectly using the handled sequence as
10190 the first statement.
10192 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
10193 operation, generate an explicit freeze node for it rather than
10194 generating extra formals, to ensure that gigi has the proper order of
10195 elaboration for anonymous subtypes in the signature of the subprograms.
10196 (Build_In_Place_Formal): Move assertion to beginning of loop.
10197 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
10198 applied to a function call (occurs for some cases of 'Input).
10199 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
10200 applied to a function call (occurs for some cases of 'Input).
10202 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
10203 2005, generate an extended return statement enclosing the result object
10206 * freeze.adb (Freeze_Record_Type): Extend the current management of
10207 components that are access type with an allocator as default value: add
10208 missing support to the use of qualified expressions of the
10209 allocator (which also cause freezing of the designated type!)
10210 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
10211 dispatching operation, since extra formals may be needed by calls to
10212 build-in-place functions (such as stream 'Input).
10214 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
10215 formals for 'Constrained and accessibility level in the case of a
10216 predefined dispatching operation.
10218 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
10219 point, no need to find the parent node.
10221 2007-08-16 Javier Miranda <miranda@adacore.com>
10223 * exp_attr.adb (Attribute_Priority): Add missing support for entries
10224 and entry barriers.
10226 2007-08-16 Javier Miranda <miranda@adacore.com>
10228 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
10229 is not really required and can introduce regression with the debugger.
10230 The original problem is fixed with the patch written for checks.adb.
10232 2007-08-16 Thomas Quinot <quinot@adacore.com>
10234 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
10235 Range_Check on Allocated_Table.
10237 2007-08-16 Vincent Celier <celier@adacore.com>
10239 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
10240 Including_Non_Switch set to False.
10241 (Gnatmake): For the compiler, call Test_If_Relative_Path with
10242 Including_Non_Switch set to False.
10244 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
10245 parameter Including_Non_Switch, defaulted to True. When
10246 Including_Non_Switch is False, options that are not switches and
10247 appear as relative path are not converted to absolute paths.
10249 2007-08-16 Nicolas Roche <roche@adacore.com>
10251 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
10254 * Make-lang.in: Update dependencies
10256 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
10258 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
10259 currently inspected is a selected component, retrieve the entity of
10261 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
10262 from the immediate ancestor of Main_Unit_Entity.
10263 (Install_Limited_Withed_Unit): Do not install the limited view of
10264 package P if P is reachable through an ancestor chain from package C
10265 and C also has a with clause for P in its body.
10266 (Has_Limited_With_Clause): New routine.
10267 (Has_With_Clause): New routine.
10269 2007-08-16 Ed Schonberg <schonberg@adacore.com>
10271 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
10272 generic for an enclosing instance is a global reference, even though
10273 its scope is the enclosing instance.
10275 2007-08-16 Gary Dismukes <dismukes@adacore.com>
10276 Javier Miranda <miranda@adacore.com>
10278 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
10279 initialize a limited object.
10280 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
10282 Make sure Has_Complex_Representation is inherited by derived type.
10284 2007-08-16 Robert Dewar <dewar@adacore.com>
10286 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
10289 2007-08-16 Ed Schonberg <schonberg@adacore.com>
10291 * sem_disp.adb (Check_Dispatching_Operation): If the operation
10292 implements an operation inherited from a progenitor interface, verify
10293 that they are subtype-conformant.
10295 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
10296 Bob Duff <duff@adacore.com>
10297 Nicolas Setton <setton@adacore.com>
10299 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
10300 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
10301 the statement which is being resolved comes from a predefined library
10302 unit, all non-predefined library interpretations are skipped.
10303 (Resolve_Op_Concat): If string concatenation was folded in the parser,
10304 but the "&" is user defined, give an error, because the folding would
10307 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
10308 the parser has folded a long sequence of concatenations of string
10311 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
10312 and "JMP_BUF" variables as artificial.
10313 (N_String_Literal): Do not use alloca for very long string literals. Use
10314 xmalloc/free instead. Otherwise the stack might overflow.
10316 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
10319 2007-08-16 Vincent Celier <celier@adacore.com>
10321 * vms_conv.adb (Process_Argument): Ensure that project related options
10322 are not put in the -cargs section when using GNAT COMPILE.
10324 2007-08-16 Robert Dewar <dewar@adacore.com>
10326 * gnat_ugn.texi: Add note on preprocessing (output file not written)
10328 2007-08-16 Thomas Quinot <quinot@adacore.com>
10330 * a-tags.adb: Minor reformatting.
10332 2007-08-16 Bob Duff <duff@adacore.com>
10334 * sem_type.ads, sem_ch4.adb: Minor reformatting.
10336 2007-08-14 Thomas Quinot <quinot@adacore.com>
10338 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
10339 s-osinte-interix.ads, system-interix.ads: Removed.
10341 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
10343 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
10344 calls to Check_Within_Time_Bounds.
10345 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
10346 (Difference): Account for possible rounding of the resulting difference
10348 2007-08-14 Robert Dewar <dewar@adacore.com>
10350 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
10351 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
10352 s-osinte-solaris.adb, s-osinte-solaris.ads,
10353 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
10355 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
10356 switch -gnatyS. Enable -gnatyS in GNAT style check mode
10358 2007-08-14 Robert Dewar <dewar@adacore.com>
10359 Ed Schonberg <schonberg@adacore.com>
10361 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
10362 Suppress unmodified in-out parameter warning in some cases
10363 This patch is a also fairly significant change to the way suppressible
10364 checks are handled.
10366 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
10367 needed for access to concurrent record types generated by the expander.
10368 (Generate_Range_Check): When generating a temporary to capture the
10369 value of a conversion that requires a range check, set the type of the
10370 temporary before rewriting the node, so that the type is always
10371 properly placed for back-end use.
10372 (Apply_Float_Conversion_Check): Handle case where the conversion is
10374 (Get_Discriminal): Code reformatting. Climb the scope stack looking
10375 for a protected type in order to examine its discriminants.
10377 2007-08-14 Robert Dewar <dewar@adacore.com>
10378 Gary Dismukes <dismukes@adacore.com>
10379 Ed Schonberg <schonberg@adacore.com>
10380 Thomas Quinot <quinot@adacore.com>
10382 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
10383 a-stwisu.adb, a-strsup.adb: Fix warnings for range
10384 tests optimized out.
10386 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
10387 (Get_Allocator_Final_List): For the case of an anonymous access type
10388 that has a specified Associated_Final_Chain, do not go up to the
10390 (Expand_N_Type_Conversion): Test for the case of renamings of access
10391 parameters when deciding whether to apply a run-time accessibility
10393 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
10394 aggregate code before allocator, and ahead of declaration for
10395 temporary, to prevent access before elaboration when the allocator is
10396 an actual for an access parameter.
10397 (Expand_N_Type_Conversion): On an access type conversion involving an
10398 access parameter, do not apply an accessibility check when the
10399 operand's original node was an attribute other than 'Access. We now
10400 create access conversions for the expansion of 'Unchecked_Access and
10401 'Unrestricted_Access in certain cases and clearly accessibility should
10402 not be checked for those.
10404 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
10405 includes a type conversion of a packed component that has been expanded,
10406 recover the original expression for the object, and use this expression
10407 in the post-call assignment statement, so that the assignment is made
10408 to the object and not to a back-end temporary.
10409 (Freeze_Subprogram): In case of primitives of tagged types not defined
10410 at the library level force generation of code to register the primitive
10411 in the dispatch table. In addition some code reorganization has been
10412 done to leave the implementation clear.
10413 (Expand_Call): When expanding an inherited implicit conversion,
10414 preserve the type of the inherited function after the intrinsic
10415 operation has been expanded.
10417 * exp_ch2.ads, exp_ch2.adb
10418 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
10419 of an entry formal appearing in an assignment statement does not assign
10421 (Expand_Current_Value): Instead of calling a routine to determine
10422 whether the prefix of an attribute reference should be optimized or
10423 not, prevent the optimization of such prefixes all together.
10425 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
10426 component whose prefix is known to be of an access type is an implicit
10427 dereference and does not assign to the prefix.
10429 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10430 Robert Dewar <dewar@adacore.com>
10432 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
10433 itype is visited, make an entry into table to link associated node and
10435 Add comments and correct harmless error in Build_NCT_Hash_Tables
10436 (Array_Aggr_Subtype): Associate each itype created for an index type to
10437 the corresponding range construct, and not to the aggregate itself. to
10438 maintain a one-to-one correspondence between itype and its associated
10439 node, to prevent errors when complex expression is copied.
10440 Fix mishandling of multiple levels of parens
10442 * sem_aggr.adb: Create a limited view of an incomplete type, to make
10443 treatment of limited views uniform for all visible declarations in a
10444 limited_withed package.
10445 (New_Copy_Tree): If hash table is being used and itype is visited,
10446 make an entry into table to link associated node and new itype.
10447 (Resolve_Record_Aggregate): Do not add an others box association for a
10448 discriminated record component that has only discriminants, when there
10449 is a box association for the component itself.
10451 * par-ch4.adb: Fix mishandling of multiple levels of parens
10453 2007-08-14 Robert Dewar <dewar@adacore.com>
10455 * comperr.adb: Fix problem with suppressing warning messages from gigi
10457 * erroutc.ads, erroutc.adb, errout.ads,
10458 errout.adb (Write_Eol): Remove trailing spaces before writing the line
10459 (Write_Eol_Keep_Blanks): New procedure to write a line, including
10460 possible trailing spaces.
10461 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
10462 Fix problem with suppressing warning messages from back end
10463 Improve handling of deleted warnings
10466 Fix problem with suppressing warning messages from back end
10467 Handle setting of Static_Dispatch_Tables flag.
10470 Fix problem with suppressing warning messages from back end
10472 * exp_intr.adb: Improve handling of deleted warnings
10474 2007-08-14 Robert Dewar <dewar@adacore.com>
10476 * debug.adb: Improve -gnatdI to cover all cases of serialization
10477 Add documentation of dZ, d.t
10479 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
10481 (Sprint_Node_Actual): Generate new output associated with implicit
10482 importation and implicit exportation of object declarations.
10484 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10485 Robert Dewar <dewar@adacore.com>
10486 Javier Miranda <miranda@adacore.com>
10487 Gary Dismukes <dismukes@adacore.com>
10489 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
10490 to make treatment of limited views uniform for all visible declarations
10491 in a limited_withed package.
10492 Improve warnings for in out parameters
10493 (Set_Related_Interaface/Related_Interface): Allow the use of this
10494 attribute with constants.
10495 (Write_Field26_Name): Handle attribute Related_Interface in constants.
10496 Warn on duplicate pragma Preelaborable_Initialialization
10498 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
10499 generation of a freezing node to ensure proper management of null
10500 excluding access types in the backend.
10501 (Create_Extra_Formals): Test base type of the formal when checking for
10502 the need to add an extra accessibility-level formal. Pass the entity E
10503 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
10504 originally being done in a couple of cases), to ensure that the
10505 Extra_Formals list gets set on the entity E when the first entity is
10507 (Conforming_Types): Add missing calls to Base_Type to the code that
10508 handles anonymous access types. This is required to handle the
10509 general case because Process_Formals builds internal subtype entities
10510 to handle null-excluding access types.
10511 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
10512 functions that need it, even when not marked Requires_Overriding.
10513 Improve warnings for in out parameters
10514 (Analyze_Function_Return): Warn for disallowed null return
10515 Warn on return from procedure with unset out parameter
10516 Ensure consistent use of # in error messages
10517 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
10518 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
10519 the implicit conversion of the expression done for anonymous access
10520 types. This is required to generate the code of the null excluding
10521 check (if required).
10523 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
10524 A formal parameter is never publicly referenceable outside of its body.
10525 (Check_References): For an unreferenced formal parameter in an accept
10526 statement, use the same warning circuitry as for subprogram formal
10528 (Warn_On_Unreferenced_Entity): New subprogram, taken from
10529 Output_Unreferenced_Messages, containing the part of that routine that
10530 is now reused for entry formals as described above.
10531 (Goto_Spec_Entity): New function
10532 (Check_References): Do not give IN OUT warning for dispatching operation
10533 Improve warnings for in out parameters
10534 (Test_Ref): Check that the entity is not undefinite before calling
10535 Scope_Within, in order to avoid infinite loops.
10536 Warn on return from procedure with unset out parameter
10537 Improved warnings for unused variables
10539 2007-08-14 Robert Dewar <dewar@adacore.com>
10540 Javier Miranda <miranda@adacore.com>
10541 Gary Dismukes <dismukes@adacore.com>
10543 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
10544 (Expand_N_Attribute_Reference): Further unify the handling of the
10545 three forms of access attributes, using common code now for all three
10546 cases. Add a test for the case of applying an access attribute to
10547 an explicit dereference when the context is an access-to-interface
10548 type. In that case we need to apply the conversion to the prefix
10549 of the explicit dereference rather than the prefix of the attribute.
10550 (Attribute_Version, UET_Address): Set entity as internal to ensure
10551 proper dg output of implicit importation.
10552 (Expand_Access_To_Type): Removed.
10553 (Expand_N_Attribute_Reference): Merge the code from the three cases
10554 of access attributes, since the processing is largely identical for
10555 these cases. The substantive fix here is to process the case of a
10556 type name prefix (current instance case) before handling the case
10557 of interface prefixes.
10559 2007-08-14 Thomas Quinot <quinot@adacore.com>
10560 Ed Schonberg <schonberg@adacore.com>
10561 Javier Miranda <miranda@adacore.com>
10562 Robert Dewar <dewar@adacore.com>
10564 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
10565 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
10566 type that is an anonymous access to controlled object, establish
10567 an associated finalization chain to avoid corrupting the global
10568 finalization list when a dynamically allocated object designated
10569 by such a component is deallocated.
10570 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
10571 functions that need it, even when not marked Requires_Overriding.
10572 (Initialize_Tag): Replace call to has_discriminants by call to
10573 Is_Variable_Size_Record in the circuitry that handles the
10574 initialization of secondary tags.
10575 (Is_Variable_Size_Record): New implementation.
10576 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
10577 Suppress_Initialization pragma for a derived type.
10578 (Is_Variable_Size_Record): New subprogram.
10579 (Build_Offset_To_Top_Functions): New implementation that simplifies the
10580 initial version of this routine and also fixes problems causing
10581 incomplete initialization of the table of interfaces.
10582 (Build_Init_Procedure): Improve the generation of code to initialize the
10583 the tag components of secondary dispatch tables.
10584 (Init_Secondary_Tags): New implementation that simplifies the previous
10585 version of this routine.
10586 (Make_DT): Add parameter to indicate when type has been frozen by an
10587 object declaration, for diagnostic purposes.
10588 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
10589 diagnose attemps to freeze a subprogram when some untagged type of its
10590 profile is a private type whose full view has not been analyzed yet.
10591 (Freeze_Array_Type): Generate init proc for packed array if either
10592 Initialize or Normalize_Scalars is set.
10593 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
10594 constructing the new profile, copy the null_exclusion indicator for each
10595 parameter, to ensure full conformance of the new body with the spec.
10597 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
10598 Create wrappers for constructor functions that need it, even when not
10599 marked Requires_Overriding.
10600 (Covers): Handle properly designated types of anonymous access types,
10601 whose non-limited views are themselves incomplete types.
10602 (Add_Entry): Use an entity to store the abstract operation which hides
10604 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
10605 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
10606 initialization aggregate.
10607 (Function_Interp_May_Be_Hidden): Rename to
10608 Function_Interp_Has_Abstract_Op.
10609 (Has_Compatible_Type): Remove machinery that skips interpretations if
10610 they are labeled as potentially hidden by an abstract operator.
10611 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
10612 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
10613 (Write_Overloads): Output the abstract operator if present.
10614 (Add_Entry): Before inserting a new entry into the interpretation table
10615 for a node, determine whether the entry will be disabled by an abstract
10617 (Binary_Op_Interp_May_Be_Hidden): New routine.
10618 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
10620 (Function_Interp_May_Be_Hidden): New routine.
10621 (Has_Compatible_Type): Do not consider interpretations hidden by
10622 abstract operators when trying to determine whether two types are
10624 (Has_Hidden_Interp): New routine.
10625 (Set_May_Be_Hidden_Interp): New routine.
10626 (Write_Overloads): Write the status of flag May_Be_Hidden.
10628 2007-08-14 Ed Schonberg <schonberg@adacore.com>
10629 Javier Miranda <miranda@adacore.com>
10631 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
10632 types declared in the declarative part of a nested package body or in
10633 the proper body of a stub.
10634 (Set_All_DT_Position): Add missing check to avoid wrong assignation
10635 of the same dispatch table slot to renamed primitives.
10636 (Make_Select_Specific_Data_Table): Handle private types.
10637 (Tagged_Kind): Handle private types.
10638 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
10639 output of implicit importation and exportation.
10640 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
10641 first formal of the thunk is always associated with the controlling
10642 type. In addition perform the following code cleanup: remove formal
10643 Thunk_Alias which is no longer required, cleanup evaluation of the
10644 the controlling type, and update the documentation.
10645 Replace occurrence of Default_Prim_Op_Count by
10646 Max_Predef_Prims. Addition of compile-time check to verify
10647 that the value of Max_Predef_Prims is correct.
10648 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
10649 (Make_DT): Add parameter to indicate when type has been frozen by an
10650 object declaration, for diagnostic purposes.
10651 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
10652 construction of statically allocated dispatch tables.
10653 (Make_DT): In case of library-level tagged types export the declaration
10654 of the primary tag. Remove generation of tags (now done by Make_Tags).
10655 Additional modifications to handle non-static generation of dispatch
10656 tables. Take care of building tables for asynchronous interface types
10657 (Make_Tags): New subprogram that generates the entities associated with
10658 the primary and secondary tags of Typ and fills the contents of Access_
10659 Disp_Table. In case of library-level tagged types imports the forward
10660 declaration of the primary tag that will be declared later by Make_DT.
10661 (Expand_Interface_Conversion): In case of access types to interfaces
10662 replace an itype declaration by an explicit type declaration to avoid
10663 problems associated with the scope of such itype in transient blocks.
10665 2007-08-14 Robert Dewar <dewar@adacore.com>
10666 Ed Schonberg <schonberg@adacore.com>
10667 Javier Miranda <miranda@adacore.com>
10669 * exp_util.ads, exp_util.adb:
10670 This patch replaces a number of occurrences of explicit tests for N_Null
10671 with calls to Known_Null. This improves tracking of null values, since
10672 Known_Null also catches null constants, and variables currently known to
10673 be null, so we get better tracking.
10674 (Ensure_Defined): create an itype reference only in the scope of the
10676 (Side_Effect_Free): A selected component of an access type that
10677 denotes a component with a rep clause must be treated as not
10678 side-effect free, because if it is part of a linked structure its
10679 value may be affected by a renaming.
10680 (Expand_Subtype_From_Expr): For limited objects initialized with build
10681 in place function calls, do nothing; otherwise we prematurely introduce
10682 an N_Reference node in the expression initializing the object, which
10683 breaks the circuitry that detects and adds the additional arguments to
10684 the called function. Bug found working in the new patch for statically
10685 allocated dispatch tables.
10686 (Is_Library_Level_Tagged_Type): New subprogram.
10687 (Remove_Side_Effects): If the expression of an elementary type is an
10688 operator treat as a function call.
10689 (Make_Literal_Range): If the index type of the array is not integer, use
10690 attributes properly to compute the constraint on the resulting aggregate
10693 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
10694 class-wide type whose base type is an incomplete private type, leave
10695 class-wide type unfrozen so that freeze nodes can be generated
10696 properly at a later point.
10697 (Freeze_Entity, array case): Handle case of pragma Pack and component
10698 size attributre clause for same array.
10700 2007-08-14 Vincent Celier <celier@adacore.com>
10702 * prj.ads, prj.adb: Update Project Manager to new attribute names for
10704 Allow all valid declarations in configuration project files
10705 (Reset): Initialize all tables and hash tables in the project tree data
10706 Major update of the Project Manager and of the project aware tools,
10707 including gprmake, so that the same sources in the GNAT repository
10708 can be used by gprbuild.
10709 (Slash_Id): Change type to be Path_Name_Type
10710 (Slash): Return a Path_Name_Type instead of a File_Name_Type
10712 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
10714 Update Project Manager to new attribute names for ghprbuild
10715 Allow all valid declarations in configuration project files
10716 Major update of the Project Manager and of the project aware tools,
10717 including gprmake, so that the same sources in the GNAT repository
10718 can be used by gprbuild.
10721 Major update of the Project Manager and of the project aware tools,
10722 including gprmake, so that the same sources in the GNAT repository
10723 can be used by gprbuild.
10725 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
10726 insensitive flag for attributes with optional index.
10727 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
10728 array attribute, put the index in lower case.
10729 Update Project Manager to new attribute names for ghprbuild
10730 Allow all valid declarations in configuration project files
10731 Major update of the Project Manager and of the project aware tools,
10732 including gprmake, so that the same sources in the GNAT repository
10733 can be used by gprbuild.
10735 * prj-env.ads, prj-env.adb:
10736 Major update of the Project Manager and of the project aware tools,
10737 including gprmake, so that the same sources in the GNAT repository
10738 can be used by gprbuild.
10739 (Get_Reference): Change type of parameter Path to Path_Name_Type
10741 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
10742 removing '-' from the path to start with the first character of the
10744 Major update of the Project Manager and of the project aware tools,
10745 including gprmake, so that the same sources in the GNAT repository
10746 can be used by gprbuild.
10747 Major update of the Project Manager and of the project aware tools,
10748 including gprmake, so that the same sources in the GNAT repository
10749 can be used by gprbuild.
10751 * prj-nmsc.ads, prj-nmsc.adb:
10752 Update Project Manager to new attribute names for ghprbuild
10753 Allow all valid declarations in configuration project files
10754 (Search_Directories): Detect subunits that are specified with an
10755 attribute Body in package Naming. Do not replace a source/unit in the
10756 same project when the order of the source dirs are known. Detect
10757 duplicate sources/units in the same project when the order of the
10758 source dirs are not known.
10759 (Check_Ada_Name): Allow all identifiers that are not reserved words
10761 Major update of the Project Manager and of the project aware tools,
10762 including gprmake, so that the same sources in the GNAT repository
10763 can be used by gprbuild.
10764 (Look_For_Sources): If the list of sources is empty, set the object
10765 directory of non extending project to nil.
10766 Change type of path name variables to be Path_Name_Type
10767 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
10768 otherwise creating missing directories will fail.
10770 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
10771 prj-part.ads, prj-part.adb:
10772 Major update of the Project Manager and of the project aware tools,
10773 including gprmake, so that the same sources in the GNAT repository
10774 can be used by gprbuild.
10776 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
10777 insensitive flag for attributes with optional index.
10778 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
10779 array attribute, put the index in lower case.
10780 (Parse_Variable_Reference): Allow the current project name to be used in
10781 the prefix of an attribute reference.
10783 * prj-util.ads, prj-util.adb
10784 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
10785 defaulted to False. When True, always check against indexes in lower
10788 * snames.ads, snames.h, snames.adb:
10789 Update Project Manager to new attribute names for gprbuild
10790 Allow all valid declarations in configuration project files
10792 2007-08-14 Robert Dewar <dewar@adacore.com>
10793 Ed Schonberg <schonberg@adacore.com>
10795 * opt.ads: Warning for non-local exception propagation now off by
10797 New switch -gnatI to disable representation clauses
10798 Implement new pragma Implicit_Packing
10801 Warning for non-local exception propagation now off by default
10802 Add warning for unchecked conversion of pointers wi different
10804 New switch -gnatI to disable representation clauses
10806 * usage.adb: new switch -gnatyS
10808 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
10809 note that aggregates of anonymous array types are not flagged.
10810 -gnatwc now includes membership tests optimized away
10811 -gnatw.x warnings are now off by default
10812 Added conditional compilation Appendix
10813 Add documentation of -gnatI
10814 Add documentation for new -gnatyS style check
10815 Update documentation about SAL and auto-init on Windows.
10818 Add documentation for pragma Check_Name and 'Enabled attribute
10819 Document that Eliminate on dispatching operation is ignored
10820 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
10821 Document pragma Main
10822 Document pragma Implicit_Packing
10824 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
10825 different conventions
10826 New switch -gnatI to disable representation clauses
10828 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
10829 recognized, report the invalid characters including "-gnat" instead of
10830 just the first character in the switch.
10831 New switch -gnatI to disable representation clauses
10832 Set Warn_On_Object_Renames_Function true for -gnatg
10834 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
10835 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
10836 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
10837 to switch -aP (add directory to project search dir).
10839 * par-prag.adb: Implement new pragma Implicit_Packing
10841 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
10842 type as having a non-standard representation, to force expansion on
10843 conversion to related types.
10844 (Analyze_Pragma): Warn on misspelled pragma
10845 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
10846 Ensure consistent use of # in error messages
10847 Implement pragma Implicit_Packing
10849 2007-08-14 Olivier Hainque <hainque@adacore.com>
10850 Eric Botcazou <ebotcazou@adacore.com>
10852 * targtyps.c (get_target_maximum_default_alignment): New function.
10854 that the compiler might choose by default for a type or object.
10855 (get_target_default_allocator_alignment): New function. Alignment known
10856 to be honored by the target default allocator.
10857 (get_target_maximum_allowed_alignment): New function. Maximum alignment
10858 we might accept for any type or object on the target.
10859 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
10861 * gigi.h (get_target_maximum_default_alignment): Declare new function.
10862 (get_target_default_allocator_alignment): Likewise.
10863 (get_target_maximum_allowed_alignment): Likewise.
10866 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
10867 result of a function call, first try to use a stabilized reference for
10868 a constant renaming too.
10869 (validate_alignment): Use target_maximum_allowed_alignment instead of
10870 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
10871 (gnat_to_gnu_entity): Use common nodes directly.
10872 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
10873 alignment and size for the object.
10874 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
10875 and N_Procedure_Call_Statement.
10876 (takes_address): Rename to lvalue_required_p, add third parameter
10877 'aliased' and adjust recursive calls.
10878 <N_Indexed_Component>: Update 'aliased' from the array type.
10879 <N_Selected_Component>: New case.
10880 <N_Object_Renaming_Declaration>: New Likewise.
10881 (Identifier_to_gnu): Adjust for above changes.
10882 (maybe_stabilize_reference) <CONST_DECL>: New case.
10884 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
10885 between type variants.
10886 (build_simple_component_ref): Likewise.
10887 (build_call_alloc_dealloc): Use target_default_allocator_alignment
10888 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
10889 aligning type circuitry for allocations from the default storage pool.
10890 (build_allocator): Likewise.
10891 (build_simple_component_ref): Manually fold the reference for a
10892 constructor if the record type contains a template.
10894 * utils.c (value_zerop): Delete.
10895 (gnat_init_decl_processing): Emit debug info for common types.
10896 (rest_of_record_type_compilation): If a union contains a field
10897 with a non-constant qualifier, treat it as variable-sized.
10898 (finish_record_type): Give the stub TYPE_DECL a name.
10899 (rest_of_record_type_compilation): Likewise.
10900 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
10901 types are equivalent array types.
10902 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
10903 even if the type is not passed by reference.
10904 (static_ctors, static_dtors): Delete.
10905 (end_subprog_body): Do not record constructors and destructors.
10906 (build_global_cdtor): Delete.
10907 (gnat_write_global_declarations): Do not call build_global_cdtor.
10909 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
10910 -fRTS=rtp is specified.
10911 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
10914 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
10915 of the personality function with SJLJ exceptions.
10917 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
10918 the name of the personality function with SJLJ exceptions.
10920 2007-08-14 Robert Dewar <dewar@adacore.com>
10921 Ed Schonberg <schonberg@adacore.com>
10923 * par.ads, par.adb: Improve handling of extra right parens.
10924 (Par): Remove flag From_Limited_With_Clause.
10926 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
10927 Improve handling of extra right parens.
10929 2007-08-14 Robert Dewar <dewar@adacore.com>
10931 * par-tchk.adb (TF_Semicolon): Improve error recovery
10933 2007-08-14 Robert Dewar <dewar@adacore.com>
10934 Ed Schonberg <schonberg@adacore.com>
10936 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
10937 enumeration type, mark all literals as referenced.
10938 (Eval_Attribute, case 'Image): If the argument is an enumeration
10939 literal and names are available, constant-fold but mark nevertheless as
10941 Clean up function names.
10942 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
10944 (Requires_Simple_Name_Prefix): Removed.
10946 2007-08-14 Robert Dewar <dewar@adacore.com>
10947 Ed Schonberg <schonberg@adacore.com>
10949 * sem_ch11.adb: Improved warnings for unused variables
10951 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
10952 is a synchronized interface, the derived type is limited.
10953 (Analyze_Object_Declaration): Mark the potential coextensions in the
10954 definition and expression of an object declaration node.
10955 (Build_Derived_Type): For the completion of a private type declaration
10956 with a derived type declaration, chain the parent type's representation
10957 items to the last representation item of the derived type (not the
10958 first one) if they are not present already.
10959 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
10960 object declaration of forward references to tags.
10961 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
10962 subprogram types can appear as access discriminants of synchronized
10964 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
10965 given in prefixed form as a selected component.
10966 (Process_Discriminants): If not all discriminants have defaults, place
10967 error message on a default that is present.
10968 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
10969 extend a synchronized tagged type.
10970 Improved warnings for unused variables
10971 (Is_Visible_Component): Fix a visibility hole on a component inherited
10972 by a private extension when parent is itself declared as a private
10973 extension, and the derivation is in a child unit.
10974 (Find_Hidden_Interface): Move spec from the package body.
10976 2007-08-14 Robert Dewar <dewar@adacore.com>
10977 Ed Schonberg <schonberg@adacore.com>
10979 * sem_ch5.adb: Improve warnings on redundant assignments
10981 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
10983 (Is_Synchronized_Tagged_Type): New subprogram that returns true
10984 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
10985 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
10986 is set to False. Improves handling of Known_[Not_]Null.
10987 (Wrong_Type): Special case address arithmetic attempt
10988 (Collect_Abstract_Interfaces): Add new formal to allow collecting
10989 abstract interfaces just using the partial view of private types.
10990 (Has_Abstract_Interfaces): Add new formal to allow checking types
10991 covering interfaces using the partial view of private types.
10992 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
10993 component still needs to be defined in this case, but is never
10994 initialized as VMs are using other dispatching mechanisms.
10995 (Abstract_Interface_List): For a protected type, use base type to get
10996 proper declaration.
10997 Improve warnings on redundant assignments
10998 (Is_Variable): Handle properly an implicit dereference of a prefixed
11000 (Build_Actual_Subtype): If this is an actual subtype for an
11001 unconstrained formal parameter, use the sloc of the body for the new
11002 declaration, to prevent anomalises in the debugger.
11004 2007-08-14 Robert Dewar <dewar@adacore.com>
11006 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
11007 dispatching operation
11009 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11010 Gary Dismukes <dismukes@adacore.com>
11013 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
11014 expanded aggregate code before allocator, and ahead of declaration for
11015 temporary, to prevent access before elaboration when the allocator is
11016 an actual for an access parameter.
11017 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
11018 the TSD and the table of interfaces.
11019 (Convert_To_Assignments): Augment the test for delaying aggregate
11020 expansion for limited return statements to include the case of extended
11021 returns, to prevent creation of an unwanted transient scope.
11022 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
11023 (Expand_Array_Aggregate): Handle aggregates associated with
11024 statically allocated dispatch tables.
11025 (Expand_Record_Aggregate): Handle aggregates associated with
11026 statically allocated dispatch tables.
11027 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
11028 of anonymous access type.
11030 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11032 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
11033 is a variable that renames a slice, use the variable itself in the
11034 expannsion when the renamed expression itself may be modified between
11035 the declaration of the renaming and the array assignment.
11037 2007-08-14 Jerome Guitton <guitton@adacore.com>
11039 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
11040 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
11041 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
11042 New functions; dummy implementations.
11044 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
11045 functions, used to implement the multi-tasks mode routines on VxWorks.
11047 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
11048 New functions, thin
11049 binding to the VxWorks routines which have changed between VxWorks 5
11051 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
11052 which are not callable from a RTP.
11054 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
11055 implemented for the multi-tasks mode on VxWorks 5 and 6.
11057 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
11059 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
11062 2007-08-14 Vincent Celier <celier@adacore.com>
11064 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
11065 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
11066 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
11067 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
11068 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
11069 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
11070 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
11072 (Major_Id_Name): New function.
11073 mlib-tgt.ads/mlib.tgt.adb:
11074 (Library_Major_Minor_Id_Supported): New function, default returns True
11075 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
11076 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
11077 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
11078 Implementation of Library_Major_Minor_Id_Supported returns False
11080 (Clean_Library_Directory): If major/minor ids are supported, clean all
11082 Major update of the Project Manager and of the project aware tools,
11083 including gprmake, so that the same sources in the GNAT repository
11084 can be used by gprbuild.
11086 2007-08-14 Olivier Hainque <hainque@adacore.com>
11088 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
11089 (GCC_ZCX_Support): Switch to True.
11091 * s-intman-solaris.adb (Notify_Exception): Call
11092 Adjust_Context_For_Raise before raising, as expected for signal
11093 handlers in general.
11095 * s-intman-posix.adb (Notify_Exception): Remove declaration of
11096 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
11097 to other implementation bodies.
11099 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
11100 be visible by multiple implementation bodies.
11102 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
11103 only for conditions coming from hardware.
11104 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
11105 adjustments to signal context prior to exception raise from signal
11107 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
11109 Solaris section: (__gnat_adjust_context_for_raise): New function.
11110 Implementation of the machine context adjustments to perform prior to
11111 raise from a signal handler. Version for both sparc and x86.
11112 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
11113 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
11114 prior to raising as expected for any handler, before possible nested
11115 faults to make sure all the contexts in a chain have been adjusted by
11116 the time we propagate.
11118 2007-08-14 Pascal Obry <obry@adacore.com>
11120 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
11121 (SYSTEM_INFO): New record.
11122 (SetThreadIdealProcessor): New imported routine needed for supporting
11123 task_info pragma on Windows.
11125 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
11126 info can be applied to the current host.
11127 (Create_Task): Set the ideal processor if information is present.
11129 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
11130 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
11132 2007-08-14 Olivier Hainque <hainque@adacore.com>
11134 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
11135 stack size and initial stack pointer value for a given task.
11136 (Enter_Task): Get the stack attributes of the task we are entering and
11137 let the stack checking engine know about them.
11139 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
11140 Let the stack-checking engine know about the initial sp value and stack
11141 size associated with the current task.
11142 (Set_Stack_Info): If a stack base has been notified for the current
11143 task, honor it. Fallback to the previous less accurate method otherwise.
11145 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
11147 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11149 * sem_ch10.adb: Create a limited view of an incomplete type, to make
11150 treatment of limited views uniform for all visible declarations in a
11151 limited_withed package.
11152 Set flag indicating that a subprogram body for a child unit has a
11154 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
11155 separate declaration, remove the unit name from visibility after
11156 compilation, so that environment is clean for subsequent compilations.
11157 (Install_Limited_Context_Clauses): Do not install a
11158 limited_private_with_clause unless the current unit is a body or a
11159 private child unit.
11160 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
11161 in the same fashion.
11162 (Install_Limited_Withed_Unit): Do not install a limited with clause if
11163 it applies to the declaration of the current package body.
11164 (Remove_Private_With_Clauses): If there is a regular with_clause for
11165 the unit, delete Private_With_Clause from context, to prevent improper
11166 hiding when processing subsequent nested packages and instantiations.
11168 2007-08-14 Jose Ruiz <ruiz@adacore.com>
11170 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
11171 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
11172 representing absolute path names.
11173 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
11175 * cstreams.c (__gnat_full_name for VxWorks): Use
11176 __gnat_is_absolute_path to detect whether we need to add the current
11177 directory to normalize the path.
11179 2007-08-14 Javier Miranda <miranda@adacore.com>
11182 a-tags.adb (Displace): Associate a message with the raised CE
11184 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
11185 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
11186 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
11188 (Default_Prim_Op_Count): Removed.
11189 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
11190 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
11191 Remove pragma Inline_Always.
11193 * rtsfind.ads (Default_Prim_Op_Count): Removed
11194 (Max_Predef_Prims): New entity
11195 (RE_Expanded_Name): Removed
11196 (RE_HT_Link): Removed
11197 (RE_Iface_Tag): Remmoved
11198 (RE_Ifaces_Table): Removed
11199 (RE_Interfaces_Array): Removed
11200 (RE_Interface_Data_Element): Removed
11201 (RE_Nb_Ifaces): Removed
11202 (RE_RC_Offset): Removed
11203 (RE_Static_Offset_To_Top): Removed
11205 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
11207 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
11208 Prim_Op_Count by Max_Predef_Prims.
11210 2007-08-14 Thomas Quinot <quinot@adacore.com>
11211 Vincent Celier <celier@adacore.com>
11213 * binde.adb (Elab_All_Links): Remove unnecessary call to
11214 Generic_Separately_Compiled (if a unit satisfies this predicate, there
11215 won't be an associated Afile).
11216 (Elab_All_Links): Fail if a referenced unit cannot be found
11219 Fix comments in bindgen regarding consistency checks done in Bcheck:
11220 the checks are made across units within a partition, not across several
11222 Fix generation of C binder file for VxWorks.
11224 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
11225 Generic_May_Lack_ALI, more descriptive of the current use of the
11226 predicate, and update documentation.
11228 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
11229 reorganization and documentation update for the case of predefined
11230 library generics (for which we do not reference an Afile).
11232 2007-08-14 Robert Dewar <dewar@adacore.com>
11234 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
11235 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
11236 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
11237 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
11238 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
11239 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
11240 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
11241 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
11242 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
11243 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
11244 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
11245 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
11246 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
11247 g-altcon.adb: Minor reformatting
11249 ada-tree.h: Delete empty line.
11251 ali.ads: Minor reformatting
11252 Clarification of comments.
11253 Minor spelling correction
11255 * exp_dbug.adb: Add Warnings Off to suppress new warning
11257 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
11260 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
11263 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
11265 * a-textio.ads: Reorder the standard input/output/error declarations
11268 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
11270 * par-ch2.adb: Recognize RM specially in errout
11271 Change 'R'M to RM in all error messages
11273 * scng.adb: Recognize RM specially in errout
11275 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
11276 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
11278 * s-direio.adb: Add missing routine header box.
11280 * sem_attr.ads: Add ??? comments
11282 * sem_eval.adb: Recognize RM specially in errout
11283 Change 'R'M to RM in all error messages
11285 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
11287 * s-tasinf.ads: Fix minor comment typo.
11289 * a-cihama.adb: Minor comment addition
11291 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
11294 * s-tasinf-tru64.ads: Fix minor comment typo.
11296 * itypes.ads: Comment update.
11298 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
11301 * argv.c: Added protection against null gnat_argv and gnat_envp.
11303 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
11304 warning message when Tolerate_Consistency_Errors is True.
11306 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
11307 Any_Id, as this subprogram is only applicable to *type* entities (it
11308 sets RM_Size). Instead initialize just Esize and Alignment.
11310 2007-08-14 Bob Duff <duff@adacore.com>
11312 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
11313 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
11314 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
11315 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
11316 a-coorse.ads (Next): Applied pragma Inline.
11317 Make all Containers packages Remote_Types (unless they are already
11319 (Previous): applied pragma Inline
11320 (Elements_Type): is now a record instead of an array
11322 2007-08-14 Thomas Quinot <quinot@adacore.com>
11324 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
11326 (Set_Item): When the new item is an element of the currently allocated
11327 table passed by reference, save a copy on the stack if we're going
11328 to reallocate. Also, in Table.Set_Item, make sure we test the proper
11329 variable to determine whether to call Set_Last.
11331 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
11332 symbols-vms.adb, symbols-processing-vms-alpha.adb,
11333 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
11334 some occurrences of the pattern
11336 T.Table (T.Last) := Value;
11337 with a cleaner call to
11340 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11341 Gary Dismukes <dismukes@adacore.com>
11342 Thomas Quinot <quinot@adacore.com>
11344 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
11345 derived type with interface progenitors use the analyzed formal as the
11346 parent of the actual, to create renamings for all the inherited
11347 operations in Derive_Subprograms.
11348 (Collect_Previous_Instances): new procedure within of
11349 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
11350 unit being loaded, to ensure that the generation of global symbols is
11351 consistent in different compilation modes.
11352 (Is_Tagged_Ancestor): New function testing the ancestor relation that
11353 takes progenitor types into account.
11354 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
11355 traversing over the primitives of the formal and actual types to locate
11356 any abstract subprograms of the actual type that correspond to a
11357 nonabstract subprogram of the formal type's ancestor type(s), and issue
11358 an error if such is found.
11359 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
11360 Instantiate_Package_Body, Instantiate_Subprogram_Body):
11361 Remove bogus guard around calls to Inherit_Context.
11362 (Reset_Entity): If the entity is the selector of a selected component
11363 that denotes a named number, propagate constant-folding to the generic
11364 template only if the named number is global to the generic unit.
11365 (Set_Instance_Env): Only reset the compilation switches when compiling
11366 a predefined or internal unit.
11368 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11370 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
11371 parameter to determine whether operation applies to the prefix.
11372 (Complete_Object_Operation): If actual has an access type and
11373 controlling formal is not an in_parameter, reject the actual if it is
11374 an access_to_constant type.
11375 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
11376 type, the candidate operations are found in the scope of declaration of
11377 the type, because the type has no primitive subprograms.
11378 (Analyze_Selected_Component): If prefix is class-wide, and root type is
11379 a private extension, only examine visible components before trying to
11380 analyze as a prefixed call.
11381 Change Entity_List to Type_To_Use, for better readability.
11382 (Has_Fixed_Op): Use base type when checking whether the type of an
11383 operator has a user-defined multiplication/division
11384 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
11385 user-defined operators are available for fixed-point types.
11387 2007-08-14 Thomas Quinot <quinot@adacore.com>
11388 Ed Schonberg <schonberg@adacore.com>
11390 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
11391 formal At_Any_Place indicating, when True, that we want to test for
11392 availability of the stream attribute at any place (as opposed to the
11393 current visibility context only).
11394 (Missing_Read_Write_Attributes): A stream attribute is missing for the
11395 purpose of enforcing E.2.2(8) only if it is not available at any place.
11396 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
11397 when checking the legality of an extension aggregate in a preelaborable
11398 package. Treat the literal null as a valid default expression in a
11399 component declaration for a type with preelaborable initialization.
11400 A limited interface is a legal progenitor for the designated type of a
11401 remote access to class-wide type.
11403 2007-08-14 Thomas Quinot <quinot@adacore.com>
11404 Ed Schonberg <schonberg@adacore.com>
11406 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
11407 reference): Use correct entity as denoted entity for the selector of
11408 the rewritten node.
11409 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
11410 setting the Referenced_As_LHS flag for entities that are implicitly
11412 (Find_Type): If the type is an internally generated incomplete type,
11413 mark the full view as referenced, to prevent spurious warnings.
11414 (Find_Selected_Component, Has_Components): Handle properly non-limited
11415 views that are themselves incomplete types.
11416 Handle interfaces visible through limited-with clauses.
11417 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
11418 subprogram generic actual for which we have generated a renaming.
11419 Warn when the renaming introduces a homonym of
11420 the renamed entity, and the renamed entity is directly visible.
11422 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11423 Hristian Kirtchev <kirtchev@adacore.com>
11425 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
11426 appear in the subtree to the current allocator if it is not a static
11428 (Resolve_Allocator): Perform cleanup if resolution has determined that
11429 the allocator is not a coextension.
11430 (Resolve): Skip an interpretation hidden by an abstract operator only
11431 when the type of the interpretation matches that of the context.
11432 (Resolve): When looping through all possible interpretations of a node,
11433 do not consider those that are hidden by abstract operators.
11434 (Resolve_Actuals): When verifying that an access to class-wide object
11435 is an actual for a controlling formal, ignore anonymous access to
11436 subprograms whose return type is an access to class_wide type.
11437 (Resolve_Slice): If the prefix of the slice is a selected component
11438 whose type depends on discriminants, build its actual subtype before
11439 applying range checks on the bounds of the slice.
11440 (Valid_Conversion): In an instance or inlined body, compare root types,
11441 to prevent anomalies between private and public views.
11442 (Resolve): Improve error message for ambiguous fixed multiplication
11443 expressions that involve universal_fixed multiplying operations.
11445 2007-08-14 Javier Miranda <miranda@adacore.com>
11446 Hristian Kirtchev <kirtchev@adacore.com>
11448 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
11449 location to allow the correct generation of errors in case of
11450 restrictions applied to the expanded code.
11451 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
11452 function if the condition does not reference them.
11453 (Expand_Entry_Body_Declarations): Mark the index constant as having a
11456 2007-08-14 Thomas Quinot <quinot@adacore.com>
11457 Pablo Oliveira <oliveira@adacore.com>
11459 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
11460 typecode parameters for a union (in a variant record), remove
11461 extraneous layer of Any wrapping for member label.
11462 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
11463 elabration statements, register the package with the name server
11464 at the beginning, not at the end, of the elaboration statements so
11465 that they can create remote access to subprogram values that designate
11466 remote subprograms from the package.
11468 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
11470 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
11471 values to compute the number of seconds since the Unix Epoc in order to
11472 account for Daylight Savings Time. Perform special processing for dates
11473 that are earlier than the Unix Epoc to obtain a negative number.
11475 2007-08-14 Emmanuel Briot <briot@adacore.com>
11477 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
11480 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
11482 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
11483 binder-generated file is not in Ada.
11484 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
11485 recorded in the ALI file.
11486 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
11488 2007-08-14 Vincent Celier <celier@adacore.com>
11490 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
11491 (Output_Source): Do nothing if parameter is No_Sdep_Id
11493 * make.adb (Gnatmake): Do not rebuild an archive simply because a
11494 shared library it imports has a later time stamp.
11495 (Check): Resolve the symbolic links in the path name of the object
11497 Check that the ALI file is in the correct object directory
11498 Check if a file name does not correspond to the mapping of units
11500 (Display_Version): New procedure
11501 (Initialize): Process switches --version and --help
11502 Use type Path_Name_Type for path name
11504 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
11506 * impunit.adb: Re-organize System.Random_Numbers and
11507 GNAT.Random_Numbers and add to builds.
11509 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
11511 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
11513 * a-assert.ads, a-assert.adb: New files.
11515 2007-08-14 Gary Dismukes <dismukes@adacore.com>
11517 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
11518 if AAMP_On_Target is True, then the size of the type encompasses two
11519 addresses (a static link and a subprogram address), except in the case
11520 of library-level access types.
11522 2007-08-14 Vincent Celier <celier@adacore.com>
11524 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
11526 (Write_Eol_Keep_Blanks): New procedure to write a line, including
11527 possible trailing spaces.
11528 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
11530 2007-08-14 Javier Miranda <miranda@adacore.com>
11532 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
11533 null-excluding access types.
11535 2007-08-14 Javier Miranda <miranda@adacore.com>
11537 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
11538 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
11539 of private types add missing check on matching interfaces in the
11540 partial and full declarations.
11541 (Analyze_Protected_Type): Code cleanup.
11542 (Analyze_Task_Type): Code cleanup.
11544 2007-08-14 Javier Miranda <miranda@adacore.com>
11546 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
11547 generated interface thunk.
11549 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11551 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
11552 obsolescent warning on application of 'Class to an incomplete type.
11554 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
11555 prevent obsolescent warning on application of 'Class to an incomplete
11558 2007-08-14 Pascal Obry <obry@adacore.com>
11560 * s-fileio.adb (Is_Open): Add check for usability of the underlying
11563 2007-08-14 Cyrille Comar <comar@adacore.com>
11565 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
11566 since it is potentially used in cases implying double finalization of
11569 2007-08-14 Jose Ruiz <ruiz@adacore.com>
11571 * s-tasini.adb (Get_Stack_Info): Move this function to
11572 System.Soft_Links.Tasking because it is common to the full and the
11573 restricted run times.
11574 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
11575 in SSL.Tasking.Init_Tasking_Soft_Links.
11577 * s-solita.adb (Get_Stack_Info): Function moved from
11578 System.Tasking.Initialization because it is common to the full and the
11579 restricted run times.
11580 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
11582 2007-08-14 Arnaud Charlet <charlet@adacore.com>
11584 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
11585 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
11586 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
11589 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
11592 2007-08-14 Gary Dismukes <dismukes@adacore.com>
11594 * s-veboop.adb (SU): New named number initialized to
11595 System.Storage_Unit.
11596 (True_Val): The initialization expression is revised to use SU (=
11597 Storage_Unit) rather than assuming 8 for the component size of an
11598 unpacked Boolean array.
11600 2007-08-14 Tristan Gingold <gingold@adacore.com>
11602 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
11604 * tb-ivms.c: New file.
11606 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
11608 2007-08-14 Geert Bosch <bosch@adacore.com>
11610 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
11611 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
11612 Add required linker pragmas for automatically linking with the gnalasup
11613 linear algebra support library, and the systems math library.
11614 Rename cdot to cdotu and zdot to zdotu.
11615 Update header comment to describe purpose of package.
11617 2007-08-14 Thomas Quinot <quinot@adacore.com>
11619 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
11620 an explicitly specified Associated_Final_Chain, use that list.
11621 (Expand_N_Package_Body): Build dispatch tables of library level tagged
11623 (Expand_N_Package_Declaration): Build dispatch tables of library level
11624 tagged types. Minor code cleanup.
11626 2007-08-14 Vincent Celier <celier@adacore.com>
11628 * gnatchop.adb (Terminate_Program): Remove exception and use
11629 Types.Terminate_Program instead.
11631 * osint.ads, osint.adb (Current_Exit_Status): New global variable
11632 (Find_Program_Name): Added protection against empty name.
11633 (OS_Exit_Through_Exception): New procedure
11635 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
11636 (OS_Exit_Default): New procedure that contains the previous
11637 implementation of procedure OS_Exit.
11638 (Final_Value): Remove obsolete Interix stuff.
11640 2007-08-14 Thomas Quinot <quinot@adacore.com>
11642 * g-socket.ads: Reorganize example code so that it also works on
11645 2007-08-14 Tristan Gingold <gingold@adacore.com>
11647 * g-trasym.ads: AIX now supports symbolic backtraces.
11649 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11651 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
11652 units being loaded to detect circularities. A circularity may be
11653 present even if the current chain of pending units to load starts from
11654 a limited_with_clause.
11656 * lib-load.ads: Change profile of Load_Unit to use a with_clause
11657 rather than a boolean flag, in order to detect circularities in
11660 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
11661 than propagating the From_Limited_With flag, in order to handle
11662 properly circularities involving with_clauses.
11664 2007-08-14 Nicolas Setton <setton@adacore.com>
11666 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
11669 2007-08-14 Arnaud Charlet <charlet@adacore.com>
11671 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
11672 to build for libgnala.
11673 libgnat: Add rules to build libgnala.a
11674 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
11675 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
11676 Add s-osinte-vxworks-kernel.adb to the target pairs of the
11677 kernel run-time lib for VxWorks 6, which would provide a different
11678 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
11679 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
11680 running ZCX by default.
11681 Add g-sttsne-locking to LynxOS version.
11682 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
11683 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
11685 * system-darwin-x86.ads: New file.
11687 * Make-lang.in: Delete files before copying onto them, so if they are
11688 read-only, the copy won't fail.
11689 Update dependencies
11691 2007-08-14 Pascal Obry <obry@adacore.com>
11693 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
11696 2007-08-14 Vincent Celier <celier@adacore.com>
11698 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
11699 (Gcc): Initialize Gcc_Name at the first call
11701 2007-08-14 Ed Schonberg <schonberg@adacore.com>
11703 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
11704 with_clauses of the enclosing unit when analyzing the package
11705 specification of a nested instance.
11707 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
11709 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
11710 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
11711 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
11712 layout of N_Allocator.
11714 2007-08-14 Thomas Quinot <quinot@adacore.com>
11716 * rtsfind.adb (Check_RPC): Add PCS version check.
11718 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
11719 (Gnat_Free_Software): New function.
11721 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
11722 the PCS_Version value from s-parint, used to check that it is consistent
11723 with what exp_dist expects.
11725 * s-parint.ads (PCS_Version): New entity for checking consistency
11726 between exp_dist and PCS.
11728 * gen-soccon.c: (SO_REUSEPORT): New constant.
11730 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
11732 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
11733 variable Sub_Second to Duration in order to accomodate a larger range
11734 of arithmetic operations.
11736 2007-08-14 Bob Duff <duff@adacore.com>
11738 * g-sttsne-locking.ads: Move comments from spec to body.
11739 * g-sttsne-locking.adb: Move comments from spec to body.
11740 * g-sttsne-vxworks.ads: Removed.
11741 * g-sttsne-vxworks.adb: Removed.
11743 2007-08-11 Ian Lance Taylor <iant@google.com>
11745 * misc.c (gnat_get_alias_set): Change return type to
11748 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11750 * decl.c, utils2.c: Fix whitespace in last change.
11752 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11754 * decl.c (compare_field_bitpos): Constify.
11755 * utils2.c (compare_elmt_bitpos): Likewise.
11757 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
11759 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
11760 anonymous access type.
11761 (pthread_sigmask): Now take an access sigset_t.
11763 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
11765 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
11767 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
11769 PR tree-optimization/25737
11770 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
11772 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
11774 * trans.c (Attribute_to_gnu): When subtracting an
11775 offset from a pointer, use POINTER_PLUS_EXPR with
11776 NEGATE_EXPR instead of MINUS_EXPR.
11777 (gnat_to_gnu): Likewise.
11778 * utils.c (convert): When converting between
11779 thin pointers, use POINTER_PLUS_EXPR and sizetype
11781 * utils2.c (known_alignment): POINTER_PLUS_EXPR
11782 have the same semantics as PLUS_EXPR for alignment.
11783 (build_binary_op): Add support for the semantics of
11784 POINTER_PLUS_EXPR's operands.
11785 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
11787 2007-06-11 Rafael Ávila de Espíndola <espindola@google.com>
11789 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
11790 of get_signed_or_unsigned_type.
11791 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
11793 2007-06-11 Bob Duff <duff@adacore.com>
11794 Thomas Quinot <quinot@adacore.com>
11796 * g-stsifd-sockets.adb (Create): Work around strange behavior of
11797 'bind' on windows that causes 'connect' to fail intermittently, by
11798 retrying the 'bind'.
11799 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
11801 2007-06-10 Duncan Sands <baldrick@free.fr>
11803 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
11804 than to void, for the fields when making a new fat pointer type.
11805 (gnat_substitute_in_type): Now substitute_in_type.
11806 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
11807 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
11808 * utils.c (update_pointer_to): Update fat pointers by updating the
11809 dummy node pointers used for the fields.
11811 2007-06-06 Thomas Quinot <quinot@adacore.com>
11812 Bob Duff <duff@adacore.com>
11814 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
11815 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
11816 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
11817 constant Thread_Blocking_IO, always True by default, set False
11818 on a per-runtime basis.
11819 (Need_Netdb_Buffer): New constant.
11821 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
11822 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
11825 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
11826 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
11827 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
11828 child package Task_Safe_NetDB
11829 (Host_Error_Messages): Add stub body.
11830 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
11832 * g-soccon-mingw.ads: Add Windows-specific constants.
11833 (Need_Netdb_Buffer): New constant.
11834 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
11835 wrapper and import inet_addr(3) from the standard sockets library
11837 (In_Addr): Add alignment clause.
11838 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
11840 2007-06-06 Robert Dewar <dewar@adacore.com>
11842 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
11843 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
11844 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
11845 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
11846 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
11847 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
11848 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
11849 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
11850 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
11851 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
11852 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
11853 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
11854 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
11855 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
11856 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
11857 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
11858 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
11859 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
11860 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
11861 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
11862 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
11863 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
11864 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
11865 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
11866 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
11867 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
11868 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
11869 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
11870 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
11871 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
11872 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
11873 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
11874 Unchecked_* by Ada.Unchecked_*
11876 2007-06-06 Robert Dewar <dewar@adacore.com>
11878 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
11879 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
11880 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
11881 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
11882 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
11883 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
11885 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
11886 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
11887 s-tasloc.adb, s-tasloc.ads: New files.
11889 2007-06-06 Bob Duff <duff@adacore.com>
11891 * g-expect-vms.adb:
11892 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
11893 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
11894 (Send_Signal, Close): Raise Invalid_Process if the process id is
11896 (Pattern_Matcher_Access): Is now a general access type to be able to
11897 use aliased string.
11899 2007-06-06 Thomas Quinot <quinot@adacore.com>
11900 Arnaud Charlet <charlet@adacore.com>
11902 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
11903 (SIGEMT is now used instead of SIGTERM on AIX).
11905 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
11906 (Time_Slice_Supported): Set to True.
11907 Use SIGEMT instead of SIGTERM as SIGADAABORT.
11909 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
11911 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
11912 (Time, Time)): Use To_Relative_Time rather than manual calculation to
11913 express the bounds of Duration as Time. Raise Time_Error when the
11914 result is greater or equal to the higher bound of Duration (on the
11916 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
11917 Ada_High_And_Leaps.
11918 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
11919 Ada_High_And_Leaps.
11920 ("-" (Time, Time)): Reorder code.
11921 (All_Leap_Seconds): Removed.
11922 (Arithmetic_Operations.Add): Remove sign related kludge.
11923 (Arithmetic_Operations.Difference): Control the leaps seconds processing
11924 with flag Leap_Support.
11925 (Arithmetic_Operations.Subtract): Remove sign related kludge.
11926 (Check_Within_Time_Bounds): New procedure.
11927 (Clock): Control the leap seconds processing with flag Leap_Support.
11928 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
11929 (Formatting_Operations.Split): Control the leap seconds processing with
11931 (Formatting_Operations.Time_Of): Control the leaps seconds processing
11932 with flag Leap_Support. Adjust the year, month and day (if applicable)
11933 when the value of day seconds designates a new day.
11934 (Split): Use parameter associations for better readability. Integrate
11936 (Time_Of): Use parameter associations for better readability. Integrate
11939 * a-calfor.adb (Split): Use parameter associations for better
11940 readability. Integrate flag Is_Ada_05.
11941 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
11942 better readability. Integrate flag Is_Ada_05.
11944 2007-06-06 Arnaud Charlet <charlet@adacore.com>
11946 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
11947 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
11948 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
11949 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
11950 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
11951 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
11952 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
11953 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
11954 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
11955 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
11956 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
11957 time when entering this routine to detect a backward clock setting
11958 (manual setting or DST adjustment), to avoid waiting for a longer delay
11960 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
11961 Remove handling of deferred priority change, and replace by setting the
11962 task priority directly, as required by AI-188.
11964 (Max_Task_Image_Length): New constant.
11965 Replace Warnings (Off) by Unreferenced pragma, cleaner.
11966 (Dynamic_Priority_Support): Removed, no longer needed.
11967 (Poll_Base_Priority_Change): Ditto.
11968 (Set_Ceiling): Add this procedure to change the ceiling priority
11969 associated to a lock. This is a dummy implementation because dynamic
11970 priority ceilings are not supported by the underlying system.
11972 * a-dynpri.adb (Set_Priority): Take into account case where Target is
11973 accepting a RV with its priority boosted.
11974 Remove handling of deferred priority change, and replace by setting the
11975 task priority directly, as required by AI-188.
11977 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
11979 Remove handling of deferred priority change, and replace by setting the
11980 task priority directly, as required by AI-188.
11981 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
11982 of Self_Id earlier.
11984 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
11985 (Poll_Base_Priority_Change): Removed.
11986 Code clean up: use SSL.Current_Target_Exception.
11988 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
11989 to run as this is a potentially dispatching point.
11990 (Call_Synchronous): Use Local_Defer_Abort.
11991 (Callable): Relax assertion.
11992 (Selective_Wait): Relax assertion in case abort is not allowed.
11993 Remove handling of deferred priority change, and replace by setting the
11994 task priority directly, as required by AI-188.
11996 * s-tasuti.adb (Make_Passive): Adjust assertions.
11997 Remove handling of deferred priority change, and replace by setting the
11998 task priority directly, as required by AI-188.
12000 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12002 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
12003 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
12004 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
12005 system-vxworks-mips.ads, system-vxworks-alpha.ads,
12006 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
12007 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
12008 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
12009 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
12010 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
12011 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
12012 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
12013 This patch changes the largest non-binary modulus from 2**31-1 to
12015 (Compiler_System_Version): Removed, no longer used.
12016 Clean up system files by removing flags only used on a single target.
12017 Also remove obsolete flags, only used during bootstrap from system.ads
12018 (Address): Add a pragma Preelaborable_Initialization.
12020 * system-aix.ads: Ditto.
12021 (GCC_ZCX_Support): Set to true.
12022 Update priority range on AIX and map Ada priorities to target
12023 priorities appropriately for different scheduling policies.
12025 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
12027 2007-06-06 Vincent Celier <celier@adacore.com>
12029 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
12030 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
12032 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
12033 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
12034 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
12035 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
12036 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
12037 MLib.Tgt, containing the default versions of the exported subprograms.
12038 For each platform, create a specific version of the body of new child
12039 package MLib.Tgt.Specific that contains only the body of subprograms
12040 that are different from the default.
12041 (Archive_Builder_Append_Options): New function.
12043 2007-06-06 Matthew Gingell <gingell@adacore.com>
12045 * s-osinte-aix.adb: Map Ada priorities to target priorities
12046 appropriately for different scheduling policies.
12048 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12050 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
12052 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
12053 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
12055 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
12057 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
12058 Noop on VMS, added for interface commonality.
12060 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
12061 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12062 Olivier Hainque <hainque@adacore.com>
12064 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
12065 renamed expression of a full renaming at toplevel.
12066 (gnat_to_gnu_entity, case object): If not defining, do not look inside
12067 the values the constant is initialized to if it is an N_Allocator.
12068 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
12069 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
12070 (make_aligning_type): Accept an extra ROOM argument for storage to be
12071 made available before the aligned field, and an extra BASE_ALIGN
12072 argument for callers to pass the alignment guaranteed to be honored for
12073 the whole aligning object. Avoid call to finish_record_type, which only
12074 interferes with the sizes we want to set.
12075 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
12076 make_aligning_type for super-aligned objects on stack.
12077 (components_to_record): Pass the adjusted size of the type when creating
12078 fields in the qualified union for the variant part.
12079 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
12080 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
12082 (maybe_pad_type): Set TYPE_USER_ALIGN.
12083 (make_aligning_type): Likewise.
12084 ALIGN argument is unsigned int.
12085 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
12086 (gnat_to_gnu_param): Likewise, for parameters.
12087 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
12088 if it is constant and stems from a function call.
12089 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
12090 of the record is specified. Adjust accordingly.
12091 (adjust_packed): New static function.
12092 (gnat_to_gnu_field): Use it to adjust the packedness setting.
12093 (components_to_record): Likewise.
12094 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
12095 side-effects if the object is deemed constant.
12096 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
12097 type instead of merely finalizing it. Tidy.
12098 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
12099 <E_Access_Type>: Likewise.
12100 (defer_debug_incomplete_list): Rename to defer_finalize_list.
12101 (defer_debug_level): Delete.
12102 (gnat_to_gnu_entity) <debug_deferred>: Likewise
12103 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
12105 <E_Record_Type>: Do not explicitly defer finalizing the type.
12106 Adjust for write_record_type_debug_info renaming.
12107 <E_Subprogram_Type>: Likewise.
12108 Finalize deferred types right after deferred incomplete types are
12110 (rest_of_type_decl_compilation): New global function.
12111 (components_to_record): Rename defer_debug parameter to do_not_finalize.
12112 (components_to_record): Propagate the packedness to the fields of the
12113 qualified union type if there is a variant part.
12114 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
12115 instead of inline code to adjust the XUT field offsets.
12116 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
12117 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
12118 and write the debug info if the type derives from a discriminated one.
12119 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
12120 <E_Array_Subtype>: Likewise.
12121 <E_String_Literal_Subtype>: Likewise.
12122 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
12123 an alignment clause.
12124 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
12125 before giving warning.
12126 (prepend_one_attribute_to): New function, helper to prepend an attribute
12127 to an attribute list.
12128 (gnat_to_gnu_entity) <E_Procedure>: Use it.
12129 (prepend_attributes): Likewise.
12130 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
12131 <E_Array_Type>: Declare the padding type for the element type, if any.
12132 <E_Array_Subtype>: Likewise.
12133 (defer_limited_with): New variable.
12134 (Gigi_Equivalent_Type): New function.
12135 (gnat_to_gnu_entity): Use it at start and use result throughout.
12136 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
12137 Gigi_Equivalent_Type, support Limited_With, allow two levels of
12138 indirection, precompute if unconstrained array to simplify logic, and
12139 use defer_limited_with to defer elaboration of some types from limited
12141 (finalize_from_with_types): New function.
12143 2007-06-06 Gary Dismukes <dismukes@adacore.com>
12144 Eric Botcazou <ebotcazou@adacore.com>
12145 Tristan Gingold <gingold@adacore.com>
12146 Olivier Hainque <hainque@adacore.com>
12148 * trans.c (Identifier_to_gnu): Change test for deferred constant by
12149 adding guard that the entity is an E_Constant before testing presence
12150 of Full_view (and remove unnecessary test that entity is not a type).
12151 For a CONST_DECL used by reference, manually retrieve
12152 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
12153 (struct language_function): Move from utils.c to here.
12154 (struct parm_attr): New structure.
12155 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
12156 (f_parm_attr_cache): New macro.
12157 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
12158 expressions for the 'First, 'Last and 'Length attributes of the
12159 unconstrained array IN parameters.
12160 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
12161 Allocate the information structure for the function earlier, as well
12162 as the language-specific part.
12163 If the parameter attributes cache has been populated, evaluate the
12164 cached expressions on entry.
12165 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
12166 N_Procedure_Call_Statement and N_Indexed_Component.
12167 (Pragma_to_gnu): Translate inspection_point to an asm statement
12168 containaing a comment and a reference to the object (either its address
12169 for BLKmode or its value).
12170 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
12171 to go to DECL_INITIAL. Together with the size constraint relaxation
12172 in create_var_decl, enlarges the set of situations in which an
12173 identifier may be used as an initializer without implying elaboration
12175 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
12176 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
12178 (maybe_stabilize_reference): Remove lvalues_only parameter.
12179 (gnat_stabilize_reference): Adjust for above change.
12180 (gnat_to_gnu): Do not set location information on the result
12181 if it is a reference.
12182 (add_cleanup): Add gnat_node parameter and set the location of the
12184 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
12185 (Exception_Handler_to_gnu_zcx): Likewise.
12186 (gigi): Remove the cgraph node if the elaboration procedure is empty.
12187 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
12188 the former right after the latter.
12189 (start_stmt_group): Make global.
12190 (end_stmt_group): Likewise.
12191 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
12193 (gnu_program_error_label_stack): Likewise.
12194 (gigi): Initialize them.
12195 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
12196 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
12198 (push_exception_label_stack): New function.
12199 (takes_address): New function.
12201 * utils.c (struct language_function): Move to trans.c from here.
12202 (unchecked_convert): Do not wrap up integer constants in
12203 VIEW_CONVERT_EXPRs.
12204 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
12205 the latter for aggregate types, unexpected by later passes, and relax an
12206 arbitrary size constraint on the former.
12207 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
12208 to compare the sizes.
12209 (convert_vms_descriptor): When converting to a fat pointer type, be
12210 prepared for a S descriptor at runtime in spite of a SB specification.
12211 (shift_unc_components_for_thin_pointers): New function.
12212 (write_record_type_debug_info): For variable-sized fields, cap the
12213 alignment of the pointer to the computed alignment.
12214 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
12215 If REP_LEVEL is 2, do not compute the sizes.
12216 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
12217 (build_unc_object_type): Likewise.
12218 (declare_debug_type): New function.
12220 * ada-tree.def: USE_STMT: removed (not emitted anymore).
12222 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
12223 no statement is expandable anymore.
12224 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
12225 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
12226 when the user requested it explicitely.
12227 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
12229 (get_alias_set): Return alias set 0 for a type if
12230 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
12232 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
12233 (DECL_FUNCTION_STUB): New accessor macro.
12234 (SET_DECL_FUNCTION_STUB): New setter macro.
12236 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
12238 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
12241 2007-06-06 Jose Ruiz <ruiz@adacore.com>
12243 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
12244 Rename to Abort_Task_Interrupt to be able to keep the same interface
12245 as the rest of the targets.
12247 * s-osinte-vxworks.ads s-osinte-vxworks.adb
12248 (To_VxWorks_Priority): Remove explicit "in" mode indicator
12250 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
12253 2007-06-06 Robert Dewar <dewar@adacore.com>
12255 * a-chahan.ads: Remove obsolescent pragmas
12257 * a-chlat1.ads: Minor reformatting
12259 2007-06-06 Robert Dewar <dewar@adacore.com>
12261 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
12264 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
12267 * errout.ads (Finalize): Changed interface
12268 (Output_Messages): New procedure
12269 (Compilation_Errors): New Interface
12271 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
12272 Finalize/Output_Messages interface for Errout
12273 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
12276 2007-06-06 Thomas Quinot <quinot@adacore.com>
12277 Olivier Hainque <hainque@adacore.com>
12278 Robert Dewar <dewar@adacore.com>
12280 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
12282 (Raise_Current_Excep): Call Debug_Raise_Exception just before
12283 propagation starts, to let debuggers know about the event in a reliable
12285 (Local_Raise): Moved to System.Exceptions
12286 More convenient to have this as a separate unit
12288 * s-except.adb, s-except.ads: New files.
12290 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
12291 Debug_Unhandled_Exception in System.Exceptions where it belongs
12292 together with a couple of other debug helpers.
12293 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
12294 the former Unhandled_Exception.
12296 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
12297 (Warn_No_Exception_Propagation): New procedure
12298 (Warn_If_No_Propagation): Rewritten for new warning generation
12299 (Expand_Exception_Handlers): New warning generation
12300 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
12301 (Add_Exception_Label): Use Special_Exception_Package_Used for test
12302 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
12303 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
12304 even if restriction is set (makes life easier in Check_Returns)
12305 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
12306 checking exception identities.
12307 (Expand_Local_Exception_Handlers): Do not optimize when all others case
12308 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
12309 block for handler (used by Check_Returns)
12310 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
12311 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
12312 remove all exception handlers when optimizing local raise statements.
12313 (Find_Local_Handler): Use Get_Renamed_Entity
12314 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
12315 marked analyzed after expanding exception handlers, do not generate
12316 redundant cleanup actions, because they have been constructed already.
12318 2007-06-06 Thomas Quinot <quinot@adacore.com>
12320 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
12321 presence of this categorization pragma is mandated by the language.
12322 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
12325 2007-06-06 Vincent Celier <celier@adacore.com>
12326 Robert Dewar <dewar@adacore.com>
12328 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
12329 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
12330 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
12331 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
12332 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
12333 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
12334 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
12335 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
12336 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
12337 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
12338 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
12340 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
12341 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
12342 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
12343 Use variables of types File_Name_Type and Unit_Name_Type in error
12345 (Get_Name): Add parameter Ignore_Special, and set it reading file name
12346 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
12348 Define flags Flag217-Flag230 with associated subprograms
12349 (Flag_Word5): New record type.
12350 (Flag_Word5_Ptr): New access type.
12351 (To_Flag_Word5): New unchecked conversion.
12352 (To_Flag_Word5_Ptr): Likewise.
12353 (Flag216): New function.
12354 (Set_Flag216): New procedure.
12356 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12358 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
12361 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
12363 2007-06-06 Javier Miranda <miranda@adacore.com>
12365 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
12367 (Object_Specific_Data_Array): This is now internal to the package.
12368 (Object_Specific_Data): This is now internal to the package.
12369 (Select_Specific_Data_Element): This is now internal to the package.
12370 (Select_Specific_Data_Array): This is now internal to the package.
12371 (Select_Specific_Data): This is now internal to the package.
12372 (Offset_To_Top_Function_Ptr): This is now public.
12373 (To_Offset_To_Top_Function_Ptr): Removed.
12374 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
12375 local to subprogram Offset_To_Top.
12376 (Predefined_DT): Removed.
12377 (Typeinfo_Ptr): Removed.
12378 (OSD): This function is now internal to this package.
12379 (SSD): This function is now internal to this package.
12380 (DT): New function that displaces the pointer to the table of primitives
12381 to get access to the enclosing wrapper record.
12382 (IW_Membership): Code cleanup.
12383 (Offset_To_Top): Code cleanup.
12384 (Predefined_DT): Removed.
12385 (Register_Interface_Tag): Removed.
12386 (Set_Interface_Table): Removed.
12387 (Set_Offset_Index): Removed.
12388 (Set_Offset_To_Top): Code cleanup.
12389 (Set_OSD): Removed.
12390 (Set_Signature): Removed.
12391 (Set_SSD): Removed.
12392 (Set_Tagged_Kind): Removed.
12393 (Typeinfo_Ptr): Removed.
12395 (Displace): Add missing check on null actual.
12397 * exp_disp.ads, exp_disp.adb
12398 (Select_Expansion_Utilities): Removed.
12399 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
12400 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
12401 the interface requires a new parameter.
12402 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
12403 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
12404 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
12405 Done to remove package Select_Expansion_Utilities.
12406 (Make_DT): New implementation for statically allocated dispatch tables.
12407 (Make_Secondary_DT): Moved to the scope of Make_DT.
12408 (Register_Primitive): Code cleanup plus incoporate the use of the new
12409 function DT_Address_Attribute.
12410 (Expand_Interface_Thunk): The profile of this subprogram has been
12411 changed to return the Thunk_Id and the corresponding code.
12412 (Fill_DT_Entry): Removed. Its functionality is now provided by
12413 subprogram Register_Primitive.
12414 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
12415 subprogram Register_Primitive.
12416 (Register_Primitive): New subprogram that incorporates the previous
12417 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
12418 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
12419 was only required to call Make_DT_Access_Action, which is now removed.
12420 (Ada_Actions): Removed
12421 (Action_Is_Proc): Removed
12422 (Action_Nb_Arg): Removed
12423 Replace all the calls to Make_DT_Access_Action by direct calls to
12424 Make_Procedure_Call_Statement or Make_Function_Call.
12425 (Set_DTC_Entity_Value): New subprogram.
12426 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
12427 (Expand_Interface_Thunk): Add missing support for primitives that are
12428 functions with a controlling result (case in which there is no need
12429 to generate the thunk).
12431 * exp_atag.ads, exp_atag.adb
12432 (Build_DT): New subprogram that displaces the pointer to reference the
12433 base of the wrapper record.
12434 (Build_Typeinfo_Offset): Removed.
12435 (RTE_Tag_Node): Removed.
12436 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
12437 (Build_Get_RC_Offset): Removed.
12438 (Build_Inherit_Predefined_Prims): Removed.
12439 (Build_Inherit_TSD: Removed.
12440 (Build_New_TSD): Removed.
12441 (Build_Set_External_Tag): Removed.
12442 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
12443 (Build_Set_Prim_Op_Address): Add documentation.
12444 (Build_Set_TSD): Removed.
12446 * rtsfind.ads, rtsfind.adb
12447 (Load_Fail): If load fails and we are not in configurable run-time
12448 mode, then raise Unrecoverable_Error.
12449 (Text_IO_Kludge): Generate an error message if a run-time library is
12450 not available in a given run-time (ie. zfp run-time).
12451 (RTE_Record_Component): Add code to check that the component we search
12452 for is not found in two records in the given run-time package.
12453 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
12454 (RE_DT_Predef_Prims_Offset): New entity
12455 (RE_Static_Offset_To_Top): New entity
12456 (RE_HT_Link): New entity.
12457 (System_Address_Image): Addition of this run-time package.
12458 (RE_Address_Image): New entity.
12459 (RE_Abstract_Interface): Removed.
12460 (RE_Default_Prim_Op_Count): Removed.
12461 (RE_DT_Entry_Size): Removed.
12462 (RE_DT_Min_Prologue_Size): Removed.
12463 (RE_DT_Prologue_Size): Removed.
12464 (RE_Ifaces_Table_Ptr): Removed.
12465 (RE_Interface_Data_Ptr): Removed.
12466 (RE_Type_Specific_Data): Removed.
12467 (RE_Primary_DT): Removed.
12468 (RE_Register_Interface_Tag): Removed.
12469 (RE_Set_Offset_Index): Removed.
12470 (RE_Set_OSD): Removed.
12471 (RE_Set_SSD): Removed.
12472 (RE_Set_Signature): Removed.
12473 (RE_Set_Tagged_Kind): Removed.
12474 (RE_Address_Array): New entity.
12475 (RE_DT): New entity.
12476 (RE_Iface_Tag): New entity.
12477 (RE_Interfaces_Table): New entity.
12478 (RE_No_Dispatch_Table): New entity.
12479 (RE_NDT_Prims_Ptr): New entity.
12480 (RE_NDT_TSD): New entity.
12481 (RE_Num_Prims): New entity.
12482 (RE_Offset_To_Top_Function_Ptr): New entity.
12483 (RE_OSD_Table): New entity.
12484 (RE_OSD_Num_Prims): New entity.
12485 (RE_Predef_Prims): New entity
12486 (RE_Predef_Prims_Table_Ptr): New entity.
12487 (RE_Primary_DT): New entity.
12488 (RE_Signature): New entity.
12489 (RE_SSD): New entity.
12490 (RE_TSD): New entity.
12491 (RE_Type_Specific_Data): New entity.
12492 (RE_Tag_Kind): New entity.
12494 2007-06-06 Thomas Quinot <quinot@adacore.com>
12496 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
12497 C imported variable.
12498 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
12501 2007-06-06 Robert Dewar <dewar@adacore.com>
12503 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
12506 2007-06-06 Vincent Celier <celier@adacore.com>
12508 * a-tifiio.adb (Put, internal): For negative numbers, check that there
12509 is room for at least one digit and the minus sign.
12510 (Put.Put_Character): Never put a character outside of the range of
12513 2007-06-06 Olivier Hainque <hainque@adacore.com>
12514 Eric Botcazou <ebotcazou@adacore.com>
12516 * utils2.c (build_allocator): Provide the extra arguments to
12517 make_aligning_type for super-aligned objects allocated from the default
12518 pool. Leave enough room for a pointer before the aligning field, and
12519 store the system's allocator return value there.
12520 (build_call_alloc_dealloc): When releasing a super-aligned object,
12521 retrieve the system's allocator return value from where build_allocator
12522 has stored it, just ahead of the adjusted address we are passed.
12523 (build_call_raise): Handle properly the generation of line numbers when
12524 the node is marked No_Location.
12525 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
12526 by using DECL_UID on ties.
12527 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
12529 (build_call_raise): Handle converting exception into goto; support new
12531 (build_component_ref): Add new arg to build_call_raise.
12533 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12535 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
12536 "." in the case of nnn.xxx when nnn terminates with an underscore.
12537 Parse the remaining "#" or ":" in the case of nnn#.xxx#
12539 2007-06-06 Robert Dewar <dewar@adacore.com>
12541 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
12543 2007-06-06 Arnaud Charlet <charlet@adacore.com>
12544 Vincent Celier <celier@adacore.com>
12545 Robert Dewar <dewar@adacore.com>
12547 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
12549 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
12550 ((destructor)) for adafinal, even when switch -a is used.
12551 Do not issue pragma Linker_Destructor for adafinal when switch -a is
12553 (Gen_Object_Files_Options): Add formatting of Linker Options, when
12554 Output_Linker_Option_List is set. Suppress this formatting when
12555 Zero_Formatting is set.
12556 Add case for CLI_Target.
12557 (System_Restrictions_Used): New flag, used to avoid generating with of
12558 System_Restrictions and initialization of the data unless there is
12559 some use of System.Restrictions in the partition.
12560 (Check_System_Restrictions_Used): New procedure
12562 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
12563 since we only with this unit in the binder file if it is used elsewhere
12566 2007-06-06 Vincent Celier <celier@adacore.com>
12568 * bindusg.adb: Add line for @<response file>
12569 Add lines for new switches -R and -Z
12571 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
12572 hierarchy in the list of files of the closure when -R is used
12573 (Gnatbind): Accept arguments starting with '@' to indicate response
12574 files and take the arguments from the response files.
12575 If List_Closure is set, display the referenced files
12577 2007-06-06 Javier Miranda <miranda@adacore.com>
12578 Robert Dewar <dewar@adacore.com>
12579 Ed Schonberg <schonberg@adacore.com>
12581 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
12582 which the address-clause is applied to in-mode actuals (allowed by
12584 (Apply_Discriminant_Check): Do not generate a check if the type is
12585 constrained by a current instance.
12586 (Activate_Division_Check): New procedure
12587 (Activate_Overflow_Check): New procedure
12588 (Activate_Range_Check): New procedure
12589 Call these new Activate procedures instead of setting flags directly
12590 (Apply_Array_Size_Check): Removed, no longer needed.
12591 Code clean up: remove obsolete code related to GCC 2.
12592 (Get_E_Length): Protect against bomb in case scope is standard
12593 (Selected_Range_Checks): If the node to be checked is a conversion to
12594 an unconstrained array type, and the expression is a slice, use the
12595 bounds of the slice to construct the required constraint checks.
12596 Improve NOT NULL error messages
12597 (Apply_Constraint_Check): If the context is a null-excluding access
12598 type, diagnose properly the literal null.
12600 2007-06-06 Pascal Obry <obry@adacore.com>
12602 * clean.adb (Clean_Archive): Use untouched casing for the archive name
12603 and the corresponding .deps file.
12604 (Clean_Interface_Copy_Directory): Use untouched casing for the library
12605 src directory. Minor code-clean-up. Use untouched casing for files
12606 read into the library src dir.
12607 (Clean_Library_Directory): Idem.
12608 (Parse_Cmd_Line): Accept new switch -aP
12610 2007-06-06 Javier Miranda <miranda@adacore.com>
12611 Ed Schonberg <schonberg@adacore.com>
12612 Robert Dewar <dewar@adacore.com>
12613 Eric Botcazou <ebotcazou@adacore.com>
12614 Arnaud Charlet <charlet@adacore.com>
12616 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
12617 applicable to types that have the With_Type flag set. Returns the
12618 non-limited view of the type, if available, otherwise the type itself.
12619 For class-wide types, there is no direct link in the tree, so we have
12620 to retrieve the class-wide type of the non-limited view of the Etype.
12621 New attributes Static_Initialization and Static_Elaboration_Desired.
12622 Remove the pragma Thread_Body, and the associated flag
12623 Is_Thread_Body in entities, and all related code.
12624 (Suppress_Value_Tracking_On_Call): New flag
12625 E_Exception has Esize and Alignment fields
12626 (Universal_Aliasing): New function.
12627 (Set_Universal_Aliasing): New procedure.
12628 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
12629 (Check_Nested_Access): New procedure.
12630 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
12631 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
12632 (Related_Interface): New attribute. Present in dispatch table pointer
12633 components of records. Set to point to the entity of the corresponding
12635 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
12636 (Original_Access_Type): Remove, not needed.
12637 (Root_Type): Handle properly subtypes of class-wide-types.
12640 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
12641 class-wide types visible through limited-with clauses.
12642 (Try_Primitive_Operation): When examining all primitive operations of a
12643 tagged type, do not consider subprograms labeled as hidden unless they
12644 belong to a private generic type with a tagged parent.
12645 (Try_Object_Operation): Extensive rewriting, to handle properly various
12646 overloading cases, when several ancestors may have class-wide operations
12647 that are possible candidates, and when the overloaded functions return
12648 array types and have defaulted parameters so that the call may be
12649 interpreted as an indexing.
12650 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
12651 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
12652 successive actuals before analyzing the call itself.
12653 (Try_Primitive_Operation): A primitive operation is compatible with the
12654 prefix if the prefix has a synchronized type and the type of the formal
12655 is its corresponding record, as can be the case when the primitive
12656 operation is declared outside of the body of the type.
12657 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
12658 perform homonym traversal, looking for class-wide operation matches
12659 (formerly done in statements of Try_Class_Wide_Operation). Matches on
12660 access parameters are now restricted to anonymous access types.
12661 (Mark_Allocator): An allocator with a discriminant association parent is
12663 (Try_One_Prefix_Interpretation): If the type of the object is
12664 incomplete, as can be happen when it is a limited view obtained through
12665 a limited_with_clause, the selected component is not part of a prefixed
12667 (Complete_Object_Operation): Diagnose properly an object that is not
12668 aliased when the corresponding controlling formal is an access
12670 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
12671 ambiguous calls in prefixed notation, where two primitives differ only
12672 in that the controlling argument of one is an access parameter.
12674 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
12675 whether a function that returns an unconstrained type can be inlined.
12676 (Process_Formals): Diagnose properly the illegal use of an incomplete
12677 type in the profile of an access_to_subprogram declaration.
12678 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
12679 operations are attached to the corresponding record.
12680 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
12681 When processing a primitive of a concurrent type which implements an
12682 interface change the type of all controlling formals to that of the
12683 corresponding record type.
12684 (Check_Synchronized_Overriding): Relax the conditional logic when trying
12685 to determine the tagged type to which a primitive belongs.
12686 (Check_Conventions): Capture condition to ignore a primitive operation
12687 (which is shared between the loop in Check_Conventions and the one in
12688 Check_Convention) in a new local function Skip_Check.
12689 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
12690 confusion with Check_Conventions' own Prim_Op local variable.
12691 (Create_Extra_Formals): Test for a tagged result type rather than a
12692 controlling result when determining whether to add a BIP_Alloc_Form
12693 formal and a BIP_Final_List formal to the function.
12694 (Check_Conformance); For parameters that are anonymous access types,
12695 subtype conformance requires that the not null and the constant
12696 indicators must match
12697 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
12698 to retrieve the appropriate type when processing a concurrent type
12699 declared within a generic. Minor comment reformatting. Change invocation
12700 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
12702 (Analyze_Subprogram_Body): If the return type of a function is an
12703 anonymous access to the limited view of a class-wide type, and the
12704 non-limited view of the type is available, update the type of the
12705 function so that code can be generated.
12706 (Process_Formals): In case of access-subtype itype whose designated
12707 type is also an itype (situation that happens now with access to
12708 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
12709 attribute to avoid backend problems.
12710 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
12711 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
12712 anonymous types' designated types are same before testing
12713 Subtypes_Statically_Match.
12714 (Create_Extra_Formals): Test for a named access parameter that is a
12715 controlling formal as an additional condition for adding an
12716 accessibility level formal. This can occur in the subp type created for
12717 dispatching calls in Expand_Dispatching_Call, and allows calling
12718 Create_Extra_Formals from that procedure rather than special-casing the
12719 extra formals there.
12720 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
12721 when the function has a controlling result.
12722 (Check_Returns): Add much more knowledge of the optimization of local
12723 raise statements to gotos, to retain proper warnings in this case.
12724 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
12725 nodes when looking for last statement.
12727 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
12728 class-wide types visible through limited with clauses.
12729 (Add_One_Interp): If the operands are anonymous access types, the
12730 predefined operator on universal_access is immediately visibles
12731 (Find_Unique_Type): Handle anonymous access to subprogram types just as
12732 other anonymous access types.
12733 (Disambiguate): Take into account CIL convention.
12734 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
12736 2007-06-06 Robert Dewar <dewar@adacore.com>
12738 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
12739 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
12740 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
12741 Fix lower bound of tables.
12744 * nlists.adb: Ditto.
12745 (Prev_Node, Next_Node): Change index type to Int so that it properly
12746 covers the range First_Node_Id - 1 up.
12748 2007-06-06 Javier Miranda <miranda@adacore.com>
12749 Ed Schonberg <schonberg@adacore.com>
12750 Bob Duff <duff@adacore.com>
12751 Hristian Kirtchev <kirtchev@adacore.com>
12753 * exp_aggr.ads, exp_aggr.adb:
12754 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
12755 in extension aggregates.
12756 (Flatten): Other conditions being met, an aggregate is static if the
12757 low bound given by component associations is different from the low
12758 bound of the base index type.
12759 (Packed_Array_Aggregate_Handled): If the component type is itself a
12760 packed array or record, the front-end must expand into assignments.
12761 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
12762 Init_Pr, instead of Ancestor_Is_Expression.
12763 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
12764 coextension chain root, either generate a list controller or use the
12765 already existing one.
12766 (Static_Array_Aggregate): New procedure to construct a positional
12767 aggregate that can be handled by the backend, when all bounds and
12768 components are compile-time known constants.
12769 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
12770 types covering interface types into assignments.
12771 (Replace_Type): move to Build_Record_Aggr_Code.
12772 (Expand_Record_Aggr_Code): if the target of the aggregate is an
12773 interface type, convert to the definite type of the aggregate itself,
12774 so that needed components are visible.
12775 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
12776 components and the context is an extended return statement do not
12777 create a transient block for it, to prevent premature finalization
12778 before the return is executed.
12779 (Gen_Assign): Do not generate a call to deep adjust routine if the
12780 component type is itself an array of controlled (sub)-components
12781 initialized with an inner aggregate.
12782 (Component_Check): New name for Static_Check. This name is now more
12783 appropriate, and documentation is added which was missing.
12784 (Component_Check): Add test for bit aligned component value
12785 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
12786 Tagged_Comps, name is more appropriate given added function below.
12787 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
12789 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12790 Javier Miranda <miranda@adacore.com>
12791 Robert Dewar <dewar@adacore.com>
12793 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
12794 Terminated: Add unchecked type conversion from System.Address to
12795 System.Tasking.Task_Id when calling the predefined primitive
12797 Disable new Ada 05 accessibility check for JVM.NET targets, which
12798 cannot be implemented in a practical way.
12799 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
12800 the sources always references the tag of the actual object. Therefore,
12801 if 'Tag is applied in the sources to class-wide interface objects we
12802 generate code that displaces "this" to reference the base of the object.
12803 (Expand_N_Attribute_Reference, case Size): Return specified size if
12804 known to front end.
12805 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
12806 has code that displaces the pointer of the object to manage interface
12807 types. However this code must not be executed when the prefix is a
12808 subprogram. This bug caused the wrong expansion of the internally
12809 generated assignment that fills the dispatch table when the primitive
12810 is a function returning a class-wide interface type.
12811 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
12812 Set_Attribute_Name for Name_Unaligned_Valid.
12814 2007-06-06 Ed Schonberg <schonberg@adacore.com>
12815 Gary Dismukes <dismukes@adacore.com>
12817 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
12818 If the initialization is the equivalent aggregate of the initialization
12819 procedure of the type, do not remove it.
12820 (Expand_N_Attribute_Definition_Clause): Exclude access variables
12821 initialized to null from having their expression reset to empty and
12822 note this exception in the comment.
12824 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
12825 Robert Dewar <dewar@adacore.com>
12826 Ed Schonberg <schonberg@adacore.com>
12827 Gary Dismukes <dismukes@adacore.com>
12829 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
12830 Add "with" and "use" clauses for Sem_Attr.
12831 (Expand_Current_Value): Do not replace occurences of attribute
12832 references where the prefix must be a simple name.
12834 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
12835 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
12836 Attribute_Requires_Simple_Name_Prefix.
12837 (Name_Modifies_Prefix): Body of new function.
12838 (Requires_Simple_Name_Prefix): Body of new function.
12839 (Resolve_Attribute, case Access): Improve error message for case of
12840 mismatched conventions.
12841 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
12843 (Analyze_Attribute, case 'Access): If the type of the prefix is a
12844 constrained subtype for a nominal unconstrained type, use its base type
12845 to check for conformance with the context.
12846 (Resolve_Attribute): Remove test of the access type being associated
12847 with a return statement from condition for performing accessibility
12848 checks on access attributes, since this case is now captured by
12849 Is_Local_Anonymous_Access.
12850 (Analyze_Access_Attribute): Set Address_Taken on entity
12851 (Analyze_Attribute, case Address): Set Address_Taken on entity
12852 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
12853 validating an access attribute whose prefix is a current instance.
12854 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
12855 applied to dispatching operations, if freezing is required then we set
12856 the attribute Has_Delayed_Freeze in the prefix's entity.
12857 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
12858 current scope if access of local subprogram taken
12859 (Analyze_Access_Attribute): Check legality of self-reference even if the
12860 expression comes from source, as when a single component association in
12861 an aggregate has a box association.
12862 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
12863 the prefix if it is a protected operation and the attribute is
12864 Unrestricted_Access.
12865 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
12866 reference to the base type of the context, to force a constraint check
12867 when the context is an access subtype with an explicit constraint.
12868 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
12869 node is rewritten as an interface conversion. leave unanalyzed after
12870 resolution, to ensure that type checking against the context will take
12873 2007-06-06 Ed Schonberg <schonberg@adacore.com>
12874 Javier Miranda <miranda@adacore.com>
12875 Robert Dewar <dewar@adacore.com>
12877 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
12878 wrapper when the full view of the controlling type of an inherited
12879 function that dispatches on result implements interfaces.
12880 (Expand_N_Object_Declaration): In cases where the type of the
12881 declaration is anonymous access, create finalization list for it.
12882 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
12883 if the object has no explicit initialization, to match description of
12884 functionality of pragam Persistent_BSS.
12885 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
12886 new function to build static aggregates, to replace initialization call
12887 when static initialization is desired.
12888 (Freeze_Type): Generate a list controller for an access type whenever
12889 its designated type has controlled anonymous access discriminants.
12890 (Build_Equivalent_Aggregate): New procedure to compute a static
12891 aggregate to be used as default initialization for composite types,
12892 instead of a generating a call to the initialization procedure for the
12894 (Build_Initialization_Call): When available, replace a call to the
12895 initialization procedure with a copy of the equivalent static aggregate
12897 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
12898 declarations for objects of a class-wide interface type, rather than
12899 just identifiers, to prevent visibility problems.
12900 (Expand_N_Object_Declaration): When expanding the declaration for an
12901 object of a class-wide interface type, preserve the homonym chain of
12902 the original entity before exchanging it with that of the generated
12903 renaming declaration.
12904 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
12905 active, because there is no way to handle the exception.
12906 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
12907 to do a minimum decoration of the Access_Disp_Table list.
12908 (Expand_Record_Controller): Avoid the addition of the controller between
12909 the component containing the tag of a secondary dispatch table and its
12910 adjacent component that stores the offset to the base of the object.
12911 This latter component is only generated when the parent type has
12912 discriminants ---documented in Add_Interface_Tag_Components).
12913 (Apply_Array_Size_Check): Removed, no longer needed.
12914 (Expand_N_Full_Type_Declaration): If the type has anonymous access
12915 components, create a Master_Entity for it only if it contains tasks.
12916 (Build_Init_Procedure): Suppress the tag assignment compiling under
12918 (Freeze_Record_Type): Remove code associated with creation of dispatch
12920 (Init_Secondary_Tags): Update type of actuals when generating calls to
12921 Ada.Tags.Set_Offset_To_Top
12922 (Stream_Operation_OK): Disable use of streams compiling under no
12924 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
12925 if Has_Init_Expression set.
12926 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
12927 Register_Primitive, which provides the same functionality.
12928 (Requires_Init_Proc): Return false in case of interface types.
12929 (Add_Secondary_Tables): Use the new attribute Related_Interface to
12931 (Predefined_Primitive_Freeze): Do not assume that an internal entity
12932 is always associated with a predefined primitive because the internal
12933 entities associated with interface types are not predefined primitives.
12934 Therefore, the call to Is_Internal is replaced by a call to the
12935 function Is_Predefined_Dispatching_Operation.
12936 (Make_Eq_If): When generating the list of comparisons for the
12937 components of a given variant, omit the controller component that is
12938 present if the variant has controlled components.
12940 2007-06-06 Javier Miranda <miranda@adacore.com>
12941 Hristian Kirtchev <kirtchev@adacore.com>
12942 Bob Duff <duff@adacore.com>
12944 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
12945 handle the creation of finalization lists and calls for nested
12946 coextensions when the root of the chains is part of a return statement.
12947 (Inside_A_Return_Statement): New function inside Complete_Coextension_
12949 (Expand_Record_Equality): Skip components that are interface types.
12950 (Displace_Allocator_Pointer): Add missing support for interface subtypes
12951 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
12952 with Rewrite_Coextension. Change the condition for detecting coextension
12954 (Is_Local_Access_Discriminant): Removed.
12955 (Rewrite_Coextension): New routine which rewrites a static coextension
12956 as a temporary and uses its unrestricted access in the construction of
12958 (Complete_Coextension_Finalization): New routine. Generate finalization
12959 attachment calls to all delayed coextensions.
12960 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
12961 the allocator is not a coextension itself and has delayed coextensions.
12962 If the current allocator is controlled, but also a coextension, delay
12963 the generation of the finalization attachment call.
12964 Rename local variable "Node" to "Nod" in order to avoid confusion with
12966 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
12967 limited types that are not inherently limited. Such an allocator is
12968 illegal, but is generated by the expander for a return statement, to
12969 copy the result onto the secondary stack. This is the only case where a
12970 limited object can be copied. Generate code to displace the pointer
12971 to the object if the qualified expression is a class-wide interface
12972 object. Such displacement was missing and hence the copy of the object
12974 (Apply_Accessibility_Check): Handle allocated objects initialized in
12976 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
12977 and Expand_Allocator_Expression. Allocating class-wide interface objects
12978 this routine displaces the pointer to the allocated object to reference
12979 the component referencing the corresponding secondary dispatch table.
12980 Expand_Allocator_Expression): Add missing support to allocate class-wide
12981 interface objects initialized with a qualified expression.
12982 (Get_Allocator_Final_List): Test for an anonymous access type that is a
12983 function result type, and use the finalization list associated with the
12984 function scope in that case (such an anonymous type should not be
12985 treated like an access parameter's type).
12987 2007-06-06 Ed Schonberg <schonberg@adacore.com>
12988 Gary Dismukes <dismukes@adacore.com>
12989 Javier Miranda <miranda@adacore.com>
12991 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
12992 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
12993 required exception handler.
12994 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
12995 properly the case of a function whose return type is a limited
12996 class-wide interface type. Modify the code of the accessibility
12997 check to handle class-wide interface objects. In this case we need to
12998 displace "this" to reference the primary dispatch table to get access
12999 to the TSD of the object (to evaluate its accessibility level).
13000 (Expand_N_Extended_Return_Statement): Test for a tagged result type
13001 rather than a controlling result as one of the conditions for
13002 generating tests of the implicit BIP_Alloc_Form formal. The
13003 initialization assignment is also handled according to whether the
13004 result is tagged instead of controlling.
13005 In the case where the init assignment is inserted in the "then" part of
13006 the allocation conditional, rewrite the target to be a dereference of
13007 the implicit BIP_Object_Access formal.
13008 If the returned value is unconstrained and created on the secondary
13009 stack, mark the enclosing block and function so that the secondary
13010 stack is not reclaimed on return.
13011 Treat returns from functions with controlling results similarly to
13012 returns from functions with unconstrained result subtypes.
13013 If the object returned is unconstrained, and an allocator must be
13014 created for it, analyze the allocator once the block for the extended
13015 return is installed, to ensure that finalizable components
13016 of the expression use the proper finalization list. Guard the call to
13017 Move_Final_List with a check that there is something to finalize.
13018 (Make_Tag_Ctrl_Assignment): Use "old" handling
13019 of controlled type assignment for virtual machines, since new code uses
13020 unsupported features (such as direct access to bytes in memory).
13022 2007-06-06 Gary Dismukes <dismukes@adacore.com>
13023 Ed Schonberg <schonberg@adacore.com>
13025 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
13026 accessibility actual, check for the case of an aliased object that has
13027 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
13028 we fall into processing for the attribute rather than the name of the
13030 (Expand_Inline_Call): If an actual is a literal, and the corresponding
13031 formal has its address taken in the body, create a temporary to capture
13032 value. If the return type is a limited interface, do not treat the
13033 return value as Controlled.
13034 (Is_In_Place_Function): If the return type is a limited interface,
13035 treat as returning in place. The actual returned object may not always
13036 be limited, but the caller has to assume that it is returned in place.
13037 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
13038 context of an allocator, use the correct finalization chain (that is,
13039 the chain belonging to the access type, rather than the chain belonging
13040 to the current scope).
13041 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
13042 result type rather than a controlling result as a precondition for
13043 adding an allocation form actual to a build-in-place call.
13044 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
13045 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
13046 primitive in the dispatch tables. This work is now done by Make_DT when
13047 the type is frozen.
13048 (Register_Predefined_DT_Entry): Removed.
13049 (Add_Return): If end label is not present, use sloc of last statement
13050 for generated return statement in procedure, for better gdb behavior
13052 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
13053 object address nodes to ensure proper processing by routines like
13055 (Expand_Call): Fix generation of validity check for parameter
13056 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
13057 the allocation form parameter if the result subtype is constrained,
13058 except when the function has a controlling result.
13059 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
13060 rather than Is_Controlled and Has_Controlled_Component, since we want to
13061 include class-wide result types in this treatment. Also test for a
13062 controlling result, since that also requires passing a finalization
13064 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
13065 even when the result subtype is constrained, to handle calls involving
13066 controlling results.
13067 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
13068 is now called even when the result subtype is constrained, to handle
13069 calls involving controlling results.
13070 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
13071 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
13072 now performs the test).
13073 (Make_Build_In_Place_Call_In_Object_Declaration):
13074 Add_Alloc_Form_Actual_* is now called even when the result subtype is
13075 constrained, to handle calls involving controlling results.
13076 (Add_Return): Accomodate rewritten pattern from local raise to goto
13077 transformation, so that we still recognize an transfer statement
13078 and do the right thing here in that case.
13079 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
13080 and end of subprogram code.
13081 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
13082 support for primitives that are functions (without formals) with a
13083 controlling result.
13084 (Inherited_From_Formal): If the actual subtype has not generic parent
13085 type, it is not an actual for a formal derived type, and there is no
13086 operation to inherit from the formal.
13088 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13089 Thomas Quinot <quinot@adacore.com>
13091 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
13092 inserted cleanup code appropriately for GDB use.
13093 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
13094 exception handler for Deep_Adjust or Deep_Finalize.
13095 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
13096 Raise_From_Controlled_Operation is available, use a call to that
13097 subprogram instead of a plain "raise Program_Error" node to raise
13098 Program_Error if an exception is propagated from an Adjust or Finalize
13100 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
13101 appears in the optional statement list of a triggering alternative, the
13102 scope actions can be inserted directly there, and not in the list that
13103 includes the asynchronous select itself.
13105 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13106 Robert Dewar <dewar@adacore.com>
13107 Hristian Kirtchev <kirtchev@adacore.com>
13109 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
13110 generated exception handler appropriately when debugging generated code.
13111 Deal properly with No_Exception_Propagation restriction mode.
13112 (Expand_N_Abort_Statement): Add an unchecked type conversion from
13113 System.Address to System.Tasking.Task_Id when processing the result of
13114 the predefined primitive _disp_get_task_id.
13115 (Expand_N_Asynchronous_Select): Clarify comment.
13116 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
13117 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
13118 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
13119 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
13120 privals and for generated call to Complete_Entry_Body, for better gdb
13122 (Copy_Result_Type): Utility to construct a parameter and result profile
13123 for protected functions whose return type is an anonymous access to
13125 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
13127 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
13128 point when the local-raise-to-goto transformation has taken place.
13130 2007-06-06 Javier Miranda <miranda@adacore.com>
13131 Nicolas Setton <setton@adacore.com>
13133 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
13134 functionality when the backend is generating code.
13135 Otherwise any serious error
13136 reported by the backend calling the frontend routine Error_Msg
13137 changes the Compilation_Mode to Check_Semantics, disables the
13138 functionality of this routine and causes the generation of
13139 spureous additional errors.
13141 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
13142 debugging information now generated by the compiler for fat-pointer
13144 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
13146 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
13148 2007-06-06 Thomas Quinot <quinot@adacore.com>
13150 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
13151 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
13152 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
13153 For a remote call to a function with a classwide return type, apply an
13154 E.4(18) check to the returned value.
13155 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
13156 stream attributes of the designated type of an RACW, as they are not
13157 dispatching primitive operations.
13159 2007-06-06 Geert Bosch <bosch@adacore.com>
13161 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
13163 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
13165 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
13166 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
13168 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
13170 2007-06-06 Javier Miranda <miranda@adacore.com>
13172 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
13173 attribute compiling package Ada.Tags under No_Run_Time_Mode.
13175 2007-06-06 Javier Miranda <miranda@adacore.com>
13177 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
13178 deallocation of class-wide interface objects.
13179 (Expand_Dispatching_Constructor_Call): Take into account that if the
13180 result of the dispatching constructor is an interface type, the
13181 function returns a class-wide interface type; otherwise the returned
13182 object would be actual. The frontend previously accepted returning
13183 interface types because Expand_Interface_Actuals silently performed
13184 the management of the returned type "as if" it were a class-wide
13186 (Expand_Dispatching_Constructor_Call): Replace call to
13187 Make_DT_Access_Action by direct call to Make_Function_Call.
13189 2007-06-06 Robert Dewar <dewar@adacore.com>
13190 Ed Schonberg <schonberg@adacore.com>
13192 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
13193 compute masking constant, since we now set Esize properly to the
13195 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
13196 to match the alignment.
13197 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
13198 packed arrays of 8 bits or less.
13200 * freeze.adb (Freeze_Entity): When freezing the formals of a
13201 subprogram, freeze the designated type of a parameter of an access type
13202 only if it is an access parameter.
13203 Increase size of C convention enumeration object
13204 (Freeze_Entity, array type case): Make sure Esize value is properly
13205 adjusted for the alignment if it is known.
13206 (Freeze_Entity, array type case): When checking bit packed arrays for
13207 the size being incorrect, check RM_Size, not Esize.
13208 (Freeze_Record_Type): Check for bad discriminated record convention
13209 (In_Exp_Body): Return true if the body is generated for a subprogram
13210 renaming, either an attribute renaming or a renaming as body.
13211 (Check_Itype): If the designated type of an anonymous access component
13212 is a non-protected subprogram type, indicate that it is frozen, to
13213 prevent out-of-scope freeze node at some subsequent call.
13214 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
13215 only if the subprogram is neither imported nor exported, as well as the
13216 NCA descriptor class if the subprogram is exported.
13218 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13219 Arnaud Charlet <charlet@adacore.com>
13220 Robert Dewar <dewar@adacore.com>
13221 Gary Dismukes <dismukes@adacore.com>
13223 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
13224 default initialization on an imported object, when there is no
13225 initialization call generated for it.
13226 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
13229 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
13230 Static_Elaboration_Desired.
13231 Remove pragma Thread_Body.
13232 Implement a new pragma No_Body
13233 Removes the Explicit_Overriding pragma
13234 Remove Optional_Overriding pragma
13235 (Prag): Deal with Universal_Aliasing.
13236 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
13237 Pragma_CIL_Constructor): New names.
13239 * sem_cat.adb (Validate_Object_Declaration): An initialization that
13240 uses the equivalent aggregate of a type must be treated as an implicit
13242 (Get_Categorization): Check a unit for pragma Preelaborate only if it
13243 has none of the other categories.
13244 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
13245 to apply Import to an object renaming declaration.
13247 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
13248 from a C++ class should be declared as limited and that it will be
13249 considererd limited.
13250 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
13251 should be declared as limited and that it will be considererd limited.
13252 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
13253 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
13254 (Analyze_Pragma): Deal with Universal_Aliasing.
13255 (Sig_Flags): Likewise.
13256 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
13257 (Overflow_Checks_Unsuppressed): New flag.
13258 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
13259 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
13260 case of JVM or .NET targets, and compiling user code.
13261 Add debugging convenience routine rv
13263 2007-06-06 Robert Dewar <dewar@adacore.com>
13265 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
13266 are interface type.
13267 (Build_Elementary_Input_Call): For floating-point use right type in the
13268 absence of strange size or stream size clauses.
13269 (Build_Elementary_Write_Call): Same fix
13270 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
13271 set to value that does not match base type size.
13273 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13275 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
13276 object of a limited type can be initialized with a call to a function
13277 that returns in place. If the limited type has unknown discriminants,
13278 and the underlying type is a constrained composite type, build an actual
13279 subtype from the function call, as is done for private types.
13280 (Side_Effect_Free): An expression that is the renaming of an object or
13281 whose prefix is the renaming of a object, is not side-effect free
13282 because it may be assigned through the renaming and its value must be
13283 captured in a temporary.
13284 (Has_Controlled_Coextensions): New routine.
13285 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
13286 as is done for other limited types.
13287 (Non_Limited_Designated_Type): new predicate.
13288 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
13290 Remove all handling of with_type clauses.
13292 * par-ch10.adb: Remove all handling of with_type clauses.
13294 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
13295 checksum if the main source could not be parsed.
13296 (Loat_Unit): When processing a child unit, determine properly whether
13297 the parent unit is a renaming when the parent is itself a child unit.
13298 Remove handling of with_type clauses.
13300 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
13301 (Set_Is_Static_Coextension): New procedure.
13302 (Has_Local_Raise): New function
13303 (Set_Has_Local_Raise): New procedure
13304 (Renaming_Exception): New field
13305 (Has_Init_Expression): New flag
13306 (Delay_Finalize_Attach): Remove because flag is obsolete.
13307 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
13308 Remove all handling of with_type clauses.
13309 (Exception_Junk): Can now be set in N_Block_Statement
13311 2007-06-06 Vincent Celier <celier@adacore.com>
13312 Robert Dewar <dewar@adacore.com>
13314 * frontend.adb (Frontend): Return immediately if the main source could
13315 not be parsed, because of preprocessing errors.
13317 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
13318 (Gnat1drv): Exit with errors if the main source could not be parsed,
13319 because of preprocessing errors.
13320 (Check_Rep_Info): New procedure
13322 2007-06-06 Robert Dewar <dewar@adacore.com>
13324 * g-hesorg.ads, g-heasor.ads,
13325 g-busorg.ads, g-bubsor.ads: Update documentation
13326 GNAT.Heap/Bubble_Sort_G is now pure
13328 2007-06-06 Robert Dewar <dewar@adacore.com>
13330 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
13332 2007-06-06 Robert Dewar <dewar@adacore.com>
13333 Ed Schonberg <schonberg@adacore.com>
13335 * g-comlin.ads, g-comlin.adb:
13336 Add new warning for renaming of function return objects
13338 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
13339 (Tree_Read): Use size of object instead of type'object_size, since the
13340 latter is incorrect for packed array types.
13341 (Tree_Write): Same fix
13343 * opt.ads: Add new warning for renaming of function return objects
13344 (Generating_Code): New boolean variable used to indicate that the
13345 frontend as finished its work and has called the backend to process
13346 the tree and generate the object file.
13347 (GCC_Version): Is now private
13348 (Static_Dispatch_Tables): New constant declaration.
13349 (Overflow_Checks_Unsuppressed): New flag.
13350 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
13351 (List_Closure): New flag for gnatbind (-R)
13352 Zero_Formatting: New flag for gnatbind (-Z)
13353 (Special_Exception_Package_Used): New flag.
13354 (Warn_On_Unrepped_Components): New flag.
13356 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
13357 unit is a compilation unit, rather than relying on its scope, so that
13358 Standard can be renamed.
13359 (Analyze_Object_Renaming): Add new warning for renaming of function
13361 Also reject attempt to rename function return object in Ada 83 mode.
13362 (Attribute_Renaming): In case of tagged types, add the body of the
13363 generated function to the freezing actions of the type.
13364 (Find_Type): A protected type is visible right after the reserved word
13365 "is" is encountered in its type declaration. Set the entity and type
13366 rather than emitting an error message.
13367 (New_Scope): Properly propagate Discard_Names to inner scopes
13368 (Check_Nested_Access): New procedure.
13369 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
13370 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
13372 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
13373 Add new warning for renaming of function return objects
13374 (Check_References): Suppress warnings for objects whose type or
13375 base type has Warnings suppressed.
13376 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
13377 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
13379 2007-06-06 Vincent Celier <celier@adacore.com>
13380 Emmanuel Briot <briot@adacore.com>
13381 Olivier Hainque <hainque@adacore.com>
13383 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
13384 absolute value of Header.Block_Size when displaying the freed physical
13386 (Allocate): Compute Storage_Address using Integer_Address, not
13387 Storage_Offset, because the range of Storage_Offset may not be large
13389 (Configure): New parameter Low_Level_Traces
13390 (Allocate, Deallocation, Free_Physically): Added low-level traces
13391 (Configure): new parameter Errors_To_Stdout.
13392 (Output_File): new subprogram
13393 (Deallocate, Dereference): Send error messages to the proper stream
13394 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
13395 documented. Previous code would send it to the current output file
13396 defined in GNAT.IO, which might not be stdout
13397 (Is_Valid): Adjust comment to mention that a positive reply means that
13398 Header_Of may be used to retrieve the allocation header associated with
13399 the subprogram Storage address argument. Return False early if this
13400 address argument is misaligned.
13402 2007-06-06 Vincent Celier <celier@adacore.com>
13404 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
13406 (ASIS_Main): New global variable
13407 (Get_Closure): New procedure
13408 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
13409 check, metric or pretty. Call Get_Closure in this case.
13410 (Check_Files): For GNAT LIST, check all sources of all projects when
13411 All_Projects is True.
13412 (GNATCmd): Accept -U for GNAT LIST
13414 2007-06-06 Vincent Celier <celier@adacore.com>
13416 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
13418 Correct error message when invocation of the linker fails
13419 Add explicit size clause for the C imported variables
13420 Object_List_File_Supported and Using_GNU_Linker to emphasize that
13421 we expect char size.
13422 Read target parameters earlier, since this is needed to set
13423 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
13426 2007-06-06 Vincent Celier <celier@adacore.com>
13429 Add 3 spaces before the default project directory when displaying
13430 the project search path.
13431 Add new command line switch '-l' to display license information.
13433 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
13435 * gmem.c: Add support for timestamps on memory operations.
13437 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
13438 operations (not used currently, just foundation for future
13439 enhancements). Add possibility to perform full dump of gmem.out file.
13440 (Print_Back_Traces): Declare accesses to root arrays constants since
13441 they aren't modified.
13442 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
13444 2007-06-06 Vincent Celier <celier@adacore.com>
13446 * gnatsym.adb: Update Copyright notice
13447 (Parse_Cmd_Line): Accept new switch -D
13448 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
13451 * prj.ads (Policy): New policy Direct
13452 (Yes_No_Unknown): New enumeration type
13453 (Project_Data): New component Libgnarl_Needed
13455 * prj-nmsc.adb (Check_For_Source): When recording a source file make
13456 use the untouched pathname casing.
13457 (Get_Directories): Ensure that the Display_Exec_Directory is using the
13458 proper casing on non case-sensitive platforms like Windows.
13459 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
13460 on all platforms, as it is not possible to know which one is allowed
13461 before processing the project files.
13462 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
13463 specified when symbol policy is Direct. Check that when there is a
13464 symbol file defined (either by default or with attribute
13465 Library_Symbol_File) it is not the same as the reference symbol file.
13466 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
13467 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
13468 extending projects.
13469 (Record_Ada_Source): Record a source that has been locally removed in an
13472 * symbols.ads (Policy): New policy Direct
13474 * symbols-vms.adb (Initialize): Take new policy Direct in case
13477 2007-06-06 Vincent Celier <celier@adacore.com>
13479 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
13480 Correct obvious bug (return Dir; instead of return Directory;).
13481 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
13483 2007-06-06 Thomas Quinot <quinot@adacore.com>
13485 * g-pehage.adb (Produce): Open output files in Binary mode, so that
13486 they have UNIX line endings (LF only) even on Windows, and thus pass
13487 all GNAT style checks.
13489 2007-06-06 Emmanuel Briot <briot@adacore.com>
13491 * g-regpat.adb (Quote): Fix improper quoting of '.'
13493 2007-06-06 Thomas Quinot <quinot@adacore.com>
13495 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
13496 default, set False on a per-runtime basis.
13497 (Need_Netdb_Buffer): New constant.
13499 * g-socket.ads, g-socket.adb: Import new package
13500 GNAT.Sockets.Thin.Task_Safe_NetDB.
13501 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
13502 binding to obtain proper message.
13503 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
13504 Replace various occurrences of Arry (Arry'First)'Address with the
13505 equivalent Arry'Address (GNAT always follows implementation advice from
13507 (Get_Host_By_Address, Get_Host_By_Name,
13508 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
13509 instead, rely on platform-specific task safe netdb operations provided
13512 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
13513 parameter Process_Blocking_IO.
13514 (Host_Error_Messages): Add stub body.
13515 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
13516 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
13517 Safe_Getservbyport): Move functions into new child package
13519 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
13520 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
13521 (In_Addr): Add alignment clause.
13523 2007-06-06 Robert Dewar <dewar@adacore.com>
13525 * g-trasym.ads, g-traceb.ads: Update list of supported targets
13526 Add note about symbolic traceback
13528 2007-06-06 Pascal Obry <obry@adacore.com>
13530 * hostparm.ads (Normalized_CWD): Use the host directory separator
13531 instead of the hardcoded forward slash which is not the proper
13532 character on Windows for example.
13533 (Java_VM): Removed.
13535 2007-06-06 Vincent Celier <celier@adacore.com>
13536 Arnaud Charlet <charlet@adacore.com>
13538 * a-clrefi.adb, a-clrefi.ads: New files
13540 * impunit.adb: Add s-os_lib in the list of user visible units.
13541 (Non_Imp_File_Names_95): Add a-clrefi to this list
13542 Remove obsolete run-time entries.
13543 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
13544 "a-exetim" -- Ada.Execution_Time
13545 "a-extiti" -- Ada.Execution_Time.Timers
13547 * mlib-prj.ads, mlib-prj.adb
13548 (Build_Library): Use untouched object dir and library dir. At the
13549 same time makes sure that the checks are done using the canonical
13550 form. Removes hard-coded directory separator and use the proper host
13552 (Process_Project): Do not look in object directory to check if libgnarl
13553 is needed for a library, if there is no object directory.
13554 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
13556 (Build_Library): When invoking gnatbind, use a response file if the
13557 total size of the arguments is too large.
13559 * Makefile.rtl: (g-sttsne): New object file.
13560 Add entry for a-clrefi, s-utf_32, System.Exceptions
13562 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
13563 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
13564 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
13565 Change g-string to s-string, g-os_lib to s-os_lib
13566 Change all g-utf_32 references to s-utf_32
13568 2007-06-06 Tristan Gingold <gingold@adacore.com>
13569 Olivier Hainque <hainque@adacore.com>
13571 * init.c: Do not adjust IP of an imported VMS exception of ia64.
13572 LIB$STOP is called to raise an exception and the IP of the exception
13573 is the instruction right after the call.
13574 (__gnat_adjust_context_for_raise, AIX): Implement.
13575 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
13576 adjust_context_for_raise before Raise_From_Signal_Hanler.
13577 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
13578 siginfo is passed to the handler, necessary to let the zcx propagation
13579 engine unwind past it.
13581 2007-06-06 Olivier Hainque <hainque@adacore.com>
13583 * initialize.c (__gnat_initialize for vxworks): Update documentation
13584 on the ZCX support, using different sets of crtstuff objects than with
13587 2007-06-06 Robert Dewar <dewar@adacore.com>
13589 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
13591 (Layout_Type): Fix recomputation of size from alignment.
13593 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13594 Javier Miranda <miranda@adacore.com>
13596 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
13597 association in an instance.
13598 (Copy_Generic_Node): If the node is a string literal, no need to copy
13600 (Is_Generic_Formal): For a formal subprogram, the declaration is the
13601 grandparent of the entity.
13602 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
13603 to simplify handling of formal interfaces that derive from other formal
13605 (Instantiate_Subprogram_Body): The defining unit name of the body of
13606 the instance should be a defining identifier.
13607 (Install_Formal_Packages): make global to the package, for use in
13608 instantiations of child units.
13609 (Analyze_Package_Instantiation): Do not attempt to set information on an
13610 enclosing master of an entry when expansion is disabled.
13611 (Instantiate_Type): If the actual is a tagged synchronized type and the
13612 generic ancestor is an interface, create a generic actual for the
13613 corresponding record.
13614 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
13615 declaration, to ensure that the interface list is processed correctly.
13616 (Inline_Instance_Body): If enclosing scope is an instance body, remove
13617 its entities from visibiility as well.
13618 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
13619 given with a named association, analyze the expression only, not the
13620 discriminant association itself.
13621 (Reset_Entity): If the analysis of a selected component is transformed
13622 into an expanded name in the prefix of a call with parameters, do not
13623 transform the original node into an expanded name, to prevent visibility
13624 errors in the case of nested generics.
13625 (Check_Private_View): For an array type, check whether the index types
13626 may need exchanging.
13628 2007-06-06 Arnaud Charlet <charlet@adacore.com>
13629 Vincent Celier <celier@adacore.com>
13631 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
13632 since both are separated.
13633 Add support for imported CIL packages.
13634 Add further special handling of "value_type" for CIL.
13635 Add special handling of pragma Import for CIL.
13637 * make.ads, make.adb: When switch -eS is used, direct all outputs to
13638 standard output instead of standard error, except errors.
13639 (Absolute_Path): Use untouched casing for the parent directory.
13640 (Add_Library_Search_Dir): Use the untouched directory name.
13641 (Add_Source_Search_Dir): Idem.
13642 (Change_To_Object_Directory): Update output to use proper casing.
13643 (Create_Binder_Mapping_File): Use the untouched filename to set
13645 (Gnatmake): Use untouched library and executable directory names.
13646 (Insert_Project_Sources): Use untouched filename for spec and body.
13647 (Is_In_Object_Directory): Use untouched object directory.
13648 (Mark_Directory): Idem.
13649 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
13650 contains the non-canonical filename in all cases.
13651 (Change_To_Object_Directory): In verbose mode, display the name of the
13652 object directory we're changing to.
13653 (Compile_Sources): Make sure, when a project file is used, to compile
13654 the body of the unit, when there is one, even when only the spec is
13655 recorded in an ALI file.
13656 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
13658 (Report_Compilation_Failed): New procedure
13659 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
13660 procedures moved from the spec to the body.
13661 (Extract_Failure): Removed, not used
13662 Replace explicit raises of exception Bind_Failed and Link_Failed with
13663 calls to Make_Failed with the proper message.
13664 Replace explicit raises of exception Compilation_Failed with calls to
13665 procedure Report_Compilation_Failed.
13666 (Initialize): Create mapping files unconditionally when using project
13669 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
13670 Pragma_CIL_Constructor): New names.
13672 * targparm.ads, targparm.adb
13673 (Compiler_System_Version): Removed, no longer used.
13674 (Get_Target_Parameters): Relax checks on system.ads validity. Add
13675 handling of two new system flags: JVM and CLI.
13677 2007-06-06 Jose Ruiz <ruiz@adacore.com>
13678 Arnaud Charlet <charlet@adacore.com>
13680 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
13681 time, use the default s-interr body that provides interrupt support
13683 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
13684 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
13685 g-soccon.ads, and s-taprop.adb for the marte run time.
13686 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
13687 timers are supported on marte.
13688 (EH_MECHANISM for marte): Do not use ZCX.
13689 (THREADSLIB for marte): Use -lmarte.
13690 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
13691 Add mlib-tgt-specific.o to gnatmake objects
13692 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
13693 longer of MLib.Tgt.
13694 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
13695 6, either kernel or rtp, use a specialized version of s-osinte.ads.
13697 2007-06-06 Pascal Obry <obry@adacore.com>
13699 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
13701 2007-06-06 Vincent Celier <celier@adacore.com>
13703 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
13704 separator, use instead the proper host directory separator.
13705 (Copy_ALI_Files): Make sure that an already existing ALI file in the
13706 ALI copy dir is writable, before doing the copy.
13708 * mlib-utl.ads, mlib-utl.adb:
13709 (Gcc): If length of command line is too long, put the list of object
13710 files in a response file, if this is supported by the platform.
13711 (Ar): If invocation of the archive builder is allowed to be done in
13712 chunks and building it in one shot would go above an OS dependent
13713 limit on the number of characters on the command line, build the archive
13716 2007-06-06 Vincent Celier <celier@adacore.com>
13718 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
13719 of specified object file is not equal to base name of source.
13721 2007-06-06 Javier Miranda <miranda@adacore.com>
13722 Hristian Kirtchev <kirtchev@adacore.com>
13723 Ed Schonberg <schonberg@adacore.com>
13725 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
13726 the full type declaration.
13727 (Analyze_Component_Declaration): Add local variable E to capture the
13728 initialization expression of the declaration. Replace the occurences of
13729 Expression (N) with E.
13730 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
13731 limited interface object with a function call.
13732 (Array_Type_Declaration): If the declaration lacks subtype marks for
13733 indices, create a simple index list to prevent cascaded errors.
13734 (Is_Null_Extension): Ignore internal components created for secondary
13735 tags when checking whether a record extension is a null extension.
13736 (Check_Abstract_Interfaces): Add missing support for interface subtypes
13737 and generic formals.
13738 (Derived_Type_Declaration): Add missing support for interface subtypes
13739 and generic formals.
13740 (Analyze_Object_Declaration): If an initialization expression is
13741 present, traverse its subtree and mark all allocators as static
13743 (Add_Interface_Tag_Component): When looking for components that may be
13744 secondary tags, ignore pragmas that can appear within a record
13746 (Check_Abstract_Overriding): an inherited function that dispatches on
13747 result does not need to be overriden if the controlling type is a null
13749 (Mentions_T): Handle properly a 'class attribute in an anonymous access
13750 component declaration, when the prefix is an expanded name.
13751 (Inherit_Component): If the derivation is for a private extension,
13752 inherited components remain visible and their ekind should not be set
13754 (Find_Type_Of_Object): In the case of an access definition, always set
13755 Is_Local_Anonymous_Access. We were previously not marking the anonymous
13756 access type of a return object as a local anonymous type.
13757 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
13758 range with character literal bounds.
13759 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
13760 (Access_Subprogram_Declaration): Indicate that the type declaration
13761 depends on an incomplete type only if the incomplete type is declared
13763 (Analyze_Subtype_Declaration): Handle properly subtypes of
13764 synchronized types that are tagged, and that may appear as generic
13766 (Access_Subprogram_Declaration): An anonymous access to subprogram can
13767 appear as an access discriminant in a private type declaration.
13768 (Add_Interface_Tag_Components): Complete decoration of the component
13769 containing the tag of a secondary dispatch table and the component
13770 containing the offset to the base of the object (this latter component
13771 is only generated when the parent type has discriminants --as documented
13773 (Inherit_Components): Use the new decoration of the tag components to
13774 improve the condition that avoids inheriting the components associated
13775 with secondary tags of the parent.
13776 (Build_Discriminanted_Subtype): Indicate to the backend that the
13777 size of record types associated with dispatch tables is known at
13779 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
13780 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
13781 to include task, protected, and synchronized interfaces as limited
13783 (Process_Discriminants): Remove the setting of
13784 Is_Local_Anonymous_Access on the type of (anonymous) access
13785 discriminants of nonlimited types.
13786 (Analyze_Interface_Type_Declaration): Complete the decoration of the
13787 class-wide entity it is is already present. This situation occurs if
13788 the limited-view has been previously built.
13789 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
13791 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
13794 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13796 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
13797 of the type that specify the position of interface tags when the type
13798 inherits discriminated array components from the parent type.
13799 If a component is initialized with a box, check for the presence of a
13800 default expression in its declaration before using its default
13801 initialization procedure.
13802 (Resolve_Record_Aggregate): If a component is box-initialized, and the
13803 component type has a discriminants, create a partial aggregate for it
13804 by copying the discriminants of the component subtype.
13805 Reject attempt to initialize a discriminant with a box.
13806 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
13807 associated with dispatch tables is known at compile time.
13808 (Get_Value): If an association in a record aggregate has a box
13809 association, and the corresponding record component has a default
13810 expression, always copy the default expression, even when the
13811 association has a single choice, in order to create a proper
13812 association for the expanded aggregate.
13814 2007-06-06 Ed Schonberg <schonberg@adacore.com>
13815 Robert Dewar <dewar@adacore.com>
13817 * par-ch12.adb (P_Generic_Associations): The source position of an
13818 Others association is that of the others keyword, not that of the token
13819 that follows the box.
13820 (P_Formal_Type_Definition): Handle formal access types that carry a
13821 not null indicator.
13823 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
13824 multiple identifier are present, save Scan_State before scanning the
13825 colon, to ensure that separate trees are constructed for each
13827 (P_Identifier_Declarations): For object declaration, set new flag
13828 Has_Init_Expression if initialization expression present.
13829 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
13830 Improve NOT NULL error messages
13832 2007-06-06 Robert Dewar <dewar@adacore.com>
13834 * par-ch4.adb: (P_Name): Recover from literal used as name
13836 2007-06-06 Vincent Celier <celier@adacore.com>
13838 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
13839 defaulted to False.
13840 In the "not" case, recursive call with Complemented set to True.
13841 Do not allow "or" or "and" operators when Complemented is True.
13843 2007-06-06 Vincent Celier <celier@adacore.com>
13845 * prj.adb (Project_Empty): Gives default value for new component
13848 * prj-attr.ads: Minor reformatting
13850 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
13851 directory using the untouched casing.
13852 (For_All_Source_Dirs): Idem.
13854 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
13855 directories specified with switches -aP.
13856 (Add_Search_Project_Directory): New procedure
13857 (Initialize_Project_Path): Put the directories in table
13858 Search_Directories in the project search path.
13859 (Initialize_Project_Path): For VMS, transform into canonical form the
13862 2007-06-06 Arnaud Charlet <charlet@adacore.com>
13864 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
13865 true if configurable run-time or No_Run_Time is set.
13866 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
13867 processing an unit which is not the one being compiled.
13869 2007-06-06 Arnaud Charlet <charlet@adacore.com>
13871 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
13872 Replace UC by Ada.UC
13874 * s-bitops.adb: Get rid of System.Pure_Exceptions.
13875 Replace UC by Ada.UC
13877 2007-06-06 Robert Dewar <dewar@adacore.com>
13879 * scng.adb: (Check_End_Of_Line): Deal with very long lines
13881 2007-06-06 Robert Dewar <dewar@adacore.com>
13883 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
13884 Remove no longer used nodes.
13886 2007-06-06 Javier Miranda <miranda@adacore.com>
13887 Ed Schonberg <schonberg@adacore.com>
13888 Robert Dewar <dewar@adacore.com>
13890 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
13891 on obsolescent withed unit in case of limited-withed units.
13892 (Analyze_Compilation_Unit): Add guard to code that removed an
13893 instantiation from visibility, to prevent compiler aborts when
13894 instantiation is abandoned early on.
13895 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
13896 current unit being analyzed, and Distinguish local incomplete types
13897 from limited views of types declared elsewhere.
13898 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
13899 to state that the class-wide entity is shared by the limited-view
13901 (Analyze_With_Clause): Improve placement of flag for case of
13902 unimplemented unit.
13903 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
13904 manner similar to GNAT.Current_Exception. This is a violation of
13905 restriction (No_Exception_Propagation), and also inhibits the
13906 optimization of local raise to goto.
13907 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
13908 and if so set Most_Recent_Exception_Used flag in Opt, and also check
13909 for violation of restriction No_Exception_Propagation.
13911 2007-06-06 Javier Miranda <miranda@adacore.com>
13912 Hristian Kirtchev <kirtchev@adacore.com>
13913 Gary Dismukes <dismukes@adacore.com>
13915 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
13916 use of entity Exception_Occurrence if it is not available in the
13919 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
13920 concurrent types are declared within an Ada 2005 generic, build their
13921 corresponding record types since they are needed for overriding-related
13923 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
13924 protected type does not implement a task interface or a nonlimited
13926 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
13927 type does not implement a protected interface or a nonlimited interface.
13928 (Single_Task_Declaration, Single_Protected_Declaration): use original
13929 entity for variable declaration, to ensure that debugging information
13930 is correcty generated.
13931 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
13932 routines if the expander is not active.
13933 (Analyze_Task_Body): Mark all handlers to stop optimization of local
13934 raise, since special things happen for task exception handlers.
13936 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
13937 concurrent types declared within a generic.
13938 (Check_Dispatching_Operation): Do not emit warning about late interface
13939 operations in the context of an instance.
13940 (Check_Dispatching_Call): Remove restriction against calling a
13941 dispatching operation with a limited controlling result.
13942 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
13943 Register_Interface_DT_Entry by calls to Register_Primitive.
13944 (Check_Dispatching_Formals): Handle properly a function with a
13945 controlling access result.
13947 2007-06-06 Robert Dewar <dewar@adacore.com>
13948 Arnaud Charlet <charlet@adacore.com>
13950 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
13951 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
13952 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
13953 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
13954 message when using a VM, since this attribute is not supported.
13955 (Analyze_Record_Representation_Clause): Give unrepped component warnings
13957 * usage.adb: Add new warning for renaming of function return objects
13958 Indicate that -gnatwp and -gnatwP concern front-end inlining
13959 Add line for -gnatyg
13960 Add usage information for -gnatw.c/C
13962 2007-06-06 Robert Dewar <dewar@adacore.com>
13963 Ed Schonberg <schonberg@adacore.com>
13966 (Find_Var): Do not consider function call in test for infinite loop
13967 warning if warnings set off for function entity.
13968 (One_Bound): Do not create a temporary for a loop bound if it is a
13970 (Analyze_Assignment): Traverse the right hand side of an assignment and
13971 mark all allocators as static coextensions.
13972 (Analyze_Assignment): Exempt assignments involving a dispatching call
13973 to a function with a controlling access result from the check requiring
13974 the target to be class-wide.
13976 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
13977 Ed Schonberg <schonberg@adacore.com>
13978 Robert Dewar <dewar@adacore.com>
13979 Javier Miranda <miranda@adacore.com>
13981 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
13982 chain of coextensions when an allocator serves as the root of such a
13984 (Propagate_Coextensions): Remove the test for the root being an
13986 (Resolve_Allocator): Add condition to ensure that all future decoration
13987 occurs on an allocator node. Add processing and cleanup for static
13989 (Valid_Conversion): If the operand type is the limited view of a
13990 class-wide type, use the non-limited view is available to determine
13991 legality of operation.
13992 (Ambiguous_Character): move to spec, for use elsewhere.
13993 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
13994 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
13995 character literals.
13996 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
13997 Do_Division_Check flag explicitly.
13998 (Resolve_Actuals): If the actual is of a synchronized type, and the
13999 formal is of the corresponding record type, this is a call to a
14000 primitive operation of the type, that is declared outside of the type;
14001 the actual must be unchecked-converted to the type of the actual
14002 (Resolve_Call): Kill all current values for any subprogram call if
14003 flag Suppress_Value_Tracking_On_Call is set.
14004 (Resolve_Type_Conversion): Generate error message the the operand
14005 or target of interface conversions come from a limited view.
14006 (Check_Infinite_Recursion): Ignore generated calls
14007 (Check_Allocator_Discrim_Accessibility): New procedure for checking
14008 that an expression that constrains an access discriminant in an
14009 allocator does not denote an object with a deeper level than the
14010 allocator's access type.
14011 (Resolve_Allocator): In the case of an allocator initialized by an
14012 aggregate of a discriminated type, check that associations for any
14013 access discriminants satisfy accessibility requirements by calling
14014 Check_Allocator_Discrim_Accessibility.
14015 (Resolve_Equality_Op): Handle comparisons of anonymous access to
14016 subprogram types in the same fashion as other anonymous access types.
14017 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
14018 message that is not a continuation message.
14019 (Resolve_Type_Conversion): Add missing support for conversion to
14021 (Resolve_Actuals): Introduce a transient scope around the call if an
14022 actual is a call to a function returning a limited type, because the
14023 resulting value must be finalized after the call.
14024 (Resolve_Actuals): If the call was given in prefix notations, check
14025 whether an implicit 'Access reference or implicit dereference must be
14026 added to make the actual conform to the controlling formal.
14028 2007-06-06 Robert Dewar <dewar@adacore.com>
14029 Javier Miranda <miranda@adacore.com>
14031 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
14032 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
14033 overriding of an inherited private subprogram now there is no need to
14034 inherit its dispatching slot and reduce the size of the dispatch table.
14035 Set_All_DT_Position now ensures that the same slot is now assigned to
14036 both entities. This is required to statically build the dispatch table.
14037 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
14038 of calling Set_All_DT_Position to re-evaluate the position of the
14039 entries in the dispatch table. Such reevaluation is not desired if
14040 the tagged type is already frozen.
14042 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
14043 Gary Dismukes <dismukes@adacore.com>
14044 Robert Dewar <dewar@adacore.com>
14045 Javier Miranda <miranda@adacore.com>
14047 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
14048 reference acts as an lvalue when the attribute name modifies the prefix
14049 (Is_Coextension_Root): New routine.
14050 (Mark_Static_Coextensions): New routine.
14051 (Type_Access_Level): Revise code for checking the level of the
14052 anonymous access type of a return object.
14053 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
14054 (Matches_Prefixed_View_Profile): Remove the no longer necessary
14055 retrieval of the corresponding controlling record type.
14056 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
14057 concurrent types declared within a generic as well as class wide types.
14058 Emit a mode incompatibility error whenever a protected entry or routine
14059 override an interface routine whose first parameter is not of mode
14060 "out", "in out" or access to variable.
14061 (Overrides_Synchronized_Primitive): Rename to
14062 Find_Overridden_Synchronized_Primitive.
14063 (Collect_Interface_Components): New subprogram that collects all the
14064 components of a tagged record containing tags of secondary dispatch
14066 (Add_Global_Declaration): New procedure
14067 (Abstract_Interface_List): Handle properly the case of a subtype of a
14069 (Type_Access_Level): In the case of a type whose parent scope is a
14070 return statement, call Type_Access_Level recursively on the enclosing
14071 function's result type to determine the level of the return object's
14073 (Build_Elaboration_Entity): Build name of elaboration entity from the
14074 scope chain of the entity, rather than the unit name of the file name.
14075 (Check_Nested_Access): New procedure.
14076 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
14077 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
14078 (Get_Renamed_Entity): Utility routine for performing common operation
14079 of chasing the Renamed_Entity field of an entity.
14081 2007-06-06 Robert Dewar <dewar@adacore.com>
14083 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
14085 (Check_A_Call): Add check for entry call which was causing blowup
14087 2007-06-06 Olivier Hainque <hainque@adacore.com>
14089 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
14090 special code on ia64-vms to handle major incompatibilities between the
14091 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
14092 this routine with a very different set of arguments and expectations on
14095 2007-06-06 Thomas Quinot <quinot@adacore.com>
14097 * socket.c (__gnat_close_signalling_fd): New function.
14098 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
14099 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
14100 New supporting functions for task safe Netdb operations.
14102 2007-06-06 Thomas Quinot <quinot@adacore.com>
14103 Olivier Hainque <hainque@adacore.com>
14105 * a-except-2005.ads, a-except-2005.adb
14106 (Raise_From_Controlled_Operation): New procedure in
14107 (private part of) Ada.Exceptions (standard runtime version). Used to
14108 provide informational exception message when Program_Error is raised as
14109 a result of an Adjust or Finalize operation propagating an exception.
14110 (Rmsg_28): Fix description for E.4(18) check.
14111 (Raise_Current_Excep): Call Debug_Raise_Exception just before
14112 propagation starts, to let debuggers know about the event in a reliable
14114 Take the address of E and dereference to make sure it is homed on stack
14115 and prevent the stores from being deleted, necessary for proper
14116 debugger behavior on "break exception" hits.
14117 (Local_Raise): Moved to System.Exceptions
14119 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
14120 exception message from the current occurrence and raise Program_Error
14121 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
14123 2007-06-06 Jose Ruiz <ruiz@adacore.com>
14124 Arnaud Charlet <charlet@adacore.com>
14126 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
14129 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
14130 priority associated to a lock.
14132 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
14133 assertion to take into account case of no abort restriction.
14134 (Initialize_Protection_Entries): Add initialization for the field
14135 New_Ceiling associated to the protected object.
14136 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
14139 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
14140 since this function needs to be set consistently with Update_Exception.
14142 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
14143 since this function needs to be set consistently with Update_Exception.
14145 * s-taskin.ads: Update comments on
14146 Interrupt_Server_Blocked_On_Event_Flag.
14147 (Unbind_Handler): Fix handling of server_task wakeup
14148 (Server_Task): Set self's state so that Unbind_Handler can take
14149 appropriate actions.
14150 (Common_ATCB): Now use a constant from System.Parameters to determine
14151 the max size of the Task_Image field.
14153 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
14154 Initialize_Analyzer function.
14155 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
14156 take into account case of no abort restriction.
14157 ([Vulnerable_]Complete_Master): Modify assertion.
14159 * s-tataat.adb (Finalize): Use the nestable versions of
14160 Defer/Undefer_Abort.
14162 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
14164 * s-tpobop.ads: Update comments.
14166 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
14167 of locking the object manually, to avoid inconsistencies between
14168 Lock/Unlock_Entry assertions.
14170 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
14172 application and System.Parameters.No_Abort is True.
14173 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
14174 (Unbind_Handler): Fix handling of server_task wakeup
14175 (Server_Task): Set self's state so that Unbind_Handler can take
14176 appropriate actions.
14178 2007-06-06 Thomas Quinot <quinot@adacore.com>
14180 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
14181 declarations instead of an explicit null body, for conciseness.
14183 2007-06-06 Robert Dewar <dewar@adacore.com>
14185 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
14186 illegal aggregate and the type is still Any_Composite.
14187 (Subtypes_Statically_Match): Fix problem of empty discriminant list
14189 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14191 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
14192 to prevent subsequent expansion.
14194 2007-06-06 Robert Dewar <dewar@adacore.com>
14196 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
14198 2007-06-06 Ed Schonberg <schonberg@adacore.com>
14199 Robert Dewar <dewar@adacore.com>
14201 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
14203 (Write_Itype): Handle case of string literal subtype, which
14204 comes up in this context.
14205 (Update_Itype): when debugging expanded code, update sloc of itypes
14206 associated with defining_identifiers and ranges, for gdb use.
14207 (Sprint_Node_Actual): Add static keyword to object or exception
14208 declaration output if Is_Statically_Allocated is True.
14209 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
14210 or task body, so that the tree carries the proper Sloc information for
14212 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
14214 2007-06-06 Arnaud Charlet <charlet@adacore.com>
14216 * s-secsta.adb (Chunk): Ensure this object has a static size known at
14217 compile time, to avoid dynamic memory allocation
14218 (Elaboration code): Only use dynamic memory allocation when needed.
14220 2007-06-06 Quentin Ochem <ochem@adacore.com>
14222 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
14224 (Stack_Analyzer): Added field "Overflow_Guard"
14225 (Task_Result): Added field "Overflow_Guard".
14226 (Index_Str): New constant.
14227 (Task_Name_Str): New constant.
14228 (Actual_Size_Str): New constant.
14229 (Pattern_Array_Element_Size): New constant.
14230 (Get_Usage_Range): New subprogram.
14231 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
14232 Now align the output.
14234 (Initialize): Added value for Overflow_Guard.
14235 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
14236 Update the value of the overflow guard according to the actual
14237 beginning of the pattern array.
14238 (Initialize_Analyzer): Added parameter Overflow_Guard.
14239 Take this parameter into accound when computing the max size.
14240 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
14241 (Report_Result): Removed extra useless procedure.
14242 Updated call to Output_Result.
14243 Moved full computation of the Task_Result here.
14245 2007-06-06 Thomas Quinot <quinot@adacore.com>
14247 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
14248 Thread_Blocking_IO, always True by default, set False on a per-runtime
14250 Add Windows-specific constants
14251 Add new constant Need_Netdb_Buffer.
14252 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
14253 not, whether to use getXXXbyYYY_r.
14255 * gsocket.h: Add new constant Need_Netdb_Buffer.
14256 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
14257 not, whether to use getXXXbyYYY_r.
14259 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
14261 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
14262 than their first call.
14263 Add type Dummy_Communication_Block used in the generation of the pre-
14264 defined dispatching primitive _disp_asynchronous_select.
14265 (Storage_Element): Put Pragma Universal_Aliasing on it.
14267 2007-06-06 Vincent Celier <celier@adacore.com>
14269 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
14272 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
14273 letter if it is not followed by a '/' or a '\'.
14274 (Windows): New Boolean function
14276 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
14278 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
14280 (Containing_Directory): Raise Use_Error when the directory is a root
14282 (Extension): When returning the result, use a conversion to Result_Type,
14283 not a qualification.
14285 2007-06-06 Robert Dewar <dewar@adacore.com>
14287 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
14288 (Set_Style_Check_Options): Recognize new -gnatyg style switch
14290 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
14291 Warn_On_Non_Local_Exception to False, to turn off warnings for
14292 No_Exception_Propagation in ZFP runtime.
14293 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
14295 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
14297 2007-06-06 Vincent Celier <celier@adacore.com>
14299 * switch-b.adb (Scan_Binder_Switches): Add processing for new
14302 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
14303 (Scan_Make_Switches): Recognize new switch -aP
14305 2007-06-06 Matthew Gingell <gingell@adacore.com>
14306 Jose Ruiz <ruiz@adacore.com>
14308 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
14309 VxWorks task descriptor in the Ada run time, call a C subprogram
14310 (__gnat_get_stack_info) that extracts the required information.
14312 * sysdep.c: Back out temporary lynxos workaround.
14313 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
14314 time the stack information associated to the currently executing task.
14315 Only VxWorks systems require this function.
14317 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
14319 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
14320 add the stack bias if the offset is computed from a frame address.
14321 (__gnat_backtrace): Adjust for above change.
14323 2007-06-06 Thomas Quinot <quinot@adacore.com>
14325 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
14326 PE_Non_Transportable_Actual.
14327 (By_Descriptor_Last): New constant.
14328 (By_Copy_Return): Likewise.
14330 2007-06-06 Vincent Celier <celier@adacore.com>
14332 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
14335 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
14336 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
14337 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
14338 Add missing comment for /OPTIMIZE=SPACE
14339 Add entry for OPTIMIZE=SPACE
14340 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
14341 Add documentation for new qualifiers corresponding to -gnatw.c/.C
14343 2007-06-06 Vincent Celier <celier@adacore.com>
14344 Robert Dewar <dewar@adacore.com>
14346 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
14349 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
14350 Document gnatbind switch -a
14351 (case Constructions): Document that variables declarations are allowed
14352 for previously declared variables.
14353 Fix external lib project example
14354 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
14355 Indicate that "#if not X or Y then" is not allowed in input files to
14357 Document gnatw.x and gnatw.X warning flags
14358 Mention -Winline switch to activate warnings when back-end inlining is
14360 Add gnatcheck rule descriptions
14361 Describe how to use the GNAT driver to call a tool on a closure.
14362 Describe how to run project-wide checks or metrics.
14363 Document gnatbind's -R option
14364 Updated to account for Ada 2005 support
14366 * gnat_rm.texi (Case Construction): Allow variable declarations for
14367 previously declared variables.
14368 (Representation Clauses and Pragmas): Lift restriction on alignment
14369 clauses for record types.
14370 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
14371 Document No_Exception_Propagation restriction
14372 Document No_Body pragma
14373 Updated to account for Ada 2005 support; corrected some typos
14374 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
14376 * gnat-style.texi: Make it clear that we never use mode IN for
14377 procedures or functions
14379 * ug_words: Add entries for -gnatw.x and -gnatw.X
14380 Add entries for -gnatw.c/.C
14382 2007-06-06 Pascal Obry <obry@adacore.com>
14383 Vincent Celier <celier@adacore.com>
14385 * makegpr.adb (Add_Archive_Path): Use untouched object and library
14386 dirs and library name.
14387 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
14389 (Build_Library): Idem.
14390 (Compile_Individual_Sources): Idem.
14391 (Compile_Link_With_Gnatmake): Idem.
14392 (Compile_Sources): Idem.
14393 (Get_Imported_Directories): Idem.
14394 (Link_Executables): Idem. Same change for the executable dir.
14395 (Check_Compilation_Needed): C_Source_Path new variable containing
14396 the canonical form of Source_Path to check against the source names
14397 in the dependency file.
14398 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
14399 verbose mode, display the name of the object directory we're changing
14401 (Saved_Switches): New name of table X_Switches
14402 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
14403 (Usage): New line for switch -aP
14404 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
14405 testing if a directory should be added to the search path.
14407 2007-06-06 Javier Miranda <miranda@adacore.com>
14409 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
14410 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
14411 declaration after freezing point of all its associated tagged types;
14412 otherwise such types are frozen too early.
14414 2007-06-06 Robert Dewar <dewar@adacore.com>
14416 * a-reatim.adb: Documentation addition
14418 * g-cgideb.adb: Minor code reorganization
14420 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
14421 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
14422 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
14424 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
14425 function. Change name New_Scope to Push_Scope
14426 (Get_Debug_Flag_K): Remove unused obsolete function.
14428 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
14431 * makeusg.adb: Update Copyright notice
14432 Add line for switch -aP
14434 * makeusg.adb: Fix wording of some usage messages
14436 * s-assert.adb (Raise_Assert_Failure): Add call to
14437 Debug_Raise_Assert_Failure.
14439 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
14440 (2, Standard'Alignment) for compatibility with AAMP (where alignment
14441 is restricted to 1).
14443 * s-wchjis.adb: Remove use of System.Pure_Exceptions
14445 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
14446 node location to No_Location when we're not debugging the expanded
14449 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
14451 * misc.c (enumerate_modes): Consider log2_b to always be one.
14453 2007-05-14 Rafael Ávila de Espíndola <espindola@google.com>
14455 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
14457 2007-05-02 Pascal Obry <obry@adacore.com>
14459 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
14460 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
14461 encoding support of Stream_IO.
14462 (Write_Unit): Idem.
14464 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
14465 filename and corresponding encoding to match the OS requirement.
14466 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
14467 routine will fail on specific devices like CON: AUX: ...
14469 PR ada/29856: Add missing braces
14471 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
14474 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
14476 2007-04-21 Jan Hubicka <jh@suse.cz>
14478 * misc.c (gnat_expand_body): Don't call target for destructors,
14479 avoid redundant check on syntax errors.
14481 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
14483 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
14484 instead of checking GIMPLE_STMT_P in chain_next.
14486 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
14489 * system-linux-alpha.ads: Disable constant condition warning for the
14490 Default_Bit_Order variable.
14491 * system-linux-s390.ads: Likewise.
14492 * system-linux-s390x.ads: Likewise.
14493 * system-linux-sparc.ads: Likewise.
14495 2007-04-06 Javier Miranda <miranda@adacore.com>
14496 Matt Heaney <heaney@adacore.com>
14497 Robert Dewar <dewar@adacore.com>
14499 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
14500 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
14501 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
14502 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
14503 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
14504 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
14505 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
14506 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
14507 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
14508 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
14509 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
14510 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
14511 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
14512 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
14513 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
14514 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
14515 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
14516 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
14517 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
14518 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
14519 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
14520 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
14521 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
14522 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
14523 s-taprop-tru64.adb, s-taprop-irix.adb,
14524 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
14525 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
14526 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
14527 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
14528 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
14529 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
14530 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
14531 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
14532 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
14533 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
14534 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
14535 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
14536 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
14537 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
14538 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
14539 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
14540 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
14541 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
14542 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
14543 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
14545 Update documentation.
14548 2007-04-06 Robert Dewar <dewar@adacore.com>
14550 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
14551 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
14552 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
14553 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
14554 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
14555 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
14556 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
14557 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
14558 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
14559 system-hpux-ia64.ads, targparm.adb,
14560 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
14562 * system.ads: Move Functions_Return_By_DSP to obsolete section,
14563 kept for bootstrap purposes only.
14565 2007-04-06 Arnaud Charlet <charlet@adacore.com>
14567 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
14568 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
14569 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
14570 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
14572 2007-04-06 Robert Dewar <dewar@adacore.com>
14574 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
14575 (Local_Raise): New dummy procedure called when a raise is converted
14576 to a local goto. Used for debugger to detect that the exception
14579 * debug.adb: Document new d.g flag (expand local raise statements to
14580 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
14582 * exp_sel.adb: Use Make_Implicit_Exception_Handler
14584 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
14585 suppress warnings for unused handlers.
14586 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
14587 warnings for raise statements not handled locally.
14588 (Get_RT_Exception_Entity): New function
14589 (Get_Local_Call_Entity): New function
14590 (Find_Local_Handler): New function
14591 (Warn_If_No_Propagation): New procedure
14592 (Expand_At_End_Handler): Call Make_Implicit_Handler
14593 (Expand_Exception_Handlers): Major additions to deal with local handlers
14594 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
14595 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
14598 * exp_ch11.ads (Get_RT_Exception_Entity): New function
14599 (Get_Local_Call_Entity): New function
14601 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
14602 of restrictions that the binder will never suggest adding.
14604 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
14607 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
14608 be with'ed in the presence of pragma Restriction
14609 (No_Exception_Propagation).
14611 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
14613 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
14614 parameter, then the handler is not a suitable target for a local raise,
14615 and this is a violation of restriction No_Exception_Propagation.
14616 (Analyze_Handled_Statements): Analyze choice parameters in exception
14617 handlers before analyzing statement sequence (needed for proper
14618 detection of local raise statements).
14619 (Analyze_Raise_Statement): Reraise statement is a violation of the
14620 No_Exception_Propagation restriction.
14622 * s-rident.ads: Add new restriction No_Exception_Propagation
14624 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
14625 function, like Make_Exception_Handler but sets Local_Raise_Statements
14627 (Add_Unique_Serial_Number): Deal with case where this is called during
14628 processing of configuration pragmas.
14630 2007-04-06 Thomas Quinot <quinot@adacore.com>
14631 Pat Rogers <rogers@adacore.com>
14632 Pascal Obry <obry@adacore.com>
14634 * g-stsifd-sockets.adb: New file.
14636 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
14637 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
14638 g-socthi-vms.adb: Move signalling
14639 fd management to a nested package, so that they can conveniently be
14640 moved to a subunit that is shared across Windows, VMS, and VxWorks
14641 (Ada implementation) or completed with imported bodies from socket.c
14643 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
14645 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
14646 the signalling file descriptor.
14647 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
14648 signalling file descriptor.
14649 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
14650 instead of creating a pair of sockets for signalling here.
14652 * g-socthi.adb: Ditto.
14653 Set the runtime process to ignore SIGPIPEs on platforms that support
14654 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
14656 * g-socthi-mingw.adb: Ditto.
14657 (WS_Version): Use Windows 2.2.
14658 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
14660 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
14661 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
14663 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
14664 added GNAT byte swapping facility
14665 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
14667 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
14669 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
14671 (__gnat_create_signalling_fds): New subprogram.
14672 Set the runtime process to ignore SIGPIPEs on platforms that support
14673 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
14675 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
14676 Vincent Celier <celier@adacore.com>
14678 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
14679 New version of Ada.Calendar which supports the new upper bound of Ada
14680 time (2399-12-31 86_399.999999999).
14681 The following modifications have been made to the package:
14682 - New representation of time as count of nanoseconds since the start of
14683 Ada time (1901-1-1 0.0).
14684 - Target independent Split and Time_Of routines which service both
14685 Ada 95 and Ada 2005 code.
14686 - Target independent interface to the Ada 2005 children of Calendar.
14687 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
14688 - Handling of non-leap centenial years.
14689 - Updated clock function.
14690 - Updated arithmetic and comparison operators.
14692 * a-caldel.adb (To_Duration): Add call to target independent routine in
14693 Ada.Calendar to handle the conversion of time to duration.
14695 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
14697 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
14699 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
14700 targets do not have a natural time zone, GMT is used as a default.
14701 (__gnat_get_task_options): New.
14703 * a-direct.adb (Modification_Time): Add with and use clauses for
14704 Ada.Calendar and Ada.
14705 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
14706 since it is no longer needed.
14707 (Duration_To_Time): Removed.
14708 (OS_Time_To_Long_Integer): Removed.
14709 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
14710 Formatting Time_Of routines which automatically handle time zones,
14711 buffer periods and leap seconds.
14713 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
14714 target independent routines in Ada.Calendar.
14716 * a-calfor.ads, a-calfor.adb:
14717 Code cleanup and addition of validity checks in various routines.
14718 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
14721 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
14722 independent routine in Ada.Calendar.
14724 2007-04-06 Olivier Hainque <hainque@adacore.com>
14727 (convert_addresses): Adjust prototype and dummy definition to expect an
14728 extra file_name argument.
14730 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
14731 filling the now expected file_name argument with the appropriate
14733 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
14734 (tracebk): Array of void * instead of char *, corresponding to what
14735 convert_addresses expects.
14736 (exename): New static global, to hold the executable file name to be
14737 used in all convert_addresses invocations.
14738 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
14740 (__gnat_gmem_a2l_initialize): Resolve exename.
14741 (__gnat_convert_addresses): Use exename as the convert_addresses
14742 file_name argument.
14744 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
14745 "convert_addresses", now expecting a filename argument. Import the
14746 necessary entities to compute the filename to use and pass it to
14749 2007-04-06 Matt Gingell <gingell@adacore.com>
14751 * system-aix.ads: Back out previous change.
14752 (Functions_Return_By_DSP): Removed
14754 2007-04-06 Pascal Obry <obry@adacore.com>
14756 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
14757 or the monotonic used by Ada.Real_Time) to compute the sleep duration
14760 2007-04-06 Jose Ruiz <ruiz@adacore.com>
14762 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
14763 function. Its value changes in different VxWorks versions, and it is
14764 now handled by the function __gnat_get_task_options.
14766 * s-taprop-vxworks.adb (Create_Task): Call the function
14767 __gnat_get_task_options to get the required options for creating a task.
14769 2007-04-06 Pascal Obry <obry@adacore.com>
14770 Thomas Quinot <quinot@adacore.com>
14772 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
14773 dealing with filename.
14774 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
14775 filename from a standard string to a wide-string depending on the
14777 (__gnat_freopen): Idem.
14778 (__gnat_current_time): New function (wrapper for time(3) standard C
14781 * g-os_lib.ads (Current_Time): New function. Returns the current
14782 system time as an OS_Time value.
14784 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
14785 (Monotonic_Clock): Same.
14787 2007-04-06 Quentin Ochem <ochem@adacore.com>
14789 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
14791 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
14793 2007-04-06 Jose Ruiz <ruiz@adacore.com>
14795 * a-retide.adb: Add elaboration code to ensure that the tasking run
14796 time is initialized when using delay operations even when no task is
14799 2007-04-06 Javier Miranda <miranda@adacore.com>
14801 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
14802 component Num_Prim_Ops.
14803 (Set_Num_Prim_Ops): Removed.
14804 Remove all the assertions because all the routines of this
14805 package are inline always.
14806 (Get_Offset_Index): Add support to primary dispatch tables.
14807 Move the documentation about the dispatch table to a-tags.ads
14808 (Set_External_Tag): Removed
14809 (Inherit_TSD): Removed.
14810 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
14811 moved to a-tags.ads
14812 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
14813 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
14814 of the TSD field "Table" because this field has been renamed to
14816 (Inherit_CPP_DT): Removed.
14817 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
14818 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
14819 declarations have been moved to a-tags.ads
14820 (Check_Size): Removed.
14821 (Expanded_Name): Updated to get access to the new field of TSD
14822 containing the address of the expanded name.
14823 (Get_Access_Level/Set_Access_Level): Removed.
14824 (Get_Predefined_Prim_Op_Address): Removed.
14825 (Set_Predefined_Prim_Op_Address): Removed.
14826 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
14827 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
14828 (Set_Expanded_Name): Removed.
14829 (Inherit_DT): Removed.
14830 (Inherit_CPP_DT): Removed.
14831 (Set_RC_Offset): Removed.
14832 (Set_TSD): Removed.
14833 (Base_Address): New function that displaces "this" to point to the base
14834 of the object (that is, to point to the primary tag of the object).
14836 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14837 Javier Miranda <miranda@adacore.com>
14839 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
14840 anonymous access component, do not create a master_id if type already
14841 has one, as may happen if the type is a subcomponent of a packed array
14843 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
14844 Initialize_Tag): Remove code associated with the old CPP pragmas.
14845 CPP_Virtual and CPP_Vtable are no longer supported.
14846 (Build_Offset_To_Top_Internal): Add support for concurrent record types
14847 (Build_Offset_To_Top_Functions): Add support for concurrent record types
14848 (Freeze_Record_Type): Remove call to
14849 Init_Predefined_Interface_Primitives.
14850 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
14851 code required to initialize the tags of the secondary dispatch tables.
14852 This leaves the algoritm more clear.
14853 (Init_Secondary_Tags): Add support for concurrent record types
14854 (Make_Predefined_Primitive_Specs): Code cleanup.
14855 (Predefined_Primitive_Bodies): Code cleanup.
14856 (Build_Master_Renaming): New local subprogram.
14857 (Expand_N_Full_Type_Declaration): Build the master_id associated with
14858 anonymous access to task type components.
14859 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
14860 subtype indication are resolved during analysis, and must not be done
14862 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
14864 2007-04-06 Geert Bosch <bosch@adacore.com>
14865 Ed Schonberg <schonberg@adacore.com>
14866 Javier Miranda <miranda@adacore.com>
14867 Bob Duff <duff@adacore.com>
14869 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
14870 for conversion of a Float_Type'Truncation to integer.
14872 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
14873 check if a node is an attribute that can be handled directly by the
14875 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
14876 attributes that can be handled directly by the back end.
14877 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
14878 use new predicate Is_Access_Protected_Subprogram_Type.
14879 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
14880 and Unchecked_Union if it is generated as part of the default Output
14881 procedure for a type with default discriminants.
14882 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
14883 if we are compiling under restriction No_Dispatching_Calls.
14884 (Constrained): Use Underlying_Type, in case the type is private without
14885 discriminants, but the full type has discriminants.
14886 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
14887 call to Build_Get_Access_Level.
14888 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
14889 interface objects requires a call to the run-time subprogram that
14890 returns the base address of the object.
14891 (Valid_Conversion): Improve error message on illegal attempt to store
14892 an anonymous access to subprogram value into a record component.
14894 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
14896 (Simplify_Type_Conversion): New procedure that performs simplification
14897 of Int_Type (Float_Type'Truncation (X)).
14898 (Resolve_Type_Conversion): Call above procedure after resolving operand
14899 and before performing checks. This replaces the existing ineffective
14901 (Set_String_Literal_Subtype): When creating the internal static lower
14902 bound subtype for a string literal, use a newly created copy of the
14903 subtree representing the lower bound.
14904 (Resolve_Call): Exclude build-in-place function calls from transient
14905 scope treatment. Update comments to describe this exception.
14906 (Resolve_Equality_Op): In case of dispatching call check violation of
14907 restriction No_Dispatching_Calls.
14908 (Resolve_Call): If the call returns an array, the context imposes the
14909 component type of the array, and the function has one non-defaulted
14910 parameter, rewrite the call as the indexing of a call with a single
14911 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
14913 (Resolve_Actuals): If an actual is an allocator for an access parameter,
14914 the master of the created object is the innermost enclosing statement.
14915 (Remove_Conversions): For a binary operator, check if type of second
14916 formal is numeric, to check if an abstract interpretation is present
14917 in the case of exponentiation as well.
14919 2007-04-06 Ed Schonberg <schonberg@adacore.com>
14920 Bob Duff <duff@adacore.com>
14922 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
14923 copying a parameter list in a call, set properly the First_Named_Formal
14924 and Next_Named_Formal fields in the new list and in the enclosing call.
14925 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
14926 names, to ease typing in the debugger. Improve comments.
14927 (Watch_Node): New variable, intended to be set in the debugger.
14928 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
14929 called when the watched node is created.
14930 (New_Node_Debugging_Output): Combined version of local procedures
14931 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
14932 with a parameter so that conditional breakpoints like "if Node = 12345"
14934 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
14935 Add Elist1 function
14937 2007-04-06 Thomas Quinot <quinot@adacore.com>
14938 Ed Schonberg <schonberg@adacore.com>
14939 Gary Dismukes <dismukes@adacore.com>
14941 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
14942 required for a conversion between two access-to-unconstrained-array
14944 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
14945 to discriminant constraints on discriminant objects. This rule must
14946 apply as well to discriminants of protected types in private components.
14947 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
14948 object of a null-excluding access type then don't require the
14949 the object declaration to have an expression and don't emit a
14952 2007-04-06 Arnaud Charlet <charlet@adacore.com>
14953 Eric Botcazou <botcazou@adacore.com>
14955 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
14958 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
14959 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
14962 * fe.h (Compiler_Abort): Add third parameter.
14964 * misc.c (internal_error_function): Build third argument from current
14965 input location and pass it to Compiler_Abort.
14967 2007-04-06 Gary Dismukes <dismukes@adacore.com>
14969 * cstand.adb (Create_Standard): When the target's storage unit size is
14970 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
14973 2007-04-06 Nicolas Roche <roche@adacore.com>
14975 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
14976 absolute path can have the following form: device:/a/b. In this case
14977 '/' should be inserted between the path and the filename.
14979 2007-04-06 Olivier Hainque <hainque@adacore.com>
14980 Eric Botcazou <botcazou@adacore.com>
14982 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
14983 VAR_DECL to a CONST_DECL we make for a public constant when we know the
14984 corresponding definition has created the so made visible variable.
14985 Handle anonymous access to protected subprogram.
14986 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
14987 object with an address clause volatile. Re-enable original fix.
14988 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
14990 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
14991 associated with either the Equivalent or Root type, instead of the
14993 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
14994 subtree for every field of a global record type.
14995 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
14996 discriminants, invoke again variable_size on its newly computed sizes.
14998 2007-04-06 Robert Dewar <dewar@adacore.com>
14999 Thomas Quinot <quinot@adacore.com>
15000 Ed Schonberg <schonberg@adacore.com>
15001 Bob Duff <duff@adacore.com>
15003 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
15004 (Next_Component_Or_Discriminant): New function and procedure
15005 (First_Index, First_Literal, Master_Id,
15006 Set_First_Index, Set_First_Literal, Set_Master_Id):
15007 Add missing Ekind assertions.
15008 (Is_Access_Protected_Subprogram_Type): New predicate.
15009 (Has_RACW): New entity flag, set on package entities to indicate that
15010 the package contains the declaration of a remote accecss-to-classwide
15012 (E_Return_Statement): This node type has the Finalization_Chain_Entity
15013 attribute, in case the result type has controlled parts.
15014 (Requires_Overriding): Add this new flag, because "requires
15015 overriding" is subtly different from "is abstract" (see AI-228).
15016 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
15017 Is_Abstract_Type. Make sure these are called only when appropriate.
15018 (Has_Pragma_Unreferenced_Objects): New flag
15020 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
15021 class-wide, the tag of the right-hand side must be an exact match, not
15022 an ancestor of that of the object on left-hand side.
15023 (Move_Activation_Chain): New procedure to create the call to
15024 System.Tasking.Stages.Move_Activation_Chain.
15025 (Expand_N_Extended_Return_Statement): Generate code to call
15026 System.Finalization_Implementation.Move_Final_List at the end of a
15027 return statement if the function's result type has controlled parts.
15028 Move asserts to Build_In_Place_Formal.
15029 (Move_Final_List): New function to create the call statement.
15030 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
15031 tagged type, replace generation of call to the run-time subprogram
15032 CW_Membership by call to Build_CW_Membership.
15033 (Expand_N_Return_Statement): Replace generation of call to the run-time
15034 subprogram Get_Access_Level by call to Build_Get_Access_Level.
15035 (Expand_N_Simple_Function_Return): Replace generation of call to the
15036 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
15038 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
15039 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
15040 access to protected operations.
15041 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
15042 master and chain actual parameters to a build-in-place function call
15044 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
15046 (Make_Build_In_Place_Call_In_Allocator,
15047 Make_Build_In_Place_Call_In_Anonymous_Context,
15048 Make_Build_In_Place_Call_In_Assignment,
15049 Make_Build_In_Place_Call_In_Object_Declaration): Call
15050 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
15051 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
15052 stubbed procedure with a null body, replace the call with a null
15053 statement without using the full inlining machinery, for efficiency
15054 and to avoid invalid values in source file table entries.
15056 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
15057 renamings of calls to build-in-place functions.
15059 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
15060 provides the functionality of RTE_Available to record components.
15061 (RTU_Entity): The function Entity has been renamed to RTU_Entity
15062 to avoid undesired overloading.
15063 (Entity): New subprogram that returns the entity for the referened
15064 unit. If this unit has not been loaded, it returns Empty.
15065 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
15066 Remove no longer used entities.
15067 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
15068 (RE_Type_Specific_Data): New entity.
15069 (RE_Move_Any_Value): New entity.
15070 (RE_TA_A, RE_Get_Any_Type): New entities.
15071 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
15072 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
15073 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
15074 (Entity): New subprogram that returns the entity for the referened
15075 unit. If this unit has not been loaded, it returns Empty.
15076 (RTE): Addition of a new formal that extends the search to the scopes
15077 of the record types found in the chain of the package.
15079 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
15080 "abstract subprograms must be visible" message, whether or not the type
15081 is an interface; that is, remove the special case for interface types.
15082 (Analyze_Function_Return): Remove error message "return of task objects
15083 is not yet implemented" because this is now implemented.
15084 (Create_Extra_Formals): Add the extra master and activation chain
15085 formals in case the result type has tasks.
15086 Remove error message "return of limited controlled objects is not yet
15088 (Create_Extra_Formals): Add the extra caller's finalization list formal
15089 in case the result type has controlled parts.
15090 (Process_Formals): In case of access formal types there is no need
15091 to continue with the analysis of the formals if we already notified
15093 (Check_Overriding_Indicator): Add code to check overriding of predefined
15095 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
15096 flags for formals that do not require them,.
15097 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
15098 hidden entity is use visible or directly visible.
15099 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
15100 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
15101 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
15102 New_Overloaded_Entity): Split Is_Abstract flag into
15103 Is_Abstract_Subprogram and Is_Abstract_Type.
15105 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
15106 a return statement's finalization list to the caller's list, used for
15107 build-in-place functions with result type with controlled parts.
15108 Remove no longer used entities.
15110 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
15111 longer needed, because the full type is now limited, and therefore a
15112 pass-by-reference type.
15113 (Foreign_Task_Level): New constant.
15115 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
15116 move tasks from the activation chain belonging to a return statement to
15117 the one passed in by the caller, and update the master to the one
15118 passed in by the caller.
15119 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
15120 of unactivated tasks, so we don't kill the ones that are being returned
15121 by a build-in-place function.
15122 (Create_Task): Ignore AI-280 for foreign threads.
15124 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15125 Robert Dewar <dewar@adacore.com>
15126 Bob Duff <duff@adacore.com>
15127 Gary Dismukes <dismukes@adacore.com>
15129 * errout.adb (Unwind_Internal_Type): Use predicate
15130 Is_Access__Protected_Subprogram_Type.
15132 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
15133 (Freeze_Entity, packed array case): Do not override explicitly set
15134 alignment and size clauses.
15135 (Freeze_Entity): An entity declared in an outer scope can be frozen if
15136 the enclosing subprogram is a child unit body that acts as a spec.
15137 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
15138 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
15139 Remove all code for DSP option
15141 * layout.adb (Layout_Record_Type): Use First/
15142 Next_Component_Or_Discriminant
15143 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
15144 to handle properly the anonymous access case.
15146 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
15147 for all access attributes, because overload resolution should work the
15148 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
15149 causes the error message for the ambiguous "X'Access = Y'Access" and
15150 "X'Unrestricted_Access = Y'Access" and so forth to match.
15151 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
15152 now that anonymous access to protected operations have their own kind.
15153 (Resolve_Attribute): In case of dispatching call check the violation of
15154 restriction No_Dispatching_Calls.
15155 (Check_Array_Type): Check new -gnatyA array index style option
15157 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
15158 attempt to derive from a synchronized tagged type.
15159 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
15160 type, inherit the class-wide type already created, because it may
15161 already have been used in a self-referential anonymous access component.
15162 (Mentions_T): Recognize self-referential anonymous access components
15163 that use (a subtype of) the class-wide type of the enclosing type.
15164 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
15165 Derived_Type for Prev formal on call to
15166 Check_Anonymous_Access_Components rather than Empty.
15167 (Make_Incomplete_Type_Declaration): Add test for case where the type has
15168 a record extension in deciding whether to create a class-wide type,
15169 rather than just checking Tagged_Present.
15170 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
15171 to stand-alone object declarations as well as component declarations.
15172 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
15173 prevent accidental overwriting when enclosing package appears in
15174 a limited_with_clause.
15175 (Array_Type_Declaration): If the component type is an anonymous access,
15176 the associated_node for the itype is the type declaration itself.
15177 (Add_Interface_Tag_Components): Modified to support concurrent
15178 types with abstract interfaces.
15179 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
15180 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
15181 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
15182 to complete the decoration of synchronized interface types. Add also
15183 a call to Check_Abstract_Interfaces to verify the ARM rules.
15184 (Derive_Interface_Subprograms): Modified to support concurrent types
15185 with abstract interfaces.
15186 (Analyze_Subtype_Indication): Resolve the range with the given subtype
15187 mark, rather than delaying the full resolution depending on context.
15188 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
15189 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
15190 Array_Type_Declaration,Build_Derived_Record_Type,
15191 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
15192 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
15193 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
15194 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
15195 called only when appropriate.
15196 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
15198 (Analyze_Subtype_Declaration): For an access subtype declaration, create
15199 an itype reference for the anonymous designated subtype, to prevent
15200 scope anonmalies in gigi.
15201 (Build_Itype_Reference): New utility, to simplify construction of such
15204 2007-04-06 Vincent Celier <celier@adacore.com>
15206 * errutil.adb (Initialize): Initialize warnings table, if all warnings
15207 are suppressed, supply an initial dummy entry covering all possible
15210 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
15211 and start with only one, such as "-RTS=none".
15212 (Collect_Arguments): Do not check for sources outside of projects.
15213 Do not collect arguments if project is externally built.
15214 (Compile_Sources): Do nothing, not even check if the source is up to
15215 date, if its project is externally built.
15216 (Compile): When compiling a predefined source, add -gnatpg
15217 as the second switch, after -c.
15218 (Compile_Sources): Allow compilation of Annex J renames without -a
15219 (Is_In_Object_Directory): Check if the ALI file is in the object
15220 even if there is no project extension.
15221 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
15222 gnatbind if the ALI file effectively exists.
15223 (Initialize): Add the directory where gnatmake is invoked in front of
15224 the path if it is invoked from a bin directory, even without directory
15225 information, so that the correct GNAT tools will be used when spawned
15226 without directory information.
15228 * makeusg.adb: Change switch -S to -eS
15229 Add lines for new switches -we, -wn and -ws
15230 Add line for new switch -p
15232 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
15233 Treat_As_Error and there are warnings.
15235 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
15236 -gnatww Change gnatmake switch -S to -eS
15237 (Scan_Make_Switches): Code reorganisation. Process separately multi
15238 character switches and single character switches.
15239 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
15240 False when switch is not recognized by gnatmake.
15241 (Scan_Make_Switches): Set Setup_Projects True when -p or
15242 --create-missing-dirs is specified.
15244 * fname.adb (Is_Predefined_File_Name): Return True for annex J
15245 renamings Calendar, Machine_Code, Unchecked_Conversion and
15246 Unchecked_Deallocation only when Renamings_Included is True.
15248 * par.adb: Allow library units Calendar, Machine_Code,
15249 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
15250 when -gnatg is not specified.
15251 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
15252 there is no need to generate always a record_definition_node in case
15253 of synchronized interface types.
15254 (SIS_Entry_Active): Initialize global variable to False
15255 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
15256 indicate cases where AI-447 says "not null" is legal.
15258 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
15260 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
15261 files with with several lines starting with the object fileb name.
15262 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
15264 (Initialize): Add the directory where gprmake is invoked in front of the
15265 path, if it is invoked from a bin directory or with directory
15266 information, so that the correct GNAT tools will be used when invoked
15268 (Check_Compilation_Needed): Process correctly backslashes on Windows.
15270 * vms_data.ads: Update switches/qualifiers
15272 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15273 Thomas Quinot <quinot@adacore.com>
15276 If the array component is a discriminated record, the array aggregate
15277 is non-static even if the component is given by an aggregate with
15279 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
15280 (Convert_Aggr_In_Allocator): If the allocator is for an access
15281 discriminant and the type is controlled. do not place on a finalization
15282 list at this point. The proper list will be determined from the
15284 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
15285 initialize record controller if needed, before the components, to ensure
15286 that they are properly finalized.
15287 (Build_Record_Aggr_Code): For the case of an array component that has a
15288 corresponding array aggregate in the record aggregate, perform sliding
15291 2007-04-06 Javier Miranda <miranda@adacore.com>
15292 Gary Dismukes <dismukes@adacore.com>
15293 Ed Schonberg <schonberg@adacore.com>
15295 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
15296 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
15298 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
15299 accessibility on class-wide allocators if the allocator occurs at the
15300 same scope level as the allocator's type. The check is guaranteed to
15301 succeed in that case, even when the expression originates from a
15302 parameter of the containing subprogram.
15303 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
15304 under No_Dispatching_Calls restriction. During the semantic analysis
15305 we already notified such violation.
15306 (Tagged_Membership): Constant folding. There is no need to check
15307 the tag at run-time if the type of the right operand is non
15308 class-wide abstract.
15309 Replace call to Is_Ancestor by call to Is_Parent
15310 to support concurrent types with interface types.
15311 (Expand_N_Allocator): Add an assertion associated with the generation
15313 (Expand_N_Slice): Do not enable range check to nodes associated
15314 with the frontend expansion of the dispatch table.
15315 (Is_Local_Access_Discriminant): Subsidiary function to
15316 Expand_N_Allocator.
15317 (Tagged_Membership): Replace generation of call to the run-time
15318 subprogram CW_Membership by call to Build_CW_Membership.
15319 (Expand_Allocator_Expression): Replace generation of call to the
15320 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
15322 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
15323 initialize most the TSD components by means of an aggregate.
15324 Modify the declaration of the object containing the TSD
15325 because we now expand code that has a higher level of abstraction.
15326 The TSD has a discriminant containing the Inheritance Depth Level,
15327 value that is used in the membership test but also to fix the size
15328 of the table of ancestors.
15329 (Expand_Interface_Conversion): Insert function body at the closest place
15330 to the conversion expression, to prevent access-before-elaboration
15331 errors in the backend.
15332 Code improved to reduce the size of the dispatch table if
15333 compiling under restriction No_Dispatching_Calls plus code cleanup.
15334 Code reorganization plus removal of calls to Set_Num_Prim_Ops
15335 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
15336 (Expand_Dispatching_Call): Minor code reorganization plus addition of
15337 code to return immediately if compiling under No_Dispatching_Calls
15339 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
15340 CPP_Virtual and CPP_Vtable are no longer supported.
15341 (Expand_Interface_Conversion): Add missing support for interface type
15343 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
15344 Is_Parent to support concurrent types with interfaces.
15345 (Init_Predefined_Interface_Primitives): Removed.
15346 (Make_Secondary_DT): Modified to support concurrent record types.
15347 (Set_All_DT_Position): Modified to support concurrent record types.
15348 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
15349 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
15350 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
15351 with CW_Membership.
15352 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
15353 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
15354 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
15355 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
15356 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
15357 (Expand_Dispatching_Call): Replace generation of call to the run-time
15358 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
15359 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
15361 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
15362 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
15363 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
15364 Build_Set_Prim_Op_Address.
15365 (Get_Remotely_Callable): Subprogram removed.
15366 (Init_Predefined_Interface_Primitives): Replace generation of call to
15367 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
15370 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
15371 First (Parameter_Associations ()) with the call to First_Actual that
15372 returns an actual parameter expression for both named and positional
15375 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
15376 check violation of restriction No_Dispatching_Calls.
15377 (Check_Controlling_Type): A formal of a tagged incomplete type is a
15378 controlling argument.
15380 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
15381 First/Next_Component_Or_Discriminant
15382 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
15383 (Find_Implemented_Interface): Removed. All the calls to this subprogram
15384 specify Any_Limited_Interface, and this functionality is already
15385 provided by the function Has_Abstract_Interfaces.
15386 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
15387 support concurrent types implementing interfaces.
15388 (Find_Implemented_Interface): Removed. All the calls to this subprogram
15389 specify kind Any_Limited_Interface, and this functionality is already
15390 provided by the function Has_Abstract_Interfaces.
15391 (Remove_Side_Effects): replace Controlled_Type by
15392 CW_Or_Controlled_Type whenever the issue is related to
15393 using or not the secondary stack.
15395 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
15396 P_Interface_Type_Definition to fulfill the new interface (the formal
15397 Is_Synchronized is no longer required).
15399 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
15400 Update dependencies.
15402 * exp_atag.ads, exp_atag.adb: New file
15404 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15405 Bob Duff <duff@adacore.com>
15406 Cyrille Comar <comar@adacore.com>
15408 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
15409 anonymous, use finalization list of enclosing dynamic scope.
15410 (Expand_N_Package_Declaration): For a library package declaration
15411 without a corresponding body, generate RACW subprogram bodies in the
15412 spec (just as we do for the task activation call).
15413 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
15414 Is_Abstract_Type. Make sure these are called only when appropriate.
15415 Remove all code for DSP option
15416 (CW_Or_Controlled_Type): new subprogram.
15418 2007-04-06 Eric Botcazou <botcazou@adacore.com>
15419 Ed Schonberg <schonberg@adacore.com>
15420 Gary Dismukes <dismukes@adacore.com>
15422 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
15423 parameter. If it is set to true, return a result capped according to
15424 the global upper bound for the index of an entry family.
15425 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
15426 (Build_Find_Body_Index): Adjust for above change.
15427 (Entry_Index_Expression): Likewise.
15428 (Is_Potentially_Large_Family): New function extracted from...
15429 (Collect_Entry_Families): ...here. Call it to detect whether the family
15430 is potentially large.
15431 (Build_Entry_Count_Expression): If the family is potentially large, call
15432 Family_Size with 'Cap' set to true.
15433 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
15434 a protected version of an operation declared in the private part of
15435 a protected object, because they may be invoked through a callback.
15436 (Set_Privals): If the type of a private component is an anonymous access
15437 type, do not create a new itype for each protected body.
15438 If the body of a protected operation creates
15439 controlled types (including allocators for class-widetypes), the
15440 body of the corresponding protected subprogram must include a
15442 (Build_Activation_Chain_Entity): Build the chain entity for extended
15444 (Type_Conformant_Parameters): Use common predicate Conforming_Types
15445 to determine whether operation overrides an inherited primitive.
15446 (Build_Wrapper_Spec): Add code to examine the parents while looking
15447 for a possible overriding candidate.
15448 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
15449 hold an actual parameter value since its initialization is separated
15450 from the the declaration. Prevents errors on null-excluding access
15453 2007-04-06 Thomas Quinot <quinot@adacore.com>
15454 Pablo Oliveira <oliveira@adacore.com>
15456 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
15457 Do an Unchecked_Conversion to handle the passage from the Underlying
15458 Type to the Base Type when calling Build_To_Any_Call and
15459 Build_From_Any_Call.
15460 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
15461 E_Constant, depending upon Variable formal.
15462 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
15463 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
15464 parameter that requires an extra constrained parameter, declare
15465 temporary for actual as a variable, not a constant.
15466 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
15467 the unit being compiled is the one that contains the stub type.
15468 Change primitive operation name for the RACW associated with a RAS
15469 from Call to _Call so it cannot clash with any legal identifier.
15470 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
15472 (Append_RACW_Bodies): New subprogram.
15473 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
15474 Add_Receiving_Stubs_To_Declarations functions.
15475 When expanding a package body, this list correspond to the
15476 statements in the HSS at the end of the pacakge.
15477 When expanding a package spec, this list correspond to the
15479 (Add_Receiving_Stubs_To_Declarations): Append the function
15480 registering the receiving stubs at the end of the 'Stmts' list.
15481 (RCI_Package_Locator): Pass the new Version generic formal when
15482 instantiating a RCI_Locator package.
15483 (Build_From_Any_Function): To compute the High bound for an
15484 unconstrained array actual, we add the Low bound with the length.
15485 Thus we must convert the low bound and the length to an appropriate
15486 type before doing the sum.
15487 (Build_Subprogram_Receiving_Stubs, PolyORB):
15488 * Retrieve the extra formals parameters at the
15489 end of the parameter stream.
15490 * Use Move_Any_Value to write back out parameters
15491 after executing the request as it is more efficient
15492 than Copy_Any_Value.
15493 * Build the any containing Extra Formals with the
15494 appropriate typecode.
15495 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
15496 empty Component_List.
15497 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
15498 the tree the declaration for an object that serves as actual parameter
15499 in server-side stubs.
15500 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
15501 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
15502 Use Build_Actual_Object_Declaration to prepare the actuals.
15503 (Add_Parameter_To_NVList): Set the parameter mode to In for
15504 Extra Constrained Parameters.
15505 (Build_General_Calling_Stubs): Set the parameter type to boolean for
15506 Extra Constrained parameters.
15507 (Build_To_Any_Function, Build_From_Any_Function,
15508 Built_TypeCode_Function): When Typ is implicit, call the correct
15509 function with the first not implicit parent type.
15510 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
15511 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
15512 typecode from the Etype. Therefore we retrieve the correct typecode
15513 with a call to Get_Any_Type.
15514 (Copy_Specification): Do controlling formal type substitution based on
15515 Is_Controlling_Formal flag, instead of caller-provided object type.
15516 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
15517 a RACW primitive operation, we might get a subprogram declaration for an
15518 ancestor of the RACW designated type (not for the designated type
15519 itself), in the case where this operation is inherited. In this case we
15520 have no easy means of determining the original tagged type for which
15521 the primitive was declared, so instead we now rely on
15522 Copy_Specification to use the Is_Controlling_Formal flag to determine
15523 which formals require type substitution.
15525 2007-04-06 Robert Dewar <dewar@adacore.com>
15526 Ed Schonberg <schonberg@adacore.com>
15528 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
15529 GNAT.Current_Exception are not allowed if pragma Restrictions
15530 (No_Exception_Propagation) is set and in any case make the associated
15531 handler unsuitable as a target for a local raise statement.
15532 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
15533 run-time subprogram CW_Membership by call to Build_CW_Membership.
15534 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
15535 by a function call, a temporary must be created before expanding the
15536 Constructor_Call itself, to prevent out-of-order elaboration in the
15537 back-end when stack checking is enabled..
15539 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15541 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
15542 result are the bounds of the left operand, not the right.
15544 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15547 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
15548 discriminant defaults.
15549 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
15550 (Make_Component_List_Attributes): Ditto.
15552 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15553 Bob Duff <duff@adacore.com>
15555 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
15556 an association with a box as providing a value even though the
15557 initialization procedure for the type is not available.
15558 (Resolve_Record_Aggregate): Check that a choice of an association with a
15559 box corresponds to a component of the type.
15560 (Resolve_Record_Aggregate): Split Is_Abstract flag into
15561 Is_Abstract_Subprogram and Is_Abstract_Type.
15563 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
15566 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
15567 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
15568 called only when appropriate.
15570 2007-04-06 Olivier Hainque <hainque@adacore.com>
15572 * g-alleve.ads (Low Level Vector type definitions): Map each to the
15573 associated vector view instead of all to the unsigned char view.
15575 * g-altcon.adb (Generic_Conversions): New internal generic package,
15576 offering facilities for all the Vector/View conversion routines
15577 implemented by this unit.
15578 (To_View/To_Vector - all versions): Reimplemented in a systematic
15579 manner, using the internal Generic_Conversions facilities.
15581 2007-04-06 Pascal Obry <obry@adacore.com>
15583 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
15585 (Create): Free the source string before storing the new one.
15587 2007-04-06 Vincent Celier <celier@adacore.com>
15589 * g-debpoo.adb (Validity): New package with a complete new
15590 implementation of subprograms Is_Valid and Set_Valid.
15591 (Is_Valid): Move to local package Validity
15592 (Set_Valid): Move to local package Validity
15594 2007-04-06 Arnaud Charlet <charlet@adacore.com>
15595 Pablo Oliveira <oliveira@adacore.com>
15597 * g-expect.adb (Get_Command_Output): When expanding the output buffer
15598 we must ensure that there is enough place for the new data we are going
15601 2007-04-06 Thomas Quinot <quinot@adacore.com>
15603 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
15606 2007-04-06 Jose Ruiz <ruiz@adacore.com>
15607 Vincent Celier <celier@adacore.com>
15609 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
15610 (Stack_String): Add this String that contains the name of the Stack
15611 package in the project file.
15612 (Packages_To_Check_By_Stack): Add this list that contains the packages
15613 to be checked by gnatstack, which are the naming and the stack packages.
15614 (Check_Files): If no .ci files were specified for gnatstack we add all
15615 the .ci files belonging to the projects, including binder generated
15617 (Non_VMS_Usage): Document that gnatstack accept project file switches.
15618 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
15619 Add gnatstack to the list of commands that use project file related
15620 switches, and get the single attribute Switches from the stack package
15621 in a project file when calling gnatstack. Parse the -U flag for
15622 processing files belonging to all projects in the project tree.
15623 Remove all processing for command Setup
15625 * prj-attr.adb: Add new package Stack with single attribute Switches
15627 * vms_conv.ads (Command_Type): Add command Stack.
15628 Move to body declarations that are only used in the body: types Item_Id,
15629 Translation_Type, Item_Ptr, Item and its subtypes.
15631 * vms_conv.adb: (Initialize): Add data for new command Stack.
15632 Add declarations moved from the spec: types Item_Id, Translation_Type,
15633 Item_Ptr, Item and its subtypes.
15634 (Cargs_Buffer): New table
15635 (Cargs): New Boolean global variable
15636 (Process_Buffer): New procedure to create arguments
15637 (Place): Put character in table Buffer or Cargs_Buffer depending on the
15639 (Process_Argument): Set Cargs when processing qualifiers for GNAT
15641 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
15642 empty, for table Cargs_Buffer.
15643 (Initialize): Remove component Setup in Command_List
15645 2007-04-06 Vincent Celier <celier@adacore.com>
15647 * gprep.adb (Process_Files.Process_One_File): Use full file name when
15648 issuing pragma Source_Reference.
15650 2007-04-06 Emmanuel Briot <briot@adacore.com>
15652 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
15653 [[:xdigit:]] character class.
15654 Also raise an exception when an invalid character class is used.
15656 2007-04-06 Pascal Obry <obry@adacore.com>
15658 * i-cstrea.ads: (fopen): Add encoding parameter.
15660 Change reference from a-sysdep.c to sysdep.c in comment.
15661 Update copyright notice.
15662 This set of patch add support for the encoding form parameter.
15664 * mingw32.h (S2WSU): New macro to convert from a string to a
15665 wide-string using the UTF-8 encoding. The S2WS macro supports now only
15666 standard 8bits encoding.
15667 (WS2SU): As above but converting from wide-sring to string.
15668 This is needed as it is necessary to have access to both versions in the
15669 runtime for the form parameter encoding support.
15670 This set of patch add support for the encoding form parameter.
15671 (S2WS): Improve implementation to handle cases where the filename is not
15672 UTF-8 encoded. In this case we default to using the current code page
15673 for the conversion.
15675 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
15676 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
15677 the constants defined in adaint.h.
15678 (fopen): Add encoding parameter.
15681 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
15682 encoding. This is needed for the Reset routine (freopen low level-call).
15684 * s-fileio.adb (Open): Decode encoding form parameter and set the
15685 corresponding encoding value into AFCB structure.
15686 (Reset): Pass the encoding value to freopen.
15687 (Close): Move the call to Lock_Task to the beginning of the procedure.
15689 2007-04-06 Geert Bosch <bosch@adacore.com>
15690 Robert Dewar <dewar@adacore.com>
15692 * i-fortra.ads: Add Double_Complex type.
15694 * impunit.adb: (Is_Known_Unit): New function
15695 Add Gnat.Byte_Swapping
15697 Add new Ada 2005 units
15698 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
15699 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
15700 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
15701 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
15703 * impunit.ads (Is_Known_Unit): New function
15705 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
15706 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
15707 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
15708 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
15709 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
15710 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
15713 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
15715 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
15717 2007-04-06 Eric Botcazou <botcazou@adacore.com>
15718 Arnaud Charlet <charlet@adacore.com>
15720 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
15721 __gnat_adjust_context_for_raise.
15722 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
15723 implementation of floating point operations as native x86 targets.
15724 So the FPU should be initialized in the same way using finit. Fix
15725 floating point operations accuracy issues.
15726 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
15727 member in struct sigaction, so as to avoid warning for incompatible
15730 2007-04-06 Serguei Rybin <rybin@adacore.com>
15732 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
15733 switches from previously loaded tree
15735 2007-04-06 Thomas Quinot <quinot@adacore.com>
15737 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
15738 cases where a given dependency has a body or not.
15739 (Write_With_File_Names): New subprogram, common code for the two cases
15742 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15743 Javier Miranda <miranda@adacore.com>
15745 * lib-xref.ads, lib-xref.adb:
15746 Modify the loop that collects type references, to include interface
15747 types that the type implements. List each of these interfaces when
15748 building the entry for the type.
15749 (Generate_Definition): Initialize component Def and Typ of new entry
15750 in table Xrefs, to avoid to have these components unitialized.
15751 (Output_References): Split Is_Abstract flag into
15752 Is_Abstract_Subprogram and Is_Abstract_Type.
15753 (Generate_Reference): Add barrier to do not generate the warning
15754 associated with Ada 2005 entities with entities generated by the
15757 2007-04-06 Robert Dewar <dewar@adacore.com>
15758 Arnaud Charlet <charlet@adacore.com>
15759 Vincent Celier <celier@adacore.com>
15761 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
15762 Update 'Exception Handling Control' chapter which was outdated.
15763 Minor fix to documentation of -gnatwq
15764 Remove section "Adapting the Run Time to a New C++ Compiler" because
15765 it is now obsolete.
15766 Add passage on need of -nostart-files in some non-ada-main cases.
15767 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
15768 Update documentation about Interfacing with C++
15769 Add documentation for new gnatmake switch -p
15770 Add missing protocol part in URLs.
15772 Document pragma Compile_Time_Error
15773 Add documentation for Object_Size indicating that stand alone
15774 objects can have a larger size in some cases.
15775 Add node for GNAT.Byte_Swapping, GNAT.SHA1
15776 Update reference to the Ravenscar profile.
15777 Document pragma Unreferenced_Objects
15779 * gnat-style.texi: Fix typo
15781 2007-04-06 Vincent Celier <celier@adacore.com>
15783 * mlib.adb (Building_Library): Only output "building a library..." in
15786 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
15787 files in verbose mode.
15789 * mlib-utl.adb (Ar): Only output the first object files when not in
15791 (Gcc): Do not display all the object files if not in verbose mode, only
15794 2007-04-06 Robert Dewar <dewar@adacore.com>
15796 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
15797 it no longer destroys the contents of Name_Buffer or Name_Len and
15798 non-standard and invalid names are handled better.
15799 (Get_Decoded_Name_String): Improve performance by using
15800 Name_Has_No_Encodings flag in the name table.
15801 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
15802 Used for debugging printouts.
15804 2007-04-06 Robert Dewar <dewar@adacore.com>
15805 Javier Miranda <miranda@adacore.com>
15806 Bob Duff <duff@adacore.com>
15808 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
15809 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
15810 there is no need to generate always a record_definition_node in case
15811 of synchronized interface types.
15812 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
15813 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
15814 illegal in Ada 95, in cases where it is legal. Change the warnings to
15815 errors in other cases. Don't give the error unless the "not null"
15816 parses properly. Correct the source position at which the error occurs.
15817 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
15818 P_Null_Exclusion, to suppress "not null" warnings.
15819 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
15820 associated goto statements.
15822 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
15825 * scans.ads (Type_Token_Location): New flag
15827 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
15828 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
15829 P_Null_Exclusion, to suppress "not null" warnings.
15831 2007-04-06 Robert Dewar <dewar@adacore.com>
15832 Javier Miranda <miranda@adacore.com>
15833 Bob Duff <duff@adacore.com>
15834 Vincent Celier <celier@adacore.com>
15836 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
15837 (Extensions_Allowed): No longer sets Ada_Version
15838 Entry for pragma Unreferenced_Objects
15840 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
15841 system.tasking if pragma priority used in a procedure
15842 (Analyze_Pragma, case Warning): Handle dot warning switches
15843 (Process_Compile_Time_Warning_Or_Error): New procedure
15844 (Analyze_Pragma): Add processing for Compile_Time_Error
15845 Add support for extra arguments External_Name and Link_Name.
15846 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
15847 (Process_Import_Or_Interface): Add support for the use of pragma Import
15849 (Extensions_Allowed): No longer affects Ada_Version
15850 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
15851 Is_Abstract_Type. Make sure these are called only when appropriate.
15852 Add processing for pragma Unreferenced_Objects
15854 * snames.h, snames.ads, snames.adb: Add entry for pragma
15856 Add new standard name Minimum_Binder_Options for new gprmake
15857 Add new standard names for gprmake: Archive_Suffix,
15858 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
15859 Library_Support, Library_Version_Options,
15860 Shared_Library_Minimum_Options,
15861 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
15862 Change Name_Call to Name_uCall so that it cannot clash with a legal
15864 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
15865 Append C_Plus_Plus to convention identifiers as synonym for CPP
15866 Add new standard names Stack and Builder_Switches
15867 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
15868 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
15869 Run_Path_Option, Toolchain_Version.
15870 Entry for pragma Unreferenced_Objects
15872 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
15873 switches, without repetition of "eD". Make sure that last character of
15874 -gnatep= switch is not taken as -gnat switch character.
15875 Complete rewrite of circuit for handling saving compilation options
15876 Occasioned by need to support dot switchs for -gnatw, but cleans up
15878 -gnatX does not affect Ada_Version
15879 Include -gnatyA in -gnatg style switches
15881 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
15882 warnings on return objects.
15883 (Warn_On_Useless_Assignment): Exclude warnings on return objects
15884 (Set_Dot_Warning_Switch): New procedure
15885 (Check_References): Add missing case of test for
15886 Has_Pragma_Unreferenced_Objects
15887 (Output_Unreferenced_Messages): Implement effect of new pragma
15888 Unreferenced_Objects, remove special casing of limited controlled
15891 2007-04-06 Vincent Celier <celier@adacore.com>
15893 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
15894 the default project path, initially done during elaboration of the
15896 If the prefix returned by Sdefault is null, get the prefix from a call
15897 to Executable_Prefix_Path.
15898 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
15901 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
15902 canonical directory name to open the directory from which files are
15904 (Record_Other_Sources): Idem.
15905 (Locate_Directory): Add the possibility to create automatically missing
15906 directories when Setup_Projects is True.
15907 Call Locate_Directory so that the directory will be created when
15908 Setup_Projects is True, for object dir, library dir, library ALI dir,
15909 library source copy dir and exec dir.
15911 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
15914 2007-04-06 Robert Dewar <dewar@adacore.com>
15916 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
15917 Use First/Next_Component_Or_Discriminant
15918 (Analyze_Record_Representation_Clause):
15919 Use First/Next_Component_Or_Discriminant
15920 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
15921 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
15922 definition if type is unconstrained.
15923 (Adjust_Record_For_Reverse_Bit_Order): New procedure
15924 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
15925 Is_Abstract_Subprogram and Is_Abstract_Type.
15926 (Adjust_Record_For_Reverse_Bit_Order): New procedure
15928 * repinfo.adb (List_Record_Info): Use First/
15929 Next_Component_Or_Discriminant.
15931 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
15934 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
15935 Include -gnatyA in default switches
15937 * opt.ads: (Warn_On_Non_Local_Exception): New flag
15938 (Warn_On_Reverse_Bit_Order): New flag
15939 (Extensions_Allowed): Update the documentation.
15940 (Warn_On_Questionable_Missing_Parens): Now on by default
15942 * usage.adb: Add documentation of -gnatw.x/X switches
15943 Document new -gnatyA style switch
15944 -gnatq warnings are on by default
15946 2007-04-06 Ed Falis <falis@adacore.com>
15948 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
15949 full word is no longer compared twice.
15951 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15953 * sem_ch10.adb (Install_Limited_Context_Clauses.
15954 Expand_Limited_With_Clause): Use a new copy of selector name in the
15955 call to Make_With_Clause. This fixes the tree structure for ASIS
15956 purposes. Nothing is changed in the compiler behaviour.
15957 (Process_Body_Clauses): Handle properly use clauses whose prefix is
15958 a package renaming.
15959 (Install_Limited_With_Clauses): Do not install non-limited view when it
15960 is still incomplete.
15962 2007-04-06 Ed Schonberg <schonberg@adacore.com>
15963 Gary Dismukes <dismukes@adacore.com>
15965 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
15966 when capturing size information, instead of base type, which for a
15967 formal array type will be the unconstrained type.
15968 (Analyze_Formal_Object_Declaration): Add check for illegal default
15969 expressions for a formal in object of a limited type.
15970 (Instantiate_Object): Ditto.
15971 (Check_Formal_Package_Instance): Skip entities that are formal objects,
15972 because they were defaulted in the formal package and no check applies
15974 (Check_Formal_Package_Instance): Extend conformance check to other
15975 discrete types beyond Integer.
15976 (Process_Default): Copy directly the unmatched formal. A generic copy
15977 has already been performed in Analyze_Formal_Package.
15978 (Analyze_Associations): If a formal subprogram has no match, check for
15979 partial parametrization before looking for a default, to prevent
15981 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
15982 not set the instantiation environment before analyzing the actuals.
15983 Fixes regression on 8515-003 with implementation of AI-133.
15984 Set_Instance_Env checks whether the generic unit is a predefined
15985 unit, in which case the instance must be analyzed with the latest Ada
15986 mode. This setting must take place after analysis of the actuals,
15987 because the actuals must be analyzed and frozen in the Ada mode extant
15988 outside of the current instantiation.
15989 (Save_Env, Restore_Env): Preserve and restore the configuration
15990 parameters so that predefined units can be compiled in the proper Ada
15992 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
15993 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
15994 and Is_Abstract_Type.
15995 (Analyze_Formal_Package): For better error recovery, Add exception
15996 handler to catch Instantion_Error, which can be raised in
15997 Analyze_Associations
15999 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16000 Bob Duff <duff@adacore.com>
16001 Gary Dismukes <dismukes@adacore.com>
16003 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
16004 prefix type is a discriminated subtype of the type of the formal.
16005 (Analyze_Allocator): Collect all coextensions regardless of the context.
16006 Whether they can be allocated statically is determined in exp_ch4.
16007 (Analyze_Selected_Component): If the prefix is a limited view and the
16008 non-limited view is available, use the non-limited one.
16009 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
16010 therefore illegal), suggest a qualified expression rather than a type
16011 conversion, because a type conversion would be illegal in this context.
16012 (Anayze_Allocator): Trace recursively all nested allocators so that all
16013 coextensions are on the corresponding list for the root. Do no mark
16014 coextensions if the root allocator is within a declaration for a stack-
16015 allocated object, because the access discriminants will be allocated on
16017 (Analyze_Call): Remove restriction on calls to limited functions for the
16018 cases of generic actuals for formal objects, defaults for formal objects
16019 and defaults for record components.
16020 (Analyze_Allocator): Before analysis, chain coextensions on the proper
16021 element list. Their expansion is delayed until the enclosing allocator
16022 is processed and its finalization list constructed.
16023 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
16024 for an operation with the given name among the primitive operations of
16025 the corresponding record type.
16026 (Analyze_Selected_Component): If the prefix is a task type that
16027 implements an interface, and there is no entry with the given name,
16028 check whether there is another primitive operation (e.g. a function)
16030 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
16031 properly the indexing of a function call written in prefix form, where
16032 the function returns an array type, and all parameters of the function
16033 except the first have defaults.
16034 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
16035 the original operands, rather than relocating them, for efficiency and
16036 to work properly when an operand is overloaded.
16037 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
16038 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
16039 (Analyze_Selected_Component): If the prefix is a private extension, only
16040 scan the visible components, not those of the full view.
16041 (Try_Primitive_Operation): If the operation is a procedure, collect all
16042 possible interpretations, as for a function, because in the presence of
16043 classwide parameters several primitive operations of the type can match
16044 the given arguments.
16046 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16047 Robert Dewar <dewar@adacore.com>
16049 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
16050 tag-indeterminate call to an abstract function, when the left-hand side
16052 (Analyze_Loop_Statement): Improve detection of infinite loops
16054 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16055 Thomas Quinot <quinot@adacore.com>
16057 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
16058 out of Analyze_Package_Declaration, because processing must be applied
16059 to package bodies as well, for deferred constants completed by pragmas.
16060 (Analyze_Package_Declaration): When the package declaration being
16061 analyzed does not require an explicit body, call Check_Completion.
16062 (May_Need_Implicit_Body): An implicit body is required when a package
16063 spec contains the declaration of a remote access-to-classwide type.
16064 (Analyze_Package_Body): If the package contains RACWs, append the
16065 pending subprogram bodies generated by exp_dist at the end of the body.
16066 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
16067 Is_Abstract_Subprogram and Is_Abstract_Type.
16068 (Preserve_Full_Attributes): The full entity list is not an attribute
16069 that must be preserved from full to partial view.
16071 * sem_dist.adb (Add_RAS_Dereference_TSS):
16072 Change primitive name to _Call so it cannot clash with any legal
16073 identifier, and be special-cased in Check_Completion.
16074 Mark the full view of the designated type for the RACW associated with
16075 a RAS as Comes_From_Source to get proper view switching when installing
16076 private declarations.
16077 Provite a placeholder nested package body along with the nested spec
16078 to have a place for Append_RACW_Bodies to generate the calling stubs
16079 and stream attributes.
16081 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16082 Robert Dewar <dewar@adacore.com>
16084 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
16085 that is a limited view, check the non-limited view if available.
16086 (Undefined): Refine error message for missing with of Text_IO
16087 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
16088 to distinguish real missing with cases.
16089 Fix format of all missing with messages
16090 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
16091 renaming as body when renamed entity is abstract.
16093 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16094 Javier Miranda <miranda@adacore.com>
16096 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
16097 predicate recursive, to handle complex expressions on literals whose
16098 spurious ambiguity comes from the abstract interpretation of some
16100 (Interface_Present_In_Ancestor): Add support to concurrent record
16102 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
16103 Is_Abstract_Subprogram and Is_Abstract_Type.
16105 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16106 Javier Miranda <miranda@adacore.com>
16108 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
16109 dereference of a local object R created as a reference to another
16110 object O, use the access level of O.
16111 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
16112 rather than local Same_Formal_Type, to check whether protected operation
16113 overrides an inherited one.
16114 (Same_Formal_Type): New predicate, used when matching signatures of
16115 overriding synchronized operations, to handle the case when a formal
16116 has a type that is a generic actual.
16117 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
16118 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
16119 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
16120 syntactic ambiguities involving indexing of function calls that return
16122 (Abstract_Interface_List): New subprogram that returns the list of
16123 abstract interfaces associated with a concurrent type or a
16124 concurrent record type.
16125 (Interface_Present_In_Parent): New subprogram used to check if a
16126 given type or some of its parents implement a given interface.
16127 (Collect_Abstract_Interfaces): Add support for concurrent types
16128 with interface types.
16129 (Has_Abstract_Interfaces): Add support for concurrent types with
16131 (Is_Parent): New subprogram that determines whether E1 is a parent
16132 of E2. For a concurrent type its parent is the first element of its
16133 list of interface types; for other types this function provides the
16134 same result than Is_Ancestor.
16135 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
16136 (Collect_Synchronized_Interfaces): Removed because the subprogram
16137 Collect_Abstract_Interfaces provides this functionality.
16138 (Collect_Abstract_Interfaces): Minor update to give support to
16139 concurrent types and thus avoid undesired code duplication.
16140 (Get_Subprogram_Entity): Handle entry calls.
16141 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
16143 (Enter_Name): Do not give -gnatwh hiding warning for record component
16144 entities, they never result in hiding.
16146 2007-04-06 Ed Schonberg <schonberg@adacore.com>
16147 Robert Dewar <dewar@adacore.com>
16149 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
16150 to chain nested components that are allocators for access discriminants
16151 of the enclosing object.
16152 Add N_Push and N_Pop nodes
16153 New field Exception_Label added
16154 (Local_Raise_Statements): New field in N_Exception_Handler_Node
16155 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
16156 (Is_Coextension): New flag for allocators, to mark allocators that
16157 correspond to access discriminants of dynamically allocated objects.
16158 (N_Block_Statement): Document the fact that the corresponding entity
16159 can be an E_Return_Statement.
16160 (Is_Coextension): New flag for allocators.
16161 Remove all code for DSP option
16163 * sprint.ads, sprint.adb: Display basic information for class_wide
16164 subtypes. Add handling of N_Push and N_Pop nodes
16166 2007-04-06 Arnaud Charlet <charlet@adacore.com>
16168 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
16169 before propagating exception.
16171 2007-04-06 Olivier Hainque <hainque@adacore.com>
16173 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
16174 an address always within the call instruction from a return address.
16176 2007-04-06 Olivier Hainque <hainque@adacore.com>
16177 Eric Botcazou <botcazou@adacore.com>
16179 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
16180 expression with a COMPOUND_EXPR including the call instead of emitting
16181 the call directly here.
16182 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
16183 high bound is constant and the slice is empty. Tidy.
16184 (tree_transform, case N_Op_Not): Handle properly the case where the
16185 operation applies to a private type whose full view is a modular type.
16186 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
16187 Address_Clause, use the associated Expression as the GNAT tree
16188 representing the choice value to ensure the corresponding GCC tree is
16189 of the proper kind.
16190 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
16191 instead of just the operands, as the base GCC stabilize_reference does.
16192 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
16193 requested; otherwise fail.
16194 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
16196 2007-04-06 Thomas Quinot <quinot@adacore.com>
16198 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
16199 implementation of UI_Div.
16200 (UI_Div): Reimplement as a call to UI_Div_Rem.
16201 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
16202 remainder, avoiding the cost of a multiplication and a subtraction.
16203 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
16204 provides both quotient and remainder in a single computation.
16205 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
16206 functions for uint.
16207 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
16208 is undefined if the given n is not inversible.
16210 2007-04-06 Olivier Hainque <hainque@adacore.com>
16212 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
16213 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
16216 2007-04-06 Eric Botcazou <botcazou@adacore.com>
16217 Olivier Hainque <hainque@adacore.com>
16219 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
16220 when updating the contents of the old pointer to an unconstrained array.
16221 (end_subprog_body): Set error_gnat_node to Empty.
16222 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
16223 (unchecked_convert): For subtype to base type conversions, require that
16224 the source be a subtype if it is an integer type.
16225 (builtin_decls): New global, vector of available builtin functions.
16226 (gnat_pushdecl): Add global builtin function declaration nodes to the
16227 builtin_decls list.
16228 (gnat_install_builtins): Adjust comments.
16229 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
16230 calling gnat_pushdecl, so that it knows when it handed a builtin
16231 function declaration node.
16232 (builtin_decl_for): Search the builtin_decls list.
16234 2007-04-06 Eric Botcazou <botcazou@adacore.com>
16236 * s-stchop-vxworks.adb:
16237 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
16239 2007-04-06 Robert Dewar <dewar@adacore.com>
16240 Arnaud Charlet <charlet@adacore.com>
16242 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
16244 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
16246 Add mention of -Sev (set initialize_scalars option from environment
16247 variable at run time) in gnatbind usage message.
16249 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
16251 * fname-uf.ads: Minor comment fix
16253 * osint.ads: Change pragma Elaborate to Elaborate_All
16255 * par-load.adb: Add documentation.
16257 * sem_cat.ads, sem_cat.adb: Minor code reorganization
16259 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
16261 * s-secsta.ads: Extra comments
16263 * s-soflin.ads: Minor comment fixes
16265 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
16267 * s-wchcon.ads: Minor comment addition
16269 * treepr.adb: Minor change in message
16270 (Print_Name,Print_Node): Make these debug printouts more robust: print
16271 "no such..." instead of crashing on bad input.
16273 2007-03-30 Rafael Ávila de Espíndola <espindola@google.com>
16275 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
16276 instead of gnat_signed_or_unsigned_type.
16277 * utils.c (gnat_signed_or_unsigned_type): Remove.
16278 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
16279 * gigi.h (gnat_signed_or_unsigned_type): Remove
16281 2007-03-09 Roger Sayle <roger@eyesopen.com>
16283 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
16284 fold with the result of buildN.
16285 * decl.c (gnat_to_gnu_entity): Likewise.
16286 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
16287 * utils.c (finish_record_type, merge_sizes, max_size, convert):
16289 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
16290 nonbinary_modular_operation, build_binary_op, build_unary_op,
16291 build_cond_expr): Likewise.
16293 * utils.c (convert): Use fold_build1 when casting values to void.
16294 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
16295 fold_convert instead of convert when appropriate.
16297 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
16299 * Make-lang.in: Add install-pdf target as copied from
16300 automake v1.10 rules.
16302 2007-02-28 Andreas Schwab <schwab@suse.de>
16304 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
16305 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
16306 (doc/gnat-style.info): Likewise.
16308 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
16310 * gnat-style.texi: Standardize title page.
16311 * gnat_rm.texi: Likewise.
16312 * gnat_ugn.texi: Likewise.
16314 2007-02-25 Mark Mitchell <mark@codesourcery.com>
16316 * decl.c (annotate_value): Adjust for refactoring of tree_map
16319 2007-02-24 Mark Mitchell <mark@codesourcery.com>
16321 * decl.c (annotate_value): Adjust for refactoring of tree_map
16324 2007-02-21 Ed Schonberg <schonberg@adacore.com>
16327 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
16328 untagged derived type, add hidden components to keep discriminant
16329 layout consistent, when a given discriminant of the derived type
16330 constraints several discriminants of the parent type.
16332 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
16333 Sandra Loosemore <sandra@codesourcery.com>
16335 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
16336 build the call expression.
16337 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
16338 * utils.c (max_size) <tcc_exceptional>: Delete.
16339 <tcc_vl_exp>: New case.
16340 <tcc_expression>: Delete CALL_EXPR subcase.
16341 (build_global_cdtor): Use build_call_nary instead of build3.
16342 * utils2.c (build_call_1_expr): Likewise.
16343 (build_call_2_expr): Likewise.
16344 (build_call_0_expr): Likewise.
16345 (build_call_alloc_dealloc): Likewise.
16347 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
16349 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
16350 get_action_description_for): Replace _Unwind_Word with _uleb128_t
16351 and _Unwind_SWord with _sleb128_t.
16353 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
16355 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
16356 * decl.c: Include gt-ada-decl.h.
16357 (annotate_value_cache): New.
16358 (annotate_value): Use it instead of TREE_COMPLEXITY.
16360 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
16362 * misc.c, utils2.c: Fix comment typos.
16364 2007-01-24 Roger Sayle <roger@eyesopen.com>
16366 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
16367 TREE_CONSTANT_OVERFLOW.
16368 (allocatable_size_p, annotate_value): Likewise.
16369 * trans.c (gnat_to_gnu): Likewise.
16370 * utils.c (unchecked_convert): Likewise.
16371 * utils2.c (build_simple_component_ref): Likewise.
16373 2007-01-23 Richard Guenther <rguenther@suse.de>
16376 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
16377 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
16378 (gnatboot3): Likewise.
16379 (GNATBIND): Do not define.
16380 * Makefile.in (GNATBIND): Do not define.
16382 2007-01-08 Richard Guenther <rguenther@suse.de>
16384 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
16385 * trans.c (gnat_to_gnu): Likewise.
16387 2006-12-07 Geoffrey Keating <geoffk@apple.com>
16389 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
16390 * adaint.c: Likewise.
16392 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
16394 Merge from gimple-tuples-branch:
16395 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
16397 * ada-tree.h (lang_tree_node): Handle gimple tuples.
16398 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
16399 GIMPLE_MODIFY_STMT.
16401 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
16403 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
16404 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
16407 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
16410 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
16411 if the initializer takes into account the padding.
16413 2006-11-11 Richard Guenther <rguenther@suse.de>
16415 * trans.c (maybe_stabilize_reference): Remove handling of
16416 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
16418 2006-11-05 Arnaud Charlet <charlet@adacore.com>
16421 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
16422 (To_Target_Priority): New function.
16424 2006-10-31 Robert Dewar <dewar@adacore.com>
16426 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
16427 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
16428 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
16429 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
16430 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
16431 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
16432 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
16433 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
16434 a-szbzha.adb: Minor reformatting. Fix header.
16436 * a-numaux-x86.adb: Add parentheses for use of unary minus
16437 * a-ngcefu.adb: Supply missing parentheses for unary minus
16438 * a-ngcoty.adb: Add parens for use of unary minus
16439 * a-ngelfu.adb: Add missing parens for unary minus
16440 * a-tifiio.adb: Add parentheses for uses of unary minus
16442 2006-10-31 Robert Dewar <dewar@adacore.com>
16443 Bob Duff <duff@adacore.com>
16444 Ed Schonberg <schonberg@adacore.com>
16446 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
16447 with multiplying operator.
16448 (Expected_Type_Is_Any_Real): New function to determine from the Parent
16449 pointer whether the context expects "any real type".
16450 (Resolve_Arithmetic_Op): Do not give an error on calls to the
16451 universal_fixed "*" and "/" operators when they are used in a context
16452 that expects any real type. Also set the type of the node to
16453 Universal_Real in this case, because downstream processing requires it
16454 (mainly static expression evaluation).
16455 Reword some continuation messages
16456 Add some \\ sequences to continuation messages
16457 (Resolve_Call): Refine infinite recursion case. The test has been
16458 sharpened to eliminate some false positives.
16459 Check for Current_Task usage now includes entry barrier, and is now a
16460 warning, not an error.
16461 (Resolve): If the call is ambiguous, indicate whether an interpretation
16462 is an inherited operation.
16463 (Check_Aggr): When resolving aggregates, skip associations with a box,
16464 which are priori correct, and will be replaced by an actual default
16465 expression in the course of expansion.
16466 (Resolve_Type_Conversion): Add missing support for conversion from
16467 a class-wide interface to a tagged type. Minor code cleanup.
16468 (Valid_Tagged_Converion): Add support for abstact interface type
16470 (Resolve_Selected_Component): Call Generate_Reference here rather than
16471 during analysis, and use May_Be_Lvalue to distinguish read/write.
16472 (Valid_Array_Conversion): New procedure, abstracted from
16473 Valid_Conversion, to incorporate accessibility checks for arrays of
16474 anonymous access types.
16475 (Valid_Conversion): For a conversion to a numeric type occurring in an
16476 instance or inlined body, no need to check that the operand type is
16477 numeric, since this has been checked during analysis of the template.
16478 Remove legacy test for scope name Unchecked_Conversion.
16480 * sem_res.ads: Minor reformatting
16482 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
16483 (PE_Current_Task_In_Entry_Body): New exception code
16484 (SE_Restriction_Violation): Removed, not used
16486 * a-except.ads: Update comments.
16488 * types.h, types.ads: Add definition for Validity_Check
16489 (PE_Current_Task_In_Entry_Body): New exception code
16490 (SE_Restriction_Violation): Removed, not used
16492 2006-10-31 Thomas Quinot <quinot@adacore.com>
16494 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
16497 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
16498 Jose Ruiz <ruiz@adacore.com>
16500 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
16501 part of Ada.Calendar: all subprogram raise Unimplemented.
16502 (Split_W_Offset): Temp function body, raising Unimplemented
16504 * a-calend.ads, a-calend-vms.ads:
16505 Add imported variable Invalid_TZ_Offset used to designate targets unable
16506 to support time zones.
16507 (Unimplemented): Temporary function raised by the body of new
16509 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
16510 unit provides handling of leap seconds and is used by the new Ada 2005
16511 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
16512 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
16513 version returns an extra value which is the offset to UTC.
16515 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
16516 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
16517 (Split_W_Offset): New function body.
16518 (Time_Of): When a date is close to UNIX epoch, compute the time for
16519 that date plus one day (that amount is later substracted after
16520 executing mktime) so there are no problems with time zone adjustments.
16522 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
16524 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
16525 a-catizo.ads, a-catizo.adb: New files.
16527 * impunit.adb: Add new Ada 2005 entries
16529 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
16530 Rename all occurences of "__gnat_localtime_r" to
16531 "__gnat_localtime_tzoff".
16532 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
16533 zone data and calculate the GMT offset.
16534 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
16535 Use the field "tm_gmtoff" to extract the GMT offset.
16536 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
16537 the external variable "timezone" to calculate the GMT offset.
16539 2006-10-31 Arnaud Charlet <charlet@adacore.com>
16540 Jose Ruiz <ruiz@adacore.com>
16542 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
16543 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
16544 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
16545 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
16546 System.Any_Priority to a POSIX priority on the target.
16548 * system-linux-ia64.ads:
16549 Extend range of Priority types on Linux to use the whole range made
16550 available by the system.
16552 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
16553 function maps from System.Any_Priority to a POSIX priority on the
16555 (PTHREAD_PRIO_PROTECT): Set real value.
16556 (PTHREAD_PRIO_INHERIT): Now a function.
16557 (SIGCPUFAIL): New signal.
16558 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
16559 are documented as reserved by the OS.
16561 * system-aix.ads: Use the full range of priorities provided by the
16564 * s-taprop-posix.adb: Call new function To_Target_Priority.
16565 (Set_Priority): Take into account Task_Dispatching_Policy and
16566 Priority_Specific_Dispatching pragmas when determining if Round Robin
16567 must be used for scheduling the task.
16569 * system-linux-x86_64.ads, system-linux-x86.ads,
16570 system-linux-ppc.ads: Extend range of Priority types on Linux to use
16571 the whole range made available by the system.
16573 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
16574 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
16575 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
16576 when deallocating the TCB in order to avoid potential references to
16578 (Set_Priority): Take into account Task_Dispatching_Policy and
16579 Priority_Specific_Dispatching pragmas when determining if Round Robin
16580 or FIFO within priorities must be used for scheduling the task.
16582 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
16583 the Thread field (to be used internally by the run-time system) and the
16584 kernel-level task id in the LWP field (to be used by the debugger).
16585 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
16586 instance, and propagate the current task options to the spawned task.
16587 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
16588 (Initialize): Set Round Robin dispatching when the corresponding pragma
16591 2006-10-31 Robert Dewar <dewar@adacore.com>
16593 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
16594 system-linux-hppa.ads, system-hpux-ia64.ads,
16595 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
16596 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
16597 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
16598 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
16599 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
16600 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
16601 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
16602 Default_Bit_Order) to kill constant condition warnings for references
16605 2006-10-31 Vincent Celier <celier@adacore.com>
16606 Eric Botcazou <ebotcazou@adacore.com>
16608 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
16609 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
16610 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
16611 Ext_To, when building the library file name
16613 * mlib-tgt-vxworks.adb: ditto.
16614 (Get_Target_Suffix): Add support for x86 targets.
16616 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
16618 * mlib-tgt-darwin.adb:
16619 Use Append_To, instead of Ext_To, when building the library file name
16620 (Flat_Namespace): New global variable.
16621 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
16622 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
16623 (Link_Shared_Libgcc): Delete.
16624 (Build_Dynamic_Library): Adjust for above changes.
16626 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
16628 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
16630 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
16631 (Initialize): Add type conversions required by above change.
16633 2006-10-31 Jose Ruiz <ruiz@adacore.com>
16635 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
16636 (getpid): New body for this function that uses the underlying taskIdSelf
16637 function for VxWorks 5 and VxWorks 6 in kernel mode.
16638 (unsigned_int): New type, modular to allow logical bit operations.
16639 (taskOptionsGet): New imported function.
16641 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
16642 field to be compliant with the type used by the corresponding operating
16645 2006-10-31 Pascal Obry <obry@adacore.com>
16646 Eric Botcazou <ebotcazou@adacore.com>
16647 Vincent Celier <celier@adacore.com>
16649 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
16650 ASCII version of the registry API. This is needed as the GNAT runtime
16651 is now UNICODE by default.
16653 (get_gcc_version): Do not hardcode the return value.
16654 (__gnat_file_time_name): On Windows properly set the default returned
16655 value to -1 which corresponds to Invalid_Time.
16656 (__gnat_fopen): New routine. A simple wrapper on all plateforms
16657 except on Windows where it does conversion for unicode support.
16658 (__gnat_freopen): Idem.
16659 (__gnat_locate_exec_on_path): If environment variable PATH does not
16660 exist, return a NULL pointer
16662 * adaint.h: (__gnat_fopen): Declare.
16663 (__gnat_freopen): Likewise.
16665 * mingw32.h (_tfreopen): Define this macro here for older MingW
16667 Activate the unicode support on platforms using a MingW runtime
16668 version 3.9 or newer.
16670 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
16671 This is needed for proper unicode support on Windows.
16674 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
16675 Nicolas Setton <setton@adacore.com>
16676 Olivier Hainque <hainque@adacore.com>
16677 Gary Dismukes <dismukes@adacore.com>
16679 * gigi.h: (tree_code_for_record_type): Declare.
16680 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
16681 (get_global_renaming_pointers): Rename to
16682 invalidate_global_renaming_pointers.
16683 (static_ctors): Delete.
16684 (static_dtors): Likewise.
16685 (gnat_write_global_declarations): Declare.
16686 (create_var_decl): Adjust descriptive comment to indicate that the
16687 subprogram may return a CONST_DECL node.
16688 (create_true_var_decl): Declare new function, similar to
16689 create_var_decl but forcing the creation of a VAR_DECL node.
16690 (get_global_renaming_pointers): Declare.
16691 (add_global_renaming_pointer): Likewise.
16693 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
16695 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
16696 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
16698 (gnat_to_gnu_entity): Remove From_With_Type from computation for
16700 <E_Access_Type>: Use the Non_Limited_View as the full view of the
16701 designated type if the pointer comes from a limited_with clause. Make
16702 incomplete designated type if it is in the main unit and has a freeze
16704 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
16705 Underlying_Full_View similarly. Return earlier if the full view already
16706 has an associated tree.
16707 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
16708 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
16709 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
16710 reference type built for objects with an address clause.
16711 Use create_true_var_decl with const_flag set for
16712 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
16714 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
16715 for Character and Wide_Character types. This info is read by the
16716 dwarf-2 writer, and is needed to be able to use the command "ptype
16717 character" in the debugger.
16718 (gnat_to_gnu_entity): When generating a type representing
16719 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
16720 so that debug writers can distinguish it from ordinary integers.
16721 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
16722 addition to TREE_READONLY to assert the constantness of variables for
16723 elaboration purposes.
16724 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
16725 parameters to call new Einfo function First_Formal_With_Extras.
16726 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
16727 protected type with its corresponding discriminant, to obtain a usable
16729 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
16730 for a multiple elaboration of the "equivalent" type.
16731 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
16732 into record_global_renaming_pointer.
16733 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
16734 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
16735 <E_Array_Subtype>: Likewise.
16736 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
16737 incomplete subtypes and incomplete subtypes of incomplete types visible
16738 through a limited with clause.
16739 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
16740 the base index type for the maximum size of the array only if they are
16742 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
16743 expression into a SAVE_EXPR if stabilization failed.
16745 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
16746 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
16747 by lower level compilation passes.
16748 (gnat_genericize): New function, lowering a function body to GENERIC.
16749 Turn the type of RESULT_DECL into a real reference type if the decl
16750 has been marked DECL_BY_REFERENCE, and adjust references to the latter
16752 (gnat_genericize_r): New function. Tree walking callback for
16754 (convert_from_reference, is_byref_result): New functions. Helpers for
16756 (create_type_decl): Call gnat_pushdecl before calling
16757 rest_of_decl_compilation, to make sure that field TYPE_NAME of
16758 type_decl is properly set before calling the debug information writers.
16759 (write_record_type_debug_info): The heuristics which compute the
16760 alignment of a field in a variant record might not be accurate. Add a
16761 safety test to make sure no alignment is set to a smaller value than
16762 the alignment of the field type.
16763 (make_dummy_type): Use the Non_Limited_View as the underlying type if
16764 the type comes from a limited_with clause. Do not loop on the full view.
16765 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
16766 (dummy_node_table): New global variable, moved from decl.c.
16767 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
16768 (save_gnu_tree): Use above macros.
16769 (get_gnu_tree): Likewise.
16770 (present_gnu_tree): Likewise.
16771 (init_dummy_type): New function, moved from decl.c. Use above macros.
16772 (make_dummy_type): Likewise.
16773 (tree_code_for_record_type): New function extracted from make_dummy_type
16774 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
16775 (static_ctors): Change it to a vector, make static.
16776 (static_dtors): Likewise.
16777 (end_subprog_body): Adjust for above change.
16778 (build_global_cdtor): Moved from trans.c.
16779 (gnat_write_global_declarations): Emit global constructor and
16780 destructor, and call cgraph_optimize before emitting debug info for
16781 global declarations.
16782 (global_decls): New global variable.
16783 (gnat_pushdecl): Store the global declarations in global_decls, for
16785 (gnat_write_global_declarations): Emit debug information for global
16787 (create_var_decl_1): Former create_var_decl, with an extra argument to
16788 state whether the creation of a CONST_DECL is allowed.
16789 (create_var_decl): Behavior unchanged. Now a wrapper around
16790 create_var_decl_1 allowing CONST_DECL creation.
16791 (create_true_var_decl): New function, similar to create_var_decl but
16792 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
16793 (create_field_decl): Do not always mark the field as addressable
16794 if its type is an aggregate.
16795 (global_renaming_pointers): New static variable.
16796 (add_global_renaming_pointer): New function.
16797 (get_global_renaming_pointers): Likewise.
16799 * misc.c (gnat_dwarf_name): New function.
16800 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
16801 (gnat_post_options): Add comment about structural alias analysis.
16802 (gnat_parse_file): Do not call cgraph_optimize here.
16803 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
16805 * trans.c (process_freeze_entity): Don't abort if we already have a
16806 non dummy GCC tree for a Concurrent_Record_Type, as it might
16807 legitimately have been elaborated while processing the associated
16808 Concurrent_Type prior to this explicit freeze node.
16809 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
16810 exception handler volatile if it is of variable size.
16811 (process_type): Remove bypass for types coming from a limited_with
16813 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
16814 actual, convert the corresponding gnu_actual to the real destination
16815 type when necessary.
16816 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
16817 originally TREE_READONLY but whose elaboration cannot be performed
16819 Part of fix for F504-021.
16820 (tree_transform, subprogram cases): Change loops on formal parameters to
16821 call new Einfo function First_Formal_With_Extras.
16822 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
16823 stemming from type conversion for the lhs.
16824 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
16825 number of bits per unit for components of records.
16826 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
16827 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
16828 with At_End_Proc after the SJLJ EH cleanup.
16829 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
16831 (elaborate_all_entities): Do not retest type_annotate_only.
16832 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
16833 result type of an abstract subprogram, which may be an itype associated
16834 with an anonymous access result (related to AI-318-02).
16835 (build_global_cdtor): Move to utils.c.
16836 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
16837 this choice is not a null tree nor an integer constant.
16838 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
16839 on the body of elaboration routines instead of mark_unvisited.
16840 (add_stmt): Do not mark the tree.
16841 (add_decl_expr): Tweak comment.
16842 (mark_unvisited): Delete.
16843 (unshare_save_expr): New static function.
16844 (call_to_gnu): Issue an error when making a temporary around a
16845 procedure call because of non-addressable actual parameter if the
16846 type of the formal is by_reference.
16847 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
16848 after building the elaboration routine.
16850 2006-10-31 Bob Duff <duff@adacore.com>
16852 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
16853 as finalization-started, so we can raise Program_Error on 'new'.
16855 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
16856 collection has already started.
16858 * s-finimp.ads (Collection_Finalization_Started): Added new special
16859 flag value for indicating that a collection's finalization has started.
16861 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
16862 create a task whose master has already waited for dependent tasks.
16864 2006-10-31 Robert Dewar <dewar@adacore.com>
16866 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
16868 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
16869 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
16870 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
16871 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
16872 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
16873 a-except-2005.ads: Add pragma Preelaborable_Warning
16875 2006-10-31 Robert Dewar <dewar@adacore.com>
16876 Jose Ruiz <ruiz@adacore.com>
16878 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
16880 * ali.adb (Get_Name): Properly handle scanning of wide character names
16881 encoded with brackets notation.
16882 (Known_ALI_Lines): Add S lines to this list.
16883 (Scan_ALI): Acquire S (priority specific dispatching) lines.
16884 New flag Elaborate_All_Desirable in unit table
16886 * ali.ads (Priority_Specific_Dispatching): Add this range of
16887 identifiers to be used for Priority_Specific_Dispatching table entries.
16888 (ALIs_Record): Add First_Specific_Dispatching and
16889 Last_Specific_Dispatching that point to the first and last entries
16890 respectively in the priority specific dispatching table for this unit.
16891 (Specific_Dispatching): Add this table for storing each S (priority
16892 specific dispatching) line encountered in the input ALI file.
16893 New flag Elaborate_All_Desirable in unit table
16895 * bcheck.adb: (Check_Configuration_Consistency): Add call to
16896 Check_Consistent_Dispatching_Policy.
16897 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
16898 verifying that the use of Priority_Specific_Dispatching,
16899 Task_Dispatching_Policy, and Locking_Policy is consistent across the
16902 * bindgen.adb: (Public_Version_Warning): function removed.
16903 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
16904 required information from ALI files in order to initialize the table
16905 containing the specific dispatching policy.
16906 (Gen_Adainit_Ada): Generate the variables required for priority specific
16907 dispatching entries (__gl_priority_specific_dispatching and
16908 __gl_num_specific_dispatching).
16909 (Gen_Adainit_C): Generate the variables required for priority specific
16910 dispatching entries (__gl_priority_specific_dispatching and
16911 __gl_num_specific_dispatching).
16912 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
16914 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
16915 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
16917 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
16918 a call to gnat_set_globals.
16919 Generate a string containing settings from
16920 Priority_Specific_Dispatching pragma entries.
16921 (Gen_Object_Files_Options): Do not include the runtime libraries when
16922 pragma No_Run_Time is specified.
16924 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
16925 consistency with s-intman-posix.adb.
16926 (__gnat_error_handler, case FreeBSD): Account for the fact that the
16927 handler is installed with SA_SIGINFO.
16928 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
16929 FreeBSD ZCX support, copied from Linux version.
16930 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
16931 sigfillset, and sigemptyset so the routines defined by MaRTE.
16932 (__gl_priority_specific_dispatching): Add this variable that stores the
16933 string containing priority specific dispatching policies in the
16935 (__gl_num_specific_dispatching): Add this variable that indicates the
16936 highest priority for which a priority specific dispatching pragma
16938 (__gnat_get_specific_dispatching): Add this routine that returns the
16939 priority specific dispatching policy, as set by a
16940 Priority_Specific_Dispatching pragma appearing anywhere in the current
16941 partition. The input argument is the priority number, and the result
16942 is the upper case first character of the policy name.
16943 (__gnat_set_globals): Now a dummy function.
16944 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
16945 mechargs instead of sigargs, as the latter can be retrieved from the
16946 former and sigargs is not what we want on ia64.
16947 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
16949 (__gnat_adjust_context_for_raise, ia64-vms): New function.
16950 (tasking_error): Remove unused symbol.
16951 (_abort_signal): Move this symbol to the IRIX specific part since this
16952 is the only target that uses this definition.
16953 (Check_Abort_Status): Move this symbol to the IRIX specific part since
16954 this is the only target that uses this definition.
16955 (Lock_Task): Remove unused symbol.
16956 (Unlock_Task): Remove unused symbol.
16958 * lib-writ.adb (Write_ALI): Output new S lines for
16959 Priority_Specific_Dispatching pragmas.
16960 Implement new flag BD for elaborate body desirable
16962 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
16963 (Specific_Dispatching): Add this table for storing the entries
16964 corresponding to Priority_Specific_Dispatching pragmas.
16965 Document new BD flag for elaborate body desirable
16967 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
16970 2006-10-31 Javier Miranda <miranda@adacore.com>
16972 * a-tags.ads, a-tags.adb:
16973 (Predefined_DT): New function that improves readability of the code.
16974 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
16975 Inherit_DT): Use the new function Predefined_DT to improve code
16977 (Register_Interface_Tag): Update assertion.
16978 (Set_Interface_Table): Update assertion.
16979 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
16980 determining progenitor interfaces in Tags.
16981 (Inherit_CPP_DT): New subprogram.
16983 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
16984 analysis of the thunk code.
16985 (Expand_Interface_Conversion): Handle run-time conversion of
16986 access to class wide types.
16987 (Expand_Dispatching_Call): When generating the profile for the
16988 subprogram itype for a dispatching operation, properly terminate the
16989 formal parameters chaind list (set the Next_Entity of the last formal
16991 (Collect_All_Interfaces): Removed. This routine has been moved to
16992 sem_util and renamed as Collect_All_Abstract_Interfaces.
16993 (Set_All_DT_Position): Hidden entities associated with abstract
16994 interface primitives are not taken into account in the check for
16995 3.9.3(10); this check is done with the aliased entity.
16996 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
16997 interfacing with CPP by default.
16998 (Expand_Interface_Conversion): Add missing support for static conversion
16999 from an interface to a tagged type.
17000 (Collect_All_Interfaces): Add new out formal containing the list of
17001 abstract interface types to cleanup the subprogram Make_DT.
17002 (Make_DT): Update the code to generate the table of interfaces in case
17003 of abstract interface types.
17004 (Is_Predefined_Dispatching_Alias): New function that returns true if
17005 a primitive is not a predefined dispatching primitive but it is an
17006 alias of a predefined dispatching primitive.
17007 (Make_DT): If the ancestor of the type is a CPP_Class and we are
17008 compiling under full ABI compatibility mode we avoid the generation of
17009 calls to run-time services that fill the dispatch tables because under
17010 this mode we currently inherit the dispatch tables in the IP subprogram.
17011 (Write_DT): Emit an "is null" indication for a null procedure primitive.
17012 (Expand_Interface_Conversion): Use an address as the type of the formal
17013 of the internally built function that handles the case in which the
17014 target type is an access type.
17016 2006-10-31 Robert Dewar <dewar@adacore.com>
17018 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
17020 2006-10-31 Robert Dewar <dewar@adacore.com>
17022 * bindusg.ads, bindusg.adb:
17023 Change to package and rename procedure as Display, which
17024 now ensures that it only outputs usage information once.
17026 2006-10-31 Jose Ruiz <ruiz@adacore.com>
17028 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
17031 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
17034 2006-10-31 Robert Dewar <dewar@adacore.com>
17035 Ed Schonberg <schonberg@adacore.com>
17037 * treepr.adb: Use new subtype N_Membership_Test
17039 * checks.ads, checks.adb: Add definition for Validity_Check
17040 (Range_Or_Validity_Checks_Suppressed): New function
17041 (Ensure_Valid): Test Validity_Check suppressed
17042 (Insert_Valid_Check): Test Validity_Check suppressed
17043 (Insert_Valid_Check): Preserve Do_Range_Check flag
17044 (Validity_Check_Range): New procedure
17045 (Expr_Known_Valid): Result of membership test is always valid
17046 (Selected_Range_Checks): Range checks cannot be applied to discriminants
17047 by themselves. Disabling those checks must also be done for task types,
17048 where discriminants may be used for the bounds of entry families.
17049 (Apply_Address_Clause_Check): Remove side-effects if address expression
17050 is non-static and is not the name of a declared constant.
17051 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
17052 Code cleanup and new error messages.
17053 (Enable_Range_Check): Test for some cases of suppressed checks
17054 (Generate_Index_Checks): Suppress index checks if index checks are
17055 suppressed for array object or array type.
17056 (Apply_Selected_Length_Checks): Give warning for compile-time detected
17057 length check failure, even if checks are off.
17058 (Ensure_Valid): Do not generate a check on an indexed component whose
17059 prefix is a packed boolean array.
17060 * checks.adb: (Alignment_Checks_Suppressed): New function
17061 (Apply_Address_Clause_Check): New procedure, this is a completely
17062 rewritten replacement for Apply_Alignment_Check
17063 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
17064 we request a discriminal value only in case of discriminants.
17065 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
17066 assignments where the target subtype is unconstrained and the target
17067 object is a parameter or dereference (other aliased cases are known
17068 to be unconstrained).
17070 2006-10-31 Robert Dewar <dewar@adacore.com>
17072 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
17073 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
17074 vms_conv.adb: Fix bad table increment values (much too small)
17076 * table.adb (Realloc): Make sure we get at least some new elements
17077 Defends against silly small values for table increment
17079 2006-10-31 Robert Dewar <dewar@adacore.com>
17080 Ed Schonberg <schonberg@adacore.com>
17081 Bob Duff <duff@adacore.com>
17083 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
17084 entities. Move other fields around to make this possible
17085 (Is_Derived_Type): Add missing call to Is_Type.
17086 (Extra_Formals): New function for subprograms, entries, subprogram
17088 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
17089 (First_Formal_With_Extras): New function for subprogs, entries, subp
17091 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
17092 Add node information for E_Return_Statement.
17093 (Elaborate_Body_Desirable): New flag
17094 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
17095 to be Is_Inherently_Limited_Type, because return-by-reference has
17096 no meaning in Ada 2005.
17097 (E_Return_Statement): New entity kind.
17098 (Return_Applies_To): Field of E_Return_Statement.
17099 (Is_Return_Object): New flag in object entities.
17100 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
17101 (Must_Have_Preelab_Init): New flag
17102 (Known_To_Have_Preelab_Init): New flag
17103 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
17104 (Is_Visible_Formal): New flag on entities in formal packages.
17105 (Low_Bound_Known): New flag
17106 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
17108 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
17109 output when Id is an incomplete subtype.
17111 2006-10-31 Robert Dewar <dewar@adacore.com>
17113 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
17114 Avoid abbreviation Creat
17115 (Finalize): List all sources in extended mail source if -gnatl
17117 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
17118 (Finalize): Implement new -gnatl=xxx switch to output listing to file
17119 (Set_Specific_Warning_On): New procedure
17120 (Set_Specific_Warning_Off): New procedure
17121 Add implementation of new insertion \\
17122 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
17123 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
17125 (Error_Msg_Internal): Make sure that we set Last_Killed to
17126 True when a message from another package is suppressed.
17127 Implement insertion character ~ (insert string)
17128 (First_Node): Minor adjustments to get better placement.
17131 Implement new -gnatl=xxx switch to output listing to file
17134 Implement new -gnatl=xxx switch to output listing to file
17136 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
17137 (Commands_To_Stdout): New flag
17138 Implement new -gnatl=xxx switch to output listing to file
17139 New switch Dump_Source_Text
17140 (Warn_On_Deleted_Code): New warning flag for -gnatwt
17141 Define Error_Msg_Line_Length
17142 (Warn_On_Assumed_Low_Bound): New switch
17144 * osint.ads, osint.adb
17145 (Normalize_Directory_Name): Fix bug.
17146 Implement new -gnatl=xxx switch to output listing to file
17147 (Concat): Removed, replaced by real concatenation
17148 Make use of concatenation now allowed in compiler
17149 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
17150 we find the 'lib' or 'bin' directory even when the tool has been
17151 invoked with a relative path.
17152 (Executable_Name): New function taking string parameters.
17154 * osint-c.ads, osint-c.adb:
17155 Implement new -gnatl=xxx switch to output listing to file
17157 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
17160 Implement new -gnatl=xxx switch to output listing to file
17161 Recognize new -gnatL switch
17162 (no longer keep in old warning about old style usage)
17163 Use concatenation to simplify code
17164 Recognize -gnatjnn switch
17165 (Scan_Front_End_Switches): Clean up handling of -gnatW
17166 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
17168 2006-10-31 Robert Dewar <dewar@adacore.com>
17170 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
17171 (Set_Specific_Warning_Off): New procedure
17172 (Warning_Specifically_Suppressed): New function
17173 (Validate_Specific_Warnings): New procedure
17174 (Output_Msg_Text): Complete rewrite to support -gnatjnn
17176 * err_vars.ads: Implement insertion character ~ (insert string)
17178 2006-10-31 Bob Duff <duff@adacore.com>
17179 Ed Schonberg <schonberg@adacore.com>
17181 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
17182 the parent part is a build-in-place function call, generate assignments.
17183 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
17184 are build-in-place function calls.
17185 (Replace_Self_Reference): New subsidiary of
17186 Make_OK_Assignment_Statement, to replace an access attribute that is a
17187 self-reference into an access to the appropriate component of the
17188 target object. Generalizes previous mechanism to handle self-references
17189 nested at any level.
17190 (Is_Self_Referential_Init): Remove, not needed.
17191 (Is_Self_Referential_Init): New predicate to simplify handling of self
17192 referential components in record aggregates.
17193 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
17194 check for presence of entity before checking for self-reference.
17195 (Has_Default_Init_Comps): Return True if a component association is a
17196 self-reference to the enclosing type, which can only come from a
17197 default initialization.
17198 (Make_OK_Assignment_Statement): If the expression is of the form
17199 Typ'Acc, where Acc is an access attribute, the expression comes from a
17200 default initialized self-referential component.
17201 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
17202 that has been derived from several abstract interfaces we must also
17203 initialize the tags of the secondary dispatch tables.
17205 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17206 Thomas Quinot <quinot@adacore.com>
17207 Javier Miranda <miranda@adacore.com>
17208 Robert Dewar <dewar@adacore.com>
17211 (Expand_Access_To_Protected_Op): If the context indicates that an access
17212 to a local operation may be transfered outside of the object, create an
17213 access to the wrapper operation that must be used in an external call.
17214 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
17215 target, pass the Valid attribute applied to a floating-point prefix on
17216 to the back end without expansion.
17217 (Storage_Size): Use the new run-time function Storage_Size to retrieve
17218 the allocated storage when it is specified by a per-object expression.
17219 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
17220 Nothing to do here, the attribute has been rewritten during semantic
17222 (Expand_Attribute_Reference): Handle expansion of the new Priority
17224 (Find_Fat_Info): Handle case of universal real
17225 (Expand_Access_To_Protected_Op): Fix use of access to protected
17226 subprogram from inside the body of a protected entry.
17227 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
17228 'Access and 'Unrestricted_Access, to transform the attribute reference
17229 into a fat pointer.
17230 (Is_Constrained_Aliased_View): New predicate to help determine whether a
17231 subcomponent's enclosing variable is aliased with a constrained subtype.
17232 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
17233 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
17234 an aliased prefix must be known to be constrained in order to use True
17235 for the attribute value, and now it's possible for some aliased views
17236 to be unconstrained.
17238 2006-10-31 Robert Dewar <dewar@adacore.com>
17240 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
17241 (Expand_Entity_Reference): Correct error of not handling subprogram
17242 formals in current_value processing.
17244 2006-10-31 Javier Miranda <miranda@adacore.com>
17245 Robert Dewar <dewar@adacore.com>
17246 Ed Schonberg <schonberg@adacore.com>
17247 Gary Dismukes <dismukes@adacore.com>
17249 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
17250 register in the final list objects containing class-wide interfaces;
17251 otherwise we incorrectly register the tag of the interface in the final
17253 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
17254 generate the wrapper if the parent primitive is abstract. This is
17255 required to report the correct error message.
17256 (Expand_N_Subtype_Indication): Do validity checks on range
17257 (Clean_Task_Names): If an initialization procedure includes a call to
17258 initialize a task (sub)component, indicate that the procedure will use
17259 the secondary stack.
17260 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
17261 compatibility for interfacing with CPP by default.
17262 (Expand_N_Object_Declaration): Only build an Adjust call when the
17263 object's type is a nonlimited controlled type.
17264 * exp_ch3.adb: Add with and use of Exp_Ch6.
17265 (Expand_N_Object_Declaration): Check for object initialization that is a
17266 call to build-in-place function and apply Make_Build_In_Place_Call_In_
17267 Object_Declaration to the call.
17268 (Freeze_Type): When the designated type of an RACW was not frozen at the
17269 point where the RACW was declared, validate the primitive operations
17270 with respect to E.2.2(14) when it finally is frozen.
17271 (Build_Initialization_Call,Expand_Record_Controller): Rename
17272 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
17273 return-by-reference has no meaning in Ada 2005.
17274 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
17275 to register tag of the immediate ancestor interfaces in the
17276 run-time structure.
17277 (Init_Secondary_Tags): Moved to the specification to allow the
17278 initialization of extension aggregates with abstract interfaces.
17279 (Build_Master_Renaming): Make public, for use by function declarations
17280 whose return type is an anonymous access type.
17281 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
17282 Insert_List_Before_And_Analyze after the generation of the specs
17283 associated with null procedures.
17284 (Expand_Tagged_Root): Update documentation in its specification.
17285 (Init_Secondary_Tags): Update documentation.
17286 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
17287 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
17288 then generate code to inherit the contents of the dispatch table
17289 directly from the ancestor.
17290 (Expand_Record_Controller): Insert controller component after tags of
17291 implemented interfaces.
17292 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
17293 create null procedure overridings when null procedures are inherited
17295 (Make_Null_Procedure_Specs): New procedure to generate null procedure
17296 declarations for overriding null primitives inherited from interfaces.
17297 (Is_Null_Interface_Procedure): New function in
17298 Make_Null_Procedure_Specs.
17299 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
17300 immediate ancestor of a tagged type is an abstract interface type we
17301 must generate the specification of the predefined primitives associated
17302 with controlled types (because the dispatch table of the ancestor is
17303 null and hence these entries cannot be inherited). This is required to
17304 elaborate well the dispatch table.
17306 2006-10-31 Javier Miranda <miranda@adacore.com>
17307 Ed Schonberg <schonberg@adacore.com>
17308 Bob Duff <duff@adacore.com>
17309 Gary Dismukes <dismukes@adacore.com>
17310 Robert Dewar <dewar@adacore.com>
17312 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
17314 (Expand_N_In): Do validity checks on range
17315 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
17316 (Expand_N_Allocator): For "new T", if the object is constrained by
17317 discriminant defaults, allocate the right amount of memory, rather than
17318 the maximum for type T.
17319 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
17320 when the allocator is initialized by a build-in-place call, since the
17321 allocator is already rewritten as a reference to the function result,
17322 and this prevents an unwanted duplication of the function call.
17323 Add with and use of Exp_Ch6.
17324 (Expand_Allocator_Expresssion): Check for an allocator whose expression
17325 is a call to build-in-place function and apply
17326 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
17327 untagged designated types).
17328 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
17329 optimization if source or target is biased.
17330 (Expand_N_Allocator): Add comments for case of an allocator within a
17331 function that returns an anonymous access type designating tasks.
17332 (Expand_N_Allocator): apply discriminant checks for access
17333 discriminants of anonymous access types (AI-402, AI-416)
17335 2006-10-31 Bob Duff <duff@adacore.com>
17336 Robert Dewar <dewar@adacore.com>
17337 Gary Dismukes <dismukes@adacore.com>
17338 Ed Schonberg <schonberg@adacore.com>
17340 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
17342 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
17343 (Expand_N_Assignment_Statement): Call
17344 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
17345 build-in-place function call. Currently, this can happen only for
17346 assignments that come from aggregates.
17347 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
17348 in order to alleviate the upward compatibility introduced by AI-318.
17349 (Expand_N_Extended_Return_Statement): Add support for handling the
17350 return object as a build-in-place result.
17351 (Expand_Non_Function_Return): Implement simple return statements nested
17352 within an extended return.
17353 (Enable_New_Return_Processing): Turn on the new processing of return
17355 (Expand_Non_Function_Return): For a return within an extended return,
17356 don't raise Program_Error, because Sem_Ch6 now gives a warning.
17357 (Expand_N_Extended_Return_Statement): Implement AI-318
17358 (Expand_Simple_Function_Return): Ditto.
17359 (Expand_N_If_Statement): Handle new -gnatwt warning
17360 (Expand_N_Case_Statement): Handle new -gnatwt warning
17361 (Expand_N_Assignment): Handle assignment to the Priority attribute of
17362 a protected object.
17363 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
17364 validity checking of assignments to elementary record components.
17365 (Expand_N_Return_Statement): return Class Wide types on the secondary
17366 stack independantly of their controlled status since with HIE runtimes,
17367 class wide types are not potentially controlled anymore.
17369 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
17372 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
17373 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
17374 it expects a block, procedure, or task. The return statement will get
17375 turned into a block, and Expand_Cleanup_Actions will happen then.
17377 2006-10-31 Robert Dewar <dewar@adacore.com>
17378 Ed Schonberg <schonberg@adacore.com>
17379 Bob Duff <duff@adacore.com>
17380 Gary Dismukes <dismukes@adacore.com>
17382 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
17384 (Expand_Inlined_Call): Tagged types are by-reference types, and
17385 therefore should be replaced by a renaming declaration in the expanded
17386 body, as is done for limited types.
17387 (Expand_Call): If this is a call to a function with dispatching access
17388 result, propagate tag from context.
17389 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
17391 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
17392 build-in-place when the right-hand side of an assignment is a
17393 build-in-place function call.
17394 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
17395 of the explicit dereference of the allocator to the result subtype of
17396 the build-in-place function. This is needed to satisfy type checking
17397 in cases where the caller's return object is created by an allocator for
17398 a class-wide access type and the type named in the allocator is a
17400 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
17401 conversion of the reference to the declared object to the result subtype
17402 of the build-in-place function. This is needed to satisfy type checking
17403 in cases where the declared object has a class-wide type. Also, in the
17404 class-wide case, change the type of the object entity to the specific
17405 result subtype of the function, to avoid passing a class-wide object
17406 without explicit initialization to the back end.
17407 (Register_Interface_DT_Entry): Moved outside the body of
17408 Freeze_Subprogram because this routine is now public; it is called from
17409 Check_Dispatching_Overriding to handle late overriding of abstract
17410 interface primitives.
17411 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
17412 adding an implicit access actual on a call to a build-in-place function.
17413 (Expand_Actuals): Test for an actual parameter that is a call to a
17414 build-in-place function and apply
17415 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
17416 (Is_Build_In_Place_Function): New function to determine whether an
17417 entity is a function whose calls should be handled as build-in-place.
17418 (Is_Build_In_Place_Function_Call): New function to determine whether an
17419 expression is a function call that should handled as build-in-place.
17420 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
17421 calls to build-in-place functions as the initialization of an allocator.
17422 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
17423 handling calls to build-in-place functions in contexts that do not
17424 involve init of a separate object (for example, actuals of subprogram
17426 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
17427 handling calls to build-in-place functions as the initialization of an
17428 object declaration.
17429 (Detect_Infinite_Recursion): Add explicit parameter Process to
17430 instantiation of Traverse_Body to avoid unreferenced warning.
17431 (Check_Overriding_Inherited_Interfaces): Removed.
17432 (Register_Interface_DT_Entry): Code cleanup.
17433 (Register_Predefined_DT_Entry): Code cleanup.
17434 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
17435 inlined statements if within a transient scope.
17436 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
17437 formal parameters with occurrences of actuals in inlined body, establish
17438 visibility on the proper view of the actual's subtype for the body's
17440 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
17441 compatibility mode and we have an imported CPP subprogram because
17442 for now we assume that imported CPP primitives correspond with
17443 objects whose constructor is in the CPP side (and therefore we
17444 don't need to generate code to register them in the dispatch table).
17445 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
17446 aligned selected component.
17447 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
17448 the actual of an in-mode parameter is a type conversion.
17449 (Expand_Actuals): If the call does not come from source and the actual
17450 is potentially misaligned, let gigi handle it rather than rejecting the
17451 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
17452 Class Wide types as returning by reference independantly of their
17453 controlled status since with HIE runtimes class wide types are not
17454 potentially controlled anymore.
17456 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17458 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
17459 references that are private components of the protected object.
17460 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
17461 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
17462 instantiation to deal with warnings.
17463 (Initialize_Protection): If expression for priority is non-static, use
17464 System_Priority as its expected type, in case the expression has not
17467 2006-10-31 Robert Dewar <dewar@adacore.com>
17469 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
17470 initialization of Homonym_Len.
17471 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
17472 names from fully qualified name. Fixes problem of duplicate
17473 external names differing only in the presence of such a block name.
17475 2006-10-31 Thomas Quinot <quinot@adacore.com>
17476 Pablo Oliveira <oliveira@adacore.com>
17478 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
17479 subprogram Ids, even if they are not yet assigned.
17480 (Build_Subprogram_Id): It is now this function that will take care of
17481 calling Assign_Subprogram_Ids if necessary.
17482 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
17483 should be done only once they are assigned.
17484 (Build_From_Any_Function, case of tagged types): Add missing call to
17486 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
17487 type for an RACW type.
17488 (Add_RACW_Features): When processing an RACW declaration for which the
17489 designated type is already frozen, enforce E.2.2(14) rules immediately.
17490 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
17491 special reordering of controlling formals.
17493 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
17494 associated stub type for an RACW type.
17496 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17498 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
17499 fixed-point operations in an integer context, i.e. as operands of a
17500 conversion to an integer type, indicate that result must be rounded.
17502 2006-10-31 Robert Dewar <dewar@adacore.com>
17504 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
17505 cases, pass the encoding method, since it is now required by the run
17508 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
17509 assumption that Str'First = 1.
17510 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
17511 it on to the Value_Wide_Wide_Character call.
17512 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
17513 properly handles a string of the form quote-encoded_wide_char-quote.
17515 * s-wchcnv.adb: Minor reformatting
17517 2006-10-31 Javier Miranda <miranda@adacore.com>
17519 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
17520 run-time membership test to ensure that the constructed object
17521 implements the target abstract interface.
17523 2006-10-31 Robert Dewar <dewar@adacore.com>
17525 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
17526 Machine_Attribute pragma internally to implement the user pragma.
17527 Add processing for pragma Interface so that it is now completely
17528 equivalent to pragma Import.
17530 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
17531 so that it can be applied to all entities, including record components
17532 and enumeration literals.
17533 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
17534 priority ranges are correct, verify compatibility against task
17535 dispatching and locking policies, and if everything is correct an entry
17536 is added to the table containing priority specific dispatching entries
17537 for this compilation unit.
17538 (Delay_Config_Pragma_Analyze): Delay processing
17539 Priority_Specific_Dispatching pragmas because when processing the
17540 pragma we need to access run-time data, such as the range of
17541 System.Any_Priority.
17542 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
17543 Allow pragma Unreferenced as a context item
17544 Add pragma Preelaborable_Initialization
17545 (Analyze_Pragma, case Interface): Interface is extended so that it is
17546 now syntactically and semantically equivalent to Import.
17547 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
17548 insertion characters.
17549 Add handling for Pragma_Wide_Character_Encoding
17550 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
17551 never supercedes a real restriction, and that a real restriction
17552 always supercedes a warning.
17553 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
17556 2006-10-31 Bob Duff <duff@adacore.com>
17557 Ed Schonberg <schonberg@adacore.com>
17558 Robert Dewar <dewar@adacore.com>
17560 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
17561 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
17562 Is_Inherently_Limited_Type, because return-by-reference has no meaning
17564 (Find_Node_To_Be_Wrapped): Use new method of determining the result
17565 type of the function containing a return statement, because the
17566 Return_Type field was removed. We now use the Return_Applies_To field.
17568 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
17569 (Build_Task_Image_Decl): If procedure is not called from an
17570 initialization procedure, indicate that function that builds task name
17571 uses the sec. stack. Otherwise the enclosing initialization procedure
17572 will carry the indication.
17573 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
17574 N_Object_Declaration instead.
17575 (Kill_Dead_Code): New interface to implement -gnatwt warning for
17576 conditional dead code killed, and change implementation accordingly.
17577 (Insert_Actions): Add N_Return_Object_Declaration case.
17578 Correct comment to mention N_Extension_Aggregate node.
17579 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
17580 attempts to save information for global variables which cannot be
17582 (Get_Current_Value_Condition): Handle conditions the other way round
17583 (constant on left). Also handle right operand of AND and AND THEN
17584 (Set_Current_Value_Condition): Corresponding changes
17585 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
17586 (Get_Current_Value_Condition): Handle simple boolean operands
17587 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
17588 (Get_Current_Value_Condition): If the variable reference is within an
17589 if-statement, does not appear in the list of then_statments, and does
17590 not come from source, treat it as being at unknown location.
17591 (Get_Current_Value_Condition): Enhance to allow while statements to be
17592 processed as well as if statements.
17593 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
17595 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
17596 of loop. This is safe now that we fixed Kill_Current_Values.
17597 (OK_To_Do_Constant_Replacement): Check whether current scope is
17598 Standard, before examining outer scopes.
17600 2006-10-31 Vincent Celier <celier@adacore.com>
17602 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
17603 When True, apply VMS treatment to children of packages A, G, I and S.
17606 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
17608 2006-10-31 Robert Dewar <dewar@adacore.com>
17609 Ed Schonberg <schonberg@adacore.com>
17611 * freeze.adb: Add handling of Last_Assignment field
17612 (Warn_Overlay): Supply missing continuation marks in error msgs
17613 (Freeze_Entity): Add check for Preelaborable_Initialization
17615 * g-comlin.adb: Add Warnings (Off) to prevent new warning
17617 * g-expect.adb: Add Warnings (Off) to prevent new warning
17619 * lib-xref.adb: Add handling of Last_Assignment field
17620 (Generate_Reference): Centralize handling of pragma Obsolescent here
17621 (Generate_Reference): Accept an implicit reference generated for a
17622 default in an instance.
17623 (Generate_Reference): Accept a reference for a node that is not in the
17624 main unit, if it is the generic body corresponding to an subprogram
17627 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
17629 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
17631 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
17633 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
17634 use clauses, to avoid messages on packages used to qualify, and also
17635 to avoid messages from obsolescent units.
17636 (Warn_On_Useless_Assignments): Don't generate messages for imported
17637 and exported variables.
17638 (Warn_On_Useless_Assignments): New procedure
17639 (Output_Obsolescent_Entity_Warnings): New procedure
17640 (Check_Code_Statement): New procedure
17642 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
17643 Change name Is_Ada_2005 to Is_Ada_2005_Only
17644 (Last_Assignment): New field for useless assignment warning
17646 2006-10-31 Olivier Hainque <hainque@adacore.com>
17648 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
17649 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
17651 2006-10-31 Bob Duff <duff@adacore.com>
17652 Robert Dewar <dewar@adacore.com>
17653 Ed Schonberg <schonberg@adacore.com>
17655 * g-awk.adb (Default_Session, Current_Session): Compile this file in
17656 Ada 95 mode, because it violates the new rules for AI-318.
17658 * g-awk.ads: Use overloaded subprograms in every case where we used to
17659 have a default of Current_Session. This makes the code closer to be
17660 correct for both Ada 95 and 2005.
17662 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
17663 code, relying on the fact that the compiler generates a warning
17664 instead of an error in -gnatg mode.
17666 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
17667 E_Return_Statement entity kind.
17668 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
17670 * par.adb (P_Interface_Type_Definition): Addition of one formal to
17671 report an error if the reserved word abstract has been previously found.
17672 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
17674 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
17675 parenthesized range attribute usage
17676 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
17678 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
17679 in the syntax for extended_return_statement. This is not in the latest
17680 RM, but the ARG is expected to issue an AI allowing this.
17681 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
17682 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
17683 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
17684 P_Return_Statement): Parse the new syntax for extended_return_statement.
17686 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
17687 Output_End_Missing): Add error-recovery code for the new
17688 extended_return_statement syntax; that is, the new E_Return entry on
17691 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
17692 limited to nonlimited, because otherwise we violate the new Ada 2005
17693 rules about returning limited types in function Create_AST_Handler in
17696 * sem.adb (Analyze): Add cases for new node kinds
17697 N_Extended_Return_Statement and N_Return_Object_Declaration.
17699 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
17700 type is in the same category as type of context before applying check,
17701 to prevent anomalies in instantiations.
17702 (Resolve_Aggregate): Remove test for limited components in aggregates.
17703 It's unnecessary in Ada 95, because if it has limited components, then
17704 it must be limited. It's wrong in Ada 2005, because limited aggregates
17706 (Resolve_Record_Aggregate): Move check for limited types later, because
17707 OK_For_Limited_Init requires its argument to have been resolved.
17708 (Get_Value): When copying the component default expression for a
17709 defaulted association in an aggregate, use the sloc of the aggregate
17710 and not that of the original expression, to prevent spurious
17711 elaboration errors, when the expression includes function calls.
17712 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
17713 were missing. We also didn't handle qualified expressions. Now also
17714 allow function calls. Use new common routine OK_For_Limited_Init.
17715 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
17716 with space can upper case letter).
17718 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
17719 Has_Static_Discriminants flag
17720 (Record_Type_Declaration): Diagnose an attempt to declare an interface
17721 type with discriminants.
17722 (Process_Range_Expr_In_Decl): Do validity checks on range
17723 (Build_Discriminant_Constraints): Use updated form of
17724 Denotes_Discriminant.
17725 (Process_Subtype): If the subtype is a private subtype whose full view
17726 is a concurrent subtype, introduce an itype reference to prevent scope
17728 (Build_Derived_Record_Type, Collect_Interface_Primitives,
17729 Record_Type_Declaration): The functionality of the subprograms
17730 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
17731 is now performed by a single routine.
17732 (Build_Derived_Record_Type): If the type definition includes an explicit
17733 indication of limitedness, then the type must be marked as limited here
17734 to ensure that any access discriminants will not be treated as having
17735 a local anonymous access type.
17736 (Check_Abstract_Overriding): Issue a detailed error message when an
17737 abstract subprogram was not overridden due to incorrect mode of its
17739 (Analyze_Private_Extension_Declaration): Add support for the analysis of
17740 synchronized private extension declarations. Verify that the ancestor is
17741 a limited or synchronized interface or in the generic case, the ancestor
17742 is a tagged limited type or synchronized interface and all progenitors
17743 are either limited or synchronized interfaces.
17744 Derived_Type_Declaration): Check for presence of private extension when
17745 dealing with synchronized formal derived types.
17746 Process_Full_View): Enchance the check done on the usage of "limited" by
17747 testing whether the private view is synchronized.
17748 Verify that a synchronized private view is completed by a protected or
17750 (OK_For_Limited_Init_In_05): New function.
17751 (Analyze_Object_Declaration): Move check for limited types later,
17752 because OK_For_Limited_Init requires its argument to have been resolved.
17753 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
17754 in order to alleviate the upward compatibility introduced by AI-318.
17755 (Constrain_Corresponding_Record): If the constraint is for a component
17756 subtype, mark the itype as frozen, to avoid out-of-scope references to
17757 discriminants in the back-end.
17758 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
17759 this subprogram against wrong sources.
17760 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
17761 discriminant of limited type completed with a protected type, when the
17762 discriminant is used to constrain a private component of the type, and
17763 expansion is disabled.
17764 (Find_Type_Of_Object): Do not treat a return subtype that is an
17765 anonymous subtype as a local_anonymous_type, because its accessibility
17766 level is the return type of the enclosing function.
17767 (Check_Initialization): In -gnatg mode, turn the error "cannot
17768 initialize entities of limited type" into a warning.
17769 (OK_For_Limited_Init): Return true for generated nodes, since it
17770 sometimes violates the legality rules.
17771 (Make_Incomplete_Declaration): If the type for which an incomplete
17772 declaration is created happens to be the currently visible entity,
17773 preserve the homonym chain when removing it from visibility.
17774 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
17775 inherited subprograms.
17776 (Access_Definition): If this is an access to function that is the return
17777 type of an access_to_function definition, context is a type declaration
17778 and the scope of the anonymous type is the current one.
17779 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
17780 incomplete subtype to the set of private dependents of the original
17782 (Constrain_Discriminated_Type): Emit an error message whenever an
17783 incomplete subtype is being constrained.
17784 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
17785 corresponding subtype of the full view of the original incomplete type.
17786 (Check_Incomplete): Properly detect invalid usage of incomplete types
17789 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
17791 * g-catiio.ads, g-catiio.adb (Value): New function.
17792 Given an input String, try and parse a valid Time value.
17794 2006-10-31 Vincent Celier <celier@adacore.com>
17796 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
17797 Integer_Address arithmetic, as in Set_Valid.
17799 2006-10-31 Arnaud Charlet <charlet@adacore.com>
17800 Robert Dewar <dewar@adacore.com>
17802 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
17803 handling executable extension manually and duplicating code.
17805 * make.adb: Implement new -S switch
17806 (Gnatmake): Use new function Osint.Executable_Name instead
17807 of handling executable extension manually.
17809 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
17810 is specified, the executable name ends with this suffix.
17811 Take advantage of Osint.Executable_Name instead of duplicating code.
17813 * switch-m.adb: Recognize new gnatmake -S switch
17815 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
17817 (Get_Target_Parameters): Set Executable_Extension_On_Target if
17820 * makeusg.adb: Add line for gnatmake -S switch
17822 2006-10-31 Vincent Celier <celier@adacore.com>
17824 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
17825 call it with -static-libgcc, as there are some platforms, such as
17826 Darwin, where one of these two switches is compulsory to link.
17828 2006-10-31 Vincent Celier <celier@adacore.com>
17830 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
17831 instead of ADA_PROJECT_PATH, for the project path.
17832 (Gnatls): When displaying the project path directories, use host dir
17835 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
17836 names in the project path, as absolute paths may correspond to
17837 multi-valued VMS logical names.
17839 2006-10-31 Vincent Celier <celier@adacore.com>
17841 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
17842 absolute path name.
17843 (Locate_Regular_File): Ditto
17844 (Change_Dir): Remove, no longer used
17845 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
17846 on Windows. Get it calling Get_Current_Dir.
17847 (OpenVMS): Remove imported boolean, no longer needed.
17848 (Normalize_Pathname)[VMS]: Do not resolve directory names.
17849 (Pid_To_Integer): New function to convert a Process_Id to Integer
17851 2006-10-31 Thomas Quinot <quinot@adacore.com>
17853 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
17854 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
17856 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
17859 2006-10-31 Robert Dewar <dewar@adacore.com>
17861 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
17862 initial letter o as a zero.
17864 2006-10-31 Robert Dewar <dewar@adacore.com>
17866 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
17868 2006-10-31 Robert Dewar <dewar@adacore.com>
17870 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
17872 (Layout_Variant_Record): Retrieve the discriminants from the entity
17873 rather than from the type definition, because in the case of a full
17874 type for a private type we need to take the discriminants from the
17876 (Layout_Component_List): When applying the Max operator to variants with
17877 a nonstatic size, check whether either operand is static and scale that
17878 operand from bits to storage units before applying Max.
17879 (Layout_Type): In VMS, if a C-convention access type has no explicit
17880 size clause (and does not inherit one in the case of a derived type),
17881 then the size is reset to 32 from 64.
17883 2006-10-31 Vincent Celier <celier@adacore.com>
17885 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
17886 its file has already been loaded, according to the unit being loaded,
17887 not to the current value of Multiple_Unit_Index.
17889 2006-10-31 Thomas Quinot <quinot@adacore.com>
17890 Eric Botcazou <ebotcazou@adacore.com>
17891 Arnaud Charlet <charlet@adacore.com>
17893 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
17894 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
17896 (a-except.o): Pass it to the compiler.
17897 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
17898 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
17899 a-calend-mingw.adb version.
17901 * Makefile.rtl: Added s-dsaser.
17902 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
17903 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
17904 Ada.Dispatching.Round_Robin.
17905 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
17907 * Make-lang.in: Remove all references to gt-ada-decl.h.
17908 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
17910 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
17911 Update dependencies.
17913 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
17915 2006-10-31 Vincent Celier <celier@adacore.com>
17917 * mlib-utl.adb (Initialized): Remove, no longer used
17918 (Initialize): Remove, no longer used
17919 (Ar): If Ar_Exec is null, get the location of the archive builder and,
17920 if there is one, the archive indexer. Fail if the archive builder cannot
17922 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
17925 2006-10-31 Ed Schonberg <schonberg@adacore.com>
17927 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
17928 Process_Body_Clauses): If the context of a body includes a use clause
17929 for P.Q then a with_clause for P in the same body is not redundant,
17930 even if the spec also has a with_clause on P.
17931 Add missing continuation mark to error msg
17932 (Build_Limited_Views): A limited view of a type is tagged if its
17933 declaration includes a record extension.
17934 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
17935 node, even if the subunit has errors. This avoids malfunction by
17936 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
17937 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
17938 generation of obsolescent messages for with statements (cannot do
17939 this too early, or we cannot implement avoiding the messages in the
17940 case of obsolescent units withing obsolescent units).
17941 (Install_Siblings): If the with_clause is on a remote descendant of
17942 an ancestor of the current compilation unit, find whether there is
17943 a sibling child unit that is immediately visible.
17944 (Remove_Private_With_Clauses): New procedure, invoked after completing
17945 the analysis of the private part of a nested package, to remove from
17946 visibility the private with_clauses of the enclosing package
17948 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
17949 now centralized in Generate_Reference.
17950 (Install_Limited_Context_Clauses): Remove superfluous error
17951 message associated with unlimited view visible through use
17952 and renamings. In addition, at the point in which the error
17953 is reported, we add the backslash to the text of the error
17954 to ensure that it is reported as a single error message.
17955 Use new // insertion for some continuation messages
17956 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
17957 to create implicit with_clause for parent unit mentioned in original
17958 limited_with_clause.
17959 (Install_Limited_With_Unit): Set entity of parent identifiers if the
17960 unit is a child unit. For ASIS queries.
17961 (Analyze_Subunit): If the subunit appears within a child unit, make all
17962 ancestor child units directly visible again.
17964 2006-10-31 Robert Dewar <dewar@adacore.com>
17966 * par-ch10.adb (P_Context_Clause): Minor error message fix
17968 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
17969 Javier Miranda <miranda@adacore.com>
17971 * par-ch12.adb: Grammar update and cleanup.
17972 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
17973 support for synchronized derived type definitions.
17974 Add the new actual Abstract_Present to every call to
17975 P_Interface_Type_Definition.
17976 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
17977 a formal object declaration with an access definition or a subtype mark
17978 with a null exclusion.
17979 (P_Generic_Association): Handle association with box, and others_choice
17980 with box, to support Ada 2005 partially parametrized formal packages.
17982 2006-10-31 Robert Dewar <dewar@adacore.com>
17983 Javier Miranda <miranda@adacore.com>
17985 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
17986 (P_Type_Declaration): Remove barrier against the reserved word "limited"
17987 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
17988 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
17989 private extensions.
17990 (P_Type_Declaration): Add the new actual Abstract_Present to every call
17991 to P_Interface_Type_Definition.
17992 (P_Interface_Type_Definition): Addition of one formal to report an error
17993 if the reserved word abstract has been previously found.
17994 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
17995 object renaming declaration with an access definition or subtype mark
17996 with a possible null exclusion.
17998 * par-ch9.adb: Minor error msg fix
18000 * par-load.adb: Add missing continuation mark to error msg
18002 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
18004 2006-10-31 Vincent Celier <celier@adacore.com>
18006 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
18007 unknown attribute in unknown package or in package that does not need
18009 (Parse_Package_Declaration): Do not issue warning for unknown package in
18012 2006-10-31 Vincent Celier <celier@adacore.com>
18014 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
18015 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
18018 2006-10-31 Vincent Celier <celier@adacore.com>
18020 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
18021 on VMS, change "__" to '.' before checking the name.
18022 (Record_Ada_Source): Always add the source file name in the list of
18023 of sources, even if it is not the first time, as it is for another
18025 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
18026 dot, instead of replacing only the first '_'.
18028 * prj-part.adb (Parse): Convert project file path to canonical form
18030 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
18031 extended, the project id of the project extending it is recorded in its
18032 data, even when it has already been processed as an imported project.
18034 2006-10-31 Robert Dewar <dewar@adacore.com>
18036 * repinfo.adb (List_Entities): Don't list entities from renaming
18039 2006-10-31 Arnaud Charlet <charlet@adacore.com>
18040 Robert Dewar <dewar@adacore.com>
18042 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
18043 only a restriction warning is active for the given restriction. This is
18044 desirable because we do not want to modify code in the case where only
18046 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
18047 causes overriding of real restrictions.
18048 Take advantage of new No_Restrictions constant.
18050 * raise.h: (__gnat_set_globals): Change profile.
18052 2006-10-31 Arnaud Charlet <charlet@adacore.com>
18054 * rtsfind.adb: Remove s-polint from comment as it exists no more.
18057 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
18058 Move all the entities in obsolete package System.PolyORB_Interface to
18059 System.Partition_Interface.
18060 (RE_Storage_Size): New function in System.Tasking.
18061 (RE_Get_Ceiling): New entity.
18062 (RE_Set_Ceiling): New entity.
18063 (RO_PE_Get_Ceiling): New entity.
18064 (RO_RE_Set_Ceiling): New entity.
18065 (Inherit_CPP_DT): New entity
18067 2006-10-31 Robert Dewar <dewar@adacore.com>
18069 * scng.adb (Scan, case of numeric literal): Better msg for identifier
18070 starting with a digit.
18072 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18073 Thomas Quinot <quinot@adacore.com>
18074 Javier Miranda <miranda@adacore.com>
18075 Gary Dismukes <dismukes@adacore.com>
18077 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
18078 properly an attempt to apply Unchecked_Access to a protected operation.
18079 (OK_Self_Reference): New subprogram to check the legality of an access
18080 attribute whose prefix is the type of an enclosing aggregate.
18081 Generalizes previous mechanism to handle attribute references nested
18082 arbitrarily deep within the aggregate.
18083 (Analyze_Access_Attribute): An access attribute whose prefix is a type
18084 can appear in an aggregate if this is a default-initialized aggregate
18085 for a self-referential type.
18086 (Resolve_Attribute, case Access): Ditto.
18087 Add support for new implementation defined attribute Stub_Type.
18088 (Eval_Attribute, case Attribute_Stub_Type): New case.
18089 (Analyze_Attribute, case Attribute_Stub_Type): New case.
18090 (Stream_Attribute_Available): Implement using new subprogram from
18091 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
18092 Has_Specified_Stream_Attribute flag.
18093 Disallow Storage_Size and Storage_Pool for access to subprogram
18094 (Resolve_Attribute, case 'Access et al): Take into account anonymous
18095 access types of return subtypes in extended return statements. Remove
18096 accessibility checks on anonymous access types when Unchecked_Access is
18098 (Analyze_Attribute): Add support for the use of 'Class to convert
18099 a class-wide interface to a tagged type.
18100 Add support for the attribute Priority.
18101 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
18102 whether the designated type is discriminated with a constrained partial
18103 view and require static matching in that case.
18104 Add local variable Des_Btyp. The Designated_Type
18105 of an access to incomplete subtype is either its non-limited view if
18106 coming from a limited with or its etype if regular incomplete subtype.
18108 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
18109 Fix predicate to identify and allow cases of (expander-generated)
18110 references to tag of designated object of a RACW.
18111 (Validate_Static_Object_Name): In Ada 2005, a formal object is
18112 non-static, and therefore cannot appear as a primary in a preelaborable
18114 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
18115 Has_Read_Write_Attributes.
18116 (Has_Read_Write_Attributes): Reimplement in termes of
18117 Has_Stream_Attribute_Definition.
18118 (Missing_Read_Write_Attributes): When checking component types in a
18119 record, unconditionally call Missing_Read_Write_Attributes recursively
18120 (remove guard checking for Is_Record_Type / Is_Access_Type).
18122 2006-10-31 Robert Dewar <dewar@adacore.com>
18124 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
18125 useless assignments here and conditionalize it on absence of exception
18127 (Analyze_Exception_Handlers): Small code reorganization of error
18128 detection code, for new handling of formal packages.
18130 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18131 Hristian Kirtchev <kirtchev@adacore.com>
18133 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
18134 that has been constant-folded, preserve information of original tree,
18136 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
18137 generated private extension declaration if the formal derived type is
18138 synchronized. Carry synchronized present over to the generated private
18140 (Validate_Derived_Type_Instance): Ensure that the actual of a
18141 synchronized formal derived type is a synchronized tagged type.
18142 (Instantiate_Formal_Package): When creating the instantiation used to
18143 validate the actual package of a formal declared without a box, check
18144 whether the formal itself depends on a prior actual.
18145 (Instantiate_Formal_Subprogram): Create new entities for the defining
18146 identifiers of the formals in the renaming declaration, for ASIS use.
18147 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
18148 a renaming declaration or a subtype declaration for an actual in an
18149 instance, capture location information of declaration in generic, for
18151 (Instantiate_Formal_Package): Add comments on needed additional tests.
18152 AI-317 (partial parametrization) is fully implemented.
18153 (Validate_Private_Type_Instance): Add check for actual which
18154 must have preelaborable initialization
18155 Use new // insertion for some continuation messages
18156 (Analyze_Formal_Object_Declaration): Change usage of Expression to
18157 Default_Expression. Add type retrieval when the declaration has an
18158 access definition. Update premature usage of incomplete type check.
18159 (Check_Access_Definition): New subsidiary routine. Check whether the
18160 current compilation version is Ada 05 and the supplied node has an
18162 (Instantiate object): Alphabetize local variables. Handle the creation
18163 of new renaming declarations with respect to the kind of definition
18164 used - either an access definition or a subtype mark. Guard against
18165 unnecessary error message in the context of anonymous access types after
18166 they have been resolved. Add check for required null exclusion in a
18167 formal object declaration.
18168 (Switch_View): A private subtype of a non-private type needs to be
18169 switched (the base type can have been switched without its private
18170 dependents because of the last branch of Check_Private_View.
18171 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
18173 (Instantiate_Type): Emit an error message whenever a class-wide type of
18174 a tagged incomplete type is used as a generic actual.
18175 (Find_Actual_Type): Extend routine to handle a component type in a child
18176 unit that is imported from a formal package in a parent.
18177 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
18178 agree on constrainedness, rather than checking against ultimate ancestor
18179 (Instantiate_Subprogram_Body): Create a cross-reference link to the
18180 generic body, for navigation purposes.
18182 2006-10-31 Robert Dewar <dewar@adacore.com>
18183 Thomas Quinot <quinot@adacore.com>
18185 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
18187 (New_Stream_Subprogram): When processing an attribute definition clause
18188 for a stream-oriented subprogram, record an entity node occurring at
18189 the point of clause to use for checking the visibility of the clause,
18190 as defined by 8.3(23) as amended by AI-195.
18191 (New_Stream_Subprogram): New procedure, factoring behaviour from both
18192 New_Stream_Function and New_Stream_Procedure.
18193 (New_Stream_Function, New_Stream_Procedure): Removed.
18194 (Analyze_Attribute_Definition_Clause, case Address): Check new
18195 Alignment_Check check
18197 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18198 Javier Miranda <miranda@adacore.com>
18199 Robert Dewar <dewar@adacore.com>
18201 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
18202 generate the same errors compiling under -gnatc.
18203 (Try_Object_Operation): If no candidate interpretation succeeds, but
18204 there is at least one primitive operation with the right name, report
18205 error in call rather than on a malformed selected component.
18206 (Analyze_Selected_Component): If the prefix is an incomplete type from
18207 a limited view, and the full view is available, use the full view to
18208 determine whether this is a prefixed call to a primitive operation.
18209 (Operator_Check): Verify that a candidate interpretation is a binary
18210 operation before checking the type of its second formal.
18211 (Analyze_Call): Add additional warnings for function call contexts not
18213 (Analyze_Allocator): Move the check for "initialization not allowed for
18214 limited types" after analyzing the expression. This is necessary,
18215 because OK_For_Limited_Init looks at the structure of the expression.
18216 Before analysis, we don't necessarily know what sort of expression it
18217 is. For example, we don't know whether F(X) is a function call or an
18218 indexed component; the former is legal in Ada 2005; the latter is not.
18219 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
18220 were missing. We also didn't handle qualified expressions. Now also
18221 allow function calls. Use new common routine OK_For_Limited_Init.
18222 (Analyze_Type_Conversion): Do not perform some legality checks in an
18223 instance, because the error message will be redundant or spurious.
18224 (Analyze_Overloaded_Selected_Component): Do not do style check when
18225 setting an entity, since we do not know it is the right entity yet.
18226 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
18227 (Analyze_Overloaded_Selected_Component): Same change
18228 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
18229 since regular incomplete subtypes are transformed into corresponding
18230 subtypes of their full views.
18231 (Complete_Object_Operation): Treat name of transformed subprogram call
18232 as coming from source, for browsing purposes.
18233 (Try_Primitive_Operation): If formal is an access parameter, compare
18234 with base type of object to determine whether it is a primitive
18236 (Operator_Check): If no interpretation of the operator matches, check
18237 whether a use clause on any candidate might make the operation legal.
18238 (Try_Class_Wide_Operation): Check whether the first parameter is an
18239 access type whose designated type is class-wide.
18241 2006-10-31 Robert Dewar <dewar@adacore.com>
18242 Ed Schonberg <schonberg@adacore.com>
18243 Gary Dismukes <dismukes@adacore.com>
18245 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
18246 warn on infinite loops.
18247 Add \\ to some continuation messages
18248 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
18249 (Process_Bounds): If the bounds are integer literals that result from
18250 constant-folding, and they carry a user-defined type, preserve that type
18251 rather than treating this as an integer range.
18252 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
18253 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
18254 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
18255 left hand side of assignment.
18256 (Analyze_Assignment): Add suport to manage assigments to the attribute
18257 priority of a protected object.
18258 (Check_Possible_Current_Value_Condition): Allow fully qualified names
18259 not just identifiers.
18260 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
18261 or AND THEN for possible tracking.
18262 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
18263 case of while loops so we can track values in the loop body.
18265 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18266 Hristian Kirtchev <kirtchev@adacore.com>
18267 Bob Duff <duff@adacore.com>
18269 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
18270 procedure cannot be a protected operation (it is a basic_declaration,
18271 not a subprogram_declaration).
18272 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
18273 Subp. Add logic for entry processing.
18274 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
18275 Determine whether an entry or subprogram of a protected or task type
18276 override an inherited primitive of an implemented interface.
18277 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
18278 Update the actual used in calls to Check_Overriding_Indicator.
18279 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
18280 generate the proper reference to the parent unit, for cross-reference.
18281 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
18283 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
18284 (Add_Extra_Formal): Revise procedure to allow passing in associated
18285 entity, scope, and name suffix, and handle setting of the new
18286 Extra_Formals field.
18287 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
18288 pass new parameters. Add support for adding the new extra access formal
18289 for functions whose calls are treated as build-in-place.
18290 (Analyze_A_Return_Statement): Correct casing in error message.
18291 Move Pop_Scope to after Analyze_Function_Return, because an extended
18292 return statement really is a full-fledged scope. Otherwise, visibility
18293 doesn't work right. Correct use of "\" for continuation messages.
18294 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
18295 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
18296 the node doesn't get properly marked as analyzed.
18297 (Analyze_Subprogram_Body): If subprogram is a function that returns
18298 an anonymous access type that denotes a task, build a Master Entity
18300 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
18301 proper usage of null exclusion in a result definition.
18302 (Process_Formals): Code cleanup and new error message.
18303 (Process_Formals): Detect incorrect application of null exclusion to
18305 (Conforming_Types): Handle conformance between [sub]types and itypes
18306 generated for entities that have null exclusions applied to them.
18307 (Maybe_Primitive_Operation): Add an additional type retrieval when the
18308 base type is an access subtype. This case arrises with null exclusions.
18309 (New_Overloaded_Entity): Do not remove the overriden entity from the
18310 homonym chain if it corresponds with an abstract interface primitive.
18311 (Process_Formals): Replace membership test agains Incomplete_Kind with a
18312 call to the synthesized predicate Is_Incomplete_Type.
18313 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
18315 (Analyze_Subprogram_Declaration): Check that abstract interface
18316 primitives are abstract or null.
18317 (Analyze_Subprogram_Specification): Remove previous check for abstract
18318 interfaces because it was not complete.
18319 (Has_Interface_Formals): Removed.
18321 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18322 Javier Miranda <miranda@adacore.com>
18324 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
18325 of Analyze_Package_Body, to create Itype references for anonymous
18326 access types created in the package declaration, whose designated types
18327 may have only a limited view.
18328 (Analyze_Package_Specification): For the private part of a nested
18329 package, install private_with_clauses of enclosing compilation unit if
18330 we are in its visible part.
18331 (Declare_Inherited_Private_Subprograms): Complete barrier
18332 to ensure that the primitive operation has an alias to some parent
18333 primitive. This is now required because, after the changes done for the
18334 implementation of abstract interfaces, the contents of the list of
18335 primitives has entities whose alias attribute references entities of
18336 such list of primitives.
18337 (Analyze_Package_Specification): Simplify code that handles parent units
18338 of instances and formal packages.
18339 (Uninstall_Declarations): Check the convention consistency among
18340 primitive overriding operations of a tagged record type.
18342 2006-10-31 Robert Dewar <dewar@adacore.com>
18343 Hristian Kirtchev <kirtchev@adacore.com>
18344 Javier Miranda <miranda@adacore.com>
18345 Ed Schonberg <schonberg@adacore.com>
18347 * sem_ch8.adb: Minor error msg rewording
18348 (Undefined): When checking for misspellings, invert arguments (to get
18349 expected and found set right)
18350 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
18351 (Analyze_Generic_Renaming): Same fix
18352 (Use_One_Package): Do not take into account the internal entities of
18353 abstract interfaces during the analysis of entities that are marked
18354 as potentially use-visible.
18355 (Find_Type): Handle the case of an attribute reference for
18356 implementation defined attribute Stub_Type (simply let the analysis of
18357 the attribute reference rewrite it).
18358 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
18359 type that appears in a Use_Type clause.
18360 (Analyze_Object_Renaming): Add support for renaming of the Priority
18362 (Find_Type): In Ada 2005, a task type can be used within its own body,
18363 when it appears in an access definition.
18364 (Analyze_Object_Renaming): Remove warning on null_exclusion.
18365 (Analyze_Object_Renaming): Introduce checks for required null exclusion
18366 in a formal object declaration or in a subtype declaration.
18367 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
18368 (Check_Null_Exclusion): New local routine to
18369 Analyze_Subprogram_Renaming. Check whether the formals and return
18370 profile of a renamed subprogram have required null exclusions when
18371 their counterparts of the renaming already impose them.
18372 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
18373 Determine whether an entity is inside a generic scope.
18374 (In_Open_Scope): First pass of documentation update.
18375 (Find_Expanded_Name): Add support for shadow entities associated with
18376 limited withed packages. This is required to handle nested packages.
18377 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
18378 that makes a renaming of a limited withed package illegal.
18380 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
18381 Ed Schonberg <schonberg@adacore.com>
18383 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
18384 Check_Overriding_Indicator.
18385 (Analyze_Task_Definition): Ditto.
18386 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
18387 (Check_Overriding_Indicator): To find overridden interface operation,
18388 examine only homonyms that have an explicit subprogram declaration, not
18389 inherited operations created by an unrelated type derivation.
18390 (Check_Overriding_Indicator): When checking for the presence of "null"
18391 in a procedure, ensure that the queried node is a procedure
18393 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
18394 type when the formal is an access to variable.
18395 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
18396 (Analyze_Task_Type): Same addition
18397 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
18398 provide navigation capabilities for entries.
18400 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
18401 Ed Schonberg <schonberg@adacore.com>
18402 Javier Miranda <miranda@adacore.com>
18403 Gary Dismukes <dismukes@adacore.com>
18405 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
18406 inherited from an interface ancestor by another interface in the
18407 context of an instance as 'late'.
18408 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
18409 of a call to a function that dispatches on access result.
18410 (Check_Dispatching_Operation): In case of late overriding of a primitive
18411 that covers abstract interface subprograms we register it in all the
18412 secondary dispatch tables associated with abstract interfaces.
18413 (Check_Dispatching_Call): Add check that a dispatching call is not made
18414 to a function with a controlling result of a limited type. This is a
18415 current implementation restriction.
18416 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
18417 (Check_Dispatching_Operation): Do no emit a warning if the controlling
18418 argument is an interface type that is a generic formal.
18419 (Is_Interface_Subprogram): Removed.
18420 (Check_Dispatching_Operation): If the subprogram is not a dispatching
18421 operation, check the formals to handle the case in which it is
18422 associated with an abstract interface type.
18424 2006-10-31 Robert Dewar <dewar@adacore.com>
18425 Ed Schonberg <schonberg@adacore.com>
18427 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
18428 Add new calls to this procedure during traversal
18429 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
18430 another unit if expansion is disabled.
18432 2006-10-31 Robert Dewar <dewar@adacore.com>
18434 * sem_eval.adb (Compile_Time_Compare): Make use of information from
18435 Current_Value in the conditional case, to evaluate additional
18436 comparisons at compile time.
18438 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18439 Hristian Kirtchev <kirtchev@adacore.com>
18440 Javier Miranda <miranda@adacore.com>
18442 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
18443 subprogram type to provide better diagnostics in case of ambiguity.
18444 (Covers): Handle coverage of formal and actual anonymous access types in
18445 the context of generic instantiation.
18446 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
18447 abstract interface types; this is required to handle concurrent types
18448 with discriminants and abstract interface types.
18449 (Covers): Include type coverage of both regular incomplete subtypes and
18450 incomplete subtypes of incomplete type visibles through a limited with
18453 2006-10-31 Robert Dewar <dewar@adacore.com>
18454 Hristian Kirtchev <kirtchev@adacore.com>
18455 Ed Schonberg <schonberg@adacore.com>
18457 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
18458 messages for entities in packages which are not used.
18459 (Collect_Synchronized_Interfaces): New procedure.
18460 (Overrides_Synchronized_Primitive): New function.
18461 (Denotes_Discriminant): Extend predicate to apply to task types.
18462 Add missing continuation marks in error msgs
18463 (Unqualify): New function for removing zero or more levels of
18464 qualification from an expression. There are numerous places where this
18465 ought to be used, but we currently only deal properly with zero or one
18467 (In_Instance); The analysis of the actuals in the instantiation of a
18468 child unit is not within an instantiation, even though the parent
18469 instance is on the scope stack.
18470 (Safe_To_Capture_Value): Exclude the case of variables that are
18472 (Check_Obsolescent): Removed
18473 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
18474 is an aliased view, even when rewritten as a reference to the target
18475 object in an assignment.
18476 (Get_Subprogram_Entity): New function
18477 (Known_To_Be_Assigned): New function
18478 (Type_Access_Level): Compute properly the access level of a return
18479 subtype that is an anonymous access type.
18480 (Explain_Limited_Type): Correct use of "\" for continuation messages.
18481 (Is_Transfer): The new extended_return_statement causes a transfer of
18483 (Has_Preelaborable_Initialization): New function
18484 (Has_Null_Exclusion): New function. Given a node N, determine whether it
18485 has a null exclusion depending on its Nkind.
18486 Change Is_Lvalue to May_Be_Lvalue
18487 (May_Be_Lvalue): Extensive additional code to deal with subprogram
18488 arguments (IN parameters are not Lvalues, IN OUT parameters are).
18489 (Safe_To_Capture_Value): Extend functionality so it can be used for
18490 the current value condition case.
18491 (Has_Compatible_Alignment): New function
18492 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
18493 objects to handle the Ada 2005 case, where aliasedness no longer implies
18494 that the object is constrained. In particular, for dereferenced names,
18495 the designated object must be assumed to be unconstrained.
18496 (Kill_Current_Values): Properly deal with the case where we encounter
18497 a loop in the scope chain.
18498 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
18500 (Compile_Time_Constraint_Error): Improve error message in error case
18502 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
18503 associated with entities of abstract interface primitives.
18504 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
18506 2006-10-31 Robert Dewar <dewar@adacore.com>
18508 * s-osinte-tru64.adb:
18509 Mark Asm statements Volatile to prevent warnings (seems a
18510 reasonable change anyway)
18513 * s-mastop-irix.adb: Add Volatile to Asm statements
18514 Suppresses warning, and seems appropriate in any case
18516 * s-osinte-vms.adb: Add Volatile to Asm statement
18518 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
18520 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
18522 Add call to Check_Code_Statement
18524 2006-10-31 Robert Dewar <dewar@adacore.com>
18525 Ed Schonberg <schonberg@adacore.com>
18526 Bob Duff <duff@adacore.com>
18528 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
18529 Synchronized_Present): Add Formal_Derived_Type_Definition and
18530 Private_Extension_Declaration to the list of assertions.
18531 (Is_Entry_Barrier_Function): New flag
18532 (Has_Self_Reference): New flag on aggregates, to indicate that they
18533 contain a reference to the enclosing type, inserted through a default
18535 (Next_Rep_Item): Move from Node4 to Node5.
18536 (Entity): Add this field for N_Attribute_Definition_Clause.
18537 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
18538 (N_Return_Object_Declaration): Remove this node kind. We now use
18539 N_Object_Declaration instead.
18540 (Actual_Designated_Subtype): Move to a different place to make room in
18541 N_Extended_Return_Statement.
18542 (Procedure_To_Call): Move to a different place to make room in
18543 N_Extended_Return_Statement.
18544 (Return_Type): Removed this field to make room in return statements
18546 (Return_Statement_Entity): New field in return statements, in part to
18547 replace Return_Type, and in part to support the fact that return
18548 statements are now pushed on the scope stack during semantic analysis.
18549 (Return_Object_Declarations): New field to support extended return
18551 (N_Extended_Return_Statement): New node for extended_return_statement
18553 (N_Return_Object_Declaration): New node for part of
18554 extended_return_statement nonterminal. Needed because all the necessary
18555 fields won't fit in N_Extended_Return_Statement.
18556 Generic_associations now carry the Box_Present flag, to indicate a
18557 default for an actual in a partially parametrized formal package.
18559 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
18560 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
18561 and for the new predefined dispatching policies: EDF_Across_Priorities,
18562 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
18563 Introduce new name Stub_Type for implementation defined attribute.
18564 Add pragma Preelaborable_Initialization
18565 Add entry for Priority attribute.
18566 Add Pragma_Wide_Character_Encoding
18567 (Get_Convention_Name): Given a convention id, this function returns the
18568 corresponding name id from the names table.
18570 2006-10-31 Ed Schonberg <schonberg@adacore.com>
18571 Robert Dewar <dewar@adacore.com>
18572 Bob Duff <duff@adacore.com>
18574 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
18575 print null exclusion twice in the case of an access definition,
18576 Implement new -gnatL switch
18577 Remove N_Return_Object_Declaration. We now use
18578 N_Object_Declaration instead. Implement the case for
18579 N_Extended_Return_Statement. Alphabetize the cases.
18580 Add cases for new nodes N_Extended_Return_Statement and
18581 N_Return_Object_Declaration. The code is not yet written.
18582 Update the output for N_Formal_Object_Declaration
18583 and N_Object_Renaming_Declaration.
18584 (Write_Itype): Account for the case of a modular integer subtype whose
18585 base type is private.
18587 2006-10-31 Arnaud Charlet <charlet@adacore.com>
18589 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
18590 Remove elaboration code, now done in the binder.
18592 * s-rident.ads: Make this unit Preelaborate.
18593 (No_Restrictions): New constant used to clean up code and follow
18594 preelaborate constraints.
18597 Add System.Restrictions dependence, referenced directly from the
18598 binder generated file.
18600 2006-10-31 Gary Dismukes <dismukes@adacore.com>
18602 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
18603 True when AAMP extended floating-point is in use (48-bit). Change type
18604 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
18605 the two byte array types on AFloat. Change type of IV_Ilf overlay
18606 variable from Byte8 to ByteLF. Add appropriate initializations of
18607 floating-point overlays for AAMP cases.
18609 2006-10-31 Javier Miranda <miranda@adacore.com>
18611 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
18612 (Get_Ceiling): New subprogram that returns
18613 the ceiling priority of the protected object.
18614 (Set_Ceiling): New subprogram that sets the new ceiling priority of
18615 the protected object.
18617 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
18619 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
18621 2006-10-31 Jose Ruiz <ruiz@adacore.com>
18623 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
18624 requeuing to the same protected object to give higher priority tasks
18625 the opportunity to execute.
18627 2006-10-31 Robert Dewar <dewar@adacore.com>
18629 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
18630 add more precise check for the character sequence that follows '[' to
18631 avoid possible confusion in case if '[' is the last character of a
18633 (Scan_Wide): Always allow brackets encoding
18635 2006-10-31 Olivier Hainque <hainque@adacore.com>
18637 * s-stchop.ads: make this unit preelaborate. This is desirable in
18638 general and made mandatory by the use of this unit by s-taprop which
18639 is itself preelaborate.
18641 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
18642 Td_Events component.
18644 2006-10-31 Vincent Celier <celier@adacore.com>
18646 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
18649 2006-10-31 Vincent Celier <celier@adacore.com>
18651 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
18653 2006-10-31 Vincent Celier <celier@adacore.com>
18655 * makegpr.adb (Check_Compilation_Needed): Take into account path names
18657 (Check_Compilation_Needed): When checking a C or C++ source, do not
18658 resolve symbolic links.
18659 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
18660 When not in verbose mode and Ellipse is True, display "..." for the
18661 first argument with Display set to False.
18662 (Build_Global_Archive): Always set Display True for the first object
18663 file. Call Display_Command with Ellipse set to True.
18665 2006-10-31 Matt Heaney <heaney@adacore.com>
18667 * a-crbtgo.ads: Commented each subprogram
18669 * a-crbtgo.adb: Added reference to book from which algorithms were
18672 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
18673 indicate which child.
18674 (Generic_Conditional_Insert): changed parameter name from "Success" to
18676 (Generic_Unconditional_Insert_With_Hint): improved algorithm
18678 * a-coorse.adb (Replace_Element): changed parameter name in call to
18679 conditional insert operation.
18681 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
18683 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
18686 * a-ciorse.adb (Replace_Element): changed parameter name in call to
18687 conditional insert operation.
18689 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
18692 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
18693 instead of mode inout.
18695 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
18697 (Generic_Read): preserve existing buckets array if possible
18698 (Generic_Write): don't send buckets array length anymore
18700 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
18701 instead of mode inout.
18703 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
18704 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
18706 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
18707 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
18708 (Replace_Element): local operation is now an instantiation
18710 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
18711 check current length.
18712 (Generic_Replace_Element): new operation
18714 2006-10-31 Doug Rupp <rupp@adacore.com>
18716 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
18717 Call TBK$SYMBOLIZE without omitting parameters.
18719 2006-10-31 Vincent Celier <celier@adacore.com>
18721 * symbols-processing-vms-ia64.adb,
18722 symbols-processing-vms-alpha.adb (Process): Do not include symbols
18723 that come from generic instantiations in bodies.
18725 2006-10-31 Pat Rogers <rogers@adacore.com>
18727 * a-rttiev.ads, a-rttiev.adb:
18728 This is a significant redesign primarily for the sake of automatic
18729 timer task termination but also to fix a design flaw.
18730 Therefore we are now using an RTS lock, instead of a protected
18731 object, to provide mutual exclusion to the queue of pending events
18732 and the type Timing_Event is no longer a protected type.
18734 2006-10-31 Robert Dewar <dewar@adacore.com>
18735 Cyrille Comar <comar@adacore.com>
18736 Ben Brosgol <brosgol@adacore.com>
18738 * debug.adb: Update flags documentation
18740 * gnat_ugn.texi: Add documentation for new -gnatwq switch
18741 Clean up documentation for several other warning switches
18742 Clarify how task stack size can be specified with various
18743 versions of Windows.
18744 Add note that -gnatVo includes ranges including loops
18745 Add documentation for -gnatL switch
18746 Add note on elaboration warning for initializing variables
18747 Add documentation for new -gnatwt warning switch
18748 Document new form of pragma Warnings (On|Off, string)
18749 Add comment on use of pragma Warnings to control warnings
18750 Add documentation for -gnatjnn switch
18751 Modify section on interfacing with C for VMS 64-bit.
18752 Add doc for -gnatVe/E
18753 Add documentation of new warning flags -gnatww/-gnatwW
18754 Add warnings about address clause overlays to list of warnings
18755 (Exception Handling Control): Document that the option --RTS must be
18756 used consistently for gcc and gnatbind.
18757 Clarify that inlining is not always possible
18758 Update documentation on pragma Unchecked_Union.
18761 Add documentation for new extended version of pragma Obsolescent
18762 Add documentation for implementation defined attribute 'Stub_Type.
18763 Add note on use of Volatile in asm statements
18764 Add documentation on use of pragma Unreferenced in context clause
18765 Document new form of pragma Warnings (On|Off, pattern)
18766 Document pragma Wide_Character_Encoding
18767 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
18768 enforced if code generation is active.
18769 Add section on pragma Suppress to document GNAT specific check
18771 Clarify difference between No_Dispatching_Calls & No_Dispatch.
18772 Add documentation for pragma Restrictions (No_Elaboration_Code)
18775 Add comments on layout of subprogram local variables in the
18776 presence of nested subprograms.
18778 * ug_words: Resync.
18780 * elists.ads: Minor reformatting
18781 Node returns Node_Or_Entity_Id (doc change only)
18783 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
18785 * g-arrspl.ads (Create): Update comments.
18787 * sem.ads: Add details on the handling of the scope stack.
18789 * usage.adb: Update documentation.
18791 * validsw.ads, validsw.adb:
18792 Add definition of Validity_Check_Components and implement -gnatVe/E
18794 * vms_data.ads: Add missing VMS qualifiers.
18796 * s-addope.ads: Add documentation on overflow and divide by zero
18798 2006-10-31 Robert Dewar <dewar@adacore.com>
18799 Thomas Quinot <quinot@adacore.com>
18800 Arnaud Charlet <charlet@adacore.com>
18802 * fmap.adb: Put routines in alpha order
18804 * g-boumai.ads: Remove redundant 'in' keywords
18806 * g-cgi.adb: Minor reformatting
18808 * g-cgi.ads: Remove redundant 'in' keywords
18810 * get_targ.adb: Put routines in alpha order
18812 * prj-attr.ads: Minor reformatting
18814 * s-atacco.ads: Minor reformatting
18816 * scn.adb: Put routines in alpha order
18818 * sinput-l.adb: Minor comment fix
18820 * sinput-p.adb: Minor comment fix
18822 * s-maccod.ads: Minor reformatting
18824 * s-memory.adb: Minor reformatting
18826 * s-htable.adb: Fix typo in comment.
18828 * s-secsta.adb: Minor comment update.
18830 * s-soflin.adb: Minor reformatting
18833 Add comment about odd qualification in Storage_Offset declaration
18836 Remove unnecessary 'in' keywords for formal parameters.
18838 * treeprs.adt: Minor reformatting
18840 * urealp.adb: Put routines in alpha order
18842 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
18845 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
18847 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
18849 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
18850 workaround as on other platforms.
18852 * g-eacodu-vms.adb: Remove redundant 'in' keywords
18853 * g-expect-vms.adb: Remove redundant 'in' keywords
18855 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
18856 clear error message if the list-of-files file cannot be opened.
18858 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
18859 equality operator is always visible.
18861 * lang.opt: Woverlength-strings: New option.
18864 Update copyright, since nmake.ads and nmake.adb have changed.
18866 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
18867 (Binder_Output_Time_Stamps_Set): removed.
18868 (Old_Binder_Output_Time_Stamp): idem.
18869 (New_Binder_Output_Time_Stamp): idem.
18870 (Recording_Time_From_Last_Bind): idem.
18871 (Recording_Time_From_Last_Bind): Make constant.
18873 * output.ads, output.adb (Write_Str): Allow LF characters
18874 (Write_Spaces): New procedure
18876 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
18878 * inline.adb: Minor reformatting
18880 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
18882 * s-mastop-vms.adb: Remove redundant 'in' keywords
18884 * s-osprim-vms.adb: Remove redundant 'in' keywords
18886 * s-trafor-default.adb: Remove redundant 'in' keywords
18888 * 9drpc.adb: Remove redundant 'in' keywords
18890 * s-osinte-mingw.ads: Minor reformatting
18892 * s-inmaop-posix.adb: Minor reformatting
18894 * a-direio.ads: Remove quotes from Compile_Time_Warning message
18896 * a-exexda.adb: Minor code reorganization
18898 * a-filico.adb: Minor reformatting
18900 * a-finali.adb: Minor reformatting
18902 * a-nudira.ads: Remove quote from Compile_Time_Warning message
18904 * a-numeri.ads: Minor reformatting
18906 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
18908 * exp_pakd.ads: Fix obsolete comment
18910 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
18911 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
18912 Probably not a bug, but certainly neater and more efficient.
18914 * a-tienio.adb: Minor reformatting
18916 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
18917 Avoid assuming low bound of string is 1.
18919 * gnatbind.adb: Change Bindusg to package and rename procedure as
18920 Display, which now ensures that it only outputs usage information once.
18921 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
18923 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
18926 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
18928 (Match): Add pragma Assert to ensure that Matches'First is zero
18930 * g-regpat.ads (Match): Document that Matches lower bound must be zero
18932 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
18933 documented preconditions (also kills warnings about bad indexes).
18935 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
18937 (Build_Import_Library): Ditto;
18939 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
18941 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
18943 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
18944 lower bound of choice table is 1.
18946 * sem_case.ads (Analyze_Choices): Document that lower bound of
18949 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
18952 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
18953 and add appropriate Assert pragma to suppress warnings.
18955 * atree.h, atree.ads, atree.adb
18956 Change Elist24 to Elist25
18957 Add definitions of Field28 and Node28
18958 (Traverse_Field): Use new syntactic parent table in sinfo.
18960 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
18962 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
18964 * exp_tss.adb: Put routines in alpha order
18966 * fe.h: Remove redundant declarations.
18968 2006-10-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
18970 * utils.c (builtin_function): Rename to gnat_builtin_function.
18971 Move common code to add_builtin_function.
18972 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
18973 gnat_builtin_function.
18974 * gigi.h (builtin_function): Rename to gnat_builtin_function.
18975 Change the signature.
18977 2006-10-16 Brooks Moses <bmoses@stanford.edu>
18979 * Makefile.in: Add TEXI2PDF definition.
18980 * Make-lang.in: Add "ada.pdf" target.
18982 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
18984 * decl.c, utils.c: Fix comment typos.
18985 * utils.c: Fix a typo.
18987 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
18989 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
18990 on "pure" Ada subprograms if SJLJ exceptions are used.
18991 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
18992 on the declaration node of JMPBUF_SAVE.
18993 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
18994 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
18995 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
18997 2006-08-20 Laurent Guerby <laurent@guerby.net>
19000 g-socket.adb (Bind_Socket): Call Set_Address.
19002 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
19005 * decl.c (same_discriminant_p): New static function.
19006 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
19007 subtype and we have discriminants, fix up the COMPONENT_REFs
19008 for the discriminants to make them reference the corresponding
19009 fields of the parent subtype after it has been built.
19011 2006-09-15 Roger Sayle <roger@eyesopen.com>
19014 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
19015 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
19017 2006-09-13 Olivier Hainque <hainque@adacore.com>
19020 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
19021 of a SAVE_EXPR, just make the operand addressable/not-readonly and
19022 let the common gimplifier code make and propagate a temporary copy.
19023 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
19024 out/in-out actuals and defer setting the addressable/readonly bits
19027 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
19030 * decl.c (components_to_record): Defer emitting debug info for the
19031 record type associated with the variant until after we are sure to
19034 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
19037 * gigi.h (gnat_internal_attribute_table): Declare.
19038 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
19039 * utils.c (gnat_internal_attribute_table): New global variable.
19040 (builtin_function): Always call decl_attributes on the builtin.
19041 (handle_const_attribute): New static function.
19042 (handle_nothrow_attribute): Likewise.
19044 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
19046 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
19048 2006-06-23 Olivier Hainque <hainque@adacore.com>
19050 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
19051 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
19053 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
19054 Eric Botcazou <ebotcazou@adacore.com>
19057 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
19058 check-gnat into check-acats.
19060 2006-06-17 Karl Berry <karl@gnu.org>
19062 * gnat-style.texi (@dircategory): Use "Software development"
19063 instead of "Programming", following the Free Software Directory.
19065 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19068 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
19070 2006-06-06 Laurent Guerby <laurent@guerby.net>
19073 mlib-utl.adb: Use Program_Name.
19075 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
19077 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
19078 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
19079 trans.c, utils.c: Fix comment typos. Follow spelling
19081 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
19084 2006-05-19 Nicolas Setton <setton@adacore.com>
19086 * misc.c (gnat_dwarf_name): New function.
19087 (LANG_HOOKS_DWARF_NAME): Define to it.
19089 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
19091 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
19092 (ada/misc.o): Likewise.
19093 (ada/utils.o): Likewise.
19095 2006-04-08 Aurelien Jarno <aurel32@debian.org>
19097 * Makefile.in: Add Ada support for GNU/kFreeBSD.
19098 * s-osinte-kfreebsd-gnu.ads: New file.
19100 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
19102 * Make-lang.in: Rename docdir to gcc_docdir.
19104 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
19106 * gigi.h (get_ada_base_type): Delete.
19107 * utils2.c (get_ada_base_type): Likewise.
19108 * trans.c (convert_with_check): Operate in the real base type.
19110 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19112 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
19114 2006-03-02 Richard Sandiford <richard@codesourcery.com>
19116 * utils.c (create_var_decl): Use have_global_bss_p when deciding
19117 whether to make the decl common.
19119 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
19121 * Make-lang.in (Ada): Remove.
19122 (.PHONY): Remove Ada
19124 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19126 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
19127 aggregate, check the interpretations of the other operand to find one
19128 that may be a boolean array.
19130 (Analyze_Selected_Component): Fix flow-of-control typo in case where
19131 the prefix is a private extension.
19133 2006-02-17 Eric Botcazou <botcazou@adacore.com>
19136 * utils2.c (find_common_type): If both input types are BLKmode and
19137 have the same constant size, keep using the first one.
19139 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
19141 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
19143 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
19145 2006-02-17 Jose Ruiz <ruiz@adacore.com>
19147 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
19148 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
19149 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
19150 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
19151 Abort_Defer/Undefer pairs to avoid the possibility of a task being
19152 aborted while owning a lock.
19154 2006-02-17 Javier Miranda <miranda@adacore.com>
19155 Robert Dewar <dewar@adacore.com>
19157 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
19158 through an access to class-wide interface we force the displacement of
19159 the pointer to the allocated object to reference the corresponding
19160 secondary dispatch table.
19161 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
19162 if Long_Shifts are supported on the target, even if 64 bit divides
19163 are not supported (configurable run time mode).
19164 (Expand_N_Type_Conversion): Do validity check if validity checks on
19165 operands are enabled.
19166 (Expand_N_Qualified_Expression): Do validity check if validity checks
19167 on operands are enabled.
19169 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19171 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
19172 must be materialized when the renamed expression is an explicit
19175 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19177 * freeze.adb (Statically_Discriminated_Components): Return false if
19178 the bounds of the type of the discriminant are not static expressions.
19180 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
19181 the bounds of the discriminant type are not static.
19183 2006-02-17 Robert Dewar <dewar@adacore.com>
19185 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
19186 then we close To if it is valid.
19188 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
19190 * init.c (facility_resignal_table): new array
19191 (__gnat_default_resignal_p): enhance default predicate to resignal if
19192 VMS condition has one of the predefined facility codes.
19194 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
19196 * Makefile.in: Use VMS64 specialized versions of several units in
19197 Interfaces.C hierarchy to be compatible with HP C default size choices.
19198 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
19200 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19202 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
19203 instantiation, the corresponding entity is the related_instance of the
19204 wrapper package created for the instance.
19206 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19208 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
19209 the current instance is nested within another instance in a child unit.
19211 2006-02-17 Javier Miranda <miranda@adacore.com>
19212 Ed Schonberg <schonberg@adacore.com>
19214 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
19215 type we cannot inherit the primitive operations; we inherit the
19216 Corresponding_Record_Type (which has the list of primitive operations).
19217 (Check_Anonymous_Access_Types): When creating anonymous access types for
19218 access components, use Rewrite in order to preserve the tree structure,
19220 (Analyze_Object_Declaration): For limited types with access
19221 discriminants with defaults initialized by an aggregate, obtain
19222 subtype from aggregate as for other mutable types.
19223 (Derived_Type_Declaration): If the derived type is a limited interface,
19224 set the corresponding flag (Is_Limited_Record is not sufficient).
19226 2006-02-17 Ed Schonberg <schonberg@adacore.com>
19228 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
19229 to inline a function that returns an unconstrained type, the return
19230 expression must be the first variable declared in the body of the
19233 2006-02-17 Javier Miranda <miranda@adacore.com>
19235 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
19236 abstract interface type, the static analysis is not enough to know if
19237 the interface is implemented or not by the source tagged type. Hence
19238 we must pass the work to the expander to generate the required code to
19239 evaluate the conversion at run-time.
19240 (Resolve_Equality_Op): Do not apply previous
19241 transformation if expansion is disasbled, to prevent anomalies when
19242 locating global references in a generic unit.
19244 2006-02-17 Vincent Celier <celier@adacore.com>
19246 * snames.ads, snames.adb: New standard names for new project attributes:
19247 archive_builder, archive_indexer, compiler_pic_option,
19248 config_body_file_name, config_body_file_name_pattern,
19249 config_file_switches, config_file_unique, config_spec_file_name,
19250 config_spec_file_name_pattern, default_builder_switches,
19251 default_global_compiler_switches, default_language,
19252 dependency_file_kind, global_compiler_switches, include_path,
19253 include_path_file, language_kind, linker_executable_option,
19254 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
19255 roots, runtime_project.
19257 2006-02-17 Matthew Heaney <heaney@adacore.com>
19259 * a-convec.ads, a-convec.adb:
19260 (operator "&"): handle potential overflow for large index types
19261 (Insert): removed Contraint_Error when using large index types
19262 (Insert_Space): removed Constraint_Error for large index types
19263 (Length): moved constraint check from Length to Insert
19265 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
19266 as not null access.
19267 Explicit raise statements now include an exception message.
19268 (operator "&"): handle potential overflow for large index types
19269 (Insert): removed Contraint_Error when using large index types
19270 (Insert_Space): removed Constraint_Error for large index types
19271 (Length): moved constraint check from Length to Insert
19273 2006-02-17 Robert Dewar <dewar@adacore.com>
19275 * s-wchcnv.adb: Document handling of [ on output (we do not change
19276 this to ["5B"] and the new comments say why not.
19279 Add note for -gnatVo that this now includes the cases of type
19280 conversions and qualified expressions.
19281 Add comments on handling of brackets encoding for Text_IO
19283 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
19284 Thomas Quinot <quinot@adacore.com>
19285 Robert Dewar <dewar@adacore.com>
19286 Javier Miranda <miranda@adacore.com>
19288 * expander.adb: Fix typo in comment
19290 * exp_pakd.adb: Fix typo
19291 Minor comment reformatting.
19293 * g-dyntab.adb: Minor reformatting
19295 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
19296 aliased subprograms to look for the abstract interface subprogram.
19298 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
19300 * env.c (__gnat_setenv): Use size_t.
19301 (__gnat_unsetenv): Likewise.
19302 (__gnat_clearenv): Likewise.
19304 2006-02-16 Arnaud Charlet <charlet@adacore.com>
19306 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
19308 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19310 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
19311 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
19312 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
19313 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
19314 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
19315 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
19316 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
19317 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
19318 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
19321 2006-02-13 Jose Ruiz <ruiz@adacore.com>
19323 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
19324 protection against race conditions is not needed.
19325 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
19327 (Set_Specific_Handler): Add mutual exclusive access to the specific
19329 (Specific_Handler): Add mutual exclusive access for retrieving the
19332 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
19335 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
19336 Fall_Back_Handler and Specific_Handler.
19338 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
19339 termination handlers.
19340 Set two different owerflow depending on the maximal stack size.
19342 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
19343 protection against race conditions is not needed when executing the
19344 task termination handler.
19346 2006-02-13 Robert Dewar <dewar@adacore.com>
19348 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
19349 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
19350 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
19351 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
19352 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
19353 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
19354 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
19355 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
19356 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
19357 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
19358 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
19359 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
19360 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
19361 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
19362 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
19363 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
19364 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
19365 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
19366 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
19367 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
19368 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
19369 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
19370 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
19371 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
19372 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
19373 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
19374 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
19375 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
19376 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
19377 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
19378 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
19379 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
19380 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
19381 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
19384 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
19386 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
19387 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
19388 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
19389 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
19390 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
19391 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
19392 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
19393 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
19394 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
19396 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19398 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
19399 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
19400 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
19401 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
19402 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
19403 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
19404 replaced by anonymous access type.
19405 (pthread_sigmask): Now take an access sigset_t
19407 * s-osinte-hpux.ads: Ditto.
19408 (pthread_mutex_t, pthread_cond_t): Update definitions to support
19409 properly 32 and 64 bit ABIs.
19411 2006-02-13 Pascal Obry <obry@adacore.com>
19413 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
19414 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
19415 s-taprop-linux.adb, s-taprop-solaris.adb,
19416 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
19417 adjustement is already done when calling this routine.
19419 2006-02-13 Pascal Obry <obry@adacore.com>
19421 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
19422 table to take advantage of the 16 priority levels available on Windows
19423 2000 and XP. On NT4 there are only 7 priority levels, this is properly
19424 supported by this new mapping.
19426 2006-02-13 Nicolas Setton <setton@adacore.com>
19428 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
19429 (get_encoding): New subprogram. Extracts the encodings from an encoded
19432 2006-02-13 Pascal Obry <obry@adacore.com>
19433 Nicolas Roche <roche@adacore.com>
19434 Arnaud Charlet <charlet@adacore.com>
19436 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
19438 (__gnat_try_lock): Add unicode support by using a specific section on
19440 (__gnat_get_current_dir): Idem.
19441 (__gnat_open_read): Idem.
19442 (__gnat_open_rw): Idem.
19443 (__gnat_open_create): Idem.
19444 (__gnat_create_output_file): Idem.
19445 (__gnat_open_append): Idem.
19446 (__gnat_open_new): Idem.
19447 (__gnat_file_time_name): Idem.
19448 (__gnat_set_file_time_name): Idem.
19449 (__gnat_stat): Idem.
19450 (win32_no_block_spawn): Idem.
19451 (__gnat_locate_exec_on_path): Idem.
19452 (__gnat_opendir): New routine.
19453 (__gnat_closedir): Idem.
19454 (__gnat_readdir): Add new parameter length (pointer to int). Update
19455 implementation to use it and add specific Win32 code for Unicode
19457 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
19458 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
19459 (convert_addresses): Do not define this dummy routine on VMS.
19461 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
19462 runtime Unicode support will be activated.
19463 (S2WS): String to Wide-String conversion. This version just copy a
19464 string in non Unicode version.
19465 (WS2S): Wide-String to String conversion. This version just copy a
19466 string in non Unicode version.
19468 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
19469 (Open): Now import __gnat_opendir from adaint.c.
19470 (Read): Change the implementation to support unicode characters. It is
19471 not possible to use strlen() on Windows as this version supports only
19472 standard ASCII characters. So the length of the directory entry is now
19473 returned from the imported __gnat_readdir routine.
19474 Update copyright notice.
19476 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
19477 (opendir): Moved to adaint.c.
19479 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
19480 (Get_Directory): Fix wrong indexing.
19481 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
19482 __gnat_getenv from env.c
19483 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
19486 * env.h, env.c: New file.
19488 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
19489 adaint.c by __gnat_getenv from env.c
19491 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
19492 adaint.c by __gnat_getenv from env.c
19494 * Make-lang.in: Add env.o in the list of C object needed by gnat1
19496 Update dependencies.
19498 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
19499 Olivier Hainque <hainque@adacore.com>
19500 Eric Botcazou <ebotcazou@adacore.com>
19502 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
19504 * gigi.h (value_factor_p): Add prototype and description, now public.
19506 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
19507 promotion for field with rep clause if the associated size was proven
19509 Expand comments describing attempts to use a packable type.
19510 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
19511 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
19512 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
19513 necessary since these are not different types and pointers may
19514 actually designate any subtype in this hierarchy.
19515 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
19516 discriminants but put them into record only if not Unchecked_Union;
19517 pass flag to components_to_record showing Unchecked_Union.
19518 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
19519 components before variants; don't set TYPE_UNCHECKED_UNION_P.
19520 (components_to_record): New argument UNCHECKED_UNION.
19521 Remove special case code for Unchecked_Union and instead use main code
19522 with small changes.
19525 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
19526 variable with the expression being built, only its inner field.
19528 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
19529 emit_sequence_entry_statements.
19530 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
19531 (establish_gnat_vms_condition_handler): Move before
19532 Subprogram_Body_to_gnu.
19533 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
19534 for a subprogram if it has a foreign convention or is exported.
19535 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
19536 substituted for a CONST_DECL.
19537 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
19538 Etype to assoc_to_constructor.
19539 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
19540 discriminants of Unchecked_Union.
19541 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
19542 don't need cluttering preprocessor directives.
19543 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
19544 condition handler as current in the compiled function.
19545 (body_with_handlers_p): New function. Tell whether a given sequence of
19546 statements node is attached to a package or subprogram body and involves
19547 exception handlers possibly nested within inner block statements.
19548 (emit_sequence_entry_statements): New function, to emit special
19549 statements on entry of sequences when necessary. Establish GNAT
19550 condition handler in the proper cases for VMS.
19551 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
19552 emit_sequence_entry_statements.
19554 * utils2.c (find_common_type): If both input types are BLKmode and
19555 have a constant size, use the smaller one.
19556 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
19559 * utils.c (value_factor_p): Make public, to allow uses from other gigi
19561 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
19562 (convert, case UNION_TYPE): Remove special treatment for unchecked
19566 (update_pointer_to): Update variants of pointer types to unconstrained
19567 arrays by attaching the list of fields of the main variant.
19569 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19570 Robert Dewar <dewar@adacore.com>
19572 * a-exexpr.adb, a-exexpr-gcc.adb
19573 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
19574 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
19575 Remove code unused for exception propagation for the compiler itself
19576 from a-except.adb and update to still share separate packages.
19578 * a-except.ads, a-except.adb: Ditto.
19579 Add comments that this version is now used only by the compiler and
19580 other basic tools. The full version that includes the Ada 2005 stuff
19581 is in separate files a-except-2005.ads/adb. The reason is that we do
19582 not want to cause bootstrap problems with compilers not recognizing
19584 Add exception reason code PE_Implicit_Return
19585 Add new exception reason code (Null Exception_Id)
19587 * a-except-2005.adb, a-except-2005.ads: New files.
19589 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
19591 * s-wchcon.adb: New file.
19593 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
19594 (traceback.o deps): Likewise.
19595 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
19596 Activate build of GMEM instrumentation library on VMS targets.
19597 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
19598 Use a-except-2005.ads/adb for all run-time library builds unless
19599 specified otherwise.
19600 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
19601 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
19602 Use s-parame.adb on all native platforms.
19603 Use s-parame-vxworks.adb on all vxworks platforms.
19604 Add env.c env.h in LIBGNAT_SRCS
19605 Add env.o in LIBGNAT_OBJS
19606 (GNATMAKE_OBJS): Remove ctrl_c.o object.
19607 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
19608 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
19609 supports VxWorks 6 RTPs.
19610 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
19611 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
19613 * types.h, types.ads (Terminate_Program): New exception
19614 Add comment on modifying multiple versions of a-except.adb when the
19615 table of exception reasons is modified.
19616 Add exception reason code PE_Implicit_Return
19617 Add new exception reason code (Null Exception_Id)
19619 * clean.adb (Initialize): Get the target parameters before checking
19620 if target is OpenVMS. Move the OpenVMS specific code here from package
19621 body elaboration code.
19623 2006-02-13 Thomas Quinot <quinot@adacore.com>
19624 Vincent Celier <celier@adacore.com>
19625 Robert Dewar <dewar@adacore.com>
19627 * ali-util.adb (Get_File_Checksum): Update to account for change in
19628 profile of Initialize_Scanner.
19630 * gprep.adb (Gnatprep): Update to account for change in profile of
19631 Initialize_Scanner.
19632 (Process_One_File): Same.
19634 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
19635 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
19636 that behaviour using the new Unit information recorded in the source
19637 files table, rather than going through all units every time.
19638 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
19639 (Get_Source_Unit): Same.
19641 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
19642 change in profile of Initialize_Scanner.
19643 (Prepare_To_Preprocess): Same.
19645 * lib.ads: Fix typo in comment (templace -> template).
19647 * prj-part.adb (Parse_Single_Project): Update to account for change in
19648 profile of Initialize_Scanner.
19650 * scn.adb (Initialize_Scanner): Account for change in profile of
19651 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
19652 Also record the association of the given Source_File_Index to the
19653 corresponding Unit_Number_Type.
19655 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
19657 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
19658 Remove Unit formal for generic scanner: this formal
19659 is only relevant to Scn (the scanner instance used to parse Ada source
19660 files), not to other instances. Update comment accordingly.
19661 (Scan): Use new function Snames.Is_Keyword_Name.
19663 * sinfo-cn.adb: Fix typo in comment.
19665 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
19668 * sinput.ads (Source_File_Record): New component Unit, used to capture
19669 the unit identifier (if any) associated to a source file.
19671 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
19672 Unit in Source_File_Record.
19674 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
19675 in profile of Initialize_Scanner.
19677 * scans.adb (Initialize_Ada_Keywords): New procedure
19679 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
19680 Ada keywords in the Namet table, without the need to call
19681 Initialize_Scanner.
19683 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
19684 (Is_Keyword_Name): New function
19686 * snames.ads: Add subtype Configuration_Pragma_Names
19687 Add pragma Ada_2005 (synonym for Ada_05)
19688 (Is_Keyword_Name): New function
19690 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
19692 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19694 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
19697 * a-stwima.adb (To_Set): Add extra check when N = 0.
19699 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
19701 2006-02-13 Arnaud Charlet <charlet@adacore.com>
19703 * s-parame-mingw.adb, s-parame-linux.adb,
19704 s-parame-solaris.adb: Removed, replaced by s-parame.adb
19706 * s-parame-vxworks.ads: Fix typo.
19708 * s-parame-vxworks.adb: New file.
19710 * s-parame.adb: Version now used by all native platforms.
19711 (Default_Stack_Size): Use 2 megs for default stack size and use
19712 __gl_default_stack_size when available.
19713 (Minimum_Stack_Size): Use 12K.
19715 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
19716 (Create_Task): Refine implementation taking advantage of the XP stack
19717 size support. On XP, we now create the thread using the flag
19718 STACK_SIZE_PARAM_IS_A_RESERVATION.
19720 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
19722 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
19723 XP and 0 on older Windows versions.
19725 * interfac-vms.ads: Removed, no longer used.
19727 2006-02-13 Matthew Heaney <heaney@adacore.com>
19729 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
19730 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
19731 a-cohase.adb: All explicit raise statements now include an exception
19734 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
19735 (Update_Element_Preserving_Key): renamed op to just Update_Element.
19736 Explicit raise statements now include an exception message
19738 * a-cihase.ads, a-cohase.ads: Removed comment.
19740 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
19741 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
19742 a-szbzha.adb, a-szfzha.ads: New files.
19744 2006-02-13 Matthew Heaney <heaney@adacore.com>
19746 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
19749 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
19751 * lang.opt: Wvariadic-macros: New option.
19752 Wold-style-definition: Likewise.
19753 Wmissing-format-attribute: Likewise.
19755 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
19756 -Wold-style-definition and -Wmissing-format-attribute.
19758 2006-02-13 Robert Dewar <dewar@adacore.com>
19760 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
19762 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
19764 2006-02-13 Nicolas Roche <roche@adacore.com>
19766 * a-envvar.adb, a-envvar.ads: New files.
19768 2006-02-13 Douglas Rupp <rupp@adacore.com>
19770 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
19772 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
19774 2006-02-13 Pat Rogers <rogers@adacore.com>
19776 * a-rttiev.adb, a-rttiev.ads: New files.
19778 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
19780 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
19781 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
19783 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
19785 2006-02-13 Robert Dewar <dewar@adacore.com>
19787 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
19788 sem_case.adb: Minor code reorganization (not Present should be No)
19790 2006-02-13 Geert Bosch <bosch@adacore.com>
19791 Gary Dismukes <dismukes@adacore.com>
19793 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
19794 0, since the lower bound of the actual string may be greater than one.
19797 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
19798 layout is requested.
19800 2006-02-13 Vincent Celier <celier@adacore.com>
19802 * back_end.adb (Scan_Compiler_Arguments): Check if
19803 Search_Directory_Present is True and, if it is, add the argument in
19804 the source search directory path.
19806 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
19807 Search_Directory_Present to True.
19809 2006-02-13 Joel Brobecker <brobecke@adacore.com>
19811 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
19812 volatile, to tell the compiler to preserve this variable at any level
19814 (Gen_Versions_Ada): Temporarily work around codegen bug.
19816 2006-02-13 Vincent Celier <celier@adacore.com>
19818 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
19819 gcc to link with option -shared-libgcc.
19820 (Gnatlink): Remove duplicate switches -shared-libgcc
19822 2006-02-13 Robert Dewar <dewar@adacore.com>
19824 * gnatvsn.ads (Current_Year): New constant, used to easily update
19825 copyright on all GNAT tools.
19827 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
19830 2006-02-13 Robert Dewar <dewar@adacore.com>
19832 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
19833 after hyphen (small aesthetic change useful for a range of numbers
19835 Suppress range checks for a couple of assignments which otherwise
19836 cause validity checks with validity checking turned on.
19838 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
19839 Improvement in error message for object.
19840 (Rep_Item_Too_Late): Remove '!' in warning message.
19842 2006-02-13 Robert Dewar <dewar@adacore.com>
19843 Eric Botcazou <ebotcazou@adacore.com>
19845 * err_vars.ads: Suppress range checks for a couple of assignments
19846 which otherwise cause validity checks with validity checking turned on.
19849 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
19850 Make message unconditional if it is a warning.
19851 (Error_Msg_NEL): Always output warning messages.
19852 Suppress range checks for a couple of assignments which otherwise
19853 cause validity checks with validity checking turned on.
19855 * errout.ads (Message Insertion Characters): Document that '!' is
19856 implied by '?' in error messages.
19858 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
19859 (Gnat1drv): Use a goto to end of main subprogram instead of
19860 Exit_Program (E_Success) so that finalization can occur normally.
19862 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
19864 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
19867 2006-02-13 Vincent Celier <celier@adacore.com>
19869 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
19870 Unchecked_Conversion functions.
19871 (Modification_Time): Use direct conversion of OS_Time to Calendar time
19872 when OpenVMS returns False.
19874 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
19875 a-dirval.adb (OpenVMS): New Boolean function
19877 2006-02-13 Ed Schonberg <schonberg@adacore.com>
19878 Thomas Quinot <quinot@adacore.com>
19880 * checks.adb (Build_Discriminant_Checks): If the expression being
19881 checks is an aggregate retrieve the values of its discriminants to
19882 generate the check, rather than creating a temporary and a reference
19884 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
19885 (Install_Null_Excluding_Check): Ditto
19886 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
19887 not for the renamed object, so that the actual itype is attached in the
19890 2006-02-13 Robert Dewar <dewar@adacore.com>
19891 Vincent Celier <celier@adacore.com>
19893 * debug.adb: Eliminate numeric switches for binder/gnatmake
19895 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
19896 switches for the compiler.
19897 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
19898 (Scan_Make_Switches): When failing with an illegal switch, output an
19899 error message with the full switch.
19900 Eliminate numeric switches for binder/gnatmake
19902 * switch.ads, switch.adb (Bad_Switch): New procedure
19904 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
19905 Remove 0-9 as debug flag character possibilities
19906 -d is now controlling the primary stack size when its value is a
19907 positive. Also add checks against invalid values, and support for kb,
19908 mb. Ditto for -D switch.
19910 2006-02-13 Robert Dewar <dewar@adacore.com>
19911 Serguei Rybin <rybin@adacore.com>
19913 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
19914 save/restore routines.
19915 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
19916 were not always properly handled previously.
19917 Since we are changing the tree format anyway, also get rid of the
19918 junk obsolete Immediate_Errors flag.
19919 (Tree_Read): Change the way of reading Tree_Version_String - now we
19920 read the version string from the tree even if its length is not the
19921 same as the length of the version string computed from Gnatvsn.
19922 (Search_Directory_Present): New Boolean flag for the compiler.
19923 Define Tree_Version_String as a dynamic string.
19924 (Default_Stack_Size): new variable, used to handle switch -d.
19927 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
19928 only for main unit.
19929 Add pragma Ada_2005 (synonym for Ada_05)
19930 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
19931 were not always properly handled previously.
19933 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
19934 explicit Ada_95 to Ada_2005.
19936 2006-02-13 Javier Miranda <miranda@adacore.com>
19937 Robert Dewar <dewar@adacore.com>
19938 Ed Schonberg <schonberg@adacore.com>
19940 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
19941 against errors in the source program: a private types for which the
19942 corresponding full type declaration is missing and pragma CPP_Virtual
19944 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
19945 (Is_Known_Null): New flag
19946 (Has_Pragma_Pure): New flag
19947 (No_Return): Present in all entities, set only for procedures
19948 (Is_Limited_Type): A type whose ancestor is an interface is limited if
19949 explicitly declared limited.
19950 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
19951 entities. Only used for component marked Is_Tag. If present it stores
19952 the Offset_To_Top function used to provide this value in tagged types
19953 whose ancestor has discriminants.
19955 * exp_ch2.adb: Update status of new Is_Known_Null flag
19957 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
19959 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
19960 the categorization sense if Is_Pure was set by pragma Pure_Function.
19962 2006-02-13 Quentin Ochem <ochem@adacore.com>
19963 Olivier Hainque <hainque@adacore.com>
19965 * bindusg.adb: Updated documentation for -d and -D switches.
19967 * raise.h (__gnat_set_globals): added new parameter for
19968 Default_Stack_Size.
19970 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
19971 (__gnat_handle_vms_condition): Adjust context before raise.
19972 (__gnat_install_handler): Restore the global vector setup for GCC
19973 versions before 3.4, as the frame based circtuitry is not available
19975 (__gnat_set_globals): added a parameter default_stack_size
19976 (__gl_default_stack_size): new variable.
19978 2006-02-13 Ed Schonberg <schonberg@adacore.com>
19980 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
19981 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
19982 does not exist in the Ada RM.
19983 (Compatible_Int_Bounds): Determine whether two integer range bounds
19984 are of equal length and have the same start and end values.
19985 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
19986 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
19987 aggregate when it is part of an object declaration.
19988 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
19989 constrains discriminants of its parent, add explicitly the discriminant
19990 constraints of the ancestor by retrieving them from the
19991 stored_constraint of the parent.
19993 2006-02-13 Robert Dewar <dewar@adacore.com>
19995 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
19996 attribute Mechanism_Code is applied to renamed subprogram, modify
19997 prefix to point to base subprogram.
19998 Max/Min attributes now violate Restriction No_Implicit_Conditionals
20000 * sinfo.ads: Document that Mechanism_Code cannot be applied to
20001 renamed subprograms so that the front-end must replace the prefix
20004 2006-02-13 Javier Miranda <miranda@adacore.com>
20005 Gary Dismukes <dismukes@adacore.com>
20007 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
20008 availability of RE_Interface_Tag.
20009 (Build_Initialization_Call): Fix wrong access to the discriminant value.
20010 (Freeze_Record_Type): Do not generate the tables associated with
20011 timed and conditional dispatching calls through synchronized
20012 interfaces if compiling under No_Dispatching_Calls restriction.
20013 When compiling for Ada 2005, for a nonabstract
20014 type with a null extension, call Make_Controlling_Function_Wrappers
20015 and insert the wrapper function declarations and bodies (the latter
20016 being appended as freeze actions).
20017 (Predefined_Primitive_Bodies): Do not generate the bodies of the
20018 predefined primitives associated with timed and conditional
20019 dispatching calls through synchronized interfaces if we are
20020 compiling under No_Dispatching_Calls.
20021 (Build_Init_Procedure): Use RTE_Available to check if a run-time
20022 service is available before generating a call.
20023 (Make_Controlling_Function_Wrappers): New procedure.
20024 (Expand_N_Full_Type_Declaration): Create a class-wide master for
20025 access-to-limited-interfaces because they can be used to reference
20026 tasks that implement such limited interface.
20027 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
20028 procedure spec and body of the Offset_To_Top function that is generated
20029 when the parent of a type with discriminants has secondary dispatch
20031 (Init_Secondary_Tags): Handle the case in which the parent of the type
20032 containing secondary dispatch tables has discriminants to generate the
20033 correct arguments to call Set_Offset_To_Top.
20034 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
20036 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
20037 Add Wide_[Wide_]Expanded_Name.
20038 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
20039 the same functionality of Get_Prim_Op_Address but applied to predefined
20040 primitive operations because the pointers to the predefined primitives
20041 are now saved in a separate table.
20042 (Parent_Size): Modified to get access to the separate table of primitive
20043 operations or the parent type.
20044 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
20045 functionality of Set_Prim_Op_Address but applied to predefined primitive
20047 (Set_Signature): New subprogram used to store the signature of a DT.
20048 (Displace): If the Offset_To_Top value is not static then call the
20049 function generated by the expander to get such value; otherwise use
20050 the value stored in the table of interfaces.
20051 (Offset_To_Top): The type of the actual has been changed to Address to
20052 give the correct support to tagged types with discriminants. In this
20053 case this value is stored just immediately after the tag field.
20054 (Set_Offset_To_Top): Two new formals have been added to indicate if the
20055 offset_to_top value is static and hence pass this value to the run-time
20056 to store it in the table of interfaces, or else if this value is dynamic
20057 and then pass to the run-time the address of a function that is
20058 generated by the expander to provide this value for each object of the
20061 * rtsfind.ads (Default_Prin_Op_Count): Removed.
20062 (Default_Prim_Op_Count): New entity
20063 (Get_Predefined_Prim_Op_Address): New entity
20064 (Set_Predefined_Prim_Op_Address): New entity
20065 (RE_Set_Signature): New entity
20067 2006-02-13 Thomas Quinot <quinot@adacore.com>
20068 Ed Schonberg <schonberg@adacore.com>
20070 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
20071 Make_Adjust_Call done for a newly-allocated object.
20073 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
20074 in a subprogram are wrapped in a cleanup block, indicate that the
20075 subprogram contains an inner block with an exception handler.
20076 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
20077 Adjust call is for a newly-allocated object. In that case we must not
20078 assume that the finalization list chain pointers are correct (since they
20079 come from a bit-for-bit copy of the original object's pointers) so if
20080 the attach level would otherwise be zero (no change), we set it to 4
20081 instead to cause the pointers to be reset to null.
20083 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
20084 reset chain pointers to null.
20086 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20088 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
20089 string, and the context requires a loop for the assignment (e.g.
20090 because the left-hand side is packed), generate a unique name for the
20091 temporary that holds the string, to prevent spurious name clashes.
20093 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20094 Javier Miranda <miranda@adacore.com>
20095 Robert Dewar <dewar@adacore.com>
20096 Gary Dismukes <dismukes@adacore.com>
20098 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
20099 return unconstrained arrays.
20101 (Expand_Call): An indirect call through an access parameter of a
20102 protected operation is not a protected call.
20103 Add circuit to raise CE in Ada 2005 mode following call
20104 to Raise_Exception.
20105 (Register_DT_Entry): Do nothing if
20106 the run-time does not give support to abstract interfaces.
20107 (Freeze_Subprogram): In case of dispatching operations, do not generate
20108 code to register the operation in the dispatch table if the source
20109 is compiled with No_Dispatching_Calls.
20110 (Register_Predefined_DT_Entry): Generate code that calls the new
20111 run-time subprogram Set_Predefined_Prim_Op_Address instead of
20112 Set_Prim_Op_Address.
20114 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
20115 on array assignments if the right-hand side is a function call that has
20116 been inlined. Check is performed on the assignment in the block.
20117 (Process_Bounds): If bounds and range are overloaded, apply preference
20118 rule for root operations to disambiguate, and diagnose true ambiguity.
20119 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
20120 a tag-indeterminate right-hand side even when Expander_Active is True.
20121 Needed to ensure that dispatching calls to T'Input are allowed and
20122 get the tag of the target class-wide object.
20124 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
20125 an inherited primitive operation that already overrides several
20126 abstract interface primitives. For transitivity, the new entity must
20127 also override all the abstract interface primitives covered by the
20128 inherited overriden primitive.
20129 Emit warning if new entity differs from homograph in same scope only in
20130 that one has an access parameter and the other one has a parameter of
20131 a general access type with the same designated type, at the same
20132 position in the signature.
20133 (Make_Inequality_Operator): Use source locations of parameters and
20134 subtype marks from corresponding equality operator when creating the
20135 tree structure for the implicit declaration of "/=". This does not
20136 change anything in behaviour except that the decoration of the
20137 components of the subtree created for "/=" allows ASIS to get the
20138 string images of the corresponding identifiers.
20139 (Analyze_Return_Statement): Remove '!' in warning message.
20140 (Check_Statement_Sequence): Likewise.
20141 (Analyze_Subprogram_Body): For an access parameter whose designated type
20142 is an incomplete type imported through a limited_with clause, use the
20143 type of the corresponding formal in the body.
20144 (Check_Returns): Implicit return in No_Return procedure now raises
20145 Program_Error with a compile time warning, instead of beging illegal.
20146 (Has_Single_Return): Function returning unconstrained type cannot be
20147 inlined if expression in unique return statement is not an identifier.
20148 (Build_Body_To_Inline): It is possible to inline a function call that
20149 returns an unconstrained type if all return statements in the function
20150 return the same local variable. Subsidiary procedure Has_Single_Return
20151 verifies that the body conforms to this restriction.
20153 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
20154 same type, and one of them is of an anonymous access type, convert
20155 the other operand to it, so that this is a valid binary operation for
20157 (Resolve_Type_Conversion): Handle subtypes of protected types and
20158 task types when accessing to the corresponding record type.
20159 (Resolve_Allocator): Add '\' in 2-line warning message.
20160 Remove '!' in warning message.
20161 (Resolve_Call): Add '\' in 2-line warning message.
20162 (Valid_Conversion): Likewise.
20163 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
20164 resulting type may be an access type with an implicit dereference.
20165 Obtain the proper component from the designated type.
20166 (Make_Call_Into_Operator): Handle properly a call to predefined equality
20167 given by an expanded name with prefix Standard, when the operands are
20168 of an anonymous access type.
20169 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
20170 Explicit_Dereference and Resolve_Selected_Component, to verify that the
20171 prefix of the expression is not of an incomplete type. Allows full
20172 diagnoses of all semantic errors.
20173 (Resolve_Actuals): If the actual is an allocator whose directly
20174 designated type is a class-wide interface we build an anonymous
20175 access type to use it as the type of the allocator. Later, when
20176 the subprogram call is expanded, if the interface has a secondary
20177 dispatch table the expander will add a type conversion to force
20178 the displacement of the pointer.
20179 (Resolve_Call): If a function that returns an unconstrained type is
20180 marked Inlined_Always and inlined, the call will be inlined and does
20181 not require the creation of a transient scope.
20182 (Check_Direct_Boolean_Op): Removed
20183 (Resolve_Comparison_Op): Remove call to above
20184 (Resolve_Equality_Op): Remove call to above
20185 (Resolve_Logical_Op): Inline above, since this is only call.
20186 (Valid_Conversion): Handle properly conversions between arrays of
20187 convertible anonymous access types.
20190 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
20191 the literal in an unchecked conversion, because GCC 4.x needs a static
20192 value for a string bound.
20194 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20195 Hristian Kirtchev <kirtchev@adacore.com>
20197 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
20198 components of the corresponding record, take into account component
20199 definitions that are access definitions.
20200 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
20201 procedure is not considered a dispatching call and will be expanded
20204 2006-02-13 Javier Miranda <miranda@adacore.com>
20206 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
20207 controlling argument of the dispatching call is an abstract interface
20208 class-wide type then we use it directly.
20209 Check No_Dispatching_Calls restriction.
20210 (Default_Prim_Op_Position): Remove the code that looks for the last
20211 entity in the list of aliased subprograms. This code was wrong in
20213 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
20214 when the source is compiled with the No_Dispatching_Calls restriction.
20215 (Init_Predefined_Interface_Primitives): No need to inherit primitives
20216 if we are compiling with restriction No_Dispatching_Calls.
20217 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
20218 subprograms if we are compiling under No_Dispatching_Calls restriction.
20219 (Make_DT): Generate a dispatch table with a single dummy entry if
20220 we are compiling with the No_Dispatching_Calls restriction. In
20221 addition, in this case we don't generate code that calls to the
20222 following run-time subprograms: Set_Type_Kind, Inherit_DT.
20223 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
20224 of this subprogram if compiling with the No_Dispatching_Calls
20226 (Expand_Type_Conversion): Instead of using the actual parameter,
20227 the argument passed as parameter to the conversion function was
20228 erroneously referenced by the expander.
20229 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
20230 Set_Predefined_Primitive_Op_Address and Set_Signature.
20231 (Expand_Dispatching_Call): Generate call to
20232 Get_Predefined_Prim_Op_Address for predefined primitives.
20233 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
20234 predefined primitives.
20235 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
20236 primitives we reserve one dummy entry to ensure that the tag does not
20237 point to some memory that is associated with some other object. In
20238 addition, remove all the old code that generated the assignments
20239 associated with the signature of the dispatch table and replace them
20240 by a call to the new subprogram Set_Signature.
20241 (Set_All_DT_Position): Change the algorithm because now we have a
20242 separate dispatch table associated with predefined primitive operations.
20243 (Expand_Interface_Conversion): In case of non-static offset_to_top
20244 add explicit dereference to get access to the object after the call
20245 to displace the pointer to the object.
20246 (Expand_Interface_Thunk): Modify the generation of the actual used
20247 in the calls to the run-time function Offset_To_Top to fulfil its
20249 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
20251 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20253 * exp_dist.adb (Copy_Specification): For access parameters, copy
20254 Null_Exclusion flag, which will have been set for stream subprograms
20257 2006-02-13 Pascal Obry <obry@adacore.com>
20259 * expect.c (__gnat_expect_portable_execvp): New implementation. The
20260 previous implementation was using the C runtime spawnve routine but
20261 the corresponding wait was using directly the Win32 API. This was
20262 causing some times a lock when waiting for an event using
20263 WaitForSingleObject in __gnat_waitpid. This new implementation uses
20264 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
20265 API fixes this problem.
20267 2006-02-13 Robert Dewar <dewar@adacore.com>
20269 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
20272 2006-02-13 Thomas Quinot <quinot@adacore.com>
20274 * exp_pakd.ads: Fix typos in comments.
20276 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
20277 array reference that is an explicit dereference, mark the converted
20278 (packed) array reference as analyzed to prevent a forthcoming
20279 reanalysis from resetting its type to the original (non-packed) array
20282 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20283 Javier Miranda <miranda@adacore.com>
20284 Eric Botcazou <ebotcazou@adacore.com>
20286 * exp_util.ads, exp_util.adb (Find_Prim_Op,
20287 Is_Predefined_Primitive_Operation): When
20288 searching for the predefined equality operator, verify that operands
20289 have the same type.
20290 (Is_Predefined_Dispatching_Operation): Remove the code that looks
20291 for the last entity in the list of aliased subprograms. This code
20292 was wrong in case of renamings.
20293 (Set_Renamed_Subprogram): New procedure
20294 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
20295 Exp_Type constant computed when entering this subprogram.
20296 (Known_Null): New function
20297 (OK_To_Do_Constant_Replacement): New function
20298 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
20299 (Side_Effect_Free): An attribute reference 'Input is not free of
20300 side effect, unlike other attributes that are functions. (from code
20302 (Remove_Side_Effects): Expressions that involve packed arrays or records
20303 are copied at the point of reference, and therefore must be marked as
20304 renamings of objects.
20305 (Is_Predefined_Dispatching_Operation): Return false if the operation is
20306 not a dispatching operation.
20309 (Remove_Side_Effects): Lift enclosing type conversion nodes for
20310 elementary types in all cases.
20312 2006-02-13 Javier Miranda <miranda@adacore.com>
20314 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
20315 task types when accessing to the corresponding record type.
20316 Remove '!' in warning message.
20318 2006-02-13 Olivier Hainque <hainque@adacore.com>
20320 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
20321 to avoid useless and space inefficient overalignments on targets where
20322 Max_Alignment is larger than 16.
20324 2006-02-13 Pascal Obry <obry@adacore.com>
20326 * g-catiio.adb (Sec_Number): New type used to compute the number of
20327 seconds since 1-1-1970.
20328 (Image) [Natural]: The parameter was an Integer, as we can't deal with
20329 negative numbers (years, months...) it is better to have a Natural here.
20331 (Image) [Number]: Change parameter from Long_Integer to Number.
20332 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
20333 overflow for dates past year 2038.
20335 2006-02-13 Matthew Heaney <heaney@adacore.com>
20337 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
20340 2006-02-13 Arnaud Charlet <charlet@adacore.com>
20342 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
20344 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
20345 finalization can occur normally.
20347 2006-02-13 Vincent Celier <celier@adacore.com>
20349 * gnatcmd.adb (Rules_Switches): New table
20350 (Add_To_Rules_Switches): New procedure
20351 (GNATCmd): For command CHECK, put all options following "-rules" in the
20352 Rules_Switches table. Append these -rules switches after the -cargs
20355 2006-02-13 Robert Dewar <dewar@adacore.com>
20357 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
20358 These two cases were generating incorrect output, and if this unit
20359 was built with checks on, generated a discriminant mismatch constraint
20362 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20363 Robert Dewar <dewar@adacore.com>
20365 * lib-xref.adb (Get_Type_Reference): For a private type whose full
20366 view is an array type, indicate the component type as well, for
20367 navigation purposes.
20368 (Generate_Reference): Don't consider array ref on LHS to be a case
20369 of violating pragma Unreferenced.
20370 Do not give Ada 2005 warning except on real reference.
20372 2006-02-13 Vincent Celier <celier@adacore.com>
20374 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
20375 main source, add switch -mdebug-main=_ada_ so that the executable can
20376 be debugged by the standard VMS debugger.
20377 (Gnatmake): Set No_Main_Subprogram to True when there is no main
20378 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
20379 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
20380 of the last source, as the binding and linking phases are never
20382 Set all executable obsolete when rebuilding a library.
20384 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
20387 2006-02-13 Javier Miranda <miranda@adacore.com>
20390 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
20391 code to improve the error message reported when the program has
20392 declarations of abstract interface types and it is not compiled with
20393 the -gnat05 switch.
20394 (P_Access_Definition): Reorganize the code to improve the error
20395 message reported when the new Ada 2005 syntax for anonymous
20396 access types is used and the program is not compiled with the
20399 2006-02-13 Robert Dewar <dewar@adacore.com>
20401 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
20402 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
20405 2006-02-13 Javier Miranda <miranda@adacore.com>
20407 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
20408 against source containing syntax errors.
20410 2006-02-13 Vincent Celier <celier@adacore.com>
20412 * prj.adb (Reset): Initialize the first element of table Namings with
20413 the standard naming data.
20415 2006-02-13 Vincent Celier <celier@adacore.com>
20417 * prj.ads (Error_Warning): New enumeration type
20419 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
20420 unknown, use the location of the project to report the error.
20421 (When_No_Sources): New global variable
20422 (Report_No_Ada_Sources): New procedure
20423 (Check): New parameter When_No_Sources. Set value of global variable
20425 (Find_Sources): Call Report_No_Ada_Sources when appropriate
20426 (Get_Sources_From_File): Ditto
20427 (Warn_If_Not_Sources): Better warning messages indicating the unit name
20430 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
20431 Call Prj.Proc.Process with parameter When_No_Sources.
20433 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
20434 Call Recursive_Check with parameter When_No_Sources.
20435 (Recursive_Check): New parameter When_No_Sources. Call itself and
20436 Prj.Nmsc.Check with parameter When_No_Sources.
20437 (Process): New parameter When_No_Sources. Call Check with parameter
20439 (Copy_Package_Declarations): New procedure to copy renamed parameters
20440 and setting the location of the declared attributes to the location
20441 of the renamed package.
20442 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
20445 2006-02-13 Vincent Celier <celier@adacore.com>
20447 * prj-makr.adb (Make): Preserve the comments from the original project
20449 When removing nodes (attributes Source_Dirs, Source_Files,
20450 Source_List_File and package Naming), save the comments and attach the
20451 saved comments to the newly created nodes.
20452 Do not add a with clause for the naming package if one already exists.
20454 2006-02-13 Javier Miranda <miranda@adacore.com>
20455 Gary Dismukes <dismukes@adacore.com>
20456 Robert Dewar <dewar@adacore.com>
20458 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
20460 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
20461 aliased entities to look for the overriden abstract interface
20463 (Is_Interface_Subprogram): Complete documentation.
20464 (Check_Dispatching_Operation): Do not generate code to register the
20465 operation in the dispatch table if the source is compiled with
20466 restriction No_Dispatching_Calls.
20467 (Override_Dispatching_Operation): Check for illegal attempt to override
20468 No_Return procedure with procedure that is not No_Return
20469 (Check_Dispatching_Call): Suppress the check for an abstract operation
20470 when the original node of an actual is a tag-indeterminate attribute
20471 call, since the attribute, which must be 'Input, can never be abstract.
20472 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
20473 call to the Input attribute (even when rewritten).
20474 (Propagate_Tag): Augment comment to indicate the possibility of a call
20475 to an Input attribute.
20477 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
20478 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
20480 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
20481 No_Wide_Characters is no longer partition-wide
20482 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
20485 2006-02-13 Douglas Rupp <rupp@adacore.com>
20487 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
20489 2006-02-13 Javier Miranda <miranda@adacore.com>
20491 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
20492 handles default-initialized components to keep separate the management
20493 of this feature but also avoid the unrequired resolution and
20494 expansion of components that do not have partially initialized
20496 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
20497 (Check_Bounds): Likewise.
20498 (Check_Length): Likewise.
20500 2006-02-13 Javier Miranda <miranda@adacore.com>
20501 Ed Schonberg <schonberg@adacore.com>
20503 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
20504 abstract interface type call analyze_and_resolve to expand the type
20505 conversion into the corresponding displacement of the
20506 reference to the base of the object.
20507 (Eval_Attribute, case Width): For systems where IEEE extended precision
20508 is supported, the maximum exponent occupies 4 decimal digits.
20509 (Accessibility_Message): Add '\' in 2-line warning message.
20510 (Resolve_Attribute): Likewise.
20511 (case Attribute_Access): Significantly revise checks
20512 for illegal access-to-subprogram Access attributes to properly enforce
20513 the rules of 3.10.2(32/2).
20514 Diagnose use of current instance with an illegal attribute.
20516 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
20518 (Enclosing_Generic_Unit): New function to return a node's innermost
20519 enclosing generic declaration node.
20520 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
20521 (Type_Access_Level): The accessibility level of anonymous acccess types
20522 associated with discriminants is that of the current instance of the
20523 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
20524 (Compile_Time_Constraint_Error): Handle case of conditional expression.
20525 (Kill_Current_Values_For_Entity): New function
20526 (Enter_Name): Change formal type to Entity_Id
20528 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
20529 Ed Schonberg <schonberg@adacore.com>
20530 Gary Dismukes <dismukes@adacore.com>
20532 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
20533 Analyze_Compilation_Unit.
20534 Detect and warn on redundant with clauses detected in a package spec
20535 and/or body when -gnatwr is used.
20536 (Analyze_Context): Analyze config pragmas before other items
20537 (Install_Context_Items): Don't analyze config pragmas here
20538 (Install_Limited_Withed_Unit): Set limited entity of package in
20539 with_clause so that cross-reference information or warning messages on
20540 unused packages can be properly generated
20541 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
20542 has Error_Posted set. Prevent infinite loops in illegal programs.
20543 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
20544 to the point of the error test requiring the current unit to be private.
20545 This ensures that private with clauses are not exempted from the basic
20546 checking for being a descendant of the same library unit parent as a
20547 withed private descendant unit.
20548 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
20549 handle private with clauses properly, as well as to account for cases
20550 where the withed unit is a public descendant of a private ancestor
20551 (in which case the current unit must be a descendant of the private
20552 ancestor's parent). The spec comments were updated accordingly. Also,
20553 the old error message in this subprogram was replaced with error
20554 messages that mirror the errors tested and reported by
20555 Check_Private_Child_Unit.
20556 Parameter and variable names improved for readability.
20557 (Install_Limited_Context_Clauses): Remove test for a withed unit being
20558 private as the precondition for calling
20559 Check_Private_Limited_Withed_Unit since that subprogram has been
20560 revised to test public units as well as private units.
20562 2006-02-13 Thomas Quinot <quinot@adacore.com>
20563 Robert Dewar <dewar@adacore.com>
20564 Ed Schonberg <schonberg@adacore.com>
20565 Javier Miranda <miranda@adacore.com>
20567 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
20568 that Scope_Stack.First = 1.
20569 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20570 were not always properly handled previously.
20571 (Formal_Entity): Complete rewrite, to handle properly some complex case
20572 with multiple levels of parametrization by formal packages.
20573 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
20574 to the corresponding derived type declaration for proper semantics.
20576 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
20577 (Check_Component): Enforce restriction on components of
20578 unchecked_unions: a component in a variant cannot contain tasks or
20580 (Unchecked_Union): Allow nested variants and multiple discriminants, to
20582 Add pragma Ada_2005 (synonym for Ada_05)
20583 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
20584 were not always properly handled previously.
20585 Document that pragma Propagate_Exceptions has no effect
20586 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
20587 (Set_Convention_From_Pragma): Check that if a convention is
20588 specified for a dispatching operation, then it must be
20589 consistent with the existing convention for the operation.
20590 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
20591 longer required to specify an vtable-ptr component in the record. For
20592 compatibility reasons we leave the support for the previous definition.
20593 (Analyze_Pragma, case No_Return): Allow multiple arguments
20595 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
20596 non-overrideen inherited operation with a controlling result as
20597 illegal only its implicit declaration comes from the derived type
20598 declaration of its result's type.
20599 (Check_Possible_Deferred_Completion): Relocate the object definition
20600 node of the subtype indication of a deferred constant completion rather
20601 than directly analyzing it. The analysis of the generated subtype will
20602 correctly decorate the GNAT tree.
20603 (Record_Type_Declaration): Check whether this is a declaration for a
20604 limited derived record before analyzing components.
20605 (Analyze_Component_Declaration): Diagnose record types not explicitly
20606 declared limited when a component has a limited type.
20607 (Build_Derived_Record_Type): Code reorganization to check if some of
20608 the inherited subprograms of a tagged type cover interface primitives.
20609 This check was missing in case of a full-type associated with a private
20611 (Constant_Redeclaration): Check that the subtypes of the partial and the
20612 full view of a constrained deferred constant statically match.
20613 (Mentions_T): A reference to the current type in an anonymous access
20614 component declaration must be an entity name.
20615 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
20616 class_wide type to refer to full type, not to the incomplete one.
20617 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
20618 available. Required to give support to the certified run-time.
20619 (Analyze_Component_Declaration): In case of anonymous access components
20620 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
20621 (Process_Discriminants): For an access discriminant, use the
20622 discriminant specification as the associated_node_for_itype, to
20623 simplify accessibility checks.
20625 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20626 Javier Miranda <miranda@adacore.com>
20628 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
20629 abstract interpretations on an operator, remove interpretations that
20630 yield Address or a type derived from it, if one of the operands is an
20632 (Try_Object_Operation.Try_Primitive_Operation,
20633 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
20634 location when creating the new reference to a primitive or class-wide
20635 operation as a part of rewriting a subprogram call.
20636 (Try_Primitive_Operations): If context requires a function, collect all
20637 interpretations after the first match, because there may be primitive
20638 operations of the same type with the same profile and different return
20639 types. From code reading.
20640 (Try_Primitive_Operation): Use the node kind to choose the proper
20641 operation when a function and a procedure have the same parameter
20643 (Complete_Object_Operation): If formal is an access parameter and prefix
20644 is an object, rewrite as an Access reference, to match signature of
20645 primitive operation.
20646 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
20647 by an expanded name with prefix Standard, when the operands are of an
20648 anonymous access type.
20649 (Remove_Abstract_Operations): If the operation is abstract because it is
20650 inherited by a user-defined type derived from Address, remove it as
20651 well from the set of candidate interpretations of an overloaded node.
20652 (Analyze_Membership_Op): Membership test not applicable to cpp-class
20655 2006-02-13 Bob Duff <duff@adacore.com>
20657 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
20658 redundant use clauses.
20659 In particular, if the scope of two use clauses overlaps, but one is not
20660 entirely included in the other, we should not warn. This can happen
20661 with nested packages.
20662 (Analyze_Subprogram_Renaming): Protect the compiler against previously
20663 reported errors. The bug was reported when the compiler was built
20664 with assertions enabled.
20665 (Find_Type): If the node is a 'Class reference and the prefix is a
20666 synchronized type without a corresponding record, return the type
20669 2006-02-13 Javier Miranda <miranda@adacore.com>
20671 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
20672 if this is the full-declaration associated with a private declaration
20673 that implement interfaces, then the private type declaration must be
20675 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
20676 as aliased. The use of the 'access attribute is not available for such
20677 object (for this purpose the object should be explicitly marked as
20678 aliased, but being an anonymous type this is not possible).
20680 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20681 Robert Dewar <dewar@adacore.com>
20683 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
20684 compilation unit is an elaboration scope.
20685 (Add_Task_Proc): Add '\' in 2-line warning message.
20686 (Activate_All_Desirable): Deal with case of unit with'ed by parent
20688 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20689 Javier Miranda <miranda@adacore.com>
20691 * sem_type.adb (Write_Overloads): Improve display of candidate
20693 (Add_One_Interp): Do not add to the list of interpretations aliased
20694 entities corresponding with an abstract interface type that is an
20695 immediate ancestor of a tagged type; otherwise we have a dummy
20696 conflict between this entity and the aliased entity.
20697 (Disambiguate): The predefined equality on universal_access is not
20698 usable if there is a user-defined equality with the proper signature,
20699 declared in the same declarative part as the designated type.
20700 (Find_Unique_Type): The universal_access equality operator defined under
20701 AI-230 does not cover pool specific access types.
20702 (Covers): If one of the types is a generic actual subtype, check whether
20703 it matches the partial view of the other type.
20705 2006-02-13 Thomas Quinot <quinot@adacore.com>
20707 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
20708 line. This is necessary to allow In_Extended_Main_Unit to provide
20709 correct results for itypes while writing out expanded source.
20710 (Close_File): No need to update the source_index_table here since it's
20711 now done for each line.
20713 2006-02-13 Ed Schonberg <schonberg@adacore.com>
20714 Robert Dewar <dewar@adacore.com>
20716 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
20717 preserve the source unit where the itype is declared, and prevent a
20719 (Note_Implicit_Run_Time_Call): New procedure
20720 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
20723 * sprint.ads: Document use of $ for implicit run time routine call
20725 2006-02-13 Quentin Ochem <ochem@adacore.com>
20727 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
20730 2006-02-13 Bob Duff <duff@adacore.com>
20732 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
20733 Scan_Unsigned, so we do not scan leading blanks and sign twice.
20734 Integer'Value("- 5") and Integer'Value("-+5") now correctly
20735 raise Constraint_Error.
20737 * s-vallli.adb (Scan_Long_Long_Integer): Call
20738 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
20739 do not scan leading blanks and sign twice.
20740 Integer'Value("- 5") and Integer'Value("-+5") now correctly
20741 raise Constraint_Error.
20743 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
20744 Scan_Long_Long_Unsigned): Split out most of the processing from
20745 Scan_Long_Long_Unsigned out into
20746 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
20747 This prevents scanning leading blanks and sign twice.
20748 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
20751 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
20752 out most of the processing from Scan_Unsigned out into
20753 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
20754 This prevents scanning leading blanks and sign twice.
20756 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
20757 use with Modular'Value attribute.
20758 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
20761 2006-02-13 Robert Dewar <dewar@adacore.com>
20763 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
20765 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
20767 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
20768 (PPC VxWorks): Likewise.
20769 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
20770 (forced_callee): Make non-inlinable and non-pure.
20771 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
20773 2006-02-13 Arnaud Charlet <charlet@adacore.com>
20774 Ben Brosgol <brosgol@adacore.com>
20775 Robert Dewar <dewar@adacore.com>
20777 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
20779 Document that gnatbind -M option is for cross environments only.
20780 Added description of using gnatmem to trace gnat rtl allocs and deallocs
20781 Add note on use of $ to label implicit run time calls
20782 Add documentation for -gnatyI (check mode IN)
20783 Updated chapter on compatibility with HP Ada
20784 VMS-oriented edits.
20785 Ran spell and corrected errors
20786 Add documentation for gnatbind -d and rework documentation of -D
20788 Add subprogram/data elimination section.
20789 Minor editing of annex A.
20790 Add section for gnatcheck.
20791 Add documentation for restriction No_Dispatching_Calls
20792 Add documentation for pragma Ada_2005
20793 Remove mention of obsolete pragma Propagate_Exceptions
20794 Document that pragma Unreferenced can appear after DO in ACCEPT
20795 Clarify Pure_Function for library level units
20796 Mention Max/Min in connection with No_Implicit_Conditionals
20797 No_Wide_Characters restriction is no longer partition-wide
20798 Add a nice example for Universal_Literal_String attribute
20799 Document that pragma No_Return can take multiple arguments
20801 * ug_words: Added entry for gnatcheck
20803 * g-ctrl_c.ads (Install_Handler): Enhance comments
20805 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
20807 * g-trasym.ads: Add documentation on how to do off line symbolic
20808 traceback computation.
20810 * s-fatgen.adb: Add comments for Unaligned_Valid
20812 * stand.ads: Fix typo in comment
20814 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
20816 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
20818 2006-02-06 Roger Sayle <roger@eyesopen.com>
20820 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
20822 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20825 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
20826 implementation that calls __main.
20828 2006-01-25 Peter O'Gorman <peter@pogma.com>
20831 * Makefile.in (GCC_LINK): Remove quotes.
20832 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
20835 (powerpc-darwin): Pass -shared-libgcc when building shared library.
20837 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20840 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
20842 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20844 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
20846 2005-12-12 Arnaud Charlet <charlet@adacore.com>
20848 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
20851 2005-12-12 Arnaud Charlet <charlet@adacore.com>
20853 * Make-lang.in: Update dependencies
20855 2005-12-12 Arnaud Charlet <charlet@adacore.com>
20857 * Make-lang.in: Add rule for ada/exp_sel.o
20859 2005-12-12 Arnaud Charlet <charlet@adacore.com>
20861 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
20863 2005-12-09 Arnaud Charlet <charlet@adacore.com>
20865 * gnatvsn.ads (Library_Version): Bump to version 4.2
20866 (ASIS_Version_Number): Bumped.
20868 2005-12-09 Doug Rupp <rupp@adacore.com>
20870 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
20871 Ada bind file prefix on VMS from b$ to b__.
20872 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
20875 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
20876 Targparm.OpenVMS_On_Target.
20877 (Object_Suffix): Initialize with target object suffix.
20878 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
20880 * butil.adb: Change some Hostparm.OpenVMS checks to
20881 Targparm.OpenVMS_On_Target.
20883 * clean.adb: Change some Hostparm.OpenVMS checks to
20884 Targparm.OpenVMS_On_Target.
20885 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
20886 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
20887 Ada bind file prefix on VMS from b$ to b__.
20889 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
20890 --GCC so that Get_Target_Parameters can find system.ads.
20891 (Gnatlink): Call Get_Target_Parameters in mainline.
20892 Initialize standard packages for Targparm.
20893 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
20894 (Process_Args): Also Check for object files with target object
20896 (Make_Binder_File_Names): Create with target object extension.
20897 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
20900 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
20901 Targparm.OpenVMS_On_Target.
20902 ({declaration},Build_Library,Check_Library): Change Ada bind file
20903 prefix on VMS from b$ to b__.
20905 * osint-b.adb: Change some Hostparm.OpenVMS checks to
20906 Targparm.OpenVMS_On_Target.
20907 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
20910 * targext.c: New file.
20912 * Makefile.in: add support for vxworks653 builds
20913 (../../vxaddr2line): gnatlink with targext.o.
20914 (TOOLS_LIBS): Move targext.o to precede libgnat.
20915 (init.o, initialize.o): Minor clean up in dependencies.
20916 (GNATLINK_OBJS): Add targparm.o, snames.o
20917 Add rules fo building targext.o and linking it explicitly with all
20919 Also add targext.o to gnatlib.
20921 * Make-lang.in: Add rules for building targext.o and linking it in
20922 with gnat1 and gnatbind.
20923 Add entry for exp_sel.o.
20925 * osint.adb Change some Hostparm.OpenVMS checks to
20926 Targparm.OpenVMS_On_Target.
20927 (Object_File_Name): Use target object suffix.
20929 * osint.ads (Object_Suffix): Remove, no longer used.
20930 (Target_Object_Suffix): Initialize with target object suffix.
20932 * rident.ads: Add special exception to license.
20934 * targparm.adb (Get_Target_Parameters): Set the value of
20935 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
20937 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
20939 * targparm.ads: Add special exception to license.
20941 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
20943 (Copy_File): Make sure from file is closed if error on to file
20944 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
20946 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
20947 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
20949 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
20950 target object suffix.
20952 2005-12-09 Jose Ruiz <ruiz@adacore.com>
20953 Quentin Ochem <ochem@adacore.com>
20954 Florian Villoing <villoing@adacore.com>
20956 * a-taster.ads, a-taster.adb: New files.
20958 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
20959 link to the version that does nothing. This way the task termination
20960 routine is not executed twice for the environment task when finishing
20961 because of an unhandled exception.
20963 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
20964 handler because of an unhandled exception.
20966 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
20967 System.Tasking.Utilities instead of that in System.Tasking.Stages.
20969 * s-finimp.adb (initialization code): Modify the soft link for the
20970 finalization of the global list instead of Adafinal.
20972 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
20973 non-tasking version of the soft link for task termination. We do
20974 nothing since if we are using the non-tasking version it
20975 means that the task termination functionality is not used.
20976 (Null_Finalize_Global_List): Add this null version for the procedure
20977 in charge of finalizing the global list for controlled objects.
20978 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
20979 instead for handling run-time termination in a more flexible way.
20980 (Adafinal_NT): This new procedure will take care of finalizing the
20981 global list for controlled objects if needed, but no tasking
20984 * s-tarest.adb (Task_Lock): Do not try to lock again the
20985 Global_Task_Lock if we already own it. Otherwise, we get blocked in
20986 some run-time operations.
20987 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
20988 until all nested locks have been released.
20989 (Task_Wrapper): Call the fall-back task termination handler. It
20990 applies to all tasks but the environment task.
20991 (Finalize_Global_Tasks): Add the call for the task termination
20992 procedure for the environment task.
20993 (Task_Wrapper): suppress warnings around declaration of
20994 Secondary_Stack_Address.
20996 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
20997 moved to the Common_ATCB record.
20998 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
20999 Common_ATCB record.
21000 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
21001 Common_ATCB record.
21003 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
21004 Fall_Back_Handler, and Specific_Handler.
21006 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
21007 defined in Ada.Task_Termination, to avoid circular dependencies.
21008 (Termination_Handler): Redefine this type here, alredy defined in
21009 Ada.Task_Termination, for avoiding circular dependencies.
21010 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
21011 for storing task termination handlers. In addition,
21012 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
21013 Common_ATCB because it is used by both the regular and the restricted
21015 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
21016 Common_ATCB because it is used by both the regular and the restricted
21018 (Common_ATCB): Added a dynamic task analyzer field.
21020 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
21021 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
21022 (Task_Wrapper): Call the task termination handler. It applies to all
21023 tasks but the environment task.
21024 (Finalize_Global_Tasks): Call the task termination procedure for the
21025 environment task. The call to Finalize_Global_List is now performed
21026 using the soft links mechanism.
21027 (Task_Wrapper): added dynamic stack analysis.
21029 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
21030 potentially blocking operations has been moved from
21031 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
21032 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
21033 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
21034 this run-time check.
21036 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
21037 of task termination procedure.
21038 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
21039 link for the task termination procedure.
21041 * bindusg.adb: (Bindusg): Added documentation for -u option.
21043 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
21044 (Get_Main_C): Add handling of dynamic stack analysis.
21045 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
21047 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
21048 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
21049 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
21051 * opt.ads: Added flags used by dynamic stack measurement.
21052 (Max_Line_Length): Remove (not used anymore)
21054 * s-io.ads, s-io.adb (Standard_Error): new subprogram
21055 (Standart_Output): new subprogram
21056 (Set_Output): new subprogram
21057 (Put): now uses the value of Current_Out to know if the output has to be
21058 send to stderr or stdout.
21060 * s-stausa.ads: Complete implementation.
21062 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
21064 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
21065 list of Ada 05 files.
21066 (GNAT Library Units): Add AltiVec files.
21068 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
21069 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
21070 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
21072 2005-12-09 Nicolas Setton <setton@adacore.com>
21074 * adaint.c (__gnat_locate_regular_file): Return immediately if
21075 file_name is empty.
21077 2005-12-09 Javier Miranda <miranda@adacore.com>
21078 Hristian Kirtchev <kirtchev@adacore.com>
21080 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
21081 to the specification because the frontend generates code that uses this
21083 (Set_Interface_Table): Add missing assertion.
21084 Update documentation describing the run-time structure.
21085 (Displace): New subprogram that displaces the pointer to the object
21086 to reference one of its secondary dispatch tables.
21087 (IW_Membership): Modified to use the new table of interfaces.
21088 (Inherit_TSD): Modified to use the new table of interfaces.
21089 (Register_Interface_Tag): Use the additional formal to fill the
21090 contents of the new table of interfaces.
21091 (Set_Interface_Table): New subprogram that stores in the TSD the
21092 pointer to the table of interfaces.
21093 (Set_Offset_To_Top): Use the additional formal to save copy of
21094 the offset value in the table of interfaces.
21095 Update structure of GNAT Primary and Secondary dispatch table diagram.
21096 Add comment section on GNAT dispatch table prologue.
21097 (Offset_To_Signature): Update the constant value of the Signature field.
21098 (Dispatch_Table): Update comment on hidden fields in the prologue.
21099 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
21100 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
21101 the type of formal parameter T to Tag, introduce additional assertions.
21102 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
21104 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
21106 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
21107 in all the calls to Expand_Interface_Thunk. Instead of referencing the
21108 record component containing the tag of the secondary dispatch table we
21109 have to use the Offset_To_Top run-time function to get this information;
21110 otherwise if the pointer to the base of the object has been displace
21111 we get a wrong value if we use the 'position attribute.
21113 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
21114 all the calls to Expand_Interface_Thunk.
21115 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
21116 interfaces; hence the call to Set_Interface_Table was clearly wrong.
21117 (Collect_All_Interfaces): Modify the internal subprogram Collect to
21118 ensure that the interfaces implemented by the ancestors are placed
21119 at the header of the generated list.
21120 (Expand_Interface_Conversion): Handle the case in which the displacement
21121 associated with the interface conversion is not statically known. In
21122 this case we generate a call to the new run-time subprogram Displace.
21123 (Make_DT): Generate and fill the new table of interfaces.
21124 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
21125 Get_Tagged_Kind and Set_Tagged_Kind.
21126 (Tagged_Kind): New function that determines the tagged kind of a type
21127 with respect to limitedness and concurrency and returns a reference to
21129 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
21130 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
21131 primary dispatch table for a type.
21132 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
21133 secondary dispatch table respectively of a tagged type.
21135 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
21136 (Expand_Interface_Conversion): New subprogram to indicate if the
21137 displacement of the type conversion is statically known.
21138 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
21140 * rtsfind.ads (RE_Offset_To_Top): New entity
21141 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
21142 accessible to users.
21143 (Re_Displace): New entity
21144 (RE_Interface_Data): New entity
21145 (RE_Set_Interface_Data): New_Entity
21146 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
21147 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
21148 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
21149 RE_TK_Tagged, RE_TK_Task.
21151 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
21152 Init_Secondary_Tags_Internal to allow its use with interface types and
21153 also to generate the code for the new additional actual required
21154 by Set_Offset_To_Top.
21155 (Build_Init_Statements): In case of components associated with abstract
21156 interface types there is no need to generate a call to its IP.
21157 (Freeze_Record_Type): Generate Select Specific Data tables only for
21159 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
21160 the bodies and specifications of the predefined primitive operations
21161 dealing with dispatching selects and abort, 'Callable, 'Terminated only
21162 for concurrent types.
21164 * exp_sel.ads, exp_sel.adb: New files.
21166 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
21167 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
21168 properly protected objects and attach handler in the case of the
21169 restricted profile.
21170 Move embeded package Select_Expansion_Utilities into a separate external
21172 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
21173 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
21174 (Build_K, Build_S_Assignment): New subprograms, part of the select
21175 expansion utilities.
21176 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
21177 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
21178 where the trigger is a dispatching procedure of a limited tagged type.
21180 2005-12-09 Olivier Hainque <hainque@adacore.com>
21182 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
21183 pointer initialization values. Make a SAVE_EXPR instead. Add comments
21184 about the use and expansion of SAVE_EXPRs in the various possible
21185 renaming handling cases.
21186 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
21187 abusing DECL_FCONTEXT.
21189 2005-12-09 Matthew Heaney <heaney@adacore.com>
21191 * a-convec.adb (Merge): Added assertions to check whether vector params
21194 * a-coinve.adb (Merge): Added assertions to check whether vector params
21197 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
21199 (Cursor'Read): raises PE
21201 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
21202 to its default value.
21204 * a-cihama.adb: Manually check whether cursor's key and elem are
21207 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
21208 (Merge): Assert that target and source lists are in order
21209 (Swap): Declare non-const temporaries, to pass to Splice
21211 * a-cdlili.ads: (Splice): Changed param name and param mode
21213 * a-cdlili.adb: (Splice): Changed param name and param mode
21214 (Merge): Assert that target and source lists are in order
21215 (Swap): Declare non-const temporaries, to pass to Splice
21217 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
21218 (Write): declare Stream param as not null
21220 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
21221 an exception message.
21223 2005-12-09 Thomas Quinot <quinot@adacore.com>
21224 Robert Dewar <dewar@adacore.com>
21226 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
21227 which is the absolute maximum length we can support.
21229 * frontend.adb: For the processing of configuration pragma files,
21230 remove references to Opt.Max_Line_Length, which is not checked anymore.
21232 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
21235 * scn.adb, scng.adb:
21236 Always check line length against the absolute supported maximum,
21237 Hostparm.Max_Line_Length.
21239 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
21240 value for the maximum line length is Max_Line_Length (not
21241 Column_Number'Last).
21242 Minor error msg update
21243 (Set_Style_Check_Options): New interface returning error msg
21244 Minor code reorganization (processing for 'M' was out of alpha order)
21246 * switch-c.adb: New interface for Set_Style_Check_Options
21248 * stylesw.ads (Set_Style_Check_Options): New interface returning error
21251 2005-12-09 Javier Miranda <miranda@adacore.com>
21253 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
21254 with IP subprogram were only supported if there were limited types.
21256 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
21257 records with IP subprogram were only supported if there were limited
21260 2005-12-09 Olivier Hainque <hainque@adacore.com>
21261 Eric Botcazou <ebotcazou@adacore.com>
21263 * trans.c (tree_transform, emit_check): Adjust calls to
21264 build_call_raise, passing the now expected GNAT_NODE argument.
21266 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
21267 source line information than what the current global locus indicates
21270 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
21271 field has overflowed.
21272 (build_call_raise): Add a GNAT_NODE argument to convey better source
21273 line information than what the current global locus indicates when
21275 (build_component_ref): Adjust call to build_call_raise.
21277 2005-12-09 Pascal Obry <obry@adacore.com>
21279 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
21280 the iterator is quitting iteration on parent directory.
21282 2005-12-09 Javier Miranda <miranda@adacore.com>
21284 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
21285 and the assignment to a class-wide object, before the assignment we
21286 generate a run-time check to ensure that the tag of the Target is
21287 covered by the tag of the source.
21289 2005-12-09 Robert Dewar <dewar@adacore.com>
21291 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
21292 parameter in call to Image_Wide_Character.
21294 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
21295 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
21296 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
21297 annoying FFFE/FFFF inconsistency.
21299 2005-12-09 Robert Dewar <dewar@adacore.com>
21300 Javier Miranda <miranda@adacore.com>
21301 Ed Schonberg <schonberg@adacore.com>
21303 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
21304 of type conversion.
21305 (Find_Interface): New subprogram that given a tagged type and one of its
21306 component associated with the secondary table of an abstract interface
21307 type, return the entity associated with such abstract interface type.
21308 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
21309 base type to create anonymous subtype, because entity may be a locally
21310 declared subtype or generic actual.
21311 (Find_Interface): New subprogram that given a tagged type and one of its
21312 component associated with the secondary table of an abstract interface
21313 type, return the entity associated with such abstract interface type.
21315 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
21316 conversion cannot be handled at compile time. In this case we pass this
21317 information to the expander to generate the appropriate code.
21319 2005-12-09 Robert Dewar <dewar@adacore.com>
21320 Ed Schonberg <schonberg@adacore.com>
21321 Gary Dismukes <dismukes@adacore.com>
21322 Javier Miranda <miranda@adacore.com>
21323 Hristian Kirtchev <kirtchev@adacore.com>
21325 * einfo.adb (Itype_Printed): New flag
21326 (Is_Limited_Type): Derived types do not inherit limitedness from
21327 interface progenitors.
21328 (Is_Return_By_Reference_Type): Predicate does not apply to limited
21331 * einfo.ads (Itype_Printed): New flag
21332 Move Is_Wrapper_Package to proper section
21333 Add missing Inline for Is_Volatile
21335 * output.ads, output.adb (Write_Erase_Char): New procedure
21336 (Save/Restore_Output_Buffer): New procedures
21337 (Save/Restore_Output_Buffer): New procedures
21339 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
21340 Add missing support for anonymous access type
21341 (Write_Id): Insert calls to Write_Itype
21342 (Write_Itype): New procedure to output itypes
21344 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
21345 use of "limited" in declaration.
21347 * sinfo.ads, sinfo.adb:
21348 Formal derived types can carry an explicit "limited" indication.
21350 * sem_ch3.adb: Add with and use of Targparm.
21351 (Create_Component): If Frontend_Layout_On_Target is True and the
21352 copied component does not have a known static Esize, then reset
21353 the size and positional fields of the new component.
21354 (Analyze_Component_Declaration): A limited component is
21355 legal within a protected type that implements an interface.
21356 (Collect_Interfaces): Do not add to the list the interfaces that
21357 are implemented by the ancestors.
21358 (Derived_Type_Declaration): If the parent of the full-view is an
21359 interface perform a transformation of the tree to ensure that it has
21360 the same parent than the partial-view. This simplifies the job of the
21361 expander in order to generate the correct object layout, and it is
21362 needed because the list of interfaces of the full-view can be given in
21364 (Process_Full_View): The parent of the full-view does not need to be
21365 a descendant of the parent of the partial view if both parents are
21367 (Analyze_Private_Extension_Declaration): If declaration has an explicit
21368 "limited" the parent must be a limited type.
21369 (Build_Derived_Record_Type): A derived type that is explicitly limited
21370 must have limited ancestor and progenitors.
21371 (Build_Derived_Type): Ditto.
21372 (Process_Full_View): Verify that explicit uses of "limited" in partial
21373 and full declarations are consistent.
21374 (Find_Ancestor_Interface): Remove function.
21375 (Collect_Implemented_Interfaces): New procedure used to gather all
21376 implemented interfaces by a type.
21377 (Contain_Interface): New function used to check whether an interface is
21379 (Find_Hidden_Interface): New function used to determine whether two
21380 lists of interfaces constitute a set equality. If not, the first
21381 differing interface is returned.
21382 (Process_Full_View): Improve the check for the "no hidden interface"
21383 rule as defined by AI-396.
21385 2005-12-09 Robert Dewar <dewar@adacore.com>
21387 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
21388 types, not on record subtypes.
21389 (Freeze_Entity): Code cleanup. Add barrier to the loop
21390 that generates the references for primitive operations. This allows to
21391 remove an unnecessary exception handler.
21392 Code reformatting and comment clean ups.
21394 2005-12-09 Vincent Celier <celier@adacore.com>
21396 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
21397 If GNAT CHECK is called with a project file, but with no
21398 source on the command line, call gnatcheck with all the compilable
21399 sources of the project.
21400 Take into account the new command Check, for gnatcheck. Treat as for
21401 other ASIS tools: take into account project, specific package Check and
21403 For ASIS tools, add the switches in package Compiler for
21404 the invocation of the compiler.
21406 * prj-attr.adb: Add package Check and its attributes
21408 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
21410 * vms_conv.adb (Initialize): Change Params of command Check to
21412 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
21413 Add data for new command Check
21415 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
21417 Add qualifiers for Check command options
21418 (Command_Type): New command Check
21420 2005-12-09 Thomas Quinot <quinot@adacore.com>
21422 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
21423 command line switch overruns the output buffer.
21425 2005-12-09 Robert Dewar <dewar@adacore.com>
21427 * sem_prag.adb: Processing for new pragma Complete_Representation
21428 (Analyze_Pragma, case Debug): Implement two argument form.
21430 * par-prag.adb: Entry for new pragma Complete_Representation
21431 (Prag, case Debug): Recognize two argument form of pragma Debug
21432 New interface for Set_Style_Check_Options.
21434 * sem_ch13.adb: Implement new pragma Complete_Representation.
21436 * snames.adb, snames.ads, snames.h: Entry for new pragma
21437 Complete_Representation.
21439 2005-12-09 Gary Dismukes <dismukes@adacore.com>
21441 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
21442 available user-specified stream attributes on limited parameters to
21443 also test the type directly rather than only its underlying type (for
21444 Ada 95) and, in the case of Ada 2005, to check that the user-specified
21445 attributes are visible at the point of the subprogram declaration.
21446 For Ada 2005, the error message is modified to indicate that the
21447 type's stream attributes must be visible (again, only for -gnat05).
21449 2005-12-09 Ed Schonberg <schonberg@adacore.com>
21451 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
21452 anonymous access types.
21454 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
21455 matching of anonymous access types and anonymous access to subprogram
21456 types. 'R'M 4.9.1 (2/2).
21458 2005-12-09 Ed Schonberg <schonberg@adacore.com>
21460 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
21461 rule prematurely when operands are universal, remaining ambiguities
21462 will be removed during resolution.
21465 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
21466 that are Ada 2005 functions.
21467 (Has_Abstract_Interpretation): Subsidiary to
21468 Remove_Conversions, to remove ambiguities caused by abstract operations
21469 on numeric types when operands are universal.
21471 2005-12-09 Robert Dewar <dewar@adacore.com>
21473 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
21474 for case where spec is categorized.
21476 2005-12-09 Javier Miranda <miranda@adacore.com>
21478 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
21479 types use the corresponding record type. This was not needed before
21480 the implementation of Ada 2005 synchronized types because
21481 concurrent types were never tagged types in Ada 95.
21483 2005-12-09 Ed Schonberg <schonberg@adacore.com>
21485 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
21486 first subtype of the type of the expression to verify that it is a
21489 2005-12-09 Robert Dewar <dewar@adacore.com>
21491 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
21494 2005-12-09 Quentin Ochem <ochem@adacore.com>
21495 Robert Dewar <dewar@adacore.com>
21496 Ed Falis <falis@adacore.com>
21497 Florian Villoing <villoing@adacore.com>
21498 Thomas Quinot <quinot@adacore.com>
21499 Arnaud Charlet <charlet@adacore.com>
21501 * gnat_ugn.texi: Created section "Stack Related Tools"
21502 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
21503 "Stack Related Tools"
21504 Added subsection "Static Stack Usage Analysis"
21505 Added subsection "Dynamic Stack Usage Analysis"
21506 Include documentation of itypes in sprint listing (-gnatG)
21507 Documented gnatbind -D switch (default sec stack size for fixed sec
21509 Added Interrupt_State and Persistent_BSS to list of configuration
21511 Add missing doc for maximum value of nnn in -gnatyMnnn
21513 * gnat_rm.texi: Document the AltiVec binding.
21514 Add documentation for pragma Complete_Representation
21515 Shortened an overly long line (> 79 chars)
21516 Clarify documentation of unchecked conversion in implementation
21518 Document two argument form of pragma Debug
21520 * types.ads (Column_Number): Update documentation.
21522 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
21523 library level Finalize_Storage_Only objects (these are not attached to
21524 any finalization list).
21526 * system-mingw.ads: (Underlying_Priorities): Update comment.
21528 2005-12-09 Robert Dewar <dewar@adacore.com>
21530 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
21531 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
21532 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
21533 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
21534 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
21535 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
21536 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
21537 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
21540 2005-12-09 Robert Dewar <dewar@adacore.com>
21542 * s-vaflop-vms-alpha.adb: (Ne_F): New function
21543 (Ne_G): New function
21545 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
21546 for tag assignment.
21547 (Rewrite_Comparison): Handle case where operation is not a comparison
21548 and ignore, and also handle type conversion case.
21550 2005-12-09 Thomas Quinot <quinot@adacore.com>
21552 * exp_aggr.ads: Fix typo in comment.
21553 ???-mark Convert_Aggr_In_Assignment as needing documentation.
21555 2005-12-09 Gary Dismukes <dismukes@adacore.com>
21557 * layout.adb: Replace various uses of byte by storage unit throughout.
21558 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
21559 static size, convert to storage units before returning, to conform to
21562 2005-12-09 Matthew Gingell <gingell@adacore.com>
21564 * g-exctra.ads: Fix typo in comment.
21566 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21568 * utils.c: Minor reformatting.
21570 2005-12-09 Robert Dewar <dewar@adacore.com>
21573 Further comment fixes to make the status of the default file clear
21575 * s-bitops.adb: Clarify comment for Bits_Array
21577 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
21579 * Make-lang.in (ada.install-normal): Remove.
21581 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
21583 * Make-lang.in: Remove all dependencies on s-gtype.
21585 2005-12-05 Richard Guenther <rguenther@suse.de>
21587 * utils.c (convert): Use fold_convert where appropriate.
21589 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
21591 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
21594 2005-12-02 Richard Guenther <rguenther@suse.de>
21596 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
21598 2005-12-01 Roger Sayle <roger@eyesopen.com>
21600 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
21603 2005-11-23 Laurent Guerby <laurent@guerby.net>
21605 * mlib-prj.adb (Build_Library): Initialize Delete.
21607 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
21609 * socket.c: Add extern int h_errno for rtems since networking header
21610 files are not available at this point in a tool bootstrap. Newlib
21611 only has basic C library header files.
21613 2005-11-19 Richard Guenther <rguenther@suse.de>
21614 Roger Sayle <roger@eyesopen.com>
21617 * misc.c (internal_error_function): Don't use vsprintf to format
21618 the error message text, instead use pp_format_text and the new
21619 pretty printer APIs. This allows handling of %qs, %w, etc.
21621 2005-11-18 Laurent Guerby <laurent@guerby.net>
21624 * Makefile.in: Use s-auxdec-empty for RTEMS.
21626 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
21629 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
21630 a temporary if taking the address of something that is neither
21631 reference, declaration, or constant, since the gimplifier
21632 can't handle that case.
21634 2005-11-17 Laurent Guerby <laurent@guerby.net>
21637 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
21639 2005-11-16 Richard Guenther <rguenther@suse.de>
21641 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
21643 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
21646 * raise-gcc.c: Add missing stdarg.h include.
21648 2005-11-16 Richard Guenther <rguenther@suse.de>
21650 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
21651 (ada/misc.o): Likewise.
21653 2005-11-14 Thomas Quinot <quinot@adacore.com>
21655 * g-soccon.ads: Minor reformatting. Update comments.
21657 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
21658 gain visibility on the declaration of struct timeval.
21660 * g-soccon-freebsd.ads,
21661 g-soccon-darwin.ads,
21662 g-soccon-tru64.ads,
21666 g-soccon-solaris.ads,
21668 g-soccon-mingw.ads,
21669 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
21671 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
21672 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
21673 g-soccon-linux-x86.ads: New files.
21675 * g-socthi-mingw.adb:
21676 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
21678 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
21679 (time_t, suseconds_t): New types constructed to match the tv_sec
21680 and tv_usec fields of C struct timeval.
21681 (Timeval): Construct structure in terms of the new types.
21682 (Host_Errno): New function (imported from socket.c), returns last hosts
21685 * g-socthi-vxworks.adb: Add error handling circuitry.
21687 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
21688 components of struct timeval.
21689 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
21690 (Check_Selector): In error conditions, clear internal socket sets to
21691 avoid a memory leak.
21692 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
21693 Send_Timeout, Receive_Timeout.
21695 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
21696 the tv_sec and tv_usec fields of C struct timeval.
21697 (Timeval): Construct structure in terms of the new types.
21698 (Host_Errno): New function (imported from socket.c), returns last hosts
21701 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
21702 hosts database last error code.
21704 * gen-soccon.c: Complete value expansion should not be performed on
21705 TARGET, as it has the form of a math expression, and some components
21706 may be platform-defined macros.
21707 For VxWorks, generate the OK and ERROR values.
21708 New constants giving the sizes of the components of C struct timeval.
21710 2005-11-14 Robert Dewar <dewar@adacore.com>
21711 Ed Schonberg <schonberg@adacore.com>
21714 * types.ads: Include All_Checks in Suppress_Array
21716 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
21717 not(a=b), since we no longer do this rewriting, and hence it is not
21719 (Elaboration_Checks_Suppressed): Add special casing to
21720 deal with different cases of static and dynamic elaboration checks (all
21721 checks does not count in the first case, but does in the second).
21722 (Expr_Known_Valid): Do not assume that the result of any arbitrary
21723 function call is valid, since this is not the case.
21724 (Ensure_Valid): Do not apply validity check to a real literal
21725 in a universal or fixed context
21727 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
21728 elementary types using the operator in standard. It is cleaner not to
21729 modify the programmers intent, especially in the case of floating-point.
21730 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
21731 it did not matter because we always rewrote a/=b to not(a=b).
21732 (Expand_Allocator_Expression): For an allocator expression whose nominal
21733 subtype is an unconstrained packed type, convert the expression to its
21734 actual constrained subtype.
21735 Implement warning for <= or >= where < or > not possible
21736 Fix to Vax_Float tests (too early in many routines, causing premature
21737 Vax_Float expansions.
21739 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
21740 to be used with packages and generic packages as well as with
21742 (Suppress): Set All_Checks, but not Elaboration_Check, for case
21743 of pragma Suppress (All_Checks)
21744 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
21745 a string literal for precise control over warnings.
21746 Avoid raise of pragma in case of unrecognized pragma and just return
21749 * sem_prag.ads: Minor reformatting
21751 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
21752 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
21753 Switch. Do not handle any exception.
21754 Include -gnatwx as part of -gnatg (warn on redundant parens)
21755 Allow optional = after -gnatm
21756 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
21757 longer sets Elaboration_Checks.
21758 Code to set warning mode moved to Sem_Warn
21759 so that it can be shared by pragma processing.
21761 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
21764 * s-taprop-solaris.adb:
21765 Change some <= to =, to avoid new warning
21767 * a-exexda.adb, prj-proc.adb:
21768 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
21769 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
21771 2005-11-14 Robert Dewar <dewar@adacore.com>
21773 * exp_vfpt.adb: Handle /= case
21774 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
21775 so that we do not get duplicate scaling for fixed point conversions.
21777 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
21779 2005-11-14 Matthew Gingell <gingell@adacore.com>
21781 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
21782 Increase default priority on Lynx from 15 to 17, and meet the Ada
21783 requirement that Default_Priority be ((Priority'First +
21784 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
21786 2005-11-14 Vincent Celier <celier@adacore.com>
21788 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
21789 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
21790 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
21791 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
21792 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
21793 mlib-tgt-lynxos.adb (DLL_Prefix): New function
21795 2005-11-14 Doug Rupp <rupp@adacore.com>
21797 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
21800 2005-11-14 Arnaud Charlet <charlet@adacore.com>
21802 * s-traces-default.adb, s-trafor-default.ads,
21803 s-tratas-default.adb: Fix compilation errors.
21805 2005-11-14 Jose Ruiz <ruiz@adacore.com>
21807 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
21808 raising the exception so the memory used is freed.
21810 2005-11-14 Arnaud Charlet <charlet@adacore.com>
21812 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
21813 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
21814 (convert_address): Update comments and list of platforms using this.
21816 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
21819 2005-11-14 Pascal Obry <obry@adacore.com>
21820 Vincent Celier <celier@adacore.com>
21822 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
21825 * memroot.adb: Remove redundant with/use clause on
21826 System.Storage_Elements.
21828 2005-11-14 Arnaud Charlet <charlet@adacore.com>
21830 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
21831 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
21832 related code to a-exexpr.adb
21833 (Save_Occurrence_And_Private): Move GCC EH related code to
21835 (Raise_Current_Excep): Add new variable Id with pragma
21836 volatile, to ensure that the variable lives on stack.
21838 * a-exexpr-gcc.adb, raise-gcc.c: New file.
21840 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
21842 Move GCC EH related code to a-exexpr-gcc.adb
21844 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
21846 Split the Linux version of g-soccon into separate variants for 32 and 64
21848 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
21849 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
21850 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
21851 of host variable $(RANLIB_FLAGS).
21852 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
21853 Code clean up: remove unused/obsolete targets.
21854 (EH_MECHANISM): New variable introduced to differenciate between the
21855 two EH mechanisms statically.
21856 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
21857 (LIBGNAT_OBJS): Add raise-gcc.o
21858 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
21859 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
21860 supports VxWorks 6 RTPs.
21861 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
21862 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
21864 * raise.c: Move all GCC EH-related routines to raise-gcc.c
21866 2005-11-14 Jose Ruiz <ruiz@adacore.com>
21868 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
21869 deferral level, when abort is not allowed, to a later stage (the
21871 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
21872 it will not get changed by the generated code. It was previously done
21875 2005-11-14 Thomas Quinot <quinot@adacore.com>
21876 Olivier Hainque <hainque@adacore.com>
21877 Eric Botcazou <ebotcazou@adacore.com>
21880 Factor common code to build a storage type for an unconstrained object
21881 from a fat or thin pointer type and a constrained object type.
21882 (annotate_value): Handle BIT_AND_EXPR.
21883 (annotate_rep): Don't restrict the back annotation of inherited
21884 components to the type_annotate_only case.
21885 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
21886 we are not defining the type.
21887 <E_Record_Type>: Likewise.
21888 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
21889 to get advantage of the new maybe_stabilize_reference interface, to
21890 ensure that what we reference is indeed stabilized instead of relying
21891 on assumptions on what the stabilizer does.
21892 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
21893 type imported through a limited_with clause, use its non-limited view.
21894 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
21896 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
21897 of #if sections + explicit comparisons of convention identifiers.
21898 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
21899 before early-returning for certain types when code generation is
21901 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
21902 nullification of gnu_expr we do for objects with address clause and
21903 that we are not defining.
21904 (elaborate_expression_1): Do not create constants when creating
21905 variables needed by the debug info: the dwarf2 writer considers that
21906 CONST_DECLs is used only to represent enumeration constants, and emits
21908 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
21909 object with an address clause into an indirect reference, drop the
21910 initializing expression.
21912 (STACK_CHECK_BUILTIN): Delete.
21913 (STACK_CHECK_PROBE_INTERVAL): Likewise.
21914 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
21915 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
21916 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
21917 corresponding to the renamed object as ignored for debugging purposes.
21919 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
21920 related): For a prefix that is a dereference of a fat or thin pointer,
21921 if there is an actual subtype provided by the front-end, use that
21922 subtype to build an actual type with bounds template.
21923 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
21924 is provided by the front-end, use that subtype to compute the size of
21925 the deallocated object.
21926 (gnat_to_gnu): When adding a statement into an elaboration procedure,
21927 check for a potential violation of a No_Elaboration_Code restriction.
21928 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
21929 with extra arguments to control whether to recurse through non-values
21930 and to let the caller know if the stabilization has succeeded.
21931 (gnat_stabilize_reference): Now a simple wrapper around
21932 maybe_stabilize, for common uses without restriction on lvalues and
21933 without need to check for the success indication.
21934 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
21935 pass false instead of 0 as the FORCE argument which is a bool.
21936 (Identifier_to_gnu): Remove checks ensuring that an renamed object
21937 attached to a renaming pointer has been properly stabilized, as no such
21938 object is attached otherwise.
21939 (call_to_gnu): Invoke create_var_decl to create the temporary when the
21940 function uses the "target pointer" return mechanism.
21941 Reinstate conversion of the actual to the type of the formal
21942 parameter before any other specific treatment based on the passing
21943 mechanism. This turns out to be necessary in order for PLACEHOLDER
21944 substitution to work properly when the latter type is unconstrained.
21946 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
21948 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
21949 with extra arguments to control whether to recurse through non-values
21950 and to let the caller know if the stabilization has succeeded.
21952 * utils2.c (gnat_build_constructor): Only sort the fields for possible
21953 static output of record constructor if all the components are constant.
21954 (gnat_build_constructor): For a record type, sort the list of field
21955 initializers in increasing bit position order.
21956 Factor common code to build a storage type for an unconstrained object
21957 from a fat or thin pointer type and a constrained object type.
21958 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
21959 types variants, and process special cases of VIEW_CONVERT expressions
21960 as their NOP_EXPR counterpart to ensure we get to the
21961 CORRESPONDING_VARs associated with CONST_DECls.
21962 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
21963 on the right-hand side.
21965 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
21967 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
21968 are converting back to its original type.
21969 (convert) <JM input>: Fallthrough regular conversion code instead of
21970 extracting the object if converting to a type variant.
21971 (create_var_decl): When a variable has an initializer requiring code
21972 generation and we are at the top level, check for a potential violation
21973 of a No_Elaboration_Code restriction.
21974 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
21975 SIZE and SIZE_UNIT which we need for later back-annotations.
21976 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
21977 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
21978 is an unchecked union.
21979 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
21980 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
21981 main variant, just replace the VIEW_CONVERT_EXPR.
21982 <UNION_TYPE>: Revert 2005-03-02 change.
21984 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
21986 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
21988 2005-11-14 Matthew Heaney <heaney@adacore.com>
21990 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
21991 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
21992 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
21993 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
21994 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
21995 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
21996 Compiles against the spec for ordered maps described in sections
21997 A.18.6 of the most recent (August 2005) AI-302 draft.
21999 2005-11-14 Olivier Hainque <hainque@adacore.com>
22001 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
22002 to ensure bias adjustments take place when need be and to prevent
22003 occurrences of intermediate overflows.
22005 2005-11-14 Matthew Gingell <gingell@adacore.com>
22006 Olivier Hainque <hainque@adacore.com>
22008 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
22011 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
22012 tracebacks on ia64 HP-UX and provide explanatory comment.
22013 Enable backtraces on ia64 GNU/Linux.
22014 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
22015 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
22017 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
22018 Javier Miranda <miranda@adacore.com>
22020 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
22021 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
22022 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
22023 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
22025 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
22026 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
22029 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
22030 subprogram that generates the external name associated with a
22031 secondary dispatch table.
22032 (Get_Secondary_DT_External_Name): New subprogram that generates the
22033 external name associated with a secondary dispatch table.
22035 2005-11-14 Emmanuel Briot <briot@adacore.com>
22037 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
22038 line in the ALI file to include both an instantiation reference, and a
22041 2005-11-14 Vincent Celier <celier@adacore.com>
22043 * clean.adb (Check_Project): Look for Ada code in extending project,
22044 even if Ada is not specified as a language.
22045 Use new function DLL_Prefix for DLL_Name
22046 (Clean_Interface_Copy_Directory): New procedure
22047 (Clean_Library_Directory): New procedure
22048 (Clean_Directory): Remove procedure, no longer used
22049 (Clean_Project): Do not delete any file in an externally built project
22051 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
22052 directory of an extending project, even when there are no Ada source
22054 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
22055 (Set_Ada_Paths.Add.Recursive_Add): Ditto
22057 * mlib-prj.adb (Check_Library): For all library projects, get the
22058 library file timestamp.
22059 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
22060 (Build_Library): Use new function DLL_Prefix for the DLL_Name
22061 (Clean): Remove procedure, no longer used
22062 (Ultimate_Extension_Of): New function
22063 (Build_Library): When cleaning the library directory, only remove an
22064 existing library file and any ALI file of a source of the project.
22065 When cleaning the interface copy directory, remove any source that
22066 could be a source of the project.
22068 * prj.ads, prj.adb (Project_Empty): Add values of new components
22069 Library_TS and All_Imported_Projects.
22070 (Project_Empty): Add values for new components of Project_Data:
22071 Library_ALI_Dir and Display_Library_ALI_Dir
22073 * prj-attr.adb: New project level attribute name Library_ALI_Dir
22075 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
22076 attribute Library_ALI_Dir.
22077 (Check_Library_Attributes): The library directory cannot be the same as
22078 any source directory of the project tree.
22079 (Check_Stand_Alone_Library): The interface copy directory cannot be
22080 the same as any source directory of the project tree.
22082 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
22083 all temporary files.
22085 2005-11-14 Robert Dewar <dewar@adacore.com>
22086 Ed Schonberg <schonberg@adacore.com>
22088 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22089 (Check_Elab_Call): A call within a protected body is never an
22090 elaboration call, and does not require checking.
22091 (Same_Elaboration_Scope): Take into account protected types for both
22093 (Activate_Elaborate_All_Desirable): New procedure
22095 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
22098 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
22099 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
22101 * lib-writ.ads, lib-writ.adb:
22102 Implement new AD/ED for Elaborate_All/Elaborate desirable
22103 Use new Elaborate_All_Desirable flag in N_With_Clause node
22105 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
22106 N_Free_Statement nodes.
22107 Define new class N_Subprogram_Instantiation
22108 Add Elaborate_Desirable flag to N_With_Clause node
22109 Add N_Delay_Statement (covering two kinds of delay)
22111 * debug.adb: Introduce d.f flag for compiler
22112 Add -da switch for binder
22114 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22115 Cyrille Comar <comar@adacore.com>
22117 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
22118 for task component, in the case of a limited aggregate. The enclosed
22119 object declaration will create it earlier. Otherwise, in the case of a
22120 nested aggregate, the object may appear in the wrong scope.
22121 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
22122 (Gen_Assign): If the component being assigned is an array type and the
22123 expression is itself an aggregate, wrap the assignment in a block to
22124 force finalization actions on the temporary created for each row of the
22126 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
22127 structures are initialized after all discriminants are set so that
22128 they can be accessed even when their offset is dynamic.
22130 2005-11-14 Robert Dewar <dewar@adacore.com>
22131 Hristian Kirtchev <kirtchev@adacore.com>
22133 * sem_attr.adb: Implement Machine_Rounding attribute
22134 (Analyze_Access_Attribute): The access attribute may appear within an
22135 aggregate that has been expanded into a loop.
22136 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
22137 'Terminated whenever the prefix is of a task interface class-wide type.
22138 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
22139 the prefix is of a task interface class-wide type.
22141 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
22144 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
22145 Remove pragma Inline for [Unaligned_]Valid.
22146 Add comments that Valid routines do not work for Vax_Float
22148 * exp_attr.adb: Implement Machine_Rounding attribute
22150 * snames.h: Add entry for Machine_Rounding attribute
22152 2005-11-14 Javier Miranda <miranda@adacore.com>
22153 Robert Dewar <dewar@adacore.com>
22154 Hristian Kirtchev <kirtchev@adacore.com>
22156 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
22157 and related): For a prefix that is an explicit dereference of an
22158 access to unconstrained packed array type, annotate the dereference
22159 with an actual subtype so GIGI can make a correct size computation.
22160 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
22161 'Unrestricted_Access, if the designated type is an interface we
22162 add a type conversion to force the displacement of the pointer
22163 to the secondary dispatch table.
22164 Use Universal_Real instead of Long_Long_Float when we need a high
22165 precision float type for the generated code (prevents gratuitous
22166 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
22167 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
22168 'Terminated for task interface class-wide objects. Generate a call to
22169 the predefined dispatching routine used to retrieve the _task_id from
22170 a task corresponding record.
22171 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
22173 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22174 (Check_Dispatching_Operation): Protect the frontend againts
22175 previously detected errors.
22177 * Makefile.rtl: Add new instantiations of system.fat_gen
22179 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
22180 Change name of instantiated package for better consistency
22181 with newly added system.fat_gen instantiations.
22183 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
22184 s-fvagfl.ads: New files.
22186 2005-11-14 Cyrille Comar <comar@adacore.com>
22187 Thomas Quinot <quinot@adacore.com>
22189 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
22190 assignment of a value of a tagged type that has been rewritten to a
22191 block statement, it is known by construction that no checks are
22192 necessary for the statements within the block: analyze it with checks
22194 (Expand_N_If_Statement): When killing a dead then-branch in an
22195 if-statement that has elsif_parts, recompute the Current_Value node
22196 for any entity whose value is known from the condition of the first
22198 (Expand_N_Return_Statement): When returning a mutable record, convert
22199 the return value into its actual subtype in order to help the backend
22200 to return the actual size instead of the maximum. This is another
22201 aftermath of not returning mutable records on the sec-stack anymore.
22203 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
22204 handling of error msg for suspicious reverse range iteration.
22205 (Check_Possible_Current_Value_Condition): Move declaration from body to
22206 spec, to allow this subprogram to be called from exp_ch5.
22208 2005-11-14 Thomas Quinot <quinot@adacore.com>
22210 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
22211 generate a set of nested array aggregates instead of a single flat
22212 aggregate for multi-dimensional arrays.
22214 2005-11-14 Pascal Obry <obry@adacore.com>
22216 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
22217 by spawnve is a process handle, no need to convert. Add a parameter
22218 close to control wether the process handle must be closed.
22219 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
22220 a process handle, not need to convert.
22221 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
22223 * g-expect.adb: (Kill): Document the new close parameter.
22224 (Close): Do not release the process handle in the kill there as
22225 waitpid() is using it.
22226 (Send_Signal): Release the process handle.
22228 2005-11-14 Robert Dewar <dewar@adacore.com>
22230 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
22231 need a high precision float type for the generated code (prevents
22232 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
22235 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
22236 need a high precision float type for the generated code (prevents
22237 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
22239 (Expand_Width_Attribute): In configurable run-time, the attribute is not
22240 allowed on non-static enumeration subtypes. Force a load error to emit
22241 the correct diagnostic.
22243 2005-11-14 Thomas Quinot <quinot@adacore.com>
22244 Robert Dewar <dewar@adacore.com>
22245 Ed Schonberg <schonberg@adacore.com>
22247 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
22248 subtype to compute the size of the designated object at run-time,
22249 create such a subtype and store it in the Actual_Designated_Subtype
22250 attribute of the N_Free_Statement.
22251 Generate itype for classwide designated object in both cases of
22252 user-specified storage pool: specific and class-wide, not only in the
22254 Raise CE when trying to set a not null access type object to null.
22255 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
22256 an explicit loop, because freeze nodes make its position variable.
22258 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
22261 2005-11-14 Javier Miranda <miranda@adacore.com>
22263 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
22264 Build_Stream_Procedure): Add the null-excluding attribute to the first
22266 This has no semantic meaning under Ada95 mode but it is a
22267 requirement under Ada05 mode.
22269 * par-ch3.adb (P_Access_Definition): Addition of warning message if
22270 the null exclusion is used under Ada95 mode
22271 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
22272 (P_Access_Definition): Remove assertion that forbids the use of
22273 the null-exclusion feature in Ada95.
22275 2005-11-14 Robert Dewar <dewar@adacore.com>
22277 * impunit.adb: Exclude container helper units not intended for use by
22280 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22282 * freeze.adb (Freeze_Entity): For an access formal that is an access
22283 to subprogram, freeze the anonymous subprogram type at the same time,
22284 to prevent later freezing in the wrong scope, such as the enclosing
22286 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
22287 subprogram whenever available.
22289 2005-11-14 Arnaud Charlet <charlet@adacore.com>
22292 * gnatvsn.ads (Library_Version): Bump to 4.1
22294 2005-11-14 Robert Dewar <dewar@adacore.com>
22296 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
22297 Storage_Offset to avoid wrap around causing invalid results.
22299 2005-11-14 Pascal Obry <obry@adacore.com>
22301 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
22303 (Scan_Bind_Arg): Fail with an error message if -M option is used
22304 on a native compiler.
22306 2005-11-14 Robert Dewar <dewar@adacore.com>
22307 Vincent Celier <celier@adacore.com>
22309 * gprep.adb: Implement -C switch to scan comments
22311 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
22313 * scans.ads: Comment updates (including new use of Tok_Comment in
22316 * opt.ads: Add documentation for flags that are used by gprmake,
22317 currently and in the next version of gprmake.
22318 (Verbosity_Level): New variable
22319 Add Replace_In_Comments switch
22321 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
22323 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
22325 2005-11-14 Arnaud Charlet <charlet@adacore.com>
22327 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
22328 message, friendlier.
22330 2005-11-14 Robert Dewar <dewar@adacore.com>
22332 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
22334 2005-11-14 Doug Rupp <rupp@adacore.com>
22336 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
22338 2005-11-14 Robert Dewar <dewar@adacore.com>
22340 * interfac.ads: Change declarations of IEEE float types so that we no
22341 longer need a separate version of this package for VMS.
22343 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22345 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
22346 internal entity created for the declaration of a child subprogram body
22347 with no spec as coming from source, to generate proper cross-reference
22350 2005-11-14 Vincent Celier <celier@adacore.com>
22352 * make.adb (Compile_Sources): Change verbose message to minimum
22353 verbosity level High for "is in an Ada library", "is a read-only
22354 library" and "is an internal library",
22355 (Create_Binder_Mapping_File): Path name of ALI file for library project
22356 must include the library directory, not the object directory.
22357 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
22358 for new switches -vl, -vm and -vh.
22359 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
22360 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
22361 (Compile_Sources): Do not attempt to compile if an ALI file is missing
22362 in a project that is externally built.
22363 (Compute_All_Imported_Projects): New procedure
22364 (Gnatmake): Check if importing libraries should be regenerated because
22365 at least an imported library is more recent.
22366 (Initialize): For each project compute the list of the projects it
22367 imports directly or indirectly.
22368 (Add_Library_Search_Dir): New procedure, used in place of
22369 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
22370 put in the search paths.
22371 (Add_Source_Search_Dir): New procedure, used in place of
22372 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
22373 put in the search paths.
22374 (Mark_Directory): Resolve the absolute path the directory before marking
22377 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
22378 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
22379 Switch. Do not handle any exception.
22380 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
22381 so that the switch is recognized as valid.
22382 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
22384 2005-11-14 GNAT Script <nobody@adacore.com>
22386 * Make-lang.in: Makefile automatically updated
22388 2005-11-14 Pascal Obry <obry@adacore.com>
22390 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
22392 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
22393 In both cases the last argument was dropped.
22395 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
22397 * namet.h: (Column_Numbe): New type.
22398 (Get_Column_Number): Define to sinput__get_column_number.
22399 (Instantiation): Define to sinput__instantiation.
22400 (Get_Column_Number): Declare.
22401 (Instantiation): Likewise.
22403 2005-11-14 Robert Dewar <dewar@adacore.com>
22405 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
22406 syntax, which could cause compiler hangs.
22408 2005-11-14 Vincent Celier <celier@adacore.com>
22410 * prj-ext.adb: Take into account new environment variable
22411 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
22413 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
22414 normalize its path name, making it absolute and resolving symbolic
22415 links, and replace the original if resolved path is different.
22417 2005-11-14 Vincent Celier <celier@adacore.com>
22419 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
22420 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
22422 2005-11-14 Emmanuel Briot <briot@adacore.com>
22424 * prj-pp.adb (Print): Do not output the with statement if the
22425 associated name is empty, which happens for virtual extending projects.
22426 (Print): Preserve the "extends all" attribute when printing the project.
22428 * prj-tree.ads (String_Value_Of): Add comment about returned value for
22429 a virtual extending project.
22431 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22433 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
22434 rhs of an assignment even if the type is unconstrained, when the
22435 context is non-expanding.
22436 In an inlined body, if the context type is private,
22437 resolve with its full view, which must be a composite type.
22439 2005-11-14 Robert Dewar <dewar@adacore.com>
22440 Ed Schonberg <schonberg@adacore.com>
22442 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
22443 Do not give obsolescent warning on with of subprogram (since we
22445 (Analyze_With_Clause): Add test for obsolescent package
22446 (Install_Context_Clauses): If the unit is the body of a child unit, do
22447 not install twice the private declarations of the parents, to prevent
22448 circular lists of Use_Clauses in a parent.
22449 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
22450 compiling body of child unit.
22451 Use new class N_Subprogram_Instantiation
22452 (Expand_With_Clause): If this is a private with_clause for a child unit,
22453 appearing in the context of a package declaration, then the implicit
22454 with_clauses generated for parent units are private as well.
22455 (License_Check): Do not generate message if with'ed unit is internal
22457 2005-11-14 Gary Dismukes <dismukes@adacore.com>
22458 Ed Schonberg <schonberg@adacore.com>
22459 Thomas Quinot <quinot@adacore.com>
22461 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
22462 names are internal, because they will not have a corresponding partner
22463 in the actual package.
22464 (Analyze_Formal_Package): Move the setting of the formal package spec's
22465 Generic_Parent field so that it occurs prior to analyzing the package,
22466 to allow proper operation of Install_Parent_Private_Declarations.
22467 (Analyze_Package_Instantiation): Set the instantiated package entity's
22468 Package_Instantiation field.
22469 (Get_Package_Instantiation_Node): Move declaration to package spec.
22470 Retrieve the N_Package_Instantiation node when the Package_Instantiation
22472 (Check_Generic_Child_Unit): Within an inlined call, the only possible
22473 instantiation is Unchecked_Conversion, for which no parents are needed.
22474 (Inline_Instance_Body): Deinstall and record the use_clauses for all
22475 parent scopes of a scope being removed prior to inlining an instance
22477 (Analyze_Package_Instantiation): Do not perform front-end inlining when
22478 the current context is itself an instance within a non-instance child
22479 unit, to prevent scope stack errors.
22480 (Save_References): If the node is an aggregate that is an actual in a
22481 call, rewrite as a qualified expression to preserve some type
22482 information, to resolve possible ambiguities in the instance.
22483 (Instance_Parent_Unit): New global variable to record the ultimate
22484 parent unit associated with a generic child unit instance (associated
22485 with the existing Parent_Unit_Visible flag).
22486 (type Instance_Env): New component Instance_Parent_Unit for stacking
22487 parents recorded in the global Instance_Parent_Unit.
22488 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
22490 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
22491 it's not a top-level unit, and only do this if Instance_Parent_Unit is
22492 not already set. Replace test of Is_Child_Unit with test of parent's
22493 scope against package Standard. Add comments and a ??? comment.
22494 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
22495 on a child instance parent to test that the parent equals
22496 Instance_Parent rather than simply checking that the unit is not a
22498 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
22499 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
22500 a formal interface are ancestors of the corresponding actual.
22501 (Validate_Formal_Interface_Type): Additional legality checks.
22502 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
22503 interface types with ancestors.
22504 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
22505 to diagnose attempts to use generic within its own declaration.
22507 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22508 Javier Miranda <miranda@adacore.com>
22510 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
22512 (Build_Private_Derived_Type): The entity of the created full view of the
22513 derived type does not come from source. If after installing the private
22514 declarations of the parent scope the parent is still private, use its
22515 full view to construct the full declaration of the derived type.
22516 (Build_Derived_Record_Type): Relax the condition that controls the
22517 execution of the check that verifies that the partial view and
22518 the full view agree in the set of implemented interfaces. In
22519 addition, this test now only takes into account the progenitors.
22520 (Derive_Interface_Subprograms): No need to derive subprograms
22521 of ancestors that are interfaces.
22522 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
22524 Change name Is_Package to Is_Package_Or_Generic_Package
22525 (Complete_Subprograms_Derivation): Handle the case in which the full
22526 view is a transitive derivation of the ancestor of the partial view.
22527 (Process_Full_View): Rename local subprogram Find_Interface_In_
22528 Descendant to Find_Ancestor_Interface to leave the code more clear.
22529 Remove wrong code that avoids the generation of an error message
22530 when the immediate ancestor of the partial view is an interface.
22531 In addition some minor reorganization of the code has been done to
22532 leave it more clear.
22533 (Analyze_Type_Declaration): If type has previous incomplete tagged
22534 partial view, inherit properly its primitive operations.
22535 (Collect_Interfaces): Make public, for analysis of formal
22537 (Analyze_Interface_Declaration): New procedure for use for regular and
22538 formal interface declarations.
22539 (Build_Derived_Record_Type): Add support for private types to the code
22540 that checks if a tagged type implements abstract interfaces.
22541 (Check_Aliased_Component_Type): The test applies in the spec of an
22543 (Access_Type_Declaration): Clean up declaration of malformed type
22544 declared as an access to its own classwide type, to prevent cascaded
22546 (Collect_Interfaces): For private extensions and for derived task types
22547 and derived protected types, the parent may be an interface that must
22548 be included in the interface list.
22549 (Access_Definition): If the designated type is an interface that may
22550 contain tasks, create Master_Id for it before analyzing the expression
22551 of the declaration, which may be an allocator.
22552 (Record_Type_Declaration): Set properly the interface kind, for use
22553 in allocators, the creation of master id's for task interfaces, etc.
22555 2005-11-14 Javier Miranda <miranda@adacore.com>
22556 Ed Schonberg <schonberg@adacore.com>
22558 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
22559 omitted in case of stream attribute subprograms.
22560 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
22561 appear immediately after a subprogram body, when there is no previous
22562 subprogram declaration.
22563 Change name Is_Package to Is_Package_Or_Generic_Package
22564 (Process_Formals): A non null qualifier on a non null named access
22565 type is not an error, and is a warning only if Redundant_Constructs
22568 2005-11-14 Gary Dismukes <dismukes@adacore.com>
22569 Ed Schonberg <schonberg@adacore.com>
22571 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
22572 nested within Analyze_Package_Specification to install the private
22573 declarations and use clauses within each of the parent units of a
22574 package instance of a generic child package.
22575 (Analyze_Package_Specification): When entering a private part of a
22576 package associated with a generic instance or formal package, the
22577 private declarations of the parent must be installed (by calling new
22578 procedure Install_Parent_Private_Declarations).
22579 Change name Is_Package to Is_Package_Or_Generic_Package
22580 (Preserve_Full_Attributes): For a synchronized type, the corresponding
22581 record is absent in a generic context, which does not indicate a
22584 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22586 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
22587 not try to rewrite a renamed stream attribute, because the operations
22588 on the type may not have been generated.
22589 Handle properly a renaming_as_body generated for a stream operation
22590 whose default is abstract because the object type itself is abstract.
22591 (Find_Type): If the type is incomplete and appears as the prefix of a
22592 'Class reference, it is tagged, and its list of primitive operations
22593 must be initialized properly.
22594 (Chain_Use_Clauses): When chaining the use clauses that appear in the
22595 private declaration of a parent unit, prior to compiling the private
22596 part of a child unit, find on the scope stack the proper parent entity
22597 on which to link the use clause.
22598 (Note_Redundant_Use): Emit a warning when a redundant use clause is
22600 (Analyze_Object_Renaming): An attribute reference is not a legal object
22601 if it is not a function call.
22603 2005-11-14 Robert Dewar <dewar@adacore.com>
22604 Ed Schonberg <schonberg@adacore.com>
22606 * sem_eval.adb: Implement d.f flag
22607 (Subtype_Statically_Match): A generic actual type has unknown
22608 discriminants when the corresponding actual has a similar partial view.
22609 If the routine is called to validate the signature of an inherited
22610 operation in a child instance, the generic actual matches the full view,
22612 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
22613 Ed Schonberg <schonberg@adacore.com>
22614 Robert Dewar <dewar@adacore.com>
22615 Thomas Quinot <quinot@adacore.com>
22617 * sem_res.adb (Resolve_Call): Provide a better error message whenever
22618 a procedure call is used as a select statement trigger and is not an
22619 entry renaming or a primitive of a limited interface.
22620 (Valid_Conversion): If the operand has a single interpretation do not
22621 remove address operations.
22622 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
22623 statement to inhibit warning.
22624 (Resolve_Unary_Op): Do not produce a warning when
22625 processing an expression of the form -(A mod B)
22626 Use Universal_Real instead of Long_Long_Float when we need a high
22627 precision float type for the generated code (prevents gratuitous
22628 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
22629 (Resolve_Concatenation_Arg): Improve error message when argument is an
22630 ambiguous call to a function that returns an array.
22631 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
22632 there is an implicit operator in the given scope if we are within an
22633 instance: legality check has been performed on the generic.
22634 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
22635 after resolving operand, to avoid false warnings on overloaded calls.
22637 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22638 Javier Miranda <miranda@adacore.com>
22641 * sem_type.adb (Covers): In an inlined body, a composite type matches
22642 a private type whose full view is a composite type.
22643 (Interface_Present_In_Ancestor): Protect the frontend against
22644 previously detected errors to ensure that its compilation
22645 with assertions enabled gives the same output that its
22646 compilation without assertions.
22647 (Interface_Present_In_Ancestor): Add support for private types.
22648 Change name In_Actual to In_Generic_Actual (clean up)
22649 (Disambiguate): New predicate In_Actual, to recognize expressions that
22650 appear in the renaming declaration generated for generic actuals, and
22651 which must be resolved in the outer context.
22653 2005-11-14 Robert Dewar <dewar@adacore.com>
22654 Thomas Quinot <quinot@adacore.com>
22655 Hristian Kirtchev <kirtchev@adacore.com>
22656 Ed Schonberg <schonberg@adacore.com>
22658 * sem_util.ads, sem_util.adb: Change name Is_Package to
22659 Is_Package_Or_Generic_Package.
22660 (Check_Obsolescent): New procedure.
22661 (Set_Is_Public): Remove obsolete junk test.
22662 (Set_Public_Status): Do not set Is_Public on an object whose declaration
22663 occurs within a handled_sequence_of_statemets.
22664 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
22665 for a parameterless procedure.
22666 (Enter_Name): Recognize renaming declarations created for private
22667 component of a protected type within protected operations, so that
22668 the source name of the component can be used in the debugger.
22670 2005-11-14 Ed Schonberg <schonberg@adacore.com>
22671 Robert Dewar <dewar@adacore.com>
22673 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
22674 of a generic subprogram are not visible outside the body.
22675 (Set_Warning_Switch): New procedure (code to set warning mode moved
22676 here from Switch.C so that it can be shared by pragma processing.
22677 (Check_References): Special case warning for non-modified non-imported
22679 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
22680 form with a string literal argument
22682 2005-11-14 Javier Miranda <miranda@adacore.com>
22684 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
22686 (Write): Addition of "not null" to the anonymous access.
22687 (Read): Addition of "not null" to the anonymous access.
22688 (Write): Addition of "not null" to the anonymous access.
22690 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
22691 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
22692 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
22693 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
22694 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
22695 "not null" to the anonymous access.
22697 2005-11-14 Robert Dewar <dewar@adacore.com>
22699 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
22702 2005-11-14 Vincent Celier <celier@adacore.com>
22704 * switch.adb (Bad_Switch): New procedure
22705 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
22706 message when in error.
22708 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
22709 Too_Many_Output_Files): Remove declarations, no longer used.
22710 (Scan_Nat): New parameter Switch
22712 (Bad_Switch): New procedure
22714 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
22715 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
22716 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
22717 to Osint.Fail. Do not handle any exception.
22719 2005-11-14 Vincent Celier <celier@adacore.com>
22721 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
22722 designates a non existent directory.
22724 2005-11-14 Robert Dewar <dewar@adacore.com>
22726 * xgnatugn.adb: Replace invalid membership test by 'Valid
22728 2005-11-14 Vincent Celier <celier@adacore.com>
22730 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
22731 there is no object directory.
22733 2005-11-14 Robert Dewar <dewar@adacore.com>
22735 * usage.adb: Minor adjustment to output format, use nn instead of nnn
22736 (so that -gnateInnn does not run into next column)
22738 2005-11-14 Ed Falis <falis@adacore.com>
22740 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
22743 2005-11-14 Cyrille Comar <comar@adacore.com>
22745 * s-chepoo.ads: Add comments on Dereference.
22746 Remove unnecessary inherited abstract primitives.
22749 2005-11-14 Robert Dewar <dewar@adacore.com>
22751 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
22752 node parameter, not needed, since it is available as Declaration_Node.
22754 2005-11-14 Geert Bosch <bosch@adacore.com>
22756 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
22757 grammatically correct.
22759 2005-11-14 Vincent Celier <celier@adacore.com>
22761 * s-fileio.ads: Correct spelling error in comment
22763 2005-11-14 Cyrille Comar <comar@adacore.com>
22764 Robert Dewar <dewar@adacore.com>
22765 Vincent Celier <celier@adacore.com>
22766 Ben Brosgol <brosgol@adacore.com>
22767 Jose Ruiz <ruiz@adacore.com>
22768 Pascal Obry <obry@adacore.com>
22771 Document that -fstack-check is needed for strict compliance with the
22772 Ada 95 Reference Manual.
22773 Correct reference to VAX systems to meet HP guidelines
22774 Add documentation for new gnatmake switches -vl, -vm and -vh
22775 Replace DEC Ada by HP Ada
22776 Replace DIGITAL by HP
22777 Remove empty section on tools in compatibility section
22778 Clarify the Windows convention semantics.
22779 Document the Win32 calling convention.
22780 The Stdcall, Win32 and DLL convention are synonyms.
22781 Add a note in -gnatR description about zero size record components
22782 Note on new >= and <= warnings for -gnatwc
22783 Document that equal sign after -gnatm is optional.
22784 Note that strip is working fine on DLL built with a Library
22785 Project. The restriction apply only to DLL built with gnatdll.
22786 Update section about the way to debug a DLL.
22787 Update information about the DLL convention.
22788 Document -C switch for gnatprep
22789 Document new attribute Library_ALI_Dir
22790 Update elaboration doc to include implicit Elaborate pragmas now
22791 generated for subprogram instantiations.
22792 Document limitation on executable names that include spaces for --GCC,
22793 --GNATBIND, and --GNATLINK switches.
22794 Document that -w causes -gnatws to be added at start of gcc switches
22796 * gnat_rm.texi: Document that -mieee is needed for generating infinite
22797 and NaN values in case of overflow on machines that are not fully
22798 compliant with the IEEE floating-point standard.
22799 Create a section describing the set of compiler options needed for
22800 strict compliance with the Ada 95 Reference Manual.
22801 Add documentation for pragma Obsolescent applied to a package
22802 Clarify potential issues of mixed language programs related to the
22803 I/O buffering enabling in the elaboration of the GNAT runtime.
22804 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
22805 This documentation only patch adds extra documentsion for pragma
22806 Restrictions (No_Elaboration_Code), explaining why it is not possible
22807 to document this restriction in terms of allowed source constructs.
22808 Document string literal form of pragma Warnings
22809 Document new attribute Library_ALI_Dir
22810 Add documentation on stable attributes in project files that was missing
22812 * gnat-style.texi: Indicate that paragraphs within a single comment
22813 should be separated by empty comment lines
22815 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
22818 * bindusg.adb: Minor cleanup, put -m before -M for consistency
22820 2005-11-14 Robert Dewar <dewar@adacore.com>
22822 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
22823 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
22824 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
22825 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
22826 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
22827 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
22828 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
22829 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
22830 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
22831 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
22832 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
22833 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
22834 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
22835 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
22836 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
22837 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
22838 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
22839 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
22840 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
22841 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
22842 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
22843 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
22844 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
22845 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
22846 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
22847 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
22848 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
22849 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
22850 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
22851 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
22852 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
22853 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
22854 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
22855 system-interix.ads, system-solaris-sparc.ads,
22856 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
22857 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
22858 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
22859 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
22860 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
22861 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
22862 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
22863 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
22864 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
22865 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
22866 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
22867 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
22868 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
22869 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
22870 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
22871 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
22872 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
22873 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
22874 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
22875 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
22876 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
22877 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
22878 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
22879 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
22880 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
22881 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
22882 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
22883 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
22884 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
22885 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
22886 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
22887 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
22888 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
22889 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
22890 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
22891 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
22892 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
22893 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
22894 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
22895 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
22896 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
22897 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
22898 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
22899 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
22900 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
22901 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
22902 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
22903 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
22904 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
22905 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
22906 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
22907 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
22908 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
22909 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
22910 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
22911 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
22912 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
22913 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
22914 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
22915 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
22916 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
22917 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
22918 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
22919 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
22920 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
22921 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
22922 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
22923 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
22924 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
22925 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
22926 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
22927 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
22928 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
22929 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
22930 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
22931 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
22932 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
22933 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
22934 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
22935 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
22936 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
22937 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
22938 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
22939 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
22940 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
22941 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
22942 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
22943 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
22944 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
22945 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
22946 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
22947 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
22948 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
22949 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
22950 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
22951 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
22952 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
22953 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
22954 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
22955 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
22956 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
22957 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
22958 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
22959 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
22960 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
22961 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
22962 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
22963 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
22964 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
22965 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
22966 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
22967 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
22968 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
22969 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
22970 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
22971 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
22972 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
22973 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
22974 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
22975 a-numaux-darwin.ads, a-numaux-darwin.adb,
22976 a-swuwha.ads, a-stunha.ads: Minor reformatting
22978 2005-11-14 Robert Dewar <dewar@adacore.com>
22981 * osint-m.adb: Add pragma Elaborate_All for Osint
22983 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
22986 * trans.c (call_to_gnu): Restore statement lost in translation.
22988 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
22990 * init.c: Use the Linux-specific section for the IA-64/Linux target.
22991 (__gnat_adjust_context_for_raise): Add conditional code so that the
22992 IA-64 is also supported.
22994 2005-11-03 James E Wilson <wilson@specifix.com>
22997 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
22998 TREE_OVERFLOW check.
23000 2005-09-21 Olivier Hainque <hainque@adacore.com>
23003 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
23004 as we create them to store a size in bits.
23006 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
23014 * utils2.c (build_return_expr): New helper function.
23015 * gigi.h (build_return_expr): Declare it.
23016 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
23017 of manually building the RETURN_EXPR tree.
23018 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
23019 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
23020 build_binary_op for the "target pointer" case. Use build_return_expr
23021 instead of manually building the RETURN_EXPR tree.
23023 2005-09-16 Laurent Guerby <laurent@guerby.net>
23026 * s-tpinop.ads: Make this unit Preelaborate.
23028 2005-09-16 Andreas Jaeger <aj@suse.de>
23030 * socket.c: Add string.h for memcpy.
23032 2005-09-05 Arnaud Charlet <charlet@adacore.com>
23034 * dec-io.ads, dec-io.adb: Removed, no longer used.
23036 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23038 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
23040 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
23041 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
23042 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
23043 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
23044 dependent units are Preelaborate.
23045 (Initialize): Call Interrupt_Managemeent.Initialize and
23046 OS_Primitives.Initialize to ensure proper initialization of this unit.
23047 Remove use of System.Soft_Links
23048 Make this unit Preelaborate.
23050 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
23051 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
23052 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
23053 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
23054 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
23055 s-tratas.ads, s-tasinf.ads: Minor reformatting.
23056 Add pragma Preelaborate, since these packages are suitable for this
23060 * s-traent-vms.ads, s-intman-dummy.adb,
23061 s-taprop-dummy.adb: Make this unit Preelaborate.
23063 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
23064 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
23065 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
23066 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
23067 s-intman-solaris.adb, s-intman-irix-athread.adb,
23068 s-intman-irix.adb: Mark this unit Preelaborate.
23069 (Initialize): New procedure.
23072 * s-taspri-linux.ads: Removed.
23074 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
23075 as done by other implementations (e.g. posix).
23077 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
23078 responsible for deferring abort.
23079 Mark this unit Preelaborate.
23081 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
23082 proper initialization of the tasking run-time.
23084 * s-tasdeb.ads: Mark this unit Preelaborate.
23085 (Known_Tasks): Add explicit default value to avoid elaboration code.
23087 * s-inmaop-vms.adb (Elaboration code): Add call to
23088 Interrupt_Management.Initialize since the elaboration code depends on
23089 proper initialization of this package.
23091 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
23092 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
23093 s-osprim-posix.adb: Make this unit Preelaborate.
23095 * a-calend.adb: Add call to OS_Primitives.Initialize
23097 * a-elchha.adb: Update use of Except.Id.Full_Name.
23098 Minor reformatting.
23099 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
23101 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
23102 Move with clauses outside Warnings Off now that dependent units are
23104 Use raise xxx with "..."; Ada 2005 form.
23106 * a-taside.ads, a-taside.adb:
23107 Remove some dependencies, to make it easier to make this unit truly
23109 Rewrite some code to be conformant with Preelaborate rules.
23111 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
23112 marked Preelaborate in the future.
23114 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
23115 these units Preelaborate.
23117 * s-exctab.adb: Update use of Except.Id.Full_Name.
23119 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
23120 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
23121 Set_Exc_Stack_Addr): Removed, no longer used.
23122 Remove reference to *Machine_State_Addr*, no longer needed.
23124 * s-stalib.ads: Mark this unit as Preelaborate[_05].
23125 (Exception_Data): Full_Name is now a System.Address so that this unit
23126 can be made Preelaborate.
23127 Clean up/simplify code thanks to Full_Name being a System.Address.
23128 Remove obsolete pragma Suppress (All_Checks), no longer needed.
23130 * s-taskin.ads, s-taskin.adb:
23131 Move with clauses outside Warnings Off now that dependent units are
23133 Make this unit Preelaborate.
23134 (Initialize): New proceduure, replace elaboration code and makes the
23135 set up of the tasking run-time cleaner.
23136 (Detect_Blocking): Now a function instead of a deferred boolean, to
23137 obey Preelaborate rules.
23139 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
23140 soft links, no longer used.
23142 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
23143 packages are suitable for this categorization.
23145 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
23146 since we compile run-time sources in Ada 2005 mode.
23147 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
23148 avoid having s-taprop*.adb depend on s-soflin and to avoid code
23150 Remove reference to *Machine_State_Addr*, no longer needed.
23152 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23154 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
23155 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
23156 Remove reference to System.Exceptions.
23158 * s-mastop-x86.adb: Removed, no longer used.
23160 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
23162 * a-excach.adb: Minor reformatting.
23164 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
23165 instead fix new warnings that were hidden by this change.
23166 (AAA, ZZZ): Removed, replaced by...
23167 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
23168 are used instead of constants, to help make Ada.Exception truly
23170 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
23171 Raise_Storage_Error): File is now a System.Address, to simplify code.
23172 (Elab code): Removed, no longer used.
23173 (Null_Occurrence): Remove Warnings Off and make this construct
23175 Remove code related to front-end zero cost exception handling, since
23176 it is no longer used.
23177 Remove -gnatL/-gnatZ switches.
23179 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
23180 Update use of Except.Msg.
23182 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
23183 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
23184 to front-end zero cost exception handling, since it is no longer used.
23185 Remove -gnatL/-gnatZ switches.
23187 * lib-writ.ads: Minor reformatting
23190 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
23192 * Make-lang.in: Remove references to s-except.ads
23194 * s-except.ads: Removed, no longer used.
23196 * s-mastop.ads, s-mastop.adb:
23197 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
23198 Remove reference to System.Exceptions.
23200 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
23201 switch-b.adb: Remove code related to front-end zero cost exception
23202 handling, since it is no longer used.
23203 Remove -gnatL/-gnatZ switches.
23205 2005-09-01 Robert Dewar <dewar@adacore.com>
23206 Gary Dismukes <dismukes@adacore.com>
23207 Javier Miranda <miranda@adacore.com>
23209 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
23210 type by valid test and generate warning.
23211 (Tagged_Membership): Generate call to the run-time
23212 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
23213 Change formal name Subtype_Mark to Result_Definition in several calls to
23214 Make_Function_Specification.
23215 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
23216 check for proper accessibility of the operand of a class-wide allocator.
23217 The check can be left out if checks are suppressed or if the expression
23218 has a specific tagged type whose level is known to be safe.
23220 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
23221 generates the run-time check associated with null-excluding entities.
23222 (Expand_N_Return_Statement): Add tests to determine if the accessibility
23223 check on the level of the return expression of a class-wide function
23224 can be elided. The check usually isn't needed if the expression has a
23225 specific type (unless it's a conversion or a formal parameter). Also
23226 add a test for whether accessibility checks are suppressed. Augment
23227 the comments to describe the conditions for performing the check.
23229 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
23230 Javier Miranda <miranda@adacore.com>
23231 Gary Dismukes <dismukes@adacore.com>
23232 Ed Schonberg <schonberg@adacore.com>
23234 * a-tags.adb (IW_Membership): Give support to
23235 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
23236 subprogram has been extended to look for the tag in the ancestors tag
23238 Update the structure of the GNAT Dispatch Table to reflect the
23239 additional two tables used in dispatching selects.
23240 Introduce appropriate array types and record components in
23241 Type_Specific_Data to reflect the two tables.
23242 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
23243 the TSD of a tag, indexed by position.
23244 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
23245 operation kind in the TSD of a tag, indexed by position.
23247 * a-tags.ads: Introduce an enumeration type to capture different
23248 primitive operation kinds. Define a constant reflecting the number of
23249 predefined primitive operations.
23250 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
23251 of an entry wrapper.
23252 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
23253 callable entity of a primitive operation.
23255 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
23256 primitive operations used in dispatching selects for limited
23257 interfaces, limited tagged, task and protected types what implement a
23259 (Freeze_Type): Generate the bodies of the primitive operations used in
23260 dispatching selects for limited tagged, task and protected types that
23261 implement a limited interface. Generate statements to populate the two
23262 auxiliary tables used for dispatching in select statements.
23263 (Freeze_Record_Type): Add call to initialize the dispatch table entries
23264 associated with predefined interface primitive operations.
23265 (Build_Dcheck_Function): Change Set_Subtype_Mark to
23266 Set_Result_Definition.
23267 (Build_Variant_Record_Equality): Change Subtype_Mark to
23269 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
23270 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
23271 (Build_Assignment): Simplify the code that adds the run-time-check.
23272 (Expand_N_Object_Declaration): Code cleanup.
23274 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
23275 entries when there is a protected type that implements a limited
23278 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
23279 common routines used in expansion of dispatching selects.
23280 (Add_Private_Declarations): Select the appropriate protection type when
23281 there is a protected type that implements a limited interface.
23282 (Build_Parameter_Block): Generate a wrapped parameter block.
23283 (Build_Protected_Subprogram_Body): Select the appropriate type for
23284 locking entries when there is a protected type that implements a
23286 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
23287 classified as entry wrappers.
23288 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
23289 asynchronous selects.
23290 (Expand_N_Conditional_Entry_Call): Add support for expansion of
23291 dispatching conditional selects.
23292 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
23293 protection when there is a protected type that implements limited
23295 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
23297 (Extract_Dispatching_Call): Extract the entity of the name of a
23298 dispatching call, the object parameter, actual parameters and
23299 corresponding formals.
23300 (Make_Initialize_Protection): Correct logic of protection initialization
23301 when there is a protected type that implements a limited interface.
23302 (Parameter_Block_Pack): Populate a wrapped parameter block with the
23303 values of actual parameters.
23304 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
23305 block and assign them to the original actual parameters.
23307 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
23308 (Build_Protected_Sub_Specification): Change the type and name of the
23309 last formal to account for the increased variety of protection modes.
23311 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
23312 entities. Used to save the value of the Is_Hidden attribute when the
23313 limited-view is installed.
23314 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
23315 the attribute of procedures classified as entry wrappers.
23316 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
23317 entity of a primitive wrapper.
23318 (Write_Entity_Flags): Output the name and value of the
23319 Is_Primitive_Wrapper attribute.
23320 (Write_Field27_Name): Output the name and entity of the field Wrapped_
23322 (Underlying_Type): If we have an incomplete entity that comes from
23323 the limited view then we return the Underlying_Type of its non-limited
23324 view if it is already available.
23325 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
23326 including operators.
23327 (Write_Field26_Name): Add entry for Overridden_Operation
23328 (Overridden_Operation): New attribute of functions and procedures.
23330 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
23331 predefined position in the dispatch table for the primitive operations
23332 used in dispatching selects.
23333 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
23334 predefined primitive operations and replace it with
23335 Default_Prim_Op_Count.
23336 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
23337 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
23338 the names of the generated primitive operations used in dispatching
23340 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
23341 case of abstract interface types. They will be inherit by the objects
23342 implementing the interface.
23343 (Make_DT): There is no need to inherit the dispatch table of the
23344 ancestor interface for the elaboration of abstract interface types.
23345 The dispatch table will be inherited by the object implementing the
23347 (Copy_Secondary_DTs): Add documentation.
23348 (Validate_Position): Improve this static check in case of
23349 aliased subprograms because aliased subprograms must have
23351 (Init_Predefined_Interface_Primitives): New subprogram that initializes
23352 the entries associated with predefined primitives of all the secondary
23354 (Build_Anonymous_Access_Type): Removed.
23355 (Expand_Interface_Actuals): With the previous cleanup there is no need
23356 to build an anonymous access type. This allows further cleanup in the
23357 code generated by the expander.
23358 (Expand_Interface_Conversion): If the actual is an access type then
23359 build an internal function to handle the displacement. If the actual
23360 is null this function returns null because no displacement is
23361 required; otherwise performs a type conversion that will be
23362 expanded in the code that returns the value of the displaced actual.
23363 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
23364 conversions that have no effect in the generated code because no
23365 displacement is required. Code cleanup; use local variables to
23366 avoid repeated calls to the subprogram directly_designated_type().
23368 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
23369 Classify the primitive operations used in dispatching selects as
23371 (Implements_Limited_Interface): Determine whether some type either
23372 directly implements a limited interface or extends a type that
23373 implements a limited interface.
23374 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
23375 (Expand_Subtype_From_Expr): Do not build actual subtype if the
23376 expression is limited.
23377 (Find_Interface_Tag): Add code to handle class-wide types and
23378 entities from the limited-view.
23380 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
23381 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
23382 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
23383 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
23386 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
23387 of procedure name or prefix that appears as a trigger in a triggering
23390 * uintp.ads: Introduce constants Uint_11 and Uint_13.
23392 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23394 * s-tataat.adb, a-tasatt.adb:
23395 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
23397 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
23398 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
23399 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
23402 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23403 Jose Ruiz <ruiz@adacore.com>
23405 * s-taprop-vxworks.adb:
23406 Move with clauses outside Warnings Off now that dependent units are
23408 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
23409 initialization of this unit.
23410 (Specific): Add new procedures Initialize and Delete so that this
23411 package can be used for VxWorks 5.x and 6.x
23412 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
23413 differences between VxWorks 5.x and 6.x
23414 Minor reformatting.
23415 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
23417 Use only Preelaborate-compatible constructs.
23419 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
23420 Primitives.Operations.
23421 (Delete, Initialize): New procedures.
23423 * s-osinte-vxworks.adb: Body used to handle differences between
23424 VxWorks 5.x and 6.x
23425 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
23427 * s-osinte-vxworks.ads: Minor reformatting.
23428 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
23429 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
23431 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
23432 between Vxworks 5 and 6.
23433 (taskLock, taskUnlock): Removeed, no longer used.
23435 * adaint.c: The wait.h header is not located in the sys directory on
23436 VxWorks when using RTPs.
23437 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
23439 (__gnat_dup): dup is available on Vxworks when using RTPs.
23440 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
23442 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
23444 * expect.c: The wait.h header is not located in the sys directory on
23445 VxWorks when using RTPs.
23447 2005-09-01 Thomas Quinot <quinot@adacore.com>
23449 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
23451 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
23453 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
23454 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
23455 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
23456 g-soccon-freebsd.ads: Add new constants:
23458 SO_RCVTIMEO/SO_SNDTIMEO
23462 Move all target-specific file inclusions and macro definitions to
23463 gsocket.h, in order to ensure that any C code in socket.c will see a
23464 set of constants that is consistent with the contents of g-soccon.ads.
23466 * gsocket.h: Code imported from gen-soccon.c:
23467 Move all target-specific file inclusions and macro definitions to
23468 gsocket.h, in order to ensure that any C code in socket.c will see a set
23469 of constants that is consistent with the contents of g-soccon.ads.
23470 This change also makes gen-soccon self-contained (removing dependencies
23471 upon GCC internal headers).
23473 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
23475 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
23477 * socket.c: Minor reformatting.
23479 2005-09-01 Ed Schonberg <schonberg@adacore.com>
23480 Thomas Quinot <quinot@adacore.com>
23482 * fname-sf.adb, mlib-tgt.ads,
23483 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
23484 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
23485 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
23486 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
23487 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
23488 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
23489 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
23490 makegpr.adb: Remove redundant use_clauses.
23492 2005-09-01 Arnaud Charlet <charlet@adacore.com>
23494 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
23495 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
23496 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
23497 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
23498 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
23499 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
23500 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
23501 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
23502 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
23503 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
23504 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
23505 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
23506 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
23507 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
23508 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
23509 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
23510 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
23511 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
23512 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
23513 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
23514 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
23515 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
23516 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
23517 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
23518 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
23519 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
23520 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
23521 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
23522 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
23523 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
23524 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
23525 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
23526 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
23527 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
23528 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
23529 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
23530 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
23531 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
23532 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
23533 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
23534 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
23535 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
23536 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
23537 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
23538 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
23539 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
23540 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
23541 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
23542 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
23543 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
23544 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
23545 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
23546 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
23547 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
23548 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
23549 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
23550 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
23551 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
23552 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
23553 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
23554 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
23555 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
23556 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
23557 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
23558 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
23559 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
23560 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
23561 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
23562 and always use the no parameter form for consistency.
23564 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
23566 2005-09-01 Robert Dewar <dewar@adacore.com>
23568 * binde.adb: Minor reformatting
23569 (Find_Elab_Order): Output warning if -p used with static elab order
23571 2005-09-01 Robert Dewar <dewar@adacore.com>
23573 * checks.adb (Check_Needed): New procedure, deals with removing checks
23574 based on analysis of short-circuited forms. Also generates warnings for
23575 improper use of non-short-circuited forms.
23578 2005-09-01 Robert Dewar <dewar@adacore.com>
23580 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
23583 2005-09-01 Robert Dewar <dewar@adacore.com>
23585 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
23587 Implement new insertion char < (conditional warning)
23588 * errutil.adb, erroutc.adb: Implement new insertion char <
23589 (conditional warning).
23590 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
23591 (Error_Msg_Warn): New variable for < insertion char.
23592 * prj-nmsc.adb: Implement new errout insertion char < (conditional
23594 (Check_For_Source): Change value of Source_Id only after the current
23595 source has been dealt with.
23597 2005-09-01 Robert Dewar <dewar@adacore.com>
23598 Doug Rupp <rupp@adacore.com>
23600 * exp_attr.adb: Handle vax fpt for 'Valid attribute
23601 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
23602 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
23603 (Valid_D, Valid_F, Valid_G): New functions
23605 2005-09-01 Ed Schonberg <schonberg@adacore.com>
23606 Hristian Kirtchev <kirtchev@adacore.com>
23607 Javier Miranda <miranda@adacore.com>
23609 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
23610 from object notation, the original node is unanalyzed and carries no
23611 semantic information, so that accessiblity checks must be performed on
23612 the type of the actual itself.
23613 (Expand_N_Subprogram_Declaration): Change last actual parameter for
23614 compatibility with Build_Protected_Sub_Specification.
23615 (Check_Overriding_Inherited_Interfaces): Add suport to handle
23616 overloaded primitives.
23617 (Register_Interface_DT_Entry): Use the new name of the formal
23618 the the calls to Expand_Interface_Thunk
23620 * exp_dbug.ads: Augment comments on encoding of protected types to
23621 include the generation of dispatching subprograms when the type
23622 implements at least one interface.
23624 * lib.ads: Extend information in Load_Stack to include whether a given
23625 load comes from a Limited_With_Clause.
23627 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
23628 whether a potential circularity is harmless, because it includes units
23629 loaded through a limited_with clause. Extends previous treatment which
23630 did not handle properly arbitrary combinations of limited and
23631 non-limited clauses.
23633 2005-09-01 Nicolas Setton <setton@adacore.com>
23635 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
23636 to be encoded as typ___XBLU_lowerbound__upperbound instead of
23637 typ___XB_lowerbound__upperbound.
23639 2005-09-01 Thomas Quinot <quinot@adacore.com>
23641 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
23642 dummy access formal for RACW/RAS TypeCode TSS.
23643 (Build_TypeCode_Call): Do not generate dummy null access actual for
23644 calls to the TypeCode TSS.
23646 2005-09-01 Ed Schonberg <schonberg@adacore.com>
23648 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
23649 fully qualified name, to distinguish instances with the same local name.
23651 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
23654 2005-09-01 Robert Dewar <dewar@adacore.com>
23656 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
23659 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
23661 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
23662 (Free): New deallocation procedure for filter elements
23663 (Close): Deallocate any existing filter for the concerned connection
23665 2005-09-01 Laurent Pautet <pautet@adacore.com>
23667 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
23668 position set is provided, we compute one in order to reduce the maximum
23669 length of the keys. This computation first selects a character
23670 position between 1 and the minimum length of the keys in order to
23671 avoid reducing one of the keys to an empty string.
23672 (Initialize, Compute): When the ratio V to K is too low, the algorithm
23673 does not converge. The initialization procedure now comes with a
23674 maximum number of iterations such that when exceeded, an exception is
23675 raised in Compute. The user can initialize this ratio to another value
23677 Reformating and updated headers.
23679 2005-09-01 Javier Miranda <miranda@adacore.com>
23681 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
23682 that given an entity T creates and returns an Itype that duplicates the
23683 contents of T. The returned Itype has the null-exclusion
23684 attribute set to True, and its Etype attribute references T
23685 to keep the association between the two entities.
23686 Update copyright notice
23688 * sem_aggr.adb (Check_Can_Never_Be_Null,
23689 Aggregate_Constraint_Checks, Resolve_Aggregate,
23690 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
23692 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
23694 2005-09-01 Gary Dismukes <dismukes@adacore.com>
23695 Robert Dewar <dewar@adacore.com>
23696 Hristian Kirtchev <kirtchev@adacore.com>
23698 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
23701 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
23703 Call Set_Result_Definition instead of Set_Subtype_Mark.
23704 (P_Subprogram_Specification): Add parsing of anonymous access result
23705 plus null exclusions. Call Set_Result_Definition instead of
23708 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
23709 (P_Access_Type_Definition): Add parsing for an anonymous access result
23710 subtype, plus parsing for null exclusions. Call Set_Result_Definition
23711 instead of Set_Subtype_Mark.
23713 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
23714 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
23715 (Result_Definition): New function for N_Function_Specifications.
23716 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
23717 N_Function_Specification.
23718 (Set_Null_Exclusion_Present): Allow this flag for
23719 N_Function_Specification.
23720 (Set_Result_Definition): New procedure for N_Function_Specifications.
23721 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
23722 and N_Function_Specification.
23724 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
23725 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
23726 Add support for LIMITED NEW for Ada 2005 AI-419
23727 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
23728 syntax for anonymous access results.
23729 Replace Subtype_Mark field by Result_Definition in
23730 N_Function_Specification and N_Access_Definition specs.
23731 Add Null_Exclusion_Present to spec of N_Function_Specification.
23732 (Result_Definition): New function for N_Function_Specification and
23733 N_Access_Function_Definition.
23734 (Set_Result_Definition): New procedure for N_Function_Specification and
23735 N_Access_Function_Definition.
23737 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
23738 Result_Definition for cases of N_Access_Function_Definition and
23739 N_Function_Specification.
23740 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
23742 2005-09-01 Vincent Celier <celier@adacore.com>
23744 * lib-writ.adb: Update Copyright notice
23745 (Write_With_Lines): On platforms where file names are case-insensitive,
23746 record the file names in lower case.
23747 (Write_ALI): For D lines, on platforms where file names are
23748 case-insensitive, record the file names in lower case.
23750 2005-09-01 Ed Schonberg <schonberg@adacore.com>
23751 Emmanuel Briot <briot@adacore.com>
23753 * lib-xref.adb (Output_Overridden_Op): Display information on
23754 overridden operation.
23756 * lib-xref.ads: Add documentation on overridden operations.
23758 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
23761 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
23762 overriding entity information.
23764 2005-09-01 Vincent Celier <celier@adacore.com>
23766 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
23767 including those that are inherited.
23769 2005-09-01 Robert Dewar <dewar@adacore.com>
23771 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
23773 * par-prag.adb: Implement new pragma Debug_Policy
23775 * sem_prag.adb Implement new pragma Debug_Policy
23776 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
23777 Component_Size attribute specification. Give warning for ignored pragma
23780 * snames.h, snames.ads, snames.adb: Introduce entries in
23781 Preset_Names for Name_Disp_Asynchronous_Select,
23782 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
23783 Name_Disp_Timed_Select.
23784 New pragma Debug_Policy
23786 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
23788 Switch -gnata also sets Debug_Pragmas_Enabled
23790 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
23791 handle an explicit -gnata when compiling predefined files.
23793 2005-09-01 Vincent Celier <celier@adacore.com>
23795 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
23796 directories of projects that have no Ada sources.
23798 2005-09-01 Robert Dewar <dewar@adacore.com>
23800 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
23801 (makes a difference for wide characters)
23803 * widechar.adb, widechar.ads:
23804 Add Wide_Char_Byte_Count feature to count chars vs bytes
23806 2005-09-01 Thomas Quinot <quinot@adacore.com>
23807 Ed Schonberg <schonberg@adacore.com>
23808 Robert Dewar <dewar@adacore.com>
23810 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
23811 'Address attribute reference with an overloaded prefix, use the
23812 location of the prefix (not the location of the attribute reference) as
23813 the error location.
23814 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
23815 a function renaming thereof, is a valid prefix for 'Size (where it is
23816 intepreted as a function call).
23817 (Statically_Denotes_Entity): New predicate to determine whether the
23818 prefix of an array attribute can be considered static.
23821 (Eval_Attr): Fix failure to evaluate Component_Size for
23822 unconstrained arrays (resulted in wrong value in packed case, since
23823 back end cannot handle this case)
23825 2005-09-01 Robert Dewar <dewar@adacore.com>
23827 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
23828 error msgs for most common cases.
23829 Use new errout insertion char < (conditional warning)
23831 2005-09-01 Javier Miranda <miranda@adacore.com>
23832 Ed Schonberg <schonberg@adacore.com>
23834 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
23835 become local to the whole package.
23836 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
23837 the package was already analyzed the new algorithm "replaces" the
23838 real entities by the shadow ones. This is required to ensure that
23839 the order of these entities in the homonym chains does not change;
23840 otherwise we can have undefined references at linking time because
23841 in case of conflicts the external name of the entities will have
23842 a suffix that depends on the order of the entities in the chain.
23843 (Remove_Limited_With_Clause): Complementary code that completes the
23844 new algorithm and replaces the shadow entities by the real ones.
23845 (Install_Limited_Withed_Unit): When unchaining entities before the
23846 installation of the shadow entities, only regular entities of the
23847 public part must be taken into account. This is required to
23848 keep this routine in synch with the work done by Remove_Limited_
23850 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
23851 even if unit is analyzed, because the analysis of the unit is
23852 idempotent in any case, and the limited view of the unit may have to
23853 be installed for proper visibility.
23854 (Expand_Limited_With_Clause): Even if the unit in the implicit
23855 with_clause has been analyzed already, a limited view of the package
23856 must be built for the current context, if it does not exist yet.
23858 2005-09-01 Ed Schonberg <schonberg@adacore.com>
23859 Javier Miranda <miranda@adacore.com>
23860 Gary Dismukes <dismukes@adacore.com>
23862 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
23863 defining entity for the instance body, make a new defining identifier
23864 rather than copying the entity of the spec, to prevent accidental
23865 sharing of the entity list.
23866 (Check_Private_View): When exchanging views of private types, build the
23867 list of exchanged views as a stack, to ensure that on exit the exchanges
23868 are undone in the proper order.
23869 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
23870 Restore the compilation environment in case of instantiation_error.
23871 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
23872 for an anonymous access result.
23873 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
23874 (Formal_Entity): Handle properly the case of a formal package that
23875 denotes a generic package renaming.
23877 2005-09-01 Thomas Quinot <quinot@adacore.com>
23879 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
23880 clause if the array aggregate is surrounded by parentheses.
23882 2005-09-01 Cyrille Comar <comar@adacore.com>
23883 Gary Dismukes <dismukes@adacore.com>
23884 Ed Schonberg <schonberg@adacore.com>
23885 Javier Miranda <miranda@adacore.com>
23887 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
23889 to check if a type is Constrained in cases related to code generation
23890 (rather than semantic checking) since otherwise we do not generate
23891 similar code for mutable private types depending if their
23892 discriminants are visible or not.
23893 (Check_Abstract_Overriding): Do not complain about failure to override
23894 the primitive operations used in dispatching selects since they will
23895 always be overriden at the freeze point of the type.
23896 (Access_Definition): Separate out handling for resetting the scope
23897 of an anonymous access function result type. Retrieve the scope
23898 of the associated function rather than using Current_Scope, which
23899 does not have a consistent value (depends on whether we're in the
23900 middle of analyzing formal parameters). Add ??? comment about
23901 finding a cleaner way to handle the special cases of scope setting.
23902 (Process_Incomplete_Dependents): A protected operation is never a
23903 dispatching operation (only its wrapper may be).
23904 (Build_Derived_Record_Type): In case of tagged private types that
23905 implement interfaces add derivation of predefined primitive
23907 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
23908 by two parameters that are used in case of derivation from abstract
23909 interface types: No_Predefined_Prims is used to avoid the derivation
23910 of predefined primitives from the interface, and Predefined
23911 Prims_Only is used to complete the derivation predefined primitives
23912 in case of private tagged types implementing interfaces.
23913 Fix typo in comments
23914 (Find_Interface_In_Descendant): Protect the frontend against
23915 wrong code with large circularity chains.
23916 (Is_Private_Overriding): Add support for entities overriding interface
23917 subprograms. The test failed because Entities associated with overriden
23918 interface subprograms are always marked as hidden (and used to build
23919 the secondary dispatch table); in this case the overriden entity is
23920 available through the field abstract_interface_alias (cf. override_
23921 dispatching_operation)
23922 (Access_Definition): Set the scope of the type to Current_Scope for the
23923 case of a function with an anonymous access result type.
23924 (Access_Subprogram_Declaration): Handle creation of the type entity for
23925 an access-to-function type with an anonymous access result.
23926 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
23927 in handling for N_Access_Function_Definition.
23928 (Analyze_Subtype_Declaration): Modify the text of error message.
23929 (Derived_Type_Declaration): Modify the text of error message.
23930 (Process_Subtype): Modify the text of error message plus cleanup
23931 of one redundant error message.
23932 (Analyze_Component_Declaration): Code cleanup.
23933 (Analyze_Object_Declaration): Code cleanup.
23934 (Analyze_Subtype_Declaration): Propagate the null-exclusion
23935 attribute in case of access types. Code cleanup.
23936 (Array_Type_Declaration): Code cleanup.
23937 (Process_Discriminants): Create the new null-excluding itype
23938 if required. Code cleanup.
23939 (Process_Subtype): Create the new null-excluding itype if
23940 required. Code cleanup.
23941 (Build_Derived_Record_Type): Code cleanup to avoid calling
23942 twice the subprogram derive_subprograms in case of private
23943 types that implement interfaces. In this particular case the
23944 subprogram Complete_Subprograms_Derivation already does the
23945 job associated with the second call.
23947 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
23948 conversion to the full view when generating an operation for a
23949 discriminant whose type may currently be private.
23951 2005-09-01 Ed Schonberg <schonberg@adacore.com>
23952 Javier Miranda <miranda@adacore.com>
23954 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
23955 V (Obj.F), the rewriting does not involve the indexed component, but
23956 only the selected component itself.
23957 Do not apply the transformation if the analyzed node is an actual of a
23958 call to another subprogram.
23959 (Complete_Object_Operation): Retain the entity of the
23960 dispatching operation in the selector of the rewritten node. The
23961 entity will be used in the expansion of dispatching selects.
23962 (Analyze_One_Call): Improve location of the error message associated
23964 (Analyze_Selected_Component): No need to resolve prefix when it is a
23965 function call, resolution is done when parent node is resolved, as
23967 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
23968 when attempting to resolve a call transformed from its object notation.
23969 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
23970 of the argument list for each interpretation of the operation.
23971 (Try_Object_Operation): The designated type of an access parameter may
23972 be an incomplete type obtained through a limited_with clause, in which
23973 case the primitive operations of the type are retrieved from its full
23975 (Analyze_Call): If this is an indirect call, and the return type of the
23976 access_to_subprogram is incomplete, use its full view if available.
23978 2005-09-01 Javier Miranda <miranda@adacore.com>
23979 Gary Dismukes <dismukes@adacore.com>
23981 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
23982 access types the null-exclusion and access-to-constant attributes must
23984 (Analyze_Return_Statement): When the result type is an anonymous access
23985 type, apply a conversion of the return expression to the access type
23986 to ensure that appropriate accessibility checks are performed.
23987 (Analyze_Return_Type): For the case of an anonymous access result type,
23988 generate the Itype and set Is_Local_Anonymous_Access on the type.
23989 Add ??? placeholder for check to disallow returning a limited object
23990 in Ada 2005 unless it's an aggregate or a result of a function call.
23991 Change calls from Subtype_Mark to Result_Definition.
23992 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
23993 Result_Definition in call to Make_Function_Specification.
23994 (Build_Body_To_Inline): Change Set_Subtype_Mark to
23995 Set_Result_Definition.
23996 (Make_Inequality_Operator): Change formal Subtype_Mark to
23997 Result_Definition in call to Make_Function_Specification.
23998 (Process_Formals): Create the new null-excluding itype if required.
23999 (New_Overloaded_Entity): For an entity overriding an interface primitive
24000 check if the entity also covers other abstract subprograms in the same
24001 scope. This is required to handle the general case, that is, overriding
24002 other interface primitives and overriding abstract subprograms inherited
24003 from some abstract ancestor type.
24004 (New_Overloaded_Entity): For an overriding entity that comes from
24005 source, note the operation that it overrides.
24006 (Check_Conformance, Type_Conformant): Addition of one new formal
24007 to skip controlling formals in the analysis. This is used to
24008 handle overloading of abstract interfaces.
24009 (Base_Types_Match): Add missing case for types imported from
24010 limited-with clauses
24011 (New_Overloaded_Entity): Add barrier to protect the use of
24012 the "alias" attribute.
24014 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24016 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
24017 verify that the procedure and the entry are mode conformant.
24018 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
24019 as a different operator, which is often a cut-and-paste error.
24021 2005-09-01 Javier Miranda <miranda@adacore.com>
24022 Ed Schonberg <schonberg@adacore.com>
24024 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
24025 used in controlling parameters exclude null because it is necessary to
24026 read the tag to dispatch, and null has no tag.
24027 (Override_Dispatching_Operation): If the previous operation is inherited
24028 from an interface, it becomes hidden and does not participate in later
24031 2005-09-01 Javier Miranda <miranda@adacore.com>
24032 Ed Schonberg <schonberg@adacore.com>
24033 Gary Dismukes <dismukes@adacore.com>
24035 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
24036 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
24037 the expander will generate the corresponding run-time check to evaluate
24039 (Resolve_Call): Check for legal type of procedure name or prefix that
24040 appears as a trigger in a triggering alternative.
24041 (Valid_Conversion): If expression is ambiguous and the context involves
24042 an extension of System, remove System.Address interpretations.
24043 (Resolve_Qualified_Expression): Reject the case of a specific-type
24044 qualification applied to a class-wide argument. Enhance comment
24045 to explain checking of Original_Node.
24046 (Resolve_Type_Conversion): The location of the error message was not
24047 general enough to handle the general case and hence it has been removed.
24048 In addition, this patch improves the text of the message.
24049 (Resolve_Type_Conversion): Add missing support for access to interface
24051 (Resolve_Type_Conversion): If the target is a class-wide interface type,
24052 do not expand if the expression is the actual in a call, because proper
24053 expansion will take place when the call itself is expanded.
24054 (Resolve_Allocator): If the context is an unchecked conversion, the
24055 allocator inherits its storage pool, if any, from the target type of
24058 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24059 Javier Miranda <miranda@adacore.com>
24061 * sem_type.adb (Add_One_Interp): If a candidate operation is an
24062 inherited interface operation that has an implementation, use the
24063 implementation to avoid spurious ambiguities.
24064 (Interface_Present_In_Ancestor): In case of concurrent types we can't
24065 use the Corresponding_Record_Typ attribute to look for the interface
24066 because it is set by the expander (and hence it is not always
24067 available). For this reason we traverse the list of interfaces
24068 (available in the parent of the concurrent type).
24069 (Interface_Present_In_Ancestor): Handle entities from the limited view
24071 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24073 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
24074 from the list of required components.
24075 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
24076 primitive procedure of a limited interface with a controlling first
24078 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
24080 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
24081 capture if it is generated in the second operand of a short-circuit
24083 Do not capture values for variables with address clauses.
24084 (Is_Object_Reference): Treat a function call as an object reference only
24085 if its type is not Standard_Void_Type.
24087 2005-09-01 Ed Schonberg <schonberg@adacore.com>
24089 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
24090 to a variable that is statically known to be constant.
24092 2005-09-01 Geert Bosch <bosch@adacore.com>
24093 Robert Dewar <dewar@adacore.com>
24095 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
24096 (VAXGF_Safe_First): Idem.
24098 2005-09-01 Robert Dewar <dewar@adacore.com>
24099 Arnaud Charlet <charlet@adacore.com>
24101 * g-dirope.ads: Minor reformatting
24102 Document that bounds of result of Base_Name match the input index
24104 Add documentation on environment variable syntax for Expand_Path
24106 * gnat_ugn.texi: Update documentation to include mention of -m switches
24107 Document new treatment of wide characters in max line length
24109 Remove -gnatL/-gnatZ switches, no longer used.
24110 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
24113 * gnat_rm.texi: Add doc for two argument form of pragma
24114 Float_Representation.
24115 Add documentation for pragma No_Strict_Aliasing
24116 Add note that explicit component clause overrides pragma Pack.
24117 Add documentation of pragma Debug_Policy
24119 2005-09-01 Matthew Heaney <heaney@adacore.com>
24121 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
24122 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
24123 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
24124 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
24125 draft (Draft 13, August 2005) of Ada Amendment 1.
24127 2005-09-01 Arnaud Charlet <charlet@adacore.com>
24129 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
24130 Note that the platform-specific version of g-soccon.ads for VMS is now
24131 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
24132 really is a package spec).
24133 Replace s-taspri-linux.ads by s-taspri-posix.ads
24134 Remove references to s-mastop-x86.adb
24136 * system-vxworks-xscale.ads: Removed, no longer used.
24137 * s-vxwork-xscale.ads: Removed, no longer used.
24139 2005-09-01 Robert Dewar <dewar@adacore.com>
24141 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
24142 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
24143 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
24144 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
24145 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
24146 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
24147 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
24148 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
24149 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
24150 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
24151 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
24152 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
24153 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
24154 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
24155 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
24156 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
24157 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
24158 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
24159 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
24160 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
24161 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
24163 2005-08-29 Arnaud Charlet <charlet@adacore.com>
24167 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
24169 2005-08-29 Arnaud Charlet <charlet@adacore.com>
24170 Doug Rupp <rupp@adacore.com>
24172 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
24174 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
24175 this code in the GNAT run-time.
24177 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
24180 * init.c (__gnat_error_handler [many]): Mark "msg" as const
24181 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
24183 (__gnat_inside_elab_final_code): Moved here from
24184 Standard_Library and only defined for the compiler.
24185 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
24186 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
24187 using RTPs because directly vectored Interrupt routines are not
24188 supported on this configuration.
24189 (getpid): Do not redefine this function on VxWorks when using RTPs
24190 because this primitive is well supported by the RTP libraries.
24191 (copy_msg): Correct the code that checks for buffer overflow.
24192 Discovered during code reading.
24194 2005-08-29 Olivier Hainque <hainque@adacore.com>
24196 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
24197 a library level mutable variable with an initializer, tell
24198 build_allocator to ignore the initializer's size. It may not be large
24199 enough for all the values that might be assigned to the variable later
24202 2005-08-29 Arnaud Charlet <charlet@adacore.com>
24203 Eric Botcazou <ebotcazou@adacore.com>
24205 * trans.c: Protect < in error msg with quote
24206 Replace GCC_ZCX by Back_End_Exceptions.
24207 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
24208 has been sufficiently aligned in the record.
24210 2005-08-15 James E. Wilson <wilson@specifix.com>
24212 * system-linux-alpha.ads: Change ia64 to alpha.
24214 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
24216 * decl.c, utils.c: Fix comment typos.
24218 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
24220 * decl.c, init.c, initialize.c: Fix comment typos.
24222 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
24224 Make CONSTRUCTOR use VEC to store initializers.
24225 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
24227 * trans.c (extract_values): Likewise.
24228 * utils.c (convert, remove_conversions): Likewise.
24229 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
24230 gnat_build_constructor): Likewise.
24232 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
24234 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
24236 (compare_field_bitpos): Likewise.
24238 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
24240 * utils.c (create_var_decl): Only set DECL_COMMON on
24241 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
24242 VAR_OR_FUNCTION_DECL_P.
24244 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
24246 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
24249 2005-07-07 Pascal Obry <obry@adacore.com>
24251 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
24252 returned type on Windows.
24254 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
24257 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
24258 exception in this case.
24259 Simplify the code as "Image (Image'Range)" = "Image".
24261 2005-07-07 Vincent Celier <celier@adacore.com>
24263 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
24264 the destructor/constructor attributes for <lib>final/<lib>init.
24266 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
24268 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
24270 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
24271 type if the parameter is not passed by copy but reference by default.
24273 2005-07-07 Javier Miranda <miranda@adacore.com>
24275 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
24276 Reimplementation of the support for abstract interface types in order
24277 to leave the code more clear and easy to maintain.
24279 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
24280 abstract interface types in order to leave the code clearer and easier
24283 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
24284 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
24285 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
24286 appropriate entry of the secondary dispatch table.
24287 (Make_DT): Add code to inherit the secondary dispatch tables of
24290 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
24291 implementing both functionalities by means of a common routine, each
24292 routine has its own code.
24294 2005-07-07 Javier Miranda <miranda@adacore.com>
24296 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
24298 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
24301 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
24304 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
24305 use of tag incomplete types.
24307 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
24308 give support to tagged incomplete types.
24310 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
24311 expression is a discriminant reference and its type is private, as can
24312 happen within a stream operation for a mutable record, use the full
24313 view of the type to resolve the case alternatives.
24314 (Analyze_Assignment): Check wrong dereference of incomplete types.
24316 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
24319 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
24322 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
24323 N_Incomplete_Type_Declaration nodes.
24325 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
24326 Tag_Present to give support to tagged incomplete types:
24328 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
24331 2005-07-07 Olivier Hainque <hainque@adacore.com>
24334 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
24335 definitions for the Unwind wrappers in the compiler case.
24337 2005-07-07 Ed Schonberg <schonberg@adacore.com>
24338 Javier Miranda <miranda@adacore.com>
24340 * par-load.adb (Load): If a child unit is loaded through a limited_with
24341 clause, each parent must be loaded as a limited unit as well.
24343 * sem_ch10.adb (Previous_Withed_Unit): Better name for
24344 Check_Withed_Unit. Return true if there is a previous with_clause for
24345 this unit, whether limited or not.
24346 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
24348 (Is_Visible_Through_Renamings): New local subprogram of install_limited
24349 _withed_unit that checks if some package installed through normal with
24350 clauses has a renaming declaration of package whose limited-view is
24351 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
24352 of the current Draft document for Ada 2005.
24353 (Analyze_Context): Complete the list of compilation units that
24354 are allowed to contain limited-with clauses. It also contains
24355 checks that were previously done by Install_Limited_Context_Clauses.
24356 This makes the code more clear and easy to maintain.
24357 (Expand_Limited_With_Clause) It is now a local subprogram of
24358 Install_Limited_Context_Clauses, and contains the code that adds
24359 the implicit limited-with clauses for parents of child units.
24360 This functionality was prevously done by Analyze_Context.
24362 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
24365 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
24366 been erroneously named in a limited-with clause of its own context.
24367 In this case the error has been previously notified by Analyze_Context.
24369 2005-07-07 Ed Schonberg <schonberg@adacore.com>
24371 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
24372 generic package that contains local declarations with the same name.
24373 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
24375 2005-07-07 Bernard Banner <banner@adacore.com>
24377 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
24378 ia64 platform only on platforms that you the GCC unwind library
24379 rather than the system unwind library.
24381 2005-07-07 Thomas Quinot <quinot@adacore.com>
24383 * expect.c: Minor reformatting
24385 2005-07-07 Sergey Rybin <rybin@adacore.com>
24387 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
24390 * gnat_ugn.texi: Add description for new gnatpp option
24393 2005-07-04 Thomas Quinot <quinot@adacore.com>
24395 * g-expect-vms.adb, g-expect.ads, g-expect.adb
24396 (Get_Command_Output): New subprogram to launch a process and get its
24397 standard output as a string.
24399 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
24400 Olivier Hainque <hainque@adacore.com>
24402 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
24403 fetch a code-range descriptor associated with the machine state. On
24404 failure set the machine state's PC to 0; on success, pass the
24405 descriptor to exc_virtual_unwind.
24407 * init.c (Tru64 section): New function __gnat_set_code_loc.
24409 2005-07-04 Vincent Celier <celier@adacore.com>
24411 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
24412 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
24413 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
24414 Remove all auto-initialization code, as this is now done through the
24415 constructor mechanism.
24417 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
24418 __gnat_sals_init_using_constructors): New functions.
24420 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
24421 Linker_Constructor and Linker_Destructor when switch -a is used.
24423 * bindusg.adb: Add line for new switch -a
24425 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
24426 (Gnatbind): When switch -a is used, check if it is allowed
24428 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
24430 2005-07-04 Joel Brobecker <brobecker@adacore.com>
24432 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
24433 This prevents us from hitting a limitation during the debug info
24434 generation when using stabs.
24435 (Prims_Ptr): Likewise.
24437 2005-07-04 Gary Dismukes <dismukes@adacore.com>
24438 Ed Schonberg <schonberg@adacore.com>
24439 Javier Miranda <miranda@adacore.com>
24441 * checks.adb (Null_Exclusion_Static_Checks): In the case of
24442 N_Object_Declaration, only perform the checks if the Object_Definition
24443 is not an Access_Definition.
24445 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
24446 where the parent of an the access definition is an N_Object_Declaration
24447 when determining the Associated_Node_For_Itype and scope of an
24448 anonymous access-to-subprogram type.
24450 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
24451 Corresponding_Spec on the body created for a null procedure. Add ???
24452 comment. Remove New_Copy_Tree call on body argument to
24453 Set_Body_To_Inline.
24455 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
24456 discriminants, use the type of the actual as well, because the
24457 discriminants may be read by the called subprogram.
24459 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
24460 access type we do not need to handle non-limited views.
24461 (Build_Derived_Record_Type): Additional check to check that in case of
24462 private types, interfaces are only allowed in private extensions.
24464 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
24466 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
24467 <Pragma_Linker_Destructor>: Likewise.
24469 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
24470 Pragma_Linker_Destructor.
24472 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
24473 ATTR_LINK_DESTRUCTOR.
24474 (static_ctors, static_dtors): New variables.
24476 * misc.c (gnat_expand_body): Output current function as constructor
24477 and destructor if requested.
24479 * par-prag.adb: Add processing for pragma Linker_Constructor and
24482 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
24483 extracted from Check_Interrupt_Or_Attach_Handler.
24484 (Check_Interrupt_Or_Attach_Handler): Invoke it.
24485 Implement pragma Linker_Constructor and Linker_Destructor with the
24486 help of Find_Unique_Parameterless_Procedure.
24487 Replace Name_Alias with Name_Target for pragma Linker_Alias.
24489 * snames.h, snames.ads, snames.adb:
24490 Add Name_Linker_Constructor and Name_Linker_Destructor.
24491 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
24492 * snames.adb: Remove Name_Alias.
24494 * trans.c: Include cgraph.h.
24495 (build_global_cdtor): New function.
24496 (Compilation_Unit_to_gnu): Build global constructor and destructor if
24498 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
24500 (addressable_p) <COMPONENT_REF>: Unconditionally test
24501 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
24503 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
24504 variable if it is external.
24506 (static_ctors, static_dtors): New global variables.
24507 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
24508 <ATTR_LINK_DESTRUCTOR>: Likewise.
24509 (end_subprog_body): Chain function as constructor and destructor
24512 * exp_util.adb (Force_Evaluation): Unconditionally invoke
24513 Remove_Side_Effects with Variable_Ref set to true.
24514 (Remove_Side_Effects): Handle scalar types first. Use a renaming
24515 for non-scalar types even if Variable_Ref is true and for class-wide
24518 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24520 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
24521 to prevent spurious warnings.
24523 2005-07-04 Thomas Quinot <quinot@adacore.com>
24525 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
24526 Itypes. Itypes are really unexpected there.
24527 (Build_TypeCode_Function): Generalise special processing for Itypes to
24528 handle the case of numeric implicit base types as well as enumerated
24531 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24533 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
24534 controlled, indicate the expected type of the dereference that is
24535 created for the call to Deep_Finalize, to prevent spurious errors when
24536 the designated type is private and completed with a derivation from
24537 another private type.
24539 2005-07-04 Vincent Celier <celier@adacore.com>
24541 * make.adb (Change_To_Object_Directory): When unable to change the
24542 current dir to the object directory, output the full path of the
24545 2005-07-04 Matthew Gingell <gingell@adacore.com>
24547 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
24549 * indepsw-linux.adb: Replace by...
24551 * indepsw-gnu.adb: ...this new file
24553 2005-07-04 Vincent Celier <celier@adacore.com>
24555 * mlib-prj.adb (Auto_Initialize): New constant String
24556 (SALs_Use_Constructors): New Boolean function
24557 (Build_Library): Call gnatbind with Auto_Initialize switch when
24558 SALs_Use_Constructors returns True.
24560 * mlib-tgt.ads: Minor reformatting
24562 * mlib-utl.ads: Minor reformatting
24564 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
24566 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24568 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
24569 single protected declarations can have an interface list.
24570 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
24571 with seriously malformed entry declarations, and lead to compilation
24572 abandoned messages.
24574 2005-07-04 Javier Miranda <miranda@adacore.com>
24576 * par-load.adb: Load the context items in two rounds.
24578 2005-07-04 Robert Dewar <dewar@adacore.com>
24580 * scng.adb: Do not consider Mod used as an attribute to be a keyword
24582 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24583 Javier Miranda <miranda@adacore.com>
24585 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
24586 type extension needs a limited view.
24587 Remove previous restriction on private types available through the
24588 limited-view (only tagged private types were previously allowed).
24589 (Install_Withed_Unit): In the code that implements the
24590 legality rule given in AI-377, exclude a child unit with the name
24591 Standard, because it is a homonym of the Standard environment package.
24593 2005-07-04 Thomas Quinot <quinot@adacore.com>
24595 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
24596 overloaded function call, carry interpretations from the original tree
24599 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24601 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
24602 types check whether some designated type is a limited view, and use
24603 the non-limited view if available.
24605 2005-07-04 Gary Dismukes <dismukes@adacore.com>
24607 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
24608 constraint of full view of a private view T1 if present, when T2 is a
24609 discriminated full view.
24611 2005-07-04 Thomas Quinot <quinot@adacore.com>
24613 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
24614 actual that is a view conversion of a bit packed array reference.
24616 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24618 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
24619 present before checking whether an interface type covers a synchronized
24622 2005-07-04 Ed Schonberg <schonberg@adacore.com>
24624 * sem_util.adb (Is_Object_Reference): An indexed or selected component
24625 whose prefix is an implicit dereference is an object reference. Removes
24626 spurious errors when compiling with -gnatc.
24628 2005-07-04 Robert Dewar <dewar@adacore.com>
24631 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
24633 2005-07-04 Matthew Gingell <gingell@adacore.com>
24635 * tracebak.c: Enable tracebacks on ia64 platforms
24637 2005-07-04 Vincent Celier <celier@adacore.com>
24639 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
24640 the GNAT BIND command, as gnatbind accepts multiples ALI files with
24641 the -L or -n switches.
24643 2005-07-04 Vincent Celier <celier@adacore.com>
24645 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
24646 correctly computed and the main project data is not modified while
24648 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
24649 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
24650 c++linker as this does not work on some platforms.
24652 2005-07-04 Matthew Heaney <heaney@adacore.com>
24654 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
24656 * a-coinve.adb: Perform constraint checks explicitly.
24658 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
24659 Thomas Quinot <quinot@adacore.com>
24661 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
24662 new target gen-soccon.
24664 2005-07-04 Robert Dewar <dewar@adacore.com>
24666 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
24668 2005-07-04 Thomas Quinot <quinot@adacore.com>
24670 * g-socket.ads (Check_Selector): Minor rewording of comment.
24672 2005-07-04 Vincent Celier <celier@adacore.com>
24674 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
24676 2005-07-04 Thomas Quinot <quinot@adacore.com>
24678 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
24680 2005-07-04 Sergey Rybin <rybin@adacore.com>
24682 * gnat_ugn.texi: Add description of --eol gnatpp option
24684 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
24685 Thomas Quinot <quinot@adacore.com>
24687 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
24688 if the user wants all calls of a subprogram to be flagged,
24689 independently of whether they are made from within the same unit or
24691 Mention restriction for pragma Linker_Alias on some platforms.
24692 Document pragma Linker_Constructor and Linker_Destructor.
24693 Rewrite documentation of Weak_External, Linker_Section and
24694 Linker_Alias pragmas.
24696 2005-07-04 Arnaud Charlet <charlet@adacore.com>
24698 * s-stausa.ads, s-stausa.adb: New files.
24700 2005-06-30 Kelley Cook
24702 * all files: Update FSF address in copyright headers.
24703 * gen-soccon.co (main): Output new FSF address in generated files.
24705 2005-06-28 Paul Brook <paul@codesourcery.com>
24707 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
24709 2005-06-14 Olivier Hainque <hainque@adacore.com>
24710 Eric Botcazou <ebotcazou@adacore.com>
24712 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
24713 exc_unwind, now that we are generating proper .debug_frame output for
24716 * tracebak.c: Remove the mips-irix section, as we are now using the
24717 s-mastop based unwinder again.
24718 Under SPARC/Solaris, take into account the stack bias to compute the
24719 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
24722 2005-06-14 Doug Rupp <rupp@adacore.com>
24724 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
24726 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
24728 2005-06-14 Pascal Obry <obry@adacore.com>
24730 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
24731 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
24732 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
24735 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
24736 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
24737 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
24738 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
24739 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
24740 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
24741 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
24742 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
24743 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
24744 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
24745 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
24746 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
24747 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
24748 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
24749 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
24750 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
24751 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
24752 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
24753 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
24754 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
24755 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
24756 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
24757 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
24758 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
24759 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
24760 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
24761 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
24762 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
24763 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
24764 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
24765 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
24766 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
24767 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
24768 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
24769 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
24770 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
24771 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
24772 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
24773 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
24774 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
24775 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
24776 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
24777 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
24778 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
24779 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
24780 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
24781 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
24782 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
24783 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
24784 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
24785 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
24786 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
24787 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
24788 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
24789 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
24790 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
24791 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
24792 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
24793 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
24794 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
24795 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
24796 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
24797 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
24798 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
24799 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
24800 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
24801 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
24802 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
24803 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
24804 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
24805 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
24806 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
24807 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
24808 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
24809 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
24810 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
24811 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
24812 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
24813 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
24814 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
24815 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
24816 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
24817 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
24818 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
24819 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
24820 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
24821 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
24822 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
24823 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
24824 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
24825 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
24826 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
24827 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
24828 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
24829 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
24830 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
24831 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
24832 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
24833 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
24834 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
24835 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
24836 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
24837 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
24838 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
24839 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
24840 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
24841 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
24842 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
24843 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
24844 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
24845 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
24846 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
24847 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
24848 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
24849 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
24850 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
24851 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
24852 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
24853 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
24854 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
24855 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
24856 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
24857 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
24858 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
24859 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
24860 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
24861 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
24862 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
24863 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
24864 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
24865 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
24866 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
24867 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
24869 2005-06-14 Jose Ruiz <ruiz@adacore.com>
24870 Arnaud Charlet <charlet@adacore.com>
24872 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
24873 longer protected objects. They have been replaced by lower-level
24874 suspension objects made up by a mutex and a condition variable (or
24875 their equivalent given a particular OS) plus some internal data to
24876 reflect the state of the suspension object.
24877 (Initialize, Finalize): Add this initialization procedure for
24878 Suspension_Object, which is a controlled type.
24879 (Finalize): Add the finalization procedure for Suspension_Object,
24880 which is a controlled type.
24882 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
24883 Ada.Synchronous_Task_Control because there is no longer a need for a
24884 VxWorks specific version of this package. Target dependencies
24885 has been moved to System.Task_Primitives.Operations.
24887 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
24889 (InitializeCriticalSection, EnterCriticalSection,
24890 LeaveCriticalSection, DeleteCriticalSection): Replace the type
24891 pCriticalSection by an anonymous access type so that we avoid problems
24892 of accessibility to local objects.
24894 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
24895 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
24896 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
24897 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
24898 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
24899 set the environment task mask here.
24900 (Current_State): Add this function that returns the state of the
24902 (Set_False): Add this procedure that sets the state of the suspension
24904 (Set_True): Add this procedure that sets the state of the suspension
24905 object to True, releasing the task that was suspended, if any.
24906 (Suspend_Until_True): Add this procedure that blocks the calling task
24907 until the state of the object is True. Program_Error is raised if
24908 another task is already waiting on that suspension object.
24909 (Initialize): Add this procedure for initializing the suspension
24910 object. It initializes the mutex and the condition variable which are
24911 used for synchronization and queuing, and it sets the internal state
24913 (Finalize): Add this procedure for finalizing the suspension object,
24914 destroying the mutex and the condition variable.
24916 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
24917 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
24918 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
24919 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
24920 which provides a low-level abstraction (using operating system
24921 primitives) for Ada.Synchronous_Task_Control.
24922 This object is made up by a mutex (for ensuring mutual exclusion), a
24923 condition variable (for queuing threads until the condition is
24924 signaled), a Boolean (State) indicating whether the object is open,
24925 and a Boolean (Waiting) reflecting whether there is a task already
24926 suspended on this object.
24928 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
24929 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
24930 s-intman-vms.ads, s-intman-mingw.adb,
24931 (Initialize_Interrupts): Removed, no longer used.
24933 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
24934 (Setup_Interrupt_Mask): New procedure.
24936 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
24938 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
24940 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
24941 this is no longer done in the body of s-taprop
24942 (Server_Task): Explicitely test for Pending_Action in case
24943 System.Parameters.No_Abort is True.
24945 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
24946 is no longer done in the body of s-taprop
24948 2005-06-14 Robert Dewar <dewar@adacore.com>
24950 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
24951 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
24952 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
24953 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
24954 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
24955 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
24956 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
24957 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
24958 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
24959 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
24960 system-linux-hppa.ads, system-vms_64.ads,
24961 system-vxworks-alpha.ads: Minor comment update for
24962 AI-362 (unit is Pure).
24964 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
24965 Add pragma Pure_05 for AI-362
24966 Make remaining conversion functions obsolescent in Ada 95
24968 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
24969 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
24970 Add entries for a-wichun and a-zchuni
24971 Add a-widcha a-zchara for AI-395
24972 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
24974 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
24975 Add entries for a-wichun.o and a-zchuni.o
24976 Entries for a-widcha.o and a-zchara.o
24977 Add entry for a-chacon.o
24979 * a-ztenau.adb: Add with of Ada.Characters.Conversions
24981 * a-chacon.ads, a-chacon.adb: New files.
24983 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
24984 categorization violations.
24986 * a-strmap.ads: Add pragma Pure_05 for AI-362
24987 * a-strmap.ads: Add note on implicit categorization for AI-362
24989 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
24991 * par-prag.adb: Dummy entry for pragma Persistent_BSS
24992 Set Ada_Version_Explicit, for implementation of AI-362
24993 Add processing for pragma Pure_05 and Preelaborate_05
24994 Add entry for Assertion_Policy pragma
24996 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
24997 when needed for proper processing of categorization stuff
25000 For several cases, make errors in preealborate units warnings,
25001 instead of errors, if GNAT_Mode is set. For AI-362.
25003 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
25004 preelaborate unit is now warning if in GNAT mode
25006 * s-stoele.ads: Document AI-362 for pragma preelaborate
25008 2005-06-14 Doug Rupp <rupp@adacore.com>
25010 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
25011 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
25012 Default_Exception_Msg_Max_Length: new parameter.
25014 * a-except.ads: (Exception_Msg_Max_Length): Set to
25015 System.Parameters.Default_Exception_Msg_Max_Length
25016 Add pragma Preelaborate_05 for AI-362
25017 Add warnings off to allow categorization violations for AI-362
25019 2005-06-14 Vincent Celier <celier@adacore.com>
25021 * gnatsym.adb: Adapt to modification of package Symbols: procedure
25022 Process is now in package Processing.
25024 * symbols.ads, symbols.adb:
25025 (Processing): New package, containing procedure Process
25027 * symbols-vms-alpha.adb:
25028 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
25030 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
25031 symbols-processing-vms-ia64.adb: New files.
25033 2005-06-14 Pascal Obry <obry@adacore.com>
25035 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
25036 implementation. This new version generates the proper DllMain routine
25037 to initialize the SAL. The DllMain is generated in Ada and compiled
25038 before being added as option to the library build command.
25040 2005-06-14 Doug Rupp <rupp@adacore.com>
25041 Pascal Obry <obry@adacore.com>
25043 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
25044 call to decc$translate_vms.
25045 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
25046 need to remove those quotes before catenating the filename.
25047 (__gnat_locate_exec_on_path): improvements to the Win32 section:
25048 * avoid allocating the memory twice for better efficiency;
25049 * allocate 32K buffer for environment expansion as suggested by MSDN;
25050 * prepend ".;" to the path so that current directory is searched too.
25052 2005-06-14 Robert Dewar <dewar@adacore.com>
25054 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
25055 instead of raising CE (AI-241)
25056 Add warnings off to allow categorization violations for AI-362
25058 2005-06-14 Robert Dewar <dewar@adacore.com>
25060 * ali-util.adb, gnatbind.adb: Remove references to
25061 Force_RM_Elaboration_Order.
25063 * switch-b.adb: Remove recognition of -f switch
25065 2005-06-14 Pascal Obry <obry@adacore.com>
25067 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
25068 implementation which is slightly more efficient.
25070 2005-06-14 Gary Dismukes <dismukes@adacore.com>
25071 Javier Miranda <miranda@adacore.com>
25072 Ed Schonberg <schonberg@adacore.com>
25073 Hristian Kirtchev <kirtchev@adacore.com>
25075 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
25076 allocator's designated type is a class-wide type, and compiling for
25077 Ada 2005, emit a run-time check that the accessibility level of the
25078 type given in the allocator's expression is not deeper than the level
25079 of the allocator's access type.
25081 (Tagged_Membership): Modified to gives support to abstract interface
25084 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
25086 (Descendant_Tag): New predefined function
25087 (Is_Descendant_At_Same_Level): New predefined function
25088 (Get_Access_Level): New private function
25089 (Set_Access_Level): New private procedure
25090 (IW_Membership): New function. Given the tag of an object and the tag
25091 associated with an interface, evaluate if the object implements the
25093 (Register_Interface_Tag): New procedure used to initialize the table of
25094 interfaces used by the IW_Membership function.
25095 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
25096 of the dispatch table.
25097 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
25098 table of interfaces of the parent.
25099 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
25100 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
25101 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
25102 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
25103 Ada 2005 semantics for the new predefined function.
25105 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
25106 call to Descendant_Tag rather than Internal_Tag.
25107 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
25108 the accessibility level of the attribute's Item parameter is not deeper
25109 than the level of the attribute's prefix type. Tag_Error is raised if
25110 the check fails. The check is only emitted for Ada_05.
25111 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
25112 requested stream attribute, use it.
25113 (Expand_N_Attribute_Reference): If the designated type is an interface
25114 then rewrite the referenced object as a conversion to force the
25115 displacement of the pointer to the secondary dispatch table.
25116 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
25117 is a dereference of an object with a constrained partial view.
25119 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
25120 type is a class-wide type, emit a run-time check that the accessibility
25121 level of the returned object is not deeper than the level of the
25122 function's master (only when compiling for Ada 2005).
25124 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
25125 Action_Nb_Arg): Add entries for new Get_Access_Level and
25126 Set_Access_Level routines in these tables.
25127 (Make_DT): Generate a call to set the accessibility level of the
25128 tagged type in its TSD.
25129 (Make_DT): Code cleanup. The functionality of generating all the
25130 secondary dispatch tables has been moved to freeze_record_type.
25131 (Make_Abstract_Interface_DT): Minor code cleanup.
25132 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
25133 this subprogram implements a new algorithm that provides the
25134 same functionality and it is more clear in case of primitives
25135 associated with abstract interfaces.
25136 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
25137 clean up, the functionality of this subprogram is now provided
25138 by Set_All_DT_Position.
25139 (Write_DT): New subprogram: a debugging procedure designed to be called
25140 within gdb to display the dispatch tables associated with a tagged
25142 (Collect_All_Interfaces): New subprogram that collects the whole list
25143 of interfaces that are directly or indirectly implemented by a tagged
25145 (Default_Prim_Op_Position): New subprogram that returns the fixed
25146 position in the dispatch table of the default primitive operations.
25147 (Expand_Interface_Actuals): New subprogram to generate code that
25148 displaces all the actuals corresponding to class-wide interfaces to
25149 reference the interface tag of the actual object.
25150 (Expand_Interface_Conversion): New subprogram. Reference the base of
25151 the object to give access to the interface tag associated with the
25152 secondary dispatch table.
25153 (Expand_Interface_Thunk): New subprogram that generates the code of the
25154 thunk. This is required for compatibility with the C+ ABI.
25155 (Make_Abstract_Interface_DT): New subprogram that generate the
25156 declarations for the secondary dispatch tables associated with an
25157 abstract interface.
25158 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
25159 attribute for each primitive operation covering interface subprograms
25160 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
25161 These subprograms were upgraded to give support to abstract interfaces
25163 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
25164 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
25165 RE_Set_Access_Level.
25166 (RE_Unit_Table): Add entries for new Ada.Tags operations.
25167 Add support to call the followig new run-time subprograms:
25168 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
25170 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
25171 match its full declaration when both have an access definition with
25172 statically matching designated subtypes.
25173 (Analyze_Component_Declaration): Delete commented out code that was
25174 incorrectly setting the scope of an anonymous access component's type.
25175 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
25176 an access discriminant when the containing type is nonlimited.
25177 (Make_Incomplete_Type_Declaration): Create an incomplete type
25178 declaration for a record type that includes self-referential access
25180 (Check_Anonymous_Access_Types): Before full analysis of a record type
25181 declaration, create anonymous access types for each self-referential
25183 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
25184 an access component in this context is a Local_Anonymous_Access, for
25185 proper accessibility checks.
25186 (Access_Definition): Set properly the scope of the anonymous access type
25187 created for a stand-alone access object.
25188 (Find_Type_Of_Object): An object declaration may be given with an access
25190 (Complete_Subprograms_Derivation): New subprogram used to complete
25191 type derivation of private tagged types implementing interfaces.
25192 In this case some interface primitives may have been overriden
25193 with the partial-view and, instead of re-calculating them, they
25194 are included in the list of primitive operations of the full-view.
25195 (Build_Derived_Record_Type): Modified to give support to private
25196 types implemening interfaces.
25197 (Access_Definition): Reject ALL on anonymous access types.
25198 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
25199 type derivation to occur at a deeper accessibility level than the
25201 For the case of derivation within a generic body however, disallow the
25202 derivation if the derived type has an ancestor that is a formal type
25203 declared in the formal part of an enclosing generic.
25204 (Analyze_Object_Declaration): For protected objects, remove the check
25205 that they cannot contain interrupt handlers if not declared at library
25207 (Add_Interface_Tag_Components): New subprogram to add the tag components
25208 corresponding to all the abstract interface types implemented by a
25209 record type or a derived record type.
25210 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
25211 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
25212 Process_Full_View, Record_Type_Declaration): Modified to give
25213 support to abstract interface types
25214 (Collect_Interfaces): New subprogram that collects the list of
25215 interfaces that are not already implemented by the ancestors
25216 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
25217 when partial view has no discriminants and full view has defaults.
25218 (Constrain_Access): Reject a constraint on a general access type
25219 if the discriminants of the designated type have defaults.
25220 (Access_Subprogram_Declaration): Associate the Itype node with the inner
25221 full-type declaration or subprogram spec. This is required to handle
25222 nested anonymous declarations.
25223 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
25224 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
25225 Process_Full_View, Record_Type_Declaration): Modified to give
25226 support to abstract interface types
25227 (Derive_Subprograms): Addition of a new formal to indicate if
25228 we are in the case of an abstact-interface derivation
25229 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
25230 to the specification because it is requied to analyze all the
25231 identifiers found in a list of interfaces
25233 * debug.adb: Complete documentation of flag "-gnatdZ"
25235 * exp_ch3.adb: Implement config version of persistent_bss pragma
25236 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
25237 testing for TSS presence to properly enforce visibility rules.
25238 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
25239 Make_Abstract_Interfaces_DT to generate the secondary tables
25240 associated with abstract interfaces.
25241 (Build_Init_Procedure): Modified to initialize all the tags
25243 (Component_Needs_Simple_Initialization): Similar to other tags,
25244 interface tags do not need initialization.
25245 (Freeze_Record_Type): Modified to give support to abstract interface
25247 (Expand_N_Object_Declaration): Do not generate an initialization for
25248 a scalar temporary marked as internal.
25250 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
25251 in-out parameter that is a component in an initialization procedure,
25252 whose constraint might depend on discriminants, and that may be
25253 misaligned because of packing or representation clauses.
25254 (Is_Legal_Copy): New predicate to determine whether a possibly
25255 misaligned in-out actual can actually be passed by copy/return. This
25256 is an error in case the type is by_reference, and a warning if this is
25257 the consequence of a DEC import pragma on the subprogram.
25258 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
25260 (Expand_Inlined_Call): Mark temporary generated for the return value as
25261 internal, so that no useless scalar normalization is generated for it.
25262 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
25263 null procedure can always be inlined.
25264 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
25265 procedure, generate an explicit empty body for it.
25267 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
25268 Given a type implementing an interface, returns the corresponding
25269 access_disp_table value.
25270 (Find_Interface_Tag): New subprogram. Given a type implementing an
25271 interface, returns the record component containing the tag of the
25273 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
25274 previous ones that return the corresponding tag and access_disp_table
25276 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
25277 is a predefined primitive operation.
25278 (Expand_Subtype_From_Expr): If the expression is a selected component
25279 within an initialization procedure, compute its actual subtype, because
25280 the component may depend on the discriminants of the enclosing record.
25282 * i-cpp.ads, i-cpp.adb:
25283 This package has been left available for compatibility with previous
25284 versions of the frontend. As part of the new layout this is now a
25285 dummy package that uses declarations available at a-tags.ads
25287 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
25288 "constant access" and "aliased [constant] access" when not compiling
25290 Suppress Ada 2005 keyword warning if -gnatwY used
25291 (P_Identifier_Declarations): Add support for object declarations with
25292 access definitions.
25293 (Private_Extension_Declaration): Complete the documentation
25294 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
25295 attribute in case of private extension declaration
25296 (P_Type_Declaration): Mark as "abstract" the type declarations
25297 corresponding with protected, synchronized and task interfaces
25298 (P_Declarative_Items): "not" and "overriding" are overriding indicators
25299 for a subprogram or instance declaration.
25301 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
25302 instantiation that is a dispatching operation has controlling access
25303 parameters that are null excluding.
25304 Save and restore Ada_Version_Explicit, for implementation of AI-362
25305 (Validate_Derived_Type_Instance): Add check for abstract interface
25307 (Analyze_Formal_Package): Establish Instantiation source for the copy of
25308 the generic that is created to represent the formal package.
25309 (Analyze_Package_Instantiation): Instantiate body immediately if the
25310 package is a predefined unit that contains inlined subprograms, and
25311 we are compiling for a Configurable_Run_Time.
25312 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
25313 If the program has a null default, generate an empty body for it.
25315 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
25316 error message condition, null procedures are correctly detected now.
25317 (New_Overloaded_Entity): Bypass trivial overriding indicator check
25318 for subprograms in the context of protected types. Instead, the
25319 indicator is examined in Sem_Ch9 while analysing the subprogram
25321 (Check_Overriding_Indicator): Check consistency of overriding indicator
25322 on subprogram stubs as well.
25323 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
25325 (Analize_Subprogram_Specification): When analyzing a subprogram in which
25326 the type of the first formal is a concurrent type, replace this type
25327 by the corresponding record type.
25328 (Analyze_Subprogram_Body): Undo the previous work.
25329 (Analyze_Procedure_Call): If the call has the form Object.Op, the
25330 analysis of the prefix ends up analyzing the call itself, after which
25332 (Has_Interface_Formals): New subprogram subsidiary to analyze
25333 subprogram_specification that returns true if some non
25334 class-wide interface subprogram is found
25335 (New_Overloaded_Entity): Modified to give support to abstract
25337 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
25338 access to subprograms must be recursive.
25339 (Is_Unchecked_Conversion): Improve the test that recognizes
25340 instantiations of Unchecked_Conversion, and allows them in bodies that
25341 are to be inlined by the front-end. When the body comes from an
25342 instantiation, a reference to Unchecked_Conversion will be an
25343 Expanded_Name, even though the body has not been analyzed yet.
25344 Replace Is_Overriding and Not_Overriding in subprogram_indication with
25345 Must_Override and Must_Not_Override, to better express intent of AI.
25346 (Analyze_Subprogram_Body): If an overriding indicator is given, check
25347 that it is consistent with the overrinding status of the subprogram
25349 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
25351 If the subprogram is a null procedure, indicate that it does not need
25354 * sem_disp.adb (Check_Controlling_Type): Give support to entities
25355 available through limited-with clauses.
25356 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
25357 allowed as the last primitive of a tagged type if it has no previous
25359 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
25360 to give support to abstract interface types
25362 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
25363 in the case where the target type is an anonymous access type of an
25364 object or component (that is, when Is_Local_Anonymous_Access is true).
25365 Prevent the special checks for conversions of access discriminants in
25366 the case where the discriminant belongs to a nonlimited type, since
25367 such discriminants have their accessibility level defined in the same
25368 way as a normal component of an anonymous access type.
25369 (Resolve_Allocator): When an allocator's designated type is a class-wide
25370 type, check that the accessibility level of type given in the
25371 allocator's expression or subtype indication is not statically deeper
25372 than the level of the allocator's access type.
25373 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
25374 name in a discriminant constraint of a record component.
25375 (Resolve_Explicit_Dereference): Do not check whether the type is
25376 incomplete when the dereference is a use of an access discriminant in
25377 an initialization procedure.
25378 (Resolve_Type_Conversion): Handle conversions to abstract interface
25380 (Valid_Tagged_Conversion): The conversion of a tagged type to an
25381 abstract interface type is always valid.
25382 (Valid_Conversion): Modified to give support to abstract interface types
25383 (Resolve_Actuals): Enable full error reporting on view conversions
25384 between unrelated by_reference array types.
25385 The rule for view conversions of arrays with aliased components is
25386 weakened in Ada 2005.
25387 Call to obsolescent subprogram is now considered to be a violation of
25388 pragma Restrictions (No_Obsolescent_Features).
25389 (Check_Direct_Boolean_Operator): If the boolean operation has been
25390 constant-folded, there is nothing to check.
25391 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
25392 check on possible violation of restriction No_Direct_Boolean_Operators
25393 until after expansion of operands, to prevent spurious errors when
25394 operation is constant-folded.
25396 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
25397 Has_Compatible_Type): Modified to give support to abstract interface
25399 (Interface_Present_In_Ancestor): New function to theck if some ancestor
25400 of a given type implements a given interface
25402 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
25403 prefix is a parameterless function that returns an access_to_procedure.
25404 (Transform_Object_Operation): Handle properly function calls of the
25405 form Obj.Op (X), which prior to analysis appear as indexed components.
25406 (Analyze_One_Call): Complete the error notification to help new Ada
25408 (Analyze_Allocator): For an allocator without an initial value, where
25409 the designated type has a constrained partial view, a discriminant
25410 constraint is illegal.
25412 2005-06-14 Robert Dewar <dewar@adacore.com>
25414 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
25415 do with treatment of Set_Col when positioned at end of line character.
25417 2005-06-14 Robert Dewar <dewar@adacore.com>
25419 * atree.adb: (Elist*): Protect against uninitialized field
25421 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25423 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
25424 for an attribute reference that returns an access type.
25425 (Apply_Discriminant_Check): No need for check if (designated) type has
25426 constrained partial view.
25428 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
25429 both bound checks, rather than a conjunction.
25430 (Insert_Valid_Check): If the expression is an actual that is an indexed
25431 component of a bit-packed array, force expansion of the packed element
25432 reference, because it is specifically inhibited elsewhere.
25434 2005-06-14 Vincent Celier <celier@adacore.com>
25436 * clean.adb (Clean_Project): Correctly delete executable specified as
25437 absolute path names.
25439 * make.adb (Gnatmake): Allow relative executable path names with
25440 directory information even when project files are used.
25441 (Change_To_Object_Directory): Fail gracefully when unable to change
25442 current working directory to object directory of a project.
25443 (Gnatmake): Remove exception handler that could no longer be exercized
25444 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
25445 may be deallocated by Normalize_Arguments.
25446 (Collect_Arguments): Eliminate empty arguments
25448 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
25449 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
25450 (Check_Project): Return False when Project is No_Project. Return True
25451 when All_Projects is True.
25452 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
25453 All_Projects to True.
25456 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25457 Javier Miranda <miranda@adacore.com>
25458 Thomas Quinot <quinot@adacore.com>
25459 Robert Dewar <dewar@adacore.com>
25460 Hristian Kirtchev <kirtchev@adacore.com>
25461 Gary Dismukes <dismukes@adacore.com>
25463 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
25464 anonymous access types, to indicate that the accessibility level of
25465 the type is determined by that of the enclosing declaration.
25466 (Has_Persistent_BSS): New flag
25467 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
25468 of this attribute with functions.
25469 (Is_Primitive_Wrapper): Remove the barrier.
25470 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
25471 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
25473 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
25474 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
25476 (Is_Pure_Unit_Access_Type): New flag
25477 (Abstract_Interfaces): Complete the assertion to cover all usages.
25478 (Set_Is_Interface): Complete the assertion to cover all usages.
25479 (Is_Primitive_Wrapper): New attribute.
25480 (Is_Obsolescent): Now applies to all entities (though it is only set
25481 for subprograms currently)
25482 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
25483 which solves various problems concerning access subtypes.
25484 (Has_Persistent_BSS): New flag
25485 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
25486 Remove these subprograms because this attribute is currently
25489 Has_Specified_Stream_Input (Flag190)
25490 Has_Specified_Stream_Output (Flag191)
25491 Has_Specified_Stream_Read (Flag192)
25492 Has_Specified_Stream_Write (Flag193)
25493 Present in all type and subtype entities. Set for a given view if the
25494 corresponding stream-oriented attribute has been defined by an
25495 attribute definition clause. When such a clause occurs, a TSS is set
25496 on the underlying full view; the flags are used to track visibility of
25497 the attribute definition clause for partial or incomplete views.
25498 (Is_Pure_Unit_Access_Type): New flag
25499 Clarify use of Is_Internal.
25500 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
25501 internally generated to wrap the invocation of tasks and protected
25502 types that implement interfaces.
25503 (Implementation_Base_Type): Documentation correction
25504 (Is_Obsolescent): Now applies to all entities (though it is only set
25505 for subprograms currently)
25506 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
25507 which solves various problems concerning access subtypes.
25509 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
25510 for examined parameters. Identify unequal parameter list lengths as
25511 non-conformant parameters.
25512 (Overriding_Possible): Do not check for "All" qualifier in declaration
25513 of controlling access parameter, following prescription of AI-404.
25514 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
25515 that build the procedure body that wraps an entry invocation
25516 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
25517 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
25518 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
25519 give support to abstract interface types
25521 * freeze.adb (Freeze_Entity): Issue error message if
25522 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
25523 type has no storage pool (Ada 2005) AI-366.
25524 Also modified to give support to abstract interface types
25525 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
25526 Inline_Always pragma.
25528 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
25529 now begin an entry declaration.
25530 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
25531 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
25532 a subprogram declaration preceded by an overriding indicator.
25533 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
25534 declarations or subprogram declarations preceded by reserved words
25535 "not" or "overriding".
25536 (P_Entry_Declaration): Update comment. Parse and check overriding
25537 indicator, set semantic flags of entry declarations.
25538 (P_Task): New error message in case of private applied
25539 to a task type declaration.
25540 (P_Protected): New error message in case of private applied
25541 to a task type declaration.
25543 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
25544 in which the full view of a type implementing an interface is a
25546 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
25547 Declare_Inherited_Private_Subprograms): If an explicit operation
25548 overrides an operation that is inherited in the private part, mark the
25549 explicit one as overriding, to enable overriding indicator checks.
25550 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
25551 full view to partial view, to simplify handling in back-end.
25553 * sprint.adb: Print interface lists where needed: derived types,
25554 protected types, task types.
25555 output "is null" for null procedures. Part of implementation of
25557 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
25558 relaxation of rules for access types in pure, shared passive partitions.
25560 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
25561 first read discriminants into temporary objects, performing checks on
25562 the read values, then possibly performing discriminant checks on the
25563 actual (if it is constrained), and only finally reading the components
25564 into a constrained temporary object.
25565 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
25566 case of reading discriminants of a mutable record type to recognize
25567 the new form of the code generated by
25568 Build_Mutable_Record_Read_Procedure.
25570 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
25571 of a simple call to Make_TSS_Name.
25572 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
25573 buffer, in order for Is_TSS to work correctly on local TSS names.
25575 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
25576 Is_Local_Anonymous_Access to check legaliy of attributes in the
25577 context of access components and stand-alone access objects.
25578 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
25579 treated as available for a limited private type if there is an
25580 attribute_definition_clause that applies to its full view, but not in
25581 other cases where the attribute is available for the full view
25582 (specifically, the sole fact that the full view is non-limited does not
25583 make the attribute available for the partial view).
25584 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
25585 non-overloaded intrinsic subprogram.
25586 (Check_Stream_Attribute): Reject an attribute reference for an
25587 unavailable stream attribute even if the prefix is not a limited type
25588 (case of a 'Input attribute reference for an abstract, non-classwide
25590 (Stream_Attribute_Available): New function to determine whether a stream
25591 attribute is available at a place.
25592 (Check_Attribute): Use Stream_Attribute_Available instead of just
25593 testing for TSS presence on the implementation base type.
25594 (Analyze_Attribute): Modified to give support to task interfaces.
25595 (Analyze_Access_Attribute): Add error check for use of an Access (or
25596 Unrestricted_Access) attribute with a subprogram marked as
25598 (Analyze_Attribute, case Attribute_Address): Add error check for use of
25599 an Address attribute with a subprogram marked as Inline_Always.
25600 Update Eval_Attribute to handle new value of Width from AI-395
25602 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
25603 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
25604 Factor common code across the stream-oriented attribute circcuits into
25605 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
25606 processing is functionally identical to the previous duplicated one,
25607 except that an expression that denotes an abstract subprogram will now
25608 be rejected, as mandated by AI-195 item 5.
25610 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
25611 Is_Local_Anonymous_Access to apply accessibility checks to access
25612 components and stand-alone access objects.
25613 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
25615 (Is_Potentially_Persistent_Type): New function
25616 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
25617 a heap-object whose type has a constrained partial view, the object is
25618 unconstrained and the component may depend on a discriminant, making its
25621 * sinfo.ads, sinfo.adb
25622 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
25623 (Must_Override): Flag applicable to N_Entry_Declaration.
25624 Indicate that interface_list can appear in single task and single
25625 protected declarations.
25626 Replace Is_Overriding and Not_Overriding with Must_Override and
25627 Must_Not_Override, to better express intent of AI.
25628 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
25629 of an overriding indicator in a subprogram or instance.
25630 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
25631 Add the overriding indicator [[not] overriding] construct to the
25632 following grammar productions:
25634 GENERIC_INSTANTIATION
25635 SUBPROGRAM_SPECIFICATION
25637 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
25638 can start with an overriding indicator.
25640 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
25641 flags accordingly on subrogram specifications or instances.
25644 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
25645 overriding_indicator, if present, is consistent with status of spec.
25646 Improve error message for null-excluding checks on controlling access
25648 (Check_In_Previous_With_Clause): Protect the frontend against
25649 previously reported critical errors in the context clauses.
25650 Save and restore Ada_Version_Explicit, for implementation of AI-362
25651 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
25652 operation verify that controlling formals of the renamed entity that
25653 are access parameters are explicitly non-null.
25654 (Find_Expanded_Name): Improve error message when prefix is an illegal
25655 reference to a private child unit.
25657 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
25658 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
25659 Rewrite to correspond to new wide character names in AI-395
25661 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
25662 default procedures.
25664 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25665 Robert Dewar <dewar@adacore.com>
25667 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
25668 code, not on the bodies of predefined operations, to cut down on
25671 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25673 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
25674 be expanded in place. The size computation does not require a
25675 subtraction, which would raise an exception on a compiler built with
25676 assertions when the upper bound is Integer'first.
25677 (Flatten): For an array of composite components, take into account the
25678 size of the components to determine whether it is safe to expand the
25679 array into a purely positional representation.
25681 2005-06-14 Thomas Quinot <quinot@adacore.com>
25683 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
25684 denoting a formal parameter into account.
25686 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25688 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
25689 the entry_call alternative of a conditional entry call, wrap the
25690 conditional entry call itself.
25692 2005-06-14 Nicolas Setton <setton@adacore.com>
25693 Ed Schonberg <schonberg@adacore.com>
25695 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
25696 the "simple_choice" member in a variant record, in accordance with the
25697 description in the package spec: the information output for a constant
25698 should be "S number", not "SS number".
25699 (Get_Encoded_Name): Return at once if not generating code. Avoids name
25700 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
25702 2005-06-14 Thomas Quinot <quinot@adacore.com>
25704 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
25705 RACW without any primitives, do not generate the if statement for
25706 dispatching by name in the PolyORB/DSA case, as it would be malformed
25707 (it would have an Elsif_Parts list that is not No_List, but with a
25710 2005-06-14 Robert Dewar <dewar@adacore.com>
25712 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
25714 2005-06-14 Jose Ruiz <ruiz@adacore.com>
25716 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
25717 can determine whether pragma Suppress_Exception_Locations is in effect.
25719 * utils2.c (build_call_raise): Do not pass the file name to the
25720 exception handler if pragma Suppress_Exception_Locations is in effect.
25721 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
25723 2005-06-14 Emmanuel Briot <briot@adacore.com>
25725 * g-debpoo.adb (Deallocate, Dereference): Improve output.
25727 2005-06-14 Nicolas Roche <roche@adacore.com>
25729 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
25731 (Next_Level): Fix minor bug in handling of ../dir case
25732 (Read): Add dir separator to Directory name so that "" is understood as
25735 2005-06-14 Pascal Obry <obry@adacore.com>
25737 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
25738 releasing the items.
25740 2005-06-14 Vincent Celier <celier@adacore.com>
25741 Cyrille Comar <comar@adacore.com>
25743 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
25744 with output file descriptor and with output file name.
25745 (Dup, Dup2): Now global procedures as they are used by two subprograms
25746 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
25748 2005-06-14 Thomas Quinot <quinot@adacore.com>
25751 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
25753 (Create_Selector): Bind listening socket used to create the signalling
25754 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
25755 Set listen backlog to 1 to ensure that we detect socket theft by a
25756 failure of our own connect(2) call.
25757 (Check_Selector): Improve documentation of the selector mechanism.
25758 (Broadcast_Inet_Addr): New constant.
25760 2005-06-14 Gary Dismukes <dismukes@adacore.com>
25762 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
25763 type which turns out to be an incomplete and incorrect fix.
25764 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
25765 of the type is declared in a record (for determination of insertion
25767 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
25768 a private type and ensure that the primary entity is used for the type
25769 of the newly created function's V formal by taking the Etype of the
25772 2005-06-14 Javier Miranda <miranda@adacore.com>
25773 Jose Ruiz <ruiz@adacore.com>
25774 Robert Dewar <dewar@adacore.com>
25775 Ed Schonberg <schonberg@adacore.com>
25777 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
25778 that indicates if we are parsing a compilation unit found in a
25779 limited-with clause.
25780 It is use to avoid the circularity check.
25782 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
25783 we are parsing a compilation unit found in a limited-with clause. This
25784 is use to avoid the circularity check.
25786 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
25787 unit as a consequence of parsing a limited-with clause. This is used
25788 to avoid the circularity check.
25790 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
25791 (Analyze_Context): Limited-with clauses are now allowed
25792 in more compilation units.
25793 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
25794 againts previously reported critical errors in context clauses
25795 (Install_Limited_Withed_Unit): Code cleanup plus static detection
25796 of two further errors: renamed subprograms and renamed packages
25797 are not allowed in limited with clauses.
25798 (Install_Siblings): Do not install private_with_clauses on the package
25799 declaration for a non-private child unit.
25800 (Re_Install_Parents): When a parent of the subunit is reinstalled,
25801 reset visibility of child units properly.
25802 (Install_Withed_Unit): When a child unit appears in a with_clause of its
25803 parent, it is immediately visible.
25805 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25806 Emmanuel Briot <briot@adacore.com>
25808 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
25809 declared within an inlined body as referenced, to prevent spurious
25811 (Output_One_Ref): If an entity renames an array component, indicate in
25812 the ALI file that this aliases (renames) the array. Capture as well
25813 function renamings that rename predefined operations.
25814 Add information about generic parent for package and subprogram
25816 (Get_Type_Reference): For a subtype that is the renaming of an actual in
25817 an instantiation, use the first_subtype to ensure that we don't generate
25818 cross-reference information for internal types.
25819 For objects and parameters of a generic private type, retain the '*'
25820 indicator to distinguish such an entity from its type.
25822 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
25823 to store information about instantiated entities.
25825 * ali.adb (Scan_ALI): Add support for parsing the reference to the
25828 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
25829 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
25832 2005-06-10 Doug Rupp <rupp@adacore.com>
25833 Arnaud Charlet <charlet@adacore.com>
25834 Olivier Hainque <hainque@adacore.com>
25835 Jose Ruiz <ruiz@adacore.com>
25837 * Make-lang.in: Add initialize.o when needed.
25838 Remove obsolete references to RT_FLAGS.
25839 Add missing dependencies for sdefault.o
25841 * initialize.c: New file.
25843 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
25844 [VMS] cond_signal_table: Fix problem in declaration.
25845 [VMS] __gnat_error_handler: rewrite.
25846 Move all __gnat_initialize() routines to initialize.c
25847 Specialize the former "hpux" section to "hppa hpux", as this is what the
25848 section really is here for and we now have other hpux ports that need
25849 different contents.
25850 (__gnat_adjust_context_for_raise) i386-linux: First version of this
25851 function for this target. Adjust PC by one in the machine context. This
25852 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
25853 it is more reliable to do that in the signal handler itself.
25854 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
25855 flags, so that the handler is passed the context structure to adjust
25856 prior to the raise.
25857 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
25858 SA_SIGINFO sigaction should look like. Call
25859 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
25860 Machine_State_Operations stuff.
25861 Add conditional code so that the x86_64 is also supported.
25863 2005-06-14 Pascal Obry <obry@adacore.com>
25865 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
25868 2005-06-14 Robert Dewar <dewar@adacore.com>
25870 * opt.ads, opt.adb: New flags for persistent_bss mode
25871 Add Ada_Version_Explicit, for implementation of AI-362
25872 Add Assertions_Enabled_Config and associated handling
25873 Needed since setting can be changed with Assertion_Policy pragma
25874 Add new flag Warn_On_Ada_2005_Compatibility
25876 * switch-c.adb: Recognize -gnatwy/Y
25877 Set Ada_Version_Explicit, for implementation of AI-362
25878 The -gnatg switch now includes -gnatyu
25880 * usage.adb: Add -gnatwy/Y
25881 Remove wrong asterisk on -gnatwX line
25882 Add line for -gnatyu switch
25884 2005-06-14 Vincent Celier <celier@adacore.com>
25886 * osint.adb (Add_Default_Search_Dirs): Put source and object
25887 directories of project files before directories coming from
25888 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
25890 2005-06-14 Robert Dewar <dewar@adacore.com>
25893 * par-ch2.adb (Scan_Pragma_Argument): New procedure
25894 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
25896 2005-06-14 Vincent Celier <celier@adacore.com>
25898 * prep.adb (Preprocess): Ignore error when scanning the first token of
25901 2005-06-14 Vincent Celier <celier@adacore.com>
25903 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
25904 (Check_Stand_Alone_Library): If the specified reference symbol file does
25905 not exist, only issue a warning when the symbol policy is not
25906 Controlled. And, when symbol policy is Compliant, set the symbol
25907 policy to Autonomous.
25909 2005-06-14 Vincent Celier <celier@adacore.com>
25911 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
25912 when the project file in a with clause is not the last one, that is the
25913 project file name is followed by a comma.
25914 * prj-pp.adb: (First_With_In_List): New Boolean global variable
25915 (Print): Issue list of project files separated by commas in with clauses
25916 according to the values returned by Is_Not_Last_In_List.
25917 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
25918 (Set_Is_Not_Last_In_List): New procedure
25920 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
25922 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
25924 2005-06-14 Robert Dewar <dewar@adacore.com>
25926 * scng.adb: Add call to new Check_EOF routine
25927 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
25928 Add some comments regarding wide character handling
25930 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
25932 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
25934 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
25935 characters are now considered graphic characters and hence yield false
25938 * nmake.adt: Modify header so that xnmake does not generate output
25939 files with multiple blank lines.
25941 * treeprs.adt: Remove a blank line so that output from xtreeprs does
25942 not have an extra blank line
25944 2005-06-14 Gary Dismukes <dismukes@adacore.com>
25946 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
25947 expression when the component type is an anonymous access type to
25948 ensure that appropriate accessibility checks are done.
25950 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
25951 expression of an assignment when the target object is of an anonymous
25952 access type. This ensures that required accessibility checks are done.
25953 (One_Bound): Move the check for type Universal_Integer to
25955 (Process_Bounds): Check whether the type of the preanalyzed range is
25956 Universal_Integer, and in that case set Typ to Integer_Type prior
25957 to setting the type of the original range and the calls to One_Bound.
25959 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25961 * sem_case.adb (Expand_Others_Choice): Improve warning.
25963 2005-06-14 Ed Schonberg <schonberg@adacore.com>
25965 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
25966 constraint of full view if present, when other type is discriminated.
25967 (Eval_Relational_Op): Recognize tests of pointer values against Null,
25968 when the pointer is known to be non-null, and emit appropriate warning.
25970 2005-06-14 Robert Dewar <dewar@adacore.com>
25971 Ed Schonberg <schonberg@adacore.com>
25974 * sem_prag.adb: Implement pragma Persistent_BSS
25975 Remove obsolete pragma Persistent_Data, Persistent_Object
25976 Set Ada_Version_Explicit, for implementation of AI-362
25977 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
25978 Add processing for pragma Pure_05 and Preelaborate_05
25979 Add processing for Assertion_Policy pragma
25980 Add pragma identifiers for Assert
25981 (Analyze_Pragma, case Assert): Check number of arguments
25982 (Process_Inline): Additional guard against an illegal program, where the
25983 argument of the pragma is undefined, and warnings on redundant
25984 constructs are enabled.
25985 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
25986 Ada_05 to this pragma, specifying that the pragma is only active in
25988 (Check_Arg_Order): New procedure
25989 Add appropriate calls to this procedure throughout
25990 Also throughout, check entity name before doing any other checks
25992 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
25993 Remove obsolete pragma Persistent_Data, Persistent_Object
25994 Add entries for pragma Pure_05 and Preelaborate_05
25995 Add entries for Assertion_Policy pragma and associated names
25996 Add some names for pragma argument processing
25998 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
26000 2005-06-14 Ed Schonberg <schonberg@adacore.com>
26002 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
26003 appears within a negation (either from source or as a rewriting of
26004 inequality) adjust text of warning accordingly.
26006 2005-06-14 Thomas Quinot <quinot@adacore.com>
26008 * s-strxdr.adb: Follow AI95-00132
26010 2005-06-14 Arnaud Charlet <charlet@adacore.com>
26012 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
26014 2005-06-14 Arnaud Charlet <charlet@adacore.com>
26015 Jose Ruiz <ruiz@adacore.com>
26017 * s-tposen.adb, s-tpobop.adb
26018 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
26020 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
26021 there is no violation of the Max_Entry_Queue_Length restriction (if it
26022 has been set); Program_Error is raised otherwise.
26023 (Requeue_Call): Before requeuing the task on the target entry queue we
26024 check that there is no violation of the Max_Entry_Queue_Length
26025 restriction (if it has been set); Program_Error is raised otherwise.
26027 2005-06-14 Robert Dewar <dewar@adacore.com>
26029 * styleg.adb: Fix several remaining problems in -gnatyu switch
26030 Blank line count not reset at start
26031 Scanning outside source buffer in some cases
26032 Confusing message for blanks at end of file
26033 Non-empty blank lines not recognized
26035 * nmake.adt: Modify header so that xnmake does not generate output
26036 files with multiple blank lines.
26038 * treeprs.adt: Remove a blank line so that output from xtreeprs does
26039 not have an extra blank line
26041 2005-06-14 Sergey Rybin <rybin@adacore.com>
26043 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
26045 2005-06-14 Doug Rupp <rupp@adacore.com>
26046 Vincent Celier <celier@adacore.com>
26048 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
26051 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
26052 Remove "Library" command.
26053 Change keyword for style check -gnatyd from NOCRLF to
26055 Remove useless second style check keyword NONE
26056 Remove help documentation for inexistent style check keyword
26058 Add help documentation for style check keywords DOS_LINE_ENDINGS,
26059 UNNECESSARY_BLANK_LINES and XTRA_PARENS
26060 Add UNNECESSARY_BLANK_LINES for -gnatyu
26061 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
26063 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
26065 2005-06-14 Vincent Celier <celier@adacore.com>
26067 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
26068 gprmake was invoked with -d.
26069 (Compile_Sources): If -d was used, output the "completed ..." message
26070 for each compilation.
26071 (Scan_Arg): Recognize new switch -d
26072 When -c and at least one main is specified, set
26073 Unique_Compile to True to guarantee that no other sources will be
26076 2005-06-14 Matthew Heaney <heaney@adacore.com>
26078 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
26079 * a-swuwha.ads, a-swuwha.adb: New files
26081 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
26082 * a-szuzha.ads, a-szuzha.adb: New files.
26084 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
26085 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
26086 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
26087 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
26088 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
26089 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
26090 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
26091 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
26092 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
26093 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
26096 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
26097 Olivier Hainque <hainque@adacore.com>
26098 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26099 Pascal Obry <obry@adacore.com>
26101 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
26103 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
26104 making a temporary around a procedure call because of non-addressable
26106 (process_freeze_entity): If entity is a private type, capture size
26107 information that may have been computed for the full view.
26108 (tree_transform, case N_Allocator): If have initializing expression,
26109 check type for Has_Constrained_Partial_View and pass that to
26111 (tree_transform, case N_Return_Statement): Pass extra arg to
26114 * decl.c (annotate_value): Remove early return if -gnatR is not
26116 (gnat_to_gnu_field): Don't make a packable type for a component clause
26117 if the position is byte aligned, the field is aliased, and the clause
26118 size isn't a multiple of the packable alignment. It serves no useful
26119 purpose packing-wise and would be rejected later on.
26120 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
26123 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
26124 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
26126 (create_concat_name): Idem.
26128 2005-06-10 Robert Dewar <dewar@adacore.com>
26129 Eric Botcazou <ebotcazou@adacore.com>
26130 Ben Brosgol <brosgol@adacore.com>
26131 Cyrille Comar <comar@adacore.com>
26132 Sergey Rybin <rybin@adacore.com>
26133 Pascal Obry <obry@adacore.com>
26135 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
26136 Document second argument (Ada_05) of pragma Obsolescent
26137 Add note that call to subprogram marked with pragma Obsolescent
26138 is now considered to be a violation of program Restrictions
26139 (No_Obsolescent_Features).
26140 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
26141 that only machine-dependent attributes are supported.
26144 Commented out menu lines and empty section for gnatclean examples
26146 Fix some over long lines
26147 Clarify and enhance documentation of ADA_PROJECT_PATH.
26148 Rework section 2.11.2(3) about linking with a non-GNU compiler.
26149 Mention new switch -fcallgraph-info.
26150 Mention new switch -fstack-usage.
26151 For gnatpp, replace '-notab' with '-N' and add this option to Index
26152 Corrected VMS example.
26153 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
26155 Add documentation for -gnatyu switch (unnecessary blank lines)
26156 Document new switch -U for GNAT PRETTY and GNAT METRIC
26157 Add note about Stdcall being handled as C convention on non Windows OS.
26158 Remove some junk typo in description of gnatbind -S switch
26159 Remove reference to Extensions_Allowed pragma
26160 Document the new order of the directories to be searched (source and
26161 object directories of project files before directories in ADA_*_PATH
26162 environment variables.
26164 * g-trasym.ads: Document that IRIX is supported
26166 2005-06-10 Arnaud Charlet <charlet@adacore.com>
26168 * Makefile.in: Add initialize.o when needed.
26169 Adapt to new VMS package body Symbols and subunits
26170 No specialized version of a-sytaco is needed for VxWorks.
26172 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
26173 * a-zchara.ads, a-widcha.ads: New files.
26175 * system-hpux-ia64.ads: New file.
26177 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
26178 is imported from the VxWorks kernel.
26180 2005-06-14 Robert Dewar <dewar@adacore.com>
26182 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
26183 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
26184 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
26185 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
26186 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
26187 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
26188 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
26189 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
26190 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
26191 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
26192 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
26193 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
26195 2005-06-14 Thomas Quinot <quinot@adacore.com>
26197 * xeinfo.adb: Fix typo in comment
26199 2005-06-14 Javier Miranda <miranda@adacore.com>
26201 * repinfo.ads: Fix typo in comment
26203 2005-06-14 Gary Dismukes <dismukes@adacore.com>
26205 * s-finimp.adb (Parent_Tag): Delete this imported function (function
26206 Parent_Tag is now in the visible part of Ada.Tags).
26207 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
26208 using imported function.
26210 2005-06-14 Bernard Banner <banner@adacore.com>
26212 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
26213 also apply for handling support for VxSim 653.
26215 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
26217 * xsnames.adb: Add automatic generation of snames.h.
26219 2005-06-14 Thomas Quinot <quinot@adacore.com>
26221 * gen-soccon.c: Add IP_MULTICAST_IF constant
26222 Minor reformatting and adjustments to prevent warnings.
26224 2005-06-14 Pascal Obry <obry@adacore.com>
26226 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
26228 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
26230 * trans.c (gnat_gimplify_expr): Call
26231 recompute_tree_invarant_for_addr_expr when we change
26232 the operand of the ADDR_EXPR.
26234 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26236 * misc.c: Don't include errors.h.
26238 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26240 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
26242 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
26244 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
26246 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
26248 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
26251 * Makefile.in: Make TGT_LIB behave correctly.
26253 2005-04-23 DJ Delorie <dj@redhat.com>
26255 * misc.c: Adjust warning() callers.
26257 2005-04-16 Laurent Guerby <laurent@guerby.net>
26260 * a-nudira.adb (Value): Check for valid string.
26261 * a-nuflra.adb (Value): Likewise.
26263 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
26265 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
26267 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
26269 * adaint.c, init.c, tracebak.c: Fix comment typos.
26270 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
26272 2005-04-07 Laurent Guerby <laurent@guerby.net>
26273 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
26275 * Makefile.in: Add make ifeq define for hppa linux tasking support.
26276 * system-hpux.ads: Define Signed_Zeros to be True.
26277 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
26279 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
26281 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
26282 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
26285 2005-03-30 Tom Tromey <tromey@redhat.com>
26287 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
26289 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
26291 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
26293 2005-03-29 Robert Dewar <dewar@adacore.com>
26295 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
26296 fixed-point expression has value that is not a multiple of the Small
26299 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
26301 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
26304 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
26306 2005-03-29 Vincent Celier <celier@adacore.com>
26308 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
26309 (Build_Dynamic_Library.Version_String): Return the empty string when
26310 Lib_Version is empty or when the symbol policy is not Autonomous.
26312 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
26313 a symbol is not in the reference symbol file, increase the Major ID
26314 and set the Minor ID to 0.
26315 Use gsmatch=lequal instead of gsmatch=equal
26317 2005-03-29 Doug Rupp <rupp@adacore.com>
26319 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
26320 name and translate.
26322 2005-03-29 Javier Miranda <miranda@adacore.com>
26324 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
26325 (Inherit_DT): The first formal has been redefined as a Tag.
26326 This allows us the removal of the subprogram Get_TSD.
26327 (TSD): Replace the call to Get_TSD by the actual code.
26329 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
26330 (Make_DT): Upgrade the call to Inherit_TSD according to the
26331 new interface: the first formal is now a Tag.
26333 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
26334 redefined as a Tag.
26335 This change allows us to remove the subprogram Get_TSD.
26336 (CPP_Get_TSD): Subprogram removed.
26337 (TSD): Replace the call to CPP_Get_TSD by the actual code.
26339 * rtsfind.ads: Remove support to call the run-time
26342 2005-03-29 Robert Dewar <dewar@adacore.com>
26344 * errutil.adb, errout.adb:
26345 Minor comment updates on Line_Terminator references
26347 * par-ch10.adb: Add ??? comment about line terminator
26349 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
26350 (check dos line terminator).
26351 (Check_Line_Max_Length): New procedure, split off from the existing
26352 Check_Line_Terminator routine. Separating this out allows -gnatyf to
26353 be properly recognized.
26355 * styleg.adb: Add ??? comment for line terminator reference
26357 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
26358 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
26360 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
26361 (check dos line terminator).
26362 (Check_Line_Max_Length): New procedure, split off from the existing
26363 Check_Line_Terminator routine. Separating this out allows -gnatyf to
26364 be properly recognized.
26366 * stylesw.ads, stylesw.adb:
26367 Add handling for new -gnatyd switch (check dos line terminator)
26369 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
26370 Recognize -gnatwb/-gnatwB switches
26371 Include Warn_On_Bad_Fixed_Value for -gnatg
26374 Add line for new -gnatyd switch (check dos line terminator)
26376 * usage.adb: Add lines for -gnatwb/-gnatwB
26378 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
26380 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
26382 * gnat_ugn.texi: Fix overlong lines
26383 Document new -gnatyd switch
26384 Document new -gnatwb/-gnatwB switches
26386 2005-03-29 Ed Schonberg <schonberg@adacore.com>
26388 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
26389 order to retrieve the component list of the type, before examining
26390 individual components.
26392 * sem_type.adb (Covers): Types are compatible if one is the base type
26393 of the other, even though their base types might differ when private
26394 views are involved.
26396 2005-03-29 Thomas Quinot <quinot@adacore.com>
26398 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
26399 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
26400 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
26401 analyzed if expansion is disabled (which could otherwise cause spurious
26402 error messages if expansion has been disabled due to previous
26403 (unrelated) errors).
26405 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
26406 is disabled, the entity denoted by the argument is the access type
26407 itself, not an underlying record type, so there is no need to go back
26408 to the Corresponding_Remote_Type.
26410 2005-03-29 Gary Dismukes <dismukes@adacore.com>
26411 Robert Dewar <dewar@adacore.com>
26413 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
26414 expand a call to an instance of
26415 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
26416 Constructor actual of the instance. A class-wide membership
26417 check is also generated, to ensure that the tag passed to the instance
26418 denotes a type in the class.
26419 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
26420 of Name_Generic_Dispatching_Constructor.
26422 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
26423 05 unit for AI-260-02).
26425 * a-tgdico.ads: New file.
26427 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
26428 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
26430 * snames.ads, snames.adb (Preset_Names): Add entry for
26431 Generic_Dispatching_Constructor.
26434 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
26435 character type cases.
26436 (Analyze_Subprogram_Renaming): Add special handling for
26437 the case of renaming of stream attributes when the renaming denotes a
26438 generic formal subprogram association for an abstract formal subprogram.
26439 Check that the attribute is a primitive stream attribute (and not
26440 a class-wide stream attribute) and then rewrite the attribute name
26441 as the name of the appropriate compiler-generated stream primitive.
26443 2005-03-29 Robert Dewar <dewar@adacore.com>
26445 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
26447 (Is_Possibly_Unaligned_Object): Correct typo that
26448 resulted in inaccurate result for unaligned scalars within records.
26450 2005-03-29 Ed Schonberg <schonberg@adacore.com>
26452 * freeze.adb (Freeze_Record_Type): If the type of the component is an
26453 itype whose parent is controlled and not yet frozen, do not create a
26454 freeze node for the itype if expansion is disabled.
26456 2005-03-29 Vincent Celier <celier@adacore.com>
26458 * make.adb (Gnatmake): Don't fail if the main project file is declared
26459 as having no Ada sources. Do not display message "no sources to
26460 compile" in quiet output.
26462 2005-03-29 Doug Rupp <rupp@adacore.com>
26464 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
26467 2005-03-29 Robert Dewar <dewar@adacore.com>
26469 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
26472 2005-03-29 Robert Dewar <dewar@adacore.com>
26474 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
26475 missing TYPE Improve the error message generated when compiling a
26476 limited interface in Ada83 or Ada95 mode.
26478 2005-03-29 Robert Dewar <dewar@adacore.com>
26480 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
26481 rather than proceed ahead using a junk attribute name.
26483 2005-03-29 Vincent Celier <celier@adacore.com>
26485 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
26487 * prj-part.adb (Parse_Single_Project): Set the location of a project
26488 on its defining identifier, rather than on the reserved word "project".
26490 * prj-proc.adb (Expression): Adapt to the fact that default of external
26491 references may be string expressions, not always literal strings.
26492 (Recursive_Process): Set Display_Name equal to Name
26493 when Location is No_Location, that is when there is no actual file.
26494 Get the Display_Name of the project from the source, when it is not a
26496 (Process): Use the Display_Name in error messages
26498 * prj-strt.adb (External_Reference): Allow default to be string
26499 expressions, not only literal strings.
26501 2005-03-29 Vincent Celier <celier@adacore.com>
26503 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
26504 file and the reference symbol file to be the same file.
26506 2005-03-29 Thomas Quinot <quinot@adacore.com>
26508 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
26509 forbid conversion of a local access-to-subprogram type to a remote one.
26511 * sem_util.adb (Wrong_Type): For a record type that is the expanded
26512 equivalent type for a remote access-to-subprogram type, go back to the
26513 original RAS entity when displaying an error message, so the casing is
26514 the original source casing.
26516 2005-03-29 Robert Dewar <dewar@adacore.com>
26518 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
26521 2005-03-29 Ed Schonberg <schonberg@adacore.com>
26523 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
26524 subtype if code is being pre-analyzed, to prevent un-expanded
26525 references to protected formals, among others.
26526 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
26527 interpretation that can be a call, include the result of the call as a
26528 possible interpretation of the dereference.
26530 * sem_ch5.adb (Process_Bounds): Determine type of range by
26531 pre-analyzing a copy of the original range, and then analyze the range
26532 with the expected type.
26534 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
26535 with an overloaded prefix where not all interpretations yield an
26536 access to subprogram, do not rewrite node as a call.
26537 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
26538 the node as a call once the context identifies the interpretation of
26539 the prefix whose call yields the context type.
26540 (Valid_Conversion): For the case of a conversion between
26541 local access-to-subprogram types, check subtype conformance using
26542 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
26543 detailed error message.
26545 2005-03-29 Ed Schonberg <schonberg@adacore.com>
26547 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
26548 indicator, indicate that the formal can never be null.
26549 (Process_Formals): If a formal has a non_null indicator, insert the
26550 resulting subtype immediately before the enclosing subprogram decl,
26551 and not at the beginning of the corresponding declarative part, to
26552 prevent access before elaboration (Ada2005).
26554 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
26557 * utils.c (finish_record_type): Use variable_size when setting sizes.
26559 2005-03-29 Robert Dewar <dewar@adacore.com>
26561 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
26562 guarantee Unix style line terminators for the output files, even when
26563 running on windows.
26565 2005-03-29 Robert Dewar <dewar@adacore.com>
26567 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
26568 buffer if an exception is raised.
26570 2005-03-29 Ed Falis <falis@adacore.com>
26572 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
26575 2005-03-29 Robert Dewar <dewar@adacore.com>
26577 * sem_util.ads: Minor reformatting
26578 * gnat_rm.texi: Minor editing.
26580 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
26582 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
26583 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
26585 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
26587 * adaint.c (__gnat_portable_spawn): Adjust cast.
26589 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
26591 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
26593 2005-03-17 Pascal Obry <obry@adacore.com>
26595 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
26598 * expect.c (__gnat_waitpid): Moved here from adaint.c.
26599 Reimplement under Win32 using Win32 API.
26601 (__gnat_kill) [Win32]: Properly close the process handle before leaving
26604 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
26606 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
26607 (DECL_RENAMED_OBJECT): New accessor macro.
26608 (SET_DECL_RENAMED_OBJECT): New setter macro.
26610 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
26611 object in all cases. Attach the renamed object to the VAR_DECL.
26612 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
26613 field is not prescribed.
26615 * misc.c (gnat_handle_option): Handle -gnatO separately.
26616 (gnat_print_decl) <VAR_DECL>: New case.
26617 Print the DECL_RENAMED_OBJECT node.
26619 * lang.opt: Declare separate -gnatO option.
26621 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
26622 pointer, replace it with the renamed object.
26623 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
26624 pointer type if the source is not a fat pointer type whose underlying
26625 array has the same non-zero alias set as that of the destination array.
26627 2005-03-17 Javier Miranda <miranda@adacore.com>
26629 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
26630 (Get_Inheritance_Depth): Removed.
26631 (Set_Inheritance_Depth): Removed.
26633 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
26634 subprogram Get_Expanded_Name because it is not referenced by the
26637 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
26638 (CPP_Get_Inheritance_Depth): Removed.
26639 (CPP_Set_Inheritance_Depth): Removed.
26641 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
26643 2005-03-17 Robert Dewar <dewar@adacore.com>
26645 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
26646 3, since we now expect GCC 3 to do all the work.
26648 2005-03-17 Javier Miranda <miranda@adacore.com>
26650 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
26651 of one barrier to avoid wrong usage of this attribute.
26653 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
26654 First_Private_Entity.
26656 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
26657 the subprogram against wrong usage.
26658 Adapt the code to traverse the entities in the
26659 scope of a record_type because in addition to its usage regarding
26660 packages, this subprogram is also called by Expand_N_Freeze_Entity
26661 to install the visible declarations of the enclosing scope of a
26662 record_type_with_private to establish the proper visibility before
26663 freezing the entity and related subprograms.
26665 2005-03-17 Ed Schonberg <schonberg@adacore.com>
26667 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
26670 2005-03-17 Thomas Quinot <quinot@adacore.com>
26672 * exp_ch3.adb (Check_Attr): New subprogram.
26673 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
26674 into a new Check_Attr subprogram, in order to provide a more
26675 explanatory error message (including the name of the missing attribute).
26676 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
26677 subprogram determines whether a default implementation exists for a
26678 given stream attribute.
26679 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
26680 Determine whether to generate a default implementation for each stream
26681 attribute separately, as this depends on the specific attribute.
26683 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
26684 limited extension where a stream attribute is missing for a limited
26685 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
26686 generate a bogus reference to the missing attribute to prevent
26687 cascaded errors. Instead, generate a null statement.
26689 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
26690 available for a limited type if it has been specified for an ancestor
26693 2005-03-17 Ed Schonberg <schonberg@adacore.com>
26695 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
26696 entity is an operator.
26698 2005-03-17 Thomas Quinot <quinot@adacore.com>
26700 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
26701 spec, to make this predicate available to other units.
26703 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
26706 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
26707 when no distribution runtime library is available.
26709 * sem_res.adb, sem_dist.adb: Disable expansion of remote
26710 access-to-subprogram types when no distribution runtime library is
26712 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
26713 predicate available to other units.
26715 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
26716 spec, to make this predicate available to other units.
26718 2005-03-17 Vincent Celier <celier@adacore.com>
26720 * make.adb (Insert_Project_Sources): Make sure the Q is always
26723 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
26724 the default for the tree, not the global default naming.
26726 * prj-proc.adb (Recursive_Process): No need to put the default naming
26727 in the project data, it's already there.
26729 2005-03-17 Doug Rupp <rupp@adacore.com>
26731 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
26733 * 5xcrtl.ads: Renamed to...
26734 * s-crtl-vms64.ads: ...this new file
26736 2005-03-17 Robert Dewar <dewar@adacore.com>
26739 * namet.adb (Copy_One_Character): Set proper wide character encoding
26740 for upper half character if we have upper half encoding.
26742 2005-03-17 Robert Dewar <dewar@adacore.com>
26744 * par.adb (Par): Improved msg for attempt to recompile predefined unit
26746 2005-03-17 Thomas Quinot <quinot@adacore.com>
26748 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
26749 tagged limited type, the TSS is a newly built renaming declaration:
26750 insert it using Set_TSS, not Copy_TSS.
26752 2005-03-17 Javier Miranda <miranda@adacore.com>
26754 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
26755 Try_Object_Operation): Analyze the object that is accessible
26756 through the prefix of the subprogram call before we apply
26757 the transformation of the object-operation notation.
26759 2005-03-17 Jose Ruiz <ruiz@adacore.com>
26761 * s-taprob.adb (Initialize_Protection): Initialize the protected
26762 object's owner to Null_Task.
26763 (Lock): If pragma Detect_Blocking is in effect and the caller of this
26764 procedure is already the protected object's owner then Program_Error
26765 is raised. In addition the protected object's owner is updated.
26766 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
26767 of this procedure is already the protected object's owner then
26768 Program_Error is raised.
26769 In addition the protected object's owner is updated.
26770 (Unlock): Remove the ownership of the protected object.
26772 * s-taprob.ads (Protection): Add the field Owner, used to store the
26773 protected object's owner.
26774 This component is needed for detecting one type of potentially blocking
26775 operations (external calls on a protected subprogram with the same
26776 target object as that of the protected action). Document the rest of
26779 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
26780 Initialize the protected object's owner to Null_Task.
26781 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
26782 caller of this procedure is already the protected object's owner then
26783 Program_Error is raised.
26784 Do not raise Program_Error when this procedure is called from a
26786 (Unlock_Entries): Remove the ownership of the protected object.
26787 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
26788 of this procedure is already the protected object's owner then
26789 Program_Error is raised.
26790 Do not raise Program_Error when this procedure is called from
26791 a protected action.
26793 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
26794 used to store the protected object's owner.
26796 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
26797 effect and this procedure (a potentially blocking operation) is called
26798 from whithin a protected action, Program_Error is raised.
26799 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
26800 and this procedure (a potentially blocking operation) is called from
26801 whithin a protected action, Program_Error is raised.
26803 2005-03-17 Vincent Celier <celier@adacore.com>
26804 Nicolas Setton <setton@adacore.com>
26806 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
26807 switch, not supported by the linker on Darwin. Add '_' before
26808 <library>init, as this character is added unconditionally by the
26810 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
26811 correct one ".dylib". This fixes detection of the archive files when
26812 building library projects.
26814 2005-03-17 Vincent Celier <celier@adacore.com>
26816 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
26817 -gnat83, -gnat95 and -gnat05.
26819 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
26821 * gnat_ugn.texi: Document gnatmem restriction
26823 2005-03-17 Thomas Quinot <quinot@adacore.com>
26825 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
26828 2005-03-17 Robert Dewar <dewar@adacore.com>
26830 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
26831 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
26832 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
26834 * casing.adb: Comment improvements
26836 2005-03-17 Pascal Obry <obry@adacore.com>
26838 * g-expect.adb: Minor reformatting.
26840 2005-03-15 Zack Weinberg <zack@codesourcery.com>
26842 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
26843 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
26846 2005-03-15 Vincent Celier <celier@adacore.com>
26848 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
26849 Add new parameter In_Tree to specify the project tree: needed
26850 by the project manager. Adapt to changes in project manager
26851 using new parameter In_Tree.
26853 2005-03-15 Jakub Jelinek <jakub@redhat.com>
26855 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
26856 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
26857 ada/bldtools to avoid make -jN failures.
26859 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
26861 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
26862 to NULL_TREE on entry.
26864 2005-03-15 Robert Dewar <dewar@adacore.com>
26866 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
26867 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
26868 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
26869 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
26870 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
26871 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
26872 system-interix.ads, system-solaris-sparc.ads,
26873 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
26874 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
26875 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
26876 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
26877 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
26878 Compiler_System_Version to be False.
26880 * opt.ads: Add new flag Opt.Address_Is_Private
26882 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
26883 Add new parameter Compiler_System_Version to avoid checking for
26884 completeness of parameters when compiler is compiling itself.
26885 Allows old versions of GNAT to be compiled with new compiler.
26887 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
26889 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
26890 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
26892 (Stack_Base_Available): New flag.
26893 (Get_Page_Size): New overloaded functions imported from C.
26894 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
26895 PROT_ON, PROT_OFF): New constants.
26896 (mprotect): New function imported from C.
26897 (pthread_teb_t): New record type.
26899 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
26900 (Create_Task): Account for the Yellow Zone and the guard page.
26902 2005-03-15 Vincent Celier <celier@adacore.com>
26904 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
26905 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
26906 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
26907 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
26908 Library_File_Name_For): Add new parameter In_Tree
26909 to specify the project tree: needed by the project manager.
26910 Adapt to changes in project manager using new parameter In_Tree.
26911 Remove local imports, use functions in System.CRTL.
26913 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
26914 to use the project manager.
26916 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
26917 In_Tree to designate the project tree. Adapt to changes in the project
26918 manager, using In_Tree.
26920 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
26921 Copy_Interface_Sources): Add new parameter In_Tree to specify the
26922 project tree: needed by the project manager.
26923 (Build_Library): Check that Arg'Length >= 6 before checking if it
26924 contains "--RTS=...".
26926 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
26927 Library_File_Name_For): Add new parameter In_Tree to specify the
26928 project tree: needed by the project manager.
26930 * prj.ads, prj.adb: Major modifications to allow several project trees
26931 in memory at the same time.
26932 Change tables to dynamic tables and hash tables to dynamic hash
26933 tables. Move tables and hash tables from Prj.Com (in the visible part)
26934 and Prj.Env (in the private part). Move some constants from the visible
26935 part to the private part. Make other constants deferred.
26936 (Project_Empty): Make it a variable, not a function
26937 (Empty_Project): Add parameter Tree. Returns the data with the default
26938 naming data of the project tree Tree.
26939 (Initialize): After updating Std_Naming_Data, copy its value to the
26940 component Naming of Project Empty.
26941 (Register_Default_Naming_Scheme): Use and update the default naming
26942 component of the project tree, instead of the global variable
26944 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
26945 Tree is not defaulted, return the default naming data of the Tree.
26946 (Initial_Buffer_Size): Constant moved from private part
26947 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
26948 variables initialized in procedure Initialize.
26949 (Add_To_Buffer): Add two in out parameters to replace global variables
26950 Buffer and Buffer_Last.
26951 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
26953 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
26955 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
26956 for the project tree.
26957 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
26958 constant at the beginning of the package spec, so that they cane be used
26959 in subprograms before their full declarations.
26960 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
26961 (Empty_Project): Add parameter of type Project_Node_Ref
26962 (Private_Project_Tree_Data): Add component Default_Naming of type
26964 (Buffer, Buffer_Last): remove global variables
26965 (Add_To_Buffer): Add two in out parameters to replace global variables
26966 Buffer and Buffer_Last.
26967 (Current_Packages_To_Check): Remove global variable
26968 (Empty_Name): Move to private part
26969 (No-Symbols): Make it a constant
26970 (Private_Project_Tree_Data): New type for the private part of the
26972 (Project_Tree_Data): New type for the data of a project tree
26973 (Project_Tree_Ref): New type to designate a project tree
26974 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
26975 for the project tree.
26977 * prj-attr.ads: Add with Table; needed, as package Prj no longer
26978 imports package Table.
26980 * prj-com.adb: Remove empty, no longer needed body
26982 * prj-com.ads: Move most of the content of this package to package Prj.
26984 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
26985 designate the project node tree and Packages_To_Check to replace
26986 global variable Current_Packages_To_Check.
26987 Add new parameters In_Tree and Packages_To_Check to local subprograms,
26988 when needed. Adapt to changes in project manager with project node tree
26991 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
26992 project tree to most subprograms. Move tables and hash tables to
26993 private part of package Prj.
26994 Adapt to changes in project manager using project tree In_Tree.
26996 * prj-makr.adb (Tree): New constant to designate the project node tree
26997 Adapt to change in project manager using project node tree Tree
26999 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
27000 display the Library_Src_Dir and the Library_Dir.
27001 Add new parameter In_Tree to designate the project node tree to most
27002 subprograms. Adapt to changes in the project manager, using project tree
27004 (Check_Naming_Scheme): Do not alter the casing on platforms where
27005 the casing of file names is not significant.
27006 (Check): Add new parameter In_Tree to designate the
27008 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
27009 designate the project tree.
27010 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
27012 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
27013 to replace those that were in the private part of package Prj.
27014 Add new parameter In__Tree to designate the project node tree to most
27015 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
27016 (Post_Parse_Context_Clause): When specifying the project node of a with
27017 clause, indicate that it is a limited with only if there is "limited"
27018 in the with clause, not necessarily when In_Limited is True.
27019 (Parse): Add new parameter In_Tree to designate the project node tree
27021 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
27022 designate the project node tree. Adapt to change in Prj.Tree with
27023 project node tree In_Tree.
27025 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
27026 tree In_Tree in the call to function Empty_Process to give its initial
27027 value to the project data Processed_Data.
27028 Add new parameters In_Tree to designate the project tree and
27029 From_Project_Node_Tree to designate the project node tree to several
27030 subprograms. Adapt to change in project manager with project tree
27031 In_Tree and project node tree From_Project_Node_Tree.
27033 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
27034 to replace those that were in the private part of package Prj.
27035 Add new parameter In_Tree to designate the project node tree to most
27036 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
27038 * prj-tree.ads, prj-tree.adb: Add new parameter of type
27039 Project_Node_Tree_Ref to most subprograms.
27040 Use this new parameter to store project nodes in the designated project
27042 (Project_Node_Tree_Ref): New type to designate a project node tree
27043 (Tree_Private_Part): Change table to dynamic table and hash tables to
27044 dynamic hash tables.
27046 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
27047 the project tree to most subprograms. Adapt to changes in project
27048 manager using project tree In_Tree.
27050 * makegpr.adb (Project_Tree): New constant needed to use project
27053 2005-03-15 Olivier Hainque <hainque@adacore.com>
27055 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
27056 for sigactions with SA_SIGINFO set. Call
27057 __gnat_adjust_context_for_raise before raising, to perform the
27058 potentially required adjustments to the machine context for the GCC
27061 * raise.h (__gnat_adjust_context_for_raise): New prototype.
27063 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
27064 Adjust PC by one in the provided machine context.
27065 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
27066 so that the handler is passed the context structure to adjust prior to
27068 (__gnat_error_handler) HPUX: Adjust the signature to match what an
27069 SA_SIGINFO sigaction should look like. Call
27070 __gnat_adjust_context_for_raise before actually raising.
27071 (__gnat_adjust_context_for_raise): Default noop to help PC
27072 adjustments before raise from signal handlers.
27073 (__gnat_error_handler): Indirectly call a predicate function to
27074 determine if a condition should be resignaled or not.
27075 (__gnat_set_resignal_predicate): User interface to modify the predicate.
27076 (__gnat_default_resignal_p): Default GNAT predicate.
27078 2005-03-15 Doug Rupp <rupp@adacore.com>
27080 * adaint.c: Prefix #include of VMS system header files with vms/
27081 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
27082 Do not define a dummy function "convert_addresses" under Darwin,
27085 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
27088 2005-03-15 Nicolas Setton <setton@adacore.com>
27090 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
27093 2005-03-15 Robert Dewar <dewar@adacore.com>
27095 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
27098 * a-retide.ads: Minor comment changes
27100 2005-03-15 Robert Dewar <dewar@adacore.com>
27102 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
27103 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
27104 Realloc_For_Chunk to private part of package.
27105 New subprograms for AI-301
27107 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
27108 Get_Line procedure.
27109 Avoid unnecessary use of Get/Set_Wide_String
27111 2005-03-15 Robert Dewar <dewar@adacore.com>
27114 * a-stunau.ads, a-stunau.adb:
27115 Change interface to allow efficient (and correct) implementation
27116 The previous changes to allow extra space in unbounded strings had
27117 left this interface a bit broken.
27119 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
27121 * g-spipat.ads, g-spipat.adb: New interface for Get_String
27122 Minor reformatting (function specs)
27124 * g-spitbo.adb: New interface for Get_String
27126 * g-spitbo.ads: Minor reformatting
27128 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
27130 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
27132 2005-03-15 Javier Miranda <miranda@adacore.com>
27133 Robert Dewar <dewar@adacore.com>
27134 Thomas Quinot <quinot@adacore.com>
27135 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27137 * atree.ads, atree.adb: Add support for Elist24 field
27139 * atree.h: Fix wrong definition of Field27
27140 Add support for Elist16 field
27141 Add support for Elist24 field
27143 * einfo.ads, einfo.adb (Abstract_Interfaces,
27144 Set_Abstract_Interfaces): New subprograms.
27145 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
27147 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
27148 entities rather than a single node.
27149 (Is_Interface, Set_Is_Interface): New subprogram
27150 (First_Tag_Component): New syntesized attribute
27151 (Next_Tag_Component): New synthesized attribute
27152 (Write_Entity_Flags): Upgraded to write Is_Interface
27153 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
27154 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
27155 (Task_Body_Procedure): New subprogram to read this attribute.
27156 (Set_Task_Body_Procedure): New subprogram to set this attribute.
27157 (Has_Controlled_Component): Now applies to all entities.
27158 This is only a documentation change, since it always worked to apply
27159 this to other than composite types (yielding false), but now this is
27161 Update documentation on Must_Be_Byte_Aligned for new spec
27163 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
27164 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
27165 uses of the Access_Disp_Table attribute to reference the first dispatch
27166 table associated with a tagged type. As
27167 part of the implementation of abstract interface types,
27168 Access_Disp_Table has been redefined to contain a list of dispatch
27169 tables (rather than a single dispatch table).
27170 Similarly, upgrade all the references to Tag_Component by the
27171 new attribute First_Tag_Component.
27172 (Find_Inherited_TSS): Moved to exp_tss.
27173 Clean up test in Expand_N_Object_Declaration for cases
27174 where we need to do a separate assignment of the initial value.
27175 (Expand_N_Object_Declaration): If the expression in the
27176 declaration of a tagged type is an aggregate, no need to generate an
27177 additional tag assignment.
27178 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
27180 Bit packed array ops are only called if operands are known to be
27182 (Component_Equality): When returning an N_Raise_Program_Error statement,
27183 ensure that its Etype is set to Empty to avoid confusing GIGI (which
27184 expects that only expressions have a bona fide type).
27185 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
27186 determine the amount of data to be copied.
27188 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
27189 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
27190 INTERFACE_TYPE_DEFINITION ::=
27191 [limited | task | protected | synchronized] interface
27192 [AND interface_list]
27194 * par-ch3.adb (P_Type_Declaration): Modified to give support to
27196 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
27198 (P_Interface_Type_Definition): New subprogram that parses the new
27199 syntax rule of Ada 2005 interfaces
27200 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
27201 messages by the correct RENAMES (quotes removed).
27203 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
27204 attribute First_Tag_Component.
27206 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
27207 (Interface_List, Set_Interface_List): New subprograms.
27208 (Interface_Present, Set_Interface_Present): New subprograms.
27209 (Limited_Present, Set_Limited_Present): Available also in derived
27210 type definition nodes.
27211 (Protected_Present, Set_Protected_Present): Available also in
27212 record type definition and
27213 derived type definition nodes.
27214 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
27215 (Task_Present, Set_Task_Present): New subprogram.
27216 (Task_Body_Procedure): Removed.
27217 (Set_Task_Body_Procedure): Removed.
27218 These subprogram have been removed because the attribute
27219 Task_Body_Procedure has been moved to the corresponding task type
27220 or task subtype entity to leave a field free to store the list
27221 of interfaces implemented by a task (for AI-345)
27222 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
27223 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
27224 expression flag Do_Range_Check
27225 (Exception_Junk): Change to Flag7 to accomodate above change
27226 (Box_Present, Default_Name, Specification, Set_Box_Present,
27227 Set_Default_Name, Set_Specification): Expand the expression
27228 "X in N_Formal_Subprogram_Declaration" into the corresponding
27229 two comparisons. Required to use the csinfo tool.
27231 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
27232 "with string" given.
27234 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
27237 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
27240 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
27241 attribute Task_Body_Procedure rather than the old semantic field that
27242 was available in the task_type_declaration node.
27244 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
27245 interface type definitions.
27246 (P_Formal_Derived_Type_Definition): Modified to handle the list of
27249 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
27250 task type declaration.
27251 (P_Protected): Modified to handle the list of interfaces in a
27252 protected type declaration.
27254 2005-03-15 Doug Rupp <rupp@adacore.com>
27255 Vincent Celier <celier@adacore.com>
27257 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
27258 (Gen_Output_File_C): Likewise.
27259 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
27261 2005-03-15 Thomas Quinot <quinot@adacore.com>
27263 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
27264 is an N_Raise_Constraint_Error node, create a new copy of it without
27265 going through a call to Duplicate_Subexpr.
27267 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
27268 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27269 Nicolas Setton <setton@adacore.com>
27270 Ed Schonberg <schonberg@adacore.com>
27276 * decl.c (gnat_to_gnu_field): Reject aliased components with a
27277 representation clause that prescribes a size not equal to the rounded
27278 size of their types.
27279 (gnat_to_gnu_entity, case E_Component): Always look at
27280 Original_Record_Component if Present and not the entity.
27281 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
27282 of tagged extension types by not making field for components that are
27284 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
27285 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
27286 expression to the type of the object when the object is constant.
27287 Reverse defer_debug_incomplete_list before traversing it, so that trees
27288 are processed in the order at which they were added to the list. This
27289 order is important when using the stabs debug format.
27290 If we are deferring the output of debug information, also defer this
27291 output for a function return type.
27292 When adding fields to a record, prevent emitting debug information
27293 for incomplete records, emit the information only when the record is
27295 (components_to_record): New parameter defer_debug.
27296 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
27297 (gnat_to_gnu_field_decl): New function.
27298 (substitution_list, annotate_rep): Call it.
27299 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
27300 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
27301 No longer update discriminants to not be a COMPONENT_REF.
27302 (copy_alias_set): Strip padding from input type; also handle
27303 unconstrained arrays properly.
27305 * gigi.h (write_record_type_debug_info): New function.
27306 Convert to use ANSI-style prototypes. Remove unused
27307 declarations for emit_stack_check, elab_all_gnat and
27308 set_second_error_entity.
27309 (gnat_to_gnu_field_decl): New decl.
27311 * utils.c (write_record_type_debug_info): New function.
27312 (finish_record_type): Delegate generation of debug information to
27313 write_record_type_debug_info.
27314 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
27315 (update_pointer_to): Fix pasto.
27316 (convert) <UNION_TYPE>: Accept slight type variations when
27317 converting to an unchecked union type.
27319 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
27320 replace the N_Freeze_Entity with a null statement.
27322 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
27323 within a constrained subcomponent of an enclosing record, place the
27324 freeze nodes in the scope stack entry for the enclosing record.
27325 (Undelay_Type): New Subprogram.
27326 (Set_Small_Size): Pass T, the type to modify; all callers changed.
27327 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
27328 within records; allow them to have freeze nodes if their base types
27331 * exp_util.adb (Remove_Side_Effects): Properly test for
27332 Expansion_Delayed and handle case when it's inside an
27333 N_Qualified_Expression.
27335 * sem_ch3.adb (Derived_Type_Declaration): New predicate
27336 Comes_From_Generic, to recognize accurately that the parent type in a
27337 derived type declaration can be traced back to a formal type, because
27338 it is one or is derived from one, or because its completion is derived
27340 (Constrain_Component_Type): If component comes from source and has no
27341 explicit constraint, no need to constrain in in a subtype of the
27343 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
27344 Minor change to propagate Is_Ada_2005 flag
27346 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
27347 Expansion_Delayed is False.
27348 (assoc_to_constructor): Ignore fields that have a
27349 Corresponding_Discriminant.
27350 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
27351 function returns "by target", dereference the target pointer using the
27352 type of the actual return value.
27353 <all>: Be prepared for a null gnu_result.
27354 (processed_inline_subprograms): Check flag_really_no_inline
27355 instead of flag_no_inline.
27356 (set_second_error_entity): Remove unused function.
27357 (gnat_to_gnu, case N_Selected_Component): Call
27358 gnat_to_gnu_field_decl.
27359 (assoc_to_constructor): Likewise.
27361 2005-03-15 Robert Dewar <dewar@adacore.com>
27362 Ed Schonberg <schonberg@adacore.com>
27363 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27365 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
27366 Must_Be_Byte_Aligned for cases where we do not need to use a
27367 System.Pack_nn unit.
27369 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
27371 Needed now that we do some processing for IN parameters as well. This
27372 may well fix some unrelated errors.
27373 (Expand_Call): Handle case of unaligned objects (in particular those
27374 that come from packed arrays).
27375 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
27376 renamed entity is an inherited operation, re-expand the call using the
27377 original operation, which is the one to call.
27378 Detect attempt to inline parameterless recursive subprogram.
27379 (Represented_As_Scalar): Fix to work properly with private types
27380 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
27381 accurate estimate. Yields True in far fewer cases than before,
27382 improving the quality of code that depends on this test.
27384 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
27385 over both visible and private declarations to remove them from tree,
27386 and mark subprograms declared in package as eliminated, to prevent
27387 spurious use in subsequent compilation of generic units in the context.
27389 * exp_util.ads: Minor cleanup in variable names
27391 * sem_eval.ads, sem_eval.adb: Minor reformatting
27392 (Compile_Time_Known_Bounds): New function
27394 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27396 * exp_ch7.adb (Convert_View): Use base types of underlying types when
27397 determining whether an unchecked conversion is needed for the argument
27398 of an initialization call.
27400 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27402 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
27403 that appears in the instantiation rather than the internal subtype
27404 generated in the wrapper package, to avoid anomalies in gigi when the
27405 target is derived from a private type whose full view is an access type.
27407 2005-03-15 Robert Dewar <dewar@adacore.com>
27409 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
27411 Add documentation to replace the use of this flag
27412 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
27415 2005-03-15 Thomas Quinot <quinot@adacore.com>
27417 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
27418 here from exp_attr so it can be shared between exp_attr and exp_dist.
27419 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
27420 all TSS names, not a subset thereof, and the previous name introduced
27421 an unnecessarily confusion that a distinction might exist between
27422 "OK" TSS names and some "not OK" TSS names.
27424 2005-03-15 Doug Rupp <rupp@adacore.com>
27426 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
27429 2005-03-15 Pascal Obry <obry@adacore.com>
27430 Eric Botcazou <ebotcazou@adacore.com>
27434 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
27435 when IN_RTS. This is to work around a bootstrap path problem.
27437 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
27438 table and pass it to __gnat_install_SEH_handler().
27439 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
27441 * lang.opt: Fix specification of -fRTS=.
27443 2005-03-15 Doug Rupp <rupp@adacore.com>
27444 Bernard Banner <banner@adacore.com>
27445 Vincent Celier <celier@adacore.com>
27446 Arnaud Charlet <charlet@adacore.com>
27449 This change works fine when gnatlib is built from the gcc directory,
27450 but does not work when using the libada Makefile, since GCC_FOR_TARGET
27451 is not passed to ada/Makefile.in, so more work is needed by a
27452 Makefile/configure expert.
27454 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
27455 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
27456 Setup gnatlink switch -M for x86_64 linux, as it is already setup
27458 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
27459 Run ranlib on libgccprefix.a
27460 Define PREFIX_OBJS for Darwin, to build libgccprefix.
27461 (ADA_INCLUDE_SRCS): Split Ada packages.
27463 2005-03-15 Robert Dewar <dewar@adacore.com>
27465 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
27467 * impunit.adb: Add GNAT.UTF_32
27469 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
27471 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
27472 now uses GNAT.UTF_32).
27474 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
27475 capabilities for categorizing characters using Unicode categories
27477 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27479 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
27480 instantiation that has been rewritten as a package body, retrieve spec
27481 to generate proper name for implicit_with_clause.
27482 (Install_Parents): Recognize a parent that is an instantiation but has
27483 been rewritten as a package declaration during analysis.
27485 2005-03-15 Javier Miranda <miranda@adacore.com>
27486 Ed Schonberg <schonberg@adacore.com>
27488 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
27489 parameter reported some error we immediately return. This improves the
27490 behaviour of the frontend in case of errors.
27491 (Install_Parent, Remove_Parent): Introduce new flag
27492 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
27493 ancestor of a generic child unit, when the child is being instantiated.
27494 (Inline_Instance_Body): If we are compiling the private
27495 part or the body of a child unit, restore the proper visibility of the
27496 parents after compiling the instance body.
27498 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27499 Javier Miranda <miranda@adacore.com>
27502 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
27503 of a private type, in which case it is underlying_type that denotes
27504 the proper task. Also modified to use the new entity attribute
27505 that is directly available in the task type and task subtype entities
27506 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
27507 arrays when other dimensions than the first are constrained by
27508 discriminants of an enclosing record.
27509 (Insert_Explicit_Dereference): If the prefix is an indexed component or
27510 a combination of indexed and selected components, find ultimate entity
27511 and generate the appropriate reference for it, to suppress spurious
27513 (Note_Possible_Modification): If an entity name has no entity, return.
27514 (Is_Variable): A function call never denotes a variable.
27515 (Requires_Transient_Scope): For record types, recurse only on
27516 components, not on internal subtypes that may have been generated for
27517 constrained components.
27519 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27521 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
27522 Eliminated as candidates for resolution. Both efficient, and avoids
27523 anomalies with operators declared in deleted code.
27524 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
27525 expansion is disabled (as when compiling a generic) to prevent spurious
27526 warnings on prefixes of selected components.
27528 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27530 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
27531 attached to a list before checking whether it appears in the private
27532 declarations of the current package.
27533 (Make_Inequality_Operator): Insert declaration in proper declarative
27534 list rather than just setting the Parent field, so that
27535 Is_Private_Declaration can handle it properly.
27537 2005-03-15 Ed Schonberg <schonberg@adacore.com>
27539 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
27540 a renaming a body, check that the renamed subprogram in not intrinsic.
27541 (Find_Direct_Name): If several use_visible entities hide
27542 each other, and the context is a predefined file compiled through
27543 rtsfind, keep only the entity that comes from a predefined file.
27545 2005-03-15 Geert Bosch <bosch@adacore.com>
27547 * s-fatgen.adb (Valid): Extend special exceptions to account for long
27548 long float padding to also cover AMD64 and IA64.
27550 2005-03-15 Gary Dismukes <dismukes@adacore.com>
27552 * s-imgwch.adb: Add with and use of Interfaces.
27553 (Img_Wide_Character): Change type of Val to Unsigned_16.
27554 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
27556 2005-03-15 Matthew Gingell <gingell@adacore.com>
27558 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
27560 2005-03-15 Robert Dewar <dewar@adacore.com>
27562 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
27564 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
27566 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
27568 2005-03-15 Robert Dewar <dewar@adacore.com>
27570 * s-bitops.adb, s-bitops.ads,
27571 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
27572 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
27573 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
27574 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
27575 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
27576 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
27577 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
27578 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
27581 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
27583 * utils2.c (build_binary_op): Fix typo.
27585 2005-03-15 Doug Rupp <rupp@adacore.com>
27587 * s-crtl.ads (popen,pclose): New imports.
27589 2005-03-15 Cyrille Comar <comar@adacore.com>
27591 * comperr.adb (Compiler_Abort): remove references to obsolete
27592 procedures in the bug boxes for various GNAT builds.
27594 2005-03-15 Vincent Celier <celier@adacore.com>
27596 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
27598 2005-03-15 Geert Bosch <bosch@adacore.com>
27599 Arnaud Charlet <charlet@adacore.com>
27600 Robert Dewar <dewar@adacore.com>
27601 Cyrille Comar <comar@adacore.com>
27602 Sergey Rybin <rybin@adacore.com>
27604 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
27605 too specific and long-winded to be appropriate for the GNAT User's
27607 Warn about use of GCC switches not documented in the GNAT User's Guide,
27608 as these may cause generated code to not conform to Ada semantics.
27609 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
27610 Add documentation for -gnat95 and -gnat05 switches
27611 Remove paragraph documenting obsolete way to refer to third party
27613 Add a few references to Ada_05 that were missing.
27614 Update documentation on -gnatZ/-gnatL.
27615 Document limitation when using -m64 under Solaris.
27616 Change the "Name Casing" subsection of the pretty-printer section
27617 according to the changes in the dictionary processing.
27619 * gnat_rm.texi: Document the Ada_05 pragma.
27620 Section on record representation clauses describes the new more
27621 relaxed rules about placement of large packed bit array components.
27622 Add documentation of GNAT.UTF_32
27624 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
27626 * misc.c (gnat_post_options): Turn off structural
27629 2005-03-08 Laurent Guerby <laurent@guerby.net>
27631 * system-linux-sparc.ads: Fix typo in previous commit.
27633 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
27634 Laurent Guerby <laurent@guerby.net>
27637 * system-linux-sparc.ads: New.
27638 * Makefile.in: Add sparc linux entry.
27640 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
27642 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
27643 parameters as unused.
27645 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
27646 Partial merge from libada-gnattools-branch:
27648 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
27649 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
27650 into code in gnattools/Makefile.in. Remove direct dependencies on
27651 stamp-tools by tools clauses.
27652 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
27653 * config-lang.in: Add gnattools to $lang_dirs.
27655 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
27658 * utils.c (gnat_type_for_mode): Return null instead of ICE because
27659 we asked for an unknown mode.
27661 2005-02-12 Richard Henderson <rth@redhat.com>
27663 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
27664 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
27666 2005-02-10 Andreas Jaeger <aj@suse.de>
27668 * init.c (__gnat_initialize): Mark parameter as unused.
27670 2005-02-09 Doug Rupp <rupp@adacore.com>
27672 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
27673 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
27675 2005-02-09 Doug Rupp <rupp@adacore.com>
27677 * gnatchop.adb (dup, dup2),
27678 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
27680 * gnatlbr.adb (mkdir),
27681 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
27683 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
27685 2005-02-09 Doug Rupp <rupp@adacore.com>
27687 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
27689 2005-02-09 Robert Dewar <dewar@adacore.com>
27690 Thomas Quinot <quinot@adacore.com>
27691 Javier Miranda <miranda@adacore.com>
27692 Pascal Obry <obry@adacore.com>
27693 Ed Schonberg <schonberg@adacore.com>
27694 Doug Rupp <rupp@adacore.com>
27695 Gary Dismukes <dismukes@adacore.com>
27696 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
27698 * g-zstspl.ads: New file.
27700 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
27702 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
27704 Add definition of Wide_Wide_Space for AI-285
27706 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
27707 interface (to support Ada 95 and Ada 2005 units).
27708 Add Unbounded_IO files
27709 Add entries for Wide_Wide packages for AI-285
27710 Add list of containers packages to Ada 2005 unit list
27712 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
27713 support new Unbounded_IO package cleanly.
27715 * g-utf_32.ads, g-utf_32.adb: New files.
27717 * Makefile.rtl: Add entry for g-utf_32
27718 Add new files for Unbounded_IO
27719 Adjust make file for new AI-285 wide wide packages
27720 Add AI-302 containers to the run time.
27722 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
27723 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
27724 subprograms for AI-301.
27726 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
27728 * a-stunau.ads: Minor comment correction
27730 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
27732 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
27733 (Check_RPC): Update to match changes in expanded code.
27734 Clean up unused entity.
27736 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
27737 was not taken into account.
27738 This includes proper initialization with Normalize_Scalars.
27739 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
27740 normalize scalars cases (particularly the latter) to do a better job
27741 of finding invalid representations.
27743 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
27745 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
27748 * exp_dist.adb: Add support for wide wide character type
27749 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
27750 private part, generate stub bodies at the end of the private part,
27751 not the visible part.
27752 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
27754 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
27755 generic wrapper to execute final processing after completing the
27756 expansion of the RPC receiver for an RACW.
27758 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
27759 packages and attributes.
27760 (Preset_Names): Addition of the new reserved words of Ada 2005,
27761 that is interface, overriding and synchronized.
27762 (Get_Pragma_Id): Give support to the use of the new reserved word
27763 "interface" as a pragma name.
27764 (Is_Pragma_Name): Give support to the use of the new reserved word
27765 "interface" as a pragma name.
27766 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
27767 attribute implementation.
27769 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
27770 checks to entities that are output parameters of Asm operations.
27771 Handle the Stream_Size attribute.
27772 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
27774 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
27776 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
27777 for second parameter being 0.0.
27778 Add support for wide wide character type.
27779 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
27781 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
27782 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
27783 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
27784 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
27785 for wide wide character cases.
27787 * cstand.adb: Create entities for Wide_Wide_Character and
27790 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
27791 accordance with AI-258.
27792 Add new declarations for 16/32 bit C character types (Part of AI285)
27794 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
27795 (Obsolescent_Warning): New field
27796 (Rep_Clause): New local subprogram used to share code. Returns the rep
27797 clause for which the name is given in parameter.
27798 (Has_Stream_Size_Clause): New routine.
27799 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
27800 (Address_Clause): Implementation is now using Rep_Clause.
27801 (Alignment_Clause): Idem.
27802 (Size_Clause): Idem.
27804 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
27805 entity in non-Ada 2005 mode and generate warning.
27807 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
27808 (Prag): Code cleanup. Remove old gnat pragma "overriding"
27810 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
27811 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
27812 on the named unit if the pragma is not in the current compilation unit,
27813 so that elaboration calls in the current unit can set up an elaboration
27814 dependency on the named unit, as needed.
27815 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
27816 subprogram as well as for subprograms declared within a package.
27817 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
27820 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
27821 to z) to avoid some instances of duplication for Wide_Wide packages.
27823 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
27826 * scn.adb: Char_Literal_Value field is now a Uint
27828 * scng.adb: Significant rewrite to handle new Ada 2005 features
27829 allowing wide and wide wide characters in program text, e.g. for
27830 identifiers, as described in AI-285.
27831 (Set_Reserved): New procedure, makes setting up keywords cleaner.
27832 (Initialize_Scanner): Register the new reserved words of Ada 2005.
27833 (Scan): Give support to the new reserved words.
27835 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
27836 warning notifying that interface, overriding, and synchronized are
27837 new reserved words.
27838 (P_Pragma): Allow the use of the new reserved word "interface" as
27841 * gnatls.adb, gnatbind.adb,
27842 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
27843 identifiers named "interface" to "SAL_Interface".
27845 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
27846 (Structured Exception handling).
27847 (Gen_Main_C): Idem.
27850 (Gen_Main_Ada): Set the default exit code if specified.
27851 (Gen_Main_C): Likewise.
27853 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
27854 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
27856 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
27859 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
27860 has a collision with the new Ada 2005 "interface" reserved word.
27862 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
27863 generate a warning notifying that interface, overriding, and
27864 synchronized are new reserved words.
27866 * scans.ads (Token_Type): Addition of the tokens corresponding to the
27867 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
27868 and Tok_Synchronized.
27870 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
27871 "dispatching" rather than "primitive" operations, since dispatching
27872 calls are now allowed to abstract formal subprograms (which are not
27874 Char_Literal_Value field is now a Uint
27875 (Resolve_Slice): If the prefix is an access to an unconstrained array,
27876 compute the actual subtype of the designated object to impose the proper
27878 (Resolve_Selected_Component): Do not insert an access check if the
27879 prefix is an access type: such a node is expanded into an explicit
27880 dereference, on which the access check is performed anyway. Removes
27881 expensive duplicate checks.
27882 (Resolve_Call): Use new flag Is_Obsolescent and field
27883 Obsolescent_Warning so that pragma Obsolescent works on library
27885 Add support for wide wide character type
27886 (Resolve_Allocator): Replace the error message on wrong null-exclusion
27887 value by a warning message.
27888 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
27889 as fixed-point, and one of the operands is non-static and universal, it
27890 can only be an illegal exponentiation operation, in which case there is
27891 no real value to retrieve.
27893 * exp_strm.adb: Add support for wide wide character type
27894 (Build_Elementary_Input_Call): Compute the size of the stream element by
27895 querying the rep chain to find the Stream_Attribute attribute value.
27896 (Build_Elementary_Write_Call): Ditto.
27898 * sem_aggr.adb: Char_Literal_Value field is now a Uint
27899 Add support for wide wide character type
27900 Replace the error messages on wrong null-exclusion value by warnings
27901 as described in Ada 2005.
27902 (Resolve_Extension_Aggregate): Document the fact that the error
27903 message on class-wide expressions in extensions aggregates.
27905 * sem_case.adb: Add support for wide wide character type
27907 * sem_ch13.adb: Add support for wide wide character type
27908 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
27910 * sem_ch3.adb: Add support for wide wide character type
27911 (Process_Subtype): If constraint is illegal for the type, set Ekind of
27912 now-useless Itype, to prevent cascaded errors on a compiler built
27915 * sem_ch8.adb: Add with and use of Sem_Disp.
27916 (Analyze_Subprogram_Renaming): Replace unclean uses of
27917 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
27918 of Corresponding_Spec to Empty).
27919 (Attribute_Renaming): Replace use of Corresponding_Spec with
27920 Corresponding_ Formal_Spec and simplify condition.
27921 (Use_One_Package): Check that scope of homonym of identifier is defined,
27922 before checking whether it is a wrapper package.
27923 Add support for wide wide character type
27925 * sem_eval.adb: Add support for wide wide character type.
27926 (Eval_Arithmetic_Op): Check for compile time known signed integer
27927 overflow in the non-static case.
27928 (Subtypes_Statically_Match): A formal scalar type and its base type do
27929 not statically match.
27931 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
27932 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
27934 (Unit_Declaration_Node): Ditto.
27935 (Is_Variable_Prefix): For the case of an indexed component whose prefix
27936 has a packed array type, the prefix has been rewritten into a type
27937 conversion. Determine variable-ness from the converted expression.
27938 Handle wide wide character cases.
27940 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
27942 * stringt.ads, stringt.adb: Handle full UTF-32 range.
27943 Remove ["0A"] from comment, since it can look like a line terminator.
27944 Currently we don't permit this, but this is under discussion by the
27945 ARG, and it is easy enough to use a different example.
27947 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
27948 handling UTF-32 encoding for wide wide character.
27949 Implement new brackets coding ["hhhhhhhh"]
27950 Add UTF-8 encodings for full UTF-32 range
27952 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
27954 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
27955 bit range Add full UTF-32 support.
27956 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
27957 notify that constraint error will be raised at run-time
27958 because a null value is assigned to a null-excluding object.
27959 Remove some obsolete declarations and make Char_Code
27962 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
27963 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
27964 Rcheck subprograms.
27966 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
27967 wrong null-exclusion value by a warning message.
27968 (Enable_Range_Check): Do range check if the prefix is an
27969 explicit dereference whose designated object is an unconstrained array.
27970 Current algorithm for removing duplicate checks is over-eager in this
27973 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
27974 null-exclusion value by a warning message
27976 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
27977 completely. Add support for Uint2 field
27979 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
27980 exp_prag.adb: Char_Literal_Value field is now a Uint.
27982 * exp_util.adb (Insert_Actions): Replace
27983 N_Formal_Subprogram_Declaration by
27984 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
27985 Char_Literal_Value field is now a Uint.
27987 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
27988 defined for subprogram renaming declarations. When set, the field
27989 indicates the defining entity of a corresponding formal subprogram
27990 when the renaming corresponds to a formal subprogram association in an
27992 (Set_Corresponding_Formal_Spec): New procedure to return
27993 Corresponding_Formal_Spec field.
27994 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
27995 (which is now a subtype).
27996 Char_Literal_Value field is now a Uint
27998 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
27999 pointer to the base of the dispatch table.
28000 Minor changes to comments.
28001 (Controlling_Type): New function for determining the tagged type
28002 associated with a tagged primitive subprogram.
28003 (Expand_Dispatching_Call): Add support for a controlling actual that is
28004 directly a value of type Ada.Tag rather than a tagged object.
28006 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
28007 describing the new layout.
28008 (Dispatch_Table): The expander computes the actual array size, allocates
28009 the Dispatch_Table record accordingly, and generates code that displaces
28010 the base of the record after the Typeinfo_Ptr component. The access to
28011 these components is done by means of local functions.
28012 (Offset_To_Top): New function.
28013 (Typeinfo_Ptr): New function.
28014 (Get_TSD): Modified to access the new position of the TSD.
28015 (Set_TSD): Modified to save the TSD in its new position.
28017 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
28018 case of formal abstract subprograms. Add check and message for -gnat05.
28021 * sem_ch12.adb: Add with and use for Sem_Disp.
28022 (Analyze_Associations): Minor change from "=" to "in" for use of
28023 N_Formal_Subtype_Declaration (which is now a subtype).
28024 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
28025 N_Formal_Subtype_Declaration (which is now a subtype).
28026 (Analyze_Formal_Subprogram): Add handling for
28027 N_Formal_Abstract_Subprogram, marking the formal as abstract and
28028 dispatching, setting the controlling status of the formal parameters
28029 and result, and issuing an error if there is no controlling type for
28030 the formal subprogram.
28031 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
28032 which is an unclean use of that field, we set the new field
28033 Corresponding_Formal_Spec to make the formal subprogram available to
28034 processing in Analyze_Subprogram_Declaration.
28035 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
28036 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
28037 Constrained, so that it is is does not statically match its anonymous
28040 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
28041 abstract formal subprograms in error check for functions returning
28042 abstract types. Set scope of new designator for
28043 a parameterless subprogram, so that it is available when checking the
28044 body for nested subprograms, before full analysis of said body.
28045 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
28046 subprogram only if inner one comes from source.
28047 (Analyze_Function_Call): If the call is given in object notation, the
28048 analysis of the name rewrites the node and analyzes it with the proper
28049 argument list. After analyzing the name, if the call has been rewritten
28050 and the result type is set, no further analysis is needed.
28051 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
28052 mark in function specification, in a context where the formals are
28053 visible and hide outer homographs.
28055 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
28056 as the tagged type for the cases of abstract formal subprograms and
28057 renamings of those. Clean up spec comments.
28058 (Check_Dispatching_Context): Add error message to indicate "abstract
28059 procedure", covering the case of a call to a formal abstract procedure
28060 that has statically tagged operands.
28061 (Check_Dispatching_Call): Check for the case of an actual given by
28062 a tag-indeterminate function call whose type is an ancestor of the
28063 containing call's associated tagged type. This situation can occur
28064 for inherited primitives with function defaults. In this case we
28065 use the tagged type's tag directly as the controlling argument for
28067 (Expand_Call): Name change on call to Expand_Dispatch_Call.
28069 * sprint.adb (Sprint_Node_Actual): Split
28070 N_Formal_Subprogram_Declaration into two alternatives for the new
28071 cases N_Formal_Abstract_Subprogram_Declaration and
28072 N_Formal_Concrete_Subprogram_Declaration.
28073 Char_Literal_Value field is now a Uint.
28075 * trans.c: Get rid of junk Uint2 reference.
28076 Char_Literal_Value field is now a Uint.
28077 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
28078 (gigi): Correct third arg to gimplify_body.
28080 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
28081 (TYPE_LANG_FLAG_0): Check for record or union.
28083 * treepr.adb: Char_Literal_Value field is now a Uint
28085 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
28088 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
28089 Add full UTF-32 support
28090 Char_Code is now 32 bits
28092 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
28093 wide character UTF_32 line terminators.
28094 Initialize Main_Source_File to avoid error when no main
28097 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
28098 (Main_Source_File) when no main source has been loaded, to avoid
28101 2005-02-09 Robert Dewar <dewar@adacore.com>
28103 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
28104 Fix name of Set routine
28106 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
28109 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
28110 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
28113 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
28114 forms of Get_Line subprograms for AI-301.
28116 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
28117 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
28118 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
28119 a-stwima.ads: Minor reformatting.
28121 2005-02-09 Doug Rupp <rupp@adacore.com>
28122 Thomas Quinot <quinot@adacore.com>
28124 * adaint.c, adaint.h
28125 [VMS] (to_ptr32): New function.
28126 (MAYBE_TO_PTR32): New macro.
28127 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
28129 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
28130 [VMS] (#define fork()): Remove since unneccessary.
28131 (__gnat_set_close_on_exec): New routine to support
28132 GNAT.OS_Lib.Set_Close_On_Exec.
28134 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
28135 the parent side as close-on-exec so that they are not inherited by the
28138 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
28139 set or clear the FD_CLOEXEC flag on a file descriptor.
28141 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
28142 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28146 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
28147 on the field if Pragma Component_Alignment (Storage_Unit).
28148 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
28149 side-effects as if it were a constant; also make SAVE_EXPR to protect
28151 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
28153 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
28154 (components_to_record): Test it.
28155 Fix improper usage of REFERENCE_CLASS_P.
28157 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
28160 * utils2.c: Minor reformatting.
28162 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
28163 handle other cases like RECORD_TYPE.
28165 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
28167 2005-02-09 Ed Schonberg <schonberg@adacore.com>
28169 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
28170 component of an array of arrays in an assignment context, and the
28171 aggregate has component associations that require sliding on
28172 assignment, force reanalysis of the aggregate to generate a temporary
28173 before the assignment.
28174 (Must_Slide): Make global to the package, for use in Gen_Assign.
28176 2005-02-09 Ed Schonberg <schonberg@adacore.com>
28178 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
28179 unchecked union with no inferable discriminants, return a
28180 Raise_Program_Error node, rather than inserting it at the point the
28182 (Expand_Record_Equality, Component_Equality): Handle properly the case
28183 where some subcomponent is an unchecked union whose generated equality
28184 code raises program error.
28186 2005-02-09 Doug Rupp <rupp@adacore.com>
28188 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
28189 [VMS] (#define exit hack): Remove.
28191 2005-02-09 Pascal Obry <obry@adacore.com>
28192 Arnaud Charlet <charlet@adacore.com>
28194 * init.c (__gnat_initialize): Add a new parameter eh which contains the
28195 address of the exception registration. The Win32 version of this
28196 routine calls __gnat_install_SEH_handler() to initialize the SEH
28197 (Structured Exception Handling) handler.
28198 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
28199 SEH (Structured Exception Handling) now.
28200 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
28201 (__gnat_initialize for ppc-vxworks): Adjust comments and the
28202 preprocessor condition protecting the call to the extra eh setup
28203 subprogram, which is only available for the ppc target.
28204 (__gnat_clear_exception_count): replaced reference to
28205 variable taskIdCurrent by call to taskIdSelf(), cleaner.
28207 * seh_init.c: New file.
28209 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
28210 (GNATBIND_OBJS): Idem.
28212 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
28213 routine takes a new parameter (a pointer to the exception registration
28214 for the SEH (Structured Exception Handling) support.
28216 * raise.h: (__gnat_install_SEH_handler): New prototype.
28217 Update copyright notice.
28219 * s-tassta.adb (Task_Wrapper): Declare the exception registration
28220 record and initialize it by calling __gnat_install_SEH_handler.
28222 2005-02-09 Vincent Celier <celier@adacore.com>
28224 * make.adb (Gnatmake): Do not fail when the main project has no object
28227 2005-02-09 Doug Rupp <rupp@adacore.com>
28229 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
28230 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
28231 [VMS]: Add translations for g-enblsp.adb.
28233 * s-asthan-vms.adb: Removed.
28234 * s-asthan-vms-alpha.adb: Added.
28236 2005-02-09 Pascal Obry <obry@adacore.com>
28238 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
28239 (LIBGNAT_OBJS): Add seh_init.o.
28241 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28244 * Makefile.in: Link all gnat tools with -static-libgcc, since
28245 -shared-libgcc is now used by default on some systems (e.g. linux with
28247 Remove references to Makefile.prolog/generic, no longer used.
28249 2005-02-09 Vincent Celier <celier@adacore.com>
28251 * prj-makr.adb (Process_Directory): Put file name in canonical case
28252 before matching against the patterns.
28253 If gnatname has been invoked as <prefix>-gnatname
28254 then invoke the compiler as <prefix>-gcc, not just "gcc".
28256 2005-02-09 Ed Schonberg <schonberg@adacore.com>
28258 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
28259 with expansion disabled. The actual subtype is needed among other
28260 places when the selected component appears in the context of a loop
28261 bound, and denotes a packed array.
28262 (Operator_Check): Always use the first subtype in the
28263 error message, to avoid the appearance of internal base types.
28264 (Transform_Object_Operation): Copy each actual in full
28265 to the parameter associations of the constructed call, rather than
28266 using the shallow copy mechanism of New_Copy_List. This ensures that
28267 the chaining of named associations is done properly.
28268 (Complete_Object_Operation): Rewrite node, rather than
28269 replacing it, so that we can trace back to the original selected
28272 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
28273 and calls that use object notation, if the called function is not
28274 declared in a withed unit, place the elaboration constraint on the
28275 unit in the context that makes the function accessible.
28276 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
28277 imposes an elaboration constraint between two packages.
28279 2005-02-09 Ed Schonberg <schonberg@adacore.com>
28281 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
28282 views of a private type after handling its private dependents, to
28283 maintain proper stack discipline between entry and exit from the
28286 2005-02-09 Cyrille Comar <comar@adacore.com>
28288 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
28289 Minor reformatting.
28291 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28293 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
28294 fields for foreign threads.
28296 2005-02-09 Doug Rupp <rupp@adacore.com>
28298 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
28299 recursion warnings when compiled with -gnatdm.
28301 2005-02-09 Robert Dewar <dewar@adacore.com>
28303 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
28304 Slight fix to documentation of -gnaty with no parameters
28306 * xr_tabls.ads: Add ??? comment for missing overall comment
28308 * xsinfo.adb: Make default file name be sinfo.h, since this is what
28309 we now use by default.
28311 * xsnames.adb: Adjust end of file test to look for five space followed
28312 by '#' instead of six spaces. The format of xsnames.adb was modified
28313 in the last update.
28315 * a-numeri.ads: Add reference to AI-388 for greek letter pi
28318 * clean.adb: Minor reformatting.
28320 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
28321 gnatname.adb: Minor reformatting
28322 Add 2005 to copyright output when utility is run
28324 * csets.adb: Eliminate obsolete comment
28326 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
28329 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
28331 2005-02-09 Sergey Rybin <rybin@adacore.com>
28333 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
28334 the difference between compact and incompact layout and add the record
28335 representation clause to the example illustrating different layouts.
28336 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
28337 component clauses").
28339 2005-02-09 Florian Villoing <villoing@adacore.com>
28341 * gnat_ugn.texi: Fix typos.
28342 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
28344 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
28345 in the generated documentation.
28347 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28349 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
28351 Update linker wrapper when linking with non GNU C++.
28353 2005-02-09 Pascal Obry <obry@adacore.com>
28356 Document the procedure to debug the DllMain routine on Windows.
28357 Add note about -funwind-tables and mixed Ada and C/C++ programming in
28359 Document new BIND qualifer /RETURN_CODES=VMS.
28361 2005-02-09 Ben Brosgol <brosgol@adacore.com>
28363 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
28364 Edited gnatmetric chapter
28366 2005-02-09 Robert Dewar <dewar@adacore.com>
28369 Changes to document new wide wide character support
28371 Update documentation on Normalize_Scalars and Initialize_Scalars
28373 2005-02-09 Pascal Obry <obry@adacore.com>
28375 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
28377 2005-02-09 Jose Ruiz <ruiz@adacore.com>
28379 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
28380 from the VxWorks kernel) that is needed for getting the active
28381 priority of the different tasks.
28383 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
28384 Use a pragma Elaborate_Body in the spec file instead.
28385 Noticed by code reading.
28387 2005-02-09 Thomas Quinot <quinot@adacore.com>
28389 * exp_util.ads: Minor correction in comment.
28391 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28393 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
28394 since this procedure is now too complex to be worth inlining.
28396 2005-02-09 Richard Henderson <rth@redhat.com>
28398 * utils.c (gnat_define_builtin): Remove.
28399 (gnat_install_builtins): Use build_common_builtin_nodes.
28401 2005-02-09 Arnaud Charlet <charlet@adacore.com>
28403 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
28404 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
28405 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
28406 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
28407 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
28408 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
28409 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
28410 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
28411 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
28412 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
28413 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
28414 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
28415 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
28416 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
28417 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
28418 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
28419 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
28420 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
28421 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
28422 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
28423 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
28424 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
28425 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
28426 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
28427 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
28428 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
28429 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
28430 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
28431 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
28432 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
28433 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
28434 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
28435 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
28436 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
28439 2005-01-27 Laurent Guerby <laurent@guerby.net>
28441 * Makefile.in: Fix a-intnam.ads from previous commit,
28442 add 2005 to copyright.
28443 * a-intman-rtems.ads: Renamed to...
28444 * a-intnam-rtems.ads:
28446 2005-01-27 Laurent Guerby <laurent@guerby.net>
28448 * Makefile.in: Rename GNAT RTEMS specific files.
28449 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
28450 5rosinte.ads, 5rparame.adb: Replaced by files below.
28451 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
28452 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
28454 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
28455 Laurent Guerby <laurent@guerby.net>
28458 * 5rosinte.ads: Add No_Key constant.
28459 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
28460 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
28462 2005-01-26 Laurent Guerby <laurent@guerby.net>
28465 * i-cobol.adb (Valid_Numeric): Handle zero length case.
28467 2005-01-20 Richard Henderson <rth@redhat.com>
28469 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
28470 a-intnam-linux.ads and system-linux-alpha.ads.
28471 * a-intnam-linux-alpha.ads: Remove file.
28472 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
28473 * system-linux-alpha.ads: New file.
28475 2005-01-18 Jakub Jelinek <jakub@redhat.com>
28478 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
28479 set to the new string.
28481 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
28483 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
28486 2005-01-18 Richard Henderson <rth@redhat.com>
28488 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
28489 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
28491 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
28493 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
28495 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
28496 (GCC_ZCX_Support): Likewise.
28498 2005-01-11 Bastian Blank <waldi@debian.org>
28500 * system-linux-s390.ads: Define Preallocated_Stacks.
28501 * system-linux-s390x.ads: Likewise.
28503 2005-01-04 Arnaud Charlet <charlet@adacore.com>
28505 * gnat_ugn.texi: Fix texi errors with null variables.
28507 2005-01-03 Thomas Quinot <quinot@adacore.com>
28509 * gen-soccon.c: New utility program to generate g-soccon.ads
28512 * socket.c, gsocket.h: Split inclusion of system header files into a
28513 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
28515 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
28516 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
28517 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
28518 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
28519 should not be edited by hand anymore, but should be regenerated using
28522 2005-01-03 Robert Dewar <dewar@adacore.com>
28523 Ed Schonberg <schonberg@adacore.com>
28524 Vincent Celier <celier@adacore.com>
28526 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
28527 on/off, since this is an obsolescent feature, for which we now generate
28530 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
28531 warning mode is set and obsolescent usage of this attribute occurs.
28532 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
28533 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
28534 predates, and partly motivates, the adoption of the AI.
28535 Implement new Ada 2005 attribute Mod
28537 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
28540 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
28542 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
28543 pragma restrictions.
28544 New entry for Ada 2005 attribute Mod.
28547 Add recognition of new pragma Restrictions No_Dependence
28548 Recognize restriction No_Obsolescent_Features at parse time
28550 * bcheck.adb: Add circuitry for checking for consistency of
28551 No_Dependence restrictions.
28553 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
28556 * restrict.ads, restrict.adb: Add subprograms to deal with
28557 No_Dependence restrictions.
28559 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
28562 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
28563 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
28565 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
28566 dummy parameter to scng instantiation.
28567 Needed for new restriction No_Obsolescent_Features
28569 * scn.adb: (Obsolescent_Check): New procedure
28570 Needed for new restriction No_Obsolescent_Features
28572 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
28573 specified by AI-285, needed for implementation of AI-388 (adding greek
28574 pi to Ada.Numerics).
28575 Add new generic formal to scng, needed for new restriction
28576 No_Obsolescent_Features.
28578 * s-rident.ads: Add new restriction No_Obsolescent_Features.
28580 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
28581 restrictions lines.
28582 (Scan_ALI): When finding an unexpected character on an R line, raise
28583 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
28584 Ignore_Errors is True, default restrictions are set and scanning of the
28585 ALI file continues with the next line. Also, when Bad_R_Line is raised
28586 and Ignore_Errors is True, skip to the end of le line.
28588 * sem_ch10.adb: Check that explicit with's do not violate
28589 No_Dependence restrictions.
28590 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
28591 illegal context clauses containing child units of instance.
28593 * sem_prag.adb: Processing and checking for new No_Dependence
28595 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
28596 analyze and check the External argument.
28598 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
28600 2005-01-03 Robert Dewar <dewar@adacore.com>
28602 * atree.adb: Add a fifth component to entities
28603 This allows us to add 32 flags and four new fields
28605 * atree.ads: Add a fifth component to entities
28606 This allows us to add 32 flags and four new fields
28608 * einfo.ads, einfo.adb: Document new fields and new flags now available
28609 Add routines for printing new fields
28611 * treepr.adb: Call routines to print out additional fields if present
28613 2005-01-03 Arnaud Charlet <charlet@adacore.com>
28615 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
28616 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
28618 * Makefile.in: Add support to build shared Ada libraries on solaris x86
28619 Remove gpr2make, replaced by gprmake.
28620 Remove references to gnatmem and libaddr2line.
28621 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
28622 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
28623 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
28624 a-numaux-darwin.ads and a-numaux-darwin.adb
28625 Enable mlib-tgt-lynxos.adb on lynxos.
28627 * Make-lang.in: Remove rules for gpr2make.
28628 When generating sdefault.adb, do not call Relocate_Path
28629 on S3 for function Target_Name, as it is not a path.
28630 Remove references to gnatmem and libaddr2line.
28632 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
28635 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
28637 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
28638 address is incompatible with its base type alignment constraints when
28639 this can be decided statically.
28641 2005-01-03 Olivier Hainque <hainque@adacore.com>
28643 * decl.c (compatible_signatures_p): New function. The intended purpose
28644 is to check if two function signatures for a call-site and a callee are
28645 compatible enough for the call to be valid. The underlying purpose is
28646 to check if a call to a mapped builtin is using the right interface.
28647 The current code actually does not check antyhing - this a placeholder
28648 for future refinements.
28649 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
28650 builtin calls for convention Intrinsic.
28652 * gigi.h (builtin_decl_for): Declare (new function).
28654 * utils.c (gnat_install_builtins): Install the target specific builtins.
28655 (builtin_decl_for): New function, provide a dummy body for now.
28657 2005-01-03 Geert Bosch <bosch@adacore.com>
28659 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
28660 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
28661 (Pred): Implement in terms of Succ.
28663 * trans.c (convert_with_check): Reimplement conversion of float to
28666 2005-01-03 Ed Schonberg <schonberg@adacore.com>
28667 Vincent Celier <celier@adacore.com>
28669 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
28670 bounds can be negative, and must be declared Int, not Nat.
28672 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
28673 array is checked after using the index in the array.
28675 * makegpr.adb (Add_Switches): Check if there is a package for the
28676 processor. If there is no package, do not look for switches.
28678 2005-01-03 Ed Schonberg <schonberg@adacore.com>
28680 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
28681 generation of predefined stream operations (specs and bodies) should
28682 proceed. Under various restrictions these subprograms must not be
28685 2005-01-03 Thomas Quinot <quinot@adacore.com>
28688 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
28689 amount of PCS-specific code in RACW stubs generation.
28690 (Copy_Specification): Set Etype on copied formal parameter entities, as
28691 this information is needed for PolyORB stubs generation.
28692 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
28693 variable Dynamic_Async.
28694 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
28695 (Build_RPC_Receiver_Specification): Make generic again, as recent
28696 changes have allowed RPC receivers to have the same profile for both
28697 variants of the PCS.
28698 Reorganise RPC receiver generation to reduce differences between the
28699 structure of GARLIC and PolyORB RPC receivers.
28700 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
28702 Simplify elaboration code for RCI packages.
28704 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
28705 generation to reduce differences between the structure of GARLIC and
28706 PolyORB RPC receivers.
28708 * s-stratt.adb: Fix typo in comment.
28710 2005-01-03 Thomas Quinot <quinot@adacore.com>
28712 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
28713 copied from Make_Init_Call).
28715 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
28716 reads and assignments on a temporary variable declared with appropriate
28719 2005-01-03 Robert Dewar <dewar@adacore.com>
28721 * i-c.adb (To_C): Raise CE if string is null and Append_Null
28723 2005-01-03 Robert Dewar <dewar@adacore.com>
28725 * i-cstrin.adb (Update): Do not append a null in form called with a
28726 String. This avoids unintended behavior.
28728 2005-01-03 Arnaud Charlet <charlet@adacore.com>
28731 * init.c: Fix warnings on Free BSD section.
28733 2005-01-03 Arnaud Charlet <charlet@adacore.com>
28736 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
28739 2005-01-03 Vincent Celier <celier@adacore.com>
28741 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
28742 libraries when Unique_Compile is True (-u switch).
28745 2005-01-03 Robert Dewar <dewar@adacore.com>
28747 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
28748 upper case letter or underscore after W, as allowed by spec.
28750 2005-01-03 Arnaud Charlet <charlet@adacore.com>
28752 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
28753 darwin port by using proper type definitions from header files.
28754 Use SIGTERM instead of SIGABRT for SIGADAABORT.
28756 2005-01-03 Robert Dewar <dewar@adacore.com>
28758 * par.adb: Enhance error message handling for configuration file
28761 2005-01-03 Robert Dewar <dewar@adacore.com>
28763 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
28764 removed during the previous update (test properly for case of dividing
28765 largest negative number by -1, which generates overflow).
28767 2005-01-03 Ed Schonberg <schonberg@adacore.com>
28768 Sergey Rybin <rybin@adacore.com>
28770 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
28771 to use as the defining identifier for a formal package.
28772 (Remove_Parent): If the instance takes place within (an instance of)
28773 a sibling, preserve private declarations of common parent.
28775 2005-01-03 Ed Schonberg <schonberg@adacore.com>
28777 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
28778 to determine whether one of the operands is a fixed-point type for
28779 which a user-defined multiplication or division operation might be
28782 * sem_res.adb (Valid_Conversion): The legality rules for conversions
28783 of access types are symmetric in Ada 2005: either designated type can
28786 2005-01-03 Vincent Celier <celier@adacore.com>
28788 * s-fileio.adb (Temp_File_Record): Change length of string component
28789 Name from L_tmpnam + 1 to max_path_len + 1.
28791 2005-01-03 Arnaud Charlet <charlet@adacore.com>
28793 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
28794 Self_Id.Deferral_Level = 0.
28795 (Do_Pending_Action): Move this function to the spec.
28797 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
28798 Do_Pending_Action explicitely when needed, in case we're using
28799 No_Abort restrictions.
28801 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
28802 deferral level since it will not get changed by the generated code.
28803 Keeping a default value of 1 would prevent some operations (e.g.
28804 select or delay) to proceed successfully.
28806 2005-01-03 Ben Brosgol <brosgol@adacore.com>
28807 Robert Dewar <dewar@adacore.com>
28808 Cyrille Comar <comar@adacore.com>
28810 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
28811 porting guide chapter (vms version).
28812 Revised doc title (removed "for native platforms") and subtitle.
28813 Add discussion on warning flag for obsolescent features. First we
28814 note that it applies to obsolete GNAT features, which was previously
28815 omitted. Second we contrast the behavior with that of the new
28816 Ada 2005 AI-368 restriction No_Obsolescent_Features.
28817 Preliminary rewriting of GNAT & libraries chapter in order to take
28818 into account default project locations & new project manager
28821 2005-01-03 Robert Dewar <dewar@adacore.com>
28823 * cstand.adb (Create_Operators): Clean up format and documentation of
28824 unary and binary operator result tables. No change in code, just
28825 reformatting and addition of comments.
28827 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
28828 sem_ch2.adb: Minor reformatting
28830 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
28831 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
28832 comments for Tree_Read and Tree_Write.
28834 2005-01-03 Pascal Obry <obry@adacore.com>
28836 * exp_attr.ads: Minor reformatting.
28838 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
28840 * comperr.adb (Compiler_Abort): Add specialized message for GAP
28843 2005-01-03 Ed Schonberg <schonberg@adacore.com>
28845 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
28846 whether the ancestor type is private, as may be the case with nested
28849 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
28852 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
28854 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
28856 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
28857 * utils2.c (build_unary_op): Likewise.
28859 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28861 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
28863 2004-12-19 Richard Henderson <rth@redhat.com>
28865 * trans.c (gigi): Update gimplify_body call.
28867 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
28869 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
28871 2004-12-07 Ed Falis <falis@adacore.com>
28873 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
28874 current task being suspended.
28876 * init.c (__gnat_clear_exception): added to reset VxWorks exception
28878 (__gnat_map_signal): removed test for current task being suspended.
28880 2004-12-07 Gary Dismukes <dismukes@adacore.com>
28882 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
28883 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
28884 targets (such as AAMP).
28886 2004-12-07 Ed Schonberg <schonberg@adacore.com>
28888 * atree.adb (Visit_Itype): Create a new name for the generated itype,
28889 because the back-end may otherwise treat it as a redefinition of the
28892 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
28894 * back_end.adb (Scan_Back_End_Switches): Accept --param.
28896 * lang-specs.h: Accept --param.
28898 2004-12-07 Vincent Celier <celier@adacore.com>
28900 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
28901 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
28902 Current_Body_Suffix => Ada_Body_Suffix).
28903 Take into account Externally_Built attribute.
28905 * clean.adb (In_Extension_Chain): Always return False when one of the
28906 parameter is No_Project.
28907 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
28908 Ada_Language_Index).
28909 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
28910 Process_Languages for procedure Parse).
28912 * gnatcmd.adb (Carg_Switches): New table.
28913 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
28914 Adapt to name changes in package Prj (Current_Spec_Suffix =>
28915 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
28917 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
28918 Header_Num and function Hash are now declared in package Prj,
28921 * prj.adb (Suffix_Of): New function.
28922 (Set (Suffix)): New procedure.
28923 (Hash): One function moved from Prj.Com
28924 (Is_Present, Language_Processing_Data_Of): New functions
28925 (Set): Two new procedures
28926 (Add_Language_Name, Display_Language_Name): New procedures
28928 * prj.ads: (Suffix_Of): New function
28929 (Set (Suffix)): New procedure
28930 Add several types and tables for multi-language support.
28931 (Header_Num): Type moved from Prj.Com
28932 (Hash): Two functions moved from Prj.Com
28933 (Is_Present, Language_Processing_Data_Of): New functions
28934 (Set): Two new procedures
28935 (Add_Language_Name, Display_Language_Name): New procedures
28936 (Naming): Component name changes:
28937 Current_Spec_Suffix => Ada_Spec_Suffix,
28938 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
28939 Impl_Suffixes, Supp_Suffixes.
28940 (Project_Data): New components: Externally_Built, Supp_Languages,
28941 First_Language_Processing, Supp_Language_Processing, Default_Linker,
28942 Default_Linker_Path.
28944 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
28945 new package Language_Processing with its attributes (Compiler_Driver,
28946 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
28947 Binder_Driver, Default_Linker).
28949 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
28950 (Header_Num): Type moved to package Prj
28952 * prj-env.adb: Adapt to name changes in package Prj
28953 (Current_Spec_Suffix => Ada_Spec_Suffix,
28954 Current_Body_Suffix => Ada_Body_Suffix).
28956 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
28957 default to the project path, except the "-" is one of the directories
28958 in env var ADA_PROJECT_PATH.
28959 (Current_Project_Path): Global variable, replacing Project_Path
28960 that was in the body of Prj.Part.
28961 (Project_Path): New function
28962 (Set_Project_Path): New procedure
28963 Initialize Current_Project_Path during elaboration of the package
28964 Remove dependency on Prj.Com, no longer needed
28966 * prj-ext.ads (Project_Path): New function
28967 (Set_Project_Path): New procedure
28969 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
28970 suffix is defined for language <lang>.
28971 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
28972 accessing directly the components of Naming.
28973 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
28974 Reorganise of this package.
28975 Break procedure Check in several procedures.
28977 * prj-nmsc.ads: Replace all procedures (Ada_Check,
28978 Other_Languages_Check and Language_Independent_Check) with a single
28981 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
28982 Process_Languages, no longer needed.
28984 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
28985 Current_Project_Path.
28986 Remove elaboration code, moved to the body of Prj.Ext
28987 Use new function Prj.Ext.Project_Path instead of old variable
28989 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
28990 When comparing with project paths on the stack, first put the resolved
28991 path in canonical case.
28992 (Parse_Single_Project): Set the path name of the project file in the
28993 tree to the normalized path.
28995 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
28996 parameter Process_Languages, no longer needed.
28997 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
28998 Other_Languages_Check.
29000 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
29001 to store the resolved canonical path of the project file.
29002 Remove dependency to Prj.Com, no longer needed
29004 * prj-util.adb: Adapt to name changes in package Prj
29005 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
29008 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
29009 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
29010 Externally_Built, Include_Option, Language_Processing.
29012 * makegpr.adb: Numerous changes due to changes in packages
29015 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
29016 default to the project path, except whe "-" is one of the directories
29017 in env var ADA_PROJECT_PATH.
29018 (Gnatls): In verbose mode, add the new section "Project Search Path:"
29020 2004-12-07 Robert Dewar <dewar@adacore.com>
29022 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
29024 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
29027 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
29028 flag. No longer needed now that we handle this in gnat1drv.adb.
29030 * repinfo.ads: Minor reformatting
29032 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29033 Olivier Hainque <hainque@adacore.com>
29034 Eric Botcazou <ebotcazou@adacore.com>
29036 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
29037 TYPE_SIZE_UNIT of result type if SIZE is not specified.
29038 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
29039 of a bitfield, which we know is useless and causes trouble because of
29040 alignment implications.
29042 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
29044 (process_attributes): Clear DECL_COMMON again when a section attribute
29046 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
29047 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
29048 (create_field_decl): Special case ADDRESSABLE negative to mean
29049 "no bitfield creation", to be used by make_aligning_type. Don't
29050 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
29051 fields claimed addressable still have to be bitfields. Use
29052 value_factor_p instead of a raw binop construction to check for the
29053 position's alignment.
29055 2004-12-07 Geert Bosch <bosch@adacore.com>
29057 * eval_fat.adb: Revert previous change.
29059 2004-12-07 Thomas Quinot <quinot@adacore.com>
29060 Ed Schonberg <schonberg@adacore.com>
29062 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
29063 with an implicit dereference as its prefix, use
29064 Insert_Explicit_Dereference instead of merely rewriting the prefix into
29065 an explicit dereference. This ensures that a reference to the original
29066 prefix is generated, if appropriate.
29068 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
29069 dereference is rewritten to an explicit one, generate a reference to
29070 the entity denoted by its prefix using the original prefix node, so
29071 the dereference can be properly recorded as a read of the denoted
29072 access value, if appropriate.
29074 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
29075 emitting 'assigned but never read' warning on a variable on the basis
29076 that it has an access type.
29077 (Check_References): Emit unreferenced warning when the scope is a
29080 2004-12-07 Robert Dewar <dewar@adacore.com>
29081 Ed Schonberg <schonberg@adacore.com>
29083 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
29086 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
29087 leaving call unchanged.
29088 This deals with the case where the pragma Import specified
29089 an external name, to be handled by the back end.
29091 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
29092 subprogram which is Imported with convention Intrinsic if an
29093 External_Name argument is specified.
29094 (Process_Import_Or_Interface): Properly diagnose link name argument.
29095 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
29096 with Sem_Ch6.Cannot_Inline.
29097 (Process_Inline): Provide separate warning for inapplicable inline
29099 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
29100 treatment is uniform on different targets.
29102 2004-12-07 Ed Schonberg <schonberg@adacore.com>
29104 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
29105 construct is rewritten, preserve end label to permit source navigation.
29107 2004-12-07 Thomas Quinot <quinot@adacore.com>
29109 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
29110 Specific_Build_Stub_Target): New subprograms.
29111 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
29112 the PCS implementation used, using the above PCS-customized subprograms.
29113 Minor reformatting.
29114 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
29115 for generation of DSA code targeted to the PolyORB PCS.
29116 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
29117 implementation of the partition communication subsystem in ancillary
29119 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
29120 PolyORB_Support.Build_Stub_Type): New subrograms containing the
29121 PCS-specific part of Add_Stub_Type.
29122 (Insert_Partition_Check): Use runtime library function to perform
29125 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
29126 (RE_Same_Partition): New entity, from s-parint.
29128 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
29130 2004-12-07 Gary Dismukes <dismukes@adacore.com>
29132 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
29133 Output the copyright message on a separate line from the version
29136 2004-12-07 Joel Brobecker <brobecker@adacore.com>
29138 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
29139 compile-time warning.
29141 2004-12-07 Robert Dewar <dewar@adacore.com>
29143 * g-regpat.adb: (Match): Change a misuse of or to or else
29145 2004-12-07 Ed Schonberg <schonberg@adacore.com>
29148 (Generate_Reference): Handle properly a reference to an entry formal,
29149 when an accept statement has a pragma Unreferenced for it.
29151 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
29152 and the Has_Pragma_Unreferenced flag for each formal before analyzing
29153 the body, to ensure that warnings are properly emitted for each accept
29154 statement of a given task entry.
29156 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
29158 * Makefile.in: Add support for foreign threads on VMS.
29160 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
29162 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
29164 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
29166 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
29168 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
29170 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
29172 2004-12-07 Robert Dewar <dewar@adacore.com>
29174 * nlists.adb (Prepend_Debug): Remove parameters and nest within
29176 (Remove_Next_Debug): Same fix
29178 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
29179 maintain back pointers now, though we did not used to, and comments
29181 (Prepend): Remove pragma Inline.
29182 (Remove_Next): Same cleanup
29184 2004-12-07 Thomas Quinot <quinot@adacore.com>
29186 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
29187 used to record an implicit dereference as a read operation on its
29188 prefix when operating under -gnatc. Necessary to avoid spurious
29189 'variable assigned but never read' warnings in that mode.
29190 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
29191 is a non-overloaded implicit dereference, call the above subprogram to
29192 ensure proper recording of references.
29194 2004-12-07 Gary Dismukes <dismukes@adacore.com>
29196 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
29197 to be resolved later as part of Analyze_Iteration_Scheme's call to
29200 2004-12-07 Ed Schonberg <schonberg@adacore.com>
29202 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
29203 prefix is not a scalar type, place error message on prefix, not on
29206 2004-12-07 Bernard Banner <banner@adacore.com>
29208 * vxaddr2line.adb: Add support for x86 vxworks
29210 2004-12-07 Thomas Quinot <quinot@adacore.com>
29212 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
29213 documentation of the behaviour of these functions when passed an IP
29214 address that has no record in the system hosts database and no reverse
29217 * cstand.adb, a-tags.ads: Fix typos in comment.
29219 2004-12-07 Robert Dewar <dewar@adacore.com>
29221 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
29222 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
29223 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
29224 s-poosiz.ads: Minor reformatting
29226 * make.adb: Minor reformatting
29227 Add some ??? comments asking for more comments
29229 * s-poosiz.adb: Minor reformatting
29230 Add comments on alignment requirement
29232 * sinfo.ads: Remove obsolete comment and fix typo.
29234 2004-12-07 Vincent Celier <celier@adacore.com>
29235 Sergey Rybin <rybin@adacore.com>
29237 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
29238 Files" with the new tool and package names.
29239 Reformatting to suppress most of the warnings for line too long
29240 Document the new section "Project Search Path:" in the output of
29242 Add gnatmetric section
29244 2004-12-07 Vincent Celier <celier@adacore.com>
29246 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
29247 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
29248 and -eit to -ept. Added qualifier
29249 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
29251 2004-11-27 Andreas Schwab <schwab@suse.de>
29253 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
29255 2004-11-25 Arnaud Charlet <charlet@adacore.com>
29257 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
29258 internal implementation unit GNAT.Sockets.Thin,
29259 as their usage for sockets is non-portable (using the read and write
29260 functions from the system runtime library is fine on UNIX but won't
29261 work under Windows).
29263 * mingw32.h: Update copyright notice.
29265 2004-11-25 Arnaud Charlet <charlet@adacore.com>
29267 * ada-tree.h: Minor reformatting of previous change to avoid lines
29268 longer than 79 characters.
29270 2004-11-25 Olivier Hainque <hainque@adacore.com>
29272 * tb-gcc.c: GCC infrastructure based implementation of
29275 2004-11-24 Steven Bosscher <stevenb@suse.de>
29277 * misc.c (gnat_post_options): Don't clear
29278 flag_inline_functions.
29280 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
29283 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
29286 2004-11-21 Andreas Jaeger <aj@suse.de>
29288 * stylesw.adb: Change Style_Check_Subprogram_Order to
29289 Style_Check_Order_Subprograms.
29291 2004-11-18 Arnaud Charlet <charlet@adacore.com>
29293 * adaint.h, adaint.c
29294 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
29296 Add also a cast to kill another warning.
29297 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
29298 parameter with the priority class of the parent process instead of
29299 always using the NORMAL_PRIORITY_CLASS.
29300 (__gnat_dup): New function.
29301 (__gnat_dup2): New function.
29302 (__gnat_is_symbolic_link): Enable the effective body of this
29303 function when __APPLE__ is defined.
29305 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
29308 2004-11-18 Olivier Hainque <hainque@adacore.com>
29310 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
29311 address of which may be used to represent "others" and "all others"
29312 choices in exception tables, instead of the current harcoded
29313 (void *)0 and (void *)1.
29314 (Setup_Exception): Do nothing in the GNAT SJLJ case.
29316 * gigi.h (others_decl, all_others_decl): New decls representing the
29317 new Others_Value and All_Others_Value objects.
29318 (struct attrib): Rename "arg" component as "args", since GCC expects a
29319 list of arguments in there.
29321 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
29322 corresponding objects exported by a-exexpr, instead of hardcoded dummy
29325 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
29326 others_decl and all_others_decl instead of hardcoded dummy addresses
29327 to represent "others" and "all others" choices, which is cleaner and
29328 more flexible with respect to the possible eh pointer encoding policies.
29330 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
29331 (process_attributes): Account for the naming change of the "args"
29332 attribute list entry component.
29334 * decl.c (build_attr_list): Rename into prepend_attributes to allow
29335 cumulating attributes for different entities into a single list.
29336 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
29337 attributes for the current entity and propagate first subtype
29338 attributes to other subtypes.
29339 <E_Procedure>: Attribute arguments are attr->args and not
29340 attr->arg any more.
29341 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
29342 argument provided, as this is what GCC expects. Use NULL_TREE instead
29345 2004-11-18 Robert Dewar <dewar@adacore.com>
29347 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
29348 Minor reformatting througout (including new function specs)
29349 Add ??? comments asking for clarification.
29351 2004-11-18 Thomas Quinot <quinot@adacore.com>
29353 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
29354 incomplete duplicate implementation of this subprogram from butil.
29356 2004-11-18 Thomas Quinot <quinot@adacore.com>
29358 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
29359 procedures factors the common processing for building an RPC receiver
29360 for an RCI package or an RACW type.
29361 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
29362 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
29363 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
29365 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
29367 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
29369 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
29370 distribution subprogram identifiers that are either subprogram numbers
29372 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
29373 string distribution identifiers assigned to a given subprogram.
29374 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
29375 (Add_RAS_Dereference_TSS): Add comments.
29376 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
29377 is not referenced yet because it will be used by the PolyORB DSA
29379 (Insert_Partition_Check): Remove fossile code.
29380 (First_RCI_Subprogram_Id): Document this constant.
29381 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
29383 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
29384 replaced with calls to Get_Library_Unit_Name_String. Previously there
29385 were several instances of the same code in different locations in the
29386 compiler; this checkin completes the replacement of all of these
29387 instances with calls to a common subprogram.
29388 Minor reformatting.
29390 * sem_dist.adb: Remove comment noting that RPC receiver generation
29391 should be disabled for RACWs that implement RASs.
29392 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
29394 * sem_util.ads, sem_util.adb (Has_Stream): New function
29395 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
29396 qualified name of a library unit into the name buffer.
29397 (Note_Possible_Modification): Generate a reference only
29398 if the context comes from source.
29400 * snames.ads (PCS_Names): New subtype corresponding to names of
29401 supported implementations of the Partition Communication Subsystem
29402 (PCS) (i.e. the runtime library support modules for the distributed
29405 2004-11-18 Robert Dewar <dewar@adacore.com>
29406 Ed Schonberg <schonberg@adacore.com>
29408 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
29409 (Has_Rep_Pragma): New function
29410 (Has_Attribute_Definition_Clause): New function
29411 (Record_Rep_Pragma): Moved here from sem_ch13.adb
29412 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
29414 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
29416 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
29417 (Expand_Pragma_Psect_Object): New procedure
29418 These procedures contain the revised and cleaned up processing for
29419 these two pragmas. This processing was formerly in Sem_Prag, but
29420 is more appropriately moved here. The cleanup involves making sure
29421 that the pragmas are properly attached to the tree, and that no
29422 nodes are improperly shared.
29424 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
29425 pragmas to Exp_Prag, which is more appropriate.
29426 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
29427 check for duplicates Remove use of Is_Psected flag, no longer needed.
29428 Use new Make_String_Literal function with string.
29430 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
29431 that are functions return universal values, that have to be converted
29432 to the context type.
29433 Use new Make_String_Literal function with string.
29434 (Get_Stream_Convert_Pragma): New function, replaces the use of
29435 Get_Rep_Pragma, which had to be kludged to work in this case.
29437 * freeze.adb: Use new Has_Rep_Pragma function
29439 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
29440 function with string.
29441 Use new Has_Rep_Pragma function.
29443 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
29446 2004-11-18 Robert Dewar <dewar@adacore.com>
29448 * errout.ads, errout.adb: (First_Sloc): New function
29450 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
29451 check (-gnatyx) instead of being included as a redundant construct
29454 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
29455 Style_Check_Order_Subprograms.
29457 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
29458 stylesw.adb: Add Style_Check_Xtra_Parens
29460 * usage.adb: Add line for -gnatyx (check extra parens)
29462 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
29464 2004-11-18 Ed Schonberg <schonberg@adacore.com>
29465 Robert Dewar <dewar@adacore.com>
29467 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
29468 discriminant of a constrained subtype, analyze the copy of the
29469 corresponding constraint, because in some cases it may be only
29470 partially analyzed.
29471 Removes long-lived ??? comments.
29473 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
29474 handled controlled or secondary-stack expressions within the
29475 iteration_scheme of a loop.
29477 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
29478 bounds that may contain functions calls, to prevent memory leaks when
29479 the bound contains a call to a function that uses the secondary stack.
29480 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
29481 generate temporaries for loop bounds that might contain function calls
29482 that require secondary stack and/or finalization actions.
29484 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
29485 selected component and the selector is overloadable (not just a
29486 function) treat as function call, Analyze_Call will disambiguate if
29488 (Analyze_Selected_Component): Do not generate an actual subtype for the
29489 selected component if expansion is disabled. The actual subtype is only
29490 needed for constraint checks.
29491 (Analyze_Allocator): If restriction No_Streams is set, then do
29492 not permit objects to be declared of a stream type, or of a
29493 composite type containing a stream.
29495 * restrict.ads: Remove the a-stream entry from Unit_Array, since
29496 No_Streams no longer prohibits with'ing this package.
29498 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
29499 discriminants, but the parent base has unknown discriminants, there is
29500 no discriminant constraint to inherit. Such a discrepancy can arise
29501 when the actual for a formal type with unknown discriminants is a
29502 similar private type whose full view has discriminants.
29503 (Analyze_Object_Declaration): If restriction No_Streams is set, then
29504 do not permit objects to be declared of a stream type, or of a
29505 composite type containing a stream.
29507 2004-11-18 Ed Schonberg <schonberg@adacore.com>
29509 * exp_dbug.ads: Update documentation to reflect simpler encoding for
29510 protected operations.
29512 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
29513 generated name, it complicates decoding in gdb and hinders debugging
29514 of protected operations.
29515 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
29516 flag for the protected entry barrier function.
29517 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
29518 flag for the protected entry function.
29520 2004-11-18 Nicolas Setton <setton@adacore.com>
29522 * expect.c: Define __unix__ when __APPLE__ is defined.
29524 * Makefile.in: Inform the value of the variable GMEM_LIB in the
29525 Darwin-specific section.
29527 * lang-specs.h: Change the placement of the %1 marker.
29528 Works around the fact that gcc adds -fPIC by default under Darwin.
29530 2004-11-18 Ed Schonberg <schonberg@adacore.com>
29532 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
29533 type of the object with the packed array type, set the Analyzed flag
29534 on the object if it is an entity or simple indexed component, to avoid
29535 spurious type errors.
29537 2004-11-18 Gary Dismukes <dismukes@adacore.com>
29539 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
29540 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
29541 separate line from the version message.
29543 2004-11-18 Ed Falis <falis@adacore.com>
29545 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
29547 (init_float): Eliminate initialization of floating point status for
29548 AE653. The instructions have no effect for vThreads.
29550 2004-11-18 Vincent Celier <celier@adacore.com>
29552 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
29553 gnatbind is invoked with -shared.
29555 2004-11-18 Jose Ruiz <ruiz@adacore.com>
29557 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
29558 for Detect_Blocking which is redundant with the check done within the
29559 procedure Protected_Single_Entry_Call.
29560 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
29561 Detect_Blocking which is redundant with the check done within the
29562 procedure Protected_Single_Entry_Call.
29564 2004-11-18 Vincent Celier <celier@adacore.com>
29566 * makegpr.adb (Compile): Put the compiling switches (in package
29567 Compiler and on the command line) immediately after "-c", instead of
29568 at the end of the command line invocation of the compiler, when
29569 compiling a non-Ada file.
29570 (Build_Global_Archive): When there is no need to rebuild the archive,
29571 set Global_Archive_Exists, so that the archive is passed to the linker
29574 2004-11-18 Robert Dewar <dewar@adacore.com>
29575 Sergey Rybin <rybin@adacore.com>
29578 Remove extra paren check from list of checks for redundant constructs
29579 Add documentation of new -gnatyx style check (check extra parens)
29580 Remove paragraph about gnatelim debug options.
29582 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
29583 objects rather than forbidding dependencies on the package Ada.Streams.
29585 * sinfo.ads: Add ??? note that we should document pragmas passed to
29588 * g-expect.ads: Fix a few typos in the comments.
29590 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
29592 * misc.c (gnat_handle_option): Use %< and %> for quoting in
29595 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
29597 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
29599 2004-11-07 Andreas Schwab <schwab@suse.de>
29601 * Makefile.in (install-gnatlib): Remove spurious hyphen.
29603 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
29606 * Makefile.in (darwin): Set soext to .dylib.
29608 2004-10-26 Vincent Celier <celier@gnat.com>
29609 Thomas Quinot <quinot@act-europe.fr>
29611 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
29612 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
29613 there is no use of GNAT.Sockets.Constants.
29614 Remove remaining pragma Import for C_Write
29615 Remove C_Read and C_Write from internal implementation unit
29616 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
29617 the read and write functions from the system runtime library is fine
29618 on UNIX but won't work under Windows).
29620 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
29621 (Check_Selector): Use C_Recv instead of C_Read.
29622 Selectors are the GNAT.Sockets abstraction to perform a select()
29623 call on a set of descriptors. To allow abortion of an ongoing
29624 select operation, some data is written to a dedicated socket that
29625 is always monitored.
29626 Under Windows, the write and read library functions cannot operate
29627 on sockets, so we need to use send and recv instead, which is portable
29628 across all supported platforms.
29630 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
29631 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
29632 (using the read and write functions from the system runtime library is
29633 fine on UNIX but won't work under Windows).
29635 2004-10-26 Nicolas Setton <setton@act-europe.fr>
29637 * mlib-tgt-darwin.adb: New file.
29639 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
29640 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
29641 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
29642 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
29645 * Makefile.in: Add support for building shared libraries under Darwin.
29646 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
29647 the low level EH init subprogram to be called from __gnat_initialize.
29649 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
29650 indicates which options to pass to the archive indexer.
29652 * mlib-utl.adb: Add support for calling ranlib with additional
29653 options. This is needed for instance under Mac OS X.
29654 (Ranlib_Options): New global variable, used to store the potential
29655 options to pass to ranlib.
29656 (Ar): Use Ranlib_Options when spawning ranlib.
29657 (Initialize): Set the value of ranlib option.
29659 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
29661 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
29662 instead of 8K, to reflect the real potential needs for stack-checking
29665 2004-10-26 Pascal Obry <obry@gnat.com>
29667 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
29669 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
29670 Windows only the initial thread stack size can be set so it is good to
29671 start we a low stack size.
29672 The OS will adjust the size as needed.
29674 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
29675 Nicolas Setton <setton@act-europe.fr>
29677 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
29678 "__unix__" instead of "unix".
29679 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
29680 sections were just mistakenly ignored. The former is
29681 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
29682 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
29683 of hpux. This prevents an unwanted definition of the symbol
29684 convert_addresses in adaint.o.
29686 2004-10-26 Gary Dismukes <dismukes@gnat.com>
29688 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
29689 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
29691 2004-10-26 Cyrille Comar <comar@act-europe.fr>
29693 * a-filico.ads, a-filico.adb: fix incorrect header.
29695 2004-10-26 Javier Miranda <miranda@gnat.com>
29697 * a-ststio.ads: Fix typo in identifier
29699 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
29701 * sem_ch4.adb: Minor reformatting.
29703 2004-10-26 Ed Schonberg <schonberg@gnat.com>
29705 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
29706 enabled, check the result of unary and binary operations when the
29707 expression is the right-hand side of an assignment.
29709 2004-10-26 Vincent Celier <celier@gnat.com>
29711 * clean.adb (Delete): Do not output warnings when in quiet output and
29712 not in verbose mode.
29713 (Force_Deletions): New Boolean flag, defaulted to False
29714 (Delete): Only delete a file if it is writable, and when
29715 Force_Deletions is True.
29716 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
29717 (Usage): Line for new switch -f
29718 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
29721 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
29723 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
29724 JM type only if its size matches that of the wrapper. When a size is
29725 prescribed and the field is not aliased, remove the wrapper of a JM
29726 type only if the size is not greater than that of the packed array.
29727 (gnat_to_gnu_entity): Change the extension of packed array wrappers
29730 2004-10-26 Geert Bosch <bosch@gnat.com>
29732 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
29733 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
29734 (Pred): Implement in terms of Succ.
29736 2004-10-26 Ed Schonberg <schonberg@gnat.com>
29738 * exp_aggr.adb (Safe_Component): An aggregate component that is an
29739 unchecked conversion is safe for in-place use if the expression of the
29740 conversion is safe.
29741 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
29742 be expandable in place even if the aggregate does not come from source.
29743 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
29744 designated object of an allocator in place, rather than building it
29745 first on the stack. The previous scheme forces a full copy of the array,
29746 and may be altogether unsusable if the size of the array is too large
29747 for stack allocation.
29749 2004-10-26 Robert Dewar <dewar@gnat.com>
29751 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
29752 compares if the component is atomic.
29754 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
29755 array assignment if the component type is atomic.
29757 2004-10-26 Ed Schonberg <schonberg@gnat.com>
29758 Eric Botcazou <ebotcazou@act-europe.fr>
29760 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
29761 is aliased and is a by_reference type, do not pass by copy.
29762 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
29763 detect whether the call is in the right side of an assignment or
29764 the expression of an object declaration. Recurse on component
29765 association within aggregates.
29766 Call it in the condition that determines whether the temporary is
29767 necessary for correct stack-checking.
29769 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
29771 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
29772 RACW_Type, used in the PolyORB version.
29773 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
29774 version and the GARLIC version.
29776 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
29777 Rename RCI_Info to RCI_Locator for better consistency between the
29778 GARLIC and PolyORB versions of the distributed systems annex.
29779 (DSA_Implementation_Name): This enumeration lists the possible
29780 implementations of the Partition Communication Subsystem for the
29781 Distributed Systems Annex (DSA). The three available implementations
29782 are the dummy stub implementation (No_DSA), and two versions based on
29783 two different distribution runtime libraries: GARLIC and PolyORB. Both
29784 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
29786 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
29789 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
29790 between the GARLIC and PolyORB versions of the distributed systems
29792 Remove RE_Unbounded_Reclaim_Pool since it is unused.
29794 2004-10-26 Gary Dismukes <dismukes@gnat.com>
29796 * gnat1drv.adb: Suppress calling the back end when
29797 Frontend_Layout_On_Target is true.
29799 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
29801 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
29802 Set_Read_Only): New subprograms.
29803 These new routines allow the user to set or unset the Owner execute
29804 and Owner write permission flags on a file.
29806 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
29807 GNAT.OS_Lib.Set_Executable instead of rolling our own.
29809 2004-10-26 Matthew Gingell <gingell@gnat.com>
29811 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
29813 2004-10-26 Pascal Obry <obry@gnat.com>
29815 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
29816 memory before the faulting page we properly test the process read
29817 access for this address using appropriate Win32 routine.
29818 (HPUX sections): guard with "__hpux__" instead of "hpux".
29820 2004-10-26 Robert Dewar <dewar@gnat.com>
29822 * lib-xref.adb (Generate_Reference): Don't complain about reference to
29823 entry parameter if pragma Unreferenced set, since we do not properly
29824 handle the case of multiple parameters.
29826 2004-10-26 Vincent Celier <celier@gnat.com>
29828 * prj-env.adb: (Contains_ALI_Files): New Boolean function
29829 (Ada_Objects_Path.Add): For a library project, add to the object path
29830 the library directory only if there is no object directory or if the
29831 library directory contains ALI files.
29832 (Set_Ada_Paths.Add.Recursive_Add): Ditto
29834 2004-10-26 Vincent Celier <celier@gnat.com>
29836 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
29837 extension of library projects.
29839 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
29840 path defaults to ".:<prefix>/lib/gnat".
29841 (Parse): For an extending all project, allow direct import of a project
29842 that is virtually extended.
29844 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
29845 the specified name is directly imported, return its ID. Otherwise, if
29846 an extension of this project is imported, return the ID of the
29849 2004-10-26 Robert Dewar <dewar@gnat.com>
29851 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
29852 (Sub3): New procedure, used by Scaled_Divide
29853 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
29854 correct more than one instance of failure to propagate carries
29856 (Double_Divide): Handle overflow case of largest negative number
29857 divided by minus one.
29859 * s-arit64.ads (Double_Divide): Document that overflow can occur in
29860 the case of a quotient value out of range.
29863 2004-10-26 Robert Dewar <dewar@gnat.com>
29865 * s-bitops.adb (Bit_Eq): Remove redundant check.
29867 * s-bitops.ads: Minor comment updates
29868 Change some occurrences of Address to System.Address
29870 * s-carsi8.ads: Fix minor cut-and-paste error in comments
29872 2004-10-26 Ed Schonberg <schonberg@gnat.com>
29874 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
29875 accessibility check to prefix that is a protected operation.
29877 2004-10-26 Ed Schonberg <schonberg@gnat.com>
29879 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
29880 empty, post message on stub.
29882 2004-10-26 Ed Schonberg <schonberg@gnat.com>
29883 Javier Miranda <miranda@gnat.com>
29885 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
29886 current instance appears within a unit that is directly in the context
29888 Used to determine whether the body of the instance should be analyzed
29889 immediately after its spec, to make its subprogram bodies available
29890 for front-end inlining.
29891 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
29892 constraint is not allowed on the component type (AARM 12.5.3(3))
29894 2004-10-26 Cyrille Comar <comar@act-europe.fr>
29896 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
29897 'Storage_Pool): enhance, document & limit detection of non-sharable
29900 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
29902 * s-pooglo.ads: Add more documentation now that this pool is properly
29905 2004-10-26 Ed Schonberg <schonberg@gnat.com>
29907 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
29908 or protected type with discriminants, do not constrain the
29909 corresponding record type if the subtype declaration has no
29910 discriminant constraints. This can be the case in source code, or in
29911 the subtype declaration created to rename an actual type within an
29914 2004-10-26 Ed Schonberg <schonberg@gnat.com>
29916 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
29917 different kind of stub (possibly wrong name for file), do not check
29919 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
29920 includes call to some function that returns an unconstrained type, do
29923 2004-10-26 Ed Schonberg <schonberg@gnat.com>
29925 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
29926 appear in the code for the main unit. Dependencies among units in the
29927 context of the main unit are established when those other units are
29928 compiled. Otherwise spurious elaboration constraints can generate
29929 incorrect elaboration circularities.
29931 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
29932 Ed Schonberg <schonberg@gnat.com>
29934 * sem_util.adb (Is_Aliased_View): Defend against the case where this
29935 subprogram is called with a parameter that is not an object name. This
29936 situation arises for some cases of illegal code, which is diagnosed
29937 later, and in this case it is wrong to call Is_Aliased, as that might
29938 cause a compiler crash.
29939 (Explain_Limited_Type): Refine previous fix to include
29940 inherited components of derived types, to provide complete information.
29942 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
29943 is the prival for a protected object.
29944 It is necessary to mark this entity as a variable, in addition to
29945 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
29946 modified to avoid checking the Aliased flag on entities that are not
29947 objects. (Checking that flag for non-objects is erroneous and could
29948 lead to a compiler crash).
29950 2004-10-26 Robert Dewar <dewar@gnat.com>
29952 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
29953 X_Frac = 0.5, then we know that the number X must be positive.
29954 (Succ): Remove the same redundant test, and also fix the primary test
29955 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
29957 (Decompose): Add fuller comments to spec
29959 2004-10-26 Pascal Obry <obry@gnat.com>
29961 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
29962 validity (process must have read access). Set to 0 in all other cases.
29963 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
29964 violation on Win32.
29965 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
29966 segmentation violation.
29968 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
29970 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
29971 whose type is a constructed subtype of an aliased object with an
29972 unconstrained nominal subtype, convert the actual to the constructed
29973 subtype before taking its address.
29975 2004-10-26 Vincent Celier <celier@gnat.com>
29977 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
29978 (Is_Path_Name_Case_Sensitive): New function
29980 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
29981 (Base_Name, Simple_Name, Current_Directory, Compose,
29982 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
29985 2004-10-26 Cyrille Comar <comar@act-europe.fr>
29986 Vasiliy Fofanov <fofanov@act-europe.fr>
29987 Vincent Celier <celier@gnat.com>
29989 * gnat_ugn.texi: Generalize "finding memory problems" section into a
29990 "memory management issues" section and document some of the useful
29991 memory pools provided as part of the GNAT library.
29992 Remove "virtual" from declaration of A::method2 in
29993 the simple example of Ada/C++ mixed system.
29994 Library Projects may be virtually extended: their virtual extensions
29995 are not Library Projects.
29996 Added section on extending project hierarchies.
29998 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
30000 * adaint.c (__gnat_get_libraries_from_registry): Cast value
30002 (__gnat_portable_spawn): Remove const.
30004 * mingw32.h (MAXPATHLEN): Check for previous definition.
30006 2004-10-17 Matthias Klose <doko@debian.org>
30008 * gnatvsn.ads: Set gnat library version to 4.0.
30010 2004-10-05 Vincent Celier <celier@gnat.com>
30012 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
30014 2004-10-04 Laurent Guerby <laurent@guerby.net>
30017 * Makefile.in: Define and use RANLIB_FLAGS.
30019 2004-10-04 Pascal Obry <obry@gnat.com>
30021 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
30022 other x86 platforms).
30024 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
30026 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
30027 in general and triggers stack alignment adjustment for thread entry
30028 points on targets where this is necessary.
30030 2004-10-04 Bernard Banner <banner@gnat.com>
30033 * Makefile.in: Add section for powerpc linux
30034 Add variant i-vxwork-x86.ads
30036 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
30038 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
30040 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
30041 table registration calls when need be. Ensures no reference to the crt
30042 ctors symbol are issued in the SJLJ case, which avoids possible
30043 undefined symbol errors in the case of modules to be statically linked
30046 2004-10-04 Javier Miranda <miranda@gnat.com>
30048 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
30049 in-line the code corresponding to subprogram Analyze_Actuals. In
30050 addition, analyze the actuals only in case of subprogram call.
30052 2004-10-04 Ed Falis <falis@gnat.com>
30054 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
30056 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
30058 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
30059 in the documentation.
30061 2004-10-04 Robert Dewar <dewar@gnat.com>
30063 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
30065 (Analyze_Block_Statement): Add circuitry to detect following dead code
30066 (Check_Unreachable_Code): Handle case of block exit
30068 2004-10-04 Robert Dewar <dewar@gnat.com>
30070 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
30071 (XMatchD): Avoid warning for Logic_Error call
30073 2004-10-04 Robert Dewar <dewar@gnat.com>
30075 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
30076 consider expressions buried within a procedure actual to be an actual.
30077 This caused some blowups with uses of packed slices within a procedure
30080 2004-10-04 Robert Dewar <dewar@gnat.com>
30082 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
30083 longer need to be initialized to zero.
30084 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
30085 initialized to zero.
30087 * checks.adb (Expr_Known_Valid): Packed arrays are now always
30088 considered valid, even if the representation is modular. That's correct
30089 now that we no longer initialize packed modular arrays to zero.
30091 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
30092 suffixes. These are now documented as the only cases in which the
30093 debugger ignores outer records.
30094 Previously, the spec allowed arbitrary suffixes for this purpose.
30095 Change name of LJM to JM for packed array pad records
30096 Create separate section on packed array handling, and add a whole new
30097 set of comments to this section describing the situation with packed
30098 modular types and justification requirements depending on endianness.
30100 2004-10-04 Robert Dewar <dewar@gnat.com>
30102 * a-except.adb: Add a comment for last change
30104 * einfo.ads: Minor spelling correction in comment
30106 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
30108 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
30111 * sem_util.ads: Minor comment update
30113 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30115 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
30116 Inline_Always when in Configurable_Run_Time mode.
30118 * sem_prag.adb (Process_Convention): If entity is an inherited
30119 subprogram, apply convention to parent subprogram if in same scope.
30120 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
30121 when in Configurable_Run_Time mode.
30123 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30125 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
30126 class_wide type after component list has been inherited.
30128 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30130 * sem_ch12.adb (Check_Generic_Actuals): New predicate
30131 Denotes_Previous_Actual, to handle properly the case of a private
30132 actual that is also the component type of a subsequent array actual.
30133 The visibility status of the first actual is not affected when the
30134 second is installed.
30135 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
30136 make fully recursive the treatment of formals of packages declared
30138 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
30139 the above on exit from an instantiation.
30140 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
30141 current instantiation which is now complete.
30142 (Analyze_Package_Instantiation): No instantiated body is needed if the
30143 main unit is generic. Efficient, and avoid anomalies when a instance
30144 appears in a package accessed through rtsfind.
30146 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30148 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
30149 do not generate a declaration for a temporary if the call is part of a
30150 library-level instantiation.
30152 2004-10-04 Ed Schonberg <schonberg@gnat.com>
30154 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
30155 searching for a limited component to flag.
30157 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
30158 expansion of Input, to account for the fact that the implicit call
30159 generated by the attribute reference must freeze the user-defined
30160 stream subprogram. This is only relevant to 'Input, because it can
30161 appear in an object declaration, prior to the body of the subprogram.
30163 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
30164 expansion can proceed and further errors uncovered.
30165 (Minor clean up): Fix cases of using | instead of \ for continuation
30168 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30170 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
30172 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
30173 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
30174 Use gcc_assert and gcc_unreachable.
30176 * decl.c (gnat_to_gnu_entity, case object): Check and process a
30177 specified alignment before validating size.
30178 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
30179 stripped-down declaration for the type of the inner field when making
30182 * utils.c (finish_record_type): Do not compute the size in units
30183 incrementally. Instead compute it once for the rep clause case.
30184 Use gcc_assert and gcc_unreachable.
30186 2004-10-04 Vincent Celier <celier@gnat.com>
30188 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
30190 (Is_Valid_Path_Name): Take '/' as a directory separator.
30192 2004-10-04 Vincent Celier <celier@gnat.com>
30194 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
30195 (Extended_Project) only if Extended_Project is defined, to avoid
30197 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
30199 (Parse_Single_Project): Ditto.
30201 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
30202 Add_To_Project_Path for virtual projects.
30204 2004-10-04 Vincent Celier <celier@gnat.com>
30206 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30207 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
30208 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
30209 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
30210 parameter Options_2.
30212 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
30213 Build_Dynamic_Library with an empty Options_2.
30215 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
30218 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
30219 directory separator, if any.
30220 (Gprmake): Do not allow mains on the command line for library projects.
30221 Do not attempt to link when the project is a library project.
30222 (Library_Opts): New table to store Library_Options.
30223 (Build_Library): If Library_Options is specified, pass these options
30224 when building a shared library.
30226 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
30228 * s-tposen.adb (Service_Entry): The object must be always unlocked at
30229 the end of this procedure now that the unlock operation was inserted
30232 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
30234 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
30235 corresponding to the Preallocated_Stacks flags in System.
30236 (Get_Target_Parameters): Including the processing for
30237 Preallocated_Stacks.
30239 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
30240 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
30241 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
30242 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
30243 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
30244 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
30245 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
30246 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
30247 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
30248 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
30249 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
30250 used to signal whether the compiler creates the required stacks and
30251 descriptors for the different tasks (when True) or it is done by the
30252 underlying operating system at run time (when False).
30253 It is initially set to False in all targets.
30255 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
30256 if it is supported by the target.
30257 (Make_Task_Create_Call): Pass the stack address if it has been
30258 previously created. Otherwise pass a Null_Address.
30260 * snames.adb: Add _stack.
30262 * snames.ads: Add Name_uStack. Required to allow the expander to
30263 statically allocated task stacks.
30265 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
30266 Stack_Address argument.
30267 Check that its value is equal to Null_Address because this target does
30268 not support the static stack allocation.
30270 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
30272 * usage.adb: Change "pragma inline" to "pragma Inline" in information
30275 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
30277 * exp_dist.adb: Split declaration of asynchronous flag out of
30278 Add_RACW_Read_Attribute.
30279 Minor reformatting for better alignment with PolyORB version.
30280 Store the entity for the asynchronous flag of an RACW, rather than the
30281 expression, in the asynchronous flags table. This will allow this flag
30282 to be used in other subprograms beside Add_RACW_Read_Attribute.
30284 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
30286 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
30287 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
30288 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
30289 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
30290 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
30291 sockets constant MSG_NOSIGNAL (Linux-specific).
30292 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
30293 all Send operations.
30294 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
30295 from trigerring SIGPIPE.
30296 Rename components to avoid clash with Ada 2005 possible reserved
30298 (Check_Selector): When the select system call returns with an error
30299 condition, propagate Socket_Error to the caller.
30301 2004-10-01 Jan Hubicka <jh@suse.cz>
30303 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
30305 2004-09-23 Robert Dewar <dewar@gnat.com>
30308 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
30309 instead do this at freeze time (we won't do it if there is an address
30311 Change "pragma inline" to "pragma Inline" in information and error
30313 Minor reformatting.
30315 * freeze.adb (Check_Address_Clause): Remove previous change, not the
30316 right way of doing things after all.
30317 (Freeze_Entity): For object, set Is_Public for imported entities
30318 unless there is an address clause present.
30320 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
30322 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
30323 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
30324 ensures proper handling of types with rep clauses, which might have
30325 their TYPE_SIZE set already.
30327 2004-09-21 Robert Dewar <dewar@gnat.com>
30329 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
30330 packed array types in both little- and big-endian cases. This change
30331 ensures that we no longer count on the unused bits being initialized
30332 for such types (and in particular ensures that equality testing will
30333 only read the relevant bits).
30334 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
30335 These changes mean that we no longer need to initialize small packed
30337 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
30338 optimization to an LJM field as to its parent field.
30340 * ada-tree.h, trans.c, utils.c, utils2.c:
30341 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
30343 2004-09-20 Jan Hubicka <jh@suse.cz>
30345 * utils.c (gnat_finalize): Remove.
30346 (end_subprog_body): Directly call cgraph_finalize_function;
30347 do not lower the nested functions.
30349 2004-09-20 Robert Dewar <dewar@gnat.com>
30352 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
30353 if an address clause is present, since that means that the Import
30356 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
30358 * 5tsystem.ads: Removed, no longer used.
30360 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
30361 Zack Weinberg <zack@codesourcery.com>
30363 * ada-tree.def: Use tree_code_class enumeration constants
30364 instead of code letters.
30365 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
30366 Update for new tree-class enumeration constants.
30368 2004-09-17 Vincent Celier <celier@gnat.com>
30370 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
30371 capabilities of the general project manager.
30373 2004-09-09 Vincent Celier <celier@gnat.com>
30375 * a-direct.ads: Add pragma Ada_05
30376 (Directory_Entry_Type): Give default value to component Kind to avoid
30377 not initialized warnings.
30379 * a-direct.adb (Current_Directory): Remove directory separator at the
30381 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
30382 an existing directory.
30383 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
30384 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
30385 Convert the result to File_Size.
30387 * prj.ads: (Project_Error): New exception
30389 * prj-attr.adb: Except in procedure Initialize, Fail comes from
30390 Prj.Com, not from Osint.
30391 (Attrs, Package_Attributes): Tables moved to private part of spec
30392 (Add_Attribute, Add_Unknown_Package): Moved to new child package
30394 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
30395 Prj.Project_Error after call to Fail.
30396 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
30397 Fail. Check that package name is not already in use.
30399 * prj-attr.ads: Comment updates to indicate that all subprograms may be
30400 used by tools, not only by the project manager, and to indicate that
30401 exception Prj.Prj_Error may be raised in case of problem.
30402 (Add_Unknown_Package, Add_Attribute): Moved to new child package
30404 (Attrs, Package_Attributes): Table instantiations moved from the body to
30405 the private part to be accessible from Prj.Attr.PM body.
30407 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
30408 from new package Prj.Attr.PM.
30409 (Parse_Attribute_Declaration): Call Add_Attribute from new package
30412 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
30414 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
30415 instead of Elaboration_Checks).
30417 * a-calend.adb: Minor reformatting
30419 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30421 * gigi.h (maybe_pad_type): New declaration.
30422 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
30424 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
30426 * cuintp.c: Convert to use buildN.
30428 * decl.c (maybe_pad_type): No longer static.
30429 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
30431 Convert to use buildN.
30433 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
30434 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
30435 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
30437 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
30438 (gnat_gimplify_expr, case ADDR_EXPR): New case.
30439 Convert to use buildN.
30441 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
30442 TREE_READONLY for const.
30443 Convert to use buildN.
30445 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
30446 (create_var_decl): Refine when TREE_STATIC is set.
30447 Convert to use buildN.
30449 2004-09-09 Gary Dismukes <dismukes@gnat.com>
30451 * gnat_ugn.texi: Delete text relating to checking of ali and object
30454 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
30457 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
30459 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
30460 pragmas recognized by GNAT.
30462 * gnat_rm.texi: Document pragma Detect_Blocking.
30464 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
30465 raise Program_Error if called from a protected operation.
30467 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
30468 the protected action nesting level.
30469 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
30470 protected action nesting level.
30471 (Unlock): When pragma Detect_Blocking is active decrease the protected
30472 action nesting level.
30474 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
30475 Protected_Action_Nesting.
30477 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
30478 Common_ATCB record. It contains the dynamic level of protected action
30479 nesting for each task. It is needed for checking whether potentially
30480 blocking operations are called from protected operations.
30481 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
30482 Detect_Blocking is active or not in the partition.
30484 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
30485 raise Program_Error if called from a protected operation.
30486 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
30487 Program_Error if called from a protected operation.
30488 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
30489 Program_Error if called from a protected operation.
30491 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
30492 raise Program_Error if called from a protected operation.
30494 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
30495 raise Program_Error if called from a protected operation, and increase
30496 the protected action nesting level.
30497 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
30498 Program_Error if called from a protected operation, and increase the
30499 protected action nesting level.
30500 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
30501 protected action nesting level.
30503 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
30504 raise Program_Error if called from a protected operation, and increase
30505 the protected action nesting level.
30506 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
30507 Program_Error if called from a protected operation, and increase the
30508 protected action nesting level.
30509 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
30510 raise Program_Error if called from a protected operation.
30511 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
30512 active, raise Program_Error if called from a protected operation.
30513 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
30514 protected action nesting level.
30516 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
30517 insertion of the statement raising Program_Error. The run time
30518 contains the required machinery for handling that.
30520 * sem_util.ads: Change comment associated to procedure
30521 Check_Potentially_Blocking_Operation.
30522 This procedure does not insert a call for raising the exception because
30523 that is currently done by the run time.
30525 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
30527 * init.c: Add the global variable __gl_detect_blocking that indicates
30528 whether pragma Detect_Blocking is active (1) or not (0). Needed for
30529 making the pragma available at run time.
30530 (__gnat_set_globals): Pass and update the detect_blocking parameter.
30532 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
30533 pragma Detect_Blocking is active.
30535 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
30537 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
30538 DB is found in the ali file. Any unit compiled with pragma
30539 Detect_Blocking active forces its effect in the whole partition.
30541 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
30542 Detect_Blocking is active and delay is called from a protected
30545 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
30546 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
30547 Detect_Blocking is active (0 otherwise).
30548 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
30549 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
30552 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
30554 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
30555 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
30558 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
30559 (Register_Receiving_Stub): Add Subp_Info formal parameter.
30560 Update API in placeholder implemetation of s-parint to reflect changes
30561 in distribution runtime library.
30563 * sem_ch3.adb (Expand_Derived_Record): Rename to
30564 Expand_Record_Extension.
30566 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
30567 primitive operations of potentially distributed object types that have
30568 non-controlling anonymous access formals.
30570 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
30572 New implementation of expansion for remote access-to-subprogram types,
30573 based on the RACW infrastructure.
30574 This version of sem_dist is compatible with PolyORB/DSA as well as
30577 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
30578 Asynchrronous that applies to a remote access-to-subprogram type, mark
30579 the underlying RACW type as asynchronous.
30581 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
30582 __gnat_using_gnu_linker to 1.
30584 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
30585 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
30586 GNAT.Perfect_Hash_Generators, and remove the empty
30587 GNAT.Perfect_Hash package.
30589 * atree.adb: Minor reformatting
30591 * exp_ch3.adb (Expand_Derived_Record): Rename to
30592 Expand_Record_Extension.
30593 (Build_Record_Init_Proc.Build_Assignment): The default expression in
30594 a component declaration must remain attached at that point in the
30595 tree so New_Copy_Tree copies it if the enclosing record type is derived.
30596 It is therefore necessary to take a copy of the expression when building
30597 the corresponding assignment statement in the init proc.
30598 As a side effect, in the case of a derived record type, we now see the
30599 original expression, without any rewriting that could have occurred
30600 during expansion of the ancestor type's init proc, and we do not need
30601 to go back to Original_Node.
30603 * exp_ch3.ads (Expand_Derived_Record): Rename to
30604 Expand_Record_Extension.
30606 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
30607 Returns the RACW type used to implement a remote access-to-subprogram
30609 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
30610 New subprograms. Used to create a proxy tagged object for a remote
30611 subprogram. The proxy object is used as the designated object
30612 for RAS values on the same partition (unless All_Calls_Remote applies).
30613 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
30614 System.Partition_Interface.Get_Unique_Remote_Pointer.
30615 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
30616 Renamed from Add_RAS_*_Attribute.
30617 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
30619 New implementation of expansion for remote access-to-subprogram types,
30620 based on the RACW infrastructure.
30622 * exp_dist.ads (Copy_Specification): Update comment to note that this
30623 function can copy the specification from either a subprogram
30624 specification or an access-to-subprogram type definition.
30626 2004-09-09 Ed Schonberg <schonberg@gnat.com>
30628 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
30629 in an instance, between an explicit subprogram an one inherited from a
30630 type derived from an actual.
30632 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
30633 add a polling call if the subprogram is to be inlined by the back-end,
30634 to avoid repeated calls with multiple inlinings.
30636 * checks.adb (Apply_Alignment_Check): If the expression in the address
30637 clause is a call whose name is not a static entity (e.g. a dispatching
30638 call), treat as dynamic.
30640 2004-09-09 Robert Dewar <dewar@gnat.com>
30642 * g-trasym.ads: Minor reformatting
30644 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
30645 packed arrays, since unused bits are expected to be zero for a
30648 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
30650 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
30653 2004-09-09 Pascal Obry <obry@gnat.com>
30655 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
30656 enable map file generation. Add the right option to generate the map
30657 file if Map_File is set to True.
30659 * gnatdll.adb (Gen_Map_File): New variable.
30660 (Syntax): Add info about new -m (Map_File) option.
30661 (Parse_Command_Line): Add support for -m option.
30662 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
30663 Minor reformatting.
30665 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
30667 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
30668 new gnatdist implementation.
30669 Define a subpackage isolating the output routines specific to this
30672 2004-09-09 Joel Brobecker <brobecker@gnat.com>
30674 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
30676 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
30678 2004-09-09 Cyrille Comar <comar@act-europe.fr>
30680 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
30683 * opt.ads: Add Ada_Version_Runtime constant used to decide which
30684 version of the language is used to compile the run time.
30686 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
30688 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
30689 of variable length temporaries for function return now that the
30690 back-end and gigi support it.
30692 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30694 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
30696 * trans.c (struct stmt_group): Delete field GLOBAL.
30697 (gnat_init_stmt_group): Do not initialize it.
30698 (call_to_gnu): Use save_expr, not protect_multiple_eval.
30699 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
30700 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
30701 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
30702 (start_stmt_group): Likewise.
30703 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
30705 * utils2.c (ggc.h): Include.
30706 (build_call_raise): Call build_int_cst, not build_int_2.
30708 * utils.c (gnat_init_decl_processing): Fix arg to
30709 build_common_tree_nodes.
30710 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
30711 (gnat_define_builtin): Set built_in_decls.
30712 (init_gigi_decls): Call build_int_cst, not build_int_2.
30714 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
30715 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
30716 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
30717 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
30718 SET_TYPE_MODULE): Use them.
30719 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
30720 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
30721 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
30722 SET_TYPE_ADA_SIZE): Likewise.
30723 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
30724 (DECL_CONST_CORRESPONDING_VAR,
30725 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
30726 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
30727 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
30728 (TYPE_RM_SIZE_NUM): New macro.
30729 (TYPE_RM_SIZE): Modified to use above.
30731 * cuintp.c: (build_cst_from_int): New function.
30732 (UI_To_gnu): Use it.
30734 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
30735 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
30736 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
30737 MIN_EXPR for the size, copy it into new.
30739 2004-09-01 Robert Dewar <dewar@gnat.com>
30741 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
30742 packed indexed component where array is an IN OUT formal. This
30743 generated garbage code previously.
30745 * gnat_ugn.texi: Document -fverbose-asm
30747 * gnat-style.texi: Minor updates (note that boolean constants and
30748 variables are joined with AND/OR rather than short circuit forms).
30750 2004-09-01 Ed Schonberg <schonberg@gnat.com>
30752 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
30753 it is an upward conversion of an untagged type with no representation
30756 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
30758 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
30759 System.Partition_Interface.
30761 * checks.adb (Apply_Access_Checks): Do not generate checks when
30762 expander is not active (but check for unset reference to prefix of
30765 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
30766 pragma Debug as an if statement with a constant condition, for
30767 consistent treatment of entity references contained within the
30768 enclosed procedure call.
30770 2004-09-01 Vincent Celier <celier@gnat.com>
30772 * bindgen.adb: (Set_EA_Last): New procedure
30773 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
30775 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
30776 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
30777 linked without errors.
30778 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
30780 (Gen_Exception_Table_C): Correct same bugs
30782 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
30784 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
30785 on Windows, make sure that the drive letter is in upper case.
30787 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
30788 Windows, when the drive letter is added and Case_Sensitive is True, the
30789 drive letter is forced to upper case.
30791 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
30792 to Options_2 for the call to MLib.Utl.Gcc.
30794 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
30795 directory separator when defining BASE_DIR.
30797 2004-09-01 Pascal Obry <obry@gnat.com>
30799 * gprcmd.adb (Extend): Do not output trailing directory separator. This
30800 is not needed and it confuses Windows GNU/make which does not report
30801 directory terminated by a slash as a directory.
30802 (gprcmd): Idem for "pwd" internal command.
30804 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
30805 target names rewrite to fix regressions with recent version of
30806 GNU/make. Starting with GNU/make 3.80 the pipe character was not
30807 handled properly anymore.
30809 2004-09-01 Andreas Schwab <schwab@suse.de>
30811 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
30812 * raise.c [!IN_RTS]: Undef abort.
30814 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
30816 * utils2.c (build_allocator): Use ssize_int.
30818 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
30820 2004-08-27 Andreas Schwab <schwab@suse.de>
30822 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
30824 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
30825 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30827 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
30829 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
30831 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
30832 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
30833 * utils.c (init_gigi_decls): Likewise.
30834 * utils2.c (build_call_raise, build_allocator): Likewise.
30836 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
30838 * utils.c (gnat_init_decl_processing): Adjust
30839 build_common_tree_nodes call.
30841 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
30843 * utils2.c (build_allocator): Use build_int_cst for negative
30846 2004-08-18 Richard Henderson <rth@redhat.com>
30848 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
30850 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
30852 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
30854 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
30855 (gnat_to_gnu): Likewise.
30857 2004-08-16 Pascal Obry <obry@gnat.com>
30859 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
30860 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
30861 option and not mdll anymore. Update comment.
30863 2004-08-16 Pascal Obry <obry@gnat.com>
30865 * bld.adb (Put_Include_Project): Properly handle directory separators
30868 2004-08-16 Ed Schonberg <schonberg@gnat.com>
30870 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
30871 decreasing the number of allocated junk nodes while searching for the
30872 appropriate subprogram.
30874 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
30876 * cuintp.c (UI_To_gnu): Use build_int_cst..
30877 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
30878 * utils.c (init_gigi_decls): Likewise.
30879 * utils2.c (build_call_raise): Likewise.
30881 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
30883 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
30884 for a global aliased object with a variable size and an unconstrained
30885 nominal subtype, pretend there is no initializer if the one we have is
30886 incomplete, and avoid referencing an inexistant component in there. The
30887 part we have will be rebuilt anyway and the reference may confuse
30888 further operations.
30890 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
30892 * einfo.ads: Minor reformatting
30894 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
30895 restrictions in the ALI if we only want to warn about violations.
30897 2004-08-13 Vincent Celier <celier@gnat.com>
30899 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
30900 when creating a new Unit_Record in table Units.
30902 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
30903 that are violated, if any.
30905 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
30906 add directory separator if path already ends with a directory separator.
30908 2004-08-13 Ed Schonberg <schonberg@gnat.com>
30910 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
30911 unit, this is an attempt to inline a construct that is not available in
30912 the current restricted mode, so abort rather than trying to continue.
30914 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
30915 discriminants that rename those of the parent, recover names of
30916 original discriminants for the constraint on the full view of the
30918 (Complete_Private_Subtype): Do not create a subtype declaration if the
30919 subtype is an itype.
30921 * gnat_rm.texi: Added section on implementation of discriminated
30922 records with default values for discriminants.
30924 2004-08-13 Ed Schonberg <schonberg@gnat.com>
30927 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
30928 the second operand is overloaded.
30930 2004-08-10 Richard Henderson <rth@redhat.com>
30932 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
30933 add __builtin_alloca.
30935 2004-08-10 Richard Henderson <rth@redhat.com>
30937 * config-lang.in (boot_language): Yes.
30939 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
30941 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
30942 from complaining on potential uninitialized reference.
30943 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
30944 new specification and test explicitly for non-zero return value.
30946 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
30947 returning C.int, to avoid using a derived boolean type.
30949 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
30950 Duplicate_Subexpr_No_Checks in preference to direct use of
30951 Remove_Side_Effects and New_Copy_Tree.
30952 Clear Comes_From_Source on prefix of 'Size attribute reference.
30954 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
30955 g-socthi-vxworks.adb: Change calls to
30956 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
30957 and test explicitly for non-zero return value.
30959 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
30960 (Is_Socket_In_Set): Declare imported function as returning C.int, to
30961 avoid using a derived boolean type.
30963 2004-08-09 Albert Lee <lee@gnat.com>
30965 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
30967 2004-08-09 Pascal Obry <obry@gnat.com>
30969 * gnat_ugn.texi: Document new way to build DLLs on Windows using
30970 GCC's -shared option.
30972 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
30973 Options_2 parameter (options put after object files).
30975 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
30977 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
30978 ignore overflows on low and high bounds of an index to also account for
30979 differences in signedness between sizetype and gnu_index_subtype.
30980 These are as legitimate as the ones caused by a lower TYPE_PRECISION
30983 2004-08-09 Robert Dewar <dewar@gnat.com>
30985 * s-solita.ads, s-solita.adb: Minor reformatting
30987 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
30988 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
30989 obsolescent section
30990 Add note that No_Implicit_Conditionals does not suppress
30991 run time constraint checks.
30993 * vms_conv.ads: Minor reformatting
30995 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
30996 and necessary for following change).
30997 (Mark): Return new format Mark_Id containing sec stack address
30998 (Release): Use sec stack address from Mark_Id avoiding Self call
31000 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
31001 pointer (cleanup and necessary for following change).
31002 Define Mark_Id as record containing address of secondary stack, that way
31003 Release does not need to find the stack again, decreasing the number of
31004 calls to Self and improving efficiency.
31006 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
31008 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
31009 case variable into the individual case branches when possible.
31011 * sem_ch11.adb: Minor reformatting
31013 * prj.ads: Correct spelling of suffixs
31015 * prj-nmsc.adb: Minor reformatting
31016 Correct spelling suffixs throughout (also in identifiers)
31018 * freeze.adb: Minor spelling correction
31020 * exp_ch2.adb: Cleanups to handling of Current_Value
31021 (no functional effect).
31023 * bld.adb: Correct spelling of suffixs
31025 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
31027 2004-08-09 Ed Schonberg <schonberg@gnat.com>
31030 * sem_ch7.adb (Install_Private_Declarations): In the body of the
31031 package or of a child, private entities are both immediately_visible
31034 2004-08-09 Ed Schonberg <schonberg@gnat.com>
31036 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
31037 there are no range checks on the value of the literal.
31039 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
31040 wrapped is the triggering alternative of an asynchronous select, action
31041 statements mustbe inserted before the select itself.
31043 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
31044 case where the prefix is a protected function call.
31045 (Resolve_Attribute, case 'Access): The attribute reference on a
31046 subprogram is legal in a generic body if the subprogram is declared
31049 2004-08-09 Vincent Celier <celier@gnat.com>
31051 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
31052 languages, otherwise building the library may fail with unresolved
31054 (Compile_Sources): Do not build libraries if -c switch is used
31056 * gnatlink.adb (Process_Args): New switches -M and -Mmap
31057 (Write_Usage): If map file creation is supported, output new switches
31059 (Gnatlink): When -M is specified, add the necessary switch(es) to the
31060 gcc call, when supported.
31062 * Makefile.in: Added indepsw.o to the object list for gnatlink
31063 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
31065 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
31066 indepsw.adb, indepsw.ads: New files.
31068 2004-08-09 Bernard Banner <banner@gnat.com>
31070 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
31072 * Makefile.in: add section for vxworks x86
31074 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
31076 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
31077 per-object constrained components where the discriminant is of an
31079 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
31080 the parent initialization procedure for derived Unchecked_Unions.
31081 Instead, derived Unchecked_Unions build their own initialization
31083 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
31084 Check the body of the subprogram for details.
31085 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
31086 functions for derived Unchecked_Union types by introducing a condition.
31087 Allow the creation of TSS equality functions for Unchecked_Unions.
31088 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
31089 Add formal parameter Discr to function signature. Discr is used to
31090 control the generated case statement for Unchecked_Union types.
31091 (Make_Eq_If): Rename formal parameter Node to E in function signature.
31093 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
31095 Check the body of the subprogram for details.
31096 (Expand_Composite_Equality): Augment composite type equality to include
31097 correct handling of Unchecked_Union components.
31098 (Expand_N_In): Add condition to detect illegal membership tests when the
31099 subtype mark is a constrained Unchecked_Union and the expression lacks
31100 inferable discriminants, and build a Raise_Program_Error node.
31101 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
31102 to detect types that contain components of unconstrained Unchecked_Union
31103 subtype. Add condition to detect equality between types that have an
31104 unconstrained Unchecked_Union component, and build a Raise_Program_Error
31105 node. Add condition to detect equality between Unchecked_Union types
31106 that lack inferable discriminants, and build a Raise_Program_Error node.
31107 Otherwise build a TSS equality function call.
31108 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
31109 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
31110 with the operand lacking inferable discriminants, and build a Raise_
31111 Program_Error node.
31112 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
31113 composite equality.
31114 (Has_Inferable_Discriminants): Implement new predicate for objects and
31115 expressions of Unchecked_Union type. Check the body of subprogram for
31117 (Has_Unconstrained_UU_Components): Add function
31118 Component_Is_Unconstrained_UU. It is used to detect whether a single
31119 component is of an unconstrained Unchecked_Union subtype. Add function
31120 Variant_Is_Unconstrained_UU. It is used to detect whether a single
31121 component inside a variant is of an unconstrained Unchecked_Union type.
31123 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
31124 inferred discriminant values. Add condition to generate a case
31125 statement with an inferred discriminant as the switch.
31126 (Make_Component_List_Assign): Introduce a Boolean flag that determines
31127 the behaviour of the subprogram in the presence of an Unchecked_Union.
31128 Add condition to trigger the usage of the inferred discriminant value
31129 as the generated case statement switch.
31130 (Make_Field_Assign): Introduce a Boolean flag that determines the
31131 behaviour of the subprogram in the presence of an Unchecked_Union. Add
31132 condition to trigger the usage of the inferred discriminant value as
31133 the right-hand side of the generated assignment.
31135 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
31136 parameter generation when dealing with Unchecked_Unions.
31138 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
31139 checks for Unchecked_Unions.
31141 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
31143 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
31144 Raise_Program_Error nodes for the execution of Read and Write
31145 attributes of Unchecked_Union types and the execution of Input and
31146 Output attributes of Unchecked_Union types that lack default
31147 discriminant values.
31149 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
31150 Unchecked_Union. Add procedure Check_Component. It is used to inspect
31151 per-object constrained components of Unchecked_Unions for being
31152 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
31153 check individual components withing a variant.
31155 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
31156 comparison of Unchecked_Unions.
31157 (Resolve_Equality_OP): Remove guard that prevents equality between
31160 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
31161 of component subtypes for Unchecked_Union components.
31162 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
31163 since it is the actual subtype.
31165 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
31166 pass of Unchecked_Union subtypes as generic actuals to formal types
31167 that lack known_discriminant_parts or that are derived Unchecked_Union
31168 types, and do nothing. In any other case, produce an error message.
31170 * sem_ch3.adb (Analyze_Component_Declaration): Add function
31171 Contains_POC. It determines whether a constraint uses the discriminant
31172 of an enclosing record type.
31173 Add condition to detect per-object constrained component and set the
31175 (Derived_Type_Declaration): Remove guard that prevents derivation from
31176 Unchecked_Union types.
31177 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
31180 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
31181 references to Unchecked_Union discriminants.
31183 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
31184 formal generation when dealing with Unchecked_Unions.
31185 (Set_Actual_Subtypes): Add condition to prevent generation of actual
31186 subtypes for Unchecked_Unions.
31188 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
31189 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
31190 completions of discriminated partial views by Unchecked_Unions and
31191 produce an error message.
31193 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31195 * trans.c (struct stmt_group): New field, GLOBAL.
31196 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
31197 (struct elab_info): New struct.
31198 (elab_info_list, gnu_elab_proc_stack): New variables.
31199 (Compilation_Unit_to_gnu): New procedure.
31200 (gigi): Call it and also handle elaboration procs we've saved.
31201 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
31202 global field from parent.
31203 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
31204 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
31205 (start_stmt_group): Initialize global field from parent.
31206 (add_decl_expr): Set to global for current statement group.
31207 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
31210 * utils.c (global_bindings_p): True when no current_function_decl; no
31211 longer check current_binding_level.
31213 2004-08-09 Ben Brosgol <brosgol@gnat.com>
31215 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
31218 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
31220 2004-08-06 Andreas Schwab <schwab@suse.de>
31222 * utils.c (gnat_define_builtin): Remove second parameter of
31224 (begin_subprog_body): Likewise.
31226 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
31228 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
31229 optimization, not supported by the tree-ssa back-end.
31231 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
31233 * s-mastop-irix.adb: Update comments.
31235 * a-except.adb (Exception_Information): Raise Constraint_Error if
31236 exception Id is Null_Id.
31237 This is required behavior, which is more reliably and clearly checked
31238 at the top level interface level.
31240 2004-07-26 Javier Miranda <miranda@gnat.com>
31242 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
31243 call if a component has no default_expression and the box is used.
31245 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
31246 default_expression and you use box, it behaves as if you had declared a
31247 stand-alone object.
31248 (Resolve_Record_Aggregate): If a component has no default_expression and
31249 you use box, it behaves as if you had declared a stand-alone object.
31251 * sem_ch10.adb (Install_Siblings): Do not make visible the private
31252 entities of private-with siblings.
31254 2004-07-26 Ed Schonberg <schonberg@gnat.com>
31256 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
31257 for a component of an itype, set the parent pointer for analysis,
31258 there is no list in which to insert it.
31260 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
31261 bona-fide renamings, not for inherited operations.
31263 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
31264 actual for a formal that is an access parameter, create local
31265 finalization list even if the expression is not an aggregate.
31267 2004-07-26 Ed Schonberg <schonberg@gnat.com>
31270 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
31271 Diagnose properly illegal subprogram renamings that are library units.
31273 2004-07-26 Ed Schonberg <schonberg@gnat.com>
31276 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
31277 conversion rewritten as an unchecked conversion, check that original
31278 expression is a variable.
31280 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
31281 unchecked_conversion, create new node rather than rewriting in place,
31282 to preserve original construct.
31284 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31286 * gigi.h (gnat_expand_body): Deleted.
31288 * Make-lang.in: (trans.o): Depends on function.h.
31290 * misc.c: (gnat_expand_body): Moved to here.
31292 * trans.c (gnat_expand_body_1): Deleted.
31293 (gnat_expand_body): Moved from here.
31294 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
31295 (add_stmt): Check for marked visited with global_bindings_p.
31296 (gnat_gimplify_expr, case COMPONENT_REF): New case.
31297 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
31299 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
31300 VIEW_CONVERT_EXPR if not operation type.
31302 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
31305 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
31306 changes: reformatting of negation operators, removing unneeded
31307 inequality comparison with zero, converting equality comparisons with
31308 zero to negations, changing int/0/1 to bool/false/true, replace calls
31309 to gigi_abort with abort, and various other similar changes.
31311 2004-07-26 Vincent Celier <celier@gnat.com>
31313 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
31316 * make.adb (Gnatmake): Fail when a library is not present and there is
31317 no object directory.
31319 * mlib-prj.adb (Check_Library): No need to check if the library needs
31320 to be rebuilt if there is no object directory, hence no object files
31321 to build the library.
31323 * opt.ads (Setup_Projects): New Boolean flag.
31325 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
31327 Create directory when Kind /= "" and in "gnat setup". Report error if
31328 directory cannot be created.
31329 (Ada_Check): Create library interface copy dir if it does not exist
31330 and we are in "gnat setup".
31331 (Find_Sources): No error if in "gnat setup" and no Ada sources were
31333 (Language_Independent_Check): Create object directory, exec directory
31334 and/or library directory if they do not exist and we are in
31337 * vms_conv.ads: (Command_Type): New command Setup.
31339 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
31341 * vms_data.ads: Add qualifiers/switches for new built-in command
31344 2004-07-25 Richard Henderson <rth@redhat.com>
31346 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
31347 DECL_IGNORED_P on RESULT_DECL.
31349 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
31351 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
31352 allocation and potentially overflowing update with
31353 Tailored_Exception_Information. Use the sec-stack free procedural
31354 interface to output Exception_Information instead.
31356 * a-except.adb (To_Stderr): New subprogram for character, and string
31357 version moved from a-exextr to be visible from other separate units.
31358 (Tailored_Exception_Information): Remove the procedural version,
31359 previously used by the default Last_Chance_Handler and not any more.
31360 Adjust various comments.
31362 * a-exexda.adb: Generalize the exception information procedural
31363 interface, to minimize the use of secondary stack and the need for
31364 local buffers when the info is to be output to stderr:
31365 (Address_Image): Removed.
31366 (Append_Info_Character): New subprogram, checking for overflows and
31367 outputing to stderr if buffer to fill is of length 0.
31368 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
31369 (Append_Info_Address, Append_Info_Exception_Name,
31370 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
31371 Append_Info_Basic_Exception_Traceback,
31372 Append_Info_Exception_Information): New subprograms.
31373 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
31374 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
31375 Exception_Info_Maxlength, Exception_Name_Length,
31376 Exception_Message_Length): New subprograms.
31377 (Exception_Information): Use Append_Info_Exception_Information.
31378 (Tailored_Exception_Information): Use
31379 Append_Info_Basic_Exception_Information.
31380 Export services for the default Last_Chance_Handler.
31382 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
31383 other separate units.
31385 2004-07-20 Vincent Celier <celier@gnat.com>
31387 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
31389 2004-07-20 Ed Schonberg <schonberg@gnat.com>
31391 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
31392 emit itype references for the designated types of component types that
31393 are declared outside of the full record declaration, and that may
31394 denote a partial view of that record type.
31396 2004-07-20 Ed Schonberg <schonberg@gnat.com>
31399 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
31400 which is the designated type in an access component declaration, to the
31401 list of incomplete dependents of the parent type, to avoid elaboration
31402 issues with out-of-scope subtypes.
31403 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
31404 full view of the parent.
31406 2004-07-20 Ed Schonberg <schonberg@gnat.com>
31409 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
31410 entities that are hidden, such as references to generic actuals
31411 outside an instance.
31413 2004-07-20 Javier Miranda <miranda@gnat.com>
31415 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
31416 support to the new notation.
31417 (Analyze_Selected_Component): Add call to Try_Object_Operation.
31419 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
31421 * s-taprob.adb: Adding the elaboration code required for initializing
31422 the tasking soft links that are common to the full and the restricted
31425 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
31426 restricted run time has been moved to the package
31427 System.Soft_Links.Tasking.
31429 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
31430 restricted run time has been moved to the package
31431 System.Soft_Links.Tasking.
31433 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
31435 * s-solita.ads, s-solita.adb: New files.
31437 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31439 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
31440 Case_Statement_to_gnu): Split off from gnat_to_gnu.
31441 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
31442 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
31443 Exception_Handler_to_gnu_zcx): Likewise.
31445 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
31447 * gigi.h (builtin_function): Declare.
31449 2004-07-15 Robert Dewar <dewar@gnat.com>
31451 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
31454 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
31455 access values as an example of a warning.
31457 * gnat_rm.texi: Document new attribute Has_Access_Values
31459 * gnat-style.texi: Document that box comments belong on nested
31462 * sem_util.ads (Has_Access_Values): Improved documentation
31464 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
31466 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
31467 (Process_Interface_Name): Call to this new procedure
31468 (Set_Extended_Import_Export_External_Name): Call to this new procedure
31470 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
31472 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
31474 * einfo.ads: Minor comment typo fixed
31476 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
31478 * snames.adb: Add _atcb.
31480 * snames.ads: Add Name_uATCB.
31482 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
31483 (in the expanded code) when using the restricted run time.
31485 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
31486 a in parameter in order to allow ATCBs to be preallocated (in the
31489 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
31490 order to allow ATCBs to be preallocated. In case of error, the ATCB is
31491 deallocated in System.Tasking.Stages.
31493 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
31494 order to allow ATCBs to be preallocated.
31496 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
31497 here. It was previously done in Initialize_ATCB.
31499 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
31501 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
31502 Restricted run time.
31504 * exp_ch3.adb: When using the Restricted run time, pass the
31505 preallocated Ada_Task_Control_Block when creating a task.
31507 2004-07-15 Ed Schonberg <schonberg@gnat.com>
31509 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
31510 function call that is itself an actual in an enclosing call, diagnose
31511 problem here rather than assuming that resolution will catch it.
31513 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
31514 the local copy of a generic unit for a formal package, and the generic
31515 is a child unit, install private part of ancestors before compiling
31516 private part of spec.
31518 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
31519 use scope entities rather than tree structures, to handle properly
31520 parent units that are instances rewritten as bodies for inlining
31523 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
31524 Remove_Parents): Handle properly a parent unit that is an
31525 instantiation, when the unit has been rewritten as a body for inlining
31528 * par.adb (Goto_List): Global variable to collect goto statements in a
31529 given unit, for use in detecting natural loops.
31531 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
31532 use in detecting natural loops.
31534 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
31535 backwards goto's, and rewrite as a infinite loop, to improve locality
31538 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
31539 subcomponent that includes an indexed reference, to prevent the
31540 generation of copies that would miscompile the desired assignment
31542 (Build_Task_Image_Decls): Add a numeric suffix to
31543 generated name for string variable, to avoid spurious conflicts with
31544 the name of the type of a single protected object.
31546 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
31547 loop with an explicit exit statement, to avoid generating an
31548 out-of-range value with 'Succ leading to spurious constraint_errors
31549 when compiling with -gnatVo.
31551 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
31553 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
31554 might not be analyzed yet, even if its Etype is already set (case of an
31555 unchecked conversion built using Unchecked_Convert_To, for example).
31556 If the prefix has already been analyzed, this will be a nop anyway.
31558 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
31559 controller type, or an assignment of a record type with controlled
31560 components, copy only user data, and leave the finalization chain
31561 pointers untouched.
31563 2004-07-15 Vincent Celier <celier@gnat.com>
31565 * make.adb (Collect_Arguments): Improve error message when attempting
31566 to compile a source not part of any project, when -x is not used.
31568 * prj.ads: (Defined_Variable_Kind): New subtype
31570 * prj-attr.adb (Register_New_Package): Two new procedures to register
31571 a package with or without its attributes.
31572 (Register_New_Attribute): Mew procedure to register a new attribute in a
31574 New attribute oriented subprograms: Attribute_Node_Id_Of,
31575 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
31576 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
31578 New package oriented subprograms: Package_Node_Id_Of,
31579 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
31581 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
31583 (Package_Node_Id): Now a private, self initialized type
31584 (Register_New_Package): New procedure to register a package with its
31586 New attribute oriented subprograms: Attribute_Node_Id_Of,
31587 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
31588 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
31590 New package oriented subprograms: Package_Node_Id_Of,
31591 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
31593 * prj-dect.adb (Parse_Attribute_Declaration,
31594 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
31596 * prj-makr.adb (Make): Parse existing project file before creating
31597 other files. Fail if there was an error during parsing.
31599 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
31600 new spec of Prj.Attr.
31602 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
31603 to new spec of Prj.Attr.
31605 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31607 * utils2.c: Fix typo in comment.
31609 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31611 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
31612 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
31614 2004-07-14 Andreas Schwab <schwab@suse.de>
31616 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
31618 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31620 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
31622 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
31625 * misc.c (gnat_types_compatible_p): New function.
31626 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
31627 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
31629 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
31630 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
31631 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
31632 (mark_visited): Don't mark dummy type.
31633 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
31634 parameter, we must remove any LJM building from GNU_NAME.
31635 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
31636 (pos_to_constructor): Use int_const_binop.
31637 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
31640 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
31641 (gnat_pushlevel): Set TREE_USE on BLOCK node.
31642 (gnat_install_builtins): Add __builtin_memset.
31644 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
31646 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
31647 for a renaming, stabilize the initialization expression if we are at a
31648 local level. At the local level, uses of the renaming may be performed
31649 by a direct dereference of the initializing expression, and we don't
31650 want possible variables there to be evaluated for every use.
31652 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
31653 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
31654 them on the way. Account for the fact that we may introduce side
31655 effects in the process.
31657 2004-07-13 Richard Henderson <rth@redhat.com>
31659 * misc.c (default_pass_by_ref): Use pass_by_reference.
31661 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
31663 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
31664 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
31666 2004-07-08 Richard Henderson <rth@redhat.com>
31668 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
31671 2004-07-06 Vincent Celier <celier@gnat.com>
31673 * vms_conv.ads: Minor reformatting.
31674 Alphabetical order for enumerated values of type Command_Type, to have
31675 the command in alphabetical order for the usage.
31677 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
31678 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
31680 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
31682 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
31683 (Add_Archive_Path): Only add the global archive if there is one.
31684 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
31685 or not any object file to put in the global archive, and don't build
31686 a global archive if there is none.
31687 (X_Switches): New table
31688 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
31689 in the X_Switches table, if any.
31690 (Initialize): Make sure the X_Switches table is empty
31691 (Scan_Arg): Record -X switches in table X_Switches
31693 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
31695 * make.adb: Minor comment fix
31697 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
31698 invoked with directory information, add the directory in front of the
31701 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
31702 invoked with directory information, add the directory in front of the
31705 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
31706 when Keep_Temporary_Files is False.
31707 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
31708 directory information, add the directory in front of the path.
31709 When not on VMS, handle new switch -dn before the command to set
31710 Keep_Temporary_Files to True.
31711 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
31714 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
31715 invoked with directory information, add the directory in front of the
31718 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
31720 * snames.ads, snames.adb (Name_Stub): New name for the distributed
31723 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
31724 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
31726 * g-socket.adb (To_Timeval): Fix incorrect conversion of
31727 Selector_Duration to Timeval for the case of 0.0.
31729 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
31730 documentation from Evolve_And_Then.
31732 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
31734 * s-taprop-tru64.adb, s-taprop-os2.adb,
31735 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
31737 2004-07-06 Robert Dewar <dewar@gnat.com>
31739 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
31740 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
31741 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
31742 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
31743 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
31744 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
31745 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
31746 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
31747 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
31748 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
31749 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
31750 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
31751 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
31752 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
31753 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
31754 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
31755 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
31756 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
31757 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
31758 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
31759 vms_data.ads: Minor reformatting,
31760 Fix bad box comment format.
31762 * gnat_rm.texi: Fix minor grammatical error
31764 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
31766 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
31767 more cases of discriminated records to be recognized as not needing a
31769 (Has_Access_Values): New function.
31771 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
31773 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
31774 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
31775 with LRM terminology).
31776 Change terminology in comments primitive type => elementary type.
31778 2004-07-06 Ed Schonberg <schonberg@gnat.com>
31781 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
31782 parameters do not impose any requirements on the presence of a body.
31784 2004-07-06 Ed Schonberg <schonberg@gnat.com>
31787 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
31788 compilation unit and is in an open scope at the point of instantiation,
31789 assume that a body may be present later.
31791 2004-07-06 Ed Schonberg <schonberg@gnat.com>
31793 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
31794 Improve error message when specified size is not supported.
31796 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
31797 is never a primitive operation.
31799 2004-07-05 Andreas Schwab <schwab@suse.de>
31801 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
31802 RECORD_OR_UNION_CHECK.
31803 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
31805 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
31807 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
31808 dependency on xgnatugn, instead build it via a submake.
31809 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
31811 2004-07-04 Richard Henderson <rth@redhat.com>
31813 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
31815 2004-07-01 Richard Henderson <rth@redhat.com>
31817 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
31818 * utils.c (max_size): Likewise.
31820 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31822 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
31823 and rest_of_type_compilation; add arg to create_*_decl.
31824 (annotate_decl_with_node): Deleted.
31825 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
31826 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
31827 (get_current_block_context, gnat_pushdecl): New declarations.
31828 (gnat_init_stmt_group): Likewise.
31829 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
31830 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
31831 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
31832 (gnat_init): Call gnat_init_stmt_group.
31833 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
31834 (gnu_pending_elaboration_list): Deleted.
31835 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
31836 (gigi): Rearrange initialization calls and move some to last above.
31837 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
31838 Delete calls to add_decl_expr; add arg to create_*_decl.
31839 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
31840 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
31841 begin_subprog_body and call it.
31842 Don't push and pop ggc context.
31843 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
31844 (add_stmt): Remove handling of DECL_EXPR from here.
31845 If not in function, mark visited.
31846 (add_decl_expr): Put global at top level.
31847 Check for cases of DECL_INITIAL we have to handle here.
31848 (process_type): Add extra arg to create_type_decl.
31849 (build_unit_elab): Rework to just gimplify.
31850 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
31851 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
31852 (get_pending_elaborations, pending_elaborations_p): Likewise.
31853 (push_pending_elaborations, pop_pending_elaborations): Likewise.
31854 (get_elaboration_location, insert_elaboration_list): Likewise.
31855 (gnat_binding_level): Renamed from ada_binding_level.
31856 (init_gnat_to_gnu): Don't clear pending_elaborations.
31857 (global_bindings_p): Treat as global if no current_binding_level.
31858 (set_current_block_context): New function.
31859 (gnat_pushdecl): Renamed from pushdecl; major rework.
31860 All callers changed.
31861 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
31862 (finish_record_type): Call call pushdecl for stub decl.
31863 (function_nesting_depth): Deleted.
31864 (begin_subprog_body): Delete obsolete code.
31865 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
31867 2004-06-28 Robert Dewar <dewar@gnat.com>
31869 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
31870 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
31871 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
31872 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
31873 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
31875 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
31876 deal with problem of inefficient slices on machines with strict
31877 alignment, when the slice is a component of a composite.
31879 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
31880 machines, we need the check there as well.
31882 2004-06-28 Ed Schonberg <schonberg@gnat.com>
31884 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
31885 determine safe copying direction for overlapping slice assignments
31886 when component is controlled.
31888 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
31889 formal derived type in the actual for a formal package are visible in
31890 the enclosing instance.
31892 2004-06-28 Ed Schonberg <schonberg@gnat.com>
31895 * sem_util.adb (Trace_Components): Diagnose properly an illegal
31896 circularity involving a private type whose completion includes a
31897 self-referential component.
31898 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
31899 renaming or an instantiation from an implicit derived operation.
31901 2004-06-28 Pascal Obry <obry@gnat.com>
31903 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
31905 (Library_File_Name_For): Idem.
31907 2004-06-28 Matthew Gingell <gingell@gnat.com>
31909 * g-traceb.ads: Add explanatory note on the format of addresses
31910 expected by addr2line.
31912 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
31914 * Makefile.in: Force debugging information on s-tasdeb.adb,
31915 a-except.adb and s-assert.adb needed by the debugger.
31917 2004-06-28 Vincent Celier <celier@gnat.com>
31919 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
31923 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
31925 * prj.adb: Minor reformatting
31926 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
31928 * prj.ads: Comment updates
31930 (Project_Data): Change Flag1 to Need_To_Build_Lib.
31931 Remove Flag2: not used.
31933 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
31936 * gnat_ugn.texi: Put a "null;" declaration in one project file example
31938 * gnat_rm.texi: Document Empty declarations "null;".
31940 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
31941 front of the linker options.
31942 (Link_Foreign): Put the global archives and the libraries in front of
31943 the linker options.
31945 2004-06-28 Javier Miranda <miranda@gnat.com>
31947 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
31948 (RTU_Loaded): Code cleanup
31949 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
31950 withed predefined units.
31952 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
31953 explicitly withed predefined units.
31954 Fix typo in comment
31956 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
31957 explicitly withed predefined units.
31959 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31961 * ada-tree.def (DECL_STMT): Deleted.
31962 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
31963 (DECL_STMT_VAR): Deleted.
31964 * decl.c: add_decl_stmt now add_decl_expr.
31965 * gigi.h: Likewise.
31966 * trans.c: Likewise.
31967 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
31968 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
31969 (add_stmt): Only handle padded type here.
31970 (add_stmt_with_node): Allow gnat_node to not be present.
31971 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
31972 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
31973 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
31974 make a SAVE_EXPR for the entire fat pointer.
31975 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
31976 (create_index_type): Make a DECL_EXPR.
31977 (end_subprog_body): Don't call allocate_struct_function here but
31980 2004-06-25 Pascal Obry <obry@gnat.com>
31982 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
31983 Relocatable from Build_Dynamic_Library call.
31985 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
31986 Relocatable are now synonym.
31988 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
31990 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
31991 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
31994 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
31995 Lib_Address and Relocatable.
31996 (Default_DLL_Address): Removed.
31998 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
31999 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
32000 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
32001 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
32002 (Default_DLL_Address): Removed.
32004 * mlib-tgt-mingw.adb: Ditto.
32005 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
32007 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
32008 the initial thread stack size.
32010 * a-strmap.ads: Move package L to private part as it is not used in
32011 the spec. Found while reading code.
32013 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
32015 * tracebak.c: Introduce support for a GCC infrastructure based
32016 implementation of __gnat_backtrace.
32018 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
32019 any more. Use accessors instead. This eases maintenance and relaxes
32020 some alignment constraints.
32021 (_GNAT_Exception structure): Remove the Ada specific fields
32022 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
32024 (is_handled_by, __gnat_eh_personality): Replace component references to
32025 exception structure by use of the new accessors.
32027 * init.c (__gnat_initialize): Adjust comments to match the just
32028 reverted meaning of the -static link-time option.
32030 * adaint.c (convert_addresses): Arrange not to define a stub for
32031 mips-irix any more, as we now want to rely on a real version from a
32032 recent libaddr2line.
32034 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
32035 the personality routine can use them and not have to rely on a C
32036 counterpart of the record anymore. This simplifies maintenance and
32037 relaxes the constraint of having Standard'Maximum_Alignment match
32039 Update comments, and add a section on the common header alignment issue.
32041 2004-06-25 Geert Bosch <bosch@gnat.com>
32043 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
32044 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
32046 2004-06-25 Robert Dewar <dewar@gnat.com>
32048 * gnat_rm.texi: Fix section on component clauses to indicate that the
32049 restriction on byte boundary placement still applies for bit packed
32051 Add comment on stack usage from Initialize_Scalars
32053 * gnat_ugn.texi: Add documentation for -gnatyLnnn
32055 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
32056 limiting nesting level.
32058 * usage.adb: Add line for -gnatyLnnn switch
32060 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
32061 sem_ch13.adb, exp_aggr.adb: Minor reformatting
32063 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
32064 type as well as on the subtype. This corrects a problem in freeze in
32065 setting alignments of atomic types.
32067 * sem_eval.ads: Minor comment typo fixed
32069 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
32070 level. Minor reformatting.
32072 * fname.adb (Is_Predefined_File_Name): Require a letter after the
32073 minus sign. This means that file names like a--b.adb will not be
32074 considered predefined.
32076 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
32077 record Test new flag and give diagnostic for bad component clause.
32078 (Freeze_Entity): Set alignment of array from component alignment in
32079 cases where this is safe to do.
32081 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
32084 * cstand.adb: (Create_Standard): Set alignment of String to 1
32086 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
32088 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
32089 code in the common constrained array cases.
32091 * a-storio.adb: Change implementation to avoid possible alignment
32092 problems on machines requiring strict alignment (data should be moved
32093 as type Buffer, not type Elmt).
32095 * checks.adb (Apply_Array_Size_Check): Improve these checks by
32096 killing the overflow checks which we really do not need (64-bits is
32099 2004-06-25 Vincent Celier <celier@gnat.com>
32101 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
32102 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
32103 inconditionally for the main project.
32104 (Recursive_Add_Archives.Add_Archive_Path): New procedure
32105 (Link_Executables.Check_Time_Stamps): New procedure
32106 (Link_Executables.Link_Foreign): New procedure
32107 Changes made to reduce nesting level of this package
32108 (Check): New procedure
32109 (Add_Switches): When not in quiet output, check that a switch is not
32110 the concatenation of several valid switches. If it is, issue a warning.
32111 (Build_Global_Archive): If the global archive is rebuilt, linking need
32113 (Compile_Sources): Rebuilding a library archive does not imply
32114 rebuilding the global archive.
32115 (Build_Global_Archive): New procedure
32116 (Build_Library): New name for Build_Archive, now only for library
32118 (Check_Archive_Builder): New procedure
32119 (Create_Global_Archive_Dependency_File): New procedure
32120 (Gprmake): Call Build_Global_Archive before linking
32121 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
32123 (Scan_Arg): Display the Copyright notice when -v is used
32125 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
32128 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
32130 Add new GNAT LIST qualifier /FILES=
32131 Added qualifier /DIRECTORY= to GNAT METRIC
32132 Added qualifier /FILES= to GNAT METRIC
32133 Added qualifier /FILES to GNAT PRETTY
32135 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
32136 to take into account both versions of the switch.
32138 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
32139 always be the last switch to the gcc driver. Disable switch storing so
32140 that switches automatically added by the gcc driver are not put in the
32143 * prj.adb (Project_Empty): Take into account changes in components of
32146 * prj.ads (Languages_Processed): New enumaration value All_Languages.
32148 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
32149 used. Split Boolean component Ada_Sources_Present in two Boolean
32150 components Ada_Sources_Present and Other_Sources_Present.
32153 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
32154 instead of Sources_Present.
32155 (Set_Ada_Paths.Add.Recursive_Add): Ditto
32157 * prj-nmsc.adb: Minor reformatting
32158 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
32159 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
32160 Check_Ada_Naming_Scheme.
32161 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
32164 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
32166 Make sure that all cycles where there is at least one "limited with"
32168 (Parse_Single_Project): New Boolean parameter In_Limited
32170 * prj-proc.adb (Recursive_Check): When Process_Languages is
32171 All_Languages, call first Prj.Nmsc.Ada_Check, then
32172 Prj.Nmsc.Other_Languages_Check.
32174 * prj-proc.adb (Process): Use Ada_Sources_Present or
32175 Other_Sources_Present (instead of Sources_Present) depending on
32178 * lang-specs.h: Keep -g and -m switches in the same order, and as the
32181 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
32182 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
32184 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
32187 * lib.ads (Disable_Switch_Storing): New procedure.
32189 * make.adb: Modifications to reduce nesting level of this package.
32190 (Check_Standard_Library): New procedure
32191 (Gnatmake.Check_Mains): New procedure
32192 (Gnatmake.Create_Binder_Mapping_File): New procedure
32193 (Compile_Sources.Compile): Add switch -gnatez as the last option
32194 (Display): Never display -gnatez
32196 * Makefile.generic:
32197 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
32199 * gnatcmd.adb (Check_Project): New function
32200 (Process_Link): New procedure to reduce nesting depth
32201 (Check_Files): New procedure to reduce the nesting depth.
32202 For GNAT METRIC, include the inherited sources in extending projects.
32203 (GNATCmd): When GNAT LS is invoked with a project file and no files,
32204 add the list of files from the sources of the project file. If this list
32205 is too long, put it in a temp text files and use switch -files=
32206 (Delete_Temp_Config_Files): Delete the temp text file that contains
32207 a list of source for gnatpp or gnatmetric, if one has been created.
32208 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
32209 in the project file is too large, create a temporary text file that
32210 list them and pass it to the tool with "-files=<temp text file>".
32211 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
32213 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
32214 generated file is in not in Ada.
32216 * gnatls.adb: Remove all parameters And_Save that are no longer used.
32217 (Scan_Ls_Arg): Add processing for -files=
32218 (Usage): Add line for -files=
32220 * g-os_lib.adb (On_Windows): New global constant Boolean flag
32221 (Normalize_Pathname): When on Windows and the path starts with a
32222 directory separator, make sure that the resulting path will start with
32225 * clean.adb (Clean_Archive): New procedure
32226 (Clean_Project): When there is non-Ada code, delete the global archive,
32227 the archive dependency files, the object files and their dependency
32228 files, if they exist.
32229 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
32231 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
32233 * sinfo.ads: Fix typo in comment.
32235 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
32236 the TSS for remote access-to-subprogram types, since these TSS are
32237 always present once the type has been analyzed.
32238 (RAS_E_Dereference): Same.
32240 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
32241 reference raises Bad_Attribute, mark the reference as analyzed so the
32242 node (and any children resulting from rewrites that could have occurred
32243 during the analysis that ultimately failed) is not analyzed again.
32245 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
32247 * exp_dist.adb: Minor comment fix.
32249 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
32250 type is an anonymous access type, no unchecked deallocation of the
32251 allocated object can occur. If the object is controlled, attach it with
32252 a count of 1. This allows attachment to the Global_Final_List, if
32253 no other relevant list is available.
32254 (Get_Allocator_Final_List): For an anonymous access type that is
32255 the type of a discriminant or record component, the corresponding
32256 finalisation list is the one of the scope of the type.
32258 2004-06-25 Ed Schonberg <schonberg@gnat.com>
32260 * sem_ch3.adb (Replace_Type): When computing the signature of an
32261 inherited subprogram, use the first subtype if the derived type
32262 declaration has no constraint.
32264 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
32265 before applying previous optimization. Minor code cleanup.
32267 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
32268 placed at the beginning of an unpacked record without explicit
32269 alignment, a slice of it will be aligned and does not need a copy when
32272 2004-06-25 Ed Schonberg <schonberg@gnat.com>
32276 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
32277 reference is written with expressions mimicking parameters.
32279 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
32282 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
32283 STEP 2a. The constraints of a full type declaration of a derived record
32284 type are checked for conformance with those declared in the
32285 corresponding private extension declaration. The message
32286 "not conformant with previous declaration" is emitted if an error is
32289 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
32291 * g-traceb.ads: Document the need for -E binder switch in the spec.
32293 * g-trasym.ads: Document the need for -E binder switch in the spec.
32295 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
32297 * sem_prag.adb: Add handling of pragma Detect_Blocking.
32299 * snames.h, snames.ads, snames.adb: Add entry for pragma
32302 * s-rident.ads: Change reference to pragma Detect_Blocking.
32304 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
32307 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
32308 to indicate whether pragma Detect_Blocking is active.
32310 * par-prag.adb: Add entry for pragma Detect_Blocking.
32312 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
32313 of not handling WITH.
32314 Note that this replaces the previous update which was incorrect.
32316 2004-06-25 Javier Miranda <miranda@gnat.com>
32318 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
32319 use-clauses to have a clean environment.
32321 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
32322 the installation of the use-clauses to stablish a clean environment in
32323 case of compilation of a separate unit; otherwise the call to
32324 use_one_package is protected by the barrier Applicable_Use.
32326 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
32327 the installation of the use-clauses to stablish a clean environment in
32328 case of compilation of a separate unit.
32329 (End_Use_Clauses): Minor comment cleanup.
32331 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
32333 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
32335 2004-06-23 Richard Henderson <rth@redhat.com>
32337 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
32339 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32341 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
32342 now bool instead of int.
32343 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
32344 * trans.c (gnu_switch_label_stack): New function.
32345 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
32346 elaboration of renamed entity returns.
32347 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
32348 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
32349 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
32350 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
32351 DECL_SIZE_UNIT and simplify variable-sized case.
32352 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
32353 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
32354 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
32355 (build_unit_elab): Disable for now.
32356 * utils.c (mark_visited): New function.
32357 (pushdecl): Walk tree to call it for global decl.
32358 (update_pointer_to): Update all variants of pointer and ref types.
32359 Add arg to COMPONENT_REF.
32360 (convert): Likewise.
32361 Move check for converting between variants lower down.
32362 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
32363 (build_allocator): Don't force type of MODIFY_EXPR.
32364 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
32365 put_var_into_stack.
32367 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32369 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
32370 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
32371 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
32373 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
32374 all callers changed.
32375 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
32376 the way that EXIT_STMT finds the loop label.
32377 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
32378 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
32379 (add_stmt): Use annotate_with_locus insted of setting directly.
32380 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
32381 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
32382 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
32383 (build_vms_descriptor): Add extra args to ARRAY_REF.
32384 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
32385 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
32387 (build_binary_op): Don't make explicit CONVERT_EXPR.
32388 Add extra rgs to ARRAY_REF.
32390 2004-06-14 Pascal Obry <obry@gnat.com>
32392 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
32393 Windows. Fix minor typo.
32395 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
32396 which is now supported on Windows. With this implementation using the
32397 Library Project feature is no different on Windows than on UNIX.
32399 2004-06-14 Vincent Celier <celier@gnat.com>
32401 * makegpr.adb (Compile_Sources): Nothing to do when there are no
32404 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
32406 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
32407 found, show the project name and the path of the previously parsed
32410 2004-06-14 Ed Schonberg <schonberg@gnat.com>
32412 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
32413 array, avoid copying the actual before the call.
32415 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
32417 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
32418 Instead, allocate memory on worst-case alignment assumptions, and then
32419 return an aligned address within the allocated zone.
32421 2004-06-14 Robert Dewar <dewar@gnat.com>
32423 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
32424 elab entities in predefined units in No_Run_Time_Mode.
32425 (Gen_Adainit_C): Same fix
32426 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
32427 units in No_Run_Time_Mode
32428 (Gen_Elab_Calls_C): Same fix
32430 * symbols-vms-alpha.adb: Minor reformatting
32432 * g-debpoo.ads: Minor reformatting
32434 * lib.adb (In_Same_Extended_Unit): Version working on node id's
32436 * lib.ads (In_Same_Extended_Unit): Version working on node id's
32438 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
32441 * make.adb: Minor reformatting
32443 * par-ch12.adb: Minor reformatting
32445 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
32447 * prj-strt.adb: Minor reformatting
32449 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
32452 * sem_attr.adb: Minor reformatting
32454 * sem_ch7.adb: Minor reformatting
32456 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
32457 for type in the same unit as the object declaration.
32459 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
32460 static string expressions and not just string literals.
32462 (Set_Warning): Reset restriction warning flag for restriction pragma
32463 Implement pragma Profile_Warnings
32464 Implement pragma Profile (Restricted)
32465 Give obolescent messages for old restrictions and pragmas
32467 * snames.h, snames.ads, snames.adb: Add new entry for pragma
32470 * s-rident.ads: Add declarations for restrictions required by profile
32471 Restricted and profile Ravenscar.
32473 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
32475 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
32476 configuration pragmas.
32478 2004-06-11 Vincent Celier <celier@gnat.com>
32480 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
32481 gnatsym, when symbol policy is Restricted.
32483 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
32484 gnatsym, when symbol policy is Restricted.
32486 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
32487 read the symbol file.
32488 (Finalize): Fail in symbol policy Restricted if a symbol in the original
32489 symbol file is not in the object files. Do not create a new symbol file
32490 when symbol policy is Restricted.
32492 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
32495 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
32497 (Usage): Line for new switch -R
32499 * make.adb (Initialize): When the platform is not VMS, add the
32500 directory where gnatmake is invoked in the front of the path, if
32501 gnatmake is invoked with directory information. Change the Scan_Args
32502 while loop to a for loop.
32503 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
32504 if Depth is equal or greater than the proposed depth, there is nothing
32506 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
32509 * prj.ads: Add new symbol policy Restricted.
32511 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
32512 with the new parameters Check_All_Labels and Case_Location.
32514 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
32515 (Library_Symbol_File needs to be defined).
32517 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
32518 and Case_Location If Check_All_Labels is True, check that all values of
32519 the string type are used, and output warning(s) if they are not.
32521 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
32524 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
32526 * gnat_ugn.texi: Update documentation about the library directory in
32529 * makegpr.adb (Display_Command): In verbose mode, also display the
32530 value of the CPATH env var, when the compiler is gcc.
32531 (Initialize): Change the Scan_Args while loop to a for loop
32532 (Compile_Individual_Sources): Change directory to object directory
32533 before compilations.
32535 * symbols.ads: New symbol policy Restricted.
32537 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
32539 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
32540 is now taken care of internally in the Exception_Propagation package
32541 and does not require clients assistance any more.
32543 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
32544 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
32545 functions. Helpers to maintain a predicate required in the handling of
32546 occurrence transfer between tasks.
32547 This is now handled internally and does not require clients assistance
32548 for the setup/propagate separation anymore.
32549 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
32550 allocation strategy, handle the Setup_And_Not_Propagated predicate and
32553 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
32554 raise_after_setup, now that everything is handled internally within the
32555 setup/propagation engine.
32557 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
32559 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
32560 Add additional conditions for the case of an actual being a simple
32561 name or literal. Improve inlining by preventing the generation
32562 of temporaries with a short lifetime (one use).
32564 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
32567 * einfo.ads: Minor comment updates for Has_Completion and
32568 E_Constant list of flags.
32570 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
32571 and constant redeclarations now set the Has_Completion flag of their
32572 defining identifiers.
32574 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
32575 Inspect_Deferred_Constant_Completion.
32576 Used to detect private deferred constants that have not been completed
32577 either by a constant redeclaration or pragma Import. Emits error message
32578 "constant declaration requires initialization expression".
32580 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
32581 completes a deferred constant.
32583 2004-06-11 Geert Bosch <bosch@gnat.com>
32585 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
32587 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
32588 calculating exponent for scaling denormal numbers.
32589 (Leading_Part): Properly raise Constraint_Error for zero or negative
32591 (Remainder): Properly raise Constraint_Error for zero divisor.
32593 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
32595 * sem_util.adb: Minor reformatting.
32597 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
32598 dereference when accessing the entry parameter record.
32599 (Check_Array_Type): Always check for possible implicit dereference.
32600 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
32601 Abort if a pointer is still present (denoting that an implicit
32602 dereference was left in the tree by the front-end).
32604 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
32605 dereference when accessing the entry parameter record.
32606 (Check_Array_Type): Always check for possible implicit dereference.
32607 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
32608 Abort if a pointer is still present (denoting that an implicit
32609 dereference was left in the tree by the front-end).
32611 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
32613 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
32614 message, like the compiler itself does. Easier to parse the output.
32616 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
32618 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
32619 be base names, and not includes directories.
32621 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
32623 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
32624 so that dependencies are properly taken into account by make.
32626 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
32629 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
32630 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
32632 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
32634 * Makefile.in (install-gnatlib): install target-specific run-time files.
32636 * Make-lang.in: Remove obsolete targets.
32638 2004-06-11 Ed Schonberg <schonberg@gnat.com>
32640 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
32641 specification, to catch misuses of program unit names.
32643 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
32644 superfluous conversions in an instance.
32646 2004-06-11 Ed Schonberg <schonberg@gnat.com>
32649 * sem_ch12.adb (Save_References): If operator node has been folded to
32650 enumeration literal, associated_node must be discarded.
32652 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
32654 * s-stchop-vxworks.adb: Add required pragma Convention to
32655 Task_Descriptor because it is updated by a C function.
32657 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
32660 * Makefile.in: Remove target specific SO_OPT on IRIX
32662 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32664 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
32665 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
32666 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
32667 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
32668 (STMT_STMT, USE_STMT): New statement codes.
32669 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
32670 * ada-tree.h: Reflect above changes.
32671 (struct tree_loop_id): Deleted.
32672 (union lang_tree_node, struct lang_decl, struct lang_type):
32673 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
32674 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
32675 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
32676 (IS_ADA_STMT): New macro.
32677 * decl.c (annotate_decl_with_node): New function.
32678 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
32679 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
32680 Call add_stmt_with_node to do needed assignments.
32681 Add call to update setjmp buffer directly, not via EXPR_STMT.
32682 (maybe_variable): Argment GNAT_NODE deleted.
32683 * gigi.h (maybe_variable): Likewise.
32684 (make_transform, add_stmt_with_node, set_block_for_group): New.
32685 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
32686 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
32687 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
32688 (set_lineno, set_lineno_from_sloc): Likewise.
32689 (record_code_position, insert_code_for): Likewise.
32690 (gnat_poplevel): Now returns void.
32691 (end_subprog_body): Now takes argument.
32692 * misc.c (cgraph.h, tree-inline.h): New includes.
32693 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
32694 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
32695 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
32696 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
32697 (gnat_parse_file): Don't set immediate_size_expand.
32698 Call cgraph functions.
32699 (gnat_expand_expr): Remove most cases.
32700 (record_code_position, insert_code_for): Remove from here.
32701 * trans.c (toplev.h, tree-gimple.h): Now included.
32702 (discard_file_names): Deleted.
32703 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
32704 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
32705 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
32706 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
32707 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
32708 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
32709 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
32710 (set_block_for_group, add_stmt_list): Likewise.
32711 (start_stmt_group): Renamed from start_block_stmt.
32712 (end_stmt_group): Likewise, from end_block_stmt.
32713 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
32714 (gigi): Don't set discard_file_names or call set_lineno.
32715 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
32716 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
32717 Numerous changes throughout to reflect new names and complete
32718 function-at-a-time implementation.
32719 (gnat_expand_stmt): Delete or comment out all cases.
32720 (process_inlined_subprograms): Use add_stmt.
32721 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
32722 call set_lineno; also remove unneeded block handling.
32723 (process_type): Remove unneeded block handling.
32724 (build_unit_elab): Remove calls to deleted functions.
32725 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
32726 (tree-dump.h): Likewise.
32727 (struct ada_binding_level): Add field jmpbuf_decl.
32728 (gnat_define_builtin, gnat_install_builtins): New.
32729 (gnat_gimplify_function, gnat_finalize): Likewise.
32730 (gnat_poplevel): No longer return BLOCK, set it instead.
32731 Remove code dealing with nested functions.
32732 (gnat_init_decl_processing): Also set size_type_node.
32733 Call gnat_install_builtins.
32734 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
32735 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
32736 Remove special-case for "main".
32737 (end_subprog_body): Add arg and rework for tree-ssa.
32738 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
32739 Add case for BOOLEAN_TYPE.
32740 * utils2.c (rtl.h): Now include.
32741 (build_call_raise): Test Debug_Flag_NN directly.
32742 (build_call_alloc_dealloc): Don't use local stack allocation for now.
32743 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
32744 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
32746 2004-06-07 Robert Dewar <dewar@gnat.com>
32748 * a-direct.ads, einfo.ads: Minor comment updates
32750 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
32751 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
32752 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
32753 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
32754 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
32756 * s-interr-sigaction.adb: Remove unreferenced variable
32757 (Attached_Interrupts). Minor reformatting.
32758 Avoid use of variable I (replace by J).
32760 * par-ch10.adb: Fix text of one error message
32762 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
32763 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
32764 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
32765 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
32766 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
32767 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
32768 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
32769 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
32770 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
32771 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
32772 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
32775 2004-06-07 Doug Rupp <rupp@gnat.com>
32777 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
32779 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
32781 * mlib-tgt-vms-ia64.adb: New file.
32783 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
32784 Add mlib-tgt-vms-ia64.adb
32785 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
32786 Move to alpha specific ifeq section.
32787 Add VMS specific versions of symbols.adb
32788 Renaming of 5q vms files.
32790 * 5qsystem.ads renamed to system-vms_64.ads.
32792 2004-06-07 Vincent Celier <celier@gnat.com>
32794 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
32795 explain that when a time of day corresponding to the non existing hour
32796 on the day switching to DST is specified, Split may return a different
32799 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
32802 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
32803 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
32805 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
32807 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
32808 the linking options.
32809 (Build_Library.Check_Libs): On VMS, if there is a dependency on
32810 g-trasym.ads, set Gtrasymobj_Needed to True.
32812 * prj-attr.adb: Add new package Metrics for gnatmetric
32814 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
32815 canonical case to take into account files with upper case characters on
32817 (Ada_Check): Load the reference symbol file name in the name buffer to
32818 check it, not the symbol file name.
32820 * snames.ads, snames.adb: Add standard name Metrics (name of project
32821 file package for gnatmetric).
32823 * vms_conv.ads: Add Metric to Comment_Type
32825 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
32827 * vms_data.ads: Add qualifiers for GNAT METRIC
32829 * makegpr.adb (Link_Executables): Take into account the switches
32830 specified in package Linker of the main project.
32832 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
32834 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
32835 the index of the last element is Units.Last, not Units.Table'Last
32836 (which is usually not a valid index within the actually allocated
32837 storage for the table).
32839 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
32840 determines whether to generate a call to a checked storage pool
32841 Dereference action.
32842 Generate such a call only for a dereference that either comes from
32843 source, or is the result of rewriting a dereference that comes from
32846 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
32848 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
32850 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
32852 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
32853 file level, elaborate the stride for inner dimensions in alignment
32856 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
32859 2004-06-07 Javier Miranda <miranda@gnat.com>
32861 * exp_ch6.adb: Correct wrong modification in previous patch
32863 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
32865 * g-trasym.ads: Corrected comment to properly reflect level of support
32868 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
32870 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
32871 includes case of a variable referenced on the left hand side of an
32872 assignment, therefore remove redundant code. Variables and prefixes of
32873 indexed or selected components are now marked as referenced on left
32874 hand side. Warnings are now properly emitted when variables or prefixes
32875 are assigned but not read.
32877 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
32878 left hand side referenced variables. Private access types do not
32879 produce the warning "variable ... is assigned but never read".
32880 Add also additional checks to left hand side referenced variables.
32881 Aliased, renamed objects and access types do not produce the warning
32882 "variable ... is assigned but never read" since other entities may read
32883 the memory location.
32885 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
32887 * Makefile.in: In the powerpc/vxworks-specific section, restore
32888 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
32891 2004-06-07 Ed Schonberg <schonberg@gnat.com>
32893 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
32894 predefined operators.
32895 Removes spurious type errors from g-trasym-vms.adb.
32897 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
32898 distinct from the operator appearing in the source, call appropriate
32899 routine to insert conversions when needed, and complete resolution of
32901 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
32902 interpretations for rewritten right operand.
32903 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
32904 the other operand is overloaded and the context is a type conversion.
32906 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32908 * ada-tree.def (BLOCK_STMT): Now has two operands.
32911 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
32913 * gigi.h: (gnat_poplevel): Now returns a tree.
32915 * trans.c (end_block_stmt): Add arg; all callers changed.
32916 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
32917 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
32918 (add_stmt): Set TREE_TYPE.
32919 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
32920 (gnat_expand_stmt, case BREAK_STMT): New case.
32922 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
32924 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
32926 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
32927 procedure Set_Stack_Size that is not needed.
32929 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
32931 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
32932 used for gnatpp input file and for the files upon which it depends
32934 2004-06-07 Ben Brosgol <brosgol@gnat.com>
32936 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
32938 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
32940 * gnatvsn.ads: Bump version numbers appropriately.
32941 Add new build type.
32943 2004-06-07 Pascal Obry <obry@gnat.com>
32945 * gnat_ugn.texi: Improve comments about imported names and link names
32946 on Windows. Add a note about the requirement to use -k gnatdll's option
32947 when working with a DLL which has stripped stdcall symbols (no @nn
32950 2004-05-27 Vincent Celier <celier@gnat.com>
32952 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
32953 COMMENTS_LAYOUT=UNTOUCHED
32955 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
32956 symbols-vms-alpha.adb
32958 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
32960 * sem.ads: Clarify documentation on checks suppression.
32962 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
32964 2004-05-27 Ed Schonberg <schonberg@gnat.com>
32966 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
32967 the case of multiple derivations.
32968 (Is_Object_Reference): For a selected component, verify that the prefix
32969 is itself an object and not a value.
32971 * sem_ch12.adb (Same_Instantiated_Constant): New name for
32972 Same_Instantiated_Entity.
32973 (Same_Instantiated_Variable): Subsidiary to
32974 Check_Formal_Package_Instance, to recognize actuals for in-out generic
32975 formals that are obtained from a previous formal package.
32976 (Instantiate_Subprogram_Body): Emit proper error when
32977 generating code and the proper body of a stub is missing.
32979 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
32980 has a universal interpretation, do the disambiguation here.
32982 * exp_ch4.adb (Expand_N_Type_Conversion,
32983 Expand_N_Unchecked_Type_Conversion): Special handling when target type
32984 is Address, to avoid typing anomalies when Address is a visible integer
32987 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
32988 to determine whether a subprogram should not be marked Pure, even when
32989 declared in a pure package.
32991 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
32993 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
32995 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
32996 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
32997 Update the documentation about the Ravenscar profile, following the
32998 definition found in AI-249.
33000 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
33001 setting the Profile (Ravenscar). This must be done in addition to
33002 setting the required restrictions.
33004 * rtsfind.ads: Add the set of operations defined in package
33007 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
33010 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
33012 lang-specs.h: Always require -c or -S and always redirect to /dev/null
33013 if -gnatc or -gnats is passed.
33015 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
33017 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
33018 a significant reference. Warnings are now properly emitted when a
33019 discriminated type is not referenced.
33021 * lib-xref.adb (Generate_Reference): A deferred constant completion,
33022 record representation clause or record type discriminant does not
33023 produce a reference to its corresponding entity. Warnings are now
33024 properly emitted when deferred constants and record types are not
33027 2004-05-27 Geert Bosch <bosch@gnat.com>
33029 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
33030 Fixes ACATS Annex G tests.
33032 2004-05-27 Robert Dewar <dewar@gnat.com>
33034 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
33037 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
33039 * s-interr.adb (Server_Task): Take into account case of early return
33040 from sigwait under e.g. linux.
33042 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
33044 * gnat_ugn.texi: Add description for the new gnatpp options:
33045 -rnb - replace the original source without creating its backup copy
33046 -c0 - do not format comments
33048 2004-05-24 Geert Bosch <bosch@gnat.com>
33050 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
33051 with 192 bits of precision, sufficient to reduce a double-extended
33052 arguments X with a maximum relative error of T'Machine_Epsilon, for X
33053 in -2.0**32 .. 2.0**32.
33054 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
33055 reduction by the processor, which only uses a 68-bit approximation of
33057 (Tan): Always reduce arguments and compute function either using
33058 the processor's fptan instruction, or by dividing sin and cos as needed.
33060 2004-05-24 Doug Rupp <rupp@gnat.com>
33062 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
33063 gcc error on 32/64 bit VMS.
33065 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
33067 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
33068 since this is what we get for stack overflows although not documented
33070 Document the issues which may require adjustments to our signal
33073 2004-05-24 Ed Schonberg <schonberg@gnat.com>
33075 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
33076 enclosing dynamic scope if the instantiation is within a generic unit.
33078 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
33080 * exp_dbug.ads: Fix typo.
33082 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
33083 Rename it to its proper name: system-linux-ia64.ads
33084 (stamp-gnatlib1): Remove extra target specific run time files when
33085 setting up the rts directory.
33087 2004-05-24 Javier Miranda <miranda@gnat.com>
33089 * einfo.ads, einfo.adb (Limited_Views): Removed.
33090 (Limited_View): New attribute that replaces the previous one. It is
33091 now a bona fide package with the limited-view list through the
33092 first_entity and first_private attributes.
33094 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
33095 limited-private-with clause.
33096 (Install_Limited_Withed_Unit): Install the private declarations of a
33097 limited-private-withed package. Update the installation of the shadow
33098 entities according to the new structure (see Build_Limited_Views)
33099 (Build_Limited_Views): Replace the previous implementation of the
33100 limited view by a package entity that references the first shadow
33101 entity plus the first shadow private entity (required for limited-
33102 private-with clause)
33103 (New_Internal_Shadow_Entity): Code cleanup.
33104 (Remove_Limited_With_Clause): Update the implementation to undo the
33105 new work carried out by Build_Limited_Views.
33106 (Build_Chain): Complete documentation.
33107 Replace Ada0Y by Ada 0Y in comments
33110 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
33111 types the level of accessibility depends on the enclosing type
33114 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
33115 entities. Complete documentation of previous change.
33117 2004-05-24 Robert Dewar <dewar@gnat.com>
33119 * namet.adb: Minor reformatting
33120 Avoid use of name I (replace by J)
33121 Minor code restructuring
33123 * sem_ch6.adb: Minor reformatting
33125 * lib-writ.adb: Do not set restriction as active if this is a
33126 Restriction_Warning case.
33128 * sem_prag.adb: Reset restriction warning flag if real pragma
33129 restriction encountered.
33131 * s-htable.adb: Minor reformatting
33132 Change rotate count to 3 in Hash (improves hash for small strings)
33134 * 5qsystem.ads: Add comments for type Address (no literals allowed).
33136 * gnat_ugn.texi: Add new section of documentation "Code Generation
33137 Control", which describes the use of -m switches.
33139 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
33141 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
33142 through the DECL_INITIAL for renamed variables.
33144 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
33146 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
33148 2004-05-19 Joel Brobecker <brobecker@gnat.com>
33150 * exp_dbug.ads: Correct comments concerning handling of overloading,
33151 since we no longer use $ anymore.
33153 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
33155 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
33156 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
33157 with illegal subunits.
33159 2004-05-19 Ed Schonberg <schonberg@gnat.com>
33161 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
33162 body with front-end inlining enabled, check whether an inline pragma
33163 appears immediately after the body and applies to it.
33165 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
33166 enabled and the pragma appears after the body of the subprogram.
33168 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33170 Part of function-at-a-time conversion
33172 * misc.c (adjust_decl_rtl): Deleted.
33173 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
33176 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
33177 (add_decl_stmt, add_stmt, block_has_vars): New functions.
33178 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
33180 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
33181 when making a decl.
33182 (gnat_to_gnu_entity): Likewise.
33183 Use add_stmt to update setjmp buffer.
33184 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
33186 No longer call adjust_decl_rtl.
33187 (DECL_INIT_BY_ASSIGN_P): New macro.
33188 (DECL_STMT_VAR): Likewise.
33190 * trans.c (gigi): Call start_block_stmt to make the outermost
33192 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
33193 Call start_block_stmt and end_block_stmt temporarily.
33194 Use gnat_expand_stmt instead of expand_expr_stmt.
33195 (add_decl_stmt): New function.
33196 (tree_transform): Call it.
33197 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
33198 (end_block_stmt): Set type and NULL_STMT.
33199 (gnat_expand_stmt): Make recursize call instead of calling
33201 (gnat_expand_stmt, case DECL_STMT): New case.
33202 (set_lineno_from_sloc): Do nothing if global.
33203 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
33204 (start_block_stmt, add_stmt, end_block_stmt): New functions.
33205 (build_block_stmt): Call them.
33206 (gnat_to_code): Don't expand NULL_STMT.
33207 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
33209 (tree_transform): Likewise.
33210 (tree_transform, case N_Null_Statement): Return NULL_STMT.
33211 (gnat_expand_stmt, case NULL_STMT): New case.
33212 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
33215 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
33218 * utils.c (create_var_decl): Do not call expand_decl or
33220 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
33221 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
33223 (struct e_stack): Add chain_next to GTY.
33224 (struct binding_level): Deleted.
33225 (struct ada_binding_level): New struct.
33226 (free_block_chain): New.
33227 (global_binding_level, clear_binding_level): Deleted.
33228 (global_bindings_p): Rework to see if no chain.
33229 (kept_level_p, set_block): Deleted.
33230 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
33231 new data structure and work directly on BLOCK node.
33232 (gnat_poplevel): Similarly.
33233 (get_decls): Look at BLOCK_VARS.
33234 (insert_block): Work directly on BLOCK node.
33235 (block_has_var): New function.
33236 (pushdecl): Rework for new binding structures.
33237 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
33239 (build_subprog_body): Likewise.
33240 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
33242 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
33244 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
33245 (DECL_STMT_VAR): Likewise.
33247 2004-05-17 Robert Dewar <dewar@gnat.com>
33249 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
33252 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
33253 of restriction synonyums by using
33254 Restrict.Process_Restriction_Synonyms.
33256 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
33258 * s-restri.ads (Tasking_Allowed): Correct missing comment
33260 * s-rident.ads: Add entries for restriction synonyms
33262 * ali.adb: Fix some problems with badly formatted ALI files that can
33263 result in infinite loops.
33265 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
33266 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
33267 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
33268 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
33269 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
33270 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
33271 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
33272 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
33273 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
33274 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
33275 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
33276 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
33277 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
33278 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
33279 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
33280 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
33281 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
33282 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
33283 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
33284 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
33285 to Task_Id (minor cleanup).
33287 2004-05-17 Vincent Celier <celier@gnat.com>
33289 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
33290 directory separator.
33292 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
33293 project being extended, if Languages is not declared in extending
33296 2004-05-17 Javier Miranda <miranda@gnat.com>
33298 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
33299 limited view of a visible sibling.
33301 2004-05-14 Robert Dewar <dewar@gnat.com>
33303 * gnat_ugn.texi: Minor change to -gnatS documentation
33305 * sprint.adb: Remove some instances of Assert (False) and for this
33306 purpose replace them by output of a ??? string.
33308 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
33311 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
33312 flag processing. This was suppressing required dependencies in
33313 No_Run_Time mode and is not needed since the binder does not generate
33314 references for things in libgnat anyway.
33316 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
33319 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
33321 * gnat_ugn.texi: Document AIX-specific issue with initialization of
33324 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
33325 action for the case of an actual parameter in an init proc call.
33327 2004-05-14 Ed Schonberg <schonberg@gnat.com>
33329 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
33330 subtype, check visible entities in base type.
33332 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
33333 actions if the object is a renaming.
33335 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
33336 Check_Formal_Package_Instance, to determine more precisely when the
33337 formal and the actual denote the same entity.
33339 2004-05-14 Javier Miranda <miranda@gnat.com>
33341 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
33343 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
33344 corresponding to a private_with must be removed from visibility; it
33345 will be made visible later, just before we analyze the private part of
33347 (Check_Private_Child_Unit): Allow private_with clauses in public
33349 (Install_Siblings): Make visible the private entities of private-withed
33351 (Install_Withed_Unit): Do not install the private withed unit if we
33352 are compiling a package declaration and the Private_With_OK flag was
33353 not set by the caller. These declarations will be installed later,
33354 just before we analyze the private part of the package.
33356 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
33357 during the evaluation of the expression that initializes the object,
33358 decorate it with the expected type to avoid cascade errors.
33361 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
33362 subprogram we have to install the private_with clauses after its
33363 specification has been analyzed (as documented in AI-262.TXT).
33365 * sem_ch8.adb (Has_Private_With): New function. Determines if the
33366 current compilation unit has a private with on a given entity.
33367 (Find_Direct_Name): Detect the Beaujolais problem described in
33370 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
33371 provides the functionality of the function Is_Ancestor that was
33372 previously available in sem_ch10. It has been renamed to avoid
33375 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
33377 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33379 * utils.c (build_vms_descriptor): Use SImode pointers.
33381 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
33383 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
33385 2004-05-14 GNAT Script <nobody@gnat.com>
33387 * Make-lang.in: Makefile automatically updated
33389 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
33391 Renaming of target specific files for clarity
33393 * Makefile.in: Rename GNAT target specific files.
33395 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
33396 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
33397 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
33398 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
33399 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
33400 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
33401 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
33402 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
33403 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
33404 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
33405 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
33406 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
33407 51osinte.adb, 51osinte.ads, 51system.ads,
33408 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
33409 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
33410 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
33411 56tpopsp.adb, 57system.ads, 58system.ads,
33412 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
33413 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
33414 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
33415 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
33416 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
33417 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
33418 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
33419 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
33420 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
33421 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
33422 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
33423 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
33424 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
33425 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
33426 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
33427 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
33428 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
33429 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
33430 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
33431 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
33432 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
33433 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
33434 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
33435 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
33436 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
33437 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
33438 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
33439 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
33440 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
33441 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
33442 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
33443 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
33444 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
33445 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
33446 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
33447 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
33448 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
33449 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
33450 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
33451 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
33453 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
33454 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
33455 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
33456 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
33457 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
33458 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
33459 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
33460 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
33461 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
33462 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
33463 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
33464 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
33465 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
33466 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
33467 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
33468 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
33469 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
33470 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
33471 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
33472 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
33473 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
33474 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
33475 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
33476 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
33477 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
33478 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
33479 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
33480 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
33481 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
33482 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
33483 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
33484 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
33485 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
33486 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
33487 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
33488 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
33489 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
33490 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
33491 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
33492 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
33493 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
33494 s-osinte-vms.ads, s-osinte-vxworks.adb,
33495 s-osinte-vxworks.ads, s-osprim-mingw.adb,
33496 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
33497 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
33498 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
33499 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
33500 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
33501 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
33502 s-stchop-vxworks.adb, s-taprop-dummy.adb,
33503 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
33504 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
33505 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
33506 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
33507 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
33508 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
33509 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
33510 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
33511 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
33512 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
33513 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
33514 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
33515 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
33516 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
33517 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
33518 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
33519 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
33520 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
33521 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
33522 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
33523 system-irix-o32.ads, system-linux-x86_64.ads,
33524 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
33525 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
33526 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
33527 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
33528 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
33529 system-vxworks-mips.ads, system-vxworks-ppc.ads,
33530 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
33533 2004-05-13 Zack Weinberg <zack@codesourcery.com>
33535 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
33537 2004-05-13 Diego Novillo <dnovillo@redhat.com>
33539 Merge from tree-ssa-20020619-branch.
33541 * config-lang.in (boot_language, build_by_default): Set
33543 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
33544 (max_size): Add static chain op for call_expr.
33546 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
33549 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
33551 2004-05-11 Roger Sayle <roger@eyesopen.com>
33553 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
33556 2004-05-10 Doug Rupp <rupp@gnat.com>
33558 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
33561 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
33563 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
33565 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
33566 Fixes undefined symbols in IA64 gnatlib.
33568 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
33570 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
33571 Short_Address). This will be moved to system.auxdec.
33573 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
33575 * sem_util.adb: Replace test for presence of a node that is always
33576 present with a call to Discard_Node.
33578 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
33579 Analyze on the library unit node after generation of distribution stub
33580 constructs. The call was a no-op because Unit_Node has already been
33581 Analyzed, and the tree fragments for the distribution stubs are
33582 analyzed as they are inserted in Exp_Dist.
33583 Update comment regarding to distribution stubs to reflect that we
33584 do not generate stub in separate files anymore.
33586 * einfo.ads: Clarify the fact that a tagged private type has the
33587 E_Record_Type_With_Private Ekind.
33589 * erroutc.adb: Minor reformatting
33591 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
33592 values if line length is increased using -gnatyM (noticed during code
33595 * eval_fat.adb: Minor reformatting
33596 Put spaces around exponentiation operator
33598 2004-05-10 Ed Schonberg <schonberg@gnat.com>
33601 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
33602 has been rewritten as an explicit dereference, retrieve type of
33603 original node to check for possibly unconstrained record type.
33605 2004-05-10 Ed Schonberg <schonberg@gnat.com>
33607 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
33608 overriding, use the operation of the parent unconditionally.
33610 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
33611 operation when either operand is a literal, to avoid further
33614 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
33615 overridden by a previous explicit declaration, mark the previous entity
33618 * sem_disp.adb (Check_Dispatching_Operation): New predicate
33619 Is_Visibly_Controlled, to determine whether a declaration of a
33620 primitive control operation for a derived type overrides an inherited
33621 one. Add warning if the explicit declaration does not override.
33623 2004-05-10 Vincent Celier <celier@gnat.com>
33625 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
33626 some cases when the sources are no longer present.
33628 * make.adb (Collect_Arguments): Fail if an external source, not part
33629 of any project need to be compiled, when switch -x has not been
33632 * makeusg.adb: Document new switch -x
33634 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
33635 defaulted to False.
33637 * switch-m.adb (Scan_Make_Switches): New switch -x
33639 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
33640 gnatmake switch -x.
33642 * gnat_ugn.texi: Document new gnatmake switch -x
33644 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
33646 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
33648 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
33649 (process_attributes): Likewise.
33651 2004-05-10 Joel Brobecker <brobecker@gnat.com>
33653 * s-inmaop.ads: Fix spelling mistake in one of the comments.
33655 2004-05-10 Robert Dewar <dewar@gnat.com>
33657 * gnat_ugn.texi: Document that for config pragma files, the maximum
33658 line length is always 32767.
33660 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
33661 literals is now allowed.
33663 * gnat-style.texi: Remove statement about splitting long lines before
33664 an operator rather than after, since we do not follow this rule at all.
33665 Clarify rule (really lack of rule) for spaces around exponentiation
33667 * sem_elim.adb: Allow concatenation of string literals as well as a
33668 single string literal for pragma arguments.
33670 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
33672 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
33673 written for append case.
33675 * frontend.adb: Changes to avoid checking max line length in config
33678 * g-os_lib.ads: Minor reformatting
33680 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
33681 wrong in any case. Instead use standard value. Noticed during code
33684 * opt.ads (Max_Line_Length): New field, used to implement removal of
33685 limitation on length of lines when scanning config pragma files.
33687 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
33688 makeutl.ads, makeutl.adb: Minor reformatting
33690 * scn.adb: Do not check line length while scanning config pragma files
33691 Do not check line length while scanning out license information
33693 * scng.adb: Changes to avoid line length checks while parsing config
33696 2004-05-10 GNAT Script <nobody@gnat.com>
33698 * Make-lang.in: Makefile automatically updated
33700 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
33702 * osint.adb (Find_Program_Name): Fix handling of VMS version
33705 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
33707 * g-os_lib.ads (Invalid_Time): New constant
33709 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
33710 return OS_Time instead of time_t to match what is imported by Ada.
33711 Now return -1 if the file doesn't exist, instead of a random value
33713 2004-05-05 Robert Dewar <dewar@gnat.com>
33715 * usage.adb: Add line for -gnatR?s switch
33717 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
33719 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
33720 and for Match (Data_First, Data_last)
33722 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
33723 written when we are dealing with multi-unit files.
33725 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
33727 * Makefile.in: Remove unused targets and variables.
33729 2004-05-05 Vincent Celier <celier@gnat.com>
33731 * switch-m.adb: New gnatmake switch -eI
33733 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
33734 of new gnatmake switch -eInnn.
33736 * makegpr.adb: Take into account new parameters Index and Src_Index in
33739 * clean.adb: Implement support for multi-unit sources, including new
33742 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
33745 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
33746 (Extract_From_Q): New out parameter Index
33747 (Mark, Is_Marked): Subprograms moved to Makeutl
33748 (Switches_Of): New parameter Source_Index
33749 (Add_Switch): New parameter Index
33750 (Check): New parameter Source_Index
33751 (Collect_Arguments): New parameter Source_Index
33752 (Collect_Arguments_And_Compile): New parameter Source_Index
33753 (Compile): New parameter Source_Index
33754 Put subprograms in alphabetical order
33755 Add support for multi-source sources, including in project files.
33757 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
33758 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
33761 * makeusg.adb: New gnatmake switch -eInnn
33763 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
33766 * opt.ads (Main_Index): New variable, defaulted to 0.
33768 * osint.ads, osinte.adb (Add_File): New parameter Index
33769 (Current_Source_Index): New function
33771 * prj.adb: Take into account new components Index and Src_Index
33773 * prj.ads (String_Element): New component Index
33774 (Variable_Value): New component Index
33775 (Array_Element): New component Src_Index
33777 * prj-attr.adb: Indicate that optional index may be specified for
33778 attributes Main, Executable, Spec, Body and some of Switches.
33780 * prj-attr.ads (Attribute_Kind): New values for optional indexes
33781 (Attribute_Record): New component Optional_Index
33783 * prj-com.ads (File_Name_Data): New component Index
33785 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
33787 * prj-env.adb (Put): Output optional index
33789 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
33790 attributes Spec and Body.
33792 * prj-nmsc.adb: Process optional indexes
33794 * prj-pp.adb: Ouput "at" for optional indexes
33796 * prj-proc.adb: Take into account optional indexes
33798 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
33799 Optional_Index. For string literal,
33800 process optional index when Optional_Index is True.
33801 (Parse_Expresion): New Boolean parameter Optional_Index
33803 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
33804 (Set_Source_Index_Of): New procedure
33806 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
33809 * prj-util.ads (Executable_Of): New parameter Index
33810 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
33811 New parameter Src_Index, defaulted to 0.
33813 2004-05-05 Ed Schonberg <schonberg@gnat.com>
33816 * sem_ch3.adb (Access_Definition): If this is an access parameter
33817 whose designated type is imported through a limited_with clause, do
33818 not add the enclosing subprogram to the list of private dependents of
33821 2004-05-05 Ed Schonberg <schonberg@gnat.com>
33824 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
33825 a limited_with clause, and the other is its non-limited view.
33827 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
33829 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
33831 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
33832 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
33833 Stand.Boolean_Literals to produce references to entities
33834 Standard_False and Standard_True from compile-time computed boolean
33837 * stand.ads (Boolean_Literals): New variable, provides the entity
33838 values for False and True, for use by the expander.
33840 2004-05-05 Doug Rupp <rupp@gnat.com>
33842 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
33843 5vinmaop.adb: Unchecked convert Short_Address vice Address
33845 * adaint.c, raise.c: Caste CRTL function return value
33846 to avoid gcc error on 32/64 bit IVMS.
33848 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
33851 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
33853 * 5qsystem.ads (Address): Declare as Long_Integer
33854 (Short_Address): Declare as 32 bit subtype of Address
33855 Declare abstract address operations to avoid gratuitous ambiguities.
33857 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
33859 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
33860 instead of the old Boolean_Entry_Barriers.
33861 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
33863 2004-05-05 GNAT Script <nobody@gnat.com>
33865 * Make-lang.in: Makefile automatically updated
33867 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
33869 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
33871 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
33874 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
33875 alone. Replacing object references by literals is inappropriate in a
33876 so low level context.
33878 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
33880 * a-exexpr.adb: Add comments
33882 2004-05-03 Joel Brobecker <brobecker@gnat.com>
33884 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
33885 declare the Ancestor_Tags array in Type_Specific_Data with a small size
33886 without risking a bounds check error when accessing one of its
33888 (Type_Specific_Data): Define Ancestor_Tags as a small array.
33889 This prevents us from hitting a limitation during the debug info
33890 generation when using stabs.
33892 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
33894 This prevents us from hitting a limitation during the debug info
33895 generation when using stabs.
33897 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
33899 lang-specs.h: Remove -gnatz* from specs.
33901 2004-05-03 Vincent Celier <celier@gnat.com>
33903 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
33905 * Make-lang.in, Makefile.in: Add gprmake
33907 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
33909 * sem_aggr.adb: Fix typo in comment.
33911 2004-05-03 Robert Dewar <dewar@gnat.com>
33913 * make.adb: Minor reformatting
33915 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
33917 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
33918 so that it works when address is not a private type.
33920 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
33921 properly with rewritten unchecked conversions. This prevents
33922 order-of-elaboration issues that can otherwise arise.
33923 (Minimum_Size): Don't check size of access types under VMS
33925 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
33926 interpretations of integer literals as type System.Address.
33928 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
33929 (Is_Descendent_Of): New function
33931 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
33933 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
33934 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
33935 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
33937 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
33938 of the old Max_Entry_Queue_Depth.
33940 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
33941 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
33942 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
33944 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
33945 New entry for proper handling of Max_Entry_Queue_Depth.
33946 New entry for proper handling of No_Dynamic_Interrupts.
33948 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
33949 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
33950 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
33951 the GNAT specific restriction Max_Entry_Queue_Depth.
33952 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
33953 the GNAT specific restriction No_Dynamic_Interrupts.
33955 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
33956 instead of the old Boolean_Entry_Barriers.
33957 Use the new restriction No_Dynamic_Attachment instead of the old
33958 No_Dynamic_Interrupts.
33960 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
33961 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
33963 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
33964 of the old Max_Entry_Queue_Depth.
33966 2004-05-03 GNAT Script <nobody@gnat.com>
33968 * Make-lang.in: Makefile automatically updated
33970 2004-04-29 Ed Schonberg <schonberg@gnat.com>
33972 * checks.adb (Enable_Range_Check): If the prefix of an index component
33973 is an access to an unconstrained array, perform check unconditionally.
33975 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33977 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
33980 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
33982 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
33983 alternate stack setting. There was no support for the tasking cases
33984 and the changes eventually caused a number of side-effect failures in
33985 the non-tasking case too.
33987 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
33989 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
33992 2004-04-29 Vincent Celier <celier@gnat.com>
33994 * make.adb (Gnatmake): Increase max size of argument array for
33995 gnatbind for the potential addition of -F.
33996 If there are Stand-Alone Library projects, invoke gnatbind with -F to
33997 be sure that elaboration flags will be checked.
33999 * switch-c.adb: Correct call to Scan_Pos for -gnateI
34001 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
34003 * sem_warn.adb (Check_References): Move '<access-variable> may be
34004 null' warning out of under Warn_On_No_Value_Assigned.
34006 2004-04-29 Ed Falis <falis@gnat.com>
34008 * gnat_ugn.texi: Fixed texi error
34010 2004-04-29 Robert Dewar <dewar@gnat.com>
34012 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
34013 abstract operations if they come from predefined files.
34015 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
34018 * s-addope.adb: Correct obvious error in mod function
34020 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
34022 * Makefile.in: Add target pairs for powerpc darwin*
34025 * a-intnam-darwin.ads, s-osinte-darwin.adb,
34026 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
34028 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
34030 * Makefile.in: Add target macro definitions for s390*-linux*.
34031 * system-linux-s390.ads: New file.
34032 * system-linux-s390x.ads: New file.
34034 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
34036 * gnat_ugn.texi: Correct argument to @setfilename.
34038 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
34040 * a-exexpr.adb (Unwind_Word): New data type.
34041 (Unwind_Exception): Use it as type of Private1 and Private2.
34043 * raise.c (db_action_for): Fix debug printf.
34045 2004-04-27 Ed Schonberg <schonberg@gnat.com>
34047 * a-wtmoio.ads: Formal type must be a modular type, not a signed
34050 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34052 * decl.c (gnat_to_gnu_entity, case object): Call
34053 __builtin_update_setjmp_buf.
34055 * gigi.h (update_setjmp_buf): Deleted.
34056 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
34058 * misc.c: (update_setjmp_buf): Deleted.
34060 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
34061 around block of RTL.
34063 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
34065 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
34067 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
34068 subprogram for which no pragma All_Calls_Remote applies, store the
34069 address of the real subprogram in the underlying record type, so local
34070 dereferences do not go through the PCS.
34072 2004-04-26 Robert Dewar <dewar@gnat.com>
34074 * i-c.ads: Add some type qualifications to avoid ambiguities when
34075 compiling with s-auxdec.ads and a non-private address type.
34077 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
34079 * Makefile.rtl: Fix error in previous check-in:
34080 Add s-addope.o to non tasking object list (rather than tasking object
34083 2004-04-26 Javier Miranda <miranda@gnat.com>
34085 * sem_aggr.adb: Fix typo in comments
34086 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
34087 Required to check the null-exclusion attribute.
34089 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
34090 case of anonymous access types in record and array components. For a
34091 component definition the level is the same of the enclosing composite
34094 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
34095 that are anonymous access types the level of accessibility depends on
34096 the enclosing type declaration. In order to have this information, set
34097 the scope of the anonymous access type to the enclosing record type
34099 (Array_Type_Declaration): In case of components that are anonymous
34100 access types the level of accessibility depends on the enclosing type
34101 declaration. In order to have this information, set the scope of the
34102 anonymous access type to the enclosing array type declaration.
34104 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
34107 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
34108 renaming of anonymous access-to-constant types allowed if and only if
34109 the renamed object is access-to-constant.
34111 * sem_util.adb (Type_Access_Level): In case of anonymous access types
34112 that are component_definition or discriminants of a nonlimited type,
34113 the level is the same as that of the enclosing component type.
34115 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
34117 * sem_elim.adb: Some minor code reorganization from code reading. Fix
34118 misprint in the function name (File_Name_Match).
34120 2004-04-23 Laurent Guerby <laurent@guerby.net>
34122 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
34125 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
34127 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
34129 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
34131 * adaint.c (__gnat_try_lock): No longer requires that the parent
34132 directory be writable, the directory itself is enough.
34133 (gnat_is_absolute_path): Change profile, so that the call from
34134 GNAT.OS_Lib can be made more efficient.
34136 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
34137 from GNAT.OS_Lib can be made more efficient.
34139 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
34140 one copy of the file name. Found by code reading.
34142 2004-04-23 Vincent Celier <celier@gnat.com>
34144 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
34145 Correct documentation on gnatmake switches transmitted to the compiler
34147 * ali.ads: Minor comment fix
34149 2004-04-23 Javier Miranda <miranda@gnat.com>
34151 * sem_ch6.adb: (Confirming Types): Code cleanup
34153 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
34154 subprogram types: E_Anonymous_Access_Subprogram_Type and
34155 E_Anonymous_Access_Protected_Subprogram_Type.
34157 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
34159 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
34160 whether a pragma All_Calls_Remote applies to the subprogram on which
34162 No functional change is introduced by this revision; the new parameter
34163 will be used to allow calls to local RCI subprograms to be optimized
34164 to not use the PCS in the case where no pragma All_Calls_Remote applies,
34165 as is already done in the PolyORB implementation of the DSA.
34167 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
34168 whether a pragma All_Calls_Remote applies to the subprogram on which
34170 No functional change is introduced by this revision; the new parameter
34171 will be used to allow calls to local RCI subprograms to be optimized
34172 to not use the PCS in the case where no pragma All_Calls_Remote applies,
34173 as is already done in the PolyORB implementation of the DSA.
34175 2004-04-23 Robert Dewar <dewar@gnat.com>
34177 * Makefile.rtl: Add entry for s-addope.o in run time library list
34178 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
34179 * s-addope.ads, s-addope.adb: New files.
34181 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
34182 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
34183 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
34184 System.Address to be non-private and signed.
34186 * sem_elim.adb: Minor reformatting (fairly extensive)
34187 Some minor code reorganization from code reading
34188 Add a couple of ??? comments
34190 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34192 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
34193 (tree_transform, case N_If_Statement): Remove non-determinism.
34195 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
34197 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
34199 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
34200 Eliminate' section.
34202 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
34203 no longer used as a parameter name for Eliminate pragma).
34205 2004-04-22 Laurent Guerby <laurent@guerby.net>
34207 PR optimization/14984
34208 PR optimization/14985
34209 * trans.c (gigi): Fix non determinism leading to bootstrap
34210 comparison failures.
34212 2004-04-21 Pascal Obry <obry@gnat.com>
34214 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
34215 passed to spawnvp() to properly handle program pathname with spaces on
34218 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
34220 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
34221 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
34222 unlocked in case of exceptions.
34224 2004-04-21 Joel Brobecker <brobecker@gnat.com>
34226 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
34227 This function does not exist anymore.
34229 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
34231 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
34233 * link.c: Move variables to the __gnat name space.
34235 * Makefile.in: list link.o explicitly when needed.
34237 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
34239 2004-04-21 Javier Miranda <miranda@gnat.com>
34241 * einfo.adb (Original_Access_Type): New subprogram
34242 (Set_Original_Access_Type): New subprogram
34243 (Write_Field21_Name): Write the name of the new field
34245 * einfo.ads (Original_Access_Type): New field present in access to
34247 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
34248 E_Anonymous_Access_Protected_Subprogram_Type.
34250 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
34253 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
34254 to anonymous access to subprogram types.
34256 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
34257 to subprogram types.
34259 * sem_ch3.adb (Access_Definition): Complete decoration of entities
34260 corresponding to anonymous access to subprogram types.
34261 (Analyze_Component_Declaration): Add new actual to the call to
34262 subprogram replace_anonymous_access_to_protected_subprogram.
34263 (Array_Type_Declaration): Add new actual to the call to subprogram
34264 replace_anonymous_access_to_protected_subprogram.
34265 (Process_Discriminants): Add new actual to the call to subprogram
34266 replace_anonymous_access_to_protected_subprogram.
34267 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
34269 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
34272 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
34273 access to subprogram types.
34275 * sem_util.adb (Has_Declarations): Addition of package_specification
34278 2004-04-21 Ed Schonberg <schonberg@gnat.com>
34280 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
34281 inlined flags to renamed entity only if in current unit.
34283 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
34285 * s-parint.ads: Add DSA implementation marker.
34287 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
34288 value of System.Partition_Interface.DSA_Implementation to determine
34289 what version of the distributed systems annex is available (no
34290 implementation, GLADE, or PolyORB).
34292 2004-04-21 Joel Brobecker <brobecker@gnat.com>
34294 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
34296 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34298 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
34299 with new type if alias sets differ.
34300 Fixes ACATS c41103b.
34302 2004-04-21 Vincent Celier <celier@gnat.com>
34304 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
34305 Add array Lang_Args for the language specific compiling argument
34308 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
34310 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
34312 * gnat_rm.texi: Update the descripton of the Eliminate pragma
34313 according to the recent changes in the format of the parameters of the
34314 pragma (replacing Homonym_Number with Source_Location).
34316 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
34318 * 5isystem.ads: Removed, unused.
34320 * gnat_rm.texi: Redo 1.13 change.
34322 2004-04-19 Robert Dewar <dewar@gnat.com>
34324 * s-stoele.ads: Clean up definition of Storage_Offset (the new
34325 definition is cleaner, avoids the kludge of explicit Standard operator
34326 references, and also is consistent with a visible System.Address with
34327 no visible operations.
34329 * s-geveop.adb: Add declarations to avoid assumption of visible
34330 operations on type System.Address (since these might not be available
34331 if Address is a non-private type for which the operations
34332 are made abstract).
34334 * sem_eval.adb: Minor reformatting
34336 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
34337 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
34338 reformatting (new function spec format).
34340 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
34341 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
34342 s-caun64.adb: Add declarations to avoid assumption of visible
34343 operations on type System.Address (since these might not be available
34344 if Address is a non-private type for which the operations are made
34347 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
34349 * exp_intr.adb: Minor comment update
34351 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
34353 * 5omastop.adb: Add declarations to avoid assumption of visible
34354 operations on type System.Address (since these might not be available
34355 if Address is a non-private type for which the operations
34356 are made abstract).
34358 2004-04-19 Vincent Celier <celier@gnat.com>
34360 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
34362 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
34365 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
34367 Call Check with Process_Languages.
34368 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
34369 with Process_Languages.
34370 (Recursive_Check): New Boolean parameter Process_Languages. Call
34371 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
34374 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
34376 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
34377 parameter Ada_Main, defaulted to True.
34378 Check for Ada specific characteristics only when Ada_Main is True.
34380 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
34382 * prj.adb: (Project_Empty): Add new Project_Data components.
34384 * prj.ads: New types and tables for non Ada languages.
34385 (Project_Data): New components Languages, Impl_Suffixes,
34386 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
34387 Include_Path, Include_Data_Set.
34389 * prj-env.ads, prj-env.adb: Minor reformatting
34391 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
34392 Put subprograms in alphabetical order
34394 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
34395 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
34398 * mlib-prj.adb: Back out modification in last version, as they are
34400 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
34402 * make.adb: (Mains): Moved to package Makeutl
34403 (Linker_Opts): Moved to package Makeutl
34404 (Is_External_Assignment): Moved to package Makeutl
34405 (Test_If_Relative_Path): Moved to package Makeutl
34406 (Gnatmake): Move sorting of linker options to function
34407 Makeutl.Linker_Options_Switches.
34409 * makeutl.ads, makeutl.adb: New files.
34411 * Makefile.in: Add makeutl.o to the object files for gnatmake
34413 * makeusg.adb: Add line for new switch -eL.
34415 * gnatls.adb (Image): New function.
34416 (Output_Unit): If in verbose mode, output the list of restrictions
34417 specified by pragmas Restrictions.
34419 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
34422 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
34423 needed, to put it in the range 1970 (included) - 2026 (excluded).
34424 (Time_Of): Do not shift Unix_Min_Year (1970).
34425 Shift the date by multiple of 56 years, if needed, to put it in the
34426 range 1970 (included) - 2026 (excluded).
34428 * adaint.h, adaint.c (__gnat_set_executable): New function.
34430 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34432 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
34433 and pop GC context.
34434 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
34435 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
34436 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
34437 (tree_transform, case N_Code_Statement): Likewise.
34438 (gnat_expand_stmt, case LABEL_STMT): Don't look at
34439 LABEL_STMT_FIRST_IN_EH.
34440 (gnat_expand_stmt, case ASM_STMT): New case.
34442 * utils2.c (build_unary_op): Properly set TREE_READONLY of
34443 UNCONSTRAINED_ARRAY_REF.
34445 * utils.c (poplevel): Temporarily push/pop GC context around inline
34446 function expansion.
34448 * decl.c (maybe_variable): Properly set TREE_READONLY of
34449 UNCONSTRAINED_ARRAY_REF.
34450 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
34452 * ada-tree.def: (ASM_STMT): New.
34454 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
34455 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
34456 ASM_STMT_INPUT): New.
34457 (ASM_STMT_CLOBBER): Likewise.
34459 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
34461 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
34462 general rcheck mechanism to raise Program_Error for E.4(18), instead
34463 of a custom raiser in System.Partition_Interface.
34464 Part of general cleanup work before PolyORB integration.
34466 * snames.ads, snames.adb: Add new runtime library entities and names
34469 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
34471 (Build_Subprogram_Id): New subprogram provided by exp_dist
34472 Code reorganisation in preparation for PolyORB integration.
34474 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
34476 (Build_Subprogram_Id): New subprogram provided by exp_dist
34478 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
34479 actual parameter types for call to dereference of an
34480 access-to-subprogram type.
34482 * rtsfind.ads: Add new runtime library entities and names for PolyORB
34485 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
34486 instead, which has the same behaviour here since we never pass it a
34489 * link.c (run_path_option, Solaris case): Use -Wl, as for other
34492 * Makefile.in: adjust object file lists for gnatlink and gnatmake
34493 to account for new dependency upon Interfaces.C.Strings + link.o
34494 For x86 FreeBSD, use 86numaux.
34496 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
34497 from Mlib.Tgt to Mlib.
34499 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
34500 target-independent.
34502 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
34503 target-specific versions of this subprogram, now implemented as a
34504 target-independent function in Mlib.
34506 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
34507 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
34508 (Linker_Library_Path_Option): Remove target-specific versions of this
34509 subprogram, now implemented as a target-independent function in Mlib.
34511 * atree.adb: (Allocate_Initialize_Node): New subprogram.
34512 Factors out node table slots allocation.
34513 (Fix_Parents): New subprogram.
34514 Encapsulate the pattern of fixing up parent pointers for syntactic
34515 children of a rewritten node.
34516 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
34517 (Rewrite): Use New_Copy when creating saved copy of original node.
34518 (Replace): Use Copy_Node to copy nodes.
34520 2004-04-19 Javier Miranda <miranda@gnat.com>
34522 * sprint.adb (Sprint_Node_Actual): Give support to the new
34523 Access_To_Subprogram node available in Access_Definition nodes. In
34524 addition, give support to the AI-231 node fields: null-exclusion,
34525 all-present, constant-present.
34527 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
34529 * sinfo.ads, sinfo.adb:
34530 New field Access_To_Subprogram_Definition in Access_Definition nodes
34532 * sem_ch6.adb (Process_Formals): Move here the code that creates and
34533 decorates internal subtype declaration corresponding to the
34534 null-excluding formal. This code was previously in Set_Actual_Subtypes.
34535 In addition, carry out some code cleanup on this code. In case of
34536 access to protected subprogram call
34537 Replace_Anonymous_Access_To_Protected_Subprogram.
34538 (Set_Actual_Subtypes): Code cleanup.
34540 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
34541 Find_Type in case of anonymous access renamings. Add warning in case of
34542 null-excluding attribute used in anonymous access renaming.
34544 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
34547 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
34549 (Access_Definition): In case of anonymous access to subprograms call
34550 the corresponding semantic routine to decorate the node.
34551 (Access_Subprogram_Declaration): Addition of some comments indicating
34552 some code that probably should be added here. Detected by comparison
34553 with the access_definition subprogram.
34554 (Analyze_Component_Declaration): In case of access to protected
34555 subprogram call Replace_Anonymous_Access_To_Protected.
34556 (Array_Type_Declaration): In case of access to protected subprogram call
34557 Replace_Anonymous_Access_To_Protected_Subprogram.
34558 (Process_Discriminants): In case of access to protected subprogram call
34559 Replace_Anonymous_Access_To_Protected_Subprogram.
34561 * par.adb (P_Access_Definition): New formal that indicates if the
34562 null-exclusion part was present.
34563 (P_Access_Type_Definition): New formal that indicates if the caller has
34564 already parsed the null-excluding part.
34566 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
34567 (P_Identifier_Declarations): Code cleanup and give support to renamings
34568 of anonymous access to subprogram types.
34569 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
34570 (P_Array_Type_Definition): Give support to AI-254.
34571 (P_Component_Items): Give support to AI-254.
34572 (P_Access_Definition): New formal that indicates if the header was
34573 already parsed by the caller.
34574 (P_Access_Type_Definition): New formal that indicates if the caller has
34575 already parsed the null-excluding part.
34577 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
34578 call to P_Access_Definition.
34580 2004-04-19 Geert Bosch <bosch@gnat.com>
34582 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
34583 the delicate semantics of floating-point to integer conversion.
34584 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
34586 * eval_fat.adb (Machine_Mantissa): Moved to spec.
34587 (Machine_Radix): New function.
34589 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
34591 (Machine_Radix): New function also for use in conversion checks.
34593 2004-04-19 Ed Schonberg <schonberg@gnat.com>
34595 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
34597 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
34598 to decorate the access-to-protected subprogram and the equivalent type.
34600 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
34601 to anonymous access to subprogram types.
34603 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
34604 constant-folding, for legality checks in contexts that require an RM
34607 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
34608 temporary but stack checking is not enabled, increment serial number
34609 to so that symbol generation is consistent with and without stack
34612 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
34613 independent on whether stack checking is enabled, caller must check
34614 the corresponding flag.
34616 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
34618 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
34619 parent if it has discriminants.
34620 (Build_Derived_Private_Type): Constructed full view does
34621 not come from source.
34622 (Process_Discriminants): Default discriminants on a tagged type are
34623 legal if this is the internal completion of a private untagged
34626 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
34627 no constraint checks, because it corresponds to an existing object.
34629 * sem_prag.adb (Process_Convention): Pragma applies
34630 only to subprograms in the same declarative part, i.e. the same unit,
34631 not the same scope.
34633 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
34634 ignore type mismatch on a numeric conversion if expression comes from
34637 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
34639 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
34640 Homonym_Number parameter, add processing for Source_Location parameter
34642 (Check_Eliminated): Remove the check for homonym numbers, add the check
34643 for source location traces.
34645 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
34646 with Arg_Source_Location corresponding to the changes in the format of
34649 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
34650 Eliminate pragma corresponding to the changes in the format of the
34651 pragma: Homonym_Number is replaced with Source_Location, two ways of
34652 distinguishing homonyms are mutially-exclusive.
34654 2004-04-19 Joel Brobecker <brobecker@gnat.com>
34656 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
34658 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
34659 No_Dollar_In_Label, no longer necessary, as it is always True.
34660 (Strip_Suffixes): Likewise.
34662 2004-04-19 Gary Dismukes <dismukes@gnat.com>
34664 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
34665 modulus for compatibility with size clause on targets with 16-bit
34668 * layout.adb (Discrimify): In the case of private types, set Vtyp to
34669 full type to fix type mismatches on calls to size functions for
34670 discriminant-dependent array components.
34672 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
34674 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
34677 2004-04-19 Pascal Obry <obry@gnat.com>
34679 * mdll-utl.adb (Locate): New version is idempotent.
34681 2004-04-17 Laurent Guerby <laurent@guerby.net>
34683 PR ada/14988 (partial)
34684 * impunit.adb: Fix typo.
34686 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
34688 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
34689 and install-rts-cert targets. Remove all gnatlib and gnattools
34690 targets and all other rts-* targets (moved to libada). Remove (now)
34691 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
34692 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
34694 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34696 * trans.c (tree_transform): Shortcut returning error_mark_node for
34697 statements in annotate_only_mode.
34698 (tree_transform, case N_Label, case N_Return_Statement,
34699 N_Goto_Statement): Make statement tree instead of generating code.
34700 (tree_transform, case N_Assignment_Statement): No longer check
34701 type_annotate_only.
34702 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
34704 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
34706 (gnat_to_gnu): Collect any RTL generated and deal with it.
34707 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
34708 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
34709 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
34711 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
34713 * ada-tree.def (EXPR_STMT): Fix typo in name.
34714 (BLOCK_STMT, IF_STMT): New nodes.
34716 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
34717 LABEL_STMT_FIRST_IN_EH): New macros.
34718 (RETURN_STMT_EXPR): Likewise.
34720 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
34721 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
34723 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
34725 * atree.ads: Correct documentation on extended nodes.
34727 * link.c: Set run_path_option for FreeBSD.
34729 2004-04-08 Vincent Celier <celier@gnat.com>
34731 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
34732 one of the ALI file, do not link with DEC lib.
34734 * par.adb Remove the last two characters ("%s" or "%b") when checking
34735 if a language defined unit may be recompiled.
34737 2004-04-08 Ed Schonberg <schonberg@gnat.com>
34739 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
34740 removal of abstract operation leaves no possible interpretation for
34743 * sem_eval.adb (Eval_Qualified_Expression): Use
34744 Set_Raises_Constraint_Error on node when needed, so that it does not
34745 get optimized away by subsequent optimizations.
34747 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
34748 operands even when they are not wrapped in a type conversion.
34750 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
34752 * sem_prag.adb (Set_Exported): Warn about making static as result of
34753 export only when the export is coming from source. This may be not
34754 be true e.g. on VMS where we expand export pragmas for exception codes
34755 together with imported or exported exceptions, and we don't want the
34756 user to be warned about something he didn't write.
34758 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
34760 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
34761 duplication between normal entities and those declared as renamings.
34762 No functional change.
34764 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
34765 inline functions returning an unconstrained result.
34767 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
34769 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
34770 conform to what other front-ends do.
34772 2004-04-08 Doug Rupp <rupp@gnat.com>
34774 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
34777 2004-04-06 Pascal Obry <obry@gnat.com>
34779 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
34781 * osint.adb (Program_Name): Do not look past a directory separator.
34783 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
34785 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
34787 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
34788 requirement for preserving a copy of the original assignment node.
34790 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
34792 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
34794 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
34797 2004-04-06 Ed Schonberg <schonberg@gnat.com>
34799 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
34800 operator calls in functional notation, and apply
34801 Universal_Interpretation to operands, not to their type.
34803 2004-04-06 Robert Dewar <dewar@gnat.com>
34805 * 5wdirval.adb: Minor reformatting
34807 2004-04-06 Ed Falis <falis@gnat.com>
34809 * gnat_rm.texi: Improve a reference to the GCC manual
34811 2004-04-05 Vincent Celier <celier@gnat.com>
34813 * adaint.h, adaint.c: Add function __gnat_named_file_length
34815 * impunit.adb: Add Ada.Directories to the list
34817 * Makefile.in: Add VMS and Windows versions of
34818 Ada.Directories.Validity package body.
34820 * Makefile.rtl: Add a-direct and a-dirval
34822 * mlib-tgt.ads: Minor comment update.
34824 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
34825 a-direct.ads, a-direct.adb: New files.
34827 2004-04-05 Vincent Celier <celier@gnat.com>
34830 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
34831 just to the compiler.
34833 2004-04-05 Robert Dewar <dewar@gnat.com>
34835 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
34836 returned string is 1.
34838 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
34840 * eval_fat.ads: Minor reformatting
34842 * g-curexc.ads: Document that lower bound of returned string values
34845 * gnatlink.adb: Add ??? comment for previous change
34846 (need to document why this is VMS specific)
34848 * s-stoele.ads: Minor reformatting
34850 * tbuild.ads: Minor reformatting throughout (new function specs)
34852 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
34855 * scng.adb: Minor reformatting
34857 2004-04-05 Geert Bosch <bosch@gnat.com>
34859 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
34860 (Leading_Part): Still perform truncation to machine number if the
34861 specified radix_digits is greater or equal to machine_mantissa.
34863 2004-04-05 Javier Miranda <miranda@gnat.com>
34865 * par-ch3.adb: Complete documentation of previous change
34866 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
34867 (aliased must appear before constant).
34869 * par-ch4.adb: Complete documentation of previous change.
34871 * par-ch6.adb: Complete documentation of previous change.
34873 * sinfo.ads: Fix typo in commment.
34875 2004-04-05 Ed Schonberg <schonberg@gnat.com>
34877 * sem_ch3.adb (Inherit_Components): If derived type is private and has
34878 stored discriminants, use its discriminants to constrain parent type,
34879 as is done for non-private derived record types.
34881 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
34882 Ada 2005 AI-310: an abstract non-dispatching operation is not a
34883 candidate interpretation in an overloaded call.
34885 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
34886 expression is Null and target type is not an access type (e.g. a
34887 non-private address type).
34889 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
34891 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
34892 statement whose right-hand side is an inlined call, save a copy of the
34893 original assignment subtree to preserve enough consistency for
34894 Analyze_Assignment to proceed.
34896 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
34897 complete assignment subtree which is now unnecessary, as the expansion
34898 of inlined call has been improved to preserve a consistent assignment
34899 tree. Note_Possible_Modification must be called only
34900 after checks have been applied, or else unnecessary checks will
34903 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
34904 of explicit dereferences that do not Come_From_Source:
34905 - be selective on cases where we must go back to the dereferenced
34906 pointer (an assignment to an implicit dereference must not be
34907 recorded as modifying the pointer);
34908 - do not rely on Original_Node being present (Analyze_Assignment
34909 calls Note_Possible_Modification on a copied tree).
34911 * sem_warn.adb (Check_References): When an unset reference to a pointer
34912 that is never assigned is encountered, prefer '<pointer> may be null'
34913 warning over '<pointer> is never assigned a value'.
34915 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
34917 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
34920 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
34922 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
34923 libexc. We currently don't reference anything in this library and
34924 linking it in triggers linker warnings we don't want to see.
34926 * init.c: Update comments.
34928 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34930 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
34931 * utils.c (create_field_decl): Likewise.
34932 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
34934 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
34936 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
34937 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
34938 Add info directory entry and category.
34940 2004-04-02 Jan Hubicka <jh@suse.cz>
34942 * utils.c: Include function.h
34943 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
34945 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
34948 * Make-lang.in: Clean up generation of documentation
34950 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
34952 * xgnatug.adb: Removed, replaced by xgnatugn.adb
34954 * xgnatugn.adb: Replaces xgnatug.adb
34956 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
34958 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
34960 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
34961 gnat_ug_wnt.texi: Removed.
34963 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
34965 * utils2.c: Update copyright notice.
34967 2004-04-01 Robert Dewar <dewar@gnat.com>
34969 * checks.adb: Minor reformatting throughout
34970 Note that prev checkin added RM reference to alignment warning
34972 2004-04-01 Ed Schonberg <schonberg@gnat.com>
34974 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
34975 non-static when building aggregate for bit-packed array.
34977 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
34978 function call that is itself the actual in a procedure call, build
34981 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
34982 a string literal, create a temporary for it, constant folding only
34983 handles scalars here.
34985 2004-04-01 Vincent Celier <celier@gnat.com>
34987 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
34988 Error_Msg_SP): New empty procedures to instantiate the Scanner.
34989 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
34991 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
34992 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
34993 and get the checksum.
34995 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
34997 Increase the Marking_Label at the end of the Multiple_Main_Loop,
34998 instead of at the beginning.
35000 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
35002 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
35005 * osint.ads (Multi_Unit_Index_Character): New Character global variable
35007 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
35010 * par.adb: Remove test on file name to detect language defined units.
35011 Add test on unit name, after parsing, to detect language defined units
35012 that are not compiled with -gnatg (except System.RPC and its children)
35014 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
35015 following units without style checking.
35017 * switch-c.adb: Change -gnatC to -gnateI
35019 * usage.adb: Document new switch -gnateInnn
35021 * scng.adb (Accumulate_Token_Checksum): New procedure
35022 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
35023 word or literal number.
35024 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
35027 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
35030 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
35031 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
35032 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
35033 5vtpopde.adb: Add missing 'constant' keywords.
35035 2004-04-01 Javier Miranda <miranda@gnat.com>
35037 * par-ch4.adb: (P_Allocator): Code cleanup
35039 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
35042 * sinfo.ads: Complete documentation of previous change
35044 2004-04-01 Pascal Obry <obry@gnat.com>
35046 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
35047 only on VMS. This special handling was done because an old GNU/ld bug
35048 on Windows which has been fixed.
35050 2004-04-01 GNAT Script <nobody@gnat.com>
35052 * Make-lang.in: Makefile automatically updated
35054 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35056 * decl.c (gnat_to_gnu_entity, make_type_from_size):
35057 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
35058 * trans.c (tree_transform, convert_with_check): Likewise.
35059 * utils.c (gnat_signed_or_unsigned_type): Likewise.
35060 (build_vms_descriptor, unchecked_convert): Likewise.
35061 * utils2.c (nonbinary_modular_operation): Likewise.
35063 2004-03-29 Javier Miranda <miranda@gnat.com>
35065 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
35066 (Install_Null_Excluding_Check): Local subprogram that determines whether
35067 an access node requires a runtime access check and if so inserts the
35068 appropriate run-time check.
35069 (Apply_Access_Check): Call Install_Null_Excluding check if required
35070 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
35072 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
35074 * einfo.ads: Fix typo in comment
35076 * exp_ch3.adb (Build_Assignment): Generate conversion to the
35077 null-excluding type to force the corresponding run-time check.
35078 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
35079 type to force the corresponding run-time check.
35081 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
35082 the null-excluding type to force the corresponding run-time check.
35084 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
35085 case of access types unless they have the null-excluding attribute.
35087 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
35090 * exp_util.ads: Fix typo in comment
35092 * par.adb (P_Null_Exclusion): New subprogram
35093 (P_Subtype_Indication): New formal that indicates if the null-excluding
35094 part has been scanned-out and it was present
35096 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
35098 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
35099 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
35100 type to force the corresponding run-time check
35101 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
35103 (Resolve_Array_Aggregate): Carry out some static checks
35104 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
35106 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
35107 attribute must be set only if specified by means of the null-excluding
35108 part. In addition, we must also propagate the access-constant attribute
35110 (Access_Subprogram_Declaration, Access_Type_Declaration,
35111 Analyze_Component_Declaration, Analyze_Object_Declaration,
35112 Array_Type_Declaration, Process_Discriminants,
35113 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
35114 and carry out some static checks.
35115 (Build_Derived_Access_Type): Set the null-excluding attribute
35116 (Derived_Type_Declaration, Process_Subtype): Carry out some static
35119 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
35121 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
35123 * sem_ch6.adb (Process_Formals): Carry out some static checks.
35124 (Set_Actual_Subtypes): Generate null-excluding subtype if the
35125 null-excluding part was present; it is not required to be done here in
35126 case of anonymous access types.
35127 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
35130 * sem_res.adb (Resolve_Actuals): Carry out some static check
35131 (Resolve_Null): Allow null in anonymous access
35133 * sinfo.adb: New subprogram Null_Exclusion_Present
35134 All_Present and Constant_Present available on access_definition nodes
35136 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
35137 object_declaration, derived_type_definition, component_definition,
35138 discriminant_specification, access_to_object_definition,
35139 access_function_definition, allocator, access_procedure_definition,
35140 access_definition, parameter_specification, All_Present and
35141 Constant_Present flags available on access_definition nodes.
35143 2004-03-29 Robert Dewar <dewar@gnat.com>
35145 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
35146 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
35147 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
35148 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
35149 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
35150 sem_prag.adb: Updates to handle multiple units/file
35152 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
35154 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
35155 sem_util.adb: Minor reformatting
35157 * sem_ch12.adb: Add comment for previous change
35159 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
35161 * osint.adb (Executable_Prefix): Set Exec_Name to the current
35162 executable name when not initialized. Otherwise, use its current value.
35164 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
35165 initialize it to another executable name than the current one. This
35166 allows to configure paths for an executable name (gnatmake) different
35167 from the current one (gnatdist).
35169 2004-03-29 Ed Schonberg <schonberg@gnat.com>
35171 * exp_ch6.adb (Expand_Call): A call to a function declared in the
35172 current unit cannot be inlined if it appears in the body of a withed
35173 unit, to avoid order of elaboration problems in gigi.
35175 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
35176 information for protected (wrapper) operation as well, to simplify gdb
35179 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
35180 protected body, indicate that the entity for the generated spec comes
35181 from source, to ensure that references are properly generated for it.
35182 (Build_Body_To_Inline): Do not inline a function that returns a
35185 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
35186 apply convention to homonyms that are declared explicitly.
35188 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
35189 that renames an equality operator and the operands are overloaded,
35190 resolve them with the declared formal types, before rewriting as an
35193 2004-03-29 GNAT Script <nobody@gnat.com>
35195 * Make-lang.in: Makefile automatically updated
35197 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
35199 * memtrack.adb: Log realloc calls, which are treated as free followed
35202 2004-03-25 Vincent Celier <celier@gnat.com>
35204 * prj-makr.adb (Process_Directories): Detect when a file contains
35205 several units. Do not include such files in the config pragmas or
35206 in the naming scheme.
35208 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
35209 Resolve links only when not in Trusted_Mode.
35210 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
35211 Do not resolve links for the display names.
35213 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
35214 resolve links when computing the display names.
35216 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
35218 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
35219 attribute reference does not denote a subtype, it can be any
35220 expression that has a classwide type, potentially after an implicit
35221 dereference. In particular, the prefix can be a view conversion for
35222 a classwide type (for which Is_Object_Reference holds), but it can
35223 also be a value conversion for an access-to-classwide type. In the
35224 latter case, there is an implicit dereference, and the original node
35225 for the prefix does not verify Is_Object_Reference.
35227 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
35228 conversion of a discriminant-dependent component of a mutable object
35231 2004-03-25 Ed Schonberg <schonberg@gnat.com>
35233 * freeze.adb (Freeze_Entity): When an inherited subprogram is
35234 inherited, has convention C, and has unconstrained array parameters,
35235 place the corresponding warning on the derived type declaration rather
35236 than the original subprogram.
35238 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
35239 indication on renaming declaration, if formal has a box and actual
35242 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
35243 determine whether to generate an implicit or explicit reference to
35244 the renamed entity.
35246 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
35247 subprogram renaming comes from a defaulted formal subprogram in an
35250 2004-03-25 Gary Dismukes <dismukes@gnat.com>
35252 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
35253 value expressions to ensure that calls within a component definition
35254 will be checked (since those are evaluated during the record type's
35257 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
35259 * s-tpobop.adb: Code clean up:
35260 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
35262 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
35264 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
35266 * Makefile.in: Clean up in the ravenscar run time.
35268 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35270 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
35271 of No_Strict_Aliasing to build_pointer_type_for_mode.
35272 * utils.c (update_pointer_to): Walk pointer and ref chains.
35274 2004-03-22 Cyrille Comar <comar@act-europe.fr>
35276 * ali.ads: Fix Comment about Dynamic_Elab.
35278 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
35279 Has_RACW, Is_Generic, etc.)
35280 (Output_Object, Gnatls): Take into account ALI files not attached to
35283 2004-03-22 Vincent Celier <celier@gnat.com>
35285 * gprep.adb: Change all String_Access to Name_Id
35286 (Is_ASCII_Letter): new function
35287 (Double_File_Name_Buffer): New procedure
35288 (Preprocess_Infile_Name): New procedure
35289 (Process_Files): New procedure
35290 (Gnatprep): Check if output and input are existing directories.
35291 Call Process_Files to do the real job.
35293 2004-03-22 Robert Dewar <dewar@gnat.com>
35295 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
35296 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
35298 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
35300 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
35301 case when the source contains only comments.
35303 2004-03-22 Ed Schonberg <schonberg@gnat.com>
35305 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
35306 declaration for a child subprogram body that acts as a spec, indicate
35307 that the entity in the declaration needs debugging information.
35309 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
35310 full view if the subtype is created for a constrained record component;
35311 gigi has enough information to construct the record, and there is no
35312 place in the tree for the declaration.
35314 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
35315 serial number for the dummy body that is built for analysis, to avoid
35316 inconsistencies in the generation of internal names when compiling
35319 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
35321 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
35324 2004-03-22 GNAT Script <nobody@gnat.com>
35326 * Make-lang.in: Makefile automatically updated
35328 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35330 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
35331 * trans.c (tree_transform, emit_index_check): Likewise.
35332 * utils.c (build_template): Likewise.
35333 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
35334 (maybe_unconstrained_array, unchecked_convert): Likewise.
35335 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
35336 (build_unary_op): Likewise.
35337 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
35338 (fill_vms_descriptor): Likewise.
35339 (build_call_alloc_dealloc): Likewise.
35341 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
35343 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
35346 * gnat_ug.texi: Add info directory category and entry.
35347 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
35348 gnat_ug_wnt.texi: Regenerate.
35350 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
35352 * ada-tree.h: Update copyright notice.
35353 Minor reformatting.
35355 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
35357 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
35358 as regular exception objects and not as mere integers representing the
35359 condition code. The latter approach required some dynamics to mask off
35360 severity bits, which did not fit well into the GCC table based model.
35361 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
35362 exception data objects. We don't it and it would conflict with the other
35363 external symbol we have to generate for such exceptions.
35365 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
35366 the special code for VMS exceptions, since these are now represented
35367 as regular exceptions objects.
35369 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35371 * decl.c (debug_no_type_hash): Remove.
35372 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
35373 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
35375 2004-03-19 Laurent Guerby <laurent@guerby.net>
35377 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
35378 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
35380 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35382 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
35383 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
35384 (TYPE_RM_SIZE_INT): Directly use type.values.
35385 (TREE_LOOP_ID): Clean up check.
35386 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
35387 TYPE_VALUES, not TYPE_FIELDS.
35388 * trans.c (convert_with_check): Delay access of bounds of basetype
35389 until sure is numeric.
35391 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
35393 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
35396 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
35397 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
35398 Specific.Set instead of direct call to e.g pthread_setspecific.
35400 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
35402 * adaint.c: Update comments.
35404 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
35405 GNATLIB_SHARED for FreeBSD.
35407 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
35409 * init.c [VxWorks]: Do not fix the stack size for the environment task.
35410 When needed (stack checking) the stack size is retrieved
35411 from the VxWorks kernel.
35413 * Makefile.in: Flag -nostdinc is required when building the run time
35414 for avoiding looking for files in the base compiler.
35415 Add the VxWorks specific version of the package body for
35416 System.Stack_checking.Operations (5zstchop.adb).
35418 * Make-lang.in: Add the object file for
35419 System.Stack_Checking.Operations.
35421 * Makefile.rtl: Add object file for the package
35422 System.Stack_Checking.Operations.
35424 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
35426 * s-stache.ads, s-stache.adb: Move the operations related to stack
35427 checking from this package to package System.Stack_Checking.Operations.
35428 This way, stack checking operations are only linked in the final
35429 executable when using the -fstack-check flag.
35431 2004-03-18 Doug Rupp <rupp@gnat.com>
35433 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
35436 * 5qsystem.ads, 5xcrtl.ads: New files.
35438 2004-03-18 Vincent Celier <celier@gnat.com>
35440 * prj.adb (Reset): Reset hash table Files_Htable
35442 * prj-env.adb (Source_Paths, Object_Paths): New tables.
35443 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
35444 the procedures Add_To_Path_File.
35445 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
35446 making sure that each directory is present only once and, for object
35447 dirs, when a directory already present is added, the duplicate is
35448 removed and the directory is always put as the last in the table.
35449 Write the path files at the end of these accumulations.
35451 * prj-nmsc.adb (Record_Source): Add source file name in hash table
35452 Files_Htable for all sources.
35454 * prj-proc.adb (Process): Remove restrictions between not directly
35455 related extending projects.
35457 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
35459 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
35460 (Find_Sources): Minor speed optimization.
35462 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
35463 parameter Trusted_Mode.
35465 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
35467 * scn.adb (Determine_License): Take into account a degenerated case
35468 when the source contains only comments.
35470 2004-03-18 Ed Schonberg <schonberg@gnat.com>
35472 * sem_warn.adb (Check_References): For a warning on a selected
35473 component that does not come from source, locate an uninitialized
35474 component of the record type to produce a more precise error message.
35476 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
35478 * 3zsoccon.ads: Fix multicast options.
35480 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
35483 2004-03-15 Robert Dewar <dewar@gnat.com>
35485 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
35486 pragma used for a private type.
35488 * lib-xref.adb (Generate_Reference): Do not generate warning if
35489 reference is in a different unit from the pragma Unreferenced.
35491 * 5vtpopde.adb: Minor reformatting
35492 Fix casing of To_Task_ID
35494 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
35495 flag if we have an unchecked conversion to an access type in the same
35498 2004-03-15 Geert Bosch <bosch@gnat.com>
35500 * a-ngcoty.adb (Modulus): In alternate formula for large real or
35501 imaginary parts, use Double precision throughout.
35503 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
35504 we want to be able to compile run-time with -gnata for testing, but
35505 this may also be instantiated in user code that is compiled with -gnata.
35507 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
35509 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
35510 codes. Having a separate type for this is useful to enforce consistency
35511 throughout the various run-time units.
35512 (Exception_Data): Use Exception_Code for Import_Code.
35514 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
35515 Natural and Integer in various places.
35516 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
35517 with the severity bits masked off.
35518 (Register_VMS_Exception): Handle the additional exception data pointer
35521 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
35522 component, now reflected by an exported accessor.
35523 (is_handled_by): New routine to compute whether the propagated
35524 occurrence matches some handler choice specification. Extracted out of
35525 get_action_description_for, and expanded to take care of the VMS
35527 (get_action_description_for): Use is_handled_by instead of an explicit
35528 complex condition to decide if the current choice at hand catches the
35529 propagated occurrence.
35531 * raise.h (Exception_Code): New type for C.
35533 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
35534 System.Standard_Library.Exception_Code, to allow references from the
35535 pragma import/export expander.
35537 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
35538 New accessors to allow easy access to GNAT exception data
35540 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
35541 redundant Handled_By_Others component, helper for the personality
35542 routine which will now be able to call the appropriate exception data
35545 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
35546 component of Standard_Exception_Type to be the closest possible to
35547 Exception_Code in System.Standard_Library, that we cannot get at this
35548 point. Expand a ??? comment to notify that this type node should
35549 probably be rewritten later on.
35551 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
35552 registration call to include a pointer to the exception object in the
35555 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
35556 instead of int and explicit bitmasks.
35558 2004-03-15 Vincent Celier <celier@gnat.com>
35560 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
35561 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
35563 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
35564 longer needed now that it is in the spec of
35565 System.Tasking.Task_Attributes.
35567 * adaint.h, adaint.c: (__gnat_create_output_file): New function
35569 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
35571 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
35573 * make.adb (Gnatmake): Do not check the executable suffix; it is being
35574 taken care of in Scan_Make_Arg.
35575 (Scan_Make_Arg): Add the executable suffix only if the argument
35576 following -o, in canonical case, does not end with the executable
35577 suffix. When in verbose mode and executable file name does not end
35578 with executable suffix, output the executable name, in canonical case.
35580 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
35581 to avoid warnings when instantiating Ada.Task_Attributes.
35584 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
35585 in the correct order.
35587 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
35588 redirect standard output and error to a file for the invocation of the
35589 compiler, then read the file.
35591 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
35592 directory, instead of the Value.
35593 (Find_Source_Dirs): Remove useless code & comments.
35595 2004-03-15 Ed Schonberg <schonberg@gnat.com>
35597 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
35598 tagged type is inherited, and the parent operation is not frozen yet,
35599 force generation of a freeze node for the inherited operation, so the
35600 corresponding dispatch entry is properly initialized.
35601 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
35602 when looking for user-defined equality operation.
35604 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
35605 boolean when locating primitive equality of tagged component.
35607 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
35608 bit-aligned field and the right-hand side a string literal, introduce
35609 a temporary before expanding assignment into a loop.
35611 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
35612 priority in full, to ensure that any expanded subepxressions of it are
35613 elaborated in the scope of the init_proc.
35615 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
35616 after object declaration, skipping over code that may have been
35617 generated for validity checks.
35619 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
35620 discriminants, ignore the known discriminants of its full view, if
35621 any, to check legality.
35623 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
35624 component if type has unknown discriminants.
35625 (Analyze_Private_Extension_Declaration): Discriminant constraint is
35626 null if type has unknown discriminants.
35628 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
35629 for end label when present.
35631 * s-fileio.adb (Open): When called with a C_Stream, use given name for
35632 temporary file, rather than an empty string.
35634 2004-03-15 Ed Falis <falis@gnat.com>
35636 * s-thread.adb: Removed, no longer used.
35638 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35640 * decl.c (target.h): Now include.
35641 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
35642 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
35643 (validate_size): For POINTER_TYPE, get smallest size permitted on
35646 * fe.h: Sort Einfo decls and add Set_Mechanism.
35648 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
35649 (ada/decl.o): Depends on target.h.
35651 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
35652 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
35654 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
35656 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
35658 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
35659 Insert_Dereference_Action when rewriting an implicit dereference into
35660 an explicit one, this will be taken care of during expansion of the
35661 explicit dereference.
35662 (Expand_N_Slice): Same. Always do the rewriting, even for the case
35663 of non-packed slices, since the dereference action generated by
35664 expansion of the explicit dereference is needed in any case.
35665 (Expand_N_Selected_Component): When rewriting an implicit dereference,
35666 analyze and resolve the rewritten explicit dereference so it is seen
35668 (Insert_Dereference_Action): This procedure is now called only for the
35669 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
35670 dereferences that do not come from source (including explicit
35671 dereferences resulting from rewriting implicit ones), but do not
35672 recursively insert a check for the dereference nodes contained within
35674 (Insert_Dereference_Action): Clarify and correct comment.
35676 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
35679 Move language detection to the top level.
35680 * config-lang.in: Build by default.
35682 2004-03-05 Robert Dewar <dewar@gnat.com>
35684 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
35686 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
35687 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
35688 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
35689 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
35690 unchecked conversion to spec to avoid warnings.
35692 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
35695 * 7stpopsp.adb: Correct casing in To_Task_ID call
35697 * a-strsea.ads, a-strsea.adb: Minor reformatting
35699 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
35701 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
35702 Adjust Max_Msg_Length to be clearly large enough.
35704 * fe.h: Define In_Same_Source_Unit
35706 * osint.adb: Add pragma Warnings Off to suppress warnings
35707 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
35710 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
35712 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
35714 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
35716 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
35718 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
35720 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
35721 node. We now do generate them for gcc back end.
35723 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
35726 * sinput-c.adb: Fix bad name in header.
35727 Add pragma Warnings Off to suppress aliasing warning.
35729 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
35731 * snames.h, snames.ads, snames.adb: Add entry for pragma
35732 No_Strict_Aliasing.
35734 2004-03-05 Vincent Celier <celier@gnat.com>
35736 * prj-com.ads: Add hash table Files_Htable to check when a file name
35737 is already a source of another project.
35739 * prj-nmsc.adb (Record_Source): Before recording a new source, check
35740 if its file name is not already a source of another project. Report an
35743 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
35744 source file name, call gnatpp with all the sources of the main project.
35746 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
35749 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
35750 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
35751 /RUNTIME_SYSTEM=, converted to --RTS=
35752 /NOTABS, converted to -notabs
35754 2004-03-05 Pascal Obry <obry@gnat.com>
35756 * make.adb: Minor reformatting.
35758 2004-03-05 Ed Schonberg <schonberg@gnat.com>
35760 Part of implemention of AI-262.
35761 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
35763 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
35766 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
35767 when component type is a partially constrained class-wide subtype.
35768 (Constrain_Discriminated_Type): If parent type has unknown
35769 discriminants, a constraint is illegal, even if full view has
35771 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
35772 with unknown discriminants whose full view is a discriminated record.
35774 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
35775 flag, to handle properly derivations of tagged types with unknown
35777 (Analyze_Package_Spec, Analyze_Package_Body): Install
35778 Private_With_Clauses before analyzing private part or body.
35780 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
35781 Has_Discriminants can be true for a given type (documentation).
35783 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
35785 * s-restri.ads: Fix license (GPL->GMGPL).
35787 * s-tassta.adb: Minor reformatting.
35789 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
35790 by calls to Exit_One_ATC_Level, since additional clean up is performed
35793 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
35794 by calls to Exit_One_ATC_Level, since additional clean up is performed
35797 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35799 * trans.c: Reflect GCC changes to fix bootstrap problem.
35800 Add warning for suspicious aliasing unchecked conversion.
35802 2004-03-05 GNAT Script <nobody@gnat.com>
35804 * Make-lang.in: Makefile automatically updated
35806 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
35808 * ali.adb (Read_Instantiation_Instance): Do not modify the
35809 current_file_num when reading information about instantiations, since
35810 this corrupts files in later references.
35812 2004-03-02 Vincent Celier <celier@gnat.com>
35814 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
35815 before checking if it is read-only.
35817 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
35818 of SRC_DIRS and eliminate duplicates.
35820 * gprcmd.adb: Replace command "path" with command "path_sep" to return
35821 the path separator.
35822 (Usage): Document path_sep
35824 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
35825 C++ compiler. No need for a script.
35826 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
35827 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
35830 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
35831 where there are Ada sources.
35832 (Set_Ada_Paths): Only add to the include path the source dirs of project
35834 (Add_To_Path): Add the Display_Values of the directories, not their
35837 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
35840 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
35842 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
35843 Value is canonicalized.
35844 (Language_Independent_Check): Do not copy Value to Display_Value when
35845 canonicalizing Value.
35847 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
35848 path to find limited with cycles.
35849 (Parse_Single_Project): Use canonical cased path to find the end of a
35852 2004-03-02 Ed Schonberg <schonberg@gnat.com>
35854 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
35855 and not a child unit.
35857 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
35858 appear in a with_clause.
35860 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
35861 only happen in type_annotate mode, do not try to elaborate it.
35863 * exp_util.adb (Force_Evaluation): If expression is a selected
35864 component on the left of an assignment, use a renaming rather than a
35865 temporary to remove side effects.
35867 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
35868 inlined instance body, which is analyzed before the end of the
35871 2004-03-02 Robert Dewar <dewar@gnat.com>
35873 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
35874 sem_ch4.adb: Use new feature for substitution of keywords in VMS
35876 * errout.ads, errout.adb: Implement new circuit for substitution of
35879 * sem_case.adb (Analyze_Choices): Place message properly when case is
35880 a subtype reference rather than an explicit range.
35882 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
35884 2004-03-02 Doug Rupp <rupp@gnat.com>
35886 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
35888 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
35890 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
35892 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35894 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
35897 2004-02-25 Robert Dewar <dewar@gnat.com>
35899 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
35900 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
35901 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
35902 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
35903 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
35904 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
35905 the defining instance of the type to avoid aliasing problems.
35906 Fix copyright header. Fix bad comments in package header.
35908 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
35910 2004-02-25 Ed Schonberg <schonberg@gnat.com>
35912 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
35913 rewritten as references when aliased through an address clause.
35915 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
35916 whether call can be interpreted as an indirect call to the result of a
35917 parameterless function call returning an access subprogram.
35919 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
35922 * exp_ch7.adb (Make_Clean): Remove generation of calls to
35923 Unlock[_Entries], since this is now done by Service_Entries directly.
35925 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
35927 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
35928 Requeue_Call for better code readability. Change spec and update calls:
35929 PO_Service_Entries now unlock the PO on exit.
35930 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
35931 PO_Service_Entries.
35933 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
35935 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
35937 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
35939 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
35940 protected subprogram call and analyzing the result of such expanding
35941 in case when the called protected subprogram is eliminated.
35943 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
35946 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
35948 * Makefile.in: Clean ups.
35950 2004-02-23 Ed Schonberg <schonberg@gnat.com>
35952 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
35953 protected operations if original subprogram is flagged as eliminated.
35954 (Expand_N_Subprogram_Body): For a protected operation, create
35955 discriminals for next operation before checking whether the operation
35958 * exp_ch9.adb (Expand_N_Protected_Body,
35959 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
35960 for internal protected operations if the original subprogram is
35963 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
35964 declared in a single protected object.
35966 2004-02-23 Vincent Celier <celier@gnat.com>
35968 * prj-attr.adb: Make attribute Builder'Executable an associative array,
35969 case insensitive if file names are case insensitive, instead of a
35970 standard associative array.
35972 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
35973 them as case insensitive on platforms where the file names are case
35976 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
35977 project file has already been parsed that canonical path are compared.
35979 2004-02-23 Robert Dewar <dewar@gnat.com>
35981 * sinput-c.ads: Correct bad unit title in header
35983 * freeze.adb: Minor reformatting
35985 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35987 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
35988 nonaddressable COMPONENT_REF that is removing padding that we are
35989 taking the address of, take the address of the padded record instead
35990 if item is variable size.
35992 2004-02-20 Robert Dewar <dewar@gnat.com>
35994 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
35996 2004-02-20 Ed Schonberg <schonberg@gnat.com>
35998 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
35999 itype references for the constrained designated type of a component
36000 whose base type is already frozen.
36002 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
36004 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
36005 avoid GCC warnings.
36007 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
36009 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
36010 identifier for a phantom package that rewrites the formal package
36011 declaration with a box. The Add semantic decorations for the defining
36012 identifier from the original node (that represents the formal package).
36014 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
36016 * Make-lang.in (ada/stamp-sdefault): Use the top level
36019 2004-02-19 Richard Henderson <rth@redhat.com>
36021 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
36023 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
36025 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
36026 Scan_ALI can be used for multiple ALI files without reinitializing
36029 2004-02-18 Robert Dewar <dewar@gnat.com>
36031 * debug.adb: Minor reformatting.
36033 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36035 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
36036 to zero if there is an address clause.
36038 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
36040 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
36042 2004-02-18 Gary Dismukes <dismukes@gnat.com>
36044 * layout.adb (Layout_Component_List): Revise generation of call to
36045 discriminant-checking function to pass selections of all of the type's
36046 discriminants rather than just the variant-controlling discriminant.
36048 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
36050 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
36051 fail in the current setup and triggers spurious system error messages.
36052 Pretend it occurred and failed instead.
36054 2004-02-18 Vincent Celier <celier@gnat.com>
36056 * bld.adb: Mark FLDFLAGS as saved
36057 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
36058 it is not the root project. Put each directory to be
36059 extended between double quotes to prevent it to be expanded on Windows.
36060 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
36061 the project file. Set them back to their initial values if they have not
36062 been set in the project file.
36064 * gprcmd.adb: (Gprdebug, Debug): New global variables
36065 (Display_Command): New procedure
36066 (Usage): Document new command "linkopts"
36067 Call Display_Command when env var GPRDEBUG has the value "TRUE"
36068 Implement new command "linkopts"
36069 Remove quotes that may be around arguments for "extend"
36070 Always call Normalize_Pathname with arguments formatted for the platform
36072 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
36073 Change @echo to @$(display) in target clean to be able to clean silently
36075 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
36077 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
36080 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
36081 = Extending_All when current project is an extending all project.
36083 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
36084 set to True only for LINK command, after Unix switch -o.
36085 (Process_Arguments): Set Output_File_Expected to True for LINK command
36086 after Unix switch -o. When Output_File_Expected is True, never add an
36087 extension to a file name.
36089 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
36090 option file name, only to the --for-linker= switch.
36091 (Option_File_Name): If option file name do not end with ".opt", append
36094 2004-02-18 GNAT Script <nobody@gnat.com>
36096 * Make-lang.in: Makefile automatically updated
36098 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
36100 * Make-lang.in (stamp-sdefault): Do not depend on
36103 2004-02-12 Zack Weinberg <zack@codesourcery.com>
36105 * config-lang.in: Disable Ada by default until probe logic for
36106 a bootstrap Ada compiler can be moved to the top level configure
36109 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
36111 * decl.c (components_to_record): Don't claim that the internal fields
36112 we make to hold the variant parts are semantically addressable, because
36115 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
36116 adjust the comment describing the modular type form when we can use it.
36117 (Install_PAT): Account for the Esiz renaming.
36119 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
36120 sc_onstack context indication before raising the exception to which
36121 the signal is mapped. Allows better handling of later signals possibly
36122 triggered by the resumed user code if the exception is handled.
36124 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
36126 * 5zinit.adb: Removed, no longer used.
36128 2004-02-12 Robert Dewar <dewar@gnat.com>
36130 * ali.adb: Remove separating space between parameters on R line. Makes
36131 format consistent with format used by the binder for Set_Globals call.
36133 * atree.ads, atree.adb: Minor reformatting (new function header format)
36135 * bindgen.adb: Add Run-Time Globals documentation section containing
36136 detailed documentation of the globals passed from the binder file to
36139 * gnatls.adb: Minor reformatting
36141 * init.c (__gnat_set_globals): Add note pointing to documentation in
36144 * lib-writ.ads, lib-writ.adb: Remove separating space between
36145 parameters on R line.
36146 Makes format consistent with format used by the binder for Set_Globals
36149 * osint.ads: Add 2004 to copyright notice
36152 * snames.ads: Correct capitalization of FIFO_Within_Priorities
36153 Noticed during code reading, documentation issue only
36155 * usage.adb: Remove junk line for obsolete C switch
36156 Noticed during code reading
36158 2004-02-12 Vincent Celier <celier@gnat.com>
36160 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
36161 extend for each directory, so that multiple /** directories are
36162 extended individually.
36163 (Recursive_Process): Set the default for LANGUAGES to ada
36165 * gprcmd.adb: Define new command "ignore", to do nothing.
36166 Implement new comment "path".
36168 * Makefile.generic: Suppress output when SILENT is set
36169 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
36170 used, so that the correct compiler is invoked.
36171 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
36172 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
36174 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
36176 * Makefile.in: Clean ups and remove obsolete targets.
36178 2004-02-12 Ed Schonberg <schonberg@gnat.com>
36180 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
36181 predicate declared in exp_util.
36183 * exp_util.adb: Add comments.
36185 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
36186 visibility before compiling context of the subunit.
36188 * sem_res.adb (Check_Parameterless_Call): If the context expects a
36189 value but the name is a procedure, do not attempt to analyze as a call,
36190 in order to obtain more telling diagnostics.
36192 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
36193 'Access on parameterless function calls.
36194 (Normalize_Actuals): For a parameterless function call with missing
36195 actuals, defer diagnostic until resolution of enclosing call.
36197 * sem_util.adb (Wrong_Type): If the context type is an access to
36198 subprogram and the expression is a procedure name, suggest a missing
36201 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
36202 Nathanael Nerode <neroden@gcc.gnu.org>
36206 Merge with libada-branch:
36207 * config-lang.in: Build libada only when ada is built.
36209 2004-02-09 Ed Schonberg <schonberg@gnat.com>
36211 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
36212 for a tagged type, verify that both formals have the same type.
36214 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
36215 temporary when the formal is an in-parameter and the actual a possibly
36218 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
36219 when expansion is disabled, to ensure proper name capture with
36220 overloaded literals. Condition can be of any boolean type, resolve
36223 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
36224 renaming is for a formal subprogram with a default operator name, and
36225 there is a usable operator that is visible at the point of
36228 2004-02-09 Robert Dewar <dewar@gnat.com>
36230 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
36231 rewrite to ignore errors in ali files, intended to allow tools downward
36232 compatibility with new versions of ali files.
36234 * ali.ads: Add new parameter Ignore_Errors
36236 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
36237 duplicating the error message giving the file with restrictions.
36239 * debug.adb: Add debug flag I for gnatbind
36241 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
36242 operators for the case where the operator is a defining operator.
36244 * exp_ch3.adb: Minor reformatting (new function spec format).
36246 * exp_ch4.adb: Add comment for previous change, and make minor
36247 adjustment to loop to always check for improper loop termination.
36248 Minor reformatting throughout (new function spec format).
36250 * gnatbind.adb: Implement -di debug flag for gnatbind
36252 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
36254 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
36256 * lib-load.adb: Fix bad assertion.
36257 Found by testing and code reading.
36258 Minor reformatting.
36260 * lib-load.ads: Minor reformatting.
36262 * lib-writ.adb: There is only one R line now.
36264 * lib-writ.ads: Add documentation on making downward compatible changes
36265 to ali files so old tools work with new ali files.
36266 There is only one R line now.
36267 Add documentation on format incompatibilities (with special GPS note)
36269 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
36271 * par-load.adb: Minor reformatting
36273 * sem_ch8.adb: Fix to error message from last update
36274 Minor reformatting and restructuring of code from last update
36276 * par-prag.adb, snames.adb, snames.ads, snames.h,
36277 sem_prag.adb: Implement pragma Profile.
36279 * stylesw.adb: Implement -gnatyN switch to turn off all style check
36282 * usage.adb: Add line for -gnatyN switch
36284 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
36286 2004-02-09 Albert Lee <lee@gnat.com>
36288 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
36290 2004-02-09 Ed Schonberg <schonberg@gnat.com>
36292 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
36295 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
36296 is nested in an instance that is not frozen yet, to avoid
36297 order-of-elaboration problems in gigi.
36299 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
36300 body the attribute is legal.
36302 2004-02-09 Robert Dewar <dewar@gnat.com>
36304 * s-rident.ads: Minor comment correction
36306 * targparm.adb: Remove dependence on uintp completely. There was
36307 always a bug in Make in that it called Targparm before initializing
36308 the Uint package. The old code appeared to get away with this, but
36309 the new code did not! This caused an assertion error in gnatmake.
36311 * targparm.ads: Fix bad comment, restriction pragmas with parameters
36312 are indeed fully supported.
36314 2004-02-06 Alan Modra <amodra@bigpond.net.au>
36316 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
36318 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
36320 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
36321 with targetm.calls.promote_prototypes.
36323 2004-02-04 Robert Dewar <dewar@gnat.com>
36325 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
36326 ali.ads, gprcmd.adb: Minor reformatting
36328 * bindgen.adb: Output restrictions string for new style restrictions
36331 * impunit.adb: Add s-rident.ads (System.Rident) and
36332 s-restri (System.Restrictions)
36334 * lib-writ.adb: Fix bug in writing restrictions string (last few
36337 * s-restri.ads, s-restri.adb: Change name Restrictions to
36338 Run_Time_Restrictions to avoid conflict with package name.
36339 Add circuit to read and acquire run time restrictions.
36341 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
36343 * restrict.ads, restrict.adb: Use the new restriction
36344 No_Task_Attributes_Package instead of the old No_Task_Attributes.
36346 * sem_prag.adb: No_Task_Attributes is a synonym of
36347 No_Task_Attributes_Package.
36349 * snames.ads, snames.adb: New entry for proper handling of
36350 No_Task_Attributes.
36352 * s-rident.ads: Adding restriction No_Task_Attributes_Package
36353 (AI-00249) that supersedes the GNAT specific restriction
36354 No_Task_Attributes.
36356 2004-02-04 Ed Schonberg <schonberg@gnat.com>
36359 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
36360 body, an identifier may be wrapped in an unchecked conversion.
36362 2004-02-04 Vincent Celier <celier@gnat.com>
36364 * lib-writ.ads: Comment update for the W lines
36366 * bld.adb: (Expression): An empty string list is static
36368 * fname-uf.adb: Minor comment update
36370 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
36372 * gnatbind.adb: Initialize Cumulative_Restrictions with the
36373 restrictions on the target.
36375 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
36377 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
36380 2004-02-02 Arnaud Charlet <charlet@gnat.com>
36382 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
36384 2004-02-02 Vincent Celier <celier@gnat.com>
36386 * gprcmd.adb (Check_Args): If condition is false, print the invoked
36387 comment before the usage.
36388 Gprcmd: Fail when command is not recognized.
36389 (Usage): Document command "prefix"
36391 * g-md5.adb (Digest): Process last block.
36392 (Update): Do not process last block. Store remaining characters and
36395 * g-md5.ads (Update): Document that several call to update are
36396 equivalent to one call with the concatenated string.
36397 (Context): Add fields to allow new Update behaviour.
36399 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
36400 defaulted to False.
36401 When May_Fail is True and no existing file can be found, return No_File.
36403 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
36406 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
36407 spec file name instead on the W line.
36409 2004-02-02 Robert Dewar <dewar@gnat.com>
36411 * ali.adb: Read and acquire info from new format restrictions lines
36413 * bcheck.adb: Add circuits for checking restrictions with parameters
36415 * bindgen.adb: Output dummy restrictions data
36416 To be changed later
36418 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
36419 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
36420 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
36421 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
36422 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
36424 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
36425 the warning message on access to possibly uninitialized variable S)
36426 Minor changes for new restrictions handling.
36428 * gnatbind.adb: Minor reformatting
36429 Minor changes for new restrictions handling
36430 Move circuit for -r processing here from bcheck (cleaner)
36432 * gnatcmd.adb, gnatlink.adb: Minor reformatting
36434 * lib-writ.adb: Output new format restrictions lines
36436 * lib-writ.ads: Document new R format lines for new restrictions
36439 * s-restri.ads/adb: New files
36441 * Makefile.rtl: Add entry for s-restri.ads/adb
36443 * par-ch3.adb: Fix bad error messages starting with upper case letter
36446 * restrict.adb: Major rewrite throughout for new restrictions handling
36447 Major point is to handle restrictions with parameters
36449 * restrict.ads: Major changes in interface to handle restrictions with
36450 parameters. Also generally simplifies setting of restrictions.
36452 * snames.ads/adb: New entry for proper handling of No_Requeue
36454 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
36455 restriction counting.
36456 Other minor changes for new restrictions handling
36458 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
36459 Restriction_Warnings now allows full parameter notation
36460 Major rewrite of Restrictions for new restrictions handling
36462 2004-02-02 Javier Miranda <miranda@gnat.com>
36464 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
36465 syntax rule for object renaming declarations.
36466 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
36467 component definitions.
36469 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
36471 (Array_Type_Declaration): Give support to access components. In addition
36472 it was also modified to reflect the name of the object in anonymous
36473 array types. The old code did not take into account that it is possible
36474 to have an unconstrained anonymous array with an initial value.
36475 (Check_Or_Process_Discriminants): Allow access discriminant in
36477 (Process_Discriminants): Allow access discriminant in non-limited types
36478 Initialize the new Access_Definition field in N_Object_Renaming_Decl
36479 node. Change Ada0Y to Ada 0Y in comments
36481 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
36482 equality operators.
36483 Change Ada0Y to Ada 0Y in comments
36485 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
36486 renamings Change Ada0Y to Ada 0Y in comments
36488 * sem_type.adb (Find_Unique_Type): Give support to the equality
36489 operators for universal access types
36490 Change Ada0Y to Ada 0Y in comments
36492 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
36494 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
36496 (N_Object_Renaming_Declaration): Addition of Access_Definition field
36497 Change Ada0Y to Ada 0Y in comments
36499 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
36500 component definition and object renaming nodes
36501 Change Ada0Y to Ada 0Y in comments
36503 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
36505 * restrict.adb: Use the new restriction identifier
36506 No_Requeue_Statements instead of the old No_Requeue for defining the
36507 restricted profile.
36509 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
36510 No_Requeue_Statements.
36512 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
36513 that supersedes the GNAT specific restriction No_Requeue. The later is
36514 kept for backward compatibility.
36516 2004-02-02 Ed Schonberg <schonberg@gnat.com>
36518 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
36519 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
36520 pragma and fix incorrect ones.
36522 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
36523 warning if the pragma is redundant.
36525 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
36527 * 5staprop.adb: Add missing 'constant' keywords.
36529 * Makefile.in: use consistent value for SYMLIB on
36530 platforms where libaddr2line is supported.
36532 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36534 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
36537 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
36539 * init.c (__gnat_install_handler): Setup an alternate stack for signal
36540 handlers in the environment thread. This allows proper propagation of
36541 an exception on stack overflows in this thread even when the builtin
36542 ABI stack-checking scheme is used without support for a stack reserve
36545 * utils.c (create_field_decl): Augment the head comment about bitfield
36546 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
36547 here, because the former is not accurate enough at this point.
36548 Let finish_record_type decide instead.
36549 Don't make a bitfield if the field is to be addressable.
36550 Always set a size for the field if the record is packed, to ensure the
36551 checks for bitfield creation are triggered.
36552 (finish_record_type): During last pass over the fields, clear
36553 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
36554 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
36555 from DECL_BIT_FIELD.
36557 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
36559 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
36560 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
36561 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
36563 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36565 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
36567 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
36568 (ZCX_By_Default): Likewise.
36569 (Front_End_ZCX_Support): Likewise.
36571 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
36572 (Initialize_Lock): Mark Level unreferenced.
36573 (Sleep): Mark Reason unreferenced.
36574 (Timed_Sleep): Likewise.
36575 (Wakeup): Likewise.
36576 (Exit_Task): Use Result.
36577 (Check_No_Locks): Mark Self_ID unreferenced.
36579 * 5gtasinf.adb (New_Sproc): Make Attr constant.
36580 (Bound_Thread_Attributes): Make Sproc constant.
36581 (New_Bound_Thread_Attributes): Likewise.
36583 2004-01-26 Ed Schonberg <schonberg@gnat.com>
36585 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
36586 one-dimensional array an slice assignments, when component type is
36589 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
36590 component type is controlled, and control_actions are in effect, use
36591 TSS procedure rather than generating inline code.
36593 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
36594 arrays with controlled components.
36596 2004-01-26 Vincent Celier <celier@gnat.com>
36598 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
36599 command line for the non VMS case.
36601 * gnatlink.adb (Process_Binder_File): When building object file, if
36602 GNU linker is used, put all object paths between quotes, to prevent ld
36603 error when there are unusual characters (such as '!') in the paths.
36605 * Makefile.generic: When there are sources in Ada and the main is in
36606 C/C++, invoke gnatmake with -B, instead of -z.
36608 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
36609 from VMS_Conversion.
36610 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
36611 specification of argument file on the command line.
36613 2004-01-26 Bernard Banner <banner@gnat.com>
36615 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
36617 2004-01-26 Ed Schonberg <schonberg@gnat.com>
36619 * snames.adb: Update copyright notice.
36620 Add info on slice assignment for controlled arrays.
36622 2004-01-23 Robert Dewar <dewar@gnat.com>
36624 * exp_aggr.adb: Minor reformatting
36626 * exp_ch9.adb: Minor code clean up
36628 Fix bad character in comment
36631 * targparm.adb (Get_Target_Parameters): Give clean abort error on
36632 unexpected end of file, along with more detailed message.
36634 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36636 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
36639 * decl.c (copy_alias_set): New function.
36640 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
36642 2004-01-23 Doug Rupp <rupp@gnat.com>
36644 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
36645 lib$${file} in case subsequent character is not a separator.
36647 2004-01-23 Vincent Celier <celier@gnat.com>
36649 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
36650 when the GCC version is at least 3.
36652 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
36653 Remove all "Opt.", to prepare for opt split
36655 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
36656 Extends_All. Set to True when the project parsed is an extending all
36657 project. Fails for importing an extending all project only when the
36658 imported project is an extending all project.
36659 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
36660 depending on the value of Extends_All returned.
36662 * prj-proc.adb (Process): Check that no project shares its object
36663 directory with a project that extends it, directly or indirectly,
36664 including a virtual project.
36665 Check that no project extended by another project shares its object
36666 directory with another also extended project.
36668 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
36669 Kind = N_With_Clause
36671 * prj-tree.ads: Minor reformatting
36672 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
36674 2004-01-23 Ed Schonberg <schonberg@gnat.com>
36676 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
36677 applies to a type with an incomplete view, use full view in Name of
36678 clause, for consistency with uses of Get_Attribute_Definition_Clause.
36680 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
36682 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
36683 SCHED_RR, since other values are not supported by this policy.
36684 (Initialize): Move initialization of mutex attribute to package
36685 elaboration, to prevent early access to this variable.
36687 * Makefile.in: Remove mention of Makefile.adalib, unused.
36689 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
36690 1ssecsta.ads: Removed, unused.
36692 2004-01-21 Javier Miranda <miranda@gnat.com>
36694 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
36695 entity if already built in the current scope.
36697 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
36698 reminder in internal scopes. Required for nested limited aggregates.
36700 2004-01-21 Doug Rupp <rupp@gnat.com>
36702 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
36703 VMS. Replace all occurences of libgnat- and libgnarl- with
36704 libgnat$(hyphen) and libgnarl$(hyphen).
36705 Fixed shared library build problem on VMS.
36707 2004-01-21 Robert Dewar <dewar@gnat.com>
36709 * mlib-prj.adb: Minor reformatting
36711 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
36713 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
36714 'constant' keywords for declaration of pointers that are not modified.
36716 * exp_pakd.adb: Fix English in comment.
36718 2004-01-21 Ed Schonberg <schonberg@gnat.com>
36721 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
36722 copy all attributes of the parent, including the foreign language
36725 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
36728 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
36729 for 'delay until' statement.
36731 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
36733 * Make-lang.in: Replace $(docdir) with doc.
36734 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
36735 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
36736 to use consistent MAKEINFO rule.
36737 (ada.man, ada.srcman): Dummy entry.
36738 (ADA_INFOFILES): Define.
36739 (ada.info, ada.srcinfo): New rules.
36741 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
36743 * utils.c: Update copyright notice, missed in previous change.
36745 2004-01-19 Vincent Celier <celier@gnat.com>
36747 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
36748 args if Bind is True. Set First_ALI, if not already done.
36749 (Build_Library): For Stand Alone Libraries, extract from one ALI file
36750 an eventual --RTS switch, for gnatbind, and all backend switches +
36751 --RTS, for linking.
36753 2004-01-19 Robert Dewar <dewar@gnat.com>
36755 * sem_attr.adb, memtrack.adb: Minor reformatting
36757 2004-01-19 Ed Schonberg <schonberg@gnat.com>
36759 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
36760 that rename enumeration literals. This is properly done in sem_eval.
36762 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
36763 to functions that rename enumeration literals.
36765 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
36766 functions that rename enumeration literals.
36768 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
36770 * Make-lang.in (utils.o): Depend on target.h.
36771 * utils.c: Include target.h.
36772 (process_attributes): Use targetm.have_named_sections instead
36773 of ASM_OUTPUT_SECTION_NAME.
36775 2004-01-16 Andreas Jaeger <aj@suse.de>
36777 * Makefile.in: Add $(DESTDIR).
36779 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
36781 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
36782 also when not defining if a Size clause applies. That information is
36785 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
36787 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
36788 symbolic links for the shared gnat run time when needed.
36790 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
36792 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
36793 for writing, and terminate with an error message if not.
36795 2004-01-15 Ed Schonberg <schonberg@gnat.com>
36797 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
36798 warning on an access to subprogram in an instance, when the target
36799 type is declared in the same generic unit.
36800 (Eval_Attribute): If 'access is known to fail accessibility check,
36801 rewrite as a raise statement.
36803 2004-01-15 GNAT Script <nobody@gnat.com>
36805 * Make-lang.in: Makefile automatically updated
36807 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
36809 * Make-lang.in (ada.srcextra): Dummy entry.
36811 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
36813 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
36815 2004-01-13 Ed Schonberg <schonberg@gnat.com>
36817 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
36818 components that are initialized with aggregates.
36820 2004-01-13 Vincent Celier <celier@gnat.com>
36822 * gnatlink.adb (Process_Binder_File): To find directory of shared
36823 libgcc, if "gcc-lib" is not a subdirectory, look for the last
36824 subdirectory "lib" in the path of the shared libgnat or libgnarl.
36826 * make.adb (Gnatmake): If GCC version is at least 3, link with
36827 -shared-libgcc, when there is at least one shared library project.
36829 * opt.ads (GCC_Version): New integer constant.
36831 * adaint.c (get_gcc_version): New function.
36833 2004-01-13 Robert Dewar <dewar@gnat.com>
36835 * sem_dist.adb, sem_res.adb, sem_util.adb,
36836 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
36837 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
36839 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
36841 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
36842 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
36845 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
36847 * misc.c: Remove trailing spaces.
36848 Update copyright notice missed in previous change.
36851 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
36854 * Makefile.generic: Update copyright.
36855 Add license notice.
36857 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
36858 of prefix/share/make.
36860 * Makefile.prolog: Update copyright.
36861 Add license notice.
36863 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
36865 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
36866 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
36867 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
36870 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
36873 2004-01-12 Javier Miranda <miranda@gnat.com>
36875 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
36876 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
36877 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
36878 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
36879 Component_Definition node.
36881 2004-01-12 Ed Falis <falis@gnat.com>
36883 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
36885 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
36887 * link.c: Change default libgnat kind to STATIC for FreeBSD.
36889 2004-01-12 Bernard Banner <banner@gnat.com>
36891 * Makefile.in: map 86numaux to a-numaux for x86_64
36893 2004-01-12 Ed Schonberg <schonberg@gnat.com>
36895 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
36896 generated to rename a generic actual, go to the actual itself, the
36897 subtype is not a user-visible entity.
36899 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
36900 part is a private subtype, reset the visibility of its full view, if
36901 any, to be consistent.
36904 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
36905 to use a generic package G as a formal package for another generic
36908 2004-01-12 Robert Dewar <dewar@gnat.com>
36910 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
36912 * usage.adb: Remove mention of obsolete -gnatwb switch
36913 Noticed during code reading
36915 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
36917 * 1ssecsta.adb: Minor changes for -gnatwa warnings
36919 2004-01-12 GNAT Script <nobody@gnat.com>
36921 * Make-lang.in: Makefile automatically updated
36923 2004-01-09 Mark Mitchell <mark@codesourcery.com>
36925 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
36927 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
36929 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
36931 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
36933 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
36934 Update comment and copyright date.
36935 * stamp-xgnatug: Delete.
36937 2004-01-05 Robert Dewar <dewar@gnat.com>
36939 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
36940 be modified by the binder generated main program if the -D switch is
36943 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
36944 imported functions (since now we expect this to be done for imported
36947 * 5vtaprop.adb: Add several ??? for sections requiring more comments
36948 Minor reformatting throughout
36950 * 5zinit.adb: Minor reformatting
36951 Add 2004 to copyright date
36952 Minor changes to avoid -gnatwa warnings
36953 Correct some instances of using OR instead of OR ELSE (noted while
36954 doing reformatting)
36956 * sprint.adb: Minor updates to avoid -gnatwa warnings
36958 * s-secsta.ads, s-secsta.adb:
36959 (SS_Get_Max): New function to obtain high water mark for ss stack
36960 Default_Secondary_Stack is not a constant since it may be modified by
36961 the binder generated main program if the -D switch is used.
36963 * switch-b.adb: New -Dnnn switch for binder
36966 Make -gnatg imply all warnings currently in -gnatwa
36968 * vms_conv.adb: Minor reformatting
36969 Add 2004 to copyright notice
36970 Add 2004 to printed copyright notice
36972 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
36973 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
36974 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
36975 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
36976 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
36977 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
36978 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
36979 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
36980 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
36981 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
36982 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
36983 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
36984 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
36985 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
36986 checks.adb, clean.adb, cstand.adb, einfo.ads,
36987 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
36988 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
36989 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
36990 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
36991 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
36992 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
36993 Minor reformatting and code clean ups.
36994 Minor changes to prevent -gnatwa warnings
36996 * ali.adb: Minor reformatting and cleanup of code
36997 Acquire new SS indication of secondary stack use from ali files
36999 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
37000 (since now we expect this to be done for imported functions)
37002 * bindgen.adb: Generate call to modify default secondary stack size if
37005 * bindusg.adb: Add line for new -D switch
37007 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
37008 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
37009 Add circuitry for both records and arrays to avoid gigi
37010 processing if the type involved has non-bit-aligned components
37012 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
37013 N_String_Literal node always references an E_String_Literal_Subtype
37014 entity. This may not be true in the future.
37015 (Possible_Bit_Aligned_Component): Move processing of
37016 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
37018 * exp_ch6.adb (Expand_Thread_Body): Pick up
37019 Default_Secondary_Stack_Size as variable so that we get value modified
37020 by possible -Dnnn binder parameter.
37022 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
37023 (Type_May_Have_Bit_Aligned_Components): New function.
37025 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
37026 (Type_May_Have_Bit_Aligned_Components): New function.
37028 * fe.h: (Set_Identifier_Casing): Fix prototype.
37029 Add declaration for Sem_Elim.Eliminate_Error_Msg.
37030 Minor reformatting.
37032 * freeze.adb (Freeze_Entity): Add RM reference to error message about
37033 importing constant atomic/volatile objects.
37034 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
37035 unless explicit Pure_Function pragma given, to avoid insidious bug of
37036 call to non-pure imported function getting eliminated.
37038 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
37039 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
37040 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
37041 Add 2004 to printed copyright notice
37043 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
37046 * Makefile.rtl: Add entry for g-sestin.o
37047 g-sestin.ads: New file.
37049 * mdll.adb: Minor changes to avoid -gnatwa warnings
37051 * mlib-tgt.adb: Minor reformatting
37053 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
37054 New switch Sec_Stack_Used (GNAT, GNATBIND)
37055 Make Default_Secondary_Stack_Size a variable instead of a constant,
37056 so that it can be modified by the new -Dnnn bind switch.
37058 * rtsfind.adb (Load_Fail): Give full error message in configurable
37059 run-time mode if all_errors mode is set. This was not done in the case
37060 of a file not found, which was an oversight.
37061 Note if secondary stack unit is used by compiler.
37063 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
37064 ineffective elaborate all pragmas on non-visible packages (this
37065 happened when a renamed subprogram was called). Now the elaborate all
37066 always goes on the package containing the renaming rather than the one
37067 containing the renamed subprogram.
37069 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
37070 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
37072 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
37073 has an Etype that references an E_String_Literal.
37074 (Eval_String_Literal): Avoid assumption that N_String_Literal node
37075 always references an E_String_Literal_Subtype entity. This may not
37076 be true in the future.
37078 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
37081 * sem_res.adb (Resolve): Specialize msg for function name used in proc
37084 2004-01-05 Ed Falis <falis@gnat.com>
37086 * g-debuti.adb: Replaced direct boolean operator with short-circuit
37089 2004-01-05 Vincent Celier <celier@gnat.com>
37091 * bld.adb: Minor comment updates
37092 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
37095 * make.adb (Gnatmake): Special process for files to compile/check when
37096 -B is specified. Fail when there are only foreign mains in attribute
37097 Main of the project file and -B is not specified. Do not skip bind/link
37098 steps when -B is specified.
37100 * makeusg.adb: Document new switch -B
37102 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
37104 * switch-m.adb: (Scan_Make_Switches): Process -B switch
37106 * vms_data.ads: Add new GNAT PRETTY qualifier
37107 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
37109 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37111 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
37114 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
37115 Set_Identifier_Casing.
37117 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
37118 has size that overflows.
37120 2004-01-05 Gary Dismukes <dismukes@gnat.com>
37122 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
37123 -gnatwa warning on static condition.
37125 2004-01-05 Doug Rupp <rupp@gnat.com>
37127 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
37129 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
37131 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
37132 all attributes, including read-only attribute.
37134 2004-01-05 Pascal Obry <obry@gnat.com>
37136 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
37137 library naming scheme.
37139 * mlib-prj.adb (Build_Library): Generate different names for the static
37140 or dynamic version of the GNAT runtime. This is needed to support the
37141 new shared library naming scheme.
37142 (Process_Binder_File): Add detection of shared library in binder file
37143 based on the new naming scheme.
37145 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
37146 scheme for the shared runtime libraries.
37149 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
37151 (install-gnatlib): Do not create symlinks for shared libraries.
37152 (gnatlib-shared-default): Idem.
37153 (gnatlib-shared-dual-win32): New target. Not used for now as the
37154 auto-import feature does not support arrays/records.
37155 (gnatlib-shared-win32): Do not create copy for the shared libraries.
37156 (gnatlib-shared-vms): Fix shared runtime libraries names.
37158 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
37159 dependent runtime shared library name.
37161 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
37163 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
37166 2004-01-05 Ed Schonberg <schonberg@gnat.com>
37168 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
37169 protected objects when allocator has a subtype indication, not a
37170 qualified expression. Note that qualified expressions may have to be
37171 checked when limited aggregates are implemented.
37173 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
37174 pure, emit warning.
37175 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
37176 subprogram is imported, remove warning.
37178 2004-01-05 Geert Bosch <bosch@gnat.com>
37180 * s-poosiz.adb: Update copyright notice.
37181 (Allocate): Use Task_Lock to protect against concurrent access.
37182 (Deallocate): Likewise.
37184 2004-01-05 Joel Brobecker <brobecker@gnat.com>
37186 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
37189 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
37191 * gnat_ug.texi: Force a CVS commit by updating copyright.
37192 * gnat_ug_vxw.texi: Regenerate.
37193 * gnat_ug_wnt.texi: Regenerate.
37194 * gnat_ug_vms.texi: Regenerate.
37195 * gnat_ug_unx.texi: Regenerate.
37197 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
37199 * trans.c: Remove uses of "register" specifier in
37200 declarations of local variables.
37202 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
37204 * stamp-xgnatug: New stamp file.
37205 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
37206 (ada/doctools/xgnatug): Add $(build_exeext).
37207 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
37208 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
37210 2003-12-17 Ed Falis <falis@gnat.com>
37212 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
37215 * a-exextr.adb: Add context clause for
37216 Ada.Exceptions.Last_Chance_Handler.
37218 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
37220 * cstand.adb (Create_Standard): Change the way how the declaration of
37221 the Duration type is created (making it the same way as it is for all
37222 the other standard types).
37224 2003-12-17 Robert Dewar <dewar@gnat.com>
37226 * s-crtl.ads: Fix header format
37227 Change Pure to Preelaborate
37229 2003-12-17 Ed Schonberg <schonberg@gnat.com>
37231 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
37232 the expression type only if it is declared in the current unit.
37234 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
37235 are universal and already analyzed, as can occur in constrained
37236 subcomponents that depend on discriminants, when one constraint is a
37239 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
37240 type Any_Fixed is legal as the argument of a conversion, if only one
37241 fixed-point type is in context.
37243 2003-12-17 GNAT Script <nobody@gnat.com>
37245 * Make-lang.in: Makefile automatically updated
37247 2003-12-15 Robert Dewar <dewar@gnat.com>
37249 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
37252 2003-12-15 Vincent Celier <celier@gnat.com>
37254 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
37255 (Gnatchop): Do not set failure status when reporting the number of
37258 2003-12-15 Doug Rupp <rupp@gnat.com>
37260 * s-ctrl.ads: New file.
37262 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
37264 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
37265 (GNATBIND_OBJS): Add ada/s-crtl.o.
37267 * Makefile.in [VMS]: Clean up ifeq rules.
37269 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
37270 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
37271 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
37272 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
37273 s-tasdeb.adb: Update copyright.
37274 Import System.CRTL.
37275 Make minor modifications to use System.CRTL declared functions instead
37276 of importing locally.
37278 2003-12-15 GNAT Script <nobody@gnat.com>
37280 * Make-lang.in: Makefile automatically updated
37282 2003-12-11 Ed Falis <falis@gnat.com>
37284 * 5zinit.adb: Clean up.
37286 * 5zintman.adb (Notify_Exception): replaced case statement with a call
37287 to __gnat_map_signal, imported from init.c to support
37288 signal -> exception mappings that depend on the vxWorks version.
37291 Created and exported __gnat_map_signal to support signal -> exception
37292 mapping that is dependent on the VxWorks version.
37293 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
37295 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
37297 * 5wosinte.ads: Link with -mthreads switch.
37299 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
37301 * init.c (__gnat_install_handler [NetBSD]): Set
37302 __gnat_handler_installed, as done on all other platforms.
37303 Remove duplicated code.
37305 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
37307 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
37309 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
37311 * sinfo.ads: Fix inconsistent example code in comment.
37313 2003-12-11 Robert Dewar <dewar@gnat.com>
37315 * a-tiinau.adb: Add a couple of comments
37317 * sem_ch3.adb: Minor reformatting
37320 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
37321 Minor reformatting throughout
37323 2003-12-11 Ed Schonberg <schonberg@gnat.com>
37325 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
37326 bounds of a loop, create a separate block in order to generate proper
37327 cleanup actions to prevent memory leaks.
37329 * sem_res.adb (Resolve_Call): After a call to
37330 Establish_Transient_Scope, the call may be rewritten and relocated, in
37331 which case no further processing is needed.
37333 * sem_util.adb: (Wrong_Type): Refine previous fix.
37334 Fixes ACATS regressions.
37337 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
37340 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
37342 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
37343 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
37346 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
37349 2003-12-08 Robert Dewar <dewar@gnat.com>
37351 * 7sintman.adb: Minor reformatting
37353 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
37354 standard linker options to get standard libraries linked. We now plan
37355 to provide dummy versions of these libraries to match the appropriate
37356 configurable run-time (e.g. if a library is not needed at all, provide
37357 a dummy empty library).
37359 * targparm.ads: Configurable_Run_Time mode no longer affects linker
37360 options (-L parameters and standard libraries). What we plan to do is
37361 to provide dummy libraries where the libraries are not required.
37363 * gnatbind.adb: Minor comment improvement
37365 2003-12-08 Javier Miranda <miranda@gnat.com>
37367 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
37368 aggregate in the parent. Otherwise constants with limited aggregates
37369 are not supported. Add new formal to pass the component type (Ctype).
37370 It is required to call the corresponding IP subprogram in case of
37371 default initialized components.
37372 (Gen_Assign): In case of default-initialized component, generate a
37373 call to the IP subprogram associated with the component.
37374 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
37375 of aggregate with default initialized components.
37376 (Has_Default_Init_Comps): Improve implementation to recursively check
37377 all the present expressions.
37379 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
37380 to indicate that the initialization call corresponds to a
37381 default-initialized component of an aggregate.
37382 In case of default initialized aggregate with tasks this parameter is
37383 used to generate a null string (this is just a workaround that must be
37384 improved later). In case of discriminants, this parameter is used to
37385 generate a selected component node that gives access to the discriminant
37388 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
37389 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
37390 allocated aggregates with default-initialized components.
37392 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
37393 the box notation is used in positional aggregates.
37395 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
37397 * lib.ads: Fix typo in comment
37399 2003-12-08 Vincent Celier <celier@gnat.com>
37401 * prj.adb (Project_Empty): New component Unkept_Comments
37402 (Scan): Remove procedure; moved to Prj.Err.
37404 * prj.ads (Project_Data): New Boolean component Unkept_Comments
37405 (Scan): Remove procedure; moved to Prj.Err.
37407 * prj-dect.adb: Manage comments for the different declarations.
37409 * prj-part.adb (With_Record): New component Node
37410 (Parse): New Boolean parameter Store_Comments, defaulted to False.
37411 Set the scanner to return ends of line and comments as tokens, if
37412 Store_Comments is True.
37413 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
37414 comments are associated with these nodes. Store the node IDs in the
37416 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
37418 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
37419 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
37420 current project. Call Tree.Restore afterwards. Set the various nodes
37421 for comment storage (Next_End, End_Of_Line, Previous_Line,
37424 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
37425 defaulted to False.
37427 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
37428 to False. When Truncated is True, truncate the string, never go to the
37430 (Write_End_Of_Line_Comment): New procedure
37431 (Print): Process comments for nodes N_With_Clause,
37432 N_Package_Declaration, N_String_Type_Declaration,
37433 N_Attribute_Declaration, N_Typed_Variable_Declaration,
37434 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
37435 Process nodes N_Comment.
37437 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
37438 without comments and there are some comments, set the flag
37439 Unkept_Comments to True.
37440 (Scan): If there are comments, set the flag Unkept_Comments to True and
37441 clear the comments.
37442 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
37443 (Next_End_Nodes: New table
37444 (Comment_Zones_Of): New function
37445 (Scan): New procedure; moved from Prj. Accumulate comments in the
37446 Comments table and set end of line comments, comments after, after end
37448 (Add_Comments): New procedure
37449 (Save, Restore, Seset_State): New procedures
37450 (There_Are_Unkept_Comments): New function
37451 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
37452 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
37454 (First_Comment_After, First_Comment_After_End): New functions
37455 (First_Comment_Before, First_Comment_Before_End): New functions
37456 (Next_Comment): New function
37457 (End_Of_Line_Comment, Follows_Empty_Line,
37458 Is_Followed_By_Empty_Line): New functions
37459 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
37460 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
37461 (Set_Next_Comment): New procedure
37462 (Default_Project_Node): Associate comment before if the node can store
37465 * scans.ads (Token_Type): New enumeration value Tok_Comment
37466 (Comment_Id): New global variable
37468 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
37469 defaulted to False.
37470 (Scan): Store position of start of comment. If comments are tokens, set
37471 Comment_Id and set Token to Tok_Comment when scanning a comment.
37472 (Set_Comment_As_Token): New procedure
37474 * sinput-p.adb: Update Copyright notice
37475 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
37476 that no longer exists.
37478 2003-12-08 Javier Miranda <miranda@gnat.com>
37480 * sem_aggr.adb: Add dependence on Exp_Tss package
37481 Correct typo in comment
37482 (Resolve_Aggregate): In case of array aggregates set the estimated
37483 type of the aggregate before calling resolve. This is needed to know
37484 the name of the corresponding IP in case of limited array aggregates.
37485 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
37486 in case of default initialized array components.
37488 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
37489 types. Required to give support to limited aggregates in generic
37492 2003-12-08 Ed Schonberg <schonberg@gnat.com>
37494 * sem_ch3.adb (Check_Initialization): For legality purposes, an
37495 inlined body functions like an instantiation.
37496 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
37497 until bounds are analyzed, to diagnose premature use of type.
37499 * sem_util.adb (Wrong_Type): Improve error message when the type of
37500 the expression is used prematurely.
37502 2003-12-08 GNAT Script <nobody@gnat.com>
37504 * Make-lang.in: Makefile automatically updated
37506 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
37508 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
37509 they are automatically generated by Make-lang.in and cause nothing but
37510 maintenance troubles.
37512 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
37514 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
37515 version of this unit).
37517 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
37519 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
37520 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
37521 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
37522 the body of System.Interrupt_Management common to several targets.
37523 Update copyright notice when appropriate.
37525 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
37528 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
37529 to ensure that the kernel fills in the interrupted context structure
37530 before calling a signal handler, which is necessary to be able to
37531 unwind past it. Update the copyright notice.
37533 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
37535 * a-elchha.ads: New file.
37537 * a-elchha.adb: New default last chance handler. Contents taken from
37538 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
37540 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
37541 is moved to a-elchha.adb to provide a target-independent default last
37544 * Makefile.rtl: Add a-elchha.o
37546 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
37548 2003-12-05 Ed Schonberg <schonberg@gnat.com>
37550 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
37551 declared in an instance, do not inline the call if the instance is not
37552 frozen yet, to prevent order of elaboration problems.
37554 * sem_prag.adb: Add comments for previous fix.
37556 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
37558 * g-table.adb: Use the right variable in Set_Item.
37559 Update copyright notice.
37561 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
37563 * Makefile.in: Remove unused rules.
37565 2003-12-05 Vincent Celier <celier@gnat.com>
37567 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
37568 -nostdlib. Not needed here after all.
37570 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
37573 * adaint.h, adaint.c, g-os_lib.ads:
37574 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
37575 on some platforms (including FreeBSD), it is a 64 bit value.
37576 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
37578 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
37580 * gnatvsn.ads (Library_Version): Now contain only the relevant
37582 (Verbose_Library_Version): New constant.
37584 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
37585 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
37586 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
37588 * gnatlbr.adb: Clean up: replace Library_Version by
37589 Verbose_Library_Version.
37591 * make.adb, lib-writ.adb, exp_attr.adb:
37592 Clean up: replace Library_Version by Verbose_Library_Version.
37594 * 5lintman.adb: Removed.
37597 Update and simplify computation of LIBRARY_VERSION.
37598 Fix computation of GSMATCH_VERSION.
37599 5lintman.adb is no longer used: replaced by 7sintman.adb.
37601 2003-12-03 Robert Dewar <dewar@gnat.com>
37604 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
37605 name. Modified to consider small non-bit-packed arrays as troublesome
37606 and in need of component-by-component assigment expansion.
37608 2003-12-03 Vincent Celier <celier@gnat.com>
37610 * lang-specs.h: Process nostdlib as nostdinc
37612 * back_end.adb: Update Copyright notice
37613 (Scan_Compiler_Arguments): Process -nostdlib directly.
37615 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
37618 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
37619 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
37620 included in HIE_NONE_TARGET_PAIRS.
37622 2003-12-03 Ed Schonberg <schonberg@gnat.com>
37625 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
37626 is legal in an instance, because legality is cheched in the template.
37629 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
37630 appplied to an unchecked conversion of a formal parameter.
37633 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
37636 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
37638 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
37639 routines. The second one is new functionality to deal with backtracing
37640 through signal handlers.
37641 (unwind): Split into the two separate subroutines above.
37642 Update the documentation, and deal properly with sizeof (REG) different
37643 from sizeof (void*).
37645 2003-12-01 Nicolas Setton <setton@act-europe.fr>
37647 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
37648 so that the debugger can reliably access the value of the parameter,
37649 and therefore is able to display the exception name when an exception
37650 breakpoint is reached.
37652 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
37654 * fmap.adb: Fix typo in warning message.
37656 * g-socket.ads, g-socket.adb: Make Free a visible instance of
37657 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
37659 2003-12-01 Vincent Celier <celier@gnat.com>
37661 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
37663 (Build_Library): Get the switches only if Default_Switches is declared
37666 2003-12-01 Ed Schonberg <schonberg@gnat.com>
37668 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
37669 actuals that are indexed components, reanalyze actual to ensure that
37670 packed array references are properly expanded.
37672 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
37673 attempted assignment to a discriminant.
37675 2003-12-01 Robert Dewar <dewar@gnat.com>
37677 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
37680 * switch-c.adb: Minor reformatting of comments
37682 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
37684 * Makefile.in: Clean ups.
37686 2003-12-01 GNAT Script <nobody@gnat.com>
37688 * Make-lang.in: Makefile automatically updated
37690 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
37692 * 5wsystem.ads: Disable zero cost exception, not ready yet.
37694 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
37696 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
37697 to force serialization.
37699 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
37701 * g-socket.ads, g-socket.adb:
37702 Clarify documentation of function Stream. Introduce a Free procedure
37703 to release the returned Stream once it becomes unused.
37705 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
37707 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
37709 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
37710 since NT 4 cannot handle timeout values that are too large,
37711 e.g. DWORD'Last - 1.
37713 2003-11-26 Ed Schonberg <schonberg@gnat.com>
37716 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
37717 in procedure calls and whose expansion must be deferred.
37719 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
37723 (Build_Derived_Array_Type): Create operator for unconstrained type
37724 if ancestor is unconstrained.
37726 2003-11-26 Vincent Celier <celier@gnat.com>
37728 * make.adb (Project_Object_Directory): New global variable
37729 (Change_To_Object_Directory): New procedure
37730 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
37731 of Change_Dir directly. Do not change working directory to object
37732 directory of main project after each compilation.
37733 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
37735 Change to object directory of main project before binding step.
37736 (Initialize): Initialize Project_Object_Directory to No_Project
37739 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
37740 binding a Stand-Alone Library.
37742 * output.adb: Update Copyright notice
37743 (Write_Char): Output buffer when full
37745 2003-11-26 Robert Dewar <dewar@gnat.com>
37747 * sem_ch13.adb: (Check_Size): Reset size if size is too small
37750 (Check_Size): Fix documentation to include bit-packed array case
37752 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
37754 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
37756 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
37758 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
37761 * utils.c (init_gigi_decls): Change name of built-in setjmp to
37762 __builtin_setjmp, since this is apparently needed by recent
37765 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
37767 * adadecode.c: Only include ctype.h if not IN_GCC.
37768 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
37770 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
37773 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
37774 signals and interrupts.
37776 * 5zintman.ads: New File.
37778 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
37779 add exception signals to the set of unmasked signals.
37782 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
37783 between signals and interrupts.
37784 Add to Unblocked_Signal_Mask the set of signals that are in
37788 Adding a check to see whether the Interrupt_ID we want to unmask is in
37789 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
37790 reason is that the index type of the Keep_Unmasked array is not always
37791 Interrupt_ID; it may be a subtype of Interrupt_ID.
37793 2003-11-24 Gary Dismukes <dismukes@gnat.com>
37796 (Remove_Side_Effects): Condition constantness of object created for a
37797 an unchecked type conversion on the constantness of the expression
37798 to ensure the correct value for 'Constrained when passing components
37799 of view-converted class-wide objects.
37801 2003-11-24 Robert Dewar <dewar@gnat.com>
37803 * par-load.adb (Load): Improve handling of misspelled and missing units
37804 Removes several cases of compilation abandoned messages
37806 * lib.adb: (Remove_Unit): New procedure
37808 * lib.ads: (Remove_Unit): New procedure
37810 * lib-load.adb: Minor reformatting
37812 2003-11-24 Vincent Celier <celier@gnat.com>
37815 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
37816 (Marking_Label): Label to mark processed source files. Incremented for
37818 (Gnatmake): Increase Marking_Labet for each executable
37819 (Is_Marked): Compare against marking label
37820 (Mark): Mark with marking label
37822 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
37825 Move the declaration of the TSD for System.Threads to System.Soft_Links.
37828 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
37829 (rts-cert): build a single relocatable object for the run-time lib.
37832 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
37835 Use gnatls rather than gcc to obtain the location of GNAT RTL for
37838 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
37840 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
37841 can not use it as before (that is, as a variable) when dumping it into
37842 the tree file. Add a local variable to store the result of this
37843 function and to be used as the string to be written into the tree.
37845 * scn.adb (Initialize_Scanner): Add comments explaining the recent
37848 * sinput.adb (Source_First, Source_Last): In case of
37849 Internal_Source_File, replace returning attributes of
37850 Internal_Source_Ptr (which is wrong) with returning attributes of
37853 2003-11-24 Ed Schonberg <schonberg@gnat.com>
37856 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
37857 used for implicit concatenation operators.
37861 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
37862 task bodies that are in the scope of a Suppress pragma.
37863 (Check_A Call): Use the flag to prevent spurious elaboration checks.
37865 * sinfo.ads, sinfo.adb:
37866 New flag No_Elaboration_Check on function/procedure calls, to properly
37867 suppress checks on calls in task bodies that are within a local suppress
37871 (Expand_Concatenate_Other): Use the proper integer type for the
37872 expression for the upper bound, to avoid universal_integer computations
37875 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
37877 * .cvsignore: Delete.
37879 2003-11-21 Andreas Schwab <schwab@suse.de>
37881 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
37883 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
37885 * 5wsystem.ads: Enable zero cost exception.
37887 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
37889 * 5ztiitho.adb: Remove an unreferenced variable.
37891 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
37893 * adaint.c: For FreeBSD, use mkstemp.
37895 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
37897 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
37899 2003-11-21 Robert Dewar <dewar@gnat.com>
37901 * bld.adb: Remove useless USE of gnatvsn
37903 * gnatchop.adb: Minor reformatting
37904 Clean up version handling to be more consistent
37906 * gnatxref.adb: Minor reformatting
37908 * gprcmd.adb: Minor reformatting
37909 Fix output of copyright to be more consistent with other tools
37911 2003-11-21 Vincent Celier <celier@gnat.com>
37913 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
37915 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
37917 * atree.adb (Initialize): Add initializations for global variables
37918 used in New_Copy_Tree.
37920 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
37921 Internal_Source_File as the actual).
37922 Put the set of statements creating Any_Character before the set of
37923 statements creating Any_Array to have Any_Character fully initialized
37924 when it is used in creating Any_Array.
37926 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
37927 not call Scan in case if the actual is Internal_Source_File
37928 Add 2003 to copyright note.
37930 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
37931 processing Internal_Source_File.
37933 * types.ads: Add the constant Internal_Source_File representing the
37934 source buffer for artificial source-code-like strings created within
37935 the compiler (the definition of Source_File_Index is changed).
37937 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
37939 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
37940 56system.ads: New file, FreeBSD version.
37942 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
37944 * Make-lang.in (ada.extraclean): Delete.
37946 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
37948 * gnatmem.adb: Clean up verbose output.
37950 * gprcmd.adb: Change copyright to FSF.
37952 2003-11-19 Vincent Celier <celier@gnat.com>
37954 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
37955 and Version (ignored).
37957 * symbols.ads: (Policy): New type
37958 (Initialize): New parameter Reference, Symbol_Policy and
37960 Remove parameter Force.
37961 Minor reformatting.
37963 * snames.ads, snames.adbadb: New standard names
37964 Library_Reference_Symbol_File and Library_Symbol_Policy
37967 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
37971 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
37973 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
37975 * prj.adb: (Project_Empty): New component Symbol_Data
37977 * prj.ads: (Policy, Symbol_Record): New types
37978 (Project_Data): New component Symbol_Data
37981 New attributes Library_Symbol_File, Library_Symbol_Policy and
37982 Library_Reference_Symbol_File.
37985 (Ada_Check): When project is a Stand-Alone library project, process
37986 attribute Library_Symbol_File, Library_Symbol_Policy and
37987 Library_Reference_Symbol_File.
37989 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
37990 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
37991 5sml-tgt.adb (Build_Dynamic_Library): New parameter
37992 Symbol_Data (ignored).
37994 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
37995 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
37996 functions Option_File_Name and Version_String. Set new options of
37997 gnatsym related to symbol file, symbol policy and reference symbol
38001 Extensive modifications to take into account the reference symbol file,
38002 the symbol policy, the library version and to put in the symbol file the
38003 minor and major IDs.
38005 * bld.adb (Process_Declarative_Items): Put second argument of
38006 gprcmd to_absolute between single quotes, to avoid problems with
38009 * bld-io.adb: Update Copyright notice.
38010 (Flush): Remove last character of a line, if it is a back slash, to
38011 avoid make problems.
38014 Implement new scheme with reference symbol file and symbol policy.
38016 * g-os_lib.ads: (Is_Directory): Clarify comment
38018 2003-11-19 Robert Dewar <dewar@gnat.com>
38020 * atree.adb: Move New_Copy_Tree global variables to head of package
38022 * errout.adb: Minor reformatting
38024 2003-11-19 Javier Miranda <miranda@gnat.com>
38026 * sem_ch4.adb: (Diagnose_Call): Improve error message.
38027 Add reference to Ada0Y (AI-50217)
38029 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
38030 sem_util.adb: Add reference to AI-50217
38032 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
38034 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
38036 * sem_aggr.adb: Complete documentation of AI-287 changes
38038 * par-ch4.adb: Document previous changes.
38040 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
38041 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
38044 * exp_aggr.adb: Add references to AI-287 in previous changes
38046 2003-11-19 Ed Schonberg <schonberg@gnat.com>
38049 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
38050 in the rewriting is the result of an inlined call.
38052 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
38053 parameter is a type conversion, use original node to construct the
38054 post-call assignment, because expression may have been rewritten, e.g.
38055 if it is a packed array.
38058 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
38059 body, just as it is in an instance.
38060 Categorization routines
38062 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
38063 Instantiate_Object): Set proper sloc reference for message on missing
38066 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
38068 * Makefile.in: Add FreeBSD libgnat pairs.
38070 * usage.adb: Fix typo in usage message.
38072 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
38074 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
38075 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
38076 pragma Thread_Body.
38077 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
38079 * s-thread.adb: This file is now a dummy implementation of
38082 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
38084 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
38086 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
38088 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
38089 instanciation references in the parent type description.
38091 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38093 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
38095 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
38096 TYPE_PRECISION directly from esize.
38098 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
38101 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
38103 * init.c: Initialization routines for FreeBSD
38105 * link.c: Link info for FreeBSD
38107 * sysdep.c: Add the case of FreeBSD
38109 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
38111 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
38112 already called in System.Threads.
38114 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
38115 environment task, as it has been moved to System.Threads.Initialization.
38117 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
38119 * adaint.c (__gnatlib_install_locks): Only reference
38120 __gnat_install_locks on VMS, since other platforms can avoid using
38121 --enable-threads=gnat
38123 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38125 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
38127 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
38128 TYPE_PACKED_ARRAY_TYPE_P.
38129 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
38131 Part of PR ada/12806
38132 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
38133 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
38135 2003-11-17 Vincent Celier <celier@gnat.com>
38137 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
38139 Do not set exit status to Failure when Warning is True.
38140 (Gnatchop): Make errors "no compilation units found" and
38141 "no source files written" warnings only.
38143 * make.adb (Gnatmake): When using a project file, set
38144 Look_In_Primary_Dir to False.
38145 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
38146 and Local_Configuration_Pragmas in the project where they are declared
38147 not an extending project which might have inherited them.
38149 * osint.adb (Locate_File): If Name is already an absolute path, do not
38150 look for a directory.
38152 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
38153 -gnats (Check_Syntax) is used, issue only a warning, not an error.
38155 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
38156 in objects of type Variable_Value.
38158 * prj.ads: (Variable_Value): New component Project
38160 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
38161 is in a project extended by Project.
38163 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
38164 Project of Variable_Values to this new parameter value.
38165 (Expression): Set component Project of Variable_Values.
38166 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
38167 Set the component Project in array elements.
38169 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
38171 * errout.adb: (Initialize): Add initialization for error nodes.
38173 * sem_ch12.adb (Initialize): Add missing initializations for
38174 Exchanged_Views and Hidden_Entities.
38176 2003-11-17 Ed Schonberg <schonberg@gnat.com>
38178 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
38179 already instantiated tree for use in subsequent inlining.
38180 (Analyze_Associations, Instantiate_Formal_Subprogram,
38181 Instantiate_Object): improve error message for mismatch in
38184 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
38185 instantiations of subprograms declared in instances.
38187 2003-11-17 Javier Miranda <miranda@gnat.com>
38189 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
38190 executed only under the Extensions_Allowed flag.
38192 2003-11-17 Robert Dewar <dewar@gnat.com>
38194 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
38196 (Address_Image): Fix bug of returning 0x instead of 0x0
38197 Minor reformatting (function specs).
38199 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
38200 (missed case of 33-63)
38202 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
38204 * s-thread.adb: Add comments for pragma Restriction
38206 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
38207 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
38209 2003-11-17 Ed Falis <falis@gnat.com>
38211 * s-thread.adb: Added No_Tasking restriction for this implementation.
38213 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
38215 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
38216 instanciation references in the parent type description.
38218 2003-11-17 GNAT Script <nobody@gnat.com>
38220 * Make-lang.in: Makefile automatically updated
38222 2003-11-16 Jason Merrill <jason@redhat.com>
38224 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
38225 and TAGS files that include them for each front end.
38227 2003-11-14 Andreas Jaeger <aj@suse.de>
38229 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
38230 is the canonical version.
38231 * misc.c (gnat_handle_option): Likewise.
38233 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
38235 * 5nsystem.ads: New file for x86_64-linux-gnu.
38237 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
38239 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
38241 * comperr.adb: Fix logic in previous change.
38243 2003-11-13 Vincent Celier <celier@gnat.com>
38245 * 5bml-tgt.adb (Build_Dynamic_Library): Use
38246 Osint.Include_Dir_Default_Prefix instead of
38247 Sdefault.Include_Dir_Default_Name.
38249 * gnatlbr.adb: Update Copyright notice
38250 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
38251 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
38252 instead of Sdefault.Object_Dir_Default_Name
38255 (Process_Binder_File): Never suppress the option following -Xlinker
38258 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
38259 Sdefault.Object_Dir_Default_Name.
38261 * osint.ads, osint.adb:
38262 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
38263 Minor reformatting.
38265 * vms_conv.ads: Minor reformating
38266 Remove GNAT STANDARD and GNAT PSTA
38269 Allow GNAT MAKE to have several files on the command line.
38270 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
38271 Sdefault.Object_Dir_Default_Name.
38273 Remove data for GNAT STANDARD
38276 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
38277 Remove data for GNAT STANDARD
38278 Remove options and documentation for -gnatwb/-gnatwB: these warning
38279 options no longer exist.
38281 2003-11-13 Ed Falis <falis@gnat.com>
38283 * 5zthrini.adb: (Init_RTS): Made visible
38286 (Register): Removed unnecessary call to taskVarGet that checked whether
38287 an ATSD was already set as a task var for the argument thread.
38290 Updated comment to reflect that this is a VxWorks version
38291 Added context clause for System.Threads.Initialization
38292 Added call to System.Threads.Initialization.Init_RTS
38294 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
38297 (Init_RTS): New procedure, for the initialization of the run-time lib.
38300 Remove dependancy on System.Init, so that this file can be used in the
38301 AE653 sequential run-time lib.
38303 2003-11-13 Robert Dewar <dewar@gnat.com>
38305 * bindgen.adb: Minor reformatting
38307 2003-11-13 Ed Schonberg <schonberg@gnat.com>
38310 (Apply_Discriminant_Check): Do no apply check if target type is derived
38311 from source type with no applicable constraint.
38314 (Ensure_System_Dependency): Do not apply the style checks that may have
38315 been specified for the main unit.
38318 (Find_Selected_Component): Further improvement in error message, with
38322 (Resolve): Handle properly the case of an illegal overloaded protected
38325 2003-11-13 Javier Miranda <miranda@gnat.com>
38328 (Has_Default_Init_Comps): New function to check the presence of
38329 default initialization in an aggregate.
38330 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
38331 extension aggregate of a limited record. In addition, a new formal
38332 was added to do not initialize the record controller (if any) during
38333 this recursive expansion of ancestors.
38334 (Init_Controller): Add support for limited record components.
38335 (Expand_Record_Aggregate): In case of default initialized components
38336 convert the aggregate into a set of assignments.
38338 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
38339 describing the new syntax.
38340 Nothing else needed to be done because this subprogram delegates part of
38341 its work to P_Precord_Or_Array_Component_Association.
38342 (P_Record_Or_Array_Component_Association): Give support to the new
38343 syntax for default initialization of components.
38346 (Resolve_Aggregate): Relax the strictness of the frontend in case of
38347 limited aggregates.
38348 (Resolve_Record_Aggregate): Give support to default initialized
38350 (Get_Value): In case of default initialized components, duplicate
38351 the corresponding default expression (from the record type
38352 declaration). In case of default initialization in the *others*
38353 choice, do not check that all components have the same type.
38354 (Resolve_Extension_Aggregate): Give support to limited extension
38358 (Check_Initialization): Relax the strictness of the front-end in case
38359 of aggregate and extension aggregates. This test is now done in
38360 Get_Value in a per-component manner.
38362 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
38363 expression corresponds to a limited aggregate. This test is now done
38366 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
38369 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
38370 present in an N_Component_Association node
38372 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
38374 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
38375 type-conformant entry only if they are homographs.
38377 2003-11-13 GNAT Script <nobody@gnat.com>
38379 * Make-lang.in: Makefile automatically updated
38381 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38383 * adadecode.c: Use <> form of include for ctype.h.
38384 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
38386 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38388 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
38389 Works around PR middle-end/6552.
38391 2003-11-10 Ed Falis <falis@gnat.com>
38393 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
38395 * 5zinit.adb: (Install_Handler): Moved back to spec
38396 (Install_Signal_Handlers): Deleted
38398 * 5zthrini.adb: Added context clause for System.Storage_Elements
38399 (Register): Only handles creation of taskVar; initialization moved to
38401 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
38402 Added declaration of environment task secondary stack and
38405 * s-thread.adb: Implement bodies for thread body processing
38408 Added comment identifying supported targets for pragma Thread_Body.
38410 2003-11-10 Pascal Obry <obry@gnat.com>
38412 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
38416 (Open): Properly check for string length before copying into the buffer.
38417 Raises Name_Error if buffer is too small. Note that this was a potential
38420 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
38422 * bindgen.adb, comperr.adb: Code clean ups.
38423 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
38425 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
38427 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
38429 2003-11-10 Vincent Celier <celier@gnat.com>
38432 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
38435 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
38437 * prj.adb: (Project_Empty): Add new boolean component Virtual
38439 * prj.ads: (Virtual_Prefix): New constant string
38440 (Project_Data): New boolean component Virtual
38442 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
38443 a library project is extended by a virtual extending project.
38446 Modifications throughout to implement extending-all project, including:
38447 (Virtual_Hash, Processed_Hash): New hash tables
38448 (Create_Virtual_Extending_Project): New procedure
38449 (Look_For_Virtual_Projects_For): New procedure
38452 (Process): After checking the projects, if main project is an
38453 extending-all project, set the object directory of all virtual extending
38454 project to the object directory of the main project.
38455 Adjust error message when a virtual extending project has the same
38456 object directory as an project being extended.
38457 (Recursive_Process): If name starts with the virtual prefix, set Virtual
38458 to True in the project data.
38461 (Default_Project_Node): Add new boolean component Extending_All
38462 (Is_Extending_All): New function
38463 (Set_Is_Extending_All): New procedure
38465 * prj-tree.ads: (Is_Extending_All): New function
38466 (Set_Is_Extending_All): New procedure
38467 (Project_Node_Record): New boolean component Extending_All
38469 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
38472 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
38474 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
38475 "gprcmd prefix" to define it.
38477 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
38479 * einfo.ads: Fix a typo and remove an extraneous word in comments.
38482 (Create_Dummy_Package_Unit): Set the scope of the entity for the
38483 created dummy package to Standard_Standard, not to itself, to
38484 defend other parts of the front-end against encoutering a cycle in
38488 (Analyze_With_Clause): When setting the entities for the successive
38489 N_Expanded_Names that constitute the name of a child unit, do not
38490 attempt to go further than Standard_Standard in the chain of scopes.
38491 This case arises from the placeholder units created by
38492 Create_Dummy_Package_Unit in the case of a with_clause for a
38493 nonexistent child unit.
38495 2003-11-10 Ed Schonberg <schonberg@gnat.com>
38498 (Expand_Thread_Body): Place subprogram on scope stack, so that new
38499 declarations are given the proper scope.
38502 (Check_Expr_Constants): Reject an expression that contains a constant
38503 created during expansion, and that appears after the object to which
38504 the address clause applies.
38506 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
38507 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
38508 that uses 'Range of a function call with controlled components, so
38509 that the function result can be finalized before starting the loop.
38512 (Find_Selected_Component): Improve error message when prefix is
38513 an implicit dereference of an incomplete type.
38515 2003-11-10 Robert Dewar <dewar@gnat.com>
38517 * opt.ads: New Print_Standard flag for -gnatS switch
38519 * sem_ch13.adb: Remove some additional checks for unaligned arrays
38521 * cstand.adb (Create_Standard): Print out package standard if -gnatS
38524 * debug.adb: Update doc for -gnatds to discuss relationship with new
38527 * sinfo.adb: Add new field Entity_Or_Associated_Node
38529 * sinfo.ads: Add new field Entity_Or_Associated_Node
38530 Update documentation for Associated_Node and Entity fields to clarify
38531 relationship and usage.
38534 (Write_Id): Properly process Associated_Node field in generic template
38537 Recognize new -gnatS switch for printing package Standard
38538 This replaces gnatpsta
38541 Add line for new -gnatS switch for printing package Standard
38542 This replaces gnatpsta
38544 2003-11-10 Andreas Jaeger <aj@suse.de>
38546 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
38549 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
38551 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
38554 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
38556 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
38559 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
38561 * sysdep.c: Add handling of cygwin.
38563 2003-11-10 GNAT Script <nobody@gnat.com>
38565 * Make-lang.in: Makefile automatically updated
38567 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
38570 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
38571 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
38572 Replace GNAT_ROOT by GCC_ROOT.
38574 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
38576 2003-11-06 Zack Weinberg <zack@codesourcery.com>
38578 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
38579 and update for changed meaning of GET_MODE_BITSIZE.
38581 2003-11-04 Doug Rupp <rupp@gnat.com>
38583 * sysdep.c: Problem discovered during IA64 VMS port.
38584 [VMS] #include <unixio.h> to get proper prototypes.
38587 Issues discovered/problems fixed during IA64 VMS port.
38588 [VMS] #define _POSIX_EXIT for proper semantics.
38589 [VMS] #include <unixio.h> for proper prototypes.
38590 [VMS] (fork): #define IA64 version.
38591 (__gnat_os_exit): Remove unnecessary VMS specific code.
38593 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38595 Part of PR ada/12806
38596 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
38600 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
38603 * targtyps.c, decl.c, misc.c,
38604 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
38605 routines to work around change in FP sizing semantics in GCC.
38608 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
38610 * gigi.h: (enumerate_modes): New function.
38612 * Make-lang.in: (ada/misc.o): Add real.h.
38614 * misc.c: (enumerate_modes): New function.
38616 2003-11-04 Robert Dewar <dewar@gnat.com>
38618 * 3vtrasym.adb: Minor reformatting
38619 Use terminology encoded/decoded name, rather than C++ specific notion
38620 of mangling (this is the terminology used throughout GNAT).
38622 * einfo.h: Regenerated
38624 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
38627 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
38629 * par-prag.adb: Add dummy entry for Thread_Body pragma
38632 Add entries for System.Threads entities for thread body processing
38635 (Analyze_Pragma, Access attributes): Check these are not applied to a
38636 thread body, since this is not permitted
38638 * sem_prag.adb: Add processing for Thread_Body pragma.
38642 (Resolve_Call): Check for incorrect attempt to call a thread body
38643 procedure with a direct call.
38645 * snames.ads, snames.adb: Add entry for Thread_Body pragma
38646 Add names associated with thread body expansion
38648 * snames.h: Add entry for Thread_Body pragma
38650 * s-thread.adb: Add entries for thread body processing
38651 These are dummy bodies so far
38653 * s-thread.ads: Add documentation on thread body handling.
38654 Add entries for thread body processing.
38656 2003-11-04 Javier Miranda <miranda@gnat.com>
38659 (Build_Limited_Views): Return after posting an error in case of limited
38660 with_clause on subprograms, generics, instances or generic renamings
38661 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
38662 on subprograms, generics, instances or generic renamings
38664 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
38666 * raise.c (setup_to_install): Correct mistake in last revision; two
38667 arguments out of order.
38669 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
38670 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
38671 notice, missed in previous change.
38672 Remove trailing blanks and other style errors introduced in previous
38675 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
38677 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
38678 rid of the wrapper for a LJM type, ensuring we don't do that if the
38679 field is addressable. This avoids potential low level type view
38680 mismatches later on, for instance in a by-reference argument passing
38683 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38685 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
38686 aligned at byte boundary.
38688 2003-11-04 Joel Brobecker <brobecker@gnat.com>
38690 * decl.c (components_to_record): Do not delete the empty variants from
38691 the end of the union type.
38693 2003-11-04 Ed Schonberg <schonberg@gnat.com>
38695 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
38696 operation for a derived type, an explicit declaration may use a local
38697 subtype of Boolean.
38699 2003-11-04 Vincent Celier <celier@gnat.com>
38701 * make.adb (Gnatmake): Allow main sources on the command line with a
38702 library project when it is only for compilation (no binding or
38705 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38707 * Makefile.in: Remove many duplicate variables.
38709 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
38711 * Make-lang.in (dvi): Move targets to $(docobjdir).
38712 (gnat_ug_vms.dvi): Simplify rule and adjust target.
38713 (gnat_ug_wnt.dvi): Likewise.
38714 (gnat_ug_unx.dvi): Likewise.
38715 (gnat_ug_vxw.dvi): Likewise.
38716 (gnat_rm.dvi): Likewise.
38717 (gnat-style.dvi): Likewise.
38719 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
38721 * gigi.h: Missed commit from update for C90.
38723 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
38725 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
38727 2003-10-31 Andreas Schwab <schwab@suse.de>
38729 * raise.c (get_action_description_for): Fix typo in last change.
38731 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
38734 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
38735 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
38737 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
38739 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
38740 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
38741 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
38742 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
38743 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
38745 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
38748 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
38749 numbers when symbol name is too long.
38751 2003-10-30 Ed Falis <falis@gnat.com>
38753 * g-signal.ads, g-signal.adb: New files
38755 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
38757 * Makefile.rtl: Introduce GNAT.Signals
38759 2003-10-30 Robert Dewar <dewar@gnat.com>
38761 * freeze.adb: Minor reformatting
38763 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
38765 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
38766 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
38767 New handling of Id_Check parameter to improve recognition of keywords
38768 used as identifiers.
38769 Update copyright notice to include 2003
38771 2003-10-29 Robert Dewar <dewar@gnat.com>
38773 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
38774 sem_ch10.adb: Minor reformatting
38776 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
38777 (Expand_Assign_Record): Test right hand side for bit unaligned as well
38779 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
38781 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
38782 Support for TBK$SYMBOLIZE-based symbolic traceback.
38784 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
38787 Revert previous change, that did not work well when pragma No_Run_Time
38788 was used in conjunction with a run-time other than ZFP.
38790 2003-10-29 Vincent Celier <celier@gnat.com>
38793 (Gnatmake): When there are no Ada mains in attribute Main, disable the
38794 bind and link steps only is switch -z is not used.
38796 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
38798 * Makefile.generic: Remove duplicated setting of CC.
38800 * Makefile.prolog: Set CC to gcc by default, to override make's
38803 * einfo.h: Regenerated.
38805 2003-10-29 Ed Schonberg <schonberg@gnat.com>
38807 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
38808 current body, after compiling subunit.
38810 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
38811 when in deleted code, because gigi needs properly ordered freeze
38812 actions to annotate types.
38814 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
38815 prevent the premature freezing of record type that contains
38816 subcomponents with a private type that does not yet have a completion.
38818 2003-10-29 Javier Miranda <miranda@gnat.com>
38821 (Analyze_Package_Instantiation): Check that instances can not be used in
38822 limited with_clauses.
38825 (Analyze_Package_Renaming): Check that limited withed packages cannot
38826 be renamed. Improve text on error messages related to limited
38829 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
38831 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
38832 Update copyright notice.
38834 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
38835 (Install_Limited_Context_Clauses): New subprogram that isolates all the
38836 checks required for limited context_clauses and installs the limited
38838 (Install_Limited_Withed_Unit): Complete its documentation.
38839 (Analyze_Context): Check that limited with_clauses are only allowed in
38841 (Install_Context): Call Install_Limited_Context_Clauses after the
38842 parents have been installed.
38843 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
38844 package as 'From_With_Type'; this mark indicates that the limited view
38845 is installed. Used to check bad usages of limited with_clauses.
38846 (Build_Limited_Views): Do not add shadow entities to the scope's list
38847 of entities. Do not add real entities to the Non_Limited_Views chain.
38848 Improve error notification.
38849 (Remove_Context_Clauses): Remove context clauses in two phases:
38850 limited views first and regular views later (to maintain the
38852 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
38853 its visible entities.
38855 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
38857 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
38858 with any type that Is_Fixed_Point_Type.
38860 * sinfo.ads: Fix documentation for Associated_Node attribute.
38862 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
38864 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
38865 both '-gnatc' and '-gnatt' are specified.
38867 * atree.adb (Initialize): Add initialization for Node_Count (set to
38870 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38872 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
38873 do not consider as Pure.
38875 Part of implementation of function-at-a-time:
38877 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
38878 (tree_transform): Add new argument to build_component_ref.
38879 (tree_transform, case N_Assignment_Statement): Make and return an
38881 (tree_transform): If result IS_STMT, set flags and return it.
38882 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
38884 * utils2.c (build_simple_component_ref, build_component_ref): Add new
38886 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
38887 (build_allocator): Likewise.
38889 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
38890 Add new arg to build_component_ref.
38891 (maybe_unconstrained_array, unchecked_convert): Likewise.
38893 * ada-tree.def (EXPR_STMT): New code.
38895 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
38897 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
38898 build_component_ref calls.
38900 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
38902 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
38903 (build_component_ref): Add new argument, NO_FOLD_P.
38905 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
38907 * Makefile.generic: Add missing substitution on object_deps handling.
38910 * Make-lang.in (check-ada): Enable ACATS test suite.
38912 2003-10-27 Robert Dewar <dewar@gnat.com>
38915 (Freeze_Array_Type): We do not need an initialization routine for types
38916 derived from String or Wide_String. They should be treated the same
38917 as String and Wide_String themselves. This caused problems with the
38918 use of Initialize_Scalars.
38921 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
38922 composites. This allows use of component clauses that are not byte
38926 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
38927 is an attempt to pack an array of atomic objects.
38929 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
38931 2003-10-27 Pascal Obry <obry@gnat.com>
38934 (Basename): Check for drive letters in a pathname only on DOS based OS.
38936 2003-10-27 Vincent Celier <celier@gnat.com>
38939 (Gnatmake): When unable to change dir to the object dir, display the
38940 content of the parent dir of the obj dir, to try to understand why this
38943 2003-10-27 GNAT Script <nobody@gnat.com>
38945 * Make-lang.in: Makefile automatically updated
38947 2003-10-27 Ed Schonberg <schonberg@gnat.com>
38950 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
38951 should not be done in Save/Restore_Scope_Stack, because it is performed
38955 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
38956 whether use clauses should be removed/restored.
38959 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
38960 whether use clauses should be removed/restored.
38962 2003-10-26 Andreas Jaeger <aj@suse.de>
38964 * Makefile.in: Remove duplicated lines.
38966 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
38968 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
38969 minimize the differences with ACT tree.
38971 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
38972 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
38973 Gnatvsn.Gnat_Static_Version_String to reduce differences between
38976 2003-10-24 Pascal Obry <obry@gnat.com>
38979 * adadecode.c (ostrcpy): New function.
38980 (__gnat_decode): Use ostrcpy of strcpy.
38981 (has_prefix): Set first parameter a const.
38982 (has_suffix): Set first parameter a const.
38983 Update copyright notice. Fix source name in header.
38984 Removes a trailing space.
38986 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
38989 Remove the test against being in No_Run_Time_Mode before generating a
38990 call to Register_Tag. It is redundant with the test against the
38991 availability of the function Register_Tag.
38993 2003-10-24 Vincent Celier <celier@gnat.com>
38995 * g-catiio.adb: (Month_Name): Correct spelling of February
38997 * make.adb: (Mains): New package
38998 (Initialize): Call Mains.Delete
38999 (Gnatmake): Check that each main on the command line is a source of a
39000 project file and, if there are several mains, each of them is a source
39001 of the same project file.
39002 (Gnatmake): When a foreign language is specified in attribute Languages,
39003 no main is specified on the command line and attribute Mains is not
39004 empty, only build the Ada main. If there is no Ada main, just compile
39005 the Ada sources and their closure.
39006 (Gnatmake): If a main is specified on the command line with directory
39007 information, check that the source exists and, if it does, that the path
39008 is the actual path of a source of a project.
39011 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
39012 Full_Path is True, return the full path instead of the simple file name.
39013 (Project_Of): New function
39016 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
39017 defaulted to False.
39018 (Project_Of): New function
39020 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
39022 * Makefile.generic:
39023 Ensure objects of main project are always checked and rebuilt if needed.
39024 Set CC to gcc by default.
39025 Prepare new handling of link by creating a global archive (not activated
39028 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
39029 stringt.h: Update copyright notice. Remove trailing blanks.
39030 Fix source name in header.
39032 2003-10-24 Robert Dewar <dewar@gnat.com>
39034 * sem_ch12.adb: Minor reformatting
39037 Minor reformatting (including new function return style throughout)
39040 Minor reformatting (including new function return style throughout)
39042 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
39044 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
39045 stringt.h: Update copyright notice. Remove trailing blanks.
39046 Fix source name in header.
39048 2003-10-24 GNAT Script <nobody@gnat.com>
39050 * Make-lang.in: Makefile automatically updated
39052 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
39054 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
39055 stringt.h: Convert to ISO C90 declarations and definitions.
39057 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
39060 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
39061 External_Tag attribute definition clauses.
39063 2003-10-23 Ed Schonberg <schonberg@gnat.com>
39066 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
39067 child unit, generate a fully qualified name to avoid spurious errors
39068 when the context contains renamings of different child units with
39069 the same simple name.
39071 * exp_dbug.ads: Add documentation on name qualification for renamings
39074 2003-10-23 Robert Dewar <dewar@gnat.com>
39076 * g-regpat.ads, g-regpat.adb: Minor reformatting
39078 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
39080 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
39082 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39084 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
39087 * urealp.h: (Machine): Update to proper definition.
39089 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
39091 * init.c, adaint.c: Minor reformatting.
39093 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
39095 * adaint.c (w32_epoch_offset): Define static const at file level.
39096 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
39097 rather than t_create, t_access in call to GetFileTime. Use union
39098 to convert between FILETIME and unsigned long long.
39099 (__gnat_file_time_name): Test for invalid file handle.
39100 (__gnat_set_filetime_name): Support win32 targets using
39101 w32api SetFileTime.
39103 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
39105 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
39107 * ctrl_c.c (__gnat_int_handler): Remove declaration.
39109 * decl.c (creat_concat_name): Const-ify prefix.
39111 * adaint.c: Include ctype.h if __MINGW32__.
39112 (__gnat_readlink): Mark arguments as possibly unused.
39113 (__gnat_symlink): Likewise.
39114 (__gnat_is_symbolic_link): Likewise.
39115 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
39117 (__gnat_file_time_name): Don't declare struct stat statbuf when
39119 (__gnat_is_absolute_path): Add parenthesis around condition of
39120 'if' statement to avoid warning.
39121 (__gnat_plist_init): Specify void as parameter.
39122 (plist_enter): Likewise.
39123 (plist_leave): Likewise.
39124 (remove_handle): Make static. Initialize prev.
39126 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
39129 * Makefile.in: Disable build of gnatpsta.
39130 * cstreams.c (__gnat_full_name): Minor improvements and clean up
39131 of previous change.
39133 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
39135 * tracebak.c (MAX): Avoid redefinition warning.
39137 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
39138 Change msg to const char *.
39139 (__gnat_install_handler): Remove ss, unused.
39140 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
39142 * cstreams.c (__gnat_full_name): Declare p only when used.
39143 (__gnat_full_name) [sgi] Return buffer.
39145 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
39147 * mingw32.h: New file.
39148 * gnat_wrapper.adb: New file.
39150 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
39152 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
39153 string match a pre compiled regular expression (the corresponding
39154 version of the function working on a raw regular expression)
39155 Fix typos in various comments
39156 Update copyright notice in spec
39158 2003-10-21 Gary Dismukes <dismukes@gnat.com>
39161 (Component_Needs_Simple_Initialization): Return False when the type is a
39162 packed bit array. Revise spec comments to document this case.
39165 (Expand_Pragma_Import): Set any expression on the imported object to
39166 empty to avoid initializing imported objects (in particular this
39167 covers the case of zero-initialization of bit arrays).
39168 Update copyright notice.
39170 2003-10-21 Ed Schonberg <schonberg@gnat.com>
39173 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
39174 a subunit is missing.
39175 (Instantiate_Subprogram_Body): If body of function is missing, set type
39176 of return expression explicitly in dummy body, to prevent cascaded
39177 errors when a subunit is missing.
39181 (Access_Subprogram_Declaration): Verify that return type is valid.
39185 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
39190 (Corresponding_Discriminant): If the scope of the discriminant is a
39191 private type without discriminant, use its full view.
39194 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
39196 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
39197 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
39198 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
39199 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
39200 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
39201 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
39202 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
39203 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
39204 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
39205 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
39206 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
39207 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
39208 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
39209 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
39210 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
39211 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
39212 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
39213 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
39214 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
39215 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
39216 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
39217 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
39218 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
39219 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
39220 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
39221 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
39222 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
39223 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
39224 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
39225 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
39226 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
39227 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
39228 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
39229 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
39230 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
39231 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
39232 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
39233 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
39234 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
39235 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
39236 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
39237 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
39238 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
39239 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
39240 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
39241 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
39242 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
39243 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
39244 vms_conv.ads, vms_conv.adb, vms_data.ads,
39245 vxaddr2line.adb: Files added. Merge with ACT tree.
39247 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
39248 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
39249 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
39250 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
39251 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
39252 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
39253 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
39254 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
39255 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
39256 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
39258 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
39259 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
39260 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
39261 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
39262 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
39263 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
39264 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
39265 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
39266 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
39267 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
39268 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
39269 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
39270 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
39271 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
39272 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
39273 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
39274 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
39275 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
39276 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
39277 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
39278 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
39279 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
39280 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
39281 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
39282 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
39283 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
39284 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
39285 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
39286 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
39287 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
39288 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
39289 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
39290 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
39291 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
39292 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
39293 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
39294 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
39295 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
39296 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
39297 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
39298 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
39299 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
39300 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
39301 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
39302 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
39303 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
39304 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
39305 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
39306 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
39307 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
39308 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
39309 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
39310 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
39311 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
39312 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
39313 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
39314 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
39315 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
39316 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
39317 checks.adb, checks.ads, cio.c, comperr.adb,
39318 comperr.ads, csets.adb, cstand.adb, cstreams.c,
39319 debug_a.adb, debug_a.ads, debug.adb, decl.c,
39320 einfo.adb, einfo.ads, errout.adb, errout.ads,
39321 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
39322 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
39323 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
39324 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
39325 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
39326 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
39327 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
39328 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
39329 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
39330 fe.h, fmap.adb, fmap.ads, fname.adb,
39331 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
39332 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
39333 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
39334 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
39335 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
39336 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
39337 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
39338 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
39339 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
39340 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
39341 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
39342 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
39343 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
39344 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
39345 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
39346 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
39347 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
39348 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
39349 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
39350 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
39351 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
39352 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
39353 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
39354 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
39355 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
39356 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
39357 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
39358 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
39359 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
39360 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
39361 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
39362 layout.adb, lib.adb, lib.ads, lib-list.adb,
39363 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
39364 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
39365 link.c, live.adb, make.adb, make.ads,
39366 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
39367 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
39368 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
39369 misc.c, mkdir.c, mlib.adb, mlib.ads,
39370 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
39371 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
39372 namet.adb, namet.ads, namet.h, nlists.ads,
39373 nlists.h, nmake.adt, opt.adb, opt.ads,
39374 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
39375 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
39376 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
39377 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
39378 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
39379 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
39380 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
39381 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
39382 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
39383 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
39384 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
39385 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
39386 prj-util.adb, prj-util.ads, raise.c, raise.h,
39387 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
39388 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
39389 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
39390 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
39391 scans.ads, scn.adb, scn.ads, s-crc32.adb,
39392 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
39393 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
39394 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
39395 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
39396 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
39397 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
39398 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
39399 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
39400 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
39401 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
39402 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
39403 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
39404 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
39405 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
39406 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
39407 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
39408 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
39409 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
39410 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
39411 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
39412 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
39413 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
39414 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
39415 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
39416 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
39417 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
39418 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
39419 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
39420 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
39421 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
39422 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
39423 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
39424 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
39425 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
39426 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
39427 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
39428 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
39429 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
39430 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
39431 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
39432 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
39433 stringt.adb, stringt.ads, stringt.h, style.ads,
39434 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
39435 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
39436 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
39437 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
39438 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
39439 table.adb, table.ads, targparm.adb, targparm.ads,
39440 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
39441 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
39442 ttypes.ads, types.ads, types.h, uintp.adb,
39443 uintp.ads, uintp.h, uname.adb, urealp.adb,
39444 urealp.ads, urealp.h, usage.adb, utils2.c,
39445 utils.c, validsw.adb, validsw.ads, widechar.adb,
39446 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
39447 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
39448 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
39449 gnatvsn.ads: Merge with ACT tree.
39451 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
39453 2003-10-20 Mark Mitchell <mark@codesourcery.com>
39455 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
39456 (gnat_ug_vmx.info): Likewise.
39457 (gnat_ug_vxw.info): Likewise.
39458 (gnat_ug_wnt.info): Likewise.
39459 (gnat_rm.info): Likewise.
39460 (gnat-style.info): Likewise.
39462 * Make-lang.in (ada.install-info): Remove target.
39463 (info): New target.
39464 (install-info): Likewise.
39465 (gnat_ug_unx.info): Simplify rule.
39466 (gnat_ug_vmx.info): Likewise.
39467 (gnat_ug_vxw.info): Likewise.
39468 (gnat_ug_wnt.info): Likewise.
39469 (gnat_rm.info): Likewise.
39470 (gnat-style.info): Likewise.
39472 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
39474 * Make-lang.in: Replace uses of $(target_alias) with
39475 $(target_noncanonical).
39476 * ada/Makefile.in: Remove unused mention of $(target_alias).
39478 2003-10-06 Mark Mitchell <mark@codesourcery.com>
39480 * Make-lang.in (ada.info): Replace with ...
39482 (ada.dvi): Replace with ...
39485 2003-09-29 Zack Weinberg <zack@codesourcery.com>
39487 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
39488 initialize dconstp5 and dconstmp5.
39490 2003-09-28 Richard Henderson <rth@redhat.com>
39492 * trans.c (tree_transform): Update call to expand_asm_operands.
39494 2003-09-21 Richard Henderson <rth@redhat.com>
39496 * trans.c, utils.c: Revert.
39498 2003-09-21 Richard Henderson <rth@redhat.com>
39500 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
39503 2003-09-04 Michael Matz <matz@suse.de>
39505 * misc.c: Include "target.h".
39506 * Make-lang.in (misc.o): Add dependency on target.h.
39508 2003-09-03 DJ Delorie <dj@redhat.com>
39510 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
39513 2003-08-30 Zack Weinberg <zack@codesourcery.com>
39515 * Makefile.in: Update substitutions to match changes to
39516 configure. Use include directives instead of @-insertions
39517 to read in host and target fragments. Add a rule to
39518 regenerate ada/Makefile.
39520 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
39522 * lang-options.h: Remove.
39523 * lang.opt: Add help text.
39525 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
39527 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
39530 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
39532 * misc.c (gnat_handle_option): Don't handle filenames.
39534 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
39536 * Make-lang.in: Replace PWD with PWD_COMMAND.
39537 * Makefile.adalib: Likewise.
39538 * Makefile.in: Likewise.
39540 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
39542 * misc.c (gnat_argv): Revert last change.
39543 (gnat_handle_option, gnat_init_options): Copy arguments.
39545 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
39547 * misc.c (gnat_argv): Make const.
39549 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
39551 * misc.c (save_argc, save_argv): Keep non-static!
39553 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
39555 * misc.c (save_argc, save_argv): Make static.
39556 (gnat_init_options): New prototype.
39557 (gnat_init_options): Update.
39559 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
39561 * gnat_ug.texi: Remove unlikely characters from @vars.
39562 * gnat_ug_vms.texi: Regenerate.
39564 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
39566 * misc.c (record_code_position): Adjust emit_note call.
39568 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
39570 * misc.c (gnat_handle_option): Don't check for missing arguments.
39572 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
39574 * utils.c (end_subprog_body): Adjust expand_function_end call.
39576 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
39578 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
39581 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
39583 * lang.opt: Declare Ada.
39584 * misc.c (gnat_init_options): Update.
39586 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
39588 * utils.c (begin_subprog_body): Adjust init_function_start call.
39590 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
39592 * Make-lang.in: Update to use options.c and options.h.
39593 * misc.c: Include options.h not aoptions.h.
39594 (gnat_handle_option): Abort on unrecognized switch.
39595 (gnat_init_options): Request Ada switches.
39597 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
39599 * lang.opt: Add -Wall.
39600 * misc.c (gnat_handle_option): Handle it.
39602 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
39604 * misc.c (gnat_handle_option): Fix warnings.
39606 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
39608 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
39610 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
39612 * Make-lang.in: Update to handle command-line options.
39613 * lang.opt: New file.
39614 * misc.c: Include aoptions.h.
39615 (cl_options_count, cl_options): Remove.
39616 (gnat_handle_option): New.
39617 (gnat_decode_option): Remove.
39618 (LANG_HOOKS_DECODE_OPTION): Remove.
39619 (LANG_HOOKS_HANDLE_OPTION): Override.
39621 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
39623 * init.c, misc.c, trans.c, utils.c: Remove dead code.
39625 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
39627 * Makefile.in: Replace "host_canonical" with "host" for autoconf
39630 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
39632 * Make-lang.in: Update.
39633 * misc.c: Include opts.h. Define cl_options_count and cl_options.
39635 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
39637 * misc.c (gnat_init_options): Update.
39639 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
39641 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
39642 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
39643 __attribute__ ((__unused__)).
39645 2003-06-05 Jan Hubicka <jh@suse.cz>
39647 * Make-lang.in: Add support for stageprofile and stagefeedback
39649 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
39651 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
39652 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
39654 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
39656 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
39657 Remove non-VMS directive.
39658 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
39660 (Examples of gnatls Usage): Remove VMS alternative.
39662 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
39665 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
39666 and turn ZCX_By_Default back to False since the underlying support
39667 is not quite there yet.
39669 2003-06-01 Andreas Jaeger <aj@suse.de>
39671 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
39672 and ROUND_TYPE_SIZE_UNIT.
39674 2003-05-22 Geert Bosch <bosch@gnat.com>
39676 * gnat_rm.texi : Remove reference to Ada Core Technologies.
39678 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
39680 * trans.c (tree_transform): Use location_t and input_location
39682 (build_unit_elab): Likewise.
39683 * utils.c (create_label_decl): Likewise.
39685 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
39687 * trans.c (tree_transform, build_unit_elab,
39688 set_lineno): Rename lineno to input_line.
39689 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
39690 end_subprog_body): Likewise.
39691 * utils2.c (build_call_raise): Likewise.
39693 2003-05-01 Laurent Guerby <guerby@acm.org>
39696 * 5iosinte.ads: Increase pthread_cond_t size to match recent
39697 LinuxThread and NPTL version, merge from ACT.
39699 2003-04-28 Zack Weinberg <zack@codesourcery.com>
39701 * utils.c (convert): No need to clear TREE_CST_RTL.
39703 2003-04-23 Geert Bosch <bosch@gnat.com>
39705 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
39706 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
39707 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
39708 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
39709 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
39710 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
39711 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
39712 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
39713 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
39714 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
39715 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
39716 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
39717 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
39718 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
39719 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
39720 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
39721 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
39722 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
39723 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
39724 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
39725 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
39726 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
39727 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
39728 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
39729 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
39730 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
39731 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
39732 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
39733 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
39734 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
39735 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
39736 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
39737 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
39738 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
39739 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
39740 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
39741 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
39742 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
39743 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
39744 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
39745 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
39746 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
39747 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
39748 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
39749 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
39750 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
39751 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
39752 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
39753 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
39754 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
39755 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
39756 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
39757 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
39758 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
39759 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
39760 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
39761 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
39762 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
39763 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
39764 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
39765 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
39766 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
39767 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
39768 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
39769 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
39770 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
39771 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
39772 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
39773 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
39774 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
39775 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
39776 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
39777 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
39778 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
39779 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
39780 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
39781 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
39782 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
39783 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
39784 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
39785 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
39786 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
39787 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
39788 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
39789 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
39790 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
39791 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
39792 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
39793 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
39794 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
39795 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
39796 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
39797 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
39798 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
39799 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
39800 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
39801 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
39802 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
39803 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
39804 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
39805 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
39806 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
39807 ali.adb, ali.ads, alloc.ads, argv.c,
39808 atree.adb, atree.ads, atree.h, aux-io.c,
39809 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
39810 binde.adb, binde.ads, binderr.adb, binderr.ads,
39811 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
39812 butil.adb, butil.ads, cal.c, calendar.ads,
39813 casing.adb, casing.ads, ceinfo.adb, checks.adb,
39814 checks.ads, cio.c, comperr.adb, comperr.ads,
39815 config-lang.in, csets.adb, csets.ads, csinfo.adb,
39816 cstand.adb, cstand.ads, cuintp.c, debug.adb,
39817 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
39818 dec-io.ads, dec.ads, deftarg.c, directio.ads,
39819 einfo.adb, einfo.ads, elists.adb, elists.ads,
39820 elists.h, errno.c, errout.adb, errout.ads,
39821 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
39822 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
39823 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
39824 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
39825 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
39826 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
39827 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
39828 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
39829 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
39830 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
39831 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
39832 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
39833 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
39834 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
39835 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
39836 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
39837 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
39838 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
39839 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
39840 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
39841 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
39842 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
39843 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
39844 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
39845 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
39846 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
39847 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
39848 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
39849 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
39850 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
39851 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
39852 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
39853 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
39854 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
39855 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
39856 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
39857 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
39858 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
39859 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
39860 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
39861 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
39862 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
39863 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
39864 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
39865 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
39866 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
39867 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
39868 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
39869 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
39870 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
39871 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
39872 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
39873 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
39874 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
39875 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
39876 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
39877 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
39878 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
39879 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
39880 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
39881 lib.adb, lib.ads, live.adb, live.ads,
39882 machcode.ads, make.adb, make.ads, makeusg.adb,
39883 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
39884 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
39885 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
39886 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
39887 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
39888 mlib.ads, namet.adb, namet.ads, nlists.adb,
39889 nlists.ads, opt.adb, opt.ads, osint-b.adb,
39890 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
39891 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
39892 osint.ads, output.adb, output.ads, par-ch10.adb,
39893 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
39894 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
39895 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
39896 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
39897 par-tchk.adb, par-util.adb, par.adb, par.ads,
39898 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
39899 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
39900 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
39901 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
39902 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
39903 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
39904 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
39905 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
39906 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
39907 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
39908 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
39909 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
39910 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
39911 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
39912 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
39913 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
39914 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
39915 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
39916 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
39917 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
39918 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
39919 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
39920 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
39921 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
39922 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
39923 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
39924 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
39925 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
39926 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
39927 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
39928 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
39929 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
39930 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
39931 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
39932 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
39933 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
39934 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
39935 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
39936 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
39937 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
39938 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
39939 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
39940 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
39941 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
39942 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
39943 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
39944 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
39945 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
39946 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
39947 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
39948 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
39949 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
39950 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
39951 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
39952 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
39953 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
39954 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
39955 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
39956 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
39957 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
39958 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
39959 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
39960 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
39961 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
39962 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
39963 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
39964 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
39965 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
39966 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
39967 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
39968 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
39969 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
39970 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
39971 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
39972 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
39973 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
39974 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
39975 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
39976 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
39977 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
39978 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
39979 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
39980 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
39981 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
39982 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
39983 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
39984 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
39985 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
39986 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
39987 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
39988 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
39989 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
39990 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
39991 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
39992 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
39993 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
39994 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
39995 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
39996 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
39997 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
39998 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
39999 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
40000 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
40001 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
40002 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
40003 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
40004 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
40005 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
40006 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
40007 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
40008 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
40009 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
40010 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
40011 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
40012 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
40013 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
40014 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
40015 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
40016 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
40017 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
40018 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
40019 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
40020 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
40021 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
40022 snames.ads, sprint.adb, sprint.ads, stand.adb,
40023 stand.ads, stringt.adb, stringt.ads, style.adb,
40024 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
40025 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
40026 switch-m.ads, switch.adb, switch.ads, system.ads,
40027 table.adb, table.ads, targparm.adb, targparm.ads,
40028 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
40029 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
40030 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
40031 ttypef.ads, ttypes.ads, types.adb, types.ads,
40032 uintp.adb, uintp.ads, uname.adb, uname.ads,
40033 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
40034 usage.adb, usage.ads, validsw.adb, validsw.ads,
40035 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
40036 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
40037 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
40038 formatting and other trivial changes from ACT.
40040 2003-04-12 Zack Weinberg <zack@codesourcery.com>
40042 * gigi.h, utils2.c (build_constructor):
40043 Rename gnat_build_constructor. Use build_constructor.
40044 * decl.c (gnat_to_gnu_entity)
40045 * trans.c (tree_transform, pos_to_constructor, extract_values)
40046 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
40047 (unchecked_convert)
40048 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
40049 (fill_vms_descriptor):
40052 2003-04-06 Zack Weinberg <zack@codesourcery.com>
40054 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
40055 * misc.c (gnat_tree_size): New function.
40056 (LANG_HOOKS_TREE_SIZE): Override.
40058 2003-04-03 Jason Merrill <jason@redhat.com>
40060 * misc.c (gnat_adjust_rli): #if 0.
40062 2003-03-31 Geert Bosch <bosch@gnat.com>
40065 * link.c : Fix misspelled "const" keyword
40067 2003-03-23 Mark Mitchell <mark@codesourcery.com>
40070 * utils2.c: Adjust calls to put_var_into_stack.
40072 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
40074 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
40076 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
40078 * misc.c (gnat_init): Update for new prototype.
40080 2003-03-05 Olivier Hainque <hainque@gnat.com>
40083 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
40084 warning, and fix return type for the IN_RTS && !SJLJ case.
40086 2003-03-04 Tom Tromey <tromey@redhat.com>
40088 * Make-lang.in (ada.tags): New target.
40090 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
40093 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
40094 wrapper, which name remains constant whatever underlying GCC
40097 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
40098 the stable interface needed for a-except.
40100 2003-03-02 Andreas Jaeger <aj@suse.de>
40102 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40103 gnat_ug_wnt.texi: Regenerate.
40105 2003-03-02 Laurent Guerby <guerby@acm.org>
40107 * Makefile.in (install-gnatlib): Match previous change there
40110 2003-02-28 Andreas Schwab <schwab@suse.de>
40112 * Make-lang.in (install-gnatlib): Change to ada directory before
40113 running make instead of using ada/Makefile directly.
40115 2003-02-18 Ben Elliston <bje@redhat.com>
40117 Part of PR ada/9406
40118 * gnat_ug.texi (Binder output file): Grammar fix.
40120 2003-02-18 Ben Elliston <bje@redhat.com>
40123 * 5qtaprop.adb (Sleep): Fix typo in comment.
40125 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
40127 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
40128 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40129 gnat_ug_wnt.texi: Regenerate.
40131 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
40133 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
40134 be created if necessary.
40135 (ada.install-common): Let $(DESTDIR)$(bindir) be created
40136 if necessary. Remove erroneous and redundant gnatchop
40137 installation commands. Test for gnatdll before attempting
40139 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
40140 and gnatdll from all plausible locations.
40142 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
40144 * utils2.c (build_unary_op): Don't check flag_volatile.
40145 * gnat_ug.texi: Remove -fvolatile from example.
40146 * gnat_ug_vxw.texi: Likewise.
40148 2003-01-29 Laurent Guerby <guerby@acm.org>
40151 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
40152 * Makefile.in: match previous change.
40153 * Make-lang.in: match previous change.
40155 2003-01-29 Joel Sherrill <joel@OARcorp.com>
40157 * 5rosinte.ads: Add SIGXCPU.
40158 * 5rtpopsp.adb: New file.
40159 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
40160 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
40161 specific file 5rtpopsp.adb.
40162 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
40163 is likely needed for all newlib targets.
40164 * init.c: Add RTEMS specific version of __gnat_initialize().
40166 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40168 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
40170 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40172 * init.c (__gnat_error_handler): Make msg const.
40174 * gmem.c (convert_addresses): Move declaration ...
40175 * adaint.h: ... here.
40176 * adaint.c (convert_addresses): Adapt addrs type to match
40179 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
40181 2003-01-24 Andreas Schwab <schwab@suse.de>
40183 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
40184 size_t to avoid warning.
40186 2003-01-21 Zack Weinberg <zack@codesourcery.com>
40188 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
40190 2003-01-09 Geoffrey Keating <geoffk@apple.com>
40192 * gnat_rm.texi: Remove RCS version number.
40194 * ada-tree.h (union lang_tree_node): Add chain_next option.
40196 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
40198 * Make-lang.in (ada.install-info, ada.install-common,
40199 ada.uninstall): Prepend $(DESTDIR) to the destination
40200 directory in all (un)installation commands.
40201 * Makefile.in (install-gnatlib, install-rts): Ditto.
40203 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
40205 * gnat_rm.texi, gnat_ug.texi: Use @copying.
40206 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40207 gnat_ug_wnt.texi: Regenerate.
40209 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
40211 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
40213 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
40214 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
40215 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
40216 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
40217 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
40218 $(srcdir)/doc/include/gcc-common.texi.
40220 2002-12-15 Geert Bosch <bosch@gnat.com>
40222 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
40224 2002-12-14 Geert Bosch <bosch@gnat.com>
40227 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
40228 case of a body created for a Renaming_As_Body, on which
40229 conformance checks are not performed.
40231 2002-11-30 Zack Weinberg <zack@codesourcery.com>
40233 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
40234 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
40235 not already included.
40236 * Make-lang.in: Update dependencies.
40238 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
40239 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
40240 solution to buffer overflow bug on GNU/Linux.
40242 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
40246 * bindgen.adb: Remove all references to Public_Version.
40247 * comperr.adb: Remove all references to Public_Version and
40248 GNATPRO_Version; correct bug reporting instructions.
40249 * comperr.ads: Change to match bug box.
40250 * gnatvsn.ads: Remove all references to Public version and
40253 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
40256 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
40260 * config-lang.in: Remove diff_excludes.
40262 2002-11-05 Graham Stott <graham.stott@btinternet.com>
40265 * trans.c (gnu_pending_elaboration_lists): New GC root.
40266 (build_unit_elab): Use..
40268 2002-10-30 Geert Bosch <bosch@gnat.com>
40271 * misc.c : Include optabs.h
40273 * Make-lang.in (misc.o): Add dependency on optabs.h
40275 2002-10-29 Geert Bosch <bosch@gnat.com>
40278 * Make-lang.in (gnatbind): Depend on CONFIG_H
40280 2002-10-29 Geert bosch <bosch@gnat.com>
40283 * misc.c: Unrevert misc.c (1.13)
40285 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
40287 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
40288 maintainership comments.
40290 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
40293 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
40294 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
40295 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
40296 7staprop.adb: Correct statements in comments about
40297 maintainership of GNAT.
40300 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
40301 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
40302 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
40303 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
40304 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
40305 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
40306 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
40307 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
40308 comments about maintainership of GNAT.
40310 PR ada/6919 (forward port of patch for PR ada/5904)
40311 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
40312 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
40313 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
40314 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
40315 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
40316 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
40317 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
40318 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
40319 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
40320 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
40321 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
40322 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
40323 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
40324 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
40325 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
40326 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
40327 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
40328 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
40329 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
40330 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
40331 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
40332 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
40333 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
40334 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
40335 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
40336 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
40337 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
40338 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
40339 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
40340 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
40341 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
40342 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
40343 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
40344 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
40345 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
40346 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
40347 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
40348 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
40349 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
40350 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
40351 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
40352 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
40353 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
40354 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
40355 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
40356 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
40357 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
40358 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
40359 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
40360 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
40361 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
40362 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
40363 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
40364 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
40365 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
40366 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
40367 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
40368 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
40369 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
40370 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
40371 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
40372 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
40373 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
40374 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
40375 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
40376 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
40377 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
40378 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
40379 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
40380 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
40381 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
40382 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
40383 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
40384 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
40385 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
40386 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
40387 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
40388 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
40389 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
40390 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
40391 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
40392 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
40393 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
40394 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
40395 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
40396 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
40397 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
40398 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
40399 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
40400 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
40401 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
40402 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
40403 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
40404 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
40405 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
40406 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
40407 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
40408 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
40409 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
40410 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
40411 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
40412 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
40413 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
40414 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
40415 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
40416 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
40417 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
40418 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
40419 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
40420 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
40421 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
40422 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
40423 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
40424 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
40425 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
40426 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
40427 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
40428 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
40429 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
40430 par-endh.adb par-labl.adb par-load.adb par-prag.adb
40431 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
40432 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
40433 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
40434 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
40435 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
40436 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
40437 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
40438 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
40439 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
40440 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
40441 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
40442 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
40443 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
40444 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
40445 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
40446 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
40447 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
40448 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
40449 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
40450 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
40451 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
40452 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
40453 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
40454 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
40455 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
40456 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
40457 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
40458 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
40459 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
40460 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
40461 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
40462 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
40463 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
40464 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
40465 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
40466 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
40467 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
40468 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
40469 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
40470 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
40471 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
40472 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
40473 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
40474 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
40475 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
40476 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
40477 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
40478 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
40479 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
40480 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
40481 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
40482 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
40483 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
40484 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
40485 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
40486 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
40487 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
40488 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
40489 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
40490 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
40491 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
40492 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
40493 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
40494 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
40495 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
40496 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
40497 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
40498 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
40499 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
40500 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
40501 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
40502 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
40503 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
40504 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
40505 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
40506 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
40507 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
40508 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
40509 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
40510 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
40511 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
40512 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
40513 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
40514 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
40515 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
40516 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
40517 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
40518 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
40519 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
40520 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
40521 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
40522 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
40523 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
40524 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
40525 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
40526 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
40527 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
40528 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
40529 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
40530 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
40531 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
40532 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
40533 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
40534 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
40535 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
40536 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
40537 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
40538 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
40539 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
40540 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
40541 stringt.ads stringt.h style.adb style.ads stylesw.adb
40542 stylesw.ads switch.adb switch.ads sysdep.c system.ads
40543 table.adb table.ads targparm.adb targparm.ads targtyps.c
40544 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
40545 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
40546 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
40547 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
40548 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
40549 usage.ads utils.c utils2.c validsw.adb validsw.ads
40550 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
40551 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
40552 xtreeprs.adb: Correct statements in comments about maintainership
40555 2002-09-23 Zack Weinberg <zack@codesourcery.com>
40557 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
40558 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
40559 * gnatvsn.ads: Gnat_Version_String is now a function.
40560 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
40561 copy the C version_string into a String and return it.
40562 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
40563 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
40564 Remove pragma Ident (Gnat_Version_String). If this was the
40565 sole use of package Gnatvsn, remove the with statement too.
40566 * gnat1drv.adb: Tweak -gnatv output.
40568 2002-09-17 Richard Henderson <rth@redhat.com>
40570 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
40571 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
40572 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
40573 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
40574 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
40575 and real_2expN instead of a loop.
40576 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
40577 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
40579 2002-08-25 Andre Leis <a.leis@gmx.net>
40580 David Billinghurst <David.Billinghurst@riotinto.com>
40582 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
40584 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40586 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
40587 Remove $(CONFIG_H) dependency.
40589 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
40591 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
40593 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
40595 * adadecode.c (ada_demangle): Use xstrdup in lieu of
40597 * misc.c (gnat_decode_option): Likewise.
40599 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
40601 * make.adb (Add_Switch): Make Generic_Position a procedure. The
40602 function approach did not work well because of a side effect (the
40603 function call could reallocate the table which was being indexed
40604 using its result). Fixes ada/4851. [RESURRECTED]
40606 2002-07-01 Roger Sayle <roger@eyesopen.com>
40608 * ada/utils.c (builtin_function): Accept an additional parameter.
40610 2002-06-28 Andreas Jaeger <aj@suse.de>
40613 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
40616 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
40618 * Makefile.in (SHELL): Set to @SHELL@.
40620 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
40622 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
40623 array size calculation.
40625 2002-06-04 Andreas Jaeger <aj@suse.de>
40627 * Make-lang.in (gnatbind): Readd rule that has been lost in last
40630 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
40632 Merge from pch-branch:
40634 * config-lang.in (gtfiles): Add ada-tree.h.
40635 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
40636 (SET_TYPE_MODULUS): New.
40637 (SET_TYPE_INDEX): New.
40638 (SET_TYPE_DIGITS_VALUE): New.
40639 (SET_TYPE_RM_SIZE): New.
40640 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
40641 (SET_TYPE_ADA_SIZE): New.
40642 (SET_TYPE_ACTUAL_BOUNDS): New.
40643 (SET_DECL_CONST_CORRESPONDING_VAR): New.
40644 (SET_DECL_ORIGINAL_FIELD): New.
40645 (TREE_LOOP_ID): Correct typo.
40646 * decl.c: Use new macros.
40647 * utils.c: Include debug.h, use new macros.
40648 * utils2.c: Use new macros.
40650 * ada-tree.h: Update all macros for new tree description.
40651 (struct tree_loop_id): New.
40652 (union lang_tree_node): New.
40653 (struct lang_decl): New.
40654 (struct lang_type): New.
40655 * misc.c (gnat_mark_tree): Delete.
40656 (LANG_HOOKS_MARK_TREE): Delete.
40657 * trans.c (tree_transform): No longer any need to cast
40660 * utils.c (struct language_function): New dummy structure.
40662 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
40663 (misc.o): Likewise.
40664 (utils.o): Likewise; also gtype-ada.h.
40665 * Make-lang.in (gnat1): Add dependency on s-gtype.
40666 (gnatbind): Add dependency on $(CONFIG_H).
40667 * utils.c: Correct last #include.
40668 (stuct e_stack): Remove unnecessary 'static'.
40669 (mark_e_stack): Remove unused prototype.
40671 * scn-nlit.adb: Remove whitespace after version number to
40672 keep lines under 80 chars.
40673 * snames.adb: Likewise.
40674 * treepr.ads: Likewise.
40676 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
40677 (misc.o): Likewise.
40678 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
40679 * config-lang.in (gtfiles): New.
40680 * decl.c: Use gengtype for roots.
40681 * gigi.h: Use gengtype for roots.
40682 * trans.c: Use gengtype for roots.
40683 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
40685 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
40687 * misc.c (gnat_init): Adjust setting of internal_error_function.
40689 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
40691 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
40692 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
40693 gnat_ug_wnt.texi: Regenerate.
40695 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
40697 * 5ntaprop.adb (with System.OS_Primitives): Remove.
40699 * cstreams.c (max_path_len): Move from here ...
40700 * adaint.c (__gnat_max_path_len): ... to here.
40701 * adaint.c (__gnat_max_path_len): Declare.
40702 * g-dirope.adb (Max_Path): Adjust.
40703 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
40704 * i-cstrea.ads (max_path_len): Adjust.
40705 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
40706 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
40708 * Makefile.in, Make-lang.in: Documentation is now built in
40709 Make-lang.in. Store Info and generated Texinfo files in the
40711 * gnat_ug.texi: Remove CVS keywords, correct version number.
40712 Set file name correctly.
40714 * gnat_ug_*.texi: Add.
40715 * .cvsignore: Ignore generated Texinfo files.
40717 2002-05-30 Zack Weinberg <zack@codesourcery.com>
40719 * ada.h: Add MI guard macro.
40720 (SUBTYPE): Define constants with an anonymous enum, not static
40722 (IN): Cast constants to appropriate type before use.
40724 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
40726 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
40729 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40731 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
40732 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
40733 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
40734 (ALL_ADA_CFLAGS): Likewise.
40735 (ADA_INCLUDES): Likewise.
40736 Adapt for new working dir.
40737 (GNATBIND): Use Makefile.in version.
40738 (.SUFFIXES): Copy from Makefile.in.
40739 (ada-warn): Define.
40740 (.adb.o, .ads.o): Copy from Makefile.in.
40741 Added $(OUTPUT_OPTION).
40742 (GNAT1_C_OBJS): Moved from Makefile.in.
40743 Prefix with ada subdir.
40744 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
40745 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
40746 Adapt for new working dir.
40747 (EXTRA_GNATBIND_OBJS): Likewise.
40748 (ADA_BACKEND): Moved from Makefile.in.
40749 Renamed to avoid conflict with global BACKEND.
40751 (TARGET_ADA_SRCS): Moved from Makefile.in.
40752 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
40754 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
40755 (ada_extra_files): Moved from Makefile.in.
40756 Prefix with ada subdir.
40757 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
40758 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
40759 (ada/nmake.ads): Likewise.
40760 (update-sources): Moved from Makefile.in.
40761 Prefix with ada subdir.
40762 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
40763 (ADA_TREE_H): Likewise.
40764 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
40765 (ada/memtrack.o): Likewise.
40766 (ada/adadecode.o): Likewise.
40767 Update dependencies.
40768 (ada/adaint.o): New.
40769 (ada/argv.o): Moved from Makefile.in.
40770 Prefix with ada subdir.
40771 Update dependencies.
40772 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
40773 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
40774 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
40775 Prefix with ada subdir.
40776 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
40777 (GNAT DEPENDENCIES): Regenerate.
40778 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
40779 toplevel Makefile.in.
40780 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
40781 (TARGET_ADA_SRCS): Removed.
40782 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
40783 (GNATBIND_OBJS): Likewise.
40784 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
40785 (BACKEND): Removed.
40786 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
40787 (TREE_H): Likewise.
40788 (ada_extra_files): Likewise.
40789 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
40790 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
40791 (update-sources): Likewise.
40792 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
40793 (ADA_TREE_H): Likewise.
40794 (adadecoce.o): Likewise.
40795 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
40796 (GNAT DEPENDENCIES): Likewise.
40798 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40800 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
40801 * Makefile.in: Likewise.
40803 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40805 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
40806 Restore $(CONFIG_H) and prefix.o dependencies.
40807 (ada.stage[1-4]): Depend on stage?-start.
40809 * Makefile.in (b_gnatb.c): Depend on interfac.o.
40811 2002-05-02 Jim Wilson <wilson@redhat.com>
40813 * utils.c (finish_record_type): Change record_size to record_type.
40815 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
40817 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
40818 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
40819 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
40821 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
40823 * misc.c (gnat_parse_file): Update.
40825 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
40827 * misc.c (gnat_init): Don't set lang_attribute_common.
40829 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
40831 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
40833 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
40835 * gnat_ug.texi: New file.
40837 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
40838 instead of gfdl.texi
40840 * xgnatug.adb, ug_words: New files.
40842 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
40843 gnat_rm and gnat-style manuals.
40845 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
40847 * gigi.h (incomplete_type_error): Remove.
40848 * utils.c (incomplete_type_error): Remove.
40850 2002-04-16 Mark Mitchell <mark@codesourcery.com>
40852 * trans.c (tree_transform): Add has_scope argument to
40853 expand_start_stmt_expr.
40855 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
40857 * gigi.h (truthvalue_conversion): Rename.
40858 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
40859 * trans.c (tree_transform): Update.
40860 * utils2.c (truthvalue_conversion): Rename, update.
40861 (build_binary_op, build_unary_op): Update.
40863 2002-04-04 Laurent Guerby <guerby@acm.org>
40865 * make.adb: Implement -margs, remove restriction about file name placement.
40866 * makeusg.adb: Documentation update.
40867 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
40868 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
40870 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
40872 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
40873 (builtin_function): Similarly.
40875 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
40877 * decl.c (gnat_to_gnu_entity): Update.
40878 * gigi.h (mark_addressable): Rename.
40879 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
40880 * trans.c (tree_transform): Update.
40881 * utils.c (create_var_decl): Update.
40882 * util2.c (build_binary_op, build_unary_op,
40883 fill_vms_descriptor): Update.
40884 (mark_addressable): Rename, update.
40886 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
40888 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
40890 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
40891 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
40892 * trans.c (tree_transform, convert_with_check): Update.
40893 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
40896 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
40898 * gigi.h (finish_incomplete_decl): Rename.
40899 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
40900 * utils.c (gnat_init_decl_processing): Don't set hook.
40901 (finish_incomplete_decl): Rename.
40903 2002-03-29 Andreas Schwab <schwab@suse.de>
40905 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
40908 2001-03-28 Robert Dewar <dewar@gnat.com>
40911 (Remove_Checks): New procedure
40914 (Remove_Checks): New procedure
40917 Use new Duplicate_Subexpr functions
40918 (Duplicate_Subexpr_No_Checks): New procedure
40919 (Duplicate_Subexpr_No_Checks_Orig): New procedure
40920 (Duplicate_Subexpr): Restore original form (checks duplicated)
40921 (Duplicate_Subexpr): Call Remove_Checks
40924 (Duplicate_Subexpr_No_Checks): New procedure
40925 (Duplicate_Subexpr_No_Checks_Orig): New procedure
40926 Add 2002 to copyright notice
40928 * sem_util.adb: Use new Duplicate_Subexpr functions
40931 (Eval_Indexed_Component): This is the place to call
40932 Constant_Array_Ref and to replace the value. We simply merge
40933 the code of this function in here, since it is now no longer
40934 used elsewhere. This fixes the problem of the back end not
40935 realizing we were clever enough to see that this was
40937 (Expr_Val): Remove call to Constant_Array_Ref
40938 (Expr_Rep_Val): Remove call to Constant_Array_Ref
40940 (Constant_Array_Ref): Deal with string literals (patch
40941 suggested by Zack Weinberg on the gcc list)
40943 2001-03-28 Ed Schonberg <schonber@gnat.com>
40945 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
40946 Duplicate_Subexpr_Move_Checks.
40948 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
40949 Duplicate_Subexpr_Move_Checks.
40951 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
40952 value of array exists before retrieving it (it may a private
40953 protected component in a function).
40955 2002-03-28 Geert Bosch <bosch@gnat.com>
40957 * prj-pp.adb : New file.
40959 * prj-pp.ads : New file.
40961 2002-03-28 Andreas Jaeger <aj@suse.de>
40963 * Makefile.in (stamp-sdefault): Fix path for Makefile.
40965 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
40967 * misc.c (gnat_expand_expr): Move prototype.
40969 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
40971 * misc.c (insert_default_attributes): Remove.
40973 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
40975 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
40976 (gnat_init): Don't set hook.
40977 (gnat_expand_expr): Fix prototype.
40979 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
40981 * misc.c (ggc_p): Remove.
40983 2002-03-27 Geert Bosch <bosch@gnat.com>
40985 * prj-makr.ads, prj-makr.adb : New files.
40987 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
40989 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
40990 (lang_mark_tree): Make static, rename.
40992 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
40994 * misc.c (maybe_build_cleanup): Remove.
40996 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
40998 * gigi.h (yyparse): Remove.
41000 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
41002 From Ben Brosgol <brosgol@gnat.com>
41003 * gnat_rm.texi: Sync with ACT version.
41005 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
41007 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
41008 (gnat_init): Remove old hook.
41010 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
41012 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
41013 (yyparse): Rename gnat_parse_file.
41015 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
41017 Delete all lines containing "$Revision:".
41018 * xeinfo.adb: Don't look for revision numbers.
41019 * xnmake.adb: Likewise.
41020 * xsinfo.adb: Likewise.
41021 * xsnames.adb: Likewise.
41022 * xtreeprs.adb: Likewise.
41024 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
41026 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
41027 gnat_tree_code_name): Delete.
41028 (tree_code_type, tree_code_length, tree_code_name): Define.
41029 (gnat_init): Don't try to copy into the various tree_code
41032 2002-03-11 Richard Henderson <rth@redhat.com>
41034 * Makefile.in (.NOTPARALLEL): Add fake tag.
41036 2002-03-07 Geert Bosch <bosch@gnat.com>
41038 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
41039 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
41040 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
41041 switch-m.adb, switch-m.ads : New files.
41043 2002-03-07 Geert Bosch <bosch@gnat.com>
41045 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
41046 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
41047 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
41048 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
41049 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
41050 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
41051 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
41052 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
41053 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
41054 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
41055 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
41056 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
41057 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
41058 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
41059 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
41060 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
41061 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
41062 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
41063 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
41064 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
41065 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
41066 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
41067 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
41068 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
41069 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
41070 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
41071 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
41072 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
41073 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
41074 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
41075 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
41076 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
41077 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
41078 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
41079 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
41080 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
41081 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
41082 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
41083 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
41084 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
41085 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
41086 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
41087 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
41088 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
41089 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
41090 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
41091 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
41092 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
41093 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
41094 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
41095 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
41096 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
41097 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
41098 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
41099 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
41100 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
41101 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
41102 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
41103 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
41104 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
41105 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
41106 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
41107 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
41108 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
41109 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
41110 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
41111 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
41112 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
41113 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
41114 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
41115 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
41116 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
41117 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
41118 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
41119 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
41120 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
41121 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
41122 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
41123 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
41124 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
41125 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
41126 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
41127 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
41128 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
41129 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
41130 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
41131 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
41132 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
41133 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
41134 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
41135 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
41136 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
41137 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
41138 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
41139 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
41140 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
41141 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
41143 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
41144 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
41145 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
41146 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
41148 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
41149 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
41151 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
41152 to mdll-fil.ad[bs] and mdll-util.ad[bs]
41154 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
41155 from mdllfile.ad[bs] and mdlltool.ad[bs]
41157 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
41159 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
41160 lieu of explicit sizeof/sizeof.
41162 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
41164 * misc.c (copy_lang_decl): Remove.
41166 2002-02-27 Zack Weinberg <zack@codesourcery.com>
41168 * misc.c: Delete traditional-mode-related code copied from the
41169 C front end but not used, or used only to permit the compiler
41172 2002-02-07 Richard Henderson <rth@redhat.com>
41174 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
41175 * adaint.h (__gnat_to_gm_time): Update prototype.
41177 2002-01-30 Richard Henderson <rth@redhat.com>
41179 * trans.c (tree_transform) [N_Loop_Statement]: Use
41180 expand_exit_loop_top_cond.
41182 2001-12-23 Richard Henderson <rth@redhat.com>
41184 * utils.c (end_subprog_body): Push GC context around
41185 rest_of_compilation for nested functions.
41187 2001-12-23 Richard Henderson <rth@redhat.com>
41189 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
41191 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
41193 * gnat-style.texi (Declarations and Types): Remove ancient style
41194 rule which was mandated by code generation issues.
41196 * gnat-style.texi (header): Add @dircategory, @direntry.
41197 (title page): Remove date.
41198 (general) Add @./@: where approriate, and two spaces after the
41199 full stop at the end of a sentence. Use @samp markup when
41200 referring concrete lexical entities (keywords, attribute names
41201 etc.), and @syntax for ARM grammar elements. Use @r for English
41202 text in comments. Use @emph for emphasis. Change "if-statements"
41203 etc. to "if statements" (without @samp). Break long lines. Make
41204 casing of section names consistent.
41205 (Identifiers): Use @samp markup for variable names.
41206 (Comments): Use @samp markup for comment characters. Line-end
41207 comments may follow any Ada code, not just statements. Fix
41208 misspelling of "Integer" as "integer".
41209 (Loop statements): Do not use variable name "I", use "J".
41210 (Subprogram Declarations): Document alignment.
41211 (Subprogram Bodies, Block statements): Document empty line before
41214 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
41216 * make.adb (Add_Switch): Make Generic_Position a procedure. The
41217 function approach did not work well because of a side effect (the
41218 function call could reallocate the table which was being indexed
41219 using its result). Fixes ada/4851.
41221 2001-12-19 Robert Dewar <dewar@gnat.com>
41223 * bindgen.adb: Minor reformatting
41225 * cstand.adb: Minor reformatting
41227 * fmap.adb: Minor reformatting
41228 Change name from Add for Add_To_File_Map (Add is much too generic)
41229 Change Path_Name_Of to Mapped_Path_Name
41230 Change File_Name_Of to Mapped_File_Name
41231 Fix copyright dates in header
41234 Change name from Add for Add_To_File_Map (Add is much too generic)
41235 Change Path_Name_Of to Mapped_Path_Name
41236 Change File_Name_Of to Mapped_File_Name
41237 Fix copyright dates in header
41239 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
41240 Add use clause for Fmap.
41242 * make.adb: Minor reformatting
41244 * osint.adb: Minor reformatting. Change of names in Fmap.
41245 Add use clause for Fmap.
41247 * prj-env.adb: Minor reformatting
41249 * prj-env.ads: Minor reformatting
41251 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
41252 error found (there were odd exceptions to this general rule in
41253 -gnatec/-gnatem processing)
41255 2001-12-19 Olivier Hainque <hainque@gnat.com>
41257 * raise.c (__gnat_eh_personality): Exception handling personality
41258 routine for Ada. Still in rough state, inspired from the C++ version
41259 and still containing a bunch of debugging artifacts.
41260 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
41261 inspired from the C++ library.
41263 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
41264 exception handling integration.
41266 2001-12-19 Arnaud Charlet <charlet@gnat.com>
41268 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
41269 (HIE_SOURCES): Add s-secsta.ad{s,b}.
41270 (HIE_OBJS): Add s-fat*.o
41271 (RAVEN_SOURCES): Remove files that are no longer required. Add
41272 interrupt handling files.
41273 (RAVEN_MOD): Removed, no longer needed.
41275 2001-12-19 Robert Dewar <dewar@gnat.com>
41277 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
41278 Add 2001 to copyright date
41280 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
41281 need to force universal inlining for these cases.
41283 2001-12-19 Arnaud Charlet <charlet@gnat.com>
41285 * s-taprob.adb: Minor clean ups so that this unit can be used in
41288 * exp_ch7.adb: Allow use of secondary stack in HI mode.
41289 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
41291 2001-12-19 Vincent Celier <celier@gnat.com>
41293 * prj-tree.ads (Project_Node_Record): Add comments for components
41294 Pkg_Id and Case_Insensitive.
41296 2001-12-19 Pascal Obry <obry@gnat.com>
41298 * g-socket.adb: Minor reformatting. Found while reading code.
41300 2001-12-19 Robert Dewar <dewar@gnat.com>
41302 * prj-tree.ads: Minor reformatting
41304 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
41306 * config-lang.in (diff_excludes): Remove.
41308 2001-12-17 Ed Schonberg <schonber@gnat.com>
41310 * sem_res.adb (Resolve_Selected_Component): do not generate a
41311 discriminant check if the selected component is a component of
41312 the argument of an initialization procedure.
41314 * trans.c (tree_transform, case of arithmetic operators): If result
41315 type is private, the gnu_type is the base type of the full view,
41316 given that the full view itself may be a subtype.
41318 2001-12-17 Robert Dewar <dewar@gnat.com>
41320 * sem_res.adb: Minor reformatting
41322 * trans.c (tree_transform, case N_Real_Literal): Add missing third
41323 parameter in call to Machine (unknown horrible effects from this
41326 * urealp.h: Add definition of Round_Even for call to Machine
41327 Add third parameter for Machine
41329 2001-12-17 Ed Schonberg <schonber@gnat.com>
41331 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
41332 predefined units in No_Run_Time mode.
41334 2001-12-17 Richard Kenner <kenner@gnat.com>
41336 * misc.c (insn-codes.h): Now include.
41338 2001-12-17 Olivier Hainque <hainque@gnat.com>
41340 * a-except.adb: Preparation work for future integration of the GCC 3
41341 exception handling mechanism
41342 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
41343 to factorize previous code sequences and make them externally callable,
41344 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
41345 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
41346 Use the new notification routines.
41348 2001-12-17 Emmanuel Briot <briot@gnat.com>
41350 * prj-tree.ads (First_Choice_Of): Document the when others case
41352 2001-12-17 Arnaud Charlet <charlet@gnat.com>
41354 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
41355 HI-E mode, in order to support Ravenscar profile properly.
41357 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
41358 mode on 32 bits targets.
41360 2001-12-17 Vincent Celier <celier@gnat.com>
41362 * fmap.adb: Initial version.
41364 * fmap.ads: Initial version.
41366 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
41367 If search is successfully done, add to mapping.
41369 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
41372 (Gnatmake): Add new local variable Mapping_File_Name.
41373 Create mapping file when using project file(s).
41374 Delete mapping file before exiting.
41376 * opt.ads (Mapping_File_Name): New variable
41378 * osint.adb (Find_File): Use path name found in mapping, if any.
41380 * prj-env.adb (Create_Mapping_File): New procedure
41382 * prj-env.ads (Create_Mapping_File): New procedure.
41384 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
41387 * usage.adb: Add entry for new switch -gnatem.
41389 * Makefile.in: Add dependencies for fmap.o.
41391 2001-12-17 Ed Schonberg <schonber@gnat.com>
41393 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
41394 is a package instantiation rewritten as a package body.
41395 (Install_Withed_Unit): Undo previous change, now redundant.
41397 2001-12-17 Gary Dismuke <dismukes@gnat.com>
41400 (Compute_Length): Move conversion to Unsigned to callers.
41401 (Get_Max_Size): Convert Len expression to Unsigned after calls to
41402 Compute_Length and Determine_Range.
41403 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
41404 Compute_Length and Determine_Range.
41405 Above changes fix problem with length computation for supernull arrays
41406 where Max (Len, 0) wasn't getting applied due to the Unsigned
41407 conversion used by Compute_Length.
41409 2001-12-17 Arnaud Charlet <charlet@gnat.com>
41412 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
41413 System.Secondary_Stack.
41414 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
41416 Remove unused entity RE_Exception_Data.
41418 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
41420 * rident.ads (No_Secondary_Stack): New restriction.
41422 2001-12-17 Joel Brobecker <brobecke@gnat.com>
41424 * gnat_rm.texi: Fix minor typos. Found while reading the section
41425 regarding "Bit_Order Clauses" that was sent to a customer.
41426 Very interesting documentation!
41428 2001-12-17 Robert Dewar <dewar@gnat.com>
41430 * sem_case.adb (Choice_Image): Avoid creating improper character
41431 literal names by using the routine Set_Character_Literal_Name. This
41432 fixes bombs in certain error message cases.
41434 2001-12-17 Arnaud Charlet <charlet@gnat.com>
41436 * a-reatim.adb: Minor reformatting.
41438 2001-12-17 Ed Schonberg <schonber@gnat.com>
41440 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
41441 case where the formal is an extension of another formal in the current
41442 unit or in a parent generic unit.
41444 2001-12-17 Arnaud Charlet <charlet@gnat.com>
41446 * s-tposen.adb: Update comments. Minor reformatting.
41447 Minor code clean up.
41449 * s-tarest.adb: Update comments. Minor code reorganization.
41451 2001-12-17 Gary Dismukes <dismukes@gnat.com>
41453 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
41456 2001-12-17 Robert Dewa <dewar@gnat.com>
41458 * exp_attr.adb: Minor reformatting
41460 2001-12-17 Ed Schonberg <schonber@gnat.com>
41462 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
41463 derivations nested within a child unit: verify that the parent
41464 type is declared in an outer scope.
41466 2001-12-17 Robert Dewar <dewar@gnat.com>
41468 * sem_ch12.adb: Minor reformatting
41470 2001-12-17 Ed Schonberg <schonber@gnat.com>
41472 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
41473 warning if current unit is a predefined one, from which bodies may
41476 2001-12-17 Robert Dewar <dewar@gnat.com>
41478 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
41479 Fix header format. Add 2001 to copyright date.
41481 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
41482 which caused CE during compilation if checks were enabled.
41484 2001-12-17 Vincent Celier <celier@gnat.com>
41487 (Switches_Of): New function
41488 (Test_If_Relative_Path): New procedure
41489 (Add_Switches): Use new function Switches_Of
41490 (Collect_Arguments_And_Compile): Use new function Switches_Of.
41491 When using a project file, test if there are any relative
41492 search path. Fail if there are any.
41493 (Gnatmake): Only add switches for the primary directory when not using
41494 a project file. When using a project file, change directory to the
41495 object directory of the main project file. When using a project file,
41496 test if there are any relative search path. Fail if there are any.
41497 When using a project file, fail if specified executable is relative
41498 path with directory information, and prepend executable, if not
41499 specified as an absolute path, with the exec directory. Make sure
41500 that only one -o switch is transmitted to the linker.
41502 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
41505 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
41506 when using a non standard naming scheme.
41507 (Check_Ada_Naming_Scheme): Make sure that error messages
41508 do not raise exceptions.
41509 (Is_Illegal_Append): Return True if there is no dot in the suffix.
41510 (Language_Independent_Check): Check the exec directory.
41512 * prj.adb (Project_Empty): Add new component Exec_Directory
41515 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
41516 (Project_Data): Add component Exec_Directory
41518 * snames.adb: Updated to match snames.ads revision 1.215
41520 * snames.ads: Added Exec_Dir
41522 2001-12-17 Robert Dewar <dewar@gnat.com>
41524 * make.adb: Minor reformatting
41526 * prj-nmsc.adb: Minor reformatting
41528 * snames.adb: Updated to match snames.ads
41530 * snames.ads: Alphebetize entries for project file
41532 2001-12-17 Ed Schonberg <schonber@gnat.com>
41534 * trans.c (process_freeze_entity): Do nothing if the entity is a
41535 subprogram that was already elaborated.
41537 2001-12-17 Richard Kenner <kenner@gnat.com>
41539 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
41540 and Esize if object is referenced via pointer.
41542 2001-12-17 Ed Schonberg <schonber@gnat.com>
41544 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
41545 is discrete before analyzing choices.
41547 2001-12-17 Joel Brobecker <brobecke@gnat.com>
41549 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
41550 containing the name of the Ada Main Program. This string is mainly
41551 intended for the debugger.
41552 (Gen_Output_File_C): Do the equivalent change when generating a C file.
41554 2001-12-17 Robert Dewar <dewar@gnat.com>
41556 * ali.adb: Set new Dummy_Entry field in dependency entry
41558 * ali.ads: Add Dummy_Entry field to source dependency table
41560 * bcheck.adb (Check_Consistency): Ignore dummy D lines
41562 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
41564 * lib-writ.ads: Document dummy D lines for missing files.
41566 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
41568 2001-12-17 Robert Dewar <dewar@gnat.com>
41570 * ali.adb: Type reference does not reset current file.
41572 * ali.adb: Recognize and scan renaming reference
41574 * ali.ads: Add spec for storing renaming references.
41576 * lib-xref.ads: Add documentation for handling of renaming references
41578 * lib-xref.adb: Implement output of renaming reference.
41581 (Determine_Range): Document local variables
41582 (Determine_Range): Make sure Hbound is initialized. It looks as though
41583 there could be a real problem here with an uninitialized reference
41584 to Hbound, but no actual example of failure has been found.
41586 2001-12-17 Laurent Pautet <pautet@gnat.com>
41589 Fix comment of Shutdown_Socket and Close_Socket. These functions
41590 should not fail silently because if they are called twice, this
41591 probably means that there is a race condition in the user program.
41592 Anyway, this behaviour is consistent with the rest of this unit.
41593 When an error occurs, an exception is raised with the error message
41594 as exception message.
41596 2001-12-17 Robert Dewar <dewar@gnat.com>
41598 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
41599 that it happens before modification of Sloc values for -gnatD.
41601 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
41602 so that it happens before modification of Sloc values for -gnatD.
41604 * switch.adb: Minor reformatting
41606 2001-12-15 Richard Henderson <rth@redhat.com>
41608 * sem_ch7.adb: Wrap comment.
41610 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
41612 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
41613 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
41614 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
41615 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
41616 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
41617 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
41618 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
41619 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
41620 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
41621 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
41622 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
41623 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
41624 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
41625 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
41626 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
41627 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
41628 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
41629 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
41630 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
41631 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
41632 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
41633 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
41634 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
41635 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
41638 2001-12-14 Vincent Celier <celier@gnat.com>
41640 * osint.adb(Create_Debug_File): When an object file is specified,
41641 put the .dg file in the same directory as the object file.
41643 2001-12-14 Robert Dewar <dewar@gnat.com>
41645 * osint.adb: Minor reformatting
41647 * lib-xref.adb (Output_Instantiation): New procedure to generate
41648 instantiation references.
41650 * lib-xref.ads: Add documentation of handling of generic references.
41652 * ali.adb (Read_Instantiation_Ref): New procedure to read
41653 instantiation references
41655 * ali.ads: Add spec for storing instantiation references
41657 * bindusg.adb: Minor reformatting
41659 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41661 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41663 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41665 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
41669 Add 2001 to copyright date
41670 Add entry for Latin-5 (Cyrillic ISO-8859-5)
41672 2001-12-14 Matt Gingell <gingell@gnat.com>
41674 * adaint.c: mktemp is a macro on Lynx and can not be used as an
41677 2001-12-14 Richard Kenner <kenner@gnat.com>
41679 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
41680 if operand is CONSTRUCTOR.
41682 2001-12-14 Ed Schonberg <schonber@gnat.com>
41684 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
41685 before emiting check on right-hand side, so that exception information
41688 2001-12-14 Richard Kenner <kenner@gnat.com>
41690 * utils.c (create_var_decl): Throw away initializing expression
41691 if just annotating types and non-constant.
41693 2001-12-14 Vincent Celier <celier@gnat.com>
41695 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
41698 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
41700 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
41702 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
41704 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
41706 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
41708 * ChangeLog: Remove piece of diff output.
41710 2001-12-14 Geert Bosch <bosch@gnat.com>
41712 * config-lang.in: Update copyright notice
41714 * layout.adb: Remove commented out code.
41716 * mdllfile.ads: Update copyright notice. Fix header format.
41718 * sem_case.ads: Likewise.
41720 * sem_ch3.adb: Minor reformatting.
41722 2001-12-12 Geert Bosch <bosch@gnat.com>
41724 * freeze.ads: Update copyright date.
41726 * g-comlin.ads: Minor reformatting.
41728 * gnat-style.texi: Fix typo.
41730 2001-12-12 Geert Bosch <bosch@gnat.com>
41732 * einfo.h: Regenerate.
41734 2001-12-12 Ed Schonberg <schonber@gnat.com>
41736 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
41737 on known node types, rather than untyped fields. Further cleanups.
41739 2001-12-12 Robert Dewar <dewar@gnat.com>
41742 (Save_Entity_Descendant): Minor comment update.
41743 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
41744 of an N_Attribute_Reference node. As per note below, this does not
41745 eliminate need for Associated_Node in attribute ref nodes.
41746 (Associated_Node): Documentation explicitly mentions attribute
41747 reference nodes, since this field is used in such nodes.
41749 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
41751 2001-12-12 Robert Dewar <dewar@gnat.com>
41753 * s-stalib.adb: Add more comments on with statements being needed
41755 * par-ch12.adb: Minor reformatting
41757 * prj-dect.ads: Fix copyright header
41759 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
41760 inputs fit in 32 bits, but the result still overflows.
41762 * s-fatgen.ads: Minor comment improvement
41764 2001-12-12 Ed Schonberg <schonber@gnat.com>
41766 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
41767 formal derived type, look for an inherited component from the full
41768 view of the parent, if any.
41770 2001-12-12 Robert Dewar <dewar@gnat.com>
41772 * checks.ads (Apply_Alignment_Check): New procedure.
41774 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
41775 ensure that the alignment of objects with address clauses is
41776 appropriate, and raise PE if not.
41778 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
41779 Exp_Pakd.Known_Aligned_Enough
41781 * mdllfile.ads: Minor reformatting
41783 * mlib-fil.ads: Minor reformatting
41785 2001-12-12 Ed Schonberg <schonber@gnat.com>
41787 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
41788 fix to any component reference if enclosing record has non-standard
41791 2001-12-12 Vincent Celier <celier@gnat.com>
41793 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
41796 2001-12-12 Ed Schonberg <schonber@gnat.com>
41798 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
41801 2001-12-12 Robert Dewar <dewar@gnat.com>
41803 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
41805 2001-12-12 Emmanuel Briot <briot@gnat.com>
41807 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
41808 and it adds dependencies to system.io.
41810 2001-12-12 Pascal Obry <obry@gnat.com>
41812 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
41815 2001-12-11 Ed Schonberg <schonber@gnat.com>
41817 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
41818 that is the parent of other generics, the instance body replaces the
41819 instance node. Retrieve the instance of the spec, which is the one
41820 that is visible in clients and within the body.
41822 2001-12-11 Vincent Celier <celier@gnat.com>
41824 * gnatmain.adb: Initial version.
41826 * gnatmain.ads: Initial version.
41828 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
41830 * snames.adb: Updated to match snames.ads.
41832 * snames.ads: Added Gnatstub.
41834 2001-12-11 Vincent Celier <celier@gnat.com>
41836 * prj-attr.adb (Initialization_Data): Change name from
41837 Initialisation_Data.
41839 2001-12-11 Emmanuel Briot <briot@gnat.com>
41841 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
41842 + and * applied to backslashed expressions like \r.
41844 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
41846 * g-os_lib.ads: String_List type added, Argument_List type is now
41847 subtype of String_List.
41849 2001-12-11 Robert Dewar <dewar@gnat.com>
41851 * g-os_lib.ads: Change copyright to FSF
41852 Add comments for String_List type
41854 2001-12-11 Vincent Celier <celier@gnat.com>
41856 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
41857 string to the buffer).
41859 2001-12-11 Ed Schonberg <schonber@gnat.com>
41861 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
41864 * sem_attr.adb: Simplify previous fix for Address.
41865 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
41866 to avoid anomalies where the bound of the type appears to raise
41869 2001-12-11 Robert Dewar <dewar@gnat.com>
41871 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
41874 2001-12-11 Ed Schonber <schonber@gnat.com>
41876 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
41877 renamed unit before checking for recursive instantiations.
41879 2001-12-11 Emmanuel Briot <briot@gnat.com>
41881 * prj.ads: Add comments for some of the fields.
41883 2001-12-11 Robert Dewar <dewar@gnat.com>
41885 * lib-xref.adb (Output_Refs): Don't output type references outside
41886 the main unit if they are not otherwise referenced.
41888 2001-12-11 Ed Schonberg <schonber@gnat.com>
41890 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
41891 code and diagnose additional illegal uses
41893 * sem_util.adb (Is_Object_Reference): An indexed component is an
41894 object only if the prefix is.
41896 2001-12-11 Vincent Celier <celier@gnat.com>
41898 * g-diopit.adb: Initial version.
41900 * g-diopit.ads: Initial version.
41903 (Expand_Path): Avoid use of Unbounded_String
41904 (Find, Wildcard_Iterator): Moved to child package Iteration
41906 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
41908 2001-12-11 Robert Dewar <dewar@gnat.com>
41910 * sem_attr.adb: Minor reformatting
41912 2001-12-11 Ed Schonberg <schonber@gnat.com>
41914 * sem_ch3.adb: Clarify some ???.
41916 2001-12-11 Robert Dewar <dewar@gnat.com>
41918 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
41919 Exp_Pakd.Known_Aligned_Enough
41921 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
41922 version is moved to Exp_Ch13.
41924 2001-12-11 Robert Dewar <dewar@gnat.com>
41926 * einfo.ads: Minor reformatting
41928 * exp_ch5.adb: Add comment for previous.change
41930 * ali.adb: New interface for extended typeref stuff.
41932 * ali.ads: New interface for typeref stuff.
41934 * checks.adb (Apply_Alignment_Check): New procedure.
41936 * debug.adb: Add -gnatdM for modified ALI output
41938 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
41940 * lib-xref.adb: Extend generation of <..> notation to cover
41941 subtype/object types. Note that this is a complete rewrite,
41942 getting rid of the very nasty quadratic algorithm previously
41943 used for derived type output.
41945 * lib-xref.ads: Extend description of <..> notation to cover
41946 subtype/object types. Uses {..} for these other cases.
41947 Also use (..) for pointer types.
41949 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
41951 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
41952 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
41954 2001-12-11 Vincent Celier <celier@gnat.com>
41957 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
41958 Changed /BIND_ONLY to /ACTIONS=BIND
41959 Changed /LINK_ONLY to /ACTIONS=LINK
41961 2001-12-11 Ed Schonberg <schonber@gnat.com>
41963 * sem_ch8.adb (Find_Selected_Component): improved search for a
41964 candidate package in case of error.
41966 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
41967 chain back on scope stack before reinstalling use clauses.
41969 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
41970 is enabled, do not kill the code for the condition, to preserve
41973 2001-12-11 Robert Dewar <dewar@gnat.com>
41975 * checks.adb (Insert_Valid_Check): Apply validity check to expression
41976 of conversion, not to result of conversion.
41978 2001-12-11 Ed Schonberg <schonber@gnat.com>
41980 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
41981 before freezing parent. If the declarations are mutually recursive,
41982 an access to the current record type may be frozen before the
41983 derivation is complete.
41985 2001-12-05 Vincent Celier <celier@gnat.com>
41987 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
41988 -c /COMPILE_ONLY, -l /LINK_ONLY
41991 (Bind_Only): New Flag
41992 (Link_Only): New flag
41994 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
41997 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
42000 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
42001 (Gnatmake): Set the step flags. Only perform a step if the
42002 corresponding step flag is True.
42003 (Scan_Make_Arg): Reset the bind and link step flags when -u
42004 or -gnatc has been specified.
42006 2001-12-05 Ed Schonberg <schonber@gnat.com>
42008 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
42009 get bounds from right operand.
42011 * sem_eval.adb: Minor reformatting
42013 * exp_util.adb (Make_Literal_Range): use bound of literal rather
42014 than Index'First, its lower bound may be different from 1.
42016 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
42019 2001-12-05 Vincent Celier <celier@gnat.com>
42021 * prj-nmsc.adb Minor reformatting
42023 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
42024 set and libraries are not supported.
42026 2001-12-05 Ed Schonberg <schonber@gnat.com>
42028 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
42029 private view explicitly, so the back-end can treat as a global
42032 2001-12-05 Ed Schonberg <schonber@gnat.com>
42034 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
42035 unit, always replace instance node with new body, for ASIS use.
42037 2001-12-05 Vincent Celier <celier@gnat.com>
42039 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
42040 libraries are not supported and both attributes Library_Name and
42041 Library_Dir are specified.
42043 * prj-proc.adb (Expression): Set location of Result to location of
42046 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
42047 (prj-nmsc is now importing MLib.Tgt)
42049 * prj-proc.adb: Put the change indicated above that was forgotten.
42051 2001-12-05 Robert Dewar <dewar@gnat.com>
42053 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
42055 2001-12-05 Ed Schonberg <schonber@gnat.com>
42057 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
42058 constraint, introduce explicit subtype declaration and derive from it.
42060 * sem_ch3.adb: Minor reformatting
42062 2001-12-05 Robert Dewar <dewar@gnat.com>
42064 * checks.adb (Determine_Range): Increase cache size for checks.
42067 * exp_ch6.adb: Minor reformatting
42068 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
42069 a parameter whose root type is System.Address, since treating such
42070 subprograms as pure in the code generator is almost surely a mistake
42071 that will lead to unexpected results.
42073 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
42074 change handling of conversions.
42076 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
42078 2001-12-05 Ed Schonberg <schonber@gnat.com>
42080 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
42081 aggregate with static wrong size, attach generated Raise node to
42084 2001-12-05 Robert Dewar <dewar@gnat.com>
42086 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
42087 Fixes compilation abandoned bomb in B24009B.
42089 2001-12-05 Ed Schonberg <schonber@gnat.com>
42092 Document use of Associated_Node on Selected_Components.
42093 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
42094 to clarify use of untyped descendant fields.
42096 2001-12-05 Robert Dewar <dewar@gnat.com>
42098 * prj-dect.ads: Add ??? comment
42099 Add 2001 to copyright notice (was not done in after all)
42101 * prj-part.adb: Minor reformatting. Reword one awkward error message.
42103 * prj.ads: Minor reformatting throughout, and add some ??? comments
42105 * snames.ads: Minor reformatting
42107 2001-12-05 Geert Bosch <bosch@gnat.com>
42109 * snames.adb: Autoupdate
42111 2001-12-05 Vincent Celier <celier@gnat.com>
42113 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
42115 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
42117 * prj-env.adb: Minor comment changes (modifying -> extends).
42119 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
42121 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
42124 * prj.adb (Initialize): Change Modifying to Extends.
42126 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
42128 * prj.ads: Minor comment change (Modifying -> extending).
42130 * snames.ads: Change modifying to extends.
42132 2001-12-05 Robert Dewar <dewar@gnat.com>
42134 * sem_warn.adb: Remove stuff for conditionals, we are not going to
42137 * sem_warn.ads: Remove stuff for conditionals, we are not going to
42138 do this after all. Add 2001 to copyright notice
42140 2001-12-04 Geert Bosch <bosch@gnat.com>
42142 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
42144 2001-12-04 Robert Dewar <dewar@gnat.com>
42146 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
42147 location if we already have errors. Stops some cases of cascaded
42150 * errout.adb: Improve comment.
42152 2001-12-04 Robert Dewar <dewar@gnat.com>
42155 (Analyze_Formal_Type_Definition): Defend against Error.
42156 (Analyze_Formal_Subprogram): Defend against Error.
42158 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
42159 remove following semicolon if present. Removes cascaded error.
42161 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
42164 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
42165 exceptions equals 0.
42166 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
42167 Fixes PIWG E tests (which have to be run with -gnatL).
42169 2001-12-04 Robert Dewar <dewar@gnat.com>
42171 * einfo.ads: Minor reformatting
42173 2001-12-04 Ed Schonberg <schonber@gnat.com>
42175 * einfo.ads: Block_Node points to the identifier of the block, not to
42176 the block node itself, to preserve the link when the block is
42177 rewritten, e.g. within an if-statement with a static condition.
42179 * inline.adb (Cleanup_Scopes): recover block statement from block
42180 entity using new meaning of Block_Node.
42182 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
42183 identifier of block node, rather than to node itself.
42185 2001-12-04 Gary Dismukes <dismukes@gnat.com>
42188 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
42189 (Discrimify): Go back to setting the Etypes of the selected component
42190 because the Vname component does not exist at this point and will
42191 fail name resolution. Also set Analyzed.
42192 Remove with and use of Sem_Res.
42194 2001-12-04 Arnaud Charlet <charlet@gnat.com>
42196 * Makefile.in: (HIE_SOURCES): add s-fat*.
42198 2001-12-04 Robert Dewar <dewar@gnat.com>
42201 (Compile_Time_Known_Attribute): New procedure.
42202 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
42203 proper range check.
42205 2001-12-04 Ed Schonberg <schonber@gnat.com>
42207 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
42208 processing discriminants to diagnose illegal default values.
42210 2001-12-04 Ed Schonberg <schonber@gnat.com>
42212 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
42213 access discriminant within a type extension that constrains its
42214 parent discriminants.
42216 2001-12-04 Ed Schonberg <schonber@gnat.com>
42218 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
42219 is malformed, use instance of Any_Id to allow analysis to proceed.
42221 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
42222 type definition is illegal.
42223 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
42226 2001-12-04 Ed Schonberg <schonber@gnat.com>
42228 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
42231 2001-12-04 Robert Dewar <dewar@gnat.com>
42233 * errout.adb: Minor reformatting
42235 2001-12-04 Robert Dewar <dewar@gnat.com>
42237 * exp_util.adb: Minor reformatting from last change
42239 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
42240 which is a rewriting of an expression, traverse the original
42241 expression to remove warnings that may have been posted on it.
42243 2001-12-04 Ed Schonberg <schonber@gnat.com>
42245 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
42246 record that has other packed components.
42248 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
42250 * adaint.c: Minor cleanups.
42252 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
42254 * adaint.c: Do not use utime.h on vxworks.
42256 2001-12-04 Arnaud Charlet <charlet@gnat.com>
42258 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
42259 more confusion than it solves.
42261 2001-12-04 Geert bosch <bosch@gnat.com>
42263 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
42265 2001-12-04 Geert Bosch <bosch@gnat.com>
42267 * Makefile.in (update-sources): New target.
42268 For use by gcc_release script.
42270 2001-12-04 Ed Schonberg <schonber@gnat.com>
42272 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
42273 a configuration pragma, it is now legal wherever a pragma can appear.
42275 2001-12-04 Zack Weinberg <zack@codesourcery.com>
42277 * Makefile.in: Don't set ALL. Delete @cross_defines@,
42278 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
42279 is now @CROSS@ -DIN_GCC; update comment.
42281 2001-12-04 Robert Dewar <dewar@gnat.com>
42283 * einfo.adb (Has_Pragma_Pure_Function): New flag.
42284 Fix problem that stopped ceinfo from working
42286 * einfo.ads (Has_Pragma_Pure_Function): New flag.
42288 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
42290 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
42293 (File_Time_Stamp): New procedure.
42294 (Preserve_Mode): New boolean.
42295 (Write_Unit): Pass time stamp.
42296 Implement -p switch (preserve time stamps).
42298 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
42300 * gnatchop.adb: Do usage info for -p switch
42302 * adaint.h (__gnat_set_file_time_name): New function
42304 * adaint.c (__gnat_set_file_time_name): Implement
42306 * adaint.h: Fix typo
42308 2001-12-03 Robert Dewar <dewar@gnat.com>
42310 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
42311 have Associated_Node.
42313 2001-12-03 Robert Dewar <dewar@gnat.com>
42315 * prj-proc.adb: Minor reformatting
42317 * make.adb: Minor reformatting
42319 2001-12-03 Geert Bosch <bosch@gnat.com>
42321 * make.adb: Minor reformatting.
42323 2001-12-03 Robert Dewar <dewar@gnat.com>
42325 * sem_ch12.adb: Minor reformatting
42327 2001-12-03 Ed Schonberg <schonber@gnat.com>
42329 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
42330 push Standard on the stack before analyzing the instance body,
42331 in order to have a clean visibility environment.
42333 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
42335 2001-12-03 Ed Schonberg <schonber@gnat.com>
42337 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
42338 instantiation of a body that contains an inlined body.
42340 2001-12-03 Ed Schonberg <schonber@gnat.com>
42343 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
42344 to prevent freezing within formal packages.
42345 (Freeze_Subprogram_Body): If body comes from another instance that
42346 appeared before its own body, place freeze node at end of current
42347 declarative part, to prevent a back-end crash.
42348 (Inline_Instance_Body): Handle properly a package instance within
42349 a subprogram instance that is a child unit.
42351 2001-12-01 Graham Stott <grahams@redhat.com>
42353 * Makefile.in (misc.o): Add missing $(srcdir) prefix
42354 and add optabs.h dependency.
42356 * misc.c: Include optabs.h
42357 (gnat_tree_code_type): Make static and const.
42358 (gnat_tree_code_length): Likewise.
42359 (gnat_tree_code_name): Likewise.
42360 (update_setjmp_buf): Obtain operands mode from insn_data.
42362 2001-11-29 Richard Henderson <rth@redhat.com>
42364 * init.c: Remove obsolete dwarf2 frame.h section.
42366 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
42368 * Make-lang.in (ada.generated-manpages): New dummy target.
42370 2001-11-29 Ed Schonberg <schonber@gnat.com>
42372 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
42373 into Command, an array conversion is illegal here. Uncovered by
42376 2001-11-28 Geert Bosch <bosch@gnat.com>
42378 * init.c: Minor whitespace changes.
42380 2001-11-28 Doug Rupp <rupp@gnat.com>
42382 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
42385 2001-11-28 Zack Weinberg <zack@codesourcery.com>
42387 * misc.c (gnat_expand_constant): Move declaration above
42388 definition of lang_hooks.
42389 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
42390 (gnat_init): lang_expand_constant no longer exists.
42392 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
42393 always have vprintf.
42394 (gnat_init): Always call set_internal_error_function.
42396 2001-11-27 Andreas Jaeger <aj@suse.de>
42398 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
42400 2001-11-27 Laurent Guerby <guerby@acm.org>
42402 * Makefile.in: Regenerate Ada dependencies.
42404 2001-11-26 Richard Henderson <rth@redhat.com>
42406 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
42407 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
42408 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
42410 2001-11-25 Laurent Guerby <guerby@acm.org>
42412 * sysdep.c (rts_get_*): Fix style.
42414 2001-11-19 Laurent Guerby <guerby@acm.org>
42416 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
42417 since it is of no apparent use and cause warnings.
42419 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
42421 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
42423 (gnat_init): Don't return NULL.
42424 (finish_parse): Remove.
42426 2001-11-17 Laurent Guerby <guerby@acm.org>
42428 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
42429 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
42430 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
42431 * lang-spec.h: Add missing struct field to silence warnings.
42432 * sysdep.c (rts_get_*): Provide K&R prototype.
42433 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
42434 * traceback.c (Unlock_Task, Lock_Task): Likewise.
42435 * tracebak.c (__gnat_backtrace): Remove unused variable.
42436 * utils.c (end_subprog_body): Move to K&R style.
42438 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
42440 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
42442 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
42444 * misc.c (gnat_init): Change prototype. Include the
42445 functionality of the old init_parse and init_decl_processing.
42446 (gnat_init_decl_processing): New prototype.
42447 (init_parse): Remove.
42448 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
42450 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
42452 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
42453 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
42454 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
42455 set_yydebug): Remove.
42457 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
42459 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
42460 (struct lang_hooks): Constify.
42461 (language_string, lang_identify): Remove.
42462 * utils.c (init_decl_processing): Update.
42464 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
42466 * misc.c: Include langhooks-def.h.
42467 * Makefile.in: Update.
42469 2001-10-30 Robert Dewar <dewar@gnat.com>
42472 (Check_Identifier): Rewrite circuit to be compatible with use of letters
42473 in the upper half of ASCII.
42474 (Check_Identifier): Minor reformatting
42476 2001-10-30 Geert Bosch <bosch@gnat.com>
42478 * (Associated_Node, Set_Associated_Node): Do not check for
42481 2001-10-30 Robert Dewar <dewar@gnat.com>
42483 * a-reatim.ads: Minor reformatting
42485 2001-10-30 Robert Dewar <dewar@gnat.com>
42487 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
42488 undocumented declarations.
42490 2001-10-30 Pascal Obry <obry@gnat.com>
42492 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
42493 to the binder and linker.
42496 * mdll.ads: Fix layout. Update copyright notice.
42498 * mdll.adb: Fix layout. Update copyright notice.
42500 2001-10-30 Robert Dewar <dewar@gnat.com>
42502 * usage.adb: Minor fix to output for -gnaty.
42504 2001-10-30 Ed Schonberg <schonber@gnat.com>
42506 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
42507 to accommodate all its possible values.
42509 * a-reatim.adb (Split): Special-case handling of Time_Span_First
42510 and of small absolute values of T.
42512 2001-10-30 Richard Kenner <kenner@gnat.com>
42514 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
42515 set_mem_attributes since not needed and wrong if RESULT if a REG;
42516 fixes ACATS failures.
42518 2001-10-30 Geert Bosch <bosch@gnat.com>
42520 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
42521 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
42523 2001-10-30 Robert Dewar <dewar@gnat.com>
42525 * bindusg.adb: Undocument -f switch.
42527 * gnatcmd.adb: Remove /FULL_ELABORATION.
42529 * opt.ads (Force_RM_Elaboration_Order): Document that this is
42532 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
42534 * gnatbind.adb: Minor update of warning msg.
42536 2001-10-30 Vincent Celier <celier@gnat.com>
42538 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
42539 for project file switches (-P (/PROJECT_FILE=),
42540 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
42543 2001-10-30 Geert Bosch <bosch@gnat.com>
42545 * decl.c: Minor whitespace fixes.
42547 2001-10-30 Richard Kenner <kenner@gnat.com>
42549 * utils2.c (build_allocator): Test for SIZE overflow in array case too
42551 2001-10-30 Geert Bosch <bosch@gnat.com>
42553 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
42554 Found due to GCC 3.0 warning of using uninitialized value.
42557 (Get_Max_Size): Use variant record for tracking value/expression.
42558 Makes logic clearer and prevents warnings for uninitialized variables.
42559 (Layout_Array_Type): Use variant record for tracking value/expression.
42560 Makes logic clearer and prevents warnings for uninitialized variables.
42562 2001-10-30 Robert Dewar <dewar@gnat.com>
42564 * lib.adb: Minor reformatting
42566 * s-taprop.ads: Minor reformatting
42568 2001-10-29 Laurent Guerby <guerby@acm.org>
42571 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
42573 (_gnat_error_handler): Make MSG const.
42575 2001-10-29 Richard Kenner <kenner@gnat.com>
42577 * sysdep.c: Fix localtime_r problem on LynxOS.
42578 Also remove #elif to avoid warnings.
42580 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
42583 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
42585 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
42587 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
42588 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
42589 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
42590 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
42591 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
42592 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
42593 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
42594 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
42595 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
42596 types.ads, urealp.adb: Fix spelling errors.
42598 2001-10-27 Laurent Guerby <guerby@acm.org>
42600 * trans.c (gigi): Fix non determinism leading to bootstrap
42601 comparison failures for debugging information.
42603 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
42605 * gnat_rm.texi: Use @./@: where appropriate.
42607 2001-10-26 Robert Dewar <dewar@gnat.com>
42609 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
42611 2001-10-26 Richard Kenner <kenner@gnat.com>
42613 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
42615 2001-10-26 Richard Kenner <kenner@gnat.com>
42617 * decl.c (validate_size): Modify message for bad size to avoid
42618 implication that compiler is modifying the size.
42620 2001-10-26 Robert Dewar <dewar@gnat.com>
42622 * prj-util.adb: Minor reformatting. Fix bad header format.
42624 2001-10-26 Robert Dewar <dewar@gnat.com>
42626 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
42628 * sinfo.ads: Clarify use of Associated_Node (documentation only).
42630 * sem_ch12.adb: Change Node4 to Associated_Node. Change
42631 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
42632 much more narrowly in places where needed. These are cleanups.
42634 2001-10-26 Joel Brobecker <brobecke@gnat.com>
42636 * 5zosinte.ads (null_pthread): new constant.
42639 (Initialize_TCB): Initialize thread ID to null, to be able to verify
42640 later that this field has been set.
42641 (Finalize_TCB): ditto.
42642 (Suspend_Task): Verify that the thread ID is not null before using it.
42643 (Resume_Task): ditto.
42646 (Resume_All_Tasks): Lock the tasks list before using it.
42647 (Suspend_All_Tasks): ditto.
42649 2001-10-26 Richard Kenner <kenner@gnat.com>
42651 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
42652 Make constant variant of designated type for Is_Access_Constant.
42653 Call update_pointer_to with main variant.
42655 * trans.c (process_freeze_entity, process_type):
42656 Call update_pointer_to on main variant.
42658 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
42659 If main variant, update all other variants.
42661 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
42664 2001-10-26 Robert Dewar <dewar@gnat.com>
42666 * prj-util.adb: Minor reformatting
42668 2001-10-26 Robert Dewar <dewar@gnat.com>
42670 * prj-util.adb: Minor reformatting
42672 2001-10-26 Robert Dewar <dewar@gnat.com>
42674 * prj-attr.adb: Minor reformatting throughout
42676 2001-10-26 Robert Dewar <dewar@gnat.com>
42678 * prj-attr.ads: Minor reformatting
42679 Add ??? comment (this whole spec has almost no comments)
42681 2001-10-26 Vincent Celier <celier@gnat.com>
42683 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
42684 ("//") that precede the drive letter on Interix.
42686 2001-10-26 Geert Bosch <bosch@gnat.com>
42688 * gnat_rm.texi: Add GNAT Reference Manual.
42690 2001-10-25 Robert Dewar <dewar@gnat.com>
42692 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
42693 is Error. Similar change for other renaming cases.
42695 2001-10-25 Robert Dewar <dewar@gnat.com>
42697 * s-atacco.ads: Add pragma Inline_Always for functions.
42698 Fix header format. Add copyright 2001
42700 2001-10-25 Ed Schonberg <schonber@gnat.com>
42702 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
42703 return Error rather than Empty so that analysis can proceed.
42705 2001-10-25 Ed Schonberg <schonber@gnat.com>
42707 * sem_util.adb (Enter_Name): better handling of cascaded error
42708 messages when a unit appears in its own context.
42710 2001-10-25 Ed Schonberg <schonber@gnat.com>
42712 * sem_util.adb (Defining_Entity): in case of error, attach created
42713 entity to specification, so that semantic analysis can proceed.
42715 2001-10-25 Robert Dewar <dewar@gnat.com>
42718 (Defining_Entity): Deal with Error.
42719 (Process_End_Label): Deal with bad end label for.
42721 2001-10-25 Ed Schonberg <schonber@gnat.com>
42723 * sem_elab.adb (Check_A_Call): refine message when call is in an
42724 instance but callee is not declared in the generic unit.
42726 2001-10-25 Ed Schonberg <schonber@gnat.com>
42728 * sem_elab.adb (Check_A_Call): check for renaming before finding the
42729 enclosing unit, which may already be different from the calling unit.
42731 2001-10-25 Geert Bosch <bosch@gnat.com>
42733 * 4gintnam.ads: fix header format.
42735 2001-10-25 Ed Schonberg <schonber@gnat.com>
42737 * sem_res.adb (Resolve_Call): if the call is actually an indexing
42738 operation on the result of a parameterless call, perform elaboration
42739 check after the node has been properly rewritten.
42741 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
42742 inlined within the generic tree, the defining identifier is not a
42745 2001-10-25 Ed Schonberg <schonber@gnat.com>
42747 * sem_res.adb (Resolve): special-case resolution of Null in an
42748 instance or an inlined body to avoid view conflicts.
42750 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
42751 compatibility by retrieving the access type of the generic copy.
42753 2001-10-25 Robert Dewar <dewar@gnat.com>
42756 (Analyze_Number_Declaration): Handle error expression.
42757 (Signed_Integer_Type_Declaration): Handle error bound.
42758 (Analyze_Subtype_Indication): Handle error range.
42760 * sem_util.adb (Get_Index_Bounds): Check for Error.
42762 2001-10-25 Robert Dewar <dewar@gnat.com>
42764 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
42765 in no run time mode.
42767 2001-10-25 Pascal Obry <obry@gnat.com>
42769 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
42770 mode case for ALLOC case.
42772 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
42773 all platforms. Improvement of last change.
42775 2001-10-25 Robert Dewar <dewar@gnat.com>
42777 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
42779 2001-10-25 Geert Bosch <bosch@gnat.com>
42781 * osint.adb (Is_Relative): Remove duplicate.
42783 2001-10-25 Pascal Obry <obry@gnat.com>
42785 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
42786 pathnames in UNIX and DOS style with drive letter.
42787 (Is_Relative): new routine.
42789 * osint.adb: Minor reformatting
42791 * osint.adb (Is_Relative): implementation using
42792 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
42794 2001-10-25 Pascal Obry <obry@gnat.com>
42796 * g-dirope.adb (Basename): correctly compute offset between the
42797 original Path and the translated one.
42799 * g-dirope.adb: (Base_Name): add some comments.
42801 2001-10-25 Robert Dewar <dewar@gnat.com>
42803 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
42804 in HIE mode, avoids compilation abandoned message
42806 * exp_imgv.adb: Correct typo in previous change
42808 * exp_imgv.adb: Correct typo in previous change (not my day!)
42810 2001-10-25 Robert Dewar <dewar@gnat.com>
42812 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
42814 2001-10-25 Pascal Obry <obry@gnat.com>
42816 * g-awk.ads: Move all pragma inlines next to the routine
42817 declarations. This is more uniform with other GNAT spec.
42819 2001-10-22 Geert Bosch <bosch@gnat.com>
42821 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
42823 2001-10-19 Geert Bosch <bosch@gnat.com>
42825 * Makefile.in (tools, gnattools): Remove gnatmem.
42827 2001-10-17 Richard Henderson <rth@redhat.com>
42829 * Makefile.in (misc.o): Depend on langhooks.h.
42830 * misc.c: Include it.
42831 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
42832 (LANG_HOOKS_DECODE_OPTION): New.
42833 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
42835 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
42837 * trans.c (tree_transform): Adjust to recent change in
42838 expand_asm_operands to implement named asm operands.
42840 2001-10-11 Ed Schonberg <schonber@gnat.com>
42842 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
42843 renaming of discriminant for mutable record type.
42845 2001-10-11 Robert Dewar <dewar@gnat.com>
42847 * validsw.adb: Properly save -gnatVn status.
42849 2001-10-11 Robert Dewar <dewar@gnat.com>
42851 * usage.adb: Add lines for V switch.
42853 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
42854 (/VALIDITY_CHECKING).
42856 2001-10-11 Ed Schonberg <schonber@gnat.com>
42858 * sem_type.adb (Add_One_Interp): an operator for a type declared in
42859 an extension of System is known to be visible.
42861 2001-10-11 Ed Schonberg <schonber@gnat.com>
42863 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
42864 properly. Fixes regression on ACATS C34005G.
42866 2001-10-11 Robert Dewar <dewar@gnat.com>
42868 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
42869 loop in generic instance, since this is likely not very useful.
42871 2001-10-11 Robert Dewar <dewar@gnat.com>
42873 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
42874 the error message for high integrity mode.
42876 * rtsfind.adb (RTE): Give message if we try to find an entity that
42877 is not available in high integrity mode.
42880 (OK_To_Use_In_HIE_Mode): New array.
42881 (RTE): May return Empty in high integrity mode.
42883 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
42884 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
42886 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
42887 unit if not inlined always and in no runtime mode. Fixes problem
42888 caused by new Rtsfind changes.
42890 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
42893 * rtsfind.adb (RTE): Make sure we do not try to load unit after
42894 giving message for entity not available in high integrity mode.
42896 2001-10-11 Pascal Obry <obry@gnat.com>
42898 * impunit.adb: Add GNAT.CRC32.
42900 2001-10-11 Ed Schonberg <schonber@gnat.com>
42902 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
42903 properly the case where one universal operand in a non-static
42904 exponentiation of a real literal.
42906 2001-10-11 Ed Schonberg <schonber@gnat.com>
42908 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
42909 clause, return the gobal finalization list, for lack of anthing else.
42911 2001-10-11 Ed Schonberg <schonber@gnat.com>
42913 * exp_ch7.adb (Make_Transient_Block): if statement is within
42914 exception handler, always use new transient scope to place Clean
42917 2001-10-11 Pascal Obry <obry@gnat.com>
42920 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
42921 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
42922 (GNATLS_RTL_OBJS): add g-crc32.o
42923 (GNATMAKE_RTL_OBJS): add g-crc32.o
42926 (CRC_Match): new function.
42927 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
42928 instead of the previous simple checksum algorithm.
42929 (Time_Stamp_Mismatch): use CRC_Match for comparison.
42930 (Set_Source_Table): idem.
42933 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
42934 instead of simple checksum.
42935 (CRC_Match): new function.
42936 (CRC_Error): new constant.
42938 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
42939 a CRC now and not a simple checksum. A CRC uses lower-case hex
42940 letters, fixes ambiguity in parsing.
42942 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
42943 is what this variable will store.
42945 * bcheck.adb: Change reference to chechsum in comments by CRC.
42946 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
42947 rename All_Checksum_Match to All_CRC_Match. Change due to API
42948 renaming since now GNAT does not use a simple checksum but a
42949 CRC using GNAT.CRC32.
42951 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
42952 now and not anymore a simple checksum.
42954 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
42957 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
42960 (Restore_Scan_State): rename Checksum to CRC.
42961 (Save_Scan_State): idem.
42965 (Checksum): rename to CRC.
42966 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
42968 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
42969 GNAT.CRC32). Update copyright notice.
42971 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
42972 GNAT.CRC32). Update copyright notice.
42975 (Accumulate_Checksum): removed.
42976 (Update): new procedure. Add a wide-character into the CRC.
42979 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
42980 (Load_File): fix initialization of S (change Source_Checksum to
42983 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
42984 Source_CRC in S initialization.
42986 * sinput.adb (Source_Checksum): renamed to Source_CRC.
42988 * sinput.ads (Source_Checksum): renamed to Source_CRC.
42989 Update comments for the CRC.
42991 * types.adb (Hex): Use lowercase for the letter part.
42993 * types.ads (Get_Hex_String): Returns the hexadecimal representation
42994 for a word. This is currently used only for CRC. In previous version,
42995 the checksum was using a representation with all letter being
42996 upper-case. With the new implementation (using CRC) we do not remove
42997 the 32th bit of the CRC, so we can have an upper-case starting letter
42998 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
42999 It is ambigous since the CRC was optional and could be followed by
43000 options like EB, EE. So now this routines uses lower-case letter for
43001 the hexadecimal representation. Strange enough only lower case letters
43002 where checked in Scan_ALI (even if this was not a possible case).
43004 * gnatvsn.ads (Library_Version): changed to 3.15a.
43006 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
43009 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
43012 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
43013 Add 2001 to copyright notice
43014 (Accumulate_Checksum): Modify to use System.CRC32.
43016 * ali-util.ads: Redo changes of previous revision to continue to use
43017 the word Checksum. Add 2001 to copyright notice.
43019 * ali.adb: Undo some of previous changes, not needed.
43020 Keep the change for lower case letters in the checksum.
43022 * ali.ads: Undo previous change not needed.
43024 * bcheck.adb: Undo most of previous change, not needed.
43025 But do use Checksums_Match for checksum comparison.
43027 * gnatls.adb: Undo most of previous change, not needed.
43028 But do use Checksums_Match for comparing checksums.
43030 * lib-load.adb: Undo previous change, not needed.
43032 * lib-writ.adb: Undo previous change, not needed.
43034 * lib-writ.ads: Document that checksums use lower case,
43035 not upper case letters.
43037 * scans.adb: Undo previous change, not needed
43039 * scans.ads: Undo previous change, not needed.
43041 * scn-nlit.adb: Undo previous changes, not needed.
43043 * scn-slit.adb: Undo previous change, not needed. Fix header format.
43046 (Accumulate_Checksum): Use System.CRC32.
43047 (Initialize_Checksum): New procedure.
43048 Remove other changes of previous revision.
43050 * sinput-p.adb: Undo previous change, not needed.
43052 * sinput.adb: Undo previous change, not needed.
43054 * sinput-l.adb: Undo previous change, not needed.
43056 * sinput.ads: Undo previous change, not needed. Keep only comment
43057 on new checksum algorithm
43059 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
43060 Also remove a-tags and a-stream from GNAT sources.
43062 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
43064 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
43066 2001-10-11 Geert Bosch <bosch@gnat.com>
43068 * einfo.h: Regenerate.
43070 * nmake.ads: Regenerate.
43072 * nmake.adb: Regenerate.
43074 * sinfo.h: Regenerate.
43076 * treeprs.adb: Regenerate.
43078 2001-10-10 Geert Bosch <bosch@gnat.com>
43080 * gnat-style.texi: New file describing coding guidelines for Ada.
43082 2001-10-10 Ed Schonberg <schonber@gnat.com>
43084 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
43087 2001-10-10 Geert Bosch <bosch@gnat.com>
43089 * snames.ads: Add new names for project facility.
43091 * snames.adb: Update to reflect snames.ads changes.
43093 * snames.h: Update to reflect snames.ads changes.
43095 2001-10-10 Vincent Celier <celier@gnat.com>
43098 (Add_Switches): reflect the changes for the switches attributes
43099 Default_Switches indexed by the programming language,
43100 Switches indexed by the file name.
43101 (Collect_Arguments_And_Compile): Idem.
43102 Reflect the attribute name changes.
43105 (Initialisation_Data): Change the names of some packages and
43107 (Initialize): process case insensitive associative arrays.
43110 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
43113 (Parse_Attribute_Declaration): For case insensitive associative
43114 arrays, set the index string to lower case.
43117 Reflect the changes of the project attributes.
43120 Replace Check_Naming_Scheme by Ada_Check and
43121 Language_Independent_Check.
43124 Replaced Check_Naming_Scheme by 2 procedures:
43125 Ada_Check and Language_Independent_Check.
43128 (Process_Declarative_Items): For case-insensitive associative
43129 arrays, set the index string to lower case.
43130 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
43131 Prj.Nmsc.Check_Naming_Scheme.
43134 (Case_Insensitive): New function
43135 (Set_Case_Insensitive): New procedure
43138 (Case_Insensitive): New function
43139 (Set_Case_Insensitive): New procedure
43140 (Project_Node_Record): New flag Case_Insensitive.
43143 (Value_Of): new function to get the string value of a single
43144 string variable or attribute.
43147 (Value_Of): new function to get the string value of a single
43148 string variable or attribute.
43151 (Ada_Default_Spec_Suffix): New function
43152 (Ada_Default_Impl_Suffix): New function
43153 Change definitions of several constants to reflect
43154 new components of record types.
43157 (Naming_Data): Change several components to reflect new
43158 elements of naming schemes.
43159 (Project_Data): New flags Sources_Present and
43160 Language_Independent_Checked.
43161 (Ada_Default_Spec_Suffix): New function.
43162 (Ada_Default_Impl_Suffix): New function.
43165 Modification of predefined names for project manager: added
43166 Implementation, Specification_Exceptions, Implementation_Exceptions,
43167 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
43168 Default_Switches, _Languages, Builder, Cross_Reference,
43169 Finder. Removed Body_Part, Specification_Append, Body_Append,
43170 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
43173 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
43176 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
43177 not that it is Nil_Variable_Value.
43179 * prj.ads: Add ??? for uncommented declarations
43181 2001-10-10 Ed Schonberg <schonber@gnat.com>
43183 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
43184 constant, do not indicate possible modification, so that gigi can
43185 treat it as a bona fide constant.
43187 2001-10-10 Robert Dewar <dewar@gnat.com>
43189 * sem_prag.adb: Add processing for pragma External.
43191 * snames.ads: Add entry for pragma External.
43193 * par-prag.adb: Add pragma External.
43195 * snames.adb: Updated to match snames.ads.
43197 2001-10-10 Ed Schonberg <schonber@gnat.com>
43199 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
43200 a dynamic task if the allocator appears in an indexed assignment
43201 or selected component assignment.
43203 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
43204 For a dynamic task in an assignment statement, use target of
43205 assignment to generate meaningful name.
43207 2001-10-10 Ed Schonberg <schonber@gnat.com>
43209 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
43212 * einfo.ads: Body_Entity is also defined for generic package.
43213 Documentation change only
43215 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
43216 others_choice for a discriminated component initialization,
43217 convert discriminant references into the corresponding discriminals.
43219 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
43220 only if original type is private and expression has to be wrapped
43224 (Apply_Constraint_Check): Do not perform length check
43225 if expression is an aggregate with only an others_choice.
43226 (Length_N_Cond): two references to the same in_parameter
43227 (typically the discriminal in an init_proc) denote the same value.
43228 Two useful optimization uncovered by bugfixes above.
43230 2001-10-10 Robert Dewar <dewar@gnat.com>
43232 * xeinfo.adb: Change int to char in translation of enumeration types.
43233 This fixes a problem in the C representation of component alignment.
43234 Add 2001 to copyright notice
43236 2001-10-10 Richard Kenner <kenner@gnat.com>
43238 * decl.c: (validate_size): Do check size of object of integral type
43239 if it is a packed array type.
43241 2001-10-10 Richard Kenner <kenner@gnat.com>
43243 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
43244 VAR_DECL for constant if not Is_Public but -O0.
43246 2001-10-10 Richard Kenner <kenner@gnat.com>
43248 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
43250 2001-10-10 Geert Bosch <bosch@gnat.com>
43252 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
43253 use '/' as switch character, allowing for absolute file names.
43255 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
43257 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
43260 2001-10-08 Geert Bosch <bosch@gnat.com>
43262 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
43263 Automatically build utilities when files need to be regenerated.
43265 2001-10-08 Geert Bosch <bosch@gnat.com>
43267 * xsnames.adb: New utility for updating snames.ads and snames.adb
43269 2001-10-08 Zack Weinberg <zack@codesourcery.com>
43271 * Make-lang.in (ADAFLAGS): Add -W -Wall.
43272 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
43273 (gnat1): Also depend on attribs.o.
43274 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
43275 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
43276 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
43277 (ADAFLAGS): Add -W -Wall.
43278 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
43281 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
43282 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
43283 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
43284 Use $(ADAC), not $(CC), as compilation command.
43286 (gnattools): Depend directly on tools to build, don't use
43288 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
43290 * einfo.h, sinfo.h: New files (autogenerated).
43292 2001-10-08 Richard Henderson <rth@redhat.com>
43294 * comperr.adb (Abort_In_Progress): New.
43295 (Compiler_Abort): Use it to prevent recursion.
43297 2001-10-08 Robert Dewar <dewar@gnat.com>
43299 * atree.adb: Set Error_Posted in Error node, helps error recovery.
43301 * par-endh.adb (Output_End_Expected): We should also not test
43302 Error_Posted on the Error node, since now it is always set.
43304 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
43305 to help error recovery. Part of general work on 9407-004.
43307 * par.adb: Add ??? for misuse of error
43310 (Resolve): Defend against Error, fixes 9407-003.
43311 (Resolve_Discrete_Subtype_Indication): Defend against Error.
43313 * sinfo.ads (N_Error): Now has Etype field (which will be set
43314 to Any_Type to help error recovery).
43316 2001-10-08 Richard Kenner <kenner@gnat.com>
43318 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
43319 Consistently set MEM attributes from expression; fixes
43320 bootstrap failure on x86.
43322 2001-10-08 Geert Bosch <bosch@gnat.com>
43324 * 5oosinte.adb: Add 2001 to copyright notice.
43326 2001-10-08 Geert Bosch <bosch@gnat.com>
43328 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
43330 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
43332 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
43334 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
43336 2001-10-05 Geert Bosch <bosch@gnat.com>
43338 * adaint.h: Small formatting fix.
43340 2001-10-04 Geert Bosch <bosch@gnat.com>
43342 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
43343 Arg is int, not FILE *, in dummy version of functions.
43345 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
43346 Arg is int, not FILE *.
43348 2001-10-04 Geert Bosch <bosch@gnat.com>
43350 * 3lsoccon.ads: Added file, missed with initial check ins.
43352 * 4lintnam.ads: Fix header format.
43353 Change Linux to GNU/Linux.
43355 * 5iosinte.adb: Change Linux to GNU/Linux.
43357 * 5iosinte.ads: Change Linux to GNU/Linux.
43359 * 5itaprop.adb: Change Linux to GNU/Linux.
43361 * 5itaspri.ads: Change Linux to GNU/Linux.
43362 Update copyright notice.
43364 * 5lintman.adb: Change Linux to GNU/Linux.
43366 * 5lml-tgt.adb: Change Linux to GNU/Linux.
43368 * 5losinte.ads: Change Linux to GNU/Linux.
43370 * 5lsystem.ads: Change Linux to GNU/Linux.
43372 * 5qosinte.adb: Change Linux to GNU/Linux.
43374 * 5qosinte.ads: Change Linux to GNU/Linux.
43376 * 5qparame.ads: Change Linux to GNU/Linux.
43378 * 5qtaprop.adb: Change Linux to GNU/Linux.
43380 * 5qtaspri.ads: Change Linux to GNU/Linux.
43381 Add 2001 to copyright notice.
43383 * 5vintman.ads: Change Linux to GNU/Linux.
43384 Fix header format. Add 2001 to copyright notice.
43386 * g-soccon.ads: Change Linux to GNU/Linux.
43388 * g-trasym.ads: Change Linux to GNU/Linux.
43389 Add 2001 to copyright notice.
43391 * memtrack.adb: Change Linux to GNU/Linux.
43393 * s-intman.ads: Change Linux to GNU/Linux.
43394 Add 2001 to copyright notice. Fix header format.
43396 * s-stache.adb: Change Linux to GNU/Linux.
43398 * adaint.c: Change Linux to GNU/Linux.
43400 * cio.c: Change Linux to GNU/Linux.
43402 * cstreams.c: Change Linux to GNU/Linux.
43404 * init.c: Change Linux to GNU/Linux.
43406 * gmem.c: Change Linux to GNU/Linux.
43408 * tracebak.c: Change Linux to GNU/Linux.
43411 2001-10-02 Geert Bosch <bosch@gnat.com>
43413 * misc.c (insert_default_attributes): Add dummy version.