1 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
3 * exp_ch4.adb (Expand_Concatenation): Do not use calls at -Os.
5 2009-04-17 Pascal Obry <obry@adacore.com>
7 * mingw32.h: Add S2WSC and WS2SC macros to convert to/from
10 * adaint.h: Encoding_Unspecified is now defined. Corresponds to the
11 value when no encoding form paramter is set on Text_IO services.
13 * adaint.c: CurrentCodePage new variable on Windows.
14 Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
17 * mkdir.c: Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
20 * initialize.c: Initialize CurrentCodePage depending on GNAT_CODE_PAGE
21 environment variable value. Default is UTF-8.
23 * s-crtl.ads: Filename_Encoding add Unspecified in the enumeration type.
24 fopen and freopen encoding parameter is now set to Unspecified.
25 The default value is in this case UTF-8 (as it was before) but
26 use the new macros that convert to/from the code page set
27 at runtime (CurrentCodePage).
29 * s-fileio.adb: When no encoding specified use Unspecified value.
31 2009-04-17 Ed Schonberg <schonberg@adacore.com>
33 * atree.adb, atree.ads: Remove dead code.
35 2009-04-17 Arnaud Charlet <charlet@adacore.com>
37 * gcc-interface/Make-lang.in: Update dependencies.
39 2009-04-17 Ed Schonberg <schonberg@adacore.com>
41 * sem_ch3.adb (Access_Subprogram_Definition): Additional checks on
42 illegal uses of incomplete types in formal parts and return types.
44 * sem_ch6.adb (Process_Formals): Taft-amendment types are legal in
45 access to subprograms.
47 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to use
48 Taft-amendment types as the return type of an access_to_function type.
50 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
51 type for access_to_subprograms. The check is performed on package exit.
53 2009-04-17 Ed Schonberg <schonberg@adacore.com>
55 * atree.ads, atree.adb: Move New_Copy_Tree.to sem_util.
57 * nlists.ads, nlists.adb: Move New_Copy_List to sem_util.
59 * lib-load.adb: Use Copy_Separate_Tree rather than New_Copy_Tree
61 * sem_util.ads, sem_util.adb: New_Copy_Tree and New_Copy_List belong in
62 semantic units, because the handling of itypes in the copied tree
63 requires semantic information that does not belong in atree.
65 2009-04-17 Robert Dewar <dewar@adacore.com>
67 * par-ch6.adb: Minor reformatting
69 * prj.adb: Minor reformatting
71 2009-04-17 Gary Dismukes <dismukes@adacore.com>
73 * par-ch6.adb (P_Subprogram): Overriding indicators should be allowed
74 on protected subprogram bodies, so exclude the case where Pf_Flags is
75 Pf_Decl_Pbod from the error check.
77 * par-ch9.adb (P_Protected_Operation_Items): Permit overriding
78 indicators on subprograms in protected bodies, and proceed with parsing
81 * sem_ch6.adb (Verify_Overriding_Indicator): Exclude protected
82 subprograms from the check for primitiveness on subprograms with
83 overriding indicators.
84 (Check_Overriding_Indicator): Include protected subprograms in the
85 style check for missing overriding indicators.
87 2009-04-17 Tristan Gingold <gingold@adacore.com>
89 * init.c: Fix stack checking for x86 Darwin.
91 2009-04-17 Vincent Celier <celier@adacore.com>
93 * prj-attr.adb: New project level attribute Object_File_Suffix
96 * prj-nmsc.adb (Add_Source): Use the object file suffix to get the
98 (Process_Compiler): Process attribute Object_File_Suffix
100 * prj.adb (Object_Name): Use suffix Object_File_Suffix instead of
101 platform suffix, when specified.
103 * prj.ads (Language_Config): New component Object_File_Suffix,
104 defaulted to No_Name.
105 (Object_Name): New parameter Object_File_Suffix, defaulted to No_Name
107 * snames.ads-tmpl: New standard name Object_File_Suffix
109 2009-04-17 Robert Dewar <dewar@adacore.com>
111 * gnat_rm.texi: Add documentation about No_Streams restriction
113 * sem_attr.adb (Check_Stream_Attribute): Exclude implicit stream
114 attributes when checking No_Streams restriction.
116 2009-04-17 Thomas Quinot <quinot@adacore.com>
118 * rtsfind.ads (RE_Request_Destroy): New PolyORB s-parint entity.
120 * exp_dist.adb (PolyORB_Support.Build_General_Calling_Stubs): Add
121 missing calls to RE_Request_Destroy to deallocate request objects after
124 2009-04-17 Nicolas Setton <setton@adacore.com>
126 * link.c: Fix support for passing a response file under Darwin.
128 2009-04-17 Emmanuel Briot <briot@adacore.com>
130 * prj.adb (Free): new subprogram.
132 2009-04-17 Ed Schonberg <schonberg@adacore.com>
134 * sem_ch3.adb: additional initialization on incomplete subtypes.
136 * sem_ch6.adb (Process_Formals): if the subprogram is in the private
137 part and one of the formals is an incomplete tagged type, attach to
138 list of private dependends of the type for later validation.
140 * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to declare
141 primitive operations of a Taft-amendmment type.
143 * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
144 type. The check is performed on package exit, possibly after the
145 subprogram is frozen.
147 2009-04-17 Vincent Celier <celier@adacore.com>
149 * prj-nmsc.adb (Get_Directories): Get the object and exec directory
150 before looking for source directories, but make sure that there are nil
151 if they are not explicitely declared and there is explicitely no
152 sources in the project.
154 2009-04-17 Pascal Obry <obry@adacore.com>
156 * initialize.c: Set gnat_argv with UTF-8 encoded strings on Windows.
158 * init.c: Fix minor typo and style fix.
160 2009-04-17 Robert Dewar <dewar@adacore.com>
162 * a-except.adb, a-except-2005.adb: Add PE_Address_Of_Intrinsic
164 * sem_attr.adb (Analyze_Attribute, case Address): Use
165 PE_Address_Of_Intrinsic.
167 * types.ads: Add PE_Address_Of_Intrinsic
169 * types.h: Add PE_Address_Of_Intrinsic
171 2009-04-17 Nicolas Setton <setton@adacore.com>
173 * gcc-interface/Makefile.in: Under darwin, build shared libraries
174 with install_name starting with "@rpath/".
176 2009-04-17 Nicolas Setton <setton@adacore.com>
178 * link.c: Add darwin section
180 2009-04-16 Robert Dewar <dewar@adacore.com>
182 * g-pehage.adb: Minor reformatting
184 * sem_ch12.adb: Minor reformatting
186 * exp_dist.adb: Minor reformatting
188 * bindgen.adb: Minor style fixes.
190 2009-04-16 Ed Schonberg <schonberg@adacore.com>
192 * sem_eval.adb (Eval_Indexed_Component): Extend constant-folding of
193 indexed components to the case where the prefix is a static string
196 2009-04-16 Javier Miranda <miranda@adacore.com>
198 * exp_ch3.adb (Expand_N_Object_Declaration): In case of build-in-place
199 objects avoid any further expansion of the expression initializing the
202 2009-04-16 Ed Schonberg <schonberg@adacore.com>
204 * sem_ch12.adb (Preanalyze_Actuals): If the instance is a child unit
205 that hides an outer homograph, make that homograph invisible when
206 analyzing the actuals, to to prevent illegal direct visibility on it.
208 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
210 * g-pehage.adb (Initialize): Fix off-by-one error.
212 2009-04-16 Tristan Gingold <gingold@adacore.com>
214 * init.c: Detect real stack overflow on Darwin.
216 * system-darwin-x86.ads: Use stack probing on darwin x86.
218 2009-04-16 Ed Schonberg <schonberg@adacore.com>
220 * sem_attr.adb (Analyze_Attribute, case 'Address): It is illegal to
221 take the address of an intrinsic subprogram.
223 2009-04-16 Arnaud Charlet <charlet@adacore.com>
225 * gcc-interface/Makefile.in: Change g-trasym to g-trasym-unimplemented
226 for the targets where GNAT.Traceback.Symbolic is not supported.
228 2009-04-16 Vincent Celier <celier@adacore.com>
230 * g-trasym-unimplemented.ads, g-trasym-unimplemented.adb: New file.
232 * g-trasym.ads: Update comments.
234 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
236 * tracebak.c (STOP_FRAME): Verify validity of the current address
237 before dereferencing.
239 2009-04-16 Ed Schonberg <schonberg@adacore.com>
241 * sprint.adb (Write_Itype): If the itype is an array subtype, preserve
242 the original location of the index expressions and the index subtypes,
243 to prevent spurious out-of-scope references in gigi.
245 2009-04-16 Tristan Gingold <gingold@adacore.com>
247 * init.c, s-osinte-darwin.ads, system-darwin-x86_64.ads:
248 Add support for stack checking on darwin.
250 2009-04-16 Vincent Celier <celier@adacore.com>
252 * prj-attr.adb: New attribute Runtime_Source_Dir
254 * prj-nmsc.adb (Process_Project_Level_Array_Attributes): Process
255 attribute Runtime_Source_Dir.
256 (Check_Naming_Schemes): Give default values to out parameters to avoid
259 * prj.ads (Language_Config): New component Runtime_Source_Dir
261 * snames.ads-tmpl: New standard name Runtime_Source_Dir
263 2009-04-16 Pascal Obry <obry@adacore.com>
265 * adaint.h, adaint.c (__gnat_rmdir): New routine.
266 Simple wrapper routines used to convert to proper encoding on
269 * s-crtl.ads: Use __gnat_rmdir instead of direct call to the C library.
271 * g-dirope.adb (Remove_Dir): Fix a bug, the root directory was removed
274 2009-04-16 Pascal Obry <obry@adacore.com>
276 * s-crtl.ads, s-os_lib.adb: Minor code clean-up.
278 2009-04-16 Thomas Quinot <quinot@adacore.com>
280 * snames.ads-tmpl (Name_Defined): New predefined name for use by the
281 integrated preprocessor.
283 * prep.ads, prep.adb (Setup_Hooks): New subprogram.
284 (Initialize): Split into two subprograms, Initialize (to be called
285 prior to compiler command line processing) and Setup_Hooks (to be called
286 later on when the first source file is loaded).
288 * gprep.adb: Change call to Prep.Initialize to call to Prep.Setup_Hooks.
289 Add call to Prep.Initialize.
291 * sinput-l.adb, prepcomp.adb: Change call to Prep.Initialize to call
294 2009-04-16 Pascal Obry <obry@adacore.com>
296 * adaint.h, adaint.c (__gnat_chdir): New routine.
297 Simple wrapper routines used to convert to proper encoding on
300 * s-crtl.ads: Use __gnat_chdir instead of direct call to the C library.
302 * a-direct.adb, g-dirope.adb: Use chdir from System.CRTL.
304 2009-04-16 Quentin Ochem <ochem@adacore.com>
306 * sinput-p.adb (Clear_Source_File_Table): Use Sinput.Initialize instead
309 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
311 * a-convec.ads (Is_Empty): Mark inline.
313 2009-04-16 Nicolas Roche <roche@adacore.com>
315 * init.c (__gnat_init_float): Initialize FPU on x86_64 windows
317 2009-04-16 Thomas Quinot <quinot@adacore.com>
319 * prepcomp.adb: Minor reformatting
321 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
323 * sem_prag.adb (Process_Import_Or_Interface): With .NET,
324 Access_Subprogram types can also be imported.
325 (Check_Form_Of_Interface_Name): Accept '/' character in entity CIL
328 2009-04-16 Ed Schonberg <schonberg@adacore.com>
330 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
331 preserve homonym chain when the declaration is rewritten into a
332 renaming declaration, in order to preserve visibility structure.
334 2009-04-16 Jerome Lambourg <lambourg@adacore.com>
336 * sem_prag.adb (Analyze_Pragma): Make sure that pragma pack is not
337 taken into account for VM targets.
339 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
341 * g-calend.ads, g-calend.adb (Week_In_Year): Now calls
343 (Year_Week_In_Year): New routine which contains the original code from
344 Week_In_Year. Add the missing special case for January 1st falling on
347 2009-04-16 Thomas Quinot <quinot@adacore.com>
349 * exp_dist.adb (Build_From_Any_Call): For a subtype that is a generic
350 actual type, use the base type to build the To_Any function.
351 (Build_From_Any_Function): Remove junk, useless subtype conversion.
353 2009-04-16 Thomas Quinot <quinot@adacore.com>
355 * exp_ch9.adb, exp_code.adb, tbuild.adb, sem_case.adb,
356 restrict.adb: Minor code reorganization (use
357 Add_{Char,Str}_To_Name_Buffer instead of inlining it by hand).
359 2009-04-16 Bob Duff <duff@adacore.com>
361 * exp_ch6.ads, exp_ch6.adb (Is_Build_In_Place_Function_Return): Remove,
364 2009-04-16 Thomas Quinot <quinot@adacore.com>
366 * sem_ch4.adb: Minor reformatting
368 * adaint.c: Remove junk duplicated code.
370 * sem_ch3.adb: Minor reformatting
372 * exp_dist.adb: Minor comment rewording
374 2009-04-16 Robert Dewar <dewar@adacore.com>
376 * gnat_rm.texi: Document effect of Assume_No_Invalid_Values and -gnatVa
379 2009-04-16 Ed Schonberg <schonberg@adacore.com>
381 * sem_ch4.adb (Find_Equality_Types): Filter out types that are not
382 usable before calling Add_One_Interp, to resolve spurious ambiguities.
384 2009-04-16 Robert Dewar <dewar@adacore.com>
386 * Make-lang.in: Add entries for s-conca?.o
388 * Makefile.rtl: Add entries for s-conca?
390 * debug.adb: Add debug flags -gnatd.c and -gnatd.C to control behavior
391 of concatenation expansion
393 * exp_ch4.adb (Expand_Concatenation): Generate calls for certain
394 string cases instead of expanding assignments inline.
396 * opt.ads (Optimize_Size): New flag
398 * s-conca2.ads, s-conca2.adb, s-conca3.adb, s-conca3.ads,
399 s-conca4.adb, s-conca4.ads, s-conca5.adb, s-conca5.ads, s-conca6.adb,
400 s-conca6.ads, s-conca7.ads, s-conca7.adb, s-conca8.adb, s-conca8.ads,
401 s-conca9.adb, s-conca9.ads: New file.
403 2009-04-16 Robert Dewar <dewar@adacore.com>
405 * exp_ch6.adb: Add comments
407 * rtsfind.ads: Add entries for s-conca? routines
409 2009-04-16 Arnaud Charlet <charlet@adacore.com>
411 * gcc-interface/Make-lang.in: Update dependencies.
413 * gcc-interface/Makefile.in: Update translation for vms.
415 2009-04-16 Ed Schonberg <schonberg@adacore.com>
417 * sem_ch12.adb (Map_Formal_Package_Entities): renamed from Map_Entities
418 and made global, to be used when installing parents of a child
419 instance, to provide mappings for entities declared in formal packages
420 of ancestor units. Now called from Install_Formal_Packages.
422 2009-04-16 Doug Rupp <rupp@adacore.com>
424 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events with others
425 notation for clarity.
427 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
428 s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
429 s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-posix.adb
430 (Initialize): Initialize Known_Tasks with Environment task.
432 * s-taskin.ads (Task_States): Move new states to end for the sake of
435 * s-tassta.adb (Task_Wrapper): Fix comment about Enter_Task.
437 2009-04-16 Ed Schonberg <schonberg@adacore.com>
439 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): If a protected
440 operation has an inline pragma, propagate the flag to the internal
441 unprotected subprogram.
443 2009-04-16 Doug Rupp <rupp@adacore.com>
445 * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-mingw.adb,
446 s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-irix.adb,
447 s-taprop-hpux-dce.adb, s-taprop-posix.adb
448 (Enter_Task): Move Known_Tasks initialization to s-tassta.adb
450 * s-taprop-vms.adb (Enter_Task): Likewise.
451 (Initialize): Import DBEXT, Debug_Register. Register DBGEXT callback.
453 * s-tassta.adb (Activate_Tasks): After task creation set state to
454 Activating, vice Runnable. Initialize Known_Tasks, moved here from
455 s-taprop.adb (Enter_Task). Set Debug_Event_Activating for debugger.
456 Set state to Runnable after above.
457 (Task_Wrapper): Set Debug_Event_Run. In exception block set
458 Debug_Event_Terminated.
460 * s-taskin.ads (Task_States): Add new states Activiting and
461 Activator_Delay_Sleep.
462 (Bit_Array, Debug_Event_Array): New types.
463 (Global_Task_Debug_Event_Set: New flag.
464 (Common_ATCB): New field Debug_Events.
466 * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events.
468 * s-tasren.adb (Timed_Selective_Wait): Set Activator_Delay_Sleep vice
471 * s-tasini.adb (Locked_Abort_To_Level): Add case alternatives for when
472 Activating and when Acceptor_Delay_Sleep.
474 * s-tasdeb.ads: Add constants for Debug_Events.
475 (Debug_Event_Kind_Type): New subtype.
476 (Signal_Debug_Event): New subprogram.
478 * s-tasdeb.adb (Signal_Debug_Event): New null subprogram.
480 2009-04-16 Thomas Quinot <quinot@adacore.com>
482 * sem_elim.adb: Minor reformatting
484 * freeze.adb: Minor reformatting
486 * exp_ch4.adb: Minor reformatting
488 2009-04-16 Emmanuel Briot <briot@adacore.com>
490 * prj-nmsc.adb (Path_Name_Of): fix memory leak
492 2009-04-16 Robert Dewar <dewar@adacore.com>
494 * sinfo.ads (Backwards_OK, Forwards_OK): Clarify documentation
496 2009-04-16 Vincent Celier <celier@adacore.com>
498 * fmap.adb (Initialize): Show the current line when the mapping file
499 is detected as "incorrectly formatted".
501 2009-04-16 Robert Dewar <dewar@adacore.com>
503 * sem_ch12.adb: Minor reformatting
505 * sem_ch5.adb: Minor comment addition
507 * sem_util.adb: Minor reformatting
509 * sinput-p.adb: Minor reformatting
510 Add missing pragma Warnings (On)
512 2009-04-16 Ed Falis <falis@adacore.com>
514 * s-vxwext-kernel.adb: (ERROR): deleted unused constant
516 2009-04-16 Vincent Celier <celier@adacore.com>
518 * ali-util.adb: Minor comment spelling error fix
520 2009-04-16 Eric Botcazou <ebotcazou@adacore.com>
522 * exp_ch5.adb (Expand_Assign_Array): For the GCC back-end, do not
523 generate an assignment loop in case of overlap.
525 2009-04-16 Olivier Hainque <hainque@adacore.com>
527 * gnat_ugn.texi (gnatmem description): Make it explicit that
528 gnatmem is designed to work in association with static runtime
531 2009-04-16 Thomas Quinot <quinot@adacore.com>
533 * sem_type.adb: Minor reformatting
535 2009-04-16 Hristian Kirtchev <kirtchev@adacore.com>
537 * s-osprim-darwin.adb, s-osprim-posix.adb (Clock): Add comment
538 concerning return codes of gettimeofday and return value check.
540 2009-04-16 Ed Falis <falis@adacore.com>
542 * s-vxwext-kernel.ads (Int_Lock, Int_Unlock): set to convention C so
543 body can be renaming of imported routines.
545 2009-04-16 Vasiliy Fofanov <fofanov@adacore.com>
547 * s-asthan-vms-alpha.adb: Disable warnings on alignment in a more
550 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
552 * exp_ch9.adb: Comment improvements.
553 (Build_Entry_Family_Name): Add parentheses around the index of a entry
556 2009-04-15 Bob Duff <duff@adacore.com>
558 * sem_warn.adb (Check_Infinite_Loop_Warning): Catch cases like
559 "while X /= null loop" where X is unchanged inside the loop. We were
560 not warning in this case, because of the pointers -- we feared that the
561 loop variable could be updated via a pointer, if there are any pointers
562 around the place. But that is impossible in this case.
564 * sem_util.adb (May_Be_Lvalue): This routine was overly pessimistic in
565 the case of dereferences. In X.all, X cannot be an l-value. We now
566 catch that case (and implicit dereferences, too).
568 2009-04-15 Vincent Celier <celier@adacore.com>
570 * sinput-p.ads, sinput-p.adb (Clear_Source_File_Table): New procedure
572 2009-04-15 Ed Schonberg <schonberg@adacore.com>
574 * sem_ch12.adb (Is_Actual_Of_Previous_Formal): Make fully recursive.
576 (Analyze_Package_Instantiation): If generic unit in child instance is
577 the same as generic unit in parent instance, look for an outer homonym
578 to locate the desired generic.
580 2009-04-15 Bob Duff <duff@adacore.com>
582 * sem_ch5.adb (Analyze_Loop_Statement): Don't check for infinite loop
583 warnings unless the loop comes from source, because checking generated
584 loops is a waste of time, and makes it harder to debug
585 Check_Infinite_Loop_Warning.
587 * sem_warn.adb (Check_Infinite_Loop_Warning): If the local variable
588 tested in the while loop is a renaming, do not warn. Otherwise, we get
589 false alarms, because it's usually renaming something that we can't
590 deal with (an indexed component, a global variable, ...).
592 * gnat_rm.texi: Fix typo
594 2009-04-15 Thomas Quinot <quinot@adacore.com>
596 * sem_ch6.adb: Minor reformatting
598 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
600 * exp_ch7.adb (Expand_Ctrl_Function_Call): Check for the case where the
601 immediate parent of the controlled function call is a component
604 2009-04-15 Ed Schonberg <schonberg@adacore.com>
606 * sem_ch8.adb (Use_One_Type): If the type is tagged, indicate that the
607 corresponding class-wide type is also in use.
609 2009-04-15 Thomas Quinot <quinot@adacore.com>
611 * frontend.adb: Minor comment fix
613 2009-04-15 Robert Dewar <dewar@adacore.com>
615 * gnatchop.adb (BOM_Length): New global variable
616 (Write_Unit): Add new parameter Write_BOM
617 (Write_Chopped_Files): Check for BOM and set Write_BOM for call
620 * gnat_ugn.texi: Add note on propagation of BOM by gnatchop
622 2009-04-15 Geert Bosch <bosch@adacore.com>
624 * system-mingw-x86_64.ads, system-darwin-x86_64.ads
625 (Backend_Overflow_Checks): Set to True.
627 2009-04-15 Gary Dismukes <dismukes@adacore.com>
629 * par-ch3.adb (P_Type_Declaration): Issue an error if the synchronized
630 keyword is given in a record extension.
632 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
634 * exp_ch7.adb (Expand_Ctrl_Function_Call): Procede with the expansion
635 of a controlled function call in the context of a record aggregate.
636 This does not apply to array aggregates since the call will be expanded
639 2009-04-15 Ed Falis <falis@adacore.com>
641 * s-osinte-vxworks-kernel.adb, s-osinte-vxworks.adb,
642 s-osinte-vxworks.ads s-vxwext.ads, s-vxwext-kernel.adb,
643 s-vxwext-kernel.ads, s-vxwext-rtp.ads, s-vxwext-rtp.adb: Reorganize
644 s-osinte-vxworks* and s-vxwext*.
646 2009-04-15 Arnaud Charlet <charlet@adacore.com>
648 * gcc-interface/Make-lang.in: Update dependencies.
650 * gcc-interface/Makefile.in: Reorganization of s-osinte-vxworks*
653 2009-04-15 Robert Dewar <dewar@adacore.com>
655 * sem_ch13.adb (Unchecked_Conversions): Store source location instead
656 of node for location for warning messages.
658 * gnatchop.adb: Minor reformatting
660 2009-04-15 Ed Schonberg <schonberg@adacore.com>
662 * exp_ch6.adb: additional guard for renaming declarations for in
663 parameters of an array type.
665 2009-04-15 Robert Dewar <dewar@adacore.com>
667 * sem_eval.adb (Get_Static_Length): Go to origin node for array bounds
668 in case they were rewritten by expander (Force_Evaluation).
670 * targparm.adb (Get_Target_Parameters): Correct check for
671 Suppress_Exception_Locations.
673 2009-04-15 Ed Schonberg <schonberg@adacore.com>
675 * exp_ch6.adb (Expand_Inlined_Call): If an in-parameter in a call to be
676 inlined is of an array type that is not bit-packed, use a renaming
677 declaration to capture its value, rather than a constant declaration.
679 2009-04-15 Robert Dewar <dewar@adacore.com>
681 * rtsfind.adb: Minor reformatting.
683 2009-04-15 Emmanuel Briot <briot@adacore.com>
685 * prj-part.adb, prj-tree.adb, prj-tree.ads (Restore_And_Free): renames
686 Restore, and free the saved context.
688 2009-04-15 Gary Dismukes <dismukes@adacore.com>
690 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Move error check
691 for illegal private extension from a synchronized interface parent in
692 front of check for illegal limited extension so that limited extension
693 from a synchronized interface will be rejected.
694 (Check_Ifaces): Check that a private extension that has a synchronized
695 interface as a progenitor must be explicitly declared synchronized.
696 Also check that a record extension cannot derive from a synchronized
699 2009-04-15 Pascal Obry <obry@adacore.com>
701 * adaint.h (__gnat_unlink): Add spec.
702 (__gnat_rename): Likewise.
704 2009-04-15 Vincent Celier <celier@adacore.com>
706 * prj-nmsc.adb: Minor spelling error corrections in error messages
708 2009-04-15 Robert Dewar <dewar@adacore.com>
710 * sinfo.ads: Minor comment update
712 * opt.ads: Minor comment updates
714 * checks.adb (Enable_Overflow_Check): Do not set Do_Overflow_Check for
717 2009-04-15 Ed Schonberg <schonberg@adacore.com>
719 * exp_disp.ads, exp_disp.adb (Register_Primitive): Is now a function
720 that generates the code needed to update a dispatch table when a
721 primitive operation is declared with a subprogram body without previous
722 spec. Insertion of the generated code is responsibility of the caller.
723 (Make_DT): When building static tables, append the code created by
724 Register_Primitive to update a secondary table after it has been
727 * exp_ch3.adb, exp_ch6.adb: use new version of Register_Primitive.
729 * sem_disp.adb (Check_Dispatching_Operation): Call Register_Primitive
730 on an overriding operation that implements an interface operation only
731 if not building static dispatch tables.
733 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
735 * a-caldel-vms.adb (To_Duration): Declare a "safe" end of time which
736 does not cause overflow when converted to Duration. Use the safe value
737 as the maximum allowable time delay..
739 2009-04-15 Jerome Lambourg <lambourg@adacore.com>
741 * g-comlin.adb (Set_Command_Line): When adding a switch with attached
742 parameter, specify that the delimiter is NUL, otherwise "-j2" will be
743 translated to "-j 2".
745 2009-04-15 Bob Duff <duff@adacore.com>
747 * rtsfind.adb (Maybe_Add_With): Split out procedure to add implicit
748 with_clauses, to avoid code duplication. Change this processing so we
749 always add a with_clause on the main unit if needed.
751 2009-04-15 Pascal Obry <obry@adacore.com>
753 Add support for Win32 native encoding for delete/rename routines.
755 * adaint.c (__gnat_unlink): New routine.
756 (__gnat_rename): New routine.
757 Simple wrapper routines used to convert to proper encoding on
760 * s-os_lib.adb: Use __gnat_unlink and __gnat_rename instead of direct
761 call to the C library.
763 * g-sercom-mingw.adb, s-win32.ads: Update Win32 binding.
765 2009-04-15 Robert Dewar <dewar@adacore.com>
767 * s-tassta.adb: Minor reformatting
769 2009-04-15 Robert Dewar <dewar@adacore.com>
771 * frontend.adb (Frontend): Set proper default for
772 Warn_On_Non_Local_Exception.
774 * opt.ads (Exception_Handler_Encountered): New flag
775 (No_Warn_On_Non_Local_Exception): New flag
777 * par-ch11.adb (P_Exception_Handler): Set Exception_Handler_Encountered
779 * sem_warn.adb (Set_Warning_Switch): Set No_Warn_On_Non_Local_Exception
780 (Set_Dot_Warning_Switch): Set No_Warn_On_Non_Local_Exception
782 2009-04-15 Cyrille Comar <comar@adacore.com>
784 * s-tassta.adb, a-exextr.adb, a-elchha.adb
785 (Ada.Exception.Last_Chance_Handler): Do not print unhandled exception
786 message when exception traces are active since it would generate
787 redundant information.
788 (Exception_Traces.Notify_Exception): put message output by a critical
789 section to avoid unsynchronized output.
790 (Trace_Unhandled_Exception_In_Task): put message output by a critical
791 section to avoid unsynchronized output.
793 2009-04-15 Emmanuel Briot <briot@adacore.com>
795 * g-comlin.adb, prj-tree.adb, prj-tree.ads, prj.adb, prj.ads
796 (Free): New subprogram.
798 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
800 * a-calend.adb: Add new constant Nanos_In_Four_Years.
801 (Formatting_Operations.Time_Of): Change the way four year chunks of
802 nanoseconds are added to the intermediate result.
804 2009-04-15 Nicolas Setton <setton@adacore.com>
806 * sysdep.c: Add __APPLE__ in the list of systems where get_immediate
807 does not need to wait for a carriage return.
809 2009-04-15 Tristan Gingold <gingold@adacore.com>
811 * bindgen.adb: Do not generate adafinal if No_Finalization restriction
814 2009-04-15 Ed Schonberg <schonberg@adacore.com>
816 * freeze.adb (Freeze_Entity): improve error message for improper use of
818 Diagnose additional illegal uses of incomplete types in formal parts.
819 appearing in formal parts.
821 * sem_ch6.adb (Process_Formals, Analyze_Return_Type): ditto.
823 2009-04-15 Robert Dewar <dewar@adacore.com>
825 * exp_ch4.adb (Expand_N_Allocator): Install test for object too large.
827 2009-04-15 Nicolas Roche <roche@adacore.com>
829 * adaint.c: Add function __gnat_lwp_self that retrieves the LWP of the
832 * s-osinte-linux.ads: Import the __gnat_lwp_self function as lwp_self
834 * s-taprop-linux.adb (Enter_Task): Store the LWP in the TCB
836 2009-04-15 Ed Schonberg <schonberg@adacore.com>
838 * sem_ch4.adb: improve error message on exponentiation.
840 2009-04-15 Hristian Kirtchev <kirtchev@adacore.com>
842 * a-calend.adb: Move constant Epoch_Offset from package
843 Conversion_Operations to top level.
844 (Delay_Operations.To_Duration): Define a constant which represents
845 "end of time" and use it as a guard against very distant delay dates.
846 Protect the code against overflow when performing the origin shift to
849 2009-04-15 Robert Dewar <dewar@adacore.com>
851 * sem_prag.adb: Minor reformatting.
853 * sem_type.adb: Minor reformatting
855 2009-04-15 Javier Miranda <miranda@adacore.com>
857 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Add missing
858 support to check eliminated subprograms.
860 * sem_elim.ads (Eliminate_Error_Msg): Update documentation.
862 * sem_elim.adb (Set_Eliminated): Add support for elimination of
863 dispatching subprograms.
865 * exp_disp.adb (Make_DT): Minor code cleanup when freezing primitive
866 operations. Initialize with "null" the slots of eliminated dispaching
868 (Write_DT): Add output for eliminated primitives.
870 * sem_disp.adb (Check_Dispatching_Call): Check eliminated primitives.
872 2009-04-15 Ed Schonberg <schonberg@adacore.com>
874 * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit,
875 the second is redundant, regardless of scopes.
877 2009-04-15 Vincent Celier <celier@adacore.com>
879 * prj-nmsc.adb (Get_Directories): Check for sources before checking
880 the object directory as when there are no sources, they may not be any
883 * make.adb (Gnatmake): Do not attempt to get the path name of the exec
884 directory, when there are no exec directory.
886 2009-04-15 Ed Schonberg <schonberg@adacore.com>
888 * sem_type.adb (Remove_Conversions): In order to resolve spurious
889 ambiguities, refine removal of universal interpretations from complex
890 expressions with literal arguments, when some numeric operators have
891 been declared abstract.
893 2009-04-15 Ed Falis <falis@adacore.com>
895 * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity
896 and backward compatibility for targets using probing for stack overflow
898 2009-04-15 Ed Schonberg <schonberg@adacore.com>
900 * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal
901 after any declaration, including renaming declarations.
903 2009-04-15 Arnaud Charlet <charlet@adacore.com>
905 * gcc-interface/Make-lang.in: Update dependencies.
907 * gcc-interface/Makefile.in: Fix VxWorks target pairs.
908 Update xenomai target pairs.
910 2009-04-15 Javier Miranda <miranda@adacore.com>
912 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
914 * sem_ch6.adb (Check_Anonymous_Return): Add missing support for
915 functions returning anonymous access to class-wide limited types. Mark
916 also the containing scope as a task master.
918 * sem_ch8.adb (Restore_Scope_Stack): Add missing management for
919 limited-withed packages. Required to restore their visibility after
920 processing packages associated with implicit with-clauses.
922 * exp_ch3.adb (Build_Class_Wide_Master): Avoid marking masters
923 associated with return statements because this work is now done by
924 Check_Anonymous_Return.
925 (Build_Master): Code cleanup.
927 2009-04-15 Thomas Quinot <quinot@adacore.com>
929 * sem_warn.ads: Minor reformatting
931 2009-04-15 Ed Schonberg <schonberg@adacore.com>
933 * sem_ch3.adb: better error message for illegal interfaces
935 * sem_ch6.adb (Possible_Freeze): Delay freezing a subprogram if a
936 formal is an incomplete type from a limited_with clause.
938 2009-04-15 Vincent Celier <celier@adacore.com>
940 * prj-nmsc.adb (Locate_Directory): New Boolean parameter
941 Externally_Built indicating if the project is externally built. If it
942 is, and --subdirs is specified, but the subdir does not exist, look
943 for the specified directory, without the subdir.
945 2009-04-15 Gary Dismukes <dismukes@adacore.com>
947 * a-tasatt.adb: Fix typo, plus minor reformatting
949 * sem_ch3.ads: Add missing hyphen ("class wide" => "class-wide").
951 * sem_ch10.adb: Add missing hyphen ("use visible" => "use-visible").
953 2009-04-15 Ed Schonberg <schonberg@adacore.com>
955 * sem_ch3.adb (Analyze_Private_Extension_Declaration): Verify that a
956 private extension whose parent is a synchronized interface carries an
957 explicit synchronized keyword.
959 2009-04-15 Thomas Quinot <quinot@adacore.com>
961 * exp_smem.adb (Make_Shared_Var_Procs): For a protected type,
962 instantiate generic shared object package with the corresponding
965 2009-04-15 Arnaud Charlet <charlet@adacore.com>
967 * system-linux-sparc.ads: Remove obsolete entries.
969 2009-04-15 Thomas Quinot <quinot@adacore.com>
971 * s-tasuti.ads: Add ??? comment
973 2009-04-15 Ed Schonberg <schonberg@adacore.com>
975 * sem_ch3.adb (Analyze_Type_Declaration): Create freeze node for access
976 type even if the designated type comes from a limited_with clause, to
977 ensure that the symbol for the finalization list of the access type is
980 2009-04-10 Robert Dewar <dewar@adacore.com>
982 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): Catch more cases
983 for warning suppression.
985 2009-04-10 Ed Schonberg <schonberg@adacore.com>
987 * sem_ch8.adb (Use_One_Type): If the two use_type clauses are
988 identical, there is no redudancy to check.
990 2009-04-10 Gary Dismukes <dismukes@adacore.com>
992 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Delete redundant
993 calls initializing SS_Allocator (which is initialized in following
995 (Expand_Simple_Function_Return): Add comment about False value for
996 Comes_From_Source on secondary-stack allocator.
998 * exp_ch9.adb (Build_Entry_Family_Name): Add comment.
999 (Build_Entry_Name): Add comment.
1001 2009-04-10 Robert Dewar <dewar@adacore.com>
1003 * einfo.ads, einfo.adb (Low_Bound_Tested): New name for Low_Bound_Known
1005 * sem_prag.adb (Analyze_Pragma, case Check): Remove check for lower
1006 bound tested, since this is now done more generally in Sem_Res.
1008 * sem_res.adb (Resolve_Comparison_Op): Add call to
1009 Check_Lower_Bound_Tested.
1010 (Resolve_Equality_Op): Add call to Check_Lower_Bound_Tested
1012 * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): New procedure
1013 (Low_Bound_Tested): New name for Low_Bound_Known flag
1015 * exp_ch5.adb: Minor reformatting
1018 Add comments on copying the Comes_From_Source flag for allocators
1021 Add comments on copying the Comes_From_Source flag for allocators
1023 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Copy
1024 Comes_From_Source flag from old allocator to new one.
1026 2009-04-10 Ed Schonberg <schonberg@adacore.com>
1028 * sem_ch6.ads: Address missing documentation query
1030 2009-04-10 Vincent Celier <celier@adacore.com>
1033 Add new Linker attributes Max_Command_Line_Length, Response_File_Format
1034 and Response_File_Switches.
1036 * prj-nmsc.adb (Process_Linker): Process new attributes
1037 Max_Command_Line_Length, Response_File_Format and
1038 Response_File_Switches.
1040 * prj.ads (Response_File_Format): New enumeration type
1041 (Project_Configuration): New componants Max_Command_Line_Length,
1042 Resp_File_Format and Resp_File_Options.
1044 * snames.ads-tmpl: Add new standard names for linking response files
1045 for gprbuild: GNU, None, Object_List, Option_List,
1046 Max_Command_Line_Length, Response_File_Format and
1047 Response_File_Switches.
1049 2009-04-10 Geert Bosch <bosch@adacore.com>
1051 * system-aix.ads, system-darwin-ppc.ads, system-darwin-x86.ads,
1052 system-freebsd-x86.ads, system-hpux.ads, system-hpux-ia64.ads,
1053 system-irix-n32.ads, system-irix-o32.ads, system-linux-alpha.ads,
1054 system-linux-hppa.ads, system-linux-ia64.ads, system-linux-ppc.ads,
1055 system-linux-s390.ads, system-linux-s390x.ads, system-linux-sh4.ads,
1056 system-linux-sparc.ads, system-linux-x86_64.ads, system-linux-x86.ads,
1057 system-mingw.ads, system-solaris-sparc.ads, system-solaris-sparcv9.ads,
1058 system-solaris-x86.ads, system-tru64.ads, system-vms_64.ads,
1059 system-vms.ads, system-vms-ia64.ads, system-vms-zcx.ads,
1060 system-vxworks-arm.ads, system-vxworks-m68k.ads,
1061 system-vxworks-mips.ads, system-vxworks-ppc.ads,
1062 system-vxworks-sparcv9.ads, system-vxworks-x86.ads
1063 (Backend_Overflow_Checks): Set to True.
1065 2009-04-10 Thomas Quinot <quinot@adacore.com>
1067 * exp_attr.adb: Minor reformatting
1069 2009-04-10 Ed Schonberg <schonberg@adacore.com>
1071 * sem_prag.adb (Check_Precondition_Postcondition): Within a generic,
1072 analyze the expression for a postcondition, even if the compiler mode
1075 2009-04-10 Robert Dewar <dewar@adacore.com>
1077 * sem_aux.adb: Minor reformatting
1079 2009-04-10 Ed Falis <falis@adacore.com>
1081 * init.c: Change VxWorks 6 stack overflow checking for kernel apps.
1083 * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header.
1085 2009-04-10 Thomas Quinot <quinot@adacore.com>
1087 * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
1088 undocumented formal.
1091 * a-direio.ads: Fix typo in comment
1093 * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
1094 errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
1095 Use uniform phrasing for comment at start of subprogram body.
1097 * xsnamest.adb: Add note to explain why we use specific names for the
1098 newly generated files instead of generating snames.{ads,adb,h} directly
1100 2009-04-10 Sergey Rybin <rybin@adacore.com>
1103 Add qualifier for new gnatstub option '--no-exception'
1106 Add the description of the new gnatstub option '--no-exception'
1108 2009-04-10 Robert Dewar <dewar@adacore.com>
1110 * rtsfind.adb: Minor reformatting
1112 2009-04-10 Thomas Quinot <quinot@adacore.com>
1114 * sem_disp.adb: Minor reformatting.
1115 Add comment pointing to RM clause for the case of warning against a
1116 (failed) attempt at declaring a primitive operation elsewhere than in a
1119 2009-04-10 Ed Schonberg <schonberg@adacore.com>
1121 * sem_ch12.adb (Denotes_Formal_Package): Check whether the package is
1122 an actual for a previous formal package of the current instance.
1124 2009-04-10 Bob Duff <duff@adacore.com>
1126 * rtsfind.adb (RTE): Put implicit with_clauses on whatever unit needs
1127 them first, rather than on the extended main unit.
1129 2009-04-10 Ed Schonberg <schonberg@adacore.com>
1131 * sem_ch6.adb (Check_Discriminant_Conformance): If discriminant
1132 specification of full view carries a null exclusion indicator, create
1133 an itype for it, to check for conformance with partial view.
1135 2009-04-10 Bob Duff <duff@adacore.com>
1137 * rtsfind.ads: Minor code change: make RE_Unit_Table constant.
1139 * rtsfind.adb: Minor comment changes, and remove useless code.
1141 * sinfo.ads: Add ??? comment.
1143 2009-04-10 Vincent Celier <celier@adacore.com>
1145 * vms_data.ads: Add missing GNAT SYNC VMS qualifiers -main= and -U
1147 2009-04-10 Ed Schonberg <schonberg@adacore.com>
1149 * exp_attr.adb (Expand_N_Attribute_Reference, case 'Tag): If the tagged
1150 type is a synchronized type, retrieve tag information from the
1151 corresponding record, which has the dispatch table link.
1153 2009-04-10 Jerome Lambourg <lambourg@adacore.com>
1155 * g-comlin.adb (Group_Analysis): Take care of switches that might be
1156 decomposed afterwards, but are present as-is in the command line
1157 configuration, and thus should be kept as-is.
1159 2009-04-10 Robert Dewar <dewar@adacore.com>
1161 * gnat_rm.texi: Document that postconditions are tested on implicit
1164 * sem_aux.adb: Minor reformatting
1166 2009-04-10 Gary Dismukes <dismukes@adacore.com>
1168 * itypes.adb (Create_Null_Excluding_Itype): Apply Base_Type when
1171 * par-ch3.adb (P_Access_Type_Definition): Set new attribute
1172 Null_Exclusion_In_Return_Present when an access-to-function type has a
1173 result type with an explicit not null.
1175 * sem_ch3.adb (Access_Subprogram_Definition): If a null exclusion is
1176 given on the result type, then create a null-excluding itype for the
1179 * sem_ch6.adb (Analyze_Return_Type): Create a null-excluding itype in
1180 the case where a null exclusion is imposed on a named access type.
1181 (Analyze_Subprogram_Specification): Push and pop the scope of the
1182 function around the call to Analyze_Return_Type in the case of no
1183 formals, for consistency with handling when formals are present
1184 (Process_Formals does this). Ensures that any itype created for the
1185 return type will be associated with the proper scope.
1187 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): If a null
1188 exclusion is given on a generic function's result type, then create a
1189 null-excluding itype for the generic function.
1190 (Instantiate_Object): Set Null_Exclusion_Present of a constant created
1191 for an actual for a formal in object according to the setting on the
1192 formal. Ensures null exclusion checks are done when the association is
1195 * sinfo.ads: Add new flag Null_Exclusion_In_Return_Present on
1196 N_Access_Function_Definition.
1198 * sinfo.adb: Add Get_ and Set_ operations for
1199 Null_Exclusion_In_Return_Present.
1201 2009-04-10 Bob Duff <duff@adacore.com>
1203 * exp_ch5.adb, exp_ch6.adb, sem_ch6.adb: Move the code that creates a
1204 call to the _Postconditions procedure in the case of implicit returns
1205 from analysis to expansion. This eliminates some duplicated code. Use
1206 the Postcondition_Proc to find the identity of this procedure during
1209 2009-04-10 Robert Dewar <dewar@adacore.com>
1211 * sem_ch6.adb: Minor code clean up.
1213 * einfo.ads, sem_attr.adb: Minor comment fixes.
1215 2009-04-10 Robert Dewar <dewar@adacore.com>
1217 * sem_ch8.adb: Minor reformatting
1219 2009-04-10 Robert Dewar <dewar@adacore.com>
1221 * einfo.ads, einfo.adb (Postcondition_Proc): New attribute for
1224 * sem_ch6.adb: Minor code clean up.
1226 2009-04-10 Robert Dewar <dewar@adacore.com>
1228 * mlib-tgt-specific-xi.adb: Minor reformatting
1230 2009-04-10 Bob Duff <duff@adacore.com>
1232 * einfo.ads: Minor comment fixes
1234 2009-04-10 Vincent Celier <celier@adacore.com>
1236 * snames.ads-tmpl: Remove names that are no longer used in the
1238 Mark specifically those that are used only in gprbuild
1240 2009-04-10 Eric Botcazou <ebotcazou@adacore.com>
1242 * init.c: Adjust EH support code on Alpha/Tru64.
1244 2009-04-10 Bob Duff <duff@adacore.com>
1246 * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions
1247 procedure on every path that could return implicitly (not via a return
1248 statement) from a procedure.
1250 2009-04-10 Ed Schonberg <schonberg@adacore.com>
1252 * exp_ch9.adb (Build_Master_Entity): An extended return statement is a
1253 valid scope for a task declarations and therefore for a master id.
1255 2009-04-10 Robert Dewar <dewar@adacore.com>
1257 * sem_aux.adb: Minor reformatting
1259 2009-04-10 Vincent Celier <celier@adacore.com>
1261 * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to
1263 (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False
1264 (Set_Obsolescent_Check): New procedure to change the value of
1265 Obsolescent_Check_Flag.
1267 * scn.ads (Set_Obsolescent_Check): New procedure to control
1270 * sinput-l.adb (Load_File): Do not check for pragma Restrictions on
1271 obsolescent features while preprocessing.
1273 2009-04-10 Thomas Quinot <quinot@adacore.com>
1275 * xsnamest.adb: Use XUtil to have uniform line endings (UNIX style) in
1276 generated files on all platforms.
1278 2009-04-10 Robert Dewar <dewar@adacore.com>
1280 * sem_aux.adb: Minor reformatting
1282 2009-04-10 Ed Schonberg <schonberg@adacore.com>
1284 * sem_ch3.adb (Access_Definition): Handle properly the case of a
1285 protected function with formals that returns an anonymous access type.
1287 2009-04-10 Thomas Quinot <quinot@adacore.com>
1289 * sem_disp.adb: Minor reformatting
1291 2009-04-10 Vasiliy Fofanov <fofanov@adacore.com>
1293 * seh_init.c: Do not use the 32-bit specific implementation of
1294 __gnat_install_SEH_handler on 64-bit Windows target (64-bit specific
1297 2009-04-10 Jose Ruiz <ruiz@adacore.com>
1299 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Target_Name may contain
1300 a '/' at the end so we better use the complete target name to determine
1301 whether it is a PowerPC 55xx target.
1303 2009-04-10 Thomas Quinot <quinot@adacore.com>
1305 * sem_eval.adb: Minor reformatting
1307 2009-04-10 Thomas Quinot <quinot@adacore.com>
1309 * snames.h, snames.ads, snames.adb: Remove files, now generated from
1312 * snames.h-tmpl, snames.ads-tmpl, snames.adb-tmpl: Templates for the
1315 * xsnamest.adb: New file.
1317 * gcc-interface/Make-lang.in: New target for automated generation of
1318 snames.ads, snames.adb and snames.h
1320 2009-04-10 Tristan Gingold <gingold@adacore.com>
1322 * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to
1323 avoid compile time warnings.
1324 Do not add gcc/config in include search list while compiling the RTS.
1325 Pragma Thread_Local_Storage is available on any target.
1327 2009-04-10 Bob Duff <duff@adacore.com>
1329 * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes.
1331 2009-04-10 Tristan Gingold <gingold@adacore.com>
1333 * init.c: Install signal handler on Darwin.
1335 2009-04-10 Robert Dewar <dewar@adacore.com>
1337 * sem_prag.adb: Minor reformatting
1339 * exp_util.adb (Make_Non_Empty_Check): New function
1340 (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check
1341 (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check
1343 2009-04-10 Arnaud Charlet <charlet@adacore.com>
1345 * make.adb, gnatlink.adb: Rename JGNAT toolchain.
1347 2009-04-10 Jose Ruiz <ruiz@adacore.com>
1349 * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate
1350 tool prefix for AVR and PowerPC 55xx targets.
1352 2009-04-10 Robert Dewar <dewar@adacore.com>
1354 * sem_warn.adb (Within_Postcondition): New function
1355 (Check_Unset_Reference): Use Within_Postcondition to stop bad warning
1357 2009-04-10 Robert Dewar <dewar@adacore.com>
1359 * sem_warn.adb: Minor reformatting
1361 * make.adb: Minor reformatting.
1363 2009-04-10 Gary Dismukes <dismukes@adacore.com>
1365 * exp_ch7.adb (Find_Final_List): When creating a finalization-chain
1366 entity and the scope is a subprogram, retrieve the Sloc of the
1367 subprogram's body rather than using the sloc of the spec, for better
1368 line-stepping behavior in gdb.
1369 (Wrap_Transient_Declaration): For the Sloc of nodes created with a list
1370 controller, use the Sloc of the first declaration of the containing list
1371 rather than that of the node that triggered creation of the list
1374 2009-04-10 Vincent Celier <celier@adacore.com>
1376 * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing
1377 to avoid gcc warning.
1379 2009-04-10 Robert Dewar <dewar@adacore.com>
1381 * g-comlin.adb: Add ??? comment
1383 2009-04-10 Ed Schonberg <schonberg@adacore.com>
1385 * sem_warn.adb (Check_Unused_Withs): Do not emit message about
1386 unreferenced entities for a package with no visible declarations.
1388 2009-04-10 Robert Dewar <dewar@adacore.com>
1390 * exp_ch9.adb: Minor reformatting
1392 2009-04-10 Thomas Quinot <quinot@adacore.com>
1394 * sem_prag.adb: Minor reformatting
1396 2009-04-10 Vincent Celier <celier@adacore.com>
1399 (Check_Library_Attributes): For a project qualified as a library project
1400 that is not a library project, indicate in the error message which
1401 attributes are missing (Library_Dir and/or Library_Name).
1403 2009-04-10 Bob Duff <duff@adacore.com>
1405 * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of
1406 generated nodes, because it might confuse various circuits in the FE.
1408 2009-04-10 Ed Schonberg <schonberg@adacore.com>
1410 * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument
1411 of pragma. It will be recopied and analyzed when used in call to
1414 * sem_res.adb (Resolve_Call): Clarify use of secondary stack within
1415 initialization operations and recognize use of it in procedure calls
1418 * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name
1419 argument, because it may have side-effects.
1421 * exp_ch2.adb: Remove obsolete comments on default functions
1423 2009-04-10 Jose Ruiz <ruiz@adacore.com>
1425 * adaint.c (RTX section): Do for RTX the same thing as we do for
1426 Windows (include ctype.h and define a fallback ISALPHA if IN_RTS).
1428 2009-04-10 Robert Dewar <dewar@adacore.com>
1430 * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function.
1432 * sem_res.adb (Resolve_Call): Fix test for
1433 Suppress_Value_Tracking_On_Call (was wrong for the case of a call from
1434 a non-dynamic scope).
1436 2009-04-10 Robert Dewar <dewar@adacore.com>
1438 * make.adb: Add comment.
1441 2009-04-10 Nicolas Setton <setton@adacore.com>
1443 * s-osprim-darwin.adb: New file.
1445 * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec.
1447 2009-04-10 Thomas Quinot <quinot@adacore.com>
1449 * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set
1451 2009-04-09 Nick Clifton <nickc@redhat.com>
1453 * adadecode.h: Change copyright header to refer to version
1454 3 of the GNU General Public License with version 3.1 of the
1455 GCC Runtime Library Exception and to point readers at the
1456 COPYING3 and COPYING3.RUNTIME files and the FSF's license web
1458 * 9drpc.adb: Likewise.
1459 * a-assert.adb: Likewise.
1460 * a-astaco.adb: Likewise.
1461 * a-calari.adb: Likewise.
1462 * a-calcon.adb: Likewise.
1463 * a-calcon.ads: Likewise.
1464 * a-caldel.ads: Likewise.
1465 * a-calend-vms.adb: Likewise.
1466 * a-calend-vms.ads: Likewise.
1467 * a-calend.adb: Likewise.
1468 * a-calend.ads: Likewise.
1469 * a-calfor.adb: Likewise.
1470 * a-catizo.adb: Likewise.
1471 * a-cdlili.adb: Likewise.
1472 * a-cdlili.ads: Likewise.
1473 * a-cgaaso.adb: Likewise.
1474 * a-cgaaso.ads: Likewise.
1475 * a-cgarso.adb: Likewise.
1476 * a-cgcaso.adb: Likewise.
1477 * a-chacon.adb: Likewise.
1478 * a-chacon.ads: Likewise.
1479 * a-chahan.adb: Likewise.
1480 * a-chahan.ads: Likewise.
1481 * a-chlat9.ads: Likewise.
1482 * a-chtgke.adb: Likewise.
1483 * a-chtgke.ads: Likewise.
1484 * a-chtgop.adb: Likewise.
1485 * a-chtgop.ads: Likewise.
1486 * a-chzla1.ads: Likewise.
1487 * a-chzla9.ads: Likewise.
1488 * a-cidlli.adb: Likewise.
1489 * a-cidlli.ads: Likewise.
1490 * a-cihama.adb: Likewise.
1491 * a-cihama.ads: Likewise.
1492 * a-cihase.adb: Likewise.
1493 * a-cihase.ads: Likewise.
1494 * a-ciorma.adb: Likewise.
1495 * a-ciorma.ads: Likewise.
1496 * a-ciormu.adb: Likewise.
1497 * a-ciormu.ads: Likewise.
1498 * a-ciorse.adb: Likewise.
1499 * a-ciorse.ads: Likewise.
1500 * a-clrefi.adb: Likewise.
1501 * a-clrefi.ads: Likewise.
1502 * a-cohama.adb: Likewise.
1503 * a-cohama.ads: Likewise.
1504 * a-cohase.adb: Likewise.
1505 * a-cohase.ads: Likewise.
1506 * a-cohata.ads: Likewise.
1507 * a-coinve.adb: Likewise.
1508 * a-coinve.ads: Likewise.
1509 * a-colien.adb: Likewise.
1510 * a-colien.ads: Likewise.
1511 * a-colire.adb: Likewise.
1512 * a-colire.ads: Likewise.
1513 * a-comlin.adb: Likewise.
1514 * a-comlin.ads: Likewise.
1515 * a-convec.adb: Likewise.
1516 * a-convec.ads: Likewise.
1517 * a-coorma.adb: Likewise.
1518 * a-coorma.ads: Likewise.
1519 * a-coormu.adb: Likewise.
1520 * a-coormu.ads: Likewise.
1521 * a-coorse.adb: Likewise.
1522 * a-coorse.ads: Likewise.
1523 * a-coprnu.adb: Likewise.
1524 * a-coprnu.ads: Likewise.
1525 * a-crbltr.ads: Likewise.
1526 * a-crbtgk.adb: Likewise.
1527 * a-crbtgk.ads: Likewise.
1528 * a-crbtgo.adb: Likewise.
1529 * a-crbtgo.ads: Likewise.
1530 * a-crdlli.adb: Likewise.
1531 * a-crdlli.ads: Likewise.
1532 * a-cwila1.ads: Likewise.
1533 * a-cwila9.ads: Likewise.
1534 * a-decima.adb: Likewise.
1535 * a-decima.ads: Likewise.
1536 * a-diocst.adb: Likewise.
1537 * a-diocst.ads: Likewise.
1538 * a-direct.adb: Likewise.
1539 * a-direct.ads: Likewise.
1540 * a-direio.adb: Likewise.
1541 * a-direio.ads: Likewise.
1542 * a-dirval-mingw.adb: Likewise.
1543 * a-dirval-vms.adb: Likewise.
1544 * a-dirval.adb: Likewise.
1545 * a-dirval.ads: Likewise.
1546 * a-dynpri.adb: Likewise.
1547 * a-einuoc.adb: Likewise.
1548 * a-einuoc.ads: Likewise.
1549 * a-elchha.adb: Likewise.
1550 * a-elchha.ads: Likewise.
1551 * a-envvar.adb: Likewise.
1552 * a-excach.adb: Likewise.
1553 * a-except-2005.adb: Likewise.
1554 * a-except-2005.ads: Likewise.
1555 * a-except.adb: Likewise.
1556 * a-except.ads: Likewise.
1557 * a-excpol-abort.adb: Likewise.
1558 * a-excpol.adb: Likewise.
1559 * a-exctra.adb: Likewise.
1560 * a-exctra.ads: Likewise.
1561 * a-exetim-mingw.adb: Likewise.
1562 * a-exetim-mingw.ads: Likewise.
1563 * a-exexda.adb: Likewise.
1564 * a-exexpr-gcc.adb: Likewise.
1565 * a-exexpr.adb: Likewise.
1566 * a-exextr.adb: Likewise.
1567 * a-exstat.adb: Likewise.
1568 * a-filico.adb: Likewise.
1569 * a-filico.ads: Likewise.
1570 * a-finali.adb: Likewise.
1571 * a-finali.ads: Likewise.
1572 * a-interr.ads: Likewise.
1573 * a-intnam-aix.ads: Likewise.
1574 * a-intnam-darwin.ads: Likewise.
1575 * a-intnam-dummy.ads: Likewise.
1576 * a-intnam-freebsd.ads: Likewise.
1577 * a-intnam-hpux.ads: Likewise.
1578 * a-intnam-irix.ads: Likewise.
1579 * a-intnam-linux.ads: Likewise.
1580 * a-intnam-lynxos.ads: Likewise.
1581 * a-intnam-mingw.ads: Likewise.
1582 * a-intnam-rtems.ads: Likewise.
1583 * a-intnam-solaris.ads: Likewise.
1584 * a-intnam-tru64.ads: Likewise.
1585 * a-intnam-vms.ads: Likewise.
1586 * a-intnam-vxworks.ads: Likewise.
1587 * a-intsig.adb: Likewise.
1588 * a-intsig.ads: Likewise.
1589 * a-ngcefu.adb: Likewise.
1590 * a-ngcoar.adb: Likewise.
1591 * a-ngcoty.adb: Likewise.
1592 * a-ngcoty.ads: Likewise.
1593 * a-ngelfu.adb: Likewise.
1594 * a-ngrear.adb: Likewise.
1595 * a-ngrear.ads: Likewise.
1596 * a-nudira.adb: Likewise.
1597 * a-nudira.ads: Likewise.
1598 * a-nuflra.adb: Likewise.
1599 * a-nuflra.ads: Likewise.
1600 * a-numaux-darwin.adb: Likewise.
1601 * a-numaux-darwin.ads: Likewise.
1602 * a-numaux-libc-x86.ads: Likewise.
1603 * a-numaux-vxworks.ads: Likewise.
1604 * a-numaux-x86.adb: Likewise.
1605 * a-numaux-x86.ads: Likewise.
1606 * a-numaux.ads: Likewise.
1607 * a-rbtgso.adb: Likewise.
1608 * a-rbtgso.ads: Likewise.
1609 * a-reatim.ads: Likewise.
1610 * a-retide.adb: Likewise.
1611 * a-retide.ads: Likewise.
1612 * a-rttiev.adb: Likewise.
1613 * a-rttiev.ads: Likewise.
1614 * a-secain.adb: Likewise.
1615 * a-secain.ads: Likewise.
1616 * a-sequio.adb: Likewise.
1617 * a-sequio.ads: Likewise.
1618 * a-shcain.adb: Likewise.
1619 * a-shcain.ads: Likewise.
1620 * a-siocst.adb: Likewise.
1621 * a-siocst.ads: Likewise.
1622 * a-slcain.adb: Likewise.
1623 * a-slcain.ads: Likewise.
1624 * a-ssicst.adb: Likewise.
1625 * a-ssicst.ads: Likewise.
1626 * a-stboha.adb: Likewise.
1627 * a-stmaco.ads: Likewise.
1628 * a-storio.adb: Likewise.
1629 * a-strbou.adb: Likewise.
1630 * a-strbou.ads: Likewise.
1631 * a-stream.ads: Likewise.
1632 * a-strfix.adb: Likewise.
1633 * a-strhas.adb: Likewise.
1634 * a-strmap.adb: Likewise.
1635 * a-strmap.ads: Likewise.
1636 * a-strsea.adb: Likewise.
1637 * a-strsea.ads: Likewise.
1638 * a-strsup.adb: Likewise.
1639 * a-strsup.ads: Likewise.
1640 * a-strunb.adb: Likewise.
1641 * a-strunb.ads: Likewise.
1642 * a-ststio.adb: Likewise.
1643 * a-ststio.ads: Likewise.
1644 * a-stunau.adb: Likewise.
1645 * a-stunau.ads: Likewise.
1646 * a-stunha.adb: Likewise.
1647 * a-stwibo.adb: Likewise.
1648 * a-stwibo.ads: Likewise.
1649 * a-stwifi.adb: Likewise.
1650 * a-stwiha.adb: Likewise.
1651 * a-stwima.adb: Likewise.
1652 * a-stwima.ads: Likewise.
1653 * a-stwise.adb: Likewise.
1654 * a-stwise.ads: Likewise.
1655 * a-stwisu.adb: Likewise.
1656 * a-stwisu.ads: Likewise.
1657 * a-stwiun.adb: Likewise.
1658 * a-stwiun.ads: Likewise.
1659 * a-stzbou.adb: Likewise.
1660 * a-stzbou.ads: Likewise.
1661 * a-stzfix.adb: Likewise.
1662 * a-stzhas.adb: Likewise.
1663 * a-stzmap.adb: Likewise.
1664 * a-stzmap.ads: Likewise.
1665 * a-stzsea.adb: Likewise.
1666 * a-stzsea.ads: Likewise.
1667 * a-stzsup.adb: Likewise.
1668 * a-stzsup.ads: Likewise.
1669 * a-stzunb.adb: Likewise.
1670 * a-stzunb.ads: Likewise.
1671 * a-suteio.adb: Likewise.
1672 * a-suteio.ads: Likewise.
1673 * a-swbwha.adb: Likewise.
1674 * a-swmwco.ads: Likewise.
1675 * a-swunau.adb: Likewise.
1676 * a-swunau.ads: Likewise.
1677 * a-swuwha.adb: Likewise.
1678 * a-swuwti.adb: Likewise.
1679 * a-swuwti.ads: Likewise.
1680 * a-sytaco.adb: Likewise.
1681 * a-sytaco.ads: Likewise.
1682 * a-szbzha.adb: Likewise.
1683 * a-szmzco.ads: Likewise.
1684 * a-szunau.adb: Likewise.
1685 * a-szunau.ads: Likewise.
1686 * a-szuzha.adb: Likewise.
1687 * a-szuzti.adb: Likewise.
1688 * a-szuzti.ads: Likewise.
1689 * a-tags.adb: Likewise.
1690 * a-tags.ads: Likewise.
1691 * a-tasatt.ads: Likewise.
1692 * a-taside.adb: Likewise.
1693 * a-taside.ads: Likewise.
1694 * a-taster.adb: Likewise.
1695 * a-teioed.adb: Likewise.
1696 * a-teioed.ads: Likewise.
1697 * a-textio.adb: Likewise.
1698 * a-textio.ads: Likewise.
1699 * a-tiboio.adb: Likewise.
1700 * a-ticoau.adb: Likewise.
1701 * a-ticoau.ads: Likewise.
1702 * a-ticoio.adb: Likewise.
1703 * a-ticoio.ads: Likewise.
1704 * a-tideau.adb: Likewise.
1705 * a-tideau.ads: Likewise.
1706 * a-tideio.adb: Likewise.
1707 * a-tideio.ads: Likewise.
1708 * a-tienau.adb: Likewise.
1709 * a-tienau.ads: Likewise.
1710 * a-tienio.adb: Likewise.
1711 * a-tienio.ads: Likewise.
1712 * a-tifiio.adb: Likewise.
1713 * a-tifiio.ads: Likewise.
1714 * a-tiflau.adb: Likewise.
1715 * a-tiflau.ads: Likewise.
1716 * a-tiflio.adb: Likewise.
1717 * a-tiflio.ads: Likewise.
1718 * a-tigeau.adb: Likewise.
1719 * a-tigeau.ads: Likewise.
1720 * a-tiinau.adb: Likewise.
1721 * a-tiinau.ads: Likewise.
1722 * a-tiinio.adb: Likewise.
1723 * a-tiinio.ads: Likewise.
1724 * a-timoau.adb: Likewise.
1725 * a-timoau.ads: Likewise.
1726 * a-timoio.adb: Likewise.
1727 * a-timoio.ads: Likewise.
1728 * a-tiocst.adb: Likewise.
1729 * a-tiocst.ads: Likewise.
1730 * a-titest.adb: Likewise.
1731 * a-wichun.adb: Likewise.
1732 * a-wichun.ads: Likewise.
1733 * a-witeio.adb: Likewise.
1734 * a-witeio.ads: Likewise.
1735 * a-wtcoau.adb: Likewise.
1736 * a-wtcoau.ads: Likewise.
1737 * a-wtcoio.adb: Likewise.
1738 * a-wtcstr.adb: Likewise.
1739 * a-wtcstr.ads: Likewise.
1740 * a-wtdeau.adb: Likewise.
1741 * a-wtdeau.ads: Likewise.
1742 * a-wtdeio.adb: Likewise.
1743 * a-wtdeio.ads: Likewise.
1744 * a-wtedit.adb: Likewise.
1745 * a-wtedit.ads: Likewise.
1746 * a-wtenau.adb: Likewise.
1747 * a-wtenau.ads: Likewise.
1748 * a-wtenio.adb: Likewise.
1749 * a-wtenio.ads: Likewise.
1750 * a-wtfiio.adb: Likewise.
1751 * a-wtfiio.ads: Likewise.
1752 * a-wtflau.adb: Likewise.
1753 * a-wtflau.ads: Likewise.
1754 * a-wtflio.adb: Likewise.
1755 * a-wtflio.ads: Likewise.
1756 * a-wtgeau.adb: Likewise.
1757 * a-wtgeau.ads: Likewise.
1758 * a-wtinau.adb: Likewise.
1759 * a-wtinau.ads: Likewise.
1760 * a-wtinio.adb: Likewise.
1761 * a-wtmoau.adb: Likewise.
1762 * a-wtmoau.ads: Likewise.
1763 * a-wtmoio.adb: Likewise.
1764 * a-wtmoio.ads: Likewise.
1765 * a-wttest.adb: Likewise.
1766 * a-wwboio.adb: Likewise.
1767 * a-zchuni.adb: Likewise.
1768 * a-zchuni.ads: Likewise.
1769 * a-ztcoau.adb: Likewise.
1770 * a-ztcoau.ads: Likewise.
1771 * a-ztcoio.adb: Likewise.
1772 * a-ztcstr.adb: Likewise.
1773 * a-ztcstr.ads: Likewise.
1774 * a-ztdeau.adb: Likewise.
1775 * a-ztdeau.ads: Likewise.
1776 * a-ztdeio.adb: Likewise.
1777 * a-ztdeio.ads: Likewise.
1778 * a-ztedit.adb: Likewise.
1779 * a-ztedit.ads: Likewise.
1780 * a-ztenau.adb: Likewise.
1781 * a-ztenau.ads: Likewise.
1782 * a-ztenio.adb: Likewise.
1783 * a-ztenio.ads: Likewise.
1784 * a-ztexio.adb: Likewise.
1785 * a-ztexio.ads: Likewise.
1786 * a-ztfiio.adb: Likewise.
1787 * a-ztfiio.ads: Likewise.
1788 * a-ztflau.adb: Likewise.
1789 * a-ztflau.ads: Likewise.
1790 * a-ztflio.adb: Likewise.
1791 * a-ztflio.ads: Likewise.
1792 * a-ztgeau.adb: Likewise.
1793 * a-ztgeau.ads: Likewise.
1794 * a-ztinau.adb: Likewise.
1795 * a-ztinau.ads: Likewise.
1796 * a-ztinio.adb: Likewise.
1797 * a-ztmoau.adb: Likewise.
1798 * a-ztmoau.ads: Likewise.
1799 * a-ztmoio.adb: Likewise.
1800 * a-ztmoio.ads: Likewise.
1801 * a-zttest.adb: Likewise.
1802 * a-zzboio.adb: Likewise.
1803 * adadecode.c: Likewise.
1804 * adaint.c: Likewise.
1805 * adaint.h: Likewise.
1806 * alloc.ads: Likewise.
1808 * arit64.c: Likewise.
1809 * atree.adb: Likewise.
1810 * atree.ads: Likewise.
1811 * aux-io.c: Likewise.
1813 * casing.adb: Likewise.
1814 * casing.ads: Likewise.
1816 * csets.adb: Likewise.
1817 * csets.ads: Likewise.
1818 * cstreams.c: Likewise.
1819 * ctrl_c.c: Likewise.
1820 * debug.adb: Likewise.
1821 * debug.ads: Likewise.
1822 * dec.ads: Likewise.
1823 * einfo.adb: Likewise.
1824 * einfo.ads: Likewise.
1825 * elists.adb: Likewise.
1826 * elists.ads: Likewise.
1829 * errno.c: Likewise.
1832 * final.c: Likewise.
1833 * fname.adb: Likewise.
1834 * fname.ads: Likewise.
1835 * g-allein.ads: Likewise.
1836 * g-alleve.adb: Likewise.
1837 * g-alleve.ads: Likewise.
1838 * g-altcon.adb: Likewise.
1839 * g-altcon.ads: Likewise.
1840 * g-altive.ads: Likewise.
1841 * g-alveop.adb: Likewise.
1842 * g-alveop.ads: Likewise.
1843 * g-alvety.ads: Likewise.
1844 * g-alvevi.ads: Likewise.
1845 * g-arrspl.adb: Likewise.
1846 * g-arrspl.ads: Likewise.
1847 * g-calend.ads: Likewise.
1848 * g-comlin.adb: Likewise.
1849 * g-debpoo.adb: Likewise.
1850 * g-debpoo.ads: Likewise.
1851 * g-eacodu-vms.adb: Likewise.
1852 * g-eacodu.adb: Likewise.
1853 * g-excact.adb: Likewise.
1854 * g-excact.ads: Likewise.
1855 * g-locfil.adb: Likewise.
1856 * g-os_lib.ads: Likewise.
1857 * g-rannum.adb: Likewise.
1858 * g-rannum.ads: Likewise.
1859 * g-regist.adb: Likewise.
1860 * g-regist.ads: Likewise.
1861 * g-signal.adb: Likewise.
1862 * g-signal.ads: Likewise.
1863 * g-soccon.ads: Likewise.
1864 * g-string.adb: Likewise.
1865 * g-string.ads: Likewise.
1866 * g-strspl.ads: Likewise.
1867 * g-timsta.adb: Likewise.
1868 * g-timsta.ads: Likewise.
1869 * g-trasym-vms-alpha.adb: Likewise.
1870 * g-trasym-vms-ia64.adb: Likewise.
1871 * g-utf_32.adb: Likewise.
1872 * g-utf_32.ads: Likewise.
1873 * g-wistsp.ads: Likewise.
1874 * g-zstspl.ads: Likewise.
1876 * gnatvsn.adb: Likewise.
1877 * gnatvsn.ads: Likewise.
1878 * gsocket.h: Likewise.
1879 * hostparm.ads: Likewise.
1880 * i-c.adb: Likewise.
1881 * i-cexten.ads: Likewise.
1882 * i-cobol.adb: Likewise.
1883 * i-cobol.ads: Likewise.
1884 * i-cpoint.adb: Likewise.
1885 * i-cpoint.ads: Likewise.
1886 * i-cpp.adb: Likewise.
1887 * i-cpp.ads: Likewise.
1888 * i-cstrea-vms.adb: Likewise.
1889 * i-cstrea.adb: Likewise.
1890 * i-cstrea.ads: Likewise.
1891 * i-cstrin.adb: Likewise.
1892 * i-cstrin.ads: Likewise.
1893 * i-forbla-darwin.adb: Likewise.
1894 * i-forbla-unimplemented.ads: Likewise.
1895 * i-forbla.adb: Likewise.
1896 * i-forbla.ads: Likewise.
1897 * i-forlap.ads: Likewise.
1898 * i-fortra.adb: Likewise.
1899 * i-pacdec.adb: Likewise.
1900 * i-pacdec.ads: Likewise.
1901 * i-vxwoio.adb: Likewise.
1902 * i-vxwoio.ads: Likewise.
1903 * indepsw-aix.adb: Likewise.
1904 * indepsw-gnu.adb: Likewise.
1905 * indepsw-mingw.adb: Likewise.
1906 * indepsw.adb: Likewise.
1907 * indepsw.ads: Likewise.
1909 * initialize.c: Likewise.
1910 * interfac.ads: Likewise.
1911 * krunch.adb: Likewise.
1912 * krunch.ads: Likewise.
1913 * lib-list.adb: Likewise.
1914 * lib-sort.adb: Likewise.
1915 * lib.adb: Likewise.
1916 * lib.ads: Likewise.
1918 * math_lib.adb: Likewise.
1919 * memtrack.adb: Likewise.
1920 * mingw32.h: Likewise.
1921 * mkdir.c: Likewise.
1922 * namet-sp.adb: Likewise.
1923 * namet-sp.ads: Likewise.
1924 * namet.adb: Likewise.
1925 * namet.ads: Likewise.
1926 * nlists.adb: Likewise.
1927 * nlists.ads: Likewise.
1928 * opt.adb: Likewise.
1929 * opt.ads: Likewise.
1930 * output.adb: Likewise.
1931 * output.ads: Likewise.
1932 * raise-gcc.c: Likewise.
1933 * raise.c: Likewise.
1934 * raise.h: Likewise.
1935 * repinfo.adb: Likewise.
1936 * repinfo.ads: Likewise.
1937 * repinfo.h: Likewise.
1938 * rident.ads: Likewise.
1939 * s-addima.adb: Likewise.
1940 * s-addima.ads: Likewise.
1941 * s-addope.adb: Likewise.
1942 * s-addope.ads: Likewise.
1943 * s-arit64.adb: Likewise.
1944 * s-arit64.ads: Likewise.
1945 * s-assert.adb: Likewise.
1946 * s-assert.ads: Likewise.
1947 * s-asthan-vms-alpha.adb: Likewise.
1948 * s-asthan.adb: Likewise.
1949 * s-asthan.ads: Likewise.
1950 * s-atacco.adb: Likewise.
1951 * s-atacco.ads: Likewise.
1952 * s-auxdec-empty.adb: Likewise.
1953 * s-auxdec-empty.ads: Likewise.
1954 * s-auxdec-vms_64.ads: Likewise.
1955 * s-auxdec.adb: Likewise.
1956 * s-auxdec.ads: Likewise.
1957 * s-bitops.adb: Likewise.
1958 * s-bitops.ads: Likewise.
1959 * s-boarop.ads: Likewise.
1960 * s-carsi8.adb: Likewise.
1961 * s-carsi8.ads: Likewise.
1962 * s-carun8.adb: Likewise.
1963 * s-carun8.ads: Likewise.
1964 * s-casi16.adb: Likewise.
1965 * s-casi16.ads: Likewise.
1966 * s-casi32.adb: Likewise.
1967 * s-casi32.ads: Likewise.
1968 * s-casi64.adb: Likewise.
1969 * s-casi64.ads: Likewise.
1970 * s-casuti.ads: Likewise.
1971 * s-caun16.adb: Likewise.
1972 * s-caun16.ads: Likewise.
1973 * s-caun32.adb: Likewise.
1974 * s-caun32.ads: Likewise.
1975 * s-caun64.adb: Likewise.
1976 * s-caun64.ads: Likewise.
1977 * s-chepoo.ads: Likewise.
1978 * s-crc32.adb: Likewise.
1979 * s-crc32.ads: Likewise.
1980 * s-crtl.ads: Likewise.
1981 * s-direio.adb: Likewise.
1982 * s-direio.ads: Likewise.
1983 * s-dsaser.ads: Likewise.
1984 * s-except.adb: Likewise.
1985 * s-except.ads: Likewise.
1986 * s-exctab.adb: Likewise.
1987 * s-exctab.ads: Likewise.
1988 * s-exnint.adb: Likewise.
1989 * s-exnint.ads: Likewise.
1990 * s-exnllf.adb: Likewise.
1991 * s-exnllf.ads: Likewise.
1992 * s-exnlli.adb: Likewise.
1993 * s-exnlli.ads: Likewise.
1994 * s-expint.adb: Likewise.
1995 * s-expint.ads: Likewise.
1996 * s-explli.adb: Likewise.
1997 * s-explli.ads: Likewise.
1998 * s-expllu.adb: Likewise.
1999 * s-expllu.ads: Likewise.
2000 * s-expmod.adb: Likewise.
2001 * s-expmod.ads: Likewise.
2002 * s-expuns.adb: Likewise.
2003 * s-expuns.ads: Likewise.
2004 * s-fatflt.ads: Likewise.
2005 * s-fatgen.adb: Likewise.
2006 * s-fatgen.ads: Likewise.
2007 * s-fatlfl.ads: Likewise.
2008 * s-fatllf.ads: Likewise.
2009 * s-fatsfl.ads: Likewise.
2010 * s-ficobl.ads: Likewise.
2011 * s-fileio.adb: Likewise.
2012 * s-fileio.ads: Likewise.
2013 * s-filofl.ads: Likewise.
2014 * s-finimp.adb: Likewise.
2015 * s-finimp.ads: Likewise.
2016 * s-finroo.adb: Likewise.
2017 * s-finroo.ads: Likewise.
2018 * s-fishfl.ads: Likewise.
2019 * s-fore.adb: Likewise.
2020 * s-fore.ads: Likewise.
2021 * s-fvadfl.ads: Likewise.
2022 * s-fvaffl.ads: Likewise.
2023 * s-fvagfl.ads: Likewise.
2024 * s-gearop.adb: Likewise.
2025 * s-gearop.ads: Likewise.
2026 * s-gecobl.adb: Likewise.
2027 * s-gecobl.ads: Likewise.
2028 * s-gecola.adb: Likewise.
2029 * s-gecola.ads: Likewise.
2030 * s-gerebl.adb: Likewise.
2031 * s-gerebl.ads: Likewise.
2032 * s-gerela.adb: Likewise.
2033 * s-gerela.ads: Likewise.
2034 * s-geveop.adb: Likewise.
2035 * s-geveop.ads: Likewise.
2036 * s-gloloc.adb: Likewise.
2037 * s-gloloc.ads: Likewise.
2038 * s-hibaen.ads: Likewise.
2039 * s-imenne.adb: Likewise.
2040 * s-imenne.ads: Likewise.
2041 * s-imgbiu.adb: Likewise.
2042 * s-imgbiu.ads: Likewise.
2043 * s-imgboo.adb: Likewise.
2044 * s-imgboo.ads: Likewise.
2045 * s-imgcha.adb: Likewise.
2046 * s-imgcha.ads: Likewise.
2047 * s-imgdec.adb: Likewise.
2048 * s-imgdec.ads: Likewise.
2049 * s-imgenu.adb: Likewise.
2050 * s-imgenu.ads: Likewise.
2051 * s-imgint.adb: Likewise.
2052 * s-imgint.ads: Likewise.
2053 * s-imgllb.adb: Likewise.
2054 * s-imgllb.ads: Likewise.
2055 * s-imglld.adb: Likewise.
2056 * s-imglld.ads: Likewise.
2057 * s-imglli.adb: Likewise.
2058 * s-imglli.ads: Likewise.
2059 * s-imgllu.adb: Likewise.
2060 * s-imgllu.ads: Likewise.
2061 * s-imgllw.adb: Likewise.
2062 * s-imgllw.ads: Likewise.
2063 * s-imgrea.adb: Likewise.
2064 * s-imgrea.ads: Likewise.
2065 * s-imguns.adb: Likewise.
2066 * s-imguns.ads: Likewise.
2067 * s-imgwch.adb: Likewise.
2068 * s-imgwch.ads: Likewise.
2069 * s-imgwiu.adb: Likewise.
2070 * s-imgwiu.ads: Likewise.
2071 * s-inmaop-dummy.adb: Likewise.
2072 * s-inmaop-vms.adb: Likewise.
2073 * s-inmaop.ads: Likewise.
2074 * s-interr-hwint.adb: Likewise.
2075 * s-interr-sigaction.adb: Likewise.
2076 * s-interr-vms.adb: Likewise.
2077 * s-interr.adb: Likewise.
2078 * s-interr.ads: Likewise.
2079 * s-intman-dummy.adb: Likewise.
2080 * s-intman-mingw.adb: Likewise.
2081 * s-intman-posix.adb: Likewise.
2082 * s-intman-solaris.adb: Likewise.
2083 * s-intman-vms.adb: Likewise.
2084 * s-intman-vms.ads: Likewise.
2085 * s-intman-vxworks.adb: Likewise.
2086 * s-intman-vxworks.ads: Likewise.
2087 * s-intman.ads: Likewise.
2088 * s-io.adb: Likewise.
2089 * s-io.ads: Likewise.
2090 * s-linux-alpha.ads: Likewise.
2091 * s-linux-hppa.ads: Likewise.
2092 * s-linux.ads: Likewise.
2093 * s-maccod.ads: Likewise.
2094 * s-mantis.adb: Likewise.
2095 * s-mantis.ads: Likewise.
2096 * s-mastop-irix.adb: Likewise.
2097 * s-mastop.adb: Likewise.
2098 * s-mastop.ads: Likewise.
2099 * s-memcop.ads: Likewise.
2100 * s-memory-mingw.adb: Likewise.
2101 * s-memory.adb: Likewise.
2102 * s-memory.ads: Likewise.
2103 * s-os_lib.ads: Likewise.
2104 * s-oscons-tmplt.c: Likewise.
2105 * s-osinte-aix.adb: Likewise.
2106 * s-osinte-darwin.adb: Likewise.
2107 * s-osinte-freebsd.adb: Likewise.
2108 * s-osinte-irix.adb: Likewise.
2109 * s-osinte-lynxos-3.adb: Likewise.
2110 * s-osinte-rtems.ads: Likewise.
2111 * s-osinte-tru64.adb: Likewise.
2112 * s-osinte-vxworks-kernel.adb: Likewise.
2113 * s-osinte-vxworks.adb: Likewise.
2114 * s-osprim-mingw.adb: Likewise.
2115 * s-osprim-posix.adb: Likewise.
2116 * s-osprim-solaris.adb: Likewise.
2117 * s-osprim-unix.adb: Likewise.
2118 * s-osprim-vms.adb: Likewise.
2119 * s-osprim-vms.ads: Likewise.
2120 * s-osprim-vxworks.adb: Likewise.
2121 * s-osprim.ads: Likewise.
2122 * s-pack03.adb: Likewise.
2123 * s-pack03.ads: Likewise.
2124 * s-pack05.adb: Likewise.
2125 * s-pack05.ads: Likewise.
2126 * s-pack06.adb: Likewise.
2127 * s-pack06.ads: Likewise.
2128 * s-pack07.adb: Likewise.
2129 * s-pack07.ads: Likewise.
2130 * s-pack09.adb: Likewise.
2131 * s-pack09.ads: Likewise.
2132 * s-pack10.adb: Likewise.
2133 * s-pack10.ads: Likewise.
2134 * s-pack11.adb: Likewise.
2135 * s-pack11.ads: Likewise.
2136 * s-pack12.adb: Likewise.
2137 * s-pack12.ads: Likewise.
2138 * s-pack13.adb: Likewise.
2139 * s-pack13.ads: Likewise.
2140 * s-pack14.adb: Likewise.
2141 * s-pack14.ads: Likewise.
2142 * s-pack15.adb: Likewise.
2143 * s-pack15.ads: Likewise.
2144 * s-pack17.adb: Likewise.
2145 * s-pack17.ads: Likewise.
2146 * s-pack18.adb: Likewise.
2147 * s-pack18.ads: Likewise.
2148 * s-pack19.adb: Likewise.
2149 * s-pack19.ads: Likewise.
2150 * s-pack20.adb: Likewise.
2151 * s-pack20.ads: Likewise.
2152 * s-pack21.adb: Likewise.
2153 * s-pack21.ads: Likewise.
2154 * s-pack22.adb: Likewise.
2155 * s-pack22.ads: Likewise.
2156 * s-pack23.adb: Likewise.
2157 * s-pack23.ads: Likewise.
2158 * s-pack24.adb: Likewise.
2159 * s-pack24.ads: Likewise.
2160 * s-pack25.adb: Likewise.
2161 * s-pack25.ads: Likewise.
2162 * s-pack26.adb: Likewise.
2163 * s-pack26.ads: Likewise.
2164 * s-pack27.adb: Likewise.
2165 * s-pack27.ads: Likewise.
2166 * s-pack28.adb: Likewise.
2167 * s-pack28.ads: Likewise.
2168 * s-pack29.adb: Likewise.
2169 * s-pack29.ads: Likewise.
2170 * s-pack30.adb: Likewise.
2171 * s-pack30.ads: Likewise.
2172 * s-pack31.adb: Likewise.
2173 * s-pack31.ads: Likewise.
2174 * s-pack33.adb: Likewise.
2175 * s-pack33.ads: Likewise.
2176 * s-pack34.adb: Likewise.
2177 * s-pack34.ads: Likewise.
2178 * s-pack35.adb: Likewise.
2179 * s-pack35.ads: Likewise.
2180 * s-pack36.adb: Likewise.
2181 * s-pack36.ads: Likewise.
2182 * s-pack37.adb: Likewise.
2183 * s-pack37.ads: Likewise.
2184 * s-pack38.adb: Likewise.
2185 * s-pack38.ads: Likewise.
2186 * s-pack39.adb: Likewise.
2187 * s-pack39.ads: Likewise.
2188 * s-pack40.adb: Likewise.
2189 * s-pack40.ads: Likewise.
2190 * s-pack41.adb: Likewise.
2191 * s-pack41.ads: Likewise.
2192 * s-pack42.adb: Likewise.
2193 * s-pack42.ads: Likewise.
2194 * s-pack43.adb: Likewise.
2195 * s-pack43.ads: Likewise.
2196 * s-pack44.adb: Likewise.
2197 * s-pack44.ads: Likewise.
2198 * s-pack45.adb: Likewise.
2199 * s-pack45.ads: Likewise.
2200 * s-pack46.adb: Likewise.
2201 * s-pack46.ads: Likewise.
2202 * s-pack47.adb: Likewise.
2203 * s-pack47.ads: Likewise.
2204 * s-pack48.adb: Likewise.
2205 * s-pack48.ads: Likewise.
2206 * s-pack49.adb: Likewise.
2207 * s-pack49.ads: Likewise.
2208 * s-pack50.adb: Likewise.
2209 * s-pack50.ads: Likewise.
2210 * s-pack51.adb: Likewise.
2211 * s-pack51.ads: Likewise.
2212 * s-pack52.adb: Likewise.
2213 * s-pack52.ads: Likewise.
2214 * s-pack53.adb: Likewise.
2215 * s-pack53.ads: Likewise.
2216 * s-pack54.adb: Likewise.
2217 * s-pack54.ads: Likewise.
2218 * s-pack55.adb: Likewise.
2219 * s-pack55.ads: Likewise.
2220 * s-pack56.adb: Likewise.
2221 * s-pack56.ads: Likewise.
2222 * s-pack57.adb: Likewise.
2223 * s-pack57.ads: Likewise.
2224 * s-pack58.adb: Likewise.
2225 * s-pack58.ads: Likewise.
2226 * s-pack59.adb: Likewise.
2227 * s-pack59.ads: Likewise.
2228 * s-pack60.adb: Likewise.
2229 * s-pack60.ads: Likewise.
2230 * s-pack61.adb: Likewise.
2231 * s-pack61.ads: Likewise.
2232 * s-pack62.adb: Likewise.
2233 * s-pack62.ads: Likewise.
2234 * s-pack63.adb: Likewise.
2235 * s-pack63.ads: Likewise.
2236 * s-parame-ae653.ads: Likewise.
2237 * s-parame-hpux.ads: Likewise.
2238 * s-parame-rtems.adb: Likewise.
2239 * s-parame-vms-alpha.ads: Likewise.
2240 * s-parame-vms-ia64.ads: Likewise.
2241 * s-parame-vms-restrict.ads: Likewise.
2242 * s-parame-vxworks.adb: Likewise.
2243 * s-parame-vxworks.ads: Likewise.
2244 * s-parame.adb: Likewise.
2245 * s-parame.ads: Likewise.
2246 * s-parint.adb: Likewise.
2247 * s-parint.ads: Likewise.
2248 * s-pooglo.adb: Likewise.
2249 * s-pooglo.ads: Likewise.
2250 * s-pooloc.adb: Likewise.
2251 * s-pooloc.ads: Likewise.
2252 * s-poosiz.adb: Likewise.
2253 * s-poosiz.ads: Likewise.
2254 * s-powtab.ads: Likewise.
2255 * s-proinf-irix-athread.adb: Likewise.
2256 * s-proinf-irix-athread.ads: Likewise.
2257 * s-proinf.adb: Likewise.
2258 * s-proinf.ads: Likewise.
2259 * s-purexc.ads: Likewise.
2260 * s-rannum.adb: Likewise.
2261 * s-rannum.ads: Likewise.
2262 * s-restri.adb: Likewise.
2263 * s-restri.ads: Likewise.
2264 * s-rident.ads: Likewise.
2265 * s-rpc.adb: Likewise.
2266 * s-rpc.ads: Likewise.
2267 * s-scaval.adb: Likewise.
2268 * s-scaval.ads: Likewise.
2269 * s-secsta.adb: Likewise.
2270 * s-secsta.ads: Likewise.
2271 * s-sequio.adb: Likewise.
2272 * s-sequio.ads: Likewise.
2273 * s-shasto.adb: Likewise.
2274 * s-shasto.ads: Likewise.
2275 * s-soflin.adb: Likewise.
2276 * s-soflin.ads: Likewise.
2277 * s-solita.adb: Likewise.
2278 * s-solita.ads: Likewise.
2279 * s-sopco3.adb: Likewise.
2280 * s-sopco3.ads: Likewise.
2281 * s-sopco4.adb: Likewise.
2282 * s-sopco4.ads: Likewise.
2283 * s-sopco5.adb: Likewise.
2284 * s-sopco5.ads: Likewise.
2285 * s-stache.adb: Likewise.
2286 * s-stache.ads: Likewise.
2287 * s-stalib.adb: Likewise.
2288 * s-stalib.ads: Likewise.
2289 * s-stausa.adb: Likewise.
2290 * s-stausa.ads: Likewise.
2291 * s-stchop-limit.ads: Likewise.
2292 * s-stchop-rtems.adb: Likewise.
2293 * s-stchop-vxworks.adb: Likewise.
2294 * s-stchop.adb: Likewise.
2295 * s-stchop.ads: Likewise.
2296 * s-stoele.adb: Likewise.
2297 * s-stoele.ads: Likewise.
2298 * s-stopoo.adb: Likewise.
2299 * s-stopoo.ads: Likewise.
2300 * s-stratt.adb: Likewise.
2301 * s-stratt.ads: Likewise.
2302 * s-strcom.adb: Likewise.
2303 * s-strcom.ads: Likewise.
2304 * s-string.adb: Likewise.
2305 * s-string.ads: Likewise.
2306 * s-strops.adb: Likewise.
2307 * s-strops.ads: Likewise.
2308 * s-strxdr.adb: Likewise.
2309 * s-ststop.adb: Likewise.
2310 * s-ststop.ads: Likewise.
2311 * s-taasde.adb: Likewise.
2312 * s-taasde.ads: Likewise.
2313 * s-tadeca.adb: Likewise.
2314 * s-tadeca.ads: Likewise.
2315 * s-tadert.adb: Likewise.
2316 * s-tadert.ads: Likewise.
2317 * s-taenca.adb: Likewise.
2318 * s-taenca.ads: Likewise.
2319 * s-taprob.ads: Likewise.
2320 * s-taprop-dummy.adb: Likewise.
2321 * s-taprop-hpux-dce.adb: Likewise.
2322 * s-taprop-irix.adb: Likewise.
2323 * s-taprop-linux.adb: Likewise.
2324 * s-taprop-lynxos.adb: Likewise.
2325 * s-taprop-mingw.adb: Likewise.
2326 * s-taprop-posix.adb: Likewise.
2327 * s-taprop-solaris.adb: Likewise.
2328 * s-taprop-tru64.adb: Likewise.
2329 * s-taprop-vms.adb: Likewise.
2330 * s-taprop-vxworks.adb: Likewise.
2331 * s-taprop.ads: Likewise.
2332 * s-tarest.adb: Likewise.
2333 * s-tarest.ads: Likewise.
2334 * s-tasdeb.adb: Likewise.
2335 * s-tasdeb.ads: Likewise.
2336 * s-tasinf-irix.ads: Likewise.
2337 * s-tasinf-linux.adb: Likewise.
2338 * s-tasinf-linux.ads: Likewise.
2339 * s-tasinf-mingw.adb: Likewise.
2340 * s-tasinf-mingw.ads: Likewise.
2341 * s-tasinf-solaris.adb: Likewise.
2342 * s-tasinf-solaris.ads: Likewise.
2343 * s-tasinf-tru64.ads: Likewise.
2344 * s-tasinf.adb: Likewise.
2345 * s-tasinf.ads: Likewise.
2346 * s-tasini.adb: Likewise.
2347 * s-tasini.ads: Likewise.
2348 * s-taskin.adb: Likewise.
2349 * s-taskin.ads: Likewise.
2350 * s-taspri-dummy.ads: Likewise.
2351 * s-taspri-hpux-dce.ads: Likewise.
2352 * s-taspri-mingw.ads: Likewise.
2353 * s-taspri-solaris.ads: Likewise.
2354 * s-taspri-tru64.ads: Likewise.
2355 * s-taspri-vms.ads: Likewise.
2356 * s-taspri-vxworks.ads: Likewise.
2357 * s-tasque.adb: Likewise.
2358 * s-tasque.ads: Likewise.
2359 * s-tasren.adb: Likewise.
2360 * s-tasren.ads: Likewise.
2361 * s-tasres.ads: Likewise.
2362 * s-tassta.adb: Likewise.
2363 * s-tassta.ads: Likewise.
2364 * s-tasuti.adb: Likewise.
2365 * s-tasuti.ads: Likewise.
2366 * s-tfsetr-default.adb: Likewise.
2367 * s-tfsetr-vxworks.adb: Likewise.
2368 * s-tpinop.adb: Likewise.
2369 * s-tpinop.ads: Likewise.
2370 * s-tpoben.adb: Likewise.
2371 * s-tpoben.ads: Likewise.
2372 * s-tpobop.adb: Likewise.
2373 * s-tpobop.ads: Likewise.
2374 * s-tpopde-vms.adb: Likewise.
2375 * s-tpopde-vms.ads: Likewise.
2376 * s-tpopsp-lynxos.adb: Likewise.
2377 * s-tpopsp-posix-foreign.adb: Likewise.
2378 * s-tpopsp-posix.adb: Likewise.
2379 * s-tpopsp-solaris.adb: Likewise.
2380 * s-tpopsp-vxworks.adb: Likewise.
2381 * s-tporft.adb: Likewise.
2382 * s-tposen.adb: Likewise.
2383 * s-tposen.ads: Likewise.
2384 * s-traceb.adb: Likewise.
2385 * s-traceb.ads: Likewise.
2386 * s-traces-default.adb: Likewise.
2387 * s-traces.adb: Likewise.
2388 * s-traces.ads: Likewise.
2389 * s-traent-vms.adb: Likewise.
2390 * s-traent-vms.ads: Likewise.
2391 * s-traent.adb: Likewise.
2392 * s-traent.ads: Likewise.
2393 * s-trafor-default.adb: Likewise.
2394 * s-trafor-default.ads: Likewise.
2395 * s-tratas-default.adb: Likewise.
2396 * s-tratas.adb: Likewise.
2397 * s-tratas.ads: Likewise.
2398 * s-unstyp.ads: Likewise.
2399 * s-utf_32.adb: Likewise.
2400 * s-utf_32.ads: Likewise.
2401 * s-vaflop-vms-alpha.adb: Likewise.
2402 * s-vaflop.adb: Likewise.
2403 * s-vaflop.ads: Likewise.
2404 * s-valboo.adb: Likewise.
2405 * s-valboo.ads: Likewise.
2406 * s-valcha.adb: Likewise.
2407 * s-valcha.ads: Likewise.
2408 * s-valdec.adb: Likewise.
2409 * s-valdec.ads: Likewise.
2410 * s-valenu.adb: Likewise.
2411 * s-valenu.ads: Likewise.
2412 * s-valint.adb: Likewise.
2413 * s-valint.ads: Likewise.
2414 * s-vallld.adb: Likewise.
2415 * s-vallld.ads: Likewise.
2416 * s-vallli.adb: Likewise.
2417 * s-vallli.ads: Likewise.
2418 * s-valllu.adb: Likewise.
2419 * s-valllu.ads: Likewise.
2420 * s-valrea.adb: Likewise.
2421 * s-valrea.ads: Likewise.
2422 * s-valuns.adb: Likewise.
2423 * s-valuns.ads: Likewise.
2424 * s-valuti.adb: Likewise.
2425 * s-valuti.ads: Likewise.
2426 * s-valwch.adb: Likewise.
2427 * s-valwch.ads: Likewise.
2428 * s-veboop.adb: Likewise.
2429 * s-veboop.ads: Likewise.
2430 * s-vector.ads: Likewise.
2431 * s-vercon.adb: Likewise.
2432 * s-vercon.ads: Likewise.
2433 * s-vmexta.adb: Likewise.
2434 * s-vmexta.ads: Likewise.
2435 * s-vxwext-kernel.ads: Likewise.
2436 * s-vxwext-rtp.adb: Likewise.
2437 * s-vxwext-rtp.ads: Likewise.
2438 * s-vxwext.ads: Likewise.
2439 * s-vxwork-arm.ads: Likewise.
2440 * s-vxwork-m68k.ads: Likewise.
2441 * s-vxwork-mips.ads: Likewise.
2442 * s-vxwork-ppc.ads: Likewise.
2443 * s-vxwork-sparcv9.ads: Likewise.
2444 * s-vxwork-x86.ads: Likewise.
2445 * s-wchcnv.adb: Likewise.
2446 * s-wchcnv.ads: Likewise.
2447 * s-wchcon.adb: Likewise.
2448 * s-wchcon.ads: Likewise.
2449 * s-wchjis.adb: Likewise.
2450 * s-wchjis.ads: Likewise.
2451 * s-wchstw.adb: Likewise.
2452 * s-wchstw.ads: Likewise.
2453 * s-wchwts.adb: Likewise.
2454 * s-wchwts.ads: Likewise.
2455 * s-widboo.adb: Likewise.
2456 * s-widboo.ads: Likewise.
2457 * s-widcha.adb: Likewise.
2458 * s-widcha.ads: Likewise.
2459 * s-widenu.adb: Likewise.
2460 * s-widenu.ads: Likewise.
2461 * s-widlli.adb: Likewise.
2462 * s-widlli.ads: Likewise.
2463 * s-widllu.adb: Likewise.
2464 * s-widllu.ads: Likewise.
2465 * s-widwch.adb: Likewise.
2466 * s-widwch.ads: Likewise.
2467 * s-win32.ads: Likewise.
2468 * s-winext.ads: Likewise.
2469 * s-wwdcha.adb: Likewise.
2470 * s-wwdcha.ads: Likewise.
2471 * s-wwdenu.adb: Likewise.
2472 * s-wwdenu.ads: Likewise.
2473 * s-wwdwch.adb: Likewise.
2474 * s-wwdwch.ads: Likewise.
2475 * scans.adb: Likewise.
2476 * scans.ads: Likewise.
2477 * seh_init.c: Likewise.
2478 * sfn_scan.adb: Likewise.
2479 * sinfo.adb: Likewise.
2480 * sinfo.ads: Likewise.
2481 * sinput.adb: Likewise.
2482 * sinput.ads: Likewise.
2483 * snames.adb: Likewise.
2484 * snames.ads: Likewise.
2485 * socket.c: Likewise.
2486 * stand.adb: Likewise.
2487 * stand.ads: Likewise.
2488 * stringt.adb: Likewise.
2489 * stringt.ads: Likewise.
2490 * sysdep.c: Likewise.
2491 * system-aix.ads: Likewise.
2492 * system-darwin-ppc.ads: Likewise.
2493 * system-darwin-x86.ads: Likewise.
2494 * system-darwin-x86_64.ads: Likewise.
2495 * system-freebsd-x86.ads: Likewise.
2496 * system-hpux-ia64.ads: Likewise.
2497 * system-hpux.ads: Likewise.
2498 * system-irix-n32.ads: Likewise.
2499 * system-irix-n64.ads: Likewise.
2500 * system-irix-o32.ads: Likewise.
2501 * system-linux-alpha.ads: Likewise.
2502 * system-linux-hppa.ads: Likewise.
2503 * system-linux-ia64.ads: Likewise.
2504 * system-linux-mips.ads: Likewise.
2505 * system-linux-mipsel.ads: Likewise.
2506 * system-linux-ppc.ads: Likewise.
2507 * system-linux-ppc64.ads: Likewise.
2508 * system-linux-s390.ads: Likewise.
2509 * system-linux-s390x.ads: Likewise.
2510 * system-linux-sh4.ads: Likewise.
2511 * system-linux-sparc.ads: Likewise.
2512 * system-linux-sparcv9.ads: Likewise.
2513 * system-linux-x86.ads: Likewise.
2514 * system-linux-x86_64.ads: Likewise.
2515 * system-lynxos-ppc.ads: Likewise.
2516 * system-lynxos-x86.ads: Likewise.
2517 * system-mingw-x86_64.ads: Likewise.
2518 * system-mingw.ads: Likewise.
2519 * system-rtems.ads: Likewise.
2520 * system-solaris-sparc.ads: Likewise.
2521 * system-solaris-sparcv9.ads: Likewise.
2522 * system-solaris-x86.ads: Likewise.
2523 * system-solaris-x86_64.ads: Likewise.
2524 * system-tru64.ads: Likewise.
2525 * system-vms-ia64.ads: Likewise.
2526 * system-vms-zcx.ads: Likewise.
2527 * system-vms.ads: Likewise.
2528 * system-vms_64.ads: Likewise.
2529 * system-vxworks-arm.ads: Likewise.
2530 * system-vxworks-m68k.ads: Likewise.
2531 * system-vxworks-mips.ads: Likewise.
2532 * system-vxworks-ppc.ads: Likewise.
2533 * system-vxworks-sparcv9.ads: Likewise.
2534 * system-vxworks-x86.ads: Likewise.
2535 * system.ads: Likewise.
2536 * table.adb: Likewise.
2537 * table.ads: Likewise.
2538 * targext.c: Likewise.
2539 * targparm.ads: Likewise.
2540 * tree_in.adb: Likewise.
2541 * tree_in.ads: Likewise.
2542 * tree_io.adb: Likewise.
2543 * tree_io.ads: Likewise.
2544 * types.adb: Likewise.
2545 * types.ads: Likewise.
2546 * uintp.adb: Likewise.
2547 * uintp.ads: Likewise.
2548 * uname.adb: Likewise.
2549 * uname.ads: Likewise.
2550 * urealp.adb: Likewise.
2551 * urealp.ads: Likewise.
2552 * vx_stack_info.c: Likewise.
2553 * widechar.adb: Likewise.
2554 * widechar.ads: Likewise.
2555 * exp_attr.adb: Change copyright header to refer to version
2556 3 of the GNU General Public License and to point readers at the
2557 COPYING3 file and the FSF's license web page.
2558 * sem.adb: Likewise.
2559 * sem_attr.ads: Likewise.
2560 * freeze.adb: Likewise.
2561 * freeze.ads: Likewise.
2562 * errout.ads: Likewise.
2563 * erroutc.adb: Likewise.
2564 * exp_ch11.ads: Likewise.
2566 2009-04-09 Jakub Jelinek <jakub@redhat.com>
2568 * config-lang.in: Change copyright header to refer to version
2569 3 of the GNU General Public License and to point readers at the
2570 COPYING3 file and the FSF's license web page.
2571 * gcc-interface/trans.c: Likewise.
2572 * gnathtml.pl: Likewise.
2573 * gcc-interface/ada.h: Likewise. Remove runtime exception.
2574 * gcc-interface/gigi.h: Likewise.
2575 * gcc-interface/misc.c: Likewise.
2576 * gcc-interface/targtyps.c: Likewise.
2578 2009-04-09 Nicolas Setton <setton@adacore.com>
2580 * s-osinte-darwin.ads: Fix wrong binding to struc timeval.
2582 * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of
2585 2009-04-09 Bob Duff <duff@adacore.com>
2587 * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in
2588 internally-generated nodes related to select statements to avoid
2589 confusing the debugger.
2591 2009-04-09 Pascal Obry <obry@adacore.com>
2593 * make.adb: Ensure that all linker arguments are duplicated.
2595 2009-04-09 Robert Dewar <dewar@adacore.com>
2597 * sem_ch5.adb: Minor reformatting
2599 2009-04-09 Vincent Celier <celier@adacore.com>
2602 Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT
2603 New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn
2604 New qualifier /LXDEBUG=nnn for -gnatDnnn
2608 Update documentation for VMS qualifiers equivalent to -gnatGnn and
2611 2009-04-09 Nicolas Setton <setton@adacore.com>
2613 * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long,
2614 to match layout of siginfo_t in sys/signal.h.
2616 * gcc-interface/Makefile.in: Add section for x86_64 darwin.
2618 2009-04-09 Thomas Quinot <quinot@adacore.com>
2620 * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment.
2622 2009-04-09 Nicolas Setton <setton@adacore.com>
2624 * s-oscons-tmplt.c: Allow long lines in the generated spec.
2625 Add generation of Darwin-specific constants needed when binding to the
2628 2009-04-09 Robert Dewar <dewar@adacore.com>
2631 (Insert_Valid_Check): Avoid unnecessary generation of junk declaration
2632 when no invalid values exist, Avoid duplicate read of atomic variable.
2634 * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid
2635 (Standard_Unsigned): Set Is_Known_Valid
2637 * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on
2638 subtype declaration if no constraint.
2639 (Set_Modular_Size): Set Is_Known_Valid if appropriate
2640 (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint
2642 2009-04-09 Robert Dewar <dewar@adacore.com>
2644 * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb,
2645 switch.ads: for numeric switches, an optional equal sign is always
2648 2009-04-09 Vincent Celier <celier@adacore.com>
2650 * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where
2651 the case of file names is not significant.
2653 2009-04-09 Vincent Celier <celier@adacore.com>
2655 * errout.adb: Remove dependency on package Style
2657 * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
2660 * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
2663 * errutil.adb, par.adb: Import Stylesw
2665 2009-04-09 Arnaud Charlet <charlet@adacore.com>
2667 * opt.ads: Fix typos.
2669 2009-04-09 Robert Dewar <dewar@adacore.com>
2671 * einfo.adb: Minor reformatting
2673 2009-04-09 Robert Dewar <dewar@adacore.com>
2675 * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
2678 * styleg-c.ads, styleg-c.adb: Removed, no longer used.
2680 2009-04-09 Robert Dewar <dewar@adacore.com>
2682 * g-comver.adb: Minor reformatting.
2684 2009-04-09 Thomas Quinot <quinot@adacore.com>
2686 * lib-load.ads (Load_Unit): Update documentation.
2688 2009-04-09 Ed Schonberg <schonberg@adacore.com>
2690 * lib-load.adb (Load_Unit): When loading the parent of a child unit
2691 named in a with_clause, retain the with_clause to preserve a
2692 limited_with indication.
2694 2009-04-09 Robert Dewar <dewar@adacore.com>
2696 * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb,
2697 exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb,
2698 sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where
2699 possible to replace an OR of two separate tests.
2701 2009-04-09 Robert Dewar <dewar@adacore.com>
2703 * binderr.adb, errout.adb, errutil.adb: New circuitry for handling
2706 * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global
2707 warning status as well.
2709 * opt.ads (Maximum_Messages): New name for Maximum_Errors.
2711 * switch-b.adb, switch-c.adb: Change name Maximum_Errors to
2714 * bindusg.adb, usage.adb: Update line for -gnatm switch
2716 * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and
2719 2009-04-09 Robert Dewar <dewar@adacore.com>
2721 * sem_ch10.adb: Minor reformatting.
2723 2009-04-09 Bob Duff <duff@adacore.com>
2725 * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler):
2726 Set Sloc of generated nodes for calls to Undefer_Aborts and
2727 Save_Occurrence to No_Location, so the debugger ignores them and
2728 therefore does not jump back and forth when single stepping.
2730 2009-04-09 Robert Dewar <dewar@adacore.com>
2732 * switch-b.adb: Minor reformatting.
2734 2009-04-09 Robert Dewar <dewar@adacore.com>
2736 * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
2737 sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
2738 exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
2739 sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
2740 einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
2741 tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
2742 exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
2743 sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
2744 sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
2745 sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
2746 Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
2748 2009-04-09 Robert Dewar <dewar@adacore.com>
2750 * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
2752 * atree.h: Add Elist26
2754 * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
2757 2009-04-09 Javier Miranda <miranda@adacore.com>
2759 * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
2760 retrieve from the Dispatch_Table_Wrappers list the external name.
2761 Addition of documentation.
2762 (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
2763 used to export secondary dispatch tables (in the previous version of
2764 the frontend only primary dispatch tables were exported). Addition of
2766 (Import_DT): New subprogram (internal of Make_Tags). Used to import a
2767 dispatch table of a given tagged type.
2768 (Make_Tags): Modified to import secondary dispatch tables.
2770 * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
2771 (Constant_Redeclaration): Code cleanup.
2773 * einfo.ads (Dispatch_Table_Wrapper): Renamed to
2774 Dispatch_Table_Wrappers. Update documentation.
2776 * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
2777 Renamed to Dispatch_Table_Wrappers.
2779 * sem_util.adb (Collect_Interface_Components): Improve handling of
2782 * atree.ads (Elist26, Set_Elist26): New subprograms
2784 * atree.adb (Elist26, Set_Elist26): New subprograms
2786 2009-04-09 Javier Miranda <miranda@adacore.com>
2788 * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
2789 (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
2792 2009-04-09 Robert Dewar <dewar@adacore.com>
2794 * s-direio.adb: Minor reformatting
2796 * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
2798 2009-04-09 Robert Dewar <dewar@adacore.com>
2800 * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
2802 2009-04-09 Pascal Obry <obry@adacore.com>
2804 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
2805 s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
2806 a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
2807 a-filico.ads: Add some missing overriding keywords.
2809 2009-04-09 Pascal Obry <obry@adacore.com>
2811 * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
2812 a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
2813 a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
2816 2009-04-09 Ed Schonberg <schonberg@adacore.com>
2818 * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
2819 missing overriding indicator if the new declaration is not seen as
2822 2009-04-09 Thomas Quinot <quinot@adacore.com>
2824 * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
2825 overflows in computation of bounds.
2827 2009-04-09 Pascal Obry <obry@adacore.com>
2829 * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
2832 2009-04-09 Robert Dewar <dewar@adacore.com>
2834 * sem_attr.adb (Check_Stream_Attribute): Check violation of
2835 restriction No_Streams
2837 * gnat_rm.texi: Clarify No_Streams restriction
2839 * g-socket.adb: Minor reformatting.
2841 2009-04-09 Thomas Quinot <quinot@adacore.com>
2843 * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
2845 2009-04-09 Geert Bosch <bosch@adacore.com>
2847 * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
2848 (Set_Result): Likewise.
2849 (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
2850 conversion, as required by RM 4.6(31).
2852 2009-04-08 Robert Dewar <dewar@adacore.com>
2854 * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
2857 * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
2860 2009-04-08 Robert Dewar <dewar@adacore.com>
2862 * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
2863 No_Local_Allocators restriction preventing local instantiation.
2865 2009-04-08 Thomas Quinot <quinot@adacore.com>
2867 * sem_eval.adb: Minor comment fix
2869 2009-04-08 Thomas Quinot <quinot@adacore.com>
2871 * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
2872 New limited controlled type used to automate the initialization and
2873 finalization of the sockets implementation.
2874 (GNAT.Sockets.Initialize, Finalize): Make these no-ops
2876 2009-04-08 Vincent Celier <celier@adacore.com>
2878 * prj-attr.adb: New read-only project-level attribute Project_Dir
2880 * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
2881 read-only attribute of the same name.
2882 (Process_Declarative_Items): Call Add_Attributes with Project_Dir
2883 (Recursive_Process): Ditto
2885 * snames.adb: Add new standard name Project_Dir
2887 * snames.ads: Add new standard name Project_Dir
2889 2009-04-08 Thomas Quinot <quinot@adacore.com>
2891 * checks.adb: Minor reformatting
2893 2009-04-08 Vincent Celier <celier@adacore.com>
2895 * vms_data.ads: Add documentation for new style keyword
2896 OVERRIDING_INDICATORS
2898 2009-04-08 Robert Dewar <dewar@adacore.com>
2900 * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
2901 spec is in the current unit.
2903 2009-04-08 Ed Schonberg <schonberg@adacore.com>
2905 * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
2908 * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
2910 2009-04-08 Vincent Celier <celier@adacore.com>
2912 * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
2914 2009-04-08 Thomas Quinot <quinot@adacore.com>
2916 * checks.ads: Minor reformatting
2918 2009-04-08 Robert Dewar <dewar@adacore.com>
2920 * gnat_rm.texi: Update documentation of pragma Obsolescent
2922 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
2923 be omitted, and allow Entity parameter to be omitted.
2925 2009-04-08 Thomas Quinot <quinot@adacore.com>
2927 * exp_util.adb: Minor comment fix
2929 2009-04-08 Robert Dewar <dewar@adacore.com>
2931 * g-socket.ads: Fix bad syntax in pragma Obsolescent
2933 * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
2934 argument with no identifier following one that has an identifier. Was
2935 missed in some cases.
2937 * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
2939 (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
2941 * snames.adb: Add Name_Policy
2943 * snames.ads: Add Name_Policy
2945 2009-04-08 Robert Dewar <dewar@adacore.com>
2947 * gnat_rm.texi: Minor reformatting
2949 * par-ch2.adb: Minor reformatting
2951 2009-04-08 Robert Dewar <dewar@adacore.com>
2953 * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
2955 2009-04-08 Robert Dewar <dewar@adacore.com>
2957 * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
2958 properly in the presence of Remote_Types or Remote_Call_Interface.
2960 * sem_util.adb: Add comment.
2962 2009-04-08 Robert Dewar <dewar@adacore.com>
2964 * ug_words: Add /ASSUME_VALID for -gnatB
2966 * vms_data.ads: Add /ASSUME_VALID for -gnatB
2968 * sem_cat.adb: Add clarifying commment
2970 * a-direio.ads (Bytes): Make sure value is non-zero
2972 2009-04-08 Ed Schonberg <schonberg@adacore.com>
2974 * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
2975 that does not come from source, check for a rewritten function call in
2976 prefixed notation before other forms of rewriting.
2978 2009-04-08 Robert Dewar <dewar@adacore.com>
2980 * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
2981 these are now obsolescent units used only for bootrapping with an
2984 2009-04-08 Robert Dewar <dewar@adacore.com>
2986 * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
2988 * sem_ch3.adb: Minor comment updates
2990 2009-04-08 Ed Schonberg <schonberg@adacore.com>
2992 * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
2993 that come from source.
2995 2009-04-08 Tristan Gingold <gingold@adacore.com>
2997 * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE.
2998 * gcc-interface/decl.c (prepend_attributes): New case
2999 Pragma_Thread_Local_Storage.
3000 * gcc-interface/utils.c (process_attributes): New case
3001 ATTR_THREAD_LOCAL_STORAGE.
3003 2009-04-08 Ed Schonberg <schonberg@adacore.com>
3005 * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
3006 by the back-end if it contains a call to a subprogram without a
3007 previous spec that is declared in the same unit.
3009 * errout.ads: Update comments on uses of dirs
3011 2009-04-08 Robert Dewar <dewar@adacore.com>
3013 * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
3015 2009-04-08 Tristan Gingold <gingold@adacore.com>
3017 * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
3019 Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
3021 2009-04-08 Vincent Celier <celier@adacore.com>
3024 (Add_Source): Add the mapping of the unit name to source file name in
3025 the Unit_Sources_HT hash table, if the unit name is not null.
3027 * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
3029 * prj.ads (Unit_Sources_Htable): New hash table instantiation
3030 (Project_Tree_Data): New component Unit_Sources_HT
3032 2009-04-08 Thomas Quinot <quinot@adacore.com>
3034 * sem_ch8.adb: Minor reformatting.
3035 Minor code reorganization.
3037 2009-04-08 Robert Dewar <dewar@adacore.com>
3039 * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
3040 snames.ads, freeze.adb, par-prag.adb: Add implementation of
3041 pragma Thread_Local_Storage, setting new flag
3042 Has_Pragma_Thread_Local_Storage in corresponding entities.
3044 2009-04-08 Emmanuel Briot <briot@adacore.com>
3046 * prj.ads: Update comment on switches file
3048 * prj-nmsc.adb: Code clean up. Use renaming clauses.
3050 2009-04-08 Robert Dewar <dewar@adacore.com>
3052 * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
3054 2009-04-08 Thomas Quinot <quinot@adacore.com>
3056 * ali-util.adb: Minor comment fix
3058 2009-04-08 Ed Schonberg <schonberg@adacore.com>
3060 * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
3061 appears in a context clause, and the enclosing package is mentioned in
3062 a limited_with_clause.
3063 (Use_One_Type): Reject clause if type is still incomplete.
3065 2009-04-08 Emmanuel Briot <briot@adacore.com>
3067 * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
3068 avoid copies of Source_Data variables when possible, since these
3069 involve calls to memcpy() which are done too many times.
3071 2009-04-08 Robert Dewar <dewar@adacore.com>
3073 * exp_ch4.adb (Expand_Concatenate): Clean up code
3075 2009-04-07 Thomas Quinot <quinot@adacore.com>
3077 * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
3078 type for the case of concatenating a constrained array indexed by an
3081 2009-04-07 Ed Schonberg <schonberg@adacore.com>
3083 * sem_ch6.adb (Check_Conformance): when checking conformance of an
3084 operation that overrides an abstract operation inherited from an
3085 interface, return False if only one of the controlling formals is an
3088 2009-04-07 Ed Schonberg <schonberg@adacore.com>
3090 * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
3091 mandated by AI05-105.
3093 2009-04-07 Vincent Celier <celier@adacore.com>
3095 * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
3097 2009-04-07 Thomas Quinot <quinot@adacore.com>
3099 * usage.adb: Minor fix in usage message.
3101 * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
3102 match declaration; the correct subtype is Node_Id, not Entity_Id,
3103 because the expected node kind is an identifier, not a defining
3106 * switch-c.adb: Minor reformatting.
3108 * uintp.adb: Minor reformatting.
3110 2009-04-07 Robert Dewar <dewar@adacore.com>
3112 * exp_ch13.adb: Minor reformatting
3114 2009-04-07 Robert Dewar <dewar@adacore.com>
3116 * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
3117 against missing parent.
3119 2009-04-07 Thomas Quinot <quinot@adacore.com>
3121 * xoscons.adb: Minor reformatting
3123 2009-04-07 Robert Dewar <dewar@adacore.com>
3125 * rtsfind.ads: Remove obsolete string concatenation entries
3127 2009-04-07 Robert Dewar <dewar@adacore.com>
3129 * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
3131 2009-04-07 Ed Schonberg <schonberg@adacore.com>
3133 * sem_ch10.adb (Check_Body_Required): Handle properly imported
3136 2009-04-07 Gary Dismukes <dismukes@adacore.com>
3138 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
3139 Attribute_Address): When Init_Or_Norm_Scalars is True and the object
3140 is of a scalar or string type then suppress the setting of the
3141 expression to Empty.
3143 * freeze.adb (Warn_Overlay): Also emit the warnings about default
3144 initialization for the cases of scalar and string objects when
3145 Init_Or_Norm_Scalars is True.
3147 2009-04-07 Bob Duff <duff@adacore.com>
3149 * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
3151 2009-04-07 Bob Duff <duff@adacore.com>
3153 * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
3154 Form parameter of Text_Translation=No allows binary mode for Text_IO
3157 * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
3159 2009-04-07 Javier Miranda <miranda@adacore.com>
3161 * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
3162 processing the bounds for bit packed arrays or VM target machines.
3164 2009-04-07 Thomas Quinot <quinot@adacore.com>
3166 * g-sothco.ads (Int_Access): Remove extraneous access type (use
3167 anonymous access instead).
3168 (Get_Socket_From_Set): Fix incorrectly reverted formals
3169 Last and Socket to match the underlying C routine.
3171 * g-socket.adb, g-socket.ads
3172 (Get): Use named parameter associations instead of positional ones in
3173 call go Get_Socket_From_Set, since this routine has two formals of the
3175 (Image): New procedure.
3177 * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
3178 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
3179 (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
3180 for type of Arg formal.
3182 * sem_warn.adb: Minor reformatting
3184 2009-04-07 Ed Schonberg <schonberg@adacore.com>
3186 * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
3187 over record components.
3189 2009-04-07 Nicolas Roche <roche@adacore.com>
3192 Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
3193 has disappeared between VxWorks 6.4 and VxWorks 6.5
3194 In RTP mode use time.h instead of times.h
3196 2009-04-07 Robert Dewar <dewar@adacore.com>
3198 * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
3200 2009-04-07 Kevin Pouget <pouget@adacore.com>
3202 * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
3203 expanded code for constrained types.
3205 2009-04-07 Ed Schonberg <schonberg@adacore.com>
3207 * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
3208 AI05-105: in an object renaming declaration, anonymousness is a name
3211 * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
3213 2009-04-07 Arnaud Charlet <charlet@adacore.com>
3215 * g-comlin.adb (Expansion): Fix old regression: also return directory
3216 names when matching.
3218 2009-04-07 Robert Dewar <dewar@adacore.com>
3221 (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
3222 (Expand_Concatenate): New name for Expand_Concatenate_String which has
3223 been rewritten to handle all types.
3224 (Expand_Concatenate_Other): Remove
3226 2009-04-07 Ed Schonberg <schonberg@adacore.com>
3228 * lib-xref.adb (Generate_Reference): A default subprogram in an
3229 instance appears within the tree for the instance, but generates an
3230 implicit reference in the ALI.
3232 2009-04-07 Javier Miranda <miranda@adacore.com>
3234 * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
3235 derived type that has discriminants, propagate the list of interfaces
3236 to the corresponding new base type. In addition, propagate also
3237 attribute Limited_Present (found working in this patch).
3239 2009-04-07 Robert Dewar <dewar@adacore.com>
3241 * exp_ch4.adb: Rewrite concatenation expansion.
3243 2009-04-07 Ed Schonberg <schonberg@adacore.com>
3245 * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
3246 relevant to packages.
3248 2009-04-07 Robert Dewar <dewar@adacore.com>
3250 * sem_attr.adb: Minor reformatting
3252 * sem_ch6.adb: Minor reformatting
3254 2009-04-07 Tristan Gingold <gingold@adacore.com>
3256 * socket.c: Add more protections against S_resolvLib_ macros.
3258 2009-04-07 Thomas Quinot <quinot@adacore.com>
3260 * sem_attr.adb: Minor reformatting
3262 2009-04-07 Ed Schonberg <schonberg@adacore.com>
3264 * sem_ch6.adb (New_Overloaded_Entity): New predicate
3265 Is_Overriding_Alias to handle properly types that inherit two homonym
3266 operations that have distinct dispatch table entries.
3268 2009-04-07 Emmanuel Briot <briot@adacore.com>
3270 * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
3271 looking for the end of a parenthesis group
3273 2009-04-07 Tristan Gingold <gingold@adacore.com>
3275 * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
3277 * socket.c Don't use resolvLib_ macros if not defined.
3279 2009-04-07 Robert Dewar <dewar@adacore.com>
3281 * g-socket.adb: Minor reformatting.
3283 * g-socthi-mingw.adb: Minor reformatting
3285 * g-sothco.ads: Minor reformatting
3288 (Expand_Concatenate_String): Complete rewrite to generate efficient code
3289 inline instead of relying on external library routines.
3291 * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
3292 s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
3295 2009-04-07 Ed Schonberg <schonberg@adacore.com>
3298 (Eval_Attribute): for attributes of array objects that are not strings,
3299 attributes are not static if nominal subtype of object is unconstrained.
3301 2009-04-07 Ed Schonberg <schonberg@adacore.com>
3303 * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
3304 operations for a type T in an instance do not override each other,
3305 when T is derived from a formal private type, the corresponding
3306 operations inherited by a type derived from T outside
3307 of the instance do not override each other either.
3309 2009-04-07 Robert Dewar <dewar@adacore.com>
3311 (Osint.Fail): Change calling sequence to have one string arg
3312 (Make.Make_Failed): Same change
3313 All callers are adjusted to use concatenation
3315 2009-04-07 Robert Dewar <dewar@adacore.com>
3317 * exp_ch4.adb: Fix documentation typo
3319 2009-04-07 Robert Dewar <dewar@adacore.com>
3321 * tbuild.ads: Minor reformatting
3323 2009-04-07 Javier Miranda <miranda@adacore.com>
3325 * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
3326 when compiling under ZFP runtime.
3328 2009-04-07 Robert Dewar <dewar@adacore.com>
3330 * g-comlin.adb: Minor reformatting
3332 2009-04-07 Thomas Quinot <quinot@adacore.com>
3334 * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
3335 g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
3336 g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
3337 Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
3339 2009-04-07 Robert Dewar <dewar@adacore.com>
3341 * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
3343 * opt.ads (Sprint_Line_Limit): New parameter
3345 * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
3347 * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
3349 * usage.adb: Output information for -gnatGnn -gnatDnn
3351 2009-04-07 Robert Dewar <dewar@adacore.com>
3353 * make.adb: Minor reformatting
3355 2009-04-07 Robert Dewar <dewar@adacore.com>
3357 * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
3359 2009-04-07 Robert Dewar <dewar@adacore.com>
3361 * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
3363 2009-04-07 Robert Dewar <dewar@adacore.com>
3366 Remove Assume_Valid parameter from In_Subrange_Of calls
3369 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
3370 (Is_In_Range): Remove incorrect use of Assume_Valid
3371 (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
3374 (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
3375 (Is_In_Range): Documentation cleanup
3376 (Is_Out_Of_Range): Documentation cleanup
3379 Add documentation for Assume_No_Invalid_Values pragma
3381 * sem_ch12.adb: Minor reformatting
3383 * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
3385 * sem_prag.adb: Improve error message.
3387 * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
3388 LF/CR no longer recognized as line terminator
3390 * switch.ads: Minor documentation improvement
3392 * vms_data.ads: Minor reformatting
3394 2009-04-07 Robert Dewar <dewar@adacore.com>
3396 * checks.adb (Determine_Range): Add Assume_Valid parameter
3398 * checks.ads (Determine_Range): Add Assume_Valid parameter
3400 * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
3401 Is_Null_Loop to suppress warnings in a loop body.
3404 (Rewrite_Comparison): Major rewrite to accomodate invalid values
3407 (Expand_N_Loop_Statement): Delete loop known not to execute
3410 (Assume_No_Invalid_Values): Now set to False, and as documented, this
3411 fully enables the proper handling of invalid values.
3414 New calling sequence for Is_In_Range
3417 (Analyze_Iteration_Scheme): Accomodate possible invalid values
3418 in determining if a loop range is null.
3421 (Is_In_Range): Add Assume_Valid parameter
3422 (Is_Out_Of_Range): Add Assume_Valid_Parameter
3423 (Compile_Time_Compare): Major rewrite to accomodate invalid values and
3424 also to do more accurate and complete range analysis, catching more
3428 (Is_In_Range): Add Assume_Valid parameter
3429 (Is_Out_Of_Range): Add Assume_Valid_Parameter
3432 New calling sequence for Is_In_Range
3435 (Suppress_Loop_Warnings): New flag
3438 (Is_Null_Loop): Update documentation
3439 (Suppress_Loop_Warnings): New flag
3441 * gnat_ugn.texi: Document -gnatB switch
3443 2009-04-07 Arnaud Charlet <charlet@adacore.com>
3445 * gnatvsn.ads: Bump version number.
3447 2009-04-07 Thomas Quinot <quinot@adacore.com>
3449 * exp_ch3.adb: Minor rewording (comments)
3451 2009-04-07 Robert Dewar <dewar@adacore.com>
3453 * exp_disp.adb: Minor reformatting
3455 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
3457 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
3459 * gcc-interface/trans.c (lvalue_required_p): Likewise.
3461 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
3463 * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
3464 Do not convert the result. Remove obsolete comment.
3466 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
3468 * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
3470 (Subprogram_Body_to_gnu): Fix pasto.
3472 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
3474 * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
3475 (void_type_decl_node): Remove.
3476 (init_gigi_decls): Likewise.
3477 (gnat_install_builtins): Declare.
3478 (record_builtin_type): Likewise.
3479 (create_type_stub_decl): Likewise.
3480 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
3481 (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
3483 <E_Array_Subtype>: Use the index types, not only their name, in the
3484 record giving the names of the bounds, if any.
3485 For a packed array type, make it artificial only if the base type
3486 was artificial as well. Remove redundant statement.
3487 (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
3489 Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
3490 (rest_of_type_decl_compilation_no_defer): Likewise.
3491 * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
3492 * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
3493 and use create_type_stub_decl to build it.
3494 (gnat_pushdecl): Rewrite condition.
3495 (gnat_install_builtins): Remove bogus declaration.
3496 (record_builtin_type): New function.
3497 (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
3499 (create_type_stub_decl): New function.
3500 (create_type_decl): Assert that the type is not dummy. If the type
3501 hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
3502 (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
3503 (build_vms_descriptor): Likewise.
3504 (init_gigi_decls): Delete and move bulk of code to...
3505 * gcc-interface/trans.c (gigi): ...here. Use record_builtin_type.
3506 (emit_range_check): Add gnat_node parameter.
3507 (emit_index_check): Likewise.
3508 (emit_check): Likewise.
3509 (build_unary_op_trapv): Likewise.
3510 (build_binary_op_trapv): Likewise.
3511 (convert_with_check): Likewise.
3512 (Attribute_to_gnu): Adjust calls for above changes.
3513 (call_to_gnu): Likewise.
3514 (gnat_to_gnu): Likewise.
3515 (assoc_to_constructor): Likewise.
3516 (pos_to_constructor): Likewise.
3517 (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
3518 (process_type): Do not create TYPE_DECL for dummy types.
3520 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
3522 * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
3523 * gcc-interface/trans.c: Fix formatting throughout. Fix comments.
3524 * gcc-interface/utils.c: Fix comments.
3526 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
3528 * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
3530 (gnat_to_gnu_type): Move around.
3531 (get_unpadded_type): Likewise.
3532 * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
3535 2009-04-07 Eric Botcazou <ebotcazou@adacore.com>
3537 * gcc-interface/trans.c (check_for_eliminated_entity): New function.
3538 (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
3539 (call_to_gnu): Invoke it instead of manually checking.
3541 2009-04-04 Eric Botcazou <ebotcazou@adacore.com>
3543 * gcc-interface/utils.c (finish_record_type): Force structural equality
3544 checks if the record type is discriminated.
3546 2009-03-31 Eric Botcazou <ebotcazou@adacore.com>
3548 * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
3549 * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
3550 * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
3551 * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
3552 * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
3553 * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
3554 * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
3556 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
3558 * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
3559 of TREE_CONSTANT_OVERFLOW.
3561 2009-03-30 Joseph Myers <joseph@codesourcery.com>
3563 PR rtl-optimization/323
3564 * gcc-interface/misc.c (gnat_post_options): Set
3565 flag_excess_precision_cmdline. Give an error for
3566 -fexcess-precision=standard for processors where the option is
3569 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
3572 * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
3575 2009-03-11 Olivier Hainque <hainque@adacore.com>
3577 * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
3578 checks processing, remove unintended TREE_TYPE walk on index type.
3580 2009-03-01 Eric Botcazou <ebotcazou@adacore.com>
3583 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
3584 call make_packable_type on fat pointer types.
3585 <E_Array_Subtype>: Likewise.
3586 <E_Record_Subtype>: Call make_packable_type on all record types
3587 except for fat pointer types.
3588 (make_packable_type): Likewise.
3589 (gnat_to_gnu_field): Likewise.
3591 2009-02-28 Eric Botcazou <ebotcazou@adacore.com>
3593 * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
3594 EH_MECHANISM change made on 2007-12-06.
3596 2009-02-26 Andreas Schwab <schwab@suse.de>
3599 * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
3600 * gcc-interface/Makefile.in: Change all uses of $(srcdir),
3601 $(fsrcdir) and $(fsrcpfx) to add ada subdir.
3603 (target_cpu_default): Substitute.
3605 2009-02-25 Laurent GUERBY <laurent@guerby.net>
3608 * a-teioed.adb (Expand): Fix Result overflow.
3610 2009-02-25 Laurent GUERBY <laurent@guerby.net>
3612 * gcc-interface/Makefile.in: Fix multilib handling for
3615 2009-02-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3617 * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
3619 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
3621 * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
3623 2009-02-16 Eric Botcazou <ebotcazou@adacore.com>
3625 * gcc-interface/deftarg.c: Remove.
3627 2009-02-10 Olivier Hainque <hainque@adacore.com>
3628 Eric Botcazou <ebotcazou@adacore.com>
3630 * gcc-interface/decl.c (enum alias_set_op): New enumeration.
3631 (copy_alias_set): Rename into...
3632 (relate_alias_sets): ...this. Add third parameter OP. Retrieve the
3633 underlying array of unconstrained arrays for the new type as well.
3634 If the old and new alias sets don't conflict, make one a subset of
3635 the other as per the OP parameter.
3636 (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
3637 <E_Record_Type>: Do not copy the alias set for derived types.
3638 For all types, make the alias set of derived types a superset of
3639 that of their parent type.
3640 (make_aligning_type): Adjust calls to copy_alias_set.
3641 (make_packable_type): Likewise.
3642 * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
3643 Check for alias set conflict instead of strict equality to issue the
3646 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
3648 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
3649 Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
3650 (copy_alias_set): Assert that arrays have the same aliasing settings.
3651 (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
3653 2009-02-08 Eric Botcazou <ebotcazou@adacore.com>
3655 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
3656 Set TYPE_NONALIASED_COMPONENT on the array type.
3658 2009-01-31 Laurent GUERBY <laurent@guerby.net>
3660 * gcc-interface/Makefile.in: Fix mipsel linux handling.
3662 2009-01-16 Jakub Jelinek <jakub@redhat.com>
3664 * gcc-interface/Makefile.in: Fix multilib handling for
3667 2009-01-12 Eric Botcazou <ebotcazou@adacore.com>
3669 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
3670 only useless conversions around renamed objects.
3672 2009-01-11 Eric Botcazou <ebotcazou@adacore.com>
3674 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
3675 the _Tag field before any discriminants in the field list.
3676 (components_to_record): Remove obsolete comment.
3678 2008-12-09 Jakub Jelinek <jakub@redhat.com>
3681 * gcc-interface/utils.c (finish_record_type): Use SET_TYPE_MODE.
3682 * gcc-interface/decl.c (gnat_to_gnu_entity, make_aligning_type):
3685 2008-12-05 Sebastian Pop <sebastian.pop@amd.com>
3688 * gcc-interface/Make-lang.in (gnat1): Add BACKENDLIBS, remove GMPLIBS.
3690 2008-11-29 Eric Botcazou <ebotcazou@adacore.com>
3693 * g-comver.adb (Ver_Len_Max): Fix inconsistency.
3695 2008-11-27 Eric Botcazou <ebotcazou@adacore.com>
3697 * gcc-interface/decl.c: Fix various nits.
3699 2008-11-20 Eric Botcazou <ebotcazou@adacore.com>
3701 * gcc-interface/utils.c (init_gigi_decls): Fix type mismatch.
3703 2008-11-16 Eric Botcazou <ebotcazou@adacore.com>
3706 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Do not
3707 special-case boolean types. Propagate the name.
3708 * gcc-interface/targtyps.c: Tweak comment.
3710 2008-11-15 Geert Bosch <bosch@adacore.com>
3712 * gcc-interface/trans.c (emit_check): Put back a final save_expr
3713 to prevent exponential expansion during gimplification.
3715 2008-11-15 Eric Botcazou <ebotcazou@adacore.com>
3717 * gcc-interface/lang-specs.h: Expand -coverage and reorder switches.
3719 2008-11-15 Eric Botcazou <ebotcazou@adacore.com>
3721 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Force constants
3722 initialized to a static constant to be statically allocated even if
3723 they are of a padding type, provided the original type also has
3726 2008-11-15 Laurent Guerby <laurent@guerby.net>
3729 * gcc-interface/Makefile.in: Add multilib handling for x86_64
3731 * system-darwin-x86_64.ads: New file.
3733 2008-11-13 Olivier Hainque <hainque@adacore.com>
3735 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>:
3736 Turn Ada Pure on subprograms back into GCC CONST when eh constructs
3737 are explicit to the middle-end. Tidy.
3739 2008-11-09 Eric Botcazou <ebotcazou@adacore.com>
3741 * gcc-interface/ada-tree.def (PLUS_NOMOD_EXPR): New tree code.
3742 (MINUS_NOMOD_EXPR): Likewise.
3743 * gcc-interface/utils2.c (build_binary_op) <PREINCREMENT_EXPR>: Make
3745 <PLUS_NOMOD_EXPR>: New case.
3746 <MINUS_NOMOD_EXPR>: Likewise.
3747 * gcc-interface/trans.c (Loop_Statement_to_gnu): Build increment-and-
3748 assignment statement instead of using an increment operator.
3750 2008-11-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3752 * system-irix-n64.ads: New file.
3753 * gcc-interface/Makefile.in (mips-sgi-irix6*): Support O32 and N64
3756 2008-11-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3759 * system-solaris-x86_64.ads: New file.
3760 * gcc-interface/Makefile.in (*86-solaris2*): Support x86_64 multilib.
3762 2008-11-07 Bechir Zalila <bechir.zalila@gmail.com>
3763 Eric Botcazou <ebotcazou@adacore.com>
3766 * lib.ads: (Enable_Switch_Storing): Declare.
3767 * lib.adb: (Enable_Switch_Storing): New procedure.
3768 * switch-c.adb (Scan_Front_End_Switches): Add support for -gnatea.
3769 * make.adb: (Compile_Sources.Compile): Add -gnatea as first option.
3770 (Display): Never display -gnatea
3771 * gcc-interface/lang-specs.h: If -gnatea is present, pass -gnatez.
3773 2008-11-07 Thomas Quinot <quinot@adacore.com>
3775 * gcc-interface/trans.c (Attribute_to_gnu, case Attr_Length): Check
3776 for empty range in original base type, not converted result type.
3778 2008-11-07 Geert Bosch <bosch@adacore.com>
3780 * gcc-interface/trans.c (build_binary_op_trapv): Convert arguments
3781 and result for call to __gnat_mulv64.
3783 2008-11-07 Eric Botcazou <ebotcazou@adacore.com>
3785 * gcc-interface/trans.c: Fix formatting nits.
3787 2008-11-07 Geert Bosch <bosch@adacore.com>
3789 * gcc-interface/trans.c (build_binary_op_trapv): Avoid emitting
3790 overflow check for constant result.
3792 2008-11-07 Geert Bosch <bosch@adacore.com>
3794 * gcc-interface/trans.c (build_binary_op_trapv): Use more efficient
3795 overflow check for addition/subtraction if neither operand is constant.
3797 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
3799 * gcc-interface/Makefile.in (SPARC/Solaris): Use a common set of
3800 files for the target-dependent part of the runtime.
3801 (SPARC/Linux): Likewise.
3803 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
3805 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Out_Parameter>: If not
3806 optimizing, create a PARM_DECL pointing to the VAR_DECL for debugging
3809 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
3811 * gcc-interface/misc.c (gnat_printable_name): Always return a copy
3814 2008-11-06 Eric Botcazou <ebotcazou@adacore.com>
3817 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>:
3818 Generate a call to memmove for an assignment between overlapping
3821 2008-11-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3824 * gcc-interface/Makefile.in: Add multilib handling for
3825 s390-linux and s390x-linux.
3827 2008-10-24 Jakub Jelinek <jakub@redhat.com>
3829 * gcc-interface/Make-lang.in (check-ada-subtargets): Depend on
3830 check-acats-subtargets and check-gnat-subtargets.
3831 (check_acats_targets): New variable.
3832 (check-acats-subtargets, check-acats%): New targets.
3833 (check-acats): If -j is used and CHAPTERS is empty, run the testing
3834 in multiple make goals, possibly parallel, and afterwards run
3835 dg-extract-results.sh to merge the sum and log files.
3837 2008-10-17 Geert Bosch <bosch@adacore.com>
3839 * gcc-interface/trans.c (gnat_to_gnu) <N_Slice>: Simplify expansion
3840 to use only a single check instead of three, and avoid unnecessary
3842 (emit_check): Avoid useless COMPOUND_EXPRs and SAVE_EXPRs, sometimes
3843 creating more opportunities for optimizations.
3845 2008-10-13 Jakub Jelinek <jakub@redhat.com>
3848 * gcc-interface/utils.c (gnat_types_compatible_p): Handle
3851 2008-10-07 Eric Botcazou <ebotcazou@adacore.com>
3853 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Move code
3854 dealing with volatileness to after code dealing with renaming.
3856 2008-10-06 Eric Botcazou <ebotcazou@adacore.com>
3858 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Minor tweaks.
3859 * gcc-interface/trans.c (Pragma_to_gnu): Likewise.
3861 2008-10-06 Eric Botcazou <ebotcazou@adacore.com>
3863 * gcc-interface/utils.c (can_fold_for_view_convert_p): New predicate.
3864 (unchecked_convert): Use it to disable problematic folding with
3865 VIEW_CONVERT_EXPR in the general case. Always disable it for the
3866 special VIEW_CONVERT_EXPR built for integral types and cope with
3867 its addressability issues by preserving the first conversion.
3869 2008-10-01 Andreas Schwab <schwab@suse.de>
3871 * system-linux-ppc64.ads: New file.
3872 * gcc-interface/Makefile.in: Add multilib handling for
3875 2008-09-26 Eric Botcazou <ebotcazou@adacore.com>
3877 * decl.c (gnat_to_gnu_entity) <object>: Cap the alignment promotion
3878 to that of ptr_mode instead of word_mode.
3880 2008-09-26 Eric Botcazou <ebotcazou@adacore.com>
3883 * gcc-interface/Makefile.in (SPARC/Solaris): Add multilib support.
3885 2008-09-25 Samuel Tardieu <sam@rfc1149.net>
3888 * adaint.c (__gnat_set_non_writable): Use FILE_WRITE_EA
3889 instead of deprecated FILE_WRITE_PROPERTIES.
3891 2008-09-22 Olivier Hainque <hainque@adacore.com>
3893 * gcc-interface/decl.c (gnat_to_gnu_entity): Even when they
3894 are never assigned, volatile entities are not constant for code
3895 generation purposes.
3897 2008-09-21 Laurent Guerby <laurent@guerby.net>
3900 * gcc-interface/Makefile.in: Add multilib handling for x86_64
3902 * system-linux-sparcv9.ads: New file.
3904 2008-09-20 Eric Botcazou <ebotcazou@adacore.com>
3906 * exp_dbug.ads: Document new convention for the XVZ variable.
3907 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Generate
3908 debug info if necessary for the type padding the component type.
3909 <E_Array_Subtype>: Likewise.
3910 (maybe_pad_type): Emit the XVZ variable in units.
3911 * gcc-interface/trans.c (Loop_Statement_to_gnu): Fix formatting nits.
3912 (Subprogram_Body_to_gnu): Set the source line of the subprogram's node
3913 on statements generated to initialize the parameter attributes cache.
3914 Set the source line of the end label of the body on the special return
3915 statement built for a procedure with copy-in copy-out parameters.
3917 2008-09-20 Eric Botcazou <ebotcazou@adacore.com>
3920 * gcc-interface/utils.c (create_subprog_decl): Disable inlining for
3921 inlined external functions if they contain a nested function not
3924 2008-09-18 Jan Hubicka <jh@suse.cz>
3926 * gcc-interface/utils.c (create_subprog_decl): Use DECL_DECLARED_INLINE_P.
3927 (end_subprog_body): Do not set DECL_INLINE.
3929 2008-09-17 Pascal Rigaux <pixel@mandriva.com>
3932 * gnat_ugn.texi: Use proper format in direntry.
3934 2008-09-15 Eric Botcazou <ebotcazou@adacore.com>
3936 * gcc-interface/trans.c (gigi): Declare the name of the compilation
3937 unit as the first global name.
3939 2008-09-14 Jan Hubicka <jh@suse.cz>
3941 * gcc-interface/Make-lang.in (gnat1): Add CFLAGS.
3943 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3945 * a-crbtgk.adb, a-direct.ads, a-tasatt.adb, ali.ads,
3946 bindgen.adb, checks.adb, einfo.ads, exp_aggr.adb, exp_ch11.adb,
3947 exp_ch3.adb, exp_ch4.adb, exp_ch6.adb, exp_ch7.adb, exp_ch9.adb,
3948 exp_dbug.ads, exp_disp.adb, exp_dist.adb, exp_pakd.adb,
3949 exp_util.adb, g-alveop.ads, g-comlin.adb, g-comlin.ads,
3950 g-diopit.adb, g-socket.ads, gcc-interface/decl.c,
3951 gcc-interface/gigi.h, gcc-interface/trans.c,
3952 lib-load.adb, lib-xref.ads, make.adb, mlib-prj.adb, nlists.ads,
3953 opt.ads, par-ch10.adb, par-ch5.adb, par.adb, s-os_lib.ads,
3954 s-oscons-tmplt.c, s-parint.ads, s-regpat.ads, s-shasto.ads,
3955 s-stausa.ads, s-taprop-vms.adb, sem.adb, sem_ch10.adb,
3956 sem_ch11.adb, sem_ch12.adb, sem_ch13.adb, sem_ch3.adb,
3957 sem_ch3.ads, sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
3958 sem_elim.adb, sem_prag.adb, sem_util.adb, sem_util.ads,
3959 sem_warn.adb, sinfo.ads, styleg.adb, vms_data.ads: Fix typos in
3961 * gnathtml.pl: Fix typos.
3963 2008-09-10 Joel Sherrill <joel.sherrill@oarcorp.com>
3965 * gcc-interface/Makefile.in: Switch RTEMS to s-interr-hwint.adb.
3966 * s-osinte-rtems.ads: Add shared hardware interrupt adapter
3967 layer. RTEMS binds to OS provided adapter routines so there are
3968 no modifications to s-osinte-rtems.adb.
3970 2008-09-09 Arnaud Charlet <charlet@adacore.com>
3971 Joel Sherrill <joel.sherrill@oarcorp.com>
3973 * gcc-interface/Makefile.in: Switch VxWorks to s-interr-hwint.adb.
3975 * s-interr-vxworks.adb: Renamed to s-interr-hwint.adb
3977 * s-interr-hwint.adb: New file.
3979 * s-osinte-vxworks.ads, s-osinte-vxworks.adb: Add new functions
3980 needed by s-interr-hwint.adb.
3982 * s-osinte-vxworks-kernel.adb: New file.
3984 2008-09-05 Joel Sherrill <joel.sherrill@oarcorp.com>
3986 * s-stchop-rtems.adb: Add file missed in early commit. Already
3987 referenced in gcc-interface/Makefile.in.
3989 2008-08-30 Thomas Quinot <quinot@adacore.com>
3991 * gcc-interface/Make-lang.in: Allow s-oscons.{o,ali} to
3992 be built even without a separate libada directory.
3994 2008-08-22 Arnaud Charlet <charlet@adacore.com>
3996 * lib-xref.ads: Fix typo in subprogram reference definition.
3998 2008-08-22 Robert Dewar <dewar@adacore.com>
4000 * s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-strops.adb: Minor code fix
4003 * g-trasym.adb: Ditto
4005 * s-utf_32.adb (Get_Category): Fix obvious typo
4007 * s-wwdcha.adb: Minor code reorganization
4010 2008-08-22 Robert Dewar <dewar@adacore.com>
4012 * checks.adb (Determine_Range): Deal with values that might be invalid
4014 * opt.adb, opt.ads (Assume_No_Invalid_Values[_Config]): New
4015 configuration switches.
4017 * par-prag.adb: Dummy entry for pragma Assume_No_Invalid_Values
4019 * sem_prag.adb: Implement pragma Assume_No_Default_Values
4021 * snames.adb, snames.ads, snames.h:
4022 Add entries for pragma Assume_No_Invalid_Values
4024 * switch-c.adb: Add processing for -gnatB switch
4026 * usage.adb: Add entry for flag -gnatB (no bad invalid values)
4028 2008-08-22 Javier Miranda <miranda@adacore.com>
4030 * exp_ch3.adb (Build_Init_Statements): Transfer to the body of the
4031 init procedure all the expanded code associated with the spec of
4032 task types and protected types.
4034 2008-08-22 Gary Dismukes <dismukes@adacore.com>
4036 * exp_aggr.adb (Static_Array_Aggregate): Call Analyze_And_Resolve on the
4037 component expression copies rather than directly setting Etype and
4038 Is_Static_Expression.
4040 2008-08-22 Gary Dismukes <dismukes@adacore.com>
4042 * sem_util.adb (Has_Preelaborable_Initialization): Revise checking of
4043 private types to allow for types derived from a private type with
4044 preelaborable initialization, but return False for a private extension
4045 (unless it has the pragma).
4047 2008-08-22 Robert Dewar <dewar@adacore.com>
4049 * opt.ads: Minor code reorganization (put entries in alpha order)
4051 2008-08-22 Pascal Obry <obry@adacore.com>
4053 * initialize.c, adaint.c: Use Lock_Task and Unlock_Task for non-blocking
4056 2008-08-22 Geert Bosch <bosch@adacore.com>
4058 * gcc-interface/trans.c: Define FP_ARITH_MAY_WIDEN
4059 (convert_with_check): Only use longest_float_type if FP_ARITH_MAY_WIDEN is 0
4061 2008-08-22 Doug Rupp <rupp@adacore.com>
4063 * bindgen.adb [VMS] (Gen_Adainit_Ada, Gen_Adainit_C): Import and call
4064 __gnat_set_features.
4067 (__gnat_set_features): New function.
4068 (__gnat_features_set): New tracking variable.
4069 (__gl_no_malloc_64): New feature global variable
4071 2008-08-22 Ed Schonberg <schonberg@adacore.com>
4073 * sem_ch8.adb (Use_One_Type): Do not emit warning message about redundant
4074 use_type_clause in an instance.
4076 2008-08-22 Bob Duff <duff@adacore.com>
4078 * exp_ch6.ads: Remove pragma Precondition, since it breaks some builds.
4080 2008-08-22 Robert Dewar <dewar@adacore.com>
4082 * exp_ch6.adb: Minor reformatting
4084 * exp_ch7.adb: Minor reformatting
4086 * exp_ch7.ads: Put routines in proper alpha order
4088 * exp_dist.adb: Minor reformatting
4090 2008-08-22 Vincent Celier <celier@adacore.com>
4092 * prj.ads: Minor comment update
4094 2008-08-22 Robert Dewar <dewar@adacore.com>
4096 * sem_ch5.adb (One_Bound): Fix latent bug involving secondary stack
4098 2008-08-22 Ed Schonberg <schonberg@adacore.com>
4101 (Base_Init_Proc): For a protected subtype, use the base type of the
4102 corresponding record to locate the propoer initialization procedure.
4104 2008-08-22 Robert Dewar <dewar@adacore.com>
4107 (In_Subrange_Of): New calling sequence
4108 (Determine_Range): Prepare for new processing using base type
4111 (Compile_Time_Compare): Use new calling sequence
4114 (Compile_Time_Compare): Use new calling sequence
4117 (Compile_Time_Compare): New calling sequence allows dealing with
4119 (In_Subrange_Of): Ditto
4122 (Compile_Time_Compare): New calling sequence allows dealing with
4124 (In_Subrange_Of): Ditto
4126 2008-08-22 Pascal Obry <obry@adacore.com>
4128 * adaint.c: Fix possible race condition on win32_wait().
4130 2008-08-22 Bob Duff <duff@adacore.com>
4132 * exp_ch5.adb, exp_ch7.adb, exp_ch7.ads, exp_util.adb, freeze.adb,
4133 exp_ch4.adb, exp_ch6.ads, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
4134 exp_intr.adb, exp_ch3.adb: Rename:
4135 Exp_Ch7.Controlled_Type => Needs_Finalization
4136 Exp_Ch7.CW_Or_Controlled_Type => CW_Or_Has_Controlled_Part
4137 Exp_Ch5.Expand_N_Extended_Return_Statement.Controlled_Type =>
4138 Has_Controlled_Parts
4139 (Has_Some_Controlled_Component): Fix bug in array case.
4141 2008-08-22 Robert Dewar <dewar@adacore.com>
4143 * sem_ch8.adb: Minor reformatting
4145 2008-08-22 Kevin Pouget <pouget@adacore.com>
4147 * s-shasto.ads, s-shasto.adb: Move Shared_Var_ROpen, Shared_Var_WOpen and
4148 Shared_Var_Close procedure specifications from package spec to package body.
4150 * rtsfind.ads: Remove RE_Shared_Var_Close, RE_Shared_Var_ROpen,
4151 RE_Shared_Var_WOpen entries.
4153 * exp_dist.adb: Update RE_Any_Content_Ptr to RE_Any_Container_Ptr in
4154 Build_To_Any_Call, Build_TypeCode_Call and Build_From_Any_Call procedures.
4156 2008-08-22 Eric Botcazou <ebotcazou@adacore.com>
4158 * init.c: adjust EH support code on Alpha/Tru64 as well.
4160 * raise-gcc.c: Add back a couple of comments.
4162 2008-08-22 Ed Schonberg <schonberg@adacore.com>
4164 * exp_ch5.adb (Expand_Simple_Function_Return): If secondary stack is
4165 involved and the return type is class-wide, use the type of the expression
4166 for the generated access type. Suppress useless discriminant checks on the
4169 2008-08-22 Bob Duff <duff@adacore.com>
4171 * exp_ch7.adb: Minor comment fix
4173 * exp_ch6.ads: Minor comment fix
4175 2008-08-22 Thomas Quinot <quinot@adacore.com>
4177 * sem_ch8.adb: Minor reformatting
4178 Minor code reorganization (introduce subprogram to factor duplicated
4181 2008-08-22 Sergey Rybin <rybin@adacore.com>
4183 * gnat_ugn.texi: Change the description of gnatcheck default rule
4186 2008-08-22 Eric Botcazou <ebotcazou@adacore.com>
4188 * init.c (__gnat_adjust_context_for_raise): Delete for AIX, HP-UX,
4189 Solaris, FreeBSD, VxWorks and PowerPC/Linux. For x86{-64}/Linux,
4190 do not adjust the PC anymore.
4191 (__gnat_error_handler): Do not call __gnat_adjust_context_for_raise
4192 on AIX, HP-UX, Solaris, FreeBSD and VxWorks.
4194 * raise-gcc.c (get_call_site_action_for): Use _Unwind_GetIPInfo
4195 instead of _Unwind_GetIP.
4197 2008-08-22 Gary Dismukes <dismukes@adacore.com>
4199 * exp_aggr.adb (Static_Array_Aggregate): When a static array aggregate
4200 with a range is transformed into a positional aggregate, any copied
4201 component literals should be marked Is_Static_Expression.
4203 * sem_eval.adb (Compile_Time_Known_Value): Don't treat null literals as
4204 not being known at at compile time when Configurable_Run_Time_Mode is
4207 2008-08-22 Robert Dewar <dewar@adacore.com>
4210 (Expand_N_Attribute_Reference): No validity checking on OUT parameter of
4211 Read or Input attribute.
4213 2008-08-22 Ed Schonberg <schonberg@adacore.com>
4215 * sem_ch8.adb (Use_One_Type): when checking which of two use_type
4216 clauses in related units is redundant, if one of the units is a package
4217 instantiation, use its instance_spec to determine which unit is the
4218 ancestor of the other.
4220 2008-08-22 Javier Miranda <miranda@adacore.com>
4222 * exp_attr.adb (Expand_N_Attribute_Reference): In case of access
4223 attributes add missing support to handle designated types that come
4224 from the limited view.
4226 * exp_disp.adb (Expand_Interface_Conversion): Remove wrong assertion.
4228 2008-08-22 Sergey Rybin <rybin@adacore.com>
4230 * vms_data.ads: Add entry for new gnatcheck -mNNN option
4232 * gnat_ugn.texi: Add description for gnatcheck option '-m'
4234 2008-08-22 Sergey Rybin <rybin@adacore.com>
4236 * gnat_ugn.texi: Update the gnatcheck subsection for metric rules
4237 acoording to the latest changes in the metric rule interface
4239 2008-08-22 Vincent Celier <celier@adacore.com>
4241 * make.adb (Check.File_Not_A_Source_Of): New Boolean function
4242 (Check): Check if the file names registered in the ALI file for the
4243 spec, the body and each of the subunits are the ones expected.
4245 2008-08-22 Robert Dewar <dewar@adacore.com>
4247 * g-catiio.adb: Code cleanup.
4249 2008-08-20 Vincent Celier <celier@adacore.com>
4251 * make.adb (Gnatmake): Remove extra space in version line
4254 (Scan_ALI): Use Name_Find, not Name_Enter to get the name of a subunit,
4255 as the name may already have been entered in the table by the Project
4258 2008-08-20 Jose Ruiz <ruiz@adacore.com>
4260 * errno.c (__get_errno, __set_errno for MaRTE): Transform then into
4261 weak symbols so we use the version provided by MaRTE when available.
4263 2008-08-20 Emmanuel Briot <briot@adacore.com>
4265 * g-catiio.ads, g-catiio.adb:
4266 (Value): Avoid an unnecessary system call to Clock in most cases.
4267 This call is only needed when only the time is provided in the string,
4268 and ignored in all other cases. This is more efficient.
4270 2008-08-20 Eric Botcazou <ebotcazou@adacore.com>
4272 * raise-gcc.c: Fix formatting nits.
4274 2008-08-20 Robert Dewar <dewar@adacore.com>
4277 (Adjust_Record_For_Reverse_Bit_Order): Do not access First_Bit for
4278 non-existing component clause.
4280 * exp_ch5.adb: Minor reformatting
4282 * g-comlin.adb: Minor reformatting
4284 * make.adb: Minor reformatting
4286 * prj-proc.adb: Minor reformatting
4288 * stylesw.ads: Minor reformatting
4290 2008-08-20 Vincent Celier <celier@adacore.com>
4292 * make.adb (Gnatmake_Switch_Found): New Boolean global variable
4293 (Switch_May_Be_Passed_To_The_Compiler): New Boolean global variable
4294 (Add_Switches): New Boolean parameter Unknown_Switches_To_The_Compiler
4295 defaulted to True. Fail when Unknown_Switches_To_The_Compiler is False
4296 and a switch is not recognized by gnatmake.
4297 (Gnatmake): Implement new scheme for gnatmake switches and global
4298 compilation switches.
4299 (Switches_Of): Try successively Switches (<file name>),
4300 Switches ("Ada"), Switches (others) and Default_Switches ("Ada").
4302 2008-08-20 Ed Schonberg <schonberg@adacore.com>
4304 * styleg-c.ads, styleg-c.adb (Missing_Overriding): new procedure to
4305 implement style check that overriding operations are explicitly marked
4308 * style.ads (Missing_Overriding): new procedure that provides interface
4311 * stylesw.ads, stylesw.adb: New style switch -gnatyO, to enable check
4312 that the declaration or body of overriding operations carries an
4313 explicit overriding indicator.
4316 (Analyze_Subprogram_Renaming): if operation is overriding, check whether
4317 explicit indicator should be present.
4319 * sem_ch6.adb (Verify_Overriding_Indicator,
4320 Check_Overriding_Indicator): If operation is overriding, check whether
4321 declaration and/or body of subprogram should be present
4323 2008-08-20 Vincent Celier <celier@adacore.com>
4325 * prj-nmsc.adb (Check_Naming_Schemes): Accept source file names for
4326 gprbuild when casing is MixedCase, whatever the casing of the letters
4329 2008-08-20 Gary Dismukes <dismukes@adacore.com>
4331 * exp_ch3.adb (Build_Array_Init_Proc): Clarify comment related to
4332 creating dummy init proc.
4333 (Requires_Init_Proc): Return False in the case No_Default_Initialization
4334 is in force and the type does not have associated default
4335 initialization. Move test of Is_Public (with tests of restrictions
4336 No_Initialize_Scalars and No_Default_Initialization) to end, past tests
4337 for default initialization.
4339 2008-08-20 Jerome Lambourg <lambourg@adacore.com>
4341 * g-comlin.adb (For_Each_Simple_Switch): Take care of switches not part
4342 of any alias or prefix but having attached parameters (as \"-O2\").
4344 2008-08-20 Robert Dewar <dewar@adacore.com>
4346 * s-fileio.adb: Minor reformatting
4348 2008-08-20 Thomas Quinot <quinot@adacore.com>
4350 * exp_strm.adb (Build_Elementary_Input_Call,
4351 Build_Elementary_Write_Call): Fix incorrect condition in circuitry that
4352 selects the stream attribute routines for long float types.
4354 2008-08-20 Vincent Celier <celier@adacore.com>
4356 * prj-proc.adb (Process_Declarative_Items): Add Location for Array_Data
4358 * prj.ads (Array_Data): Add a component Location
4360 2008-08-20 Ed Schonberg <schonberg@adacore.com>
4363 (Analyze_Pragma, case Obsolescent): Add entity information on the pragma
4364 argument for ASIS and navigation use.
4366 2008-08-20 Ed Schonberg <schonberg@adacore.com>
4368 * einfo.ads: Add comment.
4370 2008-08-20 Bob Duff <duff@adacore.com>
4372 * sem_eval.ads: Minor comment fix.
4374 2008-08-20 Bob Duff <duff@adacore.com>
4376 * exp_ch4.adb (Expand_N_And_Then, Expand_N_Or_Else): Improve constant
4377 folding. We were folding things like "False and then ...", but not
4378 "X and then ..." where X is a constant whose value is known at compile
4381 2008-08-20 Hristian Kirtchev <kirtchev@adacore.com>
4383 * exp_ch5.adb (Controlled_Type): New routine.
4384 (Expand_N_Extended_Return_Statement): When generating a move of the
4385 final list in extended return statements, check the type of the
4386 function and in the case of double expanded return statements, the type
4387 of the returned object.
4388 (Expand_Simple_Function_Return): Perform an interface conversion when
4389 the type of the returned object is an interface and the context is an
4390 extended return statement.
4392 2008-08-20 Ed Schonberg <schonberg@adacore.com>
4394 * sem_util.adb (Set_Debug_Info_Needed): If the entity is a private type
4395 and the full view is visible, set flag on full view as well.
4397 2008-08-20 Thomas Quinot <quinot@adacore.com>
4399 * g-comlin.adb: Minor reformatting
4400 Minor code reorganization.
4402 * freeze.adb: Minor reformatting
4404 2008-08-20 Vincent Celier <celier@adacore.com>
4406 * prj-nmsc.adb (Check_File): An excluded Ada source file may be a
4407 source of another project.
4409 2008-08-20 Pascal Obry <obry@adacore.com>
4411 * s-os_lib.ads: Minor reformatting.
4413 2008-08-20 Arnaud Charlet <charlet@adacore.com>
4415 * gnatvsn.ads: Minor reformatting.
4417 2008-08-20 Arnaud Charlet <charlet@adacore.com>
4419 * a-crbtgk.adb, repinfo.adb, g-traceb.ads, repinfo.ads,
4420 system-linux-s390x.ads, s-fatflt.ads, s-parame-ae653.ads, g-spipat.adb,
4421 g-spipat.ads, g-tasloc.adb, g-debpoo.adb, g-except.ads, g-debpoo.ads,
4422 mdll-utl.adb, g-string.adb, g-soliop-solaris.ads, par-sync.adb,
4423 exp_ch6.ads, a-cihama.ads, g-curexc.ads, system-linux-sh4.ads,
4424 g-utf_32.adb, g-hesorg.adb, s-proinf-irix-athread.ads, s-parint.adb,
4425 s-parint.ads, exp_ch7.ads, system-linux-alpha.ads, g-dirope.adb,
4426 sinfo-cn.adb, par-labl.adb, a-ciorse.adb, g-calend.adb,
4427 s-parame-vms-alpha.ads, nlists.h, exp_imgv.adb, exp_fixd.ads,
4428 g-calend.ads, gnatcmd.ads, g-table.adb, s-memory-mingw.adb,
4429 g-alveop.ads, g-memdum.ads, g-altive.ads, initialize.c, g-regpat.adb,
4430 g-busorg.ads, g-regpat.ads, g-encstr.ads, g-regexp.adb, g-regexp.ads,
4431 live.ads, g-dyntab.adb, prj-nmsc.ads, par-ch12.adb, 9drpc.adb,
4432 g-alvevi.ads, s-memory.adb, math_lib.adb, s-parame.ads, s-memory.ads,
4433 s-regexp.adb, a-exexda.adb, i-cstrea-vms.adb, a-exexpr.adb,
4434 g-soliop-mingw.ads, s-imgrea.adb, namet.adb, system-vms.ads,
4435 s-inmaop-dummy.adb, s-finroo.ads, a-ngcefu.adb, s-hibaen.ads,
4436 g-soliop.ads, s-auxdec.adb, g-locfil.ads, gnatxref.adb, memroot.adb,
4437 osint-b.ads, memroot.ads, s-parame-hpux.ads, errutil.adb,
4438 system-linux-s390.ads, par-util.adb, osint-c.ads, exp_pakd.ads,
4439 i-pacdec.ads, par-endh.adb, mlib-tgt.ads, prj-strt.ads,
4440 s-osprim-vms.adb, s-proinf.ads, output.ads, g-moreex.ads,
4441 a-finali.ads, s-fatlfl.ads, namet.h, mdll.ads, g-dynhta.ads,
4442 s-imgenu.ads, par-tchk.adb, g-excact.ads, memtrack.adb, s-fatgen.adb,
4443 a-exexpr-gcc.adb, g-arrspl.adb, par-ch4.adb, g-cgideb.adb, freeze.ads,
4444 g-altcon.adb, s-fatllf.ads, gnatfind.adb, s-osinte-lynxos-3.adb,
4445 a-exextr.adb, g-htable.ads, a-calfor.adb, s-imgcha.adb, argv.c,
4446 a-chahan.ads, g-hesora.adb, system-vms_64.ads, par-ch5.adb, g-md5.adb,
4447 lib-xref.ads, g-md5.ads, g-casuti.ads, s-fatsfl.ads, exp_dbug.ads,
4448 s-htable.ads, a-ngcoar.adb, s-arit64.ads, a-ngelfu.adb, a-filico.ads,
4449 par-ch6.adb, s-inmaop.ads, s-parame-vxworks.ads, s-casuti.ads,
4450 a-numaux-darwin.adb, a-cohama.ads, system-linux-sparc.ads, g-os_lib.adb,
4451 system-vms-ia64.ads, s-parame-vms-restrict.ads, a-clrefi.ads,
4452 s-parame-vms-ia64.ads, a-strfix.adb, a-coorse.adb, a-comlin.ads,
4453 a-chtgke.adb, s-imgint.adb, g-expect.ads, exp_ch4.ads, s-finimp.adb,
4454 mingw32.h, g-heasor.adb, g-alleve.adb, a-ngrear.adb, s-mastop-irix.adb,
4455 s-poosiz.adb, link.c: Fix copyright notice.
4457 2008-08-20 Arnaud Charlet <charlet@adacore.com>
4459 * g-comlin.ads: Update comments.
4461 2008-08-20 Ed Schonberg <schonberg@adacore.com>
4463 * sem_ch8.adb (Analyze_Subprogram_Renaming): Inherit Is_Imported flag.
4465 2008-08-20 Gary Dismukes <dismukes@adacore.com>
4468 (Expand_Exception_Handlers): Call Make_Exception_Handler instead of
4469 Make_Implicit_Exception_Handler when rewriting an exception handler with
4470 a choice parameter, and pass the handler's Sloc instead of that of the
4471 handled sequence of statements. Make_Implicit_Exception_Handler sets the
4472 Sloc to No_Location (unless debugging generated code), which we don't
4473 want for the case of a user handler.
4475 2008-08-20 Robert Dewar <dewar@adacore.com>
4477 * freeze.adb (Freeze_Record_Type): Improve msg for non-contiguous field
4480 (Adjust_Record_For_Reverse_Bit_Order): Messages about layout are
4481 now labeled as info msgs, not warnings.
4483 * tbuild.ads: Clarify documentation of Make_Implicit_Exception_Handler
4485 * usage.adb: Minor change to avoid overlong line for -gnatwz/Z
4487 * a-textio.adb: Remove redundant test.
4489 * a-witeio.adb: Minor code reorganization
4490 Remove redundant test found working on another issue
4492 * a-ztexio.adb: Minor code reorganization
4493 Remove redundant test found working on another issue
4495 2008-08-20 Thomas Quinot <quinot@adacore.com>
4497 * s-fileio.adb (Open) Use C helper function to determine whether a
4498 given errno value corresponds to a "file not found" error.
4500 * sysdep.c (__gnat_is_file_not_found_error): New C helper function.
4502 2008-08-20 Jose Ruiz <ruiz@adacore.com>
4504 * errno.c (__get_errno for MaRTE): Use the MaRTE function pthread_errno
4505 to get access to the per-task errno variable.
4506 (__set_errno for MaRTE): Do not redefine this function here since it is
4507 already defined in MaRTE.
4509 2008-08-20 Tristan Gingold <gingold@adacore.com>
4511 * gnat_ugn.texi: Gcov is not supported on static library on AIX.
4513 2008-08-20 Robert Dewar <dewar@adacore.com>
4515 * freeze.adb: Minor reformatting
4517 * g-comlin.adb: Minor reformatting
4519 * g-socket.adb: Minor reformatting
4521 * g-socthi-mingw.adb: Minor reformatting
4523 * g-stheme.adb: Minor reformatting
4525 2008-08-20 Ed Schonberg <schonberg@adacore.com>
4527 * sem_aggr.adb, sem_type.adb, exp_ch9.ads, einfo.ads,
4528 exp_ch6.adb, exp_aggr.adb (Valid_Ancestor): Resolve
4529 confusion between partial and full views of an ancestor of the context
4530 type when the parent is a private extension declared in a parent unit,
4531 and full views are available for the context type.
4533 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
4534 Robert Dewar <dewar@adacore.com>
4537 * bindgen.adb (Gen_Output_File_Ada): Zero-terminate the
4539 Move comment in the right place.
4540 * g-comver.adb (Version): Look for a zero-termination in
4541 addition to a closing parenthesis.
4543 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
4545 * exp_ch13.adb, exp_disp.adb, sem_cat.adb, sem_ch10.adb,
4546 * sem_ch12.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb,
4547 * sem_prag.adb, sem_util.adb, sem_warn.adb: Use
4548 Is_Package_Or_Generic_Package instead of hand-crafted tests.
4550 2008-08-18 Samuel Tardieu <sam@rfc1149.net>
4553 * sem_ch6.adb (Check_Private_Overriding): Check for generic packages
4556 2008-08-17 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
4558 * adaint.c (_gnat_set_close_on_exec) [_WIN32]: Implement.
4560 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
4562 * gcc-interface/trans.c (call_to_gnu): Use the Sloc of the call
4563 for back-copy statements in lieu of that of the actual.
4565 2008-08-16 Eric Botcazou <ebotcazou@adacore.com>
4568 * gcc-interface/decl.c (gnat_to_gnu_entity): Use DECL_SIZE_UNIT in the
4569 setjmp test consistently. Adjust for new behavior of flag_stack_check.
4570 * gcc-interface/utils2.c (build_call_alloc_dealloc): Remove redundant
4571 test of flag_stack_check. Adjust for new behavior of flag_stack_check.
4573 2008-08-13 Samuel Tardieu <sam@rfc1149.net>
4576 * sem_util.ads, sem_util.adb (Is_Protected_Self_Reference): New.
4577 * sem_attr.adb (Check_Type): The current instance of a protected
4578 object is not a type name.
4579 (Analyze_Access_Attribute): Accept instances of protected objects.
4580 (Analyze_Attribute, Attribute_Address clause): Ditto.
4581 * exp_attr.adb (Expand_N_Attribute_Reference): Rewrite
4582 the prefix as being the current instance if needed.
4584 2008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
4586 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS) [WINDOWS]:
4587 Remove duplicate s-win32.o. Add s-winext.o.
4589 2008-08-12 Danny Smith <danyssmith@users.sourceforge.net>
4591 * g-stsifd-sockets.adb (Create): Replace Constants.SOCK_STREAM
4592 with SOSC.SOCK__STREAM.
4593 * g-socthi-mingw.adb (C_Select) Replace Constants.MSG_OOB with
4596 2008-08-11 Joel Sherrill <joel.sherrill@oarcorp.com>
4598 * s-oscons-tmplt.c: RTEMS defines AF_INET6 but does support it.
4599 * gsocket.h, socket.c: Update to support RTEMS.
4600 * gcc-interface/Make-lang.in: Include CFLAGS_FOR_TARGET when cross.
4602 2008-08-10 Samuel Tardieu <sam@rfc1149.net>
4603 Robert Dewar <dewar@adacore.com>
4605 * exp_ch4.adb (Expand_N_Op_Expon): Force evaluation of
4606 left argument even when right argument is 0.
4607 (Expand_N_Op_Mod): Ditto when right argument is 1.
4608 (Expand_N_Op_Multiply): Ditto when any argument is 0.
4609 (Expand_N_Op_Rem): Ditto when right argument is 1.
4611 2008-08-09 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4613 * gcc-interface/misc.c (gnat_handle_option): Replace set_Wunused
4616 2008-08-08 Ed Schonberg <schonberg@adacore.com>
4618 * freeze.adb (Generate_Prim_Op_References): New procedure, abstracted
4619 from Freeze_Entity. Used to generate cross-reference information for
4620 types declared in generic packages.
4622 2008-08-08 Thomas Quinot <quinot@adacore.com>
4624 * gcc-interface/Makefile.in: Reintroduce g-soccon.ads as a
4627 2008-08-08 Thomas Quinot <quinot@adacore.com>
4630 On Windows, include <errno.h> and redefine only selected errno values
4631 from their <winsock2.h> definitions.
4633 * s-osinte-freebsd.ads: Minor reformatting
4635 * s-osinte-hpux.ads, s-osinte-irix.ads: Minor reformatting
4637 * g-soccon.ads: New file.
4639 * g-stheme.adb, g-socthi-vms.adb, g-socthi-vxworks.adb,
4640 g-socthi-mingw.adb, g-sttsne-vxworks.adb, g-socthi.adb,
4641 g-stsifd-sockets.adb, g-socket.adb, g-socket.ads,
4642 g-sothco.adb, g-sothco.ads: Add back GNAT.Sockets.Constants as a child
4643 unit, to allow building software that depends on this internal unit
4644 with both older and newer compilers.
4646 2008-08-08 Robert Dewar <dewar@adacore.com>
4648 * s-strxdr.adb: Minor reformatting
4650 2008-08-08 Bob Duff <duff@adacore.com>
4652 * gnat_ugn.texi: The "Run-Time Checks" section said "arithmetic overflow
4653 checking for integer operations (including division by zero)", which
4654 is wrong -- divide by zero is not part of overflow checking.
4655 Also added misc clarification about what check-suppression means.
4657 * gnat_rm.texi: Clarify the meaning of pragma Suppress.
4659 2008-08-08 Jerome Lambourg <lambourg@adacore.com>
4661 * g-comlin.adb (Add_Switch): Handle addition of switches at the
4662 begining of the command line.
4663 (Append, Add): Renaming of Append to Add as this now allows addition
4664 at the begining of the list.
4666 * g-comlin.ads (Add_Switch): Handle addition of switches at the
4667 begining of the command line.
4669 2008-08-08 Thomas Quinot <quinot@adacore.com>
4672 (Name): Document application scope (only legacy PC serial ports on
4675 2008-08-08 Thomas Quinot <quinot@adacore.com>
4677 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Revert
4678 previous change, not needed after all.
4680 2008-08-08 Ed Schonberg <schonberg@adacore.com>
4682 * exp_ch4.adb (Expand_Allocator_Expression): add check if null
4683 exclusion indicator is present
4685 2008-08-08 Robert Dewar <dewar@adacore.com>
4687 * g-comlin.adb: Minor code reorganization
4690 * g-comlin.ads: Minor reformatting
4692 * s-fileio.adb: Minor reformatting
4694 * sem_attr.adb: Minor code reorganization (use Nkind_In)
4697 2008-08-06 Samuel Tardieu <sam@rfc1149.net>
4699 * gcc-interface/Make-lang.in: Use GCC_FOR_TARGET when dealing
4700 with s-oscons-tmplt.i.
4702 2008-08-06 Samuel Tardieu <sam@rfc1149.net>
4704 * gcc-interface/Make-lang.in (OSCONS_CPPFLAGS): Remove.
4706 2008-08-06 Ed Schonberg <schonberg@adacore.com>
4708 * sem_ch3.adb (Analyze_Component_Declaration): Protect against misuse
4711 * sem_ch8.adb (Analyze_Object_Renaming): Diagnose properly a renaming
4712 of a formal parameter of an incomplete type. Improve error message for
4713 other improper uses of incomplete types.
4715 2008-08-06 Robert Dewar <dewar@adacore.com>
4717 * gnat_ugn.texi: Clarify -gnato documentation
4719 2008-08-06 Thomas Quinot <quinot@adacore.com>
4721 * gcc-interface/Makefile.in,
4722 g-socthi-vxworks.adb, g-socthi-mingw.adb, g-sttsne-vxworks.adb,
4723 g-socthi.adb, g-socket.adb, g-socket.ads, g-sothco.ads,
4724 g-soccon-linux-x86.ads, g-soccon-vxworks.ads, g-soccon-mingw.ads,
4725 g-soccon-hpux-ia64.ads, g-soccon-irix.ads, g-soccon-linux-64.ads,
4726 g-soccon-aix.ads, g-soccon-solaris.ads, g-soccon-lynxos.ads,
4727 g-soccon-vms.ads, g-soccon.ads, g-soccon-freebsd.ads,
4728 g-soccon-linux-ppc.ads, g-soccon-tru64.ads, g-soccon-hpux.ads,
4729 g-soccon-solaris-64.ads, gen-oscons.c, g-soccon-darwin.ads,
4730 g-soccon-mingw-64.ads, g-soccon-linux-mips.ads, g-soccon-rtems.ads:
4731 Remove GNAT.Sockets.Constants. This internal package is replaced by
4732 System.OS_Constants.
4734 2008-08-06 Thomas Quinot <quinot@adacore.com>
4736 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in:
4737 Remove obsolete targets referencing gen-soccon
4738 When generating s-oscons.ads, use a file name that includes the
4739 THREAD_KIND, to ensure that the (potentially different) version from a
4740 previous build with a different threads flavour does not get reused.
4742 2008-08-06 Thomas Quinot <quinot@adacore.com>
4744 * sem_res.adb: Minor reformatting
4746 * s-fileio.adb (Open): When file open operation fails, raise Name_Error
4747 only when the operating system reports a non-existing file or directory
4748 (ENOENT), otherwise raise Name_Error.
4750 * exp_ch11.adb: Minor reformatting
4752 2008-08-06 Ed Schonberg <schonberg@adacore.com>
4754 * sem_ch3.adb (Access_Subprogram_Declaration): If the return type is
4755 incomplete, add the access_to_subprogram type to the list of private
4756 dependents only if the incomplete type will be completed in the current
4758 (Build_Discriminant_Constraints): If the type of the discriminant is
4759 access_to_variable, reject a constraint that is access_to_constant.
4761 2008-08-06 Thomas Quinot <quinot@adacore.com>
4763 * g-socket-dummy.adb, g-socket-dummy.ads, g-sothco-dummy.adb,
4764 g-sothco-dummy.ads, g-socthi-dummy.adb, g-socthi-dummy.ads,
4765 g-sttsne-dummy.ads: New files.
4767 * gcc-interface/Makefile.in, Makefile.rtl: Use placeholder sources
4768 with pragma Unimplemented_Unit for sockets packages on Nucleus.
4770 2008-08-06 Pascal Obry <obry@adacore.com>
4772 * adaint.c: Another fix for ACL support on Windows.
4774 2008-08-06 Javier Miranda <miranda@adacore.com>
4776 * exp_disp (Expand_Interface_Actuals): Adds missing support for
4777 expansion of calls to subprograms using selected components.
4779 2008-08-06 Ed Schonberg <schonberg@adacore.com>
4781 * sem_res.adb (Resolve_Call): Use base type to determine whether a
4782 dereference is needed because a subtype of an access_to_subprogram is
4783 simply an access-subtype
4785 2008-08-06 Jerome Lambourg <lambourg@adacore.com>
4787 * g-comlin.adb (Set_Command_Line): Now that aliases can contain
4788 parameters, always specify the expected separator.
4790 2008-08-06 Thomas Quinot <quinot@adacore.com>
4792 * xnmake.adb: Use new XUtil package for platform independent text
4795 2008-08-06 Vincent Celier <celier@adacore.com>
4797 * gnat_ugn.texi: Document compiler switch -gnateG
4799 2008-08-06 Quentin Ochem <ochem@adacore.com>
4801 * s-stausa.adb (Fill_Stack): Fixed pragma assert and top pattern mark
4802 in the case of an empty pattern size.
4803 (Compute_Result): Do not do any computation in the case of an empty
4805 (Report_Result): Fixed computation of the overflow guard.
4807 2008-08-06 Ed Schonberg <schonberg@adacore.com>
4809 * g-awk.adb (Finalize): Do not use directly objects of the type in the
4810 finalization routine to prevent elaboration order anomalies in new
4811 finalization scheme.
4813 2008-08-06 Ed Schonberg <schonberg@adacore.com>
4815 * sem_ch3.adb (Find_Type_Name): protect against duplicate incomplete
4816 declaration for the same type.
4818 2008-08-06 Thomas Quinot <quinot@adacore.com>
4820 * sem.adb: Minor rewording (comment)
4822 2008-08-06 Jerome Lambourg <lambourg@adacore.com>
4824 * g-comlin.adb (Define_Switch, Get_Switches): New.
4825 (Can_Have_Parameter, Require_Parameter, Actual_Switch): New, used when
4826 ungrouping switches.
4827 (For_Each_Simple_Switch): Allow more control over parameters handling.
4828 This generic method now allows ungrouping of switches with parameters
4829 and switches with more than one letter after the prefix.
4830 (Set_Command_Line): Take care of switches that are prefixed with a
4831 switch handling parameters without delimiter (-gnatya and -gnaty3 for
4833 (Add_Switch, Remove_Switch): Handle parameters possibly present inside
4834 a group, as in gnaty3aM80 (3 and 80 are parameters). Report status of
4836 (Start, Alias_Switches, Group_Switches): Take care of parameters
4837 possibly present inside a group.
4839 * g-comlin.ads (Define_Switch): New method used to define a list of
4840 expected switches, that are necessary for correctly ungrouping switches
4841 with more that one character after the prefix.
4842 (Get_Switches): Method that builds a getopt string from the list of
4843 switches as set previously by Define_Switch.
4844 (Add_Switch, Remove_Switch): New versions of the methods, reporting the
4845 status of the operation. Also allow the removal of switches with
4847 (Command_Line_Configuration_Record): Maintain a list of expected
4850 2008-08-06 Doug Rupp <rupp@adacore.com>
4852 * gcc-interface/decl.c (gnat_to_gnu_param): Force 32bit descriptor if
4853 TARGET_MALLOC64 clear.
4855 * gcc-interface/utils2.c (build_call_alloc_dealloc): Force 32bit malloc
4856 if TARGET_MALLOC64 clear.
4858 * gcc-interface/gigi.h (TARGET_ABI_OPEN_VMS): Move here from utils2.c
4859 (TARGET_MALLC64): New macro. Default to clear.
4861 2008-08-06 Doug Rupp <rupp@adacore.com>
4863 * gcc-interface/utils2.c (snames.h) Include
4864 (TARGET_ABI_OPEN_VMS): Initialize.
4865 (build_call_alloc_dealloc); [TARGET_ABI_OPEN_VMS] Allocate on 32bit heap
4868 2008-08-06 Ed Schonberg <schonberg@adacore.com>
4870 * sem_ch3.adb (Process_Discriminants): diagnose redundant or improper
4871 null exclusion in a discriminant declaration
4873 * sem_ch8.adb (Analyze_Object_Renaming): diagnose null exclusion
4874 indicators when type is not an access type.
4876 * sem_ch12.adb (Formal_Object_Declaration): diagnose null exclusion
4877 indicators when type is not an access type.
4879 2008-08-06 Javier Miranda <miranda@adacore.com>
4881 * exp_disp (Expand_Interface_Conversion): Freeze the entity associated
4882 with the target interface before expanding the code of the interface
4885 2008-08-05 Ed Schonberg <schonberg@adacore.com>
4888 (Freeze_Entity): A deferred constant does not violate the restriction
4889 No_Default_Initialization,
4891 * sem_ch3.adb (Process_Subtype): An allocator is a valid construct that
4892 can carry a null exclusion indicator, and on which an error may be
4893 posted if the indicator is redundant.
4895 * sem_ch8.adb (Analyze_Object_Renaming): Verify that a null exclusion
4896 does not apply to a subtype mark that already excludes null.
4898 * sem_ch12.adb (Formal_Object_Declaration): Verify that a null
4899 exclusion does not apply to a subtype mark that already excludes null.
4901 2008-08-05 Thomas Quinot <quinot@adacore.com>
4903 * Makefile.rtl: Compile s-oscons.ads as part of the runtime library.
4905 2008-08-05 Doug Rupp <rupp@adacore.com>
4907 * vms_data.ads: Translation for /POINTER_SIZE qualifier.
4909 2008-08-05 Thomas Quinot <quinot@adacore.com>
4911 * gsocket.h: Make this file includable in a Nucleus environment, which
4912 does not support sockets.
4914 * socket.c: Remove Nucleus-specific hack.
4916 2008-08-05 Pascal Obry <obry@adacore.com>
4918 * adaint.c: Remove support for readable attribute on vxworks and nucleus
4920 2008-08-05 Ed Schonberg <schonberg@adacore.com>
4923 (Analyze_Attribute, case 'Result): handle properly the case where some
4924 operand of the expression in a post-condition generates a transient
4927 * sem_ch5.adb (Analyze_Assignment_Statement): Apply conversion to
4928 right-hand side when it is an anonymous access_to_subprogram, to force
4929 static accessibility check when needed.
4931 2008-08-05 Sergey Rybin <rybin@adacore.com>
4933 * gnat_ugn.texi: Changing the description of the gnatcheck metrics
4934 rule according to the change in the rule option.
4935 Add documentation for -gnatw.b/-gnatw.B
4937 2008-08-05 Robert Dewar <dewar@adacore.com>
4939 * ug_words: Add entries for -gnatw.b/-gnatw.B
4941 * vms_data.ads: Add entries for -gnatw.b/-gnatw.B
4943 2008-08-05 Vincent Celier <celier@adacore.com>
4945 * a-wtdeio.adb (Put (Current_Output)): Use Fore in the call to Put
4948 * a-ztdeio.adb: Ditto.
4950 2008-08-05 Pascal Obry <obry@adacore.com>
4952 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Add support for the
4955 2008-08-05 Vincent Celier <celier@adacore.com>
4958 (Wide_String_To_String): Returns a String with the same 'First as its
4960 (Wide_Wide_String_To_String): Ditto
4963 (Wide_String_To_String): Document that the lowest index of the returned
4964 String is equal to S'First.
4966 2008-08-05 Thomas Quinot <quinot@adacore.com>
4968 * xoscons.adb, xutil.ads, xutil.adb, s-oscons-tmplt.c: New files.
4970 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Generate
4973 2008-08-05 Robert Dewar <dewar@adacore.com>
4975 * opt.ads (Warn_On_Biased_Representation): New flag
4978 (Analyze_Attribute_Definition_Clause): Issue warning when biased
4979 representation is required.
4980 (Minimum_Size): Don't allow biasing if enum rep clause case
4983 (Set_Dot_Warning_Switch): Add handling of -gnatw.b/B switches
4984 (Set_Warning_Switch): Include -gnatw.b in -gnatwa, -gnatw.B in gnatws
4986 * usage.adb: Add lines for -gnatw.b/B switches
4988 2008-08-05 Pascal Obry <obry@adacore.com>
4990 * a-coinve.adb: Reorder the code to avoid uninitialized warning.
4992 * adaint.c: In UNIX cases do not call __gnat_stat but stat directly.
4994 2008-08-05 Thomas Quinot <quinot@adacore.com>
4996 * socket.c: Minor reformatting.
4998 2008-08-05 Robert Dewar <dewar@adacore.com>
5000 * sem_ch3.adb: Minor reformatting
5002 * prj-nmsc.adb: Minor reformatting
5004 2008-08-05 Ed Schonberg <schonberg@adacore.com>
5006 * sem_ch12.adb (Validate_Array_Type_Instance): Only apply complex
5007 visibility check on the component type if the simple test fails.
5009 2008-08-05 Jose Ruiz <ruiz@adacore.com>
5011 * init.c (__gnat_install_handler for linux): If we are building the
5012 Xenomai run time then we need to do two additional things: avoid
5013 memory swapping and transform the Linux environment task into a native
5016 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for xenomai run
5017 time): Use interface to Xenomai native skin and avoid linux-specific
5018 way of setting CPU affinity.
5019 (EH_MECHANISM for the xenomai run time): Use sjlj exception mechanism.
5021 2008-08-05 Bob Duff <duff@adacore.com>
5023 * checks.ads: Minor comment fix
5025 2008-08-05 Thomas Quinot <quinot@adacore.com>
5027 * g-sercom.adb, g-sercom.ads, g-sercom-mingw.adb,
5028 g-sercom-linux.adb (Data_Bits): Change literals B7 and B8 to CS7 and
5031 2008-08-05 Robert Dewar <dewar@adacore.com>
5033 * mlib.adb: Minor code reorganization
5036 * make.adb: Minor reformatting
5038 * prj-attr.ads: Minor reformatting
5040 * s-os_lib.adb: Minor reformatting
5042 * s-fileio.adb: Minor code reorganization
5045 * prj.ads: Minor reformatting
5047 2008-08-05 Bob Duff <duff@adacore.com>
5049 * sem_ch3.adb (Analyze_Object_Declaration): Avoid type Any_Access in
5050 unresolved initial value of "null", because it causes implicitly
5051 generated "=" operators to be ambiguous, and because this type should
5052 not be passed to gigi.
5054 2008-08-05 Vincent Celier <celier@adacore.com>
5056 * mlib.adb: Update comments.
5058 * make.adb (Switches_Of): Check for Switches (others), before checking
5059 for Default_Switches ("Ada").
5060 (Gnatmake): Use Builder'Switches (others) in preference to
5061 Builder'Default_Switches ("Ada") if there are several mains.
5064 (Add_Attribute): Add component Others_Allowed in Attribute_Record
5068 Add markers to indicates that attributes Switches allow others as index
5069 (Others_Allowed_For): New Boolean function, returning True for
5070 attributes with the mark.
5071 (Initialize): Recognize optional letter 'O' as the marker for
5072 associative array attributes where others is allowed as the index.
5075 (Others_Allowed_For): New Boolean function
5076 (Attribute_Record): New Boolean component Others_Allowed
5079 (Parse_Attribute_Declaration): For associative array attribute where
5080 others is allowed as the index, allow others as an index.
5083 (Process_Binder): Skip associative array attributes with index others
5084 (Process_Compiler): Ditto
5087 (Value_Of (Index, In_Array)): Make no attempt to put in lower case when
5088 index is All_Other_Names.
5091 (All_Other_Names): New constant
5094 (Process_Declarative_Items): Skip associative array attribute when index
5095 is reserved word "others".
5097 2008-08-05 Vasiliy Fofanov <fofanov@adacore.com>
5099 * gen-oscons.c: Adapt for VMS where termios.h is not available.
5101 2008-08-05 Thomas Quinot <quinot@adacore.com>
5103 * a-rttiev.adb: Minor reformatting (comments)
5105 * gen-soccon.c: Rename to gen-oscons.c
5107 * gen-oscons.c: New file. Now generate System.OS_Constants instead of
5108 GNAT.Sockets.Constants.
5109 Add new constants for GNAT.Serial_Communications and System.File_IO.
5111 2008-08-05 Javier Miranda <miranda@adacore.com>
5113 * sem_util.adb (Collect_Interfaces_Info): Minor reformating.
5114 * exp_ch3.adb (Build_Offset_To_Top_Functions): Code cleanup: the
5115 implementation of this routine has been simplified.
5117 2008-08-05 Pascal Obry <obry@adacore.com>
5119 * adaint.c, adaint.h, s-os_lib.adb, s-os_lib.ads: Fix the
5120 Set_Read_Only Win32 implementation.
5122 2008-08-05 Thomas Quinot <quinot@adacore.com>
5124 * exp_strm.adb: Minor reformatting (comments)
5126 * sem_ch12.adb: Minor reformatting.
5128 2008-08-05 Robert Dewar <dewar@adacore.com>
5130 * sem_ch3.adb: Minor reformatting
5132 * checks.adb: Minor reformatting
5134 2008-08-05 Thomas Quinot <quinot@adacore.com>
5136 * tbuild.ads (New_External_Name): Update spec to reflect relaxed
5137 restriction on Prefix.
5139 2008-08-05 Jerome Lambourg <lambourg@adacore.com>
5141 * g-comlin.adb (Sort_Sections, Group_Switches): New/Modified internal
5142 methods needed to handle switch sections when building a command line.
5143 (Define_Section, Add_Switch, Remove_Switch, Is_New_Section,
5144 Current_Section): New public methods or methods modified to handle
5145 building command lines with sections.
5146 (Set_Command_Line): Take into account sections when analysing a switch
5148 (Start): Sort the switches by sections before iterating the command line
5151 * g-comlin.ads (Define_Section, Add_Switch, Remove_Switch,
5152 Is_New_Section, Current_Section): New methods or methods modified to
5153 handle building command lines with sections.
5155 2008-08-05 Ed Schonberg <schonberg@adacore.com>
5157 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For access
5158 discriminants, indicate that the corresponding object declaration has
5159 no initialization, to prevent spurious warnings when the access type is
5162 2008-08-05 Ed Schonberg <schonberg@adacore.com>
5164 * sem_res.adb (Resolve_Call): If this is a call to the predefined
5165 Abort_Task, warn if the call appears within a protected operation.
5167 2008-08-04 Robert Dewar <dewar@adacore.com>
5169 * exp_ch4.adb (Expand_N_In): Suppress range warnings in instances
5171 2008-08-04 Ed Schonberg <schonberg@adacore.com>
5174 (Replace_Anonymous_Access_To_Protected_Subprogram): Handle properly an
5175 anonymous access to protected subprogram that is the return type of the
5176 specification of a subprogram body.
5179 (Analyze_Subprogram_Body): if the return type is an anonymous access to
5180 subprogram, freeze it now to prevent access anomalies in the back-end.
5182 * exp_ch9.adb: Minor code cleanup.
5183 Make sure that new declarations are inserted into the tree before
5184 analysis (from code reading).
5186 2008-08-04 Robert Dewar <dewar@adacore.com>
5189 (Expand_Simple_Function_Return): Check No_Secondary_Stack restriction
5192 2008-08-04 Thomas Quinot <quinot@adacore.com>
5194 * sem_type.adb, sem_ch4.adb, sprint.adb, exp_ch3.adb: Minor reformatting
5196 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
5198 * g-soccon-mingw.ads: Fix value for MSG_WAITALL
5200 2008-08-04 Javier Miranda <miranda@adacore.com>
5202 * sem_prag.adb (Process_Convention): Add missing support for
5203 N_Private_Extension_Declaration nodes.
5205 2008-08-04 Robert Dewar <dewar@adacore.com>
5207 * exp_ch4.adb: Minor reformatting
5209 2008-08-04 Pascal Obry <obry@adacore.com>
5211 * adaint.h: Add missing prototype.
5213 * adaint.c: Refine support for Windows file attributes.
5215 2008-08-04 Robert Dewar <dewar@adacore.com>
5218 (Valid_Conversion): Catch case of designated types having different
5219 sizes, even though they statically match.
5221 2008-08-04 Javier Miranda <miranda@adacore.com>
5223 * sem_eval.adb (Subtypes_Statically_Match): Remove superfluous patch
5224 added in previous patch to handle access to subprograms.
5226 2008-08-04 Robert Dewar <dewar@adacore.com>
5229 (Freeze_Entity): Only check No_Default_Initialization restriction for
5230 constructs that come from source
5232 2008-08-04 Thomas Quinot <quinot@adacore.com>
5234 * exp_ch6.adb: Minor comment fix.
5236 * sem_ch4.adb: Minor reformatting.
5238 2008-08-04 Robert Dewar <dewar@adacore.com>
5240 * sem_res.adb: (Large_Storage_Type): Improve previous change.
5242 2008-08-04 Pascal Obry <obry@adacore.com>
5244 * adaint.c, s-os_lib.adb, s-os_lib.ads: Use Windows ACL to deal with
5247 2008-08-04 Javier Miranda <miranda@adacore.com>
5249 * sem_ch3.adb (Access_Subprogram_Declaration): Adding missing support
5250 for N_Formal_Object_Declaration nodes. Adding kludge required by
5251 First_Formal to provide its functionality with access to functions.
5252 (Replace_Anonymous_Access_To_Protected_Subprogram): Add missing support
5253 for anonymous access types returned by functions.
5255 * sem_ch5.adb (Analyze_Assignment): Code cleanup to avoid duplicate
5256 conversion of null-excluding access types (required only once to force
5257 the generation of the required runtime check).
5259 * sem_type.adb (Covers): minor reformating
5261 * checks.adb (Null_Exclusion_Static_Checks): Avoid reporting errors
5262 with internally generated nodes. Avoid generating the error inside init
5265 * sem_res.adb (Resolve_Membership_Test): Minor reformating.
5266 (Resolve_Null): Generate the null-excluding check in case of assignment
5267 to a null-excluding object.
5268 (Valid_Conversion): Add missing support for anonymous access to
5271 * sem_ch6.adb (Check_Return_Subtype_Indication): Add missing support for
5272 anonymous access types whose designated type is an itype. This case
5273 occurs with anonymous access to protected subprograms types.
5274 (Analyze_Return_Type): Add missing support for anonymous access to
5275 protected subprogram.
5277 * sem_eval.adb (Subtypes_Statically_Match): In case of access to
5278 subprograms addition of missing check on matching convention. Required
5279 to properly handle access to protected subprogram types.
5281 * exp_ch3 (Build_Assignment): Code cleanup removing duplicated check on
5282 null excluding access types.
5284 2008-08-04 Ed Schonberg <schonberg@adacore.com>
5286 * sem_ch12.adb: Add comments
5288 * sem_ch4.adb (Analyze_Allocator): If the designated type is a non-null
5289 access type and the allocator is not initialized, warn rather than
5292 2008-08-04 Robert Dewar <dewar@adacore.com>
5294 * exp_ch4.adb: Minor reformatting
5296 * exp_dist.adb: Minor reformatting
5298 * g-comlin.adb: Minor reformatting
5300 2008-08-04 Gary Dismukes <dismukes@adacore.com>
5302 * exp_aggr.adb (Build_Record_Aggr_Code): Perform a conversion of the
5303 target to the type of the aggregate in the case where the target object
5306 * exp_ch5.adb (Expand_Simple_Function_Return): When the function's
5307 result type is class-wide and inherently limited, and the expression
5308 has a specific type, create a return object of the specific type, for
5309 more efficient handling of returns of build-in-place aggregates (avoids
5310 conversions of the class-wide return object to the specific type on
5311 component assignments).
5313 * sem_ch6.adb (Check_Return_Subtype_Indication): Suppress the error
5314 about a type mismatch for a class-wide function with a return object
5315 having a specific type when the object declaration doesn't come from
5316 source. Such an object can result from the expansion of a simple return.
5318 2008-08-04 Vasiliy Fofanov <fofanov@adacore.com>
5320 * g-soccon-mingw-64.ads, system-mingw-x86_64.ads: New files.
5322 * gcc-interface/Makefile.in: Use 64bit-specific system files when
5323 compiling for 64bit windows.
5325 2008-08-04 Jerome Lambourg <lambourg@adacore.com>
5327 * g-comlin.adb (Group_Switches): Preserve the switch order when
5328 grouping and allow switch grouping of switches with more than one
5329 character extension (e.g. gnatw.x).
5330 (Args_From_Expanded): Remove this now obsolete method.
5332 2008-08-04 Ed Schonberg <schonberg@adacore.com>
5334 * exp_ch4.adb (Get_Allocator_Final_List): Freeze anonymous type for
5335 chain at once, to ensure that type is properly decorated for back-end,
5336 when allocator appears within a loop.
5338 2008-08-04 Kevin Pouget <pouget@adacore.com>
5340 * snames.h, snames.adb, snames.ads:
5341 Add Attr_To_Any, Attr_From_Any and Attr_TypeCode defines.
5343 * exp_dist.ads, exp_dist.adb: Add Build_From_Any_Call,
5344 Build_To_Any_Call and Build_TypeCode_Call procedures.
5346 * exp_attr.adb, sem_attr.adb: Add corresponding cases.
5348 * rtsfind.ads: Add corresponding names.
5350 * tbuild.adb: Update prefix restrictions to allow '_' character.
5352 2008-08-04 Doug Rupp <rupp@adacore.com>
5354 * gigi.h (fill_vms_descriptor): Add third parameter gnat_actual
5355 * trans.c (call_to_gnu): Call fill_vms_descriptor with new parameter.
5356 * utils2.c (fill_vms_descriptor): Add third parameter for error sloc and
5357 use it. Calculate pointer range overflow using 64bit types.
5359 2008-08-04 Ed Schonberg <schonberg@adacore.com>
5361 * sem_ch3.adb (Access_Definition): A formal object declaration is a
5362 legal context for an anonymous access to subprogram.
5364 * sem_ch4.adb (Analyze_One_Call): If the call can be interpreted as an
5365 indirect call, report success to the caller to include possible
5368 * sem_ch6.adb (Check_Return_Type_Indication): Apply proper conformance
5370 of the extended return is an anonymous access_to_subprogram type.
5373 (Resolve_Call): Insert a dereference if the type of the subprogram is an
5374 access_to_subprogram and the context requires its return type, and a
5375 dereference has not been introduced previously.
5377 2008-08-04 Arnaud Charlet <charlet@adacore.com>
5379 * usage.adb (Usage): Minor rewording of -gnatwz switch, to improve
5380 gnatcheck support in GPS.
5382 2008-08-04 Vincent Celier <celier@adacore.com>
5384 * mlib.adb (Create_Sym_Links): Create relative symbolic links when
5387 2008-08-04 Vincent Celier <celier@adacore.com>
5389 * gprep.adb (Process_One_File): Call Prep.Preprocess with a Boolean
5390 variable, but don't check the resulting value as it has no impact on
5394 (Generate_Processed_File): New Boolean flag, set to True in the compiler
5395 when switch -gnateG is used.
5398 (Preprocess): new Boolean out parameter Source_Modified. Set it to True
5399 when the source is modified by the preprocessor and there is no
5400 preprocessing errors.
5402 * prep.ads (Preprocess): new Boolean out parameter Source_Modified
5405 (Load_File): Output the result of preprocessing if the source text was
5408 * switch-c.adb (Scan_Front_End_Switches): Recognize switch -gnateG
5410 * switch-m.adb (Normalize_Compiler_Switches): Normalize switch -gnateG
5412 * ug_words: Add VMS equivalent for -gnateG
5415 Add VMS option /GENERATE_PROCESSED_SOURCE, equivalent to switch -gnateG
5417 2008-08-04 Doug Rupp <rupp@adacore.com>
5419 * gcc-interface/utils2.c:
5420 (fill_vms_descriptor): Raise CE if attempt made to pass 64bit pointer
5421 in 32bit descriptor.
5423 2008-08-04 Robert Dewar <dewar@adacore.com>
5425 * par-ch10.adb: Minor reformatting
5427 * i-cobol.adb: Minor reformatting.
5429 2008-08-04 Ed Schonberg <schonberg@adacore.com>
5431 * sem_ch3.adb (Access_Definition): Create an itype reference for an
5432 anonymous access return type of a regular function that is not a
5435 2008-08-04 Vincent Celier <celier@adacore.com>
5437 * prj-attr.adb: New Builder attribute Global_Compilation_Switches
5439 * snames.adb: New standard name Global_Compilation_Switches
5441 * snames.ads: New standard name Global_Compilation_Switches
5443 * make.adb: Correct spelling error in comment
5445 2008-08-04 Arnaud Charlet <charlet@adacore.com>
5447 * sem_prag.adb (Check_Form_Of_Interface_Name): Fix handling for CLI
5450 2008-08-04 Thomas Quinot <quinot@adacore.com>
5452 * sem_ch10.adb: Minor comment fix.
5454 2008-08-04 Robert Dewar <dewar@adacore.com>
5456 * restrict.adb: Improved messages for restriction warnings
5458 * restrict.ads: Improved messages for restriction messages
5460 * s-rident.ads (Profile_Name): Add No_Profile
5462 2008-08-04 Robert Dewar <dewar@adacore.com>
5464 * system-darwin-x86.ads: Correct bad definition of Max_Nonbinary_Modulus
5466 2008-08-04 Robert Dewar <dewar@adacore.com>
5468 * freeze.adb (Freeze_Entity): Check for size clause for boolean warning
5470 2008-08-04 Vincent Celier <celier@adacore.com>
5473 (Copy_Package_Declarations): When inheriting package Naming from a
5474 project being extended, do not inherit source exception names.
5476 2008-08-04 Ed Schonberg <schonberg@adacore.com>
5478 * sem_prag.adb (Check_Precondition_Postcondition): When scanning the
5479 list of declaration to find previous subprogram, do not go to the
5480 original node of a generic unit.
5482 2008-08-02 Eric Botcazou <ebotcazou@adacore.com>
5484 * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR, MINUS_EXPR>:
5485 New case. Convert BOOLEAN_TYPE operation to the default integer type.
5487 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
5489 * gcc-interface/ada-tree.h (DECL_PARM_ALT): Now DECL_PARM_ALT_TYPE.
5490 * gcc-interface/decl.c (gnat_to_gnu_param): Fix formatting, simplify
5491 and adjust for above renaming.
5492 * gcc-interface/utils.c (convert_vms_descriptor): Likewise. Add new
5493 gnu_expr_alt_type parameter. Convert the expression to it instead
5494 of changing its type in place.
5495 (build_function_stub): Adjust call to above function.
5497 2008-08-01 Eric Botcazou <ebotcazou@adacore.com>
5499 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Remove dead
5500 code. Do not get full definition of deferred constants with address
5501 clause for a use. Do not ignore deferred constant definitions with
5502 address clause. Ignore constant definitions already marked with the
5504 <object>: Remove obsolete comment. For a deferred constant with
5505 address clause, get the initializer from the full view.
5506 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Definition_Clause>:
5507 Rework and remove obsolete comment.
5508 <N_Object_Declaration>: For a deferred constant with address clause,
5509 mark the full view with the error node.
5510 * gcc-interface/utils.c (convert_to_fat_pointer): Rework and fix
5513 2008-08-01 Hristian Kirtchev <kirtchev@adacore.com>
5515 * rtsfind.ads: Add block IO versions of stream routines for Strings.
5517 * bindgen.adb, gnat_rm.texi, gnat_ugn.texi, opt.ads,
5518 sem_prag.adb, snames.adb, snames.ads, snames.h,
5519 par-prag.adb: Undo previous stream related changes.
5521 * s-rident.ads: Add new restriction No_Stream_Optimizations.
5523 * s-ststop.ads, s-ststop.adb: Comment reformatting.
5524 Define enumeration type to designate different IO mechanisms.
5525 Enchance generic package Stream_Ops_Internal to include an
5526 implementation of Input and Output.
5528 * exp_attr.adb (Find_Stream_Subprogram): If restriction
5529 No_Stream_Optimization is active, choose the default byte IO
5530 implementations of stream attributes for Strings.
5531 Otherwise use the corresponding block IO version.
5533 2008-08-01 Olivier Hainque <hainque@adacore.com>
5535 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Function>: Do not
5536 turn Ada Pure into GCC const, now implicitely implying nothrow as well.
5538 2008-08-01 Robert Dewar <dewar@adacore.com>
5540 * par-ch3.adb (P_Defining_Identifier): Avoid repeated attempt to
5541 convert plain identifier into defining identifier.
5543 2008-08-01 Robert Dewar <dewar@adacore.com>
5545 * sem_prag.adb (Check_Form_Of_Interface_Name): Refine and improve
5548 * lib-xref.adb: Add error defense.
5550 2008-08-01 Bob Duff <duff@adacore.com>
5552 * ioexcept.ads, sequenio.ads, directio.ads: Correct comment.
5554 2008-08-01 Gary Dismukes <dismukes@adacore.com>
5556 * exp_ch6.adb (Expand_Call): Adjustment to previous fix for passing
5557 correct accessibility levels. In the "when others" case, retrieve the
5558 access level of the Etype of Prev rather than Prev_Orig, because the
5559 original exression has not always been analyzed.
5561 2008-08-01 Robert Dewar <dewar@adacore.com>
5563 * prj-nmsc.adb: Minor reformatting
5565 * sem_ch4.adb: Minor reformatting
5566 Minor code reorganization
5568 * prj.ads: Minor reformatting
5570 * s-os_lib.adb: Minor reformatting
5572 * par-prag.adb (Prag, case Wide_Character_Encoding): Deal with upper
5575 * scans.ads: Minor reformatting.
5577 * sem_prag.adb (Analyze_Pragma): Put entries in alpha order
5578 (Analyze_Pragma): Make sure all GNAT pragmas call GNAT_Pragma
5581 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
5583 * sem_ch12.adb: Minor comment reformatting
5585 * par-ch3.adb (P_Type_Declaration): Properly handle missing type
5588 2008-08-01 Robert Dewar <dewar@adacore.com>
5590 * sem_ch6.adb (Process_PPCs): Don't copy spec PPC to body if not
5593 2008-08-01 Ed Schonberg <schonberg@adacore.com>
5595 * checks.adb (Apply_Float_Conversion_Check): If the expression to be
5596 converted is a real literal and the target type has static bounds,
5597 perform the conversion exactly to prevent floating-point anomalies on
5600 2008-08-01 Vincent Celier <celier@adacore.com>
5602 * prj-attr.adb: New attribute Compiler'Name_Syntax (<lang>)
5604 * prj-nmsc.adb (Process_Compiler): Recognize attribute Name_Syntax
5606 * prj.adb (Object_Exist_For): Use Object_Generated, not
5607 Objects_Generated that is removed and was never modified anyway.
5610 (Path_Syntax_Kind): New enumeration type
5611 (Language_Config): New component Path_Syntax, defaulted to Host.
5612 Components PIC_Option and Objects_Generated removed, as they are not
5615 * snames.adb: New standard name Path_Syntax
5617 * snames.ads: New standard name Path_Syntax
5619 2008-08-01 Vincent Celier <celier@adacore.com>
5622 (Adalib_Path): New variable to store the path of the adalib directory
5623 when procedure Specify_Adalib_Dir is called.
5624 (Lib_Directory): If Adalib_Path is not null, return its value
5625 (Specify_Adalib_Dir): New procedure
5627 * mlib-utl.ads (Specify_Adalib_Dir): New procedure
5629 2008-08-01 Ed Schonberg <schonberg@adacore.com>
5632 (Check_Precondition_Postcondition): If not generating code, analyze the
5633 expression in a postcondition that appears in a subprogram body, so that
5634 it is properly decorated for ASIS use.
5636 2008-08-01 Gary Dismukes <dismukes@adacore.com>
5638 * exp_ch6.adb (Expand_Call): Remove ugly special-case code that resets
5639 Orig_Prev to Prev in the case where the actual is N_Function_Call or
5640 N_Identifier. This was interfering with other cases that are rewritten
5641 as N_Identifier, such as allocators, resulting in passing of the wrong
5642 accessibility level, and based on testing this code is apparently no
5643 longer needed at all.
5645 2008-08-01 Ed Schonberg <schonberg@adacore.com>
5647 * sem_ch4.adb (Analyze_One_Call): Handle complex overloading of a
5648 procedure call whose prefix
5649 is a parameterless function call that returns an access_to_procedure.
5651 2008-08-01 Jose Ruiz <ruiz@adacore.com>
5653 * adaint.c (__gnat_tmp_name): Refine the generation of temporary names
5654 for RTX. Adding a suffix that is incremented at each iteration.
5656 2008-08-01 Robert Dewar <dewar@adacore.com>
5658 * sem_ch6.adb (Analyze_Subprogram_Body): Remove special casing of
5661 2008-08-01 Jerome Lambourg <lambourg@adacore.com>
5663 * s-os_lib.adb (Normalize_Pathname): Take care of double-quotes in
5664 paths, which are authorized by Windows but can lead to errors when used
5667 2008-08-01 Ed Schonberg <schonberg@adacore.com>
5669 * sem_ch12.ads (Need_Subprogram_Instance_Body): new function, to create
5670 a pending instantiation for the body of a subprogram that is to be
5674 (Analyze_Subprogram_Instantiation): use Need_Subprogram_Instance_Body.
5676 * sem_prag.adb (Make_Inline): If the pragma applies to an instance,
5677 create a pending instance for its body, so that calls to the subprogram
5678 can be inlined by the back-end.
5680 2008-08-01 Jose Ruiz <ruiz@adacore.com>
5682 * gnat_ugn.texi: Document the RTX run times (rts-rtx-rtss and
5685 2008-08-01 Robert Dewar <dewar@adacore.com>
5687 * scng.adb (Error_Illegal_Wide_Character): Bump scan pointer
5689 2008-08-01 Doug Rupp <rupp@adacore.com>
5691 * gnat_rm.texi: Document new mechanism Short_Descriptor.
5693 * types.ads (Mechanism_Type): Modify range for new Short_Descriptor
5696 * sem_prag.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
5697 mechanism and Short_Descriptor mechanism values.
5699 * snames.adb (preset_names): Add short_descriptor entry.
5701 * snames.ads: Add Name_Short_Descriptor.
5703 * types.h: Add new By_Short_Descriptor mechanism values.
5705 * sem_mech.adb (Set_Mechanism_Value): Enhance for Short_Descriptor
5706 mechanism and Short_Descriptor mechanism values.
5708 * sem_mech.ads (Mechanism_Type): Add new By_Short_Descriptor mechanism
5710 (Descriptor_Codes): Modify range for new mechanism values.
5712 * treepr.adb (Print_Entity_Enfo): Handle new By_Short_Descriptor
5715 * gcc-interface/decl.c (gnat_to_gnu_entity): Handle By_Short_Descriptor.
5716 (gnat_to_gnu_param): Handle By_Short_Descriptor.
5718 * gcc-interface/gigi.h (build_vms_descriptor64): Remove prototype.
5719 (build_vms_descriptor32): New prototype.
5720 (fill_vms_descriptor): Remove unneeded gnat_actual parameter.
5722 * gcc-interface/trans.c (call_to_gnu): Removed unneeded gnat_actual
5723 argument in call fill_vms_descriptor.
5725 * gcc-interface/utils.c (build_vms_descriptor32): Renamed from
5726 build_vms_descriptor and enhanced to hande Short_Descriptor mechanism.
5727 (build_vms_descriptor): Renamed from build_vms_descriptor64.
5728 (convert_vms_descriptor32): New function.
5729 (convert_vms_descriptor64): New function.
5730 (convert_vms_descriptor): Rewrite to handle both 32bit and 64bit
5733 * gcc-interface/utils2.c (fill_vms_descriptor): Revert previous changes,
5736 2008-08-01 Jose Ruiz <ruiz@adacore.com>
5738 * adaint.c (__gnat_tmp_name): RTSS applications do not support tempnam
5739 nor tmpnam, so we always use c:\WINDOWS\Temp\gnat-XXXXXX as temporary
5742 2008-08-01 Jose Ruiz <ruiz@adacore.com>
5744 * cstreams.c (__gnat_full_name): RTSS applications cannot ask for the
5745 current directory so only fully qualified names are allowed.
5747 2008-08-01 Robert Dewar <dewar@adacore.com>
5750 Minor editing, remove uncomfortable use of semicolon
5752 * s-ststop.adb: Add some ??? comments
5754 * sem_ch10.adb: Minor reformatting
5757 Minor comment fixes, some pragmas were not properly
5758 categorized in the comments, documentation change only
5760 * xref_lib.adb: Minor reformatting
5762 * sinput.adb: Minor reformatting
5764 * gnatchop.adb: Minor reformatting
5766 * sem_util.ads: Minor reformatting.
5768 * opt.ads: Minor documentation fix
5770 * scng.adb: Minor reformatting
5772 * prj-part.adb: Update comments
5774 2008-08-01 Ed Schonberg <schonberg@adacore.com>
5776 * exp_disp.adb (Expand_Interface_Conversion): If the target type is a
5777 tagged synchronized type, use corresponding record type.
5779 2008-08-01 Doug Rupp <rupp@adacore.com>
5781 * mlib-tgt-specific-vms-alpha.adb (Build_Dynamic_Library): Output a
5782 dummy transfer address for debugging.
5784 * mlib-tgt-specific-vms-ia64.adb (Build_Dynamic_Library): Likewise.
5786 * vms_data.ads: vms_data.ads: New qualfier /MACHINE_CODE_LISTING
5788 2008-07-31 Eric Botcazou <ebotcazou@adacore.com>
5790 * gcc-interface/decl.c (gnat_to_gnu_entity): Fix formatting.
5791 * gcc-interface/utils.c (create_field_decl): Avoid superfluous work.
5793 2008-07-31 Pascal Obry <obry@adacore.com>
5795 * prj-nmsc.adb: Keep Object and Exec directory casing.
5797 2008-07-31 Jose Ruiz <ruiz@adacore.com>
5799 * system-rtx-rtss.ads
5800 Change the default stack size. It is important to set the commit part.
5803 (Initialize): Get the clock resolution.
5804 (RT_Resolution): Return the clock resolution that is indicated by the
5807 * s-parame-vxworks.adb
5808 Document that this body is used for RTX in RTSS (kernel) mode.
5810 * gcc-interface/Makefile.in
5811 (LIBGNAT_TARGET_PAIRS for the rtx_rtss run time): Use the
5812 s-parame-vxworks.adb body in order to have reasonable stack sizes in
5813 RTX RTSS kernel mode. Virtual memory is not used in that case, so we
5814 cannot ask for too big values.
5816 2008-07-31 Robert Dewar <dewar@adacore.com>
5818 * exp_aggr.adb: Minor reformatting
5820 * makeutl.adb: Minor reformatting
5822 * prj-env.adb: Minor reformatting
5824 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
5826 * exp_disp.adb (Prim_Op_Kind): Retrieve the full view when a private
5827 tagged type is completed by a concurrent type.
5829 2008-07-31 Gary Dismukes <dismukes@adacore.com>
5832 (Resolve_Record_Aggregate): Bypass error that a type without
5833 components must have a "null record" aggregate when compiling for Ada
5834 2005, since it's legal to give an aggregate of form (others => <>)
5837 2008-07-31 Javier Miranda <miranda@adacore.com>
5839 * sem_ch4.adb (Valid_First_Argument_Of): Complete its functionality to
5840 handle synchronized types. Required to handle well the object.operation
5841 notation applied to synchronized types.
5843 2008-07-31 Quentin Ochem <ochem@adacore.com>
5845 * s-stausa.adb (Fill_Stack): Stack_Used_When_Filling is now stored
5846 anymore - just used internally.
5847 Added handling of very small tasks - when the theoretical size is
5848 already full at the point of the call.
5849 (Report_Result): Fixed result computation, Stack_Used_When_Filling does
5850 not need to be added to the result.
5852 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
5854 * sem_ch6.adb (Disambiguate_Spec): Continue the disambiguation if the
5855 corresponding spec is a primitive wrapper. Update comment.
5857 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
5859 * bindgen.adb Comment reformatting. Update the list of run-time globals.
5860 (Gen_Adainit_Ada): Add the declaration, import and value set for
5861 configuration flag Canonical_Streams.
5862 (Gen_Adainit_C): Add the declaration and initial value of external
5863 symbol __gl_canonical_streams.
5865 * init.c: Update the list of global values computed by the binder.
5867 * opt.ads: Add flag Canonical_Streams.
5869 * par-prag.adb (Prag): Include Pragma_Canonical_Streams to the list of
5870 semantically handled pragmas.
5872 * sem_prag.adb: Add an entry into enumeration type Sig_Flags.
5873 (Analyze_Pragma): Add case for pragma Canonical_Streams.
5875 * snames.adb: Add character value for name Canonical_Streams.
5878 Add Name_Canonical_Streams to the list of configuration pragmas.
5879 Add Pragma_Canonical_Streams to enumeration type Pragma_Id.
5881 * snames.h: Add a definition for Pragma_Canonical_Streams.
5884 Add a flag and import to seize the value of external symbol
5885 __gl_canonical_streams. Update comment and initial value of constant
5888 * gnat_rm.texi: Add section of pragma Canonical_Streams.
5891 Add pragma Canonical_Streams to the list of configuration pragmas.
5893 2008-07-31 Ed Schonberg <schonberg@adacore.com>
5895 * sem_ch10.adb (Build_Unit_Name): If the unit name in a with_clause
5896 has the form A.B.C and B is a unit renaming, analyze its compilation
5897 unit and add a with_clause on A.b to the context.
5899 2008-07-31 Vincent Celier <celier@adacore.com>
5901 * makeutl.adb (Executable_Prefix_Path): If Locate_Exec_On_Path fails,
5902 return the empty string, instead of raising Constraint_Error.
5904 2008-07-31 Gary Dismukes <dismukes@adacore.com>
5906 * checks.ads (Apply_Accessibility_Check): Add parameter Insert_Node.
5908 * checks.adb (Apply_Accessibility_Check): Insert the check on
5912 (Expand_N_Attribute_Refernce, Attribute_Access): Pass attribute node
5913 to new parameter Insert_Node on call to Apply_Accessibility_Check.
5914 Necessary to distinguish the insertion node because the dereferenced
5915 formal may come from a rename, but the check must be inserted in
5916 front of the attribute.
5919 (Expand_N_Allocator): Pass actual for new Insert_Node parameter on
5920 call to Apply_Accessibility_Check.
5921 (Expand_N_Type_Conversion): Pass actual for new Insert_Node parameter
5922 on call to Apply_Accessibility_Check.
5925 2008-07-31 Javier Miranda <miranda@adacore.com>
5927 * sem_type.adb (Has_Compatible_Type): Complete support for synchronized
5928 types when the candidate type is a synchronized type.
5930 * sem_res.adb (Resolve_Actuals): Reorganize code handling synchronized
5931 types, and complete management of synchronized types adding missing
5932 code to handle formal that is a synchronized type.
5934 * sem_ch4.adb (Try_Primitive_Operation): Avoid testing attributes that
5935 are not available and cause the compiler to blowup. Found compiling
5936 test with switch -gnatc
5938 * sem_ch6.adb (Check_Synchronized_Overriding): Remove local subprogram
5939 Has_Correct_Formal_Mode plus code cleanup.
5941 2008-07-31 Bob Duff <duff@adacore.com>
5943 * sinput.adb (Skip_Line_Terminators): Fix handling of LF/CR -- it was
5944 recognized as two end-of-lines, but it should be just one.
5946 2008-07-31 Thomas Quinot <quinot@adacore.com>
5948 * exp_ch9.adb: Minor reformatting
5950 * tbuild.ads: Fix several occurrences of incorrectly referring to
5951 Name_Find as Find_Name.
5953 2008-07-31 Ed Schonberg <schonberg@adacore.com>
5955 * exp_aggr.adb (Aggr_Size_OK): If the aggregate has a single component
5956 and the context is an object declaration with non-static bounds, treat
5957 the aggregate as non-static.
5959 2008-07-31 Vincent Celier <celier@adacore.com>
5961 * prj-part.adb, prj-part.ads, prj.adb, prj.ads, prj-env.adb:
5962 Move back spec of Parse_Single_Project to body, as it is not called
5963 outside of package Prj.Part.
5964 (Project_Data): Remove components Linker_Name, Linker_Path and
5965 Minimum_Linker_Options as they are no longer set.
5966 Remove function There_Are_Ada_Sources from package Prj and move code
5967 in the only place it was used, in Prj.Env.Set_Ada_Paths.
5969 2008-07-31 Arnaud Charlet <charlet@adacore.com>
5971 * mlib-utl.ads: Fix typo.
5973 2008-07-31 Robert Dewar <dewar@adacore.com>
5975 * sem_ch12.adb: Minor reformatting
5977 2008-07-31 Sergey Rybin <rybin@adacore.com>
5979 * gnat_ugn.texi: Change the description of the
5980 Overly_Nested_Control_Structures: now the rule always requires a
5981 positive parameter for '+R' option
5983 2008-07-31 Thomas Quinot <quinot@adacore.com>
5985 * g-pehage.adb: Minor reformatting
5987 2008-07-31 Pascal Obry <obry@adacore.com>
5989 * s-finimp.ads: Minor reformatting.
5991 2008-07-31 Vincent Celier <celier@adacore.com>
5993 * s-regexp.ads: Minor comment fix
5995 2008-07-31 Arnaud Charlet <charlet@adacore.com>
5997 * s-direio.adb (Reset): Replace pragma Unmodified by Warnings (Off),
5998 so that we can compile this file successfully with -gnatc.
6000 2008-07-31 Hristian Kirtchev <kirtchev@adacore.com>
6002 * exp_attr.adb (Find_Stream_Subprogram): Check the base type instead
6003 of the type when looking for stream subprograms for type String,
6004 Wide_String and Wide_Wide_String.
6006 * s-ststop.adb: Change the initialization expression of constant
6009 2008-07-31 Geert Bosch <bosch@adacore.com>
6012 New file implementing __gnat_mulv64 signed integer multiplication with
6015 * fe.h (Backend_Overflow_Checks_On_Target): Define for use by Gigi
6017 * gcc-interface/gigi.h:
6018 (standard_types): Add ADT_mulv64_decl
6019 (mulv64_decl): Define subprogram declaration for __gnat_mulv64
6021 * gcc-interface/utils.c:
6022 (init_gigi_decls): Add initialization of mulv64_decl
6024 * gcc-interface/trans.c:
6025 (build_unary_op_trapv): New function
6026 (build_binary_op_trapv): New function
6027 (gnat_to_gnu): Use the above functions instead of
6028 build_{unary,binary}_op
6030 * gcc-interface/Makefile.in
6031 (LIBGNAT_SRCS): Add arit64.c
6032 (LIBGNAT_OBJS): Add arit64.o
6034 2008-07-31 Vincent Celier <celier@adacore.com>
6036 * prj-nmsc.adb (Check_Library_Attributes): Check if Linker'Switches or
6037 Linker'Default_Switches are declared. Warn if they are declared.
6039 2008-07-31 Ed Schonberg <schonberg@adacore.com>
6041 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Use
6042 Insert_Actions to place the pointer declaration in the code, rather
6043 than Insert_Before_And_Analyze, so that insertions of temporaries are
6044 kept in the proper order when transient scopes are present.
6047 2008-07-31 Robert Dewar <dewar@adacore.com>
6049 * einfo.adb (Spec_PPC): Now defined for generic subprograms
6051 * einfo.ads (Spec_PPC): Now defined for generic subprograms
6053 * sem_prag.adb (Check_Precondition_Postcondition): Handle generic
6056 2008-07-31 Vincent Celier <celier@adacore.com>
6058 * s-os_lib.adb: Minor comment fix
6060 2008-07-31 Ed Schonberg <schonberg@adacore.com>
6062 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): After analysis,
6063 transfer pre/postconditions from generic copy to original tree, so that
6064 they will appear in each instance.
6065 (Process_PPCs): Do not transform postconditions into a procedure in a
6066 generic context, to prevent double expansion of check pragmas.
6068 * sem_attr.adb: In an instance, the prefix of the 'result attribute
6069 can be the renaming of the
6070 current instance, so check validity of the name accordingly.
6072 2008-07-31 Robert Dewar <dewar@adacore.com>
6074 * mlib-utl.ads: Minor reformatting
6076 2008-07-31 Ed Schonberg <schonberg@adacore.com>
6078 sem_attr.adb: 'Result can have an ambiguous prefix, and is resolved
6079 from context. This attribute must be usable in Ada95 mode.
6080 The attribute can appear in the body of a function marked
6081 Inline_Always, but in this case the postocondition is not enforced.
6083 sem_prag.adb (Check_Precondition_Postcondition): within the expansion
6084 of an inlined call pre- and postconditions are legal
6086 2008-07-31 Vincent Celier <celier@adacore.com>
6088 * prj.adb, prj.ads, clean.adb, prj-nmsc.adb: Remove declarations that
6089 were for gprmake only
6091 2008-07-31 Robert Dewar <dewar@adacore.com>
6093 * gnat_ugn.texi: Update -gnatN documentation.
6095 * gnat_rm.texi: Add note about pre/postcondition
6096 pragmas not checked in conjunction with front-end inlining.
6098 2008-07-31 Robert Dewar <dewar@adacore.com>
6100 * g-pehage.adb, g-pehage.ads: Minor reformatting
6102 2008-07-31 Arnaud Charlet <charlet@adacore.com>
6104 * mlib-utl.ads, prj-makr.ads: Add comments.
6106 2008-07-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
6108 * gcc-interface/Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS)
6109 [WINDOWS]: Add s-winext.o.
6111 2008-07-30 Eric Botcazou <ebotcazou@adacore.com>
6114 * back_end.adb (Call_Back_End): Pass Standard_Boolean to gigi.
6115 * gcc-interface/gigi.h (gigi): Take new standard_boolean parameter.
6116 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Subtype>:
6117 Set precision to 1 for subtype of BOOLEAN_TYPE.
6118 (set_rm_size): Set TYPE_RM_SIZE_NUM for BOOLEAN_TYPE.
6119 (make_type_from_size): Deal with BOOLEAN_TYPE.
6120 * gcc-interface/misc.c (gnat_print_type): Likewise.
6121 * gcc-interface/trans.c (gigi): Take new standard_boolean parameter.
6122 Set boolean_type_node as its translation in the table, as well
6123 as boolean_false_node for False and boolean_true_node for True.
6124 * gcc-interface/utils.c (gnat_init_decl_processing): Create custom
6125 8-bit boolean_type_node and set its TYPE_RM_SIZE_NUM.
6126 (create_param_decl): Deal with BOOLEAN_TYPE.
6127 (build_vms_descriptor): Likewise.
6128 (build_vms_descriptor64): Likewise.
6129 (convert): Deal with BOOLEAN_TYPE like with ENUMERAL_TYPE.
6131 2008-07-30 Robert Dewar <dewar@adacore.com>
6133 * exp_ch9.adb: Minor reformatting
6135 * exp_util.ads (Find_Prim_Op): Document that Program_Error is raised
6136 if no primitive operation is found.
6138 * exp_util.adb: (Find_Prim_Op): Add comments for previous change
6140 * sem_ch8.adb: Minor reformatting
6142 2008-07-30 Laurent Pautet <pautet@adacore.com>
6145 Remove a limitation on the length of the words handled by the minimal
6146 perfect hash function generator.
6149 Detail the use of subprograms Insert, Initialize, Compute and Finalize.
6152 2008-07-30 Robert Dewar <dewar@adacore.com>
6154 * gnatlink.adb: Minor reformatting
6156 2008-07-30 Thomas Quinot <quinot@adacore.com>
6158 * rtsfind.adb (Check_RPC): Check version consistency even when not
6159 generating RCI stubs. Provide more detailed error message in case of
6162 2008-07-30 Ed Schonberg <schonberg@adacore.com>
6164 * sem_ch8.adb (Analyze_Subprogram_Renaming): When renaming an attribute
6165 as a actual in an instance, check for a missing attribute to prevent
6166 program_error on an illegal program.
6168 * exp_util.adb (Find_Prim_Op): Rather than Assert (False), raise program
6169 error if primitive is not found, so that exception can be handled
6170 elsewhere on illegal programs.
6172 2008-07-30 Robert Dewar <dewar@adacore.com>
6174 * uintp.adb (UI_GCD): Fix potential overflow
6176 2008-07-30 Hristian Kirtchev <kirtchev@adacore.com>
6178 * einfo.adb: Flag245 is now used.
6179 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Relax the assertion
6180 check to include functions.
6181 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
6182 (Wrapped_Entity, Set_Wrapped_Entity): Relax the assertion check to
6184 (Write_Entity_Flags): Move flag Is_Primitive, add Is_Private_Primitive
6185 to the list of displayed flags.
6187 * einfo.ads: Update comment on the usage of Is_Primitive_Wrapper and
6188 Wrapped_Entity. These two flags are now present in functions.
6189 New flag Is_Private_Primitive.
6190 (Is_Private_Primitive, Set_Is_Private_Primitive): New subprograms.
6193 (Build_Wrapper_Bodies): New subprogram.
6194 (Build_Wrapper_Body): The spec and body have been moved to in
6195 Build_Wrapper_ Bodies. Code cleanup.
6196 (Build_Wrapper_Spec): Moved to the spec of Exp_Ch9. Code cleanup.
6197 Wrappers are now generated for primitives declared between the private
6198 and full view of a concurrent type that implements an interface.
6199 (Build_Wrapper_Specs): New subprogram.
6200 (Expand_N_Protected_Body): Code reformatting. Replace the wrapper body
6201 creation mechanism with a call to Build_Wrapper_Bodies.
6202 (Expand_N_Protected_Type_Declaration): Code reformatting. Replace the
6203 wrapper spec creation mechanism with a call to Build_Wrapper_Specs.
6204 (Expand_N_Task_Body): Replace the wrapper body creation
6205 mechanism with a call to Build_Wrapper_Bodies.
6206 (Expand_N_Task_Type_Declaration): Replace the wrapper spec
6207 creation mechanism with a call to Build_Wrapper_Specs.
6208 (Is_Private_Primitive_Subprogram): New subprogram.
6209 (Overriding_Possible): Code cleanup.
6210 (Replicate_Entry_Formals): Renamed to Replicate_Formals, code cleanup.
6212 * exp_ch9.ads (Build_Wrapper_Spec): Moved from the body of Exp_Ch9.
6214 * sem_ch3.adb: Add with and use clause for Exp_Ch9.
6215 (Process_Full_View): Build wrapper specs for all primitives
6216 that belong to a private view completed by a concurrent type
6217 implementing an interface.
6219 * sem_ch6.adb (Analyze_Subprogram_Body): When the current subprogram
6221 concurrent type with a private view that implements an interface, try to
6222 find the proper spec.
6223 (Analyze_Subprogram_Declaration): Mark a subprogram as a private
6224 primitive if the type of its first parameter is a non-generic tagged
6226 (Analyze_Subprogram_Specification): Code reformatting.
6227 (Disambiguate_Spec): New routine.
6228 (Find_Corresponding_Spec): Add a flag to controll the output of errors.
6229 (Is_Private_Concurrent_Primitive): New routine.
6232 (Find_Corresponding_Spec): Add a formal to control the output of errors.
6234 2008-07-30 Doug Rupp <rupp@adacore.com>
6236 * gigi.h (build_vms_descriptor64): New function prototype.
6237 (fill_vms_descriptor): Modified function prototype.
6239 * utils.c (build_vms_descriptor64): New function.
6241 * utils2.c (fill_vms_descriptor): Fix handling on 32bit systems.
6243 * trans.c (call_to_gnu): Call fill_vms_descriptor with new third
6246 * decl.c (gnat_to_gnu_tree): For By_Descriptor mech, build both a
6247 64bit and 32bit descriptor and save the 64bit version as an alternate
6248 TREE_TYPE in the parameter.
6249 (make_type_from_size) <RECORD_TYPE>: Use the appropriate mode for the
6252 * ada-tree.h (DECL_PARM_ALT, SET_DECL_PARM_ALT): New macros.
6254 2008-07-30 Robert Dewar <dewar@adacore.com>
6256 * make.adb: Minor reformatting
6258 * mlib-utl.adb: Minor reformatting
6260 * osint.ads: Minor reformatting
6262 2008-07-30 Jose Ruiz <ruiz@adacore.com>
6265 (__gnat_file_exists): Do not use __gnat_stat for RTX.
6266 (__main for RTX in RTSS mode): Create this dummy procedure symbol to
6267 avoid the use of this symbol from libgcc.a in RTX kernel mode.
6270 (put_int, put_int_stderr, put_char, put_char_stderr): For RTX we call
6271 the function RtPrintf for console output.
6273 * argv.c Do not use the environ variable for RTX.
6275 * gnatlink.adb (gnatlink): The part that handles the --RTS option has
6276 been moved before the call to Osint.Add_Default_Search_Dirs in order
6277 to take into account the flags in system.ads (RTX_RTSS_Kernel_Module)
6278 from the appropriate run time.
6281 (RTX_RTSS_Kernel_Module_On_Target): Add this flag that is set to True if
6282 target is a RTSS module for RTX.
6284 * targparm.adb (Targparm_Tags, RTX_Str, Targparm_Str): Add tag RTX for
6285 RTX_RTSS_Kernel_Module
6286 (Get_Target_Parameters): Add processing of RTX_RTSS_Kernel_Module flag.
6288 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for RTX): Use gcc
6289 exception handling mechanism for Windows and RTX in Win32 mode, but
6290 not for RTX in kernel mode (RTSS).
6291 (LIBGNAT_SRCS): Remove ada.h
6293 2008-07-30 Paolo Bonzini <bonzini@gnu.org>
6295 * gcc-interface/Make-lang.in (ALL_ADAFLAGS): Remove X_ADAFLAGS and
6296 T_ADAFLAGS, replace ALL_ADA_CFLAGS with ADA_CFLAGS.
6297 (ALL_ADA_CFLAGS): Remove, replace throughout with ADA_CFLAGS.
6298 * gcc-interface/Makefile.in (XCFLAGS, X_CFLAGS, X_CPPFLAGS, T_CPPFLAGS,
6299 X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS, ADA_CFLAGS,
6300 ALL_ADA_CFLAGS): Remove.
6301 (ALL_ADAFLAGS, MOST_ADAFLAGS): Remove X_ADAFLAGS and T_ADAFLAGS,
6302 replace ALL_ADA_CFLAGS with ADA_CFLAGS.
6303 (GCC_CFLAGS): Remove X_CFLAGS.
6304 (LOOSE_CFLAGS): Remove X_CFLAGS and XCFLAGS.
6305 (ALL_CPPFLAGS): Remove X_CPPFLAGS and T_CPPFLAGS.
6306 (ADA_CFLAGS): Substitute.
6308 2008-07-30 Laurent Guerby <laurent@guerby.net>
6311 * gcc-interface/Makefile.in (MULTISUBDIR, RTSDIR): New variables.
6312 Pass MULTISUBDIR to recursive make. Use $(RTSDIR) instead of rts.
6313 Replace stamp-gnatlib* by stamp-gnatlib*-rts.
6314 * gcc-interface/Make-lang.in: Replace stamp-gnatlib2
6315 by stamp-gnatlib2-rts.
6317 2008-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6319 PR documentation/15479
6320 * gnat-style.texi: Remove AdaCore copyright statement and GPL
6321 statement for GNAT. Add @copying stanza, use it. Update to
6322 GFDL 1.2. Do not list GFDL as Invariant Section, do not list
6323 title as Front-Cover Text.
6324 * gnat_rm.texi: Likewise.
6325 * gnat_ugn.texi: Likewise.
6327 2008-07-29 Jan Hubicka <jh@suse.cz>
6329 * trans.c (process_inlined_subprograms): Remove tree_really_inline
6332 2008-07-29 Arnaud Charlet <charlet@adacore.com>
6334 * gcc-interface: New directory.
6336 * ada-tree.def, cuintp.c, gigi.h, Makefile.in, targtyps.c, ada.h,
6337 utils.c, ada-tree.h, decl.c, lang.opt, Make-lang.in, trans.c,
6338 config-lang.in, deftarg.c, lang-specs.h, misc.c, utils2.c: Moved
6339 to gcc-interface subdirectory.
6341 2008-07-29 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
6343 * Makefile.in (EXTRA_GNATRTL_NONTASKING_OBJS): Remove extra s-win32.o.
6345 2008-07-28 Jan Hubicka <jh@suse.cz>
6347 * misc.c (gnat_post_options): Do not set flag_no_inline.
6349 2008-07-28 Richard Guenther <rguenther@suse.de>
6351 Merge from gimple-tuples-branch.
6353 2008-07-22 Olivier Hainque <hainque@adacore.com>
6355 * gigi.h (end_subprog_body): New ELAB_P argument, saying if
6356 this is called for an elab proc to be discarded if empty.
6357 * utils.c (end_subprog_body): Honor ELAB_P.
6358 (build_function_stub): Adjust call to end_subprog_body.
6359 * trans.c (Subprogram_Body_to_gnu): Likewise.
6360 (gigi): Reorganize processing of elab procs to prevent
6361 gimplifying twice, using the new end_subprog_body argument.
6363 2008-07-19 Richard Guenther <rguenther@suse.de>
6365 * Make-lang.in (trans.o): Add tree-iterator.h dependency.
6366 (utils.o): Likewise.
6367 * trans.c: Include tree-iterator.h.
6368 (gnat_gimplify_expr): Adjust prototype. Fix typo.
6369 (gnat_gimplify_stmt): Use SET_EXPR_LOCATION.
6370 (set_expr_location_from_node): Likewise.
6372 * ada-tree.h (union lang_tree_node): Use TREE_CHAIN instead
6374 * utils.c: Include tree-iterator.h.
6375 * gigi.h (gnat_gimplify_expr): Adjust prototype.
6377 2008-07-18 Aldy Hernandez <aldyh@redhat.com>
6379 * trans.c: Include gimple.h instead of tree-gimple.h.
6382 2008-07-14 Aldy Hernandez <aldyh@redhat.com>
6384 * trans.c (gnat_gimplify_expr): Use gimplify_assign.
6386 2008-07-25 Jan Hubicka <jh@suse.cz>
6388 * utils.c (end_subprog_body): Remove inline trees check.
6389 * misc.c (gnat_post_options): Do not set flag_inline_trees.
6391 2008-07-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6393 * raise-gcc.c: Move tsystem.h before tm.h.
6395 2008-07-20 Arnaud Charlet <charlet@adacore.com>
6397 * gnathtml.pl: New file.
6399 2008-07-19 Olivier Hainque <hainque@adacore.com>
6401 * targtyps.c (get_target_default_allocator_alignment): Use
6402 MALLOC_ABI_ALIGNMENT.
6404 2008-07-17 Olivier Hainque <hainque@adacore.com>
6406 * adaint.c (__MINGW32__ section): Include ctype.h and define
6407 a fallback ISALPHA if IN_RTS.
6408 (__gnat_is_absolute_path): Use ISALPHA instead of isalpha.
6410 2008-07-17 Olivier Hainque <hainque@adacore.com>
6412 * utils.c (create_var_decl_1): Relax expectations on the PUBLIC_FLAG
6413 argument, to apply to references in addition to definitions. Prevent
6414 setting TREE_STATIC on externals.
6415 (gnat_pushdecl): Always clear DECL_CONTEXT on public externals.
6417 2008-07-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6419 PR documentation/15479
6420 * gnat_ugn.texi (@ovar): New macro, from autoconf.texi.
6421 Replace backets around optional parameters with @ovar
6422 where possible, use @r{[}, @r{]} otherwise.
6423 Replace some @r, @i, and @emph with @var where appropriate.
6425 2008-07-02 Eric Botcazou <ebotcazou@adacore.com>
6427 * decl.c (make_type_from_size) <INTEGER_TYPE>: Fix typo and tidy up.
6429 2008-06-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6431 * ada-tree.h (SET_TYPE_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Fix
6432 -Wc++-compat warnings.
6433 * adaint.c (__gnat_locate_regular_file, __gnat_locate_exec,
6434 __gnat_locate_exec_on_path): Likewise.
6435 * decl.c (annotate_value): Likewise.
6436 * misc.c (gnat_handle_option): Likewise.
6437 * trans.c (gnat_to_gnu, extract_encoding, decode_name,
6438 post_error_ne_tree): Likewise.
6440 2008-06-27 Eric Botcazou <ebotcazou@adacore.com>
6442 * utils.c (convert) <CONSTRUCTOR>: When converting it to a packable
6443 version of its type, attempt to first convert its elements.
6445 2008-06-26 Chris Proctor <chrisp_42@bigpond.com>
6447 * Makefile.in: Fix *86 kfreebsd target specific pairs.
6449 2008-06-25 Samuel Tardieu <sam@rfc1149.net>
6451 * Makefile.in: Use mlib-tgt-specific-linux.adb for sh4 as well.
6453 2008-06-24 Eric Botcazou <ebotcazou@adacore.com>
6455 * utils2.c (known_alignment): Derive the alignment from pointed-to
6456 types only if it is otherwise unknown.
6457 <INTEGER_CST>: Tidy.
6458 <MULT_EXPR>: Likewise.
6459 <POINTER_PLUS_EXPR>: If the alignment of the offset is unknown, use
6462 2008-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6465 * s-osinte-hpux-dce.ads (SA_ONSTACK): Define.
6467 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6469 * gnat_rm.texi (Implementation Defined Characteristics)
6470 (Standard Library Routines): Use @smallexample for indented
6471 text. Drop Indentation outside examples.
6472 * gnat_ugn.texi: Likewise.
6474 2008-06-13 Olivier Hainque <hainque@adacore.com>
6476 * decl.c (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Define to 0
6478 (gnat_to_gnu_entity) <case E_Function/Procedure>: Request stack
6479 realignment with force_align_arg_pointer attribute on foreign
6480 convention subprograms if FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
6482 2008-06-13 Olivier Hainque <hainque@adacore.com>
6484 * utils.c (rest_of_record_type_compilation): When computing
6485 encodings for the components of a variable size type, early
6486 strip conversions on the current position expression to make
6487 sure it's shape is visible. Use remove_conversions for this
6490 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
6492 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: In the case of a
6493 constrained subtype of a discriminated type, discard the fields that
6494 are beyond its limits according to its size.
6496 2008-06-10 Olivier Hainque <hainque@adacore.com>
6498 * utils.c (create_subprog_decl): If this is for the 'main' entry
6499 point according to the asm name, redirect main_identifier_node.
6501 2008-06-09 Eric Botcazou <ebotcazou@adacore.com>
6503 * decl.c (components_to_record): Adjust the packedness for the
6504 qualified union as well.
6506 2008-06-09 Arnaud Charlet <charlet@adacore.com>
6508 * Make-lang.in: Use -gnatwns instead of -gnatws to make sytyle
6511 2008-06-07 Samuel Tardieu <sam@rfc1149.net>
6513 * sem_res.adb (Large_Storage_Type): A type is large if it
6514 requires as many bits as Positive to store its values and its
6515 bounds are known at compile time.
6516 * sem_ch13.adb (Minimum_Size): Note that this function returns
6517 0 if the size is not known at compile time.
6519 2008-06-06 Nicolas Setton <setton@adacore.com>
6520 Olivier Hainque <hainque@adacore.com>
6522 * ada-tree.h (DECL_PARALLEL_TYPE): New language specific
6523 attribute, parallel descriptive type attached to another
6524 type for debug info generation purposes.
6525 * utils.c (add_parallel_type): New function, register
6526 parallel type to be attached to a type.
6527 (get_parallel_type): New function, fetch a registered
6528 parallel type, if any.
6529 (rest_of_record_type_compilation): Register the parallel
6530 type we make for variable size records.
6531 * gigi.h (add_parallel_type, get_parallel_type): Declare.
6532 * decl.c (gnat_to_gnu_entity, maybe_pad_type): Register the
6533 parallel debug types we make.
6534 * trans.c (extract_encoding, decode_name): New functions.
6535 (gigi): If the DWARF attribute extensions are available, setup
6537 * lang.opt: Register language specific processing request
6539 * misc.c (gnat_dwarf_extensions): New global variable. How much
6540 do we want of our DWARF extensions. 0 by default.
6541 (gnat_handle_option) <OPT_gdwarf_>: Increment gnat_dwarf_extensions.
6542 (gnat_post_options): Map gnat_dwarf_extensions to the
6543 commonuse_gnu_debug_info_extensions for later processing.
6545 2008-06-04 Samuel Tardieu <sam@rfc1149.net>
6547 * einfo.ads, einfo.adb: Remove unused flag Function_Returns_With_DSP.
6549 2008-06-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6551 * Makefile.in (common_tools): Fix typos in $(exeext) extension.
6552 * gnat_ugn.texi (Style Checking)
6553 (Adding the Results of Compiler Checks to gnatcheck Output)
6554 (Example of Binder Output File): Fix typos.
6555 * ali.ads, einfo.ads, exp_ch4.adb, exp_ch6.adb,
6556 exp_dbug.ads, exp_dist.adb, exp_smem.adb, g-socket.ads,
6557 s-osinte-rtems.ads, s-shasto.ads, s-stausa.adb,
6558 s-stausa.ads, sem_cat.adb, sem_ch12.adb, sem_ch3.adb,
6559 sem_ch4.adb, sem_ch6.adb, sem_ch8.adb, sem_util.ads,
6560 sinfo.ads, utils.c: Fix typos in comments.
6561 * sem_ch6.adb, vms_data.ads: Fix typos in strings.
6563 2008-05-29 Thomas Quinot <quinot@adacore.com>
6565 * sem_eval.adb: Minor reformatting
6567 2008-05-29 Ed Schonberg <schonberg@adacore.com>
6569 * sem_ch6.adb (Analyze_Subprogram_Specification): if the return type
6570 is abstract, do not apply abstractness check on subprogram if this is
6571 a renaming declaration.
6573 2008-05-29 Arnaud Charlet <charlet@adacore.com>
6576 * osint.ads, osint.adb (Program_Name): New parameter "Prog" to
6577 allow recognition of program suffix in addition to prefix.
6579 * gnatchop.adb (Locate_Executable): Add support for prefix.
6581 * make.adb, gnatcmd.adb, gnatlink.adb, prj-makr.adb,
6582 mlib-utl.adb: Adjust calls to Program_Name.
6584 2008-05-29 Robert Dewar <dewar@adacore.com>
6586 * sem_ch3.adb: Minor reformatting
6587 * sem_prag.adb: Minor reformatting
6588 * sem_res.adb: Minor reformatting
6589 * sinput-p.ads: Minor reformatting
6591 2008-05-29 Javier Miranda <miranda@adacore.com>
6594 (Abstract_Interface_List): Add missing support for full type-declaration
6595 associated with synchronized types.
6597 2008-05-29 Robert Dewar <dewar@adacore.com>
6599 * sem_eval.adb (Is_Same_Value): Take care of several more cases
6601 2008-05-28 Ed Schonberg <schonberg@adacore.com>
6603 * sem_ch5.adb (Analyze_Assignment): If the name is of a local anonymous
6604 access type, wrap the expression in a conversion to force an
6605 accessibility check.
6607 * sem_aggr.adb (Aggegate_Constraint_Checks): Apply conversion to force
6608 accessibility checks even when expansion is disabled in order to
6609 generate messages in the presence of previous errors or in
6610 semantics-only mode.
6612 2008-05-28 Eric Botcazou <ebotcazou@adacore.com>
6614 * system-lynxos-ppc.ads (Always_Compatible_Rep): Set to False.
6615 * system-lynxos-x86.ads (Always_Compatible_Rep): Set to False.
6617 2008-05-28 Vincent Celier <celier@adacore.com>
6620 * gnat_ugn.texi: Document restriction introduced on 2007-04-20 in
6621 preprocessing expressions
6623 2008-05-28 Vincent Celier <celier@adacore.com>
6625 * sinput-p.adb (Source_File_Is_Subunit): Allow special character used
6628 * sinput-p.ads: Minor comment update and reformatting
6630 2008-05-28 Ed Schonberg <schonberg@adacore.com>
6632 * sem_res.adb (Valid_Conversion): An anonymous access_to_subprogram
6633 type has a deeper level than any master only when it is the type of an
6636 2008-05-28 Javier Miranda <miranda@adacore.com>
6638 * sem_ch3.adb (Derive_Progenitor_Subprograms): Add documentation.
6640 2008-05-28 Javier Miranda <miranda@adacore.com>
6642 * sem_util.ads (Find_Overridden_Synchronized_Primitive): Removed.
6643 * sem_util.adb (Find_Overridden_Synchronized_Primitive): Removed.
6644 * sem_ch6.adb (Check_Synchronized_Overriding): Remove one formal.
6645 Add code that was previously located in
6646 Find_Overridden_Synchronized_Primitive because it is only used here.
6648 2008-05-28 Sergey Rybin <rybin@adacore.com>
6650 * sem_prag.adb (Process_Extended_Import_Export_Subprogram_Pragma): Set
6651 Entity field for formal_parameter_NAME in MECHANISM_ASSOCIATION.
6653 2008-05-28 Robert Dewar <dewar@adacore.com>
6656 Add missing restrictions, and properly label all GNAT defined ones
6659 Add entry for Ada_Real_Time.Timing_Events.Timing_Event
6660 Add entry for Ada.Task_Termination.Set_Specific_Handler
6661 Add entry for Ada.Task_Termination.Specific_Handler
6664 Add missing restrictions and properly mark all gnat defined ones
6667 (Analyze_Object_Declaration): Check No_Local_Timing_Events restriction
6670 (Resolve_Call): Check violation of No_Specific_Termination_Handlers
6672 * gnat_rm.texi: Add missing restrictions, and properly label all
6675 2008-05-28 Robert Dewar <dewar@adacore.com>
6678 (Check_Restriction): violation of restriction No_Finalization is
6679 treated as a serious error to stop expansion
6681 2008-05-28 Robert Dewar <dewar@adacore.com>
6683 * exp_util.adb: Minor reformatting
6684 * exp_util.ads: Minor reformatting.
6686 2008-05-28 Arnaud Charlet <charlet@adacore.com>
6688 * Make-lang.in: Remove gprmake.
6690 * gprmake.adb, makegpr.ads, makegpr.adb: Removed.
6692 2008-05-28 Ed Schonberg <schonberg@adacore.com>
6694 * sem_ch3.adb (Diagnose_Interface): Cleanup error messages involving
6695 improper progenitor names, and avoid cascaded errors.
6697 2008-05-28 Robert Dewar <dewar@adacore.com>
6699 * gnat_rm.texi: Add note on Old giving warning when applied to constant
6701 * sem_attr.adb (Analyze_Attribute, case Old): Give warning if prefix is
6704 2008-05-28 Robert Dewar <dewar@adacore.com>
6706 * exp_fixd.adb (Build_Multiply): Correct one-off error in computing
6709 2008-05-28 Robert Dewar <dewar@adacore.com>
6712 (Expand_Simple_Function_Return): Copy unaligned result into temporary
6714 2008-05-28 Javier Miranda <miranda@adacore.com>
6716 * sem_ch3.adb (Derive_Progenitor_Primitives): Add missing support
6717 for user-defined predefined primitives.
6719 * sem_util.adb (Matches_Prefixed_View_Profile): Ditto.
6720 (Find_Overridden_Synchronized_Primitive): Ditto.
6722 * sem_ch6.adb (Check_Synchronized_Overriding): Ditto.
6724 2008-05-27 Arnaud Charlet <charlet@adacore.com>
6726 * a-ststio.adb, s-direio.adb:
6727 Further code clean up of previous change.
6730 2008-05-27 Vincent Celier <celier@adacore.com>
6732 * prj-nmsc.adb: Minor reformatting
6734 2008-05-27 Bob Duff <duff@adacore.com>
6736 * sem_ch3.adb (Build_Incomplete_Type_Declaration): In the case of an
6737 untagged private type with a tagged full type, where the full type has
6738 a self reference, create the corresponding class-wide type early, in
6739 case the self reference is "access T'Class".
6741 2008-05-27 Ed Schonberg <schonberg@adacore.com>
6743 * exp_aggr.adb (Build_Array_Aggr_Code): If component type includes
6744 tasks and context is an object declaration. create master entity before
6747 2008-05-27 Robert Dewar <dewar@adacore.com>
6749 * mlib-prj.adb: Minor reformatting
6751 * prj-part.adb: Minor reformatting
6753 * prj.ads: Minor reformatting
6755 * exp_ch3.adb: Minor reformatting.
6757 * sem_ch3.ads: Minor reformatting
6759 * sem_eval.adb: Minor reformatting
6761 2008-05-27 Vincent Celier <celier@adacore.com>
6764 <prefix>-gnat stack spawns gnatstack, not <prefix>-gnatstack
6766 2008-05-27 Ed Schonberg <schonberg@adacore.com>
6768 * exp_aggr.adb (Expand_Array_Aggregate): If the aggregate contains
6769 tasks, create an activation chain now, before the expansion into
6770 assignments and build-in-place calls that require the presence of an
6772 (Backend_Processing_Possible): If the component type is inherently
6773 limited, the aggregate must be expanded into individual built-in-place
6776 * sem_ch6.adb (Build_Extra_Formals): Use underlying type of result to
6777 determine whether an allocation extra parameter must be built, to
6778 handle case of a private type whose full type is a discriminated type
6781 2008-05-27 Bob Duff <duff@adacore.com>
6784 Document the new behavior regarding trampolines.
6786 2008-05-27 Arnaud Charlet <charlet@adacore.com>
6788 * a-direio.adb, a-sequio.adb: Replace address clause by
6789 unrestricted_access, simpler and compatible with .NET.
6791 2008-05-27 Vincent Celier <celier@adacore.com>
6794 (Project_Path_Name_Of.Try_Path): Do not use Locate_Regular_File to find
6795 a project file, so that symbolic links are not resolved.
6797 2008-05-27 Arnaud Charlet <charlet@adacore.com>
6799 * a-ztexio.adb, a-textio.adb, a-witeio.adb, s-direio.adb:
6800 Replace heavy address clause by 'Unrestricted_Access, cleaner and more
6801 portable across GNAT targets, since this kind of address clause is not
6802 supported by VM back-ends (.NET/JGNAT).
6804 2008-05-27 Arnaud Charlet <charlet@adacore.com>
6806 * bindgen.adb: Update comments.
6808 * s-tasinf-mingw.adb: Add "with" of System.OS_Interface
6810 2008-05-27 Vincent Celier <celier@adacore.com>
6812 * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb,
6813 prj.ads, makegpr.adb, makeutl.adb, clean.adb, prj-nmsc.adb,
6814 mlib-tgt.adb, prj-env.adb, prj-env.ads:
6815 (Path_Information): New record type
6816 Use component of type Path_Information when there are two paths, one in
6817 canonical format and one in display format.
6818 Update the project manager to these new components.
6820 2008-05-27 Robert Dewar <dewar@adacore.com>
6822 * makeutl.adb: Minor reformatting
6823 * prj-nmsc.adb: Minor reformatting
6824 * s-stausa.adb: Minor reformatting
6825 * s-stausa.ads: Minor reformatting
6826 * sem_ch6.adb: Minor reformatting
6828 2008-05-27 Thomas Quinot <quinot@adacore.com>
6830 * sem_res.adb: Minor comment fixes
6832 2008-05-27 Thomas Quinot <quinot@adacore.com>
6834 * makeutl.adb: Minor code reorganization
6836 * exp_aggr.adb: Add ??? comment
6839 * exp_ch6.adb: Minor reformatting
6841 2008-05-27 Quentin Ochem <ochem@adacore.com>
6843 * s-stausa.adb (Initialize): Updated result initialization, and
6844 initialization of environment stack.
6845 (Fill_Stack): Improved computation of the pattern zone, taking into
6846 account already filled at the calling point.
6847 (Get_Usage_Range): Now uses Min_Measure and Max_Measure instead of
6848 Measure and Overflow_Guard.
6849 (Report_Result): Fixed computation of the result using new fields of
6852 * s-stausa.ads (Initialize_Analyzer): Replaced Size / Overflow_Guard
6853 params by more explicit Stack_Size / Max_Pattern_Size params.
6854 (Stack_Analyzer): Added distinct Stack_Size & Pattern_Size fields.
6855 Added Stack_Used_When_Filling field.
6856 (Task_Result): Replaced Measure / Overflow_Guard by more explicit
6857 Min_Measure and Max_Measure fields.
6859 * s-tassta.adb (Task_Wrapper): Updated call to Initialize_Analyzer.
6861 2008-05-27 Vincent Celier <celier@adacore.com>
6864 (Check_File): Make sure that a unit that replaces the same unit in a
6865 project being extended is properly processed.
6867 2008-05-27 Ed Schonberg <schonberg@adacore.com>
6870 (Get_Discr_Value): Remove obsolete code that failed to find the value
6871 of a discriminant for an inherited task component appearing in a type
6874 2008-05-27 Thomas Quinot <quinot@adacore.com>
6876 (System.File_IO.{Close, Delete, Reset}):
6877 Change File parameter from "in out AFCB_Ptr" to "access AFCB_Ptr".
6879 (Ada.*_IO.{Close, Delete, Reset, Set_Mode}):
6880 Pass File parameter by reference.
6882 2008-05-27 Vincent Celier <celier@adacore.com>
6885 (Process_Sources_In_Multi_Language_Mode): Check that there are not two
6886 sources of the same project that have the same object file name.
6887 (Find_Explicit_Sources): Always remove a source exception that was not
6890 2008-05-27 Thomas Quinot <quinot@adacore.com>
6892 * sem_ch3.adb: Minor reformatting
6894 2008-05-27 Ed Schonberg <schonberg@adacore.com>
6897 (Is_Interface_Conformant): Handle properly a primitive operation that
6898 overrides an interface function with a controlling access result.
6899 (Type_Conformance): If Skip_Controlling_Formals is true, when matching
6900 inherited and overriding operations, omit as well the conformance check
6901 on result types, to prevent spurious errors.
6903 2008-05-27 Vincent Celier <celier@adacore.com>
6905 * makeutl.ads, makeutl.adb:
6906 (Set_Location): New procedure
6907 (Get_Location): New function
6908 (Update_Main): New procedure
6910 2008-05-27 Vincent Celier <celier@adacore.com>
6913 (Check_Library): Allow standard project to be extended as a static
6915 (Get_Mains): Do not inherit attribute Main in an extending library
6918 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
6920 * system-darwin-ppc.ads (Always_Compatible_Rep): Set to False.
6921 * system-darwin-x86.ads (Always_Compatible_Rep): Likewise.
6922 * system-freebsd-x86.ads (Always_Compatible_Rep): Likewise.
6923 * system-linux-ppc.ads (Always_Compatible_Rep): Likewise.
6924 * system-linux-x86_64.ads (Always_Compatible_Rep): Likewise.
6925 * system-linux-x86.ads (Always_Compatible_Rep): Likewise.
6926 * system-mingw.ads (Always_Compatible_Rep): Likewise.
6927 * system-solaris-sparc.ads (Always_Compatible_Rep): Likewise.
6928 * system-solaris-sparcv9.ads (Always_Compatible_Rep): Likewise.
6929 * system-solaris-x86.ads (Always_Compatible_Rep): Likewise.
6931 2008-05-27 Ed Schonberg <schonberg@adacore.com>
6933 * sem_attr.adb: add guard to previous patch.
6935 2008-05-27 Ed Schonberg <schonberg@adacore.com>
6937 * exp_disp.adb (Build_Dispatch_Tables): For a private type completed by
6938 a synchronized tagged type, do not attempt to build dispatch table for
6939 full view. The table is built for the corresponding record type, which
6940 has its own declaration.
6942 2008-05-27 Gary Dismukes <dismukes@adacore.com>
6944 * sem_ch3.adb (Fixup_Bad_Constraint): Set the Etype on the bad subtype
6945 to the known type entity E, rather than setting it to Any_Type. Fixes
6946 possible blowup in function Base_Init_Proc, as called from Freeze_Entity
6947 for objects whose type had an illegal constraint.
6949 2008-05-27 Vincent Celier <celier@adacore.com>
6952 Add succinct documentation for attribute Excluded_Source_List_File
6954 2008-05-27 Vincent Celier <celier@adacore.com>
6956 * prj-attr.adb: Add new project level attribute Map_File_Option
6958 * prj-nmsc.adb (Process_Linker): Process new attribute Map_File_Option
6960 * prj.ads: Minor reformatting and comment update
6961 (Project_Configuration): New component Map_File_Option
6963 * snames.adb: New standard name Map_File_Option
6965 * snames.ads: New standard name Map_File_Option
6967 2008-05-27 Vincent Celier <celier@adacore.com>
6969 * xsnames.adb: Remove unused variable Oname
6971 2008-05-27 Doug Rupp <rupp@adacore.com>
6974 (Expand_N_Function_Call): Fix comments. Minor reformatting.
6977 (Expand_Vax_Foreign_Return): Fix comments.
6979 2008-05-27 Thomas Quinot <quinot@adacore.com>
6981 * exp_dist.adb: Minor reformating
6983 2008-05-26 Gary Dismukes <dismukes@adacore.com>
6985 * exp_ch3.adb (Expand_N_Object_Declaration): Remove checks for
6986 No_Default_Initialization, which is now delayed until the freeze point
6987 of the object. Add a comment about deferral of the check.
6989 * freeze.adb (Freeze_Entity): The check for No_Default_Initialization
6990 on objects is moved here.
6992 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
6994 * s-casi16.adb (Uhalf): Rewrite it as integer with small alignment.
6995 (Compare_Array_S16): Adjust for above change.
6996 * s-casi32.adb (Uword): Likewise.
6997 (Compare_Array_S32): Likewise.
6998 * s-casi64.adb (Uword): Likewise.
6999 (Compare_Array_S64): Likewise.
7000 * s-caun16.adb (Uhalf): Likewise.
7001 (Compare_Array_U16): Likewise.
7002 * s-caun32.adb (Uword): Likewise.
7003 (Compare_Array_U32): Likewise.
7004 * s-caun64.adb (Uword): Likewise.
7005 (Compare_Array_U64): Likewise.
7007 2008-05-26 Robert Dewar <dewar@adacore.com>
7009 * exp_ch6.adb: Add ??? comment for previous change
7011 * exp_vfpt.adb: Minor reformatting
7013 * exp_vfpt.ads: Add ??? comment for last change
7015 * sem_attr.adb: Add some ??? comments for previous change
7017 * s-vaflop.ads: Add comments for previous change
7019 2008-05-26 Doug Rupp <rupp@adacore.com>
7021 * s-vaflop-vms-alpha.adb:
7022 Remove System.IO use clause, to prevent spurious ambiguities when
7023 package is access through rtsfind.
7025 2008-05-26 Sergey Rybin <rybin@adacore.com>
7027 * tree_io.ads (ASIS_Version_Number): Update because of the changes
7030 2008-05-26 Ed Schonberg <schonberg@adacore.com>
7033 (Resolve_Attribute, case 'address): S (A .. B)' address can be safely
7034 converted to S (A)'address only if A .. B is known to be a non-null
7037 2008-05-26 Doug Rupp <rupp@adacore.com>
7040 (Return_D, Return_F, Return_G): New functions.
7043 (Return_D, Return_F, Return_G): New functions.
7046 (Expand_Vax_Foreign_Return): New procedure
7049 (Expand_Vax_Foreign_Return): New procedure
7052 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Ids
7053 (RE_Return_D, RE_Return_F, RE_Return_G): New RE_Unit_Table elements
7057 (Expand_N_Function_Call): Call Expand_Vax_Foreign_Return.
7059 * s-vaflop-vms-alpha.adb:
7060 (Return_D, Return_F, Return_G): New functions.
7062 2008-05-26 Gary Dismukes <dismukes@adacore.com>
7064 * exp_ch3.adb (Build_Array_Init_Proc): Only set Init_Proc to a dummy
7065 init proc entity when there is actual default initialization associated
7066 with the component type, to avoid spurious errors on objects of scalar
7067 array types that are marked Is_Public when No_Default_Initialization
7070 2008-05-26 Thomas Quinot <quinot@adacore.com>
7072 * rtsfind.ads, rtsfind.adb:
7073 (RE_Get_RACW): New runtime library entity provided by PolyORB s-parint.
7074 (Check_RPC): Support per-PCS-kind API versioning.
7076 exp_dist.ads, exp_dist.adb:
7077 (Build_Stub_Tag, Get_Stub_Elements): New utility subprograms.
7078 (PolyORB_Support.Add_RACW_From_Any): Offload common code to new runtime
7079 library function Get_RACW.
7080 (PolyORB_Support.Add_RACW_To_Any): Offload common code to new runtime
7081 library function Get_Reference.
7082 (PolyORB_Support.Add_RACW_Read_Attribute): Use Get_RACW instead of going
7083 through an intermediate Any.
7084 (PolyORB_Support.Add_RACW_Write_Attribute): Use Get_Reference instead of
7085 going through an intermediate Any.
7087 * sem_dist.adb: Minor reformatting.
7089 2008-05-26 Javier Miranda <miranda@adacore.com>
7091 * einfo.ads (Abstract_Interface_Alias): Renamed as Interface_Alias.
7092 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
7093 (Is_Internal): Adding documentation on internal entities that have
7094 attribute Interface_Alias (old attribute Abstract_Interface_Alias)
7096 * einfo.adb (Abstract_Interface_Alias): Renamed as Interface_Alias.
7097 (Set_Abstract_Interface_Alias): Renamed as Set_Interface_Alias.
7098 Added assertion to force entities with this attribute to have
7099 attribute Is_Internal set to True.
7100 (Next_Tag_Component): Simplify assertion using attribute Is_Tag.
7102 * sem_ch3.adb (Derive_Interface_Subprograms): This subprogram has been
7103 renamed as Derive_Progenitor_Subprograms. In addition, its code is
7104 a new implementation.
7105 (Add_Interface_Tag_Components): Remove special management of
7106 synchronized interfaces.
7107 (Analyze_Interface_Declaration): Minor reformating
7108 (Build_Derived_Record_Type): Minor reformating
7109 (Check_Abstract_Overriding): Avoid reporting error in case of abstract
7110 predefined primitive inherited from interface type because the body of
7111 internally generated predefined primitives of tagged types are generated
7112 later by Freeze_Type
7113 (Derive_Subprogram): Avoid generating an internal name if the parent
7114 subprogram overrides an interface primitive.
7115 (Derive_Subprograms): New implementation that keeps separate the
7116 management of tagged types not implementing interfaces, from tagged
7117 types that implement interfaces.
7118 (Is_Progenitor): New implementation.
7119 (Process_Full_View): Add documentation
7120 (Record_Type_Declaration): Replace call to Derive_Interface_Subprograms
7121 by call to Derive_Progenitor_Subprograms.
7123 * sem_ch6.ads (Is_Interface_Conformant): New subprogram.
7124 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
7125 Skip_Controlling_Formals.
7127 * sem_ch6.adb (Is_Interface_Conformant): New subprogram.
7128 (Check_Conventions): New implementation. Remove local subprogram
7129 Skip_Check. Remove formal Search_From of routine Check_Convention.
7130 (Check_Subtype_Conformant, Subtype_Conformant): Adding new argument
7131 Skip_Controlling_Formals.
7132 (New_Overloaded_Entity): Enable addition of predefined dispatching
7136 (Find_Primitive_Covering_Interface): New subprogram.
7138 * sem_disp.adb (Check_Dispatching_Operation): Disable registering
7139 the task body procedure as a primitive of the corresponding tagged
7141 (Check_Operation_From_Private_Type): Avoid adding twice an entity
7142 to the list of primitives.
7143 (Find_Primitive_Covering_Interface): New subprogram.
7144 (Override_Dispatching_Operation): Add documentation.
7146 * sem_type.adb (Covers): Minor reformatings
7148 * sem_util.ads (Collect_Abstract_Interfaces): Renamed as
7151 (Has_Abstract_Interfaces): Renamed as Has_Interfaces.
7152 (Implements_Interface): New subprogram.
7153 (Is_Parent): Removed.
7154 (Primitive_Names_Match): New subprogram.
7155 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
7156 (Ultimate_Alias): New subprogram.
7158 * sem_util.adb (Collect_Abstract_Interfaces): Renamed as
7160 Remove special management for synchronized types. Rename formal. Remove
7161 internal subprograms Interface_Present_In_Parent and Add_Interface.
7162 (Has_Abstract_Interfaces): Renamed as Has_Interfaces. Replace assertion
7163 on non-record types by code to return false in such case.
7164 (Implements_Interface): New subprogram.
7165 (Is_Parent): Removed. No special management is now required for
7166 synchronized types covering interfaces.
7167 (Primitive_Names_Match): New subprogram.
7168 (Remove_Homonym): Moved here from Derive_Interface_Subprograms.
7169 (Ultimate_Alias): New subprogram.
7171 * exp_ch3.adb (Add_Internal_Interface_Entities): New subprogram.
7172 Add internal entities associated with secondary dispatch tables to
7173 the list of tagged type primitives that are not interfaces.
7174 (Freeze_Record_Type): Add new call to Add_Internal_Interface_Entities
7175 (Make_Predefined_Primitive_Specs): Code reorganization to improve
7176 the management of predefined equality operator. In addition, if
7177 the type has an equality function corresponding with a primitive
7178 defined in an interface type, the inherited equality is abstract
7179 as well, and no body can be created for it.
7181 * exp_disp.ads (Is_Predefined_Dispatching_Operation): Moved from
7182 exp_util to exp_disp.
7183 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if
7184 an entity corresponds with one of the predefined primitives required
7185 to implement interfaces.
7186 Update copyright notice.
7188 * exp_disp.adb (Set_All_DT_Position): Add assertion. Exclude from the
7189 final check on abstract subprograms all the primitives associated with
7190 interface primitives because they must be visible in the public and
7192 (Write_DT): Use Find_Dispatching_Type to locate the name of the
7193 interface type. This allows the use of this routine, for debugging
7194 purposes, when the tagged type is not fully decorated.
7195 (Is_Predefined_Dispatching_Operation): Moved from exp_util to exp_disp.
7196 Factorize code calling new subprogram Is_Predefined_Interface_Primitive.
7197 (Is_Predefined_Interface_Primitive): New subprogram. Returns True if an
7198 entity corresponds with one of the predefined primitives required to
7199 implement interfaces.
7201 * exp_util.adb (Find_Interface_ADT): New implementation
7202 (Find_Interface): Removed.
7204 * sprint.adb (Sprint_Node_Actual): Generate missing output for the
7205 list of interfaces associated with nodes
7206 N_Formal_Derived_Type_Definition and N_Private_Extension_Declaration.
7208 2008-05-26 Thomas Quinot <quinot@adacore.com>
7210 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): Add missing guard on
7211 condition for assignment to temporary.
7213 2008-05-26 Ed Schonberg <schonberg@adacore.com>
7215 * exp_ch4.adb (Expand_Concatenate_Other): Add explicit constraint
7216 checks on the upper bound if the index type is a modular type, to
7217 prevent wrap-around computations when size is close to upper bound of
7220 2008-05-26 Robert Dewar <dewar@adacore.com>
7222 * sem_ch3.adb: Minor reformatting
7224 2008-05-26 Ed Schonberg <schonberg@adacore.com>
7226 * sem_ch12.adb (Remove_Parent): Use specification of instance
7227 to retrieve generic parent,
7228 to handle properly the case where the instance is a child unit.
7229 Add guard to handle properly wrapper packages.
7232 2008-05-26 Thomas Quinot <quinot@adacore.com>
7234 * sinfo.ads: Minor reformatting
7236 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
7238 * exp_ch4.adb (Expand_N_Type_Conversion): Minor code reformatting.
7239 Generate a tag check when the result subtype of a function, defined by
7240 an access definition, designates a specific tagged type.
7241 (Make_Tag_Check): New routine.
7243 2008-05-26 Arnaud Charlet <charlet@adacore.com>
7245 * ceinfo.adb, csinfo.adb: Remove warnings. Update headers.
7247 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
7249 * gigi.h (gigi): Remove bogus ATTRIBUTE_UNUSED marker.
7250 (builtin_decl_for): Likewise.
7251 * trans.c (gigi): Likewise.
7252 * utils.c (def_builtin_1): Fix formatting.
7254 2008-05-26 Hristian Kirtchev <kirtchev@adacore.com>
7256 * exp_ch3.adb (Build_Init_Statements): Alphabetize local variables.
7257 Create the statements which map a string name to protected or task
7260 * exp_ch9.adb: Add with and use clause for Stringt.
7261 Minor code reformatting.
7262 (Build_Entry_Names): New routine.
7263 (Make_Initialize_Protection, Make_Task_Create_Call): Generate a value
7264 for flag Build_Entry_Names which controls the allocation of the data
7265 structure for the string names of entries.
7267 * exp_ch9.ads (Build_Entry_Names): New subprogram.
7269 * exp_util.adb (Entry_Names_OK): New function.
7271 * exp_util.ads (Entry_Names_OK): New function.
7273 * rtsfind.ads: Add RO_PE_Set_Entry_Name and RO_TS_Set_Entry_Name to
7274 enumerations RE_Id and RE_Unit_Table.
7276 * s-taskin.adb Add with and use clause for Ada.Unchecked_Deallocation.
7277 (Free_Entry_Names_Array): New routine.
7279 * s-taskin.ads: Comment reformatting.
7280 Add types String_Access, Entry_Names_Array, Entry_Names_Array_Access.
7281 Add component Entry_Names to record Ada_Task_Control_Block.
7282 (Free_Entry_Names_Array): New routine.
7284 * s-tassta.adb (Create_Task): If flag Build_Entry_Names is set,
7285 dynamically allocate an array
7286 of string pointers. This structure holds string entry names.
7287 (Free_Entry_Names): New routine.
7288 (Free_Task, Vulnerable_Free_Task): Deallocate the entry names array.
7289 (Set_Entry_Names): New routine.
7292 (Create_Task): Add formal Build_Entry_Names. The flag is used to
7293 control the allocation of the data structure which stores entry names.
7294 (Set_Entry_Name): New routine.
7297 Add with and use clause for Ada.Unchecked_Conversion.
7298 (Finalize): Deallocate the entry names array.
7299 (Free_Entry_Names): New routine.
7300 (Initialize_Protection_Entries): When flag Build_Entry_Names is set,
7301 create an array of string pointers to hold the entry names.
7302 (Set_Entry_Name): New routine.
7305 Add field Entry_Names to record Protection_Entries.
7306 (Initialize_Protection_Entries): Add formal Build_Entry_Names.
7307 (Set_Entry_Name): New routine.
7309 2008-05-26 Vincent Celier <celier@adacore.com>
7312 (Process_Project_Level_Simple_Attributes): process attribute Library_GCC
7315 (Project_Configuration): New component Shared_Lib_Driver
7317 2008-05-26 Ed Schonberg <schonberg@adacore.com>
7320 (Cleanup_Scopes): For a protected operation, transfer finalization list
7321 to protected body subprogram, to force cleanup actions when needed.
7323 2008-05-26 Robert Dewar <dewar@adacore.com>
7325 * sem_cat.adb: Minor reformatting
7327 * gnatname.adb: Minor reformatting
7329 * osint.ads: Minor reformatting
7331 * s-carun8.ads: Minor reformatting
7333 * g-heasor.ads: Minor comment fix (unit is now pure)
7335 2008-05-26 Robert Dewar <dewar@adacore.com>
7338 (Expand_Current_Value): Properly type generated integer literal
7340 2008-05-26 Sergey Rybin <rybin@adacore.com>
7342 * gnat_ugn.texi: Add description for the new gnatcheck rule -
7343 Separate_Numeric_Error_Handlers.
7345 2008-05-26 Pascal Obry <obry@adacore.com>
7347 * sem_aggr.adb: Minor reformatting.
7349 2008-05-26 Jose Ruiz <ruiz@adacore.com>
7352 (To_Target_Priority): Setting the time slice value to 0 or greater sets
7353 the scheduling policy to FIFO within priorities or round-robin
7355 Hence, the priority must be set in this case to the one selected by the
7358 2008-05-26 Ed Schonberg <schonberg@adacore.com>
7361 (Remove_Parent): If the enclosing scope is an instance whose generic
7362 parent is declared within some parent scope of the just completed
7363 instance, make full views of the entities in that parent visible, when
7366 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
7368 * mingw32.h (STD_MINGW): Set to true for target w64.
7370 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
7372 * trans.c (Attribute_to_gnu) <Code_Address>: Set TREE_NO_TRAMPOLINE
7373 instead of TREE_STATIC on the ADDR_EXPR.
7375 2008-05-24 Eric Botcazou <ebotcazou@adacore.com>
7377 * trans.c (gnat_to_gnu): Do not set source location info on NOP_EXPRs.
7378 (Sloc_to_locus): Do not overwrite known GCC locations when translating
7379 GNAT standard locations.
7381 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
7383 * gigi.h (mark_visited): Declare.
7384 * decl.c (gnat_to_gnu_entity): Use mark_visited instead of marking
7385 only the topmost node of expressions.
7386 (elaborate_expression_1): Look deeper for read-only variables.
7387 * trans.c (add_decl_expr): Use mark_visited instead of marking by hand.
7388 (mark_visited): Move logic to mark_visited_r. Invoke walk_tree.
7389 (mark_visited_r): New function.
7391 2008-05-23 Vincent Celier <celier@adacore.com>
7393 * snames.adb: New standard name Excluded_Source_List_File.
7395 * snames.ads: New standard name Excluded_Source_List_File.
7397 * prj-attr.adb: New project level attribute Excluded_Source_List_File.
7399 * prj-nmsc.adb: (Find_Excluded_Sources): New parameter Project.
7400 Get excluded sources from
7401 file indicated by attribute Excluded_Source_List_File, when present and
7402 neither Excluded_Source_Files nor Locally_Removed_Files are declared.
7404 2008-05-23 Robert Dewar <dewar@adacore.com>
7406 * exp_dist.adb: Minor reformatting
7408 2008-05-23 Ed Schonberg <schonberg@adacore.com>
7410 * sem_attr.adb (Resolve_Attribute, case 'address): If the prefix is a
7411 slice, convert it to an indexed component, which is equivalent, more
7412 efficient, and usable even if the slice itself is not addressable.
7414 2008-05-23 Olivier Hainque <hainque@adacore.com>
7416 * gnat_ugn.texi (Calling Conventions): Document that the Intrinsic
7417 convention also allows access to named compiler built-in subprograms
7418 such as the GCC __builtin family.
7420 2008-05-23 Vincent Celier <celier@adacore.com>
7422 * prj-nmsc.adb (Check_Naming_Schemes): Check a file for spec, body and
7423 sep. If there are several possibilities, choose the one with the
7426 2008-05-23 Vincent Celier <celier@adacore.com>
7428 * gnatlink.adb (Process_Args): Do not disable scanning of ALI file for
7429 back end switches when executable specified with --GCC= is same as
7430 default, even if there are additional options.
7433 Document when the back end switches from the ALI file are taken into
7434 account when gnatlink is invoked with --GCC=
7436 2008-05-23 Thomas Quinot <quinot@adacore.com>
7439 (copy_File): Do not open destination file if source file is unreadable.
7441 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
7443 * utils.c (handle_type_generic_attribute): Adjust to accept
7444 fixed arguments before an elipsis.
7446 2008-05-21 Thomas Quinot <quinot@adacore.com>
7448 * g-sothco.ads, g-sothco.adb: New files.
7450 2008-05-20 Thomas Quinot <quinot@adacore.com>
7452 * Makefile.rtl (GNAT.Sockets.Thin_Common): New unit.
7454 * g-sttsne-vxworks.adb: Add missing dependency on Sockets.Constants.
7455 Add missing "with" of Ada.Unchecked_Conversion
7457 * g-soccon-linux-ppc.ads, g-soccon-linux-64.ads, g-soccon-lynxos.ads,
7458 g-soccon-linux-x86.ads, g-soccon-hpux-ia64.ads,
7459 g-soccon-solaris-64.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
7460 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
7461 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
7462 g-socthi-vxworks.adb, g-soccon-freebsd.ads, g-soccon.ads:
7463 Move common code out of GNAT.Sockets.Thin implementations and into
7465 New constant SIZEOF_fd_set
7466 New flag Has_Sockaddr_Len
7467 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
7469 * g-stsifd-sockets.adb
7470 (Create): Remove call to Set_Length; use Set_Family to set the family
7471 and (on appropriate platforms) length fields in struct sockaddr.
7473 * g-socthi.adb, g-socthi.ads, g-socthi-vms.ads, g-socthi-vms.adb,
7474 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.adb,
7475 g-soccon-darwin.ads, g-soccon-darwin.ads: New constant SIZEOF_fd_set
7476 Move common code out of GNAT.Sockets.Thin implementations and into
7479 * g-socket.ads, g-socket.adb:
7480 Move common code out of GNAT.Sockets.Thin implementations and into
7482 (Connect_Socket, Accept_Socket): Provide new versions of these two
7483 routines that operate with a user specified timeout.
7484 (Bind_Socket, Connect_Socket, Send_Socket): Remove calls to Set_Length,
7485 this is now handled automatically by Set_Family on platforms that
7489 Move common code out of GNAT.Sockets.Thin implementations and into
7491 (SIZEOF_sockaddr_in6): On platforms where IPv6 is not supported, define
7492 this constant to 0 (not -1) because we use it to initialize an
7493 unsigned_char value.
7494 Align values for numeric constants only.
7495 Handle the case of systems that do not support AF_INET6.
7496 New constant SIZEOF_fd_set
7497 New flag Has_Sockaddr_Len
7498 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
7500 * gsocket.h: New flag Has_Sockaddr_Len
7501 New constants SIZEOF_sockaddr_in, SIZEOF_sockaddr_in6
7503 2008-05-20 Santiago Uruena <uruena@adacore.com>
7505 * i-cobol.ads: Interfaces.COBOL should be preelaborate.
7507 2008-05-20 Arnaud Charlet <charlet@adacore.com>
7509 * s-linux-hppa.ads (atomic_lock_t): Put back proper alignment now that
7510 the underlying issue with malloc/free has been fixed. Remove associated
7513 Related to PR ada/24533
7515 2008-05-20 Robert Dewar <dewar@adacore.com>
7517 * ali.adb: Correct casing of ASCII.NUL
7519 * styleg-c.adb (Check_Identifier): Handle case of names in ASCII
7522 2008-05-20 Robert Dewar <dewar@adacore.com>
7523 Gary Dismukes <dismukes@adacore.com>
7525 * checks.adb (Apply_Arithmetic_Overflow_Check): Avoid intermediate
7526 overflow if result converted to wider integer type.
7527 (Apply_Type_Conversion_Checks): Don't emit checks on conversions to
7528 discriminated types when discriminant checks are suppressed.
7530 2008-05-20 Vincent Celier <celier@adacore.com>
7532 * cstand.adb (Print_Standard): Issue the correct Size clause for type
7533 Wide_Wide_Character.
7535 2008-05-20 Tristan Gingold <gingold@adacore.com>
7537 * decl.c: Do not emit a variable for a object that has an address
7538 representation clause whose value is known at compile time.
7539 When a variable has an address clause whose value is known at compile
7540 time, refer to this variable by using directly the address instead of
7541 dereferencing a pointer.
7543 2008-05-20 Robert Dewar <dewar@adacore.com>
7546 * einfo.ads, einfo.adb (Non_Binary_Modulus): Applies to all types and
7547 subtypes, always False for non-modular types.
7548 Shared_Var_Assign_Proc (node22) and Shared_Var_Read_Proc (node 15)
7549 entry nodes have been replaced by Shared_Var_Procs_Instance (node22)
7550 for Shared_Storage package.
7551 (Is_RACW_Stub_Type): New entity flag.
7554 (Expand_N_Op_Expon): Avoid incorrect optimization of a*(2**b) in the
7555 case where we have a modular type with a non-binary modules.
7556 Comments reformattings.
7558 * sem_intr.adb: Simplify code not that Non_Binary_Modulus applies to
7561 2008-05-20 Javier Miranda <miranda@adacore.com>
7564 (Build_Record_Aggr_Code): Fix wrong tests checking progenitors. Previous
7565 tests did not covered the case in which the type of the aggregate has
7566 no progenitors but some its parents has progenitors.
7568 2008-05-20 Gary Dismukes <dismukes@adacore.com>
7569 Hristian Kirtchev <kirtchev@adacore.com>
7572 (Expand_N_Object_Declaration): Correct the condition which triggers the
7573 generation of a call to Displace when initializing a class-wide object.
7574 (Build_Dcheck_Functions): Build discriminant-checking for null variants
7575 when Frontend_Layout_On_Target is true to ensure that they're available
7576 for calling when a record variant size function is built in Layout.
7578 2008-05-20 Ed Schonberg <schonberg@adacore.com>
7580 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
7581 procedure for a derived type retrieve the discriminant values from the
7582 parent using the corresponding discriminant.
7583 (Expand_N_Assignment_Statement): Skip generation of implicit
7584 if-statement associated with controlled types if we are
7585 compiling with restriction No_Finalization.
7587 2008-05-20 Vincent Celier <celier@adacore.com>
7589 * prj.adb (Hash (Project_Id)): New function
7590 (Project_Empty): Add new component Interfaces_Defined
7592 * prj.ads (Source_Data): New component Object_Linked
7593 (Language_Config): New components Object_Generated and Objects_Linked
7594 (Hash (Project_Id)): New function
7595 (Source_Data): New Boolean components In_Interfaces and
7596 Declared_In_Interfaces.
7597 (Project_Data): New Boolean component Interfaces_Defined
7600 New project level attribute Object_Generated and Objects_Linked
7601 Add new project level attribute Interfaces
7603 * prj-dect.adb: Use functions Present and No throughout
7604 (Parse_Variable_Declaration): If a string type is specified as a simple
7605 name and is not found in the current project, look for it also in the
7606 ancestors of the project.
7609 Replace procedure Make with procedures Initialize, Process and Finalize
7610 to implement H414-023: process different directories with different
7612 Use functions Present and No throughout
7615 Replace procedure Make with procedures Initialize, Process and Finalize
7618 (Add_Source): Set component Object_Exists and Object_Linked accordnig to
7619 the language configuration.
7620 (Process_Project_Level_Array_Attributes): Process new attributes
7621 Object_Generated and Object_Linked.
7622 (Report_No_Sources): New Boolean parameter Continuation, defaulted to
7623 False, to indicate that the erreor/warning is a continuation.
7624 (Check): Call Report_No_Sources with Contnuation = True after the first
7626 (Error_Msg): Process successively contnuation character and warning
7628 (Find_Explicit_Sources): Check that all declared sources have been found
7629 (Check_File): Indicate in hash table Source_Names when a declared source
7631 (Check_File): Set Other_Part when found
7632 (Find_Explicit_Sources): In multi language mode, check if all exceptions
7633 to the naming scheme have been found. For Ada, report an error if an
7634 exception has not been found. Otherwise, disregard the exception.
7635 (Check_Interfaces): New procedure
7636 (Add_Source): When Other_Part is defined, set mutual pointers in spec
7638 (Check): In multi-language mode, call Check_Interfaces
7639 (Process_Sources_In_Multi_Language_Mode): Set In_Interfaces to False
7640 for an excluded source.
7641 (Remove_Source): A source replacing a source in the interfaces is also
7644 * prj-pars.adb: Use function Present
7646 * prj-part.adb: Use functions Present and No throughout
7647 (Parse_Single_Project): Set the parent project for child projects
7648 (Create_Virtual_Extending_Project): Register project with no qualifier
7649 (Parse_Single_Project): Allow an abstract project to be extend several
7650 times. Do not allow an abstract project to extend a non abstract
7653 * prj-pp.adb: Use functions Present and No throughout
7654 (Print): Take into account the full associative array attribute
7657 * prj-proc.adb: Use functions Present and No throughout
7658 (Expression): Call itself with the same From_Project_Node for the
7659 default value of an external reference.
7661 * prj-strt.adb: Use functions Present and No throughout
7662 (Parse_Variable_Reference): If a variable is specified as a simple name
7663 and is not found in the current project, look for it also in the
7664 ancestors of the project.
7666 * prj-tree.ads, prj-tree.adb (Present): New function
7668 Use functions Present and No throughout
7669 (Parent_Project_Of): New function
7670 (Set_Parent_Project_Of): New procedure
7672 * snames.ads, snames.adb:
7673 Add new standard names Object_Generated and Objects_Linked
7675 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
7677 * exp_ch6.adb (Expand_Call): Add guard to ensure that both the parent
7678 and the derived type are of the same kind.
7679 (Expand_Call): Generate type conversions for actuals of
7680 record or array types when the parent and the derived types differ in
7681 size and/or packed status.
7683 2008-05-20 Javier Miranda <miranda@adacore.com>
7684 Ed Schonberg <schonberg@adacore.com>
7686 * exp_disp.adb (Make_DT, Make_Secondary_DT, Make_Tags): Avoid
7687 generating dispatch tables of locally defined tagged types statically.
7688 Remove implicit if-statement that is no longer required.
7689 (Expand_Dispatching_Call): If this is a call to an instance of the
7690 generic dispatching constructor, the type of the first argument may be
7691 a subtype of Tag, so always use the base type to recognize this case.
7693 2008-05-20 Thomas Quinot <quinot@adacore.com>
7696 (GARLIC_Support.Add_RACW_Read_Attribute): When a zero value is received,
7697 and the RACW is null-excluding, raise CONSTRAINT_ERROR instead of
7698 assigning NULL into the result, to avoid a spurious warning.
7699 (Add_RACW_Features, case Same_Scope): Add assertion that designated type
7701 (Add_Stub_Type): Set entity flag Is_RACW_Stub_Type on generated stub
7703 (Build_From_Any_Function, Build_To_Any_Function,
7704 Build_TypeCode_Function): For a type that has user-specified stream
7705 attributes, use an opaque sequence of octets as the representation.
7707 2008-05-20 Kevin Pouget <pouget@adacore.com>
7709 * exp_smem.ads, exp_smem.adb: Construction of access and assign
7710 routines has been replaced by an instantiation of
7711 System.Shared_Storage.Shared_Var_Procs generic package, while expanding
7712 shared variable declaration.
7713 Calls to access and assign routines have been replaced by calls to
7714 Read/Write routines of System.Shared_Storage.Shared_Var_Procs
7715 instantiated package.
7717 * rtsfind.ads: RE_Shared_Var_Procs entry has been added in RE_Unit_Table
7718 It identifies the new generic package added in s-shasto.
7720 * s-shasto.adb, s-shasto.ads: A new generic package has been added, it
7721 is instantiated for each shared passive variable. It provides
7722 supporting procedures called upon each read or write access by the
7726 For this runtime unit (always compiled in GNAT mode), we allow
7727 stream attributes references for limited types for the case where
7728 shared passive objects are implemented using stream attributes,
7729 which is the default in GNAT's persistent storage implementation.
7731 2008-05-20 Ed Schonberg <schonberg@adacore.com>
7734 (Freeze_Enumeration_Type): For a subtype that inherits a foreign
7735 convention from its base type, do not set the type to that of integer,
7736 because it may inherit a size clause.
7737 Warn on a size clause with a size different
7738 from that of Integer, if the type has convention C.
7740 2008-05-20 Vincent Celier <celier@adacore.com>
7743 (Scan_Args): Rewrite to take into account new switch --and to separate
7744 arguments into sections.
7745 (Gnatname): Call Prj.Makr.Initialize, then Prj.Makr.Process for each
7746 section, then Finalize.
7748 2008-05-20 Tristan Gingold <gingold@adacore.com>
7750 * init.c: Enable stack probing on ppc-linux.
7752 * tracebak.c: Add symbolic traceback for ppc-linux.
7754 * system-linux-ppc.ads: Enable stack probing on ppc-linux.
7756 2008-05-20 Arnaud Charlet <charlet@adacore.com>
7759 (common-tools): New rule, to avoid parallel build failure on gnat tools.
7760 Reenable parallel builds on this Makefile.
7762 * Make-lang.in: Update dependencies.
7764 2008-05-20 Robert Dewar <dewar@adacore.com>
7766 * opt.ads (Treat_Restrictions_As_Warnings): New switch
7768 * sem_prag.adb, par-prag.adb, restrict.ads: Implement flag
7769 Treat_Restrictions_As_Warnings.
7771 * switch-c.adb: Recognize new switch -gnatr
7773 * usage.adb: Add line for -gnatr
7775 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
7778 (P_Access_Definition): Change the error message when parsing "access
7779 all" in Ada 95 mode. The message no longer forces the user to recompile
7780 in 05 mode only to discover that anonymous access types are not allowed
7783 2008-05-20 Hristian Kirtchev <kirtchev@adacore.com>
7786 (P_Protected): Update the error message on missing "-gnat05" switch when
7787 using interfaces in conjunction with protected types. Remove the
7788 incorrect error message associated with the presence of "private" after
7791 2008-05-20 Ed Schonberg <schonberg@adacore.com>
7793 * sem_aggr.adb: Update comments.
7794 Improve previous change for PR ada/17985
7796 2008-05-20 Thomas Quinot <quinot@adacore.com>
7799 (Set_Categorization_From_Scope): Do not set In_Remote_Types unless in
7800 the visible part of the spec of a remote types unit.
7801 (Validate_Remote_Access_Object_Type_Declaration):
7802 New local subprogram Is_Valid_Remote_Object_Type, replaces
7803 Is_Recursively_Limited_Private.
7804 (Validate_RACW_Primitives): Enforce E.2.2(14) rules: the types of all
7805 non-controlling formals (and the return type, even though this is not
7806 explicit in the standard) must support external streaming.
7807 (Validate_RCI_Subprogram_Declaration): Enforce E.2.3(14) rules: same
7808 as above for of RAS types and RCI subprograms. (The return type is not
7810 Update comments related to RACWs designating limited interfaces per
7811 ARG ruling on AI05-060.
7813 * sem_util.ads, sem_util.adb
7814 (Is_Remote_Access_To_Class_Wide_Type): Only rely on Is_Remote_Types and
7815 Is_Remote_Call_Interface to identify RACW types in a stable and
7816 consistent way. We used to rely in this predicate on the privateness of
7817 the designated type and its ancestors, but depending on the currently
7818 visible private parts, this caused false negatives. We now uniformly
7819 rely on checks made at the point where the RACW type is declared.
7820 (Inspect_Deferred_Constant_Completion): Moved from Sem_Ch7.
7822 2008-05-20 Javier Miranda <miranda@adacore.com>
7823 Ed Schonberg <schonberg@adacore.com>
7824 Hristian Kirtchev <kirtchev@adacore.com>
7827 (Analyze_Object_Declaration): Fix over-conservative condition
7828 restricting use of predefined assignment with tagged types that have
7830 (Analyze_Object_Declaration): Relax the check regarding deferred
7831 constants declared in scopes other than packages since they can be
7832 completed with pragma Import.
7833 Add missing escaping of all-caps word 'CPP' in error messages.
7834 (Build_Discriminated_Subtype): Do not inherit representation clauses
7835 from parent type if subtype already carries them, because they are
7836 inherited earlier during derivation and already include those that may
7837 come from a partial view.
7839 * sem_ch9.adb, sem_ch5.adb, sem_ch6.adb (Analyze_Subprogram_Body):
7840 Check the declarations of a subprogram body for proper deferred
7841 constant completion.
7843 * sem_ch7.ads, sem_ch7.adb
7844 (Inspect_Deferred_Constant_Completion): Moved to sem_util.
7846 2008-05-20 Ed Schonberg <schonberg@adacore.com>
7847 Thomas Quinot <quinot@adacore.com>
7850 (Try_Indexed_Call): Handle properly a construct of the form F(S) where
7851 F is a parameterless function that returns an array, and S is a subtype
7853 (Analyze_Call): Insert dereference when the prefix is a parameterless
7854 function that returns an access to subprogram and the call has
7856 Reject a non-overloaded call whose name resolves to denote
7857 a primitive operation of the stub type generated to support a remote
7858 access-to-class-wide type.
7860 2008-05-20 Ed Schonberg <schonberg@adacore.com>
7863 (Note_Redundant_Use): Diagnose a redundant use within a subprogram body
7864 when there is a use clause for the same entity in the context.
7865 (Analyze_Subprogram_Renaming): A renaming_as_body is legal if it is
7866 created for a stream attribute of an abstract type or interface type.
7868 2008-05-20 Thomas Quinot <quinot@adacore.com>
7870 * sem_dist.ads, sem_dist.adb (Is_RACW_Stub_Type_Operation): New
7874 (Add_One_Interp): Ignore any interpretation that is a primitive
7875 operation of an RACW stub type (these primitives are only executed
7876 through dispatching, never through static calls).
7877 (Collect_Interps): When only one interpretation has been found, set N's
7878 Entity and Etype to that interpretation, otherwise Entity and Etype may
7879 still refer to an interpretation that was ignored by Add_One_Interp,
7880 in which case would end up with being marked as not overloaded but with
7881 an Entity attribute not pointing to its (unique) correct interpretation.
7883 2008-05-20 Ed Schonberg <schonberg@adacore.com>
7886 (Eval_Slice): Warn when a slice whose discrete range is a subtype name
7887 denotes the whole array of its prefix.
7889 2008-05-20 Robert Dewar <dewar@adacore.com>
7891 * sem_res.adb (Resolve_Op_Not): Warn on double negation
7893 2008-05-20 Ed Schonberg <schonberg@adacore.com>
7896 (Print_Itype): Do not modify the sloc of the component type of a
7897 (packed) array itype, because it is an unrelated type whose source
7898 location is independent of the point of creation of the itype itself.
7900 2008-05-20 Thomas Quinot <quinot@adacore.com>
7902 * uintp.adb, urealp.adb: Replace calls to Increment_Last + Set with
7905 2008-05-20 Robert Dewar <dewar@adacore.com>
7906 Vincent Celier <celier@adacore.com>
7908 * vms_data.ads: Add entry for -gnatr
7909 Put GNAT SYNC section in proper alpha order
7910 Add VMS qualifier /DISPLAY_PROGRESS equivalent to gnatmake switch -d
7912 * gnat_ugn.texi: Add documentation for new gnatname switch --and
7913 Update the style checks section
7914 Add documentation of -gnatr
7915 Add to the "Adding the Results of Compiler Checks to gnatcheck Output"
7916 subsection the explanation how compiler checks should be disabled for
7918 Update the list of Ada 95 reserved words used by in the project language
7919 Add documentation for project qualifiers.
7920 Document that abstract projects may be extended by different projects in
7921 the same project tree.
7922 Add documentation for gnatmake switch -d
7924 * ug_words: Add -gnatyy VMS equivalence string.
7925 Add entry for -gnatr
7927 2008-05-20 Bob Duff <duff@adacore.com>
7930 (Set_Handler): Remove code from both of these that implements
7931 RM-D.15(15/2), because it causes a race condition and potential
7933 (Process_Queued_Events): Add comment explaining "exception when others
7934 => null". Add clarifying ".all", even though implicit .all is legal
7937 2008-05-20 Arnaud Charlet <charlet@adacore.com>
7939 * s-winext.ads: Replace representation clause by pragma Pack. Gives
7940 equivalent representation, but has the advantage of allowing
7941 compilation of this file under 64 bits platforms.
7943 * s-os_lib.adb (Normalize_Pathname): Mark Cur_Dir constant.
7945 * s-osinte-irix.ads: (Alternate_Stack_Size): Add dummy declaration.
7948 Don't define dummy implementation of convert_addresses on ppc-linux.
7950 2008-05-20 Ed Schonberg <schonberg@adacore.com>
7953 (Expand_Ctrl_Function_Call): Do not attach result to finalization list
7954 if expression is aggregate component.
7956 2008-05-20 Robert Dewar <dewar@adacore.com>
7958 * g-byorma.adb, gnatlink.adb, prepcomp.adb, sinfo.ads,
7959 sem_ch12.adb: Update comments. Minor reformatting.
7963 * s-unstyp.ads: Fixed some typos in comments.
7965 2008-05-20 Arnaud Charlet <charlet@adacore.com>
7967 * s-taspri-vxworks.ads (Task_Address, Task_Address_Size): New
7970 * g-socthi-vxworks.ads: Update to latest socket changes.
7972 * a-caldel-vms.adb: Resync with a-caldel spec.
7974 * exp_ch9.ads, sem_ch8.ads, inline.adb: Minor reformatting.
7977 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
7979 * trans.c (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Account
7980 for dummy types pointed to by the converted pointer types.
7982 2008-05-15 Eric Botcazou <ebotcazou@adacore.com>
7984 * trans.c (add_decl_expr): At toplevel, mark the TYPE_ADA_SIZE field
7985 of records and unions.
7986 (gnat_to_gnu) <N_Validate_Unchecked_Conversion>: Fix formatting.
7988 2008-05-14 Samuel Tardieu <sam@rfc1149.net>
7989 Robert Dewar <dewar@adacore.com>
7991 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Add
7992 restrictions to the prefix of 'Old.
7993 * sem_util.ads, sem_util.adb (In_Parameter_Specification): New.
7994 * gnat_rm.texi ('Old): Note that 'Old cannot be applied to local
7997 2008-05-13 Eric Botcazou <ebotcazou@adacore.com>
8001 * utils.c (convert) <INTEGER_TYPE>: When converting an additive
8002 expression to an integral type with lower precision, use NOP_EXPR
8003 directly in a couple of special cases.
8005 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
8006 Ed Schonberg <schonberg@adacore.com>
8008 * sem_ch3.adb (Build_Derived_Record_Type): Accept statically matching
8009 constraint expressions.
8011 2008-05-12 Tomas Bily <tbily@suse.cz>
8013 * utils2.c (known_alignment, contains_save_expr_p)
8014 (gnat_mark_addressable): Use CASE_CONVERT.
8015 * decl.c (annotate_value): Likewise.
8016 * trans.c (maybe_stabilize_reference): Likewise.
8017 * utils2.c (build_binary_op): Use CONVERT_EXPR_P.
8018 * utils.c (rest_of_record_type_compilation): Likewise.
8019 * trans.c (protect_multiple_eval, Attribute_to_gnu)
8020 (protect_multiple_eval): Likewise.
8022 2008-05-08 Andreas Schwab <schwab@suse.de>
8024 * utils.c (handle_pure_attribute, init_gigi_decls): Rename
8025 DECL_IS_PURE to DECL_PURE_P.
8027 2008-05-05 Eric Botcazou <ebotcazou@adacore.com>
8029 * decl.c (maybe_pad_type): Add ??? comment.
8031 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
8033 * decl.c (components_to_record): Zero the alignment of the qualified
8034 union built for the variant part upon creating it.
8036 2008-05-03 Eric Botcazou <ebotcazou@adacore.com>
8038 * decl.c (maybe_pad_type): Try to get a form of the type with integral
8039 mode even if the alignment is not a factor of the original size. But
8040 make sure to create the inner field with the original size. Reorder.
8041 * trans.c (addressable_p) <COMPONENT_REF>: Treat the field of a padding
8042 record as always addressable.
8043 * utils.c (convert): Deal specially with conversions between original
8044 and packable versions of a record type.
8045 * utils2.c (build_binary_op) <MODIFY_EXPR>: Be more restrictive when
8046 recognizing an assignment between padded objects.
8048 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
8050 * decl.c (make_packable_type): Resize the last component to its RM size
8051 only if it is of an aggregate type.
8052 * trans.c (call_to_gnu): Fix nit in comment.
8053 (gnat_to_gnu): Likewise.
8055 2008-04-30 Samuel Tardieu <sam@rfc1149.net>
8057 * Makefile.in: Adapt sh4-linux target.
8059 2008-04-29 Ed Schonberg <schonberg@adacore.com>
8062 * sem_ch3.adb (Find_Type_Name): Refuse completion of an incomplete
8063 tagged type by an untagged protected or task type.
8065 2008-04-28 Eric Botcazou <ebotcazou@adacore.com>
8066 Tristan Gingold <gingold@adacore.com>
8069 * decl.c (gnat_to_gnu_entity) <object>: Do not promote alignment
8070 of aliased objects with an unconstrained nominal subtype.
8071 Cap the promotion to the effective alignment of the word mode.
8073 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8075 * Make-lang.in (ada.tags, check-acats, ada/treeprs.ads)
8076 (ada/einfo.h, ada/sinfo.h, ada/nmake.adb, ada/nmake.ads):
8077 Use '&&' instead of ';'.
8079 2008-04-24 Olivier Hainque <hainque@adacore.com>
8081 * trans.c (Attribute_to_gnu) <case Attr_Length>: Length computation
8082 doesn't require signed arithmetic anymore.
8084 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
8086 * trans.c (Attribute_to_gnu): Don't set TREE_INVARIANT.
8087 (call_to_gnu): Don't set TREE_INVARIANT.
8088 * utils2.c (gnat_build_constructor): Don't set TREE_INVARIANT.
8090 2008-04-22 Joel Sherrill <joel.sherrill@oarcorp.com>
8092 * s-osinte-rtems.adb: Add sigalstack function.
8093 * s-osinte-rtems.ads: Add SO_ONSTACK and sigalstack
8094 function. Add Alternate_Stack and Alternate_Stack_Size.
8095 Add missing process_shared field to pthread_condattr_t
8096 and change ss_low_priority to int from timespec.
8098 2008-04-22 Samuel Tardieu <sam@rfc1149.net>
8100 * i-forbla.adb: Link against -llapack and -lblas by default
8101 instead of the private -lgnalasup.
8103 2008-04-21 Olivier Hainque <hainque@adacore.com>
8105 Access to most C builtins from Ada
8106 * utils.c: #include "langhooks.h" and define GCC_DIAG_STYLE.
8107 (handle_pure_attribute, handle_novops_attribute,
8108 handle_nonnull_attribute, handle_sentinel_attribute,
8109 handle_noreturn_attribute, handle_malloc_attribute,
8110 handle_type_generic_attribute): New attribute handlers, from C fe.
8111 (gnat_internal_attribute_table): Map the new handlers.
8112 (gnat_init_decl_processing): Move call to gnat_install_builtins to ...
8113 (init_gigi_decls): ... here.
8114 (handle_const_attribute, handle_nothrow_attribute, builtin_decl_for):
8115 Move to a section dedicated to builtins processing.
8116 (build_void_list_node, builtin_type_for_size): New functions.
8117 (def_fn_type, get_nonnull_operand): Likewise.
8118 (install_builtin_elementary_type, install_builtin_function_types,
8119 install_builtin_attributes): Likewise.
8120 (fake_attribute_handler): Fake handler for attributes we don't
8122 (def_builtin_1): New function, worker for DEF_BUILTIN.
8123 (install_builtin_functions): New function.
8124 (gnat_install_builtins): Move to the builtins processing section.
8125 Now calling the newly introduced installers.
8127 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
8129 * decl.c (gnat_to_gnu_entity) <object>: Also promote the alignment of
8130 constant objects, but not exceptions.
8131 * trans.c (add_decl_expr): Use gnat_types_compatible_p for type
8133 * utils.c (create_var_decl_1): Likewise.
8134 * utils2.c (build_binary_op) <MODIFY_EXPR>: Also use the padded view of
8135 the type when copying to padded object and the source is a constructor.
8137 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
8139 * decl.c (gnat_to_gnu_entity) <object>: When trying to promote the
8140 alignment, reset it to zero if it would end up not being greater
8141 than that of the type.
8143 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
8145 * decl.c (maybe_pad_type): Only generate the XVS parallel type if
8146 the padded type has a variable size.
8148 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
8150 * decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Use the return by
8151 target pointer mechanism as soon as the size is not constant.
8153 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
8155 * gigi.h (create_var_decl_1): Declare.
8156 (create_var_decl): Turn into a macro invoking create_var_decl_1.
8157 (create_true_var_decl): Likewise.
8158 * utils.c (create_var_decl_1): Make global and reorder parameters.
8159 (create_var_decl): Delete.
8160 (create_true_var_decl): Likewise.
8162 2008-04-17 Eric Botcazou <ebotcazou@adacore.com>
8164 * decl.c (gnat_to_gnu_entity) <object>: Promote the alignment of
8166 * fe.h (Debug_Flag_Dot_A): Delete.
8167 * debug.adb (-gnatd.a): Update documentation.
8169 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
8171 * g-socket.ads, g-socket.adb (Get_Address): Make Stream a
8172 "not null" parameter.
8174 2008-04-17 Samuel Tardieu <sam@rfc1149.net>
8176 * g-socket.adb: Add a message "IPv6 not supported" to the
8177 Socket_Error exception.
8179 2008-04-16 Samuel Tardieu <sam@rfc1149.net>
8182 * sem_ch12.adb (Instantiate_Type): Check whether the full view of
8183 the type is known instead of the underlying type.
8185 2008-04-15 Ed Schonberg <schonberg@adacore.com>
8188 * exp_ch5.adb (Expand_Assign_Record): Within an initialization
8189 procedure for a derived type retrieve the discriminant values from
8190 the parent using the corresponding discriminant.
8192 2008-04-15 Samuel Tardieu <sam@rfc1149.net>
8193 Gary Dismukes <dismukes@adacore.com>
8196 * sem_ch8.adb (Analyze_Use_Package): Do not allow "use" of something
8197 which is not an entity (and hence not a package).
8198 (End_Use_Package): Ditto.
8200 2008-04-15 Ed Schonberg <schonberg@adacore.com>
8203 * sem_ch12.adb (Analyze_Formal_Subprogram): The default can be any
8204 protected operation that matches the signature, not only an entry, a
8205 regular subprogram or a literal.
8207 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
8209 * ada-tree.h (DECL_BY_COMPONENT_PTR_P): Use DECL_LANG_FLAG_3.
8210 * decl.c (gnat_to_gnu_entity) <object>: Call maybe_pad_type only
8211 if a size or alignment is specified. Do not take into account
8212 alignment promotions for the computation of the object's size.
8213 <type>: Call maybe_pad_type only if a size or alignment is specified.
8214 (maybe_pad_type): Really reuse the RM_Size of the original type if
8216 * trans.c (Attribute_to_gnu): Fix a couple of nits.
8217 * utils2.c (build_binary_op) <MODIFY_EXPR>: Merge related conditional
8218 statements. Use the padded view of the type when copying between
8219 padded objects of the same underlying type.
8221 2008-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8223 * vms_data.ads: Fix typo in constant.
8224 * gen-soccon.c: Fix typo in error string.
8225 * gnat_rm.texi (Pragma Optimize_Alignment, Pragma Postcondition):
8227 * a-calcon.ads, a-calend-vms.adb, a-calend.adb, a-crdlli.ads,
8228 bcheck.adb, checks.adb, einfo.ads, errout.adb, erroutc.adb,
8229 erroutc.ads, exp_attr.adb, exp_ch11.adb, exp_ch2.adb,
8230 exp_ch5.adb, exp_ch9.adb, exp_ch9.ads, exp_pakd.adb,
8231 exp_util.adb, fmap.adb, g-soccon-linux-mips.ads,
8232 g-soccon-rtems.ads, g-timsta.adb, g-timsta.ads, lib-writ.ads,
8233 mlib-tgt-specific-linux.adb, mlib-tgt-specific-tru64.adb,
8234 s-interr-vxworks.adb, s-interr.adb, s-osinte-lynxos.ads,
8235 s-rident.ads, s-taprop-solaris.adb, s-tassta.adb, s-win32.ads,
8236 sem_aggr.adb, sem_attr.ads, sem_ch10.adb, sem_ch13.ads,
8237 sem_ch3.adb, sem_ch6.adb, sem_ch7.adb, sem_ch8.adb, sem_ch9.adb,
8238 sem_prag.ads, sem_res.adb, sem_util.adb, sem_util.ads,
8239 sinfo.ads: Fix typos in comments.
8241 2008-04-14 Robert Dewar <dewar@adacore.com>
8243 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Extend error
8244 to every non-object and change error message.
8246 2008-04-14 Robert Dewar <dewar@adacore.com>
8248 * sem_util.ads, sem_util.adb (In_Subprogram): Remove.
8249 * sem_attr.adb (Anayze_Attribute): Check for Current_Subprogram
8252 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
8255 * sem_prag.adb (Analyze_Pragma, Linker_Section case): Refuse to
8256 apply pragma Linker_Section on type.
8258 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
8261 * sem_prag.adb (Error_Pragma_Ref): New.
8262 (Process_Convention): Specialized message for non-local
8263 subprogram renaming. Detect the problem in homonyms as well.
8265 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
8268 * sem_util.ads, sem_util.adb (Denotes_Variable): New function.
8269 * sem_ch12.adb (Instantiate_Object): Use it.
8270 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Ensure that
8271 storage pool denotes a variable as per RM 13.11(15).
8273 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
8275 * sem_util.ads, sem_util.adb (In_Subprogram): New function.
8276 * sem_attr.adb (Analyze_Attribute, Attribute_Old case): Use it.
8278 2008-04-14 Rolf Ebert <rolf.ebert.gcc@gmx.de>
8281 * xgnatugn.adb (Put_Line): New procedure, ensuring Unix
8282 line endings even on non-Unix platforms.
8284 2008-04-14 Samuel Tardieu <sam@rfc1149.net>
8287 * xref_lib.adb (Parse_Identifier_Info): Correctly parse and ignore the
8288 renaming information.
8290 2008-04-13 Samuel Tardieu <sam@rfc1149.net>
8293 * sem_aggr.adb (Valid_Ancestor_Type): A type is not an ancestor of
8296 2008-04-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8298 * sfn_scan.adb, sfn_scan.ads, sinfo.ads,
8299 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput.ads,
8300 snames.ads, sprint.adb, stand.ads, stringt.ads,
8301 styleg.adb, styleg.ads, stylesw.adb, stylesw.ads,
8302 switch.ads, sysdep.c, table.adb, table.ads,
8303 targparm.ads, tb-gcc.c, tbuild.ads, tracebak.c,
8304 trans.c, tree_io.adb, treepr.adb, types.adb, types.ads,
8305 uintp.adb, uintp.ads, utils.c, utils2.c, validsw.ads,
8306 vms_conv.adb, vms_conv.ads, vms_data.ads, widechar.adb,
8307 widechar.ads, xeinfo.adb, xgnatugn.adb, xr_tabls.adb,
8308 xr_tabls.ads, xref_lib.adb, xref_lib.ads, xsinfo.adb:
8311 * sem_ch10.adb, sem_ch10.ads,
8312 sem_ch12.adb, sem_ch12.ads, sem_ch13.adb, sem_ch13.ads,
8313 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
8314 sem_ch6.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
8315 sem_elab.adb, sem_elab.ads, sem_elim.ads, sem_eval.adb,
8316 sem_eval.ads, sem_intr.adb, sem_mech.adb, sem_mech.ads,
8317 sem_prag.adb, sem_prag.ads, sem_res.adb, sem_res.ads,
8318 sem_type.adb, sem_util.adb, sem_util.ads, sem_warn.adb,
8319 sem_warn.ads: Fix comment typos.
8321 * s-secsta.adb, s-sequio.ads, s-shasto.ads,
8322 s-soflin.ads, s-stalib.ads, s-stausa.adb,
8323 s-stausa.ads, s-strxdr.adb, s-taenca.adb, s-taenca.ads,
8324 s-taprob.adb, s-taprop-hpux-dce.adb, s-taprop-irix.adb,
8325 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-posix.adb,
8326 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
8327 s-taprop-vxworks.adb, s-taprop.ads, s-tarest.adb,
8328 s-tarest.ads, s-tasini.adb, s-tasini.ads, s-taskin.ads,
8329 s-tasque.ads, s-tassta.adb, s-tassta.ads, s-tasuti.ads,
8330 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
8331 s-tpopsp-posix.adb, s-tpopsp-rtems.adb, s-tposen.adb,
8332 s-tposen.ads, s-traceb-hpux.adb, s-traces.ads,
8333 s-trafor-default.ads, s-unstyp.ads, s-utf_32.ads,
8334 s-vaflop.adb, s-vaflop.ads, s-valrea.adb, s-valuti.adb,
8335 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, scans.ads,
8336 scn.adb, scng.adb, seh_init.c, sem.ads, sem_aggr.adb,
8337 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
8338 sem_cat.adb, sem_cat.ads: Fix comment typos.
8340 2008-04-12 Joel Sherrill <joel@oarcorp.com>
8343 * g-soccon-rtems.ads: Add IP_PKTINFO as unsupported.
8345 2008-04-12 Arnaud Charlet <charlet@adacore.com>
8347 * s-linux-hppa.ads: Fix syntax errors.
8349 2008-04-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8351 * gnat_ugn.texi: Fix typos.
8352 * raise-gcc.c, repinfo.adb, repinfo.ads, restrict.adb,
8353 restrict.ads, rtsfind.adb, rtsfind.ads, s-arit64.ads,
8354 s-asthan-vms-alpha.adb, s-auxdec.ads, s-casuti.ads,
8355 s-fatflt.ads, s-fatgen.adb, s-fatlfl.ads,
8356 s-fatllf.ads, s-fatsfl.ads, s-filofl.ads,
8357 s-finimp.adb, s-finroo.ads, s-fishfl.ads,
8358 s-fvadfl.ads, s-fvaffl.ads, s-fvagfl.ads,
8359 s-hibaen.ads, s-htable.ads, s-imgcha.adb,
8360 s-imgenu.ads, s-imgint.adb, s-imgrea.adb,
8361 s-inmaop-dummy.adb, s-inmaop.ads, s-interr-vms.adb,
8362 s-interr-vxworks.adb, s-interr.adb, s-interr.ads,
8363 s-intman-vxworks.ads, s-intman.ads, s-mastop-irix.adb,
8364 s-os_lib.adb, s-os_lib.ads, s-osinte-aix.ads,
8365 s-osinte-darwin.ads, s-osinte-freebsd.ads,
8366 s-osinte-hpux.ads, s-osinte-lynxos-3.adb,
8367 s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
8368 s-osinte-rtems.ads, s-osinte-solaris-posix.ads,
8369 s-osprim-mingw.adb, s-osprim-vms.adb, s-parame-ae653.ads,
8370 s-parame-hpux.ads, s-parame-vms-alpha.ads,
8371 s-parame-vms-ia64.ads, s-parame-vms-restrict.ads,
8372 s-parame-vxworks.ads, s-parame.ads, s-parint.adb,
8373 s-parint.ads, s-poosiz.adb, s-proinf-irix-athread.ads,
8374 s-proinf.ads, s-regexp.adb, s-regpat.adb, s-regpat.ads,
8375 s-rident.ads: Fix comment typos.
8377 2008-04-09 Samuel Tardieu <sam@rfc1149.net>
8380 * sem_ch6.adb (Build_Body_To_Inline): Do not save and restore
8381 environment if generic instance is a top-level one.
8383 2008-04-09 Doug Rupp <rupp@adacore.com>
8385 * decl.c (validate_size): Set minimum size for fat pointers same as
8386 access types. Code clean ups.
8388 * gmem.c (xstrdup32): New macro for 32bit dup on VMS, noop otherwise
8389 (__gnat_gmem_a2l_initialize): Dup exename into 32 bit memory on VMS
8391 * s-auxdec-vms_64.ads, s-auxdec.ads (Short_Address_Size): New constant
8393 * s-crtl.ads (malloc32) New function, alias for malloc
8394 (realloc32) New function, alias for realloc
8396 * socket.c (__gnat_new_socket_set): Malloc fd_set in 32 bits on VMS
8398 * utils2.c (build_call_alloc_dealloc): Return call to short malloc if
8399 allocator size is 32 and default pointer size is 64.
8400 (find_common_type): Document assumption on t1/t2 vs lhs/rhs. Force use of
8401 lhs type if smaller, whatever the modes.
8403 * gigi.h (malloc32_decl): New macro definition
8405 * utils.c (init_gigi_decls): New malloc32_decl
8406 Various code clean ups.
8408 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
8409 Task_Address vice System.Address.
8411 * s-taspri-vms.ads: Import System.Aux_DEC
8412 (Task_Address): New subtype of System.Aux_DEC.Short_Address
8413 (Task_Address_Size): New constant size of System.Aux_DEC.Short_Address
8415 * s-asthan-vms-alpha.adb (Process_AST.To_Address): Unchecked convert to
8416 Task_Address vice System.Address.
8418 * s-inmaop-vms.adb: Import System.Task_Primitives
8419 (To_Address): Unchecked convert to Task_Address vice System.Address
8421 * s-taprop-vms.adb (Timed_Delay): Always set the timer even if delay
8423 (To_Task_ID) Unchecked convert from Task_Adddress vice System.Address
8424 (To_Address) Unchecked convert to Task_Address vice System.Address
8426 * s-tpopde-vms.adb: Remove unnecessary warning pragmas
8428 * g-socthi-vms.ads: Add 32bit size clauses on socket access types.
8430 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
8432 * gigi.h (standard_datatypes): Add ADT_fdesc_type and ADT_null_fdesc.
8433 (fdesc_type_node): Define.
8434 (null_fdesc_node): Likewise.
8435 * decl.c (gnat_to_gnu_entity) <E_Access_Subprogram_Type>: If the target
8436 uses descriptors for vtables and the type comes from a dispatch table,
8437 return the descriptor type.
8438 * trans.c (Attribute_to_gnu) <Attr_Unrestricted_Access>: If the target
8439 uses descriptors for vtables and the type comes from a dispatch table,
8440 build a descriptor in the static case and copy the existing one in the
8442 (gnat_to_gnu) <N_Null>: If the target uses descriptors for vtables and
8443 the type is a pointer-to-subprogram coming from a dispatch table,
8444 return the null descriptor.
8445 <N_Unchecked_Type_Conversion>: If the target uses descriptors for
8446 vtables, the source type is the descriptor type and the target type
8447 is a pointer type, first build the pointer.
8448 * utils.c (init_gigi_decls): If the target uses descriptors for vtables
8449 build the descriptor type and the null descriptor.
8451 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
8453 * decl.c (prepend_attributes): Fix typo.
8454 * trans.c (Pragma_to_gnu): Likewise.
8455 * utils.c (gnat_genericize): Likewise.
8457 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
8458 Richard Kenner <kenner@adacore.com>
8460 * ada-tree.h (TYPE_PACKED_ARRAY_TYPE_P): Only set it when bit-packed.
8461 * decl.c (gnat_to_gnu_entity): Adjust for above change.
8462 <E_Record_Type>: Try to get a better form of the component for
8463 packing, even if it has an integral mode.
8464 <E_Record_Subtype>: Likewise.
8465 * trans.c (gnat_to_gnu): Do not require BLKmode for the special
8466 exception suppressing the final conversion between record types.
8468 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
8470 * decl.c (gnat_to_gnu_entity) <object>: If -gnatd.a and not optimizing
8471 alignment for space, promote the alignment of non-scalar variables with
8472 no size and alignment.
8473 * gigi.h (gnat_types_compatible_p): Declare.
8474 * misc.c (LANG_HOOKS_TYPES_COMPATIBLE_P): Set to above predicate.
8475 * trans.c (gnat_to_gnu): Revert revision 129339 change. Minor cleanup.
8476 * utils.c (gnat_types_compatible_p) : New predicate.
8477 (convert): Use it throughout to test for cases where a mere view
8478 conversion is sufficient.
8479 * utils2.c (build_binary_op): Minor tweaks.
8480 (build_unary_op): Likewise.
8482 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
8484 * decl.c (adjust_packed): Expand comment.
8486 2008-04-08 Arnaud Charlet <charlet@adacore.com>
8488 * s-tasuti.ads: Use Task_Address instead of System.Address.
8490 * makeutl.adb (Path_Or_File_Name): New function
8492 * nlists.ads, itypes.ads: Update comments.
8494 * s-crtl.ads (malloc32, realloc32): New functions.
8496 * s-auxdec.ads (Short_Address_Size): New constant.
8498 * a-taside.adb, s-tasdeb.adb: Use Task_Address.
8500 * s-ststop.ads, s-ststop.adb: New file.
8502 * exp_tss.ads, s-taprop-lynxos.adb: Update comments.
8505 2008-04-08 Pascal Obry <obry@adacore.com>
8507 * g-sercom.ads, g-sercom.adb (Data_Rate): Add B115200.
8508 (Stop_Bits_Number): New type.
8509 (Parity_Check): Likewise.
8510 (Set): Add parameter to set the number of stop bits and
8511 the parity. Parameter timeout is now a duration instead
8514 * g-sercom-linux.adb:
8515 Implement the stop bits and parity support for GNU/Linux.
8516 Fix handling of timeout, it must be given in tenth of seconds.
8518 * g-sercom-mingw.adb:
8519 Implement the stop bits and parity support for Windows.
8520 Use new s-win32.ads unit instead of declaring Win32 services
8521 directly into this body.
8522 Update handling of timeout as now a duration.
8524 * s-win32.ads, s-winext.ads: New files.
8526 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
8527 Arnaud Charlet <charlet@adacore.com>
8529 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads: Removed.
8531 s-taspri-posix-noaltstack.ads, s-linux.ads, s-linux-alpha.ads,
8532 s-linux-hppa.ads: New files. Disable alternate stack on ia64-hpux.
8534 * s-osinte-lynxos-3.ads,
8535 (Alternate_Stack): Remove when not needed. Simplify declaration
8537 (Alternate_Stack_Size): New constant.
8539 s-osinte-mingw.ads, s-taprop-mingw.adb: Code clean up: avoid use of
8540 'Unrestricted_Access.
8542 * s-osinte-hpux.ads, s-osinte-solaris-posix.ads, s-osinte-aix.ads,
8543 s-osinte-lynxos.ads, s-osinte-freebsd.ads s-osinte-darwin.ads,
8544 s-osinte-tru64.ads, s-osinte-irix.ads, s-osinte-linux.ads,
8545 s-osinte-solaris.ads, s-osinte-vms.ads
8546 (SA_ONSTACK): New constant.
8547 (stack_t): New record type.
8548 (sigaltstack): New imported function.
8549 (Alternate_Stack): New imported variable.
8550 (Alternate_Stack_Size): New constant.
8552 * system-linux-x86_64.ads: (Stack_Check_Probes): Set to True.
8554 * s-taspri-lynxos.ads, s-taspri-solaris.ads, s-taspri-tru64.ads,
8555 s-taspri-hpux-dce.ads, s-taspri-dummy.ads, s-taspri-posix.ads,
8556 s-taspri-vms.ads (Task_Address): New subtype of System.Address
8557 (Task_Address_Size): New constant size of System.Address
8558 (Alternate_Stack_Size): New constant.
8560 * s-taprop-posix.adb, s-taprop-linux.adb (Get_Stack_Attributes): Delete.
8561 (Enter_Task): Do not notify stack to System.Stack_Checking.Operations.
8562 Establish the alternate stack if the platform makes use of n alternate
8563 signal stack for stack overflows.
8564 (Create_Task): Take into account the alternate stack in the stack size.
8565 (Initialize): Save the address of the alternate stack into the ATCB for
8566 the environment task.
8567 (Create_Task): Fix assertions for NPTL library (vs old LinuxThreads).
8569 * s-parame.adb (Minimum_Stack_Size): Increase value to 16K
8571 * system-linux-x86.ads: (Stack_Check_Probes): Set to True.
8573 * s-intman-posix.adb:
8574 (Initialize): Set SA_ONSTACK for SIGSEGV if the platform makes use of an
8575 alternate signal stack for stack overflows.
8577 * init.c (__gnat_adjust_context_for_raise, Linux version): On i386 and
8578 x86-64, adjust the saved value of the stack pointer if the signal was
8579 raised by a stack checking probe.
8580 (HP-UX section): Use global __gnat_alternate_stack as signal handler
8581 stack and only for SIGSEGV.
8582 (Linux section): Likewise on x86 and x86-64.
8584 (__gnat_map_signal): Now static.
8585 (__gnat_error_handler): Not static any more.
8586 (__gnat_adjust_context_for_raise): New function. Signal context
8587 adjustment for PPC && !VTHREADS && !RTP, as required by the zcx
8588 propagation circuitry.
8589 (__gnat_error_handler): Second argument of a sigaction handler is a
8590 pointer, not an int, and is unused.
8591 Adjust signal context before mapping to exception.
8592 Install signal handlers for LynxOS case.
8594 * s-taskin.ads (Common_ATCB): New field Task_Alternate_Stack.
8595 (Task_Id): Set size to Task_Address_Size
8596 (To_Task_id): Unchecked convert from Task_Address vice System.Address
8597 (To_Address): Unchecked convert to Task_Address vice System.Address
8599 * s-tassta.adb (Task_Wrapper): Define the alternate stack and save its
8600 address into the ATCB if the platform makes use of an alternate signal
8601 stack for stack overflows.
8602 (Free_Task): Add call to Finalize_Attributes_Link.
8603 Add argument Relative_Deadline to pass the value specified for
8604 the task. This is not yet used for any target.
8606 * s-tassta.ads (Create_Task): Add argument Relative_Deadline to pass
8607 the value specified for the task.
8609 2008-04-08 Arnaud Charlet <charlet@adacore.com>
8611 (s-osinte-vxworks6.ads): Removed, merged with s-osinte-vxworks.ads/.adb
8612 (s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads,
8613 s-vxwext-rtp.adb): New files.
8615 * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-osinte-vxworks.adb:
8616 Minor updates to accomodate changes above.
8618 2008-04-08 Pascal Obry <obry@adacore.com>
8620 * a-exetim-mingw.adb, s-gloloc-mingw.adb, s-taprop-mingw.adb,
8621 s-tasinf-mingw.ad{s,b}, s-taspri-mingw.ads:
8622 Use new s-win32.ads unit instead of declaration
8623 from s-osinte-mingw.ads.
8625 * s-osinte-mingw.ads:
8626 Move all non tasking based interface to s-win32.ads.
8628 * s-osprim-mingw.adb:
8629 Remove duplicated declarations and use s-win32.ads
8632 2008-04-08 Vincent Celier <celier@adacore.com>
8633 Arnaud Charlet <charlet@adacore.com>
8635 * mlib-tgt-aix.adb, mlib-tgt-darwin.adb, mlib-tgt-hpux.adb,
8636 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-lynxos.adb,
8637 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
8638 mlib-tgt-vms.ads, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
8639 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb: Renamed into...
8641 * mlib-tgt-specific-aix.adb, mlib-tgt-specific-darwin.adb,
8642 mlib-tgt-specific-hpux.adb, mlib-tgt-specific-irix.adb,
8643 mlib-tgt-specific-linux.adb, mlib-tgt-specific-lynxos.adb,
8644 mlib-tgt-specific-solaris.adb, mlib-tgt-specific-tru64.adb,
8645 mlib-tgt-vms_common.adb, mlib-tgt-vms_common.ads,
8646 mlib-tgt-specific-vms-alpha.adb, mlib-tgt-specific-vms-ia64.adb,
8647 mlib-tgt-specific-vxworks.adb, mlib-tgt-specific-xi.adb,
8648 mlib-tgt-specific-mingw.adb: New names.
8651 On VxWorks platforms use s-stchop-limit.ads for s-stchop.ads
8653 (EXTRA_GNATRTL_NONTASKING_OBJS): Add s-win32.o
8654 Files mlib-tgt-*.adb have been renamed mlib-tgt-specific-*.adb
8655 Minor updates for VMS
8657 * gnatbl.c: Removed.
8659 2008-04-08 Thomas Quinot <quinot@adacore.com>
8661 * g-expect-vms.adb, a-textio.adb, a-witeio.adb, exp_dbug.adb,
8662 g-expect.adb, g-locfil.adb, gnatchop.adb, gnatdll.adb, gnatlbr.adb,
8663 gnatmem.adb, g-regist.adb, i-vxwork.ads, mlib-utl.adb, i-vxwork-x86.ads,
8664 a-ztexio.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-ia64.adb,
8665 s-os_lib.adb, s-regpat.adb, s-regpat.ads: Fix incorrect casing of
8666 ASCII.NUL throughout.
8668 2008-04-08 Arnaud Charlet <charlet@adacore.com>
8669 Matthew Heaney <heaney@adacore.com>
8671 * a-cgcaso.adb, a-convec.adb: (Swap, Sift): Avoid use of complex
8674 * a-cgaaso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads,
8675 a-crdlli.ads, a-coormu.ads, a-ciormu.ads: modified header to conform
8676 to convention for non-RM specs.
8677 Add descriptive header, and documented each operation
8678 document each operation
8680 2008-04-08 Robert Dewar <dewar@adacore.com>
8681 Bob Duff <duff@adacore.com>
8682 Gary Dismukes <dismukes@adacore.com>
8683 Ed Schonberg <schonberg@adacore.com>
8685 * alloc.ads: Add entries for Obsolescent_Warnings table
8687 * einfo.ads, einfo.adb: Minor reformatting.
8688 (Is_Discriminal): New subprogram.
8689 (Is_Prival): New subprogram.
8690 (Is_Protected_Component): New subprogram.
8691 (Is_Protected_Private): Removed.
8692 (Object_Ref, Set_Object_Ref): Removed.
8693 (Prival, Set_Prival): Change assertion.
8694 (Privals_Chain, Set_Privals_Chain): Removed.
8695 (Prival_Link, Set_Prival_Link): New subprogram.
8696 (Protected_Operation, Set_Protected_Operation): Removed.
8697 (Protection_Object, Set_Protection_Object): New subprogram.
8698 (Write_Field17_Name): Remove case for Object_Ref.
8699 (Write_Field20_Name): Add case for Prival_Link.
8700 (Write_Field22_Name): Remove case for Protected_Operation,
8702 Add case for Protection_Object.
8703 (Can_Use_Internal_Rep): Make this into a [base type only] attribute,
8705 (Overlays_Constant): New flag
8706 (Is_Constant_Object): New predicate
8707 (Is_Standard_Character_Type): New predicate
8708 (Optimize_Alignment_Space): New flag
8709 (Optimize_Alignment_Time): New flag
8710 (Has_Postconditions): New flag
8711 (Obsolescent_Warrning): Field removed
8712 (Spec_PPC_List): New field
8713 (Relative_Deadline_Variable, Set_Relative_Deadline_Variable): Add
8714 subprograms to get and set the relative deadline associated to a task.
8716 * exp_attr.adb (May_Be_External_Call): Account for the case where the
8717 Access attribute is part of a named parameter association.
8718 (Expand_Access_To_Protected_Op): Test for the attribute occurring
8719 within an init proc and use that directly as the scope rather than
8720 traversing up to the protected operation's enclosing scope. Only apply
8721 assertion on Is_Open_Scopes in the case the scope traversal is done.
8722 For the init proc case use the address of the first formal (_init) as
8723 the protected object reference.
8724 Implement Invalid_Value attribute
8725 (Expand_N_Attribute_Reference): Case Attribute_Unrestricted_Access.
8726 contents of the dispatch table there is no need to duplicate the
8727 itypes associated with record types (i.e. the implicit full view
8729 Implement Enum_Val attribute
8730 (Expand_N_Attribute_Reference, case Old): Properly handle appearence
8731 within _Postconditions procedure
8732 (Expand_N_Attribute_Reference, case Result): Implement new attribute
8734 * exp_ch5.adb (Expand_N_Simple_Return_Statement): Handle case in which
8735 a return statement calls a function that is not available in
8736 configurable runtime.
8737 (Analyze_If_Statement): don't optimize simple True/False cases in -O0
8738 (Expand_Non_Function_Return): Generate call to _Postconditions proc
8739 (Expand_Simple_Function_Return): Ditto
8741 * frontend.adb: Add call to Sem_Aux.Initialize
8743 * sem_aux.ads, sem_aux.adb: New file.
8745 * par-prag.adb: Add entries for pragmas Precondition/Postcondition
8746 Add new Pragma_Relative_Deadline.
8747 Add support for pragmas Check and Check_Policy
8749 * sem_attr.ads, sem_attr.adb (Check_Not_CPP_Type): New subprogram.
8750 (Check_Stream_Attribute): Add missing check (not allowed in CPP types)
8751 (Analyze_Attribute): In case of attributes 'Alignment and 'size add
8752 missing check because they are not allowed in CPP tagged types.
8753 Add Sure parameter to Note_Possible_Modification calls
8754 Add implementation of Invalid_Value attribute
8755 Implement new attribute Has_Tagged_Values
8756 Implement Enum_Val attribute
8757 (Analyze_Attribute, case Range): Set Name_Req True for prefix of
8758 generated attributes.
8759 (Analyze_Attribute, case Result): If prefix of the attribute is
8760 overloaded, it always resolves to the enclosing function.
8761 (Analyze_Attribute, case Result): Properly deal with analysis when
8762 Postconditions are not active.
8763 (Resolve_Attribute, case Result): Properly deal with appearence during
8764 preanalysis in spec.
8765 Add processing for attribute Result
8767 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Code cleanup
8769 (Analyze_Subprogram_Body): Install private_with_clauses when the body
8771 (Check_Inline_Pragma): recognize an inline pragma that appears within
8772 the subprogram body to which it applies.
8773 (Analyze_Function_Return): Check that type of the expression of a return
8774 statement in a function with a class-wide result is not declared at a
8775 deeper level than the function.
8776 (Process_PPCs): Deal with enabling/disabling, using PPC_Enabled flag
8777 (Verify_Overriding_Indicator): Handle properly subprogram bodies for
8778 user- defined operators.
8779 (Install_Formals): Moved to spec to allow use from Sem_Prag for
8780 analysis of precondition/postcondition pragmas.
8781 (Analyze_Subprogram_Body.Last_Real_Spec_Entity): New name for
8782 Last_Formal, along with lots of comments on what this is about
8783 (Analyze_Subprogram_Body): Fix case where we move entities from the
8784 spec to the body when there are no body entities (now possible with
8785 precondition and postcondition pragmas).
8786 (Process_PPCs): New procedure
8787 (Analyze_Subprogram_Body): Add call to Process_PPCs
8789 * sem_ch8.adb (Use_One_Type): refine warning on a redundant use_type
8791 (Pop_Scope): Restore Check_Policy_List on scope exit
8792 (Push_Scope): Save Check_Policy_List on scope entry
8793 Change name In_Default_Expression => In_Spec_Expression
8794 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
8795 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
8796 (Analyze_Object_Renaming): Allow 'Reference as object
8797 (Analyze_Pragma, case Restriction_Warnings): Call GNAT_Pragma
8798 (Process_Restrictions_Or_Restriction_Warnings): Check for bad spelling
8799 of restriction identifier.
8800 Add Sure parameter to Note_Possible_Modication calls
8802 * sem_prag.ads, sem_prag.adb (Analyze_Pragma, case Stream_Convert):
8803 Don't check for primitive operations when calling Rep_Item_Too_Late.
8804 (Process_Import_Or_Interface): Do not place flag on formal
8806 (Analyze_Pragma, case Export): If the entity is a deferred constant,
8807 propagate information to full view, which is the one elaborated by the
8809 (Make_Inline): the pragma is effective if it applies to an internally
8810 generated subprogram declaration for a body that carries the pragma.
8811 (Analyze_Pragma, case Optimize_Alignment): Set new flag
8812 Optimize_Alignment_Local.
8813 (Analyze_PPC_In_Decl_Part): New procedure
8814 (Get_Pragma_Arg): Moved to outer level
8815 (Check_Precondition_Postcondition): Change to allow new visibility
8816 rules for package spec
8817 (Analyze_Pragma, case Check_Policy): Change placement rules to be
8818 same as pragma Suppress/Unsuppress.
8819 Change name In_Default_Expression => In_Spec_Expression
8820 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
8821 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
8822 (Check_Precondition_Postcondition): Do proper visibility preanalysis
8823 for the case of these pragmas appearing in the spec.
8824 (Check_Enabled): New function
8825 (Initialize): New procedure
8826 (Tree_Read): New procedure
8827 (Tree_Write): New procedure
8828 (Check_Precondition_Postcondition): New procedure
8829 Implement pragmas Check and Check_Policy
8830 Merge Assert processing with Check
8832 * sem_warn.adb (Warn_On_Known_Condition): Handle pragma Check
8833 New warning flag -gnatw.e
8835 * sinfo.ads, sinfo.adb (Has_Relative_Deadline_Pragma): New function
8836 returning whether a task (or main procedure) has a pragma
8838 (Set_Has_Relative_Deadline_Pragma): Procedure to indicate that a task
8839 (or main procedure) has a pragma Relative_Deadline.
8840 Add Next_Pragma field to N_Pragma node
8841 (PPC_Enabled): New flag
8842 (Next_Pragma): Now used for Pre/Postcondition processing
8844 * snames.h, snames.ads, snames.adb: New standard name
8846 Add entry for 'Invalid_Value attribute
8847 Add entry for new attribute Has_Tagged_Values
8848 Add entry for Enum_Val attribute
8849 Add new standard names Aggregate, Configuration and Library.
8852 Add Pragma_Precondition
8853 Add Pragma_Postcondition
8854 Add Attribute_Result
8855 New standard name Archive_Builder_Append_Option
8856 (Preset_Names): Add _relative_deadline and relative_deadline definitions
8857 There was also a missing non_preemptive_within_priorities.
8858 (Get_Pragma_Id, Is_Pragma_Name): Add support for pragma
8860 Add support for pragmas Check and Check_Policy
8862 * tree_gen.adb: Call Sem_Aux.Tree_Write
8864 * tree_in.adb: Call Sem_Aux.Tree_Read
8866 * exp_ch11.adb (Expand_N_Raise_Statement): New Build_Location calling
8869 * exp_intr.adb (Expand_Source_Info): New Build_Location calling
8872 * exp_prag.adb (Expand_Pragma_Relative_Deadline): New procedure.
8873 (Expand_N_Pragma): Call the appropriate procedure for expanding pragma
8875 (Expand_Pragma_Check): New procedure
8877 * sinput.ads, sinput.adb (Build_Location_String): Now appends to name
8880 * sinfo.adb (PPC_Enabled): New flag
8882 2008-04-08 Robert Dewar <dewar@adacore.com>
8883 Gary Dismukes <dismukes@adacore.com>
8884 Javier Miranda <miranda@adacore.com>
8885 Ed Schonberg <schonberg@adacore.com>
8887 * fe.h: Remove global Optimize_Alignment flag, no longer used
8889 * layout.adb: Test Optimize_Alignment flags rather than global switch
8891 * lib.ads, lib.adb: New OA_Setting field in library record
8893 * lib-load.adb: New OA_Setting field in library record
8895 * lib-writ.ads, lib-writ.adb (Collect_Withs, Write_With_Lines): Place
8896 units mentioned in limited_with_ clauses in the ali file, with an
8898 New Ox fields in U line
8900 * opt.adb: New flag Optimize_Alignment_Local
8901 (Check_Policy_List[_Config]): New flags
8903 * opt.ads (Invalid_Value_Used): New flag
8904 New switch Optimize_Alignment_Local
8905 (Warn_On_Parameter_Order): New flag
8906 (Check_Policy_List[_Config]): New flags
8908 * ali.ads, ali.adb: Add indicator 'Y' to mark mark the presence of
8909 limited_with clauses.
8910 New data structures for Optimize_Alignment
8912 * bcheck.adb (Check_Consistent_Restriction_No_Default_Initialization):
8914 (Check_Consistent_Optimize_Alignment): Rework for new structure
8915 (Check_Consistent_Restrictions): Fix incorrect error message
8917 sem_ch10.adb (Decorate_Tagged_Type): Set the Parent field of a newly
8918 created class-wide type (to the Parent field of the specific type).
8919 (Install_Siblings): Handle properly private_with_clauses on subprogram
8920 bodies and on generic units.
8921 (Analyze_With_Clause, Install_Limited_Withed_Unit): Guard against an
8922 illegal limited_with_clause that names a non-existent package.
8923 (Check_Body_Required): Determine whether a unit named a limited_with
8924 clause needs a body.
8925 (Analyze_Context): A limited_with_clause is illegal on a unit_renaming.
8926 Capture Optimize_Alignment settings to set new OA_Setting field in
8928 (Build_Limited_Views): Include task and protected type declarations.
8930 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Handle the
8931 case of a possible constant redeclaration where the current object is
8932 an entry index constant.
8933 (Analyze_Object_Declaration): Generate an error in case of CPP
8934 class-wide object initialization.
8935 (Analyze_Object_Declaration): Add extra information on warnings for
8936 declaration of unconstrained objects.
8937 (Access_Type_Declaration): Set Associated_Final_Chain to Empty, to avoid
8938 conflicts with the setting of Stored_Constraint in the case where the
8939 access type entity has already been created as an E_Incomplete_Type due
8940 to a limited with clause.
8941 Use new Is_Standard_Character_Type predicate
8942 (Analyze_Object_Declaration): Apply access_constant check only after
8943 expression has been resolved, given that it may be overloaded with
8944 several access types.
8945 (Constant_Redeclaration): Additional legality checks for deferred
8946 constant declarations tha involve anonymous access types and/or null
8947 exclusion indicators.
8948 (Analyze_Type_Declaration): Set Optimize_Alignment flags
8949 (Analyze_Subtype_Declaration): Ditto
8950 (Analyze_Object_Declaration): Ditto
8951 (Analyze_Object_Declaration): Don't count tasks in generics
8952 Change name In_Default_Expression => In_Spec_Expression
8953 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
8954 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
8955 (Process_Discriminants): Additional check for illegal use of default
8956 expressions in access discriminant specifications in a type that is not
8958 (Check_Abstract_Overriding): If an inherited function dispaches on an
8959 access result, it must be overridden, even if the type is a null
8961 (Derive_Subprogram): The formals of the derived subprogram have the
8962 names and defaults of the parent subprogram, even if the type is
8963 obtained from the actual subprogram.
8964 (Derive_Subprogram): In the presence of interfaces, a formal of an
8965 inherited operation has the derived type not only if it descends from
8966 the type of the formal of the parent operation, but also if it
8967 implements it. This is relevant for the renamings created for the
8968 primitive operations of the actual for a formal derived type.
8969 (Is_Progenitor): New predicate, to determine whether the type of a
8970 formal in the parent operation must be replaced by the derived type.
8972 * sem_util.ads, sem_util.adb (Has_Overriding_Initialize): Make
8973 predicate recursive to handle components that have a user-defined
8974 Initialize procedure. Handle controlled derived types whose ancestor
8975 has a user-defined Initialize procedured.
8976 (Note_Possible_Modification): Add Sure parameter, generate warning if
8977 sure modification of constant
8978 Use new Is_Standard_Character_Type predicate
8979 (Find_Parameter_Type): when determining whether a protected operation
8980 implements an interface operation, retrieve the type of the formal from
8981 the entity when the formal is an access parameter or an
8982 anonymous-access-to-subprogram.
8983 Move Copy_Parameter_List to sem_util, for use when building stubbed
8985 (Has_Access_Values): Tagged types now return False
8986 (Within_HSS_Or_If): New procedure
8987 (Set_Optimize_Alignment_Flags): New procedure
8988 Change name In_Default_Expression => In_Spec_Expression
8989 Change name Analyze_Per_Use_Expression => Preanalyze_Spec_Expression
8990 Change name Pre_Analyze_And_Resolve => Preanalyze_And_Resolve
8992 2008-04-08 Tristan Gingold <gingold@adacore.com>
8994 * s-fileio.adb: Name_Error shouldn't be raised for a tempory file.
8996 2008-04-08 Tristan Gingold <gingold@adacore.com>
9000 * cuintp.c: Fix 16 bits issue for AVR.
9001 On AVR, integer is 16 bits, so it can't be used to do math with
9003 So use long_integer instead.
9005 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
9007 * a-calend-vms.ads, a-calend-vms.adb: Add with and use clause for
9008 System.OS_Primitives.
9009 Change type of various constants, parameters and local variables from
9010 Time to representation type OS_Time.
9011 (To_Ada_Time, To_Unix_Time): Correct sign of origin shift.
9012 Remove the declaration of constant Mili_F from several routines. New
9013 body for internal package Conversions_Operations.
9014 (Time_Of): Add default parameters for several formals.
9016 * a-caldel.adb: Minor reformatting
9018 * a-calend.ads, a-calend.adb: New body for internal package
9019 Conversions_Operations.
9020 (Time_Of): Add default parameters for several formals.
9022 * Makefile.rtl: Add a-ststop
9023 Add Ada.Calendar.Conversions to the list of runtime files.
9026 * a-calcon.adb, a-calcon.ads: New files.
9028 2008-04-08 Jose Ruiz <ruiz@adacore.com>
9029 Tristan Gingold <gingold@adacore.com>
9031 * s-interr-dummy.adb, s-interr-vms.adb, s-interr-sigaction.adb
9032 (Install_Restricted_Handlers): New procedure
9033 which is a simplified version of Install_Handlers that does not store
9034 previously installed.
9036 * s-interr-vxworks.adb: Fix ACATS cxc3001
9037 On VxWorks interrupts can't be detached.
9038 (Install_Restricted_Handlers): New procedure.
9040 * s-interr.ads, s-interr.adb (Install_Restricted_Handlers): New
9043 2008-04-08 Olivier Hainque <hainque@adacore.com>
9045 * s-intman-vxworks.ads, s-intman-vxworks.adb
9046 (Map_And_Raise_Exception): Remove. Was an import of only part of the
9047 required services already implemented elsewhere.
9048 (Notify_Exception): Delete body, import __gnat_error_handler instead.
9049 (Initialize): Add SA_SIGINFO to the sa_flags, to get the sigcontext
9050 argument passed to the handler, which we need for ZCX propagation
9053 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
9055 * adaint.h, adaint.c (__gnat_current_time_string): New routine.
9057 * g-timsta.adb, g-timsta.ads: New files.
9059 2008-04-08 Robert Dewar <dewar@adacore.com>
9061 * a-except-2005.ads, a-except-2005.adb, a-except.ads, a-except.adb
9062 (Raise_Exception): In accordance with AI-446, raise CE for Null_Id
9063 (Raise_Exception_Always): Fix documentation accordingly
9065 2008-04-08 Robert Dewar <dewar@adacore.com>
9067 * a-strbou.ads, a-strbou.adb (From_String): New procedure (for use by
9070 * sem_ch13.ads (Rep_Item_Too_Late): Document that Stream_Convert sets
9073 2008-04-08 Javier Miranda <miranda@adacore.com>
9074 Robert Dewar <dewar@adacore.com>
9075 Ed Schonberg <schonberg@adacore.com>
9077 * a-tags.adb (Register_Interface_Offset): New subprogram.
9078 (Set_Dynamic_Offset_To_Top): New subprogram (see previous comment).
9079 (To_Predef_Prims_Table_Ptr): Removed.
9080 (Acc_Size): Removed.
9081 (To_Acc_Size): Removed.
9082 (Parent_Size): Modified to the call the subprogram returning the size of
9083 the parent by means of the new TSD component Size_Func.
9085 * a-tags.ads (Offset_To_Top_Ptr): New access type declaration.
9086 (DT_Offset_To_Top_Offset): New constant value that is used to generate
9087 code referencing the Offset_To_Top component of the dispatch table's
9089 (Prim_Ptr): New declaration of access to procedure. Used to avoid the
9090 use of 'address to initialize dispatch table slots.
9091 (Size_Func): New component of the TSD. Used by the run-time to call the
9092 size primitive of the tagged type.
9094 * checks.adb (Apply_Access_Check): Avoid check when accessing the
9095 Offset_To_Top component of a dispatch table.
9096 (Null_Exclusion_Static_Checks): If the non-null access type appears in a
9097 deferred constant declaration. do not add a null expression, to prevent
9098 spurious errors when full declaration is analyzed.
9099 (Apply_Discriminant_Check): If both discriminant constraints share a
9100 node which is not static but has no side effects, do not generate a
9101 check for that discriminant.
9102 (Generate_Index_Checks): Set Name_Req to true in call to duplicate
9103 subexpr, since the prefix of an attribute is a name.
9105 * checks.ads: Fix nit in comment.
9107 * exp_ch3.ads, exp_ch3.adb (Freeze_Record_Type): Do not add the spec
9108 and body of predefined primitives in case of CPP tagged type
9110 (Freeze_Type): Deal properly with no storage pool case
9111 (Make_Predefined_Primitive_Specs): Generate specification of abstract
9112 primitive Deep_Adjust if a nonlimited interface is derived from a
9114 (Build_Dcheck_Functions): Create discriminant-checking functions only
9115 for variants that have some component(s).
9116 (Build_Slice_Assignment): In expanded code for slice assignment, handle
9117 properly the case where the slice bounds extend to the last value of the
9118 underlying representation.
9119 (Get_Simple_Init_Val): New calling sequence, accomodate Invalid_Value
9120 (Is_Variable_Size_Record): An array component has a static size if
9121 index bounds are enumeration literals.
9123 * exp_disp.adb (Make_DT): Use the first subtype to determine whether
9124 an external tag has been specified for the type.
9125 (Building_Static_DT): Add missing support for private types.
9126 (Make_DT): Add declaration of Parent_Typ to ensure consistent access
9127 to the entity associated with the parent of Typ. This is done to
9128 avoid wrong access when the parent is a private type.
9129 (Expand_Interface_Conversion): Improve error message when the
9130 configurable runtime has no support for dynamic interface conversion.
9131 (Expand_Interface_Thunk): Add missing support to interface types in
9132 configurable runtime.
9133 (Expand_Dispatching_Call): remove obsolete code.
9134 (Make_DT): Replace occurrences of RE_Address by RE_Prim_Ptr, and
9135 ensure that all subtypes and aggregates associated with dispatch
9136 tables have the attribute Is_Dispatch_Table_Entity set to true.
9137 (Register_Primitive): Rename one variable to improve code reading.
9138 Replace occurrences of RE_Addres by RE_Prim_Ptr. Register copy o
9139 of the pointer to the 'size primitive in the TSD.
9141 * rtsfind.ads (RE_DT_Offset_To_Top_Offset): New entity.
9142 (RE_Offset_To_Top_Ptr): New entity.
9143 (RE_Register_Interface_Offset): New entity.
9144 (RE_Set_Dynamic_Offset_To_Top): New entity.
9145 (RE_Set_Offset_To_Top): Removed entity.
9146 (RE_Prim_Ptr): New entity
9147 (RE_Size_Func): New entity
9148 (RE_Size_Ptr): New entity
9149 (RTU_Id): Add Ada_Dispatching and Ada_Dispatching_EDF.
9150 (Ada_Dispatching_Child): Define this new subrange.
9151 (RE_Id): Add new required run-time calls (RE_Set_Deadline, RE_Clock,
9152 RE_Time_Span, and RE_Time_Span_Zero).
9153 (RE_Unit_Table): Add new required run-time calls
9155 * rtsfind.adb (Get_Unit_Name): Add processing for Ada.Dispatching
9158 * exp_atag.ads, exp_atag.adb (Build_Offset_To_Top): New subprogram.
9159 (Build_Set_Static_Offset_To_Top): New subprogram. Generates code that
9160 initializes the Offset_To_Top component of a dispatch table.
9161 (Build_Predef_Prims): Removed.
9162 (Build_Get_Predefined_Prim_Op_Address): Replace call to Predef_Prims by
9164 (Build_Set_Size_Function): New subprogram.
9166 * exp_ch13.adb: Do not generate storage variable for storage_size zero
9167 (Expand): Handle setting/restoring flag Inside_Freezing_Actions
9169 2008-04-08 Robert Dewar <dewar@adacore.com>
9171 * a-ztdeau.adb, a-tideau.adb, a-wtdeau.adb (Puts_Dec): Fix error in
9172 computing Fore when Exp > 0
9174 2008-04-08 Robert Dewar <dewar@adacore.com>
9176 * back_end.adb: Remove Big_String_Ptr declarations (now in Types)
9178 * errout.adb: Remove Big_String_Ptr declarations (now in Types)
9179 Change name Is_Style_Msg to Is_Style_Or_Info_Msg
9181 * fmap.adb: Remove Big_String declarations (now in Types)
9182 (No_Mapping_File): New Boolean global variable
9183 (Initialize): When mapping file cannot be read, set No_Mapping_File to
9185 (Update_Mapping_File): Do nothing if No_Mapping_File is True. If the
9186 tables were empty before adding entries, open the mapping file
9187 with Truncate = True, instead of delete/re-create.
9189 * fname-sf.adb: Remove Big_String declarations (now in Types)
9191 * s-strcom.adb, g-dyntab.ads, g-table.ads, s-carsi8.adb,
9192 s-stalib.ads, s-carun8.adb: Add zero size Storage_Size clauses for
9195 * table.ads: Add for Table_Ptr'Storage_Size use 0
9197 * types.ads: Add Big_String declarations
9198 Add Size_Clause of zero for big pointer types
9200 2008-04-08 Vincent Celier <celier@adacore.com>
9202 * clean.adb (Parse_Cmd_Line): Recognize switch --subdirs=
9203 (Usage): Add line for switch --subdirs=
9204 Add new switch -eL, to follow symbolic links when processing project
9207 * gnatcmd.adb: Process switches -eL and --subdirs=
9208 (Non_VMS_Usage): Output "gnaampcmd" instead of "gnat", and call
9209 Program_Name to get proper tool names when AAMP_On_Target is set.
9210 (Gnatcmd): Call Add_Default_Search_Dirs and Get_Target_Parameters to get
9211 AAMP_On_Target set properly for use of GNAAMP tools (this is needed by
9212 Osint.Program_Name).
9214 * gnatname.adb: (Scan_Args): Recognize switches -eL and --subdirs=
9215 (Usage): Add lines for switches -eL and --subdirs=
9217 * makeusg.adb: Add line for switch --subdirs=
9220 (Source_Data): New Boolean component Compiled, defaulted to True
9221 (Empty_File_Name: New global variable in private part, initialized in
9222 procedure Initialize.
9223 (Subdirs_Option): New constant string
9224 (Subdirs): New String_Ptr global variable
9225 (Language_Config): New component Include_Compatible_Languages
9226 (Project_Qualifier): New type for project qualifiers
9227 (Project_Data): New component Qualifier
9228 (Project_Configuration): New component Archive_Builder_Append_Option
9230 * prj-nmsc.adb (Get_Unit_Exceptions): When a unit is already in
9231 another imported project indicate the name of this imported project.
9232 (Check_File): When a unit is in two project files, indicate the project
9233 names and the paths of the source files for each project.
9234 (Add_Source): Set Compiled to False if compiler driver is empty. Only
9235 set object, dependency and switches file names if Compiled is True.
9236 (Process_Compiler): Allow the empty string for value of attribute Driver
9237 (Get_Directories): When Subdirs is not null and Object_Dir is not
9238 specified, locate and create if necessary the actual object dir.
9239 (Locate_Directory): When Subdirs is not empty and Create is not the
9240 empty string, locate and create if necessary the actual directory
9241 as a subdirectory of directory Name.
9242 (Check_Library_Attributes.Check_Library): Allow a project where the only
9243 "sources" are header files of file based languages to be imported by
9244 library projects, in multi-language mode (gprbuild).
9245 (Check_Library_Attributes.Check_Library): In multi-language mode
9246 (gprbuild), allow a library project to import a project with no
9247 sources, even when this is not declared explicitly.
9248 (Check_If_Externally_Built): A virtual project extending an externally
9249 built project is also externally built.
9250 (Check_Library_Attributes): For a virtual project extending a library
9251 project, inherit the library directory.
9252 (Process_Project_Level_Array_Attributes): Process new attribute
9253 Inherit_Source_Path.
9254 For projects with specified qualifiers "standard", "library" or
9255 "abstract", check that the project conforms to the qualifier.
9256 (Process_Project_Level_Simple_Attributes): Process new attribute
9257 Archive_Builder_Append_Option.
9259 * switch-m.adb: (Scan_Make_Switches): Process switch --subdirs=
9260 (Normalize_Compiler_Switches): Only keep compiler switches that are
9261 passed to gnat1 by the gcc driver and that are stored in the ALI file
9263 Do not take into account switc -save-temps
9265 * makegpr.adb (Compile_Link_With_Gnatmake): Transmit switch -eL if
9266 gprmake is called with -eL.
9267 (Scan_Arg): Recognize switch -eL
9268 (Usage): Add line for switch -eL
9270 * prj.adb (Initialize): Initialize Empty_File_Name
9271 (Project_Empty): New component Qualifier
9273 * prj-attr.ads, prj-attr.adb: New project level attribute
9274 Inherit_Source_Path.
9275 New project level attribute Archive_Builder_Append_Option
9277 * prj-dect.adb: Replace System.Strings by GNAT.Strings.
9279 * prj-ext.adb (Initialize_Project_Path): In Multi_Language mode, add
9280 <prefix>/lib/gnat in the project path, after <prefix>/share/gpr, for
9281 upward compatibility.
9283 * prj-part.adb (Project_Path_Name_Of.Try_Path): In high verbosity, put
9284 each Trying ..." on different lines.
9285 (Parse_Single_Project): Recognize project qualifiers. Fail in qualifier
9286 is "configuration" when not in configuration. Fail when in configuration
9287 when a specified qualifier is other than "configuration".
9289 * prj-proc.adb (Process_Declarative_Items): Link new elements of copied
9290 full associative array together.
9291 (Recursive_Process): Put the project qualifier in the project data
9293 * prj-tree.ads, prj-tree.adb: (Project_Qualifier_Of): New function
9294 (Set_Project_Qualifier_Of): New procedure
9296 2008-04-08 Robert Dewar <dewar@adacore.com>
9298 * errout.ads: Update comments for new handling of info: messages
9300 * erroutc.adb (Matches): New procedure
9301 (Warning_Specifically_Suppressed): Modified to handle multiple * chars
9302 (Is_Style_Or_Info_Msg): New name for Is_Style_Msg, now set for
9303 info messages as well as style messages.
9305 * erroutc.ads: Remove unneeded fields from Specific_Warning_Entry
9307 * sem_elab.adb (Supply_Bodies): Create actual bodies for stubbed
9309 (Check_A_Call): Special "info: " warnings now have ? in the text
9310 (Elab_Warning): Use info message in static case
9312 2008-04-08 Ed Schonberg <schonberg@adacore.com>
9314 * exp_aggr.adb (Static_Array_Aggregate): Use Max_Aggr_Size to determine
9315 whether an array aggregate with static bounds and scalar components
9316 should be expanded into a static constant.
9318 2008-04-08 Gary Dismukes <dismukes@adacore.com>
9319 Ed Schonberg <schonberg@adacore.com>
9320 Robert Dewar <dewar@adacore.com>
9322 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Add tests of
9323 Has_Stream_Attribute_ Definition when checking for available stream
9324 attributes on parameters of a limited type in Ada 2005. Necessary for
9325 proper recognition of visible stream attribute clauses.
9326 (Has_Stream_Attribute_Definition): If the type is derived from a
9327 private type, then use the derived type's underlying type for checking
9328 whether it has stream attributes.
9329 (Validate_Object_Declaration): The check for a user-defined Initialize
9330 procedure applies also to types with controlled components or a
9331 controlled ancestor.
9332 Reject an object declaration in a preelaborated unit if the type is a
9333 controlled type with an overriding Initialize procedure.
9334 (Validate_Remote_Access_To_Class_Wide_Type): Return without further
9335 checking when the parent of a dereference is a selected component and
9336 the name has not been analyzed.
9338 * sem_ch4.adb (Analyze_Selected_Component): Add checking for selected
9339 prefixes that are invalid explicit dereferences of remote
9340 access-to-class-wide values, first checking whether the selected
9341 component is a prefixed form of call to a tagged operation.
9342 (Analyze_Call): Remove code that issues an error for limited function
9343 calls in illegal contexts, as we now support all of the contexts that
9344 were forbidden here.
9345 Allow a function call that returns a task.and appears as the
9346 prefix of a selected component.
9347 (Analyze_Reference): Give error message if we try to make a 'Reference
9348 for an object that is atomic/aliased without its type having the
9349 corresponding attribute.
9350 (Analyze_Call): Remove condition checking for attributes to allow
9351 calls to functions with inherently limited results as prefixes of
9352 attributes. Remove related comment about Class attributes.
9353 (Analyze_Selected_Component): If the prefix is a remote type, check
9354 whether this is a prefixed call before reporting an error.
9355 (Complete_Object_Operation): If the controlling formal is an access to
9356 variable reject an actual that is a constant or an access to one.
9357 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
9358 primitive operations from base type.
9360 * exp_ch4.adb (Expand_N_Indexed_Component): Test for prefix that is a
9362 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
9363 (Expand_N_Selected_Component): Test for prefix that is a build-in-place
9364 function call and call Make_Build_In_Place_Call_In_Anonymous_Context.
9365 (Expand_N_Slice): Test for prefix that is a build-in-place function call
9366 and call Make_Build_In_Place_Call_In_Anonymous_Context.
9367 (Analyze_Call): Remove code that issues an error for limited function
9368 calls in illegal contexts, as we now support all of the contexts that
9369 were forbidden here.
9370 New calling sequence for Get_Simple_Init_Val
9371 (Expand_Boolean_Operator): Add call to Silly_Boolean_Array_Xor_Test
9372 (Expand_N_Op_Not): Add call to Silly_Boolan_Array_Not_Test
9374 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
9375 Ed Schonberg <schonberg@adacore.com>
9376 Robert Dewar <dewar@adacore.com>
9378 * exp_ch2.adb: Minor reformatting.
9379 (Expand_Entry_Index_Parameter): Set the type of the identifier.
9380 (Expand_Entry_Reference): Add call to Expand_Protected_Component.
9381 (Expand_Protected_Component): New routine.
9382 (Expand_Protected_Private): Removed.
9383 Add Sure parameter to Note_Possible_Modification calls
9385 * sem_ch12.ads, sem_ch12.adb (Analyze_Subprogram_Instantiation): The
9386 generated subprogram declaration must inherit the overriding indicator
9387 from the instantiation node.
9388 (Validate_Access_Type_Instance): If the designated type of the actual is
9389 a limited view, use the available view in all cases, not only if the
9390 type is an incomplete type.
9391 (Instantiate_Object): Actual is illegal if the formal is null-excluding
9392 and the actual subtype does not exclude null.
9393 (Process_Default): Handle properly abstract formal subprograms.
9394 (Check_Formal_Package_Instance): Handle properly defaulted formal
9395 subprograms in a partially parameterized formal package.
9396 Add Sure parameter to Note_Possible_Modification calls
9397 (Validate_Derived_Type_Instance): if the formal is non-limited, the
9398 actual cannot be limited.
9399 (Collect_Previous_Instances): Generate instance bodies for subprograms
9402 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Small): Don't
9404 Add Sure parameter to Note_Possible_Modification calls
9405 (Analyze_At_Clause): Preserve Comes_From_Source on Rewrite call
9406 (Analyze_Attribute_Definition_Clause, case Attribute_Address): Check for
9407 constant overlaid by variable and issue warning.
9408 Use new Is_Standard_Character_Type predicate
9409 (Analyze_Record_Representation_Clause): Check that the specified
9410 Last_Bit is not less than First_Bit - 1.
9411 (Analyze_Attribute_Definition_Clause, case Address): Check for
9412 self-referential address clause
9414 * sem_ch5.ads, sem_ch5.adb (Diagnose_Non_Variable_Lhs): Rewrite the
9415 detection mechanism when the lhs is a prival.
9416 (Analyze_Assignment): Call Check_Unprotected_Access to detect
9417 assignment of a pointer to protected data, to an object declared
9418 outside of the protected object.
9419 (Analyze_Loop_Statement): Check for unreachable code after loop
9420 Add Sure parameter to Note_Possible_Modication calls
9421 Protect analysis from previous syntax error such as a scope mismatch
9423 (Analyze_Assignment_Statement): The assignment is illegal if the
9424 left-hand is an interface.
9426 * sem_res.ads, sem_res.adb (Resolve_Arithmetic_Op): For mod/rem check
9427 violation of restriction No_Implicit_Conditionals
9428 Add Sure parameter to Note_Possible_Modication calls
9429 Use new Is_Standard_Character_Type predicate
9430 (Make_Call_Into_Operator): Preserve Comes_From_Source when rewriting
9431 call as operator. Fixes problems (e.g. validity checking) which
9432 come from the result looking as though it does not come from source).
9433 (Resolve_Call): Check case of name in named parameter if style checks
9435 (Resolve_Call): Exclude calls to Current_Task as entry formal defaults
9436 from the checking that such calls should not occur from an entry body.
9437 (Resolve_Call): If the return type of an Inline_Always function
9438 requires the secondary stack, create a transient scope for the call
9439 if the body of the function is not available for inlining.
9440 (Resolve_Actuals): Apply Ada2005 checks to view conversions of arrays
9441 that are actuals for in-out formals.
9442 (Try_Object_Operation): If prefix is a tagged protected object,retrieve
9443 primitive operations from base type.
9444 (Analyze_Selected_Component): If the context is a call to a protected
9445 operation the parent may be an indexed component prior to expansion.
9446 (Resolve_Actuals): If an actual is of a protected subtype, use its
9447 base type to determine whether a conversion to the corresponding record
9449 (Resolve_Short_Circuit): Handle pragma Check
9451 * sem_eval.adb: Minor code reorganization (usea Is_Constant_Object)
9452 Use new Is_Standard_Character_Type predicate
9453 (Eval_Relational_Op): Catch more cases of string comparison
9455 2008-04-08 Robert Dewar <dewar@adacore.com>
9456 Gary Dismukes <dismukes@adacore.com>
9458 * s-rident.ads: Add No_Default_Initialization restriction
9461 (Has_Non_Null_Base_Init_Proc): Handle No_Default_Initialization case
9462 (Set_TSS): Handle No_Default_Initialization case
9464 * exp_ch6.adb (Expand_N_Subprogram_Body): Handle restriction
9465 No_Default_Initialization
9466 (Expand_N_Subprogram_Body): Remove redundant initialization of out
9467 parameters when Normalize_Scalars is active.
9468 (Add_Final_List_Actual_To_Build_In_Place_Call): Add formal Sel_Comp
9469 Fix casing error in formal parameter name in call
9470 (Register_Predefined_DT_Entry): Replace occurrences of RE_Address by
9471 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
9472 dispatching call on VM targets.
9474 2008-04-08 Gary Dismukes <dismukes@adacore.com>
9475 Thomas Quinot <quinot@adacore.com>
9477 * exp_ch7.adb (Find_Final_List): Change the test for generating a
9478 selected component from an access type's Associated_Final_Chain to
9479 check for the presence of that field, rather than assuming it exists
9480 for all named access types.
9481 (Make_Clean): New formal Chained_Cleanup_Action allowing to specify a
9482 procedure to call at the end of the generated cleanup procedure.
9483 (Expand_Cleanup_Actions): When a new cleanup procedure is generated, and
9484 and an At_End_Proc already exists in the handled sequence of statements
9485 for which cleanup actions are being expanded, the original cleanup
9486 action must be preserved.
9488 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
9489 Ed Schonberg <schonberg@adacore.com>
9490 Robert Dewar <dewar@adacore.com>
9491 Gary Dismukes <dismukes@adacore.com>
9493 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry,
9494 Build_Unprotected_Subprogram_Body): Generate debug info for
9495 declarations related to the handling of private data in task and
9497 (Debug_Private_Data_Declarations): New subprogram.
9498 (Install_Private_Data_Declarations): Remove all debug info flagging.
9499 This is now done by Debug_Private_Data_Declarations at the correct
9501 (Build_Simple_Entry_Call): If the task name is a function call, expand
9502 the prefix into an object declaration, and make the surrounding block a
9504 (Build_Master_Entity): An internal block is a master if it wraps a call.
9505 Code reformatting, update comments. Code clean up.
9506 (Make_Task_Create_Call): Use 'Unrestricted_Access instead of 'Address.
9507 (Replicate_Entry_Formals): If the formal is an access parameter or
9508 anonymous access to subprogram, copy the original tree to create new
9509 entities for the formals of the subprogram.
9510 (Expand_N_Task_Type_Declaration): Create a Relative_Deadline variable
9511 for tasks to store the value passed using pragma Relative_Deadline.
9512 (Make_Task_Create_Call): Add the Relative_Deadline argument to the
9513 run-time call to create a task.
9514 (Build_Wrapper_Spec): If the controlling argument of the interface
9515 operation is an access parameter with a non-null indicator, use the
9516 non-null indicator on the wrapper.
9518 * sem_ch9.adb (Analyze_Protected_Type): Only retrieve the full view when
9519 present, which it may not be in the case where the type entity is an
9520 incomplete view brought in by a limited with.
9521 (Analyze_Task_Type): Only retrieve the full view when present, which it
9522 may not be in the case where the type entity is an incomplete view brought
9523 in by a limited with.
9524 (Analyze_Protected_Definition): Set Is_Frozen on all itypes generated for
9525 private components of a protected type, to prevent the generation of freeze
9526 nodes for which there is no proper scope of elaboration.
9528 * exp_util.ads, exp_util.adb
9529 (Remove_Side_Effects): If the expression is a function call that returns a
9530 task, expand into a declaration to invoke the build_in_place machinery.
9531 (Find_Protection_Object): New routine.
9532 (Remove_Side_Effects): Also make a copy of the value
9533 for attributes whose result is of an elementary type.
9534 (Silly_Boolean_Array_Not_Test): New procedure
9535 (Silly_Boolean_Array_Xor_Test): New procedure
9536 (Is_Volatile_Reference): New function
9537 (Remove_Side_Effects): Use Is_Volatile_Reference
9538 (Possible_Bit_Aligned_Component): Handle slice case properly
9540 * exp_pakd.adb (Expand_Packed_Not): Move silly true/true or false/false
9541 case test to Exp_Util
9542 (Expand_Packed_Xor): Move silly true/true case test to Exp_Util
9544 2008-04-08 Thomas Quinot <quinot@adacore.com>
9546 * exp_dist.ads, exp_dist.adb: Fix casing error in formal parameter name
9548 (Add_RACW_Features): When processing an RACW in another unit than the
9549 main unit, set Body_Decls to No_List to indicate that the bodies of
9550 the type's TSS must not be generated.
9551 (GARLIC_Support.Add_RACW_Read_Attribute,
9552 GARLIC_Support.Add_RACW_Write_Attribute): Do not generate bodies if
9553 Body_Decls is No_List.
9554 (PolyORB_Support.Add_RACW_Read_Attribute,
9555 PolyORB_Support.Add_RACW_Write_Attribute,
9556 PolyORB_Support.Add_RACW_From_Any,
9557 PolyORB_Support.Add_RACW_To_Any,
9558 PolyORB_Support.Add_RACW_TypeCode): Same.
9559 (Transmit_As_Unconstrained): New function.
9560 (Build_Ordered_Parameters_List): Use the above to order parameters.
9561 (GARLIC_Support.Build_General_Calling_Stubs):
9562 Use the above to determine which parameters to unmarshall using 'Input
9563 at the point where their temporary is declared (as opposed to later on
9565 (PolyORB_Support.Build_General_Calling_Stubs):
9566 Use the above to determine which parameters to unmarshall using From_Any
9567 at the point where their temporary is declared (as opposed to later on
9568 with an assignment).
9570 2008-04-08 Ed Schonberg <schonberg@adacore.com>
9572 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): If this is
9573 an Input function for an access type, do not perform default
9574 initialization on the local variable that receives the value, to
9575 prevent spurious warnings when the type is null-excluding.
9577 2008-04-08 Robert Dewar <dewar@adacore.com>
9578 Ed Schonberg <schonberg@adacore.com>
9580 * freeze.adb (Freeze_Entity): Improve warnings on access types in pure
9582 (Size_Known): Generic formal scalar types have known at compile
9583 time size, so remove check.
9584 Fix casing error in formal parameter name in call
9585 (Freeze_Subprogram): If the subprogram is a user-defined operator,
9586 recheck its overriding indication.
9588 2008-04-08 Vincent Celier <celier@adacore.com>
9590 * gnat1drv.adb: Send all messages indicating an error to standard error
9592 2008-04-08 Robert Dewar <dewar@adacore.com>
9594 * gnatbind.adb (Restriction_Could_Be_Set): New procedure
9595 (List_Applicable_Restrictions): Do not list existing restrictions
9597 2008-04-08 Thomas Quinot <quinot@adacore.com>
9599 * g-socket.ads, g-socket.adb: Improve documentation of GNAT.Sockets:
9600 add a pointer to generic sockets literature
9601 do not mention that the given example is "typical" usage.
9602 Remove obsolete comment about multicast not being supported on Windows.
9603 (Connect_Socket): Make Server mode IN rather than IN OUT
9604 since this formal is never modified.
9606 2008-04-08 Robert Dewar <dewar@adacore.com>
9608 * sprint.adb (Write_Itype): Handle Itypes whose Parent field points to
9609 the declaration for some different entity.
9610 (Sprint_Node_Actual, case N_Derived_Type_Definition): When an interface
9611 list is precent (following the parent subtype indication), display
9612 appropriate "and" keyword.
9614 * itypes.adb: Remove unnecessary calls to Init_Size_Align and Init_Esize
9615 Remove unnecessary calls to Init_Size_Align and Init_Esize.
9616 Add notes on use of Parent field of an Itype
9618 2008-04-08 Ed Schonberg <schonberg@adacore.com>
9619 Robert Dewar <dewar@adacore.com>
9620 Gary Dismukes <dismukes@adacore.com>
9622 * lib-xref.adb (Is_On_LHS): Remove dead code
9623 (Output_Overriden_Op): If the overridden operation is itself inherited,
9624 list the ancestor operation, which is the one whose body or absstract
9625 specification is actually being overridden. For source navigation
9628 * sem_ch7.adb (Is_Primitive_Of): use base type to determine whether
9629 operation is primitive for the type.
9630 (Declare_Inherited_Private_Subprograms): If the new operation overrides
9631 an inherited private subprogram, set properly the Overridden_Operation
9632 attribute, for better cross-reference information.
9633 (Analyze_Package_Specification): Do late analysis of spec PPCs
9634 (Install_Private_Declaration, Uninstall_Declarations): Save/restore
9635 properly the full view and underlying full views of a private type in a
9636 child unit, whose full view is derived from a private type in a parent
9637 unit, and whose own full view becomes visible in the child body.
9639 * sem_disp.adb (Check_Dispatching_Operation): When a body declares a
9640 primitive operation after the type has been frozen, add an explicit
9641 reference to the type and the operation, because other primitive
9642 references have been emitted already.
9643 (Expand_Call, Propagate_Tag): Call Kill_Current_Values when processing a
9644 dispatching call on VM targets.
9646 2008-04-08 Vincent Celier <celier@adacore.com>
9647 Thomas Quinot <quinot@adacore.com>
9649 * make.adb: (Gnatmake_Called): Remove, no longer necessary
9650 (Compile_Surces): Call Delete_Temp_Config_Files only if Gnatmake_Called
9651 is True and Debug_Flag_N is False. Debug_Flag_N means "keep temp files".
9652 (Insert_Project_Sources): Take into account index in multi-unit source
9654 After building a library project, delete all temporary files.
9655 (Initialize): Reset current output after parsing project file.
9656 (Collect_Arguments_And_Compile): Never insert in the queue the sources
9657 of library projects that are externally built.
9658 Put file name in error and inform messages if -df is used
9659 (Display): If invoked with -d7, do not display path names, but only
9662 * makeutl.ads (Path_Or_File_Name): New function
9663 (Path_Or_File_Name): New function
9665 2008-04-08 Arnaud Charlet <charlet@adacore.com>
9667 * Make-lang.in: Disable warnings during first stage of bootstrap
9669 Update dependencies.
9671 2008-04-08 Vincent Celier <celier@adacore.com>
9673 * mlib-prj.adb (Build_Library): Compare with ALI file name in canonical
9674 case to decide if ALI object file is included in library.
9675 (Build_Library): Never attempt to build a library if the project is
9678 2008-04-08 Thomas Quinot <quinot@adacore.com>
9680 * nlists.adb (Is_Non_Empty_List): Remove redundant test. First
9681 (No_List) is defined to return Empty.
9683 2008-04-08 Jose Ruiz <ruiz@adacore.com>
9685 * osint.ads, osint.adb (Get_Libraries_From_Registry): Improve
9688 (Read_Default_Search_Dirs): Do not consider spaces as path separators
9689 because spaces may be part of legal paths.
9691 2008-04-08 Robert Dewar <dewar@adacore.com>
9693 * par-ch11.adb (P_Exception_Handler): Check indentation level for
9696 2008-04-08 Ed Schonberg <schonberg@adacore.com>
9698 * par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
9699 in a type declaration, if this is not an interface declaration or
9700 private type extension.
9702 2008-04-08 Vincent Celier <celier@adacore.com>
9704 * prj-util.adb (Executable_Of): New String parameter Language. When
9705 Ada_Main is False and Language is not empty, attempt to remove the body
9706 suffix or the spec suffix of the language to get the base of the
9707 executable file name.
9708 (Put): New Boolean parameter Lower_Case, defauilted to False. When
9709 Lower_Case is True, put the value in lower case in the name list.
9710 (Executable_Of): If there is no executable suffix in the configuration,
9711 then do not modify Executable_Extension_On_Target.
9713 * prj-util.ads (Executable_Of): New String parameter Language,
9714 defaulted to the empty string.
9715 (Put): New Boolean parameter Lower_Case, defauilted to False
9717 2008-04-08 Robert Dewar <dewar@adacore.com>
9719 * scng.adb (Scan_Identifier): Handle case of identifier starting with
9720 wide character using UTF-8 encoding.
9722 2008-04-08 Javier Miranda <miranda@adacore.com>
9724 * sem.adb (Analyze): Consider case in which we analyze an empty node
9725 that was generated by a call to a runtime function that is not
9726 available under the configurable runtime.
9728 * sem.ads (Inside_Freezing_Actions): New flag.
9729 (Save_Check_Policy_List): New field in scope stack entry
9731 2008-04-08 Ed Schonberg <schonberg@adacore.com>
9732 Robert Dewar <dewar@adacore.com>
9734 * sem_aggr.adb (Analyze_N_Extension_Aggregate): Add legality checks for
9735 the ancestor part of an extension aggregate for a limited type.
9736 (Resolve_Array_Aggregate): Issue warning for sliding of aggregate with
9737 enumeration index bounds.
9738 (Resolve_Array_Aggregate): Add circuit for diagnosing missing choices
9739 when array is too short.
9740 (Check_Expr_OK_In_Limited_Aggregate): Move function
9741 Check_Non_Limited_Type from Resolve_Record_Aggregate to top level (and
9743 (Resolve_Array_Aggregate.Resolve_Aggr_Expr):
9744 Check_Expr_OK_In_Limited_Aggregates called to check for illegal limited
9745 component associations.
9746 (Check_Non_Limited_Type): Moved to outer level and renamed.
9747 (Resolve_Record_Aggregate): In an extension aggregate, an association
9748 with a box initialization can only designate a component of the
9749 extension, not a component inherited from the given ancestor
9751 * sem_case.adb: Use new Is_Standard_Character_Type predicate
9753 2008-04-08 Robert Dewar <dewar@adacore.com>
9755 * s-imgdec.adb (Set_Decimal_Digits): Fix error when input is zero with
9757 (Set_Decimal_Digits): Properly handle Aft=0 (equivalent to Aft=1)
9758 Properly handle case where Aft > Scale and input number is less than
9761 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
9763 * s-stoele.ads, s-soflin.ads: Move the location of
9764 Dummy_Communication_Block from System.Storage_Elements to
9767 * s-tpobop.ads: Add comment on usage of Dummy_Communication_Block to
9768 emulate Communication_Block in certain scenarios.
9770 2008-04-08 Hristian Kirtchev <kirtchev@adacore.com>
9772 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (Block_IO_OK): New
9774 Add new subtype S_WWC, unchecked conversion routines From_WWC and
9776 (I_WWC, O_WWC): New routines for input and output of
9777 Wide_Wide_Character.
9779 2008-04-08 Robert Dewar <dewar@adacore.com>
9781 * stringt.adb (Write_String_Table_Entry): Handle wide characters
9784 2008-04-08 Robert Dewar <dewar@adacore.com>
9786 * styleg.adb (Check_Comment): Allow special char after -- in
9787 non-end-of-line case
9789 2008-04-08 Robert Dewar <dewar@adacore.com>
9791 * stylesw.adb: Implement -gnaty + - y options
9792 (Set_GNAT_Style_Check_Options): Includ I in style check string
9794 * stylesw.ads: Add comments for new style switch options
9796 2008-04-08 Sergey Rybin <rybin@adacore.com>
9798 * tree_io.ads: Increase ASIS_Version_Number because of adding Sem_Aux
9799 to the set of the GNAT components needed by ASIS.
9801 2008-04-08 Bob Duff <duff@adacore.com>
9803 * types.h: Change CE_Null_Exception_Id to the correct value (8, was 9).
9805 2008-04-08 Tristan Gingold <gingold@adacore.com>
9807 * vxaddr2line.adb: Use Unsigned_32 instead of Integer for address type.
9808 Improve error message generation.
9810 2008-04-08 Vincent Celier <celier@adacore.com>
9812 * a-direct.adb (Start_Search): Check for Name_Error before checking for
9813 Use_Error, as specified in the RM. Check if directory is open and raise
9814 Use_Error if it is not.
9816 2008-04-08 Vincent Celier <celier@adacore.com>
9817 Robert Dewar <dewar@adacore.com>
9819 * vms_conv.adb (Output_Version): Print "GNAAMP" instead of "GNAT when
9820 AAMP_On_Target is set.
9822 * vms_data.ads: Add NOxxx to style check switch list
9823 Add entry COMPONENTS for -gnatVe
9824 Add VMS qualifiers for -eL (/FOLLOW_LINKS_FOR_FILES) and --subdirs=
9826 (GCC_Switches): Add /ALL_BACK_END_WARNINGS.
9827 Add qualifiers for gnatmetric coupling options
9828 Add note that -gnata enables all checks
9829 Add entries [NO]PARAMETER_ORDER for -gnatw.p[P]
9830 Fix inconsistency for VMS qualifier for the gnatpp '-rnb' option
9831 New warning flag -gnatw.e
9833 * usage.adb: Add entries for -gnaty+ -gnaty- -gnatyy
9834 Add entry for -gnatyN (forgotten before)
9835 Line for new warning switch -gnatw.p
9836 New warning flag -gnatw.e
9838 * gnat_ugn.texi: Add documentation fpr project file switch -aP
9839 Document -gnaty - + y
9840 Replace occurences of "package specification" with "package spec"
9841 Define preprocessing symbols in documentation of gnatprep
9842 Clarify reason for distinguishing overflow checking
9843 Add documentation for project-aware tool switches -eL and --subdirs=
9844 Complete list of configuration pragmas
9845 Specify that, even when gnatmake switch -x is used, mains on the command
9846 line need to be sources of project files.
9847 Editing of gnatcheck/gnatmetric doc.
9848 Add documentation for -gnatw.p/-gnatw.P
9849 Add missing documentation for -fno-inline-functions.
9850 Add documentation for -gnatw.e
9852 * gnat_rm.texi: Add documentation for No_Default_Initialization
9853 Replace occurences of "package specification" with "package spec"
9854 Document use of * in Warnings Off string
9855 Update documentation of alignment/component clauses.
9856 Add documentation for Invalid_Value
9857 Document new consistency rule for Optimize_Alignment
9858 Add documentation for Precondition and Postcondition pragmas
9859 Add documentation for Check and Check_Policy pragmas
9860 Document new Enum_Val attribute
9861 Remove requirement for static string in pragma Assert
9862 Add documentation on GNAT.Time_Stamp
9864 * ug_words: add entry for -gnatVe
9865 Add entries for -gnat.p[P] /WARNINGS=[NO]PARAMETER_ORDER
9866 Add entry for -gnatw.e
9868 * debug.adb: Add missing documentation for d.a flag
9869 Document new -gnatd.a switch.
9870 Add documentation for new gnatmake debug switch -df
9872 2008-04-08 Thomas Quinot <quinot@adacore.com>
9874 * gen-soccon.c: Bump year in copyright notices.
9876 * g-soccon-vxworks.ads: Add new constant IP_PKTINFO
9878 2008-04-08 Eric Botcazou <ebotcazou@adacore.com>
9880 * ctrl_c.c: Improve handling of ctrl-c on LynxOS and Windows.
9883 2008-04-08 Robert Dewar <dewar@adacore.com>
9884 Bob Duff <duff@adacore.com>
9886 * impunit.adb: Add Interfaces.Java.JNI, System.Strings.Stream_Ops,
9887 Ada.Calendar.Conversions, Ada.Dispatching.EDF, GNAT.Time_Stamp
9889 * s-intman-mingw.adb: Minor comment fix -- spell 'explicitly' correctly
9891 * g-trasym.adb: Minor comment fix -- spell 'explicitly' correctly
9893 * g-trasym.ads: Minor comment improvements
9895 * s-stalib.adb: Minor comment fix -- spell 'explicitly' correctly
9897 * a-sequio.ads, a-direio.ads: improve message for tagged type
9899 * a-strunb.ads: Minor reformatting
9901 * a-tifiio.adb: Minor reformatting
9903 * atree.adb (Fix_Parents): Use clearer names for formals
9904 Cleanup and simplify code
9905 Use named notation in calls
9907 * exp_fixd.adb (Do_Multiply_Fixed_Universal): Use named notation in
9910 * uintp.adb: Used named notation for some confusing calls
9912 * bindusg.adb: Minor change in one line of output
9914 * cstand.adb: Minor reformatting of src representation of Standard
9916 * a-assert.ads: Add comment.
9918 * g-decstr.adb: Fix bad indentation
9920 * expander.ads, expander.adb: Code clean up.
9922 * sem_dist.ads: Minor comment improvement
9924 * sem_type.adb, g-dirope.ads, g-exctra.ads, s-valwch.adb,
9925 s-wchstw.adb, targparm.ads, widechar.adb: Minor reformatting
9927 * i-cstrin.adb: Fix casing error in formal parameter name in call
9929 2008-04-08 Ed Schonberg <schonberg@adacore.com>
9931 * binde.adb (Gather_All_Links, Gather_Dependencies): units that are
9932 mentioned in limited_with_clauses to do create semantic dependencies
9933 even though they appear in the ali file.
9935 2008-04-08 Emmanuel Briot <briot@adacore.com>
9937 * g-comlin.ads, g-comlin.adb (Expansion): Remove unreachable return
9939 (Get_Configuration): New subprogram.
9941 * prj-pp.ads, prj-pp.adb (Pretty_Print): new parameters Id and Id_Tree
9942 These optional parameters help preserve the casing of the project's name
9943 when pretty-printing.
9945 2008-04-08 Jerome Lambourg <lambourg@adacore.com>
9946 Arnaud Charlet <charlet@adacore.com>
9948 * bindgen.adb (Gen_Adainit_Ada): If the main program is a CIL function,
9949 then use __gnat_set_exit_status to report the returned status code.
9951 * comperr.adb (Compiler_Abort): Convert most bug boxes into clean error
9952 messages on .NET, since some constructs of the language are not
9955 * gnatlink.adb (Gnatlink): In case the command line is too long for the
9956 .NET linker, gnatlink now concatenate all .il files and pass this to
9959 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
9960 Xavier Grave <grave@ipno.in2p3.fr>
9962 * Makefile.in: Add make ifeq define for mips/mipsel support.
9963 * g-soccon-linux-mips.ads, system-linux-mipsel.ads,
9964 system-linux-mips.ads: New files.
9966 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
9968 * sysdep.c: add __GLIBC__ to the #ifdef preprocessor macros to
9969 detect systems using GNU libc.
9975 2008-04-07 Aurelien Jarno <aurelien@aurel32.net>
9977 * s-osinte-linux-kfreebsd.ads (SC_NPROCESSORS_ONLN): New
9978 constant constant for sysconf call.
9979 (bit_field): New packed boolean type used by cpu_set_t.
9980 (cpu_set_t): New type corresponding to the C type with
9981 the same name. Note that on the Ada side we use a bit
9982 field array for the affinity mask. There is not need
9983 for the C macro for setting individual bit.
9984 (pthread_setaffinity_np): New imported routine.
9985 * Makefile.in: Use s-tasinf-linux.ads and s-tasinf-linux.adb
9988 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
9990 * utils2.c (build_binary_op): Fold ARRAY_REF and ARRAY_RANGE_REF too.
9992 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
9994 * gigi.h (create_subprog_type): Remove returns_with_dsp parameter.
9995 * decl.c (gnat_to_gnu_entity): Adjust for above new prototype.
9996 * utils.c (create_subprog_type): Remove returns_with_dsp parameter.
9997 * trans.c (gnat_to_gnu) <N_Return_Statement>: Remove code dealing with
9998 Return by Depressed Stack Pointer.
10000 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
10002 * decl.c (is_variable_size): Do not unconditionally return false
10003 on non-strict alignment platforms.
10005 2008-04-06 Eric Botcazou <ebotcazou@adacore.com>
10007 * decl.c (rest_of_type_decl_compilation_no_defer): New local function
10008 used to process all the variants of the specified type.
10009 (gnat_to_gnu_entity): Invoke rest_of_type_decl_compilation for enumeral
10010 types too. Call rest_of_type_decl_compilation_no_defer if undeferring.
10011 (rest_of_type_decl_compilation): Likewise.
10012 * utils.c (gnat_pushdecl): Propagate the name to all variants of type.
10014 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
10016 * gigi.h (insert_block): Kill.
10017 * utils.c (insert_block): Kill.
10019 2008-04-02 Eric Botcazou <ebotcazou@adacore.com>
10021 * decl.c (gnat_to_gnu_entity) <object>: For a constant object whose
10022 type has self-referential size, get the size from the initializing
10023 expression directly if it is also a constant whose nominal type
10024 has self-referential size.
10026 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10029 * g-soccon-darwin.ads: Define new constant IP_PKTINFO.
10032 * env.c: Always include crt_externs.h if __APPLE__ is defined.
10033 (__gnat_setenv): Use setenv instead of putenv if __APPLE__ is defined.
10035 2008-04-01 Andreas Jaeger <aj@suse.de>
10037 * g-soccon-linux-ppc.ads: Add new constants SO_REUSEPORT and
10040 2008-03-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10042 * g-table.adb, g-tasloc.adb, g-traceb.ads,
10043 g-trasym.adb, g-utf_32.adb, gen-soccon.c, gigi.h, gmem.c,
10044 gnatbind.adb, gnatchop.adb, gnatcmd.adb,
10045 gnatcmd.ads, gnatdll.adb, gnatfind.adb,
10046 gnatlink.adb, gnatmem.adb, gprep.adb,
10047 i-cstrea-vms.adb, i-cstrin.adb, i-pacdec.ads,
10048 i-vxwork.ads, impunit.adb, init.c, initialize.c, inline.adb,
10049 layout.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
10050 lib-xref.ads, lib.adb, link.c, live.ads,
10051 make.adb, makegpr.adb, makeutl.adb, math_lib.adb,
10052 mdll-utl.adb, mdll.ads, memroot.adb, memroot.ads,
10053 misc.c, mlib-prj.adb, mlib-tgt-hpux.adb,
10054 mlib-tgt-linux.adb, mlib-tgt-tru64.adb, mlib-tgt.ads,
10055 namet.adb, namet.h, nlists.adb, nlists.ads,
10056 nlists.h, opt.ads, osint-b.ads, osint-c.adb,
10057 osint-c.ads, osint.adb, osint.ads, output.ads,
10058 par-ch10.adb, par-ch12.adb, par-ch2.adb, par-ch3.adb,
10059 par-ch4.adb, par-ch5.adb, par-ch6.adb, par-ch9.adb,
10060 par-endh.adb, par-labl.adb, par-prag.adb,
10061 par-sync.adb, par-tchk.adb, par-util.adb,
10062 par.adb, prep.adb, prep.ads, prepcomp.adb, prj-attr.ads,
10063 prj-dect.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
10064 prj-nmsc.ads, prj-pp.adb, prj-proc.adb,
10065 prj-strt.ads, prj-tree.ads, prj.adb, prj.ads: Fix comment typos.
10067 2008-03-31 Eric Botcazou <ebotcazou@adacore.com>
10069 * decl.c (gnat_to_gnu_entity) <object>: Do not force a non-null
10070 size if it has overflowed.
10072 2008-03-31 Olivier Hainque <hainque@adacore.com>
10073 Eric Botcazou <ebotcazou@adacore.com>
10075 * utils2.c (find_common_type): Document assumption on t1/t2 vs
10076 lhs/rhs. Force use of lhs type if smaller, whatever the modes.
10078 2008-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10080 * a-textio.ads, a-witeio.ads, a-ztexio.ads, ali.ads,
10081 einfo.ads, erroutc.adb, erroutc.ads, exp_attr.adb,
10082 exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
10083 exp_pakd.ads, exp_prag.adb, exp_smem.adb,
10084 exp_tss.ads, exp_util.adb, exp_util.ads,
10085 exp_vfpt.adb, freeze.adb, freeze.ads,
10086 frontend.adb, g-alleve.adb, g-altcon.adb,
10087 g-altive.ads, g-alveop.ads, g-alvevi.ads,
10088 g-arrspl.adb, g-busorg.ads, g-calend.adb,
10089 g-calend.ads, g-casuti.ads, g-cgideb.adb,
10090 g-comlin.adb, g-comlin.ads, g-curexc.ads,
10091 g-debpoo.adb, g-debpoo.ads, g-decstr.adb,
10092 g-dirope.adb, g-dirope.ads, g-dynhta.ads,
10093 g-dyntab.adb, g-encstr.ads, g-excact.ads,
10094 g-except.ads, g-expect.ads, g-heasor.adb,
10095 g-hesora.adb, g-hesorg.adb, g-htable.ads,
10096 g-locfil.ads, g-md5.adb, g-md5.ads,
10097 g-memdum.ads, g-moreex.ads, g-os_lib.adb,
10098 g-pehage.adb, g-pehage.ads, g-regexp.adb,
10099 g-regexp.ads, g-regpat.adb, g-regpat.ads,
10100 g-soccon-aix.ads, g-soccon-darwin.ads,
10101 g-soccon-freebsd.ads, g-soccon-hpux-ia64.ads,
10102 g-soccon-hpux.ads, g-soccon-irix.ads,
10103 g-soccon-linux-64.ads, g-soccon-linux-ppc.ads,
10104 g-soccon-linux-x86.ads, g-soccon-lynxos.ads,
10105 g-soccon-mingw.ads, g-soccon-solaris-64.ads,
10106 g-soccon-solaris.ads, g-soccon-tru64.ads,
10107 g-soccon-vms.ads, g-soccon-vxworks.ads,
10108 g-soccon.ads, g-socket.adb, g-socket.ads,
10109 g-socthi-mingw.adb, g-socthi-vms.adb,
10110 g-socthi-vxworks.adb, g-soliop-mingw.ads,
10111 g-soliop-solaris.ads, g-soliop.ads, g-spipat.adb,
10112 g-spipat.ads, g-string.adb, g-stsifd-sockets.adb: Fix comment
10115 2008-03-27 Eric Botcazou <ebotcazou@adacore.com>
10117 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Also set the public flag
10118 if the procedure is imported.
10120 2008-03-26 Arnaud Charlet <charlet@adacore.com>
10122 * adaint.c: Fix warnings.
10124 2008-03-26 Arnaud Charlet <charlet@adacore.com>
10126 * g-dirope.ads, g-dirope.adb: (Dir_Type_Value): Moved to spec.
10128 2008-03-26 Arnaud Charlet <charlet@adacore.com>
10130 * a-witeio.adb: Fix problem with Current_Output (introduce Self).
10131 Fix problem of status check for null file
10133 2008-03-26 Arnaud Charlet <charlet@adacore.com>
10135 * s-proinf-irix-athread.ads, s-vxwork-mips.ads,
10136 s-traces.ads, s-vxwork-arm.ads, s-vxwork-ppc.ads, s-vxwork-sparcv9.ads,
10137 s-tasinf-mingw.ads, s-tasinf-linux.ads, s-tasdeb.ads, mlib-tgt.ads,
10138 i-cstrin.ads, uintp.adb, g-catiio.adb, s-vmexta.ads,
10139 s-trafor-default.ads, s-vxwork-m68k.ads: Minor reformatting. Update
10142 2008-03-26 Thomas Quinot <quinot@adacore.com>
10145 * g-socket.ads, g-socket.adb (Options, Set_Socket_Option,
10146 Get_Socket_Option): Add support for Receive_Packet_Info.
10148 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
10149 g-soccon-irix.ads, g-soccon-hpux.ads, g-soccon-solaris.ads,
10150 g-soccon-vms.ads, g-soccon-mingw.ads, g-soccon-freebsd.ads,
10151 g-soccon-hpux-ia64.ads, g-soccon-solaris-64.ads, g-soccon-darwin.ads,
10152 g-soccon-lynxos.ads, g-soccon-linux-64.ads, g-soccon-linux-x86.ads: Add
10153 new constants SO_REUSEPORT and IP_PKTINFO
10155 2008-03-26 Robert Dewar <dewar@adacore.com>
10157 * a-taster.adb, s-shasto.adb, s-soflin.adb, s-taasde.adb, s-taenca.adb,
10158 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
10159 a-intnam-lynxos.ads, a-retide.adb, a-intnam-tru64.ads, a-intnam-aix.ads,
10160 a-intnam-irix.ads, a-intnam-hpux.ads, a-intnam-linux.ads,
10161 a-intnam-solaris.ads, a-caldel-vms.adb, a-intnam-vms.ads,
10162 a-excpol-abort.adb, a-intnam-mingw.ads, s-interr.adb, s-interr.ads,
10163 s-intman.ads, s-gloloc.adb, s-osinte-lynxos-3.ads,
10164 s-interr-sigaction.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
10165 a-intnam-freebsd.ads, s-osinte-freebsd.ads, s-osinte-lynxos.ads,
10166 s-taspri-lynxos.ads, s-osinte-tru64.ads, s-osinte-tru64.ads,
10167 s-taspri-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
10168 s-osinte-hpux-dce.ads, s-taprop-hpux-dce.adb, s-taspri-hpux-dce.ads,
10169 s-osinte-linux.ads, s-osinte-dummy.ads, s-taprop-dummy.adb,
10170 s-taspri-dummy.ads, s-interr-dummy.adb, s-osinte-solaris.ads,
10171 s-osinte-mingw.ads, s-taprop-solaris.adb, s-taspri-solaris.ads,
10172 s-inmaop-vms.adb, s-interr-vms.adb, s-intman-vms.ads, s-osinte-vms.ads,
10173 s-osinte-vms.ads, s-taprop-vms.adb, s-taspri-vms.ads,
10174 s-taspri-mingw.ads, s-interr-vxworks.adb, s-inmaop-posix.adb,
10175 s-intman-vxworks.ads, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
10176 s-taspri-vxworks.ads, s-taspri-posix.ads, a-caldel.adb, a-calend.adb,
10177 a-elchha.adb, a-dynpri.adb, a-except.adb, a-except.ads, a-interr.ads,
10178 a-textio.adb, a-tigeau.ads, atree.adb, s-taprob.adb, s-taprop.ads,
10179 s-tarest.adb, s-tarest.ads, s-tasini.adb, s-taskin.adb, s-taskin.ads,
10180 s-tasque.adb, s-tasren.adb, s-tasren.ads, s-tassta.adb, s-tassta.ads,
10181 s-tasuti.adb, s-tataat.adb, s-tataat.ads, s-tpoben.adb, s-tpoben.ads,
10182 s-tpobop.adb, s-tpobop.ads, s-tposen.adb, s-tposen.ads, s-valrea.adb,
10183 s-valuti.adb, a-intnam-darwin.ads, s-osinte-darwin.ads, s-solita.adb,
10184 a-ztinau.ads, s-osinte-linux-hppa.ads, a-except-2005.adb,
10185 a-except-2005.ads, a-rttiev.adb, s-osinte-vxworks6.ads, s-regexp.adb,
10186 s-tasloc.adb: Minor reformatting.
10188 Remove "used for" sections from comments.
10190 2008-03-26 Robert Dewar <dewar@adacore.com>
10192 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
10193 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
10194 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
10195 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
10196 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
10197 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
10198 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
10199 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
10200 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
10201 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
10202 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
10203 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
10204 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
10205 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
10206 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
10207 double spaced if it fits on one line and otherwise single spaced.
10209 2008-03-26 Arnaud Charlet <charlet@adacore.com>
10211 * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-lynxos.adb,
10212 s-taprop-linux.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
10213 s-taprop-posix.adb (Create_Task): Do not attempt to set task priority
10214 or task info if the thread could not be created.
10216 2008-03-26 Arnaud Charlet <charlet@adacore.com>
10218 * gnatvsn.ads (Library_Version): Bump to 4.4.
10219 (Current_Year): Bump to 2008.
10221 2008-03-26 Robert Dewar <dewar@adacore.com>
10223 * ali.ads, ali.adb (Optimize_Alignment_Setting): New field in ALI record
10225 * bcheck.adb (Check_Consistent_Optimize_Alignment): New procedure
10227 * debug.adb: Add debug flags d.r and d.v
10228 Add debug flag .T (Optimize_Alignment (Time))
10229 Add debug flag .S (Optimize_Alignment (Space))
10231 * freeze.adb (Freeze_Record_Type): Set OK_To_Reorder_Components
10232 depending on setting of relevant debug flags.
10233 Replace use of Warnings_Off by Has_Warnings_Off
10234 (Freeze_Entity): In circuit for warning on suspicious convention
10235 actuals, do not give warning if subprogram has same entity as formal
10236 type, or if subprogram does not come from source.
10237 (Freeze_Entity): Don't reset Is_Packed for fully rep speced record
10238 if Optimize_Alignment set to Space.
10240 * frontend.adb: Add call to Sem_Warn.Initialize
10241 Add call to Sem_Warn.Output_Unused_Warnings_Off_Warnings
10242 Reset Optimize_Alignment mode from debug switches .S and .T
10244 * layout.adb (Layout_Composite_Object): Rewritten for
10245 Optimize_Aligment pragma.
10247 * lib-writ.ads, lib-writ.adb: New Ox parameter for Optimize_Alignment
10250 * opt.ads, opt.adb: (Optimize_Alignment): New global switch
10252 * par-prag.adb (N_Pragma): Chars field removed, use Chars
10253 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
10254 this change. Add entry for pragma Optimize_Alignment
10256 * sem_prag.adb (N_Pragma): Chars field removed, use Chars
10257 (Pragma_Identifier (..
10258 instead, adjustments throughout to accomodate this change.
10259 (Process_Compile_Time_Warning_Or_Error): Use !! for generated msg
10260 (Favor_Top_Level): Use new function Is_Access_Subprogram_Type
10261 Add implementation of pragma Optimize_Alignment
10263 2008-03-26 Vincent Celier <celier@adacore.com>
10265 * a-szuzti.adb, a-swuwti.adb, a-suteio.adb (functions Get_Line):
10266 Improve memory usage to avoid use of stack.
10268 2008-03-26 Robert Dewar <dewar@adacore.com>
10270 * a-teioed.ads: Correct value of Default_Fill
10272 * a-teioed.adb (Image): Use Fill_Character instead of '*' to fill
10274 2008-03-26 Robert Dewar <dewar@adacore.com>
10276 * a-ztexio.adb, a-ztexio.ads, a-witeio.ads, a-witeio.adb: Fix problem
10277 with Current_Output (introduce Self).
10279 2008-03-26 Robert Dewar <dewar@adacore.com>
10281 * checks.adb (Ensure_Valid): Capture valid status if possible
10284 2008-03-26 Robert Dewar <dewar@adacore.com>
10286 * stand.ads: Deal with reordering of package standard declarations
10288 * cstand.adb: Put package Standard declarations in proper order
10290 2008-03-26 Robert Dewar <dewar@adacore.com>
10292 * einfo.ads, einfo.adb (N_Pragma): Chars field removed, use Chars
10293 (Pragma_Identifier (.. instead.
10294 (OK_To_Reorder_Components): New flag
10295 (Has_Entries): Code cleanup.
10296 (Warnings_Off_Used): New flag
10297 (Warnings_Off_Used_Unmodified): New flag
10298 (Warnings_Off_Used_Unreferenced): New flag
10299 (Has_Warnings_Off): New function
10300 (Has_Unmodified): New function
10301 (Has_Unreferenced): New function
10302 (Is_Trivial_Subprogram): New flag
10303 (Is_Static_Dispatch_Table_Entity): New attribute.
10304 Change name Access_Subprogram_Type_Kind to Access_Subprogram_Kind
10305 (more consistent with other similar names)
10306 (Access_Subprogram_Type): New classification function
10308 2008-03-26 Robert Dewar <dewar@adacore.com>
10310 * errout.ads: Document new !! insertion sequence
10312 * errout.adb (N_Pragma): Chars field removed, use Chars
10313 (Pragma_Identifier (.. instead.
10314 Replace use of Warnings_Off by Has_Warnings_Off
10315 (Error_Msg_Internal): Don't delete warning ending in !!
10317 2008-03-26 Robert Dewar <dewar@adacore.com>
10319 * par.adb (Check_No_Right_Paren): Removed no longer used
10321 * par-ch10.adb (N_Pragma): Chars field removed, use Chars
10322 (Pragma_Identifier (.. instead.
10324 * par-ch10.adb (P_Subunit): Improvement in error recovery and message
10326 * par-tchk.adb, par-ch5.adb, par-ch6.adb, par-ch3.adb,
10327 par-ch4.adb: Minor improvements in error recovery and messages.
10329 * erroutc.adb (Test_Style_Warning_Serious_Msg): Treat style msgs as
10332 * par-ch9.adb: Minor improvements in error recovery and messages
10333 (P_Protected): Better error recovery for "protected type x;"
10335 * par-util.adb: Minor improvements in error recovery and messages
10336 (Check_No_Right_Paren): Removed no longer used
10338 2008-03-26 Ed Schonberg <schonberg@adacore.com>
10340 * exp_aggr.adb (Replace_Type): When checking for self-reference, verify
10341 that the prefix of an attribute is the type of the aggregate being
10344 2008-03-26 Javier Miranda <miranda@adacore.com>
10345 Robert Dewar <dewar@adacore.com>
10347 * exp_attr.adb (N_Pragma): Chars field removed.
10348 (Expand_N_Attribute_Reference): If the designated type associated with
10349 attribute 'Unrestricted_Access is a subprogram entity then replace it
10350 by an E_Subprogram_Type itype.
10351 Implement attribute Old
10353 * sem_attr.ads (Attribute_Class_Array): Move to snames.ads
10355 * sem_attr.adb (Build_Access_Subprogram_Itype): Add documentation.
10357 New_Internal_Entity by call to Create_Itype to centralize calls
10358 building itypes, ad propagate the convention of the designated
10359 subprogram. In addition, disable the machinery cleaning constant
10360 indications from all entities in current scope when 'Unrestricted_Access
10361 corresponds with a node initializing a dispatch table slot.
10362 (Analyze_Attribute): Parameterless attributes returning a string or a
10363 type will not be called with improper arguments, so we can remove junk
10364 code that was dealing with this case.
10365 Implement attribute Old
10367 * snames.ads, snames.h, snames.adb: Add entries for attribute Old
10368 Add entry for pragma Optimize_Alignment
10369 New standard names Sync and Synchronize
10371 2008-03-26 Robert Dewar <dewar@adacore.com>
10372 Arnaud Charlet <charlet@adacore.com>
10374 * exp_ch11.adb (Expand_At_End_Handler): Set From_At_End flag on raise
10376 (No_Exception_Propagation_Active): New function.
10377 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
10378 Update comments, and review all uses of No_Exception_Propagation, which
10379 are now correct and in sync with what gigi expects.
10381 * restrict.ads, restrict.adb (No_Exception_Propagation_Active): New
10383 (Expand_Exception_Handlers): Use No_Exception_Propagation_Active.
10384 Update comments, and review all uses of No_Exception_Propagation, which
10385 are now correct and in sync with what gigi expects.
10387 2008-03-26 Ed Schonberg <schonberg@adacore.com>
10389 * sem_ch3.adb (Access_Definition): If the access type is the return
10390 result of a protected function, create an itype reference for it
10391 because usage will be in an inner scope from the point of declaration.
10392 (Build_Derived_Record_Type): Inherit Reverse_Bit_Order and
10393 OK_To_Reorder_Components.
10394 (Make_Index): If an overloaded range includes a universal integer
10395 interpretation, resolve to Standard.Integer.
10396 (Analyze_Subtype_Indication): Copy Convention to subtype
10397 (Check_Abstract_Interfaces): Complete semantic checks on the legality of
10398 limited an synchronized progenitors in type declaration and private
10399 extension declarations.
10401 * exp_ch13.adb (Expand_N_Freeze_Entity): If the scope of the entity is a
10402 protected subprogram body, determine proper scope from subprogram
10405 2008-03-26 Robert Dewar <dewar@adacore.com>
10407 * exp_ch4.adb (Expand_N_Op_Concat): Remove special tests for
10410 2008-03-26 Gary Dismukes <dismukes@adacore.com>
10412 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Suppress generation
10413 of a heap allocator for a limited unconstrained function return when
10414 resstriction No_Allocators is active.
10415 (Analyze_Allocator): The restriction No_Allocators is now only checked
10416 on allocators that have Comes_From_Source set, as per RM-H.4(7).
10418 * sem_ch4.adb (Expand_N_Extended_Return_Statement): Suppress generation
10419 of a heap allocator for a limited unconstrained function return when
10420 resstriction No_Allocators is active.
10421 (Analyze_Allocator): The restriction No_Allocators is now only checked
10422 on allocators that have Comes_From_Source set, as per RM-H.4(7).
10423 (Has_Fixed_Op): If the name in a function call is Standard."*" and the
10424 operands are fixed-point types, the universal_fixed predefined operation
10425 is used, regardless of whether the operand type (s) have a primitive
10426 operation of the same name.
10428 2008-03-26 Javier Miranda <miranda@adacore.com>
10430 * exp_disp.adb (Make_DT, Make_Secondary_DT): Set attribute
10431 Is_Static_Dispatch_Table
10432 (Build_Dispatch_Tables): Replace calls to Exchange_Entities() by calls
10433 to Exchange_Declarations to exchange the private and full-view. Bug
10434 found working in this issue.
10435 (Expand_Dispatching_Call): Propagate the convention of the subprogram
10436 to the subprogram pointer type.
10437 (Make_Secondary_DT): Replace generation of Prim'Address by
10438 Address (Prim'Unrestricted_Access)
10439 (Make_DT): Replace generation of Prim'Address by
10440 Address (Prim'Unrestricted_Access)
10441 (Make_Disp_*_Bodies): When compiling for a restricted profile, use
10442 simple call form for single entry.
10443 (Make_DT): Handle new contents of Access_Disp_Table (access to dispatch
10444 tables of predefined primitives).
10445 (Make_Secondary_DT): Add support to handle access to dispatch tables of
10446 predefined primitives.
10447 (Make_Tags): Add entities to Access_Dispatch_Table associated with
10448 access to dispatch tables containing predefined primitives.
10450 * exp_ch6.adb (N_Pragma): Chars field removed, use Chars
10451 (Pragma_Identifier (.. instead, adjustments throughout to accomodate
10453 (Register_Predefined_DT_Entry): Updated to handle the new contents
10454 of attribute Access_Disp_Table (pointers to dispatch tables containing
10455 predefined primitives).
10457 * exp_util.ads, exp_util.adb (Corresponding_Runtime_Package): New
10459 (Find_Interface_ADT): Updated to skip the new contents of attribute
10460 Access_Dispatch_Table (pointers to dispatch tables containing predefined
10463 * sem_util.adb (Has_Abstract_Interfaces): Add missing support for
10465 (Set_Convention): Use new function Is_Access_Subprogram_Type
10466 (Collect_Interfaces_Info): Updated to skip the new contents of attribute
10467 Access_Dispatch_Table (pointers to dispatch tables containing predefined
10470 * exp_atag.ads, exp_atag.adb (Build_Inherit_Predefined_Prims): Improve
10471 expanded code avoiding calls to Build_Predef_Prims.
10472 (Build_Set_Predefined_Prim_Op_Address): Improve expanded code avoiding
10473 call to Build_Get_Predefined_Prim_Op_Address.
10475 2008-03-26 Javier Miranda <miranda@adacore.com>
10477 * exp_ch7.adb (Make_Clean): Code cleanup using the new centralized
10478 subprogram Corresponding_Runtime_Package to know the runtime package
10479 that will provide support to a given protected type.
10481 * exp_ch9.adb (Add_Private_Declarations,
10482 Build_Protected_Subprogram_Call,
10483 Build_Protected_Entry, Build_Simple_Entry_Call,
10484 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
10485 Expand_N_Timed_Entry_Call, Make_Initialize_Protection): Code
10486 cleanup using the new centralized subprogram Corresponding_Runtime
10487 Package to know the runtime package that provides support to
10488 a given protected type.
10490 2008-03-26 Ed Schonberg <schonberg@adacore.com>
10492 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If the component
10493 assignment is within the initialization procedure for a packed array,
10494 and Initialize_Scalars is enabled, compile right-hand side with checks
10495 off, because the value is purposely out of range.
10497 2008-03-26 Vincent Celier <celier@adacore.com>
10499 * gnatcmd.adb: Add processing for GNAT SYNC
10501 * vms_conv.ads: (Command_Type): Add command Sync
10503 * vms_conv.adb (Initialize): Add Command_List data for new command Sync
10505 * vms_data.ads: Add entries for -gnatw.w
10506 Add qualifier for gnatstub --header-file option
10507 Add switches for GNAT SYNC
10509 * prj-attr.ads, prj-attr.adb: Add new package Synchronize for GNAT SYNC
10510 (Add_Package_Name): New procedure
10511 (Package_Name_List): New function
10512 (Initialize): Add known package names to the list
10513 (Register_New_Package): Add the new package name to the list
10515 2008-03-26 Robert Dewar <dewar@adacore.com>
10517 * g-pehage.adb, g-regist.adb, g-spipat.ads, g-spipat.adb,
10518 s-asthan.adb, s-parint.adb, s-rpc.adb, s-stchop.adb: Replace
10519 Raise_Exception by "raise with" construct.
10521 2008-03-26 Pascal Obry <obry@adacore.com>
10523 * Makefile.in: Add proper GNAT.Serial_Communications implementation on
10524 supported platforms.
10526 * Makefile.rtl: Add g-sercom.o.
10528 * impunit.adb: Add g-sercom.adb.
10530 * s-crtl.ads (open): New routine.
10534 * s-osinte-mingw.ads (BYTE): New type.
10536 (OVERLAPPED): Likewise.
10537 (GENERIC_READ): New constant.
10538 (GENERIC_WRITE): Likewise.
10539 (OPEN_EXISTING): Likewise.
10540 (PSECURITY_ATTRIBUTES): Removed this type, use anonymous access
10542 (CreateFile): New routine.
10543 (WriteFile): Likewise.
10544 (ReadFile): Likewise.
10545 (CloseHandle): Move next to the other file oriented routines.
10547 * g-sercom.ads: New unit.
10549 * g-sercom.adb: Default implementation, calls to this unit will raise
10550 a program error exception.
10552 * g-sercom-mingw.adb, g-sercom-linux.adb: Windows and
10553 GNU/Linux implementations.
10555 2008-03-26 Robert Dewar <dewar@adacore.com>
10557 * itypes.adb (Create_Itype): Use new name Access_Subprogram_Kind
10559 * sem_ch13.adb (Validate_Unchecked_Conversion): Give warning for
10560 unchecked conversion for different conventions only for subprogram
10561 pointers or on VMS.
10563 2008-03-26 Vincent Celier <celier@adacore.com>
10565 * osint-c.adb (Set_Library_Info_Name): Use canonical case file names
10566 to check if the specified object file is correct.
10568 2008-03-26 Thomas Quinot <quinot@adacore.com>
10570 * sem_cat.adb (Validate_RACW_Primitives): Do not rely on
10571 Comes_From_Source to exclude primitives from being checked. We want to
10572 exclude predefined primitives only, so use the appropriate specific
10573 predicate. Also, flag a formal parameter of an anonymous
10574 access-to-subprogram type as illegal for a primitive operation of a
10575 remote access to class-wide type.
10577 2008-03-26 Vincent Celier <celier@adacore.com>
10579 * prj-dect.adb (Parse_Package_Declaration): When a package name is not
10580 known, check if it may be a missspelling of a known package name. In
10581 not verbose, not mode, issue warnings only if the package name is a
10582 possible misspelling.
10583 In verbose mode, always issue a warning for a not known package name,
10584 plus a warning if the name is a misspelling of a known package name.
10586 * prj-part.adb (Post_Parse_Context_Clause): Modify so that only non
10587 limited withs or limited withs are parse during one call.
10588 (Parse_Single_Project): Post parse context clause in two passes: non
10589 limited withs before current project and limited withs after current
10592 * prj-proc.adb (Imported_Or_Extended_Project_From): Returns an extended
10593 project with the name With_Name, even if it is only extended indirectly.
10594 (Recursive_Process): Process projects in order: first single withs, then
10595 current project, then limited withs.
10597 * prj-tree.adb (Imported_Or_Extended_Project_Of): Returns an extended
10598 project with the name With_Name, even if it is only extended indirectly.
10600 2008-03-26 Robert Dewar <dewar@adacore.com>
10602 * scn.adb (Initialize_Scanner): Format messages belong on standard error
10604 2008-03-26 Ed Schonberg <schonberg@adacore.com>
10606 * sem_ch10.adb (Analyze_Compilation_Unit): if a unit in the context is
10607 a generic subprogram that is imported, do not attempt to compile
10610 * sem_ch12.adb (Instantiate_Subprogram_Body): if the generic is
10611 imported, do not generate a raise_program_error for the non-existent
10613 (Pre_Analyze_Actuals): If an error is detected during pre-analysis,
10614 perform minimal name resolution on the generic to avoid spurious
10616 (Find_Actual_Type): the designated type of the actual in a child unit
10617 may be declared in a parent unit without being an actual.
10619 2008-03-26 Robert Dewar <dewar@adacore.com>
10621 * sem_ch11.adb: Fix No_Exception_Restriction violation for SJLJ
10622 * sinfo.ads, sinfo.adb (From_At_End): New flag
10624 2008-03-26 Ed Schonberg <schonberg@adacore.com>
10626 * sem_ch6.adb (Analyze_Subprogram_Body): Remove spurious check on
10627 operations that have an interface parameter.
10628 (Analyze_Subprogram_Body): Set Is_Trivial_Subprogram flag
10629 Don't treat No_Return call as raise.
10631 * sem_disp.adb (Check_Dispatching_Operations): apply check for
10632 non-primitive interface primitives to access parameters, not to all
10633 parameters of an access type.
10635 2008-03-26 Ed Schonberg <schonberg@adacore.com>
10637 * sem_ch7.adb (Install_Parent_Private_Declarations): If the private
10638 declarations of a parent unit are made visible when compiling a child
10639 instance, the parent is not a hidden open scope, even though it may
10640 contain other pending instance.
10642 * sem_ch8.adb (Restore_Scope_Stack): If an entry on the stack is a
10643 hidden open scope for some child instance, it does affect the
10644 visibility status of other stach entries.
10645 (Analyze_Object_Renaming): Check that a class-wide object cannot be
10646 renamed as an object of a specific type.
10648 2008-03-26 Robert Dewar <dewar@adacore.com>
10650 * sem_res.adb (Check_Infinite_Recursion): Diagnose definite infinite
10651 recursion and raise SE directly.
10652 (Resolve_Actuals): Reset Never_Set_In_Source if warnings off is
10653 set for formal type for IN mode parameter.
10655 2008-03-26 Robert Dewar <dewar@adacore.com>
10657 * sem_warn.ads, sem_warn.adb (Warnings_Off_Pragmas): New table
10658 (Initialize): New procedure
10659 (Output_Warnings_Off_Warnings): New procedure
10660 (Check_References): Suppress certain msgs if Is_Trivial_Subprogram
10661 (Output_Non_Modifed_In_Out_Warnings): Ditto
10662 (Warn_On_Unreferenced_Entity): Ditto
10664 2008-03-26 Vincent Celier <celier@adacore.com>
10666 * a-direct.adb (Start_Search): Raise Use_Error if the directory is not
10669 2008-03-26 Matthew Heaney <heaney@adacore.com>
10671 * a-ciorse.ads, a-cidlli.ads, a-cdlili.ads, a-cihase.ads, a-cohase.ads,
10672 a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-coorse.ads:
10673 Marked with clauses as private, and controlled operations as overriding
10675 2008-03-26 Robert Dewar <dewar@adacore.com>
10677 * g-byorma.adb (Read_BOM): Reorder tests so that UTF_32 is recognized
10679 2008-03-26 Robert Dewar <dewar@adacore.com>
10681 * back_end.adb, back_end.ads: Minor reformatting
10683 * bindgen.adb: Minor clarification of comments
10685 * fname.ads: Minor comment fixes
10687 * g-altive.ads, g-catiio.ads, g-trasym.ads, prj.ads,
10688 prj-nmsc.adb, sem_aggr.adb: Minor reformatting
10690 * xeinfo.adb, xnmake.adb, xsinfo.adb, xtreeprs.adb,
10691 xsnames.adb: Remove warnings off pragma no longer needed
10693 * a-catizo.ads, a-calari.ads, a-calfor.adb,
10694 a-calfor.ads: Fix header.
10696 2008-03-26 Tristan Gingold <gingold@adacore.com>
10698 * init.c: Do not adjust pc for HPARITH on alpha/vms.
10700 2008-03-26 Robert Dewar <dewar@adacore.com>
10702 * lib-xref.adb: (OK_To_Set_Reference): New function
10703 (Generate_Reference): Don't set referenced from occurrence in Warnings,
10704 Unmodified, or Unreferenced pragma
10706 2008-03-26 Robert Dewar <dewar@adacore.com>
10708 * alloc.ads: Add entries for Warnings_Off_Pragmas table
10710 2008-03-26 GNAT Script <nobody@adacore.com>
10712 * Make-lang.in: Makefile automatically updated
10714 2008-03-26 Robert Dewar <dewar@adacore.com>
10716 * tbuild.ads, tbuild.adb, trans.c, sprint.adb, exp_prag.adb, decl.c,
10717 par-ch2.adb, sem_elab.adb, sem_util.ads (N_Pragma): Chars field
10718 removed, use Chars (Pragma_Identifier (.. instead, adjustments
10719 throughout to accomodate this change.
10721 * s-pooglo.ads, s-pooloc.ads: Minor comment updates
10723 * exp_dbug.adb: Use Sem_Util.Set_Debug_Info_Needed (not
10724 Einfo.Set_Needs_Debug_Info)
10726 2008-03-26 Robert Dewar <dewar@adacore.com>
10728 * gnat_ugn.texi: Add documentation for -gnatw.w/-gnatw.W
10729 Add description for the new gnatstub option '--header-file'
10730 clarification of -gnatwz/-gnatwZ
10731 Add a "Irix-Specific Considerations" section to document the need to
10732 set LD_LIBRARY_PATH when using the default shared runtime library.
10733 Added documentation for both gcov and gprof.
10735 * gnat_rm.texi: Document that pragma Compile_Time_Warning generates
10736 messages that are not suppressed when clients are compiled.
10737 Add documentation of s-pooglo s-pooloc
10738 Document the new GNAT.Serial_Communications API.
10739 Add documentation for 'Old attribute
10740 Add description of pragma Optimize_Alignment
10742 * ug_words: Add entries for -gnatw.w -gnatw.W
10744 * usage.adb: Add line for -gnatw.w (warn on warnings off)
10746 2008-03-25 Eric Botcazou <ebotcazou@adacore.com>
10749 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
10751 * decl.c (maybe_pad_type): Avoid padding an integral type when
10752 bumping its alignment is sufficient.
10754 2008-03-25 Arnaud Charlet <charlet@adacore.com>
10756 * exp_ch6.adb, exp_disp.adb: Update copyright notice.
10757 Fix wrong formatting (lines too long)
10759 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10761 * 9drpc.adb, a-caldel-vms.adb, a-caldel.adb,
10762 a-calend-vms.adb, a-calend.adb, a-calend.ads,
10763 a-calfor.adb, a-chahan.ads, a-chtgke.adb,
10764 a-cihama.ads, a-ciorse.adb, a-clrefi.ads,
10765 a-cohama.ads, a-comlin.ads, a-coorse.adb,
10766 a-crbtgk.adb, a-direct.adb, a-except-2005.adb,
10767 a-except-2005.ads, a-except.adb, a-except.ads,
10768 a-exexda.adb, a-exexpr-gcc.adb, a-exexpr.adb,
10769 a-exextr.adb, a-filico.ads, a-finali.ads,
10770 a-intnam-aix.ads, a-intnam-solaris.ads, a-ngcefu.adb,
10771 a-ngelfu.adb, a-numaux-darwin.adb, a-numeri.ads,
10772 a-sequio.ads, a-strbou.ads, a-strfix.adb,
10773 checks.adb, exp_ch3.adb, exp_ch4.adb,
10774 exp_ch4.ads, exp_ch5.adb, exp_ch6.adb,
10775 exp_ch6.ads, exp_ch7.adb, exp_ch7.ads,
10776 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb,
10777 exp_dbug.ads, exp_disp.adb, exp_dist.adb,
10778 exp_dist.ads, exp_fixd.adb, exp_fixd.ads: Fix comment typos.
10780 2008-03-24 Robert Dewar <dewar@adacore.com>
10782 * s-tpopsp-posix.adb, s-tpopsp-solaris.adb, s-tpopsp-posix-foreign.adb,
10783 s-tpopsp-lynxos.adb, s-tpopde-vms.ads, s-tpopde-vms.adb,
10784 s-tpopsp-vxworks.adb, s-casi16.adb, s-caun16.adb, s-inmaop.ads,
10785 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-tpinop.adb,
10786 s-tpinop.ads, s-tporft.adb, a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb,
10787 a-crbtgk.ads, a-crbtgk.adb, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
10788 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
10789 a-cgcaso.adb, a-cgaaso.adb, a-ciormu.adb, a-cihase.adb, a-swuwha.ads,
10790 a-rbtgso.ads, a-cgaaso.ads, a-cgaaso.ads, a-ciorma.adb, a-chtgke.ads,
10791 a-chtgke.adb, a-llfzti.ads, a-ztenau.adb, a-ztenau.ads, a-stzhas.ads,
10792 a-szbzha.ads, a-szbzha.adb, a-crdlli.ads, a-crdlli.ads, a-crdlli.adb,
10793 i-forbla-darwin.adb, i-forbla.ads, s-regexp.adb, a-nllrar.ads,
10794 a-nlrear.ads, a-nucoar.ads, a-nurear.ads, i-forlap.ads, s-gearop.adb,
10795 s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb, s-gecola.ads,
10796 s-gerebl.adb, s-gerela.ads, a-swuwha.adb, i-forbla-unimplemented.ads,
10797 double spaced if it fits on one line and otherwise single spaced.
10799 2008-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10801 PR documentation/15479
10802 * Make-lang.in (doc/gnat_ugn.texi) Renamed from ...
10803 (doc/gnat_ugn_unw.texi): ... this, and adjusted.
10804 (doc/gnat_ugn.info): Renamed from ...
10805 (doc/gnat_ugn_unw.info): ... this.
10806 (doc/gnat_ugn.dvi): Renamed from ...
10807 (doc/gnat_ugn_unw.dvi): ... this.
10808 (doc/gnat_ugn.pdf): Renamed from ...
10809 (doc/gnat_ugn_unw.pdf): ... this.
10810 (ADA_INFOFILES, ADA_PDFFILES, ada.install-info, ada.dvi):
10812 * gnat_ugn.texi (FILE): Hard-code gnat_ugn; set filename
10813 unconditionally to gnat_ugn.info. Fix cross references to the
10814 GNAT Reference Manual. Convert links to the GCC, GDB, Emacs,
10815 and GNU make manuals to be proper texinfo links.
10816 * gnat_rm.texi: Fix cross references to the GNAT User's Guide.
10818 2008-03-21 Olivier Hainque <hainque@adacore.com>
10820 * trans.c (Attribute_to_gnu) <'length>: Compute as (hb < lb)
10821 ? 0 : hb - lb + 1 instead of max (hb - lb + 1, 0).
10823 2008-03-21 Eric Botcazou <ebotcazou@adacore.com>
10825 * trans.c (addressable_p): Add notes on addressability issues.
10827 2008-03-21 Olivier Hainque <hainque@adacore.com>
10828 Ed Schonberg <schonberg@adacore.com>
10830 * trans.c (addressable_p): Accept COND_EXPR when both arms
10832 (gnat_gimplify_expr): Let the gimplifier handle &COND_EXPR.
10833 (call_to_gnu): Do not use name reference in the error message
10834 for a misaligned by_reference_parameter. The actual may be a
10835 general expression.
10837 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
10839 * misc.c (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
10841 2008-03-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10843 * gnat_rm.texi (Implementation Defined Characteristics)
10844 (Wide_Text_IO, Wide_Wide_Text_IO): Add @var annotations where
10846 * gnat_ugn.texi (Wide Character Encodings, Switches for gnatbind)
10847 (Switches for gnatchop, Installing a library): Likewise.
10849 2008-03-10 Eric Botcazou <ebotcazou@adacore.com>
10851 * trans.c (emit_range_check): Do not emit the check if the base type
10852 of the expression is the type against which its range must be checked.
10854 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
10856 * decl.c (maybe_pad_type): Use value_factor_p.
10858 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
10860 * lang.opt (nostdlib): Move around.
10861 * misc.c (gnat_handle_option): Fix formatting.
10862 (gnat_dwarf_name): Move around.
10863 * trans.c (Case_Statement_to_gnu): Fix formatting.
10864 (gnat_to_gnu): Likewise.
10865 * utils.c (aggregate_type_contains_array_p): Likewise.
10866 (create_subprog_decl): Likewise.
10868 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
10870 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Do not
10871 bother propagating the TYPE_USER_ALIGN flag when creating a JM type.
10873 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
10875 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: Do not force
10876 BIGGEST_ALIGNMENT when capping the alignment of records with
10877 strict alignment and size clause.
10879 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
10881 * lang-specs.h: Pass -gnatwa if -Wall is passed.
10882 * misc.c (gnat_handle_option) <OPT_Wall>: Expand into -Wunused
10883 and -Wuninitialized.
10884 (gnat_post_options): Clear warn_unused_parameter.
10886 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
10888 * utils.c (finish_record_type): Clear DECL_BIT_FIELD on sufficiently
10889 aligned bit-fields, bumping the alignment of the record type if deemed
10891 (value_factor_p): Return false instead of 0.
10893 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
10895 * decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>: Add support
10896 for scalar types with small alignment.
10898 2008-03-08 Eric Botcazou <ebotcazou@adacore.com>
10900 * trans.c (Loop_Statement_to_gnu): Set the SLOC of the loop label
10901 from that of the front-end's end label.
10902 (gnat_gimplify_stmt) <LOOP_STMT>: Set the SLOC of the backward goto
10903 from that of the loop label.
10905 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
10907 * decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Add
10908 comment for the packed array type case.
10909 * utils.c (build_template): Use a loop to strip padding or
10910 containing records for justified modular types.
10912 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
10914 * decl.c (gnat_to_gnu_entity): Issue a warning on suspiciously
10915 large alignments specified for types.
10916 (validate_alignment): Minor cleanup.
10918 2008-03-07 Eric Botcazou <ebotcazou@adacore.com>
10920 * decl.c (MAX_FIXED_MODE_SIZE): Define if not already defined.
10921 (gnat_to_gnu_entity) <E_Record_Type>: Try to get a smaller form of
10922 the component for packing, if possible, as well as if a component
10923 size clause is specified.
10924 <E_Record_Subtype>: For an array type used to implement a packed
10925 array, get the component type from the original array type.
10926 Try to get a smaller form of the component for packing, if possible,
10927 as well as if a component size clause is specified.
10928 (round_up_to_align): New function.
10929 (make_packable_type): Add in_record parameter.
10930 For a padding record, preserve the size. If not in_record and the
10931 size is too large for an integral mode, attempt to shrink the size
10932 by lowering the alignment.
10933 Ditch the padding bits of the last component.
10934 Compute sizes and mode manually, and propagate the RM size.
10935 Return a BLKmode record type if its size has shrunk.
10936 (maybe_pad_type): Use MAX_FIXED_MODE_SIZE instead of BIGGEST_ALIGNMENT.
10937 Use Original_Array_Type to retrieve the type in case of an error.
10938 Adjust call to make_packable_type.
10939 (gnat_to_gnu_field): Likewise.
10940 (concat_id_with_name): Minor tweak.
10941 * trans.c (larger_record_type_p): New predicate.
10942 (call_to_gnu): Compute the nominal type of the object only if the
10943 parameter is by-reference. Do the conversion actual type -> nominal
10944 type if the nominal type is a larger record.
10945 (gnat_to_gnu): Do not require integral modes on the source type to
10946 avoid the conversion for types with identical names.
10947 (addressable_p): Add gnu_type parameter. If it is specified, do not
10948 return true if the expression is not addressable in gnu_type.
10949 Adjust recursive calls.
10950 * utils.c (finish_record_type): Remove dead code.
10952 2008-03-05 Eric Botcazou <ebotcazou@adacore.com>
10955 * decl.c (maybe_pad_type): Avoid padding an integral type when
10956 bumping its alignment is sufficient.
10958 2008-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10960 * gnatfind.adb, gnatxref.adb: Fix argument parsing typos.
10961 * s-auxdec-empty.adb, s-auxdec.adb: Fix typos in copyright
10963 * a-ngcoar.adb, a-ngrear.adb, g-awk.adb, g-debpoo.adb,
10964 gprep.adb, make.adb, makegpr.adb, par-ch6.adb, prj-nmsc.adb,
10965 sem_attr.adb, sem_ch4.adb, sem_ch8.adb: Fix typos in ada source
10966 code output strings.
10967 * sem_type.adb, system-vms-ia64.ads, system-vms.ads,
10968 system-vms_64.ads: Fix typos in ada source code comments.
10969 * sinfo-cn.adb: Remove incomplete sentence.
10971 PR documentation/15479
10972 * gnat_rm.texi, gnat_ugn.texi: Avoid standalone `non' word.
10974 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
10977 * s-fileio.adb (Reset): Do not raise Use_Error if mode isn't changed.
10979 2008-02-27 Samuel Tardieu <sam@rfc1149.net>
10982 * sem_ch13.adb (Analyze_Record_Representation_Clause): Check
10983 that underlying type is present.
10985 2008-02-26 Tom Tromey <tromey@redhat.com>
10987 * misc.c (internal_error_function): Remove test of
10988 USE_MAPPED_LOCATION.
10989 * trans.c (gigi): Remove test of USE_MAPPED_LOCATION.
10990 (Sloc_to_locus): Remove old location code.
10992 2008-02-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10994 * gnat_rm.texi, gnat_ugn.texi: Fix spacing after `e.g.' and
10995 `i.e.' by adding comma or `@:' as appropriate.
10996 * gnat_rm.texi (Pragma Wide_Character_Encoding): Instead of
10997 plain characters `C', use `@samp{C}'.
10998 * gnat_ugn.texi (File Naming Rules, About gnatkr)
10999 (Krunching Method): Likewise.
11001 * gnat_ugn.texi (Conventions): List environment variables and
11002 metasyntactic variables.
11003 (Compiling Programs): Fix notation of metasyntactic variables.
11004 Add @file where appropriate. Use @file for file extensions,
11006 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, use @samp
11007 instead of @file, @env instead of @code.
11009 2008-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11011 PR documentation/15479
11012 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, replace `..'
11013 and `...' with `@dots{}' or `@enddots{}'.
11015 PR documentation/15479
11016 * gnat_rm.texi, gnat_ugn.texi: Where appropriate, add @command,
11017 use @command instead of @code, @option instead of @samp or @code,
11018 @code instead of @var, @samp instead of @file.
11020 PR documentation/15479
11021 * gnat_ugn.texi (Using gnatmake in a Makefile): Do not ignore errors
11022 in Makefile rules, by using `&&' rather than `;'.
11024 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11026 PR documentation/15479
11027 * gnat_ugn.texi: In non-code, avoid space before colon.
11028 (Regular Expressions in gnatfind and gnatxref): Fix indentation.
11029 (Examples of gnatxref Usage): Use @command{vi} instead of
11031 (Character Set Control): Do not use @code for UTF-8.
11032 (Validity Checking): Fix typo "NaNs" instead of "NaN's". Do not
11033 use @code for IEEE.
11034 * gnat_rm.texi (Aggregates with static bounds): Fix typo in code
11036 * gnat_rm.texi, gnat_ugn.texi: Fix typos. Bump copyright years.
11038 2008-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
11041 * env.c: Add __rtems__ to if defined.
11042 * s-osinte-rtems.adb: Add To_Target_Priority. Fix formatting.
11043 * s-osinte-rtems.ads: Add To_Target_Priority prototype and
11044 PTHREAD_SCOPE_PROCESS/PTHREAD_SCOPE_SYSTEM constants. Add
11045 pragma Convention as required.
11046 * gsocket.h: Make compile in and out of RTS.
11047 * Makefile.in: Add system-rtems.ads. Build DEC extensions.
11048 Use g-soccon-rtems.ads.
11049 * g-soccon-rtems.ads, system-rtems.ads: New files.
11051 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11054 * Make-lang.in (gnat1): Add $(GMPLIBS).
11056 2008-01-26 Eric Botcazou <ebotcazou@adacore.com>
11058 * decl.c (components_to_record): Improve comment.
11060 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
11062 * decl.c (components_to_record): Do not reuse the empty union type
11063 if there is a representation clause on the record.
11064 * trans.c (addressable_p): Return true for INTEGER_CST.
11066 2008-01-21 Eric Botcazou <ebotcazou@adacore.com>
11068 * trans.c (gnat_to_gnu) <N_Free_Statement>: Use POINTER_PLUS_EXPR
11069 in pointer arithmetics.
11070 * utils2.c (build_allocator): Likewise.
11072 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
11074 * utils.c (build_function_stub): Properly build the call expression.
11076 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
11078 * decl.c (gnat_to_gnu_entity) <object>: Process renamings
11079 before converting the expression to the type of the object.
11080 * trans.c (maybe_stabilize_reference) <CONSTRUCTOR>: New case.
11081 Stabilize constructors for special wrapping types.
11083 2008-01-13 Eric Botcazou <ebotcazou@adacore.com>
11085 * trans.c (call_to_gnu): Invoke the addressable_p predicate only
11086 when necessary. Merge some conditional statements. Update comments.
11087 Rename unchecked_convert_p local variable to suppress_type_conversion.
11088 Do not suppress conversions in the In case.
11089 (addressable_p) <VIEW_CONVERT_EXPR>: Do not take alignment issues
11090 into account on non strict-alignment platforms.
11092 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
11094 * utils.c (aggregate_type_contains_array_p): New predicate.
11095 (create_field_decl): In a packed record, force byte alignment
11096 for fields without specified position that contain an array.
11098 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
11100 * utils.c (unchecked_convert): Fold the VIEW_CONVERT_EXPR expression.
11102 2008-01-10 John David Anglin <dave.anglin.@nrc-cnrc.gc.ca>
11105 * s-osinte-linux-hppa.ads (SC_NPROCESSORS_ONLN): New constant for
11107 (bit_field): New packed boolean type used by cpu_set_t.
11108 (cpu_set_t): New type corresponding to the C type with
11109 the same name. Note that on the Ada side we use a bit
11110 field array for the affinity mask. There is not need
11111 for the C macro for setting individual bit.
11112 (pthread_setaffinity_np): New imported routine.
11114 2008-01-03 Tero Koskinen <tero.koskinen@iki.fi>
11117 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
11118 on OpenBSD as is done on other BSD systems.
11121 * sysdep.c (__gnat_ttyname, getc_immediate_nowait,
11122 getc_immediate_common): Treat OpenBSD as FreeBSD regarding immediate
11126 * env.c (__gnat_clearenv): Treat OpenBSD as other BSD systems missing
11130 * init.c (__gnat_error_handler, __gnat_install_handler,
11131 __gnat_init_float): Define for OpenBSD.
11133 * initialize.c (__gnat_initialize): Define for OpenBSD.
11135 2007-12-27 Samuel Tardieu <sam@rfc1149.net>
11138 * adaint.c (__gnat_open_new_temp, __gnat_tmp_name): Use mkstemp()
11139 instead of mktemp() or tmpnam() on NetBSD.
11141 2007-12-23 Eric Botcazou <ebotcazou@adacore.com>
11143 * trans.c (call_to_gnu): Make the temporary for non-addressable
11144 In parameters passed by reference.
11145 (addressable_p): Return true for STRING_CST and CALL_EXPR.
11147 2007-12-19 Robert Dewar <dewar@adacore.com>
11149 * g-expect-vms.adb, g-expect.adb, s-poosiz.adb:
11150 Add pragma Warnings (Off) for unassigned IN OUT arguments
11152 * sem_warn.adb (Output_Reference): Suppress messages for internal names
11153 (Check_References): Extensive changes to tune up warnings
11154 (Output_Non_Modifed_In_Out_Warnings): Changes to tune up warnings
11155 (Has_Pragma_Unmodifed_Check_Spec): New function
11156 (Check_References): Implement pragma Unmodified
11157 (Warn_On_Unassigned_Out_Parameter): Implement pragma Unmodified
11159 * par-prag.adb: Dummy entry for pragma Unmodified
11161 * sem_prag.adb: Implement pragma Unmodified
11163 * einfo.ads, einfo.adb: (Has_Pragma_Unmodified): New flag
11164 (Proc_Next_Component_Or_Discriminant): Fix typo.
11167 * sem_util.adb (Note_Possible_Modification): Add processinng for pragma
11169 (Reset_Analyzed_Flags): Use Traverse_Proc instead of Traverse_Func,
11170 because the former already takes care of discarding the result.
11171 (Mark_Coextensions): Remove ununused initial value from Is_Dynamic.
11174 * snames.h, snames.ads, snames.adb: Add entry for pragma Unmodified
11176 2007-12-19 Eric Botcazou <ebotcazou@adacore.com>
11178 * targparm.adb, targparm.ads, system.ads, system-darwin-ppc.ads,
11179 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
11180 system-hpux-ia64.ads, system-vxworks-arm.ads, system-darwin-x86.ads,
11181 system-vms_64.ads, system-vms-ia64.ads, system-linux-ia64.ads,
11182 system-freebsd-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
11183 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
11184 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
11185 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
11186 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
11187 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads
11188 (Dynamic_Trampolines_Used): Delete.
11190 * system-lynxos-x86.ads, system-lynxos-ppc.ads: Ditto.
11191 Turn on stack probing mechanism on LynxOS.
11193 2007-12-19 Bob Duff <duff@adacore.com>
11195 * atree.ads, atree.adb (Traverse_Func): Walk Field2 last, and eliminate
11196 the resulting tail recursion by hand. This prevents running out of
11197 memory on deeply nested concatenations, since Field2 is where the left
11198 operand of concatenations is stored.
11199 Fix bug (was returning OK_Orig in some cases). Fix return subtype to
11200 clarify that it can only return OK or Abandon.
11202 * sem_res.adb (Resolve_Op_Concat): Replace the recursion on the left
11203 operand by iteration, in order to avoid running out of memory on
11204 deeply-nested concatenations. Use the Parent pointer to get back up the
11206 (Resolve_Op_Concat_Arg, Resolve_Op_Concat_First,
11207 Resolve_Op_Concat_Rest): New procedures split out of
11208 Resolve_Op_Concat, so the iterative algorithm in Resolve_Op_Concat is
11211 * checks.adb (Remove_Checks): Use Traverse_Proc instead of
11212 Traverse_Func, because the former already takes care of discarding the
11215 * errout.adb (First_Node): Use Traverse_Proc instead of Traverse_Func,
11216 because the former already takes care of discarding the result.
11217 (Remove_Warning_Messages): Use appropriate subtype for Status and
11220 2007-12-19 Ed Schonberg <schonberg@adacore.com>
11222 * exp_aggr.adb (Not_OK_For_Backend): A component of a private type with
11223 discriminants forces expansion of the aggregate into assignments.
11224 (Init_Record_Controller): If the type of the aggregate is untagged and
11225 is not inherently limited, the record controller is not limited either.
11227 2007-12-19 Robert Dewar <dewar@adacore.com>
11229 * exp_attr.adb (Expand_N_Attribute_Reference, case Size): Fix error in
11230 handling compile time known size of record or array (case of front end
11231 layout active, e.g. in GNAAMP).
11233 2007-12-19 Javier Miranda <miranda@adacore.com>
11235 * exp_ch3.adb (Expand_N_Object_Declaration): Complete the circuitry
11236 that forces the construction of static dispatch tables in case of
11239 2007-12-19 Robert Dewar <dewar@adacore.com>
11241 * exp_ch9.adb (Null_Statements): Moved to library level
11242 (Trivial_Accept_OK): New function
11243 (Expand_Accept_Declaration): Use Trivial_Accept_OK
11244 (Expand_N_Accept_Statement): Use Trivial_Accept_OK
11246 2007-12-19 Robert Dewar <dewar@adacore.com>
11248 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Fix packed array type
11249 in complex case where array is Volatile.
11251 2007-12-19 Ed Schonberg <schonberg@adacore.com>
11253 * freeze.adb (Freeze_Record_Type, Check_Current_Instance): Implement
11254 properly the Ada2005 rules concerning when the current instance of a
11255 record type is aliased.
11257 2007-12-19 Ed Schonberg <schonberg@adacore.com>
11259 * par-ch3.adb (P_Record_Declaration): Guard against cascaded errors in
11260 mangled declaration
11261 (P_Type_Declaration): Diagnose misuse of "abstract" in untagged record
11263 (P_Variant_Part): Cleaner patch for parenthesized discriminant
11265 2007-12-19 Vincent Celier <celier@adacore.com>
11267 * prj-attr.adb (Package_Node_Id_Of): Returns Unknown_Package when
11268 package is not known
11270 * prj-attr.ads (Unknown_Package): New constant
11271 Do not crash when an unknown package is in several projects
11273 * prj-dect.adb (Parse_Package_Declaration): Mark an unknown package as
11276 * prj-nmsc.adb (Check): Remove obsolete code related to no longer
11277 existing package Language_Processing.
11279 2007-12-19 Ed Schonberg <schonberg@adacore.com>
11280 Gary Dismukes <dismukes@adacore.com>
11281 Samuel Tardieu <sam@rfc1149.net>
11283 PR ada/15803, ada/15805
11284 * sem_ch6.adb, sem_ch3.adb (Constrain_Access): In Ada2005, diagnose
11285 illegal access subtypes when there is a constrained partial view.
11286 (Check_For_Premature_Usage): New procedure inside
11287 Access_Subprogram_Declaration for checking that an access-to-subprogram
11288 type doesn't reference its own name within any formal parameters or
11289 result type (including within nested anonymous access types).
11290 (Access_Subprogram_Declaration): Add call to Check_For_Premature_Usage.
11291 (Sem_Ch3.Analyze_Object_Declaration, Sem_ch6.Process_Formals): if the
11292 context is an access_to_variable, the expression cannot be an
11293 access_to_constant.
11295 2007-12-19 Bob Duff <duff@adacore.com>
11297 * sem_ch4.adb (Analyze_Concatenation_Rest): New procedure.
11298 (Analyze_Concatenation): Use iteration instead of recursion in order
11299 to avoid running out of stack space for deeply nested concatenations.
11301 2007-12-19 Ed Schonberg <schonberg@adacore.com>
11302 Gary Dismukes <dismukes@adacore.com>
11304 * sem_ch8.adb (Analyze_Subprogram_Renaming): Diagnose illegal renamings
11305 whose renamed entity is a subprogram that requires overriding.
11306 (Premature_Usage): Test for the case of N_Full_Type_Declaration when
11307 issuing an error for premature usage and issue a message that says
11308 'type' rather than 'object'.
11310 2007-12-19 Gary Dismukes <dismukes@adacore.com>
11313 * sem_disp.adb (Check_Dispatching_Call): Augment existing test for
11314 presence of a statically tagged operand (Present (Static_Tag)) with
11315 test for Indeterm_Ancestor_Call when determining whether to propagate
11316 the static tag to tag-indeterminate operands (which forces dispatching
11318 (Check_Controlling_Formals): Ada2005, access parameters can have
11320 (Add_Dispatching_Operation, Check_Operation_From_Private_View): do
11321 not insert subprogram in list of primitive operations if already there.
11323 2007-12-19 Tristan Gingold <gingold@adacore.com>
11325 * utils.c (create_var_decl_1): call rest_of_decl_compilation only for
11328 2007-12-19 Thomas Quinot <quinot@adacore.com>
11330 Part of PR ada/33688
11331 * gen-soccon.c: Add constant IP_PKTINFO to allow getting ancillary
11332 datagram info on Linux.
11334 2007-12-19 Vincent Celier <celier@adacore.com>
11336 * makegpr.adb (Check_Compilation_Needed): Normalize C_Source_Path so
11337 that the source path name is always found in the dependencies.
11339 2007-12-19 Robert Dewar <dewar@adacore.com>
11341 * gnat_rm.texi, gnat_ugn.texi: Update documentation of -gnatw.o
11342 Fix name of Wide_Wide_Latin_1/9 file names
11343 Add documentation for Ada.Exceptions.Last_Chance_Handler (a-elchha.ads)
11344 Add missing documentation for Ada.Wide_[Wide_]Characters.Unicode
11345 Add missing documentation for Ada.Command_Line.Response_File
11346 Update list of warning letters for Warnings pragma
11347 Add documentation for pragma Unmodified
11349 2007-12-19 Samuel Tardieu <sam@rfc1149.net>
11351 * Makefile.in: Add s-tasinf.ad[bs] substitutions for sh4-linux target.
11353 2007-12-17 Arnaud Charlet <charlet@adacore.com>
11355 * s-vxwork-alpha.ads: Removed, no longer used.
11357 2007-12-15 Jakub Jelinek <jakub@redhat.com>
11359 * Make-lang.in (gnat1, gnatbind): Pass ALL_CFLAGS on the link line.
11361 2007-12-13 Samuel Tardieu <sam@rfc1149.net>
11364 * Makefile.in: Change two occurrences of mlib-tgt.adb by correct name
11365 mlib-tgt-specific.adb.
11367 2007-12-13 Bob Duff <duff@adacore.com>
11369 * trans.c (Attribute_to_gnu): Check for violations of the
11370 No_Implicit_Dynamic_Code restriction. This checking used to be done in
11371 the front end, but is moved here so we can make it more accurate.
11373 2007-12-13 Pascal Obry <obry@adacore.com>
11375 * adaint.c (__gnat_pthread_setaffinity_np): New routine. A dummy
11376 version is provided for older GNU/Linux distribution not
11377 supporting thread affinity sets.
11379 * s-osinte-linux.ads (SC_NPROCESSORS_ONLN): New constant for sysconf
11381 (bit_field): New packed boolean type used by cpu_set_t.
11382 (cpu_set_t): New type corresponding to the C type with
11383 the same name. Note that on the Ada side we use a bit
11384 field array for the affinity mask. There is not need
11385 for the C macro for setting individual bit.
11386 (pthread_setaffinity_np): New imported routine.
11388 * s-taprop-linux.adb (Enter_Task): Check that the CPU affinity mask is
11390 (Create_Task): Set the processor affinity mask if information
11393 * s-tasinf-linux.ads, s-tasinf-linux.adb: New files.
11395 2007-12-13 Robert Dewar <dewar@adacore.com>
11397 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
11398 s-osinte-freebsd.ads, s-osinte-lynxos.ads, s-osinte-tru64.ads,
11399 s-osinte-mingw.ads, s-osinte-aix.ads, s-osinte-hpux-dce.ads,
11400 s-osinte-irix.ads, s-osinte-solaris.ads, s-intman-vms.adb,
11401 s-osinte-vms.ads, s-osinte-vxworks6.ads, s-osinte-vxworks.ads,
11402 s-auxdec.ads, s-auxdec-vms_64.ads, s-osinte-darwin.ads,
11403 s-taprop-vms.adb, s-interr-sigaction.adb, s-osinte-linux-hppa.ads,
11404 i-vxwork-x86.ads, s-tpopde-vms.ads: Add missing pragma Convention C
11405 for subprogram pointers.
11407 * g-ctrl_c.adb: New file.
11409 * g-ctrl_c.ads (Install_Handler): New body.
11411 * freeze.adb (Freeze_Subprogram): Use new flag Has_Pragma_Inline_Always
11412 instead of obsolete function Is_Always_Inlined.
11413 (Freeze_Entity): check for tagged type in imported C subprogram
11414 (Freeze_Entity): check for 8-bit boolean in imported C subprogram
11415 (Freeze_Entity): check for convention Ada subprogram pointer in
11416 imported C subprogram.
11417 (Freeze_Fixed_Point_Type): In the case of a base type where the low
11418 bound would be chopped off and go from negative to zero, force
11419 Loval_Excl_EP to be the same as Loval_Incl_EP (the included lower
11420 bound) so that the size computation for the base type will take
11421 negative values into account.
11423 2007-12-13 Eric Botcazou <ebotcazou@adacore.com>
11424 Bob Duff <duff@adacore.com>
11425 Tristan Gingold <gingold@adacore.com>
11427 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
11428 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
11429 system-aix.ads, system-vxworks-sparcv9.ads, system-solaris-x86.ads,
11430 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
11431 system-vxworks-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
11432 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
11433 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
11434 system-vxworks-arm.ads, system-darwin-x86.ads, system.ads,
11435 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
11436 system-linux-ppc.ads, system-linux-hppa.ads, system-hpux-ia64.ads,
11437 system-vms-ia64.ads (Stack_Check_Limits): New target parameter.
11438 (Always_Compatible_Rep): New flag to control trampolines globally.
11439 (Dynamic_Trampolines_Used): New flag for implementing the
11440 No_Implicit_Dynamic_Code restriction more correctly (not yet used,
11441 and not yet set correctly for some targets).
11443 * s-taprop-vxworks.adb: Use stack limit method of stack checking.
11444 Simply indirectly call s-stchop when a task is created.
11447 New flag added: Stack_Check_Switch_Set which is set when '-fstack-check'
11448 appears as an argument (entries A) in an ALI file.
11450 * fe.h (Stack_Check_Limits): Declare new target parameter.
11451 (Check_Implicit_Dynamic_Code_Allowed): New procedure.
11453 * init.c: Declare __gnat_set_stack_limit_hook for VxWorks kernel RTS.
11454 This variable is declared in C to be sure not subject to elaboration
11456 (__gnat_map_signal, VxWorks): In kernel mode, map SIGILL to
11459 * targparm.ads, targparm.adb (Stack_Check_Limits): New parameter.
11460 (Always_Compatible_Rep, Dynamic_Trampolines_Used): New parameters.
11462 * s-stchop.ads: Add comments.
11464 * s-stchop-vxworks.adb: Package almost fully rewritten to use stack
11465 limit method of stack checking.
11467 * s-stchop-limit.ads: New file.
11469 2007-12-13 Robert Dewar <dewar@adacore.com>
11471 * sem_ch5.adb, s-taskin.adb, a-ciorma.adb, a-coorma.adb, a-cohama.adb,
11472 a-cihama.adb, g-awk.adb,
11473 s-inmaop-posix.adb: Update handling of assigned value/unreferenced
11476 * exp_smem.adb: Update handling of assigned value/unreferenced warnings
11478 * sem.adb: Update handling of assigned value/unreferenced warnings
11480 * a-exexpr-gcc.adb: Add a pragma warnings off for boolean return
11482 * lib-xref.ads: Improve documentation for k xref type
11485 Update handling of assigned value/unreferenced warnings
11486 (Generate_Reference): Warning for reference to entity for which a
11487 pragma Unreferenced has been given should be unconditional.
11488 If the entity is a discriminal, mark the original
11489 discriminant as referenced.
11491 * sem_warn.ads, sem_warn.adb
11492 (Check_One_Unit): Test Renamed_In_Spec to control giving warning for
11493 no entities referenced in package
11494 (Check_One_Unit): Don't give message about no entities referenced in
11495 a package if a pragma Unreferenced has appeared.
11496 Handle new warning flag -gnatw.a/-gnatw.A
11497 Update handling of assigned value/unreferenced warnings
11499 * atree.h: Add flags up to Flag247
11500 (Flag231): New macro.
11502 2007-12-13 Jose Ruiz <ruiz@adacore.com>
11504 * adaint.h: (__gnat_plist_init): Not defined for RTX.
11506 * initialize.c (__gnat_initialize): Do not call __gnat_plist_init for
11509 * Makefile.in: Add new files s-tasinf-linux.ads and s-tasinf-linux.adb.
11510 (LIBGNAT_TARGET_PAIRS, MISCLIB, THREADSLIB,
11511 EXTRA_GNATRTL_NONTASKING_OBJS, EXTRA_GNATRTL_TASKING_OBJS,
11512 GNATLIB_SHARED for RTX run time): Use the versions required by RTX.
11515 Do not define GNAT_UNICODE_SUPPORT for RTX since it is not supported.
11517 * sysdep.c (winflush_function for RTX): Procedure that does nothing
11518 since we only have problems with Windows 95/98, which are not
11520 (__gnat_ttyname): Return the empty string on Nucleus, just as
11523 2007-12-13 Robert Dewar <dewar@adacore.com>
11525 * a-textio.adb, a-textio.ads:
11526 Extensive changes to private part for wide character encoding
11528 * a-witeio.adb, a-witeio.ads, a-ztexio.ads, a-ztexio.adb
11529 (Look_Ahead): Fix mishandling of encoded sequences
11530 Move declaration of Wch_Con to private part (should not be visible)
11532 * ali.adb (Scan_ALI): Set default encoding method to brackets instead of
11533 UTF-8. Probably this is never used, but if it is, brackets is
11536 * bindgen.adb (Get_WC_Encoding): New procedure to properly handle
11537 setting wide character encoding for no main program case and when
11538 encoding is specified using -W?
11539 Initialize stack limit of environment task if stack limit method of
11540 stack checking is enabled.
11541 (Gen_Adainit_Ada): Use Get_WC_Encoding to output encoding method
11542 (Gen_Adainit_C): Use Get_WC_Encoding to output encoding method
11543 (Get_Main_Unit_Name): New function.
11544 (Gen_Adainit_Ada): Add call to main program for .NET when needed.
11545 (Gen_Output_File): Set Bind_Main_Program to True for .NET
11547 * bindusg.adb: Add line for -Wx switch
11549 * s-wchcon.adb, s-wchcon.ads: (Is_Start_Of_Encoding): New function
11551 Add new useful constant WC_Longest_Sequences
11553 * switch-b.adb: Clean up handling of -Wx switch
11554 For -gnatWx, set Wide_Character_Encoding_Method_Specified
11556 * switch-c.adb: -gnatg activates warning on assertion errors
11557 For -gnatWx, set Wide_Character_Encoding_Method_Specified
11559 * s-wchcon.adb: (Is_Start_Of_Encoding): New function
11561 2007-12-13 Robert Dewar <dewar@adacore.com>
11562 Ed Schonberg <schonberg@adacore.com>
11564 * a-ngcoty.adb: New pragma Fast_Math
11566 * opt.adb: New pragma Fast_Math
11569 Add Implemented_By_Entry to the list of pragmas which do not require any
11570 special processing.
11571 (Favor_Top_Level): New pragma.
11572 New pragma Fast_Math
11574 * exp_attr.adb: Move Wide_[Wide_]Image routines to Exp_Imgv
11575 (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
11576 Expand_Allocator_Expression): Take into account VM_Target
11577 (Expand_Attribute, case 'Identity): Handle properly the case where
11578 the prefix is a task interface.
11579 New pragma Fast_Math
11581 * par.adb (Next_Token_Is): New function
11582 (P_Pragma): Add Skipping parameter
11583 (U_Left_Paren): New procedure
11584 (U_Right_Paren): New procedure
11585 New pragma Fast_Math
11587 * par-ch10.adb (P_Subunit): Unconditional msg for missing ) after
11589 New pragma Fast_Math
11591 * sem_prag.adb: Add significance value to table Sig_Flag for pragma
11592 Implemented_By_Entry.
11593 (Analyze_Pragma): Add case for Ada 2005 pragma Implemented_By_Entry.
11594 (Set_Inline_Flags): Do not try to link pragma Inline onto chain of rep
11595 items, since it can apply to more than one overloadable entity. Set
11596 new flag Has_Pragma_Inline_Always for Inline_Always case.
11597 (Analyze_Pragma, case Complex_Representation): Improve error message.
11598 (Analyze_Pragma, case Assert): When assertions are disabled build the
11599 rewritten code with Sloc of expression rather than pragma, so new
11600 warning about failing is not deleted.
11601 (Analyze_Pragma): Allow pragma Preelaborable_Initialization to apply to
11602 protected types and update error message to reflect that. Test whether
11603 the protected type is allowed for the pragma (an error is issued if the
11604 type has any entries, or components that do not have preelaborable
11606 New pragma Fast_Math
11607 (Analyze_Pragma, case No_Return): Handle generic instance
11609 * snames.h, snames.ads, snames.adb:
11610 Add new predefined name for interface primitive _Disp_Requeue.
11611 New pragma Fast_Math
11613 * a-tags.ads, a-tags.adb: New calling sequence for
11614 String_To_Wide_[Wide_]String
11615 (Secondary_Tag): New subprogram.
11617 * exp_imgv.ads, exp_imgv.adb: Move Wide_[Wide_]Image routines here
11619 New calling sequence for String_To_Wide_[Wide_]String
11620 (Expand_Image_Attribute): Major rewrite. New calling sequence avoids
11621 the use of the secondary stack for image routines.
11623 * a-except-2005.adb, s-wchstw.ads, s-wchstw.adb, s-wwdenu.adb: New
11624 calling sequence for String_To_Wide_[Wide_]String
11626 * par-ch3.adb (P_Declarative_Items): Recognize use of Overriding in
11628 (P_Unknown_Discriminant_Part_Opt): Handle missing parens gracefully
11629 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
11631 * par-ch6.adb (P_Subprogram): Recognize use of Overriding in Ada 95 mode
11632 (P_Formal_Part): Use Skipping parameter in P_Pragma call
11633 to improve error recovery
11635 * par-util.adb (Next_Token_Is): New function
11636 (Signal_Bad_Attribute): Use new Namet.Is_Bad_Spelling_Of function
11638 * par-ch2.adb (Skip_Pragma_Semicolon): Do not resynchronize to
11639 semicolon if missing
11640 (P_Pragma): Implement new Skipping parameter
11641 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
11642 Fix location of flag for unrecognized pragma message
11644 * par-tchk.adb (U_Left_Paren): New procedure
11645 (U_Right_Paren): New procedure
11647 2007-12-13 Geert Bosch <bosch@adacore.com>
11650 (Put_Int64): Use Put_Digit to advance Pos. This fixes a case where
11651 the second or later Scaled_Divide would omit leading zeroes,
11652 resulting in too few digits produced and a Layout_Error as result.
11653 (Put): Initialize Pos.
11655 2007-12-13 Robert Dewar <dewar@adacore.com>
11657 atree.ads, atree.adb (Flag231..Flag247): New functions
11658 (Set_Flag231..Set_Flag247): New procedures
11659 (Basic_Set_Convention): Rename Set_Convention to be
11660 Basic_Set_Convention
11661 (Nkind_In): New functions
11662 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
11664 * exp_ch6.adb (Expand_Call): Use new flag Has_Pragma_Inline_Always
11666 of obsolete function Is_Always_Inlined
11667 (Register_Predefined_DT_Entry): Initialize slots of the second
11668 secondary dispatch table.
11669 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
11670 (Expand_N_Function_Call): Remove special provision for stack checking.
11672 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
11673 Include _Disp_Requeue in the list of predefined operations.
11674 (Find_Interface_ADT): Modified to fulfill the new specification.
11675 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
11677 * par-ch4.adb, nlists.ads, nlists.adb:
11678 Remove Atree.Delete_Tree/Delete_Node and Nlist.Delete_List
11680 * sinfo.ads, sinfo.adb: (Nkind_In): New functions
11681 Fix location of flag for unrecognized pragma message
11683 * sem_ch7.adb: Use Nkind_In
11685 2007-12-13 Vincent Celier <celier@adacore.com>
11688 Indicate what flags are used by the Project Manager, gprbuild and
11690 (Opt.Follow_Links_For_Dirs): New flag
11691 (Warn_On_Assertion_Failure): New flag
11692 (Wide_Character_Encoding_Method_Specified): New flag
11693 (Suppress_All_Inlining): New switch set by -fno-inline
11694 (Real_VMS_Target): New flag
11695 New pragma Fast_Math
11697 2007-12-13 Robert Dewar <dewar@adacore.com>
11699 * back_end.adb: Recognize -fno-inline
11701 2007-12-13 Robert Dewar <dewar@adacore.com>
11703 * checks.adb: Fix optimization problem with short-circuited form
11705 2007-12-13 Bob Duff <duff@adacore.com>
11707 * clean.adb (Usage): Add line for -aP
11708 (Check_Version_And_Help): Change Check_Version_And_Help to be generic,
11709 with a parameter "procedure Usage", instead of passing a pointer to a
11710 procedure. This is to eliminate trampolines (since the Usage procedure
11711 is often nested in a main procedure, and it would be inconvenient to
11714 * g-comlin.adb (For_Each_Simple_Switch): Change For_Each_Simple_Switch
11715 to be generic, with a parameter "procedure Callback (...)", instead of
11716 passing a pointer to a procedure. This is to eliminate trampolines
11717 (since the Callback procedure is usually nested).
11719 * gnatfind.adb, switch.adb, switch.ads, gnatlink.adb, gnatls.adb,
11720 gnatname.adb, gnatxref.adb, gnatchop.adb, gprep.adb, gnatbind.adb
11721 (Check_Version_And_Help): Change Check_Version_And_Help to be generic.
11723 * g-pehage.adb (Compute_Edges_And_Vertices, Build_Identical_Key_Sets):
11724 Use the generic Heap_Sort_G instead of Heap_Sort_A.
11726 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
11728 * einfo.ads, einfo.adb: Flag 232 is now Implemented_By_Entry.
11729 (Implemented_By_Entry, Set_Implemented_By_Entry): New routines.
11730 (Write_Entry_Flags): Add an entry for Implemented_By_Entry.
11731 (Renamed_In_Spec): New flag
11732 (Has_Pragma_Inline_Always): New flag
11733 Add missing doc for pragma Obsolescent_Warning
11734 Add missing doc for 17 additional unused flags (230-247)
11735 (Is_Derived_Type): Remove condition "not Is_Generic_Type".
11736 Alphabetize with clauses.
11737 Separate Is_Thunk and Has_Thunks flags
11738 (Write_Entity_Flags): Add forgotten entry for Has_Thunks
11739 (Related_Interface): Renamed to Related_Type.
11740 (Has_Thunks/Set_Has_Thunks): Subprograms of new attribute.
11741 (Set_Is_Flag): Restrict the assertion.
11743 2007-12-13 Vincent Celier <celier@adacore.com>
11745 * errout.adb (Output_Source_Line): Do not keep a trailing space after
11746 the source line number if the source line is empty.
11748 2007-12-13 Geert Bosch <bosch@adacore.com>
11750 * eval_fat.adb (Decompose_Int): Handle argument of zero.
11751 (Compose): Remove special casing of zero.
11752 (Exponent): Likewise.
11753 (Fraction): Likewise.
11754 (Machine): Likewise.
11755 (Decompose): Update comment.
11757 2007-12-13 Ed Schonberg <schonberg@adacore.com>
11759 * exp_aggr.adb (Build_Record_Aggr_Code): If there is an aggregate for a
11760 limited ancestor part, initialize controllers of enclosing record
11761 before expanding ancestor aggregate.
11762 (Gen_Assign): If a component of the aggregate is box-initialized, add
11763 code to call Initialize if the component is controlled, and explicit
11764 assignment of null if the component is an access type.
11766 Handle properly aggregates for limited types that appear in object
11767 declarations when the aggregate contains controlled values such as
11769 When expanding limited aggregates into individual components, do not
11770 call Adjust on controlled components that are limited.
11772 2007-12-13 Ed Schonberg <schonberg@adacore.com>
11774 * expander.adb: Take into account N_Subprogram_Renaming_Declaration
11776 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
11778 * exp_ch3.adb (Predefined_Primitive_Bodies): Generate the body of
11779 predefined primitive _Disp_Requeue.
11780 (Make_Predefined_Primitive_Specs): Create the spec for predefined
11781 primitive _Disp_Requeue.
11782 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): Set the
11783 type of formal Renamed_Eq to Entity_Id (instead of Node_Id).
11784 (Make_Predefined_Primitive_Specs): Spec of "=" needed if the parent is
11785 an interface type. In case of limited interfaces we now declare all the
11786 predefined primitives associated with synchronized interfaces as
11788 (Predef_Spec_Or_Body): For interface types generate abstract subprogram
11790 (Predefined_Primitive_Bodies): Add body of "=" if the parent of the
11791 tagged type is an interface type and there is no user-defined equality
11793 Add also bodies of predefined primitives associated with synchronized
11795 (Freeze_Record_Type): Do not build bodies of predefined primitives of
11796 interface types because they are now defined abstract.
11797 Add missing documentation.
11798 (Expand_Record_Controller): Update occurrence of Related_Interface
11800 (Build_Offset_To_Top_Functions): Do nothing in case of VM.
11801 (Expand_N_Object_Declaration): Take into account VM_Target when handling
11802 class wide interface object declaration.
11803 (Expand_Previous_Access_Type): Do not create a duplicate master entity
11804 if the access type already has one.
11805 (Expand_N_Object_Declaration): Defend against attempt to validity check
11806 generic types. Noticed for -gnatVcf specified with previous errors.
11808 2007-12-13 Arnaud Charlet <charlet@adacore.com>
11810 * exp_ch4.adb (Expand_N_Attribute_Reference, Displace_Allocator_Pointer,
11811 Expand_Allocator_Expression): Take into account VM_Target
11813 * exp_ch5.adb (Expand_N_Extended_Return_Statement): Do not use
11814 secondary stack when VM_Target /= No_VM
11816 2007-12-13 Javier Miranda <miranda@adacore.com>
11817 Ed Schonberg <schonberg@adacore.com>
11819 * exp_ch7.adb (Expand_N_Package_Body): Replace occurrence of attribute
11820 Is_Complation_Unit by Is_Library_Level_Entity in the code
11821 that decides if the static dispatch tables need to be built.
11822 (Wrap_Transient_Declaration): Do not generate a finalization call if
11823 this is a renaming declaration and the renamed object is a component
11824 of a controlled type.
11826 2007-12-13 Gary Dismukes <dismukes@adacore.com>
11828 * exp_ch8.ads, exp_ch8.adb (Expand_N_Subprogram_Renaming_Declaration):
11829 In the case where the renamed subprogram is a dereference, call
11830 Force_Evaluation on the prefix.
11832 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
11833 Ed Schonberg <schonberg@adacore.com>
11835 * exp_ch9.adb (Expand_N_Asynchronous_Select,
11836 Expand_N_Conditional_Entry_Call, Expand_N_Timed_Entry_Call): Code and
11837 comment reformatting.
11838 (Set_Privals): Inherit aliased flag from formal. From code reading.
11839 (Build_Simple_Entry_Call): Out parameters of an access type are passed
11840 by copy and initialized from the actual. This includes entry parameters.
11841 (Expand_N_Requeue_Statement): Reimplement in order to handle both Ada 95
11842 and Ada 2005 models of requeue.
11843 (Null_Statements): Still connsider do-end block null if it contains
11844 Unreferenced and Warnings pragmas.
11845 (Expand_N_Accept_Statement): Do not optimize away null do end if
11846 dispatching policy is other than defaulted.
11847 (Expand_N_Timed_Entry_Call): When the triggering statement is a
11848 dispatching call, manually analyze the delay statement.
11849 (Find_Parameter_Type): Move subprogram to Sem_Util.
11851 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
11852 Javier Miranda <miranda@adacore.com>
11854 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Primitive
11855 _Disp_Requeue occupies dispatch table slot number 15. Move
11856 _Disp_Timed_Select to slot 16.
11857 (Make_Disp_Requeue_Body, Make_Disp_Requeue_Spec): New routines which
11858 generate the spec and body of _Disp_Reqeueue.
11859 (Make_DT): Build and initialize the second dispatch table.
11860 Handle initialization of RC_Offset when the parent
11861 is a private type with variable size components.
11862 (Make_Secondary_DT): Complete documentation. Add support to
11863 initialize the second dispatch table.
11864 (Make_Tags): Generate the tag of the second dispatch table.
11865 (Register_Primitive): Add support to register primitives in the
11866 second dispatch table.
11868 2007-12-13 Pascal Obry <obry@adacore.com>
11870 * expect.c (__gnat_kill) [WIN32]: Implement the SIGINT signal on
11871 Windows. This signal is used by gnatmake to kill child processes for
11874 2007-12-13 Javier Miranda <miranda@adacore.com>
11876 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
11877 support for generic dispatching constructor calls in which we need to
11878 locate the tag of a secondary dispatch table associated with an
11879 interface type to properly dispatch the call.
11880 (Expand_N_Attribute_Reference [case Address],
11881 Expand_Dispatching_Constructor_Call, Expand_Unc_Deallocation): Fix
11882 handling of VM targets.
11884 2007-12-13 Robert Dewar <dewar@adacore.com>
11885 Ed Schonberg <schonberg@adacore.com>
11887 * exp_prag.adb (Expand_Pragma_Assert): Recognize new warning flag for
11890 * ug_words: Add entries for -gnatw.a -gnatw.A
11892 * sem_res.adb (Set_String_Literal_Subtype): If the context of the
11893 literal is a subtype with non-static constraints, use the base type of
11894 the context as the base of the string subtype, to prevent type
11895 mismatches in gigi.
11896 (Resolve_Actuals): If the actual is an entity name, generate a
11897 reference before the actual is resolved and expanded, to prevent
11898 spurious warnings on formals of enclosing protected operations.
11899 (Analyze_Overloaded_Selected_Component): If type of prefix if
11900 class-wide, use visible components of base type.
11901 (Resolve_Selected_Component): Ditto.
11902 (Resolve_Short_Circuit): Detect case of pragma Assert argument
11903 evaluating to False, and issue warning message.
11905 * usage.adb: Add lines for -gnatw.a and -gnatw.A
11907 2007-12-13 Emmanuel Briot <briot@adacore.com>
11909 * g-calend.ads (No_Time): New constant, to represent an uninitialized
11912 * g-catiio.ads, g-catiio.adb (Value): Added support for more date
11914 (Month_Name_To_Number): New subprogram
11916 * g-dirope.adb (Get_Current_Dir): On windows, normalize the drive
11917 letter to upper-case.
11919 2007-12-13 Robert Dewar <dewar@adacore.com>
11920 Ed Schonberg <schonberg@adacore.com>
11922 * gnat1drv.adb (Gnat1drv): Properly set new flag Opt.Real_VMS_Target
11924 * layout.adb (Resolve_Attribute, case 'Access): If designated type of
11925 context is a limited view, use non-limited view when available. If the
11926 non-limited view is an unconstrained array, this enforces consistency
11927 requirements in 3.10.2 (27).
11928 (Layout_Type): For an access type whose designated type is a limited
11929 view, examine its declaration to determine if it is an unconstrained
11930 array, and size the access type accordingly.
11931 (Layout_Type): Do not force 32-bits for convention c subprogram
11932 pointers in -gnatdm mode, only if real vms target.
11934 * sem_attr.adb (Analyze_Access_Attribute): Use new flag
11935 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
11936 (Analyze_Access_Attribute,Attribute_Address): Remove checks for
11937 violations of the No_Implicit_Dynamic_Code restriction.
11938 (Resolve_Attribute, case 'Access): If designated type of context is a
11939 limited view, use non-limited view when available. If the non-limited
11940 view is an unconstrained array, this enforces consistency requirements
11942 (Layout_Type): For an access type whose designated type is a limited
11943 view, examine its declaration to determine if it is an unconstrained
11944 array, and size the access type accordingly.
11946 2007-12-13 Vincent Celier <celier@adacore.com>
11948 * gnatcmd.adb (GNATCmd): Do not issue -d= switch to gnatmetric when
11949 object directory of main project does not exist.
11950 On VMS, correctly set then environment variable for the source
11953 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
11955 * g-regist.ads, g-regist.adb (Set_Value): new parameter Expand; when
11956 set to True this procedure will create the value of type REG_EXPAND_SZ.
11957 It was only possible to create REG_SZ values before.
11959 2007-12-13 Robert Dewar <dewar@adacore.com>
11961 * g-spchge.ads, g-spchge.adb, g-u3spch.adb, g-u3spch.ads,
11962 g-wispch.adb, g-wispch.ads, g-zspche.adb, g-zspche.ads,
11963 namet-sp.adb, namet-sp.ads: New files.
11965 * g-speche.adb: Use generic routine in g-spchge
11967 * s-wchcnv.ads, s-wchcnv.adb:
11968 Minor code cleanup (make formal type consistent with spec)
11970 * namet.adb: Update comments.
11972 * par-endh.adb (Evaluate_End_Entry): Use new
11973 Namet.Sp.Is_Bad_Spelling_Of function
11975 * par-load.adb (Load): Use new Namet.Sp.Is_Bad_Spelling_Of function
11977 * sem_aggr.adb (Resolve_Record_Aggregate): If a component of an
11978 ancestor is an access type initialized with a box, set its type
11979 explicitly, for use in subsequent expansion.
11980 (Check_Misspelled_Component): Use new Namet.Sp.Is_Bad_Spelling_Of
11983 2007-12-13 Robert Dewar <dewar@adacore.com>
11985 * g-spipat.adb (Break): Fix accessibility error (vsn taking not null
11988 2007-12-13 Robert Dewar <dewar@adacore.com>
11990 * inline.adb (Back_End_Cannot_Inline): Use new flag
11991 Has_Pragma_Inline_Always instead of obsolete function Is_Always_Inlined
11993 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Use new flag
11994 Has_Pragma_Inline_Always instead.
11995 of obsolete function Is_Always_Inlined
11996 (Build_Body_To_Inline): Same change
11997 (Cannot_Inline): Same change
11998 Do not give warning on exception raise in No_Return function
12000 * sem_ch13.adb (Analyze_Record_Representation_Clause): If an inherited
12001 component has two inconsistent component clauses in the same record
12002 representation clause, favor the message that complains about
12003 duplication rather than inconsistency.
12005 (Record_Representation_Clause): Do not warn on missing component
12006 clauses for inherited components of a type extension.
12007 (Rep_Item_Too_Late): Do not attempt to link pragma into rep chain for
12008 an overloadable item if it is a pragma that can apply to multiple
12009 overloadable entities (e.g. Inline) because a pragma cannot be on
12010 more than one chain at a time.
12011 (Validate_Unchecked_Conversion): Add code to warn on unchecked
12012 conversion where one of the operands is Ada.Calendar.Time.
12013 (Analyze_Attribute_Definition_Clause): Fix typo in error message.
12014 For now, ignore Component_Size clause on VM targets, as done for
12017 2007-12-13 Emmanuel Briot <briot@adacore.com>
12018 Vincent Celier <celier@adacore.com>
12020 * prj.ads, prj.adb (Is_A_Language): Now takes a Name_Id instead of a
12022 (Must_Check_Configuration, Default_Language_Is_Ada): new flags in
12024 (Hash): Move instantiation of System.HTable.Hash from spec to body
12025 (prj-nmsc.adb): Optimize calls to Name_Find when on case sensitive
12026 systems, since we do not need to recompute the Name_Id for the canonical
12028 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
12029 as a parameter. This parameter is in fact always "ada" in all calls, and
12030 we were doing 160560 extra calls to Name_Find to convert it to Name_Ada
12031 while loading a project with 40000 files
12033 * prj-attr.adb: Fix name of attribute Dependency_Driver
12034 Change the kind of indexing for attribute Root
12036 * prj-dect.adb (Parse_Declarative_Items): Allow redeclarations of
12037 variables already declared, in case constructions.
12039 * prj-env.adb (Initialize): Reset Current_Source_Path_File and
12040 Current_Object_Path_File to No_Path.
12042 * prj-ext.adb (Initialize_Project_Path): In multi language mode, use
12043 ADA_PROJECT_PATH if value of GPR_PROJECT_PATH is empty.
12045 * prj-makr.adb: new parameter Current_Dir
12047 * prj-nmsc.ads, prj-nmsc.adb (Find_Explicit_Sources): Do not look for
12048 Ada sources when language is not Ada.
12049 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
12050 (Find_Excluded_Sources, Find_Explicit_Sources): new subprograms
12051 (Must_Check_Configuration, Default_Language_Is_Ada): new flags.
12052 (Locate_Directory): Always resolve links when computing Canonical_Path
12053 (Look_For_Sources): Make sure that Name_Buffer contains the file name
12054 in Source_Files before checking for the presence of a directory
12056 Optimize calls to Name_Find when on case sensitive systems.
12057 (Body_Suffix_Id_Of, Spec_Suffix_Id_Of): new version that takes a name_id
12059 (Prj.Nmsc.Check): new parameter Current_Dir
12060 (Check_Ada_Naming_Schemes): Restrictions on suffixes are relaxed. They
12061 cannot be empty and the spec suffix cannot be the same as the body or
12063 (Get_Unit): When a file name can be of several unit kinds (spec, body or
12064 subunit), always consider the longest suffix.
12065 (Check_Configuration): Do not issue an error if there is no compiler
12066 for a language. Just issue a warning and ignore the sources for the
12068 (Check_Library_Attributes): Only check Library_Dir if Library_Name is
12070 (Check_Naming_Schemes.Maked_Unit): Only output message if high verbosity
12071 (Unit_Exceptions): New hash table
12072 (Check_Naming_Schemes): Check if a file that could be a unit because of
12073 the naming scheme is not in fact a source because there is an exception
12075 (Look_For_Sources): Put the unit exceptions in hash table
12077 (Get_Unit_Exceptions): Give initial value No_Source to local variable
12078 Other_Part to avoid exception when code is compiled with validity
12080 (Get_Sources_From_File): Check that there is no directory information
12082 (Look_For_Sources): Check that there is no directory information in the
12083 list of file names in Source_Files.
12084 (Look_For_Sources): In multi-language mode, do not allow exception file
12085 names that are excluded.
12086 (Excluded_Sources_Htable): New hash table
12087 (Search_Directories.Check_File): New procedure to simplify
12088 Search_Directories.
12089 (Search_Directories): Do not consider excluded sources
12090 (Look_For_Sources): Populate Excluded_Sources_Htable before calling
12091 Search_Directories.
12092 (Get_Exceptions): Set component Lang_Kind of Source_Data
12093 (Get_Unit_Exceptions): Ditto
12094 (Search_Directories): Ditto
12096 * prj-pars.adb: new parameter Current_Dir
12098 * prj-part.ads, prj-part.adb:
12099 Change Opt.Follow_Links to Opt.Follow_Links_For_Files.
12100 (Opt.Follow_Links_For_Dirs): New flag
12101 (Project_Path_Name_Of): Cache information returned by this routine as
12102 Locate_Regular_File is a costly routine. The code to output a log
12103 information and the effective call to Locate_Regular_File is now
12104 factorized into a routine (code clean-up).
12105 (Parse, Parse_Single_Project): new parameter Current_Dir
12106 When main project file cannot be found, indicate in the error
12107 message the project path that was used to do the search.
12109 * prj-proc.ads, prj-proc.adb (Opt.Follow_Links_For_Dirs): New flag
12110 (Prj.Proc.Process*): new parameter Current_Dir
12112 * switch-m.adb: Change Opt.Follow_Links to Opt.Follow_Links_For_Files
12114 2007-12-13 Bob Duff <duff@adacore.com>
12116 * restrict.ads, restrict.adb (Check_Implicit_Dynamic_Code_Allowed): New
12117 procedure to be called from the back end to check the
12118 No_Implicit_Dynamic_Code restriction.
12120 2007-12-13 Arnaud Charlet <charlet@adacore.com>
12122 * rtsfind.adb (Check_CRT): Take into account RTE_Available_Call
12123 Fixes another case where RTE_Available_Call was ignored instead of being
12124 taken into account.
12125 (Load_Fail): Ditto.
12127 * rtsfind.ads: Add new entries.
12129 2007-12-13 Robert Dewar <dewar@adacore.com>
12131 * g-byorma.adb, g-byorma.ads, g-decstr.adb, g-decstr.ads,
12132 g-deutst.ads, g-encstr.adb, g-encstr.ads, g-enutst.ads: New files.
12134 * scn.adb: Implement BOM recognition
12136 2007-12-13 Thomas Quinot <quinot@adacore.com>
12137 Ed Schonberg <schonberg@adacore.com>
12139 * sem_ch10.adb (Check_Private_Child_Unit): A non-private library level
12140 subprogram body that acts as its own spec may not have a non-private
12141 WITH clause on a private sibling.
12142 (Build_Unit_Name): If the parent unit in the name in a with_clause on a
12143 child unit is a renaming, create an implicit with_clause on that
12144 parent, and not on the unit it renames, to prevent visibility errors
12145 in the current unit.
12147 2007-12-13 Ed Schonberg <schonberg@adacore.com>
12149 * sem_ch12.adb (Instantiate_Formal_Subprogram): In the subprogram
12150 renaming declaration, use the Slocs of the formal parameters from the
12151 declaration of the formal subprogram when creating the formal parameter
12152 entities in the renaming declaration.
12153 (Analyze_Formal_Type_Declaration): Change the placement of the error
12154 message concerning illegal known discriminants. It is now posted on the
12155 type rather than on the first discriminant. This change ensures early
12157 (Freeze_Subprogram_Body): If the generic subprogram is nested within
12158 the package body that contains the instance, do not generate an
12159 out-of-place freeze node for the enclosing package.
12160 (Collect_Previous_Instantiations): Ignore internal instantiations
12161 generated for formal packages.
12162 (Validate_Derived_Type_Instance): Add a check that when a formal
12163 derived type is Known_To_Have_Preelab_Init then the actual type must
12164 have preelaborable initialization, and issue an error when this
12165 condition is violated.
12167 2007-12-13 Robert Dewar <dewar@adacore.com>
12169 * s-imenne.adb, s-imenne.ads: New files.
12171 * s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
12172 s-imgdec.ads, s-imgenu.ads, s-imgint.adb, s-imgint.ads, s-imglld.adb,
12173 s-imglld.ads, s-imglli.adb, s-imglli.ads, s-imgllu.adb, s-imgllu.ads,
12174 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwch.adb,
12175 s-imgwch.ads: New calling sequence for Image routines to avoid sec
12178 2007-12-13 Javier Miranda <miranda@adacore.com>
12179 Ed Schonberg <schonberg@adacore.com>
12181 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Avoid
12182 generation of spurious error if parent is an interface type; caused
12183 because predefined primitive bodies will be generated later by
12184 Freeze_Record_Type.
12185 (Process_Subtype): The subtype inherits the Known_To_Have_Preelab_Init
12187 (Derive_Subprograms): Handle derivations of predefined primitives
12188 after all the user-defined primitives to ensure that they are
12189 found in proper order in instantiations.
12190 (Add_Interface_Tag_Components, Inherit_Components): Update occurrences
12191 of Related_Interface to Related_Type.
12192 (Record_Type_Declaration): Minor reordering of calls to decorate the
12193 Tag component because the entity must have set its Ekind attribute
12194 before setting its Is_Tag attribute.
12195 (Analyze_Subtype_Declaration): In the case of subtypes with
12196 Private_Kind, inherit Known_To_Have_Preelab_Init from the parent.
12198 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
12199 Ed Schonberg <schonberg@adacore.com>
12201 * sem_ch4.adb (Analyze_Selected_Component): Include the requeue
12202 statement to the list of contexts where a selected component with a
12203 concurrent tagged type prefix should yield a primitive operation.
12204 (Find_Primitive_Operation): Handle case of class-wide types.
12205 (Analyze_Overloaded_Selected_Component): If type of prefix is
12206 class-wide, use visible components of base type.
12207 (Resolve_Selected_Component): Ditto.
12208 (Try_Primitive_Operation, Collect_Generic_Type_Ops): If the type is a
12209 formal of a generic subprogram. find candidate interpretations by
12210 scanning the list of generic formal declarations.:
12211 (Process_Implicit_Dereference_Prefix): If the prefix has an incomplete
12212 type from a limited_with_clause, and the full view is available, use it
12213 for subsequent semantic checks.
12214 (Check_Misspelled_Selector): Use Namet.Sp.Is_Bad_Spelling_Of function
12215 (Find_Primitive_Operation): New function.
12216 (Analyze_Overloaded_Selected_Component): insert explicit dereference
12217 only once if several interpretations of the prefix yield an access type.
12218 (Try_Object_Operation): Code and comment cleanup.
12219 (Analyze_Selected_Component): Reorder local variables. Minot comment and
12220 code reformatting. When the type of the prefix is tagged concurrent, a
12221 correct interpretation might be available in the primitive and
12222 class-wide operations of the type.
12224 2007-12-13 Robert Dewar <dewar@adacore.com>
12225 Ed Schonberg <schonberg@adacore.com>
12227 * sem_ch8.adb (Analyze_Subprogram_Renaming): Special error message for
12228 renaming entry as subprogram using rename-as-body if subprogram spec
12230 (Use_One_Type): The clause is legal on an access type whose designated
12231 type has a limited view.
12232 (Find_Direct_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
12233 (Find_Expanded_Name): Use Namet.Sp.Is_Bad_Spelling_Of function
12234 (Analyze_Renamed_Primitive_Operation): new procedure to determine the
12235 operation denoted by a selected component.
12236 (Analyze_Renamed_Entry): Resolve the prefix of the entry name, because
12237 it can be an expression, possibly overloaded, that returns a task or
12240 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
12241 Gary Dismukes <dismukes@adacore.com>
12243 * sem_ch9.adb (Analyze_Requeue): Add a local flag to capture whether a
12244 requeue statement is dispatching. Do not emit an error when the name is
12245 not an entry and the context is a dispatching select. Add code to
12246 perform subtype conformance between the formals of the current entry
12247 and those of the target interface primitive.
12248 (Analyze_Asynchronous_Select, Analyze_Conditional_Entry_Call, Analyze_
12249 Timed_Entry_Call): Analyze the triggering statement as the first step of
12250 the processing. If this is a dispatching select, postpone the analysis
12251 of all select statements until the Expander transforms the select. This
12252 approach avoids generating duplicate identifiers after the Expander has
12253 replicated some of the select statements. In case the Expander is
12254 disabled, perform regular analysis.
12255 (Check_Triggering_Statement): New routine.
12256 (Analyze_Requeue): Exclude any interpretations that are not entries when
12257 checking overloaded names in a requeue. Also test type conformance for
12258 matching interpretations rather than requiring subtype conformance at
12259 that point to conform with the RM's resolution rule for requeues.
12261 2007-12-13 Ed Schonberg <schonberg@adacore.com>
12263 * sem_disp.adb (Check_Dispatching_Call): If an actual in a call to an
12264 inherited operation is a defaulted tag-indeterminate call, and there is
12265 a statically tagged actual, use the static tag as a controlling actual
12266 for the defaulted actual.
12268 2007-12-13 Geert Bosch <bosch@adacore.com>
12270 * sem_eval.adb (Eval_Real_Literal): N_Constant_Declaration is a static
12271 context, so do not call Check_Non_Static_Context.
12273 2007-12-13 Hristian Kirtchev <kirtchev@adacore.com>
12275 * sem_type.adb (Function_Interp_Has_Abstract_Op): Add guard to check
12276 whether formal E is an entity which may have parameters.
12278 2007-12-13 Bob Duff <duff@adacore.com>
12279 Javier Miranda <miranda@adacore.com>
12280 Robert Dewar <dewar@adacore.com>
12282 * sem_util.ads, sem_util.adb (Is_Concurrent_Interface): New routine.
12283 (Set_Convention): New procedure to set the Convention flag, and in
12284 addition make sure the Favor_Top_Level flag is kept in sync (all
12285 foreign-language conventions require Favor_Top_Level = True).
12286 (Collect_Abstract_Interfaces): Update occurrences of Related_Interface
12288 (Collect_Interfaces_Info): Minor update to handle the two secondary
12289 dispatch tables. Update occurrence of Related_Interface to Related_Type.
12290 (Generate_Parent_Ref): Add parameter to specify entity to check
12291 (Is_Preelaborable_Expression): Allow the name of a discriminant to
12292 initialize a component of a type with preelaborable initialization.
12293 This includes the case of a discriminal used in such a context.
12294 (Is_Dependent_Component_Of_Mutable_Object): Take into account the
12295 latest Ada 2005 rules about renaming and 'Access of
12296 discriminant-dependent components.
12297 (Check_Nested_Access): Add handling when there are no enclosing
12298 subprograms (e.g. case of a package body).
12299 (Find_Parameter_Type): Factor routine from several other compiler files.
12300 Remove routine from Find_Overridden_Synchronized_Primitive.
12302 2007-12-13 Thomas Quinot <quinot@adacore.com>
12304 * sinput.adb (Get_Source_File_Index): Add assertion to guard against
12305 an invalid access to an uninitialized slot in the
12306 Source_File_Index_Table.
12308 2007-12-13 Thomas Quinot <quinot@adacore.com>
12310 * sinput-l.adb (Load_File): Disable style checks when preprocessing.
12312 2007-12-13 Bob Duff <duff@adacore.com>
12314 * s-soflin.ads: Apply new pragma Favor_Top_Level to all
12315 access-to-subprogram types in this package.
12317 2007-12-13 Olivier Hainque <hainque@adacore.com>
12319 * s-stausa.ads (Stack_Analyzer): Remove First_Is_Topmost, redundant
12320 with Stack_Grows_Down in System.Parameters. Rename Array_Address into
12321 Stack_Overlay_Address and document that we are using an internal
12323 (Byte_Size, Unsigned_32_Size): Remove, now useless.
12324 (Pattern_Type, Bytes_Per_Pattern): New subtype and constant, to be used
12325 consistently throughout the various implementation pieces.
12327 * s-stausa.adb (Stack_Slots): New type, abstraction for the stack
12328 overlay we are using to fill the stack area with patterns.
12329 (Top_Slot_Index_In, Bottom_Slot_Index_In): Operations on Stack_Slots.
12330 (Push_Index_Step_For, Pop_Index_Step_For): Likewise.
12331 (Fill_Stack, Compute_Result): Use the Stack_Slots abstraction.
12333 2007-12-13 Robert Dewar <dewar@adacore.com>
12335 * s-stoele.adb ("mod"): mod negative value raises Constraint_Error
12337 2007-12-13 Arnaud Charlet <charlet@adacore.com>
12340 (Create_Task): Take into account tasks created by foreign threads.
12341 Code clean up: use constants instead of hard coded values.
12343 2007-12-13 Robert Dewar <dewar@adacore.com>
12345 * styleg.adb (Check_Comment): More liberal rules for comment placement
12347 2007-12-13 Olivier Hainque <hainque@adacore.com>
12349 * tb-alvms.c (struct tb_entry_t, __gnat_backtrace): Revert back to use
12350 of Procedure Value instead of Frame Pointer as the invocation
12351 identifier associated with the instruction pointer in each traceback
12354 * g-trasym-vms-alpha.adb (Traceback_Entry, PV_For, FP_For,
12355 TB_Entry_For): Revert back to use of Procedure Value instead of Frame
12356 Pointer as the invocation identifier passed to tbk$symbolize.
12358 * s-traent-vms.ads, s-traent-vms.adb
12359 (Traceback_Entry, PV_For, FP_For, TB_Entry_For): Revert back to use of
12360 Procedure Value instead of Frame Pointer as the invocation identifier
12361 passed to tbk$symbolize.
12363 2007-12-13 Robert Dewar <dewar@adacore.com>
12365 * tbuild.ads, tbuild.adb:
12366 Fix location of flag for unrecognized pragma message
12368 2007-12-13 Robert Dewar <dewar@adacore.com>
12370 * treepr.ads, treepr.adb: (pl): implement use of positive value
12373 2007-12-13 Robert Dewar <dewar@adacore.com>
12375 * xeinfo.adb: Remove warnings
12376 * xnmake.adb: Remove warnings
12377 * xsinfo.adb: Remove warnings
12378 * xtreeprs.adb: Remove warnings
12379 * xsnames.adb: Remove warnings
12381 * a-ngcoar.adb: Fix typo.
12382 * s-interr.adb: Minor reformatting
12383 * env.c: Minor reformatting.
12384 * g-bytswa.adb: Minor reformatting.
12385 * g-rannum.ads: Minor documentation improvements
12386 * s-tasinf-mingw.adb: Minor header fix
12387 * a-clrefi.adb: Minor reformatting
12388 * g-sttsne.ads: Minor documentation improvement
12389 * g-sttsne-locking.ads: Minor documentation improvement
12390 * g-soliop-solaris.ads: Minor documentation improvement
12391 * g-soliop-mingw.ads: Minor documentation improvement
12392 * g-soliop.ads: Minor documentation improvement
12393 * exp_aggr.ads: Minor reformatting
12394 * debug.adb: Add documentation for the gprbuild debug flags
12395 * exp_ch2.adb: Use Nkind_In to simplify code throughout
12396 * exp_pakd.adb: Minor reformatting
12398 * g-altive.ads, g-alleve.adb: Remove assertions.
12399 Add comment about minor differences between targets regarding
12400 floating-point operations.
12402 * g-thread.adb: Remove pragma unreferenced.
12403 * lib.ads: Minor reformatting
12404 * par-ch9.adb: Minor reformatting of error messages
12405 * sem_case.adb: Minor reformatting
12406 * s-fileio.adb: Minor reformattinng
12407 * s-vmexta.ads: Minor typo
12409 Take into account 'Success' value as per new GNAT warning.
12411 2007-12-13 Vincent Celier <celier@adacore.com>
12413 * a-direct.adb (Create_Path): Always take '/' as a directory separator,
12416 2007-12-13 Robert Dewar <dewar@adacore.com>
12417 Bob Duff <duff@adacore.com>
12419 * gnat_ugn.texi: Dcoument new rules for style check comment alignment
12420 Document that suffixes may be terminations of each others
12421 Add doc for -gnatw.a and -gnatw.A
12422 Document gnatbind -Wx switch
12423 Document BOM recognition
12424 Document pragma Implemented_By_Entry.
12425 Document new units.
12427 * gnat_rm.texi: (Favor_Top_Level): Document new pragma.
12428 Add doc for pragma Unreferenced suppressing no entities referenced msg
12429 Add documentation of GNAT.Directory_Operations.Iteration
12430 Add documentation of GNAT.Random_Numbers
12431 Add documentation for pragma Shared.
12432 Correct documentation for Bit_Order
12433 Add documentation for the Pool_Address attribute.
12434 Fix and improve documentation of pragma machine_attribute.
12435 New pragma Fast_Math
12436 Document BOM recognition
12438 * vms_data.ads: Add entries for -gnatw.a -gnatw.A
12439 Add /Wide_Character_Encoding for binder
12440 Add qualifier for the new gnatpp option --no-separate-loop-then
12442 2007-12-13 Matthew Heaney <heaney@adacore.com>
12444 * a-cohase.ads, a-cihama.ads, a-cihase.ads, a-cohama.ads: Document
12445 which generic formal operations are called for each operation.
12447 2007-12-13 Olivier Hainque <hainque@adacore.com>
12449 * tb-gcc.c (uw_data_t, trace_callback): Only define if not GCC-SJLJ eh.
12450 (__gnat_backtrace): Early return 0 if using GCC-SJLJ eh.
12452 2007-12-13 Emmanuel Briot <briot@adacore.com>
12454 * s-os_lib.ads, s-os_lib.adb (Normalize_Pathname): Do not compute
12455 Reference_Dir unless we actually need it.
12457 2007-12-13 Vasiliy Fofanov <fofanov@adacore.com>
12458 Tristan Gingold <gingold@adacore.com>
12460 * g-socthi-vms.ads (Fd_Set_Access): make it 32-bit.
12462 * s-osprim-vms.adb,
12463 a-calend-vms.adb: Remove pragma warning off and add pragma
12466 2007-12-13 Robert Dewar <dewar@adacore.com>
12468 * impunit.adb: Add entries for missing units
12470 * Makefile.rtl: Add new run-time units.
12472 * Make-lang.in: Update dependencies.
12474 2007-12-13 Bob Duff <duff@adacore.com>
12476 * itypes.ads, itypes.adb (Create_Itype): For access-to-subprogram
12477 types, set Can_Use_Internal_Rep appropriately, based on
12478 Always_Compatible_Rep_On_Target.
12480 2007-12-13 Gary Dismukes <dismukes@adacore.com>
12481 Arnaud Charlet <charlet@adacore.com>
12483 * make.adb (Scan_Make_Arg): Add test for -aamp_target switch, passing
12484 it to the front end and setting the aamp_target environment variable
12485 to the switch's argument to ensure that gnaampbind and gnaamplink will
12486 take the specified library into account.
12487 (Make): Only set Check_Object_Consistency to False for JVM, not for CIL
12488 target, since the CIL compiler supports an "object" file (.il files).
12490 2007-12-13 Vincent Celier <celier@adacore.com>
12492 * symbols-processing-vms-ia64.adb (Process.Skip_Half): New procedure
12493 (Process.H): Remove variable. Replace Read_Half (H) with Skip_Half.
12495 2007-12-13 Geert Bosch <bosch@adacore.com>
12497 * s-parame-vxworks.adb:
12498 Update comments to reflect usage of this package by Nucleus.
12500 2007-12-13 Arnaud Charlet <charlet@adacore.com>
12502 * i-vxwork.ads: Kill new warning on Convention C, since changing the
12503 spec would break code.
12505 * i-forbla-unimplemented.ads, vx_stack_info.c: New files.
12507 * system-vxworks-alpha.ads: Removed.
12509 2007-12-10 Eric Botcazou <ebotcazou@adacore.com>
12511 * ada-tree.h (TYPE_RETURNS_BY_TARGET_PTR_P): Move around.
12513 2007-12-09 Samuel Tardieu <sam@rfc1149.net>
12516 * sem_ch3.adb (Designates_T): New function.
12517 (Mentions_T): Factor reusable part of the logic into Designates_T.
12518 Consider non-access parameters and access and non-access result.
12519 (Check_Anonymous_Access_Components): Set ekind of anonymous access to
12520 E_Subprogram_Type to E_Anonymous_Access_Subprogram_Type.
12522 * einfo.ads: Update comment for E_Anonymous_Access_Subprogram_Type.
12524 2007-12-07 Ludovic Brenta <ludovic@ludovic-brenta.org>
12527 * mlib-tgt.adb, mlib-tgt.ads: Fix comments at the top to reflect
12528 the new implementation of target-specific calls.
12530 2007-12-07 Olivier Hainque <hainque@adacore.com>
12532 * decl.c (gnat_to_gnu_entity) <case E_Access_Type>: When computing
12533 the designated full view, only follow a second level Full_View link
12534 for Non_Limited_Views of from_limited_with references.
12536 2007-12-07 Samuel Tardieu <sam@rfc1149.net>
12539 * sem_ch6.adb (Process_Formals): Prevent an access type formal
12540 to be initialized with an access to constant object.
12542 * sem_ch3.adb (Analyze_Object_Declaration): Signal an error
12543 when an access to constant is used to initialize an access
12547 * a-direct.adb (Compose): Containing_Directory can be an empty string.
12549 2007-12-07 Olivier Hainque <hainque@adacore.com>
12552 * decl.c (gnat_to_gnu_entity) <case E_Array_Type>: When setting
12553 the alignment on the GCC XUA array type, set TYPE_USER_ALIGN if
12554 this is from an alignment clause on the GNAT entity.
12555 * utils.c (create_field_decl): Rewrite the computation of DECL_ALIGN
12556 to distinguish the case where we set it from the type's alignment.
12557 When so, propagate TYPE_USER_ALIGN into DECL_USER_ALIGN to indicate
12558 whether this alignment was set from an explicit alignment clause.
12560 2007-12-06 Eric Botcazou <ebotcazou@adacore.com>
12562 * decl.c (make_packable_type): Revert last change.
12563 (gnat_to_gnu_field): Avoid setting size and position multiple times.
12564 * utils.c (finish_record_type): Retrieve the real name of the type.
12566 2007-12-05 Eric Botcazou <ebotcazou@adacore.com>
12568 * trans.c (lvalue_required_p): Take base node directly instead
12569 of its parent. Rename second parameter to 'gnu_type'.
12570 <N_Indexed_Component>: Return 0 if the node isn't the prefix.
12571 <N_Slice>: Likewise.
12572 (Identifier_to_gnu): Rename parent_requires_lvalue to require_lvalue.
12573 Adjust calls to lvalue_required_p.
12575 2007-12-05 Samuel Tardieu <sam@rfc1149.net>
12578 * exp_ch9.adb (Build_Simple_Entry_Call): Initialize OUT access type
12579 parameters of an entry call.
12581 2007-12-03 Robert Dewar <dewar@adacore.com>
12582 Samuel Tardieu <sam@rfc1149.net>
12585 * sem_util.adb (Safe_To_Capture_Value): Do not capture values
12586 of variables declared in a library-level package.
12588 2007-12-02 Samuel Tardieu <sam@rfc1149.net>
12590 * clean.adb (Clean_Library_Directory): Use Empty_String'Access intead
12591 of Empty_String'Unchecked_Access.
12593 * Makefile.in: Add support for sh4-linux.
12595 * system-linux-sh4.ads: New file.
12597 2007-12-01 Kostik Belousov <kostikbel@ukr.net>
12600 * env.c (__gnat_setenv): FreeBSD 7 has a POSIX conformant putenv()
12601 and its argument must not be free()ed.
12603 2007-11-29 Eric Botcazou <ebotcazou@adacore.com>
12605 * decl.c (make_packable_type): Retrieve the real name of the type.
12606 (maybe_pad_type): Simplify similar code.
12608 2007-11-28 Samuel Tardieu <sam@rfc1149.net>
12611 * par-ch3.adb (P_Variant_Part): Signal an error when anything other
12612 than an identifier is used after "case" in a variant_part.
12615 * par-ch4.adb (Is_Parameterless_Attribute): New map.
12616 (P_Name, Scan_Apostrophe block): Parse left parenthesis following
12617 attribute name or not depending on the new map.
12619 * sem-attr.adb (Analyze_Attribute): Parameterless attributes
12620 returning a string or a type will not be called with improper
12623 * sem-attr.ads (Attribute_Class_Array): Move to snames.ads.
12625 * snames.ads (Attribute_Class_Array): Moved from sem-attr.ads.
12628 * sem_attr.adb (Analyze_Attribute, Attribute_Integer_Value clause):
12629 Signal an error when attribute argument is a fixed-point value of
12633 * sem_ch3.adb (Build_Derived_Numeric_Type): Do not set RM_Size on
12634 a derived ordinary fixed point type.
12636 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Recompute
12637 RM_Size when a Small clause is found.
12639 2007-11-26 Andreas Krebbel <krebbel1@de.ibm.com>
12642 * trans.c (Subprogram_Body_to_gnu, Compilation_Unit_to_gnu):
12643 Pass 'false' for the new allocate_struct_function parameter.
12644 * utils.c (build_function_stub): Likewise.
12646 2007-11-25 Richard Guenther <rguenther@suse.de>
12648 * utils.c (gnat_pushlevel): Use BLOCK_CHAIN.
12649 (gnat_poplevel): Likewise.
12651 2007-11-25 Eric Botcazou <ebotcazou@adacore.com>
12653 * decl.c (gnat_to_gnu_entity) <E_Record_Type>: If the type has
12654 strict alignment, no alignment clause and a known static size, cap
12655 the type alignment to the greatest power of 2 factor of the size.
12656 (gnat_to_gnu_field): If the field has a component clause, is aliased
12657 or of a type with strict alignment, require that its size be equal to
12659 (validate_size): Use the type size as the minimum size for a type with
12662 2007-11-23 Samuel Tardieu <sam@rfc1149.net>
12664 * s-inmaop-posix.adb, s-intman-vxworks.adb, s-taprop-hpux-dce.adb,
12665 s-taprop-irix.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
12666 s-taprop-posix.adb, s-taprop-tru64.adb, s-taprop-vxworks.adb:
12667 Use 'Access instead of 'Unchecked_Access in second and third
12668 arguments of pthread_sigmask.
12670 2007-11-23 Eric Botcazou <ebotcazou@adacore.com>
12672 * decl.c (ceil_alignment): New function.
12673 (gnat_to_gnu_entity): Use it to set the alignment on atomic types.
12674 (make_packable_type): Likewise.
12676 2007-11-22 Olivier Hainque <hainque@adacore.com>
12678 * trans.c (gnat_to_gnu) <case N_Free_Statement>: Reformat lines
12679 to fit in 80 columns.
12681 2007-11-21 Aurelien Jarno <aurelien@aurel32.net>
12683 * s-osinte-kfreebsd-gnu.ads (To_Target_Priority): New function.
12684 * Makefile.in: Add EH_MECHANISM=-gcc to kfreebsd-gnu. Remove SYMLIB.
12686 2007-11-19 Eric Botcazou <ebotcazou@adacore.com>
12689 * misc.c (gnat_adjust_rli): Delete.
12690 (gnat_init): Do not initialize the translation code here.
12691 Do not call set_lang_adjust_rli.
12692 * trans.c (init_code_table): Make static.
12693 (gnat_init_stmt_group): Delete.
12694 (gigi): Initialize the translation code entirely here.
12695 Emit debug info for the common types here instead of...
12696 * utils.c (gnat_init_decl_processing): ...here.
12697 * gigi.h (init_code_table): Delete.
12698 (gnat_init_stmt_group): Likewise.
12700 2007-11-16 Olivier Hainque <hainque@adacore.com>
12702 * utils2.c (build_call_alloc_dealloc) <if gnu_obj>: Move the code
12703 retrieving an allocator return value from a super-aligned address from
12705 * trans.c (gnat_to_gnu) <case N_Free_Statement>: ... here, and don't
12706 expect a super-aligned address for a fat or thin pointer.
12708 2007-11-14 Eric Botcazou <ebotcazou@adacore.com>
12710 * trans.c (call_to_gnu): Always set the source location on the call
12711 expression. If the function returns-by-target, also set it on the
12712 address expression.
12714 2007-11-14 Samuel Tardieu <sam@rfc1149.net>
12716 * adaint.c, init.c, initialize.c, link.c: Remove system-specific
12717 sections of non-supported Interix target.
12719 * s-osinte-interix.ads: Removed.
12721 * i-cstrin.ads (chars_ptr): Make it a C convention type.
12723 2007-11-13 Samuel Tardieu <sam@rfc1149.net>
12725 * a-tasatt.adb: Add a comment at the beginning of the package
12726 explaining why in general 'Unchecked_Access must be used instead
12729 * sem_prag.adb (Process_Convention): Move the test for the
12730 entity on which the Convention pragma applies down to also
12731 forbid pragma Convention on enumeration literals reached
12734 2007-11-10 Samuel Tardieu <sam@rfc1149.net>
12736 * a-tasatt.adb: Revert previous change for this file as it will
12737 generate an error when this package is instantiated from a
12740 2007-11-07 Samuel Tardieu <sam@rfc1149.net>
12742 * a-tasatt.adb: Type Wrapper should be declared in comment instead
12743 of already declared type Node_Access.
12744 Use 'Access instead of 'Unchecked_Access when applicable. Local
12745 lifetime is the one of the package.
12746 (Set_Value): W is allocated on the heap.
12748 * g-socket.adb: Use 'Access instead of 'Unchecked_Access when
12750 (Get_Socket_Option): Optlen formal of C_Getsockopt is of an anonymous
12752 (Receive_Socket): Fromlen formal of C_Recvfrom is of an anonymous
12755 * s-taasde.adb: Use 'Access instead of 'Unchecked_Access when
12757 (elaboration code): Timer_Queue lifetime is the one of the
12760 * tracebak.c (i386 alternative): Remove useless comparaison
12761 which is always false; LOWEST_ADDRESS is 0 and is never greater
12762 than an unsigned integer.
12764 * sem_attr.adb (Analyze_Attribute): Remove duplicate identical
12765 embedded check for "Ada_Version >= Ada_05".
12767 2007-11-07 Olivier Hainque <hainque@adacore.com>
12769 * decl.c (make_aligning_type): Set the mode of the RECORD_TYPE we
12770 craft and expand comment.
12772 2007-11-01 Eric Botcazou <ebotcazou@adacore.com>
12774 * lang-specs.h: Move translation of -fRTS= after -gnatez switch.
12776 2007-10-23 Eric Botcazou <ebotcazou@adacore.com>
12778 * misc.c (gnat_handle_option): Replace call to abort with
12779 call to gcc_unreachable.
12780 (gnat_init): Likewise.
12781 (gnat_expand_expr): Likewise.
12782 (fp_prec_to_size): Likewise.
12783 (fp_size_to_prec): Likewise.
12785 2007-10-23 Richard Guenther <rguenther@suse.de>
12788 * tracebak.c: #undef abort after including system.h.
12790 2007-10-20 Danny Smith <dannysmith@users.sourceforge.net>
12792 * Makefile.in (LIBGNAT_TARGET_PAIRS) Add s-tasinf-mingw.adb,
12793 s-tasinf-mingw.ads, a-exetim-mingw.adb, a-exetim-mingw.ads
12795 (EXTRA_GNATRTL_TASKING_OBJS): Add a-exetim.o for win32 targets.
12797 2007-10-15 Eric Botcazou <ebotcazou@adacore.com>
12799 * s-osinte-tru64.adb: (Hide_Yellow_Zone): Add On parameter.
12800 Set the protection status of the guard page based on the value of On.
12802 * s-osinte-tru64.ads: (Hide_Yellow_Zone): Add On parameter.
12804 * s-taprop-tru64.adb: (Enter_Task): Pass True to Hide_Yellow_Zone.
12805 (Exit_Task): Pass False to Hide_Yellow_Zone.
12807 2007-10-15 Robert Dewar <dewar@adacore.com>
12809 * s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
12810 s-taprop-vxworks.adb, s-taprop-posix.adb, a-calend-vms.adb,
12811 a-calend.adb, a-nuflra.adb, a-tigeau.adb, a-wtgeau.adb,
12812 checks.adb, bindgen.adb, eval_fat.adb, exp_fixd.adb, fmap.adb,
12813 freeze.adb, g-awk.adb, g-calend.adb, g-diopit.adb, g-expect.adb,
12814 gnatchop.adb, gnatlink.adb, g-spipat.adb, g-thread.adb, make.adb,
12815 mdll.adb, mlib.adb, mlib-prj.adb, osint.adb, par-ch3.adb, prj.adb,
12816 prj-makr.adb, sem_prag.adb, sem_type.adb, s-fatgen.adb, s-fileio.adb,
12817 sinfo.ads, sinput-d.adb, s-taasde.adb, s-tasdeb.ads, s-tasren.adb,
12818 s-tassta.adb, s-tpobop.adb, s-tposen.adb, stylesw.adb, types.ads,
12819 uintp.adb, validsw.adb, makegpr.adb, a-rbtgso.adb, a-crbtgo.adb,
12820 a-coorse.adb, a-convec.adb, a-coinve.adb, a-cohama.adb, a-ciorse.adb,
12821 a-cihama.adb, a-cidlli.adb, a-chtgop.adb, a-cdlili.adb, a-cdlili.adb,
12822 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb, a-ciorma.adb,
12823 a-coorma.adb, a-ztgeau.adb, symbols-vms.adb, a-crdlli.adb,
12824 a-calari.adb, a-calfor.adb, s-os_lib.adb, s-regpat.adb, a-ngrear.adb:
12825 Minor reformatting.
12826 Add Unreferenced and Warnings (Off) pragmas for cases of
12827 variables modified calls where they are IN OUT or OUT parameters and
12828 the resulting values are not subsequently referenced. In a few cases,
12829 we also remove redundant code found by the new warnings.
12831 * ug_words, vms_data.ads, usage.adb, sem_util.adb, sem_util.ads,
12832 sem_warn.adb, sem_warn.ads, sem_res.adb, sem_ch7.adb, sem_ch8.adb,
12833 sem_ch5.adb, opt.ads, lib-xref.adb, lib-xref.ads, exp_smem.adb,
12834 sem_ch11.adb, exp_ch6.adb, einfo.ads, einfo.adb: implement a new
12835 warning controlled by -gnatw.o that warns on cases of out parameter
12836 values being ignored.
12838 2007-10-15 Geert Bosch <bosch@adacore.com>
12840 * adaint.c, socket.c, cal.c: Initial port to arm-mentor-nucleus.
12842 * expect.c: Initial port to arm-mentor-nucleus.
12843 Use kill for __gnat_kill() on VMS.
12845 2007-10-15 Emmanuel Briot <briot@adacore.com>
12847 * ali.ads, ali.adb (Scan_ALI): Initialize XE.Tref to a known default
12849 (Xref_Record): Change type for Line, since in the case of a reference to
12850 a predefined entity (as happens for array index types), the line is set
12852 Add support for parsing multiple array index types info, or
12853 multiple inherited interfaces info. This information cannot be stored
12854 in Xref_Entity_Record, which only supports a single instance of Tref_*,
12855 and is therefore stored in the list of references instead. It has a
12856 special treatement later on in tools that use this information.
12858 2007-10-15 Tristan Gingold <gingold@adacore.com>
12860 * debug.adb: Document use of -gnatd.a and -gnatd.I
12862 * layout.adb: On OpenVMS -gnatd.a disables alignment optimization.
12864 2007-10-15 Javier Miranda <miranda@adacore.com>
12866 * exp_attr.adb (Expand_N_Attribute_Reference): Case Access,
12867 Unchecked_Access, and Unrestricted_Access. Cleanup code that takes
12868 care of access to class-wide interface types plus removal of bizarre
12869 conversion of tagged object to access type (reported by Gary
12870 Dismukes). After this patch there is no need to perform any
12871 additional management on these nodes in Expand_Interface_Actuals.
12873 * exp_disp.adb (Expand_Interface_Actuals): Code cleanup. Remove code
12874 that handles use of 'Access and 'Unchecked_Access applied to
12875 actuals covering interface types. Such code is now
12876 centralized in Expand_N_Attribute_Reference.
12878 2007-10-15 Ed Schonberg <schonberg@adacore.com>
12880 * exp_ch3.adb (Build_Init_Procedure): Keep separate the initialization
12881 of tagged types whose ultimate ancestor is a CPP type.
12882 (Freeze_Array_Type): For a packed array type, generate an initialization
12883 procedure if the type is public, to handle properly a client that
12884 specifies Normalize_Scalars.
12886 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
12888 * exp_ch9.adb (Actual_Index_Expression): When the expansion occurs
12889 inside a generic body, retrieve the full view of the entry family
12890 discrete subtype if available.
12892 2007-10-15 Thomas Quinot <quinot@adacore.com>
12894 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
12895 attempt to generate stubs for hidden primitive operations.
12897 2007-10-15 Vincent Celier <celier@adacore.com>
12899 * mlib-tgt-specific.adb (Support_For_Libraries): New function,
12900 returning None, used when there is no platform specific body for
12903 2007-10-15 Bob Duff <duff@adacore.com>
12905 * sem_case.adb, sem_ch13.adb, lib-sort.adb: Replace use of Heap_Sort_A
12906 (passing'Unrestricted_Access of nested subprograms to Sort) with use of
12907 the generic Heap_Sort_G, in order to avoid trampolines.
12909 2007-10-15 Vasiliy Fofanov <fofanov@adacore.com>
12910 Jose Ruiz <ruiz@adacore.com>
12912 * vx_stack_info.c: New file.
12914 * i-forbla-unimplemented.ads: New file.
12916 * Makefile.in: i-forbla-unimplemented.ads: a variant of i-forbla.ads
12917 for unsupported configurations; use it on VMS targets instead of the
12919 (EXTRA_LIBGNAT_SRCS,EXTRA_LIBGNAT_OBJS for VxWorks): Include
12920 vx_stack_info.{c,o} that contains the routine __gnat_get_stack_info
12921 used by VxWorks targets to have access to task-specific data and be
12922 able to extract the stack boundaries for stack checking.
12923 Use system-vms-ia64.ads on ivms.
12925 * Make-lang.in: Update dependencies.
12927 * sysdep.c (__gnat_get_stack_info): Move to a standalone file
12930 2007-10-15 Vincent Celier <celier@adacore.com>
12932 * snames.adb, snames.ads: Add new standard name runtime_library_dir
12934 * prj.ads (Language_Config): Add new component Runtime_Library_Dir
12936 * prj-attr.adb: Add project level attribute Runtime_Library_Dir
12938 * prj-env.adb (Create_Mapping_File): Do not put an entry if the path of
12939 the source is unknown.
12941 * prj-ext.adb: Spelling error fix
12943 * prj-nmsc.adb (Check_Ada_Name): Reject any unit that includes an Ada
12944 95 reserved word in its name.
12945 (Process_Project_Level_Array_Attributes): Process new attribute
12946 Runtime_Library_Dir.
12948 * prj-part.adb (Parse_Single_Project): Do not check the name of the
12949 config project against the user project names.
12951 * prj-proc.adb (Expression): In multi-language mode, indexes that do
12952 not include a dot are always case insensitive.
12953 (Process_Declarative_Items): Ditto
12954 (Process_Project_Tree_Phase_1): Set Success to False in case an error is
12957 * prj-util.adb (Value_Of (In_Array)): When Force_Lower_Case_Index is
12958 True, compare both indexes in lower case.
12960 2007-10-15 Robert Dewar <dewar@adacore.com>
12962 * rtsfind.adb: (Load_RTU): Turn off style checks for Load call
12964 2007-10-15 Gary Dismukes <dismukes@adacore.com>
12966 * sem_aggr.adb (Resolve_Record_Aggregate): In the case of a box
12967 association for an access component, add an association with null as
12968 the expression. Remove testing for array subtypes and the setting in
12969 that case of Ctyp to the array component type, which prevented proper
12970 inclusion of an association for null-initialized arrays. Collapse
12971 condition that tests for array subtypes into just a test of
12972 Is_Partially_Initialized_Type (which already covers arrays anyway).
12974 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
12976 * sem_ch12.adb: Minor code reformatting.
12977 (Check_Generic_Child_Unit): Iterate over the homonym chain in order to
12978 find the parent package which may have been hidden by local
12981 2007-10-15 Gary Dismukes <dismukes@adacore.com>
12983 * sem_ch3.adb (Build_Derived_Concurrent_Type): Set the Is_Constrained
12984 flag of derived concurrent types, taking into account the flag setting
12985 on the parent subtype and any new set of discriminants.
12987 2007-10-15 Hristian Kirtchev <kirtchev@adacore.com>
12989 * sem_ch4.adb: Minor code and comment reformatting.
12990 (Analyze_Allocator): When the designated type of an unconstrained
12991 allocator is a record with unknown discriminants or an array with
12992 unknown range bounds, emit a detailed error message depending on the
12993 compilation mode and whether the designated type is limited.
12995 2007-10-15 Tristan Gingold <gingold@adacore.com>
12997 * system-vms-ia64.ads: New file.
12999 * system-vms_64.ads: Minor comment fix.
13001 2007-10-15 Ed Schonberg <schonberg@adacore.com>
13003 * sem_ch6.adb (Find_Corresponding_Spec): If the previous entity is a
13004 body generated for a function with a controlling result that is a null
13005 extension, discard the generated body in favor of the current explicit
13008 2007-10-15 Ed Schonberg <schonberg@adacore.com>
13010 * sem_disp.adb (Find_Controlling_Arg): Examine the call node before
13011 examining its original form, to handle properly operator calls that
13012 have been rewritten.
13014 2007-10-15 Olivier Hainque <hainque@adacore.com>
13016 * tb-alvms.c (tb_entry_t, __gnat_backtrace): Store a frame pointer
13017 instead of a procedure value in each traceback entry.
13019 * g-trasym-vms-alpha.adb (Symbolic_Traceback): Pass frame pointer
13020 instead of procedure value to TBK$SYMBOLIZE.
13022 * s-traent-vms.adb (PV_For): Rename as FP_For and access the proper
13024 (TB_Entry_For): Account for the PV/FP renaming.
13026 * s-traent-vms.ads (Traceback_Entry): Rename PV component into FP and
13028 (Null_TB_Entry): Account for change of component name.
13029 (PV_For): Rename as FP_For.
13031 2007-10-15 Tristan Gingold <gingold@adacore.com>
13033 * trans.c (gnat_to_gnu): Remove the padding structure more often.
13034 This optimize assignment to over-aligned record.
13036 2007-10-15 Emmanuel Briot <briot@adacore.com>
13038 * xref_lib.adb (Get_Full_Type): Add support for the 'h' entity type, ie
13041 * xr_tabls.adb (Add_Reference): Add support for the new 'R' reference
13042 type, for dispatching calls.
13044 2007-10-15 Vincent Celier <celier@adacore.com>
13045 Robert Dewar <dewar@adacore.com>
13047 * gnat_ugn.texi: Add documentation for switches --version and --help
13048 for the GNAT tools gnatbind, gnatlink, gnatmake, gnatchop, gnatname,
13049 gnatxref, gnatfind, gnatls, and gnatclean.
13051 Mention attribute Excluded_Source_Dirs
13052 Replace obsolescent attribute Locally_Removed_Files with attribute
13053 Excluded_Source_Files.
13054 Improve documentation of -u (gnatbind)
13055 Document how to do reliable stack checking for the environmental task
13058 * gnat_rm.texi: Rewrite section about No_Implicit_Dynamic_Code.
13059 Document attribute Excluded_Source_Files and indicate that attribute
13060 Locally_Removed_Files is obsolescent.
13062 2007-10-15 Thomas Quinot <quinot@adacore.com>
13064 * g-soccon-vms.ads: Fix value of MSG_WAITALL.
13067 Update documentation to note that OpenVMS 8.3 or later must be used
13068 to generate g-soccon-vms.ads.
13070 * atree.adb: Add ??? comment
13072 * exp_util.adb: Minor reformatting.
13073 Add ??? comment in Kill_Dead_Code.
13075 2007-10-15 Robert Dewar <dewar@adacore.com>
13077 * errout.ads: Comment clarification
13079 * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
13080 (Expand_N_Op_Eq): Improve handling of array equality with -gnatVa
13082 * lib.ads: Comment update
13084 * init.c: Minor reformatting.
13086 * sem_attr.adb: Minor formatting
13088 * osint-b.ads: Minor reformatting
13090 * sem_ch9.adb: Implement -gnatd.I switch
13092 * g-comlin.adb: (Start): Fix handling of empty command line.
13094 * gnatcmd.adb (GNATCmd): Do not put the -rules in the -cargs section,
13095 even when -rules follows the -cargs section.
13097 2007-10-08 Ollie Wild <aaw@google.com>
13099 * misc.c (LANG_HOOKS_PUSHDECL): Replaced lhd_return_tree with
13101 (gnat_init_gcc_eh): Replaced gnat_eh_runtime_type with
13103 (gnat_eh_runtime_type): Removed.
13104 (gnat_return_tree): New function.
13106 2007-10-08 Ben Elliston <bje@au.ibm.com>
13110 2007-08-31 Ben Elliston <bje@au.ibm.com>
13112 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
13113 when compiling for powerpc64-*-linux.
13114 * system-linux-ppc64.ads: New file.
13116 2007-09-27 Eric Botcazou <ebotcazou@adacore.com>
13118 Mapped location support
13119 * back_end.adb (Call_Back_End): Pass information about source
13120 files instead of units to gigi.
13121 * gigi.h (struct File_Info_Type): New.
13122 (gigi): Rename and change type of number_units parameter, change
13123 type of file_info_ptr parameter.
13124 * trans.c (number_files): New global variable.
13125 (gigi): Rename and change type of number_units parameter, change
13126 type of file_info_ptr parameter.
13127 If mapped location support is enabled, create the isomorphic mapping
13128 between source files and line maps.
13129 (Sloc_to_locus): If mapped location support is enabled, translate
13130 source location into mapped location.
13131 (annotate_with_node): Rename into set_expr_location_from_node.
13132 Call set_expr_location instead of annotate_with_locus.
13133 (Pragma_to_gnu): Adjust for above change.
13134 (Loop_Statement_to_gnu): Likewise.
13135 (call_to_gnu): Likewise.
13136 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
13137 (gnat_to_gnu): Likewise.
13138 (add_stmt_with_node): Likewise.
13139 (add_cleanup): Likewise.
13140 * utils.c (gnat_init_decl_processing): Do not set input_line.
13142 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
13144 * sem_ch8.adb (Analyze_Use_Type): Code cleanup.
13145 (Applicable_Use): Emit a warning when a package tries to use itself.
13146 (Use_One_Type): Add variable Is_Known_Used. Emit a warning when a type
13147 is already in use or the package where it is declared is in use or is
13148 declared in the current package.
13149 (Spec_Reloaded_For_Body): New subsidiary routine for Use_One_Type.
13151 * a-tasatt.adb, s-osprim-vxworks.adb, g-socthi-mingw.adb,
13152 s-intman-vms.adb, g-socket.adb, g-thread.adb, s-tarest.adb,
13153 s-tassta.adb, s-tporft.adb: Remove redundant 'use type' clause.
13155 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
13157 * a-calend-vms.adb, a-calend.adb:
13158 Add a section on leap seconds control along with two entities used to
13159 enable and disable leap seconds support. The array Leap_Second_Times is
13160 now constant and contains hard time values pre-generated. Remove
13161 all elaboration code used to populate the table of leap seconds.
13164 Add entity Leap_Seconds_Support to the list of global run-time variables
13165 along with a comment on its usage and values.
13166 (Gen_Adainit_Ada): Add code to generate the declaration and import of
13167 Integer variable Leap_Seconds_Support. Set its value to zero (disabled)
13168 or one (enabled) depending on the presence of binder switch "-y".
13169 (Gen_Adainit_C): Add code to generate the declaration of external int
13170 __gl_leap_seconds_support. Set is value to zero (disabled) or one
13171 (enabled) depending on the presence of binder switch "-y".
13173 * init.c: Add __gl_leap_seconds_support to the list of global values
13174 computed by the binder.
13176 2007-09-26 Jerome Guitton <guitton@adacore.com>
13178 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
13179 s-taprop-hpux-dce.adb, s-taprop-linux.adb, s-taprop-dummy.adb,
13180 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
13181 s-taprop-posix.adb (Stop_Task): New function, dummy implementation.
13183 * s-taprop.ads, s-taprop-vxworks.adb (Stop_Task): New function.
13185 * s-tasdeb.adb (Stop_All_Tasks): New function, implementing a run-time
13186 function which can be called by the debugger to interrupt the tasks of
13187 an Ada application asynchronously, as needed on VxWorks.
13188 (Stop_All_Tasks_Handler): Renamed from Stop_All_Tasks.
13190 * s-tasdeb.ads (Stop_All_Tasks_Handler): New function declaration,
13191 renamed from Stop_All_Tasks. Update comments.
13192 (Stop_All_tasks): New function declaration.
13194 2007-09-26 Olivier Hainque <hainque@adacore.com>
13196 * adaint.c (if defined (__Lynx__)): Wrap #def/#undef VMOS_DEV around
13197 #include <utime.h> and #define GCC_RESOURCE_H before
13198 #include <sys/wait.h>.
13199 Add more protections in __gnat_translate_vms.
13201 * expect.c (if defined (__Lynx__)): #define GCC_RESOURCE_H before
13202 #include <sys/wait.h>.
13204 2007-09-26 Thomas Quinot <quinot@adacore.com>
13205 Sergey Rybin <rybin@adacore.com>
13207 * gnatvsn.ads (PCS_Version_Number, ASIS_Version_Number): Removed.
13209 * exp_dist.ads (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
13212 * opt.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
13214 * rtsfind.adb (PCS_Version_Number): Move from Gnatvsn to Exp_Dist,
13217 * sem_dist.ads: Minor comment fix
13219 * tree_io.ads: Move ASIS_Version_Number from Gnatvsn into Tree_IO.
13221 2007-09-26 Javier Miranda <miranda@adacore.com>
13222 Eric Botcazou <ebotcazou@adacore.com>
13225 (Get_HT_Link/Set_HT_Link): Updated to handle the additional level of
13226 indirection added to the HT_Link component of the TSD. This is required
13227 to statically allocate the TSD.
13230 Minor reordering of the declarations in the private part. Required to
13231 add a level of indirection to the contents of the TSD component HT_Link.
13232 This is required to statically allocate the TSD.
13234 * decl.c (gnat_to_gnu_entity) <object>: Do not exclude objects with
13235 Is_Statically_Allocated set from constant objects.
13236 Do not make exported constants created by the compiler volatile.
13237 (gnat_to_gnu_param): Do not treat an IN parameter whose address is taken
13240 * trans.c (Identifier_to_gnu): For constants, unshare initializers
13241 before returning them.
13243 * exp_disp.ads, exp_disp.adb (Building_Static_DT): Spec moved to the
13244 public part of the package.
13245 (Make_DT): Move HT_Link component out of the TSD record. For this
13246 purpose Make_DT now declares a separate object that stores the
13247 HT_Link value, and initializes the TSD component with the address
13248 of this new object. The addition of this level of indirection is
13249 required to statically allocate the TSD because the TSD cannot
13250 have variable components.
13251 (Expand_Interface_Conversion): Improve the expanded code.
13252 (Expand_Interface_Thunk): Set Is_Thunk in the thunk entity.
13254 * sem_disp.adb (Check_Dispatching_Operation): In case of a body
13255 declaring a primitive operation ---allowed by RM 3.9.2 (13.e/2)---,
13256 if we are building static dispatch tables then we must not generate
13257 extra code to register the primitive because the dispatch table will
13258 be built at the end of the library package; otherwise we notify that
13259 we cannot build the static dispatch table.
13261 2007-09-26 Robert Dewar <dewar@adacore.com>
13263 * checks.adb, gnat1drv.adb, sem_util.ads: Improve warnings for address
13266 * sem_ch13.ads, sem_ch13.adb: Improve warnings for address overlays
13267 (Analyze_Record_Representation_Clause): Suppress junk warning for
13268 missing component clause.
13269 (Analyze_Attribute_Definition_Clause, case Address): Apply the special
13270 tests for controlled type overlay to composites with controlled
13272 (Analyze_Record_Representation_Clause): Add reference for component name
13274 2007-09-26 Javier Miranda <miranda@adacore.com>
13275 Gary Dismukes <dismukes@adacore.com>
13277 * einfo.adb (Is_Thunk): New attribute applicable to subprograms. True
13278 for thunks associated with interface types.
13280 * einfo.ads: Improve documentatation of Is_Internal
13281 (Is_Thunk): New attribute applicable to subprograms. True for thunks
13282 associated with interface types.
13283 Extensive comment fixes regarding flags that appear in all entities. The
13284 documentation is now consistent for all such flags (there were a number
13285 of errors in the documentation in this regard).
13287 * exp_attr.adb (Expand_N_Attribute_Reference): Minor code cleanup.
13289 * exp_ch6.adb (Make_Build_In_Place_Call_*): Return immediately if any
13290 of these procedures are passed a function call that already has
13291 build-in-place actuals (testing new flag
13292 Is_Expanded_Build_In_Place_Call). Set the flag on the function call in
13293 the case where processing continues.
13294 (Expand_Call): If the call is generated from a thunk body then we
13295 propagate the extra actuals associated with the accessibility
13296 level of the access type actuals.
13298 * sem_ch6.adb (Analyze_Subprogram_Body): Set the Protected_Formal field
13299 of each extra formal of a protected operation to reference the
13300 corresponding extra formal of the subprogram denoted by the
13301 operation's Protected_Body_Subprogram.
13303 * sinfo.ads, sinfo.adb (Is_Expanded_Build_In_Place_Call): New flag on
13304 N_Function_Call nodes.
13306 2007-09-26 Robert Dewar <dewar@adacore.com>
13308 * exp_ch5.adb: Activate memmove type processing if debug flag d.s is set
13310 * debug.adb: Add d.s flag.
13312 2007-09-26 Gary Dismukes <dismukes@adacore.com>
13314 * exp_dbug.adb (Debug_Renaming_Declaration): Set Is_Internal on the
13315 debug variable so that it won't be initialized when pragma
13316 Initialize_Scalars is in effect.
13318 2007-09-26 Gary Dismukes <dismukes@adacore.com>
13320 * freeze.adb (Freeze_Entity): Remove check for preelaborable
13321 initialization of a full view. This is moved to
13322 Analyze_Package_Specification.
13324 * sem_ch7.adb (Analyze_Package_Specification): Add check for
13325 preelaborable initialization of a full view in entity loop.
13326 (Uninstall_Declarations): If entity is a use-visible compilation unit,
13327 its child units are use-visible only if they are visible child units.
13329 * sem_util.adb (Is_Preelaborable_Expression): New function to determine
13330 whether an expression can be used within a type declaration that
13331 requires preelaborable init.
13332 (Check_Components): Replace inline code that does partial checking for
13333 preelaborable default expressions with call to
13334 Is_Preelaborable_Expression.
13335 (Has_Preelaborable_Initialization): In the case of a generic actual
13336 subtype, (that is, Is_Generic_Actual is True), return the result of
13337 applying Has_Preelaborable_Initialization to the generic actual's base
13340 2007-09-26 Hristian Kirtchev <kirtchev@adacore.com>
13342 * g-calend.adb (Has_53_Weeks): Rename to Last_Year_Has_53_Weeks. Add a
13343 call to Jan_1_Day _Of_Week to optimize its performance.
13344 (Is_Leap): Move the routine to the scope of Week_In_Year.
13345 (Jan_1_Day_Of_Week): New routine in Week_In_Year which calculates the
13346 weekday on which January 1 falls of Year - 1 and Year + 1. This function
13347 avoids calling Time_Of and Split, thus making it more efficent.
13348 (Week_In_Year): Reimplemented in oder to follow ISO 8601.
13350 * g-calend.ads (Week_In_Year): Change comment to reflect new
13353 2007-09-26 Emmanuel Briot <briot@adacore.com>
13355 * g-comlin.ads, g-comlin.adb (Command_Line_Configuration,
13356 Command_Line): New types
13357 (Define_Alias, Define_Prefix, Free): New subprograms. These provide
13358 support for defining how switches can be grouped on a command line (as
13359 is the case for -gnatw... for GNAT), and how simple switches can be
13360 used as aliases for more complex switches (-gnatwa is same as
13362 (Set_Command_Line, Add_Switch, Remove_Switch): New subprogram
13363 (Start, Current_*): New subprograms
13364 Added support for parsing an array of strings in addition to the real
13366 (Opt_Parser, Opt_Parser_Data): New type. As a result, some types had to
13367 be moved from the body to the private part of the spec.
13368 (*): All subprograms now have an extra parameter with default value to
13369 specify which parser should be used. For backward compatibility, it
13370 defaults to parsing the command line of the application. They were also
13371 modified to properly handle cases where each of the argument does not
13372 start at index 1 (which is always true for Ada.Command_Line, but not
13373 when processing any Argument_List).
13374 (Free): New subprogram
13375 (Internal_Initialize_Option_Scan, Find_Longuest_Matching_Switch,
13376 Argument): New subprograms
13377 (Switch_Parameter_Type): New enum, which clarifies the code. The extra
13378 special characters like ':', '=',... are now handled in a single place,
13379 which makes the code more extensible eventually.
13380 (Getopt, Full_Switch): When the switch was returned as part of the
13381 special character '*', make sure it is prepended by the switch character
13382 ('-' in general), so that the application knows whether "foo" or "-foo"
13383 was specified on the command line.
13385 2007-09-26 Florian Villoing <villoing@adacore.com>
13387 * g-dirope.adb (Remove_Dir): In case we are removing directories
13388 recursively, make sure that if an exception is raised during the
13389 processing, the current working directory is reset to its initial
13390 value before propagating the exception.
13392 2007-09-26 Vincent Celier <celier@adacore.com>
13394 * gnatbind.adb: If there are several ALI files specified and there is
13395 a main program to bind, the first ALI is expected to contain the main
13396 subprogram and the names of the binder generated files will be derived
13397 from the first ALI file name.
13398 (Gnatbind): Fix insertion character in invocation of Error_Msg
13400 2007-09-26 Vincent Celier <celier@adacore.com>
13402 * gnatcmd.adb (Check_Files): Do not include sources that have been
13403 removed by attributes Exclude_Source_Files or Locally_Removed_Files.
13405 2007-09-26 Ed Schonberg <schonberg@adacore.com>
13407 * lib-xref.ads, lib-xref.adb: The entry for array types now carries
13408 information about each of its index types, following the type
13409 reference for its component type.
13411 2007-09-26 Vincent Celier <celier@adacore.com>
13413 * make.adb: (Kill): New procedure (__gnat_kill imported)
13414 (Running_Compile, Outstanding_Compiles): Global variables that
13415 were previously local to procedure Compile_Sources.
13416 (Sigint_Intercepted): Send signal SIGINT to all outstanding
13417 compilation processes.
13419 (Gnatmake): If project files are used, create the mapping of all the
13420 sources, so that the correct paths will be found.
13422 * prj-env.ads, prj-env.adb (Create_Mapping): New procedure
13424 2007-09-26 Vincent Celier <celier@adacore.com>
13426 * makeutl.ads (Main_Config_Project): Moved to gpr_util.ads
13428 * prj.ads, prj.adb (Default_Language): Remove function, no longer used
13429 Replace components Compiler_Min_Options and Binder_Min_Options with
13430 Compiler_Required_Switches and Binder_Required_Switches in record
13432 Remove components Default_Language and Config in Project_Tree_Data,
13435 * prj-attr.adb: New attributes Required_Switches (<language>) in
13436 packages Compiler and Binder.
13438 * prj-nmsc.adb: Major rewrite of the processing of configuration
13439 attributes for gprbuild. No impact on GNAT tools.
13441 * prj-proc.ads, prj-proc.adb (Process_Project_Tree_Phase_2): No longer
13442 process configuration attributes: this is done in Prj.Nmsc.Check.
13443 (Recursive_Process): Make a full copy of packages inherited from project
13444 being extended, instead of a shallow copy.
13445 (Process_Project_Tree_Phase_1): New procedure
13446 (Process_Project_Tree_Phase_1): New procedure
13447 (Process): Implementation now uses the two new procedures
13449 * prj-util.adb (Executable_Of): Get the suffix and the default suffix
13450 from the project config, not the tree config that no longer exists.
13452 2007-09-26 Vincent Celier <celier@adacore.com>
13454 * Make-lang.in: Update dependencies..
13456 2007-09-26 Vincent Celier <celier@adacore.com>
13458 * osint.adb, osint.ads: Minor reformatting
13460 * osint-b.adb, osint-b.ads (Set_Current_File_Name_Index): New procedure
13462 2007-09-26 Gary Dismukes <dismukes@adacore.com>
13464 * par-ch4.adb (P_Record_Or_Array_Component_Association): Change Ada 95
13465 message to cite use of <> in aggregate component associations rather
13466 than wrongly indicating use of limited aggregates.
13468 2007-09-26 Robert Dewar <dewar@adacore.com>
13470 * sem_attr.adb (Analyze_Access_Attribute): Fix missing set of
13473 2007-09-26 Ed Schonberg <schonberg@adacore.com>
13475 * sem_ch3.adb (Derive_Subprograms): If the interface parent is a direct
13476 ancestor of the derived type, the operations are inherited from the
13477 primary dispatch table of the parent.
13478 (OK_For_Limited_Init_In_05): Remove old comment. Reject in-place calls
13479 when the context is an explicit type conversion.
13481 2007-09-26 Ed Schonberg <schonberg@adacore.com>
13483 * sem_ch4.adb (Analyze_Qualified_Expression): Apply name resolution
13484 rule for qualified expressions properly, to detect improper conversions
13485 and resolve some cases of overloading.
13487 2007-09-26 Ed Schonberg <schonberg@adacore.com>
13489 * sem_res.adb (Resolve_Call): If the call is dispatching, generate the
13490 proper kind of reference to the primitive operation, for better source
13492 (Valid_Conversion): A tagged conversion is legal if both operands are
13495 2007-09-26 Robert Dewar <dewar@adacore.com>
13497 * sem_warn.adb (Check_References): Catch more cases of unreferenced
13500 2007-09-26 Vincent Celier <celier@adacore.com>
13502 * snames.adb, snames.ads: Change Include_Option to Include_Switches
13504 2007-09-26 Robert Dewar <dewar@adacore.com>
13506 * s-wchstw.adb: provide messages for run time unit exceptions
13508 * a-witeio.adb: Minor reformatting
13510 * exp_ch13.adb: Minor reformatting
13512 2007-09-26 Sergey Rybin <rybin@adacore.com>
13514 * vms_data.ads: Revise gnatmetric qualifiers.
13515 Add qualified for the new gnatbind option '-y'
13517 * gnat_ugn.texi: Revise the gnatmetric section.
13518 Add entry for new gnatbind option '-y'.
13520 * gnat_rm.texi: Minor spelling correction.
13521 Document restriction on overlaying controlled types
13523 2007-09-26 Vincent Celier <celier@adacore.com>
13525 * makegpr.adb (Link_Executables): Do not fail when the root project has
13526 no sources, but is an extending project.
13528 2007-09-25 Eric Botcazou <ebotcazou@adacore.com>
13530 * trans.c: Fix misplaced #define.
13532 2007-09-22 Eric Botcazou <ebotcazou@adacore.com>
13534 * utils2.c (build_unary_op) <ADDR_EXPR> [INDIRECT_REF]: Propagate
13535 the TYPE_REF_CAN_ALIAS_ALL flag to the result.
13537 2007-09-21 Olivier Hainque <hainque@adacore.com>
13539 * utils.c (type_for_nonaliased_component_p): Return false for
13540 all AGGREGATE_TYPEs.
13542 2007-09-17 Eric Botcazou <ebotcazou@adacore.com>
13544 * decl.c (gnat_to_gnu_entity) <object>: Make again the type of an
13545 object covered by 13.3(19) volatile.
13547 2007-09-12 Eric Botcazou <ebotcazou@adacore.com>
13551 * utils.c (unchecked_convert): Use a subtype as the intermediate type
13552 in the special VIEW_CONVERT_EXPR case.
13554 2007-09-12 Robert Dewar <dewar@adacore.com>
13556 * types.ads, a-charac.ads, freeze.adb: Minor reformatting.
13558 * a-except.adb, g-hesora.adb, g-speche.adb, lib.adb, lib.ads,
13559 lib-load.adb, lib-writ.adb, s-assert.adb, s-carun8.adb,
13560 s-casuti.adb, s-crc32.adb, s-exctab.adb, s-htable.adb, s-imgenu.adb,
13561 s-mastop.adb, s-memory.adb, s-memory.ads, s-secsta.adb, s-soflin.adb,
13562 s-sopco3.adb, s-sopco4.adb, s-sopco5.adb, s-stache.adb, s-stalib.adb,
13563 s-stoele.adb, s-strcom.adb, s-strops.adb, s-traceb.adb, s-traent.adb,
13564 s-wchcnv.adb, s-wchcon.adb, s-wchjis.adb, s-addope.adb, s-except.adb,
13565 s-os_lib.adb, s-string.adb, s-utf_32.adb, a-elchha.adb,
13566 a-chlat1.ads, a-elchha.ads, a-except.ads, g-hesora.ads, g-htable.ads,
13567 g-speche.ads, par-prag.adb, restrict.adb, restrict.ads, s-assert.ads,
13568 s-carun8.ads, s-casuti.ads, s-crc32.ads, sem_ch11.adb, sem_prag.adb,
13569 s-exctab.ads, s-htable.ads, s-imgenu.ads, s-mastop.ads, snames.adb,
13570 snames.ads, snames.h, s-purexc.ads, s-secsta.ads, s-soflin.ads,
13571 s-sopco3.ads, s-sopco4.ads, s-sopco5.ads, s-stache.ads, s-stalib.ads,
13572 s-stoele.ads, s-strcom.ads, s-strops.ads, s-traceb.ads, s-traent.ads,
13573 s-unstyp.ads, s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-addope.ads,
13574 s-except.ads, s-os_lib.ads, s-string.ads, s-utf_32.ads: Implement
13575 pragma Compiler_Unit and adds it to relevant library units.
13577 2007-09-12 Ed Schonberg <schonberg@adacore.com>
13579 * sem_aggr.adb (Resolve_Record_Aggregate): An others association with
13580 a box need not correspond to any component.
13582 2007-09-12 Robert Dewar <dewar@adacore.com>
13584 * g-thread.ads: Document use of "with GNAT.Threads" to ensure loading
13585 the tasking version of the Ada run time when foreign threads are
13586 present and there are no explicit Ada tasks or tasking constructs.
13588 * gnat_rm.texi: Clarify documentation of GNAT.Threads.
13590 2007-09-12 Hristian Kirtchev <kirtchev@adacore.com>
13592 * bindusg.adb (Display): Correct comment for switch -X. Add a line for
13593 the usage of switch -y.
13595 * switch-b.adb (Scan_Binder_Switches): Set flag Leap_Seconds_Support
13596 when switch -y is present.
13598 * opt.ads: Add binder flag Leap_Seconds_Support used to enable/disable
13599 leap seconds in Ada.Calendar and its children.
13601 2007-09-12 Jose Ruiz <ruiz@adacore.com>
13603 * a-extiti.ads (Timer): The discriminant is a "not null access
13604 constant" in the Reference Manual.
13605 (Cancel_Handler): Cancelled is an out parameter in the Reference Manual.
13607 2007-09-12 Robert Dewar <dewar@adacore.com>
13609 * a-swuwha.adb: Remove junk RM header
13611 2007-09-12 Vincent Celier <celier@adacore.com>
13613 * g-bytswa-x86.adb (Swap2, Swap4, Swap8): Remove explicit "in" mode
13616 * g-bytswa.ads: Minor reformatting
13618 2007-09-12 Thomas Quinot <quinot@adacore.com>
13620 * g-soccon-solaris-64.ads, g-soccon-hpux-ia64.ads:
13621 Add new constant Thread_Blocking_IO, always True by default, set False
13622 on a per-runtime basis.
13623 (Need_Netdb_Buffer): New constant.
13625 2007-09-12 Arnaud Charlet <charlet@adacore.com>
13627 * s-dsaser.ads (Get_Local_Partition_Id, Get_Passive_Partition_Id):
13628 Added renames for corresponding functions in System.Partition_Interface.
13630 2007-09-12 Doug Rupp <rupp@adacore.com>
13632 * Makefile.in: Remove VMS specific System.CRTL packages which are no
13635 * s-crtl-vms64.ads: Removed.
13637 2007-09-12 Olivier Hainque <hainque@adacore.com>
13639 * decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: For a subtype
13640 with discriminant constraints, generalize the code for BIT_FIELDs
13641 to PACKED fields of constant size and propagate DECL_PACKED.
13643 2007-09-11 Eric Botcazou <ebotcazou@adacore.com>
13645 * decl.c (array_type_has_nonaliased_component): New predicate.
13646 (gnat_to_gnu_field) <E_Array_Type>: Invoke the above predicate to
13647 set the TYPE_NONALIASED_COMPONENT flag on the type.
13648 <E_Array_Subtype>: Likewise.
13649 * gigi.h (type_for_nonaliased_component_p): Declare.
13650 * utils.c (type_for_nonaliased_component_p): New predicate.
13651 (create_field_decl): Invoke the above predicate to set the
13652 DECL_NONADDRESSABLE_P flag on the field.
13654 2007-09-11 Javier Miranda <miranda@adacore.com>
13656 * einfo.ads, einfo.adb (Dispatch_Table_Wrapper): New attribute. Present
13657 in library level record type entities if we are generating statically
13658 allocated dispatch tables.
13660 * exp_disp.adb (Make_Tags/Make_DT): Replace previous code
13661 importing/exporting the _tag declaration by new code
13662 importing/exporting the dispatch table wrapper. This change allows us
13663 to statically allocate of the TSD.
13664 (Make_DT.Export_DT): New procedure.
13665 (Build_Static_DT): New function.
13666 (Has_DT): New function.
13668 * freeze.adb (Freeze_Static_Object): Code cleanup: Do not reset flags
13669 True_Constant and Current_Value. Required to statically
13670 allocate the dispatch tables.
13671 (Check_Allocator): Make function iterative instead of recursive.
13672 Also return inner allocator node, when present, so that we do not have
13673 to look for that node again in the caller.
13675 2007-09-11 Jan Hubicka <jh@suse.cz>
13677 * misc.c (gnat_expand_body): Kill.
13678 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
13680 2007-09-10 Robert Dewar <dewar@adacore.com>
13682 * exp_atag.ads, exp_atag.adb, mlib-tgt-tru64.adb, mlib-tgt-aix.adb,
13683 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
13684 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
13685 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, ali.adb, ali.ads,
13686 ali-util.adb, ali-util.ads, atree.h, back_end.adb, back_end.ads,
13687 bcheck.adb, bcheck.ads, binde.adb, binde.ads, binderr.adb, binderr.ads,
13688 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads, butil.adb,
13689 butil.ads, checks.adb, checks.ads, clean.adb, clean.ads, comperr.adb,
13690 comperr.ads, cstand.adb, cstand.ads, debug_a.adb, debug_a.ads,
13691 elists.h, errout.adb, erroutc.ads, errutil.adb, errutil.ads,
13692 err_vars.ads, eval_fat.adb, eval_fat.ads, exp_sel.ads, exp_sel.adb,
13693 exp_aggr.adb, exp_aggr.ads, expander.adb, expander.ads, exp_attr.ads,
13694 exp_ch10.ads, exp_ch11.adb, exp_ch12.adb, exp_ch12.ads, exp_ch13.adb,
13695 exp_ch13.ads, exp_ch2.adb, exp_ch2.ads, exp_ch3.ads, exp_ch4.adb,
13696 exp_ch4.ads, exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
13697 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads, exp_ch9.adb,
13698 exp_ch9.ads, exp_code.adb, exp_code.ads, exp_dbug.adb, exp_dbug.ads,
13699 exp_disp.ads, exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
13700 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads, exp_pakd.adb,
13701 exp_pakd.ads, exp_prag.adb, exp_prag.ads, exp_smem.adb, exp_strm.adb,
13702 exp_strm.ads, exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
13703 exp_vfpt.adb, exp_vfpt.ads, fmap.adb, fmap.ads, fname-sf.adb,
13704 fname-sf.ads, fname-uf.adb, fname-uf.ads, frontend.adb, frontend.ads,
13705 get_targ.adb, get_targ.ads, gnat1drv.adb, gnat1drv.ads, gnatbind.adb,
13706 gnatbind.ads, gnatbl.c, gnatchop.adb, gnatclean.adb, gnatcmd.adb,
13707 gnatcmd.ads, gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
13708 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb, gnatls.ads,
13709 gnatmake.adb, gnatmake.ads, gnatmem.adb, gnatname.adb, gnatname.ads,
13710 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb,
13711 gprep.adb, gprep.ads, hlo.adb, hlo.ads, impunit.adb, impunit.ads,
13712 inline.adb, inline.ads, itypes.adb, itypes.ads, layout.adb, layout.ads,
13713 lib-load.adb, lib-load.ads, lib-util.adb, lib-util.ads, lib-writ.adb,
13714 lib-writ.ads, lib-xref.adb, lib-xref.ads, live.adb, live.ads,
13715 make.adb, make.ads, makeutl.ads, makeutl.adb, makeusg.adb, makeusg.ads,
13716 mdll.adb, mdll.ads, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
13717 mdll-utl.ads, memroot.adb, memroot.ads, mlib.adb, mlib.ads,
13718 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
13719 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, namet.h, nmake.adt,
13720 osint.adb, osint.ads, osint-b.adb, osint-b.ads, osint-c.adb,
13721 osint-c.ads, osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads,
13722 par.adb, par.ads, par-ch10.adb, par-ch11.adb, par-ch12.adb,
13723 par-ch13.adb, par-ch2.adb, par-ch3.adb, par-ch4.adb, par-ch5.adb,
13724 par-ch6.adb, par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
13725 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb, par-tchk.adb,
13726 par-util.adb, prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
13727 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads, prj-com.ads,
13728 prj-dect.adb, prj-dect.ads, prj-err.adb, prj-err.ads, prj-ext.adb,
13729 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
13730 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
13731 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
13732 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
13733 prj-util.adb, prj-util.ads, restrict.adb, restrict.ads,
13734 rtsfind.adb, rtsfind.ads, scn.adb, scn.ads,
13735 scng.adb, scng.ads, sdefault.ads, sem.ads, sem_aggr.ads, sem_attr.adb,
13736 sem_case.adb, sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
13737 sem_ch10.ads, sem_ch11.adb, sem_ch11.ads, sem_ch12.ads, sem_ch13.adb,
13738 sem_ch13.ads, sem_ch2.adb, sem_ch2.ads, sem_ch3.adb, sem_ch3.ads,
13739 sem_ch4.ads, sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
13740 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads, sem_ch9.adb,
13741 sem_ch9.ads, sem_disp.adb, sem_disp.ads, sem_dist.adb, sem_dist.ads,
13742 sem_elab.adb, sem_elab.ads, sem_elim.adb, sem_elim.ads, sem_eval.adb,
13743 sem_eval.ads, sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
13744 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads, sem_res.adb,
13745 sem_res.ads, sem_smem.adb, sem_smem.ads, sem_type.adb, sem_type.ads,
13746 sem_util.adb, sem_util.ads, sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb,
13747 sem_warn.ads, sfn_scan.ads, sinfo-cn.adb, sinfo-cn.ads, sinput-c.adb,
13748 sinput-c.ads, sinput-d.adb, sinput-d.ads, sinput-l.adb, sinput-l.ads,
13749 sinput-p.adb, sinput-p.ads, snames.h, sprint.adb, sprint.ads,
13750 stringt.h, style.ads, styleg.adb, styleg.ads, styleg-c.adb,
13751 styleg-c.ads, stylesw.adb, stylesw.ads, switch.adb, switch.ads,
13752 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
13753 switch-m.ads, symbols.adb, symbols.ads, targparm.adb, tbuild.adb,
13754 tbuild.ads, tempdir.adb, tempdir.ads, tree_gen.adb, tree_gen.ads,
13755 treepr.adb, treepr.ads, treeprs.adt, ttypef.ads, ttypes.ads,
13756 types.h, uintp.h, urealp.h, usage.adb, usage.ads,
13757 validsw.adb, validsw.ads, vxaddr2line.adb, xeinfo.adb, xnmake.adb,
13758 xref_lib.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads, xsinfo.adb,
13759 xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb, xgnatugn.adb,
13760 gprmake.adb, makegpr.ads, makegpr.adb, prj-attr-pm.ads, prj-attr-pm.adb,
13761 mlib-tgt-lynxos.adb, mlib-tgt-darwin.adb, symbols-vms.adb,
13762 symbols-processing-vms-alpha.adb, symbols-processing-vms-ia64.adb,
13763 mlib-tgt-specific.adb, mlib-tgt-specific.ads, mlib-tgt-vms.adb,
13764 mlib-tgt-vms.ads: Replace headers with GPL v3 headers.
13766 2007-09-10 Emmanuel Briot <briot@adacore.com>
13768 * s-regpat.adb (Parse_Character_Class): Fix handling of empty character
13771 2007-09-10 Vasiliy Fofanov <fofanov@adacore.com>
13773 * adaint.c (__gnat_translate_vms): new function.
13775 2007-09-10 Gary Dismukes <dismukes@adacore.com>
13776 Thomas Quinot <quinot@adacore.com>
13778 * exp_ch3.adb (Predef_Spec_Or_Body): When the type is abstract, only
13779 create an abstract subprogram in the case of 'Input. For 'Output we now
13780 create a real spec/body when the type is abstract, since it can
13781 potentially be called.
13782 (Predefined_Primitive_Bodies): Now allow the creation of a predefined
13783 body for 'Output when the type is abstract (only the creation of the
13784 body for 'Input is excluded when the type is abstract).
13785 (Stream_Operation_OK): Add an additional condition in the return
13786 statement, so that False will be returned for TTS_Stream_Input if the
13787 associated tagged type is an abstract extension. Add comments for
13789 (Expand_N_Object_Declaration): For the case of a shared passive
13790 variable, insert init proc call only after the shared variable
13791 procedures have been processed, because the IP call needs to undergo
13792 shared passive variable reference expansion, which requires these
13793 procedures to be available (and elaborated).
13795 2007-09-10 Vincent Celier <celier@adacore.com>
13797 * prj-env.ads, prj-env.adb (Create_Mapping_File (Language)): Remove
13798 parameter Runtime_Project.
13800 2007-09-10 Ed Schonberg <schonberg@adacore.com>
13802 * sem_aggr.adb (Build_Record_Aggr_Code): If an aggregate component is
13803 given a box association, the type of the component is discriminated,
13804 and the value of the discriminant is the discriminant of the enclosing
13805 type, retrieve its value from the aggregate itself, where it must have
13808 * sem_ch4.adb (Analyze_One_Call): Further refinement to previous fix,
13809 to remove other spurious ambiguities on arithmetic operations involving
13810 literals and addresses, on systems where Address is a visible integer
13811 type, when the operator is called in functional notation.
13812 (Try_Primitive_Operation): Within an instance, a call in prefixed form
13813 is legal when the types match, even if the operation is currently
13816 2007-09-10 Ed Schonberg <schonberg@adacore.com>
13818 * sem_ch12.adb (Build_Local_Package): A formal package with no
13819 associations is legal if all formals have defaults. It is not
13820 equivalent to a formal declared with a box.
13822 2007-09-10 Sergey Rybin <rybin@adacore.com>
13824 * vms_data.ads: Add qualifier for the new gnatmetric '-lratio' option
13826 2007-09-10 Sergey Rybin <rybin@adacore.com>
13828 * gnat_ugn.texi: Add description of the new '-lratio' option
13829 Update 7.3.1 section about availability of the feature.
13831 2007-09-10 Thomas Quinot <quinot@adacore.com>
13833 * exp_smem.ads, exp_smem.adb (Make_Shared_Var_Procs): Return last
13836 2007-09-10 Olivier Hainque <hainque@adacore.com>
13838 * Makefile.in: (mips-irix section): Activate build of libgmem.
13840 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
13842 * a-numaux-x86.adb (Logarithmic_Pow): Do not silently clobber
13845 2007-09-10 Eric Botcazou <ebotcazou@adacore.com>
13847 * decl.c (gnat_to_gnu_entity) <object>: Deal with variable built for
13848 a debug renaming declaration specially.
13850 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
13852 * decl.c (gnat_to_gnu_entity) <Object>: Simplify the condition under
13853 which a constant renaming is treated as a normal object declaration.
13854 * trans.c (lvalue_required_p) <N_Slice>: New case, extracted from
13855 the N_Indexed_Component case.
13856 <N_Indexed_Component>: Fall through to above case.
13857 <N_Object_Renaming_Declaration>: Return true for all composite types.
13859 2007-09-08 Eric Botcazou <ebotcazou@adacore.com>
13861 * decl.c (make_packable_type): If the new type has been given BLKmode,
13862 try again to get an integral mode for it.
13864 2007-09-07 Eric Botcazou <ebotcazou@adacore.com>
13866 Re-apply accidentally reverted change:
13868 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
13870 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
13871 get_action_description_for): Replace _Unwind_Word with _uleb128_t
13872 and _Unwind_SWord with _sleb128_t.
13874 2007-09-06 Eric Botcazou <ebotcazou@adacore.com>
13876 * trans.c (convert_with_check): Update call to real_2expN.
13878 2007-09-05 Sandra Loosemore <sandra@codesourcery.com>
13880 * trans.c (Compilation_unit_to_gnu): Use set_cfun.
13881 * utils.c (end_subprog_body): Likewise.
13883 2007-09-03 Nick Clifton <nickc@redhat.com>
13885 * Make-lang.in: Change copyright header to refer to version 3 of
13886 the GNU General Public License and to point readers at the
13887 COPYING3 file and the FSF's license web page.
13888 * ada-tree.def, nmake.adt, nlists.h, snames.h, utils.c,
13889 Makefile.rtl, Makefile.in, config-lang.in, uintp.h, urealp.h,
13890 namet.h, decl.c, utils2.c, lang.opt, elists.h, atree.h, types.h,
13891 treeprs.adt, lang-specs.h, cuintp.c, stringt.h, gnatbl.c:
13894 2007-08-31 Vincent Celier <celier@adacore.com>
13898 * gnatchop.adb, gnatfind.adb, gnatlink.adb, gnatls.adb,
13899 gnatname.adb, gnatxref.adb, gprep.adb, clean.adb gnatbind.adb
13900 (Check_Version_And_Help): New procedure in package Switch to process
13901 switches --version and --help.
13902 Use Check_Version_And_Help in GNAT tools
13905 (Compile_Sources): Make sure that sources that are "excluded" are not
13907 (Gnatmake): Do not issue -aO. to gnatbind and only issue -I- if a
13908 project file is used.
13909 (Version_Switch): Remove, moved to Switch
13910 (Help_Switch): Remove, moved to Switch
13911 (Display_Version): Remove, moved to Switch
13913 * switch.ads, switch.adb (Check_Version_And_Help): New procedure in
13914 package Switch to process switches --version and --help.
13915 (Display_Version): New procedure
13917 * gnatvsn.ads, gnatvsn.adb (Copyright_Holder): New function.
13919 2007-08-31 Javier Miranda <miranda@adacore.com>
13921 * a-tags.adb (Internal_Tag): Protect the run-time against wrong
13924 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
13926 * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New routine.
13927 (Mark_Non_Null): If the node for which we just generated an access check
13928 is a reference to an *in* parameter and the reference appears in the
13929 declarative part of a subprogram body, mark the node as known non null.
13931 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
13933 * einfo.ads, einfo.adb: New flag Is_Raised (Flag224). Update the
13934 structure of E_Exception to reflect the new flag.
13935 (Is_Raised, Set_Is_Raised): New inlined routines.
13936 Update the usage of available flag to reflect the addition of Is_Raised.
13937 (Is_Raised, Set_Is_Raised): Bodies of new routines.
13938 (Write_Entity_Flags): Write the status of flag Is_Raised.
13939 (Is_Descendent_Of_Address): New entity flag, to simplify handling of
13940 spurious ambiguities when integer literals appear in the context of an
13941 address type that is a visible integer type.
13943 * sem_ch11.adb (Analyze_Exception_Handler): Add code to warn on local
13944 exceptions never being raised.
13945 (Analyze_Raise_Statement): When analyzing an exception, mark it as being
13948 2007-08-31 Javier Miranda <miranda@adacore.com>
13950 * exp_ch11.adb (Expand_At_End_Handler): Avoid generation of raise
13951 statement when compiling under restriction No_Exceptions_Proparation.
13953 2007-08-31 Ed Schonberg <schonberg@adacore.com>
13955 * exp_ch3.adb (Build_Record_Init_Proc): If there is a static
13956 initialization aggregate for the type, generate itype references for
13957 thetypes of its (sub)components, to prevent out-of-scope errors in gigi.
13959 2007-08-31 Gary Dismukes <dismukes@adacore.com>
13961 * exp_ch8.adb (Expand_N_Package_Renaming_Declaration): In the case of a
13962 library-level package renaming, pass the declaration associated with
13963 the renaming's special debug variable to Qualify_Entity_Names to ensure
13964 that its encoded name is properly qualified.
13966 * exp_dbug.adb (Qualify_All_Entity_Names): Check for a variable entity
13967 occurring in the list of entities to qualify, and do not attempt to
13968 traverse an entity list in that case. Variables associated with
13969 ` library-level package renamings can now occur in the table.
13971 * exp_dbug.ads: Revise documentation of the encoding for renaming
13974 2007-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13976 * layout.adb (Layout_Type): Use Underlying_Type to determine whether an
13977 access type points to an unconstrained array.
13979 2007-08-31 Hristian Kirtchev <kirtchev@adacore.com>
13981 * restrict.adb, namet.adb, par-util.adb: Remove redundant type
13984 * sem_res.adb (Resolve_Qualified_Expression): Add machinery to detect
13985 simple redundant qualifications. The check is performed whenever the
13986 expression is a non-overloaded identifier.
13987 (Resolve_Type_Conversion): Enchance the redundant type conversion check
13988 to include loop parameters.
13989 (Valid_Conversion): Avoid generation of spurious error message.
13991 2007-08-31 Bob Duff <duff@adacore.com>
13993 * par-ch4.adb (P_Simple_Expression): Fold long sequences of
13994 concatenations of string literals into a single literal, in order to
13995 avoid very deep recursion in the front end, which was causing stack
13998 * sem_eval.adb (Eval_Concatenation): If the left operand is the empty
13999 string, and the right operand is a string literal (the case of "" &
14000 "..."), optimize by avoiding copying the right operand -- just use the
14001 value of the right operand directly.
14003 * stringt.adb (Store_String_Chars): Optimize by growing the
14004 String_Chars table all at once, rather than appending characters one by
14006 (Write_String_Table_Entry): If the string to be printed is very long,
14007 just print the first few characters, followed by the length. Otherwise,
14008 doing "pn(n)" in the debugger can take an extremely long time.
14010 * sem_prag.adb (Process_Interface_Name): Replace loop doing
14011 Store_String_Char with Store_String_Chars.
14013 2007-08-31 Vincent Celier <celier@adacore.com>
14015 * prj-attr.adb: Add new attribute Excluded_Source_Files
14017 * prj-nmsc.adb: Use attribute Excluded_Source_Files before
14018 Locally_Removed_Files.
14020 * snames.ads, snames.adb: New standard name Excluded_Source_Files
14022 2007-08-31 Ed Schonberg <schonberg@adacore.com>
14024 * sem_ch10.adb (Analyze_Subunit_Context): When analyzing context
14025 clauses of subunits, ignore limited_with_clauses that are illegal and
14026 have not been fully analyzed.
14028 2007-08-31 Ed Schonberg <schonberg@adacore.com>
14030 * sem_ch3.adb: The predicate Is_Descendent_Of_Address is now an entity
14031 flag, for effiency. It is called when analyzing arithmetic operators
14032 and also for actuals in calls that are universal_integers. The flag is
14033 set for the predefined type address, and for any type or subtype
14036 * sem_ch4.adb (Analyze_One_Call): Reject an actual that is a
14037 Universal_Integer, when the formal is a descendent of address and the
14038 call appears in user code.
14039 (Analyze_Selected_Component): if the prefix is a private extension, the
14040 tag component is visible.
14042 * sem_util.ads, sem_util.adb: Remove Is_Descendent_Of_Address, now an
14045 2007-08-31 Robert Dewar <dewar@adacore.com>
14047 * s-fileio.adb (Open): Normalize file name to lower case in non-case
14048 sensitive file name systems to avoid unexpected mismatch in Vista.
14050 2007-08-31 Vincent Celier <celier@adacore.com>
14052 * tempdir.adb: On VMS, take into account GNUTMPDIR before TMPDIR
14054 2007-08-31 Vincent Celier <celier@adacore.com>
14056 * symbols-vms.adb (Initialize): Read symbol files with continuation
14058 (Finalize): If symbol is long, split the line
14060 2007-08-31 Vincent Celier <celier@adacore.com>
14062 * fmap.ads: Minor comment updates
14064 2007-08-31 GNAT Script <nobody@adacore.com>
14066 * Make-lang.in: Makefile automatically updated
14068 2007-08-31 Bob Duff <duff@adacore.com>
14070 * sinfo.ads: Minor comment fix.
14072 2007-08-31 Thomas Quinot <quinot@adacore.com>
14074 * stand.ads: (Standard_Debug_Renaming_Type): Make comment consistent
14075 with implementation.
14076 Documentation cleanup only.
14078 2007-08-31 Sergey Rybin <rybin@adacore.com>
14080 * vms_data.ads: Add new qualifier /STMT_NAME_ON_NEW_LINE for the new
14081 gnatpp '--separate-stmt-name' option.
14082 Add new qualifier /USE_ON_NEW_LIN for the new gnatpp '--use-on-new-line'
14085 * gnat_ugn.texi: Add description for the new gnatpp
14086 '--separate-stmt-name' and '--use-on-new-line' options.
14088 2007-08-31 Ben Elliston <bje@au.ibm.com>
14090 * Makefile.in (LIBGNAT_TARGET_PAIRS): Use system-linux-ppc64.ads
14091 when compiling for powerpc64-*-linux.
14092 * system-linux-ppc64.ads: New file.
14094 2007-08-22 Krister Walfridsson <cato@df.lth.se>
14096 * env.c ( __gnat_clearenv): Use the __gnat_unsetenv mechanism for
14099 2007-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14101 * misc.c (gnat_type_max_size): Constify.
14103 2007-08-16 Gary Dismukes <dismukes@adacore.com>
14105 * cstand.adb (Create_Standard): Create an entity for a zero-sized type
14106 associated with Standard_Debug_Renaming_Type, to be used as the type of
14107 the special variables whose names provide debugger encodings for
14108 renaming declarations.
14110 * einfo.ads, einfo.adb (Debug_Renaming_Link): Change to return Node25.
14111 (Set_Debug_Renaming_Link): Change to set Node25.
14112 (Write_Field13_Name): Remove case for E_Enumeration_Literal.
14113 (Write_Field25_Name): Add case for E_Variable to output
14114 "Debug_Renaming_Link".
14115 (Write_Field23_Name): Correct the output string for "Limited_View".
14117 * exp_dbug.adb: Add with and use of Tbuild.
14118 (Debug_Renaming_Declaration): Replace creation of an enumeration type
14119 and literal with creation of a variable of type
14120 Standard_Debug_Renaming_Type whose name encodes both the renamed object
14121 and the entity of the renaming declaration.
14122 (Qualify_Entity_Name): Add the delayed qualification of the entity name
14123 part of the name of a variable that has a Debug_Renaming_Link.
14125 * stand.ads (Standard_Debug_Renaming_Type): New Entity_Id denoting a
14126 special type to be associated with variables that provide debugger
14127 encodings for renaming declarations.
14129 2007-08-16 Gary Dismukes <dismukes@adacore.com>
14130 Ed Schonberg <schonberg@adacore.com>
14131 Javier Miranda <miranda@adacore.com>
14133 * exp_aggr.adb (Build_Record_Aggr_Code): Extend the test for an
14134 ancestor part given by an aggregate to test for an unchecked conversion,
14135 since this can occur in some cases when the ancestor part is a function
14136 call, and we don't want to fall into the recursive call to this
14137 procedure in that case.
14139 * exp_ch3.adb (Stream_Operation_OK): Revise tests for availability of
14140 stream attributes on limited types to account for user-specified
14141 attributes as well as whether Input (resp. Output) becomes available
14142 due to Read (resp. Write) being available for the type. Change Boolean
14143 variable to the more accurate name
14144 Has_Predefined_Or_Specified_Stream_Attribute. Change convoluted
14145 double-"not" predicate at beginning of return statement to more
14146 understandable form.
14148 * exp_ch5.adb (Expand_N_Extended_Return_Statement): If the extended
14149 return has an associated N_Handled_Sequence_Of_Statements, then wrap it
14150 in a block statement and use that as the first statement of the
14151 expanded return rather than incorrectly using the handled sequence as
14152 the first statement.
14154 * exp_ch6.adb (Expand_N_Subprogram_Declaration): If this is a protected
14155 operation, generate an explicit freeze node for it rather than
14156 generating extra formals, to ensure that gigi has the proper order of
14157 elaboration for anonymous subtypes in the signature of the subprograms.
14158 (Build_In_Place_Formal): Move assertion to beginning of loop.
14159 (Is_Build_In_Place_Function_Call): Allow for an unchecked conversion
14160 applied to a function call (occurs for some cases of 'Input).
14161 (Make_Build_In_Place_Call_In_*): Allow for an unchecked conversion
14162 applied to a function call (occurs for some cases of 'Input).
14164 * exp_strm.adb (Build_Record_Or_Elementary_Input_Function): For Ada
14165 2005, generate an extended return statement enclosing the result object
14168 * freeze.adb (Freeze_Record_Type): Extend the current management of
14169 components that are access type with an allocator as default value: add
14170 missing support to the use of qualified expressions of the
14171 allocator (which also cause freezing of the designated type!)
14172 (Freeze_Entity): Call Freeze_Subprogram in the case of a predefined
14173 dispatching operation, since extra formals may be needed by calls to
14174 build-in-place functions (such as stream 'Input).
14176 * sem_ch6.adb (Create_Extra_Formals): Skip creation of the extra
14177 formals for 'Constrained and accessibility level in the case of a
14178 predefined dispatching operation.
14180 * exp_util.adb (Insert_Actions): A protected body is a valid insertion
14181 point, no need to find the parent node.
14183 2007-08-16 Javier Miranda <miranda@adacore.com>
14185 * exp_attr.adb (Attribute_Priority): Add missing support for entries
14186 and entry barriers.
14188 2007-08-16 Javier Miranda <miranda@adacore.com>
14190 * exp_ch9.adb (Build_Protected_Entry): Undo previous change because it
14191 is not really required and can introduce regression with the debugger.
14192 The original problem is fixed with the patch written for checks.adb.
14194 2007-08-16 Thomas Quinot <quinot@adacore.com>
14196 * g-dyntab.adb, g-table.adb, table.adb: (Set_Item): Suppress
14197 Range_Check on Allocated_Table.
14199 2007-08-16 Vincent Celier <celier@adacore.com>
14201 * make.adb (Collect_Arguments): Call Test_If_Relative_Path with
14202 Including_Non_Switch set to False.
14203 (Gnatmake): For the compiler, call Test_If_Relative_Path with
14204 Including_Non_Switch set to False.
14206 * makeutl.adb, makeutl.ads (Test_If_Relative_Path): New Boolean
14207 parameter Including_Non_Switch, defaulted to True. When
14208 Including_Non_Switch is False, options that are not switches and
14209 appear as relative path are not converted to absolute paths.
14211 2007-08-16 Nicolas Roche <roche@adacore.com>
14213 * Makefile.in (gnatlib): Propagate FORCE_DEBUG_ADAFLAGS value to sub
14216 * Make-lang.in: Update dependencies
14218 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
14220 * sem_ch10.adb (Has_With_Clause): If the name of the with clause
14221 currently inspected is a selected component, retrieve the entity of
14223 (Install_Limited_Withed_Unit): Call Has_Limited_With_Clause starting
14224 from the immediate ancestor of Main_Unit_Entity.
14225 (Install_Limited_Withed_Unit): Do not install the limited view of
14226 package P if P is reachable through an ancestor chain from package C
14227 and C also has a with clause for P in its body.
14228 (Has_Limited_With_Clause): New routine.
14229 (Has_With_Clause): New routine.
14231 2007-08-16 Ed Schonberg <schonberg@adacore.com>
14233 * sem_ch12.adb (Copy_Generic_Node): A reference to a child unit of the
14234 generic for an enclosing instance is a global reference, even though
14235 its scope is the enclosing instance.
14237 2007-08-16 Gary Dismukes <dismukes@adacore.com>
14238 Javier Miranda <miranda@adacore.com>
14240 * sem_ch3.adb (OK_For_Limited_Init_In_05): Allow calls to 'Input to
14241 initialize a limited object.
14242 (Build_Derived_Record_Type): Add missing check of rules ARM 3.9.4
14244 Make sure Has_Complex_Representation is inherited by derived type.
14246 2007-08-16 Robert Dewar <dewar@adacore.com>
14248 * sem_ch5.adb (Analyze_Assignment): Make sure we still note update in
14251 2007-08-16 Ed Schonberg <schonberg@adacore.com>
14253 * sem_disp.adb (Check_Dispatching_Operation): If the operation
14254 implements an operation inherited from a progenitor interface, verify
14255 that they are subtype-conformant.
14257 2007-08-16 Hristian Kirtchev <kirtchev@adacore.com>
14258 Bob Duff <duff@adacore.com>
14259 Nicolas Setton <setton@adacore.com>
14261 * sem_res.adb (Comes_From_Predefined_Lib_Unit): New.
14262 (Resolve): Alphabetize local variables. Add new variable From_Lib. When
14263 the statement which is being resolved comes from a predefined library
14264 unit, all non-predefined library interpretations are skipped.
14265 (Resolve_Op_Concat): If string concatenation was folded in the parser,
14266 but the "&" is user defined, give an error, because the folding would
14269 * sinfo.ads, sinfo.adb (Is_Folded_In_Parser): New flag to indicate that
14270 the parser has folded a long sequence of concatenations of string
14273 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Mark "JMPBUF_SAVE"
14274 and "JMP_BUF" variables as artificial.
14275 (N_String_Literal): Do not use alloca for very long string literals. Use
14276 xmalloc/free instead. Otherwise the stack might overflow.
14278 * utils.c (init_gigi_decls): Mark "JMPBUF_T" type as created by the
14281 2007-08-16 Vincent Celier <celier@adacore.com>
14283 * vms_conv.adb (Process_Argument): Ensure that project related options
14284 are not put in the -cargs section when using GNAT COMPILE.
14286 2007-08-16 Robert Dewar <dewar@adacore.com>
14288 * gnat_ugn.texi: Add note on preprocessing (output file not written)
14290 2007-08-16 Thomas Quinot <quinot@adacore.com>
14292 * a-tags.adb: Minor reformatting.
14294 2007-08-16 Bob Duff <duff@adacore.com>
14296 * sem_type.ads, sem_ch4.adb: Minor reformatting.
14298 2007-08-14 Thomas Quinot <quinot@adacore.com>
14300 * g-soccon-interix.ads, a-excpol-interix.adb, a-intnam-interix.ads,
14301 s-osinte-interix.ads, system-interix.ads: Removed.
14303 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
14305 * a-calend-vms.adb, a-calend.adb ("+", "-", Add, Subtract): Remove
14306 calls to Check_Within_Time_Bounds.
14307 ("+", "-", Add, Subtract): Remove calls to Check_Within_Time_Bounds.
14308 (Difference): Account for possible rounding of the resulting difference
14310 2007-08-14 Robert Dewar <dewar@adacore.com>
14312 * uintp.adb, a-ztedit.adb, s-wchcon.adb, xnmake.adb, s-wchcon.adb,
14313 par-ch5.adb, par-ch10.adb, get_targ.adb, a-wtedit.adb, a-teioed.adb,
14314 s-osinte-solaris.adb, s-osinte-solaris.ads,
14315 s-osinte-freebsd.ads, s-osinte-freebsd.adb: Minor reformatting.
14317 * styleg.adb, styleg.ads, stylesw.adb, stylesw.ads: implement style
14318 switch -gnatyS. Enable -gnatyS in GNAT style check mode
14320 2007-08-14 Robert Dewar <dewar@adacore.com>
14321 Ed Schonberg <schonberg@adacore.com>
14323 * inline.adb, types.ads, inline.ads, frontend.adb, alloc.ads:
14324 Suppress unmodified in-out parameter warning in some cases
14325 This patch is a also fairly significant change to the way suppressible
14326 checks are handled.
14328 * checks.ads, checks.adb (Install_Null_Excluding_Check): No check
14329 needed for access to concurrent record types generated by the expander.
14330 (Generate_Range_Check): When generating a temporary to capture the
14331 value of a conversion that requires a range check, set the type of the
14332 temporary before rewriting the node, so that the type is always
14333 properly placed for back-end use.
14334 (Apply_Float_Conversion_Check): Handle case where the conversion is
14336 (Get_Discriminal): Code reformatting. Climb the scope stack looking
14337 for a protected type in order to examine its discriminants.
14339 2007-08-14 Robert Dewar <dewar@adacore.com>
14340 Gary Dismukes <dismukes@adacore.com>
14341 Ed Schonberg <schonberg@adacore.com>
14342 Thomas Quinot <quinot@adacore.com>
14344 * a-stzsup.adb, nlists.adb, lib-util.adb, treepr.adb,
14345 a-stwisu.adb, a-strsup.adb: Fix warnings for range
14346 tests optimized out.
14348 * exp_ch4.adb (Expand_N_In): Add warnings for range tests optimized out.
14349 (Get_Allocator_Final_List): For the case of an anonymous access type
14350 that has a specified Associated_Final_Chain, do not go up to the
14352 (Expand_N_Type_Conversion): Test for the case of renamings of access
14353 parameters when deciding whether to apply a run-time accessibility
14355 (Convert_Aggr_In_Allocator): Use Insert_Actions to place expanded
14356 aggregate code before allocator, and ahead of declaration for
14357 temporary, to prevent access before elaboration when the allocator is
14358 an actual for an access parameter.
14359 (Expand_N_Type_Conversion): On an access type conversion involving an
14360 access parameter, do not apply an accessibility check when the
14361 operand's original node was an attribute other than 'Access. We now
14362 create access conversions for the expansion of 'Unchecked_Access and
14363 'Unrestricted_Access in certain cases and clearly accessibility should
14364 not be checked for those.
14366 * exp_ch6.ads, exp_ch6.adb (Add_Call_By_Copy_Code): For an actual that
14367 includes a type conversion of a packed component that has been expanded,
14368 recover the original expression for the object, and use this expression
14369 in the post-call assignment statement, so that the assignment is made
14370 to the object and not to a back-end temporary.
14371 (Freeze_Subprogram): In case of primitives of tagged types not defined
14372 at the library level force generation of code to register the primitive
14373 in the dispatch table. In addition some code reorganization has been
14374 done to leave the implementation clear.
14375 (Expand_Call): When expanding an inherited implicit conversion,
14376 preserve the type of the inherited function after the intrinsic
14377 operation has been expanded.
14379 * exp_ch2.ads, exp_ch2.adb
14380 (Expand_Entry_Parameter.In_Assignment_Context): An implicit dereference
14381 of an entry formal appearing in an assignment statement does not assign
14383 (Expand_Current_Value): Instead of calling a routine to determine
14384 whether the prefix of an attribute reference should be optimized or
14385 not, prevent the optimization of such prefixes all together.
14387 * lib-xref.adb (Generate_Reference.Is_On_LHS): An indexed or selected
14388 component whose prefix is known to be of an access type is an implicit
14389 dereference and does not assign to the prefix.
14391 2007-08-14 Ed Schonberg <schonberg@adacore.com>
14392 Robert Dewar <dewar@adacore.com>
14394 * atree.ads, atree.adb (New_Copy_Tree): If hash table is being used and
14395 itype is visited, make an entry into table to link associated node and
14397 Add comments and correct harmless error in Build_NCT_Hash_Tables
14398 (Array_Aggr_Subtype): Associate each itype created for an index type to
14399 the corresponding range construct, and not to the aggregate itself. to
14400 maintain a one-to-one correspondence between itype and its associated
14401 node, to prevent errors when complex expression is copied.
14402 Fix mishandling of multiple levels of parens
14404 * sem_aggr.adb: Create a limited view of an incomplete type, to make
14405 treatment of limited views uniform for all visible declarations in a
14406 limited_withed package.
14407 (New_Copy_Tree): If hash table is being used and itype is visited,
14408 make an entry into table to link associated node and new itype.
14409 (Resolve_Record_Aggregate): Do not add an others box association for a
14410 discriminated record component that has only discriminants, when there
14411 is a box association for the component itself.
14413 * par-ch4.adb: Fix mishandling of multiple levels of parens
14415 2007-08-14 Robert Dewar <dewar@adacore.com>
14417 * comperr.adb: Fix problem with suppressing warning messages from gigi
14419 * erroutc.ads, erroutc.adb, errout.ads,
14420 errout.adb (Write_Eol): Remove trailing spaces before writing the line
14421 (Write_Eol_Keep_Blanks): New procedure to write a line, including
14422 possible trailing spaces.
14423 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
14424 Fix problem with suppressing warning messages from back end
14425 Improve handling of deleted warnings
14428 Fix problem with suppressing warning messages from back end
14429 Handle setting of Static_Dispatch_Tables flag.
14432 Fix problem with suppressing warning messages from back end
14434 * exp_intr.adb: Improve handling of deleted warnings
14436 2007-08-14 Robert Dewar <dewar@adacore.com>
14438 * debug.adb: Improve -gnatdI to cover all cases of serialization
14439 Add documentation of dZ, d.t
14441 * sprint.ads, sprint.adb: Improve -gnatdI to cover all cases of
14443 (Sprint_Node_Actual): Generate new output associated with implicit
14444 importation and implicit exportation of object declarations.
14446 2007-08-14 Ed Schonberg <schonberg@adacore.com>
14447 Robert Dewar <dewar@adacore.com>
14448 Javier Miranda <miranda@adacore.com>
14449 Gary Dismukes <dismukes@adacore.com>
14451 * einfo.ads, einfo.adb: Create a limited view of an incomplete type,
14452 to make treatment of limited views uniform for all visible declarations
14453 in a limited_withed package.
14454 Improve warnings for in out parameters
14455 (Set_Related_Interaface/Related_Interface): Allow the use of this
14456 attribute with constants.
14457 (Write_Field26_Name): Handle attribute Related_Interface in constants.
14458 Warn on duplicate pragma Preelaborable_Initialialization
14460 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Body): Force the
14461 generation of a freezing node to ensure proper management of null
14462 excluding access types in the backend.
14463 (Create_Extra_Formals): Test base type of the formal when checking for
14464 the need to add an extra accessibility-level formal. Pass the entity E
14465 on all calls to Add_Extra_Formal (rather than Scope (Formal) as was
14466 originally being done in a couple of cases), to ensure that the
14467 Extra_Formals list gets set on the entity E when the first entity is
14469 (Conforming_Types): Add missing calls to Base_Type to the code that
14470 handles anonymous access types. This is required to handle the
14471 general case because Process_Formals builds internal subtype entities
14472 to handle null-excluding access types.
14473 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
14474 functions that need it, even when not marked Requires_Overriding.
14475 Improve warnings for in out parameters
14476 (Analyze_Function_Return): Warn for disallowed null return
14477 Warn on return from procedure with unset out parameter
14478 Ensure consistent use of # in error messages
14479 (Check_Overriding_Indicator): Add in parameter Is_Primitive.
14480 (Analyze_Function_Return): Move call to Apply_Constraint_Check before
14481 the implicit conversion of the expression done for anonymous access
14482 types. This is required to generate the code of the null excluding
14483 check (if required).
14485 * sem_warn.ads, sem_warn.adb (Check_References.Publicly_Referenceable):
14486 A formal parameter is never publicly referenceable outside of its body.
14487 (Check_References): For an unreferenced formal parameter in an accept
14488 statement, use the same warning circuitry as for subprogram formal
14490 (Warn_On_Unreferenced_Entity): New subprogram, taken from
14491 Output_Unreferenced_Messages, containing the part of that routine that
14492 is now reused for entry formals as described above.
14493 (Goto_Spec_Entity): New function
14494 (Check_References): Do not give IN OUT warning for dispatching operation
14495 Improve warnings for in out parameters
14496 (Test_Ref): Check that the entity is not undefinite before calling
14497 Scope_Within, in order to avoid infinite loops.
14498 Warn on return from procedure with unset out parameter
14499 Improved warnings for unused variables
14501 2007-08-14 Robert Dewar <dewar@adacore.com>
14502 Javier Miranda <miranda@adacore.com>
14503 Gary Dismukes <dismukes@adacore.com>
14505 * exp_attr.adb (Expand_N_Attribute_Reference): Handle case of child unit
14506 (Expand_N_Attribute_Reference): Further unify the handling of the
14507 three forms of access attributes, using common code now for all three
14508 cases. Add a test for the case of applying an access attribute to
14509 an explicit dereference when the context is an access-to-interface
14510 type. In that case we need to apply the conversion to the prefix
14511 of the explicit dereference rather than the prefix of the attribute.
14512 (Attribute_Version, UET_Address): Set entity as internal to ensure
14513 proper dg output of implicit importation.
14514 (Expand_Access_To_Type): Removed.
14515 (Expand_N_Attribute_Reference): Merge the code from the three cases
14516 of access attributes, since the processing is largely identical for
14517 these cases. The substantive fix here is to process the case of a
14518 type name prefix (current instance case) before handling the case
14519 of interface prefixes.
14521 2007-08-14 Thomas Quinot <quinot@adacore.com>
14522 Ed Schonberg <schonberg@adacore.com>
14523 Javier Miranda <miranda@adacore.com>
14524 Robert Dewar <dewar@adacore.com>
14526 * exp_ch3.ads, exp_ch3.adb (Add_Final_Chain): New subprogram.
14527 (Freeze_Array_Type, Freeze_Record_Type): For the case of a component
14528 type that is an anonymous access to controlled object, establish
14529 an associated finalization chain to avoid corrupting the global
14530 finalization list when a dynamically allocated object designated
14531 by such a component is deallocated.
14532 (Make_Controlling_Function_Wrappers): Create wrappers for constructor
14533 functions that need it, even when not marked Requires_Overriding.
14534 (Initialize_Tag): Replace call to has_discriminants by call to
14535 Is_Variable_Size_Record in the circuitry that handles the
14536 initialization of secondary tags.
14537 (Is_Variable_Size_Record): New implementation.
14538 (Expand_N_Object_Declaration): Suppress call to init proc if there is a
14539 Suppress_Initialization pragma for a derived type.
14540 (Is_Variable_Size_Record): New subprogram.
14541 (Build_Offset_To_Top_Functions): New implementation that simplifies the
14542 initial version of this routine and also fixes problems causing
14543 incomplete initialization of the table of interfaces.
14544 (Build_Init_Procedure): Improve the generation of code to initialize the
14545 the tag components of secondary dispatch tables.
14546 (Init_Secondary_Tags): New implementation that simplifies the previous
14547 version of this routine.
14548 (Make_DT): Add parameter to indicate when type has been frozen by an
14549 object declaration, for diagnostic purposes.
14550 (Check_Premature_Freezing): New subsidiary procedure of Make_DT, to
14551 diagnose attemps to freeze a subprogram when some untagged type of its
14552 profile is a private type whose full view has not been analyzed yet.
14553 (Freeze_Array_Type): Generate init proc for packed array if either
14554 Initialize or Normalize_Scalars is set.
14555 (Make_Controlling_Function_Wrappers, Make_Null_Procedure_Specs): when
14556 constructing the new profile, copy the null_exclusion indicator for each
14557 parameter, to ensure full conformance of the new body with the spec.
14559 * sem_type.ads, sem_type.adb (Make_Controlling_Function_Wrappers):
14560 Create wrappers for constructor functions that need it, even when not
14561 marked Requires_Overriding.
14562 (Covers): Handle properly designated types of anonymous access types,
14563 whose non-limited views are themselves incomplete types.
14564 (Add_Entry): Use an entity to store the abstract operation which hides
14566 (Binary_Op_May_Be_Hidden): Rename to Binary_Op_Interp_Has_Abstract_Op.
14567 (Collect_Interps): Use Empty as an actual for Abstract_Op in the
14568 initialization aggregate.
14569 (Function_Interp_May_Be_Hidden): Rename to
14570 Function_Interp_Has_Abstract_Op.
14571 (Has_Compatible_Type): Remove machinery that skips interpretations if
14572 they are labeled as potentially hidden by an abstract operator.
14573 (Has_Hidden_Interp): Rename to Has_Abstract_Op.
14574 (Set_May_Be_Hidden): Rename to Set_Abstract_Op.
14575 (Write_Overloads): Output the abstract operator if present.
14576 (Add_Entry): Before inserting a new entry into the interpretation table
14577 for a node, determine whether the entry will be disabled by an abstract
14579 (Binary_Op_Interp_May_Be_Hidden): New routine.
14580 (Collect_Interps): Add value for flag May_Be_Hidden in initialization
14582 (Function_Interp_May_Be_Hidden): New routine.
14583 (Has_Compatible_Type): Do not consider interpretations hidden by
14584 abstract operators when trying to determine whether two types are
14586 (Has_Hidden_Interp): New routine.
14587 (Set_May_Be_Hidden_Interp): New routine.
14588 (Write_Overloads): Write the status of flag May_Be_Hidden.
14590 2007-08-14 Ed Schonberg <schonberg@adacore.com>
14591 Javier Miranda <miranda@adacore.com>
14593 * exp_disp.ads, exp_disp.adb (Build_Dispatch_Tables): Handle tagged
14594 types declared in the declarative part of a nested package body or in
14595 the proper body of a stub.
14596 (Set_All_DT_Position): Add missing check to avoid wrong assignation
14597 of the same dispatch table slot to renamed primitives.
14598 (Make_Select_Specific_Data_Table): Handle private types.
14599 (Tagged_Kind): Handle private types.
14600 (Make_Tags, Make_DT): Set tag entity as internal to ensure proper dg
14601 output of implicit importation and exportation.
14602 (Expand_Interface_Thunk): Fix bug in the expansion assuming that the
14603 first formal of the thunk is always associated with the controlling
14604 type. In addition perform the following code cleanup: remove formal
14605 Thunk_Alias which is no longer required, cleanup evaluation of the
14606 the controlling type, and update the documentation.
14607 Replace occurrence of Default_Prim_Op_Count by
14608 Max_Predef_Prims. Addition of compile-time check to verify
14609 that the value of Max_Predef_Prims is correct.
14610 (Check_Premature_Freezing): Apply check in Ada95 mode as well.
14611 (Make_DT): Add parameter to indicate when type has been frozen by an
14612 object declaration, for diagnostic purposes.
14613 (Build_Static_Dispatch_Tables): New subprogram that takes care of the
14614 construction of statically allocated dispatch tables.
14615 (Make_DT): In case of library-level tagged types export the declaration
14616 of the primary tag. Remove generation of tags (now done by Make_Tags).
14617 Additional modifications to handle non-static generation of dispatch
14618 tables. Take care of building tables for asynchronous interface types
14619 (Make_Tags): New subprogram that generates the entities associated with
14620 the primary and secondary tags of Typ and fills the contents of Access_
14621 Disp_Table. In case of library-level tagged types imports the forward
14622 declaration of the primary tag that will be declared later by Make_DT.
14623 (Expand_Interface_Conversion): In case of access types to interfaces
14624 replace an itype declaration by an explicit type declaration to avoid
14625 problems associated with the scope of such itype in transient blocks.
14627 2007-08-14 Robert Dewar <dewar@adacore.com>
14628 Ed Schonberg <schonberg@adacore.com>
14629 Javier Miranda <miranda@adacore.com>
14631 * exp_util.ads, exp_util.adb:
14632 This patch replaces a number of occurrences of explicit tests for N_Null
14633 with calls to Known_Null. This improves tracking of null values, since
14634 Known_Null also catches null constants, and variables currently known to
14635 be null, so we get better tracking.
14636 (Ensure_Defined): create an itype reference only in the scope of the
14638 (Side_Effect_Free): A selected component of an access type that
14639 denotes a component with a rep clause must be treated as not
14640 side-effect free, because if it is part of a linked structure its
14641 value may be affected by a renaming.
14642 (Expand_Subtype_From_Expr): For limited objects initialized with build
14643 in place function calls, do nothing; otherwise we prematurely introduce
14644 an N_Reference node in the expression initializing the object, which
14645 breaks the circuitry that detects and adds the additional arguments to
14646 the called function. Bug found working in the new patch for statically
14647 allocated dispatch tables.
14648 (Is_Library_Level_Tagged_Type): New subprogram.
14649 (Remove_Side_Effects): If the expression of an elementary type is an
14650 operator treat as a function call.
14651 (Make_Literal_Range): If the index type of the array is not integer, use
14652 attributes properly to compute the constraint on the resulting aggregate
14655 * freeze.ads, freeze.adb (Freeze_Entity): If the entity is a
14656 class-wide type whose base type is an incomplete private type, leave
14657 class-wide type unfrozen so that freeze nodes can be generated
14658 properly at a later point.
14659 (Freeze_Entity, array case): Handle case of pragma Pack and component
14660 size attributre clause for same array.
14662 2007-08-14 Vincent Celier <celier@adacore.com>
14664 * prj.ads, prj.adb: Update Project Manager to new attribute names for
14666 Allow all valid declarations in configuration project files
14667 (Reset): Initialize all tables and hash tables in the project tree data
14668 Major update of the Project Manager and of the project aware tools,
14669 including gprmake, so that the same sources in the GNAT repository
14670 can be used by gprbuild.
14671 (Slash_Id): Change type to be Path_Name_Type
14672 (Slash): Return a Path_Name_Type instead of a File_Name_Type
14674 * prj-attr.ads, prj-attr.adb: Remove attributes no longer used by
14676 Update Project Manager to new attribute names for ghprbuild
14677 Allow all valid declarations in configuration project files
14678 Major update of the Project Manager and of the project aware tools,
14679 including gprmake, so that the same sources in the GNAT repository
14680 can be used by gprbuild.
14683 Major update of the Project Manager and of the project aware tools,
14684 including gprmake, so that the same sources in the GNAT repository
14685 can be used by gprbuild.
14687 * prj-dect.adb (Prj.Strt.Attribute_Reference): Set correctly the case
14688 insensitive flag for attributes with optional index.
14689 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
14690 array attribute, put the index in lower case.
14691 Update Project Manager to new attribute names for ghprbuild
14692 Allow all valid declarations in configuration project files
14693 Major update of the Project Manager and of the project aware tools,
14694 including gprmake, so that the same sources in the GNAT repository
14695 can be used by gprbuild.
14697 * prj-env.ads, prj-env.adb:
14698 Major update of the Project Manager and of the project aware tools,
14699 including gprmake, so that the same sources in the GNAT repository
14700 can be used by gprbuild.
14701 (Get_Reference): Change type of parameter Path to Path_Name_Type
14703 * prj-ext.ads, prj-ext.adb (Initialize_Project_Path): Make sure, after
14704 removing '-' from the path to start with the first character of the
14706 Major update of the Project Manager and of the project aware tools,
14707 including gprmake, so that the same sources in the GNAT repository
14708 can be used by gprbuild.
14709 Major update of the Project Manager and of the project aware tools,
14710 including gprmake, so that the same sources in the GNAT repository
14711 can be used by gprbuild.
14713 * prj-nmsc.ads, prj-nmsc.adb:
14714 Update Project Manager to new attribute names for ghprbuild
14715 Allow all valid declarations in configuration project files
14716 (Search_Directories): Detect subunits that are specified with an
14717 attribute Body in package Naming. Do not replace a source/unit in the
14718 same project when the order of the source dirs are known. Detect
14719 duplicate sources/units in the same project when the order of the
14720 source dirs are not known.
14721 (Check_Ada_Name): Allow all identifiers that are not reserved words
14723 Major update of the Project Manager and of the project aware tools,
14724 including gprmake, so that the same sources in the GNAT repository
14725 can be used by gprbuild.
14726 (Look_For_Sources): If the list of sources is empty, set the object
14727 directory of non extending project to nil.
14728 Change type of path name variables to be Path_Name_Type
14729 (Locate_Directory): Make sure that on Windows '/' is converted to '\',
14730 otherwise creating missing directories will fail.
14732 * prj-attr-pm.adb, prj-tree.ads, prj-proc.ads, prj-proc.adb,
14733 prj-part.ads, prj-part.adb:
14734 Major update of the Project Manager and of the project aware tools,
14735 including gprmake, so that the same sources in the GNAT repository
14736 can be used by gprbuild.
14738 * prj-strt.adb (Prj.Strt.Attribute_Reference): Set correctly the case
14739 insensitive flag for attributes with optional index.
14740 (Prj.Dect.Parse_Attribute_Declaration): For case insensitive associative
14741 array attribute, put the index in lower case.
14742 (Parse_Variable_Reference): Allow the current project name to be used in
14743 the prefix of an attribute reference.
14745 * prj-util.ads, prj-util.adb
14746 (Value_Of (for arrays)): New Boolean parameter Force_Lower_Case_Index,
14747 defaulted to False. When True, always check against indexes in lower
14750 * snames.ads, snames.h, snames.adb:
14751 Update Project Manager to new attribute names for gprbuild
14752 Allow all valid declarations in configuration project files
14754 2007-08-14 Robert Dewar <dewar@adacore.com>
14755 Ed Schonberg <schonberg@adacore.com>
14757 * opt.ads: Warning for non-local exception propagation now off by
14759 New switch -gnatI to disable representation clauses
14760 Implement new pragma Implicit_Packing
14763 Warning for non-local exception propagation now off by default
14764 Add warning for unchecked conversion of pointers wi different
14766 New switch -gnatI to disable representation clauses
14768 * usage.adb: new switch -gnatyS
14770 * gnat_ugn.texi: For the gnatcheck Non_Qualified_Aggregates rule add a
14771 note that aggregates of anonymous array types are not flagged.
14772 -gnatwc now includes membership tests optimized away
14773 -gnatw.x warnings are now off by default
14774 Added conditional compilation Appendix
14775 Add documentation of -gnatI
14776 Add documentation for new -gnatyS style check
14777 Update documentation about SAL and auto-init on Windows.
14780 Add documentation for pragma Check_Name and 'Enabled attribute
14781 Document that Eliminate on dispatching operation is ignored
14782 Document IDE attributes VCS_Repository_Root and VCS_Patch_Root.
14783 Document pragma Main
14784 Document pragma Implicit_Packing
14786 * sem_ch13.adb: Add warning for unchecked conversion of pointers wi
14787 different conventions
14788 New switch -gnatI to disable representation clauses
14790 * switch-c.adb (Scan_Front_End_Switches): When a -gnat switch is not
14791 recognized, report the invalid characters including "-gnat" instead of
14792 just the first character in the switch.
14793 New switch -gnatI to disable representation clauses
14794 Set Warn_On_Object_Renames_Function true for -gnatg
14796 * vms_data.ads: Add doc for /IGNORE_REP_CLAUSES
14797 Add STATEMENTS_AFTER_THEN_ELSE as synonym for -gnatyS
14798 Add qualifier /ADD_PROJECT_SEARCH_DIR= for different tools, equivalent
14799 to switch -aP (add directory to project search dir).
14801 * par-prag.adb: Implement new pragma Implicit_Packing
14803 * sem_prag.adb (Analyze_Pragma, case Complex_Representation): Mark the
14804 type as having a non-standard representation, to force expansion on
14805 conversion to related types.
14806 (Analyze_Pragma): Warn on misspelled pragma
14807 (Analyze_Pragma, case Convention_Identifier): Fix checking of second arg
14808 Ensure consistent use of # in error messages
14809 Implement pragma Implicit_Packing
14811 2007-08-14 Olivier Hainque <hainque@adacore.com>
14812 Eric Botcazou <ebotcazou@adacore.com>
14814 * targtyps.c (get_target_maximum_default_alignment): New function.
14816 that the compiler might choose by default for a type or object.
14817 (get_target_default_allocator_alignment): New function. Alignment known
14818 to be honored by the target default allocator.
14819 (get_target_maximum_allowed_alignment): New function. Maximum alignment
14820 we might accept for any type or object on the target.
14821 (get_target_maximum_alignment): Now synonym of maximum_default_alignment
14823 * gigi.h (get_target_maximum_default_alignment): Declare new function.
14824 (get_target_default_allocator_alignment): Likewise.
14825 (get_target_maximum_allowed_alignment): Likewise.
14828 * decl.c (gnat_to_gnu_entity) <object>: Except for the renaming of the
14829 result of a function call, first try to use a stabilized reference for
14830 a constant renaming too.
14831 (validate_alignment): Use target_maximum_allowed_alignment instead of
14832 MAX_OFILE_ALIGNMENT as the upper bound to what we accept.
14833 (gnat_to_gnu_entity): Use common nodes directly.
14834 (gnat_to_gnu_entity) <object>: Pick the values of the type to annotate
14835 alignment and size for the object.
14836 (lvalue_required_p): Handle N_Parameter_Association like N_Function_Call
14837 and N_Procedure_Call_Statement.
14838 (takes_address): Rename to lvalue_required_p, add third parameter
14839 'aliased' and adjust recursive calls.
14840 <N_Indexed_Component>: Update 'aliased' from the array type.
14841 <N_Selected_Component>: New case.
14842 <N_Object_Renaming_Declaration>: New Likewise.
14843 (Identifier_to_gnu): Adjust for above changes.
14844 (maybe_stabilize_reference) <CONST_DECL>: New case.
14846 * utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Look through conversion
14847 between type variants.
14848 (build_simple_component_ref): Likewise.
14849 (build_call_alloc_dealloc): Use target_default_allocator_alignment
14850 instead of BIGGEST_ALIGNMENT as the threshold to trigger the super
14851 aligning type circuitry for allocations from the default storage pool.
14852 (build_allocator): Likewise.
14853 (build_simple_component_ref): Manually fold the reference for a
14854 constructor if the record type contains a template.
14856 * utils.c (value_zerop): Delete.
14857 (gnat_init_decl_processing): Emit debug info for common types.
14858 (rest_of_record_type_compilation): If a union contains a field
14859 with a non-constant qualifier, treat it as variable-sized.
14860 (finish_record_type): Give the stub TYPE_DECL a name.
14861 (rest_of_record_type_compilation): Likewise.
14862 (convert) <CONSTRUCTOR>: New case. Build a new constructor if
14863 types are equivalent array types.
14864 (create_field_decl): Claim fields of any ARRAY_TYPE are addressable,
14865 even if the type is not passed by reference.
14866 (static_ctors, static_dtors): Delete.
14867 (end_subprog_body): Do not record constructors and destructors.
14868 (build_global_cdtor): Delete.
14869 (gnat_write_global_declarations): Do not call build_global_cdtor.
14871 * lang-spARGET_VXWORKS_RTP is defined, append -mrtp when
14872 -fRTS=rtp is specified.
14873 If CONFIG_DUAL_EXCEPTIONS is 1, append -fsjlj when -fRTS=sjlj is
14876 * misc.c (gnat_init_gcc_eh): Use __gnat_eh_personality_sj for the name
14877 of the personality function with SJLJ exceptions.
14879 * raise-gcc.c (PERSONALITY_FUNCTION): Use __gnat_eh_personality_sj for
14880 the name of the personality function with SJLJ exceptions.
14882 2007-08-14 Robert Dewar <dewar@adacore.com>
14883 Ed Schonberg <schonberg@adacore.com>
14885 * par.ads, par.adb: Improve handling of extra right parens.
14886 (Par): Remove flag From_Limited_With_Clause.
14888 * par-util.adb, par-ch3.adb: Improve error recovery for bad constraint
14889 Improve handling of extra right parens.
14891 2007-08-14 Robert Dewar <dewar@adacore.com>
14893 * par-tchk.adb (TF_Semicolon): Improve error recovery
14895 2007-08-14 Robert Dewar <dewar@adacore.com>
14896 Ed Schonberg <schonberg@adacore.com>
14898 * sem_attr.ads, sem_attr.adb (Analyze_Attribute, case Value): For
14899 enumeration type, mark all literals as referenced.
14900 (Eval_Attribute, case 'Image): If the argument is an enumeration
14901 literal and names are available, constant-fold but mark nevertheless as
14903 Clean up function names.
14904 (Name_Modifies_Prefix): Rename to Name_Implies_Lvalue_Prefix. Clarify
14906 (Requires_Simple_Name_Prefix): Removed.
14908 2007-08-14 Robert Dewar <dewar@adacore.com>
14909 Ed Schonberg <schonberg@adacore.com>
14911 * sem_ch11.adb: Improved warnings for unused variables
14913 * sem_ch3.ads, sem_ch3.adb (Build_Derived_Record_Type): If the ancestor
14914 is a synchronized interface, the derived type is limited.
14915 (Analyze_Object_Declaration): Mark the potential coextensions in the
14916 definition and expression of an object declaration node.
14917 (Build_Derived_Type): For the completion of a private type declaration
14918 with a derived type declaration, chain the parent type's representation
14919 items to the last representation item of the derived type (not the
14920 first one) if they are not present already.
14921 (Analyze_Object_Declaration, Constant_Redeclaration): Allow incomplete
14922 object declaration of forward references to tags.
14923 (Access_Subprogram_Declaration): In Ada2005, anonymous access to
14924 subprogram types can appear as access discriminants of synchronized
14926 (OK_For_Limited_Init_In_05): The initialization is legal is it is a call
14927 given in prefixed form as a selected component.
14928 (Process_Discriminants): If not all discriminants have defaults, place
14929 error message on a default that is present.
14930 (Analyze_Private_Extension_Declaration): Diagnose properly an attempt to
14931 extend a synchronized tagged type.
14932 Improved warnings for unused variables
14933 (Is_Visible_Component): Fix a visibility hole on a component inherited
14934 by a private extension when parent is itself declared as a private
14935 extension, and the derivation is in a child unit.
14936 (Find_Hidden_Interface): Move spec from the package body.
14938 2007-08-14 Robert Dewar <dewar@adacore.com>
14939 Ed Schonberg <schonberg@adacore.com>
14941 * sem_ch5.adb: Improve warnings on redundant assignments
14943 * sem_util.ads, sem_util.adb: (Is_Variable): Add defense against junk
14945 (Is_Synchronized_Tagged_Type): New subprogram that returns true
14946 in case of synchronized tagged types (AARM 3.9.4 (6/2)).
14947 (Safe_To_Capture_Value): Can now return True for constants, even if Cond
14948 is set to False. Improves handling of Known_[Not_]Null.
14949 (Wrong_Type): Special case address arithmetic attempt
14950 (Collect_Abstract_Interfaces): Add new formal to allow collecting
14951 abstract interfaces just using the partial view of private types.
14952 (Has_Abstract_Interfaces): Add new formal to allow checking types
14953 covering interfaces using the partial view of private types.
14954 (Is_Fully_Initialized_Type): Special VM case for uTag component. This
14955 component still needs to be defined in this case, but is never
14956 initialized as VMs are using other dispatching mechanisms.
14957 (Abstract_Interface_List): For a protected type, use base type to get
14958 proper declaration.
14959 Improve warnings on redundant assignments
14960 (Is_Variable): Handle properly an implicit dereference of a prefixed
14962 (Build_Actual_Subtype): If this is an actual subtype for an
14963 unconstrained formal parameter, use the sloc of the body for the new
14964 declaration, to prevent anomalises in the debugger.
14966 2007-08-14 Robert Dewar <dewar@adacore.com>
14968 * sem_elim.adb (Set_Eliminated): Ignore pragma Eliminate for
14969 dispatching operation
14971 2007-08-14 Ed Schonberg <schonberg@adacore.com>
14972 Gary Dismukes <dismukes@adacore.com>
14975 exp_aggr.adb (Convert_Aggr_In_Allocator): Use Insert_Actions to place
14976 expanded aggregate code before allocator, and ahead of declaration for
14977 temporary, to prevent access before elaboration when the allocator is
14978 an actual for an access parameter.
14979 (Is_Static_Dispatch_Table_Aggregate): Handle aggregates initializing
14980 the TSD and the table of interfaces.
14981 (Convert_To_Assignments): Augment the test for delaying aggregate
14982 expansion for limited return statements to include the case of extended
14983 returns, to prevent creation of an unwanted transient scope.
14984 (Is_Static_Dispatch_Table_Aggregate): New subprogram.
14985 (Expand_Array_Aggregate): Handle aggregates associated with
14986 statically allocated dispatch tables.
14987 (Expand_Record_Aggregate): Handle aggregates associated with
14988 statically allocated dispatch tables.
14989 (Gen_Ctrl_Actions_For_Aggr): Generate a finalization list for allocators
14990 of anonymous access type.
14992 2007-08-14 Ed Schonberg <schonberg@adacore.com>
14994 * exp_ch5.adb (Expand_Assign_Array): If source or target of assignment
14995 is a variable that renames a slice, use the variable itself in the
14996 expannsion when the renamed expression itself may be modified between
14997 the declaration of the renaming and the array assignment.
14999 2007-08-14 Jerome Guitton <guitton@adacore.com>
15001 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
15002 s-taprop-hpux-dce.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
15003 s-taprop-vms.adb, s-taprop-posix.adb (Continue_Task, Stop_All_Tasks):
15004 New functions; dummy implementations.
15006 * s-osinte-vxworks.ads (Task_Stop, Task_Cont, Int_Lock, Int_Unlock): New
15007 functions, used to implement the multi-tasks mode routines on VxWorks.
15009 * s-osinte-vxworks.adb, s-osinte-vxworks6.adb (Task_Cont, Task_Stop):
15010 New functions, thin
15011 binding to the VxWorks routines which have changed between VxWorks 5
15013 (Int_Lock, Int_Unlock): New function, thin binding to kernel routines
15014 which are not callable from a RTP.
15016 * s-taprop-vxworks.adb (Stop_All_Tasks, Continue_Task): New functions,
15017 implemented for the multi-tasks mode on VxWorks 5 and 6.
15019 * s-taprop.ads (Stop_All_Tasks, Continue_Task): New functions.
15021 * s-tasdeb.ads, s-tasdeb.adb (Continue_All_Tasks, Stop_All_Tasks): New
15024 2007-08-14 Vincent Celier <celier@adacore.com>
15026 * clean.adb, fmap.adb, sinput-p.adb, sinput-p.ads, gnatcmd.adb,
15027 gnatname.adb, makeutl.ads, makeutl.adb, makegpr.adb, mlib-tgt-vms.adb
15028 mlib-tgt-darwin.adb, mlib-tgt-lynxos.adb, mlib-prj.adb, mlib-tgt.adb,
15029 mlib-tgt.ads, mlib-tgt-irix.adb mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
15030 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
15031 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb, mlib-tgt-aix.adb,
15032 mlib-tgt-tru64.adb, mlib.ads, mlib.adb (Create_Sym_Links): New
15034 (Major_Id_Name): New function.
15035 mlib-tgt.ads/mlib.tgt.adb:
15036 (Library_Major_Minor_Id_Supported): New function, default returns True
15037 Most mlib-tgt-*.adb that support shared libraries and symbolic links:
15038 (Build_Dynamic_Library): Add support for major/minor ids for shared libs
15039 Other mlib-tgt-*.adb (aix, mingw, vms, vxworks, xi):
15040 Implementation of Library_Major_Minor_Id_Supported returns False
15042 (Clean_Library_Directory): If major/minor ids are supported, clean all
15044 Major update of the Project Manager and of the project aware tools,
15045 including gprmake, so that the same sources in the GNAT repository
15046 can be used by gprbuild.
15048 2007-08-14 Olivier Hainque <hainque@adacore.com>
15050 * system-solaris-x86.ads (ZCX_By_Default): Switch to True.
15051 (GCC_ZCX_Support): Switch to True.
15053 * s-intman-solaris.adb (Notify_Exception): Call
15054 Adjust_Context_For_Raise before raising, as expected for signal
15055 handlers in general.
15057 * s-intman-posix.adb (Notify_Exception): Remove declaration of
15058 Adjust_Context_For_Raise, moved to the spec of this unit to be visible
15059 to other implementation bodies.
15061 * s-intman.ads (Adjust_Context_For_Raise): Declare and import here, to
15062 be visible by multiple implementation bodies.
15064 * init.c [VMS section] (__gnat_handle_vms_condition): Adjust context
15065 only for conditions coming from hardware.
15066 [alpha-tru64 section] (__gnat_adjust_context_for_raise): Implement,
15067 adjustments to signal context prior to exception raise from signal
15069 (__gnat_map_signal for VxWorks): Map SIGSEGV to Storage_Error in RTP
15071 Solaris section: (__gnat_adjust_context_for_raise): New function.
15072 Implementation of the machine context adjustments to perform prior to
15073 raise from a signal handler. Version for both sparc and x86.
15074 (HAVE_GNAT_ADJUST_CONTEXT_FOR_RAISE): Define.
15075 (__gnat_error_handler): Expect a third argument, ucontext_t *. Adjust it
15076 prior to raising as expected for any handler, before possible nested
15077 faults to make sure all the contexts in a chain have been adjusted by
15078 the time we propagate.
15080 2007-08-14 Pascal Obry <obry@adacore.com>
15082 * s-osinte-mingw.ads: Add support for Ada.Execution_Time on Windows.
15083 (SYSTEM_INFO): New record.
15084 (SetThreadIdealProcessor): New imported routine needed for supporting
15085 task_info pragma on Windows.
15087 * s-taprop-mingw.adb (Enter_Task): Check if CPU number given in task
15088 info can be applied to the current host.
15089 (Create_Task): Set the ideal processor if information is present.
15091 * s-tasinf-mingw.adb, s-tasinf-mingw.ads,
15092 a-exetim-mingw.adb, a-exetim-mingw.ads: New files.
15094 2007-08-14 Olivier Hainque <hainque@adacore.com>
15096 * s-taprop-linux.adb (Get_Stack_Attributes): New subprogram. Fetch the
15097 stack size and initial stack pointer value for a given task.
15098 (Enter_Task): Get the stack attributes of the task we are entering and
15099 let the stack checking engine know about them.
15101 * s-stchop.adb, s-stchop.ads (Notify_Stack_Attributes): New subprogram.
15102 Let the stack-checking engine know about the initial sp value and stack
15103 size associated with the current task.
15104 (Set_Stack_Info): If a stack base has been notified for the current
15105 task, honor it. Fallback to the previous less accurate method otherwise.
15107 * s-stchop-vxworks.adb (Notify_Stack_Attributes): Dummy body.
15109 2007-08-14 Ed Schonberg <schonberg@adacore.com>
15111 * sem_ch10.adb: Create a limited view of an incomplete type, to make
15112 treatment of limited views uniform for all visible declarations in a
15113 limited_withed package.
15114 Set flag indicating that a subprogram body for a child unit has a
15116 (Analyze_Compilation_Unit): If unit is a subprogram body that has no
15117 separate declaration, remove the unit name from visibility after
15118 compilation, so that environment is clean for subsequent compilations.
15119 (Install_Limited_Context_Clauses): Do not install a
15120 limited_private_with_clause unless the current unit is a body or a
15121 private child unit.
15122 (Analyze_Subunit, Install_Parents): Treat generic and non-generic units
15123 in the same fashion.
15124 (Install_Limited_Withed_Unit): Do not install a limited with clause if
15125 it applies to the declaration of the current package body.
15126 (Remove_Private_With_Clauses): If there is a regular with_clause for
15127 the unit, delete Private_With_Clause from context, to prevent improper
15128 hiding when processing subsequent nested packages and instantiations.
15130 2007-08-14 Jose Ruiz <ruiz@adacore.com>
15132 * adaint.c (__gnat_is_absolute_path): For VxWorks systems we accept
15133 dir/file, device:/dir/file, and device:drive_letter:/dir/file as
15134 representing absolute path names.
15135 __gnat_set_file_time_name [VMS]: Fix some 64/32 bit issues.
15137 * cstreams.c (__gnat_full_name for VxWorks): Use
15138 __gnat_is_absolute_path to detect whether we need to add the current
15139 directory to normalize the path.
15141 2007-08-14 Javier Miranda <miranda@adacore.com>
15144 a-tags.adb (Displace): Associate a message with the raised CE
15146 (To_Addr_Ptr, To_Address, To_Dispatch_Table_Ptr,
15147 To_Object_Specific_Data_Ptr To_Predef_Prims_Ptr,
15148 To_Tag_Ptr, To_Type_Specific_Data_Ptr): Moved here from the package
15150 (Default_Prim_Op_Count): Removed.
15151 (IW_Membership, Get_Entry_Index, Get_Offset_Index, Get_Prim_Op_Kind,
15152 Register_Tag, Set_Entry_Index, Set_Offset_To_Top, Set_Prim_Op_Kind):
15153 Remove pragma Inline_Always.
15155 * rtsfind.ads (Default_Prim_Op_Count): Removed
15156 (Max_Predef_Prims): New entity
15157 (RE_Expanded_Name): Removed
15158 (RE_HT_Link): Removed
15159 (RE_Iface_Tag): Remmoved
15160 (RE_Ifaces_Table): Removed
15161 (RE_Interfaces_Array): Removed
15162 (RE_Interface_Data_Element): Removed
15163 (RE_Nb_Ifaces): Removed
15164 (RE_RC_Offset): Removed
15165 (RE_Static_Offset_To_Top): Removed
15167 * exp_atag.ads, exp_atag.adb (Build_Inherit_Prims): Addition of a new
15169 (Build_Inherit_Predefined_Prims): Replace occurrences of Default_
15170 Prim_Op_Count by Max_Predef_Prims.
15172 2007-08-14 Thomas Quinot <quinot@adacore.com>
15173 Vincent Celier <celier@adacore.com>
15175 * binde.adb (Elab_All_Links): Remove unnecessary call to
15176 Generic_Separately_Compiled (if a unit satisfies this predicate, there
15177 won't be an associated Afile).
15178 (Elab_All_Links): Fail if a referenced unit cannot be found
15181 Fix comments in bindgen regarding consistency checks done in Bcheck:
15182 the checks are made across units within a partition, not across several
15184 Fix generation of C binder file for VxWorks.
15186 * lib.ads, lib.adb (Generic_Separately_Compiled): Rename to
15187 Generic_May_Lack_ALI, more descriptive of the current use of the
15188 predicate, and update documentation.
15190 * lib-writ.ads, lib-writ.adb (Write_With_Lines): Minor code
15191 reorganization and documentation update for the case of predefined
15192 library generics (for which we do not reference an Afile).
15194 2007-08-14 Robert Dewar <dewar@adacore.com>
15196 * s-intman-irix.adb, s-osinte-irix.adb, s-osinte-irix.ads,
15197 s-proinf-irix-athread.ads, s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads,
15198 s-parame-hpux.ads, s-intman-dummy.adb, s-tasinf-solaris.adb,
15199 s-tasinf-solaris.ads, s-asthan-vms-alpha.adb, s-inmaop-vms.adb,
15200 s-intman-vms.adb, s-intman-vms.ads, s-osprim-mingw.adb,
15201 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-intman-vxworks.ads,
15202 s-intman-vxworks.ads, s-intman-vxworks.adb, s-parame-vxworks.ads,
15203 s-tfsetr-vxworks.adb, s-interr.adb, s-interr.ads, a-tasatt.adb,
15204 exp_ch13.adb, s-htable.ads, s-imgboo.ads, s-imglli.ads, s-imgllu.ads,
15205 s-imguns.ads, g-eacodu.adb, par-ch12.adb, s-stache.ads, s-stausa.adb,
15206 s-poosiz.adb, s-parame.ads, s-mastop.ads, s-osinte-darwin.ads,
15207 a-chtgke.adb, s-asthan-vms-alpha.adb, s-parame-vms-alpha.ads,
15208 s-parame-vms-ia64.ads, s-parame-vxworks.adb, s-except.ads,
15209 g-altcon.adb: Minor reformatting
15211 ada-tree.h: Delete empty line.
15213 ali.ads: Minor reformatting
15214 Clarification of comments.
15215 Minor spelling correction
15217 * exp_dbug.adb: Add Warnings Off to suppress new warning
15219 * a-witeio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
15222 * a-strunb.adb (Set_Unbounded_String): Avoid memory leak by freeing old
15225 * a-textio.adb (Write): Remove an unnecessary IN OUT mode from
15227 * a-textio.ads: Reorder the standard input/output/error declarations
15230 * g-dirope.adb, g-dirope.ads: Change Dir to mode IN for Open call
15232 * par-ch2.adb: Recognize RM specially in errout
15233 Change 'R'M to RM in all error messages
15235 * scng.adb: Recognize RM specially in errout
15237 * sem.ads, sem.adb, exp_strm.adb, exp_ch5.ads, expander.adb: Rename
15238 N_Return node to be N_Simple_Return, to reflect Ada 2005 terminology.
15240 * s-direio.adb: Add missing routine header box.
15242 * sem_attr.ads: Add ??? comments
15244 * sem_eval.adb: Recognize RM specially in errout
15245 Change 'R'M to RM in all error messages
15247 * sem_maps.adb, sem_maps.ads: Remove some unnecessary IN OUT modes
15249 * s-tasinf.ads: Fix minor comment typo.
15251 * a-cihama.adb: Minor comment addition
15253 * a-ztexio.adb (Write): Add Warnings (Off) for unneeded IN OUT mode
15256 * s-tasinf-tru64.ads: Fix minor comment typo.
15258 * itypes.ads: Comment update.
15260 * ali-util.adb: Remove Generic_Separately_Compiled guard, not needed
15263 * argv.c: Added protection against null gnat_argv and gnat_envp.
15265 * bcheck.adb (Check_Consistency): Use correct markup character ({) in
15266 warning message when Tolerate_Consistency_Errors is True.
15268 * cstand.adb (Create_Standard): Do not call Init_Size_Alignment for
15269 Any_Id, as this subprogram is only applicable to *type* entities (it
15270 sets RM_Size). Instead initialize just Esize and Alignment.
15272 2007-08-14 Bob Duff <duff@adacore.com>
15274 * a-cihama.ads, a-cidlli.ads, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
15275 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
15276 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorse.ads, a-cohama.ads,
15277 a-cohata.ads, a-convec.adb, a-coinve.ads, a-coinve.adb, a-convec.ads,
15278 a-coorse.ads (Next): Applied pragma Inline.
15279 Make all Containers packages Remote_Types (unless they are already
15281 (Previous): applied pragma Inline
15282 (Elements_Type): is now a record instead of an array
15284 2007-08-14 Thomas Quinot <quinot@adacore.com>
15286 * table.adb, g-table.adb, g-dyntab.adb (Append): Reimplement in terms
15288 (Set_Item): When the new item is an element of the currently allocated
15289 table passed by reference, save a copy on the stack if we're going
15290 to reallocate. Also, in Table.Set_Item, make sure we test the proper
15291 variable to determine whether to call Set_Last.
15293 * sinput-d.adb, sinput-l.adb, stringt.adb, switch-m.adb,
15294 symbols-vms.adb, symbols-processing-vms-alpha.adb,
15295 symbols-processing-vms-ia64.adb, sem_elab.adb, repinfo.adb: Replace
15296 some occurrences of the pattern
15298 T.Table (T.Last) := Value;
15299 with a cleaner call to
15302 2007-08-14 Ed Schonberg <schonberg@adacore.com>
15303 Gary Dismukes <dismukes@adacore.com>
15304 Thomas Quinot <quinot@adacore.com>
15306 * sem_ch12.ads, sem_ch12.adb (Instantiate_Type): If the formal is a
15307 derived type with interface progenitors use the analyzed formal as the
15308 parent of the actual, to create renamings for all the inherited
15309 operations in Derive_Subprograms.
15310 (Collect_Previous_Instances): new procedure within of
15311 Load_Parent_Of_Generic, to instantiate all bodies in the compilation
15312 unit being loaded, to ensure that the generation of global symbols is
15313 consistent in different compilation modes.
15314 (Is_Tagged_Ancestor): New function testing the ancestor relation that
15315 takes progenitor types into account.
15316 (Validate_Derived_Type_Instance): Enforce the rule of 3.9.3(9) by
15317 traversing over the primitives of the formal and actual types to locate
15318 any abstract subprograms of the actual type that correspond to a
15319 nonabstract subprogram of the formal type's ancestor type(s), and issue
15320 an error if such is found.
15321 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation,
15322 Instantiate_Package_Body, Instantiate_Subprogram_Body):
15323 Remove bogus guard around calls to Inherit_Context.
15324 (Reset_Entity): If the entity is the selector of a selected component
15325 that denotes a named number, propagate constant-folding to the generic
15326 template only if the named number is global to the generic unit.
15327 (Set_Instance_Env): Only reset the compilation switches when compiling
15328 a predefined or internal unit.
15330 2007-08-14 Ed Schonberg <schonberg@adacore.com>
15332 * sem_ch4.adb (Try_Class_Wide_Operation): use base type of first
15333 parameter to determine whether operation applies to the prefix.
15334 (Complete_Object_Operation): If actual has an access type and
15335 controlling formal is not an in_parameter, reject the actual if it is
15336 an access_to_constant type.
15337 (Try_Primitive_Operation): If the type of the prefix is a formal tagged
15338 type, the candidate operations are found in the scope of declaration of
15339 the type, because the type has no primitive subprograms.
15340 (Analyze_Selected_Component): If prefix is class-wide, and root type is
15341 a private extension, only examine visible components before trying to
15342 analyze as a prefixed call.
15343 Change Entity_List to Type_To_Use, for better readability.
15344 (Has_Fixed_Op): Use base type when checking whether the type of an
15345 operator has a user-defined multiplication/division
15346 (Check_Arithmetic_Pair): Use Ada 2005 rules to remove ambiguities when
15347 user-defined operators are available for fixed-point types.
15349 2007-08-14 Thomas Quinot <quinot@adacore.com>
15350 Ed Schonberg <schonberg@adacore.com>
15352 * sem_cat.ads, sem_cat.adb (Has_Stream_Attribute_Definition): New
15353 formal At_Any_Place indicating, when True, that we want to test for
15354 availability of the stream attribute at any place (as opposed to the
15355 current visibility context only).
15356 (Missing_Read_Write_Attributes): A stream attribute is missing for the
15357 purpose of enforcing E.2.2(8) only if it is not available at any place.
15358 Take into account the Ada2005 pragma Has_Preelaborable_Initialization
15359 when checking the legality of an extension aggregate in a preelaborable
15360 package. Treat the literal null as a valid default expression in a
15361 component declaration for a type with preelaborable initialization.
15362 A limited interface is a legal progenitor for the designated type of a
15363 remote access to class-wide type.
15365 2007-08-14 Thomas Quinot <quinot@adacore.com>
15366 Ed Schonberg <schonberg@adacore.com>
15368 * sem_ch8.ads, sem_ch8.adb (Find_Type, case of a 'Base attribute
15369 reference): Use correct entity as denoted entity for the selector of
15370 the rewritten node.
15371 (Find_Direct_Name): Add comment about Generate_Reference incorrectly
15372 setting the Referenced_As_LHS flag for entities that are implicitly
15374 (Find_Type): If the type is an internally generated incomplete type,
15375 mark the full view as referenced, to prevent spurious warnings.
15376 (Find_Selected_Component, Has_Components): Handle properly non-limited
15377 views that are themselves incomplete types.
15378 Handle interfaces visible through limited-with clauses.
15379 (Analyze_Subprogram_Renaming): Disambiguate and set the entity of a
15380 subprogram generic actual for which we have generated a renaming.
15381 Warn when the renaming introduces a homonym of
15382 the renamed entity, and the renamed entity is directly visible.
15384 2007-08-14 Ed Schonberg <schonberg@adacore.com>
15385 Hristian Kirtchev <kirtchev@adacore.com>
15387 * sem_res.adb (Resolve_Allocator): Propagate any coextensions that
15388 appear in the subtree to the current allocator if it is not a static
15390 (Resolve_Allocator): Perform cleanup if resolution has determined that
15391 the allocator is not a coextension.
15392 (Resolve): Skip an interpretation hidden by an abstract operator only
15393 when the type of the interpretation matches that of the context.
15394 (Resolve): When looping through all possible interpretations of a node,
15395 do not consider those that are hidden by abstract operators.
15396 (Resolve_Actuals): When verifying that an access to class-wide object
15397 is an actual for a controlling formal, ignore anonymous access to
15398 subprograms whose return type is an access to class_wide type.
15399 (Resolve_Slice): If the prefix of the slice is a selected component
15400 whose type depends on discriminants, build its actual subtype before
15401 applying range checks on the bounds of the slice.
15402 (Valid_Conversion): In an instance or inlined body, compare root types,
15403 to prevent anomalies between private and public views.
15404 (Resolve): Improve error message for ambiguous fixed multiplication
15405 expressions that involve universal_fixed multiplying operations.
15407 2007-08-14 Javier Miranda <miranda@adacore.com>
15408 Hristian Kirtchev <kirtchev@adacore.com>
15410 * exp_ch9.adb (Build_Protected_Entry): Propagate the original source
15411 location to allow the correct generation of errors in case of
15412 restrictions applied to the expanded code.
15413 (Expand_Entry_Barrier): Remove all generated renamings for a barrier
15414 function if the condition does not reference them.
15415 (Expand_Entry_Body_Declarations): Mark the index constant as having a
15418 2007-08-14 Thomas Quinot <quinot@adacore.com>
15419 Pablo Oliveira <oliveira@adacore.com>
15421 * exp_dist.adb (PolyORB_Support.Build_TypeCode_Function): When creating
15422 typecode parameters for a union (in a variant record), remove
15423 extraneous layer of Any wrapping for member label.
15424 (Expand_Receiving_Stubs_Bodies): For an RCI package body that has
15425 elabration statements, register the package with the name server
15426 at the beginning, not at the end, of the elaboration statements so
15427 that they can create remote access to subprogram values that designate
15428 remote subprograms from the package.
15430 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
15432 * g-catiio.adb (Image): For the case of %s, use Ada.Calendar.Time
15433 values to compute the number of seconds since the Unix Epoc in order to
15434 account for Daylight Savings Time. Perform special processing for dates
15435 that are earlier than the Unix Epoc to obtain a negative number.
15437 2007-08-14 Emmanuel Briot <briot@adacore.com>
15439 * g-comlin.adb (Getopt): Fix handling of "*" switch when not collapsing
15442 2007-08-14 Eric Botcazou <ebotcazou@adacore.com>
15444 * gnatlink.adb (Gnatlink): Pass switches to the linker even if the
15445 binder-generated file is not in Ada.
15446 Pass -mrtp to the linker if it is GCC and --RTS=rtp has been
15447 recorded in the ALI file.
15448 Pass -fsjlj to the linker if it is GCC and --RTS=sjlj has been recorded.
15450 2007-08-14 Vincent Celier <celier@adacore.com>
15452 * gnatls.adb: (Corresponding_Sdep_Entry): Always return a value
15453 (Output_Source): Do nothing if parameter is No_Sdep_Id
15455 * make.adb (Gnatmake): Do not rebuild an archive simply because a
15456 shared library it imports has a later time stamp.
15457 (Check): Resolve the symbolic links in the path name of the object
15459 Check that the ALI file is in the correct object directory
15460 Check if a file name does not correspond to the mapping of units
15462 (Display_Version): New procedure
15463 (Initialize): Process switches --version and --help
15464 Use type Path_Name_Type for path name
15466 2007-08-14 Paul Hilfinger <hilfinger@adacore.com>
15468 * impunit.adb: Re-organize System.Random_Numbers and
15469 GNAT.Random_Numbers and add to builds.
15471 * Makefile.rtl: Add s-rannum.ad* and g-rannum.ad*, a-assert*
15473 * s-rannum.ads, s-rannum.adb, g-rannum.ads, g-rannum.adb: New files.
15475 * a-assert.ads, a-assert.adb: New files.
15477 2007-08-14 Gary Dismukes <dismukes@adacore.com>
15479 * layout.adb (Layout_Type): In the case of access-to-subprogram types,
15480 if AAMP_On_Target is True, then the size of the type encompasses two
15481 addresses (a static link and a subprogram address), except in the case
15482 of library-level access types.
15484 2007-08-14 Vincent Celier <celier@adacore.com>
15486 * output.ads, output.adb (Write_Eol): Remove trailing spaces before
15488 (Write_Eol_Keep_Blanks): New procedure to write a line, including
15489 possible trailing spaces.
15490 (Output_Source_Line): Call Write_Eol_Keep_Blanks to output a source line
15492 2007-08-14 Javier Miranda <miranda@adacore.com>
15494 * par-ch6.adb (P_Formal_Part): Fix wrong error message associated with
15495 null-excluding access types.
15497 2007-08-14 Javier Miranda <miranda@adacore.com>
15499 * sem_ch9.adb (Check_Interfaces): New subprogram that factorizes code
15500 that is common to Analyze_Protected_Type and Analyze_Task_Type. In case
15501 of private types add missing check on matching interfaces in the
15502 partial and full declarations.
15503 (Analyze_Protected_Type): Code cleanup.
15504 (Analyze_Task_Type): Code cleanup.
15506 2007-08-14 Javier Miranda <miranda@adacore.com>
15508 * sem_disp.adb (Check_Dispatching_Operation): Do not emit warning on a
15509 generated interface thunk.
15511 2007-08-14 Ed Schonberg <schonberg@adacore.com>
15513 * s-ficobl.ads: Declare AFCB as a tagged incomplete type, to prevent
15514 obsolescent warning on application of 'Class to an incomplete type.
15516 * s-finroo.ads: Declare Root_Controlled as a tagged incomplete type, to
15517 prevent obsolescent warning on application of 'Class to an incomplete
15520 2007-08-14 Pascal Obry <obry@adacore.com>
15522 * s-fileio.adb (Is_Open): Add check for usability of the underlying
15525 2007-08-14 Cyrille Comar <comar@adacore.com>
15527 * s-finimp.adb (Detach_From_Final_List): make this procedure idempotent
15528 since it is potentially used in cases implying double finalization of
15531 2007-08-14 Jose Ruiz <ruiz@adacore.com>
15533 * s-tasini.adb (Get_Stack_Info): Move this function to
15534 System.Soft_Links.Tasking because it is common to the full and the
15535 restricted run times.
15536 (Init_RTS): Do not set the Get_Stack_Info soft link because it is done
15537 in SSL.Tasking.Init_Tasking_Soft_Links.
15539 * s-solita.adb (Get_Stack_Info): Function moved from
15540 System.Tasking.Initialization because it is common to the full and the
15541 restricted run times.
15542 (Init_Tasking_Soft_Links): Set the tasking soft link for Get_Stack_Info.
15544 2007-08-14 Arnaud Charlet <charlet@adacore.com>
15546 * s-tpobop.ads, s-tpobop.adb, s-tasren.ads, s-tasren.adb,
15547 s-taskin.ads (Requeue_With_Abort): Rename field With_Abort.
15548 (PO_Do_Or_Queue, Task_Do_Or_Queue, Requeue_Call): Remove With_Abort
15551 * s-tassta.adb (Task_Wrapper): Increased value of the small overflow
15554 2007-08-14 Gary Dismukes <dismukes@adacore.com>
15556 * s-veboop.adb (SU): New named number initialized to
15557 System.Storage_Unit.
15558 (True_Val): The initialization expression is revised to use SU (=
15559 Storage_Unit) rather than assuming 8 for the component size of an
15560 unpacked Boolean array.
15562 2007-08-14 Tristan Gingold <gingold@adacore.com>
15564 * tracebak.c: Use tb-ivms.c on OpenVMS Itanium.
15566 * tb-ivms.c: New file.
15568 * g-trasym-vms-ia64.adb: Fixed for OpenVMS version 8.2
15570 2007-08-14 Geert Bosch <bosch@adacore.com>
15572 * i-forbla.ads, i-forbla.adb, a-ngcoar.adb, a-ngcoar.ads, i-forlap.ads,
15573 s-gearop.adb, s-gecobl.adb, s-gecobl.ads, s-gerela.adb, s-gerela.ads:
15574 Add required linker pragmas for automatically linking with the gnalasup
15575 linear algebra support library, and the systems math library.
15576 Rename cdot to cdotu and zdot to zdotu.
15577 Update header comment to describe purpose of package.
15579 2007-08-14 Thomas Quinot <quinot@adacore.com>
15581 * exp_ch7.adb (Find_Final_List): For an anonymous access type that has
15582 an explicitly specified Associated_Final_Chain, use that list.
15583 (Expand_N_Package_Body): Build dispatch tables of library level tagged
15585 (Expand_N_Package_Declaration): Build dispatch tables of library level
15586 tagged types. Minor code cleanup.
15588 2007-08-14 Vincent Celier <celier@adacore.com>
15590 * gnatchop.adb (Terminate_Program): Remove exception and use
15591 Types.Terminate_Program instead.
15593 * osint.ads, osint.adb (Current_Exit_Status): New global variable
15594 (Find_Program_Name): Added protection against empty name.
15595 (OS_Exit_Through_Exception): New procedure
15597 * s-os_lib.ads, s-os_lib.adb (OS_Exit): New procedure body
15598 (OS_Exit_Default): New procedure that contains the previous
15599 implementation of procedure OS_Exit.
15600 (Final_Value): Remove obsolete Interix stuff.
15602 2007-08-14 Thomas Quinot <quinot@adacore.com>
15604 * g-socket.ads: Reorganize example code so that it also works on
15607 2007-08-14 Tristan Gingold <gingold@adacore.com>
15609 * g-trasym.ads: AIX now supports symbolic backtraces.
15611 2007-08-14 Ed Schonberg <schonberg@adacore.com>
15613 * lib-load.adb (From_Limited_With_Chain): Always scan the stack of
15614 units being loaded to detect circularities. A circularity may be
15615 present even if the current chain of pending units to load starts from
15616 a limited_with_clause.
15618 * lib-load.ads: Change profile of Load_Unit to use a with_clause
15619 rather than a boolean flag, in order to detect circularities in
15622 * par-load.adb: Use current with_clause in calls to Load_Unit, rather
15623 than propagating the From_Limited_With flag, in order to handle
15624 properly circularities involving with_clauses.
15626 2007-08-14 Nicolas Setton <setton@adacore.com>
15628 * link.c (FreeBSD): Add "const" keyword where needed, to eliminate
15631 2007-08-14 Arnaud Charlet <charlet@adacore.com>
15633 * Makefile.in: GNATRTL_LINEARALGEBRA_OBJS: New variable holding objects
15634 to build for libgnala.
15635 libgnat: Add rules to build libgnala.a
15636 (LIBGNAT_TARGET_PAIRS for VxWorks): Remove s-osinte-vxworks.adb from
15637 target pairs of the VxWorks 6 kernel runtime, use it only for VxWorks 5.
15638 Add s-osinte-vxworks-kernel.adb to the target pairs of the
15639 kernel run-time lib for VxWorks 6, which would provide a different
15640 implementation for Task_Cont and Task_Stop than the VxWorks 5 version.
15641 x86-solaris section (EH_MECHANISM): Set to -gcc, as this port is now
15642 running ZCX by default.
15643 Add g-sttsne-locking to LynxOS version.
15644 Remove g-sttsne-vxworks.ads; use g-sttsne-locking.ads instead.
15645 On x86/darwin, use a-numaux-x86.ad? and system-darwin-x86.ads.
15647 * system-darwin-x86.ads: New file.
15649 * Make-lang.in: Delete files before copying onto them, so if they are
15650 read-only, the copy won't fail.
15651 Update dependencies
15653 2007-08-14 Pascal Obry <obry@adacore.com>
15655 * mdll-fil.adb, * mdll.adb: Implement a more consistent libraries
15658 2007-08-14 Vincent Celier <celier@adacore.com>
15660 * mlib-utl.adb (Gcc_Name): Change from constant String to String_Access
15661 (Gcc): Initialize Gcc_Name at the first call
15663 2007-08-14 Ed Schonberg <schonberg@adacore.com>
15665 * sem_ch7.adb (Analyze_Package_Specification): Do not install private
15666 with_clauses of the enclosing unit when analyzing the package
15667 specification of a nested instance.
15669 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
15671 * sinfo.ads, sinfo.adb (Is_Coextension, Set_Is_Coextension): Removed.
15672 (Is_Dynamic_Coextension, Set_Is_Dynamic_Coextension): New routines.
15673 Remove flag Is_Coextension. Add flag Is_Dynamic_Coextension. Update the
15674 layout of N_Allocator.
15676 2007-08-14 Thomas Quinot <quinot@adacore.com>
15678 * rtsfind.adb (Check_RPC): Add PCS version check.
15680 * gnatvsn.ads, gnatvsn.adb: Add PCS version.
15681 (Gnat_Free_Software): New function.
15683 * sem_dist.ads, sem_dist.adb (Get_PCS_Version): New subprogram. Returns
15684 the PCS_Version value from s-parint, used to check that it is consistent
15685 with what exp_dist expects.
15687 * s-parint.ads (PCS_Version): New entity for checking consistency
15688 between exp_dist and PCS.
15690 * gen-soccon.c: (SO_REUSEPORT): New constant.
15692 2007-08-14 Hristian Kirtchev <kirtchev@adacore.com>
15694 * a-calfor.adb (Image (Duration; Boolean)): Change type of local
15695 variable Sub_Second to Duration in order to accomodate a larger range
15696 of arithmetic operations.
15698 2007-08-14 Bob Duff <duff@adacore.com>
15700 * g-sttsne-locking.ads: Move comments from spec to body.
15701 * g-sttsne-locking.adb: Move comments from spec to body.
15702 * g-sttsne-vxworks.ads: Removed.
15703 * g-sttsne-vxworks.adb: Removed.
15705 2007-08-11 Ian Lance Taylor <iant@google.com>
15707 * misc.c (gnat_get_alias_set): Change return type to
15710 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15712 * decl.c, utils2.c: Fix whitespace in last change.
15714 2007-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15716 * decl.c (compare_field_bitpos): Constify.
15717 * utils2.c (compare_elmt_bitpos): Likewise.
15719 2007-07-27 Aurelien Jarno <aurelien@aurel32.net>
15721 * s-osinte-kfreebsd-gnu.ads ((sigset_t_ptr): Removed, replaced by
15722 anonymous access type.
15723 (pthread_sigmask): Now take an access sigset_t.
15725 2007-07-05 Joel Sherrill <joel.sherrill@oarcorp.com>
15727 * s-osinte-rtems.ads: Correct prototype of pthread_sigmask.
15729 2007-06-21 Eric Botcazou <ebotcazou@adacore.com>
15731 PR tree-optimization/25737
15732 * misc.c (gnat_post_options): Do not force flag_tree_salias to 0.
15734 2007-06-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
15736 * trans.c (Attribute_to_gnu): When subtracting an
15737 offset from a pointer, use POINTER_PLUS_EXPR with
15738 NEGATE_EXPR instead of MINUS_EXPR.
15739 (gnat_to_gnu): Likewise.
15740 * utils.c (convert): When converting between
15741 thin pointers, use POINTER_PLUS_EXPR and sizetype
15743 * utils2.c (known_alignment): POINTER_PLUS_EXPR
15744 have the same semantics as PLUS_EXPR for alignment.
15745 (build_binary_op): Add support for the semantics of
15746 POINTER_PLUS_EXPR's operands.
15747 When adding an offset to a pointer, use POINTER_PLUS_EXPR.
15749 2007-06-11 Rafael Ávila de Espíndola <espindola@google.com>
15751 * trans.c (Attribute_to_gnu): Use signed_or_unsigned_type_for instead
15752 of get_signed_or_unsigned_type.
15753 * misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
15755 2007-06-11 Bob Duff <duff@adacore.com>
15756 Thomas Quinot <quinot@adacore.com>
15758 * g-stsifd-sockets.adb (Create): Work around strange behavior of
15759 'bind' on windows that causes 'connect' to fail intermittently, by
15760 retrying the 'bind'.
15761 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
15763 2007-06-10 Duncan Sands <baldrick@free.fr>
15765 * decl.c (gnat_to_gnu_entity): Use pointers to dummy nodes, rather
15766 than to void, for the fields when making a new fat pointer type.
15767 (gnat_substitute_in_type): Now substitute_in_type.
15768 * gigi.h (gnat_substitute_in_type): Likewise. Adjust recursive calls.
15769 * trans.c (gnat_gimplify_expr): Remove COMPONENT_REF kludge.
15770 * utils.c (update_pointer_to): Update fat pointers by updating the
15771 dummy node pointers used for the fields.
15773 2007-06-06 Thomas Quinot <quinot@adacore.com>
15774 Bob Duff <duff@adacore.com>
15776 * g-soccon-freebsd.ads, g-soccon-vxworks.ads:,
15777 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
15778 g-soccon-solaris.ads, g-soccon-vms.ads, g-soccon-tru64.ads: Add new
15779 constant Thread_Blocking_IO, always True by default, set False
15780 on a per-runtime basis.
15781 (Need_Netdb_Buffer): New constant.
15783 * g-stheme.adb, g-sttsne.ads, g-sttsne-locking.ads,
15784 g-sttsne-locking.adb, g-sttsne-vxworks.ads, g-sttsne-vxworks.adb: New
15787 * g-socthi-vxworks.ads, g-socthi-vxworks.adb,
15788 g-socthi-vms.ads, g-socthi-vms.adb (Safe_Gethostbyname,
15789 Safe_Gethostbyaddr, Safe_Getservbyname, Safe_Getservbyport): Use new
15790 child package Task_Safe_NetDB
15791 (Host_Error_Messages): Add stub body.
15792 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
15794 * g-soccon-mingw.ads: Add Windows-specific constants.
15795 (Need_Netdb_Buffer): New constant.
15796 (GNAT.Sockets.Thin.C_Inet_Addr, Windows version): Remove useless Ada
15797 wrapper and import inet_addr(3) from the standard sockets library
15799 (In_Addr): Add alignment clause.
15800 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
15802 2007-06-06 Robert Dewar <dewar@adacore.com>
15804 * a-taster.adb, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
15805 s-osinte-irix.ads, s-interr-sigaction.adb, s-mastop-irix.adb,
15806 s-osinte-hpux-dce.ads, s-osinte-interix.ads, s-osinte-solaris.ads,
15807 s-taspri-solaris.ads, s-inmaop-vms.adb, s-interr-vms.adb,
15808 s-mastop-vms.adb, s-osinte-vms.ads, s-tpopde-vms.adb,
15809 s-osinte-mingw.ads, s-interr-vxworks.adb, i-cstrea-vms.adb,
15810 a-diocst.adb, a-direio.adb, a-interr.adb, a-sequio.adb, a-siocst.adb,
15811 a-ssicst.adb, a-storio.adb, a-ststio.adb, a-stwima.adb, a-tasatt.adb,
15812 a-taside.adb, a-tiocst.adb, a-witeio.adb, a-wtcstr.adb, g-crc32.adb,
15813 g-dirope.adb, g-dyntab.adb, g-memdum.adb, g-regexp.adb, g-spipat.adb,
15814 g-spitbo.adb, g-string.adb, g-string.ads, g-table.adb, g-thread.adb,
15815 i-cobol.adb, i-cpoint.adb, i-cstrea.adb, i-cstrin.adb, i-pacdec.adb,
15816 s-addima.adb, s-arit64.adb, s-auxdec.adb, s-auxdec.ads,
15817 s-auxdec-vms_64.ads, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
15818 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
15819 s-direio.adb, s-fileio.adb, s-finimp.ads, s-geveop.adb, s-imgenu.adb,
15820 s-pack03.adb, s-pack05.adb, s-pack06.adb, s-pack07.adb, s-pack09.adb,
15821 s-pack10.adb, s-pack11.adb, s-pack12.adb, s-pack13.adb, s-pack14.adb,
15822 s-pack15.adb, s-pack17.adb, s-pack18.adb, s-pack19.adb, s-pack20.adb,
15823 s-pack21.adb, s-pack22.adb, s-pack23.adb, s-pack24.adb, s-pack25.adb,
15824 s-pack26.adb, s-pack27.adb, s-pack28.adb, s-pack29.adb, s-pack30.adb,
15825 s-pack31.adb, s-pack33.adb, s-pack34.adb, s-pack35.adb, s-pack36.adb,
15826 s-pack37.adb, s-pack38.adb, s-pack39.adb, s-pack40.adb, s-pack41.adb,
15827 s-pack42.adb, s-pack43.adb, s-pack44.adb, s-pack45.adb, s-pack46.adb,
15828 s-pack47.adb, s-pack48.adb, s-pack49.adb, s-pack50.adb, s-pack51.adb,
15829 s-pack52.adb, s-pack53.adb, s-pack54.adb, s-pack55.adb, s-pack56.adb,
15830 s-pack57.adb, s-pack58.adb, s-pack59.adb, s-pack60.adb, s-pack61.adb,
15831 s-pack62.adb, s-pack63.adb, s-pooloc.adb, s-poosiz.adb, s-scaval.adb,
15832 s-sequio.adb, s-shasto.adb, s-stalib.ads, s-stratt.adb, s-strcom.adb,
15833 s-taasde.adb, s-tasdeb.adb, s-tasuti.ads, s-tataat.ads, s-tpoben.ads,
15834 s-valenu.adb, s-widenu.adb, s-wwdenu.adb, s-addope.adb, a-stzmap.adb,
15835 a-ztcstr.adb, a-ztexio.adb, s-osinte-linux-hppa.ads: Replace
15836 Unchecked_* by Ada.Unchecked_*
15838 2007-06-06 Robert Dewar <dewar@adacore.com>
15840 * g-string.adb, s-proinf-irix-athread.adb, s-gloloc-mingw.adb,
15841 s-tfsetr-default.adb, gnatfind.adb, gnatxref.adb, gprep.adb,
15842 g-regexp.adb, g-regexp.ads, g-regpat.ads, g-tasloc.adb, g-tasloc.ads,
15843 output.adb, switch-m.ads, tree_in.ads, tree_io.ads, indepsw.ads,
15844 g-utf_32.adb, g-utf_32.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
15845 a-zchuni.ads: Replace GNAT.xxx by System.xxx when appropriate.
15847 * s-utf_32.adb, s-utf_32.ads, s-os_lib.adb, s-os_lib.ads, s-regexp.adb,
15848 s-regexp.ads, s-regpat.adb, s-regpat.ads, s-string.adb, s-string.ads,
15849 s-tasloc.adb, s-tasloc.ads: New files.
15851 2007-06-06 Bob Duff <duff@adacore.com>
15853 * g-expect-vms.adb:
15854 (Send_Signal, Close): Raise Invalid_Process if the process id is invalid.
15855 * g-expect.ads, g-expect.adb (Send): Avoid useless copy of the string.
15856 (Send_Signal, Close): Raise Invalid_Process if the process id is
15858 (Pattern_Matcher_Access): Is now a general access type to be able to
15859 use aliased string.
15861 2007-06-06 Thomas Quinot <quinot@adacore.com>
15862 Arnaud Charlet <charlet@adacore.com>
15864 * a-intnam-aix.ads: Adjust comment to account for SIGADAABORT change
15865 (SIGEMT is now used instead of SIGTERM on AIX).
15867 * s-osinte-aix.ads (Linker_Options): Use -pthread instead of -lpthreads.
15868 (Time_Slice_Supported): Set to True.
15869 Use SIGEMT instead of SIGTERM as SIGADAABORT.
15871 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
15873 * a-calend.ads, a-calend.adb, a-calend-vms.ads, a-calend-vms.adb ("-"
15874 (Time, Time)): Use To_Relative_Time rather than manual calculation to
15875 express the bounds of Duration as Time. Raise Time_Error when the
15876 result is greater or equal to the higher bound of Duration (on the
15878 ("+" (Time, Duration)): Reorder code. Remove the declaration of constant
15879 Ada_High_And_Leaps.
15880 ("-" (Time, Duration)): Reorder code. Remove the declaration of constant
15881 Ada_High_And_Leaps.
15882 ("-" (Time, Time)): Reorder code.
15883 (All_Leap_Seconds): Removed.
15884 (Arithmetic_Operations.Add): Remove sign related kludge.
15885 (Arithmetic_Operations.Difference): Control the leaps seconds processing
15886 with flag Leap_Support.
15887 (Arithmetic_Operations.Subtract): Remove sign related kludge.
15888 (Check_Within_Time_Bounds): New procedure.
15889 (Clock): Control the leap seconds processing with flag Leap_Support.
15890 (Cumulative_Leap_Seconds): Assert that the target supports leap seconds.
15891 (Formatting_Operations.Split): Control the leap seconds processing with
15893 (Formatting_Operations.Time_Of): Control the leaps seconds processing
15894 with flag Leap_Support. Adjust the year, month and day (if applicable)
15895 when the value of day seconds designates a new day.
15896 (Split): Use parameter associations for better readability. Integrate
15898 (Time_Of): Use parameter associations for better readability. Integrate
15901 * a-calfor.adb (Split): Use parameter associations for better
15902 readability. Integrate flag Is_Ada_05.
15903 (Time_Of): Remove flag Leap_Checks. Use parameter associations for
15904 better readability. Integrate flag Is_Ada_05.
15906 2007-06-06 Arnaud Charlet <charlet@adacore.com>
15908 * s-taprop-vms.adb, s-taprop-hpux-dce.adb, s-taprop-vxworks.adb,
15909 s-osprim-posix.adb, s-taprop-posix.adb, s-osprim-vxworks.adb,
15910 s-taprop-solaris.adb, s-osprim-solaris.adb, s-taprop-dummy.adb,
15911 s-osprim-unix.adb, s-osinte-freebsd.adb, s-osinte-freebsd.ads,
15912 s-osinte-lynxos.adb, s-osinte-lynxos.ads, s-taprop-tru64.adb,
15913 s-taprop-lynxos.adb, s-taprop-irix.adb, s-osinte-tru64.adb,
15914 s-osinte-tru64.ads, s-taprop-linux.adb, s-parame.ads,
15915 s-parame-vms-alpha.ads, s-parame-vms-ia64.ads, s-parame-hpux.ads,
15916 s-parame-vms-restrict.ads, s-parame-ae653.ads, s-parame-vxworks.ads,
15917 s-taprop-mingw.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos-3.adb,
15918 s-osprim-mingw.adb (Timed_Delay, Timed_Sleep): Register the base
15919 time when entering this routine to detect a backward clock setting
15920 (manual setting or DST adjustment), to avoid waiting for a longer delay
15922 (Time_Duration, To_Timeval, struct_timeval): Removed when not relevant.
15923 Remove handling of deferred priority change, and replace by setting the
15924 task priority directly, as required by AI-188.
15926 (Max_Task_Image_Length): New constant.
15927 Replace Warnings (Off) by Unreferenced pragma, cleaner.
15928 (Dynamic_Priority_Support): Removed, no longer needed.
15929 (Poll_Base_Priority_Change): Ditto.
15930 (Set_Ceiling): Add this procedure to change the ceiling priority
15931 associated to a lock. This is a dummy implementation because dynamic
15932 priority ceilings are not supported by the underlying system.
15934 * a-dynpri.adb (Set_Priority): Take into account case where Target is
15935 accepting a RV with its priority boosted.
15936 Remove handling of deferred priority change, and replace by setting the
15937 task priority directly, as required by AI-188.
15939 * s-taenca.adb (Try_To_Cancel_Entry_Call): Remove special case for
15941 Remove handling of deferred priority change, and replace by setting the
15942 task priority directly, as required by AI-188.
15943 (Wait_For_Completion, Wait_For_Call, Timed_Selective_Wait): Change state
15944 of Self_Id earlier.
15946 * s-tasini.ads, s-tasini.adb (Wakeup_Entry_Caller): Relax assertion.
15947 (Poll_Base_Priority_Change): Removed.
15948 Code clean up: use SSL.Current_Target_Exception.
15950 * s-tasren.adb (Task_Count): Call Yield to let a chance to other tasks
15951 to run as this is a potentially dispatching point.
15952 (Call_Synchronous): Use Local_Defer_Abort.
15953 (Callable): Relax assertion.
15954 (Selective_Wait): Relax assertion in case abort is not allowed.
15955 Remove handling of deferred priority change, and replace by setting the
15956 task priority directly, as required by AI-188.
15958 * s-tasuti.adb (Make_Passive): Adjust assertions.
15959 Remove handling of deferred priority change, and replace by setting the
15960 task priority directly, as required by AI-188.
15962 2007-06-06 Arnaud Charlet <charlet@adacore.com>
15964 * system-vxworks-sparcv9.ads, system-solaris-x86.ads,
15965 system-irix-o32.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
15966 system-lynxos-x86.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
15967 system-vxworks-mips.ads, system-vxworks-alpha.ads,
15968 system-vxworks-x86.ads, system-linux-ppc.ads, system-mingw.ads,
15969 system-vms-zcx.ads, system-darwin-ppc.ads, system-vxworks-ppc.ads,
15970 system-interix.ads, system-linux-hppa.ads, system-tru64.ads,
15971 system-hpux.ads, system-irix-n32.ads, system-solaris-sparc.ads,
15972 system-solaris-sparcv9.ads, system-vms.ads, system.ads,
15973 system-vms_64.ads, system-hpux-ia64.ads, system-linux-x86_64.ads,
15974 system-linux-ia64.ads: Document mapping between Ada and OS priorities.
15975 This patch changes the largest non-binary modulus from 2**31-1 to
15977 (Compiler_System_Version): Removed, no longer used.
15978 Clean up system files by removing flags only used on a single target.
15979 Also remove obsolete flags, only used during bootstrap from system.ads
15980 (Address): Add a pragma Preelaborable_Initialization.
15982 * system-aix.ads: Ditto.
15983 (GCC_ZCX_Support): Set to true.
15984 Update priority range on AIX and map Ada priorities to target
15985 priorities appropriately for different scheduling policies.
15987 * ttypes.ads: set largest non-binary modulus from 2**31-1 to 2**32-1
15989 2007-06-06 Vincent Celier <celier@adacore.com>
15991 * mlib-tgt-specific.adb, mlib-tgt-specific.ads,
15992 mlib-tgt-vms.adb, mlib-tgt-vms.ads: New files.
15994 * mlib-tgt.adb, mlib-tgt.ads, mlib-tgt-darwin.adb,
15995 mlib-tgt-vxworks.adb, mlib-tgt-mingw.adb, mlib-tgt-lynxos.adb,
15996 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb,
15997 mlib-tgt-vms-ia64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
15998 mlib-tgt-hpux.adb, mlib-tgt-tru64.adb: Make a common body for package
15999 MLib.Tgt, containing the default versions of the exported subprograms.
16000 For each platform, create a specific version of the body of new child
16001 package MLib.Tgt.Specific that contains only the body of subprograms
16002 that are different from the default.
16003 (Archive_Builder_Append_Options): New function.
16005 2007-06-06 Matthew Gingell <gingell@adacore.com>
16007 * s-osinte-aix.adb: Map Ada priorities to target priorities
16008 appropriately for different scheduling policies.
16010 2007-06-06 Arnaud Charlet <charlet@adacore.com>
16012 * s-osinte-linux.ads (sigset_t): Bump alignment to match more closely
16014 Remove references to Unchecked_Conversion, and use Ada.xxx instead.
16015 Replace Unchecked_Conversion by Ada.Unchecked_Conversion.
16017 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
16019 * s-osprim-vms.ads, s-osprim-vms.adb (Initialize): New procedure.
16020 Noop on VMS, added for interface commonality.
16022 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
16023 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16024 Olivier Hainque <hainque@adacore.com>
16026 * decl.c (gnat_to_gnu_entity) <object>: Manually mark the top of the
16027 renamed expression of a full renaming at toplevel.
16028 (gnat_to_gnu_entity, case object): If not defining, do not look inside
16029 the values the constant is initialized to if it is an N_Allocator.
16030 (gnat_to_gnu_entity) <E_Array_Subtype>: Manually mark the top of the
16031 TYPE_SIZE_UNIT of inner types after the stride is elaborated.
16032 (make_aligning_type): Accept an extra ROOM argument for storage to be
16033 made available before the aligned field, and an extra BASE_ALIGN
16034 argument for callers to pass the alignment guaranteed to be honored for
16035 the whole aligning object. Avoid call to finish_record_type, which only
16036 interferes with the sizes we want to set.
16037 (gnat_to_gnu_entity) <E_Variable>: Pass the required extra arguments to
16038 make_aligning_type for super-aligned objects on stack.
16039 (components_to_record): Pass the adjusted size of the type when creating
16040 fields in the qualified union for the variant part.
16041 (gnat_substitute_in_type): Copy TYPE_USER_ALIGN.
16042 (gnat_to_gnu_entity, case E_Signed_Integer_Subtype): Likewise for
16044 (maybe_pad_type): Set TYPE_USER_ALIGN.
16045 (make_aligning_type): Likewise.
16046 ALIGN argument is unsigned int.
16047 (gnat_to_gnu_entity, case E_Function): Back annotate return mechanism.
16048 (gnat_to_gnu_param): Likewise, for parameters.
16049 (gnat_to_gnu_entity) <object>: Always instantiate the renaming object
16050 if it is constant and stems from a function call.
16051 (gnat_to_gnu_entity) <E_Record_Type>: Set packed to -2 if the alignment
16052 of the record is specified. Adjust accordingly.
16053 (adjust_packed): New static function.
16054 (gnat_to_gnu_field): Use it to adjust the packedness setting.
16055 (components_to_record): Likewise.
16056 (gnat_to_gnu_entity) <object>: Do not test the renamed expression for
16057 side-effects if the object is deemed constant.
16058 (gnat_to_gnu_entity) <E_Array_Type>: Create a name for the fat pointer
16059 type instead of merely finalizing it. Tidy.
16060 <E_Access_Subprogram_Type>: Retrieve the type from the TYPE_DECL.
16061 <E_Access_Type>: Likewise.
16062 (defer_debug_incomplete_list): Rename to defer_finalize_list.
16063 (defer_debug_level): Delete.
16064 (gnat_to_gnu_entity) <debug_deferred>: Likewise
16065 <E_Array_Type>: Call rest_of_record_type_compilation on the fat pointer
16067 <E_Record_Type>: Do not explicitly defer finalizing the type.
16068 Adjust for write_record_type_debug_info renaming.
16069 <E_Subprogram_Type>: Likewise.
16070 Finalize deferred types right after deferred incomplete types are
16072 (rest_of_type_decl_compilation): New global function.
16073 (components_to_record): Rename defer_debug parameter to do_not_finalize.
16074 (components_to_record): Propagate the packedness to the fields of the
16075 qualified union type if there is a variant part.
16076 (gnat_to_gnu_entity) <E_Array_Type>: Use new function
16077 instead of inline code to adjust the XUT field offsets.
16078 (gnat_to_gnu_entity): Adjust for new prototype of finish_record_type.
16079 <E_Record_Subtype>: Do not let finish_record_type compute the sizes
16080 and write the debug info if the type derives from a discriminated one.
16081 (gnat_to_gnu_entity) <E_Array_Type>: Adjust call to create_index_type.
16082 <E_Array_Subtype>: Likewise.
16083 <E_String_Literal_Subtype>: Likewise.
16084 (gnat_to_gnu_entity): Set TYPE_USER_ALIGN on types only if they have
16085 an alignment clause.
16086 (maybe_pad_type): Update ORIG_SIZE to the minimum required to meet ALIGN
16087 before giving warning.
16088 (prepend_one_attribute_to): New function, helper to prepend an attribute
16089 to an attribute list.
16090 (gnat_to_gnu_entity) <E_Procedure>: Use it.
16091 (prepend_attributes): Likewise.
16092 (gnat_to_gnu_entity) <E_Variable>: Use constants of the proper type.
16093 <E_Array_Type>: Declare the padding type for the element type, if any.
16094 <E_Array_Subtype>: Likewise.
16095 (defer_limited_with): New variable.
16096 (Gigi_Equivalent_Type): New function.
16097 (gnat_to_gnu_entity): Use it at start and use result throughout.
16098 (gnat_to_gnu_entity, case E_Access_Type): Rework to use
16099 Gigi_Equivalent_Type, support Limited_With, allow two levels of
16100 indirection, precompute if unconstrained array to simplify logic, and
16101 use defer_limited_with to defer elaboration of some types from limited
16103 (finalize_from_with_types): New function.
16105 2007-06-06 Gary Dismukes <dismukes@adacore.com>
16106 Eric Botcazou <ebotcazou@adacore.com>
16107 Tristan Gingold <gingold@adacore.com>
16108 Olivier Hainque <hainque@adacore.com>
16110 * trans.c (Identifier_to_gnu): Change test for deferred constant by
16111 adding guard that the entity is an E_Constant before testing presence
16112 of Full_view (and remove unnecessary test that entity is not a type).
16113 For a CONST_DECL used by reference, manually retrieve
16114 the DECL_INITIAL. Do not invoke fold in the other DECL_P cases either.
16115 (struct language_function): Move from utils.c to here.
16116 (struct parm_attr): New structure.
16117 (parm_attr, parm_attr vector, parm_attr GC vector): New types.
16118 (f_parm_attr_cache): New macro.
16119 (Attribute_to_gnu) <Attr_Length>: When not optimizing, cache the
16120 expressions for the 'First, 'Last and 'Length attributes of the
16121 unconstrained array IN parameters.
16122 (Subprogram_Body_to_gnu): Use gnu_subprog_decl throughout.
16123 Allocate the information structure for the function earlier, as well
16124 as the language-specific part.
16125 If the parameter attributes cache has been populated, evaluate the
16126 cached expressions on entry.
16127 (takes_address): Add OPERAND_TYPE parameter. Handle N_Function_Call,
16128 N_Procedure_Call_Statement and N_Indexed_Component.
16129 (Pragma_to_gnu): Translate inspection_point to an asm statement
16130 containaing a comment and a reference to the object (either its address
16131 for BLKmode or its value).
16132 (Identifier_to_gnu): Use TREE_CONSTANT instead of CONST_DECL to decide
16133 to go to DECL_INITIAL. Together with the size constraint relaxation
16134 in create_var_decl, enlarges the set of situations in which an
16135 identifier may be used as an initializer without implying elaboration
16137 (Subprogram_Body_to_gnu): Do not fiddle with the debug interface but set
16138 DECL_IGNORED_P on the function if Needs_Debug_Info is not set on the
16140 (maybe_stabilize_reference): Remove lvalues_only parameter.
16141 (gnat_stabilize_reference): Adjust for above change.
16142 (gnat_to_gnu): Do not set location information on the result
16143 if it is a reference.
16144 (add_cleanup): Add gnat_node parameter and set the location of the
16146 (Handled_Sequence_Of_Statements_to_gnu): Adjust calls to add_cleanup.
16147 (Exception_Handler_to_gnu_zcx): Likewise.
16148 (gigi): Remove the cgraph node if the elaboration procedure is empty.
16149 (Subprogram_Body_to_gnu): If a stub is attached to the subprogram, emit
16150 the former right after the latter.
16151 (start_stmt_group): Make global.
16152 (end_stmt_group): Likewise.
16153 (gnu_constraint_error_label_stack, gnu_storage_error_label_stack): New
16155 (gnu_program_error_label_stack): Likewise.
16156 (gigi): Initialize them.
16157 (call_to_gnu, gnat_to_gnu, emit_check): Add new arg to build_call_raise.
16158 (gnat_to_gnu, N_{Push,Pop}_{Constraint,Storage,Program}_Error_Label):
16160 (push_exception_label_stack): New function.
16161 (takes_address): New function.
16163 * utils.c (struct language_function): Move to trans.c from here.
16164 (unchecked_convert): Do not wrap up integer constants in
16165 VIEW_CONVERT_EXPRs.
16166 (create_var_decl_1): Decouple TREE_CONSTANT from CONST_DECL. Prevent
16167 the latter for aggregate types, unexpected by later passes, and relax an
16168 arbitrary size constraint on the former.
16169 (create_field_decl): Use tree_int_cst_equal instead of operand_equal_p
16170 to compare the sizes.
16171 (convert_vms_descriptor): When converting to a fat pointer type, be
16172 prepared for a S descriptor at runtime in spite of a SB specification.
16173 (shift_unc_components_for_thin_pointers): New function.
16174 (write_record_type_debug_info): For variable-sized fields, cap the
16175 alignment of the pointer to the computed alignment.
16176 (finish_record_type): Change HAS_REP parameter into REP_LEVEL.
16177 If REP_LEVEL is 2, do not compute the sizes.
16178 (build_vms_descriptor): Adjust for new prototype of finish_record_type.
16179 (build_unc_object_type): Likewise.
16180 (declare_debug_type): New function.
16182 * ada-tree.def: USE_STMT: removed (not emitted anymore).
16184 * misc.c (gnat_expand_expr): Call to gnat_expand_stmt removed because
16185 no statement is expandable anymore.
16186 (gnat_init_gcc_eh): Do not initialize the DWARF-2 CFI machinery twice.
16187 (gnat_handle_option): Only allow flag_eliminate_debug_types to be set
16188 when the user requested it explicitely.
16189 (gnat_post_options): By default, set flag_eliminate_unused_debug_types
16191 (get_alias_set): Return alias set 0 for a type if
16192 TYPE_UNIVERSAL_ALIASING_P is set on its main variant.
16194 * ada-tree.h: (TYPE_UNIVERSAL_ALIASING_P): New macro.
16195 (DECL_FUNCTION_STUB): New accessor macro.
16196 (SET_DECL_FUNCTION_STUB): New setter macro.
16198 * lang.opt (feliminate-unused-debug-types): Intercept this flag for Ada.
16200 * fe.h (Get_Local_Raise_Call_Entity, Get_RT_Exception_Entity): New
16203 2007-06-06 Jose Ruiz <ruiz@adacore.com>
16205 * s-intman-vxworks.ads, s-intman-vxworks.adb (Abort_Task_Signal):
16206 Rename to Abort_Task_Interrupt to be able to keep the same interface
16207 as the rest of the targets.
16209 * s-osinte-vxworks.ads s-osinte-vxworks.adb
16210 (To_VxWorks_Priority): Remove explicit "in" mode indicator
16212 * s-osinte-vxworks6.ads, s-vxwork-arm.ads, system-vxworks-arm.ads:
16215 2007-06-06 Robert Dewar <dewar@adacore.com>
16217 * a-chahan.ads: Remove obsolescent pragmas
16219 * a-chlat1.ads: Minor reformatting
16221 2007-06-06 Robert Dewar <dewar@adacore.com>
16223 * comperr.adb (Compiler_Abort): New Finalize/Output_Messages interface
16226 * errout.adb: New Finalize/Compilation_Errors/Output_Messages
16229 * errout.ads (Finalize): Changed interface
16230 (Output_Messages): New procedure
16231 (Compilation_Errors): New Interface
16233 * prepcomp.ads, prepcomp.adb (Parse_Preprocessing_Data_File): New
16234 Finalize/Output_Messages interface for Errout
16235 (Prepare_To_Preprocess): New Finalize/Output_Messages interface for
16238 2007-06-06 Thomas Quinot <quinot@adacore.com>
16239 Olivier Hainque <hainque@adacore.com>
16240 Robert Dewar <dewar@adacore.com>
16242 * a-except.ads, a-except.adb: (Rmsg_28): Fix description for E.4(18)
16244 (Raise_Current_Excep): Call Debug_Raise_Exception just before
16245 propagation starts, to let debuggers know about the event in a reliable
16247 (Local_Raise): Moved to System.Exceptions
16248 More convenient to have this as a separate unit
16250 * s-except.adb, s-except.ads: New files.
16252 * a-exextr.adb (Unhandled_Exception): Delete - replaced by
16253 Debug_Unhandled_Exception in System.Exceptions where it belongs
16254 together with a couple of other debug helpers.
16255 (Notify_Unhandled_Exception): Use Debug_Unhandled_Exception instead of
16256 the former Unhandled_Exception.
16258 * exp_ch11.ads, exp_ch11.adb: (Possible_Local_Raise): New procedure
16259 (Warn_No_Exception_Propagation): New procedure
16260 (Warn_If_No_Propagation): Rewritten for new warning generation
16261 (Expand_Exception_Handlers): New warning generation
16262 (Expand_N_Raise_xxx_Error): Rewritten for new warnings
16263 (Add_Exception_Label): Use Special_Exception_Package_Used for test
16264 instead of Most_Recent_Exception_Used (accomodates Exception_Traces)
16265 (Expand_Local_Exception_Handlers): Unconditionally add extra block wrap
16266 even if restriction is set (makes life easier in Check_Returns)
16267 (Expand_Local_Exception_Handlers): Follow renamed entity chain when
16268 checking exception identities.
16269 (Expand_Local_Exception_Handlers): Do not optimize when all others case
16270 (Expand_Local_Exception_Handlers): Set Exception_Junk flag on generated
16271 block for handler (used by Check_Returns)
16272 (Expand_Local_Exception_Handlers): Local_Raise now takes an address
16273 (Expand_N_Handled_Sequence_Of_Statements): Properly handle -gnatd.x to
16274 remove all exception handlers when optimizing local raise statements.
16275 (Find_Local_Handler): Use Get_Renamed_Entity
16276 (Expand_N_Handled_Sequence_Of_Statements): If the handled sequence is
16277 marked analyzed after expanding exception handlers, do not generate
16278 redundant cleanup actions, because they have been constructed already.
16280 2007-06-06 Thomas Quinot <quinot@adacore.com>
16282 * a-finali.ads (Ada.Finalization): Add missing pragma Remote_Types. The
16283 presence of this categorization pragma is mandated by the language.
16284 (Limited_Controlled): Add missing pragma Preelaborable_Initialization
16287 2007-06-06 Vincent Celier <celier@adacore.com>
16288 Robert Dewar <dewar@adacore.com>
16290 * bcheck.adb, binde.adb, binderr.adb, binderr.ads, butil.adb,
16291 butil.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
16292 err_vars.ads, exp_tss.adb, exp_tss.ads, fmap.adb, fmap.ads,
16293 fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
16294 lib-sort.adb, lib-util.adb, lib-util.ads, lib-xref.adb, makeutl.ads,
16295 makeutl.adb, nmake.adt, osint.adb, osint.ads, osint-b.adb,
16296 par-load.adb, prj-attr.adb, prj-dect.adb, prj-err.adb, prj-makr.adb,
16297 prj-part.adb, prj-pp.adb, prj-proc.adb, prj-tree.adb, prj-tree.ads,
16298 prj-util.adb, prj-util.ads, scans.adb, scans.ads, sem_ch2.adb,
16299 sinput-c.adb, styleg-c.adb, tempdir.adb, tempdir.ads, uname.adb,
16300 uname.ads, atree.h, atree.ads, atree.adb, ali-util.ads, ali-util.adb,
16302 Move Name_Id, File_Name_Type and Unit_Name_Type from package Types to
16303 package Namet. Make File_Name_Type and Unit_Name_Type types derived from
16304 Mame_Id. Add new type Path_Name_Type, also derived from Name_Id.
16305 Use variables of types File_Name_Type and Unit_Name_Type in error
16307 (Get_Name): Add parameter Ignore_Special, and set it reading file name
16308 (New_Copy): When debugging the compiler, call New_Node_Debugging_Output
16310 Define flags Flag217-Flag230 with associated subprograms
16311 (Flag_Word5): New record type.
16312 (Flag_Word5_Ptr): New access type.
16313 (To_Flag_Word5): New unchecked conversion.
16314 (To_Flag_Word5_Ptr): Likewise.
16315 (Flag216): New function.
16316 (Set_Flag216): New procedure.
16318 2007-06-06 Arnaud Charlet <charlet@adacore.com>
16320 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb: (Insert): Use 'Length
16323 * a-stwifi.ads, a-stzfix.ads: Minor reformatting
16325 2007-06-06 Javier Miranda <miranda@adacore.com>
16327 * a-tags.ads, a-tags.adb (Tag_Size): This constant is now internal to
16329 (Object_Specific_Data_Array): This is now internal to the package.
16330 (Object_Specific_Data): This is now internal to the package.
16331 (Select_Specific_Data_Element): This is now internal to the package.
16332 (Select_Specific_Data_Array): This is now internal to the package.
16333 (Select_Specific_Data): This is now internal to the package.
16334 (Offset_To_Top_Function_Ptr): This is now public.
16335 (To_Offset_To_Top_Function_Ptr): Removed.
16336 (Storage_Offset_Ptr,To_Storage_Offset_Ptr): These declarations are now
16337 local to subprogram Offset_To_Top.
16338 (Predefined_DT): Removed.
16339 (Typeinfo_Ptr): Removed.
16340 (OSD): This function is now internal to this package.
16341 (SSD): This function is now internal to this package.
16342 (DT): New function that displaces the pointer to the table of primitives
16343 to get access to the enclosing wrapper record.
16344 (IW_Membership): Code cleanup.
16345 (Offset_To_Top): Code cleanup.
16346 (Predefined_DT): Removed.
16347 (Register_Interface_Tag): Removed.
16348 (Set_Interface_Table): Removed.
16349 (Set_Offset_Index): Removed.
16350 (Set_Offset_To_Top): Code cleanup.
16351 (Set_OSD): Removed.
16352 (Set_Signature): Removed.
16353 (Set_SSD): Removed.
16354 (Set_Tagged_Kind): Removed.
16355 (Typeinfo_Ptr): Removed.
16357 (Displace): Add missing check on null actual.
16359 * exp_disp.ads, exp_disp.adb
16360 (Select_Expansion_Utilities): Removed.
16361 (Build_Common_Dispatching_Select_Statements): Moved to exp_atags.
16362 (Expand_Dispatching_Call): Update calls to Get_Prim_Op_Address because
16363 the interface requires a new parameter.
16364 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
16365 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Replace
16366 calls to subprograms Build_T, Build_S, etc. by the corresponding code.
16367 Done to remove package Select_Expansion_Utilities.
16368 (Make_DT): New implementation for statically allocated dispatch tables.
16369 (Make_Secondary_DT): Moved to the scope of Make_DT.
16370 (Register_Primitive): Code cleanup plus incoporate the use of the new
16371 function DT_Address_Attribute.
16372 (Expand_Interface_Thunk): The profile of this subprogram has been
16373 changed to return the Thunk_Id and the corresponding code.
16374 (Fill_DT_Entry): Removed. Its functionality is now provided by
16375 subprogram Register_Primitive.
16376 (Fill_Secondary_DT_Entry): Removed. Its functionality is now provided by
16377 subprogram Register_Primitive.
16378 (Register_Primitive): New subprogram that incorporates the previous
16379 functionalities of Fill_DT_Entry and Fill_Secondary_DT_Entry.
16380 (Build_Common_Dispatching_Select_Statements): Remove formal Typ. This
16381 was only required to call Make_DT_Access_Action, which is now removed.
16382 (Ada_Actions): Removed
16383 (Action_Is_Proc): Removed
16384 (Action_Nb_Arg): Removed
16385 Replace all the calls to Make_DT_Access_Action by direct calls to
16386 Make_Procedure_Call_Statement or Make_Function_Call.
16387 (Set_DTC_Entity_Value): New subprogram.
16388 (Set_All_DT_Position): Add call to new subprogram Set_DTC_Entity_Value.
16389 (Expand_Interface_Thunk): Add missing support for primitives that are
16390 functions with a controlling result (case in which there is no need
16391 to generate the thunk).
16393 * exp_atag.ads, exp_atag.adb
16394 (Build_DT): New subprogram that displaces the pointer to reference the
16395 base of the wrapper record.
16396 (Build_Typeinfo_Offset): Removed.
16397 (RTE_Tag_Node): Removed.
16398 (Build_Common_Dispatching_Select_Statements): Moved here from exp_disp
16399 (Build_Get_RC_Offset): Removed.
16400 (Build_Inherit_Predefined_Prims): Removed.
16401 (Build_Inherit_TSD: Removed.
16402 (Build_New_TSD): Removed.
16403 (Build_Set_External_Tag): Removed.
16404 (Build_Set_Predefined_Prim_Op_Address): Add documentation.
16405 (Build_Set_Prim_Op_Address): Add documentation.
16406 (Build_Set_TSD): Removed.
16408 * rtsfind.ads, rtsfind.adb
16409 (Load_Fail): If load fails and we are not in configurable run-time
16410 mode, then raise Unrecoverable_Error.
16411 (Text_IO_Kludge): Generate an error message if a run-time library is
16412 not available in a given run-time (ie. zfp run-time).
16413 (RTE_Record_Component): Add code to check that the component we search
16414 for is not found in two records in the given run-time package.
16415 (RE_DT_Offset_To_Top_Size, RE_DT_Predef_Prims_Size): Removed
16416 (RE_DT_Predef_Prims_Offset): New entity
16417 (RE_Static_Offset_To_Top): New entity
16418 (RE_HT_Link): New entity.
16419 (System_Address_Image): Addition of this run-time package.
16420 (RE_Address_Image): New entity.
16421 (RE_Abstract_Interface): Removed.
16422 (RE_Default_Prim_Op_Count): Removed.
16423 (RE_DT_Entry_Size): Removed.
16424 (RE_DT_Min_Prologue_Size): Removed.
16425 (RE_DT_Prologue_Size): Removed.
16426 (RE_Ifaces_Table_Ptr): Removed.
16427 (RE_Interface_Data_Ptr): Removed.
16428 (RE_Type_Specific_Data): Removed.
16429 (RE_Primary_DT): Removed.
16430 (RE_Register_Interface_Tag): Removed.
16431 (RE_Set_Offset_Index): Removed.
16432 (RE_Set_OSD): Removed.
16433 (RE_Set_SSD): Removed.
16434 (RE_Set_Signature): Removed.
16435 (RE_Set_Tagged_Kind): Removed.
16436 (RE_Address_Array): New entity.
16437 (RE_DT): New entity.
16438 (RE_Iface_Tag): New entity.
16439 (RE_Interfaces_Table): New entity.
16440 (RE_No_Dispatch_Table): New entity.
16441 (RE_NDT_Prims_Ptr): New entity.
16442 (RE_NDT_TSD): New entity.
16443 (RE_Num_Prims): New entity.
16444 (RE_Offset_To_Top_Function_Ptr): New entity.
16445 (RE_OSD_Table): New entity.
16446 (RE_OSD_Num_Prims): New entity.
16447 (RE_Predef_Prims): New entity
16448 (RE_Predef_Prims_Table_Ptr): New entity.
16449 (RE_Primary_DT): New entity.
16450 (RE_Signature): New entity.
16451 (RE_SSD): New entity.
16452 (RE_TSD): New entity.
16453 (RE_Type_Specific_Data): New entity.
16454 (RE_Tag_Kind): New entity.
16456 2007-06-06 Thomas Quinot <quinot@adacore.com>
16458 * a-textio.ads, a-textio.adb (Write): Add explicit size clause for the
16459 C imported variable.
16460 (Skip_Line): Do not reset Before_LM_PM immediately when Before_LM is set
16463 2007-06-06 Robert Dewar <dewar@adacore.com>
16465 * a-tienio.adb (Get): Adjust buffer size to accomodate one extra
16468 2007-06-06 Vincent Celier <celier@adacore.com>
16470 * a-tifiio.adb (Put, internal): For negative numbers, check that there
16471 is room for at least one digit and the minus sign.
16472 (Put.Put_Character): Never put a character outside of the range of
16475 2007-06-06 Olivier Hainque <hainque@adacore.com>
16476 Eric Botcazou <ebotcazou@adacore.com>
16478 * utils2.c (build_allocator): Provide the extra arguments to
16479 make_aligning_type for super-aligned objects allocated from the default
16480 pool. Leave enough room for a pointer before the aligning field, and
16481 store the system's allocator return value there.
16482 (build_call_alloc_dealloc): When releasing a super-aligned object,
16483 retrieve the system's allocator return value from where build_allocator
16484 has stored it, just ahead of the adjusted address we are passed.
16485 (build_call_raise): Handle properly the generation of line numbers when
16486 the node is marked No_Location.
16487 (compare_elmt_bitpos): Use tree_int_cst_compare. Stabilize the sort
16488 by using DECL_UID on ties.
16489 (build_binary_op) <EQ_EXPR>: Accept fat pointer types with the same
16491 (build_call_raise): Handle converting exception into goto; support new
16493 (build_component_ref): Add new arg to build_call_raise.
16495 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
16497 * a-ztflau.adb, a-wtflau.adb, a-tiflau.adb (Load_Real): Do not parse
16498 "." in the case of nnn.xxx when nnn terminates with an underscore.
16499 Parse the remaining "#" or ":" in the case of nnn#.xxx#
16501 2007-06-06 Robert Dewar <dewar@adacore.com>
16503 * a-tigeau.ads, a-tigeau.adb: (Store_Char): Change Buf to IN OUT
16505 2007-06-06 Arnaud Charlet <charlet@adacore.com>
16506 Vincent Celier <celier@adacore.com>
16507 Robert Dewar <dewar@adacore.com>
16509 * bindgen.adb (Gen_Output_File_Ada): Generate pragma No_Run_Time when
16511 (Gen_Output_File_Ada, Gen_Output_File_C): Never use __attribute
16512 ((destructor)) for adafinal, even when switch -a is used.
16513 Do not issue pragma Linker_Destructor for adafinal when switch -a is
16515 (Gen_Object_Files_Options): Add formatting of Linker Options, when
16516 Output_Linker_Option_List is set. Suppress this formatting when
16517 Zero_Formatting is set.
16518 Add case for CLI_Target.
16519 (System_Restrictions_Used): New flag, used to avoid generating with of
16520 System_Restrictions and initialization of the data unless there is
16521 some use of System.Restrictions in the partition.
16522 (Check_System_Restrictions_Used): New procedure
16524 * s-stalib.adb: Remove with of System.Restrictions. No longer needed
16525 since we only with this unit in the binder file if it is used elsewhere
16528 2007-06-06 Vincent Celier <celier@adacore.com>
16530 * bindusg.adb: Add line for @<response file>
16531 Add lines for new switches -R and -Z
16533 * gnatbind.adb (Gnatbind): Do not include sources from the GNAT
16534 hierarchy in the list of files of the closure when -R is used
16535 (Gnatbind): Accept arguments starting with '@' to indicate response
16536 files and take the arguments from the response files.
16537 If List_Closure is set, display the referenced files
16539 2007-06-06 Javier Miranda <miranda@adacore.com>
16540 Robert Dewar <dewar@adacore.com>
16541 Ed Schonberg <schonberg@adacore.com>
16543 * checks.ads, checks.adb (Apply_Address_Clause_Check): Handle case in
16544 which the address-clause is applied to in-mode actuals (allowed by
16546 (Apply_Discriminant_Check): Do not generate a check if the type is
16547 constrained by a current instance.
16548 (Activate_Division_Check): New procedure
16549 (Activate_Overflow_Check): New procedure
16550 (Activate_Range_Check): New procedure
16551 Call these new Activate procedures instead of setting flags directly
16552 (Apply_Array_Size_Check): Removed, no longer needed.
16553 Code clean up: remove obsolete code related to GCC 2.
16554 (Get_E_Length): Protect against bomb in case scope is standard
16555 (Selected_Range_Checks): If the node to be checked is a conversion to
16556 an unconstrained array type, and the expression is a slice, use the
16557 bounds of the slice to construct the required constraint checks.
16558 Improve NOT NULL error messages
16559 (Apply_Constraint_Check): If the context is a null-excluding access
16560 type, diagnose properly the literal null.
16562 2007-06-06 Pascal Obry <obry@adacore.com>
16564 * clean.adb (Clean_Archive): Use untouched casing for the archive name
16565 and the corresponding .deps file.
16566 (Clean_Interface_Copy_Directory): Use untouched casing for the library
16567 src directory. Minor code-clean-up. Use untouched casing for files
16568 read into the library src dir.
16569 (Clean_Library_Directory): Idem.
16570 (Parse_Cmd_Line): Accept new switch -aP
16572 2007-06-06 Javier Miranda <miranda@adacore.com>
16573 Ed Schonberg <schonberg@adacore.com>
16574 Robert Dewar <dewar@adacore.com>
16575 Eric Botcazou <ebotcazou@adacore.com>
16576 Arnaud Charlet <charlet@adacore.com>
16578 * einfo.ads, einfo.adb (Available_View): New synthesized attribute
16579 applicable to types that have the With_Type flag set. Returns the
16580 non-limited view of the type, if available, otherwise the type itself.
16581 For class-wide types, there is no direct link in the tree, so we have
16582 to retrieve the class-wide type of the non-limited view of the Etype.
16583 New attributes Static_Initialization and Static_Elaboration_Desired.
16584 Remove the pragma Thread_Body, and the associated flag
16585 Is_Thread_Body in entities, and all related code.
16586 (Suppress_Value_Tracking_On_Call): New flag
16587 E_Exception has Esize and Alignment fields
16588 (Universal_Aliasing): New function.
16589 (Set_Universal_Aliasing): New procedure.
16590 (Write_Entity_Flags): Deal with Universal_Aliasing flag.
16591 (Check_Nested_Access): New procedure.
16592 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
16593 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
16594 (Related_Interface): New attribute. Present in dispatch table pointer
16595 components of records. Set to point to the entity of the corresponding
16597 (Is_By_Reference_Type): Recurse on the full view of an incomplete type.
16598 (Original_Access_Type): Remove, not needed.
16599 (Root_Type): Handle properly subtypes of class-wide-types.
16602 * sem_ch4.adb (Analyze_Explicit_Dereference): Add support for
16603 class-wide types visible through limited-with clauses.
16604 (Try_Primitive_Operation): When examining all primitive operations of a
16605 tagged type, do not consider subprograms labeled as hidden unless they
16606 belong to a private generic type with a tagged parent.
16607 (Try_Object_Operation): Extensive rewriting, to handle properly various
16608 overloading cases, when several ancestors may have class-wide operations
16609 that are possible candidates, and when the overloaded functions return
16610 array types and have defaulted parameters so that the call may be
16611 interpreted as an indexing.
16612 (Analyze_Allocator): Remove Mark_Allocator and its invocation.
16613 (Process_Function_Call): use Next, rather than Next_Actual, to analyze
16614 successive actuals before analyzing the call itself.
16615 (Try_Primitive_Operation): A primitive operation is compatible with the
16616 prefix if the prefix has a synchronized type and the type of the formal
16617 is its corresponding record, as can be the case when the primitive
16618 operation is declared outside of the body of the type.
16619 (Traverse_Homonyms): New subprocedure of Try_Class_Wide_Operation, to
16620 perform homonym traversal, looking for class-wide operation matches
16621 (formerly done in statements of Try_Class_Wide_Operation). Matches on
16622 access parameters are now restricted to anonymous access types.
16623 (Mark_Allocator): An allocator with a discriminant association parent is
16625 (Try_One_Prefix_Interpretation): If the type of the object is
16626 incomplete, as can be happen when it is a limited view obtained through
16627 a limited_with_clause, the selected component is not part of a prefixed
16629 (Complete_Object_Operation): Diagnose properly an object that is not
16630 aliased when the corresponding controlling formal is an access
16632 (Try_Primitive_Operation, Try_Class_Wide_Operation): Diagnose properly
16633 ambiguous calls in prefixed notation, where two primitives differ only
16634 in that the controlling argument of one is an access parameter.
16636 * sem_ch6.adb (Has_Single_Return): Add guard in code that determines
16637 whether a function that returns an unconstrained type can be inlined.
16638 (Process_Formals): Diagnose properly the illegal use of an incomplete
16639 type in the profile of an access_to_subprogram declaration.
16640 (Check_Synchronized_Overriding): Nothing check for concurrent types, the
16641 operations are attached to the corresponding record.
16642 (Analyze_Subprogram_Specification): Add variables Formal and Formal_Typ.
16643 When processing a primitive of a concurrent type which implements an
16644 interface change the type of all controlling formals to that of the
16645 corresponding record type.
16646 (Check_Synchronized_Overriding): Relax the conditional logic when trying
16647 to determine the tagged type to which a primitive belongs.
16648 (Check_Conventions): Capture condition to ignore a primitive operation
16649 (which is shared between the loop in Check_Conventions and the one in
16650 Check_Convention) in a new local function Skip_Check.
16651 (Check_Convention): Rename Prim_Op to Second_Prim_Op to avoid possible
16652 confusion with Check_Conventions' own Prim_Op local variable.
16653 (Create_Extra_Formals): Test for a tagged result type rather than a
16654 controlling result when determining whether to add a BIP_Alloc_Form
16655 formal and a BIP_Final_List formal to the function.
16656 (Check_Conformance); For parameters that are anonymous access types,
16657 subtype conformance requires that the not null and the constant
16658 indicators must match
16659 (Check_Synchronized_Overriding): New parameter Formal_Typ. Add machinery
16660 to retrieve the appropriate type when processing a concurrent type
16661 declared within a generic. Minor comment reformatting. Change invocation
16662 of Overrides_Synchronized_Primitive to Find_Overridden_Synchronized_Pri-
16664 (Analyze_Subprogram_Body): If the return type of a function is an
16665 anonymous access to the limited view of a class-wide type, and the
16666 non-limited view of the type is available, update the type of the
16667 function so that code can be generated.
16668 (Process_Formals): In case of access-subtype itype whose designated
16669 type is also an itype (situation that happens now with access to
16670 subprograms) we mark the access-type itype with the Has_Delayed_Freeze
16671 attribute to avoid backend problems.
16672 (Check_Return_Subtype_Indication): Replace R_Type with R_Stm_Type in
16673 init of R_Stm_Type_Is_Anon_Access. Also check that base types of the
16674 anonymous types' designated types are same before testing
16675 Subtypes_Statically_Match.
16676 (Create_Extra_Formals): Test for a named access parameter that is a
16677 controlling formal as an additional condition for adding an
16678 accessibility level formal. This can occur in the subp type created for
16679 dispatching calls in Expand_Dispatching_Call, and allows calling
16680 Create_Extra_Formals from that procedure rather than special-casing the
16681 extra formals there.
16682 (Create_Extra_Formals): Add BIP_Alloc_Form and BIP_Final_List formals
16683 when the function has a controlling result.
16684 (Check_Returns): Add much more knowledge of the optimization of local
16685 raise statements to gotos, to retain proper warnings in this case.
16686 (Check_Statement_Sequence): Ignore N_Push_xxx_Label and N_Pop_xxx_Label
16687 nodes when looking for last statement.
16689 * sem_type.ads, sem_type.adb (Specific_Type): Add support for
16690 class-wide types visible through limited with clauses.
16691 (Add_One_Interp): If the operands are anonymous access types, the
16692 predefined operator on universal_access is immediately visibles
16693 (Find_Unique_Type): Handle anonymous access to subprogram types just as
16694 other anonymous access types.
16695 (Disambiguate): Take into account CIL convention.
16696 (Interface_Present_In_Ancestor): Add support for class-wide interfaces.
16698 2007-06-06 Robert Dewar <dewar@adacore.com>
16700 * sinput.ads, sinput.adb, uintp.ads, urealp.adb, stringt.adb,
16701 sem_elim.adb, prj-strt.adb, repinfo.ads, repinfo.adb, namet.ads,
16702 elists.ads, elists.adb, lib.ads, lib.adb (Unlock): New procedure.
16703 Fix lower bound of tables.
16706 * nlists.adb: Ditto.
16707 (Prev_Node, Next_Node): Change index type to Int so that it properly
16708 covers the range First_Node_Id - 1 up.
16710 2007-06-06 Javier Miranda <miranda@adacore.com>
16711 Ed Schonberg <schonberg@adacore.com>
16712 Bob Duff <duff@adacore.com>
16713 Hristian Kirtchev <kirtchev@adacore.com>
16715 * exp_aggr.ads, exp_aggr.adb:
16716 (Build_Record_Aggr_Code): Add missing initialization of secondary tags
16717 in extension aggregates.
16718 (Flatten): Other conditions being met, an aggregate is static if the
16719 low bound given by component associations is different from the low
16720 bound of the base index type.
16721 (Packed_Array_Aggregate_Handled): If the component type is itself a
16722 packed array or record, the front-end must expand into assignments.
16723 (Gen_Ctrl_Actions_For_Aggr): In call to Init_Controller, pass False to
16724 Init_Pr, instead of Ancestor_Is_Expression.
16725 (Gen_Ctrl_Actions_For_Aggr): When processing an aggregate of a
16726 coextension chain root, either generate a list controller or use the
16727 already existing one.
16728 (Static_Array_Aggregate): New procedure to construct a positional
16729 aggregate that can be handled by the backend, when all bounds and
16730 components are compile-time known constants.
16731 (Expand_Record_Aggregate): Force conversion of aggregates of tagged
16732 types covering interface types into assignments.
16733 (Replace_Type): move to Build_Record_Aggr_Code.
16734 (Expand_Record_Aggr_Code): if the target of the aggregate is an
16735 interface type, convert to the definite type of the aggregate itself,
16736 so that needed components are visible.
16737 (Convert_Aggr_In_Object_Decl): If the aggregate has controlled
16738 components and the context is an extended return statement do not
16739 create a transient block for it, to prevent premature finalization
16740 before the return is executed.
16741 (Gen_Assign): Do not generate a call to deep adjust routine if the
16742 component type is itself an array of controlled (sub)-components
16743 initialized with an inner aggregate.
16744 (Component_Check): New name for Static_Check. This name is now more
16745 appropriate, and documentation is added which was missing.
16746 (Component_Check): Add test for bit aligned component value
16747 (Component_Not_OK_For_Backend): Renames Has_Delayed_Nested_Aggregate_Or_
16748 Tagged_Comps, name is more appropriate given added function below.
16749 (Component_Not_OK_For_Backend): Check for bit aligned component ref.
16751 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
16752 Javier Miranda <miranda@adacore.com>
16753 Robert Dewar <dewar@adacore.com>
16755 * exp_attr.adb (Expand_N_Attribute_Reference): Case Callable and
16756 Terminated: Add unchecked type conversion from System.Address to
16757 System.Tasking.Task_Id when calling the predefined primitive
16759 Disable new Ada 05 accessibility check for JVM.NET targets, which
16760 cannot be implemented in a practical way.
16761 (Expand_N_Attribute_Reference: case Attribute_Tag): The use of 'Tag in
16762 the sources always references the tag of the actual object. Therefore,
16763 if 'Tag is applied in the sources to class-wide interface objects we
16764 generate code that displaces "this" to reference the base of the object.
16765 (Expand_N_Attribute_Reference, case Size): Return specified size if
16766 known to front end.
16767 (Expand_N_Attribute_Reference): The expansion of the 'Address attribute
16768 has code that displaces the pointer of the object to manage interface
16769 types. However this code must not be executed when the prefix is a
16770 subprogram. This bug caused the wrong expansion of the internally
16771 generated assignment that fills the dispatch table when the primitive
16772 is a function returning a class-wide interface type.
16773 (Expand_N_Attribute_Reference:Attribute_Valid): Remove incorrect call to
16774 Set_Attribute_Name for Name_Unaligned_Valid.
16776 2007-06-06 Ed Schonberg <schonberg@adacore.com>
16777 Gary Dismukes <dismukes@adacore.com>
16779 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
16780 If the initialization is the equivalent aggregate of the initialization
16781 procedure of the type, do not remove it.
16782 (Expand_N_Attribute_Definition_Clause): Exclude access variables
16783 initialized to null from having their expression reset to empty and
16784 note this exception in the comment.
16786 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
16787 Robert Dewar <dewar@adacore.com>
16788 Ed Schonberg <schonberg@adacore.com>
16789 Gary Dismukes <dismukes@adacore.com>
16791 * exp_ch2.adb: Remove "with" and "use" clauses for Namet and Snames.
16792 Add "with" and "use" clauses for Sem_Attr.
16793 (Expand_Current_Value): Do not replace occurences of attribute
16794 references where the prefix must be a simple name.
16796 * sem_attr.ads, sem_attr.adb: Remove "with" and "use" clauses for
16797 Namet. Add new arrays Attribute_Name_Modifies_Prefix and
16798 Attribute_Requires_Simple_Name_Prefix.
16799 (Name_Modifies_Prefix): Body of new function.
16800 (Requires_Simple_Name_Prefix): Body of new function.
16801 (Resolve_Attribute, case Access): Improve error message for case of
16802 mismatched conventions.
16803 (Analyze_Attribute, case 'Tag): The prefix the attribute cannot be of an
16805 (Analyze_Attribute, case 'Access): If the type of the prefix is a
16806 constrained subtype for a nominal unconstrained type, use its base type
16807 to check for conformance with the context.
16808 (Resolve_Attribute): Remove test of the access type being associated
16809 with a return statement from condition for performing accessibility
16810 checks on access attributes, since this case is now captured by
16811 Is_Local_Anonymous_Access.
16812 (Analyze_Access_Attribute): Set Address_Taken on entity
16813 (Analyze_Attribute, case Address): Set Address_Taken on entity
16814 (OK_Self_Reference): Traverse tree to locate enclosing aggregate when
16815 validating an access attribute whose prefix is a current instance.
16816 (Resolve_Attribute): In case of attributes 'Code_Address and 'Address
16817 applied to dispatching operations, if freezing is required then we set
16818 the attribute Has_Delayed_Freeze in the prefix's entity.
16819 (Check_Local_Access): Set flag Suppress_Value_Tracking_On_Call in
16820 current scope if access of local subprogram taken
16821 (Analyze_Access_Attribute): Check legality of self-reference even if the
16822 expression comes from source, as when a single component association in
16823 an aggregate has a box association.
16824 (Resolve_Attribute, case 'Access): Do not apply accessibility checks to
16825 the prefix if it is a protected operation and the attribute is
16826 Unrestricted_Access.
16827 (Resolve_Attribute, case 'Access): Set the Etype of the attribute
16828 reference to the base type of the context, to force a constraint check
16829 when the context is an access subtype with an explicit constraint.
16830 (Analyze_Attribute, case 'Class): If the prefix is an interface and the
16831 node is rewritten as an interface conversion. leave unanalyzed after
16832 resolution, to ensure that type checking against the context will take
16835 2007-06-06 Ed Schonberg <schonberg@adacore.com>
16836 Javier Miranda <miranda@adacore.com>
16837 Robert Dewar <dewar@adacore.com>
16839 * exp_ch3.adb (Make_Controlling_Function_Wrappers): generate wrapper a
16840 wrapper when the full view of the controlling type of an inherited
16841 function that dispatches on result implements interfaces.
16842 (Expand_N_Object_Declaration): In cases where the type of the
16843 declaration is anonymous access, create finalization list for it.
16844 (Expand_N_Object_Declaration): Generate a persistent_bss directive only
16845 if the object has no explicit initialization, to match description of
16846 functionality of pragam Persistent_BSS.
16847 (Build_Equivalent_Array_Aggregate, Build_Equivalent_Record_Aggregate):
16848 new function to build static aggregates, to replace initialization call
16849 when static initialization is desired.
16850 (Freeze_Type): Generate a list controller for an access type whenever
16851 its designated type has controlled anonymous access discriminants.
16852 (Build_Equivalent_Aggregate): New procedure to compute a static
16853 aggregate to be used as default initialization for composite types,
16854 instead of a generating a call to the initialization procedure for the
16856 (Build_Initialization_Call): When available, replace a call to the
16857 initialization procedure with a copy of the equivalent static aggregate
16859 (Expand_N_Object_Declaration): Use New_Occurrence_Of in generated
16860 declarations for objects of a class-wide interface type, rather than
16861 just identifiers, to prevent visibility problems.
16862 (Expand_N_Object_Declaration): When expanding the declaration for an
16863 object of a class-wide interface type, preserve the homonym chain of
16864 the original entity before exchanging it with that of the generated
16865 renaming declaration.
16866 (Freeze_Enumeration_Type): Don't raise CE if No_Exception_Propagation
16867 active, because there is no way to handle the exception.
16868 (Freeze_Record_Type): In case of CPP_Class types add a call to Make_DT
16869 to do a minimum decoration of the Access_Disp_Table list.
16870 (Expand_Record_Controller): Avoid the addition of the controller between
16871 the component containing the tag of a secondary dispatch table and its
16872 adjacent component that stores the offset to the base of the object.
16873 This latter component is only generated when the parent type has
16874 discriminants ---documented in Add_Interface_Tag_Components).
16875 (Apply_Array_Size_Check): Removed, no longer needed.
16876 (Expand_N_Full_Type_Declaration): If the type has anonymous access
16877 components, create a Master_Entity for it only if it contains tasks.
16878 (Build_Init_Procedure): Suppress the tag assignment compiling under
16880 (Freeze_Record_Type): Remove code associated with creation of dispatch
16882 (Init_Secondary_Tags): Update type of actuals when generating calls to
16883 Ada.Tags.Set_Offset_To_Top
16884 (Stream_Operation_OK): Disable use of streams compiling under no
16886 (Expand_N_Object_Declaration): Don't do Initialize_Scalars initalization
16887 if Has_Init_Expression set.
16888 (Build_Init_Procedure): Replace call to Fill_DT_Entry by call to
16889 Register_Primitive, which provides the same functionality.
16890 (Requires_Init_Proc): Return false in case of interface types.
16891 (Add_Secondary_Tables): Use the new attribute Related_Interface to
16893 (Predefined_Primitive_Freeze): Do not assume that an internal entity
16894 is always associated with a predefined primitive because the internal
16895 entities associated with interface types are not predefined primitives.
16896 Therefore, the call to Is_Internal is replaced by a call to the
16897 function Is_Predefined_Dispatching_Operation.
16898 (Make_Eq_If): When generating the list of comparisons for the
16899 components of a given variant, omit the controller component that is
16900 present if the variant has controlled components.
16902 2007-06-06 Javier Miranda <miranda@adacore.com>
16903 Hristian Kirtchev <kirtchev@adacore.com>
16904 Bob Duff <duff@adacore.com>
16906 * exp_ch4.adb (Complete_Coextension_Finalization): Add machinery to
16907 handle the creation of finalization lists and calls for nested
16908 coextensions when the root of the chains is part of a return statement.
16909 (Inside_A_Return_Statement): New function inside Complete_Coextension_
16911 (Expand_Record_Equality): Skip components that are interface types.
16912 (Displace_Allocator_Pointer): Add missing support for interface subtypes
16913 (Expand_N_Allocator): Replace invocation of Is_Local_Access_Discriminant
16914 with Rewrite_Coextension. Change the condition for detecting coextension
16916 (Is_Local_Access_Discriminant): Removed.
16917 (Rewrite_Coextension): New routine which rewrites a static coextension
16918 as a temporary and uses its unrestricted access in the construction of
16920 (Complete_Coextension_Finalization): New routine. Generate finalization
16921 attachment calls to all delayed coextensions.
16922 (Expand_N_Allocator): Call Complete_Coextension_Finalization whenever
16923 the allocator is not a coextension itself and has delayed coextensions.
16924 If the current allocator is controlled, but also a coextension, delay
16925 the generation of the finalization attachment call.
16926 Rename local variable "Node" to "Nod" in order to avoid confusion with
16928 (Expand_Allocator_Expression): Call Adjust for initialized allocators of
16929 limited types that are not inherently limited. Such an allocator is
16930 illegal, but is generated by the expander for a return statement, to
16931 copy the result onto the secondary stack. This is the only case where a
16932 limited object can be copied. Generate code to displace the pointer
16933 to the object if the qualified expression is a class-wide interface
16934 object. Such displacement was missing and hence the copy of the object
16936 (Apply_Accessibility_Check): Handle allocated objects initialized in
16938 (Displace_Allocator_Pointer): Subsidiary procedure to Expand_N_Allocator
16939 and Expand_Allocator_Expression. Allocating class-wide interface objects
16940 this routine displaces the pointer to the allocated object to reference
16941 the component referencing the corresponding secondary dispatch table.
16942 Expand_Allocator_Expression): Add missing support to allocate class-wide
16943 interface objects initialized with a qualified expression.
16944 (Get_Allocator_Final_List): Test for an anonymous access type that is a
16945 function result type, and use the finalization list associated with the
16946 function scope in that case (such an anonymous type should not be
16947 treated like an access parameter's type).
16949 2007-06-06 Ed Schonberg <schonberg@adacore.com>
16950 Gary Dismukes <dismukes@adacore.com>
16951 Javier Miranda <miranda@adacore.com>
16953 * exp_ch5.adb (Expand_N_Assignment_Statement): For the assignment of a
16954 controlled type, use Make_Handler_For_Ctrl_Operation to construct the
16955 required exception handler.
16956 (Expand_Simple_Function_Return, Expand_N_Return_Statement): Handle
16957 properly the case of a function whose return type is a limited
16958 class-wide interface type. Modify the code of the accessibility
16959 check to handle class-wide interface objects. In this case we need to
16960 displace "this" to reference the primary dispatch table to get access
16961 to the TSD of the object (to evaluate its accessibility level).
16962 (Expand_N_Extended_Return_Statement): Test for a tagged result type
16963 rather than a controlling result as one of the conditions for
16964 generating tests of the implicit BIP_Alloc_Form formal. The
16965 initialization assignment is also handled according to whether the
16966 result is tagged instead of controlling.
16967 In the case where the init assignment is inserted in the "then" part of
16968 the allocation conditional, rewrite the target to be a dereference of
16969 the implicit BIP_Object_Access formal.
16970 If the returned value is unconstrained and created on the secondary
16971 stack, mark the enclosing block and function so that the secondary
16972 stack is not reclaimed on return.
16973 Treat returns from functions with controlling results similarly to
16974 returns from functions with unconstrained result subtypes.
16975 If the object returned is unconstrained, and an allocator must be
16976 created for it, analyze the allocator once the block for the extended
16977 return is installed, to ensure that finalizable components
16978 of the expression use the proper finalization list. Guard the call to
16979 Move_Final_List with a check that there is something to finalize.
16980 (Make_Tag_Ctrl_Assignment): Use "old" handling
16981 of controlled type assignment for virtual machines, since new code uses
16982 unsupported features (such as direct access to bytes in memory).
16984 2007-06-06 Gary Dismukes <dismukes@adacore.com>
16985 Ed Schonberg <schonberg@adacore.com>
16987 * exp_ch6.ads, exp_ch6.adb (Expand_Call): When adding an extra
16988 accessibility actual, check for the case of an aliased object that has
16989 been rewritten as an Access attribute, and assign Prev to Prev_Orig so
16990 we fall into processing for the attribute rather than the name of the
16992 (Expand_Inline_Call): If an actual is a literal, and the corresponding
16993 formal has its address taken in the body, create a temporary to capture
16994 value. If the return type is a limited interface, do not treat the
16995 return value as Controlled.
16996 (Is_In_Place_Function): If the return type is a limited interface,
16997 treat as returning in place. The actual returned object may not always
16998 be limited, but the caller has to assume that it is returned in place.
16999 (Add_Final_List_Actual_To_Build_In_Place_Call): If the call is the
17000 context of an allocator, use the correct finalization chain (that is,
17001 the chain belonging to the access type, rather than the chain belonging
17002 to the current scope).
17003 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Test for a tagged
17004 result type rather than a controlling result as a precondition for
17005 adding an allocation form actual to a build-in-place call.
17006 (Add_Final_List_Actual_To_Build_In_Place_Call): Ditto.
17007 (Freeze_Subprogram): Code cleanup. Remove all the code that register the
17008 primitive in the dispatch tables. This work is now done by Make_DT when
17009 the type is frozen.
17010 (Register_Predefined_DT_Entry): Removed.
17011 (Add_Return): If end label is not present, use sloc of last statement
17012 for generated return statement in procedure, for better gdb behavior
17014 (Add_Access_Actual_To_Build_In_Place_Call): Set parent fields of the
17015 object address nodes to ensure proper processing by routines like
17017 (Expand_Call): Fix generation of validity check for parameter
17018 (Add_Alloc_Form_Actual_To_Build_In_Place_Call): Return without passing
17019 the allocation form parameter if the result subtype is constrained,
17020 except when the function has a controlling result.
17021 (Add_Final_List_Actual_To_Build_In_Place_Call): Test Controlled_Type
17022 rather than Is_Controlled and Has_Controlled_Component, since we want to
17023 include class-wide result types in this treatment. Also test for a
17024 controlling result, since that also requires passing a finalization
17026 (Make_Build_In_Place_Call_In_Allocator): Call Add_Alloc_Form_Actual_*
17027 even when the result subtype is constrained, to handle calls involving
17028 controlling results.
17029 (Make_Build_In_Place_Call_In_Anonymous_Context): Add_Alloc_Form_Actual_*
17030 is now called even when the result subtype is constrained, to handle
17031 calls involving controlling results.
17032 (Make_Build_In_Place_Call_In_Assignment): Remove test for Is_Constrained
17033 on call to Add_Alloc_Form_Actual_To_Build_In_Place_Call (that procedure
17034 now performs the test).
17035 (Make_Build_In_Place_Call_In_Object_Declaration):
17036 Add_Alloc_Form_Actual_* is now called even when the result subtype is
17037 constrained, to handle calls involving controlling results.
17038 (Add_Return): Accomodate rewritten pattern from local raise to goto
17039 transformation, so that we still recognize an transfer statement
17040 and do the right thing here in that case.
17041 (Expand_N_Subprogram_Body): Add dummy Push/Pop_xxx_Label nodes at start
17042 and end of subprogram code.
17043 (Register_Interface_DT_Entry, Register_Predefined_DT_Entry): Add missing
17044 support for primitives that are functions (without formals) with a
17045 controlling result.
17046 (Inherited_From_Formal): If the actual subtype has not generic parent
17047 type, it is not an actual for a formal derived type, and there is no
17048 operation to inherit from the formal.
17050 2007-06-06 Ed Schonberg <schonberg@adacore.com>
17051 Thomas Quinot <quinot@adacore.com>
17053 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): Set Sloc of
17054 inserted cleanup code appropriately for GDB use.
17055 (Make_Deep_Proc): Use Make_Handler_For_Ctrl_Operation to create
17056 exception handler for Deep_Adjust or Deep_Finalize.
17057 (Make_Handler_For_Ctrl_Operation): New subprogram. When runtime entity
17058 Raise_From_Controlled_Operation is available, use a call to that
17059 subprogram instead of a plain "raise Program_Error" node to raise
17060 Program_Error if an exception is propagated from an Adjust or Finalize
17062 (Insert_Actions_In_Scope_Around): If the statement to be wrapped
17063 appears in the optional statement list of a triggering alternative, the
17064 scope actions can be inserted directly there, and not in the list that
17065 includes the asynchronous select itself.
17067 2007-06-06 Ed Schonberg <schonberg@adacore.com>
17068 Robert Dewar <dewar@adacore.com>
17069 Hristian Kirtchev <kirtchev@adacore.com>
17071 * exp_ch9.ads, exp_ch9.adb (Build_Protected_Entry): Set sloc of
17072 generated exception handler appropriately when debugging generated code.
17073 Deal properly with No_Exception_Propagation restriction mode.
17074 (Expand_N_Abort_Statement): Add an unchecked type conversion from
17075 System.Address to System.Tasking.Task_Id when processing the result of
17076 the predefined primitive _disp_get_task_id.
17077 (Expand_N_Asynchronous_Select): Clarify comment.
17078 (Expand_N_Protected_Type_Declaration): Minor code cleanup.
17079 (Find_Parameter_Type): New routine inside Type_Conformant_Parameters.
17080 (Type_Conformant_Parameters): New parameter Prim_Op_Typ. Code cleanup.
17081 (Add_Private_Declarations, Build_Protected_Body): Use proper slocs for
17082 privals and for generated call to Complete_Entry_Body, for better gdb
17084 (Copy_Result_Type): Utility to construct a parameter and result profile
17085 for protected functions whose return type is an anonymous access to
17087 (Build_Protected_Sub_Spec and Expand_Access_Protected_Subprogram_Type):
17089 (Build_Task_Activation_Call): Insert Activate_Tasks call at proper
17090 point when the local-raise-to-goto transformation has taken place.
17092 2007-06-06 Javier Miranda <miranda@adacore.com>
17093 Nicolas Setton <setton@adacore.com>
17095 * exp_dbug.adb (Get_Encoded_Name): Modified to continue providing its
17096 functionality when the backend is generating code.
17097 Otherwise any serious error
17098 reported by the backend calling the frontend routine Error_Msg
17099 changes the Compilation_Mode to Check_Semantics, disables the
17100 functionality of this routine and causes the generation of
17101 spureous additional errors.
17103 * exp_dbug.ads (Pointers to Unconstrained Arrays): Document the
17104 debugging information now generated by the compiler for fat-pointer
17106 Document the contents of DW_AT_producer in the GNAT Vendor extensions to
17108 Document GNAT Vendor extensions to DWARF 2/3 and the "-gdwarf+" switch.
17110 2007-06-06 Thomas Quinot <quinot@adacore.com>
17112 * exp_dist.ads, exp_dist.adb (Make_Transportable_Check): New subprogram
17113 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
17114 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
17115 For a remote call to a function with a classwide return type, apply an
17116 E.4(18) check to the returned value.
17117 (Add_RACW_Primitive_Declarations_And_Bodies): Do not generate stubs for
17118 stream attributes of the designated type of an RACW, as they are not
17119 dispatching primitive operations.
17121 2007-06-06 Geert Bosch <bosch@adacore.com>
17123 * exp_fixd.adb (Integer_Literal): Add optional argument to construct a
17125 (Do_Divide_Fixed_Fixed): Add comments to indicate Frac is always
17127 (Do_Divide_Fixed_Universal): Handle case of negative Frac.
17128 (Do_Multiply_Fixed_Fixed): Add coments to indicate Frac is always
17130 (Do_Multiply_Fixed_Universal): Handle case of negative Frac.
17132 2007-06-06 Javier Miranda <miranda@adacore.com>
17134 * exp_imgv.adb (Expand_Value_Attribute): Disable compilation of this
17135 attribute compiling package Ada.Tags under No_Run_Time_Mode.
17137 2007-06-06 Javier Miranda <miranda@adacore.com>
17139 * exp_intr.adb (Expand_Unc_Deallocation): Add missing support for
17140 deallocation of class-wide interface objects.
17141 (Expand_Dispatching_Constructor_Call): Take into account that if the
17142 result of the dispatching constructor is an interface type, the
17143 function returns a class-wide interface type; otherwise the returned
17144 object would be actual. The frontend previously accepted returning
17145 interface types because Expand_Interface_Actuals silently performed
17146 the management of the returned type "as if" it were a class-wide
17148 (Expand_Dispatching_Constructor_Call): Replace call to
17149 Make_DT_Access_Action by direct call to Make_Function_Call.
17151 2007-06-06 Robert Dewar <dewar@adacore.com>
17152 Ed Schonberg <schonberg@adacore.com>
17154 * exp_pakd.adb (Expand_Packed_Not): Use RM_Size rather than ESize to
17155 compute masking constant, since we now set Esize properly to the
17157 (Create_Packed_Array_Type): Set proper Esize value adjusted as required
17158 to match the alignment.
17159 (Create_Packed_Array_Type): Use Short_Short_Unsigned as base type for
17160 packed arrays of 8 bits or less.
17162 * freeze.adb (Freeze_Entity): When freezing the formals of a
17163 subprogram, freeze the designated type of a parameter of an access type
17164 only if it is an access parameter.
17165 Increase size of C convention enumeration object
17166 (Freeze_Entity, array type case): Make sure Esize value is properly
17167 adjusted for the alignment if it is known.
17168 (Freeze_Entity, array type case): When checking bit packed arrays for
17169 the size being incorrect, check RM_Size, not Esize.
17170 (Freeze_Record_Type): Check for bad discriminated record convention
17171 (In_Exp_Body): Return true if the body is generated for a subprogram
17172 renaming, either an attribute renaming or a renaming as body.
17173 (Check_Itype): If the designated type of an anonymous access component
17174 is a non-protected subprogram type, indicate that it is frozen, to
17175 prevent out-of-scope freeze node at some subsequent call.
17176 (Freeze_Subprogram): On OpenVMS, reject descriptor passing mechanism
17177 only if the subprogram is neither imported nor exported, as well as the
17178 NCA descriptor class if the subprogram is exported.
17180 2007-06-06 Ed Schonberg <schonberg@adacore.com>
17181 Arnaud Charlet <charlet@adacore.com>
17182 Robert Dewar <dewar@adacore.com>
17183 Gary Dismukes <dismukes@adacore.com>
17185 * exp_prag.adb (Expand_Pragma_Import_Or_Interface): Remove properly a
17186 default initialization on an imported object, when there is no
17187 initialization call generated for it.
17188 (Expand_Pragma_Assert): Add handling of No_Exception_Propagation
17191 * snames.h, snames.ads, snames.adb, par-prag.adb: New pragma
17192 Static_Elaboration_Desired.
17193 Remove pragma Thread_Body.
17194 Implement a new pragma No_Body
17195 Removes the Explicit_Overriding pragma
17196 Remove Optional_Overriding pragma
17197 (Prag): Deal with Universal_Aliasing.
17198 (Name_CIL, Name_CIL_Constructor, Convention_CIL,
17199 Pragma_CIL_Constructor): New names.
17201 * sem_cat.adb (Validate_Object_Declaration): An initialization that
17202 uses the equivalent aggregate of a type must be treated as an implicit
17204 (Get_Categorization): Check a unit for pragma Preelaborate only if it
17205 has none of the other categories.
17206 (Process_Import_Or_Interface_Pragma): Report an error for an attempt
17207 to apply Import to an object renaming declaration.
17209 * sem_prag.adb (Process_Import_Or_Interface): Warn that a type imported
17210 from a C++ class should be declared as limited and that it will be
17211 considererd limited.
17212 (Analyze_Pragma): Warn that a type specified with pragma CPP_Class
17213 should be declared as limited and that it will be considererd limited.
17214 (Ada_2005_Pragma): New procedure, used to deal with Ada 2005 pragmas
17215 (Analyze_Pragma, case Export): Diagnose export of enumeration literal
17216 (Analyze_Pragma): Deal with Universal_Aliasing.
17217 (Sig_Flags): Likewise.
17218 (Set_Encoded_Interface_Name): Suppress encoding when compiling for AAMP.
17219 (Overflow_Checks_Unsuppressed): New flag.
17220 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
17221 (Analyze_Pragma [case Pack]): Ignore pragma Pack and post warning in
17222 case of JVM or .NET targets, and compiling user code.
17223 Add debugging convenience routine rv
17225 2007-06-06 Robert Dewar <dewar@adacore.com>
17227 * exp_strm.adb (Make_Field_Attributes): Avoid _Parent components that
17228 are interface type.
17229 (Build_Elementary_Input_Call): For floating-point use right type in the
17230 absence of strange size or stream size clauses.
17231 (Build_Elementary_Write_Call): Same fix
17232 (Has_Stream_Standard_Rep): Returns False if Stream_Size attribute
17233 set to value that does not match base type size.
17235 2007-06-06 Ed Schonberg <schonberg@adacore.com>
17237 * exp_util.ads, exp_util.adb (Expand_Subtype_From_Expr): In Ada2005, an
17238 object of a limited type can be initialized with a call to a function
17239 that returns in place. If the limited type has unknown discriminants,
17240 and the underlying type is a constrained composite type, build an actual
17241 subtype from the function call, as is done for private types.
17242 (Side_Effect_Free): An expression that is the renaming of an object or
17243 whose prefix is the renaming of a object, is not side-effect free
17244 because it may be assigned through the renaming and its value must be
17245 captured in a temporary.
17246 (Has_Controlled_Coextensions): New routine.
17247 (Expand_Subtype_From_Expr): Do nothing if type is a limited interface,
17248 as is done for other limited types.
17249 (Non_Limited_Designated_Type): new predicate.
17250 (Make_CW_Equivalent_Type): Modified to handle class-wide interface
17252 Remove all handling of with_type clauses.
17254 * par-ch10.adb: Remove all handling of with_type clauses.
17256 * lib-load.ads, lib-load.adb (Load_Main_Source): Do not get the
17257 checksum if the main source could not be parsed.
17258 (Loat_Unit): When processing a child unit, determine properly whether
17259 the parent unit is a renaming when the parent is itself a child unit.
17260 Remove handling of with_type clauses.
17262 * sinfo.ads, sinfo.adb (Is_Static_Coextension): New function.
17263 (Set_Is_Static_Coextension): New procedure.
17264 (Has_Local_Raise): New function
17265 (Set_Has_Local_Raise): New procedure
17266 (Renaming_Exception): New field
17267 (Has_Init_Expression): New flag
17268 (Delay_Finalize_Attach): Remove because flag is obsolete.
17269 (Set_Delay_Finalize_Attach): Remove because flag is obsolete.
17270 Remove all handling of with_type clauses.
17271 (Exception_Junk): Can now be set in N_Block_Statement
17273 2007-06-06 Vincent Celier <celier@adacore.com>
17274 Robert Dewar <dewar@adacore.com>
17276 * frontend.adb (Frontend): Return immediately if the main source could
17277 not be parsed, because of preprocessing errors.
17279 * gnat1drv.adb (gnat1drv): Handle RE_Not_Available gracefully.
17280 (Gnat1drv): Exit with errors if the main source could not be parsed,
17281 because of preprocessing errors.
17282 (Check_Rep_Info): New procedure
17284 2007-06-06 Robert Dewar <dewar@adacore.com>
17286 * g-hesorg.ads, g-heasor.ads,
17287 g-busorg.ads, g-bubsor.ads: Update documentation
17288 GNAT.Heap/Bubble_Sort_G is now pure
17290 2007-06-06 Robert Dewar <dewar@adacore.com>
17292 * g-catiio.ads, g-catiio.adb (Image): Check for null picture string
17294 2007-06-06 Robert Dewar <dewar@adacore.com>
17295 Ed Schonberg <schonberg@adacore.com>
17297 * g-comlin.ads, g-comlin.adb:
17298 Add new warning for renaming of function return objects
17300 * opt.adb (Tree_Write, Tree_Read): Use proper expressions for size
17301 (Tree_Read): Use size of object instead of type'object_size, since the
17302 latter is incorrect for packed array types.
17303 (Tree_Write): Same fix
17305 * opt.ads: Add new warning for renaming of function return objects
17306 (Generating_Code): New boolean variable used to indicate that the
17307 frontend as finished its work and has called the backend to process
17308 the tree and generate the object file.
17309 (GCC_Version): Is now private
17310 (Static_Dispatch_Tables): New constant declaration.
17311 (Overflow_Checks_Unsuppressed): New flag.
17312 (Process_Suppress_Unsuppress): Set Overflow_Checks_Unsuppressed.
17313 (List_Closure): New flag for gnatbind (-R)
17314 Zero_Formatting: New flag for gnatbind (-Z)
17315 (Special_Exception_Package_Used): New flag.
17316 (Warn_On_Unrepped_Components): New flag.
17318 * sem_ch8.adb (Check_Library_Unit_Renaming): Check that the renamed
17319 unit is a compilation unit, rather than relying on its scope, so that
17320 Standard can be renamed.
17321 (Analyze_Object_Renaming): Add new warning for renaming of function
17323 Also reject attempt to rename function return object in Ada 83 mode.
17324 (Attribute_Renaming): In case of tagged types, add the body of the
17325 generated function to the freezing actions of the type.
17326 (Find_Type): A protected type is visible right after the reserved word
17327 "is" is encountered in its type declaration. Set the entity and type
17328 rather than emitting an error message.
17329 (New_Scope): Properly propagate Discard_Names to inner scopes
17330 (Check_Nested_Access): New procedure.
17331 (Has_Nested_Access, Set_Has_Nested_Access): New procedures.
17332 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
17334 * sem_warn.ads, sem_warn.adb: Improvements to infinite loop warning
17335 Add new warning for renaming of function return objects
17336 (Check_References): Suppress warnings for objects whose type or
17337 base type has Warnings suppressed.
17338 (Set_Dot_Warning_Switch): Add processing for -gnatw.c/C
17339 (Set_Warning_Switch): Include new -gnatwc in -gnatwa
17341 2007-06-06 Vincent Celier <celier@adacore.com>
17342 Emmanuel Briot <briot@adacore.com>
17343 Olivier Hainque <hainque@adacore.com>
17345 * g-debpoo.ads, g-debpoo.adb (Free_Physically.Free_Blocks): Use the
17346 absolute value of Header.Block_Size when displaying the freed physical
17348 (Allocate): Compute Storage_Address using Integer_Address, not
17349 Storage_Offset, because the range of Storage_Offset may not be large
17351 (Configure): New parameter Low_Level_Traces
17352 (Allocate, Deallocation, Free_Physically): Added low-level traces
17353 (Configure): new parameter Errors_To_Stdout.
17354 (Output_File): new subprogram
17355 (Deallocate, Dereference): Send error messages to the proper stream
17356 (Print_Pool, Print_Info_Stdout): Make sure the output goes to stdout, as
17357 documented. Previous code would send it to the current output file
17358 defined in GNAT.IO, which might not be stdout
17359 (Is_Valid): Adjust comment to mention that a positive reply means that
17360 Header_Of may be used to retrieve the allocation header associated with
17361 the subprogram Storage address argument. Return False early if this
17362 address argument is misaligned.
17364 2007-06-06 Vincent Celier <celier@adacore.com>
17366 * gnatcmd.adb (GNATCmd): Accept switch -aP for commands that accept
17368 (ASIS_Main): New global variable
17369 (Get_Closure): New procedure
17370 (GNATCmd): Set ASIS_Main when -P and -U with a main is used for gnat
17371 check, metric or pretty. Call Get_Closure in this case.
17372 (Check_Files): For GNAT LIST, check all sources of all projects when
17373 All_Projects is True.
17374 (GNATCmd): Accept -U for GNAT LIST
17376 2007-06-06 Vincent Celier <celier@adacore.com>
17378 * gnatlink.adb (Gnatlink): Do not specify -static-libgcc when --LINK=
17380 Correct error message when invocation of the linker fails
17381 Add explicit size clause for the C imported variables
17382 Object_List_File_Supported and Using_GNU_Linker to emphasize that
17383 we expect char size.
17384 Read target parameters earlier, since this is needed to set
17385 Target_VM properly. Also do not use -static/shared-libgcc for non GCC
17388 2007-06-06 Vincent Celier <celier@adacore.com>
17391 Add 3 spaces before the default project directory when displaying
17392 the project search path.
17393 Add new command line switch '-l' to display license information.
17395 2007-06-06 Vasiliy Fofanov <fofanov@adacore.com>
17397 * gmem.c: Add support for timestamps on memory operations.
17399 * memtrack.adb, gnatmem.adb: Add support for timestamps on memory
17400 operations (not used currently, just foundation for future
17401 enhancements). Add possibility to perform full dump of gmem.out file.
17402 (Print_Back_Traces): Declare accesses to root arrays constants since
17403 they aren't modified.
17404 (Print_Back_Traces): allocate root arrays on the heap rather than stack.
17406 2007-06-06 Vincent Celier <celier@adacore.com>
17408 * gnatsym.adb: Update Copyright notice
17409 (Parse_Cmd_Line): Accept new switch -D
17410 (Gnatsym): In Direct policy (switch -D) copy reference file to symbol
17413 * prj.ads (Policy): New policy Direct
17414 (Yes_No_Unknown): New enumeration type
17415 (Project_Data): New component Libgnarl_Needed
17417 * prj-nmsc.adb (Check_For_Source): When recording a source file make
17418 use the untouched pathname casing.
17419 (Get_Directories): Ensure that the Display_Exec_Directory is using the
17420 proper casing on non case-sensitive platforms like Windows.
17421 (Get_Unit): Accept file names x__... and x~... (where x = a, g, i or s)
17422 on all platforms, as it is not possible to know which one is allowed
17423 before processing the project files.
17424 (Check_Stand_Alone_Library): Check that Library_Reference_Symbol_File is
17425 specified when symbol policy is Direct. Check that when there is a
17426 symbol file defined (either by default or with attribute
17427 Library_Symbol_File) it is not the same as the reference symbol file.
17428 (Check_Stand_Alone_Library): Recognize new symbol policy Direct.
17429 (Look_For_Sources): Allow Locally_Removed_Files to be declare in non
17430 extending projects.
17431 (Record_Ada_Source): Record a source that has been locally removed in an
17434 * symbols.ads (Policy): New policy Direct
17436 * symbols-vms.adb (Initialize): Take new policy Direct in case
17439 2007-06-06 Vincent Celier <celier@adacore.com>
17441 * g-os_lib.ads, g-os_lib.adb (Normalize_Pathname.Get_Directory):
17442 Correct obvious bug (return Dir; instead of return Directory;).
17443 (Normalize_Pathname): Use Reference_Dir'Length, not Reference_Dir'Last
17445 2007-06-06 Thomas Quinot <quinot@adacore.com>
17447 * g-pehage.adb (Produce): Open output files in Binary mode, so that
17448 they have UNIX line endings (LF only) even on Windows, and thus pass
17449 all GNAT style checks.
17451 2007-06-06 Emmanuel Briot <briot@adacore.com>
17453 * g-regpat.adb (Quote): Fix improper quoting of '.'
17455 2007-06-06 Thomas Quinot <quinot@adacore.com>
17457 * g-soccon.ads: Add new constant Thread_Blocking_IO, always True by
17458 default, set False on a per-runtime basis.
17459 (Need_Netdb_Buffer): New constant.
17461 * g-socket.ads, g-socket.adb: Import new package
17462 GNAT.Sockets.Thin.Task_Safe_NetDB.
17463 (Raise_Host_Error): Use Host_Error_Message from platform-specific thin
17464 binding to obtain proper message.
17465 (Close_Selector): Use GNAT.Sockets.Thin.Signalling_Fds.Close.
17466 Replace various occurrences of Arry (Arry'First)'Address with the
17467 equivalent Arry'Address (GNAT always follows implementation advice from
17469 (Get_Host_By_Address, Get_Host_By_Name,
17470 Get_Service_By_Name, Get_Service_By_Port): Do not use GNAT.Task_Lock;
17471 instead, rely on platform-specific task safe netdb operations provided
17474 * g-socthi.ads, g-socthi.adb (Initialize): Remove obsolete formal
17475 parameter Process_Blocking_IO.
17476 (Host_Error_Messages): Add stub body.
17477 (GNAT.Sockets.Thin.Signalling_Fds): New procedure Close.
17478 (Safe_Gethostbyname, Safe_Gethostbyaddr, Safe_Getservbyname,
17479 Safe_Getservbyport): Move functions into new child package
17481 (Nonreentrant_Gethostbyname, Nonreentrant_Gethostbyaddr,
17482 Nonreentrant_Getservbyname, Nonreentrant_Getservbyport): New routines.
17483 (In_Addr): Add alignment clause.
17485 2007-06-06 Robert Dewar <dewar@adacore.com>
17487 * g-trasym.ads, g-traceb.ads: Update list of supported targets
17488 Add note about symbolic traceback
17490 2007-06-06 Pascal Obry <obry@adacore.com>
17492 * hostparm.ads (Normalized_CWD): Use the host directory separator
17493 instead of the hardcoded forward slash which is not the proper
17494 character on Windows for example.
17495 (Java_VM): Removed.
17497 2007-06-06 Vincent Celier <celier@adacore.com>
17498 Arnaud Charlet <charlet@adacore.com>
17500 * a-clrefi.adb, a-clrefi.ads: New files
17502 * impunit.adb: Add s-os_lib in the list of user visible units.
17503 (Non_Imp_File_Names_95): Add a-clrefi to this list
17504 Remove obsolete run-time entries.
17505 (Non_Imp_File_Names_05): Add Ada 2005 entries for:
17506 "a-exetim" -- Ada.Execution_Time
17507 "a-extiti" -- Ada.Execution_Time.Timers
17509 * mlib-prj.ads, mlib-prj.adb
17510 (Build_Library): Use untouched object dir and library dir. At the
17511 same time makes sure that the checks are done using the canonical
17512 form. Removes hard-coded directory separator and use the proper host
17514 (Process_Project): Do not look in object directory to check if libgnarl
17515 is needed for a library, if there is no object directory.
17516 (Build_Library): Scan the ALI files to decide if libgnarl is needed for
17518 (Build_Library): When invoking gnatbind, use a response file if the
17519 total size of the arguments is too large.
17521 * Makefile.rtl: (g-sttsne): New object file.
17522 Add entry for a-clrefi, s-utf_32, System.Exceptions
17524 * Make-lang.in: Remove bogus dependency of s-memory.o on memtrack.o.
17525 (GNAT_ADA_OBJS, GNATBIND_OBJS): Add s-except.o.
17526 (GNATBIND_OBJS): Add new objects a-clrefi.o and a-comlin.o
17527 Change g-string to s-string, g-os_lib to s-os_lib
17528 Change all g-utf_32 references to s-utf_32
17530 2007-06-06 Tristan Gingold <gingold@adacore.com>
17531 Olivier Hainque <hainque@adacore.com>
17533 * init.c: Do not adjust IP of an imported VMS exception of ia64.
17534 LIB$STOP is called to raise an exception and the IP of the exception
17535 is the instruction right after the call.
17536 (__gnat_adjust_context_for_raise, AIX): Implement.
17537 (__gnat_error_handler, AIX): Accept SIGINFO related arguments and call
17538 adjust_context_for_raise before Raise_From_Signal_Hanler.
17539 (__gnat_install_handler, AIX): Add SA_SIGINFO to the sa_flags, to ensure
17540 siginfo is passed to the handler, necessary to let the zcx propagation
17541 engine unwind past it.
17543 2007-06-06 Olivier Hainque <hainque@adacore.com>
17545 * initialize.c (__gnat_initialize for vxworks): Update documentation
17546 on the ZCX support, using different sets of crtstuff objects than with
17549 2007-06-06 Robert Dewar <dewar@adacore.com>
17551 * layout.ads, layout.adb (Adjust_Esize_Alignment): Move spec to package
17553 (Layout_Type): Fix recomputation of size from alignment.
17555 2007-06-06 Ed Schonberg <schonberg@adacore.com>
17556 Javier Miranda <miranda@adacore.com>
17558 * sem_ch12.adb (Analyze_Associations): Diagnose use of an others
17559 association in an instance.
17560 (Copy_Generic_Node): If the node is a string literal, no need to copy
17562 (Is_Generic_Formal): For a formal subprogram, the declaration is the
17563 grandparent of the entity.
17564 (Analyze_Formal_Interface_Type): Transform into a full type declaration,
17565 to simplify handling of formal interfaces that derive from other formal
17567 (Instantiate_Subprogram_Body): The defining unit name of the body of
17568 the instance should be a defining identifier.
17569 (Install_Formal_Packages): make global to the package, for use in
17570 instantiations of child units.
17571 (Analyze_Package_Instantiation): Do not attempt to set information on an
17572 enclosing master of an entry when expansion is disabled.
17573 (Instantiate_Type): If the actual is a tagged synchronized type and the
17574 generic ancestor is an interface, create a generic actual for the
17575 corresponding record.
17576 (Analyze_Formal_Derived_Interface_Type): Rewrite as a derived type
17577 declaration, to ensure that the interface list is processed correctly.
17578 (Inline_Instance_Body): If enclosing scope is an instance body, remove
17579 its entities from visibiility as well.
17580 (Pre_Analyze_Actuals): if the actual is an allocator with constraints
17581 given with a named association, analyze the expression only, not the
17582 discriminant association itself.
17583 (Reset_Entity): If the analysis of a selected component is transformed
17584 into an expanded name in the prefix of a call with parameters, do not
17585 transform the original node into an expanded name, to prevent visibility
17586 errors in the case of nested generics.
17587 (Check_Private_View): For an array type, check whether the index types
17588 may need exchanging.
17590 2007-06-06 Arnaud Charlet <charlet@adacore.com>
17591 Vincent Celier <celier@adacore.com>
17593 * lib-writ.adb: Handle Convention_CIL in addition to Convention_Java,
17594 since both are separated.
17595 Add support for imported CIL packages.
17596 Add further special handling of "value_type" for CIL.
17597 Add special handling of pragma Import for CIL.
17599 * make.ads, make.adb: When switch -eS is used, direct all outputs to
17600 standard output instead of standard error, except errors.
17601 (Absolute_Path): Use untouched casing for the parent directory.
17602 (Add_Library_Search_Dir): Use the untouched directory name.
17603 (Add_Source_Search_Dir): Idem.
17604 (Change_To_Object_Directory): Update output to use proper casing.
17605 (Create_Binder_Mapping_File): Use the untouched filename to set
17607 (Gnatmake): Use untouched library and executable directory names.
17608 (Insert_Project_Sources): Use untouched filename for spec and body.
17609 (Is_In_Object_Directory): Use untouched object directory.
17610 (Mark_Directory): Idem.
17611 (Collect_Arguments_And_Compile): Ensure that Full_Source_File always
17612 contains the non-canonical filename in all cases.
17613 (Change_To_Object_Directory): In verbose mode, display the name of the
17614 object directory we're changing to.
17615 (Compile_Sources): Make sure, when a project file is used, to compile
17616 the body of the unit, when there is one, even when only the spec is
17617 recorded in an ALI file.
17618 (Gcc_Switches, Binder_Switches, Linker_Switches): Tables moved from the
17620 (Report_Compilation_Failed): New procedure
17621 (Bind, Display_Commands, Compile_Sources, Initialize, Scan_Make_Arg):
17622 procedures moved from the spec to the body.
17623 (Extract_Failure): Removed, not used
17624 Replace explicit raises of exception Bind_Failed and Link_Failed with
17625 calls to Make_Failed with the proper message.
17626 Replace explicit raises of exception Compilation_Failed with calls to
17627 procedure Report_Compilation_Failed.
17628 (Initialize): Create mapping files unconditionally when using project
17631 * sem_mech.adb: (Name_CIL, Name_CIL_Constructor, Convention_CIL,
17632 Pragma_CIL_Constructor): New names.
17634 * targparm.ads, targparm.adb
17635 (Compiler_System_Version): Removed, no longer used.
17636 (Get_Target_Parameters): Relax checks on system.ads validity. Add
17637 handling of two new system flags: JVM and CLI.
17639 2007-06-06 Jose Ruiz <ruiz@adacore.com>
17640 Arnaud Charlet <charlet@adacore.com>
17642 * Makefile.in (LIBGNAT_TARGET_PAIRS for VxWorks 6): For the RTP run
17643 time, use the default s-interr body that provides interrupt support
17645 (LIBGNAT_TARGET_PAIRS for x86-linux): Use specialized versions of
17646 a-exetim.ad{s,b}, a-extiti.ad{s,b}, a-rttiev.ad{s,b}, s-osinte.ad{s,b},
17647 g-soccon.ads, and s-taprop.adb for the marte run time.
17648 (EXTRA_GNATRTL_TASKING_OBJS for x86-linux): Execution time clocks and
17649 timers are supported on marte.
17650 (EH_MECHANISM for marte): Do not use ZCX.
17651 (THREADSLIB for marte): Use -lmarte.
17652 Add mlib-tgt-vms.o to the list of objects for gnatmake for VMS
17653 Add mlib-tgt-specific.o to gnatmake objects
17654 mlib-tgt-<platforms>.adb is now the body of MLib.Tgt.Specific, no
17655 longer of MLib.Tgt.
17656 (LIBGNAT_TARGET_PAIRS for vxworks): When building a run time for VxWorks
17657 6, either kernel or rtp, use a specialized version of s-osinte.ads.
17659 2007-06-06 Pascal Obry <obry@adacore.com>
17661 * mkdir.c (__gnat_mkdir): Add support for UTF-8.
17663 2007-06-06 Vincent Celier <celier@adacore.com>
17665 * mlib.ads, mlib.adb (Build_Library): Do not use hard-coded directory
17666 separator, use instead the proper host directory separator.
17667 (Copy_ALI_Files): Make sure that an already existing ALI file in the
17668 ALI copy dir is writable, before doing the copy.
17670 * mlib-utl.ads, mlib-utl.adb:
17671 (Gcc): If length of command line is too long, put the list of object
17672 files in a response file, if this is supported by the platform.
17673 (Ar): If invocation of the archive builder is allowed to be done in
17674 chunks and building it in one shot would go above an OS dependent
17675 limit on the number of characters on the command line, build the archive
17678 2007-06-06 Vincent Celier <celier@adacore.com>
17680 * osinte-c.ads, osint-c.adb (Set_Library_Info_Name): Fail if base name
17681 of specified object file is not equal to base name of source.
17683 2007-06-06 Javier Miranda <miranda@adacore.com>
17684 Hristian Kirtchev <kirtchev@adacore.com>
17685 Ed Schonberg <schonberg@adacore.com>
17687 * sem_ch3.adb (Process_Full_View): Propagate the CPP_Class attribute to
17688 the full type declaration.
17689 (Analyze_Component_Declaration): Add local variable E to capture the
17690 initialization expression of the declaration. Replace the occurences of
17691 Expression (N) with E.
17692 (OK_For_Limited_Init_In_05): Allow initialization of class-wide
17693 limited interface object with a function call.
17694 (Array_Type_Declaration): If the declaration lacks subtype marks for
17695 indices, create a simple index list to prevent cascaded errors.
17696 (Is_Null_Extension): Ignore internal components created for secondary
17697 tags when checking whether a record extension is a null extension.
17698 (Check_Abstract_Interfaces): Add missing support for interface subtypes
17699 and generic formals.
17700 (Derived_Type_Declaration): Add missing support for interface subtypes
17701 and generic formals.
17702 (Analyze_Object_Declaration): If an initialization expression is
17703 present, traverse its subtree and mark all allocators as static
17705 (Add_Interface_Tag_Component): When looking for components that may be
17706 secondary tags, ignore pragmas that can appear within a record
17708 (Check_Abstract_Overriding): an inherited function that dispatches on
17709 result does not need to be overriden if the controlling type is a null
17711 (Mentions_T): Handle properly a 'class attribute in an anonymous access
17712 component declaration, when the prefix is an expanded name.
17713 (Inherit_Component): If the derivation is for a private extension,
17714 inherited components remain visible and their ekind should not be set
17716 (Find_Type_Of_Object): In the case of an access definition, always set
17717 Is_Local_Anonymous_Access. We were previously not marking the anonymous
17718 access type of a return object as a local anonymous type.
17719 (Make_Index): Use Ambiguous_Character to report ambiguity on a discrete
17720 range with character literal bounds.
17721 (Constrain_Array): Initialize the Packed_Array_Type field to Empty.
17722 (Access_Subprogram_Declaration): Indicate that the type declaration
17723 depends on an incomplete type only if the incomplete type is declared
17725 (Analyze_Subtype_Declaration): Handle properly subtypes of
17726 synchronized types that are tagged, and that may appear as generic
17728 (Access_Subprogram_Declaration): An anonymous access to subprogram can
17729 appear as an access discriminant in a private type declaration.
17730 (Add_Interface_Tag_Components): Complete decoration of the component
17731 containing the tag of a secondary dispatch table and the component
17732 containing the offset to the base of the object (this latter component
17733 is only generated when the parent type has discriminants --as documented
17735 (Inherit_Components): Use the new decoration of the tag components to
17736 improve the condition that avoids inheriting the components associated
17737 with secondary tags of the parent.
17738 (Build_Discriminanted_Subtype): Indicate to the backend that the
17739 size of record types associated with dispatch tables is known at
17741 (Analyze_Subtype_Declaration): Propagate Is_Interface flag when needed.
17742 (Analyze_Interface_Declaration): Change setting of Is_Limited_Interface
17743 to include task, protected, and synchronized interfaces as limited
17745 (Process_Discriminants): Remove the setting of
17746 Is_Local_Anonymous_Access on the type of (anonymous) access
17747 discriminants of nonlimited types.
17748 (Analyze_Interface_Type_Declaration): Complete the decoration of the
17749 class-wide entity it is is already present. This situation occurs if
17750 the limited-view has been previously built.
17751 (Enumeration_Type_Declaration): Initialize properly the Enum_Pos_To_Rep
17753 (Add_Interface_Tag_Components.Add_Tag): Set the value of the attribute
17756 2007-06-06 Ed Schonberg <schonberg@adacore.com>
17758 * sem_aggr.adb (Resolve_Record_Aggregate): Ignore internal components
17759 of the type that specify the position of interface tags when the type
17760 inherits discriminated array components from the parent type.
17761 If a component is initialized with a box, check for the presence of a
17762 default expression in its declaration before using its default
17763 initialization procedure.
17764 (Resolve_Record_Aggregate): If a component is box-initialized, and the
17765 component type has a discriminants, create a partial aggregate for it
17766 by copying the discriminants of the component subtype.
17767 Reject attempt to initialize a discriminant with a box.
17768 (Array_Aggr_Subtype): Indicate to the backend that the size of arrays
17769 associated with dispatch tables is known at compile time.
17770 (Get_Value): If an association in a record aggregate has a box
17771 association, and the corresponding record component has a default
17772 expression, always copy the default expression, even when the
17773 association has a single choice, in order to create a proper
17774 association for the expanded aggregate.
17776 2007-06-06 Ed Schonberg <schonberg@adacore.com>
17777 Robert Dewar <dewar@adacore.com>
17779 * par-ch12.adb (P_Generic_Associations): The source position of an
17780 Others association is that of the others keyword, not that of the token
17781 that follows the box.
17782 (P_Formal_Type_Definition): Handle formal access types that carry a
17783 not null indicator.
17785 * par-ch3.adb (P_Known_Discriminant_Part_Opt, P_Component_Items): If
17786 multiple identifier are present, save Scan_State before scanning the
17787 colon, to ensure that separate trees are constructed for each
17789 (P_Identifier_Declarations): For object declaration, set new flag
17790 Has_Init_Expression if initialization expression present.
17791 (P_Null_Exclusion): Properly diagnose NOT NULL coming before NULL
17792 Improve NOT NULL error messages
17794 2007-06-06 Robert Dewar <dewar@adacore.com>
17796 * par-ch4.adb: (P_Name): Recover from literal used as name
17798 2007-06-06 Vincent Celier <celier@adacore.com>
17800 * prep.ads, prep.adb (Expression): New Boolean parameter Complemented,
17801 defaulted to False.
17802 In the "not" case, recursive call with Complemented set to True.
17803 Do not allow "or" or "and" operators when Complemented is True.
17805 2007-06-06 Vincent Celier <celier@adacore.com>
17807 * prj.adb (Project_Empty): Gives default value for new component
17810 * prj-attr.ads: Minor reformatting
17812 * prj-env.ads, prj-env.adb (For_All_Object_Dirs): Register object
17813 directory using the untouched casing.
17814 (For_All_Source_Dirs): Idem.
17816 * prj-ext.ads, prj-ext.adb (Search_Directories): New table to record
17817 directories specified with switches -aP.
17818 (Add_Search_Project_Directory): New procedure
17819 (Initialize_Project_Path): Put the directories in table
17820 Search_Directories in the project search path.
17821 (Initialize_Project_Path): For VMS, transform into canonical form the
17824 2007-06-06 Arnaud Charlet <charlet@adacore.com>
17826 * restrict.ads, restrict.adb (No_Exception_Handlers_Set): Only return
17827 true if configurable run-time or No_Run_Time is set.
17828 (Set_Restriction): Avoid setting restriction No_Elaboration_Code when
17829 processing an unit which is not the one being compiled.
17831 2007-06-06 Arnaud Charlet <charlet@adacore.com>
17833 * s-arit64.adb: Replace System.Pure_Exceptions by Ada 05 syntax.
17834 Replace UC by Ada.UC
17836 * s-bitops.adb: Get rid of System.Pure_Exceptions.
17837 Replace UC by Ada.UC
17839 2007-06-06 Robert Dewar <dewar@adacore.com>
17841 * scng.adb: (Check_End_Of_Line): Deal with very long lines
17843 2007-06-06 Robert Dewar <dewar@adacore.com>
17845 * sem.ads, sem.adb (Semantics): Save and restore Global_Discard_Names
17846 Remove no longer used nodes.
17848 2007-06-06 Javier Miranda <miranda@adacore.com>
17849 Ed Schonberg <schonberg@adacore.com>
17850 Robert Dewar <dewar@adacore.com>
17852 * sem_ch10.ads, sem_ch10.adb (Analyze_Compilation_Unit): Disable check
17853 on obsolescent withed unit in case of limited-withed units.
17854 (Analyze_Compilation_Unit): Add guard to code that removed an
17855 instantiation from visibility, to prevent compiler aborts when
17856 instantiation is abandoned early on.
17857 (Install_Limited_Withed_Unit): Recognize a limited-with clause on the
17858 current unit being analyzed, and Distinguish local incomplete types
17859 from limited views of types declared elsewhere.
17860 (Build_Limited_Views.Decorate_Tagged_Type): Add documentation
17861 to state that the class-wide entity is shared by the limited-view
17863 (Analyze_With_Clause): Improve placement of flag for case of
17864 unimplemented unit.
17865 (Analyze_With_Clause): Recognize use of GNAT.Exception_Traces in a
17866 manner similar to GNAT.Current_Exception. This is a violation of
17867 restriction (No_Exception_Propagation), and also inhibits the
17868 optimization of local raise to goto.
17869 (Analyze_With_Clause): Check for Most_Recent_Exception being with'ed,
17870 and if so set Most_Recent_Exception_Used flag in Opt, and also check
17871 for violation of restriction No_Exception_Propagation.
17873 2007-06-06 Javier Miranda <miranda@adacore.com>
17874 Hristian Kirtchev <kirtchev@adacore.com>
17875 Gary Dismukes <dismukes@adacore.com>
17877 * sem_ch11.adb (Analyze_Exception_Handlers): Add barrier to avoid the
17878 use of entity Exception_Occurrence if it is not available in the
17881 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): When
17882 concurrent types are declared within an Ada 2005 generic, build their
17883 corresponding record types since they are needed for overriding-related
17885 (Analyze_Protected_Type): Rearrange and simplify code for testing that a
17886 protected type does not implement a task interface or a nonlimited
17888 (Analyze_Task_Type): Rearrange and simplify code for testing that a task
17889 type does not implement a protected interface or a nonlimited interface.
17890 (Single_Task_Declaration, Single_Protected_Declaration): use original
17891 entity for variable declaration, to ensure that debugging information
17892 is correcty generated.
17893 (Analyze_Protected_Type, Analyze_Task_Type): Do not call expander
17894 routines if the expander is not active.
17895 (Analyze_Task_Body): Mark all handlers to stop optimization of local
17896 raise, since special things happen for task exception handlers.
17898 * sem_disp.adb (Check_Controlling_Formals): Add type retrieval for
17899 concurrent types declared within a generic.
17900 (Check_Dispatching_Operation): Do not emit warning about late interface
17901 operations in the context of an instance.
17902 (Check_Dispatching_Call): Remove restriction against calling a
17903 dispatching operation with a limited controlling result.
17904 (Check_Dispatching_Operation): Replace calls to Fill_DT_Entry and
17905 Register_Interface_DT_Entry by calls to Register_Primitive.
17906 (Check_Dispatching_Formals): Handle properly a function with a
17907 controlling access result.
17909 2007-06-06 Robert Dewar <dewar@adacore.com>
17910 Arnaud Charlet <charlet@adacore.com>
17912 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Stream_Size):
17913 Check for restriction No_Implementation_Attributes if in Ada 95 mode.
17914 (Storage_Pool): Do not crash when RE_Stack_Bounded_Pool is not available
17915 (Analyze_Attribute_Definition_Clause [External_Tag]): Generate error
17916 message when using a VM, since this attribute is not supported.
17917 (Analyze_Record_Representation_Clause): Give unrepped component warnings
17919 * usage.adb: Add new warning for renaming of function return objects
17920 Indicate that -gnatwp and -gnatwP concern front-end inlining
17921 Add line for -gnatyg
17922 Add usage information for -gnatw.c/C
17924 2007-06-06 Robert Dewar <dewar@adacore.com>
17925 Ed Schonberg <schonberg@adacore.com>
17928 (Find_Var): Do not consider function call in test for infinite loop
17929 warning if warnings set off for function entity.
17930 (One_Bound): Do not create a temporary for a loop bound if it is a
17932 (Analyze_Assignment): Traverse the right hand side of an assignment and
17933 mark all allocators as static coextensions.
17934 (Analyze_Assignment): Exempt assignments involving a dispatching call
17935 to a function with a controlling access result from the check requiring
17936 the target to be class-wide.
17938 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
17939 Ed Schonberg <schonberg@adacore.com>
17940 Robert Dewar <dewar@adacore.com>
17941 Javier Miranda <miranda@adacore.com>
17943 * sem_res.ads, sem_res.adb (Process_Allocator): Do not propagate the
17944 chain of coextensions when an allocator serves as the root of such a
17946 (Propagate_Coextensions): Remove the test for the root being an
17948 (Resolve_Allocator): Add condition to ensure that all future decoration
17949 occurs on an allocator node. Add processing and cleanup for static
17951 (Valid_Conversion): If the operand type is the limited view of a
17952 class-wide type, use the non-limited view is available to determine
17953 legality of operation.
17954 (Ambiguous_Character): move to spec, for use elsewhere.
17955 (Ambiguous_Character): Handle Wide_Wide_Character in Ada 2005 mode
17956 (Resolve_Range): Diagnose properly an ambiguous range whose bounds are
17957 character literals.
17958 (Resolve_Arithmetic_Op): Call Activate_Division_Check instead of setting
17959 Do_Division_Check flag explicitly.
17960 (Resolve_Actuals): If the actual is of a synchronized type, and the
17961 formal is of the corresponding record type, this is a call to a
17962 primitive operation of the type, that is declared outside of the type;
17963 the actual must be unchecked-converted to the type of the actual
17964 (Resolve_Call): Kill all current values for any subprogram call if
17965 flag Suppress_Value_Tracking_On_Call is set.
17966 (Resolve_Type_Conversion): Generate error message the the operand
17967 or target of interface conversions come from a limited view.
17968 (Check_Infinite_Recursion): Ignore generated calls
17969 (Check_Allocator_Discrim_Accessibility): New procedure for checking
17970 that an expression that constrains an access discriminant in an
17971 allocator does not denote an object with a deeper level than the
17972 allocator's access type.
17973 (Resolve_Allocator): In the case of an allocator initialized by an
17974 aggregate of a discriminated type, check that associations for any
17975 access discriminants satisfy accessibility requirements by calling
17976 Check_Allocator_Discrim_Accessibility.
17977 (Resolve_Equality_Op): Handle comparisons of anonymous access to
17978 subprogram types in the same fashion as other anonymous access types.
17979 (Resolve_Concatenation_Arg): Remove initial character '\' in an error
17980 message that is not a continuation message.
17981 (Resolve_Type_Conversion): Add missing support for conversion to
17983 (Resolve_Actuals): Introduce a transient scope around the call if an
17984 actual is a call to a function returning a limited type, because the
17985 resulting value must be finalized after the call.
17986 (Resolve_Actuals): If the call was given in prefix notations, check
17987 whether an implicit 'Access reference or implicit dereference must be
17988 added to make the actual conform to the controlling formal.
17990 2007-06-06 Robert Dewar <dewar@adacore.com>
17991 Javier Miranda <miranda@adacore.com>
17993 * sem_ch7.adb (Check_Anonymous_Access_Types): Fix error for null body
17994 (Derive_Inherited_Private_Subprogram): Code cleanup. In case of explicit
17995 overriding of an inherited private subprogram now there is no need to
17996 inherit its dispatching slot and reduce the size of the dispatch table.
17997 Set_All_DT_Position now ensures that the same slot is now assigned to
17998 both entities. This is required to statically build the dispatch table.
17999 (Declare_Inherited_Private_Subprograms): Rewriten to avoid the need
18000 of calling Set_All_DT_Position to re-evaluate the position of the
18001 entries in the dispatch table. Such reevaluation is not desired if
18002 the tagged type is already frozen.
18004 2007-06-06 Hristian Kirtchev <kirtchev@adacore.com>
18005 Gary Dismukes <dismukes@adacore.com>
18006 Robert Dewar <dewar@adacore.com>
18007 Javier Miranda <miranda@adacore.com>
18009 * sem_util.ads, sem_util.adb (May_Be_Lvalue): A prefix of an attribute
18010 reference acts as an lvalue when the attribute name modifies the prefix
18011 (Is_Coextension_Root): New routine.
18012 (Mark_Static_Coextensions): New routine.
18013 (Type_Access_Level): Revise code for checking the level of the
18014 anonymous access type of a return object.
18015 (Safe_To_Capture_Value): Not safe to capture if Address_Taken
18016 (Matches_Prefixed_View_Profile): Remove the no longer necessary
18017 retrieval of the corresponding controlling record type.
18018 (Find_Overridden_Synchronized_Primitive): Code cleanup. Add handling of
18019 concurrent types declared within a generic as well as class wide types.
18020 Emit a mode incompatibility error whenever a protected entry or routine
18021 override an interface routine whose first parameter is not of mode
18022 "out", "in out" or access to variable.
18023 (Overrides_Synchronized_Primitive): Rename to
18024 Find_Overridden_Synchronized_Primitive.
18025 (Collect_Interface_Components): New subprogram that collects all the
18026 components of a tagged record containing tags of secondary dispatch
18028 (Add_Global_Declaration): New procedure
18029 (Abstract_Interface_List): Handle properly the case of a subtype of a
18031 (Type_Access_Level): In the case of a type whose parent scope is a
18032 return statement, call Type_Access_Level recursively on the enclosing
18033 function's result type to determine the level of the return object's
18035 (Build_Elaboration_Entity): Build name of elaboration entity from the
18036 scope chain of the entity, rather than the unit name of the file name.
18037 (Check_Nested_Access): New procedure.
18038 (Has_Up_Level_Access, Set_Has_Up_Level_Access): New procedures.
18039 (Find_Direct_Name, Note_Possible_Modification): Use Check_Nested_Access.
18040 (Get_Renamed_Entity): Utility routine for performing common operation
18041 of chasing the Renamed_Entity field of an entity.
18043 2007-06-06 Robert Dewar <dewar@adacore.com>
18045 * sem_elab.adb (Check_A_Call): Specialize elaboration warnings on
18047 (Check_A_Call): Add check for entry call which was causing blowup
18049 2007-06-06 Olivier Hainque <hainque@adacore.com>
18051 * raise-gcc.c (__gnat_eh_personality): Tweak the signature and add
18052 special code on ia64-vms to handle major incompatibilities between the
18053 GCC unwinding ABI and the VMS Condition Handling Facility, both calling
18054 this routine with a very different set of arguments and expectations on
18057 2007-06-06 Thomas Quinot <quinot@adacore.com>
18059 * socket.c (__gnat_close_signalling_fd): New function.
18060 (__gnat_safe_gethostbyaddr, __gnat_safe_gethostbyname,
18061 __gnat_safe_getservbyname, __gnat_safe_getservbyport):
18062 New supporting functions for task safe Netdb operations.
18064 2007-06-06 Thomas Quinot <quinot@adacore.com>
18065 Olivier Hainque <hainque@adacore.com>
18067 * a-except-2005.ads, a-except-2005.adb
18068 (Raise_From_Controlled_Operation): New procedure in
18069 (private part of) Ada.Exceptions (standard runtime version). Used to
18070 provide informational exception message when Program_Error is raised as
18071 a result of an Adjust or Finalize operation propagating an exception.
18072 (Rmsg_28): Fix description for E.4(18) check.
18073 (Raise_Current_Excep): Call Debug_Raise_Exception just before
18074 propagation starts, to let debuggers know about the event in a reliable
18076 Take the address of E and dereference to make sure it is homed on stack
18077 and prevent the stores from being deleted, necessary for proper
18078 debugger behavior on "break exception" hits.
18079 (Local_Raise): Moved to System.Exceptions
18081 * s-finimp.adb (Raise_From_Finalize): Code to construct an appropriate
18082 exception message from the current occurrence and raise Program_Error
18083 has been moved to Ada.Exceptions.Raise_From_Controlled_Operation.
18085 2007-06-06 Jose Ruiz <ruiz@adacore.com>
18086 Arnaud Charlet <charlet@adacore.com>
18088 * s-taprob.adb (Unlock): Change the ceiling priority of the underlying
18091 * s-taprop.ads (Set_Ceiling): Add this procedure to change the ceiling
18092 priority associated to a lock.
18094 * s-tpoben.adb ([Vulnerable_]Complete_Task, Lock_Entries): Relax
18095 assertion to take into account case of no abort restriction.
18096 (Initialize_Protection_Entries): Add initialization for the field
18097 New_Ceiling associated to the protected object.
18098 (Unlock_Entries): Change the ceiling priority of the underlying lock, if
18101 * s-solita.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
18102 since this function needs to be set consistently with Update_Exception.
18104 * s-tarest.adb (Get_Current_Excep): Moved back to s-tasini/s-tarest,
18105 since this function needs to be set consistently with Update_Exception.
18107 * s-taskin.ads: Update comments on
18108 Interrupt_Server_Blocked_On_Event_Flag.
18109 (Unbind_Handler): Fix handling of server_task wakeup
18110 (Server_Task): Set self's state so that Unbind_Handler can take
18111 appropriate actions.
18112 (Common_ATCB): Now use a constant from System.Parameters to determine
18113 the max size of the Task_Image field.
18115 * s-tassta.adb (Task_Wrapper): Now pass the overflow guard to the
18116 Initialize_Analyzer function.
18117 ([Vulnerable_]Complete_Task, Lock_Entries): Relax assertion to
18118 take into account case of no abort restriction.
18119 ([Vulnerable_]Complete_Master): Modify assertion.
18121 * s-tataat.adb (Finalize): Use the nestable versions of
18122 Defer/Undefer_Abort.
18124 * s-tpobop.adb (Protected_Entry_Call): Relax assertion.
18126 * s-tpobop.ads: Update comments.
18128 * s-tposen.adb (Protected_Single_Entry_Call): Call Lock_Entry instead
18129 of locking the object manually, to avoid inconsistencies between
18130 Lock/Unlock_Entry assertions.
18132 * s-interr.ads, s-interr.adb (Server_Task): Fix race condition when
18134 application and System.Parameters.No_Abort is True.
18135 Update comments on Interrupt_Server_Blocked_On_Event_Flag.
18136 (Unbind_Handler): Fix handling of server_task wakeup
18137 (Server_Task): Set self's state so that Unbind_Handler can take
18138 appropriate actions.
18140 2007-06-06 Thomas Quinot <quinot@adacore.com>
18142 * s-finroo.ads, s-finroo.adb (Read, Write): Use null procedure
18143 declarations instead of an explicit null body, for conciseness.
18145 2007-06-06 Robert Dewar <dewar@adacore.com>
18147 * sem_eval.adb (Eval_Relational_Op): nothing to do if an operand is an
18148 illegal aggregate and the type is still Any_Composite.
18149 (Subtypes_Statically_Match): Fix problem of empty discriminant list
18151 2007-06-06 Ed Schonberg <schonberg@adacore.com>
18153 * sem_smem.adb (Check_Shared_Var): Check explicitly for as task object,
18154 to prevent subsequent expansion.
18156 2007-06-06 Robert Dewar <dewar@adacore.com>
18158 * sinput-l.ads, sinput-l.adb: implement a new pragma No_Body
18160 2007-06-06 Ed Schonberg <schonberg@adacore.com>
18161 Robert Dewar <dewar@adacore.com>
18163 * sprint.ads, sprint.adb (Sprint_Node_Actual): Output aggregate for
18165 (Write_Itype): Handle case of string literal subtype, which
18166 comes up in this context.
18167 (Update_Itype): when debugging expanded code, update sloc of itypes
18168 associated with defining_identifiers and ranges, for gdb use.
18169 (Sprint_Node_Actual): Add static keyword to object or exception
18170 declaration output if Is_Statically_Allocated is True.
18171 (Sprint_End_Label): Set entity of end marker for a subprogram, package,
18172 or task body, so that the tree carries the proper Sloc information for
18174 (Write_Indent): In Dump_Source_Text mode, ignore implicit label nodes
18176 2007-06-06 Arnaud Charlet <charlet@adacore.com>
18178 * s-secsta.adb (Chunk): Ensure this object has a static size known at
18179 compile time, to avoid dynamic memory allocation
18180 (Elaboration code): Only use dynamic memory allocation when needed.
18182 2007-06-06 Quentin Ochem <ochem@adacore.com>
18184 * s-stausa.ads, s-stausa.adb (Initialize_Analyzer): Added parameter
18186 (Stack_Analyzer): Added field "Overflow_Guard"
18187 (Task_Result): Added field "Overflow_Guard".
18188 (Index_Str): New constant.
18189 (Task_Name_Str): New constant.
18190 (Actual_Size_Str): New constant.
18191 (Pattern_Array_Element_Size): New constant.
18192 (Get_Usage_Range): New subprogram.
18193 (Output_Result): Added parameter Max_Size_Len and Max_Actual_Use_Len.
18194 Now align the output.
18196 (Initialize): Added value for Overflow_Guard.
18197 (Fill_Stack): Use constant Pattern_Array_Elem_Size when relevant.
18198 Update the value of the overflow guard according to the actual
18199 beginning of the pattern array.
18200 (Initialize_Analyzer): Added parameter Overflow_Guard.
18201 Take this parameter into accound when computing the max size.
18202 (Compute_Result): Use constant Pattern_Array_Elem_Size when relevant.
18203 (Report_Result): Removed extra useless procedure.
18204 Updated call to Output_Result.
18205 Moved full computation of the Task_Result here.
18207 2007-06-06 Thomas Quinot <quinot@adacore.com>
18209 * g-soccon-darwin.ads, gen-soccon.c: Add new constant
18210 Thread_Blocking_IO, always True by default, set False on a per-runtime
18212 Add Windows-specific constants
18213 Add new constant Need_Netdb_Buffer.
18214 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
18215 not, whether to use getXXXbyYYY_r.
18217 * gsocket.h: Add new constant Need_Netdb_Buffer.
18218 Add new macros to indicate whether getXXXbyYYY is thread safe and, if
18219 not, whether to use getXXXbyYYY_r.
18221 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
18223 * s-stoele.ads, s-stoele.adb: Move inline_always subprograms earlier
18224 than their first call.
18225 Add type Dummy_Communication_Block used in the generation of the pre-
18226 defined dispatching primitive _disp_asynchronous_select.
18227 (Storage_Element): Put Pragma Universal_Aliasing on it.
18229 2007-06-06 Vincent Celier <celier@adacore.com>
18231 * a-dirval-vms.adb, a-dirval.ads, a-dirval.adb (Windows): New Boolean
18234 * a-dirval-mingw.adb (Is_Valid_Path_Name): Forbid a path with a drive
18235 letter if it is not followed by a '/' or a '\'.
18236 (Windows): New Boolean function
18238 * a-direct.ads, a-direct.adb: Remove unnecessary and misplaced pragma
18240 (Containing_Directory): On Windows, keep at least one '/' or '\' after a
18242 (Containing_Directory): Raise Use_Error when the directory is a root
18244 (Extension): When returning the result, use a conversion to Result_Type,
18245 not a qualification.
18247 2007-06-06 Robert Dewar <dewar@adacore.com>
18249 * stylesw.ads, stylesw.adb (Set_GNAT_Style_Check): New procedure
18250 (Set_Style_Check_Options): Recognize new -gnatyg style switch
18252 * switch-c.adb (Scan_Front_End_Switches, case -gnatg): Set
18253 Warn_On_Non_Local_Exception to False, to turn off warnings for
18254 No_Exception_Propagation in ZFP runtime.
18255 (Scan_Front_End_Switches): Fix handling of --RTS switch for non GCC
18257 (Scan_Front_End_Switches): For 'g', call Set_GNAT_Style_Checks
18259 2007-06-06 Vincent Celier <celier@adacore.com>
18261 * switch-b.adb (Scan_Binder_Switches): Add processing for new
18264 * switch-m.adb (Normalize_Compiler_Switches): Do not record switch -E
18265 (Scan_Make_Switches): Recognize new switch -aP
18267 2007-06-06 Matthew Gingell <gingell@adacore.com>
18268 Jose Ruiz <ruiz@adacore.com>
18270 * s-stchop-vxworks.adb (Set_Stack_Info): Instead of trying to map the
18271 VxWorks task descriptor in the Ada run time, call a C subprogram
18272 (__gnat_get_stack_info) that extracts the required information.
18274 * sysdep.c: Back out temporary lynxos workaround.
18275 (__gnat_get_stack_info): Add this procedure that passes to the Ada run
18276 time the stack information associated to the currently executing task.
18277 Only VxWorks systems require this function.
18279 2007-06-06 Eric Botcazou <ebotcazou@adacore.com>
18281 * tracebak.c (FRAME_OFFSET): Add parameter FP. On SPARC/Solaris, do not
18282 add the stack bias if the offset is computed from a frame address.
18283 (__gnat_backtrace): Adjust for above change.
18285 2007-06-06 Thomas Quinot <quinot@adacore.com>
18287 * types.h, types.ads: Rename PE_Illegal_CW_Actual_E_4_18 to
18288 PE_Non_Transportable_Actual.
18289 (By_Descriptor_Last): New constant.
18290 (By_Copy_Return): Likewise.
18292 2007-06-06 Vincent Celier <celier@adacore.com>
18294 * vms_conv.adb (Process_Argument): Keep arguments starting with '+' as
18297 * vms_data.ads: Add entries for -gnatw.x and -gnatw.X
18298 /STYLE_CHECKS=GNAT: Change meaning to -gnatyg
18299 /GNAT_INTERNAL: New compiler qualifier corresponding to -gnatg
18300 Add missing comment for /OPTIMIZE=SPACE
18301 Add entry for OPTIMIZE=SPACE
18302 Add new qualifier /ALL_PROJECTS (= -U) for GNAT LIST
18303 Add documentation for new qualifiers corresponding to -gnatw.c/.C
18305 2007-06-06 Vincent Celier <celier@adacore.com>
18306 Robert Dewar <dewar@adacore.com>
18308 * xgnatugn.adb: Allow dots to be used in ug_words (-gnatw.c and
18311 * gnat_ugn.texi: Fix ordering of -g switch for gnatmake
18312 Document gnatbind switch -a
18313 (case Constructions): Document that variables declarations are allowed
18314 for previously declared variables.
18315 Fix external lib project example
18316 -gnatg: Indicate new VMS qualifier /GNAT_INTERNAL
18317 Indicate that "#if not X or Y then" is not allowed in input files to
18319 Document gnatw.x and gnatw.X warning flags
18320 Mention -Winline switch to activate warnings when back-end inlining is
18322 Add gnatcheck rule descriptions
18323 Describe how to use the GNAT driver to call a tool on a closure.
18324 Describe how to run project-wide checks or metrics.
18325 Document gnatbind's -R option
18326 Updated to account for Ada 2005 support
18328 * gnat_rm.texi (Case Construction): Allow variable declarations for
18329 previously declared variables.
18330 (Representation Clauses and Pragmas): Lift restriction on alignment
18331 clauses for record types.
18332 (Ada.Characters.*): Fix typo in reference to A.3.3(27).
18333 Document No_Exception_Propagation restriction
18334 Document No_Body pragma
18335 Updated to account for Ada 2005 support; corrected some typos
18336 (Implementation Defined Pragmas): Document pragma Universal_Aliasing.
18338 * gnat-style.texi: Make it clear that we never use mode IN for
18339 procedures or functions
18341 * ug_words: Add entries for -gnatw.x and -gnatw.X
18342 Add entries for -gnatw.c/.C
18344 2007-06-06 Pascal Obry <obry@adacore.com>
18345 Vincent Celier <celier@adacore.com>
18347 * makegpr.adb (Add_Archive_Path): Use untouched object and library
18348 dirs and library name.
18349 (Build_Global_Archive): Idem. Minor code clean-up. Removes duplicate
18351 (Build_Library): Idem.
18352 (Compile_Individual_Sources): Idem.
18353 (Compile_Link_With_Gnatmake): Idem.
18354 (Compile_Sources): Idem.
18355 (Get_Imported_Directories): Idem.
18356 (Link_Executables): Idem. Same change for the executable dir.
18357 (Check_Compilation_Needed): C_Source_Path new variable containing
18358 the canonical form of Source_Path to check against the source names
18359 in the dependency file.
18360 (Build_Global_Archive, Compile_Individual_Sources, Compile_Sources): In
18361 verbose mode, display the name of the object directory we're changing
18363 (Saved_Switches): New name of table X_Switches
18364 (Scan_Arg): Recognize new switch -aP and save in table Saved_Switches
18365 (Usage): New line for switch -aP
18366 (Get_Imported_Directories.Add): Make sure that Add_Arg is True before
18367 testing if a directory should be added to the search path.
18369 2007-06-06 Javier Miranda <miranda@adacore.com>
18371 * a-cidlli.ads, a-cdlili.ads, a-cohama.ads, a-coinve.ads,
18372 a-convec.ads (Empty_Vector, Empty_Map, Empty_List): Move this object
18373 declaration after freezing point of all its associated tagged types;
18374 otherwise such types are frozen too early.
18376 2007-06-06 Robert Dewar <dewar@adacore.com>
18378 * a-reatim.adb: Documentation addition
18380 * g-cgideb.adb: Minor code reorganization
18382 * tree_io.adb, treepr.adb, cstand.adb, krunch.adb, par.adb,
18383 mdll-utl.adb, par-ch5.adb, par-tchk.adb, s-exctab.ads, s-memory.ads,
18384 s-osprim.ads, s-restri.ads, s-soflin.ads: Minor reformatting.
18386 * debug.ads, debug.adb (Get_Debug_Flag_K): Remove unused obsolete
18387 function. Change name New_Scope to Push_Scope
18388 (Get_Debug_Flag_K): Remove unused obsolete function.
18390 * exp_ch8.adb, inline.adb, sem_ch8.ads: Change name New_Scope to
18393 * makeusg.adb: Update Copyright notice
18394 Add line for switch -aP
18396 * makeusg.adb: Fix wording of some usage messages
18398 * s-assert.adb (Raise_Assert_Failure): Add call to
18399 Debug_Raise_Assert_Failure.
18401 * s-unstyp.ads (type Packed_Bytes2): Change alignment to use 'Min
18402 (2, Standard'Alignment) for compatibility with AAMP (where alignment
18403 is restricted to 1).
18405 * s-wchjis.adb: Remove use of System.Pure_Exceptions
18407 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): Set the
18408 node location to No_Location when we're not debugging the expanded
18411 2007-05-22 Alexandre Oliva <aoliva@redhat.com>
18413 * misc.c (enumerate_modes): Consider log2_b to always be one.
18415 2007-05-14 Rafael Ávila de Espíndola <espindola@google.com>
18417 * misc.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
18419 2007-05-02 Pascal Obry <obry@adacore.com>
18421 * gnatchop.adb (Write_Source_Reference_Pragma): Change implementation
18422 to use Stream_IO.File_Type. This is needed to make use of the UTF-8
18423 encoding support of Stream_IO.
18424 (Write_Unit): Idem.
18426 * adaint.h, adaint.c (__gnat_os_filename): New routine. Returns the
18427 filename and corresponding encoding to match the OS requirement.
18428 (__gnat_file_exists): Do not call __gnat_stat() on Windows as this
18429 routine will fail on specific devices like CON: AUX: ...
18431 PR ada/29856: Add missing braces
18433 2007-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
18436 * ada-tree.h (lang_tree_node): Fix typo in chain_next.
18438 2007-04-21 Jan Hubicka <jh@suse.cz>
18440 * misc.c (gnat_expand_body): Don't call target for destructors,
18441 avoid redundant check on syntax errors.
18443 2007-04-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
18445 * ada-tree.h (lang_tree_node): Use GENERIC_NEXT
18446 instead of checking GIMPLE_STMT_P in chain_next.
18448 2007-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
18451 * system-linux-alpha.ads: Disable constant condition warning for the
18452 Default_Bit_Order variable.
18453 * system-linux-s390.ads: Likewise.
18454 * system-linux-s390x.ads: Likewise.
18455 * system-linux-sparc.ads: Likewise.
18457 2007-04-06 Javier Miranda <miranda@adacore.com>
18458 Matt Heaney <heaney@adacore.com>
18459 Robert Dewar <dewar@adacore.com>
18461 a-coprnu.ads, a-cohata.ads, a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads,
18462 a-cgarso.ads, a-secain.ads, a-slcain.ads, a-shcain.ads, a-chtgke.ads,
18463 a-chtgke.ads, a-coprnu.ads, a-contai.ads, a-chtgke.ads, a-chtgke.adb,
18464 a-stwiha.ads, a-strhas.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
18465 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads, a-stzfix.ads,
18466 a-stzhas.ads, a-szuzha.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoio.ads,
18467 a-ztinio.ads, a-zttest.ads, a-zzunio.ads, a-astaco.ads, a-charac.ads,
18468 a-chlat1.ads, ada.ads, a-dynpri.ads, a-flteio.ads, a-fwteio.ads,
18469 a-inteio.ads, a-intnam.ads, a-ioexce.ads, a-iwteio.ads, a-lfteio.ads,
18470 a-lfwtio.ads, a-liteio.ads, a-liwtio.ads, a-llftio.ads, a-llfwti.ads,
18471 a-llitio.ads, a-lliwti.ads, a-ncelfu.ads, a-ngcefu.ads, a-ngelfu.ads,
18472 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads, a-nllcty.ads,
18473 a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads, a-nucoty.ads,
18474 a-nuelfu.ads, a-numeri.ads, a-sfteio.ads, a-sfwtio.ads, a-siteio.ads,
18475 a-siwtio.ads, a-ssitio.ads, a-ssiwti.ads, a-storio.ads, a-strfix.ads,
18476 a-string.ads, a-stwifi.ads, a-titest.ads, a-unccon.ads, a-uncdea.ads,
18477 a-wtcoio.ads, a-wtinio.ads, a-wttest.ads, calendar.ads, directio.ads,
18478 i-c.ads, ioexcept.ads, machcode.ads, sequenio.ads, text_io.ads,
18479 unchconv.ads, unchdeal.ads, a-widcha.ads, a-zchara.ads, a-stboha.ads,
18480 a-stfiha.ads, a-coteio.ads, a-envvar.ads, a-lcteio.ads, a-llctio.ads,
18481 a-scteio.ads, a-swbwha.ads, a-swfwha.ads, a-szbzha.ads, a-szfzha.ads,
18482 a-tiboio.ads, a-wwboio.ads, a-zzboio.ads, a-dispat.ads, a-tgdico.ads,
18483 expander.adb, g-socket.ads, par-labl.adb, sinput-c.adb, s-tarest.ads,
18484 s-stchop.ads, g-expect-vms.adb, s-taprop-lynxos.adb,
18485 s-taprop-tru64.adb, s-taprop-irix.adb,
18486 s-taprop-hpux-dce.adb, s-traceb-hpux.adb,
18487 s-taprop-linux.adb, s-taprop-dummy.adb, s-osprim-unix.adb,
18488 s-osprim-solaris.adb, s-taprop-solaris.adb, s-taprop-vms.adb,
18489 s-osprim-mingw.adb, s-taprop-mingw.adb, s-osprim-posix.adb,
18490 s-taprop-posix.adb, a-exexpr-gcc.adb, a-ststio.adb, a-ststio.ads,
18491 a-textio.adb, a-textio.ads, a-tideau.adb, a-tideau.ads, a-witeio.adb,
18492 a-witeio.ads, a-wtdeau.adb, a-wtdeau.ads, g-calend.adb, g-calend.ads,
18493 g-dirope.adb, g-expect.ads, gnatchop.adb, g-spipat.adb, g-spipat.ads,
18494 s-direio.adb, s-direio.ads, s-fatgen.adb, s-fatgen.ads, s-parint.adb,
18495 s-sequio.adb, s-sequio.ads, s-taprop.ads, s-valdec.adb, s-valdec.ads,
18496 s-valint.adb, s-valint.ads, s-vallld.adb, s-vallld.ads, s-vallli.adb,
18497 s-vallli.ads, s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
18498 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads, xref_lib.adb,
18499 s-stchop.adb, i-vxwork-x86.ads, a-crbtgo.ads, a-crbtgo.adb,
18500 a-coorse.ads, a-coorse.adb, a-cohama.ads, a-cohama.adb, a-ciorse.ads,
18501 a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-chtgop.ads, a-chtgop.ads,
18502 a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cihase.ads, a-cohase.adb,
18503 a-cohase.ads, a-swuwha.ads, a-ciormu.ads, a-coormu.ads, a-rbtgso.ads,
18504 a-stunha.ads, a-ciorma.adb, a-coorma.adb, a-ztdeau.adb, a-ztdeau.ads,
18505 a-ztexio.adb, a-ztexio.ads: Addition of null-exclusion to anonymous
18507 Update documentation.
18510 2007-04-06 Robert Dewar <dewar@adacore.com>
18512 * system-linux-ia64.ads, system-freebsd-x86.ads, system-lynxos-ppc.ads,
18513 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
18514 system-vxworks-sparcv9.ads, system-solaris-x86.ads, system-irix-o32.ads,
18515 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
18516 system-linux-x86.ads, system-vxworks-mips.ads, system-interix.ads,
18517 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
18518 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
18519 system-vxworks-alpha.ads, system-vms_64.ads, system-darwin-ppc.ads,
18520 system-vxworks-x86.ads, system-linux-ppc.ads, system-linux-hppa.ads,
18521 system-hpux-ia64.ads, targparm.adb,
18522 targparm.ads (Functions_Return_By_DSP_On_Target): Removed
18524 * system.ads: Move Functions_Return_By_DSP to obsolete section,
18525 kept for bootstrap purposes only.
18527 2007-04-06 Arnaud Charlet <charlet@adacore.com>
18529 * s-osinte-lynxos-3.ads, s-osinte-hpux.ads, s-osinte-solaris-posix.ads,
18530 s-osinte-freebsd.ads, s-osinte-aix.ads, s-osinte-darwin.ads,
18531 s-taprop-posix.adb (Create_Task): Fix handling of Task_Info.
18532 (PTHREAD_SCOPE_PROCESS, PTHREAD_SCOPE_SYSTEM): New constants.
18534 2007-04-06 Robert Dewar <dewar@adacore.com>
18536 * a-except.adb, a-except.ads, a-except-2005.ads, a-except-2005.adb
18537 (Local_Raise): New dummy procedure called when a raise is converted
18538 to a local goto. Used for debugger to detect that the exception
18541 * debug.adb: Document new d.g flag (expand local raise statements to
18542 gotos even if pragma Restriction (No_Exception_Propagation) is not set)
18544 * exp_sel.adb: Use Make_Implicit_Exception_Handler
18546 * exp_ch11.adb (Expand_Exception_Handlers): Use new flag -gnatw.x to
18547 suppress warnings for unused handlers.
18548 (Warn_If_No_Propagation): Use new flag -gnatw.x to suppress
18549 warnings for raise statements not handled locally.
18550 (Get_RT_Exception_Entity): New function
18551 (Get_Local_Call_Entity): New function
18552 (Find_Local_Handler): New function
18553 (Warn_If_No_Propagation): New procedure
18554 (Expand_At_End_Handler): Call Make_Implicit_Handler
18555 (Expand_Exception_Handlers): Major additions to deal with local handlers
18556 (Expand_N_Raise_Constraint_Error, Expand_N_Raise_Program_Error,
18557 Expand_N_Raise_Storage_Error, (Expand_N_Raise_Statement): Add handling
18560 * exp_ch11.ads (Get_RT_Exception_Entity): New function
18561 (Get_Local_Call_Entity): New function
18563 * gnatbind.adb (Restriction_List): Add No_Exception_Propagation to list
18564 of restrictions that the binder will never suggest adding.
18566 * par-ch11.adb (P_Exception_Handler): Set Local_Raise_Statements field
18569 * restrict.adb (Check_Restricted_Unit): GNAT.Current_Exception may not
18570 be with'ed in the presence of pragma Restriction
18571 (No_Exception_Propagation).
18573 * sem.adb (Analyze): Add entries for N_Push and N_Pop nodes
18575 * sem_ch11.adb (Analyze_Exception_Handler): If there is a choice
18576 parameter, then the handler is not a suitable target for a local raise,
18577 and this is a violation of restriction No_Exception_Propagation.
18578 (Analyze_Handled_Statements): Analyze choice parameters in exception
18579 handlers before analyzing statement sequence (needed for proper
18580 detection of local raise statements).
18581 (Analyze_Raise_Statement): Reraise statement is a violation of the
18582 No_Exception_Propagation restriction.
18584 * s-rident.ads: Add new restriction No_Exception_Propagation
18586 * tbuild.ads, tbuild.adb (Make_Implicit_Exception_Handler): New
18587 function, like Make_Exception_Handler but sets Local_Raise_Statements
18589 (Add_Unique_Serial_Number): Deal with case where this is called during
18590 processing of configuration pragmas.
18592 2007-04-06 Thomas Quinot <quinot@adacore.com>
18593 Pat Rogers <rogers@adacore.com>
18594 Pascal Obry <obry@adacore.com>
18596 * g-stsifd-sockets.adb: New file.
18598 * g-socthi.ads, g-socket.adb, g-socthi-vxworks.adb,
18599 g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi-vms.ads,
18600 g-socthi-vms.adb: Move signalling
18601 fd management to a nested package, so that they can conveniently be
18602 moved to a subunit that is shared across Windows, VMS, and VxWorks
18603 (Ada implementation) or completed with imported bodies from socket.c
18605 (Read_Signalling_Fd, Write_Signalling_Fd, Create_Signalling_Fds): New
18607 (Check_Selector): Use Read_Signalling_Fd to read and discard data from
18608 the signalling file descriptor.
18609 (Abort_Selector): Use Write_Signalling_Fd to write dummy data to the
18610 signalling file descriptor.
18611 (Create_Selector): Use new C-imported subprogram Create_Signalling_Fds
18612 instead of creating a pair of sockets for signalling here.
18614 * g-socthi.adb: Ditto.
18615 Set the runtime process to ignore SIGPIPEs on platforms that support
18616 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
18618 * g-socthi-mingw.adb: Ditto.
18619 (WS_Version): Use Windows 2.2.
18620 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
18622 * g-soliop-mingw.ads: Link with ws2_32 for Windows 2.x support.
18623 Use Winsock 2.2 (instead of 1.1) for the GNAT.Socket API.
18625 * Makefile.in: New libgnat pair g-stsifd.adb<g-stsifd-sockets.adb.
18626 added GNAT byte swapping facility
18627 Update FreeBSD THREADSLIB from -lc_r to -lpthread, for FreeBSD 6.
18629 * g-bytswa.adb, g-bytswa-x86.adb, g-bytswa.ads: New files.
18631 * socket.c (__gnat_read_signalling_fd, __gnat_write_controlling_fd):
18633 (__gnat_create_signalling_fds): New subprogram.
18634 Set the runtime process to ignore SIGPIPEs on platforms that support
18635 neither SO_NOSIGPIPE nor MSG_NOSIGNAL functionality.
18637 2007-04-06 Hristian Kirtchev <kirtchev@adacore.com>
18638 Vincent Celier <celier@adacore.com>
18640 * a-calend-vms.ads, a-calend.ads, a-calend.adb, a-calend-vms.adb:
18641 New version of Ada.Calendar which supports the new upper bound of Ada
18642 time (2399-12-31 86_399.999999999).
18643 The following modifications have been made to the package:
18644 - New representation of time as count of nanoseconds since the start of
18645 Ada time (1901-1-1 0.0).
18646 - Target independent Split and Time_Of routines which service both
18647 Ada 95 and Ada 2005 code.
18648 - Target independent interface to the Ada 2005 children of Calendar.
18649 - Integrated leap seconds into Ada 95 and Ada 2005 mode.
18650 - Handling of non-leap centenial years.
18651 - Updated clock function.
18652 - Updated arithmetic and comparison operators.
18654 * a-caldel.adb (To_Duration): Add call to target independent routine in
18655 Ada.Calendar to handle the conversion of time to duration.
18657 * sysdep.c (__gnat_localtime_tzoff): Test timezone before setting off
18659 If timezone is obviously incorrect (outside of -14 hours .. 14 hours),
18661 (__gnat_localtime_tzoff for Lynx and VxWorks): Even though these
18662 targets do not have a natural time zone, GMT is used as a default.
18663 (__gnat_get_task_options): New.
18665 * a-direct.adb (Modification_Time): Add with and use clauses for
18666 Ada.Calendar and Ada.
18667 Calendar.Formatting. Remove with clause for Ada.Unchecked_Conversion
18668 since it is no longer needed.
18669 (Duration_To_Time): Removed.
18670 (OS_Time_To_Long_Integer): Removed.
18671 (Modification_Time): Rewritten to use Ada.Calendar and Ada.Calendar.
18672 Formatting Time_Of routines which automatically handle time zones,
18673 buffer periods and leap seconds.
18675 * a-calari.ads, a-calari.adb ("+", "-", Difference): Add calls to
18676 target independent routines in Ada.Calendar.
18678 * a-calfor.ads, a-calfor.adb:
18679 Code cleanup and addition of validity checks in various routines.
18680 (Day_Of_Week, Split, Time_Of): Add call to target independent routine in
18683 * a-catizo.ads, a-catizo.adb (UTC_Time_Offset): Add call to target
18684 independent routine in Ada.Calendar.
18686 2007-04-06 Olivier Hainque <hainque@adacore.com>
18689 (convert_addresses): Adjust prototype and dummy definition to expect an
18690 extra file_name argument.
18692 * gmem.c (__gnat_convert_addresses): Wrapper to convert_addresses,
18693 filling the now expected file_name argument with the appropriate
18695 (__gnat_gmem_a2l_initialize, __gnat_gmem_read_next_frame): Use it.
18696 (tracebk): Array of void * instead of char *, corresponding to what
18697 convert_addresses expects.
18698 (exename): New static global, to hold the executable file name to be
18699 used in all convert_addresses invocations.
18700 (gmem_read_backtrace, __gnat_gmem_symbolic): Account for tracebk type
18702 (__gnat_gmem_a2l_initialize): Resolve exename.
18703 (__gnat_convert_addresses): Use exename as the convert_addresses
18704 file_name argument.
18706 * g-trasym.adb (Symbolic_Traceback): Adjust signature of imported
18707 "convert_addresses", now expecting a filename argument. Import the
18708 necessary entities to compute the filename to use and pass it to
18711 2007-04-06 Matt Gingell <gingell@adacore.com>
18713 * system-aix.ads: Back out previous change.
18714 (Functions_Return_By_DSP): Removed
18716 2007-04-06 Pascal Obry <obry@adacore.com>
18718 * s-osprim-mingw.adb (Timed_Delay): Use the right clock (standard one
18719 or the monotonic used by Ada.Real_Time) to compute the sleep duration
18722 2007-04-06 Jose Ruiz <ruiz@adacore.com>
18724 * s-osinte-vxworks.ads, s-osinte-vxworks.adb (VX_FP_TASK): Remove this
18725 function. Its value changes in different VxWorks versions, and it is
18726 now handled by the function __gnat_get_task_options.
18728 * s-taprop-vxworks.adb (Create_Task): Call the function
18729 __gnat_get_task_options to get the required options for creating a task.
18731 2007-04-06 Pascal Obry <obry@adacore.com>
18732 Thomas Quinot <quinot@adacore.com>
18734 * adaint.c: Replace all occurences of S2WS to S2WSU (Unicode) when
18735 dealing with filename.
18736 (__gnat_fopen): Call the proper macro (8bits or UTF8) to convert the
18737 filename from a standard string to a wide-string depending on the
18739 (__gnat_freopen): Idem.
18740 (__gnat_current_time): New function (wrapper for time(3) standard C
18743 * g-os_lib.ads (Current_Time): New function. Returns the current
18744 system time as an OS_Time value.
18746 * s-osprim.ads (Clock): Add more precise definition of UNIX epoch.
18747 (Monotonic_Clock): Same.
18749 2007-04-06 Quentin Ochem <ochem@adacore.com>
18751 * ali.ads, ali.adb (Get_Nat): Raise an exception if the file cursor is
18753 (Scan_ALI): Cancel the xref line if there has been a reading ALI error.
18755 2007-04-06 Jose Ruiz <ruiz@adacore.com>
18757 * a-retide.adb: Add elaboration code to ensure that the tasking run
18758 time is initialized when using delay operations even when no task is
18761 2007-04-06 Javier Miranda <miranda@adacore.com>
18763 * a-tags.ads, a-tags.adb (Object_Specific_Data): Remove
18764 component Num_Prim_Ops.
18765 (Set_Num_Prim_Ops): Removed.
18766 Remove all the assertions because all the routines of this
18767 package are inline always.
18768 (Get_Offset_Index): Add support to primary dispatch tables.
18769 Move the documentation about the dispatch table to a-tags.ads
18770 (Set_External_Tag): Removed
18771 (Inherit_TSD): Removed.
18772 (Interface_Data_Element, Interfaces_Array, Interface_Data): Declarations
18773 moved to a-tags.ads
18774 (Displace, IW_Membership, Inherit_TSD, Interface_Ancestor_Tags,
18775 Register_Interface_Tag, Set_Offset_To_Top): Update all the occurrences
18776 of the TSD field "Table" because this field has been renamed to
18778 (Inherit_CPP_DT): Removed.
18779 (K_Typeinfo, K_Offset_To_Top, K_Tagged_Kind, K_Signature,
18780 Cstring, Tag_Table, Type_Specific_Data, Dispatch_Table): These
18781 declarations have been moved to a-tags.ads
18782 (Check_Size): Removed.
18783 (Expanded_Name): Updated to get access to the new field of TSD
18784 containing the address of the expanded name.
18785 (Get_Access_Level/Set_Access_Level): Removed.
18786 (Get_Predefined_Prim_Op_Address): Removed.
18787 (Set_Predefined_Prim_Op_Address): Removed.
18788 (Get_Prim_Op_Address/Set_Prim_Op_Address): Removed.
18789 (Get_Remotely_Callable/Set_Remotely_Callable): Removed.
18790 (Set_Expanded_Name): Removed.
18791 (Inherit_DT): Removed.
18792 (Inherit_CPP_DT): Removed.
18793 (Set_RC_Offset): Removed.
18794 (Set_TSD): Removed.
18795 (Base_Address): New function that displaces "this" to point to the base
18796 of the object (that is, to point to the primary tag of the object).
18798 2007-04-06 Ed Schonberg <schonberg@adacore.com>
18799 Javier Miranda <miranda@adacore.com>
18801 * exp_ch3.ads, exp_ch3.adb (Analyze_N_Full_Type_Declaration): For an
18802 anonymous access component, do not create a master_id if type already
18803 has one, as may happen if the type is a subcomponent of a packed array
18805 (Build_Init_Procedure, Component_Needs_Simple_Initialization,
18806 Initialize_Tag): Remove code associated with the old CPP pragmas.
18807 CPP_Virtual and CPP_Vtable are no longer supported.
18808 (Build_Offset_To_Top_Internal): Add support for concurrent record types
18809 (Build_Offset_To_Top_Functions): Add support for concurrent record types
18810 (Freeze_Record_Type): Remove call to
18811 Init_Predefined_Interface_Primitives.
18812 (Init_Secondary_Tags.Initialize_Tag): New subprogram containing all the
18813 code required to initialize the tags of the secondary dispatch tables.
18814 This leaves the algoritm more clear.
18815 (Init_Secondary_Tags): Add support for concurrent record types
18816 (Make_Predefined_Primitive_Specs): Code cleanup.
18817 (Predefined_Primitive_Bodies): Code cleanup.
18818 (Build_Master_Renaming): New local subprogram.
18819 (Expand_N_Full_Type_Declaration): Build the master_id associated with
18820 anonymous access to task type components.
18821 (Expand_N_Subtype_Indication): The bounds of a range constraint in a
18822 subtype indication are resolved during analysis, and must not be done
18824 (Stream_Operation_OK): Check Restriction_Active before RTE_Available.
18826 2007-04-06 Geert Bosch <bosch@adacore.com>
18827 Ed Schonberg <schonberg@adacore.com>
18828 Javier Miranda <miranda@adacore.com>
18829 Bob Duff <duff@adacore.com>
18831 * exp_ch4.adb (Expand_N_Type_Conversion): Remove special processing
18832 for conversion of a Float_Type'Truncation to integer.
18834 * exp_attr.adb (Is_Inline_Floating_Point_Attribute): New function to
18835 check if a node is an attribute that can be handled directly by the
18837 (Expand_N_Attribute_Reference): Suppress expansion of floating-point
18838 attributes that can be handled directly by the back end.
18839 (Expand_N_Attribute_Reference, case 'Access and 'Unchecked_Access):
18840 use new predicate Is_Access_Protected_Subprogram_Type.
18841 (Expand_N_Attribute_Reference, case 'Write): The reference is legal for
18842 and Unchecked_Union if it is generated as part of the default Output
18843 procedure for a type with default discriminants.
18844 (Expand_N_Attribute_Reference): Avoid the expansion of dispatching calls
18845 if we are compiling under restriction No_Dispatching_Calls.
18846 (Constrained): Use Underlying_Type, in case the type is private without
18847 discriminants, but the full type has discriminants.
18848 (Expand_N_Attribute_Reference): Replace call to Get_Access_Level by
18849 call to Build_Get_Access_Level.
18850 (Expand_N_Attribute_Reference): The use of 'Address with class-wide
18851 interface objects requires a call to the run-time subprogram that
18852 returns the base address of the object.
18853 (Valid_Conversion): Improve error message on illegal attempt to store
18854 an anonymous access to subprogram value into a record component.
18856 * sem_res.adb (Resolve_Equality_Op): Detect ambiguity for "X'Access =
18858 (Simplify_Type_Conversion): New procedure that performs simplification
18859 of Int_Type (Float_Type'Truncation (X)).
18860 (Resolve_Type_Conversion): Call above procedure after resolving operand
18861 and before performing checks. This replaces the existing ineffective
18863 (Set_String_Literal_Subtype): When creating the internal static lower
18864 bound subtype for a string literal, use a newly created copy of the
18865 subtree representing the lower bound.
18866 (Resolve_Call): Exclude build-in-place function calls from transient
18867 scope treatment. Update comments to describe this exception.
18868 (Resolve_Equality_Op): In case of dispatching call check violation of
18869 restriction No_Dispatching_Calls.
18870 (Resolve_Call): If the call returns an array, the context imposes the
18871 component type of the array, and the function has one non-defaulted
18872 parameter, rewrite the call as the indexing of a call with a single
18873 parameter, to handle an Ada 2005 syntactic ambiguity for calls written
18875 (Resolve_Actuals): If an actual is an allocator for an access parameter,
18876 the master of the created object is the innermost enclosing statement.
18877 (Remove_Conversions): For a binary operator, check if type of second
18878 formal is numeric, to check if an abstract interpretation is present
18879 in the case of exponentiation as well.
18881 2007-04-06 Ed Schonberg <schonberg@adacore.com>
18882 Bob Duff <duff@adacore.com>
18884 * atree.h, atree.ads, atree.adb (Copy_Node_With_Replacement): When
18885 copying a parameter list in a call, set properly the First_Named_Formal
18886 and Next_Named_Formal fields in the new list and in the enclosing call.
18887 (Watch_Node,New_Node_Breakpoint,New_Node_Debugging_Output): Shorten
18888 names, to ease typing in the debugger. Improve comments.
18889 (Watch_Node): New variable, intended to be set in the debugger.
18890 (New_Node_Breakpoint): New do-nothing procedure to set a breakpoint on,
18891 called when the watched node is created.
18892 (New_Node_Debugging_Output): Combined version of local procedures
18893 New_Node_Debugging_Output and New_Entity_Debugging_Output, now global,
18894 with a parameter so that conditional breakpoints like "if Node = 12345"
18896 (New_Node, New_Entity): Call the global New_Node_Debugging_Output.
18897 Add Elist1 function
18899 2007-04-06 Thomas Quinot <quinot@adacore.com>
18900 Ed Schonberg <schonberg@adacore.com>
18901 Gary Dismukes <dismukes@adacore.com>
18903 * checks.ads, checks.adb (Selected_Range_Checks): No range check is
18904 required for a conversion between two access-to-unconstrained-array
18906 (Expr_Known_Valid): Validity checks do not apply to discriminants, but
18907 to discriminant constraints on discriminant objects. This rule must
18908 apply as well to discriminants of protected types in private components.
18909 (Null_Exclusion_Static_Checks): If No_Initialization is set on an
18910 object of a null-excluding access type then don't require the
18911 the object declaration to have an expression and don't emit a
18914 2007-04-06 Arnaud Charlet <charlet@adacore.com>
18915 Eric Botcazou <botcazou@adacore.com>
18917 * gnatvsn.ads, comperr.adb (Get_Gnat_build_Type): Renamed Build_Type
18920 * comperr.ads, comperr.adb (Compiler_Abort): Add third parameter
18921 Fallback_Loc. Use it as the sloc info when Current_Error_Node doesn't
18924 * fe.h (Compiler_Abort): Add third parameter.
18926 * misc.c (internal_error_function): Build third argument from current
18927 input location and pass it to Compiler_Abort.
18929 2007-04-06 Gary Dismukes <dismukes@adacore.com>
18931 * cstand.adb (Create_Standard): When the target's storage unit size is
18932 greater than a byte, set Has_Non_Standard_Rep and Has_Pragma_Pack on
18935 2007-04-06 Nicolas Roche <roche@adacore.com>
18937 * cstreams.c (__gnat_full_name): Fix issues on VxWorks 6.x for which
18938 absolute path can have the following form: device:/a/b. In this case
18939 '/' should be inserted between the path and the filename.
18941 2007-04-06 Olivier Hainque <hainque@adacore.com>
18942 Eric Botcazou <botcazou@adacore.com>
18944 * decl.c (gnat_to_gnu_entity) <E_Constant>: Associate an external
18945 VAR_DECL to a CONST_DECL we make for a public constant when we know the
18946 corresponding definition has created the so made visible variable.
18947 Handle anonymous access to protected subprogram.
18948 (gnat_to_gnu_entity) <E_Variable>: Do not make the underlying type of an
18949 object with an address clause volatile. Re-enable original fix.
18950 <E_Subprogram_Type>: Set TYPE_REF_CAN_ALIAS_ALL on the reference type
18952 (gnat_to_gnu_entity) <E_Class_Wide_Type>: Retrieve the TYPE_DECL
18953 associated with either the Equivalent or Root type, instead of the
18955 (gnat_to_gnu_entity): Manually mark the top of the DECL_FIELD_OFFSET
18956 subtree for every field of a global record type.
18957 (gnat_to_gnu_entity) <E_Record_Subtype>: If the subtype has
18958 discriminants, invoke again variable_size on its newly computed sizes.
18960 2007-04-06 Robert Dewar <dewar@adacore.com>
18961 Thomas Quinot <quinot@adacore.com>
18962 Ed Schonberg <schonberg@adacore.com>
18963 Bob Duff <duff@adacore.com>
18965 * einfo.ads, einfo.adb: (First_Component_Or_Discriminant): New function
18966 (Next_Component_Or_Discriminant): New function and procedure
18967 (First_Index, First_Literal, Master_Id,
18968 Set_First_Index, Set_First_Literal, Set_Master_Id):
18969 Add missing Ekind assertions.
18970 (Is_Access_Protected_Subprogram_Type): New predicate.
18971 (Has_RACW): New entity flag, set on package entities to indicate that
18972 the package contains the declaration of a remote accecss-to-classwide
18974 (E_Return_Statement): This node type has the Finalization_Chain_Entity
18975 attribute, in case the result type has controlled parts.
18976 (Requires_Overriding): Add this new flag, because "requires
18977 overriding" is subtly different from "is abstract" (see AI-228).
18978 (Is_Abstract): Split Is_Abstract flag into Is_Abstract_Subprogram and
18979 Is_Abstract_Type. Make sure these are called only when appropriate.
18980 (Has_Pragma_Unreferenced_Objects): New flag
18982 * exp_ch5.adb (Expand_N_Assignment_Statement): If the left-hand side is
18983 class-wide, the tag of the right-hand side must be an exact match, not
18984 an ancestor of that of the object on left-hand side.
18985 (Move_Activation_Chain): New procedure to create the call to
18986 System.Tasking.Stages.Move_Activation_Chain.
18987 (Expand_N_Extended_Return_Statement): Generate code to call
18988 System.Finalization_Implementation.Move_Final_List at the end of a
18989 return statement if the function's result type has controlled parts.
18990 Move asserts to Build_In_Place_Formal.
18991 (Move_Final_List): New function to create the call statement.
18992 (Expand_N_Assignment_Statement): In case of assignment to a class-wide
18993 tagged type, replace generation of call to the run-time subprogram
18994 CW_Membership by call to Build_CW_Membership.
18995 (Expand_N_Return_Statement): Replace generation of call to the run-time
18996 subprogram Get_Access_Level by call to Build_Get_Access_Level.
18997 (Expand_N_Simple_Function_Return): Replace generation of call to the
18998 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
19000 * exp_ch6.ads, exp_ch6.adb (Expand_Call): Use new predicate
19001 Is_Access_Protected_Subprogram_Type, to handle both named and anonymous
19002 access to protected operations.
19003 (Add_Task_Actuals_To_Build_In_Place_Call): New procedure to add the
19004 master and chain actual parameters to a build-in-place function call
19006 (BIP_Formal_Suffix): Add new enumeration literals to complete the case
19008 (Make_Build_In_Place_Call_In_Allocator,
19009 Make_Build_In_Place_Call_In_Anonymous_Context,
19010 Make_Build_In_Place_Call_In_Assignment,
19011 Make_Build_In_Place_Call_In_Object_Declaration): Call
19012 Add_Task_Actuals_To_Build_In_Place_Call with the appropriate master.
19013 (Expand_Inlined_Call): If the subprogram is a null procedure, or a
19014 stubbed procedure with a null body, replace the call with a null
19015 statement without using the full inlining machinery, for efficiency
19016 and to avoid invalid values in source file table entries.
19018 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Add support for
19019 renamings of calls to build-in-place functions.
19021 * rtsfind.adb (RTE_Record_Component_Available): New subprogram that
19022 provides the functionality of RTE_Available to record components.
19023 (RTU_Entity): The function Entity has been renamed to RTU_Entity
19024 to avoid undesired overloading.
19025 (Entity): New subprogram that returns the entity for the referened
19026 unit. If this unit has not been loaded, it returns Empty.
19027 (RE_Activation_Chain_Access, RE_Move_Activation_Chain): New entities.
19028 Remove no longer used entities.
19029 (RE_Finalizable_Ptr_Ptr, RE_Move_Final_List): New entities.
19030 (RE_Type_Specific_Data): New entity.
19031 (RE_Move_Any_Value): New entity.
19032 (RE_TA_A, RE_Get_Any_Type): New entities.
19033 (RE_Access_Level, RE_Dispatch_Table, E_Default_Prim_Op_Count,
19034 RE_Prims_Ptr, RE_RC_Offset, RE_Remotely_Callable,
19035 RE_DT_Typeinfo_Ptr_Size, RE_Cstring_Ptr, RE_DT_Expanded_Name): Added.
19036 (Entity): New subprogram that returns the entity for the referened
19037 unit. If this unit has not been loaded, it returns Empty.
19038 (RTE): Addition of a new formal that extends the search to the scopes
19039 of the record types found in the chain of the package.
19041 * sem_ch6.ads, sem_ch6.adb (Check_Overriding_Indicator): Print
19042 "abstract subprograms must be visible" message, whether or not the type
19043 is an interface; that is, remove the special case for interface types.
19044 (Analyze_Function_Return): Remove error message "return of task objects
19045 is not yet implemented" because this is now implemented.
19046 (Create_Extra_Formals): Add the extra master and activation chain
19047 formals in case the result type has tasks.
19048 Remove error message "return of limited controlled objects is not yet
19050 (Create_Extra_Formals): Add the extra caller's finalization list formal
19051 in case the result type has controlled parts.
19052 (Process_Formals): In case of access formal types there is no need
19053 to continue with the analysis of the formals if we already notified
19055 (Check_Overriding_Indicator): Add code to check overriding of predefined
19057 (Create_Extra_Formals): Prevent creation of useless Extra_Constrained
19058 flags for formals that do not require them,.
19059 (Enter_Overloaded_Entity): Do not give -gnatwh warning message unless
19060 hidden entity is use visible or directly visible.
19061 (Analyze_Abstract_Subprogram_Declaration,Analyze_Subprogram_Body,
19062 Analyze_Subprogram_Declaration,Analyze_Subprogram_Specification,
19063 Check_Conventions,Check_Delayed_Subprogram,Make_Inequality_Operator,
19064 New_Overloaded_Entity): Split Is_Abstract flag into
19065 Is_Abstract_Subprogram and Is_Abstract_Type.
19067 * s-finimp.ads, s-finimp.adb (Move_Final_List): New procedure to move
19068 a return statement's finalization list to the caller's list, used for
19069 build-in-place functions with result type with controlled parts.
19070 Remove no longer used entities.
19072 * s-taskin.ads (Activation_Chain): Remove pragma Volatile. It is no
19073 longer needed, because the full type is now limited, and therefore a
19074 pass-by-reference type.
19075 (Foreign_Task_Level): New constant.
19077 * s-tassta.ads, s-tassta.adb (Move_Activation_Chain): New procedure to
19078 move tasks from the activation chain belonging to a return statement to
19079 the one passed in by the caller, and update the master to the one
19080 passed in by the caller.
19081 (Vulnerable_Complete_Master, Check_Unactivated_Tasks): Check the master
19082 of unactivated tasks, so we don't kill the ones that are being returned
19083 by a build-in-place function.
19084 (Create_Task): Ignore AI-280 for foreign threads.
19086 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19087 Robert Dewar <dewar@adacore.com>
19088 Bob Duff <duff@adacore.com>
19089 Gary Dismukes <dismukes@adacore.com>
19091 * errout.adb (Unwind_Internal_Type): Use predicate
19092 Is_Access__Protected_Subprogram_Type.
19094 * freeze.adb (Size_Known): Use First/Next_Component_Or_Discriminant
19095 (Freeze_Entity, packed array case): Do not override explicitly set
19096 alignment and size clauses.
19097 (Freeze_Entity): An entity declared in an outer scope can be frozen if
19098 the enclosing subprogram is a child unit body that acts as a spec.
19099 (Freeze_Entity): Use new predicate Is_Access_Protected_Subprogram_Type.
19100 (Freeze_Record_Type): New Ada 2005 processing for reverse bit order
19101 Remove all code for DSP option
19103 * layout.adb (Layout_Record_Type): Use First/
19104 Next_Component_Or_Discriminant
19105 (Layout_Type): Use new predicate Is_Access_Protected_Subprogram_Type,
19106 to handle properly the anonymous access case.
19108 * sem_attr.adb (Build_Access_Object_Type): Use E_Access_Attribute_Type
19109 for all access attributes, because overload resolution should work the
19110 same for 'Access, 'Unchecked_Access, and 'Unrestricted_Access. This
19111 causes the error message for the ambiguous "X'Access = Y'Access" and
19112 "X'Unrestricted_Access = Y'Access" and so forth to match.
19113 (Resolve_Attribute, case 'Access): Remove use of Original_Access_Type,
19114 now that anonymous access to protected operations have their own kind.
19115 (Resolve_Attribute): In case of dispatching call check the violation of
19116 restriction No_Dispatching_Calls.
19117 (Check_Array_Type): Check new -gnatyA array index style option
19119 * sem_ch3.ads, sem_ch3.adb (Derived_Type_Declaration): Reject an
19120 attempt to derive from a synchronized tagged type.
19121 (Analyze_Type_Declaration): If there is a incomplete tagged view of the
19122 type, inherit the class-wide type already created, because it may
19123 already have been used in a self-referential anonymous access component.
19124 (Mentions_T): Recognize self-referential anonymous access components
19125 that use (a subtype of) the class-wide type of the enclosing type.
19126 (Build_Derived_Record_Type): Add earlier setting of Is_Tagged_Type. Pass
19127 Derived_Type for Prev formal on call to
19128 Check_Anonymous_Access_Components rather than Empty.
19129 (Make_Incomplete_Type_Declaration): Add test for case where the type has
19130 a record extension in deciding whether to create a class-wide type,
19131 rather than just checking Tagged_Present.
19132 (Replace_Anonymous_Access_To_Protected_Subprogram): Procedure applies
19133 to stand-alone object declarations as well as component declarations.
19134 (Array_Type_Declaration): Initialize Packed_Array_Type to Empty, to
19135 prevent accidental overwriting when enclosing package appears in
19136 a limited_with_clause.
19137 (Array_Type_Declaration): If the component type is an anonymous access,
19138 the associated_node for the itype is the type declaration itself.
19139 (Add_Interface_Tag_Components): Modified to support concurrent
19140 types with abstract interfaces.
19141 (Check_Abstract_Interfaces): New subprogram that verifies the ARM
19142 rules 3.9.4 (15/2), 9.1 (9.d/2) and 9.4 (11.d/2).
19143 (Build_Derived_Record_Type): Add call to Analyze_Interface_Declaration
19144 to complete the decoration of synchronized interface types. Add also
19145 a call to Check_Abstract_Interfaces to verify the ARM rules.
19146 (Derive_Interface_Subprograms): Modified to support concurrent types
19147 with abstract interfaces.
19148 (Analyze_Subtype_Indication): Resolve the range with the given subtype
19149 mark, rather than delaying the full resolution depending on context.
19150 (Analyze_Component_Declaration,Analyze_Interface_Declaration,
19151 Analyze_Object_Declaration,Analyze_Subtype_Declaration,
19152 Array_Type_Declaration,Build_Derived_Record_Type,
19153 Build_Discriminated_Subtype,Check_Abstract_Overriding,Check_Completion,
19154 Derive_Interface_Subprograms,Derive_Subprogram,Make_Class_Wide_Type,
19155 Process_Full_View,Record_Type_Declaration): Split Is_Abstract flag into
19156 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
19157 called only when appropriate.
19158 (Copy_And_Swap): Copy Has_Unreferenced_Objects flag from full type
19160 (Analyze_Subtype_Declaration): For an access subtype declaration, create
19161 an itype reference for the anonymous designated subtype, to prevent
19162 scope anonmalies in gigi.
19163 (Build_Itype_Reference): New utility, to simplify construction of such
19166 2007-04-06 Vincent Celier <celier@adacore.com>
19168 * errutil.adb (Initialize): Initialize warnings table, if all warnings
19169 are suppressed, supply an initial dummy entry covering all possible
19172 * make.adb (Scan_Make_Arg): Reject options that should start with "--"
19173 and start with only one, such as "-RTS=none".
19174 (Collect_Arguments): Do not check for sources outside of projects.
19175 Do not collect arguments if project is externally built.
19176 (Compile_Sources): Do nothing, not even check if the source is up to
19177 date, if its project is externally built.
19178 (Compile): When compiling a predefined source, add -gnatpg
19179 as the second switch, after -c.
19180 (Compile_Sources): Allow compilation of Annex J renames without -a
19181 (Is_In_Object_Directory): Check if the ALI file is in the object
19182 even if there is no project extension.
19183 (Create_Binder_Mapping_File): Only put a unit in the mapping file for
19184 gnatbind if the ALI file effectively exists.
19185 (Initialize): Add the directory where gnatmake is invoked in front of
19186 the path if it is invoked from a bin directory, even without directory
19187 information, so that the correct GNAT tools will be used when spawned
19188 without directory information.
19190 * makeusg.adb: Change switch -S to -eS
19191 Add lines for new switches -we, -wn and -ws
19192 Add line for new switch -p
19194 * prj-proc.adb (Process): Set Success to False when Warning_Mode is
19195 Treat_As_Error and there are warnings.
19197 * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Do not skip
19198 -gnatww Change gnatmake switch -S to -eS
19199 (Scan_Make_Switches): Code reorganisation. Process separately multi
19200 character switches and single character switches.
19201 (Scan_Make_Switches): New Boolean out parameter Success. Set Success to
19202 False when switch is not recognized by gnatmake.
19203 (Scan_Make_Switches): Set Setup_Projects True when -p or
19204 --create-missing-dirs is specified.
19206 * fname.adb (Is_Predefined_File_Name): Return True for annex J
19207 renamings Calendar, Machine_Code, Unchecked_Conversion and
19208 Unchecked_Deallocation only when Renamings_Included is True.
19210 * par.adb: Allow library units Calendar, Machine_Code,
19211 Unchecked_Conversion and Unchecked_Deallocation to be recompiled even
19212 when -gnatg is not specified.
19213 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
19214 there is no need to generate always a record_definition_node in case
19215 of synchronized interface types.
19216 (SIS_Entry_Active): Initialize global variable to False
19217 (P_Null_Exclusion): For AI-447: Add parameter Allow_Anonymous_In_95 to
19218 indicate cases where AI-447 says "not null" is legal.
19220 * makeutl.ads, makeutil.adb (Executable_Prefix_Path): New function
19222 * makegpr.adb (Check_Compilation_Needed): Take into account dependency
19223 files with with several lines starting with the object fileb name.
19224 (Scan_Arg): Set Setup_Projects True when -p or --create-missing-dirs
19226 (Initialize): Add the directory where gprmake is invoked in front of the
19227 path, if it is invoked from a bin directory or with directory
19228 information, so that the correct GNAT tools will be used when invoked
19230 (Check_Compilation_Needed): Process correctly backslashes on Windows.
19232 * vms_data.ads: Update switches/qualifiers
19234 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19235 Thomas Quinot <quinot@adacore.com>
19238 If the array component is a discriminated record, the array aggregate
19239 is non-static even if the component is given by an aggregate with
19241 (Expand_Record_Aggregate): Use First/Next_Component_Or_Discriminant
19242 (Convert_Aggr_In_Allocator): If the allocator is for an access
19243 discriminant and the type is controlled. do not place on a finalization
19244 list at this point. The proper list will be determined from the
19246 (Build_Record_Aggr_Code): If aggregate has box-initialized components,
19247 initialize record controller if needed, before the components, to ensure
19248 that they are properly finalized.
19249 (Build_Record_Aggr_Code): For the case of an array component that has a
19250 corresponding array aggregate in the record aggregate, perform sliding
19253 2007-04-06 Javier Miranda <miranda@adacore.com>
19254 Gary Dismukes <dismukes@adacore.com>
19255 Ed Schonberg <schonberg@adacore.com>
19257 * exp_ch13.adb (Expand_External_Tag_Definition): Replace call to the
19258 run-time subprogram Set_External_Tag by call to Build_Set_External_Tag.
19260 * exp_ch4.adb (Expand_Allocator_Expression): Don't perform a run-time
19261 accessibility on class-wide allocators if the allocator occurs at the
19262 same scope level as the allocator's type. The check is guaranteed to
19263 succeed in that case, even when the expression originates from a
19264 parameter of the containing subprogram.
19265 (Expand_N_Op_Eq): Do nothing in case of dispatching call if compiling
19266 under No_Dispatching_Calls restriction. During the semantic analysis
19267 we already notified such violation.
19268 (Tagged_Membership): Constant folding. There is no need to check
19269 the tag at run-time if the type of the right operand is non
19270 class-wide abstract.
19271 Replace call to Is_Ancestor by call to Is_Parent
19272 to support concurrent types with interface types.
19273 (Expand_N_Allocator): Add an assertion associated with the generation
19275 (Expand_N_Slice): Do not enable range check to nodes associated
19276 with the frontend expansion of the dispatch table.
19277 (Is_Local_Access_Discriminant): Subsidiary function to
19278 Expand_N_Allocator.
19279 (Tagged_Membership): Replace generation of call to the run-time
19280 subprogram CW_Membership by call to Build_CW_Membership.
19281 (Expand_Allocator_Expression): Replace generation of call to the
19282 run-time subprogram Get_Access_Level by call to Build_Get_Access_Level.
19284 * exp_disp.ads, exp_disp.adb (Make_DT): Code reorganization to
19285 initialize most the TSD components by means of an aggregate.
19286 Modify the declaration of the object containing the TSD
19287 because we now expand code that has a higher level of abstraction.
19288 The TSD has a discriminant containing the Inheritance Depth Level,
19289 value that is used in the membership test but also to fix the size
19290 of the table of ancestors.
19291 (Expand_Interface_Conversion): Insert function body at the closest place
19292 to the conversion expression, to prevent access-before-elaboration
19293 errors in the backend.
19294 Code improved to reduce the size of the dispatch table if
19295 compiling under restriction No_Dispatching_Calls plus code cleanup.
19296 Code reorganization plus removal of calls to Set_Num_Prim_Ops
19297 (Make_Secondary_DT): Remove call to Set_Num_Prim_Ops.
19298 (Expand_Dispatching_Call): Minor code reorganization plus addition of
19299 code to return immediately if compiling under No_Dispatching_Calls
19301 (Set_All_DT_Position): Remove code associated with the old CPP pragmas.
19302 CPP_Virtual and CPP_Vtable are no longer supported.
19303 (Expand_Interface_Conversion): Add missing support for interface type
19305 (Expand_Interface_Actuals): Replace calls to Is_Ancestor by calls to
19306 Is_Parent to support concurrent types with interfaces.
19307 (Init_Predefined_Interface_Primitives): Removed.
19308 (Make_Secondary_DT): Modified to support concurrent record types.
19309 (Set_All_DT_Position): Modified to support concurrent record types.
19310 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
19311 with Get_External_Tag, Inherit_TSD, Set_External_Tag.
19312 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entry associated
19313 with CW_Membership.
19314 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Remove entries associated
19315 with Get_Access_Level, Get_Predefined_Prim_Op_Address,
19316 Get_Prim_Op_Address Get_RC_Offset, Get_Remotely_Callable, Inherit_DT,
19317 Set_Access_Level, Set_Expanded_Name, Set_Predefined_Prim_Op_Address,
19318 Set_Prim_Op_Address, Set_RC_Offset, Set_Remotely_Callable, Set_TSD.
19319 (Expand_Dispatching_Call): Replace generation of call to the run-time
19320 subprograms Get_Predefined_Prim_Op_Address and Get_Prim_Op_Address by
19321 calls to Build_Get_Predefined_Prim_Op_Address, and Build_Get_Prim_Op_
19323 (Fill_DT_Entry, Fill_Secondary_DT_Entry): Replace generation of call to
19324 the run-time subprograms Set_Predefined_Prim_Op_Address and Set_Prim_
19325 Op_Address by calls to Build_Set_Predefined_Prim_Op_Address, and
19326 Build_Set_Prim_Op_Address.
19327 (Get_Remotely_Callable): Subprogram removed.
19328 (Init_Predefined_Interface_Primitives): Replace generation of call to
19329 the run-time subprograms Inherit_DT by call to Build_Inherit_Predefined_
19332 * sem_elab.adb (Set_Elaboration_Constraint): Replace the call to
19333 First (Parameter_Associations ()) with the call to First_Actual that
19334 returns an actual parameter expression for both named and positional
19337 * sem_disp.adb (Check_Dispatching_Call): In case of dispatching call
19338 check violation of restriction No_Dispatching_Calls.
19339 (Check_Controlling_Type): A formal of a tagged incomplete type is a
19340 controlling argument.
19342 * exp_util.ads, exp_util.adb (Type_May_Have_Bit_Aligned_Components): Use
19343 First/Next_Component_Or_Discriminant
19344 (Insert_Actions): Add entries for new N_Push and N_Pop nodes
19345 (Find_Implemented_Interface): Removed. All the calls to this subprogram
19346 specify Any_Limited_Interface, and this functionality is already
19347 provided by the function Has_Abstract_Interfaces.
19348 (Find_Interface, Find_Interface_Tag, Find_Interface_ADT): Modified to
19349 support concurrent types implementing interfaces.
19350 (Find_Implemented_Interface): Removed. All the calls to this subprogram
19351 specify kind Any_Limited_Interface, and this functionality is already
19352 provided by the function Has_Abstract_Interfaces.
19353 (Remove_Side_Effects): replace Controlled_Type by
19354 CW_Or_Controlled_Type whenever the issue is related to
19355 using or not the secondary stack.
19357 * par-ch12.adb (P_Formal_Type_Definition): Update calls to
19358 P_Interface_Type_Definition to fulfill the new interface (the formal
19359 Is_Synchronized is no longer required).
19361 * Make-lang.in (GNAT_ADA_OBJS): Addition of exp_atag.o
19362 Update dependencies.
19364 * exp_atag.ads, exp_atag.adb: New file
19366 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19367 Bob Duff <duff@adacore.com>
19368 Cyrille Comar <comar@adacore.com>
19370 * exp_ch7.ads, exp_ch7.adb (Find_Final_List): If the access type is
19371 anonymous, use finalization list of enclosing dynamic scope.
19372 (Expand_N_Package_Declaration): For a library package declaration
19373 without a corresponding body, generate RACW subprogram bodies in the
19374 spec (just as we do for the task activation call).
19375 (Convert_View): Split Is_Abstract flag into Is_Abstract_Subprogram and
19376 Is_Abstract_Type. Make sure these are called only when appropriate.
19377 Remove all code for DSP option
19378 (CW_Or_Controlled_Type): new subprogram.
19380 2007-04-06 Eric Botcazou <botcazou@adacore.com>
19381 Ed Schonberg <schonberg@adacore.com>
19382 Gary Dismukes <dismukes@adacore.com>
19384 * exp_ch9.ads, exp_ch9.adb (Family_Offset): Add new 'Cap' boolean
19385 parameter. If it is set to true, return a result capped according to
19386 the global upper bound for the index of an entry family.
19387 (Family_Size): Add new 'Cap' boolean parameter. Pass it to Family_Offset
19388 (Build_Find_Body_Index): Adjust for above change.
19389 (Entry_Index_Expression): Likewise.
19390 (Is_Potentially_Large_Family): New function extracted from...
19391 (Collect_Entry_Families): ...here. Call it to detect whether the family
19392 is potentially large.
19393 (Build_Entry_Count_Expression): If the family is potentially large, call
19394 Family_Size with 'Cap' set to true.
19395 (Expand_N_Protected_Type_Declaration, Expand_N_Protected_Body): Generate
19396 a protected version of an operation declared in the private part of
19397 a protected object, because they may be invoked through a callback.
19398 (Set_Privals): If the type of a private component is an anonymous access
19399 type, do not create a new itype for each protected body.
19400 If the body of a protected operation creates
19401 controlled types (including allocators for class-widetypes), the
19402 body of the corresponding protected subprogram must include a
19404 (Build_Activation_Chain_Entity): Build the chain entity for extended
19406 (Type_Conformant_Parameters): Use common predicate Conforming_Types
19407 to determine whether operation overrides an inherited primitive.
19408 (Build_Wrapper_Spec): Add code to examine the parents while looking
19409 for a possible overriding candidate.
19410 (Build_Simple_Entry_Call): Set No_Initialization on the object used to
19411 hold an actual parameter value since its initialization is separated
19412 from the the declaration. Prevents errors on null-excluding access
19415 2007-04-06 Thomas Quinot <quinot@adacore.com>
19416 Pablo Oliveira <oliveira@adacore.com>
19418 * exp_dist.ads, exp_dist.adb (Build_To_Any_Call, Build_From_Any_Call):
19419 Do an Unchecked_Conversion to handle the passage from the Underlying
19420 Type to the Base Type when calling Build_To_Any_Call and
19421 Build_From_Any_Call.
19422 (Build_Actual_Object_Declaration): Set Object's Ekind to E_Variable or
19423 E_Constant, depending upon Variable formal.
19424 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
19425 PolyORB_Support.Build_Subprogram_Receiving_Stubs): For a formal
19426 parameter that requires an extra constrained parameter, declare
19427 temporary for actual as a variable, not a constant.
19428 (Add_RACW_Primitive_Declarations_And_Bodies): Generate bodies only when
19429 the unit being compiled is the one that contains the stub type.
19430 Change primitive operation name for the RACW associated with a RAS
19431 from Call to _Call so it cannot clash with any legal identifier.
19432 (PolyORB_Support.Add_RACW_Write_Attribute): Remove unused constant
19434 (Append_RACW_Bodies): New subprogram.
19435 (Expand_Receiving_Stubs_Bodies): Pass a 'Stmts' list to
19436 Add_Receiving_Stubs_To_Declarations functions.
19437 When expanding a package body, this list correspond to the
19438 statements in the HSS at the end of the pacakge.
19439 When expanding a package spec, this list correspond to the
19441 (Add_Receiving_Stubs_To_Declarations): Append the function
19442 registering the receiving stubs at the end of the 'Stmts' list.
19443 (RCI_Package_Locator): Pass the new Version generic formal when
19444 instantiating a RCI_Locator package.
19445 (Build_From_Any_Function): To compute the High bound for an
19446 unconstrained array actual, we add the Low bound with the length.
19447 Thus we must convert the low bound and the length to an appropriate
19448 type before doing the sum.
19449 (Build_Subprogram_Receiving_Stubs, PolyORB):
19450 * Retrieve the extra formals parameters at the
19451 end of the parameter stream.
19452 * Use Move_Any_Value to write back out parameters
19453 after executing the request as it is more efficient
19454 than Copy_Any_Value.
19455 * Build the any containing Extra Formals with the
19456 appropriate typecode.
19457 (PolyORB_Support.Helpers.Append_Record_Traversal): Nothing to do for an
19458 empty Component_List.
19459 (Build_Actual_Object_Declaration): New subprogram. Build and insert into
19460 the tree the declaration for an object that serves as actual parameter
19461 in server-side stubs.
19462 (GARLIC_Support.Build_Subprogram_Receiving_Stubs,
19463 PolyORB_Support.Build_Subprogram_Receiving_Stubs):
19464 Use Build_Actual_Object_Declaration to prepare the actuals.
19465 (Add_Parameter_To_NVList): Set the parameter mode to In for
19466 Extra Constrained Parameters.
19467 (Build_General_Calling_Stubs): Set the parameter type to boolean for
19468 Extra Constrained parameters.
19469 (Build_To_Any_Function, Build_From_Any_Function,
19470 Built_TypeCode_Function): When Typ is implicit, call the correct
19471 function with the first not implicit parent type.
19472 (TC_Rec_Add_Process_Element, FA_Rec_Add_Process_Element,
19473 (FA_Ary_Add_Process_Element): When Datum is an Any, we cannot infer the
19474 typecode from the Etype. Therefore we retrieve the correct typecode
19475 with a call to Get_Any_Type.
19476 (Copy_Specification): Do controlling formal type substitution based on
19477 Is_Controlling_Formal flag, instead of caller-provided object type.
19478 (Build_Subprogram_Calling_Stubs): When retrieveing the original spec for
19479 a RACW primitive operation, we might get a subprogram declaration for an
19480 ancestor of the RACW designated type (not for the designated type
19481 itself), in the case where this operation is inherited. In this case we
19482 have no easy means of determining the original tagged type for which
19483 the primitive was declared, so instead we now rely on
19484 Copy_Specification to use the Is_Controlling_Formal flag to determine
19485 which formals require type substitution.
19487 2007-04-06 Robert Dewar <dewar@adacore.com>
19488 Ed Schonberg <schonberg@adacore.com>
19490 * exp_intr.adb (Expand_Exception_Call): Calls to subprograms in
19491 GNAT.Current_Exception are not allowed if pragma Restrictions
19492 (No_Exception_Propagation) is set and in any case make the associated
19493 handler unsuitable as a target for a local raise statement.
19494 (Expand_Dispatching_Constructor_Call): Replace generation of call to the
19495 run-time subprogram CW_Membership by call to Build_CW_Membership.
19496 (Expand_Dispatching_Constructor_Call): If the dispatching tag is given
19497 by a function call, a temporary must be created before expanding the
19498 Constructor_Call itself, to prevent out-of-order elaboration in the
19499 back-end when stack checking is enabled..
19501 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19503 * exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
19504 result are the bounds of the left operand, not the right.
19506 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19509 (Build_Mutable_Record_Write_Procedure): For an Unchecked_Union type, use
19510 discriminant defaults.
19511 (Build_Record_Or_Elementary_Output_Procedure): Ditto.
19512 (Make_Component_List_Attributes): Ditto.
19514 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19515 Bob Duff <duff@adacore.com>
19517 * sem_aggr.adb (Resolve_Record_Aggregate): In semantics-only mode treat
19518 an association with a box as providing a value even though the
19519 initialization procedure for the type is not available.
19520 (Resolve_Record_Aggregate): Check that a choice of an association with a
19521 box corresponds to a component of the type.
19522 (Resolve_Record_Aggregate): Split Is_Abstract flag into
19523 Is_Abstract_Subprogram and Is_Abstract_Type.
19525 * exp_tss.adb (Base_Init_Proc): Use Is_Type instead of Type_Kind for
19528 * inline.adb (Add_Inlined_Body): Split Is_Abstract flag into
19529 Is_Abstract_Subprogram and Is_Abstract_Type. Make sure these are
19530 called only when appropriate.
19532 2007-04-06 Olivier Hainque <hainque@adacore.com>
19534 * g-alleve.ads (Low Level Vector type definitions): Map each to the
19535 associated vector view instead of all to the unsigned char view.
19537 * g-altcon.adb (Generic_Conversions): New internal generic package,
19538 offering facilities for all the Vector/View conversion routines
19539 implemented by this unit.
19540 (To_View/To_Vector - all versions): Reimplemented in a systematic
19541 manner, using the internal Generic_Conversions facilities.
19543 2007-04-06 Pascal Obry <obry@adacore.com>
19545 * g-arrspl.adb (Free) [Element_Access]: New routine to free the source
19547 (Create): Free the source string before storing the new one.
19549 2007-04-06 Vincent Celier <celier@adacore.com>
19551 * g-debpoo.adb (Validity): New package with a complete new
19552 implementation of subprograms Is_Valid and Set_Valid.
19553 (Is_Valid): Move to local package Validity
19554 (Set_Valid): Move to local package Validity
19556 2007-04-06 Arnaud Charlet <charlet@adacore.com>
19557 Pablo Oliveira <oliveira@adacore.com>
19559 * g-expect.adb (Get_Command_Output): When expanding the output buffer
19560 we must ensure that there is enough place for the new data we are going
19563 2007-04-06 Thomas Quinot <quinot@adacore.com>
19565 * g-md5.ads, g-md5.adb (Digest): Fix off-by-one error in padding
19568 2007-04-06 Jose Ruiz <ruiz@adacore.com>
19569 Vincent Celier <celier@adacore.com>
19571 * gnatcmd.adb (B_Start): Add prefix of binder generated file.
19572 (Stack_String): Add this String that contains the name of the Stack
19573 package in the project file.
19574 (Packages_To_Check_By_Stack): Add this list that contains the packages
19575 to be checked by gnatstack, which are the naming and the stack packages.
19576 (Check_Files): If no .ci files were specified for gnatstack we add all
19577 the .ci files belonging to the projects, including binder generated
19579 (Non_VMS_Usage): Document that gnatstack accept project file switches.
19580 (GNATCmd): Update the B_Start variable if we are in a VMS environment.
19581 Add gnatstack to the list of commands that use project file related
19582 switches, and get the single attribute Switches from the stack package
19583 in a project file when calling gnatstack. Parse the -U flag for
19584 processing files belonging to all projects in the project tree.
19585 Remove all processing for command Setup
19587 * prj-attr.adb: Add new package Stack with single attribute Switches
19589 * vms_conv.ads (Command_Type): Add command Stack.
19590 Move to body declarations that are only used in the body: types Item_Id,
19591 Translation_Type, Item_Ptr, Item and its subtypes.
19593 * vms_conv.adb: (Initialize): Add data for new command Stack.
19594 Add declarations moved from the spec: types Item_Id, Translation_Type,
19595 Item_Ptr, Item and its subtypes.
19596 (Cargs_Buffer): New table
19597 (Cargs): New Boolean global variable
19598 (Process_Buffer): New procedure to create arguments
19599 (Place): Put character in table Buffer or Cargs_Buffer depending on the
19601 (Process_Argument): Set Cargs when processing qualifiers for GNAT
19603 (VMS_Conversion): Call Process_Buffer for table Buffer and, if it is not
19604 empty, for table Cargs_Buffer.
19605 (Initialize): Remove component Setup in Command_List
19607 2007-04-06 Vincent Celier <celier@adacore.com>
19609 * gprep.adb (Process_Files.Process_One_File): Use full file name when
19610 issuing pragma Source_Reference.
19612 2007-04-06 Emmanuel Briot <briot@adacore.com>
19614 * g-regpat.adb (Parse_Posix_Character_Class): Fix handling of
19615 [[:xdigit:]] character class.
19616 Also raise an exception when an invalid character class is used.
19618 2007-04-06 Pascal Obry <obry@adacore.com>
19620 * i-cstrea.ads: (fopen): Add encoding parameter.
19622 Change reference from a-sysdep.c to sysdep.c in comment.
19623 Update copyright notice.
19624 This set of patch add support for the encoding form parameter.
19626 * mingw32.h (S2WSU): New macro to convert from a string to a
19627 wide-string using the UTF-8 encoding. The S2WS macro supports now only
19628 standard 8bits encoding.
19629 (WS2SU): As above but converting from wide-sring to string.
19630 This is needed as it is necessary to have access to both versions in the
19631 runtime for the form parameter encoding support.
19632 This set of patch add support for the encoding form parameter.
19633 (S2WS): Improve implementation to handle cases where the filename is not
19634 UTF-8 encoded. In this case we default to using the current code page
19635 for the conversion.
19637 * s-crtl-vms64.ads, s-crtl.ads (Filename_Encoding): New enumeration
19638 type (UTF8, ASCII_8bits). This enumeration has a rep clause to match
19639 the constants defined in adaint.h.
19640 (fopen): Add encoding parameter.
19643 * s-ficobl.ads (AFCB): Add Encoding field to record the filename
19644 encoding. This is needed for the Reset routine (freopen low level-call).
19646 * s-fileio.adb (Open): Decode encoding form parameter and set the
19647 corresponding encoding value into AFCB structure.
19648 (Reset): Pass the encoding value to freopen.
19649 (Close): Move the call to Lock_Task to the beginning of the procedure.
19651 2007-04-06 Geert Bosch <bosch@adacore.com>
19652 Robert Dewar <dewar@adacore.com>
19654 * i-fortra.ads: Add Double_Complex type.
19656 * impunit.adb: (Is_Known_Unit): New function
19657 Add Gnat.Byte_Swapping
19659 Add new Ada 2005 units
19660 Ada.Numerics.Generic_Complex_Arrays, Ada.Numerics.Generic_Real_Arrays,
19661 Ada.Numerics.Complex_Arrays, Ada.Numerics.Real_Arrays,
19662 Ada.Numerics.Long_Complex_Arrays, Ada.Numerics.Long_Long_Complex_Arrays,
19663 Ada.Numerics.Long_Long_Real_Arrays and Ada.Numerics.Long_Real_Arrays
19665 * impunit.ads (Is_Known_Unit): New function
19667 * a-ngcoar.adb, a-ngcoar.ads, a-ngrear.adb,
19668 a-ngrear.ads, a-nlcoar.ads, a-nllcar.ads, a-nllrar.ads, a-nlrear.ads,
19669 a-nucoar.ads, a-nurear.ads, g-bytswa.adb, g-bytswa-x86.adb,
19670 g-bytswa.ads, g-sha1.adb, g-sha1.ads, i-forbla.ads, i-forlap.ads,
19671 s-gearop.adb, s-gearop.ads, s-gecobl.adb, s-gecobl.ads, s-gecola.adb,
19672 s-gecola.ads, s-gerebl.adb, s-gerebl.ads, s-gerela.adb, s-gerela.ads:
19675 * Makefile.rtl: Add g-bytswa, g-sha1, a-fzteio and a-izteio
19677 * a-fzteio.ads, a-izteio.ads: New Ada 2005 run-time units.
19679 2007-04-06 Eric Botcazou <botcazou@adacore.com>
19680 Arnaud Charlet <charlet@adacore.com>
19682 * init.c: Reuse PA/HP-UX code for IA-64/HP-UX, except
19683 __gnat_adjust_context_for_raise.
19684 (__gnat_init_float): on x86 vxworks 5.x and 6.x, we use the same
19685 implementation of floating point operations as native x86 targets.
19686 So the FPU should be initialized in the same way using finit. Fix
19687 floating point operations accuracy issues.
19688 (__gnat_install_handler, case FreeBSD): Use proper type for sa_sigaction
19689 member in struct sigaction, so as to avoid warning for incompatible
19692 2007-04-06 Serguei Rybin <rybin@adacore.com>
19694 * lib.ads, lib.adb (Tree_Read): Release the memory occupied by the
19695 switches from previously loaded tree
19697 2007-04-06 Thomas Quinot <quinot@adacore.com>
19699 * lib-writ.adb (Write_With_Lines): Factor duplicated code between the
19700 cases where a given dependency has a body or not.
19701 (Write_With_File_Names): New subprogram, common code for the two cases
19704 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19705 Javier Miranda <miranda@adacore.com>
19707 * lib-xref.ads, lib-xref.adb:
19708 Modify the loop that collects type references, to include interface
19709 types that the type implements. List each of these interfaces when
19710 building the entry for the type.
19711 (Generate_Definition): Initialize component Def and Typ of new entry
19712 in table Xrefs, to avoid to have these components unitialized.
19713 (Output_References): Split Is_Abstract flag into
19714 Is_Abstract_Subprogram and Is_Abstract_Type.
19715 (Generate_Reference): Add barrier to do not generate the warning
19716 associated with Ada 2005 entities with entities generated by the
19719 2007-04-06 Robert Dewar <dewar@adacore.com>
19720 Arnaud Charlet <charlet@adacore.com>
19721 Vincent Celier <celier@adacore.com>
19723 * gnat_rm.texi, gnat_ugn.texi: Add -gnatyl documentation
19724 Update 'Exception Handling Control' chapter which was outdated.
19725 Minor fix to documentation of -gnatwq
19726 Remove section "Adapting the Run Time to a New C++ Compiler" because
19727 it is now obsolete.
19728 Add passage on need of -nostart-files in some non-ada-main cases.
19729 Document new switch -eS (/STANDARD_OUTPUT_FOR_COMMANDS) for gnatmake
19730 Update documentation about Interfacing with C++
19731 Add documentation for new gnatmake switch -p
19732 Add missing protocol part in URLs.
19734 Document pragma Compile_Time_Error
19735 Add documentation for Object_Size indicating that stand alone
19736 objects can have a larger size in some cases.
19737 Add node for GNAT.Byte_Swapping, GNAT.SHA1
19738 Update reference to the Ravenscar profile.
19739 Document pragma Unreferenced_Objects
19741 * gnat-style.texi: Fix typo
19743 2007-04-06 Vincent Celier <celier@adacore.com>
19745 * mlib.adb (Building_Library): Only output "building a library..." in
19748 * mlib-prj.adb (Build_Library): Only output lists of object and ALI
19749 files in verbose mode.
19751 * mlib-utl.adb (Ar): Only output the first object files when not in
19753 (Gcc): Do not display all the object files if not in verbose mode, only
19756 2007-04-06 Robert Dewar <dewar@adacore.com>
19758 * namet.ads, namet.adb (wn): Improve this debugging routine. Calling
19759 it no longer destroys the contents of Name_Buffer or Name_Len and
19760 non-standard and invalid names are handled better.
19761 (Get_Decoded_Name_String): Improve performance by using
19762 Name_Has_No_Encodings flag in the name table.
19763 (Is_Valid_Name): New function to determine whether a Name_Id is valid.
19764 Used for debugging printouts.
19766 2007-04-06 Robert Dewar <dewar@adacore.com>
19767 Javier Miranda <miranda@adacore.com>
19768 Bob Duff <duff@adacore.com>
19770 * par-ch3.adb: (P_Type_Declaration): Set Type_Token_Location
19771 (P_Interface_Type_Definition): Remove the formal Is_Synchronized because
19772 there is no need to generate always a record_definition_node in case
19773 of synchronized interface types.
19774 (P_Type_Declaration): Update calls to P_Interface_Type_Definition.
19775 (P_Null_Exclusion): For AI-447: Remove warnings about "not null" being
19776 illegal in Ada 95, in cases where it is legal. Change the warnings to
19777 errors in other cases. Don't give the error unless the "not null"
19778 parses properly. Correct the source position at which the error occurs.
19779 (P_Known_Discriminant_Part_Opt): Pass Allow_Anonymous_In_95 => True to
19780 P_Null_Exclusion, to suppress "not null" warnings.
19781 (P_Identifier_Declarations): Code cleanup. Removed unrequired label and
19782 associated goto statements.
19784 * par-endh.adb (Pop_End_Context): Allow more flexibility in placement
19787 * scans.ads (Type_Token_Location): New flag
19789 * par-ch6.adb (P_Mode): Check specifically for case of IN ACCESS
19790 (P_Formal_Part): Pass Allow_Anonymous_In_95 => True to
19791 P_Null_Exclusion, to suppress "not null" warnings.
19793 2007-04-06 Robert Dewar <dewar@adacore.com>
19794 Javier Miranda <miranda@adacore.com>
19795 Bob Duff <duff@adacore.com>
19796 Vincent Celier <celier@adacore.com>
19798 * par-prag.adb (Prag): Add dummy entry for pragma Compile_Time_Error
19799 (Extensions_Allowed): No longer sets Ada_Version
19800 Entry for pragma Unreferenced_Objects
19802 * sem_prag.adb (Analyze_Pragma, case Priority): Force with of
19803 system.tasking if pragma priority used in a procedure
19804 (Analyze_Pragma, case Warning): Handle dot warning switches
19805 (Process_Compile_Time_Warning_Or_Error): New procedure
19806 (Analyze_Pragma): Add processing for Compile_Time_Error
19807 Add support for extra arguments External_Name and Link_Name.
19808 Remove code associated with pragmas CPP_Virtual and CPP_Vtable.
19809 (Process_Import_Or_Interface): Add support for the use of pragma Import
19811 (Extensions_Allowed): No longer affects Ada_Version
19812 (Analyze_Pragma): Split Is_Abstract flag into Is_Abstract_Subprogram and
19813 Is_Abstract_Type. Make sure these are called only when appropriate.
19814 Add processing for pragma Unreferenced_Objects
19816 * snames.h, snames.ads, snames.adb: Add entry for pragma
19818 Add new standard name Minimum_Binder_Options for new gprmake
19819 Add new standard names for gprmake: Archive_Suffix,
19820 Library_Auto_Init_Supported, Library_Major_Minor_Id_Supported,
19821 Library_Support, Library_Version_Options,
19822 Shared_Library_Minimum_Options,
19823 Shared_Library_Prefix, Shared_Library_Suffix, Symbolic_Link_Supported.
19824 Change Name_Call to Name_uCall so that it cannot clash with a legal
19826 Add new standard names Mapping_Spec_Suffix and Mapping_Body_Suffix
19827 Append C_Plus_Plus to convention identifiers as synonym for CPP
19828 Add new standard names Stack and Builder_Switches
19829 Add new standard names: Compiler_Minimum_Options, Global_Config_File,
19830 Library_Builder, Local_Config_File, Objects_Path, Objects_Path_File,
19831 Run_Path_Option, Toolchain_Version.
19832 Entry for pragma Unreferenced_Objects
19834 * switch-c.adb (Scan_Front_End_Switches): Store correct -gnateD
19835 switches, without repetition of "eD". Make sure that last character of
19836 -gnatep= switch is not taken as -gnat switch character.
19837 Complete rewrite of circuit for handling saving compilation options
19838 Occasioned by need to support dot switchs for -gnatw, but cleans up
19840 -gnatX does not affect Ada_Version
19841 Include -gnatyA in -gnatg style switches
19843 * sem_warn.ads, sem_warn.adb (Output_Unreferenced_Messages): Exclude
19844 warnings on return objects.
19845 (Warn_On_Useless_Assignment): Exclude warnings on return objects
19846 (Set_Dot_Warning_Switch): New procedure
19847 (Check_References): Add missing case of test for
19848 Has_Pragma_Unreferenced_Objects
19849 (Output_Unreferenced_Messages): Implement effect of new pragma
19850 Unreferenced_Objects, remove special casing of limited controlled
19853 2007-04-06 Vincent Celier <celier@adacore.com>
19855 * prj-ext.adb (Initialize_Project_Path): New procedure that initialize
19856 the default project path, initially done during elaboration of the
19858 If the prefix returned by Sdefault is null, get the prefix from a call
19859 to Executable_Prefix_Path.
19860 (Project_Path): Call Initialize_Project_Path if Current_Project_Path is
19863 * prj-nmsc.adb (Get_Path_Names_And_Record_Sources): Use the non
19864 canonical directory name to open the directory from which files are
19866 (Record_Other_Sources): Idem.
19867 (Locate_Directory): Add the possibility to create automatically missing
19868 directories when Setup_Projects is True.
19869 Call Locate_Directory so that the directory will be created when
19870 Setup_Projects is True, for object dir, library dir, library ALI dir,
19871 library source copy dir and exec dir.
19873 * prj-pp.adb (Max_Line_Length): Set to 255 for compatibility with older
19876 2007-04-06 Robert Dewar <dewar@adacore.com>
19878 * sem_ch13.ads, sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order):
19879 Use First/Next_Component_Or_Discriminant
19880 (Analyze_Record_Representation_Clause):
19881 Use First/Next_Component_Or_Discriminant
19882 (Check_Component_Overlap): Use First/Next_Component_Or_Discriminant
19883 (Analyze_Attribute_Definition_Clause, case Value_Size): Reject
19884 definition if type is unconstrained.
19885 (Adjust_Record_For_Reverse_Bit_Order): New procedure
19886 (Analyze_Attribute_Definition_Clause): Split Is_Abstract flag into
19887 Is_Abstract_Subprogram and Is_Abstract_Type.
19888 (Adjust_Record_For_Reverse_Bit_Order): New procedure
19890 * repinfo.adb (List_Record_Info): Use First/
19891 Next_Component_Or_Discriminant.
19893 * style.ads, styleg-c.adb, styleg-c.ads (Check_Array_Attribute_Index):
19896 * stylesw.ads, stylesw.adb: Recognize new -gnatyA style switch
19897 Include -gnatyA in default switches
19899 * opt.ads: (Warn_On_Non_Local_Exception): New flag
19900 (Warn_On_Reverse_Bit_Order): New flag
19901 (Extensions_Allowed): Update the documentation.
19902 (Warn_On_Questionable_Missing_Parens): Now on by default
19904 * usage.adb: Add documentation of -gnatw.x/X switches
19905 Document new -gnatyA style switch
19906 -gnatq warnings are on by default
19908 2007-04-06 Ed Falis <falis@adacore.com>
19910 * s-carun8.adb, s-carsi8.adb (Compare_Array_?8): modify so that last
19911 full word is no longer compared twice.
19913 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19915 * sem_ch10.adb (Install_Limited_Context_Clauses.
19916 Expand_Limited_With_Clause): Use a new copy of selector name in the
19917 call to Make_With_Clause. This fixes the tree structure for ASIS
19918 purposes. Nothing is changed in the compiler behaviour.
19919 (Process_Body_Clauses): Handle properly use clauses whose prefix is
19920 a package renaming.
19921 (Install_Limited_With_Clauses): Do not install non-limited view when it
19922 is still incomplete.
19924 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19925 Gary Dismukes <dismukes@adacore.com>
19927 * sem_ch12.adb (Check_Generic_Actuals): Use first subtype of actual
19928 when capturing size information, instead of base type, which for a
19929 formal array type will be the unconstrained type.
19930 (Analyze_Formal_Object_Declaration): Add check for illegal default
19931 expressions for a formal in object of a limited type.
19932 (Instantiate_Object): Ditto.
19933 (Check_Formal_Package_Instance): Skip entities that are formal objects,
19934 because they were defaulted in the formal package and no check applies
19936 (Check_Formal_Package_Instance): Extend conformance check to other
19937 discrete types beyond Integer.
19938 (Process_Default): Copy directly the unmatched formal. A generic copy
19939 has already been performed in Analyze_Formal_Package.
19940 (Analyze_Associations): If a formal subprogram has no match, check for
19941 partial parametrization before looking for a default, to prevent
19943 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation): Do
19944 not set the instantiation environment before analyzing the actuals.
19945 Fixes regression on 8515-003 with implementation of AI-133.
19946 Set_Instance_Env checks whether the generic unit is a predefined
19947 unit, in which case the instance must be analyzed with the latest Ada
19948 mode. This setting must take place after analysis of the actuals,
19949 because the actuals must be analyzed and frozen in the Ada mode extant
19950 outside of the current instantiation.
19951 (Save_Env, Restore_Env): Preserve and restore the configuration
19952 parameters so that predefined units can be compiled in the proper Ada
19954 (Analyze_Formal_Object_Declaration,Analyze_Formal_Subprogram,
19955 Instantiate_Type): Split Is_Abstract flag into Is_Abstract_Subprogram
19956 and Is_Abstract_Type.
19957 (Analyze_Formal_Package): For better error recovery, Add exception
19958 handler to catch Instantion_Error, which can be raised in
19959 Analyze_Associations
19961 2007-04-06 Ed Schonberg <schonberg@adacore.com>
19962 Bob Duff <duff@adacore.com>
19963 Gary Dismukes <dismukes@adacore.com>
19965 * sem_ch4.adb (Try_Primitive_Operation): The call is legal if the
19966 prefix type is a discriminated subtype of the type of the formal.
19967 (Analyze_Allocator): Collect all coextensions regardless of the context.
19968 Whether they can be allocated statically is determined in exp_ch4.
19969 (Analyze_Selected_Component): If the prefix is a limited view and the
19970 non-limited view is available, use the non-limited one.
19971 (Operator_Check): For "X'Access = Y'Access" (which is ambiguous, and
19972 therefore illegal), suggest a qualified expression rather than a type
19973 conversion, because a type conversion would be illegal in this context.
19974 (Anayze_Allocator): Trace recursively all nested allocators so that all
19975 coextensions are on the corresponding list for the root. Do no mark
19976 coextensions if the root allocator is within a declaration for a stack-
19977 allocated object, because the access discriminants will be allocated on
19979 (Analyze_Call): Remove restriction on calls to limited functions for the
19980 cases of generic actuals for formal objects, defaults for formal objects
19981 and defaults for record components.
19982 (Analyze_Allocator): Before analysis, chain coextensions on the proper
19983 element list. Their expansion is delayed until the enclosing allocator
19984 is processed and its finalization list constructed.
19985 (Try_Primitive_Operation): If the prefix is a concurrent type, looks
19986 for an operation with the given name among the primitive operations of
19987 the corresponding record type.
19988 (Analyze_Selected_Component): If the prefix is a task type that
19989 implements an interface, and there is no entry with the given name,
19990 check whether there is another primitive operation (e.g. a function)
19992 (Try_Object_Operation, Analyze_One_Call, Try_Indexed_Call): Handle
19993 properly the indexing of a function call written in prefix form, where
19994 the function returns an array type, and all parameters of the function
19995 except the first have defaults.
19996 (Analyze_Equality_Op): If this is a call to an implicit inequality, keep
19997 the original operands, rather than relocating them, for efficiency and
19998 to work properly when an operand is overloaded.
19999 (Analyze_Allocator,Operator_Check,Remove_Abstract_Operations): Split
20000 Is_Abstract flag into Is_Abstract_Subprogram and Is_Abstract_Type.
20001 (Analyze_Selected_Component): If the prefix is a private extension, only
20002 scan the visible components, not those of the full view.
20003 (Try_Primitive_Operation): If the operation is a procedure, collect all
20004 possible interpretations, as for a function, because in the presence of
20005 classwide parameters several primitive operations of the type can match
20006 the given arguments.
20008 2007-04-06 Ed Schonberg <schonberg@adacore.com>
20009 Robert Dewar <dewar@adacore.com>
20011 * sem_ch5.adb (Analyze_Assignment): Reject a right-hand side that is a
20012 tag-indeterminate call to an abstract function, when the left-hand side
20014 (Analyze_Loop_Statement): Improve detection of infinite loops
20016 2007-04-06 Ed Schonberg <schonberg@adacore.com>
20017 Thomas Quinot <quinot@adacore.com>
20019 * sem_ch7.ads, sem_ch7.adb (Inspect_Deferred_Constant_Completion): Move
20020 out of Analyze_Package_Declaration, because processing must be applied
20021 to package bodies as well, for deferred constants completed by pragmas.
20022 (Analyze_Package_Declaration): When the package declaration being
20023 analyzed does not require an explicit body, call Check_Completion.
20024 (May_Need_Implicit_Body): An implicit body is required when a package
20025 spec contains the declaration of a remote access-to-classwide type.
20026 (Analyze_Package_Body): If the package contains RACWs, append the
20027 pending subprogram bodies generated by exp_dist at the end of the body.
20028 (New_Private_Type,Unit_Requires_Body): Split Is_Abstract flag into
20029 Is_Abstract_Subprogram and Is_Abstract_Type.
20030 (Preserve_Full_Attributes): The full entity list is not an attribute
20031 that must be preserved from full to partial view.
20033 * sem_dist.adb (Add_RAS_Dereference_TSS):
20034 Change primitive name to _Call so it cannot clash with any legal
20035 identifier, and be special-cased in Check_Completion.
20036 Mark the full view of the designated type for the RACW associated with
20037 a RAS as Comes_From_Source to get proper view switching when installing
20038 private declarations.
20039 Provite a placeholder nested package body along with the nested spec
20040 to have a place for Append_RACW_Bodies to generate the calling stubs
20041 and stream attributes.
20043 2007-04-06 Ed Schonberg <schonberg@adacore.com>
20044 Robert Dewar <dewar@adacore.com>
20046 * sem_ch8.adb (Has_Components): If the argument is an incomplete type
20047 that is a limited view, check the non-limited view if available.
20048 (Undefined): Refine error message for missing with of Text_IO
20049 (Find_Expanded_Name): Use Is_Known_Unit for more accurate error message
20050 to distinguish real missing with cases.
20051 Fix format of all missing with messages
20052 (Analyze_Subprogram_Renaming): Emit proper error message on illegal
20053 renaming as body when renamed entity is abstract.
20055 2007-04-06 Ed Schonberg <schonberg@adacore.com>
20056 Javier Miranda <miranda@adacore.com>
20058 * sem_type.ads, sem_type.adb (Has_Abstract_Interpretation): Make
20059 predicate recursive, to handle complex expressions on literals whose
20060 spurious ambiguity comes from the abstract interpretation of some
20062 (Interface_Present_In_Ancestor): Add support to concurrent record
20064 (Add_One_Interp,Disambiguate): Split Is_Abstract flag into
20065 Is_Abstract_Subprogram and Is_Abstract_Type.
20067 2007-04-06 Ed Schonberg <schonberg@adacore.com>
20068 Javier Miranda <miranda@adacore.com>
20070 * sem_util.ads, sem_util.adb (Object_Access_Level): If the object is a
20071 dereference of a local object R created as a reference to another
20072 object O, use the access level of O.
20073 (Matches_Prefixed_View_Profile): Use common predicate Conforming_Types,
20074 rather than local Same_Formal_Type, to check whether protected operation
20075 overrides an inherited one.
20076 (Same_Formal_Type): New predicate, used when matching signatures of
20077 overriding synchronized operations, to handle the case when a formal
20078 has a type that is a generic actual.
20079 (Is_Aliased_View): Replace check on E_Task_Type and E_Protected_Type by
20080 predicate Is_Concurrent_Type. This ensures supportin case of subtypes.
20081 (Needs_One_Actual): New predicate, for Ada 2005 use, to resolve
20082 syntactic ambiguities involving indexing of function calls that return
20084 (Abstract_Interface_List): New subprogram that returns the list of
20085 abstract interfaces associated with a concurrent type or a
20086 concurrent record type.
20087 (Interface_Present_In_Parent): New subprogram used to check if a
20088 given type or some of its parents implement a given interface.
20089 (Collect_Abstract_Interfaces): Add support for concurrent types
20090 with interface types.
20091 (Has_Abstract_Interfaces): Add support for concurrent types with
20093 (Is_Parent): New subprogram that determines whether E1 is a parent
20094 of E2. For a concurrent type its parent is the first element of its
20095 list of interface types; for other types this function provides the
20096 same result than Is_Ancestor.
20097 (Enclosing_Subprogram): Add test for N_Extended_Return_Statement.
20098 (Collect_Synchronized_Interfaces): Removed because the subprogram
20099 Collect_Abstract_Interfaces provides this functionality.
20100 (Collect_Abstract_Interfaces): Minor update to give support to
20101 concurrent types and thus avoid undesired code duplication.
20102 (Get_Subprogram_Entity): Handle entry calls.
20103 (May_Be_Lvalue): Include actuals that appear as in-out parameters in
20105 (Enter_Name): Do not give -gnatwh hiding warning for record component
20106 entities, they never result in hiding.
20108 2007-04-06 Ed Schonberg <schonberg@adacore.com>
20109 Robert Dewar <dewar@adacore.com>
20111 * sinfo.ads, sinfo.adb (Coextensions): New element list for allocators,
20112 to chain nested components that are allocators for access discriminants
20113 of the enclosing object.
20114 Add N_Push and N_Pop nodes
20115 New field Exception_Label added
20116 (Local_Raise_Statements): New field in N_Exception_Handler_Node
20117 (Local_Raise_Not_OK): New flag in N_Exception_Handler_Node
20118 (Is_Coextension): New flag for allocators, to mark allocators that
20119 correspond to access discriminants of dynamically allocated objects.
20120 (N_Block_Statement): Document the fact that the corresponding entity
20121 can be an E_Return_Statement.
20122 (Is_Coextension): New flag for allocators.
20123 Remove all code for DSP option
20125 * sprint.ads, sprint.adb: Display basic information for class_wide
20126 subtypes. Add handling of N_Push and N_Pop nodes
20128 2007-04-06 Arnaud Charlet <charlet@adacore.com>
20130 * s-tpobop.adb (Exceptional_Complete_Entry_Body): Undefer abortion
20131 before propagating exception.
20133 2007-04-06 Olivier Hainque <hainque@adacore.com>
20135 * tracebak.c (PC_ADJUST - ia64): -4 instead of -16, expected to yield
20136 an address always within the call instruction from a return address.
20138 2007-04-06 Olivier Hainque <hainque@adacore.com>
20139 Eric Botcazou <botcazou@adacore.com>
20141 * trans.c (call_to_gnu) <TYPE_RETURNS_BY_TARGET_PTR_P>: Return an
20142 expression with a COMPOUND_EXPR including the call instead of emitting
20143 the call directly here.
20144 (gnat_to_gnu) <N_Slice>: Do not return a non-constant low bound if the
20145 high bound is constant and the slice is empty. Tidy.
20146 (tree_transform, case N_Op_Not): Handle properly the case where the
20147 operation applies to a private type whose full view is a modular type.
20148 (Case_Statement_To_gnu): If an alternative is an E_Constant with an
20149 Address_Clause, use the associated Expression as the GNAT tree
20150 representing the choice value to ensure the corresponding GCC tree is
20151 of the proper kind.
20152 (maybe_stabilize_reference): Stabilize COMPOUND_EXPRs as a whole
20153 instead of just the operands, as the base GCC stabilize_reference does.
20154 <CALL_EXPR>: New case. Directly stabilize the call if an lvalue is not
20155 requested; otherwise fail.
20156 (addressable_p) <COMPONENT_REF>: Do not test DECL_NONADDRESSABLE_P.
20158 2007-04-06 Thomas Quinot <quinot@adacore.com>
20160 * uintp.ads, uintp.adb (UI_Div_Rem): New subprogram, extending previous
20161 implementation of UI_Div.
20162 (UI_Div): Reimplement as a call to UI_Div_Rem.
20163 (UI_Rem): Take advantage of the fact that UI_Div_Rem provides the
20164 remainder, avoiding the cost of a multiplication and a subtraction.
20165 (UI_Modular_Inverse): Take advantage of the fact that UI_Div_Rem
20166 provides both quotient and remainder in a single computation.
20167 (UI_Modular_Exponentiation, UI_Modular_Inverse): New modular arithmetic
20168 functions for uint.
20169 (UI_Modular_Inverse): Add a note that the behaviour of this subprogram
20170 is undefined if the given n is not inversible.
20172 2007-04-06 Olivier Hainque <hainque@adacore.com>
20174 * utils2.c (known_alignment): Handle COMPOUND_EXPR, COND_EXPR and
20175 BIT_AND_EXPR. Handle also VIEW_CONVERT_EXPR, as the other conversion
20178 2007-04-06 Eric Botcazou <botcazou@adacore.com>
20179 Olivier Hainque <hainque@adacore.com>
20181 * utils.c (update_pointer_to): Make a copy of the couple of FIELD_DECLs
20182 when updating the contents of the old pointer to an unconstrained array.
20183 (end_subprog_body): Set error_gnat_node to Empty.
20184 (write_record_type_debug_info): Do not be unduly sparing with our bytes.
20185 (unchecked_convert): For subtype to base type conversions, require that
20186 the source be a subtype if it is an integer type.
20187 (builtin_decls): New global, vector of available builtin functions.
20188 (gnat_pushdecl): Add global builtin function declaration nodes to the
20189 builtin_decls list.
20190 (gnat_install_builtins): Adjust comments.
20191 (builtin_function): Set DECL_BUILTIN_CLASS and DECL_FUNCTION_CODE before
20192 calling gnat_pushdecl, so that it knows when it handed a builtin
20193 function declaration node.
20194 (builtin_decl_for): Search the builtin_decls list.
20196 2007-04-06 Eric Botcazou <botcazou@adacore.com>
20198 * s-stchop-vxworks.adb:
20199 (Stack_Check): Raise Storage_Error if the argument has wrapped around.
20201 2007-04-06 Robert Dewar <dewar@adacore.com>
20202 Arnaud Charlet <charlet@adacore.com>
20204 * a-diroro.ads: Inserted the pragma Unimplemented_Unit
20206 * bindgen.adb (Gen_Output_File_Ada): Generate pragma Ada_95 at start
20208 Add mention of -Sev (set initialize_scalars option from environment
20209 variable at run time) in gnatbind usage message.
20211 * elists.ads, elists.adb: (Append_Unique_Elmt): New procedure
20213 * fname-uf.ads: Minor comment fix
20215 * osint.ads: Change pragma Elaborate to Elaborate_All
20217 * par-load.adb: Add documentation.
20219 * sem_cat.ads, sem_cat.adb: Minor code reorganization
20221 * s-parint.ads (RCI_Locator) : Add 'Version' generic formal
20223 * s-secsta.ads: Extra comments
20225 * s-soflin.ads: Minor comment fixes
20227 * s-stratt.ads (Block_Stream_Ops_OK): Removed.
20229 * s-wchcon.ads: Minor comment addition
20231 * treepr.adb: Minor change in message
20232 (Print_Name,Print_Node): Make these debug printouts more robust: print
20233 "no such..." instead of crashing on bad input.
20235 2007-03-30 Rafael Ávila de Espíndola <espindola@google.com>
20237 * trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
20238 instead of gnat_signed_or_unsigned_type.
20239 * utils.c (gnat_signed_or_unsigned_type): Remove.
20240 * misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
20241 * gigi.h (gnat_signed_or_unsigned_type): Remove
20243 2007-03-09 Roger Sayle <roger@eyesopen.com>
20245 * cuintp.c (UI_To_gnu): Use fold_buildN calls instead of calling
20246 fold with the result of buildN.
20247 * decl.c (gnat_to_gnu_entity): Likewise.
20248 * trans.c (Attribute_to_gnu, gnat_to_gnu, emit_check): Likewise.
20249 * utils.c (finish_record_type, merge_sizes, max_size, convert):
20251 * utils2.c (gnat_truthvalue_conversion, compare_arrays,
20252 nonbinary_modular_operation, build_binary_op, build_unary_op,
20253 build_cond_expr): Likewise.
20255 * utils.c (convert): Use fold_build1 when casting values to void.
20256 * utils2.c (gnat_truthvalue_conversion): Use build_int_cst and
20257 fold_convert instead of convert when appropriate.
20259 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
20261 * Make-lang.in: Add install-pdf target as copied from
20262 automake v1.10 rules.
20264 2007-02-28 Andreas Schwab <schwab@suse.de>
20266 * Make-lang.in (doc/gnat_ugn_unw.texi): Depend on
20267 $(gcc_docdir)/include/gcc-common.texi and gcc-vers.texi.
20268 (doc/gnat-style.info): Likewise.
20270 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
20272 * gnat-style.texi: Standardize title page.
20273 * gnat_rm.texi: Likewise.
20274 * gnat_ugn.texi: Likewise.
20276 2007-02-25 Mark Mitchell <mark@codesourcery.com>
20278 * decl.c (annotate_value): Adjust for refactoring of tree_map
20281 2007-02-24 Mark Mitchell <mark@codesourcery.com>
20283 * decl.c (annotate_value): Adjust for refactoring of tree_map
20286 2007-02-21 Ed Schonberg <schonberg@adacore.com>
20289 * sem_ch3.adb (Create_Constrained_Components): for a subtype of an
20290 untagged derived type, add hidden components to keep discriminant
20291 layout consistent, when a given discriminant of the derived type
20292 constraints several discriminants of the parent type.
20294 2007-02-16 Eric Botcazou <ebotcazou@adacore.com>
20295 Sandra Loosemore <sandra@codesourcery.com>
20297 * trans.c (call_to_gnu): Use build_call_list instead of build3 to
20298 build the call expression.
20299 (gnat_stabilize_reference_1): Handle tcc_vl_exp.
20300 * utils.c (max_size) <tcc_exceptional>: Delete.
20301 <tcc_vl_exp>: New case.
20302 <tcc_expression>: Delete CALL_EXPR subcase.
20303 (build_global_cdtor): Use build_call_nary instead of build3.
20304 * utils2.c (build_call_1_expr): Likewise.
20305 (build_call_2_expr): Likewise.
20306 (build_call_0_expr): Likewise.
20307 (build_call_alloc_dealloc): Likewise.
20309 2007-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
20311 * raise-gcc.c (get_region_description_for, get_call_site_action_for,
20312 get_action_description_for): Replace _Unwind_Word with _uleb128_t
20313 and _Unwind_SWord with _sleb128_t.
20315 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
20317 * Make-lang.in (ada/decl.o): Add gt-ada-decl.h dependency.
20318 * decl.c: Include gt-ada-decl.h.
20319 (annotate_value_cache): New.
20320 (annotate_value): Use it instead of TREE_COMPLEXITY.
20322 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
20324 * misc.c, utils2.c: Fix comment typos.
20326 2007-01-24 Roger Sayle <roger@eyesopen.com>
20328 * decl.c (gnat_to_gnu_entity): Use TREE_OVERFLOW instead of
20329 TREE_CONSTANT_OVERFLOW.
20330 (allocatable_size_p, annotate_value): Likewise.
20331 * trans.c (gnat_to_gnu): Likewise.
20332 * utils.c (unchecked_convert): Likewise.
20333 * utils2.c (build_simple_component_ref): Likewise.
20335 2007-01-23 Richard Guenther <rguenther@suse.de>
20338 * Make-lang.in: Replace invocations of gnatmake with $(GNATMAKE).
20339 (gnatboot2): Pass staged GNATMAKE instead of STAGE_PREFIX.
20340 (gnatboot3): Likewise.
20341 (GNATBIND): Do not define.
20342 * Makefile.in (GNATBIND): Do not define.
20344 2007-01-08 Richard Guenther <rguenther@suse.de>
20346 * cuintp.c (build_cst_from_int): Use built_int_cst_type.
20347 * trans.c (gnat_to_gnu): Likewise.
20349 2006-12-07 Geoffrey Keating <geoffk@apple.com>
20351 * Makefile.in: Replace CROSS_COMPILE with CROSS_DIRECTORY_STRUCTURE.
20352 * adaint.c: Likewise.
20354 2006-12-05 Aldy Hernandez <aldyh@redhat.com>
20356 Merge from gimple-tuples-branch:
20357 2006-11-02 Aldy Hernandez <aldyh@redhat.com>
20359 * ada-tree.h (lang_tree_node): Handle gimple tuples.
20360 * trans.c (gnat_gimplify_expr): Replace MODIFY_EXPR with
20361 GIMPLE_MODIFY_STMT.
20363 2006-12-02 Kazu Hirata <kazu@codesourcery.com>
20365 * Makefile.in, mingw32.h, trans.c: Fix comment typos.
20366 * gnat_rm.texi, gnat_ugn.texi: Follow spelling conventions.
20369 2006-11-17 Eric Botcazou <ebotcazou@adacore.com>
20372 * trans.c (add_decl_expr): Do not dynamically elaborate padded objects
20373 if the initializer takes into account the padding.
20375 2006-11-11 Richard Guenther <rguenther@suse.de>
20377 * trans.c (maybe_stabilize_reference): Remove handling of
20378 FIX_CEIL_EXPR, FIX_FLOOR_EXPR and FIX_ROUND_EXPR.
20380 2006-11-05 Arnaud Charlet <charlet@adacore.com>
20383 * s-osinte-linux-alpha.ads, s-osinte-linux-hppa.ads
20384 (To_Target_Priority): New function.
20386 2006-10-31 Robert Dewar <dewar@adacore.com>
20388 * a-taster.adb, s-traent-vms.adb, a-elchha.ads, a-elchha.adb,
20389 a-exctra.adb, ali-util.adb, exp_disp.ads, s-stalib.ads, s-traent.adb,
20390 s-addope.ads, s-addope.adb, a-rbtgso.adb, a-crbltr.ads, a-coprnu.adb,
20391 a-cgcaso.adb, a-cgarso.adb, a-cgaaso.adb, a-coormu.adb, a-ciormu.adb,
20392 a-rbtgso.ads, a-stunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb,
20393 a-secain.adb, a-slcain.adb, a-shcain.adb, a-stwiha.adb, a-stwiha.adb,
20394 a-strhas.adb, a-strhas.adb, a-stzhas.adb, a-stzhas.adb, a-szuzha.adb,
20395 a-chacon.adb, a-chacon.adb, a-chacon.ads, a-stboha.adb, a-swbwha.adb,
20396 a-szbzha.adb: Minor reformatting. Fix header.
20398 * a-numaux-x86.adb: Add parentheses for use of unary minus
20399 * a-ngcefu.adb: Supply missing parentheses for unary minus
20400 * a-ngcoty.adb: Add parens for use of unary minus
20401 * a-ngelfu.adb: Add missing parens for unary minus
20402 * a-tifiio.adb: Add parentheses for uses of unary minus
20404 2006-10-31 Robert Dewar <dewar@adacore.com>
20405 Bob Duff <duff@adacore.com>
20406 Ed Schonberg <schonberg@adacore.com>
20408 * sem_res.adb (Resolve_Unary_Op): Add warning for use of unary minus
20409 with multiplying operator.
20410 (Expected_Type_Is_Any_Real): New function to determine from the Parent
20411 pointer whether the context expects "any real type".
20412 (Resolve_Arithmetic_Op): Do not give an error on calls to the
20413 universal_fixed "*" and "/" operators when they are used in a context
20414 that expects any real type. Also set the type of the node to
20415 Universal_Real in this case, because downstream processing requires it
20416 (mainly static expression evaluation).
20417 Reword some continuation messages
20418 Add some \\ sequences to continuation messages
20419 (Resolve_Call): Refine infinite recursion case. The test has been
20420 sharpened to eliminate some false positives.
20421 Check for Current_Task usage now includes entry barrier, and is now a
20422 warning, not an error.
20423 (Resolve): If the call is ambiguous, indicate whether an interpretation
20424 is an inherited operation.
20425 (Check_Aggr): When resolving aggregates, skip associations with a box,
20426 which are priori correct, and will be replaced by an actual default
20427 expression in the course of expansion.
20428 (Resolve_Type_Conversion): Add missing support for conversion from
20429 a class-wide interface to a tagged type. Minor code cleanup.
20430 (Valid_Tagged_Converion): Add support for abstact interface type
20432 (Resolve_Selected_Component): Call Generate_Reference here rather than
20433 during analysis, and use May_Be_Lvalue to distinguish read/write.
20434 (Valid_Array_Conversion): New procedure, abstracted from
20435 Valid_Conversion, to incorporate accessibility checks for arrays of
20436 anonymous access types.
20437 (Valid_Conversion): For a conversion to a numeric type occurring in an
20438 instance or inlined body, no need to check that the operand type is
20439 numeric, since this has been checked during analysis of the template.
20440 Remove legacy test for scope name Unchecked_Conversion.
20442 * sem_res.ads: Minor reformatting
20444 * a-except.adb, a-except-2005.adb: Turn off subprogram ordering
20445 (PE_Current_Task_In_Entry_Body): New exception code
20446 (SE_Restriction_Violation): Removed, not used
20448 * a-except.ads: Update comments.
20450 * types.h, types.ads: Add definition for Validity_Check
20451 (PE_Current_Task_In_Entry_Body): New exception code
20452 (SE_Restriction_Violation): Removed, not used
20454 2006-10-31 Thomas Quinot <quinot@adacore.com>
20456 * g-socthi-vxworks.adb (C_Gethostbyname): Fix wrong test for returned
20459 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
20460 Jose Ruiz <ruiz@adacore.com>
20462 * a-calend-vms.adb (Leap_Sec_Ops): Temp body for package in private
20463 part of Ada.Calendar: all subprogram raise Unimplemented.
20464 (Split_W_Offset): Temp function body, raising Unimplemented
20466 * a-calend.ads, a-calend-vms.ads:
20467 Add imported variable Invalid_TZ_Offset used to designate targets unable
20468 to support time zones.
20469 (Unimplemented): Temporary function raised by the body of new
20471 (Leap_Sec_Ops): New package in the private part of Ada.Calendar. This
20472 unit provides handling of leap seconds and is used by the new Ada 2005
20473 packages Ada.Calendar.Arithmetic and Ada.Calendar.Formatting.
20474 (Split_W_Offset): Identical spec to that of Ada.Calendar.Split. This
20475 version returns an extra value which is the offset to UTC.
20477 * a-calend.adb (Split_W_Offset): Add call to localtime_tzoff.
20478 (Leap_Sec_Ops): New body for package in private part of Ada.Calendar.
20479 (Split_W_Offset): New function body.
20480 (Time_Of): When a date is close to UNIX epoch, compute the time for
20481 that date plus one day (that amount is later substracted after
20482 executing mktime) so there are no problems with time zone adjustments.
20484 * a-calend-mingw.adb: Remove Windows specific version no longer needed.
20486 * a-calari.ads, a-calari.adb, a-calfor.ads, a-calfor.adb,
20487 a-catizo.ads, a-catizo.adb: New files.
20489 * impunit.adb: Add new Ada 2005 entries
20491 * sysdep.c: Add external variable __gnat_invalid_tz_offset.
20492 Rename all occurences of "__gnat_localtime_r" to
20493 "__gnat_localtime_tzoff".
20494 (__gnat_localtime_tzoff for Windows): Add logic to retrieve the time
20495 zone data and calculate the GMT offset.
20496 (__gnat_localtime_tzoff for Darwin, Free BSD, Linux, Lynx and Tru64):
20497 Use the field "tm_gmtoff" to extract the GMT offset.
20498 (__gnat_localtime_tzoff for AIX, HPUX, SGI Irix and Sun Solaris): Use
20499 the external variable "timezone" to calculate the GMT offset.
20501 2006-10-31 Arnaud Charlet <charlet@adacore.com>
20502 Jose Ruiz <ruiz@adacore.com>
20504 * s-osinte-posix.adb, s-osinte-linux.ads, s-osinte-freebsd.adb,
20505 s-osinte-freebsd.ads, s-osinte-solaris-posix.ads, s-osinte-hpux.ads,
20506 s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-lynxos-3.ads,
20507 s-osinte-lynxos-3.adb (To_Target_Priority): New function maps from
20508 System.Any_Priority to a POSIX priority on the target.
20510 * system-linux-ia64.ads:
20511 Extend range of Priority types on Linux to use the whole range made
20512 available by the system.
20514 * s-osinte-aix.adb, s-osinte-aix.ads (To_Target_Priority): New
20515 function maps from System.Any_Priority to a POSIX priority on the
20517 (PTHREAD_PRIO_PROTECT): Set real value.
20518 (PTHREAD_PRIO_INHERIT): Now a function.
20519 (SIGCPUFAIL): New signal.
20520 (Reserved): Add SIGALRM1, SIGWAITING, SIGCPUFAIL, since these signals
20521 are documented as reserved by the OS.
20523 * system-aix.ads: Use the full range of priorities provided by the
20526 * s-taprop-posix.adb: Call new function To_Target_Priority.
20527 (Set_Priority): Take into account Task_Dispatching_Policy and
20528 Priority_Specific_Dispatching pragmas when determining if Round Robin
20529 must be used for scheduling the task.
20531 * system-linux-x86_64.ads, system-linux-x86.ads,
20532 system-linux-ppc.ads: Extend range of Priority types on Linux to use
20533 the whole range made available by the system.
20535 * s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-irix.adb,
20536 s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-hpux-dce.adb,
20537 s-taprop-lynxos.adb (Finalize_TCB): invalidate the stack-check cache
20538 when deallocating the TCB in order to avoid potential references to
20540 (Set_Priority): Take into account Task_Dispatching_Policy and
20541 Priority_Specific_Dispatching pragmas when determining if Round Robin
20542 or FIFO within priorities must be used for scheduling the task.
20544 * s-taprop-vxworks.adb (Enter_Task): Store the user-level task id in
20545 the Thread field (to be used internally by the run-time system) and the
20546 kernel-level task id in the LWP field (to be used by the debugger).
20547 (Create_Task): Reorganize to unify the calls to taskSpawn into a single
20548 instance, and propagate the current task options to the spawned task.
20549 (Set_Priority): Take into account Priority_Specific_Dispatching pragmas.
20550 (Initialize): Set Round Robin dispatching when the corresponding pragma
20553 2006-10-31 Robert Dewar <dewar@adacore.com>
20555 * system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
20556 system-linux-hppa.ads, system-hpux-ia64.ads,
20557 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-tru64.ads,
20558 system-vxworks-sparcv9.ads, system-solaris-x86.ads,
20559 system-irix-o32.ads, system-irix-n32.ads, system-hpux.ads,
20560 system-vxworks-m68k.ads, system-vxworks-mips.ads, system-interix.ads,
20561 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
20562 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
20563 system-vxworks-alpha.ads, system.ads: Add pragma Warnings(Off,
20564 Default_Bit_Order) to kill constant condition warnings for references
20567 2006-10-31 Vincent Celier <celier@adacore.com>
20568 Eric Botcazou <ebotcazou@adacore.com>
20570 * mlib-tgt-lynxos.adb, mlib-tgt-mingw.adb, mlib-tgt-tru64.adb,
20571 mlib-tgt-aix.adb, mlib-tgt-irix.adb, mlib-tgt-hpux.adb,
20572 mlib-tgt-linux.adb, mlib-tgt-solaris.adb: Use Append_To, instead of
20573 Ext_To, when building the library file name
20575 * mlib-tgt-vxworks.adb: ditto.
20576 (Get_Target_Suffix): Add support for x86 targets.
20578 * mlib-fil.ads, mlib-fil.adb: (Append_To): New function
20580 * mlib-tgt-darwin.adb:
20581 Use Append_To, instead of Ext_To, when building the library file name
20582 (Flat_Namespace): New global variable.
20583 (No_Shared_Libgcc_Switch): Rename to No_Shared_Libgcc_Options.
20584 (Shared_Libgcc_Switch): Rename to With_Shared_Libgcc_Options.
20585 (Link_Shared_Libgcc): Delete.
20586 (Build_Dynamic_Library): Adjust for above changes.
20588 (Build_Dynamic_Library): Pass -shared-libgcc if GCC 4 or later.
20590 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
20592 * s-taprop-solaris.adb: (Time_Slice_Val): Change type to Integer.
20593 (Initialize): Add type conversions required by above change.
20595 2006-10-31 Jose Ruiz <ruiz@adacore.com>
20597 * s-osinte-vxworks.ads, s-osinte-vxworks.adb:
20598 (getpid): New body for this function that uses the underlying taskIdSelf
20599 function for VxWorks 5 and VxWorks 6 in kernel mode.
20600 (unsigned_int): New type, modular to allow logical bit operations.
20601 (taskOptionsGet): New imported function.
20603 * s-taspri-vxworks.ads (Private_Data): Change the type for the LWP
20604 field to be compliant with the type used by the corresponding operating
20607 2006-10-31 Pascal Obry <obry@adacore.com>
20608 Eric Botcazou <ebotcazou@adacore.com>
20609 Vincent Celier <celier@adacore.com>
20611 * adaint.c (__gnat_get_libraries_from_registry): Call explicitly the
20612 ASCII version of the registry API. This is needed as the GNAT runtime
20613 is now UNICODE by default.
20615 (get_gcc_version): Do not hardcode the return value.
20616 (__gnat_file_time_name): On Windows properly set the default returned
20617 value to -1 which corresponds to Invalid_Time.
20618 (__gnat_fopen): New routine. A simple wrapper on all plateforms
20619 except on Windows where it does conversion for unicode support.
20620 (__gnat_freopen): Idem.
20621 (__gnat_locate_exec_on_path): If environment variable PATH does not
20622 exist, return a NULL pointer
20624 * adaint.h: (__gnat_fopen): Declare.
20625 (__gnat_freopen): Likewise.
20627 * mingw32.h (_tfreopen): Define this macro here for older MingW
20629 Activate the unicode support on platforms using a MingW runtime
20630 version 3.9 or newer.
20632 * s-crtl.ads (fopen): Is now an import to the wrapper __gnat_freopen.
20633 This is needed for proper unicode support on Windows.
20636 2006-10-31 Eric Botcazou <ebotcazou@adacore.com>
20637 Nicolas Setton <setton@adacore.com>
20638 Olivier Hainque <hainque@adacore.com>
20639 Gary Dismukes <dismukes@adacore.com>
20641 * gigi.h: (tree_code_for_record_type): Declare.
20642 (add_global_renaming_pointer): Rename to record_global_renaming_pointer.
20643 (get_global_renaming_pointers): Rename to
20644 invalidate_global_renaming_pointers.
20645 (static_ctors): Delete.
20646 (static_dtors): Likewise.
20647 (gnat_write_global_declarations): Declare.
20648 (create_var_decl): Adjust descriptive comment to indicate that the
20649 subprogram may return a CONST_DECL node.
20650 (create_true_var_decl): Declare new function, similar to
20651 create_var_decl but forcing the creation of a VAR_DECL node.
20652 (get_global_renaming_pointers): Declare.
20653 (add_global_renaming_pointer): Likewise.
20655 * ada-tree.h (DECL_READONLY_ONCE_ELAB): New macro.
20657 * decl.c (gnat_to_gnu_entity) <case E_Function>: Don't copy the type
20658 tree before setting TREE_ADDRESSABLE for by-reference return mechanism
20660 (gnat_to_gnu_entity): Remove From_With_Type from computation for
20662 <E_Access_Type>: Use the Non_Limited_View as the full view of the
20663 designated type if the pointer comes from a limited_with clause. Make
20664 incomplete designated type if it is in the main unit and has a freeze
20666 <E_Incomplete_Type>: Rework to treat Non_Limited_View, Full_View, and
20667 Underlying_Full_View similarly. Return earlier if the full view already
20668 has an associated tree.
20669 (gnat_to_gnu_entity) <E_Record_Type>: Restore comment.
20670 (gnat_to_gnu_entity) <E_Record_Type>: Do not use a dummy type.
20671 (gnat_to_gnu_entity) <E_Variable>: Set TYPE_REF_CAN_ALIAS_ALL on the
20672 reference type built for objects with an address clause.
20673 Use create_true_var_decl with const_flag set for
20674 DECL_CONST_CORRESPONDING_VARs, ensuring a VAR_DECL is created with
20676 (gnat_to_gnu_entity, case E_Enumeration_Type): Set TYPE_NAME
20677 for Character and Wide_Character types. This info is read by the
20678 dwarf-2 writer, and is needed to be able to use the command "ptype
20679 character" in the debugger.
20680 (gnat_to_gnu_entity): When generating a type representing
20681 a Character or Wide_Character type, set the flag TYPE_STRING_FLAG,
20682 so that debug writers can distinguish it from ordinary integers.
20683 (elaborate_expression_1): Test the DECL_READONLY_ONCE_ELAB flag in
20684 addition to TREE_READONLY to assert the constantness of variables for
20685 elaboration purposes.
20686 (gnat_to_gnu_entity, subprogram cases): Change loops on formal
20687 parameters to call new Einfo function First_Formal_With_Extras.
20688 (gnat_to_gnu_entity): In type_annotate mode, replace a discriminant of a
20689 protected type with its corresponding discriminant, to obtain a usable
20691 (gnat_to_gnu_entity) <E_Access_Protected_Subprogram_Type>: Be prepared
20692 for a multiple elaboration of the "equivalent" type.
20693 (gnat_to_gnu_entity): Adjust for renaming of add_global_renaming_pointer
20694 into record_global_renaming_pointer.
20695 (gnat_to_gnu_entity) <E_Array_Type>: Do not force
20696 TYPE_NONALIASED_COMPONENT to 0 if the element type is an aggregate.
20697 <E_Array_Subtype>: Likewise.
20698 (gnat_to_gnu_entity) <E_Incomplete_Subtype>: Add support for regular
20699 incomplete subtypes and incomplete subtypes of incomplete types visible
20700 through a limited with clause.
20701 (gnat_to_gnu_entity) <E_Array_Subtype>: Take into account the bounds of
20702 the base index type for the maximum size of the array only if they are
20704 (gnat_to_gnu_entity, renaming object case): Do not wrap up the
20705 expression into a SAVE_EXPR if stabilization failed.
20707 * utils.c (create_subprog_decl): Turn TREE_ADDRESSABLE on the type of
20708 a result decl into DECL_BY_REFERENCE on this decl, now what is expected
20709 by lower level compilation passes.
20710 (gnat_genericize): New function, lowering a function body to GENERIC.
20711 Turn the type of RESULT_DECL into a real reference type if the decl
20712 has been marked DECL_BY_REFERENCE, and adjust references to the latter
20714 (gnat_genericize_r): New function. Tree walking callback for
20716 (convert_from_reference, is_byref_result): New functions. Helpers for
20718 (create_type_decl): Call gnat_pushdecl before calling
20719 rest_of_decl_compilation, to make sure that field TYPE_NAME of
20720 type_decl is properly set before calling the debug information writers.
20721 (write_record_type_debug_info): The heuristics which compute the
20722 alignment of a field in a variant record might not be accurate. Add a
20723 safety test to make sure no alignment is set to a smaller value than
20724 the alignment of the field type.
20725 (make_dummy_type): Use the Non_Limited_View as the underlying type if
20726 the type comes from a limited_with clause. Do not loop on the full view.
20727 (GET_GNU_TREE, SET_GNU_TREE, PRESENT_GNU_TREE): New macros.
20728 (dummy_node_table): New global variable, moved from decl.c.
20729 (GET_DUMMY_NODE, SET_DUMMY_NODE, PRESENT_DUMMY_NODE): New macros.
20730 (save_gnu_tree): Use above macros.
20731 (get_gnu_tree): Likewise.
20732 (present_gnu_tree): Likewise.
20733 (init_dummy_type): New function, moved from decl.c. Use above macros.
20734 (make_dummy_type): Likewise.
20735 (tree_code_for_record_type): New function extracted from make_dummy_type
20736 (init_gigi_decls): Set DECL_IS_MALLOC on gnat_malloc.
20737 (static_ctors): Change it to a vector, make static.
20738 (static_dtors): Likewise.
20739 (end_subprog_body): Adjust for above change.
20740 (build_global_cdtor): Moved from trans.c.
20741 (gnat_write_global_declarations): Emit global constructor and
20742 destructor, and call cgraph_optimize before emitting debug info for
20743 global declarations.
20744 (global_decls): New global variable.
20745 (gnat_pushdecl): Store the global declarations in global_decls, for
20747 (gnat_write_global_declarations): Emit debug information for global
20749 (create_var_decl_1): Former create_var_decl, with an extra argument to
20750 state whether the creation of a CONST_DECL is allowed.
20751 (create_var_decl): Behavior unchanged. Now a wrapper around
20752 create_var_decl_1 allowing CONST_DECL creation.
20753 (create_true_var_decl): New function, similar to create_var_decl but
20754 forcing the creation of a VAR_DECL node (CONST_DECL not allowed).
20755 (create_field_decl): Do not always mark the field as addressable
20756 if its type is an aggregate.
20757 (global_renaming_pointers): New static variable.
20758 (add_global_renaming_pointer): New function.
20759 (get_global_renaming_pointers): Likewise.
20761 * misc.c (gnat_dwarf_name): New function.
20762 (LANG_HOOKS_DWARF_NAME): Define to gnat_dwarf_name.
20763 (gnat_post_options): Add comment about structural alias analysis.
20764 (gnat_parse_file): Do not call cgraph_optimize here.
20765 (LANG_HOOKS_WRITE_GLOBALS): Define to gnat_write_global_declarations.
20767 * trans.c (process_freeze_entity): Don't abort if we already have a
20768 non dummy GCC tree for a Concurrent_Record_Type, as it might
20769 legitimately have been elaborated while processing the associated
20770 Concurrent_Type prior to this explicit freeze node.
20771 (Identifier_to_gnu): Do not make a variable referenced in a SJLJ
20772 exception handler volatile if it is of variable size.
20773 (process_type): Remove bypass for types coming from a limited_with
20775 (call_to_gnu): When processing the copy-out of a N_Type_Conversion GNAT
20776 actual, convert the corresponding gnu_actual to the real destination
20777 type when necessary.
20778 (add_decl_expr): Set the DECL_READONLY_ONCE_ELAB flag on variables
20779 originally TREE_READONLY but whose elaboration cannot be performed
20781 Part of fix for F504-021.
20782 (tree_transform, subprogram cases): Change loops on formal parameters to
20783 call new Einfo function First_Formal_With_Extras.
20784 (gnat_to_gnu) <N_Op_Shift_Right_Arithmetic>: Ignore constant overflow
20785 stemming from type conversion for the lhs.
20786 (Attribute_to_gnu) <Attr_Alignment>: Also divide the alignment by the
20787 number of bits per unit for components of records.
20788 (gnat_to_gnu) <N_Code_Statement>: Mark operands addressable if needed.
20789 (Handled_Sequence_Of_Statements_to_gnu): Register the cleanup associated
20790 with At_End_Proc after the SJLJ EH cleanup.
20791 (Compilation_Unit_to_gnu): Call elaborate_all_entities only on the main
20793 (elaborate_all_entities): Do not retest type_annotate_only.
20794 (tree_transform) <N_Abstract_Subprogram_Declaration>: Process the
20795 result type of an abstract subprogram, which may be an itype associated
20796 with an anonymous access result (related to AI-318-02).
20797 (build_global_cdtor): Move to utils.c.
20798 (Case_Statement_to_gnu): Avoid adding the choice of a when statement if
20799 this choice is not a null tree nor an integer constant.
20800 (gigi): Run unshare_save_expr via walk_tree_without_duplicates
20801 on the body of elaboration routines instead of mark_unvisited.
20802 (add_stmt): Do not mark the tree.
20803 (add_decl_expr): Tweak comment.
20804 (mark_unvisited): Delete.
20805 (unshare_save_expr): New static function.
20806 (call_to_gnu): Issue an error when making a temporary around a
20807 procedure call because of non-addressable actual parameter if the
20808 type of the formal is by_reference.
20809 (Compilation_Unit_to_gnu): Invalidate the global renaming pointers
20810 after building the elaboration routine.
20812 2006-10-31 Bob Duff <duff@adacore.com>
20814 * a-filico.adb (Finalize(List_Controller)): Mark the finalization list
20815 as finalization-started, so we can raise Program_Error on 'new'.
20817 * s-finimp.adb: Raise Program_Error on 'new' if finalization of the
20818 collection has already started.
20820 * s-finimp.ads (Collection_Finalization_Started): Added new special
20821 flag value for indicating that a collection's finalization has started.
20823 * s-tassta.adb (Create_Task): Raise Program_Error on an attempt to
20824 create a task whose master has already waited for dependent tasks.
20826 2006-10-31 Robert Dewar <dewar@adacore.com>
20828 * lib.adb, lib.ads: (In_Predefined_Unit): New functions
20830 * a-finali.ads, a-ngcoty.ads, a-strbou.ads, a-stream.ads, a-strmap.ads,
20831 a-strunb.ads, a-stwibo.ads, a-stwima.ads, a-stwiun.ads, a-taside.ads,
20832 a-coorse.ads, a-convec.ads, a-coinve.ads, a-cohama.ads, a-ciorse.ads,
20833 a-cihama.ads, a-cihase.ads, a-cohase.ads, a-ciorma.ads, a-coorma.ads,
20834 a-ciormu.ads, a-coormu.ads, a-stzbou.ads, a-stzmap.ads, a-stzunb.ads,
20835 a-except-2005.ads: Add pragma Preelaborable_Warning
20837 2006-10-31 Robert Dewar <dewar@adacore.com>
20838 Jose Ruiz <ruiz@adacore.com>
20840 * a-dispat.ads, a-dispat.adb, a-diroro.ads, a-diroro.adb: New files.
20842 * ali.adb (Get_Name): Properly handle scanning of wide character names
20843 encoded with brackets notation.
20844 (Known_ALI_Lines): Add S lines to this list.
20845 (Scan_ALI): Acquire S (priority specific dispatching) lines.
20846 New flag Elaborate_All_Desirable in unit table
20848 * ali.ads (Priority_Specific_Dispatching): Add this range of
20849 identifiers to be used for Priority_Specific_Dispatching table entries.
20850 (ALIs_Record): Add First_Specific_Dispatching and
20851 Last_Specific_Dispatching that point to the first and last entries
20852 respectively in the priority specific dispatching table for this unit.
20853 (Specific_Dispatching): Add this table for storing each S (priority
20854 specific dispatching) line encountered in the input ALI file.
20855 New flag Elaborate_All_Desirable in unit table
20857 * bcheck.adb: (Check_Configuration_Consistency): Add call to
20858 Check_Consistent_Dispatching_Policy.
20859 (Check_Consistent_Dispatching_Policy): Add this procedure in charge of
20860 verifying that the use of Priority_Specific_Dispatching,
20861 Task_Dispatching_Policy, and Locking_Policy is consistent across the
20864 * bindgen.adb: (Public_Version_Warning): function removed.
20865 (Set_PSD_Pragma_Table): Add this procedure in charge of getting the
20866 required information from ALI files in order to initialize the table
20867 containing the specific dispatching policy.
20868 (Gen_Adainit_Ada): Generate the variables required for priority specific
20869 dispatching entries (__gl_priority_specific_dispatching and
20870 __gl_num_specific_dispatching).
20871 (Gen_Adainit_C): Generate the variables required for priority specific
20872 dispatching entries (__gl_priority_specific_dispatching and
20873 __gl_num_specific_dispatching).
20874 (Gen_Output_File): Acquire settings for Priority_Specific_Dispatching
20876 (Gen_Restrictions_String_1, Gen_Restrictions_String_2): Removed.
20877 (Gen_Restrictions_Ada, Gen_Restrictions_C, Set_Boolean): New procedures.
20879 (Gen_Output_File_Ada/_C): Set directly __gl_xxx variables instead of
20880 a call to gnat_set_globals.
20881 Generate a string containing settings from
20882 Priority_Specific_Dispatching pragma entries.
20883 (Gen_Object_Files_Options): Do not include the runtime libraries when
20884 pragma No_Run_Time is specified.
20886 * init.c (__gnat_install_handler, case FreeBSD): Use SA_SIGINFO, for
20887 consistency with s-intman-posix.adb.
20888 (__gnat_error_handler, case FreeBSD): Account for the fact that the
20889 handler is installed with SA_SIGINFO.
20890 (__gnat_adjust_context_for_raise, FreeBSD case): New function for
20891 FreeBSD ZCX support, copied from Linux version.
20892 Add MaRTE-specific definitions for the linux target. Redefine sigaction,
20893 sigfillset, and sigemptyset so the routines defined by MaRTE.
20894 (__gl_priority_specific_dispatching): Add this variable that stores the
20895 string containing priority specific dispatching policies in the
20897 (__gl_num_specific_dispatching): Add this variable that indicates the
20898 highest priority for which a priority specific dispatching pragma
20900 (__gnat_get_specific_dispatching): Add this routine that returns the
20901 priority specific dispatching policy, as set by a
20902 Priority_Specific_Dispatching pragma appearing anywhere in the current
20903 partition. The input argument is the priority number, and the result
20904 is the upper case first character of the policy name.
20905 (__gnat_set_globals): Now a dummy function.
20906 (__gnat_handle_vms_condition): Feed adjust_context_for_raise with
20907 mechargs instead of sigargs, as the latter can be retrieved from the
20908 former and sigargs is not what we want on ia64.
20909 (__gnat_adjust_context_for_raise, alpha-vms): Fetch sigargs from the
20911 (__gnat_adjust_context_for_raise, ia64-vms): New function.
20912 (tasking_error): Remove unused symbol.
20913 (_abort_signal): Move this symbol to the IRIX specific part since this
20914 is the only target that uses this definition.
20915 (Check_Abort_Status): Move this symbol to the IRIX specific part since
20916 this is the only target that uses this definition.
20917 (Lock_Task): Remove unused symbol.
20918 (Unlock_Task): Remove unused symbol.
20920 * lib-writ.adb (Write_ALI): Output new S lines for
20921 Priority_Specific_Dispatching pragmas.
20922 Implement new flag BD for elaborate body desirable
20924 * lib-writ.ads: Document S lines for Priority Specific Dispatching.
20925 (Specific_Dispatching): Add this table for storing the entries
20926 corresponding to Priority_Specific_Dispatching pragmas.
20927 Document new BD flag for elaborate body desirable
20929 * par-prag.adb (Prag): Add Priority_Specific_Dispatching to the list
20932 2006-10-31 Javier Miranda <miranda@adacore.com>
20934 * a-tags.ads, a-tags.adb:
20935 (Predefined_DT): New function that improves readability of the code.
20936 (Get_Predefined_Prim_Op_Address, Set_Predefined_Prim_Op_Address,
20937 Inherit_DT): Use the new function Predefined_DT to improve code
20939 (Register_Interface_Tag): Update assertion.
20940 (Set_Interface_Table): Update assertion.
20941 (Interface_Ancestor_Tags): New subprogram required to implement AI-405:
20942 determining progenitor interfaces in Tags.
20943 (Inherit_CPP_DT): New subprogram.
20945 * exp_disp.adb (Expand_Interface_Thunk): Suppress checks during the
20946 analysis of the thunk code.
20947 (Expand_Interface_Conversion): Handle run-time conversion of
20948 access to class wide types.
20949 (Expand_Dispatching_Call): When generating the profile for the
20950 subprogram itype for a dispatching operation, properly terminate the
20951 formal parameters chaind list (set the Next_Entity of the last formal
20953 (Collect_All_Interfaces): Removed. This routine has been moved to
20954 sem_util and renamed as Collect_All_Abstract_Interfaces.
20955 (Set_All_DT_Position): Hidden entities associated with abstract
20956 interface primitives are not taken into account in the check for
20957 3.9.3(10); this check is done with the aliased entity.
20958 (Make_DT, Set_All_DT_Position): Enable full ABI compatibility for
20959 interfacing with CPP by default.
20960 (Expand_Interface_Conversion): Add missing support for static conversion
20961 from an interface to a tagged type.
20962 (Collect_All_Interfaces): Add new out formal containing the list of
20963 abstract interface types to cleanup the subprogram Make_DT.
20964 (Make_DT): Update the code to generate the table of interfaces in case
20965 of abstract interface types.
20966 (Is_Predefined_Dispatching_Alias): New function that returns true if
20967 a primitive is not a predefined dispatching primitive but it is an
20968 alias of a predefined dispatching primitive.
20969 (Make_DT): If the ancestor of the type is a CPP_Class and we are
20970 compiling under full ABI compatibility mode we avoid the generation of
20971 calls to run-time services that fill the dispatch tables because under
20972 this mode we currently inherit the dispatch tables in the IP subprogram.
20973 (Write_DT): Emit an "is null" indication for a null procedure primitive.
20974 (Expand_Interface_Conversion): Use an address as the type of the formal
20975 of the internally built function that handles the case in which the
20976 target type is an access type.
20978 2006-10-31 Robert Dewar <dewar@adacore.com>
20980 * binde.adb (Better_Choice, Worse_Choice): Implement new preferences.
20982 2006-10-31 Robert Dewar <dewar@adacore.com>
20984 * bindusg.ads, bindusg.adb:
20985 Change to package and rename procedure as Display, which
20986 now ensures that it only outputs usage information once.
20988 2006-10-31 Jose Ruiz <ruiz@adacore.com>
20990 * cal.c: Use the header sys/time.h for VxWorks 6.2 or greater when
20993 * mkdir.c: Use a different version of mkdir for VxWorks 6.2 or greater
20996 2006-10-31 Robert Dewar <dewar@adacore.com>
20997 Ed Schonberg <schonberg@adacore.com>
20999 * treepr.adb: Use new subtype N_Membership_Test
21001 * checks.ads, checks.adb: Add definition for Validity_Check
21002 (Range_Or_Validity_Checks_Suppressed): New function
21003 (Ensure_Valid): Test Validity_Check suppressed
21004 (Insert_Valid_Check): Test Validity_Check suppressed
21005 (Insert_Valid_Check): Preserve Do_Range_Check flag
21006 (Validity_Check_Range): New procedure
21007 (Expr_Known_Valid): Result of membership test is always valid
21008 (Selected_Range_Checks): Range checks cannot be applied to discriminants
21009 by themselves. Disabling those checks must also be done for task types,
21010 where discriminants may be used for the bounds of entry families.
21011 (Apply_Address_Clause_Check): Remove side-effects if address expression
21012 is non-static and is not the name of a declared constant.
21013 (Null_Exclusion_Static_Checks): Extend to handle Function_Specification.
21014 Code cleanup and new error messages.
21015 (Enable_Range_Check): Test for some cases of suppressed checks
21016 (Generate_Index_Checks): Suppress index checks if index checks are
21017 suppressed for array object or array type.
21018 (Apply_Selected_Length_Checks): Give warning for compile-time detected
21019 length check failure, even if checks are off.
21020 (Ensure_Valid): Do not generate a check on an indexed component whose
21021 prefix is a packed boolean array.
21022 * checks.adb: (Alignment_Checks_Suppressed): New function
21023 (Apply_Address_Clause_Check): New procedure, this is a completely
21024 rewritten replacement for Apply_Alignment_Check
21025 (Get_E_Length/Get_E_First_Or_Last): Add missing barrier to ensure that
21026 we request a discriminal value only in case of discriminants.
21027 (Apply_Discriminant_Check): For Ada_05, only call Get_Actual_Subtype for
21028 assignments where the target subtype is unconstrained and the target
21029 object is a parameter or dereference (other aliased cases are known
21030 to be unconstrained).
21032 2006-10-31 Robert Dewar <dewar@adacore.com>
21034 * clean.adb, gnatname.adb, gnatsym.adb, prep.adb, prep.ads,
21035 prepcomp.adb, prj.ads, prj-strt.adb, sem_maps.ads,
21036 vms_conv.adb: Fix bad table increment values (much too small)
21038 * table.adb (Realloc): Make sure we get at least some new elements
21039 Defends against silly small values for table increment
21041 2006-10-31 Robert Dewar <dewar@adacore.com>
21042 Ed Schonberg <schonberg@adacore.com>
21043 Bob Duff <duff@adacore.com>
21045 * einfo.ads, einfo.adb (Obsolescent_Warning): Now defined on all
21046 entities. Move other fields around to make this possible
21047 (Is_Derived_Type): Add missing call to Is_Type.
21048 (Extra_Formals): New function for subprograms, entries, subprogram
21050 (Set_Extra_Formals): New procedure for subprograms, entries, subp types.
21051 (First_Formal_With_Extras): New function for subprogs, entries, subp
21053 (Write_Field28_Name): New procedure for node display of "Extra_Formals".
21054 Add node information for E_Return_Statement.
21055 (Elaborate_Body_Desirable): New flag
21056 (Is_Return_By_Reference_Type): Rename Is_Return_By_Reference_Type
21057 to be Is_Inherently_Limited_Type, because return-by-reference has
21058 no meaning in Ada 2005.
21059 (E_Return_Statement): New entity kind.
21060 (Return_Applies_To): Field of E_Return_Statement.
21061 (Is_Return_Object): New flag in object entities.
21062 (Is_Dynamic_Scope): Make it True for E_Return_Statement.
21063 (Must_Have_Preelab_Init): New flag
21064 (Known_To_Have_Preelab_Init): New flag
21065 (Is_Formal_Object): Move from Sem_Ch8 body to Einfo
21066 (Is_Visible_Formal): New flag on entities in formal packages.
21067 (Low_Bound_Known): New flag
21068 (Non_Limited_View, Set_Non_Limited_View): Add membership test agains
21070 (Write_Field17_Name): Correct spelling of Non_Limited_View. Add name
21071 output when Id is an incomplete subtype.
21073 2006-10-31 Robert Dewar <dewar@adacore.com>
21075 * errout.ads, errout.adb (Finalize): Implement switch -gnatd.m
21076 Avoid abbreviation Creat
21077 (Finalize): List all sources in extended mail source if -gnatl
21079 Suppress copyright notice to file in -gnatl=f mode if -gnatd7 set
21080 (Finalize): Implement new -gnatl=xxx switch to output listing to file
21081 (Set_Specific_Warning_On): New procedure
21082 (Set_Specific_Warning_Off): New procedure
21083 Add implementation of new insertion \\
21084 (Error_Msg_Internal): Add handling for Error_Msg_Line_Length
21085 (Unwind_Internal_Type): Improve report on anonymous access_to_subprogram
21087 (Error_Msg_Internal): Make sure that we set Last_Killed to
21088 True when a message from another package is suppressed.
21089 Implement insertion character ~ (insert string)
21090 (First_Node): Minor adjustments to get better placement.
21093 Implement new -gnatl=xxx switch to output listing to file
21096 Implement new -gnatl=xxx switch to output listing to file
21098 * opt.ads: (Warn_On_Questionable_Missing_Paren): New switch
21099 (Commands_To_Stdout): New flag
21100 Implement new -gnatl=xxx switch to output listing to file
21101 New switch Dump_Source_Text
21102 (Warn_On_Deleted_Code): New warning flag for -gnatwt
21103 Define Error_Msg_Line_Length
21104 (Warn_On_Assumed_Low_Bound): New switch
21106 * osint.ads, osint.adb
21107 (Normalize_Directory_Name): Fix bug.
21108 Implement new -gnatl=xxx switch to output listing to file
21109 (Concat): Removed, replaced by real concatenation
21110 Make use of concatenation now allowed in compiler
21111 (Executable_Prefix.Get_Install_Dir): First get the full path, so that
21112 we find the 'lib' or 'bin' directory even when the tool has been
21113 invoked with a relative path.
21114 (Executable_Name): New function taking string parameters.
21116 * osint-c.ads, osint-c.adb:
21117 Implement new -gnatl=xxx switch to output listing to file
21119 * sinput-d.adb: Change name Creat_Debug_File to Create_Debug_File
21122 Implement new -gnatl=xxx switch to output listing to file
21123 Recognize new -gnatL switch
21124 (no longer keep in old warning about old style usage)
21125 Use concatenation to simplify code
21126 Recognize -gnatjnn switch
21127 (Scan_Front_End_Switches): Clean up handling of -gnatW
21128 (Scan_Front_End_Switches): Include Warn_On_Assumed_Low_Bound for -gnatg
21130 2006-10-31 Robert Dewar <dewar@adacore.com>
21132 * erroutc.ads, erroutc.adb (Set_Specific_Warning_On): New procedure
21133 (Set_Specific_Warning_Off): New procedure
21134 (Warning_Specifically_Suppressed): New function
21135 (Validate_Specific_Warnings): New procedure
21136 (Output_Msg_Text): Complete rewrite to support -gnatjnn
21138 * err_vars.ads: Implement insertion character ~ (insert string)
21140 2006-10-31 Bob Duff <duff@adacore.com>
21141 Ed Schonberg <schonberg@adacore.com>
21143 * exp_aggr.adb (Build_Record_Aggr_Code): For extension aggregates, if
21144 the parent part is a build-in-place function call, generate assignments.
21145 (Expand_Record_Aggregate): Call Convert_To_Assignments if any components
21146 are build-in-place function calls.
21147 (Replace_Self_Reference): New subsidiary of
21148 Make_OK_Assignment_Statement, to replace an access attribute that is a
21149 self-reference into an access to the appropriate component of the
21150 target object. Generalizes previous mechanism to handle self-references
21151 nested at any level.
21152 (Is_Self_Referential_Init): Remove, not needed.
21153 (Is_Self_Referential_Init): New predicate to simplify handling of self
21154 referential components in record aggregates.
21155 (Has_Default_Init_Comps, Make_OK_Assignment_Statement): Add guard to
21156 check for presence of entity before checking for self-reference.
21157 (Has_Default_Init_Comps): Return True if a component association is a
21158 self-reference to the enclosing type, which can only come from a
21159 default initialization.
21160 (Make_OK_Assignment_Statement): If the expression is of the form
21161 Typ'Acc, where Acc is an access attribute, the expression comes from a
21162 default initialized self-referential component.
21163 (Build_Record_Aggr_Code): If the type of the aggregate is a tagged type
21164 that has been derived from several abstract interfaces we must also
21165 initialize the tags of the secondary dispatch tables.
21167 2006-10-31 Ed Schonberg <schonberg@adacore.com>
21168 Thomas Quinot <quinot@adacore.com>
21169 Javier Miranda <miranda@adacore.com>
21170 Robert Dewar <dewar@adacore.com>
21173 (Expand_Access_To_Protected_Op): If the context indicates that an access
21174 to a local operation may be transfered outside of the object, create an
21175 access to the wrapper operation that must be used in an external call.
21176 (Expand_N_Attribute_Reference, case Attribute_Valid): For the AAMP
21177 target, pass the Valid attribute applied to a floating-point prefix on
21178 to the back end without expansion.
21179 (Storage_Size): Use the new run-time function Storage_Size to retrieve
21180 the allocated storage when it is specified by a per-object expression.
21181 (Expand_N_Attribute_Reference): Add case for Attribute_Stub_Type.
21182 Nothing to do here, the attribute has been rewritten during semantic
21184 (Expand_Attribute_Reference): Handle expansion of the new Priority
21186 (Find_Fat_Info): Handle case of universal real
21187 (Expand_Access_To_Protected_Op): Fix use of access to protected
21188 subprogram from inside the body of a protected entry.
21189 (Expand_Access_To_Protected_Op): Common procedure for the expansion of
21190 'Access and 'Unrestricted_Access, to transform the attribute reference
21191 into a fat pointer.
21192 (Is_Constrained_Aliased_View): New predicate to help determine whether a
21193 subcomponent's enclosing variable is aliased with a constrained subtype.
21194 (Expand_N_Attribute_Reference, case Attribute_Constrained): For Ada_05,
21195 test Is_Constrained_Aliased_View rather than Is_Aliased_View, because
21196 an aliased prefix must be known to be constrained in order to use True
21197 for the attribute value, and now it's possible for some aliased views
21198 to be unconstrained.
21200 2006-10-31 Robert Dewar <dewar@adacore.com>
21202 * exp_ch2.adb: Change Is_Lvalue to May_Be_Lvalue
21203 (Expand_Entity_Reference): Correct error of not handling subprogram
21204 formals in current_value processing.
21206 2006-10-31 Javier Miranda <miranda@adacore.com>
21207 Robert Dewar <dewar@adacore.com>
21208 Ed Schonberg <schonberg@adacore.com>
21209 Gary Dismukes <dismukes@adacore.com>
21211 * exp_ch3.ads, exp_ch3.adb (Expand_N_Object_Declaration): Do not
21212 register in the final list objects containing class-wide interfaces;
21213 otherwise we incorrectly register the tag of the interface in the final
21215 (Make_Controlling_Function_Wrappers): Add missing barrier to do not
21216 generate the wrapper if the parent primitive is abstract. This is
21217 required to report the correct error message.
21218 (Expand_N_Subtype_Indication): Do validity checks on range
21219 (Clean_Task_Names): If an initialization procedure includes a call to
21220 initialize a task (sub)component, indicate that the procedure will use
21221 the secondary stack.
21222 (Build_Init_Procedure, Init_Secondary_Tags): Enable full ABI
21223 compatibility for interfacing with CPP by default.
21224 (Expand_N_Object_Declaration): Only build an Adjust call when the
21225 object's type is a nonlimited controlled type.
21226 * exp_ch3.adb: Add with and use of Exp_Ch6.
21227 (Expand_N_Object_Declaration): Check for object initialization that is a
21228 call to build-in-place function and apply Make_Build_In_Place_Call_In_
21229 Object_Declaration to the call.
21230 (Freeze_Type): When the designated type of an RACW was not frozen at the
21231 point where the RACW was declared, validate the primitive operations
21232 with respect to E.2.2(14) when it finally is frozen.
21233 (Build_Initialization_Call,Expand_Record_Controller): Rename
21234 Is_Return_By_Reference_Type to be Is_Inherently_Limited_Type, because
21235 return-by-reference has no meaning in Ada 2005.
21236 (Init_Secondary_Tags): Add missing call to Set_Offset_To_Top
21237 to register tag of the immediate ancestor interfaces in the
21238 run-time structure.
21239 (Init_Secondary_Tags): Moved to the specification to allow the
21240 initialization of extension aggregates with abstract interfaces.
21241 (Build_Master_Renaming): Make public, for use by function declarations
21242 whose return type is an anonymous access type.
21243 (Freeze_Record_Type): Replace call to Insert_List_Before by call to
21244 Insert_List_Before_And_Analyze after the generation of the specs
21245 associated with null procedures.
21246 (Expand_Tagged_Root): Update documentation in its specification.
21247 (Init_Secondary_Tags): Update documentation.
21248 (Build_Init_Procedure): If we are compiling under CPP full ABI compa-
21249 tibility mode and the immediate ancestor is a CPP_Pragma tagged type
21250 then generate code to inherit the contents of the dispatch table
21251 directly from the ancestor.
21252 (Expand_Record_Controller): Insert controller component after tags of
21253 implemented interfaces.
21254 (Freeze_Record_Type): Call new procedure Make_Null_Procedure_Specs to
21255 create null procedure overridings when null procedures are inherited
21257 (Make_Null_Procedure_Specs): New procedure to generate null procedure
21258 declarations for overriding null primitives inherited from interfaces.
21259 (Is_Null_Interface_Procedure): New function in
21260 Make_Null_Procedure_Specs.
21261 (Make_Predefined_Primitive_Specs/Predefined_Primitive_Bodies): If the
21262 immediate ancestor of a tagged type is an abstract interface type we
21263 must generate the specification of the predefined primitives associated
21264 with controlled types (because the dispatch table of the ancestor is
21265 null and hence these entries cannot be inherited). This is required to
21266 elaborate well the dispatch table.
21268 2006-10-31 Javier Miranda <miranda@adacore.com>
21269 Ed Schonberg <schonberg@adacore.com>
21270 Bob Duff <duff@adacore.com>
21271 Gary Dismukes <dismukes@adacore.com>
21272 Robert Dewar <dewar@adacore.com>
21274 * exp_ch4.adb (Expand_N_Type_Conversion): Handle missing interface type
21276 (Expand_N_In): Do validity checks on range
21277 (Expand_Selected_Component): Use updated for of Denotes_Discriminant.
21278 (Expand_N_Allocator): For "new T", if the object is constrained by
21279 discriminant defaults, allocate the right amount of memory, rather than
21280 the maximum for type T.
21281 (Expand_Allocator_Expression): Suppress the call to Remove_Side_Effects
21282 when the allocator is initialized by a build-in-place call, since the
21283 allocator is already rewritten as a reference to the function result,
21284 and this prevents an unwanted duplication of the function call.
21285 Add with and use of Exp_Ch6.
21286 (Expand_Allocator_Expresssion): Check for an allocator whose expression
21287 is a call to build-in-place function and apply
21288 Make_Build_In_Place_Call_In_Allocator to the call (for both tagged and
21289 untagged designated types).
21290 (Expand_N_Unchecked_Type_Conversion): Do not do integer literal
21291 optimization if source or target is biased.
21292 (Expand_N_Allocator): Add comments for case of an allocator within a
21293 function that returns an anonymous access type designating tasks.
21294 (Expand_N_Allocator): apply discriminant checks for access
21295 discriminants of anonymous access types (AI-402, AI-416)
21297 2006-10-31 Bob Duff <duff@adacore.com>
21298 Robert Dewar <dewar@adacore.com>
21299 Gary Dismukes <dismukes@adacore.com>
21300 Ed Schonberg <schonberg@adacore.com>
21302 * exp_ch5.ads (Expand_N_Extended_Return_Statement): New procedure.
21304 * exp_ch5.adb (Expand_N_Loop_Statement): Do validity checks on range
21305 (Expand_N_Assignment_Statement): Call
21306 Make_Build_In_Place_Call_In_Assignment if the right-hand side is a
21307 build-in-place function call. Currently, this can happen only for
21308 assignments that come from aggregates.
21309 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
21310 in order to alleviate the upward compatibility introduced by AI-318.
21311 (Expand_N_Extended_Return_Statement): Add support for handling the
21312 return object as a build-in-place result.
21313 (Expand_Non_Function_Return): Implement simple return statements nested
21314 within an extended return.
21315 (Enable_New_Return_Processing): Turn on the new processing of return
21317 (Expand_Non_Function_Return): For a return within an extended return,
21318 don't raise Program_Error, because Sem_Ch6 now gives a warning.
21319 (Expand_N_Extended_Return_Statement): Implement AI-318
21320 (Expand_Simple_Function_Return): Ditto.
21321 (Expand_N_If_Statement): Handle new -gnatwt warning
21322 (Expand_N_Case_Statement): Handle new -gnatwt warning
21323 (Expand_N_Assignment): Handle assignment to the Priority attribute of
21324 a protected object.
21325 (Expand_N_Assignment_Statement): Implement -gnatVe/E to control
21326 validity checking of assignments to elementary record components.
21327 (Expand_N_Return_Statement): return Class Wide types on the secondary
21328 stack independantly of their controlled status since with HIE runtimes,
21329 class wide types are not potentially controlled anymore.
21331 * expander.adb (Expand): Add case for new N_Extended_Return_Statement
21334 * exp_ch11.adb (Expand_N_Handled_Sequence_Of_Statements): Avoid
21335 Expand_Cleanup_Actions in case of N_Extended_Return_Statement, because
21336 it expects a block, procedure, or task. The return statement will get
21337 turned into a block, and Expand_Cleanup_Actions will happen then.
21339 2006-10-31 Robert Dewar <dewar@adacore.com>
21340 Ed Schonberg <schonberg@adacore.com>
21341 Bob Duff <duff@adacore.com>
21342 Gary Dismukes <dismukes@adacore.com>
21344 * exp_ch6.ads, exp_ch6.adb: Use new Validity_Check suppression
21346 (Expand_Inlined_Call): Tagged types are by-reference types, and
21347 therefore should be replaced by a renaming declaration in the expanded
21348 body, as is done for limited types.
21349 (Expand_Call): If this is a call to a function with dispatching access
21350 result, propagate tag from context.
21351 (Freeze_Subprogram): Enable full ABI compatibility for interfacing with
21353 (Make_Build_In_Place_Call_In_Assignment): New procedure to do
21354 build-in-place when the right-hand side of an assignment is a
21355 build-in-place function call.
21356 (Make_Build_In_Place_Call_In_Allocator): Apply an unchecked conversion
21357 of the explicit dereference of the allocator to the result subtype of
21358 the build-in-place function. This is needed to satisfy type checking
21359 in cases where the caller's return object is created by an allocator for
21360 a class-wide access type and the type named in the allocator is a
21362 (Make_Build_In_Place_Call_In_Object_Declaration): Apply an unchecked
21363 conversion of the reference to the declared object to the result subtype
21364 of the build-in-place function. This is needed to satisfy type checking
21365 in cases where the declared object has a class-wide type. Also, in the
21366 class-wide case, change the type of the object entity to the specific
21367 result subtype of the function, to avoid passing a class-wide object
21368 without explicit initialization to the back end.
21369 (Register_Interface_DT_Entry): Moved outside the body of
21370 Freeze_Subprogram because this routine is now public; it is called from
21371 Check_Dispatching_Overriding to handle late overriding of abstract
21372 interface primitives.
21373 (Add_Access_Actual_To_Build_In_Place_Call): New utility procedure for
21374 adding an implicit access actual on a call to a build-in-place function.
21375 (Expand_Actuals): Test for an actual parameter that is a call to a
21376 build-in-place function and apply
21377 Make_Build_In_Place_Call_In_Anonymous_Context to the call.
21378 (Is_Build_In_Place_Function): New function to determine whether an
21379 entity is a function whose calls should be handled as build-in-place.
21380 (Is_Build_In_Place_Function_Call): New function to determine whether an
21381 expression is a function call that should handled as build-in-place.
21382 (Make_Build_In_Place_Call_In_Allocator): New procedure for handling
21383 calls to build-in-place functions as the initialization of an allocator.
21384 (Make_Build_In_Place_Call_In_Anonymous_Context): New procedure for
21385 handling calls to build-in-place functions in contexts that do not
21386 involve init of a separate object (for example, actuals of subprogram
21388 (Make_Build_In_Place_Call_In_Object_Declaration): New procedure for
21389 handling calls to build-in-place functions as the initialization of an
21390 object declaration.
21391 (Detect_Infinite_Recursion): Add explicit parameter Process to
21392 instantiation of Traverse_Body to avoid unreferenced warning.
21393 (Check_Overriding_Inherited_Interfaces): Removed.
21394 (Register_Interface_DT_Entry): Code cleanup.
21395 (Register_Predefined_DT_Entry): Code cleanup.
21396 (Expand_Inlined_Call.Rewrite_Procedure_Call): Do not omit block around
21397 inlined statements if within a transient scope.
21398 (Expand_Inlined_Call.Process_Formals): When replacing occurrences of
21399 formal parameters with occurrences of actuals in inlined body, establish
21400 visibility on the proper view of the actual's subtype for the body's
21402 (Freeze_Subprogram): Do nothing if we are compiling under full ABI
21403 compatibility mode and we have an imported CPP subprogram because
21404 for now we assume that imported CPP primitives correspond with
21405 objects whose constructor is in the CPP side (and therefore we
21406 don't need to generate code to register them in the dispatch table).
21407 (Expand_Actuals): Introduce copy of actual, only if it might be a bit-
21408 aligned selected component.
21409 (Add_Call_By_Copy_Node): Add missing code to handle the case in which
21410 the actual of an in-mode parameter is a type conversion.
21411 (Expand_Actuals): If the call does not come from source and the actual
21412 is potentially misaligned, let gigi handle it rather than rejecting the
21413 (Expand_N_Subprogram_Body, Freeze_Subprogram): set subprograms returning
21414 Class Wide types as returning by reference independantly of their
21415 controlled status since with HIE runtimes class wide types are not
21416 potentially controlled anymore.
21418 2006-10-31 Ed Schonberg <schonberg@adacore.com>
21420 * exp_ch9.adb (Update_Prival_Types): Simplify code for entity
21421 references that are private components of the protected object.
21422 (Build_Barrier_Function): Set flag Is_Entry_Barrier_Function
21423 (Update_Prival_Subtypes): Add explicit Process argument to Traverse_Proc
21424 instantiation to deal with warnings.
21425 (Initialize_Protection): If expression for priority is non-static, use
21426 System_Priority as its expected type, in case the expression has not
21429 2006-10-31 Robert Dewar <dewar@adacore.com>
21431 * exp_dbug.ads, exp_dbug.adb (Get_External_Name): Add missing
21432 initialization of Homonym_Len.
21433 (Fully_Qualify_Name): Remove kludge to eliminate anonymous block
21434 names from fully qualified name. Fixes problem of duplicate
21435 external names differing only in the presence of such a block name.
21437 2006-10-31 Thomas Quinot <quinot@adacore.com>
21438 Pablo Oliveira <oliveira@adacore.com>
21440 * exp_dist.adb (Get_Subprogram_Ids): This function will no more assign
21441 subprogram Ids, even if they are not yet assigned.
21442 (Build_Subprogram_Id): It is now this function that will take care of
21443 calling Assign_Subprogram_Ids if necessary.
21444 (Add_Receiving_Stubs_To_Declarations): Checking the subprograms ids
21445 should be done only once they are assigned.
21446 (Build_From_Any_Function, case of tagged types): Add missing call to
21448 (Corresponding_Stub_Type): New subprogram. Returns the associated stub
21449 type for an RACW type.
21450 (Add_RACW_Features): When processing an RACW declaration for which the
21451 designated type is already frozen, enforce E.2.2(14) rules immediately.
21452 (GARLIC_Support.Build_Subprogram_Receiving_Stubs): Do not perform any
21453 special reordering of controlling formals.
21455 * exp_dist.ads (Corresponding_Stub_Type): New subprogram. Returns the
21456 associated stub type for an RACW type.
21458 2006-10-31 Ed Schonberg <schonberg@adacore.com>
21460 * exp_fixd.adb (Rounded_Result_Set): For multiplication and division of
21461 fixed-point operations in an integer context, i.e. as operands of a
21462 conversion to an integer type, indicate that result must be rounded.
21464 2006-10-31 Robert Dewar <dewar@adacore.com>
21466 * exp_imgv.adb (Expand_Image_Attribute): For Wide_[Wide_]Character
21467 cases, pass the encoding method, since it is now required by the run
21470 * s-valwch.ads, s-valwch.adb (Value_Wide_Wide_Character): Avoid
21471 assumption that Str'First = 1.
21472 (Value_Wide_Character): Takes EM (encoding method) parameter and passes
21473 it on to the Value_Wide_Wide_Character call.
21474 (Value_Wide_Wide_Character): Takes EM (encoding method) parameter and
21475 properly handles a string of the form quote-encoded_wide_char-quote.
21477 * s-wchcnv.adb: Minor reformatting
21479 2006-10-31 Javier Miranda <miranda@adacore.com>
21481 * exp_intr.adb (Expand_Dispatching_Constructor_Call): Add missing
21482 run-time membership test to ensure that the constructed object
21483 implements the target abstract interface.
21485 2006-10-31 Robert Dewar <dewar@adacore.com>
21487 * exp_prag.adb (Expand_Pragma_Common_Object): Use a single
21488 Machine_Attribute pragma internally to implement the user pragma.
21489 Add processing for pragma Interface so that it is now completely
21490 equivalent to pragma Import.
21492 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Extend this pragma
21493 so that it can be applied to all entities, including record components
21494 and enumeration literals.
21495 (Analyze_Pragma, case Priority_Specific_Dispatching): Check whether
21496 priority ranges are correct, verify compatibility against task
21497 dispatching and locking policies, and if everything is correct an entry
21498 is added to the table containing priority specific dispatching entries
21499 for this compilation unit.
21500 (Delay_Config_Pragma_Analyze): Delay processing
21501 Priority_Specific_Dispatching pragmas because when processing the
21502 pragma we need to access run-time data, such as the range of
21503 System.Any_Priority.
21504 (Sig_Flags): Add Pragma_Priority_Specific_Dispatching.
21505 Allow pragma Unreferenced as a context item
21506 Add pragma Preelaborable_Initialization
21507 (Analyze_Pragma, case Interface): Interface is extended so that it is
21508 now syntactically and semantically equivalent to Import.
21509 (Analyze_Pragma, case Compile_Time_Warning): Fix error of blowups on
21510 insertion characters.
21511 Add handling for Pragma_Wide_Character_Encoding
21512 (Process_Restrictions_Restriction_Warnings): Ensure that a warning
21513 never supercedes a real restriction, and that a real restriction
21514 always supercedes a warning.
21515 (Analyze_Pragma, case Assert): Set Low_Bound_Known if assert is of
21518 2006-10-31 Bob Duff <duff@adacore.com>
21519 Ed Schonberg <schonberg@adacore.com>
21520 Robert Dewar <dewar@adacore.com>
21522 * exp_ch7.adb (Build_Array_Deep_Procs, Build_Record_Deep_Procs,
21523 Make_Deep_Record_Body): Rename Is_Return_By_Reference_Type to be
21524 Is_Inherently_Limited_Type, because return-by-reference has no meaning
21526 (Find_Node_To_Be_Wrapped): Use new method of determining the result
21527 type of the function containing a return statement, because the
21528 Return_Type field was removed. We now use the Return_Applies_To field.
21530 * exp_util.ads, exp_util.adb: Use new subtype N_Membership_Test
21531 (Build_Task_Image_Decl): If procedure is not called from an
21532 initialization procedure, indicate that function that builds task name
21533 uses the sec. stack. Otherwise the enclosing initialization procedure
21534 will carry the indication.
21535 (Insert_Actions): Remove N_Return_Object_Declaration. We now use
21536 N_Object_Declaration instead.
21537 (Kill_Dead_Code): New interface to implement -gnatwt warning for
21538 conditional dead code killed, and change implementation accordingly.
21539 (Insert_Actions): Add N_Return_Object_Declaration case.
21540 Correct comment to mention N_Extension_Aggregate node.
21541 (Set_Current_Value_Condition): Call Safe_To_Capture_Value to avoid bad
21542 attempts to save information for global variables which cannot be
21544 (Get_Current_Value_Condition): Handle conditions the other way round
21545 (constant on left). Also handle right operand of AND and AND THEN
21546 (Set_Current_Value_Condition): Corresponding changes
21547 (Append_Freeze_Action): Remove unnecessary initialization of Fnode.
21548 (Get_Current_Value_Condition): Handle simple boolean operands
21549 (Get_Current_Value_Condition): Handle left operand of AND or AND THEN
21550 (Get_Current_Value_Condition): If the variable reference is within an
21551 if-statement, does not appear in the list of then_statments, and does
21552 not come from source, treat it as being at unknown location.
21553 (Get_Current_Value_Condition): Enhance to allow while statements to be
21554 processed as well as if statements.
21555 (New_Class_Wide_Subtype): The entity for a class-wide subtype does not
21557 (OK_To_Do_Constant_Replacement): Allow constant replacement within body
21558 of loop. This is safe now that we fixed Kill_Current_Values.
21559 (OK_To_Do_Constant_Replacement): Check whether current scope is
21560 Standard, before examining outer scopes.
21562 2006-10-31 Vincent Celier <celier@adacore.com>
21564 * krunch.ads, krunch.adb (Krunch): New Boolean parameter VMS_On_Target.
21565 When True, apply VMS treatment to children of packages A, G, I and S.
21568 * fname-uf.adb (Get_File_Name): Call Krunch with OpenVMS_On_Target
21570 2006-10-31 Robert Dewar <dewar@adacore.com>
21571 Ed Schonberg <schonberg@adacore.com>
21573 * freeze.adb: Add handling of Last_Assignment field
21574 (Warn_Overlay): Supply missing continuation marks in error msgs
21575 (Freeze_Entity): Add check for Preelaborable_Initialization
21577 * g-comlin.adb: Add Warnings (Off) to prevent new warning
21579 * g-expect.adb: Add Warnings (Off) to prevent new warning
21581 * lib-xref.adb: Add handling of Last_Assignment field
21582 (Generate_Reference): Centralize handling of pragma Obsolescent here
21583 (Generate_Reference): Accept an implicit reference generated for a
21584 default in an instance.
21585 (Generate_Reference): Accept a reference for a node that is not in the
21586 main unit, if it is the generic body corresponding to an subprogram
21589 * xref_lib.adb: Add pragma Warnings (Off) to avoid new warnings
21591 * sem_warn.ads, sem_warn.adb (Set_Warning_Switch): Add processing for
21593 (Warn_On_Useless_Assignment): Suppress warning if enclosing inner
21595 (Output_Obsolescent_Entity_Warnings): Rewrite to avoid any messages on
21596 use clauses, to avoid messages on packages used to qualify, and also
21597 to avoid messages from obsolescent units.
21598 (Warn_On_Useless_Assignments): Don't generate messages for imported
21599 and exported variables.
21600 (Warn_On_Useless_Assignments): New procedure
21601 (Output_Obsolescent_Entity_Warnings): New procedure
21602 (Check_Code_Statement): New procedure
21604 * einfo.ads, einfo.adb (Has_Static_Discriminants): New flag
21605 Change name Is_Ada_2005 to Is_Ada_2005_Only
21606 (Last_Assignment): New field for useless assignment warning
21608 2006-10-31 Olivier Hainque <hainque@adacore.com>
21610 * g-alleve.adb (lvx, stvx): Ceil-Round the Effective Address to the
21611 closest multiple of VECTOR_ALIGNMENT and not the closest multiple of 16.
21613 2006-10-31 Bob Duff <duff@adacore.com>
21614 Robert Dewar <dewar@adacore.com>
21615 Ed Schonberg <schonberg@adacore.com>
21617 * g-awk.adb (Default_Session, Current_Session): Compile this file in
21618 Ada 95 mode, because it violates the new rules for AI-318.
21620 * g-awk.ads: Use overloaded subprograms in every case where we used to
21621 have a default of Current_Session. This makes the code closer to be
21622 correct for both Ada 95 and 2005.
21624 * g-moreex.adb (Occurrence): Turn off warnings for illegal-in-Ada-2005
21625 code, relying on the fact that the compiler generates a warning
21626 instead of an error in -gnatg mode.
21628 * lib-xref.ads (Xref_Entity_Letters): Add entry for new
21629 E_Return_Statement entity kind.
21630 Add an entry for E_Incomplete_Subtype in Xref_Entity_Letters.
21632 * par.adb (P_Interface_Type_Definition): Addition of one formal to
21633 report an error if the reserved word abstract has been previously found.
21634 (SS_End_Type): Add E_Return for new extended_return_statement syntax.
21636 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve message for
21637 parenthesized range attribute usage
21638 (P_Expression_No_Right_Paren): Add missing comment about error recovery.
21640 * par-ch6.adb (P_Return_Object_Declaration): AI-318: Allow "constant"
21641 in the syntax for extended_return_statement. This is not in the latest
21642 RM, but the ARG is expected to issue an AI allowing this.
21643 (P_Return_Subtype_Indication,P_Return_Subtype_Indication): Remove
21644 N_Return_Object_Declaration. We now use N_Object_Declaration instead.
21645 (P_Return_Object_Declaration, P_Return_Subtype_Indication,
21646 P_Return_Statement): Parse the new syntax for extended_return_statement.
21648 * par-endh.adb (Check_End, Output_End_Deleted, Output_End_Expected,
21649 Output_End_Missing): Add error-recovery code for the new
21650 extended_return_statement syntax; that is, the new E_Return entry on
21653 * s-auxdec-vms_64.ads, s-auxdec.ads (AST_Handler): Change type from
21654 limited to nonlimited, because otherwise we violate the new Ada 2005
21655 rules about returning limited types in function Create_AST_Handler in
21658 * sem.adb (Analyze): Add cases for new node kinds
21659 N_Extended_Return_Statement and N_Return_Object_Declaration.
21661 * sem_aggr.adb (Aggregate_Constraint_Checks): Verify that component
21662 type is in the same category as type of context before applying check,
21663 to prevent anomalies in instantiations.
21664 (Resolve_Aggregate): Remove test for limited components in aggregates.
21665 It's unnecessary in Ada 95, because if it has limited components, then
21666 it must be limited. It's wrong in Ada 2005, because limited aggregates
21668 (Resolve_Record_Aggregate): Move check for limited types later, because
21669 OK_For_Limited_Init requires its argument to have been resolved.
21670 (Get_Value): When copying the component default expression for a
21671 defaulted association in an aggregate, use the sloc of the aggregate
21672 and not that of the original expression, to prevent spurious
21673 elaboration errors, when the expression includes function calls.
21674 (Check_Non_Limited_Type): Correct code for AI-287, extension aggregates
21675 were missing. We also didn't handle qualified expressions. Now also
21676 allow function calls. Use new common routine OK_For_Limited_Init.
21677 (Resolve_Extension_Aggregate): Minor fix to bad error message (started
21678 with space can upper case letter).
21680 * sem_ch3.ads, sem_ch3.adb (Create_Constrained_Components): Set
21681 Has_Static_Discriminants flag
21682 (Record_Type_Declaration): Diagnose an attempt to declare an interface
21683 type with discriminants.
21684 (Process_Range_Expr_In_Decl): Do validity checks on range
21685 (Build_Discriminant_Constraints): Use updated form of
21686 Denotes_Discriminant.
21687 (Process_Subtype): If the subtype is a private subtype whose full view
21688 is a concurrent subtype, introduce an itype reference to prevent scope
21690 (Build_Derived_Record_Type, Collect_Interface_Primitives,
21691 Record_Type_Declaration): The functionality of the subprograms
21692 Collect_Abstract_Interfaces and Collect_All_Abstract_Interfaces
21693 is now performed by a single routine.
21694 (Build_Derived_Record_Type): If the type definition includes an explicit
21695 indication of limitedness, then the type must be marked as limited here
21696 to ensure that any access discriminants will not be treated as having
21697 a local anonymous access type.
21698 (Check_Abstract_Overriding): Issue a detailed error message when an
21699 abstract subprogram was not overridden due to incorrect mode of its
21701 (Analyze_Private_Extension_Declaration): Add support for the analysis of
21702 synchronized private extension declarations. Verify that the ancestor is
21703 a limited or synchronized interface or in the generic case, the ancestor
21704 is a tagged limited type or synchronized interface and all progenitors
21705 are either limited or synchronized interfaces.
21706 Derived_Type_Declaration): Check for presence of private extension when
21707 dealing with synchronized formal derived types.
21708 Process_Full_View): Enchance the check done on the usage of "limited" by
21709 testing whether the private view is synchronized.
21710 Verify that a synchronized private view is completed by a protected or
21712 (OK_For_Limited_Init_In_05): New function.
21713 (Analyze_Object_Declaration): Move check for limited types later,
21714 because OK_For_Limited_Init requires its argument to have been resolved.
21715 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
21716 in order to alleviate the upward compatibility introduced by AI-318.
21717 (Constrain_Corresponding_Record): If the constraint is for a component
21718 subtype, mark the itype as frozen, to avoid out-of-scope references to
21719 discriminants in the back-end.
21720 (Collect_Implemented_Interfaces): Protect the recursive algorithm of
21721 this subprogram against wrong sources.
21722 (Get_Discr_Value, Is_Discriminant): Handle properly references to a
21723 discriminant of limited type completed with a protected type, when the
21724 discriminant is used to constrain a private component of the type, and
21725 expansion is disabled.
21726 (Find_Type_Of_Object): Do not treat a return subtype that is an
21727 anonymous subtype as a local_anonymous_type, because its accessibility
21728 level is the return type of the enclosing function.
21729 (Check_Initialization): In -gnatg mode, turn the error "cannot
21730 initialize entities of limited type" into a warning.
21731 (OK_For_Limited_Init): Return true for generated nodes, since it
21732 sometimes violates the legality rules.
21733 (Make_Incomplete_Declaration): If the type for which an incomplete
21734 declaration is created happens to be the currently visible entity,
21735 preserve the homonym chain when removing it from visibility.
21736 (Check_Conventions): Add support for Ada 2005 (AI-430): Conventions of
21737 inherited subprograms.
21738 (Access_Definition): If this is an access to function that is the return
21739 type of an access_to_function definition, context is a type declaration
21740 and the scope of the anonymous type is the current one.
21741 (Analyze_Subtype_Declaration): Add the defining identifier of a regular
21742 incomplete subtype to the set of private dependents of the original
21744 (Constrain_Discriminated_Type): Emit an error message whenever an
21745 incomplete subtype is being constrained.
21746 (Process_Incomplete_Dependents): Transform an incomplete subtype into a
21747 corresponding subtype of the full view of the original incomplete type.
21748 (Check_Incomplete): Properly detect invalid usage of incomplete types
21751 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
21753 * g-catiio.ads, g-catiio.adb (Value): New function.
21754 Given an input String, try and parse a valid Time value.
21756 2006-10-31 Vincent Celier <celier@adacore.com>
21758 * g-debpoo.adb (Is_Valid): Correctly compute Offset using
21759 Integer_Address arithmetic, as in Set_Valid.
21761 2006-10-31 Arnaud Charlet <charlet@adacore.com>
21762 Robert Dewar <dewar@adacore.com>
21764 * gnatcmd.adb (Process_Link): Use Osint.Executable_Name instead of
21765 handling executable extension manually and duplicating code.
21767 * make.adb: Implement new -S switch
21768 (Gnatmake): Use new function Osint.Executable_Name instead
21769 of handling executable extension manually.
21771 * prj-util.adb (Executable_Of): Make sure that if an Executable_Suffix
21772 is specified, the executable name ends with this suffix.
21773 Take advantage of Osint.Executable_Name instead of duplicating code.
21775 * switch-m.adb: Recognize new gnatmake -S switch
21777 * targparm.ads, targparm.adb (Executable_Extension_On_Target): New
21779 (Get_Target_Parameters): Set Executable_Extension_On_Target if
21782 * makeusg.adb: Add line for gnatmake -S switch
21784 2006-10-31 Vincent Celier <celier@adacore.com>
21786 * gnatlink.adb (Gnatlink): If gcc is not called with -shared-libgcc,
21787 call it with -static-libgcc, as there are some platforms, such as
21788 Darwin, where one of these two switches is compulsory to link.
21790 2006-10-31 Vincent Celier <celier@adacore.com>
21792 * gnatls.adb: Take into account GPR_PROJECT_PATH, when it is defined,
21793 instead of ADA_PROJECT_PATH, for the project path.
21794 (Gnatls): When displaying the project path directories, use host dir
21797 * prj-ext.adb (Prj.Ext elaboration): On VMS, only expand relative path
21798 names in the project path, as absolute paths may correspond to
21799 multi-valued VMS logical names.
21801 2006-10-31 Vincent Celier <celier@adacore.com>
21803 * g-os_lib.ads, g-os_lib.adb (Locate_Exec_On_Path): Always return an
21804 absolute path name.
21805 (Locate_Regular_File): Ditto
21806 (Change_Dir): Remove, no longer used
21807 (Normalize_Pathname): Do not use Change_Dir to get the drive letter
21808 on Windows. Get it calling Get_Current_Dir.
21809 (OpenVMS): Remove imported boolean, no longer needed.
21810 (Normalize_Pathname)[VMS]: Do not resolve directory names.
21811 (Pid_To_Integer): New function to convert a Process_Id to Integer
21813 2006-10-31 Thomas Quinot <quinot@adacore.com>
21815 * g-socket.ads, g-socket.adb (Close_Selector): Once the signalling
21816 sockets are closed, reset the R_Sig_Socket and W_Sig_Socket components
21818 (Selector_Type): Add default value of No_Socket for R_Sig_Socket and
21821 2006-10-31 Robert Dewar <dewar@adacore.com>
21823 * g-speche.ads, g-speche.adb: Add special case to recognize misspelling
21824 initial letter o as a zero.
21826 2006-10-31 Robert Dewar <dewar@adacore.com>
21828 * g-spipat.adb (S_To_PE): Remove incorrect use of 0 instead of Str'First
21830 2006-10-31 Robert Dewar <dewar@adacore.com>
21832 * layout.adb (Layout_Record_Type): Deal with non-static subtypes of
21834 (Layout_Variant_Record): Retrieve the discriminants from the entity
21835 rather than from the type definition, because in the case of a full
21836 type for a private type we need to take the discriminants from the
21838 (Layout_Component_List): When applying the Max operator to variants with
21839 a nonstatic size, check whether either operand is static and scale that
21840 operand from bits to storage units before applying Max.
21841 (Layout_Type): In VMS, if a C-convention access type has no explicit
21842 size clause (and does not inherit one in the case of a derived type),
21843 then the size is reset to 32 from 64.
21845 2006-10-31 Vincent Celier <celier@adacore.com>
21847 * lib-load.adb (Load_Unit): Skip the test for a unit not found when
21848 its file has already been loaded, according to the unit being loaded,
21849 not to the current value of Multiple_Unit_Index.
21851 2006-10-31 Thomas Quinot <quinot@adacore.com>
21852 Eric Botcazou <ebotcazou@adacore.com>
21853 Arnaud Charlet <charlet@adacore.com>
21855 * Makefile.in: Set EH mechanism to ZCX for FreeBSD.
21856 (NO_REORDER_ADAFLAGS): New var defined to -fno-toplevel-reorder if
21858 (a-except.o): Pass it to the compiler.
21859 (gnatlib-shared-vms): Removed -nostartfiles switch in link step.
21860 (LIBGNAT_TARGET_PAIRS for Windows): Avoid the use of the specific
21861 a-calend-mingw.adb version.
21863 * Makefile.rtl: Added s-dsaser.
21864 Add object entries for Ada.Calendar.[Arithmetic/Formatting/Time_Zones]
21865 (GNATRTL_TASKING_OBJS): Add Ada.Dispatching and
21866 Ada.Dispatching.Round_Robin.
21867 Added new unit Ada.Containers.Restricted_Bounded_Doubly_Linked_Lists
21869 * Make-lang.in: Remove all references to gt-ada-decl.h.
21870 Add concatenation (s-strops/s-sopco3/s-sopco4/s-sopco5) to compiler
21872 Add dependency on ada/s-restri.o for GNAT1 and GNATBIND objects.
21873 Update dependencies.
21875 * system-freebsd-x86.ads: Make ZCX the default EH mechanism for FreeBSD
21877 2006-10-31 Vincent Celier <celier@adacore.com>
21879 * mlib-utl.adb (Initialized): Remove, no longer used
21880 (Initialize): Remove, no longer used
21881 (Ar): If Ar_Exec is null, get the location of the archive builder and,
21882 if there is one, the archive indexer. Fail if the archive builder cannot
21884 (Gcc): If the driver path is unknown, get it. Fail if the driver cannot
21887 2006-10-31 Ed Schonberg <schonberg@adacore.com>
21889 * sem_ch10.ads, sem_ch10.adb (Check_Redundant_Withs,
21890 Process_Body_Clauses): If the context of a body includes a use clause
21891 for P.Q then a with_clause for P in the same body is not redundant,
21892 even if the spec also has a with_clause on P.
21893 Add missing continuation mark to error msg
21894 (Build_Limited_Views): A limited view of a type is tagged if its
21895 declaration includes a record extension.
21896 (Analyze_Proper_Body): Set Corresponding_Stub field in N_Subunit
21897 node, even if the subunit has errors. This avoids malfunction by
21898 Lib.Check_Same_Extended_Unit in the presence of syntax errors.
21899 (Analyze_Compilation_Unit): Add circuit to make sure we get proper
21900 generation of obsolescent messages for with statements (cannot do
21901 this too early, or we cannot implement avoiding the messages in the
21902 case of obsolescent units withing obsolescent units).
21903 (Install_Siblings): If the with_clause is on a remote descendant of
21904 an ancestor of the current compilation unit, find whether there is
21905 a sibling child unit that is immediately visible.
21906 (Remove_Private_With_Clauses): New procedure, invoked after completing
21907 the analysis of the private part of a nested package, to remove from
21908 visibility the private with_clauses of the enclosing package
21910 (Analyze_With_Clause): Remove Check_Obsolescent call, this checking is
21911 now centralized in Generate_Reference.
21912 (Install_Limited_Context_Clauses): Remove superfluous error
21913 message associated with unlimited view visible through use
21914 and renamings. In addition, at the point in which the error
21915 is reported, we add the backslash to the text of the error
21916 to ensure that it is reported as a single error message.
21917 Use new // insertion for some continuation messages
21918 (Expand_Limited_With_Clause): Use copy of name rather than name itself,
21919 to create implicit with_clause for parent unit mentioned in original
21920 limited_with_clause.
21921 (Install_Limited_With_Unit): Set entity of parent identifiers if the
21922 unit is a child unit. For ASIS queries.
21923 (Analyze_Subunit): If the subunit appears within a child unit, make all
21924 ancestor child units directly visible again.
21926 2006-10-31 Robert Dewar <dewar@adacore.com>
21928 * par-ch10.adb (P_Context_Clause): Minor error message fix
21930 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
21931 Javier Miranda <miranda@adacore.com>
21933 * par-ch12.adb: Grammar update and cleanup.
21934 (P_Formal_Type_Definition, P_Formal_Derived_Type_Definition): Add
21935 support for synchronized derived type definitions.
21936 Add the new actual Abstract_Present to every call to
21937 P_Interface_Type_Definition.
21938 (P_Formal_Object_Declarations): Update grammar rules. Handle parsing of
21939 a formal object declaration with an access definition or a subtype mark
21940 with a null exclusion.
21941 (P_Generic_Association): Handle association with box, and others_choice
21942 with box, to support Ada 2005 partially parametrized formal packages.
21944 2006-10-31 Robert Dewar <dewar@adacore.com>
21945 Javier Miranda <miranda@adacore.com>
21947 * par-ch3.adb (P_Range_Or_Subtype_Mark): Check for bad parentheses
21948 (P_Type_Declaration): Remove barrier against the reserved word "limited"
21949 after "abstract" to give support to the new syntax of AARM 3.4 (2/2).
21950 (P_Type_Declaration): Minor code cleanup. Add support for synchronized
21951 private extensions.
21952 (P_Type_Declaration): Add the new actual Abstract_Present to every call
21953 to P_Interface_Type_Definition.
21954 (P_Interface_Type_Definition): Addition of one formal to report an error
21955 if the reserved word abstract has been previously found.
21956 (P_Identifier_Declarations): Update grammar rules. Handle parsing of an
21957 object renaming declaration with an access definition or subtype mark
21958 with a possible null exclusion.
21960 * par-ch9.adb: Minor error msg fix
21962 * par-load.adb: Add missing continuation mark to error msg
21964 * par-tchk.adb: (Wrong_Token): Code cleanup, use concatenation
21966 2006-10-31 Vincent Celier <celier@adacore.com>
21968 * prj-dect.adb (Parse_Attribute_Declaration): Do not issue warning for
21969 unknown attribute in unknown package or in package that does not need
21971 (Parse_Package_Declaration): Do not issue warning for unknown package in
21974 2006-10-31 Vincent Celier <celier@adacore.com>
21976 * prj-makr.adb (Packages_To_Check_By_Gnatname): New global constant
21977 (Make): Call Parse with Packages_To_Check_By_Gnatname for parameter
21980 2006-10-31 Vincent Celier <celier@adacore.com>
21982 * prj-nmsc.adb (Check_Ada_Name): For children of package A, G, I and S
21983 on VMS, change "__" to '.' before checking the name.
21984 (Record_Ada_Source): Always add the source file name in the list of
21985 of sources, even if it is not the first time, as it is for another
21987 (Get_Unit): Replace both '_' (after 'a', 'g', 'i' or 's') with a single
21988 dot, instead of replacing only the first '_'.
21990 * prj-part.adb (Parse): Convert project file path to canonical form
21992 * prj-proc.adb (Recursive_Process): Make sure that, when a project is
21993 extended, the project id of the project extending it is recorded in its
21994 data, even when it has already been processed as an imported project.
21996 2006-10-31 Robert Dewar <dewar@adacore.com>
21998 * repinfo.adb (List_Entities): Don't list entities from renaming
22001 2006-10-31 Arnaud Charlet <charlet@adacore.com>
22002 Robert Dewar <dewar@adacore.com>
22004 * restrict.ads, restrict.adb (Restriction_Active): Now returns False if
22005 only a restriction warning is active for the given restriction. This is
22006 desirable because we do not want to modify code in the case where only
22008 (Set_Profile_Restrictions): Make sure that a Profile_Warnings never
22009 causes overriding of real restrictions.
22010 Take advantage of new No_Restrictions constant.
22012 * raise.h: (__gnat_set_globals): Change profile.
22014 2006-10-31 Arnaud Charlet <charlet@adacore.com>
22016 * rtsfind.adb: Remove s-polint from comment as it exists no more.
22019 Move entity RE_Get_Active_Partition_Id to package System.DSA_Services.
22020 Move all the entities in obsolete package System.PolyORB_Interface to
22021 System.Partition_Interface.
22022 (RE_Storage_Size): New function in System.Tasking.
22023 (RE_Get_Ceiling): New entity.
22024 (RE_Set_Ceiling): New entity.
22025 (RO_PE_Get_Ceiling): New entity.
22026 (RO_RE_Set_Ceiling): New entity.
22027 (Inherit_CPP_DT): New entity
22029 2006-10-31 Robert Dewar <dewar@adacore.com>
22031 * scng.adb (Scan, case of numeric literal): Better msg for identifier
22032 starting with a digit.
22034 2006-10-31 Ed Schonberg <schonberg@adacore.com>
22035 Thomas Quinot <quinot@adacore.com>
22036 Javier Miranda <miranda@adacore.com>
22037 Gary Dismukes <dismukes@adacore.com>
22039 * sem_attr.ads, sem_attr.adb (Analyze_Access_Attribute): Diagnose
22040 properly an attempt to apply Unchecked_Access to a protected operation.
22041 (OK_Self_Reference): New subprogram to check the legality of an access
22042 attribute whose prefix is the type of an enclosing aggregate.
22043 Generalizes previous mechanism to handle attribute references nested
22044 arbitrarily deep within the aggregate.
22045 (Analyze_Access_Attribute): An access attribute whose prefix is a type
22046 can appear in an aggregate if this is a default-initialized aggregate
22047 for a self-referential type.
22048 (Resolve_Attribute, case Access): Ditto.
22049 Add support for new implementation defined attribute Stub_Type.
22050 (Eval_Attribute, case Attribute_Stub_Type): New case.
22051 (Analyze_Attribute, case Attribute_Stub_Type): New case.
22052 (Stream_Attribute_Available): Implement using new subprogram from
22053 sem_cat, Has_Stream_Attribute_Definition, instead of incorrect
22054 Has_Specified_Stream_Attribute flag.
22055 Disallow Storage_Size and Storage_Pool for access to subprogram
22056 (Resolve_Attribute, case 'Access et al): Take into account anonymous
22057 access types of return subtypes in extended return statements. Remove
22058 accessibility checks on anonymous access types when Unchecked_Access is
22060 (Analyze_Attribute): Add support for the use of 'Class to convert
22061 a class-wide interface to a tagged type.
22062 Add support for the attribute Priority.
22063 (Resolve_Attribute, case Attribute_Access): For Ada_05, add test for
22064 whether the designated type is discriminated with a constrained partial
22065 view and require static matching in that case.
22066 Add local variable Des_Btyp. The Designated_Type
22067 of an access to incomplete subtype is either its non-limited view if
22068 coming from a limited with or its etype if regular incomplete subtype.
22070 * sem_cat.ads, sem_cat.adb (Validate_Remote_Access_To_Class_Wide_Type):
22071 Fix predicate to identify and allow cases of (expander-generated)
22072 references to tag of designated object of a RACW.
22073 (Validate_Static_Object_Name): In Ada 2005, a formal object is
22074 non-static, and therefore cannot appear as a primary in a preelaborable
22076 (Has_Stream_Attribute_Definition): New subprogram, abstracted from
22077 Has_Read_Write_Attributes.
22078 (Has_Read_Write_Attributes): Reimplement in termes of
22079 Has_Stream_Attribute_Definition.
22080 (Missing_Read_Write_Attributes): When checking component types in a
22081 record, unconditionally call Missing_Read_Write_Attributes recursively
22082 (remove guard checking for Is_Record_Type / Is_Access_Type).
22084 2006-10-31 Robert Dewar <dewar@adacore.com>
22086 * sem_ch11.adb (Analyze_Handled_Statements): Move final test for
22087 useless assignments here and conditionalize it on absence of exception
22089 (Analyze_Exception_Handlers): Small code reorganization of error
22090 detection code, for new handling of formal packages.
22092 2006-10-31 Ed Schonberg <schonberg@adacore.com>
22093 Hristian Kirtchev <kirtchev@adacore.com>
22095 * sem_ch12.ads, sem_ch12.adb (Save_References): If node is an operator
22096 that has been constant-folded, preserve information of original tree,
22098 (Analyze_Formal_Derived_Type): Set the limited present flag of the newly
22099 generated private extension declaration if the formal derived type is
22100 synchronized. Carry synchronized present over to the generated private
22102 (Validate_Derived_Type_Instance): Ensure that the actual of a
22103 synchronized formal derived type is a synchronized tagged type.
22104 (Instantiate_Formal_Package): When creating the instantiation used to
22105 validate the actual package of a formal declared without a box, check
22106 whether the formal itself depends on a prior actual.
22107 (Instantiate_Formal_Subprogram): Create new entities for the defining
22108 identifiers of the formals in the renaming declaration, for ASIS use.
22109 (Instantiate_Formal_Subprogram, Instantiate_Formal_Type): When creating
22110 a renaming declaration or a subtype declaration for an actual in an
22111 instance, capture location information of declaration in generic, for
22113 (Instantiate_Formal_Package): Add comments on needed additional tests.
22114 AI-317 (partial parametrization) is fully implemented.
22115 (Validate_Private_Type_Instance): Add check for actual which
22116 must have preelaborable initialization
22117 Use new // insertion for some continuation messages
22118 (Analyze_Formal_Object_Declaration): Change usage of Expression to
22119 Default_Expression. Add type retrieval when the declaration has an
22120 access definition. Update premature usage of incomplete type check.
22121 (Check_Access_Definition): New subsidiary routine. Check whether the
22122 current compilation version is Ada 05 and the supplied node has an
22124 (Instantiate object): Alphabetize local variables. Handle the creation
22125 of new renaming declarations with respect to the kind of definition
22126 used - either an access definition or a subtype mark. Guard against
22127 unnecessary error message in the context of anonymous access types after
22128 they have been resolved. Add check for required null exclusion in a
22129 formal object declaration.
22130 (Switch_View): A private subtype of a non-private type needs to be
22131 switched (the base type can have been switched without its private
22132 dependents because of the last branch of Check_Private_View.
22133 (Check_Private_View): Do not recompute Base_Type (T), instead use cached
22135 (Instantiate_Type): Emit an error message whenever a class-wide type of
22136 a tagged incomplete type is used as a generic actual.
22137 (Find_Actual_Type): Extend routine to handle a component type in a child
22138 unit that is imported from a formal package in a parent.
22139 (Validate_Derived_Type_Instance): Check that analyzed formal and actual
22140 agree on constrainedness, rather than checking against ultimate ancestor
22141 (Instantiate_Subprogram_Body): Create a cross-reference link to the
22142 generic body, for navigation purposes.
22144 2006-10-31 Robert Dewar <dewar@adacore.com>
22145 Thomas Quinot <quinot@adacore.com>
22147 * sem_ch13.adb: Storage pool cannot be given for access to subprogram
22149 (New_Stream_Subprogram): When processing an attribute definition clause
22150 for a stream-oriented subprogram, record an entity node occurring at
22151 the point of clause to use for checking the visibility of the clause,
22152 as defined by 8.3(23) as amended by AI-195.
22153 (New_Stream_Subprogram): New procedure, factoring behaviour from both
22154 New_Stream_Function and New_Stream_Procedure.
22155 (New_Stream_Function, New_Stream_Procedure): Removed.
22156 (Analyze_Attribute_Definition_Clause, case Address): Check new
22157 Alignment_Check check
22159 2006-10-31 Ed Schonberg <schonberg@adacore.com>
22160 Javier Miranda <miranda@adacore.com>
22161 Robert Dewar <dewar@adacore.com>
22163 * sem_ch4.adb (Try_Primitive_Operation): Code cleanup to ensure that we
22164 generate the same errors compiling under -gnatc.
22165 (Try_Object_Operation): If no candidate interpretation succeeds, but
22166 there is at least one primitive operation with the right name, report
22167 error in call rather than on a malformed selected component.
22168 (Analyze_Selected_Component): If the prefix is an incomplete type from
22169 a limited view, and the full view is available, use the full view to
22170 determine whether this is a prefixed call to a primitive operation.
22171 (Operator_Check): Verify that a candidate interpretation is a binary
22172 operation before checking the type of its second formal.
22173 (Analyze_Call): Add additional warnings for function call contexts not
22175 (Analyze_Allocator): Move the check for "initialization not allowed for
22176 limited types" after analyzing the expression. This is necessary,
22177 because OK_For_Limited_Init looks at the structure of the expression.
22178 Before analysis, we don't necessarily know what sort of expression it
22179 is. For example, we don't know whether F(X) is a function call or an
22180 indexed component; the former is legal in Ada 2005; the latter is not.
22181 (Analyze_Allocator): Correct code for AI-287 -- extension aggregates
22182 were missing. We also didn't handle qualified expressions. Now also
22183 allow function calls. Use new common routine OK_For_Limited_Init.
22184 (Analyze_Type_Conversion): Do not perform some legality checks in an
22185 instance, because the error message will be redundant or spurious.
22186 (Analyze_Overloaded_Selected_Component): Do not do style check when
22187 setting an entity, since we do not know it is the right entity yet.
22188 (Analyze_Selected_Component): Move Generate_Reference call to Sem_Res
22189 (Analyze_Overloaded_Selected_Component): Same change
22190 (Analyze_Selected_Component): Remove unnecessary prefix type retrieval
22191 since regular incomplete subtypes are transformed into corresponding
22192 subtypes of their full views.
22193 (Complete_Object_Operation): Treat name of transformed subprogram call
22194 as coming from source, for browsing purposes.
22195 (Try_Primitive_Operation): If formal is an access parameter, compare
22196 with base type of object to determine whether it is a primitive
22198 (Operator_Check): If no interpretation of the operator matches, check
22199 whether a use clause on any candidate might make the operation legal.
22200 (Try_Class_Wide_Operation): Check whether the first parameter is an
22201 access type whose designated type is class-wide.
22203 2006-10-31 Robert Dewar <dewar@adacore.com>
22204 Ed Schonberg <schonberg@adacore.com>
22205 Gary Dismukes <dismukes@adacore.com>
22207 * sem_ch5.ads, sem_ch5.adb (Analyze_Loop_Statement): Add circuit to
22208 warn on infinite loops.
22209 Add \\ to some continuation messages
22210 (Analyze_Assignment_Statement): Call Warn_On_Useless_Assignment
22211 (Process_Bounds): If the bounds are integer literals that result from
22212 constant-folding, and they carry a user-defined type, preserve that type
22213 rather than treating this as an integer range.
22214 (Analyze_Exit_Statement): Test for E_Return_Statement in legality check.
22215 (Analyze_Goto_Statement): Test for E_Return_Stateemnt in legality check.
22216 (Analyze_Assignment_Statement): Add call to Check_Elab_Assign for
22217 left hand side of assignment.
22218 (Analyze_Assignment): Add suport to manage assigments to the attribute
22219 priority of a protected object.
22220 (Check_Possible_Current_Value_Condition): Allow fully qualified names
22221 not just identifiers.
22222 (Check_Possible_Current_Value_Condition): Acquire left operand of AND
22223 or AND THEN for possible tracking.
22224 (Analyze_Iteration_Scheme): Check for setting Current_Value for the
22225 case of while loops so we can track values in the loop body.
22227 2006-10-31 Ed Schonberg <schonberg@adacore.com>
22228 Hristian Kirtchev <kirtchev@adacore.com>
22229 Bob Duff <duff@adacore.com>
22231 * sem_ch6.ads, sem_ch6.adb (Analyze_Subprogram_Declaration): A null
22232 procedure cannot be a protected operation (it is a basic_declaration,
22233 not a subprogram_declaration).
22234 (Check_Overriding_Indicator): Rename formal Does_Override to Overridden_
22235 Subp. Add logic for entry processing.
22236 (Check_Synchronized_Overriding): New procedure in New_Overloaded_Entity.
22237 Determine whether an entry or subprogram of a protected or task type
22238 override an inherited primitive of an implemented interface.
22239 (New_Overloaded_Entity): Add calls to Check_Synchronized_Overriding.
22240 Update the actual used in calls to Check_Overriding_Indicator.
22241 (Analyze_Generic_Subprogram_Body): If the subprogram is a child unit,
22242 generate the proper reference to the parent unit, for cross-reference.
22243 (Analyze_Subprogram_Declaration): Protect Is_Controlling_Formal with
22245 Add -gnatd.l --Use Ada 95 semantics for limited function returns,
22246 (Add_Extra_Formal): Revise procedure to allow passing in associated
22247 entity, scope, and name suffix, and handle setting of the new
22248 Extra_Formals field.
22249 (Create_Extra_Formals): Change existing calls to Add_Extra_Formal to
22250 pass new parameters. Add support for adding the new extra access formal
22251 for functions whose calls are treated as build-in-place.
22252 (Analyze_A_Return_Statement): Correct casing in error message.
22253 Move Pop_Scope to after Analyze_Function_Return, because an extended
22254 return statement really is a full-fledged scope. Otherwise, visibility
22255 doesn't work right. Correct use of "\" for continuation messages.
22256 (Analyze_Function_Return): Call Analyze on the Obj_Decl, rather than
22257 evilly trying to call Analyze_Object_Declaration directly. Otherwise,
22258 the node doesn't get properly marked as analyzed.
22259 (Analyze_Subprogram_Body): If subprogram is a function that returns
22260 an anonymous access type that denotes a task, build a Master Entity
22262 (Analyze_Return_Type): Add call to Null_Exclusion_Static_Checks. Verify
22263 proper usage of null exclusion in a result definition.
22264 (Process_Formals): Code cleanup and new error message.
22265 (Process_Formals): Detect incorrect application of null exclusion to
22267 (Conforming_Types): Handle conformance between [sub]types and itypes
22268 generated for entities that have null exclusions applied to them.
22269 (Maybe_Primitive_Operation): Add an additional type retrieval when the
22270 base type is an access subtype. This case arrises with null exclusions.
22271 (New_Overloaded_Entity): Do not remove the overriden entity from the
22272 homonym chain if it corresponds with an abstract interface primitive.
22273 (Process_Formals): Replace membership test agains Incomplete_Kind with a
22274 call to the synthesized predicate Is_Incomplete_Type.
22275 (Analyze_Subprogram_Body): Check wrong placement of abstract interface
22277 (Analyze_Subprogram_Declaration): Check that abstract interface
22278 primitives are abstract or null.
22279 (Analyze_Subprogram_Specification): Remove previous check for abstract
22280 interfaces because it was not complete.
22281 (Has_Interface_Formals): Removed.
22283 2006-10-31 Ed Schonberg <schonberg@adacore.com>
22284 Javier Miranda <miranda@adacore.com>
22286 * sem_ch7.adb (Check_Anonymous_Access_Types): New procedure, subsidiary
22287 of Analyze_Package_Body, to create Itype references for anonymous
22288 access types created in the package declaration, whose designated types
22289 may have only a limited view.
22290 (Analyze_Package_Specification): For the private part of a nested
22291 package, install private_with_clauses of enclosing compilation unit if
22292 we are in its visible part.
22293 (Declare_Inherited_Private_Subprograms): Complete barrier
22294 to ensure that the primitive operation has an alias to some parent
22295 primitive. This is now required because, after the changes done for the
22296 implementation of abstract interfaces, the contents of the list of
22297 primitives has entities whose alias attribute references entities of
22298 such list of primitives.
22299 (Analyze_Package_Specification): Simplify code that handles parent units
22300 of instances and formal packages.
22301 (Uninstall_Declarations): Check the convention consistency among
22302 primitive overriding operations of a tagged record type.
22304 2006-10-31 Robert Dewar <dewar@adacore.com>
22305 Hristian Kirtchev <kirtchev@adacore.com>
22306 Javier Miranda <miranda@adacore.com>
22307 Ed Schonberg <schonberg@adacore.com>
22309 * sem_ch8.adb: Minor error msg rewording
22310 (Undefined): When checking for misspellings, invert arguments (to get
22311 expected and found set right)
22312 (Analyze_Subprogram_Renaming): Propagate Is_Pure, Is_Preelaborated
22313 (Analyze_Generic_Renaming): Same fix
22314 (Use_One_Package): Do not take into account the internal entities of
22315 abstract interfaces during the analysis of entities that are marked
22316 as potentially use-visible.
22317 (Find_Type): Handle the case of an attribute reference for
22318 implementation defined attribute Stub_Type (simply let the analysis of
22319 the attribute reference rewrite it).
22320 (Use_One_Type, End_Use_Type): Reject a reference to a limited view of a
22321 type that appears in a Use_Type clause.
22322 (Analyze_Object_Renaming): Add support for renaming of the Priority
22324 (Find_Type): In Ada 2005, a task type can be used within its own body,
22325 when it appears in an access definition.
22326 (Analyze_Object_Renaming): Remove warning on null_exclusion.
22327 (Analyze_Object_Renaming): Introduce checks for required null exclusion
22328 in a formal object declaration or in a subtype declaration.
22329 (Analyze_Subprogram_Renaming): Add call to Check_Null_Exclusion.
22330 (Check_Null_Exclusion): New local routine to
22331 Analyze_Subprogram_Renaming. Check whether the formals and return
22332 profile of a renamed subprogram have required null exclusions when
22333 their counterparts of the renaming already impose them.
22334 (In_Generic_Scope): New local routine to Analyze_Object_Renaming.
22335 Determine whether an entity is inside a generic scope.
22336 (In_Open_Scope): First pass of documentation update.
22337 (Find_Expanded_Name): Add support for shadow entities associated with
22338 limited withed packages. This is required to handle nested packages.
22339 (Analyze_Package_Renaming): Remove the restriction imposed by AI-217
22340 that makes a renaming of a limited withed package illegal.
22342 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
22343 Ed Schonberg <schonberg@adacore.com>
22345 * sem_ch9.adb (Analyze_Protected_Definition): Remove call to
22346 Check_Overriding_Indicator.
22347 (Analyze_Task_Definition): Ditto.
22348 (Analyze_Protected_Type, Analyze_Task_Type): Code cleanup.
22349 (Check_Overriding_Indicator): To find overridden interface operation,
22350 examine only homonyms that have an explicit subprogram declaration, not
22351 inherited operations created by an unrelated type derivation.
22352 (Check_Overriding_Indicator): When checking for the presence of "null"
22353 in a procedure, ensure that the queried node is a procedure
22355 (Matches_Prefixed_View_Profile): Add mechanism to retrieve the parameter
22356 type when the formal is an access to variable.
22357 (Analyze_Protected_Type): Add check for Preelaborable_Initialization
22358 (Analyze_Task_Type): Same addition
22359 (Analyze_Entry_Declaration): Call Generate_Reference_To_Formals, to
22360 provide navigation capabilities for entries.
22362 2006-10-31 Hristian Kirtchev <kirtchev@adacore.com>
22363 Ed Schonberg <schonberg@adacore.com>
22364 Javier Miranda <miranda@adacore.com>
22365 Gary Dismukes <dismukes@adacore.com>
22367 * sem_disp.adb (Check_Dispatching_Operation): Do not flag subprograms
22368 inherited from an interface ancestor by another interface in the
22369 context of an instance as 'late'.
22370 (Is_Tag_Indeterminate, Propagate_Tag): Handle properly the dereference
22371 of a call to a function that dispatches on access result.
22372 (Check_Dispatching_Operation): In case of late overriding of a primitive
22373 that covers abstract interface subprograms we register it in all the
22374 secondary dispatch tables associated with abstract interfaces.
22375 (Check_Dispatching_Call): Add check that a dispatching call is not made
22376 to a function with a controlling result of a limited type. This is a
22377 current implementation restriction.
22378 (Check_Controlling_Formal): Remove bogus checks for E.2.2(14).
22379 (Check_Dispatching_Operation): Do no emit a warning if the controlling
22380 argument is an interface type that is a generic formal.
22381 (Is_Interface_Subprogram): Removed.
22382 (Check_Dispatching_Operation): If the subprogram is not a dispatching
22383 operation, check the formals to handle the case in which it is
22384 associated with an abstract interface type.
22386 2006-10-31 Robert Dewar <dewar@adacore.com>
22387 Ed Schonberg <schonberg@adacore.com>
22389 * sem_elab.ads, sem_elab.adb (Check_Elab_Assign): New procedure
22390 Add new calls to this procedure during traversal
22391 (Activate_Elaborate_All_Desirable): Do not set elaboration flag on
22392 another unit if expansion is disabled.
22394 2006-10-31 Robert Dewar <dewar@adacore.com>
22396 * sem_eval.adb (Compile_Time_Compare): Make use of information from
22397 Current_Value in the conditional case, to evaluate additional
22398 comparisons at compile time.
22400 2006-10-31 Ed Schonberg <schonberg@adacore.com>
22401 Hristian Kirtchev <kirtchev@adacore.com>
22402 Javier Miranda <miranda@adacore.com>
22404 * sem_type.adb (Add_One_Interp): If node is an indirect call, preserve
22405 subprogram type to provide better diagnostics in case of ambiguity.
22406 (Covers): Handle coverage of formal and actual anonymous access types in
22407 the context of generic instantiation.
22408 (Covers/Interface_Present_In_Ancestors): Use the base type to manage
22409 abstract interface types; this is required to handle concurrent types
22410 with discriminants and abstract interface types.
22411 (Covers): Include type coverage of both regular incomplete subtypes and
22412 incomplete subtypes of incomplete type visibles through a limited with
22415 2006-10-31 Robert Dewar <dewar@adacore.com>
22416 Hristian Kirtchev <kirtchev@adacore.com>
22417 Ed Schonberg <schonberg@adacore.com>
22419 * sem_util.ads, sem_util.adb (Enter_Name): Exclude -gnatwh warning
22420 messages for entities in packages which are not used.
22421 (Collect_Synchronized_Interfaces): New procedure.
22422 (Overrides_Synchronized_Primitive): New function.
22423 (Denotes_Discriminant): Extend predicate to apply to task types.
22424 Add missing continuation marks in error msgs
22425 (Unqualify): New function for removing zero or more levels of
22426 qualification from an expression. There are numerous places where this
22427 ought to be used, but we currently only deal properly with zero or one
22429 (In_Instance); The analysis of the actuals in the instantiation of a
22430 child unit is not within an instantiation, even though the parent
22431 instance is on the scope stack.
22432 (Safe_To_Capture_Value): Exclude the case of variables that are
22434 (Check_Obsolescent): Removed
22435 (Is_Aliased_View): A reference to an enclosing instance in an aggregate
22436 is an aliased view, even when rewritten as a reference to the target
22437 object in an assignment.
22438 (Get_Subprogram_Entity): New function
22439 (Known_To_Be_Assigned): New function
22440 (Type_Access_Level): Compute properly the access level of a return
22441 subtype that is an anonymous access type.
22442 (Explain_Limited_Type): Correct use of "\" for continuation messages.
22443 (Is_Transfer): The new extended_return_statement causes a transfer of
22445 (Has_Preelaborable_Initialization): New function
22446 (Has_Null_Exclusion): New function. Given a node N, determine whether it
22447 has a null exclusion depending on its Nkind.
22448 Change Is_Lvalue to May_Be_Lvalue
22449 (May_Be_Lvalue): Extensive additional code to deal with subprogram
22450 arguments (IN parameters are not Lvalues, IN OUT parameters are).
22451 (Safe_To_Capture_Value): Extend functionality so it can be used for
22452 the current value condition case.
22453 (Has_Compatible_Alignment): New function
22454 (Is_Dependent_Component_Of_Mutable_Object): Revise the tests for mutable
22455 objects to handle the Ada 2005 case, where aliasedness no longer implies
22456 that the object is constrained. In particular, for dereferenced names,
22457 the designated object must be assumed to be unconstrained.
22458 (Kill_Current_Values): Properly deal with the case where we encounter
22459 a loop in the scope chain.
22460 (Safe_To_Capture_Value): Do not let a loop stop us from capturing
22462 (Compile_Time_Constraint_Error): Improve error message in error case
22464 * exp_ch13.adb (Expand_N_Freeze_Entity): Remove the freezing node
22465 associated with entities of abstract interface primitives.
22466 Call Apply_Address_Clause_Check instead of Apply_Alignment_Check
22468 2006-10-31 Robert Dewar <dewar@adacore.com>
22470 * s-osinte-tru64.adb:
22471 Mark Asm statements Volatile to prevent warnings (seems a
22472 reasonable change anyway)
22475 * s-mastop-irix.adb: Add Volatile to Asm statements
22476 Suppresses warning, and seems appropriate in any case
22478 * s-osinte-vms.adb: Add Volatile to Asm statement
22480 * s-vaflop-vms-alpha.adb: Add Volatile to Asm statements
22482 * exp_code.ads, exp_code.adb (Asm_Input_Value): Note that Error can be
22484 Add call to Check_Code_Statement
22486 2006-10-31 Robert Dewar <dewar@adacore.com>
22487 Ed Schonberg <schonberg@adacore.com>
22488 Bob Duff <duff@adacore.com>
22490 * sinfo.ads, sinfo.adb (Set_Synchronized_Present,
22491 Synchronized_Present): Add Formal_Derived_Type_Definition and
22492 Private_Extension_Declaration to the list of assertions.
22493 (Is_Entry_Barrier_Function): New flag
22494 (Has_Self_Reference): New flag on aggregates, to indicate that they
22495 contain a reference to the enclosing type, inserted through a default
22497 (Next_Rep_Item): Move from Node4 to Node5.
22498 (Entity): Add this field for N_Attribute_Definition_Clause.
22499 (Comes_From_Extended_Return_Statement): New flag on N_Return_Statement
22500 (N_Return_Object_Declaration): Remove this node kind. We now use
22501 N_Object_Declaration instead.
22502 (Actual_Designated_Subtype): Move to a different place to make room in
22503 N_Extended_Return_Statement.
22504 (Procedure_To_Call): Move to a different place to make room in
22505 N_Extended_Return_Statement.
22506 (Return_Type): Removed this field to make room in return statements
22508 (Return_Statement_Entity): New field in return statements, in part to
22509 replace Return_Type, and in part to support the fact that return
22510 statements are now pushed on the scope stack during semantic analysis.
22511 (Return_Object_Declarations): New field to support extended return
22513 (N_Extended_Return_Statement): New node for extended_return_statement
22515 (N_Return_Object_Declaration): New node for part of
22516 extended_return_statement nonterminal. Needed because all the necessary
22517 fields won't fit in N_Extended_Return_Statement.
22518 Generic_associations now carry the Box_Present flag, to indicate a
22519 default for an actual in a partially parametrized formal package.
22521 * snames.h, snames.ads, snames.adb: Add definition for Validity_Check
22522 (Preset_Names): Add entries for Priority_Specific_Dispatching pragma
22523 and for the new predefined dispatching policies: EDF_Across_Priorities,
22524 Non_Preemptive_Within_Priorities, and Round_Robin_Within_Priorities.
22525 Introduce new name Stub_Type for implementation defined attribute.
22526 Add pragma Preelaborable_Initialization
22527 Add entry for Priority attribute.
22528 Add Pragma_Wide_Character_Encoding
22529 (Get_Convention_Name): Given a convention id, this function returns the
22530 corresponding name id from the names table.
22532 2006-10-31 Ed Schonberg <schonberg@adacore.com>
22533 Robert Dewar <dewar@adacore.com>
22534 Bob Duff <duff@adacore.com>
22536 * sprint.adb (Sprint_Node_Actual, case Parameter_Specification): Do not
22537 print null exclusion twice in the case of an access definition,
22538 Implement new -gnatL switch
22539 Remove N_Return_Object_Declaration. We now use
22540 N_Object_Declaration instead. Implement the case for
22541 N_Extended_Return_Statement. Alphabetize the cases.
22542 Add cases for new nodes N_Extended_Return_Statement and
22543 N_Return_Object_Declaration. The code is not yet written.
22544 Update the output for N_Formal_Object_Declaration
22545 and N_Object_Renaming_Declaration.
22546 (Write_Itype): Account for the case of a modular integer subtype whose
22547 base type is private.
22549 2006-10-31 Arnaud Charlet <charlet@adacore.com>
22551 * s-restri.ads, s-restri.adb: Mark this package as Preelaborate.
22552 Remove elaboration code, now done in the binder.
22554 * s-rident.ads: Make this unit Preelaborate.
22555 (No_Restrictions): New constant used to clean up code and follow
22556 preelaborate constraints.
22559 Add System.Restrictions dependence, referenced directly from the
22560 binder generated file.
22562 2006-10-31 Gary Dismukes <dismukes@adacore.com>
22564 * s-scaval.adb (Initialize): Add new Boolean flag AFloat that is set
22565 True when AAMP extended floating-point is in use (48-bit). Change type
22566 ByteLF to ByteLLF, add new array type ByteLF and condition the size of
22567 the two byte array types on AFloat. Change type of IV_Ilf overlay
22568 variable from Byte8 to ByteLF. Add appropriate initializations of
22569 floating-point overlays for AAMP cases.
22571 2006-10-31 Javier Miranda <miranda@adacore.com>
22573 * s-tpoben.ads, s-tpoben.adb, s-taprob.ads, s-taprob.adb
22574 (Get_Ceiling): New subprogram that returns
22575 the ceiling priority of the protected object.
22576 (Set_Ceiling): New subprogram that sets the new ceiling priority of
22577 the protected object.
22579 * s-tarest.adb: (Create_Restricted_Task): Fix potential CE.
22581 * s-taskin.ads, s-taskin.adb: (Storage_Size): New function.
22583 2006-10-31 Jose Ruiz <ruiz@adacore.com>
22585 * s-tpobop.adb (Requeue_Call): Introduce a dispatching point when
22586 requeuing to the same protected object to give higher priority tasks
22587 the opportunity to execute.
22589 2006-10-31 Robert Dewar <dewar@adacore.com>
22591 * widechar.adb (Is_Start_Of_Wide_Char): In case of brackets encoding,
22592 add more precise check for the character sequence that follows '[' to
22593 avoid possible confusion in case if '[' is the last character of a
22595 (Scan_Wide): Always allow brackets encoding
22597 2006-10-31 Olivier Hainque <hainque@adacore.com>
22599 * s-stchop.ads: make this unit preelaborate. This is desirable in
22600 general and made mandatory by the use of this unit by s-taprop which
22601 is itself preelaborate.
22603 * s-stchop-vxworks.adb (Set_Stack_Info, Task_Descriptor type): Add
22604 Td_Events component.
22606 2006-10-31 Vincent Celier <celier@adacore.com>
22608 * a-dirval-vms.adb (Invalid_Character): Specify that digits are allowed
22611 2006-10-31 Vincent Celier <celier@adacore.com>
22613 * a-direct.ads, a-direct.adb (Search): New procedure in Ada 2005
22615 2006-10-31 Vincent Celier <celier@adacore.com>
22617 * makegpr.adb (Check_Compilation_Needed): Take into account path names
22619 (Check_Compilation_Needed): When checking a C or C++ source, do not
22620 resolve symbolic links.
22621 (Display_Command): New Boolean parameter Ellipse, defaulted to False.
22622 When not in verbose mode and Ellipse is True, display "..." for the
22623 first argument with Display set to False.
22624 (Build_Global_Archive): Always set Display True for the first object
22625 file. Call Display_Command with Ellipse set to True.
22627 2006-10-31 Matt Heaney <heaney@adacore.com>
22629 * a-crbtgo.ads: Commented each subprogram
22631 * a-crbtgo.adb: Added reference to book from which algorithms were
22634 * a-crbtgk.ads, a-crbtgk.adb (Generic_Insert_Post): pass flag to
22635 indicate which child.
22636 (Generic_Conditional_Insert): changed parameter name from "Success" to
22638 (Generic_Unconditional_Insert_With_Hint): improved algorithm
22640 * a-coorse.adb (Replace_Element): changed parameter name in call to
22641 conditional insert operation.
22643 * a-convec.adb, a-coinve.adb (Insert): removed obsolete comment
22645 * a-cohama.adb (Iterate): manipulate busy-bit here, instead of in
22648 * a-ciorse.adb (Replace_Element): changed parameter name in call to
22649 conditional insert operation.
22651 * a-cihama.adb (Iterate): manipulate busy-bit here, instead of in
22654 * a-cidlli.ads, a-cidlli.adb (Splice): Position param is now mode in
22655 instead of mode inout.
22657 * a-chtgop.adb (Adjust): modified comments to reflect current AI-302
22659 (Generic_Read): preserve existing buckets array if possible
22660 (Generic_Write): don't send buckets array length anymore
22662 * a-cdlili.ads, a-cdlili.adb (Splice): Position param is now mode in
22663 instead of mode inout.
22665 * a-cihase.adb (Difference): iterate over smaller of Tgt and Src sets
22666 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
22668 * a-cohase.adb (Difference): iterate over smaller of Tgt and Src sets
22669 (Iterate): manipulate busy-bit here, instead of in Generic_Iteration
22670 (Replace_Element): local operation is now an instantiation
22672 * a-chtgke.ads, a-chtgke.adb (Generic_Conditional_Insert): manually
22673 check current length.
22674 (Generic_Replace_Element): new operation
22676 2006-10-31 Doug Rupp <rupp@adacore.com>
22678 * g-trasym-vms-alpha.adb: Dummy_User_Act_Proc: New function.
22679 Call TBK$SYMBOLIZE without omitting parameters.
22681 2006-10-31 Vincent Celier <celier@adacore.com>
22683 * symbols-processing-vms-ia64.adb,
22684 symbols-processing-vms-alpha.adb (Process): Do not include symbols
22685 that come from generic instantiations in bodies.
22687 2006-10-31 Pat Rogers <rogers@adacore.com>
22689 * a-rttiev.ads, a-rttiev.adb:
22690 This is a significant redesign primarily for the sake of automatic
22691 timer task termination but also to fix a design flaw.
22692 Therefore we are now using an RTS lock, instead of a protected
22693 object, to provide mutual exclusion to the queue of pending events
22694 and the type Timing_Event is no longer a protected type.
22696 2006-10-31 Robert Dewar <dewar@adacore.com>
22697 Cyrille Comar <comar@adacore.com>
22698 Ben Brosgol <brosgol@adacore.com>
22700 * debug.adb: Update flags documentation
22702 * gnat_ugn.texi: Add documentation for new -gnatwq switch
22703 Clean up documentation for several other warning switches
22704 Clarify how task stack size can be specified with various
22705 versions of Windows.
22706 Add note that -gnatVo includes ranges including loops
22707 Add documentation for -gnatL switch
22708 Add note on elaboration warning for initializing variables
22709 Add documentation for new -gnatwt warning switch
22710 Document new form of pragma Warnings (On|Off, string)
22711 Add comment on use of pragma Warnings to control warnings
22712 Add documentation for -gnatjnn switch
22713 Modify section on interfacing with C for VMS 64-bit.
22714 Add doc for -gnatVe/E
22715 Add documentation of new warning flags -gnatww/-gnatwW
22716 Add warnings about address clause overlays to list of warnings
22717 (Exception Handling Control): Document that the option --RTS must be
22718 used consistently for gcc and gnatbind.
22719 Clarify that inlining is not always possible
22720 Update documentation on pragma Unchecked_Union.
22723 Add documentation for new extended version of pragma Obsolescent
22724 Add documentation for implementation defined attribute 'Stub_Type.
22725 Add note on use of Volatile in asm statements
22726 Add documentation on use of pragma Unreferenced in context clause
22727 Document new form of pragma Warnings (On|Off, pattern)
22728 Document pragma Wide_Character_Encoding
22729 Add note that pragma Restrictions (No_Elaboration_Code) is only fully
22730 enforced if code generation is active.
22731 Add section on pragma Suppress to document GNAT specific check
22733 Clarify difference between No_Dispatching_Calls & No_Dispatch.
22734 Add documentation for pragma Restrictions (No_Elaboration_Code)
22737 Add comments on layout of subprogram local variables in the
22738 presence of nested subprograms.
22740 * ug_words: Resync.
22742 * elists.ads: Minor reformatting
22743 Node returns Node_Or_Entity_Id (doc change only)
22745 * xgnatugn.adb: Replace ACADEMICEDITION with GPLEDITION
22747 * g-arrspl.ads (Create): Update comments.
22749 * sem.ads: Add details on the handling of the scope stack.
22751 * usage.adb: Update documentation.
22753 * validsw.ads, validsw.adb:
22754 Add definition of Validity_Check_Components and implement -gnatVe/E
22756 * vms_data.ads: Add missing VMS qualifiers.
22758 * s-addope.ads: Add documentation on overflow and divide by zero
22760 2006-10-31 Robert Dewar <dewar@adacore.com>
22761 Thomas Quinot <quinot@adacore.com>
22762 Arnaud Charlet <charlet@adacore.com>
22764 * fmap.adb: Put routines in alpha order
22766 * g-boumai.ads: Remove redundant 'in' keywords
22768 * g-cgi.adb: Minor reformatting
22770 * g-cgi.ads: Remove redundant 'in' keywords
22772 * get_targ.adb: Put routines in alpha order
22774 * prj-attr.ads: Minor reformatting
22776 * s-atacco.ads: Minor reformatting
22778 * scn.adb: Put routines in alpha order
22780 * sinput-l.adb: Minor comment fix
22782 * sinput-p.adb: Minor comment fix
22784 * s-maccod.ads: Minor reformatting
22786 * s-memory.adb: Minor reformatting
22788 * s-htable.adb: Fix typo in comment.
22790 * s-secsta.adb: Minor comment update.
22792 * s-soflin.adb: Minor reformatting
22795 Add comment about odd qualification in Storage_Offset declaration
22798 Remove unnecessary 'in' keywords for formal parameters.
22800 * treeprs.adt: Minor reformatting
22802 * urealp.adb: Put routines in alpha order
22804 * s-wchcon.ads, s-wchcon.adb (Get_WC_Encoding_Method): New version
22807 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
22809 * g-trasym-vms-ia64.adb: Remove redundant 'in' keywords
22811 * env.c (__gnat_unsetenv): Unsetenv is unavailable on LynxOS, so
22812 workaround as on other platforms.
22814 * g-eacodu-vms.adb: Remove redundant 'in' keywords
22815 * g-expect-vms.adb: Remove redundant 'in' keywords
22817 * gnatdll.adb (Add_Files_From_List): Handle Name_Error and report a
22818 clear error message if the list-of-files file cannot be opened.
22820 * g-thread.adb (Unregister_Thread_Id): Add use type Thread_Id so the
22821 equality operator is always visible.
22823 * lang.opt: Woverlength-strings: New option.
22826 Update copyright, since nmake.ads and nmake.adb have changed.
22828 * osint-b.ads, osint-b.adb (Time_From_Last_Bind): removed function .
22829 (Binder_Output_Time_Stamps_Set): removed.
22830 (Old_Binder_Output_Time_Stamp): idem.
22831 (New_Binder_Output_Time_Stamp): idem.
22832 (Recording_Time_From_Last_Bind): idem.
22833 (Recording_Time_From_Last_Bind): Make constant.
22835 * output.ads, output.adb (Write_Str): Allow LF characters
22836 (Write_Spaces): New procedure
22838 * prepcomp.adb (Preproc_Data_Table): Change Increment from 5% to 100%
22840 * inline.adb: Minor reformatting
22842 * s-asthan-vms-alpha.adb: Remove redundant 'in' keywords
22844 * s-mastop-vms.adb: Remove redundant 'in' keywords
22846 * s-osprim-vms.adb: Remove redundant 'in' keywords
22848 * s-trafor-default.adb: Remove redundant 'in' keywords
22850 * 9drpc.adb: Remove redundant 'in' keywords
22852 * s-osinte-mingw.ads: Minor reformatting
22854 * s-inmaop-posix.adb: Minor reformatting
22856 * a-direio.ads: Remove quotes from Compile_Time_Warning message
22858 * a-exexda.adb: Minor code reorganization
22860 * a-filico.adb: Minor reformatting
22862 * a-finali.adb: Minor reformatting
22864 * a-nudira.ads: Remove quote from Compile_Time_Warning message
22866 * a-numeri.ads: Minor reformatting
22868 * a-sequio.ads: Remove quotes from Compile_Time_Warning message
22870 * exp_pakd.ads: Fix obsolete comment
22872 * a-ztenau.adb, a-ztenio.adb, a-wtenau.adb, a-tienau.adb,
22873 a-wtenio.adb (Put): Avoid assuming low bound of string is 1.
22874 Probably not a bug, but certainly neater and more efficient.
22876 * a-tienio.adb: Minor reformatting
22878 * comperr.adb (Compiler_Abort): Call Cancel_Special_Output at start
22879 Avoid assuming low bound of string is 1.
22881 * gnatbind.adb: Change Bindusg to package and rename procedure as
22882 Display, which now ensures that it only outputs usage information once.
22883 (Scan_Bind_Arg): Avoid assuming low bound of string is 1.
22885 * g-pehage.adb (Build_Identical_Keysets): Replace use of 1 by
22888 * g-regpat.adb (Insert_Operator): Add pragma Warnings (Off) to kill
22890 (Match): Add pragma Assert to ensure that Matches'First is zero
22892 * g-regpat.ads (Match): Document that Matches lower bound must be zero
22894 * makeutl.adb (Is_External_Assignment): Add pragma Assert's to check
22895 documented preconditions (also kills warnings about bad indexes).
22897 * mdll.adb (Build_Dynamic_Library): Avoid assumption that Afiles'First
22899 (Build_Import_Library): Ditto;
22901 * mdll-utl.adb: (Gnatbind): Avoid assumption that Alis'First = 1
22903 * rtsfind.adb (RTE_Error_Msg): Avoid assuming low bound of string is 1.
22905 * sem_case.adb (Analyze_Choices): Add pragma Assert to check that
22906 lower bound of choice table is 1.
22908 * sem_case.ads (Analyze_Choices): Document that lower bound of
22911 * s-imgdec.adb (Set_Decimal_Digits): Avoid assuming low bound of
22914 * uintp.adb (Init_Operand): Document that low bound of Vec is always 1,
22915 and add appropriate Assert pragma to suppress warnings.
22917 * atree.h, atree.ads, atree.adb
22918 Change Elist24 to Elist25
22919 Add definitions of Field28 and Node28
22920 (Traverse_Field): Use new syntactic parent table in sinfo.
22922 * cstand.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
22924 * itypes.adb: Change name Is_Ada_2005 to Is_Ada_2005_Only
22926 * exp_tss.adb: Put routines in alpha order
22928 * fe.h: Remove redundant declarations.
22930 2006-10-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
22932 * utils.c (builtin_function): Rename to gnat_builtin_function.
22933 Move common code to add_builtin_function.
22934 * misc.c (LANG_HOOKS_BUILTIN_FUNCTION): Define as
22935 gnat_builtin_function.
22936 * gigi.h (builtin_function): Rename to gnat_builtin_function.
22937 Change the signature.
22939 2006-10-16 Brooks Moses <bmoses@stanford.edu>
22941 * Makefile.in: Add TEXI2PDF definition.
22942 * Make-lang.in: Add "ada.pdf" target.
22944 2006-10-03 Kazu Hirata <kazu@codesourcery.com>
22946 * decl.c, utils.c: Fix comment typos.
22947 * utils.c: Fix a typo.
22949 2006-09-28 Eric Botcazou <ebotcazou@adacore.com>
22951 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not set "const" flag
22952 on "pure" Ada subprograms if SJLJ exceptions are used.
22953 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Set TREE_NO_WARNING
22954 on the declaration node of JMPBUF_SAVE.
22955 * utils.c (init_gigi_decls): Set DECL_IS_PURE on the declaration nodes
22956 of Get_Jmpbuf_Address_Soft and Get_GNAT_Exception.
22957 * utils2.c (build_call_0_expr): Do not set TREE_SIDE_EFFECTS.
22959 2006-08-20 Laurent Guerby <laurent@guerby.net>
22962 g-socket.adb (Bind_Socket): Call Set_Address.
22964 2006-09-15 Eric Botcazou <ebotcazou@adacore.com>
22967 * decl.c (same_discriminant_p): New static function.
22968 (gnat_to_gnu_entity) <E_Record_Type>: When there is a parent
22969 subtype and we have discriminants, fix up the COMPONENT_REFs
22970 for the discriminants to make them reference the corresponding
22971 fields of the parent subtype after it has been built.
22973 2006-09-15 Roger Sayle <roger@eyesopen.com>
22976 * utils.c (max_size): Perform constant folding of (A ? B : C) - D
22977 into A ? B - D : C - D when calculating the size of a MINUS_EXPR.
22979 2006-09-13 Olivier Hainque <hainque@adacore.com>
22982 * trans.c (gnat_gimplify_expr) <ADDR_EXPR>: When taking the address
22983 of a SAVE_EXPR, just make the operand addressable/not-readonly and
22984 let the common gimplifier code make and propagate a temporary copy.
22985 (call_to_gnu): Clarify the use of SAVE_EXPR for not addressable
22986 out/in-out actuals and defer setting the addressable/readonly bits
22989 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
22992 * decl.c (components_to_record): Defer emitting debug info for the
22993 record type associated with the variant until after we are sure to
22996 2006-09-13 Eric Botcazou <ebotcazou@adacore.com>
22999 * gigi.h (gnat_internal_attribute_table): Declare.
23000 * misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
23001 * utils.c (gnat_internal_attribute_table): New global variable.
23002 (builtin_function): Always call decl_attributes on the builtin.
23003 (handle_const_attribute): New static function.
23004 (handle_nothrow_attribute): Likewise.
23006 2006-07-28 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
23008 * Make-lang.in: Use $(HEADER_H) instead of header.h in dependencies.
23010 2006-06-23 Olivier Hainque <hainque@adacore.com>
23012 * misc.c (gnat_type_max_size): Look at TYPE_ADA_SIZE if we have
23013 not been able to get a constant upper bound from TYPE_SIZE_UNIT.
23015 2006-06-20 James A. Morrison <phython@gcc.gnu.org>
23016 Eric Botcazou <ebotcazou@adacore.com>
23019 * Make-lang.in: Add check-gnat to lang_checks. Rename existing
23020 check-gnat into check-acats.
23022 2006-06-17 Karl Berry <karl@gnu.org>
23024 * gnat-style.texi (@dircategory): Use "Software development"
23025 instead of "Programming", following the Free Software Directory.
23027 2006-06-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23030 * s-taprop-hpux-dce.adb: Delete redundant 'with System.Parameters'.
23032 2006-06-06 Laurent Guerby <laurent@guerby.net>
23035 mlib-utl.adb: Use Program_Name.
23037 2006-05-28 Kazu Hirata <kazu@codesourcery.com>
23039 * decl.c, env.c, gigi.h, init.c, initialize.c, raise-gcc.c,
23040 sem_ch13.adb, sysdep.c, targtyps.c, tb-alvxw.c, tracebak.c,
23041 trans.c, utils.c: Fix comment typos. Follow spelling
23043 * gnat_rm.texi, gnat_ugn.texi, : Fix typos. Follow spelling
23046 2006-05-19 Nicolas Setton <setton@adacore.com>
23048 * misc.c (gnat_dwarf_name): New function.
23049 (LANG_HOOKS_DWARF_NAME): Define to it.
23051 2006-05-14 H.J. Lu <hongjiu.lu@intel.com>
23053 * Make-lang.in (ada/decl.o): Replace target.h with $(TARGET_H).
23054 (ada/misc.o): Likewise.
23055 (ada/utils.o): Likewise.
23057 2006-04-08 Aurelien Jarno <aurel32@debian.org>
23059 * Makefile.in: Add Ada support for GNU/kFreeBSD.
23060 * s-osinte-kfreebsd-gnu.ads: New file.
23062 2006-03-29 Carlos O'Donell <carlos@codesourcery.com>
23064 * Make-lang.in: Rename docdir to gcc_docdir.
23066 2006-03-04 Eric Botcazou <ebotcazou@adacore.com>
23068 * gigi.h (get_ada_base_type): Delete.
23069 * utils2.c (get_ada_base_type): Likewise.
23070 * trans.c (convert_with_check): Operate in the real base type.
23072 2006-03-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23074 * uintp.adb (Num_Bits): Handle Uint_Int_First specially.
23076 2006-03-02 Richard Sandiford <richard@codesourcery.com>
23078 * utils.c (create_var_decl): Use have_global_bss_p when deciding
23079 whether to make the decl common.
23081 2006-02-20 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
23083 * Make-lang.in (Ada): Remove.
23084 (.PHONY): Remove Ada
23086 2006-02-17 Ed Schonberg <schonberg@adacore.com>
23088 * sem_ch4.adb (Find_Boolean_Types): If one of the operands is an
23089 aggregate, check the interpretations of the other operand to find one
23090 that may be a boolean array.
23092 (Analyze_Selected_Component): Fix flow-of-control typo in case where
23093 the prefix is a private extension.
23095 2006-02-17 Eric Botcazou <botcazou@adacore.com>
23098 * utils2.c (find_common_type): If both input types are BLKmode and
23099 have the same constant size, keep using the first one.
23101 * bindgen.adb: (Gen_Versions_Ada): Revert previous workaround.
23103 * decl.c (gnat_to_gnu_entity): Only check TREE_OVERFLOW for a constant.
23105 * misc.c (gnat_handle_option): New case for -Woverlength-strings.
23107 2006-02-17 Jose Ruiz <ruiz@adacore.com>
23109 * s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
23110 s-taprop-solaris.adb, s-taprop-vms.adb, s-taprop-mingw.adb,
23111 s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-lynxos.adb,
23112 s-taprop-tru64.adb (Set_False, Set_True, Suspend_Until_True): Add
23113 Abort_Defer/Undefer pairs to avoid the possibility of a task being
23114 aborted while owning a lock.
23116 2006-02-17 Javier Miranda <miranda@adacore.com>
23117 Robert Dewar <dewar@adacore.com>
23119 * exp_ch4.adb (Expand_N_Allocator): If the allocated object is accessed
23120 through an access to class-wide interface we force the displacement of
23121 the pointer to the allocated object to reference the corresponding
23122 secondary dispatch table.
23123 (Expand_N_Op_Divide): Allow 64 bit divisions by small power of 2,
23124 if Long_Shifts are supported on the target, even if 64 bit divides
23125 are not supported (configurable run time mode).
23126 (Expand_N_Type_Conversion): Do validity check if validity checks on
23127 operands are enabled.
23128 (Expand_N_Qualified_Expression): Do validity check if validity checks
23129 on operands are enabled.
23131 2006-02-17 Ed Schonberg <schonberg@adacore.com>
23133 * exp_dbug.adb (Debug_Renaming_Declaration): Indicate that the entity
23134 must be materialized when the renamed expression is an explicit
23137 2006-02-17 Ed Schonberg <schonberg@adacore.com>
23139 * freeze.adb (Statically_Discriminated_Components): Return false if
23140 the bounds of the type of the discriminant are not static expressions.
23142 * sem_aggr.adb (Check_Static_Discriminated_Subtype): Return false if
23143 the bounds of the discriminant type are not static.
23145 2006-02-17 Robert Dewar <dewar@adacore.com>
23147 * g-os_lib.adb (Copy_File): Make sure that if From has an Invalid_FD,
23148 then we close To if it is valid.
23150 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
23152 * init.c (facility_resignal_table): new array
23153 (__gnat_default_resignal_p): enhance default predicate to resignal if
23154 VMS condition has one of the predefined facility codes.
23156 2006-02-17 Vasiliy Fofanov <fofanov@adacore.com>
23158 * Makefile.in: Use VMS64 specialized versions of several units in
23159 Interfaces.C hierarchy to be compatible with HP C default size choices.
23160 Use the default version of Ada.Synchronous_Task_Control for VxWorks 653.
23162 2006-02-17 Ed Schonberg <schonberg@adacore.com>
23164 * sem_ch10.adb (Analyze_With_Clause): If the unit is a subprogram
23165 instantiation, the corresponding entity is the related_instance of the
23166 wrapper package created for the instance.
23168 2006-02-17 Ed Schonberg <schonberg@adacore.com>
23170 * sem_ch12.adb (Analyze_Package_Instantiation): Inline_Now is false if
23171 the current instance is nested within another instance in a child unit.
23173 2006-02-17 Javier Miranda <miranda@adacore.com>
23174 Ed Schonberg <schonberg@adacore.com>
23176 * sem_ch3.adb (Build_Discriminated_Subtype): In case of concurrent
23177 type we cannot inherit the primitive operations; we inherit the
23178 Corresponding_Record_Type (which has the list of primitive operations).
23179 (Check_Anonymous_Access_Types): When creating anonymous access types for
23180 access components, use Rewrite in order to preserve the tree structure,
23182 (Analyze_Object_Declaration): For limited types with access
23183 discriminants with defaults initialized by an aggregate, obtain
23184 subtype from aggregate as for other mutable types.
23185 (Derived_Type_Declaration): If the derived type is a limited interface,
23186 set the corresponding flag (Is_Limited_Record is not sufficient).
23188 2006-02-17 Ed Schonberg <schonberg@adacore.com>
23190 * sem_ch6.adb (Build_Body_To_Inline): Enforce the rule that in order
23191 to inline a function that returns an unconstrained type, the return
23192 expression must be the first variable declared in the body of the
23195 2006-02-17 Javier Miranda <miranda@adacore.com>
23197 * sem_res.adb (Resolve_Type_Conversion): In case of conversion to an
23198 abstract interface type, the static analysis is not enough to know if
23199 the interface is implemented or not by the source tagged type. Hence
23200 we must pass the work to the expander to generate the required code to
23201 evaluate the conversion at run-time.
23202 (Resolve_Equality_Op): Do not apply previous
23203 transformation if expansion is disasbled, to prevent anomalies when
23204 locating global references in a generic unit.
23206 2006-02-17 Vincent Celier <celier@adacore.com>
23208 * snames.ads, snames.adb: New standard names for new project attributes:
23209 archive_builder, archive_indexer, compiler_pic_option,
23210 config_body_file_name, config_body_file_name_pattern,
23211 config_file_switches, config_file_unique, config_spec_file_name,
23212 config_spec_file_name_pattern, default_builder_switches,
23213 default_global_compiler_switches, default_language,
23214 dependency_file_kind, global_compiler_switches, include_path,
23215 include_path_file, language_kind, linker_executable_option,
23216 linker_lib_dir_option, linker_lib_name_option, mapping_file_switches,
23217 roots, runtime_project.
23219 2006-02-17 Matthew Heaney <heaney@adacore.com>
23221 * a-convec.ads, a-convec.adb:
23222 (operator "&"): handle potential overflow for large index types
23223 (Insert): removed Contraint_Error when using large index types
23224 (Insert_Space): removed Constraint_Error for large index types
23225 (Length): moved constraint check from Length to Insert
23227 * a-coinve.ads, a-coinve.adb: Stream attribute procedures are declared
23228 as not null access.
23229 Explicit raise statements now include an exception message.
23230 (operator "&"): handle potential overflow for large index types
23231 (Insert): removed Contraint_Error when using large index types
23232 (Insert_Space): removed Constraint_Error for large index types
23233 (Length): moved constraint check from Length to Insert
23235 2006-02-17 Robert Dewar <dewar@adacore.com>
23237 * s-wchcnv.adb: Document handling of [ on output (we do not change
23238 this to ["5B"] and the new comments say why not.
23241 Add note for -gnatVo that this now includes the cases of type
23242 conversions and qualified expressions.
23243 Add comments on handling of brackets encoding for Text_IO
23245 2006-02-17 Ramon Fernandez <fernandez@adacore.com>
23246 Thomas Quinot <quinot@adacore.com>
23247 Robert Dewar <dewar@adacore.com>
23248 Javier Miranda <miranda@adacore.com>
23250 * expander.adb: Fix typo in comment
23252 * exp_pakd.adb: Fix typo
23253 Minor comment reformatting.
23255 * g-dyntab.adb: Minor reformatting
23257 * exp_ch6.adb (Register_Interface_DT_Entry): Traverse the list of
23258 aliased subprograms to look for the abstract interface subprogram.
23260 2006-02-16 Eric Botcazou <ebotcazou@adacore.com>
23262 * env.c (__gnat_setenv): Use size_t.
23263 (__gnat_unsetenv): Likewise.
23264 (__gnat_clearenv): Likewise.
23266 2006-02-16 Arnaud Charlet <charlet@adacore.com>
23268 * opt.ads (Ada_Version_Default): Set to Ada 2005 by default.
23270 2006-02-13 Arnaud Charlet <charlet@adacore.com>
23272 * a-intnam-os2.ads, a-intnam-unixware.ads, g-soccon-unixware.ads,
23273 g-soliop-unixware.ads, i-os2err.ads, i-os2lib.adb, i-os2lib.ads,
23274 i-os2syn.ads, i-os2thr.ads, s-intman-irix-athread.adb,
23275 s-osinte-aix-fsu.ads, s-osinte-fsu.adb, s-parame-os2.adb,
23276 s-osinte-irix-athread.ads, s-osinte-linux-fsu.ads, s-osinte-os2.adb,
23277 s-osinte-os2.ads, s-osinte-solaris-fsu.ads, s-osinte-unixware.adb,
23278 s-osinte-unixware.ads, s-osprim-os2.adb, s-taprop-irix-athread.adb,
23279 s-taprop-os2.adb, s-tasinf-irix-athread.adb, s-tasinf-irix-athread.ads,
23280 s-taspri-os2.ads, system-os2.ads, system-unixware.ads: Removed,
23283 2006-02-13 Jose Ruiz <ruiz@adacore.com>
23285 * a-taster.adb (Current_Task_Fallback_Handler): Document why explicit
23286 protection against race conditions is not needed.
23287 (Set_Dependents_Fallback_Handler): Add mutual exclusive access to the
23289 (Set_Specific_Handler): Add mutual exclusive access to the specific
23291 (Specific_Handler): Add mutual exclusive access for retrieving the
23294 * s-tarest.adb (Task_Wrapper): Add mutual exclusive access to the fall
23297 * s-taskin.ads (Common_ATCB): Remove pragma Atomic for
23298 Fall_Back_Handler and Specific_Handler.
23300 * s-tassta.adb (Task_Wrapper): Add mutual exclusive access to the task
23301 termination handlers.
23302 Set two different owerflow depending on the maximal stack size.
23304 * s-solita.adb (Task_Termination_Handler_T): Document why explicit
23305 protection against race conditions is not needed when executing the
23306 task termination handler.
23308 2006-02-13 Robert Dewar <dewar@adacore.com>
23310 * s-gloloc-mingw.adb, a-cgaaso.ads, a-stzmap.adb, a-stzmap.adb,
23311 a-stzmap.ads, a-ztcoio.adb, a-ztedit.adb, a-ztedit.ads, a-ztenau.adb,
23312 a-ztenau.ads, a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
23313 a-comlin.adb, a-decima.adb, a-decima.ads, a-direio.adb, a-direio.adb,
23314 a-direio.adb, a-direio.ads, a-ngcoty.adb, a-ngcoty.ads, a-nuflra.adb,
23315 a-nuflra.ads, a-sequio.adb, a-sequio.ads, a-sequio.ads, a-storio.ads,
23316 a-stream.ads, a-ststio.adb, a-ststio.adb, a-ststio.ads, a-ststio.ads,
23317 a-stwima.adb, a-stwima.adb, a-stwima.ads, a-stwise.adb, a-teioed.adb,
23318 a-teioed.ads, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tasatt.ads,
23319 a-tideau.adb, a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
23320 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.ads, a-tiflau.adb,
23321 a-tiflau.ads, a-tiflio.adb, a-tiflio.adb, a-tiflio.ads, a-tigeau.ads,
23322 a-tiinau.adb, a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoio.adb,
23323 a-timoio.ads, a-titest.adb, a-titest.ads, a-wtcoio.adb, a-wtdeau.adb,
23324 a-wtdeau.ads, a-wtdeio.adb, a-wtdeio.ads, a-wtedit.adb, a-wtedit.adb,
23325 a-wtedit.ads, a-wtenau.adb, a-wtenau.ads, a-wtenau.ads, a-wtenio.adb,
23326 a-wtenio.ads, a-wtfiio.adb, a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads,
23327 a-wtflio.adb, a-wtflio.adb, a-wtflio.ads, a-wtgeau.ads, a-wtinau.adb,
23328 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb, a-wtmoau.ads,
23329 a-wtmoio.adb, a-wtmoio.ads, xref_lib.adb, xref_lib.ads, xr_tabls.adb,
23330 g-boubuf.adb, g-boubuf.ads, g-cgideb.adb, g-io.adb, gnatdll.adb,
23331 g-pehage.adb, i-c.ads, g-spitbo.adb, g-spitbo.ads, mdll.adb,
23332 mlib-fil.adb, mlib-utl.adb, mlib-utl.ads, prj-env.adb, prj-tree.adb,
23333 prj-tree.ads, prj-util.adb, s-arit64.adb, s-asthan.ads, s-auxdec.adb,
23334 s-auxdec.ads, s-chepoo.ads, s-direio.adb, s-direio.ads, s-errrep.adb,
23335 s-errrep.ads, s-fileio.adb, s-fileio.ads, s-finroo.adb, s-finroo.ads,
23336 s-gloloc.adb, s-gloloc.ads, s-io.adb, s-io.ads, s-rpc.adb,
23337 s-rpc.ads, s-shasto.ads, s-sequio.adb, s-stopoo.ads, s-stratt.adb,
23338 s-stratt.ads, s-taasde.adb, s-taasde.ads, s-tadert.adb, s-sequio.ads,
23339 s-taskin.adb, s-tasque.adb, s-tasque.ads, s-wchjis.ads, makegpr.adb,
23340 a-coinve.adb, a-cidlli.adb, eval_fat.adb, exp_dist.ads, exp_smem.adb,
23341 fmap.adb, g-dyntab.ads, g-expect.adb, lib-xref.ads, osint.adb,
23342 par-load.adb, restrict.adb, sinput-c.ads, a-cdlili.adb,
23343 system-vms.ads, system-vms-zcx.ads, system-vms_64.ads: Minor
23346 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
23348 * a-tasatt.adb, s-osinte-lynxos-3.adb, s-osinte-lynxos.adb,
23349 s-osinte-aix.adb, s-interr-sigaction.adb, s-asthan-vms-alpha.adb,
23350 s-interr-vms.adb, s-intman-vms.adb, s-interr-vxworks.adb,
23351 s-intman-vxworks.adb, s-asthan-vms-alpha.adb, a-ztexio.adb,
23352 a-reatim.adb, a-taside.adb, a-textio.adb, a-witeio.adb, prj-attr.adb,
23353 s-intman-irix.adb, s-intman-solaris.adb, s-intman-posix.adb,
23354 a-dynpri.adb, a-interr.adb, g-dynhta.adb, s-asthan.adb, s-interr.adb,
23355 s-pooglo.adb, s-pooloc.adb, s-poosiz.adb, s-tasren.adb, s-tasuti.adb,
23356 s-tataat.adb, s-tpobop.adb: Remove redundant with clauses.
23358 2006-02-13 Arnaud Charlet <charlet@adacore.com>
23360 * s-osinte-darwin.adb, s-osinte-darwin.ads, s-osinte-vxworks.ads,
23361 s-osinte-solaris.ads, s-osinte-linux.ads, s-osinte-freebsd.ads,
23362 s-osinte-solaris-posix.ads, s-osinte-lynxos-3.ads, s-osinte-lynxos.ads,
23363 s-osinte-tru64.ads, s-osinte-aix.ads, s-osinte-irix.ads,
23364 s-osinte-hpux-dce.ads, s-osinte-linux-hppa.ads,
23365 s-osinte-linux-alpha.ads, s-inmaop-posix.adb (sigset_t_ptr): Removed,
23366 replaced by anonymous access type.
23367 (pthread_sigmask): Now take an access sigset_t
23369 * s-osinte-hpux.ads: Ditto.
23370 (pthread_mutex_t, pthread_cond_t): Update definitions to support
23371 properly 32 and 64 bit ABIs.
23373 2006-02-13 Pascal Obry <obry@adacore.com>
23375 * s-taprop-posix.adb, s-taprop-vxworks.adb, s-taprop-tru64.adb,
23376 s-taprop-lynxos.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
23377 s-taprop-linux.adb, s-taprop-solaris.adb,
23378 s-taprop-vms.adb (Create_Task): Remove task adjustment code. This
23379 adjustement is already done when calling this routine.
23381 2006-02-13 Pascal Obry <obry@adacore.com>
23383 * system-mingw.ads (Underlying_Priorities): Update the priority mapping
23384 table to take advantage of the 16 priority levels available on Windows
23385 2000 and XP. On NT4 there are only 7 priority levels, this is properly
23386 supported by this new mapping.
23388 2006-02-13 Nicolas Setton <setton@adacore.com>
23390 * adadecode.h, adadecode.c: (__gnat_decode): Improve support of types.
23391 (get_encoding): New subprogram. Extracts the encodings from an encoded
23394 2006-02-13 Pascal Obry <obry@adacore.com>
23395 Nicolas Roche <roche@adacore.com>
23396 Arnaud Charlet <charlet@adacore.com>
23398 * adaint.h, adaint.c (DIR_SEPARATOR): Use _T() macro for Unicode
23400 (__gnat_try_lock): Add unicode support by using a specific section on
23402 (__gnat_get_current_dir): Idem.
23403 (__gnat_open_read): Idem.
23404 (__gnat_open_rw): Idem.
23405 (__gnat_open_create): Idem.
23406 (__gnat_create_output_file): Idem.
23407 (__gnat_open_append): Idem.
23408 (__gnat_open_new): Idem.
23409 (__gnat_file_time_name): Idem.
23410 (__gnat_set_file_time_name): Idem.
23411 (__gnat_stat): Idem.
23412 (win32_no_block_spawn): Idem.
23413 (__gnat_locate_exec_on_path): Idem.
23414 (__gnat_opendir): New routine.
23415 (__gnat_closedir): Idem.
23416 (__gnat_readdir): Add new parameter length (pointer to int). Update
23417 implementation to use it and add specific Win32 code for Unicode
23419 (__gnat_get_env_value_ptr): Remove. Replaced by __gnat_getenv in env.c
23420 (__gnat_set_env_value): Remove. Replaced by __gnat_setenv in env.c
23421 (convert_addresses): Do not define this dummy routine on VMS.
23423 * mingw32.h (GNAT_UNICODE_SUPPORT): New definition, if set the GNAT
23424 runtime Unicode support will be activated.
23425 (S2WS): String to Wide-String conversion. This version just copy a
23426 string in non Unicode version.
23427 (WS2S): Wide-String to String conversion. This version just copy a
23428 string in non Unicode version.
23430 * g-dirope.adb: (Close): Now import __gnat_closedir from adaint.c.
23431 (Open): Now import __gnat_opendir from adaint.c.
23432 (Read): Change the implementation to support unicode characters. It is
23433 not possible to use strlen() on Windows as this version supports only
23434 standard ASCII characters. So the length of the directory entry is now
23435 returned from the imported __gnat_readdir routine.
23436 Update copyright notice.
23438 * s-crtl-vms64.ads, s-crtl.ads: (closedir): Moved to adaint.c.
23439 (opendir): Moved to adaint.c.
23441 * g-os_lib.adb (Copy_Time_Stamp): Fix off-by-one range computation.
23442 (Get_Directory): Fix wrong indexing.
23443 (Getenv): replace __gnat_get_env_value_ptr from adaint.c by
23444 __gnat_getenv from env.c
23445 (Setenv): replace __gnat_set_env_value from adaint.c by __gnat_setenv
23448 * env.h, env.c: New file.
23450 * s-scaval.adb (Initialize): Replace __gnat_get_env_value_ptr from
23451 adaint.c by __gnat_getenv from env.c
23453 * s-shasto.adb (Initialize): replace __gnat_get_env_value_ptr from
23454 adaint.c by __gnat_getenv from env.c
23456 * Make-lang.in: Add env.o in the list of C object needed by gnat1
23458 Update dependencies.
23460 2006-02-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
23461 Olivier Hainque <hainque@adacore.com>
23462 Eric Botcazou <ebotcazou@adacore.com>
23464 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): Deleted.
23466 * gigi.h (value_factor_p): Add prototype and description, now public.
23468 * decl.c (gnat_to_gnu_field): Don't attempt BLKmode to integral type
23469 promotion for field with rep clause if the associated size was proven
23471 Expand comments describing attempts to use a packable type.
23472 (gnat_to_gnu_entity) <E_Signed_Integer_Subtype,
23473 E_Floating_Point_Subtype>: Inherit alias set of what we are making a
23474 subtype of to ensure conflicts amongst all subtypes in a hierarchy,
23475 necessary since these are not different types and pointers may
23476 actually designate any subtype in this hierarchy.
23477 (gnat_to_gnu_entity, case E_Record_Type): Always make fields for
23478 discriminants but put them into record only if not Unchecked_Union;
23479 pass flag to components_to_record showing Unchecked_Union.
23480 (make_dummy_type): Use UNION_TYPE only if Unchecked_Union and no
23481 components before variants; don't set TYPE_UNCHECKED_UNION_P.
23482 (components_to_record): New argument UNCHECKED_UNION.
23483 Remove special case code for Unchecked_Union and instead use main code
23484 with small changes.
23487 (gnat_to_gnu_entity) <E_Variable>: Do not initialize the aligning
23488 variable with the expression being built, only its inner field.
23490 * trans.c (Handled_Sequence_Of_Statements_to_gnu): Remove call to
23491 emit_sequence_entry_statements.
23492 (emit_sequence_entry_statements, body_with_handlers_p): Delete.
23493 (establish_gnat_vms_condition_handler): Move before
23494 Subprogram_Body_to_gnu.
23495 (Subprogram_Body_to_gnu): On VMS, establish_gnat_vms_condition_handler
23496 for a subprogram if it has a foreign convention or is exported.
23497 (Identifier_to_gnu): Manually unshare the DECL_INITIAL tree when it is
23498 substituted for a CONST_DECL.
23499 (tree_transform, case N_Aggregate): Remove code for UNION_TYPE and pass
23500 Etype to assoc_to_constructor.
23501 (assoc_to_constructor): New argument, GNAT_ENTITY; use it to ignore
23502 discriminants of Unchecked_Union.
23503 (TARGET_ABI_OPEN_VMS): Define to 0 if not defined, so that later uses
23504 don't need cluttering preprocessor directives.
23505 (establish_gnat_vms_condition_handler): New function. Establish the GNAT
23506 condition handler as current in the compiled function.
23507 (body_with_handlers_p): New function. Tell whether a given sequence of
23508 statements node is attached to a package or subprogram body and involves
23509 exception handlers possibly nested within inner block statements.
23510 (emit_sequence_entry_statements): New function, to emit special
23511 statements on entry of sequences when necessary. Establish GNAT
23512 condition handler in the proper cases for VMS.
23513 (Handled_Sequence_Of_Statements_to_gnu): Start block code with
23514 emit_sequence_entry_statements.
23516 * utils2.c (find_common_type): If both input types are BLKmode and
23517 have a constant size, use the smaller one.
23518 (build_simple_component_ref): Also match if FIELD and NEW_FIELD are
23521 * utils.c (value_factor_p): Make public, to allow uses from other gigi
23523 (create_type_decl): Do not set the flag DECL_IGNORED_P for dummy types.
23524 (convert, case UNION_TYPE): Remove special treatment for unchecked
23528 (update_pointer_to): Update variants of pointer types to unconstrained
23529 arrays by attaching the list of fields of the main variant.
23531 2006-02-13 Arnaud Charlet <charlet@adacore.com>
23532 Robert Dewar <dewar@adacore.com>
23534 * a-exexpr.adb, a-exexpr-gcc.adb
23535 (Process_Raise_Exception): Removed, merged with Propagate_Exception.
23536 (Propagate_Exception): Now take extra From_Signal_Handler parameter.
23537 Remove code unused for exception propagation for the compiler itself
23538 from a-except.adb and update to still share separate packages.
23540 * a-except.ads, a-except.adb: Ditto.
23541 Add comments that this version is now used only by the compiler and
23542 other basic tools. The full version that includes the Ada 2005 stuff
23543 is in separate files a-except-2005.ads/adb. The reason is that we do
23544 not want to cause bootstrap problems with compilers not recognizing
23546 Add exception reason code PE_Implicit_Return
23547 Add new exception reason code (Null Exception_Id)
23549 * a-except-2005.adb, a-except-2005.ads: New files.
23551 * s-wchcon.ads: (Get_WC_Encoding_Method): New function.
23553 * s-wchcon.adb: New file.
23555 * Makefile.in (LIBGNAT_SRCS): Add tb-gcc.c.
23556 (traceback.o deps): Likewise.
23557 (SPARC/Solaris): Accept sparc[64|v9]-sun-solaris.
23558 Activate build of GMEM instrumentation library on VMS targets.
23559 (gnatlib-sjlj, gnatlib-zcx): Pass EH_MECHANISM to make gnatlib.
23560 Use a-except-2005.ads/adb for all run-time library builds unless
23561 specified otherwise.
23562 [VMS] (LIBGNAT_TARGET_PAIRS_AUX1,2): Rename s-parame-vms.ads to
23563 s-parame-vms-alpha.ads and add s-parame-vms-ia64.ads.
23564 Use s-parame.adb on all native platforms.
23565 Use s-parame-vxworks.adb on all vxworks platforms.
23566 Add env.c env.h in LIBGNAT_SRCS
23567 Add env.o in LIBGNAT_OBJS
23568 (GNATMAKE_OBJS): Remove ctrl_c.o object.
23569 (LIBGNAT_TARGET_PAIRS for x86-vxworks): Use an specialized version of
23570 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
23571 supports VxWorks 6 RTPs.
23572 (EXTRA_GNATRTL_NONTASKING_OBJS for x86-vxworks): Remove the use of
23573 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
23575 * types.h, types.ads (Terminate_Program): New exception
23576 Add comment on modifying multiple versions of a-except.adb when the
23577 table of exception reasons is modified.
23578 Add exception reason code PE_Implicit_Return
23579 Add new exception reason code (Null Exception_Id)
23581 * clean.adb (Initialize): Get the target parameters before checking
23582 if target is OpenVMS. Move the OpenVMS specific code here from package
23583 body elaboration code.
23585 2006-02-13 Thomas Quinot <quinot@adacore.com>
23586 Vincent Celier <celier@adacore.com>
23587 Robert Dewar <dewar@adacore.com>
23589 * ali-util.adb (Get_File_Checksum): Update to account for change in
23590 profile of Initialize_Scanner.
23592 * gprep.adb (Gnatprep): Update to account for change in profile of
23593 Initialize_Scanner.
23594 (Process_One_File): Same.
23596 * lib.adb (Get_Code_Or_Source_Unit): New subprogram factoring the
23597 common code between Get_Code_Unit and Get_Source_Unit. Reimplement
23598 that behaviour using the new Unit information recorded in the source
23599 files table, rather than going through all units every time.
23600 (Get_Code_Unit): Reimplement in terms of Get_Code_Or_Source_Unit.
23601 (Get_Source_Unit): Same.
23603 * prepcomp.adb (Parse_Preprocessing_Data_File): Update to account for
23604 change in profile of Initialize_Scanner.
23605 (Prepare_To_Preprocess): Same.
23607 * lib.ads: Fix typo in comment (templace -> template).
23609 * prj-part.adb (Parse_Single_Project): Update to account for change in
23610 profile of Initialize_Scanner.
23612 * scn.adb (Initialize_Scanner): Account for change in profile of
23613 Scng.Initialize_Scanner: set Current_Source_Unit in Scn instead of Scng.
23614 Also record the association of the given Source_File_Index to the
23615 corresponding Unit_Number_Type.
23617 * scng.ads, scng.adb (Initialize_Scanner.Set_Reserved): Remove
23619 (Initialize_Scanner): Call Scans.Initialize_Ada_Keywords.
23620 Remove Unit formal for generic scanner: this formal
23621 is only relevant to Scn (the scanner instance used to parse Ada source
23622 files), not to other instances. Update comment accordingly.
23623 (Scan): Use new function Snames.Is_Keyword_Name.
23625 * sinfo-cn.adb: Fix typo in comment.
23627 * sinput.adb (Unit, Set_Unit): Accessors for new source file attribute
23630 * sinput.ads (Source_File_Record): New component Unit, used to capture
23631 the unit identifier (if any) associated to a source file.
23633 * sinput-c.adb, sinput-l.adb (Load_File): Initialize new component
23634 Unit in Source_File_Record.
23636 * sinput-p.adb (Source_File_Is_Subunit): Update to account for change
23637 in profile of Initialize_Scanner.
23639 * scans.adb (Initialize_Ada_Keywords): New procedure
23641 * scans.ads (Initialize_Ada_Keywords): New procedure to initialize the
23642 Ada keywords in the Namet table, without the need to call
23643 Initialize_Scanner.
23645 * snames.adb: Add pragma Ada_2005 (synonym for Ada_05)
23646 (Is_Keyword_Name): New function
23648 * snames.ads: Add subtype Configuration_Pragma_Names
23649 Add pragma Ada_2005 (synonym for Ada_05)
23650 (Is_Keyword_Name): New function
23652 * snames.h: Add pragma Ada_2005 (synonym for Ada_05)
23654 2006-02-13 Arnaud Charlet <charlet@adacore.com>
23656 * a-stwisu.adb, a-strsup.adb, a-stzsup.adb (Super_Slice): Fix slice
23659 * a-stwima.adb (To_Set): Add extra check when N = 0.
23661 * g-regpat.adb: (Match_Simple_Operator): Avoid possible overflow.
23663 2006-02-13 Arnaud Charlet <charlet@adacore.com>
23665 * s-parame-mingw.adb, s-parame-linux.adb,
23666 s-parame-solaris.adb: Removed, replaced by s-parame.adb
23668 * s-parame-vxworks.ads: Fix typo.
23670 * s-parame-vxworks.adb: New file.
23672 * s-parame.adb: Version now used by all native platforms.
23673 (Default_Stack_Size): Use 2 megs for default stack size and use
23674 __gl_default_stack_size when available.
23675 (Minimum_Stack_Size): Use 12K.
23677 * s-taprop-mingw.adb: Set default stack size linker switch to 2megs.
23678 (Create_Task): Refine implementation taking advantage of the XP stack
23679 size support. On XP, we now create the thread using the flag
23680 STACK_SIZE_PARAM_IS_A_RESERVATION.
23682 * s-osinte-mingw.ads (Stack_Size_Param_Is_A_Reservation): New constant.
23684 * sysdep.c (__gnat_is_windows_xp): New routine, returns 1 on Windows
23685 XP and 0 on older Windows versions.
23687 * interfac-vms.ads: Removed, no longer used.
23689 2006-02-13 Matthew Heaney <heaney@adacore.com>
23691 * a-rbtgso.adb, a-crbtgo.adb, a-crbtgk.adb, a-coorse.adb,
23692 a-cohama.adb, a-ciorse.adb, a-cihama.adb, a-cihase.adb,
23693 a-cohase.adb: All explicit raise statements now include an exception
23696 * a-ciormu.ads, a-ciormu.adb, a-coormu.ads, a-coormu.adb
23697 (Update_Element_Preserving_Key): renamed op to just Update_Element.
23698 Explicit raise statements now include an exception message
23700 * a-cihase.ads, a-cohase.ads: Removed comment.
23702 * a-stboha.ads, a-stboha.adb, a-stfiha.ads, a-envvar.adb,
23703 a-envvar.ads, a-swbwha.ads, a-swbwha.adb, a-swfwha.ads, a-szbzha.ads,
23704 a-szbzha.adb, a-szfzha.ads: New files.
23706 2006-02-13 Matthew Heaney <heaney@adacore.com>
23708 * a-cgcaso.adb, a-cgaaso.adb: Implemented using heapsort instead of
23711 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
23713 * lang.opt: Wvariadic-macros: New option.
23714 Wold-style-definition: Likewise.
23715 Wmissing-format-attribute: Likewise.
23717 * misc.c (gnat_handle_option): New cases for -Wvariadic-macros,
23718 -Wold-style-definition and -Wmissing-format-attribute.
23720 2006-02-13 Robert Dewar <dewar@adacore.com>
23722 * a-ticoio.ads, a-ticoio.adb: Add use clause (moved here from spec)
23724 * a-coteio.ads, a-lcteio.ads, a-llctio.ads, a-scteio.ads: New files.
23726 2006-02-13 Nicolas Roche <roche@adacore.com>
23728 * a-envvar.adb, a-envvar.ads: New files.
23730 2006-02-13 Douglas Rupp <rupp@adacore.com>
23732 * s-parame-vms.ads: Renamed to s-parame-vms-alpha.ads
23734 * s-parame-vms-alpha.ads, s-parame-vms-ia64.ads: New files.
23736 2006-02-13 Pat Rogers <rogers@adacore.com>
23738 * a-rttiev.adb, a-rttiev.ads: New files.
23740 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
23742 * a-tiboio.adb, a-tiboio.ads, a-wwboio.adb,
23743 a-wwboio.ads, a-zzboio.adb, a-zzboio.ads: New files.
23745 * impunit.adb, Makefile.rtl: Added new Ada 2005 units.
23747 2006-02-13 Robert Dewar <dewar@adacore.com>
23749 * rtsfind.adb, exp_prag.adb, lib-writ.adb, par-labl.adb,
23750 sem_case.adb: Minor code reorganization (not Present should be No)
23752 2006-02-13 Geert Bosch <bosch@adacore.com>
23753 Gary Dismukes <dismukes@adacore.com>
23755 * a-tifiio.adb (Put_Digits): Test Last against To'First - 1 instead of
23756 0, since the lower bound of the actual string may be greater than one.
23759 * a-tifiio.adb (Put): Fix condition to raise Layout_Error when invalid
23760 layout is requested.
23762 2006-02-13 Vincent Celier <celier@adacore.com>
23764 * back_end.adb (Scan_Compiler_Arguments): Check if
23765 Search_Directory_Present is True and, if it is, add the argument in
23766 the source search directory path.
23768 * switch-c.adb (Scan_Front_End_Switches): Accept switch "-I". Set
23769 Search_Directory_Present to True.
23771 2006-02-13 Joel Brobecker <brobecke@adacore.com>
23773 * bindgen.adb (Gen_Main_C): declare the ensure_reference variable as
23774 volatile, to tell the compiler to preserve this variable at any level
23776 (Gen_Versions_Ada): Temporarily work around codegen bug.
23778 2006-02-13 Vincent Celier <celier@adacore.com>
23780 * gnatlink.adb (Process_Binder_File): If -shared is specified, invoke
23781 gcc to link with option -shared-libgcc.
23782 (Gnatlink): Remove duplicate switches -shared-libgcc
23784 2006-02-13 Robert Dewar <dewar@adacore.com>
23786 * gnatvsn.ads (Current_Year): New constant, used to easily update
23787 copyright on all GNAT tools.
23789 * gnatls.adb, gnatname.adb, vms_conv.adb: Add 2006 to displayed
23792 2006-02-13 Robert Dewar <dewar@adacore.com>
23794 * erroutc.ads, erroutc.adb (Set_Message_Blank): Don't insert space
23795 after hyphen (small aesthetic change useful for a range of numbers
23797 Suppress range checks for a couple of assignments which otherwise
23798 cause validity checks with validity checking turned on.
23800 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Size):
23801 Improvement in error message for object.
23802 (Rep_Item_Too_Late): Remove '!' in warning message.
23804 2006-02-13 Robert Dewar <dewar@adacore.com>
23805 Eric Botcazou <ebotcazou@adacore.com>
23807 * err_vars.ads: Suppress range checks for a couple of assignments
23808 which otherwise cause validity checks with validity checking turned on.
23811 * errout.adb (Error_Msg_Internal): Do not suppress warning messages.
23812 Make message unconditional if it is a warning.
23813 (Error_Msg_NEL): Always output warning messages.
23814 Suppress range checks for a couple of assignments which otherwise
23815 cause validity checks with validity checking turned on.
23817 * errout.ads (Message Insertion Characters): Document that '!' is
23818 implied by '?' in error messages.
23820 * gnat1drv.adb: (Bad_Body): Remove '!' in warning message.
23821 (Gnat1drv): Use a goto to end of main subprogram instead of
23822 Exit_Program (E_Success) so that finalization can occur normally.
23824 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
23826 * s-stchop.adb (Stack_Check): Raise Storage_Error if the argument has
23829 2006-02-13 Vincent Celier <celier@adacore.com>
23831 * a-direct.adb (Duration_To_Time, OS_Time_To_Long_Integer): New
23832 Unchecked_Conversion functions.
23833 (Modification_Time): Use direct conversion of OS_Time to Calendar time
23834 when OpenVMS returns False.
23836 * a-dirval-mingw.adb, a-dirval-vms.adb, a-dirval.ads,
23837 a-dirval.adb (OpenVMS): New Boolean function
23839 2006-02-13 Ed Schonberg <schonberg@adacore.com>
23840 Thomas Quinot <quinot@adacore.com>
23842 * checks.adb (Build_Discriminant_Checks): If the expression being
23843 checks is an aggregate retrieve the values of its discriminants to
23844 generate the check, rather than creating a temporary and a reference
23846 (Apply_Access_Check): Rewritten to handle new Is_Known_Null flag
23847 (Install_Null_Excluding_Check): Ditto
23848 (Selected_Length_Checks): Build actual subtype for the original Ck_Node,
23849 not for the renamed object, so that the actual itype is attached in the
23852 2006-02-13 Robert Dewar <dewar@adacore.com>
23853 Vincent Celier <celier@adacore.com>
23855 * debug.adb: Eliminate numeric switches for binder/gnatmake
23857 * switch-m.adb (Normalize_Compiler_Switches): Record numeric debug
23858 switches for the compiler.
23859 (Scan_Make_Switches): Do not allow numeric debug switches for gnatmake
23860 (Scan_Make_Switches): When failing with an illegal switch, output an
23861 error message with the full switch.
23862 Eliminate numeric switches for binder/gnatmake
23864 * switch.ads, switch.adb (Bad_Switch): New procedure
23866 * switch-b.adb (Scan_Binder_Switches): Do not accept combined switches.
23867 Remove 0-9 as debug flag character possibilities
23868 -d is now controlling the primary stack size when its value is a
23869 positive. Also add checks against invalid values, and support for kb,
23870 mb. Ditto for -D switch.
23872 2006-02-13 Robert Dewar <dewar@adacore.com>
23873 Serguei Rybin <rybin@adacore.com>
23875 * opt.ads opt.adb: Add Ada_Version_Explicit_Config along with
23876 save/restore routines.
23877 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
23878 were not always properly handled previously.
23879 Since we are changing the tree format anyway, also get rid of the
23880 junk obsolete Immediate_Errors flag.
23881 (Tree_Read): Change the way of reading Tree_Version_String - now we
23882 read the version string from the tree even if its length is not the
23883 same as the length of the version string computed from Gnatvsn.
23884 (Search_Directory_Present): New Boolean flag for the compiler.
23885 Define Tree_Version_String as a dynamic string.
23886 (Default_Stack_Size): new variable, used to handle switch -d.
23889 For pragma Ada_2005, remove stuff about setting Ada_Version_Explicit
23890 only for main unit.
23891 Add pragma Ada_2005 (synonym for Ada_05)
23892 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
23893 were not always properly handled previously.
23895 * directio.ads, ioexcept.ads, sequenio.ads, text_io.ads: Change
23896 explicit Ada_95 to Ada_2005.
23898 2006-02-13 Javier Miranda <miranda@adacore.com>
23899 Robert Dewar <dewar@adacore.com>
23900 Ed Schonberg <schonberg@adacore.com>
23902 * einfo.ads, einfo.adb (First_Tag_Component): Protect the frontend
23903 against errors in the source program: a private types for which the
23904 corresponding full type declaration is missing and pragma CPP_Virtual
23906 (Is_Unchecked_Union): Check flag on Implementation_Base_Type.
23907 (Is_Known_Null): New flag
23908 (Has_Pragma_Pure): New flag
23909 (No_Return): Present in all entities, set only for procedures
23910 (Is_Limited_Type): A type whose ancestor is an interface is limited if
23911 explicitly declared limited.
23912 (DT_Offset_To_Top_Func): New attribute that is present in E_Component
23913 entities. Only used for component marked Is_Tag. If present it stores
23914 the Offset_To_Top function used to provide this value in tagged types
23915 whose ancestor has discriminants.
23917 * exp_ch2.adb: Update status of new Is_Known_Null flag
23919 * sem_ch7.adb: Maintain status of new Is_Known_Null flag
23921 * sem_cat.adb (Get_Categorization): Don't treat function as Pure in
23922 the categorization sense if Is_Pure was set by pragma Pure_Function.
23924 2006-02-13 Quentin Ochem <ochem@adacore.com>
23925 Olivier Hainque <hainque@adacore.com>
23927 * bindusg.adb: Updated documentation for -d and -D switches.
23929 * raise.h (__gnat_set_globals): added new parameter for
23930 Default_Stack_Size.
23932 * init.c (__gnat_adjust_context_for_raise) <alpha-vms case>: Implement.
23933 (__gnat_handle_vms_condition): Adjust context before raise.
23934 (__gnat_install_handler): Restore the global vector setup for GCC
23935 versions before 3.4, as the frame based circtuitry is not available
23937 (__gnat_set_globals): added a parameter default_stack_size
23938 (__gl_default_stack_size): new variable.
23940 2006-02-13 Ed Schonberg <schonberg@adacore.com>
23942 * exp_aggr.adb (Build_Array_Aggr_Code): Rename variable
23943 "Others_Mbox_Present" to "Others_Box_Present" because the mbox concept
23944 does not exist in the Ada RM.
23945 (Compatible_Int_Bounds): Determine whether two integer range bounds
23946 are of equal length and have the same start and end values.
23947 (Is_Int_Range_Bounds): Determine whether a node is an integer range.
23948 (Build_Record_Aggr_Code): Perform proper sliding of a nested array
23949 aggregate when it is part of an object declaration.
23950 (Build_Record_Aggr_Code) If the aggregate ttype is a derived type that
23951 constrains discriminants of its parent, add explicitly the discriminant
23952 constraints of the ancestor by retrieving them from the
23953 stored_constraint of the parent.
23955 2006-02-13 Robert Dewar <dewar@adacore.com>
23957 * exp_attr.adb (Expand_N_Attribute_Reference, case Mechanism_Code): If
23958 attribute Mechanism_Code is applied to renamed subprogram, modify
23959 prefix to point to base subprogram.
23960 Max/Min attributes now violate Restriction No_Implicit_Conditionals
23962 * sinfo.ads: Document that Mechanism_Code cannot be applied to
23963 renamed subprograms so that the front-end must replace the prefix
23966 2006-02-13 Javier Miranda <miranda@adacore.com>
23967 Gary Dismukes <dismukes@adacore.com>
23969 * exp_ch3.adb (Component_Needs_Simple_Initialization): Add check for
23970 availability of RE_Interface_Tag.
23971 (Build_Initialization_Call): Fix wrong access to the discriminant value.
23972 (Freeze_Record_Type): Do not generate the tables associated with
23973 timed and conditional dispatching calls through synchronized
23974 interfaces if compiling under No_Dispatching_Calls restriction.
23975 When compiling for Ada 2005, for a nonabstract
23976 type with a null extension, call Make_Controlling_Function_Wrappers
23977 and insert the wrapper function declarations and bodies (the latter
23978 being appended as freeze actions).
23979 (Predefined_Primitive_Bodies): Do not generate the bodies of the
23980 predefined primitives associated with timed and conditional
23981 dispatching calls through synchronized interfaces if we are
23982 compiling under No_Dispatching_Calls.
23983 (Build_Init_Procedure): Use RTE_Available to check if a run-time
23984 service is available before generating a call.
23985 (Make_Controlling_Function_Wrappers): New procedure.
23986 (Expand_N_Full_Type_Declaration): Create a class-wide master for
23987 access-to-limited-interfaces because they can be used to reference
23988 tasks that implement such limited interface.
23989 (Build_Offset_To_Top_Functions): Build the tree corresponding to the
23990 procedure spec and body of the Offset_To_Top function that is generated
23991 when the parent of a type with discriminants has secondary dispatch
23993 (Init_Secondary_Tags): Handle the case in which the parent of the type
23994 containing secondary dispatch tables has discriminants to generate the
23995 correct arguments to call Set_Offset_To_Top.
23996 (Build_Record_Init_Proc): Add call to Build_Offset_To_Top_Functions.
23998 * a-tags.ads, a-tags.adb: (Check_Index): Removed.
23999 Add Wide_[Wide_]Expanded_Name.
24000 (Get_Predefined_Prim_Op_Address): New subprogram that provides exactly
24001 the same functionality of Get_Prim_Op_Address but applied to predefined
24002 primitive operations because the pointers to the predefined primitives
24003 are now saved in a separate table.
24004 (Parent_Size): Modified to get access to the separate table of primitive
24005 operations or the parent type.
24006 (Set_Predefined_Prim_Op_Address): New subprogram that provides the same
24007 functionality of Set_Prim_Op_Address but applied to predefined primitive
24009 (Set_Signature): New subprogram used to store the signature of a DT.
24010 (Displace): If the Offset_To_Top value is not static then call the
24011 function generated by the expander to get such value; otherwise use
24012 the value stored in the table of interfaces.
24013 (Offset_To_Top): The type of the actual has been changed to Address to
24014 give the correct support to tagged types with discriminants. In this
24015 case this value is stored just immediately after the tag field.
24016 (Set_Offset_To_Top): Two new formals have been added to indicate if the
24017 offset_to_top value is static and hence pass this value to the run-time
24018 to store it in the table of interfaces, or else if this value is dynamic
24019 and then pass to the run-time the address of a function that is
24020 generated by the expander to provide this value for each object of the
24023 * rtsfind.ads (Default_Prin_Op_Count): Removed.
24024 (Default_Prim_Op_Count): New entity
24025 (Get_Predefined_Prim_Op_Address): New entity
24026 (Set_Predefined_Prim_Op_Address): New entity
24027 (RE_Set_Signature): New entity
24029 2006-02-13 Thomas Quinot <quinot@adacore.com>
24030 Ed Schonberg <schonberg@adacore.com>
24032 * exp_ch4.adb (Expand_Allocator_Expression): Pass Allocator => True to
24033 Make_Adjust_Call done for a newly-allocated object.
24035 * exp_ch7.ads, exp_ch7.adb (Expand_Cleanup_Actions): If the statements
24036 in a subprogram are wrapped in a cleanup block, indicate that the
24037 subprogram contains an inner block with an exception handler.
24038 (Make_Adjust_Call): New Boolean formal Allocator indicating whether the
24039 Adjust call is for a newly-allocated object. In that case we must not
24040 assume that the finalization list chain pointers are correct (since they
24041 come from a bit-for-bit copy of the original object's pointers) so if
24042 the attach level would otherwise be zero (no change), we set it to 4
24043 instead to cause the pointers to be reset to null.
24045 * s-finimp.adb (Attach_To_Final_List): New attach level: 4, meaning
24046 reset chain pointers to null.
24048 2006-02-13 Ed Schonberg <schonberg@adacore.com>
24050 * exp_ch5.adb (Expand_Assign_Array): If the right-hand side is a
24051 string, and the context requires a loop for the assignment (e.g.
24052 because the left-hand side is packed), generate a unique name for the
24053 temporary that holds the string, to prevent spurious name clashes.
24055 2006-02-13 Ed Schonberg <schonberg@adacore.com>
24056 Javier Miranda <miranda@adacore.com>
24057 Robert Dewar <dewar@adacore.com>
24058 Gary Dismukes <dismukes@adacore.com>
24060 * exp_ch6.adb (Expand_Inlined_Call): Handle calls to functions that
24061 return unconstrained arrays.
24063 (Expand_Call): An indirect call through an access parameter of a
24064 protected operation is not a protected call.
24065 Add circuit to raise CE in Ada 2005 mode following call
24066 to Raise_Exception.
24067 (Register_DT_Entry): Do nothing if
24068 the run-time does not give support to abstract interfaces.
24069 (Freeze_Subprogram): In case of dispatching operations, do not generate
24070 code to register the operation in the dispatch table if the source
24071 is compiled with No_Dispatching_Calls.
24072 (Register_Predefined_DT_Entry): Generate code that calls the new
24073 run-time subprogram Set_Predefined_Prim_Op_Address instead of
24074 Set_Prim_Op_Address.
24076 * sem_ch5.adb (Analyze_Assignment_Statement): Do not apply length checks
24077 on array assignments if the right-hand side is a function call that has
24078 been inlined. Check is performed on the assignment in the block.
24079 (Process_Bounds): If bounds and range are overloaded, apply preference
24080 rule for root operations to disambiguate, and diagnose true ambiguity.
24081 (Analyze_Assignment): Propagate the tag for a class-wide assignment with
24082 a tag-indeterminate right-hand side even when Expander_Active is True.
24083 Needed to ensure that dispatching calls to T'Input are allowed and
24084 get the tag of the target class-wide object.
24086 * sem_ch6.adb (New_Overloaded_Entity): Handle entities that override
24087 an inherited primitive operation that already overrides several
24088 abstract interface primitives. For transitivity, the new entity must
24089 also override all the abstract interface primitives covered by the
24090 inherited overriden primitive.
24091 Emit warning if new entity differs from homograph in same scope only in
24092 that one has an access parameter and the other one has a parameter of
24093 a general access type with the same designated type, at the same
24094 position in the signature.
24095 (Make_Inequality_Operator): Use source locations of parameters and
24096 subtype marks from corresponding equality operator when creating the
24097 tree structure for the implicit declaration of "/=". This does not
24098 change anything in behaviour except that the decoration of the
24099 components of the subtree created for "/=" allows ASIS to get the
24100 string images of the corresponding identifiers.
24101 (Analyze_Return_Statement): Remove '!' in warning message.
24102 (Check_Statement_Sequence): Likewise.
24103 (Analyze_Subprogram_Body): For an access parameter whose designated type
24104 is an incomplete type imported through a limited_with clause, use the
24105 type of the corresponding formal in the body.
24106 (Check_Returns): Implicit return in No_Return procedure now raises
24107 Program_Error with a compile time warning, instead of beging illegal.
24108 (Has_Single_Return): Function returning unconstrained type cannot be
24109 inlined if expression in unique return statement is not an identifier.
24110 (Build_Body_To_Inline): It is possible to inline a function call that
24111 returns an unconstrained type if all return statements in the function
24112 return the same local variable. Subsidiary procedure Has_Single_Return
24113 verifies that the body conforms to this restriction.
24115 * sem_res.adb (Resolve_Equality_Op): If the operands do not have the
24116 same type, and one of them is of an anonymous access type, convert
24117 the other operand to it, so that this is a valid binary operation for
24119 (Resolve_Type_Conversion): Handle subtypes of protected types and
24120 task types when accessing to the corresponding record type.
24121 (Resolve_Allocator): Add '\' in 2-line warning message.
24122 Remove '!' in warning message.
24123 (Resolve_Call): Add '\' in 2-line warning message.
24124 (Valid_Conversion): Likewise.
24125 (Resolve_Overloaded_Selected_Component): If disambiguation succeeds, the
24126 resulting type may be an access type with an implicit dereference.
24127 Obtain the proper component from the designated type.
24128 (Make_Call_Into_Operator): Handle properly a call to predefined equality
24129 given by an expanded name with prefix Standard, when the operands are
24130 of an anonymous access type.
24131 (Check_Fully_Declared_Prefix): New procedure, subsidiary of Resolve_
24132 Explicit_Dereference and Resolve_Selected_Component, to verify that the
24133 prefix of the expression is not of an incomplete type. Allows full
24134 diagnoses of all semantic errors.
24135 (Resolve_Actuals): If the actual is an allocator whose directly
24136 designated type is a class-wide interface we build an anonymous
24137 access type to use it as the type of the allocator. Later, when
24138 the subprogram call is expanded, if the interface has a secondary
24139 dispatch table the expander will add a type conversion to force
24140 the displacement of the pointer.
24141 (Resolve_Call): If a function that returns an unconstrained type is
24142 marked Inlined_Always and inlined, the call will be inlined and does
24143 not require the creation of a transient scope.
24144 (Check_Direct_Boolean_Op): Removed
24145 (Resolve_Comparison_Op): Remove call to above
24146 (Resolve_Equality_Op): Remove call to above
24147 (Resolve_Logical_Op): Inline above, since this is only call.
24148 (Valid_Conversion): Handle properly conversions between arrays of
24149 convertible anonymous access types.
24152 (Set_Literal_String_Subtype): If the lower bound is not static, wrap
24153 the literal in an unchecked conversion, because GCC 4.x needs a static
24154 value for a string bound.
24156 2006-02-13 Ed Schonberg <schonberg@adacore.com>
24157 Hristian Kirtchev <kirtchev@adacore.com>
24159 * exp_ch9.adb (Expand_N_Protected_Type_Declaration): When creating the
24160 components of the corresponding record, take into account component
24161 definitions that are access definitions.
24162 (Expand_N_Asynchronous_Select): A delay unit statement rewritten as a
24163 procedure is not considered a dispatching call and will be expanded
24166 2006-02-13 Javier Miranda <miranda@adacore.com>
24168 * exp_disp.ads, exp_disp.adb (Expand_Dispatching_Call): If the
24169 controlling argument of the dispatching call is an abstract interface
24170 class-wide type then we use it directly.
24171 Check No_Dispatching_Calls restriction.
24172 (Default_Prim_Op_Position): Remove the code that looks for the last
24173 entity in the list of aliased subprograms. This code was wrong in
24175 (Fill_DT_Entry): Add assertion to avoid the use of this subprogram
24176 when the source is compiled with the No_Dispatching_Calls restriction.
24177 (Init_Predefined_Interface_Primitives): No need to inherit primitives
24178 if we are compiling with restriction No_Dispatching_Calls.
24179 (Make_Disp_XXX): Addition of assertion to avoid the use of all these
24180 subprograms if we are compiling under No_Dispatching_Calls restriction.
24181 (Make_DT): Generate a dispatch table with a single dummy entry if
24182 we are compiling with the No_Dispatching_Calls restriction. In
24183 addition, in this case we don't generate code that calls to the
24184 following run-time subprograms: Set_Type_Kind, Inherit_DT.
24185 (Make_Select_Specific_Data_Table): Add assertion to avoid the use
24186 of this subprogram if compiling with the No_Dispatching_Calls
24188 (Expand_Type_Conversion): Instead of using the actual parameter,
24189 the argument passed as parameter to the conversion function was
24190 erroneously referenced by the expander.
24191 (Ada_Actions): Addition of Get_Predefined_Prim_Op_Address,
24192 Set_Predefined_Primitive_Op_Address and Set_Signature.
24193 (Expand_Dispatching_Call): Generate call to
24194 Get_Predefined_Prim_Op_Address for predefined primitives.
24195 (Fill_DT_Entry): Generate call to Set_Predefined_Prim_Op_Address for
24196 predefined primitives.
24197 (Make_DT, Make_Secondary_DT): If the tagged type has no user defined
24198 primitives we reserve one dummy entry to ensure that the tag does not
24199 point to some memory that is associated with some other object. In
24200 addition, remove all the old code that generated the assignments
24201 associated with the signature of the dispatch table and replace them
24202 by a call to the new subprogram Set_Signature.
24203 (Set_All_DT_Position): Change the algorithm because now we have a
24204 separate dispatch table associated with predefined primitive operations.
24205 (Expand_Interface_Conversion): In case of non-static offset_to_top
24206 add explicit dereference to get access to the object after the call
24207 to displace the pointer to the object.
24208 (Expand_Interface_Thunk): Modify the generation of the actual used
24209 in the calls to the run-time function Offset_To_Top to fulfil its
24211 (Make_DT): Add the new actuals required to call Set_Offset_To_Top.
24213 2006-02-13 Ed Schonberg <schonberg@adacore.com>
24215 * exp_dist.adb (Copy_Specification): For access parameters, copy
24216 Null_Exclusion flag, which will have been set for stream subprograms
24219 2006-02-13 Pascal Obry <obry@adacore.com>
24221 * expect.c (__gnat_expect_portable_execvp): New implementation. The
24222 previous implementation was using the C runtime spawnve routine but
24223 the corresponding wait was using directly the Win32 API. This was
24224 causing some times a lock when waiting for an event using
24225 WaitForSingleObject in __gnat_waitpid. This new implementation uses
24226 the Win32 CreateProcess routine. Avoiding mixing C runtime and Win32
24227 API fixes this problem.
24229 2006-02-13 Robert Dewar <dewar@adacore.com>
24231 * exp_intr.adb (Expand_Unc_Deallocation): Correct error of bad analyze
24234 2006-02-13 Thomas Quinot <quinot@adacore.com>
24236 * exp_pakd.ads: Fix typos in comments.
24238 * exp_pakd.adb (Convert_To_PAT_Type): For the case of a bit packed
24239 array reference that is an explicit dereference, mark the converted
24240 (packed) array reference as analyzed to prevent a forthcoming
24241 reanalysis from resetting its type to the original (non-packed) array
24244 2006-02-13 Ed Schonberg <schonberg@adacore.com>
24245 Javier Miranda <miranda@adacore.com>
24246 Eric Botcazou <ebotcazou@adacore.com>
24248 * exp_util.ads, exp_util.adb (Find_Prim_Op,
24249 Is_Predefined_Primitive_Operation): When
24250 searching for the predefined equality operator, verify that operands
24251 have the same type.
24252 (Is_Predefined_Dispatching_Operation): Remove the code that looks
24253 for the last entity in the list of aliased subprograms. This code
24254 was wrong in case of renamings.
24255 (Set_Renamed_Subprogram): New procedure
24256 (Remove_Side_Effects): Replace calls to Etype (Exp) with use of the
24257 Exp_Type constant computed when entering this subprogram.
24258 (Known_Null): New function
24259 (OK_To_Do_Constant_Replacement): New function
24260 (Known_Non_Null): Check scope before believing Is_Known_Non_Null flag
24261 (Side_Effect_Free): An attribute reference 'Input is not free of
24262 side effect, unlike other attributes that are functions. (from code
24264 (Remove_Side_Effects): Expressions that involve packed arrays or records
24265 are copied at the point of reference, and therefore must be marked as
24266 renamings of objects.
24267 (Is_Predefined_Dispatching_Operation): Return false if the operation is
24268 not a dispatching operation.
24271 (Remove_Side_Effects): Lift enclosing type conversion nodes for
24272 elementary types in all cases.
24274 2006-02-13 Javier Miranda <miranda@adacore.com>
24276 * freeze.adb (Freeze_Entity): Handle subtypes of protected types and
24277 task types when accessing to the corresponding record type.
24278 Remove '!' in warning message.
24280 2006-02-13 Olivier Hainque <hainque@adacore.com>
24282 * g-altive.ads (VECTOR_ALIGNMENT): Set to Min (16, Max_Alignment),
24283 to avoid useless and space inefficient overalignments on targets where
24284 Max_Alignment is larger than 16.
24286 2006-02-13 Pascal Obry <obry@adacore.com>
24288 * g-catiio.adb (Sec_Number): New type used to compute the number of
24289 seconds since 1-1-1970.
24290 (Image) [Natural]: The parameter was an Integer, as we can't deal with
24291 negative numbers (years, months...) it is better to have a Natural here.
24293 (Image) [Number]: Change parameter from Long_Integer to Number.
24294 (Image): Use Number type to compute the seconds since 1-1-1970 to fix an
24295 overflow for dates past year 2038.
24297 2006-02-13 Matthew Heaney <heaney@adacore.com>
24299 * g-dyntab.adb (Index_Of): conversion from Natural can no longer raise
24302 2006-02-13 Arnaud Charlet <charlet@adacore.com>
24304 * gnatbind.adb (Scan_Bind_Arg): Replace error by warning on -M and
24306 (Gnatbind): Do not call Exit_Program (E_Success) at the end, so that
24307 finalization can occur normally.
24309 2006-02-13 Vincent Celier <celier@adacore.com>
24311 * gnatcmd.adb (Rules_Switches): New table
24312 (Add_To_Rules_Switches): New procedure
24313 (GNATCmd): For command CHECK, put all options following "-rules" in the
24314 Rules_Switches table. Append these -rules switches after the -cargs
24317 2006-02-13 Robert Dewar <dewar@adacore.com>
24319 * g-spipat.adb (Image, case PC_Assign_Imm and case PC_Assign_OnM):
24320 These two cases were generating incorrect output, and if this unit
24321 was built with checks on, generated a discriminant mismatch constraint
24324 2006-02-13 Ed Schonberg <schonberg@adacore.com>
24325 Robert Dewar <dewar@adacore.com>
24327 * lib-xref.adb (Get_Type_Reference): For a private type whose full
24328 view is an array type, indicate the component type as well, for
24329 navigation purposes.
24330 (Generate_Reference): Don't consider array ref on LHS to be a case
24331 of violating pragma Unreferenced.
24332 Do not give Ada 2005 warning except on real reference.
24334 2006-02-13 Vincent Celier <celier@adacore.com>
24336 * make.adb (Collect_Arguments_And_Compile): For VMS, when compiling the
24337 main source, add switch -mdebug-main=_ada_ so that the executable can
24338 be debugged by the standard VMS debugger.
24339 (Gnatmake): Set No_Main_Subprogram to True when there is no main
24340 subprogram, to avoid issuing -mdebug-main=_ada_ for VMS uselessly.
24341 Exit the Multi_Main_Loop when Unique_Compile is True after compilation
24342 of the last source, as the binding and linking phases are never
24344 Set all executable obsolete when rebuilding a library.
24346 * makeutl.adb (Linker_Options_Switches): Do not process empty linker
24349 2006-02-13 Javier Miranda <miranda@adacore.com>
24352 * par-ch3.adb (P_Derived_Type_Def_Or_Private_Ext_Decl): Reorganize the
24353 code to improve the error message reported when the program has
24354 declarations of abstract interface types and it is not compiled with
24355 the -gnat05 switch.
24356 (P_Access_Definition): Reorganize the code to improve the error
24357 message reported when the new Ada 2005 syntax for anonymous
24358 access types is used and the program is not compiled with the
24361 2006-02-13 Robert Dewar <dewar@adacore.com>
24363 * par-ch6.adb, style.ads, styleg.adb, styleg.ads, stylesw.adb,
24364 stylesw.ads, usage.adb, vms_data.ads: Implement -gnatyI switch
24367 2006-02-13 Javier Miranda <miranda@adacore.com>
24369 * par-endh.adb (Explicit_Start_Label): Add code to protect the parser
24370 against source containing syntax errors.
24372 2006-02-13 Vincent Celier <celier@adacore.com>
24374 * prj.adb (Reset): Initialize the first element of table Namings with
24375 the standard naming data.
24377 2006-02-13 Vincent Celier <celier@adacore.com>
24379 * prj.ads (Error_Warning): New enumeration type
24381 * prj-nmsc.ads, prj-nmsc.adb (Error_Msg): If location parameter is
24382 unknown, use the location of the project to report the error.
24383 (When_No_Sources): New global variable
24384 (Report_No_Ada_Sources): New procedure
24385 (Check): New parameter When_No_Sources. Set value of global variable
24387 (Find_Sources): Call Report_No_Ada_Sources when appropriate
24388 (Get_Sources_From_File): Ditto
24389 (Warn_If_Not_Sources): Better warning messages indicating the unit name
24392 * prj-pars.ads, prj-pars.adb (Parse): New parameter When_No_Sources.
24393 Call Prj.Proc.Process with parameter When_No_Sources.
24395 * prj-proc.ads, prj-proc.adb (Check): New parameter When_No_Sources.
24396 Call Recursive_Check with parameter When_No_Sources.
24397 (Recursive_Check): New parameter When_No_Sources. Call itself and
24398 Prj.Nmsc.Check with parameter When_No_Sources.
24399 (Process): New parameter When_No_Sources. Call Check with parameter
24401 (Copy_Package_Declarations): New procedure to copy renamed parameters
24402 and setting the location of the declared attributes to the location
24403 of the renamed package.
24404 (Process_Declarative_Items): Call Copy_Package_Declarations for renamed
24407 2006-02-13 Vincent Celier <celier@adacore.com>
24409 * prj-makr.adb (Make): Preserve the comments from the original project
24411 When removing nodes (attributes Source_Dirs, Source_Files,
24412 Source_List_File and package Naming), save the comments and attach the
24413 saved comments to the newly created nodes.
24414 Do not add a with clause for the naming package if one already exists.
24416 2006-02-13 Javier Miranda <miranda@adacore.com>
24417 Gary Dismukes <dismukes@adacore.com>
24418 Robert Dewar <dewar@adacore.com>
24420 * restrict.ads (No_Dispatching_Calls): New GNAT restriction.
24422 * sem_disp.adb (Override_Dispatching_Operation): Traverse the list of
24423 aliased entities to look for the overriden abstract interface
24425 (Is_Interface_Subprogram): Complete documentation.
24426 (Check_Dispatching_Operation): Do not generate code to register the
24427 operation in the dispatch table if the source is compiled with
24428 restriction No_Dispatching_Calls.
24429 (Override_Dispatching_Operation): Check for illegal attempt to override
24430 No_Return procedure with procedure that is not No_Return
24431 (Check_Dispatching_Call): Suppress the check for an abstract operation
24432 when the original node of an actual is a tag-indeterminate attribute
24433 call, since the attribute, which must be 'Input, can never be abstract.
24434 (Is_Tag_Indeterminate): Handle checking of tag indeterminacy of a
24435 call to the Input attribute (even when rewritten).
24436 (Propagate_Tag): Augment comment to indicate the possibility of a call
24437 to an Input attribute.
24439 * sem_disp.ads (Override_Dispatching_Operation): Moved to spec to allow
24440 calling it from Exp_Ch3.Make_Controlling_Function_Wrappers.
24442 * s-rident.ads: (No_Dispatching_Calls): New GNAT restriction.
24443 No_Wide_Characters is no longer partition-wide
24444 No_Implementation_Attributes/Pragmas are now Ada 2005 (AI-257)
24447 2006-02-13 Douglas Rupp <rupp@adacore.com>
24449 * s-auxdec-vms_64.ads (Short_Address): Wrap it in a type.
24451 2006-02-13 Javier Miranda <miranda@adacore.com>
24453 * sem_aggr.adb (Resolve_Record_Aggregate): Restructure the code that
24454 handles default-initialized components to keep separate the management
24455 of this feature but also avoid the unrequired resolution and
24456 expansion of components that do not have partially initialized
24458 (Collect_Aggr_Bounds): Add '\' in 2-line warning message.
24459 (Check_Bounds): Likewise.
24460 (Check_Length): Likewise.
24462 2006-02-13 Javier Miranda <miranda@adacore.com>
24463 Ed Schonberg <schonberg@adacore.com>
24465 * sem_attr.adb (Analyze_Attribute): In case of 'Class applied to an
24466 abstract interface type call analyze_and_resolve to expand the type
24467 conversion into the corresponding displacement of the
24468 reference to the base of the object.
24469 (Eval_Attribute, case Width): For systems where IEEE extended precision
24470 is supported, the maximum exponent occupies 4 decimal digits.
24471 (Accessibility_Message): Add '\' in 2-line warning message.
24472 (Resolve_Attribute): Likewise.
24473 (case Attribute_Access): Significantly revise checks
24474 for illegal access-to-subprogram Access attributes to properly enforce
24475 the rules of 3.10.2(32/2).
24476 Diagnose use of current instance with an illegal attribute.
24478 * sem_util.ads, sem_util.adb (Enclosing_Generic_Body): Change formal
24480 (Enclosing_Generic_Unit): New function to return a node's innermost
24481 enclosing generic declaration node.
24482 (Compile_Time_Constraint_Error): Remove '!' in warning messages.
24483 (Type_Access_Level): The accessibility level of anonymous acccess types
24484 associated with discriminants is that of the current instance of the
24485 type, and that's deeper than the type itself (AARM 3.10.2 (12.3.21)).
24486 (Compile_Time_Constraint_Error): Handle case of conditional expression.
24487 (Kill_Current_Values_For_Entity): New function
24488 (Enter_Name): Change formal type to Entity_Id
24490 2006-02-13 Hristian Kirtchev <kirtchev@adacore.com>
24491 Ed Schonberg <schonberg@adacore.com>
24492 Gary Dismukes <dismukes@adacore.com>
24494 * sem_ch10.adb (Check_Redundant_Withs): New procedure in
24495 Analyze_Compilation_Unit.
24496 Detect and warn on redundant with clauses detected in a package spec
24497 and/or body when -gnatwr is used.
24498 (Analyze_Context): Analyze config pragmas before other items
24499 (Install_Context_Items): Don't analyze config pragmas here
24500 (Install_Limited_Withed_Unit): Set limited entity of package in
24501 with_clause so that cross-reference information or warning messages on
24502 unused packages can be properly generated
24503 (Is_Visible_Through_Renamings): Return false if the limited_with_clause
24504 has Error_Posted set. Prevent infinite loops in illegal programs.
24505 (Check_Private_Child_Unit): Move test for a nonprivate with clause down
24506 to the point of the error test requiring the current unit to be private.
24507 This ensures that private with clauses are not exempted from the basic
24508 checking for being a descendant of the same library unit parent as a
24509 withed private descendant unit.
24510 (Check_Private_Limited_Withed_Unit): Revise the checking algorithm to
24511 handle private with clauses properly, as well as to account for cases
24512 where the withed unit is a public descendant of a private ancestor
24513 (in which case the current unit must be a descendant of the private
24514 ancestor's parent). The spec comments were updated accordingly. Also,
24515 the old error message in this subprogram was replaced with error
24516 messages that mirror the errors tested and reported by
24517 Check_Private_Child_Unit.
24518 Parameter and variable names improved for readability.
24519 (Install_Limited_Context_Clauses): Remove test for a withed unit being
24520 private as the precondition for calling
24521 Check_Private_Limited_Withed_Unit since that subprogram has been
24522 revised to test public units as well as private units.
24524 2006-02-13 Thomas Quinot <quinot@adacore.com>
24525 Robert Dewar <dewar@adacore.com>
24526 Ed Schonberg <schonberg@adacore.com>
24527 Javier Miranda <miranda@adacore.com>
24529 * sem_ch12.adb (Inline_Instance_Body): Remove erroneous assumption
24530 that Scope_Stack.First = 1.
24531 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
24532 were not always properly handled previously.
24533 (Formal_Entity): Complete rewrite, to handle properly some complex case
24534 with multiple levels of parametrization by formal packages.
24535 (Analyze_Formal_Derived_Type): Propagate Ada 2005 "limited" indicator
24536 to the corresponding derived type declaration for proper semantics.
24538 * sem_prag.adb (Analyze_Pragma): Remove '!' in warning message.
24539 (Check_Component): Enforce restriction on components of
24540 unchecked_unions: a component in a variant cannot contain tasks or
24542 (Unchecked_Union): Allow nested variants and multiple discriminants, to
24544 Add pragma Ada_2005 (synonym for Ada_05)
24545 Properly handle Ada_Version_Explicit and Ada_Version_Config, which
24546 were not always properly handled previously.
24547 Document that pragma Propagate_Exceptions has no effect
24548 (Analyze_Pragma, case Pure): Set new flag Has_Pragma_Pure
24549 (Set_Convention_From_Pragma): Check that if a convention is
24550 specified for a dispatching operation, then it must be
24551 consistent with the existing convention for the operation.
24552 (CPP_Class): Because of the C++ ABI compatibility, the programmer is no
24553 longer required to specify an vtable-ptr component in the record. For
24554 compatibility reasons we leave the support for the previous definition.
24555 (Analyze_Pragma, case No_Return): Allow multiple arguments
24557 * sem_ch3.ads, sem_ch3.adb (Check_Abstract_Overriding): Flag a
24558 non-overrideen inherited operation with a controlling result as
24559 illegal only its implicit declaration comes from the derived type
24560 declaration of its result's type.
24561 (Check_Possible_Deferred_Completion): Relocate the object definition
24562 node of the subtype indication of a deferred constant completion rather
24563 than directly analyzing it. The analysis of the generated subtype will
24564 correctly decorate the GNAT tree.
24565 (Record_Type_Declaration): Check whether this is a declaration for a
24566 limited derived record before analyzing components.
24567 (Analyze_Component_Declaration): Diagnose record types not explicitly
24568 declared limited when a component has a limited type.
24569 (Build_Derived_Record_Type): Code reorganization to check if some of
24570 the inherited subprograms of a tagged type cover interface primitives.
24571 This check was missing in case of a full-type associated with a private
24573 (Constant_Redeclaration): Check that the subtypes of the partial and the
24574 full view of a constrained deferred constant statically match.
24575 (Mentions_T): A reference to the current type in an anonymous access
24576 component declaration must be an entity name.
24577 (Make_Incomplete_Type_Declaration): If type is tagged, set type of
24578 class_wide type to refer to full type, not to the incomplete one.
24579 (Add_Interface_Tag_Components): Do nothing if RE_Interface_Tag is not
24580 available. Required to give support to the certified run-time.
24581 (Analyze_Component_Declaration): In case of anonymous access components
24582 perform missing checks for AARM 3.9.2(9) and 3.10.2 (12.2).
24583 (Process_Discriminants): For an access discriminant, use the
24584 discriminant specification as the associated_node_for_itype, to
24585 simplify accessibility checks.
24587 2006-02-13 Ed Schonberg <schonberg@adacore.com>
24588 Javier Miranda <miranda@adacore.com>
24590 * sem_ch4.adb (Remove_Abstract_Interpretations): Even if there are no
24591 abstract interpretations on an operator, remove interpretations that
24592 yield Address or a type derived from it, if one of the operands is an
24594 (Try_Object_Operation.Try_Primitive_Operation,
24595 Try_Object_Operation.Try_Class_Wide_Operation): Set proper source
24596 location when creating the new reference to a primitive or class-wide
24597 operation as a part of rewriting a subprogram call.
24598 (Try_Primitive_Operations): If context requires a function, collect all
24599 interpretations after the first match, because there may be primitive
24600 operations of the same type with the same profile and different return
24601 types. From code reading.
24602 (Try_Primitive_Operation): Use the node kind to choose the proper
24603 operation when a function and a procedure have the same parameter
24605 (Complete_Object_Operation): If formal is an access parameter and prefix
24606 is an object, rewrite as an Access reference, to match signature of
24607 primitive operation.
24608 (Find_Equality_Type, Find_One_Interp): Handle properly equality given
24609 by an expanded name with prefix Standard, when the operands are of an
24610 anonymous access type.
24611 (Remove_Abstract_Operations): If the operation is abstract because it is
24612 inherited by a user-defined type derived from Address, remove it as
24613 well from the set of candidate interpretations of an overloaded node.
24614 (Analyze_Membership_Op): Membership test not applicable to cpp-class
24617 2006-02-13 Bob Duff <duff@adacore.com>
24619 * sem_ch8.adb (Note_Redundant_Use): Suppress unhelpful warning about
24620 redundant use clauses.
24621 In particular, if the scope of two use clauses overlaps, but one is not
24622 entirely included in the other, we should not warn. This can happen
24623 with nested packages.
24624 (Analyze_Subprogram_Renaming): Protect the compiler against previously
24625 reported errors. The bug was reported when the compiler was built
24626 with assertions enabled.
24627 (Find_Type): If the node is a 'Class reference and the prefix is a
24628 synchronized type without a corresponding record, return the type
24631 2006-02-13 Javier Miranda <miranda@adacore.com>
24633 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Check that
24634 if this is the full-declaration associated with a private declaration
24635 that implement interfaces, then the private type declaration must be
24637 (Analyze_Single_Protected, Analyze_Single_Task): Do not mark the object
24638 as aliased. The use of the 'access attribute is not available for such
24639 object (for this purpose the object should be explicitly marked as
24640 aliased, but being an anonymous type this is not possible).
24642 2006-02-13 Ed Schonberg <schonberg@adacore.com>
24643 Robert Dewar <dewar@adacore.com>
24645 * sem_elab.adb (Same_Elaboration_Scope): A package that is a
24646 compilation unit is an elaboration scope.
24647 (Add_Task_Proc): Add '\' in 2-line warning message.
24648 (Activate_All_Desirable): Deal with case of unit with'ed by parent
24650 2006-02-13 Ed Schonberg <schonberg@adacore.com>
24651 Javier Miranda <miranda@adacore.com>
24653 * sem_type.adb (Write_Overloads): Improve display of candidate
24655 (Add_One_Interp): Do not add to the list of interpretations aliased
24656 entities corresponding with an abstract interface type that is an
24657 immediate ancestor of a tagged type; otherwise we have a dummy
24658 conflict between this entity and the aliased entity.
24659 (Disambiguate): The predefined equality on universal_access is not
24660 usable if there is a user-defined equality with the proper signature,
24661 declared in the same declarative part as the designated type.
24662 (Find_Unique_Type): The universal_access equality operator defined under
24663 AI-230 does not cover pool specific access types.
24664 (Covers): If one of the types is a generic actual subtype, check whether
24665 it matches the partial view of the other type.
24667 2006-02-13 Thomas Quinot <quinot@adacore.com>
24669 * sinput-d.adb (Write_Line): Update the Source_Index_Table after each
24670 line. This is necessary to allow In_Extended_Main_Unit to provide
24671 correct results for itypes while writing out expanded source.
24672 (Close_File): No need to update the source_index_table here since it's
24673 now done for each line.
24675 2006-02-13 Ed Schonberg <schonberg@adacore.com>
24676 Robert Dewar <dewar@adacore.com>
24678 * sprint.adb (Write_Itype): Preserve Sloc of declaration, if any, to
24679 preserve the source unit where the itype is declared, and prevent a
24681 (Note_Implicit_Run_Time_Call): New procedure
24682 (Write_Itype): Handle missing cases (E_Class_Wide_Type and
24685 * sprint.ads: Document use of $ for implicit run time routine call
24687 2006-02-13 Quentin Ochem <ochem@adacore.com>
24689 * s-stausa.adb (Initialize_Analyzer): fixed error in assignment of
24692 2006-02-13 Bob Duff <duff@adacore.com>
24694 * s-valint.adb (Scan_Integer): Call Scan_Raw_Unsigned instead of
24695 Scan_Unsigned, so we do not scan leading blanks and sign twice.
24696 Integer'Value("- 5") and Integer'Value("-+5") now correctly
24697 raise Constraint_Error.
24699 * s-vallli.adb (Scan_Long_Long_Integer): Call
24700 Scan_Raw_Long_Long_Unsigned instead of Scan_Long_Long_Unsigned, so we
24701 do not scan leading blanks and sign twice.
24702 Integer'Value("- 5") and Integer'Value("-+5") now correctly
24703 raise Constraint_Error.
24705 * s-valllu.ads, s-valllu.adb (Scan_Raw_Long_Long_Unsigned,
24706 Scan_Long_Long_Unsigned): Split out most of the processing from
24707 Scan_Long_Long_Unsigned out into
24708 Scan_Raw_Long_Long_Unsigned, so that Val_LLI can call the Raw_ version.
24709 This prevents scanning leading blanks and sign twice.
24710 Also fixed a bug: Modular'Value("-0") should raise Constraint_Error
24713 * s-valuns.ads, s-valuns.adb (Scan_Raw_Unsigned, Scan_Unsigned): Split
24714 out most of the processing from Scan_Unsigned out into
24715 Scan_Raw_Unsigned, so that Val_LLI can call the Raw_ version.
24716 This prevents scanning leading blanks and sign twice.
24718 * s-valuti.ads, s-valuti.adb (Scan_Plus_Sign): Add Scan_Plus_Sign, for
24719 use with Modular'Value attribute.
24720 (Scan_Plus_Sign): Add Scan_Plus_Sign, for use with Modular'Value
24723 2006-02-13 Robert Dewar <dewar@adacore.com>
24725 * s-wchjis.adb (JIS_To_EUC): Raise Constraint_Error for invalid value
24727 2006-02-13 Eric Botcazou <ebotcazou@adacore.com>
24729 * tracebak.c (PPC AIX/Darwin): Define FORCE_CALL to 1.
24730 (PPC VxWorks): Likewise.
24731 (Generic unwinder): Define FORCE_CALL to 0 if not already defined.
24732 (forced_callee): Make non-inlinable and non-pure.
24733 (__gnat_backtrace): Call forced_callee if FORCE_CALL is set to 1.
24735 2006-02-13 Arnaud Charlet <charlet@adacore.com>
24736 Ben Brosgol <brosgol@adacore.com>
24737 Robert Dewar <dewar@adacore.com>
24739 * gnat_rm.texi, gnat_ugn.texi: Remove limitations with sparc m64
24741 Document that gnatbind -M option is for cross environments only.
24742 Added description of using gnatmem to trace gnat rtl allocs and deallocs
24743 Add note on use of $ to label implicit run time calls
24744 Add documentation for -gnatyI (check mode IN)
24745 Updated chapter on compatibility with HP Ada
24746 VMS-oriented edits.
24747 Ran spell and corrected errors
24748 Add documentation for gnatbind -d and rework documentation of -D
24750 Add subprogram/data elimination section.
24751 Minor editing of annex A.
24752 Add section for gnatcheck.
24753 Add documentation for restriction No_Dispatching_Calls
24754 Add documentation for pragma Ada_2005
24755 Remove mention of obsolete pragma Propagate_Exceptions
24756 Document that pragma Unreferenced can appear after DO in ACCEPT
24757 Clarify Pure_Function for library level units
24758 Mention Max/Min in connection with No_Implicit_Conditionals
24759 No_Wide_Characters restriction is no longer partition-wide
24760 Add a nice example for Universal_Literal_String attribute
24761 Document that pragma No_Return can take multiple arguments
24763 * ug_words: Added entry for gnatcheck
24765 * g-ctrl_c.ads (Install_Handler): Enhance comments
24767 * g-os_lib.ads: Add comments to OS_Exit that it is abrupt termination
24769 * g-trasym.ads: Add documentation on how to do off line symbolic
24770 traceback computation.
24772 * s-fatgen.adb: Add comments for Unaligned_Valid
24774 * stand.ads: Fix typo in comment
24776 2006-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
24778 * Make-lang.in (check-gnat): Run run_acats with $(SHELL).
24780 2006-02-06 Roger Sayle <roger@eyesopen.com>
24782 * decl.c (gnat_substitute_in_type): Don't handle CHAR_TYPE.
24784 2006-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24787 * initialize.c (__gnat_initialize): Provide HP-UX 10 host and target
24788 implementation that calls __main.
24790 2006-01-25 Peter O'Gorman <peter@pogma.com>
24793 * Makefile.in (GCC_LINK): Remove quotes.
24794 (tools targets): Link with either $(GNATLINK) --GCC="$(GCC_LINK)"
24797 (powerpc-darwin): Pass -shared-libgcc when building shared library.
24799 2006-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24802 * s-osinte-linux-hppa.ads: Reduce alignment of atomic_lock_t to 8.
24804 2005-12-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24806 * s-osinte-linux-hppa.ads: Correct alignment of atomic_lock_t.
24808 2005-12-12 Arnaud Charlet <charlet@adacore.com>
24810 * Makefile.in: Remove dummy setting of GCC_FOR_TARGET, no longer
24813 2005-12-12 Arnaud Charlet <charlet@adacore.com>
24815 * Make-lang.in: Update dependencies
24817 2005-12-12 Arnaud Charlet <charlet@adacore.com>
24819 * Make-lang.in: Add rule for ada/exp_sel.o
24821 2005-12-12 Arnaud Charlet <charlet@adacore.com>
24823 * Makefile.in (mingw section): Remove EH_MECHANISM setting.
24825 2005-12-09 Arnaud Charlet <charlet@adacore.com>
24827 * gnatvsn.ads (Library_Version): Bump to version 4.2
24828 (ASIS_Version_Number): Bumped.
24830 2005-12-09 Doug Rupp <rupp@adacore.com>
24832 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb (Is_Interface): Change
24833 Ada bind file prefix on VMS from b$ to b__.
24834 (Build_Dynamic_Library): Change Init file suffix on VMS from $init to
24837 * prj-nmsc.adb: Change some Hostparm.OpenVMS checks to
24838 Targparm.OpenVMS_On_Target.
24839 (Object_Suffix): Initialize with target object suffix.
24840 (Get_Unit): Change Ada bind file prefix on VMS from b$ to b__.
24842 * butil.adb: Change some Hostparm.OpenVMS checks to
24843 Targparm.OpenVMS_On_Target.
24845 * clean.adb: Change some Hostparm.OpenVMS checks to
24846 Targparm.OpenVMS_On_Target.
24847 (Object_Suffix): Initialize with call to Get_Target_Object_Suffix.
24848 ({declaraction},Delete_Binder_Generated_Files,{initialization}): Change
24849 Ada bind file prefix on VMS from b$ to b__.
24851 * gnatlink.adb (Process_Args): Call Add_Src_Search_Dir for -I in
24852 --GCC so that Get_Target_Parameters can find system.ads.
24853 (Gnatlink): Call Get_Target_Parameters in mainline.
24854 Initialize standard packages for Targparm.
24855 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
24856 (Process_Args): Also Check for object files with target object
24858 (Make_Binder_File_Names): Create with target object extension.
24859 (Make_Binder_File_Names): Change Ada bind file prefix on VMS from b$
24862 * mlib-prj.adb: Change some Hostparm.OpenVMS checks to
24863 Targparm.OpenVMS_On_Target.
24864 ({declaration},Build_Library,Check_Library): Change Ada bind file
24865 prefix on VMS from b$ to b__.
24867 * osint-b.adb: Change some Hostparm.OpenVMS checks to
24868 Targparm.OpenVMS_On_Target.
24869 (Create_Binder_Output): Change Ada bind file prefix on VMS from b$ to
24872 * targext.c: New file.
24874 * Makefile.in: add support for vxworks653 builds
24875 (../../vxaddr2line): gnatlink with targext.o.
24876 (TOOLS_LIBS): Move targext.o to precede libgnat.
24877 (init.o, initialize.o): Minor clean up in dependencies.
24878 (GNATLINK_OBJS): Add targparm.o, snames.o
24879 Add rules fo building targext.o and linking it explicitly with all
24881 Also add targext.o to gnatlib.
24883 * Make-lang.in: Add rules for building targext.o and linking it in
24884 with gnat1 and gnatbind.
24885 Add entry for exp_sel.o.
24887 * osint.adb Change some Hostparm.OpenVMS checks to
24888 Targparm.OpenVMS_On_Target.
24889 (Object_File_Name): Use target object suffix.
24891 * osint.ads (Object_Suffix): Remove, no longer used.
24892 (Target_Object_Suffix): Initialize with target object suffix.
24894 * rident.ads: Add special exception to license.
24896 * targparm.adb (Get_Target_Parameters): Set the value of
24897 Multi_Unit_Index_Character after OpenVMS_On_Target gets its definitive
24899 (Get_Target_Parameters): Set OpenVMS_On_Target if openvms.
24901 * targparm.ads: Add special exception to license.
24903 * g-os_lib.ads, g-os_lib.adb (Get_Target_Debuggable_Suffix): New
24905 (Copy_File): Make sure from file is closed if error on to file
24906 (Get_Target_Executable_Suffix, Get_Target_Object_Suffix): New functions.
24908 * make.adb (Object_Suffix): Intialize with Get_Target_Object_Suffix.
24909 (Executable_Suffix): Intialize with Get_Target_Executable_Suffix.
24911 * osint-c.adb (Set_Output_Object_File_Name): Initialize extension with
24912 target object suffix.
24914 2005-12-09 Jose Ruiz <ruiz@adacore.com>
24915 Quentin Ochem <ochem@adacore.com>
24916 Florian Villoing <villoing@adacore.com>
24918 * a-taster.ads, a-taster.adb: New files.
24920 * a-elchha.adb (Last_Chance_Handler): Change the task termination soft
24921 link to the version that does nothing. This way the task termination
24922 routine is not executed twice for the environment task when finishing
24923 because of an unhandled exception.
24925 * a-exextr.adb (Notify_Unhandled_Exception): Call the task termination
24926 handler because of an unhandled exception.
24928 * a-taside.adb (Abort_Tasks): Call the Abort_Tasks procedure from
24929 System.Tasking.Utilities instead of that in System.Tasking.Stages.
24931 * s-finimp.adb (initialization code): Modify the soft link for the
24932 finalization of the global list instead of Adafinal.
24934 * s-soflin.ads, s-soflin.adb (Task_Termination_NT): Add this
24935 non-tasking version of the soft link for task termination. We do
24936 nothing since if we are using the non-tasking version it
24937 means that the task termination functionality is not used.
24938 (Null_Finalize_Global_List): Add this null version for the procedure
24939 in charge of finalizing the global list for controlled objects.
24940 (Null_Adafinal): Remove this procedure. Adafinal_NT has been created
24941 instead for handling run-time termination in a more flexible way.
24942 (Adafinal_NT): This new procedure will take care of finalizing the
24943 global list for controlled objects if needed, but no tasking
24946 * s-tarest.adb (Task_Lock): Do not try to lock again the
24947 Global_Task_Lock if we already own it. Otherwise, we get blocked in
24948 some run-time operations.
24949 (Task_Unlock): Do not try to actually unlock the Global_Task_Lock
24950 until all nested locks have been released.
24951 (Task_Wrapper): Call the fall-back task termination handler. It
24952 applies to all tasks but the environment task.
24953 (Finalize_Global_Tasks): Add the call for the task termination
24954 procedure for the environment task.
24955 (Task_Wrapper): suppress warnings around declaration of
24956 Secondary_Stack_Address.
24958 * s-tasini.adb (Final_Task_Unlock): Global_Task_Lock_Nesting has been
24959 moved to the Common_ATCB record.
24960 (Task_Lock): Global_Task_Lock_Nesting has been moved to the
24961 Common_ATCB record.
24962 (Task_Unlock): Global_Task_Lock_Nesting has been moved to the
24963 Common_ATCB record.
24965 * s-taskin.adb (Initialize_ATCB): Initialize Global_Task_Lock_Nesting,
24966 Fall_Back_Handler, and Specific_Handler.
24968 * s-taskin.ads (Cause_Of_Termination): Redefine this type here, already
24969 defined in Ada.Task_Termination, to avoid circular dependencies.
24970 (Termination_Handler): Redefine this type here, alredy defined in
24971 Ada.Task_Termination, for avoiding circular dependencies.
24972 (Common_ATCB): Add the Fall_Back_Handler and Specific_Handler required
24973 for storing task termination handlers. In addition,
24974 Global_Task_Lock_Nesting has been moved from Ada_Task_Control_Block to
24975 Common_ATCB because it is used by both the regular and the restricted
24977 (Ada_Task_Control_Block): Move Global_Task_Lock_Nesting from here to
24978 Common_ATCB because it is used by both the regular and the restricted
24980 (Common_ATCB): Added a dynamic task analyzer field.
24982 * s-tassta.adb (Abort_Tasks): Move the code in charge of checking
24983 potentially blocking operations to System.Tasking.Utilities.Abort_Tasks.
24984 (Task_Wrapper): Call the task termination handler. It applies to all
24985 tasks but the environment task.
24986 (Finalize_Global_Tasks): Call the task termination procedure for the
24987 environment task. The call to Finalize_Global_List is now performed
24988 using the soft links mechanism.
24989 (Task_Wrapper): added dynamic stack analysis.
24991 * s-tasuti.adb (Abort_Tasks): The code in charge of checking
24992 potentially blocking operations has been moved from
24993 System.Tasking.Stages.Abort_Tasks to this procedure. There can be
24994 direct calls to System.Tasking.Utilities.Abort_Tasks that do not pass
24995 through System.Tasking.Stages.Abort_Tasks, and we do not want to miss
24996 this run-time check.
24998 * s-solita.adb (Task_Termination_Handler_T): Add this task-safe version
24999 of task termination procedure.
25000 (Init_Tasking_Soft_Links): Install the task-safe version of the soft
25001 link for the task termination procedure.
25003 * bindusg.adb: (Bindusg): Added documentation for -u option.
25005 * bindgen.adb (Get_Main_Ada) Added handling of dynamic stack analysis.
25006 (Get_Main_C): Add handling of dynamic stack analysis.
25007 (Gen_Output_File_C): Add external functions for dynamic stack analysis.
25009 * Makefile.rtl: Add entry for a-taster (Ada.Task_Termination).
25010 (GNATRTL_NONTASKING_OBJS) Added entries for dynamic stack analysis
25011 (GNATRTL_NONTASKING_OBJS): Add AltiVec files.
25013 * opt.ads: Added flags used by dynamic stack measurement.
25014 (Max_Line_Length): Remove (not used anymore)
25016 * s-io.ads, s-io.adb (Standard_Error): new subprogram
25017 (Standart_Output): new subprogram
25018 (Set_Output): new subprogram
25019 (Put): now uses the value of Current_Out to know if the output has to be
25020 send to stderr or stdout.
25022 * s-stausa.ads: Complete implementation.
25024 * switch-b.adb: Added handling of -u switch for dynamic stack analysis.
25026 * impunit.adb (Non_Imp_File_Names_05): Add Ada.Task_Termination to the
25027 list of Ada 05 files.
25028 (GNAT Library Units): Add AltiVec files.
25030 * g-allein.ads, g-alleve.adb, g-alleve.ads, g-altcon.adb,
25031 g-altcon.ads, g-altive.ads, g-alveop.adb, g-alveop.ads
25032 g-alvety.ads, g-alvevi.ads: New files providing altivec API.
25034 2005-12-09 Nicolas Setton <setton@adacore.com>
25036 * adaint.c (__gnat_locate_regular_file): Return immediately if
25037 file_name is empty.
25039 2005-12-09 Javier Miranda <miranda@adacore.com>
25040 Hristian Kirtchev <kirtchev@adacore.com>
25042 * a-tags.ads, a-tags.adb (Offset_To_Top): Moved from the package body
25043 to the specification because the frontend generates code that uses this
25045 (Set_Interface_Table): Add missing assertion.
25046 Update documentation describing the run-time structure.
25047 (Displace): New subprogram that displaces the pointer to the object
25048 to reference one of its secondary dispatch tables.
25049 (IW_Membership): Modified to use the new table of interfaces.
25050 (Inherit_TSD): Modified to use the new table of interfaces.
25051 (Register_Interface_Tag): Use the additional formal to fill the
25052 contents of the new table of interfaces.
25053 (Set_Interface_Table): New subprogram that stores in the TSD the
25054 pointer to the table of interfaces.
25055 (Set_Offset_To_Top): Use the additional formal to save copy of
25056 the offset value in the table of interfaces.
25057 Update structure of GNAT Primary and Secondary dispatch table diagram.
25058 Add comment section on GNAT dispatch table prologue.
25059 (Offset_To_Signature): Update the constant value of the Signature field.
25060 (Dispatch_Table): Update comment on hidden fields in the prologue.
25061 (Get_Entry_Index, Get_Prim_Op_Kind, Get_Offset_Index, OSD,
25062 Set_Entry_Index, Set_Offset_Index, Set_Prim_Op_Kind, SSD, TSD): Change
25063 the type of formal parameter T to Tag, introduce additional assertions.
25064 (Get_Num_Prim_Ops, Set_Num_Prim_Ops): Remove an unnecessary type
25066 (Get_Tagged_Kind, Set_Tagged_Kind): New bodies.
25068 * exp_ch6.adb (Register_Interface_DT_Entry): Remove the Thunk_Id actual
25069 in all the calls to Expand_Interface_Thunk. Instead of referencing the
25070 record component containing the tag of the secondary dispatch table we
25071 have to use the Offset_To_Top run-time function to get this information;
25072 otherwise if the pointer to the base of the object has been displace
25073 we get a wrong value if we use the 'position attribute.
25075 * exp_disp.adb (Expand_Interface_Thunk): Remove the Thunk_Id actual in
25076 all the calls to Expand_Interface_Thunk.
25077 (Make_Secondary_DT): Secondary dispatch tables do not have a table of
25078 interfaces; hence the call to Set_Interface_Table was clearly wrong.
25079 (Collect_All_Interfaces): Modify the internal subprogram Collect to
25080 ensure that the interfaces implemented by the ancestors are placed
25081 at the header of the generated list.
25082 (Expand_Interface_Conversion): Handle the case in which the displacement
25083 associated with the interface conversion is not statically known. In
25084 this case we generate a call to the new run-time subprogram Displace.
25085 (Make_DT): Generate and fill the new table of interfaces.
25086 (Ada_Actions, Action_Is_Proc, Action_Nb_Arg): Add entries for
25087 Get_Tagged_Kind and Set_Tagged_Kind.
25088 (Tagged_Kind): New function that determines the tagged kind of a type
25089 with respect to limitedness and concurrency and returns a reference to
25091 (Make_Disp_Asynchronous_Select_Body, Make_Disp_Conditional_Select_Body,
25092 Make_Disp_Timed_Select_Body): Correctly retrieve the pointer to the
25093 primary dispatch table for a type.
25094 (Make_DT, Make_Secondary_DT): Set the tagged kind in the primary and
25095 secondary dispatch table respectively of a tagged type.
25097 * exp_disp.ads (Expand_Interface_Thunk): Remove Thunk_Id formal.
25098 (Expand_Interface_Conversion): New subprogram to indicate if the
25099 displacement of the type conversion is statically known.
25100 (DT_Access_Action): Add values Get_Tagged_Kind and Set_Tagged_Kind.
25102 * rtsfind.ads (RE_Offset_To_Top): New entity
25103 (RTU_Id): Add Ada_Task_Termination to the list so that it is made
25104 accessible to users.
25105 (Re_Displace): New entity
25106 (RE_Interface_Data): New entity
25107 (RE_Set_Interface_Data): New_Entity
25108 (RE_Id, RE_Unit_Table): Add entry for RE_Get_Tagged_Kind,
25109 Set_Tagged_Kind, RE_Tagged_Kind, RE_TK_Abstract_Limited_Tagged,
25110 RE_TK_Abstract_Tagged, RE_TK_Limited_Tagged, RE_TK_Protected,
25111 RE_TK_Tagged, RE_TK_Task.
25113 * exp_ch3.adb (Init_Secondary_Tags): Modify the subprogram
25114 Init_Secondary_Tags_Internal to allow its use with interface types and
25115 also to generate the code for the new additional actual required
25116 by Set_Offset_To_Top.
25117 (Build_Init_Statements): In case of components associated with abstract
25118 interface types there is no need to generate a call to its IP.
25119 (Freeze_Record_Type): Generate Select Specific Data tables only for
25121 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies): Generate
25122 the bodies and specifications of the predefined primitive operations
25123 dealing with dispatching selects and abort, 'Callable, 'Terminated only
25124 for concurrent types.
25126 * exp_sel.ads, exp_sel.adb: New files.
25128 * exp_ch9.adb (Build_Protected_Entry, Expand_N_Protected_Body,
25129 Expand_N_Protected_Type_Declaration, Make_Initialize_Protection): Handle
25130 properly protected objects and attach handler in the case of the
25131 restricted profile.
25132 Move embeded package Select_Expansion_Utilities into a separate external
25134 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Select,
25135 Expand_N_Timed_Entry_Call): Correct calls external package Exp_Sel.
25136 (Build_K, Build_S_Assignment): New subprograms, part of the select
25137 expansion utilities.
25138 (Expand_N_Asynchronous_Select, Expand_N_Conditional_Entry_Call,
25139 Expand_N_Timed_Entry_Call): Optimize expansion of select statements
25140 where the trigger is a dispatching procedure of a limited tagged type.
25142 2005-12-09 Olivier Hainque <hainque@adacore.com>
25144 * decl.c (gnat_to_gnu_entity, renaming object case): Don't early expand
25145 pointer initialization values. Make a SAVE_EXPR instead. Add comments
25146 about the use and expansion of SAVE_EXPRs in the various possible
25147 renaming handling cases.
25148 (components_to_record, compare_field_bitpos): Sort by DECL_UID, not by
25149 abusing DECL_FCONTEXT.
25151 2005-12-09 Matthew Heaney <heaney@adacore.com>
25153 * a-convec.adb (Merge): Added assertions to check whether vector params
25156 * a-coinve.adb (Merge): Added assertions to check whether vector params
25159 * a-cohama.ads (Cursor'Write): raises Program_Error per latest AI-302
25161 (Cursor'Read): raises PE
25163 * a-cohama.adb (Insert.New_Node): Uses box-style syntax to init elem
25164 to its default value.
25166 * a-cihama.adb: Manually check whether cursor's key and elem are
25169 * a-cidlli.ads, a-cidlli.adb (Splice): Changed param name and param mode
25170 (Merge): Assert that target and source lists are in order
25171 (Swap): Declare non-const temporaries, to pass to Splice
25173 * a-cdlili.ads: (Splice): Changed param name and param mode
25175 * a-cdlili.adb: (Splice): Changed param name and param mode
25176 (Merge): Assert that target and source lists are in order
25177 (Swap): Declare non-const temporaries, to pass to Splice
25179 * a-ciorma.ads, a-coorma.ads: (Read): declare Stream param as not null
25180 (Write): declare Stream param as not null
25182 * a-ciorma.adb, a-coorma.adb: All explicit raise statements now include
25183 an exception message.
25185 2005-12-09 Thomas Quinot <quinot@adacore.com>
25186 Robert Dewar <dewar@adacore.com>
25188 * hostparm.ads (Max_Line_Length): Set to Types.Column_Number'Last - 1,
25189 which is the absolute maximum length we can support.
25191 * frontend.adb: For the processing of configuration pragma files,
25192 remove references to Opt.Max_Line_Length, which is not checked anymore.
25194 * namet.ads (Name_Buffer): Adjust size to reflect increase on max line
25197 * scn.adb, scng.adb:
25198 Always check line length against the absolute supported maximum,
25199 Hostparm.Max_Line_Length.
25201 * stylesw.adb (Set_Style_Check_Options, case M): The maximum supported
25202 value for the maximum line length is Max_Line_Length (not
25203 Column_Number'Last).
25204 Minor error msg update
25205 (Set_Style_Check_Options): New interface returning error msg
25206 Minor code reorganization (processing for 'M' was out of alpha order)
25208 * switch-c.adb: New interface for Set_Style_Check_Options
25210 * stylesw.ads (Set_Style_Check_Options): New interface returning error
25213 2005-12-09 Javier Miranda <miranda@adacore.com>
25215 * exp_aggr.adb (Build_Record_Aggr_Code): Default-initialialized records
25216 with IP subprogram were only supported if there were limited types.
25218 * sem_aggr.adb (Resolve_Record_Aggregate): Default-initialialized
25219 records with IP subprogram were only supported if there were limited
25222 2005-12-09 Olivier Hainque <hainque@adacore.com>
25223 Eric Botcazou <ebotcazou@adacore.com>
25225 * trans.c (tree_transform, emit_check): Adjust calls to
25226 build_call_raise, passing the now expected GNAT_NODE argument.
25228 * gigi.h (build_call_raise): Add a GNAT_NODE argument to convey better
25229 source line information than what the current global locus indicates
25232 * utils2.c (build_simple_component_ref): Return 0 if the offset of the
25233 field has overflowed.
25234 (build_call_raise): Add a GNAT_NODE argument to convey better source
25235 line information than what the current global locus indicates when
25237 (build_component_ref): Adjust call to build_call_raise.
25239 2005-12-09 Pascal Obry <obry@adacore.com>
25241 * g-diopit.adb (Find): Fix test to exit the iterator and make sure that
25242 the iterator is quitting iteration on parent directory.
25244 2005-12-09 Javier Miranda <miranda@adacore.com>
25246 * exp_ch5.adb (Expand_N_Assignment_Statement): In case of tagged types
25247 and the assignment to a class-wide object, before the assignment we
25248 generate a run-time check to ensure that the tag of the Target is
25249 covered by the tag of the source.
25251 2005-12-09 Robert Dewar <dewar@adacore.com>
25253 * exp_imgv.adb (Expand_Image_Attribute): Generate extra boolean
25254 parameter in call to Image_Wide_Character.
25256 * s-imgwch.ads, s-imgwch.adb (Image_Wide_Character): Add boolean
25257 parameter Ada_2005 to deal with annoying FFFE/FFFF inconsistency.
25258 (Image_Wide_Character): Add boolean parameter Ada_2005 to deal with
25259 annoying FFFE/FFFF inconsistency.
25261 2005-12-09 Robert Dewar <dewar@adacore.com>
25262 Javier Miranda <miranda@adacore.com>
25263 Ed Schonberg <schonberg@adacore.com>
25265 * exp_util.ads, exp_util.adb (Is_Ref_To_Bit_Packed_Slice): Handle case
25266 of type conversion.
25267 (Find_Interface): New subprogram that given a tagged type and one of its
25268 component associated with the secondary table of an abstract interface
25269 type, return the entity associated with such abstract interface type.
25270 (Make_Subtype_From_Expr): If type has unknown discriminants, always use
25271 base type to create anonymous subtype, because entity may be a locally
25272 declared subtype or generic actual.
25273 (Find_Interface): New subprogram that given a tagged type and one of its
25274 component associated with the secondary table of an abstract interface
25275 type, return the entity associated with such abstract interface type.
25277 * sem_res.adb (Resolve_Type_Conversion): Handle the case in which the
25278 conversion cannot be handled at compile time. In this case we pass this
25279 information to the expander to generate the appropriate code.
25281 2005-12-09 Robert Dewar <dewar@adacore.com>
25282 Ed Schonberg <schonberg@adacore.com>
25283 Gary Dismukes <dismukes@adacore.com>
25284 Javier Miranda <miranda@adacore.com>
25285 Hristian Kirtchev <kirtchev@adacore.com>
25287 * einfo.adb (Itype_Printed): New flag
25288 (Is_Limited_Type): Derived types do not inherit limitedness from
25289 interface progenitors.
25290 (Is_Return_By_Reference_Type): Predicate does not apply to limited
25293 * einfo.ads (Itype_Printed): New flag
25294 Move Is_Wrapper_Package to proper section
25295 Add missing Inline for Is_Volatile
25297 * output.ads, output.adb (Write_Erase_Char): New procedure
25298 (Save/Restore_Output_Buffer): New procedures
25299 (Save/Restore_Output_Buffer): New procedures
25301 * sprint.ads, sprint.adb (Write_Itype): Handle case of record itypes
25302 Add missing support for anonymous access type
25303 (Write_Id): Insert calls to Write_Itype
25304 (Write_Itype): New procedure to output itypes
25306 * par-ch12.adb (P_Formal_Derived_Type_Definition): In Ada 2005, handle
25307 use of "limited" in declaration.
25309 * sinfo.ads, sinfo.adb:
25310 Formal derived types can carry an explicit "limited" indication.
25312 * sem_ch3.adb: Add with and use of Targparm.
25313 (Create_Component): If Frontend_Layout_On_Target is True and the
25314 copied component does not have a known static Esize, then reset
25315 the size and positional fields of the new component.
25316 (Analyze_Component_Declaration): A limited component is
25317 legal within a protected type that implements an interface.
25318 (Collect_Interfaces): Do not add to the list the interfaces that
25319 are implemented by the ancestors.
25320 (Derived_Type_Declaration): If the parent of the full-view is an
25321 interface perform a transformation of the tree to ensure that it has
25322 the same parent than the partial-view. This simplifies the job of the
25323 expander in order to generate the correct object layout, and it is
25324 needed because the list of interfaces of the full-view can be given in
25326 (Process_Full_View): The parent of the full-view does not need to be
25327 a descendant of the parent of the partial view if both parents are
25329 (Analyze_Private_Extension_Declaration): If declaration has an explicit
25330 "limited" the parent must be a limited type.
25331 (Build_Derived_Record_Type): A derived type that is explicitly limited
25332 must have limited ancestor and progenitors.
25333 (Build_Derived_Type): Ditto.
25334 (Process_Full_View): Verify that explicit uses of "limited" in partial
25335 and full declarations are consistent.
25336 (Find_Ancestor_Interface): Remove function.
25337 (Collect_Implemented_Interfaces): New procedure used to gather all
25338 implemented interfaces by a type.
25339 (Contain_Interface): New function used to check whether an interface is
25341 (Find_Hidden_Interface): New function used to determine whether two
25342 lists of interfaces constitute a set equality. If not, the first
25343 differing interface is returned.
25344 (Process_Full_View): Improve the check for the "no hidden interface"
25345 rule as defined by AI-396.
25347 2005-12-09 Robert Dewar <dewar@adacore.com>
25349 * freeze.adb (Freeze_Record_Type): Only test for useless pack on record
25350 types, not on record subtypes.
25351 (Freeze_Entity): Code cleanup. Add barrier to the loop
25352 that generates the references for primitive operations. This allows to
25353 remove an unnecessary exception handler.
25354 Code reformatting and comment clean ups.
25356 2005-12-09 Vincent Celier <celier@adacore.com>
25358 * gnatcmd.adb (GNATCmd): GNAT CHECK accepts switch -U
25359 If GNAT CHECK is called with a project file, but with no
25360 source on the command line, call gnatcheck with all the compilable
25361 sources of the project.
25362 Take into account the new command Check, for gnatcheck. Treat as for
25363 other ASIS tools: take into account project, specific package Check and
25365 For ASIS tools, add the switches in package Compiler for
25366 the invocation of the compiler.
25368 * prj-attr.adb: Add package Check and its attributes
25370 * vms_conv.ads (Command_Type): New command Check, for gnatcheck
25372 * vms_conv.adb (Initialize): Change Params of command Check to
25374 Change some Hostparm.OpenVMS checks to Targparm.OpenVMS_On_Target.
25375 Add data for new command Check
25377 * vms_data.ads: Add project related qualifiers for GNAT CHECK and GNAT
25379 Add qualifiers for Check command options
25380 (Command_Type): New command Check
25382 2005-12-09 Thomas Quinot <quinot@adacore.com>
25384 * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
25385 command line switch overruns the output buffer.
25387 2005-12-09 Robert Dewar <dewar@adacore.com>
25389 * sem_prag.adb: Processing for new pragma Complete_Representation
25390 (Analyze_Pragma, case Debug): Implement two argument form.
25392 * par-prag.adb: Entry for new pragma Complete_Representation
25393 (Prag, case Debug): Recognize two argument form of pragma Debug
25394 New interface for Set_Style_Check_Options.
25396 * sem_ch13.adb: Implement new pragma Complete_Representation.
25398 * snames.adb, snames.ads, snames.h: Entry for new pragma
25399 Complete_Representation.
25401 2005-12-09 Gary Dismukes <dismukes@adacore.com>
25403 * sem_cat.adb (Validate_RCI_Subprogram_Declaration): Revise test for
25404 available user-specified stream attributes on limited parameters to
25405 also test the type directly rather than only its underlying type (for
25406 Ada 95) and, in the case of Ada 2005, to check that the user-specified
25407 attributes are visible at the point of the subprogram declaration.
25408 For Ada 2005, the error message is modified to indicate that the
25409 type's stream attributes must be visible (again, only for -gnat05).
25411 2005-12-09 Ed Schonberg <schonberg@adacore.com>
25413 * sem_ch12.adb (Subtypes_Match): Handle properly Ada05 arrays of
25414 anonymous access types.
25416 * sem_eval.adb (Subtypes_Statically_Match): Implement new rules for
25417 matching of anonymous access types and anonymous access to subprogram
25418 types. 'R'M 4.9.1 (2/2).
25420 2005-12-09 Ed Schonberg <schonberg@adacore.com>
25422 * sem_ch4.adb (Remove_Abstract_Operations): Do not apply preference
25423 rule prematurely when operands are universal, remaining ambiguities
25424 will be removed during resolution.
25427 * sem_type.adb (Disambiguate): In Ada95 mode, discard interpretations
25428 that are Ada 2005 functions.
25429 (Has_Abstract_Interpretation): Subsidiary to
25430 Remove_Conversions, to remove ambiguities caused by abstract operations
25431 on numeric types when operands are universal.
25433 2005-12-09 Robert Dewar <dewar@adacore.com>
25435 * sem_ch6.adb (Analyze_Subprogram_Body): Properly check categorization
25436 for case where spec is categorized.
25438 2005-12-09 Javier Miranda <miranda@adacore.com>
25440 * sem_ch8.adb (Find_Type): In case of tagged types that are concurrent
25441 types use the corresponding record type. This was not needed before
25442 the implementation of Ada 2005 synchronized types because
25443 concurrent types were never tagged types in Ada 95.
25445 2005-12-09 Ed Schonberg <schonberg@adacore.com>
25447 * sem_ch9.adb (Analyze_Delay_Alternative, Analyze_Delay_Until): Use the
25448 first subtype of the type of the expression to verify that it is a
25451 2005-12-09 Robert Dewar <dewar@adacore.com>
25453 * sem_util.ads, sem_util.adb (Full_Qualified_Name): Now provides
25456 2005-12-09 Quentin Ochem <ochem@adacore.com>
25457 Robert Dewar <dewar@adacore.com>
25458 Ed Falis <falis@adacore.com>
25459 Florian Villoing <villoing@adacore.com>
25460 Thomas Quinot <quinot@adacore.com>
25461 Arnaud Charlet <charlet@adacore.com>
25463 * gnat_ugn.texi: Created section "Stack Related Tools"
25464 Moved "Stack Overflow Checking" subsection from "Switches for gcc" to
25465 "Stack Related Tools"
25466 Added subsection "Static Stack Usage Analysis"
25467 Added subsection "Dynamic Stack Usage Analysis"
25468 Include documentation of itypes in sprint listing (-gnatG)
25469 Documented gnatbind -D switch (default sec stack size for fixed sec
25471 Added Interrupt_State and Persistent_BSS to list of configuration
25473 Add missing doc for maximum value of nnn in -gnatyMnnn
25475 * gnat_rm.texi: Document the AltiVec binding.
25476 Add documentation for pragma Complete_Representation
25477 Shortened an overly long line (> 79 chars)
25478 Clarify documentation of unchecked conversion in implementation
25480 Document two argument form of pragma Debug
25482 * types.ads (Column_Number): Update documentation.
25484 * exp_ch7.ads (Make_Adjust_Call): Document the special processing for
25485 library level Finalize_Storage_Only objects (these are not attached to
25486 any finalization list).
25488 * system-mingw.ads: (Underlying_Priorities): Update comment.
25490 2005-12-09 Robert Dewar <dewar@adacore.com>
25492 * i-c.adb, i-cexten.ads, i-cobol.adb, i-cobol.ads, i-cpoint.ads,
25493 i-cpp.adb, i-cpp.ads, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
25494 inline.adb, interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads,
25495 i-os2thr.ads, itypes.adb, itypes.adb, itypes.ads, krunch.ads,
25496 krunch.adb, lib.adb, lib.ads, lib-list.adb, lib-load.adb,
25497 lib-load.ads, lib-sort.adb, live.adb, make.ads, i-cstrea-vms.adb,
25498 interfac-vms.ads, makegpr.adb, indepsw-gnu.adb, indepsw.ads,
25499 s-wchcon.ads, sdefault.ads, sem_ch10.adb, sem_eval.ads: Minor
25502 2005-12-09 Robert Dewar <dewar@adacore.com>
25504 * s-vaflop-vms-alpha.adb: (Ne_F): New function
25505 (Ne_G): New function
25507 * exp_ch4.adb (Expand_Allocator_Expression): Factor duplicated code
25508 for tag assignment.
25509 (Rewrite_Comparison): Handle case where operation is not a comparison
25510 and ignore, and also handle type conversion case.
25512 2005-12-09 Thomas Quinot <quinot@adacore.com>
25514 * exp_aggr.ads: Fix typo in comment.
25515 ???-mark Convert_Aggr_In_Assignment as needing documentation.
25517 2005-12-09 Gary Dismukes <dismukes@adacore.com>
25519 * layout.adb: Replace various uses of byte by storage unit throughout.
25520 (Get_Max_SU_Size): Name changed from Get_Max_Size. In the case of a
25521 static size, convert to storage units before returning, to conform to
25524 2005-12-09 Matthew Gingell <gingell@adacore.com>
25526 * g-exctra.ads: Fix typo in comment.
25528 2005-12-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25530 * utils.c: Minor reformatting.
25532 2005-12-09 Robert Dewar <dewar@adacore.com>
25535 Further comment fixes to make the status of the default file clear
25537 * s-bitops.adb: Clarify comment for Bits_Array
25539 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
25541 * Make-lang.in (ada.install-normal): Remove.
25543 2005-12-07 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
25545 * Make-lang.in: Remove all dependencies on s-gtype.
25547 2005-12-05 Richard Guenther <rguenther@suse.de>
25549 * utils.c (convert): Use fold_convert where appropriate.
25551 2005-12-05 Paolo Bonzini <bonzini@gnu.org>
25553 * Makefile.in (gnatlib): Fix regex, using \. instead of . when
25556 2005-12-02 Richard Guenther <rguenther@suse.de>
25558 * trans.c (gnat_gimplify_expr): Use buildN instead of build.
25560 2005-12-01 Roger Sayle <roger@eyesopen.com>
25562 * utils.c (max_size): Only test for TREE_OVERFLOW on INTEGER_CST
25565 2005-11-23 Laurent Guerby <laurent@guerby.net>
25567 * mlib-prj.adb (Build_Library): Initialize Delete.
25569 2005-11-21 Joel Sherrill <joel.sherrill@oarcorp.com>
25571 * socket.c: Add extern int h_errno for rtems since networking header
25572 files are not available at this point in a tool bootstrap. Newlib
25573 only has basic C library header files.
25575 2005-11-19 Richard Guenther <rguenther@suse.de>
25576 Roger Sayle <roger@eyesopen.com>
25579 * misc.c (internal_error_function): Don't use vsprintf to format
25580 the error message text, instead use pp_format_text and the new
25581 pretty printer APIs. This allows handling of %qs, %w, etc.
25583 2005-11-18 Laurent Guerby <laurent@guerby.net>
25586 * Makefile.in: Use s-auxdec-empty for RTEMS.
25588 2005-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
25591 * trans.c (gnat_gimplify_expr, case ADDR_EXPR): Always make
25592 a temporary if taking the address of something that is neither
25593 reference, declaration, or constant, since the gimplifier
25594 can't handle that case.
25596 2005-11-17 Laurent Guerby <laurent@guerby.net>
25599 * s-auxdec-empty.ads, s-auxdec-empty.adb: New files.
25601 2005-11-16 Richard Guenther <rguenther@suse.de>
25603 * Makefile.in: Add EH_MECHANISM=-gcc to s390(x) linux.
25605 2005-11-16 Joel Sherrill <joel.sherrill@oarcorp.com>
25608 * raise-gcc.c: Add missing stdarg.h include.
25610 2005-11-16 Richard Guenther <rguenther@suse.de>
25612 * Make-lang.in (ada/decl.o): Add $(EXPR_H) dependency.
25613 (ada/misc.o): Likewise.
25615 2005-11-14 Thomas Quinot <quinot@adacore.com>
25617 * g-soccon.ads: Minor reformatting. Update comments.
25619 * gsocket.h: Include <sys/times.h> in the VxWorks case, in order to
25620 gain visibility on the declaration of struct timeval.
25622 * g-soccon-freebsd.ads,
25623 g-soccon-darwin.ads,
25624 g-soccon-tru64.ads,
25628 g-soccon-solaris.ads,
25630 g-soccon-mingw.ads,
25631 g-soccon-vxworks.ads (SIZEOF_tv_sec, SIZEOF_tv_usec): New constants.
25633 * g-soccon-hpux-ia64.ads, g-soccon-linux-ppc.ads,
25634 g-soccon-solaris-64.ads, g-soccon-linux-64.ads,
25635 g-soccon-linux-x86.ads: New files.
25637 * g-socthi-mingw.adb:
25638 (Socket_Error_Message): Remove redundant use of GNAT.Sockets.Constants
25640 * g-socthi-vxworks.ads, g-socthi-vms.ads, g-socthi-mingw.ads
25641 (time_t, suseconds_t): New types constructed to match the tv_sec
25642 and tv_usec fields of C struct timeval.
25643 (Timeval): Construct structure in terms of the new types.
25644 (Host_Errno): New function (imported from socket.c), returns last hosts
25647 * g-socthi-vxworks.adb: Add error handling circuitry.
25649 * g-socket.ads, g-socket.adb (To_Timeval): Reflect change of type for
25650 components of struct timeval.
25651 (Get_Host_By_Name, Get_Host_By_Address): Fix error reporting circuitry.
25652 (Check_Selector): In error conditions, clear internal socket sets to
25653 avoid a memory leak.
25654 (Get_Socket_Option, Set_Socket_Option): Support for Multicast_If,
25655 Send_Timeout, Receive_Timeout.
25657 * g-socthi.ads (time_t, suseconds_t): New types constructed to match
25658 the tv_sec and tv_usec fields of C struct timeval.
25659 (Timeval): Construct structure in terms of the new types.
25660 (Host_Errno): New function (imported from socket.c), returns last hosts
25663 * socket.c (__gnat_get_h_errno): New function to retrieve h_errno, the
25664 hosts database last error code.
25666 * gen-soccon.c: Complete value expansion should not be performed on
25667 TARGET, as it has the form of a math expression, and some components
25668 may be platform-defined macros.
25669 For VxWorks, generate the OK and ERROR values.
25670 New constants giving the sizes of the components of C struct timeval.
25672 2005-11-14 Robert Dewar <dewar@adacore.com>
25673 Ed Schonberg <schonberg@adacore.com>
25676 * types.ads: Include All_Checks in Suppress_Array
25678 * checks.adb (Check_Needed): Remove kludge for a/=b rewritten as
25679 not(a=b), since we no longer do this rewriting, and hence it is not
25681 (Elaboration_Checks_Suppressed): Add special casing to
25682 deal with different cases of static and dynamic elaboration checks (all
25683 checks does not count in the first case, but does in the second).
25684 (Expr_Known_Valid): Do not assume that the result of any arbitrary
25685 function call is valid, since this is not the case.
25686 (Ensure_Valid): Do not apply validity check to a real literal
25687 in a universal or fixed context
25689 * exp_ch4.adb (Expand_N_Op_Ne): Don't expand a/=b to not(a=b) for
25690 elementary types using the operator in standard. It is cleaner not to
25691 modify the programmers intent, especially in the case of floating-point.
25692 (Rewrite_Comparison): Fix handling of /= (this was always wrong, but
25693 it did not matter because we always rewrote a/=b to not(a=b).
25694 (Expand_Allocator_Expression): For an allocator expression whose nominal
25695 subtype is an unconstrained packed type, convert the expression to its
25696 actual constrained subtype.
25697 Implement warning for <= or >= where < or > not possible
25698 Fix to Vax_Float tests (too early in many routines, causing premature
25699 Vax_Float expansions.
25701 * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow this pragma
25702 to be used with packages and generic packages as well as with
25704 (Suppress): Set All_Checks, but not Elaboration_Check, for case
25705 of pragma Suppress (All_Checks)
25706 (Analyze_Pragma, case Warnings): Implement first argument allowed to be
25707 a string literal for precise control over warnings.
25708 Avoid raise of pragma in case of unrecognized pragma and just return
25711 * sem_prag.ads: Minor reformatting
25713 * switch-c.adb (Scan_Front_End_Switches): Replace "raise Bad_Switch;"
25714 with call to new procedure Bad_Switch. Call Scan_Pos with new parameter
25715 Switch. Do not handle any exception.
25716 Include -gnatwx as part of -gnatg (warn on redundant parens)
25717 Allow optional = after -gnatm
25718 (Scan_Front_End_Switches): The -gnatp switch sets All_Checks, but no
25719 longer sets Elaboration_Checks.
25720 Code to set warning mode moved to Sem_Warn
25721 so that it can be shared by pragma processing.
25723 * s-mastop-tru64.adb (Pop_Frame): Remove redundant parentheses in if
25726 * s-taprop-solaris.adb:
25727 Change some <= to =, to avoid new warning
25729 * a-exexda.adb, prj-proc.adb:
25730 Fix obvious typo (Num_Tracebacks compared <= 0 instead of < 0)
25731 Fix obvious typo (Total_Errors_Detected <= 0 should be = 0)
25733 2005-11-14 Robert Dewar <dewar@adacore.com>
25735 * exp_vfpt.adb: Handle /= case
25736 (Expand_Vax_Conversion): Properly recognize Conversion_OK flag
25737 so that we do not get duplicate scaling for fixed point conversions.
25739 * s-vaflop.ads, s-vaflop.adb: (Ne_F): New function
25741 2005-11-14 Matthew Gingell <gingell@adacore.com>
25743 * system-lynxos-ppc.ads, system-lynxos-x86.ads:
25744 Increase default priority on Lynx from 15 to 17, and meet the Ada
25745 requirement that Default_Priority be ((Priority'First +
25746 Priority'Last) / 2) by increasing the range of Interrupt_Priority.
25748 2005-11-14 Vincent Celier <celier@adacore.com>
25750 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
25751 mlib-tgt-hpux.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
25752 mlib-tgt-solaris.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb,
25753 mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb,
25754 mlib-tgt-darwin.adb, mlib-tgt.adb, mlib-tgt.ads,
25755 mlib-tgt-lynxos.adb (DLL_Prefix): New function
25757 2005-11-14 Doug Rupp <rupp@adacore.com>
25759 * system-vms.ads, system-vms_64.ads: ADA$GNAT: New exported object in
25762 2005-11-14 Arnaud Charlet <charlet@adacore.com>
25764 * s-traces-default.adb, s-trafor-default.ads,
25765 s-tratas-default.adb: Fix compilation errors.
25767 2005-11-14 Jose Ruiz <ruiz@adacore.com>
25769 * s-taprop-posix.adb (Initialize_Lock): Destroy mutex attribute before
25770 raising the exception so the memory used is freed.
25772 2005-11-14 Arnaud Charlet <charlet@adacore.com>
25774 * adaint.h, adaint.c (__gnat_is_cross_compiler): New constant.
25775 (Gnat_Install_Locks, __gnatlib_install_locks): Removed, no longer used.
25776 (convert_address): Update comments and list of platforms using this.
25778 * s-tasini.adb (Gnat_Install_Locks, __gnatlib_install_locks): Removed,
25781 2005-11-14 Pascal Obry <obry@adacore.com>
25782 Vincent Celier <celier@adacore.com>
25784 * gnatdll.adb (Parse_Command_Line): Remove redundant use of
25787 * memroot.adb: Remove redundant with/use clause on
25788 System.Storage_Elements.
25790 2005-11-14 Arnaud Charlet <charlet@adacore.com>
25792 * a-except.adb (Zero_Cost_Exceptions): Removed, no longer used.
25793 (builtin_longjmp, Process_Raise_Exceeption): Move setjmp/longjmp
25794 related code to a-exexpr.adb
25795 (Save_Occurrence_And_Private): Move GCC EH related code to
25797 (Raise_Current_Excep): Add new variable Id with pragma
25798 volatile, to ensure that the variable lives on stack.
25800 * a-exexpr-gcc.adb, raise-gcc.c: New file.
25802 * a-exexpr.adb (builtin_longjmp, Propagate_Exception): Moved here code
25804 Move GCC EH related code to a-exexpr-gcc.adb
25806 * Makefile.in: Add or update g-soccon LIBGNAT pairs for Linux/PPC and
25808 Split the Linux version of g-soccon into separate variants for 32 and 64
25810 (gnatlib): Use $(AR_FOR_TARGET) and $(RANLIB_FOR_TARGET)
25811 vice $(AR) and $(RANLIB). Remove use of host variable $(RANLIB_FLAGS).
25812 install-gnatlib: Use $(RANLIB_FOR_TARGET) vice $(RANLIB). Remove use
25813 of host variable $(RANLIB_FLAGS).
25814 (alpha64-dec-*vms*): Fix translations for 64 bit compiler.
25815 Code clean up: remove unused/obsolete targets.
25816 (EH_MECHANISM): New variable introduced to differenciate between the
25817 two EH mechanisms statically.
25818 (gnatlib-zcx, gnatlib-sjlj): Force EH_MECHANISM manually.
25819 (LIBGNAT_OBJS): Add raise-gcc.o
25820 (LIBGNAT_TARGET_PAIRS for ppc-vxworks): Use an specialized version of
25821 s-osinte.adb, s-tpopsp.adb, and system.ads for the run time that
25822 supports VxWorks 6 RTPs.
25823 (EXTRA_GNATRTL_NONTASKING_OBJS for ppc-vxworks): Remove the use of
25824 i-vxworks and i-vxwoio from the run time that supports VxWorks 6 RTPs.
25826 * raise.c: Move all GCC EH-related routines to raise-gcc.c
25828 2005-11-14 Jose Ruiz <ruiz@adacore.com>
25830 * s-tassta.adb (Create_Task): Move the code in charge of resetting the
25831 deferral level, when abort is not allowed, to a later stage (the
25833 (Task_Wrapper): If Abort is not allowed, reset the deferral level since
25834 it will not get changed by the generated code. It was previously done
25837 2005-11-14 Thomas Quinot <quinot@adacore.com>
25838 Olivier Hainque <hainque@adacore.com>
25839 Eric Botcazou <ebotcazou@adacore.com>
25842 Factor common code to build a storage type for an unconstrained object
25843 from a fat or thin pointer type and a constrained object type.
25844 (annotate_value): Handle BIT_AND_EXPR.
25845 (annotate_rep): Don't restrict the back annotation of inherited
25846 components to the type_annotate_only case.
25847 (gnat_to_gnu_entity) <E_Array_Type>: Do not invoke create_type_decl if
25848 we are not defining the type.
25849 <E_Record_Type>: Likewise.
25850 (gnat_to_gnu_entity) <object, renaming>: Adjust comments and structure
25851 to get advantage of the new maybe_stabilize_reference interface, to
25852 ensure that what we reference is indeed stabilized instead of relying
25853 on assumptions on what the stabilizer does.
25854 (gnat_to_gnu_entity) <E_Incomplete_Type>: If the entity is an incomplete
25855 type imported through a limited_with clause, use its non-limited view.
25856 (Has_Stdcall_Convention): New macro, to centralize the Windows vs others
25858 (gnat_to_gnu_entity): Use Has_Stdcall_Convention instead of a spread mix
25859 of #if sections + explicit comparisons of convention identifiers.
25860 (gnat_to_gnu_entity) <E_Variable>: Decrement force_global if necessary
25861 before early-returning for certain types when code generation is
25863 (gnat_to_gnu_entity) <object>: Adjust comment attached to the
25864 nullification of gnu_expr we do for objects with address clause and
25865 that we are not defining.
25866 (elaborate_expression_1): Do not create constants when creating
25867 variables needed by the debug info: the dwarf2 writer considers that
25868 CONST_DECLs is used only to represent enumeration constants, and emits
25870 (gnat_to_gnu_entity) <object>: When turning a non-definition of an
25871 object with an address clause into an indirect reference, drop the
25872 initializing expression.
25874 (STACK_CHECK_BUILTIN): Delete.
25875 (STACK_CHECK_PROBE_INTERVAL): Likewise.
25876 (STACK_CHECK_MAX_FRAME_SIZE): Likewise.
25877 (STACK_CHECK_MAX_VAR_SIZE): Likewise.
25878 (gnat_to_gnu_entity): If gnat_entity is a renaming, do not mark the tree
25879 corresponding to the renamed object as ignored for debugging purposes.
25881 * trans.c (tree_transform, case N_Attribute_Reference, case Attr_Size &
25882 related): For a prefix that is a dereference of a fat or thin pointer,
25883 if there is an actual subtype provided by the front-end, use that
25884 subtype to build an actual type with bounds template.
25885 (tree_transform, case N_Free_Statement): If an Actual_Designated_Subtype
25886 is provided by the front-end, use that subtype to compute the size of
25887 the deallocated object.
25888 (gnat_to_gnu): When adding a statement into an elaboration procedure,
25889 check for a potential violation of a No_Elaboration_Code restriction.
25890 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
25891 with extra arguments to control whether to recurse through non-values
25892 and to let the caller know if the stabilization has succeeded.
25893 (gnat_stabilize_reference): Now a simple wrapper around
25894 maybe_stabilize, for common uses without restriction on lvalues and
25895 without need to check for the success indication.
25896 (gnat_to_gnu, call_to_gnu): Adjust calls to gnat_stabilize_reference, to
25897 pass false instead of 0 as the FORCE argument which is a bool.
25898 (Identifier_to_gnu): Remove checks ensuring that an renamed object
25899 attached to a renaming pointer has been properly stabilized, as no such
25900 object is attached otherwise.
25901 (call_to_gnu): Invoke create_var_decl to create the temporary when the
25902 function uses the "target pointer" return mechanism.
25903 Reinstate conversion of the actual to the type of the formal
25904 parameter before any other specific treatment based on the passing
25905 mechanism. This turns out to be necessary in order for PLACEHOLDER
25906 substitution to work properly when the latter type is unconstrained.
25908 * gigi.h (build_unc_object_type_from_ptr): New subprogram, factoring a
25910 (maybe_stabilize_reference): New function, like gnat_stabilize_reference
25911 with extra arguments to control whether to recurse through non-values
25912 and to let the caller know if the stabilization has succeeded.
25914 * utils2.c (gnat_build_constructor): Only sort the fields for possible
25915 static output of record constructor if all the components are constant.
25916 (gnat_build_constructor): For a record type, sort the list of field
25917 initializers in increasing bit position order.
25918 Factor common code to build a storage type for an unconstrained object
25919 from a fat or thin pointer type and a constrained object type.
25920 (build_unary_op) <ADDR_EXPR>: Always recurse down conversions between
25921 types variants, and process special cases of VIEW_CONVERT expressions
25922 as their NOP_EXPR counterpart to ensure we get to the
25923 CORRESPONDING_VARs associated with CONST_DECls.
25924 (build_binary_op) <MODIFY_EXPR>: Do not strip VIEW_CONVERT_EXPRs
25925 on the right-hand side.
25927 * utils.c (build_unc_object_type_from_ptr): New subprogram, factoring
25929 (convert) <VIEW_CONVERT_EXPR>: Return the inner operand directly if we
25930 are converting back to its original type.
25931 (convert) <JM input>: Fallthrough regular conversion code instead of
25932 extracting the object if converting to a type variant.
25933 (create_var_decl): When a variable has an initializer requiring code
25934 generation and we are at the top level, check for a potential violation
25935 of a No_Elaboration_Code restriction.
25936 (create_var_decl): call expand_decl for CONST_DECLs, to set MODE, ALIGN
25937 SIZE and SIZE_UNIT which we need for later back-annotations.
25938 * utils.c: (convert) <STRING_CST>: Remove obsolete code.
25939 <VIEW_CONVERT_EXPR>: Do not lift the conversion if the target type
25940 is an unchecked union.
25941 (pushdecl): Set DECL_NO_STATIC_CHAIN on imported nested functions.
25942 (convert) <VIEW_CONVERT_EXPR>: When the types have the same
25943 main variant, just replace the VIEW_CONVERT_EXPR.
25944 <UNION_TYPE>: Revert 2005-03-02 change.
25946 * repinfo.h, repinfo.ads: Add tcode for BIT_AND_EXPR.
25948 * repinfo.adb (Print_Expr, Rep_Value): Handle Bit_And_Expressions.
25950 2005-11-14 Matthew Heaney <heaney@adacore.com>
25952 * a-crbtgo.ads, a-crbtgo.adb, a-coorse.ads, a-coorse.adb, a-convec.ads,
25953 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohama.ads, a-cohama.adb,
25954 a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb, a-cidlli.ads,
25955 a-cidlli.adb, a-cdlili.ads, a-cdlili.adb, a-coormu.adb, a-ciormu.adb,
25956 a-cihase.adb, a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
25957 a-coorma.ads, a-ciormu.ads, a-coormu.ads, a-ciorma.adb, a-coorma.adb:
25958 Compiles against the spec for ordered maps described in sections
25959 A.18.6 of the most recent (August 2005) AI-302 draft.
25961 2005-11-14 Olivier Hainque <hainque@adacore.com>
25963 * cuintp.c (UI_To_gnu): Use a proper type for intermediate computations
25964 to ensure bias adjustments take place when need be and to prevent
25965 occurrences of intermediate overflows.
25967 2005-11-14 Matthew Gingell <gingell@adacore.com>
25968 Olivier Hainque <hainque@adacore.com>
25970 * tb-gcc.c (trace_callback): Work around problem with _Unwind_GetIP on
25973 * tracebak.c (ia64 configuration): Enable _Unwind_Backtrace driven
25974 tracebacks on ia64 HP-UX and provide explanatory comment.
25975 Enable backtraces on ia64 GNU/Linux.
25976 (x86 configuration): Bump FRAME_LEVEL to 1 to ensure we retrieve a real
25977 base pointer from builtin_frame_address. Adjust BASE_SKIP accordingly.
25979 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
25980 Javier Miranda <miranda@adacore.com>
25982 * rtsfind.ads, exp_util.adb, exp_util.ads, exp_disp.adb, exp_disp.ads,
25983 exp_ch7.adb, sem_ch9.adb, snames.adb, snames.ads,
25984 exp_ch9.adb, exp_ch9.ads, exp_ch6.adb, exp_ch3.adb, exp_ch3.ads,
25985 einfo.ads, einfo.adb: Complete support for Ada 2005 interfaces.
25987 * a-tags.ads, a-tags.adb: Major rewrite and additions to implement
25988 properly new Ada 2005 interfaces (AI-345) and add run-time checks (via
25991 * exp_dbug.ads, exp_dbug.adb (Get_Secondary_DT_External_Name): New
25992 subprogram that generates the external name associated with a
25993 secondary dispatch table.
25994 (Get_Secondary_DT_External_Name): New subprogram that generates the
25995 external name associated with a secondary dispatch table.
25997 2005-11-14 Emmanuel Briot <briot@adacore.com>
25999 * xref_lib.adb (Parse_Identifier_Info): It is possible for an entity
26000 line in the ALI file to include both an instantiation reference, and a
26003 2005-11-14 Vincent Celier <celier@adacore.com>
26005 * clean.adb (Check_Project): Look for Ada code in extending project,
26006 even if Ada is not specified as a language.
26007 Use new function DLL_Prefix for DLL_Name
26008 (Clean_Interface_Copy_Directory): New procedure
26009 (Clean_Library_Directory): New procedure
26010 (Clean_Directory): Remove procedure, no longer used
26011 (Clean_Project): Do not delete any file in an externally built project
26013 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Add the object
26014 directory of an extending project, even when there are no Ada source
26016 (Ada_Objects_Path.Add): Add Library_ALI_Dir, not Library_Dir to the path
26017 (Set_Ada_Paths.Add.Recursive_Add): Ditto
26019 * mlib-prj.adb (Check_Library): For all library projects, get the
26020 library file timestamp.
26021 (Build_Library): Copy ALI files in Library_ALI_Dir, not in Library_Dir
26022 (Build_Library): Use new function DLL_Prefix for the DLL_Name
26023 (Clean): Remove procedure, no longer used
26024 (Ultimate_Extension_Of): New function
26025 (Build_Library): When cleaning the library directory, only remove an
26026 existing library file and any ALI file of a source of the project.
26027 When cleaning the interface copy directory, remove any source that
26028 could be a source of the project.
26030 * prj.ads, prj.adb (Project_Empty): Add values of new components
26031 Library_TS and All_Imported_Projects.
26032 (Project_Empty): Add values for new components of Project_Data:
26033 Library_ALI_Dir and Display_Library_ALI_Dir
26035 * prj-attr.adb: New project level attribute name Library_ALI_Dir
26037 * prj-nmsc.adb (Check_Library_Attributes): Take into account new
26038 attribute Library_ALI_Dir.
26039 (Check_Library_Attributes): The library directory cannot be the same as
26040 any source directory of the project tree.
26041 (Check_Stand_Alone_Library): The interface copy directory cannot be
26042 the same as any source directory of the project tree.
26044 * mlib.adb: Use Prj.Com.Fail, instead of Osint.Fail directly, to delete
26045 all temporary files.
26047 2005-11-14 Robert Dewar <dewar@adacore.com>
26048 Ed Schonberg <schonberg@adacore.com>
26050 * sem_elab.adb: Change name Is_Package to Is_Package_Or_Generic_Package
26051 (Check_Elab_Call): A call within a protected body is never an
26052 elaboration call, and does not require checking.
26053 (Same_Elaboration_Scope): Take into account protected types for both
26055 (Activate_Elaborate_All_Desirable): New procedure
26057 * ali.ads, ali.adb: Implement new AD/ED for Elaborate_All/Elaborate
26060 * binde.adb: Implement new AD/ED for Elaborate_All/Elaborate desirable
26061 (Elab_Error_Msg): Use -da to include internal unit links, not -de.
26063 * lib-writ.ads, lib-writ.adb:
26064 Implement new AD/ED for Elaborate_All/Elaborate desirable
26065 Use new Elaborate_All_Desirable flag in N_With_Clause node
26067 * sinfo.ads, sinfo.adb (Actual_Designated_Subtype): New attribute for
26068 N_Free_Statement nodes.
26069 Define new class N_Subprogram_Instantiation
26070 Add Elaborate_Desirable flag to N_With_Clause node
26071 Add N_Delay_Statement (covering two kinds of delay)
26073 * debug.adb: Introduce d.f flag for compiler
26074 Add -da switch for binder
26076 2005-11-14 Ed Schonberg <schonberg@adacore.com>
26077 Cyrille Comar <comar@adacore.com>
26079 * exp_aggr.adb (Build_Record_Aggr_Code): Do not create master entity
26080 for task component, in the case of a limited aggregate. The enclosed
26081 object declaration will create it earlier. Otherwise, in the case of a
26082 nested aggregate, the object may appear in the wrong scope.
26083 (Convert_Aggr_In_Object_Decl): Create a transient scope when needed.
26084 (Gen_Assign): If the component being assigned is an array type and the
26085 expression is itself an aggregate, wrap the assignment in a block to
26086 force finalization actions on the temporary created for each row of the
26088 (Build_Record_Aggr_Code): Significant rewrite insuring that ctrl
26089 structures are initialized after all discriminants are set so that
26090 they can be accessed even when their offset is dynamic.
26092 2005-11-14 Robert Dewar <dewar@adacore.com>
26093 Hristian Kirtchev <kirtchev@adacore.com>
26095 * sem_attr.adb: Implement Machine_Rounding attribute
26096 (Analyze_Access_Attribute): The access attribute may appear within an
26097 aggregate that has been expanded into a loop.
26098 (Check_Task_Prefix): Add semantic check for attribute 'Callable and
26099 'Terminated whenever the prefix is of a task interface class-wide type.
26100 (Analyze_Attribute): Add semantic check for attribute 'Identity whenever
26101 the prefix is of a task interface class-wide type.
26103 * s-vaflop-vms-alpha.adb: Valid_D, Valid_F, Valid_G: Make Val constant
26106 * s-fatgen.ads, s-fatgen.adb (Machine_Rounding): New function
26107 Remove pragma Inline for [Unaligned_]Valid.
26108 Add comments that Valid routines do not work for Vax_Float
26110 * exp_attr.adb: Implement Machine_Rounding attribute
26112 * snames.h: Add entry for Machine_Rounding attribute
26114 2005-11-14 Javier Miranda <miranda@adacore.com>
26115 Robert Dewar <dewar@adacore.com>
26116 Hristian Kirtchev <kirtchev@adacore.com>
26118 * exp_attr.adb (Expand_N_Attribute_Reference, cases of Attribute_Size
26119 and related): For a prefix that is an explicit dereference of an
26120 access to unconstrained packed array type, annotate the dereference
26121 with an actual subtype so GIGI can make a correct size computation.
26122 (Expand_N_Attribute_Reference): In case of 'Unchecked_Access and
26123 'Unrestricted_Access, if the designated type is an interface we
26124 add a type conversion to force the displacement of the pointer
26125 to the secondary dispatch table.
26126 Use Universal_Real instead of Long_Long_Float when we need a high
26127 precision float type for the generated code (prevents gratuitous
26128 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
26129 (Expand_N_Attribute_Reference): Add support for attribute 'Callable and
26130 'Terminated for task interface class-wide objects. Generate a call to
26131 the predefined dispatching routine used to retrieve the _task_id from
26132 a task corresponding record.
26133 (Expand_Fpt_Attribute): Major change to properly handle Vax_Float
26135 * sem_disp.adb: Change name Is_Package to Is_Package_Or_Generic_Package
26136 (Check_Dispatching_Operation): Protect the frontend againts
26137 previously detected errors.
26139 * Makefile.rtl: Add new instantiations of system.fat_gen
26141 * s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads:
26142 Change name of instantiated package for better consistency
26143 with newly added system.fat_gen instantiations.
26145 * s-filofl.ads, s-fishfl.ads, s-fvadfl.ads, s-fvaffl.ads,
26146 s-fvagfl.ads: New files.
26148 2005-11-14 Cyrille Comar <comar@adacore.com>
26149 Thomas Quinot <quinot@adacore.com>
26151 * exp_ch5.adb (Expand_N_Assignment_Statement, Tagged_Case): For an
26152 assignment of a value of a tagged type that has been rewritten to a
26153 block statement, it is known by construction that no checks are
26154 necessary for the statements within the block: analyze it with checks
26156 (Expand_N_If_Statement): When killing a dead then-branch in an
26157 if-statement that has elsif_parts, recompute the Current_Value node
26158 for any entity whose value is known from the condition of the first
26160 (Expand_N_Return_Statement): When returning a mutable record, convert
26161 the return value into its actual subtype in order to help the backend
26162 to return the actual size instead of the maximum. This is another
26163 aftermath of not returning mutable records on the sec-stack anymore.
26165 * sem_ch5.ads, sem_ch5.adb (Analyze_Iteration_Scheme): Minor change to
26166 handling of error msg for suspicious reverse range iteration.
26167 (Check_Possible_Current_Value_Condition): Move declaration from body to
26168 spec, to allow this subprogram to be called from exp_ch5.
26170 2005-11-14 Thomas Quinot <quinot@adacore.com>
26172 * exp_dist.adb (Append_Array_Traversal): Modify constrained case to
26173 generate a set of nested array aggregates instead of a single flat
26174 aggregate for multi-dimensional arrays.
26176 2005-11-14 Pascal Obry <obry@adacore.com>
26178 * expect.c (__gnat_kill) [Win32]: Fix implementation, the pid returned
26179 by spawnve is a process handle, no need to convert. Add a parameter
26180 close to control wether the process handle must be closed.
26181 (__gnat_waitpid): Fix implementation, the pid returned by spawnve is
26182 a process handle, not need to convert.
26183 (__gnat_kill) [*]: Add dummy parameter close to match the Win32 spec.
26185 * g-expect.adb: (Kill): Document the new close parameter.
26186 (Close): Do not release the process handle in the kill there as
26187 waitpid() is using it.
26188 (Send_Signal): Release the process handle.
26190 2005-11-14 Robert Dewar <dewar@adacore.com>
26192 * exp_fixd.adb: Use Universal_Real instead of Long_Long_Float when we
26193 need a high precision float type for the generated code (prevents
26194 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
26197 * exp_imgv.adb: Use Universal_Real instead of Long_Long_Float when we
26198 need a high precision float type for the generated code (prevents
26199 gratuitous Vax_Float stuff when pragma Float_Representation (Vax_Float)
26201 (Expand_Width_Attribute): In configurable run-time, the attribute is not
26202 allowed on non-static enumeration subtypes. Force a load error to emit
26203 the correct diagnostic.
26205 2005-11-14 Thomas Quinot <quinot@adacore.com>
26206 Robert Dewar <dewar@adacore.com>
26207 Ed Schonberg <schonberg@adacore.com>
26209 * exp_intr.adb (Expand_Unc_Deallocation): If GIGI needs an actual
26210 subtype to compute the size of the designated object at run-time,
26211 create such a subtype and store it in the Actual_Designated_Subtype
26212 attribute of the N_Free_Statement.
26213 Generate itype for classwide designated object in both cases of
26214 user-specified storage pool: specific and class-wide, not only in the
26216 Raise CE when trying to set a not null access type object to null.
26217 (Expand_Dispatching_Constructor_Call): Retrieve subprogram actual with
26218 an explicit loop, because freeze nodes make its position variable.
26220 * sem_intr.adb (Check_Intrinsic_Call): Given warning for freeing not
26223 2005-11-14 Javier Miranda <miranda@adacore.com>
26225 * exp_strm.adb (Build_Stream_Attr_Profile, Build_Stream_Function,
26226 Build_Stream_Procedure): Add the null-excluding attribute to the first
26228 This has no semantic meaning under Ada95 mode but it is a
26229 requirement under Ada05 mode.
26231 * par-ch3.adb (P_Access_Definition): Addition of warning message if
26232 the null exclusion is used under Ada95 mode
26233 (P_Null_Exclusion): The qualifier has no semantic meaning in Ada 95.
26234 (P_Access_Definition): Remove assertion that forbids the use of
26235 the null-exclusion feature in Ada95.
26237 2005-11-14 Robert Dewar <dewar@adacore.com>
26239 * impunit.adb: Exclude container helper units not intended for use by
26242 2005-11-14 Ed Schonberg <schonberg@adacore.com>
26244 * freeze.adb (Freeze_Entity): For an access formal that is an access
26245 to subprogram, freeze the anonymous subprogram type at the same time,
26246 to prevent later freezing in the wrong scope, such as the enclosing
26248 (Freeze_Entity): Freeze the equivalent_type of an access_to_protected_
26249 subprogram whenever available.
26251 2005-11-14 Arnaud Charlet <charlet@adacore.com>
26254 * gnatvsn.ads (Library_Version): Bump to 4.1
26256 2005-11-14 Robert Dewar <dewar@adacore.com>
26258 * g-debpoo.adb (Set_Valid): Use Integer_Address instead of
26259 Storage_Offset to avoid wrap around causing invalid results.
26261 2005-11-14 Pascal Obry <obry@adacore.com>
26263 * gnatbind.adb (Is_Cross_Compiler): New function returning True for
26265 (Scan_Bind_Arg): Fail with an error message if -M option is used
26266 on a native compiler.
26268 2005-11-14 Robert Dewar <dewar@adacore.com>
26269 Vincent Celier <celier@adacore.com>
26271 * gprep.adb: Implement -C switch to scan comments
26273 * scng.adb: Scan comment symbol separately if Replace_In_Comments set
26275 * scans.ads: Comment updates (including new use of Tok_Comment in
26278 * opt.ads: Add documentation for flags that are used by gprmake,
26279 currently and in the next version of gprmake.
26280 (Verbosity_Level): New variable
26281 Add Replace_In_Comments switch
26283 * vms_data.ads: Add VMS equivalent for new gnatmake switches -vl, -vm
26285 Add /REPLACE_IN_COMMENTS for gnatprep -C switch
26287 2005-11-14 Arnaud Charlet <charlet@adacore.com>
26289 * g-regpat.adb (Fail): raise Expression_Error including the diagnostic
26290 message, friendlier.
26292 2005-11-14 Robert Dewar <dewar@adacore.com>
26294 * g-spitbo.adb: (Hash): Rotate by 3 instead of 1
26296 2005-11-14 Doug Rupp <rupp@adacore.com>
26298 * init.c [VMS]: Don't install __gnat_error_handler if DBG$TDBG defined.
26300 2005-11-14 Robert Dewar <dewar@adacore.com>
26302 * interfac.ads: Change declarations of IEEE float types so that we no
26303 longer need a separate version of this package for VMS.
26305 2005-11-14 Ed Schonberg <schonberg@adacore.com>
26307 * lib-xref.adb (Generate_Definition, Generate_Reference): Treat the
26308 internal entity created for the declaration of a child subprogram body
26309 with no spec as coming from source, to generate proper cross-reference
26312 2005-11-14 Vincent Celier <celier@adacore.com>
26314 * make.adb (Compile_Sources): Change verbose message to minimum
26315 verbosity level High for "is in an Ada library", "is a read-only
26316 library" and "is an internal library",
26317 (Create_Binder_Mapping_File): Path name of ALI file for library project
26318 must include the library directory, not the object directory.
26319 (Scan_Make_Arg): Make sure that Switch.M.Scan_Make_Switches is called
26320 for new switches -vl, -vm and -vh.
26321 (Verbose_Msg): Add new defaulted parameter Minimum_Verbosity
26322 (Check): Use minimum verbosity Medium for some Verbose_Msg calls
26323 (Compile_Sources): Do not attempt to compile if an ALI file is missing
26324 in a project that is externally built.
26325 (Compute_All_Imported_Projects): New procedure
26326 (Gnatmake): Check if importing libraries should be regenerated because
26327 at least an imported library is more recent.
26328 (Initialize): For each project compute the list of the projects it
26329 imports directly or indirectly.
26330 (Add_Library_Search_Dir): New procedure, used in place of
26331 Add_Lib_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
26332 put in the search paths.
26333 (Add_Source_Search_Dir): New procedure, used in place of
26334 Add_Src_Search_Dir in procedure Scan_Make_Arg so that absolute paths are
26335 put in the search paths.
26336 (Mark_Directory): Resolve the absolute path the directory before marking
26339 * switch-m.adb (Scan_Make_Switches): Replace "raise Bad_Switch;" with
26340 call to new procedure Bad_Switch. Call Scan_Pos with new parameter
26341 Switch. Do not handle any exception.
26342 (Scan_Make_Switches): Increment Ptr for new switches -vl, -vm and -vh
26343 so that the switch is recognized as valid.
26344 (Scan_Make_Switches): Implement new switches -vl, -vm and -vh.
26346 2005-11-14 GNAT Script <nobody@adacore.com>
26348 * Make-lang.in: Makefile automatically updated
26350 2005-11-14 Pascal Obry <obry@adacore.com>
26352 * mdll.adb (Build_Reloc_DLL): Fix parameter handling when a map file is
26354 (Ada_Build_Reloc_DLL): Fix parameter handling when a map file is used.
26355 In both cases the last argument was dropped.
26357 2005-11-14 Eric Botcazou <ebotcazou@adacore.com>
26359 * namet.h: (Column_Numbe): New type.
26360 (Get_Column_Number): Define to sinput__get_column_number.
26361 (Instantiation): Define to sinput__instantiation.
26362 (Get_Column_Number): Declare.
26363 (Instantiation): Likewise.
26365 2005-11-14 Robert Dewar <dewar@adacore.com>
26367 * par-ch10.adb (P_Compilation_Unit): Add defenses against junk unit
26368 syntax, which could cause compiler hangs.
26370 2005-11-14 Vincent Celier <celier@adacore.com>
26372 * prj-ext.adb: Take into account new environment variable
26373 GPR_PROJECT_PATH. Warn if both GPR_PROJECT_PATH and ADA_PROJECT_PATH
26375 (Prj.Ext elaboration): For each directory in the ADA_PROJECT_PATH,
26376 normalize its path name, making it absolute and resolving symbolic
26377 links, and replace the original if resolved path is different.
26379 2005-11-14 Vincent Celier <celier@adacore.com>
26381 * prj-part.adb (Create_Virtual_Extending_Project): Put virtual project
26382 into Prj.Tree.Tree_Private_Part.Projects_Htable for GPS.
26384 2005-11-14 Emmanuel Briot <briot@adacore.com>
26386 * prj-pp.adb (Print): Do not output the with statement if the
26387 associated name is empty, which happens for virtual extending projects.
26388 (Print): Preserve the "extends all" attribute when printing the project.
26390 * prj-tree.ads (String_Value_Of): Add comment about returned value for
26391 a virtual extending project.
26393 2005-11-14 Ed Schonberg <schonberg@adacore.com>
26395 * sem_aggr.adb (Resolve_Aggregate): An others choice is legal on the
26396 rhs of an assignment even if the type is unconstrained, when the
26397 context is non-expanding.
26398 In an inlined body, if the context type is private,
26399 resolve with its full view, which must be a composite type.
26401 2005-11-14 Robert Dewar <dewar@adacore.com>
26402 Ed Schonberg <schonberg@adacore.com>
26404 * sem_ch10.adb: Change name Is_Package to Is_Package_Or_Generic_Package
26405 Do not give obsolescent warning on with of subprogram (since we
26407 (Analyze_With_Clause): Add test for obsolescent package
26408 (Install_Context_Clauses): If the unit is the body of a child unit, do
26409 not install twice the private declarations of the parents, to prevent
26410 circular lists of Use_Clauses in a parent.
26411 (Implicit_With_On_Parent): Do add duplicate with_clause on parent when
26412 compiling body of child unit.
26413 Use new class N_Subprogram_Instantiation
26414 (Expand_With_Clause): If this is a private with_clause for a child unit,
26415 appearing in the context of a package declaration, then the implicit
26416 with_clauses generated for parent units are private as well.
26417 (License_Check): Do not generate message if with'ed unit is internal
26419 2005-11-14 Gary Dismukes <dismukes@adacore.com>
26420 Ed Schonberg <schonberg@adacore.com>
26421 Thomas Quinot <quinot@adacore.com>
26423 * sem_ch12.ads, sem_ch12.adb (Map_Entities): Exclude entities whose
26424 names are internal, because they will not have a corresponding partner
26425 in the actual package.
26426 (Analyze_Formal_Package): Move the setting of the formal package spec's
26427 Generic_Parent field so that it occurs prior to analyzing the package,
26428 to allow proper operation of Install_Parent_Private_Declarations.
26429 (Analyze_Package_Instantiation): Set the instantiated package entity's
26430 Package_Instantiation field.
26431 (Get_Package_Instantiation_Node): Move declaration to package spec.
26432 Retrieve the N_Package_Instantiation node when the Package_Instantiation
26434 (Check_Generic_Child_Unit): Within an inlined call, the only possible
26435 instantiation is Unchecked_Conversion, for which no parents are needed.
26436 (Inline_Instance_Body): Deinstall and record the use_clauses for all
26437 parent scopes of a scope being removed prior to inlining an instance
26439 (Analyze_Package_Instantiation): Do not perform front-end inlining when
26440 the current context is itself an instance within a non-instance child
26441 unit, to prevent scope stack errors.
26442 (Save_References): If the node is an aggregate that is an actual in a
26443 call, rewrite as a qualified expression to preserve some type
26444 information, to resolve possible ambiguities in the instance.
26445 (Instance_Parent_Unit): New global variable to record the ultimate
26446 parent unit associated with a generic child unit instance (associated
26447 with the existing Parent_Unit_Visible flag).
26448 (type Instance_Env): New component Instance_Parent_Unit for stacking
26449 parents recorded in the global Instance_Parent_Unit.
26450 (Init_Env): Save value of Instance_Parent_Unit in the Instance_Env
26452 (Install_Spec): Save the parent unit entity in Instance_Parent_Unit when
26453 it's not a top-level unit, and only do this if Instance_Parent_Unit is
26454 not already set. Replace test of Is_Child_Unit with test of parent's
26455 scope against package Standard. Add comments and a ??? comment.
26456 (Remove_Parent): Revise condition for resetting Is_Immediately_Visible
26457 on a child instance parent to test that the parent equals
26458 Instance_Parent rather than simply checking that the unit is not a
26460 (Restore_Env): Restore value of Instance_Parent_Unit from Instance_Env.
26461 (Validate_Derived_Interface_Type_Instance): Verify that all ancestors of
26462 a formal interface are ancestors of the corresponding actual.
26463 (Validate_Formal_Interface_Type): Additional legality checks.
26464 (Analyze_Formal_Derived_Interface_Type): New procedure to handle formal
26465 interface types with ancestors.
26466 (Analyze_Formal_Package): If formal is a renaming, use renamed entity
26467 to diagnose attempts to use generic within its own declaration.
26469 2005-11-14 Ed Schonberg <schonberg@adacore.com>
26470 Javier Miranda <miranda@adacore.com>
26472 * sem_ch3.ads, sem_ch3.adb (Build_Discriminal): Add link to original
26474 (Build_Private_Derived_Type): The entity of the created full view of the
26475 derived type does not come from source. If after installing the private
26476 declarations of the parent scope the parent is still private, use its
26477 full view to construct the full declaration of the derived type.
26478 (Build_Derived_Record_Type): Relax the condition that controls the
26479 execution of the check that verifies that the partial view and
26480 the full view agree in the set of implemented interfaces. In
26481 addition, this test now only takes into account the progenitors.
26482 (Derive_Interface_Subprograms): No need to derive subprograms
26483 of ancestors that are interfaces.
26484 (Derive_Subprograms): Remove formal No_Predefined_Prims and the
26486 Change name Is_Package to Is_Package_Or_Generic_Package
26487 (Complete_Subprograms_Derivation): Handle the case in which the full
26488 view is a transitive derivation of the ancestor of the partial view.
26489 (Process_Full_View): Rename local subprogram Find_Interface_In_
26490 Descendant to Find_Ancestor_Interface to leave the code more clear.
26491 Remove wrong code that avoids the generation of an error message
26492 when the immediate ancestor of the partial view is an interface.
26493 In addition some minor reorganization of the code has been done to
26494 leave it more clear.
26495 (Analyze_Type_Declaration): If type has previous incomplete tagged
26496 partial view, inherit properly its primitive operations.
26497 (Collect_Interfaces): Make public, for analysis of formal
26499 (Analyze_Interface_Declaration): New procedure for use for regular and
26500 formal interface declarations.
26501 (Build_Derived_Record_Type): Add support for private types to the code
26502 that checks if a tagged type implements abstract interfaces.
26503 (Check_Aliased_Component_Type): The test applies in the spec of an
26505 (Access_Type_Declaration): Clean up declaration of malformed type
26506 declared as an access to its own classwide type, to prevent cascaded
26508 (Collect_Interfaces): For private extensions and for derived task types
26509 and derived protected types, the parent may be an interface that must
26510 be included in the interface list.
26511 (Access_Definition): If the designated type is an interface that may
26512 contain tasks, create Master_Id for it before analyzing the expression
26513 of the declaration, which may be an allocator.
26514 (Record_Type_Declaration): Set properly the interface kind, for use
26515 in allocators, the creation of master id's for task interfaces, etc.
26517 2005-11-14 Javier Miranda <miranda@adacore.com>
26518 Ed Schonberg <schonberg@adacore.com>
26520 * sem_ch6.adb (Check_Conformance): The null-exclusion feature can be
26521 omitted in case of stream attribute subprograms.
26522 (Check_Inline_Pragma): Handle Inline and Inline_Always pragmas that
26523 appear immediately after a subprogram body, when there is no previous
26524 subprogram declaration.
26525 Change name Is_Package to Is_Package_Or_Generic_Package
26526 (Process_Formals): A non null qualifier on a non null named access
26527 type is not an error, and is a warning only if Redundant_Constructs
26530 2005-11-14 Gary Dismukes <dismukes@adacore.com>
26531 Ed Schonberg <schonberg@adacore.com>
26533 * sem_ch7.adb (Install_Parent_Private_Declarations): New procedure
26534 nested within Analyze_Package_Specification to install the private
26535 declarations and use clauses within each of the parent units of a
26536 package instance of a generic child package.
26537 (Analyze_Package_Specification): When entering a private part of a
26538 package associated with a generic instance or formal package, the
26539 private declarations of the parent must be installed (by calling new
26540 procedure Install_Parent_Private_Declarations).
26541 Change name Is_Package to Is_Package_Or_Generic_Package
26542 (Preserve_Full_Attributes): For a synchronized type, the corresponding
26543 record is absent in a generic context, which does not indicate a
26546 2005-11-14 Ed Schonberg <schonberg@adacore.com>
26548 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic context, do
26549 not try to rewrite a renamed stream attribute, because the operations
26550 on the type may not have been generated.
26551 Handle properly a renaming_as_body generated for a stream operation
26552 whose default is abstract because the object type itself is abstract.
26553 (Find_Type): If the type is incomplete and appears as the prefix of a
26554 'Class reference, it is tagged, and its list of primitive operations
26555 must be initialized properly.
26556 (Chain_Use_Clauses): When chaining the use clauses that appear in the
26557 private declaration of a parent unit, prior to compiling the private
26558 part of a child unit, find on the scope stack the proper parent entity
26559 on which to link the use clause.
26560 (Note_Redundant_Use): Emit a warning when a redundant use clause is
26562 (Analyze_Object_Renaming): An attribute reference is not a legal object
26563 if it is not a function call.
26565 2005-11-14 Robert Dewar <dewar@adacore.com>
26566 Ed Schonberg <schonberg@adacore.com>
26568 * sem_eval.adb: Implement d.f flag
26569 (Subtype_Statically_Match): A generic actual type has unknown
26570 discriminants when the corresponding actual has a similar partial view.
26571 If the routine is called to validate the signature of an inherited
26572 operation in a child instance, the generic actual matches the full view,
26574 2005-11-14 Hristian Kirtchev <kirtchev@adacore.com>
26575 Ed Schonberg <schonberg@adacore.com>
26576 Robert Dewar <dewar@adacore.com>
26577 Thomas Quinot <quinot@adacore.com>
26579 * sem_res.adb (Resolve_Call): Provide a better error message whenever
26580 a procedure call is used as a select statement trigger and is not an
26581 entry renaming or a primitive of a limited interface.
26582 (Valid_Conversion): If the operand has a single interpretation do not
26583 remove address operations.
26584 (Check_Infinite_Recursion): Skip freeze nodes when looking for a raise
26585 statement to inhibit warning.
26586 (Resolve_Unary_Op): Do not produce a warning when
26587 processing an expression of the form -(A mod B)
26588 Use Universal_Real instead of Long_Long_Float when we need a high
26589 precision float type for the generated code (prevents gratuitous
26590 Vax_Float stuff when pragma Float_Representation (Vax_Float) used)
26591 (Resolve_Concatenation_Arg): Improve error message when argument is an
26592 ambiguous call to a function that returns an array.
26593 (Make_Call_Into_Operator, Operand_Type_In_Scope): Do not check that
26594 there is an implicit operator in the given scope if we are within an
26595 instance: legality check has been performed on the generic.
26596 (Resolve_Unary_Op): Apply warnings checks on argument of Abs operator
26597 after resolving operand, to avoid false warnings on overloaded calls.
26599 2005-11-14 Ed Schonberg <schonberg@adacore.com>
26600 Javier Miranda <miranda@adacore.com>
26603 * sem_type.adb (Covers): In an inlined body, a composite type matches
26604 a private type whose full view is a composite type.
26605 (Interface_Present_In_Ancestor): Protect the frontend against
26606 previously detected errors to ensure that its compilation
26607 with assertions enabled gives the same output that its
26608 compilation without assertions.
26609 (Interface_Present_In_Ancestor): Add support for private types.
26610 Change name In_Actual to In_Generic_Actual (clean up)
26611 (Disambiguate): New predicate In_Actual, to recognize expressions that
26612 appear in the renaming declaration generated for generic actuals, and
26613 which must be resolved in the outer context.
26615 2005-11-14 Robert Dewar <dewar@adacore.com>
26616 Thomas Quinot <quinot@adacore.com>
26617 Hristian Kirtchev <kirtchev@adacore.com>
26618 Ed Schonberg <schonberg@adacore.com>
26620 * sem_util.ads, sem_util.adb: Change name Is_Package to
26621 Is_Package_Or_Generic_Package.
26622 (Check_Obsolescent): New procedure.
26623 (Set_Is_Public): Remove obsolete junk test.
26624 (Set_Public_Status): Do not set Is_Public on an object whose declaration
26625 occurs within a handled_sequence_of_statemets.
26626 (Is_Controlling_Limited_Procedure): Factor some of the logic, account
26627 for a parameterless procedure.
26628 (Enter_Name): Recognize renaming declarations created for private
26629 component of a protected type within protected operations, so that
26630 the source name of the component can be used in the debugger.
26632 2005-11-14 Ed Schonberg <schonberg@adacore.com>
26633 Robert Dewar <dewar@adacore.com>
26635 * sem_warn.ads, sem_warn.adb (Publicly_Referenceable): Generic formals
26636 of a generic subprogram are not visible outside the body.
26637 (Set_Warning_Switch): New procedure (code to set warning mode moved
26638 here from Switch.C so that it can be shared by pragma processing.
26639 (Check_References): Special case warning for non-modified non-imported
26641 * par-prag.adb: Modify processing of pragma Warnings to accomodate new
26642 form with a string literal argument
26644 2005-11-14 Javier Miranda <miranda@adacore.com>
26646 * s-finroo.ads, s-finroo.adb (Read): Addition of "not null" to the
26648 (Write): Addition of "not null" to the anonymous access.
26649 (Read): Addition of "not null" to the anonymous access.
26650 (Write): Addition of "not null" to the anonymous access.
26652 * s-strxdr.adb, s-stratt.ads, s-stratt.adb (I_AD, I_AS, I_B, I_C, I_F,
26653 I_I, I_LF, I_LI, I_LLF, I_LLI, I_LLU, I_LU, I_SF, I_SI, I_SSI, I_SSU,
26654 I_SU, I_U, I_WC): Addition of "not null" to the anonymous access.
26655 (W_AD, W_AS, W_B, W_C, W_F, W_I, W_LF, W_LI, W_LLF, W_LLI, W_LLU,
26656 W_LU, W_SF, W_SI, W_SSI, W_SSU, W_SU, W_U, W_WC): Addition of
26657 "not null" to the anonymous access.
26659 2005-11-14 Robert Dewar <dewar@adacore.com>
26661 * s-stoele.adb: Fix code for Address mod Storage_Offset for negative
26664 2005-11-14 Vincent Celier <celier@adacore.com>
26666 * switch.adb (Bad_Switch): New procedure
26667 (Scan_Nat, Scan_Pos): Directly call Osint.Fail with the appropriate
26668 message when in error.
26670 * switch.ads (Bad_Switch, Bad_Switch_Value, Missing_Switch_Value,
26671 Too_Many_Output_Files): Remove declarations, no longer used.
26672 (Scan_Nat): New parameter Switch
26674 (Bad_Switch): New procedure
26676 * switch-b.adb (Scan_Binder_Switches): Replace "raise Bad_Switch;"
26677 with call to new procedure Bad_Switch. Call Scan_Pos and Scan_Natwith
26678 new parameter Switch. Replace "raise Too_Many_Output_Files;" with call
26679 to Osint.Fail. Do not handle any exception.
26681 2005-11-14 Vincent Celier <celier@adacore.com>
26683 * tempdir.adb (Tempdir): Do not use environment variable TMPDIR if it
26684 designates a non existent directory.
26686 2005-11-14 Robert Dewar <dewar@adacore.com>
26688 * xgnatugn.adb: Replace invalid membership test by 'Valid
26690 2005-11-14 Vincent Celier <celier@adacore.com>
26692 * makegpr.adb (Gprmake): Do not attempt to build the global archive if
26693 there is no object directory.
26695 2005-11-14 Robert Dewar <dewar@adacore.com>
26697 * usage.adb: Minor adjustment to output format, use nn instead of nnn
26698 (so that -gnateInnn does not run into next column)
26700 2005-11-14 Ed Falis <falis@adacore.com>
26702 * s-bitops.adb (Bits_Array): corrected comment: "unconstrained" =>
26705 2005-11-14 Cyrille Comar <comar@adacore.com>
26707 * s-chepoo.ads: Add comments on Dereference.
26708 Remove unnecessary inherited abstract primitives.
26711 2005-11-14 Robert Dewar <dewar@adacore.com>
26713 * sem_cat.ads (Validate_Access_Type_Declaration): Remove declaration
26714 node parameter, not needed, since it is available as Declaration_Node.
26716 2005-11-14 Geert Bosch <bosch@adacore.com>
26718 * s-exnllf.adb (Exn_LLF): Fix comment to be more precise and
26719 grammatically correct.
26721 2005-11-14 Vincent Celier <celier@adacore.com>
26723 * s-fileio.ads: Correct spelling error in comment
26725 2005-11-14 Cyrille Comar <comar@adacore.com>
26726 Robert Dewar <dewar@adacore.com>
26727 Vincent Celier <celier@adacore.com>
26728 Ben Brosgol <brosgol@adacore.com>
26729 Jose Ruiz <ruiz@adacore.com>
26730 Pascal Obry <obry@adacore.com>
26733 Document that -fstack-check is needed for strict compliance with the
26734 Ada 95 Reference Manual.
26735 Correct reference to VAX systems to meet HP guidelines
26736 Add documentation for new gnatmake switches -vl, -vm and -vh
26737 Replace DEC Ada by HP Ada
26738 Replace DIGITAL by HP
26739 Remove empty section on tools in compatibility section
26740 Clarify the Windows convention semantics.
26741 Document the Win32 calling convention.
26742 The Stdcall, Win32 and DLL convention are synonyms.
26743 Add a note in -gnatR description about zero size record components
26744 Note on new >= and <= warnings for -gnatwc
26745 Document that equal sign after -gnatm is optional.
26746 Note that strip is working fine on DLL built with a Library
26747 Project. The restriction apply only to DLL built with gnatdll.
26748 Update section about the way to debug a DLL.
26749 Update information about the DLL convention.
26750 Document -C switch for gnatprep
26751 Document new attribute Library_ALI_Dir
26752 Update elaboration doc to include implicit Elaborate pragmas now
26753 generated for subprogram instantiations.
26754 Document limitation on executable names that include spaces for --GCC,
26755 --GNATBIND, and --GNATLINK switches.
26756 Document that -w causes -gnatws to be added at start of gcc switches
26758 * gnat_rm.texi: Document that -mieee is needed for generating infinite
26759 and NaN values in case of overflow on machines that are not fully
26760 compliant with the IEEE floating-point standard.
26761 Create a section describing the set of compiler options needed for
26762 strict compliance with the Ada 95 Reference Manual.
26763 Add documentation for pragma Obsolescent applied to a package
26764 Clarify potential issues of mixed language programs related to the
26765 I/O buffering enabling in the elaboration of the GNAT runtime.
26766 Add extra documentation for pragma Restrictions (No_Elaboration_Code)
26767 This documentation only patch adds extra documentsion for pragma
26768 Restrictions (No_Elaboration_Code), explaining why it is not possible
26769 to document this restriction in terms of allowed source constructs.
26770 Document string literal form of pragma Warnings
26771 Document new attribute Library_ALI_Dir
26772 Add documentation on stable attributes in project files that was missing
26774 * gnat-style.texi: Indicate that paragraphs within a single comment
26775 should be separated by empty comment lines
26777 * ug_words: Added replacements for -gnat95 and -gnat05 (/95 and
26780 * bindusg.adb: Minor cleanup, put -m before -M for consistency
26782 2005-11-14 Robert Dewar <dewar@adacore.com>
26784 * a-secain.adb, a-slcain.adb, a-shcain.adb, a-chtgke.ads, a-chtgke.adb,
26785 a-stwiha.adb, a-strhas.adb, a-chzla1.ads, a-chzla9.ads, a-stzbou.adb,
26786 a-stzbou.ads, a-stzfix.adb, a-stzhas.adb, a-stzmap.adb, a-stzmap.ads,
26787 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads, a-stzunb.adb,
26788 a-stzunb.ads, a-szuzha.adb, a-szuzha.ads, a-szuzti.adb, a-szuzti.ads,
26789 a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb, a-ztcstr.adb, a-ztcstr.ads,
26790 a-ztdeau.adb, a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
26791 a-ztedit.ads, a-ztenau.ads, a-ztenio.adb, a-ztenio.ads, a-ztexio.adb,
26792 a-ztexio.ads, a-ztfiio.adb, a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads,
26793 a-ztflio.adb, a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
26794 a-ztinau.ads, a-ztinio.adb, a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads,
26795 a-zttest.adb, g-enblsp-vms-alpha.adb, g-enblsp-vms-alpha.adb,
26796 g-enblsp-vms-ia64.adb, g-enblsp-vms-ia64.adb, system-linux-hppa.ads,
26797 a-chacon.adb, a-chacon.ads, a-wichun.adb, a-wichun.ads, a-zchuni.adb,
26798 a-zchuni.ads, g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb,
26799 system-hpux-ia64.ads, g-soccon-unixware.ads, g-soliop-unixware.ads,
26800 g-soccon-interix.ads, g-soliop-solaris.ads, g-eacodu-vms.adb,
26801 g-expect-vms.adb, g-socthi-vms.adb, g-soliop-mingw.ads,
26802 a-intnam-unixware.ads, a-intnam-lynxos.ads, a-intnam-tru64.ads,
26803 a-intnam-aix.ads, a-intnam-linux.ads, a-intnam-linux.ads,
26804 a-intnam-dummy.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
26805 a-intnam-solaris.ads, a-calend-vms.adb, a-calend-vms.ads,
26806 a-intnam-vms.ads, a-calend-mingw.adb, a-intnam-mingw.ads,
26807 a-intnam-vxworks.ads, a-numaux-vxworks.ads, system-unixware.ads,
26808 system-linux-ia64.ads, a-intnam-freebsd.ads, system-freebsd-x86.ads,
26809 system-lynxos-ppc.ads, system-linux-x86_64.ads, a-stunha.adb,
26810 a-cgaaso.ads, a-cgaaso.adb, a-chtgop.adb, a-cgcaso.adb, a-cgarso.adb,
26811 a-cohata.ads, a-crbtgk.adb, a-crbltr.ads, a-coprnu.adb, a-rbtgso.adb,
26812 a-intnam-darwin.ads, system-darwin-ppc.ads, gprmake.adb, makegpr.ads,
26813 system-tru64.ads, system-aix.ads, system-solaris-x86.ads,
26814 system-irix-o32.ads, s-interr-sigaction.adb, system-irix-n32.ads,
26815 s-parame-mingw.adb, system-hpux.ads, s-traceb-hpux.adb,
26816 system-linux-x86.ads, s-inmaop-dummy.adb, system-os2.ads,
26817 system-interix.ads, system-solaris-sparc.ads,
26818 system-solaris-sparcv9.ads, s-inmaop-vms.adb,
26819 s-mastop-vms.adb, expander.adb, expander.ads, s-gloloc-mingw.adb,
26820 system-mingw.ads, system-vms-zcx.ads, s-osinte-fsu.adb,
26821 s-traceb-mastop.adb, a-exextr.adb, a-exstat.adb, a-filico.ads,
26822 a-finali.ads, a-interr.ads, a-intsig.adb, a-intsig.ads,
26823 a-except.ads, a-numaux-x86.ads, a-astaco.adb, a-calend.adb,
26824 a-calend.ads, a-chahan.adb, a-chahan.ads, a-chlat9.ads,
26825 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
26826 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
26827 a-elchha.adb, a-decima.adb, a-decima.ads, a-diocst.ads,
26828 a-direio.adb, a-direio.ads, a-excach.adb, a-excach.adb,
26829 a-exctra.ads, ali-util.adb, a-ngcefu.adb, a-ngcoty.adb,
26830 a-ngcoty.ads, a-nudira.adb, a-nudira.ads, a-nuflra.adb,
26831 a-numaux.ads, a-reatim.ads, a-sequio.adb, a-sequio.ads,
26832 a-siocst.ads, a-ssicst.ads, a-stmaco.ads, a-storio.adb,
26833 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
26834 a-strmap.adb, a-strmap.ads, a-strsea.adb, a-strsea.ads,
26835 a-strsup.adb, a-strsup.ads, a-strunb.adb, a-strunb.ads,
26836 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwima.adb,
26837 a-stwima.ads, a-stwise.adb, a-stwise.ads, a-stwisu.adb,
26838 a-stwisu.ads, a-stwiun.adb, a-stwiun.ads, a-suteio.adb,
26839 a-suteio.ads, a-swmwco.ads, a-swuwti.adb, a-swuwti.ads,
26840 a-sytaco.adb, a-sytaco.ads, a-tasatt.adb, a-taside.adb,
26841 a-taside.ads, a-teioed.adb, a-textio.adb, a-textio.ads,
26842 a-ticoau.adb, a-ticoau.ads, a-ticoio.adb, a-tideau.adb,
26843 a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
26844 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
26845 a-tiinio.adb, a-timoau.adb, a-timoio.adb, a-timoio.ads,
26846 a-tiocst.ads, a-titest.adb, atree.adb, a-witeio.adb,
26847 a-witeio.ads, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb,
26848 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtedit.adb,
26849 a-wtedit.ads, a-wtenau.adb, a-wtenio.adb, a-wtfiio.adb,
26850 a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
26851 a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, back_end.adb,
26852 bindgen.adb, butil.adb, butil.ads, checks.ads, cio.c, comperr.adb,
26853 csets.ads, cstand.adb, debug.ads, elists.ads, errno.c, errout.adb,
26854 errout.ads, erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
26855 errutil.ads, err_vars.ads, eval_fat.adb, exp_ch11.adb, exp_ch11.ads,
26856 exp_ch2.adb, exp_ch7.ads, exp_imgv.ads, exp_pakd.adb, exp_prag.adb,
26857 exp_prag.ads, exp_tss.adb, exp_tss.ads, exp_vfpt.ads, fe.h, fmap.adb,
26858 freeze.ads, frontend.adb, frontend.ads, g-arrspl.adb, g-arrspl.ads,
26859 g-awk.adb, g-awk.ads, g-boumai.ads, g-calend.adb, g-calend.ads,
26860 g-catiio.adb, g-comlin.adb, g-comlin.ads, g-comlin.ads, g-comlin.ads,
26861 g-comver.adb, g-crc32.adb, g-crc32.ads, g-ctrl_c.ads, g-curexc.ads,
26862 g-debpoo.ads, g-debuti.adb, g-diopit.adb, g-diopit.ads, g-dirope.adb,
26863 g-dirope.ads, g-dyntab.adb, g-dyntab.ads, g-excact.adb, g-excact.ads,
26864 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.ads, g-flocon.ads,
26865 g-hesorg.ads, g-io.adb, g-locfil.ads, g-md5.adb, g-md5.ads, g-md5.ads,
26866 g-moreex.adb, g-signal.ads, g-signal.adb, gnatbind.ads, gnatchop.adb,
26867 gnatcmd.adb, gnatfind.adb, gnatlbr.adb, gnatmake.ads, gnatmem.adb,
26868 gnatprep.adb, gnatprep.ads, gnatsym.adb, gnatxref.adb, g-os_lib.adb,
26869 g-os_lib.ads, g-pehage.adb, g-pehage.ads, gprep.ads, g-regexp.adb,
26870 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.ads, g-semaph.adb,
26871 g-socthi.adb, g-soliop.ads, g-spipat.adb, g-spipat.ads, g-sptabo.ads,
26872 g-sptain.ads, g-sptavs.ads, g-string.ads, g-tasloc.adb, g-tasloc.ads,
26873 g-trasym.adb, g-trasym.ads, i-fortra.adb, i-fortra.ads, inline.adb,
26874 layout.adb, live.adb, make.ads, makeutl.ads, makeutl.adb, mdll-fil.adb,
26875 mdll-fil.ads, mdll-utl.ads, memroot.ads, memtrack.adb, mlib.ads,
26876 mlib-fil.adb, mlib-fil.ads, mlib-prj.ads, mlib-utl.adb, mlib-utl.ads,
26877 nlists.adb, nlists.ads, osint.adb, osint.ads, osint-c.adb, osint-l.adb,
26878 osint-l.ads, osint-m.ads, output.adb, par.adb, par.adb, par.ads,
26879 par-ch11.adb, par-ch12.adb, par-ch2.adb, par-ch4.adb, par-ch5.adb,
26880 par-ch6.adb, par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
26881 par-tchk.adb, prep.adb, prepcomp.adb, prepcomp.ads, prj-attr.ads,
26882 prj-com.ads, prj-dect.adb, prj-dect.ads, prj-env.ads, prj-err.ads,
26883 prj-ext.ads, prj-makr.adb, prj-makr.ads, prj-nmsc.ads, prj-pars.adb,
26884 prj-pars.ads, prj-part.ads, prj-pp.ads, prj-proc.ads, prj-strt.adb,
26885 prj-strt.ads, prj-tree.adb, prj-util.adb, prj-util.ads, rtsfind.adb,
26886 sem.adb, sem.ads, sem_case.adb, sem_case.ads, sem_ch11.adb,
26887 sem_ch4.adb, sem_ch6.ads, sem_ch7.ads, sem_dist.ads, sem_elab.ads,
26888 sem_elim.ads, sem_eval.ads, sem_intr.ads, sem_maps.adb, sem_maps.ads,
26889 sem_maps.ads, sem_res.ads, sem_type.ads, sfn_scan.adb, sfn_scan.ads,
26890 s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads, s-inmaop.ads, sinput.adb,
26891 sinput.ads, s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads,
26892 s-pack06.adb, s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb,
26893 s-pack09.ads, s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
26894 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb,
26895 s-pack14.ads, s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads,
26896 s-pack18.adb, s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb,
26897 s-pack20.ads, s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
26898 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb,
26899 s-pack25.ads, s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads,
26900 s-pack28.adb, s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb,
26901 s-pack30.ads, s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
26902 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb,
26903 s-pack36.ads, s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads,
26904 s-pack39.adb, s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb,
26905 s-pack41.ads, s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
26906 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb,
26907 s-pack46.ads, s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads,
26908 s-pack49.adb, s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb,
26909 s-pack51.ads, s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
26910 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb,
26911 s-pack56.ads, s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads,
26912 s-pack59.adb, s-pack59.ads, s-pack60.adb, s-pack60.adb, s-pack60.ads,
26913 s-pack61.adb, s-pack61.ads, s-pack62.adb, s-pack62.ads, s-pack63.adb,
26914 s-pack63.ads, s-parint.adb, s-parint.adb, s-parint.ads, sprint.ads,
26915 s-purexc.ads, s-restri.ads, s-restri.adb, s-scaval.adb, s-scaval.ads,
26916 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads, stand.ads,
26917 s-tasuti.adb, s-traceb.adb, s-traceb.ads, stringt.adb, stringt.ads,
26918 styleg.ads, s-valboo.adb, s-valboo.ads, s-valcha.adb, s-valcha.ads,
26919 s-valdec.adb, s-valdec.ads, s-valint.adb, s-valint.ads, s-valint.ads,
26920 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads, s-valllu.adb,
26921 s-valllu.ads, s-valrea.adb, s-valrea.ads, s-valuns.adb, s-valuns.ads,
26922 s-valuti.adb, s-valuti.ads, s-valwch.ads, s-veboop.adb, s-veboop.ads,
26923 s-vercon.adb, s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchcon.ads,
26924 s-wchjis.adb, s-wchjis.ads, s-wchstw.adb, s-wchstw.adb, s-wchstw.ads,
26925 s-wchwts.adb, s-wchwts.ads, s-widboo.adb, s-widboo.ads, s-widcha.adb,
26926 s-widcha.ads, s-widenu.adb, s-widenu.ads, s-widlli.adb, s-widlli.ads,
26927 s-widllu.adb, s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
26928 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, symbols.adb, symbols.ads,
26929 table.ads, targparm.adb, targparm.ads, tb-alvms.c, tb-alvxw.c,
26930 tbuild.adb, tree_io.ads, treepr.adb, treeprs.adt, ttypef.ads,
26931 ttypes.ads, types.adb, uintp.adb, uintp.ads, uname.ads, urealp.ads,
26932 usage.ads, validsw.ads, vxaddr2line.adb, widechar.adb, widechar.ads,
26933 xeinfo.adb, xnmake.adb, xref_lib.ads, xr_tabls.adb, xr_tabls.ads,
26934 xsinfo.adb, xtreeprs.adb, xsnames.adb, vms_conv.ads, vms_conv.adb,
26935 a-dirval.ads, a-dirval.adb, a-dirval-mingw.adb, a-direct.ads,
26936 a-direct.adb, indepsw.ads, prj-attr-pm.ads, system-linux-ppc.ads,
26937 a-numaux-darwin.ads, a-numaux-darwin.adb,
26938 a-swuwha.ads, a-stunha.ads: Minor reformatting
26940 2005-11-14 Robert Dewar <dewar@adacore.com>
26943 * osint-m.adb: Add pragma Elaborate_All for Osint
26945 2005-11-10 Eric Botcazou <ebotcazou@adacore.com>
26948 * trans.c (call_to_gnu): Restore statement lost in translation.
26950 2005-11-08 Eric Botcazou <ebotcazou@adacore.com>
26952 * init.c: Use the Linux-specific section for the IA-64/Linux target.
26953 (__gnat_adjust_context_for_raise): Add conditional code so that the
26954 IA-64 is also supported.
26956 2005-11-03 James E Wilson <wilson@specifix.com>
26959 * trans.c (gnat_to_gnu): Use TYPE_SIZE_UNIT not TYPE_SIZE in
26960 TREE_OVERFLOW check.
26962 2005-09-21 Olivier Hainque <hainque@adacore.com>
26965 * decl.c (maybe_pad_type): Use proper bitsizetype for XVZ objects,
26966 as we create them to store a size in bits.
26968 2005-10-21 Eric Botcazou <ebotcazou@adacore.com>
26976 * utils2.c (build_return_expr): New helper function.
26977 * gigi.h (build_return_expr): Declare it.
26978 * trans.c (Subprogram_Body_to_gnu): Use build_return_expr instead
26979 of manually building the RETURN_EXPR tree.
26980 (call_to_gnu): Pass MODIFY_EXPR through build_binary_op.
26981 (gnat_to_gnu) <N_Return_Statement>: Pass MODIFY_EXPR through
26982 build_binary_op for the "target pointer" case. Use build_return_expr
26983 instead of manually building the RETURN_EXPR tree.
26985 2005-09-16 Laurent Guerby <laurent@guerby.net>
26988 * s-tpinop.ads: Make this unit Preelaborate.
26990 2005-09-16 Andreas Jaeger <aj@suse.de>
26992 * socket.c: Add string.h for memcpy.
26994 2005-09-05 Arnaud Charlet <charlet@adacore.com>
26996 * dec-io.ads, dec-io.adb: Removed, no longer used.
26998 2005-09-01 Arnaud Charlet <charlet@adacore.com>
27000 * a-calend-mingw.adb: Add call to OS_Primitives.Initialize;
27002 * s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
27003 s-taprop-os2.adb, s-taprop-irix-athread.adb, s-taprop-linux.adb,
27004 s-taprop-hpux-dce.adb, s-taprop-irix.adb, s-taprop-tru64.adb,
27005 s-taprop-lynxos.adb: Move with clauses outside Warnings Off now that
27006 dependent units are Preelaborate.
27007 (Initialize): Call Interrupt_Managemeent.Initialize and
27008 OS_Primitives.Initialize to ensure proper initialization of this unit.
27009 Remove use of System.Soft_Links
27010 Make this unit Preelaborate.
27012 * s-stache.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
27013 s-taspri-vms.ads, s-tasinf-solaris.ads, s-taspri-os2.ads,
27014 s-taspri-lynxos.ads, s-taspri-hpux-dce.ads, s-taspri-tru64.ads,
27015 s-tasinf-tru64.ads, s-tasinf-irix.ads, s-tasinf-irix-athread.ads,
27016 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
27017 s-tratas.ads, s-tasinf.ads: Minor reformatting.
27018 Add pragma Preelaborate, since these packages are suitable for this
27022 * s-traent-vms.ads, s-intman-dummy.adb,
27023 s-taprop-dummy.adb: Make this unit Preelaborate.
27025 * s-osprim-vxworks.adb, s-osprim-vms.adb, s-osprim-vms.ads,
27026 s-osprim-mingw.adb, s-intman-vxworks.ads, s-intman-vxworks.adb,
27027 s-intman-vms.adb, s-intman-mingw.adb, s-intman-vms.ads,
27028 s-osprim-unix.adb, s-osprim-os2.adb, s-osprim-solaris.adb,
27029 s-intman-solaris.adb, s-intman-irix-athread.adb,
27030 s-intman-irix.adb: Mark this unit Preelaborate.
27031 (Initialize): New procedure.
27034 * s-taspri-linux.ads: Removed.
27036 * s-tpopsp-solaris.adb (Initialize): Create the key in this procedure,
27037 as done by other implementations (e.g. posix).
27039 * s-taprop.ads (Timed_Delay): Update spec since the caller now is
27040 responsible for deferring abort.
27041 Mark this unit Preelaborate.
27043 * s-taprob.adb, s-tarest.adb: Call System.Tasking.Initialize to ensure
27044 proper initialization of the tasking run-time.
27046 * s-tasdeb.ads: Mark this unit Preelaborate.
27047 (Known_Tasks): Add explicit default value to avoid elaboration code.
27049 * s-inmaop-vms.adb (Elaboration code): Add call to
27050 Interrupt_Management.Initialize since the elaboration code depends on
27051 proper initialization of this package.
27053 * s-intman.ads, s-inmaop-posix.adb, s-intman-posix.adb,
27054 s-osprim.ads, s-taprop-posix.adb, s-taspri-posix.ads,
27055 s-osprim-posix.adb: Make this unit Preelaborate.
27057 * a-calend.adb: Add call to OS_Primitives.Initialize
27059 * a-elchha.adb: Update use of Except.Id.Full_Name.
27060 Minor reformatting.
27061 Remove use of Ada.Exceptions.Traceback when possible, cleaner.
27063 * a-dynpri.adb, a-sytaco.adb, a-sytaco.ads:
27064 Move with clauses outside Warnings Off now that dependent units are
27066 Use raise xxx with "..."; Ada 2005 form.
27068 * a-taside.ads, a-taside.adb:
27069 Remove some dependencies, to make it easier to make this unit truly
27071 Rewrite some code to be conformant with Preelaborate rules.
27073 * g-os_lib.adb: Remove non-preelaborate code so that this unit can be
27074 marked Preelaborate in the future.
27076 * s-proinf.ads, g-string.ads, s-auxdec.ads, s-auxdec-vms_64.ads: Make
27077 these units Preelaborate.
27079 * s-exctab.adb: Update use of Except.Id.Full_Name.
27081 * s-soflin.ads, s-soflin.adb: Mark this unit Preelaborate_05.
27082 (Set_Exc_Stack_Addr_Soft, Get_Exc_Stack_Addr_NT, Set_Exc_Stack_Addr_NT,
27083 Set_Exc_Stack_Addr): Removed, no longer used.
27084 Remove reference to *Machine_State_Addr*, no longer needed.
27086 * s-stalib.ads: Mark this unit as Preelaborate[_05].
27087 (Exception_Data): Full_Name is now a System.Address so that this unit
27088 can be made Preelaborate.
27089 Clean up/simplify code thanks to Full_Name being a System.Address.
27090 Remove obsolete pragma Suppress (All_Checks), no longer needed.
27092 * s-taskin.ads, s-taskin.adb:
27093 Move with clauses outside Warnings Off now that dependent units are
27095 Make this unit Preelaborate.
27096 (Initialize): New proceduure, replace elaboration code and makes the
27097 set up of the tasking run-time cleaner.
27098 (Detect_Blocking): Now a function instead of a deferred boolean, to
27099 obey Preelaborate rules.
27101 * s-tassta.adb (Finalize_Global_Tasks): Remove Get/Set_Exc_Stack_Addr
27102 soft links, no longer used.
27104 * s-traces.ads, s-traent.ads: Add pragma Preelaborate, since these
27105 packages are suitable for this categorization.
27107 * s-solita.adb: Replace use of Ada.Exception by raise xxx with "..."
27108 since we compile run-time sources in Ada 2005 mode.
27109 (Timed_Delay_T): Call Abort_Defer/Undefer around Timed_Delay, to
27110 avoid having s-taprop*.adb depend on s-soflin and to avoid code
27112 Remove reference to *Machine_State_Addr*, no longer needed.
27114 2005-09-01 Arnaud Charlet <charlet@adacore.com>
27116 * s-mastop-tru64.adb, s-mastop-irix.adb, s-mastop-vms.adb
27117 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
27118 Remove reference to System.Exceptions.
27120 * s-mastop-x86.adb: Removed, no longer used.
27122 * s-traceb-mastop.adb: Adjust calls to Pop_Frame.
27124 * a-excach.adb: Minor reformatting.
27126 * a-except.ads, a-except.adb: Remove global Warnings (Off) pragma, and
27127 instead fix new warnings that were hidden by this change.
27128 (AAA, ZZZ): Removed, replaced by...
27129 (Code_Address_For_AAA, Code_Address_For_ZZZ): ... these functions, who
27130 are used instead of constants, to help make Ada.Exception truly
27132 (Rcheck_*, Raise_Constraint_Error, Raise_Program_Error,
27133 Raise_Storage_Error): File is now a System.Address, to simplify code.
27134 (Elab code): Removed, no longer used.
27135 (Null_Occurrence): Remove Warnings Off and make this construct
27137 Remove code related to front-end zero cost exception handling, since
27138 it is no longer used.
27139 Remove -gnatL/-gnatZ switches.
27141 * a-exexda.adb (Append_Info_Exception_Name, Set_Exception_C_Msg):
27142 Update use of Except.Msg.
27144 * gnat1drv.adb, inline.adb, bindgen.adb, debug.adb, exp_ch11.ads,
27145 freeze.adb, frontend.adb, lib.adb, exp_ch11.adb: Remove code related
27146 to front-end zero cost exception handling, since it is no longer used.
27147 Remove -gnatL/-gnatZ switches.
27149 * lib-writ.ads: Minor reformatting
27152 * Makefile.rtl: Remove references to s-except*, s-mastop-x86*
27154 * Make-lang.in: Remove references to s-except.ads
27156 * s-except.ads: Removed, no longer used.
27158 * s-mastop.ads, s-mastop.adb:
27159 (Enter_Handler, Set_Signal_Machine_State): Removed, no longer used.
27160 Remove reference to System.Exceptions.
27162 * raise.h, usage.adb, targparm.adb, targparm.ads, switch-m.adb,
27163 switch-b.adb: Remove code related to front-end zero cost exception
27164 handling, since it is no longer used.
27165 Remove -gnatL/-gnatZ switches.
27167 2005-09-01 Robert Dewar <dewar@adacore.com>
27168 Gary Dismukes <dismukes@adacore.com>
27169 Javier Miranda <miranda@adacore.com>
27171 * exp_ch4.adb (Expand_N_In): Replace test of expression in its own
27172 type by valid test and generate warning.
27173 (Tagged_Membership): Generate call to the run-time
27174 subprogram IW_Membership in case of "Iface_CW_Typ in Typ'Class"
27175 Change formal name Subtype_Mark to Result_Definition in several calls to
27176 Make_Function_Specification.
27177 (Expand_Allocator_Expression): Add tests for suppression of the AI-344
27178 check for proper accessibility of the operand of a class-wide allocator.
27179 The check can be left out if checks are suppressed or if the expression
27180 has a specific tagged type whose level is known to be safe.
27182 * exp_ch5.adb (Expand_N_Assignment_Statement): Simplify the code that
27183 generates the run-time check associated with null-excluding entities.
27184 (Expand_N_Return_Statement): Add tests to determine if the accessibility
27185 check on the level of the return expression of a class-wide function
27186 can be elided. The check usually isn't needed if the expression has a
27187 specific type (unless it's a conversion or a formal parameter). Also
27188 add a test for whether accessibility checks are suppressed. Augment
27189 the comments to describe the conditions for performing the check.
27191 2005-09-01 Hristian Kirtchev <kirtchev@adacore.com>
27192 Javier Miranda <miranda@adacore.com>
27193 Gary Dismukes <dismukes@adacore.com>
27194 Ed Schonberg <schonberg@adacore.com>
27196 * a-tags.adb (IW_Membership): Give support to
27197 "Iface_CW_Typ in T'Class". For this purpose the functionality of this
27198 subprogram has been extended to look for the tag in the ancestors tag
27200 Update the structure of the GNAT Dispatch Table to reflect the
27201 additional two tables used in dispatching selects.
27202 Introduce appropriate array types and record components in
27203 Type_Specific_Data to reflect the two tables.
27204 (Get_Entry_Index, Set_Entry_Index): Retrieve and set the entry index in
27205 the TSD of a tag, indexed by position.
27206 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Retrieve and set the primitive
27207 operation kind in the TSD of a tag, indexed by position.
27209 * a-tags.ads: Introduce an enumeration type to capture different
27210 primitive operation kinds. Define a constant reflecting the number of
27211 predefined primitive operations.
27212 (Get_Entry_Index, Set_Entry_Index): Set and retrieve the entry index
27213 of an entry wrapper.
27214 (Get_Prim_Op_Kind, Set_Prim_Op_Kind): Set and retrieve the kind of
27215 callable entity of a primitive operation.
27217 * exp_ch3.adb (Freeze_Record_Type): Generate the declarations of the
27218 primitive operations used in dispatching selects for limited
27219 interfaces, limited tagged, task and protected types what implement a
27221 (Freeze_Type): Generate the bodies of the primitive operations used in
27222 dispatching selects for limited tagged, task and protected types that
27223 implement a limited interface. Generate statements to populate the two
27224 auxiliary tables used for dispatching in select statements.
27225 (Freeze_Record_Type): Add call to initialize the dispatch table entries
27226 associated with predefined interface primitive operations.
27227 (Build_Dcheck_Function): Change Set_Subtype_Mark to
27228 Set_Result_Definition.
27229 (Build_Variant_Record_Equality): Change Subtype_Mark to
27231 (Freeze_Enumeration_Type): Change Subtype_Mark to Result_Definition.
27232 (Predef_Spec_Or_Body): Change Subtype_Mark to Result_Definition.
27233 (Build_Assignment): Simplify the code that adds the run-time-check.
27234 (Expand_N_Object_Declaration): Code cleanup.
27236 * exp_ch7.adb (Make_Clean): Select the appropriate type for locking
27237 entries when there is a protected type that implements a limited
27240 * exp_ch9.adb: Add package Select_Expansion_Utilities that contains
27241 common routines used in expansion of dispatching selects.
27242 (Add_Private_Declarations): Select the appropriate protection type when
27243 there is a protected type that implements a limited interface.
27244 (Build_Parameter_Block): Generate a wrapped parameter block.
27245 (Build_Protected_Subprogram_Body): Select the appropriate type for
27246 locking entries when there is a protected type that implements a
27248 (Build_Wrapper_Spec): Set the flag and wrapped entity for procedures
27249 classified as entry wrappers.
27250 (Expand_N_Asynchronous_Select): Add support for expansion of dispatching
27251 asynchronous selects.
27252 (Expand_N_Conditional_Entry_Call): Add support for expansion of
27253 dispatching conditional selects.
27254 (Expand_N_Protected_Type_Declaration): Select the appropriate type for
27255 protection when there is a protected type that implements limited
27257 (Expand_N_Timed_Entry_Call): Add support for expansion of dispatching
27259 (Extract_Dispatching_Call): Extract the entity of the name of a
27260 dispatching call, the object parameter, actual parameters and
27261 corresponding formals.
27262 (Make_Initialize_Protection): Correct logic of protection initialization
27263 when there is a protected type that implements a limited interface.
27264 (Parameter_Block_Pack): Populate a wrapped parameter block with the
27265 values of actual parameters.
27266 (Parameter_Block_Unpack): Retrieve the values from a wrapped parameter
27267 block and assign them to the original actual parameters.
27269 * exp_ch9.ads (Subprogram_Protection_Mode): New type.
27270 (Build_Protected_Sub_Specification): Change the type and name of the
27271 last formal to account for the increased variety of protection modes.
27273 * einfo.ads, einfo.adb (Was_Hidden): New attribute. Present in all
27274 entities. Used to save the value of the Is_Hidden attribute when the
27275 limited-view is installed.
27276 (Is_Primitive_Wrapper, Set_Is_Primitive_Wrapper): Retrieve and change
27277 the attribute of procedures classified as entry wrappers.
27278 (Wrapped_Entity, Set_Wrapped_Entity): Retrieve and change the wrapped
27279 entity of a primitive wrapper.
27280 (Write_Entity_Flags): Output the name and value of the
27281 Is_Primitive_Wrapper attribute.
27282 (Write_Field27_Name): Output the name and entity of the field Wrapped_
27284 (Underlying_Type): If we have an incomplete entity that comes from
27285 the limited view then we return the Underlying_Type of its non-limited
27286 view if it is already available.
27287 (Abstract_Interface_Alias): Flag applies to all subrogram kinds,
27288 including operators.
27289 (Write_Field26_Name): Add entry for Overridden_Operation
27290 (Overridden_Operation): New attribute of functions and procedures.
27292 * exp_disp.ads, exp_disp.adb (Default_Prim_Op_Position): Return a
27293 predefined position in the dispatch table for the primitive operations
27294 used in dispatching selects.
27295 (Init_Predefined_Interface_Primitives): Remove the hardcoded number of
27296 predefined primitive operations and replace it with
27297 Default_Prim_Op_Count.
27298 (Make_Disp_Asynchronous_Select_Spec, Make_Disp_Conditional_Select_Spec,
27299 Make_Disp_Get_Prim_Op_Kind_Spec, Make_Disp_Timed_Select_Spec): Update
27300 the names of the generated primitive operations used in dispatching
27302 (Init_Predefined_Interface_Primitives): No need to inherit primitives in
27303 case of abstract interface types. They will be inherit by the objects
27304 implementing the interface.
27305 (Make_DT): There is no need to inherit the dispatch table of the
27306 ancestor interface for the elaboration of abstract interface types.
27307 The dispatch table will be inherited by the object implementing the
27309 (Copy_Secondary_DTs): Add documentation.
27310 (Validate_Position): Improve this static check in case of
27311 aliased subprograms because aliased subprograms must have
27313 (Init_Predefined_Interface_Primitives): New subprogram that initializes
27314 the entries associated with predefined primitives of all the secondary
27316 (Build_Anonymous_Access_Type): Removed.
27317 (Expand_Interface_Actuals): With the previous cleanup there is no need
27318 to build an anonymous access type. This allows further cleanup in the
27319 code generated by the expander.
27320 (Expand_Interface_Conversion): If the actual is an access type then
27321 build an internal function to handle the displacement. If the actual
27322 is null this function returns null because no displacement is
27323 required; otherwise performs a type conversion that will be
27324 expanded in the code that returns the value of the displaced actual.
27325 (Expand_Interface_Actuals): Avoid the generation of unnecessary type
27326 conversions that have no effect in the generated code because no
27327 displacement is required. Code cleanup; use local variables to
27328 avoid repeated calls to the subprogram directly_designated_type().
27330 * exp_util.ads, exp_util.adb (Is_Predefined_Dispatching_Operation):
27331 Classify the primitive operations used in dispatching selects as
27333 (Implements_Limited_Interface): Determine whether some type either
27334 directly implements a limited interface or extends a type that
27335 implements a limited interface.
27336 (Build_Task_Image_Function): Change Subtype_Mark to Result_Definition.
27337 (Expand_Subtype_From_Expr): Do not build actual subtype if the
27338 expression is limited.
27339 (Find_Interface_Tag): Add code to handle class-wide types and
27340 entities from the limited-view.
27342 * rtsfind.ads: Add entries in RE_Id and RE_Unit_Table for
27343 Get_Entry_Index, Get_Prim_Op_Kind, POK_Function, POK_Procedure,
27344 POK_Protected_Entry, POK_Protected_Function, POK_Protected_Procedure,
27345 POK_Task_Entry, POK_Task_Procedure, Prim_Op_Kind, Set_Entry_Index,
27348 * sem_ch9.adb (Analyze_Triggering_Alternative): Check for legal type
27349 of procedure name or prefix that appears as a trigger in a triggering
27352 * uintp.ads: Introduce constants Uint_11 and Uint_13.
27354 2005-09-01 Arnaud Charlet <charlet@adacore.com>
27356 * s-tataat.adb, a-tasatt.adb:
27357 Replace calls to Defer/Undefer_Abortion by Defer/Undefer_Abort.
27359 * s-tasini.ads, s-tasini.adb (Defer_Abortion, Undefer_Abortion): Moved
27360 these procedures to body, and renamed Abort_Defer, Abort_Undefer.
27361 (Get_Exc_Stack_Addr, Set_Exc_Stack_Addr): Removed, no
27364 2005-09-01 Arnaud Charlet <charlet@adacore.com>
27365 Jose Ruiz <ruiz@adacore.com>
27367 * s-taprop-vxworks.adb:
27368 Move with clauses outside Warnings Off now that dependent units are
27370 (Initialize): Call Interrupt_Managemeent.Initialize to ensure proper
27371 initialization of this unit.
27372 (Specific): Add new procedures Initialize and Delete so that this
27373 package can be used for VxWorks 5.x and 6.x
27374 (ATCB_Key, ATCB_Key_Address): Moved to Specific package body to hide
27375 differences between VxWorks 5.x and 6.x
27376 Minor reformatting.
27377 (Timed_Delay): Remove calls to Defer/Undefer_Abort, now performed by
27379 Use only Preelaborate-compatible constructs.
27381 * s-tpopsp-vxworks.adb (ATBC_Key, ATCB_Key_Addr): Moved from
27382 Primitives.Operations.
27383 (Delete, Initialize): New procedures.
27385 * s-osinte-vxworks.adb: Body used to handle differences between
27386 VxWorks 5.x and 6.x
27387 (kill, Set_Time_Slice, VX_FP_TASK): New functions.
27389 * s-osinte-vxworks.ads: Minor reformatting.
27390 Add VxWworks 6.x specific functions (only called from VxWorks 6 files).
27391 (VX_FP_TASK): Now a function, to handle differences between VxWorks 5
27393 (Set_Time_Slice): New function, replacing kerneltimeSlice to share code
27394 between Vxworks 5 and 6.
27395 (taskLock, taskUnlock): Removeed, no longer used.
27397 * adaint.c: The wait.h header is not located in the sys directory on
27398 VxWorks when using RTPs.
27399 (__gnat_set_env_value): Use setenv instead of putenv on VxWorks when
27401 (__gnat_dup): dup is available on Vxworks when using RTPs.
27402 (__gnat_dup2): dup2 is available on Vxworks when using RTPs.
27404 * cal.c: Use the header time.h for Vxworks 6.0 when using RTPs.
27406 * expect.c: The wait.h header is not located in the sys directory on
27407 VxWorks when using RTPs.
27409 2005-09-01 Thomas Quinot <quinot@adacore.com>
27411 * g-soccon-vms.adb: Renamed to g-soccon-vms.ads
27413 * g-soccon-vms.ads: Renamed from g-soccon-vms.adb
27415 * g-soccon.ads, g-soccon-tru64.ads, g-soccon-aix.ads,
27416 g-soccon-darwin.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
27417 g-soccon-solaris.ads, g-soccon-mingw.ads, g-soccon-vxworks.ads,
27418 g-soccon-freebsd.ads: Add new constants:
27420 SO_RCVTIMEO/SO_SNDTIMEO
27424 Move all target-specific file inclusions and macro definitions to
27425 gsocket.h, in order to ensure that any C code in socket.c will see a
27426 set of constants that is consistent with the contents of g-soccon.ads.
27428 * gsocket.h: Code imported from gen-soccon.c:
27429 Move all target-specific file inclusions and macro definitions to
27430 gsocket.h, in order to ensure that any C code in socket.c will see a set
27431 of constants that is consistent with the contents of g-soccon.ads.
27432 This change also makes gen-soccon self-contained (removing dependencies
27433 upon GCC internal headers).
27435 * g-socket.adb (Send_Vector): Make calls to Writev at most IOV_MAX
27437 (To_Inet_Addr): Now a procedure instead of a function, more efficient.
27439 * socket.c: Minor reformatting.
27441 2005-09-01 Ed Schonberg <schonberg@adacore.com>
27442 Thomas Quinot <quinot@adacore.com>
27444 * fname-sf.adb, mlib-tgt.ads,
27445 back_end.adb, casing.adb, g-debpoo.adb, g-excact.adb, g-spipat.adb,
27446 g-spipat.ads, g-thread.adb, lib-list.adb, makeutl.adb, mlib.adb,
27447 osint.adb, par-ch10.adb, par-load.adb, prep.adb, prj.adb, prj-attr.ads,
27448 prj-env.ads, prj-err.adb, prj-err.ads, prj-ext.adb, prj-ext.ads,
27449 prj-makr.adb, prj-makr.ads, prj-pars.ads, prj-part.adb, prj-strt.adb,
27450 prj-tree.ads, prj-util.ads, sem_dist.adb, sinput-c.ads, sinput-l.ads,
27451 sinput-p.ads, styleg-c.ads, xr_tabls.adb, prj-attr-pm.ads,
27452 makegpr.adb: Remove redundant use_clauses.
27454 2005-09-01 Arnaud Charlet <charlet@adacore.com>
27456 * s-stoele.ads, s-stopoo.ads, s-stratt.ads, s-strops.ads, s-unstyp.ads,
27457 s-valboo.ads, s-valcha.ads, s-valdec.ads, s-valenu.ads, s-valint.ads,
27458 s-vallld.ads, s-vallli.ads, s-valllu.ads, s-valrea.ads, s-valuns.ads,
27459 s-valuti.ads, s-valwch.ads, s-veboop.ads, s-vector.ads, s-vercon.ads,
27460 s-wchcnv.ads, s-wchcon.ads, s-wchjis.ads, s-wchstw.ads, s-wchwts.ads,
27461 s-widboo.ads, s-widcha.ads, s-widenu.ads, s-widlli.ads, s-widllu.ads,
27462 s-widwch.ads, s-wwdcha.ads, s-wwdenu.ads, s-wwdwch.ads, system.ads,
27463 table.ads, types.ads, system-vms_64.ads, s-crtl-vms64.ads,
27464 s-addope.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
27465 s-vxwork-x86.ads, system-linux-ppc.ads, i-vxwork-x86.ads,
27466 a-numaux-darwin.ads, a-crbtgo.ads, a-crbtgk.ads, a-crbltr.ads,
27467 a-coprnu.ads, a-convec.ads, a-contai.ads, a-coinve.ads, a-cohata.ads,
27468 a-cohama.ads, a-cihama.ads, a-cidlli.ads, a-cdlili.ads,
27469 a-numaux-libc-x86.ads, a-numaux-vxworks.ads, system-linux-ia64.ads,
27470 system-freebsd-x86.ads, system-unixware.ads, system-lynxos-ppc.ads,
27471 system-lynxos-x86.ads, system-linux-x86_64.ads, system-tru64.ads,
27472 s-vxwork-alpha.ads, system-aix.ads, system-vxworks-sparcv9.ads,
27473 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
27474 s-parame-hpux.ads, system-hpux.ads, system-vxworks-m68k.ads,
27475 s-vxwork-m68k.ads, system-linux-x86.ads, system-vxworks-mips.ads,
27476 s-vxwork-mips.ads, system-os2.ads, system-interix.ads,
27477 s-vxwork-ppc.ads, system-solaris-sparc.ads, s-vxwork-sparcv9.ads,
27478 system-solaris-sparcv9.ads, s-parame-vms.ads, system-vms.ads,
27479 s-osinte-mingw.ads, system-mingw.ads, s-parame-vms-restrict.ads,
27480 system-vms-zcx.ads, s-parame-ae653.ads, system-vxworks-ppc.ads,
27481 s-parame-vxworks.ads, system-vxworks-alpha.ads, interfac-vms.ads,
27482 a-numaux-x86.ads, a-astaco.ads, a-chahan.ads, a-charac.ads,
27483 a-chlat1.ads, a-chlat9.ads, a-colire.adb, a-colire.ads, a-comlin.ads,
27484 a-cwila1.ads, a-cwila9.ads, ada.ads, a-decima.ads, a-exextr.adb,
27485 a-filico.ads, a-finali.ads, a-interr.ads, a-ioexce.ads, a-dynpri.ads,
27486 a-ngcefu.ads, a-ngcefu.adb, a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.ads,
27487 a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-numaux.ads, a-numeri.ads,
27488 a-reatim.adb, a-stmaco.ads, a-storio.ads, a-strbou.ads, a-stream.ads,
27489 a-strfix.ads, a-string.ads, a-strmap.ads, a-strsea.ads, a-strsup.ads,
27490 a-strunb.ads, a-stunau.ads, a-stwibo.ads, a-stwifi.ads, a-stwima.ads,
27491 a-stwise.ads, a-stwisu.ads, a-stwiun.ads, a-swmwco.ads, a-textio.ads,
27492 csets.ads, debug.ads, dec.ads, g-curexc.ads, get_targ.ads,
27493 g-except.ads, system-linux-hppa.ads, a-chacon.ads, a-widcha.ads,
27494 a-zchara.ads, system-hpux-ia64.ads, a-ciorma.ads, a-coorma.ads,
27495 a-ciormu.ads, a-coormu.ads, a-rbtgso.ads, a-chzla1.ads, a-chzla9.ads,
27496 a-stzbou.ads, a-stzfix.ads, a-stzmap.ads, a-stzsea.ads, a-stzsup.ads,
27497 a-stzunb.ads, a-swunau.ads, a-szunau.ads, gnat.ads, g-regpat.ads,
27498 g-speche.ads, g-spitbo.ads, g-table.ads, g-tasloc.ads, g-trasym.ads,
27499 i-c.ads, i-cpoint.ads, i-cpp.ads, i-cstrin.ads, i-fortra.ads,
27500 interfac.ads, i-os2err.ads, i-os2lib.ads, i-os2syn.ads, i-os2thr.ads,
27501 i-vxwork.ads, output.ads, s-arit64.ads, s-atacco.ads, s-boarop.ads,
27502 s-casuti.ads, s-crtl.ads, s-exctab.ads, s-exnint.ads, s-exnllf.ads,
27503 s-exnlli.ads, s-expint.ads, s-explli.ads, s-expllu.ads, s-expmod.ads,
27504 s-expuns.ads, s-fatflt.ads, s-fatgen.ads, s-fatlfl.ads, s-fatllf.ads,
27505 s-fatsfl.ads, s-finimp.ads, s-finroo.ads, s-fore.ads, s-geveop.ads,
27506 s-htable.ads, s-imgbiu.ads, s-imgboo.ads, s-imgcha.ads, s-imgdec.ads,
27507 s-imgenu.ads, s-imgint.ads, s-imgllb.ads, s-imglld.ads, s-imglli.ads,
27508 s-imgllu.ads, s-imgllw.ads, s-imgrea.ads, s-imguns.ads, s-imgwch.ads,
27509 s-imgwiu.ads, s-io.ads, s-maccod.ads, s-mantis.ads, s-memcop.ads,
27510 s-pack03.ads, s-pack05.ads, s-pack06.ads, s-pack07.ads, s-pack09.ads,
27511 s-pack10.ads, s-pack11.ads, s-pack12.ads, s-pack13.ads, s-pack14.ads,
27512 s-pack15.ads, s-pack17.ads, s-pack18.ads, s-pack19.ads, s-pack20.ads,
27513 s-pack21.ads, s-pack22.ads, s-pack23.ads, s-pack24.ads, s-pack25.ads,
27514 s-pack26.ads, s-pack27.ads, s-pack28.ads, s-pack29.ads, s-pack30.ads,
27515 s-pack31.ads, s-pack33.ads, s-pack34.ads, s-pack35.ads, s-pack36.ads,
27516 s-pack37.ads, s-pack38.ads, s-pack39.ads, s-pack40.ads, s-pack41.ads,
27517 s-pack42.ads, s-pack43.ads, s-pack44.ads, s-pack45.ads, s-pack46.ads,
27518 s-pack47.ads, s-pack48.ads, s-pack49.ads, s-pack50.ads, s-pack51.ads,
27519 s-pack52.ads, s-pack53.ads, s-pack54.ads, s-pack55.ads, s-pack56.ads,
27520 s-pack57.ads, s-pack58.ads, s-pack59.ads, s-pack60.ads, s-pack61.ads,
27521 s-pack62.ads, s-pack63.ads, s-parame.ads, s-pooglo.ads, s-pooloc.ads,
27522 s-poosiz.ads, s-powtab.ads, s-purexc.ads, s-sopco3.ads, s-sopco4.ads,
27523 s-sopco5.ads: Minor reformatting: reindent pragma Pure/Preelaborate
27524 and always use the no parameter form for consistency.
27526 * gnat-style.texi: Document rules about Preelaborate/Pure pragmas.
27528 2005-09-01 Robert Dewar <dewar@adacore.com>
27530 * binde.adb: Minor reformatting
27531 (Find_Elab_Order): Output warning if -p used with static elab order
27533 2005-09-01 Robert Dewar <dewar@adacore.com>
27535 * checks.adb (Check_Needed): New procedure, deals with removing checks
27536 based on analysis of short-circuited forms. Also generates warnings for
27537 improper use of non-short-circuited forms.
27540 2005-09-01 Robert Dewar <dewar@adacore.com>
27542 * a-ztexio.adb, a-textio.adb, a-witeio.adb: Replace bad range checks
27545 2005-09-01 Robert Dewar <dewar@adacore.com>
27547 * errout.ads, errout.adb (Fix Error_Msg_F): Fix implementation to meet
27549 Implement new insertion char < (conditional warning)
27550 * errutil.adb, erroutc.adb: Implement new insertion char <
27551 (conditional warning).
27552 * sem_elab.adb, prj-dect.adb, erroutc.ads, err_vars.ads
27553 (Error_Msg_Warn): New variable for < insertion char.
27554 * prj-nmsc.adb: Implement new errout insertion char < (conditional
27556 (Check_For_Source): Change value of Source_Id only after the current
27557 source has been dealt with.
27559 2005-09-01 Robert Dewar <dewar@adacore.com>
27560 Doug Rupp <rupp@adacore.com>
27562 * exp_attr.adb: Handle vax fpt for 'Valid attribute
27563 * exp_vfpt.ads, exp_vfpt.adb: (Expand_Vax_Valid): New procedure
27564 * s-vaflop-vms-alpha.adb, s-vaflop.ads, s-vaflop.adb
27565 (Valid_D, Valid_F, Valid_G): New functions
27567 2005-09-01 Ed Schonberg <schonberg@adacore.com>
27568 Hristian Kirtchev <kirtchev@adacore.com>
27569 Javier Miranda <miranda@adacore.com>
27571 * exp_ch6.adb (Expand_Call): If an actual is a function call rewritten
27572 from object notation, the original node is unanalyzed and carries no
27573 semantic information, so that accessiblity checks must be performed on
27574 the type of the actual itself.
27575 (Expand_N_Subprogram_Declaration): Change last actual parameter for
27576 compatibility with Build_Protected_Sub_Specification.
27577 (Check_Overriding_Inherited_Interfaces): Add suport to handle
27578 overloaded primitives.
27579 (Register_Interface_DT_Entry): Use the new name of the formal
27580 the the calls to Expand_Interface_Thunk
27582 * exp_dbug.ads: Augment comments on encoding of protected types to
27583 include the generation of dispatching subprograms when the type
27584 implements at least one interface.
27586 * lib.ads: Extend information in Load_Stack to include whether a given
27587 load comes from a Limited_With_Clause.
27589 * lib-load.adb (From_Limited_With_Chain): New predicate to determine
27590 whether a potential circularity is harmless, because it includes units
27591 loaded through a limited_with clause. Extends previous treatment which
27592 did not handle properly arbitrary combinations of limited and
27593 non-limited clauses.
27595 2005-09-01 Nicolas Setton <setton@adacore.com>
27597 * exp_dbug.adb (Get_Encoded_Name): Fixed bug that caused biaised types
27598 to be encoded as typ___XBLU_lowerbound__upperbound instead of
27599 typ___XB_lowerbound__upperbound.
27601 2005-09-01 Thomas Quinot <quinot@adacore.com>
27603 * exp_dist.adb (Add_RACW_TypeCode, Add_RAS_TypeCode): Do not generate
27604 dummy access formal for RACW/RAS TypeCode TSS.
27605 (Build_TypeCode_Call): Do not generate dummy null access actual for
27606 calls to the TypeCode TSS.
27608 2005-09-01 Ed Schonberg <schonberg@adacore.com>
27610 * exp_intr.adb (Expand_Source_Name): For Enclosing_Entity, generate
27611 fully qualified name, to distinguish instances with the same local name.
27613 * g-souinf.ads (Enclosing_Entity): Document that entity name is now
27616 2005-09-01 Robert Dewar <dewar@adacore.com>
27618 * exp_pakd.adb (Create_Packed_Array_Type): Properly handle very large
27621 2005-09-01 Jerome Lambourg <lambourg@adacore.com>
27623 * g-expect.adb (Non_Blocking_Spawn): Initialize the filters field to
27624 (Free): New deallocation procedure for filter elements
27625 (Close): Deallocate any existing filter for the concerned connection
27627 2005-09-01 Laurent Pautet <pautet@adacore.com>
27629 * g-pehage.ads, g-pehage.adb (Select_Char_Position): When no character
27630 position set is provided, we compute one in order to reduce the maximum
27631 length of the keys. This computation first selects a character
27632 position between 1 and the minimum length of the keys in order to
27633 avoid reducing one of the keys to an empty string.
27634 (Initialize, Compute): When the ratio V to K is too low, the algorithm
27635 does not converge. The initialization procedure now comes with a
27636 maximum number of iterations such that when exceeded, an exception is
27637 raised in Compute. The user can initialize this ratio to another value
27639 Reformating and updated headers.
27641 2005-09-01 Javier Miranda <miranda@adacore.com>
27643 * itypes.ads, itypes.adb (Create_Null_Excluding_Itype): New subprogram
27644 that given an entity T creates and returns an Itype that duplicates the
27645 contents of T. The returned Itype has the null-exclusion
27646 attribute set to True, and its Etype attribute references T
27647 to keep the association between the two entities.
27648 Update copyright notice
27650 * sem_aggr.adb (Check_Can_Never_Be_Null,
27651 Aggregate_Constraint_Checks, Resolve_Aggregate,
27652 Resolve_Array_Aggregate, Resolve_Record_Aggregate): Code cleanup.
27654 * sem_ch5.adb (Analyze_Assignment): Code cleanup.
27656 2005-09-01 Gary Dismukes <dismukes@adacore.com>
27657 Robert Dewar <dewar@adacore.com>
27658 Hristian Kirtchev <kirtchev@adacore.com>
27660 * layout.adb (SO_Ref_From_Expr): Change Subtype_Mark to
27663 * par-ch6.adb (P_Subprogram): Handle parsing of Access_Definitions in
27665 Call Set_Result_Definition instead of Set_Subtype_Mark.
27666 (P_Subprogram_Specification): Add parsing of anonymous access result
27667 plus null exclusions. Call Set_Result_Definition instead of
27670 * par-ch3.adb: Add support for LIMITED NEW for Ada 2005 AI-419
27671 (P_Access_Type_Definition): Add parsing for an anonymous access result
27672 subtype, plus parsing for null exclusions. Call Set_Result_Definition
27673 instead of Set_Subtype_Mark.
27675 * sinfo.adb: Add support for LIMITED NEW for Ada 2005 AI-419
27676 (Null_Exclusion_Present): Allow this flag for N_Function_Specification.
27677 (Result_Definition): New function for N_Function_Specifications.
27678 (Subtype_Mark): No longer allowed for N_Access_Function_Definition and
27679 N_Function_Specification.
27680 (Set_Null_Exclusion_Present): Allow this flag for
27681 N_Function_Specification.
27682 (Set_Result_Definition): New procedure for N_Function_Specifications.
27683 (Set_Subtype_Mark): No longer allowed for N_Access_Function_Definition
27684 and N_Function_Specification.
27686 * sinfo.ads: Update grammar rules for 9.7.2: Entry_Call_Alternative,
27687 Procedure_Or_Entry_Call; 9.7.4: Triggering_Statement.
27688 Add support for LIMITED NEW for Ada 2005 AI-419
27689 Update the syntax of PARAMETER_AND_RESULT_PROFILE to reflect the new
27690 syntax for anonymous access results.
27691 Replace Subtype_Mark field by Result_Definition in
27692 N_Function_Specification and N_Access_Definition specs.
27693 Add Null_Exclusion_Present to spec of N_Function_Specification.
27694 (Result_Definition): New function for N_Function_Specification and
27695 N_Access_Function_Definition.
27696 (Set_Result_Definition): New procedure for N_Function_Specification and
27697 N_Access_Function_Definition.
27699 * sprint.adb (S_Print_Node_Actual): Change Subtype_Mark calls to
27700 Result_Definition for cases of N_Access_Function_Definition and
27701 N_Function_Specification.
27702 Print "not null" if Null_Exclusion_Present on N_Function_Specification.
27704 2005-09-01 Vincent Celier <celier@adacore.com>
27706 * lib-writ.adb: Update Copyright notice
27707 (Write_With_Lines): On platforms where file names are case-insensitive,
27708 record the file names in lower case.
27709 (Write_ALI): For D lines, on platforms where file names are
27710 case-insensitive, record the file names in lower case.
27712 2005-09-01 Ed Schonberg <schonberg@adacore.com>
27713 Emmanuel Briot <briot@adacore.com>
27715 * lib-xref.adb (Output_Overridden_Op): Display information on
27716 overridden operation.
27718 * lib-xref.ads: Add documentation on overridden operations.
27720 * ali.ads (Xref_Entity_Record): Add support for storing the overriding
27723 * ali.adb (Get_Typeref): New subprogram. Adds support for parsing the
27724 overriding entity information.
27726 2005-09-01 Vincent Celier <celier@adacore.com>
27728 * mlib-prj.adb (Copy_Interface_Sources): Copy all interface sources,
27729 including those that are inherited.
27731 2005-09-01 Robert Dewar <dewar@adacore.com>
27733 * opt.ads, opt.adb: Add new switches Debug_Pragmas_Enabled[_Config]
27735 * par-prag.adb: Implement new pragma Debug_Policy
27737 * sem_prag.adb Implement new pragma Debug_Policy
27738 (Analyze_Pragma, case Pack): do not let pragma Pack override an explicit
27739 Component_Size attribute specification. Give warning for ignored pragma
27742 * snames.h, snames.ads, snames.adb: Introduce entries in
27743 Preset_Names for Name_Disp_Asynchronous_Select,
27744 Name_Disp_Conditional_Select, Name_Disp_Get_Prim_Op_Kind,
27745 Name_Disp_Timed_Select.
27746 New pragma Debug_Policy
27748 * switch-c.adb (Scan_Front_End_Switches): Set Ada 2005 mode
27750 Switch -gnata also sets Debug_Pragmas_Enabled
27752 * sem.adb, par.adb (Set_Opt_Config_Switch): Add parameter Main_Unit to
27753 handle an explicit -gnata when compiling predefined files.
27755 2005-09-01 Vincent Celier <celier@adacore.com>
27757 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not add the object
27758 directories of projects that have no Ada sources.
27760 2005-09-01 Robert Dewar <dewar@adacore.com>
27762 * scng.adb (Check_End_Of_Line): Count characters, rather than bytes
27763 (makes a difference for wide characters)
27765 * widechar.adb, widechar.ads:
27766 Add Wide_Char_Byte_Count feature to count chars vs bytes
27768 2005-09-01 Thomas Quinot <quinot@adacore.com>
27769 Ed Schonberg <schonberg@adacore.com>
27770 Robert Dewar <dewar@adacore.com>
27772 * sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
27773 'Address attribute reference with an overloaded prefix, use the
27774 location of the prefix (not the location of the attribute reference) as
27775 the error location.
27776 (Analyze_Attribute, case 'Size): The name of an enumeration literal, or
27777 a function renaming thereof, is a valid prefix for 'Size (where it is
27778 intepreted as a function call).
27779 (Statically_Denotes_Entity): New predicate to determine whether the
27780 prefix of an array attribute can be considered static.
27783 (Eval_Attr): Fix failure to evaluate Component_Size for
27784 unconstrained arrays (resulted in wrong value in packed case, since
27785 back end cannot handle this case)
27787 2005-09-01 Robert Dewar <dewar@adacore.com>
27789 * sem_cat.adb (Check_Categorization_Dependencies): Add more detail to
27790 error msgs for most common cases.
27791 Use new errout insertion char < (conditional warning)
27793 2005-09-01 Javier Miranda <miranda@adacore.com>
27794 Ed Schonberg <schonberg@adacore.com>
27796 * sem_ch10.adb (In_Chain): Moved from the scope of a subprogram to
27797 become local to the whole package.
27798 (Install_Limited_Withed_Unit): Instead of unchaining real entities if
27799 the package was already analyzed the new algorithm "replaces" the
27800 real entities by the shadow ones. This is required to ensure that
27801 the order of these entities in the homonym chains does not change;
27802 otherwise we can have undefined references at linking time because
27803 in case of conflicts the external name of the entities will have
27804 a suffix that depends on the order of the entities in the chain.
27805 (Remove_Limited_With_Clause): Complementary code that completes the
27806 new algorithm and replaces the shadow entities by the real ones.
27807 (Install_Limited_Withed_Unit): When unchaining entities before the
27808 installation of the shadow entities, only regular entities of the
27809 public part must be taken into account. This is required to
27810 keep this routine in synch with the work done by Remove_Limited_
27812 (Install_Limited_With_Clause): Introduce implicit limited_with_clause
27813 even if unit is analyzed, because the analysis of the unit is
27814 idempotent in any case, and the limited view of the unit may have to
27815 be installed for proper visibility.
27816 (Expand_Limited_With_Clause): Even if the unit in the implicit
27817 with_clause has been analyzed already, a limited view of the package
27818 must be built for the current context, if it does not exist yet.
27820 2005-09-01 Ed Schonberg <schonberg@adacore.com>
27821 Javier Miranda <miranda@adacore.com>
27822 Gary Dismukes <dismukes@adacore.com>
27824 * sem_ch12.adb (Instantiate_Subprogram_Body): When creating the
27825 defining entity for the instance body, make a new defining identifier
27826 rather than copying the entity of the spec, to prevent accidental
27827 sharing of the entity list.
27828 (Check_Private_View): When exchanging views of private types, build the
27829 list of exchanged views as a stack, to ensure that on exit the exchanges
27830 are undone in the proper order.
27831 (Analyze_Package_Instantiation, Analyze_Subprogram_Instantiation):
27832 Restore the compilation environment in case of instantiation_error.
27833 (Analyze_Generic_Subprogram_Declaration): Handle creation of type entity
27834 for an anonymous access result.
27835 (Instantiate_Generic_Subprogram): Subtype_Mark => Result_Definition
27836 (Formal_Entity): Handle properly the case of a formal package that
27837 denotes a generic package renaming.
27839 2005-09-01 Thomas Quinot <quinot@adacore.com>
27841 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Reject the
27842 clause if the array aggregate is surrounded by parentheses.
27844 2005-09-01 Cyrille Comar <comar@adacore.com>
27845 Gary Dismukes <dismukes@adacore.com>
27846 Ed Schonberg <schonberg@adacore.com>
27847 Javier Miranda <miranda@adacore.com>
27849 * sem_ch3.ads, sem_ch3.adb (Analyze_Object_Declaration): Go to the
27851 to check if a type is Constrained in cases related to code generation
27852 (rather than semantic checking) since otherwise we do not generate
27853 similar code for mutable private types depending if their
27854 discriminants are visible or not.
27855 (Check_Abstract_Overriding): Do not complain about failure to override
27856 the primitive operations used in dispatching selects since they will
27857 always be overriden at the freeze point of the type.
27858 (Access_Definition): Separate out handling for resetting the scope
27859 of an anonymous access function result type. Retrieve the scope
27860 of the associated function rather than using Current_Scope, which
27861 does not have a consistent value (depends on whether we're in the
27862 middle of analyzing formal parameters). Add ??? comment about
27863 finding a cleaner way to handle the special cases of scope setting.
27864 (Process_Incomplete_Dependents): A protected operation is never a
27865 dispatching operation (only its wrapper may be).
27866 (Build_Derived_Record_Type): In case of tagged private types that
27867 implement interfaces add derivation of predefined primitive
27869 (Derive_Subprograms): Replace the Is_Interface_Derivation parameter
27870 by two parameters that are used in case of derivation from abstract
27871 interface types: No_Predefined_Prims is used to avoid the derivation
27872 of predefined primitives from the interface, and Predefined
27873 Prims_Only is used to complete the derivation predefined primitives
27874 in case of private tagged types implementing interfaces.
27875 Fix typo in comments
27876 (Find_Interface_In_Descendant): Protect the frontend against
27877 wrong code with large circularity chains.
27878 (Is_Private_Overriding): Add support for entities overriding interface
27879 subprograms. The test failed because Entities associated with overriden
27880 interface subprograms are always marked as hidden (and used to build
27881 the secondary dispatch table); in this case the overriden entity is
27882 available through the field abstract_interface_alias (cf. override_
27883 dispatching_operation)
27884 (Access_Definition): Set the scope of the type to Current_Scope for the
27885 case of a function with an anonymous access result type.
27886 (Access_Subprogram_Declaration): Handle creation of the type entity for
27887 an access-to-function type with an anonymous access result.
27888 (Check_Anonymous_Access_Types): Change Subtype_Mark to Result_Definition
27889 in handling for N_Access_Function_Definition.
27890 (Analyze_Subtype_Declaration): Modify the text of error message.
27891 (Derived_Type_Declaration): Modify the text of error message.
27892 (Process_Subtype): Modify the text of error message plus cleanup
27893 of one redundant error message.
27894 (Analyze_Component_Declaration): Code cleanup.
27895 (Analyze_Object_Declaration): Code cleanup.
27896 (Analyze_Subtype_Declaration): Propagate the null-exclusion
27897 attribute in case of access types. Code cleanup.
27898 (Array_Type_Declaration): Code cleanup.
27899 (Process_Discriminants): Create the new null-excluding itype
27900 if required. Code cleanup.
27901 (Process_Subtype): Create the new null-excluding itype if
27902 required. Code cleanup.
27903 (Build_Derived_Record_Type): Code cleanup to avoid calling
27904 twice the subprogram derive_subprograms in case of private
27905 types that implement interfaces. In this particular case the
27906 subprogram Complete_Subprograms_Derivation already does the
27907 job associated with the second call.
27909 * exp_strm.adb (Build_Elementary_Input_Call): Add an explicit
27910 conversion to the full view when generating an operation for a
27911 discriminant whose type may currently be private.
27913 2005-09-01 Ed Schonberg <schonberg@adacore.com>
27914 Javier Miranda <miranda@adacore.com>
27916 * sem_ch4.adb (Transform_Object_Operation): In a context off the form
27917 V (Obj.F), the rewriting does not involve the indexed component, but
27918 only the selected component itself.
27919 Do not apply the transformation if the analyzed node is an actual of a
27920 call to another subprogram.
27921 (Complete_Object_Operation): Retain the entity of the
27922 dispatching operation in the selector of the rewritten node. The
27923 entity will be used in the expansion of dispatching selects.
27924 (Analyze_One_Call): Improve location of the error message associated
27926 (Analyze_Selected_Component): No need to resolve prefix when it is a
27927 function call, resolution is done when parent node is resolved, as
27929 (Analyze_One_Call): Add a flag to suppress analysis of the first actual,
27930 when attempting to resolve a call transformed from its object notation.
27931 (Try_Object_Operation, Transform_Object_Operastion): Avoid makind copies
27932 of the argument list for each interpretation of the operation.
27933 (Try_Object_Operation): The designated type of an access parameter may
27934 be an incomplete type obtained through a limited_with clause, in which
27935 case the primitive operations of the type are retrieved from its full
27937 (Analyze_Call): If this is an indirect call, and the return type of the
27938 access_to_subprogram is incomplete, use its full view if available.
27940 2005-09-01 Javier Miranda <miranda@adacore.com>
27941 Gary Dismukes <dismukes@adacore.com>
27943 * sem_ch6.ads, sem_ch6.adb (Check_Conformance): In case of anonymous
27944 access types the null-exclusion and access-to-constant attributes must
27946 (Analyze_Return_Statement): When the result type is an anonymous access
27947 type, apply a conversion of the return expression to the access type
27948 to ensure that appropriate accessibility checks are performed.
27949 (Analyze_Return_Type): For the case of an anonymous access result type,
27950 generate the Itype and set Is_Local_Anonymous_Access on the type.
27951 Add ??? placeholder for check to disallow returning a limited object
27952 in Ada 2005 unless it's an aggregate or a result of a function call.
27953 Change calls from Subtype_Mark to Result_Definition.
27954 (Analyze_Subprogram_Body): Change formal Subtype_Mark to
27955 Result_Definition in call to Make_Function_Specification.
27956 (Build_Body_To_Inline): Change Set_Subtype_Mark to
27957 Set_Result_Definition.
27958 (Make_Inequality_Operator): Change formal Subtype_Mark to
27959 Result_Definition in call to Make_Function_Specification.
27960 (Process_Formals): Create the new null-excluding itype if required.
27961 (New_Overloaded_Entity): For an entity overriding an interface primitive
27962 check if the entity also covers other abstract subprograms in the same
27963 scope. This is required to handle the general case, that is, overriding
27964 other interface primitives and overriding abstract subprograms inherited
27965 from some abstract ancestor type.
27966 (New_Overloaded_Entity): For an overriding entity that comes from
27967 source, note the operation that it overrides.
27968 (Check_Conformance, Type_Conformant): Addition of one new formal
27969 to skip controlling formals in the analysis. This is used to
27970 handle overloading of abstract interfaces.
27971 (Base_Types_Match): Add missing case for types imported from
27972 limited-with clauses
27973 (New_Overloaded_Entity): Add barrier to protect the use of
27974 the "alias" attribute.
27976 2005-09-01 Ed Schonberg <schonberg@adacore.com>
27978 * sem_ch8.adb (Analyze_Renamed_Entry): For a renaming_as_declaration,
27979 verify that the procedure and the entry are mode conformant.
27980 (Analyze_Subprogram_Renaming): Emit a warning if an operator is renamed
27981 as a different operator, which is often a cut-and-paste error.
27983 2005-09-01 Javier Miranda <miranda@adacore.com>
27984 Ed Schonberg <schonberg@adacore.com>
27986 * sem_disp.adb (Check_Controlling_Formals): Anonymous access types
27987 used in controlling parameters exclude null because it is necessary to
27988 read the tag to dispatch, and null has no tag.
27989 (Override_Dispatching_Operation): If the previous operation is inherited
27990 from an interface, it becomes hidden and does not participate in later
27993 2005-09-01 Javier Miranda <miranda@adacore.com>
27994 Ed Schonberg <schonberg@adacore.com>
27995 Gary Dismukes <dismukes@adacore.com>
27997 * sem_res.adb (Resolve_Membership_Op): In case of the membership test
27998 "Iface_CW_Typ in T'Class" we have nothing else to do in the frontend;
27999 the expander will generate the corresponding run-time check to evaluate
28001 (Resolve_Call): Check for legal type of procedure name or prefix that
28002 appears as a trigger in a triggering alternative.
28003 (Valid_Conversion): If expression is ambiguous and the context involves
28004 an extension of System, remove System.Address interpretations.
28005 (Resolve_Qualified_Expression): Reject the case of a specific-type
28006 qualification applied to a class-wide argument. Enhance comment
28007 to explain checking of Original_Node.
28008 (Resolve_Type_Conversion): The location of the error message was not
28009 general enough to handle the general case and hence it has been removed.
28010 In addition, this patch improves the text of the message.
28011 (Resolve_Type_Conversion): Add missing support for access to interface
28013 (Resolve_Type_Conversion): If the target is a class-wide interface type,
28014 do not expand if the expression is the actual in a call, because proper
28015 expansion will take place when the call itself is expanded.
28016 (Resolve_Allocator): If the context is an unchecked conversion, the
28017 allocator inherits its storage pool, if any, from the target type of
28020 2005-09-01 Ed Schonberg <schonberg@adacore.com>
28021 Javier Miranda <miranda@adacore.com>
28023 * sem_type.adb (Add_One_Interp): If a candidate operation is an
28024 inherited interface operation that has an implementation, use the
28025 implementation to avoid spurious ambiguities.
28026 (Interface_Present_In_Ancestor): In case of concurrent types we can't
28027 use the Corresponding_Record_Typ attribute to look for the interface
28028 because it is set by the expander (and hence it is not always
28029 available). For this reason we traverse the list of interfaces
28030 (available in the parent of the concurrent type).
28031 (Interface_Present_In_Ancestor): Handle entities from the limited view
28033 2005-09-01 Ed Schonberg <schonberg@adacore.com>
28035 * sem_util.ads, sem_util.adb (Gather_Components): Omit interface tags
28036 from the list of required components.
28037 (Is_Controlling_Limited_Procedure): Determine whether an entity is a
28038 primitive procedure of a limited interface with a controlling first
28040 (Is_Renamed_Entry): Determine whether an entry is a procedure renaming
28042 (Safe_To_Capture_Value): A value (such as non_null) is not safe to
28043 capture if it is generated in the second operand of a short-circuit
28045 Do not capture values for variables with address clauses.
28046 (Is_Object_Reference): Treat a function call as an object reference only
28047 if its type is not Standard_Void_Type.
28049 2005-09-01 Ed Schonberg <schonberg@adacore.com>
28051 * sem_warn.adb (Warn_On_Known_Condition): Refine warning when applied
28052 to a variable that is statically known to be constant.
28054 2005-09-01 Geert Bosch <bosch@adacore.com>
28055 Robert Dewar <dewar@adacore.com>
28057 * ttypef.ads (VAXDF_Safe_First): Use correct value for constant.
28058 (VAXGF_Safe_First): Idem.
28060 2005-09-01 Robert Dewar <dewar@adacore.com>
28061 Arnaud Charlet <charlet@adacore.com>
28063 * g-dirope.ads: Minor reformatting
28064 Document that bounds of result of Base_Name match the input index
28066 Add documentation on environment variable syntax for Expand_Path
28068 * gnat_ugn.texi: Update documentation to include mention of -m switches
28069 Document new treatment of wide characters in max line length
28071 Remove -gnatL/-gnatZ switches, no longer used.
28072 Add note on pragmas Assertion_Policy and Debug_Policy in discussion
28075 * gnat_rm.texi: Add doc for two argument form of pragma
28076 Float_Representation.
28077 Add documentation for pragma No_Strict_Aliasing
28078 Add note that explicit component clause overrides pragma Pack.
28079 Add documentation of pragma Debug_Policy
28081 2005-09-01 Matthew Heaney <heaney@adacore.com>
28083 * a-cihase.adb, a-coorse.ads, a-coorse.adb, a-cohama.adb,
28084 a-ciorse.ads, a-ciorse.adb, a-cihama.adb, a-cdlili.adb,
28085 a-cidlli.adb, a-chtgop.adb, a-cihase.adb, a-cihase.ads,
28086 a-cohase.adb, a-cohase.adb, a-cohase.ads: Synchronized with latest
28087 draft (Draft 13, August 2005) of Ada Amendment 1.
28089 2005-09-01 Arnaud Charlet <charlet@adacore.com>
28091 * Makefile.in: Adjust the libgnat target pairs for Xscale to ARM.
28092 Note that the platform-specific version of g-soccon.ads for VMS is now
28093 named g-soccon-vms.ads (it was previously g-soccon-vms.adb, although it
28094 really is a package spec).
28095 Replace s-taspri-linux.ads by s-taspri-posix.ads
28096 Remove references to s-mastop-x86.adb
28098 * system-vxworks-xscale.ads: Removed, no longer used.
28099 * s-vxwork-xscale.ads: Removed, no longer used.
28101 2005-09-01 Robert Dewar <dewar@adacore.com>
28103 * a-dirval-mingw.adb, a-direct.adb, a-coinve.adb,
28104 g-dynhta.adb, g-dynhta.ads, cstand.adb, exp_smem.adb, g-debuti.ads,
28105 g-dirope.adb, g-table.adb, lib-sort.adb, sem_maps.adb,
28106 exp_fixd.adb, exp_aggr.adb, a-intnam-mingw.ads, a-intnam-vxworks.ads,
28107 g-arrspl.adb, g-arrspl.ads, g-awk.adb, g-awk.ads, g-boubuf.ads,
28108 g-boubuf.ads, g-boubuf.ads, g-bubsor.ads, g-bubsor.adb, g-busora.adb,
28109 g-busora.ads, g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
28110 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads, g-cgi.adb,
28111 g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads, g-cgideb.adb, g-cgideb.ads,
28112 g-comlin.adb, g-comver.ads, g-semaph.ads, g-socthi.ads,
28113 sem_ch7.adb, a-direio.adb, a-caldel.ads, i-cstrea-vms.adb,
28114 a-ztedit.adb, a-ztenau.adb, g-socthi-vms.adb, g-socthi-vms.ads,
28115 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vxworks.ads,
28116 a-intnam-irix.ads, a-intnam-irix.ads, a-intnam-hpux.ads,
28117 a-intnam-os2.ads, a-intnam-os2.ads, a-caldel-vms.adb, a-calend-vms.adb,
28118 a-calend-vms.ads, g-heasor.adb, g-heasor.ads, g-hesora.adb,
28119 g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb, g-htable.ads,
28120 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads, g-locfil.ads,
28121 g-memdum.adb, g-memdum.ads, g-traceb.adb, g-traceb.ads, i-cobol.adb,
28122 i-cobol.ads, i-cstrea.ads, i-cstrin.adb, a-wtedit.adb, a-tifiio.adb,
28123 a-wtenau.adb, a-wtenau.adb, a-teioed.adb: Minor reformatting
28125 2005-08-29 Arnaud Charlet <charlet@adacore.com>
28129 (GNAT_MAXPATH_LEN): Use default value if MAXPATHLEN is undefined.
28131 2005-08-29 Arnaud Charlet <charlet@adacore.com>
28132 Doug Rupp <rupp@adacore.com>
28134 * s-stalib.adb: Add missing pragma Warnings (On) to reenable Warnings
28136 (Inside_Elab_Final_Code): Moved to init.c to avoid having to keep
28137 this code in the GNAT run-time.
28139 * decl.c, fe.h: Replace GCC_ZCX by Back_End_Exceptions.
28142 * init.c (__gnat_error_handler [many]): Mark "msg" as const
28143 (__gnat_error_handler [HPUX]): Mark siginfo parameter as unused
28145 (__gnat_inside_elab_final_code): Moved here from
28146 Standard_Library and only defined for the compiler.
28147 __gnat_error_handler [VMS]: Adjust sigargs to account for PC & PSL.
28148 (__gnat_inum_to_ivec): Do not define this function on VxWorks when
28149 using RTPs because directly vectored Interrupt routines are not
28150 supported on this configuration.
28151 (getpid): Do not redefine this function on VxWorks when using RTPs
28152 because this primitive is well supported by the RTP libraries.
28153 (copy_msg): Correct the code that checks for buffer overflow.
28154 Discovered during code reading.
28156 2005-08-29 Olivier Hainque <hainque@adacore.com>
28158 * decl.c (gnat_to_gnu_entity) <E_Variable>: When allocating storage for
28159 a library level mutable variable with an initializer, tell
28160 build_allocator to ignore the initializer's size. It may not be large
28161 enough for all the values that might be assigned to the variable later
28164 2005-08-29 Arnaud Charlet <charlet@adacore.com>
28165 Eric Botcazou <ebotcazou@adacore.com>
28167 * trans.c: Protect < in error msg with quote
28168 Replace GCC_ZCX by Back_End_Exceptions.
28169 (addressable_p) <COMPONENT_REF>: Also return 1 if the field
28170 has been sufficiently aligned in the record.
28172 2005-08-15 James E. Wilson <wilson@specifix.com>
28174 * system-linux-alpha.ads: Change ia64 to alpha.
28176 2005-08-01 Kazu Hirata <kazu@codesourcery.com>
28178 * decl.c, utils.c: Fix comment typos.
28180 2005-07-29 Kazu Hirata <kazu@codesourcery.com>
28182 * decl.c, init.c, initialize.c: Fix comment typos.
28184 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
28186 Make CONSTRUCTOR use VEC to store initializers.
28187 * decl.c (gnat_to_gnu_entity): Update to cope with VEC in
28189 * trans.c (extract_values): Likewise.
28190 * utils.c (convert, remove_conversions): Likewise.
28191 * utils2.c (contains_save_expr_p, build_binary_op, build_unary_op,
28192 gnat_build_constructor): Likewise.
28194 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
28196 * decl.c (components_to_record): Use DECL_FCONTEXT instead of
28198 (compare_field_bitpos): Likewise.
28200 2005-07-09 Andrew Pinski <pinskia@physics.uc.edu>
28202 * utils.c (create_var_decl): Only set DECL_COMMON on
28203 VAR_DECLs. Only set SET_DECL_ASSEMBLER_NAME on
28204 VAR_OR_FUNCTION_DECL_P.
28206 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
28208 * utils.c (create_param_decl): DECL_ARG_TYPE_AS_WRITTEN is
28211 2005-07-07 Pascal Obry <obry@adacore.com>
28213 * g-socthi-mingw.adb (C_Inet_Addr): New body used to convert the
28214 returned type on Windows.
28216 * g-socthi-mingw.ads (C_Inet_Addr): Remove pragma Import for this
28219 * g-socket.adb (Inet_Addr): Check for empty Image and raises an
28220 exception in this case.
28221 Simplify the code as "Image (Image'Range)" = "Image".
28223 2005-07-07 Vincent Celier <celier@adacore.com>
28225 * bindgen.adb (Gen_Output_File_C): When switch -a was specified, put
28226 the destructor/constructor attributes for <lib>final/<lib>init.
28228 * gnatbind.adb (Gnatbind): Allow -a to be used in conjunction with -C
28230 2005-07-07 Eric Botcazou <ebotcazou@adacore.com>
28232 * decl.c (gnat_to_gnu_entity) <E_Procedure>: Do not strip the padding
28233 type if the parameter is not passed by copy but reference by default.
28235 2005-07-07 Javier Miranda <miranda@adacore.com>
28237 * exp_ch3.adb (Build_Record_Init_Proc/Freeze_Record_Type):
28238 Reimplementation of the support for abstract interface types in order
28239 to leave the code more clear and easy to maintain.
28241 * exp_ch6.adb (Freeze_Subprogram): Reimplementation of the support for
28242 abstract interface types in order to leave the code clearer and easier
28245 * exp_disp.ads, exp_disp.adb (Fill_DT_Entry): Part of its functionality
28246 is now implemented by the new subprogram Fill_Secondary_DT_Entry.
28247 (Fill_Secondary_DT_Entry): Generate the code necessary to fill the
28248 appropriate entry of the secondary dispatch table.
28249 (Make_DT): Add code to inherit the secondary dispatch tables of
28252 * exp_util.adb (Find_Interface_Tag/Find_Interface_ADT): Instead of
28253 implementing both functionalities by means of a common routine, each
28254 routine has its own code.
28256 2005-07-07 Javier Miranda <miranda@adacore.com>
28258 * freeze.adb (Freeze_Entity): Check wrong uses of tag incomplete types.
28260 * par-ch3.adb (P_Type_Declaration): Give support to tagged incomplete
28263 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
28266 * sem_attr.adb (Check_Not_Incomplete_Type): Additional checks for wrong
28267 use of tag incomplete types.
28269 * sem_ch3.adb (Analyze_Incomplete_Type): Add mininum decoration to
28270 give support to tagged incomplete types.
28272 * sem_ch5.adb (Analyze_Case_Statement): In generated code, if the
28273 expression is a discriminant reference and its type is private, as can
28274 happen within a stream operation for a mutable record, use the full
28275 view of the type to resolve the case alternatives.
28276 (Analyze_Assignment): Check wrong dereference of incomplete types.
28278 * sem_ch6.adb (Process_Formals): Allow the use of tagged incomplete
28281 * sem_res.adb (Resolve_Explicit_Dereference): Allow the use of tagged
28284 * sinfo.adb (Taggged_Present/Set_Taggged_Present): Applicable to
28285 N_Incomplete_Type_Declaration nodes.
28287 * sinfo.ads (N_Incomplete_Type_Declaration): Addition of attribute
28288 Tag_Present to give support to tagged incomplete types:
28290 type DEFINING_IDENTIFIER [DISCRIMINANT_PART] [IS TAGGED];
28293 2005-07-07 Olivier Hainque <hainque@adacore.com>
28296 * raise.c: Only include unwind.h if IN_RTS, and provide dummy type
28297 definitions for the Unwind wrappers in the compiler case.
28299 2005-07-07 Ed Schonberg <schonberg@adacore.com>
28300 Javier Miranda <miranda@adacore.com>
28302 * par-load.adb (Load): If a child unit is loaded through a limited_with
28303 clause, each parent must be loaded as a limited unit as well.
28305 * sem_ch10.adb (Previous_Withed_Unit): Better name for
28306 Check_Withed_Unit. Return true if there is a previous with_clause for
28307 this unit, whether limited or not.
28308 (Expand_Limited_With_Clause): Do not generate a limited_with_clause on
28310 (Is_Visible_Through_Renamings): New local subprogram of install_limited
28311 _withed_unit that checks if some package installed through normal with
28312 clauses has a renaming declaration of package whose limited-view is
28313 ready to be installed. This enforces the check of the rule 10.1.2 (21/2)
28314 of the current Draft document for Ada 2005.
28315 (Analyze_Context): Complete the list of compilation units that
28316 are allowed to contain limited-with clauses. It also contains
28317 checks that were previously done by Install_Limited_Context_Clauses.
28318 This makes the code more clear and easy to maintain.
28319 (Expand_Limited_With_Clause) It is now a local subprogram of
28320 Install_Limited_Context_Clauses, and contains the code that adds
28321 the implicit limited-with clauses for parents of child units.
28322 This functionality was prevously done by Analyze_Context.
28324 * sem_ch4.adb (Analyze_Selected_Component): Check wrong use of
28327 * sem_ch7.adb (Analyze_Package_Declaration): Check if the package has
28328 been erroneously named in a limited-with clause of its own context.
28329 In this case the error has been previously notified by Analyze_Context.
28331 2005-07-07 Ed Schonberg <schonberg@adacore.com>
28333 * sem_ch8.adb (Find_Direct_Name): Handle properly the case of a
28334 generic package that contains local declarations with the same name.
28335 (Analyze_Object_Renaming): Check wrong renaming of incomplete type.
28337 2005-07-07 Bernard Banner <banner@adacore.com>
28339 * tracebak.c: Refine tracebacks to use Unwind_Backtrace scheme on
28340 ia64 platform only on platforms that you the GCC unwind library
28341 rather than the system unwind library.
28343 2005-07-07 Thomas Quinot <quinot@adacore.com>
28345 * expect.c: Minor reformatting
28347 2005-07-07 Sergey Rybin <rybin@adacore.com>
28349 * vms_data.ads: Add VMS qualifiers for new gnatpp switch
28352 * gnat_ugn.texi: Add description for new gnatpp option
28355 2005-07-04 Thomas Quinot <quinot@adacore.com>
28357 * g-expect-vms.adb, g-expect.ads, g-expect.adb
28358 (Get_Command_Output): New subprogram to launch a process and get its
28359 standard output as a string.
28361 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
28362 Olivier Hainque <hainque@adacore.com>
28364 * s-mastop-tru64.adb (Pop_Frame): Use exc_lookup_function_entry to
28365 fetch a code-range descriptor associated with the machine state. On
28366 failure set the machine state's PC to 0; on success, pass the
28367 descriptor to exc_virtual_unwind.
28369 * init.c (Tru64 section): New function __gnat_set_code_loc.
28371 2005-07-04 Vincent Celier <celier@adacore.com>
28373 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
28374 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
28375 mlib-tgt-mingw.adb, mlib-tgt-darwin.adb (Build_Dynamic_Library):
28376 Remove all auto-initialization code, as this is now done through the
28377 constructor mechanism.
28379 * adaint.h, adaint.c (__gnat_binder_supports_auto_init,
28380 __gnat_sals_init_using_constructors): New functions.
28382 * bindgen.adb (Gen_Output_File_Ada): Generate pragmas
28383 Linker_Constructor and Linker_Destructor when switch -a is used.
28385 * bindusg.adb: Add line for new switch -a
28387 * gnatbind.adb (Gnatbind_Supports_Auto_Init): New Boolean function
28388 (Gnatbind): When switch -a is used, check if it is allowed
28390 * switch-b.adb (Scan_Binder_Switches): Process new switch -a
28392 2005-07-04 Joel Brobecker <brobecker@adacore.com>
28394 * a-tags.adb (Type_Specific_Data): Define Tags_Table as a small array.
28395 This prevents us from hitting a limitation during the debug info
28396 generation when using stabs.
28397 (Prims_Ptr): Likewise.
28399 2005-07-04 Gary Dismukes <dismukes@adacore.com>
28400 Ed Schonberg <schonberg@adacore.com>
28401 Javier Miranda <miranda@adacore.com>
28403 * checks.adb (Null_Exclusion_Static_Checks): In the case of
28404 N_Object_Declaration, only perform the checks if the Object_Definition
28405 is not an Access_Definition.
28407 * sem_ch3.adb (Access_Subprogram_Declaration): Add test for the case
28408 where the parent of an the access definition is an N_Object_Declaration
28409 when determining the Associated_Node_For_Itype and scope of an
28410 anonymous access-to-subprogram type.
28412 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Set the
28413 Corresponding_Spec on the body created for a null procedure. Add ???
28414 comment. Remove New_Copy_Tree call on body argument to
28415 Set_Body_To_Inline.
28417 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): For an out parameter with
28418 discriminants, use the type of the actual as well, because the
28419 discriminants may be read by the called subprogram.
28421 * sem_ch3.adb (Access_Type_Declaration): If the designated type is an
28422 access type we do not need to handle non-limited views.
28423 (Build_Derived_Record_Type): Additional check to check that in case of
28424 private types, interfaces are only allowed in private extensions.
28426 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
28428 * decl.c (prepend_attributes) <Pragma_Linker_Constructor>: New case.
28429 <Pragma_Linker_Destructor>: Likewise.
28431 * einfo.ads (Has_Gigi_Rep_Item): Document Pragma_Linker_Constructor and
28432 Pragma_Linker_Destructor.
28434 * gigi.h (attr_type): Add ATTR_LINK_CONSTRUCTOR and
28435 ATTR_LINK_DESTRUCTOR.
28436 (static_ctors, static_dtors): New variables.
28438 * misc.c (gnat_expand_body): Output current function as constructor
28439 and destructor if requested.
28441 * par-prag.adb: Add processing for pragma Linker_Constructor and
28444 * sem_prag.adb (Find_Unique_Parameterless_Procedure): New function
28445 extracted from Check_Interrupt_Or_Attach_Handler.
28446 (Check_Interrupt_Or_Attach_Handler): Invoke it.
28447 Implement pragma Linker_Constructor and Linker_Destructor with the
28448 help of Find_Unique_Parameterless_Procedure.
28449 Replace Name_Alias with Name_Target for pragma Linker_Alias.
28451 * snames.h, snames.ads, snames.adb:
28452 Add Name_Linker_Constructor and Name_Linker_Destructor.
28453 Add Pragma_Linker_Constructor and Pragma_Linker_Destructor.
28454 * snames.adb: Remove Name_Alias.
28456 * trans.c: Include cgraph.h.
28457 (build_global_cdtor): New function.
28458 (Compilation_Unit_to_gnu): Build global constructor and destructor if
28460 (tree_transform) <N_Identifier>: Substitute renaming of view-conversions
28462 (addressable_p) <COMPONENT_REF>: Unconditionally test
28463 DECL_NONADDRESSABLE_P on STRICT_ALIGNMENT platforms.
28465 * utils.c (process_attributes) <ATTR_LINK_ALIAS>: Do not assemble the
28466 variable if it is external.
28468 (static_ctors, static_dtors): New global variables.
28469 (process_attributes) <ATTR_LINK_CONSTRUCTOR>: New case.
28470 <ATTR_LINK_DESTRUCTOR>: Likewise.
28471 (end_subprog_body): Chain function as constructor and destructor
28474 * exp_util.adb (Force_Evaluation): Unconditionally invoke
28475 Remove_Side_Effects with Variable_Ref set to true.
28476 (Remove_Side_Effects): Handle scalar types first. Use a renaming
28477 for non-scalar types even if Variable_Ref is true and for class-wide
28480 2005-07-04 Ed Schonberg <schonberg@adacore.com>
28482 * exp_attr.adb (Mod): Evaluate condition expression with checks off,
28483 to prevent spurious warnings.
28485 2005-07-04 Thomas Quinot <quinot@adacore.com>
28487 * exp_dist.adb (Build_TypeCode_Call): Remove incorrect processing for
28488 Itypes. Itypes are really unexpected there.
28489 (Build_TypeCode_Function): Generalise special processing for Itypes to
28490 handle the case of numeric implicit base types as well as enumerated
28493 2005-07-04 Ed Schonberg <schonberg@adacore.com>
28495 * exp_intr.adb (Expand_Unc_Deallocation): If the designated type is
28496 controlled, indicate the expected type of the dereference that is
28497 created for the call to Deep_Finalize, to prevent spurious errors when
28498 the designated type is private and completed with a derivation from
28499 another private type.
28501 2005-07-04 Vincent Celier <celier@adacore.com>
28503 * make.adb (Change_To_Object_Directory): When unable to change the
28504 current dir to the object directory, output the full path of the
28507 2005-07-04 Matthew Gingell <gingell@adacore.com>
28509 * Makefile.in: Replace indepsw-linux.adb by indepsw-gnu.adb
28511 * indepsw-linux.adb: Replace by...
28513 * indepsw-gnu.adb: ...this new file
28515 2005-07-04 Vincent Celier <celier@adacore.com>
28517 * mlib-prj.adb (Auto_Initialize): New constant String
28518 (SALs_Use_Constructors): New Boolean function
28519 (Build_Library): Call gnatbind with Auto_Initialize switch when
28520 SALs_Use_Constructors returns True.
28522 * mlib-tgt.ads: Minor reformatting
28524 * mlib-utl.ads: Minor reformatting
28526 * opt.ads: (Use_Pragma_Linker_Constructor): New Boolean flag
28528 2005-07-04 Ed Schonberg <schonberg@adacore.com>
28530 * par-ch9.adb (P_Task, P_Protected): Indicate that single task and
28531 single protected declarations can have an interface list.
28532 (P_Entry_Declaration): Add handler for Error_Resync, which can be raised
28533 with seriously malformed entry declarations, and lead to compilation
28534 abandoned messages.
28536 2005-07-04 Javier Miranda <miranda@adacore.com>
28538 * par-load.adb: Load the context items in two rounds.
28540 2005-07-04 Robert Dewar <dewar@adacore.com>
28542 * scng.adb: Do not consider Mod used as an attribute to be a keyword
28544 2005-07-04 Ed Schonberg <schonberg@adacore.com>
28545 Javier Miranda <miranda@adacore.com>
28547 * sem_ch10.adb (Build_Limited_Views): A type declared with a private
28548 type extension needs a limited view.
28549 Remove previous restriction on private types available through the
28550 limited-view (only tagged private types were previously allowed).
28551 (Install_Withed_Unit): In the code that implements the
28552 legality rule given in AI-377, exclude a child unit with the name
28553 Standard, because it is a homonym of the Standard environment package.
28555 2005-07-04 Thomas Quinot <quinot@adacore.com>
28557 * sem_ch4.adb (Transform_Object_Operation): For an actual that is an
28558 overloaded function call, carry interpretations from the original tree
28561 2005-07-04 Ed Schonberg <schonberg@adacore.com>
28563 * sem_ch6.adb (Conforming_Types): If the types are anonymous access
28564 types check whether some designated type is a limited view, and use
28565 the non-limited view if available.
28567 2005-07-04 Gary Dismukes <dismukes@adacore.com>
28569 * sem_eval.adb (Subtypes_Statically_Match): Use the discriminant
28570 constraint of full view of a private view T1 if present, when T2 is a
28571 discriminated full view.
28573 2005-07-04 Thomas Quinot <quinot@adacore.com>
28575 * sem_res.adb (Resolve_Actuals): Do not resolve the expression of an
28576 actual that is a view conversion of a bit packed array reference.
28578 2005-07-04 Ed Schonberg <schonberg@adacore.com>
28580 * sem_type.adb (Covers): Verify that Corresponding_Record_Type is
28581 present before checking whether an interface type covers a synchronized
28584 2005-07-04 Ed Schonberg <schonberg@adacore.com>
28586 * sem_util.adb (Is_Object_Reference): An indexed or selected component
28587 whose prefix is an implicit dereference is an object reference. Removes
28588 spurious errors when compiling with -gnatc.
28590 2005-07-04 Robert Dewar <dewar@adacore.com>
28593 * s-sopco3.ads, s-sopco4.ads, s-sopco5.ads: Minor documentation fix
28595 2005-07-04 Matthew Gingell <gingell@adacore.com>
28597 * tracebak.c: Enable tracebacks on ia64 platforms
28599 2005-07-04 Vincent Celier <celier@adacore.com>
28601 * vms_conv.adb (Initialize): Allow multiple ALI files to be given to
28602 the GNAT BIND command, as gnatbind accepts multiples ALI files with
28603 the -L or -n switches.
28605 2005-07-04 Vincent Celier <celier@adacore.com>
28607 * makegpr.adb (Build_Global_Archive): Make sure the list of sources is
28608 correctly computed and the main project data is not modified while
28610 (Add_C_Plus_Plus_Link_For_Gnatmake): Always link with the C++ compiler
28611 (Choose_C_Plus_Plus_Link_Process): Do not generate shell script
28612 c++linker as this does not work on some platforms.
28614 2005-07-04 Matthew Heaney <heaney@adacore.com>
28616 * a-convec.ads, a-coinve.ads: Declaration of subtype Extended_Index
28618 * a-coinve.adb: Perform constraint checks explicitly.
28620 2005-07-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
28621 Thomas Quinot <quinot@adacore.com>
28623 * Make-lang.in: (ada/targtyps.o): Add missing TREE_H dependency.
28624 new target gen-soccon.
28626 2005-07-04 Robert Dewar <dewar@adacore.com>
28628 * s-mastop-irix.adb, s-mastop-vms.adb: Minor reformatting
28630 2005-07-04 Thomas Quinot <quinot@adacore.com>
28632 * g-socket.ads (Check_Selector): Minor rewording of comment.
28634 2005-07-04 Vincent Celier <celier@adacore.com>
28636 * vms_data.ads: Add VMS qualifiers for new gnatpp switch --eol=
28638 2005-07-04 Thomas Quinot <quinot@adacore.com>
28640 * gen-soccon.c: Add constants SO_SNDTIMEO and SO_RCVTIMEO.
28642 2005-07-04 Sergey Rybin <rybin@adacore.com>
28644 * gnat_ugn.texi: Add description of --eol gnatpp option
28646 2005-07-04 Eric Botcazou <ebotcazou@adacore.com>
28647 Thomas Quinot <quinot@adacore.com>
28649 * gnat_rm.texi: Add a note that pragma Unreferenced is not appropriate
28650 if the user wants all calls of a subprogram to be flagged,
28651 independently of whether they are made from within the same unit or
28653 Mention restriction for pragma Linker_Alias on some platforms.
28654 Document pragma Linker_Constructor and Linker_Destructor.
28655 Rewrite documentation of Weak_External, Linker_Section and
28656 Linker_Alias pragmas.
28658 2005-07-04 Arnaud Charlet <charlet@adacore.com>
28660 * s-stausa.ads, s-stausa.adb: New files.
28662 2005-06-30 Kelley Cook
28664 * all files: Update FSF address in copyright headers.
28665 * gen-soccon.co (main): Output new FSF address in generated files.
28667 2005-06-28 Paul Brook <paul@codesourcery.com>
28669 * misc.c (gnat_init_gcc_eh): Call default_init_unwind_resume_libfunc.
28671 2005-06-14 Olivier Hainque <hainque@adacore.com>
28672 Eric Botcazou <ebotcazou@adacore.com>
28674 * s-mastop-irix.adb (Pop_Frame): Revert shorcuts avoiding calls to
28675 exc_unwind, now that we are generating proper .debug_frame output for
28678 * tracebak.c: Remove the mips-irix section, as we are now using the
28679 s-mastop based unwinder again.
28680 Under SPARC/Solaris, take into account the stack bias to compute the
28681 frame offset. The stack bias is 0 for the V8 ABI and 2047 for the V9
28684 2005-06-14 Doug Rupp <rupp@adacore.com>
28686 * g-trasym-vms.adb: renamed g-trasym-vms-alpha.adb
28688 * g-trasym-vms-alpha.adb, g-trasym-vms-ia64.adb: New files
28690 2005-06-14 Pascal Obry <obry@adacore.com>
28692 * a-strhas.ads, a-secain.adb, a-secain.ads, a-rbtgso.ads, a-cgaaso.adb,
28693 a-cgaaso.ads, a-cgarso.adb, a-cgcaso.adb, a-cgarso.ads, a-cgcaso.ads,
28694 a-contai.ads, a-coprnu.ads, a-coprnu.adb: Fix header style (spaces in
28697 * a-intnam-lynxos.ads, a-intnam-unixware.ads, a-intnam-tru64.ads,
28698 a-intnam-aix.ads, a-intnam-irix.ads, a-excpol-interix.adb,
28699 a-intnam-hpux.ads, a-intnam-linux.ads, a-intnam-dummy.ads,
28700 a-intnam-os2.ads, a-numaux-libc-x86.ads, a-intnam-interix.ads,
28701 a-intnam-solaris.ads, a-caldel-vms.adb, a-calend-vms.ads,
28702 a-intnam-vms.ads, a-excpol-abort.adb, a-intnam-mingw.ads,
28703 a-intnam-vxworks.ads, a-numaux-vxworks.ads, s-osinte-unixware.adb,
28704 s-osinte-unixware.ads, s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads,
28705 s-osinte-hpux.ads, s-osinte-solaris-posix.ads, a-intnam-freebsd.ads,
28706 s-osinte-freebsd.adb, s-osinte-freebsd.ads, s-osinte-lynxos.adb,
28707 s-osinte-lynxos.ads, s-tpopsp-lynxos.adb, s-osinte-tru64.adb,
28708 s-osinte-tru64.ads, s-tpopsp-posix-foreign.adb, s-vxwork-alpha.ads,
28709 s-osinte-aix.adb, s-osinte-aix.ads, s-osinte-aix-fsu.ads,
28710 s-osinte-irix.adb, s-osinte-irix.ads, s-interr-sigaction.adb,
28711 s-osinte-irix-athread.ads, s-osinte-hpux-dce.adb,
28712 s-osinte-hpux-dce.ads, s-osinte-posix.adb, s-osinte-linux.ads,
28713 s-vxwork-m68k.ads, s-osinte-linux-fsu.ads, s-vxwork-mips.ads,
28714 s-osinte-dummy.ads, s-interr-dummy.adb, s-osinte-os2.adb,
28715 s-osinte-os2.ads, s-osprim-os2.adb, s-osinte-interix.ads,
28716 s-osprim-unix.adb, s-vxwork-ppc.ads, s-osinte-solaris.adb,
28717 s-osinte-solaris.ads, s-osprim-solaris.adb, s-tpopsp-solaris.adb,
28718 s-vxwork-sparcv9.ads, s-osinte-solaris-fsu.ads, s-interr-vms.adb,
28719 s-osinte-vms.adb, s-osinte-vms.ads, s-osprim-vms.adb,
28720 s-osprim-vms.ads, s-tpopde-vms.adb, s-tpopde-vms.ads,
28721 s-osprim-mingw.adb, s-vxwork-xscale.ads, s-interr-vxworks.adb,
28722 s-osinte-vxworks.adb, s-osinte-vxworks.ads, s-osprim-vxworks.adb,
28723 s-tfsetr-vxworks.adb, s-tpopsp-vxworks.adb, s-intman-posix.adb,
28724 s-osinte-fsu.adb, s-osprim-posix.adb, s-tfsetr-default.adb,
28725 s-tpopsp-posix.adb, s-traces-default.adb, s-trafor-default.adb,
28726 s-trafor-default.ads, s-tratas-default.adb, a-numaux-x86.adb,
28727 a-numaux-x86.ads, a-astaco.adb, a-astaco.ads, a-caldel.adb,
28728 a-caldel.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads, a-colien.adb,
28729 a-colien.ads, a-colire.adb, a-colire.ads, a-comlin.adb, a-cwila1.ads,
28730 a-cwila9.ads, ada.ads, a-decima.adb, a-diocst.ads, a-direio.adb,
28731 a-dynpri.adb, a-dynpri.ads, a-excpol.adb, a-flteio.ads, a-fwteio.ads,
28732 a-inteio.ads, a-interr.adb, a-intnam.ads, a-intsig.adb, a-intsig.ads,
28733 a-ioexce.ads, a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
28734 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads, a-lliwti.ads,
28735 a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads, a-ngcoty.adb, a-ngelfu.adb,
28736 a-ngelfu.ads, a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
28737 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads, a-nselfu.ads,
28738 a-nucoty.ads, a-nudira.adb, a-nuelfu.ads, a-nuflra.adb, a-numaux.ads,
28739 a-numeri.ads, a-reatim.adb, a-retide.adb, a-retide.ads, a-sequio.adb,
28740 a-sequio.ads, a-sfteio.ads, a-sfwtio.ads, a-siocst.ads, a-siteio.ads,
28741 a-siwtio.ads, a-ssicst.ads, a-ssitio.ads, a-ssiwti.ads, a-stmaco.ads,
28742 a-storio.adb, a-strbou.adb, a-strfix.adb, a-string.ads, a-strmap.adb,
28743 a-strsea.adb, a-strsup.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
28744 a-stunau.ads, a-stwibo.adb, a-stwifi.adb, a-stwifi.ads, a-stwima.adb,
28745 a-stwise.adb, a-stwisu.adb, a-suteio.adb, a-suteio.ads, a-swuwti.adb,
28746 a-swuwti.ads, a-teioed.adb, a-ticoau.adb, a-ticoau.ads, a-ticoio.adb,
28747 a-tideau.adb, a-tideio.adb, a-tienau.adb, a-tienio.adb, a-tifiio.adb,
28748 a-tiflio.adb, a-tigeau.adb, a-tigeau.ads, a-tiinio.adb, a-timoau.adb,
28749 a-timoio.adb, a-timoio.ads, a-tiocst.ads, a-titest.adb, a-titest.ads,
28750 a-witeio.adb, a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
28751 a-wtcstr.ads, a-wtdeau.adb, a-wtdeio.adb, a-wtenau.adb, a-wtenio.adb,
28752 a-wtfiio.adb, a-wtflio.adb, a-wtgeau.adb, a-wtinau.adb, a-wtinio.adb,
28753 a-wtinio.ads, a-wtmoau.adb, a-wtmoio.adb, a-wttest.adb, calendar.ads,
28754 dec.ads, dec-io.adb, dec-io.ads, directio.ads, errno.c, g-bubsor.adb,
28755 g-bubsor.ads, g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
28756 g-casuti.adb, g-casuti.ads, g-debuti.ads, g-heasor.adb, g-heasor.ads,
28757 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads, g-htable.adb,
28758 g-htable.ads, g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
28759 g-memdum.adb, g-memdum.ads, g-sestin.ads, g-signal.ads, g-signal.adb,
28760 gnat.ads, g-souinf.ads, g-speche.adb, g-speche.ads, g-table.adb,
28761 g-table.ads, g-thread.adb, g-thread.ads, ioexcept.ads, i-vxwoio.adb,
28762 i-vxwoio.ads, math_lib.adb, s-assert.adb, s-assert.ads, s-asthan.ads,
28763 s-bitops.adb, s-bitops.ads, s-boarop.ads, s-carsi8.adb, s-carsi8.ads,
28764 s-carun8.adb, s-carun8.ads, s-casi16.adb, s-casi16.ads, s-casi32.adb,
28765 s-casi32.ads, s-casi64.adb, s-casi64.ads, s-casuti.adb, s-casuti.ads,
28766 s-caun16.adb, s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
28767 s-caun64.ads, s-direio.adb, s-direio.ads, sequenio.ads, s-errrep.adb,
28768 s-errrep.ads, s-exnint.adb, s-exnint.ads, s-exnllf.adb, s-exnllf.ads,
28769 s-exnlli.adb, s-exnlli.ads, s-expint.adb, s-expint.ads, s-explli.adb,
28770 s-explli.ads, s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
28771 s-expuns.adb, s-expuns.ads, s-fore.adb, s-fore.ads, s-geveop.adb,
28772 s-geveop.ads, s-htable.adb, s-htable.ads, s-imgbiu.adb, s-imgbiu.ads,
28773 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads, s-imgdec.adb,
28774 s-imgdec.ads, s-imgenu.adb, s-imgenu.ads, s-imgint.adb, s-imgint.ads,
28775 s-imgllb.adb, s-imgllb.ads, s-imglld.adb, s-imglld.ads, s-imglli.adb,
28776 s-imglli.ads, s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
28777 s-imgrea.ads, s-imguns.adb, s-imguns.ads, s-imgwiu.adb, s-imgwiu.ads
28778 s-interr.ads, s-io.adb, s-mantis.adb, s-mantis.ads, s-osprim.ads,
28779 s-pack03.adb, s-pack03.ads, s-pack05.adb, s-pack05.ads, s-pack06.adb,
28780 s-pack06.ads, s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
28781 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads, s-pack12.adb,
28782 s-pack12.ads, s-pack13.adb, s-pack13.ads, s-pack14.adb, s-pack14.ads,
28783 s-pack15.adb, s-pack15.ads, s-pack17.adb, s-pack17.ads, s-pack18.adb,
28784 s-pack18.ads, s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
28785 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads, s-pack23.adb,
28786 s-pack23.ads, s-pack24.adb, s-pack24.ads, s-pack25.adb, s-pack25.ads,
28787 s-pack26.adb, s-pack26.ads, s-pack27.adb, s-pack27.ads, s-pack28.adb,
28788 s-pack28.ads, s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
28789 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads, s-pack34.adb,
28790 s-pack34.ads, s-pack35.adb, s-pack35.ads, s-pack36.adb, s-pack36.ads,
28791 s-pack37.adb, s-pack37.ads, s-pack38.adb, s-pack38.ads, s-pack39.adb,
28792 s-pack39.ads, s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
28793 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads, s-pack44.adb,
28794 s-pack44.ads, s-pack45.adb, s-pack45.ads, s-pack46.adb, s-pack46.ads,
28795 s-pack47.adb, s-pack47.ads, s-pack48.adb, s-pack48.ads, s-pack49.adb,
28796 s-pack49.ads, s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
28797 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads, s-pack54.adb,
28798 s-pack54.ads, s-pack55.adb, s-pack55.ads, s-pack56.adb, s-pack56.ads,
28799 s-pack57.adb, s-pack57.ads, s-pack58.adb, s-pack58.ads, s-pack59.adb,
28800 s-pack59.ads, s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
28801 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads, s-scaval.adb,
28802 s-scaval.ads, s-sequio.adb, s-sequio.ads, s-stache.adb, s-stache.ads,
28803 s-stratt.adb, s-stratt.ads, s-strcom.adb, s-strcom.ads, s-strops.adb,
28804 s-strops.ads, s-taasde.ads, s-tadeca.adb, s-tadeca.ads, s-tadert.adb,
28805 s-tadert.ads, s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
28806 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads, s-tasini.adb,
28807 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
28808 s-tasren.ads, s-tasres.ads, s-tassta.adb, s-tassta.ads, s-tasuti.adb,
28809 s-tasuti.ads, s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
28810 s-tpoben.adb, s-tpoben.ads, s-tpobop.ads, s-tporft.adb, s-tposen.ads,
28811 s-traces.adb, s-traces.ads, s-tratas.adb, s-tratas.ads, s-valint.ads,
28812 s-unstyp.ads, s-veboop.adb, s-veboop.ads, s-vector.ads, s-vercon.adb,
28813 s-vercon.ads, s-wchcnv.adb, s-wchcnv.ads, s-wchjis.adb, s-wchjis.ads,
28814 s-wchstw.adb, s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
28815 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb, s-widenu.ads,
28816 s-widlli.adb, s-widlli.ads, s-widllu.adb, s-widllu.ads, s-wwdcha.ads,
28817 s-wwdenu.adb, s-wwdwch.ads, text_io.ads, s-stchop.ads, s-stchop.adb,
28818 s-stchop-vxworks.adb, a-intnam-darwin.ads, s-osinte-darwin.adb,
28819 s-osinte-darwin.ads, s-vxwork-x86.ads, a-numaux-darwin.ads,
28820 a-numaux-darwin.adb, a-chzla1.ads, a-chzla9.ads, a-lfztio.ads,
28821 a-liztio.ads, a-llfzti.ads, a-llizti.ads, a-sfztio.ads, a-siztio.ads,
28822 a-ssizti.ads, a-stzbou.adb, a-stzfix.adb, a-stzfix.ads, a-stzmap.adb,
28823 a-stzsea.adb, a-stzsup.adb, a-swunau.adb, a-swunau.ads, a-szuzti.adb,
28824 a-szuzti.ads, a-tiunio.ads, a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads,
28825 a-ztcoio.adb, a-ztcoio.ads, a-ztcstr.ads, a-ztdeau.adb, a-ztdeio.adb,
28826 a-ztenio.adb, a-ztexio.adb, a-ztfiio.adb, a-ztflio.adb, a-ztgeau.adb,
28827 a-ztinau.adb, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb, a-ztmoio.adb,
28828 a-zttest.adb, a-zzunio.ads, g-utf_32.adb: Fix header style.
28829 "GNU Ada" to GNAT, use proper casing for RUN-TIME.
28831 2005-06-14 Jose Ruiz <ruiz@adacore.com>
28832 Arnaud Charlet <charlet@adacore.com>
28834 * a-sytaco.ads, a-sytaco.adb (Suspension_Object): These objects are no
28835 longer protected objects. They have been replaced by lower-level
28836 suspension objects made up by a mutex and a condition variable (or
28837 their equivalent given a particular OS) plus some internal data to
28838 reflect the state of the suspension object.
28839 (Initialize, Finalize): Add this initialization procedure for
28840 Suspension_Object, which is a controlled type.
28841 (Finalize): Add the finalization procedure for Suspension_Object,
28842 which is a controlled type.
28844 * a-sytaco-vxworks.ads, a-sytaco-vxworks.adb: Remove this version of
28845 Ada.Synchronous_Task_Control because there is no longer a need for a
28846 VxWorks specific version of this package. Target dependencies
28847 has been moved to System.Task_Primitives.Operations.
28849 * s-osinte-mingw.ads (pCRITICAL_SECTION): Remove this type which is no
28851 (InitializeCriticalSection, EnterCriticalSection,
28852 LeaveCriticalSection, DeleteCriticalSection): Replace the type
28853 pCriticalSection by an anonymous access type so that we avoid problems
28854 of accessibility to local objects.
28856 * s-taprop.ads, s-taprop-posix.adb, s-taprop-vxworks.adb,
28857 s-taprop-mingw.adb, s-taprop-vms.adb, s-taprop-solaris.adb,
28858 s-taprop-os2.adb, s-taprop-dummy.adb, s-taprop-hpux-dce.adb,
28859 s-taprop-linux.adb, s-taprop-irix.adb, s-taprop-irix-athread.adb,
28860 s-taprop-tru64.adb, s-taprop-lynxos.adb (Elaboration Code): No longer
28861 set the environment task mask here.
28862 (Current_State): Add this function that returns the state of the
28864 (Set_False): Add this procedure that sets the state of the suspension
28866 (Set_True): Add this procedure that sets the state of the suspension
28867 object to True, releasing the task that was suspended, if any.
28868 (Suspend_Until_True): Add this procedure that blocks the calling task
28869 until the state of the object is True. Program_Error is raised if
28870 another task is already waiting on that suspension object.
28871 (Initialize): Add this procedure for initializing the suspension
28872 object. It initializes the mutex and the condition variable which are
28873 used for synchronization and queuing, and it sets the internal state
28875 (Finalize): Add this procedure for finalizing the suspension object,
28876 destroying the mutex and the condition variable.
28878 * s-taspri-posix.ads, s-taspri-vxworks.ads, s-taspri-mingw.ads,
28879 s-taspri-vms.ads, s-taspri-solaris.ads, s-taspri-os2.ads,
28880 s-taspri-dummy.ads, s-taspri-hpux-dce.ads, s-taspri-linux.ads,
28881 s-taspri-tru64.ads, s-taspri-lynxos.ads (Suspension_Object): New object
28882 which provides a low-level abstraction (using operating system
28883 primitives) for Ada.Synchronous_Task_Control.
28884 This object is made up by a mutex (for ensuring mutual exclusion), a
28885 condition variable (for queuing threads until the condition is
28886 signaled), a Boolean (State) indicating whether the object is open,
28887 and a Boolean (Waiting) reflecting whether there is a task already
28888 suspended on this object.
28890 * s-intman.ads, s-intman-irix.adb, s-intman-irix-athread.adb,
28891 s-intman-dummy.adb, s-intman-solaris.adb, s-intman-vms.adb,
28892 s-intman-vms.ads, s-intman-mingw.adb,
28893 (Initialize_Interrupts): Removed, no longer used.
28895 * s-inmaop-posix.adb, s-inmaop-vms.adb, s-inmaop-dummy.adb,
28896 (Setup_Interrupt_Mask): New procedure.
28898 * s-intman-vxworks.ads, s-intman-vxworks.adb: Update comments.
28900 * s-inmaop.ads (Setup_Interrupt_Mask): New procedure
28902 * s-interr.adb: Add explicit call to Setup_Interrupt_Mask now that
28903 this is no longer done in the body of s-taprop
28904 (Server_Task): Explicitely test for Pending_Action in case
28905 System.Parameters.No_Abort is True.
28907 * s-taasde.adb: Add explicit call to Setup_Interrupt_Mask now that this
28908 is no longer done in the body of s-taprop
28910 2005-06-14 Robert Dewar <dewar@adacore.com>
28912 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
28913 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
28914 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
28915 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
28916 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
28917 system-linux-x86.ads, system-vxworks-mips.ads, system-vxworks-mips.ads,
28918 system-os2.ads, system-interix.ads, system-solaris-sparc.ads,
28919 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
28920 system-vms-zcx.ads, system-vxworks-ppc.ads, system.ads,
28921 system-darwin-ppc.ads, system-vxworks-x86.ads, system-linux-ppc.ads,
28922 system-linux-hppa.ads, system-vms_64.ads,
28923 system-vxworks-alpha.ads: Minor comment update for
28924 AI-362 (unit is Pure).
28926 * a-chahan.ads, a-chahan.adb: Move Wide_Wide functions to Conversions
28927 Add pragma Pure_05 for AI-362
28928 Make remaining conversion functions obsolescent in Ada 95
28930 * impunit.adb: Change a-swunha to a-swuwha and a-szunha to a-szuzha
28931 Make Ada.Wide_Characters[.Unicode] available in Ada 95 mode
28932 Add entries for a-wichun and a-zchuni
28933 Add a-widcha a-zchara for AI-395
28934 Add a-chacon (Ada.Characters.Conversions) to list of Ada 2005 routines
28936 * Makefile.rtl: Change a-swunha to a-swuwha and a-szunha to a-szuzha
28937 Add entries for a-wichun.o and a-zchuni.o
28938 Entries for a-widcha.o and a-zchara.o
28939 Add entry for a-chacon.o
28941 * a-ztenau.adb: Add with of Ada.Characters.Conversions
28943 * a-chacon.ads, a-chacon.adb: New files.
28945 * a-taside.adb, a-exstat.adb, a-excach.adb: Add warnings off to allow
28946 categorization violations.
28948 * a-strmap.ads: Add pragma Pure_05 for AI-362
28949 * a-strmap.ads: Add note on implicit categorization for AI-362
28951 * a-tgdico.ads, a-taside.ads: Add pragma Preelaborate_05 for AI-362
28953 * par-prag.adb: Dummy entry for pragma Persistent_BSS
28954 Set Ada_Version_Explicit, for implementation of AI-362
28955 Add processing for pragma Pure_05 and Preelaborate_05
28956 Add entry for Assertion_Policy pragma
28958 * sem.adb: Make sure predefined units are compiled with GNAT_Mode true
28959 when needed for proper processing of categorization stuff
28962 For several cases, make errors in preealborate units warnings,
28963 instead of errors, if GNAT_Mode is set. For AI-362.
28965 * sem_elab.adb (Check_Elab_Call): Call to non-static subprogram in
28966 preelaborate unit is now warning if in GNAT mode
28968 * s-stoele.ads: Document AI-362 for pragma preelaborate
28970 2005-06-14 Doug Rupp <rupp@adacore.com>
28972 * s-parame-vms.ads, s-parame-hpux.ads, s-parame-vms-restrict.ads,
28973 s-parame-ae653.ads, s-parame.ads, s-parame-vxworks.ads:
28974 Default_Exception_Msg_Max_Length: new parameter.
28976 * a-except.ads: (Exception_Msg_Max_Length): Set to
28977 System.Parameters.Default_Exception_Msg_Max_Length
28978 Add pragma Preelaborate_05 for AI-362
28979 Add warnings off to allow categorization violations for AI-362
28981 2005-06-14 Vincent Celier <celier@adacore.com>
28983 * gnatsym.adb: Adapt to modification of package Symbols: procedure
28984 Process is now in package Processing.
28986 * symbols.ads, symbols.adb:
28987 (Processing): New package, containing procedure Process
28989 * symbols-vms-alpha.adb:
28990 Replaced by symbols-vms.adb and symbols-processing-vms-alpha.adb
28992 * symbols-vms.adb, symbols-processing-vms-alpha.adb,
28993 symbols-processing-vms-ia64.adb: New files.
28995 2005-06-14 Pascal Obry <obry@adacore.com>
28997 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Replace the previous
28998 implementation. This new version generates the proper DllMain routine
28999 to initialize the SAL. The DllMain is generated in Ada and compiled
29000 before being added as option to the library build command.
29002 2005-06-14 Doug Rupp <rupp@adacore.com>
29003 Pascal Obry <obry@adacore.com>
29005 * adaint.c (__gnat_to_canonical_file_spec): Check for error returns in
29006 call to decc$translate_vms.
29007 (__gnat_locate_regular_file): Check if the path_val contains quotes. We
29008 need to remove those quotes before catenating the filename.
29009 (__gnat_locate_exec_on_path): improvements to the Win32 section:
29010 * avoid allocating the memory twice for better efficiency;
29011 * allocate 32K buffer for environment expansion as suggested by MSDN;
29012 * prepend ".;" to the path so that current directory is searched too.
29014 2005-06-14 Robert Dewar <dewar@adacore.com>
29016 * a-except.adb (Exception_Identity): return Null_Id for null occurrence
29017 instead of raising CE (AI-241)
29018 Add warnings off to allow categorization violations for AI-362
29020 2005-06-14 Robert Dewar <dewar@adacore.com>
29022 * ali-util.adb, gnatbind.adb: Remove references to
29023 Force_RM_Elaboration_Order.
29025 * switch-b.adb: Remove recognition of -f switch
29027 2005-06-14 Pascal Obry <obry@adacore.com>
29029 * a-stzunb.adb, a-stwiun.adb, a-strunb.adb (Realloc_For_Chunk): New
29030 implementation which is slightly more efficient.
29032 2005-06-14 Gary Dismukes <dismukes@adacore.com>
29033 Javier Miranda <miranda@adacore.com>
29034 Ed Schonberg <schonberg@adacore.com>
29035 Hristian Kirtchev <kirtchev@adacore.com>
29037 * exp_ch4.adb (Expand_Allocator_Expression): When an initialized
29038 allocator's designated type is a class-wide type, and compiling for
29039 Ada 2005, emit a run-time check that the accessibility level of the
29040 type given in the allocator's expression is not deeper than the level
29041 of the allocator's access type.
29043 (Tagged_Membership): Modified to gives support to abstract interface
29046 * a-tags.ads, a-tags.adb (type Type_Specific_Data): Add component
29048 (Descendant_Tag): New predefined function
29049 (Is_Descendant_At_Same_Level): New predefined function
29050 (Get_Access_Level): New private function
29051 (Set_Access_Level): New private procedure
29052 (IW_Membership): New function. Given the tag of an object and the tag
29053 associated with an interface, evaluate if the object implements the
29055 (Register_Interface_Tag): New procedure used to initialize the table of
29056 interfaces used by the IW_Membership function.
29057 (Set_Offset_To_Top): Initialize the Offset_To_Top field in the prologue
29058 of the dispatch table.
29059 (Inherit_TSD): Modified to copy the table of ancestor tags plus the
29060 table of interfaces of the parent.
29061 (Expanded_Name): Raise Tag_Error if the passed tag equals No_Tag.
29062 (External_Tag): Raise Tag_Error if the passed tag equals No_Tag.
29063 (Parent_Tag): Return No_Tag in the case of a root-level tagged type,
29064 and raise Tag_Error if the passed tag equalis No_Tag, to conform with
29065 Ada 2005 semantics for the new predefined function.
29067 * exp_attr.adb (Expand_N_Attribute, case Attribute_Input): Generate
29068 call to Descendant_Tag rather than Internal_Tag.
29069 (Expand_N_Attribute, case Attribute_Output): Emit a check to ensure that
29070 the accessibility level of the attribute's Item parameter is not deeper
29071 than the level of the attribute's prefix type. Tag_Error is raised if
29072 the check fails. The check is only emitted for Ada_05.
29073 (Find_Stream_Subprogram): If a TSS exists on the type itself for the
29074 requested stream attribute, use it.
29075 (Expand_N_Attribute_Reference): If the designated type is an interface
29076 then rewrite the referenced object as a conversion to force the
29077 displacement of the pointer to the secondary dispatch table.
29078 (Expand_N_Attribute_Reference, case 'Constrained): Return false if this
29079 is a dereference of an object with a constrained partial view.
29081 * exp_ch5.adb (Expand_N_Return_Statement): When a function's result
29082 type is a class-wide type, emit a run-time check that the accessibility
29083 level of the returned object is not deeper than the level of the
29084 function's master (only when compiling for Ada 2005).
29086 * exp_disp.ads, exp_disp.adb (Ada_Actions, Action_Is_Proc,
29087 Action_Nb_Arg): Add entries for new Get_Access_Level and
29088 Set_Access_Level routines in these tables.
29089 (Make_DT): Generate a call to set the accessibility level of the
29090 tagged type in its TSD.
29091 (Make_DT): Code cleanup. The functionality of generating all the
29092 secondary dispatch tables has been moved to freeze_record_type.
29093 (Make_Abstract_Interface_DT): Minor code cleanup.
29094 (Set_All_DT_Position): Code cleanup. As part of the code cleanup
29095 this subprogram implements a new algorithm that provides the
29096 same functionality and it is more clear in case of primitives
29097 associated with abstract interfaces.
29098 (Set_All_Interfaces_DTC_Entity): Removed. As part of the code
29099 clean up, the functionality of this subprogram is now provided
29100 by Set_All_DT_Position.
29101 (Write_DT): New subprogram: a debugging procedure designed to be called
29102 within gdb to display the dispatch tables associated with a tagged
29104 (Collect_All_Interfaces): New subprogram that collects the whole list
29105 of interfaces that are directly or indirectly implemented by a tagged
29107 (Default_Prim_Op_Position): New subprogram that returns the fixed
29108 position in the dispatch table of the default primitive operations.
29109 (Expand_Interface_Actuals): New subprogram to generate code that
29110 displaces all the actuals corresponding to class-wide interfaces to
29111 reference the interface tag of the actual object.
29112 (Expand_Interface_Conversion): New subprogram. Reference the base of
29113 the object to give access to the interface tag associated with the
29114 secondary dispatch table.
29115 (Expand_Interface_Thunk): New subprogram that generates the code of the
29116 thunk. This is required for compatibility with the C+ ABI.
29117 (Make_Abstract_Interface_DT): New subprogram that generate the
29118 declarations for the secondary dispatch tables associated with an
29119 abstract interface.
29120 (Set_All_Interfaces_DTC_Entity): New subprogram that sets the DTC_Entity
29121 attribute for each primitive operation covering interface subprograms
29122 (Expand_Dispatching_Call, Fill_DT_Entry, Make_DT, Set_All_DT_Position):
29123 These subprograms were upgraded to give support to abstract interfaces
29125 * rtsfind.ads (type RE_Id): Add RE_Descendant_Tag,
29126 RE_Is_Descendant_At_Same_Level, RE_Get_Access_Level, and
29127 RE_Set_Access_Level.
29128 (RE_Unit_Table): Add entries for new Ada.Tags operations.
29129 Add support to call the followig new run-time subprograms:
29130 IW_Membership, Register_Interface_Tag, and Set_Offset_To_Top
29132 * sem_ch3.adb (Constant_Redeclaration): Allow a deferred constant to
29133 match its full declaration when both have an access definition with
29134 statically matching designated subtypes.
29135 (Analyze_Component_Declaration): Delete commented out code that was
29136 incorrectly setting the scope of an anonymous access component's type.
29137 (Process_Discriminants): Set Is_Local_Anonymous_Access for the type of
29138 an access discriminant when the containing type is nonlimited.
29139 (Make_Incomplete_Type_Declaration): Create an incomplete type
29140 declaration for a record type that includes self-referential access
29142 (Check_Anonymous_Access_Types): Before full analysis of a record type
29143 declaration, create anonymous access types for each self-referential
29145 (Analyze_Component_Declaration, Array_Type_Declaration): Indicate that
29146 an access component in this context is a Local_Anonymous_Access, for
29147 proper accessibility checks.
29148 (Access_Definition): Set properly the scope of the anonymous access type
29149 created for a stand-alone access object.
29150 (Find_Type_Of_Object): An object declaration may be given with an access
29152 (Complete_Subprograms_Derivation): New subprogram used to complete
29153 type derivation of private tagged types implementing interfaces.
29154 In this case some interface primitives may have been overriden
29155 with the partial-view and, instead of re-calculating them, they
29156 are included in the list of primitive operations of the full-view.
29157 (Build_Derived_Record_Type): Modified to give support to private
29158 types implemening interfaces.
29159 (Access_Definition): Reject ALL on anonymous access types.
29160 (Build_Derived_Record_Type): In the case of Ada 2005, allow a tagged
29161 type derivation to occur at a deeper accessibility level than the
29163 For the case of derivation within a generic body however, disallow the
29164 derivation if the derived type has an ancestor that is a formal type
29165 declared in the formal part of an enclosing generic.
29166 (Analyze_Object_Declaration): For protected objects, remove the check
29167 that they cannot contain interrupt handlers if not declared at library
29169 (Add_Interface_Tag_Components): New subprogram to add the tag components
29170 corresponding to all the abstract interface types implemented by a
29171 record type or a derived record type.
29172 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
29173 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
29174 Process_Full_View, Record_Type_Declaration): Modified to give
29175 support to abstract interface types
29176 (Collect_Interfaces): New subprogram that collects the list of
29177 interfaces that are not already implemented by the ancestors
29178 (Process_Full_View): Set flag Has_Partial_Constrained_View appropriately
29179 when partial view has no discriminants and full view has defaults.
29180 (Constrain_Access): Reject a constraint on a general access type
29181 if the discriminants of the designated type have defaults.
29182 (Access_Subprogram_Declaration): Associate the Itype node with the inner
29183 full-type declaration or subprogram spec. This is required to handle
29184 nested anonymous declarations.
29185 (Analyze_Private_Extension_Declaration, Build_Derived_Record_Type,
29186 Derived_Type_Declaration, Find_Type_Name, Inherit_Components,
29187 Process_Full_View, Record_Type_Declaration): Modified to give
29188 support to abstract interface types
29189 (Derive_Subprograms): Addition of a new formal to indicate if
29190 we are in the case of an abstact-interface derivation
29191 (Find_Type_Of_Subtype_Indic): Moved from the body of the package
29192 to the specification because it is requied to analyze all the
29193 identifiers found in a list of interfaces
29195 * debug.adb: Complete documentation of flag "-gnatdZ"
29197 * exp_ch3.adb: Implement config version of persistent_bss pragma
29198 (Check_Stream_Attributes): Use Stream_Attribute_Available instead of
29199 testing for TSS presence to properly enforce visibility rules.
29200 (Freeze_Record_Type): Code cleanup. Modified to call the subprogram
29201 Make_Abstract_Interfaces_DT to generate the secondary tables
29202 associated with abstract interfaces.
29203 (Build_Init_Procedure): Modified to initialize all the tags
29205 (Component_Needs_Simple_Initialization): Similar to other tags,
29206 interface tags do not need initialization.
29207 (Freeze_Record_Type): Modified to give support to abstract interface
29209 (Expand_N_Object_Declaration): Do not generate an initialization for
29210 a scalar temporary marked as internal.
29212 * exp_ch6.adb (Add_Simple_Call_By_Copy_Code): Handle properly an
29213 in-out parameter that is a component in an initialization procedure,
29214 whose constraint might depend on discriminants, and that may be
29215 misaligned because of packing or representation clauses.
29216 (Is_Legal_Copy): New predicate to determine whether a possibly
29217 misaligned in-out actual can actually be passed by copy/return. This
29218 is an error in case the type is by_reference, and a warning if this is
29219 the consequence of a DEC import pragma on the subprogram.
29220 (Expand_Call, Freeze_Subprogram): Modified to give support to abstract
29222 (Expand_Inlined_Call): Mark temporary generated for the return value as
29223 internal, so that no useless scalar normalization is generated for it.
29224 (Expand_N_Subprogram_Declaration): Save unanalyzed body so calls to
29225 null procedure can always be inlined.
29226 (Expand_N_Subprogram_Declaration): If this is the declaration of a null
29227 procedure, generate an explicit empty body for it.
29229 * exp_util.ads, exp_util.adb (Find_Interface_ADT): New subprogram.
29230 Given a type implementing an interface, returns the corresponding
29231 access_disp_table value.
29232 (Find_Interface_Tag): New subprogram. Given a type implementing an
29233 interface, returns the record component containing the tag of the
29235 (Find_Interface_Tag): New overloaded subprogram. Subsidiary to the
29236 previous ones that return the corresponding tag and access_disp_table
29238 (Is_Predefined_Dispatching_Operation): Determines if a subprogram
29239 is a predefined primitive operation.
29240 (Expand_Subtype_From_Expr): If the expression is a selected component
29241 within an initialization procedure, compute its actual subtype, because
29242 the component may depend on the discriminants of the enclosing record.
29244 * i-cpp.ads, i-cpp.adb:
29245 This package has been left available for compatibility with previous
29246 versions of the frontend. As part of the new layout this is now a
29247 dummy package that uses declarations available at a-tags.ads
29249 * par-ch3.adb (P_Identifier_Declarations): Give an error for use of
29250 "constant access" and "aliased [constant] access" when not compiling
29252 Suppress Ada 2005 keyword warning if -gnatwY used
29253 (P_Identifier_Declarations): Add support for object declarations with
29254 access definitions.
29255 (Private_Extension_Declaration): Complete the documentation
29256 (P_Derived_Type_Def_Or_Private_Ext_Decl): Fill the inteface_list
29257 attribute in case of private extension declaration
29258 (P_Type_Declaration): Mark as "abstract" the type declarations
29259 corresponding with protected, synchronized and task interfaces
29260 (P_Declarative_Items): "not" and "overriding" are overriding indicators
29261 for a subprogram or instance declaration.
29263 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Verify that an
29264 instantiation that is a dispatching operation has controlling access
29265 parameters that are null excluding.
29266 Save and restore Ada_Version_Explicit, for implementation of AI-362
29267 (Validate_Derived_Type_Instance): Add check for abstract interface
29269 (Analyze_Formal_Package): Establish Instantiation source for the copy of
29270 the generic that is created to represent the formal package.
29271 (Analyze_Package_Instantiation): Instantiate body immediately if the
29272 package is a predefined unit that contains inlined subprograms, and
29273 we are compiling for a Configurable_Run_Time.
29274 (Instantiate_Formal_Subprogram): Indicate that null default subprogram
29275 If the program has a null default, generate an empty body for it.
29277 * sem_ch6.adb, sem_ch9.adb (Analyze_Subprograms_Declaration): Update
29278 error message condition, null procedures are correctly detected now.
29279 (New_Overloaded_Entity): Bypass trivial overriding indicator check
29280 for subprograms in the context of protected types. Instead, the
29281 indicator is examined in Sem_Ch9 while analysing the subprogram
29283 (Check_Overriding_Indicator): Check consistency of overriding indicator
29284 on subprogram stubs as well.
29285 (Analyze_Subprogram_Declaration): Diagnose null procedures declared at
29287 (Analize_Subprogram_Specification): When analyzing a subprogram in which
29288 the type of the first formal is a concurrent type, replace this type
29289 by the corresponding record type.
29290 (Analyze_Subprogram_Body): Undo the previous work.
29291 (Analyze_Procedure_Call): If the call has the form Object.Op, the
29292 analysis of the prefix ends up analyzing the call itself, after which
29294 (Has_Interface_Formals): New subprogram subsidiary to analyze
29295 subprogram_specification that returns true if some non
29296 class-wide interface subprogram is found
29297 (New_Overloaded_Entity): Modified to give support to abstract
29299 (Conforming_Types): In Ada 2005 mode, conformance checking of anonymous
29300 access to subprograms must be recursive.
29301 (Is_Unchecked_Conversion): Improve the test that recognizes
29302 instantiations of Unchecked_Conversion, and allows them in bodies that
29303 are to be inlined by the front-end. When the body comes from an
29304 instantiation, a reference to Unchecked_Conversion will be an
29305 Expanded_Name, even though the body has not been analyzed yet.
29306 Replace Is_Overriding and Not_Overriding in subprogram_indication with
29307 Must_Override and Must_Not_Override, to better express intent of AI.
29308 (Analyze_Subprogram_Body): If an overriding indicator is given, check
29309 that it is consistent with the overrinding status of the subprogram
29311 (Analyze_Subprogram_Declaration): Indicate that a null procedure is
29313 If the subprogram is a null procedure, indicate that it does not need
29316 * sem_disp.adb (Check_Controlling_Type): Give support to entities
29317 available through limited-with clauses.
29318 (Check_Dispatching_Operation): A stub acts like a body, and therefore is
29319 allowed as the last primitive of a tagged type if it has no previous
29321 (Override_Dispatching_Operation, Check_Dispatching_Operation): Modified
29322 to give support to abstract interface types
29324 * sem_res.adb (Valid_Conversion): Perform an accessibility level check
29325 in the case where the target type is an anonymous access type of an
29326 object or component (that is, when Is_Local_Anonymous_Access is true).
29327 Prevent the special checks for conversions of access discriminants in
29328 the case where the discriminant belongs to a nonlimited type, since
29329 such discriminants have their accessibility level defined in the same
29330 way as a normal component of an anonymous access type.
29331 (Resolve_Allocator): When an allocator's designated type is a class-wide
29332 type, check that the accessibility level of type given in the
29333 allocator's expression or subtype indication is not statically deeper
29334 than the level of the allocator's access type.
29335 (Check_Discriminant_Use): Diagnose discriminant given by an expanded
29336 name in a discriminant constraint of a record component.
29337 (Resolve_Explicit_Dereference): Do not check whether the type is
29338 incomplete when the dereference is a use of an access discriminant in
29339 an initialization procedure.
29340 (Resolve_Type_Conversion): Handle conversions to abstract interface
29342 (Valid_Tagged_Conversion): The conversion of a tagged type to an
29343 abstract interface type is always valid.
29344 (Valid_Conversion): Modified to give support to abstract interface types
29345 (Resolve_Actuals): Enable full error reporting on view conversions
29346 between unrelated by_reference array types.
29347 The rule for view conversions of arrays with aliased components is
29348 weakened in Ada 2005.
29349 Call to obsolescent subprogram is now considered to be a violation of
29350 pragma Restrictions (No_Obsolescent_Features).
29351 (Check_Direct_Boolean_Operator): If the boolean operation has been
29352 constant-folded, there is nothing to check.
29353 (Resolve_Comparison_Op, Resolve_Equality_Op, Resolve_Boolean_Op): Defer
29354 check on possible violation of restriction No_Direct_Boolean_Operators
29355 until after expansion of operands, to prevent spurious errors when
29356 operation is constant-folded.
29358 * sem_type.ads, sem_type.adb (Covers, Intersect_Types, Specific_Type,
29359 Has_Compatible_Type): Modified to give support to abstract interface
29361 (Interface_Present_In_Ancestor): New function to theck if some ancestor
29362 of a given type implements a given interface
29364 * sem_ch4.adb (Analyze_Call): Handle properly an indirect call whose
29365 prefix is a parameterless function that returns an access_to_procedure.
29366 (Transform_Object_Operation): Handle properly function calls of the
29367 form Obj.Op (X), which prior to analysis appear as indexed components.
29368 (Analyze_One_Call): Complete the error notification to help new Ada
29370 (Analyze_Allocator): For an allocator without an initial value, where
29371 the designated type has a constrained partial view, a discriminant
29372 constraint is illegal.
29374 2005-06-14 Robert Dewar <dewar@adacore.com>
29376 * a-textio.adb (Set_Col): Fix two errors noticed recently, having to
29377 do with treatment of Set_Col when positioned at end of line character.
29379 2005-06-14 Robert Dewar <dewar@adacore.com>
29381 * atree.adb: (Elist*): Protect against uninitialized field
29383 2005-06-14 Ed Schonberg <schonberg@adacore.com>
29385 * checks.adb (Install_Null_Excluding_Check): Do not generate checks
29386 for an attribute reference that returns an access type.
29387 (Apply_Discriminant_Check): No need for check if (designated) type has
29388 constrained partial view.
29390 (Apply_Float_Conversion_Check): Generate a short-circuit expression for
29391 both bound checks, rather than a conjunction.
29392 (Insert_Valid_Check): If the expression is an actual that is an indexed
29393 component of a bit-packed array, force expansion of the packed element
29394 reference, because it is specifically inhibited elsewhere.
29396 2005-06-14 Vincent Celier <celier@adacore.com>
29398 * clean.adb (Clean_Project): Correctly delete executable specified as
29399 absolute path names.
29401 * make.adb (Gnatmake): Allow relative executable path names with
29402 directory information even when project files are used.
29403 (Change_To_Object_Directory): Fail gracefully when unable to change
29404 current working directory to object directory of a project.
29405 (Gnatmake): Remove exception handler that could no longer be exercized
29406 (Compile_Sources.Compile): Use deep copies of arguments, as some of them
29407 may be deallocated by Normalize_Arguments.
29408 (Collect_Arguments): Eliminate empty arguments
29410 * gnatcmd.adb (All_Projects): New Boolean flag, initialized to False,
29411 and set to True when -U is used for GNAT PRETTY or GNAT METRIC.
29412 (Check_Project): Return False when Project is No_Project. Return True
29413 when All_Projects is True.
29414 (GNATCmd): Recognize switch -U for GNAT PRETTY and GNAT METRIC and set
29415 All_Projects to True.
29418 2005-06-14 Ed Schonberg <schonberg@adacore.com>
29419 Javier Miranda <miranda@adacore.com>
29420 Thomas Quinot <quinot@adacore.com>
29421 Robert Dewar <dewar@adacore.com>
29422 Hristian Kirtchev <kirtchev@adacore.com>
29423 Gary Dismukes <dismukes@adacore.com>
29425 * einfo.ads, einfo.adb (Is_Local_Anonymous_Access): New flag on
29426 anonymous access types, to indicate that the accessibility level of
29427 the type is determined by that of the enclosing declaration.
29428 (Has_Persistent_BSS): New flag
29429 (Set_Is_Primitive_Wrapper): Upgrade the barrier to allow the usage
29430 of this attribute with functions.
29431 (Is_Primitive_Wrapper): Remove the barrier.
29432 (Has_Specified_Stream_Input, Has_Specified_Stream_Output,
29433 Has_Specified_Stream_Read, Has_Specified_Stream_Write):
29435 (Set_Has_Specified_Stream_Input, Set_Has_Specified_Stream_Output,
29436 Set_Has_Specified_Stream_Read, Set_Has_Specified_Stream_Write):
29438 (Is_Pure_Unit_Access_Type): New flag
29439 (Abstract_Interfaces): Complete the assertion to cover all usages.
29440 (Set_Is_Interface): Complete the assertion to cover all usages.
29441 (Is_Primitive_Wrapper): New attribute.
29442 (Is_Obsolescent): Now applies to all entities (though it is only set
29443 for subprograms currently)
29444 New flag: Has_Constrained_Partial_View, to implemente Ada 2005 AI-363,
29445 which solves various problems concerning access subtypes.
29446 (Has_Persistent_BSS): New flag
29447 (Is_Primitive_Wrapper, Set_Primitive_Wrapper): Code cleanup.
29448 Remove these subprograms because this attribute is currently
29451 Has_Specified_Stream_Input (Flag190)
29452 Has_Specified_Stream_Output (Flag191)
29453 Has_Specified_Stream_Read (Flag192)
29454 Has_Specified_Stream_Write (Flag193)
29455 Present in all type and subtype entities. Set for a given view if the
29456 corresponding stream-oriented attribute has been defined by an
29457 attribute definition clause. When such a clause occurs, a TSS is set
29458 on the underlying full view; the flags are used to track visibility of
29459 the attribute definition clause for partial or incomplete views.
29460 (Is_Pure_Unit_Access_Type): New flag
29461 Clarify use of Is_Internal.
29462 (Is_Primitive_Wrapper): New attribute present in primitive subprograms
29463 internally generated to wrap the invocation of tasks and protected
29464 types that implement interfaces.
29465 (Implementation_Base_Type): Documentation correction
29466 (Is_Obsolescent): Now applies to all entities (though it is only set
29467 for subprograms currently)
29468 New flag: Has_Constrained_Partial_View, to implement Ada 2005 AI-363,
29469 which solves various problems concerning access subtypes.
29471 * exp_ch9.adb (Type_Conformant_Parameters): Introduce mode conformance
29472 for examined parameters. Identify unequal parameter list lengths as
29473 non-conformant parameters.
29474 (Overriding_Possible): Do not check for "All" qualifier in declaration
29475 of controlling access parameter, following prescription of AI-404.
29476 (Build_Entry_Wrapper_Spec, Build_Entry_Wrapper_Body): New subprograms
29477 that build the procedure body that wraps an entry invocation
29478 (Build_Corresponding_Record, Build_Protected_Sub_Specification,
29479 Expand_N_Protected_Body, Expand_N_Protected_Type_Declaration,
29480 Expand_N_Task_Body, Expand_N_Task_Type_Declaration): Modified to
29481 give support to abstract interface types
29483 * freeze.adb (Freeze_Entity): Issue error message if
29484 Is_Pure_Unit_Access_Type set, unless we are in Ada 2005 mode and the
29485 type has no storage pool (Ada 2005) AI-366.
29486 Also modified to give support to abstract interface types
29487 (Freeze_Subprogram): Issue an error for a dispatching subprogram with an
29488 Inline_Always pragma.
29490 * par-ch9.adb (P_Task_Items): Reserved words "not" or "overriding" may
29491 now begin an entry declaration.
29492 (P_Entry_Or_Subprogram_With_Indicator): New procedure in
29493 P_Protected_Operation_Declaration_Opt. Parse an entry declaration or
29494 a subprogram declaration preceded by an overriding indicator.
29495 (P_Protected_Operation_Declaration_Opt): Add case for parsing entry
29496 declarations or subprogram declarations preceded by reserved words
29497 "not" or "overriding".
29498 (P_Entry_Declaration): Update comment. Parse and check overriding
29499 indicator, set semantic flags of entry declarations.
29500 (P_Task): New error message in case of private applied
29501 to a task type declaration.
29502 (P_Protected): New error message in case of private applied
29503 to a task type declaration.
29505 * sem_ch7.adb (Preserve_Full_Attributes): Modified to handle the case
29506 in which the full view of a type implementing an interface is a
29508 (Has_Overriding_Pragma): Remove obsolete implementation of AI-218.
29509 Declare_Inherited_Private_Subprograms): If an explicit operation
29510 overrides an operation that is inherited in the private part, mark the
29511 explicit one as overriding, to enable overriding indicator checks.
29512 (Preserve_Full_Attributes): Propagate Is_Unchecked_Union attribute from
29513 full view to partial view, to simplify handling in back-end.
29515 * sprint.adb: Print interface lists where needed: derived types,
29516 protected types, task types.
29517 output "is null" for null procedures. Part of implementation of
29519 * sem_cat.adb (Validate_Access_Type_Declaration): Implement AI-366
29520 relaxation of rules for access types in pure, shared passive partitions.
29522 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Reorganize to
29523 first read discriminants into temporary objects, performing checks on
29524 the read values, then possibly performing discriminant checks on the
29525 actual (if it is constrained), and only finally reading the components
29526 into a constrained temporary object.
29527 (Build_Elementary_Input_Call): Adjust the specific circuitry for the
29528 case of reading discriminants of a mutable record type to recognize
29529 the new form of the code generated by
29530 Build_Mutable_Record_Read_Procedure.
29532 * exp_tss.ads, exp_tss.adb (Make_Init_Proc_Name): Reimplement in terms
29533 of a simple call to Make_TSS_Name.
29534 (Make_TSS_Name_Local): Add the TSS name as the last thing in the name
29535 buffer, in order for Is_TSS to work correctly on local TSS names.
29537 * sem_attr.ads, sem_attr.adb (Resolve_Attribute, case 'Access): Use flag
29538 Is_Local_Anonymous_Access to check legaliy of attributes in the
29539 context of access components and stand-alone access objects.
29540 (Stream_Attribute_Available): In Ada 95 mode, a stream attribute is
29541 treated as available for a limited private type if there is an
29542 attribute_definition_clause that applies to its full view, but not in
29543 other cases where the attribute is available for the full view
29544 (specifically, the sole fact that the full view is non-limited does not
29545 make the attribute available for the partial view).
29546 (Build_Access_Subprogram_Type): Diagnose attempt to apply 'access to a
29547 non-overloaded intrinsic subprogram.
29548 (Check_Stream_Attribute): Reject an attribute reference for an
29549 unavailable stream attribute even if the prefix is not a limited type
29550 (case of a 'Input attribute reference for an abstract, non-classwide
29552 (Stream_Attribute_Available): New function to determine whether a stream
29553 attribute is available at a place.
29554 (Check_Attribute): Use Stream_Attribute_Available instead of just
29555 testing for TSS presence on the implementation base type.
29556 (Analyze_Attribute): Modified to give support to task interfaces.
29557 (Analyze_Access_Attribute): Add error check for use of an Access (or
29558 Unrestricted_Access) attribute with a subprogram marked as
29560 (Analyze_Attribute, case Attribute_Address): Add error check for use of
29561 an Address attribute with a subprogram marked as Inline_Always.
29562 Update Eval_Attribute to handle new value of Width from AI-395
29564 * sem_ch13.adb (Analyze_Stream_TSS_Definition): New subprogram.
29565 (Analyze_Attribute_Definition_Clause, cases Input, Output, Read, Write):
29566 Factor common code across the stream-oriented attribute circcuits into
29567 a new subprogram, Analyze_Stream_TSS_Definition. The new uniform
29568 processing is functionally identical to the previous duplicated one,
29569 except that an expression that denotes an abstract subprogram will now
29570 be rejected, as mandated by AI-195 item 5.
29572 * sem_util.ads, sem_util.adb (Type_Access_Level): Use flag
29573 Is_Local_Anonymous_Access to apply accessibility checks to access
29574 components and stand-alone access objects.
29575 (Has_Discriminant_Dependent_Constraint): Moved to spec for use
29577 (Is_Potentially_Persistent_Type): New function
29578 (Is_Dependent_Component_Of_Mutable_Object): If the enclosing object is
29579 a heap-object whose type has a constrained partial view, the object is
29580 unconstrained and the component may depend on a discriminant, making its
29583 * sinfo.ads, sinfo.adb
29584 (Must_Not_Override): Flag applicable to N_Entry_Declaration.
29585 (Must_Override): Flag applicable to N_Entry_Declaration.
29586 Indicate that interface_list can appear in single task and single
29587 protected declarations.
29588 Replace Is_Overriding and Not_Overriding with Must_Override and
29589 Must_Not_Override, to better express intent of AI.
29590 Is_Overriding, Not_Overriding: Ada2005 flags that indicate the presence
29591 of an overriding indicator in a subprogram or instance.
29592 Ada 2005 (AI-248) Null_Present can appear in a procedure specification.
29593 Add the overriding indicator [[not] overriding] construct to the
29594 following grammar productions:
29596 GENERIC_INSTANTIATION
29597 SUBPROGRAM_SPECIFICATION
29599 * par-ch10.adb (P_Compilation_Unit): Subprogram declaration or body
29600 can start with an overriding indicator.
29602 * par-ch6.adb (P_Subprogram): Recognize overriding indicator, and set
29603 flags accordingly on subrogram specifications or instances.
29606 (Analyze_Subprogram_Renaming): For a renaming_as_body, verify that the
29607 overriding_indicator, if present, is consistent with status of spec.
29608 Improve error message for null-excluding checks on controlling access
29610 (Check_In_Previous_With_Clause): Protect the frontend against
29611 previously reported critical errors in the context clauses.
29612 Save and restore Ada_Version_Explicit, for implementation of AI-362
29613 (Analyze_Subprogram_Renaming): If the new entity is a dispatching
29614 operation verify that controlling formals of the renamed entity that
29615 are access parameters are explicitly non-null.
29616 (Find_Expanded_Name): Improve error message when prefix is an illegal
29617 reference to a private child unit.
29619 * exp_imgv.adb, s-imgwch.ads, s-imgwch.adb, s-valwch.adb,
29620 s-valwch.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdwch.adb:
29621 Rewrite to correspond to new wide character names in AI-395
29623 * par-ch12.adb (P_Formal_Subprogram_Declaration): Recognize null
29624 default procedures.
29626 2005-06-14 Ed Schonberg <schonberg@adacore.com>
29627 Robert Dewar <dewar@adacore.com>
29629 * errout.ads, errout.adb (Error_Msg_NW): Only emit warning on user
29630 code, not on the bodies of predefined operations, to cut down on
29633 2005-06-14 Ed Schonberg <schonberg@adacore.com>
29635 * exp_aggr.adb (Aggr_Size_OK): An array with no components can always
29636 be expanded in place. The size computation does not require a
29637 subtraction, which would raise an exception on a compiler built with
29638 assertions when the upper bound is Integer'first.
29639 (Flatten): For an array of composite components, take into account the
29640 size of the components to determine whether it is safe to expand the
29641 array into a purely positional representation.
29643 2005-06-14 Thomas Quinot <quinot@adacore.com>
29645 * exp_ch2.adb (Param_Entity): Take the case of an expanded_name
29646 denoting a formal parameter into account.
29648 2005-06-14 Ed Schonberg <schonberg@adacore.com>
29650 * exp_ch7.adb (Find_Node_To_Be_Wrapped): If the node appears within
29651 the entry_call alternative of a conditional entry call, wrap the
29652 conditional entry call itself.
29654 2005-06-14 Nicolas Setton <setton@adacore.com>
29655 Ed Schonberg <schonberg@adacore.com>
29657 * exp_dbug.ads, exp_dbug.adb (Get_Variant_Part): Fix the encoding of
29658 the "simple_choice" member in a variant record, in accordance with the
29659 description in the package spec: the information output for a constant
29660 should be "S number", not "SS number".
29661 (Get_Encoded_Name): Return at once if not generating code. Avoids name
29662 overflow problem when compiling with -gnatct, for ASIS/gnatmetrics.
29664 2005-06-14 Thomas Quinot <quinot@adacore.com>
29666 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): For an
29667 RACW without any primitives, do not generate the if statement for
29668 dispatching by name in the PolyORB/DSA case, as it would be malformed
29669 (it would have an Elsif_Parts list that is not No_List, but with a
29672 2005-06-14 Robert Dewar <dewar@adacore.com>
29674 * exp_intr.adb, par-ch5.adb: Minor fix to error message text
29676 2005-06-14 Jose Ruiz <ruiz@adacore.com>
29678 * fe.h: Add entry for Opt.Exception_Locations_Suppressed so that gigi
29679 can determine whether pragma Suppress_Exception_Locations is in effect.
29681 * utils2.c (build_call_raise): Do not pass the file name to the
29682 exception handler if pragma Suppress_Exception_Locations is in effect.
29683 (build_allocator): Add and process arg IGNORE_INIT_TYPE.
29685 2005-06-14 Emmanuel Briot <briot@adacore.com>
29687 * g-debpoo.adb (Deallocate, Dereference): Improve output.
29689 2005-06-14 Nicolas Roche <roche@adacore.com>
29691 * g-diopit.adb (Wildcard_Iterator): Return directly if Path is equal
29693 (Next_Level): Fix minor bug in handling of ../dir case
29694 (Read): Add dir separator to Directory name so that "" is understood as
29697 2005-06-14 Pascal Obry <obry@adacore.com>
29699 * g-dynhta.ads, g-dynhta.adb (Reset): Free the table itself after
29700 releasing the items.
29702 2005-06-14 Vincent Celier <celier@adacore.com>
29703 Cyrille Comar <comar@adacore.com>
29705 * g-os_lib.ads, g-os_lib.adb (Non_Blocking_Spawn): Two new versions
29706 with output file descriptor and with output file name.
29707 (Dup, Dup2): Now global procedures as they are used by two subprograms
29708 (Copy): Allocate the 200K buffer on the heap rather than on the stack.
29710 2005-06-14 Thomas Quinot <quinot@adacore.com>
29713 * g-socket.ads, g-socket.adb (Inet_Addr): Special case the all-ones
29715 (Create_Selector): Bind listening socket used to create the signalling
29716 socket pair to 127.0.0.1 to limit the scope for 'theft' of connection.
29717 Set listen backlog to 1 to ensure that we detect socket theft by a
29718 failure of our own connect(2) call.
29719 (Check_Selector): Improve documentation of the selector mechanism.
29720 (Broadcast_Inet_Addr): New constant.
29722 2005-06-14 Gary Dismukes <dismukes@adacore.com>
29724 * layout.adb (Discrimify): Remove resetting of Vtype to the underlying
29725 type which turns out to be an incomplete and incorrect fix.
29726 (Layout_Array_Type): Use Underlying_Type when checking whether the scope
29727 of the type is declared in a record (for determination of insertion
29729 (SO_Ref_From_Expr): Test whether Vtype denotes a partial or full view of
29730 a private type and ensure that the primary entity is used for the type
29731 of the newly created function's V formal by taking the Etype of the
29734 2005-06-14 Javier Miranda <miranda@adacore.com>
29735 Jose Ruiz <ruiz@adacore.com>
29736 Robert Dewar <dewar@adacore.com>
29737 Ed Schonberg <schonberg@adacore.com>
29739 * lib-load.ads, lib-load.adb (Load_Unit): Addition of a new parameter
29740 that indicates if we are parsing a compilation unit found in a
29741 limited-with clause.
29742 It is use to avoid the circularity check.
29744 * par.ads, par.adb (Par): Addition of a new parameter to indicate if
29745 we are parsing a compilation unit found in a limited-with clause. This
29746 is use to avoid the circularity check.
29748 * par-load.adb (Load): Indicate Lib.Load_Unit if we are loading the
29749 unit as a consequence of parsing a limited-with clause. This is used
29750 to avoid the circularity check.
29752 * sem_ch10.adb: Suppress Ada 2005 unit warning if -gnatwY used
29753 (Analyze_Context): Limited-with clauses are now allowed
29754 in more compilation units.
29755 (Analyze_Subunit_Context, Check_Parent): Protect the frontend
29756 againts previously reported critical errors in context clauses
29757 (Install_Limited_Withed_Unit): Code cleanup plus static detection
29758 of two further errors: renamed subprograms and renamed packages
29759 are not allowed in limited with clauses.
29760 (Install_Siblings): Do not install private_with_clauses on the package
29761 declaration for a non-private child unit.
29762 (Re_Install_Parents): When a parent of the subunit is reinstalled,
29763 reset visibility of child units properly.
29764 (Install_Withed_Unit): When a child unit appears in a with_clause of its
29765 parent, it is immediately visible.
29767 2005-06-14 Ed Schonberg <schonberg@adacore.com>
29768 Emmanuel Briot <briot@adacore.com>
29770 * lib-xref.ads, lib-xref.adb (Generate_Definition): Treat any entity
29771 declared within an inlined body as referenced, to prevent spurious
29773 (Output_One_Ref): If an entity renames an array component, indicate in
29774 the ALI file that this aliases (renames) the array. Capture as well
29775 function renamings that rename predefined operations.
29776 Add information about generic parent for package and subprogram
29778 (Get_Type_Reference): For a subtype that is the renaming of an actual in
29779 an instantiation, use the first_subtype to ensure that we don't generate
29780 cross-reference information for internal types.
29781 For objects and parameters of a generic private type, retain the '*'
29782 indicator to distinguish such an entity from its type.
29784 * ali.ads (Xref_Entity_Record): New fields Iref_File_Num and Iref_Line,
29785 to store information about instantiated entities.
29787 * ali.adb (Scan_ALI): Add support for parsing the reference to the
29790 * xref_lib.adb (Skip_To_Matching_Closing_Bracket): New subprogram
29791 (Parse_Identifier_Info, Parse_Token): Add support for the generic parent
29794 2005-06-10 Doug Rupp <rupp@adacore.com>
29795 Arnaud Charlet <charlet@adacore.com>
29796 Olivier Hainque <hainque@adacore.com>
29797 Jose Ruiz <ruiz@adacore.com>
29799 * Make-lang.in: Add initialize.o when needed.
29800 Remove obsolete references to RT_FLAGS.
29801 Add missing dependencies for sdefault.o
29803 * initialize.c: New file.
29805 * init.c [VMS] Declare ADA$ externs weak to fix build problem in IVMS.
29806 [VMS] cond_signal_table: Fix problem in declaration.
29807 [VMS] __gnat_error_handler: rewrite.
29808 Move all __gnat_initialize() routines to initialize.c
29809 Specialize the former "hpux" section to "hppa hpux", as this is what the
29810 section really is here for and we now have other hpux ports that need
29811 different contents.
29812 (__gnat_adjust_context_for_raise) i386-linux: First version of this
29813 function for this target. Adjust PC by one in the machine context. This
29814 adjustment was previously done in the MD_FALLBACK_FRAME_STATE_FOR, but
29815 it is more reliable to do that in the signal handler itself.
29816 (__gnat_install_handler) i386-linux: Set SA_SIGINFO in the sigaction
29817 flags, so that the handler is passed the context structure to adjust
29818 prior to the raise.
29819 (__gnat_error_handler) i386-linux: Adjust the signature to match what a
29820 SA_SIGINFO sigaction should look like. Call
29821 __gnat_adjust_context_for_raise before actually raising. Cleanup unused
29822 Machine_State_Operations stuff.
29823 Add conditional code so that the x86_64 is also supported.
29825 2005-06-14 Pascal Obry <obry@adacore.com>
29827 * mdll.adb (Get_Dll_Name): New routine that returns the DLL name given
29830 2005-06-14 Robert Dewar <dewar@adacore.com>
29832 * opt.ads, opt.adb: New flags for persistent_bss mode
29833 Add Ada_Version_Explicit, for implementation of AI-362
29834 Add Assertions_Enabled_Config and associated handling
29835 Needed since setting can be changed with Assertion_Policy pragma
29836 Add new flag Warn_On_Ada_2005_Compatibility
29838 * switch-c.adb: Recognize -gnatwy/Y
29839 Set Ada_Version_Explicit, for implementation of AI-362
29840 The -gnatg switch now includes -gnatyu
29842 * usage.adb: Add -gnatwy/Y
29843 Remove wrong asterisk on -gnatwX line
29844 Add line for -gnatyu switch
29846 2005-06-14 Vincent Celier <celier@adacore.com>
29848 * osint.adb (Add_Default_Search_Dirs): Put source and object
29849 directories of project files before directories coming from
29850 ADA_INCLUDE_PATH and ADA_OBJECTS_PATH.
29852 2005-06-14 Robert Dewar <dewar@adacore.com>
29855 * par-ch2.adb (Scan_Pragma_Argument): New procedure
29856 (P_Pragma): Implement RM 2.8(4) check for no pos args after named args
29858 2005-06-14 Vincent Celier <celier@adacore.com>
29860 * prep.adb (Preprocess): Ignore error when scanning the first token of
29863 2005-06-14 Vincent Celier <celier@adacore.com>
29865 * prj-nmsc.adb (Suffix_For): Change default suffix for C++ to ".cpp"
29866 (Check_Stand_Alone_Library): If the specified reference symbol file does
29867 not exist, only issue a warning when the symbol policy is not
29868 Controlled. And, when symbol policy is Compliant, set the symbol
29869 policy to Autonomous.
29871 2005-06-14 Vincent Celier <celier@adacore.com>
29873 * prj-part.adb (Pre_Parse_Context_Clause): Call Set_Is_Not_Last_In_List
29874 when the project file in a with clause is not the last one, that is the
29875 project file name is followed by a comma.
29876 * prj-pp.adb: (First_With_In_List): New Boolean global variable
29877 (Print): Issue list of project files separated by commas in with clauses
29878 according to the values returned by Is_Not_Last_In_List.
29879 * prj-tree.ads, prj-tree.adb: (Is_Not_Last_In_List): New function
29880 (Set_Is_Not_Last_In_List): New procedure
29882 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
29884 * s-atacco.ads: Put a pragma No_Strict_Aliasing on Object_Pointer.
29886 2005-06-14 Robert Dewar <dewar@adacore.com>
29888 * scng.adb: Add call to new Check_EOF routine
29889 (Accumulate_Checksum): Properly handle wide wide char >= 2 ** 24
29890 Add some comments regarding wide character handling
29892 * style.ads, styleg.ads, styleg.adb: Implement new style switch -gnatyu
29894 * stylesw.ads, stylesw.adb: Implement new style switch -gnatyu
29896 * g-utf_32.ads, g-utf_32.adb (Is_UTF_32_Non_Graphic): Other_Format
29897 characters are now considered graphic characters and hence yield false
29900 * nmake.adt: Modify header so that xnmake does not generate output
29901 files with multiple blank lines.
29903 * treeprs.adt: Remove a blank line so that output from xtreeprs does
29904 not have an extra blank line
29906 2005-06-14 Gary Dismukes <dismukes@adacore.com>
29908 * sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
29909 expression when the component type is an anonymous access type to
29910 ensure that appropriate accessibility checks are done.
29912 * sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
29913 expression of an assignment when the target object is of an anonymous
29914 access type. This ensures that required accessibility checks are done.
29915 (One_Bound): Move the check for type Universal_Integer to
29917 (Process_Bounds): Check whether the type of the preanalyzed range is
29918 Universal_Integer, and in that case set Typ to Integer_Type prior
29919 to setting the type of the original range and the calls to One_Bound.
29921 2005-06-14 Ed Schonberg <schonberg@adacore.com>
29923 * sem_case.adb (Expand_Others_Choice): Improve warning.
29925 2005-06-14 Ed Schonberg <schonberg@adacore.com>
29927 * sem_eval.adb (Subtypes_Statically_Match): Use discriminant
29928 constraint of full view if present, when other type is discriminated.
29929 (Eval_Relational_Op): Recognize tests of pointer values against Null,
29930 when the pointer is known to be non-null, and emit appropriate warning.
29932 2005-06-14 Robert Dewar <dewar@adacore.com>
29933 Ed Schonberg <schonberg@adacore.com>
29936 * sem_prag.adb: Implement pragma Persistent_BSS
29937 Remove obsolete pragma Persistent_Data, Persistent_Object
29938 Set Ada_Version_Explicit, for implementation of AI-362
29939 Test Ada_Version_Explicit for Preelaborate_05 and Pure_05
29940 Add processing for pragma Pure_05 and Preelaborate_05
29941 Add processing for Assertion_Policy pragma
29942 Add pragma identifiers for Assert
29943 (Analyze_Pragma, case Assert): Check number of arguments
29944 (Process_Inline): Additional guard against an illegal program, where the
29945 argument of the pragma is undefined, and warnings on redundant
29946 constructs are enabled.
29947 (Analyze_Pragma, case Obsolescent): Allow an optional second argument
29948 Ada_05 to this pragma, specifying that the pragma is only active in
29950 (Check_Arg_Order): New procedure
29951 Add appropriate calls to this procedure throughout
29952 Also throughout, check entity name before doing any other checks
29954 * snames.h snames.ads, snames.adb: Add pragma Persistent_BSS
29955 Remove obsolete pragma Persistent_Data, Persistent_Object
29956 Add entries for pragma Pure_05 and Preelaborate_05
29957 Add entries for Assertion_Policy pragma and associated names
29958 Add some names for pragma argument processing
29960 * tbuild.ads, tbuild.adb: (Make_Linker_Section_Pragma): New function
29962 2005-06-14 Ed Schonberg <schonberg@adacore.com>
29964 * sem_warn.adb (Warn_On_Known_Condition): If the constant expression
29965 appears within a negation (either from source or as a rewriting of
29966 inequality) adjust text of warning accordingly.
29968 2005-06-14 Thomas Quinot <quinot@adacore.com>
29970 * s-strxdr.adb: Follow AI95-00132
29972 2005-06-14 Arnaud Charlet <charlet@adacore.com>
29974 * s-tasren.adb (Exceptional_Complete_Rendezvous): Fix race condition.
29976 2005-06-14 Arnaud Charlet <charlet@adacore.com>
29977 Jose Ruiz <ruiz@adacore.com>
29979 * s-tposen.adb, s-tpobop.adb
29980 (Exceptional_Complete_Rendezvous): Save the occurrence and not only
29982 (PO_Do_Or_Queue): Before queuing a task on an entry queue we check that
29983 there is no violation of the Max_Entry_Queue_Length restriction (if it
29984 has been set); Program_Error is raised otherwise.
29985 (Requeue_Call): Before requeuing the task on the target entry queue we
29986 check that there is no violation of the Max_Entry_Queue_Length
29987 restriction (if it has been set); Program_Error is raised otherwise.
29989 2005-06-14 Robert Dewar <dewar@adacore.com>
29991 * styleg.adb: Fix several remaining problems in -gnatyu switch
29992 Blank line count not reset at start
29993 Scanning outside source buffer in some cases
29994 Confusing message for blanks at end of file
29995 Non-empty blank lines not recognized
29997 * nmake.adt: Modify header so that xnmake does not generate output
29998 files with multiple blank lines.
30000 * treeprs.adt: Remove a blank line so that output from xtreeprs does
30001 not have an extra blank line
30003 2005-06-14 Sergey Rybin <rybin@adacore.com>
30005 * styleg-c.adb (Body_With_No_Spec): Remove ':' from warning message.
30007 2005-06-14 Doug Rupp <rupp@adacore.com>
30008 Vincent Celier <celier@adacore.com>
30010 * vms_conv.ads, vms_conv.adb: Remove "Library" command.
30013 * vms_data.ads: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
30014 Remove "Library" command.
30015 Change keyword for style check -gnatyd from NOCRLF to
30017 Remove useless second style check keyword NONE
30018 Remove help documentation for inexistent style check keyword
30020 Add help documentation for style check keywords DOS_LINE_ENDINGS,
30021 UNNECESSARY_BLANK_LINES and XTRA_PARENS
30022 Add UNNECESSARY_BLANK_LINES for -gnatyu
30023 Add qualifiers /ALL_PROJECTS (-U) for GNAT PRETTY and GNAT METRIC
30025 * ug_words: Add entry for -gnaty/Y [NO]ADA_2005_COMPATIBILITY
30027 2005-06-14 Vincent Celier <celier@adacore.com>
30029 * makegpr.adb (Compile_Link_With_Gnatmake): Invoke gnatmake with -d if
30030 gprmake was invoked with -d.
30031 (Compile_Sources): If -d was used, output the "completed ..." message
30032 for each compilation.
30033 (Scan_Arg): Recognize new switch -d
30034 When -c and at least one main is specified, set
30035 Unique_Compile to True to guarantee that no other sources will be
30038 2005-06-14 Matthew Heaney <heaney@adacore.com>
30040 * a-swunha.ads, a-swunha.adb: Removed. Replaced by a-swuwha.ad[sb]
30041 * a-swuwha.ads, a-swuwha.adb: New files
30043 * a-szunha.ads, a-szunha.adb: Removed, replaced by a-szuzha.ad[sb]
30044 * a-szuzha.ads, a-szuzha.adb: New files.
30046 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
30047 a-crbtgk.adb, a-crbltr.ads, a-coorse.ads, a-coorse.adb, a-convec.ads,
30048 a-convec.adb, a-coinve.ads, a-coinve.adb, a-cohata.ads, a-cohama.ads,
30049 a-cohama.adb, a-ciorse.ads, a-ciorse.adb, a-cihama.ads, a-cihama.adb,
30050 a-cidlli.ads, a-cidlli.adb, a-chtgop.ads, a-chtgop.adb, a-cdlili.ads,
30051 a-cdlili.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb, a-cohase.adb,
30052 a-cohase.ads, a-ciorma.ads, a-coorma.ads, a-ciormu.ads, a-coormu.ads,
30053 a-swunha.adb, a-stunha.adb, a-ciorma.adb, a-coorma.adb, a-shcain.ads,
30054 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads, a-stwiha.adb,
30055 a-strhas.adb, a-stzhas.adb: synchronized to the latest version of the
30058 2005-06-10 Eric Botcazou <ebotcazou@adacore.com>
30059 Olivier Hainque <hainque@adacore.com>
30060 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30061 Pascal Obry <obry@adacore.com>
30063 * gigi.h: (build_allocator): Add arg IGNORE_INIT_TYPE.
30065 * trans.c (call_to_gnu): Issue a warning for users of Starlet when
30066 making a temporary around a procedure call because of non-addressable
30068 (process_freeze_entity): If entity is a private type, capture size
30069 information that may have been computed for the full view.
30070 (tree_transform, case N_Allocator): If have initializing expression,
30071 check type for Has_Constrained_Partial_View and pass that to
30073 (tree_transform, case N_Return_Statement): Pass extra arg to
30076 * decl.c (annotate_value): Remove early return if -gnatR is not
30078 (gnat_to_gnu_field): Don't make a packable type for a component clause
30079 if the position is byte aligned, the field is aliased, and the clause
30080 size isn't a multiple of the packable alignment. It serves no useful
30081 purpose packing-wise and would be rejected later on.
30082 (gnat_to_gnu_entity, case object): Pass extra arg to build_allocator.
30085 (gnat_to_gnu_entity): Remove use of macro _WIN32 which is wrong in the
30086 context of cross compilers. We use TARGET_DLLIMPORT_DECL_ATTRIBUTES
30088 (create_concat_name): Idem.
30090 2005-06-10 Robert Dewar <dewar@adacore.com>
30091 Eric Botcazou <ebotcazou@adacore.com>
30092 Ben Brosgol <brosgol@adacore.com>
30093 Cyrille Comar <comar@adacore.com>
30094 Sergey Rybin <rybin@adacore.com>
30095 Pascal Obry <obry@adacore.com>
30097 * gnat_rm.texi: Add documentation for pragma Persistent_BSS
30098 Document second argument (Ada_05) of pragma Obsolescent
30099 Add note that call to subprogram marked with pragma Obsolescent
30100 is now considered to be a violation of program Restrictions
30101 (No_Obsolescent_Features).
30102 (Implementation Defined Pragmas) <Machine_Attribute>: Make it clear
30103 that only machine-dependent attributes are supported.
30106 Commented out menu lines and empty section for gnatclean examples
30108 Fix some over long lines
30109 Clarify and enhance documentation of ADA_PROJECT_PATH.
30110 Rework section 2.11.2(3) about linking with a non-GNU compiler.
30111 Mention new switch -fcallgraph-info.
30112 Mention new switch -fstack-usage.
30113 For gnatpp, replace '-notab' with '-N' and add this option to Index
30114 Corrected VMS example.
30115 VMS keyword for style check -gnatyd is DOS_LINE_ENDINGS, no NOCRLF
30117 Add documentation for -gnatyu switch (unnecessary blank lines)
30118 Document new switch -U for GNAT PRETTY and GNAT METRIC
30119 Add note about Stdcall being handled as C convention on non Windows OS.
30120 Remove some junk typo in description of gnatbind -S switch
30121 Remove reference to Extensions_Allowed pragma
30122 Document the new order of the directories to be searched (source and
30123 object directories of project files before directories in ADA_*_PATH
30124 environment variables.
30126 * g-trasym.ads: Document that IRIX is supported
30128 2005-06-10 Arnaud Charlet <charlet@adacore.com>
30130 * Makefile.in: Add initialize.o when needed.
30131 Adapt to new VMS package body Symbols and subunits
30132 No specialized version of a-sytaco is needed for VxWorks.
30134 * a-wichun.ads, a-wichun.adb, a-zchuni.ads, a-zchuni.adb: New files.
30135 * a-zchara.ads, a-widcha.ads: New files.
30137 * system-hpux-ia64.ads: New file.
30139 * i-vxwork-x86.ads, i-vxwork.ads (intContext): Add this function which
30140 is imported from the VxWorks kernel.
30142 2005-06-14 Robert Dewar <dewar@adacore.com>
30144 * g-soliop-mingw.ads, g-soccon-vms.adb, a-swmwco.ads, exp_smem.adb,
30145 fmap.adb, a-szmzco.ads, s-traent-vms.adb, s-traent-vms.ads,
30146 a-direio.ads, a-exctra.ads, a-exexda.adb, a-exextr.adb, a-stream.ads,
30147 s-restri.ads, s-restri.adb, s-traent.adb, s-traent.ads, a-slcain.adb,
30148 a-stzhas.ads, a-tiinau.adb, comperr.adb, exp_ch11.adb, g-boubuf.adb,
30149 g-calend.adb, g-debpoo.ads, g-moreex.ads, gprep.adb, g-regpat.ads,
30150 i-cexten.ads, i-os2thr.ads, makeutl.ads, memroot.adb, mlib-prj.adb,
30151 namet.adb, namet.ads, prj-makr.adb, prj-proc.adb, sem_dist.adb,
30152 sem_elim.ads, s-valint.adb, s-vallli.adb, s-vallli.adb, s-vallli.ads,
30153 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads, scn.adb,
30154 s-tasinf.adb, targparm.adb, uname.adb, uname.ads, xnmake.adb,
30155 xsinfo.adb, a-direct.ads: Remove extra blank lines. Minor reformatting.
30157 2005-06-14 Thomas Quinot <quinot@adacore.com>
30159 * xeinfo.adb: Fix typo in comment
30161 2005-06-14 Javier Miranda <miranda@adacore.com>
30163 * repinfo.ads: Fix typo in comment
30165 2005-06-14 Gary Dismukes <dismukes@adacore.com>
30167 * s-finimp.adb (Parent_Tag): Delete this imported function (function
30168 Parent_Tag is now in the visible part of Ada.Tags).
30169 (Get_Deep_Controller): Call Ada.Tags.Parent_Tag directly instead of
30170 using imported function.
30172 2005-06-14 Bernard Banner <banner@adacore.com>
30174 * vxaddr2line.adb: Add support for Windows hosted x86 vxworks. Should
30175 also apply for handling support for VxSim 653.
30177 2005-06-14 Eric Botcazou <ebotcazou@adacore.com>
30179 * xsnames.adb: Add automatic generation of snames.h.
30181 2005-06-14 Thomas Quinot <quinot@adacore.com>
30183 * gen-soccon.c: Add IP_MULTICAST_IF constant
30184 Minor reformatting and adjustments to prevent warnings.
30186 2005-06-14 Pascal Obry <obry@adacore.com>
30188 * seh_init.c: Do not include <sys/stat.h>. This is not needed.
30190 2005-06-03 Andrew Pinski <pinskia@physics.uc.edu>
30192 * trans.c (gnat_gimplify_expr): Call
30193 recompute_tree_invarant_for_addr_expr when we change
30194 the operand of the ADDR_EXPR.
30196 2005-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
30198 * misc.c: Don't include errors.h.
30200 2005-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
30202 * raise.c (db): Add ATTRIBUTE_PRINTF_2.
30204 2005-05-29 Kazu Hirata <kazu@cs.umass.edu>
30206 * cal.c, decl.c, init.c, raise.c, trans.c, utils2.c: Fix
30208 * gnat_rm.texi, gnat_ugn.texi: Fix typos.
30210 2005-05-16 Nathanael Nerode <neroden@gcc.gnu.org>
30213 * Makefile.in: Make TGT_LIB behave correctly.
30215 2005-04-23 DJ Delorie <dj@redhat.com>
30217 * misc.c: Adjust warning() callers.
30219 2005-04-16 Laurent Guerby <laurent@guerby.net>
30222 * a-nudira.adb (Value): Check for valid string.
30223 * a-nuflra.adb (Value): Likewise.
30225 2005-04-11 Richard Sandiford <rsandifo@redhat.com>
30227 * lang.opt: Refer to the GCC internals documentation instead of c.opt.
30229 2005-04-10 Kazu Hirata <kazu@cs.umass.edu>
30231 * adaint.c, init.c, tracebak.c: Fix comment typos.
30232 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Fix typos.
30234 2005-04-07 Laurent Guerby <laurent@guerby.net>
30235 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30237 * Makefile.in: Add make ifeq define for hppa linux tasking support.
30238 * system-hpux.ads: Define Signed_Zeros to be True.
30239 * system-linux-hppa.ads, s-osinte-linux-hppa.ads: New files.
30241 2005-04-01 Kazu Hirata <kazu@cs.umass.edu>
30243 * adaint.c, cal.c, decl.c, gigi.h, gmem.c, init.c, link.c,
30244 raise.c, tracebak.c, trans.c, utils2.c, utils.c: Fix comment
30247 2005-03-30 Tom Tromey <tromey@redhat.com>
30249 * decl.c (gnat_substitute_in_type): Don't handle FILE_TYPE.
30251 2005-03-30 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
30253 * adaint.c (_gnat_set_close_on_exec): Mark parameters unused.
30255 2005-03-29 Robert Dewar <dewar@adacore.com>
30257 * sem_res.adb (Resolve_Real_Literal): Generate warning if static
30258 fixed-point expression has value that is not a multiple of the Small
30261 * opt.ads (Warn_On_Bad_Fixed_Value): New flag
30263 * s-taprop-tru64.adb (RT_Resolution): Return an integer number of
30266 * ug_words: Add entry for [NO_]BAD_FIXED_VALUES for -gnatwb/-gnatwB
30268 2005-03-29 Vincent Celier <celier@adacore.com>
30270 * mlib-tgt-vms-ia64.adb, mlib-tgt-vms-alpha.adb
30271 (Build_Dynamic_Library.Version_String): Return the empty string when
30272 Lib_Version is empty or when the symbol policy is not Autonomous.
30274 * symbols-vms-alpha.adb (Finalize): For symbol policy Compliant, when
30275 a symbol is not in the reference symbol file, increase the Major ID
30276 and set the Minor ID to 0.
30277 Use gsmatch=lequal instead of gsmatch=equal
30279 2005-03-29 Doug Rupp <rupp@adacore.com>
30281 * adaint.c (__gnat_to_canonical_file_spec [VMS]): Check for logical
30282 name and translate.
30284 2005-03-29 Javier Miranda <miranda@adacore.com>
30286 * a-tags.ads, a-tags.adb (Get_TSD): Subprogram removed.
30287 (Inherit_DT): The first formal has been redefined as a Tag.
30288 This allows us the removal of the subprogram Get_TSD.
30289 (TSD): Replace the call to Get_TSD by the actual code.
30291 * exp_disp.ads, exp_disp.adb: Remove support to call Get_TSD.
30292 (Make_DT): Upgrade the call to Inherit_TSD according to the
30293 new interface: the first formal is now a Tag.
30295 * i-cpp.ads, i-cpp.adb (CPP_Inherit_DT): The first formal has been
30296 redefined as a Tag.
30297 This change allows us to remove the subprogram Get_TSD.
30298 (CPP_Get_TSD): Subprogram removed.
30299 (TSD): Replace the call to CPP_Get_TSD by the actual code.
30301 * rtsfind.ads: Remove support to call the run-time
30304 2005-03-29 Robert Dewar <dewar@adacore.com>
30306 * errutil.adb, errout.adb:
30307 Minor comment updates on Line_Terminator references
30309 * par-ch10.adb: Add ??? comment about line terminator
30311 * styleg.adb (Check_Line_Terminator): Add check for new switch -gnatyd
30312 (check dos line terminator).
30313 (Check_Line_Max_Length): New procedure, split off from the existing
30314 Check_Line_Terminator routine. Separating this out allows -gnatyf to
30315 be properly recognized.
30317 * styleg.adb: Add ??? comment for line terminator reference
30319 * scng.adb (Check_End_Of_Line): Fix bug of -gnatyf being ignored
30320 (Check_End_Of_Line): Add -gnatyd handling (check dos line terminators)
30322 * styleg.ads (Check_Line_Terminator): Add check for new switch -gnatyd
30323 (check dos line terminator).
30324 (Check_Line_Max_Length): New procedure, split off from the existing
30325 Check_Line_Terminator routine. Separating this out allows -gnatyf to
30326 be properly recognized.
30328 * stylesw.ads, stylesw.adb:
30329 Add handling for new -gnatyd switch (check dos line terminator)
30331 * switch-c.adb: Recognize new -gnatyd switch (check dos line terminator)
30332 Recognize -gnatwb/-gnatwB switches
30333 Include Warn_On_Bad_Fixed_Value for -gnatg
30336 Add line for new -gnatyd switch (check dos line terminator)
30338 * usage.adb: Add lines for -gnatwb/-gnatwB
30340 * vms_data.ads: Add entry for NOCRLF (-gnatyd)
30342 * vms_data.ads: [NO_]BAD_FIXED_VALUES synonym for -gnatwb/-gnatwB
30344 * gnat_ugn.texi: Fix overlong lines
30345 Document new -gnatyd switch
30346 Document new -gnatwb/-gnatwB switches
30348 2005-03-29 Ed Schonberg <schonberg@adacore.com>
30350 * exp_ch4.adb (Has_Unconstrained_UU_Component): Use the base type in
30351 order to retrieve the component list of the type, before examining
30352 individual components.
30354 * sem_type.adb (Covers): Types are compatible if one is the base type
30355 of the other, even though their base types might differ when private
30356 views are involved.
30358 2005-03-29 Thomas Quinot <quinot@adacore.com>
30360 * exp_dist.adb (Add_RAST_Features, PolyORB version): Set the From_Any,
30361 To_Any and TypeCode TSSs on RAS types directly using Set_TSS, instead
30362 of using Set_Renaming_TSS. This ensures that the TSS bodies are not
30363 analyzed if expansion is disabled (which could otherwise cause spurious
30364 error messages if expansion has been disabled due to previous
30365 (unrelated) errors).
30367 * sem_prag.adb (Analyze_Pragma, case Asynchronous): If RAS expansion
30368 is disabled, the entity denoted by the argument is the access type
30369 itself, not an underlying record type, so there is no need to go back
30370 to the Corresponding_Remote_Type.
30372 2005-03-29 Gary Dismukes <dismukes@adacore.com>
30373 Robert Dewar <dewar@adacore.com>
30375 * exp_intr.adb (Expand_Dispatching_Constructor_Call): New procedure to
30376 expand a call to an instance of
30377 Ada.Tags.Generic_Dispatching_Constructor into a dispatching call to the
30378 Constructor actual of the instance. A class-wide membership
30379 check is also generated, to ensure that the tag passed to the instance
30380 denotes a type in the class.
30381 (Expand_Intrinsic_Call): Call Expand_Dispatching_Constructor in the case
30382 of Name_Generic_Dispatching_Constructor.
30384 * Makefile.rtl: Add a-tgdico.ads to the list of library units (new Ada
30385 05 unit for AI-260-02).
30387 * a-tgdico.ads: New file.
30389 * impunit.adb (Non_Imp_File_Names_05): Add entry "a-tgdico" for new
30390 predefined Ada 05 generic unit Ada.Tags.Generic_Dispatching_Constructor.
30392 * snames.ads, snames.adb (Preset_Names): Add entry for
30393 Generic_Dispatching_Constructor.
30396 * sem_ch8.adb (Find_Direct_Name): Go to root type for check of
30397 character type cases.
30398 (Analyze_Subprogram_Renaming): Add special handling for
30399 the case of renaming of stream attributes when the renaming denotes a
30400 generic formal subprogram association for an abstract formal subprogram.
30401 Check that the attribute is a primitive stream attribute (and not
30402 a class-wide stream attribute) and then rewrite the attribute name
30403 as the name of the appropriate compiler-generated stream primitive.
30405 2005-03-29 Robert Dewar <dewar@adacore.com>
30407 * exp_util.adb (Remove_Side_Effects): Properly propagate arguments to
30409 (Is_Possibly_Unaligned_Object): Correct typo that
30410 resulted in inaccurate result for unaligned scalars within records.
30412 2005-03-29 Ed Schonberg <schonberg@adacore.com>
30414 * freeze.adb (Freeze_Record_Type): If the type of the component is an
30415 itype whose parent is controlled and not yet frozen, do not create a
30416 freeze node for the itype if expansion is disabled.
30418 2005-03-29 Vincent Celier <celier@adacore.com>
30420 * make.adb (Gnatmake): Don't fail if the main project file is declared
30421 as having no Ada sources. Do not display message "no sources to
30422 compile" in quiet output.
30424 2005-03-29 Doug Rupp <rupp@adacore.com>
30426 * Makefile.in [VMS] (EXTRA_GNATTOOLS): Add vms_help and gnat.hlp as
30429 2005-03-29 Robert Dewar <dewar@adacore.com>
30431 * par-ch12.adb (P_Generic): Give better msg for illegal private generic
30434 2005-03-29 Robert Dewar <dewar@adacore.com>
30436 * par-ch3.adb (P_Type_Declaration): Fix bad error recovery after
30437 missing TYPE Improve the error message generated when compiling a
30438 limited interface in Ada83 or Ada95 mode.
30440 2005-03-29 Robert Dewar <dewar@adacore.com>
30442 * par-ch4.adb (P_Name): When a bad attribute is returned, return error,
30443 rather than proceed ahead using a junk attribute name.
30445 2005-03-29 Vincent Celier <celier@adacore.com>
30447 * prj.ads, prj.adb: (Project_Data): Add new component Display_Name
30449 * prj-part.adb (Parse_Single_Project): Set the location of a project
30450 on its defining identifier, rather than on the reserved word "project".
30452 * prj-proc.adb (Expression): Adapt to the fact that default of external
30453 references may be string expressions, not always literal strings.
30454 (Recursive_Process): Set Display_Name equal to Name
30455 when Location is No_Location, that is when there is no actual file.
30456 Get the Display_Name of the project from the source, when it is not a
30458 (Process): Use the Display_Name in error messages
30460 * prj-strt.adb (External_Reference): Allow default to be string
30461 expressions, not only literal strings.
30463 2005-03-29 Vincent Celier <celier@adacore.com>
30465 * prj-nmsc.adb (Check_Stand_Alone_Library): Do not forbid the symbol
30466 file and the reference symbol file to be the same file.
30468 2005-03-29 Thomas Quinot <quinot@adacore.com>
30470 * sem_cat.adb (Validate_Remote_Types_Type_Conversion): Perform check to
30471 forbid conversion of a local access-to-subprogram type to a remote one.
30473 * sem_util.adb (Wrong_Type): For a record type that is the expanded
30474 equivalent type for a remote access-to-subprogram type, go back to the
30475 original RAS entity when displaying an error message, so the casing is
30476 the original source casing.
30478 2005-03-29 Robert Dewar <dewar@adacore.com>
30480 * sem_ch11.adb (Analyze_Raise_Statement): Change message for warning
30483 2005-03-29 Ed Schonberg <schonberg@adacore.com>
30485 * sem_ch4.adb (Analyze_Selected_Component): Do not generate an actual
30486 subtype if code is being pre-analyzed, to prevent un-expanded
30487 references to protected formals, among others.
30488 (Analyze_Explicit_Dereference): If the overloaded prefix includes some
30489 interpretation that can be a call, include the result of the call as a
30490 possible interpretation of the dereference.
30492 * sem_ch5.adb (Process_Bounds): Determine type of range by
30493 pre-analyzing a copy of the original range, and then analyze the range
30494 with the expected type.
30496 * sem_res.adb (Check_Parameterless_Call): For an explicit dereference
30497 with an overloaded prefix where not all interpretations yield an
30498 access to subprogram, do not rewrite node as a call.
30499 (Resolve_Explicit_Dereference): Recognize the previous case and rewrite
30500 the node as a call once the context identifies the interpretation of
30501 the prefix whose call yields the context type.
30502 (Valid_Conversion): For the case of a conversion between
30503 local access-to-subprogram types, check subtype conformance using
30504 Check_Subtype_Conformant instead of Subtype_Conformant, to have a more
30505 detailed error message.
30507 2005-03-29 Ed Schonberg <schonberg@adacore.com>
30509 * sem_ch6.adb (Set_Formal_Mode): If the subtype has a non_null
30510 indicator, indicate that the formal can never be null.
30511 (Process_Formals): If a formal has a non_null indicator, insert the
30512 resulting subtype immediately before the enclosing subprogram decl,
30513 and not at the beginning of the corresponding declarative part, to
30514 prevent access before elaboration (Ada2005).
30516 2005-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
30519 * utils.c (finish_record_type): Use variable_size when setting sizes.
30521 2005-03-29 Robert Dewar <dewar@adacore.com>
30523 * xtreeprs.adb, xnmake.adb: Use Stream_IO instead of Text_IO to
30524 guarantee Unix style line terminators for the output files, even when
30525 running on windows.
30527 2005-03-29 Robert Dewar <dewar@adacore.com>
30529 * a-direct.ads, a-direct.adb (Start_Search): Free allocated search
30530 buffer if an exception is raised.
30532 2005-03-29 Ed Falis <falis@adacore.com>
30534 * cio.c: Undefine putchar and getchar for VTHREADS: incompatible with
30537 2005-03-29 Robert Dewar <dewar@adacore.com>
30539 * sem_util.ads: Minor reformatting
30540 * gnat_rm.texi: Minor editing.
30542 2005-03-29 Eric Botcazou <ebotcazou@adacore.com>
30544 * decl.c (gnat_to_gnu_entity) <E_Variable>: Rework comment.
30545 * trans.c (tree_transform) <N_Identifier>: Use correct predicates.
30547 2005-03-24 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
30549 * adaint.c (__gnat_portable_spawn): Adjust cast.
30551 2005-03-23 Joseph S. Myers <joseph@codesourcery.com>
30553 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
30555 2005-03-17 Pascal Obry <obry@adacore.com>
30557 * adaint.h, adaint.c (__gnat_waitpid): Moved to expect.c where it is
30560 * expect.c (__gnat_waitpid): Moved here from adaint.c.
30561 Reimplement under Win32 using Win32 API.
30563 (__gnat_kill) [Win32]: Properly close the process handle before leaving
30566 2005-03-17 Eric Botcazou <ebotcazou@adacore.com>
30568 * ada-tree.h: (DECL_RENAMING_GLOBAL_P): New predicate.
30569 (DECL_RENAMED_OBJECT): New accessor macro.
30570 (SET_DECL_RENAMED_OBJECT): New setter macro.
30572 * decl.c (gnat_to_gnu_entity) <E_Variable>: Stabilize the renamed
30573 object in all cases. Attach the renamed object to the VAR_DECL.
30574 (gnat_to_gnu_field): Do not lift the record wrapper if the size of the
30575 field is not prescribed.
30577 * misc.c (gnat_handle_option): Handle -gnatO separately.
30578 (gnat_print_decl) <VAR_DECL>: New case.
30579 Print the DECL_RENAMED_OBJECT node.
30581 * lang.opt: Declare separate -gnatO option.
30583 * trans.c (tree_transform) <N_Identifier>: If the object is a renaming
30584 pointer, replace it with the renamed object.
30585 <N_Validate_Unchecked_Conversion>: Warn for a conversion to a fat
30586 pointer type if the source is not a fat pointer type whose underlying
30587 array has the same non-zero alias set as that of the destination array.
30589 2005-03-17 Javier Miranda <miranda@adacore.com>
30591 * a-tags.ads, a-tags.adb (Get_Expanded_Name): Removed.
30592 (Get_Inheritance_Depth): Removed.
30593 (Set_Inheritance_Depth): Removed.
30595 * rtsfind.ads, exp_disp.ads, exp_disp.adb: Remove support to call the
30596 subprogram Get_Expanded_Name because it is not referenced by the
30599 * i-cpp.ads, i-cpp.adb (CPP_Get_Expanded_Name): Removed.
30600 (CPP_Get_Inheritance_Depth): Removed.
30601 (CPP_Set_Inheritance_Depth): Removed.
30603 * tbuild.ads, tbuild.adb (Make_DT_Component): Removed.
30605 2005-03-17 Robert Dewar <dewar@adacore.com>
30607 * checks.adb (Apply_Array_Size_Check): Completely remove this for GCC
30608 3, since we now expect GCC 3 to do all the work.
30610 2005-03-17 Javier Miranda <miranda@adacore.com>
30612 * einfo.adb (First_Private_Entity, Set_First_Private_Entity): Addition
30613 of one barrier to avoid wrong usage of this attribute.
30615 * sem_ch12.adb (Formal_Entity): Fix erroneous usage of the attribute
30616 First_Private_Entity.
30618 * sem_ch7.adb (Install_Visible_Declarations): Add a barrier to protect
30619 the subprogram against wrong usage.
30620 Adapt the code to traverse the entities in the
30621 scope of a record_type because in addition to its usage regarding
30622 packages, this subprogram is also called by Expand_N_Freeze_Entity
30623 to install the visible declarations of the enclosing scope of a
30624 record_type_with_private to establish the proper visibility before
30625 freezing the entity and related subprograms.
30627 2005-03-17 Ed Schonberg <schonberg@adacore.com>
30629 * exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
30632 2005-03-17 Thomas Quinot <quinot@adacore.com>
30634 * exp_ch3.adb (Check_Attr): New subprogram.
30635 (Check_Stream_Attribute): Move the code for 13.13.2(9/1) enforcement
30636 into a new Check_Attr subprogram, in order to provide a more
30637 explanatory error message (including the name of the missing attribute).
30638 (Stream_Operation_OK): Renamed from Stream_Operations_OK. This
30639 subprogram determines whether a default implementation exists for a
30640 given stream attribute.
30641 (Make_Predefined_Primitive_Specs, Predefined_Primitive_Bodies):
30642 Determine whether to generate a default implementation for each stream
30643 attribute separately, as this depends on the specific attribute.
30645 * exp_strm.adb (Make_Field_Attribute): For the case of an illegal
30646 limited extension where a stream attribute is missing for a limited
30647 component (which will have been flagged in Exp_Ch3.Sem_Attr), do not
30648 generate a bogus reference to the missing attribute to prevent
30649 cascaded errors. Instead, generate a null statement.
30651 * sem_attr.adb (Check_Stream_Attribute): A stream attribute is
30652 available for a limited type if it has been specified for an ancestor
30655 2005-03-17 Ed Schonberg <schonberg@adacore.com>
30657 * exp_ch6.adb (Expand_Inlined_Call): handle the case when the renamed
30658 entity is an operator.
30660 2005-03-17 Thomas Quinot <quinot@adacore.com>
30662 * exp_dist.adb (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
30663 spec, to make this predicate available to other units.
30665 * rtsfind.adb (Check_RPC): Use Sem_Dist.Get_PCS_Name instead of
30668 * sem_ch8.adb: Disable expansion of remote access-to-subprogram types
30669 when no distribution runtime library is available.
30671 * sem_res.adb, sem_dist.adb: Disable expansion of remote
30672 access-to-subprogram types when no distribution runtime library is
30674 (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist spec, to make this
30675 predicate available to other units.
30677 * sem_dist.ads (Get_PCS_Name): Move from Exp_Dist body to Sem_Dist
30678 spec, to make this predicate available to other units.
30680 2005-03-17 Vincent Celier <celier@adacore.com>
30682 * make.adb (Insert_Project_Sources): Make sure the Q is always
30685 * prj-nmsc.adb (Check_Ada_Naming_Scheme_Validity): Check Naming against
30686 the default for the tree, not the global default naming.
30688 * prj-proc.adb (Recursive_Process): No need to put the default naming
30689 in the project data, it's already there.
30691 2005-03-17 Doug Rupp <rupp@adacore.com>
30693 * Makefile.in: (ia64-hp-*vms*): Use s-crtl-vms64.ads.
30695 * 5xcrtl.ads: Renamed to...
30696 * s-crtl-vms64.ads: ...this new file
30698 2005-03-17 Robert Dewar <dewar@adacore.com>
30701 * namet.adb (Copy_One_Character): Set proper wide character encoding
30702 for upper half character if we have upper half encoding.
30704 2005-03-17 Robert Dewar <dewar@adacore.com>
30706 * par.adb (Par): Improved msg for attempt to recompile predefined unit
30708 2005-03-17 Thomas Quinot <quinot@adacore.com>
30710 * sem_ch13.adb (New_Stream_Function, New_Stream_Procedure): For a
30711 tagged limited type, the TSS is a newly built renaming declaration:
30712 insert it using Set_TSS, not Copy_TSS.
30714 2005-03-17 Javier Miranda <miranda@adacore.com>
30716 * sem_ch4.adb (Try_Primitive_Operation, Class_Wide_Operation and
30717 Try_Object_Operation): Analyze the object that is accessible
30718 through the prefix of the subprogram call before we apply
30719 the transformation of the object-operation notation.
30721 2005-03-17 Jose Ruiz <ruiz@adacore.com>
30723 * s-taprob.adb (Initialize_Protection): Initialize the protected
30724 object's owner to Null_Task.
30725 (Lock): If pragma Detect_Blocking is in effect and the caller of this
30726 procedure is already the protected object's owner then Program_Error
30727 is raised. In addition the protected object's owner is updated.
30728 (Lock_Read_Only): If pragma Detect_Blocking is in effect and the caller
30729 of this procedure is already the protected object's owner then
30730 Program_Error is raised.
30731 In addition the protected object's owner is updated.
30732 (Unlock): Remove the ownership of the protected object.
30734 * s-taprob.ads (Protection): Add the field Owner, used to store the
30735 protected object's owner.
30736 This component is needed for detecting one type of potentially blocking
30737 operations (external calls on a protected subprogram with the same
30738 target object as that of the protected action). Document the rest of
30741 * s-tposen.adb, s-tpoben.adb (Initialize_Protection_Entries):
30742 Initialize the protected object's owner to Null_Task.
30743 (Lock_Read_Only_Entries): If pragma Detect_Blocking is in effect and the
30744 caller of this procedure is already the protected object's owner then
30745 Program_Error is raised.
30746 Do not raise Program_Error when this procedure is called from a
30748 (Unlock_Entries): Remove the ownership of the protected object.
30749 (Lock_Entries): If pragma Detect_Blocking is in effect and the caller
30750 of this procedure is already the protected object's owner then
30751 Program_Error is raised.
30752 Do not raise Program_Error when this procedure is called from
30753 a protected action.
30755 * s-tposen.ads, s-tpoben.ads (Protection_Entries): Add the field Owner,
30756 used to store the protected object's owner.
30758 * s-tpobop.adb (Protected_Entry_Call): If pragma Detect_Blocking is in
30759 effect and this procedure (a potentially blocking operation) is called
30760 from whithin a protected action, Program_Error is raised.
30761 (Timed_Protected_Entry_Call): If pragma Detect_Blocking is in effect
30762 and this procedure (a potentially blocking operation) is called from
30763 whithin a protected action, Program_Error is raised.
30765 2005-03-17 Vincent Celier <celier@adacore.com>
30766 Nicolas Setton <setton@adacore.com>
30768 * mlib-tgt-darwin.adb (Build_Dynamic_Library): Remove the "-fini"
30769 switch, not supported by the linker on Darwin. Add '_' before
30770 <library>init, as this character is added unconditionally by the
30772 (Is_Archive_Ext): Replace the wrong library extension ".dyld" by the
30773 correct one ".dylib". This fixes detection of the archive files when
30774 building library projects.
30776 2005-03-17 Vincent Celier <celier@adacore.com>
30778 * switch-m.adb (Normalize_Compiler_Switches): Recognize switches
30779 -gnat83, -gnat95 and -gnat05.
30781 2005-03-17 Vasiliy Fofanov <fofanov@adacore.com>
30783 * gnat_ugn.texi: Document gnatmem restriction
30785 2005-03-17 Thomas Quinot <quinot@adacore.com>
30787 * snames.adb: Document new TSS names introduced by exp_dist/exp_tss
30790 2005-03-17 Robert Dewar <dewar@adacore.com>
30792 * s-interr.ads, s-interr.adb, sem_ch3.adb, prj.ads, prj.adb,
30793 a-interr.adb, a-interr.ads, s-interr-sigaction.adb, s-interr-dummy.adb,
30794 s-interr-vms.adb, s-interr-vxworks.adb: Minor reformatting
30796 * casing.adb: Comment improvements
30798 2005-03-17 Pascal Obry <obry@adacore.com>
30800 * g-expect.adb: Minor reformatting.
30802 2005-03-15 Zack Weinberg <zack@codesourcery.com>
30804 * Make-lang.in (doc/gnat_ugn_unw.info, doc/gnat_rm.info)
30805 (doc/gnat_ugn_unw.dvi, doc/gnat_rm.dvi): Add gcc-vers.texi
30808 2005-03-15 Vincent Celier <celier@adacore.com>
30810 * mlib-tgt-darwin.adb (Library_Exist_For, Library_File_Name_For):
30811 Add new parameter In_Tree to specify the project tree: needed
30812 by the project manager. Adapt to changes in project manager
30813 using new parameter In_Tree.
30815 2005-03-15 Jakub Jelinek <jakub@redhat.com>
30817 * Make-lang.in (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h,
30818 ada/nmake.adb, ada/nmake.ads): Use unique subdirectories of
30819 ada/bldtools to avoid make -jN failures.
30821 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
30823 * trans.c (gnat_to_gnu) <N_Return_Statement>: Set gnu_result
30824 to NULL_TREE on entry.
30826 2005-03-15 Robert Dewar <dewar@adacore.com>
30828 * system-unixware.ads, system-linux-ia64.ads, system-freebsd-x86.ads,
30829 system-lynxos-ppc.ads, system-lynxos-x86.ads, system-linux-x86_64.ads,
30830 system-tru64.ads, system-aix.ads, system-vxworks-sparcv9.ads,
30831 system-vxworks-xscale.ads, system-solaris-x86.ads, system-irix-o32.ads,
30832 system-irix-n32.ads, system-hpux.ads, system-vxworks-m68k.ads,
30833 system-linux-x86.ads, system-vxworks-mips.ads, system-os2.ads,
30834 system-interix.ads, system-solaris-sparc.ads,
30835 system-solaris-sparcv9.ads, system-vms.ads, system-mingw.ads,
30836 system-vms-zcx.ads, system-vxworks-ppc.ads, system-vxworks-alpha.ads,
30837 system-vms_64.ads, system-darwin-ppc.ads, system-vxworks-x86.ads,
30838 system-linux-ppc.ads, system-linux-alpha.ads, system-linux-sparc.ads,
30839 system-linux-s390.ads, system-linux-s390x.ads: Add line defining
30840 Compiler_System_Version to be False.
30842 * opt.ads: Add new flag Opt.Address_Is_Private
30844 * targparm.ads, targparm.adb: Set new flag Opt.Address_Is_Private
30845 Add new parameter Compiler_System_Version to avoid checking for
30846 completeness of parameters when compiler is compiling itself.
30847 Allows old versions of GNAT to be compiled with new compiler.
30849 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
30851 * s-osinte-tru64.ads, s-osinte-tru64.adb (Get_Stack_Base): New function
30852 (Hide_Yellow_Zone): New procedure to hide the Yellow Zone of the
30854 (Stack_Base_Available): New flag.
30855 (Get_Page_Size): New overloaded functions imported from C.
30856 (PROT_NONE, PROT_READ, PROT_WRITE, PROT_EXEC, PROT_ALL,
30857 PROT_ON, PROT_OFF): New constants.
30858 (mprotect): New function imported from C.
30859 (pthread_teb_t): New record type.
30861 * s-taprop-tru64.adb: (Enter_Task): Invoke Hide_Yellow_Zone.
30862 (Create_Task): Account for the Yellow Zone and the guard page.
30864 2005-03-15 Vincent Celier <celier@adacore.com>
30866 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
30867 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
30868 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
30869 mlib-tgt-vxworks.adb, mlib-tgt-lynxos.adb (Library_Exist_For,
30870 Library_File_Name_For): Add new parameter In_Tree
30871 to specify the project tree: needed by the project manager.
30872 Adapt to changes in project manager using new parameter In_Tree.
30873 Remove local imports, use functions in System.CRTL.
30875 * make.adb, clean.adb, gnatcmd.adb (Project_Tree): New constant needed
30876 to use the project manager.
30878 * makeutl.ads, makeutl.adb (Linker_Options_Switches): New parameter
30879 In_Tree to designate the project tree. Adapt to changes in the project
30880 manager, using In_Tree.
30882 * mlib-prj.ads, mlib-prj.adb (Build_Library, Check_Library,
30883 Copy_Interface_Sources): Add new parameter In_Tree to specify the
30884 project tree: needed by the project manager.
30885 (Build_Library): Check that Arg'Length >= 6 before checking if it
30886 contains "--RTS=...".
30888 * mlib-tgt.ads, mlib-tgt.adb (Library_Exist_For,
30889 Library_File_Name_For): Add new parameter In_Tree to specify the
30890 project tree: needed by the project manager.
30892 * prj.ads, prj.adb: Major modifications to allow several project trees
30893 in memory at the same time.
30894 Change tables to dynamic tables and hash tables to dynamic hash
30895 tables. Move tables and hash tables from Prj.Com (in the visible part)
30896 and Prj.Env (in the private part). Move some constants from the visible
30897 part to the private part. Make other constants deferred.
30898 (Project_Empty): Make it a variable, not a function
30899 (Empty_Project): Add parameter Tree. Returns the data with the default
30900 naming data of the project tree Tree.
30901 (Initialize): After updating Std_Naming_Data, copy its value to the
30902 component Naming of Project Empty.
30903 (Register_Default_Naming_Scheme): Use and update the default naming
30904 component of the project tree, instead of the global variable
30906 (Standard_Naming_Data): Add defaulted parameter Tree. If project tree
30907 Tree is not defaulted, return the default naming data of the Tree.
30908 (Initial_Buffer_Size): Constant moved from private part
30909 (Default_Ada_Spec_Suffix_Id, Default_Ada_Body_Suffix_Id, Slash_Id); new
30910 variables initialized in procedure Initialize.
30911 (Add_To_Buffer): Add two in out parameters to replace global variables
30912 Buffer and Buffer_Last.
30913 (Default_Ada_Spec_Suffix, Default_Body_Spec_Suffix, Slash): New
30915 Adapt to changes to use new type Project_Tree_Ref and dynamic tables and
30917 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
30918 for the project tree.
30919 (Project_Tree_Data, Project_Tree_Ref, No_Project): Declare types and
30920 constant at the beginning of the package spec, so that they cane be used
30921 in subprograms before their full declarations.
30922 (Standard_Naming_Data): Add defaulted parameter of type Project_Node_Ref
30923 (Empty_Project): Add parameter of type Project_Node_Ref
30924 (Private_Project_Tree_Data): Add component Default_Naming of type
30926 (Buffer, Buffer_Last): remove global variables
30927 (Add_To_Buffer): Add two in out parameters to replace global variables
30928 Buffer and Buffer_Last.
30929 (Current_Packages_To_Check): Remove global variable
30930 (Empty_Name): Move to private part
30931 (No-Symbols): Make it a constant
30932 (Private_Project_Tree_Data): New type for the private part of the
30934 (Project_Tree_Data): New type for the data of a project tree
30935 (Project_Tree_Ref): New type to designate a project tree
30936 (Initialize, Reset, register-Default_Namng-Scheme): Add a new parameter
30937 for the project tree.
30939 * prj-attr.ads: Add with Table; needed, as package Prj no longer
30940 imports package Table.
30942 * prj-com.adb: Remove empty, no longer needed body
30944 * prj-com.ads: Move most of the content of this package to package Prj.
30946 * prj-dect.ads, prj-dect.adb (Parse): New parameters In_Tree to
30947 designate the project node tree and Packages_To_Check to replace
30948 global variable Current_Packages_To_Check.
30949 Add new parameters In_Tree and Packages_To_Check to local subprograms,
30950 when needed. Adapt to changes in project manager with project node tree
30953 * prj-env.ads, prj-env.adb: Add new parameter In_Tree to designate the
30954 project tree to most subprograms. Move tables and hash tables to
30955 private part of package Prj.
30956 Adapt to changes in project manager using project tree In_Tree.
30958 * prj-makr.adb (Tree): New constant to designate the project node tree
30959 Adapt to change in project manager using project node tree Tree
30961 * prj-nmsc.ads, prj-nmsc.adb (Check_Stand_Alone_Library): Correctly
30962 display the Library_Src_Dir and the Library_Dir.
30963 Add new parameter In_Tree to designate the project node tree to most
30964 subprograms. Adapt to changes in the project manager, using project tree
30966 (Check_Naming_Scheme): Do not alter the casing on platforms where
30967 the casing of file names is not significant.
30968 (Check): Add new parameter In_Tree to designate the
30970 * prj-pars.ads, prj-pars.adb (Parse): Add new parameter In_Tree to
30971 designate the project tree.
30972 Declare a project node tree to call Prj.Part.Parse and Prj.Proc.Process
30974 * prj-part.ads, prj-part.adb (Buffer, Buffer_Last): Global variables,
30975 to replace those that were in the private part of package Prj.
30976 Add new parameter In__Tree to designate the project node tree to most
30977 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
30978 (Post_Parse_Context_Clause): When specifying the project node of a with
30979 clause, indicate that it is a limited with only if there is "limited"
30980 in the with clause, not necessarily when In_Limited is True.
30981 (Parse): Add new parameter In_Tree to designate the project node tree
30983 * prj-pp.ads, prj-pp.adb (Pretty_Print): Add new parameter In_Tree to
30984 designate the project node tree. Adapt to change in Prj.Tree with
30985 project node tree In_Tree.
30987 * prj-proc.ads, prj-proc.adb (Recursive_Process): Specify the project
30988 tree In_Tree in the call to function Empty_Process to give its initial
30989 value to the project data Processed_Data.
30990 Add new parameters In_Tree to designate the project tree and
30991 From_Project_Node_Tree to designate the project node tree to several
30992 subprograms. Adapt to change in project manager with project tree
30993 In_Tree and project node tree From_Project_Node_Tree.
30995 * prj-strt.ads, prj-strt.adb (Buffer, Buffer_Last): Global variables,
30996 to replace those that were in the private part of package Prj.
30997 Add new parameter In_Tree to designate the project node tree to most
30998 subprograms. Adapt to change in Prj.Tree with project node tree In_Tree.
31000 * prj-tree.ads, prj-tree.adb: Add new parameter of type
31001 Project_Node_Tree_Ref to most subprograms.
31002 Use this new parameter to store project nodes in the designated project
31004 (Project_Node_Tree_Ref): New type to designate a project node tree
31005 (Tree_Private_Part): Change table to dynamic table and hash tables to
31006 dynamic hash tables.
31008 * prj-util.ads, prj-util.adb: Add new parameter In_Tree to designate
31009 the project tree to most subprograms. Adapt to changes in project
31010 manager using project tree In_Tree.
31012 * makegpr.adb (Project_Tree): New constant needed to use project
31015 2005-03-15 Olivier Hainque <hainque@adacore.com>
31017 * s-intman-posix.adb (Notify_Exception): Adjust signature, as handler
31018 for sigactions with SA_SIGINFO set. Call
31019 __gnat_adjust_context_for_raise before raising, to perform the
31020 potentially required adjustments to the machine context for the GCC
31023 * raise.h (__gnat_adjust_context_for_raise): New prototype.
31025 * init.c (__gnat_adjust_context_for_raise) HPUX: Initial revision.
31026 Adjust PC by one in the provided machine context.
31027 (__gnat_install_handler) HPUX: Set SA_SIGINFO in the sigaction flags,
31028 so that the handler is passed the context structure to adjust prior to
31030 (__gnat_error_handler) HPUX: Adjust the signature to match what an
31031 SA_SIGINFO sigaction should look like. Call
31032 __gnat_adjust_context_for_raise before actually raising.
31033 (__gnat_adjust_context_for_raise): Default noop to help PC
31034 adjustments before raise from signal handlers.
31035 (__gnat_error_handler): Indirectly call a predicate function to
31036 determine if a condition should be resignaled or not.
31037 (__gnat_set_resignal_predicate): User interface to modify the predicate.
31038 (__gnat_default_resignal_p): Default GNAT predicate.
31040 2005-03-15 Doug Rupp <rupp@adacore.com>
31042 * adaint.c: Prefix #include of VMS system header files with vms/
31043 [VMS] (HOST_EXECUTABLE_SUFFIX, HOST_OBJECT_SUFFIX): Define for VMS.
31044 Do not define a dummy function "convert_addresses" under Darwin,
31047 * tb-alvms.c, expect.c: Prefix #include of VMS system header files
31050 2005-03-15 Nicolas Setton <setton@adacore.com>
31052 * tracebak.c: Under Darwin, use the same unwinding mechanisms as under
31055 2005-03-15 Robert Dewar <dewar@adacore.com>
31057 * a-reatim.ads, a-reatim.adb: Add functions Minutes and Seconds for
31060 * a-retide.ads: Minor comment changes
31062 2005-03-15 Robert Dewar <dewar@adacore.com>
31064 * a-stzunb.adb, a-stzunb.adb a-stzunb.ads, a-stzunb.ads,
31065 a-stwiun.ads, a-stwiun.adb, a-strunb.ads, a-strunb.adb: Move
31066 Realloc_For_Chunk to private part of package.
31067 New subprograms for AI-301
31069 * a-szuzti.adb, a-suteio.adb, a-swuwti.adb: Improve efficiency of
31070 Get_Line procedure.
31071 Avoid unnecessary use of Get/Set_Wide_String
31073 2005-03-15 Robert Dewar <dewar@adacore.com>
31076 * a-stunau.ads, a-stunau.adb:
31077 Change interface to allow efficient (and correct) implementation
31078 The previous changes to allow extra space in unbounded strings had
31079 left this interface a bit broken.
31081 * a-suteio.adb: Avoid unnecessary use of Get/Set_String
31083 * g-spipat.ads, g-spipat.adb: New interface for Get_String
31084 Minor reformatting (function specs)
31086 * g-spitbo.adb: New interface for Get_String
31088 * g-spitbo.ads: Minor reformatting
31090 * a-swunau.ads, a-swunau.adb: New interface for Get_Wide_String
31092 * a-szunau.ads, a-szunau.adb: New interface for Get_Wide_Wide_String
31094 2005-03-15 Javier Miranda <miranda@adacore.com>
31095 Robert Dewar <dewar@adacore.com>
31096 Thomas Quinot <quinot@adacore.com>
31097 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31099 * atree.ads, atree.adb: Add support for Elist24 field
31101 * atree.h: Fix wrong definition of Field27
31102 Add support for Elist16 field
31103 Add support for Elist24 field
31105 * einfo.ads, einfo.adb (Abstract_Interfaces,
31106 Set_Abstract_Interfaces): New subprograms.
31107 (Abstract_Interface_Alias, Set_Abstract_Interface_Alias): New
31109 (Access_Disp_Table, Set_Access_Disp_Table): Modified to handle a list of
31110 entities rather than a single node.
31111 (Is_Interface, Set_Is_Interface): New subprogram
31112 (First_Tag_Component): New syntesized attribute
31113 (Next_Tag_Component): New synthesized attribute
31114 (Write_Entity_Flags): Upgraded to write Is_Interface
31115 (Write_Field24_Name): Upgraded to write Abstract_Interfaces
31116 (Write_Field25_Name): Upgraded to write Abstract_Interface_Alias
31117 (Task_Body_Procedure): New subprogram to read this attribute.
31118 (Set_Task_Body_Procedure): New subprogram to set this attribute.
31119 (Has_Controlled_Component): Now applies to all entities.
31120 This is only a documentation change, since it always worked to apply
31121 this to other than composite types (yielding false), but now this is
31123 Update documentation on Must_Be_Byte_Aligned for new spec
31125 * tbuild.adb, exp_dist.adb, exp_disp.adb, exp_ch3.ads, exp_ch3.adb,
31126 exp_attr.adb, exp_aggr.adb, exp_ch4.adb, exp_ch5.adb: Upgrade all the
31127 uses of the Access_Disp_Table attribute to reference the first dispatch
31128 table associated with a tagged type. As
31129 part of the implementation of abstract interface types,
31130 Access_Disp_Table has been redefined to contain a list of dispatch
31131 tables (rather than a single dispatch table).
31132 Similarly, upgrade all the references to Tag_Component by the
31133 new attribute First_Tag_Component.
31134 (Find_Inherited_TSS): Moved to exp_tss.
31135 Clean up test in Expand_N_Object_Declaration for cases
31136 where we need to do a separate assignment of the initial value.
31137 (Expand_N_Object_Declaration): If the expression in the
31138 declaration of a tagged type is an aggregate, no need to generate an
31139 additional tag assignment.
31140 (Freeze_Type): Now a function that returns True if the N_Freeze_Entity
31142 Bit packed array ops are only called if operands are known to be
31144 (Component_Equality): When returning an N_Raise_Program_Error statement,
31145 ensure that its Etype is set to Empty to avoid confusing GIGI (which
31146 expects that only expressions have a bona fide type).
31147 (Make_Tag_Ctrl_Assignment): Use Build_Actual_Subtype to correctly
31148 determine the amount of data to be copied.
31150 * par.adb (P_Interface_Type_Definition): New subprogram that parses the
31151 new syntax rule of Ada 2005 interfaces (for AI-251 and AI-345):
31152 INTERFACE_TYPE_DEFINITION ::=
31153 [limited | task | protected | synchronized] interface
31154 [AND interface_list]
31156 * par-ch3.adb (P_Type_Declaration): Modified to give support to
31158 (P_Derived_Type_Def_Or_Private_Ext_Decl): Modified to give support to
31160 (P_Interface_Type_Definition): New subprogram that parses the new
31161 syntax rule of Ada 2005 interfaces
31162 (P_Identifier_Declarations): fix two occurrences of 'RENAMES' in error
31163 messages by the correct RENAMES (quotes removed).
31165 * sem_prag.adb: Upgrade all the references to Tag_Component by the new
31166 attribute First_Tag_Component.
31168 * sinfo.ads, sinfo.adb: Remove OK_For_Stream flag, not used, not needed
31169 (Interface_List, Set_Interface_List): New subprograms.
31170 (Interface_Present, Set_Interface_Present): New subprograms.
31171 (Limited_Present, Set_Limited_Present): Available also in derived
31172 type definition nodes.
31173 (Protected_Present, Set_Protected_Present): Available also in
31174 record type definition and
31175 derived type definition nodes.
31176 (Synchronized_Present, Set_Synchronized_Present): New subprograms.
31177 (Task_Present, Set_Task_Present): New subprogram.
31178 (Task_Body_Procedure): Removed.
31179 (Set_Task_Body_Procedure): Removed.
31180 These subprogram have been removed because the attribute
31181 Task_Body_Procedure has been moved to the corresponding task type
31182 or task subtype entity to leave a field free to store the list
31183 of interfaces implemented by a task (for AI-345)
31184 Add Expression field to N_Raise_Statement node for Ada 2005 AI-361
31185 (Null_Exclusion_Present): Change to Flag11, to avoid conflict with
31186 expression flag Do_Range_Check
31187 (Exception_Junk): Change to Flag7 to accomodate above change
31188 (Box_Present, Default_Name, Specification, Set_Box_Present,
31189 Set_Default_Name, Set_Specification): Expand the expression
31190 "X in N_Formal_Subprogram_Declaration" into the corresponding
31191 two comparisons. Required to use the csinfo tool.
31193 * exp_ch11.adb (Expand_N_Raise_Statement): Deal with case where
31194 "with string" given.
31196 * sem_ch11.adb (Analyze_Raise_Statement): Handle case where string
31199 * par-ch11.adb (P_Raise_Statement): Recognize with string expression
31202 * exp_ch9.adb (Build_Task_Proc_Specification): Modified to use entity
31203 attribute Task_Body_Procedure rather than the old semantic field that
31204 was available in the task_type_declaration node.
31206 * par-ch12.adb (P_Formal_Type_Definition): Modified to handle formal
31207 interface type definitions.
31208 (P_Formal_Derived_Type_Definition): Modified to handle the list of
31211 * par-ch9.adb (P_Task): Modified to handle the list of interfaces in a
31212 task type declaration.
31213 (P_Protected): Modified to handle the list of interfaces in a
31214 protected type declaration.
31216 2005-03-15 Doug Rupp <rupp@adacore.com>
31217 Vincent Celier <celier@adacore.com>
31219 * bindgen.adb (Gen_Main_C): Change WBI __posix_exit to decc$posix_exit
31220 (Gen_Output_File_C): Likewise.
31221 (Gen_Main_C): Issue #include <stdlib.h> to avoid warning
31223 2005-03-15 Thomas Quinot <quinot@adacore.com>
31225 * checks.adb (Get_E_First_Or_Last): When the expression being retrieved
31226 is an N_Raise_Constraint_Error node, create a new copy of it without
31227 going through a call to Duplicate_Subexpr.
31229 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
31230 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31231 Nicolas Setton <setton@adacore.com>
31232 Ed Schonberg <schonberg@adacore.com>
31238 * decl.c (gnat_to_gnu_field): Reject aliased components with a
31239 representation clause that prescribes a size not equal to the rounded
31240 size of their types.
31241 (gnat_to_gnu_entity, case E_Component): Always look at
31242 Original_Record_Component if Present and not the entity.
31243 (gnat_to_gnu_entity, case E_Record_Subtype): Rework handling of subtypes
31244 of tagged extension types by not making field for components that are
31246 (gnat_to_gnu_entity) <E_Record_Type>: Fix typo in the alignment formula
31247 (gnat_to_gnu_entity) <E_Variable>: Do not convert again the
31248 expression to the type of the object when the object is constant.
31249 Reverse defer_debug_incomplete_list before traversing it, so that trees
31250 are processed in the order at which they were added to the list. This
31251 order is important when using the stabs debug format.
31252 If we are deferring the output of debug information, also defer this
31253 output for a function return type.
31254 When adding fields to a record, prevent emitting debug information
31255 for incomplete records, emit the information only when the record is
31257 (components_to_record): New parameter defer_debug.
31258 (gnat_to_gnu_entity, case E_Array_Subtype): Call copy_alias_set.
31259 (gnat_to_gnu_field_decl): New function.
31260 (substitution_list, annotate_rep): Call it.
31261 (gnat_to_gnu_entity, case E_Record_Subtype): Likewise.
31262 (gnat_to_gnu_entity, case E_Record_Type): Likewise.
31263 No longer update discriminants to not be a COMPONENT_REF.
31264 (copy_alias_set): Strip padding from input type; also handle
31265 unconstrained arrays properly.
31267 * gigi.h (write_record_type_debug_info): New function.
31268 Convert to use ANSI-style prototypes. Remove unused
31269 declarations for emit_stack_check, elab_all_gnat and
31270 set_second_error_entity.
31271 (gnat_to_gnu_field_decl): New decl.
31273 * utils.c (write_record_type_debug_info): New function.
31274 (finish_record_type): Delegate generation of debug information to
31275 write_record_type_debug_info.
31276 (update_pointer_to): Remove unneeded calls to rest_of_decl_compilation.
31277 (update_pointer_to): Fix pasto.
31278 (convert) <UNION_TYPE>: Accept slight type variations when
31279 converting to an unchecked union type.
31281 * exp_ch13.adb (Expand_N_Freeze_Entity): If Freeze_Type returns True,
31282 replace the N_Freeze_Entity with a null statement.
31284 * freeze.adb (Freeze_Expression): If the freeze nodes are generated
31285 within a constrained subcomponent of an enclosing record, place the
31286 freeze nodes in the scope stack entry for the enclosing record.
31287 (Undelay_Type): New Subprogram.
31288 (Set_Small_Size): Pass T, the type to modify; all callers changed.
31289 (Freeze_Entity, Freeze_Record_Type): Change the way we handle types
31290 within records; allow them to have freeze nodes if their base types
31293 * exp_util.adb (Remove_Side_Effects): Properly test for
31294 Expansion_Delayed and handle case when it's inside an
31295 N_Qualified_Expression.
31297 * sem_ch3.adb (Derived_Type_Declaration): New predicate
31298 Comes_From_Generic, to recognize accurately that the parent type in a
31299 derived type declaration can be traced back to a formal type, because
31300 it is one or is derived from one, or because its completion is derived
31302 (Constrain_Component_Type): If component comes from source and has no
31303 explicit constraint, no need to constrain in in a subtype of the
31305 (Constrain_Access, Constrain_Array): Allow itypes to be delayed.
31306 Minor change to propagate Is_Ada_2005 flag
31308 * trans.c (gnat_to_gnu, case N_Aggregate): Verify that
31309 Expansion_Delayed is False.
31310 (assoc_to_constructor): Ignore fields that have a
31311 Corresponding_Discriminant.
31312 (gnat_to_gnu) <N_Return_Statement>: Restructure. If the
31313 function returns "by target", dereference the target pointer using the
31314 type of the actual return value.
31315 <all>: Be prepared for a null gnu_result.
31316 (processed_inline_subprograms): Check flag_really_no_inline
31317 instead of flag_no_inline.
31318 (set_second_error_entity): Remove unused function.
31319 (gnat_to_gnu, case N_Selected_Component): Call
31320 gnat_to_gnu_field_decl.
31321 (assoc_to_constructor): Likewise.
31323 2005-03-15 Robert Dewar <dewar@adacore.com>
31324 Ed Schonberg <schonberg@adacore.com>
31325 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31327 * exp_pakd.adb (Create_Packed_Array_Type): Do not set
31328 Must_Be_Byte_Aligned for cases where we do not need to use a
31329 System.Pack_nn unit.
31331 * exp_ch6.adb (Expand_Call): Call Expand_Actuals for functions as well
31333 Needed now that we do some processing for IN parameters as well. This
31334 may well fix some unrelated errors.
31335 (Expand_Call): Handle case of unaligned objects (in particular those
31336 that come from packed arrays).
31337 (Expand_Inlined_Call): If the subprogram is a renaming as body, and the
31338 renamed entity is an inherited operation, re-expand the call using the
31339 original operation, which is the one to call.
31340 Detect attempt to inline parameterless recursive subprogram.
31341 (Represented_As_Scalar): Fix to work properly with private types
31342 (Is_Possibly_Unaligned_Object): Major rewrite to get a much more
31343 accurate estimate. Yields True in far fewer cases than before,
31344 improving the quality of code that depends on this test.
31346 * exp_util.adb (Kill_Dead_Code): For a package declaration, iterate
31347 over both visible and private declarations to remove them from tree,
31348 and mark subprograms declared in package as eliminated, to prevent
31349 spurious use in subsequent compilation of generic units in the context.
31351 * exp_util.ads: Minor cleanup in variable names
31353 * sem_eval.ads, sem_eval.adb: Minor reformatting
31354 (Compile_Time_Known_Bounds): New function
31356 2005-03-15 Ed Schonberg <schonberg@adacore.com>
31358 * exp_ch7.adb (Convert_View): Use base types of underlying types when
31359 determining whether an unchecked conversion is needed for the argument
31360 of an initialization call.
31362 2005-03-15 Ed Schonberg <schonberg@adacore.com>
31364 * exp_intr.adb (Expand_Unc_Conversion): As a target type, use the type
31365 that appears in the instantiation rather than the internal subtype
31366 generated in the wrapper package, to avoid anomalies in gigi when the
31367 target is derived from a private type whose full view is an access type.
31369 2005-03-15 Robert Dewar <dewar@adacore.com>
31371 * exp_smem.adb, sem_attr.adb: Remove OK_For_Stream flag, not used,
31373 Add documentation to replace the use of this flag
31374 Fix kludge for Maximum_Alignment on x86 so that it does not apply to
31377 2005-03-15 Thomas Quinot <quinot@adacore.com>
31379 * exp_tss.ads, exp_tss.adb (Find_Inherited_TSS): New subprogram, moved
31380 here from exp_attr so it can be shared between exp_attr and exp_dist.
31381 (TSS_Names): Renamed from OK_TSS_Names. This array contains the list of
31382 all TSS names, not a subset thereof, and the previous name introduced
31383 an unnecessarily confusion that a distinction might exist between
31384 "OK" TSS names and some "not OK" TSS names.
31386 2005-03-15 Doug Rupp <rupp@adacore.com>
31388 * gnatchop.adb (Locate_Executable): Normalize the possibly VMS style
31391 2005-03-15 Pascal Obry <obry@adacore.com>
31392 Eric Botcazou <ebotcazou@adacore.com>
31396 * init.c (__gnat_initialize): Do not call __gnat_install_SEH_handler()
31397 when IN_RTS. This is to work around a bootstrap path problem.
31399 * misc.c (gnat_parse_file): Create a SEH (Structured Exception Handler)
31400 table and pass it to __gnat_install_SEH_handler().
31401 (gnat_handle_option): Accept OPT_fRTS_, not OPT_fRTS.
31403 * lang.opt: Fix specification of -fRTS=.
31405 2005-03-15 Doug Rupp <rupp@adacore.com>
31406 Bernard Banner <banner@adacore.com>
31407 Vincent Celier <celier@adacore.com>
31408 Arnaud Charlet <charlet@adacore.com>
31411 This change works fine when gnatlib is built from the gcc directory,
31412 but does not work when using the libada Makefile, since GCC_FOR_TARGET
31413 is not passed to ada/Makefile.in, so more work is needed by a
31414 Makefile/configure expert.
31416 * Makefile.in(gnatlib): Use $(GCC_FOR_TARGET) for compiling library.
31417 set GMEM_LIB on ia64 linux to add optional support for gnatmem.
31418 Setup gnatlink switch -M for x86_64 linux, as it is already setup
31420 (gnatlib-shared-default): Use GNATLIBCFLAGS as well.
31421 Run ranlib on libgccprefix.a
31422 Define PREFIX_OBJS for Darwin, to build libgccprefix.
31423 (ADA_INCLUDE_SRCS): Split Ada packages.
31425 2005-03-15 Robert Dewar <dewar@adacore.com>
31427 * Make-lang.in: Add g-utf_32 unit for gnat and gnatbind
31429 * impunit.adb: Add GNAT.UTF_32
31431 * scng.adb: Use gnat.utf_32 instead of widechar for utf_32 stuff
31433 * widechar.ads, widechar.adb: Remove redundant UTF-32 tables (scng
31434 now uses GNAT.UTF_32).
31436 * g-utf_32.ads, g-utf_32.adb: This is a new unit with full
31437 capabilities for categorizing characters using Unicode categories
31439 2005-03-15 Ed Schonberg <schonberg@adacore.com>
31441 * sem_ch10.adb (Build_Ancestor_Name): If the ancestor is an
31442 instantiation that has been rewritten as a package body, retrieve spec
31443 to generate proper name for implicit_with_clause.
31444 (Install_Parents): Recognize a parent that is an instantiation but has
31445 been rewritten as a package declaration during analysis.
31447 2005-03-15 Javier Miranda <miranda@adacore.com>
31448 Ed Schonberg <schonberg@adacore.com>
31450 * sem_ch12.adb (Instantiate_Object): If the analysis of the actual
31451 parameter reported some error we immediately return. This improves the
31452 behaviour of the frontend in case of errors.
31453 (Install_Parent, Remove_Parent): Introduce new flag
31454 Parent_Unit_Visible, to preserve the proper visibility of the ultimate
31455 ancestor of a generic child unit, when the child is being instantiated.
31456 (Inline_Instance_Body): If we are compiling the private
31457 part or the body of a child unit, restore the proper visibility of the
31458 parents after compiling the instance body.
31460 2005-03-15 Ed Schonberg <schonberg@adacore.com>
31461 Javier Miranda <miranda@adacore.com>
31464 * sem_util.adb (Get_Task_Body_Procedure): Type may be the completion
31465 of a private type, in which case it is underlying_type that denotes
31466 the proper task. Also modified to use the new entity attribute
31467 that is directly available in the task type and task subtype entities
31468 (Build_Actual_Subtype_Of_Component): Handle properly multidimensional
31469 arrays when other dimensions than the first are constrained by
31470 discriminants of an enclosing record.
31471 (Insert_Explicit_Dereference): If the prefix is an indexed component or
31472 a combination of indexed and selected components, find ultimate entity
31473 and generate the appropriate reference for it, to suppress spurious
31475 (Note_Possible_Modification): If an entity name has no entity, return.
31476 (Is_Variable): A function call never denotes a variable.
31477 (Requires_Transient_Scope): For record types, recurse only on
31478 components, not on internal subtypes that may have been generated for
31479 constrained components.
31481 2005-03-15 Ed Schonberg <schonberg@adacore.com>
31483 * sem_ch4.adb (Analyze_Concatenation): Do not consider operators marked
31484 Eliminated as candidates for resolution. Both efficient, and avoids
31485 anomalies with operators declared in deleted code.
31486 (Process_Implicit_Dereference_Prefix): Use this procedure whenever
31487 expansion is disabled (as when compiling a generic) to prevent spurious
31488 warnings on prefixes of selected components.
31490 2005-03-15 Ed Schonberg <schonberg@adacore.com>
31492 * sem_ch6.adb (Is_Private_Declaration): Verify that the declaration is
31493 attached to a list before checking whether it appears in the private
31494 declarations of the current package.
31495 (Make_Inequality_Operator): Insert declaration in proper declarative
31496 list rather than just setting the Parent field, so that
31497 Is_Private_Declaration can handle it properly.
31499 2005-03-15 Ed Schonberg <schonberg@adacore.com>
31501 * sem_ch8.adb (Analyze_Subprogram_Renaming): In a generic, if this is
31502 a renaming a body, check that the renamed subprogram in not intrinsic.
31503 (Find_Direct_Name): If several use_visible entities hide
31504 each other, and the context is a predefined file compiled through
31505 rtsfind, keep only the entity that comes from a predefined file.
31507 2005-03-15 Geert Bosch <bosch@adacore.com>
31509 * s-fatgen.adb (Valid): Extend special exceptions to account for long
31510 long float padding to also cover AMD64 and IA64.
31512 2005-03-15 Gary Dismukes <dismukes@adacore.com>
31514 * s-imgwch.adb: Add with and use of Interfaces.
31515 (Img_Wide_Character): Change type of Val to Unsigned_16.
31516 (Img_Wide_Wide_Character): Change type of Val to Unsigned_32.
31518 2005-03-15 Matthew Gingell <gingell@adacore.com>
31520 * sysdep.c: Implement __gnat_localtime_r as call to localtime_r on AIX.
31522 2005-03-15 Robert Dewar <dewar@adacore.com>
31524 * usage.adb: Add missing lines for -gnat95 and -gnat05 switches
31526 * sem_ch7.adb: Minor change to propagate Is_Ada_2005 flag
31528 * i-c.adb: Clarify that AI-258 behavior is also intended in Ada 95
31530 2005-03-15 Robert Dewar <dewar@adacore.com>
31532 * s-bitops.adb, s-bitops.ads,
31533 s-taprop-os2.adb, s-intman-vms.ads, s-intman-vxworks.ads,
31534 s-taprop-vxworks.adb, a-caldel.ads, a-calend.adb, a-tasatt.adb,
31535 tbuild.ads, s-finimp.adb, s-imgwch.adb, s-intman.ads, s-intman.ads,
31536 s-memory.adb, s-soflin.ads, s-taasde.ads, s-taprob.adb, s-taprop.ads,
31537 s-taprop.ads, s-tasini.adb, s-tasini.ads, s-tasini.ads, s-tasini.ads,
31538 s-taskin.ads, s-tasren.adb, s-tassta.adb, s-tassta.ads, s-tassta.ads,
31539 s-tasuti.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads, s-tataat.ads,
31540 s-tpoben.adb, s-tpoben.adb, s-tpobop.ads: Update comments. Minor
31543 2005-03-15 Eric Botcazou <ebotcazou@adacore.com>
31545 * utils2.c (build_binary_op): Fix typo.
31547 2005-03-15 Doug Rupp <rupp@adacore.com>
31549 * s-crtl.ads (popen,pclose): New imports.
31551 2005-03-15 Cyrille Comar <comar@adacore.com>
31553 * comperr.adb (Compiler_Abort): remove references to obsolete
31554 procedures in the bug boxes for various GNAT builds.
31556 2005-03-15 Vincent Celier <celier@adacore.com>
31558 * snames.ads, snames.adb: Save as Unix text file, not as DOS text file
31560 2005-03-15 Geert Bosch <bosch@adacore.com>
31561 Arnaud Charlet <charlet@adacore.com>
31562 Robert Dewar <dewar@adacore.com>
31563 Cyrille Comar <comar@adacore.com>
31564 Sergey Rybin <rybin@adacore.com>
31566 * gnat_ugn.texi: Remove extended inline assembly example, as it was far
31567 too specific and long-winded to be appropriate for the GNAT User's
31569 Warn about use of GCC switches not documented in the GNAT User's Guide,
31570 as these may cause generated code to not conform to Ada semantics.
31571 Remove mention of -gdwarf-2 for sparc64, since this is now the default.
31572 Add documentation for -gnat95 and -gnat05 switches
31573 Remove paragraph documenting obsolete way to refer to third party
31575 Add a few references to Ada_05 that were missing.
31576 Update documentation on -gnatZ/-gnatL.
31577 Document limitation when using -m64 under Solaris.
31578 Change the "Name Casing" subsection of the pretty-printer section
31579 according to the changes in the dictionary processing.
31581 * gnat_rm.texi: Document the Ada_05 pragma.
31582 Section on record representation clauses describes the new more
31583 relaxed rules about placement of large packed bit array components.
31584 Add documentation of GNAT.UTF_32
31586 2005-03-12 Daniel Berlin <dberlin@dberlin.org>
31588 * misc.c (gnat_post_options): Turn off structural
31591 2005-03-08 Laurent Guerby <laurent@guerby.net>
31593 * system-linux-sparc.ads: Fix typo in previous commit.
31595 2005-03-07 James A. Morrison <phython@gcc.gnu.org>
31596 Laurent Guerby <laurent@guerby.net>
31599 * system-linux-sparc.ads: New.
31600 * Makefile.in: Add sparc linux entry.
31602 2005-02-27 Danny Smith <dannysmith@users.sourceforge.net>
31604 * seh_init.c (__gnat_SEH_error_handler): Mark third and fourth
31605 parameters as unused.
31607 2005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
31608 Partial merge from libada-gnattools-branch:
31610 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
31611 * Makefile.in: Move gnattools{1,1re,2,3,4} and corresponding flags
31612 into code in gnattools/Makefile.in. Remove direct dependencies on
31613 stamp-tools by tools clauses.
31614 2004-12-02 Nathanael Nerode <neroden@gcc.gnu.org>
31615 * config-lang.in: Add gnattools to $lang_dirs.
31617 2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
31620 * utils.c (gnat_type_for_mode): Return null instead of ICE because
31621 we asked for an unknown mode.
31623 2005-02-12 Richard Henderson <rth@redhat.com>
31625 * utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;
31626 validate SCALAR_INT_MODE_P before calling gnat_type_for_size.
31628 2005-02-10 Andreas Jaeger <aj@suse.de>
31630 * init.c (__gnat_initialize): Mark parameter as unused.
31632 2005-02-09 Doug Rupp <rupp@adacore.com>
31634 * g-expect-vms.adb (Non_Blocking_Spawn): Separate out.
31635 * g-enblsp-vms-alpha.adb g-enblsp-vms-ia64.adb: New subunits.
31637 2005-02-09 Doug Rupp <rupp@adacore.com>
31639 * gnatchop.adb (dup, dup2),
31640 g-dirope.adb (closedir, opendir, rmdir): Reference via System.CRTL.
31642 * gnatlbr.adb (mkdir),
31643 mlib-tgt-vms-ia64.adb (popen, plose): Import with decc$ prefix.
31645 * s-crtl.ads (closdir, dup, dup2, opendir, rmdir): Import.
31647 2005-02-09 Doug Rupp <rupp@adacore.com>
31649 * s-tpopde-vms.adb: Add pragma Warnings (Off) for Task_Id conversions.
31651 2005-02-09 Robert Dewar <dewar@adacore.com>
31652 Thomas Quinot <quinot@adacore.com>
31653 Javier Miranda <miranda@adacore.com>
31654 Pascal Obry <obry@adacore.com>
31655 Ed Schonberg <schonberg@adacore.com>
31656 Doug Rupp <rupp@adacore.com>
31657 Gary Dismukes <dismukes@adacore.com>
31658 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
31660 * g-zstspl.ads: New file.
31662 * a-chahan.ads, a-chahan.adb: Add declarations from AI-285
31664 * a-string.ads: Add pragma Ada_05 for wide_wide_space to get warning in
31666 Add definition of Wide_Wide_Space for AI-285
31668 * impunit.ads, impunit.adb, sem_ch10.adb: Complete rewrite and new
31669 interface (to support Ada 95 and Ada 2005 units).
31670 Add Unbounded_IO files
31671 Add entries for Wide_Wide packages for AI-285
31672 Add list of containers packages to Ada 2005 unit list
31674 * a-swuwti.ads, a-swuwti.adb, a-suteio.ads, a-suteio.adb: Updates to
31675 support new Unbounded_IO package cleanly.
31677 * g-utf_32.ads, g-utf_32.adb: New files.
31679 * Makefile.rtl: Add entry for g-utf_32
31680 Add new files for Unbounded_IO
31681 Adjust make file for new AI-285 wide wide packages
31682 Add AI-302 containers to the run time.
31684 * a-stwibo.adb, a-stwibo.ads, a-stwisu.adb, a-stwisu.ads,
31685 a-strbou.ads, a-strbou.adb, a-strsup.ads, a-strsup.adb: New
31686 subprograms for AI-301.
31688 * a-stwiun.adb, a-stwiun.ads: Minor reformatting.
31690 * a-stunau.ads: Minor comment correction
31692 * rtsfind.ads, rtsfind.adb: Add definitions for Wide_Wide attributes
31694 Also extend Text_IO_Kludge to support Wide_Wide_Text_IO
31695 (Check_RPC): Update to match changes in expanded code.
31696 Clean up unused entity.
31698 * exp_ch3.ads, exp_ch3.adb: Fix various places where Wide_Wide_String
31699 was not taken into account.
31700 This includes proper initialization with Normalize_Scalars.
31701 (Get_Simple_Init_Val): Major rewrite for initialize scalars and
31702 normalize scalars cases (particularly the latter) to do a better job
31703 of finding invalid representations.
31705 * s-scaval.ads, s-scaval.adb: Add values for zero invalid values
31707 * s-strops.ads, s-strops.adb: Remove string normalize routines, never
31710 * exp_dist.adb: Add support for wide wide character type
31711 (Expand_Receiving_Stubs_Bodies): For a package declaration that has a
31712 private part, generate stub bodies at the end of the private part,
31713 not the visible part.
31714 (Add_RACW_Primitive_Operations_And_Bodies): Add last missing code for
31716 (Add_Obj_RPC_Receiver_Completion): Add PCS-specific subprograms and
31717 generic wrapper to execute final processing after completing the
31718 expansion of the RPC receiver for an RACW.
31720 * snames.h, snames.ads, snames.adb: Add definitions for wide_wide
31721 packages and attributes.
31722 (Preset_Names): Addition of the new reserved words of Ada 2005,
31723 that is interface, overriding and synchronized.
31724 (Get_Pragma_Id): Give support to the use of the new reserved word
31725 "interface" as a pragma name.
31726 (Is_Pragma_Name): Give support to the use of the new reserved word
31727 "interface" as a pragma name.
31728 (Preset_Names): Add stream_size string for the Stream_Size Ada2005
31729 attribute implementation.
31731 * exp_attr.adb (Expand_Attribute_Reference): Do not apply validity
31732 checks to entities that are output parameters of Asm operations.
31733 Handle the Stream_Size attribute.
31734 Add implementation of Wide_Wide_Value, Wide_Wide_Image, Wide_Wide_Width
31736 * exp_imgv.ads, exp_imgv.adb: Add support for wide wide character type
31738 * sem_attr.adb (Eval_Attribute): Raise compile-time constraint error
31739 for second parameter being 0.0.
31740 Add support for wide wide character type.
31741 (Analyze_Attribute, Eval_Attribute): Handle the Stream_Size attribute.
31743 * s-valwch.adb, s-valwch.ads, s-imgwch.ads, s-imgwch.adb,
31744 s-wchstw.ads, s-wchstw.adb, s-wchwts.adb, s-wchwts.ads,
31745 s-widwch.adb, s-widwch.ads, s-wwdcha.adb, s-wwdcha.ads,
31746 s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb, s-wwdwch.ads: Add support
31747 for wide wide character cases.
31749 * cstand.adb: Create entities for Wide_Wide_Character and
31752 * i-c.ads, i-c.adb: Fix not raising CE for null wide strings in
31753 accordance with AI-258.
31754 Add new declarations for 16/32 bit C character types (Part of AI285)
31756 * einfo.ads, einfo.adb (Is_Obsolescent, Is_Ada_2005): New flag
31757 (Obsolescent_Warning): New field
31758 (Rep_Clause): New local subprogram used to share code. Returns the rep
31759 clause for which the name is given in parameter.
31760 (Has_Stream_Size_Clause): New routine.
31761 (Stream_Size_Clause): Idem. Implementation is based on Rep_Clause.
31762 (Address_Clause): Implementation is now using Rep_Clause.
31763 (Alignment_Clause): Idem.
31764 (Size_Clause): Idem.
31766 * lib-xref.adb (Generate_Reference): Test for reference to Ada 2005
31767 entity in non-Ada 2005 mode and generate warning.
31769 * par-prag.adb: Add handling of one argument form for pragma Ada_05.
31770 (Prag): Code cleanup. Remove old gnat pragma "overriding"
31772 * sem_prag.adb: Add handling of one argument form for pragma Ada_05
31773 (Analyze_Pragma, case Elaborate, Elaborate_All): Do not disable warnings
31774 on the named unit if the pragma is not in the current compilation unit,
31775 so that elaboration calls in the current unit can set up an elaboration
31776 dependency on the named unit, as needed.
31777 (Analyze_Pragma, case Obsolescent): Allow pragma to be used for library
31778 subprogram as well as for subprograms declared within a package.
31779 (Analyze_Pragma, Sig_Flags): Code cleanup. Remove support for the GNAT
31782 * krunch.ads, krunch.adb: Add special handling of Wide_Wide (krunched
31783 to z) to avoid some instances of duplication for Wide_Wide packages.
31785 * namet.ads, namet.adb: Implement encoding (WWhhhhhhhh) for wide wide
31788 * scn.adb: Char_Literal_Value field is now a Uint
31790 * scng.adb: Significant rewrite to handle new Ada 2005 features
31791 allowing wide and wide wide characters in program text, e.g. for
31792 identifiers, as described in AI-285.
31793 (Set_Reserved): New procedure, makes setting up keywords cleaner.
31794 (Initialize_Scanner): Register the new reserved words of Ada 2005.
31795 (Scan): Give support to the new reserved words.
31797 * par-ch2.adb (P_Identifier): Compiling in Ada95 mode, generate a
31798 warning notifying that interface, overriding, and synchronized are
31799 new reserved words.
31800 (P_Pragma): Allow the use of the new reserved word "interface" as
31803 * gnatls.adb, gnatbind.adb,
31804 ali-util.adb, binde.adb, ali.ads, ali.adb: Code cleanup. Rename
31805 identifiers named "interface" to "SAL_Interface".
31807 * bindgen.adb (Gen_Main_Ada): Add support for the new SEH
31808 (Structured Exception handling).
31809 (Gen_Main_C): Idem.
31812 (Gen_Main_Ada): Set the default exit code if specified.
31813 (Gen_Main_C): Likewise.
31815 (Gen_Output_File_C): Remove redundant output of gnat_exit_status.
31816 Code cleanup. Rename identifiers named "interface" to "SAL_Interface"
31818 * switch-b.adb, bindusg.adb, opt.ads, vms_data.ads: Add handling of
31821 * mlib-prj.adb, mlib.adb: Code cleanup. Rename one identifier that
31822 has a collision with the new Ada 2005 "interface" reserved word.
31824 * par-ch3.adb (P_Defining_Identifier): Compiling in Ada95 mode,
31825 generate a warning notifying that interface, overriding, and
31826 synchronized are new reserved words.
31828 * scans.ads (Token_Type): Addition of the tokens corresponding to the
31829 new reserved words of Ada 2005: Tok_Interface, Tok_Overriding
31830 and Tok_Synchronized.
31832 * sem_res.adb (Resolve_Actuals): Change error messages to refer to
31833 "dispatching" rather than "primitive" operations, since dispatching
31834 calls are now allowed to abstract formal subprograms (which are not
31836 Char_Literal_Value field is now a Uint
31837 (Resolve_Slice): If the prefix is an access to an unconstrained array,
31838 compute the actual subtype of the designated object to impose the proper
31840 (Resolve_Selected_Component): Do not insert an access check if the
31841 prefix is an access type: such a node is expanded into an explicit
31842 dereference, on which the access check is performed anyway. Removes
31843 expensive duplicate checks.
31844 (Resolve_Call): Use new flag Is_Obsolescent and field
31845 Obsolescent_Warning so that pragma Obsolescent works on library
31847 Add support for wide wide character type
31848 (Resolve_Allocator): Replace the error message on wrong null-exclusion
31849 value by a warning message.
31850 (Resolve_Type_Conversion): If the mixed-mode expression is interpreted
31851 as fixed-point, and one of the operands is non-static and universal, it
31852 can only be an illegal exponentiation operation, in which case there is
31853 no real value to retrieve.
31855 * exp_strm.adb: Add support for wide wide character type
31856 (Build_Elementary_Input_Call): Compute the size of the stream element by
31857 querying the rep chain to find the Stream_Attribute attribute value.
31858 (Build_Elementary_Write_Call): Ditto.
31860 * sem_aggr.adb: Char_Literal_Value field is now a Uint
31861 Add support for wide wide character type
31862 Replace the error messages on wrong null-exclusion value by warnings
31863 as described in Ada 2005.
31864 (Resolve_Extension_Aggregate): Document the fact that the error
31865 message on class-wide expressions in extensions aggregates.
31867 * sem_case.adb: Add support for wide wide character type
31869 * sem_ch13.adb: Add support for wide wide character type
31870 (Analyze_Attribute_Definition_Clause): Handle the Stream_Size attribute.
31872 * sem_ch3.adb: Add support for wide wide character type
31873 (Process_Subtype): If constraint is illegal for the type, set Ekind of
31874 now-useless Itype, to prevent cascaded errors on a compiler built
31877 * sem_ch8.adb: Add with and use of Sem_Disp.
31878 (Analyze_Subprogram_Renaming): Replace unclean uses of
31879 Corresponding_Spec with Corresponding_Formal_Spec (and delete setting
31880 of Corresponding_Spec to Empty).
31881 (Attribute_Renaming): Replace use of Corresponding_Spec with
31882 Corresponding_ Formal_Spec and simplify condition.
31883 (Use_One_Package): Check that scope of homonym of identifier is defined,
31884 before checking whether it is a wrapper package.
31885 Add support for wide wide character type
31887 * sem_eval.adb: Add support for wide wide character type.
31888 (Eval_Arithmetic_Op): Check for compile time known signed integer
31889 overflow in the non-static case.
31890 (Subtypes_Statically_Match): A formal scalar type and its base type do
31891 not statically match.
31893 * sem_util.adb (Collect_Primitive_Operations): Minor change of "/=" to
31894 "not in" for test of N_Formal_Subprogram_Declaration (which is now a
31896 (Unit_Declaration_Node): Ditto.
31897 (Is_Variable_Prefix): For the case of an indexed component whose prefix
31898 has a packed array type, the prefix has been rewritten into a type
31899 conversion. Determine variable-ness from the converted expression.
31900 Handle wide wide character cases.
31902 * stand.ads: Add types Wide_Wide_Character and Wide_Wide_String
31904 * stringt.ads, stringt.adb: Handle full UTF-32 range.
31905 Remove ["0A"] from comment, since it can look like a line terminator.
31906 Currently we don't permit this, but this is under discussion by the
31907 ARG, and it is easy enough to use a different example.
31909 * s-wchcon.ads, s-wchcnv.ads, s-wchcnv.adb: Add new subprograms for
31910 handling UTF-32 encoding for wide wide character.
31911 Implement new brackets coding ["hhhhhhhh"]
31912 Add UTF-8 encodings for full UTF-32 range
31914 * ttypes.ads: Add definition of Standard_Wide_Wide_Character_Size
31916 * types.h, types.ads, types.adb: Wide_Wide_Character now has full 31
31917 bit range Add full UTF-32 support.
31918 (RT_Exception_Code): Addition of CE_Null_Not_Allowed; used to
31919 notify that constraint error will be raised at run-time
31920 because a null value is assigned to a null-excluding object.
31921 Remove some obsolete declarations and make Char_Code
31924 * a-except.adb (Rcheck_30): New subprogram. Addition of the message
31925 corresponding to CE_Null_Not_Allowed, and adjust the output of all the
31926 Rcheck subprograms.
31928 * checks.adb (Check_Null_Not_Allowed): Replace the error message on
31929 wrong null-exclusion value by a warning message.
31930 (Enable_Range_Check): Do range check if the prefix is an
31931 explicit dereference whose designated object is an unconstrained array.
31932 Current algorithm for removing duplicate checks is over-eager in this
31935 * sem_ch5.adb (Analyze_Assignment): Replace the error messages on wrong
31936 null-exclusion value by a warning message
31938 * atree.h, atree.ads, atree.adb: Remove Char_Code field support
31939 completely. Add support for Uint2 field
31941 sem_ch2.adb, exp_ch11.adb, exp_dbug.adb,
31942 exp_prag.adb: Char_Literal_Value field is now a Uint.
31944 * exp_util.adb (Insert_Actions): Replace
31945 N_Formal_Subprogram_Declaration by
31946 N_Formal_{Abstract|Concrete}_Subprogram_Declaration.
31947 Char_Literal_Value field is now a Uint.
31949 * sinfo.ads, sinfo.adb (Corresponding_Formal_Spec): New function
31950 defined for subprogram renaming declarations. When set, the field
31951 indicates the defining entity of a corresponding formal subprogram
31952 when the renaming corresponds to a formal subprogram association in an
31954 (Set_Corresponding_Formal_Spec): New procedure to return
31955 Corresponding_Formal_Spec field.
31956 Minor changes of "=" to "in" in tests of N_Formal_Subprogram_Declaration
31957 (which is now a subtype).
31958 Char_Literal_Value field is now a Uint
31960 * exp_disp.ads, exp_disp.adb (Make_DT): Generate code that moves the
31961 pointer to the base of the dispatch table.
31962 Minor changes to comments.
31963 (Controlling_Type): New function for determining the tagged type
31964 associated with a tagged primitive subprogram.
31965 (Expand_Dispatching_Call): Add support for a controlling actual that is
31966 directly a value of type Ada.Tag rather than a tagged object.
31968 * i-cpp.ads, i-cpp.adb, a-tags.ads, a-tags.adb: Update documentation
31969 describing the new layout.
31970 (Dispatch_Table): The expander computes the actual array size, allocates
31971 the Dispatch_Table record accordingly, and generates code that displaces
31972 the base of the record after the Typeinfo_Ptr component. The access to
31973 these components is done by means of local functions.
31974 (Offset_To_Top): New function.
31975 (Typeinfo_Ptr): New function.
31976 (Get_TSD): Modified to access the new position of the TSD.
31977 (Set_TSD): Modified to save the TSD in its new position.
31979 * par-ch12.adb (P_Formal_Subprogram_Declaration): Add parsing for the
31980 case of formal abstract subprograms. Add check and message for -gnat05.
31983 * sem_ch12.adb: Add with and use for Sem_Disp.
31984 (Analyze_Associations): Minor change from "=" to "in" for use of
31985 N_Formal_Subtype_Declaration (which is now a subtype).
31986 (Set_Analyzed_Formal): Minor changes from "=" to "in" for uses of
31987 N_Formal_Subtype_Declaration (which is now a subtype).
31988 (Analyze_Formal_Subprogram): Add handling for
31989 N_Formal_Abstract_Subprogram, marking the formal as abstract and
31990 dispatching, setting the controlling status of the formal parameters
31991 and result, and issuing an error if there is no controlling type for
31992 the formal subprogram.
31993 (Instantiate_Formal_Subprogram): Rather than setting Corresponding_Spec,
31994 which is an unclean use of that field, we set the new field
31995 Corresponding_Formal_Spec to make the formal subprogram available to
31996 processing in Analyze_Subprogram_Declaration.
31997 (Analyze_Formal_{Discrete, Decimal_Fixed_Point, Fixed_Point,
31998 Floating_Point, Modular_Integer, Signed_Integer}_Type: Make formal type
31999 Constrained, so that it is is does not statically match its anonymous
32002 * sem_ch6.adb (Analyze_Subprogram_Specification): Include test for
32003 abstract formal subprograms in error check for functions returning
32004 abstract types. Set scope of new designator for
32005 a parameterless subprogram, so that it is available when checking the
32006 body for nested subprograms, before full analysis of said body.
32007 (Analyze_Subprogram_Body): Warn on inlining bodies with nested
32008 subprogram only if inner one comes from source.
32009 (Analyze_Function_Call): If the call is given in object notation, the
32010 analysis of the name rewrites the node and analyzes it with the proper
32011 argument list. After analyzing the name, if the call has been rewritten
32012 and the result type is set, no further analysis is needed.
32013 (Analyze_Return_Type): Subsidiary to Process_Formals: analyze subtype
32014 mark in function specification, in a context where the formals are
32015 visible and hide outer homographs.
32017 * sem_disp.adb (Check_Controlling_Type): Relax the check for same scope
32018 as the tagged type for the cases of abstract formal subprograms and
32019 renamings of those. Clean up spec comments.
32020 (Check_Dispatching_Context): Add error message to indicate "abstract
32021 procedure", covering the case of a call to a formal abstract procedure
32022 that has statically tagged operands.
32023 (Check_Dispatching_Call): Check for the case of an actual given by
32024 a tag-indeterminate function call whose type is an ancestor of the
32025 containing call's associated tagged type. This situation can occur
32026 for inherited primitives with function defaults. In this case we
32027 use the tagged type's tag directly as the controlling argument for
32029 (Expand_Call): Name change on call to Expand_Dispatch_Call.
32031 * sprint.adb (Sprint_Node_Actual): Split
32032 N_Formal_Subprogram_Declaration into two alternatives for the new
32033 cases N_Formal_Abstract_Subprogram_Declaration and
32034 N_Formal_Concrete_Subprogram_Declaration.
32035 Char_Literal_Value field is now a Uint.
32037 * trans.c: Get rid of junk Uint2 reference.
32038 Char_Literal_Value field is now a Uint.
32039 (gnat_to_gnu, case N_Aggregate): Check TYPE_UNCHECKED_UNION_P.
32040 (gigi): Correct third arg to gimplify_body.
32042 * ada-tree.h: (TYPE_UNCHECKED_UNION_P): New flag.
32043 (TYPE_LANG_FLAG_0): Check for record or union.
32045 * treepr.adb: Char_Literal_Value field is now a Uint
32047 * uintp.h, uintp.ads, uintp.adb: Add new routines UI_To_CC and
32050 * widechar.ads, widechar.adb (Is_UTF_32_Non_Graphic): New function
32051 Add full UTF-32 support
32052 Char_Code is now 32 bits
32054 * sinput.ads, sinput.adb (Skip_Line_Terminators): Extend to deal with
32055 wide character UTF_32 line terminators.
32056 Initialize Main_Source_File to avoid error when no main
32059 * errout.adb (Finalize): Do not check Num_SRef_Pragmas
32060 (Main_Source_File) when no main source has been loaded, to avoid
32063 2005-02-09 Robert Dewar <dewar@adacore.com>
32065 * a-strunb.ads, a-strunb.adb: Add missing pragma Ada_05 statements
32066 Fix name of Set routine
32068 * a-strfix.ads, a-strfix.adb: Add new index functions from AI-301 to
32071 * a-stwise.ads, a-stwise.adb, a-stwifi.ads, a-stwifi.adb,
32072 a-strsea.ads, a-strsea.adb: Add new index functions from AI-301 to
32075 * a-witeio.ads, a-witeio.adb, a-textio.ads, a-textio.adb: New function
32076 forms of Get_Line subprograms for AI-301.
32078 * a-wtcoau.adb, a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads,
32079 a-wtedit.adb, a-wtedit.adb, a-wtedit.ads, a-wttest.adb,
32080 a-wttest.ads, a-strmap.ads, a-strmap.adb, a-stwima.adb,
32081 a-stwima.ads: Minor reformatting.
32083 2005-02-09 Doug Rupp <rupp@adacore.com>
32084 Thomas Quinot <quinot@adacore.com>
32086 * adaint.c, adaint.h
32087 [VMS] (to_ptr32): New function.
32088 (MAYBE_TO_PTR32): New macro.
32089 (__gnat_portable_spawn,__gnat_portable_no_block_spawn): Adjust argv
32091 [VMS] (descriptor_s, ile_s): Use __char_ptr32 for adr field.
32092 [VMS] (#define fork()): Remove since unneccessary.
32093 (__gnat_set_close_on_exec): New routine to support
32094 GNAT.OS_Lib.Set_Close_On_Exec.
32096 * g-expect.adb (Set_Up_Communications): Mark the pipe descriptors for
32097 the parent side as close-on-exec so that they are not inherited by the
32100 * g-os_lib.ads, g-os_lib.adb (Set_Close_On_Exec): New subprogram to
32101 set or clear the FD_CLOEXEC flag on a file descriptor.
32103 2005-02-09 Eric Botcazou <ebotcazou@adacore.com>
32104 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32108 (gnat_to_gnu_field): Do not necessarily invoke make_packable_type
32109 on the field if Pragma Component_Alignment (Storage_Unit).
32110 (gnat_to_gnu_entity, case object): Do not treat a renaming that has
32111 side-effects as if it were a constant; also make SAVE_EXPR to protect
32113 (gnat_to_gnu_entity, case E_Record_Subtype): If have _Parent, make a
32115 (make_dummy_type): Set TYPE_UNCHECKED_UNION_P.
32116 (components_to_record): Test it.
32117 Fix improper usage of REFERENCE_CLASS_P.
32119 * utils2.c (build_binary_op, case MODIFY_EXPRP): Treat UNION_TYPE as
32122 * utils2.c: Minor reformatting.
32124 * utils.c (convert, case UNION_TYPE): Check TYPE_UNCHECKED_UNION;
32125 handle other cases like RECORD_TYPE.
32127 * utils.c (gnat_pushdecl): Set TREE_NO_WARNING.
32129 2005-02-09 Ed Schonberg <schonberg@adacore.com>
32131 * exp_aggr.adb (Gen_Assign): If the expression is an aggregate for a
32132 component of an array of arrays in an assignment context, and the
32133 aggregate has component associations that require sliding on
32134 assignment, force reanalysis of the aggregate to generate a temporary
32135 before the assignment.
32136 (Must_Slide): Make global to the package, for use in Gen_Assign.
32138 2005-02-09 Ed Schonberg <schonberg@adacore.com>
32140 * exp_ch4.adb (Expand_Composite_Equality): If a component is an
32141 unchecked union with no inferable discriminants, return a
32142 Raise_Program_Error node, rather than inserting it at the point the
32144 (Expand_Record_Equality, Component_Equality): Handle properly the case
32145 where some subcomponent is an unchecked union whose generated equality
32146 code raises program error.
32148 2005-02-09 Doug Rupp <rupp@adacore.com>
32150 * gnatbl.c: [VMS] (_POSIX_EXIT): Define.
32151 [VMS] (#define exit hack): Remove.
32153 2005-02-09 Pascal Obry <obry@adacore.com>
32154 Arnaud Charlet <charlet@adacore.com>
32156 * init.c (__gnat_initialize): Add a new parameter eh which contains the
32157 address of the exception registration. The Win32 version of this
32158 routine calls __gnat_install_SEH_handler() to initialize the SEH
32159 (Structured Exception Handling) handler.
32160 (__gnat_error_handler) [Win32]: Removed. Not needed as we use
32161 SEH (Structured Exception Handling) now.
32162 (__gnat_install_handler) [Win32]: Nothing to do now as we use SEH.
32163 (__gnat_initialize for ppc-vxworks): Adjust comments and the
32164 preprocessor condition protecting the call to the extra eh setup
32165 subprogram, which is only available for the ppc target.
32166 (__gnat_clear_exception_count): replaced reference to
32167 variable taskIdCurrent by call to taskIdSelf(), cleaner.
32169 * seh_init.c: New file.
32171 * Make-lang.in: (GNAT_ADA_OBJS): Add seh_init.o.
32172 (GNATBIND_OBJS): Idem.
32174 * misc.c (gnat_parse_file): Update call to __gnat_initialize. This
32175 routine takes a new parameter (a pointer to the exception registration
32176 for the SEH (Structured Exception Handling) support.
32178 * raise.h: (__gnat_install_SEH_handler): New prototype.
32179 Update copyright notice.
32181 * s-tassta.adb (Task_Wrapper): Declare the exception registration
32182 record and initialize it by calling __gnat_install_SEH_handler.
32184 2005-02-09 Vincent Celier <celier@adacore.com>
32186 * make.adb (Gnatmake): Do not fail when the main project has no object
32189 2005-02-09 Doug Rupp <rupp@adacore.com>
32191 * Makefile.in [VMS] (LN,LN_S): Define as cp -p
32192 Rename s-asthan-vms.adb to s-asthan-vms-alpha.adb.
32193 [VMS]: Add translations for g-enblsp.adb.
32195 * s-asthan-vms.adb: Removed.
32196 * s-asthan-vms-alpha.adb: Added.
32198 2005-02-09 Pascal Obry <obry@adacore.com>
32200 * Makefile.in (LIBGNAT_SRCS): Add seh_init.c.
32201 (LIBGNAT_OBJS): Add seh_init.o.
32203 2005-02-09 Arnaud Charlet <charlet@adacore.com>
32206 * Makefile.in: Link all gnat tools with -static-libgcc, since
32207 -shared-libgcc is now used by default on some systems (e.g. linux with
32209 Remove references to Makefile.prolog/generic, no longer used.
32211 2005-02-09 Vincent Celier <celier@adacore.com>
32213 * prj-makr.adb (Process_Directory): Put file name in canonical case
32214 before matching against the patterns.
32215 If gnatname has been invoked as <prefix>-gnatname
32216 then invoke the compiler as <prefix>-gcc, not just "gcc".
32218 2005-02-09 Ed Schonberg <schonberg@adacore.com>
32220 * sem_ch4.adb (Analyze_Selected_Component): Create Actual_Subtype even
32221 with expansion disabled. The actual subtype is needed among other
32222 places when the selected component appears in the context of a loop
32223 bound, and denotes a packed array.
32224 (Operator_Check): Always use the first subtype in the
32225 error message, to avoid the appearance of internal base types.
32226 (Transform_Object_Operation): Copy each actual in full
32227 to the parameter associations of the constructed call, rather than
32228 using the shallow copy mechanism of New_Copy_List. This ensures that
32229 the chaining of named associations is done properly.
32230 (Complete_Object_Operation): Rewrite node, rather than
32231 replacing it, so that we can trace back to the original selected
32234 * sem_elab.adb (Set_Elaboration_Constraint): For initialization calls,
32235 and calls that use object notation, if the called function is not
32236 declared in a withed unit, place the elaboration constraint on the
32237 unit in the context that makes the function accessible.
32238 (Check_Elab_Subtype_Declaration): Check whether a subtype declaration
32239 imposes an elaboration constraint between two packages.
32241 2005-02-09 Ed Schonberg <schonberg@adacore.com>
32243 * sem_ch7.adb (Uninstall_Declarations): Exchange full and private
32244 views of a private type after handling its private dependents, to
32245 maintain proper stack discipline between entry and exit from the
32248 2005-02-09 Cyrille Comar <comar@adacore.com>
32250 * s-finimp.adb: (Finalize_List): Optimize in the no-abort case.
32251 Minor reformatting.
32253 2005-02-09 Arnaud Charlet <charlet@adacore.com>
32255 * s-tporft.adb (Register_Foreign_Thread): Initialize Task_Image[_Len]
32256 fields for foreign threads.
32258 2005-02-09 Doug Rupp <rupp@adacore.com>
32260 * s-vaflop.adb: Add pragma Warnings (Off) to eliminate infinite
32261 recursion warnings when compiled with -gnatdm.
32263 2005-02-09 Robert Dewar <dewar@adacore.com>
32265 * usage.adb: Add line for switch -gnat05 (allow Ada 2005 extensions)
32266 Slight fix to documentation of -gnaty with no parameters
32268 * xr_tabls.ads: Add ??? comment for missing overall comment
32270 * xsinfo.adb: Make default file name be sinfo.h, since this is what
32271 we now use by default.
32273 * xsnames.adb: Adjust end of file test to look for five space followed
32274 by '#' instead of six spaces. The format of xsnames.adb was modified
32275 in the last update.
32277 * a-numeri.ads: Add reference to AI-388 for greek letter pi
32280 * clean.adb: Minor reformatting.
32282 * gnat1drv.adb, gnatfind.adb, gnatlink.adb, gnatmem.adb,
32283 gnatname.adb: Minor reformatting
32284 Add 2005 to copyright output when utility is run
32286 * csets.adb: Eliminate obsolete comment
32288 * debug.adb, g-socket.ads, i-cobol.adb: Minor reformatting throughout
32291 * sem_eval.ads (Eval_Integer_Literal): Do not inline this, not useful.
32293 2005-02-09 Sergey Rybin <rybin@adacore.com>
32295 * gnat_ugn.texi: Add to the gnatpp section the paragraph describing
32296 the difference between compact and incompact layout and add the record
32297 representation clause to the example illustrating different layouts.
32298 Add the description of '-A5' gnatpp option ("align 'AT' keywords in
32299 component clauses").
32301 2005-02-09 Florian Villoing <villoing@adacore.com>
32303 * gnat_ugn.texi: Fix typos.
32304 Use @command to display 'gcc', 'gnatbind', etc. insted of @code or
32306 Make proper use of @ref, @xref and @pxref to avoid duplication of "see"
32307 in the generated documentation.
32309 2005-02-09 Arnaud Charlet <charlet@adacore.com>
32311 * gnat_ugn.texi: Remove all mentions of FSU threads, which are no
32313 Update linker wrapper when linking with non GNU C++.
32315 2005-02-09 Pascal Obry <obry@adacore.com>
32318 Document the procedure to debug the DllMain routine on Windows.
32319 Add note about -funwind-tables and mixed Ada and C/C++ programming in
32321 Document new BIND qualifer /RETURN_CODES=VMS.
32323 2005-02-09 Ben Brosgol <brosgol@adacore.com>
32325 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
32326 Edited gnatmetric chapter
32328 2005-02-09 Robert Dewar <dewar@adacore.com>
32331 Changes to document new wide wide character support
32333 Update documentation on Normalize_Scalars and Initialize_Scalars
32335 2005-02-09 Pascal Obry <obry@adacore.com>
32337 * s-taprop-mingw.adb, s-soflin.ads: Minor reformatting.
32339 2005-02-09 Jose Ruiz <ruiz@adacore.com>
32341 * s-osinte-vxworks.ads (taskPriorityGet): Add this function (imported
32342 from the VxWorks kernel) that is needed for getting the active
32343 priority of the different tasks.
32345 * s-atacco.ads, s-atacco.adb (Nothing): Remove this dummy procedure.
32346 Use a pragma Elaborate_Body in the spec file instead.
32347 Noticed by code reading.
32349 2005-02-09 Thomas Quinot <quinot@adacore.com>
32351 * exp_util.ads: Minor correction in comment.
32353 2005-02-09 Arnaud Charlet <charlet@adacore.com>
32355 * s-taprop.ads (Initialize): Update comments. Remove pragma Inline,
32356 since this procedure is now too complex to be worth inlining.
32358 2005-02-09 Richard Henderson <rth@redhat.com>
32360 * utils.c (gnat_define_builtin): Remove.
32361 (gnat_install_builtins): Use build_common_builtin_nodes.
32363 2005-02-09 Arnaud Charlet <charlet@adacore.com>
32365 * a-rbtgso.adb, a-crbtgo.ads, a-crbtgo.adb, a-crbtgk.ads,
32366 a-crbtgk.adb, a-crbltr.ads, a-coprnu.ads, a-coprnu.adb,
32367 a-coorse.ads, a-coorse.adb, a-convec.ads, a-convec.adb,
32368 a-contai.ads, a-coinve.ads, a-coinve.adb, a-cohata.ads,
32369 a-cohama.ads, a-cohama.adb, a-ciorse.ads, a-ciorse.adb,
32370 a-cihama.ads, a-cihama.adb, a-cidlli.ads, a-cidlli.adb,
32371 a-chtgop.ads, a-chtgop.adb, a-cgcaso.ads, a-cgcaso.adb,
32372 a-cgarso.ads, a-cgarso.adb, a-cdlili.ads, a-cdlili.adb,
32373 a-cgaaso.adb, a-coormu.adb, a-ciormu.adb, a-cihase.adb,
32374 a-cihase.ads, a-cohase.adb, a-cohase.ads, a-ciorma.ads,
32375 a-coorma.ads, a-swunha.ads, a-stunha.ads, a-ciormu.ads,
32376 a-coormu.ads, a-rbtgso.ads, a-swunha.adb, a-stunha.adb,
32377 a-cgaaso.ads, a-ciorma.adb, a-coorma.adb, a-secain.adb,
32378 a-secain.ads, a-slcain.ads, a-slcain.adb, a-shcain.ads,
32379 a-shcain.adb, a-chtgke.ads, a-chtgke.adb, a-stwiha.ads,
32380 a-stwiha.adb, a-strhas.ads, a-strhas.adb, a-chzla1.ads,
32381 a-chzla9.ads, a-lfztio.ads, a-liztio.ads, a-llfzti.ads,
32382 a-llizti.ads, a-sfztio.ads, a-siztio.ads, a-ssizti.ads,
32383 a-stzbou.adb, a-stzbou.ads, a-stzfix.adb, a-stzfix.ads,
32384 a-stzhas.adb, a-stzhas.ads, a-stzmap.adb, a-stzmap.ads,
32385 a-stzsea.adb, a-stzsea.ads, a-stzsup.adb, a-stzsup.ads,
32386 a-stzunb.adb, a-stzunb.ads, a-swunau.adb, a-swunau.ads,
32387 a-szmzco.ads, a-szunau.adb, a-szunau.ads, a-szunha.adb,
32388 a-szunha.ads, a-szuzti.adb, a-szuzti.ads, a-tiunio.ads,
32389 a-wwunio.ads, a-ztcoau.adb, a-ztcoau.ads, a-ztcoio.adb,
32390 a-ztcoio.ads, a-ztcstr.adb, a-ztcstr.ads, a-ztdeau.adb,
32391 a-ztdeau.ads, a-ztdeio.adb, a-ztdeio.ads, a-ztedit.adb,
32392 a-ztedit.ads, a-ztenau.adb, a-ztenau.ads, a-ztenio.adb,
32393 a-ztenio.ads, a-ztexio.adb, a-ztexio.ads, a-ztfiio.adb,
32394 a-ztfiio.ads, a-ztflau.adb, a-ztflau.ads, a-ztflio.adb,
32395 a-ztflio.ads, a-ztgeau.adb, a-ztgeau.ads, a-ztinau.adb,
32396 a-ztinau.ads, a-ztinio.adb, a-ztinio.ads, a-ztmoau.adb,
32397 a-ztmoau.ads, a-ztmoio.adb, a-ztmoio.ads, a-zttest.adb,
32398 a-zttest.ads, a-zzunio.ads: New files. Part of new Ada 2005
32401 2005-01-27 Laurent Guerby <laurent@guerby.net>
32403 * Makefile.in: Fix a-intnam.ads from previous commit,
32404 add 2005 to copyright.
32405 * a-intman-rtems.ads: Renamed to...
32406 * a-intnam-rtems.ads:
32408 2005-01-27 Laurent Guerby <laurent@guerby.net>
32410 * Makefile.in: Rename GNAT RTEMS specific files.
32411 * 5rtpopsp.adb, 4rintnam.ads, 5rosinte.adb,
32412 5rosinte.ads, 5rparame.adb: Replaced by files below.
32413 * s-tpopsp-rtems.adb, a-intman-rtems.ads, s-osinte-rtems.adb,
32414 s-osinte-rtems.ads, s-parame-rtems.adb: Replace files above.
32416 2005-01-27 Joel Sherrill <joel.sherrill@oarcorp.com>
32417 Laurent Guerby <laurent@guerby.net>
32420 * 5rosinte.ads: Add No_Key constant.
32421 * 5rtpopsp.adb: Initialize ATCB_Key with No_Key and fix style.
32422 * gsocket.h: Do not include <sys/socket.h> with RTEMS either.
32424 2005-01-26 Laurent Guerby <laurent@guerby.net>
32427 * i-cobol.adb (Valid_Numeric): Handle zero length case.
32429 2005-01-20 Richard Henderson <rth@redhat.com>
32431 * Makefile.in (alpha-linux, LIBGNAT_TARGET_PAIRS): Use
32432 a-intnam-linux.ads and system-linux-alpha.ads.
32433 * a-intnam-linux-alpha.ads: Remove file.
32434 * s-osinte-linux-alpha.ads (SIGUNUSED, SIGSTKFLT, SIGLOST): New.
32435 * system-linux-alpha.ads: New file.
32437 2005-01-18 Jakub Jelinek <jakub@redhat.com>
32440 * a-stunau.adb (Get_String): Don't return U.Reference, but Ret that is
32441 set to the new string.
32443 2005-01-18 Toon Moene <toon@moene.indiv.nluug.nl>
32445 * system-linux-ppc.ads: Set ZCX_By_Default and GCC_ZCX_Support
32448 2005-01-18 Richard Henderson <rth@redhat.com>
32450 * Makefile.in (LIBGNAT_TARGET_PAIRS, TOOLS_TARGET_PAIRS, MISCLIB,
32451 THREADSLIB, GNATLIB_SHARED, PREFIX_OBJS, LIBRARY_VERSION): Specialize
32453 * s-osinte-linux-alpha.ads, a-intnam-linux-alpha.ads: New files.
32455 2005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
32457 * system-darwin-ppc.ads (ZCX_By_Default): Change to True.
32458 (GCC_ZCX_Support): Likewise.
32460 2005-01-11 Bastian Blank <waldi@debian.org>
32462 * system-linux-s390.ads: Define Preallocated_Stacks.
32463 * system-linux-s390x.ads: Likewise.
32465 2005-01-04 Arnaud Charlet <charlet@adacore.com>
32467 * gnat_ugn.texi: Fix texi errors with null variables.
32469 2005-01-03 Thomas Quinot <quinot@adacore.com>
32471 * gen-soccon.c: New utility program to generate g-soccon.ads
32474 * socket.c, gsocket.h: Split inclusion of system header files into a
32475 gsocket.h file separated from socket.c, to allow reuse in gen-soccon.c.
32477 * g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads,
32478 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
32479 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-mingw.ads,
32480 g-soccon-vxworks.ads, g-soccon-freebsd.ads: Note that these files
32481 should not be edited by hand anymore, but should be regenerated using
32484 2005-01-03 Robert Dewar <dewar@adacore.com>
32485 Ed Schonberg <schonberg@adacore.com>
32486 Vincent Celier <celier@adacore.com>
32488 * s-atacco.ads, a-direio.adb: Protect use of 'Constrained by warnings
32489 on/off, since this is an obsolescent feature, for which we now generate
32492 * sem_attr.adb (Analyze_Attribute, case Constrained): Issue warning if
32493 warning mode is set and obsolescent usage of this attribute occurs.
32494 (Resolve_Access, case 'Access): Note that GNAT uses the context type to
32495 disambiguate overloaded prefixes, in accordance with AI-235. GNAT code
32496 predates, and partly motivates, the adoption of the AI.
32497 Implement new Ada 2005 attribute Mod
32499 * exp_attr.adb (Expand_N_Attribute_Reference): Implement Ada 2005
32502 * par-ch4.adb (P_Name): In Ada 2005 mode, recognize new attribute Mod
32504 * snames.h, snames.ads, snames.adb: Add entry for No_Dependence for
32505 pragma restrictions.
32506 New entry for Ada 2005 attribute Mod.
32509 Add recognition of new pragma Restrictions No_Dependence
32510 Recognize restriction No_Obsolescent_Features at parse time
32512 * bcheck.adb: Add circuitry for checking for consistency of
32513 No_Dependence restrictions.
32515 * lib-writ.ads, lib-writ.adb: Output new R lines for No_Dependence
32518 * restrict.ads, restrict.adb: Add subprograms to deal with
32519 No_Dependence restrictions.
32521 * rtsfind.adb: Check that implicit with's do not violate No_Dependence
32524 * sem_ch3.adb, sem_ch11.adb, sem_ch13.adb, lib-xref.adb,
32525 sem_attr.adb: Add check for new restriction No_Obsolescent_Features
32527 * scn.ads, prj-err.ads, prj-err.adb, ali-util.adb, gprep.adb: Add new
32528 dummy parameter to scng instantiation.
32529 Needed for new restriction No_Obsolescent_Features
32531 * scn.adb: (Obsolescent_Check): New procedure
32532 Needed for new restriction No_Obsolescent_Features
32534 * scng.ads, scng.adb: Always allow wide characters in Ada 2005 mode, as
32535 specified by AI-285, needed for implementation of AI-388 (adding greek
32536 pi to Ada.Numerics).
32537 Add new generic formal to scng, needed for new restriction
32538 No_Obsolescent_Features.
32540 * s-rident.ads: Add new restriction No_Obsolescent_Features.
32542 * ali.ads, ali.adb: Adjustments for reading new No_Dependence
32543 restrictions lines.
32544 (Scan_ALI): When finding an unexpected character on an R line, raise
32545 exception Bad_R_Line, instead of calling Fatal_Error, so that, when
32546 Ignore_Errors is True, default restrictions are set and scanning of the
32547 ALI file continues with the next line. Also, when Bad_R_Line is raised
32548 and Ignore_Errors is True, skip to the end of le line.
32550 * sem_ch10.adb: Check that explicit with's do not violate
32551 No_Dependence restrictions.
32552 (Install_Withed_Unit): Add code to implement AI-377 and diagnose
32553 illegal context clauses containing child units of instance.
32555 * sem_prag.adb: Processing and checking for new No_Dependence
32557 (Analyze_Pragma, case Psect_Object): Call Check_Arg_Is_External_Name to
32558 analyze and check the External argument.
32560 * a-numeri.ads: Add greek letter pi as alternative spelling of Pi
32562 2005-01-03 Robert Dewar <dewar@adacore.com>
32564 * atree.adb: Add a fifth component to entities
32565 This allows us to add 32 flags and four new fields
32567 * atree.ads: Add a fifth component to entities
32568 This allows us to add 32 flags and four new fields
32570 * einfo.ads, einfo.adb: Document new fields and new flags now available
32571 Add routines for printing new fields
32573 * treepr.adb: Call routines to print out additional fields if present
32575 2005-01-03 Arnaud Charlet <charlet@adacore.com>
32577 * bld.ads, bld.adb, bld-io.ads, bld-io.adb, gprcmd.adb,
32578 gpr2make.ads, gpr2make.adb: Remove gpr2make, replaced by gprmake.
32580 * Makefile.in: Add support to build shared Ada libraries on solaris x86
32581 Remove gpr2make, replaced by gprmake.
32582 Remove references to gnatmem and libaddr2line.
32583 Add indepsw.adb<indepsw-linux.adb to TOOLS_TARGET_PAIRS for IA64 linux.
32584 (gnatlib-shared-darwin): Add "-fno-common" to GNATLIBCFLAGS.
32585 Add support for specialized version of Ada.Numerics.Aux for Darwin: use
32586 a-numaux-darwin.ads and a-numaux-darwin.adb
32587 Enable mlib-tgt-lynxos.adb on lynxos.
32589 * Make-lang.in: Remove rules for gpr2make.
32590 When generating sdefault.adb, do not call Relocate_Path
32591 on S3 for function Target_Name, as it is not a path.
32592 Remove references to gnatmem and libaddr2line.
32594 * a-numaux-darwin.ads, a-numaux-darwin.adb, g-soccon-darwin.ads: New
32597 2005-01-03 Samuel Tardieu <tardieu@adacore.com>
32599 * checks.adb (Apply_Alignment_Check): Generate a warning if an object
32600 address is incompatible with its base type alignment constraints when
32601 this can be decided statically.
32603 2005-01-03 Olivier Hainque <hainque@adacore.com>
32605 * decl.c (compatible_signatures_p): New function. The intended purpose
32606 is to check if two function signatures for a call-site and a callee are
32607 compatible enough for the call to be valid. The underlying purpose is
32608 to check if a call to a mapped builtin is using the right interface.
32609 The current code actually does not check antyhing - this a placeholder
32610 for future refinements.
32611 (gnat_to_gnu_entity) <E_Subprogram_Call>: Add preliminary bits to handle
32612 builtin calls for convention Intrinsic.
32614 * gigi.h (builtin_decl_for): Declare (new function).
32616 * utils.c (gnat_install_builtins): Install the target specific builtins.
32617 (builtin_decl_for): New function, provide a dummy body for now.
32619 2005-01-03 Geert Bosch <bosch@adacore.com>
32621 * eval_fat.adb: (Eps_Model,Eps_Denorm): Remove, no longer used.
32622 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
32623 (Pred): Implement in terms of Succ.
32625 * trans.c (convert_with_check): Reimplement conversion of float to
32628 2005-01-03 Ed Schonberg <schonberg@adacore.com>
32629 Vincent Celier <celier@adacore.com>
32631 * exp_aggr.adb (Packed_Array_Aggregate_Handled): The values of the
32632 bounds can be negative, and must be declared Int, not Nat.
32634 * sem_elim.adb (Line_Num_Match): Correct wrong code when index in an
32635 array is checked after using the index in the array.
32637 * makegpr.adb (Add_Switches): Check if there is a package for the
32638 processor. If there is no package, do not look for switches.
32640 2005-01-03 Ed Schonberg <schonberg@adacore.com>
32642 * exp_ch3.adb (Stream_Operations_OK): Predicate to determine when the
32643 generation of predefined stream operations (specs and bodies) should
32644 proceed. Under various restrictions these subprograms must not be
32647 2005-01-03 Thomas Quinot <quinot@adacore.com>
32650 Declare subprogram index in Build_RPC_Receiver_Body, to reduce the
32651 amount of PCS-specific code in RACW stubs generation.
32652 (Copy_Specification): Set Etype on copied formal parameter entities, as
32653 this information is needed for PolyORB stubs generation.
32654 (PolyORB_Support.Build_Subprogram_Receiving_Stubs): Remove unused
32655 variable Dynamic_Async.
32656 (Build_Subprogram_Receiving_Stubs): Make PCS-specific
32657 (Build_RPC_Receiver_Specification): Make generic again, as recent
32658 changes have allowed RPC receivers to have the same profile for both
32659 variants of the PCS.
32660 Reorganise RPC receiver generation to reduce differences between the
32661 structure of GARLIC and PolyORB RPC receivers.
32662 (Add_Receiving_Stubs_To_Declarations): Make this subprogram
32664 Simplify elaboration code for RCI packages.
32666 * s-parint.ads, s-parint.adb, rtsfind.ads: Reorganise RPC receiver
32667 generation to reduce differences between the structure of GARLIC and
32668 PolyORB RPC receivers.
32670 * s-stratt.adb: Fix typo in comment.
32672 2005-01-03 Thomas Quinot <quinot@adacore.com>
32674 * exp_ch7.ads (Make_Final_Call): Rewrite comment (was incorrectly
32675 copied from Make_Init_Call).
32677 * exp_strm.adb (Build_Mutable_Record_Read_Procedure): Do component
32678 reads and assignments on a temporary variable declared with appropriate
32681 2005-01-03 Robert Dewar <dewar@adacore.com>
32683 * i-c.adb (To_C): Raise CE if string is null and Append_Null
32685 2005-01-03 Robert Dewar <dewar@adacore.com>
32687 * i-cstrin.adb (Update): Do not append a null in form called with a
32688 String. This avoids unintended behavior.
32690 2005-01-03 Arnaud Charlet <charlet@adacore.com>
32693 * init.c: Fix warnings on Free BSD section.
32695 2005-01-03 Arnaud Charlet <charlet@adacore.com>
32698 * sinfo.ads: Fix obsolete reference to xsinfo.spt (replaced by
32701 2005-01-03 Vincent Celier <celier@adacore.com>
32703 * make.adb (Collect_Arguments_And_Compile): Do not attempt to build
32704 libraries when Unique_Compile is True (-u switch).
32707 2005-01-03 Robert Dewar <dewar@adacore.com>
32709 * namet.adb (Get_Decoded_Name_With_Brackets): Fix case of not allowing
32710 upper case letter or underscore after W, as allowed by spec.
32712 2005-01-03 Arnaud Charlet <charlet@adacore.com>
32714 * s-osinte-darwin.ads, s-osinte-darwin.adb: Clean up
32715 darwin port by using proper type definitions from header files.
32716 Use SIGTERM instead of SIGABRT for SIGADAABORT.
32718 2005-01-03 Robert Dewar <dewar@adacore.com>
32720 * par.adb: Enhance error message handling for configuration file
32723 2005-01-03 Robert Dewar <dewar@adacore.com>
32725 * s-arit64.adb (Double_Divide): Put back changes that got accidentally
32726 removed during the previous update (test properly for case of dividing
32727 largest negative number by -1, which generates overflow).
32729 2005-01-03 Ed Schonberg <schonberg@adacore.com>
32730 Sergey Rybin <rybin@adacore.com>
32732 * sem_ch12.adb (Analyze_Package_Instantiation): Create a separate node
32733 to use as the defining identifier for a formal package.
32734 (Remove_Parent): If the instance takes place within (an instance of)
32735 a sibling, preserve private declarations of common parent.
32737 2005-01-03 Ed Schonberg <schonberg@adacore.com>
32739 * sem_ch4.adb (Has_Fixed_Op): New predicate in Check_Arithmetic_Pair,
32740 to determine whether one of the operands is a fixed-point type for
32741 which a user-defined multiplication or division operation might be
32744 * sem_res.adb (Valid_Conversion): The legality rules for conversions
32745 of access types are symmetric in Ada 2005: either designated type can
32748 2005-01-03 Vincent Celier <celier@adacore.com>
32750 * s-fileio.adb (Temp_File_Record): Change length of string component
32751 Name from L_tmpnam + 1 to max_path_len + 1.
32753 2005-01-03 Arnaud Charlet <charlet@adacore.com>
32755 * s-tasini.ads, s-tasini.adb (Undefer_Abortion): Handle case of
32756 Self_Id.Deferral_Level = 0.
32757 (Do_Pending_Action): Move this function to the spec.
32759 * s-tasren.adb (Selective_Wait [Terminate_Selected]): Call
32760 Do_Pending_Action explicitely when needed, in case we're using
32761 No_Abort restrictions.
32763 * s-tassta.adb (Create_Task): If Abort is not allowed, reset the
32764 deferral level since it will not get changed by the generated code.
32765 Keeping a default value of 1 would prevent some operations (e.g.
32766 select or delay) to proceed successfully.
32768 2005-01-03 Ben Brosgol <brosgol@adacore.com>
32769 Robert Dewar <dewar@adacore.com>
32770 Cyrille Comar <comar@adacore.com>
32772 * ug_words, gnat_ugn.texi: Added alpha-ivms transitioning section to
32773 porting guide chapter (vms version).
32774 Revised doc title (removed "for native platforms") and subtitle.
32775 Add discussion on warning flag for obsolescent features. First we
32776 note that it applies to obsolete GNAT features, which was previously
32777 omitted. Second we contrast the behavior with that of the new
32778 Ada 2005 AI-368 restriction No_Obsolescent_Features.
32779 Preliminary rewriting of GNAT & libraries chapter in order to take
32780 into account default project locations & new project manager
32783 2005-01-03 Robert Dewar <dewar@adacore.com>
32785 * cstand.adb (Create_Operators): Clean up format and documentation of
32786 unary and binary operator result tables. No change in code, just
32787 reformatting and addition of comments.
32789 * errout.ads, gnatfind.adb, s-maccod.ads, sem.adb,
32790 sem_ch2.adb: Minor reformatting
32792 * atree.ads, elists.ads, lib.ads, namet.ads, nlists.ads, repinfo.ads,
32793 sinput.ads, stringt.ads, uintp.ads, urealp.ads: Minor clarification to
32794 comments for Tree_Read and Tree_Write.
32796 2005-01-03 Pascal Obry <obry@adacore.com>
32798 * exp_attr.ads: Minor reformatting.
32800 2005-01-03 Romain Berrendonner <berrendo@adacore.com>
32802 * comperr.adb (Compiler_Abort): Add specialized message for GAP
32805 2005-01-03 Ed Schonberg <schonberg@adacore.com>
32807 * exp_pakd.adb (Create_Packed_Array_Type): Add a guard to check
32808 whether the ancestor type is private, as may be the case with nested
32811 2004-12-30 Sohail Somani <sohail@sohailsomani.com>
32814 * trans.c (gnat_to_gnu): Fix typo: Use correct return variable.
32816 2004-12-23 Eric Botcazou <ebotcazou@libertysurf.fr>
32818 * trans.c (Attribute_to_gnu): Adjust call to get_inner_reference.
32819 * utils2.c (build_unary_op): Likewise.
32821 2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32823 * trans.c (mark_visited): Set TYPE_SIZES_GIMPLIFIED.
32825 2004-12-19 Richard Henderson <rth@redhat.com>
32827 * trans.c (gigi): Update gimplify_body call.
32829 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
32831 * decl.c (gnat_substitute_in_type): Remove SET_TYPE case.
32833 2004-12-07 Ed Falis <falis@adacore.com>
32835 * s-intman-vxworks.adb (Notify_Exception): removed useless check for
32836 current task being suspended.
32838 * init.c (__gnat_clear_exception): added to reset VxWorks exception
32840 (__gnat_map_signal): removed test for current task being suspended.
32842 2004-12-07 Gary Dismukes <dismukes@adacore.com>
32844 * a-exexpr.adb (Others_Value, All_Others_Value): Change initial values
32845 from 16#BEEF# to 16#7FFF# to avoid exceeding Integer'Last on 16-bit
32846 targets (such as AAMP).
32848 2004-12-07 Ed Schonberg <schonberg@adacore.com>
32850 * atree.adb (Visit_Itype): Create a new name for the generated itype,
32851 because the back-end may otherwise treat it as a redefinition of the
32854 2004-12-07 Eric Botcazou <ebotcazou@adacore.com>
32856 * back_end.adb (Scan_Back_End_Switches): Accept --param.
32858 * lang-specs.h: Accept --param.
32860 2004-12-07 Vincent Celier <celier@adacore.com>
32862 * make.adb (Check_Mains, Switches_Of): Adapt to name changes in
32863 package Prj (Current_Spec_Suffix => Ada_Spec_Suffix,
32864 Current_Body_Suffix => Ada_Body_Suffix).
32865 Take into account Externally_Built attribute.
32867 * clean.adb (In_Extension_Chain): Always return False when one of the
32868 parameter is No_Project.
32869 (Clean_Project): Adapt to changes in package Prj (Lang_Ada =>
32870 Ada_Language_Index).
32871 (Gnatclean): Adapt to change in package Prj.Pars (no parameter
32872 Process_Languages for procedure Parse).
32874 * gnatcmd.adb (Carg_Switches): New table.
32875 (GNATCmd): Put all switches following -cargs in the Carg_Switches table.
32876 Adapt to name changes in package Prj (Current_Spec_Suffix =>
32877 Ada_Spec_Suffix, Current_Body_Suffix => Ada_Body_Suffix).
32879 * mlib-prj.adb: Adapt to changes in packages Prj and Prj.Com: type
32880 Header_Num and function Hash are now declared in package Prj,
32883 * prj.adb (Suffix_Of): New function.
32884 (Set (Suffix)): New procedure.
32885 (Hash): One function moved from Prj.Com
32886 (Is_Present, Language_Processing_Data_Of): New functions
32887 (Set): Two new procedures
32888 (Add_Language_Name, Display_Language_Name): New procedures
32890 * prj.ads: (Suffix_Of): New function
32891 (Set (Suffix)): New procedure
32892 Add several types and tables for multi-language support.
32893 (Header_Num): Type moved from Prj.Com
32894 (Hash): Two functions moved from Prj.Com
32895 (Is_Present, Language_Processing_Data_Of): New functions
32896 (Set): Two new procedures
32897 (Add_Language_Name, Display_Language_Name): New procedures
32898 (Naming): Component name changes:
32899 Current_Spec_Suffix => Ada_Spec_Suffix,
32900 Current_Body_Suffix => Ada_Body_Suffix. Add new components:
32901 Impl_Suffixes, Supp_Suffixes.
32902 (Project_Data): New components: Externally_Built, Supp_Languages,
32903 First_Language_Processing, Supp_Language_Processing, Default_Linker,
32904 Default_Linker_Path.
32906 * prj-attr.adb: Add new attributes Ada_Roots and Externally_Built and
32907 new package Language_Processing with its attributes (Compiler_Driver,
32908 Compiler_Kind, Dependency_Option, Compute_Dependency, Include_Option,
32909 Binder_Driver, Default_Linker).
32911 * prj-com.ads, prj-com.adb (Hash): Function moved to package Prj.
32912 (Header_Num): Type moved to package Prj
32914 * prj-env.adb: Adapt to name changes in package Prj
32915 (Current_Spec_Suffix => Ada_Spec_Suffix,
32916 Current_Body_Suffix => Ada_Body_Suffix).
32918 * prj-ext.adb: Add the default project dir (<prefix>/log/gnat) by
32919 default to the project path, except the "-" is one of the directories
32920 in env var ADA_PROJECT_PATH.
32921 (Current_Project_Path): Global variable, replacing Project_Path
32922 that was in the body of Prj.Part.
32923 (Project_Path): New function
32924 (Set_Project_Path): New procedure
32925 Initialize Current_Project_Path during elaboration of the package
32926 Remove dependency on Prj.Com, no longer needed
32928 * prj-ext.ads (Project_Path): New function
32929 (Set_Project_Path): New procedure
32931 * prj-nmsc.adb (Body_Suffix_Of): New function. Returns .<lang> when no
32932 suffix is defined for language <lang>.
32933 (Find_Sources, Record_Other_Sources): Use Body_Suffix_Of, instead of
32934 accessing directly the components of Naming.
32935 (Look_For_Sources): Use Set (Suffix) to set the suffix of a language.
32936 Reorganise of this package.
32937 Break procedure Check in several procedures.
32939 * prj-nmsc.ads: Replace all procedures (Ada_Check,
32940 Other_Languages_Check and Language_Independent_Check) with a single
32943 * prj-pars.ads, prj-pars.adb (Parse): Remove parameter
32944 Process_Languages, no longer needed.
32946 * prj-part.adb (Project_Path): Move to the body of Prj.Ext as
32947 Current_Project_Path.
32948 Remove elaboration code, moved to the body of Prj.Ext
32949 Use new function Prj.Ext.Project_Path instead of old variable
32951 (Post_Parse_Context_Clause): Get Resolved_Path as a case-sensitive path.
32952 When comparing with project paths on the stack, first put the resolved
32953 path in canonical case.
32954 (Parse_Single_Project): Set the path name of the project file in the
32955 tree to the normalized path.
32957 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): Remove
32958 parameter Process_Languages, no longer needed.
32959 (Recursive_Check): Call Prj.Nmsc.Check, instead of Ada_Check and
32960 Other_Languages_Check.
32962 * prj-tree.ads (Project_Name_And_Node): New component Canonical_Path
32963 to store the resolved canonical path of the project file.
32964 Remove dependency to Prj.Com, no longer needed
32966 * prj-util.adb: Adapt to name changes in package Prj
32967 (Current_Spec_Suffix => Ada_Spec_Suffix, Current_Body_Suffix =>
32970 * snames.ads, snames.adb: New standard names: Ada_Roots, Binder_Driver,
32971 Compiler_Driver, Compiler_Kind, Compute_Dependency, Default_Linker,
32972 Externally_Built, Include_Option, Language_Processing.
32974 * makegpr.adb: Numerous changes due to changes in packages
32977 * gnatls.adb: Add the default project dir (<prefix>/log/gnat) by
32978 default to the project path, except whe "-" is one of the directories
32979 in env var ADA_PROJECT_PATH.
32980 (Gnatls): In verbose mode, add the new section "Project Search Path:"
32982 2004-12-07 Robert Dewar <dewar@adacore.com>
32984 * debug.adb: Document that -gnatdA automatically sets -gnatR3m
32986 * gnat1drv.adb (Gnat1drv): If debug flag A set, then automatically
32989 * repinfo.adb (List_Rep_Info): Remove special handling of -gnatdA
32990 flag. No longer needed now that we handle this in gnat1drv.adb.
32992 * repinfo.ads: Minor reformatting
32994 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
32995 Olivier Hainque <hainque@adacore.com>
32996 Eric Botcazou <ebotcazou@adacore.com>
32998 * decl.c (maybe_pad_type): Use TYPE_SIZE_UNIT of the input type for
32999 TYPE_SIZE_UNIT of result type if SIZE is not specified.
33000 (make_aligning_type): Pass -1 as ADDRESSABLE to prevent the creation
33001 of a bitfield, which we know is useless and causes trouble because of
33002 alignment implications.
33004 * utils.c (create_var_decl): Set DECL_COMMON again on targets without
33006 (process_attributes): Clear DECL_COMMON again when a section attribute
33008 (finish_record_type): Independently track if RECORD_TYPE has SIZE and/or
33009 SIZE_UNIT already set and use to compute final SIZE and SIZE_UNIT.
33010 (create_field_decl): Special case ADDRESSABLE negative to mean
33011 "no bitfield creation", to be used by make_aligning_type. Don't
33012 restrict bitfield creation to !ADDRESSABLE any more, as some BLKmode
33013 fields claimed addressable still have to be bitfields. Use
33014 value_factor_p instead of a raw binop construction to check for the
33015 position's alignment.
33017 2004-12-07 Geert Bosch <bosch@adacore.com>
33019 * eval_fat.adb: Revert previous change.
33021 2004-12-07 Thomas Quinot <quinot@adacore.com>
33022 Ed Schonberg <schonberg@adacore.com>
33024 * exp_ch4.adb (Expand_N_Indexed_Component): For an indexed component
33025 with an implicit dereference as its prefix, use
33026 Insert_Explicit_Dereference instead of merely rewriting the prefix into
33027 an explicit dereference. This ensures that a reference to the original
33028 prefix is generated, if appropriate.
33030 * sem_util.adb (Insert_Explicit_Dereference): When an implicit
33031 dereference is rewritten to an explicit one, generate a reference to
33032 the entity denoted by its prefix using the original prefix node, so
33033 the dereference can be properly recorded as a read of the denoted
33034 access value, if appropriate.
33036 * sem_warn.adb (Output_Unreferenced_Messages): Do not abstain from
33037 emitting 'assigned but never read' warning on a variable on the basis
33038 that it has an access type.
33039 (Check_References): Emit unreferenced warning when the scope is a
33042 2004-12-07 Robert Dewar <dewar@adacore.com>
33043 Ed Schonberg <schonberg@adacore.com>
33045 * exp_ch6.adb (Expand_Call): Add comment on handling of back end
33048 * exp_intr.adb (Expand_Intrinsic_Call): Ignore unrecognized intrinsic,
33049 leaving call unchanged.
33050 This deals with the case where the pragma Import specified
33051 an external name, to be handled by the back end.
33053 * sem_prag.adb (Process_Import_Or_Interface): Do not check validity of
33054 subprogram which is Imported with convention Intrinsic if an
33055 External_Name argument is specified.
33056 (Process_Import_Or_Interface): Properly diagnose link name argument.
33057 (Inlining_Not_Possible): New name for Cannot_Inline, to avoid confusion
33058 with Sem_Ch6.Cannot_Inline.
33059 (Process_Inline): Provide separate warning for inapplicable inline
33061 (Cannot_Inline): Reject subprograms that have an at_end handler, so that
33062 treatment is uniform on different targets.
33064 2004-12-07 Ed Schonberg <schonberg@adacore.com>
33066 * exp_ch7.adb (Expand_Cleanup_Actions): If statement sequence of
33067 construct is rewritten, preserve end label to permit source navigation.
33069 2004-12-07 Thomas Quinot <quinot@adacore.com>
33071 * exp_dist.adb (Specific_Build_General_Calling_Stubs,
33072 Specific_Build_Stub_Target): New subprograms.
33073 (Build_Subprogram_Calling_Stubs): Make this procedure independent from
33074 the PCS implementation used, using the above PCS-customized subprograms.
33075 Minor reformatting.
33076 (PolyORB_Support.Helpers): New subunit containing supporting subprograms
33077 for generation of DSA code targeted to the PolyORB PCS.
33078 (Add_Stub_Type): Rewrite to isolate the parts that are specific to one
33079 implementation of the partition communication subsystem in ancillary
33081 (Specific_Build_Stub_Type, GARLIC_Support.Build_Stub_Type,
33082 PolyORB_Support.Build_Stub_Type): New subrograms containing the
33083 PCS-specific part of Add_Stub_Type.
33084 (Insert_Partition_Check): Use runtime library function to perform
33087 * rtsfind.ads: New entity System.PolyORB_Interface.Make_Ref
33088 (RE_Same_Partition): New entity, from s-parint.
33090 * s-parint.ads, s-parint.adb (Same_Partition): New subprogram.
33092 2004-12-07 Gary Dismukes <dismukes@adacore.com>
33094 * gnatmem.adb, gnatname.adb, gnatsym.adb, gprcmd.adb, vms_conv.adb:
33095 Output the copyright message on a separate line from the version
33098 2004-12-07 Joel Brobecker <brobecker@adacore.com>
33100 * g-os_lib.adb (Spawn): Explicitly initialize Saved_Error to avoid a
33101 compile-time warning.
33103 2004-12-07 Robert Dewar <dewar@adacore.com>
33105 * g-regpat.adb: (Match): Change a misuse of or to or else
33107 2004-12-07 Ed Schonberg <schonberg@adacore.com>
33110 (Generate_Reference): Handle properly a reference to an entry formal,
33111 when an accept statement has a pragma Unreferenced for it.
33113 * sem_ch9.adb (Analyze_Accept_Statement): Reset the Is_Referenced flag
33114 and the Has_Pragma_Unreferenced flag for each formal before analyzing
33115 the body, to ensure that warnings are properly emitted for each accept
33116 statement of a given task entry.
33118 2004-12-07 Vasiliy Fofanov <fofanov@adacore.com>
33120 * Makefile.in: Add support for foreign threads on VMS.
33122 2004-12-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
33124 * misc.c (gnat_types_compatible_p, LANG_HOOKS_TYPES_COMPATIBLE_P):
33126 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): New.
33128 * adaint.h: (__gnat_dup, __gnat_dup2): Add missing decls.
33130 * trans.c (Exception_Handler_to_gnu_sjlj): Also handle renamed
33132 (call_to_gnu): Convert to actual DECL_ARG_TYPE, not variant of it.
33134 2004-12-07 Robert Dewar <dewar@adacore.com>
33136 * nlists.adb (Prepend_Debug): Remove parameters and nest within
33138 (Remove_Next_Debug): Same fix
33140 * nlists.ads: Correct bad comments for Prev and Prev_Non_Pragma (we do
33141 maintain back pointers now, though we did not used to, and comments
33143 (Prepend): Remove pragma Inline.
33144 (Remove_Next): Same cleanup
33146 2004-12-07 Thomas Quinot <quinot@adacore.com>
33148 * sem_ch4.adb (Process_Implicit_Dereference_Prefix): New subprogram
33149 used to record an implicit dereference as a read operation on its
33150 prefix when operating under -gnatc. Necessary to avoid spurious
33151 'variable assigned but never read' warnings in that mode.
33152 (Process_Indexed_Component, Analyze_Selected_Component): When the prefix
33153 is a non-overloaded implicit dereference, call the above subprogram to
33154 ensure proper recording of references.
33156 2004-12-07 Gary Dismukes <dismukes@adacore.com>
33158 * sem_ch5.adb (One_Bound): Remove call to Resolve, as the bound needs
33159 to be resolved later as part of Analyze_Iteration_Scheme's call to
33162 2004-12-07 Ed Schonberg <schonberg@adacore.com>
33164 * sem_ch8.adb (Find_Type): If node is a reference to 'Base and the
33165 prefix is not a scalar type, place error message on prefix, not on
33168 2004-12-07 Bernard Banner <banner@adacore.com>
33170 * vxaddr2line.adb: Add support for x86 vxworks
33172 2004-12-07 Thomas Quinot <quinot@adacore.com>
33174 * g-socket.ads (Get_Host_By_Address, Get_Host_By_Name): Clarify
33175 documentation of the behaviour of these functions when passed an IP
33176 address that has no record in the system hosts database and no reverse
33179 * cstand.adb, a-tags.ads: Fix typos in comment.
33181 2004-12-07 Robert Dewar <dewar@adacore.com>
33183 * exp_ch2.adb, exp_ch3.adb, exp_ch5.adb, exp_ch8.adb,
33184 exp_ch9.adb, exp_pakd.adb, interfac.ads, sem_ch6.adb,
33185 sem_ch7.adb, sem_ch10.adb, sem_ch13.adb, sem_ch3.adb,
33186 s-poosiz.ads: Minor reformatting
33188 * make.adb: Minor reformatting
33189 Add some ??? comments asking for more comments
33191 * s-poosiz.adb: Minor reformatting
33192 Add comments on alignment requirement
33194 * sinfo.ads: Remove obsolete comment and fix typo.
33196 2004-12-07 Vincent Celier <celier@adacore.com>
33197 Sergey Rybin <rybin@adacore.com>
33199 * gnat_ugn.texi: Update the section "The GNAT Driver and Project
33200 Files" with the new tool and package names.
33201 Reformatting to suppress most of the warnings for line too long
33202 Document the new section "Project Search Path:" in the output of
33204 Add gnatmetric section
33206 2004-12-07 Vincent Celier <celier@adacore.com>
33208 * vms_data.ads: Correct GNAT METRIC qualifiers: -I-, -Idir and
33209 -gnatec= are not direct switches of gnatmetric. Changed -eis to -eps
33210 and -eit to -ept. Added qualifier
33211 /ELEMENT_METRICS=CONSTRUCT_NESTING_MAX for new switch -ec.
33213 2004-11-27 Andreas Schwab <schwab@suse.de>
33215 * Make-lang.in (ada/trans.o): Depend on $(EXPR_H).
33217 2004-11-25 Arnaud Charlet <charlet@adacore.com>
33219 * g-socthi-mingw.ads, g-socthi-vms.ads: Remove C_Read and C_Write from
33220 internal implementation unit GNAT.Sockets.Thin,
33221 as their usage for sockets is non-portable (using the read and write
33222 functions from the system runtime library is fine on UNIX but won't
33223 work under Windows).
33225 * mingw32.h: Update copyright notice.
33227 2004-11-25 Arnaud Charlet <charlet@adacore.com>
33229 * ada-tree.h: Minor reformatting of previous change to avoid lines
33230 longer than 79 characters.
33232 2004-11-25 Olivier Hainque <hainque@adacore.com>
33234 * tb-gcc.c: GCC infrastructure based implementation of
33237 2004-11-24 Steven Bosscher <stevenb@suse.de>
33239 * misc.c (gnat_post_options): Don't clear
33240 flag_inline_functions.
33242 2004-11-22 Andrew Pinski <pinskia@physics.uc.edu>
33245 * ada-tree.h (lang_tree_node): Set chain_next to be the chain of the
33248 2004-11-21 Andreas Jaeger <aj@suse.de>
33250 * stylesw.adb: Change Style_Check_Subprogram_Order to
33251 Style_Check_Order_Subprograms.
33253 2004-11-18 Arnaud Charlet <charlet@adacore.com>
33255 * adaint.h, adaint.c
33256 (__gnat_portable_spawn): Fix cast of spawnvp third parameter
33258 Add also a cast to kill another warning.
33259 (win32_no_block_spawn): Initialize CreateProcess's dwCreationFlags
33260 parameter with the priority class of the parent process instead of
33261 always using the NORMAL_PRIORITY_CLASS.
33262 (__gnat_dup): New function.
33263 (__gnat_dup2): New function.
33264 (__gnat_is_symbolic_link): Enable the effective body of this
33265 function when __APPLE__ is defined.
33267 * g-os_lib.ads, g-os_lib.adb (Spawn): Two new procedures.
33270 2004-11-18 Olivier Hainque <hainque@adacore.com>
33272 * a-exexpr.adb (Others_Value, All_Others_Value): New variables, the
33273 address of which may be used to represent "others" and "all others"
33274 choices in exception tables, instead of the current harcoded
33275 (void *)0 and (void *)1.
33276 (Setup_Exception): Do nothing in the GNAT SJLJ case.
33278 * gigi.h (others_decl, all_others_decl): New decls representing the
33279 new Others_Value and All_Others_Value objects.
33280 (struct attrib): Rename "arg" component as "args", since GCC expects a
33281 list of arguments in there.
33283 * raise.c (GNAT_OTHERS, GNAT_ALL_OTHERS): Are now the address of the
33284 corresponding objects exported by a-exexpr, instead of hardcoded dummy
33287 * trans.c (Exception_Handler_to_gnu_zcx): Use the address of
33288 others_decl and all_others_decl instead of hardcoded dummy addresses
33289 to represent "others" and "all others" choices, which is cleaner and
33290 more flexible with respect to the possible eh pointer encoding policies.
33292 * utils.c (init_gigi_decls): Initialize others_decl and all_others_decl.
33293 (process_attributes): Account for the naming change of the "args"
33294 attribute list entry component.
33296 * decl.c (build_attr_list): Rename into prepend_attributes to allow
33297 cumulating attributes for different entities into a single list.
33298 (gnat_to_gnu_entity): Use prepend_attributes to build the list of
33299 attributes for the current entity and propagate first subtype
33300 attributes to other subtypes.
33301 <E_Procedure>: Attribute arguments are attr->args and not
33302 attr->arg any more.
33303 (build_attr_list): Ditto. Make attr->args a TREE_LIST when there is an
33304 argument provided, as this is what GCC expects. Use NULL_TREE instead
33307 2004-11-18 Robert Dewar <dewar@adacore.com>
33309 * a-stmaco.ads, exp_util.ads, exp_util.adb, i-cpp.ads, i-cpp.adb:
33310 Minor reformatting througout (including new function specs)
33311 Add ??? comments asking for clarification.
33313 2004-11-18 Thomas Quinot <quinot@adacore.com>
33315 * butil.ads, butil.adb, bindgen.adb (Get_Unit_Name_String): Remove
33316 incomplete duplicate implementation of this subprogram from butil.
33318 2004-11-18 Thomas Quinot <quinot@adacore.com>
33320 * exp_dist.adb (Build_RPC_Receiver_Body): New subprogram. This
33321 procedures factors the common processing for building an RPC receiver
33322 for an RCI package or an RACW type.
33323 Stylistic cleanup: change '/= Empty' to 'Present ()'; move body of
33324 Build_Remote_Subprogram_Proxy_Type into proper alphabetical order.
33325 (Get_PCS_Name): New subprogram. Returns the name of the PCS currently
33327 (Specific_Add_RACW_Features): New subprogram. PCS-specific part of
33329 (Specific_Add_RAST_Features): New subprogram. PCS-specific part of
33331 (Assign_Subprogram_Identifier): New subprogram. Provision for assigning
33332 distribution subprogram identifiers that are either subprogram numbers
33334 (Get_Subprogram_Ids): New subprogram. Retrieve both the numeric and
33335 string distribution identifiers assigned to a given subprogram.
33336 (Get_Subprogram_Id): Reimplement in terms of Get_Subprogram_Ids.
33337 (Add_RAS_Dereference_TSS): Add comments.
33338 (Build_General_Calling_Stubs): Note that the RACW_Type formal parameter
33339 is not referenced yet because it will be used by the PolyORB DSA
33341 (Insert_Partition_Check): Remove fossile code.
33342 (First_RCI_Subprogram_Id): Document this constant.
33343 (Add_RAS_Access_TSS): Correct the setting of the Etype of the
33345 (Get_Pkg_Name_String): Remove subprogram. Usage occurrences are
33346 replaced with calls to Get_Library_Unit_Name_String. Previously there
33347 were several instances of the same code in different locations in the
33348 compiler; this checkin completes the replacement of all of these
33349 instances with calls to a common subprogram.
33350 Minor reformatting.
33352 * sem_dist.adb: Remove comment noting that RPC receiver generation
33353 should be disabled for RACWs that implement RASs.
33354 (Process_Partition_Id): Use new subprogram Get_Library_Unit_Name_String.
33356 * sem_util.ads, sem_util.adb (Has_Stream): New function
33357 (Get_Library_Unit_Name_String): New subprogram to retrieve the fully
33358 qualified name of a library unit into the name buffer.
33359 (Note_Possible_Modification): Generate a reference only
33360 if the context comes from source.
33362 * snames.ads (PCS_Names): New subtype corresponding to names of
33363 supported implementations of the Partition Communication Subsystem
33364 (PCS) (i.e. the runtime library support modules for the distributed
33367 2004-11-18 Robert Dewar <dewar@adacore.com>
33368 Ed Schonberg <schonberg@adacore.com>
33370 * einfo.ads, einfo.adb: Remove Is_Psected flag, no longer used
33371 (Has_Rep_Pragma): New function
33372 (Has_Attribute_Definition_Clause): New function
33373 (Record_Rep_Pragma): Moved here from sem_ch13.adb
33374 (Get_Rep_Pragma): Remove junk kludge for Stream_Convert pragma
33376 * sem_ch13.ads, sem_ch13.adb (Record_Rep_Pragma): Moved to einfo.adb
33378 * exp_prag.adb: (Expand_Pragma_Common_Object): New procedure
33379 (Expand_Pragma_Psect_Object): New procedure
33380 These procedures contain the revised and cleaned up processing for
33381 these two pragmas. This processing was formerly in Sem_Prag, but
33382 is more appropriately moved here. The cleanup involves making sure
33383 that the pragmas are properly attached to the tree, and that no
33384 nodes are improperly shared.
33386 * sem_prag.adb: Move expansion of Common_Object and Psect_Object
33387 pragmas to Exp_Prag, which is more appropriate.
33388 Attach these two pragmas to the Rep_Item chain Use Rep_Item chain to
33389 check for duplicates Remove use of Is_Psected flag, no longer needed.
33390 Use new Make_String_Literal function with string.
33392 * exp_attr.adb (Expand_Fpt_Attribute): The floating-point attributes
33393 that are functions return universal values, that have to be converted
33394 to the context type.
33395 Use new Make_String_Literal function with string.
33396 (Get_Stream_Convert_Pragma): New function, replaces the use of
33397 Get_Rep_Pragma, which had to be kludged to work in this case.
33399 * freeze.adb: Use new Has_Rep_Pragma function
33401 * exp_intr.adb, exp_ch3.adb, sem_attr.adb: Use new Make_String_Literal
33402 function with string.
33403 Use new Has_Rep_Pragma function.
33405 * tbuild.ads, tbuild.adb (Make_String_Literal): New function, takes
33408 2004-11-18 Robert Dewar <dewar@adacore.com>
33410 * errout.ads, errout.adb: (First_Sloc): New function
33412 * par-ch5.adb (P_Condition): Check for redundant parens is now a style
33413 check (-gnatyx) instead of being included as a redundant construct
33416 * sem_ch6.adb: Change name Style_Check_Subprogram_Order to
33417 Style_Check_Order_Subprograms.
33419 * style.ads, styleg.ads, styleg.adb, styleg-c.adb, stylesw.ads,
33420 stylesw.adb: Add Style_Check_Xtra_Parens
33422 * usage.adb: Add line for -gnatyx (check extra parens)
33424 * vms_data.ads: Add entry for STYLE_CHECKS=XTRA_PARENS => -gnatyx
33426 2004-11-18 Ed Schonberg <schonberg@adacore.com>
33427 Robert Dewar <dewar@adacore.com>
33429 * exp_ch4.adb (Expand_N_Selected_Component): If the component is the
33430 discriminant of a constrained subtype, analyze the copy of the
33431 corresponding constraint, because in some cases it may be only
33432 partially analyzed.
33433 Removes long-lived ??? comments.
33435 * exp_ch7.adb (Establish_Transient_Scope): Remove complex code that
33436 handled controlled or secondary-stack expressions within the
33437 iteration_scheme of a loop.
33439 * sem_ch5.adb (Analyze_Iteration_Scheme): Build a block to evaluate
33440 bounds that may contain functions calls, to prevent memory leaks when
33441 the bound contains a call to a function that uses the secondary stack.
33442 (Check_Complex_Bounds): Subsidiary of Analyze_Iteration_Scheme, to
33443 generate temporaries for loop bounds that might contain function calls
33444 that require secondary stack and/or finalization actions.
33446 * sem_ch4.adb (Analyze_Indexed_Component_Form): If the prefix is a
33447 selected component and the selector is overloadable (not just a
33448 function) treat as function call, Analyze_Call will disambiguate if
33450 (Analyze_Selected_Component): Do not generate an actual subtype for the
33451 selected component if expansion is disabled. The actual subtype is only
33452 needed for constraint checks.
33453 (Analyze_Allocator): If restriction No_Streams is set, then do
33454 not permit objects to be declared of a stream type, or of a
33455 composite type containing a stream.
33457 * restrict.ads: Remove the a-stream entry from Unit_Array, since
33458 No_Streams no longer prohibits with'ing this package.
33460 * sem_ch3.adb (Build_Derived_Record_Type): If the parent type has
33461 discriminants, but the parent base has unknown discriminants, there is
33462 no discriminant constraint to inherit. Such a discrepancy can arise
33463 when the actual for a formal type with unknown discriminants is a
33464 similar private type whose full view has discriminants.
33465 (Analyze_Object_Declaration): If restriction No_Streams is set, then
33466 do not permit objects to be declared of a stream type, or of a
33467 composite type containing a stream.
33469 2004-11-18 Ed Schonberg <schonberg@adacore.com>
33471 * exp_dbug.ads: Update documentation to reflect simpler encoding for
33472 protected operations.
33474 * exp_ch9.adb (Build_Selected_Name): Do not include "PT" suffix in
33475 generated name, it complicates decoding in gdb and hinders debugging
33476 of protected operations.
33477 (Build_Barrier_Function_Specification): Set the Needs_Debug_Info
33478 flag for the protected entry barrier function.
33479 (Build_Protected_Entry_Specification): Set the Needs_Debug_Info
33480 flag for the protected entry function.
33482 2004-11-18 Nicolas Setton <setton@adacore.com>
33484 * expect.c: Define __unix__ when __APPLE__ is defined.
33486 * Makefile.in: Inform the value of the variable GMEM_LIB in the
33487 Darwin-specific section.
33489 * lang-specs.h: Change the placement of the %1 marker.
33490 Works around the fact that gcc adds -fPIC by default under Darwin.
33492 2004-11-18 Ed Schonberg <schonberg@adacore.com>
33494 * exp_pakd.adb (Convert_To_PAT_Type): After replacing the original
33495 type of the object with the packed array type, set the Analyzed flag
33496 on the object if it is an entity or simple indexed component, to avoid
33497 spurious type errors.
33499 2004-11-18 Gary Dismukes <dismukes@adacore.com>
33501 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb, gnatlink.adb,
33502 gnatls.adb, gnatxref.adb, gprep.adb: Output the copyright message on a
33503 separate line from the version message.
33505 2004-11-18 Ed Falis <falis@adacore.com>
33507 * init.c (__gnat_map_signal): map SIGSEGV to Storage_Error for AE653
33509 (init_float): Eliminate initialization of floating point status for
33510 AE653. The instructions have no effect for vThreads.
33512 2004-11-18 Vincent Celier <celier@adacore.com>
33514 * make.adb (Gnatmake): Invoke gnatlink with -shared-libgcc when
33515 gnatbind is invoked with -shared.
33517 2004-11-18 Jose Ruiz <ruiz@adacore.com>
33519 * s-tposen.adb (Lock_Entry): Remove the code for raising Program_Error
33520 for Detect_Blocking which is redundant with the check done within the
33521 procedure Protected_Single_Entry_Call.
33522 (Lock_Read_Only_Entry): Remove the code for raising Program_Error for
33523 Detect_Blocking which is redundant with the check done within the
33524 procedure Protected_Single_Entry_Call.
33526 2004-11-18 Vincent Celier <celier@adacore.com>
33528 * makegpr.adb (Compile): Put the compiling switches (in package
33529 Compiler and on the command line) immediately after "-c", instead of
33530 at the end of the command line invocation of the compiler, when
33531 compiling a non-Ada file.
33532 (Build_Global_Archive): When there is no need to rebuild the archive,
33533 set Global_Archive_Exists, so that the archive is passed to the linker
33536 2004-11-18 Robert Dewar <dewar@adacore.com>
33537 Sergey Rybin <rybin@adacore.com>
33540 Remove extra paren check from list of checks for redundant constructs
33541 Add documentation of new -gnatyx style check (check extra parens)
33542 Remove paragraph about gnatelim debug options.
33544 * gnat_rm.texi: Document that Ada.Streams now forbids creating stream
33545 objects rather than forbidding dependencies on the package Ada.Streams.
33547 * sinfo.ads: Add ??? note that we should document pragmas passed to
33550 * g-expect.ads: Fix a few typos in the comments.
33552 2004-11-09 Joseph S. Myers <joseph@codesourcery.com>
33554 * misc.c (gnat_handle_option): Use %< and %> for quoting in
33557 2004-11-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
33559 * a-numaux-x86.adb (Tan): Fix fdivp syntax.
33561 2004-11-07 Andreas Schwab <schwab@suse.de>
33563 * Makefile.in (install-gnatlib): Remove spurious hyphen.
33565 2004-11-02 Andrew Pinski <pinskia@physics.uc.edu>
33568 * Makefile.in (darwin): Set soext to .dylib.
33570 2004-10-26 Vincent Celier <celier@gnat.com>
33571 Thomas Quinot <quinot@act-europe.fr>
33573 * g-socthi-vms.adb, g-socthi-mingw.adb, g-socthi-vxworks.ads:
33574 (C_Writev): Change MSG_Forced_Flags to Constants.MSG_Forced_Flags as
33575 there is no use of GNAT.Sockets.Constants.
33576 Remove remaining pragma Import for C_Write
33577 Remove C_Read and C_Write from internal implementation unit
33578 GNAT.Sockets.Thin, as their usage for sockets is non-portable (using
33579 the read and write functions from the system runtime library is fine
33580 on UNIX but won't work under Windows).
33582 * g-socket.adb: (Abort_Selector): Use C_Send instead of C_Write.
33583 (Check_Selector): Use C_Recv instead of C_Read.
33584 Selectors are the GNAT.Sockets abstraction to perform a select()
33585 call on a set of descriptors. To allow abortion of an ongoing
33586 select operation, some data is written to a dedicated socket that
33587 is always monitored.
33588 Under Windows, the write and read library functions cannot operate
33589 on sockets, so we need to use send and recv instead, which is portable
33590 across all supported platforms.
33592 * g-socthi.ads: Remove C_Read and C_Write from internal implementation
33593 unit GNAT.Sockets.Thin, as their usage for sockets is non-portable
33594 (using the read and write functions from the system runtime library is
33595 fine on UNIX but won't work under Windows).
33597 2004-10-26 Nicolas Setton <setton@act-europe.fr>
33599 * mlib-tgt-darwin.adb: New file.
33601 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
33602 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
33603 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
33604 mlib-tgt-mingw.adb, mlib-tgt-vxworks.adb (Archive_Indexer_Options): New
33607 * Makefile.in: Add support for building shared libraries under Darwin.
33608 (EXTRA_GNATRTL_NONTASKING_OBJS, ppc-vxworks): Add s-vxwexc.o, containing
33609 the low level EH init subprogram to be called from __gnat_initialize.
33611 * mlib-tgt.ads, mlib-tgt.adb (Archive_Indexer_Options): New subprogram,
33612 indicates which options to pass to the archive indexer.
33614 * mlib-utl.adb: Add support for calling ranlib with additional
33615 options. This is needed for instance under Mac OS X.
33616 (Ranlib_Options): New global variable, used to store the potential
33617 options to pass to ranlib.
33618 (Ar): Use Ranlib_Options when spawning ranlib.
33619 (Initialize): Set the value of ranlib option.
33621 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
33623 * s-parame-linux.adb (Minimum_Stack_Size): Adjust to return 12K
33624 instead of 8K, to reflect the real potential needs for stack-checking
33627 2004-10-26 Pascal Obry <obry@gnat.com>
33629 * s-parame-mingw.adb (Default_Stack_Size): Add some comments.
33631 * s-taprop-mingw.adb (Create_Task): Set initial stack size to 1024. On
33632 Windows only the initial thread stack size can be set so it is good to
33633 start we a low stack size.
33634 The OS will adjust the size as needed.
33636 2004-10-26 Olivier Hainque <hainque@act-europe.fr>
33637 Nicolas Setton <setton@act-europe.fr>
33639 * expect.c, adaint.c, link.c, sysdep.c (unix sections): Guard with
33640 "__unix__" instead of "unix".
33641 The latter is implicitly defined by gcc3.2 but not by gcc >= 3.4, so the
33642 sections were just mistakenly ignored. The former is
33643 implicitely defined by gcc2.8, gcc3.2 and gcc3.4.
33644 Update #ifdef preprocessor macro to detect the symbol __hpux__ instead
33645 of hpux. This prevents an unwanted definition of the symbol
33646 convert_addresses in adaint.o.
33648 2004-10-26 Gary Dismukes <dismukes@gnat.com>
33650 * a-exexpr.adb (Setup_Key): Change initial value to 16#DEAD#, for
33651 compatibility with type Unwind_Word on 16-bit targets such as AAMP.
33653 2004-10-26 Cyrille Comar <comar@act-europe.fr>
33655 * a-filico.ads, a-filico.adb: fix incorrect header.
33657 2004-10-26 Javier Miranda <miranda@gnat.com>
33659 * a-ststio.ads: Fix typo in identifier
33661 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
33663 * sem_ch4.adb: Minor reformatting.
33665 2004-10-26 Ed Schonberg <schonberg@gnat.com>
33667 * checks.adb (Expr_Known_Valid): If floating-point validity checks are
33668 enabled, check the result of unary and binary operations when the
33669 expression is the right-hand side of an assignment.
33671 2004-10-26 Vincent Celier <celier@gnat.com>
33673 * clean.adb (Delete): Do not output warnings when in quiet output and
33674 not in verbose mode.
33675 (Force_Deletions): New Boolean flag, defaulted to False
33676 (Delete): Only delete a file if it is writable, and when
33677 Force_Deletions is True.
33678 (Parse_Cmd_Line): New switch -f: set Force_Deletions to True
33679 (Usage): Line for new switch -f
33680 (Clean_Directory): Use GNAT.OS_Lib.Set_Writable instead of rolling our
33683 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
33685 * decl.c (gnat_to_gnu_field): Use the type of the inner object for a
33686 JM type only if its size matches that of the wrapper. When a size is
33687 prescribed and the field is not aliased, remove the wrapper of a JM
33688 type only if the size is not greater than that of the packed array.
33689 (gnat_to_gnu_entity): Change the extension of packed array wrappers
33692 2004-10-26 Geert Bosch <bosch@gnat.com>
33694 * eval_fat.adb (Eps_Model,Eps_Denorm): Remove, no longer used.
33695 (Succ): Re-implement using Scaling, Exponent and Ceiling attributes.
33696 (Pred): Implement in terms of Succ.
33698 2004-10-26 Ed Schonberg <schonberg@gnat.com>
33700 * exp_aggr.adb (Safe_Component): An aggregate component that is an
33701 unchecked conversion is safe for in-place use if the expression of the
33702 conversion is safe.
33703 (Expand_Array_Aggregate): An aggregate that initializes an allocator may
33704 be expandable in place even if the aggregate does not come from source.
33705 (Convert_Array_Aggr_In_Allocator): New procedure to initialize the
33706 designated object of an allocator in place, rather than building it
33707 first on the stack. The previous scheme forces a full copy of the array,
33708 and may be altogether unsusable if the size of the array is too large
33709 for stack allocation.
33711 2004-10-26 Robert Dewar <dewar@gnat.com>
33713 * exp_ch4.adb (Expand_N_Op_Eq): Make sure we expand a loop for array
33714 compares if the component is atomic.
33716 * exp_ch5.adb (Expand_Assign_Array): Make sure we expand a loop for
33717 array assignment if the component type is atomic.
33719 2004-10-26 Ed Schonberg <schonberg@gnat.com>
33720 Eric Botcazou <ebotcazou@act-europe.fr>
33722 * exp_ch6.adb (Expand_Actuals): If the actual for an in-out parameter
33723 is aliased and is a by_reference type, do not pass by copy.
33724 (Expand_N_Function_Call) <Rhs_Of_Assign_Or_Decl>: New function to
33725 detect whether the call is in the right side of an assignment or
33726 the expression of an object declaration. Recurse on component
33727 association within aggregates.
33728 Call it in the condition that determines whether the temporary is
33729 necessary for correct stack-checking.
33731 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
33733 * exp_dist.adb (Build_General_Calling_Stubs): New formal parameter
33734 RACW_Type, used in the PolyORB version.
33735 Rename RCI_Info to RCI_Locator, for consistency between the PolyORB
33736 version and the GARLIC version.
33738 * snames.ads, snames.adb, s-parint.ads, s-parint.adb:
33739 Rename RCI_Info to RCI_Locator for better consistency between the
33740 GARLIC and PolyORB versions of the distributed systems annex.
33741 (DSA_Implementation_Name): This enumeration lists the possible
33742 implementations of the Partition Communication Subsystem for the
33743 Distributed Systems Annex (DSA). The three available implementations
33744 are the dummy stub implementation (No_DSA), and two versions based on
33745 two different distribution runtime libraries: GARLIC and PolyORB. Both
33746 the GARLIC PCS and the PolyORB PCS are part of the GLADE distribution
33748 Change the literal GLADE_DSA to GARLIC_DSA to accurately describe
33751 * rtsfind.ads: Rename RCI_Info to RCI_Locator for better consistency
33752 between the GARLIC and PolyORB versions of the distributed systems
33754 Remove RE_Unbounded_Reclaim_Pool since it is unused.
33756 2004-10-26 Gary Dismukes <dismukes@gnat.com>
33758 * gnat1drv.adb: Suppress calling the back end when
33759 Frontend_Layout_On_Target is true.
33761 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
33763 * g-os_lib.ads, g-os_lib.adb (Set_Executable, Set_Writable,
33764 Set_Read_Only): New subprograms.
33765 These new routines allow the user to set or unset the Owner execute
33766 and Owner write permission flags on a file.
33768 * makegpr.adb, mlib.adb, mlib-prj.adb: Use
33769 GNAT.OS_Lib.Set_Executable instead of rolling our own.
33771 2004-10-26 Matthew Gingell <gingell@gnat.com>
33773 * i-cpp.ads, i-cpp.adb: Change layout of VTable for new C++ ABI.
33775 2004-10-26 Pascal Obry <obry@gnat.com>
33777 * init.c (__gnat_error_handler) [Win32]: Instead of trying to read the
33778 memory before the faulting page we properly test the process read
33779 access for this address using appropriate Win32 routine.
33780 (HPUX sections): guard with "__hpux__" instead of "hpux".
33782 2004-10-26 Robert Dewar <dewar@gnat.com>
33784 * lib-xref.adb (Generate_Reference): Don't complain about reference to
33785 entry parameter if pragma Unreferenced set, since we do not properly
33786 handle the case of multiple parameters.
33788 2004-10-26 Vincent Celier <celier@gnat.com>
33790 * prj-env.adb: (Contains_ALI_Files): New Boolean function
33791 (Ada_Objects_Path.Add): For a library project, add to the object path
33792 the library directory only if there is no object directory or if the
33793 library directory contains ALI files.
33794 (Set_Ada_Paths.Add.Recursive_Add): Ditto
33796 2004-10-26 Vincent Celier <celier@gnat.com>
33798 * prj-nmsc.adb (Language_Independent_Check): Do not forbid virtual
33799 extension of library projects.
33801 * prj-part.adb: If env var ADA_PROJECT_PATH is not defined, project
33802 path defaults to ".:<prefix>/lib/gnat".
33803 (Parse): For an extending all project, allow direct import of a project
33804 that is virtually extended.
33806 * prj-proc.adb (Imported_Or_Extended_Project_From): If a project with
33807 the specified name is directly imported, return its ID. Otherwise, if
33808 an extension of this project is imported, return the ID of the
33811 2004-10-26 Robert Dewar <dewar@gnat.com>
33813 * s-arit64.adb: (Le3): New function, used by Scaled_Divide
33814 (Sub3): New procedure, used by Scaled_Divide
33815 (Scaled_Divide): Substantial rewrite, avoid duplicated code, and also
33816 correct more than one instance of failure to propagate carries
33818 (Double_Divide): Handle overflow case of largest negative number
33819 divided by minus one.
33821 * s-arit64.ads (Double_Divide): Document that overflow can occur in
33822 the case of a quotient value out of range.
33825 2004-10-26 Robert Dewar <dewar@gnat.com>
33827 * s-bitops.adb (Bit_Eq): Remove redundant check.
33829 * s-bitops.ads: Minor comment updates
33830 Change some occurrences of Address to System.Address
33832 * s-carsi8.ads: Fix minor cut-and-paste error in comments
33834 2004-10-26 Ed Schonberg <schonberg@gnat.com>
33836 * sem_attr.adb (Resolve_Attribute, case 'Access): Apply proper
33837 accessibility check to prefix that is a protected operation.
33839 2004-10-26 Ed Schonberg <schonberg@gnat.com>
33841 * sem_ch10.adb (Optional_Subunit): If file of expected subunit is
33842 empty, post message on stub.
33844 2004-10-26 Ed Schonberg <schonberg@gnat.com>
33845 Javier Miranda <miranda@gnat.com>
33847 * sem_ch12.adb (In_Main_Context): Predicate to determine whether the
33848 current instance appears within a unit that is directly in the context
33850 Used to determine whether the body of the instance should be analyzed
33851 immediately after its spec, to make its subprogram bodies available
33852 for front-end inlining.
33853 (Analyze_Formal_Array_Type): Cleanup condition that checks that range
33854 constraint is not allowed on the component type (AARM 12.5.3(3))
33856 2004-10-26 Cyrille Comar <comar@act-europe.fr>
33858 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
33859 'Storage_Pool): enhance, document & limit detection of non-sharable
33862 * impunit.adb: Make System.Pool_Global and System.Pool_Local visible.
33864 * s-pooglo.ads: Add more documentation now that this pool is properly
33867 2004-10-26 Ed Schonberg <schonberg@gnat.com>
33869 * sem_ch3.adb (Complete_Private_Subtype): If the full view is a task
33870 or protected type with discriminants, do not constrain the
33871 corresponding record type if the subtype declaration has no
33872 discriminant constraints. This can be the case in source code, or in
33873 the subtype declaration created to rename an actual type within an
33876 2004-10-26 Ed Schonberg <schonberg@gnat.com>
33878 * sem_ch6.adb (Analyze_Subprogram_Body): If body is a subunit for a
33879 different kind of stub (possibly wrong name for file), do not check
33881 (Uses_Secondary_Stack): New subsidiary to Build_Body_To_Inline. If body
33882 includes call to some function that returns an unconstrained type, do
33885 2004-10-26 Ed Schonberg <schonberg@gnat.com>
33887 * sem_elab.adb (Check_Elab_Call): Do not check a call that does not
33888 appear in the code for the main unit. Dependencies among units in the
33889 context of the main unit are established when those other units are
33890 compiled. Otherwise spurious elaboration constraints can generate
33891 incorrect elaboration circularities.
33893 2004-10-26 Thomas Quinot <quinot@act-europe.fr>
33894 Ed Schonberg <schonberg@gnat.com>
33896 * sem_util.adb (Is_Aliased_View): Defend against the case where this
33897 subprogram is called with a parameter that is not an object name. This
33898 situation arises for some cases of illegal code, which is diagnosed
33899 later, and in this case it is wrong to call Is_Aliased, as that might
33900 cause a compiler crash.
33901 (Explain_Limited_Type): Refine previous fix to include
33902 inherited components of derived types, to provide complete information.
33904 * exp_ch9.adb (Set_Privals): Set the Ekind of the actual object that
33905 is the prival for a protected object.
33906 It is necessary to mark this entity as a variable, in addition to
33907 flagging it as Aliased, because Sem_Util.Is_Aliased_View has been
33908 modified to avoid checking the Aliased flag on entities that are not
33909 objects. (Checking that flag for non-objects is erroneous and could
33910 lead to a compiler crash).
33912 2004-10-26 Robert Dewar <dewar@gnat.com>
33914 * s-fatgen.adb (Pred): Fix redundant test for X > 0.0, since if
33915 X_Frac = 0.5, then we know that the number X must be positive.
33916 (Succ): Remove the same redundant test, and also fix the primary test
33917 to test for X_Frac = -0.5 (used to be 0.5) which is clearly wrong.
33919 (Decompose): Add fuller comments to spec
33921 2004-10-26 Pascal Obry <obry@gnat.com>
33923 * tracebak.c (IS_BAD_PTR): Use IsBadCodePtr on Win32 to check for ptr
33924 validity (process must have read access). Set to 0 in all other cases.
33925 (STOP_FRAME): Now check for ptr validity to avoid a segmentation
33926 violation on Win32.
33927 (VALID_STACK_FRAME): Check for ptr validity on Win32 to avoid a
33928 segmentation violation.
33930 2004-10-26 Eric Botcazou <ebotcazou@act-europe.fr>
33932 * trans.c (call_to_gnu): For an (in-)out parameter passed by reference
33933 whose type is a constructed subtype of an aliased object with an
33934 unconstrained nominal subtype, convert the actual to the constructed
33935 subtype before taking its address.
33937 2004-10-26 Vincent Celier <celier@gnat.com>
33939 * a-dirval.ads, a-dirval.adb, a-dirval-vms.adb, a-dirval-mingw.adb
33940 (Is_Path_Name_Case_Sensitive): New function
33942 * a-direct.adb (To_Lower_If_Case_Insensitive): New procedure
33943 (Base_Name, Simple_Name, Current_Directory, Compose,
33944 Containing_Directory, Full_Name): Call To_Lower_If_Case_Insensitive on
33947 2004-10-26 Cyrille Comar <comar@act-europe.fr>
33948 Vasiliy Fofanov <fofanov@act-europe.fr>
33949 Vincent Celier <celier@gnat.com>
33951 * gnat_ugn.texi: Generalize "finding memory problems" section into a
33952 "memory management issues" section and document some of the useful
33953 memory pools provided as part of the GNAT library.
33954 Remove "virtual" from declaration of A::method2 in
33955 the simple example of Ada/C++ mixed system.
33956 Library Projects may be virtually extended: their virtual extensions
33957 are not Library Projects.
33958 Added section on extending project hierarchies.
33960 2004-10-19 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
33962 * adaint.c (__gnat_get_libraries_from_registry): Cast value
33964 (__gnat_portable_spawn): Remove const.
33966 * mingw32.h (MAXPATHLEN): Check for previous definition.
33968 2004-10-17 Matthias Klose <doko@debian.org>
33970 * gnatvsn.ads: Set gnat library version to 4.0.
33972 2004-10-05 Vincent Celier <celier@gnat.com>
33974 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Options_2
33976 2004-10-04 Laurent Guerby <laurent@guerby.net>
33979 * Makefile.in: Define and use RANLIB_FLAGS.
33981 2004-10-04 Pascal Obry <obry@gnat.com>
33983 * tracebak.c: Always set LOWEST_ADDR to 0 on Win32 (as done on all
33984 other x86 platforms).
33986 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
33988 * s-tassta.adb (Task_Wrapper): Make it Convention C, which makes sense
33989 in general and triggers stack alignment adjustment for thread entry
33990 points on targets where this is necessary.
33992 2004-10-04 Bernard Banner <banner@gnat.com>
33995 * Makefile.in: Add section for powerpc linux
33996 Add variant i-vxwork-x86.ads
33998 * i-vxwork-x86.ads, system-linux-ppc.ads: New files.
34000 2004-10-04 Olivier Hainque <hainque@act-europe.fr>
34002 * init.c (__gnat_initialize): Call an Ada subprogram to perform the
34003 table registration calls when need be. Ensures no reference to the crt
34004 ctors symbol are issued in the SJLJ case, which avoids possible
34005 undefined symbol errors in the case of modules to be statically linked
34008 2004-10-04 Javier Miranda <miranda@gnat.com>
34010 * sem_ch4.adb (Try_Object_Operation): Reformat the code to expand
34011 in-line the code corresponding to subprogram Analyze_Actuals. In
34012 addition, analyze the actuals only in case of subprogram call.
34014 2004-10-04 Ed Falis <falis@gnat.com>
34016 * s-vxwork-x86.ads: (FP_CONTEXT): Defined to be correct size
34018 2004-10-04 Sergey Rybin <rybin@act-europe.fr>
34020 * g-dirope.ads (Base_Name): Clarify the meaning of the Suffix parameter
34021 in the documentation.
34023 2004-10-04 Robert Dewar <dewar@gnat.com>
34025 * sem_ch5.adb (Unblocked_Exit_Count): Now used for blocks as well as
34027 (Analyze_Block_Statement): Add circuitry to detect following dead code
34028 (Check_Unreachable_Code): Handle case of block exit
34030 2004-10-04 Robert Dewar <dewar@gnat.com>
34032 * g-spipat.adb: (XMatch): Avoid warning for Logic_Error call
34033 (XMatchD): Avoid warning for Logic_Error call
34035 2004-10-04 Robert Dewar <dewar@gnat.com>
34037 * exp_ch4.adb (Is_Procedure_Actual): Correct so that this does not
34038 consider expressions buried within a procedure actual to be an actual.
34039 This caused some blowups with uses of packed slices within a procedure
34042 2004-10-04 Robert Dewar <dewar@gnat.com>
34044 * exp_ch3.adb (Needs_Simple_Initialization): Modular packed arrays no
34045 longer need to be initialized to zero.
34046 (Get_Simple_Init_Val): Modular packed arrays no longer need to be
34047 initialized to zero.
34049 * checks.adb (Expr_Known_Valid): Packed arrays are now always
34050 considered valid, even if the representation is modular. That's correct
34051 now that we no longer initialize packed modular arrays to zero.
34053 * exp_dbug.ads: Clarify documentation on handling of PAD and JM
34054 suffixes. These are now documented as the only cases in which the
34055 debugger ignores outer records.
34056 Previously, the spec allowed arbitrary suffixes for this purpose.
34057 Change name of LJM to JM for packed array pad records
34058 Create separate section on packed array handling, and add a whole new
34059 set of comments to this section describing the situation with packed
34060 modular types and justification requirements depending on endianness.
34062 2004-10-04 Robert Dewar <dewar@gnat.com>
34064 * a-except.adb: Add a comment for last change
34066 * einfo.ads: Minor spelling correction in comment
34068 * exp_pakd.adb, gnatdll.adb, prj-attr.ads: Minor reformatting
34070 * sem_ch11.adb: Fix a case of using | instead of \ for continuation
34073 * sem_util.ads: Minor comment update
34075 2004-10-04 Ed Schonberg <schonberg@gnat.com>
34077 * sem_ch6.adb (Analyze_Subprogram_Body): Do not treat Inline as
34078 Inline_Always when in Configurable_Run_Time mode.
34080 * sem_prag.adb (Process_Convention): If entity is an inherited
34081 subprogram, apply convention to parent subprogram if in same scope.
34082 (Analyze_Pragma, case Inline): Do not treat Inline as Inline_Always
34083 when in Configurable_Run_Time mode.
34085 2004-10-04 Ed Schonberg <schonberg@gnat.com>
34087 * sem_ch3.adb (Build_Derived_Record_Type): Set First/Last entity of
34088 class_wide type after component list has been inherited.
34090 2004-10-04 Ed Schonberg <schonberg@gnat.com>
34092 * sem_ch12.adb (Check_Generic_Actuals): New predicate
34093 Denotes_Previous_Actual, to handle properly the case of a private
34094 actual that is also the component type of a subsequent array actual.
34095 The visibility status of the first actual is not affected when the
34096 second is installed.
34097 (Process_Nested_Formal): Subsidiary of Instantiate_Formal_Package, to
34098 make fully recursive the treatment of formals of packages declared
34100 (Restore_Nested_Formal): Subsidiary of Restore_Private_Views, to undo
34101 the above on exit from an instantiation.
34102 (Denotes_Formal_Package): When called from Restore_Private_Views, ignore
34103 current instantiation which is now complete.
34104 (Analyze_Package_Instantiation): No instantiated body is needed if the
34105 main unit is generic. Efficient, and avoid anomalies when a instance
34106 appears in a package accessed through rtsfind.
34108 2004-10-04 Ed Schonberg <schonberg@gnat.com>
34110 * exp_ch6.adb (Expand_N_Function_Call): If stack checking is enabled,
34111 do not generate a declaration for a temporary if the call is part of a
34112 library-level instantiation.
34114 2004-10-04 Ed Schonberg <schonberg@gnat.com>
34116 * sem_util.adb (Explain_Limited_Type): Ignore internal components when
34117 searching for a limited component to flag.
34119 * exp_attr.adb (Freeze_Stream_Subprogram): Subsidiary procedure to
34120 expansion of Input, to account for the fact that the implicit call
34121 generated by the attribute reference must freeze the user-defined
34122 stream subprogram. This is only relevant to 'Input, because it can
34123 appear in an object declaration, prior to the body of the subprogram.
34125 * sem_ch13.adb (Rep_Item_Too_Late): Make the error non-serious, so that
34126 expansion can proceed and further errors uncovered.
34127 (Minor clean up): Fix cases of using | instead of \ for continuation
34130 2004-10-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34132 * cuintp.c, decl.c, utils2.c: Use gcc_assert and gcc_unreachable.
34134 * trans.c (assoc_to_constructor): Fix unused var warning if no checking.
34135 (gnat_gimplify_expr, case ADDR_EXPR): Fix error in last change.
34136 Use gcc_assert and gcc_unreachable.
34138 * decl.c (gnat_to_gnu_entity, case object): Check and process a
34139 specified alignment before validating size.
34140 (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>: Create a
34141 stripped-down declaration for the type of the inner field when making
34144 * utils.c (finish_record_type): Do not compute the size in units
34145 incrementally. Instead compute it once for the rep clause case.
34146 Use gcc_assert and gcc_unreachable.
34148 2004-10-04 Vincent Celier <celier@gnat.com>
34150 * a-dirval-mingw.adb (Invalid_Character): Add '\' as invalid character
34152 (Is_Valid_Path_Name): Take '/' as a directory separator.
34154 2004-10-04 Vincent Celier <celier@gnat.com>
34156 * prj-part.adb (Parse_Single_Project): Call Is_Extending_All
34157 (Extended_Project) only if Extended_Project is defined, to avoid
34159 (Post_Parse_Context_Clause): Always call Set_Path_Name_Of with a
34161 (Parse_Single_Project): Ditto.
34163 * prj-env.adb (Set_Ada_Paths.Add.Recursive_Add): Do not call
34164 Add_To_Project_Path for virtual projects.
34166 2004-10-04 Vincent Celier <celier@gnat.com>
34168 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
34169 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
34170 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-mingw.adb,
34171 mlib-tgt-vxworks.adb, mlib-tgt.adb (Build_Dynamic_Library): New
34172 parameter Options_2.
34174 * mlib-prj.ads, mlib-prj.adb (Build_Library): Call
34175 Build_Dynamic_Library with an empty Options_2.
34177 * mlib-utl.ads, mlib-utl.adb (Gcc): Parameter Options_2 has no
34180 * makegpr.adb (Get_Imported_Directories.add): Remove trailing
34181 directory separator, if any.
34182 (Gprmake): Do not allow mains on the command line for library projects.
34183 Do not attempt to link when the project is a library project.
34184 (Library_Opts): New table to store Library_Options.
34185 (Build_Library): If Library_Options is specified, pass these options
34186 when building a shared library.
34188 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
34190 * s-tposen.adb (Service_Entry): The object must be always unlocked at
34191 the end of this procedure now that the unlock operation was inserted
34194 2004-10-04 Jose Ruiz <ruiz@act-europe.fr>
34196 * targparm.ads, targparm.adb (Targparm_Tags): Add PAS value
34197 corresponding to the Preallocated_Stacks flags in System.
34198 (Get_Target_Parameters): Including the processing for
34199 Preallocated_Stacks.
34201 * system.ads, system-vxworks-x86.ads, system-darwin-ppc.ads,
34202 system-vms_64.ads, system-unixware.ads, system-linux-ia64.ads,
34203 system-freebsd-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
34204 system-linux-x86_64.ads, system-tru64.ads, system-aix.ads,
34205 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads,
34206 system-solaris-x86.ads, system-irix-o32.ads, system-irix-n32.ads,
34207 system-hpux.ads, system-vxworks-m68k.ads, system-linux-x86.ads,
34208 system-vxworks-mips.ads, system-os2.ads, system-interix.ads,
34209 system-solaris-sparc.ads, system-solaris-sparcv9.ads, system-vms.ads,
34210 system-mingw.ads, system-vms-zcx.ads, system-vxworks-ppc.ads,
34211 system-vxworks-alpha.ads: Add the flag Preallocated_Stacks, that is
34212 used to signal whether the compiler creates the required stacks and
34213 descriptors for the different tasks (when True) or it is done by the
34214 underlying operating system at run time (when False).
34215 It is initially set to False in all targets.
34217 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Create the task stack
34218 if it is supported by the target.
34219 (Make_Task_Create_Call): Pass the stack address if it has been
34220 previously created. Otherwise pass a Null_Address.
34222 * snames.adb: Add _stack.
34224 * snames.ads: Add Name_uStack. Required to allow the expander to
34225 statically allocated task stacks.
34227 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add
34228 Stack_Address argument.
34229 Check that its value is equal to Null_Address because this target does
34230 not support the static stack allocation.
34232 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
34234 * usage.adb: Change "pragma inline" to "pragma Inline" in information
34237 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
34239 * exp_dist.adb: Split declaration of asynchronous flag out of
34240 Add_RACW_Read_Attribute.
34241 Minor reformatting for better alignment with PolyORB version.
34242 Store the entity for the asynchronous flag of an RACW, rather than the
34243 expression, in the asynchronous flags table. This will allow this flag
34244 to be used in other subprograms beside Add_RACW_Read_Attribute.
34246 2004-10-04 Thomas Quinot <quinot@act-europe.fr>
34248 * g-socket.ads, g-socket.adb, g-socthi.adb, socket.c,
34249 g-soccon-aix.ads, g-soccon-irix.ads, g-soccon-hpux.ads,
34250 g-soccon-interix.ads, g-soccon-solaris.ads, g-soccon-vms.adb,
34251 g-soccon-mingw.ads, g-soccon-vxworks.ads, g-soccon-freebsd.ads,
34252 g-soccon.ads, g-soccon-unixware.ads, g-soccon-tru64.ads: Add new
34253 sockets constant MSG_NOSIGNAL (Linux-specific).
34254 Add new sockets constant MSG_Forced_Flags, list of flags to be set on
34255 all Send operations.
34256 For Linux, set MSG_NOSIGNAL on all send operations to prevent them
34257 from trigerring SIGPIPE.
34258 Rename components to avoid clash with Ada 2005 possible reserved
34260 (Check_Selector): When the select system call returns with an error
34261 condition, propagate Socket_Error to the caller.
34263 2004-10-01 Jan Hubicka <jh@suse.cz>
34265 * misc.c (gnat_expand_body): Update call of tree_rest_of_compilation.
34267 2004-09-23 Robert Dewar <dewar@gnat.com>
34270 * sem_prag.adb (Process_Import_Or_Interface): Don't set Is_Public here,
34271 instead do this at freeze time (we won't do it if there is an address
34273 Change "pragma inline" to "pragma Inline" in information and error
34275 Minor reformatting.
34277 * freeze.adb (Check_Address_Clause): Remove previous change, not the
34278 right way of doing things after all.
34279 (Freeze_Entity): For object, set Is_Public for imported entities
34280 unless there is an address clause present.
34282 2004-09-21 Olivier Hainque <hainque@act-europe.fr>
34284 * decl.c (gnat_to_gnu_entity) <E_General_Access_Type>: Check for a
34285 dummy designated type via TYPE_MODE instead of COMPLETE_TYPE_P. This
34286 ensures proper handling of types with rep clauses, which might have
34287 their TYPE_SIZE set already.
34289 2004-09-21 Robert Dewar <dewar@gnat.com>
34291 * decl.c (gnat_to_gnu_type, case E_Modular_Integer_Type): Wrap modular
34292 packed array types in both little- and big-endian cases. This change
34293 ensures that we no longer count on the unused bits being initialized
34294 for such types (and in particular ensures that equality testing will
34295 only read the relevant bits).
34296 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
34297 These changes mean that we no longer need to initialize small packed
34299 (gnat_to_gnu_entity) <E_Record_Subtype>: Apply the same
34300 optimization to an LJM field as to its parent field.
34302 * ada-tree.h, trans.c, utils.c, utils2.c:
34303 Change name TYPE_LEFT_JUSTIFIED_MODULAR_P to TYPE_JUSTIFIED_MODULAR_P
34305 2004-09-20 Jan Hubicka <jh@suse.cz>
34307 * utils.c (gnat_finalize): Remove.
34308 (end_subprog_body): Directly call cgraph_finalize_function;
34309 do not lower the nested functions.
34311 2004-09-20 Robert Dewar <dewar@gnat.com>
34314 * freeze.adb (Check_Address_Clause): Reset Is_Imported and Is_Public
34315 if an address clause is present, since that means that the Import
34318 2004-09-20 Arnaud Charlet <charlet@act-europe.fr>
34320 * 5tsystem.ads: Removed, no longer used.
34322 2004-09-17 Jeffrey D. Oldham <oldham@codesourcery.com>
34323 Zack Weinberg <zack@codesourcery.com>
34325 * ada-tree.def: Use tree_code_class enumeration constants
34326 instead of code letters.
34327 * ada-tree.h, decl.c, misc.c, trans.c, utils.c, utils2.c:
34328 Update for new tree-class enumeration constants.
34330 2004-09-17 Vincent Celier <celier@gnat.com>
34332 * prj-attr-pm.ads, prj-attr-pm.adb: New files, to split some private
34333 capabilities of the general project manager.
34335 2004-09-09 Vincent Celier <celier@gnat.com>
34337 * a-direct.ads: Add pragma Ada_05
34338 (Directory_Entry_Type): Give default value to component Kind to avoid
34339 not initialized warnings.
34341 * a-direct.adb (Current_Directory): Remove directory separator at the
34343 (Delete_Directory, Delete_Tree): Raise Name_Error if Directory is not
34344 an existing directory.
34345 (Fetch_Next_Entry): Give default value to variable Kind to avoid warning
34346 (Size (String)): Function C_Size returns Long_Integer, not File_Size.
34347 Convert the result to File_Size.
34349 * prj.ads: (Project_Error): New exception
34351 * prj-attr.adb: Except in procedure Initialize, Fail comes from
34352 Prj.Com, not from Osint.
34353 (Attrs, Package_Attributes): Tables moved to private part of spec
34354 (Add_Attribute, Add_Unknown_Package): Moved to new child package
34356 (Register_New_Package (Name, Attributes), Register_New_Attribute): Raise
34357 Prj.Project_Error after call to Fail.
34358 (Register_New_Package (Name, Id)): Set Id to Empty_Package after calling
34359 Fail. Check that package name is not already in use.
34361 * prj-attr.ads: Comment updates to indicate that all subprograms may be
34362 used by tools, not only by the project manager, and to indicate that
34363 exception Prj.Prj_Error may be raised in case of problem.
34364 (Add_Unknown_Package, Add_Attribute): Moved to new child package
34366 (Attrs, Package_Attributes): Table instantiations moved from the body to
34367 the private part to be accessible from Prj.Attr.PM body.
34369 * prj-dect.adb (Parse_Package_Declaration): Call Add_Unknown_Package
34370 from new package Prj.Attr.PM.
34371 (Parse_Attribute_Declaration): Call Add_Attribute from new package
34374 * Makefile.in: Add prj-attr-pm.o to gnatmake object list
34376 * gnatbind.adb (Gnatbind): Correct warning message (Elaboration_Check
34377 instead of Elaboration_Checks).
34379 * a-calend.adb: Minor reformatting
34381 2004-09-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34383 * gigi.h (maybe_pad_type): New declaration.
34384 (create_subprog_type): New arg RETURNS_BY_TARGET_PTR.
34386 * ada-tree.h: (TYPE_RETURNS_BY_TARGET_PTR_P): New macro.
34388 * cuintp.c: Convert to use buildN.
34390 * decl.c (maybe_pad_type): No longer static.
34391 (gnat_to_gnu_entity, case E_Function): Handle case of returning by
34393 Convert to use buildN.
34395 * trans.c (call_to_gnu): Add arg GNU_TARGET; support
34396 TYPE_RETURNS_BY_TARGET_PTR_P. All callers changed.
34397 (gnat_to_gnu, case N_Assignment_Statement): Call call_to_gnu if call on
34399 (gnat_to_gnu, case N_Return): Handle TYPE_RETURN_BY_TARGET_PTR_P.
34400 (gnat_gimplify_expr, case ADDR_EXPR): New case.
34401 Convert to use buildN.
34403 * utils2.c (gnat_build_constructor): Also set TREE_INVARIANT and
34404 TREE_READONLY for const.
34405 Convert to use buildN.
34407 * utils.c (create_subprog_type): New operand RETURNS_BY_TARGET_PTR.
34408 (create_var_decl): Refine when TREE_STATIC is set.
34409 Convert to use buildN.
34411 2004-09-09 Gary Dismukes <dismukes@gnat.com>
34413 * gnat_ugn.texi: Delete text relating to checking of ali and object
34416 * a-except.adb (Rcheck_*): Add pragmas No_Return for each of these
34419 2004-09-09 Jose Ruiz <ruiz@act-europe.fr>
34421 * gnat_ugn.texi: Add Detect_Blocking to the list of configuration
34422 pragmas recognized by GNAT.
34424 * gnat_rm.texi: Document pragma Detect_Blocking.
34426 * s-solita.adb (Timed_Delay_T): When pragma Detect_Blocking is active,
34427 raise Program_Error if called from a protected operation.
34429 * s-taprob.adb (Lock): When pragma Detect_Blocking is active increase
34430 the protected action nesting level.
34431 (Lock_Read_Only): When pragma Detect_Blocking is active increase the
34432 protected action nesting level.
34433 (Unlock): When pragma Detect_Blocking is active decrease the protected
34434 action nesting level.
34436 * s-taskin.adb (Initialize_ATCB): Initialize to 0 the
34437 Protected_Action_Nesting.
34439 * s-taskin.ads: Adding the field Protected_Action_Nesting to the
34440 Common_ATCB record. It contains the dynamic level of protected action
34441 nesting for each task. It is needed for checking whether potentially
34442 blocking operations are called from protected operations.
34443 (Detect_Blocking): Adding a Boolean constant reflecting whether pragma
34444 Detect_Blocking is active or not in the partition.
34446 * s-tasren.adb (Call_Simple): When pragma Detect_Blocking is active,
34447 raise Program_Error if called from a protected operation.
34448 (Task_Entry_Call): When pragma Detect_Blocking is active, raise
34449 Program_Error if called from a protected operation.
34450 (Timed_Task_Entry_Call): When pragma Detect_Blocking is active, raise
34451 Program_Error if called from a protected operation.
34453 * s-tassta.adb (Abort_Tasks): When pragma Detect_Blocking is active,
34454 raise Program_Error if called from a protected operation.
34456 * s-tpoben.adb (Lock_Entries): When pragma Detect_Blocking is active,
34457 raise Program_Error if called from a protected operation, and increase
34458 the protected action nesting level.
34459 (Lock_Read_Only_Entries): When pragma Detect_Blocking is active, raise
34460 Program_Error if called from a protected operation, and increase the
34461 protected action nesting level.
34462 (Unlock_Entries): When pragma Detect_Blocking is active decrease the
34463 protected action nesting level.
34465 * s-tposen.adb (Lock_Entry): When pragma Detect_Blocking is active,
34466 raise Program_Error if called from a protected operation, and increase
34467 the protected action nesting level.
34468 (Lock_Read_Only_Entry): When pragma Detect_Blocking is active, raise
34469 Program_Error if called from a protected operation, and increase the
34470 protected action nesting level.
34471 (Protected_Single_Entry_Call): When pragma Detect_Blocking is active,
34472 raise Program_Error if called from a protected operation.
34473 (Timed_Protected_Single_Entry_Call): When pragma Detect_Blocking is
34474 active, raise Program_Error if called from a protected operation.
34475 (Unlock_Entry): When pragma Detect_Blocking is active decrease the
34476 protected action nesting level.
34478 * sem_util.adb (Check_Potentially_Blocking_Operation): Remove the
34479 insertion of the statement raising Program_Error. The run time
34480 contains the required machinery for handling that.
34482 * sem_util.ads: Change comment associated to procedure
34483 Check_Potentially_Blocking_Operation.
34484 This procedure does not insert a call for raising the exception because
34485 that is currently done by the run time.
34487 * raise.h (__gnat_set_globals): Pass the detect_blocking parameter.
34489 * init.c: Add the global variable __gl_detect_blocking that indicates
34490 whether pragma Detect_Blocking is active (1) or not (0). Needed for
34491 making the pragma available at run time.
34492 (__gnat_set_globals): Pass and update the detect_blocking parameter.
34494 * lib-writ.adb (Write_ALI): Set the DB flag in the ali file if
34495 pragma Detect_Blocking is active.
34497 * lib-writ.ads: Document the Detect_Blocking flag (DB) in ali files.
34499 * ali.adb (Scan_ALI): Set the Detect_Blocking value to true if the flag
34500 DB is found in the ali file. Any unit compiled with pragma
34501 Detect_Blocking active forces its effect in the whole partition.
34503 * a-retide.adb (Delay_Until): Raise Program_Error if pragma
34504 Detect_Blocking is active and delay is called from a protected
34507 * bindgen.adb (Gen_Adainit_Ada): When generating the call to
34508 __gnat_set_globals, pass 1 as Detect_Blocking parameter if pragma
34509 Detect_Blocking is active (0 otherwise).
34510 (Gen_Adainit_C): When generating the call to __gnat_set_globals, pass 1
34511 as Detect_Blocking parameter if pragma Detect_Blocking is active (0
34514 2004-09-09 Thomas Quinot <quinot@act-europe.fr>
34516 * gnat_rm.texi: Rename GNAT.Perfect_Hash.Generators to
34517 GNAT.Perfect_Hash_Generators, and remove the empty GNAT.Perfect_Hash
34520 * s-parint.ads, s-parint.adb (Get_RAS_Info): New subprogram.
34521 (Register_Receiving_Stub): Add Subp_Info formal parameter.
34522 Update API in placeholder implemetation of s-parint to reflect changes
34523 in distribution runtime library.
34525 * sem_ch3.adb (Expand_Derived_Record): Rename to
34526 Expand_Record_Extension.
34528 * sem_disp.adb (Check_Controlling_Formals): Improve error message for
34529 primitive operations of potentially distributed object types that have
34530 non-controlling anonymous access formals.
34532 * sem_dist.ads, sem_dist.adb (Build_RAS_Primitive_Specification): New
34534 New implementation of expansion for remote access-to-subprogram types,
34535 based on the RACW infrastructure.
34536 This version of sem_dist is compatible with PolyORB/DSA as well as
34539 * sem_prag.adb (Analyze_Pragma, case Pragma_Asynchronous): For a pragma
34540 Asynchrronous that applies to a remote access-to-subprogram type, mark
34541 the underlying RACW type as asynchronous.
34543 * link.c: FreeBSD uses GNU ld: set __gnat_objlist_file_supported and
34544 __gnat_using_gnu_linker to 1.
34546 * Makefile.rtl, impunit.adb, g-perhas.ads, g-pehage.ads,
34547 g-pehage.adb: Rename GNAT.Perfect_Hash.Generators to
34548 GNAT.Perfect_Hash_Generators, and remove the empty
34549 GNAT.Perfect_Hash package.
34551 * atree.adb: Minor reformatting
34553 * exp_ch3.adb (Expand_Derived_Record): Rename to
34554 Expand_Record_Extension.
34555 (Build_Record_Init_Proc.Build_Assignment): The default expression in
34556 a component declaration must remain attached at that point in the
34557 tree so New_Copy_Tree copies it if the enclosing record type is derived.
34558 It is therefore necessary to take a copy of the expression when building
34559 the corresponding assignment statement in the init proc.
34560 As a side effect, in the case of a derived record type, we now see the
34561 original expression, without any rewriting that could have occurred
34562 during expansion of the ancestor type's init proc, and we do not need
34563 to go back to Original_Node.
34565 * exp_ch3.ads (Expand_Derived_Record): Rename to
34566 Expand_Record_Extension.
34568 * exp_dist.ads, exp_dist.adb (Underlying_RACW_Type): New subprogram.
34569 Returns the RACW type used to implement a remote access-to-subprogram
34571 (Add_RAS_Proxy_And_Analyze, Build_Remote_Subprogram_Proxy_Type):
34572 New subprograms. Used to create a proxy tagged object for a remote
34573 subprogram. The proxy object is used as the designated object
34574 for RAS values on the same partition (unless All_Calls_Remote applies).
34575 (Build_Get_Unique_RP_Call): New subprogram. Build a call to
34576 System.Partition_Interface.Get_Unique_Remote_Pointer.
34577 (Add_RAS_Access_TSS, Add_RAS_Dereference_TSS):
34578 Renamed from Add_RAS_*_Attribute.
34579 (Add_Receiving_Stubs_To_Declarations): Generate a table of local
34581 New implementation of expansion for remote access-to-subprogram types,
34582 based on the RACW infrastructure.
34584 * exp_dist.ads (Copy_Specification): Update comment to note that this
34585 function can copy the specification from either a subprogram
34586 specification or an access-to-subprogram type definition.
34588 2004-09-09 Ed Schonberg <schonberg@gnat.com>
34590 * sem_type.adb (Disambiguate): Handle properly an accidental ambiguity
34591 in an instance, between an explicit subprogram an one inherited from a
34592 type derived from an actual.
34594 * exp_ch6.adb (Expand_N_Subprogram_Body): If polling is enabled, do not
34595 add a polling call if the subprogram is to be inlined by the back-end,
34596 to avoid repeated calls with multiple inlinings.
34598 * checks.adb (Apply_Alignment_Check): If the expression in the address
34599 clause is a call whose name is not a static entity (e.g. a dispatching
34600 call), treat as dynamic.
34602 2004-09-09 Robert Dewar <dewar@gnat.com>
34604 * g-trasym.ads: Minor reformatting
34606 * exp_ch3.adb (Component_Needs_Simple_Initialization): Don't except
34607 packed arrays, since unused bits are expected to be zero for a
34610 2004-09-09 Eric Botcazou <ebotcazou@act-europe.fr>
34612 * exp_pakd.ads: Fix an inacurracy and a couple of typos in the head
34615 2004-09-09 Pascal Obry <obry@gnat.com>
34617 * mdll.ads, mdll.adb (Build_Dynamic_Library): New parameter Map_File to
34618 enable map file generation. Add the right option to generate the map
34619 file if Map_File is set to True.
34621 * gnatdll.adb (Gen_Map_File): New variable.
34622 (Syntax): Add info about new -m (Map_File) option.
34623 (Parse_Command_Line): Add support for -m option.
34624 (gnatdll): Pass Gen_Map_File to Build_Dynamic_Library calls.
34625 Minor reformatting.
34627 2004-09-09 Laurent Pautet <pautet@act-europe.fr>
34629 * gnatls.adb: Add a very verbose mode -V. Such mode is required by the
34630 new gnatdist implementation.
34631 Define a subpackage isolating the output routines specific to this
34634 2004-09-09 Joel Brobecker <brobecker@gnat.com>
34636 * Makefile.rtl: (GNATRTL_NONTASKING_OBJS): Add g-dynhta.
34638 * gnat_ugn.texi (Main Subprograms): Fix typo. Deduced, not deducted.
34640 2004-09-09 Cyrille Comar <comar@act-europe.fr>
34642 * opt.adb (Set_Opt_Config_Switches): Use Ada_Version_Runtime to compile
34645 * opt.ads: Add Ada_Version_Runtime constant used to decide which
34646 version of the language is used to compile the run time.
34648 2004-09-09 Arnaud Charlet <charlet@act-europe.fr>
34650 * sem_util.adb (Requires_Transient_Scope): Re-enable handling
34651 of variable length temporaries for function return now that the
34652 back-end and gigi support it.
34654 2004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34656 * misc.c (gnat_print_type): Use TYPE_RM_SIZE_NUM.
34658 * trans.c (struct stmt_group): Delete field GLOBAL.
34659 (gnat_init_stmt_group): Do not initialize it.
34660 (call_to_gnu): Use save_expr, not protect_multiple_eval.
34661 (Exception_Handler_to_gnu_sjlj): Call build_int_cst, not build_int_2
34662 (gnat_to_gnu, case N_Character_Literal, N_String_Literal): Likewise.
34663 (gnat_to_gnu, case N_Compilation_Unit): Do not set GLOBAL in stmt group.
34664 (start_stmt_group): Likewise.
34665 (add_stmt, add_decl_expr): Rework handling of global DECL_EXPRs.
34667 * utils2.c (ggc.h): Include.
34668 (build_call_raise): Call build_int_cst, not build_int_2.
34670 * utils.c (gnat_init_decl_processing): Fix arg to
34671 build_common_tree_nodes.
34672 (create_subprog_type): Do not use SET_TYPE_CI_CO_LIST.
34673 (gnat_define_builtin): Set built_in_decls.
34674 (init_gigi_decls): Call build_int_cst, not build_int_2.
34676 * ada-tree.h (struct lang_decl, struct lang_type): Field is type tree.
34677 (GET_TYPE_LANG_SPECIFIC, SET_TYPE_LANG_SPECIFIC): New macros.
34678 (GET_DECL_LANG_SPECIFIC, SET_DECL_LANG_SPECIFIC): Likewise.
34679 (TYPE_CI_CO_LIST, SET_TYPE_CI_CO_LIST, TYPE_MODULE,
34680 SET_TYPE_MODULE): Use them.
34681 (TYPE_INDEX_TYPE, SET_TYPE_INDEX_TYPE, TYPE_DIGITS_VALUE): Likewise.
34682 (SET_TYPE_DIGITS_VALUE, TYPE_UNCONSTRAINED_ARRAY): Likewise.
34683 (SET_TYPE_UNCONSTRAINED_ARRAY, TYPE_ADA_SIZE,
34684 SET_TYPE_ADA_SIZE): Likewise.
34685 (TYPE_ACTUAL_BOUNDS, SET_TYPE_ACTUAL_BOUNDS): Likewise.
34686 (DECL_CONST_CORRESPONDING_VAR,
34687 SET_DECL_CONST_CORRESPONDING_VAR): Likewise.
34688 (DECL_ORIGINAL_FIELD, SET_DECL_ORIGINAL_FIELD): Likewise.
34689 (TYPE_RM_SIZE_INT, TYPE_RM_SIZE_ENUM, SET_TYPE_RM_SIZE_ENUM): Deleted.
34690 (TYPE_RM_SIZE_NUM): New macro.
34691 (TYPE_RM_SIZE): Modified to use above.
34693 * cuintp.c: (build_cst_from_int): New function.
34694 (UI_To_gnu): Use it.
34696 * decl.c (gnat_to_gnu_entity): Use TYPE_RM_SIZE_NUM.
34697 (make_type_from_size): Avoid changing TYPE_UNSIGNED of a type.
34698 (gnat_substitute_in_type, case ARRAY_TYPE): If old had a
34699 MIN_EXPR for the size, copy it into new.
34701 2004-09-01 Robert Dewar <dewar@gnat.com>
34703 * exp_ch6.adb (Expand_Call): Properly handle validity checks for
34704 packed indexed component where array is an IN OUT formal. This
34705 generated garbage code previously.
34707 * gnat_ugn.texi: Document -fverbose-asm
34709 * gnat-style.texi: Minor updates (note that boolean constants and
34710 variables are joined with AND/OR rather than short circuit forms).
34712 2004-09-01 Ed Schonberg <schonberg@gnat.com>
34714 * exp_util.adb (Safe_Unchecked_Type_Conversion): Conversion is safe if
34715 it is an upward conversion of an untagged type with no representation
34718 2004-09-01 Thomas Quinot <quinot@act-europe.fr>
34720 * rtsfind.ads: Move RCI_Subp_Info and RCI_Subp_Info_Array to
34721 System.Partition_Interface.
34723 * checks.adb (Apply_Access_Checks): Do not generate checks when
34724 expander is not active (but check for unset reference to prefix of
34727 * sem_prag.adb (Analyze_Pragma, case Pragma_Debug): Uniformly rewrite
34728 pragma Debug as an if statement with a constant condition, for
34729 consistent treatment of entity references contained within the
34730 enclosed procedure call.
34732 2004-09-01 Vincent Celier <celier@gnat.com>
34734 * bindgen.adb: (Set_EA_Last): New procedure
34735 (Gen_Exception_Table_Ada, Gen_Exception_Table_C): Use new procedure
34737 (Gen_Adafinal_Ada): If no finalization, adafinal does nothing
34738 (Gen_Output_File_Ada): Always call Gen_Adafinal_Ada, so that SAL can be
34739 linked without errors.
34740 (Gen_Exception_Table_Ada): Correct bugs when generating code for arrays
34742 (Gen_Exception_Table_C): Correct same bugs
34744 * vms_data.ads: Add new qualifier /VERBOSE_ASM to GCC_Switches
34746 * g-os_lib.adb (Normalize_Pathname.Get_Directory): When Dir is empty,
34747 on Windows, make sure that the drive letter is in upper case.
34749 * g-os_lib.ads (Normalize_Pathname): Add a comment to indicate that on
34750 Windows, when the drive letter is added and Case_Sensitive is True, the
34751 drive letter is forced to upper case.
34753 * mlib-tgt-irix.adb (Build_Dynamic_Library): Transfer all -lxxx options
34754 to Options_2 for the call to MLib.Utl.Gcc.
34756 * bld.adb (Put_Include_Project): Use '/', not '\' on Windows as
34757 directory separator when defining BASE_DIR.
34759 2004-09-01 Pascal Obry <obry@gnat.com>
34761 * gprcmd.adb (Extend): Do not output trailing directory separator. This
34762 is not needed and it confuses Windows GNU/make which does not report
34763 directory terminated by a slash as a directory.
34764 (gprcmd): Idem for "pwd" internal command.
34766 * Makefile.generic: Use __GPRCOLON__ instead of pipe character in
34767 target names rewrite to fix regressions with recent version of
34768 GNU/make. Starting with GNU/make 3.80 the pipe character was not
34769 handled properly anymore.
34771 2004-09-01 Andreas Schwab <schwab@suse.de>
34773 * Make-lang.in (EXTRA_GNATBIND_OBJS): Revert last change.
34774 * raise.c [!IN_RTS]: Undef abort.
34776 2004-08-27 Nathan Sidwell <nathan@codesourcery.com>
34778 * utils2.c (build_allocator): Use ssize_int.
34780 * utils.c (gnat_init_decl_processing): Ada has a signed sizetype.
34782 2004-08-27 Andreas Schwab <schwab@suse.de>
34784 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add errors.o.
34786 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
34787 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
34789 * ada-tree.h (TYPE_RM_SIZE_INT): Use TYPE_LANG_SLOT_1.
34791 2004-08-25 Nathan Sidwell <nathan@codesourcery.com>
34793 * cuintp.c (UI_To_gnu): Adjust build_int_cst calls.
34794 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
34795 * utils.c (init_gigi_decls): Likewise.
34796 * utils2.c (build_call_raise, build_allocator): Likewise.
34798 2004-08-24 Nathan Sidwell <nathan@codesourcery.com>
34800 * utils.c (gnat_init_decl_processing): Adjust
34801 build_common_tree_nodes call.
34803 2004-08-20 Nathan Sidwell <nathan@codesourcery.com>
34805 * utils2.c (build_allocator): Use build_int_cst for negative
34808 2004-08-18 Richard Henderson <rth@redhat.com>
34810 * misc.c (LANG_HOOKS_HONOR_READONLY): Remove.
34812 2004-08-16 Nathan Sidwell <nathan@codesourcery.com>
34814 * cuintp.c (UI_To_gnu): Be more conservative with build_int_cst
34816 * trans.c (Exception_Handler_to_gnu_sjlj): Likewise.
34817 (gnat_to_gnu): Likewise.
34819 2004-08-16 Pascal Obry <obry@gnat.com>
34821 * adaint.c (__gnat_prj_add_obj_files): Set to 0 only on Win32 for GCC
34822 backend prior to GCC 3.4. With GCC 3.4 we are using the GCC's shared
34823 option and not mdll anymore. Update comment.
34825 2004-08-16 Pascal Obry <obry@gnat.com>
34827 * bld.adb (Put_Include_Project): Properly handle directory separators
34830 2004-08-16 Ed Schonberg <schonberg@gnat.com>
34832 * sem_ch4.adb (Try_Object_Operation): Restructure code. Optimize by
34833 decreasing the number of allocated junk nodes while searching for the
34834 appropriate subprogram.
34836 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
34838 * cuintp.c (UI_To_gnu): Use build_int_cst..
34839 * trans.c (Exception_Handler_to_gnu_sjlj, gnat_to_gnu): Likewise.
34840 * utils.c (init_gigi_decls): Likewise.
34841 * utils2.c (build_call_raise): Likewise.
34843 2004-08-13 Olivier Hainque <hainque@act-europe.fr>
34845 * decl.c (gnat_to_gnu_entity) <E_Variable>: When building an allocator
34846 for a global aliased object with a variable size and an unconstrained
34847 nominal subtype, pretend there is no initializer if the one we have is
34848 incomplete, and avoid referencing an inexistant component in there. The
34849 part we have will be rebuilt anyway and the reference may confuse
34850 further operations.
34852 2004-08-13 Thomas Quinot <quinot@act-europe.fr>
34854 * einfo.ads: Minor reformatting
34856 * lib-writ.adb (Output_Main_Program_Line): Do not set parameter
34857 restrictions in the ALI if we only want to warn about violations.
34859 2004-08-13 Vincent Celier <celier@gnat.com>
34861 * ali.adb (Scan_ALI): Initialize component Body_Needed_For_SAL to False
34862 when creating a new Unit_Record in table Units.
34864 * gnatls.adb (Output_Unit): In verbose mode, output the restrictions
34865 that are violated, if any.
34867 * prj-nmsc.adb (Ada_Check.Get_Path_Names_And_Record_Sources): Do not
34868 add directory separator if path already ends with a directory separator.
34870 2004-08-13 Ed Schonberg <schonberg@gnat.com>
34872 * rtsfind.adb (Entity_Not_Defined): If the error ocurrs in a predefined
34873 unit, this is an attempt to inline a construct that is not available in
34874 the current restricted mode, so abort rather than trying to continue.
34876 * sem_ch3.adb (Build_Underlying_Full_View): If the new type has
34877 discriminants that rename those of the parent, recover names of
34878 original discriminants for the constraint on the full view of the
34880 (Complete_Private_Subtype): Do not create a subtype declaration if the
34881 subtype is an itype.
34883 * gnat_rm.texi: Added section on implementation of discriminated
34884 records with default values for discriminants.
34886 2004-08-13 Ed Schonberg <schonberg@gnat.com>
34889 * sem_res.adb (Make_Call_Into_Operator): Handle properly the case where
34890 the second operand is overloaded.
34892 2004-08-10 Richard Henderson <rth@redhat.com>
34894 * utils.c (gnat_install_builtins): Remove __builtin_stack_alloc,
34895 add __builtin_alloca.
34897 2004-08-10 Richard Henderson <rth@redhat.com>
34899 * config-lang.in (boot_language): Yes.
34901 2004-08-09 Thomas Quinot <quinot@act-europe.fr>
34903 * g-socket.adb (Abort_Selector): Initialize Buf to prevent valgrind
34904 from complaining on potential uninitialized reference.
34905 Change calls to GNAT.Sockets.Thin.Is_Socket_In_Set to account for
34906 new specification and test explicitly for non-zero return value.
34908 * g-socthi.ads (Is_Socket_In_Set): Declare imported function as
34909 returning C.int, to avoid using a derived boolean type.
34911 * exp_ch5.adb (Make_Tag_Ctrl_Assignments): Use
34912 Duplicate_Subexpr_No_Checks in preference to direct use of
34913 Remove_Side_Effects and New_Copy_Tree.
34914 Clear Comes_From_Source on prefix of 'Size attribute reference.
34916 * g-socthi.adb, g-socthi-vms.adb, g-socthi-mingw.adb,
34917 g-socthi-vxworks.adb: Change calls to
34918 GNAT.Sockets.Thin.Is_Socket_In_Set to account for new specification
34919 and test explicitly for non-zero return value.
34921 * g-socthi-vms.ads, g-socthi-mingw.ads, g-socthi-vxworks.ads:
34922 (Is_Socket_In_Set): Declare imported function as returning C.int, to
34923 avoid using a derived boolean type.
34925 2004-08-09 Albert Lee <lee@gnat.com>
34927 * system-irix-n32.ads: Refine tasking priority constants for IRIX.
34929 2004-08-09 Pascal Obry <obry@gnat.com>
34931 * gnat_ugn.texi: Document new way to build DLLs on Windows using
34932 GCC's -shared option.
34934 * mlib-tgt-mingw.adb (Build_Dynamic_Library): Pass GCC's options into
34935 Options_2 parameter (options put after object files).
34937 2004-08-09 Olivier Hainque <hainque@act-europe.fr>
34939 * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Adjust condition to
34940 ignore overflows on low and high bounds of an index to also account for
34941 differences in signedness between sizetype and gnu_index_subtype.
34942 These are as legitimate as the ones caused by a lower TYPE_PRECISION
34945 2004-08-09 Robert Dewar <dewar@gnat.com>
34947 * s-solita.ads, s-solita.adb: Minor reformatting
34949 * gnat_rm.texi: Add documentation for pragma Profile (Restricted)
34950 Move pragma Restricted_Run_Time, No_Run_Time, Ravenscar to new
34951 obsolescent section
34952 Add note that No_Implicit_Conditionals does not suppress
34953 run time constraint checks.
34955 * vms_conv.ads: Minor reformatting
34957 * s-secsta.adb: Use SS_Ptr instead of Mark_Id as stack pointer (cleanup
34958 and necessary for following change).
34959 (Mark): Return new format Mark_Id containing sec stack address
34960 (Release): Use sec stack address from Mark_Id avoiding Self call
34962 * s-secsta.ads: Define SS_Ptr to be used instead of Mark_Id as stack
34963 pointer (cleanup and necessary for following change).
34964 Define Mark_Id as record containing address of secondary stack, that way
34965 Release does not need to find the stack again, decreasing the number of
34966 calls to Self and improving efficiency.
34968 * sem_util.ads: Add a ??? comment for Is_Local_Variable_Reference
34970 * sem_ch5.adb (Analyze_Case_Statement): Add circuitry to track value of
34971 case variable into the individual case branches when possible.
34973 * sem_ch11.adb: Minor reformatting
34975 * prj.ads: Correct spelling of suffixs
34977 * prj-nmsc.adb: Minor reformatting
34978 Correct spelling suffixs throughout (also in identifiers)
34980 * freeze.adb: Minor spelling correction
34982 * exp_ch2.adb: Cleanups to handling of Current_Value
34983 (no functional effect).
34985 * bld.adb: Correct spelling of suffixs
34987 * einfo.adb (Enclosing_Dynamic_Scope): Defend against junk argument
34989 2004-08-09 Ed Schonberg <schonberg@gnat.com>
34992 * sem_ch7.adb (Install_Private_Declarations): In the body of the
34993 package or of a child, private entities are both immediately_visible
34996 2004-08-09 Ed Schonberg <schonberg@gnat.com>
34998 * sem_eval.adb (Eval_Integer_Literal): If the context is Any_Integer,
34999 there are no range checks on the value of the literal.
35001 * exp_ch7.adb (Insert_Actions_In_Scope_Around): If the node being
35002 wrapped is the triggering alternative of an asynchronous select, action
35003 statements mustbe inserted before the select itself.
35005 * sem_attr.adb (Analyze_Attribute, case 'Size): Handle properly the
35006 case where the prefix is a protected function call.
35007 (Resolve_Attribute, case 'Access): The attribute reference on a
35008 subprogram is legal in a generic body if the subprogram is declared
35011 2004-08-09 Vincent Celier <celier@gnat.com>
35013 * makegpr.adb (Build_Library): Link with g++ if C++ is one of the
35014 languages, otherwise building the library may fail with unresolved
35016 (Compile_Sources): Do not build libraries if -c switch is used
35018 * gnatlink.adb (Process_Args): New switches -M and -Mmap
35019 (Write_Usage): If map file creation is supported, output new switches
35021 (Gnatlink): When -M is specified, add the necessary switch(es) to the
35022 gcc call, when supported.
35024 * Makefile.in: Added indepsw.o to the object list for gnatlink
35025 Specified the AIX, GNU/Linux and Windows versions of indepsw.adb
35027 * indepsw-aix.adb, indepsw-linux.adb, indepsw-mingw.adb,
35028 indepsw.adb, indepsw.ads: New files.
35030 2004-08-09 Bernard Banner <banner@gnat.com>
35032 * system-vxworks-x86.ads, s-vxwork-x86.ads: New files.
35034 * Makefile.in: add section for vxworks x86
35036 2004-08-09 Hristian Kirtchev <kirtchev@gnat.com>
35038 * exp_ch3.adb (Build_Init_Statements): Add extra condition to deal with
35039 per-object constrained components where the discriminant is of an
35041 (Build_Record_Init_Proc): Add condition to prevent the inheritance of
35042 the parent initialization procedure for derived Unchecked_Unions.
35043 Instead, derived Unchecked_Unions build their own initialization
35045 (Build_Variant_Record_Equality): Implement Unchecked_Union equality.
35046 Check the body of the subprogram for details.
35047 (Freeze_Record_Type): Prevent the inheritance of discriminant checking
35048 functions for derived Unchecked_Union types by introducing a condition.
35049 Allow the creation of TSS equality functions for Unchecked_Unions.
35050 (Make_Eq_Case): Rename formal parameter Node to E in function signature.
35051 Add formal parameter Discr to function signature. Discr is used to
35052 control the generated case statement for Unchecked_Union types.
35053 (Make_Eq_If): Rename formal parameter Node to E in function signature.
35055 * exp_ch4.adb (Build_Equality_Call): Implement equality calls for
35057 Check the body of the subprogram for details.
35058 (Expand_Composite_Equality): Augment composite type equality to include
35059 correct handling of Unchecked_Union components.
35060 (Expand_N_In): Add condition to detect illegal membership tests when the
35061 subtype mark is a constrained Unchecked_Union and the expression lacks
35062 inferable discriminants, and build a Raise_Program_Error node.
35063 (Expand_N_Op_Eq): Add function Has_Unconstrained_UU_Component. Used
35064 to detect types that contain components of unconstrained Unchecked_Union
35065 subtype. Add condition to detect equality between types that have an
35066 unconstrained Unchecked_Union component, and build a Raise_Program_Error
35067 node. Add condition to detect equality between Unchecked_Union types
35068 that lack inferable discriminants, and build a Raise_Program_Error node.
35069 Otherwise build a TSS equality function call.
35070 (Expand_N_Type_Conversion): Add condition to detect illegal conversions
35071 from a derived Unchecked_Union to an unconstrained non-Unchecked_Union
35072 with the operand lacking inferable discriminants, and build a Raise_
35073 Program_Error node.
35074 (Expand_Record_Equality): Remove guard that prevents Unchecked_Union
35075 composite equality.
35076 (Has_Inferable_Discriminants): Implement new predicate for objects and
35077 expressions of Unchecked_Union type. Check the body of subprogram for
35079 (Has_Unconstrained_UU_Components): Add function
35080 Component_Is_Unconstrained_UU. It is used to detect whether a single
35081 component is of an unconstrained Unchecked_Union subtype. Add function
35082 Variant_Is_Unconstrained_UU. It is used to detect whether a single
35083 component inside a variant is of an unconstrained Unchecked_Union type.
35085 * exp_ch5.adb (Expand_Assign_Record): Add condition to copy the
35086 inferred discriminant values. Add condition to generate a case
35087 statement with an inferred discriminant as the switch.
35088 (Make_Component_List_Assign): Introduce a Boolean flag that determines
35089 the behaviour of the subprogram in the presence of an Unchecked_Union.
35090 Add condition to trigger the usage of the inferred discriminant value
35091 as the generated case statement switch.
35092 (Make_Field_Assign): Introduce a Boolean flag that determines the
35093 behaviour of the subprogram in the presence of an Unchecked_Union. Add
35094 condition to trigger the usage of the inferred discriminant value as
35095 the right-hand side of the generated assignment.
35097 * exp_ch6.adb (Expand_Call): Add condition to skip extra actual
35098 parameter generation when dealing with Unchecked_Unions.
35100 * checks.adb (Apply_Discriminant_Check): Do not apply discriminant
35101 checks for Unchecked_Unions.
35103 * einfo.ads: Update comment on usage of flag Has_Per_Object_Constraint
35105 * exp_attr.adb (Expand_N_Attribute_Reference): Produce
35106 Raise_Program_Error nodes for the execution of Read and Write
35107 attributes of Unchecked_Union types and the execution of Input and
35108 Output attributes of Unchecked_Union types that lack default
35109 discriminant values.
35111 * sem_prag.adb (Analyze_Pragma): Remodel the analysis of pragma
35112 Unchecked_Union. Add procedure Check_Component. It is used to inspect
35113 per-object constrained components of Unchecked_Unions for being
35114 Unchecked_Unions themselves. Add procedure Check_Variant. It is used to
35115 check individual components withing a variant.
35117 * sem_res.adb (Resolve_Comparison_Op): Remove guard that prevents
35118 comparison of Unchecked_Unions.
35119 (Resolve_Equality_OP): Remove guard that prevents equality between
35122 * sem_util.adb (Build_Component_Subtype): Add guard to prevent creation
35123 of component subtypes for Unchecked_Union components.
35124 (Get_Actual_Subtype): Add condition that returs the Unchecked_Union type
35125 since it is the actual subtype.
35127 * sem_ch12.adb (Instantiate_Type): Add condition to detect the correct
35128 pass of Unchecked_Union subtypes as generic actuals to formal types
35129 that lack known_discriminant_parts or that are derived Unchecked_Union
35130 types, and do nothing. In any other case, produce an error message.
35132 * sem_ch3.adb (Analyze_Component_Declaration): Add function
35133 Contains_POC. It determines whether a constraint uses the discriminant
35134 of an enclosing record type.
35135 Add condition to detect per-object constrained component and set the
35137 (Derived_Type_Declaration): Remove guard that prevents derivation from
35138 Unchecked_Union types.
35139 (Process_Subtype): Remove quard that prevents the creation of Unchecked_
35142 * sem_ch4.adb (Analyze_Selected_Component): Correct the detection of
35143 references to Unchecked_Union discriminants.
35145 * sem_ch6.adb (Create_Extra_Formals): Add condition to skip extra
35146 formal generation when dealing with Unchecked_Unions.
35147 (Set_Actual_Subtypes): Add condition to prevent generation of actual
35148 subtypes for Unchecked_Unions.
35150 * sem_ch7.adb (Analyze_Package_Specification): Add procedure
35151 Inspect_Unchecked_Union_Completion. It is used to detect incorrect
35152 completions of discriminated partial views by Unchecked_Unions and
35153 produce an error message.
35155 2004-08-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35157 * trans.c (struct stmt_group): New field, GLOBAL.
35158 (global_stmt_group, gnu_elab_proc_decl, build_unit_elab): Deleted.
35159 (struct elab_info): New struct.
35160 (elab_info_list, gnu_elab_proc_stack): New variables.
35161 (Compilation_Unit_to_gnu): New procedure.
35162 (gigi): Call it and also handle elaboration procs we've saved.
35163 (gnat_init_stmt_group): Don't set global_stmt_group; instead initialize
35164 global field from parent.
35165 (gnat_to_gnu): Get decl from gnu_elab_proc_stack.
35166 (gnat_to_gnu, case N_Compilation_Unit): Call Compilation_Unit_to_gnu.
35167 (start_stmt_group): Initialize global field from parent.
35168 (add_decl_expr): Set to global for current statement group.
35169 (gnat_gimplify_expr, case NULL_EXPR): Add operand 0 to pre list, not
35172 * utils.c (global_bindings_p): True when no current_function_decl; no
35173 longer check current_binding_level.
35175 2004-08-09 Ben Brosgol <brosgol@gnat.com>
35177 * xgnatugn.adb: Added logic to deal with @ifset/@ifclear for edition
35180 * gnat_rm.texi, gnat_ugn.texi: Added edition conditionalization logic.
35182 2004-08-06 Andreas Schwab <schwab@suse.de>
35184 * utils.c (gnat_define_builtin): Remove second parameter of
35186 (begin_subprog_body): Likewise.
35188 2004-07-26 Arnaud Charlet <charlet@act-europe.fr>
35190 * sem_util.adb (Requires_Transient_Scope): Temporarily disable
35191 optimization, not supported by the tree-ssa back-end.
35193 2004-07-26 Olivier Hainque <hainque@act-europe.fr>
35195 * s-mastop-irix.adb: Update comments.
35197 * a-except.adb (Exception_Information): Raise Constraint_Error if
35198 exception Id is Null_Id.
35199 This is required behavior, which is more reliably and clearly checked
35200 at the top level interface level.
35202 2004-07-26 Javier Miranda <miranda@gnat.com>
35204 * exp_aggr.adb (Build_Array_Aggr_Code): Do not build the initialization
35205 call if a component has no default_expression and the box is used.
35207 * sem_aggr.adb (Resolve_Array_Aggregate): If a component has no
35208 default_expression and you use box, it behaves as if you had declared a
35209 stand-alone object.
35210 (Resolve_Record_Aggregate): If a component has no default_expression and
35211 you use box, it behaves as if you had declared a stand-alone object.
35213 * sem_ch10.adb (Install_Siblings): Do not make visible the private
35214 entities of private-with siblings.
35216 2004-07-26 Ed Schonberg <schonberg@gnat.com>
35218 * sem_ch3.adb (Build_Underlying_Full_View): If this is the full view
35219 for a component of an itype, set the parent pointer for analysis,
35220 there is no list in which to insert it.
35222 * sem_res.adb (Resolve): Call Rewrite_Renamed_Operator only for
35223 bona-fide renamings, not for inherited operations.
35225 * exp_ch4.adb (Expand_Allocator_Expression): If the allocator is an
35226 actual for a formal that is an access parameter, create local
35227 finalization list even if the expression is not an aggregate.
35229 2004-07-26 Ed Schonberg <schonberg@gnat.com>
35232 * sem_ch8.adb (Attribute_Renaming, Check_Library_Level_Renaming):
35233 Diagnose properly illegal subprogram renamings that are library units.
35235 2004-07-26 Ed Schonberg <schonberg@gnat.com>
35238 * sem_util.adb (Is_OK_Variable_For_Out_Formal): If actual is a type
35239 conversion rewritten as an unchecked conversion, check that original
35240 expression is a variable.
35242 * exp_ch4.adb (Expand_N_Type_Conversion): If rewriting as an
35243 unchecked_conversion, create new node rather than rewriting in place,
35244 to preserve original construct.
35246 2004-07-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35248 * gigi.h (gnat_expand_body): Deleted.
35250 * Make-lang.in: (trans.o): Depends on function.h.
35252 * misc.c: (gnat_expand_body): Moved to here.
35254 * trans.c (gnat_expand_body_1): Deleted.
35255 (gnat_expand_body): Moved from here.
35256 (gnat_to_gnu): N_Implicit_Label_Declaration forces being in elab proc.
35257 (add_stmt): Check for marked visited with global_bindings_p.
35258 (gnat_gimplify_expr, case COMPONENT_REF): New case.
35259 (gnat_gimplify_expr, case NULL_EXPR): Set TREE_NO_WARNING for temp.
35261 * utils2.c (build_binary_op, case MODIFY_EXPR): Put LHS in a
35262 VIEW_CONVERT_EXPR if not operation type.
35264 * utils.c (update_pointer_to): Set DECL_ORIGINAL_FIELD for
35267 * decl.c, cuintp.c, gigi.h, misc.c, trans.c, utils.c, utils2.c: Minor
35268 changes: reformatting of negation operators, removing unneeded
35269 inequality comparison with zero, converting equality comparisons with
35270 zero to negations, changing int/0/1 to bool/false/true, replace calls
35271 to gigi_abort with abort, and various other similar changes.
35273 2004-07-26 Vincent Celier <celier@gnat.com>
35275 * gnatcmd.adb (GNATCmd): Add processing for new built-in command
35278 * make.adb (Gnatmake): Fail when a library is not present and there is
35279 no object directory.
35281 * mlib-prj.adb (Check_Library): No need to check if the library needs
35282 to be rebuilt if there is no object directory, hence no object files
35283 to build the library.
35285 * opt.ads (Setup_Projects): New Boolean flag.
35287 * prj-nmsc.adb (Locate_Directory): New parameter Project, Kind and
35289 Create directory when Kind /= "" and in "gnat setup". Report error if
35290 directory cannot be created.
35291 (Ada_Check): Create library interface copy dir if it does not exist
35292 and we are in "gnat setup".
35293 (Find_Sources): No error if in "gnat setup" and no Ada sources were
35295 (Language_Independent_Check): Create object directory, exec directory
35296 and/or library directory if they do not exist and we are in
35299 * vms_conv.ads: (Command_Type): New command Setup.
35301 * vms_conv.adb (Initialize): Add Setup component of Cammand_List.
35303 * vms_data.ads: Add qualifiers/switches for new built-in command
35306 2004-07-25 Richard Henderson <rth@redhat.com>
35308 * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and
35309 DECL_IGNORED_P on RESULT_DECL.
35311 2004-07-20 Olivier Hainque <hainque@act-europe.fr>
35313 * a-elchha.adb (Last_Chance_Handler): Remove the bogus buffer dynamic
35314 allocation and potentially overflowing update with
35315 Tailored_Exception_Information. Use the sec-stack free procedural
35316 interface to output Exception_Information instead.
35318 * a-except.adb (To_Stderr): New subprogram for character, and string
35319 version moved from a-exextr to be visible from other separate units.
35320 (Tailored_Exception_Information): Remove the procedural version,
35321 previously used by the default Last_Chance_Handler and not any more.
35322 Adjust various comments.
35324 * a-exexda.adb: Generalize the exception information procedural
35325 interface, to minimize the use of secondary stack and the need for
35326 local buffers when the info is to be output to stderr:
35327 (Address_Image): Removed.
35328 (Append_Info_Character): New subprogram, checking for overflows and
35329 outputing to stderr if buffer to fill is of length 0.
35330 (Append_Info_String): Output to stderr if buffer to fill is of length 0.
35331 (Append_Info_Address, Append_Info_Exception_Name,
35332 Append_Info_Exception_Message, Append_Info_Basic_Exception_Information,
35333 Append_Info_Basic_Exception_Traceback,
35334 Append_Info_Exception_Information): New subprograms.
35335 (Append_Info_Nat, Append_Info_NL): Use Append_Info_Character.
35336 (Basic_Exception_Info_Maxlength, Basic_Exception_Tback_Maxlength,
35337 Exception_Info_Maxlength, Exception_Name_Length,
35338 Exception_Message_Length): New subprograms.
35339 (Exception_Information): Use Append_Info_Exception_Information.
35340 (Tailored_Exception_Information): Use
35341 Append_Info_Basic_Exception_Information.
35342 Export services for the default Last_Chance_Handler.
35344 * a-exextr.adb (To_Stderr): Remove. Now in a-except to be usable by
35345 other separate units.
35347 2004-07-20 Vincent Celier <celier@gnat.com>
35349 * clean.adb, mlib-utl.adb, osint.adb, makegpr.adb: Minor reformatting.
35351 2004-07-20 Ed Schonberg <schonberg@gnat.com>
35353 * freeze.adb (Freeze_Entity): If entity is a discriminated record type,
35354 emit itype references for the designated types of component types that
35355 are declared outside of the full record declaration, and that may
35356 denote a partial view of that record type.
35358 2004-07-20 Ed Schonberg <schonberg@gnat.com>
35361 * sem_ch3.adb (Build_Discriminated_Subtype): Do not attach a subtype
35362 which is the designated type in an access component declaration, to the
35363 list of incomplete dependents of the parent type, to avoid elaboration
35364 issues with out-of-scope subtypes.
35365 (Complete_Private_Subtype): Recompute Has_Unknown_Discriminants from the
35366 full view of the parent.
35368 2004-07-20 Ed Schonberg <schonberg@gnat.com>
35371 * sem_ch8.adb (Find_Expanded_Name): If name is overloaded, reject
35372 entities that are hidden, such as references to generic actuals
35373 outside an instance.
35375 2004-07-20 Javier Miranda <miranda@gnat.com>
35377 * sem_ch4.adb (Try_Object_Operation): New subprogram that gives
35378 support to the new notation.
35379 (Analyze_Selected_Component): Add call to Try_Object_Operation.
35381 2004-07-20 Jose Ruiz <ruiz@act-europe.fr>
35383 * s-taprob.adb: Adding the elaboration code required for initializing
35384 the tasking soft links that are common to the full and the restricted
35387 * s-tarest.adb (Init_RTS): Tasking soft links that are shared with the
35388 restricted run time has been moved to the package
35389 System.Soft_Links.Tasking.
35391 * s-tasini.adb (Init_RTS): Tasking soft links that are shared with the
35392 restricted run time has been moved to the package
35393 System.Soft_Links.Tasking.
35395 * Makefile.rtl: Add entry for s-solita.o in run-time library list.
35397 * s-solita.ads, s-solita.adb: New files.
35399 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35401 * trans.c (Identifier_to_gnu, Pragma_to_gnu, Attribute_to_gnu,
35402 Case_Statement_to_gnu): Split off from gnat_to_gnu.
35403 (Loop_Statement_to_gnu, Subprogram_Body_to_gnu, call_to_gnu,
35404 Handled_Sequence_Of_Statements_to_gnu, Exception_Handler_to_gnu_sjlj,
35405 Exception_Handler_to_gnu_zcx): Likewise.
35407 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
35409 * gigi.h (builtin_function): Declare.
35411 2004-07-15 Robert Dewar <dewar@gnat.com>
35413 * makegpr.adb, s-secsta.ads, sem_ch3.adb, sem_case.adb: Minor
35416 * gnat_ugn.texi: Add instantiation of direct_io or sequential_io with
35417 access values as an example of a warning.
35419 * gnat_rm.texi: Document new attribute Has_Access_Values
35421 * gnat-style.texi: Document that box comments belong on nested
35424 * sem_util.ads (Has_Access_Values): Improved documentation
35426 * s-finimp.ads, s-finimp.adb: Fix spelling error in comment
35428 * sem_prag.adb (Check_Duplicated_Export_Name): New procedure
35429 (Process_Interface_Name): Call to this new procedure
35430 (Set_Extended_Import_Export_External_Name): Call to this new procedure
35432 * s-mastop-x86.adb, 9drpc.adb: Fix spelling error in comment
35434 * a-direio.ads, a-sequio.ads: Warn if Element_Type has access values
35436 * einfo.ads: Minor comment typo fixed
35438 2004-07-15 Jose Ruiz <ruiz@act-europe.fr>
35440 * snames.adb: Add _atcb.
35442 * snames.ads: Add Name_uATCB.
35444 * s-tarest.adb (Create_Restricted_Task): ATCBs are always preallocated
35445 (in the expanded code) when using the restricted run time.
35447 * s-tarest.ads (Create_Restricted_Task): Created_Task transformed into
35448 a in parameter in order to allow ATCBs to be preallocated (in the
35451 * s-taskin.adb (Initialize_ATCB): T converted into a in parameter in
35452 order to allow ATCBs to be preallocated. In case of error, the ATCB is
35453 deallocated in System.Tasking.Stages.
35455 * s-taskin.ads (Initialize_ATCB): T converted into a in parameter in
35456 order to allow ATCBs to be preallocated.
35458 * s-tassta.adb (Create_Task): In case of error the ATCB is deallocated
35459 here. It was previously done in Initialize_ATCB.
35461 * rtsfind.ads: Make the Ada_Task_Control_Block visible.
35463 * exp_ch9.adb: Preallocate the Ada_Task_Control_Block when using the
35464 Restricted run time.
35466 * exp_ch3.adb: When using the Restricted run time, pass the
35467 preallocated Ada_Task_Control_Block when creating a task.
35469 2004-07-15 Ed Schonberg <schonberg@gnat.com>
35471 * sem_util.adb (Normalize_Actuals): If there are no actuals on a
35472 function call that is itself an actual in an enclosing call, diagnose
35473 problem here rather than assuming that resolution will catch it.
35475 * sem_ch7.adb (Analyze_Package_Specification): If the specification is
35476 the local copy of a generic unit for a formal package, and the generic
35477 is a child unit, install private part of ancestors before compiling
35478 private part of spec.
35480 * sem_cat.adb (Validate_Categorization_Dependency): Simplify code to
35481 use scope entities rather than tree structures, to handle properly
35482 parent units that are instances rewritten as bodies for inlining
35485 * sem_ch10.adb (Get_Parent_Entity, Implicit_With_On_Parent,
35486 Remove_Parents): Handle properly a parent unit that is an
35487 instantiation, when the unit has been rewritten as a body for inlining
35490 * par.adb (Goto_List): Global variable to collect goto statements in a
35491 given unit, for use in detecting natural loops.
35493 * par-ch5.adb (P_Goto_Statement): Add goto to global Goto_List, for
35494 use in detecting natural loops.
35496 * par-labl.adb (Find_Natural_Loops): Recognize loops create by
35497 backwards goto's, and rewrite as a infinite loop, to improve locality
35500 * exp_util.adb (Force_Evaluation): Recognize a left-hand side
35501 subcomponent that includes an indexed reference, to prevent the
35502 generation of copies that would miscompile the desired assignment
35504 (Build_Task_Image_Decls): Add a numeric suffix to
35505 generated name for string variable, to avoid spurious conflicts with
35506 the name of the type of a single protected object.
35508 * exp_ch4.adb (Expand_Array_Equality): If indices are distinct, use a
35509 loop with an explicit exit statement, to avoid generating an
35510 out-of-range value with 'Succ leading to spurious constraint_errors
35511 when compiling with -gnatVo.
35513 2004-07-15 Thomas Quinot <quinot@act-europe.fr>
35515 * sem_ch4.adb (Analyze_Slice): Always call Analyze on the prefix: it
35516 might not be analyzed yet, even if its Etype is already set (case of an
35517 unchecked conversion built using Unchecked_Convert_To, for example).
35518 If the prefix has already been analyzed, this will be a nop anyway.
35520 * exp_ch5.adb (Make_Tag_Ctrl_Assignment): For an assignment of a
35521 controller type, or an assignment of a record type with controlled
35522 components, copy only user data, and leave the finalization chain
35523 pointers untouched.
35525 2004-07-15 Vincent Celier <celier@gnat.com>
35527 * make.adb (Collect_Arguments): Improve error message when attempting
35528 to compile a source not part of any project, when -x is not used.
35530 * prj.ads: (Defined_Variable_Kind): New subtype
35532 * prj-attr.adb (Register_New_Package): Two new procedures to register
35533 a package with or without its attributes.
35534 (Register_New_Attribute): Mew procedure to register a new attribute in a
35536 New attribute oriented subprograms: Attribute_Node_Id_Of,
35537 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
35538 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
35540 New package oriented subprograms: Package_Node_Id_Of,
35541 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
35543 * prj-attr.ads (Attribute_Node_Id): Now a private, self initialized
35545 (Package_Node_Id): Now a private, self initialized type
35546 (Register_New_Package): New procedure to register a package with its
35548 New attribute oriented subprograms: Attribute_Node_Id_Of,
35549 Attribute_Kind_Of, Set_Attribute_Kind_Of, Attribute_Name_Of,
35550 Variable_Kind_Of, Set_Variable_Kind_Of, Optional_Index_Of,
35552 New package oriented subprograms: Package_Node_Id_Of,
35553 Add_Unknown_Package, First_Attribute_Of, Add_Attribute.
35555 * prj-dect.adb (Parse_Attribute_Declaration,
35556 Parse_Package_Declaration): Adapt to new spec of Prj.Attr.
35558 * prj-makr.adb (Make): Parse existing project file before creating
35559 other files. Fail if there was an error during parsing.
35561 * prj-proc.adb (Add_Attributes, Process_Declarative_Items): Adapt to
35562 new spec of Prj.Attr.
35564 * prj-strt.adb (Attribute_Reference, Parse_Variable_Reference): Adapt
35565 to new spec of Prj.Attr.
35567 2004-07-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35569 * utils2.c: Fix typo in comment.
35571 2004-07-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35573 * trans.c (add_decl_expr): Clear TREE_READONLY if clear DECL_INITIAL.
35574 * utils.c (unchecked_convert): Don't do two VIEW_CONVERT_EXPRs.
35576 2004-07-14 Andreas Schwab <schwab@suse.de>
35578 * trans.c (gnat_init_stmt_group): Remove duplicate definition.
35580 2004-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35582 * decl.c: (gnat_to_gnu_entity, object case): Convert initializer to
35584 (gnat_to_gnu_entity, case E_Record_Subtype): Properly set
35587 * misc.c (gnat_types_compatible_p): New function.
35588 (LANG_HOOKS_TYPES_COMPATIBLE_P): New hook, to use it.
35589 (LANG_HOOKS_TYPE_MAX_SIZE, gnat_type_max_size): New.
35591 * trans.c (gigi): Move processing of main N_Compilation_Unit here.
35592 (gnat_to_gnu, case N_Compilation_Unit): Just handle nested case here.
35593 (add_stmt): Force walking of sizes and DECL_INITIAL for DECL_EXPR.
35594 (mark_visited): Don't mark dummy type.
35595 (tree_transform <N_Procedure_Call_Statement>): Unless this is an In
35596 parameter, we must remove any LJM building from GNU_NAME.
35597 (gnat_to_gnu, case N_String_Literal): Fill in indices in CONSTRUCTOR.
35598 (pos_to_constructor): Use int_const_binop.
35599 (gnat_to_gnu, case N_Identifier): Don't reference DECL_INITIAL of
35602 * utils.c (gnat_init_decl_processing): Don't make two "void" decls.
35603 (gnat_pushlevel): Set TREE_USE on BLOCK node.
35604 (gnat_install_builtins): Add __builtin_memset.
35606 2004-07-13 Olivier Hainque <hainque@act-europe.fr>
35608 * decl.c (gnat_to_gnu_entity <E_Variable>): If we are making a pointer
35609 for a renaming, stabilize the initialization expression if we are at a
35610 local level. At the local level, uses of the renaming may be performed
35611 by a direct dereference of the initializing expression, and we don't
35612 want possible variables there to be evaluated for every use.
35614 * trans.c (gnat_stabilize_reference, gnat_stabilize_reference_1):
35615 Propagate TREE_SIDE_EFFECTS and TREE_THIS_VOLATILE to avoid loosing
35616 them on the way. Account for the fact that we may introduce side
35617 effects in the process.
35619 2004-07-13 Richard Henderson <rth@redhat.com>
35621 * misc.c (default_pass_by_ref): Use pass_by_reference.
35623 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
35625 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
35626 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
35628 2004-07-08 Richard Henderson <rth@redhat.com>
35630 * trans.c (gnat_to_gnu <N_Handled_Sequence_Of_Statements>): Update
35633 2004-07-06 Vincent Celier <celier@gnat.com>
35635 * vms_conv.ads: Minor reformatting.
35636 Alphabetical order for enumerated values of type Command_Type, to have
35637 the command in alphabetical order for the usage.
35639 * vms_conv.adb (Process_Argument): Set Keep_Temporary_Files to True for
35640 the special qualifier /KEEP_TEMPORARY_FILES (minimum 6 characters).
35642 * gnat_ugn.texi: Document new switch -dn for the GNAT driver.
35644 * makegpr.adb (Global_Archive_Exists): New global Boolean variable
35645 (Add_Archive_Path): Only add the global archive if there is one.
35646 (Build_Global_Archive): Set Global_Archive_Exists depending if there is
35647 or not any object file to put in the global archive, and don't build
35648 a global archive if there is none.
35649 (X_Switches): New table
35650 (Compile_Link_With_Gnatmake): Pass to gnatmake the -X switches stored
35651 in the X_Switches table, if any.
35652 (Initialize): Make sure the X_Switches table is empty
35653 (Scan_Arg): Record -X switches in table X_Switches
35655 * opt.ads (Keep_Temporary_Files): New Boolean flag, defaulted to False.
35657 * make.adb: Minor comment fix
35659 * gnatname.adb (Gnatname): When not on VMS, and gnatname has been
35660 invoked with directory information, add the directory in front of the
35663 * gnatchop.adb (Gnatchop): When not on VMS, and gnatchop has been
35664 invoked with directory information, add the directory in front of the
35667 * gnatcmd.adb (Delete_Temp_Config_Files): Only delete temporary files
35668 when Keep_Temporary_Files is False.
35669 (GNATCmd): When not on VMS, and the GNAT driver has been invoked with
35670 directory information, add the directory in front of the path.
35671 When not on VMS, handle new switch -dn before the command to set
35672 Keep_Temporary_Files to True.
35673 (Non_VMS_Usage): Use lower case for the non VMS usage: this is valid
35676 * gnatlink.adb (Gnatlink): When not on VMS, and gnatlink has been
35677 invoked with directory information, add the directory in front of the
35680 2004-07-06 Thomas Quinot <quinot@act-europe.fr>
35682 * snames.ads, snames.adb (Name_Stub): New name for the distributed
35685 * rtsfind.ads: New RTE TC_Object, for DSA/PolyORB.
35686 New RTEs RAS_Proxy_Type and RAS_Proxy_Type_Access, for DSA.
35688 * g-socket.adb (To_Timeval): Fix incorrect conversion of
35689 Selector_Duration to Timeval for the case of 0.0.
35691 * exp_util.ads (Evolve_Or_Else): Fix overenthusiastic copy/paste of
35692 documentation from Evolve_And_Then.
35694 2004-07-06 Jose Ruiz <ruiz@act-europe.fr>
35696 * s-taprop-tru64.adb, s-taprop-os2.adb,
35697 s-taprop-mingw.adb, s-taprop-posix.adb: Update comment.
35699 2004-07-06 Robert Dewar <dewar@gnat.com>
35701 * s-osinte-hpux.ads, s-osinte-freebsd.ads,
35702 s-osinte-lynxos.ads, s-taprop-lynxos.adb, s-osinte-tru64.ads,
35703 s-osinte-aix.ads, s-osinte-irix.ads, s-taprop-irix.adb,
35704 s-interr-sigaction.adb, s-taprop-irix-athread.adb,
35705 s-osinte-hpux-dce.adb, s-taprop-hpux-dce.adb,
35706 s-taprop-linux.adb, s-taprop-dummy.adb, s-taprop-solaris.adb,
35707 s-interr-vms.adb, s-osinte-vms.ads, s-taprop-vms.adb,
35708 s-osinte-vxworks.ads, s-osprim-vxworks.adb, a-numaux-x86.adb,
35709 a-except.adb, a-exexpr.adb, a-intsig.adb, a-tags.adb,
35710 a-tags.ads, bindgen.ads, checks.adb, checks.adb,
35711 csets.ads, einfo.ads, einfo.ads, elists.adb, exp_ch4.adb,
35712 exp_ch7.adb, exp_dist.adb, exp_util.adb, freeze.adb,
35713 g-dynhta.adb, gnatmem.adb, g-regexp.adb, inline.adb,
35714 i-os2thr.ads, osint.adb, prj.adb, scng.adb, sem_cat.adb,
35715 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, sem_ch7.adb,
35716 sem_ch8.adb, sem_disp.adb, sem_prag.adb, sem_res.adb,
35717 sem_type.adb, sem_type.ads, sem_warn.adb, s-ficobl.ads,
35718 s-finimp.adb, s-htable.adb, sinfo.ads, sinput-l.ads,
35719 s-interr.adb, s-interr.ads, sprint.adb, s-tarest.adb,
35720 s-tasini.ads, s-taskin.ads, s-taskin.ads, uname.adb,
35721 vms_data.ads: Minor reformatting,
35722 Fix bad box comment format.
35724 * gnat_rm.texi: Fix minor grammatical error
35726 * sem_attr.adb, exp_attr.adb: New attribute Has_Access_Values
35728 * sem_util.ads, sem_util.adb (Requires_Transient_Scope): Allow many
35729 more cases of discriminated records to be recognized as not needing a
35731 (Has_Access_Values): New function.
35733 * snames.h, snames.adb, snames.ads: New attribute Has_Access_Values
35735 * cstand.adb, layout.ads, layout.adb, sem_ch13.ads: Change name
35736 Set_Prim_Alignment to Set_Elem_Alignment (more accurate correspondence
35737 with LRM terminology).
35738 Change terminology in comments primitive type => elementary type.
35740 2004-07-06 Ed Schonberg <schonberg@gnat.com>
35743 * sem_ch7.adb (Unit_Requires_Body): For a generic package, the formal
35744 parameters do not impose any requirements on the presence of a body.
35746 2004-07-06 Ed Schonberg <schonberg@gnat.com>
35749 * sem_ch12.adb (Analyze_Package_Instantiation): If the generic is not a
35750 compilation unit and is in an open scope at the point of instantiation,
35751 assume that a body may be present later.
35753 2004-07-06 Ed Schonberg <schonberg@gnat.com>
35755 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case 'Size):
35756 Improve error message when specified size is not supported.
35758 * sem_ch6.adb (Maybe_Primitive_Operation): A library-level subprogram
35759 is never a primitive operation.
35761 2004-07-05 Andreas Schwab <schwab@suse.de>
35763 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Use
35764 RECORD_OR_UNION_CHECK.
35765 (TYPE_CONTAINS_TEMPLATE_P): Likewise.
35767 2004-07-04 Kelley Cook <kcook@gcc.gnu.org>
35769 * Make-lang.in (doc/gnat_ugn_unw.texi): Eliminate explicit
35770 dependency on xgnatugn, instead build it via a submake.
35771 (ADA_INFOFILES): Add doc/gnat_ugn_unw.texi.
35773 2004-07-04 Richard Henderson <rth@redhat.com>
35775 * utils2.c (gnat_mark_addressable): Don't put_var_into_stack.
35777 2004-07-01 Richard Henderson <rth@redhat.com>
35779 * trans.c (gnat_stabilize_reference): Don't handle RTL_EXPR.
35780 * utils.c (max_size): Likewise.
35782 2004-06-28 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35784 * decl.c: Remove calls to add_decl_expr, pushdecl, rest_of_compilation,
35785 and rest_of_type_compilation; add arg to create_*_decl.
35786 (annotate_decl_with_node): Deleted.
35787 (gnat_to_gnu_entity, case E_Array_Type): Set location of fields.
35788 * gigi.h (get_decls, block_has_vars, pushdecl): Deleted.
35789 (get_current_block_context, gnat_pushdecl): New declarations.
35790 (gnat_init_stmt_group): Likewise.
35791 (create_var_decl, create_type_decl, create_subprog_decl): Add new arg.
35792 * misc.c (LANG_HOOKS_CLEAR_BINDING_STACK): Deleted.
35793 (LANG_HOOKS_GETDECLS, LANG_HOOKS_PUSHDECL): Deleted.
35794 (gnat_init): Call gnat_init_stmt_group.
35795 * trans.c (global_stmt_group, gnu_elab_proc_decl): New variables.
35796 (gnu_pending_elaboration_list): Deleted.
35797 (mark_visited, mark_unvisited, gnat_init_stmt_group): New functions.
35798 (gigi): Rearrange initialization calls and move some to last above.
35799 (gnat_to_gnu): If statement and not in procedure, go into elab proc.
35800 Delete calls to add_decl_expr; add arg to create_*_decl.
35801 (gnat_to_gnu, case N_Loop): Recalculate side effects on COND_EXPR.
35802 (gnat_to_gnu, case N_Subprogram_Body): Move some code to
35803 begin_subprog_body and call it.
35804 Don't push and pop ggc context.
35805 (gnat_to_gnu, case N_Compilation_Unit): Rework to support elab proc.
35806 (add_stmt): Remove handling of DECL_EXPR from here.
35807 If not in function, mark visited.
35808 (add_decl_expr): Put global at top level.
35809 Check for cases of DECL_INITIAL we have to handle here.
35810 (process_type): Add extra arg to create_type_decl.
35811 (build_unit_elab): Rework to just gimplify.
35812 * utils.c (pending_elaborations, elist_stack, getdecls): Deleted.
35813 (block_has_vars, mark_visited, add_pending_elaborations): Likewise.
35814 (get_pending_elaborations, pending_elaborations_p): Likewise.
35815 (push_pending_elaborations, pop_pending_elaborations): Likewise.
35816 (get_elaboration_location, insert_elaboration_list): Likewise.
35817 (gnat_binding_level): Renamed from ada_binding_level.
35818 (init_gnat_to_gnu): Don't clear pending_elaborations.
35819 (global_bindings_p): Treat as global if no current_binding_level.
35820 (set_current_block_context): New function.
35821 (gnat_pushdecl): Renamed from pushdecl; major rework.
35822 All callers changed.
35823 (create_type_decl, create_var_decl, create_subprog_decl): Add new arg.
35824 (finish_record_type): Call call pushdecl for stub decl.
35825 (function_nesting_depth): Deleted.
35826 (begin_subprog_body): Delete obsolete code.
35827 * utils2.c (build_call_alloc_dealloc): Add new arg to create_var_decl.
35829 2004-06-28 Robert Dewar <dewar@gnat.com>
35831 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
35832 mlib-tgt-irix.adb, mlib-tgt-hpux.adb, mlib-tgt-linux.adb,
35833 mlib-tgt-linux.adb, mlib-tgt-solaris.adb, mlib-tgt-solaris.adb,
35834 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb,
35835 a-strmap.adb, a-strmap.ads, clean.adb: Minor reformatting
35837 * exp_util.adb (Is_Possibly_Unaligned_Slice): Completely rewritten, to
35838 deal with problem of inefficient slices on machines with strict
35839 alignment, when the slice is a component of a composite.
35841 * checks.adb (Apply_Array_Size_Check): Do not special case 64-bit
35842 machines, we need the check there as well.
35844 2004-06-28 Ed Schonberg <schonberg@gnat.com>
35846 * exp_ch5.adb (Expand_Assign_Array): Use correct condition to
35847 determine safe copying direction for overlapping slice assignments
35848 when component is controlled.
35850 * sem_ch12.adb (Instantiate_Formal_Package): Implicit operations of a
35851 formal derived type in the actual for a formal package are visible in
35852 the enclosing instance.
35854 2004-06-28 Ed Schonberg <schonberg@gnat.com>
35857 * sem_util.adb (Trace_Components): Diagnose properly an illegal
35858 circularity involving a private type whose completion includes a
35859 self-referential component.
35860 (Enter_Name): Use Is_Inherited_Operation to distinguish a source
35861 renaming or an instantiation from an implicit derived operation.
35863 2004-06-28 Pascal Obry <obry@gnat.com>
35865 * mlib-tgt-mingw.adb: (Library_Exists_For): Remove "lib" prefix from
35867 (Library_File_Name_For): Idem.
35869 2004-06-28 Matthew Gingell <gingell@gnat.com>
35871 * g-traceb.ads: Add explanatory note on the format of addresses
35872 expected by addr2line.
35874 2004-06-28 Jerome Guitton <guitton@act-europe.fr>
35876 * Makefile.in: Force debugging information on s-tasdeb.adb,
35877 a-except.adb and s-assert.adb needed by the debugger.
35879 2004-06-28 Vincent Celier <celier@gnat.com>
35881 * make.adb (Collect_Arguments_And_Compile): Change Flag1 to
35885 * mlib-prj.adb (Check_Library): Replace Flag1 with Need_To_Build_Lib
35887 * prj.adb: Minor reformatting
35888 (Project_Empty): Change Flag1 to Need_To_Build_Lib. Remove Flag2.
35890 * prj.ads: Comment updates
35892 (Project_Data): Change Flag1 to Need_To_Build_Lib.
35893 Remove Flag2: not used.
35895 * prj-dect.adb (Parse_Declarative_Items): Accept "null" as a
35898 * gnat_ugn.texi: Put a "null;" declaration in one project file example
35900 * gnat_rm.texi: Document Empty declarations "null;".
35902 * makegpr.adb (Compile_Link_With_Gnatmake): Put the global archives in
35903 front of the linker options.
35904 (Link_Foreign): Put the global archives and the libraries in front of
35905 the linker options.
35907 2004-06-28 Javier Miranda <miranda@gnat.com>
35909 * rtsfind.adb: (Get_Unit_Name): Fix typo in comment
35910 (RTU_Loaded): Code cleanup
35911 (Set_RTU_Loaded): New procedure to register as *loaded* explicitly
35912 withed predefined units.
35914 * rtsfind.ads (Set_RTU_Loaded): New procedure to register as *loaded*
35915 explicitly withed predefined units.
35916 Fix typo in comment
35918 * sem_ch10.adb (Analyze_Compilation_Unit): Register as *loaded*
35919 explicitly withed predefined units.
35921 2004-06-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
35923 * ada-tree.def (DECL_STMT): Deleted.
35924 * ada-tree.h (IS_ADA_STMT): Now test against STMT_STMT.
35925 (DECL_STMT_VAR): Deleted.
35926 * decl.c: add_decl_stmt now add_decl_expr.
35927 * gigi.h: Likewise.
35928 * trans.c: Likewise.
35929 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
35930 (gnat_to_gnu, case N_Subprogram_Body): Set cfun->function_end_locus.
35931 (add_stmt): Only handle padded type here.
35932 (add_stmt_with_node): Allow gnat_node to not be present.
35933 (gnat_gimplify_stmt, case USE_STMT): Set *STMT_P to null.
35934 (gnat_gimplify_stmt, case DECL_STMT): Deleted.
35935 (gnat_stabilize_reference_1): If COMPONENT_REF of fat pointer,
35936 make a SAVE_EXPR for the entire fat pointer.
35937 * utils.c (pushdecl): Walk a DECL_EXPR in global case.
35938 (create_index_type): Make a DECL_EXPR.
35939 (end_subprog_body): Don't call allocate_struct_function here but
35942 2004-06-25 Pascal Obry <obry@gnat.com>
35944 * makegpr.adb (Build_Library): Remove parameter Lib_Address and
35945 Relocatable from Build_Dynamic_Library call.
35947 * gnat_ugn.texi: Change documentation about Library_Kind. Dynamic and
35948 Relocatable are now synonym.
35950 * Makefile.in: Use s-parame-mingw.adb on MingW platform.
35952 * mlib-prj.adb (Build_Library): Remove DLL_Address constant definition.
35953 Remove parameter Lib_Address and Relocatable from Build_Dynamic_Library
35956 * mlib-tgt.ads, mlib-tgt.adb (Build_Dynamic_Library): Remove parameter
35957 Lib_Address and Relocatable.
35958 (Default_DLL_Address): Removed.
35960 * mlib-tgt-tru64.adb, mlib-tgt-aix.adb, mlib-tgt-irix.adb,
35961 mlib-tgt-hpux.adb, mlib-tgt-linux.adb, mlib-tgt-solaris.adb,
35962 mlib-tgt-vms-alpha.adb, mlib-tgt-vms-ia64.adb, mlib-tgt-vxworks.adb:
35963 (Build_Dynamic_Library): Remove parameter Lib_Address and Relocatable.
35964 (Default_DLL_Address): Removed.
35966 * mlib-tgt-mingw.adb: Ditto.
35967 (Build_Dynamic_Library): Do not add "lib" prefix to the DLL name.
35969 * s-taprop-mingw.adb (Create_Task): Use Adjust_Storage_Size to compute
35970 the initial thread stack size.
35972 * a-strmap.ads: Move package L to private part as it is not used in
35973 the spec. Found while reading code.
35975 2004-06-25 Olivier Hainque <hainque@act-europe.fr>
35977 * tracebak.c: Introduce support for a GCC infrastructure based
35978 implementation of __gnat_backtrace.
35980 * raise.c: Don't rely on a C mapping of the GNAT_GCC_Exception record
35981 any more. Use accessors instead. This eases maintenance and relaxes
35982 some alignment constraints.
35983 (_GNAT_Exception structure): Remove the Ada specific fields
35984 (EID_For, Adjust_N_Cleanups_For): New accessors, exported by
35986 (is_handled_by, __gnat_eh_personality): Replace component references to
35987 exception structure by use of the new accessors.
35989 * init.c (__gnat_initialize): Adjust comments to match the just
35990 reverted meaning of the -static link-time option.
35992 * adaint.c (convert_addresses): Arrange not to define a stub for
35993 mips-irix any more, as we now want to rely on a real version from a
35994 recent libaddr2line.
35996 * a-exexpr.adb: Provide new accessors to a GNAT_GCC occurrence, so that
35997 the personality routine can use them and not have to rely on a C
35998 counterpart of the record anymore. This simplifies maintenance and
35999 relaxes the constraint of having Standard'Maximum_Alignment match
36001 Update comments, and add a section on the common header alignment issue.
36003 2004-06-25 Geert Bosch <bosch@gnat.com>
36005 * a-ngelfu.adb (Tanh): Use full 20 digit precision for constants in
36006 polynomial approximation. Fixes inconsistency with Cody/Waite algorithm.
36008 2004-06-25 Robert Dewar <dewar@gnat.com>
36010 * gnat_rm.texi: Fix section on component clauses to indicate that the
36011 restriction on byte boundary placement still applies for bit packed
36013 Add comment on stack usage from Initialize_Scalars
36015 * gnat_ugn.texi: Add documentation for -gnatyLnnn
36017 * stylesw.ads, stylesw.adb: Implement new -gnatyLnnn option for
36018 limiting nesting level.
36020 * usage.adb: Add line for -gnatyLnnn switch
36022 * g-debpoo.ads, xtreeprs.adb, sinput.ads, sem_ch13.ads,
36023 sem_ch13.adb, exp_aggr.adb: Minor reformatting
36025 * sem_prag.adb (Process_Atomic_Shared_Volatile): Set Is_Atomic on base
36026 type as well as on the subtype. This corrects a problem in freeze in
36027 setting alignments of atomic types.
36029 * sem_eval.ads: Minor comment typo fixed
36031 * par-util.adb (Push_Scope_Stack): Check for violation of max nesting
36032 level. Minor reformatting.
36034 * fname.adb (Is_Predefined_File_Name): Require a letter after the
36035 minus sign. This means that file names like a--b.adb will not be
36036 considered predefined.
36038 * freeze.adb: Propagate new flag Must_Be_On_Byte_Boundary to containing
36039 record Test new flag and give diagnostic for bad component clause.
36040 (Freeze_Entity): Set alignment of array from component alignment in
36041 cases where this is safe to do.
36043 * exp_pakd.adb: Set new flag Must_Be_On_Byte_Boundary for large packed
36046 * cstand.adb: (Create_Standard): Set alignment of String to 1
36048 * einfo.ads, einfo.adb: Introduce new flag Must_Be_On_Byte_Boundary
36050 * exp_ch4.adb (Expand_Array_Equality): Improve efficiency of generated
36051 code in the common constrained array cases.
36053 * a-storio.adb: Change implementation to avoid possible alignment
36054 problems on machines requiring strict alignment (data should be moved
36055 as type Buffer, not type Elmt).
36057 * checks.adb (Apply_Array_Size_Check): Improve these checks by
36058 killing the overflow checks which we really do not need (64-bits is
36061 2004-06-25 Vincent Celier <celier@gnat.com>
36063 * makegpr.adb (Is_Included_In_Global_Archive): New Boolean function
36064 (Add_Archives.Recursive_Add_Archives): Call Add_Archive_Path
36065 inconditionally for the main project.
36066 (Recursive_Add_Archives.Add_Archive_Path): New procedure
36067 (Link_Executables.Check_Time_Stamps): New procedure
36068 (Link_Executables.Link_Foreign): New procedure
36069 Changes made to reduce nesting level of this package
36070 (Check): New procedure
36071 (Add_Switches): When not in quiet output, check that a switch is not
36072 the concatenation of several valid switches. If it is, issue a warning.
36073 (Build_Global_Archive): If the global archive is rebuilt, linking need
36075 (Compile_Sources): Rebuilding a library archive does not imply
36076 rebuilding the global archive.
36077 (Build_Global_Archive): New procedure
36078 (Build_Library): New name for Build_Archive, now only for library
36080 (Check_Archive_Builder): New procedure
36081 (Create_Global_Archive_Dependency_File): New procedure
36082 (Gprmake): Call Build_Global_Archive before linking
36083 * makegpr.adb: Use Other_Sources_Present instead of Sources_Present
36085 (Scan_Arg): Display the Copyright notice when -v is used
36087 * gnat_ugn.texi: Document new switch -files= (VMS qualifier /FILES=)
36090 * vms_data.ads: Add qualifier /MAX_NESTING=nnn (-gnatyLnnn) for GNAT
36092 Add new GNAT LIST qualifier /FILES=
36093 Added qualifier /DIRECTORY= to GNAT METRIC
36094 Added qualifier /FILES= to GNAT METRIC
36095 Added qualifier /FILES to GNAT PRETTY
36097 * switch.adb (Is_Front_End_Switch): Refine the test for --RTS or -fRTS,
36098 to take into account both versions of the switch.
36100 * switch-c.adb (Scan_Front_End_Switches): New switch -gnatez. Should
36101 always be the last switch to the gcc driver. Disable switch storing so
36102 that switches automatically added by the gcc driver are not put in the
36105 * prj.adb (Project_Empty): Take into account changes in components of
36108 * prj.ads (Languages_Processed): New enumaration value All_Languages.
36110 * prj.ads (Project_Data): Remove component Lib_Elaboration: never
36111 used. Split Boolean component Ada_Sources_Present in two Boolean
36112 components Ada_Sources_Present and Other_Sources_Present.
36115 * prj-env.adb (For_All_Source_Dirs.Add): Use Ada_Sources_Present
36116 instead of Sources_Present.
36117 (Set_Ada_Paths.Add.Recursive_Add): Ditto
36119 * prj-nmsc.adb: Minor reformatting
36120 (Check_Ada_Naming_Scheme): New name of procedure Check_Naming_Scheme
36121 (Check_Ada_Naming_Scheme_Validity): New name of previous procedure
36122 Check_Ada_Naming_Scheme.
36123 Change Sources_Present to Ada_Sources_Present or Other_Sources_Present
36126 * prj-part.adb (Post_Parse_Context_Clause): New Boolean parameter
36128 Make sure that all cycles where there is at least one "limited with"
36130 (Parse_Single_Project): New Boolean parameter In_Limited
36132 * prj-proc.adb (Recursive_Check): When Process_Languages is
36133 All_Languages, call first Prj.Nmsc.Ada_Check, then
36134 Prj.Nmsc.Other_Languages_Check.
36136 * prj-proc.adb (Process): Use Ada_Sources_Present or
36137 Other_Sources_Present (instead of Sources_Present) depending on
36140 * lang-specs.h: Keep -g and -m switches in the same order, and as the
36143 * lib.adb (Switch_Storing_Enabled): New global Boolean flag
36144 (Disable_Switch_Storing): New procedure. Set Switch_Storing_Enabled to
36146 (Store_Compilation_Switch): Do nothing if Switch_Storing_Enabled is
36149 * lib.ads (Disable_Switch_Storing): New procedure.
36151 * make.adb: Modifications to reduce nesting level of this package.
36152 (Check_Standard_Library): New procedure
36153 (Gnatmake.Check_Mains): New procedure
36154 (Gnatmake.Create_Binder_Mapping_File): New procedure
36155 (Compile_Sources.Compile): Add switch -gnatez as the last option
36156 (Display): Never display -gnatez
36158 * Makefile.generic:
36159 When using $(MAIN_OBJECT), always use $(OBJ_DIR)/$(MAIN_OBJECT)
36161 * gnatcmd.adb (Check_Project): New function
36162 (Process_Link): New procedure to reduce nesting depth
36163 (Check_Files): New procedure to reduce the nesting depth.
36164 For GNAT METRIC, include the inherited sources in extending projects.
36165 (GNATCmd): When GNAT LS is invoked with a project file and no files,
36166 add the list of files from the sources of the project file. If this list
36167 is too long, put it in a temp text files and use switch -files=
36168 (Delete_Temp_Config_Files): Delete the temp text file that contains
36169 a list of source for gnatpp or gnatmetric, if one has been created.
36170 (GNATCmd): For GNAT METRIC and GNAT PRETTY, if the number of sources
36171 in the project file is too large, create a temporary text file that
36172 list them and pass it to the tool with "-files=<temp text file>".
36173 (GNATCmd): For GNAT METRIC add "-d=<abject dir>" as the first switch
36175 * gnatlink.adb (Gnatlink): Do not compile with --RTS= when the
36176 generated file is in not in Ada.
36178 * gnatls.adb: Remove all parameters And_Save that are no longer used.
36179 (Scan_Ls_Arg): Add processing for -files=
36180 (Usage): Add line for -files=
36182 * g-os_lib.adb (On_Windows): New global constant Boolean flag
36183 (Normalize_Pathname): When on Windows and the path starts with a
36184 directory separator, make sure that the resulting path will start with
36187 * clean.adb (Clean_Archive): New procedure
36188 (Clean_Project): When there is non-Ada code, delete the global archive,
36189 the archive dependency files, the object files and their dependency
36190 files, if they exist.
36191 (Gnatclean): Call Prj.Pars.Parse for All_Languages, not for Ada only.
36193 2004-06-25 Thomas Quinot <quinot@act-europe.fr>
36195 * sinfo.ads: Fix typo in comment.
36197 * sem_dist.adb (Process_Remote_AST_Attribute): Simplify code that uses
36198 the TSS for remote access-to-subprogram types, since these TSS are
36199 always present once the type has been analyzed.
36200 (RAS_E_Dereference): Same.
36202 * sem_attr.adb (Analyze_Attribute): When analysis of an attribute
36203 reference raises Bad_Attribute, mark the reference as analyzed so the
36204 node (and any children resulting from rewrites that could have occurred
36205 during the analysis that ultimately failed) is not analyzed again.
36207 * exp_ch7.ads (Find_Final_List): Fix misaligned comment.
36209 * exp_dist.adb: Minor comment fix.
36211 * exp_ch4.adb (Expand_N_Allocator): For an allocator whose expected
36212 type is an anonymous access type, no unchecked deallocation of the
36213 allocated object can occur. If the object is controlled, attach it with
36214 a count of 1. This allows attachment to the Global_Final_List, if
36215 no other relevant list is available.
36216 (Get_Allocator_Final_List): For an anonymous access type that is
36217 the type of a discriminant or record component, the corresponding
36218 finalisation list is the one of the scope of the type.
36220 2004-06-25 Ed Schonberg <schonberg@gnat.com>
36222 * sem_ch3.adb (Replace_Type): When computing the signature of an
36223 inherited subprogram, use the first subtype if the derived type
36224 declaration has no constraint.
36226 * exp_ch6.adb (Add_Call_By_Copy_Code): Check that formal is an array
36227 before applying previous optimization. Minor code cleanup.
36229 * exp_util.adb (Is_Possibly_Unaligned_Slice): If the component is
36230 placed at the beginning of an unpacked record without explicit
36231 alignment, a slice of it will be aligned and does not need a copy when
36234 2004-06-25 Ed Schonberg <schonberg@gnat.com>
36238 * sem_ch8.adb (Attribute_Renaming): Reject renaming if the attribute
36239 reference is written with expressions mimicking parameters.
36241 2004-06-25 Hristian Kirtchev <kirtchev@gnat.com>
36244 * sem_ch3.adb (Build_Derived_Record_Type): Add additional check to
36245 STEP 2a. The constraints of a full type declaration of a derived record
36246 type are checked for conformance with those declared in the
36247 corresponding private extension declaration. The message
36248 "not conformant with previous declaration" is emitted if an error is
36251 2004-06-25 Vasiliy Fofanov <fofanov@act-europe.fr>
36253 * g-traceb.ads: Document the need for -E binder switch in the spec.
36255 * g-trasym.ads: Document the need for -E binder switch in the spec.
36257 2004-06-25 Jose Ruiz <ruiz@act-europe.fr>
36259 * sem_prag.adb: Add handling of pragma Detect_Blocking.
36261 * snames.h, snames.ads, snames.adb: Add entry for pragma
36264 * s-rident.ads: Change reference to pragma Detect_Blocking.
36266 * targparm.ads, targparm.adb: Allow pragma Detect_Blocking in
36269 * opt.ads (Detect_Blocking): New Boolean variable (defaulted to False)
36270 to indicate whether pragma Detect_Blocking is active.
36272 * par-prag.adb: Add entry for pragma Detect_Blocking.
36274 * rtsfind.adb (RTU_Loaded): Fix the temporary kludge to get past bug
36275 of not handling WITH.
36276 Note that this replaces the previous update which was incorrect.
36278 2004-06-25 Javier Miranda <miranda@gnat.com>
36280 * sem_ch10.adb (Re_Install_Use_Clauses): Force the installation of the
36281 use-clauses to have a clean environment.
36283 * sem_ch8.adb (Install_Use_Clauses): Addition of a new formal to force
36284 the installation of the use-clauses to stablish a clean environment in
36285 case of compilation of a separate unit; otherwise the call to
36286 use_one_package is protected by the barrier Applicable_Use.
36288 * sem_ch8.ads (Install_Use_Clauses): Addition of a new formal to force
36289 the installation of the use-clauses to stablish a clean environment in
36290 case of compilation of a separate unit.
36291 (End_Use_Clauses): Minor comment cleanup.
36293 2004-06-25 Sergey Rybin <rybin@act-europe.fr>
36295 * gnat_ugn.texi: Add description of the gnatpp 'files' switch
36297 2004-06-23 Richard Henderson <rth@redhat.com>
36299 * trans.c (gnat_gimplify_stmt): Update gimplify_type_sizes call.
36301 2004-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36303 * decl.c (elaborate_expression, elaborate_expression_1): Arguments
36304 now bool instead of int.
36305 (gnat_to_gnu_entity, elaborate_expression_1): New arg to COMPONENT_REF.
36306 * trans.c (gnu_switch_label_stack): New function.
36307 (gnat_to_gnu, N_Object_Renaming_Declaration): Result is what the
36308 elaboration of renamed entity returns.
36309 (gnat_to_gnu, case N_Case_Statement): Add branches to end label.
36310 (add_decl_stmt): Don't add TYPE_DECL for UNCONSTRAINED_ARRAY_TYPE.
36311 (gnat_gimplify_stmt): Use alloc_stmt_list, not build_empty_stmt.
36312 (gnat_gimplify_stmt, case DECL_STMT): gimplify DECL_SIZE and
36313 DECL_SIZE_UNIT and simplify variable-sized case.
36314 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Deleted.
36315 Callers changes to call gimplify_type_sizes and gimplify_one_sizepos.
36316 (gnat_stabilize_reference): Add arg to COMPONENT_REF.
36317 (build_unit_elab): Disable for now.
36318 * utils.c (mark_visited): New function.
36319 (pushdecl): Walk tree to call it for global decl.
36320 (update_pointer_to): Update all variants of pointer and ref types.
36321 Add arg to COMPONENT_REF.
36322 (convert): Likewise.
36323 Move check for converting between variants lower down.
36324 * utils2.c (build_simple_component_ref): Add arg to COMPONENT_REF.
36325 (build_allocator): Don't force type of MODIFY_EXPR.
36326 (gnat_mark_addressable, case VAR_DECL): Unconditionally call
36327 put_var_into_stack.
36329 2004-06-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36331 * ada-tree.def (LOOP_STMT, EXIT_STMT): Update documentation.
36332 * ada-tree.h (EXIT_STMT_LABEL): Renamed from EXIT_STMT_LOOP.
36333 * decl.c (gnat_to_gnu_entity): Also set force_global for imported
36335 * trans.c (gnu_loop_label_stack): Renamed from gnu_loop_stmt_stack;
36336 all callers changed.
36337 (gnat_to_gnu, case N_Loop_Statement, case N_Exit_Statement): Change
36338 the way that EXIT_STMT finds the loop label.
36339 (gnat_gimplify_stmt, case LOOP_STMT, EXIT_STMT): Likewise.
36340 (gnat_gimplify_stmt, case DECL_STMT): Handle variable-sized decls here.
36341 (add_stmt): Use annotate_with_locus insted of setting directly.
36342 (pos_to_construct): Set TREE_PURPOSE of each entry to index.
36343 (gnat_stabilize_reference, case ARRAY_RANGE_REF): Merge with ARRAY_REF.
36344 * utils.c (gnat_install_builtins): Install __builtin_memcmp.
36345 (build_vms_descriptor): Add extra args to ARRAY_REF.
36346 (convert): Use VIEW_CONVERT_EXPR between aggregate types.
36347 * utils2.c (gnat_truthvalue_conversion, case INTEGER_CST, REAL_CST):
36349 (build_binary_op): Don't make explicit CONVERT_EXPR.
36350 Add extra rgs to ARRAY_REF.
36352 2004-06-14 Pascal Obry <obry@gnat.com>
36354 * gnat_ugn.texi: Document relocatable vs. dynamic Library_Kind on
36355 Windows. Fix minor typo.
36357 * mlib-tgt-mingw.adb: New implementation using the GCC -shared option
36358 which is now supported on Windows. With this implementation using the
36359 Library Project feature is no different on Windows than on UNIX.
36361 2004-06-14 Vincent Celier <celier@gnat.com>
36363 * makegpr.adb (Compile_Sources): Nothing to do when there are no
36366 * mlib-tgt-vxworks.adb (Library_Exists_For): Remove incorrect comment
36368 * prj-part.adb (Parse_Single_Project): When a duplicate project name is
36369 found, show the project name and the path of the previously parsed
36372 2004-06-14 Ed Schonberg <schonberg@gnat.com>
36374 * exp_ch6.adb (Add_Call_By_Copy_Code): For an out-parameter that is an
36375 array, avoid copying the actual before the call.
36377 2004-06-14 Thomas Quinot <quinot@act-europe.fr>
36379 * g-debpoo.adb: Remove alignment assumptions from GNAT.Debug_Pools.
36380 Instead, allocate memory on worst-case alignment assumptions, and then
36381 return an aligned address within the allocated zone.
36383 2004-06-14 Robert Dewar <dewar@gnat.com>
36385 * bindgen.adb (Gen_Adainit_Ada): Do not generate external references to
36386 elab entities in predefined units in No_Run_Time_Mode.
36387 (Gen_Adainit_C): Same fix
36388 (Gen_Elab_Calls_Ada): Do not generate calls to elaborate predefined
36389 units in No_Run_Time_Mode
36390 (Gen_Elab_Calls_C): Same fix
36392 * symbols-vms-alpha.adb: Minor reformatting
36394 * g-debpoo.ads: Minor reformatting
36396 * lib.adb (In_Same_Extended_Unit): Version working on node id's
36398 * lib.ads (In_Same_Extended_Unit): Version working on node id's
36400 * lib-xref.adb: Minor cleanup, use new version of In_Same_Extended_Unit
36403 * make.adb: Minor reformatting
36405 * par-ch12.adb: Minor reformatting
36407 * par-prag.adb: Add dummy entry for pragma Profile_Warnings
36409 * prj-strt.adb: Minor reformatting
36411 * restrict.ads, restrict.adb: Redo handling of profile restrictions to
36414 * sem_attr.adb: Minor reformatting
36416 * sem_ch7.adb: Minor reformatting
36418 * sem_elab.adb (Check_A_Call): Deal with problem of calling init proc
36419 for type in the same unit as the object declaration.
36421 * sem_prag.adb (Check_Arg_Is_External_Name): New procedure, allows
36422 static string expressions and not just string literals.
36424 (Set_Warning): Reset restriction warning flag for restriction pragma
36425 Implement pragma Profile_Warnings
36426 Implement pragma Profile (Restricted)
36427 Give obolescent messages for old restrictions and pragmas
36429 * snames.h, snames.ads, snames.adb: Add new entry for pragma
36432 * s-rident.ads: Add declarations for restrictions required by profile
36433 Restricted and profile Ravenscar.
36435 * targparm.ads, targparm.adb: Allow pragma Profile in system.ads
36437 * gnat_ugn.texi: Correct some missing entries in the list of GNAT
36438 configuration pragmas.
36440 2004-06-11 Vincent Celier <celier@gnat.com>
36442 * mlib-tgt-vms-alpha.adb (Build_Dynamic_Library): Issue switch -R to
36443 gnatsym, when symbol policy is Restricted.
36445 * mlib-tgt-vms-ia64.adb (Build_Dynamic_Library): Issue switch -R to
36446 gnatsym, when symbol policy is Restricted.
36448 * symbols-vms-alpha.adb (Initialize): When symbol policy is Restricted,
36449 read the symbol file.
36450 (Finalize): Fail in symbol policy Restricted if a symbol in the original
36451 symbol file is not in the object files. Do not create a new symbol file
36452 when symbol policy is Restricted.
36454 * gnatbind.adb (Gnatbind): Initialize Snames, because Snames is used
36457 * gnatsym.adb (Parse_Vmd_Line): Process new switch -R for symbol policy
36459 (Usage): Line for new switch -R
36461 * make.adb (Initialize): When the platform is not VMS, add the
36462 directory where gnatmake is invoked in the front of the path, if
36463 gnatmake is invoked with directory information. Change the Scan_Args
36464 while loop to a for loop.
36465 (Recursive_Compute_Depth): Remove parameter Visited. Improve efficiency:
36466 if Depth is equal or greater than the proposed depth, there is nothing
36468 (Initialize): Call Recursive_Compute_Depth with initial Depth equal to 1
36471 * prj.ads: Add new symbol policy Restricted.
36473 * prj-dect.adb (Parse_Case_Construction): Call End_Case_Construction
36474 with the new parameters Check_All_Labels and Case_Location.
36476 * prj-nmsc.adb (Ada_Check): Process new symbol policy Restricted
36477 (Library_Symbol_File needs to be defined).
36479 * prj-strt.adb (End_Case_Construction): New parameters Check_All_Labels
36480 and Case_Location If Check_All_Labels is True, check that all values of
36481 the string type are used, and output warning(s) if they are not.
36483 * prj-strt.ads (End_Case_Construction): New parameters Check_All_Labels
36486 * gnat_ugn.texi: Reorder subclauses in menus "Switches for gcc"
36488 * gnat_ugn.texi: Update documentation about the library directory in
36491 * makegpr.adb (Display_Command): In verbose mode, also display the
36492 value of the CPATH env var, when the compiler is gcc.
36493 (Initialize): Change the Scan_Args while loop to a for loop
36494 (Compile_Individual_Sources): Change directory to object directory
36495 before compilations.
36497 * symbols.ads: New symbol policy Restricted.
36499 2004-06-11 Olivier Hainque <hainque@act-europe.fr>
36501 * a-except.adb (Raise_After_Setup family): Remove. The responsibility
36502 is now taken care of internally in the Exception_Propagation package
36503 and does not require clients assistance any more.
36505 * a-exexpr.adb (Is_Setup_And_Not_Propagated,
36506 Set_Setup_And_Not_Propagated, and Clear_Setup_And_Not_Propagated): New
36507 functions. Helpers to maintain a predicate required in the handling of
36508 occurrence transfer between tasks.
36509 This is now handled internally and does not require clients assistance
36510 for the setup/propagate separation anymore.
36511 (Setup_Exception, Propagate_Exception): Simplify the Private_Data
36512 allocation strategy, handle the Setup_And_Not_Propagated predicate and
36515 * s-taenca.adb (Check_Exception): Use raise_with_msg instead of
36516 raise_after_setup, now that everything is handled internally within the
36517 setup/propagation engine.
36519 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
36521 * exp_ch6.adb (Expand_Inlined_Call): Add function Formal_Is_Used_Once.
36522 Add additional conditions for the case of an actual being a simple
36523 name or literal. Improve inlining by preventing the generation
36524 of temporaries with a short lifetime (one use).
36526 2004-06-11 Hristian Kirtchev <kirtchev@gnat.com>
36529 * einfo.ads: Minor comment updates for Has_Completion and
36530 E_Constant list of flags.
36532 * sem_ch3.adb (Analyze_Object_Declaration): Full constant declarations
36533 and constant redeclarations now set the Has_Completion flag of their
36534 defining identifiers.
36536 * sem_ch7.adb (Analyze_Package_Spec): Add procedure
36537 Inspect_Deferred_Constant_Completion.
36538 Used to detect private deferred constants that have not been completed
36539 either by a constant redeclaration or pragma Import. Emits error message
36540 "constant declaration requires initialization expression".
36542 * sem_prag.adb (Process_Import_Or_Interface): An Import pragma now
36543 completes a deferred constant.
36545 2004-06-11 Geert Bosch <bosch@gnat.com>
36547 * eval_fat.adb (Decompose_Int): Fix rounding of negative numbers.
36549 * s-fatgen.adb (Gradual_Scaling): Correct off-by-one error in
36550 calculating exponent for scaling denormal numbers.
36551 (Leading_Part): Properly raise Constraint_Error for zero or negative
36553 (Remainder): Properly raise Constraint_Error for zero divisor.
36555 2004-06-11 Thomas Quinot <quinot@act-europe.fr>
36557 * sem_util.adb: Minor reformatting.
36559 * exp_ch2.adb (Expand_Entry_Parameter): Generate an explicit
36560 dereference when accessing the entry parameter record.
36561 (Check_Array_Type): Always check for possible implicit dereference.
36562 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
36563 Abort if a pointer is still present (denoting that an implicit
36564 dereference was left in the tree by the front-end).
36566 * sem_attr.adb (Expand_Entry_Parameter): Generate an explicit
36567 dereference when accessing the entry parameter record.
36568 (Check_Array_Type): Always check for possible implicit dereference.
36569 (maybe_implicit_dereference): Rename to check_no_implicit_derefence.
36570 Abort if a pointer is still present (denoting that an implicit
36571 dereference was left in the tree by the front-end).
36573 2004-06-11 Emmanuel Briot <briot@act-europe.fr>
36575 * g-debpoo.adb (Deallocate, Dereference): Add prefix "error:" to error
36576 message, like the compiler itself does. Easier to parse the output.
36578 * g-debpoo.ads: (Allocate, Deallocate, Dereference): Add comments.
36580 * gnat_ugn.texi (gnatxref, gnatfind): Clarify that source names should
36581 be base names, and not includes directories.
36583 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
36585 * Makefile.generic ($(EXEC)): Depend on $(OBJECTS), not $(OBJ_FILES),
36586 so that dependencies are properly taken into account by make.
36588 2004-06-11 Arnaud Charlet <charlet@act-europe.fr>
36591 * s-unstyp.ads, s-maccod.ads, sem_ch8.adb, s-auxdec.ads,
36592 exp_intr.adb, s-auxdec-vms_64.ads: Fix typo: instrinsic -> intrinsic
36594 2004-06-11 Jerome Guitton <guitton@act-europe.fr>
36596 * Makefile.in (install-gnatlib): install target-specific run-time files.
36598 * Make-lang.in: Remove obsolete targets.
36600 2004-06-11 Ed Schonberg <schonberg@gnat.com>
36602 * par-ch12.adb (P_Generic): Add scope before analyzing subprogram
36603 specification, to catch misuses of program unit names.
36605 * sem_res.adb (Resolve_Type_Conversion): Do not emit warnings on
36606 superfluous conversions in an instance.
36608 2004-06-11 Ed Schonberg <schonberg@gnat.com>
36611 * sem_ch12.adb (Save_References): If operator node has been folded to
36612 enumeration literal, associated_node must be discarded.
36614 2004-06-11 Jose Ruiz <ruiz@act-europe.fr>
36616 * s-stchop-vxworks.adb: Add required pragma Convention to
36617 Task_Descriptor because it is updated by a C function.
36619 2004-06-08 Arnaud Charlet <charlet@act-europe.fr>
36622 * Makefile.in: Remove target specific SO_OPT on IRIX
36624 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36626 * ada-tree.def (TRANSFORM_EXPR, ALLOCATE_EXPR, USE_EXPR): Deleted.
36627 (GNAT_NOP_EXPR, GNAT_LOOP_ID, EXPR_STMT, NULL_STMT): Likewise.
36628 (BLOCK_STMT, IF_STMT, GOTO_STMT, LABEL_STMT, RETURN_STMT): Likewise.
36629 (ASM_STMT, BREAK_STMT, REGION_STMT,HANDLER_STMT): Likewise.
36630 (STMT_STMT, USE_STMT): New statement codes.
36631 (LOOP_STMT, EXIT_STMT): Make slight semantic changes.
36632 * ada-tree.h: Reflect above changes.
36633 (struct tree_loop_id): Deleted.
36634 (union lang_tree_node, struct lang_decl, struct lang_type):
36635 Now just contains a tree node; update macros using TYPE_LANG_SPECIFIC
36636 and DECL_LANGUAGE_SPECIFIC to reflect these changes.
36637 (DECL_INIT_BY_ASSIGN_P, TRE_LOOP_NODE_ID, TREE_SLOC): Deleted.
36638 (IS_ADA_STMT): New macro.
36639 * decl.c (annotate_decl_with_node): New function.
36640 (gnat_to_gnu_entity): Use it and Sloc_to_locus instead of set_lineno.
36641 (gnat_to_gnu_entity, case object): Remove call to expand CONVERT_EXPR.
36642 Call add_stmt_with_node to do needed assignments.
36643 Add call to update setjmp buffer directly, not via EXPR_STMT.
36644 (maybe_variable): Argment GNAT_NODE deleted.
36645 * gigi.h (maybe_variable): Likewise.
36646 (make_transform, add_stmt_with_node, set_block_for_group): New.
36647 (gnat_gimplify_expr, gnat_expand_body, Sloc_to_locus): Likewise.
36648 (set_block_jmpbuf_decl, get_block_jmpbuf_decl): Likewise.
36649 (discard_file_names, gnu_block_stack, gnat_to_code): Deleted.
36650 (set_lineno, set_lineno_from_sloc): Likewise.
36651 (record_code_position, insert_code_for): Likewise.
36652 (gnat_poplevel): Now returns void.
36653 (end_subprog_body): Now takes argument.
36654 * misc.c (cgraph.h, tree-inline.h): New includes.
36655 (gnat_tree_size, LANG_HOOKS_TREE_SIZE): Deleted.
36656 (gnat_post_options, LANG_HOOKS_POST_OPTIONS): New.
36657 (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Likewise.
36658 (LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_GIMPLIFY_EXPR): Likewise.
36659 (gnat_parse_file): Don't set immediate_size_expand.
36660 Call cgraph functions.
36661 (gnat_expand_expr): Remove most cases.
36662 (record_code_position, insert_code_for): Remove from here.
36663 * trans.c (toplev.h, tree-gimple.h): Now included.
36664 (discard_file_names): Deleted.
36665 (gnu_block_stack, gnu_block_stmt_node, gnu_block_stmt_free_list): Del.
36666 (first_nondeleted_insn, make_expr_stmt_from_rtl): Likewise.
36667 (struct stmt_group, current_stmt_group, stmt_group_free_list): New.
36668 (gnu_stack_free_list, record_cost_position, insert_code_for): Likewise.
36669 (add_cleanup, push_stack, gnat_gimplify_stmt, add_cleanup): Likewise.
36670 (gnat_gimplify_type_sizes, gnat_gimplify_one_sizepos): Likewise.
36671 (gnat_expand_body_1, gnat_gimplify_expr, annotate_with_node): Likewise.
36672 (set_block_for_group, add_stmt_list): Likewise.
36673 (start_stmt_group): Renamed from start_block_stmt.
36674 (end_stmt_group): Likewise, from end_block_stmt.
36675 (build_stmt_group): Likewise, from build_block_stmt, also add arg.
36676 (gigi): Don't set discard_file_names or call set_lineno.
36677 Disallow front end ZCX; call gnat_to_gnu, not gnat_to_code.
36678 (tree_transform): Deleted, now renamed to be gnat_to_gnu.
36679 Numerous changes throughout to reflect new names and complete
36680 function-at-a-time implementation.
36681 (gnat_expand_stmt): Delete or comment out all cases.
36682 (process_inlined_subprograms): Use add_stmt.
36683 (process_decls): Use gnat_to_gnu, not gnat_to_code, and don't
36684 call set_lineno; also remove unneeded block handling.
36685 (process_type): Remove unneeded block handling.
36686 (build_unit_elab): Remove calls to deleted functions.
36687 * utils.c (cgraph.h, tree-inline.h, tree-gimple.h): Now include.
36688 (tree-dump.h): Likewise.
36689 (struct ada_binding_level): Add field jmpbuf_decl.
36690 (gnat_define_builtin, gnat_install_builtins): New.
36691 (gnat_gimplify_function, gnat_finalize): Likewise.
36692 (gnat_poplevel): No longer return BLOCK, set it instead.
36693 Remove code dealing with nested functions.
36694 (gnat_init_decl_processing): Also set size_type_node.
36695 Call gnat_install_builtins.
36696 (create_var_decl): Don't set DECL_INIT_BY_ASSIGN.
36697 (create_subprog_decl): Change handling of inline_flag; set TREE_STATIC.
36698 Remove special-case for "main".
36699 (end_subprog_body): Add arg and rework for tree-ssa.
36700 (convert): Don't use GNAT_NOP_EXPR or look for TRANSFORM_EXPR.
36701 Add case for BOOLEAN_TYPE.
36702 * utils2.c (rtl.h): Now include.
36703 (build_call_raise): Test Debug_Flag_NN directly.
36704 (build_call_alloc_dealloc): Don't use local stack allocation for now.
36705 (gnat_mark_addressable, case GNAT_NOP_EXPR): Deleted.
36706 (gnat_mark_addressable, case VAR_DECL): Handle both early & late cases.
36708 2004-06-07 Robert Dewar <dewar@gnat.com>
36710 * a-direct.ads, einfo.ads: Minor comment updates
36712 * s-taprop-lynxos.adb, s-taprop-tru64.adb, s-taprop-irix.adb,
36713 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
36714 s-taprop-dummy.adb, s-taprop-os2.adb, s-taprop-solaris.adb,
36715 s-taprop-vms.adb, s-taprop-mingw.adb, s-taprop-vxworks.adb,
36716 s-taprop-posix.adb, s-taprop.ads, exp_dbug.adb: Minor reformatting.
36718 * s-interr-sigaction.adb: Remove unreferenced variable
36719 (Attached_Interrupts). Minor reformatting.
36720 Avoid use of variable I (replace by J).
36722 * par-ch10.adb: Fix text of one error message
36724 * checks.adb, checks.ads, cstand.adb, vms_data.ads, errout.ads,
36725 exp_aggr.adb, exp_ch3.adb, exp_ch3.ads, exp_ch5.adb, exp_ch6.adb,
36726 exp_ch9.adb, exp_code.adb, gnat1drv.adb, lib-load.adb, lib-writ.adb,
36727 opt.adb, par.adb, opt.ads, par-ch11.adb, par-ch3.adb, par-ch4.adb,
36728 par-ch5.adb, par-ch6.adb, par-ch8.adb, par-ch9.adb, par-prag.adb,
36729 par-util.adb, scng.adb, sem_aggr.adb, sem_attr.adb, sem_cat.adb,
36730 sem_ch10.adb, sem_ch10.adb, sem_ch11.adb, sem_ch12.adb, sem_ch2.adb,
36731 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch5.adb, sem_ch6.adb,
36732 sem_ch7.adb, sem_ch8.adb, sem_ch9.adb, sem_eval.adb, sem_prag.adb,
36733 sem_res.adb, sem_type.adb, sem_util.adb, sinfo.ads, snames.adb,
36734 snames.ads, snames.h, sprint.adb, switch-c.adb: Modifications for Ada
36737 2004-06-07 Doug Rupp <rupp@gnat.com>
36739 * mlib-tgt-vms.adb: Rename mlib-tgt-vms.adb mlib-tgt-vms-alpha.adb
36741 * s-vaflop-vms.adb: Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb
36743 * mlib-tgt-vms-ia64.adb: New file.
36745 * Makefile.in: Rename mlib-tgt-vms.adb to mlib-tgt-vms-alpha.adb
36746 Add mlib-tgt-vms-ia64.adb
36747 Rename s-vaflop-vms.adb to s-vaflop-vms-alpha.adb.
36748 Move to alpha specific ifeq section.
36749 Add VMS specific versions of symbols.adb
36750 Renaming of 5q vms files.
36752 * 5qsystem.ads renamed to system-vms_64.ads.
36754 2004-06-07 Vincent Celier <celier@gnat.com>
36756 * a-calend.ads: Add a GNAT Note comment after function Time_Of to
36757 explain that when a time of day corresponding to the non existing hour
36758 on the day switching to DST is specified, Split may return a different
36761 * gnatcmd.adb: Add processing of GNAT METRIC (for gnatmetric), similar
36764 * g-os_lib.adb (OpenVMS): New Boolean value imported from System.
36765 (Normalize_Pathname): Only resolve VMS logical names when on VMS.
36767 * mlib-prj.adb (Build_Library): New flag Gtrasymobj_Needed, initialize
36769 If Gtrasymobj_Needed is True, add the full path of g-trasym.obj to
36770 the linking options.
36771 (Build_Library.Check_Libs): On VMS, if there is a dependency on
36772 g-trasym.ads, set Gtrasymobj_Needed to True.
36774 * prj-attr.adb: Add new package Metrics for gnatmetric
36776 * prj-nmsc.adb (Record_Other_Sources): Put source file names in
36777 canonical case to take into account files with upper case characters on
36779 (Ada_Check): Load the reference symbol file name in the name buffer to
36780 check it, not the symbol file name.
36782 * snames.ads, snames.adb: Add standard name Metrics (name of project
36783 file package for gnatmetric).
36785 * vms_conv.ads: Add Metric to Comment_Type
36787 * vms_conv.adb (Initialize): Add component dor Metric in Command_List
36789 * vms_data.ads: Add qualifiers for GNAT METRIC
36791 * makegpr.adb (Link_Executables): Take into account the switches
36792 specified in package Linker of the main project.
36794 2004-06-07 Thomas Quinot <quinot@act-europe.fr>
36796 * bindgen.adb (Set_Unit_Number): Units is an instance of Table, and so
36797 the index of the last element is Units.Last, not Units.Table'Last
36798 (which is usually not a valid index within the actually allocated
36799 storage for the table).
36801 * exp_ch4.adb (Insert_Dereference_Action): Change predicate that
36802 determines whether to generate a call to a checked storage pool
36803 Dereference action.
36804 Generate such a call only for a dereference that either comes from
36805 source, or is the result of rewriting a dereference that comes from
36808 2004-06-07 Romain Berrendonner <berrendo@act-europe.fr>
36810 * bindgen.adb (Gen_Output_File): Add support for GAP builds.
36812 2004-06-07 Eric Botcazou <ebotcazou@act-europe.fr>
36814 (gnat_to_gnu_entity) <E_Array_Subtype>: For multi-dimensional arrays at
36815 file level, elaborate the stride for inner dimensions in alignment
36818 * exp_ch5.adb: Correct wrong reference to Component_May_Be_Bit_Aligned
36821 2004-06-07 Javier Miranda <miranda@gnat.com>
36823 * exp_ch6.adb: Correct wrong modification in previous patch
36825 2004-06-07 Vasiliy Fofanov <fofanov@act-europe.fr>
36827 * g-trasym.ads: Corrected comment to properly reflect level of support
36830 2004-06-07 Hristian Kirtchev <kirtchev@gnat.com>
36832 * lib-xref.adb (Generate_Reference): Add nested function Is_On_LHS. It
36833 includes case of a variable referenced on the left hand side of an
36834 assignment, therefore remove redundant code. Variables and prefixes of
36835 indexed or selected components are now marked as referenced on left
36836 hand side. Warnings are now properly emitted when variables or prefixes
36837 are assigned but not read.
36839 * sem_warn.adb (Output_Unreferenced_Messages): Add additional checks to
36840 left hand side referenced variables. Private access types do not
36841 produce the warning "variable ... is assigned but never read".
36842 Add also additional checks to left hand side referenced variables.
36843 Aliased, renamed objects and access types do not produce the warning
36844 "variable ... is assigned but never read" since other entities may read
36845 the memory location.
36847 2004-06-07 Jerome Guitton <guitton@act-europe.fr>
36849 * Makefile.in: In the powerpc/vxworks-specific section, restore
36850 EXTRA_GNATRTL_NONTASKING_OBJS and EXTRA_GNATRTL_TASKING_OBJS (removed
36853 2004-06-07 Ed Schonberg <schonberg@gnat.com>
36855 * sem_ch4.adb (Remove_Abstract_Operations): Refine the removal of
36856 predefined operators.
36857 Removes spurious type errors from g-trasym-vms.adb.
36859 * sem_res.adb (Rewrite_Renamed_Operator): If intrinsic operator is
36860 distinct from the operator appearing in the source, call appropriate
36861 routine to insert conversions when needed, and complete resolution of
36863 (Resolve_Intrinsic_Operator): Fix cut-and-paste bug on transfer of
36864 interpretations for rewritten right operand.
36865 (Set_Mixed_Mode_Operand): Handle properly a universal real operand when
36866 the other operand is overloaded and the context is a type conversion.
36868 2004-06-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
36870 * ada-tree.def (BLOCK_STMT): Now has two operands.
36873 * ada-tree.h: (BLOCK_STMT_BLOCK): New macro.
36875 * gigi.h: (gnat_poplevel): Now returns a tree.
36877 * trans.c (end_block_stmt): Add arg; all callers changed.
36878 (tree_transform, case N_Case_Statement): Make a BLOCK_STMT for a WHEN.
36879 (start_block_stmt): Clear BLOCK_STMT_BLOCK.
36880 (add_stmt): Set TREE_TYPE.
36881 (gnat_expand_stmt, case BLOCK_STMT): Handle BLOCK_STMT_BLOCK.
36882 (gnat_expand_stmt, case BREAK_STMT): New case.
36884 * utils.c (gnat_poplevel): Return a BLOCK, if we made one.
36886 2004-06-07 Jose Ruiz <ruiz@act-europe.fr>
36888 * s-stchop.adsm s-stchop.adb, s-stchop-vxworks.adb: Remove the
36889 procedure Set_Stack_Size that is not needed.
36891 2004-06-07 Sergey Rybin <rybin@act-europe.fr>
36893 * gnat_ugn.texi: Clarify the case when non-standard naming scheme is
36894 used for gnatpp input file and for the files upon which it depends
36896 2004-06-07 Ben Brosgol <brosgol@gnat.com>
36898 * gnat_ugn.texi: Wordsmithing of "GNAT and Libraries" chapter
36900 2004-06-07 Arnaud Charlet <charlet@act-europe.fr>
36902 * gnatvsn.ads: Bump version numbers appropriately.
36903 Add new build type.
36905 2004-06-07 Pascal Obry <obry@gnat.com>
36907 * gnat_ugn.texi: Improve comments about imported names and link names
36908 on Windows. Add a note about the requirement to use -k gnatdll's option
36909 when working with a DLL which has stripped stdcall symbols (no @nn
36912 2004-05-27 Vincent Celier <celier@gnat.com>
36914 * vms_data.ads: Add new GNAT PRETTY qualifiers /NO_BACKUP and
36915 COMMENTS_LAYOUT=UNTOUCHED
36917 * symbols-vms.adb, symbols-vms-alpha.adb: Renamed symbols-vms.adb to
36918 symbols-vms-alpha.adb
36920 2004-05-27 Thomas Quinot <quinot@act-europe.fr>
36922 * sem.ads: Clarify documentation on checks suppression.
36924 * einfo.ads (Is_Known_Non_Null): Minor comment typo fix and rephrasing.
36926 2004-05-27 Ed Schonberg <schonberg@gnat.com>
36928 * sem_util.adb (Is_Descendent_Of): Examine properly all ancestors in
36929 the case of multiple derivations.
36930 (Is_Object_Reference): For a selected component, verify that the prefix
36931 is itself an object and not a value.
36933 * sem_ch12.adb (Same_Instantiated_Constant): New name for
36934 Same_Instantiated_Entity.
36935 (Same_Instantiated_Variable): Subsidiary to
36936 Check_Formal_Package_Instance, to recognize actuals for in-out generic
36937 formals that are obtained from a previous formal package.
36938 (Instantiate_Subprogram_Body): Emit proper error when
36939 generating code and the proper body of a stub is missing.
36941 * sem_ch4.adb (Remove_Address_Interpretations): If the operation still
36942 has a universal interpretation, do the disambiguation here.
36944 * exp_ch4.adb (Expand_N_Type_Conversion,
36945 Expand_N_Unchecked_Type_Conversion): Special handling when target type
36946 is Address, to avoid typing anomalies when Address is a visible integer
36949 * exp_ch6.adb (Expand_N_Subprogram_Body): Use Is_Descendent_Of_Address
36950 to determine whether a subprogram should not be marked Pure, even when
36951 declared in a pure package.
36953 2004-05-27 Jose Ruiz <ruiz@act-europe.fr>
36955 * gnat_ugn.texi: Replace pragma Ravenscar by pragma Profile.
36957 * gnat_rm.texi: Replace Max_Entry_Queue_Depth by Max_Entry_Queue_Length
36958 Document No_Dynamic_Attachment, that supersedes No_Dynamic_Interrupts.
36959 Update the documentation about the Ravenscar profile, following the
36960 definition found in AI-249.
36962 * sem_prag.adb: Use FIFO_Within_Priorities and Ceiling_Locking when
36963 setting the Profile (Ravenscar). This must be done in addition to
36964 setting the required restrictions.
36966 * rtsfind.ads: Add the set of operations defined in package
36969 * exp_ch6.adb: Check whether we are violating the No_Dynamic_Attachment
36972 2004-05-27 Eric Botcazou <ebotcazou@act-europe.fr>
36974 lang-specs.h: Always require -c or -S and always redirect to /dev/null
36975 if -gnatc or -gnats is passed.
36977 2004-05-27 Hristian Kirtchev <kirtchev@gnat.com>
36979 * sem_prag.adb (Sig_Flags): A Pragma_Unchecked_Union does not count as
36980 a significant reference. Warnings are now properly emitted when a
36981 discriminated type is not referenced.
36983 * lib-xref.adb (Generate_Reference): A deferred constant completion,
36984 record representation clause or record type discriminant does not
36985 produce a reference to its corresponding entity. Warnings are now
36986 properly emitted when deferred constants and record types are not
36989 2004-05-27 Geert Bosch <bosch@gnat.com>
36991 * Makefile.in: Use long version of libm routines on ia64 gnu/linux.
36992 Fixes ACATS Annex G tests.
36994 2004-05-27 Robert Dewar <dewar@gnat.com>
36996 * rtsfind.adb (RTU_Loaded): Temporary kludge to get past bug of not
36999 2004-05-27 Arnaud Charlet <charlet@act-europe.fr>
37001 * s-interr.adb (Server_Task): Take into account case of early return
37002 from sigwait under e.g. linux.
37004 2004-05-27 Sergey Rybin <rybin@act-europe.fr>
37006 * gnat_ugn.texi: Add description for the new gnatpp options:
37007 -rnb - replace the original source without creating its backup copy
37008 -c0 - do not format comments
37010 2004-05-24 Geert Bosch <bosch@gnat.com>
37012 * a-numaux-x86.adb (Reduce): Reimplement using an approximation of Pi
37013 with 192 bits of precision, sufficient to reduce a double-extended
37014 arguments X with a maximum relative error of T'Machine_Epsilon, for X
37015 in -2.0**32 .. 2.0**32.
37016 (Cos, Sin): Always reduce arguments of 1/4 Pi or larger, to prevent
37017 reduction by the processor, which only uses a 68-bit approximation of
37019 (Tan): Always reduce arguments and compute function either using
37020 the processor's fptan instruction, or by dividing sin and cos as needed.
37022 2004-05-24 Doug Rupp <rupp@gnat.com>
37024 * adaint.c (__gnat_readdir): Cast CRTL function retun value to avoid
37025 gcc error on 32/64 bit VMS.
37027 2004-05-24 Olivier Hainque <hainque@act-europe.fr>
37029 * init.c (__gnat_error_handler): Handle EEXIST as EACCES for SIGSEGVs,
37030 since this is what we get for stack overflows although not documented
37032 Document the issues which may require adjustments to our signal
37035 2004-05-24 Ed Schonberg <schonberg@gnat.com>
37037 * inline.adb (Add_Scope_To_Clean): Do not add cleanup actions to the
37038 enclosing dynamic scope if the instantiation is within a generic unit.
37040 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
37042 * exp_dbug.ads: Fix typo.
37044 * Makefile.in: s-osinte-linux-ia64.ads was misnamed.
37045 Rename it to its proper name: system-linux-ia64.ads
37046 (stamp-gnatlib1): Remove extra target specific run time files when
37047 setting up the rts directory.
37049 2004-05-24 Javier Miranda <miranda@gnat.com>
37051 * einfo.ads, einfo.adb (Limited_Views): Removed.
37052 (Limited_View): New attribute that replaces the previous one. It is
37053 now a bona fide package with the limited-view list through the
37054 first_entity and first_private attributes.
37056 * sem_ch10.adb (Install_Private_With_Clauses): Give support to
37057 limited-private-with clause.
37058 (Install_Limited_Withed_Unit): Install the private declarations of a
37059 limited-private-withed package. Update the installation of the shadow
37060 entities according to the new structure (see Build_Limited_Views)
37061 (Build_Limited_Views): Replace the previous implementation of the
37062 limited view by a package entity that references the first shadow
37063 entity plus the first shadow private entity (required for limited-
37064 private-with clause)
37065 (New_Internal_Shadow_Entity): Code cleanup.
37066 (Remove_Limited_With_Clause): Update the implementation to undo the
37067 new work carried out by Build_Limited_Views.
37068 (Build_Chain): Complete documentation.
37069 Replace Ada0Y by Ada 0Y in comments
37072 * sem_ch3.adb (Array_Type_Declaration): In case of anonymous access
37073 types the level of accessibility depends on the enclosing type
37076 * sem_ch8.adb (Find_Expanded_Name): Fix condition to detect shadow
37077 entities. Complete documentation of previous change.
37079 2004-05-24 Robert Dewar <dewar@gnat.com>
37081 * namet.adb: Minor reformatting
37082 Avoid use of name I (replace by J)
37083 Minor code restructuring
37085 * sem_ch6.adb: Minor reformatting
37087 * lib-writ.adb: Do not set restriction as active if this is a
37088 Restriction_Warning case.
37090 * sem_prag.adb: Reset restriction warning flag if real pragma
37091 restriction encountered.
37093 * s-htable.adb: Minor reformatting
37094 Change rotate count to 3 in Hash (improves hash for small strings)
37096 * 5qsystem.ads: Add comments for type Address (no literals allowed).
37098 * gnat_ugn.texi: Add new section of documentation "Code Generation
37099 Control", which describes the use of -m switches.
37101 2004-05-24 Eric Botcazou <ebotcazou@act-europe.fr>
37103 trans.c (tree_transform) <N_Identifier>: Do the dereference directly
37104 through the DECL_INITIAL for renamed variables.
37106 2004-05-24 Arnaud Charlet <charlet@act-europe.fr>
37108 * s-osinte-linux-ia64.ads: Renamed system-linux-ia64.ads
37110 2004-05-19 Joel Brobecker <brobecker@gnat.com>
37112 * exp_dbug.ads: Correct comments concerning handling of overloading,
37113 since we no longer use $ anymore.
37115 2004-05-19 Sergey Rybin <rybin@act-europe.fr>
37117 * sem_ch10.adb (Optional_Subunit): When loading a subunit, do not
37118 ignore errors if ASIS_Mode is set. This prevents creating ASIS trees
37119 with illegal subunits.
37121 2004-05-19 Ed Schonberg <schonberg@gnat.com>
37123 * sem_ch6.adb (Check_Following_Pragma): When compiling a subprogram
37124 body with front-end inlining enabled, check whether an inline pragma
37125 appears immediately after the body and applies to it.
37127 * sem_prag.adb (Cannot_Inline): Emit warning if front-end inlining is
37128 enabled and the pragma appears after the body of the subprogram.
37130 2004-05-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37132 Part of function-at-a-time conversion
37134 * misc.c (adjust_decl_rtl): Deleted.
37135 (LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
37138 * gigi.h: (adjust_decl_rtl, kept_level_p, set_block): Deleted.
37139 (add_decl_stmt, add_stmt, block_has_vars): New functions.
37140 (gnat_pushlevel, gnat_poplevel): Renamed from pushlevel and poplevel.
37142 * decl.c (elaborate_expression, maybe_pad_type): Call add_decl_stmt
37143 when making a decl.
37144 (gnat_to_gnu_entity): Likewise.
37145 Use add_stmt to update setjmp buffer.
37146 Set TREE_ADDRESSABLE instead of calling put_var_into_stack and
37148 No longer call adjust_decl_rtl.
37149 (DECL_INIT_BY_ASSIGN_P): New macro.
37150 (DECL_STMT_VAR): Likewise.
37152 * trans.c (gigi): Call start_block_stmt to make the outermost
37154 (gnat_to_code, gnu_to_gnu, tree_transform, process_decls, process_type):
37155 Call start_block_stmt and end_block_stmt temporarily.
37156 Use gnat_expand_stmt instead of expand_expr_stmt.
37157 (add_decl_stmt): New function.
37158 (tree_transform): Call it.
37159 (add_stmt): Also emit initializing assignment for DECL_STMT if needed.
37160 (end_block_stmt): Set type and NULL_STMT.
37161 (gnat_expand_stmt): Make recursize call instead of calling
37163 (gnat_expand_stmt, case DECL_STMT): New case.
37164 (set_lineno_from_sloc): Do nothing if global.
37165 (gnu_block_stmt_node, gnu_block_stmt_free_list): New variables.
37166 (start_block_stmt, add_stmt, end_block_stmt): New functions.
37167 (build_block_stmt): Call them.
37168 (gnat_to_code): Don't expand NULL_STMT.
37169 (build_unit_elab): Rename pushlevel and poplevel to gnat_* and change
37171 (tree_transform): Likewise.
37172 (tree_transform, case N_Null_Statement): Return NULL_STMT.
37173 (gnat_expand_stmt, case NULL_STMT): New case.
37174 (gnat_expand_stmt, case IF_STMT): Allow nested IF_STMT to have no
37177 * utils2.c (gnat_mark_addressable, case VAR_DECL): Do not set
37180 * utils.c (create_var_decl): Do not call expand_decl or
37182 Set TREE_ADDRESSABLE instead of calling gnat_mark_addressable.
37183 Set DECL_INIT_BY_ASSIGN_P when needed and do not generate MODIFY_EXPR
37185 (struct e_stack): Add chain_next to GTY.
37186 (struct binding_level): Deleted.
37187 (struct ada_binding_level): New struct.
37188 (free_block_chain): New.
37189 (global_binding_level, clear_binding_level): Deleted.
37190 (global_bindings_p): Rework to see if no chain.
37191 (kept_level_p, set_block): Deleted.
37192 (gnat_pushlevel): Renamed from pushlevel and extensive reworked to use
37193 new data structure and work directly on BLOCK node.
37194 (gnat_poplevel): Similarly.
37195 (get_decls): Look at BLOCK_VARS.
37196 (insert_block): Work directly on BLOCK node.
37197 (block_has_var): New function.
37198 (pushdecl): Rework for new binding structures.
37199 (gnat_init_decl_processing): Rename and rework calls to pushlevel and
37201 (build_subprog_body): Likewise.
37202 (end_subprog_body): Likewise; also set up BLOCK in DECL_INITIAL.
37204 * ada-tree.def (DECL_STMT, NULL_STMT): New codes.
37206 * ada-tree.h: (DECL_INIT_BY_ASSIGN_P): New macro.
37207 (DECL_STMT_VAR): Likewise.
37209 2004-05-17 Robert Dewar <dewar@gnat.com>
37211 * restrict.ads, restrict.adb (Process_Restriction_Synonym): New
37214 * sem_prag.adb (Analyze_Pragma, case Restrictions): Cleanup handling
37215 of restriction synonyums by using
37216 Restrict.Process_Restriction_Synonyms.
37218 * snames.ads, snames.adb: Add entries for Process_Restriction_Synonym
37220 * s-restri.ads (Tasking_Allowed): Correct missing comment
37222 * s-rident.ads: Add entries for restriction synonyms
37224 * ali.adb: Fix some problems with badly formatted ALI files that can
37225 result in infinite loops.
37227 * s-taprop-lynxos.adb, s-tpopsp-lynxos.adb, s-taprop-tru64.adb,
37228 s-tpopsp-posix-foreign.adb, s-taprop-irix.adb, s-interr-sigaction.adb,
37229 s-taprop-irix-athread.adb, s-taprop-hpux-dce.adb, s-taprop-linux.adb,
37230 s-taprop-dummy.adb, s-interr-dummy.adb, s-taprop-os2.adb,
37231 s-taprop-solaris.adb, s-tpopsp-solaris.adb, s-asthan-vms.adb,
37232 s-inmaop-vms.adb, s-interr-vms.adb, s-taprop-vms.adb,
37233 s-tpopde-vms.adb, s-taprop-mingw.adb, s-interr-vxworks.adb,
37234 s-taprop-vxworks.adb, s-tpopsp-vxworks.adb, s-taprop-posix.adb,
37235 s-tpopsp-posix.adb, s-tratas-default.adb, a-dynpri.adb,
37236 a-tasatt.adb, a-taside.adb, a-taside.ads, exp_attr.adb,
37237 exp_ch9.adb, g-thread.adb, rtsfind.ads, sem_attr.adb,
37238 s-interr.adb, s-interr.ads, s-soflin.ads, s-taasde.adb,
37239 s-taasde.ads, s-taenca.adb, s-taenca.ads, s-taprop.ads,
37240 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
37241 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
37242 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
37243 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
37244 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
37245 s-tpoben.adb, s-tpobop.adb, s-tpobop.ads, s-tporft.adb,
37246 s-tposen.adb, s-tposen.ads, s-tratas.adb, s-tratas.ads: Change Task_ID
37247 to Task_Id (minor cleanup).
37249 2004-05-17 Vincent Celier <celier@gnat.com>
37251 * g-os_lib.adb (Normalize_Pathname.Final_Value): Remove trailing
37252 directory separator.
37254 * prj-proc.adb (Recursive_Process): Inherit attribute Languages from
37255 project being extended, if Languages is not declared in extending
37258 2004-05-17 Javier Miranda <miranda@gnat.com>
37260 * sem_ch10.adb (Install_Limited_Withed_Unit): Do not install the
37261 limited view of a visible sibling.
37263 2004-05-14 Robert Dewar <dewar@gnat.com>
37265 * gnat_ugn.texi: Minor change to -gnatS documentation
37267 * sprint.adb: Remove some instances of Assert (False) and for this
37268 purpose replace them by output of a ??? string.
37270 * checks.adb, exp_aggr.adb, sem_elim.adb: Remove useless pragma
37273 * lib-writ.adb, lib-load.adb, lib.ads, lib.adb: Remove Dependent_Unit
37274 flag processing. This was suppressing required dependencies in
37275 No_Run_Time mode and is not needed since the binder does not generate
37276 references for things in libgnat anyway.
37278 * sem_ch3.adb (Access_Type_Declaration): Reorganize code to avoid GCC
37281 2004-05-14 Thomas Quinot <quinot@act-europe.fr>
37283 * gnat_ugn.texi: Document AIX-specific issue with initialization of
37286 * exp_ch4.adb (Insert_Dereference_Action): Do not generate dereference
37287 action for the case of an actual parameter in an init proc call.
37289 2004-05-14 Ed Schonberg <schonberg@gnat.com>
37291 * sem_ch4.adb (Analyze_Selected_Component): If prefix is a protected
37292 subtype, check visible entities in base type.
37294 * exp_ch7.adb (Clean_Simple_Protected_Objects): Do not generate cleanup
37295 actions if the object is a renaming.
37297 * sem_ch12.adb (Same_Instantiated_Entity): Predicate for
37298 Check_Formal_Package_Instance, to determine more precisely when the
37299 formal and the actual denote the same entity.
37301 2004-05-14 Javier Miranda <miranda@gnat.com>
37303 * par-ch10.adb (P_Context_Clause): Complete documentation on AI-262
37305 * sem_ch10.adb (Analyze_With_Clause): After analyzed, the entity
37306 corresponding to a private_with must be removed from visibility; it
37307 will be made visible later, just before we analyze the private part of
37309 (Check_Private_Child_Unit): Allow private_with clauses in public
37311 (Install_Siblings): Make visible the private entities of private-withed
37313 (Install_Withed_Unit): Do not install the private withed unit if we
37314 are compiling a package declaration and the Private_With_OK flag was
37315 not set by the caller. These declarations will be installed later,
37316 just before we analyze the private part of the package.
37318 * sem_ch3.adb (Analyze_Object_Declaration): In case of errors detected
37319 during the evaluation of the expression that initializes the object,
37320 decorate it with the expected type to avoid cascade errors.
37323 * sem_ch6.adb (Analyze_Subprogram_Body): If we are compiling a library
37324 subprogram we have to install the private_with clauses after its
37325 specification has been analyzed (as documented in AI-262.TXT).
37327 * sem_ch8.adb (Has_Private_With): New function. Determines if the
37328 current compilation unit has a private with on a given entity.
37329 (Find_Direct_Name): Detect the Beaujolais problem described in
37332 * sem_utils.ads, sem_util.adb (Is_Ancestor_Package): New function. It
37333 provides the functionality of the function Is_Ancestor that was
37334 previously available in sem_ch10. It has been renamed to avoid
37337 * sprint.adb (Sprint_Node_Actual): Print limited_with clauses
37339 2004-05-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37341 * utils.c (build_vms_descriptor): Use SImode pointers.
37343 2004-05-14 Vasiliy Fofanov <fofanov@act-europe.fr>
37345 * gnat_ugn.texi: Revised chapter "GNAT and Libraries".
37347 2004-05-14 GNAT Script <nobody@gnat.com>
37349 * Make-lang.in: Makefile automatically updated
37351 2004-05-14 Arnaud Charlet <charlet@act-europe.fr>
37353 Renaming of target specific files for clarity
37355 * Makefile.in: Rename GNAT target specific files.
37357 * 31soccon.ads, 31soliop.ads 35soccon.ads, 3asoccon.ads,
37358 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3psoccon.ads,
37359 3ssoccon.ads, 3ssoliop.ads, 3veacodu.adb, 3vexpect.adb,
37360 3vsoccon.ads, 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb,
37361 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads, 3wsoliop.ads,
37362 3zsoccon.ads, 3zsocthi.adb, 3zsocthi.ads, 41intnam.ads,
37363 42intnam.ads, 45intnam.ads, 4aintnam.ads, 4cintnam.ads,
37364 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads, 4lintnam.ads,
37365 4nintnam.ads, 4ointnam.ads, 4onumaux.ads, 4pintnam.ads,
37366 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb, 4vcalend.ads,
37367 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb, 4wintnam.ads,
37368 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb, 4zsytaco.ads,
37369 51osinte.adb, 51osinte.ads, 51system.ads,
37370 52osinte.adb, 52osinte.ads, 53osinte.ads, 54osinte.ads,
37371 55osinte.adb, 55osinte.ads, 55system.ads, 56osinte.adb,
37372 56osinte.ads, 56system.ads, 56taprop.adb, 56taspri.ads,
37373 56tpopsp.adb, 57system.ads, 58system.ads,
37374 5amastop.adb, 5aml-tgt.adb, 5aosinte.adb, 5aosinte.ads,
37375 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
37376 5atpopsp.adb, 5avxwork.ads, 5bml-tgt.adb, 5bosinte.adb,
37377 5bosinte.ads, 5bsystem.ads, 5cosinte.ads, 5csystem.ads,
37378 5dsystem.ads, 5esystem.ads, 5fintman.adb, 5fosinte.adb,
37379 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
37380 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gml-tgt.adb,
37381 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
37382 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
37383 5hml-tgt.adb, 5hosinte.adb, 5hosinte.ads, 5hparame.ads,
37384 5hsystem.ads, 5htaprop.adb, 5htaspri.ads, 5htraceb.adb,
37385 5iosinte.adb, 5iosinte.ads, 5itaprop.adb, 5itaspri.ads,
37386 5ksystem.ads, 5kvxwork.ads, 5lml-tgt.adb, 5losinte.ads,
37387 5lparame.adb, 5lsystem.ads, 5msystem.ads, 5mvxwork.ads,
37388 5ninmaop.adb, 5nintman.adb, 5nosinte.ads, 5nsystem.ads,
37389 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
37390 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
37391 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
37392 5posprim.adb, 5psystem.ads, 5pvxwork.ads, 5sintman.adb,
37393 5sml-tgt.adb, 5sosinte.adb, 5sosinte.ads, 5sosprim.adb,
37394 5sparame.adb, 5ssystem.ads, 5staprop.adb, 5stasinf.adb,
37395 5stasinf.ads, 5staspri.ads, 5stpopsp.adb, 5svxwork.ads,
37396 5tosinte.ads, 5usystem.ads, 5vasthan.adb, 5vdirval.adb,
37397 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
37398 5vmastop.adb, 5vml-tgt.adb, 5vosinte.adb, 5vosinte.ads,
37399 5vosprim.adb, 5vosprim.ads, 5vparame.ads, 5vsymbol.adb,
37400 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
37401 5vtpopde.ads, 5vtraent.adb, 5vtraent.ads, 5vvaflop.adb,
37402 5wdirval.adb, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
37403 5wml-tgt.adb, 5wosinte.ads, 5wosprim.adb, 5wsystem.ads,
37404 5wtaprop.adb, 5wtaspri.ads, 5xparame.ads, 5xsystem.ads,
37405 5xvxwork.ads, 5yparame.ads, 5ysystem.ads, 5zinterr.adb,
37406 5zintman.adb, 5zintman.ads, 5zml-tgt.adb, 5zosinte.adb,
37407 5zosinte.ads, 5zosprim.adb, 5zparame.ads, 5zstchop.adb,
37408 5zsystem.ads, 5ztaprop.adb, 5ztaspri.ads, 5ztfsetr.adb,
37409 5ztpopsp.adb, 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads,
37410 7sinmaop.adb, 7sintman.adb, 7sosinte.adb, 7sosprim.adb,
37411 7staprop.adb, 7staspri.ads, 7stfsetr.adb, 7stpopsp.adb,
37412 7straceb.adb, 7straces.adb, 7strafor.adb, 7strafor.ads,
37413 7stratas.adb, 86numaux.adb, 86numaux.ads: Replaced by files below.
37415 * a-caldel-vms.adb, a-calend-mingw.adb, a-calend-vms.adb,
37416 a-calend-vms.ads, a-dirval-mingw.adb, a-dirval-vms.adb,
37417 a-excpol-abort.adb, a-excpol-interix.adb, a-intnam-aix.ads,
37418 a-intnam-dummy.ads, a-intnam-freebsd.ads, a-intnam-hpux.ads,
37419 a-intnam-interix.ads, a-intnam-irix.ads, a-intnam-linux.ads,
37420 a-intnam-lynxos.ads, a-intnam-mingw.ads, a-intnam-os2.ads,
37421 a-intnam-solaris.ads, a-intnam-tru64.ads, a-intnam-unixware.ads,
37422 a-intnam-vms.ads, a-intnam-vxworks.ads, a-numaux-libc-x86.ads,
37423 a-numaux-vxworks.ads, a-numaux-x86.adb, a-numaux-x86.ads,
37424 a-sytaco-vxworks.adb, a-sytaco-vxworks.ads, g-eacodu-vms.adb,
37425 g-expect-vms.adb, g-soccon-aix.ads, g-soccon-freebsd.ads,
37426 g-soccon-hpux.ads, g-soccon-interix.ads, g-soccon-irix.ads,
37427 g-soccon-mingw.ads, g-soccon-solaris.ads, g-soccon-tru64.ads,
37428 g-soccon-unixware.ads, g-soccon-vms.adb, g-soccon-vxworks.ads,
37429 g-socthi-mingw.adb, g-socthi-mingw.ads, g-socthi-vms.adb,
37430 g-socthi-vms.ads, g-socthi-vxworks.adb, g-socthi-vxworks.ads,
37431 g-soliop-mingw.ads, g-soliop-solaris.ads, g-soliop-unixware.ads,
37432 g-trasym-vms.adb, i-cpp-vms.adb, i-cstrea-vms.adb,
37433 interfac-vms.ads, mlib-tgt-aix.adb, mlib-tgt-hpux.adb,
37434 mlib-tgt-irix.adb, mlib-tgt-linux.adb, mlib-tgt-mingw.adb,
37435 mlib-tgt-solaris.adb, mlib-tgt-tru64.adb, mlib-tgt-vms.adb,
37436 mlib-tgt-vxworks.adb, s-asthan-vms.adb, s-gloloc-mingw.adb,
37437 s-inmaop-dummy.adb, s-inmaop-posix.adb, s-inmaop-vms.adb,
37438 s-interr-dummy.adb, s-interr-sigaction.adb, s-interr-vms.adb,
37439 s-interr-vxworks.adb, s-intman-dummy.adb, s-intman-irix.adb,
37440 s-intman-irix-athread.adb, s-intman-mingw.adb, s-intman-posix.adb,
37441 s-intman-solaris.adb, s-intman-vms.adb, s-intman-vms.ads,
37442 s-intman-vxworks.adb, s-intman-vxworks.ads, s-mastop-irix.adb,
37443 s-mastop-tru64.adb, s-mastop-vms.adb, s-mastop-x86.adb,
37444 s-memory-mingw.adb, s-osinte-aix.adb, s-osinte-aix.ads,
37445 s-osinte-aix-fsu.ads, s-osinte-dummy.ads, s-osinte-freebsd.adb,
37446 s-osinte-freebsd.ads, s-osinte-fsu.adb, s-osinte-hpux.ads,
37447 s-osinte-hpux-dce.adb, s-osinte-hpux-dce.ads, s-osinte-interix.ads,
37448 s-osinte-irix.adb, s-osinte-irix.ads, s-osinte-irix-athread.ads,
37449 s-osinte-linux.ads, s-osinte-linux-fsu.ads, s-osinte-linux-ia64.ads,
37450 s-osinte-lynxos-3.adb, s-osinte-lynxos-3.ads, s-osinte-lynxos.adb,
37451 s-osinte-lynxos.ads, s-osinte-mingw.ads, s-osinte-os2.adb,
37452 s-osinte-os2.ads, s-osinte-posix.adb, s-osinte-solaris.adb,
37453 s-osinte-solaris.ads, s-osinte-solaris-fsu.ads,
37454 s-osinte-solaris-posix.ads, s-osinte-tru64.adb, s-osinte-tru64.ads,
37455 s-osinte-unixware.adb, s-osinte-unixware.ads, s-osinte-vms.adb,
37456 s-osinte-vms.ads, s-osinte-vxworks.adb,
37457 s-osinte-vxworks.ads, s-osprim-mingw.adb,
37458 s-osprim-os2.adb, s-osprim-posix.adb, s-osprim-solaris.adb,
37459 s-osprim-unix.adb, s-osprim-vms.adb, s-osprim-vms.ads,
37460 s-osprim-vxworks.adb, s-parame-ae653.ads, s-parame-hpux.ads,
37461 s-parame-linux.adb, s-parame-os2.adb, s-parame-solaris.adb,
37462 s-parame-vms.ads, s-parame-vms-restrict.ads, s-parame-vxworks.ads,
37463 s-proinf-irix-athread.adb, s-proinf-irix-athread.ads,
37464 s-stchop-vxworks.adb, s-taprop-dummy.adb,
37465 s-taprop-hpux-dce.adb, s-taprop-irix.adb,
37466 s-taprop-irix-athread.adb, s-taprop-linux.adb, s-taprop-lynxos.adb,
37467 s-taprop-mingw.adb, s-taprop-os2.adb, s-taprop-posix.adb,
37468 s-taprop-solaris.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
37469 s-taprop-vxworks.adb, s-tasinf-irix.ads, s-tasinf-irix-athread.adb,
37470 s-tasinf-irix-athread.ads, s-tasinf-solaris.adb, s-tasinf-solaris.ads,
37471 s-tasinf-tru64.ads, s-taspri-dummy.ads, s-taspri-hpux-dce.ads,
37472 s-taspri-linux.ads, s-taspri-lynxos.ads, s-taspri-mingw.ads,
37473 s-taspri-os2.ads, s-taspri-posix.ads, s-taspri-solaris.ads,
37474 s-taspri-tru64.ads, s-taspri-vms.ads, s-taspri-vxworks.ads,
37475 s-tfsetr-default.adb, s-tfsetr-vxworks.adb, s-tpopde-vms.adb,
37476 s-tpopde-vms.ads, s-tpopsp-lynxos.adb, s-tpopsp-posix.adb,
37477 s-tpopsp-posix-foreign.adb, s-tpopsp-solaris.adb, s-tpopsp-vxworks.adb,
37478 s-traceb-hpux.adb, s-traceb-mastop.adb, s-traces-default.adb,
37479 s-traent-vms.adb, s-traent-vms.ads, s-trafor-default.adb,
37480 s-trafor-default.ads, s-tratas-default.adb, s-vaflop-vms.adb,
37481 s-vxwork-alpha.ads, s-vxwork-m68k.ads, s-vxwork-mips.ads,
37482 s-vxwork-ppc.ads, s-vxwork-sparcv9.ads, s-vxwork-xscale.ads,
37483 symbols-vms.adb, system-aix.ads, system-freebsd-x86.ads,
37484 system-hpux.ads, system-interix.ads, system-irix-n32.ads,
37485 system-irix-o32.ads, system-linux-x86_64.ads,
37486 system-linux-x86.ads, system-lynxos-ppc.ads, system-lynxos-x86.ads,
37487 system-mingw.ads, system-os2.ads, system-solaris-sparc.ads,
37488 system-solaris-sparcv9.ads, system-solaris-x86.ads, system-tru64.ads,
37489 system-unixware.ads, system-vms.ads, system-vms-zcx.ads,
37490 system-vxworks-alpha.ads, system-vxworks-m68k.ads,
37491 system-vxworks-mips.ads, system-vxworks-ppc.ads,
37492 system-vxworks-sparcv9.ads, system-vxworks-xscale.ads: Replace files
37495 2004-05-13 Zack Weinberg <zack@codesourcery.com>
37497 * trans.c (gnat_stabilize_reference_1): Remove case 'b'.
37499 2004-05-13 Diego Novillo <dnovillo@redhat.com>
37501 Merge from tree-ssa-20020619-branch.
37503 * config-lang.in (boot_language, build_by_default): Set
37505 * utils.c (unchecked_convert): Use OEP_ONLY_CONST.
37506 (max_size): Add static chain op for call_expr.
37508 2004-05-12 Richard Sandiford <rsandifo@redhat.com>
37511 * 5gmastop.adb (Roff): Choose between '4' and '0', not '4' and ' '.
37513 2004-05-11 Roger Sayle <roger@eyesopen.com>
37515 * utils.c (max_size): Use MIN_EXPR to find the minimum value of a
37518 2004-05-10 Doug Rupp <rupp@gnat.com>
37520 * 5qsystem.ads: Remove Short_Address subtype declaration. Moved to
37523 * s-auxdec.ads: Add Short_Address subtype (moved here from System).
37525 * Makefile.in: [VMS]: Add translation for 5qauxdec.ads.
37527 * init.c: [VMS] Macroize LIB$ calls for IA64 and Alpha.
37528 Fixes undefined symbols in IA64 gnatlib.
37530 * 5vinmaop.adb: Reference s-auxdec for Short_Address.
37532 * 5xsystem.ads, 5vsystem.ads: Back out last change (addition of subtype
37533 Short_Address). This will be moved to system.auxdec.
37535 2004-05-10 Thomas Quinot <quinot@act-europe.fr>
37537 * sem_util.adb: Replace test for presence of a node that is always
37538 present with a call to Discard_Node.
37540 * sem_ch10.adb (Analyze_Compilation_Unit): Remove superfluous call to
37541 Analyze on the library unit node after generation of distribution stub
37542 constructs. The call was a no-op because Unit_Node has already been
37543 Analyzed, and the tree fragments for the distribution stubs are
37544 analyzed as they are inserted in Exp_Dist.
37545 Update comment regarding to distribution stubs to reflect that we
37546 do not generate stub in separate files anymore.
37548 * einfo.ads: Clarify the fact that a tagged private type has the
37549 E_Record_Type_With_Private Ekind.
37551 * erroutc.adb: Minor reformatting
37553 * erroutc.ads (Max_Msg_Length): Increase to cover possible larger
37554 values if line length is increased using -gnatyM (noticed during code
37557 * eval_fat.adb: Minor reformatting
37558 Put spaces around exponentiation operator
37560 2004-05-10 Ed Schonberg <schonberg@gnat.com>
37563 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): If prefix
37564 has been rewritten as an explicit dereference, retrieve type of
37565 original node to check for possibly unconstrained record type.
37567 2004-05-10 Ed Schonberg <schonberg@gnat.com>
37569 * exp_ch7.adb (Check_Visibly_Controlled): If given operation is not
37570 overriding, use the operation of the parent unconditionally.
37572 * sem_ch4.adb (Remove_Address_Interpretations): Remove address
37573 operation when either operand is a literal, to avoid further
37576 * sem_ch6.adb (New_Overloaded_Entity): If new entity is inherited and
37577 overridden by a previous explicit declaration, mark the previous entity
37580 * sem_disp.adb (Check_Dispatching_Operation): New predicate
37581 Is_Visibly_Controlled, to determine whether a declaration of a
37582 primitive control operation for a derived type overrides an inherited
37583 one. Add warning if the explicit declaration does not override.
37585 2004-05-10 Vincent Celier <celier@gnat.com>
37587 * gnatls.adb (Gnatls): Initialize Snames, to avoid assertion error in
37588 some cases when the sources are no longer present.
37590 * make.adb (Collect_Arguments): Fail if an external source, not part
37591 of any project need to be compiled, when switch -x has not been
37594 * makeusg.adb: Document new switch -x
37596 * opt.ads (External_Unit_Compilation_Allowed): New Boolean flag,
37597 defaulted to False.
37599 * switch-m.adb (Scan_Make_Switches): New switch -x
37601 * vms_data.ads: Add VMS qualifier /NON_PROJECT_UNIT_COMPILATION for
37602 gnatmake switch -x.
37604 * gnat_ugn.texi: Document new gnatmake switch -x
37606 2004-05-10 Eric Botcazou <ebotcazou@act-europe.fr>
37608 * misc.c (gnat_init_options): Set flag_zero_initialized_in_bss to 0.
37610 * utils.c (create_var_decl): Do not modify the DECL_COMMON flag.
37611 (process_attributes): Likewise.
37613 2004-05-10 Joel Brobecker <brobecker@gnat.com>
37615 * s-inmaop.ads: Fix spelling mistake in one of the comments.
37617 2004-05-10 Robert Dewar <dewar@gnat.com>
37619 * gnat_ugn.texi: Document that for config pragma files, the maximum
37620 line length is always 32767.
37622 * gnat_rm.texi: For pragma Eliminate, note that concatenation of string
37623 literals is now allowed.
37625 * gnat-style.texi: Remove statement about splitting long lines before
37626 an operator rather than after, since we do not follow this rule at all.
37627 Clarify rule (really lack of rule) for spaces around exponentiation
37629 * sem_elim.adb: Allow concatenation of string literals as well as a
37630 single string literal for pragma arguments.
37632 * sem_prag.ads, sem_prag.adb: (Is_Config_Static_String): New function
37634 * a-textio.adb (Terminate_Line): Do not add line feed if nothing
37635 written for append case.
37637 * frontend.adb: Changes to avoid checking max line length in config
37640 * g-os_lib.ads: Minor reformatting
37642 * mlib-utl.adb: Do not define Max_Line_Length locally (definition was
37643 wrong in any case. Instead use standard value. Noticed during code
37646 * opt.ads (Max_Line_Length): New field, used to implement removal of
37647 limitation on length of lines when scanning config pragma files.
37649 * osint.ads, prj-dect.adb, prj-strt.adb, prj-tree.adb,
37650 makeutl.ads, makeutl.adb: Minor reformatting
37652 * scn.adb: Do not check line length while scanning config pragma files
37653 Do not check line length while scanning out license information
37655 * scng.adb: Changes to avoid line length checks while parsing config
37658 2004-05-10 GNAT Script <nobody@gnat.com>
37660 * Make-lang.in: Makefile automatically updated
37662 2004-05-05 Arnaud Charlet <charlet@act-europe.fr>
37664 * osint.adb (Find_Program_Name): Fix handling of VMS version
37667 2004-05-05 Emmanuel Briot <briot@act-europe.fr>
37669 * g-os_lib.ads (Invalid_Time): New constant
37671 * adaint.h, adaint.c (__gnat_file_time_name, __gnat_file_time_fd): Now
37672 return OS_Time instead of time_t to match what is imported by Ada.
37673 Now return -1 if the file doesn't exist, instead of a random value
37675 2004-05-05 Robert Dewar <dewar@gnat.com>
37677 * usage.adb: Add line for -gnatR?s switch
37679 * sem_ch13.adb, exp_ch2.adb: Minor reformatting
37681 * g-regpat.ads, g-regpat.adb: Add documentation on handling of Size
37682 and for Match (Data_First, Data_last)
37684 * lib-writ.adb (Write_With_Lines): Ensure that correct index number is
37685 written when we are dealing with multi-unit files.
37687 2004-05-05 Jerome Guitton <guitton@act-europe.fr>
37689 * Makefile.in: Remove unused targets and variables.
37691 2004-05-05 Vincent Celier <celier@gnat.com>
37693 * switch-m.adb: New gnatmake switch -eI
37695 * vms_data.ads: Add VMS equivalents of new gnatclean swith -innn and
37696 of new gnatmake switch -eInnn.
37698 * makegpr.adb: Take into account new parameters Index and Src_Index in
37701 * clean.adb: Implement support for multi-unit sources, including new
37704 * gnatcmd.adb (GNATCmd): Call Prj.Util.Value_Of with new parameter
37707 * make.ads, make.adb (Insert_Q): New parameter Index, defaulted to 0
37708 (Extract_From_Q): New out parameter Index
37709 (Mark, Is_Marked): Subprograms moved to Makeutl
37710 (Switches_Of): New parameter Source_Index
37711 (Add_Switch): New parameter Index
37712 (Check): New parameter Source_Index
37713 (Collect_Arguments): New parameter Source_Index
37714 (Collect_Arguments_And_Compile): New parameter Source_Index
37715 (Compile): New parameter Source_Index
37716 Put subprograms in alphabetical order
37717 Add support for multi-source sources, including in project files.
37719 * makeutl.ads, makeutl.adb (Unit_Index_Of): New function
37720 (Mark, Is_Marked, Delete_All_Marks): New subprograms, moved from
37723 * makeusg.adb: New gnatmake switch -eInnn
37725 * mlib-prj.adb (Build_Library): Add new parameter Src_Index to call to
37728 * opt.ads (Main_Index): New variable, defaulted to 0.
37730 * osint.ads, osinte.adb (Add_File): New parameter Index
37731 (Current_Source_Index): New function
37733 * prj.adb: Take into account new components Index and Src_Index
37735 * prj.ads (String_Element): New component Index
37736 (Variable_Value): New component Index
37737 (Array_Element): New component Src_Index
37739 * prj-attr.adb: Indicate that optional index may be specified for
37740 attributes Main, Executable, Spec, Body and some of Switches.
37742 * prj-attr.ads (Attribute_Kind): New values for optional indexes
37743 (Attribute_Record): New component Optional_Index
37745 * prj-com.ads (File_Name_Data): New component Index
37747 * prj-dect.adb (Parse_Attribute_Declaration): Process optional index
37749 * prj-env.adb (Put): Output optional index
37751 * prj-makr.adb: Put indexes for multi-unit sources in SFN pragmas and
37752 attributes Spec and Body.
37754 * prj-nmsc.adb: Process optional indexes
37756 * prj-pp.adb: Ouput "at" for optional indexes
37758 * prj-proc.adb: Take into account optional indexes
37760 * prj-strt.ads, prj-strt.adb (Terms): New Boolean parameter
37761 Optional_Index. For string literal,
37762 process optional index when Optional_Index is True.
37763 (Parse_Expresion): New Boolean parameter Optional_Index
37765 * prj-tree.ads, prj-tree.adb (Source_Index_Of): New function
37766 (Set_Source_Index_Of): New procedure
37768 * prj-util.adb (Executable_Of, Value_Of): Take into account optional
37771 * prj-util.ads (Executable_Of): New parameter Index
37772 (Value_Of (Name_Id, Array_Element_Id) returning Variable_Value):
37773 New parameter Src_Index, defaulted to 0.
37775 2004-05-05 Ed Schonberg <schonberg@gnat.com>
37778 * sem_ch3.adb (Access_Definition): If this is an access parameter
37779 whose designated type is imported through a limited_with clause, do
37780 not add the enclosing subprogram to the list of private dependents of
37783 2004-05-05 Ed Schonberg <schonberg@gnat.com>
37786 * sem_ch6.adb (Base_Types_Match): True if one type is imported through
37787 a limited_with clause, and the other is its non-limited view.
37789 2004-05-05 Thomas Quinot <quinot@act-europe.fr>
37791 * cstand.adb (Create_Standard): Initialize Stand.Boolean_Literals.
37793 * exp_attr.adb, exp_ch5.adb, exp_ch9.adb, exp_disp.adb,
37794 exp_fixd.adb, sem_attr.adb, sem_dist.adb, sem_util.adb: Use
37795 Stand.Boolean_Literals to produce references to entities
37796 Standard_False and Standard_True from compile-time computed boolean
37799 * stand.ads (Boolean_Literals): New variable, provides the entity
37800 values for False and True, for use by the expander.
37802 2004-05-05 Doug Rupp <rupp@gnat.com>
37804 * 5vinmaop.adb, 5[vx]system.ads: Add Short_Address subtype
37805 5vinmaop.adb: Unchecked convert Short_Address vice Address
37807 * adaint.c, raise.c: Caste CRTL function return value
37808 to avoid gcc error on 32/64 bit IVMS.
37810 * Makefile.in [VMS]: Use iar archiver if host = Alpha/VMS and
37813 * init.c[VMS]: Only call Alpha specific __gnat_error_prehandler IN_RTS.
37815 * 5qsystem.ads (Address): Declare as Long_Integer
37816 (Short_Address): Declare as 32 bit subtype of Address
37817 Declare abstract address operations to avoid gratuitous ambiguities.
37819 2004-05-05 Jose Ruiz <ruiz@act-europe.fr>
37821 * gnat_rm.texi: Use the new restriction Simple_Barriers (AI-249)
37822 instead of the old Boolean_Entry_Barriers.
37823 Ditto for No_Task_Attributes_Package instead of No_Task_Attributes.
37825 2004-05-05 GNAT Script <nobody@gnat.com>
37827 * Make-lang.in: Makefile automatically updated
37829 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
37831 * 50system.ads, 59system.ads, s-thread.ads: Removed, no longer used.
37833 2004-05-03 Olivier Hainque <hainque@act-europe.fr>
37836 * exp_ch2.adb (Expand_Current_Value): Leave Machine_Code Asm arguments
37837 alone. Replacing object references by literals is inappropriate in a
37838 so low level context.
37840 2004-05-03 Arnaud Charlet <charlet@act-europe.fr>
37842 * a-exexpr.adb: Add comments
37844 2004-05-03 Joel Brobecker <brobecker@gnat.com>
37846 * a-tags.adb (Tag_Table): Add Index_Check pragma Suppress. Allows us to
37847 declare the Ancestor_Tags array in Type_Specific_Data with a small size
37848 without risking a bounds check error when accessing one of its
37850 (Type_Specific_Data): Define Ancestor_Tags as a small array.
37851 This prevents us from hitting a limitation during the debug info
37852 generation when using stabs.
37854 * a-tags.adb (Dispatch_Table): Define the Prims_Ptr component as a
37856 This prevents us from hitting a limitation during the debug info
37857 generation when using stabs.
37859 2004-05-03 Eric Botcazou <ebotcazou@act-europe.fr>
37861 lang-specs.h: Remove -gnatz* from specs.
37863 2004-05-03 Vincent Celier <celier@gnat.com>
37865 * gprmake.adb, makegpr.ads, makegpr.adb: New files.
37867 * Make-lang.in, Makefile.in: Add gprmake
37869 2004-05-03 Thomas Quinot <quinot@act-europe.fr>
37871 * sem_aggr.adb: Fix typo in comment.
37873 2004-05-03 Robert Dewar <dewar@gnat.com>
37875 * make.adb: Minor reformatting
37877 * rtsfind.ads, rtsfind.adb: (RTU_Loaded): New function
37879 * sem_attr.adb (Eval_Attribute, case Type_Class): Fix check for address
37880 so that it works when address is not a private type.
37882 * sem_ch13.adb (Check_Expr_Constants, case N_Integer_Literal): Deal
37883 properly with rewritten unchecked conversions. This prevents
37884 order-of-elaboration issues that can otherwise arise.
37885 (Minimum_Size): Don't check size of access types under VMS
37887 * sem_ch4.adb (Remove_Address_Interpretation): New circuit to remove
37888 interpretations of integer literals as type System.Address.
37890 * sem_util.ads, sem_util.adb (Is_Descendent_Of_Address): New function
37891 (Is_Descendent_Of): New function
37893 2004-05-03 Jose Ruiz <ruiz@act-europe.fr>
37895 * sem_prag.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
37896 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length.
37897 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment.
37899 * sem_res.adb: Use the new restriction Max_Entry_Queue_Length instead
37900 of the old Max_Entry_Queue_Depth.
37902 * snames.adb: Boolean_Entry_Barriers is a synonym of Simple_Barriers.
37903 Max_Entry_Queue_Depth is a synonym of Max_Entry_Queue_Length
37904 No_Dynamic_Interrupts is a synonym of No_Dynamic_Attachment
37906 * snames.ads: New entry for proper handling of Boolean_Entry_Barriers.
37907 New entry for proper handling of Max_Entry_Queue_Depth.
37908 New entry for proper handling of No_Dynamic_Interrupts.
37910 * s-rident.ads: Adding restriction Simple_Barriers (AI-00249) that
37911 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
37912 Adding restriction Max_Entry_Queue_Length (AI-00249) that supersedes
37913 the GNAT specific restriction Max_Entry_Queue_Depth.
37914 Adding restriction No_Dynamic_Attachment (AI-00249) that supersedes
37915 the GNAT specific restriction No_Dynamic_Interrupts.
37917 * restrict.ads, restrict.adb: Use the new restriction Simple_Barriers
37918 instead of the old Boolean_Entry_Barriers.
37919 Use the new restriction No_Dynamic_Attachment instead of the old
37920 No_Dynamic_Interrupts.
37922 * exp_ch9.adb: Check restriction Simple_Barriers (AI-00249) that
37923 supersedes the GNAT specific restriction Boolean_Entry_Barriers.
37925 * gnatbind.adb: Use the new restriction Max_Entry_Queue_Length instead
37926 of the old Max_Entry_Queue_Depth.
37928 2004-05-03 GNAT Script <nobody@gnat.com>
37930 * Make-lang.in: Makefile automatically updated
37932 2004-04-29 Ed Schonberg <schonberg@gnat.com>
37934 * checks.adb (Enable_Range_Check): If the prefix of an index component
37935 is an access to an unconstrained array, perform check unconditionally.
37937 2004-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
37939 * decl.c (gnat_to_gnu_field): Also call make_packable_type if
37942 2004-04-29 Olivier Hainque <hainque@act-europe.fr>
37944 * init.c (__gnat_install_handler, __gnat_error_handler): Remove
37945 alternate stack setting. There was no support for the tasking cases
37946 and the changes eventually caused a number of side-effect failures in
37947 the non-tasking case too.
37949 2004-04-29 Eric Botcazou <ebotcazou@act-europe.fr>
37951 lang-specs.h: Redirect output to /dev/null if -gnatc or -gnatz or
37954 2004-04-29 Vincent Celier <celier@gnat.com>
37956 * make.adb (Gnatmake): Increase max size of argument array for
37957 gnatbind for the potential addition of -F.
37958 If there are Stand-Alone Library projects, invoke gnatbind with -F to
37959 be sure that elaboration flags will be checked.
37961 * switch-c.adb: Correct call to Scan_Pos for -gnateI
37963 2004-04-29 Thomas Quinot <quinot@act-europe.fr>
37965 * sem_warn.adb (Check_References): Move '<access-variable> may be
37966 null' warning out of under Warn_On_No_Value_Assigned.
37968 2004-04-29 Ed Falis <falis@gnat.com>
37970 * gnat_ugn.texi: Fixed texi error
37972 2004-04-29 Robert Dewar <dewar@gnat.com>
37974 * sem_ch4.adb (Remove_Abstract_Operations): Unconditionally remove
37975 abstract operations if they come from predefined files.
37977 * gnat_rm.texi: Fix bad doc for pragma Elaboration_Checks (should be
37980 * s-addope.adb: Correct obvious error in mod function
37982 2004-04-28 Andrew W. Reynolds <awreynolds@mac.com>
37984 * Makefile.in: Add target pairs for powerpc darwin*
37987 * a-intnam-darwin.ads, s-osinte-darwin.adb,
37988 s-osinte-darwin.ads, system-darwin-ppc.ads: New files.
37990 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
37992 * Makefile.in: Add target macro definitions for s390*-linux*.
37993 * system-linux-s390.ads: New file.
37994 * system-linux-s390x.ads: New file.
37996 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
37998 * gnat_ugn.texi: Correct argument to @setfilename.
38000 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
38002 * a-exexpr.adb (Unwind_Word): New data type.
38003 (Unwind_Exception): Use it as type of Private1 and Private2.
38005 * raise.c (db_action_for): Fix debug printf.
38007 2004-04-27 Ed Schonberg <schonberg@gnat.com>
38009 * a-wtmoio.ads: Formal type must be a modular type, not a signed
38012 2004-04-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38014 * decl.c (gnat_to_gnu_entity, case object): Call
38015 __builtin_update_setjmp_buf.
38017 * gigi.h (update_setjmp_buf): Deleted.
38018 (ADT_update_setjmp_buf_decl, update_setjmp_buf_decl): New.
38020 * misc.c: (update_setjmp_buf): Deleted.
38022 * trans.c (gnat_to_gnu): Call do_pending_stack_adjust and emit_queue
38023 around block of RTL.
38025 * utils.c (init_gigi_decls): Initialize update_setjmp_buf.
38027 2004-04-26 Thomas Quinot <quinot@act-europe.fr>
38029 * sem_dist.adb, exp_dist.adb: When constructing a RAS value for a local
38030 subprogram for which no pragma All_Calls_Remote applies, store the
38031 address of the real subprogram in the underlying record type, so local
38032 dereferences do not go through the PCS.
38034 2004-04-26 Robert Dewar <dewar@gnat.com>
38036 * i-c.ads: Add some type qualifications to avoid ambiguities when
38037 compiling with s-auxdec.ads and a non-private address type.
38039 2004-04-26 Arnaud Charlet <charlet@act-europe.fr>
38041 * Makefile.rtl: Fix error in previous check-in:
38042 Add s-addope.o to non tasking object list (rather than tasking object
38045 2004-04-26 Javier Miranda <miranda@gnat.com>
38047 * sem_aggr.adb: Fix typo in comments
38048 (Resolve_Aggr_Expr): Propagate the type to the nested aggregate.
38049 Required to check the null-exclusion attribute.
38051 * sem_attr.adb (Resolve_Attribute): Check the accessibility level in
38052 case of anonymous access types in record and array components. For a
38053 component definition the level is the same of the enclosing composite
38056 * sem_ch3.adb (Analyze_Component_Declaration): In case of components
38057 that are anonymous access types the level of accessibility depends on
38058 the enclosing type declaration. In order to have this information, set
38059 the scope of the anonymous access type to the enclosing record type
38061 (Array_Type_Declaration): In case of components that are anonymous
38062 access types the level of accessibility depends on the enclosing type
38063 declaration. In order to have this information, set the scope of the
38064 anonymous access type to the enclosing array type declaration.
38066 * sem_ch3.adb (Array_Type_Declaration): Set the scope of the anonymous
38069 * sem_ch8.adb (Analyze_Object_Renaming): Add check to verify that
38070 renaming of anonymous access-to-constant types allowed if and only if
38071 the renamed object is access-to-constant.
38073 * sem_util.adb (Type_Access_Level): In case of anonymous access types
38074 that are component_definition or discriminants of a nonlimited type,
38075 the level is the same as that of the enclosing component type.
38077 2004-04-26 Sergey Rybin <rybin@act-europe.fr>
38079 * sem_elim.adb: Some minor code reorganization from code reading. Fix
38080 misprint in the function name (File_Name_Match).
38082 2004-04-23 Laurent Guerby <laurent@guerby.net>
38084 * Makefile.in: Remove RANLIB_TEST, use -$(RANLIB) including after
38087 2004-04-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38089 * Make-lang.in (GNATBIND_OBJS): Add s-addope.o.
38091 2004-04-23 Emmanuel Briot <briot@act-europe.fr>
38093 * adaint.c (__gnat_try_lock): No longer requires that the parent
38094 directory be writable, the directory itself is enough.
38095 (gnat_is_absolute_path): Change profile, so that the call from
38096 GNAT.OS_Lib can be made more efficient.
38098 * adaint.h (gnat_is_absolute_path): Change profile, so that the call
38099 from GNAT.OS_Lib can be made more efficient.
38101 * g-os_lib.adb (Is_Absolute_Path): More efficient implementation, avoid
38102 one copy of the file name. Found by code reading.
38104 2004-04-23 Vincent Celier <celier@gnat.com>
38106 * gnat_ugn.texi: Add documentation for gnatmake switch -eL
38107 Correct documentation on gnatmake switches transmitted to the compiler
38109 * ali.ads: Minor comment fix
38111 2004-04-23 Javier Miranda <miranda@gnat.com>
38113 * sem_ch6.adb: (Confirming Types): Code cleanup
38115 * decl.c (gnat_to_gnu_entity): Give support to anonymous access to
38116 subprogram types: E_Anonymous_Access_Subprogram_Type and
38117 E_Anonymous_Access_Protected_Subprogram_Type.
38119 2004-04-23 Thomas Quinot <quinot@act-europe.fr>
38121 * sem_dist.adb: Add a new paramter to the RAS_Access TSS indicating
38122 whether a pragma All_Calls_Remote applies to the subprogram on which
38124 No functional change is introduced by this revision; the new parameter
38125 will be used to allow calls to local RCI subprograms to be optimized
38126 to not use the PCS in the case where no pragma All_Calls_Remote applies,
38127 as is already done in the PolyORB implementation of the DSA.
38129 * exp_dist.adb: Add a new paramter to the RAS_Access TSS indicating
38130 whether a pragma All_Calls_Remote applies to the subprogram on which
38132 No functional change is introduced by this revision; the new parameter
38133 will be used to allow calls to local RCI subprograms to be optimized
38134 to not use the PCS in the case where no pragma All_Calls_Remote applies,
38135 as is already done in the PolyORB implementation of the DSA.
38137 2004-04-23 Robert Dewar <dewar@gnat.com>
38139 * Makefile.rtl: Add entry for s-addope.o in run time library list
38140 * Make-lang.in: Add entry for s-addope.o to GNAT1 objects
38141 * s-addope.ads, s-addope.adb: New files.
38143 * s-carsi8.adb, s-carun8.adb, s-casi16.adb, s-casi32.adb,
38144 s-casi64.adb, s-caun16.adb, s-caun32.adb, s-caun64.adb,
38145 s-finimp.adb, s-geveop.adb, s-stoele.adb: Modifications to allow
38146 System.Address to be non-private and signed.
38148 * sem_elim.adb: Minor reformatting (fairly extensive)
38149 Some minor code reorganization from code reading
38150 Add a couple of ??? comments
38152 2004-04-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38154 * trans.c (tree_transform, build_unit_elab): Don't call getdecls.
38155 (tree_transform, case N_If_Statement): Remove non-determinism.
38157 * utils.c (begin_subprog_body): Just set DECL_CONTEXT in PARM_DECL.
38159 2004-04-23 Sergey Rybin <rybin@act-europe.fr>
38161 * gnat_rm.texi: Small fixes in the changes made in the 'pragma
38162 Eliminate' section.
38164 * snames.ads, snames.adb: Remove Name_Homonym_Number (Homonym_Number is
38165 no longer used as a parameter name for Eliminate pragma).
38167 2004-04-22 Laurent Guerby <laurent@guerby.net>
38169 PR optimization/14984
38170 PR optimization/14985
38171 * trans.c (gigi): Fix non determinism leading to bootstrap
38172 comparison failures.
38174 2004-04-21 Pascal Obry <obry@gnat.com>
38176 * adaint.c (__gnat_portable_spawn): Quote first argument (argv[0])
38177 passed to spawnvp() to properly handle program pathname with spaces on
38180 2004-04-21 Emmanuel Briot <briot@act-europe.fr>
38182 * g-debpoo.adb (Print_Info): Avoid extra work if Display_Slots is False.
38183 (Allocate, Deallocate, Free_Physically): Make sure the tasks are
38184 unlocked in case of exceptions.
38186 2004-04-21 Joel Brobecker <brobecker@gnat.com>
38188 * gigi.h (get_target_no_dollar_in_label): Remove extern declaration.
38189 This function does not exist anymore.
38191 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
38193 * gnatbind.adb, gnatlink.adb: Update name of imported C symbol.
38195 * link.c: Move variables to the __gnat name space.
38197 * Makefile.in: list link.o explicitly when needed.
38199 * mlib.adb: Remove pragma Linker_Option for "link.o" from mlib.
38201 2004-04-21 Javier Miranda <miranda@gnat.com>
38203 * einfo.adb (Original_Access_Type): New subprogram
38204 (Set_Original_Access_Type): New subprogram
38205 (Write_Field21_Name): Write the name of the new field
38207 * einfo.ads (Original_Access_Type): New field present in access to
38209 Addition of two new entities: E_Anonymous_Access_Subprogram_Type, and
38210 E_Anonymous_Access_Protected_Subprogram_Type.
38212 * lib-xref.adb (Output_One_Ref): Give support to anonymous access to
38215 * lib-xref.ads (Xref_Entity_Letters): Initialize values corresponding
38216 to anonymous access to subprogram types.
38218 * sem_attr.adb (Resolve_Attribute): Give support to anonymous access
38219 to subprogram types.
38221 * sem_ch3.adb (Access_Definition): Complete decoration of entities
38222 corresponding to anonymous access to subprogram types.
38223 (Analyze_Component_Declaration): Add new actual to the call to
38224 subprogram replace_anonymous_access_to_protected_subprogram.
38225 (Array_Type_Declaration): Add new actual to the call to subprogram
38226 replace_anonymous_access_to_protected_subprogram.
38227 (Process_Discriminants): Add new actual to the call to subprogram
38228 replace_anonymous_access_to_protected_subprogram.
38229 (Replace_Anonymous_Access_To_Protected_Subprogram): New formal.
38231 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
38234 * sem_ch6.adb, sem_type.adb, sem_res.adb: Give support to anonymous
38235 access to subprogram types.
38237 * sem_util.adb (Has_Declarations): Addition of package_specification
38240 2004-04-21 Ed Schonberg <schonberg@gnat.com>
38242 * sem_prag.adb (Make_Inline): If subprogram is a renaming, propagate
38243 inlined flags to renamed entity only if in current unit.
38245 2004-04-21 Thomas Quinot <quinot@act-europe.fr>
38247 * s-parint.ads: Add DSA implementation marker.
38249 * rtsfind.ads, rtsfind.adb, snames.ads, snames.adb, s-rpc.adb: Use the
38250 value of System.Partition_Interface.DSA_Implementation to determine
38251 what version of the distributed systems annex is available (no
38252 implementation, GLADE, or PolyORB).
38254 2004-04-21 Joel Brobecker <brobecker@gnat.com>
38256 * targtyps.c (get_target_no_dollar_in_label): Remove, no longer used.
38258 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38260 * utils.c (convert, case CONSTRUCTOR, COMPONENT_REF): Do not make node
38261 with new type if alias sets differ.
38262 Fixes ACATS c41103b.
38264 2004-04-21 Vincent Celier <celier@gnat.com>
38266 * prj.ads: Remove FORTRAN as an accepted language: not tested yet.
38267 Add array Lang_Args for the language specific compiling argument
38270 * gnat_ugn.texi: Explain in more details when a library is rebuilt.
38272 2004-04-21 Sergey Rybin <rybin@act-europe.fr>
38274 * gnat_rm.texi: Update the descripton of the Eliminate pragma
38275 according to the recent changes in the format of the parameters of the
38276 pragma (replacing Homonym_Number with Source_Location).
38278 2004-04-19 Arnaud Charlet <charlet@act-europe.fr>
38280 * 5isystem.ads: Removed, unused.
38282 * gnat_rm.texi: Redo 1.13 change.
38284 2004-04-19 Robert Dewar <dewar@gnat.com>
38286 * s-stoele.ads: Clean up definition of Storage_Offset (the new
38287 definition is cleaner, avoids the kludge of explicit Standard operator
38288 references, and also is consistent with a visible System.Address with
38289 no visible operations.
38291 * s-geveop.adb: Add declarations to avoid assumption of visible
38292 operations on type System.Address (since these might not be available
38293 if Address is a non-private type for which the operations
38294 are made abstract).
38296 * sem_eval.adb: Minor reformatting
38298 * s-carsi8.ads, s-carun8.ads, s-casi16.ads, s-casi32.ads,
38299 s-casi64.ads, s-caun16.ads, s-caun32.ads, s-caun64.ads: Minor
38300 reformatting (new function spec format).
38302 * s-auxdec.adb, s-carsi8.adb, s-carun8.adb, s-casi16.adb,
38303 s-casi32.adb, s-casi64.adb, s-caun16.adb, s-caun32.adb,
38304 s-caun64.adb: Add declarations to avoid assumption of visible
38305 operations on type System.Address (since these might not be available
38306 if Address is a non-private type for which the operations are made
38309 * lib.ads, lib.adb (Synchronize_Serial_Number): New procedure.
38311 * exp_intr.adb: Minor comment update
38313 * exp_aggr.adb, exp_attr.adb, exp_ch13.adb: Minor reformatting.
38315 * 5omastop.adb: Add declarations to avoid assumption of visible
38316 operations on type System.Address (since these might not be available
38317 if Address is a non-private type for which the operations
38318 are made abstract).
38320 2004-04-19 Vincent Celier <celier@gnat.com>
38322 * switch-m.adb: (Scan_Make_Switches): Process new switch -eL
38324 * prj-pars.ads (Parse): New Boolean parameter Process_Languages,
38327 * prj-proc.adb (Process): New Boolean parameter Process_Languages,
38329 Call Check with Process_Languages.
38330 (Check): New Boolean parameter Process_Languages. Call Recursive_Check
38331 with Process_Languages.
38332 (Recursive_Check): New Boolean parameter Process_Languages. Call
38333 Nmsc.Ada_Check or Nmsc.Other_Languages_Check according to
38336 * prj-proc.ads (Process): New Boolean parameter Process_Languages,
38338 * prj-util.ads, prj-util.adb (Executable_Of): New Boolean
38339 parameter Ada_Main, defaulted to True.
38340 Check for Ada specific characteristics only when Ada_Main is True.
38342 * opt.ads: (Follow_Links): New Boolean flag for gnatmake
38344 * prj.adb: (Project_Empty): Add new Project_Data components.
38346 * prj.ads: New types and tables for non Ada languages.
38347 (Project_Data): New components Languages, Impl_Suffixes,
38348 First_Other_Source, Last_Other_Source, Imported_Directories_Switches,
38349 Include_Path, Include_Data_Set.
38351 * prj-env.ads, prj-env.adb: Minor reformatting
38353 * prj-nmsc.ads, prj-nmsc.adb: (Other_Languages_Check): New procedure
38354 Put subprograms in alphabetical order
38356 * prj-pars.adb (Parse): New Boolean parameter Process_Languages,
38357 defaulted to Ada; Call Prj.Proc.Process with Process_Languages and
38360 * mlib-prj.adb: Back out modification in last version, as they are
38362 (Build_Library.Check_Libs): Remove useless pragma Warnings (Off)
38364 * make.adb: (Mains): Moved to package Makeutl
38365 (Linker_Opts): Moved to package Makeutl
38366 (Is_External_Assignment): Moved to package Makeutl
38367 (Test_If_Relative_Path): Moved to package Makeutl
38368 (Gnatmake): Move sorting of linker options to function
38369 Makeutl.Linker_Options_Switches.
38371 * makeutl.ads, makeutl.adb: New files.
38373 * Makefile.in: Add makeutl.o to the object files for gnatmake
38375 * makeusg.adb: Add line for new switch -eL.
38377 * gnatls.adb (Image): New function.
38378 (Output_Unit): If in verbose mode, output the list of restrictions
38379 specified by pragmas Restrictions.
38381 * 5bml-tgt.adb, 5vml-tgt.adb (Build_Dynamic_Library): Do not use
38384 * a-calend.adb (Split): Shift the date by multiple of 56 years, if
38385 needed, to put it in the range 1970 (included) - 2026 (excluded).
38386 (Time_Of): Do not shift Unix_Min_Year (1970).
38387 Shift the date by multiple of 56 years, if needed, to put it in the
38388 range 1970 (included) - 2026 (excluded).
38390 * adaint.h, adaint.c (__gnat_set_executable): New function.
38392 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38394 * trans.c (tree_transform, case N_Subprogram_Body): Temporarily push
38395 and pop GC context.
38396 (tree_transform, case N_Procedure_Call): Fix typo in setting TREE_TYPE.
38397 (tree_transform, case N_Label): Don't set LABEL_STMT_FIRST_IN_EH.
38398 (tree_transform, case N_Procedure_Call_Statement): Build a tree.
38399 (tree_transform, case N_Code_Statement): Likewise.
38400 (gnat_expand_stmt, case LABEL_STMT): Don't look at
38401 LABEL_STMT_FIRST_IN_EH.
38402 (gnat_expand_stmt, case ASM_STMT): New case.
38404 * utils2.c (build_unary_op): Properly set TREE_READONLY of
38405 UNCONSTRAINED_ARRAY_REF.
38407 * utils.c (poplevel): Temporarily push/pop GC context around inline
38408 function expansion.
38410 * decl.c (maybe_variable): Properly set TREE_READONLY of
38411 UNCONSTRAINED_ARRAY_REF.
38412 (make_packable_type): Only reference TYPE_IS_PADDING_P for RECORD_TYPE.
38414 * ada-tree.def: (ASM_STMT): New.
38416 * ada-tree.h: (LABEL_STMT_FIRST_IN_EH): Deleted.
38417 (ASM_STMT_TEMPLATE, ASM_STMT_OUTPUT, ASM_STMT_ORIG_OUT,
38418 ASM_STMT_INPUT): New.
38419 (ASM_STMT_CLOBBER): Likewise.
38421 2004-04-19 Thomas Quinot <quinot@act-europe.fr>
38423 * a-except.adb, s-parint.ads, s-parint.adb, types.ads, types.h: Use
38424 general rcheck mechanism to raise Program_Error for E.4(18), instead
38425 of a custom raiser in System.Partition_Interface.
38426 Part of general cleanup work before PolyORB integration.
38428 * snames.ads, snames.adb: Add new runtime library entities and names
38431 * sem_dist.ads, sem_dist.adb (Get_Subprogram_Id): Move from sem_dist to
38433 (Build_Subprogram_Id): New subprogram provided by exp_dist
38434 Code reorganisation in preparation for PolyORB integration.
38436 * exp_dist.ads, exp_dist.adb (Get_Subprogram_Id): Move from sem_dist to
38438 (Build_Subprogram_Id): New subprogram provided by exp_dist
38440 * sem_ch4.adb (Analyze_One_Call): Fix error message for mismatch in
38441 actual parameter types for call to dereference of an
38442 access-to-subprogram type.
38444 * rtsfind.ads: Add new runtime library entities and names for PolyORB
38447 * gnatlink.adb (Value): Remove. Use Interfaces.C.Strings.Value
38448 instead, which has the same behaviour here since we never pass it a
38451 * link.c (run_path_option, Solaris case): Use -Wl, as for other
38454 * Makefile.in: adjust object file lists for gnatlink and gnatmake
38455 to account for new dependency upon Interfaces.C.Strings + link.o
38456 For x86 FreeBSD, use 86numaux.
38458 * make.adb, gnatcmd.adb: Linker_Library_Path_Option has been moved up
38459 from Mlib.Tgt to Mlib.
38461 * mlib.ads, mlib.adb (Linker_Library_Path_Option): New subprogram, now
38462 target-independent.
38464 * mlib-tgt.ads, mlib-tgt.adb (Linker_Library_Path_Option): Remove
38465 target-specific versions of this subprogram, now implemented as a
38466 target-independent function in Mlib.
38468 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb, 5lml-tgt.adb,
38469 5sml-tgt.adb, 5vml-tgt.adb, 5zml-tgt.adb, 5wml-tgt.adb
38470 (Linker_Library_Path_Option): Remove target-specific versions of this
38471 subprogram, now implemented as a target-independent function in Mlib.
38473 * atree.adb: (Allocate_Initialize_Node): New subprogram.
38474 Factors out node table slots allocation.
38475 (Fix_Parents): New subprogram.
38476 Encapsulate the pattern of fixing up parent pointers for syntactic
38477 children of a rewritten node.
38478 (New_Copy_Tree): Use New_Copy to copy non-entity nodes.
38479 (Rewrite): Use New_Copy when creating saved copy of original node.
38480 (Replace): Use Copy_Node to copy nodes.
38482 2004-04-19 Javier Miranda <miranda@gnat.com>
38484 * sprint.adb (Sprint_Node_Actual): Give support to the new
38485 Access_To_Subprogram node available in Access_Definition nodes. In
38486 addition, give support to the AI-231 node fields: null-exclusion,
38487 all-present, constant-present.
38489 * sem_util.ads, sem_util.adb: (Has_Declarations): New subprogram
38491 * sinfo.ads, sinfo.adb:
38492 New field Access_To_Subprogram_Definition in Access_Definition nodes
38494 * sem_ch6.adb (Process_Formals): Move here the code that creates and
38495 decorates internal subtype declaration corresponding to the
38496 null-excluding formal. This code was previously in Set_Actual_Subtypes.
38497 In addition, carry out some code cleanup on this code. In case of
38498 access to protected subprogram call
38499 Replace_Anonymous_Access_To_Protected_Subprogram.
38500 (Set_Actual_Subtypes): Code cleanup.
38502 * sem_ch8.adb (Analyze_Object_Renaming): Remove un-necessary call to
38503 Find_Type in case of anonymous access renamings. Add warning in case of
38504 null-excluding attribute used in anonymous access renaming.
38506 * sem_ch3.ads (Replace_Anonymous_Access_To_Protected_Subprogram): New
38509 * sem_ch3.adb (Replace_Anonymous_Access_To_Protected_Subprogram): New
38511 (Access_Definition): In case of anonymous access to subprograms call
38512 the corresponding semantic routine to decorate the node.
38513 (Access_Subprogram_Declaration): Addition of some comments indicating
38514 some code that probably should be added here. Detected by comparison
38515 with the access_definition subprogram.
38516 (Analyze_Component_Declaration): In case of access to protected
38517 subprogram call Replace_Anonymous_Access_To_Protected.
38518 (Array_Type_Declaration): In case of access to protected subprogram call
38519 Replace_Anonymous_Access_To_Protected_Subprogram.
38520 (Process_Discriminants): In case of access to protected subprogram call
38521 Replace_Anonymous_Access_To_Protected_Subprogram.
38523 * par.adb (P_Access_Definition): New formal that indicates if the
38524 null-exclusion part was present.
38525 (P_Access_Type_Definition): New formal that indicates if the caller has
38526 already parsed the null-excluding part.
38528 * par-ch3.adb (P_Subtype_Declaration): Code cleanup.
38529 (P_Identifier_Declarations): Code cleanup and give support to renamings
38530 of anonymous access to subprogram types.
38531 (P_Derived_Type_Def_Or_Private_Ext_Decl): Code cleanup.
38532 (P_Array_Type_Definition): Give support to AI-254.
38533 (P_Component_Items): Give support to AI-254.
38534 (P_Access_Definition): New formal that indicates if the header was
38535 already parsed by the caller.
38536 (P_Access_Type_Definition): New formal that indicates if the caller has
38537 already parsed the null-excluding part.
38539 * par-ch6.adb (P_Formal_Part): Add the null-excluding parameter to the
38540 call to P_Access_Definition.
38542 2004-04-19 Geert Bosch <bosch@gnat.com>
38544 * checks.adb (Apply_Float_Conversion_Check): New procedure to implement
38545 the delicate semantics of floating-point to integer conversion.
38546 (Apply_Type_Conversion_Checks): Use Apply_Float_Conversion_Check.
38548 * eval_fat.adb (Machine_Mantissa): Moved to spec.
38549 (Machine_Radix): New function.
38551 * eval_fat.ads (Machine_Mantissa): Moved from body for use in
38553 (Machine_Radix): New function also for use in conversion checks.
38555 2004-04-19 Ed Schonberg <schonberg@gnat.com>
38557 * par-prag.adb (Source_File_Name_Project): Fix typo in error message.
38559 * exp_ch9.adb (Expand_Access_Protected_Subprogram_Type): Call analyze
38560 to decorate the access-to-protected subprogram and the equivalent type.
38562 * checks.adb (Null_Exclusion_Static_Checks): Code cleanup. Give support
38563 to anonymous access to subprogram types.
38565 * exp_ch4.adb (Expand_N_In): Preserve Static flag before
38566 constant-folding, for legality checks in contexts that require an RM
38569 * exp_ch6.adb (Expand_N_Function_Call): If call may generate large
38570 temporary but stack checking is not enabled, increment serial number
38571 to so that symbol generation is consistent with and without stack
38574 * exp_util.ads, exp_util.adb (May_Generate_Large_Temp): Predicate is
38575 independent on whether stack checking is enabled, caller must check
38576 the corresponding flag.
38578 * sem_ch3.adb (Constrain_Index): Index bounds given by attributes need
38580 (Build_Derived_Concurrent_Type): Inherit Is_Constrained flag from
38581 parent if it has discriminants.
38582 (Build_Derived_Private_Type): Constructed full view does
38583 not come from source.
38584 (Process_Discriminants): Default discriminants on a tagged type are
38585 legal if this is the internal completion of a private untagged
38588 * sem_ch6.adb (Set_Actual_Subtypes): The generated declaration needs
38589 no constraint checks, because it corresponds to an existing object.
38591 * sem_prag.adb (Process_Convention): Pragma applies
38592 only to subprograms in the same declarative part, i.e. the same unit,
38593 not the same scope.
38595 * sem_res.adb (Valid_Conversion): In an instance or inlined body,
38596 ignore type mismatch on a numeric conversion if expression comes from
38599 2004-04-19 Sergey Rybin <rybin@act-europe.fr>
38601 * sem_elim.adb (Process_Eliminate_Pragma): Remove the processing for
38602 Homonym_Number parameter, add processing for Source_Location parameter
38604 (Check_Eliminated): Remove the check for homonym numbers, add the check
38605 for source location traces.
38607 * sem_elim.ads (Process_Eliminate_Pragma): Replace Arg_Homonym_Number
38608 with Arg_Source_Location corresponding to the changes in the format of
38611 * sem_prag.adb: (Analyze_Pragma): Changes in the processing of
38612 Eliminate pragma corresponding to the changes in the format of the
38613 pragma: Homonym_Number is replaced with Source_Location, two ways of
38614 distinguishing homonyms are mutially-exclusive.
38616 2004-04-19 Joel Brobecker <brobecker@gnat.com>
38618 * get_targ.ads (Get_No_Dollar_In_Label): Remove.
38620 * exp_dbug.adb (Output_Homonym_Numbers_Suffix): Remove use of
38621 No_Dollar_In_Label, no longer necessary, as it is always True.
38622 (Strip_Suffixes): Likewise.
38624 2004-04-19 Gary Dismukes <dismukes@gnat.com>
38626 * s-stalib.ads (type Exception_Code): Use Integer'Size for exponent of
38627 modulus for compatibility with size clause on targets with 16-bit
38630 * layout.adb (Discrimify): In the case of private types, set Vtyp to
38631 full type to fix type mismatches on calls to size functions for
38632 discriminant-dependent array components.
38634 2004-04-19 Jerome Guitton <guitton@act-europe.fr>
38636 * Makefile.in (gnatlib-zcx): New target, for building a ZCX run-time
38639 2004-04-19 Pascal Obry <obry@gnat.com>
38641 * mdll-utl.adb (Locate): New version is idempotent.
38643 2004-04-17 Laurent Guerby <laurent@guerby.net>
38645 PR ada/14988 (partial)
38646 * impunit.adb: Fix typo.
38648 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
38650 * Make-lang.in: Remove obsolete rts-none, rts-cert, install-rts-none,
38651 and install-rts-cert targets. Remove all gnatlib and gnattools
38652 targets and all other rts-* targets (moved to libada). Remove (now)
38653 unused Make variables CHMOD, CHMOD_AX_FLAGS, shext, THREAD_KIND,
38654 TRACE, GNATLIBFLAGS, GNATLIBCFLAGS.
38656 2004-04-08 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38658 * trans.c (tree_transform): Shortcut returning error_mark_node for
38659 statements in annotate_only_mode.
38660 (tree_transform, case N_Label, case N_Return_Statement,
38661 N_Goto_Statement): Make statement tree instead of generating code.
38662 (tree_transform, case N_Assignment_Statement): No longer check
38663 type_annotate_only.
38664 (gnat_expand_stmt, case GOTO_STMT, case LABEL_STMT, case
38666 (first_nondeleted_insn, build_block_stmt, make_expr_stmt_from_rtl):
38668 (gnat_to_gnu): Collect any RTL generated and deal with it.
38669 (tree_transform, case N_And_Then): Refine when have non-null RTL_EXPR.
38670 (tree_transform case N_If_Statement): Rewrite to make IF_STMT.
38671 (gnat_expand_stmt, case BLOCK_STMT, IF_STMT): New cases.
38673 * ada-tree.def (GOTO_STMT, LABEL_STMT, RETURN_STMT): New tree nodes.
38675 * ada-tree.def (EXPR_STMT): Fix typo in name.
38676 (BLOCK_STMT, IF_STMT): New nodes.
38678 * ada-tree.h (GOTO_STMT_LABEL, LABEL_STMT_LABEL,
38679 LABEL_STMT_FIRST_IN_EH): New macros.
38680 (RETURN_STMT_EXPR): Likewise.
38682 * ada-tree.h: (BLOCK_STMT_LIST, IF_STMT_COND, IF_STMT_TRUE,
38683 IF_STMT_ELSEIF, IF_STMT_ELSE): New macros.
38685 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
38687 * atree.ads: Correct documentation on extended nodes.
38689 * link.c: Set run_path_option for FreeBSD.
38691 2004-04-08 Vincent Celier <celier@gnat.com>
38693 * mlib-prj.adb (Build_Library.Check_Libs): On OpenVMS, if dec.ali is
38694 one of the ALI file, do not link with DEC lib.
38696 * par.adb Remove the last two characters ("%s" or "%b") when checking
38697 if a language defined unit may be recompiled.
38699 2004-04-08 Ed Schonberg <schonberg@gnat.com>
38701 * sem_ch4.adb (Remove_Abstract_Operations): Improve error message when
38702 removal of abstract operation leaves no possible interpretation for
38705 * sem_eval.adb (Eval_Qualified_Expression): Use
38706 Set_Raises_Constraint_Error on node when needed, so that it does not
38707 get optimized away by subsequent optimizations.
38709 * sem_res.adb (Resolve_Intrinsic_Operator): Save interpretations of
38710 operands even when they are not wrapped in a type conversion.
38712 2004-04-08 Olivier Hainque <hainque@act-europe.fr>
38714 * sem_prag.adb (Set_Exported): Warn about making static as result of
38715 export only when the export is coming from source. This may be not
38716 be true e.g. on VMS where we expand export pragmas for exception codes
38717 together with imported or exported exceptions, and we don't want the
38718 user to be warned about something he didn't write.
38720 2004-04-08 Thomas Quinot <quinot@act-europe.fr>
38722 * sem_util.adb (Note_Possible_Modification): Reorganize to remove code
38723 duplication between normal entities and those declared as renamings.
38724 No functional change.
38726 * s-fileio.ads (Form): Remove pragma Inline, as we cannot currently
38727 inline functions returning an unconstrained result.
38729 2004-04-08 Eric Botcazou <ebotcazou@act-europe.fr>
38731 * utils.c (type_for_mode): Handle BLKmode and VOIDmode properly, to
38732 conform to what other front-ends do.
38734 2004-04-08 Doug Rupp <rupp@gnat.com>
38736 * 5vml-tgt.adb: Use Gas instead of VMS Macro to build auto init shared
38739 2004-04-06 Pascal Obry <obry@gnat.com>
38741 * adaint.c (DIR_SEPARATOR): Properly set DIR_SEPARATOR on Win32.
38743 * osint.adb (Program_Name): Do not look past a directory separator.
38745 2004-04-06 Thomas Quinot <quinot@act-europe.fr>
38747 * atree.adb: Update comment (Rewrite_Substitute_Node no longer exists).
38749 * exp_ch6.adb (Rewrite_Function_Call): Clarify documentation of
38750 requirement for preserving a copy of the original assignment node.
38752 * sinfo.ads: Update comment (Original_Tree -> Original_Node).
38754 2004-04-06 Olivier Hainque <hainque@act-europe.fr>
38756 (__gnat_initialize [Vxworks]): Enable references to the crtstuff bits
38759 2004-04-06 Ed Schonberg <schonberg@gnat.com>
38761 * sem_ch4.adb (Remove_Abstract_Operations): Extend previous changes to
38762 operator calls in functional notation, and apply
38763 Universal_Interpretation to operands, not to their type.
38765 2004-04-06 Robert Dewar <dewar@gnat.com>
38767 * 5wdirval.adb: Minor reformatting
38769 2004-04-06 Ed Falis <falis@gnat.com>
38771 * gnat_rm.texi: Improve a reference to the GCC manual
38773 2004-04-05 Vincent Celier <celier@gnat.com>
38775 * adaint.h, adaint.c: Add function __gnat_named_file_length
38777 * impunit.adb: Add Ada.Directories to the list
38779 * Makefile.in: Add VMS and Windows versions of
38780 Ada.Directories.Validity package body.
38782 * Makefile.rtl: Add a-direct and a-dirval
38784 * mlib-tgt.ads: Minor comment update.
38786 * a-dirval.ads, a-dirval.adb, 5vdirval.adb, 5wdirval.adb,
38787 a-direct.ads, a-direct.adb: New files.
38789 2004-04-05 Vincent Celier <celier@gnat.com>
38792 * make.adb (Scan_Make_Arg): Pass any -fxxx switches to gnatlink, not
38793 just to the compiler.
38795 2004-04-05 Robert Dewar <dewar@gnat.com>
38797 * a-except.adb (Exception_Name_Simple): Make sure lower bound of
38798 returned string is 1.
38800 * ali-util.adb: Use proper specific form for Warnings (Off, entity)
38802 * eval_fat.ads: Minor reformatting
38804 * g-curexc.ads: Document that lower bound of returned string values
38807 * gnatlink.adb: Add ??? comment for previous change
38808 (need to document why this is VMS specific)
38810 * s-stoele.ads: Minor reformatting
38812 * tbuild.ads: Minor reformatting throughout (new function specs)
38814 * par-ch10.adb (P_Context_Clause): Handle comma instead of semicolon
38817 * scng.adb: Minor reformatting
38819 2004-04-05 Geert Bosch <bosch@gnat.com>
38821 * eval_fat.adb (Machine): Remove unnecessary suppression of warning.
38822 (Leading_Part): Still perform truncation to machine number if the
38823 specified radix_digits is greater or equal to machine_mantissa.
38825 2004-04-05 Javier Miranda <miranda@gnat.com>
38827 * par-ch3.adb: Complete documentation of previous change
38828 Correct wrong syntax documentation of the OBJECT_DECLARATION rule
38829 (aliased must appear before constant).
38831 * par-ch4.adb: Complete documentation of previous change.
38833 * par-ch6.adb: Complete documentation of previous change.
38835 * sinfo.ads: Fix typo in commment.
38837 2004-04-05 Ed Schonberg <schonberg@gnat.com>
38839 * sem_ch3.adb (Inherit_Components): If derived type is private and has
38840 stored discriminants, use its discriminants to constrain parent type,
38841 as is done for non-private derived record types.
38843 * sem_ch4.adb (Remove_Abstract_Operations): New subprogram to implement
38844 Ada 2005 AI-310: an abstract non-dispatching operation is not a
38845 candidate interpretation in an overloaded call.
38847 * tbuild.adb (Unchecked_Convert_To): Preserve conversion node if
38848 expression is Null and target type is not an access type (e.g. a
38849 non-private address type).
38851 2004-04-05 Thomas Quinot <quinot@act-europe.fr>
38853 * exp_ch6.adb (Rewrite_Function_Call): When rewriting an assignment
38854 statement whose right-hand side is an inlined call, save a copy of the
38855 original assignment subtree to preserve enough consistency for
38856 Analyze_Assignment to proceed.
38858 * sem_ch5.adb (Analyze_Assignment): Remove a costly copy of the
38859 complete assignment subtree which is now unnecessary, as the expansion
38860 of inlined call has been improved to preserve a consistent assignment
38861 tree. Note_Possible_Modification must be called only
38862 after checks have been applied, or else unnecessary checks will
38865 * sem_util.adb (Note_Possible_Modification): Reorganise the handling
38866 of explicit dereferences that do not Come_From_Source:
38867 - be selective on cases where we must go back to the dereferenced
38868 pointer (an assignment to an implicit dereference must not be
38869 recorded as modifying the pointer);
38870 - do not rely on Original_Node being present (Analyze_Assignment
38871 calls Note_Possible_Modification on a copied tree).
38873 * sem_warn.adb (Check_References): When an unset reference to a pointer
38874 that is never assigned is encountered, prefer '<pointer> may be null'
38875 warning over '<pointer> is never assigned a value'.
38877 2004-04-05 Ramon Fernandez <fernandez@gnat.com>
38879 * tracebak.c: Change STOP_FRAME in ppc vxworks to be compliant with
38882 2004-04-05 Olivier Hainque <hainque@act-europe.fr>
38884 * 5gmastop.adb (Pop_Frame): Comment out the pragma Linker_Option for
38885 libexc. We currently don't reference anything in this library and
38886 linking it in triggers linker warnings we don't want to see.
38888 * init.c: Update comments.
38890 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
38892 * decl.c (gnat_to_gnu_entity): Use TYPE_READONLY.
38893 * utils.c (create_field_decl): Likewise.
38894 * utils2.c (build_unary_op, gnat_build_constructor): Likewise.
38896 2004-04-02 Arnaud Charlet <charlet@act-europe.fr>
38898 * gnat-style.texi, gnat_rm.texi, gnat_ugn.texi: Remove RCS tags.
38899 Replace ifinfo by ifnottex, to make makeinfo --html happy again.
38900 Add info directory entry and category.
38902 2004-04-02 Jan Hubicka <jh@suse.cz>
38904 * utils.c: Include function.h
38905 (end_subprog_body): Clear DECL_STRUCT_FUNCTION.
38907 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
38910 * Make-lang.in: Clean up generation of documentation
38912 * gnat-style.texi, gnat_rm.texi, ug_words: Resync with AdaCore version
38914 * xgnatug.adb: Removed, replaced by xgnatugn.adb
38916 * xgnatugn.adb: Replaces xgnatug.adb
38918 * gnat_ug.texi: Removed, replaced by gnat_ugn.texi
38920 * gnat_ugn.texi: Replaces gnat_ug.texi. Resync with AdaCore version
38922 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
38923 gnat_ug_wnt.texi: Removed.
38925 2004-04-01 Arnaud Charlet <charlet@act-europe.fr>
38927 * utils2.c: Update copyright notice.
38929 2004-04-01 Robert Dewar <dewar@gnat.com>
38931 * checks.adb: Minor reformatting throughout
38932 Note that prev checkin added RM reference to alignment warning
38934 2004-04-01 Ed Schonberg <schonberg@gnat.com>
38936 * exp_aggr.adb (Get_Component_Val): Treat a string literal as
38937 non-static when building aggregate for bit-packed array.
38939 * exp_ch4.adb (Expand_N_Slice): If a packed slice is an actual of a
38940 function call that is itself the actual in a procedure call, build
38943 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): If right-hand side is
38944 a string literal, create a temporary for it, constant folding only
38945 handles scalars here.
38947 2004-04-01 Vincent Celier <celier@gnat.com>
38949 * ali-util.adb (Post_Scan, Error_Msg, Error_Msg_S, Error_Msg_SC,
38950 Error_Msg_SP): New empty procedures to instantiate the Scanner.
38951 (Style, Scanner): Instantiations of Styleg and Scng to be able to scan
38953 (Accumulate_Checksum, Initialize_Checksum): Remove procedures.
38954 (Get_File_Checksum): Use the instantiated scanner to scan all the tokens
38955 and get the checksum.
38957 * make.adb (Gnatmake): Do not insert into Q the Main_Source if it is
38959 Increase the Marking_Label at the end of the Multiple_Main_Loop,
38960 instead of at the beginning.
38962 * osint.adb (Lib_File_Name): Use Multi_Unit_Index_Character, not '~'
38964 (Osint package elaboration): Change Multi_Unit_Index_Character to '$' if
38967 * osint.ads (Multi_Unit_Index_Character): New Character global variable
38969 * osint-c.adb (Set_Library_Info_Name): Use Multi_Unit_Index_Character,
38972 * par.adb: Remove test on file name to detect language defined units.
38973 Add test on unit name, after parsing, to detect language defined units
38974 that are not compiled with -gnatg (except System.RPC and its children)
38976 * par-ch10.adb (P_Compilation_Unit): In multi-unit sources, scan the
38977 following units without style checking.
38979 * switch-c.adb: Change -gnatC to -gnateI
38981 * usage.adb: Document new switch -gnateInnn
38983 * scng.adb (Accumulate_Token_Checksum): New procedure
38984 (Scan): Call Accumulate_Token_Checksum after each identifier, reserved
38985 word or literal number.
38986 (Scan.Nlit.Scan_Integer): Do not accumulate internal '_' in litteral
38989 2004-04-01 Thomas Quinot <quinot@act-europe.fr>
38992 g-comlin.adb, sinput-c.adb, s-secsta.adb, s-tpobop.adb,
38993 switch-m.adb, 56taprop.adb, 5ginterr.adb, 5gmastop.adb,
38994 5staprop.adb, 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb,
38995 5vtpopde.adb: Add missing 'constant' keywords.
38997 2004-04-01 Javier Miranda <miranda@gnat.com>
38999 * par-ch4.adb: (P_Allocator): Code cleanup
39001 * sem_ch3.adb (Access_Definition): Properly set the null-excluding
39004 * sinfo.ads: Complete documentation of previous change
39006 2004-04-01 Pascal Obry <obry@gnat.com>
39008 * gnatlink.adb (Process_Binder_File): Remove duplicate linker options
39009 only on VMS. This special handling was done because an old GNU/ld bug
39010 on Windows which has been fixed.
39012 2004-04-01 GNAT Script <nobody@gnat.com>
39014 * Make-lang.in: Makefile automatically updated
39016 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39018 * decl.c (gnat_to_gnu_entity, make_type_from_size):
39019 Use TYPE_UNSIGNED, not TREE_UNSIGNED.
39020 * trans.c (tree_transform, convert_with_check): Likewise.
39021 * utils.c (gnat_signed_or_unsigned_type): Likewise.
39022 (build_vms_descriptor, unchecked_convert): Likewise.
39023 * utils2.c (nonbinary_modular_operation): Likewise.
39025 2004-03-29 Javier Miranda <miranda@gnat.com>
39027 * checks.adb (Null_Exclusion_Static_Checks): New subprogram
39028 (Install_Null_Excluding_Check): Local subprogram that determines whether
39029 an access node requires a runtime access check and if so inserts the
39030 appropriate run-time check.
39031 (Apply_Access_Check): Call Install_Null_Excluding check if required
39032 (Apply_Constraint_Check): Call Install_Null_Excluding check if required
39034 * checks.ads: (Null_Exclusion_Static_Checks): New subprogram
39036 * einfo.ads: Fix typo in comment
39038 * exp_ch3.adb (Build_Assignment): Generate conversion to the
39039 null-excluding type to force the corresponding run-time check.
39040 (Expand_N_Object_Declaration): Generate conversion to the null-excluding
39041 type to force the corresponding run-time check.
39043 * exp_ch5.adb (Expand_N_Assignment_Statement): Generate conversion to
39044 the null-excluding type to force the corresponding run-time check.
39046 * exp_ch6.adb (Expand_Call): Do not generate the run-time check in
39047 case of access types unless they have the null-excluding attribute.
39049 * sprint.adb (Sprint_Node_Actual): Give support to the null-exclusing
39052 * exp_util.ads: Fix typo in comment
39054 * par.adb (P_Null_Exclusion): New subprogram
39055 (P_Subtype_Indication): New formal that indicates if the null-excluding
39056 part has been scanned-out and it was present
39058 * par-ch3.adb, par-ch4.adb, par-ch6.adb: Give support to AI-231
39060 * sem_aggr.adb: (Check_Can_Never_Be_Null): New subprogram
39061 (Aggregate_Constraint_Checks): Generate conversion to the null-excluding
39062 type to force the corresponding run-time check
39063 (Resolve_Aggregate): Propagate the null-excluding attribute to the array
39065 (Resolve_Array_Aggregate): Carry out some static checks
39066 (Resolve_Record_Aggregate.Get_Value): Carry out some static check
39068 * sem_ch3.adb (Access_Definition): In Ada 0Y the Can_Never_Be_Null
39069 attribute must be set only if specified by means of the null-excluding
39070 part. In addition, we must also propagate the access-constant attribute
39072 (Access_Subprogram_Declaration, Access_Type_Declaration,
39073 Analyze_Component_Declaration, Analyze_Object_Declaration,
39074 Array_Type_Declaration, Process_Discriminants,
39075 Analyze_Subtype_Declaration): Propagate the null-excluding attribute
39076 and carry out some static checks.
39077 (Build_Derived_Access_Type): Set the null-excluding attribute
39078 (Derived_Type_Declaration, Process_Subtype): Carry out some static
39081 * sem_ch4.adb (Analyze_Allocator): Carry out some static checks
39083 * sem_ch5.adb (Analyze_Assignment): Carry out some static checks
39085 * sem_ch6.adb (Process_Formals): Carry out some static checks.
39086 (Set_Actual_Subtypes): Generate null-excluding subtype if the
39087 null-excluding part was present; it is not required to be done here in
39088 case of anonymous access types.
39089 (Set_Formal_Mode): Ada 0Y allows anonymous access to have the null
39092 * sem_res.adb (Resolve_Actuals): Carry out some static check
39093 (Resolve_Null): Allow null in anonymous access
39095 * sinfo.adb: New subprogram Null_Exclusion_Present
39096 All_Present and Constant_Present available on access_definition nodes
39098 * sinfo.ads: New flag Null_Exclusion_Present on subtype_declaration,
39099 object_declaration, derived_type_definition, component_definition,
39100 discriminant_specification, access_to_object_definition,
39101 access_function_definition, allocator, access_procedure_definition,
39102 access_definition, parameter_specification, All_Present and
39103 Constant_Present flags available on access_definition nodes.
39105 2004-03-29 Robert Dewar <dewar@gnat.com>
39107 * fname.adb, fname.ads, fname-sf.adb, fname-uf.adb, fname-uf.ads,
39108 gnat1drv.adb, lib.adb, lib.ads, lib-load.adb, lib-writ.adb,
39109 opt.ads, osint.adb, osint.ads, osint-c.adb, par.adb,
39110 par-ch10.adb, par-load.adb, par-prag.adb, sfn_scan.adb,
39111 sfn_scan.ads, sinput-l.adb, sinput-l.ads, switch-c.adb,
39112 sem_prag.adb: Updates to handle multiple units/file
39114 * par.adb: Change test for s-rpc to s-rp for detecting rpc and children
39116 * par.adb, memtrack.adb, prj-makr.adb, prj-part.adb,
39117 sem_util.adb: Minor reformatting
39119 * sem_ch12.adb: Add comment for previous change
39121 2004-03-29 Laurent Pautet <pautet@act-europe.fr>
39123 * osint.adb (Executable_Prefix): Set Exec_Name to the current
39124 executable name when not initialized. Otherwise, use its current value.
39126 * osint.ads (Exec_Name): Move Exec_Name from body to spec in order to
39127 initialize it to another executable name than the current one. This
39128 allows to configure paths for an executable name (gnatmake) different
39129 from the current one (gnatdist).
39131 2004-03-29 Ed Schonberg <schonberg@gnat.com>
39133 * exp_ch6.adb (Expand_Call): A call to a function declared in the
39134 current unit cannot be inlined if it appears in the body of a withed
39135 unit, to avoid order of elaboration problems in gigi.
39137 * exp_ch9.adb (Build_Protected_Sub_Specification): Generate debugging
39138 information for protected (wrapper) operation as well, to simplify gdb
39141 * sem_ch6.adb (Analyze_Subprogram_Body): For a private operation in a
39142 protected body, indicate that the entity for the generated spec comes
39143 from source, to ensure that references are properly generated for it.
39144 (Build_Body_To_Inline): Do not inline a function that returns a
39147 * sem_prag.adb (Process_Convention): If subprogram is overloaded, only
39148 apply convention to homonyms that are declared explicitly.
39150 * sem_res.adb (Make_Call_Into_Operator): If the operation is a function
39151 that renames an equality operator and the operands are overloaded,
39152 resolve them with the declared formal types, before rewriting as an
39155 2004-03-29 GNAT Script <nobody@gnat.com>
39157 * Make-lang.in: Makefile automatically updated
39159 2004-03-25 Vasiliy Fofanov <fofanov@act-europe.fr>
39161 * memtrack.adb: Log realloc calls, which are treated as free followed
39164 2004-03-25 Vincent Celier <celier@gnat.com>
39166 * prj-makr.adb (Process_Directories): Detect when a file contains
39167 several units. Do not include such files in the config pragmas or
39168 in the naming scheme.
39170 * prj-nmsc.adb (Record_Source): New parameter Trusted_Mode.
39171 Resolve links only when not in Trusted_Mode.
39172 (Find_Sources, Recursive_Find_Dirs, Find_Source_Dirs, Locate_Directory):
39173 Do not resolve links for the display names.
39175 * prj-part.adb (Parse_Single_Project, Project_Path_Name_Of): Do not
39176 resolve links when computing the display names.
39178 2004-03-25 Thomas Quinot <quinot@act-europe.fr>
39180 * sem_attr.adb (Check_Dereference): When the prefix of a 'Tag
39181 attribute reference does not denote a subtype, it can be any
39182 expression that has a classwide type, potentially after an implicit
39183 dereference. In particular, the prefix can be a view conversion for
39184 a classwide type (for which Is_Object_Reference holds), but it can
39185 also be a value conversion for an access-to-classwide type. In the
39186 latter case, there is an implicit dereference, and the original node
39187 for the prefix does not verify Is_Object_Reference.
39189 * sem_util.adb (Is_Dependent_Component_Of_Mutable_Object): A view
39190 conversion of a discriminant-dependent component of a mutable object
39193 2004-03-25 Ed Schonberg <schonberg@gnat.com>
39195 * freeze.adb (Freeze_Entity): When an inherited subprogram is
39196 inherited, has convention C, and has unconstrained array parameters,
39197 place the corresponding warning on the derived type declaration rather
39198 than the original subprogram.
39200 * sem_ch12.adb (Instantiate_Formal_Subprogram): Set From_Default
39201 indication on renaming declaration, if formal has a box and actual
39204 * sem_ch8.adb (Analyze_Subprogram_Renaming): Use From_Default flag to
39205 determine whether to generate an implicit or explicit reference to
39206 the renamed entity.
39208 * sinfo.ads, sinfo.adb: New flag From_Default, to indicate that a
39209 subprogram renaming comes from a defaulted formal subprogram in an
39212 2004-03-25 Gary Dismukes <dismukes@gnat.com>
39214 * sem_elab.adb (Check_Elab_Call): Refine loop that checks for default
39215 value expressions to ensure that calls within a component definition
39216 will be checked (since those are evaluated during the record type's
39219 2004-03-25 Arnaud Charlet <charlet@act-europe.fr>
39221 * s-tpobop.adb: Code clean up:
39222 (Requeue_Call): Extract from PO_Service_Entries to remove duplicated
39224 (PO_Do_Or_Queue): Remove duplicated code and use Requeue_Call.
39226 2004-03-25 Jose Ruiz <ruiz@act-europe.fr>
39228 * Makefile.in: Clean up in the ravenscar run time.
39230 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39232 * decl.c (gnat_to_gnu_entity, case E_Access_Type): Pass value
39233 of No_Strict_Aliasing to build_pointer_type_for_mode.
39234 * utils.c (update_pointer_to): Walk pointer and ref chains.
39236 2004-03-22 Cyrille Comar <comar@act-europe.fr>
39238 * ali.ads: Fix Comment about Dynamic_Elab.
39240 * gnatls.adb (Output_Unit): Add output of many flags (Dynamic_Elab,
39241 Has_RACW, Is_Generic, etc.)
39242 (Output_Object, Gnatls): Take into account ALI files not attached to
39245 2004-03-22 Vincent Celier <celier@gnat.com>
39247 * gprep.adb: Change all String_Access to Name_Id
39248 (Is_ASCII_Letter): new function
39249 (Double_File_Name_Buffer): New procedure
39250 (Preprocess_Infile_Name): New procedure
39251 (Process_Files): New procedure
39252 (Gnatprep): Check if output and input are existing directories.
39253 Call Process_Files to do the real job.
39255 2004-03-22 Robert Dewar <dewar@gnat.com>
39257 * prj-env.adb, prj-nmsc.ads, prj-proc.ads,
39258 s-stache.ads, s-stache.adb: Comment updates. Minor reformatting.
39260 2004-03-22 Sergey Rybin <rybin@act-europe.fr>
39262 * scn.adb (Contains): Add check for EOF, is needed for a degenerated
39263 case when the source contains only comments.
39265 2004-03-22 Ed Schonberg <schonberg@gnat.com>
39267 * sem_ch10.adb (Analyze_Compilation_Unit): When generating a
39268 declaration for a child subprogram body that acts as a spec, indicate
39269 that the entity in the declaration needs debugging information.
39271 * sem_ch3.adb (Complete_Private_Subtype): Do not build an underlying
39272 full view if the subtype is created for a constrained record component;
39273 gigi has enough information to construct the record, and there is no
39274 place in the tree for the declaration.
39276 * sem_ch6.adb (Build_Body_To_Inline): Use an internal name without
39277 serial number for the dummy body that is built for analysis, to avoid
39278 inconsistencies in the generation of internal names when compiling
39281 2004-03-22 Thomas Quinot <quinot@act-europe.fr>
39283 * sem_util.adb (Is_Object_Reference): A view conversion denotes an
39286 2004-03-22 GNAT Script <nobody@gnat.com>
39288 * Make-lang.in: Makefile automatically updated
39290 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39292 * decl.c (gnat_to_gnu_entity): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
39293 * trans.c (tree_transform, emit_index_check): Likewise.
39294 * utils.c (build_template): Likewise.
39295 (max_size, convert): Remove handling of WITH_RECORD_EXPR.
39296 (maybe_unconstrained_array, unchecked_convert): Likewise.
39297 * utils2.c (gnat_truthvalue_conversion, build_binary_op): Likewise.
39298 (build_unary_op): Likewise.
39299 (compare_arrays, build_allocator): Use SUBSTITUTE_PLACEHOLDER_IN_EXPR.
39300 (fill_vms_descriptor): Likewise.
39301 (build_call_alloc_dealloc): Likewise.
39303 * gigi.h (build_call_alloc_dealloc): Alignment is unsigned.
39305 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
39308 * gnat_ug.texi: Add info directory category and entry.
39309 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
39310 gnat_ug_wnt.texi: Regenerate.
39312 2004-03-19 Arnaud Charlet <charlet@act-europe.fr>
39314 * ada-tree.h: Update copyright notice.
39315 Minor reformatting.
39317 2004-03-19 Olivier Hainque <hainque@act-europe.fr>
39319 * decl.c (gnat_to_gnu_entity, case E_Exception): Handle VMS exceptions
39320 as regular exception objects and not as mere integers representing the
39321 condition code. The latter approach required some dynamics to mask off
39322 severity bits, which did not fit well into the GCC table based model.
39323 (gnat_to_gnu_entity, objects): Don't supply an external name for VMS
39324 exception data objects. We don't it and it would conflict with the other
39325 external symbol we have to generate for such exceptions.
39327 * trans.c (tree_transform, case N_Exception_Handler): Remove part of
39328 the special code for VMS exceptions, since these are now represented
39329 as regular exceptions objects.
39331 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39333 * decl.c (debug_no_type_hash): Remove.
39334 (gnat_to_gnu_entity, case E_Array_Type): Don't set and clear it.
39335 * misc.c (LANG_HOOK_HASH_TYPE): Redefine.
39337 2004-03-19 Laurent Guerby <laurent@guerby.net>
39339 * sem_prag.adb (Suppress_Unsuppress_Echeck): use loop instead of
39340 aggregate, allows bootstrap from 3.3 on powerpc-darwin.
39342 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39344 * ada-tree.h (TYPE_LEFT_JUSTIFIED_MODULAR_P): Add checking.
39345 (TYPE_CONTAINS_TEMPLATE_P, TYPE_OBJECT_RECORD_TYPE): Likewise.
39346 (TYPE_RM_SIZE_INT): Directly use type.values.
39347 (TREE_LOOP_ID): Clean up check.
39348 * decl.c (gnat_to_gnu_entity, case E_Enumeration_Type): Use
39349 TYPE_VALUES, not TYPE_FIELDS.
39350 * trans.c (convert_with_check): Delay access of bounds of basetype
39351 until sure is numeric.
39353 2004-03-18 Arnaud Charlet <charlet@act-europe.fr>
39355 * 5atpopsp.adb: Remove RTEMS from list of platforms using this file.
39358 * 5ataprop.adb, 5ftaprop.adb, 5htaprop.adb, 5itaprop.adb, 5staprop.adb,
39359 5vtaprop.adb, 5wtaprop.adb, 7staprop.adb (Finalize_TCB): Use
39360 Specific.Set instead of direct call to e.g pthread_setspecific.
39362 2004-03-18 Thomas Quinot <quinot@act-europe.fr>
39364 * adaint.c: Update comments.
39366 * Makefile.in: set PREFIX_OBJS, SYMLIB, THREADSLIB, and
39367 GNATLIB_SHARED for FreeBSD.
39369 2004-03-18 Jose Ruiz <ruiz@act-europe.fr>
39371 * init.c [VxWorks]: Do not fix the stack size for the environment task.
39372 When needed (stack checking) the stack size is retrieved
39373 from the VxWorks kernel.
39375 * Makefile.in: Flag -nostdinc is required when building the run time
39376 for avoiding looking for files in the base compiler.
39377 Add the VxWorks specific version of the package body for
39378 System.Stack_checking.Operations (5zstchop.adb).
39380 * Make-lang.in: Add the object file for
39381 System.Stack_Checking.Operations.
39383 * Makefile.rtl: Add object file for the package
39384 System.Stack_Checking.Operations.
39386 * s-stchop.ads, s-stchop.adb, 5zstchop.adb: New files.
39388 * s-stache.ads, s-stache.adb: Move the operations related to stack
39389 checking from this package to package System.Stack_Checking.Operations.
39390 This way, stack checking operations are only linked in the final
39391 executable when using the -fstack-check flag.
39393 2004-03-18 Doug Rupp <rupp@gnat.com>
39395 * Makefile.in [VMS]: Handle 64 bit specs (5qsystem.ads, 5xcrtl.ads).
39398 * 5qsystem.ads, 5xcrtl.ads: New files.
39400 2004-03-18 Vincent Celier <celier@gnat.com>
39402 * prj.adb (Reset): Reset hash table Files_Htable
39404 * prj-env.adb (Source_Paths, Object_Paths): New tables.
39405 (Add_To_Source_Path, Add_To_Object_Path): New procedures, to replace
39406 the procedures Add_To_Path_File.
39407 (Set_Ada_Paths): Accumulate source and object dirs in the tables,
39408 making sure that each directory is present only once and, for object
39409 dirs, when a directory already present is added, the duplicate is
39410 removed and the directory is always put as the last in the table.
39411 Write the path files at the end of these accumulations.
39413 * prj-nmsc.adb (Record_Source): Add source file name in hash table
39414 Files_Htable for all sources.
39416 * prj-proc.adb (Process): Remove restrictions between not directly
39417 related extending projects.
39419 2004-03-18 Emmanuel Briot <briot@act-europe.fr>
39421 * prj-nmsc.ads, prj-nmsc.adb (Ada_Check): New parameter Trusted_Mode.
39422 (Find_Sources): Minor speed optimization.
39424 * prj-proc.ads, prj-proc.adb (Check, Recursive_Check, Process): New
39425 parameter Trusted_Mode.
39427 2004-03-18 Sergey Rybin <rybin@act-europe.fr>
39429 * scn.adb (Determine_License): Take into account a degenerated case
39430 when the source contains only comments.
39432 2004-03-18 Ed Schonberg <schonberg@gnat.com>
39434 * sem_warn.adb (Check_References): For a warning on a selected
39435 component that does not come from source, locate an uninitialized
39436 component of the record type to produce a more precise error message.
39438 2004-03-15 Jerome Guitton <guitton@act-europe.fr>
39440 * 3zsoccon.ads: Fix multicast options.
39442 * s-thread.ads: Move unchecked conversion from ATSD_Access to Address
39445 2004-03-15 Robert Dewar <dewar@gnat.com>
39447 * sem_prag.adb: Make sure No_Strict_Aliasing flag is set right when
39448 pragma used for a private type.
39450 * lib-xref.adb (Generate_Reference): Do not generate warning if
39451 reference is in a different unit from the pragma Unreferenced.
39453 * 5vtpopde.adb: Minor reformatting
39454 Fix casing of To_Task_ID
39456 * sem_ch13.adb (Validate_Unchecked_Conversion): Set No_Strict_Aliasing
39457 flag if we have an unchecked conversion to an access type in the same
39460 2004-03-15 Geert Bosch <bosch@gnat.com>
39462 * a-ngcoty.adb (Modulus): In alternate formula for large real or
39463 imaginary parts, use Double precision throughout.
39465 * a-tifiio.adb (Put_Scaled): Remove remaining pragma Debug. Not only
39466 we want to be able to compile run-time with -gnata for testing, but
39467 this may also be instantiated in user code that is compiled with -gnata.
39469 2004-03-15 Olivier Hainque <hainque@act-europe.fr>
39471 * s-stalib.ads (Exception_Code): New type, to represent Import/Export
39472 codes. Having a separate type for this is useful to enforce consistency
39473 throughout the various run-time units.
39474 (Exception_Data): Use Exception_Code for Import_Code.
39476 * s-vmextra.ads, s-vmexta.adb: Use Exception_Code instead of a mix of
39477 Natural and Integer in various places.
39478 (Register_VMS_Exception): Use Base_Code_In to compute the exception code
39479 with the severity bits masked off.
39480 (Register_VMS_Exception): Handle the additional exception data pointer
39483 * raise.c (_GNAT_Exception structure): Remove the handled_by_others
39484 component, now reflected by an exported accessor.
39485 (is_handled_by): New routine to compute whether the propagated
39486 occurrence matches some handler choice specification. Extracted out of
39487 get_action_description_for, and expanded to take care of the VMS
39489 (get_action_description_for): Use is_handled_by instead of an explicit
39490 complex condition to decide if the current choice at hand catches the
39491 propagated occurrence.
39493 * raise.h (Exception_Code): New type for C.
39495 * rtsfind.ads (RE_Id, RE_Unit_Table): Add
39496 System.Standard_Library.Exception_Code, to allow references from the
39497 pragma import/export expander.
39499 * a-exexpr.adb (Is_Handled_By_Others, Language_For, Import_Code_For):
39500 New accessors to allow easy access to GNAT exception data
39502 (GNAT_GCC_Exception record, Propagate_Exception): Get rid of the
39503 redundant Handled_By_Others component, helper for the personality
39504 routine which will now be able to call the appropriate exception data
39507 * cstand.adb (Create_Standard): Adjust the type of the Import_Code
39508 component of Standard_Exception_Type to be the closest possible to
39509 Exception_Code in System.Standard_Library, that we cannot get at this
39510 point. Expand a ??? comment to notify that this type node should
39511 probably be rewritten later on.
39513 * exp_prag.adb (Expand_Pragma_Import_Export_Exception): Adjust the
39514 registration call to include a pointer to the exception object in the
39517 * init.c (__gnat_error_handler): Use Exception_Code and Base_Code_In
39518 instead of int and explicit bitmasks.
39520 2004-03-15 Vincent Celier <celier@gnat.com>
39522 * vms_data.ads: Add new GNAT BIND qualifier /STATIC. Makes /NOSHARED
39523 equivalent to /STATIC and /NOSTATIC equivalent to /SHARED.
39525 * a-tasatt.adb (To_Access_Code): Remove this UC instantiation, no
39526 longer needed now that it is in the spec of
39527 System.Tasking.Task_Attributes.
39529 * adaint.h, adaint.c: (__gnat_create_output_file): New function
39531 * gnatcmd.adb: Fix bug introduced in previous rev: /= instead of =
39533 * g-os_lib.ads, g-os_lib.adb (Create_Output_Text_File): New function.
39535 * make.adb (Gnatmake): Do not check the executable suffix; it is being
39536 taken care of in Scan_Make_Arg.
39537 (Scan_Make_Arg): Add the executable suffix only if the argument
39538 following -o, in canonical case, does not end with the executable
39539 suffix. When in verbose mode and executable file name does not end
39540 with executable suffix, output the executable name, in canonical case.
39542 * s-tataat.ads (Access_Dummy_Wrapper): Add pragma No_Strict_Aliasing
39543 to avoid warnings when instantiating Ada.Task_Attributes.
39546 * mlib-prj.adb (Process_Imported_Libraries): Get the imported libraries
39547 in the correct order.
39549 * prj-makr.adb (Process_Directory): No longer use GNAT.Expect, but
39550 redirect standard output and error to a file for the invocation of the
39551 compiler, then read the file.
39553 * prj-nmsc.adb (Find_Sources): Use the Display_Value for each
39554 directory, instead of the Value.
39555 (Find_Source_Dirs): Remove useless code & comments.
39557 2004-03-15 Ed Schonberg <schonberg@gnat.com>
39559 * exp_ch3.adb (Freeze_Record_Type): If a primitive operation of a
39560 tagged type is inherited, and the parent operation is not frozen yet,
39561 force generation of a freeze node for the inherited operation, so the
39562 corresponding dispatch entry is properly initialized.
39563 (Make_Predefined_Primitive_Specs): Check that return type is Boolean
39564 when looking for user-defined equality operation.
39566 * exp_ch4.adb (Expand_Composite_Equality): Check that return type is
39567 boolean when locating primitive equality of tagged component.
39569 * exp_ch5.adb (Expand_Assign_Array): If the left-hand side is a
39570 bit-aligned field and the right-hand side a string literal, introduce
39571 a temporary before expanding assignment into a loop.
39573 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Copy expression for
39574 priority in full, to ensure that any expanded subepxressions of it are
39575 elaborated in the scope of the init_proc.
39577 * exp_prag.adb (Expand_Pragma_Import): Search for initialization call
39578 after object declaration, skipping over code that may have been
39579 generated for validity checks.
39581 * sem_ch12.adb (Validate_Private_Type_Instance): If type has unknown
39582 discriminants, ignore the known discriminants of its full view, if
39583 any, to check legality.
39585 * sem_ch3.adb (Complete_Private_Subtype): Do not create constrained
39586 component if type has unknown discriminants.
39587 (Analyze_Private_Extension_Declaration): Discriminant constraint is
39588 null if type has unknown discriminants.
39590 * sem_ch6.adb (Analyze_Generic_Subprogram_Body): Generate reference
39591 for end label when present.
39593 * s-fileio.adb (Open): When called with a C_Stream, use given name for
39594 temporary file, rather than an empty string.
39596 2004-03-15 Ed Falis <falis@gnat.com>
39598 * s-thread.adb: Removed, no longer used.
39600 2004-03-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39602 * decl.c (target.h): Now include.
39603 (gnat_to_gnu_entity, case E_Access_Type): Use mode derived from ESIZE
39604 in new build_pointer_from_mode calls for non-fat/non-thin pointer.
39605 (validate_size): For POINTER_TYPE, get smallest size permitted on
39608 * fe.h: Sort Einfo decls and add Set_Mechanism.
39610 * Makefile.in: (LIBGNAT_SRCS): Remove types.h.
39611 (ada/decl.o): Depends on target.h.
39613 * trans.c (tree_transform, N_Unchecked_Type_Conversion): Do not use
39614 FUNCTION_BOUNDARY; always use TYPE_ALIGN.
39616 2004-03-15 Thomas Quinot <quinot@act-europe.fr>
39618 * 5ztpopsp.adb, 56tpopsp.adb: Fix spelling of Task_ID.
39620 * exp_ch4.adb (Expand_N_Indexed_Component): Do not call
39621 Insert_Dereference_Action when rewriting an implicit dereference into
39622 an explicit one, this will be taken care of during expansion of the
39623 explicit dereference.
39624 (Expand_N_Slice): Same. Always do the rewriting, even for the case
39625 of non-packed slices, since the dereference action generated by
39626 expansion of the explicit dereference is needed in any case.
39627 (Expand_N_Selected_Component): When rewriting an implicit dereference,
39628 analyze and resolve the rewritten explicit dereference so it is seen
39630 (Insert_Dereference_Action): This procedure is now called only for the
39631 expansion of an N_Explcit_Dereference_Node. Do insert a check even for
39632 dereferences that do not come from source (including explicit
39633 dereferences resulting from rewriting implicit ones), but do not
39634 recursively insert a check for the dereference nodes contained within
39636 (Insert_Dereference_Action): Clarify and correct comment.
39638 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
39641 Move language detection to the top level.
39642 * config-lang.in: Build by default.
39644 2004-03-05 Robert Dewar <dewar@gnat.com>
39646 * 56taprop.adb, 5ataprop.adb: Remove unneeded unchecked conversions
39648 * a-tags.adb, a-tags.ads, s-finimp.adb, s-finroo.ads,
39649 i-cpoint.ads, i-cpoint.adb, i-cstrin.adb, i-cstrin.ads,
39650 5iosinte.ads, 5sosinte.ads, 5staspri.ads, 5itaprop.adb,
39651 5staprop.adb, 5wtaprop.adb, s-tataat.ads, s-tataat.adb: Move
39652 unchecked conversion to spec to avoid warnings.
39654 * s-tasini.adb, s-taskin.ads, 5atpopsp.adb: Correct spelling Task_Id
39657 * 7stpopsp.adb: Correct casing in To_Task_ID call
39659 * a-strsea.ads, a-strsea.adb: Minor reformatting
39661 * einfo.ads, einfo.adb: Define new flag No_Strict_Aliasing
39663 * errout.ads: Switch for VMS is now NO_STRICT_ALIASING.
39664 Adjust Max_Msg_Length to be clearly large enough.
39666 * fe.h: Define In_Same_Source_Unit
39668 * osint.adb: Add pragma Warnings Off to suppress warnings
39669 * g-dyntab.adb, g-table.adb, g-thread.adb: Add Warnings (Off) to kill
39672 * opt.ads: Put entries in alpha order. Add entry for No_Strict_Aliasing
39674 * par-prag.adb: Add dummy entry for No_Strict_Aliasing pragma
39676 * sem_ch13.adb: Generate validate unchecked conversion nodes for gcc.
39678 * sem_ch3.adb: Set No_Strict_Aliasing flag if config pragma set.
39680 * sem_prag.adb: Implement pragma No_Strict_Aliasing.
39682 * sinfo.ads: Remove obsolete comment on validate unchecked conversion
39683 node. We now do generate them for gcc back end.
39685 * table.adb, sinput.adb: Add pragma Warnings Off to suppress aliasing
39688 * sinput-c.adb: Fix bad name in header.
39689 Add pragma Warnings Off to suppress aliasing warning.
39691 * sinput-l.adb: Add pragma Warnings Off to suppress aliasing warning.
39693 * snames.h, snames.ads, snames.adb: Add entry for pragma
39694 No_Strict_Aliasing.
39696 2004-03-05 Vincent Celier <celier@gnat.com>
39698 * prj-com.ads: Add hash table Files_Htable to check when a file name
39699 is already a source of another project.
39701 * prj-nmsc.adb (Record_Source): Before recording a new source, check
39702 if its file name is not already a source of another project. Report an
39705 * gnatcmd.adb: When GNAT PRETTY is invoked with a project file and no
39706 source file name, call gnatpp with all the sources of the main project.
39708 * vms_conv.adb (Initialize): GNAT PRETTY may be called with any number
39711 * vms_data.ads: Correct documentation of new /OPTIMIZE keyword
39712 NO_STRICT_ALIASING. Add new qualifier for GNAT PRETTY:
39713 /RUNTIME_SYSTEM=, converted to --RTS=
39714 /NOTABS, converted to -notabs
39716 2004-03-05 Pascal Obry <obry@gnat.com>
39718 * make.adb: Minor reformatting.
39720 2004-03-05 Ed Schonberg <schonberg@gnat.com>
39722 Part of implemention of AI-262.
39723 * par-ch10.adb (P_Context_Clause): Recognize private with_clauses.
39725 * sem_ch10.ads, sem_ch10.adb: (Install_Private_With_Clauses): New
39728 * sem_ch3.adb (Analyze_Component_Declaration): Improve error message
39729 when component type is a partially constrained class-wide subtype.
39730 (Constrain_Discriminated_Type): If parent type has unknown
39731 discriminants, a constraint is illegal, even if full view has
39733 (Build_Derived_Record_Type): Inherit discriminants when deriving a type
39734 with unknown discriminants whose full view is a discriminated record.
39736 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Has_Discriminants
39737 flag, to handle properly derivations of tagged types with unknown
39739 (Analyze_Package_Spec, Analyze_Package_Body): Install
39740 Private_With_Clauses before analyzing private part or body.
39742 * einfo.ads: Indicate that both Has_Unknown_Discriminants and
39743 Has_Discriminants can be true for a given type (documentation).
39745 2004-03-05 Arnaud Charlet <charlet@act-europe.fr>
39747 * s-restri.ads: Fix license (GPL->GMGPL).
39749 * s-tassta.adb: Minor reformatting.
39751 * s-tasren.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
39752 by calls to Exit_One_ATC_Level, since additional clean up is performed
39755 * s-tpobop.adb: Replace manual handling of Self_Id.ATC_Nesting_Level
39756 by calls to Exit_One_ATC_Level, since additional clean up is performed
39759 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39761 * trans.c: Reflect GCC changes to fix bootstrap problem.
39762 Add warning for suspicious aliasing unchecked conversion.
39764 2004-03-05 GNAT Script <nobody@gnat.com>
39766 * Make-lang.in: Makefile automatically updated
39768 2004-03-02 Emmanuel Briot <briot@act-europe.fr>
39770 * ali.adb (Read_Instantiation_Instance): Do not modify the
39771 current_file_num when reading information about instantiations, since
39772 this corrupts files in later references.
39774 2004-03-02 Vincent Celier <celier@gnat.com>
39776 * bcheck.adb (Check_Consistency): Get the full path of an ALI file
39777 before checking if it is read-only.
39779 * bld.adb (Recursive_Process): Concatenate <PROJECT>.src_dirs in front
39780 of SRC_DIRS and eliminate duplicates.
39782 * gprcmd.adb: Replace command "path" with command "path_sep" to return
39783 the path separator.
39784 (Usage): Document path_sep
39786 * Makefile.generic: For Ada and GNU C++ cases, link directly with the
39787 C++ compiler. No need for a script.
39788 Replace use of C*_INCLUDE_PATH env var for GCC compilers with CPATH.
39789 Do not call gprcmd to build the C*_INCLUDE_PATHs, do it with function
39792 * prj-env.adb (For_All_Source_Dirs): Only add source dirs in project
39793 where there are Ada sources.
39794 (Set_Ada_Paths): Only add to the include path the source dirs of project
39796 (Add_To_Path): Add the Display_Values of the directories, not their
39799 * prj-nmsc.adb (Find_Sources): Set flag Sources_Present in the project
39802 * prj-nmsc.adb (Add_ALI_For): Make sure that the element Display_Value
39804 (Find_Source_Dirs): Set Display_Value to a non canonicalized value, only
39805 Value is canonicalized.
39806 (Language_Independent_Check): Do not copy Value to Display_Value when
39807 canonicalizing Value.
39809 * prj-part.adb (Post_Parse_Context_Clause): Compare canonical cased
39810 path to find limited with cycles.
39811 (Parse_Single_Project): Use canonical cased path to find the end of a
39814 2004-03-02 Ed Schonberg <schonberg@gnat.com>
39816 * sem_ch10.adb (Optional_Subunit): Verify that unit contains a subunit
39817 and not a child unit.
39819 * sinfo.ads, sinfo.adb: Rearrange flags so that Private_Present can
39820 appear in a with_clause.
39822 * decl.c (gnat_to_gnu_type): If entity is a generic type, which can
39823 only happen in type_annotate mode, do not try to elaborate it.
39825 * exp_util.adb (Force_Evaluation): If expression is a selected
39826 component on the left of an assignment, use a renaming rather than a
39827 temporary to remove side effects.
39829 * freeze.adb (Freeze_Entity): Do not freeze a global entity within an
39830 inlined instance body, which is analyzed before the end of the
39833 2004-03-02 Robert Dewar <dewar@gnat.com>
39835 * par-ch10.adb, par-ch3.adb, par-ch4.adb, scng.adb,
39836 sem_ch4.adb: Use new feature for substitution of keywords in VMS
39838 * errout.ads, errout.adb: Implement new circuit for substitution of
39841 * sem_case.adb (Analyze_Choices): Place message properly when case is
39842 a subtype reference rather than an explicit range.
39844 * sem_elim.adb, s-tpobop.ads, exp_ch2.adb: Minor reformatting
39846 2004-03-02 Doug Rupp <rupp@gnat.com>
39848 * init.c (__gnat_initialize)[VMS]: Resignal RDB-E-STREAM_EOF.
39850 2004-03-02 Thomas Quinot <quinot@act-europe.fr>
39852 * s-tporft.adb: Add missing locking around call to Initialize_ATCB.
39854 2004-03-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39856 * utils.c (finish_record_type): Do not set DECL_NONADDRESSABLE for a
39859 2004-02-25 Robert Dewar <dewar@gnat.com>
39861 * 51osinte.ads, 52osinte.ads, 53osinte.ads, 54osinte.ads,
39862 55osinte.ads, 56osinte.ads, 5aosinte.ads, 5bosinte.ads,
39863 5cosinte.ads, 5fosinte.ads, 5gosinte.ads, 5hosinte.ads,
39864 5iosinte.ads, 5losinte.ads, 5nosinte.ads, 5oosinte.ads,
39865 5posinte.ads, 5sosinte.ads, 5tosinte.ads, 5vosinte.ads,
39866 5wosinte.ads, 5zosinte.ads: Move instances of Unchecked_Conversion to
39867 the defining instance of the type to avoid aliasing problems.
39868 Fix copyright header. Fix bad comments in package header.
39870 * exp_util.adb, prj-part.adb, prj-part.adb: Minor reformatting
39872 2004-02-25 Ed Schonberg <schonberg@gnat.com>
39874 * exp_ch2.adb (Param_Entity): Handle properly formals that have been
39875 rewritten as references when aliased through an address clause.
39877 * sem_ch4.adb (Try_Indirect_Call): Normalize actuals before checking
39878 whether call can be interpreted as an indirect call to the result of a
39879 parameterless function call returning an access subprogram.
39881 2004-02-25 Arnaud Charlet <charlet@act-europe.fr>
39884 * exp_ch7.adb (Make_Clean): Remove generation of calls to
39885 Unlock[_Entries], since this is now done by Service_Entries directly.
39887 * exp_ch9.adb (Build_Protected_Subprogram_Body): ditto.
39889 * s-tpobop.ads, s-tpobop.adb (PO_Service_Entries): New nested procedure
39890 Requeue_Call for better code readability. Change spec and update calls:
39891 PO_Service_Entries now unlock the PO on exit.
39892 (Protected_Entry_Call, Timed_Protected_Entry_Call): Update calls to
39893 PO_Service_Entries.
39895 * s-tposen.ads, s-tposen.adb (Service_Entry): Now unlock the PO on exit.
39897 * s-taenca.adb, s-tasren.adb: Update calls to PO_Service_Entries.
39899 2004-02-25 Sergey Rybin <rybin@act-europe.fr>
39901 * exp_ch9.adb (Build_Simple_Entry_Call): Prevent expanding the
39902 protected subprogram call and analyzing the result of such expanding
39903 in case when the called protected subprogram is eliminated.
39905 * sem_elim.adb (Check_Eliminated): Skip blocks when comparing scope
39908 2004-02-25 Jerome Guitton <guitton@act-europe.fr>
39910 * Makefile.in: Clean ups.
39912 2004-02-23 Ed Schonberg <schonberg@gnat.com>
39914 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Do not create
39915 protected operations if original subprogram is flagged as eliminated.
39916 (Expand_N_Subprogram_Body): For a protected operation, create
39917 discriminals for next operation before checking whether the operation
39920 * exp_ch9.adb (Expand_N_Protected_Body,
39921 Expand_N_Protected_Type_Declaration): Do not generate specs and bodies
39922 for internal protected operations if the original subprogram is
39925 * sem_elim.adb (Check_Eliminated): Handle properly protected operations
39926 declared in a single protected object.
39928 2004-02-23 Vincent Celier <celier@gnat.com>
39930 * prj-attr.adb: Make attribute Builder'Executable an associative array,
39931 case insensitive if file names are case insensitive, instead of a
39932 standard associative array.
39934 * prj-attr.adb (Initialize): For 'b' associative arrays, do not set
39935 them as case insensitive on platforms where the file names are case
39938 * prj-part.adb (Parse_Single_Project): Make sure, when checking if
39939 project file has already been parsed that canonical path are compared.
39941 2004-02-23 Robert Dewar <dewar@gnat.com>
39943 * sinput-c.ads: Correct bad unit title in header
39945 * freeze.adb: Minor reformatting
39947 2004-02-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39949 * trans.c (tree_transform, case N_Procedure_Call_Statement): For
39950 nonaddressable COMPONENT_REF that is removing padding that we are
39951 taking the address of, take the address of the padded record instead
39952 if item is variable size.
39954 2004-02-20 Robert Dewar <dewar@gnat.com>
39956 * bld.adb, exp_util.adb, gprcmd.adb: Minor reformatting
39958 2004-02-20 Ed Schonberg <schonberg@gnat.com>
39960 * freeze.adb (Freeze_Record_Type): Generalize mechanism that generates
39961 itype references for the constrained designated type of a component
39962 whose base type is already frozen.
39964 2004-02-20 Arnaud Charlet <charlet@act-europe.fr>
39966 * init.c (__gnat_error_handler [tru64]): Rewrite previous change to
39967 avoid GCC warnings.
39969 2004-02-20 Sergey Rybin <rybin@act-europe.fr>
39971 * sem_ch12.adb (Analyze_Formal_Package): Create a new defining
39972 identifier for a phantom package that rewrites the formal package
39973 declaration with a box. The Add semantic decorations for the defining
39974 identifier from the original node (that represents the formal package).
39976 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
39978 * Make-lang.in (ada/stamp-sdefault): Use the top level
39981 2004-02-19 Richard Henderson <rth@redhat.com>
39983 * misc.c (record_code_position): Add third build arg for RTL_EXPR.
39985 2004-02-18 Emmanuel Briot <briot@act-europe.fr>
39987 * ali.ads, ali.adb (First_Sdep_Entry): No longer a constant, so that
39988 Scan_ALI can be used for multiple ALI files without reinitializing
39991 2004-02-18 Robert Dewar <dewar@gnat.com>
39993 * debug.adb: Minor reformatting.
39995 2004-02-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
39997 * decl.c (gnat_to_gnu_entity, case object): Set DECL_POINTER_ALIAS_SET
39998 to zero if there is an address clause.
40000 2004-02-18 Thomas Quinot <quinot@act-europe.fr>
40002 * exp_util.adb (Side_Effect_Free): Any literal is side effects free.
40004 2004-02-18 Gary Dismukes <dismukes@gnat.com>
40006 * layout.adb (Layout_Component_List): Revise generation of call to
40007 discriminant-checking function to pass selections of all of the type's
40008 discriminants rather than just the variant-controlling discriminant.
40010 2004-02-18 Olivier Hainque <hainque@act-europe.fr>
40012 * 5gmastop.adb (Pop_Frame): Do not call exc_unwind, which is bound to
40013 fail in the current setup and triggers spurious system error messages.
40014 Pretend it occurred and failed instead.
40016 2004-02-18 Vincent Celier <celier@gnat.com>
40018 * bld.adb: Mark FLDFLAGS as saved
40019 (Process_Declarative_Items): Add Linker'Linker_Options to FLDFLAGS when
40020 it is not the root project. Put each directory to be
40021 extended between double quotes to prevent it to be expanded on Windows.
40022 (Recursive_Process): Reset CFLAGS/CXXFLAGS to nothing before processing
40023 the project file. Set them back to their initial values if they have not
40024 been set in the project file.
40026 * gprcmd.adb: (Gprdebug, Debug): New global variables
40027 (Display_Command): New procedure
40028 (Usage): Document new command "linkopts"
40029 Call Display_Command when env var GPRDEBUG has the value "TRUE"
40030 Implement new command "linkopts"
40031 Remove quotes that may be around arguments for "extend"
40032 Always call Normalize_Pathname with arguments formatted for the platform
40034 * Makefile.generic: Link C/C++ mains with $(FLDFLAGS)
40035 Change @echo to @$(display) in target clean to be able to clean silently
40037 * Makefile.prolog: Save FLDFLAGS and give it an initial empty value
40039 * prj-part.adb (Project_Path_Name_Of): Do not put final result in
40042 * prj-part.adb (Parse_Single_Project): Always call with From_Extended
40043 = Extending_All when current project is an extending all project.
40045 * vms_conv.adb (Output_File_Expected): New Boolean global variable,
40046 set to True only for LINK command, after Unix switch -o.
40047 (Process_Arguments): Set Output_File_Expected to True for LINK command
40048 after Unix switch -o. When Output_File_Expected is True, never add an
40049 extension to a file name.
40051 * 5vml-tgt.adb (Build_Dynamic_Library): Do not append "/OPTIONS" to the
40052 option file name, only to the --for-linker= switch.
40053 (Option_File_Name): If option file name do not end with ".opt", append
40056 2004-02-18 GNAT Script <nobody@gnat.com>
40058 * Make-lang.in: Makefile automatically updated
40060 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
40062 * Make-lang.in (stamp-sdefault): Do not depend on
40065 2004-02-12 Zack Weinberg <zack@codesourcery.com>
40067 * config-lang.in: Disable Ada by default until probe logic for
40068 a bootstrap Ada compiler can be moved to the top level configure
40071 2004-02-12 Olivier Hainque <hainque@act-europe.fr>
40073 * decl.c (components_to_record): Don't claim that the internal fields
40074 we make to hold the variant parts are semantically addressable, because
40077 * exp_pakd.adb (Create_Packed_Array_Type): Rename Esiz into PASize and
40078 adjust the comment describing the modular type form when we can use it.
40079 (Install_PAT): Account for the Esiz renaming.
40081 * init.c (__gnat_error_handler for alpha-tru64): Arrange to clear the
40082 sc_onstack context indication before raising the exception to which
40083 the signal is mapped. Allows better handling of later signals possibly
40084 triggered by the resumed user code if the exception is handled.
40086 2004-02-12 Arnaud Charlet <charlet@act-europe.fr>
40088 * 5zinit.adb: Removed, no longer used.
40090 2004-02-12 Robert Dewar <dewar@gnat.com>
40092 * ali.adb: Remove separating space between parameters on R line. Makes
40093 format consistent with format used by the binder for Set_Globals call.
40095 * atree.ads, atree.adb: Minor reformatting (new function header format)
40097 * bindgen.adb: Add Run-Time Globals documentation section containing
40098 detailed documentation of the globals passed from the binder file to
40101 * gnatls.adb: Minor reformatting
40103 * init.c (__gnat_set_globals): Add note pointing to documentation in
40106 * lib-writ.ads, lib-writ.adb: Remove separating space between
40107 parameters on R line.
40108 Makes format consistent with format used by the binder for Set_Globals
40111 * osint.ads: Add 2004 to copyright notice
40114 * snames.ads: Correct capitalization of FIFO_Within_Priorities
40115 Noticed during code reading, documentation issue only
40117 * usage.adb: Remove junk line for obsolete C switch
40118 Noticed during code reading
40120 2004-02-12 Vincent Celier <celier@gnat.com>
40122 * bld.adb (Process_Declarative_Items): For Source_Dirs call gprcmd
40123 extend for each directory, so that multiple /** directories are
40124 extended individually.
40125 (Recursive_Process): Set the default for LANGUAGES to ada
40127 * gprcmd.adb: Define new command "ignore", to do nothing.
40128 Implement new comment "path".
40130 * Makefile.generic: Suppress output when SILENT is set
40131 Make sure that when compiler for C/C++ is gcc, the correct -x switch is
40132 used, so that the correct compiler is invoked.
40133 When compiler is gcc/g++, put search path in env vars C_INCLUDE_PATH/
40134 CXX_INCLUDE_PATH, to avoid failure with too long command lines.
40136 2004-02-12 Jerome Guitton <guitton@act-europe.fr>
40138 * Makefile.in: Clean ups and remove obsolete targets.
40140 2004-02-12 Ed Schonberg <schonberg@gnat.com>
40142 * exp_ch5.adb: Remove Possible_Unligned_Slice, in favor of the similar
40143 predicate declared in exp_util.
40145 * exp_util.adb: Add comments.
40147 * sem_ch10.adb (Analyze_Subunit): Remove ultimate parent unit from
40148 visibility before compiling context of the subunit.
40150 * sem_res.adb (Check_Parameterless_Call): If the context expects a
40151 value but the name is a procedure, do not attempt to analyze as a call,
40152 in order to obtain more telling diagnostics.
40154 * sem_util.adb (Wrong_Type): Further enhancement to diagnose missing
40155 'Access on parameterless function calls.
40156 (Normalize_Actuals): For a parameterless function call with missing
40157 actuals, defer diagnostic until resolution of enclosing call.
40159 * sem_util.adb (Wrong_Type): If the context type is an access to
40160 subprogram and the expression is a procedure name, suggest a missing
40163 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>,
40164 Nathanael Nerode <neroden@gcc.gnu.org>
40168 Merge with libada-branch:
40169 * config-lang.in: Build libada only when ada is built.
40171 2004-02-09 Ed Schonberg <schonberg@gnat.com>
40173 * exp_ch4.adb (Expand_N_Op_Eq): When looking for the primitive equality
40174 for a tagged type, verify that both formals have the same type.
40176 * exp_ch6.adb (Add_Call_By_Copy_Code): Initialize properly the
40177 temporary when the formal is an in-parameter and the actual a possibly
40180 * exp_ch9.adb (Expand_Entry_Barrier): Resolve barrier expression even
40181 when expansion is disabled, to ensure proper name capture with
40182 overloaded literals. Condition can be of any boolean type, resolve
40185 * sem_ch8.adb (Analyze_Subprogram_Renaming): Emit warning if the
40186 renaming is for a formal subprogram with a default operator name, and
40187 there is a usable operator that is visible at the point of
40190 2004-02-09 Robert Dewar <dewar@gnat.com>
40192 * ali.adb (Scan_Ali) Add Ignore_Errors argument. This is a major
40193 rewrite to ignore errors in ali files, intended to allow tools downward
40194 compatibility with new versions of ali files.
40196 * ali.ads: Add new parameter Ignore_Errors
40198 * bcheck.adb (Check_Consistent_Restrictions): Fix error of sometimes
40199 duplicating the error message giving the file with restrictions.
40201 * debug.adb: Add debug flag I for gnatbind
40203 * errout.adb (Set_Msg_Insertion_Node): Suppress extra quotes around
40204 operators for the case where the operator is a defining operator.
40206 * exp_ch3.adb: Minor reformatting (new function spec format).
40208 * exp_ch4.adb: Add comment for previous change, and make minor
40209 adjustment to loop to always check for improper loop termination.
40210 Minor reformatting throughout (new function spec format).
40212 * gnatbind.adb: Implement -di debug flag for gnatbind
40214 * gnatlink.adb: Call Scan_ALI with Ignore_Errors set to True
40216 * gnatls.adb: Call Scan_ALI with Ignore_Errors set to True
40218 * lib-load.adb: Fix bad assertion.
40219 Found by testing and code reading.
40220 Minor reformatting.
40222 * lib-load.ads: Minor reformatting.
40224 * lib-writ.adb: There is only one R line now.
40226 * lib-writ.ads: Add documentation on making downward compatible changes
40227 to ali files so old tools work with new ali files.
40228 There is only one R line now.
40229 Add documentation on format incompatibilities (with special GPS note)
40231 * namet.ads, namet.adb: (Is_Operator_Name): New procedure
40233 * par-load.adb: Minor reformatting
40235 * sem_ch8.adb: Fix to error message from last update
40236 Minor reformatting and restructuring of code from last update
40238 * par-prag.adb, snames.adb, snames.ads, snames.h,
40239 sem_prag.adb: Implement pragma Profile.
40241 * stylesw.adb: Implement -gnatyN switch to turn off all style check
40244 * usage.adb: Add line for -gnatyN switch
40246 * vms_data.ads: Add entry STYLE_CHECKS=NONE for -gnatyN
40248 2004-02-09 Albert Lee <lee@gnat.com>
40250 * errno.c: define _SGI_MP_SOURCE for task-safe errno on IRIX
40252 2004-02-09 Ed Schonberg <schonberg@gnat.com>
40254 * exp_ch3.adb (Build_Slice_Assignment): Handle properly case of null
40257 * exp_ch6.adb (Expand_Call): Do not inline a call when the subprogram
40258 is nested in an instance that is not frozen yet, to avoid
40259 order-of-elaboration problems in gigi.
40261 * sem_attr.adb (Analyze_Attribute, case 'Access): Within an inlined
40262 body the attribute is legal.
40264 2004-02-09 Robert Dewar <dewar@gnat.com>
40266 * s-rident.ads: Minor comment correction
40268 * targparm.adb: Remove dependence on uintp completely. There was
40269 always a bug in Make in that it called Targparm before initializing
40270 the Uint package. The old code appeared to get away with this, but
40271 the new code did not! This caused an assertion error in gnatmake.
40273 * targparm.ads: Fix bad comment, restriction pragmas with parameters
40274 are indeed fully supported.
40276 2004-02-06 Alan Modra <amodra@bigpond.net.au>
40278 * misc.c (default_pass_by_ref): Update INIT_CUMULATIVE_ARGS call.
40280 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
40282 * ada/utils.c (create_param_decl): Replace PROMOTE_PROTOTYPES
40283 with targetm.calls.promote_prototypes.
40285 2004-02-04 Robert Dewar <dewar@gnat.com>
40287 * 5gtasinf.adb, 5gtasinf.ads, 5gtaprop.adb, ali.adb,
40288 ali.ads, gprcmd.adb: Minor reformatting
40290 * bindgen.adb: Output restrictions string for new style restrictions
40293 * impunit.adb: Add s-rident.ads (System.Rident) and
40294 s-restri (System.Restrictions)
40296 * lib-writ.adb: Fix bug in writing restrictions string (last few
40299 * s-restri.ads, s-restri.adb: Change name Restrictions to
40300 Run_Time_Restrictions to avoid conflict with package name.
40301 Add circuit to read and acquire run time restrictions.
40303 2004-02-04 Jose Ruiz <ruiz@act-europe.fr>
40305 * restrict.ads, restrict.adb: Use the new restriction
40306 No_Task_Attributes_Package instead of the old No_Task_Attributes.
40308 * sem_prag.adb: No_Task_Attributes is a synonym of
40309 No_Task_Attributes_Package.
40311 * snames.ads, snames.adb: New entry for proper handling of
40312 No_Task_Attributes.
40314 * s-rident.ads: Adding restriction No_Task_Attributes_Package
40315 (AI-00249) that supersedes the GNAT specific restriction
40316 No_Task_Attributes.
40318 2004-02-04 Ed Schonberg <schonberg@gnat.com>
40321 (Analyze_Pragma, case Warnings): In an inlined body, as in an instance
40322 body, an identifier may be wrapped in an unchecked conversion.
40324 2004-02-04 Vincent Celier <celier@gnat.com>
40326 * lib-writ.ads: Comment update for the W lines
40328 * bld.adb: (Expression): An empty string list is static
40330 * fname-uf.adb: Minor comment update
40332 * fname-uf.ads: (Get_File_Name): Document new parameter May_Fail
40334 * gnatbind.adb: Initialize Cumulative_Restrictions with the
40335 restrictions on the target.
40337 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
40339 * ada/trans.c (gigi): Use gen_rtx_SYMBOL_REF instead of
40342 2004-02-02 Arnaud Charlet <charlet@gnat.com>
40344 * Makefile.in: Remove setting of THREADSLIB on mips o32, unneeded.
40346 2004-02-02 Vincent Celier <celier@gnat.com>
40348 * gprcmd.adb (Check_Args): If condition is false, print the invoked
40349 comment before the usage.
40350 Gprcmd: Fail when command is not recognized.
40351 (Usage): Document command "prefix"
40353 * g-md5.adb (Digest): Process last block.
40354 (Update): Do not process last block. Store remaining characters and
40357 * g-md5.ads (Update): Document that several call to update are
40358 equivalent to one call with the concatenated string.
40359 (Context): Add fields to allow new Update behaviour.
40361 * fname-uf.ads/adb (Get_File_Name): New Boolean parameter May_Fail,
40362 defaulted to False.
40363 When May_Fail is True and no existing file can be found, return No_File.
40365 * 6vcstrea.adb: Inlined functions are now wrappers to implementation
40368 * lib-writ.adb (Write_With_Lines): When body file does not exist, use
40369 spec file name instead on the W line.
40371 2004-02-02 Robert Dewar <dewar@gnat.com>
40373 * ali.adb: Read and acquire info from new format restrictions lines
40375 * bcheck.adb: Add circuits for checking restrictions with parameters
40377 * bindgen.adb: Output dummy restrictions data
40378 To be changed later
40380 * ali.ads, checks.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
40381 exp_ch3.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_util.adb,
40382 freeze.adb, gnat1drv.adb, sem_attr.adb, sem_ch10.adb, sem_ch11.adb,
40383 sem_ch12.adb, targparm.adb, targparm.ads, tbuild.adb, sem_ch2.adb,
40384 sem_elab.adb, sem_res.adb: Minor changes for new restrictions handling.
40386 * exp_ch9.adb (Build_Master_Entity): Cleanup the code (also suppresses
40387 the warning message on access to possibly uninitialized variable S)
40388 Minor changes for new restrictions handling.
40390 * gnatbind.adb: Minor reformatting
40391 Minor changes for new restrictions handling
40392 Move circuit for -r processing here from bcheck (cleaner)
40394 * gnatcmd.adb, gnatlink.adb: Minor reformatting
40396 * lib-writ.adb: Output new format restrictions lines
40398 * lib-writ.ads: Document new R format lines for new restrictions
40401 * s-restri.ads/adb: New files
40403 * Makefile.rtl: Add entry for s-restri.ads/adb
40405 * par-ch3.adb: Fix bad error messages starting with upper case letter
40408 * restrict.adb: Major rewrite throughout for new restrictions handling
40409 Major point is to handle restrictions with parameters
40411 * restrict.ads: Major changes in interface to handle restrictions with
40412 parameters. Also generally simplifies setting of restrictions.
40414 * snames.ads/adb: New entry for proper handling of No_Requeue
40416 * sem_ch3.adb (Count_Tasks): New circuitry for implementing Max_Tasks
40417 restriction counting.
40418 Other minor changes for new restrictions handling
40420 * sem_prag.adb: No_Requeue is a synonym for No_Requeue_Statements.
40421 Restriction_Warnings now allows full parameter notation
40422 Major rewrite of Restrictions for new restrictions handling
40424 2004-02-02 Javier Miranda <miranda@gnat.com>
40426 * par-ch3.adb (P_Identifier_Declarations): Give support to the Ada 0Y
40427 syntax rule for object renaming declarations.
40428 (P_Array_Type_Definition): Give support for the Ada 0Y syntax rule for
40429 component definitions.
40431 * sem_ch3.adb (Analyze_Component_Declaration): Give support to access
40433 (Array_Type_Declaration): Give support to access components. In addition
40434 it was also modified to reflect the name of the object in anonymous
40435 array types. The old code did not take into account that it is possible
40436 to have an unconstrained anonymous array with an initial value.
40437 (Check_Or_Process_Discriminants): Allow access discriminant in
40439 (Process_Discriminants): Allow access discriminant in non-limited types
40440 Initialize the new Access_Definition field in N_Object_Renaming_Decl
40441 node. Change Ada0Y to Ada 0Y in comments
40443 * sem_ch4.adb (Find_Equality_Types): Allow anonymous access types in
40444 equality operators.
40445 Change Ada0Y to Ada 0Y in comments
40447 * sem_ch8.adb (Analyze_Object_Renaming): Give support to access
40448 renamings Change Ada0Y to Ada 0Y in comments
40450 * sem_type.adb (Find_Unique_Type): Give support to the equality
40451 operators for universal access types
40452 Change Ada0Y to Ada 0Y in comments
40454 * sinfo.adb (Access_Definition, Set_Access_Definition): New subprograms
40456 * sinfo.ads (N_Component_Definition): Addition of Access_Definition
40458 (N_Object_Renaming_Declaration): Addition of Access_Definition field
40459 Change Ada0Y to Ada 0Y in comments
40461 * sprint.adb (Sprint_Node_Actual): Give support to the new syntax for
40462 component definition and object renaming nodes
40463 Change Ada0Y to Ada 0Y in comments
40465 2004-02-02 Jose Ruiz <ruiz@act-europe.fr>
40467 * restrict.adb: Use the new restriction identifier
40468 No_Requeue_Statements instead of the old No_Requeue for defining the
40469 restricted profile.
40471 * sem_ch9.adb (Analyze_Requeue): Check the new restriction
40472 No_Requeue_Statements.
40474 * s-rident.ads: Adding restriction No_Requeue_Statements (AI-00249)
40475 that supersedes the GNAT specific restriction No_Requeue. The later is
40476 kept for backward compatibility.
40478 2004-02-02 Ed Schonberg <schonberg@gnat.com>
40480 * lib.ads, i-cobol.ads, * s-stoele.ads, s-thread.ads, style.ads,
40481 5staprop.adb, atree.adb, atree.ads, g-crc32.ads: Remove redundant
40482 pragma and fix incorrect ones.
40484 * sem_prag.adb For pragma Inline and pragma Pure_Function, emit a
40485 warning if the pragma is redundant.
40487 2004-02-02 Thomas Quinot <quinot@act-europe.fr>
40489 * 5staprop.adb: Add missing 'constant' keywords.
40491 * Makefile.in: use consistent value for SYMLIB on
40492 platforms where libaddr2line is supported.
40494 2004-02-02 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
40496 * utils.c (end_subprog_body): Do not call rest_of_compilation if just
40499 2004-02-02 Olivier Hainque <hainque@act-europe.fr>
40501 * init.c (__gnat_install_handler): Setup an alternate stack for signal
40502 handlers in the environment thread. This allows proper propagation of
40503 an exception on stack overflows in this thread even when the builtin
40504 ABI stack-checking scheme is used without support for a stack reserve
40507 * utils.c (create_field_decl): Augment the head comment about bitfield
40508 creation, and don't account for DECL_BIT_FIELD in DECL_NONADDRESSABLE_P
40509 here, because the former is not accurate enough at this point.
40510 Let finish_record_type decide instead.
40511 Don't make a bitfield if the field is to be addressable.
40512 Always set a size for the field if the record is packed, to ensure the
40513 checks for bitfield creation are triggered.
40514 (finish_record_type): During last pass over the fields, clear
40515 DECL_BIT_FIELD when possible in the !STRICT_ALIGNMENT case, as this is
40516 not covered by the calls to layout_decl. Adjust DECL_NONADDRESSABLE_P
40517 from DECL_BIT_FIELD.
40519 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
40521 * Make-lang.in (doc/gnat_ug_unx.dvi): Use $(abs_docdir).
40522 (doc/gnat_ug_vms.dvi, doc/gnat_ug_unx.dvi): Likewise.
40523 (doc/gnat_ug_unx.dvi, doc/gnat-style.dvi): Likewise.
40525 2004-01-26 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40527 * Makefile.in (mips-sgi-irix5): Remove -lathread from THREADSLIB.
40529 * 5fsystem.ads (Functions_Return_By_DSP): Set to False.
40530 (ZCX_By_Default): Likewise.
40531 (Front_End_ZCX_Support): Likewise.
40533 * 5gtaprop.adb (Stack_Guard): Mark T, On unreferenced.
40534 (Initialize_Lock): Mark Level unreferenced.
40535 (Sleep): Mark Reason unreferenced.
40536 (Timed_Sleep): Likewise.
40537 (Wakeup): Likewise.
40538 (Exit_Task): Use Result.
40539 (Check_No_Locks): Mark Self_ID unreferenced.
40541 * 5gtasinf.adb (New_Sproc): Make Attr constant.
40542 (Bound_Thread_Attributes): Make Sproc constant.
40543 (New_Bound_Thread_Attributes): Likewise.
40545 2004-01-26 Ed Schonberg <schonberg@gnat.com>
40547 * exp_ch3.adb (Build_Slice_Assignment): New TSS procedure for
40548 one-dimensional array an slice assignments, when component type is
40551 * exp_ch5.adb (Expand_Assign_Array): If array is one-dimensional,
40552 component type is controlled, and control_actions are in effect, use
40553 TSS procedure rather than generating inline code.
40555 * exp_tss.ads (TSS_Slice_Assign): New TSS procedure for one-dimensional
40556 arrays with controlled components.
40558 2004-01-26 Vincent Celier <celier@gnat.com>
40560 * gnatcmd.adb (GNATCmd): Add specification of argument file on the
40561 command line for the non VMS case.
40563 * gnatlink.adb (Process_Binder_File): When building object file, if
40564 GNU linker is used, put all object paths between quotes, to prevent ld
40565 error when there are unusual characters (such as '!') in the paths.
40567 * Makefile.generic: When there are sources in Ada and the main is in
40568 C/C++, invoke gnatmake with -B, instead of -z.
40570 * vms_conv.adb (Preprocess_Command_Data): New procedure, extracted
40571 from VMS_Conversion.
40572 (Process_Argument): New procedure, extracted from VMS_Conversion. Add
40573 specification of argument file on the command line.
40575 2004-01-26 Bernard Banner <banner@gnat.com>
40577 * Makefile.in: Enable GMEM_LIB and SYMLIB for x86_64
40579 2004-01-26 Ed Schonberg <schonberg@gnat.com>
40581 * snames.adb: Update copyright notice.
40582 Add info on slice assignment for controlled arrays.
40584 2004-01-23 Robert Dewar <dewar@gnat.com>
40586 * exp_aggr.adb: Minor reformatting
40588 * exp_ch9.adb: Minor code clean up
40590 Fix bad character in comment
40593 * targparm.adb (Get_Target_Parameters): Give clean abort error on
40594 unexpected end of file, along with more detailed message.
40596 2004-01-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
40598 * exp_pakd.adb (Install_PAT): Clear Freeze_Node for PAT and Etype of
40601 * decl.c (copy_alias_set): New function.
40602 (gnat_to_gnu_entity, make_aligning_type, make_packable_type): Use it.
40604 2004-01-23 Doug Rupp <rupp@gnat.com>
40606 * Makefile.in (install-gnatlib): Change occurrences of lib$$file to
40607 lib$${file} in case subsequent character is not a separator.
40609 2004-01-23 Vincent Celier <celier@gnat.com>
40611 * 5vml-tgt.adb (Build_Dynamic_Library): Invoke gcc with -shared-libgcc
40612 when the GCC version is at least 3.
40614 * make.adb: (Scan_Make_Arg): Pass -B to Scan_Make_Switches
40615 Remove all "Opt.", to prepare for opt split
40617 * prj-part.adb (Parse_Single_Project): New Boolean out parameter
40618 Extends_All. Set to True when the project parsed is an extending all
40619 project. Fails for importing an extending all project only when the
40620 imported project is an extending all project.
40621 (Post_Parse_Context_Clause): Set Is_Extending_All to the with clause,
40622 depending on the value of Extends_All returned.
40624 * prj-proc.adb (Process): Check that no project shares its object
40625 directory with a project that extends it, directly or indirectly,
40626 including a virtual project.
40627 Check that no project extended by another project shares its object
40628 directory with another also extended project.
40630 * prj-tree.adb (Is_Extending_All, Set_Is_Extending_All): Allow for
40631 Kind = N_With_Clause
40633 * prj-tree.ads: Minor reformatting
40634 Indicate that Flag2 also applies to N_With_Clause (Is_Extending_All).
40636 2004-01-23 Ed Schonberg <schonberg@gnat.com>
40638 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): If the attribute
40639 applies to a type with an incomplete view, use full view in Name of
40640 clause, for consistency with uses of Get_Attribute_Definition_Clause.
40642 2004-01-23 Arnaud Charlet <charlet@act-europe.fr>
40644 * 5itaprop.adb (Set_Priority): Reset the priority to 0 when using
40645 SCHED_RR, since other values are not supported by this policy.
40646 (Initialize): Move initialization of mutex attribute to package
40647 elaboration, to prevent early access to this variable.
40649 * Makefile.in: Remove mention of Makefile.adalib, unused.
40651 * Makefile.adalib, 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
40652 1ssecsta.ads: Removed, unused.
40654 2004-01-21 Javier Miranda <miranda@gnat.com>
40656 * exp_aggr.adb (Build_Record_Aggr_Code): Do not build the master
40657 entity if already built in the current scope.
40659 * exp_ch9.adb (Build_Master_Entity): Do not set the has_master_entity
40660 reminder in internal scopes. Required for nested limited aggregates.
40662 2004-01-21 Doug Rupp <rupp@gnat.com>
40664 * Makefile.in (hyphen): New variable, default value '-'. Set to '_' on
40665 VMS. Replace all occurences of libgnat- and libgnarl- with
40666 libgnat$(hyphen) and libgnarl$(hyphen).
40667 Fixed shared library build problem on VMS.
40669 2004-01-21 Robert Dewar <dewar@gnat.com>
40671 * mlib-prj.adb: Minor reformatting
40673 2004-01-21 Thomas Quinot <quinot@act-europe.fr>
40675 * prj-tree.adb, 7staprop.adb, vms_conv.adb, xr_tabls.adb: Add missing
40676 'constant' keywords for declaration of pointers that are not modified.
40678 * exp_pakd.adb: Fix English in comment.
40680 2004-01-21 Ed Schonberg <schonberg@gnat.com>
40683 * sem_ch3.adb (Analyze_Subtype_Declaration): For an array subtype,
40684 copy all attributes of the parent, including the foreign language
40687 2004-01-21 Sergey Rybin <rybin@act-europe.fr>
40690 * sem_ch9.adb (Analyze_Delay_Alternative): Add expression type check
40691 for 'delay until' statement.
40693 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
40695 * Make-lang.in: Replace $(docdir) with doc.
40696 (doc/gnat_ug_unx.info, doc/gnat_ug_vwx.info, doc/gnat_ug_vms.info
40697 doc/gnat_ug_wnt.info, doc/gnat_rm.info, doc/gnat-style.info): Update
40698 to use consistent MAKEINFO rule.
40699 (ada.man, ada.srcman): Dummy entry.
40700 (ADA_INFOFILES): Define.
40701 (ada.info, ada.srcinfo): New rules.
40703 2004-01-19 Arnaud Charlet <charlet@act-europe.fr>
40705 * utils.c: Update copyright notice, missed in previous change.
40707 2004-01-19 Vincent Celier <celier@gnat.com>
40709 * mlib-prj.adb (Build_Library.Add_ALI_For): Only add the ALI to the
40710 args if Bind is True. Set First_ALI, if not already done.
40711 (Build_Library): For Stand Alone Libraries, extract from one ALI file
40712 an eventual --RTS switch, for gnatbind, and all backend switches +
40713 --RTS, for linking.
40715 2004-01-19 Robert Dewar <dewar@gnat.com>
40717 * sem_attr.adb, memtrack.adb: Minor reformatting
40719 2004-01-19 Ed Schonberg <schonberg@gnat.com>
40721 * exp_ch6.adb (Expand_Call): Remove code to fold calls to functions
40722 that rename enumeration literals. This is properly done in sem_eval.
40724 * sem_eval.ads, sem_eval.adb (Eval_Call): New procedure to fold calls
40725 to functions that rename enumeration literals.
40727 * sem_res.adb (Resolve_Call): Use Eval_Call to fold static calls to
40728 functions that rename enumeration literals.
40730 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
40732 * Make-lang.in (utils.o): Depend on target.h.
40733 * utils.c: Include target.h.
40734 (process_attributes): Use targetm.have_named_sections instead
40735 of ASM_OUTPUT_SECTION_NAME.
40737 2004-01-16 Andreas Jaeger <aj@suse.de>
40739 * Makefile.in: Add $(DESTDIR).
40741 2004-01-15 Olivier Hainque <hainque@act-europe.fr>
40743 * decl.c (gnat_to_gnu_entity, E_Variable): Retrieve the object size
40744 also when not defining if a Size clause applies. That information is
40747 2004-01-15 Arnaud Charlet <charlet@act-europe.fr>
40749 * Makefile.in (install-gnatlib, gnatlib-shared-default): Set up
40750 symbolic links for the shared gnat run time when needed.
40752 2004-01-15 Vasiliy Fofanov <fofanov@act-europe.fr>
40754 * memtrack.adb (Gmem_Initialize): check that gmem.out could be opened
40755 for writing, and terminate with an error message if not.
40757 2004-01-15 Ed Schonberg <schonberg@gnat.com>
40759 * sem_attr.adb (Resolve_Attribute, case 'Access): Remove spurious
40760 warning on an access to subprogram in an instance, when the target
40761 type is declared in the same generic unit.
40762 (Eval_Attribute): If 'access is known to fail accessibility check,
40763 rewrite as a raise statement.
40765 2004-01-15 GNAT Script <nobody@gnat.com>
40767 * Make-lang.in: Makefile automatically updated
40769 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
40771 * Make-lang.in (ada.srcextra): Dummy entry.
40773 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
40775 * Make-lang.in: Only regenerate texi files if --enable-maintainer-mode.
40777 2004-01-13 Ed Schonberg <schonberg@gnat.com>
40779 * exp_ch3.adb (Build_Assignment): Fix bug in handling of controlled
40780 components that are initialized with aggregates.
40782 2004-01-13 Vincent Celier <celier@gnat.com>
40784 * gnatlink.adb (Process_Binder_File): To find directory of shared
40785 libgcc, if "gcc-lib" is not a subdirectory, look for the last
40786 subdirectory "lib" in the path of the shared libgnat or libgnarl.
40788 * make.adb (Gnatmake): If GCC version is at least 3, link with
40789 -shared-libgcc, when there is at least one shared library project.
40791 * opt.ads (GCC_Version): New integer constant.
40793 * adaint.c (get_gcc_version): New function.
40795 2004-01-13 Robert Dewar <dewar@gnat.com>
40797 * sem_dist.adb, sem_res.adb, sem_util.adb,
40798 sprint.adb, 3zsocthi.adb, einfo.adb, cstand.adb,
40799 exp_ch4.adb, exp_ch9.adb, exp_dist.adb: Minor reformatting
40801 2004-01-13 Thomas Quinot <quinot@act-europe.fr>
40803 * s-interr.adb, s-stache.adb, s-taenca.adb, g-regpat.adb,
40804 g-spitbo.adb, 5itaprop.adb: Add missing 'constant' keywords in object
40807 2004-01-12 Arnaud Charlet <charlet@act-europe.fr>
40809 * misc.c: Remove trailing spaces.
40810 Update copyright notice missed in previous change.
40813 * bld.adb (Recursive_Process): Reference prefix/share/gnat instead of
40816 * Makefile.generic: Update copyright.
40817 Add license notice.
40819 * Makefile.in (ADA_SHARE_MAKE_DIR): Set to prefix/share/gnat instead
40820 of prefix/share/make.
40822 * Makefile.prolog: Update copyright.
40823 Add license notice.
40825 2004-01-12 Laurent Pautet <pautet@act-europe.fr>
40827 * 3vsocthi.adb, 3vsocthi.ads, 3wsocthi.adb,
40828 3wsocthi.ads, 3zsocthi.adb, 3zsocthi.ads, g-socthi.adb,
40829 g-socthi.ads (Socket_Error_Message): Return C.Strings.chars_ptr
40832 * g-socket.adb (Raise_Socket_Error): Use new Socket_Error_Message
40835 2004-01-12 Javier Miranda <miranda@gnat.com>
40837 * cstand.adb, exp_aggr.adb, exp_ch3.adb, exp_ch9.adb, exp_dist.adb,
40838 exp_imgv.adb, exp_pakd.adb, exp_util.adb, par-ch3.adb, sem.adb,
40839 sem_ch12.adb, sem_ch3.adb, sem_dist.adb, sem_prag.adb, sem_res.adb,
40840 sem_util.adb, sinfo.adb, sinfo.ads, sprint.adb: Addition of
40841 Component_Definition node.
40843 2004-01-12 Ed Falis <falis@gnat.com>
40845 * impunit.adb: Add GNAT.Secondary_Stack_Info as user-visible unit
40847 2004-01-12 Thomas Quinot <quinot@act-europe.fr>
40849 * link.c: Change default libgnat kind to STATIC for FreeBSD.
40851 2004-01-12 Bernard Banner <banner@gnat.com>
40853 * Makefile.in: map 86numaux to a-numaux for x86_64
40855 2004-01-12 Ed Schonberg <schonberg@gnat.com>
40857 * lib-xref.adb (Get_Type_Reference): If the type is the subtype entity
40858 generated to rename a generic actual, go to the actual itself, the
40859 subtype is not a user-visible entity.
40861 * sem_ch7.adb (Uninstall_Declarations): If an entity in the visible
40862 part is a private subtype, reset the visibility of its full view, if
40863 any, to be consistent.
40866 * sem_ch12.adb (Analyze_Formal_Package): Diagnose properly an attempt
40867 to use a generic package G as a formal package for another generic
40870 2004-01-12 Robert Dewar <dewar@gnat.com>
40872 * trans.c (Eliminate_Error_Msg): New procedure called to generate msg
40874 * usage.adb: Remove mention of obsolete -gnatwb switch
40875 Noticed during code reading
40877 2004-01-12 Jerome Guitton <guitton@act-europe.fr>
40879 * 1ssecsta.adb: Minor changes for -gnatwa warnings
40881 2004-01-12 GNAT Script <nobody@gnat.com>
40883 * Make-lang.in: Makefile automatically updated
40885 2004-01-09 Mark Mitchell <mark@codesourcery.com>
40887 * misc.c (gnat_expand_expr): Add alt_rtl parameter.
40889 2004-01-07 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
40891 * link.c [sgi] (shared_libgnat_default): Change to STATIC.
40893 2004-01-05 Kelley Cook <kcook@gcc.gnu.org>
40895 * Make-lang.in: Revert stamp-xgnatug change from 2003-12-18.
40896 Update comment and copyright date.
40897 * stamp-xgnatug: Delete.
40899 2004-01-05 Robert Dewar <dewar@gnat.com>
40901 * 1ssecsta.ads: Default_Secondary_Stack is not a constant since it may
40902 be modified by the binder generated main program if the -D switch is
40905 * 4onumaux.ads, 4znumaux.ads: Add Pure_Function pragmas for all
40906 imported functions (since now we expect this to be done for imported
40909 * 5vtaprop.adb: Add several ??? for sections requiring more comments
40910 Minor reformatting throughout
40912 * 5zinit.adb: Minor reformatting
40913 Add 2004 to copyright date
40914 Minor changes to avoid -gnatwa warnings
40915 Correct some instances of using OR instead of OR ELSE (noted while
40916 doing reformatting)
40918 * sprint.adb: Minor updates to avoid -gnatwa warnings
40920 * s-secsta.ads, s-secsta.adb:
40921 (SS_Get_Max): New function to obtain high water mark for ss stack
40922 Default_Secondary_Stack is not a constant since it may be modified by
40923 the binder generated main program if the -D switch is used.
40925 * switch-b.adb: New -Dnnn switch for binder
40928 Make -gnatg imply all warnings currently in -gnatwa
40930 * vms_conv.adb: Minor reformatting
40931 Add 2004 to copyright notice
40932 Add 2004 to printed copyright notice
40934 * 3vexpect.adb, 4zsytaco.adb, 3wsocthi.adb, 3zsocthi.adb,
40935 3zsocthi.adb, 56taprop.adb, 56tpopsp.adb, 5amastop.adb,
40936 5aml-tgt.adb, 5ataprop.adb, 5ataprop.adb, 5atpopsp.adb,
40937 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb, 5gml-tgt.adb,
40938 5gtaprop.adb, 5hml-tgt.adb, 5hml-tgt.adb, 5hml-tgt.adb,
40939 5htaprop.adb, 5htraceb.adb, 5itaprop.adb, 5lml-tgt.adb,
40940 5sml-tgt.adb, 5staprop.adb, 5staprop.adb, 5stpopsp.adb,
40941 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vtaprop.adb,
40942 5vml-tgt.adb, 5vtaprop.adb, 5wosprim.adb, 5wtaprop.adb,
40943 5zinterr.adb, 5zintman.adb, 5zml-tgt.adb, 5ztaprop.adb,
40944 6vcpp.adb, 6vcstrea.adb, 7staprop.adb, 7stpopsp.adb,
40945 vxaddr2line.adb, vxaddr2line.adb, xref_lib.adb, xr_tabls.adb,
40946 xr_tabls.ads, s-tasdeb.adb, s-tasdeb.adb, sem_res.ads,
40947 sem_util.adb, sem_util.adb, sem_util.ads, s-interr.adb,
40948 checks.adb, clean.adb, cstand.adb, einfo.ads,
40949 einfo.adb, exp_aggr.adb, exp_ch11.adb, exp_ch3.adb,
40950 exp_ch4.adb, exp_ch5.adb, exp_ch7.adb, exp_ch9.adb,
40951 prj-nmsc.adb, prj-pp.adb, prj-util.adb, sem_attr.adb,
40952 sem_ch10.adb, sem_ch12.adb, sem_ch4.adb, g-dirope.adb,
40953 g-dirope.ads, gnatlbr.adb, i-cstrea.adb, inline.adb,
40954 lib-xref.adb, sem_ch5.adb, sem_ch7.adb, sem_ch8.adb:
40955 Minor reformatting and code clean ups.
40956 Minor changes to prevent -gnatwa warnings
40958 * ali.adb: Minor reformatting and cleanup of code
40959 Acquire new SS indication of secondary stack use from ali files
40961 * a-numaux.ads: Add Pure_Function pragmas for all imported functions
40962 (since now we expect this to be done for imported functions)
40964 * bindgen.adb: Generate call to modify default secondary stack size if
40967 * bindusg.adb: Add line for new -D switch
40969 * exp_aggr.adb (Type_May_Have_Bit_Aligned_Components): More appropriate
40970 replacement name for Type_May_Have_Non_Bit_Aligned_Components!
40971 Add circuitry for both records and arrays to avoid gigi
40972 processing if the type involved has non-bit-aligned components
40974 * exp_ch5.adb (Expand_Assign_Array): Avoid assumption that
40975 N_String_Literal node always references an E_String_Literal_Subtype
40976 entity. This may not be true in the future.
40977 (Possible_Bit_Aligned_Component): Move processing of
40978 Component_May_Be_Bit_Aligned from exp_ch5 to exp_util
40980 * exp_ch6.adb (Expand_Thread_Body): Pick up
40981 Default_Secondary_Stack_Size as variable so that we get value modified
40982 by possible -Dnnn binder parameter.
40984 * exp_util.adb (Component_May_Be_Bit_Aligned): New function.
40985 (Type_May_Have_Bit_Aligned_Components): New function.
40987 * exp_util.ads (Component_May_Be_Bit_Aligned): New function.
40988 (Type_May_Have_Bit_Aligned_Components): New function.
40990 * fe.h: (Set_Identifier_Casing): Fix prototype.
40991 Add declaration for Sem_Elim.Eliminate_Error_Msg.
40992 Minor reformatting.
40994 * freeze.adb (Freeze_Entity): Add RM reference to error message about
40995 importing constant atomic/volatile objects.
40996 (Freeze_Subprogram): Reset Is_Pure indication for imported subprogram
40997 unless explicit Pure_Function pragma given, to avoid insidious bug of
40998 call to non-pure imported function getting eliminated.
41000 * gnat1drv.adb, gnatbind.adb, gnatchop.adb, gnatfind.adb,
41001 gnatls.adb, gnatlink.adb, gnatmem.adb, gnatname.adb, gnatsym.adb,
41002 gnatxref.adb, gprcmd.adb, gprep.adb, make.adb: Minor reformatting
41003 Add 2004 to printed copyright notice
41005 * lib-writ.ads, lib-writ.adb: Put new SS flag in ali file if secondary
41008 * Makefile.rtl: Add entry for g-sestin.o
41009 g-sestin.ads: New file.
41011 * mdll.adb: Minor changes to avoid -gnatwa warnings
41013 * mlib-tgt.adb: Minor reformatting
41015 * opt.ads: New parameter Default_Secondary_Stack_Size (GNATBIND)
41016 New switch Sec_Stack_Used (GNAT, GNATBIND)
41017 Make Default_Secondary_Stack_Size a variable instead of a constant,
41018 so that it can be modified by the new -Dnnn bind switch.
41020 * rtsfind.adb (Load_Fail): Give full error message in configurable
41021 run-time mode if all_errors mode is set. This was not done in the case
41022 of a file not found, which was an oversight.
41023 Note if secondary stack unit is used by compiler.
41025 * sem_elab.adb (Check_A_Call): Rewrite to avoid trying to put
41026 ineffective elaborate all pragmas on non-visible packages (this
41027 happened when a renamed subprogram was called). Now the elaborate all
41028 always goes on the package containing the renaming rather than the one
41029 containing the renamed subprogram.
41031 * sem_elim.ads, sem_elim.adb (Eliminate_Error_Msg): New procedure
41032 (Process_Eliminate_Pragma): Add parameter to capture pragma location.
41034 * sem_eval.adb (Eval_String_Literal): Do not assume that string literal
41035 has an Etype that references an E_String_Literal.
41036 (Eval_String_Literal): Avoid assumption that N_String_Literal node
41037 always references an E_String_Literal_Subtype entity. This may not
41038 be true in the future.
41040 * sem_prag.adb (Process_Eliminate_Pragma): Add parameter to capture
41043 * sem_res.adb (Resolve): Specialize msg for function name used in proc
41046 2004-01-05 Ed Falis <falis@gnat.com>
41048 * g-debuti.adb: Replaced direct boolean operator with short-circuit
41051 2004-01-05 Vincent Celier <celier@gnat.com>
41053 * bld.adb: Minor comment updates
41054 (Process_Declarative_Items): Correct incorrect name (Index_Name instead
41057 * make.adb (Gnatmake): Special process for files to compile/check when
41058 -B is specified. Fail when there are only foreign mains in attribute
41059 Main of the project file and -B is not specified. Do not skip bind/link
41060 steps when -B is specified.
41062 * makeusg.adb: Document new switch -B
41064 * opt.ads (Build_Bind_And_Link_Full_Project): New Boolean flag
41066 * switch-m.adb: (Scan_Make_Switches): Process -B switch
41068 * vms_data.ads: Add new GNAT PRETTY qualifier
41069 /FORM_FEED_AFTER_PRAGMA_PAGE for switch -ff
41071 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
41073 * trans.c (tree_transform, case N_Free_Statement): Handle thin pointer
41076 * misc.c (gnat_printable_name): If VERBOSITY is 2, call
41077 Set_Identifier_Casing.
41079 * decl.c (gnat_to_gnu_entity, E_Function): Give error if return type
41080 has size that overflows.
41082 2004-01-05 Gary Dismukes <dismukes@gnat.com>
41084 * exp_ch4.adb (Expand_Array_Comparison): Add Boolean constant to avoid
41085 -gnatwa warning on static condition.
41087 2004-01-05 Doug Rupp <rupp@gnat.com>
41089 * link.c: (shared_libgnat_default) [VMS]: Change to STATIC.
41091 2004-01-05 Arnaud Charlet <charlet@act-europe.fr>
41093 * Makefile.in: Install ali files using INSTALL_DATA_DATE to preserve
41094 all attributes, including read-only attribute.
41096 2004-01-05 Pascal Obry <obry@gnat.com>
41098 * bindgen.adb (Gen_Object_Files_Options): Generate the new shared
41099 library naming scheme.
41101 * mlib-prj.adb (Build_Library): Generate different names for the static
41102 or dynamic version of the GNAT runtime. This is needed to support the
41103 new shared library naming scheme.
41104 (Process_Binder_File): Add detection of shared library in binder file
41105 based on the new naming scheme.
41107 * gnatlink.adb (Process_Binder_File): Properly detect the new naming
41108 scheme for the shared runtime libraries.
41111 (LIBRARY_VERSION) [VMS]: Convert all . to _ to conform to new naming
41113 (install-gnatlib): Do not create symlinks for shared libraries.
41114 (gnatlib-shared-default): Idem.
41115 (gnatlib-shared-dual-win32): New target. Not used for now as the
41116 auto-import feature does not support arrays/records.
41117 (gnatlib-shared-win32): Do not create copy for the shared libraries.
41118 (gnatlib-shared-vms): Fix shared runtime libraries names.
41120 * osint.ads, osint.adb (Shared_Lib): New routine, returns the target
41121 dependent runtime shared library name.
41123 2004-01-05 Vasiliy Fofanov <fofanov@act-europe.fr>
41125 * osint.adb (Read_Library_Info): Remove bogus check if ALI is older
41128 2004-01-05 Ed Schonberg <schonberg@gnat.com>
41130 * sem_ch4.adb (Analyze_Allocator): Check restriction on dynamic
41131 protected objects when allocator has a subtype indication, not a
41132 qualified expression. Note that qualified expressions may have to be
41133 checked when limited aggregates are implemented.
41135 * sem_prag.adb (Analyze_Pragma, case Import): If enclosing package is
41136 pure, emit warning.
41137 (Analyze_Pragma, case Pure_Function): If enclosing package is pure and
41138 subprogram is imported, remove warning.
41140 2004-01-05 Geert Bosch <bosch@gnat.com>
41142 * s-poosiz.adb: Update copyright notice.
41143 (Allocate): Use Task_Lock to protect against concurrent access.
41144 (Deallocate): Likewise.
41146 2004-01-05 Joel Brobecker <brobecker@gnat.com>
41148 * s-stalib.adb (Elab_Final_Code): Add missing year in date inside ???
41151 2003-12-23 Kelley Cook <kcook@gcc.gnu.org>
41153 * gnat_ug.texi: Force a CVS commit by updating copyright.
41154 * gnat_ug_vxw.texi: Regenerate.
41155 * gnat_ug_wnt.texi: Regenerate.
41156 * gnat_ug_vms.texi: Regenerate.
41157 * gnat_ug_unx.texi: Regenerate.
41159 2003-12-20 Kazu Hirata <kazu@cs.umass.edu>
41161 * trans.c: Remove uses of "register" specifier in
41162 declarations of local variables.
41164 2003-12-18 Kelley Cook <kcook@gcc.gnu.org>
41166 * stamp-xgnatug: New stamp file.
41167 * Make-lang.in (stamp-xgnatug): New stamp file and comment.
41168 (ada/doctools/xgnatug): Add $(build_exeext).
41169 (ada/gnat_ug_unx.texi, ada/gnat_ug_vwx.texi, ada/gnat_ug_vms.texi
41170 ada/gnat_ug_wnt.texi): Update to depend on stamp-xgnatug.
41172 2003-12-17 Ed Falis <falis@gnat.com>
41174 * a-elchha.adb (Tailored_Exception_Information): made Info constant to
41177 * a-exextr.adb: Add context clause for
41178 Ada.Exceptions.Last_Chance_Handler.
41180 2003-12-17 Sergey Rybin <rybin@act-europe.fr>
41182 * cstand.adb (Create_Standard): Change the way how the declaration of
41183 the Duration type is created (making it the same way as it is for all
41184 the other standard types).
41186 2003-12-17 Robert Dewar <dewar@gnat.com>
41188 * s-crtl.ads: Fix header format
41189 Change Pure to Preelaborate
41191 2003-12-17 Ed Schonberg <schonberg@gnat.com>
41193 * checks.adb (Selected_Length_Checks): Generate an Itype reference for
41194 the expression type only if it is declared in the current unit.
41196 * sem_ch3.adb (Constrain_Index): Handle properly a range whose bounds
41197 are universal and already analyzed, as can occur in constrained
41198 subcomponents that depend on discriminants, when one constraint is a
41201 * sem_res.adb (Resolve_Type_Conversion): Any arithmetic expression of
41202 type Any_Fixed is legal as the argument of a conversion, if only one
41203 fixed-point type is in context.
41205 2003-12-17 GNAT Script <nobody@gnat.com>
41207 * Make-lang.in: Makefile automatically updated
41209 2003-12-15 Robert Dewar <dewar@gnat.com>
41211 * exp_ch6.adb (Expand_Thread_Body): Fix error in picking up default
41214 2003-12-15 Vincent Celier <celier@gnat.com>
41216 * gnatchop.adb: (Error_Msg): Do not exit on error for a warning
41217 (Gnatchop): Do not set failure status when reporting the number of
41220 2003-12-15 Doug Rupp <rupp@gnat.com>
41222 * s-ctrl.ads: New file.
41224 * Makefile.rtl (GNAT_RTL_NONTASKING_OBJS): Add s-crtl$(objext).
41226 * Make-lang.in: (GNAT_ADA_OBJS): Add ada/s-crtl.o.
41227 (GNATBIND_OBJS): Add ada/s-crtl.o.
41229 * Makefile.in [VMS]: Clean up ifeq rules.
41231 * gnatlink.adb, 6vcstrea.adb, a-direio.adb, a-sequio.adb,
41232 a-ststio.adb, a-textio.adb, g-os_lib.adb, a-witeio.adb,
41233 g-os_lib.ads, i-cstrea.adb, i-cstrea.ads, s-direio.adb,
41234 s-fileio.adb, s-memcop.ads, s-memory.adb, s-stache.adb,
41235 s-tasdeb.adb: Update copyright.
41236 Import System.CRTL.
41237 Make minor modifications to use System.CRTL declared functions instead
41238 of importing locally.
41240 2003-12-15 GNAT Script <nobody@gnat.com>
41242 * Make-lang.in: Makefile automatically updated
41244 2003-12-11 Ed Falis <falis@gnat.com>
41246 * 5zinit.adb: Clean up.
41248 * 5zintman.adb (Notify_Exception): replaced case statement with a call
41249 to __gnat_map_signal, imported from init.c to support
41250 signal -> exception mappings that depend on the vxWorks version.
41253 Created and exported __gnat_map_signal to support signal -> exception
41254 mapping that is dependent on the VxWorks version.
41255 Change mapping of SIGBUS from Program_Error to Storage_Error on VxWorks
41257 2003-12-11 Vasiliy Fofanv <fofanov@act-europe.fr>
41259 * 5wosinte.ads: Link with -mthreads switch.
41261 2003-12-11 Arnaud Charlet <charlet@act-europe.fr>
41263 * init.c (__gnat_install_handler [NetBSD]): Set
41264 __gnat_handler_installed, as done on all other platforms.
41265 Remove duplicated code.
41267 2003-12-11 Jerome Guitton <guitton@act-europe.fr>
41269 * Makefile.in (rts-zfp, rts-ravenscar): Create libgnat.a.
41271 2003-12-11 Thomas Quinot <quinot@act-europe.fr>
41273 * sinfo.ads: Fix inconsistent example code in comment.
41275 2003-12-11 Robert Dewar <dewar@gnat.com>
41277 * a-tiinau.adb: Add a couple of comments
41279 * sem_ch3.adb: Minor reformatting
41282 Fix bad prototype of Same_Base_Type in body (code reading cleanup)
41283 Minor reformatting throughout
41285 2003-12-11 Ed Schonberg <schonberg@gnat.com>
41287 * exp_ch7.adb (Establish_Transient_Scope): If the call is within the
41288 bounds of a loop, create a separate block in order to generate proper
41289 cleanup actions to prevent memory leaks.
41291 * sem_res.adb (Resolve_Call): After a call to
41292 Establish_Transient_Scope, the call may be rewritten and relocated, in
41293 which case no further processing is needed.
41295 * sem_util.adb: (Wrong_Type): Refine previous fix.
41296 Fixes ACATS regressions.
41299 * sem_prag.adb (Back_End_Cannot_Inline): A renaming_as_body can always
41302 2003-12-08 Jerome Guitton <guitton@act-europe.fr>
41304 * 5ytiitho.adb, 5zthrini.adb, 5ztiitho.adb, i-vthrea.adb,
41305 i-vthrea.ads, s-tpae65.adb, s-tpae65.ads: Cleanup: Remove a bunch of
41308 * Makefile.in: (rts-ravenscar): Generate an empty libgnat.a.
41311 2003-12-08 Robert Dewar <dewar@gnat.com>
41313 * 7sintman.adb: Minor reformatting
41315 * bindgen.adb: Configurable_Run_Time mode no longer suppresses the
41316 standard linker options to get standard libraries linked. We now plan
41317 to provide dummy versions of these libraries to match the appropriate
41318 configurable run-time (e.g. if a library is not needed at all, provide
41319 a dummy empty library).
41321 * targparm.ads: Configurable_Run_Time mode no longer affects linker
41322 options (-L parameters and standard libraries). What we plan to do is
41323 to provide dummy libraries where the libraries are not required.
41325 * gnatbind.adb: Minor comment improvement
41327 2003-12-08 Javier Miranda <miranda@gnat.com>
41329 * exp_aggr.adb (Build_Record_Aggr_Code): Do not remove the expanded
41330 aggregate in the parent. Otherwise constants with limited aggregates
41331 are not supported. Add new formal to pass the component type (Ctype).
41332 It is required to call the corresponding IP subprogram in case of
41333 default initialized components.
41334 (Gen_Assign): In case of default-initialized component, generate a
41335 call to the IP subprogram associated with the component.
41336 (Build_Record_Aggr_Code): Remove the aggregate from the parent in case
41337 of aggregate with default initialized components.
41338 (Has_Default_Init_Comps): Improve implementation to recursively check
41339 all the present expressions.
41341 * exp_ch3.ads, exp_ch3.adb (Build_Initialization_Call): Add new formal
41342 to indicate that the initialization call corresponds to a
41343 default-initialized component of an aggregate.
41344 In case of default initialized aggregate with tasks this parameter is
41345 used to generate a null string (this is just a workaround that must be
41346 improved later). In case of discriminants, this parameter is used to
41347 generate a selected component node that gives access to the discriminant
41350 * exp_ch9.ads, exp_ch9.adb (Build_Task_Allocate_Block_With_Stmts): New
41351 subprogram, based on Build_Task_Allocate_Block, but adapted to expand
41352 allocated aggregates with default-initialized components.
41354 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Improve error message if
41355 the box notation is used in positional aggregates.
41357 2003-12-08 Samuel Tardieu <tardieu@act-europe.fr>
41359 * lib.ads: Fix typo in comment
41361 2003-12-08 Vincent Celier <celier@gnat.com>
41363 * prj.adb (Project_Empty): New component Unkept_Comments
41364 (Scan): Remove procedure; moved to Prj.Err.
41366 * prj.ads (Project_Data): New Boolean component Unkept_Comments
41367 (Scan): Remove procedure; moved to Prj.Err.
41369 * prj-dect.adb: Manage comments for the different declarations.
41371 * prj-part.adb (With_Record): New component Node
41372 (Parse): New Boolean parameter Store_Comments, defaulted to False.
41373 Set the scanner to return ends of line and comments as tokens, if
41374 Store_Comments is True.
41375 (Pre_Parse_Context_Clause): Create the N_With_Clause nodes so that
41376 comments are associated with these nodes. Store the node IDs in the
41378 (Post_Parse_Context_Clause): Use the N_With_Clause nodes stored in the
41380 (Parse_Single_Project): Call Pre_Parse_Context_Clause before creating
41381 the N_Project node. Call Tree.Save and Tree.Reset before scanning the
41382 current project. Call Tree.Restore afterwards. Set the various nodes
41383 for comment storage (Next_End, End_Of_Line, Previous_Line,
41386 * prj-part.ads (Parse): New Boolean parameter Store_Comments,
41387 defaulted to False.
41389 * prj-pp.adb (Write_String): New Boolean parameter Truncated, defaulted
41390 to False. When Truncated is True, truncate the string, never go to the
41392 (Write_End_Of_Line_Comment): New procedure
41393 (Print): Process comments for nodes N_With_Clause,
41394 N_Package_Declaration, N_String_Type_Declaration,
41395 N_Attribute_Declaration, N_Typed_Variable_Declaration,
41396 N_Variable_Declaration, N_Case_Construction, N_Case_Item.
41397 Process nodes N_Comment.
41399 * prj-tree.ads, prj-tree.adb (Default_Project_Node): If it is a node
41400 without comments and there are some comments, set the flag
41401 Unkept_Comments to True.
41402 (Scan): If there are comments, set the flag Unkept_Comments to True and
41403 clear the comments.
41404 (Project_Node_Kind): Add enum values N_Comment_Zones, N_Comment
41405 (Next_End_Nodes: New table
41406 (Comment_Zones_Of): New function
41407 (Scan): New procedure; moved from Prj. Accumulate comments in the
41408 Comments table and set end of line comments, comments after, after end
41410 (Add_Comments): New procedure
41411 (Save, Restore, Seset_State): New procedures
41412 (There_Are_Unkept_Comments): New function
41413 (Set_Previous_Line_Node, Set_Previous_End_Node): New procedures
41414 (Set_End_Of_Line, Set_Next_End_Node, Remove_Next_End_Node): New
41416 (First_Comment_After, First_Comment_After_End): New functions
41417 (First_Comment_Before, First_Comment_Before_End): New functions
41418 (Next_Comment): New function
41419 (End_Of_Line_Comment, Follows_Empty_Line,
41420 Is_Followed_By_Empty_Line): New functions
41421 (Set_First_Comment_After, Set_First_Comment_After_End): New procedures
41422 (Set_First_Comment_Before, Set_First_Comment_Before_End): New procedures
41423 (Set_Next_Comment): New procedure
41424 (Default_Project_Node): Associate comment before if the node can store
41427 * scans.ads (Token_Type): New enumeration value Tok_Comment
41428 (Comment_Id): New global variable
41430 * scng.ads, scng.adb (Comment_Is_Token): New Boolean global variable,
41431 defaulted to False.
41432 (Scan): Store position of start of comment. If comments are tokens, set
41433 Comment_Id and set Token to Tok_Comment when scanning a comment.
41434 (Set_Comment_As_Token): New procedure
41436 * sinput-p.adb: Update Copyright notice
41437 (Source_File_Is_Subunit): Call Prj.Err.Scanner.Scan instead of Prj.Scan
41438 that no longer exists.
41440 2003-12-08 Javier Miranda <miranda@gnat.com>
41442 * sem_aggr.adb: Add dependence on Exp_Tss package
41443 Correct typo in comment
41444 (Resolve_Aggregate): In case of array aggregates set the estimated
41445 type of the aggregate before calling resolve. This is needed to know
41446 the name of the corresponding IP in case of limited array aggregates.
41447 (Resolve_Array_Aggregate): Delay the resolution to the expansion phase
41448 in case of default initialized array components.
41450 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Allow limited
41451 types. Required to give support to limited aggregates in generic
41454 2003-12-08 Ed Schonberg <schonberg@gnat.com>
41456 * sem_ch3.adb (Check_Initialization): For legality purposes, an
41457 inlined body functions like an instantiation.
41458 (Decimal_Fixed_Point_Declaration): Do not set kind of first subtype
41459 until bounds are analyzed, to diagnose premature use of type.
41461 * sem_util.adb (Wrong_Type): Improve error message when the type of
41462 the expression is used prematurely.
41464 2003-12-08 GNAT Script <nobody@gnat.com>
41466 * Make-lang.in: Makefile automatically updated
41468 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
41470 * sinfo.h, einfo.h, nmake.ads, nmake.adb, treeprs.ads: Removed, since
41471 they are automatically generated by Make-lang.in and cause nothing but
41472 maintenance troubles.
41474 2003-12-05 Thomas Quinot <quinot@act-europe.fr>
41476 * 3ssoliop.ads: Fix comment (this is the Solaris, not the UnixWare,
41477 version of this unit).
41479 2003-12-05 Olivier Hainque <hainque@act-europe.fr>
41481 * 53osinte.ads, 54osinte.ads, 55osinte.ads, 56osinte.ads, 5bosinte.ads,
41482 5cosinte.ads, 5hosinte.ads, 5iosinte.ads, 5losinte.ads,
41483 5tosinte.ads: Define the SA_SIGINFO constant, to allow references from
41484 the body of System.Interrupt_Management common to several targets.
41485 Update copyright notice when appropriate.
41487 * 52osinte.ads, 5posinte.ads: Define a dummy value for the SA_SIGINFO
41490 * 7sintman.adb (elaboration): Set SA_SIGINFO in the sigaction flags,
41491 to ensure that the kernel fills in the interrupted context structure
41492 before calling a signal handler, which is necessary to be able to
41493 unwind past it. Update the copyright notice.
41495 2003-12-05 Jerome Guitton <guitton@act-europe.fr>
41497 * a-elchha.ads: New file.
41499 * a-elchha.adb: New default last chance handler. Contents taken from
41500 Ada.Exceptions.Exception_Traces.Unhandled_Exception_Terminate.
41502 * a-exextr.adb (Unhandled_Exception_Terminate): Most of this routine
41503 is moved to a-elchha.adb to provide a target-independent default last
41506 * Makefile.rtl: Add a-elchha.o
41508 * Make-lang.in (GNAT_ADA_OBJS, GNATBIND_OBJS): Add a-elchha.o.
41510 2003-12-05 Ed Schonberg <schonberg@gnat.com>
41512 * exp_ch6.adb (Expand_Call): If the subprogram is inlined and is
41513 declared in an instance, do not inline the call if the instance is not
41514 frozen yet, to prevent order of elaboration problems.
41516 * sem_prag.adb: Add comments for previous fix.
41518 2003-12-05 Samuel Tardieu <tardieu@act-europe.fr>
41520 * g-table.adb: Use the right variable in Set_Item.
41521 Update copyright notice.
41523 2003-12-05 Arnaud Charlet <charlet@act-europe.fr>
41525 * Makefile.in: Remove unused rules.
41527 2003-12-05 Vincent Celier <celier@gnat.com>
41529 * switch-c.adb (Scan_Front_End_Switches): Remove processing of
41530 -nostdlib. Not needed here after all.
41532 2003-12-03 Thomas Quinot <quinot@act-europe.fr>
41535 * adaint.h, adaint.c, g-os_lib.ads:
41536 Do not assume that the offset argument to lseek(2) is a 32 bit integer,
41537 on some platforms (including FreeBSD), it is a 64 bit value.
41538 Introduce a __gnat_lseek wrapper in adaint.c to allow for portability.
41540 2003-12-03 Arnaud Charlet <charlet@act-europe.fr>
41542 * gnatvsn.ads (Library_Version): Now contain only the relevant
41544 (Verbose_Library_Version): New constant.
41546 * g-spipat.adb, g-awk.adb, g-debpoo.adb,
41547 g-memdum.adb, g-thread.adb, s-geveop.adb, s-interr.adb,
41548 s-taskin.adb, s-tassta.adb: Make code compile with -gnatwa.
41550 * gnatlbr.adb: Clean up: replace Library_Version by
41551 Verbose_Library_Version.
41553 * make.adb, lib-writ.adb, exp_attr.adb:
41554 Clean up: replace Library_Version by Verbose_Library_Version.
41556 * 5lintman.adb: Removed.
41559 Update and simplify computation of LIBRARY_VERSION.
41560 Fix computation of GSMATCH_VERSION.
41561 5lintman.adb is no longer used: replaced by 7sintman.adb.
41563 2003-12-03 Robert Dewar <dewar@gnat.com>
41566 (Possible_Bit_Aligned_Component): Maybe_Bit_Aligned_Large_Component new
41567 name. Modified to consider small non-bit-packed arrays as troublesome
41568 and in need of component-by-component assigment expansion.
41570 2003-12-03 Vincent Celier <celier@gnat.com>
41572 * lang-specs.h: Process nostdlib as nostdinc
41574 * back_end.adb: Update Copyright notice
41575 (Scan_Compiler_Arguments): Process -nostdlib directly.
41577 2003-12-03 Jose Ruiz <ruiz@act-europe.fr>
41580 When defining LIBGNAT_TARGET_PAIRS for bare board targets, remove the
41581 redundant inclusion of EXTRA_HIE_NONE_TARGET_PAIRS, which is always
41582 included in HIE_NONE_TARGET_PAIRS.
41584 2003-12-03 Ed Schonberg <schonberg@gnat.com>
41587 (Legal_Formal_Attribute): Attribute is legal in an inlined body, as it
41588 is legal in an instance, because legality is cheched in the template.
41591 (Analyze_Pragma, case Warnings): In an inlined body, the pragma may be
41592 appplied to an unchecked conversion of a formal parameter.
41595 (Output_Unreferenced_Messages): Suppress "not read" warnings on imported
41598 2003-12-03 Olivier Hainque <hainque@act-europe.fr>
41600 * tb-alvms.c (unwind_regular_code, unwind_kernel_handler): New
41601 routines. The second one is new functionality to deal with backtracing
41602 through signal handlers.
41603 (unwind): Split into the two separate subroutines above.
41604 Update the documentation, and deal properly with sizeof (REG) different
41605 from sizeof (void*).
41607 2003-12-01 Nicolas Setton <setton@act-europe.fr>
41609 * a-except.adb (Raise_Current_Excep): Add a pragma Inspection_Point,
41610 so that the debugger can reliably access the value of the parameter,
41611 and therefore is able to display the exception name when an exception
41612 breakpoint is reached.
41614 2003-12-01 Thomas Quinot <quinot@act-europe.fr>
41616 * fmap.adb: Fix typo in warning message.
41618 * g-socket.ads, g-socket.adb: Make Free a visible instance of
41619 Ada.Unchecked_Deallocation (no need to wrap it in a subprogram).
41621 2003-12-01 Vincent Celier <celier@gnat.com>
41623 * mlib-prj.adb (Build_Library.Process): Do not check a withed unit if
41625 (Build_Library): Get the switches only if Default_Switches is declared
41628 2003-12-01 Ed Schonberg <schonberg@gnat.com>
41630 * exp_ch6.adb (Expand_Actuals): When applying validity checks to
41631 actuals that are indexed components, reanalyze actual to ensure that
41632 packed array references are properly expanded.
41634 * sem_ch5.adb (Diagnose_Non_Variable_Lhs): Add special case for
41635 attempted assignment to a discriminant.
41637 2003-12-01 Robert Dewar <dewar@gnat.com>
41639 * rtsfind.adb, exp_ch4.adb, s-exnint.ads, s-exnint.adb: Minor
41642 * switch-c.adb: Minor reformatting of comments
41644 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
41646 * Makefile.in: Clean ups.
41648 2003-12-01 GNAT Script <nobody@gnat.com>
41650 * Make-lang.in: Makefile automatically updated
41652 2003-12-01 Arnaud Charlet <charlet@act-europe.fr>
41654 * 5wsystem.ads: Disable zero cost exception, not ready yet.
41656 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
41658 * Make-lang.in (nmake.ads): Add dependency on ada/nmake.adb
41659 to force serialization.
41661 2003-11-26 Thomas Quinot <quinot@act-europe.fr>
41663 * g-socket.ads, g-socket.adb:
41664 Clarify documentation of function Stream. Introduce a Free procedure
41665 to release the returned Stream once it becomes unused.
41667 * 5asystem.ads: For Alpha Tru64, enable ZCX by default.
41669 2003-11-26 Arnaud Charlet <charlet@act-europe.fr>
41671 (Cond_Timed_Wait): Introduce new constant Time_Out_Max,
41672 since NT 4 cannot handle timeout values that are too large,
41673 e.g. DWORD'Last - 1.
41675 2003-11-26 Ed Schonberg <schonberg@gnat.com>
41678 (Expand_N_Slice): Recognize all cases of slices that appear as actuals
41679 in procedure calls and whose expansion must be deferred.
41681 * exp_ch6.adb (Add_Call_By_Copy_Node): Remove previous fix. Proper fix
41685 (Build_Derived_Array_Type): Create operator for unconstrained type
41686 if ancestor is unconstrained.
41688 2003-11-26 Vincent Celier <celier@gnat.com>
41690 * make.adb (Project_Object_Directory): New global variable
41691 (Change_To_Object_Directory): New procedure
41692 (Collect_Arguments_And_Compile): Call Change_To_Object_Directory instead
41693 of Change_Dir directly. Do not change working directory to object
41694 directory of main project after each compilation.
41695 (Gnatmake): Use Change_To_Object_Directory instead of Change_Dir
41697 Change to object directory of main project before binding step.
41698 (Initialize): Initialize Project_Object_Directory to No_Project
41701 (Build_Library): Take into account Builder'Default_Switches ("Ada") when
41702 binding a Stand-Alone Library.
41704 * output.adb: Update Copyright notice
41705 (Write_Char): Output buffer when full
41707 2003-11-26 Robert Dewar <dewar@gnat.com>
41709 * sem_ch13.adb: (Check_Size): Reset size if size is too small
41712 (Check_Size): Fix documentation to include bit-packed array case
41714 * sem_res.adb: Implement restriction No_Direct_Boolean_Operators
41716 * s-rident.ads: Put No_Direct_Boolean_Operators in proper order
41718 * s-rident.ads: Add new restriction No_Direct_Boolean_Operators
41720 2003-11-24 Arnaud Charlet <charlet@act-europe.fr>
41723 * utils.c (init_gigi_decls): Change name of built-in setjmp to
41724 __builtin_setjmp, since this is apparently needed by recent
41727 2003-11-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
41729 * adadecode.c: Only include ctype.h if not IN_GCC.
41730 (__gnat_decode): Use ISDIGIT from safe-ctype.h.
41732 2003-11-24 Jose Ruiz <ruiz@act-europe.fr>
41735 Use 5zintman.ads for VxWorks targets. This file avoid confusion between
41736 signals and interrupts.
41738 * 5zintman.ads: New File.
41740 * 5zintman.adb: Replace Exception_Interrupts by Exception_Signals, and
41741 add exception signals to the set of unmasked signals.
41744 Use Abort_Task_Signal instead of Abort_Task_Interrupt to avoid confusion
41745 between signals and interrupts.
41746 Add to Unblocked_Signal_Mask the set of signals that are in
41750 Adding a check to see whether the Interrupt_ID we want to unmask is in
41751 the range of Keep_Unmasked (in procedure Interrupt_Self_Process). The
41752 reason is that the index type of the Keep_Unmasked array is not always
41753 Interrupt_ID; it may be a subtype of Interrupt_ID.
41755 2003-11-24 Gary Dismukes <dismukes@gnat.com>
41758 (Remove_Side_Effects): Condition constantness of object created for a
41759 an unchecked type conversion on the constantness of the expression
41760 to ensure the correct value for 'Constrained when passing components
41761 of view-converted class-wide objects.
41763 2003-11-24 Robert Dewar <dewar@gnat.com>
41765 * par-load.adb (Load): Improve handling of misspelled and missing units
41766 Removes several cases of compilation abandoned messages
41768 * lib.adb: (Remove_Unit): New procedure
41770 * lib.ads: (Remove_Unit): New procedure
41772 * lib-load.adb: Minor reformatting
41774 2003-11-24 Vincent Celier <celier@gnat.com>
41777 (Gnatmake, Initialize): Call Usage instead of Makeusg directly
41778 (Marking_Label): Label to mark processed source files. Incremented for
41780 (Gnatmake): Increase Marking_Labet for each executable
41781 (Is_Marked): Compare against marking label
41782 (Mark): Mark with marking label
41784 2003-11-24 Jerome Guitton <guitton@act-europe.fr>
41787 Move the declaration of the TSD for System.Threads to System.Soft_Links.
41790 * Makefile.in: Added target pair for s-thread.adb for cert runtime.
41791 (rts-cert): build a single relocatable object for the run-time lib.
41794 2003-11-24 Vasiliy Fofanov <fofanov@act-europe.fr>
41797 Use gnatls rather than gcc to obtain the location of GNAT RTL for
41800 2003-11-24 Sergey Rybin <rybin@act-europe.fr>
41802 * opt.adb (Tree_Write): Gnat_Version_String is now a function, so we
41803 can not use it as before (that is, as a variable) when dumping it into
41804 the tree file. Add a local variable to store the result of this
41805 function and to be used as the string to be written into the tree.
41807 * scn.adb (Initialize_Scanner): Add comments explaining the recent
41810 * sinput.adb (Source_First, Source_Last): In case of
41811 Internal_Source_File, replace returning attributes of
41812 Internal_Source_Ptr (which is wrong) with returning attributes of
41815 2003-11-24 Ed Schonberg <schonberg@gnat.com>
41818 (New_Concatenation_Op): Proper name for New_Binary_Operator, only
41819 used for implicit concatenation operators.
41823 (Check_Elab_Call): Set No_Elaboration_Check appropriately on calls in
41824 task bodies that are in the scope of a Suppress pragma.
41825 (Check_A Call): Use the flag to prevent spurious elaboration checks.
41827 * sinfo.ads, sinfo.adb:
41828 New flag No_Elaboration_Check on function/procedure calls, to properly
41829 suppress checks on calls in task bodies that are within a local suppress
41833 (Expand_Concatenate_Other): Use the proper integer type for the
41834 expression for the upper bound, to avoid universal_integer computations
41837 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
41839 * .cvsignore: Delete.
41841 2003-11-21 Andreas Schwab <schwab@suse.de>
41843 * 55system.ads: Set ZCX_By_Default and GCC_ZCX_Support to True.
41845 2003-11-21 Vasiliy Fofanov <fofanov@act-europe.fr>
41847 * 5wsystem.ads: Enable zero cost exception.
41849 2003-11-21 Jerome Guitton <guitton@act-europe.fr>
41851 * 5ztiitho.adb: Remove an unreferenced variable.
41853 2003-11-21 Thomas Quinot <quinot@act-europe.fr>
41855 * adaint.c: For FreeBSD, use mkstemp.
41857 2003-11-21 Arnaud Charlet <charlet@act-europe.fr>
41859 * gnatlbr.adb: Now reference Gnat_Static_Version_String.
41861 2003-11-21 Robert Dewar <dewar@gnat.com>
41863 * bld.adb: Remove useless USE of gnatvsn
41865 * gnatchop.adb: Minor reformatting
41866 Clean up version handling to be more consistent
41868 * gnatxref.adb: Minor reformatting
41870 * gprcmd.adb: Minor reformatting
41871 Fix output of copyright to be more consistent with other tools
41873 2003-11-21 Vincent Celier <celier@gnat.com>
41875 * make.adb (Scan_Make_Args): Do not transmit --RTS= to gnatlink
41877 2003-11-21 Sergey Rybin <rybin@act-europe.fr>
41879 * atree.adb (Initialize): Add initializations for global variables
41880 used in New_Copy_Tree.
41882 * cstand.adb (Create_Standard): Add call to Initialize_Scanner (with
41883 Internal_Source_File as the actual).
41884 Put the set of statements creating Any_Character before the set of
41885 statements creating Any_Array to have Any_Character fully initialized
41886 when it is used in creating Any_Array.
41888 * scn.adb (Initialize_Scanner): Do not set Comes_From_Source ON and do
41889 not call Scan in case if the actual is Internal_Source_File
41890 Add 2003 to copyright note.
41892 * sinput.adb (Source_First, Source_Last, Source_Text): Add code for
41893 processing Internal_Source_File.
41895 * types.ads: Add the constant Internal_Source_File representing the
41896 source buffer for artificial source-code-like strings created within
41897 the compiler (the definition of Source_File_Index is changed).
41899 2003-11-20 Arnaud Charlet <charlet@act-europe.fr>
41901 * 35soccon.ads, 45intnam.ads, 55osinte.adb, 55osinte.ads,
41902 56system.ads: New file, FreeBSD version.
41904 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
41906 * Make-lang.in (ada.extraclean): Delete.
41908 2003-11-19 Arnaud Charlet <charlet@act-europe.fr>
41910 * gnatmem.adb: Clean up verbose output.
41912 * gprcmd.adb: Change copyright to FSF.
41914 2003-11-19 Vincent Celier <celier@gnat.com>
41916 * symbols.adb: (Initialize): New parameters Reference, Symbol_Policy
41917 and Version (ignored).
41919 * symbols.ads: (Policy): New type
41920 (Initialize): New parameter Reference, Symbol_Policy and
41922 Remove parameter Force.
41923 Minor reformatting.
41925 * snames.ads, snames.adbadb: New standard names
41926 Library_Reference_Symbol_File and Library_Symbol_Policy
41929 (Build_Library): Call Build_Dinamic_Library with the Symbol_Data of the
41933 (Build_Dynamic_Library): New parameter Symbol_Data (ignored)
41935 * mlib-tgt.ads: (Build_Dynamic_Library): New parameter Symbol_Data
41937 * prj.adb: (Project_Empty): New component Symbol_Data
41939 * prj.ads: (Policy, Symbol_Record): New types
41940 (Project_Data): New component Symbol_Data
41943 New attributes Library_Symbol_File, Library_Symbol_Policy and
41944 Library_Reference_Symbol_File.
41947 (Ada_Check): When project is a Stand-Alone library project, process
41948 attribute Library_Symbol_File, Library_Symbol_Policy and
41949 Library_Reference_Symbol_File.
41951 * 5aml-tgt.adb, 5bml-tgt.adb, 5gml-tgt.adb, 5hml-tgt.adb,
41952 5wml-tgt.adb, 5zml-tgt.adb, 5lml-tgt.adb,
41953 5sml-tgt.adb (Build_Dynamic_Library): New parameter
41954 Symbol_Data (ignored).
41956 * 5vml-tgt.adb (VMS_Options): Remove --for-linker=gsmatch=equal,1,0
41957 (Build_Dynamic_Library): New parameter Symbol_Data. New internal
41958 functions Option_File_Name and Version_String. Set new options of
41959 gnatsym related to symbol file, symbol policy and reference symbol
41963 Extensive modifications to take into account the reference symbol file,
41964 the symbol policy, the library version and to put in the symbol file the
41965 minor and major IDs.
41967 * bld.adb (Process_Declarative_Items): Put second argument of
41968 gprcmd to_absolute between single quotes, to avoid problems with
41971 * bld-io.adb: Update Copyright notice.
41972 (Flush): Remove last character of a line, if it is a back slash, to
41973 avoid make problems.
41976 Implement new scheme with reference symbol file and symbol policy.
41978 * g-os_lib.ads: (Is_Directory): Clarify comment
41980 2003-11-19 Robert Dewar <dewar@gnat.com>
41982 * atree.adb: Move New_Copy_Tree global variables to head of package
41984 * errout.adb: Minor reformatting
41986 2003-11-19 Javier Miranda <miranda@gnat.com>
41988 * sem_ch4.adb: (Diagnose_Call): Improve error message.
41989 Add reference to Ada0Y (AI-50217)
41991 * sem_ch6.adb, sem_ch8.adb, sem_type.adb,
41992 sem_util.adb: Add reference to AI-50217
41994 * sinfo.ads: (N_With_Clause): Document fields referred to AI-50217
41996 * sprint.adb: Add reference to Ada0Y (AI-50217, AI-287)
41998 * sem_aggr.adb: Complete documentation of AI-287 changes
42000 * par-ch4.adb: Document previous changes.
42002 * lib-load.adb, lib-writ.adb, einfo.ads, par-ch10.adb,
42003 sem_cat.adb, sem_ch3.adb, sem_ch10.adb, sem_ch12.adb: Add references to
42006 * exp_aggr.adb: Add references to AI-287 in previous changes
42008 2003-11-19 Ed Schonberg <schonberg@gnat.com>
42011 (Add_Call_By_Copy_Node): Do not original node of rewritten expression
42012 in the rewriting is the result of an inlined call.
42014 * exp_ch6.adb (Add_Call_By_Copy_Node): If actual for (in-)out
42015 parameter is a type conversion, use original node to construct the
42016 post-call assignment, because expression may have been rewritten, e.g.
42017 if it is a packed array.
42020 (Resolve_Attribute, case 'Constrained): Attribute is legal in an inlined
42021 body, just as it is in an instance.
42022 Categorization routines
42024 * sem_ch12.adb (Analyze_Association, Instantiate_Formal_Subprogram,
42025 Instantiate_Object): Set proper sloc reference for message on missing
42028 2003-11-19 Thomas Quinot <quinot@act-europe.fr>
42030 * Makefile.in: Add FreeBSD libgnat pairs.
42032 * usage.adb: Fix typo in usage message.
42034 2003-11-19 Jerome Guitton <guitton@act-europe.fr>
42036 * Makefile.in: On powerpc-wrs-vxworksae: Add s-thread.ad?,
42037 s-thrini.ad? and s-tiitho.adb to the full runtime, to support the
42038 pragma Thread_Body.
42039 Remove i-vthrea.ad? and s-tpae65.ad?, not needed anymore.
42041 * s-thread.adb: This file is now a dummy implementation of
42044 2003-11-19 Sergey Rybin <rybin@act-europe.fr>
42046 * rtsfind.adb (Initialize): Add initialization for RTE_Is_Available
42048 2003-11-19 Emmanuel Briot <briot@act-europe.fr>
42050 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
42051 instanciation references in the parent type description.
42053 2003-11-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
42055 * ada-tree.def: (ALLOCATE_EXPR): Class is "2", not "s".
42057 * decl.c (gnat_to_gnu_entity, case E_Floating_Point_Subtype): Set
42058 TYPE_PRECISION directly from esize.
42060 2003-11-18 Thomas Quinot <quinot@act-europe.fr>
42063 Use realpath(3) on FreeBSD. Fix typo in comment while we are at it.
42065 * init.c: Initialization routines for FreeBSD
42067 * link.c: Link info for FreeBSD
42069 * sysdep.c: Add the case of FreeBSD
42071 2003-11-17 Jerome Guitton <guitton@act-europe.fr>
42073 * 5zthrini.adb: Remove the call to Init_RTS at elaboration, as it is
42074 already called in System.Threads.
42076 * 5ztiitho.adb (Initialize_Task_Hooks): Remove the registration of the
42077 environment task, as it has been moved to System.Threads.Initialization.
42079 2003-11-17 Arnaud Charlet <charlet@act-europe.fr>
42081 * adaint.c (__gnatlib_install_locks): Only reference
42082 __gnat_install_locks on VMS, since other platforms can avoid using
42083 --enable-threads=gnat
42085 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
42087 * ada-tree.h: (TYPE_IS_PACKED_ARRAY_TYPE_P): New macro.
42089 * decl.c (gnat_to_gnu_entity, case E_Array_Subtype): Set
42090 TYPE_PACKED_ARRAY_TYPE_P.
42091 (validate_size): Do not verify size if TYPE_IS_PACKED_ARRAY_TYPE_P.
42093 Part of PR ada/12806
42094 * utils.c (float_type_for_precision): Renamed from float_type_for_size.
42095 Use GET_MODE_PRECISION instead of GET_MODE_BITSIZE.
42097 2003-11-17 Vincent Celier <celier@gnat.com>
42099 * gnatchop.adb (Error_Msg): New Boolean parameter Warning, defaulted
42101 Do not set exit status to Failure when Warning is True.
42102 (Gnatchop): Make errors "no compilation units found" and
42103 "no source files written" warnings only.
42105 * make.adb (Gnatmake): When using a project file, set
42106 Look_In_Primary_Dir to False.
42107 (Configuration_Pragmas_Switch): Check for Global_Configuration_Pragmas
42108 and Local_Configuration_Pragmas in the project where they are declared
42109 not an extending project which might have inherited them.
42111 * osint.adb (Locate_File): If Name is already an absolute path, do not
42112 look for a directory.
42114 * par-ch10.adb (P_Compilation_Unit): If source contains no token, and
42115 -gnats (Check_Syntax) is used, issue only a warning, not an error.
42117 * prj.adb (Register_Default_Naming_Scheme): Add new component Project
42118 in objects of type Variable_Value.
42120 * prj.ads: (Variable_Value): New component Project
42122 * prj-nmsc.adb (Ada_Check.Warn_If_Not_Sources): No warning if source
42123 is in a project extended by Project.
42125 * prj-proc.adb (Add_Attributes): New parameter Project. Set component
42126 Project of Variable_Values to this new parameter value.
42127 (Expression): Set component Project of Variable_Values.
42128 (Process_Declarative_Items): Call Add_Attributes with parameter Project.
42129 Set the component Project in array elements.
42131 2003-11-17 Sergey Rybin <rybin@act-europe.fr>
42133 * errout.adb: (Initialize): Add initialization for error nodes.
42135 * sem_ch12.adb (Initialize): Add missing initializations for
42136 Exchanged_Views and Hidden_Entities.
42138 2003-11-17 Ed Schonberg <schonberg@gnat.com>
42140 * sem_ch12.adb (Copy_Generic_Node): Preserve entity when copying an
42141 already instantiated tree for use in subsequent inlining.
42142 (Analyze_Associations, Instantiate_Formal_Subprogram,
42143 Instantiate_Object): improve error message for mismatch in
42146 * sem_ch6.adb (Build_Body_To_Inline): Major cleanup to handle
42147 instantiations of subprograms declared in instances.
42149 2003-11-17 Javier Miranda <miranda@gnat.com>
42151 * sem_ch4.adb (Analyze_Allocator): Previous modification must be
42152 executed only under the Extensions_Allowed flag.
42154 2003-11-17 Robert Dewar <dewar@gnat.com>
42156 * a-exexda.adb (Address_Image): Fix documentation to indicate leading
42158 (Address_Image): Fix bug of returning 0x instead of 0x0
42159 Minor reformatting (function specs).
42161 * einfo.ads: Minor fix for documentation of Is_Bit_Packed_Array
42162 (missed case of 33-63)
42164 * freeze.adb, sem_ch13.adb: Properly check size of packed bit array
42166 * s-thread.adb: Add comments for pragma Restriction
42168 * exp_aggr.adb, g-debuti.adb, par-ch4.adb, sem_aggr.adb,
42169 sem_ch6.adb, sprint.adb, xref_lib.adb: Minor reformatting
42171 2003-11-17 Ed Falis <falis@gnat.com>
42173 * s-thread.adb: Added No_Tasking restriction for this implementation.
42175 2003-11-17 Emmanuel Briot <briot@act-europe.fr>
42177 * xref_lib.adb (Parse_Identifier_Info): Add handling of generic
42178 instanciation references in the parent type description.
42180 2003-11-17 GNAT Script <nobody@gnat.com>
42182 * Make-lang.in: Makefile automatically updated
42184 2003-11-16 Jason Merrill <jason@redhat.com>
42186 * Make-lang.in (ada.tags): Create TAGS.sub files in each directory
42187 and TAGS files that include them for each front end.
42189 2003-11-14 Andreas Jaeger <aj@suse.de>
42191 * lang.opt: Change -Wno-long-long to -Wlong-long since the latter
42192 is the canonical version.
42193 * misc.c (gnat_handle_option): Likewise.
42195 * Makefile.in (LIBGNAT_TARGET_PAIRS): Add rules for x86_64-linux.
42197 * 5nsystem.ads: New file for x86_64-linux-gnu.
42199 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
42201 * nmake.ads, nmake.adb, sinfo.h, treeprs.ads: Regenerated.
42203 * comperr.adb: Fix logic in previous change.
42205 2003-11-13 Vincent Celier <celier@gnat.com>
42207 * 5bml-tgt.adb (Build_Dynamic_Library): Use
42208 Osint.Include_Dir_Default_Prefix instead of
42209 Sdefault.Include_Dir_Default_Name.
42211 * gnatlbr.adb: Update Copyright notice
42212 (Gnatlbr): : Use Osint.Include_Dir_Default_Prefix instead of
42213 Sdefault.Include_Dir_Default_Name and Osint.Object_Dir_Default_Prefix
42214 instead of Sdefault.Object_Dir_Default_Name
42217 (Process_Binder_File): Never suppress the option following -Xlinker
42220 (Gcc): Use Osint.Object_Dir_Default_Prefix instead of
42221 Sdefault.Object_Dir_Default_Name.
42223 * osint.ads, osint.adb:
42224 (Include_Dir_Default_Prefix, Object_Dir_Default_Prefix): New functions
42225 Minor reformatting.
42227 * vms_conv.ads: Minor reformating
42228 Remove GNAT STANDARD and GNAT PSTA
42231 Allow GNAT MAKE to have several files on the command line.
42232 (Init_Object_Dirs): Use Osint.Object_Dir_Default_Prefix instead of
42233 Sdefault.Object_Dir_Default_Name.
42235 Remove data for GNAT STANDARD
42238 Add new compiler qualifier /PRINT_STANDARD (-gnatS)
42239 Remove data for GNAT STANDARD
42240 Remove options and documentation for -gnatwb/-gnatwB: these warning
42241 options no longer exist.
42243 2003-11-13 Ed Falis <falis@gnat.com>
42245 * 5zthrini.adb: (Init_RTS): Made visible
42248 (Register): Removed unnecessary call to taskVarGet that checked whether
42249 an ATSD was already set as a task var for the argument thread.
42252 Updated comment to reflect that this is a VxWorks version
42253 Added context clause for System.Threads.Initialization
42254 Added call to System.Threads.Initialization.Init_RTS
42256 2003-11-13 Jerome Guitton <guitton@act-europe.fr>
42259 (Init_RTS): New procedure, for the initialization of the run-time lib.
42262 Remove dependancy on System.Init, so that this file can be used in the
42263 AE653 sequential run-time lib.
42265 2003-11-13 Robert Dewar <dewar@gnat.com>
42267 * bindgen.adb: Minor reformatting
42269 2003-11-13 Ed Schonberg <schonberg@gnat.com>
42272 (Apply_Discriminant_Check): Do no apply check if target type is derived
42273 from source type with no applicable constraint.
42276 (Ensure_System_Dependency): Do not apply the style checks that may have
42277 been specified for the main unit.
42280 (Find_Selected_Component): Further improvement in error message, with
42284 (Resolve): Handle properly the case of an illegal overloaded protected
42287 2003-11-13 Javier Miranda <miranda@gnat.com>
42290 (Has_Default_Init_Comps): New function to check the presence of
42291 default initialization in an aggregate.
42292 (Build_Record_Aggr_Code): Recursively expand the ancestor in case of
42293 extension aggregate of a limited record. In addition, a new formal
42294 was added to do not initialize the record controller (if any) during
42295 this recursive expansion of ancestors.
42296 (Init_Controller): Add support for limited record components.
42297 (Expand_Record_Aggregate): In case of default initialized components
42298 convert the aggregate into a set of assignments.
42300 * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Update the comment
42301 describing the new syntax.
42302 Nothing else needed to be done because this subprogram delegates part of
42303 its work to P_Precord_Or_Array_Component_Association.
42304 (P_Record_Or_Array_Component_Association): Give support to the new
42305 syntax for default initialization of components.
42308 (Resolve_Aggregate): Relax the strictness of the frontend in case of
42309 limited aggregates.
42310 (Resolve_Record_Aggregate): Give support to default initialized
42312 (Get_Value): In case of default initialized components, duplicate
42313 the corresponding default expression (from the record type
42314 declaration). In case of default initialization in the *others*
42315 choice, do not check that all components have the same type.
42316 (Resolve_Extension_Aggregate): Give support to limited extension
42320 (Check_Initialization): Relax the strictness of the front-end in case
42321 of aggregate and extension aggregates. This test is now done in
42322 Get_Value in a per-component manner.
42324 * sem_ch4.adb (Analyze_Allocator): Don't post an error if the
42325 expression corresponds to a limited aggregate. This test is now done
42328 * sinfo.ads, sinfo.adb (N_Component_Association): Addition of
42331 * sprint.adb (Sprint_Node_Actual): Modified to print an mbox if
42332 present in an N_Component_Association node
42334 2003-11-13 Thomas Quinot <quinot@act-europe.fr>
42336 * sem_ch9.adb (Analyze_Accept_Statement): A procedure hides a
42337 type-conformant entry only if they are homographs.
42339 2003-11-13 GNAT Script <nobody@gnat.com>
42341 * Make-lang.in: Makefile automatically updated
42343 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
42345 * adadecode.c: Use <> form of include for ctype.h.
42346 * sysdep.c [IN_RTS]: Use <> form of include for time.h.
42348 2003-11-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
42350 * 5gsystem.ads (Functions_Return_By_DSP): Set to False.
42351 Works around PR middle-end/6552.
42353 2003-11-10 Ed Falis <falis@gnat.com>
42355 * 5ytiitho.adb: (procStartHookAdd): Definition and call deleted
42357 * 5zinit.adb: (Install_Handler): Moved back to spec
42358 (Install_Signal_Handlers): Deleted
42360 * 5zthrini.adb: Added context clause for System.Storage_Elements
42361 (Register): Only handles creation of taskVar; initialization moved to
42363 (Reset_TSD): Deleted; replaced by Thread_Body_Enter
42364 Added declaration of environment task secondary stack and
42367 * s-thread.adb: Implement bodies for thread body processing
42370 Added comment identifying supported targets for pragma Thread_Body.
42372 2003-11-10 Pascal Obry <obry@gnat.com>
42374 * adaint.c (_gnat_stat) [WIN32]: Check if name is not bigger than
42378 (Open): Properly check for string length before copying into the buffer.
42379 Raises Name_Error if buffer is too small. Note that this was a potential
42382 2003-11-10 Romain Berrendonner <berrendo@act-europe.fr>
42384 * bindgen.adb, comperr.adb: Code clean ups.
42385 * gnatvsn.ads, gnatvsn.adb (Get_Gnat_Version_Type): New function.
42387 2003-11-10 Sergey Rybin <rybin@act-europe.fr>
42389 * gnat1drv.adb: Add call to Sem_Elim.Initialize.
42391 2003-11-10 Vincent Celier <celier@gnat.com>
42394 (Gprcmd): Add new command "prefix" to get the prefix of the GNAT
42397 * make.adb (Scan_Make_Arg): Transmit -nostdlib to the compiler
42399 * prj.adb: (Project_Empty): Add new boolean component Virtual
42401 * prj.ads: (Virtual_Prefix): New constant string
42402 (Project_Data): New boolean component Virtual
42404 * prj-nmsc.adb (Language_Independent_Check): Adjust error message when
42405 a library project is extended by a virtual extending project.
42408 Modifications throughout to implement extending-all project, including:
42409 (Virtual_Hash, Processed_Hash): New hash tables
42410 (Create_Virtual_Extending_Project): New procedure
42411 (Look_For_Virtual_Projects_For): New procedure
42414 (Process): After checking the projects, if main project is an
42415 extending-all project, set the object directory of all virtual extending
42416 project to the object directory of the main project.
42417 Adjust error message when a virtual extending project has the same
42418 object directory as an project being extended.
42419 (Recursive_Process): If name starts with the virtual prefix, set Virtual
42420 to True in the project data.
42423 (Default_Project_Node): Add new boolean component Extending_All
42424 (Is_Extending_All): New function
42425 (Set_Is_Extending_All): New procedure
42427 * prj-tree.ads: (Is_Extending_All): New function
42428 (Set_Is_Extending_All): New procedure
42429 (Project_Node_Record): New boolean component Extending_All
42431 * switch-c.adb: (Scan_Front_End_Switches): Process -nostdlib
42434 Add qualifier /NOSTD_LIBRARIES (-nostdlib) for the compiler
42436 * bld.adb (Recursive_Process): If MAKE_ROOT is not defined, call
42437 "gprcmd prefix" to define it.
42439 2003-11-10 Thomas Quinot <quinot@act-europe.fr>
42441 * einfo.ads: Fix a typo and remove an extraneous word in comments.
42444 (Create_Dummy_Package_Unit): Set the scope of the entity for the
42445 created dummy package to Standard_Standard, not to itself, to
42446 defend other parts of the front-end against encoutering a cycle in
42450 (Analyze_With_Clause): When setting the entities for the successive
42451 N_Expanded_Names that constitute the name of a child unit, do not
42452 attempt to go further than Standard_Standard in the chain of scopes.
42453 This case arises from the placeholder units created by
42454 Create_Dummy_Package_Unit in the case of a with_clause for a
42455 nonexistent child unit.
42457 2003-11-10 Ed Schonberg <schonberg@gnat.com>
42460 (Expand_Thread_Body): Place subprogram on scope stack, so that new
42461 declarations are given the proper scope.
42464 (Check_Expr_Constants): Reject an expression that contains a constant
42465 created during expansion, and that appears after the object to which
42466 the address clause applies.
42468 * sem_ch5.adb (Check_Controlled_Array_Attribute): Subsidiary of
42469 Analyze_Iteration_Scheme, to rewrite a loop parameter specification
42470 that uses 'Range of a function call with controlled components, so
42471 that the function result can be finalized before starting the loop.
42474 (Find_Selected_Component): Improve error message when prefix is
42475 an implicit dereference of an incomplete type.
42477 2003-11-10 Robert Dewar <dewar@gnat.com>
42479 * opt.ads: New Print_Standard flag for -gnatS switch
42481 * sem_ch13.adb: Remove some additional checks for unaligned arrays
42483 * cstand.adb (Create_Standard): Print out package standard if -gnatS
42486 * debug.adb: Update doc for -gnatds to discuss relationship with new
42489 * sinfo.adb: Add new field Entity_Or_Associated_Node
42491 * sinfo.ads: Add new field Entity_Or_Associated_Node
42492 Update documentation for Associated_Node and Entity fields to clarify
42493 relationship and usage.
42496 (Write_Id): Properly process Associated_Node field in generic template
42499 Recognize new -gnatS switch for printing package Standard
42500 This replaces gnatpsta
42503 Add line for new -gnatS switch for printing package Standard
42504 This replaces gnatpsta
42506 2003-11-10 Andreas Jaeger <aj@suse.de>
42508 * 7sosprim.adb: tv_usec of struct_timeval and time_t are long
42511 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
42513 * misc.c, lang.opt: Add handling of -nostdlib, now recognized/needed
42516 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
42518 * Makefile.in, Make-lang.in: Remove build of gnat_wrapper and gnatpsta,
42521 * gnatpsta.adb, gnat_wrapper.adb: Removed, no longer needed.
42523 * sysdep.c: Add handling of cygwin.
42525 2003-11-10 GNAT Script <nobody@gnat.com>
42527 * Make-lang.in: Makefile automatically updated
42529 2003-11-10 Arnaud Charlet <charlet@act-europe.fr>
42532 * osint.ads, osint.adb (Relocate_Path, Executable_Suffix): New
42533 functions. Used to handle dynamic prefix relocation, via set_std_prefix.
42534 Replace GNAT_ROOT by GCC_ROOT.
42536 * Make-lang.in: Use new function Relocate_Path to generate sdefault.adb
42538 2003-11-06 Zack Weinberg <zack@codesourcery.com>
42540 * misc.c (fp_prec_to_size, fp_size_to_prec): Use GET_MODE_PRECISION
42541 and update for changed meaning of GET_MODE_BITSIZE.
42543 2003-11-04 Doug Rupp <rupp@gnat.com>
42545 * sysdep.c: Problem discovered during IA64 VMS port.
42546 [VMS] #include <unixio.h> to get proper prototypes.
42549 Issues discovered/problems fixed during IA64 VMS port.
42550 [VMS] #define _POSIX_EXIT for proper semantics.
42551 [VMS] #include <unixio.h> for proper prototypes.
42552 [VMS] (fork): #define IA64 version.
42553 (__gnat_os_exit): Remove unnecessary VMS specific code.
42555 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
42557 Part of PR ada/12806
42558 * ada-tree.h (TYPE_DIGITS_VALUE, SET_TYPE_DIGITS_VALUE): Save count as
42562 (gnat_to_gnu_entity, case E_Floating_Point_Type): Save count as tree,
42565 * targtyps.c, decl.c, misc.c,
42566 gigi.h (fp_prec_to_size, fp_size_to_prec): Temporary
42567 routines to work around change in FP sizing semantics in GCC.
42570 (build_vms_descriptor): TYPE_DIGITS_VALUE is tree, not integer.
42572 * gigi.h: (enumerate_modes): New function.
42574 * Make-lang.in: (ada/misc.o): Add real.h.
42576 * misc.c: (enumerate_modes): New function.
42578 2003-11-04 Robert Dewar <dewar@gnat.com>
42580 * 3vtrasym.adb: Minor reformatting
42581 Use terminology encoded/decoded name, rather than C++ specific notion
42582 of mangling (this is the terminology used throughout GNAT).
42584 * einfo.h: Regenerated
42586 * einfo.ads, einfo.adb: Add new flag Is_Thread_Body
42589 (Expand_N_Subprogram_Body): Handle expansion of thread body procedure
42591 * par-prag.adb: Add dummy entry for Thread_Body pragma
42594 Add entries for System.Threads entities for thread body processing
42597 (Analyze_Pragma, Access attributes): Check these are not applied to a
42598 thread body, since this is not permitted
42600 * sem_prag.adb: Add processing for Thread_Body pragma.
42604 (Resolve_Call): Check for incorrect attempt to call a thread body
42605 procedure with a direct call.
42607 * snames.ads, snames.adb: Add entry for Thread_Body pragma
42608 Add names associated with thread body expansion
42610 * snames.h: Add entry for Thread_Body pragma
42612 * s-thread.adb: Add entries for thread body processing
42613 These are dummy bodies so far
42615 * s-thread.ads: Add documentation on thread body handling.
42616 Add entries for thread body processing.
42618 2003-11-04 Javier Miranda <miranda@gnat.com>
42621 (Build_Limited_Views): Return after posting an error in case of limited
42622 with_clause on subprograms, generics, instances or generic renamings
42623 (Install_Limited_Withed_Unit): Do nothing in case of limited with_clause
42624 on subprograms, generics, instances or generic renamings
42626 2003-11-04 Arnaud Charlet <charlet@act-europe.fr>
42628 * raise.c (setup_to_install): Correct mistake in last revision; two
42629 arguments out of order.
42631 * trans.c, cuintp.c, argv.c, aux-io.c, cal.c, errno.c, exit.c,
42632 gnatbl.c, init.c, stringt.h, utils.c, utils2.c: Update copyright
42633 notice, missed in previous change.
42634 Remove trailing blanks and other style errors introduced in previous
42637 2003-11-04 Olivier Hainque <hainque@act-europe.fr>
42639 * decl.c (gnat_to_gnu_field): Adjust the conditions under which we get
42640 rid of the wrapper for a LJM type, ensuring we don't do that if the
42641 field is addressable. This avoids potential low level type view
42642 mismatches later on, for instance in a by-reference argument passing
42645 2003-11-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
42647 * decl.c (gnat_to_gnu_field): No longer check for BLKmode being
42648 aligned at byte boundary.
42650 2003-11-04 Joel Brobecker <brobecker@gnat.com>
42652 * decl.c (components_to_record): Do not delete the empty variants from
42653 the end of the union type.
42655 2003-11-04 Ed Schonberg <schonberg@gnat.com>
42657 * exp_ch4.adb (Expand_N_Op_Eq): Use base type when locating primitive
42658 operation for a derived type, an explicit declaration may use a local
42659 subtype of Boolean.
42661 2003-11-04 Vincent Celier <celier@gnat.com>
42663 * make.adb (Gnatmake): Allow main sources on the command line with a
42664 library project when it is only for compilation (no binding or
42667 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
42669 * Makefile.in: Remove many duplicate variables.
42671 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
42673 * Make-lang.in (dvi): Move targets to $(docobjdir).
42674 (gnat_ug_vms.dvi): Simplify rule and adjust target.
42675 (gnat_ug_wnt.dvi): Likewise.
42676 (gnat_ug_unx.dvi): Likewise.
42677 (gnat_ug_vxw.dvi): Likewise.
42678 (gnat_rm.dvi): Likewise.
42679 (gnat-style.dvi): Likewise.
42681 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
42683 * gigi.h: Missed commit from update for C90.
42685 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
42687 * Makefile.in (ada/b_gnat1.o): Compile with -Wno-error.
42689 2003-10-31 Andreas Schwab <schwab@suse.de>
42691 * raise.c (get_action_description_for): Fix typo in last change.
42693 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
42696 * ada/Make-lang.in: Move default definitions of X_ADA_CFLAGS,
42697 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from here to master Makefile.in.
42699 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
42701 * adadecode.c, adaint.c, argv.c, aux-io.c, cal.c, cio.c, cstreams.c,
42702 ctrl_c.c, cuintp.c, decl.c, errno.c, exit.c, expect.c, final.c,
42703 gigi.h, gmem.c, gnatbl.c, init.c, misc.c, mkdir.c, raise.c, socket.c,
42704 sysdep.c, sysdep.c, targtyps.c, tb-alvms.c, tb-alvxw.c, tracebak.c,
42705 trans.c, utils.c, utils2.c: Convert function prototypes to C90.
42707 2003-10-30 Vasiliy Fofanov <fofanov@act-europe.fr>
42710 Demangle Ada symbols returned by TBK$SYMBOLIZE. Correctly align line
42711 numbers when symbol name is too long.
42713 2003-10-30 Ed Falis <falis@gnat.com>
42715 * g-signal.ads, g-signal.adb: New files
42717 * impunit.adb: (Non_Imp_File_Names): Added "g-signal"
42719 * Makefile.rtl: Introduce GNAT.Signals
42721 2003-10-30 Robert Dewar <dewar@gnat.com>
42723 * freeze.adb: Minor reformatting
42725 * lib-writ.adb (Write_ALI): Never write ali file if -gnats is specified
42727 * par.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb, par-ch3.adb,
42728 par-ch5.adb, par-ch6.adb, par-ch9.adb, par-util.adb:
42729 New handling of Id_Check parameter to improve recognition of keywords
42730 used as identifiers.
42731 Update copyright notice to include 2003
42733 2003-10-29 Robert Dewar <dewar@gnat.com>
42735 * 3vtrasym.adb, 5vtraent.ads, sprint.adb,
42736 sem_ch10.adb: Minor reformatting
42738 * exp_ch5.adb (Expand_Assign_Array): Test for bit unaligned operands
42739 (Expand_Assign_Record): Test right hand side for bit unaligned as well
42741 2003-10-29 Vasiliy Fofanov <fofanov@act-europe.fr>
42743 * 3vtrasym.adb, 5vtraent.adb, 5vtraent.ads, tb-alvms.c:
42744 Support for TBK$SYMBOLIZE-based symbolic traceback.
42746 2003-10-29 Jose Ruiz <ruiz@act-europe.fr>
42749 Revert previous change, that did not work well when pragma No_Run_Time
42750 was used in conjunction with a run-time other than ZFP.
42752 2003-10-29 Vincent Celier <celier@gnat.com>
42755 (Gnatmake): When there are no Ada mains in attribute Main, disable the
42756 bind and link steps only is switch -z is not used.
42758 2003-10-29 Arnaud Charlet <charlet@act-europe.fr>
42760 * Makefile.generic: Remove duplicated setting of CC.
42762 * Makefile.prolog: Set CC to gcc by default, to override make's
42765 * einfo.h: Regenerated.
42767 2003-10-29 Ed Schonberg <schonberg@gnat.com>
42769 * sem_ch10.adb (Analyze_Subunit): Restore state of suppress flags for
42770 current body, after compiling subunit.
42772 * itypes.adb (Create_Itype): In ASIS_Mode, do not freeze the itype
42773 when in deleted code, because gigi needs properly ordered freeze
42774 actions to annotate types.
42776 * freeze.adb (Is_Fully_Defined): Predicate must be recursive, to
42777 prevent the premature freezing of record type that contains
42778 subcomponents with a private type that does not yet have a completion.
42780 2003-10-29 Javier Miranda <miranda@gnat.com>
42783 (Analyze_Package_Instantiation): Check that instances can not be used in
42784 limited with_clauses.
42787 (Analyze_Package_Renaming): Check that limited withed packages cannot
42788 be renamed. Improve text on error messages related to limited
42791 * einfo.adb, einfo.ads: Remove Non_Limited_Views attribute.
42793 * sprint.adb: (Sprint_Node_Actual): Print limited with_clauses.
42794 Update copyright notice.
42796 * sem_ch10.adb: (Build_Limited_Views): Complete its documentation.
42797 (Install_Limited_Context_Clauses): New subprogram that isolates all the
42798 checks required for limited context_clauses and installs the limited
42800 (Install_Limited_Withed_Unit): Complete its documentation.
42801 (Analyze_Context): Check that limited with_clauses are only allowed in
42803 (Install_Context): Call Install_Limited_Context_Clauses after the
42804 parents have been installed.
42805 (Install_Limited_Withed_Unit): Add documentation. Mark the installed
42806 package as 'From_With_Type'; this mark indicates that the limited view
42807 is installed. Used to check bad usages of limited with_clauses.
42808 (Build_Limited_Views): Do not add shadow entities to the scope's list
42809 of entities. Do not add real entities to the Non_Limited_Views chain.
42810 Improve error notification.
42811 (Remove_Context_Clauses): Remove context clauses in two phases:
42812 limited views first and regular views later (to maintain the
42814 (Remove_Limited_With_Clause): If the package is analyzed then reinstall
42815 its visible entities.
42817 2003-10-29 Thomas Quinot <quinot@act-europe.fr>
42819 * sem_type.adb (Specific_Type): Type Universal_Fixed is compatible
42820 with any type that Is_Fixed_Point_Type.
42822 * sinfo.ads: Fix documentation for Associated_Node attribute.
42824 2003-10-29 Sergey Rybin <rybin@act-europe.fr>
42826 * switch-c.adb (Scan_Front_End_Switches): ASIS_Mode is set now when
42827 both '-gnatc' and '-gnatt' are specified.
42829 * atree.adb (Initialize): Add initialization for Node_Count (set to
42832 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
42834 * decl.c (gnat_to_gnu_entity, case E_Subprogram): If no return value,
42835 do not consider as Pure.
42837 Part of implementation of function-at-a-time:
42839 * trans.c (gnat_to_gnu_code): If IS_STMT, call expand_expr_stmt.
42840 (tree_transform): Add new argument to build_component_ref.
42841 (tree_transform, case N_Assignment_Statement): Make and return an
42843 (tree_transform): If result IS_STMT, set flags and return it.
42844 (gnat_expand_stmt, set_lineno_from_sloc): New functions.
42846 * utils2.c (build_simple_component_ref, build_component_ref): Add new
42848 (build_binary_op, case EQ_EXPR): Pass additional arg to it.
42849 (build_allocator): Likewise.
42851 * utils.c (convert_to_fat_pointer, convert_to_thin_pointer, convert):
42852 Add new arg to build_component_ref.
42853 (maybe_unconstrained_array, unchecked_convert): Likewise.
42855 * ada-tree.def (EXPR_STMT): New code.
42857 * ada-tree.h (IS_STMT, TREE_SLOC, EXPR_STMT_EXPR): New macros.
42859 * decl.c (gnat_to_gnu_entity, case object): Add extra arg to
42860 build_component_ref calls.
42862 * misc.c (gnat_expand_expr): If IS_STMT, call gnat_expand_stmt.
42864 * gigi.h (gnat_expand_stmt, set_lineno_from_sloc): New functions.
42865 (build_component_ref): Add new argument, NO_FOLD_P.
42867 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
42869 * Makefile.generic: Add missing substitution on object_deps handling.
42872 * Make-lang.in (check-ada): Enable ACATS test suite.
42874 2003-10-27 Robert Dewar <dewar@gnat.com>
42877 (Freeze_Array_Type): We do not need an initialization routine for types
42878 derived from String or Wide_String. They should be treated the same
42879 as String and Wide_String themselves. This caused problems with the
42880 use of Initialize_Scalars.
42883 (Expand_Assign_Record): Do component-wise assignment of non-byte aligned
42884 composites. This allows use of component clauses that are not byte
42888 (Analyze_Pragma, case Pack): Generate warning and ignore pack if there
42889 is an attempt to pack an array of atomic objects.
42891 * make.adb, prj-env.adb, prj-env.ads: Minor reformatting
42893 2003-10-27 Pascal Obry <obry@gnat.com>
42896 (Basename): Check for drive letters in a pathname only on DOS based OS.
42898 2003-10-27 Vincent Celier <celier@gnat.com>
42901 (Gnatmake): When unable to change dir to the object dir, display the
42902 content of the parent dir of the obj dir, to try to understand why this
42905 2003-10-27 GNAT Script <nobody@gnat.com>
42907 * Make-lang.in: Makefile automatically updated
42909 2003-10-27 Ed Schonberg <schonberg@gnat.com>
42912 (Inline_Instance_Body): Indicate that the save/restore of use_clauses
42913 should not be done in Save/Restore_Scope_Stack, because it is performed
42917 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
42918 whether use clauses should be removed/restored.
42921 (Save_Scope_Stack, Restore_Scope_Stack): Add parameter to indicate
42922 whether use clauses should be removed/restored.
42924 2003-10-26 Andreas Jaeger <aj@suse.de>
42926 * Makefile.in: Remove duplicated lines.
42928 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
42930 * gnatvsn.ads (Gnat_Static_Version_String): New constant, used to
42931 minimize the differences with ACT tree.
42933 * gnatkr.adb, gnatlink.adb, gnatls.adb, gnatmake.adb,
42934 gnatprep.adb, gnatpsta.adb, gnatvsn.ads: Take advantage of
42935 Gnatvsn.Gnat_Static_Version_String to reduce differences between
42938 2003-10-24 Pascal Obry <obry@gnat.com>
42941 * adadecode.c (ostrcpy): New function.
42942 (__gnat_decode): Use ostrcpy of strcpy.
42943 (has_prefix): Set first parameter a const.
42944 (has_suffix): Set first parameter a const.
42945 Update copyright notice. Fix source name in header.
42946 Removes a trailing space.
42948 2003-10-24 Jose Ruiz <ruiz@act-europe.fr>
42951 Remove the test against being in No_Run_Time_Mode before generating a
42952 call to Register_Tag. It is redundant with the test against the
42953 availability of the function Register_Tag.
42955 2003-10-24 Vincent Celier <celier@gnat.com>
42957 * g-catiio.adb: (Month_Name): Correct spelling of February
42959 * make.adb: (Mains): New package
42960 (Initialize): Call Mains.Delete
42961 (Gnatmake): Check that each main on the command line is a source of a
42962 project file and, if there are several mains, each of them is a source
42963 of the same project file.
42964 (Gnatmake): When a foreign language is specified in attribute Languages,
42965 no main is specified on the command line and attribute Mains is not
42966 empty, only build the Ada main. If there is no Ada main, just compile
42967 the Ada sources and their closure.
42968 (Gnatmake): If a main is specified on the command line with directory
42969 information, check that the source exists and, if it does, that the path
42970 is the actual path of a source of a project.
42973 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path. When
42974 Full_Path is True, return the full path instead of the simple file name.
42975 (Project_Of): New function
42978 (File_Name_Of_Library_Unit_Body): New Boolean parameter Full_Path,
42979 defaulted to False.
42980 (Project_Of): New function
42982 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
42984 * Makefile.generic:
42985 Ensure objects of main project are always checked and rebuilt if needed.
42986 Set CC to gcc by default.
42987 Prepare new handling of link by creating a global archive (not activated
42990 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
42991 stringt.h: Update copyright notice. Remove trailing blanks.
42992 Fix source name in header.
42994 2003-10-24 Robert Dewar <dewar@gnat.com>
42996 * sem_ch12.adb: Minor reformatting
42999 Minor reformatting (including new function return style throughout)
43002 Minor reformatting (including new function return style throughout)
43004 2003-10-24 Arnaud Charlet <charlet@act-europe.fr>
43006 * adadecode.h, atree.h, elists.h, nlists.h, raise.h,
43007 stringt.h: Update copyright notice. Remove trailing blanks.
43008 Fix source name in header.
43010 2003-10-24 GNAT Script <nobody@gnat.com>
43012 * Make-lang.in: Makefile automatically updated
43014 2003-10-23 Nathanael Nerode <neroden@gcc.gnu.org>
43016 * adadecode.h, atree.h, elists.h, namet.h, nlists.h, raise.h,
43017 stringt.h: Convert to ISO C90 declarations and definitions.
43019 2003-10-23 Thomas Quinot <quinot@act-europe.fr>
43022 * exp_ch13.adb (Expand_N_Freeze_Entity): Do not consider inherited
43023 External_Tag attribute definition clauses.
43025 2003-10-23 Ed Schonberg <schonberg@gnat.com>
43028 * exp_dbug.adb (Debug_Renaming_Declaration): For the renaming of a
43029 child unit, generate a fully qualified name to avoid spurious errors
43030 when the context contains renamings of different child units with
43031 the same simple name.
43033 * exp_dbug.ads: Add documentation on name qualification for renamings
43036 2003-10-23 Robert Dewar <dewar@gnat.com>
43038 * g-regpat.ads, g-regpat.adb: Minor reformatting
43040 2003-10-23 Jose Ruiz <ruiz@act-europe.fr>
43042 * Makefile.in: Use the file 1atags.ads with the ZFP and cert run-times.
43044 2003-10-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
43046 * trans.c: (tree_transform, case N_Real_Literal): Add extra arg to
43049 * urealp.h: (Machine): Update to proper definition.
43051 2003-10-23 Arnaud Charlet <charlet@act-europe.fr>
43053 * init.c, adaint.c: Minor reformatting.
43055 2003-10-23 Danny Smith <dannysmith@users.sourceforge.net>
43057 * adaint.c (w32_epoch_offset): Define static const at file level.
43058 (win32_filetime): Replace offset with w32_epoch_offset. Use NULL
43059 rather than t_create, t_access in call to GetFileTime. Use union
43060 to convert between FILETIME and unsigned long long.
43061 (__gnat_file_time_name): Test for invalid file handle.
43062 (__gnat_set_filetime_name): Support win32 targets using
43063 w32api SetFileTime.
43065 2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
43067 * sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
43069 * ctrl_c.c (__gnat_int_handler): Remove declaration.
43071 * decl.c (creat_concat_name): Const-ify prefix.
43073 * adaint.c: Include ctype.h if __MINGW32__.
43074 (__gnat_readlink): Mark arguments as possibly unused.
43075 (__gnat_symlink): Likewise.
43076 (__gnat_is_symbolic_link): Likewise.
43077 (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match
43079 (__gnat_file_time_name): Don't declare struct stat statbuf when
43081 (__gnat_is_absolute_path): Add parenthesis around condition of
43082 'if' statement to avoid warning.
43083 (__gnat_plist_init): Specify void as parameter.
43084 (plist_enter): Likewise.
43085 (plist_leave): Likewise.
43086 (remove_handle): Make static. Initialize prev.
43088 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
43091 * Makefile.in: Disable build of gnatpsta.
43092 * cstreams.c (__gnat_full_name): Minor improvements and clean up
43093 of previous change.
43095 2003-10-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
43097 * tracebak.c (MAX): Avoid redefinition warning.
43099 * init.c [sgi] (__gnat_error_handler): Remove i, unused.
43100 Change msg to const char *.
43101 (__gnat_install_handler): Remove ss, unused.
43102 [sun && __SVR4 && !__vxworks] (__gnat_error_handler): Change msg
43104 * cstreams.c (__gnat_full_name): Declare p only when used.
43105 (__gnat_full_name) [sgi] Return buffer.
43107 2003-10-22 Arnaud Charlet <charlet@act-europe.fr>
43109 * mingw32.h: New file.
43110 * gnat_wrapper.adb: New file.
43112 2003-10-22 Jerome Roussel <roussel@act-europe.fr>
43114 * g-regpat.ads, g-regpat.adb (Match): new function, to know if a
43115 string match a pre compiled regular expression (the corresponding
43116 version of the function working on a raw regular expression)
43117 Fix typos in various comments
43118 Update copyright notice in spec
43120 2003-10-21 Gary Dismukes <dismukes@gnat.com>
43123 (Component_Needs_Simple_Initialization): Return False when the type is a
43124 packed bit array. Revise spec comments to document this case.
43127 (Expand_Pragma_Import): Set any expression on the imported object to
43128 empty to avoid initializing imported objects (in particular this
43129 covers the case of zero-initialization of bit arrays).
43130 Update copyright notice.
43132 2003-10-21 Ed Schonberg <schonberg@gnat.com>
43135 (Load_Parent_Of_Generic): If parent is compilation unit, stop search,
43136 a subunit is missing.
43137 (Instantiate_Subprogram_Body): If body of function is missing, set type
43138 of return expression explicitly in dummy body, to prevent cascaded
43139 errors when a subunit is missing.
43143 (Access_Subprogram_Declaration): Verify that return type is valid.
43147 (Check_Elab_Calls): Do not apply elaboration checks if the main unit is
43152 (Corresponding_Discriminant): If the scope of the discriminant is a
43153 private type without discriminant, use its full view.
43156 2003-10-21 Arnaud Charlet <charlet@act-europe.fr>
43158 * 3psoccon.ads, 3veacodu.adb, 3vexpect.adb, 3vsoccon.ads,
43159 3vsocthi.adb, 3vsocthi.ads, 3vtrasym.adb, 3zsoccon.ads,
43160 3zsocthi.adb, 3zsocthi.ads, 50system.ads, 51system.ads,
43161 55system.ads, 56osinte.adb, 56osinte.ads, 56taprop.adb,
43162 56taspri.ads, 56tpopsp.adb, 57system.ads, 58system.ads,
43163 59system.ads, 5aml-tgt.adb, 5bml-tgt.adb, 5csystem.ads,
43164 5dsystem.ads, 5fosinte.adb, 5gml-tgt.adb, 5hml-tgt.adb,
43165 5isystem.ads, 5lparame.adb, 5msystem.ads, 5psystem.ads,
43166 5sml-tgt.adb, 5sosprim.adb, 5stpopsp.adb, 5tsystem.ads,
43167 5usystem.ads, 5vml-tgt.adb, 5vsymbol.adb, 5vtraent.adb,
43168 5vtraent.ads, 5wml-tgt.adb, 5xparame.ads, 5xsystem.ads,
43169 5xvxwork.ads, 5yparame.ads, 5ytiitho.adb, 5zinit.adb,
43170 5zml-tgt.adb, 5zparame.ads, 5ztaspri.ads, 5ztfsetr.adb,
43171 5zthrini.adb, 5ztiitho.adb, 5ztpopsp.adb, 7stfsetr.adb,
43172 7straces.adb, 7strafor.adb, 7strafor.ads, 7stratas.adb,
43173 a-excach.adb, a-exexda.adb, a-exexpr.adb, a-exextr.adb,
43174 a-exstat.adb, a-strsup.adb, a-strsup.ads, a-stwisu.adb,
43175 a-stwisu.ads, bld.adb, bld.ads, bld-io.adb,
43176 bld-io.ads, clean.adb, clean.ads, ctrl_c.c,
43177 erroutc.adb, erroutc.ads, errutil.adb, errutil.ads,
43178 err_vars.ads, final.c, g-arrspl.adb, g-arrspl.ads,
43179 g-boubuf.adb, g-boubuf.ads, g-boumai.ads, g-bubsor.adb,
43180 g-bubsor.ads, g-comver.adb, g-comver.ads, g-ctrl_c.ads,
43181 g-dynhta.adb, g-dynhta.ads, g-eacodu.adb, g-excact.adb,
43182 g-excact.ads, g-heasor.adb, g-heasor.ads, g-memdum.adb,
43183 g-memdum.ads, gnatclean.adb, gnatsym.adb, g-pehage.adb,
43184 g-pehage.ads, g-perhas.ads, gpr2make.adb, gpr2make.ads,
43185 gprcmd.adb, gprep.adb, gprep.ads, g-semaph.adb,
43186 g-semaph.ads, g-string.adb, g-string.ads, g-strspl.ads,
43187 g-wistsp.ads, i-vthrea.adb, i-vthrea.ads, i-vxwoio.adb,
43188 i-vxwoio.ads, Makefile.generic, Makefile.prolog, Makefile.rtl,
43189 prep.adb, prep.ads, prepcomp.adb, prepcomp.ads,
43190 prj-err.adb, prj-err.ads, s-boarop.ads, s-carsi8.adb,
43191 s-carsi8.ads, s-carun8.adb, s-carun8.ads, s-casi16.adb,
43192 s-casi16.ads, s-casi32.adb, s-casi32.ads, s-casi64.adb,
43193 s-casi64.ads, s-casuti.adb, s-casuti.ads, s-caun16.adb,
43194 s-caun16.ads, s-caun32.adb, s-caun32.ads, s-caun64.adb,
43195 s-caun64.ads, scng.adb, scng.ads, s-exnint.adb,
43196 s-exnllf.adb, s-exnlli.adb, s-expint.adb, s-explli.adb,
43197 s-geveop.adb, s-geveop.ads, s-hibaen.ads, s-htable.adb,
43198 s-htable.ads, sinput-c.adb, sinput-c.ads, s-memcop.ads,
43199 socket.c, s-purexc.ads, s-scaval.adb, s-stopoo.adb,
43200 s-strcom.adb, s-strcom.ads, s-strxdr.adb, s-rident.ads,
43201 s-thread.adb, s-thread.ads, s-tpae65.adb, s-tpae65.ads,
43202 s-tporft.adb, s-traent.adb, s-traent.ads, styleg.adb,
43203 styleg.ads, styleg-c.adb, styleg-c.ads, s-veboop.adb,
43204 s-veboop.ads, s-vector.ads, symbols.adb, symbols.ads,
43205 tb-alvms.c, tb-alvxw.c, tempdir.adb, tempdir.ads,
43206 vms_conv.ads, vms_conv.adb, vms_data.ads,
43207 vxaddr2line.adb: Files added. Merge with ACT tree.
43209 * 4dintnam.ads, 4mintnam.ads, 4uintnam.ads, 52system.ads,
43210 5dosinte.ads, 5etpopse.adb, 5mosinte.ads, 5qosinte.adb,
43211 5qosinte.ads, 5qstache.adb, 5qtaprop.adb, 5qtaspri.ads,
43212 5stpopse.adb, 5uintman.adb, 5uosinte.ads, adafinal.c,
43213 g-enblsp.adb, io-aux.c, scn-nlit.adb, scn-slit.adb,
43214 s-exnflt.ads, s-exngen.adb, s-exngen.ads, s-exnlfl.ads,
43215 s-exnlin.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
43216 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-explfl.ads,
43217 s-explin.ads, s-expllf.ads, s-expsfl.ads, s-expsin.ads,
43218 s-expssi.ads, style.adb: Files removed. Merge with ACT tree.
43220 * 1ic.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
43221 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
43222 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
43223 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
43224 4cintnam.ads, 4gintnam.ads, 4hexcpol.adb, 4hintnam.ads,
43225 4lintnam.ads, 4nintnam.ads, 4ointnam.ads, 4onumaux.ads,
43226 4pintnam.ads, 4sintnam.ads, 4vcaldel.adb, 4vcalend.adb,
43227 4vintnam.ads, 4wexcpol.adb, 4wintnam.ads, 4zintnam.ads,
43228 51osinte.adb, 51osinte.ads, 52osinte.adb, 52osinte.ads,
43229 53osinte.ads, 54osinte.ads, 5aosinte.adb, 5aosinte.ads,
43230 5asystem.ads, 5ataprop.adb, 5atasinf.ads, 5ataspri.ads,
43231 5atpopsp.adb, 5avxwork.ads, 5bosinte.adb, 5bosinte.ads,
43232 5bsystem.ads, 5cosinte.ads, 5esystem.ads, 5fintman.adb,
43233 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb, 5ftasinf.ads,
43234 5ginterr.adb, 5gintman.adb, 5gmastop.adb, 5gosinte.ads,
43235 5gproinf.ads, 5gsystem.ads, 5gtaprop.adb, 5gtasinf.ads,
43236 5gtpgetc.adb, 5hosinte.adb, 5hosinte.ads, 5hsystem.ads,
43237 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
43238 5itaprop.adb, 5itaspri.ads, 5ksystem.ads, 5kvxwork.ads,
43239 5lintman.adb, 5lml-tgt.adb, 5losinte.ads, 5lsystem.ads,
43240 5mvxwork.ads, 5ninmaop.adb, 5nintman.adb, 5nosinte.ads,
43241 5ntaprop.adb, 5ntaspri.ads, 5ointerr.adb, 5omastop.adb,
43242 5oosinte.adb, 5oosinte.ads, 5oosprim.adb, 5oparame.adb,
43243 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5posinte.ads,
43244 5posprim.adb, 5pvxwork.ads, 5sintman.adb, 5sosinte.adb,
43245 5sosinte.ads, 5ssystem.ads, 5staprop.adb, 5stasinf.ads,
43246 5staspri.ads, 5svxwork.ads, 5tosinte.ads, 5vasthan.adb,
43247 5vinmaop.adb, 5vinterr.adb, 5vintman.adb, 5vintman.ads,
43248 5vmastop.adb, 5vosinte.adb, 5vosinte.ads, 5vosprim.adb,
43249 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads, 5vtpopde.adb,
43250 5vtpopde.ads, 5wgloloc.adb, 5wintman.adb, 5wmemory.adb,
43251 5wosprim.adb, 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads,
43252 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
43253 5zosinte.ads, 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb,
43254 6vcpp.adb, 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb,
43255 7sintman.adb, 7sosinte.adb, 7sosprim.adb, 7staprop.adb,
43256 7staspri.ads, 7stpopsp.adb, 7straceb.adb, 9drpc.adb,
43257 a-caldel.adb, a-caldel.ads, a-charac.ads, a-colien.ads,
43258 a-comlin.adb, adaint.c, adaint.h, ada-tree.def,
43259 a-diocst.adb, a-diocst.ads, a-direio.adb, a-except.adb,
43260 a-except.ads, a-excpol.adb, a-exctra.adb, a-exctra.ads,
43261 a-filico.adb, a-interr.adb, a-intsig.adb, a-intsig.ads,
43262 ali.adb, ali.ads, ali-util.adb, ali-util.ads,
43263 a-ngcefu.adb, a-ngcoty.adb, a-ngelfu.adb, a-nudira.adb,
43264 a-nudira.ads, a-nuflra.adb, a-nuflra.ads, a-reatim.adb,
43265 a-reatim.ads, a-retide.ads, a-sequio.adb, a-siocst.adb,
43266 a-siocst.ads, a-ssicst.adb, a-ssicst.ads, a-strbou.adb,
43267 a-strbou.ads, a-strfix.adb, a-strmap.adb, a-strsea.ads,
43268 a-strunb.adb, a-strunb.ads, a-ststio.adb, a-stunau.adb,
43269 a-stunau.ads, a-stwibo.adb, a-stwibo.ads, a-stwifi.adb,
43270 a-stwima.adb, a-stwiun.adb, a-stwiun.ads, a-tags.adb,
43271 a-tags.ads, a-tasatt.adb, a-taside.adb, a-teioed.adb,
43272 a-textio.adb, a-textio.ads, a-tienau.adb, a-tifiio.adb,
43273 a-tiflau.adb, a-tiflio.adb, a-tigeau.adb, a-tigeau.ads,
43274 a-tiinau.adb, a-timoau.adb, a-tiocst.adb, a-tiocst.ads,
43275 atree.adb, atree.ads, a-witeio.adb, a-witeio.ads,
43276 a-wtcstr.adb, a-wtcstr.ads, a-wtdeio.adb, a-wtedit.adb,
43277 a-wtenau.adb, a-wtflau.adb, a-wtinau.adb, a-wtmoau.adb,
43278 bcheck.adb, binde.adb, bindgen.adb, bindusg.adb,
43279 checks.adb, checks.ads, cio.c, comperr.adb,
43280 comperr.ads, csets.adb, cstand.adb, cstreams.c,
43281 debug_a.adb, debug_a.ads, debug.adb, decl.c,
43282 einfo.adb, einfo.ads, errout.adb, errout.ads,
43283 eval_fat.adb, eval_fat.ads, exp_aggr.adb, expander.adb,
43284 expander.ads, exp_attr.adb, exp_ch11.adb, exp_ch13.adb,
43285 exp_ch2.adb, exp_ch3.adb, exp_ch3.ads, exp_ch4.adb,
43286 exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
43287 exp_ch8.adb, exp_ch9.adb, exp_code.adb, exp_dbug.adb,
43288 exp_dbug.ads, exp_disp.adb, exp_dist.adb, expect.c,
43289 exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb,
43290 exp_prag.adb, exp_strm.adb, exp_strm.ads, exp_tss.adb,
43291 exp_tss.ads, exp_util.adb, exp_util.ads, exp_vfpt.adb,
43292 fe.h, fmap.adb, fmap.ads, fname.adb,
43293 fname.ads, fname-uf.adb, fname-uf.ads, freeze.adb,
43294 freeze.ads, frontend.adb, g-awk.adb, g-awk.ads,
43295 g-busora.adb, g-busora.ads, g-busorg.adb, g-busorg.ads,
43296 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
43297 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
43298 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
43299 g-crc32.adb, g-crc32.ads, g-debpoo.adb, g-debpoo.ads,
43300 g-debuti.adb, g-debuti.ads, g-diopit.adb, g-diopit.ads,
43301 g-dirope.adb, g-dirope.ads, g-dyntab.adb, g-dyntab.ads,
43302 g-except.ads, g-exctra.adb, g-exctra.ads, g-expect.adb,
43303 g-expect.ads, g-hesora.adb, g-hesora.ads, g-hesorg.adb,
43304 g-hesorg.ads, g-htable.adb, g-htable.ads, gigi.h,
43305 g-io.adb, g-io.ads, g-io_aux.adb, g-io_aux.ads,
43306 g-locfil.adb, g-locfil.ads, g-md5.adb, g-md5.ads,
43307 gmem.c, gnat1drv.adb, gnatbind.adb, gnatchop.adb,
43308 gnatcmd.adb, gnatfind.adb, gnatkr.adb, gnatlbr.adb,
43309 gnatlink.adb, gnatls.adb, gnatmake.adb, gnatmem.adb,
43310 gnatname.adb, gnatprep.adb, gnatprep.ads, gnatpsta.adb,
43311 gnatxref.adb, g-os_lib.adb, g-os_lib.ads, g-regexp.adb,
43312 g-regexp.ads, g-regist.adb, g-regist.ads, g-regpat.adb,
43313 g-regpat.ads, g-soccon.ads, g-socket.adb, g-socket.ads,
43314 g-socthi.adb, g-socthi.ads, g-soliop.ads, g-souinf.ads,
43315 g-speche.adb, g-speche.ads, g-spipat.adb, g-spipat.ads,
43316 g-spitbo.adb, g-spitbo.ads, g-sptabo.ads, g-sptain.ads,
43317 g-sptavs.ads, g-table.adb, g-table.ads, g-tasloc.adb,
43318 g-tasloc.ads, g-thread.adb, g-thread.ads, g-traceb.adb,
43319 g-traceb.ads, g-trasym.adb, g-trasym.ads, hostparm.ads,
43320 i-c.ads, i-cobol.adb, i-cpp.adb, i-cstrea.ads,
43321 i-cstrin.adb, i-cstrin.ads, impunit.adb, init.c,
43322 inline.adb, interfac.ads, i-pacdec.ads, itypes.adb,
43323 itypes.ads, i-vxwork.ads, lang.opt, lang-specs.h,
43324 layout.adb, lib.adb, lib.ads, lib-list.adb,
43325 lib-load.adb, lib-load.ads, lib-sort.adb, lib-util.adb,
43326 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
43327 link.c, live.adb, make.adb, make.ads,
43328 Makefile.adalib, Makefile.in, Make-lang.in, makeusg.adb,
43329 mdll.adb, mdll-fil.adb, mdll-fil.ads, mdll-utl.adb,
43330 mdll-utl.ads, memroot.adb, memroot.ads, memtrack.adb,
43331 misc.c, mkdir.c, mlib.adb, mlib.ads,
43332 mlib-fil.adb, mlib-fil.ads, mlib-prj.adb, mlib-prj.ads,
43333 mlib-tgt.adb, mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads,
43334 namet.adb, namet.ads, namet.h, nlists.ads,
43335 nlists.h, nmake.adt, opt.adb, opt.ads,
43336 osint.adb, osint.ads, osint-b.adb, osint-c.adb,
43337 par.adb, par-ch10.adb, par-ch11.adb, par-ch2.adb,
43338 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
43339 par-ch9.adb, par-endh.adb, par-labl.adb, par-load.adb,
43340 par-prag.adb, par-sync.adb, par-tchk.adb, par-util.adb,
43341 prj.adb, prj.ads, prj-attr.adb, prj-attr.ads,
43342 prj-com.adb, prj-com.ads, prj-dect.adb, prj-dect.ads,
43343 prj-env.adb, prj-env.ads, prj-ext.adb, prj-ext.ads,
43344 prj-makr.adb, prj-makr.ads, prj-nmsc.adb, prj-nmsc.ads,
43345 prj-pars.adb, prj-pars.ads, prj-part.adb, prj-part.ads,
43346 prj-pp.adb, prj-pp.ads, prj-proc.adb, prj-proc.ads,
43347 prj-strt.adb, prj-strt.ads, prj-tree.adb, prj-tree.ads,
43348 prj-util.adb, prj-util.ads, raise.c, raise.h,
43349 repinfo.adb, repinfo.h, restrict.adb, restrict.ads,
43350 rident.ads, rtsfind.adb, rtsfind.ads, s-addima.ads,
43351 s-arit64.adb, s-assert.adb, s-assert.ads, s-atacco.adb,
43352 s-atacco.ads, s-auxdec.adb, s-auxdec.ads, s-bitops.adb,
43353 scans.ads, scn.adb, scn.ads, s-crc32.adb,
43354 s-crc32.ads, s-direio.adb, sem.adb, sem.ads,
43355 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
43356 sem_case.ads, sem_cat.adb, sem_cat.ads, sem_ch10.adb,
43357 sem_ch11.adb, sem_ch12.adb, sem_ch12.ads, sem_ch13.adb,
43358 sem_ch13.ads, sem_ch3.adb, sem_ch3.ads, sem_ch4.adb,
43359 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
43360 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
43361 sem_ch9.adb, sem_disp.adb, sem_disp.ads, sem_dist.adb,
43362 sem_elab.adb, sem_eval.adb, sem_eval.ads, sem_intr.adb,
43363 sem_maps.adb, sem_mech.adb, sem_prag.adb, sem_prag.ads,
43364 sem_res.adb, sem_res.ads, sem_type.adb, sem_type.ads,
43365 sem_util.adb, sem_util.ads, sem_warn.adb, s-errrep.adb,
43366 s-errrep.ads, s-exctab.adb, s-exctab.ads, s-exnint.ads,
43367 s-exnllf.ads, s-exnlli.ads, s-expint.ads, s-explli.ads,
43368 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
43369 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-fileio.adb,
43370 s-fileio.ads, s-finimp.adb, s-finimp.ads, s-finroo.adb,
43371 s-finroo.ads, sfn_scan.adb, s-gloloc.adb, s-gloloc.ads,
43372 s-imgdec.adb, s-imgenu.adb, s-imgrea.adb, s-imgwch.adb,
43373 sinfo.adb, sinfo.ads, s-inmaop.ads, sinput.adb,
43374 sinput.ads, sinput-d.adb, sinput-l.adb, sinput-l.ads,
43375 sinput-p.adb, sinput-p.ads, s-interr.adb, s-interr.ads,
43376 s-intman.ads, s-maccod.ads, s-mastop.adb, s-mastop.ads,
43377 s-memory.adb, s-memory.ads, snames.adb, snames.ads,
43378 snames.h, s-osprim.ads, s-parame.ads, s-parint.ads,
43379 s-pooloc.adb, s-pooloc.ads, s-poosiz.adb, sprint.adb,
43380 s-proinf.ads, s-scaval.ads, s-secsta.adb, s-secsta.ads,
43381 s-sequio.adb, s-shasto.adb, s-shasto.ads, s-soflin.ads,
43382 s-stache.adb, s-stache.ads, s-stalib.adb, s-stalib.ads,
43383 s-stoele.ads, s-stopoo.ads, s-stratt.adb, s-stratt.ads,
43384 s-strops.adb, s-strops.ads, s-taasde.adb, s-taasde.ads,
43385 s-tadeca.adb, s-tadeca.ads, s-tadert.adb, s-tadert.ads,
43386 s-taenca.adb, s-taenca.ads, s-taprob.adb, s-taprob.ads,
43387 s-taprop.ads, s-tarest.adb, s-tarest.ads, s-tasdeb.adb,
43388 s-tasdeb.ads, s-tasinf.adb, s-tasinf.ads, s-tasini.adb,
43389 s-tasini.ads, s-taskin.adb, s-taskin.ads, s-tasque.adb,
43390 s-tasque.ads, s-tasren.adb, s-tasren.ads, s-tasres.ads,
43391 s-tassta.adb, s-tassta.ads, s-tasuti.adb, s-tasuti.ads,
43392 s-tataat.adb, s-tataat.ads, s-tpinop.adb, s-tpinop.ads,
43393 s-tpoben.adb, s-tpoben.ads, s-tpobop.adb, s-tpobop.ads,
43394 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
43395 stringt.adb, stringt.ads, stringt.h, style.ads,
43396 stylesw.adb, stylesw.ads, s-unstyp.ads, s-vaflop.ads,
43397 s-valrea.adb, s-valuti.adb, s-vercon.adb, s-vmexta.adb,
43398 s-wchcnv.ads, s-wchcon.ads, s-widcha.adb, switch.adb,
43399 switch.ads, switch-b.adb, switch-c.adb, switch-m.adb,
43400 s-wwdcha.adb, s-wwdwch.adb, sysdep.c, system.ads,
43401 table.adb, table.ads, targparm.adb, targparm.ads,
43402 targtyps.c, tbuild.adb, tbuild.ads, tracebak.c,
43403 trans.c, tree_io.adb, treepr.adb, treeprs.adt,
43404 ttypes.ads, types.ads, types.h, uintp.adb,
43405 uintp.ads, uintp.h, uname.adb, urealp.adb,
43406 urealp.ads, urealp.h, usage.adb, utils2.c,
43407 utils.c, validsw.adb, validsw.ads, widechar.adb,
43408 xeinfo.adb, xnmake.adb, xref_lib.adb, xref_lib.ads,
43409 xr_tabls.adb, xr_tabls.ads, xtreeprs.adb, xsnames.adb,
43410 einfo.h, sinfo.h, treeprs.ads, nmake.ads, nmake.adb,
43411 gnatvsn.ads: Merge with ACT tree.
43413 * gnatvsn.adb: Rewritten in a simpler and more efficient way.
43415 2003-10-20 Mark Mitchell <mark@codesourcery.com>
43417 * Make-lang.in (gnat_ug_unx.info): Add dependency on stmp-docobjdir.
43418 (gnat_ug_vmx.info): Likewise.
43419 (gnat_ug_vxw.info): Likewise.
43420 (gnat_ug_wnt.info): Likewise.
43421 (gnat_rm.info): Likewise.
43422 (gnat-style.info): Likewise.
43424 * Make-lang.in (ada.install-info): Remove target.
43425 (info): New target.
43426 (install-info): Likewise.
43427 (gnat_ug_unx.info): Simplify rule.
43428 (gnat_ug_vmx.info): Likewise.
43429 (gnat_ug_vxw.info): Likewise.
43430 (gnat_ug_wnt.info): Likewise.
43431 (gnat_rm.info): Likewise.
43432 (gnat-style.info): Likewise.
43434 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
43436 * Make-lang.in: Replace uses of $(target_alias) with
43437 $(target_noncanonical).
43438 * ada/Makefile.in: Remove unused mention of $(target_alias).
43440 2003-10-06 Mark Mitchell <mark@codesourcery.com>
43442 * Make-lang.in (ada.info): Replace with ...
43444 (ada.dvi): Replace with ...
43447 2003-09-29 Zack Weinberg <zack@codesourcery.com>
43449 * trans.c (gigi): Use REAL_ARITHMETIC, not REAL_VALUE_ATOF, to
43450 initialize dconstp5 and dconstmp5.
43452 2003-09-28 Richard Henderson <rth@redhat.com>
43454 * trans.c (tree_transform): Update call to expand_asm_operands.
43456 2003-09-21 Richard Henderson <rth@redhat.com>
43458 * trans.c, utils.c: Revert.
43460 2003-09-21 Richard Henderson <rth@redhat.com>
43462 * trans.c, utils.c: Update for DECL_SOURCE_LOCATION rename and
43465 2003-09-04 Michael Matz <matz@suse.de>
43467 * misc.c: Include "target.h".
43468 * Make-lang.in (misc.o): Add dependency on target.h.
43470 2003-09-03 DJ Delorie <dj@redhat.com>
43472 * misc.c (default_pass_by_ref): Convert to calls.return_in_memory
43475 2003-08-30 Zack Weinberg <zack@codesourcery.com>
43477 * Makefile.in: Update substitutions to match changes to
43478 configure. Use include directives instead of @-insertions
43479 to read in host and target fragments. Add a rule to
43480 regenerate ada/Makefile.
43482 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
43484 * lang-options.h: Remove.
43485 * lang.opt: Add help text.
43487 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
43489 * trans.c (build_unit_elab, set_lineno): Adjust emit_line_note
43492 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
43494 * misc.c (gnat_handle_option): Don't handle filenames.
43496 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
43498 * Make-lang.in: Replace PWD with PWD_COMMAND.
43499 * Makefile.adalib: Likewise.
43500 * Makefile.in: Likewise.
43502 2003-07-04 Matt Kraai <kraai@alumni.cmu.edu>
43504 * misc.c (gnat_argv): Revert last change.
43505 (gnat_handle_option, gnat_init_options): Copy arguments.
43507 2003-07-03 Neil Booth <neil@daikokuya.co.uk>
43509 * misc.c (gnat_argv): Make const.
43511 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
43513 * misc.c (save_argc, save_argv): Keep non-static!
43515 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
43517 * misc.c (save_argc, save_argv): Make static.
43518 (gnat_init_options): New prototype.
43519 (gnat_init_options): Update.
43521 2003-07-01 Matt Kraai <kraai@alumni.cmu.edu>
43523 * gnat_ug.texi: Remove unlikely characters from @vars.
43524 * gnat_ug_vms.texi: Regenerate.
43526 2003-06-27 Nathan Sidwell <nathan@codesourcery.com>
43528 * misc.c (record_code_position): Adjust emit_note call.
43530 2003-06-26 Neil Booth <neil@daikokuya.co.uk>
43532 * misc.c (gnat_handle_option): Don't check for missing arguments.
43534 2003-06-20 Nathan Sidwell <nathan@codesourcery.com>
43536 * utils.c (end_subprog_body): Adjust expand_function_end call.
43538 2003-06-16 Matt Kraai <kraai@alumni.cmu.edu>
43540 * bindgen.adb (Gen_Main_Ada, Gen_Main_C): Do not test
43543 2003-06-15 Neil Booth <neil@daikokuya.co.uk>
43545 * lang.opt: Declare Ada.
43546 * misc.c (gnat_init_options): Update.
43548 2003-06-14 Nathan Sidwell <nathan@codesourcery.com>
43550 * utils.c (begin_subprog_body): Adjust init_function_start call.
43552 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
43554 * Make-lang.in: Update to use options.c and options.h.
43555 * misc.c: Include options.h not aoptions.h.
43556 (gnat_handle_option): Abort on unrecognized switch.
43557 (gnat_init_options): Request Ada switches.
43559 2003-06-14 Neil Booth <neil@daikokuya.co.uk>
43561 * lang.opt: Add -Wall.
43562 * misc.c (gnat_handle_option): Handle it.
43564 2003-06-12 Neil Booth <neil@daikokuya.co.uk>
43566 * misc.c (gnat_handle_option): Fix warnings.
43568 2003-06-11 Matt Kraai <kraai@alumni.cmu.edu>
43570 * Make-lang.in (gnatbind): Remove $(LIBIBERTY).
43572 2003-06-11 Neil Booth <neil@daikokuya.co.uk>
43574 * Make-lang.in: Update to handle command-line options.
43575 * lang.opt: New file.
43576 * misc.c: Include aoptions.h.
43577 (cl_options_count, cl_options): Remove.
43578 (gnat_handle_option): New.
43579 (gnat_decode_option): Remove.
43580 (LANG_HOOKS_DECODE_OPTION): Remove.
43581 (LANG_HOOKS_HANDLE_OPTION): Override.
43583 2003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
43585 * init.c, misc.c, trans.c, utils.c: Remove dead code.
43587 2003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
43589 * Makefile.in: Replace "host_canonical" with "host" for autoconf
43592 2003-06-08 Neil Booth <neil@daikokuya.co.uk>
43594 * Make-lang.in: Update.
43595 * misc.c: Include opts.h. Define cl_options_count and cl_options.
43597 2003-06-07 Neil Booth <neil@daikokuya.co.uk>
43599 * misc.c (gnat_init_options): Update.
43601 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
43603 * Make-lang.in (ada/b_gnatb.o-warn): Remove.
43604 * bindgen.adb (Gen_Main_C): Mark ensure_reference with
43605 __attribute__ ((__unused__)).
43607 2003-06-05 Jan Hubicka <jh@suse.cz>
43609 * Make-lang.in: Add support for stageprofile and stagefeedback
43611 2003-06-05 Matt Kraai <kraai@alumni.cmu.edu>
43613 * bindgen.adb (Gen_Adafinal_C, Gen_Adainit_C, Gen_Elab_Defs_C)
43614 (Gen_Main_C, Gen_Output_File_C): Generate ISO C.
43616 2003-06-04 Matt Kraai <kraai@alumni.cmu.edu>
43618 * gnat_ug.texi (The GNAT Run-Time Library Builder gnatlbr):
43619 Remove non-VMS directive.
43620 (Switches for gnatlbr, Optimization Levels): Remove non-VMS
43622 (Examples of gnatls Usage): Remove VMS alternative.
43624 2003-06-04 Olivier Hainque <hainque@act-europe.fr>
43627 * 5hsystem.ads: Remove pragma Linker_Option for pthreads library,
43628 and turn ZCX_By_Default back to False since the underlying support
43629 is not quite there yet.
43631 2003-06-01 Andreas Jaeger <aj@suse.de>
43633 * utils.c (finish_record_type): Remove usages of ROUND_TYPE_SIZE
43634 and ROUND_TYPE_SIZE_UNIT.
43636 2003-05-22 Geert Bosch <bosch@gnat.com>
43638 * gnat_rm.texi : Remove reference to Ada Core Technologies.
43640 2003-05-03 Nathan Sidwell <nathan@codesourcery.com>
43642 * trans.c (tree_transform): Use location_t and input_location
43644 (build_unit_elab): Likewise.
43645 * utils.c (create_label_decl): Likewise.
43647 2003-05-01 Nathan Sidwell <nathan@codesourcery.com>
43649 * trans.c (tree_transform, build_unit_elab,
43650 set_lineno): Rename lineno to input_line.
43651 * utils.c (pushdecl, create_label_decl, begin_subprog_body,
43652 end_subprog_body): Likewise.
43653 * utils2.c (build_call_raise): Likewise.
43655 2003-05-01 Laurent Guerby <guerby@acm.org>
43658 * 5iosinte.ads: Increase pthread_cond_t size to match recent
43659 LinuxThread and NPTL version, merge from ACT.
43661 2003-04-28 Zack Weinberg <zack@codesourcery.com>
43663 * utils.c (convert): No need to clear TREE_CST_RTL.
43665 2003-04-23 Geert Bosch <bosch@gnat.com>
43667 * 1aexcept.adb, 1aexcept.ads, 1ic.ads, 1ssecsta.adb,
43668 1ssecsta.ads, 31soccon.ads, 31soliop.ads, 3asoccon.ads,
43669 3bsoccon.ads, 3gsoccon.ads, 3hsoccon.ads, 3ssoccon.ads,
43670 3ssoliop.ads, 3wsoccon.ads, 3wsocthi.adb, 3wsocthi.ads,
43671 3wsoliop.ads, 41intnam.ads, 42intnam.ads, 4aintnam.ads,
43672 4cintnam.ads, 4dintnam.ads, 4gintnam.ads, 4hexcpol.adb,
43673 4hintnam.ads, 4lintnam.ads, 4mintnam.ads, 4nintnam.ads,
43674 4ointnam.ads, 4onumaux.ads, 4pintnam.ads, 4rintnam.ads,
43675 4sintnam.ads, 4uintnam.ads, 4vcaldel.adb, 4vcalend.adb,
43676 4vcalend.ads, 4vintnam.ads, 4wcalend.adb, 4wexcpol.adb,
43677 4wintnam.ads, 4zintnam.ads, 4znumaux.ads, 4zsytaco.adb,
43678 4zsytaco.ads, 51osinte.adb, 51osinte.ads, 52osinte.adb,
43679 52osinte.ads, 52system.ads, 53osinte.ads, 54osinte.ads,
43680 5amastop.adb, 5aosinte.adb, 5aosinte.ads, 5asystem.ads,
43681 5ataprop.adb, 5atasinf.ads, 5ataspri.ads, 5atpopsp.adb,
43682 5avxwork.ads, 5bosinte.adb, 5bosinte.ads, 5bsystem.ads,
43683 5cosinte.ads, 5dosinte.ads, 5esystem.ads, 5etpopse.adb,
43684 5fintman.adb, 5fosinte.ads, 5fsystem.ads, 5ftaprop.adb,
43685 5ftasinf.ads, 5ginterr.adb, 5gintman.adb, 5gmastop.adb,
43686 5gosinte.ads, 5gproinf.adb, 5gproinf.ads, 5gsystem.ads,
43687 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads, 5gtpgetc.adb,
43688 5hosinte.adb, 5hosinte.ads, 5hparame.ads, 5hsystem.ads,
43689 5htaprop.adb, 5htaspri.ads, 5htraceb.adb, 5iosinte.adb,
43690 5iosinte.ads, 5itaprop.adb, 5itaspri.ads, 5ksystem.ads,
43691 5kvxwork.ads, 5lintman.adb, 5lml-tgt.adb, 5losinte.ads,
43692 5lsystem.ads, 5mosinte.ads, 5mvxwork.ads, 5ninmaop.adb,
43693 5nintman.adb, 5nosinte.ads, 5ntaprop.adb, 5ntaspri.ads,
43694 5ointerr.adb, 5omastop.adb, 5oosinte.adb, 5oosinte.ads,
43695 5oosprim.adb, 5oparame.adb, 5osystem.ads, 5otaprop.adb,
43696 5otaspri.ads, 5posinte.ads, 5posprim.adb, 5pvxwork.ads,
43697 5qosinte.adb, 5qosinte.ads, 5qstache.adb, 5qtaprop.adb,
43698 5qtaspri.ads, 5rosinte.adb, 5rosinte.ads, 5rparame.adb,
43699 5sintman.adb, 5sosinte.adb, 5sosinte.ads, 5sparame.adb,
43700 5ssystem.ads, 5staprop.adb, 5stasinf.adb, 5stasinf.ads,
43701 5staspri.ads, 5stpopse.adb, 5svxwork.ads, 5tosinte.ads,
43702 5uintman.adb, 5uosinte.ads, 5vasthan.adb, 5vinmaop.adb,
43703 5vinterr.adb, 5vintman.adb, 5vintman.ads, 5vmastop.adb,
43704 5vosinte.adb, 5vosinte.ads, 5vosprim.adb, 5vosprim.ads,
43705 5vparame.ads, 5vsystem.ads, 5vtaprop.adb, 5vtaspri.ads,
43706 5vtpopde.adb, 5vtpopde.ads, 5vvaflop.adb, 5wgloloc.adb,
43707 5wintman.adb, 5wmemory.adb, 5wosinte.ads, 5wosprim.adb,
43708 5wsystem.ads, 5wtaprop.adb, 5wtaspri.ads, 5ysystem.ads,
43709 5zinterr.adb, 5zintman.adb, 5zosinte.adb, 5zosinte.ads,
43710 5zosprim.adb, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb,
43711 6vcstrea.adb, 6vinterf.ads, 7sinmaop.adb, 7sintman.adb,
43712 7sosinte.adb, 7sosprim.adb, 7staprop.adb, 7staspri.ads,
43713 7stpopsp.adb, 7straceb.adb, 86numaux.adb, 86numaux.ads,
43714 9drpc.adb, a-astaco.adb, a-astaco.ads, a-caldel.adb,
43715 a-caldel.ads, a-calend.adb, a-calend.ads, a-chahan.adb,
43716 a-chahan.ads, a-charac.ads, a-chlat1.ads, a-chlat9.ads,
43717 a-colien.adb, a-colien.ads, a-colire.adb, a-colire.ads,
43718 a-comlin.adb, a-comlin.ads, a-cwila1.ads, a-cwila9.ads,
43719 a-decima.adb, a-decima.ads, a-diocst.adb, a-diocst.ads,
43720 a-direio.adb, a-direio.ads, a-dynpri.adb, a-dynpri.ads,
43721 a-einuoc.adb, a-einuoc.ads, a-except.adb, a-except.ads,
43722 a-excpol.adb, a-exctra.adb, a-exctra.ads, a-filico.adb,
43723 a-filico.ads, a-finali.adb, a-finali.ads, a-flteio.ads,
43724 a-fwteio.ads, a-inteio.ads, a-interr.adb, a-interr.ads,
43725 a-intnam.ads, a-intsig.adb, a-intsig.ads, a-ioexce.ads,
43726 a-iwteio.ads, a-lfteio.ads, a-lfwtio.ads, a-liteio.ads,
43727 a-liwtio.ads, a-llftio.ads, a-llfwti.ads, a-llitio.ads,
43728 a-lliwti.ads, a-ncelfu.ads, a-ngcefu.adb, a-ngcefu.ads,
43729 a-ngcoty.adb, a-ngcoty.ads, a-ngelfu.adb, a-ngelfu.ads,
43730 a-nlcefu.ads, a-nlcoty.ads, a-nlelfu.ads, a-nllcef.ads,
43731 a-nllcty.ads, a-nllefu.ads, a-nscefu.ads, a-nscoty.ads,
43732 a-nselfu.ads, a-nucoty.ads, a-nudira.adb, a-nudira.ads,
43733 a-nuelfu.ads, a-nuflra.adb, a-nuflra.ads, a-numaux.ads,
43734 a-numeri.ads, a-reatim.adb, a-reatim.ads, a-retide.adb,
43735 a-retide.ads, a-sequio.adb, a-sequio.ads, a-sfteio.ads,
43736 a-sfwtio.ads, a-siocst.adb, a-siocst.ads, a-siteio.ads,
43737 a-siwtio.ads, a-ssicst.adb, a-ssicst.ads, a-ssitio.ads,
43738 a-ssiwti.ads, a-stmaco.ads, a-storio.adb, a-storio.ads,
43739 a-strbou.adb, a-strbou.ads, a-stream.ads, a-strfix.adb,
43740 a-strfix.ads, a-string.ads, a-strmap.adb, a-strmap.ads,
43741 a-strsea.adb, a-strsea.ads, a-strunb.adb, a-strunb.ads,
43742 a-ststio.adb, a-ststio.ads, a-stunau.adb, a-stunau.ads,
43743 a-stwibo.adb, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
43744 a-stwima.adb, a-stwima.ads, a-stwise.adb, a-stwise.ads,
43745 a-stwiun.adb, a-stwiun.ads, a-suteio.adb, a-suteio.ads,
43746 a-swmwco.ads, a-swuwti.adb, a-swuwti.ads, a-sytaco.adb,
43747 a-sytaco.ads, a-tags.adb, a-tags.ads, a-tasatt.adb,
43748 a-tasatt.ads, a-taside.adb, a-taside.ads, a-teioed.adb,
43749 a-teioed.ads, a-textio.adb, a-textio.ads, a-ticoau.adb,
43750 a-ticoau.ads, a-ticoio.adb, a-ticoio.ads, a-tideau.adb,
43751 a-tideau.ads, a-tideio.adb, a-tideio.ads, a-tienau.adb,
43752 a-tienau.ads, a-tienio.adb, a-tienio.ads, a-tifiio.adb,
43753 a-tifiio.ads, a-tiflau.adb, a-tiflau.ads, a-tiflio.adb,
43754 a-tiflio.ads, a-tigeau.adb, a-tigeau.ads, a-tiinau.adb,
43755 a-tiinau.ads, a-tiinio.adb, a-tiinio.ads, a-timoau.adb,
43756 a-timoau.ads, a-timoio.adb, a-timoio.ads, a-tiocst.adb,
43757 a-tiocst.ads, a-titest.adb, a-titest.ads, a-unccon.ads,
43758 a-uncdea.ads, a-witeio.adb, a-witeio.ads, a-wtcoau.adb,
43759 a-wtcoau.ads, a-wtcoio.adb, a-wtcoio.ads, a-wtcstr.adb,
43760 a-wtcstr.ads, a-wtdeau.adb, a-wtdeau.ads, a-wtdeio.adb,
43761 a-wtdeio.ads, a-wtedit.adb, a-wtedit.ads, a-wtenau.adb,
43762 a-wtenau.ads, a-wtenio.adb, a-wtenio.ads, a-wtfiio.adb,
43763 a-wtfiio.ads, a-wtflau.adb, a-wtflau.ads, a-wtflio.adb,
43764 a-wtflio.ads, a-wtgeau.adb, a-wtgeau.ads, a-wtinau.adb,
43765 a-wtinau.ads, a-wtinio.adb, a-wtinio.ads, a-wtmoau.adb,
43766 a-wtmoau.ads, a-wtmoio.adb, a-wtmoio.ads, a-wttest.adb,
43767 a-wttest.ads, ada-tree.h, ada.ads, ada.h,
43768 adadecode.c, adadecode.h, ali-util.adb, ali-util.ads,
43769 ali.adb, ali.ads, alloc.ads, argv.c,
43770 atree.adb, atree.ads, atree.h, aux-io.c,
43771 back_end.adb, back_end.ads, bcheck.adb, bcheck.ads,
43772 binde.adb, binde.ads, binderr.adb, binderr.ads,
43773 bindgen.adb, bindgen.ads, bindusg.adb, bindusg.ads,
43774 butil.adb, butil.ads, cal.c, calendar.ads,
43775 casing.adb, casing.ads, ceinfo.adb, checks.adb,
43776 checks.ads, cio.c, comperr.adb, comperr.ads,
43777 config-lang.in, csets.adb, csets.ads, csinfo.adb,
43778 cstand.adb, cstand.ads, cuintp.c, debug.adb,
43779 debug.ads, debug_a.adb, debug_a.ads, dec-io.adb,
43780 dec-io.ads, dec.ads, deftarg.c, directio.ads,
43781 einfo.adb, einfo.ads, elists.adb, elists.ads,
43782 elists.h, errno.c, errout.adb, errout.ads,
43783 eval_fat.adb, eval_fat.ads, exit.c, exp_aggr.adb,
43784 exp_aggr.ads, exp_attr.adb, exp_attr.ads, exp_ch10.ads,
43785 exp_ch11.adb, exp_ch11.ads, exp_ch12.adb, exp_ch12.ads,
43786 exp_ch13.adb, exp_ch13.ads, exp_ch2.adb, exp_ch2.ads,
43787 exp_ch3.adb, exp_ch3.ads, exp_ch4.adb, exp_ch4.ads,
43788 exp_ch5.adb, exp_ch5.ads, exp_ch6.adb, exp_ch6.ads,
43789 exp_ch7.adb, exp_ch7.ads, exp_ch8.adb, exp_ch8.ads,
43790 exp_ch9.adb, exp_ch9.ads, exp_code.adb, exp_code.ads,
43791 exp_dbug.adb, exp_dbug.ads, exp_disp.adb, exp_disp.ads,
43792 exp_dist.adb, exp_dist.ads, exp_fixd.adb, exp_fixd.ads,
43793 exp_imgv.adb, exp_imgv.ads, exp_intr.adb, exp_intr.ads,
43794 exp_pakd.adb, exp_pakd.ads, exp_prag.adb, exp_prag.ads,
43795 exp_smem.adb, exp_smem.ads, exp_strm.adb, exp_strm.ads,
43796 exp_tss.adb, exp_tss.ads, exp_util.adb, exp_util.ads,
43797 exp_vfpt.adb, exp_vfpt.ads, expander.adb, expander.ads,
43798 fmap.adb, fmap.ads, fname-sf.adb, fname-sf.ads,
43799 fname-uf.adb, fname-uf.ads, fname.adb, fname.ads,
43800 freeze.adb, freeze.ads, frontend.adb, frontend.ads,
43801 g-awk.adb, g-awk.ads, g-busora.adb, g-busora.ads,
43802 g-busorg.adb, g-busorg.ads, g-calend.adb, g-calend.ads,
43803 g-casuti.adb, g-casuti.ads, g-catiio.adb, g-catiio.ads,
43804 g-cgi.adb, g-cgi.ads, g-cgicoo.adb, g-cgicoo.ads,
43805 g-cgideb.adb, g-cgideb.ads, g-comlin.adb, g-comlin.ads,
43806 g-crc32.adb, g-crc32.ads, g-curexc.ads, g-debpoo.adb,
43807 g-debpoo.ads, g-debuti.adb, g-debuti.ads, g-diopit.adb,
43808 g-diopit.ads, g-dirope.adb, g-dirope.ads, g-dyntab.adb,
43809 g-dyntab.ads, g-enblsp.adb, g-except.ads, g-exctra.adb,
43810 g-exctra.ads, g-expect.adb, g-expect.ads, g-flocon.ads,
43811 g-hesora.adb, g-hesora.ads, g-hesorg.adb, g-hesorg.ads,
43812 g-htable.adb, g-htable.ads, g-io.adb, g-io.ads,
43813 g-io_aux.adb, g-io_aux.ads, g-locfil.ads, g-md5.adb,
43814 g-md5.ads, g-moreex.adb, g-moreex.ads, g-os_lib.adb,
43815 g-os_lib.ads, g-regexp.adb, g-regexp.ads, g-regist.ads,
43816 g-regpat.adb, g-regpat.ads, g-soccon.ads, g-socket.adb,
43817 g-socket.ads, g-socthi.adb, g-socthi.ads, g-soliop.ads,
43818 g-souinf.ads, g-speche.adb, g-speche.ads, g-spipat.adb,
43819 g-spipat.ads, g-spitbo.adb, g-spitbo.ads, g-sptabo.ads,
43820 g-sptain.ads, g-sptavs.ads, g-table.adb, g-table.ads,
43821 g-tasloc.adb, g-tasloc.ads, g-thread.adb, g-thread.ads,
43822 g-traceb.adb, g-traceb.ads, g-trasym.adb, g-trasym.ads,
43823 get_targ.adb, get_targ.ads, gnat-style.texi, gnat.ads,
43824 gnat1drv.adb, gnat1drv.ads, gnatbind.adb, gnatbind.ads,
43825 gnatbl.c, gnatchop.adb, gnatcmd.adb, gnatcmd.ads,
43826 gnatdll.adb, gnatfind.adb, gnatkr.adb, gnatkr.ads,
43827 gnatlbr.adb, gnatlink.adb, gnatlink.ads, gnatls.adb,
43828 gnatls.ads, gnatmake.adb, gnatmake.ads, gnatmem.adb,
43829 gnatname.adb, gnatname.ads, gnatprep.adb, gnatprep.ads,
43830 gnatpsta.adb, gnatvsn.adb, gnatvsn.ads, gnatxref.adb,
43831 hlo.adb, hlo.ads, hostparm.ads, i-c.adb,
43832 i-c.ads, i-cexten.ads, i-cobol.adb, i-cobol.ads,
43833 i-cpoint.adb, i-cpoint.ads, i-cpp.adb, i-cpp.ads,
43834 i-cstrea.adb, i-cstrea.ads, i-cstrin.adb, i-cstrin.ads,
43835 i-fortra.adb, i-fortra.ads, i-os2err.ads, i-os2lib.adb,
43836 i-os2lib.ads, i-os2syn.ads, i-os2thr.ads, i-pacdec.adb,
43837 i-pacdec.ads, i-vxwork.ads, impunit.adb, impunit.ads,
43838 inline.adb, inline.ads, interfac.ads, ioexcept.ads,
43839 itypes.adb, itypes.ads, krunch.adb, krunch.ads,
43840 layout.adb, layout.ads, lib-list.adb, lib-load.adb,
43841 lib-load.ads, lib-sort.adb, lib-util.adb, lib-util.ads,
43842 lib-writ.adb, lib-writ.ads, lib-xref.adb, lib-xref.ads,
43843 lib.adb, lib.ads, live.adb, live.ads,
43844 machcode.ads, make.adb, make.ads, makeusg.adb,
43845 makeusg.ads, math_lib.adb, mdll-fil.adb, mdll-fil.ads,
43846 mdll-utl.adb, mdll-utl.ads, mdll.adb, mdll.ads,
43847 memroot.adb, memroot.ads, memtrack.adb, mlib-fil.adb,
43848 mlib-fil.ads, mlib-prj.adb, mlib-prj.ads, mlib-tgt.adb,
43849 mlib-tgt.ads, mlib-utl.adb, mlib-utl.ads, mlib.adb,
43850 mlib.ads, namet.adb, namet.ads, nlists.adb,
43851 nlists.ads, opt.adb, opt.ads, osint-b.adb,
43852 osint-b.ads, osint-c.adb, osint-c.ads, osint-l.adb,
43853 osint-l.ads, osint-m.adb, osint-m.ads, osint.adb,
43854 osint.ads, output.adb, output.ads, par-ch10.adb,
43855 par-ch11.adb, par-ch12.adb, par-ch13.adb, par-ch2.adb,
43856 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb,
43857 par-ch7.adb, par-ch8.adb, par-ch9.adb, par-endh.adb,
43858 par-labl.adb, par-load.adb, par-prag.adb, par-sync.adb,
43859 par-tchk.adb, par-util.adb, par.adb, par.ads,
43860 prj-attr.adb, prj-attr.ads, prj-com.adb, prj-com.ads,
43861 prj-dect.adb, prj-dect.ads, prj-env.adb, prj-env.ads,
43862 prj-ext.adb, prj-ext.ads, prj-makr.adb, prj-makr.ads,
43863 prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads,
43864 prj-part.adb, prj-part.ads, prj-pp.adb, prj-pp.ads,
43865 prj-proc.adb, prj-proc.ads, prj-strt.adb, prj-strt.ads,
43866 prj-tree.adb, prj-tree.ads, prj-util.adb, prj-util.ads,
43867 prj.adb, prj.ads, repinfo.adb, repinfo.ads,
43868 restrict.adb, restrict.ads, rident.ads, rtsfind.adb,
43869 rtsfind.ads, s-addima.adb, s-addima.ads, s-arit64.adb,
43870 s-arit64.ads, s-assert.adb, s-assert.ads, s-asthan.adb,
43871 s-asthan.ads, s-atacco.adb, s-atacco.ads, s-auxdec.adb,
43872 s-auxdec.ads, s-bitops.adb, s-bitops.ads, s-chepoo.ads,
43873 s-crc32.adb, s-crc32.ads, s-direio.adb, s-direio.ads,
43874 s-errrep.adb, s-errrep.ads, s-except.ads, s-exctab.adb,
43875 s-exctab.ads, s-exnflt.ads, s-exngen.adb, s-exngen.ads,
43876 s-exnint.ads, s-exnlfl.ads, s-exnlin.ads, s-exnllf.ads,
43877 s-exnlli.ads, s-exnsfl.ads, s-exnsin.ads, s-exnssi.ads,
43878 s-expflt.ads, s-expgen.adb, s-expgen.ads, s-expint.ads,
43879 s-explfl.ads, s-explin.ads, s-expllf.ads, s-explli.ads,
43880 s-expllu.adb, s-expllu.ads, s-expmod.adb, s-expmod.ads,
43881 s-expsfl.ads, s-expsin.ads, s-expssi.ads, s-expuns.adb,
43882 s-expuns.ads, s-fatflt.ads, s-fatgen.adb, s-fatgen.ads,
43883 s-fatlfl.ads, s-fatllf.ads, s-fatsfl.ads, s-ficobl.ads,
43884 s-fileio.adb, s-fileio.ads, s-finimp.adb, s-finimp.ads,
43885 s-finroo.adb, s-finroo.ads, s-fore.adb, s-fore.ads,
43886 s-gloloc.adb, s-gloloc.ads, s-imgbiu.adb, s-imgbiu.ads,
43887 s-imgboo.adb, s-imgboo.ads, s-imgcha.adb, s-imgcha.ads,
43888 s-imgdec.adb, s-imgdec.ads, s-imgenu.adb, s-imgenu.ads,
43889 s-imgint.adb, s-imgint.ads, s-imgllb.adb, s-imgllb.ads,
43890 s-imglld.adb, s-imglld.ads, s-imglli.adb, s-imglli.ads,
43891 s-imgllu.adb, s-imgllu.ads, s-imgllw.adb, s-imgllw.ads,
43892 s-imgrea.adb, s-imgrea.ads, s-imguns.adb, s-imguns.ads,
43893 s-imgwch.adb, s-imgwch.ads, s-imgwiu.adb, s-imgwiu.ads,
43894 s-inmaop.ads, s-interr.adb, s-interr.ads, s-intman.ads,
43895 s-io.adb, s-io.ads, s-maccod.ads, s-mantis.adb,
43896 s-mantis.ads, s-mastop.adb, s-mastop.ads, s-memory.adb,
43897 s-memory.ads, s-osprim.ads, s-pack03.adb, s-pack03.ads,
43898 s-pack05.adb, s-pack05.ads, s-pack06.adb, s-pack06.ads,
43899 s-pack07.adb, s-pack07.ads, s-pack09.adb, s-pack09.ads,
43900 s-pack10.adb, s-pack10.ads, s-pack11.adb, s-pack11.ads,
43901 s-pack12.adb, s-pack12.ads, s-pack13.adb, s-pack13.ads,
43902 s-pack14.adb, s-pack14.ads, s-pack15.adb, s-pack15.ads,
43903 s-pack17.adb, s-pack17.ads, s-pack18.adb, s-pack18.ads,
43904 s-pack19.adb, s-pack19.ads, s-pack20.adb, s-pack20.ads,
43905 s-pack21.adb, s-pack21.ads, s-pack22.adb, s-pack22.ads,
43906 s-pack23.adb, s-pack23.ads, s-pack24.adb, s-pack24.ads,
43907 s-pack25.adb, s-pack25.ads, s-pack26.adb, s-pack26.ads,
43908 s-pack27.adb, s-pack27.ads, s-pack28.adb, s-pack28.ads,
43909 s-pack29.adb, s-pack29.ads, s-pack30.adb, s-pack30.ads,
43910 s-pack31.adb, s-pack31.ads, s-pack33.adb, s-pack33.ads,
43911 s-pack34.adb, s-pack34.ads, s-pack35.adb, s-pack35.ads,
43912 s-pack36.adb, s-pack36.ads, s-pack37.adb, s-pack37.ads,
43913 s-pack38.adb, s-pack38.ads, s-pack39.adb, s-pack39.ads,
43914 s-pack40.adb, s-pack40.ads, s-pack41.adb, s-pack41.ads,
43915 s-pack42.adb, s-pack42.ads, s-pack43.adb, s-pack43.ads,
43916 s-pack44.adb, s-pack44.ads, s-pack45.adb, s-pack45.ads,
43917 s-pack46.adb, s-pack46.ads, s-pack47.adb, s-pack47.ads,
43918 s-pack48.adb, s-pack48.ads, s-pack49.adb, s-pack49.ads,
43919 s-pack50.adb, s-pack50.ads, s-pack51.adb, s-pack51.ads,
43920 s-pack52.adb, s-pack52.ads, s-pack53.adb, s-pack53.ads,
43921 s-pack54.adb, s-pack54.ads, s-pack55.adb, s-pack55.ads,
43922 s-pack56.adb, s-pack56.ads, s-pack57.adb, s-pack57.ads,
43923 s-pack58.adb, s-pack58.ads, s-pack59.adb, s-pack59.ads,
43924 s-pack60.adb, s-pack60.ads, s-pack61.adb, s-pack61.ads,
43925 s-pack62.adb, s-pack62.ads, s-pack63.adb, s-pack63.ads,
43926 s-parame.adb, s-parame.ads, s-parint.adb, s-parint.ads,
43927 s-pooglo.adb, s-pooglo.ads, s-pooloc.adb, s-pooloc.ads,
43928 s-poosiz.adb, s-poosiz.ads, s-powtab.ads, s-proinf.adb,
43929 s-proinf.ads, s-rpc.adb, s-rpc.ads, s-scaval.ads,
43930 s-secsta.adb, s-secsta.ads, s-sequio.adb, s-sequio.ads,
43931 s-shasto.adb, s-shasto.ads, s-soflin.adb, s-soflin.ads,
43932 s-sopco3.adb, s-sopco3.ads, s-sopco4.adb, s-sopco4.ads,
43933 s-sopco5.adb, s-sopco5.ads, s-stache.adb, s-stache.ads,
43934 s-stalib.adb, s-stalib.ads, s-stoele.adb, s-stoele.ads,
43935 s-stopoo.ads, s-stratt.adb, s-stratt.ads, s-strops.adb,
43936 s-strops.ads, s-taasde.adb, s-taasde.ads, s-tadeca.adb,
43937 s-tadeca.ads, s-tadert.adb, s-tadert.ads, s-taenca.adb,
43938 s-taenca.ads, s-taprob.adb, s-taprob.ads, s-taprop.ads,
43939 s-tarest.adb, s-tarest.ads, s-tasdeb.adb, s-tasdeb.ads,
43940 s-tasinf.adb, s-tasinf.ads, s-tasini.adb, s-tasini.ads,
43941 s-taskin.adb, s-taskin.ads, s-tasque.adb, s-tasque.ads,
43942 s-tasren.adb, s-tasren.ads, s-tasres.ads, s-tassta.adb,
43943 s-tassta.ads, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
43944 s-tataat.ads, s-tpinop.adb, s-tpinop.ads, s-tpoben.adb,
43945 s-tpoben.ads, s-tpobop.adb, s-tpobop.ads, s-tposen.adb,
43946 s-tposen.ads, s-traceb.adb, s-traceb.ads, s-traces.adb,
43947 s-traces.ads, s-tratas.adb, s-tratas.ads, s-unstyp.ads,
43948 s-vaflop.adb, s-vaflop.ads, s-valboo.adb, s-valboo.ads,
43949 s-valcha.adb, s-valcha.ads, s-valdec.adb, s-valdec.ads,
43950 s-valenu.adb, s-valenu.ads, s-valint.adb, s-valint.ads,
43951 s-vallld.adb, s-vallld.ads, s-vallli.adb, s-vallli.ads,
43952 s-valllu.adb, s-valllu.ads, s-valrea.adb, s-valrea.ads,
43953 s-valuns.adb, s-valuns.ads, s-valuti.adb, s-valuti.ads,
43954 s-valwch.adb, s-valwch.ads, s-vercon.adb, s-vercon.ads,
43955 s-vmexta.adb, s-vmexta.ads, s-wchcnv.adb, s-wchcnv.ads,
43956 s-wchcon.ads, s-wchjis.adb, s-wchjis.ads, s-wchstw.adb,
43957 s-wchstw.ads, s-wchwts.adb, s-wchwts.ads, s-widboo.adb,
43958 s-widboo.ads, s-widcha.adb, s-widcha.ads, s-widenu.adb,
43959 s-widenu.ads, s-widlli.adb, s-widlli.ads, s-widllu.adb,
43960 s-widllu.ads, s-widwch.adb, s-widwch.ads, s-wwdcha.adb,
43961 s-wwdcha.ads, s-wwdenu.adb, s-wwdenu.ads, s-wwdwch.adb,
43962 s-wwdwch.ads, scans.adb, scans.ads, scn-nlit.adb,
43963 scn-slit.adb, scn.adb, scn.ads, sdefault.ads,
43964 sem.adb, sem.ads, sem_aggr.adb, sem_aggr.ads,
43965 sem_attr.adb, sem_attr.ads, sem_case.adb, sem_case.ads,
43966 sem_cat.adb, sem_cat.ads, sem_ch10.adb, sem_ch10.ads,
43967 sem_ch11.adb, sem_ch11.ads, sem_ch12.adb, sem_ch12.ads,
43968 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch2.ads,
43969 sem_ch3.adb, sem_ch3.ads, sem_ch4.adb, sem_ch4.ads,
43970 sem_ch5.adb, sem_ch5.ads, sem_ch6.adb, sem_ch6.ads,
43971 sem_ch7.adb, sem_ch7.ads, sem_ch8.adb, sem_ch8.ads,
43972 sem_ch9.adb, sem_ch9.ads, sem_disp.adb, sem_disp.ads,
43973 sem_dist.adb, sem_dist.ads, sem_elab.adb, sem_elab.ads,
43974 sem_elim.adb, sem_elim.ads, sem_eval.adb, sem_eval.ads,
43975 sem_intr.adb, sem_intr.ads, sem_maps.adb, sem_maps.ads,
43976 sem_mech.adb, sem_mech.ads, sem_prag.adb, sem_prag.ads,
43977 sem_res.adb, sem_res.ads, sem_smem.adb, sem_smem.ads,
43978 sem_type.adb, sem_type.ads, sem_util.adb, sem_util.ads,
43979 sem_vfpt.adb, sem_vfpt.ads, sem_warn.adb, sem_warn.ads,
43980 sequenio.ads, sfn_scan.adb, sfn_scan.ads, sinfo-cn.adb,
43981 sinfo-cn.ads, sinfo.adb, sinfo.ads, sinput-d.adb,
43982 sinput-d.ads, sinput-l.adb, sinput-l.ads, sinput-p.adb,
43983 sinput-p.ads, sinput.adb, sinput.ads, snames.adb,
43984 snames.ads, sprint.adb, sprint.ads, stand.adb,
43985 stand.ads, stringt.adb, stringt.ads, style.adb,
43986 style.ads, stylesw.adb, stylesw.ads, switch-b.adb,
43987 switch-b.ads, switch-c.adb, switch-c.ads, switch-m.adb,
43988 switch-m.ads, switch.adb, switch.ads, system.ads,
43989 table.adb, table.ads, targparm.adb, targparm.ads,
43990 tbuild.adb, tbuild.ads, text_io.ads, trans.c,
43991 tree_gen.adb, tree_gen.ads, tree_in.adb, tree_in.ads,
43992 tree_io.adb, tree_io.ads, treepr.adb, treepr.ads,
43993 ttypef.ads, ttypes.ads, types.adb, types.ads,
43994 uintp.adb, uintp.ads, uname.adb, uname.ads,
43995 unchconv.ads, unchdeal.ads, urealp.adb, urealp.ads,
43996 usage.adb, usage.ads, validsw.adb, validsw.ads,
43997 widechar.adb, widechar.ads, xeinfo.adb, xnmake.adb,
43998 xr_tabls.adb, xr_tabls.ads, xref_lib.adb, xref_lib.ads,
43999 xsinfo.adb, xsnames.adb, xtreeprs.adb : Merge header,
44000 formatting and other trivial changes from ACT.
44002 2003-04-12 Zack Weinberg <zack@codesourcery.com>
44004 * gigi.h, utils2.c (build_constructor):
44005 Rename gnat_build_constructor. Use build_constructor.
44006 * decl.c (gnat_to_gnu_entity)
44007 * trans.c (tree_transform, pos_to_constructor, extract_values)
44008 * ada/utils.c (build_template, convert_to_fat_pointer, convert)
44009 (unchecked_convert)
44010 * ada/utils2.c (build_binary_op, build_call_raise, build_allocator)
44011 (fill_vms_descriptor):
44014 2003-04-06 Zack Weinberg <zack@codesourcery.com>
44016 * ada-tree.def: Make fourth element for GNAT_LOOP_ID zero.
44017 * misc.c (gnat_tree_size): New function.
44018 (LANG_HOOKS_TREE_SIZE): Override.
44020 2003-04-03 Jason Merrill <jason@redhat.com>
44022 * misc.c (gnat_adjust_rli): #if 0.
44024 2003-03-31 Geert Bosch <bosch@gnat.com>
44027 * link.c : Fix misspelled "const" keyword
44029 2003-03-23 Mark Mitchell <mark@codesourcery.com>
44032 * utils2.c: Adjust calls to put_var_into_stack.
44034 2003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
44036 * Make-lang.in, Makefile.in, config-lang.in: GCC, not GNU CC.
44038 2003-03-08 Neil Booth <neil@daikokuya.co.uk>
44040 * misc.c (gnat_init): Update for new prototype.
44042 2003-03-05 Olivier Hainque <hainque@gnat.com>
44045 * raise.c (__gnat_Unwind_RaiseException): Add prototype to avoid
44046 warning, and fix return type for the IN_RTS && !SJLJ case.
44048 2003-03-04 Tom Tromey <tromey@redhat.com>
44050 * Make-lang.in (ada.tags): New target.
44052 2003-03-04 Olivier Hainque <hainque@act-europe.fr>
44055 * a-except.adb (Unwind_RaiseException): Import a GNAT specific
44056 wrapper, which name remains constant whatever underlying GCC
44059 * raise.c (__gnat_Unwind_RaiseException): New wrappers, providing
44060 the stable interface needed for a-except.
44062 2003-03-02 Andreas Jaeger <aj@suse.de>
44064 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
44065 gnat_ug_wnt.texi: Regenerate.
44067 2003-03-02 Laurent Guerby <guerby@acm.org>
44069 * Makefile.in (install-gnatlib): Match previous change there
44072 2003-02-28 Andreas Schwab <schwab@suse.de>
44074 * Make-lang.in (install-gnatlib): Change to ada directory before
44075 running make instead of using ada/Makefile directly.
44077 2003-02-18 Ben Elliston <bje@redhat.com>
44079 Part of PR ada/9406
44080 * gnat_ug.texi (Binder output file): Grammar fix.
44082 2003-02-18 Ben Elliston <bje@redhat.com>
44085 * 5qtaprop.adb (Sleep): Fix typo in comment.
44087 2003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
44089 * gnat_rm.texi, gnat_ug.texi: Update to GFDL 1.2.
44090 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
44091 gnat_ug_wnt.texi: Regenerate.
44093 2003-02-03 Christian Cornelssen <ccorn@cs.tu-berlin.de>
44095 * Make-lang.in (ada.install-info): Let $(DESTDIR)$(infodir)
44096 be created if necessary.
44097 (ada.install-common): Let $(DESTDIR)$(bindir) be created
44098 if necessary. Remove erroneous and redundant gnatchop
44099 installation commands. Test for gnatdll before attempting
44101 (ada.uninstall): Also uninstall gnatfind, gnatxref, gnatlbr,
44102 and gnatdll from all plausible locations.
44104 2003-02-01 Richard Sandiford <rsandifo@redhat.com>
44106 * utils2.c (build_unary_op): Don't check flag_volatile.
44107 * gnat_ug.texi: Remove -fvolatile from example.
44108 * gnat_ug_vxw.texi: Likewise.
44110 2003-01-29 Laurent Guerby <guerby@acm.org>
44113 * final.c: rename to adafinal.c to avoid file name conflicts with gcc file.
44114 * Makefile.in: match previous change.
44115 * Make-lang.in: match previous change.
44117 2003-01-29 Joel Sherrill <joel@OARcorp.com>
44119 * 5rosinte.ads: Add SIGXCPU.
44120 * 5rtpopsp.adb: New file.
44121 * Make-lang.in: Do not build gnatpsta and gnatpsys when cross.
44122 * Makefile.in: Recognize more RTEMS targets and add the RTEMS
44123 specific file 5rtpopsp.adb.
44124 * adaint.h: Add include of <stdio.h> when target is RTEMS. This
44125 is likely needed for all newlib targets.
44126 * init.c: Add RTEMS specific version of __gnat_initialize().
44128 2003-01-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
44130 * adaint.c, adaint.h, gmem.c, init.c: Update copyright year.
44132 2003-01-27 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
44134 * init.c (__gnat_error_handler): Make msg const.
44136 * gmem.c (convert_addresses): Move declaration ...
44137 * adaint.h: ... here.
44138 * adaint.c (convert_addresses): Adapt addrs type to match
44141 * adaint.c (__gnat_try_lock): Cast pid_t to long, adapt format.
44143 2003-01-24 Andreas Schwab <schwab@suse.de>
44145 * ada-tree.h (SET_TYPE_DIGITS_VALUE): Add intermediate cast to
44146 size_t to avoid warning.
44148 2003-01-21 Zack Weinberg <zack@codesourcery.com>
44150 * Make-lang.in: Disable -Werror for tracebak.c and b_gnatb.c.
44152 2003-01-09 Geoffrey Keating <geoffk@apple.com>
44154 * gnat_rm.texi: Remove RCS version number.
44156 * ada-tree.h (union lang_tree_node): Add chain_next option.
44158 2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
44160 * Make-lang.in (ada.install-info, ada.install-common,
44161 ada.uninstall): Prepend $(DESTDIR) to the destination
44162 directory in all (un)installation commands.
44163 * Makefile.in (install-gnatlib, install-rts): Ditto.
44165 2002-12-28 Joseph S. Myers <jsm@polyomino.org.uk>
44167 * gnat_rm.texi, gnat_ug.texi: Use @copying.
44168 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
44169 gnat_ug_wnt.texi: Regenerate.
44171 2002-12-23 Joseph S. Myers <jsm@polyomino.org.uk>
44173 * gnat_rm.texi: Include gcc-common.texi. Use GCC version number
44175 * Make-lang.in ($(srcdir)/ada/gnat_ug_unx.info,
44176 $(srcdir)/ada/gnat_ug_vms.info, $(srcdir)/ada/gnat_ug_vxw.info,
44177 $(srcdir)/ada/gnat_ug_wnt.info, $(srcdir)/ada/gnat_rm.info,
44178 ada/gnat_ug_unx.dvi, ada/gnat_ug_vms.dvi, ada/gnat_ug_vxw.dvi,
44179 ada/gnat_ug_wnt.dvi, ada/gnat_rm.dvi): Depend on
44180 $(srcdir)/doc/include/gcc-common.texi.
44182 2002-12-15 Geert Bosch <bosch@gnat.com>
44184 * sem_ch6.adb (Analyze_Subprogram_Body): Fix typo and formatting
44186 2002-12-14 Geert Bosch <bosch@gnat.com>
44189 * sem_ch6.adb (Analyze_Subprogram_Body): Recognize additional
44190 case of a body created for a Renaming_As_Body, on which
44191 conformance checks are not performed.
44193 2002-11-30 Zack Weinberg <zack@codesourcery.com>
44195 * cuintp.c, decl.c, deftarg.c, misc.c, targtyps.c, trans.c,
44196 utils.c, utils2.c: Include coretypes.h and tm.h, and system.h when
44197 not already included.
44198 * Make-lang.in: Update dependencies.
44200 2002-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
44201 * adaint.c (__gnat_tmp_name): Better, but good enough for now,
44202 solution to buffer overflow bug on GNU/Linux.
44204 2002-11-14 Nathanael Nerode <neroden@gcc.gnu.org>
44208 * bindgen.adb: Remove all references to Public_Version.
44209 * comperr.adb: Remove all references to Public_Version and
44210 GNATPRO_Version; correct bug reporting instructions.
44211 * comperr.ads: Change to match bug box.
44212 * gnatvsn.ads: Remove all references to Public version and
44215 2002-11-13 Nathanael Nerode <neroden@gcc.gnu.org>
44218 * adaint.c (__gnat_tmp_name): Remove buffer overflow bug on
44222 * config-lang.in: Remove diff_excludes.
44224 2002-11-05 Graham Stott <graham.stott@btinternet.com>
44227 * trans.c (gnu_pending_elaboration_lists): New GC root.
44228 (build_unit_elab): Use..
44230 2002-10-30 Geert Bosch <bosch@gnat.com>
44233 * misc.c : Include optabs.h
44235 * Make-lang.in (misc.o): Add dependency on optabs.h
44237 2002-10-29 Geert Bosch <bosch@gnat.com>
44240 * Make-lang.in (gnatbind): Depend on CONFIG_H
44242 2002-10-29 Geert bosch <bosch@gnat.com>
44245 * misc.c: Unrevert misc.c (1.13)
44247 2002-10-28 Nathanael Nerode <neroden@gcc.gnu.org>
44249 * a-chlat9.ads a-cwila9.ads a-dynpri.adb a-retide.adb: Update
44250 maintainership comments.
44252 2002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
44255 * 5ataprop.adb 5atpopsp.adb 5bosinte.adb 5ftaprop.adb
44256 5gtaprop.adb 5htaprop.adb 5rosinte.ads 5staprop.adb
44257 5stpopse.adb 5vtaspri.ads 5zintman.adb 5ztaprop.adb
44258 7staprop.adb: Correct statements in comments about
44259 maintainership of GNAT.
44262 * 1ssecsta.adb 1ssecsta.ads adadecode.c adadecode.h aux-io.c
44263 gnatname.adb gnatname.ads mkdir.c osint-b.adb osint-b.ads
44264 osint-c.adb osint-c.ads osint-l.adb osint-l.ads osint-m.adb
44265 osint-m.ads prj-makr.adb prj-makr.ads prj-pp.adb prj-pp.ads
44266 s-atacco.ads s-traceb.adb s-traceb.ads s-traces.adb
44267 s-traces.ads s-tratas.adb s-tratas.ads sinput-d.adb
44268 sinput-d.ads switch-b.adb switch-b.ads switch-c.adb
44269 switch-c.ads switch-m.adb switch-m.ads: Correct statements in
44270 comments about maintainership of GNAT.
44272 PR ada/6919 (forward port of patch for PR ada/5904)
44273 * 1aexcept.adb 1aexcept.ads 41intnam.ads 42intnam.ads
44274 4aintnam.ads 4cintnam.ads 4dintnam.ads 4hexcpol.adb
44275 4lintnam.ads 4mintnam.ads 4nintnam.ads 4onumaux.ads
44276 4pintnam.ads 4rintnam.ads 4sintnam.ads 4uintnam.ads
44277 4vcalend.adb 4vintnam.ads 4wcalend.adb 4wexcpol.adb
44278 4wintnam.ads 4zintnam.ads 4znumaux.ads 4zsytaco.adb
44279 4zsytaco.ads 51osinte.adb 51osinte.ads 52osinte.adb
44280 52osinte.ads 52system.ads 53osinte.ads 5aosinte.ads
44281 5asystem.ads 5atasinf.ads 5ataspri.ads 5avxwork.ads
44282 5bosinte.ads 5bsystem.ads 5cosinte.ads 5dosinte.ads
44283 5esystem.ads 5fosinte.ads 5fsystem.ads 5ftasinf.ads
44284 5ginterr.adb 5gmastop.adb 5gosinte.ads 5gproinf.adb
44285 5gproinf.ads 5gsystem.ads 5gtasinf.adb 5gtasinf.ads
44286 5gtpgetc.adb 5hparame.ads 5hsystem.ads 5htaspri.ads
44287 5iosinte.ads 5itaspri.ads 5ksystem.ads 5kvxwork.ads
44288 5losinte.ads 5lsystem.ads 5mosinte.ads 5mvxwork.ads
44289 5ninmaop.adb 5nintman.adb 5nosinte.ads 5ntaspri.ads
44290 5oosprim.adb 5oparame.adb 5osystem.ads 5posinte.ads
44291 5posprim.adb 5pvxwork.ads 5rosinte.ads 5rparame.adb
44292 5sintman.adb 5sosinte.ads 5sparame.adb 5ssystem.ads
44293 5stasinf.adb 5stasinf.ads 5staspri.ads 5svxwork.ads
44294 5tosinte.ads 5uosinte.ads 5vasthan.adb 5vinterr.adb
44295 5vintman.ads 5vosinte.ads 5vosprim.adb 5vosprim.ads
44296 5vparame.ads 5vsystem.ads 5vtaspri.ads 5vtpopde.adb
44297 5vtpopde.ads 5vvaflop.adb 5wintman.adb 5wmemory.adb
44298 5wosinte.ads 5wosprim.adb 5wsystem.ads 5wtaprop.adb
44299 5wtaspri.ads 5ysystem.ads 5zinterr.adb 5zosinte.adb
44300 5zosinte.ads 5zosprim.adb 5zsystem.ads 6vcpp.adb 6vcstrea.adb
44301 7sosprim.adb 86numaux.adb 86numaux.ads 9drpc.adb a-astaco.adb
44302 a-caldel.ads a-calend.adb a-calend.ads a-chahan.adb
44303 a-chahan.ads a-colien.adb a-colien.ads a-colire.adb
44304 a-colire.ads a-comlin.adb a-comlin.ads a-cwila1.ads
44305 a-decima.adb a-decima.ads a-diocst.adb a-diocst.ads
44306 a-direio.adb a-direio.ads a-einuoc.adb a-einuoc.ads
44307 a-except.adb a-except.ads a-excpol.adb a-exctra.adb
44308 a-exctra.ads a-filico.adb a-filico.ads a-finali.adb
44309 a-finali.ads a-interr.ads a-intsig.adb a-intsig.ads
44310 a-ngcefu.adb a-ngcoty.adb a-ngcoty.ads a-ngelfu.adb
44311 a-nudira.adb a-nudira.ads a-nuflra.adb a-nuflra.ads
44312 a-numaux.ads a-reatim.ads a-retide.ads a-sequio.adb
44313 a-sequio.ads a-siocst.adb a-siocst.ads a-ssicst.adb
44314 a-ssicst.ads a-stmaco.ads a-storio.adb a-strbou.adb
44315 a-strbou.ads a-stream.ads a-strfix.adb a-strfix.ads
44316 a-strmap.adb a-strmap.ads a-strsea.adb a-strsea.ads
44317 a-strunb.adb a-strunb.ads a-ststio.adb a-ststio.ads
44318 a-stunau.adb a-stunau.ads a-stwibo.adb a-stwibo.ads
44319 a-stwifi.adb a-stwima.adb a-stwima.ads a-stwise.adb
44320 a-stwise.ads a-stwiun.adb a-stwiun.ads a-suteio.adb
44321 a-suteio.ads a-swmwco.ads a-swuwti.adb a-swuwti.ads
44322 a-sytaco.adb a-sytaco.ads a-tags.adb a-tags.ads a-tasatt.ads
44323 a-taside.adb a-taside.ads a-teioed.adb a-teioed.ads
44324 a-textio.adb a-textio.ads a-ticoau.adb a-ticoau.ads
44325 a-ticoio.adb a-ticoio.ads a-tideau.adb a-tideau.ads
44326 a-tideio.adb a-tideio.ads a-tienau.adb a-tienau.ads
44327 a-tienio.adb a-tienio.ads a-tifiio.adb a-tifiio.ads
44328 a-tiflau.adb a-tiflau.ads a-tiflio.adb a-tiflio.ads
44329 a-tigeau.adb a-tigeau.ads a-tiinau.adb a-tiinau.ads
44330 a-tiinio.adb a-tiinio.ads a-timoau.adb a-timoau.ads
44331 a-timoio.adb a-timoio.ads a-tiocst.adb a-tiocst.ads
44332 a-titest.adb a-witeio.adb a-witeio.ads a-wtcoau.adb
44333 a-wtcoau.ads a-wtcoio.adb a-wtcstr.adb a-wtcstr.ads
44334 a-wtdeau.adb a-wtdeau.ads a-wtdeio.adb a-wtdeio.ads
44335 a-wtedit.adb a-wtedit.ads a-wtenau.adb a-wtenau.ads
44336 a-wtenio.adb a-wtenio.ads a-wtfiio.adb a-wtfiio.ads
44337 a-wtflau.adb a-wtflau.ads a-wtflio.adb a-wtflio.ads
44338 a-wtgeau.adb a-wtgeau.ads a-wtinau.adb a-wtinau.ads
44339 a-wtinio.adb a-wtmoau.adb a-wtmoau.ads a-wtmoio.adb
44340 a-wtmoio.ads a-wttest.adb ada-tree.def ada-tree.h ada.h
44341 adaint.c adaint.h ali-util.adb ali-util.ads ali.adb ali.ads
44342 alloc.ads argv.c atree.adb atree.ads atree.h back_end.adb
44343 back_end.ads bcheck.adb bcheck.ads binde.adb binde.ads
44344 binderr.adb binderr.ads bindgen.adb bindgen.ads bindusg.adb
44345 bindusg.ads butil.adb butil.ads cal.c casing.adb casing.ads
44346 ceinfo.adb checks.adb checks.ads cio.c comperr.adb comperr.ads
44347 csets.adb csets.ads csinfo.adb cstand.adb cstand.ads
44348 cstreams.c cuintp.c debug.adb debug.ads debug_a.adb
44349 debug_a.ads dec-io.adb dec-io.ads dec.ads decl.c deftarg.c
44350 einfo.adb einfo.ads einfo.h elists.adb elists.ads elists.h
44351 errno.c errout.adb errout.ads eval_fat.adb eval_fat.ads exit.c
44352 exp_aggr.adb exp_aggr.ads exp_attr.adb exp_attr.ads
44353 exp_ch10.ads exp_ch11.adb exp_ch11.ads exp_ch12.adb
44354 exp_ch12.ads exp_ch13.adb exp_ch13.ads exp_ch2.adb exp_ch2.ads
44355 exp_ch3.adb exp_ch3.ads exp_ch4.adb exp_ch4.ads exp_ch5.adb
44356 exp_ch5.ads exp_ch6.adb exp_ch6.ads exp_ch7.adb exp_ch7.ads
44357 exp_ch8.adb exp_ch8.ads exp_ch9.adb exp_ch9.ads exp_code.adb
44358 exp_code.ads exp_dbug.adb exp_dbug.ads exp_disp.adb
44359 exp_disp.ads exp_dist.adb exp_dist.ads exp_fixd.adb
44360 exp_fixd.ads exp_imgv.adb exp_imgv.ads exp_intr.adb
44361 exp_intr.ads exp_pakd.adb exp_pakd.ads exp_prag.adb
44362 exp_prag.ads exp_smem.adb exp_smem.ads exp_strm.adb
44363 exp_strm.ads exp_tss.adb exp_tss.ads exp_util.adb exp_util.ads
44364 exp_vfpt.adb exp_vfpt.ads expander.adb expander.ads fe.h
44365 final.c fmap.adb fmap.ads fname-sf.adb fname-sf.ads
44366 fname-uf.adb fname-uf.ads fname.adb fname.ads freeze.adb
44367 freeze.ads frontend.adb frontend.ads g-calend.ads g-comlin.adb
44368 g-debpoo.adb g-debpoo.ads g-locfil.adb g-os_lib.ads
44369 g-regist.adb g-regist.ads get_targ.adb get_targ.ads gigi.h
44370 gmem.c gnat1drv.adb gnat1drv.ads gnat_ug.texi gnatbind.adb
44371 gnatbind.ads gnatbl.c gnatcmd.adb gnatcmd.ads gnatdll.adb
44372 gnatfind.adb gnatkr.adb gnatkr.ads gnatlbr.adb gnatlink.adb
44373 gnatlink.ads gnatls.adb gnatls.ads gnatmake.adb gnatmake.ads
44374 gnatmem.adb gnatprep.adb gnatprep.ads gnatpsta.adb gnatvsn.ads
44375 gnatxref.adb hlo.adb hlo.ads hostparm.ads i-c.adb i-cexten.ads
44376 i-cobol.adb i-cobol.ads i-cpoint.adb i-cpoint.ads i-cpp.adb
44377 i-cpp.ads i-cstrea.adb i-cstrea.ads i-cstrin.adb i-cstrin.ads
44378 i-fortra.adb i-os2err.ads i-os2lib.adb i-os2lib.ads
44379 i-os2syn.ads i-os2thr.ads i-pacdec.adb i-pacdec.ads
44380 impunit.adb impunit.ads init.c inline.adb inline.ads io-aux.c
44381 itypes.adb itypes.ads krunch.adb krunch.ads lang-options.h
44382 lang-specs.h layout.adb layout.ads lib-list.adb lib-load.adb
44383 lib-load.ads lib-sort.adb lib-util.adb lib-util.ads
44384 lib-writ.adb lib-writ.ads lib-xref.adb lib-xref.ads lib.adb
44385 lib.ads link.c live.adb live.ads make.adb make.ads makeusg.adb
44386 makeusg.ads math_lib.adb mdll.adb mdll.ads memtrack.adb misc.c
44387 namet.adb namet.ads namet.h nlists.adb nlists.ads nlists.h
44388 nmake.adb nmake.ads nmake.adt opt.adb opt.ads osint.adb
44389 osint.ads output.adb output.ads par-ch10.adb par-ch11.adb
44390 par-ch12.adb par-ch13.adb par-ch2.adb par-ch3.adb par-ch4.adb
44391 par-ch5.adb par-ch6.adb par-ch7.adb par-ch8.adb par-ch9.adb
44392 par-endh.adb par-labl.adb par-load.adb par-prag.adb
44393 par-sync.adb par-tchk.adb par-util.adb par.adb par.ads
44394 prj-attr.adb prj-attr.ads prj-com.adb prj-com.ads prj-dect.adb
44395 prj-dect.ads prj-env.adb prj-env.ads prj-ext.adb prj-ext.ads
44396 prj-nmsc.adb prj-nmsc.ads prj-pars.adb prj-pars.ads
44397 prj-part.adb prj-part.ads prj-proc.adb prj-proc.ads
44398 prj-strt.adb prj-strt.ads prj-tree.adb prj-tree.ads
44399 prj-util.adb prj-util.ads prj.adb prj.ads raise.c raise.h
44400 repinfo.adb repinfo.ads repinfo.h restrict.adb restrict.ads
44401 rident.ads rtsfind.adb rtsfind.ads s-addima.adb s-addima.ads
44402 s-arit64.adb s-arit64.ads s-assert.adb s-assert.ads
44403 s-asthan.adb s-asthan.ads s-atacco.adb s-auxdec.adb
44404 s-auxdec.ads s-bitops.adb s-bitops.ads s-chepoo.ads
44405 s-direio.adb s-direio.ads s-except.ads s-exctab.adb
44406 s-exctab.ads s-exnflt.ads s-exngen.adb s-exngen.ads
44407 s-exnint.ads s-exnlfl.ads s-exnlin.ads s-exnllf.ads
44408 s-exnlli.ads s-exnsfl.ads s-exnsin.ads s-exnssi.ads
44409 s-expflt.ads s-expgen.adb s-expgen.ads s-expint.ads
44410 s-explfl.ads s-explin.ads s-expllf.ads s-explli.ads
44411 s-expllu.adb s-expllu.ads s-expmod.adb s-expmod.ads
44412 s-expsfl.ads s-expsin.ads s-expssi.ads s-expuns.adb
44413 s-expuns.ads s-fatflt.ads s-fatgen.adb s-fatgen.ads
44414 s-fatlfl.ads s-fatllf.ads s-fatsfl.ads s-ficobl.ads
44415 s-fileio.adb s-fileio.ads s-finimp.adb s-finimp.ads
44416 s-finroo.adb s-finroo.ads s-fore.adb s-fore.ads s-imgbiu.adb
44417 s-imgbiu.ads s-imgboo.adb s-imgboo.ads s-imgcha.adb
44418 s-imgcha.ads s-imgdec.adb s-imgdec.ads s-imgenu.adb
44419 s-imgenu.ads s-imgint.adb s-imgint.ads s-imgllb.adb
44420 s-imgllb.ads s-imglld.adb s-imglld.ads s-imglli.adb
44421 s-imglli.ads s-imgllu.adb s-imgllu.ads s-imgllw.adb
44422 s-imgllw.ads s-imgrea.adb s-imgrea.ads s-imguns.adb
44423 s-imguns.ads s-imgwch.adb s-imgwch.ads s-imgwiu.adb
44424 s-imgwiu.ads s-inmaop.ads s-interr.adb s-interr.ads
44425 s-intman.ads s-io.adb s-io.ads s-maccod.ads s-mantis.adb
44426 s-mantis.ads s-memory.adb s-memory.ads s-osprim.ads
44427 s-pack03.adb s-pack03.ads s-pack05.adb s-pack05.ads
44428 s-pack06.adb s-pack06.ads s-pack07.adb s-pack07.ads
44429 s-pack09.adb s-pack09.ads s-pack10.adb s-pack10.ads
44430 s-pack11.adb s-pack11.ads s-pack12.adb s-pack12.ads
44431 s-pack13.adb s-pack13.ads s-pack14.adb s-pack14.ads
44432 s-pack15.adb s-pack15.ads s-pack17.adb s-pack17.ads
44433 s-pack18.adb s-pack18.ads s-pack19.adb s-pack19.ads
44434 s-pack20.adb s-pack20.ads s-pack21.adb s-pack21.ads
44435 s-pack22.adb s-pack22.ads s-pack23.adb s-pack23.ads
44436 s-pack24.adb s-pack24.ads s-pack25.adb s-pack25.ads
44437 s-pack26.adb s-pack26.ads s-pack27.adb s-pack27.ads
44438 s-pack28.adb s-pack28.ads s-pack29.adb s-pack29.ads
44439 s-pack30.adb s-pack30.ads s-pack31.adb s-pack31.ads
44440 s-pack33.adb s-pack33.ads s-pack34.adb s-pack34.ads
44441 s-pack35.adb s-pack35.ads s-pack36.adb s-pack36.ads
44442 s-pack37.adb s-pack37.ads s-pack38.adb s-pack38.ads
44443 s-pack39.adb s-pack39.ads s-pack40.adb s-pack40.ads
44444 s-pack41.adb s-pack41.ads s-pack42.adb s-pack42.ads
44445 s-pack43.adb s-pack43.ads s-pack44.adb s-pack44.ads
44446 s-pack45.adb s-pack45.ads s-pack46.adb s-pack46.ads
44447 s-pack47.adb s-pack47.ads s-pack48.adb s-pack48.ads
44448 s-pack49.adb s-pack49.ads s-pack50.adb s-pack50.ads
44449 s-pack51.adb s-pack51.ads s-pack52.adb s-pack52.ads
44450 s-pack53.adb s-pack53.ads s-pack54.adb s-pack54.ads
44451 s-pack55.adb s-pack55.ads s-pack56.adb s-pack56.ads
44452 s-pack57.adb s-pack57.ads s-pack58.adb s-pack58.ads
44453 s-pack59.adb s-pack59.ads s-pack60.adb s-pack60.ads
44454 s-pack61.adb s-pack61.ads s-pack62.adb s-pack62.ads
44455 s-pack63.adb s-pack63.ads s-parame.adb s-parame.ads
44456 s-parint.adb s-parint.ads s-pooglo.adb s-pooglo.ads
44457 s-pooloc.adb s-pooloc.ads s-poosiz.adb s-poosiz.ads
44458 s-powtab.ads s-proinf.adb s-proinf.ads s-rpc.adb s-rpc.ads
44459 s-scaval.ads s-secsta.adb s-secsta.ads s-sequio.adb
44460 s-sequio.ads s-shasto.adb s-shasto.ads s-soflin.adb
44461 s-soflin.ads s-sopco3.adb s-sopco3.ads s-sopco4.adb
44462 s-sopco4.ads s-sopco5.adb s-sopco5.ads s-stache.adb
44463 s-stache.ads s-stalib.adb s-stalib.ads s-stoele.adb
44464 s-stopoo.ads s-stratt.adb s-stratt.ads s-strops.adb
44465 s-strops.ads s-taprob.ads s-taprop.ads s-tarest.ads
44466 s-tasdeb.adb s-tasdeb.ads s-tasinf.adb s-tasinf.ads
44467 s-tasini.ads s-taskin.ads s-tasren.ads s-tasres.ads
44468 s-tassta.ads s-tpinop.adb s-tpinop.ads s-tpoben.ads
44469 s-tpobop.ads s-unstyp.ads s-vaflop.adb s-vaflop.ads
44470 s-valboo.adb s-valboo.ads s-valcha.adb s-valcha.ads
44471 s-valdec.adb s-valdec.ads s-valenu.adb s-valenu.ads
44472 s-valint.adb s-valint.ads s-vallld.adb s-vallld.ads
44473 s-vallli.adb s-vallli.ads s-valllu.adb s-valllu.ads
44474 s-valrea.adb s-valrea.ads s-valuns.adb s-valuns.ads
44475 s-valuti.adb s-valuti.ads s-valwch.adb s-valwch.ads
44476 s-vercon.adb s-vercon.ads s-vmexta.adb s-vmexta.ads
44477 s-wchcnv.adb s-wchcnv.ads s-wchcon.ads s-wchjis.adb
44478 s-wchjis.ads s-wchstw.adb s-wchstw.ads s-wchwts.adb
44479 s-wchwts.ads s-widboo.adb s-widboo.ads s-widcha.adb
44480 s-widcha.ads s-widenu.adb s-widenu.ads s-widlli.adb
44481 s-widlli.ads s-widllu.adb s-widllu.ads s-widwch.adb
44482 s-widwch.ads s-wwdcha.adb s-wwdcha.ads s-wwdenu.adb
44483 s-wwdenu.ads s-wwdwch.adb s-wwdwch.ads scans.adb scans.ads
44484 scn-nlit.adb scn-slit.adb scn.adb scn.ads sdefault.ads sem.adb
44485 sem.ads sem_aggr.adb sem_aggr.ads sem_attr.adb sem_attr.ads
44486 sem_case.adb sem_case.ads sem_cat.adb sem_cat.ads sem_ch10.adb
44487 sem_ch10.ads sem_ch11.adb sem_ch11.ads sem_ch12.adb
44488 sem_ch12.ads sem_ch13.adb sem_ch13.ads sem_ch2.adb sem_ch2.ads
44489 sem_ch3.adb sem_ch3.ads sem_ch4.adb sem_ch4.ads sem_ch5.adb
44490 sem_ch5.ads sem_ch6.adb sem_ch6.ads sem_ch7.adb sem_ch7.ads
44491 sem_ch8.adb sem_ch8.ads sem_ch9.adb sem_ch9.ads sem_disp.adb
44492 sem_disp.ads sem_dist.adb sem_dist.ads sem_elab.adb
44493 sem_elab.ads sem_elim.adb sem_elim.ads sem_eval.adb
44494 sem_eval.ads sem_intr.adb sem_intr.ads sem_maps.adb
44495 sem_maps.ads sem_mech.adb sem_mech.ads sem_prag.adb
44496 sem_prag.ads sem_res.adb sem_res.ads sem_smem.adb sem_smem.ads
44497 sem_type.adb sem_type.ads sem_util.adb sem_util.ads
44498 sem_vfpt.adb sem_vfpt.ads sem_warn.adb sem_warn.ads
44499 sfn_scan.adb sfn_scan.ads sinfo-cn.adb sinfo-cn.ads sinfo.adb
44500 sinfo.ads sinfo.h sinput-l.adb sinput-l.ads sinput-p.adb
44501 sinput-p.ads sinput.adb sinput.ads snames.adb snames.ads
44502 snames.h sprint.adb sprint.ads stand.adb stand.ads stringt.adb
44503 stringt.ads stringt.h style.adb style.ads stylesw.adb
44504 stylesw.ads switch.adb switch.ads sysdep.c system.ads
44505 table.adb table.ads targparm.adb targparm.ads targtyps.c
44506 tbuild.adb tbuild.ads trans.c tree_gen.adb tree_gen.ads
44507 tree_in.adb tree_in.ads tree_io.adb tree_io.ads treepr.adb
44508 treepr.ads treeprs.ads treeprs.adt ttypef.ads ttypes.ads
44509 types.adb types.ads types.h uintp.adb uintp.ads uintp.h
44510 uname.adb uname.ads urealp.adb urealp.ads urealp.h usage.adb
44511 usage.ads utils.c utils2.c validsw.adb validsw.ads
44512 widechar.adb widechar.ads xeinfo.adb xnmake.adb xr_tabls.adb
44513 xr_tabls.ads xref_lib.adb xref_lib.ads xsinfo.adb xsnames.adb
44514 xtreeprs.adb: Correct statements in comments about maintainership
44517 2002-09-23 Zack Weinberg <zack@codesourcery.com>
44519 * Make-lang.in (EXTRA_GNATBIND_OBJS): Add version.o.
44520 * Makefile.in (TOOLS_LIBS): Add ../../version.o.
44521 * gnatvsn.ads: Gnat_Version_String is now a function.
44522 * gnatvsn.adb: New file. When asked for Gnat_Version_String,
44523 copy the C version_string into a String and return it.
44524 * gnatcmd.adb, gnatkr.adb, gnatlbr.adb, gnatlink.adb,
44525 gnatls.adb,gnatmake.adb, gnatprep.adb, gnatpsta.adb:
44526 Remove pragma Ident (Gnat_Version_String). If this was the
44527 sole use of package Gnatvsn, remove the with statement too.
44528 * gnat1drv.adb: Tweak -gnatv output.
44530 2002-09-17 Richard Henderson <rth@redhat.com>
44532 * trans.c (tree_transform): Use real_ldexp not REAL_VALUE_LDEXP.
44533 * config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2): Use real_2expN.
44534 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
44535 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
44536 * config/m68k/m68k.c (floating_exact_log2): Use real_exponent
44537 and real_2expN instead of a loop.
44538 * doc/tm.texi (REAL_VALUE_LDEXP): Remove.
44539 (REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT): Remove.
44541 2002-08-25 Andre Leis <a.leis@gmx.net>
44542 David Billinghurst <David.Billinghurst@riotinto.com>
44544 * sysdep.c (__gnat_ttyname): include <termios.h> on cygwin
44546 2002-08-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
44548 * Make-lang.in (gnatbind$(exeext)): Link with $(SYSLIBS).
44549 Remove $(CONFIG_H) dependency.
44551 2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
44553 * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
44555 2002-07-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
44557 * adadecode.c (ada_demangle): Use xstrdup in lieu of
44559 * misc.c (gnat_decode_option): Likewise.
44561 2002-07-15 Florian Weimer <fw@deneb.enyo.de>
44563 * make.adb (Add_Switch): Make Generic_Position a procedure. The
44564 function approach did not work well because of a side effect (the
44565 function call could reallocate the table which was being indexed
44566 using its result). Fixes ada/4851. [RESURRECTED]
44568 2002-07-01 Roger Sayle <roger@eyesopen.com>
44570 * ada/utils.c (builtin_function): Accept an additional parameter.
44572 2002-06-28 Andreas Jaeger <aj@suse.de>
44575 * Makefile.in: Fix typo in comment, patch by Adrian Knoth
44578 2002-06-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
44580 * Makefile.in (SHELL): Set to @SHELL@.
44582 2002-06-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
44584 * utils.c (init_gigi_decls): Use ARRAY_SIZE in lieu of explicit
44585 array size calculation.
44587 2002-06-04 Andreas Jaeger <aj@suse.de>
44589 * Make-lang.in (gnatbind): Readd rule that has been lost in last
44592 2002-06-03 Geoffrey Keating <geoffk@redhat.com>
44594 Merge from pch-branch:
44596 * config-lang.in (gtfiles): Add ada-tree.h.
44597 * ada-tree.h (SET_TYPE_CI_CO_LIST): New.
44598 (SET_TYPE_MODULUS): New.
44599 (SET_TYPE_INDEX): New.
44600 (SET_TYPE_DIGITS_VALUE): New.
44601 (SET_TYPE_RM_SIZE): New.
44602 (SET_TYPE_UNCONSTRAINED_ARRAY): New.
44603 (SET_TYPE_ADA_SIZE): New.
44604 (SET_TYPE_ACTUAL_BOUNDS): New.
44605 (SET_DECL_CONST_CORRESPONDING_VAR): New.
44606 (SET_DECL_ORIGINAL_FIELD): New.
44607 (TREE_LOOP_ID): Correct typo.
44608 * decl.c: Use new macros.
44609 * utils.c: Include debug.h, use new macros.
44610 * utils2.c: Use new macros.
44612 * ada-tree.h: Update all macros for new tree description.
44613 (struct tree_loop_id): New.
44614 (union lang_tree_node): New.
44615 (struct lang_decl): New.
44616 (struct lang_type): New.
44617 * misc.c (gnat_mark_tree): Delete.
44618 (LANG_HOOKS_MARK_TREE): Delete.
44619 * trans.c (tree_transform): No longer any need to cast
44622 * utils.c (struct language_function): New dummy structure.
44624 * Makefile.in (decl.o): gt-ada-<filename.h> is in objdir, not srcdir.
44625 (misc.o): Likewise.
44626 (utils.o): Likewise; also gtype-ada.h.
44627 * Make-lang.in (gnat1): Add dependency on s-gtype.
44628 (gnatbind): Add dependency on $(CONFIG_H).
44629 * utils.c: Correct last #include.
44630 (stuct e_stack): Remove unnecessary 'static'.
44631 (mark_e_stack): Remove unused prototype.
44633 * scn-nlit.adb: Remove whitespace after version number to
44634 keep lines under 80 chars.
44635 * snames.adb: Likewise.
44636 * treepr.ads: Likewise.
44638 * Makefile.in (decl.o): Include gt-ada-<filename>.h.
44639 (misc.o): Likewise.
44640 (utils.o): Include gt-ada-<filename>.h and gtype-ada.h.
44641 * config-lang.in (gtfiles): New.
44642 * decl.c: Use gengtype for roots.
44643 * gigi.h: Use gengtype for roots.
44644 * trans.c: Use gengtype for roots.
44645 * utils.c: Use gengtype for roots, marking. Include gtype-ada.h.
44647 2002-06-02 Gabriel Dos Reis <gdr@codesourcery.com>
44649 * misc.c (gnat_init): Adjust setting of internal_error_function.
44651 2002-06-01 Joseph S. Myers <jsm28@cam.ac.uk>
44653 * gnat_ug.texi: Use @ifnottex instead of @ifinfo.
44654 * gnat_ug_unx.texi, gnat_ug_vms.texi, gnat_ug_vxw.texi,
44655 gnat_ug_wnt.texi: Regenerate.
44657 2002-05-31 Florian Weimer <fw@deneb.enyo.de>
44659 * 5ntaprop.adb (with System.OS_Primitives): Remove.
44661 * cstreams.c (max_path_len): Move from here ...
44662 * adaint.c (__gnat_max_path_len): ... to here.
44663 * adaint.c (__gnat_max_path_len): Declare.
44664 * g-dirope.adb (Max_Path): Adjust.
44665 * g-os_lib.adb (Normalize_Pathname.Max_Path): Adjust.
44666 * i-cstrea.ads (max_path_len): Adjust.
44667 * osint.adb (Get_RTS_Search_Dir.Max_Path): Adjust.
44668 * xr_tabls.adb (Dir_Name.Max_Path: Adjust.
44670 * Makefile.in, Make-lang.in: Documentation is now built in
44671 Make-lang.in. Store Info and generated Texinfo files in the
44673 * gnat_ug.texi: Remove CVS keywords, correct version number.
44674 Set file name correctly.
44676 * gnat_ug_*.texi: Add.
44677 * .cvsignore: Ignore generated Texinfo files.
44679 2002-05-30 Zack Weinberg <zack@codesourcery.com>
44681 * ada.h: Add MI guard macro.
44682 (SUBTYPE): Define constants with an anonymous enum, not static
44684 (IN): Cast constants to appropriate type before use.
44686 2002-05-26 Joseph S. Myers <jsm28@cam.ac.uk>
44688 * gnatvsn.ads (Gnat_Version_String): Change to "3.2 20020526
44691 2002-05-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
44693 * Make-lang.in (CP, ECHO): Copy from Makefile.in.
44694 (X_ADA_CFLAGS, T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS): Likewise.
44695 (ALL_ADAFLAGS, FORCE_DEBUG_ADAFLAGS, ADA_CFLAGS): Likewise.
44696 (ALL_ADA_CFLAGS): Likewise.
44697 (ADA_INCLUDES): Likewise.
44698 Adapt for new working dir.
44699 (GNATBIND): Use Makefile.in version.
44700 (.SUFFIXES): Copy from Makefile.in.
44701 (ada-warn): Define.
44702 (.adb.o, .ads.o): Copy from Makefile.in.
44703 Added $(OUTPUT_OPTION).
44704 (GNAT1_C_OBJS): Moved from Makefile.in.
44705 Prefix with ada subdir.
44706 (GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS, GNATBIND_OBJS): Likewise.
44707 (EXTRA_GNAT1_OBJS): Moved from Makefile.in.
44708 Adapt for new working dir.
44709 (EXTRA_GNATBIND_OBJS): Likewise.
44710 (ADA_BACKEND): Moved from Makefile.in.
44711 Renamed to avoid conflict with global BACKEND.
44713 (TARGET_ADA_SRCS): Moved from Makefile.in.
44714 (gnat1$(exeext)): Replaced recursive rule with Makefile.in version.
44716 (gnatbind$(exeext)): Replaced recursive rule with Makefile.in version.
44717 (ada_extra_files): Moved from Makefile.in.
44718 Prefix with ada subdir.
44719 (ada/b_gnat1.c, ada/b_gnat1.o, ada/b_gnatb.c, ada/b_gnatb.o): Likewise.
44720 (ada/treeprs.ads, ada/einfo.h, ada/sinfo.h, ada/nmake.adb): Likewise.
44721 (ada/nmake.ads): Likewise.
44722 (update-sources): Moved from Makefile.in.
44723 Prefix with ada subdir.
44724 (ada/sdefault.adb, ada/stamp-sdefault, ada/sdefault.o): Likewise.
44725 (ADA_TREE_H): Likewise.
44726 (ada/a-except.o, ada/s-assert.o, ada/s-memory.o): Likewise.
44727 (ada/memtrack.o): Likewise.
44728 (ada/adadecode.o): Likewise.
44729 Update dependencies.
44730 (ada/adaint.o): New.
44731 (ada/argv.o): Moved from Makefile.in.
44732 Prefix with ada subdir.
44733 Update dependencies.
44734 (ada/cstreams.o, ada/exit.o, ada/final.o, ada/link.o): Likewise.
44735 (ada/cio.o, ada/init.o, ada/raise.o, ada/tracebak.o): Likewise.
44736 (ada/cuintp.o, ada/decl.o, ada/misc.o): Moved from Makefile.in.
44737 Prefix with ada subdir.
44738 (ada/targtyps.o, ada/trans.o, ada/utils.o, ada/utils2.o): Likewise.
44739 (GNAT DEPENDENCIES): Regenerate.
44740 * Makefile.in (MACHMODE_H, RTL_H, TREE_H): Removed, provided by
44741 toplevel Makefile.in.
44742 (EXTRA_GNAT1_OBJS, EXTRA_GNATBIND_OBJS): Removed.
44743 (TARGET_ADA_SRCS): Removed.
44744 (GNAT1_C_OBJS, GNAT_ADA_OBJS, GNAT1_ADA_OBJS, GNAT1_OBJS): Likewise.
44745 (GNATBIND_OBJS): Likewise.
44746 (ADA_INCLUDE_DIR, ADA_RTL_OBJ_DIR): Moved here.
44747 (BACKEND): Removed.
44748 (../gnat1$(exeext), ../gnatbind$(exeext)): Likewise.
44749 (TREE_H): Likewise.
44750 (ada_extra_files): Likewise.
44751 (b_gnat1.c, b_gnat1.o, b_gnatb.c, b_gnatb.o): Likewise.
44752 (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads): Likewise.
44753 (update-sources): Likewise.
44754 (sdefault.adb, stamp-sdefault, sdefault.o): Likewise
44755 (ADA_TREE_H): Likewise.
44756 (adadecoce.o): Likewise.
44757 (cuintp.o, decl.o, misc.o, trans.o, utils.o, utils2.o): Likewise.
44758 (GNAT DEPENDENCIES): Likewise.
44760 2002-05-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
44762 * Makefile.adalib: Allow for PWDCMD to override hardcoded pwd.
44763 * Makefile.in: Likewise.
44765 2002-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
44767 * Make-lang.in (gnat1$(exeext), gnatbind$(exeext), gnattools):
44768 Restore $(CONFIG_H) and prefix.o dependencies.
44769 (ada.stage[1-4]): Depend on stage?-start.
44771 * Makefile.in (b_gnatb.c): Depend on interfac.o.
44773 2002-05-02 Jim Wilson <wilson@redhat.com>
44775 * utils.c (finish_record_type): Change record_size to record_type.
44777 2001-05-02 John David Anglin <dave@hiauly1.hia.nrc.ca>
44779 * ada/Makefile.in (X_ADA_CFLAGS, T_ADA_CFLAGS): New fragment overrides.
44780 (ALL_ADA_CFLAGS): Define. Replace ADA_CFLAGS with ALL_ADA_CFLAGS in
44781 ALL_ADAFLAGS, MOST_ADAFLAGS, and all compilations using CC.
44783 2002-04-25 Neil Booth <neil@daikokuya.demon.co.uk>
44785 * misc.c (gnat_parse_file): Update.
44787 2002-04-24 Neil Booth <neil@daikokuya.demon.co.uk>
44789 * misc.c (gnat_init): Don't set lang_attribute_common.
44791 2002-04-21 Joseph S. Myers <jsm28@cam.ac.uk>
44793 * gnat_rm.texi: Use @ifnottex instead of @ifinfo.
44795 2002-04-21 Florian Weimer <fw@deneb.enyo.de>
44797 * gnat_ug.texi: New file.
44799 * gnat_rm.texi: Do not include texiplus.texi. Include fdl.texi
44800 instead of gfdl.texi
44802 * xgnatug.adb, ug_words: New files.
44804 * Makefile.in (doc, dvi): New targets. Build gnat_ug_*,
44805 gnat_rm and gnat-style manuals.
44807 2002-04-18 Neil Booth <neil@daikokuya.demon.co.uk>
44809 * gigi.h (incomplete_type_error): Remove.
44810 * utils.c (incomplete_type_error): Remove.
44812 2002-04-16 Mark Mitchell <mark@codesourcery.com>
44814 * trans.c (tree_transform): Add has_scope argument to
44815 expand_start_stmt_expr.
44817 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
44819 * gigi.h (truthvalue_conversion): Rename.
44820 * misc.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
44821 * trans.c (tree_transform): Update.
44822 * utils2.c (truthvalue_conversion): Rename, update.
44823 (build_binary_op, build_unary_op): Update.
44825 2002-04-04 Laurent Guerby <guerby@acm.org>
44827 * make.adb: Implement -margs, remove restriction about file name placement.
44828 * makeusg.adb: Documentation update.
44829 * Makefile.in (TOOLS_FLAGS_TO_PASS): Add VPATH=$(fsrcdir).
44830 * Makefile.in (gnattools3): Comment out, gnatmem does not build without libaddr2line.
44832 2002-04-04 Neil Booth <neil@daikokuya.demon.co.uk>
44834 * utils.c (create_subprog_decl): Use SET_DECL_ASSEMBLER_NAME.
44835 (builtin_function): Similarly.
44837 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
44839 * decl.c (gnat_to_gnu_entity): Update.
44840 * gigi.h (mark_addressable): Rename.
44841 * misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
44842 * trans.c (tree_transform): Update.
44843 * utils.c (create_var_decl): Update.
44844 * util2.c (build_binary_op, build_unary_op,
44845 fill_vms_descriptor): Update.
44846 (mark_addressable): Rename, update.
44848 2002-04-01 Neil Booth <neil@daikokuya.demon.co.uk>
44850 * gigi.h (unsigned_type, signed_type, signed_or_unsigned_type):
44852 * misc.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
44853 LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
44854 * trans.c (tree_transform, convert_with_check): Update.
44855 * utils.c (unsigned_type, signed_type, signed_or_unsigned_type):
44858 2002-03-31 Neil Booth <neil@daikokuya.demon.co.uk>
44860 * gigi.h (finish_incomplete_decl): Rename.
44861 * misc.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Redefine.
44862 * utils.c (gnat_init_decl_processing): Don't set hook.
44863 (finish_incomplete_decl): Rename.
44865 2002-03-29 Andreas Schwab <schwab@suse.de>
44867 * Makefile.in: Pass VPATH=$(fsrcdir) when calling make in rts
44870 2001-03-28 Robert Dewar <dewar@gnat.com>
44873 (Remove_Checks): New procedure
44876 (Remove_Checks): New procedure
44879 Use new Duplicate_Subexpr functions
44880 (Duplicate_Subexpr_No_Checks): New procedure
44881 (Duplicate_Subexpr_No_Checks_Orig): New procedure
44882 (Duplicate_Subexpr): Restore original form (checks duplicated)
44883 (Duplicate_Subexpr): Call Remove_Checks
44886 (Duplicate_Subexpr_No_Checks): New procedure
44887 (Duplicate_Subexpr_No_Checks_Orig): New procedure
44888 Add 2002 to copyright notice
44890 * sem_util.adb: Use new Duplicate_Subexpr functions
44893 (Eval_Indexed_Component): This is the place to call
44894 Constant_Array_Ref and to replace the value. We simply merge
44895 the code of this function in here, since it is now no longer
44896 used elsewhere. This fixes the problem of the back end not
44897 realizing we were clever enough to see that this was
44899 (Expr_Val): Remove call to Constant_Array_Ref
44900 (Expr_Rep_Val): Remove call to Constant_Array_Ref
44902 (Constant_Array_Ref): Deal with string literals (patch
44903 suggested by Zack Weinberg on the gcc list)
44905 2001-03-28 Ed Schonberg <schonber@gnat.com>
44907 * exp_util.adb: Duplicate_Subexpr_No_Checks_Orig =>
44908 Duplicate_Subexpr_Move_Checks.
44910 * exp_util.ads: Duplicate_Subexpr_No_Checks_Orig =>
44911 Duplicate_Subexpr_Move_Checks.
44913 * sem_eval.adb: (Constant_Array_Ref): Verify that constant
44914 value of array exists before retrieving it (it may a private
44915 protected component in a function).
44917 2002-03-28 Geert Bosch <bosch@gnat.com>
44919 * prj-pp.adb : New file.
44921 * prj-pp.ads : New file.
44923 2002-03-28 Andreas Jaeger <aj@suse.de>
44925 * Makefile.in (stamp-sdefault): Fix path for Makefile.
44927 2002-03-28 Neil Booth <neil@daikokuya.demon.co.uk>
44929 * misc.c (gnat_expand_expr): Move prototype.
44931 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
44933 * misc.c (insert_default_attributes): Remove.
44935 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
44937 * misc.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
44938 (gnat_init): Don't set hook.
44939 (gnat_expand_expr): Fix prototype.
44941 2002-03-27 Neil Booth <neil@daikokuya.demon.co.uk>
44943 * misc.c (ggc_p): Remove.
44945 2002-03-27 Geert Bosch <bosch@gnat.com>
44947 * prj-makr.ads, prj-makr.adb : New files.
44949 2002-03-26 Neil Booth <neil@daikokuya.demon.co.uk>
44951 * misc.c (LANG_HOOKS_MARK_TREE): Redefine.
44952 (lang_mark_tree): Make static, rename.
44954 2002-03-25 Neil Booth <neil@daikokuya.demon.co.uk>
44956 * misc.c (maybe_build_cleanup): Remove.
44958 2002-03-24 Neil Booth <neil@daikokuya.demon.co.uk>
44960 * gigi.h (yyparse): Remove.
44962 2002-03-23 Florian Weimer <fw@deneb.enyo.de>
44964 From Ben Brosgol <brosgol@gnat.com>
44965 * gnat_rm.texi: Sync with ACT version.
44967 2002-03-20 Neil Booth <neil@daikokuya.demon.co.uk>
44969 * misc.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
44970 (gnat_init): Remove old hook.
44972 2002-03-17 Neil Booth <neil@daikokuya.demon.co.uk>
44974 * misc.c (LANG_HOOKS_PARSE_FILE): Redefine.
44975 (yyparse): Rename gnat_parse_file.
44977 2002-03-14 Geoffrey Keating <geoffk@redhat.com>
44979 Delete all lines containing "$Revision:".
44980 * xeinfo.adb: Don't look for revision numbers.
44981 * xnmake.adb: Likewise.
44982 * xsinfo.adb: Likewise.
44983 * xsnames.adb: Likewise.
44984 * xtreeprs.adb: Likewise.
44986 2002-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
44988 * misc.c (gnat_tree_code_type, gnat_tree_code_length,
44989 gnat_tree_code_name): Delete.
44990 (tree_code_type, tree_code_length, tree_code_name): Define.
44991 (gnat_init): Don't try to copy into the various tree_code
44994 2002-03-11 Richard Henderson <rth@redhat.com>
44996 * Makefile.in (.NOTPARALLEL): Add fake tag.
44998 2002-03-07 Geert Bosch <bosch@gnat.com>
45000 * adadecode.c, adadecode.h, aux-io.c, s-traces.adb, s-traces.ads,
45001 s-tratas.adb, s-tratas.ads, sinput-d.adb, sinput-d.ads,
45002 switch-b.adb, switch-b.ads, switch-c.adb, switch-c.ads,
45003 switch-m.adb, switch-m.ads : New files.
45005 2002-03-07 Geert Bosch <bosch@gnat.com>
45007 * 41intnam.ads, 42intnam.ads, 4aintnam.ads, 4cintnam.ads,
45008 4dintnam.ads, 4gintnam.ads, 4hintnam.ads, 4lintnam.ads,
45009 4mintnam.ads, 4pintnam.ads, 4rintnam.ads, 4sintnam.ads,
45010 4uintnam.ads, 4vcalend.adb, 4zintnam.ads, 52system.ads,
45011 5amastop.adb, 5asystem.ads, 5ataprop.adb, 5atpopsp.adb,
45012 5avxwork.ads, 5bosinte.adb, 5bsystem.ads, 5esystem.ads,
45013 5fsystem.ads, 5ftaprop.adb, 5ginterr.adb, 5gmastop.adb,
45014 5gsystem.ads, 5gtaprop.adb, 5gtasinf.adb, 5gtasinf.ads,
45015 5hparame.ads, 5hsystem.ads, 5htaprop.adb, 5htraceb.adb,
45016 5itaprop.adb, 5ksystem.ads, 5kvxwork.ads, 5lintman.adb,
45017 5lsystem.ads, 5mvxwork.ads, 5ninmaop.adb, 5nosinte.ads,
45018 5ntaprop.adb, 5ointerr.adb, 5omastop.adb, 5oosinte.adb,
45019 5osystem.ads, 5otaprop.adb, 5otaspri.ads, 5pvxwork.ads,
45020 5qtaprop.adb, 5sintman.adb, 5ssystem.ads, 5staprop.adb,
45021 5stpopse.adb, 5svxwork.ads, 5tosinte.ads, 5uintman.adb,
45022 5vasthan.adb, 5vinmaop.adb, 5vinterr.adb, 5vintman.adb,
45023 5vmastop.adb, 5vparame.ads, 5vsystem.ads, 5vtaprop.adb,
45024 5vtpopde.adb, 5wmemory.adb, 5wsystem.ads, 5wtaprop.adb,
45025 5ysystem.ads, 5zinterr.adb, 5zintman.adb, 5zosinte.adb,
45026 5zosinte.ads, 5zsystem.ads, 5ztaprop.adb, 6vcpp.adb, 6vcstrea.adb,
45027 7sintman.adb, 7staprop.adb, 7stpopsp.adb, 9drpc.adb,
45028 Make-lang.in, Makefile.in, a-caldel.adb, a-comlin.ads,
45029 a-dynpri.adb, a-except.adb, a-except.ads, a-finali.adb,
45030 a-ncelfu.ads, a-reatim.adb, a-retide.adb, a-stream.ads,
45031 a-ststio.adb, a-ststio.ads, a-stwifi.adb, a-tags.adb, a-tasatt.adb,
45032 a-textio.adb, a-tideau.adb, a-tiflau.adb, a-tigeau.adb,
45033 a-tigeau.ads, a-tiinau.adb, a-timoau.adb, a-witeio.adb,
45034 a-wtdeau.adb, a-wtenau.adb, a-wtflau.adb, a-wtgeau.adb,
45035 a-wtgeau.ads, a-wtinau.adb, a-wtmoau.adb, ada-tree.def, ada-tree.h,
45036 adaint.c, adaint.h, ali-util.adb, ali.adb, ali.ads, atree.adb,
45037 atree.ads, atree.h, back_end.adb, bcheck.adb, bindgen.adb,
45038 bindusg.adb, checks.adb, comperr.adb, config-lang.in, csets.adb,
45039 csets.ads, cstand.adb, cstreams.c, debug.adb, debug.ads, decl.c,
45040 einfo.adb, einfo.ads, einfo.h, elists.h, errout.adb, errout.ads,
45041 eval_fat.adb, exp_aggr.adb, exp_attr.adb, exp_ch11.adb,
45042 exp_ch12.adb, exp_ch13.adb, exp_ch2.adb, exp_ch3.adb, exp_ch3.ads,
45043 exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch7.adb, exp_ch7.ads,
45044 exp_ch9.adb, exp_ch9.ads, exp_dbug.adb, exp_dbug.ads, exp_disp.ads,
45045 exp_dist.adb, exp_fixd.adb, exp_intr.adb, exp_pakd.adb,
45046 exp_prag.adb, exp_strm.adb, exp_util.adb, exp_util.ads,
45047 expander.adb, expect.c, fe.h, fmap.adb, fmap.ads, fname-uf.adb,
45048 freeze.adb, frontend.adb, g-awk.adb, g-cgideb.adb, g-comlin.adb,
45049 g-comlin.ads, g-debpoo.adb, g-dirope.adb, g-dirope.ads,
45050 g-dyntab.adb, g-expect.adb, g-expect.ads, g-io.ads, g-io_aux.adb,
45051 g-io_aux.ads, g-locfil.adb, g-locfil.ads, g-os_lib.adb,
45052 g-os_lib.ads, g-regexp.adb, g-regpat.adb, g-socket.adb,
45053 g-socket.ads, g-spipat.adb, g-table.adb, g-trasym.adb,
45054 g-trasym.ads, gigi.h, gmem.c, gnat1drv.adb, gnatbind.adb, gnatbl.c,
45055 gnatchop.adb, gnatcmd.adb, gnatdll.adb, gnatfind.adb, gnatlbr.adb,
45056 gnatlink.adb, gnatls.adb, gnatmem.adb, gnatprep.adb, gnatvsn.ads,
45057 gnatxref.adb, hlo.adb, hostparm.ads, i-cobol.adb, i-cpp.adb,
45058 i-cstrea.ads, i-cstrin.adb, i-pacdec.adb, i-vxwork.ads,
45059 impunit.adb, init.c, inline.adb, io-aux.c, layout.adb, lib-load.adb,
45060 lib-util.adb, lib-writ.adb, lib-writ.ads, lib-xref.adb,
45061 lib-xref.ads, lib.adb, lib.ads, make.adb, makeusg.adb, mdll.adb,
45062 memroot.adb, misc.c, mlib-tgt.adb, mlib-utl.adb, mlib-utl.ads,
45063 mlib.adb, namet.adb, namet.ads, namet.h, nlists.h, nmake.adb,
45064 nmake.ads, nmake.adt, opt.adb, opt.ads, osint.adb, osint.ads,
45065 output.adb, output.ads, par-ch2.adb, par-ch3.adb, par-ch5.adb,
45066 par-prag.adb, par-tchk.adb, par-util.adb, par.adb, prj-attr.adb,
45067 prj-dect.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj-part.adb,
45068 prj-proc.adb, prj-strt.adb, prj-tree.adb, prj-tree.ads, prj.adb,
45069 prj.ads, raise.c, raise.h, repinfo.adb, restrict.adb, restrict.ads,
45070 rident.ads, rtsfind.adb, rtsfind.ads, s-arit64.adb, s-asthan.adb,
45071 s-atacco.adb, s-atacco.ads, s-auxdec.adb, s-crc32.adb, s-crc32.ads,
45072 s-direio.adb, s-fatgen.adb, s-fileio.adb, s-finimp.adb,
45073 s-gloloc.adb, s-gloloc.ads, s-interr.adb, s-mastop.adb,
45074 s-mastop.ads, s-memory.adb, s-parame.ads, s-parint.adb,
45075 s-pooglo.adb, s-pooloc.adb, s-rpc.adb, s-secsta.adb, s-sequio.adb,
45076 s-shasto.adb, s-soflin.adb, s-soflin.ads, s-stache.adb,
45077 s-taasde.adb, s-taasde.ads, s-tadeca.adb, s-tadeca.ads,
45078 s-tadert.adb, s-tadert.ads, s-taenca.adb, s-taenca.ads,
45079 s-taprob.adb, s-taprop.ads, s-tarest.adb, s-tasdeb.adb,
45080 s-tasini.adb, s-tasini.ads, s-taskin.adb, s-taskin.ads,
45081 s-tasque.adb, s-tasque.ads, s-tasren.adb, s-tasren.ads,
45082 s-tassta.adb, s-tasuti.adb, s-tasuti.ads, s-tataat.adb,
45083 s-tataat.ads, s-tpoben.adb, s-tpoben.ads, s-tpobop.adb,
45084 s-tposen.adb, s-tposen.ads, s-traceb.adb, s-traceb.ads,
45085 s-unstyp.ads, s-widenu.adb, scn-nlit.adb, scn.adb, sem.adb,
45086 sem_aggr.adb, sem_attr.adb, sem_attr.ads, sem_case.adb,
45087 sem_ch10.adb, sem_ch11.adb, sem_ch11.ads, sem_ch12.adb,
45088 sem_ch13.adb, sem_ch13.ads, sem_ch2.adb, sem_ch3.adb, sem_ch3.ads,
45089 sem_ch4.adb, sem_ch5.adb, sem_ch6.adb, sem_ch6.ads, sem_ch7.adb,
45090 sem_ch8.adb, sem_ch8.ads, sem_ch9.adb, sem_disp.adb, sem_dist.adb,
45091 sem_elab.adb, sem_elim.adb, sem_elim.ads, sem_eval.adb,
45092 sem_intr.adb, sem_mech.adb, sem_prag.adb, sem_res.adb,
45093 sem_type.adb, sem_util.adb, sem_util.ads, sem_vfpt.adb,
45094 sem_warn.adb, sinfo.adb, sinfo.ads, sinfo.h, sinput-l.adb,
45095 sinput-l.ads, sinput.adb, sinput.ads, snames.adb, snames.ads,
45096 snames.h, sprint.adb, sprint.ads, stringt.adb, stringt.ads,
45097 stringt.h, style.adb, switch.adb, switch.ads, sysdep.c, system.ads,
45098 table.adb, targparm.adb, targparm.ads, targtyps.c, tbuild.adb,
45099 tbuild.ads, tracebak.c, trans.c, tree_gen.adb, tree_io.adb,
45100 treepr.adb, treepr.ads, treeprs.ads, treeprs.adt, ttypes.ads,
45101 types.adb, types.ads, types.h, uintp.ads, urealp.ads, usage.adb,
45102 utils.c, utils2.c, validsw.adb, xnmake.adb, xr_tabls.adb,
45103 xr_tabls.ads, xref_lib.adb, xref_lib.ads : Merge in ACT changes.
45105 * 1ssecsta.adb, 1ssecsta.ads, a-chlat9.ads, a-cwila9.ads,
45106 g-enblsp.adb, g-md5.adb, g-md5.ads, gnatname.adb, gnatname.ads,
45107 mkdir.c, osint-b.adb, osint-b.ads, osint-c.adb, osint-c.ads,
45108 osint-l.adb, osint-l.ads, osint-m.adb, osint-m.ads : New files
45110 * 3lsoccon.ads, 5qparame.ads, 5qvxwork.ads, 5smastop.adb,
45111 5zparame.ads, gnatmain.adb, gnatmain.ads, gnatpsys.adb : Removed
45113 * mdllfile.adb, mdllfile.ads, mdlltool.adb, mdlltool.ads : Renamed
45114 to mdll-fil.ad[bs] and mdll-util.ad[bs]
45116 * mdll-fil.adb, mdll-fil.ads, mdll-utl.adb, mdll-utl.ads : Renamed
45117 from mdllfile.ad[bs] and mdlltool.ad[bs]
45119 2002-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
45121 * utils.c (init_gnat_to_gnu, init_gigi_decls): Use ARRAY_SIZE in
45122 lieu of explicit sizeof/sizeof.
45124 2002-02-28 Neil Booth <neil@daikokuya.demon.co.uk>
45126 * misc.c (copy_lang_decl): Remove.
45128 2002-02-27 Zack Weinberg <zack@codesourcery.com>
45130 * misc.c: Delete traditional-mode-related code copied from the
45131 C front end but not used, or used only to permit the compiler
45134 2002-02-07 Richard Henderson <rth@redhat.com>
45136 * adaint.c (__gnat_to_gm_time): First arg is int, not time_t.
45137 * adaint.h (__gnat_to_gm_time): Update prototype.
45139 2002-01-30 Richard Henderson <rth@redhat.com>
45141 * trans.c (tree_transform) [N_Loop_Statement]: Use
45142 expand_exit_loop_top_cond.
45144 2001-12-23 Richard Henderson <rth@redhat.com>
45146 * utils.c (end_subprog_body): Push GC context around
45147 rest_of_compilation for nested functions.
45149 2001-12-23 Richard Henderson <rth@redhat.com>
45151 * 5nosinte.ads: Get definition of "int" from Interfaces.C.
45153 2001-12-23 Florian Weimer <fw@deneb.enyo.de>
45155 * gnat-style.texi (Declarations and Types): Remove ancient style
45156 rule which was mandated by code generation issues.
45158 * gnat-style.texi (header): Add @dircategory, @direntry.
45159 (title page): Remove date.
45160 (general) Add @./@: where approriate, and two spaces after the
45161 full stop at the end of a sentence. Use @samp markup when
45162 referring concrete lexical entities (keywords, attribute names
45163 etc.), and @syntax for ARM grammar elements. Use @r for English
45164 text in comments. Use @emph for emphasis. Change "if-statements"
45165 etc. to "if statements" (without @samp). Break long lines. Make
45166 casing of section names consistent.
45167 (Identifiers): Use @samp markup for variable names.
45168 (Comments): Use @samp markup for comment characters. Line-end
45169 comments may follow any Ada code, not just statements. Fix
45170 misspelling of "Integer" as "integer".
45171 (Loop statements): Do not use variable name "I", use "J".
45172 (Subprogram Declarations): Document alignment.
45173 (Subprogram Bodies, Block statements): Document empty line before
45176 2001-12-22 Florian Weimer <fw@deneb.enyo.de>
45178 * make.adb (Add_Switch): Make Generic_Position a procedure. The
45179 function approach did not work well because of a side effect (the
45180 function call could reallocate the table which was being indexed
45181 using its result). Fixes ada/4851.
45183 2001-12-19 Robert Dewar <dewar@gnat.com>
45185 * bindgen.adb: Minor reformatting
45187 * cstand.adb: Minor reformatting
45189 * fmap.adb: Minor reformatting
45190 Change name from Add for Add_To_File_Map (Add is much too generic)
45191 Change Path_Name_Of to Mapped_Path_Name
45192 Change File_Name_Of to Mapped_File_Name
45193 Fix copyright dates in header
45196 Change name from Add for Add_To_File_Map (Add is much too generic)
45197 Change Path_Name_Of to Mapped_Path_Name
45198 Change File_Name_Of to Mapped_File_Name
45199 Fix copyright dates in header
45201 * fname-uf.adb: Minor reformatting. New names of stuff in Fmap.
45202 Add use clause for Fmap.
45204 * make.adb: Minor reformatting
45206 * osint.adb: Minor reformatting. Change of names in Fmap.
45207 Add use clause for Fmap.
45209 * prj-env.adb: Minor reformatting
45211 * prj-env.ads: Minor reformatting
45213 * switch.adb: Minor reformatting. Do proper raise of Bad_Switch if
45214 error found (there were odd exceptions to this general rule in
45215 -gnatec/-gnatem processing)
45217 2001-12-19 Olivier Hainque <hainque@gnat.com>
45219 * raise.c (__gnat_eh_personality): Exception handling personality
45220 routine for Ada. Still in rough state, inspired from the C++ version
45221 and still containing a bunch of debugging artifacts.
45222 (parse_lsda_header, get_ttype_entry): Local (static) helpers, also
45223 inspired from the C++ library.
45225 * raise.c (eh_personality): Add comments. Part of work for the GCC 3
45226 exception handling integration.
45228 2001-12-19 Arnaud Charlet <charlet@gnat.com>
45230 * Makefile.in: Remove use of 5smastop.adb which is obsolete.
45231 (HIE_SOURCES): Add s-secsta.ad{s,b}.
45232 (HIE_OBJS): Add s-fat*.o
45233 (RAVEN_SOURCES): Remove files that are no longer required. Add
45234 interrupt handling files.
45235 (RAVEN_MOD): Removed, no longer needed.
45237 2001-12-19 Robert Dewar <dewar@gnat.com>
45239 * a-ngelfu.adb: Remove ??? comment for inappropriate Inline_Always
45240 Add 2001 to copyright date
45242 * g-regpat.adb: Change pragma Inline_Always to Inline. There is no
45243 need to force universal inlining for these cases.
45245 2001-12-19 Arnaud Charlet <charlet@gnat.com>
45247 * s-taprob.adb: Minor clean ups so that this unit can be used in
45250 * exp_ch7.adb: Allow use of secondary stack in HI mode.
45251 Disallow it when pragma Restrictions (No_Secondary_Stack) is specified.
45253 2001-12-19 Vincent Celier <celier@gnat.com>
45255 * prj-tree.ads (Project_Node_Record): Add comments for components
45256 Pkg_Id and Case_Insensitive.
45258 2001-12-19 Pascal Obry <obry@gnat.com>
45260 * g-socket.adb: Minor reformatting. Found while reading code.
45262 2001-12-19 Robert Dewar <dewar@gnat.com>
45264 * prj-tree.ads: Minor reformatting
45266 2001-12-20 Joseph S. Myers <jsm28@cam.ac.uk>
45268 * config-lang.in (diff_excludes): Remove.
45270 2001-12-17 Ed Schonberg <schonber@gnat.com>
45272 * sem_res.adb (Resolve_Selected_Component): do not generate a
45273 discriminant check if the selected component is a component of
45274 the argument of an initialization procedure.
45276 * trans.c (tree_transform, case of arithmetic operators): If result
45277 type is private, the gnu_type is the base type of the full view,
45278 given that the full view itself may be a subtype.
45280 2001-12-17 Robert Dewar <dewar@gnat.com>
45282 * sem_res.adb: Minor reformatting
45284 * trans.c (tree_transform, case N_Real_Literal): Add missing third
45285 parameter in call to Machine (unknown horrible effects from this
45288 * urealp.h: Add definition of Round_Even for call to Machine
45289 Add third parameter for Machine
45291 2001-12-17 Ed Schonberg <schonber@gnat.com>
45293 * sem_warn.adb (Check_One_Unit): Suppress warnings completely on
45294 predefined units in No_Run_Time mode.
45296 2001-12-17 Richard Kenner <kenner@gnat.com>
45298 * misc.c (insn-codes.h): Now include.
45300 2001-12-17 Olivier Hainque <hainque@gnat.com>
45302 * a-except.adb: Preparation work for future integration of the GCC 3
45303 exception handling mechanism
45304 (Notify_Handled_Exception, Notify_Unhandled_Exception): New routines
45305 to factorize previous code sequences and make them externally callable,
45306 e.g. for the Ada personality routine when the GCC 3 mechanism is used.
45307 (Propagate_Exception, Raise_Current_Excep, Raise_From_Signal_Handler):
45308 Use the new notification routines.
45310 2001-12-17 Emmanuel Briot <briot@gnat.com>
45312 * prj-tree.ads (First_Choice_Of): Document the when others case
45314 2001-12-17 Arnaud Charlet <charlet@gnat.com>
45316 * bindgen.adb (Gen_Ada_Init_*): Set priority of environment task in
45317 HI-E mode, in order to support Ravenscar profile properly.
45319 * cstand.adb (Create_Standard): Duration is a 32 bit type in HI-E
45320 mode on 32 bits targets.
45322 2001-12-17 Vincent Celier <celier@gnat.com>
45324 * fmap.adb: Initial version.
45326 * fmap.ads: Initial version.
45328 * fname-uf.adb (Get_File_Name): Use mapping if unit name mapped.
45329 If search is successfully done, add to mapping.
45331 * frontend.adb: Initialize the mapping if a -gnatem switch was used.
45334 (Gnatmake): Add new local variable Mapping_File_Name.
45335 Create mapping file when using project file(s).
45336 Delete mapping file before exiting.
45338 * opt.ads (Mapping_File_Name): New variable
45340 * osint.adb (Find_File): Use path name found in mapping, if any.
45342 * prj-env.adb (Create_Mapping_File): New procedure
45344 * prj-env.ads (Create_Mapping_File): New procedure.
45346 * switch.adb (Scan_Front_End_Switches): Add processing for -gnatem
45349 * usage.adb: Add entry for new switch -gnatem.
45351 * Makefile.in: Add dependencies for fmap.o.
45353 2001-12-17 Ed Schonberg <schonber@gnat.com>
45355 * sem_ch10.adb (Analyze_With_Clause): Retrieve proper entity when unit
45356 is a package instantiation rewritten as a package body.
45357 (Install_Withed_Unit): Undo previous change, now redundant.
45359 2001-12-17 Gary Dismuke <dismukes@gnat.com>
45362 (Compute_Length): Move conversion to Unsigned to callers.
45363 (Get_Max_Size): Convert Len expression to Unsigned after calls to
45364 Compute_Length and Determine_Range.
45365 (Layout_Array_Type): Convert Len expression to Unsigned after calls to
45366 Compute_Length and Determine_Range.
45367 Above changes fix problem with length computation for supernull arrays
45368 where Max (Len, 0) wasn't getting applied due to the Unsigned
45369 conversion used by Compute_Length.
45371 2001-12-17 Arnaud Charlet <charlet@gnat.com>
45374 (OK_To_Use_In_No_Run_Time_Mode): Allow Ada.Exceptions and
45375 System.Secondary_Stack.
45376 (OK_To_Use_In_Ravenscar_Mode): New table needed to implement Ravenscar
45378 Remove unused entity RE_Exception_Data.
45380 * rtsfind.adb (RTE): Allow Ravenscar Profile in HI mode.
45382 * rident.ads (No_Secondary_Stack): New restriction.
45384 2001-12-17 Joel Brobecker <brobecke@gnat.com>
45386 * gnat_rm.texi: Fix minor typos. Found while reading the section
45387 regarding "Bit_Order Clauses" that was sent to a customer.
45388 Very interesting documentation!
45390 2001-12-17 Robert Dewar <dewar@gnat.com>
45392 * sem_case.adb (Choice_Image): Avoid creating improper character
45393 literal names by using the routine Set_Character_Literal_Name. This
45394 fixes bombs in certain error message cases.
45396 2001-12-17 Arnaud Charlet <charlet@gnat.com>
45398 * a-reatim.adb: Minor reformatting.
45400 2001-12-17 Ed Schonberg <schonber@gnat.com>
45402 * sem_ch12.adb (Validate_Derived_Type_Instance): Handle properly the
45403 case where the formal is an extension of another formal in the current
45404 unit or in a parent generic unit.
45406 2001-12-17 Arnaud Charlet <charlet@gnat.com>
45408 * s-tposen.adb: Update comments. Minor reformatting.
45409 Minor code clean up.
45411 * s-tarest.adb: Update comments. Minor code reorganization.
45413 2001-12-17 Gary Dismukes <dismukes@gnat.com>
45415 * exp_attr.adb (Attribute_Tag): Suppress expansion of <type_name>'Tag
45418 2001-12-17 Robert Dewa <dewar@gnat.com>
45420 * exp_attr.adb: Minor reformatting
45422 2001-12-17 Ed Schonberg <schonber@gnat.com>
45424 * sem_ch3.adb (Build_Derived_Private_Type): Refine check to handle
45425 derivations nested within a child unit: verify that the parent
45426 type is declared in an outer scope.
45428 2001-12-17 Robert Dewar <dewar@gnat.com>
45430 * sem_ch12.adb: Minor reformatting
45432 2001-12-17 Ed Schonberg <schonber@gnat.com>
45434 * sem_warn.adb (Check_One_Unit): In No_Run_Time mode, do not post
45435 warning if current unit is a predefined one, from which bodies may
45438 2001-12-17 Robert Dewar <dewar@gnat.com>
45440 * eval_fat.ads: Add comment that Round_Even is referenced in Ada code
45441 Fix header format. Add 2001 to copyright date.
45443 * exp_dbug.adb (Get_Encoded_Name): Fix out of bounds reference,
45444 which caused CE during compilation if checks were enabled.
45446 2001-12-17 Vincent Celier <celier@gnat.com>
45449 (Switches_Of): New function
45450 (Test_If_Relative_Path): New procedure
45451 (Add_Switches): Use new function Switches_Of
45452 (Collect_Arguments_And_Compile): Use new function Switches_Of.
45453 When using a project file, test if there are any relative
45454 search path. Fail if there are any.
45455 (Gnatmake): Only add switches for the primary directory when not using
45456 a project file. When using a project file, change directory to the
45457 object directory of the main project file. When using a project file,
45458 test if there are any relative search path. Fail if there are any.
45459 When using a project file, fail if specified executable is relative
45460 path with directory information, and prepend executable, if not
45461 specified as an absolute path, with the exec directory. Make sure
45462 that only one -o switch is transmitted to the linker.
45464 * prj-attr.adb (Initialization_Data): Add project attribute Exec_Dir
45467 (Ada_Check): Get Spec_Suffix_Loc and Impl_Suffix_Loc,
45468 when using a non standard naming scheme.
45469 (Check_Ada_Naming_Scheme): Make sure that error messages
45470 do not raise exceptions.
45471 (Is_Illegal_Append): Return True if there is no dot in the suffix.
45472 (Language_Independent_Check): Check the exec directory.
45474 * prj.adb (Project_Empty): Add new component Exec_Directory
45477 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Add defaults.
45478 (Project_Data): Add component Exec_Directory
45480 * snames.adb: Updated to match snames.ads revision 1.215
45482 * snames.ads: Added Exec_Dir
45484 2001-12-17 Robert Dewar <dewar@gnat.com>
45486 * make.adb: Minor reformatting
45488 * prj-nmsc.adb: Minor reformatting
45490 * snames.adb: Updated to match snames.ads
45492 * snames.ads: Alphebetize entries for project file
45494 2001-12-17 Ed Schonberg <schonber@gnat.com>
45496 * trans.c (process_freeze_entity): Do nothing if the entity is a
45497 subprogram that was already elaborated.
45499 2001-12-17 Richard Kenner <kenner@gnat.com>
45501 * decl.c (gnat_to_gnu_entity, object): Do not back-annotate Alignment
45502 and Esize if object is referenced via pointer.
45504 2001-12-17 Ed Schonberg <schonber@gnat.com>
45506 * sem_ch3.adb (Analyze_Variant_Part): check that type of discriminant
45507 is discrete before analyzing choices.
45509 2001-12-17 Joel Brobecker <brobecke@gnat.com>
45511 * bindgen.adb (Gen_Output_File_Ada): Generate a new C-like string
45512 containing the name of the Ada Main Program. This string is mainly
45513 intended for the debugger.
45514 (Gen_Output_File_C): Do the equivalent change when generating a C file.
45516 2001-12-17 Robert Dewar <dewar@gnat.com>
45518 * ali.adb: Set new Dummy_Entry field in dependency entry
45520 * ali.ads: Add Dummy_Entry field to source dependency table
45522 * bcheck.adb (Check_Consistency): Ignore dummy D lines
45524 * lib-writ.adb (Writ_ALI): Write dummy D lines for missing source files
45526 * lib-writ.ads: Document dummy D lines for missing files.
45528 * types.ads: (Dummy_Time_Stamp): New value for non-existant files
45530 2001-12-17 Robert Dewar <dewar@gnat.com>
45532 * ali.adb: Type reference does not reset current file.
45534 * ali.adb: Recognize and scan renaming reference
45536 * ali.ads: Add spec for storing renaming references.
45538 * lib-xref.ads: Add documentation for handling of renaming references
45540 * lib-xref.adb: Implement output of renaming reference.
45543 (Determine_Range): Document local variables
45544 (Determine_Range): Make sure Hbound is initialized. It looks as though
45545 there could be a real problem here with an uninitialized reference
45546 to Hbound, but no actual example of failure has been found.
45548 2001-12-17 Laurent Pautet <pautet@gnat.com>
45551 Fix comment of Shutdown_Socket and Close_Socket. These functions
45552 should not fail silently because if they are called twice, this
45553 probably means that there is a race condition in the user program.
45554 Anyway, this behaviour is consistent with the rest of this unit.
45555 When an error occurs, an exception is raised with the error message
45556 as exception message.
45558 2001-12-17 Robert Dewar <dewar@gnat.com>
45560 * frontend.adb: Move call to Check_Unused_Withs from Frontend, so
45561 that it happens before modification of Sloc values for -gnatD.
45563 * gnat1drv.adb: Move call to Check_Unused_Withs to Frontend,
45564 so that it happens before modification of Sloc values for -gnatD.
45566 * switch.adb: Minor reformatting
45568 2001-12-15 Richard Henderson <rth@redhat.com>
45570 * sem_ch7.adb: Wrap comment.
45572 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
45574 * 5ataprop.adb, 5atpopsp.adb, 5ftaprop.adb, 5gmastop.adb,
45575 5gtaprop.adb, 5htaprop.adb, 5itaprop.adb, 5lintman.adb,
45576 5omastop.adb, 5oosinte.adb, 5otaprop.adb, 5staprop.adb,
45577 5vinterr.adb, 5vtaprop.adb, 5vtpopde.adb, 5wintman.adb,
45578 5wtaprop.adb, 5zinterr.adb, 5ztaprop.adb, 6vcstrea.adb,
45579 7sintman.adb, 7staprop.adb, 9drpc.adb, ChangeLog, Makefile.in,
45580 a-except.adb, a-tags.ads, a-tasatt.adb, a-teioed.adb,
45581 a-textio.ads, a-witeio.ads, a-wtedit.adb, ali.ads, comperr.adb,
45582 cstand.adb, einfo.ads, errout.adb, exp_ch11.adb, exp_ch2.adb,
45583 exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb, exp_ch9.adb,
45584 exp_util.adb, exp_util.ads, fname-uf.adb, g-cgi.ads, g-exctra.ads,
45585 g-expect.ads, g-regist.adb, g-spipat.adb, gnatchop.adb,
45586 gnatlink.adb, gnatls.adb, gnatmain.adb, gnatmem.adb, init.c,
45587 make.adb, make.ads, mdlltool.adb, nlists.ads, osint.ads,
45588 par-ch3.adb, par-ch4.adb, par-ch5.adb, par-ch6.adb, par.adb,
45589 repinfo.adb, s-fatflt.ads, s-fatlfl.ads, s-fatllf.ads,
45590 s-fatsfl.ads, s-finimp.adb, s-finimp.ads, s-interr.adb,
45591 s-secsta.ads, s-shasto.ads, s-stalib.adb, s-stalib.ads,
45592 s-tarest.ads, s-tasdeb.adb, s-tassta.adb, s-tassta.ads,
45593 s-vaflop.ads, scans.ads, scn.adb, sem.ads, sem_aggr.adb,
45594 sem_attr.adb, sem_case.ads, sem_ch10.adb, sem_ch12.adb,
45595 sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch5.adb, sem_ch7.adb,
45596 sem_ch8.adb, sem_ch8.ads, sem_type.adb, sem_util.ads, sinfo.ads,
45597 sprint.adb, tbuild.ads, types.ads, utils.c, xeinfo.adb: Fix
45600 2001-12-14 Vincent Celier <celier@gnat.com>
45602 * osint.adb(Create_Debug_File): When an object file is specified,
45603 put the .dg file in the same directory as the object file.
45605 2001-12-14 Robert Dewar <dewar@gnat.com>
45607 * osint.adb: Minor reformatting
45609 * lib-xref.adb (Output_Instantiation): New procedure to generate
45610 instantiation references.
45612 * lib-xref.ads: Add documentation of handling of generic references.
45614 * ali.adb (Read_Instantiation_Ref): New procedure to read
45615 instantiation references
45617 * ali.ads: Add spec for storing instantiation references
45619 * bindusg.adb: Minor reformatting
45621 * switch.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
45623 * usage.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
45625 * gnatcmd.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
45627 * csets.adb: Add entry for Latin-5 (Cyrillic ISO-8859-5)
45631 Add 2001 to copyright date
45632 Add entry for Latin-5 (Cyrillic ISO-8859-5)
45634 2001-12-14 Matt Gingell <gingell@gnat.com>
45636 * adaint.c: mktemp is a macro on Lynx and can not be used as an
45639 2001-12-14 Richard Kenner <kenner@gnat.com>
45641 * misc.c (gnat_expand_constant): Do not strip UNCHECKED_CONVERT_EXPR
45642 if operand is CONSTRUCTOR.
45644 2001-12-14 Ed Schonberg <schonber@gnat.com>
45646 * trans.c (tree_transform, case N_Assignment_Statement): Set lineno
45647 before emiting check on right-hand side, so that exception information
45650 2001-12-14 Richard Kenner <kenner@gnat.com>
45652 * utils.c (create_var_decl): Throw away initializing expression
45653 if just annotating types and non-constant.
45655 2001-12-14 Vincent Celier <celier@gnat.com>
45657 * prj-nmsc.adb: (Ada_Check): Migrate drom Ada_Default_... to
45660 * prj.adb: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
45662 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move to spec.
45664 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
45666 (Default_Ada_Spec_Suffix, Default_Ada_Impl_Suffix): Move from body.
45668 2001-12-16 Joseph S. Myers <jsm28@cam.ac.uk>
45670 * ChangeLog: Remove piece of diff output.
45672 2001-12-14 Geert Bosch <bosch@gnat.com>
45674 * config-lang.in: Update copyright notice
45676 * layout.adb: Remove commented out code.
45678 * mdllfile.ads: Update copyright notice. Fix header format.
45680 * sem_case.ads: Likewise.
45682 * sem_ch3.adb: Minor reformatting.
45684 2001-12-12 Geert Bosch <bosch@gnat.com>
45686 * freeze.ads: Update copyright date.
45688 * g-comlin.ads: Minor reformatting.
45690 * gnat-style.texi: Fix typo.
45692 2001-12-12 Geert Bosch <bosch@gnat.com>
45694 * einfo.h: Regenerate.
45696 2001-12-12 Ed Schonberg <schonber@gnat.com>
45698 * sem_ch12.adb (Save_Entity_Descendant): Use syntactic field names
45699 on known node types, rather than untyped fields. Further cleanups.
45701 2001-12-12 Robert Dewar <dewar@gnat.com>
45704 (Save_Entity_Descendant): Minor comment update.
45705 (Copy_Generic_Node): Deal with incorrect reference to Associated_Node
45706 of an N_Attribute_Reference node. As per note below, this does not
45707 eliminate need for Associated_Node in attribute ref nodes.
45708 (Associated_Node): Documentation explicitly mentions attribute
45709 reference nodes, since this field is used in such nodes.
45711 * sem_ch12.adb (Associated_Node): Minor documentation cleanup.
45713 2001-12-12 Robert Dewar <dewar@gnat.com>
45715 * s-stalib.adb: Add more comments on with statements being needed
45717 * par-ch12.adb: Minor reformatting
45719 * prj-dect.ads: Fix copyright header
45721 * s-arit64.adb (Multiply_With_Ovflo_Check): Fix case where both
45722 inputs fit in 32 bits, but the result still overflows.
45724 * s-fatgen.ads: Minor comment improvement
45726 2001-12-12 Ed Schonberg <schonber@gnat.com>
45728 * sem_ch4.adb (Analyze_Selected_Component): If the prefix is of a
45729 formal derived type, look for an inherited component from the full
45730 view of the parent, if any.
45732 2001-12-12 Robert Dewar <dewar@gnat.com>
45734 * checks.ads (Apply_Alignment_Check): New procedure.
45736 * exp_ch13.adb (Expand_N_Freeze_Entity): Generate dynamic check to
45737 ensure that the alignment of objects with address clauses is
45738 appropriate, and raise PE if not.
45740 * exp_util.ads (Must_Be_Aligned): Removed, replaced by
45741 Exp_Pakd.Known_Aligned_Enough
45743 * mdllfile.ads: Minor reformatting
45745 * mlib-fil.ads: Minor reformatting
45747 2001-12-12 Ed Schonberg <schonber@gnat.com>
45749 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Extend previous
45750 fix to any component reference if enclosing record has non-standard
45753 2001-12-12 Vincent Celier <celier@gnat.com>
45755 * g-dirope.ads (Find, Wildcard_Iterator): Moved to child package
45758 2001-12-12 Ed Schonberg <schonber@gnat.com>
45760 * freeze.ads: Make Freeze_Fixed_Point_Type visible, for use in
45763 2001-12-12 Robert Dewar <dewar@gnat.com>
45765 * impunit.adb: Add entry for GNAT.Directory_Operations.Iteration
45767 2001-12-12 Emmanuel Briot <briot@gnat.com>
45769 * g-regexp.adb: Remove all debug code, since it isn't required anymore,
45770 and it adds dependencies to system.io.
45772 2001-12-12 Pascal Obry <obry@gnat.com>
45774 * g-dirope.adb (Expand_Path.Var): Correctly detect end of
45777 2001-12-11 Ed Schonberg <schonber@gnat.com>
45779 * sem_ch10.adb (Install_Withed_Unit): If the unit is a generic instance
45780 that is the parent of other generics, the instance body replaces the
45781 instance node. Retrieve the instance of the spec, which is the one
45782 that is visible in clients and within the body.
45784 2001-12-11 Vincent Celier <celier@gnat.com>
45786 * gnatmain.adb: Initial version.
45788 * gnatmain.ads: Initial version.
45790 * prj-attr.adb (Initialisation_Data): Add package Gnatstub.
45792 * snames.adb: Updated to match snames.ads.
45794 * snames.ads: Added Gnatstub.
45796 2001-12-11 Vincent Celier <celier@gnat.com>
45798 * prj-attr.adb (Initialization_Data): Change name from
45799 Initialisation_Data.
45801 2001-12-11 Emmanuel Briot <briot@gnat.com>
45803 * g-regpat.adb (Parse_Literal): Properly handle simple operators ?,
45804 + and * applied to backslashed expressions like \r.
45806 2001-12-11 Vasiliy Fofanov <fofanov@gnat.com>
45808 * g-os_lib.ads: String_List type added, Argument_List type is now
45809 subtype of String_List.
45811 2001-12-11 Robert Dewar <dewar@gnat.com>
45813 * g-os_lib.ads: Change copyright to FSF
45814 Add comments for String_List type
45816 2001-12-11 Vincent Celier <celier@gnat.com>
45818 * g-dirope.adb (Expand_Path): Fix bug. (wrong length when adding a
45819 string to the buffer).
45821 2001-12-11 Ed Schonberg <schonber@gnat.com>
45823 * freeze.adb: Make Freeze_Fixed_Point_Type visible, for use in
45826 * sem_attr.adb: Simplify previous fix for Address.
45827 (Set_Bounds): If prefix is a non-frozen fixed-point type, freeze now,
45828 to avoid anomalies where the bound of the type appears to raise
45831 2001-12-11 Robert Dewar <dewar@gnat.com>
45833 * lib-xref.adb (Output_Refs): Make sure pointers are always properly
45836 2001-12-11 Ed Schonber <schonber@gnat.com>
45838 * sem_ch12.adb (Analyze_Subprogram_Instantiation): Check for a
45839 renamed unit before checking for recursive instantiations.
45841 2001-12-11 Emmanuel Briot <briot@gnat.com>
45843 * prj.ads: Add comments for some of the fields.
45845 2001-12-11 Robert Dewar <dewar@gnat.com>
45847 * lib-xref.adb (Output_Refs): Don't output type references outside
45848 the main unit if they are not otherwise referenced.
45850 2001-12-11 Ed Schonberg <schonber@gnat.com>
45852 * sem_attr.adb (Analyze_attribute, case Address and Size): Simplify
45853 code and diagnose additional illegal uses
45855 * sem_util.adb (Is_Object_Reference): An indexed component is an
45856 object only if the prefix is.
45858 2001-12-11 Vincent Celier <celier@gnat.com>
45860 * g-diopit.adb: Initial version.
45862 * g-diopit.ads: Initial version.
45865 (Expand_Path): Avoid use of Unbounded_String
45866 (Find, Wildcard_Iterator): Moved to child package Iteration
45868 * Makefile.in: Added g-diopit.o to GNATRTL_NONTASKING_OBJS
45870 2001-12-11 Robert Dewar <dewar@gnat.com>
45872 * sem_attr.adb: Minor reformatting
45874 2001-12-11 Ed Schonberg <schonber@gnat.com>
45876 * sem_ch3.adb: Clarify some ???.
45878 2001-12-11 Robert Dewar <dewar@gnat.com>
45880 * exp_util.adb (Must_Be_Aligned): Removed, replaced by
45881 Exp_Pakd.Known_Aligned_Enough
45883 * sem_ch13.adb (Check_Address_Alignment): Removed, extended
45884 version is moved to Exp_Ch13.
45886 2001-12-11 Robert Dewar <dewar@gnat.com>
45888 * einfo.ads: Minor reformatting
45890 * exp_ch5.adb: Add comment for previous.change
45892 * ali.adb: New interface for extended typeref stuff.
45894 * ali.ads: New interface for typeref stuff.
45896 * checks.adb (Apply_Alignment_Check): New procedure.
45898 * debug.adb: Add -gnatdM for modified ALI output
45900 * exp_pakd.adb (Known_Aligned_Enough): Replaces Known_Aligned_Enough.
45902 * lib-xref.adb: Extend generation of <..> notation to cover
45903 subtype/object types. Note that this is a complete rewrite,
45904 getting rid of the very nasty quadratic algorithm previously
45905 used for derived type output.
45907 * lib-xref.ads: Extend description of <..> notation to cover
45908 subtype/object types. Uses {..} for these other cases.
45909 Also use (..) for pointer types.
45911 * sem_util.adb (Check_Potentially_Blocking_Operation): Slight cleanup.
45913 * exp_pakd.adb: Minor reformatting. Note that prevous RH should say:
45914 (Known_Aligned_Enough): Replaces Must_Be_Aligned.
45916 2001-12-11 Vincent Celier <celier@gnat.com>
45919 Changed /COMPILE_ONLY to /ACTIONS=COMPILE
45920 Changed /BIND_ONLY to /ACTIONS=BIND
45921 Changed /LINK_ONLY to /ACTIONS=LINK
45923 2001-12-11 Ed Schonberg <schonber@gnat.com>
45925 * sem_ch8.adb (Find_Selected_Component): improved search for a
45926 candidate package in case of error.
45928 * sem_ch12.adb (Inline_Instance_Body): place head of use_clause
45929 chain back on scope stack before reinstalling use clauses.
45931 * exp_ch5.adb (Expand_N_If_Statement): if Constant_Condition_Warnings
45932 is enabled, do not kill the code for the condition, to preserve
45935 2001-12-11 Robert Dewar <dewar@gnat.com>
45937 * checks.adb (Insert_Valid_Check): Apply validity check to expression
45938 of conversion, not to result of conversion.
45940 2001-12-11 Ed Schonberg <schonber@gnat.com>
45942 * sem_ch3.adb (Build_Derived_Record_Type): set Controlled flag
45943 before freezing parent. If the declarations are mutually recursive,
45944 an access to the current record type may be frozen before the
45945 derivation is complete.
45947 2001-12-05 Vincent Celier <celier@gnat.com>
45949 * gnatcmd.adb: (MAKE): Add new translations: -b /BIND_ONLY,
45950 -c /COMPILE_ONLY, -l /LINK_ONLY
45953 (Bind_Only): New Flag
45954 (Link_Only): New flag
45956 * switch.adb (Scan_Make_Switches): Add processing for -b (Bind_Only)
45959 * makeusg.adb: Add new switches -b and -l. Update Copyright notice.
45962 (Do_Compile_Step, Do_Bind_Step, Do_Link_Step): New flags.
45963 (Gnatmake): Set the step flags. Only perform a step if the
45964 corresponding step flag is True.
45965 (Scan_Make_Arg): Reset the bind and link step flags when -u
45966 or -gnatc has been specified.
45968 2001-12-05 Ed Schonberg <schonber@gnat.com>
45970 * sem_eval.adb (Eval_Concatenation): If left operand is a null string,
45971 get bounds from right operand.
45973 * sem_eval.adb: Minor reformatting
45975 * exp_util.adb (Make_Literal_Range): use bound of literal rather
45976 than Index'First, its lower bound may be different from 1.
45978 * exp_util.adb: Undo earlier change, fixes ACVC regressions C48009B
45981 2001-12-05 Vincent Celier <celier@gnat.com>
45983 * prj-nmsc.adb Minor reformatting
45985 * prj-nmsc.adb (Language_Independent_Check): Reset Library flag if
45986 set and libraries are not supported.
45988 2001-12-05 Ed Schonberg <schonber@gnat.com>
45990 * sem_ch3.adb (Build_Derived_Private_Type): set Public status of
45991 private view explicitly, so the back-end can treat as a global
45994 2001-12-05 Ed Schonberg <schonber@gnat.com>
45996 * sem_ch12.adb (Instantiate_Package_Body): if instance is a compilation
45997 unit, always replace instance node with new body, for ASIS use.
45999 2001-12-05 Vincent Celier <celier@gnat.com>
46001 * prj-nmsc.adb (Language_Independent_Check): Issue a warning if
46002 libraries are not supported and both attributes Library_Name and
46003 Library_Dir are specified.
46005 * prj-proc.adb (Expression): Set location of Result to location of
46008 * Makefile.in: Add mlib.o, mlib-fil.o, mlib-tgt and mlib-utl to GNATLS.
46009 (prj-nmsc is now importing MLib.Tgt)
46011 * prj-proc.adb: Put the change indicated above that was forgotten.
46013 2001-12-05 Robert Dewar <dewar@gnat.com>
46015 * Makefile.in: Add dependencies for System.IO for GNAT.Regexp
46017 2001-12-05 Ed Schonberg <schonber@gnat.com>
46019 * sem_ch3.adb (Build_Derived_Concurrent_Type): If derivation imposes a
46020 constraint, introduce explicit subtype declaration and derive from it.
46022 * sem_ch3.adb: Minor reformatting
46024 2001-12-05 Robert Dewar <dewar@gnat.com>
46026 * checks.adb (Determine_Range): Increase cache size for checks.
46029 * exp_ch6.adb: Minor reformatting
46030 (Expand_N_Subprogram_Body): Reset Is_Pure for any subprogram that has
46031 a parameter whose root type is System.Address, since treating such
46032 subprograms as pure in the code generator is almost surely a mistake
46033 that will lead to unexpected results.
46035 * exp_util.adb (Remove_Side_Effects): Clean up old ??? comment and
46036 change handling of conversions.
46038 * g-regexp.adb: Use System.IO instead of Ada.Text_IO.
46040 2001-12-05 Ed Schonberg <schonber@gnat.com>
46042 * sem_ch3.adb (Analyze_Object_Declaration): If expression is an
46043 aggregate with static wrong size, attach generated Raise node to
46046 2001-12-05 Robert Dewar <dewar@gnat.com>
46048 * sem_attr.adb (Analyze_Attribute): Defend against bad Val attribute.
46049 Fixes compilation abandoned bomb in B24009B.
46051 2001-12-05 Ed Schonberg <schonber@gnat.com>
46054 Document use of Associated_Node on Selected_Components.
46055 (Save_Global_Operand_Descendants): Change to Save_Entity_Descendants,
46056 to clarify use of untyped descendant fields.
46058 2001-12-05 Robert Dewar <dewar@gnat.com>
46060 * prj-dect.ads: Add ??? comment
46061 Add 2001 to copyright notice (was not done in after all)
46063 * prj-part.adb: Minor reformatting. Reword one awkward error message.
46065 * prj.ads: Minor reformatting throughout, and add some ??? comments
46067 * snames.ads: Minor reformatting
46069 2001-12-05 Geert Bosch <bosch@gnat.com>
46071 * snames.adb: Autoupdate
46073 2001-12-05 Vincent Celier <celier@gnat.com>
46075 * prj-dect.adb (Parse): Rename parameter Modifying to Extends.
46077 * prj-dect.ads (Parse): Rename parameter Modifying to Extends.
46079 * prj-env.adb: Minor comment changes (modifying -> extends).
46081 * prj-nmsc.adb: Minor comment changes (modifying -> extends).
46083 * prj-part.adb (Parse_Single_Project): Change Tok_Modifying to
46086 * prj.adb (Initialize): Change Modifying to Extends.
46088 * scans.ads (Token_Type): Change Tok_Modifying to Tok_Extends.
46090 * prj.ads: Minor comment change (Modifying -> extending).
46092 * snames.ads: Change modifying to extends.
46094 2001-12-05 Robert Dewar <dewar@gnat.com>
46096 * sem_warn.adb: Remove stuff for conditionals, we are not going to
46099 * sem_warn.ads: Remove stuff for conditionals, we are not going to
46100 do this after all. Add 2001 to copyright notice
46102 2001-12-04 Geert Bosch <bosch@gnat.com>
46104 * einfo.h, sinfo.h, treeprs.ads: Regenerate.
46106 2001-12-04 Robert Dewar <dewar@gnat.com>
46108 * errout.adb (Error_Msg): Ignore attempt to put error msg at junk
46109 location if we already have errors. Stops some cases of cascaded
46112 * errout.adb: Improve comment.
46114 2001-12-04 Robert Dewar <dewar@gnat.com>
46117 (Analyze_Formal_Type_Definition): Defend against Error.
46118 (Analyze_Formal_Subprogram): Defend against Error.
46120 * par-ch12.adb (F_Formal_Type_Declaration): In case of error,
46121 remove following semicolon if present. Removes cascaded error.
46123 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
46126 (Gen_Exception_Table_Ada): Write "begin" and then return if Num
46127 exceptions equals 0.
46128 (Gen_Exception_Table_C): Return if Num exceptions equals 0.
46129 Fixes PIWG E tests (which have to be run with -gnatL).
46131 2001-12-04 Robert Dewar <dewar@gnat.com>
46133 * einfo.ads: Minor reformatting
46135 2001-12-04 Ed Schonberg <schonber@gnat.com>
46137 * einfo.ads: Block_Node points to the identifier of the block, not to
46138 the block node itself, to preserve the link when the block is
46139 rewritten, e.g. within an if-statement with a static condition.
46141 * inline.adb (Cleanup_Scopes): recover block statement from block
46142 entity using new meaning of Block_Node.
46144 * sem_ch5.adb (Analyze_Block_Statement): set Block_Node to point to
46145 identifier of block node, rather than to node itself.
46147 2001-12-04 Gary Dismukes <dismukes@gnat.com>
46150 (Get_Max_Size): Fix "start of processing" comment to say Get_Max_Size.
46151 (Discrimify): Go back to setting the Etypes of the selected component
46152 because the Vname component does not exist at this point and will
46153 fail name resolution. Also set Analyzed.
46154 Remove with and use of Sem_Res.
46156 2001-12-04 Arnaud Charlet <charlet@gnat.com>
46158 * Makefile.in: (HIE_SOURCES): add s-fat*.
46160 2001-12-04 Robert Dewar <dewar@gnat.com>
46163 (Compile_Time_Known_Attribute): New procedure.
46164 (Eval_Attribute, case Size): Use Compile_Time_Known_Attribute to ensure
46165 proper range check.
46167 2001-12-04 Ed Schonberg <schonber@gnat.com>
46169 * sem_ch7.adb (New_Private_Type): Set Is_Tagged_Type flag before
46170 processing discriminants to diagnose illegal default values.
46172 2001-12-04 Ed Schonberg <schonber@gnat.com>
46174 * sem_attr.adb (Resolve_Attribute): Handle properly an non-classwide
46175 access discriminant within a type extension that constrains its
46176 parent discriminants.
46178 2001-12-04 Ed Schonberg <schonber@gnat.com>
46180 * sem_ch3.adb (Find_Type_Of_Subtype_Indic): If subtype indication
46181 is malformed, use instance of Any_Id to allow analysis to proceed.
46183 * par-ch12.adb (P_Formal_Type_Declaration): Propagate Error if
46184 type definition is illegal.
46185 (P_Formal_Derived_Type_Definition): Better recovery when TAGGED is
46188 2001-12-04 Ed Schonberg <schonber@gnat.com>
46190 * sem_warn.adb (Output_Unreferenced_Messages): Extend previous fix to
46193 2001-12-04 Robert Dewar <dewar@gnat.com>
46195 * errout.adb: Minor reformatting
46197 2001-12-04 Robert Dewar <dewar@gnat.com>
46199 * exp_util.adb: Minor reformatting from last change
46201 * errout.adb (Check_For_Warning): For a Raised_Constraint_Error node
46202 which is a rewriting of an expression, traverse the original
46203 expression to remove warnings that may have been posted on it.
46205 2001-12-04 Ed Schonberg <schonber@gnat.com>
46207 * exp_util.adb (Must_Be_Aligned): Return false for a component of a
46208 record that has other packed components.
46210 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
46212 * adaint.c: Minor cleanups.
46214 2001-12-04 Douglass B. Rupp <rupp@gnat.com>
46216 * adaint.c: Do not use utime.h on vxworks.
46218 2001-12-04 Arnaud Charlet <charlet@gnat.com>
46220 * Makefile.adalib: Clarify step 3 (use of gnat.adc) as it causes
46221 more confusion than it solves.
46223 2001-12-04 Geert bosch <bosch@gnat.com>
46225 * einfo.h, nmake.adb, nmake.ads, sinfo.h treeprs.ads: Regenerate.
46227 2001-12-04 Geert Bosch <bosch@gnat.com>
46229 * Makefile.in (update-sources): New target.
46230 For use by gcc_release script.
46232 2001-12-04 Ed Schonberg <schonber@gnat.com>
46234 * sem_prag.adb (Analyze_Pragma, case Validity_Checks): do not treat as
46235 a configuration pragma, it is now legal wherever a pragma can appear.
46237 2001-12-04 Zack Weinberg <zack@codesourcery.com>
46239 * Makefile.in: Don't set ALL. Delete @cross_defines@,
46240 @cross_overrides@, @build_overrides@ stanzas. INTERNAL_CFLAGS
46241 is now @CROSS@ -DIN_GCC; update comment.
46243 2001-12-04 Robert Dewar <dewar@gnat.com>
46245 * einfo.adb (Has_Pragma_Pure_Function): New flag.
46246 Fix problem that stopped ceinfo from working
46248 * einfo.ads (Has_Pragma_Pure_Function): New flag.
46250 * sem_prag.adb (Pure_Function): Set new flag Has_Pragma_Pure_Function.
46252 2001-12-04 Douglas B. Rupp <rupp@gnat.com>
46255 (File_Time_Stamp): New procedure.
46256 (Preserve_Mode): New boolean.
46257 (Write_Unit): Pass time stamp.
46258 Implement -p switch (preserve time stamps).
46260 * gnatcmd.adb (CHOP): Add translation for -p (/PRESERVE).
46262 * gnatchop.adb: Do usage info for -p switch
46264 * adaint.h (__gnat_set_file_time_name): New function
46266 * adaint.c (__gnat_set_file_time_name): Implement
46268 * adaint.h: Fix typo
46270 2001-12-03 Robert Dewar <dewar@gnat.com>
46272 * sinfo.ads: Minor reformatting. N_Freeze_Entity node does not
46273 have Associated_Node.
46275 2001-12-03 Robert Dewar <dewar@gnat.com>
46277 * prj-proc.adb: Minor reformatting
46279 * make.adb: Minor reformatting
46281 2001-12-03 Geert Bosch <bosch@gnat.com>
46283 * make.adb: Minor reformatting.
46285 2001-12-03 Robert Dewar <dewar@gnat.com>
46287 * sem_ch12.adb: Minor reformatting
46289 2001-12-03 Ed Schonberg <schonber@gnat.com>
46291 * sem_ch12.adb (Inline_Instance_Body): Use Save_Scope_Stack and
46292 push Standard on the stack before analyzing the instance body,
46293 in order to have a clean visibility environment.
46295 * sem_ch12.adb (Inline_Instance_Body): Remove redundant code.
46297 2001-12-03 Ed Schonberg <schonber@gnat.com>
46299 * sem_ch12.adb (Instantiate_Package_Body): Protect against double
46300 instantiation of a body that contains an inlined body.
46302 2001-12-03 Ed Schonberg <schonber@gnat.com>
46305 (Analyze_generic_subprogram_Declaration): Set outer_generic_scope,
46306 to prevent freezing within formal packages.
46307 (Freeze_Subprogram_Body): If body comes from another instance that
46308 appeared before its own body, place freeze node at end of current
46309 declarative part, to prevent a back-end crash.
46310 (Inline_Instance_Body): Handle properly a package instance within
46311 a subprogram instance that is a child unit.
46313 2001-12-01 Graham Stott <grahams@redhat.com>
46315 * Makefile.in (misc.o): Add missing $(srcdir) prefix
46316 and add optabs.h dependency.
46318 * misc.c: Include optabs.h
46319 (gnat_tree_code_type): Make static and const.
46320 (gnat_tree_code_length): Likewise.
46321 (gnat_tree_code_name): Likewise.
46322 (update_setjmp_buf): Obtain operands mode from insn_data.
46324 2001-11-29 Richard Henderson <rth@redhat.com>
46326 * init.c: Remove obsolete dwarf2 frame.h section.
46328 2001-11-29 Joseph S. Myers <jsm28@cam.ac.uk>
46330 * Make-lang.in (ada.generated-manpages): New dummy target.
46332 2001-11-29 Ed Schonberg <schonber@gnat.com>
46334 * g-os_lib.adb (Add_To_Command): use explicit loop to move string
46335 into Command, an array conversion is illegal here. Uncovered by
46338 2001-11-28 Geert Bosch <bosch@gnat.com>
46340 * init.c: Minor whitespace changes.
46342 2001-11-28 Doug Rupp <rupp@gnat.com>
46344 * init.c: (__gnat_install_handler,VMS): Increase size of alternate
46347 2001-11-28 Zack Weinberg <zack@codesourcery.com>
46349 * misc.c (gnat_expand_constant): Move declaration above
46350 definition of lang_hooks.
46351 (LANG_HOOKS_EXPAND_CONSTANT): Set to gnat_expand_constant.
46352 (gnat_init): lang_expand_constant no longer exists.
46354 (internal_error_function): Remove #ifdef HAVE_VPRINTF. We
46355 always have vprintf.
46356 (gnat_init): Always call set_internal_error_function.
46358 2001-11-27 Andreas Jaeger <aj@suse.de>
46360 * Makefile.in (stamp-tool_src_dir): Use symbolic link.
46362 2001-11-27 Laurent Guerby <guerby@acm.org>
46364 * Makefile.in: Regenerate Ada dependencies.
46366 2001-11-26 Richard Henderson <rth@redhat.com>
46368 * Make-lang.in (gnatbind, gnatmake, gnatbl, gnatchop, gnatcmd,
46369 gnatlink, gnatkr, gnatls, gnatmem, gnatprep, gnatpsta, gnatpsys,
46370 gnatxref, gnatfind, gnatlbr): Depend on CONFIG_H and prefix.o.
46372 2001-11-25 Laurent Guerby <guerby@acm.org>
46374 * sysdep.c (rts_get_*): Fix style.
46376 2001-11-19 Laurent Guerby <guerby@acm.org>
46378 * Makefile.in (INCLUDES_FOR_SUBDIR): Remove redundant system include
46379 since it is of no apparent use and cause warnings.
46381 2001-11-18 Neil Booth <neil@daikokuya.demon.co.uk>
46383 * misc.c (gnat_decode_option, gnat_init_options): Make definitions
46385 (gnat_init): Don't return NULL.
46386 (finish_parse): Remove.
46388 2001-11-17 Laurent Guerby <guerby@acm.org>
46390 * Make-lang.in (GNATLIBFLAGS): Add -W -Wall.
46391 * gigi.h (init_decl_processing): Rename to gnat_init_decl_processing.
46392 * io-aux.c: Provide K&R prototypes to all functions, reformat code.
46393 * lang-spec.h: Add missing struct field to silence warnings.
46394 * sysdep.c (rts_get_*): Provide K&R prototype.
46395 * sysdep.c (Unlock_Task, Lock_Task): Move to K&R prototype.
46396 * traceback.c (Unlock_Task, Lock_Task): Likewise.
46397 * tracebak.c (__gnat_backtrace): Remove unused variable.
46398 * utils.c (end_subprog_body): Move to K&R style.
46400 Thu Nov 15 18:16:17 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
46402 * trans.c, utils2.c: Remove PALIGN parameter to get_inner_reference.
46404 2001-11-15 Neil Booth <neil@daikokuya.demon.co.uk>
46406 * misc.c (gnat_init): Change prototype. Include the
46407 functionality of the old init_parse and init_decl_processing.
46408 (gnat_init_decl_processing): New prototype.
46409 (init_parse): Remove.
46410 * utils.c (init_decl_processing): Rename gnat_init_decl_processing.
46412 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
46414 * misc.c (gnat_print_decl, gnat_print_type): Renamed.
46415 (LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE): Override.
46416 (print_lang_statistics, lang_print_xnode, print_lang_identifier,
46417 set_yydebug): Remove.
46419 2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
46421 * misc.c (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): Override.
46422 (struct lang_hooks): Constify.
46423 (language_string, lang_identify): Remove.
46424 * utils.c (init_decl_processing): Update.
46426 2001-11-06 Neil Booth <neil@cat.daikokuya.demon.co.uk>
46428 * misc.c: Include langhooks-def.h.
46429 * Makefile.in: Update.
46431 2001-10-30 Robert Dewar <dewar@gnat.com>
46434 (Check_Identifier): Rewrite circuit to be compatible with use of letters
46435 in the upper half of ASCII.
46436 (Check_Identifier): Minor reformatting
46438 2001-10-30 Geert Bosch <bosch@gnat.com>
46440 * (Associated_Node, Set_Associated_Node): Do not check for
46443 2001-10-30 Robert Dewar <dewar@gnat.com>
46445 * a-reatim.ads: Minor reformatting
46447 2001-10-30 Robert Dewar <dewar@gnat.com>
46449 * gnatdll.adb: Minor reformatting throughout. Many ??? added for
46450 undocumented declarations.
46452 2001-10-30 Pascal Obry <obry@gnat.com>
46454 * gnatdll.adb (Parse_Command_Line): handle -g option to be passed
46455 to the binder and linker.
46458 * mdll.ads: Fix layout. Update copyright notice.
46460 * mdll.adb: Fix layout. Update copyright notice.
46462 2001-10-30 Robert Dewar <dewar@gnat.com>
46464 * usage.adb: Minor fix to output for -gnaty.
46466 2001-10-30 Ed Schonberg <schonber@gnat.com>
46468 * a-reatim.ads: Makes Seconds_Count into a 64-bit integer,
46469 to accommodate all its possible values.
46471 * a-reatim.adb (Split): Special-case handling of Time_Span_First
46472 and of small absolute values of T.
46474 2001-10-30 Richard Kenner <kenner@gnat.com>
46476 * misc.c (gnat_expand_expr, case NULL_EXPR): Remove call to
46477 set_mem_attributes since not needed and wrong if RESULT if a REG;
46478 fixes ACATS failures.
46480 2001-10-30 Geert Bosch <bosch@gnat.com>
46482 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, fname-sf.ads, g-traceb.ads,
46483 s-tasdeb.ads, sem_maps.ads: Add 2001 to copyright notice.
46485 2001-10-30 Robert Dewar <dewar@gnat.com>
46487 * bindusg.adb: Undocument -f switch.
46489 * gnatcmd.adb: Remove /FULL_ELABORATION.
46491 * opt.ads (Force_RM_Elaboration_Order): Document that this is
46494 * gnatbind.adb: Output new warning for use of obsolescent -f switch.
46496 * gnatbind.adb: Minor update of warning msg.
46498 2001-10-30 Vincent Celier <celier@gnat.com>
46500 * gnatcmd.adb (MAKE, BIND, LINK, LIST, FIND, XREF): Add translations
46501 for project file switches (-P (/PROJECT_FILE=),
46502 -X (/EXTERNAL_REFERENCE=) and -vPx (/PROJECT_FILE_VERBOSITY=DEFAULT
46505 2001-10-30 Geert Bosch <bosch@gnat.com>
46507 * decl.c: Minor whitespace fixes.
46509 2001-10-30 Richard Kenner <kenner@gnat.com>
46511 * utils2.c (build_allocator): Test for SIZE overflow in array case too
46513 2001-10-30 Geert Bosch <bosch@gnat.com>
46515 * ali-util.adb (Initialize_Checksum): Use out-mode instead of in out.
46516 Found due to GCC 3.0 warning of using uninitialized value.
46519 (Get_Max_Size): Use variant record for tracking value/expression.
46520 Makes logic clearer and prevents warnings for uninitialized variables.
46521 (Layout_Array_Type): Use variant record for tracking value/expression.
46522 Makes logic clearer and prevents warnings for uninitialized variables.
46524 2001-10-30 Robert Dewar <dewar@gnat.com>
46526 * lib.adb: Minor reformatting
46528 * s-taprop.ads: Minor reformatting
46530 2001-10-29 Laurent Guerby <guerby@acm.org>
46533 (Raise_From_Signal_Handler, Propagate_Signal_Exception): Make arg
46535 (_gnat_error_handler): Make MSG const.
46537 2001-10-29 Richard Kenner <kenner@gnat.com>
46539 * sysdep.c: Fix localtime_r problem on LynxOS.
46540 Also remove #elif to avoid warnings.
46542 * misc.c (yyparse): Don't set up and register jmpbuf; remove decls
46545 * decl.c (annotate_value): Make SIZE unsigned to avoid warning.
46547 2001-10-28 Joseph S. Myers <jsm28@cam.ac.uk>
46549 * 86numaux.adb, a-tigeau.ads, a-wtgeau.ads, decl.c, exp_ch6.adb,
46550 exp_ch9.adb, exp_util.adb, fname-sf.ads, freeze.ads, g-awk.adb,
46551 g-comlin.ads, g-dirope.adb, g-dyntab.ads, g-socket.ads,
46552 g-table.ads, g-traceb.ads, gnat-style.texi, gnatchop.adb, init.c,
46553 layout.adb, layout.ads, mdllfile.ads, mlib-fil.ads, osint.ads,
46554 s-fatgen.adb, s-imgrea.adb, s-taprop.ads, s-tasdeb.ads,
46555 sem_aggr.adb, sem_attr.adb, sem_case.ads, sem_ch13.adb,
46556 sem_ch3.adb, sem_elab.adb, sem_maps.ads, sem_res.adb,
46557 sem_util.ads, sinfo.ads, sinput.ads, table.adb, table.ads,
46558 types.ads, urealp.adb: Fix spelling errors.
46560 2001-10-27 Laurent Guerby <guerby@acm.org>
46562 * trans.c (gigi): Fix non determinism leading to bootstrap
46563 comparison failures for debugging information.
46565 2001-10-26 Florian Weimer <fw@deneb.enyo.de>
46567 * gnat_rm.texi: Use @./@: where appropriate.
46569 2001-10-26 Robert Dewar <dewar@gnat.com>
46571 * sinfo.adb: Define Associated_Node to overlap Entity field. Cleanup.
46573 2001-10-26 Richard Kenner <kenner@gnat.com>
46575 * gmem.c (__gnat_gmem_read_next): Properly check for EOF
46577 2001-10-26 Richard Kenner <kenner@gnat.com>
46579 * decl.c (validate_size): Modify message for bad size to avoid
46580 implication that compiler is modifying the size.
46582 2001-10-26 Robert Dewar <dewar@gnat.com>
46584 * prj-util.adb: Minor reformatting. Fix bad header format.
46586 2001-10-26 Robert Dewar <dewar@gnat.com>
46588 * sinfo.ads: Define Associated_Node to overlap Entity field. Cleanup.
46590 * sinfo.ads: Clarify use of Associated_Node (documentation only).
46592 * sem_ch12.adb: Change Node4 to Associated_Node. Change
46593 Associated_Node to Get_Associated_Node. Put use of Unchecked_Access
46594 much more narrowly in places where needed. These are cleanups.
46596 2001-10-26 Joel Brobecker <brobecke@gnat.com>
46598 * 5zosinte.ads (null_pthread): new constant.
46601 (Initialize_TCB): Initialize thread ID to null, to be able to verify
46602 later that this field has been set.
46603 (Finalize_TCB): ditto.
46604 (Suspend_Task): Verify that the thread ID is not null before using it.
46605 (Resume_Task): ditto.
46608 (Resume_All_Tasks): Lock the tasks list before using it.
46609 (Suspend_All_Tasks): ditto.
46611 2001-10-26 Richard Kenner <kenner@gnat.com>
46613 * decl.c (gnat_to_gnu_entity, case E_General_Access_Type):
46614 Make constant variant of designated type for Is_Access_Constant.
46615 Call update_pointer_to with main variant.
46617 * trans.c (process_freeze_entity, process_type):
46618 Call update_pointer_to on main variant.
46620 * utils.c (update_pointer_to): Make corresponding variant for NEW_TYPE.
46621 If main variant, update all other variants.
46623 * utils2.c (build_unary_op, case INDIRECT_REF): No longer set
46626 2001-10-26 Robert Dewar <dewar@gnat.com>
46628 * prj-util.adb: Minor reformatting
46630 2001-10-26 Robert Dewar <dewar@gnat.com>
46632 * prj-util.adb: Minor reformatting
46634 2001-10-26 Robert Dewar <dewar@gnat.com>
46636 * prj-attr.adb: Minor reformatting throughout
46638 2001-10-26 Robert Dewar <dewar@gnat.com>
46640 * prj-attr.ads: Minor reformatting
46641 Add ??? comment (this whole spec has almost no comments)
46643 2001-10-26 Vincent Celier <celier@gnat.com>
46645 * g-os_lib.adb (Normalize_Pathname): Preserve the double slash
46646 ("//") that precede the drive letter on Interix.
46648 2001-10-26 Geert Bosch <bosch@gnat.com>
46650 * gnat_rm.texi: Add GNAT Reference Manual.
46652 2001-10-25 Robert Dewar <dewar@gnat.com>
46654 * sem_ch8.adb (Analyze_Package_Renaming): Skip analysis if Name
46655 is Error. Similar change for other renaming cases.
46657 2001-10-25 Robert Dewar <dewar@gnat.com>
46659 * s-atacco.ads: Add pragma Inline_Always for functions.
46660 Fix header format. Add copyright 2001
46662 2001-10-25 Ed Schonberg <schonber@gnat.com>
46664 * par-ch3.adb (P_Subtype_Mark_Resync): for an anonymous array
46665 return Error rather than Empty so that analysis can proceed.
46667 2001-10-25 Ed Schonberg <schonber@gnat.com>
46669 * sem_util.adb (Enter_Name): better handling of cascaded error
46670 messages when a unit appears in its own context.
46672 2001-10-25 Ed Schonberg <schonber@gnat.com>
46674 * sem_util.adb (Defining_Entity): in case of error, attach created
46675 entity to specification, so that semantic analysis can proceed.
46677 2001-10-25 Robert Dewar <dewar@gnat.com>
46680 (Defining_Entity): Deal with Error.
46681 (Process_End_Label): Deal with bad end label for.
46683 2001-10-25 Ed Schonberg <schonber@gnat.com>
46685 * sem_elab.adb (Check_A_Call): refine message when call is in an
46686 instance but callee is not declared in the generic unit.
46688 2001-10-25 Ed Schonberg <schonber@gnat.com>
46690 * sem_elab.adb (Check_A_Call): check for renaming before finding the
46691 enclosing unit, which may already be different from the calling unit.
46693 2001-10-25 Geert Bosch <bosch@gnat.com>
46695 * 4gintnam.ads: fix header format.
46697 2001-10-25 Ed Schonberg <schonber@gnat.com>
46699 * sem_res.adb (Resolve_Call): if the call is actually an indexing
46700 operation on the result of a parameterless call, perform elaboration
46701 check after the node has been properly rewritten.
46703 * sem_ch12.adb (Copy_Generic_Node): after the proper body has been
46704 inlined within the generic tree, the defining identifier is not a
46707 2001-10-25 Ed Schonberg <schonber@gnat.com>
46709 * sem_res.adb (Resolve): special-case resolution of Null in an
46710 instance or an inlined body to avoid view conflicts.
46712 * sem_ch12.adb (Copy_Generic_Node): for allocators, check for view
46713 compatibility by retrieving the access type of the generic copy.
46715 2001-10-25 Robert Dewar <dewar@gnat.com>
46718 (Analyze_Number_Declaration): Handle error expression.
46719 (Signed_Integer_Type_Declaration): Handle error bound.
46720 (Analyze_Subtype_Indication): Handle error range.
46722 * sem_util.adb (Get_Index_Bounds): Check for Error.
46724 2001-10-25 Robert Dewar <dewar@gnat.com>
46726 * restrict.adb (Set_No_Run_Time_Mode): Set Discard_Names as default
46727 in no run time mode.
46729 2001-10-25 Pascal Obry <obry@gnat.com>
46731 * gnatmem.adb (Read_Next): fix Curs2 value to properly handle quiet
46732 mode case for ALLOC case.
46734 * gnatmem.adb (Read_Next): correctly fix parsing in Quiet mode on
46735 all platforms. Improvement of last change.
46737 2001-10-25 Robert Dewar <dewar@gnat.com>
46739 * exp_ch4.adb (Expand_N_Allocator): Minor reformatting.
46741 2001-10-25 Geert Bosch <bosch@gnat.com>
46743 * osint.adb (Is_Relative): Remove duplicate.
46745 2001-10-25 Pascal Obry <obry@gnat.com>
46747 * osint.adb (Read_Default_Search_Dirs): correctly detect relative
46748 pathnames in UNIX and DOS style with drive letter.
46749 (Is_Relative): new routine.
46751 * osint.adb: Minor reformatting
46753 * osint.adb (Is_Relative): implementation using
46754 GNAT.OS_Lib.Is_Absolute_Path. Better fix.
46756 2001-10-25 Pascal Obry <obry@gnat.com>
46758 * g-dirope.adb (Basename): correctly compute offset between the
46759 original Path and the translated one.
46761 * g-dirope.adb: (Base_Name): add some comments.
46763 2001-10-25 Robert Dewar <dewar@gnat.com>
46765 * exp_imgv.adb (Expand_Image_Attribute): Defend against bad use
46766 in HIE mode, avoids compilation abandoned message
46768 * exp_imgv.adb: Correct typo in previous change
46770 * exp_imgv.adb: Correct typo in previous change (not my day!)
46772 2001-10-25 Robert Dewar <dewar@gnat.com>
46774 * s-tpinop.ads: Add 2001 to copyright notice. Fix header format.
46776 2001-10-25 Pascal Obry <obry@gnat.com>
46778 * g-awk.ads: Move all pragma inlines next to the routine
46779 declarations. This is more uniform with other GNAT spec.
46781 2001-10-22 Geert Bosch <bosch@gnat.com>
46783 * Make-lang.in (gnattools, cross-gnattools): Remove gnatmem.
46785 2001-10-19 Geert Bosch <bosch@gnat.com>
46787 * Makefile.in (tools, gnattools): Remove gnatmem.
46789 2001-10-17 Richard Henderson <rth@redhat.com>
46791 * Makefile.in (misc.o): Depend on langhooks.h.
46792 * misc.c: Include it.
46793 (LANG_HOOKS_INIT, LANG_HOOKS_INIT_OPTIONS): New.
46794 (LANG_HOOKS_DECODE_OPTION): New.
46795 (lang_hooks): Use LANG_HOOKS_INITIALIZER.
46797 2001-10-16 Florian Weimer <fw@deneb.enyo.de>
46799 * trans.c (tree_transform): Adjust to recent change in
46800 expand_asm_operands to implement named asm operands.
46802 2001-10-11 Ed Schonberg <schonber@gnat.com>
46804 * exp_ch8.adb (Expand_N_Object_Renaming_Declaration): Bugfix in
46805 renaming of discriminant for mutable record type.
46807 2001-10-11 Robert Dewar <dewar@gnat.com>
46809 * validsw.adb: Properly save -gnatVn status.
46811 2001-10-11 Robert Dewar <dewar@gnat.com>
46813 * usage.adb: Add lines for V switch.
46815 * gnatcmd.adb (COMPILE): Revise translations for -gnatV
46816 (/VALIDITY_CHECKING).
46818 2001-10-11 Ed Schonberg <schonber@gnat.com>
46820 * sem_type.adb (Add_One_Interp): an operator for a type declared in
46821 an extension of System is known to be visible.
46823 2001-10-11 Ed Schonberg <schonber@gnat.com>
46825 * sem_eval.adb (Compare_Fixup): get the bounds of a String_Literal
46826 properly. Fixes regression on ACATS C34005G.
46828 2001-10-11 Robert Dewar <dewar@gnat.com>
46830 * sem_ch5.adb (Analyze_Iteration_Scheme): Suppress warning on null
46831 loop in generic instance, since this is likely not very useful.
46833 2001-10-11 Robert Dewar <dewar@gnat.com>
46835 * restrict.adb (Disallow in No_Run_Time_Mode): Properly specialize
46836 the error message for high integrity mode.
46838 * rtsfind.adb (RTE): Give message if we try to find an entity that
46839 is not available in high integrity mode.
46842 (OK_To_Use_In_HIE_Mode): New array.
46843 (RTE): May return Empty in high integrity mode.
46845 * rtsfind.ads (OK_To_Use_In_No_Run_Time_Mode): New name for
46846 OK_To_Use_In_HIE_Mode, now includes System_FAT_xxx.
46848 * sem_ch6.adb (Analyze_Subprogram_Body): Kill body in predefined
46849 unit if not inlined always and in no runtime mode. Fixes problem
46850 caused by new Rtsfind changes.
46852 * sem_ch6.adb (Analyze_Subrogram_Body): Do not Check_References if
46855 * rtsfind.adb (RTE): Make sure we do not try to load unit after
46856 giving message for entity not available in high integrity mode.
46858 2001-10-11 Pascal Obry <obry@gnat.com>
46860 * impunit.adb: Add GNAT.CRC32.
46862 2001-10-11 Ed Schonberg <schonber@gnat.com>
46864 * exp_fixd.adb (Expand_Multiply_Fixed_By_Fixed_Giving_Fixed): handle
46865 properly the case where one universal operand in a non-static
46866 exponentiation of a real literal.
46868 2001-10-11 Ed Schonberg <schonber@gnat.com>
46870 * exp_ch7.adb (Find_Final_List): for a type appearing in a with_type
46871 clause, return the gobal finalization list, for lack of anthing else.
46873 2001-10-11 Ed Schonberg <schonber@gnat.com>
46875 * exp_ch7.adb (Make_Transient_Block): if statement is within
46876 exception handler, always use new transient scope to place Clean
46879 2001-10-11 Pascal Obry <obry@gnat.com>
46882 (GNAT_ADA_OBJS): add g-crc32.o, a-tags.o, a-stream.o
46883 (GNATBIND_OBJS): add g-crc32.o, a-tags.o, a-stream.o
46884 (GNATLS_RTL_OBJS): add g-crc32.o
46885 (GNATMAKE_RTL_OBJS): add g-crc32.o
46888 (CRC_Match): new function.
46889 (Get_File_Checksum): renamed Get_File_CRC. Use the GNAT.CRC32 unit
46890 instead of the previous simple checksum algorithm.
46891 (Time_Stamp_Mismatch): use CRC_Match for comparison.
46892 (Set_Source_Table): idem.
46895 (Get_File_Checksum): renamed Get_File_CRC as now we compute CRC
46896 instead of simple checksum.
46897 (CRC_Match): new function.
46898 (CRC_Error): new constant.
46900 * ali.adb (Scan_ALI): rename variable Chk to CRC as we are handling
46901 a CRC now and not a simple checksum. A CRC uses lower-case hex
46902 letters, fixes ambiguity in parsing.
46904 * ali.ads (Sdep_Record.Checksum): renamed Sdep_Record.CRC as this
46905 is what this variable will store.
46907 * bcheck.adb: Change reference to chechsum in comments by CRC.
46908 (Check_Consistency): Rename Get_File_Checksum to Get_File_CRC.
46909 rename All_Checksum_Match to All_CRC_Match. Change due to API
46910 renaming since now GNAT does not use a simple checksum but a
46911 CRC using GNAT.CRC32.
46913 * gnatls.adb: Rename Checksum to CRC in many places, we use a CRC
46914 now and not anymore a simple checksum.
46916 * lib-load.adb: Use Source_CRC instead of Source_Checksum in many
46919 * lib-writ.adb (Write_ALI): Use Source_CRC instead of Source_Checksum.
46922 (Restore_Scan_State): rename Checksum to CRC.
46923 (Save_Scan_State): idem.
46927 (Checksum): rename to CRC.
46928 (Saved_Scan_State): Save_Checksum field renamed to Save_CRC
46930 * scn-nlit.adb: Rename many Accumulate_Checksum to Update (from
46931 GNAT.CRC32). Update copyright notice.
46933 * scn-slit.adb: Rename many Accumulate_Checksum to Update (from
46934 GNAT.CRC32). Update copyright notice.
46937 (Accumulate_Checksum): removed.
46938 (Update): new procedure. Add a wide-character into the CRC.
46941 (Complete_Source_File_Entry): use CRC32 instead of simple checksum.
46942 (Load_File): fix initialization of S (change Source_Checksum to
46945 * sinput-p.adb (Load_Project_File): rename Source_Checksum to
46946 Source_CRC in S initialization.
46948 * sinput.adb (Source_Checksum): renamed to Source_CRC.
46950 * sinput.ads (Source_Checksum): renamed to Source_CRC.
46951 Update comments for the CRC.
46953 * types.adb (Hex): Use lowercase for the letter part.
46955 * types.ads (Get_Hex_String): Returns the hexadecimal representation
46956 for a word. This is currently used only for CRC. In previous version,
46957 the checksum was using a representation with all letter being
46958 upper-case. With the new implementation (using CRC) we do not remove
46959 the 32th bit of the CRC, so we can have an upper-case starting letter
46960 in the CRC. This is not possible to parse in Scan_ALI (ali.adb).
46961 It is ambigous since the CRC was optional and could be followed by
46962 options like EB, EE. So now this routines uses lower-case letter for
46963 the hexadecimal representation. Strange enough only lower case letters
46964 where checked in Scan_ALI (even if this was not a possible case).
46966 * gnatvsn.ads (Library_Version): changed to 3.15a.
46968 * s-crc32.ads: Initial version from GNAT.CRC32. This is the version
46971 * s-crc32.adb: Initial version from GNAT.CRC32. This is the version
46974 * ali-util.adb: Redo previous change to avoid using word CRC everywhere
46975 Add 2001 to copyright notice
46976 (Accumulate_Checksum): Modify to use System.CRC32.
46978 * ali-util.ads: Redo changes of previous revision to continue to use
46979 the word Checksum. Add 2001 to copyright notice.
46981 * ali.adb: Undo some of previous changes, not needed.
46982 Keep the change for lower case letters in the checksum.
46984 * ali.ads: Undo previous change not needed.
46986 * bcheck.adb: Undo most of previous change, not needed.
46987 But do use Checksums_Match for checksum comparison.
46989 * gnatls.adb: Undo most of previous change, not needed.
46990 But do use Checksums_Match for comparing checksums.
46992 * lib-load.adb: Undo previous change, not needed.
46994 * lib-writ.adb: Undo previous change, not needed.
46996 * lib-writ.ads: Document that checksums use lower case,
46997 not upper case letters.
46999 * scans.adb: Undo previous change, not needed
47001 * scans.ads: Undo previous change, not needed.
47003 * scn-nlit.adb: Undo previous changes, not needed.
47005 * scn-slit.adb: Undo previous change, not needed. Fix header format.
47008 (Accumulate_Checksum): Use System.CRC32.
47009 (Initialize_Checksum): New procedure.
47010 Remove other changes of previous revision.
47012 * sinput-p.adb: Undo previous change, not needed.
47014 * sinput.adb: Undo previous change, not needed.
47016 * sinput-l.adb: Undo previous change, not needed.
47018 * sinput.ads: Undo previous change, not needed. Keep only comment
47019 on new checksum algorithm
47021 * Makefile.in: Add s-crc32 as needed, remove g-crc32.
47022 Also remove a-tags and a-stream from GNAT sources.
47024 * ali.adb (Scan_ALI): fix typo introduce in latest check-in.
47026 * Makefile.in (GNATRTL_NONTASKING_OBJS): Add g-crc32.o.
47028 2001-10-11 Geert Bosch <bosch@gnat.com>
47030 * einfo.h: Regenerate.
47032 * nmake.ads: Regenerate.
47034 * nmake.adb: Regenerate.
47036 * sinfo.h: Regenerate.
47038 * treeprs.adb: Regenerate.
47040 2001-10-10 Geert Bosch <bosch@gnat.com>
47042 * gnat-style.texi: New file describing coding guidelines for Ada.
47044 2001-10-10 Ed Schonberg <schonber@gnat.com>
47046 * einfo.adb (Write_Entity_Flags): Elaboration_Entity_Required
47049 2001-10-10 Geert Bosch <bosch@gnat.com>
47051 * snames.ads: Add new names for project facility.
47053 * snames.adb: Update to reflect snames.ads changes.
47055 * snames.h: Update to reflect snames.ads changes.
47057 2001-10-10 Vincent Celier <celier@gnat.com>
47060 (Add_Switches): reflect the changes for the switches attributes
47061 Default_Switches indexed by the programming language,
47062 Switches indexed by the file name.
47063 (Collect_Arguments_And_Compile): Idem.
47064 Reflect the attribute name changes.
47067 (Initialisation_Data): Change the names of some packages and
47069 (Initialize): process case insensitive associative arrays.
47072 (Attribute_Kind): Remove Both, add Case_Insensitive_Associative_Array.
47075 (Parse_Attribute_Declaration): For case insensitive associative
47076 arrays, set the index string to lower case.
47079 Reflect the changes of the project attributes.
47082 Replace Check_Naming_Scheme by Ada_Check and
47083 Language_Independent_Check.
47086 Replaced Check_Naming_Scheme by 2 procedures:
47087 Ada_Check and Language_Independent_Check.
47090 (Process_Declarative_Items): For case-insensitive associative
47091 arrays, set the index string to lower case.
47092 (Recursive_Check): Call Prj.Nmsc.Ada_Check, instead of
47093 Prj.Nmsc.Check_Naming_Scheme.
47096 (Case_Insensitive): New function
47097 (Set_Case_Insensitive): New procedure
47100 (Case_Insensitive): New function
47101 (Set_Case_Insensitive): New procedure
47102 (Project_Node_Record): New flag Case_Insensitive.
47105 (Value_Of): new function to get the string value of a single
47106 string variable or attribute.
47109 (Value_Of): new function to get the string value of a single
47110 string variable or attribute.
47113 (Ada_Default_Spec_Suffix): New function
47114 (Ada_Default_Impl_Suffix): New function
47115 Change definitions of several constants to reflect
47116 new components of record types.
47119 (Naming_Data): Change several components to reflect new
47120 elements of naming schemes.
47121 (Project_Data): New flags Sources_Present and
47122 Language_Independent_Checked.
47123 (Ada_Default_Spec_Suffix): New function.
47124 (Ada_Default_Impl_Suffix): New function.
47127 Modification of predefined names for project manager: added
47128 Implementation, Specification_Exceptions, Implementation_Exceptions,
47129 Specification_Suffix, Implementation_Suffix, Separate_Suffix,
47130 Default_Switches, _Languages, Builder, Cross_Reference,
47131 Finder. Removed Body_Part, Specification_Append, Body_Append,
47132 Separate_Append, Gnatmake, Gnatxref, Gnatfind, Gnatbind,
47135 * prj.ads: (Ada_Default_Spec_Suffix, Ada_Default_Impl_Suffix):
47138 * prj-nmsc.adb (Ada_Check): Test that Separate_Suffix is defaulted,
47139 not that it is Nil_Variable_Value.
47141 * prj.ads: Add ??? for uncommented declarations
47143 2001-10-10 Ed Schonberg <schonber@gnat.com>
47145 * sem_prag.adb: (Analyze_Pragma, case External): If entity is a
47146 constant, do not indicate possible modification, so that gigi can
47147 treat it as a bona fide constant.
47149 2001-10-10 Robert Dewar <dewar@gnat.com>
47151 * sem_prag.adb: Add processing for pragma External.
47153 * snames.ads: Add entry for pragma External.
47155 * par-prag.adb: Add pragma External.
47157 * snames.adb: Updated to match snames.ads.
47159 2001-10-10 Ed Schonberg <schonber@gnat.com>
47161 * exp_ch4.adb (Expand_N_Allocator): Generate meaningful names for
47162 a dynamic task if the allocator appears in an indexed assignment
47163 or selected component assignment.
47165 * exp_util.adb (Build_Task_Array_Image, Build_Task_Record_Image):
47166 For a dynamic task in an assignment statement, use target of
47167 assignment to generate meaningful name.
47169 2001-10-10 Ed Schonberg <schonber@gnat.com>
47171 * einfo.adb (Write_Field19_Name): Body_Entity is also defined for
47174 * einfo.ads: Body_Entity is also defined for generic package.
47175 Documentation change only
47177 * exp_aggr.adb (Build_Array_Aggr_Code): When expanding an
47178 others_choice for a discriminated component initialization,
47179 convert discriminant references into the corresponding discriminals.
47181 * exp_ch3.adb (Get_Simple_Init_Val): Add qualification to aggregate
47182 only if original type is private and expression has to be wrapped
47186 (Apply_Constraint_Check): Do not perform length check
47187 if expression is an aggregate with only an others_choice.
47188 (Length_N_Cond): two references to the same in_parameter
47189 (typically the discriminal in an init_proc) denote the same value.
47190 Two useful optimization uncovered by bugfixes above.
47192 2001-10-10 Robert Dewar <dewar@gnat.com>
47194 * xeinfo.adb: Change int to char in translation of enumeration types.
47195 This fixes a problem in the C representation of component alignment.
47196 Add 2001 to copyright notice
47198 2001-10-10 Richard Kenner <kenner@gnat.com>
47200 * decl.c: (validate_size): Do check size of object of integral type
47201 if it is a packed array type.
47203 2001-10-10 Richard Kenner <kenner@gnat.com>
47205 * decl.c: (gnat_to_gnu_entity, case object): Also materialize
47206 VAR_DECL for constant if not Is_Public but -O0.
47208 2001-10-10 Richard Kenner <kenner@gnat.com>
47210 * misc.c (struct lang_hooks): Add new initializer to match GCC change.
47212 2001-10-10 Geert Bosch <bosch@gnat.com>
47214 * xnmake.adb (XNmake): Fix handling of -s/-b options. No longer
47215 use '/' as switch character, allowing for absolute file names.
47217 2001-10-09 Joseph S. Myers <jsm28@cam.ac.uk>
47219 * 4gintnam.ads, Make-lang.in, Makefile.in, config-lang.in: Update
47222 2001-10-08 Geert Bosch <bosch@gnat.com>
47224 * Makefile.in (treeprs.ads, einfo.h, sinfo.h, nmake.adb, nmake.ads):
47225 Automatically build utilities when files need to be regenerated.
47227 2001-10-08 Geert Bosch <bosch@gnat.com>
47229 * xsnames.adb: New utility for updating snames.ads and snames.adb
47231 2001-10-08 Zack Weinberg <zack@codesourcery.com>
47233 * Make-lang.in (ADAFLAGS): Add -W -Wall.
47234 (ADA_FLAGS_TO_PASS): Set ADA_CFLAGS=$(CFLAGS) also.
47235 (gnat1): Also depend on attribs.o.
47236 (gnatlib, gnatlib-shared): Set CC and ADAC in recursive make.
47237 * Makefile.in (X_ADAFLAGS, T_ADAFLAGS): New.
47238 (ADAC): Set to @ADAC@ in stage1, $(CC) later.
47239 (ADAFLAGS): Add -W -Wall.
47240 (ALL_ADAFLAGS, MOST_ADAFLAGS): Add X_ADAFLAGS and T_ADAFLAGS;
47243 (.adb.o, .ads.o, a-numaux.o, a-teioed.o, s-interr.o,
47244 s-taskin.o, sdefault.o, s-tasdeb.o, s-vaflop.o, a-except.o,
47245 s-assert.o, s-stalib.o, s-memory.o, memtrack.o, mlib-tgt.o):
47246 Use $(ADAC), not $(CC), as compilation command.
47248 (gnattools): Depend directly on tools to build, don't use
47250 (gnatlib): Set ADA_CFLAGS=$(GNATLIBCFLAGS) in recursive make.
47252 * einfo.h, sinfo.h: New files (autogenerated).
47254 2001-10-08 Richard Henderson <rth@redhat.com>
47256 * comperr.adb (Abort_In_Progress): New.
47257 (Compiler_Abort): Use it to prevent recursion.
47259 2001-10-08 Robert Dewar <dewar@gnat.com>
47261 * atree.adb: Set Error_Posted in Error node, helps error recovery.
47263 * par-endh.adb (Output_End_Expected): We should also not test
47264 Error_Posted on the Error node, since now it is always set.
47266 * cstand.adb (Create_Standard): Set Etype of Error to Any_Type
47267 to help error recovery. Part of general work on 9407-004.
47269 * par.adb: Add ??? for misuse of error
47272 (Resolve): Defend against Error, fixes 9407-003.
47273 (Resolve_Discrete_Subtype_Indication): Defend against Error.
47275 * sinfo.ads (N_Error): Now has Etype field (which will be set
47276 to Any_Type to help error recovery).
47278 2001-10-08 Richard Kenner <kenner@gnat.com>
47280 * misc.c (gnat_expand_expr, case UNCHECKED_CONVERT_EXPR):
47281 Consistently set MEM attributes from expression; fixes
47282 bootstrap failure on x86.
47284 2001-10-08 Geert Bosch <bosch@gnat.com>
47286 * 5oosinte.adb: Add 2001 to copyright notice.
47288 2001-10-08 Geert Bosch <bosch@gnat.com>
47290 * ceinfo.adb: Add utility for consistency checking of einfo.ad[bs].
47292 * csinfo.adb: Add utility for consistency checking of sinfo.ad[bs].
47294 2001-10-07 Joseph S. Myers <jsm28@cam.ac.uk>
47296 * 5oosinte.adb: Fix spelling error of "separate" as "seperate".
47298 2001-10-05 Geert Bosch <bosch@gnat.com>
47300 * adaint.h: Small formatting fix.
47302 2001-10-04 Geert Bosch <bosch@gnat.com>
47304 * sysdep.c (__gnat_set_binary_mode, __gnat_set_text_mode):
47305 Arg is int, not FILE *, in dummy version of functions.
47307 * adaint.h (__gnat_set_binary_mode, __gnat_set_text_mode):
47308 Arg is int, not FILE *.
47310 2001-10-04 Geert Bosch <bosch@gnat.com>
47312 * 3lsoccon.ads: Added file, missed with initial check ins.
47314 * 4lintnam.ads: Fix header format.
47315 Change Linux to GNU/Linux.
47317 * 5iosinte.adb: Change Linux to GNU/Linux.
47319 * 5iosinte.ads: Change Linux to GNU/Linux.
47321 * 5itaprop.adb: Change Linux to GNU/Linux.
47323 * 5itaspri.ads: Change Linux to GNU/Linux.
47324 Update copyright notice.
47326 * 5lintman.adb: Change Linux to GNU/Linux.
47328 * 5lml-tgt.adb: Change Linux to GNU/Linux.
47330 * 5losinte.ads: Change Linux to GNU/Linux.
47332 * 5lsystem.ads: Change Linux to GNU/Linux.
47334 * 5qosinte.adb: Change Linux to GNU/Linux.
47336 * 5qosinte.ads: Change Linux to GNU/Linux.
47338 * 5qparame.ads: Change Linux to GNU/Linux.
47340 * 5qtaprop.adb: Change Linux to GNU/Linux.
47342 * 5qtaspri.ads: Change Linux to GNU/Linux.
47343 Add 2001 to copyright notice.
47345 * 5vintman.ads: Change Linux to GNU/Linux.
47346 Fix header format. Add 2001 to copyright notice.
47348 * g-soccon.ads: Change Linux to GNU/Linux.
47350 * g-trasym.ads: Change Linux to GNU/Linux.
47351 Add 2001 to copyright notice.
47353 * memtrack.adb: Change Linux to GNU/Linux.
47355 * s-intman.ads: Change Linux to GNU/Linux.
47356 Add 2001 to copyright notice. Fix header format.
47358 * s-stache.adb: Change Linux to GNU/Linux.
47360 * adaint.c: Change Linux to GNU/Linux.
47362 * cio.c: Change Linux to GNU/Linux.
47364 * cstreams.c: Change Linux to GNU/Linux.
47366 * init.c: Change Linux to GNU/Linux.
47368 * gmem.c: Change Linux to GNU/Linux.
47370 * tracebak.c: Change Linux to GNU/Linux.
47373 2001-10-02 Geert Bosch <bosch@gnat.com>
47375 * misc.c (insert_default_attributes): Add dummy version.