* gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS): Simplify test for
[official-gcc.git] / gcc / ada / ChangeLog
blob11c77f2653809a803e6685c51cb29e71623f2dd5
1 2009-09-24  Dave Korn  <dave.korn.cygwin@gmail.com>
3         * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS): Simplify test for
4         a-except% in target pairs list; don't (implicitly) compare whitespace.
6 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
8         * gcc-interface/utils.c (gnat_pushdecl): Don't set
9         DECL_NO_STATIC_CHAIN, set DECL_STATIC_CHAIN for
10         nested functions.
12 2009-09-21  Joel Sherrill <joel.sherrill@oarcorp.com>
14         * s-osinte-rtems.ad[bs]: Get_Page_Size cannot return 0.
15         Bind to getpagesize() in RTEMS 4.10 and newer.
17 2009-09-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19         * env.c [__alpha__ && __osf__] (_BSD): Define.
20         * init.c [__alpha__ && __osf__] (__gnat_error_handler): Cast msg
21         to const char *.
23 2009-09-18  Pascal Obry  <obry@adacore.com>
25         * mingw32.h: Activate Unicode support for x86-64 Windows platform.
27 2009-09-18  Vadim Godunko  <godunko@adacore.com>
29         * s-oscons-tmplt.c: Add circuit for handling IOV_MAX macro on IRIX.
31 2009-09-18  Javier Miranda  <miranda@adacore.com>
33         * exp_aggr.adb (Backend_Processing_Possible): Disable backend
34         processing for array aggregates in the VM backend if the array has
35         aliased components.
37 2009-09-18  Ed Schonberg  <schonberg@adacore.com>
39         * sem_ch4.adb (Analyze_Indexed_Component): Emit error if the type of
40         the prefix indicates a previous semantic error, and this is the first
41         error in the program.
43 2009-09-18  Bob Duff  <duff@adacore.com>
45         * gnat_ugn.texi: Minor editing.
47 2009-09-18  Vincent Celier  <celier@adacore.com>
49         * prj.ads, prj.adb (Project_Data): New component
50         Imported_Directories_Switches.
52 2009-09-18  Pascal Obry  <obry@adacore.com>
54         * mingw32.h: Include standard _mingw.h file.
55         Define _WIN32_WINNT only if not already defined.
57 2009-09-18  Thomas Quinot  <quinot@adacore.com>
59         * g-socket.adb (Is_Open): New function indicating whether a
60         Selector_Type object is open.
62 2009-09-18  Vincent Celier  <celier@adacore.com>
64         * osint-c.adb (Create_Output_Library_Info): Make sure that the ALI file
65         is deleted before creating it.
67 2009-09-18  Robert Dewar  <dewar@adacore.com>
69         * bindgen.adb: Minor reformatting
71 2009-09-18  Arnaud Charlet  <charlet@adacore.com>
73         * s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
74         s-taprop-irix.adb, s-taprop-posix.adb (Abort_Task): Do nothing if no
75         signal handler is installed.
76         * s-tassta.adb (Finalize_Global_Tasks): Do not wait for independent
77         tasks if Abort_Task_Interrupt cannot be used.
79 2009-09-18  Vincent Celier  <celier@adacore.com>
81         * prj-tree.ads: Minor comment update
83 2009-09-17  Bob Duff  <duff@adacore.com>
85         * g-socket.ads: Document the fact that Close_Selector has no effect on
86         a closed selector.
87         * g-socket.adb: Raise an exception when a Selector that should be open
88         is closed.
89         (Check_Selector): Declare RSig as a constant rather than a renames,
90         less confusing.
92 2009-09-17  Robert Dewar  <dewar@adacore.com>
94         * exp_ch9.adb, exp_ch5.adb, exp_ch4.adb, prj-conf.adb, prj-env.ads,
95         prj-ext.adb, prj-ext.ads, prj-pars.adb, prj-part.adb, prj-proc.adb,
96         prj-tree.ads: Minor reformatting
98 2009-09-17  Emmanuel Briot  <briot@adacore.com>
100         * prj-conf.adb, prj-env.adb, prj-env.ads (Create_Temp_File): Moved to
101         spec.
102         (Do_Autoconf): If the object directory does not exists, create auto.cgpr
103         in a temporary directory instead
105 2009-09-17  Bob Duff  <duff@adacore.com>
107         * a-dynpri.adb (Set_Priority): Don't do anything if the task is already
108         terminated.
109         (Get_Priority): Correct message for "terminated" case -- it said "null".
111 2009-09-17  Robert Dewar  <dewar@adacore.com>
113         * exp_ch6.adb: Minor reformatting
115 2009-09-17  Emmanuel Briot  <briot@adacore.com>
117         * gnatcmd.adb, make.adb, prj-part.adb, prj-ext.adb, prj-ext.ads,
118         switch-m.adb, switch-m.ads, clean.adb, prj-tree.ads
119         (Project_Node_Tree_Data.Project_Path): New field.
121         * prj-conf.adb (Do_Autoconf): Remove "creating auto.cgpr" message
123 2009-09-17  Emmanuel Briot  <briot@adacore.com>
125         * prj-ext.adb, prj-ext.ads, makeutl.adb (Is_External_Assignment):
126         Remove duplicate code.
127         (Prj.Ext): Fix memory leak
128         (Check): Now allow the syntax "-Xfoo=" to set an empty value to the
129         variable. This was previously allowed in the code in
130         Is_External_Assignment, and some tests rely on it
132 2009-09-17  Bob Duff  <duff@adacore.com>
134         * gnat_rm.texi, s-oscons-tmplt.c: Minor typo
136 2009-09-17  Emmanuel Briot  <briot@adacore.com>
138         * gnatcmd.adb, prj-proc.adb, make.adb, prj-ext.adb, prj-ext.ads,
139         makeutl.adb, makeutl.ads, clean.adb, prj-pars.adb, prj-pars.ads,
140         prj-conf.adb, prj-conf.ads, prj-tree.adb, prj-tree.ads, prj-proc.ads,
141         prj-nmsc.ads (Add, Value_Of, Reset): new parameter Tree.
142         Scenario variables are now specific to each project tree loaded in
143         memory.
144         Code clean ups.
146 2009-09-17  Javier Miranda  <miranda@adacore.com>
148         * exp_disp.adb (Make_DT): Remove wrong line of code that was
149         undocumented and probably added by mistake.
151 2009-09-16  Eric Botcazou  <ebotcazou@adacore.com>
153         * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Size>: Strip
154         conversions between original and packable version of types from
155         the expression.
157 2009-09-16  Eric Botcazou  <ebotcazou@adacore.com>
159         * gcc-interface/decl.c (gnat_to_gnu_field): Add DEBUG_INFO_P parameter.
160         If a padding type was made for the field, declare it.
161         (components_to_record): Add DEBUG_INFO_P parameter.  Adjust call
162         to gnat_to_gnu_field and call to self.
163         (gnat_to_gnu_entity) <E_Array_Type>: Do not redeclare padding types.
164         <E_Array_Subtype>: Likewise.
165         Adjust calls to gnat_to_gnu_field and components_to_record.
167 2009-09-16  Robert Dewar  <dewar@adacore.com>
169         * prj-nmsc.adb: Minor reformatting
171 2009-09-16  Ed Schonberg  <schonberg@adacore.com>
173         * exp_ch4.adb (Expand_N_Conditional_Expression): If the type of the
174         expression is a by-reference type (tagged or inherently limited)
175         introduce an access type to capture references to the values of each
176         branch of the conditional.
178 2009-09-16  Emmanuel Briot  <briot@adacore.com>
180         * prj-proc.adb, prj-part.adb, prj-tree.adb, prj-tree.ads
181         (Project_Name_And_Node.Display_Name): new field
182         The display name of a project (as written in the .gpr file) is now
183         computed when the project file itself is parsed, not when it is
184         processed.
186 2009-09-16  Thomas Quinot  <quinot@adacore.com>
188         * freeze.adb, exp_intr.adb (Expand_Intrinsic_Call): Leave calls to
189         intrinsics untouched (to be expanded later on by gigi) if an external
190         name has been specified.
191         (Freeze_Entity): Do not generate a default external name for
192         imported subprograms with convention Intrinsic (so that the above code
193         can identify the case where an external name has been explicitly
194         provided).
196         * s-oscons-tmplt.c: Quote TARGET_OS early so that it is not erroneously
197         replaced by something else due to an existing #define clause.
199 2009-09-16  Ed Schonberg  <schonberg@adacore.com>
201         * sinfo.ads, sinfo.adb (Is_Accessibility_Actual): New flag on
202         Parameter_Association node, created for the extra actual generated for
203         an access parameter of a function that dispatches on result, to prevent
204         double generation of such actuals when the call is rewritten is a
205         dispatching call.
206         * exp_ch6.adb (Expand_Call): Set Is_Accessibility_Actual when needed.
207         * exp_disp.adb (Expand_Dispatching_Call): Do not transfer extra actuals
208         that carry this flag when rewriting the original call as a dispatching
209         call, after propagating the controlling tag.
211 2009-09-16  Vincent Celier  <celier@adacore.com>
213         * prj-nmsc.adb (Add_Source): New parameter Source_Dir_Rank to be put
214         in the source data.
215         (Check_File): New parameter Source_Dir_Rank, to check if a duplicate
216         source is allowed.
217         (Find_Source_Dirs): New parameter Rank to be recorded with the source
218         directories.
219         (Search_Directories): Call Check_File with the rank of the directory
220         * prj.adb (Project_Empty): Add new component Source_Dir_Ranks
221         (Free): Free also Number_Lists
222         (Reset): Init also Number_Lists
223         * prj.ads (Number_List_Table): New dynamic table for lists of numbers
224         (Source_Data): New component Source_Dir_Rank. Remove component
225         Known_Order_Of_Source_Dirs, no longer needed.
226         (Project_Data): New component Source_Dir_Ranks
227         (Project_Tree_Data): New components Number_Lists
229 2009-09-16  Vincent Celier  <celier@adacore.com>
231         * gprep.adb (Yes_No): New global constant
232         Unix_Line_Terminators: New global Boolean variable
233         (Process_One_File): Create the out file with a "Text_Translation=" form
234         that depends on the use of option -T.
235         (Scan_Command_Line): Add option -T
236         (Usage): Add line for option -T
238 2009-09-16  Ed Schonberg  <schonberg@adacore.com>
240         * exp_disp.ads, exp_disp.adb (Is_Predefined_Internal_Operation): New
241         predicate that describes a proper subset of
242         Is_Predefined_Dispatching_Operation and excludes stream operations,
243         which can be overridden by the user.
244         * sem_ch6.adb (Create_Extra_Formals): use
245         Is_Predefined_Internal_Operation, so that stream operations get extra
246         formals.
247         * exp_ch6.adb (Prevent double generation of extra actuals in calls to
248         'Input, which may be expanded twice, first as a function call and then
249         as a dispatching call.
251 2009-09-16  Thomas Quinot  <quinot@adacore.com>
253         * s-oscons-tmplt.c (Target_OS, Target_Name): New constants.
254         * g-expect.adb (Set_Up_Child_Communications): Use
255         System.OS_Constants.Target_OS to determine whether running on Windows.
257 2009-09-14  Richard Henderson  <rth@redhat.com>
259         * gcc-interface/trans.c (Pragma_to_gnu): Use build5 for ASM_EXPR.
261 2009-09-14  Eric Botcazou  <ebotcazou@adacore.com>
263         * exp_dbug.ads (Packed Array Encoding): Document the new encoding for
264         the unconstrained case.
265         * gcc-interfaces/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Implement
266         the encoding.  Do not give a name to the pointer type to the XUT type.
267         * gcc-interfaces/utils.c (gnat_pushdecl): Propagate DECL_ORIGINAL_TYPE
268         for fat pointer types, if any.  Make sure DECL_ARTIFICIAL is cleared
269         on nodes with DECL_ORIGINAL_TYPE set.
270         (update_pointer_to): Set DECL_ORIGINAL_TYPE to the original pointer
271         for fat pointer types.  Make sure DECL_ARTIFICIAL is cleared.
273 2009-09-14  Richard Henderson  <rth@redhat.com>
275         * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
276         default_init_unwind_resume_libfunc.
277         * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Use
278         __builtin_eh_pointer.
279         * gcc-interface/utils.c (gnat_install_builtins): Update call
280         to build_common_builtin_nodes.
282 2009-09-13  Richard Guenther  <rguenther@suse.de>
283             Rafael Avila de Espindola  <espindola@google.com>
285         * gcc-interface/misc.c (gnat_init_gcc_eh): Do not set variables
286         eh_personality_libfunc and lang_eh_runtime_type.
287         (LANG_HOOKS_EH_PERSONALITY): Define.
288         (gnat_eh_personality_decl): New static variable.
289         (gnat_eh_personality): New static function.
290         Include gt-ada-misc.h.
291         * gcc-interface/Make-lang.in (misc.o): Add gt-ada-misc.h dependency.
292         * gcc-interface/config-lang.in (gtfiles): Add misc.c.
294 2009-09-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
296         PR ada/18302
297         * gcc-interface/Make-lang.in (check-acats): Export rootme, EXPECT.
299 2009-09-08  Eric Botcazou  <ebotcazou@adacore.com>
301         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Tidy
302         flow of control.
303         Avoid useless work when processing the Treat_As_Volatile flag.
305 2009-09-08  Eric Botcazou  <ebotcazou@adacore.com>
307         * gcc-interface/targtyps.c: Reorder include directives.
309 2009-09-07  Laurent GUERBY  <laurent@guerby.net>
311         * gcc-interface/targtyps.c: Add missing include for tm_p.h.
312         * gcc-interface/Make-lang.in: Update dependencies.
314 2009-09-07  Laurent GUERBY  <laurent@guerby.net>
316         * make.adb: Add missing documentation for multilib handling.
317         
318 2009-09-03  Diego Novillo  <dnovillo@google.com>
320         * gcc-interface/misc.c (lang_hooks): Remove const qualifier.
322 2009-09-02  Richard Henderson  <rth@redhat.com>
324         * tb-gcc.c (__gnat_backtrace): Mark all arguments unused.
326 2009-09-02  Olivier Hainque  <hainque@adacore.com>
328         * init.c (__gnat_error_handler, AIX): Add ATTRIBUTE_UNUSED on si
329         and uc arguments.
330         
331 2009-09-02  Olivier Hainque  <hainque@adacore.com>
333         * gcc-interface/decl.c (cannot_be_superflat_p): Handle
334         Signed_Integer_Type_Definition Scalar_Ranges.
336 2009-09-02  Eric Botcazou  <ebotcazou@adacore.com>
338         * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Gimplify the
339         SAVE_EXPR built for misaligned arguments.  Remove redundant stuff.
340         (addressable_p): Return true for more rvalues.
342 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
344         * gcc-interface/utils2.c (maybe_wrap_malloc, maybe_wrap_free): Cast
345         POINTER_SIZE to HOST_WIDE_INT.
347 2009-09-01  Richard Guenther  <rguenther@suse.de>
349         * gcc-interface/misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
351 2009-08-25  Eric Botcazou  <ebotcazou@adacore.com>
353         * gcc-interface/trans.c (call_to_gnu): Tidy.
354         (gnat_to_gnu) <N_Slice>: Set TYPE_ARRAY_MAX_SIZE if the slice has
355         non-constant size but the array itself has constant size.
356         * gcc-interface/utils.c (convert_vms_descriptor64): Fix type
357         consistency error.
358         (convert_vms_descriptor32): Likewise.
360 2009-08-22  Aurelien Jarno  <aurelien@aurel32.net>
362         * gcc-interface/Makefile.in: Add Ada support for 
363         GNU/kFreeBSD x86_64.
364         * system-freebsd-x86_64.ads: New file based on 
365         system-freebsd-x86.ads.
367 2009-08-20  Eric Botcazou  <ebotcazou@adacore.com>
369         * gcc-interface/utils.c (convert): In the padded case, do the final
370         conversion as an unchecked conversion if the underlying types are
371         array types with variable size.
373 2009-08-20  Eric Botcazou  <ebotcazou@adacore.com>
375         * gcc-interface/ada-tree.h (SET_TYPE_RM_VALUE): Mark the expression
376         as visited.
377         * gcc-interface/misc.c (gnat_get_subrange_bounds): Always return the
378         bounds.
379         * gcc-interface/trans.c (add_decl_expr): Do not mark gigi-specific
380         fields.
381         (gnat_gimplify_expr) <DECL_EXPR>: New case.
383 2009-08-17  Aurelien Jarno  <aurelien@aurel32.net>
385         * s-osinte-kfreebsd-gnu.ads (SA_ONSTACK): New constant.
386         (stack_t): New record type.
387         (sigaltstack): New imported function.
388         (Alternate_Stack): New imported variable.
389         (Alternate_Stack_Size): New constant.
391 2009-08-17  Vasiliy Fofanov  <fofanov@adacore.com>
393         * a-calend-vms.adb: Fix typo.
395 2009-08-17  Tristan Gingold  <gingold@adacore.com>
397         * s-taprop-posix.adb: Round up the stack size to avoid failure on
398         Darwin.
400 2009-08-17  Gary Dismukes  <dismukes@adacore.com>
402         * sem_cat.adb (Validate_Static_Object_Name): Update comment.
404 2009-08-17  Vincent Celier  <celier@adacore.com>
406         * make.adb (Arguments_Collected): Unneeded, removed
407         (Change_To_Object_Directory): Use Project directly. Add pragma Assert to
408         ensure caller does not pass in No_Project.
409         (Compile): Add new parameter Project. Let procedure
410         Collect_Arguments_And_Compile provide the proper value.
412         * switch-c.adb: Add documentation for -gnatea and -gnatez
414 2009-08-17  Ben Brosgol  <brosgol@adacore.com>
416         * gnat_ugn.texi: Changed name of package in SAL example, to avoid
417         clash with Ada 2005 reserved word (interface).
419 2009-08-17  Robert Dewar  <dewar@adacore.com>
421         * a-crbtgk.adb, a-crdlli.adb, a-direct.adb, a-caldel-vms.adb,
422         a-calend-vms.adb, a-calfor.adb, a-cdlili.adb, a-chahan.adb,
423         a-cidlli.adb, a-coinve.adb, a-comlin.adb: Minor code reorganization
424         (use conditional expressions).
426 2009-08-17  Robert Dewar  <dewar@adacore.com>
428         * make.adb: Add ??? comment
429         * tbuild.adb: Minor reformatting
431 2009-08-17  Thomas Quinot  <quinot@adacore.com>
433         * exp_ch4.adb (Exp_Ch4.Expand_N_Slice.Make_Temporary): Rename to
434         Make_Temporary_For_Slice to avoid confusion with Tbuild.Make_Temporary.
435         Use Tbuild.Make_Temporary to create entity for the temporary.
437 2009-08-17  Arnaud Charlet  <charlet@adacore.com>
439         * make.adb (Process_Multilib, Scan_Make_Arg): Refine previous change
440         and ignore -mieee switch to avoid spawning an extra gcc in this case.
442 2009-08-17  Thomas Quinot  <quinot@adacore.com>
444         * tbuild.adb: Minor reformatting
446 2009-08-17  Ed Schonberg  <schonberg@adacore.com>
448         * exp_ch3.adb (Build_Discriminant_Formals): If the discriminals already
449         exist, as is the case for synchronized types, use the type of the
450         discriminal in the parameter specification, to prevent a spurious
451         subtype mismatch in gigi.
453 2009-08-17  Robert Dewar  <dewar@adacore.com>
455         * prj-env.adb: Minor reformatting
456         * make.adb: Minor reformatting
457         Comment updates
459 2009-08-17  Javier Miranda  <miranda@adacore.com>
461         * exp_ch7.adb (Wrap_Transient_Expression): Update comments.
463 2009-08-17  Emmanuel Briot  <briot@adacore.com>
465         * prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-conf.adb
466         (Processing_Flags.Require_Obj_Dirs): new field, which controls whether
467         object directories must be present. In the case of gprclean at least,
468         these are optional (if they do not exist there is nothing to clean)
470 2009-08-17  Robert Dewar  <dewar@adacore.com>
472         * prj-env.adb: Minor reformatting
473         * sem_ch3.adb: Minor reformatting
475 2009-08-17  Hristian Kirtchev  <kirtchev@adacore.com>
477         * sysdep.c (__gnat_localtime_tzoff): VxWorks case - Flip the sign of
478         the time zone since VxWorks chose positive values to represent west
479         time zones and negative for east zones.
481 2009-08-17  Ed Schonberg  <schonberg@adacore.com>
483         * sem_ch3.adb (Access_Definition): Do not create an Itype reference for
484         an anonymous access type whose designated type is generic.
486 2009-08-17  Arnaud Charlet  <charlet@adacore.com>
488         * comperr.adb (Compiler_Abort): Do not generate a bug box when in
489         codepeer mode, friendlier.
491 2009-08-10  Laurent GUERBY  <laurent@guerby.net>
493         * make.adb: Handle multilib
494         
495 2009-08-10  Vincent Celier  <celier@adacore.com>
497         * prj-env.adb (Create_Config_Pragmas_File.Write_Temp_File): Do not use
498         the temporary file name in the error message when the temporary file
499         cannot be created.
501 2009-08-10  Yannick Moy  <moy@adacore.com>
503         * gnat_ugn.texi: Fix typo
505 2009-08-10  Robert Dewar  <dewar@adacore.com>
507         * exp_ch7.adb: Add ??? comment for last change
509 2009-08-10  Vincent Celier  <celier@adacore.com>
511         * prj-env.adb (Add_To_Buffer): New procedure
512         (Create_Config_Pragmas_File): Write to temporary file in one shot
513         (Create_Mapping_File): Ditto
514         (Set_Ada_Paths): Ditto
516 2009-08-10  Vincent Celier  <celier@adacore.com>
518         PR ada/17566
519         * xref_lib.adb (Print_Xref): Make sure that there is at least one space
520         between a declaration name and its type.
522 2009-08-07  Javier Miranda  <miranda@adacore.com>
524         * exp_ch7.adb (Wrap_Transient_Expression): Add missing adjustment of
525         SCIL node.
527 2009-08-07  Robert Dewar  <dewar@adacore.com>
529         * sem_warn.adb (Warn_On_Unreferenced_Entity): Fix obvious typo.
531 2009-08-07  Vincent Celier  <celier@adacore.com>
533         * gnatcmd.adb (GNATCmd): If -U is not used, one and only one main is
534         specified on the command line and there are switches in the Compiler
535         package of the project file, use these compilation switches to invoke
536         the tool.
538 2009-08-07  Ben Brosgol  <brosgol@adacore.com>
540         * gnat_ugn.texi: Wordsmithing edits at beginning of gnatcheck chapter.
542 2009-08-07  Ed Schonberg  <schonberg@adacore.com>
544         * sem_ch10.adb (Analyze_Proper_Body): Indicate name of missing subunit
545         even if not in main unit, to simplify debugging.
547 2009-08-07  Arnaud Charlet  <charlet@adacore.com>
549         * gcc-interface/Makefile.in: Fix handling of GCC_FOR_TARGET.
550         * gcc-interface/Make-lang.in: Update dependencies.
552 2009-08-07  Robert Dewar  <dewar@adacore.com>
554         * types.ads: Minor reformatting
555         * sem_ch12.ads (Check_Generic_Child_Unit): Add missing documentation.
556         * frontend.adb, sem_warn.adb, sem_warn.ads: Fix spelling of
557         Output_Non_Modified_In_Out_Warnings.
558         * sem_ch13.adb: Remove ??? comment.
560 2009-08-07  Vincent Celier  <celier@adacore.com>
562         * mlib-prj.adb (Build_Library): Include binder generate object file
563         for SAL when library name is only one character.
565 2009-08-07  Thomas Quinot  <quinot@adacore.com>
567         * targparm.adb: Minor reformatting
568         * sem.adb: Minor reformatting
569         * exp_ch4.adb (Expand_N_Conditional_Expression): Add comment.
571 2009-08-07  Emmanuel Briot  <briot@adacore.com>
573         * prj-conf.adb: Remove duplicate directory separator in the output when
574         an object directory does not exist.
576 2009-08-07  Robert Dewar  <dewar@adacore.com>
578         * exp_util.adb: Minor reformatting
580 2009-08-07  Vincent Celier  <celier@adacore.com>
582         * mlib-prj.adb (Build_Library): Fixed bug in name of ALI file (wrong
583         length used).
585 2009-08-07  Ed Schonberg  <schonberg@adacore.com>
587         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): In Ravenscar mode,
588         detect non-static private components that will violate restriction
589         No_Implicit_Heap_Allocation.
591 2009-08-07  Ben Brosgol  <brosgol@adacore.com>
593         * gnat_ugn.texi: Edited Rule Exemption section of gnatcheck chapter.
595 2009-08-02  Eric Botcazou  <ebotcazou@adacore.com>
597         * gcc-interface/gigi.h (end_subprog_body): Tweak comment.
598         * gcc-interface/utils.c (end_subprog_body): Likewise.
599         * gcc-interface/trans.c (gigi): Likewise.
600         (gnat_to_gnu): Likewise.
602 2009-07-30  Ben Brosgol  <brosgol@adacore.com>
604         * gnat_ugn.texi: Correct minor texi glitch.
606 2009-07-30  Ed Schonberg  <schonberg@adacore.com>
608         * exp_util.adb (Expand_Subtype_From_Expr): If the type of the
609         expression has an underlying representation that is an unchecked union,
610         there is no subtype to build.
612 2009-07-30  Robert Dewar  <dewar@adacore.com>
614         * a-teioed.adb, exp_disp.adb, s-linux-hppa.ads, s-linux.ads,
615         s-tasini.adb, sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch6.adb,
616         sem_ch7.adb, adaint.c: Minor reformatting
618 2009-07-29  Javier Miranda  <miranda@adacore.com>
620         * sem_ch3.ads, sem_ch3.adb (Add_Internal_Interface_Entities): Routine
621         moved from the expander to the semantic analyzer to allow the
622         generation of these internal entities when compiling with no code
623         generation. Required by ASIS.
624         * sem.adb (Analyze): Add processing for N_Freeze_Entity nodes.
625         * sem_ch13.ads, sem_ch13.adb (Analyze_Freeze_Entity): New subprogram.
626         * exp_ch3.adb (Add_Internal_Interface_Entities): Moved to sem_ch3
627         (Expand_Freeze_Record_Type): Remove call to
628         Add_Internal_Interface_Entities because this routine is now called at
629         early stage --when the freezing node is analyzed.
631 2009-07-29  Robert Dewar  <dewar@adacore.com>
633         * exp_atag.ads, exp_atag.adb, s-tasini.adb, s-soflin.ads,
634         exp_disp.adb, g-socket.adb: Minor reformatting
636 2009-07-29  Ed Schonberg  <schonberg@adacore.com>
638         * sem_ch7.adb (New_Private_Type): Create class-wide type after other
639         attributes have been established, so that they are all inherited by the
640         class-wide type.
641         * sem_cat.adb (Validate_Remote_Access_Object_Type_Declaration): Handle
642         properly named subtypes of class-wide types.
644 2009-07-29  Ed Schonberg  <schonberg@adacore.com>
646         * sem_ch6.adb (Check_Overriding_Indicator): Handle properly overriding
647         indicators on user-defined operators.
649 2009-07-29  Vadim Godunko  <godunko@adacore.com>
651         * g-socket.adb (Receive_Vector): Add comment.
653 2009-07-29  Javier Miranda  <miranda@adacore.com>
655         * frontend.adb (Frontend): Code cleanup.
656         * exp_atag.ads, exp_atag.adb (Build_Get_Predefined_Prim_Op_Address):
657         Rewriten as a procedure because it a new out-mode parameters to
658         keep up-to-date the controlling tag node in the caller.
659         (Build_Get_Prim_Op_Address): Rewriten as a procedure because it has a
660         new out-mode parameter to keep up-to-date the controlling tag node in
661         the caller.
662         * exp_ch7.adb, sem_ch5.adb, exp_util.adb, sem_util.adb, exp_ch4.adb,
663         exp_ch6.adb, sem_ch4.adb, exp_ch3.adb: Add new dependency on new
664         package Sem_SCIL.
665         * sem_aux.ads, sem_aux.adb (First_Non_SCIL_Node): Removed. Routine
666         available in new package Sem_SCIL.
667         (Next_Non_SCIL_Node): Ditto.
668         * exp_disp.adb (Adjust_SCIL_Node): Removed. Routine available in new
669         package Sem_SCIL.
670         (Expand_Dispatching_Call): Update call to modified Exp_Atags routines
671         plus complete decoration of SCIL dispatching node.
672         (Find_SCIL_Node): Removed. Routine available in new package Sem_SCIL.
673         * exp_disp.ads (Adjust_SCIL_Node): Removed. Routine available in new
674         package Sem_SCIL.
675         (Find_SCIL_Node): Removed. Routine available in new package Sem_SCIL.
676         * exp_ch3.adb (Build_Init_Procedure): Fix comment.
677         * sem_scil.ads, sem_scil.adb: New files.
678         * gcc-interface/Make-lang.in (GNAT_ADA_OBJS): Addition of sem_scil.o.
679         Update dependencies.
681 2009-07-28  Robert Dewar  <dewar@adacore.com>
683         * adaint.h, einfo.ads, prj.adb, sem_util.adb, makeutl.ads,
684         makeutl.adb: Minor reformatting & code reorganization
685         * sem_ch3.adb: Minor reformatting.
686         Fix spelling error (constraint for constrain) in error msg.
688 2009-07-28  Emmanuel Briot  <briot@adacore.com>
690         * make.adb, makeutl.adb, makeutl.ads (Project_Tree): Duplicates the
691         global variable that also exists in makeutl.ads, and that some routines
692         in that package use already.
693         (Check): Moved part of the code to makeutl.adb for better sharing with
694         gprbuild.
696 2009-07-28  Arnaud Charlet  <charlet@adacore.com>
698         * gcc-interface/Make-lang.in: Update dependencies.
700 2009-07-28  Emmanuel Briot  <briot@adacore.com>
702         * prj.adb, prj.ads (Compute_All_Imported_Projects): Make sure the
703         importing project does not end up in the list, in the case of extending
704         projects.
705         * make.adb, makeutl.adb, makeutl.ads (File_Not_A_Source_Of): Moved to
706         makeutl.ads, for better sharing with gprbuild.
708 2009-07-28  Arnaud Charlet  <charlet@adacore.com>
710         * gnat_ugn.texi: Fix typo.
712 2009-07-28  Ed Schonberg  <schonberg@adacore.com>
714         * sem_ch3.adb (Build_Derived_Concurrent_Type): Handle properly a
715         derivation that renames some discriminants and constrain others.
716         * exp_ch9.adb (Build_Protected_Subprogram_Call): If the type of the
717         prefix is a derived untagged type, convert to the root type to conform
718         to the signature of the protected operations.
720 2009-07-28  Robert Dewar  <dewar@adacore.com>
722         * sinfo.ads: Update comments.
723         * exp_attr.adb: Minor reformatting
725 2009-07-28  Ed Schonberg  <schonberg@adacore.com>
727         * sem_aggr.adb (Get_Value): A named association in a record aggregate
728         should be treated as a modification of the named component, not as a
729         reference.
731 2009-07-28  Quentin Ochem  <ochem@adacore.com>
733         * prj-tree.ads, prj-tree.adb (Free): Minor editing.
734         * prj.ads, prj.adb (Image): Ditto.
736 2009-07-28  Arnaud Charlet  <charlet@adacore.com>
738         * frontend.adb: Minor reformatting.
739         (Frontend): Only call Check_SCIL_Nodes if assertions are enabled,
740         for efficiency.
742 2009-07-28  Bob Duff  <duff@adacore.com>
744         * exp_attr.adb (Expand_Access_To_Protected_Op): Use 'Access instead of
745         'Address to get a pointer to the protected body wrapper.
747 2009-07-28  Javier Miranda  <miranda@adacore.com>
749         * gnat1drv.adb (Adjust_Global_Switches): Disable generation of SCIL
750         nodes if we are not generating code.
751         * frontend.adb (Check_SCIL_Node): New subprogram. Used to check
752         attribute SCIL_Related_Node of SCIL dispatching nodes.
753         (Check_SCIL_Nodes): New instantiation of Traverse_Proc.
754         * sinfo.ads (Is_SCIL_Node,Set_Is_SCIL_Node): Removed
755         (SCIL_Nkind,Set_SCIL_Nkind): Removed.
756         (SCIL_Entity): Update documentation.
757         (SCIL_Related_Node): Update documentation.
758         (SCIL_Controlling_Tag): New attribute.
759         (SCIL_Target_Prim): Update documentation.
760         (N_Null_Statement): Remove attributes associated with SCIL nodes.
761         (N_SCIL_Dispatch_Table_Object_Init): New node.
762         (N_SCIL_Dispatch_Table_Tag_Init): New node.
763         (N_SCIL_Dispatching_Call): New node.
764         (N_SCIL_Tag_Init): New node.
765         * sinfo.adb (Is_SCIL_Node,Set_Is_SCIL_Node): Removed
766         (SCIL_Nkind,Set_SCIL_Nkind): Removed.
767         (SCIL_Controlling_Tag/Set_SCIL_Controlling_Tag): New subprogram.
768         (SCIL_Entity,Set_SCIL_Entity): Applicable only to SCIL nodes.
769         (SCIL_Related_Node,Set_SCIL_Related_Node): Applicable only to SCIL nodes
770         (SCIL_Target_Prim,Set_SCIL_Target_Prim): Applicable only to
771         N_SCIL_Dispatching_Call nodes.
772         * sem.adb (Analyze): No need to analyze SCIL nodes.
773         * sem_aux.ads, sem_aux.adb (First_Non_SCIL_Node): New subprogram
774         (Next_Non_SCIL_Node): New subprogram
775         * sem_ch4.adb (Analyze_Type_Conversion): Adjust relocated SCIL
776         dispatching nodes.
777         * sem_ch5.adb (Analyze_Iteration_Scheme): Adjust relocated SCIL
778         dispatching node.
779         * sem_util.adb (Insert_Explicit_Dereference): Adjust relocated SCIL
780         dispatching node.
781         * exp_ch3.adb (Build_Array_Init_Proc): Skip SCIL nodes when processing
782         null statement nodes.
783         (Build_Init_Procedure): Generate new SCIL node.
784         * exp_ch4.adb (Expand_N_And_Then): Adjust relocated SCIL dispatching
785         node.
786         * exp_ch6.adb (Is_Null_Procedure): Skip SCIL nodes. Required because
787         they are currently implemented as special N_Null_Statement nodes.
788         * exp_ch7.adb (Wrap_Transient_Statement): If the relocated node is a
789         procedure call then check if some SCIL node references it and needs
790         readjustment.
791         * exp_disp.ads (SCIL_Node_Kind): Removed.
792         (Adjust_SCIL_Node): New subprogram.
793         (Find_SCIL_Node): New subprogram.
794         (Get_SCIL_Node_Kind): Removed.
795         (New_SCIL_Node): Removed.
796         * exp_disp.adb (Adjust_SCIL_Node): New subprogram
797         (Expand_Dispatching_Call): Generate new SCIL dispatching node including
798         decoration of its new controlling_tag attribute.
799         (Get_SCIL_Node_Kind): Removed.
800         (Find_SCIL_Node): New subprogram.
801         (Make_Secondary_DT): Generate new SCIL nodes.
802         (Make_Tags): Generate new SCIL nodes.
803         (New_SCIL_Node): Removed.
804         * exp_util.adb (Insert_Actions): Handle SCIL nodes.
805         (Remove_Side_Effects): Check if relocated nodes require readjustment
806         of some SCIL dispatching node.
807         * gcc-interface/trans.c (gnat_to_gnu): Do nothing with new SCIL nodes.
809 2009-07-28  Robert Dewar  <dewar@adacore.com>
811         * prj-nmsc.adb, g-expect.adb, prj.ads: Minor reformatting
813 2009-07-28  Sergey Rybin  <rybin@adacore.com>
815         * gnat_ugn.texi: Add section about gnatcheck rule exemption.
817 2009-07-28  Vadim Godunko  <godunko@adacore.com>
819         * s-oscons-tmplt.c: Define _XOPEN_SOURCE on Linux, otherwise IOV_MAX is
820         not defined by limits.h.
822         * g-socket.adb (Receive_Vector): Use minimum length from user's vector
823         length and maximum supported length of data vector.
825 2009-07-28  Gary Dismukes  <dismukes@adacore.com>
827         * usage.adb: Inhibit printing gcc-specific switches for AAMP target.
828         * make.adb: Call Get_Target_Parameters before calling Usage so that
829         VM_Target and AAMP_On_Target will be set.
831 2009-07-28  Olivier Hainque  <hainque@adacore.com>
833         * g-ssinty.ads: Remove, pointless and just confusing at this stage.
834         * gnat_rm.texi: Remove documentation.
835         * g-sse.ads: Minor reorg along the way.
836         * gcc-interface/Makefile.in: Remove processing for g-ssinty.
837         * g-ssvety.ads: Minor comment updates.
839 2009-07-28  Sergey Rybin  <rybin@adacore.com>
841         * gnat_ugn.texi: gnatcheck 'Format of the Report File' section - update
842         for the new format of the report file.
844 2009-07-28  Sergey Rybin  <rybin@adacore.com>
846         * gnat_ugn.texi: gnatcheck Deeply_Nested_Inlining rule: Update doc.
848 2009-07-28  Pascal Obry  <obry@adacore.com>
850         * g-expect.adb: Record standard handles only on Windows.
852 2009-07-27  Emmanuel Briot  <briot@adacore.com>
854         * prj.ads, prj-nmsc.adb (Override_Kind): add debug trace
855         Add comments.
857 2009-07-27  Sergey Rybin  <rybin@adacore.com>
859         * gnat_ugn.texi: gnatcheck Unconstrained_Array_Returns rule: Add to the
860         rule definition the paragraph that explains that generic functions and
861         functions from generic packages are not checked.
863 2009-07-27  Gary Dismukes  <dismukes@adacore.com>
865         * sem_ch6.adb (New_Overloaded_Entity): Add test for an expanded null
866         procedure when determining whether to set the Overridden_Operation
867         field of a subprogram overriding an inherited subprogram.
868         
869 2009-07-27  Robert Dewar  <dewar@adacore.com>
871         * a-except.adb, a-except-2005.ads: Minor reformatting
873 2009-07-27  Robert Dewar  <dewar@adacore.com>
875         * sem_util.adb, sem_util.ads (Kill_Current_Values): Reset Is_Known_Valid
877 2009-07-27  Javier Miranda  <miranda@adacore.com>
879         * exp_disp.adb (Expand_Dispatching_Call): Reverse previous patch and
880         add some documentation explaining why the SCIL nodes must be generated
881         at that point.
883 2009-07-27  Olivier Hainque  <hainque@adacore.com>
885         * a-except.adb: Bind to __builtin_longjmp directly.
886         * a-except-2005.ads: Provide direct binding to __builtin_longjmp
887         for sjlj variants.
888         * a-exexpr.adb: Use it.
889         * a-except-xi.adb: Likewise.
890         * raise.c (_gnat_builtin_longjmp): Remove and update comments.
891         * raise.h (_gnat_builtin_longjmp): Remove declaration.
893 2009-07-27  Ed Schonberg  <schonberg@adacore.com>
895         * sem_eval.adb (Compile_Time_Compare): More precise handling of
896         Known_Valid flag, to prevent spurious range deductions when scalar
897         variables may be uninitialized. New predicate Is_Known_Valid_Operand.
899 2009-07-27  Robert Dewar  <dewar@adacore.com>
901         * gnatfind.adb, osint.ads, sem.adb, xr_tabls.adb: Minor reformatting
902         and code clean up.
904 2009-07-27  Ed Schonberg  <schonberg@adacore.com>
906         * exp_ch9.adb (Expand_N_Timed_Entry_Call): Do not attempt expansion in
907         Ravenscar mode. Error has already been posted on specification.
909         * sem.adb: Further code clean ups.
911 2009-07-27  Robert Dewar  <dewar@adacore.com>
913         * g-sse.ads: Minor reformatting
915 2009-07-27  Arnaud Charlet  <charlet@adacore.com>
917         * xref_lib.adb (Add_Xref_File_Internal, Find_ALI_Files): Add support for
918         alternate ali extension.
919         * xr_tabls.adb (ALI_File_Name, Get_File, Set_Unvisited): Take into
920         account Osint.ALI_Suffix.
921         * osint.ads (ALI_Suffix): Make visible.
922         * gnatfind.adb (Gnatfind): Add support for --ext= switch.
923         * gnat_ugn.texi: Document new gnatfind --ext= switch.
925 2009-07-27  Ed Schonberg  <schonberg@adacore.com>
927         * sem.adb (Walk_Library_Items): If main unit is an instance body, do
928         its spec first.
930 2009-07-27  Javier Miranda  <miranda@adacore.com>
932         * exp_disp.adb (Expand_Dispatching_Call): Generate the SCIL node after
933         the dispatching call has is expanded.
935 2009-07-27  Ed Schonberg  <schonberg@adacore.com>
937         * exp_attr.adb (Expand_Attribute_Reference, case 'Valid): Reset the
938         Is_Known_Valid flag on the temporary created for the value whose
939         validity is being checked.
941         * sem.adb (Do_Unit_And_Dependents): Further code reorganization to
942         handle properly main units that are package specifications.
944 2009-07-27  Geert Bosch  <bosch@adacore.com>
946         * einfo.ads (Checks_May_Be_Suppressed): Fix typo in comment
947         * sem_aux.ads: Fix typo in comment
948         * sem_util.ads (Is_LHS): Adjust comment to match body
950 2009-07-27  Sergey Rybin  <rybin@adacore.com>
952         * gnat_ugn.texi (gnatcheck Complex_Inlined_Subprograms rule): Update
953         rule definition.
955 2009-07-27  Olivier Hainque  <hainque@adacore.com>
957         * g-sse.ads, g-ssvety.ads: Update comments.
959 2009-07-27  Sergey Rybin  <rybin@adacore.com>
961         * gnat_ugn.texi: Update gnatcheck doc.
963 2009-07-27  Arnaud Charlet  <charlet@adacore.com>
965         * lib-xref.ads: Allocate/document 'o' char for use by references to
966         spark 'own' variables.
968 2009-07-27  Gary Dismukes  <dismukes@adacore.com>
970         * sem_ch6.adb (Analyze_Function_Return): Set Referenced on return
971         objects, since these are implicitly referenced by the return statement.
972         * sem_warn.adb (Warn_On_Unreferenced_Entity): No longer a need to test
973         Is_Return_Object in this procedure, as return objects will never make
974         it here since they're now marked as Referenced.
976 2009-07-27  Robert Dewar  <dewar@adacore.com>
978         * exp_ch2.adb, sem_util.adb, sem_util.ads: Minor reformnatting
980 2009-07-27  Robert Dewar  <dewar@adacore.com>
982         * exp_ch6.adb (Expand_Call): Reset Is_Known_Valid after call
984         * sem_ch3.adb, sem_eval.adb, sem_aux.adb: Minor comment reformatting
986 2009-07-27  Geert Bosch  <bosch@adacore.com>
988         * checks.adb (Find_Check): Minor streamlining of logic.
989         * gnat1drv.adb(Gnat1drv): Put Check_Rep_Info in its alphabetical order.
990         * debug.adb: Document -gnatdX debug flag
991         * exp_ch2.adb(Expand_Entity_Reference): Implement new -gnatdX flag to
992         list information about reads from scalar entities.
993         Also slightly simplify condition for Expand_Current_Value.
994         * sem_util.ads, sem_util.adb (Is_LHS, Is_Actual_Out_Parameter): New
995         functions.
997 2009-07-26  Dave Korn  <dave.korn.cygwin@gmail.com>
999         PR bootstrap/40578
1000         * adaint.h (FOPEN, STAT, FSTAT, LSTAT, STRUCT_STAT): Rename from these
1001         (GNAT_FOPEN, GNAT_STAT, GNAT_FSTAT, GNAT_LSTAT, GNAT_STRUCT_STAT): ...
1002         to these.
1003         (__gnat_stat): Adjust reference to STAT in prototype.
1004         * adaint.c (__gnat_try_lock, __gnat_fopen, __gnat_file_length,
1005         __gnat_named_file_length, __gnat_file_time_name, __gnat_file_time_fd,
1006         __gnat_get_libraries_from_registry, __gnat_stat, __gnat_file_exists,
1007         __gnat_is_regular_file, __gnat_is_directory, __gnat_is_readable_file,
1008         __gnat_is_writable_file, __gnat_is_executable_file,
1009         __gnat_set_writable, __gnat_set_executable, __gnat_set_non_writable,
1010         __gnat_set_readable, __gnat_set_non_readable, __gnat_is_symbolic_link,
1011         __gnat_copy_attribs): Adjust all references to the above.
1012         * cstreams.c (__gnat_is_regular_file_fd): Likewise.
1014 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
1016         * sem.adb (Do_Unit_And_Dependents): Now that specs and bodies are not
1017         done at the same time, guard against listing a body more than once.
1019 2009-07-23  Robert Dewar  <dewar@adacore.com>
1021         * exp_ch6.adb: Minor reformatting
1023 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
1025         * sem_ch3.adb (Analyze_Object_Declaration): A scalar constant with a
1026         static expression is known valid.
1027         * sem_eval.adb (Compile_Time_Compare): Handle properly non-static
1028         operands of a subtype with a single value.
1030 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
1032         * sem.adb (Do_Units_And_Dependents): Process bodies only for units that
1033         are in the context of the main unit body.
1035 2009-07-23  Sergey Rybin  <rybin@adacore.com>
1037         * gnat_ugn.texi (Misnamed_Controlling_Parameters gnatcheck rule): Fix
1038         misprint in rule description.
1040 2009-07-23  Gary Dismukes  <dismukes@adacore.com>
1042         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Replace
1043         test that the object declaration is within an extended return statement
1044         with direct test of whether the declared object associated with the
1045         build-in-place call is a return object, since the enclosing function
1046         might not even be a build-in-place function.
1048 2009-07-23  Robert Dewar  <dewar@adacore.com>
1050         * freeze.adb, prj-nmsc.adb, errout.adb: Minor reformatting
1051         Minor code reorganization
1053 2009-07-23  Arnaud Charlet  <charlet@adacore.com>
1055         * sem_prag.adb (Analyze_Pragma): Do not ignore pragma Pack on records
1056         for static analysis, only packed arrays are causing troubles.
1058 2009-07-23  Gary Dismukes  <dismukes@adacore.com>
1060         * sem_aggr.adb (Resolve_Extension_Aggregate): Report an error when the
1061         ancestor part is a call to a limited function with an unconstrained
1062         result subtype unless the aggregate has a null extension type.
1063         * sem_ch3.adb (Is_Null_Extension): Use the base type when retrieving
1064         the parent type declaration to avoid blowups on subtype cases.
1066 2009-07-23  Robert Dewar  <dewar@adacore.com>
1068         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Better message for missing
1069         comma.
1071         * sem_util.adb (Wrong_Type): Special message for cases like A and B = 0
1073         * s-regexp.adb: Minor reformatting
1074         * scos.ads: Minor reformatting.
1076 2009-07-23  Arnaud Charlet  <charlet@adacore.com>
1078         * freeze.adb (Set_Small_Size): Remove extra space for consistency with
1079         other similar messages.
1080         * sem_prag.adb (Freeze_Record_Type, Freeze_Entity): Disable error
1081         messages/implicit packing in CodePeer mode.
1082         (Analyze_Pragma [case pragma Pack]): Ignore pragma in CodePeer mode.
1083         * errout.adb (Special_Msg_Delete): Suppress 'size too small' message in
1084         CodePeer mode.
1086 2009-07-23  Pascal Obry  <obry@adacore.com>
1088         * prj-nmsc.adb: Fix spec/body naming extension on case insensitive
1089         systems.
1091 2009-07-23  Robert Dewar  <dewar@adacore.com>
1093         * einfo.ads, g-ssvety.ads, s-regexp.adb, g-sse.ads: Update comment.
1094         Minor reformatting.
1096 2009-07-23  Yannick Moy  <moy@adacore.com>
1098         * s-regexp.adb (Check_Well_Formed_Pattern): Called before compiling the
1099         pattern.
1100         (Raise_Exception_If_No_More_Chars): Remove extra blank in exception
1101         string.
1102         (Raise_Exception): Ditto.
1104 2009-07-23  Olivier Hainque  <hainque@adacore.com>
1106         * g-sse.ads: Simplify comment.
1108 2009-07-23  Olivier Hainque  <hainque@adacore.com>
1110         * g-ssinty.ads: New unit. GNAT.SSE.Internal_Types. Factorize
1111         low level internal type definitions for distinct higher level
1112         binding development activities (user type definitions and
1113         operations).
1114         * gnat_rm.texi: Document it.
1115         * g-ssvety.ads: Use it.
1116         * gcc-interface/Makefile.in: (x86 32/64 linux, cygwin32 sections): Add
1117         g-ssinty.o to EXTRA_GNATRTL_NONTASKING_OBJS.
1118         * gcc-interface/utils.c (gnat_internal_attribute_table): Add entry
1119         for the "may_alias" attribute.
1121 2009-07-23  Thomas Quinot  <quinot@adacore.com>
1123         * scos.ads: Minor typo fix
1125         * gcc-interface/decl.c (validate_alignment): For the case of an
1126         implicit array base type, look for alignment clause on first subtype.
1128 2009-07-23  Robert Dewar  <dewar@adacore.com>
1130         * gcc-interface/decl.c (gnat_to_gnu_field): Don't check for overlap
1131         with tagged parent if tagged parent is fully repped.
1133 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
1135         * sem.adb (Walk_Library_Units): Handle properly the case where a unit
1136         in the context depends on the spec of the main unit, by delaying
1137         processing of the main unit body until all other units have been
1138         processed.
1140 2009-07-23  Arnaud Charlet  <charlet@adacore.com>
1142         * a-convec.adb: Add comments about suspicious/subtle code.
1144 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
1146         * einfo.ads: Document use of Alias in private overriding
1148 2009-07-23  Thomas Quinot  <quinot@adacore.com>
1150         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): For the case of
1151         an array type, propagate alignment from first subtype to implicit base
1152         type so that other subtypes (such as the itypes for aggregates of the
1153         type) also receive the expected alignment.
1155         * g-comlin.ads: Minor documentation clarification/rewording. 
1156         * scos.ads: Minor comments update.
1157         * lib-writ.ads: Minor reformatting
1159 2009-07-23  Gary Dismukes  <dismukes@adacore.com>
1161         * exp_ch3.adb (Expand_N_Object_Declaration): For an initialized object
1162         of a class-wide interface type that is a return object of a
1163         build-in-place function, bypass the interface-related expansions into
1164         renamings with displacement conversions, etc.
1165         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Add an assertion
1166         for the case where a renaming occurs in a build-in-place context, to
1167         assert that the bypassing of the build-in-place treatment only occurs
1168         in the case of a renaming that is an expansion of a return expression
1169         that is itself a build-in-place function call.
1171 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
1173         * sem_ch4.adb (Try_Primitive_Operation): A primitive operation is a
1174         valid candidate interpretation in a prefixed view if it is hidden, but
1175         overrides an inherited operation declared in the visible part.
1177 2009-07-23  Robert Dewar  <dewar@adacore.com>
1179         * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
1180         division operands to 64-bit at all in any circumstances.
1182 2009-07-23  Robert Dewar  <dewar@adacore.com>
1184         * exp_ch4.adb (Analyze_N_Op_Rem): Assume operands are valid when
1185         checking ranges for mod/rem to see if conditional jump will be
1186         generated.
1187         (Analyze_N_Op_Rem): Don't try to check actual lower bounds for
1188         generating special -1 test for rem, generate it whenever both
1189         operands can be negative (match circuit in Sem_Res).
1190         (Analyze_N_Op_Rem): Don't go to base type, no longer needed and
1191         destroys memory of positive range.
1192         * sem_res.adb (Resolve_Arithmetic_Op): Assume operands are valid when
1193         checking ranges for mod/rem to see if conditional jump will be generated
1195 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
1197         * exp_ch3.adb (Build_Equivalent_Record_Aggregate): If the type of a
1198         scalar components has non-static bounds, the equivalent aggregate
1199         cannot be built, even if the expression is static, because range checks
1200         will be generated.
1202 2009-07-23  Robert Dewar  <dewar@adacore.com>
1204         * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
1205         division operands to 64-bit inside a conversion if 64-bit division not
1206         available.
1208 2009-07-23  Sergey Rybin  <rybin@adacore.com>
1210         * gnat_ugn.texi: Update doc on Misnamed_Identifiers rule.
1212 2009-07-23  Javier Miranda  <miranda@adacore.com>
1214         * sinfo.ads, sinfo.adb (SCIL_Entity/Set_SCIL_Entity): new subprograms
1215         (Entity/Set_Entity): not available in N_Null_Statement nodes
1216         (Is_Scil_Node): renamed as Is_SCIL_Node
1217         (Scil_Nkind): renamed as SCIL_Nkind
1218         (Scil_Related_Node): renamed as SCIL_Related_Node
1219         (Scil_Target_Prim): renamed as SCIL_Target_Prim
1220         (Set_Is_Scil_Node): Renamed as Set_Is_SCIL_Node
1221         (Set_Scil_Related_Node): Renamed as Set_SCIL_Related_Node
1222         (Set_Scil_Target_Prim): Renamed as Set_SCIL_Target_Prim
1223         Update documentation
1224         * exp_disp.ads (Scil_Node_Kind): Renamed as SCIL_Node_Kind
1225         (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
1226         (New_Scil_Node): Renamed as New_SCIL_Node
1227         * exp_disp.adb Update all occurrences of New_Scil_Node to New_SCIL_Node.
1228         (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
1229         (New_Scil_Node): Renamed as New_SCIL_Node
1230         * exp_ch3.adb Update occurrence of New_Scil_Node to New_SCIL_Node.
1232 2009-07-23  Robert Dewar  <dewar@adacore.com>
1234         * sem_prag.adb: No_Return is an Ada 2005 pragma, not a GNAT pragma
1235         * snames.ads-tmpl: No_Return is an Ada 2005 pragma, not a GNAT pragma
1236         * einfo.adb: Minor reformatting
1238 2009-07-23  Robert Dewar  <dewar@adacore.com>
1240         * checks.adb (Apply_Arithmetic_Overflow_Check): Add comments
1241         cross-referencing the new related code in
1242         Exp_Ch4.Expand_N_Type_Conversion.
1243         * exp_ch4.adb (Expand_N_Type_Conversion): Avoid unnecessary overflows
1245         * exp_disp.adb, exp_disp.ads, sinfo.ads: Minor reformatting.
1246         Add comment.
1248 2009-07-23  Javier Miranda  <miranda@adacore.com>
1250         * sinfo.ads (Is_Scil_Node, Scil_Nkind, Scil_Related_Node,
1251         Scil_Target_Prim, N_Has_Entity): Add missing documentation.
1252         * exp_disp.ads (Scil_Node_Kind): Ditto.
1253         * exp_disp.adb (Make_DT, Make_Tags): Ditto.
1254         * exp_ch3.adb (Build_Init_Procedure): Ditto.
1256 2009-07-23  Javier Miranda  <miranda@adacore.com>
1258         * einfo.adb (Component_Type): Add missing assertion.
1259         * sem_res.adb (Resolve_Call): Ensure proper kind of entity before
1260         reading attribute Component_Size.
1261         * exp_ch4.adb (Is_Safe_In_Place_Array_Op): Ensure proper kind of entity
1262         before reading attributes Component_Size and Component_Type.
1263         * exp_ch3.adb (Build_Initialization_Call): Ensure proper kind of entity
1264         before reading attribute Component_Type.
1266 2009-07-23  Olivier Hainque  <hainque@adacore.com>
1268         * gnat_rm.texi: Document the GNAT.SSE units.
1270 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
1272         * sem_ch6.adb (Analyze_Return_Type): Do not create itype reference for
1273         not null return if it appears on a subunit.
1275 2009-07-23  Robert Dewar  <dewar@adacore.com>
1277         * exp_ch5.adb (Expand_N_Assignment_Statement): Do left-side validity
1278         check right away so it does not get skipped for early returns, e.g.
1279         array assignments.
1280         (Expand_N_Assignment_Statement): Don't propagate Is_Known_Valid to
1281         left-side unless we really know the value is valid.
1283         * errout.adb, exp_ch3.adb, exp_disp.ads, sinfo.ads, exp_disp.adb: Minor
1284         reformatting. Minor code reorganization. Add comments.
1286 2009-07-23  Robert Dewar  <dewar@adacore.com>
1288         * get_scos.adb (Skip_EOL): Fix error of mishandling end of line after
1289         complex condition.
1291 2009-07-23  Gary Dismukes  <dismukes@adacore.com>
1293         * sem_ch6.adb (Check_Return_Subtype_Indication): Replace type equality
1294         with test of coverage, to allow specific type objects in extended
1295         returns of class-wide functions. Remove now-unnecessary special-case
1296         tests that allowed this in certain cases of expanded extended returns.
1298 2009-07-23  Javier Miranda  <miranda@adacore.com>
1300         * sinfo.ads,sinfo.adb (Entity/Set_Entity): Attribute available in
1301         N_Null_Statements (for SCIL nodes).
1302         (Is_Scil_Node/Set_Is_Scil_Node): New attribute (for SCIL nodes).
1303         (Scil_Nkind/Set_Scil_Nkind): New attribute (for SCIL nodes).
1304         (Scil_Related_Node/Set_Scil_Related_Node): New attribute (for SCIL
1305         nodes).
1306         (Scil_Target_Prim/Set_Scil_Target_Prim): New attribute (for SCIL nodes).
1307         * exp_disp.adb (Expand_Dispatching_Call): Add generation of SCIL node
1308         associated with dispatching call.
1309         (Get_Scil_Node_Kind): New function that returns the kind of SCIL node.
1310         (Make_DT, Make_Tags): Add generation of SCIL nodes associated with
1311         initialization of dispatch tables and initialization of tags.
1312         (New_Scil_Node): New function that creates a new SCIL node.
1313         (Build_Init_Procedure): Add generation of SCIL node associated with the
1314         initialization of tags done in the IP subprogram.
1316 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
1318         * errout.adb (Error_Msg_NEL): If the entity in the initial message has
1319         Warnings_Off, do not emit continuation messages.
1321         * sem_ch10.adb: Set Is_Compilation_Unit on generated child subprogram
1322         spec.
1324 2009-07-23  Emmanuel Briot  <briot@adacore.com>
1326         * ali.adb: Minor comment update
1328 2009-07-23  Vasiliy Fofanov  <fofanov@adacore.com>
1330         * s-win32.ads (HANDLE): Define to be the same size as address type.
1331         Fix copyright.
1333 2009-07-23  Olivier Hainque  <hainque@adacore.com>
1335         * g-sse.ads: New file. Root of the SSE facilities trees, with
1336         general description and common declarations.
1337         * g-ssvety.ads: New file. Expose user level SSE vector types.
1338         * impunit.adb (Non_Imp_File_Names_95): Register new units.
1339         * gcc-interface/Makefile.in (x86 32/64 linux, win32): Add
1340         EXTRA_GNATRTL_NONTASKING_OBJS entries for SSE units.
1342 2009-07-23  Ben Brosgol  <brosgol@adacore.com>
1344         * gnat_ugn.texi: Wordsmithing.
1346 2009-07-23  Arnaud Charlet  <charlet@adacore.com>
1348         * prj-conf.ads, prj-conf.adb: Switch to GPLv3.
1350 2009-07-22  Eric Botcazou  <ebotcazou@adacore.com>
1352         * exp_aggr.adb (Gen_Loop): Do not qualify the bounds of the range if
1353         they are already of the base type of the index.
1355 2009-07-22  Brett Porter  <porter@adacore.com>
1357         * sysdep.c, init.c: Fix typo: _SPE_ should have been __SPE__.
1359 2009-07-22  Robert Dewar  <dewar@adacore.com>
1361         * vms_data.ads: Add entry for SCO_OUTPUT (-gnateS)
1362         * gnat_ugn.texi: Add documentation for -gnateS switch
1363         * ug_words: Add entry for -gnateS /SCO_OUTPUT
1364         * gcc-interface/Make-lang.in: Update dependencies.
1366         * get_scos.adb, get_scos.ads, gnat1drv.adb, par_sco.adb,
1367         par_sco.ads, put_scos.adb, put_scos.ads, scos.adb, scos.ads: Initial
1368         complete information for SCO input/output.
1370 2009-07-22  Sergey Rybin  <rybin@adacore.com>
1372         * gnat_ugn.texi: Update doc for some gnatcheck rules.
1374 2009-07-22  Robert Dewar  <dewar@adacore.com>
1376         * par_sco.adb, par_sco.ads (pscos): New debug routine to output
1377         contents of SCO tables.
1378         * put_scos.adb, put_scos.ads, get_scos.adb, get_scos.ads,
1379         scos.adb, scos.ads: New files.
1380         * gcc-interface/Make-lang.in: Update dependencies.
1382         * lib-util.ads, gnatbind.ads, ali.ads, binderr.ads: Minor comment
1383         fixes and reformatting.
1385 2009-07-22  Robert Dewar  <dewar@adacore.com>
1387         * g-socket.ads: Minor reformatting
1389 2009-07-22  Gary Dismukes  <dismukes@adacore.com>
1391         * sem_warn.adb (Warn_On_Unreferenced_Entity): Add warning messages that
1392         include the entity kind for following cases of unreferenced entities:
1393         E_Label, E_Discriminant, E_Package, E_Exception, and Formal_Object_Kind.
1395 2009-07-22  Ed Falis  <falis@adacore.com>
1397         * s-vxwext-kernel.adb, s-vxwext-kernel.ads: Replace use of taskStop
1398         with taskSuspend.
1400 2009-07-22  Arnaud Charlet  <charlet@adacore.com>
1402         * adadecode.c: Make this file compilable outside of GCC.
1404 2009-07-22  Thomas Quinot  <quinot@adacore.com>
1406         * g-socket.adb, g-socket.ads (Check_Selector): Make sure that
1407         (partially) default-initialized socket sets are handled properly by
1408         clearing their Set component.
1410 2009-07-22  Bob Duff  <duff@adacore.com>
1412         * gnat_ugn.texi: Clarify the -gnatVx (validity checking) switches.
1414 2009-07-22  Robert Dewar  <dewar@adacore.com>
1416         * gnat_ugn.texi: Minor reformatting
1418 2009-07-22  Ed Schonberg  <schonberg@adacore.com>
1420         * errout.adb (Error_Msg): A style message within an instantiation
1421         should not be labelled as an error.
1423 2009-07-22  Ed Schonberg  <schonberg@adacore.com>
1425         * freeze.adb (Freeze_Entity): Do not generate extra formal for function
1426         in initialization expression if function does not have convention Ada.
1428 2009-07-22  Sergey Rybin  <rybin@adacore.com>
1430         * gnat_ugn.texi, vms_data.ads: Add qualifier for new gnatpp option
1431         '--separate-label' to control label layout.
1433 2009-07-22  Robert Dewar  <dewar@adacore.com>
1435         * exp_tss.ads, sem_eval.adb: Minor reformatting
1437 2009-07-22  Bob Duff  <duff@adacore.com>
1439         * exp_dist.adb, exp_dist.ads: Update comments.
1441 2009-07-22  Brett Porter  <porter@adacore.com>
1443         * init.c (__gnat_init_float): For SPE, set bits in SPEFSCR instead of
1444         FPSCR.
1445         * sysdep.c (__gnat_get_task_options): Set task option enabling SPE.
1447 2009-07-22  Gary Dismukes  <dismukes@adacore.com>
1449         * exp_ch5.adb, sem_util.adb, sem_attr.adb, exp_dbug.ads, exp_ch2.adb,
1450         exp_tss.ads, exp_ch4.adb, sem_ch4.adb: Correct spelling error.
1451         Minor reformatting.
1452         * sem_res.adb (Resolve_Explicit_Dereference): Reword one comment that
1453         used poor terminology.
1455 2009-07-22  Robert Dewar  <dewar@adacore.com>
1457         * freeze.adb, sem_ch3.adb, sem_prag.adb: Minor reformatting
1458         * sem_eval.adb, exp_tss.adb: Minor comment update.
1459         * stylesw.adb: Code clean up.
1461 2009-07-22  Ed Schonberg  <schonberg@adacore.com>
1463         * freeze.adb (Freeze_Entity): If Implicit_Packing is enabled, and the
1464         component size is an exact number of bytes, an array type can have a
1465         size clause that forces packing even though the array type itself is
1466         not bit-packed.
1468 2009-07-22  Thomas Quinot  <quinot@adacore.com>
1470         * sem_ch3.adb (Analyze_Object_Declaration): For a constant declaration,
1471         if there is a previous entity with the same name in the scope, ignore
1472         it if it is the renaming declaration for a generic package introduced
1473         in instances.
1475 2009-07-22  Nicolas Roche  <roche@adacore.com>
1477         * seh_init.c: use RtlAddFunctionTable to register our SEH exception
1478         handler on x86_64 windows.
1480 2009-07-22  Arnaud Charlet  <charlet@adacore.com>
1482         * sem_prag.adb (Analyze_Pragma): Initialize/Normalize_Scalars create
1483         false positives in CodePeer, so ignore this pragma in this mode.
1485 2009-07-22  Thomas Quinot  <quinot@adacore.com>
1487         * sem_util.adb, sem_ch10.adb: Minor reformatting
1489         * g-socket.adb (Receive_Socket, recvfrom(2) variant): Apply required
1490         special handling for the case of no data received and Item'First =
1491         Stream_Element_Offset'First.
1492         (Last_Index): New subprogram factoring the above special handling
1493         over the various locations where it is required.
1495 2009-07-22  Arnaud Charlet  <charlet@adacore.com>
1497         * gnat1drv.adb (Gnat1drv): Also disable division by zero and alignment
1498         checks in CodePeer_Mode.
1499         * gcc-interface/Make-lang.in: Update dependencies.
1501 2009-07-22  Ed Schonberg  <schonberg@adacore.com>
1503         * sem_aggr.adb: Improve error message.
1505         * sem_ch13.adb: If Ignore_Rep_Clauses is enabled, do a minimal analysis
1506         of an address representation clause.
1507         * freeze.adb (Freeze_Static_Object): An local imported object is legal
1508         if it has an address clause.
1510 2009-07-22  Thomas Quinot  <quinot@adacore.com>
1512         * sem_elab.adb (Insert_Elab_Check): When relocating an overloaded
1513         expression to insert an elab check using a conditional expression, be
1514         sure to carry the original list of interpretations to the new location.
1516 2009-07-22  Gary Dismukes  <dismukes@adacore.com>
1518         * gnat1drv.adb: Fix spelling error.
1520 2009-07-22  Javier Miranda  <miranda@adacore.com>
1522         * sem_type.ads, sem_type.adb (In_Generic_Actual): Leave this subprogram
1523         at the library level and fix a hidden bug in its implementation: its
1524         functionality for renaming objects was broken because
1525         N_Object_Renaming_Declarations nodes are not a subclass of
1526         N_Declaration nodes (as documented in sinfo.ads).
1527         * sem_util.adb (Check_Dynamically_Tagged_Expression): Include in this
1528         check nodes that are actuals of generic instantiations.
1530 2009-07-22  Ed Schonberg  <schonberg@adacore.com>
1532         * sinfo.ads, sinfo.adb (Pending_Context): New flag to indicate that the
1533         context of a compilation unit is being analyzed. Used to detect
1534         circularities created by with_clauses that are not detected by the
1535         loading machinery.
1536         * sem_ch10.adb (Analyze_Compilation_Unit): Set Pending_Context before
1537         analyzing the context of the current compilation unit, to detect
1538         possible circularities created by with_clauses.
1540 2009-07-22  Thomas Quinot  <quinot@adacore.com>
1542         * sem_type.adb (Get_First_Interp): Fix wrong loop exit condition.
1544 2009-07-22  Robert Dewar  <dewar@adacore.com>
1546         * sem_res.adb (Check_No_Direct_Boolean_Operators): Add check for -gnatyB
1547         * style.ads, styleg.adb, styleg.ads (Check_Boolean_Operator): New
1548         procedure.
1549         * usage.adb, stylesw.ads, stylesw.adb: Add handling of -gnatyB switch
1550         * gnat_ugn.texi: Add documentation of -gnatyB
1551         * vms_data.ads: Add entry for -gnatyB (STYLE=BOOLEAN_OPERATORS)
1553 2009-07-22  Robert Dewar  <dewar@adacore.com>
1555         * s-stchop.adb, a-direct.adb, a-ztexio.adb, gnatchop.adb, prj-proc.adb,
1556         make.adb, s-regpat.adb, ali-util.adb, a-ngcefu.adb, prep.adb,
1557         s-tassta.adb, a-tifiio.adb, a-textio.adb, prj.adb, uintp.adb,
1558         s-valrea.adb, a-ngelfu.adb, prepcomp.adb, sinput-l.adb, vms_conv.adb,
1559         errout.adb, g-alleve.adb, repinfo.adb, a-wtedit.adb, ali.adb,
1560         a-witeio.adb, prj-dect.adb, prj-nmsc.adb, sinput-c.adb, binde.adb,
1561         s-regexp.adb, s-imgrea.adb, a-teioed.adb, errutil.adb, prj-util.adb,
1562         a-ztedit.adb, gnatls.adb, prj-conf.adb, bcheck.adb, s-scaval.adb,
1563         erroutc.adb, osint.adb, a-strfix.adb, s-fileio.adb: Make sure sources
1564         obey short-circuit style rule.
1566 2009-07-20  Bob Duff  <duff@adacore.com>
1568         * sem_ch13.adb (Analyze_Record_Representation_Clause): Use "and then"
1569         instead of "and", because otherwise Parent_Last_Bit is read
1570         uninitialized in the case where it's not a tagged type, or the tagged
1571         parent does not have a complete rep clause.
1573 2009-07-20  Robert Dewar  <dewar@adacore.com>
1575         * stylesw.ads: Minor documentation change.
1577         * types.ads: Minor reformatting
1579 2009-07-20  Javier Miranda  <miranda@adacore.com>
1581         * exp_disp.ads (Apply_Access_Checks): New subprogram that takes care of
1582         generating the tag checks associated with dispatching calls.
1583         * exp_disp.adb (Apply_Access_Checks): New subprogram.
1584         (New_Value): This routine was previously local to expand dispatching
1585         calls but it is now used also by Apply_Access_Checks.
1586         (Expand_Dispatching_Calls): Cleanup code because the functionality of
1587         tag checks is now provided by Apply_Access_Checks. 
1588         * exp_ch6.adb (Expand_Call): Incorporate generation of tag checks in
1589         case of dispatching calls.
1591 2009-07-20  Arnaud Charlet  <charlet@adacore.com>
1593         * gnat1drv.adb (Gnat1drv): Also disable Elaboration_Check in
1594         CodePeer_Mode.
1596 2009-07-20  Gary Dismukes  <dismukes@adacore.com>
1598         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): When compiling
1599         for VMS, only rewrite the first component of the associated exception's
1600         aggregate init (as 'V'), and eliminate the bogus rewrites of the second
1601         and third components  that were being replaced with 'M' and 'S'.
1603 2009-07-20  Arnaud Charlet  <charlet@adacore.com>
1605         * gnat1drv.adb (Gnat1drv): Suppress access checks in CodePeer mode.
1606         Also do not generate error when parsing a spec in CodePeer mode.
1608 2009-07-20  Javier Miranda  <miranda@adacore.com>
1610         * checks.adb (Apply_Access_Check): Avoid checks on availability of
1611         runtime function Offset_To_Top_Ptr when compiling with no tagged
1612         types expansion.
1613         * exp_ch3.adb (Build_Init_Procedure): Leave open the possibility of
1614         adding code to the init proc when compiling for VM backends.
1616 2009-07-20  Vincent Celier  <celier@adacore.com>
1618         * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Take into
1619         account switches -gnatw.?
1621 2009-07-20  Thomas Quinot  <quinot@adacore.com>
1623         * sem_dist.adb, exp_dist.adb: Minor reformatting
1625         * Make-generated.in: New file.
1627         * gcc-interface/Make-lang.in: Use Make-generated.in fragment.
1629 2009-07-20  Javier Miranda  <miranda@adacore.com>
1631         * sem_util.ads, sem_util.adb (Check_Dynamically_Tagged_Expression): New
1632         subprogram.
1633         * sem_aggr.adb (Resolve_Array_Aggregate): Check incorrect use of
1634         dynamically tagged expression.
1635         * sem_ch3.adb (Analyze_Object_Declaration): Call new routine that
1636         factorizes code.
1637         * sem_ch6.adb (Analyze_Function_Return, Process_Formals): Ditto.
1638         * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
1640 2009-07-20  Arnaud Charlet  <charlet@adacore.com>
1642         * gnat1drv.adb (Gnat1drv): Set operating mode to Generate_Code when
1643         CodePeer_Mode is set, to benefit from full front-end expansion
1644         (e.g. generics).
1646 2009-07-20  Ed Schonberg  <schonberg@adacore.com>
1648         * sem_res.adb: Add guard.
1650         * exp_disp.adb, sem_disp.adb (Make_DT): Check underlying view of type
1651         for possible attribute definition of External_Tag, in case clause
1652         appears in the private part of a package.
1654 2009-07-20  Jerome Guitton  <guitton@adacore.com>
1656         * gcc-interface/Makefile.in: cleanup powerpc linux target pairs.
1658 2009-07-20  Vadim Godunko  <godunko@adacore.com>
1660         * a-coorma.adb: Minor reformatting.
1662 2009-07-20  Ed Schonberg  <schonberg@adacore.com>
1664         * sem_ch3 (Build_Itype_Reference): Make public, for use on non-null
1665         access return types.
1666         * sem_ch6.adb (Analyze_Return_Type): If return is a not null subtype,
1667         provide an itype reference to gigi to force elaboration of the subtype
1668         at the proper point.
1670 2009-07-20  Tristan Gingold  <gingold@adacore.com>
1672         * g-expect.adb: Avoid closeing already closed handle.
1674 2009-07-20  Robert Dewar  <dewar@adacore.com>
1676         * sprint.adb (Write_Subprogram_Name): New procedure to output
1677         subprogram name with possible preceding $ (replaces
1678         Note_Implicit_Run_Time_Call).
1680 2009-07-20  Robert Dewar  <dewar@adacore.com>
1682         * vms_data.ads: Minor reformatting
1684         * einfo.ads, einfo.adb (Parent_Subtype): Now allowed on record subtype,
1685         applies to base type.
1686         (Parent_Subtype): Now allowed on record subtype, applies to base type
1687         * exp_ch5.adb (Expand_Assign_Record): Handle Componentwise_Assignment
1688         for case of fully repped tagged type.
1689         (Make_Tag_Ctrl_Assignment): Set Componentwise_Assignment and avoid
1690         tag save/restore for fully repped tagged type case.
1691         * exp_util.ads, exp_util.adb (Is_Fully_Repped_Tagged_Type): New function
1692         * fe.h (Is_Fully_Repped_Tagged_Type): New function
1693         * sem_ch13.adb (Analyze_Recorrd_Representation_Clause): Check for
1694         overlap of tagged type components with parent type if parent type is
1695         fully repped.
1696         * sinfo.ads, sinfo.adb (Componentwise_Assignment): New flag
1698         * sem_res.adb (Check_No_Direct_Boolean_Operators): Remove handling of
1699         comparisons.
1700         (Resolve_Comparison_Operators): Remove No_Direct_Boolean_Operators check
1701         (Resolve_Equality_Op): Remove No_Direct_Boolean_Operators check
1703         * gnat_rm.texi: Restriction No_Direct_Boolean_Operators includes only
1704         logical operators (AND/OR/XOR), not comparison operators.
1706         * sprint.ads: Minor reformatting
1708 2009-07-20  Ed Schonberg  <schonberg@adacore.com>
1710         * sem_intr.adb (Check_Intrinsic_Call): For Import_Value and related
1711         intrinsics, check that argument is a string literal, rather than
1712         checking for staticness.
1714 2009-07-20  Robert Dewar  <dewar@adacore.com>
1716         * sem_ch13.adb: Minor reformatting
1718         * einfo.ads: Minor reformatting
1719         Component_Bit_Offset is no longer considered obsolescent
1721 2009-07-20  Nicolas Roche  <roche@adacore.com>
1723         * a-calend.adb: Redefine time_t as signed integer with same size as
1724         Address type.
1725         * s-os_lib.ads: Redefine OS_Time as signed integer with same size as
1726         Address type
1727         * adaint.h: On Windows 64bits declare OS_Time as long long instead of
1728         long
1730 2009-07-20  Javier Miranda  <miranda@adacore.com>
1732         * exp_tss.adb (Init_Proc): Add missing support for non-default C++
1733         constructors that have anonymous access type formals.
1735         * sem_res.adb (Resolve_Actuals): Disable checks associated with Ada
1736         class-wide arguments in case of imported C++ subprograms.
1738         * exp_ch3.adb (Build_Initialization_Call): Add assertion.
1740 2009-07-20  Sergey Rybin  <rybin@adacore.com>
1742         * vms_data.ads: Update qualifiers.
1744 2009-07-20  Robert Dewar  <dewar@adacore.com>
1746         * einfo.ads, switch.adb, gnatls.adb, inline.adb, sem_ch13.adb: Minor
1747         reformatting
1749 2009-07-17  Richard Guenther  <rguenther@suse.de>
1751         PR c/40401
1752         * gcc-interface/utils.c (end_subprog_body): Revert to pre-tuples
1753         state.  Remove unused parameter.
1754         (gnat_gimplify_function): Do not gimplify here.
1755         Fold into its only caller and remove.
1756         (gnat_builtin_function): Adjust for end_subprog_body signature change.
1757         (gnat_write_global_declarations): Also finalize the CU.
1758         * gcc-interface/misc.c (gnat_parse_file): Do not finalize the CU here.
1759         * gcc-interface/trans.c (gigi): Revert to pre-tuples state.
1760         (Subprogram_Body_to_gnu): Adjust for end_subprog_body signature
1761         change.
1762         * gcc-interface/gigi.h (end_subprog_body): Remove unused parameter.
1764 2009-07-15  Arnaud Charlet  <charlet@adacore.com>
1766         * gcc-interface/Make-lang.in: Update dependencies
1768         * gcc-interface/Makefile.in: Add target pairs for PPC/Xenomai
1770 2009-07-15  Robert Dewar  <dewar@adacore.com>
1772         * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
1773         N_Label. Remove SCO table entry for entry point (not used).
1775         * par_sco.ads: Remove SCO entry point type (not used)
1777         * switch.adb: Minor code clean up.
1779 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
1781         * exp_dbug.ads (Base Record Types): Document enhanced encoding.
1783 2009-07-15  Thomas Quinot  <quinot@adacore.com>
1785         * gnatls.adb: Minor reformatting
1787         * gnatcmd.adb: Minor code reorganization
1789 2009-07-15  Ed Schonberg  <schonberg@adacore.com>
1791         * exp_util.adb (Component_May_Be_Bit_Aligned): Use underlying type to
1792         determine whether a component of a private type has a composite type.
1794 2009-07-15  Robert Dewar  <dewar@adacore.com>
1796         * sem_ch10.adb: Minor reformatting throughout
1797         Minor code reorganization (put nested subprograms in alpha order)
1799 2009-07-15  Ed Schonberg  <schonberg@adacore.com>
1801         * exp_ch6.adb (Expand_Call): Prevent double attachment of the result
1802         when compiling a call to a protected function that returns a controlled
1803         object.
1805 2009-07-15  Hristian Kirtchev  <kirtchev@adacore.com>
1807         * sysdep.c (__gnat_localtime_tzoff): Consolidate the Lynx cases into
1808         one. Add task locking and unlocking around the critical region which
1809         mentions localtime_r and global variable timezone for various targets.
1810         Comment reformatting.
1812 2009-07-15  Robert Dewar  <dewar@adacore.com>
1814         * gnat_rm.texi: Document s-ststop.ads
1816         * impunit.ad: (Map_Array): New table of alternative names
1817         (Get_Kind_Of_Unit): Return possible suggested alternative name
1819         * impunit.ads (Get_Kind_Of_Unit): Return possible suggested
1820         alternative name.
1822         * sem_ch10.adb (Analalyze_With_Clause): Add name of possible
1823         alternative unit if an implementation unit is with'ed.
1825 2009-07-15  Robert Dewar  <dewar@adacore.com>
1827         * gnat_ugn.texi: Minor updates.
1829         * snames.ads-tmpl: Minor comment updates for Ada 2005 fully implemented
1831 2009-07-15  Ed Schonberg  <schonberg@adacore.com>
1833         * sem_warn.adb (Warn_On_Constant_Condition): Handle properly constant
1834         conditions of a derived boolean type.
1835         Minor reformatting
1837 2009-07-15  Robert Dewar  <dewar@adacore.com>
1839         * gnat1drv.adb: Initialize SCO tables
1841         * par-load.adb: Call SCO_Record for main unit spec
1843         * par.adb: Make call to SCO_Record for main unit
1845         * par_sco.adb (Unit_Table): Change format to facilitate sort
1846         (Process_Decisions): New procedure with list argument
1847         (Traverse_Generic_Package_Declaration): New procedure
1848         (Initialize): New procedure, replaces Init
1849         (SCO_Output): Sort unit table before output
1850         (SCO_Record): Avoid duplications
1851         (SCO_Record): Handle remaining cases of units
1852         (Traverse_Declarations_Or_Statements): Handle generics
1854         * par_sco.ads (Initialize): New peocedure (replaces Init)
1856         * sem_ch10.adb (Analyze_Proper_Body): Make call to SCO_Record for
1857         subunit.
1859 2009-07-15  Arnaud Charlet  <charlet@adacore.com>
1861         * debug.adb: Add -gnatd.J switch for now to support scil generation in
1862         parallel. Add missing doc for -gnatd.I and -gnatd.O
1864 2009-07-15  Robert Dewar  <dewar@adacore.com>
1866         * lib-load.adb: Minor reformatting
1868         * lib-writ.adb (Write_ALI): Fix handling of SCO_Output wrt Generate_SCO.
1870 2009-07-15  Robert Dewar  <dewar@adacore.com>
1872         * par.adb: Minor reformatting
1873         Add ??? comment for possible bad comment
1875         * par-ch10.adb: Minor reformatting
1877 2009-07-15  Ed Schonberg  <schonberg@adacore.com>
1879         * sem_warn.adb (Warn_On_Constant_Condition): if the constant condition
1880         is a literal of a derived boolean type, it appears as an unchecked
1881         conversion. Retrieve actual value from expression of conversion.
1883 2009-07-15  Robert Dewar  <dewar@adacore.com>
1885         * sem_ch3.adb: Minor reformatting
1887         * lib-xref.ads, lib-xref.adb, lib.ads, par_sco.ads, par_sco.adb,
1888         lib-writ.ads, lib-writ.adb: Minor reformatting.
1889         Fix problem with SCO format in ALI files
1891 2009-07-15  Robert Dewar  <dewar@adacore.com>
1893         * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
1894         exp_aggr.adb: Minor code reorganization (better calling sequence for
1895         Make_Temporary).
1897 2009-07-15  Thomas Quinot  <quinot@adacore.com>
1899         * opt.ads: Minor comment edits
1901 2009-07-15  Tristan Gingold  <gingold@adacore.com>
1903         * gcc-interface/Makefile.in: Special rule for seh_init.o no longer
1904         needed.
1906 2009-07-15  Robert Dewar  <dewar@adacore.com>
1908         * lib-writ.adb (Write_Unit_Information): Use SCO_Output to output SCO
1909         information.
1911         * lib-writ.ads: Document addition of SCO lines to ALI file
1913         * par_sco.ads, par_sco.adb: New files.
1915         * opt.ads (Generate_SCO): New switch
1917         * par.adb (Par): Call SCO_Record to record SCO information
1919         * sem_warn.adb (Warn_On_Constant_Condition): Adjust SCO condition
1921         * switch-c.adb: Recognize -gnateS to generate SCO information
1923         * usage.adb: Add line for -gnateS
1925         * gcc-interface/Make-lang.in: Add dependency on par_sco.o for gnat1
1927 2009-07-15  Robert Dewar  <dewar@adacore.com>
1929         * sinfo.ads, make.adb, par.ads, par.adb, sem_warn.adb: Minor
1930         reformatting.
1932 2009-07-15  Thomas Quinot  <quinot@adacore.com>
1934         * g-socthi-mingw.adb: Minor comment addition
1936         * g-socthi-mingw.ads (WSAStartup): First argument is a WORD not an int.
1938 2009-07-15  Robert Dewar  <dewar@adacore.com>
1940         * g-htable.ads, s-htable.ads: Minor reformatting
1942 2009-07-15  Robert Dewar  <dewar@adacore.com>
1944         * switch-c.adb, sem_ch10.adb, sem_warn.adb, sem_warn.ads: Implement
1945         new switch -gnatw.g.
1946         (Set_GNAT_Mode_Warnings): New procedure.
1948         * lib-xref.adb: Minor reformatting
1950 2009-07-15  Robert Dewar  <dewar@adacore.com>
1952         * exp_aggr.adb, tbuild.ads, tbuild.adb: Minor reformatting
1953         Minor code reorganization
1955 2009-07-14  Taras Glek  <tglek@mozilla.com>
1956             Rafael Espindola  <espindola@google.com>
1958         * gcc-interface/Make-lang.in (ada.install-plugin): New target for
1959         installing plugin headers.
1961 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
1963         * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
1964         exp_aggr.adb (Make_Temporary): Utility to create a defining identifier
1965         and link it to the expression whose value it captures.
1967 2009-07-13  Robert Dewar  <dewar@adacore.com>
1969         * output.adb: Minor comment addition for last change
1971         * sinfo.ads: Minor reformatting
1973 2009-07-13  Vasiliy Fofanov  <fofanov@adacore.com>
1975         * adaint.c (__gnat_portable_no_block_spawn): on Windows, return -1 when
1976         spawn failed like on all other targets.
1978 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
1980         * exp_ch7.adb: Indicate origin of temporary for transient expression.
1982 2009-07-13  Thomas Quinot  <quinot@adacore.com>
1984         * s-oscons-tmplt.c: Add comment.
1986 2009-07-13  Robert Dewar  <dewar@adacore.com>
1988         * sinfo.adb, sinfo.ads, sem_util.adb, atree.adb, atree.ads: Minor
1989         reformatting. Minor code reorganization (add 9 argument version of
1990         Nkind_In).
1992         * impunit.adb: Remove s-os_lib from list of system extensions.
1994         * sem_util.ads: Minor reformatting
1996         * output.adb: Add warnings off/on around System.OS_Lib.
1998 2009-07-13  Bob Duff  <duff@adacore.com>
2000         * exp_dist.adb: Minor comment updates.
2002 2009-07-13  Gary Dismukes  <dismukes@adacore.com>
2004         * sem_ch10.adb, sem_ch12.adb, gnat1drv.adb, exp_ch4.adb: Fix casing of
2005         several references to CodePeer.
2007 2009-07-13  Bob Duff  <duff@adacore.com>
2009         * exp_dist.adb (Build_From_Any_Function,Build_To_Any_Function,
2010         Build_TypeCode_Function_All): Do not recurse if the type is the base
2011         type.
2013 2009-07-13  Robert Dewar  <dewar@adacore.com>
2015         * exp_ch4.adb: Minor comment change
2017 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
2019         * sem_ch5.adb (Analyze_Iteration_Scheme): Generate dummy reference for
2020         type of iteration, to prevent spurious warnings.
2022 2009-07-13  Nicolas Roche  <roche@adacore.com>
2024         * s-oscons-tmplt.c: On VxWorks target ensure that vxWorks.h is always
2025         included.
2027 2009-07-13  Arnaud Charlet  <charlet@adacore.com>
2029         * switch-c.adb, usage.adb, sem_ch9.adb, gnat_ugn.texi, rtsfind.adb,
2030         gnat1drv.adb, opt.ads, sem_ch13.adb (Inspector_Mode): Renamed to
2031         Generate_SCIL.
2032         (CodePeer_Mode): New -gnatC switch.
2033         (Adjust_Global_Switches): Adjust settings for Generate_SCIL and
2034         CodePeer_Mode.
2036 2009-07-13  Eric Botcazou  <ebotcazou@adacore.com>
2038         * checks.adb (Selected_Range_Checks): Do not consider that a non-static
2039         integer bound forces the check if it is compared to its subtype range.
2041 2009-07-13  Robert Dewar  <dewar@adacore.com>
2043         * prj.ads, prj-dect.adb, prj-err.ads, prj-err.adb, prj-nmsc.adb,
2044         prj-strt.ads: Minor reformatting
2046 2009-07-13  Thomas Quinot  <quinot@adacore.com>
2048         * exp_dist.adb (Build_From_Any_Call): For the case of a generic type,
2049         set the type of the From_Any call to the base type.
2051 2009-07-13  Doug Rupp  <rupp@adacore.com>
2053         * symbols-processing-vms-ia64.adb (Process): Add variables and
2054         constants to retrieve and check for symbol visibility.
2056 2009-07-13  Javier Miranda  <miranda@adacore.com>
2058         * exp_ch4.adb (Expand_N_Unchecked_Type_Conversion): If conversion is to
2059         the identical type we remove the conversion completely because
2060         it is useless.
2062 2009-07-13  Emmanuel Briot  <briot@adacore.com>
2064         * prj-err.adb (Error_Msg): One more case where a message should be
2065         considered as a warning.
2067         * gnatcmd.adb (GNATCmd): Fix previous change, which negated a test.
2069 2009-07-13  Thomas Quinot  <quinot@adacore.com>
2071         * exp_dist.adb (Expand_All_Calls_Remote_Subprogram_Call): Analyze
2072         calling stubs in the (library level) scope of the RCI locator, where it
2073         is attached, not in the caller's scope.
2075 2009-07-13  Javier Miranda  <miranda@adacore.com>
2077         * sem_ch3.adb (Analyze_Object_Declaration): In case of class-wide
2078         interface object declarations we delay the generation of the equivalent
2079         record type declarations until its expansion because there are cases in
2080         which they are not required.            
2082         * sem_util.adb (Implements_Interface): Add missing support for subtypes.
2084         * sem_disp.adb (Check_Controlling_Formals): Minor code cleanup plus
2085         addition of assertion.
2087         * exp_util.adb (Expand_Subtype_From_Expr): Renamings of class-wide
2088         interface types require no equivalent constrained type declarations
2089         because the expanded code only references the tag component associated
2090         with the interface.
2091         (Find_Interface_Tag): Improve management of interfaces that are
2092         ancestors of tagged types.
2094         * exp_ch3.adb (Expand_N_Object_Declaration): Improve the expansion of
2095         class-wide object declarations to add missing support to statically
2096         displace the pointer to the object to reference the tag component
2097         associated with the interface.
2099         * exp_disp.adb (Make_Tags) Avoid generation of internally generated
2100         auxiliary types associated with user-defined dispatching calls if the
2101         type has no user-defined primitives.
2103 2009-07-13  Vasiliy Fofanov  <fofanov@adacore.com>
2105         * mingw32.h: Make it explicit that we need XP or later.
2107         * initialize.c: Remove useless extern symbol declaration.
2109         * adaint.h: Ditto, also expose __gnat_win32_remove_handle to allow
2110         code reuse in expect.c.
2112         * adaint.c: Changes throughout the Windows section to redesign storage
2113         of the child process list and the process identification.
2115         * expect.c (__gnat_kill, __gnat_waitpid): Simplify, cleanup, use pids
2116         for interfacing, fix errors.
2117         (__gnat_expect_portable_execvp): use function in adaint.c
2119 2009-07-13  Emmanuel Briot  <briot@adacore.com>
2121         * prj-proc.adb, prj-part.adb, prj-part.ads, prj-strt.adb,
2122         prj-strt.ads, prj.adb, prj.ads, prj-makr.adb, prj-makr.ads,
2123         prj-dect.adb, prj-dect.ads, prj-nmsc.adb, prj-pars.adb, errutil.adb,
2124         errutil.ads, prj-conf.adb, gnatname.adb, prj-err.adb, prj-err.ads
2125         (Prj.Nmsc.Report_Error): Removed, no longer needed.
2126         Always use Prj.Err.Report_Message.
2128 2009-07-13  Robert Dewar  <dewar@adacore.com>
2130         * prj.adb, sem_ch4.adb, sem_res.adb, prj-nmsc.adb: Minor reformatting
2131         & comment edits.
2133 2009-07-13  Robert Dewar  <dewar@adacore.com>
2135         * opt.ads, prj-conf.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
2136         prj-proc.adb, prj-tree.adb, prj-tree.ads: Minor reformatting
2138 2009-07-13  Emmanuel Briot  <briot@adacore.com>
2140         * prj.adb, prj.ads, prj-env.adb, prj-conf.adb, prj-tree.adb,
2141         mlib-prj.adb (Private_Part.Ada_Prj_Objects_File_Set,
2142         Ada_Prj_Include_File_Set): Removed, since not needed
2143         Code clean up.
2145 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
2147         * sem_ch4.adb (Analyze_Set_Membership): New procedure, subsidiary of
2148         Analyze_Membership_Op.
2150         * sem_res.adb (Resolve_Set_Membership): New procedure, subsidiary of
2151         Resolve_Membership_Op.
2153         * exp_ch4.adb (Expand_Set_Membership): New procedure, subsidiary of
2154         Expand_N_In.
2156 2009-07-13  Robert Dewar  <dewar@adacore.com>
2158         * clean.adb: Minor reformattting
2160 2009-07-13  Emmanuel Briot  <briot@adacore.com>
2162         * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj-ext.adb,
2163         gnat_ugn.texi, prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-util.adb,
2164         prj-conf.adb, gnatname.adb, prj-env.adb, prj-env.ads, prj-tree.adb,
2165         prj-tree.ads (Prj.Tree.Create*): New subprograms to create new packages
2166         and attributes in a project tree.
2167         (Add_Default_GNAT_Naming_Scheme): Provide real implementation.
2168         Remove last remaining mode-specific code (ada_only or
2169         multi_language). This was duplicating code
2170         (Get_Mode, Set_Mode): removed, no longer used.
2171         (Initialize_Project_Path): all tools will now take into account both
2172         GPR_PROJECT_PATH and ADA_PROJECT_PATH (in that order).
2173         Remove some global variables and subprograms no longer used
2174         Make temporary files tree-specific, to avoid interferences between
2175         trees loaded in memory at the same time.
2176         (Prj.Delete_Temporary_File): new subprogram
2177         (Object_Paths, Source_Paths): fields no longer stored in the project
2178         tree, since they are only needed locally in Set_Ada_Paths.
2179         (Set_Mapping_File_Initial_State_To_Empty): removed, since had no
2180         effect in practice.
2181         (Project_Tree_Data.Ada_Path_Buffer): removed, since it can be replaced
2182         by local variables in the appropriate subprograms
2183         (Has_Foreign_Sources): removed.
2185         * gcc-interface/Makefile.in: prj-pp.o is now needed to build gnatmake
2187 2009-07-13  Arnaud Charlet  <charlet@adacore.com>
2189         * gnat1drv.adb (Adjust_Global_Switches): No longer set
2190         Back_Annotate_Rep_Info in inspector mode.
2191         (Gnat1Drv): Need to call the back-end in inspector mode to generate SCIL
2193         * opt.ads: Update comment.
2195 2009-07-13  Robert Dewar  <dewar@adacore.com>
2197         * lib.adb, prj-nmsc.adb, prj-proc.adb, prj-proc.ads, prj.adb,
2198         prj.ads: Minor reformatting and code reorganization.
2200         * par-ch3.adb (Check_Restricted_Expression): New procedure
2202 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
2204         * exp_attr.adb (Rewrite_Stream_Proc_Call): When rewriting a stream
2205         attribute into a call of the corresponding suprogram, create extra
2206         formals for the subprogram, because it may be a renaming whose
2207         analysis does not create extra formals.
2209 2009-07-13  Emmanuel Briot  <briot@adacore.com>
2211         * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
2212         prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
2213         prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-env.adb, prj-tree.adb,
2214         prj-tree.ads: Minor reformatting.
2215         (Processing_Flags): new record to encapsulate the set of common
2216         parameters to several subprograms in the project manager.
2217         (Prj.Nmsc.Process_Naming_Scheme): renames Check, and moved to body
2218         Remove the need for the Current_Dir parameter in subprograms.
2219         (Look_For_Sources): minor refactoring, now that we no longer need to
2220         share subprograms between the two Ada_Only and Multi_Language modes
2221         (Processing_Flags): New field Error_On_Unknown_Language.
2222         Merge tests for library project between gnatmake and gprbuild.
2224 2009-07-13  Arnaud Charlet  <charlet@adacore.com>
2226         * lib.adb, make.adb, mlib.adb, exp_dist.adb: Update comments.
2227         Minor reformatting.
2229 2009-07-13  Emmanuel Briot  <briot@adacore.com>
2231         * prj-env.adb (Create_Config_Pragmas_File): Iterate on sources rather
2232         than units.
2234 2009-07-13  Thomas Quinot  <quinot@adacore.com>
2236         * sem_ch3.adb (Process_Full_View): Propagate Has_Specified_Stream_{Read,
2237         Write,Input,Output} from private view to full view.
2239         * sem_type.adb, sem_type.ads: Minor reformatting
2241 2009-07-13  Nicolas Setton  <setton@adacore.com>
2243         * exp_dbug.ads: Add documentation note on the utility of
2244         DW_AT_GNAT_encoding for IDEs.
2246 2009-07-13  Robert Dewar  <dewar@adacore.com>
2248         * g-socthi-vxworks.adb: Minor reformatting
2250         * gnatcmd.adb: Minor reformatting
2252 2009-07-13  Thomas Quinot  <quinot@adacore.com>
2254         * rtsfind.ads, exp_dist.adb (RE_Allocate_Buffer): Runtime entry
2255         removed, not used anymore.
2256         (Exp_Dist.PolyORB_Support.Helpers.Assign_Opaque_From_Any):
2257         New subprogram, implements copy of an Any value into a limited object.
2258         (Exp_Dist.PolyORB_Support.Build_General_Calling_Stubs,
2259         Exp_Dist.PolyORB_Support.Build_Subprogram_Receiving_Stubs,
2260         Exp_Dist.PolyORB_Support.Helpers.Build_From_Any_Function): For the case
2261         of parameters of a limited type, use the above new subprogram.
2263 2009-07-13  Emmanuel Briot  <briot@adacore.com>
2265         * prj-nmsc.adb, prj-proc.adb, mlib.adb (Add_Source): new parameter
2266         Location.
2267         (Copy_ALI_Files): Avoid calls to read when pointing outside of the
2268         allocated space.
2269         (Error_Report): Remove global variable, replaced by parameters.
2271 2009-07-13  Thomas Quinot  <quinot@adacore.com>
2273         * g-socthi-vxworks.adb (C_Sendto): VxWorks does not support the
2274         standard sendto(2) interface for connected sockets (passing a null
2275         destination address). Use send(2) instead for that case.
2277 2009-07-13  Pascal Obry  <obry@adacore.com>
2279         * adaint.c: Fix __gnat_stat() with Win32 UNC paths.
2281 2009-07-13  Emmanuel Briot  <briot@adacore.com>
2283         * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
2284         prj-pars.adb, prj-conf.adb, prj-conf.ads: Remove all remaining global
2285         variables and tables in prj-nmsc.adb.
2286         (Tree_Processing_Data): Renames Processing_Data, some new fields added
2287         (Project_Processing_Data): New record
2288         Simplify/unify check for missing sources.
2290 2009-07-13  Emmanuel Briot  <briot@adacore.com>
2292         * gnatcmd.adb, make.adb, mlib-prj.adb, prj-part.adb, mlib.adb,
2293         prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
2294         prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb,
2295         prj-tree.ads (Immediate_Directory_Of): Removed.
2296         (Prj.Pars): Now parse the project simulating a default config file.
2297         (Add_Default_GNAT_Naming_Scheme): New subprogram
2298         (Check_Naming_Multi_Lang): Fix default value for Dot_Replacement.
2299         Remove gnatmake-specific parsing of source files.
2300         (Check_Illegal_Suffix): Renames Is_Illegal_Suffix, since it now raises
2301         the error itself to provide more precise diagnostics.
2302         (Process_Exceptions_Unit_Based): Avoid duplicate error message when
2303         a unit belongs to several projects.
2304         (Copy_Interface_Sources): Search the full path of files to copy in the
2305         list of sources of the application rather than in the list of units.
2306         (Parse_Project_And_Apply_Config): Do not reset the name of the main
2307         project file.
2308         (Check_File): Use htables to find out whether a source is duplicated.
2309         (Add_Source): check whether the source or unit were already seen earlier
2311         * gcc-interface/Makefile.in: Update gnatmake dependencies.
2313 2009-07-13  Robert Dewar  <dewar@adacore.com>
2315         * par-ch3.adb (P_Discrete_Choice_List): Choice can only be simple
2316         expression if extensions permitted.
2318         * par-ch4.adb (P_Membership_Test): New procedure (implement membership
2319         set tests).
2320         (P_Relation): Use P_Membership_Test
2322         * par.adb (P_Membership_Test): New procedure (implement membership set
2323         tests).
2325         * sinfo.ads, sinfo.adb (N_In, N_Not_In) Add Alternatives field for sets.
2327         * sprint.adb (Sprint_Node): Handle set form for membership tests.
2329 2009-07-13  Thomas Quinot  <quinot@adacore.com>
2331         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies):
2332         Do not attempt to generate stubs for predefined primitives of
2333         synchronized interfaces.
2334         (Add_Stub_Type): Factor some code from the PCS-specific variants of
2335         Build_Stub_Type.
2337 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
2339         * sem_disp.adb (Override_Dispatching_Operation): Functions inherit the
2340         Controlling_Result flag from the operation they override.
2342 2009-07-13  Arnaud Charlet  <charlet@adacore.com>
2344         * gcc-interface/Make-lang.in: Update dependencies
2346 2009-07-13  Robert Dewar  <dewar@adacore.com>
2348         * gnat_ugn.texi: The gnatf switch no longer is needed to get full
2349         details on unsupported constructs.
2351         * rtsfind.adb: Remove references to All_Errors_Mode, give errors
2352         unconditionally.
2354         * s-trafor-default.adb: Correct some warnings
2356         * s-valwch.adb, a-calend.adb, freeze.adb, prj.ads, s-vmexta.adb,
2357         sem.adb, sem_ch10.adb, sem_ch6.adb, sem_disp.adb, vxaddr2line.adb:
2358         Minor reformatting.
2360         * par-ch4.adb (Conditional_Expression): Capture proper location for
2361         conditional expression, should point to IF.
2363         * s-tassta.adb, a-wtdeau.adb, s-tasren.adb, s-arit64.adb, s-imgdec.adb,
2364         s-direio.adb, s-tpobop.adb, g-socket.adb, s-tposen.adb, s-taskin.adb,
2365         g-calend.adb, s-regpat.adb, s-scaval.adb, g-catiio.adb: Minor code
2366         reorganization (use conditional expressions).
2368 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
2370         * exp_util.adb (Remove_Side_Effects): If the expression is a call to a
2371         build-in-place function that returns an inherently limited type (not
2372         just a task type) create proper object declaration so that extra
2373         build-in-place actuals are properly added to the call.
2375 2009-07-13  Robert Dewar  <dewar@adacore.com>
2377         * freeze.adb (Freeze_Entity): Implement Warn_On_Suspicious_Modulus_Value
2379         * gnat_ugn.texi: Add documentation for -gnatw.m/.M
2381         * opt.ads (Warn_On_Suspicious_Modulus_Value): New flag
2383         * sem_warn.adb (Set_Dot_Warning_Flag): Set/reset
2384         Warn_On_Suspicious_Modulus_Value.
2386         * ug_words: Add entries for -gnatw.m/-gnatw.M.
2388         * usage.adb: Add lines for -gnatw.m/.M switches.
2390         * vms_data.ads: Add [NO]SUSPICIOUS_MODULUS for -gnatw.m/w.M
2392 2009-07-13  Javier Miranda  <miranda@adacore.com>
2394         * sem_ch6.adb (Check_Synchronized_Overriding): Add missing check before
2395         reading the Is_Interface attribute of the dispatching type.
2397 2009-07-13  Robert Dewar  <dewar@adacore.com>
2399         * a-convec.adb: Minor code reorganization (use conditional expressions)
2401 2009-07-13  Robert Dewar  <dewar@adacore.com>
2403         * freeze.adb (Check_Suspicious_Modulus): New procedure.
2405 2009-07-13  Robert Dewar  <dewar@adacore.com>
2407         * i-cobol.ads: Minor code fix (2**4 instead of 16 as modulus to avoid
2408         warning).
2410         * par-ch4.adb: Minor reformatting
2412 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
2414         * freeze.adb, freeze.ads, exp_aggr.adb: Rename Expand_Atomic_Aggregate
2415         => Is_Atomic_Aggregate
2417 2009-07-13  Emmanuel Briot  <briot@adacore.com>
2419         * prj-nmsc.adb: Avoid traversing the list of source files if
2420         we have already processed all locally removed files.
2422 2009-07-13  Jose Ruiz  <ruiz@adacore.com>
2424         * gnat_ugn.texi: Fix typo.
2426 2009-07-13  Robert Dewar  <dewar@adacore.com>
2428         * freeze.adb: Minor reformatting
2429         Minor code reorganization (use Nkind_In)
2431         * exp_ch6.adb, prj.adb, sem_res.adb: Minor reformatting
2433 2009-07-11  Eric Botcazou  <ebotcazou@adacore.com>
2435         * checks.adb (Apply_Address_Clause_Check): Remove Size_Warning_Output
2436         local variable and do not test it in Compile_Time_Bad_Alignment.
2437         Do not issue size or alignment warnings for the X'Address form.
2438         * sem_util.ads (Find_Overlaid_Object): Delete.
2439         (Find_Overlaid_Entity): New procedure.
2440         * sem_util.adb (Find_Overlaid_Object): Rename to...
2441         (Find_Overlaid_Entity): ...this and turn into a procedure.  Report
2442         whether the address is offseted within the overlaid entity.
2443         (Has_Compatible_Alignment): Track the offset globally instead of
2444         passing it to Check_Offset.  For an indexed component, compute the
2445         full offset when possible.  If the resulting offset is zero, only
2446         check the prefix.
2447         (Check_Offset): Delete.
2448         * sem_ch13.adb (Address_Clause_Check_Record): Add Off field.
2449         (Address_Aliased_Entity): Delete.
2450         (Analyze_Attribute_Definition_Clause) <Attribute_Address>: Call
2451         Find_Overlaid_Entity to find the overlaid entity and the offset.
2452         Adjust throughout for above change.
2453         (Validate_Address_Clauses): Always use attributes of entities, not of
2454         their type.  Tweak message for warning.  Call Has_Compatible_Alignment
2455         if the address is offseted to warn about incompatible alignments.
2456         * gcc-interface/gigi.h (annotate_object): Declare.
2457         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Annotate renaming
2458         entity.  Call annotate_object instead of annotating manually objects.
2459         (annotate_object): New function.
2460         * gcc-interface/trans.c (Subprogram_Body_to_gnu): Annotate parameters
2461         at the end.
2463 2009-07-11  Eric Botcazou  <ebotcazou@adacore.com>
2465         * gcc-interface/ada-tree.h: Minor reorganization.
2466         * gcc-interface/misc.c (gnat_print_decl): Minor tweaks.
2467         (gnat_print_type): Likewise.
2469 2009-07-11  Thomas Quinot  <quinot@adacore.com>
2471         * sem_util.adb, sem_res.adb, sem_warn.adb: Minor comment editing:
2472         Lvalue -> lvalue
2474         * exp_ch6.adb: Minor reformatting
2476 2009-07-11  Ed Schonberg  <schonberg@adacore.com>
2478         * freeze.adb (Expand_Atomic_Aggregate): Clean up code, take into
2479         account possible type qualification to determine whether aggregate
2480         needs a target temporary to respect atomic type or object.
2482         * exp_aggr.adb (Expand_Record_Aggregate): Use new version of
2483         Expand_Atomic_Aggregate.
2485 2009-07-11  Emmanuel Briot  <briot@adacore.com>
2487         * prj.adb, prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Speed up
2488         algorithm.
2489         (Excluded_Sources_Htable): No longer a global table.
2490         Change error message to indicate which files are illegal in the list
2491         of excluded files, as opposed to only the location in the project
2492         file.
2493         (Find_Source): New subprogram.
2495 2009-07-10  Thomas Quinot  <quinot@adacore.com>
2497         * exp_ch7.adb: Update comments.
2499 2009-07-10  Arnaud Charlet  <charlet@adacore.com>
2501         * exp_ch13.adb (Expand_N_Record_Representation_Clause): Ignore mod
2502         clause if -gnatI is set instead of crashing.
2504 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
2506         * sem_ch11.adb (Same_Expression): Null is always equal to itself.
2507         Additional work to remove redundant successive raise statements, in
2508         this case access checks.
2510 2009-07-10  Vincent Celier  <celier@adacore.com>
2512         * make.adb (Compile): Always create a deep copy of the mapping file
2513         argument (-gnatem=...) as it may be deallocate/reallocate by
2514         Normalize_Arguments.
2516 2009-07-10  Javier Miranda  <miranda@adacore.com>
2518         * einfo.adb (Directly_Designated_Type): Add assertion.
2519         
2520         * sem_res.adb (Check_Fully_Declared_Prefix): Add missing check on
2521         access types before using attribute Directly_Designated_Type.
2523 2009-07-10  Emmanuel Briot  <briot@adacore.com>
2525         * prj.ads: Minor typo fix
2527 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
2529         * sem_ch6.adb (Add_Extra_Formal): Protected operations do no need
2530         special treatment.
2532         * exp_ch6.adb (Expand_Protected_Subprogram_Call): If rewritten
2533         subprogram is a function call, resolve properly, to ensure that extra
2534         actuals are added as needed.
2536 2009-07-10  Thomas Quinot  <quinot@adacore.com>
2538         * sem_aggr.adb: Minor comments editing
2540         * exp_tss.adb, exp_ch3.adb: Minor reformatting
2542 2009-07-10  Robert Dewar  <dewar@adacore.com>
2544         * exp_util.adb: Minor code reorganization (use N_Short_Circuit)
2546         * exp_ch4.adb: Add ??? comment for conditional expressions on limited
2547         types.
2549         * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New procedure,
2550         replaces Safe_To_Capture_In_Parameter_Value, and properly handles the
2551         case of conditional expressions that may not be elaborated.
2553         * sem_util.adb (Safe_To_Capture_Value): Properly handle case of
2554         conditional expression where we may not execute then then or else
2555         branches.
2557 2009-07-10  Arnaud Charlet  <charlet@adacore.com>
2559         * i-cexten.ads (bool): New type.
2561 2009-07-10  Robert Dewar  <dewar@adacore.com>
2563         * sinfo.ads (N_Short_Circuit): New definition
2564         
2565         * sem_ch13.adb, sem_ch6.adb, sem_eval.adb, sem_res.adb,
2566         treepr.adb: Minor code reorganization (use N_Short_Circuit)
2568 2009-07-10  Javier Miranda  <miranda@adacore.com>
2570         * exp_ch3.adb (Expand_Freeze_Record_Type): Handle constructors of
2571         non-tagged record types.
2573         * sem_prag.adb
2574         (Process_Import_Or_Interface): Allow the use of "pragma Import (CPP,..)"
2575         with non-tagged types. Required to import C++ classes that have no
2576         virtual primitives.
2577         (Analyze_Pragma): For pragma CPP_Constructor. Allow the use of functions
2578         returning non-tagged types. For backward compatibility, if the
2579         constructor returns a class wide type we internally change the
2580         returned type to the corresponding non class-wide type.
2582         * sem_aggr.adb
2583         (Valid_Ancestor_Type): CPP_Constructors code cleanup.
2584         (Resolve_Extension_Aggregate): CPP_Constructors code cleanup.
2585         (Resolve_Aggr_Expr): CPP_Constructors code cleanup.
2586         (Resolve_Record_Aggregate): CPP_Constructors code cleanup.
2588         * sem_ch3.adb
2589         (Analyze_Object_Declaration): CPP_Constructors code cleanup.
2591         * sem_ch5.adb (Analyze_Assignment): CPP_Constructors code cleanup.
2593         * sem_util.adb (Is_CPP_Constructor_Call): Code cleanup.
2595         * sem_res.adb (Resolve_Allocator): CPP_Constructors code cleanup.
2597         * exp_ch4.adb (Expand_Allocator_Expression): CPP_Constructors code
2598         cleanup.
2599         
2600         * exp_aggr.adb (Build_Record_Aggr_Code): CPP_Constructors code clean up.
2602         * gnat_rm.texi
2603         (pragma CPP_Class): Document that it can be used now with non-tagged
2604         record types.
2605         (pragma CPP_Constructor): Document that it can be used now with
2606         functions returning specific types. For backward compatibility
2607         we also support functions returning class-wide types.
2609         * gnat_ugn.texi
2610         (Interfacing with C++ constructors): Update the examples to incorporate
2611         the new syntax in which the functions used to import C++ constructors
2612         return specific types.
2613         (Interfacing with C++ at the Class Level): Update the examples to
2614         incorporate the new syntax in which the functions used to import
2615         C++ constructors return specific types.
2617 2009-07-10  Thomas Quinot  <quinot@adacore.com>
2619         * exp_disp.adb (Make_Disp_Asynchronous_Select_Body,
2620         Make_Disp_Conditional_Select_Body,
2621         Make_Disp_Timed_Select_Body): For the case of a type that is neither an
2622         interface nor a concurrent type, the primitive body is empty. Generate
2623         a null statement so that it remains well formed.
2625 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
2627         * exp_aggr.adb (Build_Record_Aggr_Code): If the type has discriminants,
2628         replace references to them in defaulted component expressions with
2629         references to the values of the discriminants of the target object.
2631 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
2633         * sem_prag.adb (Analyze pragma, case Task_Name): Analyze argument of
2634         pragma, to capture global references if the context is generic.
2636         * exp_ch2.adb (Expand_Discriminant): If a task type discriminant
2637         appears within the initialization procedure for the corresponding
2638         record, replace it with the proper discriminal.
2640 2009-07-10  Vincent Celier  <celier@adacore.com>
2642         * make.adb: Do not include object directories or library ALI
2643         directories of library projects in the object path.
2645 2009-07-10  Javier Miranda  <miranda@adacore.com>
2647         * exp_util.adb (Find_Interface_Tag): Reorder processing of incoming
2648         Typ argument to ensure proper management of access types.
2650 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
2652         * exp_ch7.adb (Build_Final_List): If the list is being built for a
2653         Taft-Amendment type, place the finalization list in the package body,
2654         to ensure that the tree for the spec is identical whenever it is
2655         compiled.
2657 2009-07-10  Javier Miranda  <miranda@adacore.com>
2659         * sem_ch3.adb (Build_Derived_Record_Type): Use the full-view when
2660         inheriting attributes from a private Parent_Base.
2662 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
2664         * sem_ch11.adb (analyze_raise_xxx_error): Remove consecutive raise
2665         statements with the same condition.
2667 2009-07-10  Robert Dewar  <dewar@adacore.com>
2669         * exp_ch4.adb (Raise_Accessibility_Error): New procedure
2671 2009-07-09  Tom Tromey  <tromey@redhat.com>
2673         * raise-gcc.c: Include dwarf2h (unconditionally).
2675 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
2677         * sem_ch10.adb (Install_Context): If the unit is a package body,
2678         install the private with_clauses of the corresponding package
2679         declaration.
2681 2009-07-09  Robert Dewar  <dewar@adacore.com>
2683         * checks.adb: Minor reformatting
2685 2009-07-09  Vasiliy Fofanov  <fofanov@adacore.com>
2687         * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
2688         into ug_words.
2690 2009-07-09  Thomas Quinot  <quinot@adacore.com>
2692         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
2693         Do not warn for a constant overlaying any constant object
2695 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
2697         * sem_ch10.adb (Install_Context): If the unit is a package body,
2698         install the private with_clauses of the corresponding package
2699         declaration.
2701 2009-07-09  Robert Dewar  <dewar@adacore.com>
2703         * checks.adb: Minor reformatting
2705 2009-07-09  Vasiliy Fofanov  <fofanov@adacore.com>
2707         * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
2708         into ug_words.
2710 2009-07-09  Thomas Quinot  <quinot@adacore.com>
2712         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
2713         Do not warn for a constant overlaying any constant object
2715 2009-07-09  Arnaud Charlet  <charlet@adacore.com>
2717         * gcc-interface/Make-lang.in: Update dependencies
2719 2009-07-09  Thomas Quinot  <quinot@adacore.com>
2721         * g-socket.adb (Check_Selector): Do not create local copies of the
2722         socket sets on the stack.
2724 2009-07-09  Vasiliy Fofanov  <fofanov@adacore.com>
2726         * gnat_ugn.texi: Add missing VMS translations.
2728 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
2730         * sem_prag.adb (Analyze_Pragma, case Precondition): Do not analyze the
2731         condition, to prevent generation of visible code during expansion,
2732         when Check is not enabled.
2734 2009-07-09  Gary Dismukes  <dismukes@adacore.com>
2736         * checks.adb (Install_Static_Check): Call Possible_Local_Raise so that
2737         the check gets registered for any available local handler
2738         (Set_Local_Raise).
2740         * sem_util.adb: Add with and use of Exp_Ch11.
2741         (Apply_Compile_Time_Constraint_Error): Call Possible_Local_Raise so
2742         that the check gets registered for any available local handler.
2744         * exp_ch4.adb (Expand_N_Slice): Remove call to Enable_Range_Check
2745         on slice ranges.
2747 2009-07-09  Steve Baird  <baird@adacore.com>
2749         * exp_ch11.adb (Force_Static_Allocation_Of_Referenced_Objects): New
2750         function.
2751         (Expand_N_Exception_Declaration): Fix handling of exceptions
2752         declared in a subprogram.
2754 2009-07-09  Emmanuel Briot  <briot@adacore.com>
2756         * prj-nmsc.adb (Find_Sources): Avoid error messages from gprbuild from
2757         multi-unit files.
2759 2009-07-09  Thomas Quinot  <quinot@adacore.com>
2761         * freeze.adb: Minor reformatting
2763         * exp_ch3.adb: Minor comment fix.
2765         * sinfo.ads: Minor comment fix
2767 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
2769         * exp_ch4.adb (Expand_N_Conditional_Expression): Set Related_Expression.
2771 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
2773         * freeze.adb (Freeze_Expression): If the expression is the name of a
2774         function in a call, and the function has not been frozen yet, create
2775         extra formals for it to ensure that the proper actuals are created
2776         when expanding the call.
2778 2009-07-09  Emmanuel Briot  <briot@adacore.com>
2780         * prj-pp.adb (Print): Fix handling of source index when set on a
2781         declaration node.
2783 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
2785         * einfo.ads, einfo.adb: New attribute Related_Expression, used to link
2786         a temporary to the source expression whose value it captures.
2788         * exp_util.adb (Remove_Side_Effects): Set Related_Expression as needed.
2790 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2792         * gcc-interface/trans.c (gnat_gimplify_expr): Replace EXPR_LOCUS by
2793         EXPR_LOCATION.
2795 2009-07-07  Gary Dismukes  <dismukes@adacore.com>
2797         * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for in out
2798         parameters when the subtype of the actual is not known to be a subrange
2799         of the formal's subtype.
2800         (Expand_Call): Generate a range check only in the E_In_parameter case
2801         (in out parameter range checks are now handled in Expand_Actuals).
2803         * exp_ch4.adb (Expand_N_Slice): Restore code that calls
2804         Enable_Range_Check.
2806 2009-07-07  Robert Dewar  <dewar@adacore.com>
2808         * a-stwise.adb, a-stzsea.adb, a-strsea.adb: Add comments
2810 2009-07-07  Javier Miranda  <miranda@adacore.com>
2812         * exp_disp.adb (Expand_Interface_Conversion): Handle access type whose
2813         designated type comes from a limited views.
2815 2009-07-07  Emmanuel Briot  <briot@adacore.com>
2817         * prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Fix handling of
2818         locally removed files that are later made visible again in an importing
2819         project.
2821 2009-07-07  Robert Dewar  <dewar@adacore.com>
2823         * gnat_rm.texi: Clarify documentation of Stream_Convert pragma
2825 2009-07-07  Sergey Rybin  <rybin@adacore.com>
2827         * gnat_ugn.texi: Add an example to the description of gnatcheck
2828         'Style_Checks' rule option.
2830 2009-07-07  Tristan Gingold  <gingold@adacore.com>
2832         * seh_init.c: Fix inline assembly statement in seh_init.c
2834 2009-07-07  Ed Schonberg  <schonberg@adacore.com>
2836         * sem_warn.adb (Check_References): Do not emit warnings on formals of
2837         an entry body. Only the formals of the entry declaration are traced.
2839 2009-07-07  Robert Dewar  <dewar@adacore.com>
2841         * s-osprim-mingw.adb: Minor code reorganization
2843 2009-07-07  Robert Dewar  <dewar@adacore.com>
2845         * prj-nmsc.adb: Minor reformatting
2847 2009-07-07  Pascal Obry  <obry@adacore.com>
2849         * a-stwise.adb, a-stzsea.adb, a-strsea.adb (Index): properly handle
2850         cases where Pattern is longer than Source.
2852 2009-07-07  Pascal Obry  <obry@adacore.com>
2854         * s-osprim-mingw.adb (Get_Base_Time): Avoid infinite loop.
2856 2009-07-07  Emmanuel Briot  <briot@adacore.com>
2858         * prj-nmsc.adb (Process_Naming): canonicalize file suffixes read in the
2859         project file.
2861 2009-07-07  Ed Schonberg  <schonberg@adacore.com>
2863         * exp_ch3.adb (Expand_Freeze_Record_Type): Add extra formals to
2864         primitive operations, in case one of them is called in the
2865         initialization procedure for the type.
2867 2009-07-07  Robert Dewar  <dewar@adacore.com>
2869         * a-calend.adb: Minor code reorganization (use conditional expressions)
2871         * s-stusta.ads, s-interr-hwint.adb, g-expect-vms.adb, s-secsta.ads,
2872         prj-nmsc.adb, a-teioed.adb, output.ads, prj-attr.ads, a-textio.adb,
2873         s-taskin.ads, scans.ads, s-osinte-vms.adb, s-taprop-solaris.adb,
2874         s-tpopsp-posix-foreign.adb, s-trafor-default.adb, gnat1drv.adb,
2875         s-stchop-vxworks.adb, s-tpopsp-posix.adb, prj-env.adb, prj-env.ads,
2876         g-comlin.adb, exp_ch11.adb: Minor reformatting.
2878 2009-07-07  Gary Dismukes  <dismukes@adacore.com>
2880         * checks.adb (Generate_Range_Check): Replace type conversions with
2881         unchecked conversions to support the case of performing range checks
2882         on Enum'Val (permits integer values to be converted to enumeration).
2884         * exp_attr.adb (Expand_N_Attribute_Reference, cases Attribute_Pred,
2885         Attribute_Succ): Set Do_Range_Check to False before calling
2886         Expand_Pred_Succ, to prevent gigi from generating any range checks.
2887         (Expand_N_Attribute_Reference, case Attribute_Val):
2888         Generate a range check when needed (and set Do_Range_Check to False).
2890         * exp_ch3.adb (Expand_N_Object_Declaration): Generate a range check on
2891         scalar object initialization if needed.
2893         * exp_ch4.adb (Expand_Allocator_Expression): Generate range checks
2894         when needed on scalar allocators.
2895         (Expand_N_Qualified_Expression): Generate range check when needed.
2896         (Expand_N_Slice): Remove call to Enable_Range_Check on slice ranges.
2897         Checks on slice ranges handled in Resolve_Slice.
2899         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate a range check,
2900         when needed, for all scalar assignments, not just discrete.
2901         (Expand_Simple_Function_Return): Resolve the conversion created for a
2902         scalar function return so that the conversion will get expanded to
2903         generate a possible constraint check.
2905         * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for out and
2906         in out scalar actuals when subtypes don't match, to ensure generation
2907         of return checks (and set Do_Range_Check to False).
2908         (Expand_Call): Uncomment code to perform range checks, but make it apply
2909         only to in and in out parameters (checks on parameter returns are
2910         handled in Expand_Actuals). If a scalar actual for a call to a derived
2911         subprogram is marked as needing a range check, peform it here (and set
2912         Do_Range_Check to False).
2914         * sem_aggr.adb (Resolve_*_Aggregate.Resolve_Aggr_Expr): Generate a
2915         range check on scalar component associations when needed.
2917         * sem_eval.adb (In_Subrange_Of): Return False when the first type has
2918         infinities but the second type does not, as these aren't compatible
2919         floating-point types.
2921         * sem_res.adb (Resolve_Slice): In the case where the prefix of the
2922         slice is itself a slice, pick up the Etype of the prefix. This handles
2923         the case where the prefix was an Image attribute expanded to a slice,
2924         and ensures that we get the subtype with the slice constraint rather
2925         than the unconstrained subbtype of the 'Image.
2927 2009-07-07  Ed Schonberg  <schonberg@adacore.com>
2929         * sem_ch4.adb (Analyze_Conditional_Expression): handle properly
2930         overloaded expressions in a conditional expressions.
2932         * sem_res.adb (Resolve): Handle properly overloaded conditional
2933         expressions.
2935 2009-07-07  Robert Dewar  <dewar@adacore.com>
2937         * scng.adb: Minor reformattting
2939         * par-ch2.adb (Scan_Pragma_Argument_Association): Pragma argument
2940         association allows conditional expression without parens.
2942         * par-ch4.adb (P_Name): Attribute arguments can be conditional
2943         expressions without enclosing parentheses, and also as parameters,
2944         indexing expressions etc.
2945         (P_Conditional_Expression): New procedure
2946         (P_Expression_If_OK): New procedure
2948         * par.adb (P_Conditional_Expression): New procedure
2949         (P_Expression_If_OK): New procedure
2951         * sem_ch4.adb (Analyze_Conditional_Expression): Allow for two argument
2952         form of conditional expression.
2954         * sem_res.adb (Resolve_Conditional_Expression): Deal with supplying
2955         missing True argument if ELSE argument missing.
2957         * sinfo.adb (Is_Elsif): New flag
2959         * sinfo.ads (N_Conditional_Expression): This node is now a syntactic
2960         part of the language, and the documentation is modified accordingly.
2961         (Is_Elsif): New flag
2963 2009-07-06  Olivier Hainque  <hainque@adacore.com>
2965         * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu,
2966         setjmp_longjmp): Attach the exception propagation reraise fallback
2967         to the sequence end label location when we have it.
2969 2009-07-04  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2971         PR ada/40608
2972         * init.c (APPLE): Include <mach/mach_init.h>.
2973         (__gnat_error_handler, APPLE): Add ATTRIBUTE_UNUSED marker.
2975 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
2977         * ada-tree.h (SET_TYPE_LANG_SPECIFIC): Rewrite.
2978         (SET_DECL_LANG_SPECIFIC): Likewise.
2979         (TYPE_RM_VALUE): New macro.
2980         (SET_TYPE_RM_VALUE): Likewise.
2981         (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUE.
2982         (TYPE_RM_MIN_VALUE): Likewise.
2983         (TYPE_RM_MAX_VALUE): Likewise.
2984         (SET_TYPE_RM_SIZE): Rewrite in terms of SET_TYPE_RM_VALUE.
2985         (SET_TYPE_RM_MIN_VALUE): Likewise.
2986         (SET_TYPE_RM_MAX_VALUE): Likewise.
2987         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Remove kludge.
2989 2009-07-04  Laurent GUERBY  <laurent@guerby.net>
2991         PR ada/40631
2992         * tracebak.c (__gnat_backtrace): Fix old-style definition.
2994 2009-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2996         * tracebak.c [i386 && sun] (IS_BAD_PTR): Use -1UL in comparison.
2998 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3000         PR ada/40609
3001         * init.c (__gnat_error_handler, HP-UX): Add ATTRIBUTE_UNUSED marker to
3002         ucontext argument.
3004 2009-07-01  Eric Botcazou  <ebotcazou@adacore.com>
3006         * init.c (__gnat_error_handler, Solaris): Add ATTRIBUTE_UNUSED marker.
3008 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
3010         * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Do not use
3011         the type of the left operand if it pads a self-referential type when
3012         the right operand is a constructor.
3014         * gcc-interface/lang-specs.h: Fix copyright date.
3016 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
3018         * gcc-interface/decl.c: Include tree-inline.h.
3019         (annotate_value) <CALL_EXPR>: Try to inline the call in the expression.
3020         * gcc-interface/utils.c (max_size) <CALL_EXPR>: Likewise.
3021         * gcc-interface/utils2.c: Include tree-inline.
3022         (known_alignment) <CALL_EXPR>: Likewise.
3024 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
3026         * raise-gcc.c: Include dwarf2.h conditionally.
3027         
3028 2009-06-29  Tom Tromey  <tromey@redhat.com>
3030         * raise-gcc.c: Include elf/dwarf2.h.
3032 2009-06-27  Laurent GUERBY  <laurent@guerby.net>
3034         * tb-gcc.c (trace_callback): Add casts to silence warning.
3036 2009-06-27  Eric Botcazou  <ebotcazou@adacore.com>
3038         * tb-gcc.c: Fix copyright notice.
3040 2009-06-27  Eric Botcazou  <ebotcazou@adacore.com>
3042         * init.c (__gnat_set_globals): Add prototype.
3043         * adaint.c (__gnat_binder_supports_auto_init): Likewise.
3044         (__gnat_sals_init_using_constructors): Likewise.
3045         * gcc-interface/utils.c (gnat_pushlevel): Likewise.
3046         (get_block_jmpbuf_decl): Likewise.
3047         (gnat_poplevel): Likewise.
3048         (merge_sizes): Rename local variable.
3049         (copy_type): Likewise.
3050         (build_vms_descriptor32): Likewise.
3051         (build_vms_descriptor): Likewise.
3052         (convert_vms_descriptor64): Likewise.
3053         (convert_vms_descriptor32): Likewise.
3054         (convert_to_fat_pointer): Likewise.
3055         (maybe_unconstrained_array): Likewise.
3056         (def_fn_type): Use promoted type with va_arg.
3057         * gcc-interface/decl.c (gnat_to_gnu_entity): Add declaration.
3058         (substitute_in_type): Rename local variable.
3059         * gcc-interface/Make-lang.in (ada-warn): Use STRICT_WARN.
3061 2009-06-26  Laurent GUERBY  <laurent@guerby.net>
3063         * tb-gcc.c (trace_callback): Use char* instead of void*.
3064         * gcc-interface/misc.c (enumerate_modes): Make loop C++ compatible.
3065         * gcc-interface/trans.c (parm_attr): Rename to parm_attr_d.
3066         (Attribute_to_gnu): Adjust for above change.
3067         (Subprogram_Body_to_gnu): Likewise.
3068         * gcc-interface/utils.c (merge_sizes): Rename local variable.
3069         (copy_type): Likewise.
3070         (build_vms_descriptor32): Likewise.
3071         (build_vms_descriptor): Likewise.
3072         (convert_vms_descriptor64): Likewise.
3073         (convert_vms_descriptor32): Likewise.
3074         (convert_to_fat_pointer): Likewise.
3075         (maybe_unconstrained_array): Likewise.
3076         * gcc-interface/decl.c (substitute_in_type): Likewise.
3078 2009-06-26  Eric Botcazou  <ebotcazou@adacore.com>
3080         * gcc-interface/decl.c (cannot_be_superflat_p): New predicate.
3081         (gnat_to_gnu_entity) <E_Array_Subtype>: Use it to build the expression
3082         of the upper bound of the index types.
3084 2009-06-26  Eric Botcazou  <ebotcazou@adacore.com>
3086         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Factor
3087         out common predicate.  Use the maximum to compute the upper bound of
3088         the index type only when it is not wider than sizetype.  Perform the
3089         comparison in the index type for the generic expression.  Use real
3090         precision to decide whether to generate special types for debugging
3091         information.
3093 2009-06-26  Matthew Gingell  <gingell@adacore.com>
3095         * adaint.c: Do not use the dummy version of convert_addresses on LynxOS
3097 2009-06-26  Vincent Celier  <celier@adacore.com>
3099         * prj.ads (No_Language_Config): Value of Dependency_Kind is None by
3100         default.
3102 2009-06-26  Robert Dewar  <dewar@adacore.com>
3104         * exp_ch4.adb, gnatcmd.adb, make.adb: Minor reformatting
3106 2009-06-26  Eric Botcazou  <ebotcazou@adacore.com>
3108         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Pass
3109         correct arguments to create_field_decl.  Remove redundant iteration.
3110         Rewrite computation of the maximum size.
3111         <E_Array_Subtype>: Reorder and simplify handling of special cases.
3112         Rewrite computation of the maximum size.  Use consistent naming.
3113         * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Length>: Swap
3114         comparison order for consistency.  Use generic integer node to
3115         build the operator and fold the result.
3117 2009-06-25  Vincent Celier  <celier@adacore.com>
3119         * vms_data.ads: Minor comment change
3121 2009-06-25  Gary Dismukes  <dismukes@adacore.com>
3123         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Don't build an
3124         assignment statement to targeting a caller-provided object when the
3125         result type is an interface type.
3127         * exp_ch6.adb (Expand_Call): Remove redundant test of
3128         Is_Limited_Interface (Is_Inherently_Limited is sufficient).
3129         (Is_Build_In_Place_Function): Remove test for Is_Limited_Interface.
3131         * sem_aggr.adb (Check_Expr_OK_In_Limited_Aggregate): Add type in call
3132         to OK_For_Limited_Init.
3134         * sem_aux.adb (Is_Inherently_Limited_Type): Revise limited type
3135         condition so that True is returned for all limited interfaces, not
3136         just synchronized ones. Ignore components of an interface type when
3137         checking for limited components (such a component can be a parent
3138         component).
3140         * sem_ch3.ads (OK_For_Limited_Init_In_05): Add type parameter.
3141         (OK_For_Limited_Init): Add type parameter.
3143         * sem_ch3.adb (Check_Initialization): Add type in call to
3144         OK_For_Limited_Init.
3145         (OK_For_Limited_Init): Add new type param in call to
3146         OK_For_Limited_Init_In_05.
3147         (OK_For_Limited_Init_In_05): Permit arbitrary expressions of a
3148         nonlimited type when the context type is a limited interface. Add type
3149         on recursive calls.
3151         * sem_ch4.adb (Analyze_Allocator): Add type in call to
3152         OK_For_Limited_Init.
3154         * sem_ch6.adb (Check_Limited_Return): Add type in call to
3155         OK_For_Limited_Init.
3157         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Add type in call to
3158         OK_For_Limited_Init.
3159         (Instantiate_Object): Add type in call to OK_For_Limited_Init.
3161         * sem_type.adb (Interface_Present_In_Ancestor): In the case of a
3162         class-wide interface, get the base type before applying Etype, in order
3163         to account for class-wide subtypes.
3165 2009-06-25  Emmanuel Briot  <briot@adacore.com>
3167         * gnatcmd.adb, prj-proc.adb, make.adb, prj.adb, prj.ads, prj-nmsc.adb,
3168         prj-util.adb, prj-env.adb, prj-env.ads: Merge handling of naming_data
3169         between gnatmake and gprbuild.
3170         (Naming_Data): Removed, no longer used
3171         (Naming_Table, Project_Tree_Ref.Namings): Removed, since this is only
3172         needed locally in one subprogram, no need to store forever in the
3173         structure.
3174         (Check_Naming_Scheme, Check_Package_Naming): Merged, since they play
3175         a similar role.
3176         (Body_Suffix_Of, Body_Suffix_Id_Of, Register_Default_Naming_Scheme,
3177         Same_Naming_Scheme, Set_Body_Suffix, Set_Spec_Suffix, Spec_Suffix_Of,
3178         Spec_Suffix_Id_Of): removed, no longer used.
3180 2009-06-25  Javier Miranda  <miranda@adacore.com>
3182         * sem_res.adb (Resolve_Allocator): Skip test requiring exact match of
3183         types on qualified expression in calls to imported C++ constructors.
3185         * exp_ch4.adb (Expand_Allocator_Expression): Add missing support for
3186         imported C++ constructors.
3188 2009-06-25  Sergey Rybin  <rybin@adacore.com>
3190         * vms_data.ads: Add qualifier for new gnatcheck '-t' option.
3192 2009-06-25  Vincent Celier  <celier@adacore.com>
3194         * s-os_lib.adb (Normalize_Pathname.Get_Directory): If directory
3195         provided, on Windows change all '/' to '\'.
3197         * fmap.ads, fmap.adb (Remove_Forbidden_File_Name): Remove, no longer
3198         used. Minor comment changes
3200         * prj-nmsc.adb: Do not call Fmap.Add_Forbidden_File_Name or
3201         Remove_Forbidden_File_Name.
3203 2009-06-25  Quentin Ochem  <ochem@adacore.com>
3205         * prj.ads (Unit_Index): Now general access type.
3207 2009-06-25  Pascal Obry  <obry@adacore.com>
3209         * a-stwise.adb, a-stzsea.adb: Fix confusion between 'Length and 'Last.
3211 2009-06-25  Emmanuel Briot  <briot@adacore.com>
3213         * fmap.ads, make.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb,
3214         prj-env.ads (Source_Data.Get_Object): Field removed, since it can be
3215         computed efficiently from the other fields.
3216         (Object_To_Global_Archive): New subprogram
3217         (Create_Mapping): Remove unneeded call to Remove_Forbidden_File_Name.
3218         (Override_Kind): Fix handling of separates in Ada.
3219         (Create_Mapping_File): Remove duplicate code
3220         (Naming_Data.Implementation_Exception, Specification_Exception):
3221         field removed, since never used.
3222         (Naming_Data.Specs, .Bodies): field removed, since this is only
3223         used while processing the project and is not needed once the tree
3224         is in memory. This brings Naming_Data and Lang_Naming_Data
3225         closer (same content now, but different use still).
3227 2009-06-25  Pascal Obry  <obry@adacore.com>
3229         * sem_ch4.adb: Minor reformatting.
3231         * a-strsea.adb: Fix confusion between 'Length and 'Last.
3233 2009-06-25  Ed Schonberg  <schonberg@adacore.com>
3235         * exp_attr.adb (Expand_N_Attribute_Reference, case 'Access and
3236         Unchecked_Access): If the context is an interface type, and the prefix
3237         is of the corresponding class-wide type, do not insert a conversion
3238         because the pointer displacement has already taken place, and we must
3239         retain the class-wide type in a dispatching context.
3241 2009-06-25  Emmanuel Briot  <briot@adacore.com>
3243         * prj-nmsc.adb, prj-env.adb (Override_Kind): Unset the unit field of
3244         the previous source file.
3245         (Create_Mapping): Iterate on sources rather than on units.
3247 2009-06-25  Emmanuel Briot  <briot@adacore.com>
3249         * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb,
3250         prj-env.adb, prj-env.ads (Slash): removed, no longer used
3251         (Source_Data): no longer use Path.Name to point to a locally removed
3252         file. Instead we use the field Locally_Removed which is clearer
3254 2009-06-25  Arnaud Charlet  <charlet@adacore.com>
3256         * gcc-interface/Make-lang.in: Remove references to sem_maps.o
3258         * sem_maps.adb, sem_maps.ads: Removed, not used.
3260 2009-06-25  Ed Falis  <falis@adacore.com>
3262         * s-vxwext-rtp.ads: Add missing declaration
3264 2009-06-25  Matthew Gingell  <gingell@adacore.com>
3266         * a-stwise.adb, a-stzsea.adb (Count, Index): Avoid local copy on stack,
3267         speed up unmapped case.
3269 2009-06-25  Vincent Celier  <celier@adacore.com>
3271         * prj-nmsc.adb (Check): Change error message for illegal abstract
3272         projects.
3274 2009-06-25  Robert Dewar  <dewar@adacore.com>
3276         * gnat_ugn.texi: Add note on use of -gnatct for ASIS
3278 2009-06-25  Emmanuel Briot  <briot@adacore.com>
3280         * fmap.ads: Add documentation on mapping files
3282 2009-06-25  Robert Dewar  <dewar@adacore.com>
3284         * exp_ch6.adb, g-socket.ads, g-socket.adb, sem_ch3.adb: Minor
3285         reformatting
3287 2009-06-24  Robert Dewar  <dewar@adacore.com>
3289         * prj-nmsc.adb, prj-nmsc.ads, prj-proc.adb, prj.adb: Minor reformatting
3291         * a-strsea.adb (Count): Avoid local copy on stack, speed up unmapped
3292         case.
3293         (Index): Ditto.
3295 2009-06-24  Ed Schonberg  <schonberg@adacore.com>
3297         * sem_ch4.adb (Analyze_One_Call): Check that at least one actual is
3298         present when checking whether a call may be interpreted as an indexing
3299         of the result of a call.
3301         * exp_ch9.adb (Expand_N_Subprogram_Declaration): Place the generated
3302         body for a null procedure on the freeze actions for the procedure, so
3303         that it will be analyzed at the proper place without premature freezing
3304         of actuals.
3306         * sem_ch3.adb (Check_Completion): Code cleanup. 
3307         Do not diagnose a null procedure without a body, if previous errors
3308         have disabled expansion.
3310 2009-06-24  Doug Rupp  <rupp@adacore.com>
3312         * init.c [VMS] Resignal C$_SIGKILL
3314 2009-06-24  Ed Falis  <falis@adacore.com>
3316         * s-vxwext.adb, s-vxwext-kernel.adb: Add s-vxwext body for VxWorks 5
3317         Define ERROR in body for VxWorks 6 kernel
3319 2009-06-24  Pascal Obry  <obry@adacore.com>
3321         * g-socket.adb, g-socket.ads: Fix possible unexpected constraint error
3322         in [Send/Receive]_Socket.
3324 2009-06-24  Emmanuel Briot  <briot@adacore.com>
3326         * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
3327         prj-conf.adb, prj-conf.ads (Allow_Duplicate_Basenames): New parameter
3328         to several subprograms.
3329         (Source_Data.Other_Part): Removed, since can be computed from the
3330         language.
3331         (Other_Part): New subprogram.
3333 2009-06-24  Emmanuel Briot  <briot@adacore.com>
3335         * gnat_ugn.texi, prj-nmsc.adb (Suffix_Matches): A suffix can also match
3336         the full base name of the file when the suffix doesn't start with a '.'.
3338 2009-06-24  Vincent Celier  <celier@adacore.com>
3340         * prj-nmsc.adb (Check): A project declared abstract is legal if no
3341         attribute Source_Dirs, Source_Files, Source_List_File or Languages is
3342         declared.
3344 2009-06-24  Robert Dewar  <dewar@adacore.com>
3346         * clean.adb, gnatcmd.adb, make.adb, mlib-prj.adb,
3347         prj-env.adb: Minor reformatting
3349 2009-06-24  Ed Falis  <falis@adacore.com>
3351         * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-vxwext.ads,
3352         s-vxwext-kernel.adb, s-vxwext-kernel.ads, s-vxwext-rtp.adb,
3353         s-tasinf-vxworks.ads, gcc-interface/Makefile.in: Add processor affinity
3354         support for VxWorks SMP.
3356         * gcc-interface/Make-lang.in: Update dependencies
3358 2009-06-24  Emmanuel Briot  <briot@adacore.com>
3360         * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
3361         prj-nmsc.adb, prj-env.adb, prj-proc.adb (Units_Table): Removed, since
3362         no longer useful.
3363         (Source_Data.Lang_Kind): Removed, since it duplicates information
3364         already available through Language.Config.
3365         (Source_Data.Compile): Removed, since information is already available
3366         through the language.
3367         (Is_Compilable): New subprogram.
3368         (Source_Data.Dependency): Removed, since already available through
3369         the language.
3370         (Source_Data.Object_Exist, Object_Linked): Removed since available
3371         through the language already.
3372         (Unit_Data.File_Names): Is now also set in multi_language mode, to
3373         bring the two modes closer in the resulting data structures.
3374         (Source_Data.Unit): Now a direct pointer to the unit data, rather than
3375         just the name that would point into a hash table.
3376         (Get_Language_From_Name): New subprogram.
3378 2009-06-24  Javier Miranda  <miranda@adacore.com>
3380         * exp_ch4.adb (Expand_N_Type_Conversion): Handle entities that are
3381         visible through limited-with context clauses. In addition, avoid an
3382         extra tag check that is not required when the class-wide
3383         designated types of the operand and target types are
3384         the same entity.
3385         (Tagged_Membership): Handle entities from the limited view.
3387 2009-06-24  Emmanuel Briot  <briot@adacore.com>
3389         * gnatcmd.adb, make.adb, mlib-prj.adb, prj.ads, clean.adb,
3390         prj-nmsc.adb, prj-env.adb (File_Name_Data): removed
3391         (Spec_Or_Body): now a subtype of Source_Kind, to avoid using two
3392         different vocabularies for similar concepts (Impl/Body_Part and
3393         Spec/Specification).
3394         (Unit_Data): now points directly to a Source_Id, rather than duplicating
3395         some of the information in File_Name_Data. This also saves a bit of
3396         memory. However, since we are now using a pointer we need to test
3397         for null explicitly in several places of the code
3399 2009-06-24  Javier Miranda  <miranda@adacore.com>
3401         * exp_ch4.adb (Expand_N_Type_Conversion): return immediately
3402         from processing the type conversion when the node is
3403         replaced by an N_Raise_Program_Error node.
3405 2009-06-24  Hristian Kirtchev  <kirtchev@adacore.com>
3407         * sem_ch6.adb (Designates_From_With_Type): New routine.
3408         (Process_Formals): Since anonymous access types are no longer flagged
3409         as from with types, traverse the designated type to determine whether
3410         it is coming from a limited view.
3412         * sem_res.adb: Remove with and use clauses for Sem_Ch10.
3413         (Full_Designated_Type): Use Available_View to extract the non-limited /
3414         full view of a type.
3416 2009-06-24  Robert Dewar  <dewar@adacore.com>
3418         * exp_ch6.adb: Minor reformatting
3420         * layout.adb: Minor reformatting
3422         * make.adb: Minor reformatting
3424 2009-06-24  Thomas Quinot  <quinot@adacore.com>
3426         * sem_ch10.adb: Minor code reorganization.
3428 2009-06-24  Eric Botcazou  <ebotcazou@adacore.com>
3430         * ttypes.ads: Minor editing.
3431         
3432 2009-06-24  Robert Dewar  <dewar@adacore.com>
3434         * exp_ch6.adb (Expand_Actuals): Use Is_Volatile, not Treat_As_Volatile
3435         in deciding to do call-by-copy code.
3437 2009-06-24  Vincent Celier  <celier@adacore.com>
3439         * make.adb (Gnatmake): To decide if an executable should be rebuilt,
3440         check if an externally built library file is more current than the
3441         executable.
3443 2009-06-23  Olivier Hainque  <hainque@adacore.com>
3445         * gcc-interface/utils.c (handle_vector_size_attribute): Import from
3446         c-common.c and populate in gnat_internal_attribute_table.
3447         
3448 2009-06-23  Ed Schonberg  <schonberg@adacore.com>
3450         * sem_res.adb (Valid_Conversion, Full_Designated_Type): Use
3451         Available_View only when designated type of an anonymous access type
3452         is  limited view.
3454 2009-06-23  Robert Dewar  <dewar@adacore.com>
3456         * sem_ch10.adb: Minor reformatting
3458         * ali.ads: Mino reformatting.
3460         * gnat1drv.adb (Adjust_Global_Switches): New procedure (take care of
3461         turning off inlining if ASIS mode active).
3462         
3463         * switch-c.adb: Remove fiddling with Inspector_Mode and ASIS_Mode
3464         This belongs in gnat1drv.adb after switches are scanned.
3466 2009-06-23  Hristian Kirtchev  <kirtchev@adacore.com>
3468         * sem_attr.adb: Add with and use clauses for Sem_Ch10.
3469         (Check_Not_Incomplete_Type): Minor reformatting. Retrieve the root type
3470         when dealing with class-wide types. Detect a legal shadow entity and
3471         retrieve its non-limited view.
3473         * sem_ch10.adb (Has_With_Clause): Move the spec and body of the
3474         subprogram to top package level from Intall_Limited_Withed_Unit.
3475         (Install_Limited_Withed_Unit): Remove spec and body of Has_With_Clause.
3476         Add check which prevents the installation of a limited view if the
3477         non-limited view is already visible through a with clause.
3478         (Is_Legal_Shadow_Entity_In_Body): New routine. Detect a residual, but
3479         legal shadow entity which may occur in subprogram formals of anonymous
3480         access type.
3482         * sem_ch10.ads (Is_Legal_Shadow_Entity_In_Body): New routine.
3484         * sem_ch3.adb (Access_Definition): Remove the propagation of flag
3485         From_With_Type from the designated type to the generated anonymous
3486         access type. Remove associated comment.
3488         * sem_res.adb Add with and use clauses for Sem_Ch10.
3489         (Full_Designated_Type): Detect a legal shadow entity and retrieve its
3490         non-limited view. Since the shadow entity may replace a regular
3491         incomplete type, return the available full view.
3493 2009-06-23  Ed Schonberg  <schonberg@adacore.com>
3495         * sem_ch10.adb (Remove_Limited_With_Clause): Clean up code that handles
3496         incomplete type declarations. Previous code was potentially quadratic
3497         in the number of visible declarations in any package appearing in a
3498         limited_with_clause.
3500 2009-06-23  Robert Dewar  <dewar@adacore.com>
3502         * prj-conf.ads, prj-part.adb, prj-proc.adb, prj-proc.ads, sem_ch8.adb,
3503         xref_lib.adb: Minor reformatting
3505 2009-06-23  Robert Dewar  <dewar@adacore.com>
3507         * a-stzhas.adb: Provide dummy body to avoid build problems with old
3508         versions which did have a body for this unit.
3510 2009-06-23  Vincent Celier  <celier@adacore.com>
3512         * prj-attr.adb: Attribute names Initial_Required_Switches and
3513         Final_Required_Switches changed to Leading_Required_Switches and
3514         Trailing_Required_Switches.
3516         * prj-nmsc.adb (Process_Compiler): Attribute names
3517         Initial_Required_Switches and Final_Required_Switches changed to
3518         Leading_Required_Switches and Trailing_Required_Switches.
3520         * prj.ads (Language_Config): Component Initial_Required_Switches and
3521         Final_Required_Switches changed to Leading_Required_Switches and
3522         Trailing_Required_Switches.
3524         * snames.ads-tmpl: Remove standard names Initial_Required_Switches and
3525         Final_Required_Switches; add standard names Leading_Required_Switches
3526         and Trailing_Required_Switches.
3528 2009-06-23  Thomas Quinot  <quinot@adacore.com>
3530         * prj-conf.adb: Minor reformatting
3532         * xref_lib.adb: Minor cleanup
3534 2009-06-23  Emmanuel Briot  <briot@adacore.com>
3536         * prj-proc.adb, prj-proc.ads, prj-nmsc.adb, prj-nmsc.ads, prj-conf.adb,
3537         prj-conf.ads (Check_Configuration): New parameter
3538         Compiler_Driver_Mandatory.
3540 2009-06-23  Ed Schonberg  <schonberg@adacore.com>
3542         * sem_ch10.adb (Analyze_With_Clause): If a subprogram instance in the
3543         context of the current unit has an inline pragma, the instance is not
3544         rewritten as the declaration of the package wrapper. Handle both
3545         possibilities when retrieving the visible subprogram that renames the
3546         instantiation itself.
3548 2009-06-23  Javier Miranda  <miranda@adacore.com>
3550         * exp_ch4.adb (Displace_Allocator_Pointer, Expand_N_Allocator): Handle
3551         designated types referencing entities from the limited view.
3553 2009-06-23  Robert Dewar  <dewar@adacore.com>
3555         * s-strhas.adb, s-strhas.ads: Restrict to 32-bit modular types
3557         * s-imgdec.adb (Set_Decimal_Digits): Fix error of too many digits for
3558         small values
3560         * prj-conf.ads: Minor reformatting
3562         * prj-conf.adb: Minor reformatting
3564 2009-06-23  Vasiliy Fofanov  <fofanov@adacore.com>
3566         * g-debpoo.adb (Dump_Gnatmem): Output dummy timestamps for allocations
3567         to correspond to the log format that gnatmem now expects.
3569 2009-06-23  Vincent Celier  <celier@adacore.com>
3571         * prj-attr.adb: New attributes Initial_Required_Switches,
3572         Final_Required_Switches and Object_File_Switches
3573         
3574         * prj-nmsc.adb (Process_Compiler): Process new attributes
3575         Name_Final_Required_Switches, Name_Initial_Required_Switches and
3576         Name_Object_File_Switches.
3578         * prj.ads (Language_Config): New component
3579         Compiler_Initial_Required_Switches (replace Compiler_Required_Switches),
3580         Compiler_Final_Required_Switches and Object_File_Switches.
3582         * snames.ads-tmpl: New standard names Initial_Required_Switches,
3583         Final_Required_Switches and Object_File_Switches
3585 2009-06-23  Pascal Obry  <obry@adacore.com>
3587         * s-strhas.adb, s-strhas.ads: Minor reformatting.
3589 2009-06-23  Ed Schonberg  <schonberg@adacore.com>
3591         * sem_ch10.adb (Install_Limited_Withed_Unit): a null procedure does
3592         not indicate that the enclosing unit needs a body.
3594 2009-06-23  Emmanuel Briot  <briot@adacore.com>
3596         * prj-conf.ads, prj-conf.adb: New files part of the project manager.
3598 2009-06-23  Ed Schonberg  <schonberg@adacore.com>
3600         * sem_ch3.adb (Derive_Subprogram): If the inherited subprogram is a
3601         primitive equality include it with its source name even if the
3602         operation is currently invisible, to make sure that the corresponding
3603         slot in the dispatch table is reserved for the internal equality
3604         subsequently generated during expansion.
3606 2009-06-23  Matthew Gingell  <gingell@adacore.com>
3608         * Makefile.rtl, a-stwiha.adb: Add a-stwiha.adb back.
3610 2009-06-22  Jose Ruiz  <ruiz@adacore.com>
3612         * sysdep.c (__gnat_localtime_tzoff for RTX):
3613         SystemTimeToTzSpecificLocalTime is not supported by RTX. Use
3614         GetTimeZoneInformation instead.
3616 2009-06-22  Robert Dewar  <dewar@adacore.com>
3618         * sem_res.adb (Check_No_Direct_Boolean_Operators): New procedure
3620 2009-06-22  Ed Schonberg  <schonberg@adacore.com>
3622         * sem_ch12.adb (Collect_Previous_Instances): Do not collect
3623         instantiations declared in a previous generic package body.
3625 2009-06-22  Robert Dewar  <dewar@adacore.com>
3627         * gnat_rm.texi: Add doc that X=True and X=False is allowed for the
3628         restriction No_Direct_Boolean_Operators.
3630 2009-06-22  Thomas Quinot  <quinot@adacore.com>
3632         * bindusg.adb: Minor fixes to gnatbind usage message
3634         * sem_eval.adb: Minor reformatting
3636 2009-06-22  Javier Miranda  <miranda@adacore.com>
3638         * sem_ch3.adb (Analyze_Object_Declaration, Freeze_Entity): Move to the
3639         freezing point the check on the use of abstract types in object
3640         declarations. Done to allow the declaration of C++ imported variables
3641         or constants whose type corresponds with an imported C++ classes for
3642         which the constructor is not imported.
3644 2009-06-22  Thomas Quinot  <quinot@adacore.com>
3646         * sem_ch6.adb: Minor reformatting
3648 2009-06-22  Ed Schonberg  <schonberg@adacore.com>
3650         * exp_ch3.adb (Build_Initialization_Call): If a discriminated record
3651         component is constrained with an expression rather than with a
3652         discriminant of the enclosing type, use that expression when building
3653         the call to default-initialize the component, when the call is part of
3654         an aggregate with box initialization.
3656 2009-06-22  Ed Schonberg  <schonberg@adacore.com>
3658         * sem_ch6.adb (Check_Overriding_Indicator): Clean up code, make warning
3659         unconditional rather than a style check, because a formal name out of
3660         order is suspicious.
3662 2009-06-22  Vincent Celier  <celier@adacore.com>
3664         * prj-nmsc.adb (Locate_Directory): Indicate the project name when
3665         creating a directory automatically.
3667 2009-06-22  Eric Botcazou  <ebotcazou@adacore.com>
3669         * sem_ch3.adb (Create_Constrained_Components): For a subtype of an
3670         untagged derived type, add a hidden component for every constrained
3671         discriminant of the parent type to keep record layout consistent.
3673 2009-06-22  Thomas Quinot  <quinot@adacore.com>
3675         * exp_ch3.adb: Minor code reorganization (avoid an unnecessary tree
3676         copy).
3678 2009-06-22  Matthew Gingell  <gingell@adacore.com>
3680         * a-stzhas.adb, a-stwiha.adb, impunit.adb, a-swbwha.adb, a-shcain.adb,
3681         s-htable.adb, a-szuzha.adb, a-stunha.adb, a-stboha.adb, a-strhas.adb,
3682         g-spitbo.adb, s-strhas.adb, a-szbzha.adb, s-strhas.ads, Makefile.rtl,
3683         a-swuwha.adb: New unit System.String_Hash.  
3684         Refactor redundant cut and pasted hash functions with instances of a
3685         new generic hash function.
3686         Implement a new string hashing algorithm which appears in testing to
3687         be move effective than to previous approach.
3689 2009-06-22  Ed Falis  <falis@adacore.com>
3691         * sysdep.c: remove include for nfsLib.h and an NFS specific error
3692         message for VxWorks 653 vThreads: not supported by the OS.
3694         * gsocket.h: disable sockets for VxWorks 653 vThreads.
3696 2009-06-22  Robert Dewar  <dewar@adacore.com>
3698         * sem_ch6.adb: Add ??? comment for bad use of Style_Check
3700 2009-06-22  Robert Dewar  <dewar@adacore.com>
3702         * sinput.adb, sinput.ads (Expr_First_Char, Expr_Last_Char): Replaced
3703         by Sloc_Range.
3705         * freeze.adb: Minor comment updates
3707         * s-valrea.adb (Bad_Based_Value): New procedure
3708         (Scan_Real): Raise exceptions with messages
3710 2009-06-22  Matthew Gingell  <gingell@adacore.com>
3712         * adaint.h: Complete previous change.
3714 2009-06-22  Thomas Quinot  <quinot@adacore.com>
3716         * exp_ch7.ads, exp_ch3.adb: Minor reformatting
3718 2009-06-22  Ed Schonberg  <schonberg@adacore.com>
3720         * sem_ch6.adb (Check_Overriding_Indicator): When style checks are
3721         enabled, emit warning when a non-controlling argument of the overriding
3722         operation appears out of place vis-a-vis of the formal of the
3723         overridden operation.
3725 2009-06-22  Vincent Celier  <celier@adacore.com>
3727         * gnatcmd.adb (Check_Files): Close temporary files after all file names
3728         have been written into it.
3730 2009-06-22  Matthew Gingell  <gingell@adacore.com>
3732         * adaint.c, adaint.h, cstreams.c: Call stat64 on platforms where it is
3733         available.
3735 2009-06-22  Thomas Quinot  <quinot@adacore.com>
3737         * sem_disp.adb (Check_Direct_Call): Handle the case where the full
3738         view of the root type is visible at the point of the call.
3740 2009-06-22  Pat Rogers  <rogers@adacore.com>
3742         * gnat_ugn.texi: Revised a sentence to correct a minor grammar error.
3744 2009-06-22  Jerome Lambourg  <lambourg@adacore.com>
3746         * freeze.adb: Add comments.
3748 2009-06-21  Thomas Quinot  <quinot@adacore.com>
3750         * exp_ch3.adb, exp_prag.adb, exp_util.adb, exp_util.ads, freeze.adb,
3751         sem_ch13.adb, sem_elab.adb (Exp_Prag.Expand_Pragma_Import_Or_Interface):
3752         Factor out code to new subprogram...
3753         (Exp_Util.Find_Init_Call): New shared routine to find the init proc call
3754         for a default initialized variable.
3755         (Freeze.Check_Address_Clause): Do not reset Has_Delayed_Freeze on an
3756         entity that has an associated freeze node.
3757         (Sem_Ch13.Analyze_Attribute_Definition_Clause, case Address):
3758         If there is an init call for the object, defer it to the object freeze
3759         point.
3760         (Check_Elab_Call.Find_Init_Call): Rename to Check_Init_Call, to avoid
3761         name clash with new subprogram introduced in Exp_Util.
3763 2009-06-21  Robert Dewar  <dewar@adacore.com>
3765         * einfo.ads: Minor reformatting
3767 2009-06-21  Ed Falis  <falis@adacore.com>
3769         * env.c (__gnat_environ): return NULL for vThreads - unimplemented
3771 2009-06-21  Eric Botcazou  <ebotcazou@adacore.com>
3773         * einfo.ads: Update comments.
3775 2009-06-21  Hristian Kirtchev  <kirtchev@adacore.com>
3777         * sem_disp.adb (Check_Direct_Call): New routine. Dispatching calls
3778         where the controlling formal is of private class-wide type whose
3779         completion is a synchronized type can be converted into direct calls.
3781 2009-06-21  Vincent Celier  <celier@adacore.com>
3783         * gnatcmd.adb (Check_Files): When all sources of the project are to be
3784         indicated to gnatcheck, gnatpp or gnatmetric, always specify the list
3785         of sources using -files=, so that the distinction can be made by the
3786         tool of a call with no source (to display the usage) from a call with
3787         a project file that contains no source.
3789 2009-06-21  Jerome Lambourg  <lambourg@adacore.com>
3791         * exp_ch3.adb (Build_Array_Init_Proc): Do not build the init proc in
3792         case of VM convention arrays.
3794 2009-06-20  Robert Dewar  <dewar@adacore.com>
3796         * a-nudira.adb: Minor reformatting
3798 2009-06-20  Ed Schonberg  <schonberg@adacore.com>
3800         * exp_ch3.adb (Build_Record_Init_Proc): When copying initial
3801         expressions (possibly from a parent type) indicate that the scope of
3802         the new itypes is the initialization procedure being built.
3804 2009-06-20  Robert Dewar  <dewar@adacore.com>
3806         * a-nudira.adb (Fits_In_32_Bits): New name (inverted sense) for
3807         Needs_64, and now computed without anomolies for some dynamic types.
3809 2009-06-20  Thomas Quinot  <quinot@adacore.com>
3811         * sem_prag.adb: Minor reformatting
3813         * exp_disp.ads: Minor reformatting
3815 2009-06-20  Ed Schonberg  <schonberg@adacore.com>
3817         * sem_ch3.adb (Is_OK_For_Limited_Init): An unchecked conversion of a
3818         function call is a legal expression to initialize a limited object.
3820         * exp_ch3.adb: Rename various freeze operations that perform expansion
3821         actions, to prevent confusion with subprograms in the freeze package.
3823 2009-06-20  Ed Schonberg  <schonberg@adacore.com>
3825         * sem.adb (Walk_Library_Units): Check instantiations first.
3827         * sem_ch6.adb (Analyze_Subprogram_Declaration): Mark a subprogram as a
3828         private primitive if it is a function with a controlling result that is
3829         a type extension with progenitors.
3831         * exp_ch9.adb (Build_Wrapper_Spec, Build_Wrapper_Body): Handle properly
3832         a primitive operation of a synchronized tagged type that has a
3833         controlling result.
3835 2009-06-20  Thomas Quinot  <quinot@adacore.com>
3837         * einfo.ads: Fix typo.
3839 2009-06-20  Ed Falis  <falis@adacore.com>
3841         * s-vxwext.ads, s-vxwext-kernel.adb: Complete previous change.
3843 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
3845         * gcc-interface/trans.c (emit_check): Do not wrap up the result
3846         in a SAVE_EXPR.
3847         (protect_multiple_eval): Always protect complex expressions.
3849 2009-06-19  Emmanuel Briot  <briot@adacore.com>
3851         * prj-ext.adb, makeutl.adb, makeutl.ads (Executable_Prefix_Path): Now
3852         make sure we always return a name ending with a path separator.
3854 2009-06-19  Javier Miranda  <miranda@adacore.com>
3856         * sem_ch12.adb (Instantiate_Package_Body, Instantiate_Subprogram_Body):
3857         Save and restore the visibility of the parent when installed.
3859 2009-06-19  Jose Ruiz  <ruiz@adacore.com>
3861         * s-tposen.ads (Protection_Entry): Replace fields L, Ceiling, and Owner
3862         by Common which contains all these fields.
3864         * s-tposen.adb (Initialize_Protection_Entry, Lock_Entry,
3865         Lock_Read_Only_Entry, Timed_Protected_Single_Entry_Call, Unlock_Entry):
3866         Remove code duplication in this package by means of calling the
3867         equivalent code in s-taprob.
3869 2009-06-19  Robert Dewar  <dewar@adacore.com>
3871         * a-einuoc.ads: Minor reformatting
3873 2009-06-19  Ed Falis  <falis@adacore.com>
3875         * a-einuoc.ads, s-osinte-vxworks.ads, s-vxwext.ads, s-vxwext-kernel.adb,
3876         s-vxwext-kernel.ads, s-vxwext-rtp.ads: Code clean up.
3878 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
3880         * einfo.ads (Handling of Type'Size Values): Fix Object_Size values.
3882 2009-06-19  Robert Dewar  <dewar@adacore.com>
3884         * a-nudira.adb (Need_64): Handle negative ranges and also dynamic
3885         ranges
3887         * checks.adb (Determine_Range): Move the test for generic types later.
3889         * sem_eval.adb (Compile_Time_Compare): Improve circuitry to catch more
3890         cases.
3891         (Eval_Relational_Op): Fold more cases including string compares
3893         * sem_util.ads, sem_util.adb (References_Generic_Formal_Type): New
3894         function.
3896 2009-06-19  Robert Dewar  <dewar@adacore.com>
3898         * sem_type.ads, sem_ch12.adb: Minor reformatting
3900         * s-wchcnv.adb (UTF_32_To_Char_Sequence): Handle invalid data properly
3902 2009-06-19  Ed Schonberg  <schonberg@adacore.com>
3904         * exp_ch9.adb (Build_Wrapper_Spec): Handle properly an overridden
3905         primitive operation of a rivate extension whose controlling argument
3906         is an out parameter.
3908         * sem.adb (Walk_Library_Units): exclude generic package declarations
3909         from check.
3911 2009-06-19  Thomas Quinot  <quinot@adacore.com>
3913         * i-vxwoio.ads: Add comments
3915 2009-06-19  Thomas Quinot  <quinot@adacore.com>
3917         * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
3918         g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
3919         g-socthi.adb, g-socthi.ads, g-socket.adb, g-sothco.ads
3920         (GNAT.Sockets.Thin.C_Ioctl): Rename to Socket_Ioctl.
3921         (GNAT.Sockets.Thin.Socket_Ioctl): Use new function
3922         Thin_Common.Socket_Ioctl.
3923         (GNAT.Sockets.Thin_Common.Socket_Ioctl): Binding to new C wrapper
3924         __gnat_socket_ioctl.
3925         (__gnat_socket_ioctl): Wrapper for ioctl(2) called with a single int*
3926         argument after the file descriptor and request code.
3928 2009-06-19  Robert Dewar  <dewar@adacore.com>
3930         * checks.adb: Minor reformatting
3932 2009-06-19  Jose Ruiz  <ruiz@adacore.com>
3934         * env.c (__gnat_environ): RTX does not support this functionality.
3936 2009-06-19  Ed Schonberg  <schonberg@adacore.com>
3938         * sem.adb (Walk_Library_Items): Include bodies in the list of units to
3939         traverse, to account for front-end inlining and instantiations in a
3940         spec or in the main unit.
3942 2009-06-19  Robert Dewar  <dewar@adacore.com>
3944         * checks.adb (Determine_Range): Do not attempt to get range of generic
3945         type.
3947 2009-06-19  Sergey Rybin  <rybin@adacore.com>
3949         * gnat_ugn.texi, vms_data.ads: Add the documentation for the new
3950         gnatmetric option for generating the schema file for gnatmetric XML
3951         output. Add corresponding VMS qualifier.
3953 2009-06-19  Robert Dewar  <dewar@adacore.com>
3955         * g-cgi.adb: Minor reformatting
3957 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
3959         * s-intman-solaris.adb (Notify_Exception): Do not discriminate on the
3960         signal code for SIGFPE and raise Program_Error for SIGILL.
3962         * s-osinte-solaris.ads: Remove signal code constants for SIGFPE.
3964 2009-06-19  Ed Schonberg  <schonberg@adacore.com>
3966         * sem_ch8.adb (Nvis_Messages): Do not list an entity declared in a
3967         generic package if there is a visibility candidate that is declared in
3968         a regular package.
3970 2009-06-18  Olivier Hainque  <hainque@adacore.com>
3972         * system-aix64.ads: New file.
3973         * gcc-interface/Makefile.in (aix LIBGNAT_TARGET_PAIRS): Use the
3974         64bit system.ads for ppc64 multilib variants.
3976 2009-06-16  Robert Dewar  <dewar@adacore.com>
3977             Olivier Hainque  <hainque@adacore.com>
3979         Relax constraints on Machine_Attribute argument types:
3980         * sem_prag.adb (Check_Arg_Is_Static_Expression): Allow for
3981         missing type.
3982         (Analyze_Attribute, case Machine_Attribute): Allow any type for arg 3.
3983         * gcc-interface/decl.c (prepend_attributes): Accept static
3984         expressions of any type as attribute arguments, not only string
3985         literals.
3986         * gnat_rm.texi (pragma Machine_Attribute section): Adjust to reflect
3987         the relaxation of the restriction on the Info argument type.
3988         
3989 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
3991         * gcc-interface/utils.c (record_builtin_type): Pass location
3992         argument to build_decl.
3993         (create_type_stub_decl): Same.
3994         (create_type_decl): Same.
3995         (create_var_decl_1): Same.
3996         (create_field_decl): Same.
3997         (create_param_decl): Same.
3998         (create_label_decl): Same.
3999         (create_subprog_decl): Same.
4000         * gcc-interface/decl.c (gnat_to_gnu_entity): Same.
4001         * gcc-interface/trans.c (Case_Statement_to_gnu): Pass location
4002         argument to create_artificial_label.
4003         (Loop_Statement_to_gnu): Same.
4004         (Subprogram_Body_to_gnu): Same.
4005         (gnat_gimplify_stmt): Same.
4007 2009-06-11  Richard Henderson  <rth@redhat.com>
4009         * gcc-interface/misc.c (gnat_handle_option): Rename OPT_gdwarf_ to
4010         OPT_gdwarfplus.
4012 2009-06-11  Ed Schonberg  <schonberg@adacore.com>
4014         * sem_attr.adb (Resolve_Attribute, case 'access): Add missing
4015         accessibiliy check on access_to_subprogram in the context of an
4016         anonymous access that is not an access parameter.
4018 2009-06-11  Eric Botcazou  <ebotcazou@adacore.com>
4020         * tracebak.c (i386 section): Define IS_BAD_PTR on Solaris.
4021         
4022 2009-06-11  Quentin Ochem  <ochem@adacore.com>
4024         * sem_warn.adb, scng.adb, sfn_scan.adb, freeze.adb: Add CODEFIX
4025         comments for message handled by GPS.
4027 2009-06-11  Matthew Gingell  <gingell@adacore.com>
4029         * adaint.c: Use fopen64 instead of fopen on platforms where we know
4030         it's supported.
4032 2009-06-11  Pascal Obry  <obry@adacore.com>
4034         * g-cgi.ads: Fix comment typo.
4036         * g-cgi.adb: Properly decode "+" in CGI parameters as spaces.
4038 2009-06-10  Eric Botcazou  <ebotcazou@adacore.com>
4040         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Use
4041         a reference to the original type for the type of the field of the
4042         XVS type.
4043         (maybe_pad_type): Likewise.
4045         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Factor
4046         common predicate and remove redundant setting of TYPE_BY_REFERENCE_P.
4047         Pass correctly typed arguments to create_field_decl.
4048         <E_Record_Subtype>: Set BLKmode for tagged and limited types in the
4049         case of contrained discriminants as well.  Use the padded base type
4050         in the other case as well.  Rename temporary variable.  Tweak test.
4051         Factor common access pattern.  Set GNU_SIZE only once.
4053 2009-06-09  Olivier Hainque  <hainque@adacore.com>
4055         * gcc-interface/utils2.c (build_call_alloc_dealloc_proc): New
4056         helper for build_call_alloc_dealloc with arguments to be interpreted
4057         identically.  Process the case where a GNAT_PROC to call is provided.
4058         (maybe_wrap_malloc): New helper for build_call_alloc_dealloc, to build
4059         and return an allocator for DATA_SIZE bytes aimed at containing a
4060         DATA_TYPE object, using the default __gnat_malloc allocator.  Honor
4061         DATA_TYPE alignments greater than what the latter offers.
4062         (maybe_wrap_free): New helper for build_call_alloc_dealloc, to
4063         release a DATA_TYPE object designated by DATA_PTR using the
4064         __gnat_free entry point.
4065         (build_call_alloc_dealloc): Expect object data type instead of naked
4066         alignment constraint. Use the new helpers.
4067         (build_allocator): Remove special processing for the super-aligned
4068         case, now handled by build_call_alloc_dealloc.  Pass data
4069         type instead of the former alignment argument, as expected by the new
4070         interface.
4071         * gcc-interface/gigi.h (build_call_alloc_dealloc): Adjust prototype
4072         and comment.
4073         * gcc-interface/trans.c (gnat_to_gnu) <case N_Free_Statement>:
4074         Remove special processing for the super-aligned case, now handled
4075         by build_call_alloc_dealloc.  Pass data type instead of the former
4076         alignment argument, as expected by the new interface.
4077         
4078 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
4080         * lib-writ.adb (flag_compare_debug): Import.
4081         (Write_ALI): Skip during -fcompare-debug-second.
4083 2009-06-03  Eric Botcazou  <ebotcazou@adacore.com>
4085         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
4086         adjusting the discriminant nodes in an extension, use the full view
4087         of the parent subtype if it is of a private kind.
4089 2009-06-03  Eric Botcazou  <ebotcazou@adacore.com>
4091         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Add the
4092         _Parent field, if any, to the record before adding the other fields.
4093         <E_Record_Subtype>: Put the _Controller field before the other fields
4094         except for the _Tag or _Parent fields.
4095         (components_to_record): Likewise.  Retrieve the _Parent field from the
4096         record type.
4098 2009-06-03  Eric Botcazou  <ebotcazou@adacore.com>
4100         * gcc-interface/decl.c (substitution_list): Rename to build_subst_list,
4101         remove unused parameter and simplify.
4102         (gnat_to_gnu_entity) <E_Record_Type>: Do not set TYPE_FIELDS.  Factor
4103         common predicate.  Rewrite loop for clarity.  Use GNU_TYPE directly
4104         as context for all discriminants.  Fix formatting nits.
4105         <E_Record_Subtype>: Add cosmetic 'break'.  Test Has_Discriminants
4106         before Discriminant_Constraint.  Adjust for above renaming.  Do not
4107         set GNU_TYPE more than once.
4108         (elaborate_entity): Test Has_Discriminants on the entity and use
4109         Implementation_Base_Type.
4110         (components_to_record): Rename component_list to gnat_component_list.
4111         Retrieve the _Parent field from the list.  Fix nits in comments.
4112         Clarify logic in loop.  Pass correct arguments to create_field_decl.
4114 2009-06-02  Eric Botcazou  <ebotcazou@adacore.com>
4116         * gcc-interface/Make-lang.in: Fix formatting.
4118 2009-06-01  Olivier Hainque  <hainque@adacore.com>
4119             Eric Botcazou  <ebotcazou@adacore.com>
4120         
4121         * gcc-interface/utils.c (convert) <CONSTRUCTOR case>: When converting
4122         to the packable version of the type, clear TREE_STATIC/TREE_CONSTANT
4123         on the result if at least one of the input fields couldn't be output
4124         as a static constant any more.
4126 2009-06-01  Olivier Hainque  <hainque@adacore.com>
4127             Eric Botcazou  <ebotcazou@adacore.com>
4128         
4129         * gcc-interface/utils2.c (gnat_build_constructor): Factor
4130         out code.  Use initializer_constant_valid_for_bitfield_p and
4131         CONSTRUCTOR_BITFIELD_P for bit-fields.
4133 2009-05-26  Ian Lance Taylor  <iant@google.com>
4135         * gcc-interface/Makefile.in (COMPILER): Define.
4136         (COMPILER_FLAGS, ALL_COMPILERFLAGS): Define.
4137         (.c.o, cio.o, init.o, initialize.o, targext.o): Use $(COMPILER).
4138         (seh_init.o, tracebak.o): Likewise.
4139         * gcc-interface/Make-lang.in (ada/targext.o): Likewise.
4140         (ada/cio.o, ada/init.o, ada/initialize.o, ada/raise.o): Likewise.
4141         (ada/tracebak.o, ada/cuintp.o, ada/decl.o, ada/misc.o): Likewise.
4142         (ada/targtyps.o, ada/trans.o, ada/utils.o): Likewise.
4143         (ada/utils2.o): Likewise.
4145 2009-05-24  Olivier Hainque  <hainque@adacore.com>
4147         * switch.adb (Is_Internal_GCC_Switch, Switch_Last): Bodies of ...
4148         * switch.ads (Is_Internal_GCC_Switch, Switch_Last): New functions.
4149         Add -auxbase variants to the list of recognized internal switches.
4150         * back_end.adb (Scan_Back_End_Switches): Use the new functions and
4151         adjust comments.
4152         * lib.ads: Make comment on internal GCC switches more general.
4153         * gcc-interface/lang-specs.h (specs for Ada): Pass -auxbase variants
4154         as for C.       
4155         
4156 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
4158         * gcc-interface/misc.c (gnat_get_subrange_bounds): Fix thinko.
4160 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
4162         * gcc-interface/decl.c (set_rm_size): Bypass the check for packed array
4163         types.
4165 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
4167         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not modify the
4168         original type because of the alignment when there is an address clause.
4170 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
4172         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: When
4173         discriminants affect the shape of the subtype, retrieve the GCC type
4174         directly from the original field if the GNAT types for the field and
4175         the original field are the same.
4177 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
4179         * gcc-interface/ada-tree.h (TYPE_GCC_MIN_VALUE, TYPE_GCC_MAX_VALUE):
4180         New macros.
4181         (TYPE_RM_VALUES): Likewise.
4182         (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUES.
4183         (SET_TYPE_RM_SIZE): New macro.
4184         (TYPE_RM_MIN_VALUE, TYPE_RM_MAX_VALUE): Likewise.
4185         (SET_TYPE_RM_SIZE, SET_TYPE_RM_MAX_VALUE): Likewise.
4186         (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Redefine.
4187         * gcc-interface/gigi.h (create_range_type): Declare.
4188         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>
4189         Use SET_TYPE_RM_MAX_VALUE to set the upper bound on the UMT type.
4190         <E_Signed_Integer_Subtype>: Build a regular integer type first and
4191         then set the RM bounds.  Use SET_TYPE_RM_SIZE to set the RM size.
4192         <E_Floating_Point_Subtype>: Build a regular floating-point type first
4193         and then set the RM bounds.
4194         <E_Array_Type>: Use create_range_type instead of build_range_type.
4195         <E_Array_Subtype>: Build a regular integer type first and then set
4196         the RM bounds for the extra subtype.
4197         <E_String_Literal_Subtype>: Use create_range_type instead of
4198         build_range_type.
4199         <all>: Set the RM bounds for enumeration types and the GCC bounds for
4200         floating-point types.
4201         (set_rm_size): Use SET_TYPE_RM_SIZE to set the RM size.
4202         (make_type_from_size) <INTEGER_TYPE>: Use SET_TYPE_RM_{MIN,MAX}_VALUE
4203         to set the bounds.  Use SET_TYPE_RM_SIZE to set the RM size.
4204         (substitute_in_type) <INTEGER_TYPE>: Deal with GCC bounds for domain
4205         types and with RM bounds for subtypes.
4206         * gcc-interface/misc.c (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
4207         (gnat_print_type) <REAL_TYPE>: New case.
4208         <ENUMERAL_TYPE>: Fall through to above case.
4209         (gnat_get_subrange_bounds): New function.
4210         * gcc-interface/trans.c (add_decl_expr): Mark the trees rooted as
4211         TYPE_RM_MIN_VALUE and TYPE_RM_MAX_VALUE, if any.
4212         * gcc-interface/utils.c (gnat_init_decl_processing): Use precision 8
4213         for booleans.  Adjust and use SET_TYPE_RM_SIZE to set the RM size.
4214         (create_range_type): New function.
4215         (create_param_decl): Build a regular integer type first and then set
4216         the RM bounds for the extra subtype.
4217         (unchecked_convert): Remove kludge for 'Valid.
4218         * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Convert
4219         the index to sizetype instead of TYPE_DOMAIN.
4221 2009-05-14  Eric Botcazou  <ebotcazou@adacore.com>
4223         * gcc-interface/decl.c (elaborate_expression_1): Remove GNAT_EXPR
4224         parameter and move check for static expression to...
4225         (elaborate_expression): ...here.  Adjust call to above function.
4226         (gnat_to_gnu_entity): Likewise for all calls.  Use correct arguments
4227         in calls to elaborate_expression.
4228         (elaborate_entity): Likewise.
4229         (substitution_list): Likewise.
4230         (maybe_variable): Fix formatting.
4231         (substitute_in_type) <REAL_TYPE>: Merge with INTEGER_TYPE case and add
4232         missing guard.
4233         * gcc-interface/trans.c (protect_multiple_eval): Minor cleanup.
4235 2009-05-07  Arnaud Charlet  <charlet@adacore.com>
4237         * gcc-interface/Make-lang.in: Update dependencies.
4239 2009-05-06  Laurent GUERBY  <laurent@guerby.net>
4241         * s-linux.ads, s-linux-alpha.ads, s-linux-hppa.ads, osinte-linux.ads:
4242         Define sa_handler_pos.
4243         * s-osinte-linux.ads: Use it.
4244         * s-linux-mipsel.ads: New.
4245         * system-linux-mips64el.ads: New.
4246         * gcc-interface/Makefile.in: Multilib handling for mipsel-linux and
4247         mips64el-linux.
4249 2009-05-06  Arnaud Charlet  <charlet@adacore.com>
4251         * exp_ch5.adb, exp_util.adb, exp_attr.adb, sem_util.adb, sem_res.adb,
4252         targparm.adb, targparm.ads, exp_ch4.adb, exp_ch6.adb, exp_disp.adb,
4253         opt.ads, exp_aggr.adb, exp_intr.adb, sem_disp.adb, exp_ch3.adb
4254         (Tagged_Type_Expansion): New flag.
4255         Replace use of VM_Target related to tagged types expansion by
4256         Tagged_Type_Expansion, since tagged type expansion is not necessarily
4257         linked to VM targets.
4259 2009-05-06  Robert Dewar  <dewar@adacore.com>
4261         * sem_attr.adb: Add processing for Standard'Compiler_Version
4263         * sinput.adb (Expr_Last_Char): Fix some copy-paste errors for paren
4264         skipping.
4265         (Expr_First_Char): Add ??? comment that paren skipping needs work
4266         (Expr_Last_Char): Add ??? comment that paren skipping needs work
4268         * exp_attr.adb: Add processing for Compiler_Version
4270         * sem_attr.adb: New attribute Compiler_Version
4272         * snames.ads-tmpl: Add entries for Compiler_Version attribute
4274         * gnat_rm.texi: Document Compiler_Version attribute
4276 2009-05-06  Robert Dewar  <dewar@adacore.com>
4278         * errout.adb: Minor reformatting
4280         * scng.adb, sem_prag.adb, par-ch4.adb, sem_res.adb, par-ch6.adb,
4281         sem_ch6.adb, par-prag.adb, sem_ch8.adb, sem_warn.adb, par-util.adb,
4282         styleg.adb: Add stylized comments to error messages that are included
4283         in the codefix circuitry of IDE's such as GPS.
4285 2009-05-06  Sergey Rybin  <rybin@adacore.com>
4287         * gnat_ugn.texi: For Misnamed_Identifiers rule all description of the
4288         new form of the rule parameter that allows to specify the suffix for
4289         access-to-access type names.
4291 2009-05-06  Robert Dewar  <dewar@adacore.com>
4293         * sem_warn.adb (Warn_On_Useless_Assignment): Avoid false negative for
4294         out parameter assigned when exception handlers are present.
4296         * sem_ch5.adb (Analyze_Exit_Statement): Kill current value last
4297         assignments on exit.
4299         * par-ch9.adb, sem_aggr.adb, par-endh.adb, sem_res.adb, par-ch6.adb,
4300         sinput-l.adb, par-load.adb, errout.ads, sem_ch4.adb, lib-load.adb,
4301         prj-dect.adb, par-ch12.adb, sem_ch8.adb, par-util.adb, par-ch3.adb,
4302         par-tchk.adb, par-ch5.adb: This patch adds stylized comments to error
4303         messages that are included in the codefix circuitry of IDE's such as
4304         GPS.
4306         * sinput.ads, sinput.adb (Expr_First_Char): New function
4307         (Expr_Last_Char): New function
4309 2009-05-06  Sergey Rybin  <rybin@adacore.com>
4311         * gnat_ugn.texi: Add subsection for Exits_From_Conditional_Loops rule
4312         Add formal definition for extra exit point metric
4314 2009-05-06  Pascal Obry  <obry@adacore.com>
4316         * adaint.c: Support for setting attributes on unicode filename on
4317         Windows.
4319 2009-05-06  Robert Dewar  <dewar@adacore.com>
4321         * sem_warn.adb: Minor reformatting
4323 2009-05-06  Javier Miranda  <miranda@adacore.com>
4325         * sem_prag.adb (Process_Import_Or_Interface): Imported CPP types must
4326         not have discriminants or components with default expressions.
4327         (Analyze_Pragma): For pragma CPP_Class check that imported types
4328         have no discriminants and components have no default expression.
4330         * sem_aggr.adb (Resolve_Aggr_Expr): Add missing check on wrong use of
4331         class-wide types in the expression of a record component association.
4333 2009-05-06  Sergey Rybin  <rybin@adacore.com>
4335         * vms_data.ads: Add qualifier for gnatmetric extra exit points metric
4337         * gnat_ugn.texi: Add description for the new extra exit points metric
4338         (gnatmetric section).
4340 2009-05-06  Robert Dewar  <dewar@adacore.com>
4342         * s-fileio.adb: Minor comment update
4344         * sem_ch8.adb: Minor reformatting
4346         * exp_ch3.adb: Update comments.
4348 2009-05-06  Tristan Gingold  <gingold@adacore.com>
4350         * init.c, s-osinte-darwin.ads: Reduce alternate stack size
4352 2009-05-06  Arnaud Charlet  <charlet@adacore.com>
4354         * gcc-interface/Makefile.in: Update LIBGNAT_TARGET_PAIRS for Xenomai.
4355         Fix missing unit for rtp-smp runtime on both ppc and x86 vxworks
4357         * gcc-interface/Make-lang.in: Update dependencies
4359 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
4361         * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Revert previous
4362         change. The context clause of a generic instance declaration must be
4363         preserved until the end of the compilation, because it may have to be
4364         installed/removed repeatedly.
4365         The latest change to sem.adb ensures that the context of both spec and
4366         body of an instance is traversed before the instance itself, making
4367         this patch redundant.
4369 2009-05-06  Gary Dismukes  <dismukes@adacore.com>
4371         * sem_aggr.adb: Fix typo.
4373 2009-05-06  Thomas Quinot  <quinot@adacore.com>
4375         * exp_ch3.adb (Expand_N_Object_Declaration): For a controlled object
4376         declaration, do not adjust if the declaration is to be rewritten into
4377         a renaming.
4379 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
4381         * sem_ch8.adb (Find_Type): Reject the use of a task type in its own
4382         discriminant part.
4384 2009-05-06  Bob Duff  <duff@adacore.com>
4386         * s-fileio.adb (File_IO_Clean_Up_Type): Make this type limited, since
4387         otherwise the compiler would be allowed to optimize away the cleanup
4388         code.
4390 2009-05-06  Gary Dismukes  <dismukes@adacore.com>
4392         * gnat_ugn.texi: Fix typo.
4394 2009-05-06  Thomas Quinot  <quinot@adacore.com>
4396         * g-debuti.adb: Minor reformatting
4398         * exp_attr.adb: Minor reformatting
4400 2009-05-06  Robert Dewar  <dewar@adacore.com>
4402         * sem_aggr.adb: Minor reformatting.
4404         * g-socthi-vms.adb: Minor reformatting
4406 2009-05-06  Bob Duff  <duff@adacore.com>
4408         * g-table.ads, g-table.adb, g-dyntab.ads, g-dyntab.adb:
4409         (Append_All): Add Append_All to g-table and g-dyntab, similar to table.
4411 2009-05-06  Bob Duff  <duff@adacore.com>
4413         * gnat_ugn.texi, gnat_rm.texi: Add missing documentation for warnings
4414         flags.
4416 2009-05-06  Javier Miranda  <miranda@adacore.com>
4418         * sem_aggr.adb (Valid_Ancestor_Type): Add support for C++ constructors.
4419         (Resolve_Extension_Aggregate): Do not reject C++ constructors in
4420         extension aggregates.
4421         (Resolve_Record_Aggregate): Add support for C++ constructors in
4422         extension aggregates.
4424         * exp_aggr.adb (Build_Record_Aggr_Code): Add support for C++
4425         constructors in extension aggregates.
4427 2009-05-06  Robert Dewar  <dewar@adacore.com>
4429         * freeze.adb (Freeze_Record_Type): Improve error msg for bad size
4430         clause.
4432 2009-05-06  Thomas Quinot  <quinot@adacore.com>
4434         * g-socthi-vms.adb (C_Recvmsg, C_Sendmsg): Convert Msg to appropriate
4435         packed type, since on OpenVMS, struct msghdr is packed.
4437 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
4439         * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
4440         call returning an unconstrained composite value, create the proper
4441         subtype for it, as is done for object dclarations with unconstrained
4442         nominal subtypes. Perform this transformation regarless of whether
4443         call comes from source.
4445 2009-05-06  Robert Dewar  <dewar@adacore.com>
4447         * freeze.adb (Freeze_Record_Type): Implement Implicit_Packing for
4448         records
4450         * gnat_rm.texi:
4451         Add documentation for pragma Implicit_Packing applied to record
4452         types.
4454 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
4456         * sem.adb (Walk_Library_Items): Place all with_clauses of an
4457         instantiation on the spec, because late instance bodies may generate
4458         with_clauses for the instance body but are inserted in the instance
4459         spec.
4461 2009-05-06  Emmanuel Briot  <briot@adacore.com>
4463         * prj-nmsc.adb (Locate_Directory): Remove unused parameters, and add
4464         support for returning the directory even if it doesn't exist. This is
4465         used for the object directory, since we are always setting it to a
4466         non-null value, and we should set it to an absolute name rather than a
4467         relative name for the sake of external tools that might depend on it.
4468         (Check_Library_Attributes): When Project.Library_Dir is known, check
4469         that the directory exists.
4471 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
4473         * sem_attr.adb (Check_Dereference): If the prefix of an attribute
4474         reference is an implicit dereference, do not freeze the designated type
4475         if within a default expression or when preanalyzing a pre/postcondtion.
4477 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
4479         * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
4480         call returning an unconstrained composite value, create the proper
4481         subtype for it, as is done for object dclarations with unconstrained
4482         nominal subtypes
4484 2009-05-06  Robert Dewar  <dewar@adacore.com>
4486         * sem_ch13.adb (Check_Constant_Address_Clause): Minor error message
4487         improvements
4489         * freeze.adb: Minor reformatting
4491 2009-05-06  Thomas Quinot  <quinot@adacore.com>
4493         * sem_ch3.adb (Access_Type_Declaration): An access type whose
4494         designated type is a limited view from a limited with clause (flagged
4495         From_With_Type) is not itself such a limited view.
4497 2009-05-06  Emmanuel Briot  <briot@adacore.com>
4499         * prj-nmsc.adb: Remove unused variable.
4501         * clean.adb, gnatcmd.adb, makeutl.ads, prj-pars.adb, prj-pars.ads,
4502         prj-proc.ads, prj.ads, switch-m.adb (Subdirs_Option): Moved to
4503         makeutl.ads, since not all users of prj.ads need this.
4505 2009-05-06  Javier Miranda  <miranda@adacore.com>
4507         * exp_aggr.adb (Build_Record_Aggr_Code): Add implicit call to the C++
4508         constructor in case of aggregates whose type is a CPP_Class type.
4510 2009-05-06  Robert Dewar  <dewar@adacore.com>
4512         * sem_ch13.adb: Minor comment additions
4514         * osint.adb: Minor reformatting
4516 2009-05-06  Pascal Obry  <obry@adacore.com>
4518         * initialize.c: On Windows, keep full pathname to expanded command
4519         line patterns.
4521 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
4523         * sem_aggr.adb (Resolve_Record_Aggregate): If a defaulted component of
4524         an aggregate with box default is of a discriminated private type, do
4525         not build a subaggregate for it.
4526         A proper call to the initialization procedure is generated for it.
4528 2009-05-06  Thomas Quinot  <quinot@adacore.com>
4530         * rtsfind.adb, rtsfind.ads, exp_dist.adb, exp_dist.ads
4531         (Exp_Dist.Build_TC_Call, Build_From_Any_Call, Build_To_Any_Call):
4532         Use PolyORB strings to represent Ada.Strings.Unbounded_String value;
4533         use standard array code for Standard.String.
4534         (Exp_Dist): Bump PolyORB s-parint API version to 3.
4535         (Rtsfind): New entities TA_Std_String, Unbounded_String.
4537 2009-05-06  Robert Dewar  <dewar@adacore.com>
4539         * g-comlin.ads: Minor reformatting
4541         * xoscons.adb: Minor reformatting
4543 2009-05-06  Gary Dismukes  <dismukes@adacore.com>
4545         * sem_aggr.adb (Resolve_Record_Aggregate): In step 5, get the
4546         Underlying_Type before retrieving the type definition for gathering
4547         components, to account for the case where the type is private.
4549 2009-05-06  Tristan Gingold  <gingold@adacore.com>
4551         * g-comlin.ads: Fix minor typos (Getopt instead of Get_Opt).
4553 2009-05-06  Thomas Quinot  <quinot@adacore.com>
4555         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
4556         g-socthi-vxworks.ads, g-socthi-mingw.adb g-socthi-mingw.ads,
4557         g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb
4558         (GNAT.Sockets.Thin.C_Sendmsg, GNAT.Sockets.Thin.C_Recvmsg,
4559         Windows versions): Fix incorrect base
4560         address of Iovec (it's Msg_Iov, not Msg_Iov'Address).
4561         (GNAT.Sockets.Thin.C_Sendto, GNAT.Sockets.Thin.C_Recvfrom): Use a
4562         System.Address for the To parameter instead of a Sockaddr_In_Access, to
4563         achieve independance from AF_INET family, and also to allow this
4564         parameter to be retrieved from a Msghdr for the Windows case where
4565         these routines are used to implement C_Sendmsg and C_Recvmsg.
4567 2009-05-06  Bob Duff  <duff@adacore.com>
4569         * g-expect.adb, g-expect.ads: Minor reformatting
4571         * sdefault.ads: Minor comment fix
4573         * g-expect-vms.adb: Minor reformatting
4575         * table.ads, table.adb (Append_All): New convenience procedure for
4576         appending a whole array.
4578         * comperr.adb (Compiler_Abort): Mention the -gnatd.n switch in the bug
4579         box message. Call Osint.Dump_Source_File_Names to print out the file
4580         list, instead of rummaging around in various data structures.
4582         * debug.adb: New switch -gnatd.n, to print source file names as they
4583         are read.
4585         * alloc.ads: Add parameters for Osint.File_Name_Chars.
4587         * osint.ads, osint.adb (Dump_Source_File_Names): New procedure to print
4588         out source file names during a "bug box".
4589         (Include_Dir_Default_Prefix): Use memo-izing to avoid repeated new/free.
4590         (Read_Source_File): Print out the file name, if requested via -gnatd.n.
4591         If it's not part of the runtimes, store it for later printing by
4592         Dump_Source_File_Names.
4594 2009-05-06  Javier Miranda  <miranda@adacore.com>
4596         * gnat_rm.texi (CPP_Constructor): Avoid duplication of the
4597         documentation and add reference to the GNAT user guide for further
4598         details.
4600 2009-05-06  Javier Miranda  <miranda@adacore.com>
4602         * gnat_ugn.texi: Complete documentation for CPP_Constructor and remove
4603         also wrong examples that use extension aggregates.
4605 2009-05-06  Albert Lee  <lee@adacore.com>
4607         * s-oscons-tmplt.c (System.OS_Constants): Do not use special definition
4608         of Msg_Iovlen_T for VMS.
4610 2009-05-04   Laurent GUERBY  <laurent@guerby.net>
4612         PR ada/38874
4613         * make.adb (Scan_Make_Arg): Pass --param= to compiler and linker.
4614         
4615 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
4617         * sem_ch8.adb (Analyze_Subprogram_Renaming): Improve error message on
4618         box-defaulted operator in an instantiation, when the type of the
4619         operands is not directly visible.
4621 2009-04-29  Gary Dismukes  <dismukes@adacore.com>
4623         * sem_aggr.adb (Valid_Limited_Ancestor): Undo previous change.
4624         (Resolve_Extension_Aggregate): Call Check_Parameterless_Call after the
4625         analysis of the ancestor part. Remove prohibition against limited
4626         interpretations of the ancestor expression in the case of Ada 2005.
4627         Revise error message in overloaded case, adding a message to cover
4628         the Ada 2005 case.
4630 2009-04-29  Thomas Quinot  <quinot@adacore.com>
4632         * xoscons.adb: Minor reformatting
4634 2009-04-29  Bob Duff  <duff@adacore.com>
4636         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Do not ignore
4637         attribute_definition_clauses for the following attributes when the
4638         -gnatI switch is used: External_Tag, Input, Output, Read, Storage_Pool,
4639         Storage_Size, Write. Otherwise, we get spurious errors (for example,
4640         missing Read attribute on remote types).
4642         * gnat_ugn.texi: Document the change, and add a stern warning.
4644 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
4646         * sem_attr.adb (Check_Local_Access): Indicate that value tracing is
4647         disabled not just for the current scope, but for the innermost dynamic
4648         scope as well.
4650 2009-04-29  Arnaud Charlet  <charlet@adacore.com>
4652         * gcc-interface/Make-lang.in: Update dependencies
4654 2009-04-29  Vincent Celier  <celier@adacore.com>
4656         * prj-part.adb: Minor comment update
4658 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
4660         * sem_aggr.adb (Resolve_Record_Aggregate): handle properly
4661         box-initialized records with discriminated subcomponents that are
4662         constrained by discriminants of enclosing components. New subsidiary
4663         procedures Add_Discriminant_Values, Propagate_Discriminants.
4665 2009-04-29  Arnaud Charlet  <charlet@adacore.com>
4667         * g-socket.adb: Code clean up.
4669 2009-04-29  Gary Dismukes  <dismukes@adacore.com>
4671         * sem_aggr.adb (Valid_Limited_Ancestor): Add test for the name of a
4672         function entity, to cover the case of a parameterless function call
4673         that has not been resolved.
4675 2009-04-29  Robert Dewar  <dewar@adacore.com>
4677         * err_vars.ads, prj-part.adb, scans.ads, exp_tss.adb: Minor
4678         reformatting and comment updates.
4680 2009-04-29  Arnaud Charlet  <charlet@adacore.com>
4682         * gnat_ugn.texi: Update some documentation about interfacing with C++
4683         Mention -fkeep-inline-functions.
4685         * gnat_ugn.texi: Minor edits
4687 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
4689         * sem_aggr.adb (Resolve_Record_Aggregate): When building an aggregate
4690         for a defaulted component of an enclosing aggregate, inherit the type
4691         from the component declaration of the enclosing type. 
4693 2009-04-29  Albert Lee  <lee@adacore.com>
4695         * g-socthi-vms.ads, g-socthi-vxworks.ads, s-oscons-tmplt.c,
4696         g-socthi-mingw.ads, g-socthi.ads, g-socket.adb, g-sothco.ads
4697         (System.OS_Constants): New type Msg_Iovlen_T which follows whether the
4698         msg_iovlen field in struct msghdr is 32 or 64 bits wide.
4699         Relocate the Msghdr record type from GNAT.Sockets.Thin to
4700         GNAT.Sockets.Common, and use System.OS_Constants.Msg_Iovlen_T as the
4701         type for the Msg_Iovlen field.
4703 2009-04-29  Vincent Celier  <celier@adacore.com>
4705         * sinput-l.adb (Load_File): When preprocessing, set temporarily the
4706         Source_File_Index_Table entries for the source, to avoid crash when
4707         reporting an error.
4709         * gnatcmd.adb (Test_If_Relative_Path): Use
4710         Makeutl.Test_If_Relative_Path.
4711         
4712         * makeutl.adb:(Test_If_Relative_Path): Process switches --RTS= only if
4713         Including_RTS is True.
4715         * makeutl.ads (Test_If_Relative_Path): New Boolean parameter
4716         Including_RTS defaulted to False.
4718         * sinput.ads, scans.ads, err_vars.ads: Initialize some variables with
4719         a default value.
4721 2009-04-29  Javier Miranda  <miranda@adacore.com>
4723         * gnat_ugn.texi: Adding documentation for non-default C++ constructors.
4725 2009-04-29  Javier Miranda  <miranda@adacore.com>
4727         * sem_ch3.adb (Analyze_Object_Declaration): Disable error message
4728         associated with dyamically tagged expressions if the expression
4729         initializing a tagged type corresponds with a non default CPP
4730         constructor.
4731         (OK_For_Limited_Init): CPP constructor calls are OK for initialization
4732         of limited type objects.
4734         * sem_ch5.adb (Analyze_Assignment): Improve the error message reported
4735         when a CPP constructor is called in an assignment. Disable also the
4736         error message associated with dyamically tagged expressions if the
4737         exporession initializing a tagged type corresponds with a non default
4738         CPP constructor.
4740         * sem_prag.adb (Analyze_Pragma): Remove code disabling the use of
4741         non-default C++ constructors.
4743         * sem_util.ads, sem_util.adb (Is_CPP_Constructor_Call): New subprogram.
4745         * exp_tss.ads, exp_tss.adb (Base_Init_Proc): Add support for
4746         non-default constructors.
4747         (Init_Proc): Add support for non-default constructors.
4749         * exp_disp.adb (Set_Default_Constructor): Removed.
4750         (Set_CPP_Constructors): Code based in removed Set_Default_Constructor
4751         but extending its functionality to handle non-default constructors.
4753         * exp_aggr.adb (Build_Record_Aggr_Code): Add support for non-default
4754         constructors. Minor code cleanup removing unrequired label and goto
4755         statement.
4757         * exp_ch3.adb (Build_Initialization_Call): Add support for non-default
4758         constructors.
4759         (Build_Init_Statements): Add support for non-default constructors.
4760         (Expand_N_Object_Declaration): Add support for non-default constructors.
4761         (Freeze_Record_Type): Replace call to Set_Default_Constructor by call
4762         to Set_CPP_Constructors.
4764         * exp_ch5.adb (Expand_N_Assignment_Statement): Add support for
4765         non-default constructors.
4766         Required to handle its use in build-in-place statements.
4768         * gnat_rm.texi (CPP_Constructor): Document new extended use of this
4769         pragma for non-default C++ constructors and the new compiler support
4770         that allows the use of these constructors in record components, limited
4771         aggregates, and extended return statements.
4773 2009-04-29  Vincent Celier  <celier@adacore.com>
4775         * prj-part.adb (Parse_Single_Project): Do not attempt to find a
4776         project extending an abstract project.
4778 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
4780         * targparm.ads: Fix oversight.
4782 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
4784         * lib-xref.adb (Output_Overridden_Op): Follow several levels of
4785         derivation when necessary, to find the user-subprogram that is actally
4786         being overridden.
4788 2009-04-29  Robert Dewar  <dewar@adacore.com>
4790         * sem_util.adb (May_Be_Lvalue): Fix cases involving indexed/selected
4791         components
4793 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
4795         * exp_ch9.ads, exp_ch9.adb (Build_Wrapper_Spec): Use source line of
4796         primitive operation, rather than source line of synchronized type, when
4797         building the wrapper for a primitive operation that overrides an
4798         operation inherited from a progenitor, to improve the error message on
4799         duplicate declarations.
4801         * sem_ch3.adb (Process_Full_View): Use new signature of
4802         Build_Wrapper_Spec.
4804 2009-04-29  Robert Dewar  <dewar@adacore.com>
4806         * prj-nmsc.ads: Minor reformatting
4808 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
4810         * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of the
4811         expression on the existing parent If statement.
4813 2009-04-29  Robert Dewar  <dewar@adacore.com>
4815         * prj-proc.adb, prj.ads: Minor reformatting
4817 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
4819         * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of an
4820         existing parent If statement on the newly created one.
4822 2009-04-29  Emmanuel Briot  <briot@adacore.com>
4824         * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
4825         prj-part.ads, prj.adb, prj.ads, clean.adb, prj-dect.adb, prj-dect.ads,
4826         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads, prj-makr.adb
4827         (Set_In_Configuration, In_Configuration): Removed.
4828         Replaced by an extra parameter Is_Config_File in several parameter to
4829         avoid global variables to store the state of the parser.
4831 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
4833         * sinfo.ads, sinfo.adb: New attribute Next_Implicit_With, to chain
4834         with_clauses generated for the same unit through rtsfind, and that
4835         appear in the context of different units.
4837         * rtsfind.adb: New attribute First_Implicit_With, component of the
4838         Unit_Record that stores information about a unit loaded through rtsfind.
4840 2009-04-29  Gary Dismukes  <dismukes@adacore.com>
4842         * exp_ch3.adb (Stream_Operation_OK): Return True for limited interfaces
4843         (other conditions permitting), so that abstract stream subprograms will
4844         be declared for them.
4846 2009-04-29  Bob Duff  <duff@adacore.com>
4848         * g-expect.adb (Expect_Internal): Fix check for overfull buffer.
4850         * g-expect.ads: Minor comment fixes.
4852 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
4854         * freeze.adb, lib-xref.adb (Check_Dispatching_Operation): if the
4855         dispatching operation is a body without previous spec, update the list
4856         of primitive operations to ensure that cross-reference information is
4857         up-to-date.
4859 2009-04-29  Albert Lee  <lee@adacore.com>
4861         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
4862         g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
4863         g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads
4864         (GNAT.Sockets.Thin.C_Readv,
4865         GNAT.Sockets.Thin.C_Writev): Remove unused subprograms.
4866         (GNAT.Sockets.Thin.C_Recvmsg,
4867         GNAT.Sockets.Thin.C_Sendmsg): New bindings to call recvmsg(2) and
4868         sendmsg(2).  
4869         (GNAT.Sockets.Receive_Vector, GNAT.Sockets.Send_Vector): Use
4870         C_Recvmsg/C_Sendmsg rather than Readv/C_Writev.
4872 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
4874         * sem_disp.adb (Check_Dispatching_Operation): if the dispatching
4875         operation is a body without previous spec, update the list of
4876         primitive operations to ensure that cross-reference information is
4877         up-to-date.
4879         * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): When creating a
4880         new compilation unit node for the instance declaration, keep the
4881         context items of the original unit on it, so that the context of the
4882         instance body only holds the context inherited from the generic body.
4884 2009-04-29  Bob Duff  <duff@adacore.com>
4886         * sem_res.adb: Minor comment fix.
4888 2009-04-29  Thomas Quinot  <quinot@adacore.com>
4890         * sem_elim.adb: Minor reformatting
4892 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
4894         * exp_aggr.adb (Convert_To_Positional): if the current unit is a
4895         predefined unit, allow arbitrary number of components in static
4896         aggregate, to ensure that the same level of constant folding applies
4897         for Ada 95 and Ada 05 versions of the file.
4899 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
4901         * sem_elim.adb (Check_Eliminated): Handle new improved eliminate
4902         information: no need for full scope check.
4903         (Eliminate_Error): Do not emit error in a generic context.
4905 2009-04-29  Ed Falis  <falis@adacore.com>
4907         * adaint.c (__gnat_rmdir): return error code if VTHREADS is defined.
4908         VxWorks 653 POS does not support rmdir.
4910 2009-04-29  Matteo Bordin  <bordin@adacore.com>
4912         * s-stausa.adb, s-stausa.ads: Get_Usage_Range: changing the way
4913         results are printed.
4915 2009-04-29  Arnaud Charlet  <charlet@adacore.com>
4917         * s-taskin.adb (Initialize): Remove pragma Warnings Off and remove
4918         unused assignment.
4920 2009-04-29  Thomas Quinot  <quinot@adacore.com>
4922         * make.adb: Minor reformatting.
4923         Minor code reorganization throughout.
4925 2009-04-29  Matteo Bordin  <bordin@adacore.com>
4927         * s-stausa.ads: Changed visibility of type Task_Result: moved to
4928         public part to give application visibility over it.
4929         This is for future improvement and to build a public API on top of it.
4930         Changed record components name of type Task_Result to reflect the new
4931         way of reporting. 
4933         * s-stausa.adb: Actual_Size_Str changed to reflect the new way of
4934         reporting Stack usage.
4936         * gnat_ugn.texi: Update doc of stack usage report.
4938         * g-tastus.ads, s-stusta.ads, s-stusta.adb: New files.
4940         * Makefile.rtl: Add new run-time files.
4942 2009-04-29  Pascal Obry  <obry@adacore.com>
4944         * initialize.c: Do not expand quoted arguments.
4946 2009-04-29  Emmanuel Briot  <briot@adacore.com>
4948         * prj-ext.adb, prj.adb, prj.ads: Fix memory leaks.
4950         * clean.adb (Ultimate_Extension_Of): removed, since duplicate of
4951          Prj.Ultimate_Extending_Project_Of
4953 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
4955         * exp_ch7.adb (Build_Final_List): If the designated type is a Taft
4956         Amendment type, add the with_clause for Finalization.List_Controller
4957         only if the current context is a package body.
4959 2009-04-29  Thomas Quinot  <quinot@adacore.com>
4961         * sem_ch12.adb: Minor reformatting
4963         * sem_aggr.adb: Minor reformatting
4965         * sem_ch6.adb, sem_cat.ads: Minor reformatting
4967         * sem_ch10.adb, gnat1drv.adb, prj-nmsc.adb: Minor reformatting
4969 2009-04-29  Quentin Ochem  <ochem@adacore.com>
4971         * prj.ads (Source_Id): Now general pointer type.
4973 2009-04-29  Thomas Quinot  <quinot@adacore.com>
4975         * exp_ch7.adb, rtsfind.adb: Minor reformatting
4977         * sem_res.adb: Minor reformatting
4979 2009-04-29  Thomas Quinot  <quinot@adacore.com>
4981         * sem_res.adb (Static_Concatenation): An N_Op_Concat with static
4982         operands is static only if it is a predefined concatenation operator.
4984         * sem_util.adb: Minor reformatting
4986         * sem_ch12.adb (Save_References): When propagating semantic information
4987         from generic copy back to generic template, for the case of an
4988         identifier that has been rewritten to an explicit dereference whose
4989         prefix is either an object name or a parameterless funcion call
4990         denoting a global object or function, properly capture the denoted
4991         global entity: perform the corresponding rewriting in the template,
4992         and point the rewritten identifier to the correct global entity (not
4993         to the associated identifier in the generic copy).
4995 2009-04-29  Robert Dewar  <dewar@adacore.com>
4997         * rtsfind.adb, prj-env.adb: Minor reformatting
4998         Minor code reorganization
5000 2009-04-29  Emmanuel Briot  <briot@adacore.com>
5002         * make.adb: Fix comment
5004         * prj.adb (Ultimate_Extending_Project_Of): Fix handling when no project
5005         is given as argument, as might happen in gnatmake.
5007 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
5009         * sem_ch3.adb (Check_Abstract_Overriding): Improve error message when
5010         an abstract operation of a progenitor is not properly overridden by an
5011         operation of a derived synchronized type.
5013 2009-04-29  Robert Dewar  <dewar@adacore.com>
5015         * mlib-prj.adb, mlib-tgt.adb, mlib-tgt.ads, prj-nmsc.adb,
5016         prj-proc.adb: Minor reformatting
5017         Minor code reorganization
5019 2009-04-29  Bob Duff  <duff@adacore.com>
5021         * exp_ch7.adb (Build_Final_List): For an access type that designates a
5022         Taft Amendment type, if the access type needs finalization, make sure
5023         the implicit with clause for List_Controller occurs on the package spec.
5025         * rtsfind.adb (Text_IO_Kludge): Fine tune the creation of implicit
5026         with's created for the pseudo-children of Text_IO and friends. In
5027         particular, avoid cycles, such as Ada.Wide_Text_IO.Integer_IO and
5028         Ada.Text_IO.Integer_IO both with-ing each other.
5030         * sem.adb (Walk_Library_Items): Suppress assertion failure in certain
5031         oddball cases when pragma Extend_System is used.
5033         * sem_ch12.adb (Get_Associated_Node): Prevent direct 'with' cycles in
5034         the case where a package spec instantiates a generic whose body with's
5035         this package, so Walk_Library_Items won't complain about cyclic with's.
5037 2009-04-29  Emmanuel Briot  <briot@adacore.com>
5039         * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads,
5040         prj-pp.adb, prj-pp.ads, makeutl.adb, clean.adb, prj-nmsc.adb,
5041         mlib-tgt.adb, mlib-tgt.ads, prj-util.adb, prj-env.adb, prj-env.ads
5042         (Project_Id): now a real pointer to Project_Data, instead of an index
5043         into the Projects_Table. This simplifies the API significantly, avoiding
5044         extra lookups in this table and the need to pass the Project_Tree_Ref
5045         parameter in several cases
5047 2009-04-29  Nicolas Setton  <setton@adacore.com>
5049         * gcc-interface/Makefile.in: Produce .dSYM files for shared libs on
5050         darwin.
5052 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
5054         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Put
5055         back kludge.
5057 2009-04-24  Robert Dewar  <dewar@adacore.com>
5059         * mlib-prj.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, make.adb,
5060         clean.adb: Minor reformatting.
5061         Minor code reorganization and message improvement.
5063 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5065         * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-nmsc.ads
5066         (Alternate_Languages): now implemented as a malloc-ed list rather
5067         than through a table.
5069 2009-04-24  Thomas Quinot  <quinot@adacore.com>
5071         * sem_res.adb (Static_Concatenation): Simplify predicate to make it
5072         accurately handle cases such as "lit" & "lit" and
5073         "lit" & static_string_constant
5075 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5077         * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
5078         prj-nmsc.adb, prj-env.adb (Project_List_Table, Project_Element):
5079         removed. Lists of projects are now implemented via standard malloc
5080         rather than through the table.
5082 2009-04-24  Thomas Quinot  <quinot@adacore.com>
5084         * sem_ch12.adb: Minor reformatting
5086         * g-trasym.adb: Minor reformatting
5088         * exp_ch6.adb: Minor reformatting
5090 2009-04-24  Robert Dewar  <dewar@adacore.com>
5092         * layout.adb (Layout_Type): For packed array type, copy unset
5093         size/alignment fields from the referenced Packed_Array_Type.
5095 2009-04-24  Bob Duff  <duff@adacore.com>
5097         * lib-load.adb (Make_Instance_Unit): Revert previous change, no
5098         longer needed after sem_ch12 changes.
5100         * sem.adb (Walk_Library_Items): Include with's in some debugging
5101         printouts.
5103 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5105         * prj.ads, prj-nmsc.adb (Unit_Project): removed, since in fact we were
5106         only ever using the Project field.
5108 2009-04-24  Ed Schonberg  <schonberg@adacore.com>
5110         * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Do not set
5111         Body_Required on the generated compilation node. The new node is linked
5112         to its body, but both share the same file, so we do not set this flag
5113         on the new unit so as not to create a spurious dependency on a
5114         non-existent body in the ali file for the instance.
5116 2009-04-24  Robert Dewar  <dewar@adacore.com>
5118         * make.adb: Minor reformatting
5120 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5122         * prj.adb, prj.ads, prj-nmsc.adb (Check_File, Record_Ada_Source,
5123         Add_Source): merge some code between those. In particular change where
5124         file normalization is done to avoid a few extra calls to
5125         Canonicalize_File_Name. This also removes the need for passing
5126         Current_Dir in a number of subprograms.
5128 2009-04-24  Bob Duff  <duff@adacore.com>
5130         * lib-load.adb (Make_Instance_Unit): In the case where In_Main is
5131         False, assign the correct unit to the Cunit field of the new table
5132         entry. We want the spec unit, not the body unit.
5134         * rtsfind.adb (Make_Unit_Name, Maybe_Add_With): Simplify calling
5135         interface for these.
5136         (Maybe_Add_With): Check whether we're trying to a with on the current
5137         unit, and avoid creating such directly self-referential with clauses.
5138         (Text_IO_Kludge): Add implicit with's for the generic pseudo-children of
5139         [[Wide_]Wide_]Text_IO. These are needed for Walk_Library_Items,
5140         and matches existing comments in the spec.
5142         * sem.adb (Walk_Library_Items): Add various special cases to make the
5143         assertions pass.
5145         * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Use Body_Cunit
5146         instead of Parent (N), for uniformity.
5148 2009-04-24  Robert Dewar  <dewar@adacore.com>
5150         * errout.ads: Minor reformatting
5152 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5154         * gnat_ugn.texi (Library Projects): add documentation on gnatmake's
5155         behavior when the project includes sources from multiple languages
5157 2009-04-24  Vincent Celier  <celier@adacore.com>
5159         * prj.adb (Has_Foreign_Sources): Returns True in Ada_Only mode if there
5160         is a language other than Ada declared.
5162         * makeutl.adb (Linker_Options_Switches): Call For_All_Projects with
5163         Imported_First set to True.
5165 2009-04-24  Ed Schonberg  <schonberg@adacore.com>
5167         * sem_res.adb: additional optimization to inhibit creation of
5168         redundant transient scopes.
5170 2009-04-24  Bob Duff  <duff@adacore.com>
5172         * rtsfind.ads: Minor comment fix
5174 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5176         * prj-proc.adb, prj-nmsc.adb (Find_Ada_Sources,
5177         Get_Path_Name_And_Record_Ada_Sources): merged, since these were
5178         basically doing the same work (for explicit or implicit sources).
5179         (Find_Explicit_Sources): renamed to Find_Sources to better reflect its
5180         role. Rewritten to share some code (testing that all explicit sources
5181         have been found) between ada_only and multi_language modes.
5183 2009-04-24  Jerome Lambourg  <lambourg@adacore.com>
5185         * sem_prag.adb (Check_Form_Of_Interface_Name): Allow space in Ext_Name
5186         for CLI imported types.
5187         (Analyze_Pragma): Allow CIL or Java imported functions returning
5188         access-to-subprogram types.
5190 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5192         * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads:
5193         (Project_Data.Dir_Path): field removed, since it can be computed
5194         directly from .Directory, and is needed only once when processing the
5195         project is buildgpr.adb or make.adb
5197 2009-04-24  Robert Dewar  <dewar@adacore.com>
5199         * prj-env.adb, prj-proc.adb, prj.adb, prj.ads,
5200         rtsfind.adb: Minor reformatting.
5201         Minor code reorganization
5203 2009-04-24  Arnaud Charlet  <charlet@adacore.com>
5205         * mlib-prj.adb: Use friendlier english identifier.
5207         * gnatcmd.adb, make.adb: Use better english identifiers.
5209 2009-04-24  Robert Dewar  <dewar@adacore.com>
5211         * clean.adb: Minor reformatting
5213 2009-04-24  Robert Dewar  <dewar@adacore.com>
5215         * einfo.adb (OK_To_Rename): New flag
5217         * einfo.ads (OK_To_Rename): New flag
5219         * exp_ch3.adb (Expand_N_Object_Declaration): Rewrite as renames if
5220         OK_To_Rename set.
5222         * exp_ch4.adb (Expand_Concatenate): Mark temp variable OK_To_Rename
5224         * sem_ch7.adb (Uninstall_Declarations): Allow for renames from
5225         OK_To_Rename.
5227 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5229         * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, makeutl.adb,
5230         clean.adb, prj-nmsc.adb, prj-env.adb, prj-env.ads (Project_Data.Seen):
5231         field removed. This is not a property of the
5232         project, just a boolean used to traverse the project tree, and storing
5233         it in the structure prevents doing multiple traversal in parallel.
5234         (Project_Data.Checked): also removed, since it was playing the same role
5235         as Seen when we had two nested loops, and this is no longer necessary
5236         (For_All_Imported_Projects): removed, since in fact there was already
5237         the equivalent in For_Every_Project_Imported. The latter was rewritten
5238         to use a local hash table instead of Project_Data.Seen
5239         Various loops were rewritten to use For_Every_Project_Imported, thus
5240         removing the need for Project_Data.Seen. This avoids a lot of code
5241         duplication
5243 2009-04-24  Ed Schonberg  <schonberg@adacore.com>
5245         * sem_res.adb (Resolve_Actuals): Do not create blocks around code
5246         statements, even though the actual of the call is a concatenation,
5247         because the argument is static, and we want to preserve warning
5248         messages  about sequences of code statements that are not marked
5249         volatile.
5251         * sem_warn.adb: remove obsolete comment about warning being obsolete
5253         * s-tasren.adb (Task_Do_Or_Queue): If a timed entry call is being
5254         requeued and the delay has expired while within the accept statement
5255         that executes the requeue, do not perform the requeue and indicate that
5256         the timed call has been aborted.
5258 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5260         * mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
5261         (Has_Ada_Sources, Has_Foreign_Sources): new subprograms
5262         (Project_Data.Ada_Sources_Present, Foreign_Sources_Present): removed,
5263         since they can be computed from the above.
5265 2009-04-24  Vincent Celier  <celier@adacore.com>
5267         * gnatcmd.adb: Call Prj.Env.Initialize with the Project_Tree
5269         * prj-env.adb: Move all global variables to the private part of the
5270         project tree data.
5271         Access these new components instead of the global variables no longer
5272         in existence.
5273         (Add_To_Path): New Project_Tree_Ref parameter, to access the new
5274         components that were previously global variables.
5276         * prj-env.ads (Initialize): New Project_Tree_Ref parameter
5277         (Set_Mapping_File_Initial_State_To_Empty): New Project_Tree_Ref
5278         parameter.
5280         * prj-nmsc.adb (Compute_Unit_Name): New Project_Tree_Ref parameter to
5281         be able to call Set_Mapping_File_Initial_State_To_Empty with it.
5283         * prj.adb (Initialize): Do not call Prj.Env.Initialize
5284         (Reset): Do not call Prj.Env.Initialize. Instead, initialize the new
5285         components in the private part of the project tree data.
5287         * prj.ads (Private_Project_Tree_Data): new components moved from
5288         Prj.Env: Current_Source_Path_File, Current_Object_Path_File,
5289         Ada_Path_Buffer, Ada_Path_Length, Ada_Prj_Include_File_Set,
5290         Ada_Prj_Objects_File_Set, Fill_Mapping_File.
5292 2009-04-24  Vincent Celier  <celier@adacore.com>
5294         * opt.ads (Unchecked_Shared_Lib_Imports): New Boolean flag.
5296         * prj-nmsc.adb (Check_Library): No error for imports by shared library
5297         projects, when --unchecked-shared-lib-imports is used.
5299 2009-04-24  Robert Dewar  <dewar@adacore.com>
5301         * sem_ch7.adb: Minor reformatting
5303 2009-04-24  Tristan Gingold  <gingold@adacore.com>
5305         * s-osinte-darwin.adb, s-osinte-darwin.ads: lwp_self now returns the
5306         mach thread id.
5308 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5310         * prj-env.adb, prj-env.ads (Body_Path_Name_Of, Spec_Path_Name_Of,
5311         Path_Name_Of_Library_Unit_Body): rEmove unused subprograms.
5312         (For_All_Imported_Projects): new procedure
5313         (For_All_Source_Dirs, For_All_Object_Dirs): Rewritten based on the
5314         above rather than duplicating code.
5316 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5318         * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
5319         (Source_Id, Source_Data): use a real list to store sources rather than
5320         using an external table to store the elements. This makes code more
5321         efficient and more readable.
5323 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5325         * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
5326         (Source_Iterator): new type.
5327         This removes the need for having the sources on three different
5328         lists at the project tree, project and language level. They are now
5329         on a single list.
5331 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5333         * gnatcmd.adb, prj.adb, prj.ads: Remove unused entities
5335 2009-04-24  Ed Schonberg  <schonberg@adacore.com>
5337         * sem_warn.adb: Add comment on obsolete warning
5339 2009-04-24  Arnaud Charlet  <charlet@adacore.com>
5341         * s-tassta.adb (Create_Task): Fix violation of locking rule.
5343 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5345         * prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb (Language_Index): renamed
5346         to Language_Ptr to better reflect its new implementation.
5347         (Project_Data.First_Languages_Processing): renamed to Languages now
5348         that the field with that name is no longer used
5349         (Project_Data.Languages): removed, no longer used, and duplicates
5350         information already available through First_Language_Processing.
5351         (Prj.Language_Index): now an actual pointer, instead of an index into
5352         a table. This makes the list somewhat more obvious, but more importantly
5353         removes the need to pass a pointer to the project_tree_data in a few
5354         places, and makes accessing the attributes of a languages more
5355         efficient.
5357 2009-04-24  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5358             Thomas Quinot  <quinot@adacore.com>
5360         * fe.h (Set_Identifier_Casing): Add const to second parameter.
5361         * gcc-interface/misc.c (internal_error_function): Make copy of return
5362         from pp_formatted_text before assigning BUFFER to it.
5363         (gnat_init): Likewise for main_input_filename and gnat_argv.
5364         (gnat_printable_name): Remove cast from call to Set_Identifier_Casing.
5366 2009-04-24  Eric Botcazou  <ebotcazou@adacore.com>
5368         * ttypes.ads (Target_Double_Float_Alignment): New variable.
5369         (Target_Double_Scalar_Alignment): Likewise.
5370         * get_targ.ads (Get_Strict_Alignment): Adjust external name.
5371         (Get_Double_Float_Alignment): New imported function.
5372         (Get_Double_Scalar_Alignment): Likewise.
5373         * layout.adb (Set_Elem_Alignment): Take into account specific caps for
5374         the alignment of "double" floating-point types and "double" or larger
5375         scalar types, as parameterized by Target_Double_Float_Alignment and
5376         Target_Double_Scalar_Alignment respectively.
5377         * gcc-interface/gigi.h (double_float_alignment): Declare.
5378         (double_scalar_alignment): Likewise.
5379         (is_double_float_or_array): Likewise.
5380         (is_double_scalar_or_array): Likewise.
5381         (get_target_double_float_alignment): Likewise.
5382         (get_target_double_scalar_alignment): Likewise.
5383         * gcc-interface/targtyps.c (get_strict_alignment): Rename into...
5384         (get_target_strict_alignment): ...this.
5385         (get_target_double_float_alignment): New function.
5386         (get_target_double_scalar_alignment): Likewise.
5387         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
5388         Test the presence of an alignment clause for under-aligned integer
5389         types.  Take into account specific caps for the alignment of "double"
5390         floating-point types and "double" or larger scalar types, as
5391         parameterized by Target_Double_Float_Alignment and
5392         Target_Double_Scalar_Alignment respectively.
5393         (validate_alignment): Likewise.
5394         * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Alignment>: Likewise.
5395         (gigi): Initialize double_float_alignment and double_scalar_alignment.
5396         * gcc-interface/utils.c (double_float_alignment): New global variable.
5397         (double_scalar_alignment): Likewise.
5398         (is_double_float_or_array): New predicate.
5399         (is_double_scalar_or_array): Likewise.
5401 2009-04-24  Eric Botcazou  <ebotcazou@adacore.com>
5403         * gcc-interface/utils2.c (build_cond_expr): Move SAVE_EXPR ahead of
5404         the conditional expression only if it is common to both arms.
5406 2009-04-24  Eric Botcazou  <ebotcazou@adacore.com>
5408         * gcc-interface/gigi.h (build_call_alloc_dealloc): Update comment.
5409         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Pass correct
5410         arguments to build_allocator.
5411         * gcc-interface/utils2.c (build_call_alloc_dealloc): Update comment.
5412         Remove code handling special allocator and assert its uselessness.
5414 2009-04-24  Eric Botcazou  <ebotcazou@adacore.com>
5416         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If an
5417         alignment is specified, do not promote that of the component type
5418         beyond it.
5419         <E_Array_Subtype>: Likewise.
5421 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
5423         * einfo.ads (Is_True_Constant): Lift restriction on atomic objects.
5424         * sinfo.ads (Object Declaration): Likewise.
5425         (Assignment Statement): Likewise.
5426         * freeze.adb (Expand_Atomic_Aggregate): Remove useless test.
5427         Do not force Is_True_Constant to false on the temporary.
5428         (Freeze_Entity): Do not force Is_True_Constant to false on names on
5429         the RHS of object declarations.
5430         * gcc-interface/trans.c (lvalue_required_p) <N_Object_Declaration>:
5431         New case.  Return 1 if the object is atomic.
5432         <N_Assignment_Statement>: Likewise.
5434 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
5436         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
5437         For packed array types, make the original array type a parallel type
5438         for the modular type and its JM wrapper if the type is bit-packed.
5439         <E_Array_Subtype>: Likewise.  Do not generate the special XA parallel
5440         record type for packed array types.  Remove kludge.
5442 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
5444         * gcc-interface/gigi.h (create_index_type): Adjust head comment.
5445         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
5446         Use front-end predicates to compute signedness and precision.
5447         <E_String_Literal_Subtype>: Fold range type.
5448         Make sure to set longest_float_type_node to a scalar type.
5449         (elaborate_entity): Use consistent Constraint_Error spelling.
5450         (substitute_in_type) <INTEGER_TYPE>: Always copy the type.
5451         * gcc-interface/misc.c (gnat_print_type) <INTEGER_TYPE>: Use brief
5452         output for the modulus, if any.
5453         <ENUMERAL_TYPE>: Likewise for the RM size.
5454         * gcc-interface/trans.c (gnat_to_gnu): Use consistent Constraint_Error
5455         spelling.
5456         * gcc-interface/utils.c (finish_record_type): Really test the alignment
5457         of BLKmode bit-fields to compute their addressability.
5458         (create_index_type): Adjust comments.
5459         (create_param_decl): Create the biased subtype manually.
5460         * gcc-interface/utils2.c (build_component_ref): Use consistent
5461         Constraint_Error spelling.
5463 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
5465         * gcc-interface/cuintp.c: Clean up include directives.
5466         * gcc-interface/targtyps.c: Likewise.
5467         * gcc-interface/decl.c: Likewise.
5468         * gcc-interface/misc.c: Likewise.
5469         * gcc-interface/trans.c: Likewise.
5470         * gcc-interface/utils.c: Likewise.
5471         * gcc-interface/utils2.c: Likewise.
5472         * gcc-interface/Make-lang.in: Adjust dependencies accordingly.
5474 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
5476         * gcc-interface/ada-tree.h (union lang_tree_node): Use standard idiom.
5477         (SET_TYPE_LANG_SPECIFIC): Likewise.  Fix formatting.
5478         (SET_DECL_LANG_SPECIFIC): Likewise.
5479         Reorder macros.
5480         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
5481         Update comment about use of build_range_type.
5482         <E_Array_Type, E_Array_Subtype>: Use consistent naming convention.
5483         <E_Array_Subtype>: Rework comments about TYPE_ACTUAL_BOUNDS and add
5484         check for other cases of overloading.
5485         * gcc-interface/trans.c (gigi): Use size_int in lieu of build_int_cst.
5486         * gcc-interface/utils2.c (build_call_raise): Fix off-by-one error.
5487         Use size_int in lieu of build_int_cst.
5488         (build_call_alloc_dealloc): Use build_index_2_type in lieu of
5489         build_range_type.
5491 2009-04-22  Eric Botcazou  <ebotcazou@adacore.com>
5493         * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR>: If operation's
5494         type is an enumeral or a boolean type, change it to an integer type
5495         with the same mode and signedness.
5497 2009-04-22  Eric Botcazou  <ebotcazou@adacore.com>
5499         * gcc-interface/utils.c (create_var_decl_1): Do not emit debug info
5500         for an external constant whose initializer is not absolute.
5502 2009-04-22  Taras Glek  <tglek@mozilla.com>
5504         * gcc-interface/ada-tree.h: Update GTY annotations to new syntax.
5505         * gcc-interface/trans.c: Likewise.
5506         * gcc-interface/utils.c: Likewise.
5508 2009-04-22  Ed Schonberg  <schonberg@adacore.com>
5510         * sem_res.adb: Create block around procedure call when actual is a
5511         concatenation.
5513 2009-04-22  Thomas Quinot  <quinot@adacore.com>
5515         * s-soflin.ads: Fix typos
5517 2009-04-22  Vincent Celier  <celier@adacore.com>
5519         * prj-env.adb: Minor comment change
5521         * prj-nmsc.adb (Check_Common): Add guard to avoid calling
5522         Get_Name_String with No_File.
5524         * tempdir.adb (Create_Temp_File): Output diagnostic when temp file
5525         cannot be created even when not in verbose mode.
5527 2009-04-22  Emmanuel Briot  <briot@adacore.com>
5529         * make.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj.adb,
5530         prj.ads (Create_Mapping_File): merge the two versions for Ada_Only and
5531         Multi_Language modes, to avoid code duplication.
5532         (Project_Data.Include_Language): Removed.
5534 2009-04-22  Vincent Celier  <celier@adacore.com>
5536         * tempdir.adb (Create_Temp_File): Add a diagnostic in verbose mode when
5537         the temporary file cannot be created, indicating the directory when the
5538         creation was attempted.
5540 2009-04-22  Emmanuel Briot  <briot@adacore.com>
5542         * prj-env.adb, prj-env.ads (Create_Mapping_File): we need to compare
5543         the language names, not their indices.
5545 2009-04-22  Emmanuel Briot  <briot@adacore.com>
5547         * prj.ads, prj-nmsc.adb, prj-env.adb, prj-env.ads
5548         (Source_Data.Language_Name): Field removed.
5550 2009-04-22  Emmanuel Briot  <briot@adacore.com>
5552         * prj.adb, prj.ads, prj-nmsc.adb (Project_Data.Unit_Based_Language_*):
5553         Two fields removed.
5555 2009-04-22  Emmanuel Briot  <briot@adacore.com>
5557         * prj-nmsc.adb (Check_Naming_Ada_Only): Properly initialize the
5558         separate_suffix to the same value as the body_suffix.
5560 2009-04-22  Robert Dewar  <dewar@adacore.com>
5562         * prj.adb: Minor code reorganization
5563         Code clean up.
5565         * prj-proc.adb: Minor code reorganization, clean up.
5567         * prj-nmsc.adb: Minor reformatting
5568         Minor code reorganization
5570         * gnat_ugn.texi: Add to doc on strict aliasing
5572 2009-04-22  Pascal Obry  <obry@adacore.com>
5574         * s-osinte-mingw.ads: Rename Reserved field in CRITICAL_SECTION to
5575         SpinCount.
5577         * s-tasini.adb: Minor reformatting.
5579         * s-tassta.adb: Minor reformatting.
5581 2009-04-22  Emmanuel Briot  <briot@adacore.com>
5583         * prj-proc.adb, prj-nmsc.adb (Check_Naming_Schemes): split into several
5584         smaller subprograms.
5585         Renamed to Check_File_Naming_Schemes to avoid confusion with the
5586         other Check_Naming_Schemes functions that plays a totally different
5587         role.
5588         (Check_Unit_Based_Lang, Check_File_Based_Lang): new subprograms,
5589         extracted from the above. These were partially rewritten to avoid
5590         unnecessary code and temporary variables.
5591         (Compute_Unit_Name): new subprogram, merge of Check_Unit_Based_Lang
5592         and Get_Unit (which for now still exist since they contain mode-specific
5593         code)
5595 2009-04-22  Emmanuel Briot  <briot@adacore.com>
5597         * prj.ads, prj.adb, prj-nmsc.adb, prj-proc.adb (Recursive_Process):
5598         Remove duplicated code.
5599         (Canonical_Case_File_Name): new subprogram
5600         (Check_And_Normalize_Unit_Names): new subprogram
5601         (Write_Attr): new subprogram
5602         Better sharing of code
5603         (Check_Naming_Ada_Only, Check_Naming_Multi_Lang): new subprogram, to
5604         split Check_Naming and help find duplicated code
5605         (Check_Common): new subprogram, sharing code between ada_only and
5606         multi_language mode.
5607         (Naming_Data.Dot_Repl_Loc): field removed
5609 2009-04-22  Emmanuel Briot  <briot@adacore.com>
5611         * prj-proc.adb, prj-nmsc.adb (Load_Naming_Exceptions): New subprogram.
5612         Minor refactoring to reduce the size of
5613         Process_Sources_In_Multi_Language_Mode.
5614         Avoid extra copied of Source_Data, which we found in the past could be
5615         quite slow.
5616         (Mark_Excluded_Sources): new subprogram.
5617         (Remove_Locally_Removed_Files_From_Units): merged into the above
5618         Refactors Process_Sources_In_Multi_Language_Mode to reduce its size,
5619         and allow better sharing of code between multi_lang and ada_only modes
5620         (Project_Extends): removed, since exact duplicate of Prj.Is_Extending
5622 2009-04-22  Emmanuel Briot  <briot@adacore.com>
5624         * prj-proc.adb, prj.adb, prj.ads (Project_Data.First_Referred_By):
5625         Removed, since unused.
5627 2009-04-22  Vincent Celier  <celier@adacore.com>
5629         * prj-attr.adb: New single project level attribute
5630         Separate_Run_Path_Options.
5632         * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
5633         attribute Seperate_Run_Path_Options.
5635         * prj.ads: (Project_Configuration): New Boolean component
5636         Separate_Run_Path_Options, defaulted to False.
5638         * snames.ads-tmpl: New standard name Seperate_Run_Path_Options
5640 2009-04-22  Robert Dewar  <dewar@adacore.com>
5642         * sem_type.adb: Minor reformatting
5644         * mlib.adb: Minor reformatting
5646         * sem_aggr.adb: Minor reformatting. Defend against junk aggregate from
5647         syntax error.
5649 2009-04-22  Nicolas Setton  <setton@adacore.com>
5651         * link.c: Add flag __gnat_separate_run_path_options.
5653         * mlib.adb (Separate_Run_Path_Options): New subprogram.
5655         * mlib.ads (Separate_Run_Path_Options): Declare.
5657         * gnatcmd.adb (Process_Link): Add support for emitting one "rpath"
5658         switch per directory, rather than one "rpath" switch listing all
5659         directories.
5661         * gnatlink.adb (Process_Binder_File): Likewise.
5663         * make.adb (Gnatmake): Likewise.
5665 2009-04-22  Hristian Kirtchev  <kirtchev@adacore.com>
5667         * exp_ch6.adb (Make_Build_In_Place_Call_In_Assignment): Code cleanup.
5668         Add a call to Move_Final_List when the target of the assignment is a
5669         return object that needs finalization and the expression is a
5670         controlled build-in-place function.
5672 2009-04-22  Vincent Celier  <celier@adacore.com>
5674         * make.adb (Gnatmake, Bind_Step): call Set_Ada_Paths with
5675         Including_Libraries set to True.
5677 2009-04-22  Ed Schonberg  <schonberg@adacore.com>
5679         * lib-load.ads, lib-load.adb (Make_Child_Decl_Unit): New subprogram, to
5680         create a unit table entry for the subprogram declaration created for a
5681         child suprogram body that has no separate specification.
5683         * sem_ch10.adb (Analyze_Compilation_Unit): For a child unit that is a
5684         subprogram body, call Make_Child_Decl_Unit.
5686         * lib.adb (Get_Cunit_Unit_Number): Verify that an entry not yet in the
5687         table can only be the created specification of a child subprogram body
5688         that is the main unit, which has not been entered in the table yet.
5690         * errout.adb  (Output_Messages): Ignore created specification of a
5691         child subprogram body to prevent repeated listing of error messages.
5693         * gnat1drv.adb (gnat1drv): The generated specification for a child
5694         subprogram body does not generate code.
5696 2009-04-22  Arnaud Charlet  <charlet@adacore.com>
5698         * s-bitops.adb, s-bitops.ads (Raise_Error): Do not use Ada 05 syntax,
5699         since this unit is now part of bootstrap units, so must use Ada 95
5700         syntax only.
5702 2009-04-22  Thomas Quinot  <quinot@adacore.com>
5704         * a-tasatt.adb: Minor reformatting
5706 2009-04-22  Bob Duff  <duff@adacore.com>
5708         * s-stalib.ads: Remove "with System;" since we're inside System, so
5709         it's unnecessary.
5711 2009-04-22  Vincent Celier  <celier@adacore.com>
5713         * prj-nmsc.adb (Add_Source): Always put the dependency file name in
5714         the source record, as there may be a dependency file even if no object
5715         file is created.
5717 2009-04-22  Robert Dewar  <dewar@adacore.com>
5719         * lib-load.adb: Minor reformatting
5721         * lib-load.ads: Minor reformatting
5723         * sinfo.ads: Minor reformatting
5725 2009-04-22  Bob Duff  <duff@adacore.com>
5727         * exp_pakd.adb: Minor comment fixes.
5729         * sinfo.ads, par-load.adb, sem_ch10.adb, lib-load.ads, lib-load.adb
5730         sem_ch12.adb: Change the meaning of the Library_Unit attribute to
5731         include units containing instantiations, as well as units that are
5732         generic instantiations.
5734         * sem.adb: Include dependents and corresponding specs/bodies in the
5735         unit walk.
5737         * gcc-interface/Make-lang.in:
5738         sem now depends on s-bitops, because of the packed array of Booleans.
5740 2009-04-22  Eric Botcazou  <ebotcazou@adacore.com>
5742         * gcc-interface/ada-tree.def: Fix formatting nits.
5743         (REGION_STMT): Delete.
5744         (HANDLER_STMT): Likewise.
5745         * gcc-interface/ada-tree.h: Fix formatting nits.
5746         (IS_STMT): Delete.
5747         (REGION_STMT_BODY): Likewise.
5748         (REGION_STMT_HANDLE): Likewise.
5749         (REGION_STMT_BLOCK): Likewise.
5750         (HANDLER_STMT_ARG): Likewise.
5751         (HANDLER_STMT_LIST): Likewise.
5752         (HANDLER_STMT_BLOCK): Likewise.
5753         * gcc-interface/gigi.h (fp_prec_to_size): Update comment.
5754         (fp_size_to_prec): Likewise.
5755         (largest_move_alignment): Delete.
5756         (gnat_compute_largest_alignment): Likewise.
5757         Fix minor nits.
5758         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
5759         Remove redundant code.
5760         <E_Array_Type>: Remove redundant assert.
5761         <E_Array_Subtype>: Exit early from index computation in pathological
5762         cases.
5763         Rewrite conditional assignment.
5764         (make_type_from_size): Likewise.
5765         * gcc-interface/misc.c (largest_move_alignment): Delete.
5766         (gnat_finish_incomplete_decl): Likewise.
5767         (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Likewise.
5768         (asm_out_file): Likewise
5769         (gnat_print_type) <INTEGER_TYPE>: Fall through to ENUMERAL_TYPE case.
5770         (gnat_dwarf_name): Move around.
5771         * gcc-interface/trans.c (Attribute_to_gnu): Fix minor nits.
5772         (gigi): Remove call to gnat_compute_largest_alignment.
5773         * utils.c (create_field_decl): Rewrite conditional assignment.
5774         Fix minor nits.
5776 2009-04-22  Eric Botcazou  <ebotcazou@adacore.com>
5778         * gcc-interface/decl.c (gnat_to_gnu_entity): Compute is_type predicate
5779         on entry.  Defer common processing for types.  Reorder and clean up.
5780         Compute the equivalent GNAT node and the default size for types only.
5781         <E_Modular_Integer_Type>: Directly use Esize for the type's precision.
5782         <E_Access_Type>: For an unconstrained designated type, do not pretend
5783         that a dummy type is always made.
5784         <all> Fix nits in comments.
5785         (validate_size): Fix formatting nits and comments.
5786         (set_rm_size): Likewise.
5787         * gcc-interface/utils.c (create_param_decl): Replace bogus argument
5788         passed to TARGET_PROMOTE_PROTOTYPES hook.
5790 2009-04-22  Eric Botcazou  <ebotcazou@adacore.com>
5792         * fe.h (Get_External_Name): Declare.
5793         * gcc-interface/gigi.h (concat_id_with_name): Rename to...
5794         (concat_name): ...this.
5795         * gcc-interface/decl.c (gnat_to_gnu_entity): Rename gnu_entity_id to
5796         gnu_entity_name and adjust for above renaming.
5797         <E_Access_Type>: Use create_concat_name to get the name of the various
5798         types associated with unconstrained array types.
5799         (make_aligning_type): Adjust for above renaming.
5800         (maybe_pad_type): Likewise.
5801         (components_to_record): Likewise.  Use get_identifier_with_length for
5802         the encoding of the variant.
5803         (get_entity_name): Use get_identifier_with_length.
5804         (create_concat_name): Likewise.  Use Get_External_Name if no suffix.
5805         Do not fiddle with Name_Buffer.
5806         (concat_id_with_name): Rename to...
5807         (concat_name): ...this.  Use get_identifier_with_length.  Do not fiddle
5808         with Name_Buffer.
5809         * gcc-interface/utils.c (rest_of_record_type_compilation): Adjust for
5810         above renaming.
5812 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
5814         * ChangeLog, ChangeLog.ptr, ChangeLog.tree-ssa: Add copyright and
5815         license notices.
5817 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
5819         * gcc-interface/trans.c (gnat_to_gnu): Do not overwrite location info.
5821 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
5823         * gcc-interface/ada-tree.h (TYPE_RM_SIZE_NUM): Delete.
5824         (TYPE_RM_SIZE): Access TYPE_LANG_SLOT_1 directly for integral types.
5825         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>:
5826         Remove useless support code for packed array types and assert its
5827         uselessness.
5828         <E_Signed_Integer_Subtype>: Reuse entity identifier in more places and
5829         adjust for TYPE_RM_SIZE change.
5830         <all> Fix nits in comments.  Use Original_Array_Type accessor instead
5831         of Associated_Node_For_Itype accessor for packed array types.
5832         (make_packable_type): Likewise.
5833         (maybe_pad_type): Likewise.
5834         (set_rm_size): Likewise.  Rework conditional statement.  Adjust for
5835         TYPE_RM_SIZE change.
5836         (make_type_from_size): Adjust for TYPE_RM_SIZE change.
5837         (rm_size): Fix nits in comments.  Rework conditional statements.
5838         * gcc-interface/misc.c (gnat_print_type): Adjust for TYPE_RM_SIZE
5839         change.
5840         * gcc-interface/trans.c (Attribute_to_gnu): Fix nits in comments.
5841         * gcc-interface/utils.c (gnat_init_decl_processing): Use more
5842         appropriate function to initialize the size_type_node.  Adjust for
5843         TYPE_RM_SIZE change.
5845 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
5847         * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set force_global
5848         for imported subprograms.
5850 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
5852         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not make
5853         constant objects covered by 13.3(19) volatile.
5855 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
5857         * gcc-interface/utils.c (create_type_decl): Do not pass declarations
5858         of dummy fat pointer types to the debug back-end.
5860 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
5862         * gcc-interface/decl.c (gnat_to_gnu_entity): Rewrite Esize calculation.
5863         <E_Signed_Integer_Subtype>: Set the RM size on the integer type
5864         before wrapping it up in the record type.  Do not overwrite the
5865         Ada size of the record type with the Esize.
5867 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
5869         * gcc-interface/trans.c (unchecked_conversion_lhs_nop): New predicate.
5870         (gnat_to_gnu) <N_Unchecked_Type_Conversion>: Return the expression
5871         if the conversion is on the LHS of an assignment and a no-op.
5872         <all> Do not convert the result to the result type if the Parent
5873         node is such a conversion.
5875 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
5877         * gcc-interface/ada-tree.h (DECL_HAS_REP_P): Delete.
5878         * gcc-interface/decl.c (gnat_to_gnu_entity): Add support for extension
5879         of types with unknown discriminants.
5880         (substitute_in_type): Rewrite and restrict to formal substitutions.
5881         * gcc-interface/utils.c (create_field_decl): Do not set DECL_HAS_REP_P.
5882         (update_pointer_to): Update comment.
5884 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
5886         * sem_ch8.adb (Use_One_Package): In an instance, if two
5887         potentially_use_visible and non-overloadable homonyms are available
5888         from  the actuals of distinct formal packages, retain the current one,
5889         which was visible in the generic, to prevent spurious visibility
5890         errors.
5891         (End_Use_Package): Restore use_visibility when needed.
5893 2009-04-20  Sergey Rybin  <rybin@adacore.com>
5895         * gnat_ugn.texi, vms_data.ads: Update doc.
5897 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
5899         * gcc-interface/Make-lang.in: Update dependencies
5901         * gcc-interface/Makefile.in: Link run-time against winsock2 lib under
5902         Windows.
5904 2009-04-20  Robert Dewar  <dewar@adacore.com>
5906         * checks.ads: Fix documentation of range check handling
5908 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
5910         * sem_ch8.adb (Use_One_Type): Use proper entity on warning message for
5911         a redundant use_type clause.
5913 2009-04-20  Robert Dewar  <dewar@adacore.com>
5915         * sem_attr.adb (Eval_Attribute, case Length): Catch more cases where
5916         this attribute can be evaluated at compile time.
5917         (Eval_Attribute, case Range_Length): Same improvement
5919         * sem_eval.ads, sem_eval.adb (Compile_Time_Compare): New procedure
5921 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
5923         * sem_ch6.adb (Analye_Subprogram_Declaration): Code reorganization,
5924         for better handling of null procedures.
5925         (Check_Overriding_Indicator): Do not emit a warning on a missing
5926         overriding indicator on an operator when the type of which the operator
5927         is a primitive is private.
5929 2009-04-20  Bob Duff  <duff@adacore.com>
5931         * sem.adb, gnat1drv.adb, debug.adb: Use the -gnatd.W switch to control
5932         debugging output.
5934 2009-04-20  Robert Dewar  <dewar@adacore.com>
5936         * sem_attr.adb: Minor reformatting
5938         * gnatcmd.adb: Minor reformatting
5940 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
5942         * sem_ch4.adb (Analyze_User_Defined_Binary_Op): If left operand is
5943         overloaded and one interpretation matches the context, label the
5944         operand with the type of first formal.
5946 2009-04-20  Bob Duff  <duff@adacore.com>
5948         * debug.ads: Minor comment fix.
5950         * debug.adb: Minor comment fixes.
5952 2009-04-20  Javier Miranda  <miranda@adacore.com>
5954         * rtsfind.ads (RE_Null_Id): New entity of package Ada.Exceptions
5956         * exp_ch6.adb (Expand_Inlined_Call): Undo previous patch.
5958         * exp_ch11.adb (Expand_N_Raise_Statement): When the raise stmt
5959         is expanded into a call to Raise_Exception, avoid passing the
5960         exception-name'identity in runtimes in which this argument
5961         is not used.
5963 2009-04-20  Jerome Lambourg  <lambourg@adacore.com>
5965         * impunit.adb: Add i-cil and i-cilobj packages, now needed by the
5966         generated bindings for cil.
5968 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
5970         * sem_aggr.adb (Resolve_Record_Aggregate): If the type has unknown
5971         discriminants, collect components from the Underlying_Record_View,
5972         which will be used in the expansion of the aggregate into assignments.
5974         * sem_ch3.adb: Do not label derived type with unknown discriminants as
5975         having a private declaration.
5977 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
5979         * exp_util.adb (Expand_Subtype_From_Expr): use the
5980         underlying_record_view when available, to create the proper constrained
5981         subtype for an object of a derived type with unknown discriminants.
5983 2009-04-20  Javier Miranda  <miranda@adacore.com>
5985         * exp_ch6.adb (Expand_Inlined_Call): Avoid generation of temporaries for
5986         formals that have pragma unreferenced.
5988 2009-04-20  Pascal Obry  <obry@adacore.com>
5990         * a-direct.adb (To_Lower_If_Case_Insensitive): Removed.
5991         Remove all calls to To_Lower_If_Case_Insensitive to preserve
5992         the pathname original casing.
5994 2009-04-20  Robert Dewar  <dewar@adacore.com>
5996         * g-trasym.adb: Minor reformatting
5998         * s-os_lib.adb: Minor reformatting
6000         * sem.adb: Minor reformatting
6001         Minor code reorganization
6003         * sem_ch3.adb: Minor reformatting
6005         * sem_ch4.adb: Minor reformatting
6007         * sem_ch8.adb: Minor reformatting
6009         * sem_type.adb: Minor reformatting
6011 2009-04-20  Javier Miranda  <miranda@adacore.com>
6013         * sem_disp.adb (Find_Dispatching_Type): For subprograms internally
6014         generated by derivations of tagged types use the aliased subprogram a
6015         reference to locate their controlling type.
6017 2009-04-20  Tristan Gingold  <gingold@adacore.com>
6019         * g-trasym.adb: Set size of result buffer before calling
6020         convert_address.
6022 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6024         * sem_ch4.adb (Valid_Candidate): When checking whether a prefixed call
6025         to a function returning an array can be interpreted as a call with
6026         defaulted parameters whose result is indexed, take into account the
6027         types of all the indices of the array result type.
6029 2009-04-20  Pascal Obry  <obry@adacore.com>
6031         * a-direct.adb, s-os_lib.adb: Minor reformatting.
6033 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6035         * sem_ch8.adb (Analyze_Object_Renaming): Proper checks on incorrect
6036         null exclusion qualifiers for object renaming declarations.
6038 2009-04-20  Nicolas Roche  <roche@adacore.com>
6040         * sysdep.c (__gnat_localtime_tzoff): on Windows, manipulated times are
6041         unsigned long long. So compare local_time and utc_time before computing
6042         the difference.
6044 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6046         * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
6047         of the Underlying_Record_View before that of the derived type.
6049         * exp_ch3.adb (Expand_Record_Extension): Do not special-case types
6050         with unknown discriminants with regard to the parent subtype.
6052 2009-04-20  Bob Duff  <duff@adacore.com>
6054         * sem.adb (Semantics, Walk_Library_Items): Include dependents of bodies
6055         that are not included. This is necessary if the main unit is a generic
6056         instantiation.
6058         * gnat1drv.adb (Gnat1drv): Comment out the call to Check_Library_Items,
6059         because it doesn't work if -gnatn is used.
6061 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6063         * rtsfind.adb (RTE, RTE_Record_Component): In
6064         Configurable_Run_Time_Mode, do not enable front-end inlining.
6066 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6068         * g-socthi-vms.adb: Remove now unnecessary WITH clause on
6069         System.Address_To_Access_Conversions.
6071 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6073         * sem.adb: Guard against ill-formed subunits.
6075 2009-04-20  Bob Duff  <duff@adacore.com>
6077         * output.adb (Flush_Buffer): Do not indent blank lines.
6078         (Ignore_Output): New procedure for output suppression.
6080 2009-04-20  Hristian Kirtchev  <kirtchev@adacore.com>
6082         * a-calfor.adb (Image): Subtract 0.5 from the sub second component only
6083         when it is positive.  This avoids a potential constraint error raised
6084         by the conversion to Natural.
6086 2009-04-20  Gary Dismukes  <dismukes@adacore.com>
6088         * exp_ch5.adb (Expand_Assign_Array): For the case where the assignment
6089         involves a target that has a specified address, don't set Forward_OK
6090         and Backward_OK to False if the rhs is an aggregate, since overlap
6091         can't occur.
6093 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6095         * sem_ch8.adb (Analyze_Object_Renaming): Reject ambiguous expressions
6096         in an object renaming declaration when the expected type is an
6097         anonymous access type.
6099         * sem_type.adb (Disambiguate): Use anonymousness to resolve a potential
6100         ambiguity when one interpretation is an anonymous access type and the
6101         other is a named access type, and the context itself is anonymous
6103 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6105         * einfo.ads: Minor comment rewording
6107         * sem_aggr.adb: Minor comment rewording
6109         * sem_ch3.adb, sem_ch6.adb: Minor reformatting
6111 2009-04-20  Pascal Obry  <obry@adacore.com>
6113         * adaint.c (__gnat_is_readable_file): Check for file existence
6114         when not using ACL (always the case on remote drives).
6116 2009-04-20  Robert Dewar  <dewar@adacore.com>
6118         * sinfo.ads: Minor comment fixes
6120         * exp_disp.adb: Minor reformatting
6122         * gnat1drv.adb: Minor reformatting
6124         * output.adb: Minor reformatting
6126         * s-vxwext-kernel.ads: Minor reformatting
6128         * sem.ads: Minor reformatting
6130         * sem.adb: Minor reformatting
6132         * sem_elim.adb: Minor reformatting
6134         * uname.ads: Minor reformatting
6136 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6138         * init.c (__gnat_adjust_context_for_raise): On x86{-64}/Linux, add
6139         a small dope of 4 words to the adjustment to the stack pointer.
6141 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6143         * xoscons.adb: generate C header s-oscons.h in
6144         addition to s-oscons.ads.
6146         * socket.c: On VMS, use s-oscons.h.
6148         * sem_ch3.adb: Minor reformatting
6150         * exp_ch9.adb: Minor reformatting
6152 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6154         * gcc-interface/trans.c (check_for_eliminated_entity): Remove.
6155         (Attribute_to_gnu): Do not call check_for_eliminated_entity.
6156         (call_to_gnu): Likewise.
6158 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6160         * gcc-interface/trans.c (gigi): Declare the name of the compilation
6161         unit as the first global name at the very beginning.
6163 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6165         * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
6166         s-oscons-tmplt.c, gsocket.h, g-socthi-mingw.ads, g-socthi.ads,
6167         g-sothco.ads (__gnat_inet_pton): Needs to be enabled for HP-UX as well,
6168         since HP-UX supports neither inet_aton nor inet_pton (altough the
6169         latter is part of the Single UNIX Specification!).
6170         So reorganize code, and share C implementation based on inet_addr(3)
6171         with VMS (instead of having a VMS specific Ada implementation in
6172         g-socthi-vms.adb).
6174 2009-04-20  Gary Dismukes  <dismukes@adacore.com>
6176         * osint-c.ads, osint-c.adb (Get_Object_Output_File_Name): New function
6177         to return the object file name saved by Set_Object_Output_File_Name.
6179 2009-04-20  Emmanuel Briot  <briot@adacore.com>
6181         * g-comlin.adb (Initialize_Option_Scan): Fix initialization of parsers
6182         for the standard command line, when argc has been modified since the
6183         start of the application.
6185 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6187         * socket.c (__gnat_inet_pton, Windows case): Adjust return value.
6188         WSAStringToAddress returns 0 for success and SOCKET_ERROR for failure.
6190 2009-04-20  Bob Duff  <duff@adacore.com>
6192         * gnat1drv.adb (Gnat1drv): Put call to Check_Library_Items inside
6193         pragma Debug.
6195 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6197         * exp_ch9.adb (Build_Protected_Sub_Specification): Mark generated
6198         subprogram as Eliminated when source operation is.
6199         (Expand_N_Protected_Type_Declaration): Generate protected and
6200         unprotected specs for the internal operations, even if the source
6201         operation is eliminated.
6203 2009-04-20  Hristian Kirtchev  <kirtchev@adacore.com>
6205         * exp_ch3.adb (Make_Predefined_Primitive_Specs,
6206         Predefined_Primitive_Bodies): Do not create the declarations and bodies
6207         of the primitive subprograms associated with dispatching select
6208         statements when the runtime is in configurable mode.
6210 2009-04-20  Ed Falis  <falis@adacore.com>
6212         * s-vxwext-kernel.ads (tickGet): Use tick64Get.
6214 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6216         * s-oscons-tmplt.c: Add support for generating a dummy version of
6217         s-oscons.ads providing all possible constants.
6219         * g-socthi-mingw.ads: Fix calling convention for __gnat_inet_pton.
6221         * socket.c (__gnat_inet_pton): On Windows make sure we always use the
6222         ANSI version (not the UNICODE version) of WSAStringToAddress.
6224 2009-04-20  Pascal Obry  <obry@adacore.com>
6226         * adaint.c (__gnat_set_OWNER_ACL): properly free memory
6227         allocated for the security descriptor and make sure all
6228         handles are closed before leaving this procedure.
6230 2009-04-20  Javier Miranda  <miranda@adacore.com>
6232         * einfo.ads, einfo.adb (Is_Underlying_Record_View): New subprogram
6233         (Set_Is_Underlying_Record_View): New subprogram
6235         * sem_aggr.adb (Discr_Present, Resolve_Record_Aggregate): In case of
6236         private types with unknown discriminants use the underlying record view
6237         if available.
6239         * sem_ch3.adb (Build_Derived_Private_Type): Enable construction of the
6240         underlying record view in the full view of private types whose parent
6241         has unknown discriminants.
6242         (Build_Derived_Record_Type): Avoid generating the class-wide entity
6243         associated with an underlying record view.
6244         (Derived_Type_Declaration): Avoid deriving parent primitives in
6245         underlying record views.
6247         * sem_ch6.adb (Check_Return_Subtype_Indication): Add support for
6248         records with unknown discriminants.
6250         * sem_type.adb (Covers): Handle underlying record views.
6251         (Is_Ancestor): Add support for underlying record views.
6253         * exp_attr.adb (Expand_Attribute): Expand attribute 'size into a
6254         dispatching call if the type of the target object is tagged and has
6255         unknown discriminants.
6257         * exp_aggr.adb (Resolve_Record_Aggregate): Add support for records with
6258         unknown discriminants.
6260         * exp_disp.adb (Build_Dispatch_Tables): Avoid generating dispatch
6261         tables for internally built underlying record views.
6263         * sprint.adb (sprint_node_actual): Improve output of aggregates with an
6264         empty list of component associations.
6266 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6268         * sem_ch10.adb: Minor reformatting
6270         * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
6271         g-socthi-mingw.ads, g-socthi.ads, g-socket.adb
6272         (GNAT.Sockets.Inet_Addr): Do not use non-portable inet_aton, instead use
6273         standard inet_pton API (and emulate it on platforms that do not
6274         support it).
6275         (GNAT.Sockets.Thin.Inet_Pton, VMS case): Implement in terms of
6276         DECC$INET_ADDR, imported in Ada.
6277         (GNAT.Sockets.Thin.Inet_Pton, VxWorks and Windows cases): Use C
6278         implementation provided by GNAT runtime.
6279         (__gnat_inet_pton): C implementation of inet_pton(3) for VxWorks and
6280         Windows.
6282 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6284         * gnat_ugn.texi: Add documentation for -fno-ivopts.
6286 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6288         * sem_ch10.adb (Analyze_Context): Do not analyze a unit in a
6289         with_clause if it is the main unit.
6291 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6293         * sem_type.adb, ali.adb, erroutc.adb: Minor code reorganization
6294         (no behaviour change): Use Append instead of Increment_Last followed
6295         by assignment.
6297 2009-04-20  Hristian Kirtchev  <kirtchev@adacore.com>
6299         * exp_ch3.adb (Make_Predefined_Primitive_Specs): Do not generate the
6300         declarations of all primitives associated with dispatching asynchronous,
6301         conditional and timed selects when dispaching calls are forbidden and
6302         select statements are not allowed (such as in Ravenscar).
6303         (Predefined_Primitive_Bodies): Ditto for bodies.
6305         * exp_disp.ad (Make_DT): Do not create and populate the
6306         Select_Specific_Data of the dispatch table when dispatching calls are
6307         forbidden and select statements are not allowed (such as in Ravenscar).
6309 2009-04-20  Robert Dewar  <dewar@adacore.com>
6311         * a-tifiio.adb: Minor reformatting
6313 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6315         * g-socthi-vms.adb, g-socket.adb, g-socket.ads: inet_aton(3), unlike
6316         other C library functions, report *failure* with a zero status, and
6317         success with a non-zero status.
6319 2009-04-20  Bob Duff  <duff@adacore.com>
6321         * sem.ads, sem.adb (Walk_Library_Items): New generic procedure.
6322         (Semantics): After analyzing each unit, Append it to the
6323         Comp_Unit_List, if appropriate.
6325         * gnat1drv.adb (Check_Library_Items): New procedure for debugging
6326         purposes.
6327         (Gnat1drv): Correct comment regarding Back_End_Mode.
6329 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6331         * gnat_ugn.texi: Add documentation for -fno-inline-small-functions.
6333 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6335         * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
6336         output.adb, output.ads, s-taprop-hpux-dce.adb,
6337         s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-posix.adb: Minor
6338         reformatting.
6340 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6342         * g-socket.adb, g-socket.ads, g-socthi-mingw.ads, g-socthi-vms.adb,
6343         g-socthi-vms.ads, g-socthi-vxworks.ads, g-socthi.ads
6344         (GNAT.Sockets.Thin.C_Inet_Addr): Remove.
6345         (GNAT.Sockets.Thin.Inet_Aton): New function, imported from C library
6346         except for VMS where it is reimplemented in Ada using DECC$INET_ADDR.
6347         (GNAT.Sockets.Inet_Addr): Use inet_aton(3) instead of inet_addr(3).
6349         * debug.adb: Fix typo
6351         * gnat_rm.texi: Minor doc fix.
6353         * sem_ch7.adb, freeze.adb: Minor reformatting
6355 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6357         * g-socket.ads: Add new constants:
6358           Loopback_Inet_Addr
6359           Unspecified_Group_Inet_Addr
6360           All_Hosts_Group_Inet_Addr
6361           All_Routers_Group_Inet_Addr
6363         * s-oscons-tmplt.c, g-sttsne-vxworks.adb (System.OS_Constants): Add
6364         ERANGE (Result too large).
6365         (GNAT.Sockets.Thin.Task_Safe_NetDB, VxWorks version): Add missing
6366         propagation of errno to caller.
6368 2009-04-20  Hristian Kirtchev  <kirtchev@adacore.com>
6370         * a-calend.adb, a-calend-vms.adb: Increase the number of leap seconds
6371         to 24. Increment Leap_Seconds_Count and add an entry to aggregate
6372         Leap_Second_Times.
6374 2009-04-20  Gary Dismukes  <dismukes@adacore.com>
6376         * sem_elim.ads (Check_For_Eliminated_Subprogram): New procedure for
6377         checking for references to eliminated subprograms that should be
6378         flagged.
6379         (Eliminate_Error_Message): Update comment to say "references" rather
6380         than "calls" (since attribute cases are handled here as well).
6382         * sem_elim.adb (Check_For_Eliminated_Subprogram): New procedure for
6383         checking for references to eliminated subprograms that should be
6384         flagged.  Add with and use of Sem and Sem_Util.
6386         * sem_res.adb (Resolve_Call): Reject calls to eliminated subprograms.
6387         Add with and use of Sem_Elim.
6389         * sem_attr.adb (Analyze_Access_Attribute): Reject access attributes
6390         applied to eliminated subprograms.
6391         (Analyze_Attribute): Reject 'Address and 'Code_Address applied to
6392         eliminated subprograms.
6393         Add with and use of Sem_Elim.
6395         * sem_disp.adb (Check_Dispatching_Call): Remove error check for calls
6396         to eliminated subprograms, now handled during Resolve_Call.
6397         Remove with and use of Sem_Elim.
6399         * exp_disp.adb (Make_DT): Get Ultimate_Alias of primitive before
6400         testing Is_Eliminated, for proper handling of primitive derived from
6401         eliminated subprograms.
6403 2009-04-20  Vincent Celier  <celier@adacore.com>
6405         * mlib-prj.adb (Build_Library): Use the shared library linker, if one
6406         has been declared (Library_GCC or Linker'Driver), for the driver name.
6408         * prj-nmsc.adb (Process_Linker): If Library_GCC is not declared and
6409         Linker'Driver is, use Linker'Driver as the shared library linker.
6410         (Process_Project_Level_Simple_Attributes): Issue a warning if attribute
6411         Library_GCC is declared.
6412         (Check_Library_Attributes): Set up the shared linker driver: either
6413         Library_GCC or Linker'Driver. Issue a warning if Library_GCC is
6414         declared.
6416 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6418         * g-socket.ads (Send_Socket): Fix misleading comment.
6420 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
6422         * switch-c.adb (Scan_Front_End_Switches): Disable inspector mode in
6423         ASIS mode.
6425 2009-04-20  Geert Bosch  <bosch@adacore.com>
6427         * a-tifiio.adb (Put): Avoid generating too many digits for certain
6428         fixed types with smalls that are neither integer or the reciprocal
6429         of an integer.
6431 2009-04-20  Bob Duff  <duff@adacore.com>
6433         * uname.ads: Minor comment fix.
6435         * types.ads: Minor comment fix.
6437 2009-04-20  Pascal Obry  <obry@adacore.com>
6439         * adaint.c (__gnat_get_libraries_from_registry): Fix code to
6440         avoid warning. At the same time fix a memory leak.
6442         * osint.adb (Get_Libraries_From_Registry): Properly free memory
6443         returned by the above routine.
6445 2009-04-20  Robert Dewar  <dewar@adacore.com>
6447         * s-conca5.adb, s-conca5.ads, s-conca7.adb, s-conca7.ads, s-conca9.adb,
6448         s-conca9.ads, rtsfind.ads, s-conca2.adb, s-conca2.ads, s-conca4.adb,
6449         s-conca4.ads, s-conca6.adb, s-conca6.ads, s-conca8.adb, s-conca8.ads,
6450         s-conca3.adb, s-conca3.ads (Str_Concat_Bounds_x): New functions.
6452         * exp_ch4.adb (Expand_Concatenate): Minor code reorganization
6454 2009-04-20  Pascal Obry  <obry@adacore.com>
6456         * initialize.c (__gnat_initialize): Add braces to kill warning.
6458         * adaint.c: Minor reformatting, remove trailing spaces.
6460 2009-04-17  Arnaud Charlet  <charlet@adacore.com>
6462         * gcc-interface/Make-lang.in: Update dependencies.
6464 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6466         * adaint.h (__gnat_lwp_self): Declare on Linux.
6468         * adaint.c (__gnat_os_filename): Add ATTRIBUTE_UNUSED on 'filename'.
6470 2009-04-20  Robert Dewar  <dewar@adacore.com>
6472         * exp_ch5.adb, usage.adb, back_end.adb, opt.ads: Implement
6473         front-end part of -fpreserve-control-flow switch.
6475 2009-04-20  Bob Duff  <duff@adacore.com>
6477         * rtsfind.adb: Minor comment fix
6479 2009-04-20  Robert Dewar  <dewar@adacore.com>
6481         * exp_aggr.adb: Minor reformatting
6482         Minor code reorganization (use Nkind_In)
6484         * g-socket.adb: Minor reformatting
6486         * g-socket.ads: Minor comment fix
6488         * s-auxdec.ads: Minor comment and organization update.
6490         * s-auxdec-vms_64.ads: Minor comment and organization update.
6492         * sem_ch10.adb: Minor addition of ??? comment
6494         * sem_disp.adb: Minor reformatting
6496 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6498         * inline.adb (Add_Inlined_Subprogram): Do not place on the back-end
6499         list a caller of an inlined subprogram, if the caller itself is not
6500         called.
6502 2009-04-20  Pascal Obry  <obry@adacore.com>
6504         * adaint.c: Disable use of ACL on network drives.
6506 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
6508         * gnat_ugn.texi: Add examples.
6510 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6512         * g-socket.ads (Abort_Selector): Clarify documentation.
6514 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
6516         * opt.ads (Inspector_Mode): Update documentation of this flag.
6518 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6520         * g-socket.ads: Minor reformatting
6522         * socket.c, gsocket.h (__gnat_get_h_errno, VxWorks case): No need to
6523         consider S_resolvLib error codes since we only use the hostLib wrappers.
6525 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6527         * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
6528         of the Underlying_Record_View after that of the derived type.
6530 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
6532         * switch-c.adb (Scan_Front_End_Switches): Disable front-end inlining
6533         in inspector mode.
6535 2009-04-20  Javier Miranda  <miranda@adacore.com>
6537         * sem_ch6.adb (New_Overloaded_Entity): Minor reformating.
6539         * sem_ch6.ads (Subtype_Conformant, Type_Conformant): Add missing
6540         documentation.
6542         * exp_aggr.adb (Build_Record_Aggr_Code): Code cleanup.
6544         * sem_disp.adb
6545         (Check_Dispatching_Operation): Set attribute Is_Dispatching_Operation
6546         in internally built overriding subprograms.
6548 2009-04-20  Doug Rupp  <rupp@adacore.com>
6550         * s-auxdec-vms_64.ads (Integer_{8,16,32,64}_Array): New array types.
6552         * s-auxdec.ads: Likewise
6554 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6556         * sem_ch3.adb (Find_Type_Name): Reject the completion of a private
6557         type by an interface.
6559         * exp_ch6.adb (Expand_Call): Inline To_Address unconditionally, to
6560         minimze difference in expanded tree when compiled as spec of the main
6561         unit, or as a spec in the context of another unit.
6563 2009-04-20  Hristian Kirtchev  <kirtchev@adacore.com>
6565         * a-calend.adb: Remove types char_Pointer, int, tm and tm_Pointer.
6566         (localtime_tzoff): This routine no longer accepts an actual of type
6567         tm_Pointer.
6568         (UTC_Time_Offset): Remove local variable Secs_TM.
6570         * sysdep.c (__gnat_localtime_tzoff): This routine no longer accepts an
6571         actual of type struct tm*. Add local variable of type struct tm for all
6572         targets that provide localtime_r and need to invoke it.
6574 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6576         * s-oscons-tmplt.c, g-socket.adb, g-socket.ads
6577         (GNAT.Sockets.Resolve_Error): Add case of EPIPE
6578         Add case of EAGAIN for platforms where it is not equal to EWOULDBLOCK
6580 2009-04-20  Robert Dewar  <dewar@adacore.com>
6582         * sem_ch3.adb: Minor reformatting
6584         * lib-load.adb: Minor reformatting
6586         * sem_ch4.adb: Minor reformatting
6588 2009-04-20  Robert Dewar  <dewar@adacore.com>
6590         * namet-sp.ads, namet-sp.adb (Is_Bad_Spelling_Of): Implement new spec
6591         (equal values => False).
6593 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6595         * exp_ch6.adb (Is_Null_Procedure): predicate is global, so that calls
6596         to null procedures can be inlined unconditionally.
6598 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6600         * gcc-interface/trans.c (call_to_gnu): When creating the copy for a
6601         non-addressable parameter passed by reference, do not convert the
6602         actual if its type is already the nominal type, unless it is of
6603         self-referential size.
6605 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
6607         * gnat_ugn.texi: Fix typos.
6609 2009-04-20  Robert Dewar  <dewar@adacore.com>
6611         * debug.adb, gnat1drv.adb, sem_ch13.adb: Add circuitry to
6612         Validate_Unchecked_Warnings to suppress warnings about size or
6613         alignment or extra bits if either type involved has pragma Warnings
6614         (Off) set for the type entity.
6616 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
6618         * gcc-interface/trans.c (gigi): Make the special IA-64 descriptor type
6619         a builtin type and give it a name.
6621 2009-04-17  Diego Novillo  <dnovillo@google.com>
6623         * gcc-interface/misc.c (gnat_expand_expr): Remove.
6624         (LANG_HOOKS_EXPAND_EXPR): Remove.
6626 2009-04-17  Robert Dewar  <dewar@adacore.com>
6628         * sem_ch3.adb: Minor reformatting
6630 2009-04-17  Pascal Obry  <obry@adacore.com>
6632         * adaint.c: Add __gnat_use_acl global variable to control use of ACL.
6634 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
6636         * sem_ch3.adb (Build_Derived_Enumeration_Type): Diagnose properly
6637         illegal constraints on type derived from formal discrete types.
6639 2009-04-17  Thomas Quinot  <quinot@adacore.com>
6641         PR ada/35953
6643         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
6644         g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
6645         g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb,
6646         g-socket.ads (GNAT.Sockets.Thin.C_Send,
6647         GNAT.Sockets.Thin.Syscall_Send): Remove unused subprograms.
6648         Replace calls to send(2) with equivalent sendto(2) calls.
6649         (GNAT.Sockets.Send_Socket): Factor common code in inlined subprogram.
6650         (GNAT.Sockets.Write): Account for the case of hyper-empty arrays, do not
6651         report an error in that case. Factor code common to the two versions
6652         (datagram and stream) in common routine Stream_Write.
6654 2009-04-17  Robert Dewar  <dewar@adacore.com>
6656         * exp_disp.adb: Minor reformatting
6657         Minor code reorganization (use Nkind_In)
6659         * prepcomp.adb: Minor reformatting
6661         * sem_ch3.adb: Minor reformatting
6663         * sem_res.adb: Minor comment addition
6665         * exp_ch5.adb (Expand_Assign_Array): Use Has_Address_Clause to test
6666         for address clause
6668         * lib-xref.adb (Generate_Reference): Exclude recursive calls from
6669         setting Is_Referenced
6671         * types.ads: Minor reformatting
6673 2009-04-17  Arnaud Charlet  <charlet@adacore.com>
6675         * gnat_ugn.texi: Initial documentation on binding generator.
6677 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
6679         * einfo.ads, einfo.adb: New attribute Underlying_Record_View, to handle
6680         type extensions whose parent is a type with unknown discriminants.
6682         * exp_aggr.adb (Expand_Record_Aggregate): If the type of an extension
6683         aggregate has unknown discriminants, use the Underlying_Record_View to
6684         obtain the discriminants of the ancestor part.
6686         * exp_disp.adb (Build_Dispatch_Tables): Types that are
6687         Underlying_Record_Views share the dispatching information of the
6688         original record extension.
6690         * exp_ch3.adb (Expand_Record_Extension): If the type inherits unknown
6691         discriminants, propagate dispach table information to the
6692         Underlying_Record_View.
6694         * sem_ch3.adb (Build_Derived_Private_Type): If parent type has unknown
6695         discriminants and declaration is not a completion, generate
6696         Underlying_Record_View to provide proper discriminant information to
6697         the front-end and to gigi.
6699 2009-04-17  Robert Dewar  <dewar@adacore.com>
6701         * s-conca5.adb, g-sercom.adb, s-conca5.ads, s-conca7.adb, exp_imgv.adb,
6702         s-conca7.ads, s-crc32.adb, s-crc32.ads, s-conca9.adb, s-conca9.ads,
6703         s-addope.adb, i-cstrin.ads, s-addope.ads, s-carun8.adb, s-carun8.ads,
6704         g-htable.ads, g-hesora.adb, g-hesora.ads, s-htable.adb, s-htable.ads,
6705         s-conca2.adb, s-conca2.ads, a-except.adb, s-conca4.adb, a-except.ads,
6706         s-conca4.ads, s-except.adb, s-except.ads, s-conca6.adb, s-conca6.ads,
6707         g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads, s-conca8.adb,
6708         s-conca8.ads, g-byorma.adb, g-byorma.ads, s-memory.adb, s-memory.ads,
6709         g-speche.adb, g-speche.ads, g-stsifd-sockets.adb, exp_dist.adb,
6710         s-imgenu.adb, s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-exctab.adb,
6711         s-exctab.ads, s-imenne.adb, s-imenne.ads, s-casuti.adb, osint.adb,
6712         s-assert.adb, s-casuti.ads, s-assert.ads, s-os_lib.adb, s-conca3.adb,
6713         s-conca3.ads: Remove unneeded pragma Warnings
6715 2009-04-17  Robert Dewar  <dewar@adacore.com>
6717         * g-moreex.adb: Add comments.
6719         * s-auxdec.ads: Add ??? comment for uncommented pragma Warnings (Off)
6721         * s-auxdec-vms_64.ads: Add ??? comment for uncommented pragma
6722         Warnings (Off)
6724         * prepcomp.adb: Add ??? comment
6726         * a-tasatt.adb: Minor reformatting
6728         * g-trasym-vms-alpha.adb: Add ??? comment
6730         * g-trasym-vms-ia64.adb: Add ??? comment
6732         * xoscons.adb: Minor reformatting
6734         * s-tassta.adb: Minor reformatting
6736         * s-scaval.adb: Add ??? comment
6738         * stand.ads: Minor code clean up (remove junk with of Namet)
6740         * s-strcom.adb, s-strcom.ads, s-string.adb, s-string.ads, s-sopco3.adb,
6741         s-sopco3.ads, s-strops.adb, s-strops.ads, s-sopco5.adb, s-sopco5.ads,
6742         s-wchcnv.adb, s-wchcnv.ads, s-ststop.adb, s-ststop.ads, s-soflin.adb,
6743         s-soflin.ads, s-traceb.adb, s-traceb.ads, s-traent.adb, s-traent.ads,
6744         s-secsta.adb, s-secsta.ads, s-utf_32.adb, s-utf_32.ads, s-wchcon.adb,
6745         s-wchjis.adb, s-wchcon.ads, s-wchjis.ads, s-sopco4.adb, s-sopco4.ads,
6746         s-stache.adb, s-stache.ads, s-stoele.adb, s-stoele.ads, s-stalib.adb,
6747         s-stalib.ads, s-os_lib.ads, s-purexc.ads: Remove no longer needed
6748         Warnings off pragmas.
6750 2009-04-17  Pascal Obry  <obry@adacore.com>
6752         * initialize.c: Fix test for reallocating the arguments array.
6754 2009-04-17  Geert Bosch  <bosch@adacore.com>
6756         * exp_fixd.adb (Expand_Convert_Float_To_Fixed): Have float to fixed
6757         conversion truncate only for decimal fixed point types.
6759 2009-04-17  Jerome Lambourg  <lambourg@adacore.com>
6761         * g-comlin.adb (Initialize_Scan_Option): Make sure the sections are
6762         reinitialized.
6764 2009-04-17  Robert Dewar  <dewar@adacore.com>
6766         * exp_ch5.adb (Expand_Assign_Array): Do not set Forwards_OK and
6767         Backwards_OK if either operand has an address clause.
6769 2009-04-17  Pascal Obry  <obry@adacore.com>
6771         * initialize.c: Code clean up, use realloc.
6773 2009-04-17  Pascal Obry  <obry@adacore.com>
6775         * initialize.c: Do not get Unicode command line if Unicode support not
6776         activated.
6777         Add support for wildcard expansion for Unicode parameters on Win32.
6779         * mingw32.h: Add missing macros when Unicode support not activated.
6781 2009-04-17  Javier Miranda  <miranda@adacore.com>
6783         * sem_ch6.adb (Check_Anonymous_Return): Add missing checks to
6784         avoid generating code that references the Current_Master
6785         when compiling without tasks.
6787 2009-04-17  Vincent Celier  <celier@adacore.com>
6789         * prj-attr.adb: New project level attribute Target
6790         
6791         * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
6792         attribute Target
6793         
6794         * prj.ads (Project_Configuration): New component Target
6796 2009-04-17  Thomas Quinot  <quinot@adacore.com>
6798         * exp_ch7.adb (Expand_Ctrl_Function_Call): Remove incorrect special
6799         case for the case of an aggregate component, the attach call for the
6800         result is actually needed.
6802         * exp_aggr.adb (Backend_Processing_Possible): Backend processing for
6803         an array aggregate must be disabled if the component type requires
6804         controlled actions.
6806         * exp_ch3.adb: Minor reformatting
6808 2009-04-17  Bob Duff  <duff@adacore.com>
6810         * output.ads (Indent,Outdent): New procedures for indenting the output.
6811         (Write_Char): Correct comment -- LF _is_ allowed.
6813         * output.adb (Indent,Outdent): New procedures for indenting the output.
6814         Keep track of the indentation level, and make sure it doesn't get too
6815         high.
6816         (Flush_Buffer): Insert spaces at the beginning of each line, if
6817         indentation level is nonzero.
6818         (Save_Output_Buffer,Restore_Output_Buffer): Save and restore the current
6819         indentation level.
6820         (Set_Standard_Error,Set_Standard_Output): Remove superfluous
6821         "Next_Col := 1;".  Flush_Buffer does that.
6823         * sem_ch6.adb, sem_ch7.adb (Debug_Flag_C): Reorganize the output
6824         controlled by the -gnatdc switch. It now occurs on entry/exit to the
6825         relevant analysis routines, and calls Indent/Outdent to make the
6826         indentation reflect the nesting level.  Add "helper" routines, since
6827         otherwise lots of "return;" statements would skip the debugging output.
6829 2009-04-17  Arnaud Charlet  <charlet@adacore.com>
6831         * s-taprop-tru64.adb, s-taprop-vms.adb, s-taprop-linux.adb,
6832         s-taprop-solaris.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
6833         s-taprop-posix.adb (Suspend_Until_True): Protect against early wakeup.
6835 2009-04-17  Thomas Quinot  <quinot@adacore.com>
6837         * exp_aggr.adb: Minor code reorganization, no behaviour change.
6839 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
6841         * sem_ch8.adb (Use_One_Type): Handle properly a redundant use type
6842         clause in a unit that is a package body or a subunit, when the previous
6843         clause appears in a spec or a parent.
6845 2009-04-17  Thomas Quinot  <quinot@adacore.com>
6847         * sinfo.ads, exp_aggr.adb, exp_aggr.ads: Minor reformatting
6849         * exp_ch7.adb: Minor reformatting
6851 2009-04-17  Bob Duff  <duff@adacore.com>
6853         * exp_ch4.adb (Expand_Allocator_Expression): In an initialized
6854         allocator, check that the expression of the qualified expression obeys
6855         the constraints of the subtype of the qualified expression.
6857 2009-04-17  Thomas Quinot  <quinot@adacore.com>
6859         * sprint.adb (Write_Itype): Add handling of enumeration subtypes.
6861 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
6863         * exp_ch4.adb (Expand_Allocator_Expression): Apply constraint check to
6864         aggregate, using context imposed by subtype mark in allocator.
6866 2009-04-17  Pascal Obry  <obry@adacore.com>
6868         * gnat_rm.texi: Document GNAT_CODE_PAGE environment variable
6870 2009-04-17  Nicolas Roche  <roche@adacore.com>
6872         * initialize.c (__gnat_initialize): remove MAX_PATH limitation on each
6873         argument length.
6875 2009-04-17  Gary Dismukes  <dismukes@adacore.com>
6877         * sem_elim.adb (Eliminate_Error_Msg): Minor change to error message to
6878         cover both calls and attribute references ("call" => "reference").
6880 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
6882         * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype of an access
6883         type for which Storage_Size is set to 0 is legal in a pure unit.
6885 2009-04-17  Thomas Quinot  <quinot@adacore.com>
6887         * exp_ch7.adb: Minor reformatting
6889 2009-04-17  Robert Dewar  <dewar@adacore.com>
6891         * restrict.adb (Check_Restriction_No_Dependence): Don't check
6892         restriction if outside main extended source unit.
6894         * sem_ch10.adb (Analyze_With_Clause): Check No_Dependence restriction
6895         for parents of child units as well as the child unit itself.
6897 2009-04-17  Bob Duff  <duff@adacore.com>
6899         * checks.ads: Minor comment fix
6901         * exp_aggr.ads: Minor comment fix
6903 2009-04-17  Nicolas Roche  <roche@adacore.com>
6905         * adaint.c: Improve cross compiler detection and handling.
6907 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
6909         * exp_ch4.adb (Expand_Concatenation): Do not use calls at -Os.
6911 2009-04-17  Pascal Obry  <obry@adacore.com>
6913         * mingw32.h: Add S2WSC and WS2SC macros to convert to/from
6914         CurrentCodePage.
6916         * adaint.h: Encoding_Unspecified is now defined. Corresponds to the
6917         value when no encoding form paramter is set on Text_IO services.
6919         * adaint.c: CurrentCodePage new variable on Windows.
6920         Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
6921         ones.
6923         * mkdir.c: Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
6924         ones.
6926         * initialize.c: Initialize CurrentCodePage depending on GNAT_CODE_PAGE
6927         environment variable value. Default is UTF-8.
6929         * s-crtl.ads: Filename_Encoding add Unspecified in the enumeration type.
6930         fopen and freopen encoding parameter is now set to Unspecified.
6931         The default value is in this case UTF-8 (as it was before) but
6932         use the new macros that convert to/from the code page set
6933         at runtime (CurrentCodePage).
6935         * s-fileio.adb: When no encoding specified use Unspecified value.
6937 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
6939         * atree.adb, atree.ads: Remove dead code.
6941 2009-04-17  Arnaud Charlet  <charlet@adacore.com>
6943         * gcc-interface/Make-lang.in: Update dependencies.
6945 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
6947         * sem_ch3.adb (Access_Subprogram_Definition): Additional checks on
6948         illegal uses of incomplete types in formal parts and return types.
6950         * sem_ch6.adb (Process_Formals): Taft-amendment types are legal in
6951         access to subprograms.
6953         * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to use
6954         Taft-amendment types as the return type of an access_to_function type.
6956         * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
6957         type for access_to_subprograms. The check is performed on package exit.
6959 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
6961         * atree.ads, atree.adb: Move New_Copy_Tree.to sem_util.
6963         * nlists.ads, nlists.adb: Move New_Copy_List to sem_util.
6964         
6965         * lib-load.adb: Use Copy_Separate_Tree rather than New_Copy_Tree
6967         * sem_util.ads, sem_util.adb: New_Copy_Tree and New_Copy_List belong in
6968         semantic units, because the handling of itypes in the copied tree
6969         requires semantic information that does not belong in atree.
6971 2009-04-17  Robert Dewar  <dewar@adacore.com>
6973         * par-ch6.adb: Minor reformatting
6975         * prj.adb: Minor reformatting
6977 2009-04-17  Gary Dismukes  <dismukes@adacore.com>
6979         * par-ch6.adb (P_Subprogram): Overriding indicators should be allowed
6980         on protected subprogram bodies, so exclude the case where Pf_Flags is
6981         Pf_Decl_Pbod from the error check.
6983         * par-ch9.adb (P_Protected_Operation_Items): Permit overriding
6984         indicators on subprograms in protected bodies, and proceed with parsing
6985         the subprogram.
6987         * sem_ch6.adb (Verify_Overriding_Indicator): Exclude protected
6988         subprograms from the check for primitiveness on subprograms with
6989         overriding indicators.
6990         (Check_Overriding_Indicator): Include protected subprograms in the
6991         style check for missing overriding indicators.
6993 2009-04-17  Tristan Gingold  <gingold@adacore.com>
6995         * init.c: Fix stack checking for x86 Darwin.
6997 2009-04-17  Vincent Celier  <celier@adacore.com>
6999         * prj-attr.adb: New project level attribute Object_File_Suffix
7000         (<language>).
7001         
7002         * prj-nmsc.adb (Add_Source): Use the object file suffix to get the
7003         object file name
7004         (Process_Compiler): Process attribute Object_File_Suffix
7006         * prj.adb (Object_Name): Use suffix Object_File_Suffix instead of
7007         platform suffix, when specified.
7009         * prj.ads (Language_Config): New component Object_File_Suffix,
7010         defaulted to No_Name.
7011         (Object_Name): New parameter Object_File_Suffix, defaulted to No_Name
7013         * snames.ads-tmpl: New standard name Object_File_Suffix
7015 2009-04-17  Robert Dewar  <dewar@adacore.com>
7017         * gnat_rm.texi: Add documentation about No_Streams restriction
7019         * sem_attr.adb (Check_Stream_Attribute): Exclude implicit stream
7020         attributes when checking No_Streams restriction.
7022 2009-04-17  Thomas Quinot  <quinot@adacore.com>
7024         * rtsfind.ads (RE_Request_Destroy): New PolyORB s-parint entity.
7026         * exp_dist.adb (PolyORB_Support.Build_General_Calling_Stubs): Add
7027         missing calls to RE_Request_Destroy to deallocate request objects after
7028         use.
7030 2009-04-17  Nicolas Setton  <setton@adacore.com>
7032         * link.c: Fix support for passing a response file under Darwin.
7034 2009-04-17  Emmanuel Briot  <briot@adacore.com>
7036         * prj.adb (Free): new subprogram.
7038 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
7040         * sem_ch3.adb: additional initialization on incomplete subtypes.
7041         
7042         * sem_ch6.adb (Process_Formals): if the subprogram is in the private
7043         part and one of the formals is an incomplete tagged type, attach to
7044         list of private dependends of the type for later validation.
7046         * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to declare
7047         primitive operations of a Taft-amendmment type.
7049         * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
7050         type. The check is performed on package exit, possibly after the
7051         subprogram is frozen.
7053 2009-04-17  Vincent Celier  <celier@adacore.com>
7055         * prj-nmsc.adb (Get_Directories): Get the object and exec directory
7056         before looking for source directories, but make sure that there are nil
7057         if they are not explicitely declared and there is explicitely no
7058         sources in the project.
7060 2009-04-17  Pascal Obry  <obry@adacore.com>
7062         * initialize.c: Set gnat_argv with UTF-8 encoded strings on Windows.
7064         * init.c: Fix minor typo and style fix.
7066 2009-04-17  Robert Dewar  <dewar@adacore.com>
7068         * a-except.adb, a-except-2005.adb: Add PE_Address_Of_Intrinsic
7070         * sem_attr.adb (Analyze_Attribute, case Address): Use
7071         PE_Address_Of_Intrinsic.
7073         * types.ads: Add PE_Address_Of_Intrinsic
7075         * types.h: Add PE_Address_Of_Intrinsic
7077 2009-04-17  Nicolas Setton  <setton@adacore.com>
7079         * gcc-interface/Makefile.in: Under darwin, build shared libraries
7080         with install_name starting with "@rpath/".
7082 2009-04-17  Nicolas Setton  <setton@adacore.com>
7084         * link.c: Add darwin section
7086 2009-04-16  Robert Dewar  <dewar@adacore.com>
7088         * g-pehage.adb: Minor reformatting
7090         * sem_ch12.adb: Minor reformatting
7092         * exp_dist.adb: Minor reformatting
7094         * bindgen.adb: Minor style fixes.
7096 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
7098         * sem_eval.adb (Eval_Indexed_Component): Extend constant-folding of
7099         indexed components to the case where the prefix is a static string
7100         literal.
7102 2009-04-16  Javier Miranda  <miranda@adacore.com>
7104         * exp_ch3.adb (Expand_N_Object_Declaration): In case of build-in-place
7105         objects avoid any further expansion of the expression initializing the
7106         object.
7108 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
7110         * sem_ch12.adb (Preanalyze_Actuals): If the instance is a child unit
7111         that hides an outer homograph, make that homograph invisible when
7112         analyzing the actuals, to to prevent illegal direct visibility on it.
7114 2009-04-16  Eric Botcazou  <ebotcazou@adacore.com>
7116         * g-pehage.adb (Initialize): Fix off-by-one error.
7118 2009-04-16  Tristan Gingold  <gingold@adacore.com>
7120         * init.c: Detect real stack overflow on Darwin.
7122         * system-darwin-x86.ads: Use stack probing on darwin x86.
7124 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
7126         * sem_attr.adb (Analyze_Attribute, case 'Address): It is illegal to
7127         take the address of an intrinsic subprogram.
7129 2009-04-16  Arnaud Charlet  <charlet@adacore.com>
7131         * gcc-interface/Makefile.in: Change g-trasym to g-trasym-unimplemented
7132         for the targets where GNAT.Traceback.Symbolic is not supported.
7134 2009-04-16  Vincent Celier  <celier@adacore.com>
7136         * g-trasym-unimplemented.ads, g-trasym-unimplemented.adb: New file.
7138         * g-trasym.ads: Update comments.
7140 2009-04-16  Vasiliy Fofanov  <fofanov@adacore.com>
7142         * tracebak.c (STOP_FRAME): Verify validity of the current address
7143         before dereferencing.
7145 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
7147         * sprint.adb (Write_Itype): If the itype is an array subtype, preserve
7148         the original location of the index expressions and the index subtypes,
7149         to prevent spurious out-of-scope references in gigi.
7151 2009-04-16  Tristan Gingold  <gingold@adacore.com>
7153         * init.c, s-osinte-darwin.ads, system-darwin-x86_64.ads:
7154         Add support for stack checking on darwin.
7156 2009-04-16  Vincent Celier  <celier@adacore.com>
7158         * prj-attr.adb: New attribute Runtime_Source_Dir
7160         * prj-nmsc.adb (Process_Project_Level_Array_Attributes): Process
7161         attribute Runtime_Source_Dir.
7162         (Check_Naming_Schemes): Give default values to out parameters to avoid
7163         invalid data.
7165         * prj.ads (Language_Config): New component Runtime_Source_Dir
7167         * snames.ads-tmpl: New standard name Runtime_Source_Dir
7169 2009-04-16  Pascal Obry  <obry@adacore.com>
7171         * adaint.h, adaint.c (__gnat_rmdir): New routine.
7172         Simple wrapper routines used to convert to proper encoding on
7173         Windows.
7175         * s-crtl.ads: Use __gnat_rmdir instead of direct call to the C library.
7177         * g-dirope.adb (Remove_Dir): Fix a bug, the root directory was removed
7178         twice.
7180 2009-04-16  Pascal Obry  <obry@adacore.com>
7182         * s-crtl.ads, s-os_lib.adb: Minor code clean-up.
7184 2009-04-16  Thomas Quinot  <quinot@adacore.com>
7186         * snames.ads-tmpl (Name_Defined): New predefined name for use by the
7187         integrated preprocessor.
7189         * prep.ads, prep.adb (Setup_Hooks): New subprogram.
7190         (Initialize): Split into two subprograms, Initialize (to be called
7191         prior to compiler command line processing) and Setup_Hooks (to be called
7192         later on when the first source file is loaded).
7194         * gprep.adb: Change call to Prep.Initialize to call to Prep.Setup_Hooks.
7195         Add call to Prep.Initialize.
7197         * sinput-l.adb, prepcomp.adb: Change call to Prep.Initialize to call
7198         to Prep.Setup_Hooks.
7200 2009-04-16  Pascal Obry  <obry@adacore.com>
7202         * adaint.h, adaint.c (__gnat_chdir): New routine.
7203         Simple wrapper routines used to convert to proper encoding on
7204         Windows.
7206         * s-crtl.ads: Use __gnat_chdir instead of direct call to the C library.
7208         * a-direct.adb, g-dirope.adb: Use chdir from System.CRTL.
7210 2009-04-16  Quentin Ochem  <ochem@adacore.com>
7212         * sinput-p.adb (Clear_Source_File_Table): Use Sinput.Initialize instead
7213         of Source.Init.
7215 2009-04-16  Eric Botcazou  <ebotcazou@adacore.com>
7217         * a-convec.ads (Is_Empty): Mark inline.
7219 2009-04-16  Nicolas Roche  <roche@adacore.com>
7221         * init.c (__gnat_init_float): Initialize FPU on x86_64 windows
7223 2009-04-16  Thomas Quinot  <quinot@adacore.com>
7225         * prepcomp.adb: Minor reformatting
7227 2009-04-16  Jerome Lambourg  <lambourg@adacore.com>
7229         * sem_prag.adb (Process_Import_Or_Interface): With .NET,
7230         Access_Subprogram types can also be imported.
7231         (Check_Form_Of_Interface_Name): Accept '/' character in entity CIL
7232         names.
7234 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
7236         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
7237         preserve homonym chain when the declaration is rewritten into a
7238         renaming declaration, in order to preserve visibility structure.
7240 2009-04-16  Jerome Lambourg  <lambourg@adacore.com>
7242         * sem_prag.adb (Analyze_Pragma): Make sure that pragma pack is not
7243         taken into account for VM targets.
7245 2009-04-16  Hristian Kirtchev  <kirtchev@adacore.com>
7247         * g-calend.ads, g-calend.adb (Week_In_Year): Now calls
7248         Year_Week_In_Year.
7249         (Year_Week_In_Year): New routine which contains the original code from
7250         Week_In_Year. Add the missing special case for January 1st falling on
7251         a Monday.
7253 2009-04-16  Thomas Quinot  <quinot@adacore.com>
7255         * exp_dist.adb (Build_From_Any_Call): For a subtype that is a generic
7256         actual type, use the base type to build the To_Any function.
7257         (Build_From_Any_Function): Remove junk, useless subtype conversion.
7259 2009-04-16  Thomas Quinot  <quinot@adacore.com>
7261         * exp_ch9.adb, exp_code.adb, tbuild.adb, sem_case.adb,
7262         restrict.adb: Minor code reorganization (use
7263         Add_{Char,Str}_To_Name_Buffer instead of inlining it by hand).
7265 2009-04-16  Bob Duff  <duff@adacore.com>
7267         * exp_ch6.ads, exp_ch6.adb (Is_Build_In_Place_Function_Return): Remove,
7268         unused.
7270 2009-04-16  Thomas Quinot  <quinot@adacore.com>
7272         * sem_ch4.adb: Minor reformatting
7274         * adaint.c: Remove junk duplicated code.
7276         * sem_ch3.adb: Minor reformatting
7278         * exp_dist.adb: Minor comment rewording
7280 2009-04-16  Robert Dewar  <dewar@adacore.com>
7282         * gnat_rm.texi: Document effect of Assume_No_Invalid_Values and -gnatVa
7283         used together.
7285 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
7287         * sem_ch4.adb (Find_Equality_Types): Filter out types that are not
7288         usable before calling Add_One_Interp, to resolve spurious ambiguities.
7290 2009-04-16  Robert Dewar  <dewar@adacore.com>
7292         * Make-lang.in: Add entries for s-conca?.o
7294         * Makefile.rtl: Add entries for s-conca?
7296         * debug.adb: Add debug flags -gnatd.c and -gnatd.C to control behavior
7297         of concatenation expansion
7299         * exp_ch4.adb (Expand_Concatenation): Generate calls for certain
7300         string cases instead of expanding assignments inline.
7302         * opt.ads (Optimize_Size): New flag
7304         * s-conca2.ads, s-conca2.adb, s-conca3.adb, s-conca3.ads,
7305         s-conca4.adb, s-conca4.ads, s-conca5.adb, s-conca5.ads, s-conca6.adb,
7306         s-conca6.ads, s-conca7.ads, s-conca7.adb, s-conca8.adb, s-conca8.ads,
7307         s-conca9.adb, s-conca9.ads: New file.
7309 2009-04-16  Robert Dewar  <dewar@adacore.com>
7311         * exp_ch6.adb: Add comments
7313         * rtsfind.ads: Add entries for s-conca? routines
7315 2009-04-16  Arnaud Charlet  <charlet@adacore.com>
7317         * gcc-interface/Make-lang.in: Update dependencies.
7319         * gcc-interface/Makefile.in: Update translation for vms.
7321 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
7323         * sem_ch12.adb (Map_Formal_Package_Entities): renamed from Map_Entities
7324         and made global, to be used when installing parents of a child
7325         instance, to provide mappings for entities declared in formal packages
7326         of ancestor units. Now called from Install_Formal_Packages.
7328 2009-04-16  Doug Rupp  <rupp@adacore.com>
7330         * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events with others
7331         notation for clarity.
7333         * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
7334         s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
7335         s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-posix.adb
7336         (Initialize): Initialize Known_Tasks with Environment task.
7338         * s-taskin.ads (Task_States): Move new states to end for the sake of
7339         GDB compatibility.
7341         * s-tassta.adb (Task_Wrapper): Fix comment about Enter_Task.
7343 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
7345         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): If a protected
7346         operation has an inline pragma, propagate the flag to the internal
7347         unprotected subprogram.
7349 2009-04-16  Doug Rupp  <rupp@adacore.com>
7351         * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-mingw.adb,
7352         s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-irix.adb, 
7353         s-taprop-hpux-dce.adb, s-taprop-posix.adb
7354         (Enter_Task): Move Known_Tasks initialization to s-tassta.adb
7356         * s-taprop-vms.adb (Enter_Task): Likewise.
7357         (Initialize): Import DBEXT, Debug_Register. Register DBGEXT callback.
7359         * s-tassta.adb (Activate_Tasks): After task creation set state to
7360         Activating, vice Runnable. Initialize Known_Tasks, moved here from
7361         s-taprop.adb (Enter_Task). Set Debug_Event_Activating for debugger.
7362         Set state to Runnable after above.
7363         (Task_Wrapper): Set Debug_Event_Run. In exception block set
7364         Debug_Event_Terminated.
7366         * s-taskin.ads (Task_States): Add new states Activiting and
7367         Activator_Delay_Sleep.
7368         (Bit_Array, Debug_Event_Array): New types.
7369         (Global_Task_Debug_Event_Set: New flag.
7370         (Common_ATCB): New field Debug_Events.
7372         * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events.
7374         * s-tasren.adb (Timed_Selective_Wait): Set Activator_Delay_Sleep vice
7375         Activator_Sleep.
7377         * s-tasini.adb (Locked_Abort_To_Level): Add case alternatives for when
7378         Activating and when Acceptor_Delay_Sleep.
7380         * s-tasdeb.ads: Add constants for Debug_Events.
7381         (Debug_Event_Kind_Type): New subtype.
7382         (Signal_Debug_Event): New subprogram.
7384         * s-tasdeb.adb (Signal_Debug_Event): New null subprogram.
7386 2009-04-16  Thomas Quinot  <quinot@adacore.com>
7388         * sem_elim.adb: Minor reformatting
7390         * freeze.adb: Minor reformatting
7392         * exp_ch4.adb: Minor reformatting
7394 2009-04-16  Emmanuel Briot  <briot@adacore.com>
7396         * prj-nmsc.adb (Path_Name_Of): fix memory leak
7398 2009-04-16  Robert Dewar  <dewar@adacore.com>
7400         * sinfo.ads (Backwards_OK, Forwards_OK): Clarify documentation
7402 2009-04-16  Vincent Celier  <celier@adacore.com>
7404         * fmap.adb (Initialize): Show the current line when the mapping file
7405         is detected as "incorrectly formatted".
7407 2009-04-16  Robert Dewar  <dewar@adacore.com>
7409         * sem_ch12.adb: Minor reformatting
7411         * sem_ch5.adb: Minor comment addition
7413         * sem_util.adb: Minor reformatting
7415         * sinput-p.adb: Minor reformatting
7416         Add missing pragma Warnings (On)
7418 2009-04-16  Ed Falis  <falis@adacore.com>
7420         * s-vxwext-kernel.adb: (ERROR): deleted unused constant
7422 2009-04-16  Vincent Celier  <celier@adacore.com>
7424         * ali-util.adb: Minor comment spelling error fix
7426 2009-04-16  Eric Botcazou  <ebotcazou@adacore.com>
7428         * exp_ch5.adb (Expand_Assign_Array): For the GCC back-end, do not
7429         generate an assignment loop in case of overlap.
7431 2009-04-16  Olivier Hainque  <hainque@adacore.com>
7433         * gnat_ugn.texi (gnatmem description): Make it explicit that
7434         gnatmem is designed to work in association with static runtime
7435         library only.
7437 2009-04-16  Thomas Quinot  <quinot@adacore.com>
7439         * sem_type.adb: Minor reformatting
7441 2009-04-16  Hristian Kirtchev  <kirtchev@adacore.com>
7443         * s-osprim-darwin.adb, s-osprim-posix.adb (Clock): Add comment
7444         concerning return codes of gettimeofday and return value check.
7446 2009-04-16  Ed Falis  <falis@adacore.com>
7448         * s-vxwext-kernel.ads (Int_Lock, Int_Unlock): set to convention C so
7449         body can be renaming of imported routines.
7451 2009-04-16  Vasiliy Fofanov  <fofanov@adacore.com>
7453         * s-asthan-vms-alpha.adb: Disable warnings on alignment in a more
7454         targeted fashion.
7456 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
7458         * exp_ch9.adb: Comment improvements.
7459         (Build_Entry_Family_Name): Add parentheses around the index of a entry
7460         family member.
7462 2009-04-15  Bob Duff  <duff@adacore.com>
7464         * sem_warn.adb (Check_Infinite_Loop_Warning): Catch cases like
7465         "while X /= null loop" where X is unchanged inside the loop. We were
7466         not warning in this case, because of the pointers -- we feared that the
7467         loop variable could be updated via a pointer, if there are any pointers
7468         around the place. But that is impossible in this case.
7470         * sem_util.adb (May_Be_Lvalue): This routine was overly pessimistic in
7471         the case of dereferences. In X.all, X cannot be an l-value. We now
7472         catch that case (and implicit dereferences, too).
7474 2009-04-15  Vincent Celier  <celier@adacore.com>
7476         * sinput-p.ads, sinput-p.adb (Clear_Source_File_Table): New procedure
7478 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7480         * sem_ch12.adb (Is_Actual_Of_Previous_Formal): Make fully recursive.
7481         From code reading.
7482         (Analyze_Package_Instantiation): If generic unit in child instance is
7483         the same as generic unit in parent instance, look for an outer homonym
7484         to locate the desired generic.
7486 2009-04-15  Bob Duff  <duff@adacore.com>
7488         * sem_ch5.adb (Analyze_Loop_Statement): Don't check for infinite loop
7489         warnings unless the loop comes from source, because checking generated
7490         loops is a waste of time, and makes it harder to debug
7491         Check_Infinite_Loop_Warning.
7493         * sem_warn.adb (Check_Infinite_Loop_Warning): If the local variable
7494         tested in the while loop is a renaming, do not warn. Otherwise, we get
7495         false alarms, because it's usually renaming something that we can't
7496         deal with (an indexed component, a global variable, ...).
7498         * gnat_rm.texi: Fix typo
7500 2009-04-15  Thomas Quinot  <quinot@adacore.com>
7502         * sem_ch6.adb: Minor reformatting
7504 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
7506         * exp_ch7.adb (Expand_Ctrl_Function_Call): Check for the case where the
7507         immediate parent of the controlled function call is a component
7508         association.
7510 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7512         * sem_ch8.adb (Use_One_Type): If the type is tagged, indicate that the
7513         corresponding class-wide type is also in use.
7515 2009-04-15  Thomas Quinot  <quinot@adacore.com>
7517         * frontend.adb: Minor comment fix
7519 2009-04-15  Robert Dewar  <dewar@adacore.com>
7521         * gnatchop.adb (BOM_Length): New global variable
7522         (Write_Unit): Add new parameter Write_BOM
7523         (Write_Chopped_Files): Check for BOM and set Write_BOM for call
7524         to Write_Unit
7526         * gnat_ugn.texi: Add note on propagation of BOM by gnatchop
7528 2009-04-15  Geert Bosch  <bosch@adacore.com>
7530         * system-mingw-x86_64.ads, system-darwin-x86_64.ads
7531         (Backend_Overflow_Checks): Set to True.
7533 2009-04-15  Gary Dismukes  <dismukes@adacore.com>
7535         * par-ch3.adb (P_Type_Declaration): Issue an error if the synchronized
7536         keyword is given in a record extension.
7538 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
7540         * exp_ch7.adb (Expand_Ctrl_Function_Call): Procede with the expansion
7541         of a controlled function call in the context of a record aggregate.
7542         This does not apply to array aggregates since the call will be expanded
7543         into assignments.
7545 2009-04-15  Ed Falis  <falis@adacore.com>
7547         * s-osinte-vxworks-kernel.adb, s-osinte-vxworks.adb,
7548         s-osinte-vxworks.ads s-vxwext.ads, s-vxwext-kernel.adb,
7549         s-vxwext-kernel.ads, s-vxwext-rtp.ads, s-vxwext-rtp.adb: Reorganize
7550         s-osinte-vxworks* and s-vxwext*.
7552 2009-04-15  Arnaud Charlet  <charlet@adacore.com>
7554         * gcc-interface/Make-lang.in: Update dependencies.
7556         * gcc-interface/Makefile.in: Reorganization of s-osinte-vxworks*
7557         and s-vxwext*.
7559 2009-04-15  Robert Dewar  <dewar@adacore.com>
7561         * sem_ch13.adb (Unchecked_Conversions): Store source location instead
7562         of node for location for warning messages.
7564         * gnatchop.adb: Minor reformatting
7566 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7568         * exp_ch6.adb: additional guard for renaming declarations for in
7569         parameters of an array type.
7571 2009-04-15  Robert Dewar  <dewar@adacore.com>
7573         * sem_eval.adb (Get_Static_Length): Go to origin node for array bounds
7574         in case they were rewritten by expander (Force_Evaluation).
7576         * targparm.adb (Get_Target_Parameters): Correct check for
7577         Suppress_Exception_Locations.
7579 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7581         * exp_ch6.adb (Expand_Inlined_Call): If an in-parameter in a call to be
7582         inlined  is of an array type that is not bit-packed, use a renaming
7583         declaration to capture its value, rather than a constant declaration.
7585 2009-04-15  Robert Dewar  <dewar@adacore.com>
7587         * rtsfind.adb: Minor reformatting.
7589 2009-04-15  Emmanuel Briot  <briot@adacore.com>
7591         * prj-part.adb, prj-tree.adb, prj-tree.ads (Restore_And_Free): renames
7592         Restore, and free the saved context.
7594 2009-04-15  Gary Dismukes  <dismukes@adacore.com>
7596         * sem_ch3.adb (Analyze_Private_Extension_Declaration): Move error check
7597         for illegal private extension from a synchronized interface parent in
7598         front of check for illegal limited extension so that limited extension
7599         from a synchronized interface will be rejected.
7600         (Check_Ifaces): Check that a private extension that has a synchronized
7601         interface as a progenitor must be explicitly declared synchronized.
7602         Also check that a record extension cannot derive from a synchronized
7603         interface.
7605 2009-04-15  Pascal Obry  <obry@adacore.com>
7607         * adaint.h (__gnat_unlink): Add spec.
7608         (__gnat_rename): Likewise.
7610 2009-04-15  Vincent Celier  <celier@adacore.com>
7612         * prj-nmsc.adb: Minor spelling error corrections in error messages
7614 2009-04-15  Robert Dewar  <dewar@adacore.com>
7616         * sinfo.ads: Minor comment update
7618         * opt.ads: Minor comment updates
7620         * checks.adb (Enable_Overflow_Check): Do not set Do_Overflow_Check for
7621         modular type.
7623 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7625         * exp_disp.ads, exp_disp.adb (Register_Primitive): Is now a function
7626         that generates the code needed to update a dispatch table when a
7627         primitive operation is declared with a subprogram body without previous
7628         spec. Insertion of the generated code is responsibility of the caller.
7629         (Make_DT): When building static tables, append the code created by
7630         Register_Primitive to update a secondary table after it has been
7631         constructed.
7633         * exp_ch3.adb, exp_ch6.adb: use new version of Register_Primitive.
7635         * sem_disp.adb (Check_Dispatching_Operation): Call Register_Primitive
7636         on an overriding operation that implements an interface operation only
7637         if not building static dispatch tables.
7639 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
7641         * a-caldel-vms.adb (To_Duration): Declare a "safe" end of time which
7642         does not cause overflow when converted to Duration. Use the safe value
7643         as the maximum allowable time delay..
7645 2009-04-15  Jerome Lambourg  <lambourg@adacore.com>
7647         * g-comlin.adb (Set_Command_Line): When adding a switch with attached
7648         parameter, specify that the delimiter is NUL, otherwise "-j2" will be
7649         translated to "-j 2".
7651 2009-04-15  Bob Duff  <duff@adacore.com>
7653         * rtsfind.adb (Maybe_Add_With): Split out procedure to add implicit
7654         with_clauses, to avoid code duplication. Change this processing so we
7655         always add a with_clause on the main unit if needed.
7657 2009-04-15  Pascal Obry  <obry@adacore.com>
7659         Add support for Win32 native encoding for delete/rename routines.
7660         
7661         * adaint.c (__gnat_unlink): New routine.
7662         (__gnat_rename): New routine.
7663         Simple wrapper routines used to convert to proper encoding on
7664         Windows.
7666         * s-os_lib.adb: Use __gnat_unlink and __gnat_rename instead of direct
7667         call to the C library.
7669         * g-sercom-mingw.adb, s-win32.ads: Update Win32 binding.
7671 2009-04-15  Robert Dewar  <dewar@adacore.com>
7673         * s-tassta.adb: Minor reformatting
7675 2009-04-15  Robert Dewar  <dewar@adacore.com>
7677         * frontend.adb (Frontend): Set proper default for
7678         Warn_On_Non_Local_Exception.
7680         * opt.ads (Exception_Handler_Encountered): New flag
7681         (No_Warn_On_Non_Local_Exception): New flag
7683         * par-ch11.adb (P_Exception_Handler): Set Exception_Handler_Encountered
7685         * sem_warn.adb (Set_Warning_Switch): Set No_Warn_On_Non_Local_Exception
7686         (Set_Dot_Warning_Switch): Set No_Warn_On_Non_Local_Exception
7688 2009-04-15  Cyrille Comar  <comar@adacore.com>
7690         * s-tassta.adb, a-exextr.adb, a-elchha.adb
7691         (Ada.Exception.Last_Chance_Handler): Do not print unhandled exception
7692         message when exception traces are active since it would generate
7693         redundant information.
7694         (Exception_Traces.Notify_Exception): put message output by a critical
7695         section to avoid unsynchronized output.
7696         (Trace_Unhandled_Exception_In_Task): put message output by a critical
7697         section to avoid unsynchronized output.
7699 2009-04-15  Emmanuel Briot  <briot@adacore.com>
7701         * g-comlin.adb, prj-tree.adb, prj-tree.ads, prj.adb, prj.ads
7702         (Free): New subprogram.
7704 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
7706         * a-calend.adb: Add new constant Nanos_In_Four_Years.
7707         (Formatting_Operations.Time_Of): Change the way four year chunks of
7708         nanoseconds are added to the intermediate result.
7710 2009-04-15  Nicolas Setton  <setton@adacore.com>
7712         * sysdep.c: Add __APPLE__ in the list of systems where get_immediate
7713         does not need to wait for a carriage return.
7715 2009-04-15  Tristan Gingold  <gingold@adacore.com>
7717         * bindgen.adb: Do not generate adafinal if No_Finalization restriction
7718         is set.
7720 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7722         * freeze.adb (Freeze_Entity): improve error message for improper use of
7723         incomplete types.
7724         Diagnose additional illegal uses of incomplete types in formal parts.
7725         appearing in formal parts.
7727         * sem_ch6.adb (Process_Formals, Analyze_Return_Type): ditto.
7729 2009-04-15  Robert Dewar  <dewar@adacore.com>
7731         * exp_ch4.adb (Expand_N_Allocator): Install test for object too large.
7733 2009-04-15  Nicolas Roche  <roche@adacore.com>
7735         * adaint.c: Add function __gnat_lwp_self that retrieves the LWP of the
7736         current thread.
7738         * s-osinte-linux.ads: Import the __gnat_lwp_self function as lwp_self
7740         * s-taprop-linux.adb (Enter_Task): Store the LWP in the TCB
7742 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7744         * sem_ch4.adb: improve error message on exponentiation.
7746 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
7748         * a-calend.adb: Move constant Epoch_Offset from package
7749         Conversion_Operations to top level.
7750         (Delay_Operations.To_Duration): Define a constant which represents
7751         "end of time" and use it as a guard against very distant delay dates.
7752         Protect the code against overflow when performing the origin shift to
7753         Unix time.
7755 2009-04-15  Robert Dewar  <dewar@adacore.com>
7757         * sem_prag.adb: Minor reformatting.
7759         * sem_type.adb: Minor reformatting
7761 2009-04-15  Javier Miranda  <miranda@adacore.com>
7763         * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Add missing
7764         support to check eliminated subprograms.
7766         * sem_elim.ads (Eliminate_Error_Msg): Update documentation.
7768         * sem_elim.adb (Set_Eliminated): Add support for elimination of
7769         dispatching subprograms.
7771         * exp_disp.adb (Make_DT): Minor code cleanup when freezing primitive
7772         operations. Initialize with "null" the slots of eliminated dispaching
7773         primitives.
7774         (Write_DT): Add output for eliminated primitives.
7776         * sem_disp.adb (Check_Dispatching_Call): Check eliminated primitives.
7778 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7780         * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit,
7781         the second is redundant, regardless of scopes.
7783 2009-04-15  Vincent Celier  <celier@adacore.com>
7785         * prj-nmsc.adb (Get_Directories): Check for sources before checking
7786         the object directory as when there are no sources, they may not be any
7787         object directory.
7789         * make.adb (Gnatmake): Do not attempt to get the path name of the exec
7790         directory, when there are no exec directory.
7792 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7794         * sem_type.adb (Remove_Conversions): In order to resolve spurious
7795         ambiguities, refine removal of universal interpretations from complex
7796         expressions with literal arguments, when some numeric operators have
7797         been declared abstract.
7799 2009-04-15  Ed Falis  <falis@adacore.com>
7801         * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity
7802         and backward compatibility for targets using probing for stack overflow
7804 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7806         * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal
7807         after any declaration, including renaming declarations.
7809 2009-04-15  Arnaud Charlet  <charlet@adacore.com>
7811         * gcc-interface/Make-lang.in: Update dependencies.
7813         * gcc-interface/Makefile.in: Fix VxWorks target pairs.
7814         Update xenomai target pairs.
7816 2009-04-15  Javier Miranda  <miranda@adacore.com>
7818         * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
7820         * sem_ch6.adb (Check_Anonymous_Return): Add missing support for
7821         functions returning anonymous access to class-wide limited types. Mark
7822         also the containing scope as a task master.
7824         * sem_ch8.adb (Restore_Scope_Stack): Add missing management for
7825         limited-withed packages. Required to restore their visibility after
7826         processing packages associated with implicit with-clauses.
7828         * exp_ch3.adb (Build_Class_Wide_Master): Avoid marking masters
7829         associated with return statements because this work is now done by
7830         Check_Anonymous_Return.
7831         (Build_Master): Code cleanup.
7833 2009-04-15  Thomas Quinot  <quinot@adacore.com>
7835         * sem_warn.ads: Minor reformatting
7837 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7839         * sem_ch3.adb: better error message for illegal interfaces
7841         * sem_ch6.adb (Possible_Freeze): Delay freezing a subprogram if a
7842         formal is an incomplete type from a limited_with clause.
7844 2009-04-15  Vincent Celier  <celier@adacore.com>
7846         * prj-nmsc.adb (Locate_Directory): New Boolean parameter
7847         Externally_Built indicating if the project is externally built. If it
7848         is, and --subdirs is specified, but the subdir does not exist, look
7849         for the specified directory, without the subdir.
7851 2009-04-15  Gary Dismukes  <dismukes@adacore.com>
7853         * a-tasatt.adb: Fix typo, plus minor reformatting
7855         * sem_ch3.ads: Add missing hyphen ("class wide" => "class-wide").
7857         * sem_ch10.adb: Add missing hyphen ("use visible" => "use-visible").
7859 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7861         * sem_ch3.adb (Analyze_Private_Extension_Declaration): Verify that a
7862         private extension whose parent is a synchronized interface carries an
7863         explicit synchronized keyword.
7865 2009-04-15  Thomas Quinot  <quinot@adacore.com>
7867         * exp_smem.adb (Make_Shared_Var_Procs): For a protected type,
7868         instantiate generic shared object package with the corresponding
7869         record type.
7871 2009-04-15  Arnaud Charlet  <charlet@adacore.com>
7873         * system-linux-sparc.ads: Remove obsolete entries.
7875 2009-04-15  Thomas Quinot  <quinot@adacore.com>
7877         * s-tasuti.ads: Add ??? comment
7879 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7881         * sem_ch3.adb (Analyze_Type_Declaration): Create freeze node for access
7882         type even if the designated type comes from a limited_with clause, to
7883         ensure that the symbol for the finalization list of the access type is
7884         created.
7886 2009-04-10  Robert Dewar  <dewar@adacore.com>
7888         * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): Catch more cases
7889         for warning suppression.
7891 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
7893         * sem_ch8.adb (Use_One_Type): If the two use_type clauses are
7894         identical, there is no redudancy to check.
7896 2009-04-10  Gary Dismukes  <dismukes@adacore.com>
7898         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Delete redundant
7899         calls initializing SS_Allocator (which is initialized in following
7900         code).
7901         (Expand_Simple_Function_Return): Add comment about False value for
7902         Comes_From_Source on secondary-stack allocator.
7904         * exp_ch9.adb (Build_Entry_Family_Name): Add comment.
7905         (Build_Entry_Name): Add comment.
7907 2009-04-10  Robert Dewar  <dewar@adacore.com>
7909         * einfo.ads, einfo.adb (Low_Bound_Tested): New name for Low_Bound_Known
7911         * sem_prag.adb (Analyze_Pragma, case Check): Remove check for lower
7912         bound tested, since this is now done more generally in Sem_Res.
7914         * sem_res.adb (Resolve_Comparison_Op): Add call to
7915         Check_Lower_Bound_Tested.
7916         (Resolve_Equality_Op): Add call to Check_Lower_Bound_Tested
7918         * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): New procedure
7919         (Low_Bound_Tested): New name for Low_Bound_Known flag
7921         * exp_ch5.adb: Minor reformatting
7923         * exp_ch4.adb:
7924         Add comments on copying the Comes_From_Source flag for allocators
7926         * sinfo.ads:
7927         Add comments on copying the Comes_From_Source flag for allocators
7929         * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Copy
7930         Comes_From_Source flag from old allocator to new one.
7932 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
7934         * sem_ch6.ads: Address missing documentation query
7936 2009-04-10  Vincent Celier  <celier@adacore.com>
7938         * prj-attr.adb:
7939         Add new Linker attributes Max_Command_Line_Length, Response_File_Format
7940         and Response_File_Switches.
7942         * prj-nmsc.adb (Process_Linker): Process new attributes
7943         Max_Command_Line_Length, Response_File_Format and
7944         Response_File_Switches.
7946         * prj.ads (Response_File_Format): New enumeration type
7947         (Project_Configuration): New componants Max_Command_Line_Length,
7948         Resp_File_Format and Resp_File_Options.
7950         * snames.ads-tmpl: Add new standard names for linking response files
7951         for gprbuild: GNU, None, Object_List, Option_List,
7952         Max_Command_Line_Length, Response_File_Format and
7953         Response_File_Switches.
7955 2009-04-10  Geert Bosch  <bosch@adacore.com>
7957         * system-aix.ads, system-darwin-ppc.ads, system-darwin-x86.ads,
7958         system-freebsd-x86.ads, system-hpux.ads, system-hpux-ia64.ads,
7959         system-irix-n32.ads, system-irix-o32.ads, system-linux-alpha.ads,
7960         system-linux-hppa.ads, system-linux-ia64.ads, system-linux-ppc.ads,
7961         system-linux-s390.ads, system-linux-s390x.ads, system-linux-sh4.ads,
7962         system-linux-sparc.ads, system-linux-x86_64.ads, system-linux-x86.ads,
7963         system-mingw.ads, system-solaris-sparc.ads, system-solaris-sparcv9.ads,
7964         system-solaris-x86.ads, system-tru64.ads, system-vms_64.ads,
7965         system-vms.ads, system-vms-ia64.ads, system-vms-zcx.ads,
7966         system-vxworks-arm.ads, system-vxworks-m68k.ads,
7967         system-vxworks-mips.ads, system-vxworks-ppc.ads,
7968         system-vxworks-sparcv9.ads, system-vxworks-x86.ads
7969         (Backend_Overflow_Checks): Set to True.
7971 2009-04-10  Thomas Quinot  <quinot@adacore.com>
7973         * exp_attr.adb: Minor reformatting
7975 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
7977         * sem_prag.adb (Check_Precondition_Postcondition): Within a generic,
7978         analyze the expression for a postcondition, even if the compiler mode
7979         is Generate_Code.
7981 2009-04-10  Robert Dewar  <dewar@adacore.com>
7983         * sem_aux.adb: Minor reformatting
7985 2009-04-10  Ed Falis  <falis@adacore.com>
7987         * init.c: Change VxWorks 6 stack overflow checking for kernel apps.
7989         * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header.
7991 2009-04-10  Thomas Quinot  <quinot@adacore.com>
7993         * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
7994         undocumented formal.
7995         Minor reformatting
7997         * a-direio.ads: Fix typo in comment
7999         * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
8000         errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
8001         Use uniform phrasing for comment at start of subprogram body.
8003         * xsnamest.adb: Add note to explain why we use specific names for the
8004         newly generated files instead of generating snames.{ads,adb,h} directly
8006 2009-04-10  Sergey Rybin  <rybin@adacore.com>
8008         * vms_data.ads:
8009         Add qualifier for new gnatstub option '--no-exception'
8011         * gnat_ugn.texi:
8012         Add the description of the new gnatstub option '--no-exception'
8014 2009-04-10  Robert Dewar  <dewar@adacore.com>
8016         * rtsfind.adb: Minor reformatting
8018 2009-04-10  Thomas Quinot  <quinot@adacore.com>
8020         * sem_disp.adb: Minor reformatting.
8021         Add comment pointing to RM clause for the case of warning against a
8022         (failed) attempt at declaring a primitive operation elsewhere than in a
8023         package spec.
8025 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
8027         * sem_ch12.adb (Denotes_Formal_Package): Check whether the package is
8028         an actual for a previous formal package of the current instance.
8030 2009-04-10  Bob Duff  <duff@adacore.com>
8032         * rtsfind.adb (RTE): Put implicit with_clauses on whatever unit needs
8033         them first, rather than on the extended main unit.
8035 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
8037         * sem_ch6.adb (Check_Discriminant_Conformance): If discriminant
8038         specification of full view carries a null exclusion indicator, create
8039         an itype for it, to check for conformance with partial view.
8041 2009-04-10  Bob Duff  <duff@adacore.com>
8043         * rtsfind.ads: Minor code change: make RE_Unit_Table constant.
8045         * rtsfind.adb: Minor comment changes, and remove useless code.
8047         * sinfo.ads: Add ??? comment.
8049 2009-04-10  Vincent Celier  <celier@adacore.com>
8051         * vms_data.ads: Add missing GNAT SYNC VMS qualifiers -main= and -U
8053 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
8055         * exp_attr.adb (Expand_N_Attribute_Reference, case 'Tag): If the tagged
8056         type is a synchronized type, retrieve tag information from the
8057         corresponding record, which has the dispatch table link.
8059 2009-04-10  Jerome Lambourg  <lambourg@adacore.com>
8061         * g-comlin.adb (Group_Analysis): Take care of switches that might be
8062         decomposed afterwards, but are present as-is in the command line
8063         configuration, and thus should be kept as-is.
8065 2009-04-10  Robert Dewar  <dewar@adacore.com>
8067         * gnat_rm.texi: Document that postconditions are tested on implicit
8068         returns.
8070         * sem_aux.adb: Minor reformatting
8072 2009-04-10  Gary Dismukes  <dismukes@adacore.com>
8074         * itypes.adb (Create_Null_Excluding_Itype): Apply Base_Type when
8075         setting Etype.
8076         
8077         * par-ch3.adb (P_Access_Type_Definition): Set new attribute
8078         Null_Exclusion_In_Return_Present when an access-to-function type has a
8079         result type with an explicit not null.
8081         * sem_ch3.adb (Access_Subprogram_Definition): If a null exclusion is
8082         given on the result type, then create a null-excluding itype for the
8083         function.
8085         * sem_ch6.adb (Analyze_Return_Type): Create a null-excluding itype in
8086         the case where a null exclusion is imposed on a named access type.
8087         (Analyze_Subprogram_Specification): Push and pop the scope of the
8088         function around the call to Analyze_Return_Type in the case of no
8089         formals, for consistency with handling when formals are present
8090         (Process_Formals does this). Ensures that any itype created for the
8091         return type will be associated with the proper scope.
8093         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): If a null
8094         exclusion is given on a generic function's result type, then create a
8095         null-excluding itype for the generic function.
8096         (Instantiate_Object): Set Null_Exclusion_Present of a constant created
8097         for an actual for a formal in object according to the setting on the
8098         formal. Ensures null exclusion checks are done when the association is
8099         elaborated.
8101         * sinfo.ads: Add new flag Null_Exclusion_In_Return_Present on
8102         N_Access_Function_Definition.
8104         * sinfo.adb: Add Get_ and Set_ operations for
8105         Null_Exclusion_In_Return_Present.
8107 2009-04-10  Bob Duff  <duff@adacore.com>
8109         * exp_ch5.adb, exp_ch6.adb, sem_ch6.adb: Move the code that creates a
8110         call to the _Postconditions procedure in the case of implicit returns
8111         from analysis to expansion. This eliminates some duplicated code. Use
8112         the Postcondition_Proc to find the identity of this procedure during
8113         expansion.
8115 2009-04-10  Robert Dewar  <dewar@adacore.com>
8117         * sem_ch6.adb: Minor code clean up.
8119         * einfo.ads, sem_attr.adb: Minor comment fixes.
8121 2009-04-10  Robert Dewar  <dewar@adacore.com>
8123         * sem_ch8.adb: Minor reformatting
8125 2009-04-10  Robert Dewar  <dewar@adacore.com>
8127         * einfo.ads, einfo.adb (Postcondition_Proc): New attribute for
8128         procedures.
8130         * sem_ch6.adb: Minor code clean up.
8132 2009-04-10  Robert Dewar  <dewar@adacore.com>
8134         * mlib-tgt-specific-xi.adb: Minor reformatting
8136 2009-04-10  Bob Duff  <duff@adacore.com>
8138         * einfo.ads: Minor comment fixes
8140 2009-04-10  Vincent Celier  <celier@adacore.com>
8142         * snames.ads-tmpl: Remove names that are no longer used in the
8143         Project Manager.
8144         Mark specifically those that are used only in gprbuild
8146 2009-04-10  Eric Botcazou  <ebotcazou@adacore.com>
8148         * init.c: Adjust EH support code on Alpha/Tru64.
8150 2009-04-10  Bob Duff  <duff@adacore.com>
8152         * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions
8153         procedure on every path that could return implicitly (not via a return
8154         statement) from a procedure.
8156 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
8158         * exp_ch9.adb (Build_Master_Entity): An extended return statement is a
8159         valid scope for a task declarations and therefore for a master id.
8161 2009-04-10  Robert Dewar  <dewar@adacore.com>
8163         * sem_aux.adb: Minor reformatting
8165 2009-04-10  Vincent Celier  <celier@adacore.com>
8167         * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to
8168         True.
8169         (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False
8170         (Set_Obsolescent_Check): New procedure to change the value of
8171         Obsolescent_Check_Flag.
8173         * scn.ads (Set_Obsolescent_Check): New procedure to control
8174         Obsolescent_Check.
8176         * sinput-l.adb (Load_File): Do not check for pragma Restrictions on
8177         obsolescent features while preprocessing.
8179 2009-04-10  Thomas Quinot  <quinot@adacore.com>
8181         * xsnamest.adb: Use XUtil to have uniform line endings (UNIX style) in
8182         generated files on all platforms.
8184 2009-04-10  Robert Dewar  <dewar@adacore.com>
8186         * sem_aux.adb: Minor reformatting
8188 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
8190         * sem_ch3.adb (Access_Definition): Handle properly the case of a
8191         protected function with formals that returns an anonymous access type.
8193 2009-04-10  Thomas Quinot  <quinot@adacore.com>
8195         * sem_disp.adb: Minor reformatting
8197 2009-04-10  Vasiliy Fofanov  <fofanov@adacore.com>
8199         * seh_init.c: Do not use the 32-bit specific implementation of
8200         __gnat_install_SEH_handler on 64-bit Windows target (64-bit specific
8201         version TBD).
8203 2009-04-10  Jose Ruiz  <ruiz@adacore.com>
8205         * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Target_Name may contain
8206         a '/' at the end so we better use the complete target name to determine
8207         whether it is a PowerPC 55xx target.
8209 2009-04-10  Thomas Quinot  <quinot@adacore.com>
8211         * sem_eval.adb: Minor reformatting
8213 2009-04-10  Thomas Quinot  <quinot@adacore.com>
8215         * snames.h, snames.ads, snames.adb: Remove files, now generated from
8216         templates.
8218         * snames.h-tmpl, snames.ads-tmpl, snames.adb-tmpl: Templates for the
8219         above.
8221         * xsnamest.adb: New file.
8223         * gcc-interface/Make-lang.in: New target for automated generation of
8224         snames.ads, snames.adb and snames.h
8226 2009-04-10  Tristan Gingold  <gingold@adacore.com>
8228         * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to
8229         avoid compile time warnings.
8230         Do not add gcc/config in include search list while compiling the RTS.
8231         Pragma Thread_Local_Storage is available on any target.
8233 2009-04-10  Bob Duff  <duff@adacore.com>
8235         * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes.
8237 2009-04-10  Tristan Gingold  <gingold@adacore.com>
8239         * init.c: Install signal handler on Darwin.
8241 2009-04-10  Robert Dewar  <dewar@adacore.com>
8243         * sem_prag.adb: Minor reformatting
8245         * exp_util.adb (Make_Non_Empty_Check): New function
8246         (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check
8247         (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check
8249 2009-04-10  Arnaud Charlet  <charlet@adacore.com>
8251         * make.adb, gnatlink.adb: Rename JGNAT toolchain.
8253 2009-04-10  Jose Ruiz  <ruiz@adacore.com>
8255         * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate
8256         tool prefix for AVR and PowerPC 55xx targets.
8258 2009-04-10  Robert Dewar  <dewar@adacore.com>
8260         * sem_warn.adb (Within_Postcondition): New function
8261         (Check_Unset_Reference): Use Within_Postcondition to stop bad warning
8263 2009-04-10  Robert Dewar  <dewar@adacore.com>
8265         * sem_warn.adb: Minor reformatting
8267         * make.adb: Minor reformatting.
8269 2009-04-10  Gary Dismukes  <dismukes@adacore.com>
8271         * exp_ch7.adb (Find_Final_List): When creating a finalization-chain
8272         entity and the scope is a subprogram, retrieve the Sloc of the
8273         subprogram's body rather than using the sloc of the spec, for better
8274         line-stepping behavior in gdb.
8275         (Wrap_Transient_Declaration): For the Sloc of nodes created with a list
8276         controller, use the Sloc of the first declaration of the containing list
8277         rather than that of the node that triggered creation of the list
8278         controller.
8280 2009-04-10  Vincent Celier  <celier@adacore.com>
8282         * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing
8283         to avoid gcc warning.
8285 2009-04-10  Robert Dewar  <dewar@adacore.com>
8287         * g-comlin.adb: Add ??? comment
8289 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
8291         * sem_warn.adb (Check_Unused_Withs): Do not emit message about
8292         unreferenced entities for a package with no visible declarations.
8294 2009-04-10  Robert Dewar  <dewar@adacore.com>
8296         * exp_ch9.adb: Minor reformatting
8298 2009-04-10  Thomas Quinot  <quinot@adacore.com>
8300         * sem_prag.adb: Minor reformatting
8302 2009-04-10  Vincent Celier  <celier@adacore.com>
8304         * prj-nmsc.adb:
8305         (Check_Library_Attributes): For a project qualified as a library project
8306         that is not a library project, indicate in the error message which
8307         attributes are missing (Library_Dir and/or Library_Name).
8309 2009-04-10  Bob Duff  <duff@adacore.com>
8311         * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of
8312         generated nodes, because it might confuse various circuits in the FE.
8314 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
8316         * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument
8317         of pragma. It will be recopied and analyzed when used in call to
8318         Create_Task.
8320         * sem_res.adb (Resolve_Call): Clarify use of secondary stack within
8321         initialization operations and recognize use of it in procedure calls
8322         within init_procs.
8324         * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name
8325         argument, because it may have side-effects.
8327         * exp_ch2.adb: Remove obsolete comments on default functions
8329 2009-04-10  Jose Ruiz  <ruiz@adacore.com>
8331         * adaint.c (RTX section): Do for RTX the same thing as we do for
8332         Windows (include ctype.h and define a fallback ISALPHA if IN_RTS).
8334 2009-04-10  Robert Dewar  <dewar@adacore.com>
8336         * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function.
8338         * sem_res.adb (Resolve_Call): Fix test for
8339         Suppress_Value_Tracking_On_Call (was wrong for the case of a call from
8340         a non-dynamic scope).
8342 2009-04-10  Robert Dewar  <dewar@adacore.com>
8344         * make.adb: Add comment.
8345         Minor reformatting
8347 2009-04-10  Nicolas Setton  <setton@adacore.com>
8349         * s-osprim-darwin.adb: New file.
8351         * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec.
8353 2009-04-10  Thomas Quinot  <quinot@adacore.com>
8355         * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set
8357 2009-04-09  Nick Clifton  <nickc@redhat.com>
8359         * adadecode.h: Change copyright header to refer to version
8360         3 of the GNU General Public License with version 3.1 of the
8361         GCC Runtime Library Exception and to point readers at the
8362         COPYING3 and COPYING3.RUNTIME files and the FSF's license web
8363         page.
8364         * 9drpc.adb: Likewise.
8365         * a-assert.adb: Likewise.
8366         * a-astaco.adb: Likewise.
8367         * a-calari.adb: Likewise.
8368         * a-calcon.adb: Likewise.
8369         * a-calcon.ads: Likewise.
8370         * a-caldel.ads: Likewise.
8371         * a-calend-vms.adb: Likewise.
8372         * a-calend-vms.ads: Likewise.
8373         * a-calend.adb: Likewise.
8374         * a-calend.ads: Likewise.
8375         * a-calfor.adb: Likewise.
8376         * a-catizo.adb: Likewise.
8377         * a-cdlili.adb: Likewise.
8378         * a-cdlili.ads: Likewise.
8379         * a-cgaaso.adb: Likewise.
8380         * a-cgaaso.ads: Likewise.
8381         * a-cgarso.adb: Likewise.
8382         * a-cgcaso.adb: Likewise.
8383         * a-chacon.adb: Likewise.
8384         * a-chacon.ads: Likewise.
8385         * a-chahan.adb: Likewise.
8386         * a-chahan.ads: Likewise.
8387         * a-chlat9.ads: Likewise.
8388         * a-chtgke.adb: Likewise.
8389         * a-chtgke.ads: Likewise.
8390         * a-chtgop.adb: Likewise.
8391         * a-chtgop.ads: Likewise.
8392         * a-chzla1.ads: Likewise.
8393         * a-chzla9.ads: Likewise.
8394         * a-cidlli.adb: Likewise.
8395         * a-cidlli.ads: Likewise.
8396         * a-cihama.adb: Likewise.
8397         * a-cihama.ads: Likewise.
8398         * a-cihase.adb: Likewise.
8399         * a-cihase.ads: Likewise.
8400         * a-ciorma.adb: Likewise.
8401         * a-ciorma.ads: Likewise.
8402         * a-ciormu.adb: Likewise.
8403         * a-ciormu.ads: Likewise.
8404         * a-ciorse.adb: Likewise.
8405         * a-ciorse.ads: Likewise.
8406         * a-clrefi.adb: Likewise.
8407         * a-clrefi.ads: Likewise.
8408         * a-cohama.adb: Likewise.
8409         * a-cohama.ads: Likewise.
8410         * a-cohase.adb: Likewise.
8411         * a-cohase.ads: Likewise.
8412         * a-cohata.ads: Likewise.
8413         * a-coinve.adb: Likewise.
8414         * a-coinve.ads: Likewise.
8415         * a-colien.adb: Likewise.
8416         * a-colien.ads: Likewise.
8417         * a-colire.adb: Likewise.
8418         * a-colire.ads: Likewise.
8419         * a-comlin.adb: Likewise.
8420         * a-comlin.ads: Likewise.
8421         * a-convec.adb: Likewise.
8422         * a-convec.ads: Likewise.
8423         * a-coorma.adb: Likewise.
8424         * a-coorma.ads: Likewise.
8425         * a-coormu.adb: Likewise.
8426         * a-coormu.ads: Likewise.
8427         * a-coorse.adb: Likewise.
8428         * a-coorse.ads: Likewise.
8429         * a-coprnu.adb: Likewise.
8430         * a-coprnu.ads: Likewise.
8431         * a-crbltr.ads: Likewise.
8432         * a-crbtgk.adb: Likewise.
8433         * a-crbtgk.ads: Likewise.
8434         * a-crbtgo.adb: Likewise.
8435         * a-crbtgo.ads: Likewise.
8436         * a-crdlli.adb: Likewise.
8437         * a-crdlli.ads: Likewise.
8438         * a-cwila1.ads: Likewise.
8439         * a-cwila9.ads: Likewise.
8440         * a-decima.adb: Likewise.
8441         * a-decima.ads: Likewise.
8442         * a-diocst.adb: Likewise.
8443         * a-diocst.ads: Likewise.
8444         * a-direct.adb: Likewise.
8445         * a-direct.ads: Likewise.
8446         * a-direio.adb: Likewise.
8447         * a-direio.ads: Likewise.
8448         * a-dirval-mingw.adb: Likewise.
8449         * a-dirval-vms.adb: Likewise.
8450         * a-dirval.adb: Likewise.
8451         * a-dirval.ads: Likewise.
8452         * a-dynpri.adb: Likewise.
8453         * a-einuoc.adb: Likewise.
8454         * a-einuoc.ads: Likewise.
8455         * a-elchha.adb: Likewise.
8456         * a-elchha.ads: Likewise.
8457         * a-envvar.adb: Likewise.
8458         * a-excach.adb: Likewise.
8459         * a-except-2005.adb: Likewise.
8460         * a-except-2005.ads: Likewise.
8461         * a-except.adb: Likewise.
8462         * a-except.ads: Likewise.
8463         * a-excpol-abort.adb: Likewise.
8464         * a-excpol.adb: Likewise.
8465         * a-exctra.adb: Likewise.
8466         * a-exctra.ads: Likewise.
8467         * a-exetim-mingw.adb: Likewise.
8468         * a-exetim-mingw.ads: Likewise.
8469         * a-exexda.adb: Likewise.
8470         * a-exexpr-gcc.adb: Likewise.
8471         * a-exexpr.adb: Likewise.
8472         * a-exextr.adb: Likewise.
8473         * a-exstat.adb: Likewise.
8474         * a-filico.adb: Likewise.
8475         * a-filico.ads: Likewise.
8476         * a-finali.adb: Likewise.
8477         * a-finali.ads: Likewise.
8478         * a-interr.ads: Likewise.
8479         * a-intnam-aix.ads: Likewise.
8480         * a-intnam-darwin.ads: Likewise.
8481         * a-intnam-dummy.ads: Likewise.
8482         * a-intnam-freebsd.ads: Likewise.
8483         * a-intnam-hpux.ads: Likewise.
8484         * a-intnam-irix.ads: Likewise.
8485         * a-intnam-linux.ads: Likewise.
8486         * a-intnam-lynxos.ads: Likewise.
8487         * a-intnam-mingw.ads: Likewise.
8488         * a-intnam-rtems.ads: Likewise.
8489         * a-intnam-solaris.ads: Likewise.
8490         * a-intnam-tru64.ads: Likewise.
8491         * a-intnam-vms.ads: Likewise.
8492         * a-intnam-vxworks.ads: Likewise.
8493         * a-intsig.adb: Likewise.
8494         * a-intsig.ads: Likewise.
8495         * a-ngcefu.adb: Likewise.
8496         * a-ngcoar.adb: Likewise.
8497         * a-ngcoty.adb: Likewise.
8498         * a-ngcoty.ads: Likewise.
8499         * a-ngelfu.adb: Likewise.
8500         * a-ngrear.adb: Likewise.
8501         * a-ngrear.ads: Likewise.
8502         * a-nudira.adb: Likewise.
8503         * a-nudira.ads: Likewise.
8504         * a-nuflra.adb: Likewise.
8505         * a-nuflra.ads: Likewise.
8506         * a-numaux-darwin.adb: Likewise.
8507         * a-numaux-darwin.ads: Likewise.
8508         * a-numaux-libc-x86.ads: Likewise.
8509         * a-numaux-vxworks.ads: Likewise.
8510         * a-numaux-x86.adb: Likewise.
8511         * a-numaux-x86.ads: Likewise.
8512         * a-numaux.ads: Likewise.
8513         * a-rbtgso.adb: Likewise.
8514         * a-rbtgso.ads: Likewise.
8515         * a-reatim.ads: Likewise.
8516         * a-retide.adb: Likewise.
8517         * a-retide.ads: Likewise.
8518         * a-rttiev.adb: Likewise.
8519         * a-rttiev.ads: Likewise.
8520         * a-secain.adb: Likewise.
8521         * a-secain.ads: Likewise.
8522         * a-sequio.adb: Likewise.
8523         * a-sequio.ads: Likewise.
8524         * a-shcain.adb: Likewise.
8525         * a-shcain.ads: Likewise.
8526         * a-siocst.adb: Likewise.
8527         * a-siocst.ads: Likewise.
8528         * a-slcain.adb: Likewise.
8529         * a-slcain.ads: Likewise.
8530         * a-ssicst.adb: Likewise.
8531         * a-ssicst.ads: Likewise.
8532         * a-stboha.adb: Likewise.
8533         * a-stmaco.ads: Likewise.
8534         * a-storio.adb: Likewise.
8535         * a-strbou.adb: Likewise.
8536         * a-strbou.ads: Likewise.
8537         * a-stream.ads: Likewise.
8538         * a-strfix.adb: Likewise.
8539         * a-strhas.adb: Likewise.
8540         * a-strmap.adb: Likewise.
8541         * a-strmap.ads: Likewise.
8542         * a-strsea.adb: Likewise.
8543         * a-strsea.ads: Likewise.
8544         * a-strsup.adb: Likewise.
8545         * a-strsup.ads: Likewise.
8546         * a-strunb.adb: Likewise.
8547         * a-strunb.ads: Likewise.
8548         * a-ststio.adb: Likewise.
8549         * a-ststio.ads: Likewise.
8550         * a-stunau.adb: Likewise.
8551         * a-stunau.ads: Likewise.
8552         * a-stunha.adb: Likewise.
8553         * a-stwibo.adb: Likewise.
8554         * a-stwibo.ads: Likewise.
8555         * a-stwifi.adb: Likewise.
8556         * a-stwiha.adb: Likewise.
8557         * a-stwima.adb: Likewise.
8558         * a-stwima.ads: Likewise.
8559         * a-stwise.adb: Likewise.
8560         * a-stwise.ads: Likewise.
8561         * a-stwisu.adb: Likewise.
8562         * a-stwisu.ads: Likewise.
8563         * a-stwiun.adb: Likewise.
8564         * a-stwiun.ads: Likewise.
8565         * a-stzbou.adb: Likewise.
8566         * a-stzbou.ads: Likewise.
8567         * a-stzfix.adb: Likewise.
8568         * a-stzhas.adb: Likewise.
8569         * a-stzmap.adb: Likewise.
8570         * a-stzmap.ads: Likewise.
8571         * a-stzsea.adb: Likewise.
8572         * a-stzsea.ads: Likewise.
8573         * a-stzsup.adb: Likewise.
8574         * a-stzsup.ads: Likewise.
8575         * a-stzunb.adb: Likewise.
8576         * a-stzunb.ads: Likewise.
8577         * a-suteio.adb: Likewise.
8578         * a-suteio.ads: Likewise.
8579         * a-swbwha.adb: Likewise.
8580         * a-swmwco.ads: Likewise.
8581         * a-swunau.adb: Likewise.
8582         * a-swunau.ads: Likewise.
8583         * a-swuwha.adb: Likewise.
8584         * a-swuwti.adb: Likewise.
8585         * a-swuwti.ads: Likewise.
8586         * a-sytaco.adb: Likewise.
8587         * a-sytaco.ads: Likewise.
8588         * a-szbzha.adb: Likewise.
8589         * a-szmzco.ads: Likewise.
8590         * a-szunau.adb: Likewise.
8591         * a-szunau.ads: Likewise.
8592         * a-szuzha.adb: Likewise.
8593         * a-szuzti.adb: Likewise.
8594         * a-szuzti.ads: Likewise.
8595         * a-tags.adb: Likewise.
8596         * a-tags.ads: Likewise.
8597         * a-tasatt.ads: Likewise.
8598         * a-taside.adb: Likewise.
8599         * a-taside.ads: Likewise.
8600         * a-taster.adb: Likewise.
8601         * a-teioed.adb: Likewise.
8602         * a-teioed.ads: Likewise.
8603         * a-textio.adb: Likewise.
8604         * a-textio.ads: Likewise.
8605         * a-tiboio.adb: Likewise.
8606         * a-ticoau.adb: Likewise.
8607         * a-ticoau.ads: Likewise.
8608         * a-ticoio.adb: Likewise.
8609         * a-ticoio.ads: Likewise.
8610         * a-tideau.adb: Likewise.
8611         * a-tideau.ads: Likewise.
8612         * a-tideio.adb: Likewise.
8613         * a-tideio.ads: Likewise.
8614         * a-tienau.adb: Likewise.
8615         * a-tienau.ads: Likewise.
8616         * a-tienio.adb: Likewise.
8617         * a-tienio.ads: Likewise.
8618         * a-tifiio.adb: Likewise.
8619         * a-tifiio.ads: Likewise.
8620         * a-tiflau.adb: Likewise.
8621         * a-tiflau.ads: Likewise.
8622         * a-tiflio.adb: Likewise.
8623         * a-tiflio.ads: Likewise.
8624         * a-tigeau.adb: Likewise.
8625         * a-tigeau.ads: Likewise.
8626         * a-tiinau.adb: Likewise.
8627         * a-tiinau.ads: Likewise.
8628         * a-tiinio.adb: Likewise.
8629         * a-tiinio.ads: Likewise.
8630         * a-timoau.adb: Likewise.
8631         * a-timoau.ads: Likewise.
8632         * a-timoio.adb: Likewise.
8633         * a-timoio.ads: Likewise.
8634         * a-tiocst.adb: Likewise.
8635         * a-tiocst.ads: Likewise.
8636         * a-titest.adb: Likewise.
8637         * a-wichun.adb: Likewise.
8638         * a-wichun.ads: Likewise.
8639         * a-witeio.adb: Likewise.
8640         * a-witeio.ads: Likewise.
8641         * a-wtcoau.adb: Likewise.
8642         * a-wtcoau.ads: Likewise.
8643         * a-wtcoio.adb: Likewise.
8644         * a-wtcstr.adb: Likewise.
8645         * a-wtcstr.ads: Likewise.
8646         * a-wtdeau.adb: Likewise.
8647         * a-wtdeau.ads: Likewise.
8648         * a-wtdeio.adb: Likewise.
8649         * a-wtdeio.ads: Likewise.
8650         * a-wtedit.adb: Likewise.
8651         * a-wtedit.ads: Likewise.
8652         * a-wtenau.adb: Likewise.
8653         * a-wtenau.ads: Likewise.
8654         * a-wtenio.adb: Likewise.
8655         * a-wtenio.ads: Likewise.
8656         * a-wtfiio.adb: Likewise.
8657         * a-wtfiio.ads: Likewise.
8658         * a-wtflau.adb: Likewise.
8659         * a-wtflau.ads: Likewise.
8660         * a-wtflio.adb: Likewise.
8661         * a-wtflio.ads: Likewise.
8662         * a-wtgeau.adb: Likewise.
8663         * a-wtgeau.ads: Likewise.
8664         * a-wtinau.adb: Likewise.
8665         * a-wtinau.ads: Likewise.
8666         * a-wtinio.adb: Likewise.
8667         * a-wtmoau.adb: Likewise.
8668         * a-wtmoau.ads: Likewise.
8669         * a-wtmoio.adb: Likewise.
8670         * a-wtmoio.ads: Likewise.
8671         * a-wttest.adb: Likewise.
8672         * a-wwboio.adb: Likewise.
8673         * a-zchuni.adb: Likewise.
8674         * a-zchuni.ads: Likewise.
8675         * a-ztcoau.adb: Likewise.
8676         * a-ztcoau.ads: Likewise.
8677         * a-ztcoio.adb: Likewise.
8678         * a-ztcstr.adb: Likewise.
8679         * a-ztcstr.ads: Likewise.
8680         * a-ztdeau.adb: Likewise.
8681         * a-ztdeau.ads: Likewise.
8682         * a-ztdeio.adb: Likewise.
8683         * a-ztdeio.ads: Likewise.
8684         * a-ztedit.adb: Likewise.
8685         * a-ztedit.ads: Likewise.
8686         * a-ztenau.adb: Likewise.
8687         * a-ztenau.ads: Likewise.
8688         * a-ztenio.adb: Likewise.
8689         * a-ztenio.ads: Likewise.
8690         * a-ztexio.adb: Likewise.
8691         * a-ztexio.ads: Likewise.
8692         * a-ztfiio.adb: Likewise.
8693         * a-ztfiio.ads: Likewise.
8694         * a-ztflau.adb: Likewise.
8695         * a-ztflau.ads: Likewise.
8696         * a-ztflio.adb: Likewise.
8697         * a-ztflio.ads: Likewise.
8698         * a-ztgeau.adb: Likewise.
8699         * a-ztgeau.ads: Likewise.
8700         * a-ztinau.adb: Likewise.
8701         * a-ztinau.ads: Likewise.
8702         * a-ztinio.adb: Likewise.
8703         * a-ztmoau.adb: Likewise.
8704         * a-ztmoau.ads: Likewise.
8705         * a-ztmoio.adb: Likewise.
8706         * a-ztmoio.ads: Likewise.
8707         * a-zttest.adb: Likewise.
8708         * a-zzboio.adb: Likewise.
8709         * adadecode.c: Likewise.
8710         * adaint.c: Likewise.
8711         * adaint.h: Likewise.
8712         * alloc.ads: Likewise.
8713         * argv.c: Likewise.
8714         * arit64.c: Likewise.
8715         * atree.adb: Likewise.
8716         * atree.ads: Likewise.
8717         * aux-io.c: Likewise.
8718         * cal.c: Likewise.
8719         * casing.adb: Likewise.
8720         * casing.ads: Likewise.
8721         * cio.c: Likewise.
8722         * csets.adb: Likewise.
8723         * csets.ads: Likewise.
8724         * cstreams.c: Likewise.
8725         * ctrl_c.c: Likewise.
8726         * debug.adb: Likewise.
8727         * debug.ads: Likewise.
8728         * dec.ads: Likewise.
8729         * einfo.adb: Likewise.
8730         * einfo.ads: Likewise.
8731         * elists.adb: Likewise.
8732         * elists.ads: Likewise.
8733         * env.c: Likewise.
8734         * env.h: Likewise.
8735         * errno.c: Likewise.
8736         * exit.c: Likewise.
8737         * fe.h: Likewise.
8738         * final.c: Likewise.
8739         * fname.adb: Likewise.
8740         * fname.ads: Likewise.
8741         * g-allein.ads: Likewise.
8742         * g-alleve.adb: Likewise.
8743         * g-alleve.ads: Likewise.
8744         * g-altcon.adb: Likewise.
8745         * g-altcon.ads: Likewise.
8746         * g-altive.ads: Likewise.
8747         * g-alveop.adb: Likewise.
8748         * g-alveop.ads: Likewise.
8749         * g-alvety.ads: Likewise.
8750         * g-alvevi.ads: Likewise.
8751         * g-arrspl.adb: Likewise.
8752         * g-arrspl.ads: Likewise.
8753         * g-calend.ads: Likewise.
8754         * g-comlin.adb: Likewise.
8755         * g-debpoo.adb: Likewise.
8756         * g-debpoo.ads: Likewise.
8757         * g-eacodu-vms.adb: Likewise.
8758         * g-eacodu.adb: Likewise.
8759         * g-excact.adb: Likewise.
8760         * g-excact.ads: Likewise.
8761         * g-locfil.adb: Likewise.
8762         * g-os_lib.ads: Likewise.
8763         * g-rannum.adb: Likewise.
8764         * g-rannum.ads: Likewise.
8765         * g-regist.adb: Likewise.
8766         * g-regist.ads: Likewise.
8767         * g-signal.adb: Likewise.
8768         * g-signal.ads: Likewise.
8769         * g-soccon.ads: Likewise.
8770         * g-string.adb: Likewise.
8771         * g-string.ads: Likewise.
8772         * g-strspl.ads: Likewise.
8773         * g-timsta.adb: Likewise.
8774         * g-timsta.ads: Likewise.
8775         * g-trasym-vms-alpha.adb: Likewise.
8776         * g-trasym-vms-ia64.adb: Likewise.
8777         * g-utf_32.adb: Likewise.
8778         * g-utf_32.ads: Likewise.
8779         * g-wistsp.ads: Likewise.
8780         * g-zstspl.ads: Likewise.
8781         * gmem.c: Likewise.
8782         * gnatvsn.adb: Likewise.
8783         * gnatvsn.ads: Likewise.
8784         * gsocket.h: Likewise.
8785         * hostparm.ads: Likewise.
8786         * i-c.adb: Likewise.
8787         * i-cexten.ads: Likewise.
8788         * i-cobol.adb: Likewise.
8789         * i-cobol.ads: Likewise.
8790         * i-cpoint.adb: Likewise.
8791         * i-cpoint.ads: Likewise.
8792         * i-cpp.adb: Likewise.
8793         * i-cpp.ads: Likewise.
8794         * i-cstrea-vms.adb: Likewise.
8795         * i-cstrea.adb: Likewise.
8796         * i-cstrea.ads: Likewise.
8797         * i-cstrin.adb: Likewise.
8798         * i-cstrin.ads: Likewise.
8799         * i-forbla-darwin.adb: Likewise.
8800         * i-forbla-unimplemented.ads: Likewise.
8801         * i-forbla.adb: Likewise.
8802         * i-forbla.ads: Likewise.
8803         * i-forlap.ads: Likewise.
8804         * i-fortra.adb: Likewise.
8805         * i-pacdec.adb: Likewise.
8806         * i-pacdec.ads: Likewise.
8807         * i-vxwoio.adb: Likewise.
8808         * i-vxwoio.ads: Likewise.
8809         * indepsw-aix.adb: Likewise.
8810         * indepsw-gnu.adb: Likewise.
8811         * indepsw-mingw.adb: Likewise.
8812         * indepsw.adb: Likewise.
8813         * indepsw.ads: Likewise.
8814         * init.c: Likewise.
8815         * initialize.c: Likewise.
8816         * interfac.ads: Likewise.
8817         * krunch.adb: Likewise.
8818         * krunch.ads: Likewise.
8819         * lib-list.adb: Likewise.
8820         * lib-sort.adb: Likewise.
8821         * lib.adb: Likewise.
8822         * lib.ads: Likewise.
8823         * link.c: Likewise.
8824         * math_lib.adb: Likewise.
8825         * memtrack.adb: Likewise.
8826         * mingw32.h: Likewise.
8827         * mkdir.c: Likewise.
8828         * namet-sp.adb: Likewise.
8829         * namet-sp.ads: Likewise.
8830         * namet.adb: Likewise.
8831         * namet.ads: Likewise.
8832         * nlists.adb: Likewise.
8833         * nlists.ads: Likewise.
8834         * opt.adb: Likewise.
8835         * opt.ads: Likewise.
8836         * output.adb: Likewise.
8837         * output.ads: Likewise.
8838         * raise-gcc.c: Likewise.
8839         * raise.c: Likewise.
8840         * raise.h: Likewise.
8841         * repinfo.adb: Likewise.
8842         * repinfo.ads: Likewise.
8843         * repinfo.h: Likewise.
8844         * rident.ads: Likewise.
8845         * s-addima.adb: Likewise.
8846         * s-addima.ads: Likewise.
8847         * s-addope.adb: Likewise.
8848         * s-addope.ads: Likewise.
8849         * s-arit64.adb: Likewise.
8850         * s-arit64.ads: Likewise.
8851         * s-assert.adb: Likewise.
8852         * s-assert.ads: Likewise.
8853         * s-asthan-vms-alpha.adb: Likewise.
8854         * s-asthan.adb: Likewise.
8855         * s-asthan.ads: Likewise.
8856         * s-atacco.adb: Likewise.
8857         * s-atacco.ads: Likewise.
8858         * s-auxdec-empty.adb: Likewise.
8859         * s-auxdec-empty.ads: Likewise.
8860         * s-auxdec-vms_64.ads: Likewise.
8861         * s-auxdec.adb: Likewise.
8862         * s-auxdec.ads: Likewise.
8863         * s-bitops.adb: Likewise.
8864         * s-bitops.ads: Likewise.
8865         * s-boarop.ads: Likewise.
8866         * s-carsi8.adb: Likewise.
8867         * s-carsi8.ads: Likewise.
8868         * s-carun8.adb: Likewise.
8869         * s-carun8.ads: Likewise.
8870         * s-casi16.adb: Likewise.
8871         * s-casi16.ads: Likewise.
8872         * s-casi32.adb: Likewise.
8873         * s-casi32.ads: Likewise.
8874         * s-casi64.adb: Likewise.
8875         * s-casi64.ads: Likewise.
8876         * s-casuti.ads: Likewise.
8877         * s-caun16.adb: Likewise.
8878         * s-caun16.ads: Likewise.
8879         * s-caun32.adb: Likewise.
8880         * s-caun32.ads: Likewise.
8881         * s-caun64.adb: Likewise.
8882         * s-caun64.ads: Likewise.
8883         * s-chepoo.ads: Likewise.
8884         * s-crc32.adb: Likewise.
8885         * s-crc32.ads: Likewise.
8886         * s-crtl.ads: Likewise.
8887         * s-direio.adb: Likewise.
8888         * s-direio.ads: Likewise.
8889         * s-dsaser.ads: Likewise.
8890         * s-except.adb: Likewise.
8891         * s-except.ads: Likewise.
8892         * s-exctab.adb: Likewise.
8893         * s-exctab.ads: Likewise.
8894         * s-exnint.adb: Likewise.
8895         * s-exnint.ads: Likewise.
8896         * s-exnllf.adb: Likewise.
8897         * s-exnllf.ads: Likewise.
8898         * s-exnlli.adb: Likewise.
8899         * s-exnlli.ads: Likewise.
8900         * s-expint.adb: Likewise.
8901         * s-expint.ads: Likewise.
8902         * s-explli.adb: Likewise.
8903         * s-explli.ads: Likewise.
8904         * s-expllu.adb: Likewise.
8905         * s-expllu.ads: Likewise.
8906         * s-expmod.adb: Likewise.
8907         * s-expmod.ads: Likewise.
8908         * s-expuns.adb: Likewise.
8909         * s-expuns.ads: Likewise.
8910         * s-fatflt.ads: Likewise.
8911         * s-fatgen.adb: Likewise.
8912         * s-fatgen.ads: Likewise.
8913         * s-fatlfl.ads: Likewise.
8914         * s-fatllf.ads: Likewise.
8915         * s-fatsfl.ads: Likewise.
8916         * s-ficobl.ads: Likewise.
8917         * s-fileio.adb: Likewise.
8918         * s-fileio.ads: Likewise.
8919         * s-filofl.ads: Likewise.
8920         * s-finimp.adb: Likewise.
8921         * s-finimp.ads: Likewise.
8922         * s-finroo.adb: Likewise.
8923         * s-finroo.ads: Likewise.
8924         * s-fishfl.ads: Likewise.
8925         * s-fore.adb: Likewise.
8926         * s-fore.ads: Likewise.
8927         * s-fvadfl.ads: Likewise.
8928         * s-fvaffl.ads: Likewise.
8929         * s-fvagfl.ads: Likewise.
8930         * s-gearop.adb: Likewise.
8931         * s-gearop.ads: Likewise.
8932         * s-gecobl.adb: Likewise.
8933         * s-gecobl.ads: Likewise.
8934         * s-gecola.adb: Likewise.
8935         * s-gecola.ads: Likewise.
8936         * s-gerebl.adb: Likewise.
8937         * s-gerebl.ads: Likewise.
8938         * s-gerela.adb: Likewise.
8939         * s-gerela.ads: Likewise.
8940         * s-geveop.adb: Likewise.
8941         * s-geveop.ads: Likewise.
8942         * s-gloloc.adb: Likewise.
8943         * s-gloloc.ads: Likewise.
8944         * s-hibaen.ads: Likewise.
8945         * s-imenne.adb: Likewise.
8946         * s-imenne.ads: Likewise.
8947         * s-imgbiu.adb: Likewise.
8948         * s-imgbiu.ads: Likewise.
8949         * s-imgboo.adb: Likewise.
8950         * s-imgboo.ads: Likewise.
8951         * s-imgcha.adb: Likewise.
8952         * s-imgcha.ads: Likewise.
8953         * s-imgdec.adb: Likewise.
8954         * s-imgdec.ads: Likewise.
8955         * s-imgenu.adb: Likewise.
8956         * s-imgenu.ads: Likewise.
8957         * s-imgint.adb: Likewise.
8958         * s-imgint.ads: Likewise.
8959         * s-imgllb.adb: Likewise.
8960         * s-imgllb.ads: Likewise.
8961         * s-imglld.adb: Likewise.
8962         * s-imglld.ads: Likewise.
8963         * s-imglli.adb: Likewise.
8964         * s-imglli.ads: Likewise.
8965         * s-imgllu.adb: Likewise.
8966         * s-imgllu.ads: Likewise.
8967         * s-imgllw.adb: Likewise.
8968         * s-imgllw.ads: Likewise.
8969         * s-imgrea.adb: Likewise.
8970         * s-imgrea.ads: Likewise.
8971         * s-imguns.adb: Likewise.
8972         * s-imguns.ads: Likewise.
8973         * s-imgwch.adb: Likewise.
8974         * s-imgwch.ads: Likewise.
8975         * s-imgwiu.adb: Likewise.
8976         * s-imgwiu.ads: Likewise.
8977         * s-inmaop-dummy.adb: Likewise.
8978         * s-inmaop-vms.adb: Likewise.
8979         * s-inmaop.ads: Likewise.
8980         * s-interr-hwint.adb: Likewise.
8981         * s-interr-sigaction.adb: Likewise.
8982         * s-interr-vms.adb: Likewise.
8983         * s-interr.adb: Likewise.
8984         * s-interr.ads: Likewise.
8985         * s-intman-dummy.adb: Likewise.
8986         * s-intman-mingw.adb: Likewise.
8987         * s-intman-posix.adb: Likewise.
8988         * s-intman-solaris.adb: Likewise.
8989         * s-intman-vms.adb: Likewise.
8990         * s-intman-vms.ads: Likewise.
8991         * s-intman-vxworks.adb: Likewise.
8992         * s-intman-vxworks.ads: Likewise.
8993         * s-intman.ads: Likewise.
8994         * s-io.adb: Likewise.
8995         * s-io.ads: Likewise.
8996         * s-linux-alpha.ads: Likewise.
8997         * s-linux-hppa.ads: Likewise.
8998         * s-linux.ads: Likewise.
8999         * s-maccod.ads: Likewise.
9000         * s-mantis.adb: Likewise.
9001         * s-mantis.ads: Likewise.
9002         * s-mastop-irix.adb: Likewise.
9003         * s-mastop.adb: Likewise.
9004         * s-mastop.ads: Likewise.
9005         * s-memcop.ads: Likewise.
9006         * s-memory-mingw.adb: Likewise.
9007         * s-memory.adb: Likewise.
9008         * s-memory.ads: Likewise.
9009         * s-os_lib.ads: Likewise.
9010         * s-oscons-tmplt.c: Likewise.
9011         * s-osinte-aix.adb: Likewise.
9012         * s-osinte-darwin.adb: Likewise.
9013         * s-osinte-freebsd.adb: Likewise.
9014         * s-osinte-irix.adb: Likewise.
9015         * s-osinte-lynxos-3.adb: Likewise.
9016         * s-osinte-rtems.ads: Likewise.
9017         * s-osinte-tru64.adb: Likewise.
9018         * s-osinte-vxworks-kernel.adb: Likewise.
9019         * s-osinte-vxworks.adb: Likewise.
9020         * s-osprim-mingw.adb: Likewise.
9021         * s-osprim-posix.adb: Likewise.
9022         * s-osprim-solaris.adb: Likewise.
9023         * s-osprim-unix.adb: Likewise.
9024         * s-osprim-vms.adb: Likewise.
9025         * s-osprim-vms.ads: Likewise.
9026         * s-osprim-vxworks.adb: Likewise.
9027         * s-osprim.ads: Likewise.
9028         * s-pack03.adb: Likewise.
9029         * s-pack03.ads: Likewise.
9030         * s-pack05.adb: Likewise.
9031         * s-pack05.ads: Likewise.
9032         * s-pack06.adb: Likewise.
9033         * s-pack06.ads: Likewise.
9034         * s-pack07.adb: Likewise.
9035         * s-pack07.ads: Likewise.
9036         * s-pack09.adb: Likewise.
9037         * s-pack09.ads: Likewise.
9038         * s-pack10.adb: Likewise.
9039         * s-pack10.ads: Likewise.
9040         * s-pack11.adb: Likewise.
9041         * s-pack11.ads: Likewise.
9042         * s-pack12.adb: Likewise.
9043         * s-pack12.ads: Likewise.
9044         * s-pack13.adb: Likewise.
9045         * s-pack13.ads: Likewise.
9046         * s-pack14.adb: Likewise.
9047         * s-pack14.ads: Likewise.
9048         * s-pack15.adb: Likewise.
9049         * s-pack15.ads: Likewise.
9050         * s-pack17.adb: Likewise.
9051         * s-pack17.ads: Likewise.
9052         * s-pack18.adb: Likewise.
9053         * s-pack18.ads: Likewise.
9054         * s-pack19.adb: Likewise.
9055         * s-pack19.ads: Likewise.
9056         * s-pack20.adb: Likewise.
9057         * s-pack20.ads: Likewise.
9058         * s-pack21.adb: Likewise.
9059         * s-pack21.ads: Likewise.
9060         * s-pack22.adb: Likewise.
9061         * s-pack22.ads: Likewise.
9062         * s-pack23.adb: Likewise.
9063         * s-pack23.ads: Likewise.
9064         * s-pack24.adb: Likewise.
9065         * s-pack24.ads: Likewise.
9066         * s-pack25.adb: Likewise.
9067         * s-pack25.ads: Likewise.
9068         * s-pack26.adb: Likewise.
9069         * s-pack26.ads: Likewise.
9070         * s-pack27.adb: Likewise.
9071         * s-pack27.ads: Likewise.
9072         * s-pack28.adb: Likewise.
9073         * s-pack28.ads: Likewise.
9074         * s-pack29.adb: Likewise.
9075         * s-pack29.ads: Likewise.
9076         * s-pack30.adb: Likewise.
9077         * s-pack30.ads: Likewise.
9078         * s-pack31.adb: Likewise.
9079         * s-pack31.ads: Likewise.
9080         * s-pack33.adb: Likewise.
9081         * s-pack33.ads: Likewise.
9082         * s-pack34.adb: Likewise.
9083         * s-pack34.ads: Likewise.
9084         * s-pack35.adb: Likewise.
9085         * s-pack35.ads: Likewise.
9086         * s-pack36.adb: Likewise.
9087         * s-pack36.ads: Likewise.
9088         * s-pack37.adb: Likewise.
9089         * s-pack37.ads: Likewise.
9090         * s-pack38.adb: Likewise.
9091         * s-pack38.ads: Likewise.
9092         * s-pack39.adb: Likewise.
9093         * s-pack39.ads: Likewise.
9094         * s-pack40.adb: Likewise.
9095         * s-pack40.ads: Likewise.
9096         * s-pack41.adb: Likewise.
9097         * s-pack41.ads: Likewise.
9098         * s-pack42.adb: Likewise.
9099         * s-pack42.ads: Likewise.
9100         * s-pack43.adb: Likewise.
9101         * s-pack43.ads: Likewise.
9102         * s-pack44.adb: Likewise.
9103         * s-pack44.ads: Likewise.
9104         * s-pack45.adb: Likewise.
9105         * s-pack45.ads: Likewise.
9106         * s-pack46.adb: Likewise.
9107         * s-pack46.ads: Likewise.
9108         * s-pack47.adb: Likewise.
9109         * s-pack47.ads: Likewise.
9110         * s-pack48.adb: Likewise.
9111         * s-pack48.ads: Likewise.
9112         * s-pack49.adb: Likewise.
9113         * s-pack49.ads: Likewise.
9114         * s-pack50.adb: Likewise.
9115         * s-pack50.ads: Likewise.
9116         * s-pack51.adb: Likewise.
9117         * s-pack51.ads: Likewise.
9118         * s-pack52.adb: Likewise.
9119         * s-pack52.ads: Likewise.
9120         * s-pack53.adb: Likewise.
9121         * s-pack53.ads: Likewise.
9122         * s-pack54.adb: Likewise.
9123         * s-pack54.ads: Likewise.
9124         * s-pack55.adb: Likewise.
9125         * s-pack55.ads: Likewise.
9126         * s-pack56.adb: Likewise.
9127         * s-pack56.ads: Likewise.
9128         * s-pack57.adb: Likewise.
9129         * s-pack57.ads: Likewise.
9130         * s-pack58.adb: Likewise.
9131         * s-pack58.ads: Likewise.
9132         * s-pack59.adb: Likewise.
9133         * s-pack59.ads: Likewise.
9134         * s-pack60.adb: Likewise.
9135         * s-pack60.ads: Likewise.
9136         * s-pack61.adb: Likewise.
9137         * s-pack61.ads: Likewise.
9138         * s-pack62.adb: Likewise.
9139         * s-pack62.ads: Likewise.
9140         * s-pack63.adb: Likewise.
9141         * s-pack63.ads: Likewise.
9142         * s-parame-ae653.ads: Likewise.
9143         * s-parame-hpux.ads: Likewise.
9144         * s-parame-rtems.adb: Likewise.
9145         * s-parame-vms-alpha.ads: Likewise.
9146         * s-parame-vms-ia64.ads: Likewise.
9147         * s-parame-vms-restrict.ads: Likewise.
9148         * s-parame-vxworks.adb: Likewise.
9149         * s-parame-vxworks.ads: Likewise.
9150         * s-parame.adb: Likewise.
9151         * s-parame.ads: Likewise.
9152         * s-parint.adb: Likewise.
9153         * s-parint.ads: Likewise.
9154         * s-pooglo.adb: Likewise.
9155         * s-pooglo.ads: Likewise.
9156         * s-pooloc.adb: Likewise.
9157         * s-pooloc.ads: Likewise.
9158         * s-poosiz.adb: Likewise.
9159         * s-poosiz.ads: Likewise.
9160         * s-powtab.ads: Likewise.
9161         * s-proinf-irix-athread.adb: Likewise.
9162         * s-proinf-irix-athread.ads: Likewise.
9163         * s-proinf.adb: Likewise.
9164         * s-proinf.ads: Likewise.
9165         * s-purexc.ads: Likewise.
9166         * s-rannum.adb: Likewise.
9167         * s-rannum.ads: Likewise.
9168         * s-restri.adb: Likewise.
9169         * s-restri.ads: Likewise.
9170         * s-rident.ads: Likewise.
9171         * s-rpc.adb: Likewise.
9172         * s-rpc.ads: Likewise.
9173         * s-scaval.adb: Likewise.
9174         * s-scaval.ads: Likewise.
9175         * s-secsta.adb: Likewise.
9176         * s-secsta.ads: Likewise.
9177         * s-sequio.adb: Likewise.
9178         * s-sequio.ads: Likewise.
9179         * s-shasto.adb: Likewise.
9180         * s-shasto.ads: Likewise.
9181         * s-soflin.adb: Likewise.
9182         * s-soflin.ads: Likewise.
9183         * s-solita.adb: Likewise.
9184         * s-solita.ads: Likewise.
9185         * s-sopco3.adb: Likewise.
9186         * s-sopco3.ads: Likewise.
9187         * s-sopco4.adb: Likewise.
9188         * s-sopco4.ads: Likewise.
9189         * s-sopco5.adb: Likewise.
9190         * s-sopco5.ads: Likewise.
9191         * s-stache.adb: Likewise.
9192         * s-stache.ads: Likewise.
9193         * s-stalib.adb: Likewise.
9194         * s-stalib.ads: Likewise.
9195         * s-stausa.adb: Likewise.
9196         * s-stausa.ads: Likewise.
9197         * s-stchop-limit.ads: Likewise.
9198         * s-stchop-rtems.adb: Likewise.
9199         * s-stchop-vxworks.adb: Likewise.
9200         * s-stchop.adb: Likewise.
9201         * s-stchop.ads: Likewise.
9202         * s-stoele.adb: Likewise.
9203         * s-stoele.ads: Likewise.
9204         * s-stopoo.adb: Likewise.
9205         * s-stopoo.ads: Likewise.
9206         * s-stratt.adb: Likewise.
9207         * s-stratt.ads: Likewise.
9208         * s-strcom.adb: Likewise.
9209         * s-strcom.ads: Likewise.
9210         * s-string.adb: Likewise.
9211         * s-string.ads: Likewise.
9212         * s-strops.adb: Likewise.
9213         * s-strops.ads: Likewise.
9214         * s-strxdr.adb: Likewise.
9215         * s-ststop.adb: Likewise.
9216         * s-ststop.ads: Likewise.
9217         * s-taasde.adb: Likewise.
9218         * s-taasde.ads: Likewise.
9219         * s-tadeca.adb: Likewise.
9220         * s-tadeca.ads: Likewise.
9221         * s-tadert.adb: Likewise.
9222         * s-tadert.ads: Likewise.
9223         * s-taenca.adb: Likewise.
9224         * s-taenca.ads: Likewise.
9225         * s-taprob.ads: Likewise.
9226         * s-taprop-dummy.adb: Likewise.
9227         * s-taprop-hpux-dce.adb: Likewise.
9228         * s-taprop-irix.adb: Likewise.
9229         * s-taprop-linux.adb: Likewise.
9230         * s-taprop-lynxos.adb: Likewise.
9231         * s-taprop-mingw.adb: Likewise.
9232         * s-taprop-posix.adb: Likewise.
9233         * s-taprop-solaris.adb: Likewise.
9234         * s-taprop-tru64.adb: Likewise.
9235         * s-taprop-vms.adb: Likewise.
9236         * s-taprop-vxworks.adb: Likewise.
9237         * s-taprop.ads: Likewise.
9238         * s-tarest.adb: Likewise.
9239         * s-tarest.ads: Likewise.
9240         * s-tasdeb.adb: Likewise.
9241         * s-tasdeb.ads: Likewise.
9242         * s-tasinf-irix.ads: Likewise.
9243         * s-tasinf-linux.adb: Likewise.
9244         * s-tasinf-linux.ads: Likewise.
9245         * s-tasinf-mingw.adb: Likewise.
9246         * s-tasinf-mingw.ads: Likewise.
9247         * s-tasinf-solaris.adb: Likewise.
9248         * s-tasinf-solaris.ads: Likewise.
9249         * s-tasinf-tru64.ads: Likewise.
9250         * s-tasinf.adb: Likewise.
9251         * s-tasinf.ads: Likewise.
9252         * s-tasini.adb: Likewise.
9253         * s-tasini.ads: Likewise.
9254         * s-taskin.adb: Likewise.
9255         * s-taskin.ads: Likewise.
9256         * s-taspri-dummy.ads: Likewise.
9257         * s-taspri-hpux-dce.ads: Likewise.
9258         * s-taspri-mingw.ads: Likewise.
9259         * s-taspri-solaris.ads: Likewise.
9260         * s-taspri-tru64.ads: Likewise.
9261         * s-taspri-vms.ads: Likewise.
9262         * s-taspri-vxworks.ads: Likewise.
9263         * s-tasque.adb: Likewise.
9264         * s-tasque.ads: Likewise.
9265         * s-tasren.adb: Likewise.
9266         * s-tasren.ads: Likewise.
9267         * s-tasres.ads: Likewise.
9268         * s-tassta.adb: Likewise.
9269         * s-tassta.ads: Likewise.
9270         * s-tasuti.adb: Likewise.
9271         * s-tasuti.ads: Likewise.
9272         * s-tfsetr-default.adb: Likewise.
9273         * s-tfsetr-vxworks.adb: Likewise.
9274         * s-tpinop.adb: Likewise.
9275         * s-tpinop.ads: Likewise.
9276         * s-tpoben.adb: Likewise.
9277         * s-tpoben.ads: Likewise.
9278         * s-tpobop.adb: Likewise.
9279         * s-tpobop.ads: Likewise.
9280         * s-tpopde-vms.adb: Likewise.
9281         * s-tpopde-vms.ads: Likewise.
9282         * s-tpopsp-lynxos.adb: Likewise.
9283         * s-tpopsp-posix-foreign.adb: Likewise.
9284         * s-tpopsp-posix.adb: Likewise.
9285         * s-tpopsp-solaris.adb: Likewise.
9286         * s-tpopsp-vxworks.adb: Likewise.
9287         * s-tporft.adb: Likewise.
9288         * s-tposen.adb: Likewise.
9289         * s-tposen.ads: Likewise.
9290         * s-traceb.adb: Likewise.
9291         * s-traceb.ads: Likewise.
9292         * s-traces-default.adb: Likewise.
9293         * s-traces.adb: Likewise.
9294         * s-traces.ads: Likewise.
9295         * s-traent-vms.adb: Likewise.
9296         * s-traent-vms.ads: Likewise.
9297         * s-traent.adb: Likewise.
9298         * s-traent.ads: Likewise.
9299         * s-trafor-default.adb: Likewise.
9300         * s-trafor-default.ads: Likewise.
9301         * s-tratas-default.adb: Likewise.
9302         * s-tratas.adb: Likewise.
9303         * s-tratas.ads: Likewise.
9304         * s-unstyp.ads: Likewise.
9305         * s-utf_32.adb: Likewise.
9306         * s-utf_32.ads: Likewise.
9307         * s-vaflop-vms-alpha.adb: Likewise.
9308         * s-vaflop.adb: Likewise.
9309         * s-vaflop.ads: Likewise.
9310         * s-valboo.adb: Likewise.
9311         * s-valboo.ads: Likewise.
9312         * s-valcha.adb: Likewise.
9313         * s-valcha.ads: Likewise.
9314         * s-valdec.adb: Likewise.
9315         * s-valdec.ads: Likewise.
9316         * s-valenu.adb: Likewise.
9317         * s-valenu.ads: Likewise.
9318         * s-valint.adb: Likewise.
9319         * s-valint.ads: Likewise.
9320         * s-vallld.adb: Likewise.
9321         * s-vallld.ads: Likewise.
9322         * s-vallli.adb: Likewise.
9323         * s-vallli.ads: Likewise.
9324         * s-valllu.adb: Likewise.
9325         * s-valllu.ads: Likewise.
9326         * s-valrea.adb: Likewise.
9327         * s-valrea.ads: Likewise.
9328         * s-valuns.adb: Likewise.
9329         * s-valuns.ads: Likewise.
9330         * s-valuti.adb: Likewise.
9331         * s-valuti.ads: Likewise.
9332         * s-valwch.adb: Likewise.
9333         * s-valwch.ads: Likewise.
9334         * s-veboop.adb: Likewise.
9335         * s-veboop.ads: Likewise.
9336         * s-vector.ads: Likewise.
9337         * s-vercon.adb: Likewise.
9338         * s-vercon.ads: Likewise.
9339         * s-vmexta.adb: Likewise.
9340         * s-vmexta.ads: Likewise.
9341         * s-vxwext-kernel.ads: Likewise.
9342         * s-vxwext-rtp.adb: Likewise.
9343         * s-vxwext-rtp.ads: Likewise.
9344         * s-vxwext.ads: Likewise.
9345         * s-vxwork-arm.ads: Likewise.
9346         * s-vxwork-m68k.ads: Likewise.
9347         * s-vxwork-mips.ads: Likewise.
9348         * s-vxwork-ppc.ads: Likewise.
9349         * s-vxwork-sparcv9.ads: Likewise.
9350         * s-vxwork-x86.ads: Likewise.
9351         * s-wchcnv.adb: Likewise.
9352         * s-wchcnv.ads: Likewise.
9353         * s-wchcon.adb: Likewise.
9354         * s-wchcon.ads: Likewise.
9355         * s-wchjis.adb: Likewise.
9356         * s-wchjis.ads: Likewise.
9357         * s-wchstw.adb: Likewise.
9358         * s-wchstw.ads: Likewise.
9359         * s-wchwts.adb: Likewise.
9360         * s-wchwts.ads: Likewise.
9361         * s-widboo.adb: Likewise.
9362         * s-widboo.ads: Likewise.
9363         * s-widcha.adb: Likewise.
9364         * s-widcha.ads: Likewise.
9365         * s-widenu.adb: Likewise.
9366         * s-widenu.ads: Likewise.
9367         * s-widlli.adb: Likewise.
9368         * s-widlli.ads: Likewise.
9369         * s-widllu.adb: Likewise.
9370         * s-widllu.ads: Likewise.
9371         * s-widwch.adb: Likewise.
9372         * s-widwch.ads: Likewise.
9373         * s-win32.ads: Likewise.
9374         * s-winext.ads: Likewise.
9375         * s-wwdcha.adb: Likewise.
9376         * s-wwdcha.ads: Likewise.
9377         * s-wwdenu.adb: Likewise.
9378         * s-wwdenu.ads: Likewise.
9379         * s-wwdwch.adb: Likewise.
9380         * s-wwdwch.ads: Likewise.
9381         * scans.adb: Likewise.
9382         * scans.ads: Likewise.
9383         * seh_init.c: Likewise.
9384         * sfn_scan.adb: Likewise.
9385         * sinfo.adb: Likewise.
9386         * sinfo.ads: Likewise.
9387         * sinput.adb: Likewise.
9388         * sinput.ads: Likewise.
9389         * snames.adb: Likewise.
9390         * snames.ads: Likewise.
9391         * socket.c: Likewise.
9392         * stand.adb: Likewise.
9393         * stand.ads: Likewise.
9394         * stringt.adb: Likewise.
9395         * stringt.ads: Likewise.
9396         * sysdep.c: Likewise.
9397         * system-aix.ads: Likewise.
9398         * system-darwin-ppc.ads: Likewise.
9399         * system-darwin-x86.ads: Likewise.
9400         * system-darwin-x86_64.ads: Likewise.
9401         * system-freebsd-x86.ads: Likewise.
9402         * system-hpux-ia64.ads: Likewise.
9403         * system-hpux.ads: Likewise.
9404         * system-irix-n32.ads: Likewise.
9405         * system-irix-n64.ads: Likewise.
9406         * system-irix-o32.ads: Likewise.
9407         * system-linux-alpha.ads: Likewise.
9408         * system-linux-hppa.ads: Likewise.
9409         * system-linux-ia64.ads: Likewise.
9410         * system-linux-mips.ads: Likewise.
9411         * system-linux-mipsel.ads: Likewise.
9412         * system-linux-ppc.ads: Likewise.
9413         * system-linux-ppc64.ads: Likewise.
9414         * system-linux-s390.ads: Likewise.
9415         * system-linux-s390x.ads: Likewise.
9416         * system-linux-sh4.ads: Likewise.
9417         * system-linux-sparc.ads: Likewise.
9418         * system-linux-sparcv9.ads: Likewise.
9419         * system-linux-x86.ads: Likewise.
9420         * system-linux-x86_64.ads: Likewise.
9421         * system-lynxos-ppc.ads: Likewise.
9422         * system-lynxos-x86.ads: Likewise.
9423         * system-mingw-x86_64.ads: Likewise.
9424         * system-mingw.ads: Likewise.
9425         * system-rtems.ads: Likewise.
9426         * system-solaris-sparc.ads: Likewise.
9427         * system-solaris-sparcv9.ads: Likewise.
9428         * system-solaris-x86.ads: Likewise.
9429         * system-solaris-x86_64.ads: Likewise.
9430         * system-tru64.ads: Likewise.
9431         * system-vms-ia64.ads: Likewise.
9432         * system-vms-zcx.ads: Likewise.
9433         * system-vms.ads: Likewise.
9434         * system-vms_64.ads: Likewise.
9435         * system-vxworks-arm.ads: Likewise.
9436         * system-vxworks-m68k.ads: Likewise.
9437         * system-vxworks-mips.ads: Likewise.
9438         * system-vxworks-ppc.ads: Likewise.
9439         * system-vxworks-sparcv9.ads: Likewise.
9440         * system-vxworks-x86.ads: Likewise.
9441         * system.ads: Likewise.
9442         * table.adb: Likewise.
9443         * table.ads: Likewise.
9444         * targext.c: Likewise.
9445         * targparm.ads: Likewise.
9446         * tree_in.adb: Likewise.
9447         * tree_in.ads: Likewise.
9448         * tree_io.adb: Likewise.
9449         * tree_io.ads: Likewise.
9450         * types.adb: Likewise.
9451         * types.ads: Likewise.
9452         * uintp.adb: Likewise.
9453         * uintp.ads: Likewise.
9454         * uname.adb: Likewise.
9455         * uname.ads: Likewise.
9456         * urealp.adb: Likewise.
9457         * urealp.ads: Likewise.
9458         * vx_stack_info.c: Likewise.
9459         * widechar.adb: Likewise.
9460         * widechar.ads: Likewise.
9461         * exp_attr.adb: Change copyright header to refer to version
9462         3 of the GNU General Public License and to point readers at the
9463         COPYING3 file and the FSF's license web page.
9464         * sem.adb: Likewise.
9465         * sem_attr.ads: Likewise.
9466         * freeze.adb: Likewise.
9467         * freeze.ads: Likewise.
9468         * errout.ads: Likewise.
9469         * erroutc.adb: Likewise.
9470         * exp_ch11.ads: Likewise.
9472 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
9474         * config-lang.in: Change copyright header to refer to version
9475         3 of the GNU General Public License and to point readers at the
9476         COPYING3 file and the FSF's license web page.
9477         * gcc-interface/trans.c: Likewise.
9478         * gnathtml.pl: Likewise.
9479         * gcc-interface/ada.h: Likewise.  Remove runtime exception.
9480         * gcc-interface/gigi.h: Likewise.
9481         * gcc-interface/misc.c: Likewise.
9482         * gcc-interface/targtyps.c: Likewise.
9484 2009-04-09  Nicolas Setton  <setton@adacore.com>
9486         * s-osinte-darwin.ads: Fix wrong binding to struc timeval.
9488         * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of
9489         struct_timeval.
9491 2009-04-09  Bob Duff  <duff@adacore.com>
9493         * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in
9494         internally-generated nodes related to select statements to avoid
9495         confusing the debugger.
9497 2009-04-09  Pascal Obry  <obry@adacore.com>
9499         * make.adb: Ensure that all linker arguments are duplicated.
9501 2009-04-09  Robert Dewar  <dewar@adacore.com>
9503         * sem_ch5.adb: Minor reformatting
9505 2009-04-09  Vincent Celier  <celier@adacore.com>
9507         * vms_data.ads:
9508         Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT
9509         New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn
9510         New qualifier /LXDEBUG=nnn for -gnatDnnn
9511         For H820-010
9513         * gnat_ugn.texi:
9514         Update documentation for VMS qualifiers equivalent to -gnatGnn and
9515         -gnatDnn
9517 2009-04-09  Nicolas Setton  <setton@adacore.com>
9519         * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long,
9520         to match layout of siginfo_t in sys/signal.h.
9522         * gcc-interface/Makefile.in: Add section for x86_64 darwin.
9524 2009-04-09  Thomas Quinot  <quinot@adacore.com>
9526         * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment.
9528 2009-04-09  Nicolas Setton  <setton@adacore.com>
9530         * s-oscons-tmplt.c: Allow long lines in the generated spec.
9531         Add generation of Darwin-specific constants needed when binding to the
9532         pthread library.
9534 2009-04-09  Robert Dewar  <dewar@adacore.com>
9536         * checks.adb:
9537         (Insert_Valid_Check): Avoid unnecessary generation of junk declaration
9538         when no invalid values exist, Avoid duplicate read of atomic variable.
9540         * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid
9541         (Standard_Unsigned): Set Is_Known_Valid
9543         * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on
9544         subtype declaration if no constraint.
9545         (Set_Modular_Size): Set Is_Known_Valid if appropriate
9546         (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint
9548 2009-04-09  Robert Dewar  <dewar@adacore.com>
9550         * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb,
9551         switch.ads: for numeric switches, an optional equal sign is always
9552         allowed.
9554 2009-04-09  Vincent Celier  <celier@adacore.com>
9556         * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where
9557         the case of file names is not significant.
9559 2009-04-09  Vincent Celier  <celier@adacore.com>
9561         * errout.adb: Remove dependency on package Style
9563         * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
9564         moved to Stylesw.
9565         
9566         * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
9567         Styleg.
9569         * errutil.adb, par.adb: Import Stylesw
9571 2009-04-09  Arnaud Charlet  <charlet@adacore.com>
9573         * opt.ads: Fix typos.
9575 2009-04-09  Robert Dewar  <dewar@adacore.com>
9577         * einfo.adb: Minor reformatting
9579 2009-04-09  Robert Dewar  <dewar@adacore.com>
9581         * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
9582         units.
9584         * styleg-c.ads, styleg-c.adb: Removed, no longer used.
9586 2009-04-09  Robert Dewar  <dewar@adacore.com>
9588         * g-comver.adb: Minor reformatting.
9590 2009-04-09  Thomas Quinot  <quinot@adacore.com>
9592         * lib-load.ads (Load_Unit): Update documentation.
9594 2009-04-09  Ed Schonberg  <schonberg@adacore.com>
9596         * lib-load.adb (Load_Unit): When loading the parent of a child unit
9597         named in a with_clause, retain the with_clause to preserve a
9598         limited_with indication.
9600 2009-04-09  Robert Dewar  <dewar@adacore.com>
9602         * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb,
9603         exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb,
9604         sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where
9605         possible to replace an OR of two separate tests.
9607 2009-04-09  Robert Dewar  <dewar@adacore.com>
9609         * binderr.adb, errout.adb, errutil.adb: New circuitry for handling
9610         Maximum_Messages.
9611         
9612         * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global
9613         warning status as well.
9614         
9615         * opt.ads (Maximum_Messages): New name for Maximum_Errors.
9616         
9617         * switch-b.adb, switch-c.adb: Change name Maximum_Errors to
9618         Maximum_Messages.
9619         
9620         * bindusg.adb, usage.adb: Update line for -gnatm switch
9622         * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and
9623         -mnn binder switch.
9625 2009-04-09  Robert Dewar  <dewar@adacore.com>
9627         * sem_ch10.adb: Minor reformatting.
9629 2009-04-09  Bob Duff  <duff@adacore.com>
9631         * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler):
9632         Set Sloc of generated nodes for calls to Undefer_Aborts and
9633         Save_Occurrence to No_Location, so the debugger ignores them and
9634         therefore does not jump back and forth when single stepping.
9636 2009-04-09  Robert Dewar  <dewar@adacore.com>
9638         * switch-b.adb: Minor reformatting.
9640 2009-04-09  Robert Dewar  <dewar@adacore.com>
9642         * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
9643         sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
9644         exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
9645         sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
9646         einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
9647         tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
9648         exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
9649         sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
9650         sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
9651         sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
9652         Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
9654 2009-04-09  Robert Dewar  <dewar@adacore.com>
9656         * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
9658         * atree.h: Add Elist26
9660         * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
9661         backends.
9663 2009-04-09  Javier Miranda  <miranda@adacore.com>
9665         * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
9666         retrieve from the Dispatch_Table_Wrappers list the external name.
9667         Addition of documentation.
9668         (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
9669         used to export secondary dispatch tables (in the previous version of
9670         the frontend only primary dispatch tables were exported). Addition of
9671         documentation.
9672         (Import_DT): New subprogram (internal of Make_Tags). Used to import a
9673         dispatch table of a given tagged type. 
9674         (Make_Tags): Modified to import secondary dispatch tables.
9676         * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
9677         (Constant_Redeclaration): Code cleanup.
9679         * einfo.ads (Dispatch_Table_Wrapper): Renamed to
9680         Dispatch_Table_Wrappers.  Update documentation.
9682         * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
9683         Renamed to Dispatch_Table_Wrappers.
9685         * sem_util.adb (Collect_Interface_Components): Improve handling of
9686         private types.
9688         * atree.ads (Elist26, Set_Elist26): New subprograms
9690         * atree.adb (Elist26, Set_Elist26): New subprograms
9692 2009-04-09  Javier Miranda  <miranda@adacore.com>
9694         * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
9695         (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
9696         tagged types.
9698 2009-04-09  Robert Dewar  <dewar@adacore.com>
9700         * s-direio.adb: Minor reformatting
9702         * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
9704 2009-04-09  Robert Dewar  <dewar@adacore.com>
9706         * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
9708 2009-04-09  Pascal Obry  <obry@adacore.com>
9710         * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
9711         s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
9712         a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
9713         a-filico.ads: Add some missing overriding keywords.
9715 2009-04-09  Pascal Obry  <obry@adacore.com>
9717         * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
9718         a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
9719         a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
9720         reformatting.
9722 2009-04-09  Ed Schonberg  <schonberg@adacore.com>
9724         * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
9725         missing overriding indicator if the new declaration is not seen as
9726         primitive.
9728 2009-04-09  Thomas Quinot  <quinot@adacore.com>
9730         * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
9731         overflows in computation of bounds.
9733 2009-04-09  Pascal Obry  <obry@adacore.com>
9735         * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
9736         typos in comment.
9738 2009-04-09  Robert Dewar  <dewar@adacore.com>
9740         * sem_attr.adb (Check_Stream_Attribute): Check violation of
9741         restriction No_Streams
9743         * gnat_rm.texi: Clarify No_Streams restriction
9745         * g-socket.adb: Minor reformatting.
9747 2009-04-09  Thomas Quinot  <quinot@adacore.com>
9749         * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
9751 2009-04-09  Geert Bosch  <bosch@adacore.com>
9753         * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
9754         (Set_Result): Likewise.
9755         (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
9756         conversion, as required by RM 4.6(31).
9758 2009-04-08  Robert Dewar  <dewar@adacore.com>
9760         * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
9761         suppressed.
9762         
9763         * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
9764         resolution steps.
9766 2009-04-08  Robert Dewar  <dewar@adacore.com>
9768         * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
9769         No_Local_Allocators restriction preventing local instantiation.
9771 2009-04-08  Thomas Quinot  <quinot@adacore.com>
9773         * sem_eval.adb: Minor comment fix
9775 2009-04-08  Thomas Quinot  <quinot@adacore.com>
9777         * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
9778         New limited controlled type used to automate the initialization and
9779         finalization of the sockets implementation.
9780         (GNAT.Sockets.Initialize, Finalize): Make these no-ops
9782 2009-04-08  Vincent Celier  <celier@adacore.com>
9784         * prj-attr.adb: New read-only project-level attribute Project_Dir
9786         * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
9787         read-only attribute of the same name.
9788         (Process_Declarative_Items): Call Add_Attributes with Project_Dir
9789         (Recursive_Process): Ditto
9791         * snames.adb: Add new standard name Project_Dir
9793         * snames.ads: Add new standard name Project_Dir
9795 2009-04-08  Thomas Quinot  <quinot@adacore.com>
9797         * checks.adb: Minor reformatting
9799 2009-04-08  Vincent Celier  <celier@adacore.com>
9801         * vms_data.ads: Add documentation for new style keyword
9802         OVERRIDING_INDICATORS
9804 2009-04-08  Robert Dewar  <dewar@adacore.com>
9806         * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
9807         spec is in the current unit.
9809 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
9811         * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
9812         presence of entity.
9814         * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
9816 2009-04-08  Vincent Celier  <celier@adacore.com>
9818         * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
9820 2009-04-08  Thomas Quinot  <quinot@adacore.com>
9822         * checks.ads: Minor reformatting
9824 2009-04-08  Robert Dewar  <dewar@adacore.com>
9826         * gnat_rm.texi: Update documentation of pragma Obsolescent
9827         
9828         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
9829         be omitted, and allow Entity parameter to be omitted.
9831 2009-04-08  Thomas Quinot  <quinot@adacore.com>
9833         * exp_util.adb: Minor comment fix
9835 2009-04-08  Robert Dewar  <dewar@adacore.com>
9837         * g-socket.ads: Fix bad syntax in pragma Obsolescent
9839         * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
9840         argument with no identifier following one that has an identifier. Was
9841         missed in some cases.
9843         * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
9844         identifier.
9845         (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
9847         * snames.adb: Add Name_Policy
9849         * snames.ads: Add Name_Policy
9851 2009-04-08  Robert Dewar  <dewar@adacore.com>
9853         * gnat_rm.texi: Minor reformatting
9855         * par-ch2.adb: Minor reformatting
9857 2009-04-08  Robert Dewar  <dewar@adacore.com>
9859         * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
9861 2009-04-08  Robert Dewar  <dewar@adacore.com>
9863         * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
9864         properly in the presence of Remote_Types or Remote_Call_Interface.
9866         * sem_util.adb: Add comment.
9868 2009-04-08  Robert Dewar  <dewar@adacore.com>
9870         * ug_words: Add /ASSUME_VALID for -gnatB
9872         * vms_data.ads: Add /ASSUME_VALID for -gnatB
9874         * sem_cat.adb: Add clarifying commment
9876         * a-direio.ads (Bytes): Make sure value is non-zero
9878 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
9880         * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
9881         that does not come from source, check for a rewritten function call in
9882         prefixed notation before other forms of rewriting.
9884 2009-04-08  Robert Dewar  <dewar@adacore.com>
9886         * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
9887         these are now obsolescent units used only for bootrapping with an
9888         older compiler.
9890 2009-04-08  Robert Dewar  <dewar@adacore.com>
9892         * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
9894         * sem_ch3.adb: Minor comment updates
9896 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
9898         * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
9899         that come from source.
9901 2009-04-08  Tristan Gingold  <gingold@adacore.com>
9903         * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE.
9904         * gcc-interface/decl.c (prepend_attributes): New case
9905         Pragma_Thread_Local_Storage.
9906         * gcc-interface/utils.c (process_attributes): New case
9907         ATTR_THREAD_LOCAL_STORAGE.
9909 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
9911         * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
9912         by the back-end if it contains a call to a subprogram without a
9913         previous spec that is declared in the same unit.
9915         * errout.ads: Update comments on uses of dirs
9917 2009-04-08  Robert Dewar  <dewar@adacore.com>
9919         * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
9921 2009-04-08  Tristan Gingold  <gingold@adacore.com>
9923         * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
9924         variables.
9925         Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
9927 2009-04-08  Vincent Celier  <celier@adacore.com>
9929         * prj-nmsc.adb:
9930         (Add_Source): Add the mapping of the unit name to source file name in
9931         the Unit_Sources_HT hash table, if the unit name is not null.
9933         * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
9935         * prj.ads (Unit_Sources_Htable): New hash table instantiation
9936         (Project_Tree_Data): New component Unit_Sources_HT
9938 2009-04-08  Thomas Quinot  <quinot@adacore.com>
9940         * sem_ch8.adb: Minor reformatting.
9941         Minor code reorganization.
9943 2009-04-08  Robert Dewar  <dewar@adacore.com>
9945         * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
9946         snames.ads, freeze.adb, par-prag.adb: Add implementation of
9947         pragma Thread_Local_Storage, setting new flag
9948         Has_Pragma_Thread_Local_Storage in corresponding entities.
9950 2009-04-08  Emmanuel Briot  <briot@adacore.com>
9952         * prj.ads: Update comment on switches file
9954         * prj-nmsc.adb: Code clean up. Use renaming clauses.
9956 2009-04-08  Robert Dewar  <dewar@adacore.com>
9958         * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
9960 2009-04-08  Thomas Quinot  <quinot@adacore.com>
9962         * ali-util.adb: Minor comment fix
9964 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
9966         * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
9967         appears in a context clause, and the enclosing package is mentioned in
9968         a limited_with_clause.
9969         (Use_One_Type): Reject clause if type is still incomplete.
9971 2009-04-08  Emmanuel Briot  <briot@adacore.com>
9973         * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
9974         avoid copies of Source_Data variables when possible, since these
9975         involve calls to memcpy() which are done too many times.
9977 2009-04-08  Robert Dewar  <dewar@adacore.com>
9979         * exp_ch4.adb (Expand_Concatenate): Clean up code
9981 2009-04-07  Thomas Quinot  <quinot@adacore.com>
9983         * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
9984         type for the case of concatenating a constrained array indexed by an
9985         enumeration type.
9987 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
9989         * sem_ch6.adb (Check_Conformance): when checking conformance of an
9990         operation that overrides an abstract operation inherited from an
9991         interface, return False if only one of the controlling formals is an
9992         access parameter.
9994 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
9996         * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
9997         mandated by AI05-105.
9999 2009-04-07  Vincent Celier  <celier@adacore.com>
10001         * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
10003 2009-04-07  Thomas Quinot  <quinot@adacore.com>
10005         * usage.adb: Minor fix in usage message.
10007         * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
10008         match declaration; the correct subtype is Node_Id, not Entity_Id,
10009         because the expected node kind is an identifier, not a defining
10010         identifier.
10012         * switch-c.adb: Minor reformatting.
10014         * uintp.adb: Minor reformatting.
10016 2009-04-07  Robert Dewar  <dewar@adacore.com>
10018         * exp_ch13.adb: Minor reformatting
10020 2009-04-07  Robert Dewar  <dewar@adacore.com>
10022         * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
10023         against missing parent.
10025 2009-04-07  Thomas Quinot  <quinot@adacore.com>
10027         * xoscons.adb: Minor reformatting
10029 2009-04-07  Robert Dewar  <dewar@adacore.com>
10031         * rtsfind.ads: Remove obsolete string concatenation entries
10033 2009-04-07  Robert Dewar  <dewar@adacore.com>
10035         * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
10037 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
10039         * sem_ch10.adb (Check_Body_Required): Handle properly imported
10040         subprograms.
10042 2009-04-07  Gary Dismukes  <dismukes@adacore.com>
10044         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
10045         Attribute_Address): When Init_Or_Norm_Scalars is True and the object
10046         is of a scalar or string type then suppress the setting of the
10047         expression to Empty.
10049         * freeze.adb (Warn_Overlay): Also emit the warnings about default
10050         initialization for the cases of scalar and string objects when
10051         Init_Or_Norm_Scalars is True.
10053 2009-04-07  Bob Duff  <duff@adacore.com>
10055         * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
10057 2009-04-07  Bob Duff  <duff@adacore.com>
10059         * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
10060         Form parameter of Text_Translation=No allows binary mode for Text_IO
10061         files.
10063         * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
10065 2009-04-07  Javier Miranda  <miranda@adacore.com>
10067         * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
10068         processing the bounds for bit packed arrays or VM target machines.
10070 2009-04-07  Thomas Quinot  <quinot@adacore.com>
10072         * g-sothco.ads (Int_Access): Remove extraneous access type (use
10073         anonymous access instead).
10074         (Get_Socket_From_Set): Fix incorrectly reverted formals
10075         Last and Socket to match the underlying C routine.
10077         * g-socket.adb, g-socket.ads
10078         (Get): Use named parameter associations instead of positional ones in
10079         call go Get_Socket_From_Set, since this routine has two formals of the
10080         same type.
10081         (Image): New procedure.
10083         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
10084         g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
10085         (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
10086         for type of Arg formal.
10088         * sem_warn.adb: Minor reformatting
10090 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
10092         * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
10093         over record components.
10095 2009-04-07  Nicolas Roche  <roche@adacore.com>
10097         * gsocket.h:
10098         Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
10099         has disappeared between VxWorks 6.4 and VxWorks 6.5
10100         In RTP mode use time.h instead of times.h
10102 2009-04-07  Robert Dewar  <dewar@adacore.com>
10104         * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
10106 2009-04-07  Kevin Pouget  <pouget@adacore.com>
10108         * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
10109         expanded code for constrained types.
10111 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
10113         * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
10114         AI05-105: in an object renaming declaration, anonymousness is a name
10115         resolution rule.
10117         * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
10119 2009-04-07  Arnaud Charlet  <charlet@adacore.com>
10121         * g-comlin.adb (Expansion): Fix old regression: also return directory
10122         names when matching.
10124 2009-04-07  Robert Dewar  <dewar@adacore.com>
10126         * exp_ch4.adb:
10127         (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
10128         (Expand_Concatenate): New name for Expand_Concatenate_String which has
10129         been rewritten to handle all types.
10130         (Expand_Concatenate_Other): Remove
10132 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
10134         * lib-xref.adb (Generate_Reference): A default subprogram in an
10135         instance appears within the tree for the instance, but generates an
10136         implicit reference in the ALI.
10138 2009-04-07  Javier Miranda  <miranda@adacore.com>
10140         * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
10141         derived type that has discriminants, propagate the list of interfaces
10142         to the corresponding new base type. In addition, propagate also
10143         attribute Limited_Present (found working in this patch).
10145 2009-04-07  Robert Dewar  <dewar@adacore.com>
10147         * exp_ch4.adb: Rewrite concatenation expansion.
10149 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
10151         * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
10152         relevant to packages.
10154 2009-04-07  Robert Dewar  <dewar@adacore.com>
10156         * sem_attr.adb: Minor reformatting
10158         * sem_ch6.adb: Minor reformatting
10160 2009-04-07  Tristan Gingold  <gingold@adacore.com>
10162         * socket.c: Add more protections against S_resolvLib_ macros.
10164 2009-04-07  Thomas Quinot  <quinot@adacore.com>
10166         * sem_attr.adb: Minor reformatting
10168 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
10170         * sem_ch6.adb (New_Overloaded_Entity): New predicate
10171         Is_Overriding_Alias to handle properly types that inherit two homonym
10172         operations that have distinct dispatch table entries.
10174 2009-04-07  Emmanuel Briot  <briot@adacore.com>
10176         * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
10177         looking for the end of a parenthesis group
10179 2009-04-07  Tristan Gingold  <gingold@adacore.com>
10181         * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
10183         * socket.c Don't use resolvLib_ macros if not defined.
10185 2009-04-07  Robert Dewar  <dewar@adacore.com>
10187         * g-socket.adb: Minor reformatting.
10189         * g-socthi-mingw.adb: Minor reformatting
10191         * g-sothco.ads: Minor reformatting
10193         * exp_ch4.adb:
10194         (Expand_Concatenate_String): Complete rewrite to generate efficient code
10195         inline instead of relying on external library routines.
10197         * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
10198         s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
10199         obsolescent
10201 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
10203         * sem_attr.adb:
10204         (Eval_Attribute): for attributes of array objects that are not strings,
10205         attributes are not static if nominal subtype of object is unconstrained.
10207 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
10209         * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
10210         operations for a type T in an instance do not override each other,
10211         when T is derived from a formal private type, the corresponding
10212         operations inherited by a type derived from T outside
10213         of the instance do not override each other either.
10215 2009-04-07  Robert Dewar  <dewar@adacore.com>
10217         (Osint.Fail): Change calling sequence to have one string arg
10218         (Make.Make_Failed): Same change
10219         All callers are adjusted to use concatenation
10221 2009-04-07  Robert Dewar  <dewar@adacore.com>
10223         * exp_ch4.adb: Fix documentation typo
10225 2009-04-07  Robert Dewar  <dewar@adacore.com>
10227         * tbuild.ads: Minor reformatting
10229 2009-04-07  Javier Miranda  <miranda@adacore.com>
10231         * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
10232         when compiling under ZFP runtime.
10234 2009-04-07  Robert Dewar  <dewar@adacore.com>
10236         * g-comlin.adb: Minor reformatting
10238 2009-04-07  Thomas Quinot  <quinot@adacore.com>
10240         * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
10241         g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
10242         g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
10243         Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
10245 2009-04-07  Robert Dewar  <dewar@adacore.com>
10247         * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
10249         * opt.ads (Sprint_Line_Limit): New parameter
10250         
10251         * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
10252         
10253         * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
10254         
10255         * usage.adb: Output information for -gnatGnn -gnatDnn
10257 2009-04-07  Robert Dewar  <dewar@adacore.com>
10259         * make.adb: Minor reformatting
10261 2009-04-07  Robert Dewar  <dewar@adacore.com>
10263         * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
10265 2009-04-07  Robert Dewar  <dewar@adacore.com>
10267         * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
10269 2009-04-07  Robert Dewar  <dewar@adacore.com>
10271         * checks.adb:
10272         Remove Assume_Valid parameter from In_Subrange_Of calls
10273         
10274         * sem_eval.adb:
10275         (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
10276         (Is_In_Range): Remove incorrect use of Assume_Valid
10277         (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
10278         
10279         * sem_eval.ads:
10280         (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
10281         (Is_In_Range): Documentation cleanup
10282         (Is_Out_Of_Range): Documentation cleanup
10284         * gnat_rm.texi:
10285         Add documentation for Assume_No_Invalid_Values pragma
10287         * sem_ch12.adb: Minor reformatting
10289         * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
10291         * sem_prag.adb: Improve error message.
10293         * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
10294         LF/CR no longer recognized as line terminator
10296         * switch.ads: Minor documentation improvement
10298         * vms_data.ads: Minor reformatting
10300 2009-04-07  Robert Dewar  <dewar@adacore.com>
10302         * checks.adb (Determine_Range): Add Assume_Valid parameter
10303         
10304         * checks.ads (Determine_Range): Add Assume_Valid parameter
10305         
10306         * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
10307          Is_Null_Loop to suppress warnings in a loop body.
10308         
10309         * exp_ch4.adb:
10310         (Rewrite_Comparison): Major rewrite to accomodate invalid values
10311         
10312         * exp_ch5.adb:
10313         (Expand_N_Loop_Statement): Delete loop known not to execute
10314         
10315         * opt.ads:
10316         (Assume_No_Invalid_Values): Now set to False, and as documented, this
10317          fully enables the proper handling of invalid values.
10318         
10319         * sem_attr.adb:
10320         New calling sequence for Is_In_Range
10321         
10322         * sem_ch5.adb:
10323         (Analyze_Iteration_Scheme): Accomodate possible invalid values
10324          in determining if a loop range is null.
10325         
10326         * sem_eval.adb:
10327         (Is_In_Range): Add Assume_Valid parameter
10328         (Is_Out_Of_Range): Add Assume_Valid_Parameter
10329         (Compile_Time_Compare): Major rewrite to accomodate invalid values and
10330          also to do more accurate and complete range analysis, catching more
10331          cases.
10332         
10333         * sem_eval.ads:
10334         (Is_In_Range): Add Assume_Valid parameter
10335         (Is_Out_Of_Range): Add Assume_Valid_Parameter
10336         
10337         * sem_util.adb:
10338         New calling sequence for Is_In_Range
10339         
10340         * sinfo.adb:
10341         (Suppress_Loop_Warnings): New flag
10342         
10343         * sinfo.ads:
10344         (Is_Null_Loop): Update documentation
10345         (Suppress_Loop_Warnings): New flag
10346         
10347         * gnat_ugn.texi: Document -gnatB switch
10349 2009-04-07  Arnaud Charlet  <charlet@adacore.com>
10351         * gnatvsn.ads: Bump version number.
10353 2009-04-07  Thomas Quinot  <quinot@adacore.com>
10355         * exp_ch3.adb: Minor rewording (comments)
10357 2009-04-07  Robert Dewar  <dewar@adacore.com>
10359         * exp_disp.adb: Minor reformatting
10361 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10363         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
10364         underlying type.
10365         * gcc-interface/trans.c (lvalue_required_p): Likewise.
10367 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10369         * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
10370         Do not convert the result.  Remove obsolete comment.
10372 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10374         * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
10375         DECL_CONTEXT.
10376         (Subprogram_Body_to_gnu): Fix pasto.
10378 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10380         * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
10381         (void_type_decl_node): Remove.
10382         (init_gigi_decls): Likewise.
10383         (gnat_install_builtins): Declare.
10384         (record_builtin_type): Likewise.
10385         (create_type_stub_decl): Likewise.
10386         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
10387         (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
10388         artificial.
10389         <E_Array_Subtype>: Use the index types, not only their name, in the
10390         record giving the names of the bounds, if any.
10391         For a packed array type, make it artificial only if the base type
10392         was artificial as well.  Remove redundant statement.
10393         (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
10394         dummy types.
10395         Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
10396         (rest_of_type_decl_compilation_no_defer): Likewise.
10397         * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
10398         * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
10399         and use create_type_stub_decl to build it.
10400         (gnat_pushdecl): Rewrite condition.
10401         (gnat_install_builtins): Remove bogus declaration.
10402         (record_builtin_type): New function.
10403         (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
10404         of types.
10405         (create_type_stub_decl): New function.
10406         (create_type_decl): Assert that the type is not dummy.  If the type
10407         hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
10408         (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
10409         (build_vms_descriptor): Likewise.
10410         (init_gigi_decls): Delete and move bulk of code to...
10411         * gcc-interface/trans.c (gigi): ...here.  Use record_builtin_type.
10412         (emit_range_check): Add gnat_node parameter.
10413         (emit_index_check): Likewise.
10414         (emit_check): Likewise.
10415         (build_unary_op_trapv): Likewise.
10416         (build_binary_op_trapv): Likewise.
10417         (convert_with_check): Likewise.
10418         (Attribute_to_gnu): Adjust calls for above changes.
10419         (call_to_gnu): Likewise.
10420         (gnat_to_gnu): Likewise.
10421         (assoc_to_constructor): Likewise.
10422         (pos_to_constructor): Likewise.
10423         (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
10424         (process_type): Do not create TYPE_DECL for dummy types.
10426 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10428         * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
10429         * gcc-interface/trans.c: Fix formatting throughout.  Fix comments.
10430         * gcc-interface/utils.c: Fix comments.
10432 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10434         * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
10435         move around.
10436         (gnat_to_gnu_type): Move around.
10437         (get_unpadded_type): Likewise.
10438         * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
10439         Tidy comments.
10441 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10443         * gcc-interface/trans.c (check_for_eliminated_entity): New function.
10444         (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
10445         (call_to_gnu): Invoke it instead of manually checking.
10447 2009-04-04  Eric Botcazou  <ebotcazou@adacore.com>
10449         * gcc-interface/utils.c (finish_record_type): Force structural equality
10450         checks if the record type is discriminated.
10452 2009-03-31  Eric Botcazou  <ebotcazou@adacore.com>
10454         * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
10455         * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
10456         * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
10457         * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
10458         * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
10459         * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
10460         * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
10462 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
10464         * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
10465         of TREE_CONSTANT_OVERFLOW.
10467 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
10469         PR rtl-optimization/323
10470         * gcc-interface/misc.c (gnat_post_options): Set
10471         flag_excess_precision_cmdline.  Give an error for
10472         -fexcess-precision=standard for processors where the option is
10473         significant.
10475 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
10477         PR c/39323
10478         * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
10479         on bit_align.
10481 2009-03-11  Olivier Hainque  <hainque@adacore.com>
10483         * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
10484         checks processing, remove unintended TREE_TYPE walk on index type.
10486 2009-03-01  Eric Botcazou  <ebotcazou@adacore.com>
10488         PR ada/39264
10489         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
10490         call make_packable_type on fat pointer types.
10491         <E_Array_Subtype>: Likewise.
10492         <E_Record_Subtype>: Call make_packable_type on all record types
10493         except for fat pointer types.
10494         (make_packable_type): Likewise.
10495         (gnat_to_gnu_field): Likewise.
10497 2009-02-28  Eric Botcazou  <ebotcazou@adacore.com>
10499         * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
10500         EH_MECHANISM change made on 2007-12-06.
10502 2009-02-26  Andreas Schwab  <schwab@suse.de>
10504         PR ada/39172
10505         * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
10506         * gcc-interface/Makefile.in: Change all uses of $(srcdir),
10507         $(fsrcdir) and $(fsrcpfx) to add ada subdir.
10508         (AWK): Substitute.
10509         (target_cpu_default): Substitute.
10511 2009-02-25  Laurent GUERBY  <laurent@guerby.net>
10513         PR ada/39221
10514         * a-teioed.adb (Expand): Fix Result overflow.
10516 2009-02-25  Laurent GUERBY  <laurent@guerby.net>
10518         * gcc-interface/Makefile.in: Fix multilib handling for
10519         sparc64-linux.
10521 2009-02-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10523         * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
10525 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
10527         * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
10529 2009-02-16  Eric Botcazou  <ebotcazou@adacore.com>
10531         * gcc-interface/deftarg.c: Remove.
10533 2009-02-10  Olivier Hainque  <hainque@adacore.com>
10534             Eric Botcazou  <ebotcazou@adacore.com>
10536         * gcc-interface/decl.c (enum alias_set_op): New enumeration.
10537         (copy_alias_set): Rename into...
10538         (relate_alias_sets): ...this.  Add third parameter OP.  Retrieve the
10539         underlying array of unconstrained arrays for the new type as well.
10540         If the old and new alias sets don't conflict, make one a subset of
10541         the other as per the OP parameter.
10542         (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
10543         <E_Record_Type>: Do not copy the alias set for derived types.
10544         For all types, make the alias set of derived types a superset of
10545         that of their parent type.
10546         (make_aligning_type): Adjust calls to copy_alias_set.
10547         (make_packable_type): Likewise.
10548         * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
10549         Check for alias set conflict instead of strict equality to issue the
10550         warning.
10552 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
10554         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
10555         Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
10556         (copy_alias_set): Assert that arrays have the same aliasing settings.
10557         (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
10559 2009-02-08  Eric Botcazou  <ebotcazou@adacore.com>
10561         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
10562         Set TYPE_NONALIASED_COMPONENT on the array type.
10564 2009-01-31  Laurent GUERBY  <laurent@guerby.net>
10566         * gcc-interface/Makefile.in: Fix mipsel linux handling.
10568 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
10570         * gcc-interface/Makefile.in: Fix multilib handling for
10571         powerpc64-linux.
10573 2009-01-12  Eric Botcazou  <ebotcazou@adacore.com>
10575         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
10576         only useless conversions around renamed objects.
10578 2009-01-11  Eric Botcazou  <ebotcazou@adacore.com>
10580         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
10581         the _Tag field before any discriminants in the field list.
10582         (components_to_record): Remove obsolete comment.
10586 Copyright (C) 2009 Free Software Foundation, Inc.
10588 Copying and distribution of this file, with or without modification,
10589 are permitted in any medium without royalty provided the copyright
10590 notice and this notice are preserved.