2009-10-01 Tobias Burnus <burnus@net-b.de>
[official-gcc/alias-decl.git] / gcc / ada / ChangeLog
blobf0577bd9e26aca8a4fc02eb92a050302258e80bc
1 2009-09-29  Eric Botcazou  <ebotcazou@adacore.com>
3         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Factor out
4         common code processing the component type into...
5         <E_Array_Subtype>: Likewise.
6         (gnat_to_gnu_component_type): ...this new static function.
7         (maybe_pad_type): Minor cleanup.
9 2009-09-29  Eric Botcazou  <ebotcazou@adacore.com>
11         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Rewrite
12         the handling of constrained discriminated record subtypes.
13         (components_to_record): Declare the type of the variants and of the
14         qualified union.
15         (build_subst_list): Move around.
16         (compute_field_positions): Rename into...
17         (build_position_list): ...this.  Return a TREE_VEC.
18         (annotate_rep): Adjust for above renaming.
19         (build_variant_list): New static function.
20         (create_field_decl_from): Likewise.
21         (get_rep_part): Likewise.
22         (get_variant_part): Likewise.
23         (create_variant_part_from): Likewise.
24         (copy_and_substitute_in_size): Likewise.
26 2009-09-28  Olivier Hainque  <hainque@adacore.com>
28         PR ada/41100
29         * gcc-interface/targtyps.c (get_target_default_allocator_alignment):
30         Account for observable alignments out of default allocators.
32 2009-09-28  Richard Henderson  <rth@redhat.com>
34         * gcc-interface/utils.c (gnat_install_builtins): Update call to
35         build_common_builtin_nodes.
37 2009-09-26  Eric Botcazou  <ebotcazou@adacore.com>
39         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Filter out
40         negative size for the array dimensions like in the constrained case.
41         <E_Array_Subtype>: Do not create an artificially non-constant high
42         bound if the low bound is non-constant.  Minor tweaks.
44         * gcc-interface/trans.c (lvalue_required_p): Add CONSTANT parameter
45         and turn ALIASED into a boolean parameter.  Adjust calls to self.
46         <N_Attribute_Reference>: Return 1 for more attributes.
47         <N_Object_Renaming_Declaration>: Return 1 for non-constant objects.
48         <N_Assignment_Statement>: Return 1 for the LHS.
49         (Identifier_to_gnu): Adjust calls to lvalue_required_p.
50         (call_to_gnu): Be prepared for wrapped boolean rvalues.
52 2009-09-25  Olivier Hainquqe  <hainque@adacore.com>
53             Eric Botcazou  <ebotcazou@adacore.com>
55         * gcc-interface/ada-tree.h (TYPE_REPRESENTATIVE_ARRAY): New language
56         specific node.  Representative array type for VECTOR_TYPE entities.
57         * gcc-interface/utils.c (handle_vector_type_attribute): New handler.
58         Turn an ARRAY_TYPE entity into a VECTOR_TYPE.   
59         (gnat_types_compatible_p): Handle VECTOR_TYPEs.
60         (convert): Likewise.  Arrange to produce VECTOR_CST out of constant
61         array aggregates for VECTOR_TYPE entities.
62         (unchecked_convert): Likewise.
63         (maybe_vector_array): New function. If EXP has VECTOR_TYPE, return EXP
64         converted to the associated TYPE_REPRESENTATIVE_ARRAY.
65         (handle_pure_attribute, handle_sentinel_attribute,
66         handle_noreturn_attribute, handle_malloc_attribute,
67         handle_vector_size_attribute): Replace uses of qE format by qs.
68         Remove GCC_DIAG_STYLE definition.
69         * gcc-interface/trans.c (gnat_to_gnu) <N_Indexed_Component>: Convert
70         vector input to representative array type on entry.
71         <N_Op_Eq, etc>: Likewise.
72         * gcc-interface/gigi.h (maybe_vector_array): Declare.
73         (VECTOR_TYPE_P): New predicate.
74         * gcc-interface/misc.c (gnat_print_type): Handle VECTOR_TYPE.
76 2009-09-24  Eric Botcazou  <ebotcazou@adacore.com>
78         * gcc-interface/ada.h: Fix outdated comment.
79         * gcc-interface/ada-tree.h (SET_TYPE_RM_VALUE): Use MARK_VISITED in
80         lieu of mark_visited.
81         * gcc-interface/gigi.h (mark_visited): Change type of parameter.
82         (MARK_VISITED): New macro.
83         (gnat_truthvalue_conversion): Delete.
84         * gcc-interface/decl.c (gnat_to_gnu_entity): Use MARK_VISITED in lieu
85         of mark_visited.
86         (annotate_rep): Fix formatting and tidy.
87         (compute_field_positions): Get rid of useless variable.
88         * gcc-interface/trans.c (gnat_to_gnu): Retrieve the Nkind of the GNAT
89         node only once.  Use IN operator for the Nkind in more cases.
90         Remove calls to gnat_truthvalue_conversion.
91         (mark_visited): Change type of parameter and adjust.
92         (mark_visited_r): Dereference TP only once.
93         (add_decl_expr): Use MARK_VISITED in lieu of mark_visited.
94         * gcc-interface/utils2.c (gnat_truthvalue_conversion): Delete.
95         (build_binary_op): Remove calls to gnat_truthvalue_conversion.
96         (build_unary_op): Likewise.
98 2009-09-24  Dave Korn  <dave.korn.cygwin@gmail.com>
100         * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS): Simplify test for
101         a-except% in target pairs list; don't (implicitly) compare whitespace.
103 2009-09-24  Jakub Jelinek  <jakub@redhat.com>
105         * gcc-interface/utils.c (gnat_pushdecl): Don't set
106         DECL_NO_STATIC_CHAIN, set DECL_STATIC_CHAIN for
107         nested functions.
109 2009-09-21  Joel Sherrill  <joel.sherrill@oarcorp.com>
111         * s-osinte-rtems.ad[bs]: Get_Page_Size cannot return 0.
112         Bind to getpagesize() in RTEMS 4.10 and newer.
114 2009-09-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
116         * env.c [__alpha__ && __osf__] (_BSD): Define.
117         * init.c [__alpha__ && __osf__] (__gnat_error_handler): Cast msg
118         to const char *.
120 2009-09-18  Pascal Obry  <obry@adacore.com>
122         * mingw32.h: Activate Unicode support for x86-64 Windows platform.
124 2009-09-18  Vadim Godunko  <godunko@adacore.com>
126         * s-oscons-tmplt.c: Add circuit for handling IOV_MAX macro on IRIX.
128 2009-09-18  Javier Miranda  <miranda@adacore.com>
130         * exp_aggr.adb (Backend_Processing_Possible): Disable backend
131         processing for array aggregates in the VM backend if the array has
132         aliased components.
134 2009-09-18  Ed Schonberg  <schonberg@adacore.com>
136         * sem_ch4.adb (Analyze_Indexed_Component): Emit error if the type of
137         the prefix indicates a previous semantic error, and this is the first
138         error in the program.
140 2009-09-18  Bob Duff  <duff@adacore.com>
142         * gnat_ugn.texi: Minor editing.
144 2009-09-18  Vincent Celier  <celier@adacore.com>
146         * prj.ads, prj.adb (Project_Data): New component
147         Imported_Directories_Switches.
149 2009-09-18  Pascal Obry  <obry@adacore.com>
151         * mingw32.h: Include standard _mingw.h file.
152         Define _WIN32_WINNT only if not already defined.
154 2009-09-18  Thomas Quinot  <quinot@adacore.com>
156         * g-socket.adb (Is_Open): New function indicating whether a
157         Selector_Type object is open.
159 2009-09-18  Vincent Celier  <celier@adacore.com>
161         * osint-c.adb (Create_Output_Library_Info): Make sure that the ALI file
162         is deleted before creating it.
164 2009-09-18  Robert Dewar  <dewar@adacore.com>
166         * bindgen.adb: Minor reformatting
168 2009-09-18  Arnaud Charlet  <charlet@adacore.com>
170         * s-taprop-tru64.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
171         s-taprop-irix.adb, s-taprop-posix.adb (Abort_Task): Do nothing if no
172         signal handler is installed.
173         * s-tassta.adb (Finalize_Global_Tasks): Do not wait for independent
174         tasks if Abort_Task_Interrupt cannot be used.
176 2009-09-18  Vincent Celier  <celier@adacore.com>
178         * prj-tree.ads: Minor comment update
180 2009-09-17  Bob Duff  <duff@adacore.com>
182         * g-socket.ads: Document the fact that Close_Selector has no effect on
183         a closed selector.
184         * g-socket.adb: Raise an exception when a Selector that should be open
185         is closed.
186         (Check_Selector): Declare RSig as a constant rather than a renames,
187         less confusing.
189 2009-09-17  Robert Dewar  <dewar@adacore.com>
191         * exp_ch9.adb, exp_ch5.adb, exp_ch4.adb, prj-conf.adb, prj-env.ads,
192         prj-ext.adb, prj-ext.ads, prj-pars.adb, prj-part.adb, prj-proc.adb,
193         prj-tree.ads: Minor reformatting
195 2009-09-17  Emmanuel Briot  <briot@adacore.com>
197         * prj-conf.adb, prj-env.adb, prj-env.ads (Create_Temp_File): Moved to
198         spec.
199         (Do_Autoconf): If the object directory does not exists, create auto.cgpr
200         in a temporary directory instead
202 2009-09-17  Bob Duff  <duff@adacore.com>
204         * a-dynpri.adb (Set_Priority): Don't do anything if the task is already
205         terminated.
206         (Get_Priority): Correct message for "terminated" case -- it said "null".
208 2009-09-17  Robert Dewar  <dewar@adacore.com>
210         * exp_ch6.adb: Minor reformatting
212 2009-09-17  Emmanuel Briot  <briot@adacore.com>
214         * gnatcmd.adb, make.adb, prj-part.adb, prj-ext.adb, prj-ext.ads,
215         switch-m.adb, switch-m.ads, clean.adb, prj-tree.ads
216         (Project_Node_Tree_Data.Project_Path): New field.
218         * prj-conf.adb (Do_Autoconf): Remove "creating auto.cgpr" message
220 2009-09-17  Emmanuel Briot  <briot@adacore.com>
222         * prj-ext.adb, prj-ext.ads, makeutl.adb (Is_External_Assignment):
223         Remove duplicate code.
224         (Prj.Ext): Fix memory leak
225         (Check): Now allow the syntax "-Xfoo=" to set an empty value to the
226         variable. This was previously allowed in the code in
227         Is_External_Assignment, and some tests rely on it
229 2009-09-17  Bob Duff  <duff@adacore.com>
231         * gnat_rm.texi, s-oscons-tmplt.c: Minor typo
233 2009-09-17  Emmanuel Briot  <briot@adacore.com>
235         * gnatcmd.adb, prj-proc.adb, make.adb, prj-ext.adb, prj-ext.ads,
236         makeutl.adb, makeutl.ads, clean.adb, prj-pars.adb, prj-pars.ads,
237         prj-conf.adb, prj-conf.ads, prj-tree.adb, prj-tree.ads, prj-proc.ads,
238         prj-nmsc.ads (Add, Value_Of, Reset): new parameter Tree.
239         Scenario variables are now specific to each project tree loaded in
240         memory.
241         Code clean ups.
243 2009-09-17  Javier Miranda  <miranda@adacore.com>
245         * exp_disp.adb (Make_DT): Remove wrong line of code that was
246         undocumented and probably added by mistake.
248 2009-09-16  Eric Botcazou  <ebotcazou@adacore.com>
250         * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Size>: Strip
251         conversions between original and packable version of types from
252         the expression.
254 2009-09-16  Eric Botcazou  <ebotcazou@adacore.com>
256         * gcc-interface/decl.c (gnat_to_gnu_field): Add DEBUG_INFO_P parameter.
257         If a padding type was made for the field, declare it.
258         (components_to_record): Add DEBUG_INFO_P parameter.  Adjust call
259         to gnat_to_gnu_field and call to self.
260         (gnat_to_gnu_entity) <E_Array_Type>: Do not redeclare padding types.
261         <E_Array_Subtype>: Likewise.
262         Adjust calls to gnat_to_gnu_field and components_to_record.
264 2009-09-16  Robert Dewar  <dewar@adacore.com>
266         * prj-nmsc.adb: Minor reformatting
268 2009-09-16  Ed Schonberg  <schonberg@adacore.com>
270         * exp_ch4.adb (Expand_N_Conditional_Expression): If the type of the
271         expression is a by-reference type (tagged or inherently limited)
272         introduce an access type to capture references to the values of each
273         branch of the conditional.
275 2009-09-16  Emmanuel Briot  <briot@adacore.com>
277         * prj-proc.adb, prj-part.adb, prj-tree.adb, prj-tree.ads
278         (Project_Name_And_Node.Display_Name): new field
279         The display name of a project (as written in the .gpr file) is now
280         computed when the project file itself is parsed, not when it is
281         processed.
283 2009-09-16  Thomas Quinot  <quinot@adacore.com>
285         * freeze.adb, exp_intr.adb (Expand_Intrinsic_Call): Leave calls to
286         intrinsics untouched (to be expanded later on by gigi) if an external
287         name has been specified.
288         (Freeze_Entity): Do not generate a default external name for
289         imported subprograms with convention Intrinsic (so that the above code
290         can identify the case where an external name has been explicitly
291         provided).
293         * s-oscons-tmplt.c: Quote TARGET_OS early so that it is not erroneously
294         replaced by something else due to an existing #define clause.
296 2009-09-16  Ed Schonberg  <schonberg@adacore.com>
298         * sinfo.ads, sinfo.adb (Is_Accessibility_Actual): New flag on
299         Parameter_Association node, created for the extra actual generated for
300         an access parameter of a function that dispatches on result, to prevent
301         double generation of such actuals when the call is rewritten is a
302         dispatching call.
303         * exp_ch6.adb (Expand_Call): Set Is_Accessibility_Actual when needed.
304         * exp_disp.adb (Expand_Dispatching_Call): Do not transfer extra actuals
305         that carry this flag when rewriting the original call as a dispatching
306         call, after propagating the controlling tag.
308 2009-09-16  Vincent Celier  <celier@adacore.com>
310         * prj-nmsc.adb (Add_Source): New parameter Source_Dir_Rank to be put
311         in the source data.
312         (Check_File): New parameter Source_Dir_Rank, to check if a duplicate
313         source is allowed.
314         (Find_Source_Dirs): New parameter Rank to be recorded with the source
315         directories.
316         (Search_Directories): Call Check_File with the rank of the directory
317         * prj.adb (Project_Empty): Add new component Source_Dir_Ranks
318         (Free): Free also Number_Lists
319         (Reset): Init also Number_Lists
320         * prj.ads (Number_List_Table): New dynamic table for lists of numbers
321         (Source_Data): New component Source_Dir_Rank. Remove component
322         Known_Order_Of_Source_Dirs, no longer needed.
323         (Project_Data): New component Source_Dir_Ranks
324         (Project_Tree_Data): New components Number_Lists
326 2009-09-16  Vincent Celier  <celier@adacore.com>
328         * gprep.adb (Yes_No): New global constant
329         Unix_Line_Terminators: New global Boolean variable
330         (Process_One_File): Create the out file with a "Text_Translation=" form
331         that depends on the use of option -T.
332         (Scan_Command_Line): Add option -T
333         (Usage): Add line for option -T
335 2009-09-16  Ed Schonberg  <schonberg@adacore.com>
337         * exp_disp.ads, exp_disp.adb (Is_Predefined_Internal_Operation): New
338         predicate that describes a proper subset of
339         Is_Predefined_Dispatching_Operation and excludes stream operations,
340         which can be overridden by the user.
341         * sem_ch6.adb (Create_Extra_Formals): use
342         Is_Predefined_Internal_Operation, so that stream operations get extra
343         formals.
344         * exp_ch6.adb (Prevent double generation of extra actuals in calls to
345         'Input, which may be expanded twice, first as a function call and then
346         as a dispatching call.
348 2009-09-16  Thomas Quinot  <quinot@adacore.com>
350         * s-oscons-tmplt.c (Target_OS, Target_Name): New constants.
351         * g-expect.adb (Set_Up_Child_Communications): Use
352         System.OS_Constants.Target_OS to determine whether running on Windows.
354 2009-09-14  Richard Henderson  <rth@redhat.com>
356         * gcc-interface/trans.c (Pragma_to_gnu): Use build5 for ASM_EXPR.
358 2009-09-14  Eric Botcazou  <ebotcazou@adacore.com>
360         * exp_dbug.ads (Packed Array Encoding): Document the new encoding for
361         the unconstrained case.
362         * gcc-interfaces/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Implement
363         the encoding.  Do not give a name to the pointer type to the XUT type.
364         * gcc-interfaces/utils.c (gnat_pushdecl): Propagate DECL_ORIGINAL_TYPE
365         for fat pointer types, if any.  Make sure DECL_ARTIFICIAL is cleared
366         on nodes with DECL_ORIGINAL_TYPE set.
367         (update_pointer_to): Set DECL_ORIGINAL_TYPE to the original pointer
368         for fat pointer types.  Make sure DECL_ARTIFICIAL is cleared.
370 2009-09-14  Richard Henderson  <rth@redhat.com>
372         * gcc-interface/misc.c (gnat_init_gcc_eh): Don't call
373         default_init_unwind_resume_libfunc.
374         * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Use
375         __builtin_eh_pointer.
376         * gcc-interface/utils.c (gnat_install_builtins): Update call
377         to build_common_builtin_nodes.
379 2009-09-13  Richard Guenther  <rguenther@suse.de>
380             Rafael Avila de Espindola  <espindola@google.com>
382         * gcc-interface/misc.c (gnat_init_gcc_eh): Do not set variables
383         eh_personality_libfunc and lang_eh_runtime_type.
384         (LANG_HOOKS_EH_PERSONALITY): Define.
385         (gnat_eh_personality_decl): New static variable.
386         (gnat_eh_personality): New static function.
387         Include gt-ada-misc.h.
388         * gcc-interface/Make-lang.in (misc.o): Add gt-ada-misc.h dependency.
389         * gcc-interface/config-lang.in (gtfiles): Add misc.c.
391 2009-09-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
393         PR ada/18302
394         * gcc-interface/Make-lang.in (check-acats): Export rootme, EXPECT.
396 2009-09-08  Eric Botcazou  <ebotcazou@adacore.com>
398         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Tidy
399         flow of control.
400         Avoid useless work when processing the Treat_As_Volatile flag.
402 2009-09-08  Eric Botcazou  <ebotcazou@adacore.com>
404         * gcc-interface/targtyps.c: Reorder include directives.
406 2009-09-07  Laurent GUERBY  <laurent@guerby.net>
408         * gcc-interface/targtyps.c: Add missing include for tm_p.h.
409         * gcc-interface/Make-lang.in: Update dependencies.
411 2009-09-07  Laurent GUERBY  <laurent@guerby.net>
413         * make.adb: Add missing documentation for multilib handling.
414         
415 2009-09-03  Diego Novillo  <dnovillo@google.com>
417         * gcc-interface/misc.c (lang_hooks): Remove const qualifier.
419 2009-09-02  Richard Henderson  <rth@redhat.com>
421         * tb-gcc.c (__gnat_backtrace): Mark all arguments unused.
423 2009-09-02  Olivier Hainque  <hainque@adacore.com>
425         * init.c (__gnat_error_handler, AIX): Add ATTRIBUTE_UNUSED on si
426         and uc arguments.
427         
428 2009-09-02  Olivier Hainque  <hainque@adacore.com>
430         * gcc-interface/decl.c (cannot_be_superflat_p): Handle
431         Signed_Integer_Type_Definition Scalar_Ranges.
433 2009-09-02  Eric Botcazou  <ebotcazou@adacore.com>
435         * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Gimplify the
436         SAVE_EXPR built for misaligned arguments.  Remove redundant stuff.
437         (addressable_p): Return true for more rvalues.
439 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
441         * gcc-interface/utils2.c (maybe_wrap_malloc, maybe_wrap_free): Cast
442         POINTER_SIZE to HOST_WIDE_INT.
444 2009-09-01  Richard Guenther  <rguenther@suse.de>
446         * gcc-interface/misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
448 2009-08-25  Eric Botcazou  <ebotcazou@adacore.com>
450         * gcc-interface/trans.c (call_to_gnu): Tidy.
451         (gnat_to_gnu) <N_Slice>: Set TYPE_ARRAY_MAX_SIZE if the slice has
452         non-constant size but the array itself has constant size.
453         * gcc-interface/utils.c (convert_vms_descriptor64): Fix type
454         consistency error.
455         (convert_vms_descriptor32): Likewise.
457 2009-08-22  Aurelien Jarno  <aurelien@aurel32.net>
459         * gcc-interface/Makefile.in: Add Ada support for 
460         GNU/kFreeBSD x86_64.
461         * system-freebsd-x86_64.ads: New file based on 
462         system-freebsd-x86.ads.
464 2009-08-20  Eric Botcazou  <ebotcazou@adacore.com>
466         * gcc-interface/utils.c (convert): In the padded case, do the final
467         conversion as an unchecked conversion if the underlying types are
468         array types with variable size.
470 2009-08-20  Eric Botcazou  <ebotcazou@adacore.com>
472         * gcc-interface/ada-tree.h (SET_TYPE_RM_VALUE): Mark the expression
473         as visited.
474         * gcc-interface/misc.c (gnat_get_subrange_bounds): Always return the
475         bounds.
476         * gcc-interface/trans.c (add_decl_expr): Do not mark gigi-specific
477         fields.
478         (gnat_gimplify_expr) <DECL_EXPR>: New case.
480 2009-08-17  Aurelien Jarno  <aurelien@aurel32.net>
482         * s-osinte-kfreebsd-gnu.ads (SA_ONSTACK): New constant.
483         (stack_t): New record type.
484         (sigaltstack): New imported function.
485         (Alternate_Stack): New imported variable.
486         (Alternate_Stack_Size): New constant.
488 2009-08-17  Vasiliy Fofanov  <fofanov@adacore.com>
490         * a-calend-vms.adb: Fix typo.
492 2009-08-17  Tristan Gingold  <gingold@adacore.com>
494         * s-taprop-posix.adb: Round up the stack size to avoid failure on
495         Darwin.
497 2009-08-17  Gary Dismukes  <dismukes@adacore.com>
499         * sem_cat.adb (Validate_Static_Object_Name): Update comment.
501 2009-08-17  Vincent Celier  <celier@adacore.com>
503         * make.adb (Arguments_Collected): Unneeded, removed
504         (Change_To_Object_Directory): Use Project directly. Add pragma Assert to
505         ensure caller does not pass in No_Project.
506         (Compile): Add new parameter Project. Let procedure
507         Collect_Arguments_And_Compile provide the proper value.
509         * switch-c.adb: Add documentation for -gnatea and -gnatez
511 2009-08-17  Ben Brosgol  <brosgol@adacore.com>
513         * gnat_ugn.texi: Changed name of package in SAL example, to avoid
514         clash with Ada 2005 reserved word (interface).
516 2009-08-17  Robert Dewar  <dewar@adacore.com>
518         * a-crbtgk.adb, a-crdlli.adb, a-direct.adb, a-caldel-vms.adb,
519         a-calend-vms.adb, a-calfor.adb, a-cdlili.adb, a-chahan.adb,
520         a-cidlli.adb, a-coinve.adb, a-comlin.adb: Minor code reorganization
521         (use conditional expressions).
523 2009-08-17  Robert Dewar  <dewar@adacore.com>
525         * make.adb: Add ??? comment
526         * tbuild.adb: Minor reformatting
528 2009-08-17  Thomas Quinot  <quinot@adacore.com>
530         * exp_ch4.adb (Exp_Ch4.Expand_N_Slice.Make_Temporary): Rename to
531         Make_Temporary_For_Slice to avoid confusion with Tbuild.Make_Temporary.
532         Use Tbuild.Make_Temporary to create entity for the temporary.
534 2009-08-17  Arnaud Charlet  <charlet@adacore.com>
536         * make.adb (Process_Multilib, Scan_Make_Arg): Refine previous change
537         and ignore -mieee switch to avoid spawning an extra gcc in this case.
539 2009-08-17  Thomas Quinot  <quinot@adacore.com>
541         * tbuild.adb: Minor reformatting
543 2009-08-17  Ed Schonberg  <schonberg@adacore.com>
545         * exp_ch3.adb (Build_Discriminant_Formals): If the discriminals already
546         exist, as is the case for synchronized types, use the type of the
547         discriminal in the parameter specification, to prevent a spurious
548         subtype mismatch in gigi.
550 2009-08-17  Robert Dewar  <dewar@adacore.com>
552         * prj-env.adb: Minor reformatting
553         * make.adb: Minor reformatting
554         Comment updates
556 2009-08-17  Javier Miranda  <miranda@adacore.com>
558         * exp_ch7.adb (Wrap_Transient_Expression): Update comments.
560 2009-08-17  Emmanuel Briot  <briot@adacore.com>
562         * prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-conf.adb
563         (Processing_Flags.Require_Obj_Dirs): new field, which controls whether
564         object directories must be present. In the case of gprclean at least,
565         these are optional (if they do not exist there is nothing to clean)
567 2009-08-17  Robert Dewar  <dewar@adacore.com>
569         * prj-env.adb: Minor reformatting
570         * sem_ch3.adb: Minor reformatting
572 2009-08-17  Hristian Kirtchev  <kirtchev@adacore.com>
574         * sysdep.c (__gnat_localtime_tzoff): VxWorks case - Flip the sign of
575         the time zone since VxWorks chose positive values to represent west
576         time zones and negative for east zones.
578 2009-08-17  Ed Schonberg  <schonberg@adacore.com>
580         * sem_ch3.adb (Access_Definition): Do not create an Itype reference for
581         an anonymous access type whose designated type is generic.
583 2009-08-17  Arnaud Charlet  <charlet@adacore.com>
585         * comperr.adb (Compiler_Abort): Do not generate a bug box when in
586         codepeer mode, friendlier.
588 2009-08-10  Laurent GUERBY  <laurent@guerby.net>
590         * make.adb: Handle multilib
591         
592 2009-08-10  Vincent Celier  <celier@adacore.com>
594         * prj-env.adb (Create_Config_Pragmas_File.Write_Temp_File): Do not use
595         the temporary file name in the error message when the temporary file
596         cannot be created.
598 2009-08-10  Yannick Moy  <moy@adacore.com>
600         * gnat_ugn.texi: Fix typo
602 2009-08-10  Robert Dewar  <dewar@adacore.com>
604         * exp_ch7.adb: Add ??? comment for last change
606 2009-08-10  Vincent Celier  <celier@adacore.com>
608         * prj-env.adb (Add_To_Buffer): New procedure
609         (Create_Config_Pragmas_File): Write to temporary file in one shot
610         (Create_Mapping_File): Ditto
611         (Set_Ada_Paths): Ditto
613 2009-08-10  Vincent Celier  <celier@adacore.com>
615         PR ada/17566
616         * xref_lib.adb (Print_Xref): Make sure that there is at least one space
617         between a declaration name and its type.
619 2009-08-07  Javier Miranda  <miranda@adacore.com>
621         * exp_ch7.adb (Wrap_Transient_Expression): Add missing adjustment of
622         SCIL node.
624 2009-08-07  Robert Dewar  <dewar@adacore.com>
626         * sem_warn.adb (Warn_On_Unreferenced_Entity): Fix obvious typo.
628 2009-08-07  Vincent Celier  <celier@adacore.com>
630         * gnatcmd.adb (GNATCmd): If -U is not used, one and only one main is
631         specified on the command line and there are switches in the Compiler
632         package of the project file, use these compilation switches to invoke
633         the tool.
635 2009-08-07  Ben Brosgol  <brosgol@adacore.com>
637         * gnat_ugn.texi: Wordsmithing edits at beginning of gnatcheck chapter.
639 2009-08-07  Ed Schonberg  <schonberg@adacore.com>
641         * sem_ch10.adb (Analyze_Proper_Body): Indicate name of missing subunit
642         even if not in main unit, to simplify debugging.
644 2009-08-07  Arnaud Charlet  <charlet@adacore.com>
646         * gcc-interface/Makefile.in: Fix handling of GCC_FOR_TARGET.
647         * gcc-interface/Make-lang.in: Update dependencies.
649 2009-08-07  Robert Dewar  <dewar@adacore.com>
651         * types.ads: Minor reformatting
652         * sem_ch12.ads (Check_Generic_Child_Unit): Add missing documentation.
653         * frontend.adb, sem_warn.adb, sem_warn.ads: Fix spelling of
654         Output_Non_Modified_In_Out_Warnings.
655         * sem_ch13.adb: Remove ??? comment.
657 2009-08-07  Vincent Celier  <celier@adacore.com>
659         * mlib-prj.adb (Build_Library): Include binder generate object file
660         for SAL when library name is only one character.
662 2009-08-07  Thomas Quinot  <quinot@adacore.com>
664         * targparm.adb: Minor reformatting
665         * sem.adb: Minor reformatting
666         * exp_ch4.adb (Expand_N_Conditional_Expression): Add comment.
668 2009-08-07  Emmanuel Briot  <briot@adacore.com>
670         * prj-conf.adb: Remove duplicate directory separator in the output when
671         an object directory does not exist.
673 2009-08-07  Robert Dewar  <dewar@adacore.com>
675         * exp_util.adb: Minor reformatting
677 2009-08-07  Vincent Celier  <celier@adacore.com>
679         * mlib-prj.adb (Build_Library): Fixed bug in name of ALI file (wrong
680         length used).
682 2009-08-07  Ed Schonberg  <schonberg@adacore.com>
684         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): In Ravenscar mode,
685         detect non-static private components that will violate restriction
686         No_Implicit_Heap_Allocation.
688 2009-08-07  Ben Brosgol  <brosgol@adacore.com>
690         * gnat_ugn.texi: Edited Rule Exemption section of gnatcheck chapter.
692 2009-08-02  Eric Botcazou  <ebotcazou@adacore.com>
694         * gcc-interface/gigi.h (end_subprog_body): Tweak comment.
695         * gcc-interface/utils.c (end_subprog_body): Likewise.
696         * gcc-interface/trans.c (gigi): Likewise.
697         (gnat_to_gnu): Likewise.
699 2009-07-30  Ben Brosgol  <brosgol@adacore.com>
701         * gnat_ugn.texi: Correct minor texi glitch.
703 2009-07-30  Ed Schonberg  <schonberg@adacore.com>
705         * exp_util.adb (Expand_Subtype_From_Expr): If the type of the
706         expression has an underlying representation that is an unchecked union,
707         there is no subtype to build.
709 2009-07-30  Robert Dewar  <dewar@adacore.com>
711         * a-teioed.adb, exp_disp.adb, s-linux-hppa.ads, s-linux.ads,
712         s-tasini.adb, sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch6.adb,
713         sem_ch7.adb, adaint.c: Minor reformatting
715 2009-07-29  Javier Miranda  <miranda@adacore.com>
717         * sem_ch3.ads, sem_ch3.adb (Add_Internal_Interface_Entities): Routine
718         moved from the expander to the semantic analyzer to allow the
719         generation of these internal entities when compiling with no code
720         generation. Required by ASIS.
721         * sem.adb (Analyze): Add processing for N_Freeze_Entity nodes.
722         * sem_ch13.ads, sem_ch13.adb (Analyze_Freeze_Entity): New subprogram.
723         * exp_ch3.adb (Add_Internal_Interface_Entities): Moved to sem_ch3
724         (Expand_Freeze_Record_Type): Remove call to
725         Add_Internal_Interface_Entities because this routine is now called at
726         early stage --when the freezing node is analyzed.
728 2009-07-29  Robert Dewar  <dewar@adacore.com>
730         * exp_atag.ads, exp_atag.adb, s-tasini.adb, s-soflin.ads,
731         exp_disp.adb, g-socket.adb: Minor reformatting
733 2009-07-29  Ed Schonberg  <schonberg@adacore.com>
735         * sem_ch7.adb (New_Private_Type): Create class-wide type after other
736         attributes have been established, so that they are all inherited by the
737         class-wide type.
738         * sem_cat.adb (Validate_Remote_Access_Object_Type_Declaration): Handle
739         properly named subtypes of class-wide types.
741 2009-07-29  Ed Schonberg  <schonberg@adacore.com>
743         * sem_ch6.adb (Check_Overriding_Indicator): Handle properly overriding
744         indicators on user-defined operators.
746 2009-07-29  Vadim Godunko  <godunko@adacore.com>
748         * g-socket.adb (Receive_Vector): Add comment.
750 2009-07-29  Javier Miranda  <miranda@adacore.com>
752         * frontend.adb (Frontend): Code cleanup.
753         * exp_atag.ads, exp_atag.adb (Build_Get_Predefined_Prim_Op_Address):
754         Rewriten as a procedure because it a new out-mode parameters to
755         keep up-to-date the controlling tag node in the caller.
756         (Build_Get_Prim_Op_Address): Rewriten as a procedure because it has a
757         new out-mode parameter to keep up-to-date the controlling tag node in
758         the caller.
759         * exp_ch7.adb, sem_ch5.adb, exp_util.adb, sem_util.adb, exp_ch4.adb,
760         exp_ch6.adb, sem_ch4.adb, exp_ch3.adb: Add new dependency on new
761         package Sem_SCIL.
762         * sem_aux.ads, sem_aux.adb (First_Non_SCIL_Node): Removed. Routine
763         available in new package Sem_SCIL.
764         (Next_Non_SCIL_Node): Ditto.
765         * exp_disp.adb (Adjust_SCIL_Node): Removed. Routine available in new
766         package Sem_SCIL.
767         (Expand_Dispatching_Call): Update call to modified Exp_Atags routines
768         plus complete decoration of SCIL dispatching node.
769         (Find_SCIL_Node): Removed. Routine available in new package Sem_SCIL.
770         * exp_disp.ads (Adjust_SCIL_Node): Removed. Routine available in new
771         package Sem_SCIL.
772         (Find_SCIL_Node): Removed. Routine available in new package Sem_SCIL.
773         * exp_ch3.adb (Build_Init_Procedure): Fix comment.
774         * sem_scil.ads, sem_scil.adb: New files.
775         * gcc-interface/Make-lang.in (GNAT_ADA_OBJS): Addition of sem_scil.o.
776         Update dependencies.
778 2009-07-28  Robert Dewar  <dewar@adacore.com>
780         * adaint.h, einfo.ads, prj.adb, sem_util.adb, makeutl.ads,
781         makeutl.adb: Minor reformatting & code reorganization
782         * sem_ch3.adb: Minor reformatting.
783         Fix spelling error (constraint for constrain) in error msg.
785 2009-07-28  Emmanuel Briot  <briot@adacore.com>
787         * make.adb, makeutl.adb, makeutl.ads (Project_Tree): Duplicates the
788         global variable that also exists in makeutl.ads, and that some routines
789         in that package use already.
790         (Check): Moved part of the code to makeutl.adb for better sharing with
791         gprbuild.
793 2009-07-28  Arnaud Charlet  <charlet@adacore.com>
795         * gcc-interface/Make-lang.in: Update dependencies.
797 2009-07-28  Emmanuel Briot  <briot@adacore.com>
799         * prj.adb, prj.ads (Compute_All_Imported_Projects): Make sure the
800         importing project does not end up in the list, in the case of extending
801         projects.
802         * make.adb, makeutl.adb, makeutl.ads (File_Not_A_Source_Of): Moved to
803         makeutl.ads, for better sharing with gprbuild.
805 2009-07-28  Arnaud Charlet  <charlet@adacore.com>
807         * gnat_ugn.texi: Fix typo.
809 2009-07-28  Ed Schonberg  <schonberg@adacore.com>
811         * sem_ch3.adb (Build_Derived_Concurrent_Type): Handle properly a
812         derivation that renames some discriminants and constrain others.
813         * exp_ch9.adb (Build_Protected_Subprogram_Call): If the type of the
814         prefix is a derived untagged type, convert to the root type to conform
815         to the signature of the protected operations.
817 2009-07-28  Robert Dewar  <dewar@adacore.com>
819         * sinfo.ads: Update comments.
820         * exp_attr.adb: Minor reformatting
822 2009-07-28  Ed Schonberg  <schonberg@adacore.com>
824         * sem_aggr.adb (Get_Value): A named association in a record aggregate
825         should be treated as a modification of the named component, not as a
826         reference.
828 2009-07-28  Quentin Ochem  <ochem@adacore.com>
830         * prj-tree.ads, prj-tree.adb (Free): Minor editing.
831         * prj.ads, prj.adb (Image): Ditto.
833 2009-07-28  Arnaud Charlet  <charlet@adacore.com>
835         * frontend.adb: Minor reformatting.
836         (Frontend): Only call Check_SCIL_Nodes if assertions are enabled,
837         for efficiency.
839 2009-07-28  Bob Duff  <duff@adacore.com>
841         * exp_attr.adb (Expand_Access_To_Protected_Op): Use 'Access instead of
842         'Address to get a pointer to the protected body wrapper.
844 2009-07-28  Javier Miranda  <miranda@adacore.com>
846         * gnat1drv.adb (Adjust_Global_Switches): Disable generation of SCIL
847         nodes if we are not generating code.
848         * frontend.adb (Check_SCIL_Node): New subprogram. Used to check
849         attribute SCIL_Related_Node of SCIL dispatching nodes.
850         (Check_SCIL_Nodes): New instantiation of Traverse_Proc.
851         * sinfo.ads (Is_SCIL_Node,Set_Is_SCIL_Node): Removed
852         (SCIL_Nkind,Set_SCIL_Nkind): Removed.
853         (SCIL_Entity): Update documentation.
854         (SCIL_Related_Node): Update documentation.
855         (SCIL_Controlling_Tag): New attribute.
856         (SCIL_Target_Prim): Update documentation.
857         (N_Null_Statement): Remove attributes associated with SCIL nodes.
858         (N_SCIL_Dispatch_Table_Object_Init): New node.
859         (N_SCIL_Dispatch_Table_Tag_Init): New node.
860         (N_SCIL_Dispatching_Call): New node.
861         (N_SCIL_Tag_Init): New node.
862         * sinfo.adb (Is_SCIL_Node,Set_Is_SCIL_Node): Removed
863         (SCIL_Nkind,Set_SCIL_Nkind): Removed.
864         (SCIL_Controlling_Tag/Set_SCIL_Controlling_Tag): New subprogram.
865         (SCIL_Entity,Set_SCIL_Entity): Applicable only to SCIL nodes.
866         (SCIL_Related_Node,Set_SCIL_Related_Node): Applicable only to SCIL nodes
867         (SCIL_Target_Prim,Set_SCIL_Target_Prim): Applicable only to
868         N_SCIL_Dispatching_Call nodes.
869         * sem.adb (Analyze): No need to analyze SCIL nodes.
870         * sem_aux.ads, sem_aux.adb (First_Non_SCIL_Node): New subprogram
871         (Next_Non_SCIL_Node): New subprogram
872         * sem_ch4.adb (Analyze_Type_Conversion): Adjust relocated SCIL
873         dispatching nodes.
874         * sem_ch5.adb (Analyze_Iteration_Scheme): Adjust relocated SCIL
875         dispatching node.
876         * sem_util.adb (Insert_Explicit_Dereference): Adjust relocated SCIL
877         dispatching node.
878         * exp_ch3.adb (Build_Array_Init_Proc): Skip SCIL nodes when processing
879         null statement nodes.
880         (Build_Init_Procedure): Generate new SCIL node.
881         * exp_ch4.adb (Expand_N_And_Then): Adjust relocated SCIL dispatching
882         node.
883         * exp_ch6.adb (Is_Null_Procedure): Skip SCIL nodes. Required because
884         they are currently implemented as special N_Null_Statement nodes.
885         * exp_ch7.adb (Wrap_Transient_Statement): If the relocated node is a
886         procedure call then check if some SCIL node references it and needs
887         readjustment.
888         * exp_disp.ads (SCIL_Node_Kind): Removed.
889         (Adjust_SCIL_Node): New subprogram.
890         (Find_SCIL_Node): New subprogram.
891         (Get_SCIL_Node_Kind): Removed.
892         (New_SCIL_Node): Removed.
893         * exp_disp.adb (Adjust_SCIL_Node): New subprogram
894         (Expand_Dispatching_Call): Generate new SCIL dispatching node including
895         decoration of its new controlling_tag attribute.
896         (Get_SCIL_Node_Kind): Removed.
897         (Find_SCIL_Node): New subprogram.
898         (Make_Secondary_DT): Generate new SCIL nodes.
899         (Make_Tags): Generate new SCIL nodes.
900         (New_SCIL_Node): Removed.
901         * exp_util.adb (Insert_Actions): Handle SCIL nodes.
902         (Remove_Side_Effects): Check if relocated nodes require readjustment
903         of some SCIL dispatching node.
904         * gcc-interface/trans.c (gnat_to_gnu): Do nothing with new SCIL nodes.
906 2009-07-28  Robert Dewar  <dewar@adacore.com>
908         * prj-nmsc.adb, g-expect.adb, prj.ads: Minor reformatting
910 2009-07-28  Sergey Rybin  <rybin@adacore.com>
912         * gnat_ugn.texi: Add section about gnatcheck rule exemption.
914 2009-07-28  Vadim Godunko  <godunko@adacore.com>
916         * s-oscons-tmplt.c: Define _XOPEN_SOURCE on Linux, otherwise IOV_MAX is
917         not defined by limits.h.
919         * g-socket.adb (Receive_Vector): Use minimum length from user's vector
920         length and maximum supported length of data vector.
922 2009-07-28  Gary Dismukes  <dismukes@adacore.com>
924         * usage.adb: Inhibit printing gcc-specific switches for AAMP target.
925         * make.adb: Call Get_Target_Parameters before calling Usage so that
926         VM_Target and AAMP_On_Target will be set.
928 2009-07-28  Olivier Hainque  <hainque@adacore.com>
930         * g-ssinty.ads: Remove, pointless and just confusing at this stage.
931         * gnat_rm.texi: Remove documentation.
932         * g-sse.ads: Minor reorg along the way.
933         * gcc-interface/Makefile.in: Remove processing for g-ssinty.
934         * g-ssvety.ads: Minor comment updates.
936 2009-07-28  Sergey Rybin  <rybin@adacore.com>
938         * gnat_ugn.texi: gnatcheck 'Format of the Report File' section - update
939         for the new format of the report file.
941 2009-07-28  Sergey Rybin  <rybin@adacore.com>
943         * gnat_ugn.texi: gnatcheck Deeply_Nested_Inlining rule: Update doc.
945 2009-07-28  Pascal Obry  <obry@adacore.com>
947         * g-expect.adb: Record standard handles only on Windows.
949 2009-07-27  Emmanuel Briot  <briot@adacore.com>
951         * prj.ads, prj-nmsc.adb (Override_Kind): add debug trace
952         Add comments.
954 2009-07-27  Sergey Rybin  <rybin@adacore.com>
956         * gnat_ugn.texi: gnatcheck Unconstrained_Array_Returns rule: Add to the
957         rule definition the paragraph that explains that generic functions and
958         functions from generic packages are not checked.
960 2009-07-27  Gary Dismukes  <dismukes@adacore.com>
962         * sem_ch6.adb (New_Overloaded_Entity): Add test for an expanded null
963         procedure when determining whether to set the Overridden_Operation
964         field of a subprogram overriding an inherited subprogram.
965         
966 2009-07-27  Robert Dewar  <dewar@adacore.com>
968         * a-except.adb, a-except-2005.ads: Minor reformatting
970 2009-07-27  Robert Dewar  <dewar@adacore.com>
972         * sem_util.adb, sem_util.ads (Kill_Current_Values): Reset Is_Known_Valid
974 2009-07-27  Javier Miranda  <miranda@adacore.com>
976         * exp_disp.adb (Expand_Dispatching_Call): Reverse previous patch and
977         add some documentation explaining why the SCIL nodes must be generated
978         at that point.
980 2009-07-27  Olivier Hainque  <hainque@adacore.com>
982         * a-except.adb: Bind to __builtin_longjmp directly.
983         * a-except-2005.ads: Provide direct binding to __builtin_longjmp
984         for sjlj variants.
985         * a-exexpr.adb: Use it.
986         * a-except-xi.adb: Likewise.
987         * raise.c (_gnat_builtin_longjmp): Remove and update comments.
988         * raise.h (_gnat_builtin_longjmp): Remove declaration.
990 2009-07-27  Ed Schonberg  <schonberg@adacore.com>
992         * sem_eval.adb (Compile_Time_Compare): More precise handling of
993         Known_Valid flag, to prevent spurious range deductions when scalar
994         variables may be uninitialized. New predicate Is_Known_Valid_Operand.
996 2009-07-27  Robert Dewar  <dewar@adacore.com>
998         * gnatfind.adb, osint.ads, sem.adb, xr_tabls.adb: Minor reformatting
999         and code clean up.
1001 2009-07-27  Ed Schonberg  <schonberg@adacore.com>
1003         * exp_ch9.adb (Expand_N_Timed_Entry_Call): Do not attempt expansion in
1004         Ravenscar mode. Error has already been posted on specification.
1006         * sem.adb: Further code clean ups.
1008 2009-07-27  Robert Dewar  <dewar@adacore.com>
1010         * g-sse.ads: Minor reformatting
1012 2009-07-27  Arnaud Charlet  <charlet@adacore.com>
1014         * xref_lib.adb (Add_Xref_File_Internal, Find_ALI_Files): Add support for
1015         alternate ali extension.
1016         * xr_tabls.adb (ALI_File_Name, Get_File, Set_Unvisited): Take into
1017         account Osint.ALI_Suffix.
1018         * osint.ads (ALI_Suffix): Make visible.
1019         * gnatfind.adb (Gnatfind): Add support for --ext= switch.
1020         * gnat_ugn.texi: Document new gnatfind --ext= switch.
1022 2009-07-27  Ed Schonberg  <schonberg@adacore.com>
1024         * sem.adb (Walk_Library_Items): If main unit is an instance body, do
1025         its spec first.
1027 2009-07-27  Javier Miranda  <miranda@adacore.com>
1029         * exp_disp.adb (Expand_Dispatching_Call): Generate the SCIL node after
1030         the dispatching call has is expanded.
1032 2009-07-27  Ed Schonberg  <schonberg@adacore.com>
1034         * exp_attr.adb (Expand_Attribute_Reference, case 'Valid): Reset the
1035         Is_Known_Valid flag on the temporary created for the value whose
1036         validity is being checked.
1038         * sem.adb (Do_Unit_And_Dependents): Further code reorganization to
1039         handle properly main units that are package specifications.
1041 2009-07-27  Geert Bosch  <bosch@adacore.com>
1043         * einfo.ads (Checks_May_Be_Suppressed): Fix typo in comment
1044         * sem_aux.ads: Fix typo in comment
1045         * sem_util.ads (Is_LHS): Adjust comment to match body
1047 2009-07-27  Sergey Rybin  <rybin@adacore.com>
1049         * gnat_ugn.texi (gnatcheck Complex_Inlined_Subprograms rule): Update
1050         rule definition.
1052 2009-07-27  Olivier Hainque  <hainque@adacore.com>
1054         * g-sse.ads, g-ssvety.ads: Update comments.
1056 2009-07-27  Sergey Rybin  <rybin@adacore.com>
1058         * gnat_ugn.texi: Update gnatcheck doc.
1060 2009-07-27  Arnaud Charlet  <charlet@adacore.com>
1062         * lib-xref.ads: Allocate/document 'o' char for use by references to
1063         spark 'own' variables.
1065 2009-07-27  Gary Dismukes  <dismukes@adacore.com>
1067         * sem_ch6.adb (Analyze_Function_Return): Set Referenced on return
1068         objects, since these are implicitly referenced by the return statement.
1069         * sem_warn.adb (Warn_On_Unreferenced_Entity): No longer a need to test
1070         Is_Return_Object in this procedure, as return objects will never make
1071         it here since they're now marked as Referenced.
1073 2009-07-27  Robert Dewar  <dewar@adacore.com>
1075         * exp_ch2.adb, sem_util.adb, sem_util.ads: Minor reformnatting
1077 2009-07-27  Robert Dewar  <dewar@adacore.com>
1079         * exp_ch6.adb (Expand_Call): Reset Is_Known_Valid after call
1081         * sem_ch3.adb, sem_eval.adb, sem_aux.adb: Minor comment reformatting
1083 2009-07-27  Geert Bosch  <bosch@adacore.com>
1085         * checks.adb (Find_Check): Minor streamlining of logic.
1086         * gnat1drv.adb(Gnat1drv): Put Check_Rep_Info in its alphabetical order.
1087         * debug.adb: Document -gnatdX debug flag
1088         * exp_ch2.adb(Expand_Entity_Reference): Implement new -gnatdX flag to
1089         list information about reads from scalar entities.
1090         Also slightly simplify condition for Expand_Current_Value.
1091         * sem_util.ads, sem_util.adb (Is_LHS, Is_Actual_Out_Parameter): New
1092         functions.
1094 2009-07-26  Dave Korn  <dave.korn.cygwin@gmail.com>
1096         PR bootstrap/40578
1097         * adaint.h (FOPEN, STAT, FSTAT, LSTAT, STRUCT_STAT): Rename from these
1098         (GNAT_FOPEN, GNAT_STAT, GNAT_FSTAT, GNAT_LSTAT, GNAT_STRUCT_STAT): ...
1099         to these.
1100         (__gnat_stat): Adjust reference to STAT in prototype.
1101         * adaint.c (__gnat_try_lock, __gnat_fopen, __gnat_file_length,
1102         __gnat_named_file_length, __gnat_file_time_name, __gnat_file_time_fd,
1103         __gnat_get_libraries_from_registry, __gnat_stat, __gnat_file_exists,
1104         __gnat_is_regular_file, __gnat_is_directory, __gnat_is_readable_file,
1105         __gnat_is_writable_file, __gnat_is_executable_file,
1106         __gnat_set_writable, __gnat_set_executable, __gnat_set_non_writable,
1107         __gnat_set_readable, __gnat_set_non_readable, __gnat_is_symbolic_link,
1108         __gnat_copy_attribs): Adjust all references to the above.
1109         * cstreams.c (__gnat_is_regular_file_fd): Likewise.
1111 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
1113         * sem.adb (Do_Unit_And_Dependents): Now that specs and bodies are not
1114         done at the same time, guard against listing a body more than once.
1116 2009-07-23  Robert Dewar  <dewar@adacore.com>
1118         * exp_ch6.adb: Minor reformatting
1120 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
1122         * sem_ch3.adb (Analyze_Object_Declaration): A scalar constant with a
1123         static expression is known valid.
1124         * sem_eval.adb (Compile_Time_Compare): Handle properly non-static
1125         operands of a subtype with a single value.
1127 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
1129         * sem.adb (Do_Units_And_Dependents): Process bodies only for units that
1130         are in the context of the main unit body.
1132 2009-07-23  Sergey Rybin  <rybin@adacore.com>
1134         * gnat_ugn.texi (Misnamed_Controlling_Parameters gnatcheck rule): Fix
1135         misprint in rule description.
1137 2009-07-23  Gary Dismukes  <dismukes@adacore.com>
1139         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Replace
1140         test that the object declaration is within an extended return statement
1141         with direct test of whether the declared object associated with the
1142         build-in-place call is a return object, since the enclosing function
1143         might not even be a build-in-place function.
1145 2009-07-23  Robert Dewar  <dewar@adacore.com>
1147         * freeze.adb, prj-nmsc.adb, errout.adb: Minor reformatting
1148         Minor code reorganization
1150 2009-07-23  Arnaud Charlet  <charlet@adacore.com>
1152         * sem_prag.adb (Analyze_Pragma): Do not ignore pragma Pack on records
1153         for static analysis, only packed arrays are causing troubles.
1155 2009-07-23  Gary Dismukes  <dismukes@adacore.com>
1157         * sem_aggr.adb (Resolve_Extension_Aggregate): Report an error when the
1158         ancestor part is a call to a limited function with an unconstrained
1159         result subtype unless the aggregate has a null extension type.
1160         * sem_ch3.adb (Is_Null_Extension): Use the base type when retrieving
1161         the parent type declaration to avoid blowups on subtype cases.
1163 2009-07-23  Robert Dewar  <dewar@adacore.com>
1165         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Better message for missing
1166         comma.
1168         * sem_util.adb (Wrong_Type): Special message for cases like A and B = 0
1170         * s-regexp.adb: Minor reformatting
1171         * scos.ads: Minor reformatting.
1173 2009-07-23  Arnaud Charlet  <charlet@adacore.com>
1175         * freeze.adb (Set_Small_Size): Remove extra space for consistency with
1176         other similar messages.
1177         * sem_prag.adb (Freeze_Record_Type, Freeze_Entity): Disable error
1178         messages/implicit packing in CodePeer mode.
1179         (Analyze_Pragma [case pragma Pack]): Ignore pragma in CodePeer mode.
1180         * errout.adb (Special_Msg_Delete): Suppress 'size too small' message in
1181         CodePeer mode.
1183 2009-07-23  Pascal Obry  <obry@adacore.com>
1185         * prj-nmsc.adb: Fix spec/body naming extension on case insensitive
1186         systems.
1188 2009-07-23  Robert Dewar  <dewar@adacore.com>
1190         * einfo.ads, g-ssvety.ads, s-regexp.adb, g-sse.ads: Update comment.
1191         Minor reformatting.
1193 2009-07-23  Yannick Moy  <moy@adacore.com>
1195         * s-regexp.adb (Check_Well_Formed_Pattern): Called before compiling the
1196         pattern.
1197         (Raise_Exception_If_No_More_Chars): Remove extra blank in exception
1198         string.
1199         (Raise_Exception): Ditto.
1201 2009-07-23  Olivier Hainque  <hainque@adacore.com>
1203         * g-sse.ads: Simplify comment.
1205 2009-07-23  Olivier Hainque  <hainque@adacore.com>
1207         * g-ssinty.ads: New unit. GNAT.SSE.Internal_Types. Factorize
1208         low level internal type definitions for distinct higher level
1209         binding development activities (user type definitions and
1210         operations).
1211         * gnat_rm.texi: Document it.
1212         * g-ssvety.ads: Use it.
1213         * gcc-interface/Makefile.in: (x86 32/64 linux, cygwin32 sections): Add
1214         g-ssinty.o to EXTRA_GNATRTL_NONTASKING_OBJS.
1215         * gcc-interface/utils.c (gnat_internal_attribute_table): Add entry
1216         for the "may_alias" attribute.
1218 2009-07-23  Thomas Quinot  <quinot@adacore.com>
1220         * scos.ads: Minor typo fix
1222         * gcc-interface/decl.c (validate_alignment): For the case of an
1223         implicit array base type, look for alignment clause on first subtype.
1225 2009-07-23  Robert Dewar  <dewar@adacore.com>
1227         * gcc-interface/decl.c (gnat_to_gnu_field): Don't check for overlap
1228         with tagged parent if tagged parent is fully repped.
1230 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
1232         * sem.adb (Walk_Library_Units): Handle properly the case where a unit
1233         in the context depends on the spec of the main unit, by delaying
1234         processing of the main unit body until all other units have been
1235         processed.
1237 2009-07-23  Arnaud Charlet  <charlet@adacore.com>
1239         * a-convec.adb: Add comments about suspicious/subtle code.
1241 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
1243         * einfo.ads: Document use of Alias in private overriding
1245 2009-07-23  Thomas Quinot  <quinot@adacore.com>
1247         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): For the case of
1248         an array type, propagate alignment from first subtype to implicit base
1249         type so that other subtypes (such as the itypes for aggregates of the
1250         type) also receive the expected alignment.
1252         * g-comlin.ads: Minor documentation clarification/rewording. 
1253         * scos.ads: Minor comments update.
1254         * lib-writ.ads: Minor reformatting
1256 2009-07-23  Gary Dismukes  <dismukes@adacore.com>
1258         * exp_ch3.adb (Expand_N_Object_Declaration): For an initialized object
1259         of a class-wide interface type that is a return object of a
1260         build-in-place function, bypass the interface-related expansions into
1261         renamings with displacement conversions, etc.
1262         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Add an assertion
1263         for the case where a renaming occurs in a build-in-place context, to
1264         assert that the bypassing of the build-in-place treatment only occurs
1265         in the case of a renaming that is an expansion of a return expression
1266         that is itself a build-in-place function call.
1268 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
1270         * sem_ch4.adb (Try_Primitive_Operation): A primitive operation is a
1271         valid candidate interpretation in a prefixed view if it is hidden, but
1272         overrides an inherited operation declared in the visible part.
1274 2009-07-23  Robert Dewar  <dewar@adacore.com>
1276         * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
1277         division operands to 64-bit at all in any circumstances.
1279 2009-07-23  Robert Dewar  <dewar@adacore.com>
1281         * exp_ch4.adb (Analyze_N_Op_Rem): Assume operands are valid when
1282         checking ranges for mod/rem to see if conditional jump will be
1283         generated.
1284         (Analyze_N_Op_Rem): Don't try to check actual lower bounds for
1285         generating special -1 test for rem, generate it whenever both
1286         operands can be negative (match circuit in Sem_Res).
1287         (Analyze_N_Op_Rem): Don't go to base type, no longer needed and
1288         destroys memory of positive range.
1289         * sem_res.adb (Resolve_Arithmetic_Op): Assume operands are valid when
1290         checking ranges for mod/rem to see if conditional jump will be generated
1292 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
1294         * exp_ch3.adb (Build_Equivalent_Record_Aggregate): If the type of a
1295         scalar components has non-static bounds, the equivalent aggregate
1296         cannot be built, even if the expression is static, because range checks
1297         will be generated.
1299 2009-07-23  Robert Dewar  <dewar@adacore.com>
1301         * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
1302         division operands to 64-bit inside a conversion if 64-bit division not
1303         available.
1305 2009-07-23  Sergey Rybin  <rybin@adacore.com>
1307         * gnat_ugn.texi: Update doc on Misnamed_Identifiers rule.
1309 2009-07-23  Javier Miranda  <miranda@adacore.com>
1311         * sinfo.ads, sinfo.adb (SCIL_Entity/Set_SCIL_Entity): new subprograms
1312         (Entity/Set_Entity): not available in N_Null_Statement nodes
1313         (Is_Scil_Node): renamed as Is_SCIL_Node
1314         (Scil_Nkind): renamed as SCIL_Nkind
1315         (Scil_Related_Node): renamed as SCIL_Related_Node
1316         (Scil_Target_Prim): renamed as SCIL_Target_Prim
1317         (Set_Is_Scil_Node): Renamed as Set_Is_SCIL_Node
1318         (Set_Scil_Related_Node): Renamed as Set_SCIL_Related_Node
1319         (Set_Scil_Target_Prim): Renamed as Set_SCIL_Target_Prim
1320         Update documentation
1321         * exp_disp.ads (Scil_Node_Kind): Renamed as SCIL_Node_Kind
1322         (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
1323         (New_Scil_Node): Renamed as New_SCIL_Node
1324         * exp_disp.adb Update all occurrences of New_Scil_Node to New_SCIL_Node.
1325         (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
1326         (New_Scil_Node): Renamed as New_SCIL_Node
1327         * exp_ch3.adb Update occurrence of New_Scil_Node to New_SCIL_Node.
1329 2009-07-23  Robert Dewar  <dewar@adacore.com>
1331         * sem_prag.adb: No_Return is an Ada 2005 pragma, not a GNAT pragma
1332         * snames.ads-tmpl: No_Return is an Ada 2005 pragma, not a GNAT pragma
1333         * einfo.adb: Minor reformatting
1335 2009-07-23  Robert Dewar  <dewar@adacore.com>
1337         * checks.adb (Apply_Arithmetic_Overflow_Check): Add comments
1338         cross-referencing the new related code in
1339         Exp_Ch4.Expand_N_Type_Conversion.
1340         * exp_ch4.adb (Expand_N_Type_Conversion): Avoid unnecessary overflows
1342         * exp_disp.adb, exp_disp.ads, sinfo.ads: Minor reformatting.
1343         Add comment.
1345 2009-07-23  Javier Miranda  <miranda@adacore.com>
1347         * sinfo.ads (Is_Scil_Node, Scil_Nkind, Scil_Related_Node,
1348         Scil_Target_Prim, N_Has_Entity): Add missing documentation.
1349         * exp_disp.ads (Scil_Node_Kind): Ditto.
1350         * exp_disp.adb (Make_DT, Make_Tags): Ditto.
1351         * exp_ch3.adb (Build_Init_Procedure): Ditto.
1353 2009-07-23  Javier Miranda  <miranda@adacore.com>
1355         * einfo.adb (Component_Type): Add missing assertion.
1356         * sem_res.adb (Resolve_Call): Ensure proper kind of entity before
1357         reading attribute Component_Size.
1358         * exp_ch4.adb (Is_Safe_In_Place_Array_Op): Ensure proper kind of entity
1359         before reading attributes Component_Size and Component_Type.
1360         * exp_ch3.adb (Build_Initialization_Call): Ensure proper kind of entity
1361         before reading attribute Component_Type.
1363 2009-07-23  Olivier Hainque  <hainque@adacore.com>
1365         * gnat_rm.texi: Document the GNAT.SSE units.
1367 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
1369         * sem_ch6.adb (Analyze_Return_Type): Do not create itype reference for
1370         not null return if it appears on a subunit.
1372 2009-07-23  Robert Dewar  <dewar@adacore.com>
1374         * exp_ch5.adb (Expand_N_Assignment_Statement): Do left-side validity
1375         check right away so it does not get skipped for early returns, e.g.
1376         array assignments.
1377         (Expand_N_Assignment_Statement): Don't propagate Is_Known_Valid to
1378         left-side unless we really know the value is valid.
1380         * errout.adb, exp_ch3.adb, exp_disp.ads, sinfo.ads, exp_disp.adb: Minor
1381         reformatting. Minor code reorganization. Add comments.
1383 2009-07-23  Robert Dewar  <dewar@adacore.com>
1385         * get_scos.adb (Skip_EOL): Fix error of mishandling end of line after
1386         complex condition.
1388 2009-07-23  Gary Dismukes  <dismukes@adacore.com>
1390         * sem_ch6.adb (Check_Return_Subtype_Indication): Replace type equality
1391         with test of coverage, to allow specific type objects in extended
1392         returns of class-wide functions. Remove now-unnecessary special-case
1393         tests that allowed this in certain cases of expanded extended returns.
1395 2009-07-23  Javier Miranda  <miranda@adacore.com>
1397         * sinfo.ads,sinfo.adb (Entity/Set_Entity): Attribute available in
1398         N_Null_Statements (for SCIL nodes).
1399         (Is_Scil_Node/Set_Is_Scil_Node): New attribute (for SCIL nodes).
1400         (Scil_Nkind/Set_Scil_Nkind): New attribute (for SCIL nodes).
1401         (Scil_Related_Node/Set_Scil_Related_Node): New attribute (for SCIL
1402         nodes).
1403         (Scil_Target_Prim/Set_Scil_Target_Prim): New attribute (for SCIL nodes).
1404         * exp_disp.adb (Expand_Dispatching_Call): Add generation of SCIL node
1405         associated with dispatching call.
1406         (Get_Scil_Node_Kind): New function that returns the kind of SCIL node.
1407         (Make_DT, Make_Tags): Add generation of SCIL nodes associated with
1408         initialization of dispatch tables and initialization of tags.
1409         (New_Scil_Node): New function that creates a new SCIL node.
1410         (Build_Init_Procedure): Add generation of SCIL node associated with the
1411         initialization of tags done in the IP subprogram.
1413 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
1415         * errout.adb (Error_Msg_NEL): If the entity in the initial message has
1416         Warnings_Off, do not emit continuation messages.
1418         * sem_ch10.adb: Set Is_Compilation_Unit on generated child subprogram
1419         spec.
1421 2009-07-23  Emmanuel Briot  <briot@adacore.com>
1423         * ali.adb: Minor comment update
1425 2009-07-23  Vasiliy Fofanov  <fofanov@adacore.com>
1427         * s-win32.ads (HANDLE): Define to be the same size as address type.
1428         Fix copyright.
1430 2009-07-23  Olivier Hainque  <hainque@adacore.com>
1432         * g-sse.ads: New file. Root of the SSE facilities trees, with
1433         general description and common declarations.
1434         * g-ssvety.ads: New file. Expose user level SSE vector types.
1435         * impunit.adb (Non_Imp_File_Names_95): Register new units.
1436         * gcc-interface/Makefile.in (x86 32/64 linux, win32): Add
1437         EXTRA_GNATRTL_NONTASKING_OBJS entries for SSE units.
1439 2009-07-23  Ben Brosgol  <brosgol@adacore.com>
1441         * gnat_ugn.texi: Wordsmithing.
1443 2009-07-23  Arnaud Charlet  <charlet@adacore.com>
1445         * prj-conf.ads, prj-conf.adb: Switch to GPLv3.
1447 2009-07-22  Eric Botcazou  <ebotcazou@adacore.com>
1449         * exp_aggr.adb (Gen_Loop): Do not qualify the bounds of the range if
1450         they are already of the base type of the index.
1452 2009-07-22  Brett Porter  <porter@adacore.com>
1454         * sysdep.c, init.c: Fix typo: _SPE_ should have been __SPE__.
1456 2009-07-22  Robert Dewar  <dewar@adacore.com>
1458         * vms_data.ads: Add entry for SCO_OUTPUT (-gnateS)
1459         * gnat_ugn.texi: Add documentation for -gnateS switch
1460         * ug_words: Add entry for -gnateS /SCO_OUTPUT
1461         * gcc-interface/Make-lang.in: Update dependencies.
1463         * get_scos.adb, get_scos.ads, gnat1drv.adb, par_sco.adb,
1464         par_sco.ads, put_scos.adb, put_scos.ads, scos.adb, scos.ads: Initial
1465         complete information for SCO input/output.
1467 2009-07-22  Sergey Rybin  <rybin@adacore.com>
1469         * gnat_ugn.texi: Update doc for some gnatcheck rules.
1471 2009-07-22  Robert Dewar  <dewar@adacore.com>
1473         * par_sco.adb, par_sco.ads (pscos): New debug routine to output
1474         contents of SCO tables.
1475         * put_scos.adb, put_scos.ads, get_scos.adb, get_scos.ads,
1476         scos.adb, scos.ads: New files.
1477         * gcc-interface/Make-lang.in: Update dependencies.
1479         * lib-util.ads, gnatbind.ads, ali.ads, binderr.ads: Minor comment
1480         fixes and reformatting.
1482 2009-07-22  Robert Dewar  <dewar@adacore.com>
1484         * g-socket.ads: Minor reformatting
1486 2009-07-22  Gary Dismukes  <dismukes@adacore.com>
1488         * sem_warn.adb (Warn_On_Unreferenced_Entity): Add warning messages that
1489         include the entity kind for following cases of unreferenced entities:
1490         E_Label, E_Discriminant, E_Package, E_Exception, and Formal_Object_Kind.
1492 2009-07-22  Ed Falis  <falis@adacore.com>
1494         * s-vxwext-kernel.adb, s-vxwext-kernel.ads: Replace use of taskStop
1495         with taskSuspend.
1497 2009-07-22  Arnaud Charlet  <charlet@adacore.com>
1499         * adadecode.c: Make this file compilable outside of GCC.
1501 2009-07-22  Thomas Quinot  <quinot@adacore.com>
1503         * g-socket.adb, g-socket.ads (Check_Selector): Make sure that
1504         (partially) default-initialized socket sets are handled properly by
1505         clearing their Set component.
1507 2009-07-22  Bob Duff  <duff@adacore.com>
1509         * gnat_ugn.texi: Clarify the -gnatVx (validity checking) switches.
1511 2009-07-22  Robert Dewar  <dewar@adacore.com>
1513         * gnat_ugn.texi: Minor reformatting
1515 2009-07-22  Ed Schonberg  <schonberg@adacore.com>
1517         * errout.adb (Error_Msg): A style message within an instantiation
1518         should not be labelled as an error.
1520 2009-07-22  Ed Schonberg  <schonberg@adacore.com>
1522         * freeze.adb (Freeze_Entity): Do not generate extra formal for function
1523         in initialization expression if function does not have convention Ada.
1525 2009-07-22  Sergey Rybin  <rybin@adacore.com>
1527         * gnat_ugn.texi, vms_data.ads: Add qualifier for new gnatpp option
1528         '--separate-label' to control label layout.
1530 2009-07-22  Robert Dewar  <dewar@adacore.com>
1532         * exp_tss.ads, sem_eval.adb: Minor reformatting
1534 2009-07-22  Bob Duff  <duff@adacore.com>
1536         * exp_dist.adb, exp_dist.ads: Update comments.
1538 2009-07-22  Brett Porter  <porter@adacore.com>
1540         * init.c (__gnat_init_float): For SPE, set bits in SPEFSCR instead of
1541         FPSCR.
1542         * sysdep.c (__gnat_get_task_options): Set task option enabling SPE.
1544 2009-07-22  Gary Dismukes  <dismukes@adacore.com>
1546         * exp_ch5.adb, sem_util.adb, sem_attr.adb, exp_dbug.ads, exp_ch2.adb,
1547         exp_tss.ads, exp_ch4.adb, sem_ch4.adb: Correct spelling error.
1548         Minor reformatting.
1549         * sem_res.adb (Resolve_Explicit_Dereference): Reword one comment that
1550         used poor terminology.
1552 2009-07-22  Robert Dewar  <dewar@adacore.com>
1554         * freeze.adb, sem_ch3.adb, sem_prag.adb: Minor reformatting
1555         * sem_eval.adb, exp_tss.adb: Minor comment update.
1556         * stylesw.adb: Code clean up.
1558 2009-07-22  Ed Schonberg  <schonberg@adacore.com>
1560         * freeze.adb (Freeze_Entity): If Implicit_Packing is enabled, and the
1561         component size is an exact number of bytes, an array type can have a
1562         size clause that forces packing even though the array type itself is
1563         not bit-packed.
1565 2009-07-22  Thomas Quinot  <quinot@adacore.com>
1567         * sem_ch3.adb (Analyze_Object_Declaration): For a constant declaration,
1568         if there is a previous entity with the same name in the scope, ignore
1569         it if it is the renaming declaration for a generic package introduced
1570         in instances.
1572 2009-07-22  Nicolas Roche  <roche@adacore.com>
1574         * seh_init.c: use RtlAddFunctionTable to register our SEH exception
1575         handler on x86_64 windows.
1577 2009-07-22  Arnaud Charlet  <charlet@adacore.com>
1579         * sem_prag.adb (Analyze_Pragma): Initialize/Normalize_Scalars create
1580         false positives in CodePeer, so ignore this pragma in this mode.
1582 2009-07-22  Thomas Quinot  <quinot@adacore.com>
1584         * sem_util.adb, sem_ch10.adb: Minor reformatting
1586         * g-socket.adb (Receive_Socket, recvfrom(2) variant): Apply required
1587         special handling for the case of no data received and Item'First =
1588         Stream_Element_Offset'First.
1589         (Last_Index): New subprogram factoring the above special handling
1590         over the various locations where it is required.
1592 2009-07-22  Arnaud Charlet  <charlet@adacore.com>
1594         * gnat1drv.adb (Gnat1drv): Also disable division by zero and alignment
1595         checks in CodePeer_Mode.
1596         * gcc-interface/Make-lang.in: Update dependencies.
1598 2009-07-22  Ed Schonberg  <schonberg@adacore.com>
1600         * sem_aggr.adb: Improve error message.
1602         * sem_ch13.adb: If Ignore_Rep_Clauses is enabled, do a minimal analysis
1603         of an address representation clause.
1604         * freeze.adb (Freeze_Static_Object): An local imported object is legal
1605         if it has an address clause.
1607 2009-07-22  Thomas Quinot  <quinot@adacore.com>
1609         * sem_elab.adb (Insert_Elab_Check): When relocating an overloaded
1610         expression to insert an elab check using a conditional expression, be
1611         sure to carry the original list of interpretations to the new location.
1613 2009-07-22  Gary Dismukes  <dismukes@adacore.com>
1615         * gnat1drv.adb: Fix spelling error.
1617 2009-07-22  Javier Miranda  <miranda@adacore.com>
1619         * sem_type.ads, sem_type.adb (In_Generic_Actual): Leave this subprogram
1620         at the library level and fix a hidden bug in its implementation: its
1621         functionality for renaming objects was broken because
1622         N_Object_Renaming_Declarations nodes are not a subclass of
1623         N_Declaration nodes (as documented in sinfo.ads).
1624         * sem_util.adb (Check_Dynamically_Tagged_Expression): Include in this
1625         check nodes that are actuals of generic instantiations.
1627 2009-07-22  Ed Schonberg  <schonberg@adacore.com>
1629         * sinfo.ads, sinfo.adb (Pending_Context): New flag to indicate that the
1630         context of a compilation unit is being analyzed. Used to detect
1631         circularities created by with_clauses that are not detected by the
1632         loading machinery.
1633         * sem_ch10.adb (Analyze_Compilation_Unit): Set Pending_Context before
1634         analyzing the context of the current compilation unit, to detect
1635         possible circularities created by with_clauses.
1637 2009-07-22  Thomas Quinot  <quinot@adacore.com>
1639         * sem_type.adb (Get_First_Interp): Fix wrong loop exit condition.
1641 2009-07-22  Robert Dewar  <dewar@adacore.com>
1643         * sem_res.adb (Check_No_Direct_Boolean_Operators): Add check for -gnatyB
1644         * style.ads, styleg.adb, styleg.ads (Check_Boolean_Operator): New
1645         procedure.
1646         * usage.adb, stylesw.ads, stylesw.adb: Add handling of -gnatyB switch
1647         * gnat_ugn.texi: Add documentation of -gnatyB
1648         * vms_data.ads: Add entry for -gnatyB (STYLE=BOOLEAN_OPERATORS)
1650 2009-07-22  Robert Dewar  <dewar@adacore.com>
1652         * s-stchop.adb, a-direct.adb, a-ztexio.adb, gnatchop.adb, prj-proc.adb,
1653         make.adb, s-regpat.adb, ali-util.adb, a-ngcefu.adb, prep.adb,
1654         s-tassta.adb, a-tifiio.adb, a-textio.adb, prj.adb, uintp.adb,
1655         s-valrea.adb, a-ngelfu.adb, prepcomp.adb, sinput-l.adb, vms_conv.adb,
1656         errout.adb, g-alleve.adb, repinfo.adb, a-wtedit.adb, ali.adb,
1657         a-witeio.adb, prj-dect.adb, prj-nmsc.adb, sinput-c.adb, binde.adb,
1658         s-regexp.adb, s-imgrea.adb, a-teioed.adb, errutil.adb, prj-util.adb,
1659         a-ztedit.adb, gnatls.adb, prj-conf.adb, bcheck.adb, s-scaval.adb,
1660         erroutc.adb, osint.adb, a-strfix.adb, s-fileio.adb: Make sure sources
1661         obey short-circuit style rule.
1663 2009-07-20  Bob Duff  <duff@adacore.com>
1665         * sem_ch13.adb (Analyze_Record_Representation_Clause): Use "and then"
1666         instead of "and", because otherwise Parent_Last_Bit is read
1667         uninitialized in the case where it's not a tagged type, or the tagged
1668         parent does not have a complete rep clause.
1670 2009-07-20  Robert Dewar  <dewar@adacore.com>
1672         * stylesw.ads: Minor documentation change.
1674         * types.ads: Minor reformatting
1676 2009-07-20  Javier Miranda  <miranda@adacore.com>
1678         * exp_disp.ads (Apply_Access_Checks): New subprogram that takes care of
1679         generating the tag checks associated with dispatching calls.
1680         * exp_disp.adb (Apply_Access_Checks): New subprogram.
1681         (New_Value): This routine was previously local to expand dispatching
1682         calls but it is now used also by Apply_Access_Checks.
1683         (Expand_Dispatching_Calls): Cleanup code because the functionality of
1684         tag checks is now provided by Apply_Access_Checks. 
1685         * exp_ch6.adb (Expand_Call): Incorporate generation of tag checks in
1686         case of dispatching calls.
1688 2009-07-20  Arnaud Charlet  <charlet@adacore.com>
1690         * gnat1drv.adb (Gnat1drv): Also disable Elaboration_Check in
1691         CodePeer_Mode.
1693 2009-07-20  Gary Dismukes  <dismukes@adacore.com>
1695         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): When compiling
1696         for VMS, only rewrite the first component of the associated exception's
1697         aggregate init (as 'V'), and eliminate the bogus rewrites of the second
1698         and third components  that were being replaced with 'M' and 'S'.
1700 2009-07-20  Arnaud Charlet  <charlet@adacore.com>
1702         * gnat1drv.adb (Gnat1drv): Suppress access checks in CodePeer mode.
1703         Also do not generate error when parsing a spec in CodePeer mode.
1705 2009-07-20  Javier Miranda  <miranda@adacore.com>
1707         * checks.adb (Apply_Access_Check): Avoid checks on availability of
1708         runtime function Offset_To_Top_Ptr when compiling with no tagged
1709         types expansion.
1710         * exp_ch3.adb (Build_Init_Procedure): Leave open the possibility of
1711         adding code to the init proc when compiling for VM backends.
1713 2009-07-20  Vincent Celier  <celier@adacore.com>
1715         * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Take into
1716         account switches -gnatw.?
1718 2009-07-20  Thomas Quinot  <quinot@adacore.com>
1720         * sem_dist.adb, exp_dist.adb: Minor reformatting
1722         * Make-generated.in: New file.
1724         * gcc-interface/Make-lang.in: Use Make-generated.in fragment.
1726 2009-07-20  Javier Miranda  <miranda@adacore.com>
1728         * sem_util.ads, sem_util.adb (Check_Dynamically_Tagged_Expression): New
1729         subprogram.
1730         * sem_aggr.adb (Resolve_Array_Aggregate): Check incorrect use of
1731         dynamically tagged expression.
1732         * sem_ch3.adb (Analyze_Object_Declaration): Call new routine that
1733         factorizes code.
1734         * sem_ch6.adb (Analyze_Function_Return, Process_Formals): Ditto.
1735         * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
1737 2009-07-20  Arnaud Charlet  <charlet@adacore.com>
1739         * gnat1drv.adb (Gnat1drv): Set operating mode to Generate_Code when
1740         CodePeer_Mode is set, to benefit from full front-end expansion
1741         (e.g. generics).
1743 2009-07-20  Ed Schonberg  <schonberg@adacore.com>
1745         * sem_res.adb: Add guard.
1747         * exp_disp.adb, sem_disp.adb (Make_DT): Check underlying view of type
1748         for possible attribute definition of External_Tag, in case clause
1749         appears in the private part of a package.
1751 2009-07-20  Jerome Guitton  <guitton@adacore.com>
1753         * gcc-interface/Makefile.in: cleanup powerpc linux target pairs.
1755 2009-07-20  Vadim Godunko  <godunko@adacore.com>
1757         * a-coorma.adb: Minor reformatting.
1759 2009-07-20  Ed Schonberg  <schonberg@adacore.com>
1761         * sem_ch3 (Build_Itype_Reference): Make public, for use on non-null
1762         access return types.
1763         * sem_ch6.adb (Analyze_Return_Type): If return is a not null subtype,
1764         provide an itype reference to gigi to force elaboration of the subtype
1765         at the proper point.
1767 2009-07-20  Tristan Gingold  <gingold@adacore.com>
1769         * g-expect.adb: Avoid closeing already closed handle.
1771 2009-07-20  Robert Dewar  <dewar@adacore.com>
1773         * sprint.adb (Write_Subprogram_Name): New procedure to output
1774         subprogram name with possible preceding $ (replaces
1775         Note_Implicit_Run_Time_Call).
1777 2009-07-20  Robert Dewar  <dewar@adacore.com>
1779         * vms_data.ads: Minor reformatting
1781         * einfo.ads, einfo.adb (Parent_Subtype): Now allowed on record subtype,
1782         applies to base type.
1783         (Parent_Subtype): Now allowed on record subtype, applies to base type
1784         * exp_ch5.adb (Expand_Assign_Record): Handle Componentwise_Assignment
1785         for case of fully repped tagged type.
1786         (Make_Tag_Ctrl_Assignment): Set Componentwise_Assignment and avoid
1787         tag save/restore for fully repped tagged type case.
1788         * exp_util.ads, exp_util.adb (Is_Fully_Repped_Tagged_Type): New function
1789         * fe.h (Is_Fully_Repped_Tagged_Type): New function
1790         * sem_ch13.adb (Analyze_Recorrd_Representation_Clause): Check for
1791         overlap of tagged type components with parent type if parent type is
1792         fully repped.
1793         * sinfo.ads, sinfo.adb (Componentwise_Assignment): New flag
1795         * sem_res.adb (Check_No_Direct_Boolean_Operators): Remove handling of
1796         comparisons.
1797         (Resolve_Comparison_Operators): Remove No_Direct_Boolean_Operators check
1798         (Resolve_Equality_Op): Remove No_Direct_Boolean_Operators check
1800         * gnat_rm.texi: Restriction No_Direct_Boolean_Operators includes only
1801         logical operators (AND/OR/XOR), not comparison operators.
1803         * sprint.ads: Minor reformatting
1805 2009-07-20  Ed Schonberg  <schonberg@adacore.com>
1807         * sem_intr.adb (Check_Intrinsic_Call): For Import_Value and related
1808         intrinsics, check that argument is a string literal, rather than
1809         checking for staticness.
1811 2009-07-20  Robert Dewar  <dewar@adacore.com>
1813         * sem_ch13.adb: Minor reformatting
1815         * einfo.ads: Minor reformatting
1816         Component_Bit_Offset is no longer considered obsolescent
1818 2009-07-20  Nicolas Roche  <roche@adacore.com>
1820         * a-calend.adb: Redefine time_t as signed integer with same size as
1821         Address type.
1822         * s-os_lib.ads: Redefine OS_Time as signed integer with same size as
1823         Address type
1824         * adaint.h: On Windows 64bits declare OS_Time as long long instead of
1825         long
1827 2009-07-20  Javier Miranda  <miranda@adacore.com>
1829         * exp_tss.adb (Init_Proc): Add missing support for non-default C++
1830         constructors that have anonymous access type formals.
1832         * sem_res.adb (Resolve_Actuals): Disable checks associated with Ada
1833         class-wide arguments in case of imported C++ subprograms.
1835         * exp_ch3.adb (Build_Initialization_Call): Add assertion.
1837 2009-07-20  Sergey Rybin  <rybin@adacore.com>
1839         * vms_data.ads: Update qualifiers.
1841 2009-07-20  Robert Dewar  <dewar@adacore.com>
1843         * einfo.ads, switch.adb, gnatls.adb, inline.adb, sem_ch13.adb: Minor
1844         reformatting
1846 2009-07-17  Richard Guenther  <rguenther@suse.de>
1848         PR c/40401
1849         * gcc-interface/utils.c (end_subprog_body): Revert to pre-tuples
1850         state.  Remove unused parameter.
1851         (gnat_gimplify_function): Do not gimplify here.
1852         Fold into its only caller and remove.
1853         (gnat_builtin_function): Adjust for end_subprog_body signature change.
1854         (gnat_write_global_declarations): Also finalize the CU.
1855         * gcc-interface/misc.c (gnat_parse_file): Do not finalize the CU here.
1856         * gcc-interface/trans.c (gigi): Revert to pre-tuples state.
1857         (Subprogram_Body_to_gnu): Adjust for end_subprog_body signature
1858         change.
1859         * gcc-interface/gigi.h (end_subprog_body): Remove unused parameter.
1861 2009-07-15  Arnaud Charlet  <charlet@adacore.com>
1863         * gcc-interface/Make-lang.in: Update dependencies
1865         * gcc-interface/Makefile.in: Add target pairs for PPC/Xenomai
1867 2009-07-15  Robert Dewar  <dewar@adacore.com>
1869         * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
1870         N_Label. Remove SCO table entry for entry point (not used).
1872         * par_sco.ads: Remove SCO entry point type (not used)
1874         * switch.adb: Minor code clean up.
1876 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
1878         * exp_dbug.ads (Base Record Types): Document enhanced encoding.
1880 2009-07-15  Thomas Quinot  <quinot@adacore.com>
1882         * gnatls.adb: Minor reformatting
1884         * gnatcmd.adb: Minor code reorganization
1886 2009-07-15  Ed Schonberg  <schonberg@adacore.com>
1888         * exp_util.adb (Component_May_Be_Bit_Aligned): Use underlying type to
1889         determine whether a component of a private type has a composite type.
1891 2009-07-15  Robert Dewar  <dewar@adacore.com>
1893         * sem_ch10.adb: Minor reformatting throughout
1894         Minor code reorganization (put nested subprograms in alpha order)
1896 2009-07-15  Ed Schonberg  <schonberg@adacore.com>
1898         * exp_ch6.adb (Expand_Call): Prevent double attachment of the result
1899         when compiling a call to a protected function that returns a controlled
1900         object.
1902 2009-07-15  Hristian Kirtchev  <kirtchev@adacore.com>
1904         * sysdep.c (__gnat_localtime_tzoff): Consolidate the Lynx cases into
1905         one. Add task locking and unlocking around the critical region which
1906         mentions localtime_r and global variable timezone for various targets.
1907         Comment reformatting.
1909 2009-07-15  Robert Dewar  <dewar@adacore.com>
1911         * gnat_rm.texi: Document s-ststop.ads
1913         * impunit.ad: (Map_Array): New table of alternative names
1914         (Get_Kind_Of_Unit): Return possible suggested alternative name
1916         * impunit.ads (Get_Kind_Of_Unit): Return possible suggested
1917         alternative name.
1919         * sem_ch10.adb (Analalyze_With_Clause): Add name of possible
1920         alternative unit if an implementation unit is with'ed.
1922 2009-07-15  Robert Dewar  <dewar@adacore.com>
1924         * gnat_ugn.texi: Minor updates.
1926         * snames.ads-tmpl: Minor comment updates for Ada 2005 fully implemented
1928 2009-07-15  Ed Schonberg  <schonberg@adacore.com>
1930         * sem_warn.adb (Warn_On_Constant_Condition): Handle properly constant
1931         conditions of a derived boolean type.
1932         Minor reformatting
1934 2009-07-15  Robert Dewar  <dewar@adacore.com>
1936         * gnat1drv.adb: Initialize SCO tables
1938         * par-load.adb: Call SCO_Record for main unit spec
1940         * par.adb: Make call to SCO_Record for main unit
1942         * par_sco.adb (Unit_Table): Change format to facilitate sort
1943         (Process_Decisions): New procedure with list argument
1944         (Traverse_Generic_Package_Declaration): New procedure
1945         (Initialize): New procedure, replaces Init
1946         (SCO_Output): Sort unit table before output
1947         (SCO_Record): Avoid duplications
1948         (SCO_Record): Handle remaining cases of units
1949         (Traverse_Declarations_Or_Statements): Handle generics
1951         * par_sco.ads (Initialize): New peocedure (replaces Init)
1953         * sem_ch10.adb (Analyze_Proper_Body): Make call to SCO_Record for
1954         subunit.
1956 2009-07-15  Arnaud Charlet  <charlet@adacore.com>
1958         * debug.adb: Add -gnatd.J switch for now to support scil generation in
1959         parallel. Add missing doc for -gnatd.I and -gnatd.O
1961 2009-07-15  Robert Dewar  <dewar@adacore.com>
1963         * lib-load.adb: Minor reformatting
1965         * lib-writ.adb (Write_ALI): Fix handling of SCO_Output wrt Generate_SCO.
1967 2009-07-15  Robert Dewar  <dewar@adacore.com>
1969         * par.adb: Minor reformatting
1970         Add ??? comment for possible bad comment
1972         * par-ch10.adb: Minor reformatting
1974 2009-07-15  Ed Schonberg  <schonberg@adacore.com>
1976         * sem_warn.adb (Warn_On_Constant_Condition): if the constant condition
1977         is a literal of a derived boolean type, it appears as an unchecked
1978         conversion. Retrieve actual value from expression of conversion.
1980 2009-07-15  Robert Dewar  <dewar@adacore.com>
1982         * sem_ch3.adb: Minor reformatting
1984         * lib-xref.ads, lib-xref.adb, lib.ads, par_sco.ads, par_sco.adb,
1985         lib-writ.ads, lib-writ.adb: Minor reformatting.
1986         Fix problem with SCO format in ALI files
1988 2009-07-15  Robert Dewar  <dewar@adacore.com>
1990         * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
1991         exp_aggr.adb: Minor code reorganization (better calling sequence for
1992         Make_Temporary).
1994 2009-07-15  Thomas Quinot  <quinot@adacore.com>
1996         * opt.ads: Minor comment edits
1998 2009-07-15  Tristan Gingold  <gingold@adacore.com>
2000         * gcc-interface/Makefile.in: Special rule for seh_init.o no longer
2001         needed.
2003 2009-07-15  Robert Dewar  <dewar@adacore.com>
2005         * lib-writ.adb (Write_Unit_Information): Use SCO_Output to output SCO
2006         information.
2008         * lib-writ.ads: Document addition of SCO lines to ALI file
2010         * par_sco.ads, par_sco.adb: New files.
2012         * opt.ads (Generate_SCO): New switch
2014         * par.adb (Par): Call SCO_Record to record SCO information
2016         * sem_warn.adb (Warn_On_Constant_Condition): Adjust SCO condition
2018         * switch-c.adb: Recognize -gnateS to generate SCO information
2020         * usage.adb: Add line for -gnateS
2022         * gcc-interface/Make-lang.in: Add dependency on par_sco.o for gnat1
2024 2009-07-15  Robert Dewar  <dewar@adacore.com>
2026         * sinfo.ads, make.adb, par.ads, par.adb, sem_warn.adb: Minor
2027         reformatting.
2029 2009-07-15  Thomas Quinot  <quinot@adacore.com>
2031         * g-socthi-mingw.adb: Minor comment addition
2033         * g-socthi-mingw.ads (WSAStartup): First argument is a WORD not an int.
2035 2009-07-15  Robert Dewar  <dewar@adacore.com>
2037         * g-htable.ads, s-htable.ads: Minor reformatting
2039 2009-07-15  Robert Dewar  <dewar@adacore.com>
2041         * switch-c.adb, sem_ch10.adb, sem_warn.adb, sem_warn.ads: Implement
2042         new switch -gnatw.g.
2043         (Set_GNAT_Mode_Warnings): New procedure.
2045         * lib-xref.adb: Minor reformatting
2047 2009-07-15  Robert Dewar  <dewar@adacore.com>
2049         * exp_aggr.adb, tbuild.ads, tbuild.adb: Minor reformatting
2050         Minor code reorganization
2052 2009-07-14  Taras Glek  <tglek@mozilla.com>
2053             Rafael Espindola  <espindola@google.com>
2055         * gcc-interface/Make-lang.in (ada.install-plugin): New target for
2056         installing plugin headers.
2058 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
2060         * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
2061         exp_aggr.adb (Make_Temporary): Utility to create a defining identifier
2062         and link it to the expression whose value it captures.
2064 2009-07-13  Robert Dewar  <dewar@adacore.com>
2066         * output.adb: Minor comment addition for last change
2068         * sinfo.ads: Minor reformatting
2070 2009-07-13  Vasiliy Fofanov  <fofanov@adacore.com>
2072         * adaint.c (__gnat_portable_no_block_spawn): on Windows, return -1 when
2073         spawn failed like on all other targets.
2075 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
2077         * exp_ch7.adb: Indicate origin of temporary for transient expression.
2079 2009-07-13  Thomas Quinot  <quinot@adacore.com>
2081         * s-oscons-tmplt.c: Add comment.
2083 2009-07-13  Robert Dewar  <dewar@adacore.com>
2085         * sinfo.adb, sinfo.ads, sem_util.adb, atree.adb, atree.ads: Minor
2086         reformatting. Minor code reorganization (add 9 argument version of
2087         Nkind_In).
2089         * impunit.adb: Remove s-os_lib from list of system extensions.
2091         * sem_util.ads: Minor reformatting
2093         * output.adb: Add warnings off/on around System.OS_Lib.
2095 2009-07-13  Bob Duff  <duff@adacore.com>
2097         * exp_dist.adb: Minor comment updates.
2099 2009-07-13  Gary Dismukes  <dismukes@adacore.com>
2101         * sem_ch10.adb, sem_ch12.adb, gnat1drv.adb, exp_ch4.adb: Fix casing of
2102         several references to CodePeer.
2104 2009-07-13  Bob Duff  <duff@adacore.com>
2106         * exp_dist.adb (Build_From_Any_Function,Build_To_Any_Function,
2107         Build_TypeCode_Function_All): Do not recurse if the type is the base
2108         type.
2110 2009-07-13  Robert Dewar  <dewar@adacore.com>
2112         * exp_ch4.adb: Minor comment change
2114 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
2116         * sem_ch5.adb (Analyze_Iteration_Scheme): Generate dummy reference for
2117         type of iteration, to prevent spurious warnings.
2119 2009-07-13  Nicolas Roche  <roche@adacore.com>
2121         * s-oscons-tmplt.c: On VxWorks target ensure that vxWorks.h is always
2122         included.
2124 2009-07-13  Arnaud Charlet  <charlet@adacore.com>
2126         * switch-c.adb, usage.adb, sem_ch9.adb, gnat_ugn.texi, rtsfind.adb,
2127         gnat1drv.adb, opt.ads, sem_ch13.adb (Inspector_Mode): Renamed to
2128         Generate_SCIL.
2129         (CodePeer_Mode): New -gnatC switch.
2130         (Adjust_Global_Switches): Adjust settings for Generate_SCIL and
2131         CodePeer_Mode.
2133 2009-07-13  Eric Botcazou  <ebotcazou@adacore.com>
2135         * checks.adb (Selected_Range_Checks): Do not consider that a non-static
2136         integer bound forces the check if it is compared to its subtype range.
2138 2009-07-13  Robert Dewar  <dewar@adacore.com>
2140         * prj.ads, prj-dect.adb, prj-err.ads, prj-err.adb, prj-nmsc.adb,
2141         prj-strt.ads: Minor reformatting
2143 2009-07-13  Thomas Quinot  <quinot@adacore.com>
2145         * exp_dist.adb (Build_From_Any_Call): For the case of a generic type,
2146         set the type of the From_Any call to the base type.
2148 2009-07-13  Doug Rupp  <rupp@adacore.com>
2150         * symbols-processing-vms-ia64.adb (Process): Add variables and
2151         constants to retrieve and check for symbol visibility.
2153 2009-07-13  Javier Miranda  <miranda@adacore.com>
2155         * exp_ch4.adb (Expand_N_Unchecked_Type_Conversion): If conversion is to
2156         the identical type we remove the conversion completely because
2157         it is useless.
2159 2009-07-13  Emmanuel Briot  <briot@adacore.com>
2161         * prj-err.adb (Error_Msg): One more case where a message should be
2162         considered as a warning.
2164         * gnatcmd.adb (GNATCmd): Fix previous change, which negated a test.
2166 2009-07-13  Thomas Quinot  <quinot@adacore.com>
2168         * exp_dist.adb (Expand_All_Calls_Remote_Subprogram_Call): Analyze
2169         calling stubs in the (library level) scope of the RCI locator, where it
2170         is attached, not in the caller's scope.
2172 2009-07-13  Javier Miranda  <miranda@adacore.com>
2174         * sem_ch3.adb (Analyze_Object_Declaration): In case of class-wide
2175         interface object declarations we delay the generation of the equivalent
2176         record type declarations until its expansion because there are cases in
2177         which they are not required.            
2179         * sem_util.adb (Implements_Interface): Add missing support for subtypes.
2181         * sem_disp.adb (Check_Controlling_Formals): Minor code cleanup plus
2182         addition of assertion.
2184         * exp_util.adb (Expand_Subtype_From_Expr): Renamings of class-wide
2185         interface types require no equivalent constrained type declarations
2186         because the expanded code only references the tag component associated
2187         with the interface.
2188         (Find_Interface_Tag): Improve management of interfaces that are
2189         ancestors of tagged types.
2191         * exp_ch3.adb (Expand_N_Object_Declaration): Improve the expansion of
2192         class-wide object declarations to add missing support to statically
2193         displace the pointer to the object to reference the tag component
2194         associated with the interface.
2196         * exp_disp.adb (Make_Tags) Avoid generation of internally generated
2197         auxiliary types associated with user-defined dispatching calls if the
2198         type has no user-defined primitives.
2200 2009-07-13  Vasiliy Fofanov  <fofanov@adacore.com>
2202         * mingw32.h: Make it explicit that we need XP or later.
2204         * initialize.c: Remove useless extern symbol declaration.
2206         * adaint.h: Ditto, also expose __gnat_win32_remove_handle to allow
2207         code reuse in expect.c.
2209         * adaint.c: Changes throughout the Windows section to redesign storage
2210         of the child process list and the process identification.
2212         * expect.c (__gnat_kill, __gnat_waitpid): Simplify, cleanup, use pids
2213         for interfacing, fix errors.
2214         (__gnat_expect_portable_execvp): use function in adaint.c
2216 2009-07-13  Emmanuel Briot  <briot@adacore.com>
2218         * prj-proc.adb, prj-part.adb, prj-part.ads, prj-strt.adb,
2219         prj-strt.ads, prj.adb, prj.ads, prj-makr.adb, prj-makr.ads,
2220         prj-dect.adb, prj-dect.ads, prj-nmsc.adb, prj-pars.adb, errutil.adb,
2221         errutil.ads, prj-conf.adb, gnatname.adb, prj-err.adb, prj-err.ads
2222         (Prj.Nmsc.Report_Error): Removed, no longer needed.
2223         Always use Prj.Err.Report_Message.
2225 2009-07-13  Robert Dewar  <dewar@adacore.com>
2227         * prj.adb, sem_ch4.adb, sem_res.adb, prj-nmsc.adb: Minor reformatting
2228         & comment edits.
2230 2009-07-13  Robert Dewar  <dewar@adacore.com>
2232         * opt.ads, prj-conf.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
2233         prj-proc.adb, prj-tree.adb, prj-tree.ads: Minor reformatting
2235 2009-07-13  Emmanuel Briot  <briot@adacore.com>
2237         * prj.adb, prj.ads, prj-env.adb, prj-conf.adb, prj-tree.adb,
2238         mlib-prj.adb (Private_Part.Ada_Prj_Objects_File_Set,
2239         Ada_Prj_Include_File_Set): Removed, since not needed
2240         Code clean up.
2242 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
2244         * sem_ch4.adb (Analyze_Set_Membership): New procedure, subsidiary of
2245         Analyze_Membership_Op.
2247         * sem_res.adb (Resolve_Set_Membership): New procedure, subsidiary of
2248         Resolve_Membership_Op.
2250         * exp_ch4.adb (Expand_Set_Membership): New procedure, subsidiary of
2251         Expand_N_In.
2253 2009-07-13  Robert Dewar  <dewar@adacore.com>
2255         * clean.adb: Minor reformattting
2257 2009-07-13  Emmanuel Briot  <briot@adacore.com>
2259         * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj-ext.adb,
2260         gnat_ugn.texi, prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-util.adb,
2261         prj-conf.adb, gnatname.adb, prj-env.adb, prj-env.ads, prj-tree.adb,
2262         prj-tree.ads (Prj.Tree.Create*): New subprograms to create new packages
2263         and attributes in a project tree.
2264         (Add_Default_GNAT_Naming_Scheme): Provide real implementation.
2265         Remove last remaining mode-specific code (ada_only or
2266         multi_language). This was duplicating code
2267         (Get_Mode, Set_Mode): removed, no longer used.
2268         (Initialize_Project_Path): all tools will now take into account both
2269         GPR_PROJECT_PATH and ADA_PROJECT_PATH (in that order).
2270         Remove some global variables and subprograms no longer used
2271         Make temporary files tree-specific, to avoid interferences between
2272         trees loaded in memory at the same time.
2273         (Prj.Delete_Temporary_File): new subprogram
2274         (Object_Paths, Source_Paths): fields no longer stored in the project
2275         tree, since they are only needed locally in Set_Ada_Paths.
2276         (Set_Mapping_File_Initial_State_To_Empty): removed, since had no
2277         effect in practice.
2278         (Project_Tree_Data.Ada_Path_Buffer): removed, since it can be replaced
2279         by local variables in the appropriate subprograms
2280         (Has_Foreign_Sources): removed.
2282         * gcc-interface/Makefile.in: prj-pp.o is now needed to build gnatmake
2284 2009-07-13  Arnaud Charlet  <charlet@adacore.com>
2286         * gnat1drv.adb (Adjust_Global_Switches): No longer set
2287         Back_Annotate_Rep_Info in inspector mode.
2288         (Gnat1Drv): Need to call the back-end in inspector mode to generate SCIL
2290         * opt.ads: Update comment.
2292 2009-07-13  Robert Dewar  <dewar@adacore.com>
2294         * lib.adb, prj-nmsc.adb, prj-proc.adb, prj-proc.ads, prj.adb,
2295         prj.ads: Minor reformatting and code reorganization.
2297         * par-ch3.adb (Check_Restricted_Expression): New procedure
2299 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
2301         * exp_attr.adb (Rewrite_Stream_Proc_Call): When rewriting a stream
2302         attribute into a call of the corresponding suprogram, create extra
2303         formals for the subprogram, because it may be a renaming whose
2304         analysis does not create extra formals.
2306 2009-07-13  Emmanuel Briot  <briot@adacore.com>
2308         * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
2309         prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
2310         prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-env.adb, prj-tree.adb,
2311         prj-tree.ads: Minor reformatting.
2312         (Processing_Flags): new record to encapsulate the set of common
2313         parameters to several subprograms in the project manager.
2314         (Prj.Nmsc.Process_Naming_Scheme): renames Check, and moved to body
2315         Remove the need for the Current_Dir parameter in subprograms.
2316         (Look_For_Sources): minor refactoring, now that we no longer need to
2317         share subprograms between the two Ada_Only and Multi_Language modes
2318         (Processing_Flags): New field Error_On_Unknown_Language.
2319         Merge tests for library project between gnatmake and gprbuild.
2321 2009-07-13  Arnaud Charlet  <charlet@adacore.com>
2323         * lib.adb, make.adb, mlib.adb, exp_dist.adb: Update comments.
2324         Minor reformatting.
2326 2009-07-13  Emmanuel Briot  <briot@adacore.com>
2328         * prj-env.adb (Create_Config_Pragmas_File): Iterate on sources rather
2329         than units.
2331 2009-07-13  Thomas Quinot  <quinot@adacore.com>
2333         * sem_ch3.adb (Process_Full_View): Propagate Has_Specified_Stream_{Read,
2334         Write,Input,Output} from private view to full view.
2336         * sem_type.adb, sem_type.ads: Minor reformatting
2338 2009-07-13  Nicolas Setton  <setton@adacore.com>
2340         * exp_dbug.ads: Add documentation note on the utility of
2341         DW_AT_GNAT_encoding for IDEs.
2343 2009-07-13  Robert Dewar  <dewar@adacore.com>
2345         * g-socthi-vxworks.adb: Minor reformatting
2347         * gnatcmd.adb: Minor reformatting
2349 2009-07-13  Thomas Quinot  <quinot@adacore.com>
2351         * rtsfind.ads, exp_dist.adb (RE_Allocate_Buffer): Runtime entry
2352         removed, not used anymore.
2353         (Exp_Dist.PolyORB_Support.Helpers.Assign_Opaque_From_Any):
2354         New subprogram, implements copy of an Any value into a limited object.
2355         (Exp_Dist.PolyORB_Support.Build_General_Calling_Stubs,
2356         Exp_Dist.PolyORB_Support.Build_Subprogram_Receiving_Stubs,
2357         Exp_Dist.PolyORB_Support.Helpers.Build_From_Any_Function): For the case
2358         of parameters of a limited type, use the above new subprogram.
2360 2009-07-13  Emmanuel Briot  <briot@adacore.com>
2362         * prj-nmsc.adb, prj-proc.adb, mlib.adb (Add_Source): new parameter
2363         Location.
2364         (Copy_ALI_Files): Avoid calls to read when pointing outside of the
2365         allocated space.
2366         (Error_Report): Remove global variable, replaced by parameters.
2368 2009-07-13  Thomas Quinot  <quinot@adacore.com>
2370         * g-socthi-vxworks.adb (C_Sendto): VxWorks does not support the
2371         standard sendto(2) interface for connected sockets (passing a null
2372         destination address). Use send(2) instead for that case.
2374 2009-07-13  Pascal Obry  <obry@adacore.com>
2376         * adaint.c: Fix __gnat_stat() with Win32 UNC paths.
2378 2009-07-13  Emmanuel Briot  <briot@adacore.com>
2380         * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
2381         prj-pars.adb, prj-conf.adb, prj-conf.ads: Remove all remaining global
2382         variables and tables in prj-nmsc.adb.
2383         (Tree_Processing_Data): Renames Processing_Data, some new fields added
2384         (Project_Processing_Data): New record
2385         Simplify/unify check for missing sources.
2387 2009-07-13  Emmanuel Briot  <briot@adacore.com>
2389         * gnatcmd.adb, make.adb, mlib-prj.adb, prj-part.adb, mlib.adb,
2390         prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
2391         prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb,
2392         prj-tree.ads (Immediate_Directory_Of): Removed.
2393         (Prj.Pars): Now parse the project simulating a default config file.
2394         (Add_Default_GNAT_Naming_Scheme): New subprogram
2395         (Check_Naming_Multi_Lang): Fix default value for Dot_Replacement.
2396         Remove gnatmake-specific parsing of source files.
2397         (Check_Illegal_Suffix): Renames Is_Illegal_Suffix, since it now raises
2398         the error itself to provide more precise diagnostics.
2399         (Process_Exceptions_Unit_Based): Avoid duplicate error message when
2400         a unit belongs to several projects.
2401         (Copy_Interface_Sources): Search the full path of files to copy in the
2402         list of sources of the application rather than in the list of units.
2403         (Parse_Project_And_Apply_Config): Do not reset the name of the main
2404         project file.
2405         (Check_File): Use htables to find out whether a source is duplicated.
2406         (Add_Source): check whether the source or unit were already seen earlier
2408         * gcc-interface/Makefile.in: Update gnatmake dependencies.
2410 2009-07-13  Robert Dewar  <dewar@adacore.com>
2412         * par-ch3.adb (P_Discrete_Choice_List): Choice can only be simple
2413         expression if extensions permitted.
2415         * par-ch4.adb (P_Membership_Test): New procedure (implement membership
2416         set tests).
2417         (P_Relation): Use P_Membership_Test
2419         * par.adb (P_Membership_Test): New procedure (implement membership set
2420         tests).
2422         * sinfo.ads, sinfo.adb (N_In, N_Not_In) Add Alternatives field for sets.
2424         * sprint.adb (Sprint_Node): Handle set form for membership tests.
2426 2009-07-13  Thomas Quinot  <quinot@adacore.com>
2428         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies):
2429         Do not attempt to generate stubs for predefined primitives of
2430         synchronized interfaces.
2431         (Add_Stub_Type): Factor some code from the PCS-specific variants of
2432         Build_Stub_Type.
2434 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
2436         * sem_disp.adb (Override_Dispatching_Operation): Functions inherit the
2437         Controlling_Result flag from the operation they override.
2439 2009-07-13  Arnaud Charlet  <charlet@adacore.com>
2441         * gcc-interface/Make-lang.in: Update dependencies
2443 2009-07-13  Robert Dewar  <dewar@adacore.com>
2445         * gnat_ugn.texi: The gnatf switch no longer is needed to get full
2446         details on unsupported constructs.
2448         * rtsfind.adb: Remove references to All_Errors_Mode, give errors
2449         unconditionally.
2451         * s-trafor-default.adb: Correct some warnings
2453         * s-valwch.adb, a-calend.adb, freeze.adb, prj.ads, s-vmexta.adb,
2454         sem.adb, sem_ch10.adb, sem_ch6.adb, sem_disp.adb, vxaddr2line.adb:
2455         Minor reformatting.
2457         * par-ch4.adb (Conditional_Expression): Capture proper location for
2458         conditional expression, should point to IF.
2460         * s-tassta.adb, a-wtdeau.adb, s-tasren.adb, s-arit64.adb, s-imgdec.adb,
2461         s-direio.adb, s-tpobop.adb, g-socket.adb, s-tposen.adb, s-taskin.adb,
2462         g-calend.adb, s-regpat.adb, s-scaval.adb, g-catiio.adb: Minor code
2463         reorganization (use conditional expressions).
2465 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
2467         * exp_util.adb (Remove_Side_Effects): If the expression is a call to a
2468         build-in-place function that returns an inherently limited type (not
2469         just a task type) create proper object declaration so that extra
2470         build-in-place actuals are properly added to the call.
2472 2009-07-13  Robert Dewar  <dewar@adacore.com>
2474         * freeze.adb (Freeze_Entity): Implement Warn_On_Suspicious_Modulus_Value
2476         * gnat_ugn.texi: Add documentation for -gnatw.m/.M
2478         * opt.ads (Warn_On_Suspicious_Modulus_Value): New flag
2480         * sem_warn.adb (Set_Dot_Warning_Flag): Set/reset
2481         Warn_On_Suspicious_Modulus_Value.
2483         * ug_words: Add entries for -gnatw.m/-gnatw.M.
2485         * usage.adb: Add lines for -gnatw.m/.M switches.
2487         * vms_data.ads: Add [NO]SUSPICIOUS_MODULUS for -gnatw.m/w.M
2489 2009-07-13  Javier Miranda  <miranda@adacore.com>
2491         * sem_ch6.adb (Check_Synchronized_Overriding): Add missing check before
2492         reading the Is_Interface attribute of the dispatching type.
2494 2009-07-13  Robert Dewar  <dewar@adacore.com>
2496         * a-convec.adb: Minor code reorganization (use conditional expressions)
2498 2009-07-13  Robert Dewar  <dewar@adacore.com>
2500         * freeze.adb (Check_Suspicious_Modulus): New procedure.
2502 2009-07-13  Robert Dewar  <dewar@adacore.com>
2504         * i-cobol.ads: Minor code fix (2**4 instead of 16 as modulus to avoid
2505         warning).
2507         * par-ch4.adb: Minor reformatting
2509 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
2511         * freeze.adb, freeze.ads, exp_aggr.adb: Rename Expand_Atomic_Aggregate
2512         => Is_Atomic_Aggregate
2514 2009-07-13  Emmanuel Briot  <briot@adacore.com>
2516         * prj-nmsc.adb: Avoid traversing the list of source files if
2517         we have already processed all locally removed files.
2519 2009-07-13  Jose Ruiz  <ruiz@adacore.com>
2521         * gnat_ugn.texi: Fix typo.
2523 2009-07-13  Robert Dewar  <dewar@adacore.com>
2525         * freeze.adb: Minor reformatting
2526         Minor code reorganization (use Nkind_In)
2528         * exp_ch6.adb, prj.adb, sem_res.adb: Minor reformatting
2530 2009-07-11  Eric Botcazou  <ebotcazou@adacore.com>
2532         * checks.adb (Apply_Address_Clause_Check): Remove Size_Warning_Output
2533         local variable and do not test it in Compile_Time_Bad_Alignment.
2534         Do not issue size or alignment warnings for the X'Address form.
2535         * sem_util.ads (Find_Overlaid_Object): Delete.
2536         (Find_Overlaid_Entity): New procedure.
2537         * sem_util.adb (Find_Overlaid_Object): Rename to...
2538         (Find_Overlaid_Entity): ...this and turn into a procedure.  Report
2539         whether the address is offseted within the overlaid entity.
2540         (Has_Compatible_Alignment): Track the offset globally instead of
2541         passing it to Check_Offset.  For an indexed component, compute the
2542         full offset when possible.  If the resulting offset is zero, only
2543         check the prefix.
2544         (Check_Offset): Delete.
2545         * sem_ch13.adb (Address_Clause_Check_Record): Add Off field.
2546         (Address_Aliased_Entity): Delete.
2547         (Analyze_Attribute_Definition_Clause) <Attribute_Address>: Call
2548         Find_Overlaid_Entity to find the overlaid entity and the offset.
2549         Adjust throughout for above change.
2550         (Validate_Address_Clauses): Always use attributes of entities, not of
2551         their type.  Tweak message for warning.  Call Has_Compatible_Alignment
2552         if the address is offseted to warn about incompatible alignments.
2553         * gcc-interface/gigi.h (annotate_object): Declare.
2554         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Annotate renaming
2555         entity.  Call annotate_object instead of annotating manually objects.
2556         (annotate_object): New function.
2557         * gcc-interface/trans.c (Subprogram_Body_to_gnu): Annotate parameters
2558         at the end.
2560 2009-07-11  Eric Botcazou  <ebotcazou@adacore.com>
2562         * gcc-interface/ada-tree.h: Minor reorganization.
2563         * gcc-interface/misc.c (gnat_print_decl): Minor tweaks.
2564         (gnat_print_type): Likewise.
2566 2009-07-11  Thomas Quinot  <quinot@adacore.com>
2568         * sem_util.adb, sem_res.adb, sem_warn.adb: Minor comment editing:
2569         Lvalue -> lvalue
2571         * exp_ch6.adb: Minor reformatting
2573 2009-07-11  Ed Schonberg  <schonberg@adacore.com>
2575         * freeze.adb (Expand_Atomic_Aggregate): Clean up code, take into
2576         account possible type qualification to determine whether aggregate
2577         needs a target temporary to respect atomic type or object.
2579         * exp_aggr.adb (Expand_Record_Aggregate): Use new version of
2580         Expand_Atomic_Aggregate.
2582 2009-07-11  Emmanuel Briot  <briot@adacore.com>
2584         * prj.adb, prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Speed up
2585         algorithm.
2586         (Excluded_Sources_Htable): No longer a global table.
2587         Change error message to indicate which files are illegal in the list
2588         of excluded files, as opposed to only the location in the project
2589         file.
2590         (Find_Source): New subprogram.
2592 2009-07-10  Thomas Quinot  <quinot@adacore.com>
2594         * exp_ch7.adb: Update comments.
2596 2009-07-10  Arnaud Charlet  <charlet@adacore.com>
2598         * exp_ch13.adb (Expand_N_Record_Representation_Clause): Ignore mod
2599         clause if -gnatI is set instead of crashing.
2601 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
2603         * sem_ch11.adb (Same_Expression): Null is always equal to itself.
2604         Additional work to remove redundant successive raise statements, in
2605         this case access checks.
2607 2009-07-10  Vincent Celier  <celier@adacore.com>
2609         * make.adb (Compile): Always create a deep copy of the mapping file
2610         argument (-gnatem=...) as it may be deallocate/reallocate by
2611         Normalize_Arguments.
2613 2009-07-10  Javier Miranda  <miranda@adacore.com>
2615         * einfo.adb (Directly_Designated_Type): Add assertion.
2616         
2617         * sem_res.adb (Check_Fully_Declared_Prefix): Add missing check on
2618         access types before using attribute Directly_Designated_Type.
2620 2009-07-10  Emmanuel Briot  <briot@adacore.com>
2622         * prj.ads: Minor typo fix
2624 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
2626         * sem_ch6.adb (Add_Extra_Formal): Protected operations do no need
2627         special treatment.
2629         * exp_ch6.adb (Expand_Protected_Subprogram_Call): If rewritten
2630         subprogram is a function call, resolve properly, to ensure that extra
2631         actuals are added as needed.
2633 2009-07-10  Thomas Quinot  <quinot@adacore.com>
2635         * sem_aggr.adb: Minor comments editing
2637         * exp_tss.adb, exp_ch3.adb: Minor reformatting
2639 2009-07-10  Robert Dewar  <dewar@adacore.com>
2641         * exp_util.adb: Minor code reorganization (use N_Short_Circuit)
2643         * exp_ch4.adb: Add ??? comment for conditional expressions on limited
2644         types.
2646         * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New procedure,
2647         replaces Safe_To_Capture_In_Parameter_Value, and properly handles the
2648         case of conditional expressions that may not be elaborated.
2650         * sem_util.adb (Safe_To_Capture_Value): Properly handle case of
2651         conditional expression where we may not execute then then or else
2652         branches.
2654 2009-07-10  Arnaud Charlet  <charlet@adacore.com>
2656         * i-cexten.ads (bool): New type.
2658 2009-07-10  Robert Dewar  <dewar@adacore.com>
2660         * sinfo.ads (N_Short_Circuit): New definition
2661         
2662         * sem_ch13.adb, sem_ch6.adb, sem_eval.adb, sem_res.adb,
2663         treepr.adb: Minor code reorganization (use N_Short_Circuit)
2665 2009-07-10  Javier Miranda  <miranda@adacore.com>
2667         * exp_ch3.adb (Expand_Freeze_Record_Type): Handle constructors of
2668         non-tagged record types.
2670         * sem_prag.adb
2671         (Process_Import_Or_Interface): Allow the use of "pragma Import (CPP,..)"
2672         with non-tagged types. Required to import C++ classes that have no
2673         virtual primitives.
2674         (Analyze_Pragma): For pragma CPP_Constructor. Allow the use of functions
2675         returning non-tagged types. For backward compatibility, if the
2676         constructor returns a class wide type we internally change the
2677         returned type to the corresponding non class-wide type.
2679         * sem_aggr.adb
2680         (Valid_Ancestor_Type): CPP_Constructors code cleanup.
2681         (Resolve_Extension_Aggregate): CPP_Constructors code cleanup.
2682         (Resolve_Aggr_Expr): CPP_Constructors code cleanup.
2683         (Resolve_Record_Aggregate): CPP_Constructors code cleanup.
2685         * sem_ch3.adb
2686         (Analyze_Object_Declaration): CPP_Constructors code cleanup.
2688         * sem_ch5.adb (Analyze_Assignment): CPP_Constructors code cleanup.
2690         * sem_util.adb (Is_CPP_Constructor_Call): Code cleanup.
2692         * sem_res.adb (Resolve_Allocator): CPP_Constructors code cleanup.
2694         * exp_ch4.adb (Expand_Allocator_Expression): CPP_Constructors code
2695         cleanup.
2696         
2697         * exp_aggr.adb (Build_Record_Aggr_Code): CPP_Constructors code clean up.
2699         * gnat_rm.texi
2700         (pragma CPP_Class): Document that it can be used now with non-tagged
2701         record types.
2702         (pragma CPP_Constructor): Document that it can be used now with
2703         functions returning specific types. For backward compatibility
2704         we also support functions returning class-wide types.
2706         * gnat_ugn.texi
2707         (Interfacing with C++ constructors): Update the examples to incorporate
2708         the new syntax in which the functions used to import C++ constructors
2709         return specific types.
2710         (Interfacing with C++ at the Class Level): Update the examples to
2711         incorporate the new syntax in which the functions used to import
2712         C++ constructors return specific types.
2714 2009-07-10  Thomas Quinot  <quinot@adacore.com>
2716         * exp_disp.adb (Make_Disp_Asynchronous_Select_Body,
2717         Make_Disp_Conditional_Select_Body,
2718         Make_Disp_Timed_Select_Body): For the case of a type that is neither an
2719         interface nor a concurrent type, the primitive body is empty. Generate
2720         a null statement so that it remains well formed.
2722 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
2724         * exp_aggr.adb (Build_Record_Aggr_Code): If the type has discriminants,
2725         replace references to them in defaulted component expressions with
2726         references to the values of the discriminants of the target object.
2728 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
2730         * sem_prag.adb (Analyze pragma, case Task_Name): Analyze argument of
2731         pragma, to capture global references if the context is generic.
2733         * exp_ch2.adb (Expand_Discriminant): If a task type discriminant
2734         appears within the initialization procedure for the corresponding
2735         record, replace it with the proper discriminal.
2737 2009-07-10  Vincent Celier  <celier@adacore.com>
2739         * make.adb: Do not include object directories or library ALI
2740         directories of library projects in the object path.
2742 2009-07-10  Javier Miranda  <miranda@adacore.com>
2744         * exp_util.adb (Find_Interface_Tag): Reorder processing of incoming
2745         Typ argument to ensure proper management of access types.
2747 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
2749         * exp_ch7.adb (Build_Final_List): If the list is being built for a
2750         Taft-Amendment type, place the finalization list in the package body,
2751         to ensure that the tree for the spec is identical whenever it is
2752         compiled.
2754 2009-07-10  Javier Miranda  <miranda@adacore.com>
2756         * sem_ch3.adb (Build_Derived_Record_Type): Use the full-view when
2757         inheriting attributes from a private Parent_Base.
2759 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
2761         * sem_ch11.adb (analyze_raise_xxx_error): Remove consecutive raise
2762         statements with the same condition.
2764 2009-07-10  Robert Dewar  <dewar@adacore.com>
2766         * exp_ch4.adb (Raise_Accessibility_Error): New procedure
2768 2009-07-09  Tom Tromey  <tromey@redhat.com>
2770         * raise-gcc.c: Include dwarf2h (unconditionally).
2772 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
2774         * sem_ch10.adb (Install_Context): If the unit is a package body,
2775         install the private with_clauses of the corresponding package
2776         declaration.
2778 2009-07-09  Robert Dewar  <dewar@adacore.com>
2780         * checks.adb: Minor reformatting
2782 2009-07-09  Vasiliy Fofanov  <fofanov@adacore.com>
2784         * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
2785         into ug_words.
2787 2009-07-09  Thomas Quinot  <quinot@adacore.com>
2789         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
2790         Do not warn for a constant overlaying any constant object
2792 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
2794         * sem_ch10.adb (Install_Context): If the unit is a package body,
2795         install the private with_clauses of the corresponding package
2796         declaration.
2798 2009-07-09  Robert Dewar  <dewar@adacore.com>
2800         * checks.adb: Minor reformatting
2802 2009-07-09  Vasiliy Fofanov  <fofanov@adacore.com>
2804         * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
2805         into ug_words.
2807 2009-07-09  Thomas Quinot  <quinot@adacore.com>
2809         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
2810         Do not warn for a constant overlaying any constant object
2812 2009-07-09  Arnaud Charlet  <charlet@adacore.com>
2814         * gcc-interface/Make-lang.in: Update dependencies
2816 2009-07-09  Thomas Quinot  <quinot@adacore.com>
2818         * g-socket.adb (Check_Selector): Do not create local copies of the
2819         socket sets on the stack.
2821 2009-07-09  Vasiliy Fofanov  <fofanov@adacore.com>
2823         * gnat_ugn.texi: Add missing VMS translations.
2825 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
2827         * sem_prag.adb (Analyze_Pragma, case Precondition): Do not analyze the
2828         condition, to prevent generation of visible code during expansion,
2829         when Check is not enabled.
2831 2009-07-09  Gary Dismukes  <dismukes@adacore.com>
2833         * checks.adb (Install_Static_Check): Call Possible_Local_Raise so that
2834         the check gets registered for any available local handler
2835         (Set_Local_Raise).
2837         * sem_util.adb: Add with and use of Exp_Ch11.
2838         (Apply_Compile_Time_Constraint_Error): Call Possible_Local_Raise so
2839         that the check gets registered for any available local handler.
2841         * exp_ch4.adb (Expand_N_Slice): Remove call to Enable_Range_Check
2842         on slice ranges.
2844 2009-07-09  Steve Baird  <baird@adacore.com>
2846         * exp_ch11.adb (Force_Static_Allocation_Of_Referenced_Objects): New
2847         function.
2848         (Expand_N_Exception_Declaration): Fix handling of exceptions
2849         declared in a subprogram.
2851 2009-07-09  Emmanuel Briot  <briot@adacore.com>
2853         * prj-nmsc.adb (Find_Sources): Avoid error messages from gprbuild from
2854         multi-unit files.
2856 2009-07-09  Thomas Quinot  <quinot@adacore.com>
2858         * freeze.adb: Minor reformatting
2860         * exp_ch3.adb: Minor comment fix.
2862         * sinfo.ads: Minor comment fix
2864 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
2866         * exp_ch4.adb (Expand_N_Conditional_Expression): Set Related_Expression.
2868 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
2870         * freeze.adb (Freeze_Expression): If the expression is the name of a
2871         function in a call, and the function has not been frozen yet, create
2872         extra formals for it to ensure that the proper actuals are created
2873         when expanding the call.
2875 2009-07-09  Emmanuel Briot  <briot@adacore.com>
2877         * prj-pp.adb (Print): Fix handling of source index when set on a
2878         declaration node.
2880 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
2882         * einfo.ads, einfo.adb: New attribute Related_Expression, used to link
2883         a temporary to the source expression whose value it captures.
2885         * exp_util.adb (Remove_Side_Effects): Set Related_Expression as needed.
2887 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2889         * gcc-interface/trans.c (gnat_gimplify_expr): Replace EXPR_LOCUS by
2890         EXPR_LOCATION.
2892 2009-07-07  Gary Dismukes  <dismukes@adacore.com>
2894         * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for in out
2895         parameters when the subtype of the actual is not known to be a subrange
2896         of the formal's subtype.
2897         (Expand_Call): Generate a range check only in the E_In_parameter case
2898         (in out parameter range checks are now handled in Expand_Actuals).
2900         * exp_ch4.adb (Expand_N_Slice): Restore code that calls
2901         Enable_Range_Check.
2903 2009-07-07  Robert Dewar  <dewar@adacore.com>
2905         * a-stwise.adb, a-stzsea.adb, a-strsea.adb: Add comments
2907 2009-07-07  Javier Miranda  <miranda@adacore.com>
2909         * exp_disp.adb (Expand_Interface_Conversion): Handle access type whose
2910         designated type comes from a limited views.
2912 2009-07-07  Emmanuel Briot  <briot@adacore.com>
2914         * prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Fix handling of
2915         locally removed files that are later made visible again in an importing
2916         project.
2918 2009-07-07  Robert Dewar  <dewar@adacore.com>
2920         * gnat_rm.texi: Clarify documentation of Stream_Convert pragma
2922 2009-07-07  Sergey Rybin  <rybin@adacore.com>
2924         * gnat_ugn.texi: Add an example to the description of gnatcheck
2925         'Style_Checks' rule option.
2927 2009-07-07  Tristan Gingold  <gingold@adacore.com>
2929         * seh_init.c: Fix inline assembly statement in seh_init.c
2931 2009-07-07  Ed Schonberg  <schonberg@adacore.com>
2933         * sem_warn.adb (Check_References): Do not emit warnings on formals of
2934         an entry body. Only the formals of the entry declaration are traced.
2936 2009-07-07  Robert Dewar  <dewar@adacore.com>
2938         * s-osprim-mingw.adb: Minor code reorganization
2940 2009-07-07  Robert Dewar  <dewar@adacore.com>
2942         * prj-nmsc.adb: Minor reformatting
2944 2009-07-07  Pascal Obry  <obry@adacore.com>
2946         * a-stwise.adb, a-stzsea.adb, a-strsea.adb (Index): properly handle
2947         cases where Pattern is longer than Source.
2949 2009-07-07  Pascal Obry  <obry@adacore.com>
2951         * s-osprim-mingw.adb (Get_Base_Time): Avoid infinite loop.
2953 2009-07-07  Emmanuel Briot  <briot@adacore.com>
2955         * prj-nmsc.adb (Process_Naming): canonicalize file suffixes read in the
2956         project file.
2958 2009-07-07  Ed Schonberg  <schonberg@adacore.com>
2960         * exp_ch3.adb (Expand_Freeze_Record_Type): Add extra formals to
2961         primitive operations, in case one of them is called in the
2962         initialization procedure for the type.
2964 2009-07-07  Robert Dewar  <dewar@adacore.com>
2966         * a-calend.adb: Minor code reorganization (use conditional expressions)
2968         * s-stusta.ads, s-interr-hwint.adb, g-expect-vms.adb, s-secsta.ads,
2969         prj-nmsc.adb, a-teioed.adb, output.ads, prj-attr.ads, a-textio.adb,
2970         s-taskin.ads, scans.ads, s-osinte-vms.adb, s-taprop-solaris.adb,
2971         s-tpopsp-posix-foreign.adb, s-trafor-default.adb, gnat1drv.adb,
2972         s-stchop-vxworks.adb, s-tpopsp-posix.adb, prj-env.adb, prj-env.ads,
2973         g-comlin.adb, exp_ch11.adb: Minor reformatting.
2975 2009-07-07  Gary Dismukes  <dismukes@adacore.com>
2977         * checks.adb (Generate_Range_Check): Replace type conversions with
2978         unchecked conversions to support the case of performing range checks
2979         on Enum'Val (permits integer values to be converted to enumeration).
2981         * exp_attr.adb (Expand_N_Attribute_Reference, cases Attribute_Pred,
2982         Attribute_Succ): Set Do_Range_Check to False before calling
2983         Expand_Pred_Succ, to prevent gigi from generating any range checks.
2984         (Expand_N_Attribute_Reference, case Attribute_Val):
2985         Generate a range check when needed (and set Do_Range_Check to False).
2987         * exp_ch3.adb (Expand_N_Object_Declaration): Generate a range check on
2988         scalar object initialization if needed.
2990         * exp_ch4.adb (Expand_Allocator_Expression): Generate range checks
2991         when needed on scalar allocators.
2992         (Expand_N_Qualified_Expression): Generate range check when needed.
2993         (Expand_N_Slice): Remove call to Enable_Range_Check on slice ranges.
2994         Checks on slice ranges handled in Resolve_Slice.
2996         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate a range check,
2997         when needed, for all scalar assignments, not just discrete.
2998         (Expand_Simple_Function_Return): Resolve the conversion created for a
2999         scalar function return so that the conversion will get expanded to
3000         generate a possible constraint check.
3002         * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for out and
3003         in out scalar actuals when subtypes don't match, to ensure generation
3004         of return checks (and set Do_Range_Check to False).
3005         (Expand_Call): Uncomment code to perform range checks, but make it apply
3006         only to in and in out parameters (checks on parameter returns are
3007         handled in Expand_Actuals). If a scalar actual for a call to a derived
3008         subprogram is marked as needing a range check, peform it here (and set
3009         Do_Range_Check to False).
3011         * sem_aggr.adb (Resolve_*_Aggregate.Resolve_Aggr_Expr): Generate a
3012         range check on scalar component associations when needed.
3014         * sem_eval.adb (In_Subrange_Of): Return False when the first type has
3015         infinities but the second type does not, as these aren't compatible
3016         floating-point types.
3018         * sem_res.adb (Resolve_Slice): In the case where the prefix of the
3019         slice is itself a slice, pick up the Etype of the prefix. This handles
3020         the case where the prefix was an Image attribute expanded to a slice,
3021         and ensures that we get the subtype with the slice constraint rather
3022         than the unconstrained subbtype of the 'Image.
3024 2009-07-07  Ed Schonberg  <schonberg@adacore.com>
3026         * sem_ch4.adb (Analyze_Conditional_Expression): handle properly
3027         overloaded expressions in a conditional expressions.
3029         * sem_res.adb (Resolve): Handle properly overloaded conditional
3030         expressions.
3032 2009-07-07  Robert Dewar  <dewar@adacore.com>
3034         * scng.adb: Minor reformattting
3036         * par-ch2.adb (Scan_Pragma_Argument_Association): Pragma argument
3037         association allows conditional expression without parens.
3039         * par-ch4.adb (P_Name): Attribute arguments can be conditional
3040         expressions without enclosing parentheses, and also as parameters,
3041         indexing expressions etc.
3042         (P_Conditional_Expression): New procedure
3043         (P_Expression_If_OK): New procedure
3045         * par.adb (P_Conditional_Expression): New procedure
3046         (P_Expression_If_OK): New procedure
3048         * sem_ch4.adb (Analyze_Conditional_Expression): Allow for two argument
3049         form of conditional expression.
3051         * sem_res.adb (Resolve_Conditional_Expression): Deal with supplying
3052         missing True argument if ELSE argument missing.
3054         * sinfo.adb (Is_Elsif): New flag
3056         * sinfo.ads (N_Conditional_Expression): This node is now a syntactic
3057         part of the language, and the documentation is modified accordingly.
3058         (Is_Elsif): New flag
3060 2009-07-06  Olivier Hainque  <hainque@adacore.com>
3062         * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu,
3063         setjmp_longjmp): Attach the exception propagation reraise fallback
3064         to the sequence end label location when we have it.
3066 2009-07-04  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3068         PR ada/40608
3069         * init.c (APPLE): Include <mach/mach_init.h>.
3070         (__gnat_error_handler, APPLE): Add ATTRIBUTE_UNUSED marker.
3072 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
3074         * ada-tree.h (SET_TYPE_LANG_SPECIFIC): Rewrite.
3075         (SET_DECL_LANG_SPECIFIC): Likewise.
3076         (TYPE_RM_VALUE): New macro.
3077         (SET_TYPE_RM_VALUE): Likewise.
3078         (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUE.
3079         (TYPE_RM_MIN_VALUE): Likewise.
3080         (TYPE_RM_MAX_VALUE): Likewise.
3081         (SET_TYPE_RM_SIZE): Rewrite in terms of SET_TYPE_RM_VALUE.
3082         (SET_TYPE_RM_MIN_VALUE): Likewise.
3083         (SET_TYPE_RM_MAX_VALUE): Likewise.
3084         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Remove kludge.
3086 2009-07-04  Laurent GUERBY  <laurent@guerby.net>
3088         PR ada/40631
3089         * tracebak.c (__gnat_backtrace): Fix old-style definition.
3091 2009-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3093         * tracebak.c [i386 && sun] (IS_BAD_PTR): Use -1UL in comparison.
3095 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3097         PR ada/40609
3098         * init.c (__gnat_error_handler, HP-UX): Add ATTRIBUTE_UNUSED marker to
3099         ucontext argument.
3101 2009-07-01  Eric Botcazou  <ebotcazou@adacore.com>
3103         * init.c (__gnat_error_handler, Solaris): Add ATTRIBUTE_UNUSED marker.
3105 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
3107         * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Do not use
3108         the type of the left operand if it pads a self-referential type when
3109         the right operand is a constructor.
3111         * gcc-interface/lang-specs.h: Fix copyright date.
3113 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
3115         * gcc-interface/decl.c: Include tree-inline.h.
3116         (annotate_value) <CALL_EXPR>: Try to inline the call in the expression.
3117         * gcc-interface/utils.c (max_size) <CALL_EXPR>: Likewise.
3118         * gcc-interface/utils2.c: Include tree-inline.
3119         (known_alignment) <CALL_EXPR>: Likewise.
3121 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
3123         * raise-gcc.c: Include dwarf2.h conditionally.
3124         
3125 2009-06-29  Tom Tromey  <tromey@redhat.com>
3127         * raise-gcc.c: Include elf/dwarf2.h.
3129 2009-06-27  Laurent GUERBY  <laurent@guerby.net>
3131         * tb-gcc.c (trace_callback): Add casts to silence warning.
3133 2009-06-27  Eric Botcazou  <ebotcazou@adacore.com>
3135         * tb-gcc.c: Fix copyright notice.
3137 2009-06-27  Eric Botcazou  <ebotcazou@adacore.com>
3139         * init.c (__gnat_set_globals): Add prototype.
3140         * adaint.c (__gnat_binder_supports_auto_init): Likewise.
3141         (__gnat_sals_init_using_constructors): Likewise.
3142         * gcc-interface/utils.c (gnat_pushlevel): Likewise.
3143         (get_block_jmpbuf_decl): Likewise.
3144         (gnat_poplevel): Likewise.
3145         (merge_sizes): Rename local variable.
3146         (copy_type): Likewise.
3147         (build_vms_descriptor32): Likewise.
3148         (build_vms_descriptor): Likewise.
3149         (convert_vms_descriptor64): Likewise.
3150         (convert_vms_descriptor32): Likewise.
3151         (convert_to_fat_pointer): Likewise.
3152         (maybe_unconstrained_array): Likewise.
3153         (def_fn_type): Use promoted type with va_arg.
3154         * gcc-interface/decl.c (gnat_to_gnu_entity): Add declaration.
3155         (substitute_in_type): Rename local variable.
3156         * gcc-interface/Make-lang.in (ada-warn): Use STRICT_WARN.
3158 2009-06-26  Laurent GUERBY  <laurent@guerby.net>
3160         * tb-gcc.c (trace_callback): Use char* instead of void*.
3161         * gcc-interface/misc.c (enumerate_modes): Make loop C++ compatible.
3162         * gcc-interface/trans.c (parm_attr): Rename to parm_attr_d.
3163         (Attribute_to_gnu): Adjust for above change.
3164         (Subprogram_Body_to_gnu): Likewise.
3165         * gcc-interface/utils.c (merge_sizes): Rename local variable.
3166         (copy_type): Likewise.
3167         (build_vms_descriptor32): Likewise.
3168         (build_vms_descriptor): Likewise.
3169         (convert_vms_descriptor64): Likewise.
3170         (convert_vms_descriptor32): Likewise.
3171         (convert_to_fat_pointer): Likewise.
3172         (maybe_unconstrained_array): Likewise.
3173         * gcc-interface/decl.c (substitute_in_type): Likewise.
3175 2009-06-26  Eric Botcazou  <ebotcazou@adacore.com>
3177         * gcc-interface/decl.c (cannot_be_superflat_p): New predicate.
3178         (gnat_to_gnu_entity) <E_Array_Subtype>: Use it to build the expression
3179         of the upper bound of the index types.
3181 2009-06-26  Eric Botcazou  <ebotcazou@adacore.com>
3183         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Factor
3184         out common predicate.  Use the maximum to compute the upper bound of
3185         the index type only when it is not wider than sizetype.  Perform the
3186         comparison in the index type for the generic expression.  Use real
3187         precision to decide whether to generate special types for debugging
3188         information.
3190 2009-06-26  Matthew Gingell  <gingell@adacore.com>
3192         * adaint.c: Do not use the dummy version of convert_addresses on LynxOS
3194 2009-06-26  Vincent Celier  <celier@adacore.com>
3196         * prj.ads (No_Language_Config): Value of Dependency_Kind is None by
3197         default.
3199 2009-06-26  Robert Dewar  <dewar@adacore.com>
3201         * exp_ch4.adb, gnatcmd.adb, make.adb: Minor reformatting
3203 2009-06-26  Eric Botcazou  <ebotcazou@adacore.com>
3205         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Pass
3206         correct arguments to create_field_decl.  Remove redundant iteration.
3207         Rewrite computation of the maximum size.
3208         <E_Array_Subtype>: Reorder and simplify handling of special cases.
3209         Rewrite computation of the maximum size.  Use consistent naming.
3210         * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Length>: Swap
3211         comparison order for consistency.  Use generic integer node to
3212         build the operator and fold the result.
3214 2009-06-25  Vincent Celier  <celier@adacore.com>
3216         * vms_data.ads: Minor comment change
3218 2009-06-25  Gary Dismukes  <dismukes@adacore.com>
3220         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Don't build an
3221         assignment statement to targeting a caller-provided object when the
3222         result type is an interface type.
3224         * exp_ch6.adb (Expand_Call): Remove redundant test of
3225         Is_Limited_Interface (Is_Inherently_Limited is sufficient).
3226         (Is_Build_In_Place_Function): Remove test for Is_Limited_Interface.
3228         * sem_aggr.adb (Check_Expr_OK_In_Limited_Aggregate): Add type in call
3229         to OK_For_Limited_Init.
3231         * sem_aux.adb (Is_Inherently_Limited_Type): Revise limited type
3232         condition so that True is returned for all limited interfaces, not
3233         just synchronized ones. Ignore components of an interface type when
3234         checking for limited components (such a component can be a parent
3235         component).
3237         * sem_ch3.ads (OK_For_Limited_Init_In_05): Add type parameter.
3238         (OK_For_Limited_Init): Add type parameter.
3240         * sem_ch3.adb (Check_Initialization): Add type in call to
3241         OK_For_Limited_Init.
3242         (OK_For_Limited_Init): Add new type param in call to
3243         OK_For_Limited_Init_In_05.
3244         (OK_For_Limited_Init_In_05): Permit arbitrary expressions of a
3245         nonlimited type when the context type is a limited interface. Add type
3246         on recursive calls.
3248         * sem_ch4.adb (Analyze_Allocator): Add type in call to
3249         OK_For_Limited_Init.
3251         * sem_ch6.adb (Check_Limited_Return): Add type in call to
3252         OK_For_Limited_Init.
3254         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Add type in call to
3255         OK_For_Limited_Init.
3256         (Instantiate_Object): Add type in call to OK_For_Limited_Init.
3258         * sem_type.adb (Interface_Present_In_Ancestor): In the case of a
3259         class-wide interface, get the base type before applying Etype, in order
3260         to account for class-wide subtypes.
3262 2009-06-25  Emmanuel Briot  <briot@adacore.com>
3264         * gnatcmd.adb, prj-proc.adb, make.adb, prj.adb, prj.ads, prj-nmsc.adb,
3265         prj-util.adb, prj-env.adb, prj-env.ads: Merge handling of naming_data
3266         between gnatmake and gprbuild.
3267         (Naming_Data): Removed, no longer used
3268         (Naming_Table, Project_Tree_Ref.Namings): Removed, since this is only
3269         needed locally in one subprogram, no need to store forever in the
3270         structure.
3271         (Check_Naming_Scheme, Check_Package_Naming): Merged, since they play
3272         a similar role.
3273         (Body_Suffix_Of, Body_Suffix_Id_Of, Register_Default_Naming_Scheme,
3274         Same_Naming_Scheme, Set_Body_Suffix, Set_Spec_Suffix, Spec_Suffix_Of,
3275         Spec_Suffix_Id_Of): removed, no longer used.
3277 2009-06-25  Javier Miranda  <miranda@adacore.com>
3279         * sem_res.adb (Resolve_Allocator): Skip test requiring exact match of
3280         types on qualified expression in calls to imported C++ constructors.
3282         * exp_ch4.adb (Expand_Allocator_Expression): Add missing support for
3283         imported C++ constructors.
3285 2009-06-25  Sergey Rybin  <rybin@adacore.com>
3287         * vms_data.ads: Add qualifier for new gnatcheck '-t' option.
3289 2009-06-25  Vincent Celier  <celier@adacore.com>
3291         * s-os_lib.adb (Normalize_Pathname.Get_Directory): If directory
3292         provided, on Windows change all '/' to '\'.
3294         * fmap.ads, fmap.adb (Remove_Forbidden_File_Name): Remove, no longer
3295         used. Minor comment changes
3297         * prj-nmsc.adb: Do not call Fmap.Add_Forbidden_File_Name or
3298         Remove_Forbidden_File_Name.
3300 2009-06-25  Quentin Ochem  <ochem@adacore.com>
3302         * prj.ads (Unit_Index): Now general access type.
3304 2009-06-25  Pascal Obry  <obry@adacore.com>
3306         * a-stwise.adb, a-stzsea.adb: Fix confusion between 'Length and 'Last.
3308 2009-06-25  Emmanuel Briot  <briot@adacore.com>
3310         * fmap.ads, make.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb,
3311         prj-env.ads (Source_Data.Get_Object): Field removed, since it can be
3312         computed efficiently from the other fields.
3313         (Object_To_Global_Archive): New subprogram
3314         (Create_Mapping): Remove unneeded call to Remove_Forbidden_File_Name.
3315         (Override_Kind): Fix handling of separates in Ada.
3316         (Create_Mapping_File): Remove duplicate code
3317         (Naming_Data.Implementation_Exception, Specification_Exception):
3318         field removed, since never used.
3319         (Naming_Data.Specs, .Bodies): field removed, since this is only
3320         used while processing the project and is not needed once the tree
3321         is in memory. This brings Naming_Data and Lang_Naming_Data
3322         closer (same content now, but different use still).
3324 2009-06-25  Pascal Obry  <obry@adacore.com>
3326         * sem_ch4.adb: Minor reformatting.
3328         * a-strsea.adb: Fix confusion between 'Length and 'Last.
3330 2009-06-25  Ed Schonberg  <schonberg@adacore.com>
3332         * exp_attr.adb (Expand_N_Attribute_Reference, case 'Access and
3333         Unchecked_Access): If the context is an interface type, and the prefix
3334         is of the corresponding class-wide type, do not insert a conversion
3335         because the pointer displacement has already taken place, and we must
3336         retain the class-wide type in a dispatching context.
3338 2009-06-25  Emmanuel Briot  <briot@adacore.com>
3340         * prj-nmsc.adb, prj-env.adb (Override_Kind): Unset the unit field of
3341         the previous source file.
3342         (Create_Mapping): Iterate on sources rather than on units.
3344 2009-06-25  Emmanuel Briot  <briot@adacore.com>
3346         * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb,
3347         prj-env.adb, prj-env.ads (Slash): removed, no longer used
3348         (Source_Data): no longer use Path.Name to point to a locally removed
3349         file. Instead we use the field Locally_Removed which is clearer
3351 2009-06-25  Arnaud Charlet  <charlet@adacore.com>
3353         * gcc-interface/Make-lang.in: Remove references to sem_maps.o
3355         * sem_maps.adb, sem_maps.ads: Removed, not used.
3357 2009-06-25  Ed Falis  <falis@adacore.com>
3359         * s-vxwext-rtp.ads: Add missing declaration
3361 2009-06-25  Matthew Gingell  <gingell@adacore.com>
3363         * a-stwise.adb, a-stzsea.adb (Count, Index): Avoid local copy on stack,
3364         speed up unmapped case.
3366 2009-06-25  Vincent Celier  <celier@adacore.com>
3368         * prj-nmsc.adb (Check): Change error message for illegal abstract
3369         projects.
3371 2009-06-25  Robert Dewar  <dewar@adacore.com>
3373         * gnat_ugn.texi: Add note on use of -gnatct for ASIS
3375 2009-06-25  Emmanuel Briot  <briot@adacore.com>
3377         * fmap.ads: Add documentation on mapping files
3379 2009-06-25  Robert Dewar  <dewar@adacore.com>
3381         * exp_ch6.adb, g-socket.ads, g-socket.adb, sem_ch3.adb: Minor
3382         reformatting
3384 2009-06-24  Robert Dewar  <dewar@adacore.com>
3386         * prj-nmsc.adb, prj-nmsc.ads, prj-proc.adb, prj.adb: Minor reformatting
3388         * a-strsea.adb (Count): Avoid local copy on stack, speed up unmapped
3389         case.
3390         (Index): Ditto.
3392 2009-06-24  Ed Schonberg  <schonberg@adacore.com>
3394         * sem_ch4.adb (Analyze_One_Call): Check that at least one actual is
3395         present when checking whether a call may be interpreted as an indexing
3396         of the result of a call.
3398         * exp_ch9.adb (Expand_N_Subprogram_Declaration): Place the generated
3399         body for a null procedure on the freeze actions for the procedure, so
3400         that it will be analyzed at the proper place without premature freezing
3401         of actuals.
3403         * sem_ch3.adb (Check_Completion): Code cleanup. 
3404         Do not diagnose a null procedure without a body, if previous errors
3405         have disabled expansion.
3407 2009-06-24  Doug Rupp  <rupp@adacore.com>
3409         * init.c [VMS] Resignal C$_SIGKILL
3411 2009-06-24  Ed Falis  <falis@adacore.com>
3413         * s-vxwext.adb, s-vxwext-kernel.adb: Add s-vxwext body for VxWorks 5
3414         Define ERROR in body for VxWorks 6 kernel
3416 2009-06-24  Pascal Obry  <obry@adacore.com>
3418         * g-socket.adb, g-socket.ads: Fix possible unexpected constraint error
3419         in [Send/Receive]_Socket.
3421 2009-06-24  Emmanuel Briot  <briot@adacore.com>
3423         * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
3424         prj-conf.adb, prj-conf.ads (Allow_Duplicate_Basenames): New parameter
3425         to several subprograms.
3426         (Source_Data.Other_Part): Removed, since can be computed from the
3427         language.
3428         (Other_Part): New subprogram.
3430 2009-06-24  Emmanuel Briot  <briot@adacore.com>
3432         * gnat_ugn.texi, prj-nmsc.adb (Suffix_Matches): A suffix can also match
3433         the full base name of the file when the suffix doesn't start with a '.'.
3435 2009-06-24  Vincent Celier  <celier@adacore.com>
3437         * prj-nmsc.adb (Check): A project declared abstract is legal if no
3438         attribute Source_Dirs, Source_Files, Source_List_File or Languages is
3439         declared.
3441 2009-06-24  Robert Dewar  <dewar@adacore.com>
3443         * clean.adb, gnatcmd.adb, make.adb, mlib-prj.adb,
3444         prj-env.adb: Minor reformatting
3446 2009-06-24  Ed Falis  <falis@adacore.com>
3448         * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-vxwext.ads,
3449         s-vxwext-kernel.adb, s-vxwext-kernel.ads, s-vxwext-rtp.adb,
3450         s-tasinf-vxworks.ads, gcc-interface/Makefile.in: Add processor affinity
3451         support for VxWorks SMP.
3453         * gcc-interface/Make-lang.in: Update dependencies
3455 2009-06-24  Emmanuel Briot  <briot@adacore.com>
3457         * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
3458         prj-nmsc.adb, prj-env.adb, prj-proc.adb (Units_Table): Removed, since
3459         no longer useful.
3460         (Source_Data.Lang_Kind): Removed, since it duplicates information
3461         already available through Language.Config.
3462         (Source_Data.Compile): Removed, since information is already available
3463         through the language.
3464         (Is_Compilable): New subprogram.
3465         (Source_Data.Dependency): Removed, since already available through
3466         the language.
3467         (Source_Data.Object_Exist, Object_Linked): Removed since available
3468         through the language already.
3469         (Unit_Data.File_Names): Is now also set in multi_language mode, to
3470         bring the two modes closer in the resulting data structures.
3471         (Source_Data.Unit): Now a direct pointer to the unit data, rather than
3472         just the name that would point into a hash table.
3473         (Get_Language_From_Name): New subprogram.
3475 2009-06-24  Javier Miranda  <miranda@adacore.com>
3477         * exp_ch4.adb (Expand_N_Type_Conversion): Handle entities that are
3478         visible through limited-with context clauses. In addition, avoid an
3479         extra tag check that is not required when the class-wide
3480         designated types of the operand and target types are
3481         the same entity.
3482         (Tagged_Membership): Handle entities from the limited view.
3484 2009-06-24  Emmanuel Briot  <briot@adacore.com>
3486         * gnatcmd.adb, make.adb, mlib-prj.adb, prj.ads, clean.adb,
3487         prj-nmsc.adb, prj-env.adb (File_Name_Data): removed
3488         (Spec_Or_Body): now a subtype of Source_Kind, to avoid using two
3489         different vocabularies for similar concepts (Impl/Body_Part and
3490         Spec/Specification).
3491         (Unit_Data): now points directly to a Source_Id, rather than duplicating
3492         some of the information in File_Name_Data. This also saves a bit of
3493         memory. However, since we are now using a pointer we need to test
3494         for null explicitly in several places of the code
3496 2009-06-24  Javier Miranda  <miranda@adacore.com>
3498         * exp_ch4.adb (Expand_N_Type_Conversion): return immediately
3499         from processing the type conversion when the node is
3500         replaced by an N_Raise_Program_Error node.
3502 2009-06-24  Hristian Kirtchev  <kirtchev@adacore.com>
3504         * sem_ch6.adb (Designates_From_With_Type): New routine.
3505         (Process_Formals): Since anonymous access types are no longer flagged
3506         as from with types, traverse the designated type to determine whether
3507         it is coming from a limited view.
3509         * sem_res.adb: Remove with and use clauses for Sem_Ch10.
3510         (Full_Designated_Type): Use Available_View to extract the non-limited /
3511         full view of a type.
3513 2009-06-24  Robert Dewar  <dewar@adacore.com>
3515         * exp_ch6.adb: Minor reformatting
3517         * layout.adb: Minor reformatting
3519         * make.adb: Minor reformatting
3521 2009-06-24  Thomas Quinot  <quinot@adacore.com>
3523         * sem_ch10.adb: Minor code reorganization.
3525 2009-06-24  Eric Botcazou  <ebotcazou@adacore.com>
3527         * ttypes.ads: Minor editing.
3528         
3529 2009-06-24  Robert Dewar  <dewar@adacore.com>
3531         * exp_ch6.adb (Expand_Actuals): Use Is_Volatile, not Treat_As_Volatile
3532         in deciding to do call-by-copy code.
3534 2009-06-24  Vincent Celier  <celier@adacore.com>
3536         * make.adb (Gnatmake): To decide if an executable should be rebuilt,
3537         check if an externally built library file is more current than the
3538         executable.
3540 2009-06-23  Olivier Hainque  <hainque@adacore.com>
3542         * gcc-interface/utils.c (handle_vector_size_attribute): Import from
3543         c-common.c and populate in gnat_internal_attribute_table.
3544         
3545 2009-06-23  Ed Schonberg  <schonberg@adacore.com>
3547         * sem_res.adb (Valid_Conversion, Full_Designated_Type): Use
3548         Available_View only when designated type of an anonymous access type
3549         is  limited view.
3551 2009-06-23  Robert Dewar  <dewar@adacore.com>
3553         * sem_ch10.adb: Minor reformatting
3555         * ali.ads: Mino reformatting.
3557         * gnat1drv.adb (Adjust_Global_Switches): New procedure (take care of
3558         turning off inlining if ASIS mode active).
3559         
3560         * switch-c.adb: Remove fiddling with Inspector_Mode and ASIS_Mode
3561         This belongs in gnat1drv.adb after switches are scanned.
3563 2009-06-23  Hristian Kirtchev  <kirtchev@adacore.com>
3565         * sem_attr.adb: Add with and use clauses for Sem_Ch10.
3566         (Check_Not_Incomplete_Type): Minor reformatting. Retrieve the root type
3567         when dealing with class-wide types. Detect a legal shadow entity and
3568         retrieve its non-limited view.
3570         * sem_ch10.adb (Has_With_Clause): Move the spec and body of the
3571         subprogram to top package level from Intall_Limited_Withed_Unit.
3572         (Install_Limited_Withed_Unit): Remove spec and body of Has_With_Clause.
3573         Add check which prevents the installation of a limited view if the
3574         non-limited view is already visible through a with clause.
3575         (Is_Legal_Shadow_Entity_In_Body): New routine. Detect a residual, but
3576         legal shadow entity which may occur in subprogram formals of anonymous
3577         access type.
3579         * sem_ch10.ads (Is_Legal_Shadow_Entity_In_Body): New routine.
3581         * sem_ch3.adb (Access_Definition): Remove the propagation of flag
3582         From_With_Type from the designated type to the generated anonymous
3583         access type. Remove associated comment.
3585         * sem_res.adb Add with and use clauses for Sem_Ch10.
3586         (Full_Designated_Type): Detect a legal shadow entity and retrieve its
3587         non-limited view. Since the shadow entity may replace a regular
3588         incomplete type, return the available full view.
3590 2009-06-23  Ed Schonberg  <schonberg@adacore.com>
3592         * sem_ch10.adb (Remove_Limited_With_Clause): Clean up code that handles
3593         incomplete type declarations. Previous code was potentially quadratic
3594         in the number of visible declarations in any package appearing in a
3595         limited_with_clause.
3597 2009-06-23  Robert Dewar  <dewar@adacore.com>
3599         * prj-conf.ads, prj-part.adb, prj-proc.adb, prj-proc.ads, sem_ch8.adb,
3600         xref_lib.adb: Minor reformatting
3602 2009-06-23  Robert Dewar  <dewar@adacore.com>
3604         * a-stzhas.adb: Provide dummy body to avoid build problems with old
3605         versions which did have a body for this unit.
3607 2009-06-23  Vincent Celier  <celier@adacore.com>
3609         * prj-attr.adb: Attribute names Initial_Required_Switches and
3610         Final_Required_Switches changed to Leading_Required_Switches and
3611         Trailing_Required_Switches.
3613         * prj-nmsc.adb (Process_Compiler): Attribute names
3614         Initial_Required_Switches and Final_Required_Switches changed to
3615         Leading_Required_Switches and Trailing_Required_Switches.
3617         * prj.ads (Language_Config): Component Initial_Required_Switches and
3618         Final_Required_Switches changed to Leading_Required_Switches and
3619         Trailing_Required_Switches.
3621         * snames.ads-tmpl: Remove standard names Initial_Required_Switches and
3622         Final_Required_Switches; add standard names Leading_Required_Switches
3623         and Trailing_Required_Switches.
3625 2009-06-23  Thomas Quinot  <quinot@adacore.com>
3627         * prj-conf.adb: Minor reformatting
3629         * xref_lib.adb: Minor cleanup
3631 2009-06-23  Emmanuel Briot  <briot@adacore.com>
3633         * prj-proc.adb, prj-proc.ads, prj-nmsc.adb, prj-nmsc.ads, prj-conf.adb,
3634         prj-conf.ads (Check_Configuration): New parameter
3635         Compiler_Driver_Mandatory.
3637 2009-06-23  Ed Schonberg  <schonberg@adacore.com>
3639         * sem_ch10.adb (Analyze_With_Clause): If a subprogram instance in the
3640         context of the current unit has an inline pragma, the instance is not
3641         rewritten as the declaration of the package wrapper. Handle both
3642         possibilities when retrieving the visible subprogram that renames the
3643         instantiation itself.
3645 2009-06-23  Javier Miranda  <miranda@adacore.com>
3647         * exp_ch4.adb (Displace_Allocator_Pointer, Expand_N_Allocator): Handle
3648         designated types referencing entities from the limited view.
3650 2009-06-23  Robert Dewar  <dewar@adacore.com>
3652         * s-strhas.adb, s-strhas.ads: Restrict to 32-bit modular types
3654         * s-imgdec.adb (Set_Decimal_Digits): Fix error of too many digits for
3655         small values
3657         * prj-conf.ads: Minor reformatting
3659         * prj-conf.adb: Minor reformatting
3661 2009-06-23  Vasiliy Fofanov  <fofanov@adacore.com>
3663         * g-debpoo.adb (Dump_Gnatmem): Output dummy timestamps for allocations
3664         to correspond to the log format that gnatmem now expects.
3666 2009-06-23  Vincent Celier  <celier@adacore.com>
3668         * prj-attr.adb: New attributes Initial_Required_Switches,
3669         Final_Required_Switches and Object_File_Switches
3670         
3671         * prj-nmsc.adb (Process_Compiler): Process new attributes
3672         Name_Final_Required_Switches, Name_Initial_Required_Switches and
3673         Name_Object_File_Switches.
3675         * prj.ads (Language_Config): New component
3676         Compiler_Initial_Required_Switches (replace Compiler_Required_Switches),
3677         Compiler_Final_Required_Switches and Object_File_Switches.
3679         * snames.ads-tmpl: New standard names Initial_Required_Switches,
3680         Final_Required_Switches and Object_File_Switches
3682 2009-06-23  Pascal Obry  <obry@adacore.com>
3684         * s-strhas.adb, s-strhas.ads: Minor reformatting.
3686 2009-06-23  Ed Schonberg  <schonberg@adacore.com>
3688         * sem_ch10.adb (Install_Limited_Withed_Unit): a null procedure does
3689         not indicate that the enclosing unit needs a body.
3691 2009-06-23  Emmanuel Briot  <briot@adacore.com>
3693         * prj-conf.ads, prj-conf.adb: New files part of the project manager.
3695 2009-06-23  Ed Schonberg  <schonberg@adacore.com>
3697         * sem_ch3.adb (Derive_Subprogram): If the inherited subprogram is a
3698         primitive equality include it with its source name even if the
3699         operation is currently invisible, to make sure that the corresponding
3700         slot in the dispatch table is reserved for the internal equality
3701         subsequently generated during expansion.
3703 2009-06-23  Matthew Gingell  <gingell@adacore.com>
3705         * Makefile.rtl, a-stwiha.adb: Add a-stwiha.adb back.
3707 2009-06-22  Jose Ruiz  <ruiz@adacore.com>
3709         * sysdep.c (__gnat_localtime_tzoff for RTX):
3710         SystemTimeToTzSpecificLocalTime is not supported by RTX. Use
3711         GetTimeZoneInformation instead.
3713 2009-06-22  Robert Dewar  <dewar@adacore.com>
3715         * sem_res.adb (Check_No_Direct_Boolean_Operators): New procedure
3717 2009-06-22  Ed Schonberg  <schonberg@adacore.com>
3719         * sem_ch12.adb (Collect_Previous_Instances): Do not collect
3720         instantiations declared in a previous generic package body.
3722 2009-06-22  Robert Dewar  <dewar@adacore.com>
3724         * gnat_rm.texi: Add doc that X=True and X=False is allowed for the
3725         restriction No_Direct_Boolean_Operators.
3727 2009-06-22  Thomas Quinot  <quinot@adacore.com>
3729         * bindusg.adb: Minor fixes to gnatbind usage message
3731         * sem_eval.adb: Minor reformatting
3733 2009-06-22  Javier Miranda  <miranda@adacore.com>
3735         * sem_ch3.adb (Analyze_Object_Declaration, Freeze_Entity): Move to the
3736         freezing point the check on the use of abstract types in object
3737         declarations. Done to allow the declaration of C++ imported variables
3738         or constants whose type corresponds with an imported C++ classes for
3739         which the constructor is not imported.
3741 2009-06-22  Thomas Quinot  <quinot@adacore.com>
3743         * sem_ch6.adb: Minor reformatting
3745 2009-06-22  Ed Schonberg  <schonberg@adacore.com>
3747         * exp_ch3.adb (Build_Initialization_Call): If a discriminated record
3748         component is constrained with an expression rather than with a
3749         discriminant of the enclosing type, use that expression when building
3750         the call to default-initialize the component, when the call is part of
3751         an aggregate with box initialization.
3753 2009-06-22  Ed Schonberg  <schonberg@adacore.com>
3755         * sem_ch6.adb (Check_Overriding_Indicator): Clean up code, make warning
3756         unconditional rather than a style check, because a formal name out of
3757         order is suspicious.
3759 2009-06-22  Vincent Celier  <celier@adacore.com>
3761         * prj-nmsc.adb (Locate_Directory): Indicate the project name when
3762         creating a directory automatically.
3764 2009-06-22  Eric Botcazou  <ebotcazou@adacore.com>
3766         * sem_ch3.adb (Create_Constrained_Components): For a subtype of an
3767         untagged derived type, add a hidden component for every constrained
3768         discriminant of the parent type to keep record layout consistent.
3770 2009-06-22  Thomas Quinot  <quinot@adacore.com>
3772         * exp_ch3.adb: Minor code reorganization (avoid an unnecessary tree
3773         copy).
3775 2009-06-22  Matthew Gingell  <gingell@adacore.com>
3777         * a-stzhas.adb, a-stwiha.adb, impunit.adb, a-swbwha.adb, a-shcain.adb,
3778         s-htable.adb, a-szuzha.adb, a-stunha.adb, a-stboha.adb, a-strhas.adb,
3779         g-spitbo.adb, s-strhas.adb, a-szbzha.adb, s-strhas.ads, Makefile.rtl,
3780         a-swuwha.adb: New unit System.String_Hash.  
3781         Refactor redundant cut and pasted hash functions with instances of a
3782         new generic hash function.
3783         Implement a new string hashing algorithm which appears in testing to
3784         be move effective than to previous approach.
3786 2009-06-22  Ed Falis  <falis@adacore.com>
3788         * sysdep.c: remove include for nfsLib.h and an NFS specific error
3789         message for VxWorks 653 vThreads: not supported by the OS.
3791         * gsocket.h: disable sockets for VxWorks 653 vThreads.
3793 2009-06-22  Robert Dewar  <dewar@adacore.com>
3795         * sem_ch6.adb: Add ??? comment for bad use of Style_Check
3797 2009-06-22  Robert Dewar  <dewar@adacore.com>
3799         * sinput.adb, sinput.ads (Expr_First_Char, Expr_Last_Char): Replaced
3800         by Sloc_Range.
3802         * freeze.adb: Minor comment updates
3804         * s-valrea.adb (Bad_Based_Value): New procedure
3805         (Scan_Real): Raise exceptions with messages
3807 2009-06-22  Matthew Gingell  <gingell@adacore.com>
3809         * adaint.h: Complete previous change.
3811 2009-06-22  Thomas Quinot  <quinot@adacore.com>
3813         * exp_ch7.ads, exp_ch3.adb: Minor reformatting
3815 2009-06-22  Ed Schonberg  <schonberg@adacore.com>
3817         * sem_ch6.adb (Check_Overriding_Indicator): When style checks are
3818         enabled, emit warning when a non-controlling argument of the overriding
3819         operation appears out of place vis-a-vis of the formal of the
3820         overridden operation.
3822 2009-06-22  Vincent Celier  <celier@adacore.com>
3824         * gnatcmd.adb (Check_Files): Close temporary files after all file names
3825         have been written into it.
3827 2009-06-22  Matthew Gingell  <gingell@adacore.com>
3829         * adaint.c, adaint.h, cstreams.c: Call stat64 on platforms where it is
3830         available.
3832 2009-06-22  Thomas Quinot  <quinot@adacore.com>
3834         * sem_disp.adb (Check_Direct_Call): Handle the case where the full
3835         view of the root type is visible at the point of the call.
3837 2009-06-22  Pat Rogers  <rogers@adacore.com>
3839         * gnat_ugn.texi: Revised a sentence to correct a minor grammar error.
3841 2009-06-22  Jerome Lambourg  <lambourg@adacore.com>
3843         * freeze.adb: Add comments.
3845 2009-06-21  Thomas Quinot  <quinot@adacore.com>
3847         * exp_ch3.adb, exp_prag.adb, exp_util.adb, exp_util.ads, freeze.adb,
3848         sem_ch13.adb, sem_elab.adb (Exp_Prag.Expand_Pragma_Import_Or_Interface):
3849         Factor out code to new subprogram...
3850         (Exp_Util.Find_Init_Call): New shared routine to find the init proc call
3851         for a default initialized variable.
3852         (Freeze.Check_Address_Clause): Do not reset Has_Delayed_Freeze on an
3853         entity that has an associated freeze node.
3854         (Sem_Ch13.Analyze_Attribute_Definition_Clause, case Address):
3855         If there is an init call for the object, defer it to the object freeze
3856         point.
3857         (Check_Elab_Call.Find_Init_Call): Rename to Check_Init_Call, to avoid
3858         name clash with new subprogram introduced in Exp_Util.
3860 2009-06-21  Robert Dewar  <dewar@adacore.com>
3862         * einfo.ads: Minor reformatting
3864 2009-06-21  Ed Falis  <falis@adacore.com>
3866         * env.c (__gnat_environ): return NULL for vThreads - unimplemented
3868 2009-06-21  Eric Botcazou  <ebotcazou@adacore.com>
3870         * einfo.ads: Update comments.
3872 2009-06-21  Hristian Kirtchev  <kirtchev@adacore.com>
3874         * sem_disp.adb (Check_Direct_Call): New routine. Dispatching calls
3875         where the controlling formal is of private class-wide type whose
3876         completion is a synchronized type can be converted into direct calls.
3878 2009-06-21  Vincent Celier  <celier@adacore.com>
3880         * gnatcmd.adb (Check_Files): When all sources of the project are to be
3881         indicated to gnatcheck, gnatpp or gnatmetric, always specify the list
3882         of sources using -files=, so that the distinction can be made by the
3883         tool of a call with no source (to display the usage) from a call with
3884         a project file that contains no source.
3886 2009-06-21  Jerome Lambourg  <lambourg@adacore.com>
3888         * exp_ch3.adb (Build_Array_Init_Proc): Do not build the init proc in
3889         case of VM convention arrays.
3891 2009-06-20  Robert Dewar  <dewar@adacore.com>
3893         * a-nudira.adb: Minor reformatting
3895 2009-06-20  Ed Schonberg  <schonberg@adacore.com>
3897         * exp_ch3.adb (Build_Record_Init_Proc): When copying initial
3898         expressions (possibly from a parent type) indicate that the scope of
3899         the new itypes is the initialization procedure being built.
3901 2009-06-20  Robert Dewar  <dewar@adacore.com>
3903         * a-nudira.adb (Fits_In_32_Bits): New name (inverted sense) for
3904         Needs_64, and now computed without anomolies for some dynamic types.
3906 2009-06-20  Thomas Quinot  <quinot@adacore.com>
3908         * sem_prag.adb: Minor reformatting
3910         * exp_disp.ads: Minor reformatting
3912 2009-06-20  Ed Schonberg  <schonberg@adacore.com>
3914         * sem_ch3.adb (Is_OK_For_Limited_Init): An unchecked conversion of a
3915         function call is a legal expression to initialize a limited object.
3917         * exp_ch3.adb: Rename various freeze operations that perform expansion
3918         actions, to prevent confusion with subprograms in the freeze package.
3920 2009-06-20  Ed Schonberg  <schonberg@adacore.com>
3922         * sem.adb (Walk_Library_Units): Check instantiations first.
3924         * sem_ch6.adb (Analyze_Subprogram_Declaration): Mark a subprogram as a
3925         private primitive if it is a function with a controlling result that is
3926         a type extension with progenitors.
3928         * exp_ch9.adb (Build_Wrapper_Spec, Build_Wrapper_Body): Handle properly
3929         a primitive operation of a synchronized tagged type that has a
3930         controlling result.
3932 2009-06-20  Thomas Quinot  <quinot@adacore.com>
3934         * einfo.ads: Fix typo.
3936 2009-06-20  Ed Falis  <falis@adacore.com>
3938         * s-vxwext.ads, s-vxwext-kernel.adb: Complete previous change.
3940 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
3942         * gcc-interface/trans.c (emit_check): Do not wrap up the result
3943         in a SAVE_EXPR.
3944         (protect_multiple_eval): Always protect complex expressions.
3946 2009-06-19  Emmanuel Briot  <briot@adacore.com>
3948         * prj-ext.adb, makeutl.adb, makeutl.ads (Executable_Prefix_Path): Now
3949         make sure we always return a name ending with a path separator.
3951 2009-06-19  Javier Miranda  <miranda@adacore.com>
3953         * sem_ch12.adb (Instantiate_Package_Body, Instantiate_Subprogram_Body):
3954         Save and restore the visibility of the parent when installed.
3956 2009-06-19  Jose Ruiz  <ruiz@adacore.com>
3958         * s-tposen.ads (Protection_Entry): Replace fields L, Ceiling, and Owner
3959         by Common which contains all these fields.
3961         * s-tposen.adb (Initialize_Protection_Entry, Lock_Entry,
3962         Lock_Read_Only_Entry, Timed_Protected_Single_Entry_Call, Unlock_Entry):
3963         Remove code duplication in this package by means of calling the
3964         equivalent code in s-taprob.
3966 2009-06-19  Robert Dewar  <dewar@adacore.com>
3968         * a-einuoc.ads: Minor reformatting
3970 2009-06-19  Ed Falis  <falis@adacore.com>
3972         * a-einuoc.ads, s-osinte-vxworks.ads, s-vxwext.ads, s-vxwext-kernel.adb,
3973         s-vxwext-kernel.ads, s-vxwext-rtp.ads: Code clean up.
3975 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
3977         * einfo.ads (Handling of Type'Size Values): Fix Object_Size values.
3979 2009-06-19  Robert Dewar  <dewar@adacore.com>
3981         * a-nudira.adb (Need_64): Handle negative ranges and also dynamic
3982         ranges
3984         * checks.adb (Determine_Range): Move the test for generic types later.
3986         * sem_eval.adb (Compile_Time_Compare): Improve circuitry to catch more
3987         cases.
3988         (Eval_Relational_Op): Fold more cases including string compares
3990         * sem_util.ads, sem_util.adb (References_Generic_Formal_Type): New
3991         function.
3993 2009-06-19  Robert Dewar  <dewar@adacore.com>
3995         * sem_type.ads, sem_ch12.adb: Minor reformatting
3997         * s-wchcnv.adb (UTF_32_To_Char_Sequence): Handle invalid data properly
3999 2009-06-19  Ed Schonberg  <schonberg@adacore.com>
4001         * exp_ch9.adb (Build_Wrapper_Spec): Handle properly an overridden
4002         primitive operation of a rivate extension whose controlling argument
4003         is an out parameter.
4005         * sem.adb (Walk_Library_Units): exclude generic package declarations
4006         from check.
4008 2009-06-19  Thomas Quinot  <quinot@adacore.com>
4010         * i-vxwoio.ads: Add comments
4012 2009-06-19  Thomas Quinot  <quinot@adacore.com>
4014         * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
4015         g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
4016         g-socthi.adb, g-socthi.ads, g-socket.adb, g-sothco.ads
4017         (GNAT.Sockets.Thin.C_Ioctl): Rename to Socket_Ioctl.
4018         (GNAT.Sockets.Thin.Socket_Ioctl): Use new function
4019         Thin_Common.Socket_Ioctl.
4020         (GNAT.Sockets.Thin_Common.Socket_Ioctl): Binding to new C wrapper
4021         __gnat_socket_ioctl.
4022         (__gnat_socket_ioctl): Wrapper for ioctl(2) called with a single int*
4023         argument after the file descriptor and request code.
4025 2009-06-19  Robert Dewar  <dewar@adacore.com>
4027         * checks.adb: Minor reformatting
4029 2009-06-19  Jose Ruiz  <ruiz@adacore.com>
4031         * env.c (__gnat_environ): RTX does not support this functionality.
4033 2009-06-19  Ed Schonberg  <schonberg@adacore.com>
4035         * sem.adb (Walk_Library_Items): Include bodies in the list of units to
4036         traverse, to account for front-end inlining and instantiations in a
4037         spec or in the main unit.
4039 2009-06-19  Robert Dewar  <dewar@adacore.com>
4041         * checks.adb (Determine_Range): Do not attempt to get range of generic
4042         type.
4044 2009-06-19  Sergey Rybin  <rybin@adacore.com>
4046         * gnat_ugn.texi, vms_data.ads: Add the documentation for the new
4047         gnatmetric option for generating the schema file for gnatmetric XML
4048         output. Add corresponding VMS qualifier.
4050 2009-06-19  Robert Dewar  <dewar@adacore.com>
4052         * g-cgi.adb: Minor reformatting
4054 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
4056         * s-intman-solaris.adb (Notify_Exception): Do not discriminate on the
4057         signal code for SIGFPE and raise Program_Error for SIGILL.
4059         * s-osinte-solaris.ads: Remove signal code constants for SIGFPE.
4061 2009-06-19  Ed Schonberg  <schonberg@adacore.com>
4063         * sem_ch8.adb (Nvis_Messages): Do not list an entity declared in a
4064         generic package if there is a visibility candidate that is declared in
4065         a regular package.
4067 2009-06-18  Olivier Hainque  <hainque@adacore.com>
4069         * system-aix64.ads: New file.
4070         * gcc-interface/Makefile.in (aix LIBGNAT_TARGET_PAIRS): Use the
4071         64bit system.ads for ppc64 multilib variants.
4073 2009-06-16  Robert Dewar  <dewar@adacore.com>
4074             Olivier Hainque  <hainque@adacore.com>
4076         Relax constraints on Machine_Attribute argument types:
4077         * sem_prag.adb (Check_Arg_Is_Static_Expression): Allow for
4078         missing type.
4079         (Analyze_Attribute, case Machine_Attribute): Allow any type for arg 3.
4080         * gcc-interface/decl.c (prepend_attributes): Accept static
4081         expressions of any type as attribute arguments, not only string
4082         literals.
4083         * gnat_rm.texi (pragma Machine_Attribute section): Adjust to reflect
4084         the relaxation of the restriction on the Info argument type.
4085         
4086 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
4088         * gcc-interface/utils.c (record_builtin_type): Pass location
4089         argument to build_decl.
4090         (create_type_stub_decl): Same.
4091         (create_type_decl): Same.
4092         (create_var_decl_1): Same.
4093         (create_field_decl): Same.
4094         (create_param_decl): Same.
4095         (create_label_decl): Same.
4096         (create_subprog_decl): Same.
4097         * gcc-interface/decl.c (gnat_to_gnu_entity): Same.
4098         * gcc-interface/trans.c (Case_Statement_to_gnu): Pass location
4099         argument to create_artificial_label.
4100         (Loop_Statement_to_gnu): Same.
4101         (Subprogram_Body_to_gnu): Same.
4102         (gnat_gimplify_stmt): Same.
4104 2009-06-11  Richard Henderson  <rth@redhat.com>
4106         * gcc-interface/misc.c (gnat_handle_option): Rename OPT_gdwarf_ to
4107         OPT_gdwarfplus.
4109 2009-06-11  Ed Schonberg  <schonberg@adacore.com>
4111         * sem_attr.adb (Resolve_Attribute, case 'access): Add missing
4112         accessibiliy check on access_to_subprogram in the context of an
4113         anonymous access that is not an access parameter.
4115 2009-06-11  Eric Botcazou  <ebotcazou@adacore.com>
4117         * tracebak.c (i386 section): Define IS_BAD_PTR on Solaris.
4118         
4119 2009-06-11  Quentin Ochem  <ochem@adacore.com>
4121         * sem_warn.adb, scng.adb, sfn_scan.adb, freeze.adb: Add CODEFIX
4122         comments for message handled by GPS.
4124 2009-06-11  Matthew Gingell  <gingell@adacore.com>
4126         * adaint.c: Use fopen64 instead of fopen on platforms where we know
4127         it's supported.
4129 2009-06-11  Pascal Obry  <obry@adacore.com>
4131         * g-cgi.ads: Fix comment typo.
4133         * g-cgi.adb: Properly decode "+" in CGI parameters as spaces.
4135 2009-06-10  Eric Botcazou  <ebotcazou@adacore.com>
4137         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Use
4138         a reference to the original type for the type of the field of the
4139         XVS type.
4140         (maybe_pad_type): Likewise.
4142         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Factor
4143         common predicate and remove redundant setting of TYPE_BY_REFERENCE_P.
4144         Pass correctly typed arguments to create_field_decl.
4145         <E_Record_Subtype>: Set BLKmode for tagged and limited types in the
4146         case of contrained discriminants as well.  Use the padded base type
4147         in the other case as well.  Rename temporary variable.  Tweak test.
4148         Factor common access pattern.  Set GNU_SIZE only once.
4150 2009-06-09  Olivier Hainque  <hainque@adacore.com>
4152         * gcc-interface/utils2.c (build_call_alloc_dealloc_proc): New
4153         helper for build_call_alloc_dealloc with arguments to be interpreted
4154         identically.  Process the case where a GNAT_PROC to call is provided.
4155         (maybe_wrap_malloc): New helper for build_call_alloc_dealloc, to build
4156         and return an allocator for DATA_SIZE bytes aimed at containing a
4157         DATA_TYPE object, using the default __gnat_malloc allocator.  Honor
4158         DATA_TYPE alignments greater than what the latter offers.
4159         (maybe_wrap_free): New helper for build_call_alloc_dealloc, to
4160         release a DATA_TYPE object designated by DATA_PTR using the
4161         __gnat_free entry point.
4162         (build_call_alloc_dealloc): Expect object data type instead of naked
4163         alignment constraint. Use the new helpers.
4164         (build_allocator): Remove special processing for the super-aligned
4165         case, now handled by build_call_alloc_dealloc.  Pass data
4166         type instead of the former alignment argument, as expected by the new
4167         interface.
4168         * gcc-interface/gigi.h (build_call_alloc_dealloc): Adjust prototype
4169         and comment.
4170         * gcc-interface/trans.c (gnat_to_gnu) <case N_Free_Statement>:
4171         Remove special processing for the super-aligned case, now handled
4172         by build_call_alloc_dealloc.  Pass data type instead of the former
4173         alignment argument, as expected by the new interface.
4174         
4175 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
4177         * lib-writ.adb (flag_compare_debug): Import.
4178         (Write_ALI): Skip during -fcompare-debug-second.
4180 2009-06-03  Eric Botcazou  <ebotcazou@adacore.com>
4182         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
4183         adjusting the discriminant nodes in an extension, use the full view
4184         of the parent subtype if it is of a private kind.
4186 2009-06-03  Eric Botcazou  <ebotcazou@adacore.com>
4188         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Add the
4189         _Parent field, if any, to the record before adding the other fields.
4190         <E_Record_Subtype>: Put the _Controller field before the other fields
4191         except for the _Tag or _Parent fields.
4192         (components_to_record): Likewise.  Retrieve the _Parent field from the
4193         record type.
4195 2009-06-03  Eric Botcazou  <ebotcazou@adacore.com>
4197         * gcc-interface/decl.c (substitution_list): Rename to build_subst_list,
4198         remove unused parameter and simplify.
4199         (gnat_to_gnu_entity) <E_Record_Type>: Do not set TYPE_FIELDS.  Factor
4200         common predicate.  Rewrite loop for clarity.  Use GNU_TYPE directly
4201         as context for all discriminants.  Fix formatting nits.
4202         <E_Record_Subtype>: Add cosmetic 'break'.  Test Has_Discriminants
4203         before Discriminant_Constraint.  Adjust for above renaming.  Do not
4204         set GNU_TYPE more than once.
4205         (elaborate_entity): Test Has_Discriminants on the entity and use
4206         Implementation_Base_Type.
4207         (components_to_record): Rename component_list to gnat_component_list.
4208         Retrieve the _Parent field from the list.  Fix nits in comments.
4209         Clarify logic in loop.  Pass correct arguments to create_field_decl.
4211 2009-06-02  Eric Botcazou  <ebotcazou@adacore.com>
4213         * gcc-interface/Make-lang.in: Fix formatting.
4215 2009-06-01  Olivier Hainque  <hainque@adacore.com>
4216             Eric Botcazou  <ebotcazou@adacore.com>
4217         
4218         * gcc-interface/utils.c (convert) <CONSTRUCTOR case>: When converting
4219         to the packable version of the type, clear TREE_STATIC/TREE_CONSTANT
4220         on the result if at least one of the input fields couldn't be output
4221         as a static constant any more.
4223 2009-06-01  Olivier Hainque  <hainque@adacore.com>
4224             Eric Botcazou  <ebotcazou@adacore.com>
4225         
4226         * gcc-interface/utils2.c (gnat_build_constructor): Factor
4227         out code.  Use initializer_constant_valid_for_bitfield_p and
4228         CONSTRUCTOR_BITFIELD_P for bit-fields.
4230 2009-05-26  Ian Lance Taylor  <iant@google.com>
4232         * gcc-interface/Makefile.in (COMPILER): Define.
4233         (COMPILER_FLAGS, ALL_COMPILERFLAGS): Define.
4234         (.c.o, cio.o, init.o, initialize.o, targext.o): Use $(COMPILER).
4235         (seh_init.o, tracebak.o): Likewise.
4236         * gcc-interface/Make-lang.in (ada/targext.o): Likewise.
4237         (ada/cio.o, ada/init.o, ada/initialize.o, ada/raise.o): Likewise.
4238         (ada/tracebak.o, ada/cuintp.o, ada/decl.o, ada/misc.o): Likewise.
4239         (ada/targtyps.o, ada/trans.o, ada/utils.o): Likewise.
4240         (ada/utils2.o): Likewise.
4242 2009-05-24  Olivier Hainque  <hainque@adacore.com>
4244         * switch.adb (Is_Internal_GCC_Switch, Switch_Last): Bodies of ...
4245         * switch.ads (Is_Internal_GCC_Switch, Switch_Last): New functions.
4246         Add -auxbase variants to the list of recognized internal switches.
4247         * back_end.adb (Scan_Back_End_Switches): Use the new functions and
4248         adjust comments.
4249         * lib.ads: Make comment on internal GCC switches more general.
4250         * gcc-interface/lang-specs.h (specs for Ada): Pass -auxbase variants
4251         as for C.       
4252         
4253 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
4255         * gcc-interface/misc.c (gnat_get_subrange_bounds): Fix thinko.
4257 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
4259         * gcc-interface/decl.c (set_rm_size): Bypass the check for packed array
4260         types.
4262 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
4264         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not modify the
4265         original type because of the alignment when there is an address clause.
4267 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
4269         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: When
4270         discriminants affect the shape of the subtype, retrieve the GCC type
4271         directly from the original field if the GNAT types for the field and
4272         the original field are the same.
4274 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
4276         * gcc-interface/ada-tree.h (TYPE_GCC_MIN_VALUE, TYPE_GCC_MAX_VALUE):
4277         New macros.
4278         (TYPE_RM_VALUES): Likewise.
4279         (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUES.
4280         (SET_TYPE_RM_SIZE): New macro.
4281         (TYPE_RM_MIN_VALUE, TYPE_RM_MAX_VALUE): Likewise.
4282         (SET_TYPE_RM_SIZE, SET_TYPE_RM_MAX_VALUE): Likewise.
4283         (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Redefine.
4284         * gcc-interface/gigi.h (create_range_type): Declare.
4285         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>
4286         Use SET_TYPE_RM_MAX_VALUE to set the upper bound on the UMT type.
4287         <E_Signed_Integer_Subtype>: Build a regular integer type first and
4288         then set the RM bounds.  Use SET_TYPE_RM_SIZE to set the RM size.
4289         <E_Floating_Point_Subtype>: Build a regular floating-point type first
4290         and then set the RM bounds.
4291         <E_Array_Type>: Use create_range_type instead of build_range_type.
4292         <E_Array_Subtype>: Build a regular integer type first and then set
4293         the RM bounds for the extra subtype.
4294         <E_String_Literal_Subtype>: Use create_range_type instead of
4295         build_range_type.
4296         <all>: Set the RM bounds for enumeration types and the GCC bounds for
4297         floating-point types.
4298         (set_rm_size): Use SET_TYPE_RM_SIZE to set the RM size.
4299         (make_type_from_size) <INTEGER_TYPE>: Use SET_TYPE_RM_{MIN,MAX}_VALUE
4300         to set the bounds.  Use SET_TYPE_RM_SIZE to set the RM size.
4301         (substitute_in_type) <INTEGER_TYPE>: Deal with GCC bounds for domain
4302         types and with RM bounds for subtypes.
4303         * gcc-interface/misc.c (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
4304         (gnat_print_type) <REAL_TYPE>: New case.
4305         <ENUMERAL_TYPE>: Fall through to above case.
4306         (gnat_get_subrange_bounds): New function.
4307         * gcc-interface/trans.c (add_decl_expr): Mark the trees rooted as
4308         TYPE_RM_MIN_VALUE and TYPE_RM_MAX_VALUE, if any.
4309         * gcc-interface/utils.c (gnat_init_decl_processing): Use precision 8
4310         for booleans.  Adjust and use SET_TYPE_RM_SIZE to set the RM size.
4311         (create_range_type): New function.
4312         (create_param_decl): Build a regular integer type first and then set
4313         the RM bounds for the extra subtype.
4314         (unchecked_convert): Remove kludge for 'Valid.
4315         * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Convert
4316         the index to sizetype instead of TYPE_DOMAIN.
4318 2009-05-14  Eric Botcazou  <ebotcazou@adacore.com>
4320         * gcc-interface/decl.c (elaborate_expression_1): Remove GNAT_EXPR
4321         parameter and move check for static expression to...
4322         (elaborate_expression): ...here.  Adjust call to above function.
4323         (gnat_to_gnu_entity): Likewise for all calls.  Use correct arguments
4324         in calls to elaborate_expression.
4325         (elaborate_entity): Likewise.
4326         (substitution_list): Likewise.
4327         (maybe_variable): Fix formatting.
4328         (substitute_in_type) <REAL_TYPE>: Merge with INTEGER_TYPE case and add
4329         missing guard.
4330         * gcc-interface/trans.c (protect_multiple_eval): Minor cleanup.
4332 2009-05-07  Arnaud Charlet  <charlet@adacore.com>
4334         * gcc-interface/Make-lang.in: Update dependencies.
4336 2009-05-06  Laurent GUERBY  <laurent@guerby.net>
4338         * s-linux.ads, s-linux-alpha.ads, s-linux-hppa.ads, osinte-linux.ads:
4339         Define sa_handler_pos.
4340         * s-osinte-linux.ads: Use it.
4341         * s-linux-mipsel.ads: New.
4342         * system-linux-mips64el.ads: New.
4343         * gcc-interface/Makefile.in: Multilib handling for mipsel-linux and
4344         mips64el-linux.
4346 2009-05-06  Arnaud Charlet  <charlet@adacore.com>
4348         * exp_ch5.adb, exp_util.adb, exp_attr.adb, sem_util.adb, sem_res.adb,
4349         targparm.adb, targparm.ads, exp_ch4.adb, exp_ch6.adb, exp_disp.adb,
4350         opt.ads, exp_aggr.adb, exp_intr.adb, sem_disp.adb, exp_ch3.adb
4351         (Tagged_Type_Expansion): New flag.
4352         Replace use of VM_Target related to tagged types expansion by
4353         Tagged_Type_Expansion, since tagged type expansion is not necessarily
4354         linked to VM targets.
4356 2009-05-06  Robert Dewar  <dewar@adacore.com>
4358         * sem_attr.adb: Add processing for Standard'Compiler_Version
4360         * sinput.adb (Expr_Last_Char): Fix some copy-paste errors for paren
4361         skipping.
4362         (Expr_First_Char): Add ??? comment that paren skipping needs work
4363         (Expr_Last_Char): Add ??? comment that paren skipping needs work
4365         * exp_attr.adb: Add processing for Compiler_Version
4367         * sem_attr.adb: New attribute Compiler_Version
4369         * snames.ads-tmpl: Add entries for Compiler_Version attribute
4371         * gnat_rm.texi: Document Compiler_Version attribute
4373 2009-05-06  Robert Dewar  <dewar@adacore.com>
4375         * errout.adb: Minor reformatting
4377         * scng.adb, sem_prag.adb, par-ch4.adb, sem_res.adb, par-ch6.adb,
4378         sem_ch6.adb, par-prag.adb, sem_ch8.adb, sem_warn.adb, par-util.adb,
4379         styleg.adb: Add stylized comments to error messages that are included
4380         in the codefix circuitry of IDE's such as GPS.
4382 2009-05-06  Sergey Rybin  <rybin@adacore.com>
4384         * gnat_ugn.texi: For Misnamed_Identifiers rule all description of the
4385         new form of the rule parameter that allows to specify the suffix for
4386         access-to-access type names.
4388 2009-05-06  Robert Dewar  <dewar@adacore.com>
4390         * sem_warn.adb (Warn_On_Useless_Assignment): Avoid false negative for
4391         out parameter assigned when exception handlers are present.
4393         * sem_ch5.adb (Analyze_Exit_Statement): Kill current value last
4394         assignments on exit.
4396         * par-ch9.adb, sem_aggr.adb, par-endh.adb, sem_res.adb, par-ch6.adb,
4397         sinput-l.adb, par-load.adb, errout.ads, sem_ch4.adb, lib-load.adb,
4398         prj-dect.adb, par-ch12.adb, sem_ch8.adb, par-util.adb, par-ch3.adb,
4399         par-tchk.adb, par-ch5.adb: This patch adds stylized comments to error
4400         messages that are included in the codefix circuitry of IDE's such as
4401         GPS.
4403         * sinput.ads, sinput.adb (Expr_First_Char): New function
4404         (Expr_Last_Char): New function
4406 2009-05-06  Sergey Rybin  <rybin@adacore.com>
4408         * gnat_ugn.texi: Add subsection for Exits_From_Conditional_Loops rule
4409         Add formal definition for extra exit point metric
4411 2009-05-06  Pascal Obry  <obry@adacore.com>
4413         * adaint.c: Support for setting attributes on unicode filename on
4414         Windows.
4416 2009-05-06  Robert Dewar  <dewar@adacore.com>
4418         * sem_warn.adb: Minor reformatting
4420 2009-05-06  Javier Miranda  <miranda@adacore.com>
4422         * sem_prag.adb (Process_Import_Or_Interface): Imported CPP types must
4423         not have discriminants or components with default expressions.
4424         (Analyze_Pragma): For pragma CPP_Class check that imported types
4425         have no discriminants and components have no default expression.
4427         * sem_aggr.adb (Resolve_Aggr_Expr): Add missing check on wrong use of
4428         class-wide types in the expression of a record component association.
4430 2009-05-06  Sergey Rybin  <rybin@adacore.com>
4432         * vms_data.ads: Add qualifier for gnatmetric extra exit points metric
4434         * gnat_ugn.texi: Add description for the new extra exit points metric
4435         (gnatmetric section).
4437 2009-05-06  Robert Dewar  <dewar@adacore.com>
4439         * s-fileio.adb: Minor comment update
4441         * sem_ch8.adb: Minor reformatting
4443         * exp_ch3.adb: Update comments.
4445 2009-05-06  Tristan Gingold  <gingold@adacore.com>
4447         * init.c, s-osinte-darwin.ads: Reduce alternate stack size
4449 2009-05-06  Arnaud Charlet  <charlet@adacore.com>
4451         * gcc-interface/Makefile.in: Update LIBGNAT_TARGET_PAIRS for Xenomai.
4452         Fix missing unit for rtp-smp runtime on both ppc and x86 vxworks
4454         * gcc-interface/Make-lang.in: Update dependencies
4456 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
4458         * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Revert previous
4459         change. The context clause of a generic instance declaration must be
4460         preserved until the end of the compilation, because it may have to be
4461         installed/removed repeatedly.
4462         The latest change to sem.adb ensures that the context of both spec and
4463         body of an instance is traversed before the instance itself, making
4464         this patch redundant.
4466 2009-05-06  Gary Dismukes  <dismukes@adacore.com>
4468         * sem_aggr.adb: Fix typo.
4470 2009-05-06  Thomas Quinot  <quinot@adacore.com>
4472         * exp_ch3.adb (Expand_N_Object_Declaration): For a controlled object
4473         declaration, do not adjust if the declaration is to be rewritten into
4474         a renaming.
4476 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
4478         * sem_ch8.adb (Find_Type): Reject the use of a task type in its own
4479         discriminant part.
4481 2009-05-06  Bob Duff  <duff@adacore.com>
4483         * s-fileio.adb (File_IO_Clean_Up_Type): Make this type limited, since
4484         otherwise the compiler would be allowed to optimize away the cleanup
4485         code.
4487 2009-05-06  Gary Dismukes  <dismukes@adacore.com>
4489         * gnat_ugn.texi: Fix typo.
4491 2009-05-06  Thomas Quinot  <quinot@adacore.com>
4493         * g-debuti.adb: Minor reformatting
4495         * exp_attr.adb: Minor reformatting
4497 2009-05-06  Robert Dewar  <dewar@adacore.com>
4499         * sem_aggr.adb: Minor reformatting.
4501         * g-socthi-vms.adb: Minor reformatting
4503 2009-05-06  Bob Duff  <duff@adacore.com>
4505         * g-table.ads, g-table.adb, g-dyntab.ads, g-dyntab.adb:
4506         (Append_All): Add Append_All to g-table and g-dyntab, similar to table.
4508 2009-05-06  Bob Duff  <duff@adacore.com>
4510         * gnat_ugn.texi, gnat_rm.texi: Add missing documentation for warnings
4511         flags.
4513 2009-05-06  Javier Miranda  <miranda@adacore.com>
4515         * sem_aggr.adb (Valid_Ancestor_Type): Add support for C++ constructors.
4516         (Resolve_Extension_Aggregate): Do not reject C++ constructors in
4517         extension aggregates.
4518         (Resolve_Record_Aggregate): Add support for C++ constructors in
4519         extension aggregates.
4521         * exp_aggr.adb (Build_Record_Aggr_Code): Add support for C++
4522         constructors in extension aggregates.
4524 2009-05-06  Robert Dewar  <dewar@adacore.com>
4526         * freeze.adb (Freeze_Record_Type): Improve error msg for bad size
4527         clause.
4529 2009-05-06  Thomas Quinot  <quinot@adacore.com>
4531         * g-socthi-vms.adb (C_Recvmsg, C_Sendmsg): Convert Msg to appropriate
4532         packed type, since on OpenVMS, struct msghdr is packed.
4534 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
4536         * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
4537         call returning an unconstrained composite value, create the proper
4538         subtype for it, as is done for object dclarations with unconstrained
4539         nominal subtypes. Perform this transformation regarless of whether
4540         call comes from source.
4542 2009-05-06  Robert Dewar  <dewar@adacore.com>
4544         * freeze.adb (Freeze_Record_Type): Implement Implicit_Packing for
4545         records
4547         * gnat_rm.texi:
4548         Add documentation for pragma Implicit_Packing applied to record
4549         types.
4551 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
4553         * sem.adb (Walk_Library_Items): Place all with_clauses of an
4554         instantiation on the spec, because late instance bodies may generate
4555         with_clauses for the instance body but are inserted in the instance
4556         spec.
4558 2009-05-06  Emmanuel Briot  <briot@adacore.com>
4560         * prj-nmsc.adb (Locate_Directory): Remove unused parameters, and add
4561         support for returning the directory even if it doesn't exist. This is
4562         used for the object directory, since we are always setting it to a
4563         non-null value, and we should set it to an absolute name rather than a
4564         relative name for the sake of external tools that might depend on it.
4565         (Check_Library_Attributes): When Project.Library_Dir is known, check
4566         that the directory exists.
4568 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
4570         * sem_attr.adb (Check_Dereference): If the prefix of an attribute
4571         reference is an implicit dereference, do not freeze the designated type
4572         if within a default expression or when preanalyzing a pre/postcondtion.
4574 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
4576         * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
4577         call returning an unconstrained composite value, create the proper
4578         subtype for it, as is done for object dclarations with unconstrained
4579         nominal subtypes
4581 2009-05-06  Robert Dewar  <dewar@adacore.com>
4583         * sem_ch13.adb (Check_Constant_Address_Clause): Minor error message
4584         improvements
4586         * freeze.adb: Minor reformatting
4588 2009-05-06  Thomas Quinot  <quinot@adacore.com>
4590         * sem_ch3.adb (Access_Type_Declaration): An access type whose
4591         designated type is a limited view from a limited with clause (flagged
4592         From_With_Type) is not itself such a limited view.
4594 2009-05-06  Emmanuel Briot  <briot@adacore.com>
4596         * prj-nmsc.adb: Remove unused variable.
4598         * clean.adb, gnatcmd.adb, makeutl.ads, prj-pars.adb, prj-pars.ads,
4599         prj-proc.ads, prj.ads, switch-m.adb (Subdirs_Option): Moved to
4600         makeutl.ads, since not all users of prj.ads need this.
4602 2009-05-06  Javier Miranda  <miranda@adacore.com>
4604         * exp_aggr.adb (Build_Record_Aggr_Code): Add implicit call to the C++
4605         constructor in case of aggregates whose type is a CPP_Class type.
4607 2009-05-06  Robert Dewar  <dewar@adacore.com>
4609         * sem_ch13.adb: Minor comment additions
4611         * osint.adb: Minor reformatting
4613 2009-05-06  Pascal Obry  <obry@adacore.com>
4615         * initialize.c: On Windows, keep full pathname to expanded command
4616         line patterns.
4618 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
4620         * sem_aggr.adb (Resolve_Record_Aggregate): If a defaulted component of
4621         an aggregate with box default is of a discriminated private type, do
4622         not build a subaggregate for it.
4623         A proper call to the initialization procedure is generated for it.
4625 2009-05-06  Thomas Quinot  <quinot@adacore.com>
4627         * rtsfind.adb, rtsfind.ads, exp_dist.adb, exp_dist.ads
4628         (Exp_Dist.Build_TC_Call, Build_From_Any_Call, Build_To_Any_Call):
4629         Use PolyORB strings to represent Ada.Strings.Unbounded_String value;
4630         use standard array code for Standard.String.
4631         (Exp_Dist): Bump PolyORB s-parint API version to 3.
4632         (Rtsfind): New entities TA_Std_String, Unbounded_String.
4634 2009-05-06  Robert Dewar  <dewar@adacore.com>
4636         * g-comlin.ads: Minor reformatting
4638         * xoscons.adb: Minor reformatting
4640 2009-05-06  Gary Dismukes  <dismukes@adacore.com>
4642         * sem_aggr.adb (Resolve_Record_Aggregate): In step 5, get the
4643         Underlying_Type before retrieving the type definition for gathering
4644         components, to account for the case where the type is private.
4646 2009-05-06  Tristan Gingold  <gingold@adacore.com>
4648         * g-comlin.ads: Fix minor typos (Getopt instead of Get_Opt).
4650 2009-05-06  Thomas Quinot  <quinot@adacore.com>
4652         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
4653         g-socthi-vxworks.ads, g-socthi-mingw.adb g-socthi-mingw.ads,
4654         g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb
4655         (GNAT.Sockets.Thin.C_Sendmsg, GNAT.Sockets.Thin.C_Recvmsg,
4656         Windows versions): Fix incorrect base
4657         address of Iovec (it's Msg_Iov, not Msg_Iov'Address).
4658         (GNAT.Sockets.Thin.C_Sendto, GNAT.Sockets.Thin.C_Recvfrom): Use a
4659         System.Address for the To parameter instead of a Sockaddr_In_Access, to
4660         achieve independance from AF_INET family, and also to allow this
4661         parameter to be retrieved from a Msghdr for the Windows case where
4662         these routines are used to implement C_Sendmsg and C_Recvmsg.
4664 2009-05-06  Bob Duff  <duff@adacore.com>
4666         * g-expect.adb, g-expect.ads: Minor reformatting
4668         * sdefault.ads: Minor comment fix
4670         * g-expect-vms.adb: Minor reformatting
4672         * table.ads, table.adb (Append_All): New convenience procedure for
4673         appending a whole array.
4675         * comperr.adb (Compiler_Abort): Mention the -gnatd.n switch in the bug
4676         box message. Call Osint.Dump_Source_File_Names to print out the file
4677         list, instead of rummaging around in various data structures.
4679         * debug.adb: New switch -gnatd.n, to print source file names as they
4680         are read.
4682         * alloc.ads: Add parameters for Osint.File_Name_Chars.
4684         * osint.ads, osint.adb (Dump_Source_File_Names): New procedure to print
4685         out source file names during a "bug box".
4686         (Include_Dir_Default_Prefix): Use memo-izing to avoid repeated new/free.
4687         (Read_Source_File): Print out the file name, if requested via -gnatd.n.
4688         If it's not part of the runtimes, store it for later printing by
4689         Dump_Source_File_Names.
4691 2009-05-06  Javier Miranda  <miranda@adacore.com>
4693         * gnat_rm.texi (CPP_Constructor): Avoid duplication of the
4694         documentation and add reference to the GNAT user guide for further
4695         details.
4697 2009-05-06  Javier Miranda  <miranda@adacore.com>
4699         * gnat_ugn.texi: Complete documentation for CPP_Constructor and remove
4700         also wrong examples that use extension aggregates.
4702 2009-05-06  Albert Lee  <lee@adacore.com>
4704         * s-oscons-tmplt.c (System.OS_Constants): Do not use special definition
4705         of Msg_Iovlen_T for VMS.
4707 2009-05-04   Laurent GUERBY  <laurent@guerby.net>
4709         PR ada/38874
4710         * make.adb (Scan_Make_Arg): Pass --param= to compiler and linker.
4711         
4712 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
4714         * sem_ch8.adb (Analyze_Subprogram_Renaming): Improve error message on
4715         box-defaulted operator in an instantiation, when the type of the
4716         operands is not directly visible.
4718 2009-04-29  Gary Dismukes  <dismukes@adacore.com>
4720         * sem_aggr.adb (Valid_Limited_Ancestor): Undo previous change.
4721         (Resolve_Extension_Aggregate): Call Check_Parameterless_Call after the
4722         analysis of the ancestor part. Remove prohibition against limited
4723         interpretations of the ancestor expression in the case of Ada 2005.
4724         Revise error message in overloaded case, adding a message to cover
4725         the Ada 2005 case.
4727 2009-04-29  Thomas Quinot  <quinot@adacore.com>
4729         * xoscons.adb: Minor reformatting
4731 2009-04-29  Bob Duff  <duff@adacore.com>
4733         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Do not ignore
4734         attribute_definition_clauses for the following attributes when the
4735         -gnatI switch is used: External_Tag, Input, Output, Read, Storage_Pool,
4736         Storage_Size, Write. Otherwise, we get spurious errors (for example,
4737         missing Read attribute on remote types).
4739         * gnat_ugn.texi: Document the change, and add a stern warning.
4741 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
4743         * sem_attr.adb (Check_Local_Access): Indicate that value tracing is
4744         disabled not just for the current scope, but for the innermost dynamic
4745         scope as well.
4747 2009-04-29  Arnaud Charlet  <charlet@adacore.com>
4749         * gcc-interface/Make-lang.in: Update dependencies
4751 2009-04-29  Vincent Celier  <celier@adacore.com>
4753         * prj-part.adb: Minor comment update
4755 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
4757         * sem_aggr.adb (Resolve_Record_Aggregate): handle properly
4758         box-initialized records with discriminated subcomponents that are
4759         constrained by discriminants of enclosing components. New subsidiary
4760         procedures Add_Discriminant_Values, Propagate_Discriminants.
4762 2009-04-29  Arnaud Charlet  <charlet@adacore.com>
4764         * g-socket.adb: Code clean up.
4766 2009-04-29  Gary Dismukes  <dismukes@adacore.com>
4768         * sem_aggr.adb (Valid_Limited_Ancestor): Add test for the name of a
4769         function entity, to cover the case of a parameterless function call
4770         that has not been resolved.
4772 2009-04-29  Robert Dewar  <dewar@adacore.com>
4774         * err_vars.ads, prj-part.adb, scans.ads, exp_tss.adb: Minor
4775         reformatting and comment updates.
4777 2009-04-29  Arnaud Charlet  <charlet@adacore.com>
4779         * gnat_ugn.texi: Update some documentation about interfacing with C++
4780         Mention -fkeep-inline-functions.
4782         * gnat_ugn.texi: Minor edits
4784 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
4786         * sem_aggr.adb (Resolve_Record_Aggregate): When building an aggregate
4787         for a defaulted component of an enclosing aggregate, inherit the type
4788         from the component declaration of the enclosing type. 
4790 2009-04-29  Albert Lee  <lee@adacore.com>
4792         * g-socthi-vms.ads, g-socthi-vxworks.ads, s-oscons-tmplt.c,
4793         g-socthi-mingw.ads, g-socthi.ads, g-socket.adb, g-sothco.ads
4794         (System.OS_Constants): New type Msg_Iovlen_T which follows whether the
4795         msg_iovlen field in struct msghdr is 32 or 64 bits wide.
4796         Relocate the Msghdr record type from GNAT.Sockets.Thin to
4797         GNAT.Sockets.Common, and use System.OS_Constants.Msg_Iovlen_T as the
4798         type for the Msg_Iovlen field.
4800 2009-04-29  Vincent Celier  <celier@adacore.com>
4802         * sinput-l.adb (Load_File): When preprocessing, set temporarily the
4803         Source_File_Index_Table entries for the source, to avoid crash when
4804         reporting an error.
4806         * gnatcmd.adb (Test_If_Relative_Path): Use
4807         Makeutl.Test_If_Relative_Path.
4808         
4809         * makeutl.adb:(Test_If_Relative_Path): Process switches --RTS= only if
4810         Including_RTS is True.
4812         * makeutl.ads (Test_If_Relative_Path): New Boolean parameter
4813         Including_RTS defaulted to False.
4815         * sinput.ads, scans.ads, err_vars.ads: Initialize some variables with
4816         a default value.
4818 2009-04-29  Javier Miranda  <miranda@adacore.com>
4820         * gnat_ugn.texi: Adding documentation for non-default C++ constructors.
4822 2009-04-29  Javier Miranda  <miranda@adacore.com>
4824         * sem_ch3.adb (Analyze_Object_Declaration): Disable error message
4825         associated with dyamically tagged expressions if the expression
4826         initializing a tagged type corresponds with a non default CPP
4827         constructor.
4828         (OK_For_Limited_Init): CPP constructor calls are OK for initialization
4829         of limited type objects.
4831         * sem_ch5.adb (Analyze_Assignment): Improve the error message reported
4832         when a CPP constructor is called in an assignment. Disable also the
4833         error message associated with dyamically tagged expressions if the
4834         exporession initializing a tagged type corresponds with a non default
4835         CPP constructor.
4837         * sem_prag.adb (Analyze_Pragma): Remove code disabling the use of
4838         non-default C++ constructors.
4840         * sem_util.ads, sem_util.adb (Is_CPP_Constructor_Call): New subprogram.
4842         * exp_tss.ads, exp_tss.adb (Base_Init_Proc): Add support for
4843         non-default constructors.
4844         (Init_Proc): Add support for non-default constructors.
4846         * exp_disp.adb (Set_Default_Constructor): Removed.
4847         (Set_CPP_Constructors): Code based in removed Set_Default_Constructor
4848         but extending its functionality to handle non-default constructors.
4850         * exp_aggr.adb (Build_Record_Aggr_Code): Add support for non-default
4851         constructors. Minor code cleanup removing unrequired label and goto
4852         statement.
4854         * exp_ch3.adb (Build_Initialization_Call): Add support for non-default
4855         constructors.
4856         (Build_Init_Statements): Add support for non-default constructors.
4857         (Expand_N_Object_Declaration): Add support for non-default constructors.
4858         (Freeze_Record_Type): Replace call to Set_Default_Constructor by call
4859         to Set_CPP_Constructors.
4861         * exp_ch5.adb (Expand_N_Assignment_Statement): Add support for
4862         non-default constructors.
4863         Required to handle its use in build-in-place statements.
4865         * gnat_rm.texi (CPP_Constructor): Document new extended use of this
4866         pragma for non-default C++ constructors and the new compiler support
4867         that allows the use of these constructors in record components, limited
4868         aggregates, and extended return statements.
4870 2009-04-29  Vincent Celier  <celier@adacore.com>
4872         * prj-part.adb (Parse_Single_Project): Do not attempt to find a
4873         project extending an abstract project.
4875 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
4877         * targparm.ads: Fix oversight.
4879 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
4881         * lib-xref.adb (Output_Overridden_Op): Follow several levels of
4882         derivation when necessary, to find the user-subprogram that is actally
4883         being overridden.
4885 2009-04-29  Robert Dewar  <dewar@adacore.com>
4887         * sem_util.adb (May_Be_Lvalue): Fix cases involving indexed/selected
4888         components
4890 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
4892         * exp_ch9.ads, exp_ch9.adb (Build_Wrapper_Spec): Use source line of
4893         primitive operation, rather than source line of synchronized type, when
4894         building the wrapper for a primitive operation that overrides an
4895         operation inherited from a progenitor, to improve the error message on
4896         duplicate declarations.
4898         * sem_ch3.adb (Process_Full_View): Use new signature of
4899         Build_Wrapper_Spec.
4901 2009-04-29  Robert Dewar  <dewar@adacore.com>
4903         * prj-nmsc.ads: Minor reformatting
4905 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
4907         * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of the
4908         expression on the existing parent If statement.
4910 2009-04-29  Robert Dewar  <dewar@adacore.com>
4912         * prj-proc.adb, prj.ads: Minor reformatting
4914 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
4916         * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of an
4917         existing parent If statement on the newly created one.
4919 2009-04-29  Emmanuel Briot  <briot@adacore.com>
4921         * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
4922         prj-part.ads, prj.adb, prj.ads, clean.adb, prj-dect.adb, prj-dect.ads,
4923         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads, prj-makr.adb
4924         (Set_In_Configuration, In_Configuration): Removed.
4925         Replaced by an extra parameter Is_Config_File in several parameter to
4926         avoid global variables to store the state of the parser.
4928 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
4930         * sinfo.ads, sinfo.adb: New attribute Next_Implicit_With, to chain
4931         with_clauses generated for the same unit through rtsfind, and that
4932         appear in the context of different units.
4934         * rtsfind.adb: New attribute First_Implicit_With, component of the
4935         Unit_Record that stores information about a unit loaded through rtsfind.
4937 2009-04-29  Gary Dismukes  <dismukes@adacore.com>
4939         * exp_ch3.adb (Stream_Operation_OK): Return True for limited interfaces
4940         (other conditions permitting), so that abstract stream subprograms will
4941         be declared for them.
4943 2009-04-29  Bob Duff  <duff@adacore.com>
4945         * g-expect.adb (Expect_Internal): Fix check for overfull buffer.
4947         * g-expect.ads: Minor comment fixes.
4949 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
4951         * freeze.adb, lib-xref.adb (Check_Dispatching_Operation): if the
4952         dispatching operation is a body without previous spec, update the list
4953         of primitive operations to ensure that cross-reference information is
4954         up-to-date.
4956 2009-04-29  Albert Lee  <lee@adacore.com>
4958         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
4959         g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
4960         g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads
4961         (GNAT.Sockets.Thin.C_Readv,
4962         GNAT.Sockets.Thin.C_Writev): Remove unused subprograms.
4963         (GNAT.Sockets.Thin.C_Recvmsg,
4964         GNAT.Sockets.Thin.C_Sendmsg): New bindings to call recvmsg(2) and
4965         sendmsg(2).  
4966         (GNAT.Sockets.Receive_Vector, GNAT.Sockets.Send_Vector): Use
4967         C_Recvmsg/C_Sendmsg rather than Readv/C_Writev.
4969 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
4971         * sem_disp.adb (Check_Dispatching_Operation): if the dispatching
4972         operation is a body without previous spec, update the list of
4973         primitive operations to ensure that cross-reference information is
4974         up-to-date.
4976         * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): When creating a
4977         new compilation unit node for the instance declaration, keep the
4978         context items of the original unit on it, so that the context of the
4979         instance body only holds the context inherited from the generic body.
4981 2009-04-29  Bob Duff  <duff@adacore.com>
4983         * sem_res.adb: Minor comment fix.
4985 2009-04-29  Thomas Quinot  <quinot@adacore.com>
4987         * sem_elim.adb: Minor reformatting
4989 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
4991         * exp_aggr.adb (Convert_To_Positional): if the current unit is a
4992         predefined unit, allow arbitrary number of components in static
4993         aggregate, to ensure that the same level of constant folding applies
4994         for Ada 95 and Ada 05 versions of the file.
4996 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
4998         * sem_elim.adb (Check_Eliminated): Handle new improved eliminate
4999         information: no need for full scope check.
5000         (Eliminate_Error): Do not emit error in a generic context.
5002 2009-04-29  Ed Falis  <falis@adacore.com>
5004         * adaint.c (__gnat_rmdir): return error code if VTHREADS is defined.
5005         VxWorks 653 POS does not support rmdir.
5007 2009-04-29  Matteo Bordin  <bordin@adacore.com>
5009         * s-stausa.adb, s-stausa.ads: Get_Usage_Range: changing the way
5010         results are printed.
5012 2009-04-29  Arnaud Charlet  <charlet@adacore.com>
5014         * s-taskin.adb (Initialize): Remove pragma Warnings Off and remove
5015         unused assignment.
5017 2009-04-29  Thomas Quinot  <quinot@adacore.com>
5019         * make.adb: Minor reformatting.
5020         Minor code reorganization throughout.
5022 2009-04-29  Matteo Bordin  <bordin@adacore.com>
5024         * s-stausa.ads: Changed visibility of type Task_Result: moved to
5025         public part to give application visibility over it.
5026         This is for future improvement and to build a public API on top of it.
5027         Changed record components name of type Task_Result to reflect the new
5028         way of reporting. 
5030         * s-stausa.adb: Actual_Size_Str changed to reflect the new way of
5031         reporting Stack usage.
5033         * gnat_ugn.texi: Update doc of stack usage report.
5035         * g-tastus.ads, s-stusta.ads, s-stusta.adb: New files.
5037         * Makefile.rtl: Add new run-time files.
5039 2009-04-29  Pascal Obry  <obry@adacore.com>
5041         * initialize.c: Do not expand quoted arguments.
5043 2009-04-29  Emmanuel Briot  <briot@adacore.com>
5045         * prj-ext.adb, prj.adb, prj.ads: Fix memory leaks.
5047         * clean.adb (Ultimate_Extension_Of): removed, since duplicate of
5048          Prj.Ultimate_Extending_Project_Of
5050 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
5052         * exp_ch7.adb (Build_Final_List): If the designated type is a Taft
5053         Amendment type, add the with_clause for Finalization.List_Controller
5054         only if the current context is a package body.
5056 2009-04-29  Thomas Quinot  <quinot@adacore.com>
5058         * sem_ch12.adb: Minor reformatting
5060         * sem_aggr.adb: Minor reformatting
5062         * sem_ch6.adb, sem_cat.ads: Minor reformatting
5064         * sem_ch10.adb, gnat1drv.adb, prj-nmsc.adb: Minor reformatting
5066 2009-04-29  Quentin Ochem  <ochem@adacore.com>
5068         * prj.ads (Source_Id): Now general pointer type.
5070 2009-04-29  Thomas Quinot  <quinot@adacore.com>
5072         * exp_ch7.adb, rtsfind.adb: Minor reformatting
5074         * sem_res.adb: Minor reformatting
5076 2009-04-29  Thomas Quinot  <quinot@adacore.com>
5078         * sem_res.adb (Static_Concatenation): An N_Op_Concat with static
5079         operands is static only if it is a predefined concatenation operator.
5081         * sem_util.adb: Minor reformatting
5083         * sem_ch12.adb (Save_References): When propagating semantic information
5084         from generic copy back to generic template, for the case of an
5085         identifier that has been rewritten to an explicit dereference whose
5086         prefix is either an object name or a parameterless funcion call
5087         denoting a global object or function, properly capture the denoted
5088         global entity: perform the corresponding rewriting in the template,
5089         and point the rewritten identifier to the correct global entity (not
5090         to the associated identifier in the generic copy).
5092 2009-04-29  Robert Dewar  <dewar@adacore.com>
5094         * rtsfind.adb, prj-env.adb: Minor reformatting
5095         Minor code reorganization
5097 2009-04-29  Emmanuel Briot  <briot@adacore.com>
5099         * make.adb: Fix comment
5101         * prj.adb (Ultimate_Extending_Project_Of): Fix handling when no project
5102         is given as argument, as might happen in gnatmake.
5104 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
5106         * sem_ch3.adb (Check_Abstract_Overriding): Improve error message when
5107         an abstract operation of a progenitor is not properly overridden by an
5108         operation of a derived synchronized type.
5110 2009-04-29  Robert Dewar  <dewar@adacore.com>
5112         * mlib-prj.adb, mlib-tgt.adb, mlib-tgt.ads, prj-nmsc.adb,
5113         prj-proc.adb: Minor reformatting
5114         Minor code reorganization
5116 2009-04-29  Bob Duff  <duff@adacore.com>
5118         * exp_ch7.adb (Build_Final_List): For an access type that designates a
5119         Taft Amendment type, if the access type needs finalization, make sure
5120         the implicit with clause for List_Controller occurs on the package spec.
5122         * rtsfind.adb (Text_IO_Kludge): Fine tune the creation of implicit
5123         with's created for the pseudo-children of Text_IO and friends. In
5124         particular, avoid cycles, such as Ada.Wide_Text_IO.Integer_IO and
5125         Ada.Text_IO.Integer_IO both with-ing each other.
5127         * sem.adb (Walk_Library_Items): Suppress assertion failure in certain
5128         oddball cases when pragma Extend_System is used.
5130         * sem_ch12.adb (Get_Associated_Node): Prevent direct 'with' cycles in
5131         the case where a package spec instantiates a generic whose body with's
5132         this package, so Walk_Library_Items won't complain about cyclic with's.
5134 2009-04-29  Emmanuel Briot  <briot@adacore.com>
5136         * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads,
5137         prj-pp.adb, prj-pp.ads, makeutl.adb, clean.adb, prj-nmsc.adb,
5138         mlib-tgt.adb, mlib-tgt.ads, prj-util.adb, prj-env.adb, prj-env.ads
5139         (Project_Id): now a real pointer to Project_Data, instead of an index
5140         into the Projects_Table. This simplifies the API significantly, avoiding
5141         extra lookups in this table and the need to pass the Project_Tree_Ref
5142         parameter in several cases
5144 2009-04-29  Nicolas Setton  <setton@adacore.com>
5146         * gcc-interface/Makefile.in: Produce .dSYM files for shared libs on
5147         darwin.
5149 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
5151         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Put
5152         back kludge.
5154 2009-04-24  Robert Dewar  <dewar@adacore.com>
5156         * mlib-prj.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, make.adb,
5157         clean.adb: Minor reformatting.
5158         Minor code reorganization and message improvement.
5160 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5162         * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-nmsc.ads
5163         (Alternate_Languages): now implemented as a malloc-ed list rather
5164         than through a table.
5166 2009-04-24  Thomas Quinot  <quinot@adacore.com>
5168         * sem_res.adb (Static_Concatenation): Simplify predicate to make it
5169         accurately handle cases such as "lit" & "lit" and
5170         "lit" & static_string_constant
5172 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5174         * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
5175         prj-nmsc.adb, prj-env.adb (Project_List_Table, Project_Element):
5176         removed. Lists of projects are now implemented via standard malloc
5177         rather than through the table.
5179 2009-04-24  Thomas Quinot  <quinot@adacore.com>
5181         * sem_ch12.adb: Minor reformatting
5183         * g-trasym.adb: Minor reformatting
5185         * exp_ch6.adb: Minor reformatting
5187 2009-04-24  Robert Dewar  <dewar@adacore.com>
5189         * layout.adb (Layout_Type): For packed array type, copy unset
5190         size/alignment fields from the referenced Packed_Array_Type.
5192 2009-04-24  Bob Duff  <duff@adacore.com>
5194         * lib-load.adb (Make_Instance_Unit): Revert previous change, no
5195         longer needed after sem_ch12 changes.
5197         * sem.adb (Walk_Library_Items): Include with's in some debugging
5198         printouts.
5200 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5202         * prj.ads, prj-nmsc.adb (Unit_Project): removed, since in fact we were
5203         only ever using the Project field.
5205 2009-04-24  Ed Schonberg  <schonberg@adacore.com>
5207         * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Do not set
5208         Body_Required on the generated compilation node. The new node is linked
5209         to its body, but both share the same file, so we do not set this flag
5210         on the new unit so as not to create a spurious dependency on a
5211         non-existent body in the ali file for the instance.
5213 2009-04-24  Robert Dewar  <dewar@adacore.com>
5215         * make.adb: Minor reformatting
5217 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5219         * prj.adb, prj.ads, prj-nmsc.adb (Check_File, Record_Ada_Source,
5220         Add_Source): merge some code between those. In particular change where
5221         file normalization is done to avoid a few extra calls to
5222         Canonicalize_File_Name. This also removes the need for passing
5223         Current_Dir in a number of subprograms.
5225 2009-04-24  Bob Duff  <duff@adacore.com>
5227         * lib-load.adb (Make_Instance_Unit): In the case where In_Main is
5228         False, assign the correct unit to the Cunit field of the new table
5229         entry. We want the spec unit, not the body unit.
5231         * rtsfind.adb (Make_Unit_Name, Maybe_Add_With): Simplify calling
5232         interface for these.
5233         (Maybe_Add_With): Check whether we're trying to a with on the current
5234         unit, and avoid creating such directly self-referential with clauses.
5235         (Text_IO_Kludge): Add implicit with's for the generic pseudo-children of
5236         [[Wide_]Wide_]Text_IO. These are needed for Walk_Library_Items,
5237         and matches existing comments in the spec.
5239         * sem.adb (Walk_Library_Items): Add various special cases to make the
5240         assertions pass.
5242         * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Use Body_Cunit
5243         instead of Parent (N), for uniformity.
5245 2009-04-24  Robert Dewar  <dewar@adacore.com>
5247         * errout.ads: Minor reformatting
5249 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5251         * gnat_ugn.texi (Library Projects): add documentation on gnatmake's
5252         behavior when the project includes sources from multiple languages
5254 2009-04-24  Vincent Celier  <celier@adacore.com>
5256         * prj.adb (Has_Foreign_Sources): Returns True in Ada_Only mode if there
5257         is a language other than Ada declared.
5259         * makeutl.adb (Linker_Options_Switches): Call For_All_Projects with
5260         Imported_First set to True.
5262 2009-04-24  Ed Schonberg  <schonberg@adacore.com>
5264         * sem_res.adb: additional optimization to inhibit creation of
5265         redundant transient scopes.
5267 2009-04-24  Bob Duff  <duff@adacore.com>
5269         * rtsfind.ads: Minor comment fix
5271 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5273         * prj-proc.adb, prj-nmsc.adb (Find_Ada_Sources,
5274         Get_Path_Name_And_Record_Ada_Sources): merged, since these were
5275         basically doing the same work (for explicit or implicit sources).
5276         (Find_Explicit_Sources): renamed to Find_Sources to better reflect its
5277         role. Rewritten to share some code (testing that all explicit sources
5278         have been found) between ada_only and multi_language modes.
5280 2009-04-24  Jerome Lambourg  <lambourg@adacore.com>
5282         * sem_prag.adb (Check_Form_Of_Interface_Name): Allow space in Ext_Name
5283         for CLI imported types.
5284         (Analyze_Pragma): Allow CIL or Java imported functions returning
5285         access-to-subprogram types.
5287 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5289         * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads:
5290         (Project_Data.Dir_Path): field removed, since it can be computed
5291         directly from .Directory, and is needed only once when processing the
5292         project is buildgpr.adb or make.adb
5294 2009-04-24  Robert Dewar  <dewar@adacore.com>
5296         * prj-env.adb, prj-proc.adb, prj.adb, prj.ads,
5297         rtsfind.adb: Minor reformatting.
5298         Minor code reorganization
5300 2009-04-24  Arnaud Charlet  <charlet@adacore.com>
5302         * mlib-prj.adb: Use friendlier english identifier.
5304         * gnatcmd.adb, make.adb: Use better english identifiers.
5306 2009-04-24  Robert Dewar  <dewar@adacore.com>
5308         * clean.adb: Minor reformatting
5310 2009-04-24  Robert Dewar  <dewar@adacore.com>
5312         * einfo.adb (OK_To_Rename): New flag
5314         * einfo.ads (OK_To_Rename): New flag
5316         * exp_ch3.adb (Expand_N_Object_Declaration): Rewrite as renames if
5317         OK_To_Rename set.
5319         * exp_ch4.adb (Expand_Concatenate): Mark temp variable OK_To_Rename
5321         * sem_ch7.adb (Uninstall_Declarations): Allow for renames from
5322         OK_To_Rename.
5324 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5326         * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, makeutl.adb,
5327         clean.adb, prj-nmsc.adb, prj-env.adb, prj-env.ads (Project_Data.Seen):
5328         field removed. This is not a property of the
5329         project, just a boolean used to traverse the project tree, and storing
5330         it in the structure prevents doing multiple traversal in parallel.
5331         (Project_Data.Checked): also removed, since it was playing the same role
5332         as Seen when we had two nested loops, and this is no longer necessary
5333         (For_All_Imported_Projects): removed, since in fact there was already
5334         the equivalent in For_Every_Project_Imported. The latter was rewritten
5335         to use a local hash table instead of Project_Data.Seen
5336         Various loops were rewritten to use For_Every_Project_Imported, thus
5337         removing the need for Project_Data.Seen. This avoids a lot of code
5338         duplication
5340 2009-04-24  Ed Schonberg  <schonberg@adacore.com>
5342         * sem_res.adb (Resolve_Actuals): Do not create blocks around code
5343         statements, even though the actual of the call is a concatenation,
5344         because the argument is static, and we want to preserve warning
5345         messages  about sequences of code statements that are not marked
5346         volatile.
5348         * sem_warn.adb: remove obsolete comment about warning being obsolete
5350         * s-tasren.adb (Task_Do_Or_Queue): If a timed entry call is being
5351         requeued and the delay has expired while within the accept statement
5352         that executes the requeue, do not perform the requeue and indicate that
5353         the timed call has been aborted.
5355 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5357         * mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
5358         (Has_Ada_Sources, Has_Foreign_Sources): new subprograms
5359         (Project_Data.Ada_Sources_Present, Foreign_Sources_Present): removed,
5360         since they can be computed from the above.
5362 2009-04-24  Vincent Celier  <celier@adacore.com>
5364         * gnatcmd.adb: Call Prj.Env.Initialize with the Project_Tree
5366         * prj-env.adb: Move all global variables to the private part of the
5367         project tree data.
5368         Access these new components instead of the global variables no longer
5369         in existence.
5370         (Add_To_Path): New Project_Tree_Ref parameter, to access the new
5371         components that were previously global variables.
5373         * prj-env.ads (Initialize): New Project_Tree_Ref parameter
5374         (Set_Mapping_File_Initial_State_To_Empty): New Project_Tree_Ref
5375         parameter.
5377         * prj-nmsc.adb (Compute_Unit_Name): New Project_Tree_Ref parameter to
5378         be able to call Set_Mapping_File_Initial_State_To_Empty with it.
5380         * prj.adb (Initialize): Do not call Prj.Env.Initialize
5381         (Reset): Do not call Prj.Env.Initialize. Instead, initialize the new
5382         components in the private part of the project tree data.
5384         * prj.ads (Private_Project_Tree_Data): new components moved from
5385         Prj.Env: Current_Source_Path_File, Current_Object_Path_File,
5386         Ada_Path_Buffer, Ada_Path_Length, Ada_Prj_Include_File_Set,
5387         Ada_Prj_Objects_File_Set, Fill_Mapping_File.
5389 2009-04-24  Vincent Celier  <celier@adacore.com>
5391         * opt.ads (Unchecked_Shared_Lib_Imports): New Boolean flag.
5393         * prj-nmsc.adb (Check_Library): No error for imports by shared library
5394         projects, when --unchecked-shared-lib-imports is used.
5396 2009-04-24  Robert Dewar  <dewar@adacore.com>
5398         * sem_ch7.adb: Minor reformatting
5400 2009-04-24  Tristan Gingold  <gingold@adacore.com>
5402         * s-osinte-darwin.adb, s-osinte-darwin.ads: lwp_self now returns the
5403         mach thread id.
5405 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5407         * prj-env.adb, prj-env.ads (Body_Path_Name_Of, Spec_Path_Name_Of,
5408         Path_Name_Of_Library_Unit_Body): rEmove unused subprograms.
5409         (For_All_Imported_Projects): new procedure
5410         (For_All_Source_Dirs, For_All_Object_Dirs): Rewritten based on the
5411         above rather than duplicating code.
5413 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5415         * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
5416         (Source_Id, Source_Data): use a real list to store sources rather than
5417         using an external table to store the elements. This makes code more
5418         efficient and more readable.
5420 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5422         * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
5423         (Source_Iterator): new type.
5424         This removes the need for having the sources on three different
5425         lists at the project tree, project and language level. They are now
5426         on a single list.
5428 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5430         * gnatcmd.adb, prj.adb, prj.ads: Remove unused entities
5432 2009-04-24  Ed Schonberg  <schonberg@adacore.com>
5434         * sem_warn.adb: Add comment on obsolete warning
5436 2009-04-24  Arnaud Charlet  <charlet@adacore.com>
5438         * s-tassta.adb (Create_Task): Fix violation of locking rule.
5440 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5442         * prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb (Language_Index): renamed
5443         to Language_Ptr to better reflect its new implementation.
5444         (Project_Data.First_Languages_Processing): renamed to Languages now
5445         that the field with that name is no longer used
5446         (Project_Data.Languages): removed, no longer used, and duplicates
5447         information already available through First_Language_Processing.
5448         (Prj.Language_Index): now an actual pointer, instead of an index into
5449         a table. This makes the list somewhat more obvious, but more importantly
5450         removes the need to pass a pointer to the project_tree_data in a few
5451         places, and makes accessing the attributes of a languages more
5452         efficient.
5454 2009-04-24  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5455             Thomas Quinot  <quinot@adacore.com>
5457         * fe.h (Set_Identifier_Casing): Add const to second parameter.
5458         * gcc-interface/misc.c (internal_error_function): Make copy of return
5459         from pp_formatted_text before assigning BUFFER to it.
5460         (gnat_init): Likewise for main_input_filename and gnat_argv.
5461         (gnat_printable_name): Remove cast from call to Set_Identifier_Casing.
5463 2009-04-24  Eric Botcazou  <ebotcazou@adacore.com>
5465         * ttypes.ads (Target_Double_Float_Alignment): New variable.
5466         (Target_Double_Scalar_Alignment): Likewise.
5467         * get_targ.ads (Get_Strict_Alignment): Adjust external name.
5468         (Get_Double_Float_Alignment): New imported function.
5469         (Get_Double_Scalar_Alignment): Likewise.
5470         * layout.adb (Set_Elem_Alignment): Take into account specific caps for
5471         the alignment of "double" floating-point types and "double" or larger
5472         scalar types, as parameterized by Target_Double_Float_Alignment and
5473         Target_Double_Scalar_Alignment respectively.
5474         * gcc-interface/gigi.h (double_float_alignment): Declare.
5475         (double_scalar_alignment): Likewise.
5476         (is_double_float_or_array): Likewise.
5477         (is_double_scalar_or_array): Likewise.
5478         (get_target_double_float_alignment): Likewise.
5479         (get_target_double_scalar_alignment): Likewise.
5480         * gcc-interface/targtyps.c (get_strict_alignment): Rename into...
5481         (get_target_strict_alignment): ...this.
5482         (get_target_double_float_alignment): New function.
5483         (get_target_double_scalar_alignment): Likewise.
5484         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
5485         Test the presence of an alignment clause for under-aligned integer
5486         types.  Take into account specific caps for the alignment of "double"
5487         floating-point types and "double" or larger scalar types, as
5488         parameterized by Target_Double_Float_Alignment and
5489         Target_Double_Scalar_Alignment respectively.
5490         (validate_alignment): Likewise.
5491         * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Alignment>: Likewise.
5492         (gigi): Initialize double_float_alignment and double_scalar_alignment.
5493         * gcc-interface/utils.c (double_float_alignment): New global variable.
5494         (double_scalar_alignment): Likewise.
5495         (is_double_float_or_array): New predicate.
5496         (is_double_scalar_or_array): Likewise.
5498 2009-04-24  Eric Botcazou  <ebotcazou@adacore.com>
5500         * gcc-interface/utils2.c (build_cond_expr): Move SAVE_EXPR ahead of
5501         the conditional expression only if it is common to both arms.
5503 2009-04-24  Eric Botcazou  <ebotcazou@adacore.com>
5505         * gcc-interface/gigi.h (build_call_alloc_dealloc): Update comment.
5506         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Pass correct
5507         arguments to build_allocator.
5508         * gcc-interface/utils2.c (build_call_alloc_dealloc): Update comment.
5509         Remove code handling special allocator and assert its uselessness.
5511 2009-04-24  Eric Botcazou  <ebotcazou@adacore.com>
5513         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If an
5514         alignment is specified, do not promote that of the component type
5515         beyond it.
5516         <E_Array_Subtype>: Likewise.
5518 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
5520         * einfo.ads (Is_True_Constant): Lift restriction on atomic objects.
5521         * sinfo.ads (Object Declaration): Likewise.
5522         (Assignment Statement): Likewise.
5523         * freeze.adb (Expand_Atomic_Aggregate): Remove useless test.
5524         Do not force Is_True_Constant to false on the temporary.
5525         (Freeze_Entity): Do not force Is_True_Constant to false on names on
5526         the RHS of object declarations.
5527         * gcc-interface/trans.c (lvalue_required_p) <N_Object_Declaration>:
5528         New case.  Return 1 if the object is atomic.
5529         <N_Assignment_Statement>: Likewise.
5531 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
5533         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
5534         For packed array types, make the original array type a parallel type
5535         for the modular type and its JM wrapper if the type is bit-packed.
5536         <E_Array_Subtype>: Likewise.  Do not generate the special XA parallel
5537         record type for packed array types.  Remove kludge.
5539 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
5541         * gcc-interface/gigi.h (create_index_type): Adjust head comment.
5542         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
5543         Use front-end predicates to compute signedness and precision.
5544         <E_String_Literal_Subtype>: Fold range type.
5545         Make sure to set longest_float_type_node to a scalar type.
5546         (elaborate_entity): Use consistent Constraint_Error spelling.
5547         (substitute_in_type) <INTEGER_TYPE>: Always copy the type.
5548         * gcc-interface/misc.c (gnat_print_type) <INTEGER_TYPE>: Use brief
5549         output for the modulus, if any.
5550         <ENUMERAL_TYPE>: Likewise for the RM size.
5551         * gcc-interface/trans.c (gnat_to_gnu): Use consistent Constraint_Error
5552         spelling.
5553         * gcc-interface/utils.c (finish_record_type): Really test the alignment
5554         of BLKmode bit-fields to compute their addressability.
5555         (create_index_type): Adjust comments.
5556         (create_param_decl): Create the biased subtype manually.
5557         * gcc-interface/utils2.c (build_component_ref): Use consistent
5558         Constraint_Error spelling.
5560 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
5562         * gcc-interface/cuintp.c: Clean up include directives.
5563         * gcc-interface/targtyps.c: Likewise.
5564         * gcc-interface/decl.c: Likewise.
5565         * gcc-interface/misc.c: Likewise.
5566         * gcc-interface/trans.c: Likewise.
5567         * gcc-interface/utils.c: Likewise.
5568         * gcc-interface/utils2.c: Likewise.
5569         * gcc-interface/Make-lang.in: Adjust dependencies accordingly.
5571 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
5573         * gcc-interface/ada-tree.h (union lang_tree_node): Use standard idiom.
5574         (SET_TYPE_LANG_SPECIFIC): Likewise.  Fix formatting.
5575         (SET_DECL_LANG_SPECIFIC): Likewise.
5576         Reorder macros.
5577         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
5578         Update comment about use of build_range_type.
5579         <E_Array_Type, E_Array_Subtype>: Use consistent naming convention.
5580         <E_Array_Subtype>: Rework comments about TYPE_ACTUAL_BOUNDS and add
5581         check for other cases of overloading.
5582         * gcc-interface/trans.c (gigi): Use size_int in lieu of build_int_cst.
5583         * gcc-interface/utils2.c (build_call_raise): Fix off-by-one error.
5584         Use size_int in lieu of build_int_cst.
5585         (build_call_alloc_dealloc): Use build_index_2_type in lieu of
5586         build_range_type.
5588 2009-04-22  Eric Botcazou  <ebotcazou@adacore.com>
5590         * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR>: If operation's
5591         type is an enumeral or a boolean type, change it to an integer type
5592         with the same mode and signedness.
5594 2009-04-22  Eric Botcazou  <ebotcazou@adacore.com>
5596         * gcc-interface/utils.c (create_var_decl_1): Do not emit debug info
5597         for an external constant whose initializer is not absolute.
5599 2009-04-22  Taras Glek  <tglek@mozilla.com>
5601         * gcc-interface/ada-tree.h: Update GTY annotations to new syntax.
5602         * gcc-interface/trans.c: Likewise.
5603         * gcc-interface/utils.c: Likewise.
5605 2009-04-22  Ed Schonberg  <schonberg@adacore.com>
5607         * sem_res.adb: Create block around procedure call when actual is a
5608         concatenation.
5610 2009-04-22  Thomas Quinot  <quinot@adacore.com>
5612         * s-soflin.ads: Fix typos
5614 2009-04-22  Vincent Celier  <celier@adacore.com>
5616         * prj-env.adb: Minor comment change
5618         * prj-nmsc.adb (Check_Common): Add guard to avoid calling
5619         Get_Name_String with No_File.
5621         * tempdir.adb (Create_Temp_File): Output diagnostic when temp file
5622         cannot be created even when not in verbose mode.
5624 2009-04-22  Emmanuel Briot  <briot@adacore.com>
5626         * make.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj.adb,
5627         prj.ads (Create_Mapping_File): merge the two versions for Ada_Only and
5628         Multi_Language modes, to avoid code duplication.
5629         (Project_Data.Include_Language): Removed.
5631 2009-04-22  Vincent Celier  <celier@adacore.com>
5633         * tempdir.adb (Create_Temp_File): Add a diagnostic in verbose mode when
5634         the temporary file cannot be created, indicating the directory when the
5635         creation was attempted.
5637 2009-04-22  Emmanuel Briot  <briot@adacore.com>
5639         * prj-env.adb, prj-env.ads (Create_Mapping_File): we need to compare
5640         the language names, not their indices.
5642 2009-04-22  Emmanuel Briot  <briot@adacore.com>
5644         * prj.ads, prj-nmsc.adb, prj-env.adb, prj-env.ads
5645         (Source_Data.Language_Name): Field removed.
5647 2009-04-22  Emmanuel Briot  <briot@adacore.com>
5649         * prj.adb, prj.ads, prj-nmsc.adb (Project_Data.Unit_Based_Language_*):
5650         Two fields removed.
5652 2009-04-22  Emmanuel Briot  <briot@adacore.com>
5654         * prj-nmsc.adb (Check_Naming_Ada_Only): Properly initialize the
5655         separate_suffix to the same value as the body_suffix.
5657 2009-04-22  Robert Dewar  <dewar@adacore.com>
5659         * prj.adb: Minor code reorganization
5660         Code clean up.
5662         * prj-proc.adb: Minor code reorganization, clean up.
5664         * prj-nmsc.adb: Minor reformatting
5665         Minor code reorganization
5667         * gnat_ugn.texi: Add to doc on strict aliasing
5669 2009-04-22  Pascal Obry  <obry@adacore.com>
5671         * s-osinte-mingw.ads: Rename Reserved field in CRITICAL_SECTION to
5672         SpinCount.
5674         * s-tasini.adb: Minor reformatting.
5676         * s-tassta.adb: Minor reformatting.
5678 2009-04-22  Emmanuel Briot  <briot@adacore.com>
5680         * prj-proc.adb, prj-nmsc.adb (Check_Naming_Schemes): split into several
5681         smaller subprograms.
5682         Renamed to Check_File_Naming_Schemes to avoid confusion with the
5683         other Check_Naming_Schemes functions that plays a totally different
5684         role.
5685         (Check_Unit_Based_Lang, Check_File_Based_Lang): new subprograms,
5686         extracted from the above. These were partially rewritten to avoid
5687         unnecessary code and temporary variables.
5688         (Compute_Unit_Name): new subprogram, merge of Check_Unit_Based_Lang
5689         and Get_Unit (which for now still exist since they contain mode-specific
5690         code)
5692 2009-04-22  Emmanuel Briot  <briot@adacore.com>
5694         * prj.ads, prj.adb, prj-nmsc.adb, prj-proc.adb (Recursive_Process):
5695         Remove duplicated code.
5696         (Canonical_Case_File_Name): new subprogram
5697         (Check_And_Normalize_Unit_Names): new subprogram
5698         (Write_Attr): new subprogram
5699         Better sharing of code
5700         (Check_Naming_Ada_Only, Check_Naming_Multi_Lang): new subprogram, to
5701         split Check_Naming and help find duplicated code
5702         (Check_Common): new subprogram, sharing code between ada_only and
5703         multi_language mode.
5704         (Naming_Data.Dot_Repl_Loc): field removed
5706 2009-04-22  Emmanuel Briot  <briot@adacore.com>
5708         * prj-proc.adb, prj-nmsc.adb (Load_Naming_Exceptions): New subprogram.
5709         Minor refactoring to reduce the size of
5710         Process_Sources_In_Multi_Language_Mode.
5711         Avoid extra copied of Source_Data, which we found in the past could be
5712         quite slow.
5713         (Mark_Excluded_Sources): new subprogram.
5714         (Remove_Locally_Removed_Files_From_Units): merged into the above
5715         Refactors Process_Sources_In_Multi_Language_Mode to reduce its size,
5716         and allow better sharing of code between multi_lang and ada_only modes
5717         (Project_Extends): removed, since exact duplicate of Prj.Is_Extending
5719 2009-04-22  Emmanuel Briot  <briot@adacore.com>
5721         * prj-proc.adb, prj.adb, prj.ads (Project_Data.First_Referred_By):
5722         Removed, since unused.
5724 2009-04-22  Vincent Celier  <celier@adacore.com>
5726         * prj-attr.adb: New single project level attribute
5727         Separate_Run_Path_Options.
5729         * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
5730         attribute Seperate_Run_Path_Options.
5732         * prj.ads: (Project_Configuration): New Boolean component
5733         Separate_Run_Path_Options, defaulted to False.
5735         * snames.ads-tmpl: New standard name Seperate_Run_Path_Options
5737 2009-04-22  Robert Dewar  <dewar@adacore.com>
5739         * sem_type.adb: Minor reformatting
5741         * mlib.adb: Minor reformatting
5743         * sem_aggr.adb: Minor reformatting. Defend against junk aggregate from
5744         syntax error.
5746 2009-04-22  Nicolas Setton  <setton@adacore.com>
5748         * link.c: Add flag __gnat_separate_run_path_options.
5750         * mlib.adb (Separate_Run_Path_Options): New subprogram.
5752         * mlib.ads (Separate_Run_Path_Options): Declare.
5754         * gnatcmd.adb (Process_Link): Add support for emitting one "rpath"
5755         switch per directory, rather than one "rpath" switch listing all
5756         directories.
5758         * gnatlink.adb (Process_Binder_File): Likewise.
5760         * make.adb (Gnatmake): Likewise.
5762 2009-04-22  Hristian Kirtchev  <kirtchev@adacore.com>
5764         * exp_ch6.adb (Make_Build_In_Place_Call_In_Assignment): Code cleanup.
5765         Add a call to Move_Final_List when the target of the assignment is a
5766         return object that needs finalization and the expression is a
5767         controlled build-in-place function.
5769 2009-04-22  Vincent Celier  <celier@adacore.com>
5771         * make.adb (Gnatmake, Bind_Step): call Set_Ada_Paths with
5772         Including_Libraries set to True.
5774 2009-04-22  Ed Schonberg  <schonberg@adacore.com>
5776         * lib-load.ads, lib-load.adb (Make_Child_Decl_Unit): New subprogram, to
5777         create a unit table entry for the subprogram declaration created for a
5778         child suprogram body that has no separate specification.
5780         * sem_ch10.adb (Analyze_Compilation_Unit): For a child unit that is a
5781         subprogram body, call Make_Child_Decl_Unit.
5783         * lib.adb (Get_Cunit_Unit_Number): Verify that an entry not yet in the
5784         table can only be the created specification of a child subprogram body
5785         that is the main unit, which has not been entered in the table yet.
5787         * errout.adb  (Output_Messages): Ignore created specification of a
5788         child subprogram body to prevent repeated listing of error messages.
5790         * gnat1drv.adb (gnat1drv): The generated specification for a child
5791         subprogram body does not generate code.
5793 2009-04-22  Arnaud Charlet  <charlet@adacore.com>
5795         * s-bitops.adb, s-bitops.ads (Raise_Error): Do not use Ada 05 syntax,
5796         since this unit is now part of bootstrap units, so must use Ada 95
5797         syntax only.
5799 2009-04-22  Thomas Quinot  <quinot@adacore.com>
5801         * a-tasatt.adb: Minor reformatting
5803 2009-04-22  Bob Duff  <duff@adacore.com>
5805         * s-stalib.ads: Remove "with System;" since we're inside System, so
5806         it's unnecessary.
5808 2009-04-22  Vincent Celier  <celier@adacore.com>
5810         * prj-nmsc.adb (Add_Source): Always put the dependency file name in
5811         the source record, as there may be a dependency file even if no object
5812         file is created.
5814 2009-04-22  Robert Dewar  <dewar@adacore.com>
5816         * lib-load.adb: Minor reformatting
5818         * lib-load.ads: Minor reformatting
5820         * sinfo.ads: Minor reformatting
5822 2009-04-22  Bob Duff  <duff@adacore.com>
5824         * exp_pakd.adb: Minor comment fixes.
5826         * sinfo.ads, par-load.adb, sem_ch10.adb, lib-load.ads, lib-load.adb
5827         sem_ch12.adb: Change the meaning of the Library_Unit attribute to
5828         include units containing instantiations, as well as units that are
5829         generic instantiations.
5831         * sem.adb: Include dependents and corresponding specs/bodies in the
5832         unit walk.
5834         * gcc-interface/Make-lang.in:
5835         sem now depends on s-bitops, because of the packed array of Booleans.
5837 2009-04-22  Eric Botcazou  <ebotcazou@adacore.com>
5839         * gcc-interface/ada-tree.def: Fix formatting nits.
5840         (REGION_STMT): Delete.
5841         (HANDLER_STMT): Likewise.
5842         * gcc-interface/ada-tree.h: Fix formatting nits.
5843         (IS_STMT): Delete.
5844         (REGION_STMT_BODY): Likewise.
5845         (REGION_STMT_HANDLE): Likewise.
5846         (REGION_STMT_BLOCK): Likewise.
5847         (HANDLER_STMT_ARG): Likewise.
5848         (HANDLER_STMT_LIST): Likewise.
5849         (HANDLER_STMT_BLOCK): Likewise.
5850         * gcc-interface/gigi.h (fp_prec_to_size): Update comment.
5851         (fp_size_to_prec): Likewise.
5852         (largest_move_alignment): Delete.
5853         (gnat_compute_largest_alignment): Likewise.
5854         Fix minor nits.
5855         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
5856         Remove redundant code.
5857         <E_Array_Type>: Remove redundant assert.
5858         <E_Array_Subtype>: Exit early from index computation in pathological
5859         cases.
5860         Rewrite conditional assignment.
5861         (make_type_from_size): Likewise.
5862         * gcc-interface/misc.c (largest_move_alignment): Delete.
5863         (gnat_finish_incomplete_decl): Likewise.
5864         (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Likewise.
5865         (asm_out_file): Likewise
5866         (gnat_print_type) <INTEGER_TYPE>: Fall through to ENUMERAL_TYPE case.
5867         (gnat_dwarf_name): Move around.
5868         * gcc-interface/trans.c (Attribute_to_gnu): Fix minor nits.
5869         (gigi): Remove call to gnat_compute_largest_alignment.
5870         * utils.c (create_field_decl): Rewrite conditional assignment.
5871         Fix minor nits.
5873 2009-04-22  Eric Botcazou  <ebotcazou@adacore.com>
5875         * gcc-interface/decl.c (gnat_to_gnu_entity): Compute is_type predicate
5876         on entry.  Defer common processing for types.  Reorder and clean up.
5877         Compute the equivalent GNAT node and the default size for types only.
5878         <E_Modular_Integer_Type>: Directly use Esize for the type's precision.
5879         <E_Access_Type>: For an unconstrained designated type, do not pretend
5880         that a dummy type is always made.
5881         <all> Fix nits in comments.
5882         (validate_size): Fix formatting nits and comments.
5883         (set_rm_size): Likewise.
5884         * gcc-interface/utils.c (create_param_decl): Replace bogus argument
5885         passed to TARGET_PROMOTE_PROTOTYPES hook.
5887 2009-04-22  Eric Botcazou  <ebotcazou@adacore.com>
5889         * fe.h (Get_External_Name): Declare.
5890         * gcc-interface/gigi.h (concat_id_with_name): Rename to...
5891         (concat_name): ...this.
5892         * gcc-interface/decl.c (gnat_to_gnu_entity): Rename gnu_entity_id to
5893         gnu_entity_name and adjust for above renaming.
5894         <E_Access_Type>: Use create_concat_name to get the name of the various
5895         types associated with unconstrained array types.
5896         (make_aligning_type): Adjust for above renaming.
5897         (maybe_pad_type): Likewise.
5898         (components_to_record): Likewise.  Use get_identifier_with_length for
5899         the encoding of the variant.
5900         (get_entity_name): Use get_identifier_with_length.
5901         (create_concat_name): Likewise.  Use Get_External_Name if no suffix.
5902         Do not fiddle with Name_Buffer.
5903         (concat_id_with_name): Rename to...
5904         (concat_name): ...this.  Use get_identifier_with_length.  Do not fiddle
5905         with Name_Buffer.
5906         * gcc-interface/utils.c (rest_of_record_type_compilation): Adjust for
5907         above renaming.
5909 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
5911         * ChangeLog, ChangeLog.ptr, ChangeLog.tree-ssa: Add copyright and
5912         license notices.
5914 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
5916         * gcc-interface/trans.c (gnat_to_gnu): Do not overwrite location info.
5918 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
5920         * gcc-interface/ada-tree.h (TYPE_RM_SIZE_NUM): Delete.
5921         (TYPE_RM_SIZE): Access TYPE_LANG_SLOT_1 directly for integral types.
5922         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>:
5923         Remove useless support code for packed array types and assert its
5924         uselessness.
5925         <E_Signed_Integer_Subtype>: Reuse entity identifier in more places and
5926         adjust for TYPE_RM_SIZE change.
5927         <all> Fix nits in comments.  Use Original_Array_Type accessor instead
5928         of Associated_Node_For_Itype accessor for packed array types.
5929         (make_packable_type): Likewise.
5930         (maybe_pad_type): Likewise.
5931         (set_rm_size): Likewise.  Rework conditional statement.  Adjust for
5932         TYPE_RM_SIZE change.
5933         (make_type_from_size): Adjust for TYPE_RM_SIZE change.
5934         (rm_size): Fix nits in comments.  Rework conditional statements.
5935         * gcc-interface/misc.c (gnat_print_type): Adjust for TYPE_RM_SIZE
5936         change.
5937         * gcc-interface/trans.c (Attribute_to_gnu): Fix nits in comments.
5938         * gcc-interface/utils.c (gnat_init_decl_processing): Use more
5939         appropriate function to initialize the size_type_node.  Adjust for
5940         TYPE_RM_SIZE change.
5942 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
5944         * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set force_global
5945         for imported subprograms.
5947 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
5949         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not make
5950         constant objects covered by 13.3(19) volatile.
5952 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
5954         * gcc-interface/utils.c (create_type_decl): Do not pass declarations
5955         of dummy fat pointer types to the debug back-end.
5957 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
5959         * gcc-interface/decl.c (gnat_to_gnu_entity): Rewrite Esize calculation.
5960         <E_Signed_Integer_Subtype>: Set the RM size on the integer type
5961         before wrapping it up in the record type.  Do not overwrite the
5962         Ada size of the record type with the Esize.
5964 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
5966         * gcc-interface/trans.c (unchecked_conversion_lhs_nop): New predicate.
5967         (gnat_to_gnu) <N_Unchecked_Type_Conversion>: Return the expression
5968         if the conversion is on the LHS of an assignment and a no-op.
5969         <all> Do not convert the result to the result type if the Parent
5970         node is such a conversion.
5972 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
5974         * gcc-interface/ada-tree.h (DECL_HAS_REP_P): Delete.
5975         * gcc-interface/decl.c (gnat_to_gnu_entity): Add support for extension
5976         of types with unknown discriminants.
5977         (substitute_in_type): Rewrite and restrict to formal substitutions.
5978         * gcc-interface/utils.c (create_field_decl): Do not set DECL_HAS_REP_P.
5979         (update_pointer_to): Update comment.
5981 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
5983         * sem_ch8.adb (Use_One_Package): In an instance, if two
5984         potentially_use_visible and non-overloadable homonyms are available
5985         from  the actuals of distinct formal packages, retain the current one,
5986         which was visible in the generic, to prevent spurious visibility
5987         errors.
5988         (End_Use_Package): Restore use_visibility when needed.
5990 2009-04-20  Sergey Rybin  <rybin@adacore.com>
5992         * gnat_ugn.texi, vms_data.ads: Update doc.
5994 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
5996         * gcc-interface/Make-lang.in: Update dependencies
5998         * gcc-interface/Makefile.in: Link run-time against winsock2 lib under
5999         Windows.
6001 2009-04-20  Robert Dewar  <dewar@adacore.com>
6003         * checks.ads: Fix documentation of range check handling
6005 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6007         * sem_ch8.adb (Use_One_Type): Use proper entity on warning message for
6008         a redundant use_type clause.
6010 2009-04-20  Robert Dewar  <dewar@adacore.com>
6012         * sem_attr.adb (Eval_Attribute, case Length): Catch more cases where
6013         this attribute can be evaluated at compile time.
6014         (Eval_Attribute, case Range_Length): Same improvement
6016         * sem_eval.ads, sem_eval.adb (Compile_Time_Compare): New procedure
6018 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6020         * sem_ch6.adb (Analye_Subprogram_Declaration): Code reorganization,
6021         for better handling of null procedures.
6022         (Check_Overriding_Indicator): Do not emit a warning on a missing
6023         overriding indicator on an operator when the type of which the operator
6024         is a primitive is private.
6026 2009-04-20  Bob Duff  <duff@adacore.com>
6028         * sem.adb, gnat1drv.adb, debug.adb: Use the -gnatd.W switch to control
6029         debugging output.
6031 2009-04-20  Robert Dewar  <dewar@adacore.com>
6033         * sem_attr.adb: Minor reformatting
6035         * gnatcmd.adb: Minor reformatting
6037 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6039         * sem_ch4.adb (Analyze_User_Defined_Binary_Op): If left operand is
6040         overloaded and one interpretation matches the context, label the
6041         operand with the type of first formal.
6043 2009-04-20  Bob Duff  <duff@adacore.com>
6045         * debug.ads: Minor comment fix.
6047         * debug.adb: Minor comment fixes.
6049 2009-04-20  Javier Miranda  <miranda@adacore.com>
6051         * rtsfind.ads (RE_Null_Id): New entity of package Ada.Exceptions
6053         * exp_ch6.adb (Expand_Inlined_Call): Undo previous patch.
6055         * exp_ch11.adb (Expand_N_Raise_Statement): When the raise stmt
6056         is expanded into a call to Raise_Exception, avoid passing the
6057         exception-name'identity in runtimes in which this argument
6058         is not used.
6060 2009-04-20  Jerome Lambourg  <lambourg@adacore.com>
6062         * impunit.adb: Add i-cil and i-cilobj packages, now needed by the
6063         generated bindings for cil.
6065 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6067         * sem_aggr.adb (Resolve_Record_Aggregate): If the type has unknown
6068         discriminants, collect components from the Underlying_Record_View,
6069         which will be used in the expansion of the aggregate into assignments.
6071         * sem_ch3.adb: Do not label derived type with unknown discriminants as
6072         having a private declaration.
6074 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6076         * exp_util.adb (Expand_Subtype_From_Expr): use the
6077         underlying_record_view when available, to create the proper constrained
6078         subtype for an object of a derived type with unknown discriminants.
6080 2009-04-20  Javier Miranda  <miranda@adacore.com>
6082         * exp_ch6.adb (Expand_Inlined_Call): Avoid generation of temporaries for
6083         formals that have pragma unreferenced.
6085 2009-04-20  Pascal Obry  <obry@adacore.com>
6087         * a-direct.adb (To_Lower_If_Case_Insensitive): Removed.
6088         Remove all calls to To_Lower_If_Case_Insensitive to preserve
6089         the pathname original casing.
6091 2009-04-20  Robert Dewar  <dewar@adacore.com>
6093         * g-trasym.adb: Minor reformatting
6095         * s-os_lib.adb: Minor reformatting
6097         * sem.adb: Minor reformatting
6098         Minor code reorganization
6100         * sem_ch3.adb: Minor reformatting
6102         * sem_ch4.adb: Minor reformatting
6104         * sem_ch8.adb: Minor reformatting
6106         * sem_type.adb: Minor reformatting
6108 2009-04-20  Javier Miranda  <miranda@adacore.com>
6110         * sem_disp.adb (Find_Dispatching_Type): For subprograms internally
6111         generated by derivations of tagged types use the aliased subprogram a
6112         reference to locate their controlling type.
6114 2009-04-20  Tristan Gingold  <gingold@adacore.com>
6116         * g-trasym.adb: Set size of result buffer before calling
6117         convert_address.
6119 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6121         * sem_ch4.adb (Valid_Candidate): When checking whether a prefixed call
6122         to a function returning an array can be interpreted as a call with
6123         defaulted parameters whose result is indexed, take into account the
6124         types of all the indices of the array result type.
6126 2009-04-20  Pascal Obry  <obry@adacore.com>
6128         * a-direct.adb, s-os_lib.adb: Minor reformatting.
6130 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6132         * sem_ch8.adb (Analyze_Object_Renaming): Proper checks on incorrect
6133         null exclusion qualifiers for object renaming declarations.
6135 2009-04-20  Nicolas Roche  <roche@adacore.com>
6137         * sysdep.c (__gnat_localtime_tzoff): on Windows, manipulated times are
6138         unsigned long long. So compare local_time and utc_time before computing
6139         the difference.
6141 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6143         * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
6144         of the Underlying_Record_View before that of the derived type.
6146         * exp_ch3.adb (Expand_Record_Extension): Do not special-case types
6147         with unknown discriminants with regard to the parent subtype.
6149 2009-04-20  Bob Duff  <duff@adacore.com>
6151         * sem.adb (Semantics, Walk_Library_Items): Include dependents of bodies
6152         that are not included. This is necessary if the main unit is a generic
6153         instantiation.
6155         * gnat1drv.adb (Gnat1drv): Comment out the call to Check_Library_Items,
6156         because it doesn't work if -gnatn is used.
6158 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6160         * rtsfind.adb (RTE, RTE_Record_Component): In
6161         Configurable_Run_Time_Mode, do not enable front-end inlining.
6163 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6165         * g-socthi-vms.adb: Remove now unnecessary WITH clause on
6166         System.Address_To_Access_Conversions.
6168 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6170         * sem.adb: Guard against ill-formed subunits.
6172 2009-04-20  Bob Duff  <duff@adacore.com>
6174         * output.adb (Flush_Buffer): Do not indent blank lines.
6175         (Ignore_Output): New procedure for output suppression.
6177 2009-04-20  Hristian Kirtchev  <kirtchev@adacore.com>
6179         * a-calfor.adb (Image): Subtract 0.5 from the sub second component only
6180         when it is positive.  This avoids a potential constraint error raised
6181         by the conversion to Natural.
6183 2009-04-20  Gary Dismukes  <dismukes@adacore.com>
6185         * exp_ch5.adb (Expand_Assign_Array): For the case where the assignment
6186         involves a target that has a specified address, don't set Forward_OK
6187         and Backward_OK to False if the rhs is an aggregate, since overlap
6188         can't occur.
6190 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6192         * sem_ch8.adb (Analyze_Object_Renaming): Reject ambiguous expressions
6193         in an object renaming declaration when the expected type is an
6194         anonymous access type.
6196         * sem_type.adb (Disambiguate): Use anonymousness to resolve a potential
6197         ambiguity when one interpretation is an anonymous access type and the
6198         other is a named access type, and the context itself is anonymous
6200 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6202         * einfo.ads: Minor comment rewording
6204         * sem_aggr.adb: Minor comment rewording
6206         * sem_ch3.adb, sem_ch6.adb: Minor reformatting
6208 2009-04-20  Pascal Obry  <obry@adacore.com>
6210         * adaint.c (__gnat_is_readable_file): Check for file existence
6211         when not using ACL (always the case on remote drives).
6213 2009-04-20  Robert Dewar  <dewar@adacore.com>
6215         * sinfo.ads: Minor comment fixes
6217         * exp_disp.adb: Minor reformatting
6219         * gnat1drv.adb: Minor reformatting
6221         * output.adb: Minor reformatting
6223         * s-vxwext-kernel.ads: Minor reformatting
6225         * sem.ads: Minor reformatting
6227         * sem.adb: Minor reformatting
6229         * sem_elim.adb: Minor reformatting
6231         * uname.ads: Minor reformatting
6233 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6235         * init.c (__gnat_adjust_context_for_raise): On x86{-64}/Linux, add
6236         a small dope of 4 words to the adjustment to the stack pointer.
6238 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6240         * xoscons.adb: generate C header s-oscons.h in
6241         addition to s-oscons.ads.
6243         * socket.c: On VMS, use s-oscons.h.
6245         * sem_ch3.adb: Minor reformatting
6247         * exp_ch9.adb: Minor reformatting
6249 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6251         * gcc-interface/trans.c (check_for_eliminated_entity): Remove.
6252         (Attribute_to_gnu): Do not call check_for_eliminated_entity.
6253         (call_to_gnu): Likewise.
6255 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6257         * gcc-interface/trans.c (gigi): Declare the name of the compilation
6258         unit as the first global name at the very beginning.
6260 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6262         * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
6263         s-oscons-tmplt.c, gsocket.h, g-socthi-mingw.ads, g-socthi.ads,
6264         g-sothco.ads (__gnat_inet_pton): Needs to be enabled for HP-UX as well,
6265         since HP-UX supports neither inet_aton nor inet_pton (altough the
6266         latter is part of the Single UNIX Specification!).
6267         So reorganize code, and share C implementation based on inet_addr(3)
6268         with VMS (instead of having a VMS specific Ada implementation in
6269         g-socthi-vms.adb).
6271 2009-04-20  Gary Dismukes  <dismukes@adacore.com>
6273         * osint-c.ads, osint-c.adb (Get_Object_Output_File_Name): New function
6274         to return the object file name saved by Set_Object_Output_File_Name.
6276 2009-04-20  Emmanuel Briot  <briot@adacore.com>
6278         * g-comlin.adb (Initialize_Option_Scan): Fix initialization of parsers
6279         for the standard command line, when argc has been modified since the
6280         start of the application.
6282 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6284         * socket.c (__gnat_inet_pton, Windows case): Adjust return value.
6285         WSAStringToAddress returns 0 for success and SOCKET_ERROR for failure.
6287 2009-04-20  Bob Duff  <duff@adacore.com>
6289         * gnat1drv.adb (Gnat1drv): Put call to Check_Library_Items inside
6290         pragma Debug.
6292 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6294         * exp_ch9.adb (Build_Protected_Sub_Specification): Mark generated
6295         subprogram as Eliminated when source operation is.
6296         (Expand_N_Protected_Type_Declaration): Generate protected and
6297         unprotected specs for the internal operations, even if the source
6298         operation is eliminated.
6300 2009-04-20  Hristian Kirtchev  <kirtchev@adacore.com>
6302         * exp_ch3.adb (Make_Predefined_Primitive_Specs,
6303         Predefined_Primitive_Bodies): Do not create the declarations and bodies
6304         of the primitive subprograms associated with dispatching select
6305         statements when the runtime is in configurable mode.
6307 2009-04-20  Ed Falis  <falis@adacore.com>
6309         * s-vxwext-kernel.ads (tickGet): Use tick64Get.
6311 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6313         * s-oscons-tmplt.c: Add support for generating a dummy version of
6314         s-oscons.ads providing all possible constants.
6316         * g-socthi-mingw.ads: Fix calling convention for __gnat_inet_pton.
6318         * socket.c (__gnat_inet_pton): On Windows make sure we always use the
6319         ANSI version (not the UNICODE version) of WSAStringToAddress.
6321 2009-04-20  Pascal Obry  <obry@adacore.com>
6323         * adaint.c (__gnat_set_OWNER_ACL): properly free memory
6324         allocated for the security descriptor and make sure all
6325         handles are closed before leaving this procedure.
6327 2009-04-20  Javier Miranda  <miranda@adacore.com>
6329         * einfo.ads, einfo.adb (Is_Underlying_Record_View): New subprogram
6330         (Set_Is_Underlying_Record_View): New subprogram
6332         * sem_aggr.adb (Discr_Present, Resolve_Record_Aggregate): In case of
6333         private types with unknown discriminants use the underlying record view
6334         if available.
6336         * sem_ch3.adb (Build_Derived_Private_Type): Enable construction of the
6337         underlying record view in the full view of private types whose parent
6338         has unknown discriminants.
6339         (Build_Derived_Record_Type): Avoid generating the class-wide entity
6340         associated with an underlying record view.
6341         (Derived_Type_Declaration): Avoid deriving parent primitives in
6342         underlying record views.
6344         * sem_ch6.adb (Check_Return_Subtype_Indication): Add support for
6345         records with unknown discriminants.
6347         * sem_type.adb (Covers): Handle underlying record views.
6348         (Is_Ancestor): Add support for underlying record views.
6350         * exp_attr.adb (Expand_Attribute): Expand attribute 'size into a
6351         dispatching call if the type of the target object is tagged and has
6352         unknown discriminants.
6354         * exp_aggr.adb (Resolve_Record_Aggregate): Add support for records with
6355         unknown discriminants.
6357         * exp_disp.adb (Build_Dispatch_Tables): Avoid generating dispatch
6358         tables for internally built underlying record views.
6360         * sprint.adb (sprint_node_actual): Improve output of aggregates with an
6361         empty list of component associations.
6363 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6365         * sem_ch10.adb: Minor reformatting
6367         * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
6368         g-socthi-mingw.ads, g-socthi.ads, g-socket.adb
6369         (GNAT.Sockets.Inet_Addr): Do not use non-portable inet_aton, instead use
6370         standard inet_pton API (and emulate it on platforms that do not
6371         support it).
6372         (GNAT.Sockets.Thin.Inet_Pton, VMS case): Implement in terms of
6373         DECC$INET_ADDR, imported in Ada.
6374         (GNAT.Sockets.Thin.Inet_Pton, VxWorks and Windows cases): Use C
6375         implementation provided by GNAT runtime.
6376         (__gnat_inet_pton): C implementation of inet_pton(3) for VxWorks and
6377         Windows.
6379 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6381         * gnat_ugn.texi: Add documentation for -fno-ivopts.
6383 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6385         * sem_ch10.adb (Analyze_Context): Do not analyze a unit in a
6386         with_clause if it is the main unit.
6388 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6390         * sem_type.adb, ali.adb, erroutc.adb: Minor code reorganization
6391         (no behaviour change): Use Append instead of Increment_Last followed
6392         by assignment.
6394 2009-04-20  Hristian Kirtchev  <kirtchev@adacore.com>
6396         * exp_ch3.adb (Make_Predefined_Primitive_Specs): Do not generate the
6397         declarations of all primitives associated with dispatching asynchronous,
6398         conditional and timed selects when dispaching calls are forbidden and
6399         select statements are not allowed (such as in Ravenscar).
6400         (Predefined_Primitive_Bodies): Ditto for bodies.
6402         * exp_disp.ad (Make_DT): Do not create and populate the
6403         Select_Specific_Data of the dispatch table when dispatching calls are
6404         forbidden and select statements are not allowed (such as in Ravenscar).
6406 2009-04-20  Robert Dewar  <dewar@adacore.com>
6408         * a-tifiio.adb: Minor reformatting
6410 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6412         * g-socthi-vms.adb, g-socket.adb, g-socket.ads: inet_aton(3), unlike
6413         other C library functions, report *failure* with a zero status, and
6414         success with a non-zero status.
6416 2009-04-20  Bob Duff  <duff@adacore.com>
6418         * sem.ads, sem.adb (Walk_Library_Items): New generic procedure.
6419         (Semantics): After analyzing each unit, Append it to the
6420         Comp_Unit_List, if appropriate.
6422         * gnat1drv.adb (Check_Library_Items): New procedure for debugging
6423         purposes.
6424         (Gnat1drv): Correct comment regarding Back_End_Mode.
6426 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6428         * gnat_ugn.texi: Add documentation for -fno-inline-small-functions.
6430 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6432         * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
6433         output.adb, output.ads, s-taprop-hpux-dce.adb,
6434         s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-posix.adb: Minor
6435         reformatting.
6437 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6439         * g-socket.adb, g-socket.ads, g-socthi-mingw.ads, g-socthi-vms.adb,
6440         g-socthi-vms.ads, g-socthi-vxworks.ads, g-socthi.ads
6441         (GNAT.Sockets.Thin.C_Inet_Addr): Remove.
6442         (GNAT.Sockets.Thin.Inet_Aton): New function, imported from C library
6443         except for VMS where it is reimplemented in Ada using DECC$INET_ADDR.
6444         (GNAT.Sockets.Inet_Addr): Use inet_aton(3) instead of inet_addr(3).
6446         * debug.adb: Fix typo
6448         * gnat_rm.texi: Minor doc fix.
6450         * sem_ch7.adb, freeze.adb: Minor reformatting
6452 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6454         * g-socket.ads: Add new constants:
6455           Loopback_Inet_Addr
6456           Unspecified_Group_Inet_Addr
6457           All_Hosts_Group_Inet_Addr
6458           All_Routers_Group_Inet_Addr
6460         * s-oscons-tmplt.c, g-sttsne-vxworks.adb (System.OS_Constants): Add
6461         ERANGE (Result too large).
6462         (GNAT.Sockets.Thin.Task_Safe_NetDB, VxWorks version): Add missing
6463         propagation of errno to caller.
6465 2009-04-20  Hristian Kirtchev  <kirtchev@adacore.com>
6467         * a-calend.adb, a-calend-vms.adb: Increase the number of leap seconds
6468         to 24. Increment Leap_Seconds_Count and add an entry to aggregate
6469         Leap_Second_Times.
6471 2009-04-20  Gary Dismukes  <dismukes@adacore.com>
6473         * sem_elim.ads (Check_For_Eliminated_Subprogram): New procedure for
6474         checking for references to eliminated subprograms that should be
6475         flagged.
6476         (Eliminate_Error_Message): Update comment to say "references" rather
6477         than "calls" (since attribute cases are handled here as well).
6479         * sem_elim.adb (Check_For_Eliminated_Subprogram): New procedure for
6480         checking for references to eliminated subprograms that should be
6481         flagged.  Add with and use of Sem and Sem_Util.
6483         * sem_res.adb (Resolve_Call): Reject calls to eliminated subprograms.
6484         Add with and use of Sem_Elim.
6486         * sem_attr.adb (Analyze_Access_Attribute): Reject access attributes
6487         applied to eliminated subprograms.
6488         (Analyze_Attribute): Reject 'Address and 'Code_Address applied to
6489         eliminated subprograms.
6490         Add with and use of Sem_Elim.
6492         * sem_disp.adb (Check_Dispatching_Call): Remove error check for calls
6493         to eliminated subprograms, now handled during Resolve_Call.
6494         Remove with and use of Sem_Elim.
6496         * exp_disp.adb (Make_DT): Get Ultimate_Alias of primitive before
6497         testing Is_Eliminated, for proper handling of primitive derived from
6498         eliminated subprograms.
6500 2009-04-20  Vincent Celier  <celier@adacore.com>
6502         * mlib-prj.adb (Build_Library): Use the shared library linker, if one
6503         has been declared (Library_GCC or Linker'Driver), for the driver name.
6505         * prj-nmsc.adb (Process_Linker): If Library_GCC is not declared and
6506         Linker'Driver is, use Linker'Driver as the shared library linker.
6507         (Process_Project_Level_Simple_Attributes): Issue a warning if attribute
6508         Library_GCC is declared.
6509         (Check_Library_Attributes): Set up the shared linker driver: either
6510         Library_GCC or Linker'Driver. Issue a warning if Library_GCC is
6511         declared.
6513 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6515         * g-socket.ads (Send_Socket): Fix misleading comment.
6517 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
6519         * switch-c.adb (Scan_Front_End_Switches): Disable inspector mode in
6520         ASIS mode.
6522 2009-04-20  Geert Bosch  <bosch@adacore.com>
6524         * a-tifiio.adb (Put): Avoid generating too many digits for certain
6525         fixed types with smalls that are neither integer or the reciprocal
6526         of an integer.
6528 2009-04-20  Bob Duff  <duff@adacore.com>
6530         * uname.ads: Minor comment fix.
6532         * types.ads: Minor comment fix.
6534 2009-04-20  Pascal Obry  <obry@adacore.com>
6536         * adaint.c (__gnat_get_libraries_from_registry): Fix code to
6537         avoid warning. At the same time fix a memory leak.
6539         * osint.adb (Get_Libraries_From_Registry): Properly free memory
6540         returned by the above routine.
6542 2009-04-20  Robert Dewar  <dewar@adacore.com>
6544         * s-conca5.adb, s-conca5.ads, s-conca7.adb, s-conca7.ads, s-conca9.adb,
6545         s-conca9.ads, rtsfind.ads, s-conca2.adb, s-conca2.ads, s-conca4.adb,
6546         s-conca4.ads, s-conca6.adb, s-conca6.ads, s-conca8.adb, s-conca8.ads,
6547         s-conca3.adb, s-conca3.ads (Str_Concat_Bounds_x): New functions.
6549         * exp_ch4.adb (Expand_Concatenate): Minor code reorganization
6551 2009-04-20  Pascal Obry  <obry@adacore.com>
6553         * initialize.c (__gnat_initialize): Add braces to kill warning.
6555         * adaint.c: Minor reformatting, remove trailing spaces.
6557 2009-04-17  Arnaud Charlet  <charlet@adacore.com>
6559         * gcc-interface/Make-lang.in: Update dependencies.
6561 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6563         * adaint.h (__gnat_lwp_self): Declare on Linux.
6565         * adaint.c (__gnat_os_filename): Add ATTRIBUTE_UNUSED on 'filename'.
6567 2009-04-20  Robert Dewar  <dewar@adacore.com>
6569         * exp_ch5.adb, usage.adb, back_end.adb, opt.ads: Implement
6570         front-end part of -fpreserve-control-flow switch.
6572 2009-04-20  Bob Duff  <duff@adacore.com>
6574         * rtsfind.adb: Minor comment fix
6576 2009-04-20  Robert Dewar  <dewar@adacore.com>
6578         * exp_aggr.adb: Minor reformatting
6579         Minor code reorganization (use Nkind_In)
6581         * g-socket.adb: Minor reformatting
6583         * g-socket.ads: Minor comment fix
6585         * s-auxdec.ads: Minor comment and organization update.
6587         * s-auxdec-vms_64.ads: Minor comment and organization update.
6589         * sem_ch10.adb: Minor addition of ??? comment
6591         * sem_disp.adb: Minor reformatting
6593 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6595         * inline.adb (Add_Inlined_Subprogram): Do not place on the back-end
6596         list a caller of an inlined subprogram, if the caller itself is not
6597         called.
6599 2009-04-20  Pascal Obry  <obry@adacore.com>
6601         * adaint.c: Disable use of ACL on network drives.
6603 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
6605         * gnat_ugn.texi: Add examples.
6607 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6609         * g-socket.ads (Abort_Selector): Clarify documentation.
6611 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
6613         * opt.ads (Inspector_Mode): Update documentation of this flag.
6615 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6617         * g-socket.ads: Minor reformatting
6619         * socket.c, gsocket.h (__gnat_get_h_errno, VxWorks case): No need to
6620         consider S_resolvLib error codes since we only use the hostLib wrappers.
6622 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6624         * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
6625         of the Underlying_Record_View after that of the derived type.
6627 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
6629         * switch-c.adb (Scan_Front_End_Switches): Disable front-end inlining
6630         in inspector mode.
6632 2009-04-20  Javier Miranda  <miranda@adacore.com>
6634         * sem_ch6.adb (New_Overloaded_Entity): Minor reformating.
6636         * sem_ch6.ads (Subtype_Conformant, Type_Conformant): Add missing
6637         documentation.
6639         * exp_aggr.adb (Build_Record_Aggr_Code): Code cleanup.
6641         * sem_disp.adb
6642         (Check_Dispatching_Operation): Set attribute Is_Dispatching_Operation
6643         in internally built overriding subprograms.
6645 2009-04-20  Doug Rupp  <rupp@adacore.com>
6647         * s-auxdec-vms_64.ads (Integer_{8,16,32,64}_Array): New array types.
6649         * s-auxdec.ads: Likewise
6651 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6653         * sem_ch3.adb (Find_Type_Name): Reject the completion of a private
6654         type by an interface.
6656         * exp_ch6.adb (Expand_Call): Inline To_Address unconditionally, to
6657         minimze difference in expanded tree when compiled as spec of the main
6658         unit, or as a spec in the context of another unit.
6660 2009-04-20  Hristian Kirtchev  <kirtchev@adacore.com>
6662         * a-calend.adb: Remove types char_Pointer, int, tm and tm_Pointer.
6663         (localtime_tzoff): This routine no longer accepts an actual of type
6664         tm_Pointer.
6665         (UTC_Time_Offset): Remove local variable Secs_TM.
6667         * sysdep.c (__gnat_localtime_tzoff): This routine no longer accepts an
6668         actual of type struct tm*. Add local variable of type struct tm for all
6669         targets that provide localtime_r and need to invoke it.
6671 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6673         * s-oscons-tmplt.c, g-socket.adb, g-socket.ads
6674         (GNAT.Sockets.Resolve_Error): Add case of EPIPE
6675         Add case of EAGAIN for platforms where it is not equal to EWOULDBLOCK
6677 2009-04-20  Robert Dewar  <dewar@adacore.com>
6679         * sem_ch3.adb: Minor reformatting
6681         * lib-load.adb: Minor reformatting
6683         * sem_ch4.adb: Minor reformatting
6685 2009-04-20  Robert Dewar  <dewar@adacore.com>
6687         * namet-sp.ads, namet-sp.adb (Is_Bad_Spelling_Of): Implement new spec
6688         (equal values => False).
6690 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6692         * exp_ch6.adb (Is_Null_Procedure): predicate is global, so that calls
6693         to null procedures can be inlined unconditionally.
6695 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6697         * gcc-interface/trans.c (call_to_gnu): When creating the copy for a
6698         non-addressable parameter passed by reference, do not convert the
6699         actual if its type is already the nominal type, unless it is of
6700         self-referential size.
6702 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
6704         * gnat_ugn.texi: Fix typos.
6706 2009-04-20  Robert Dewar  <dewar@adacore.com>
6708         * debug.adb, gnat1drv.adb, sem_ch13.adb: Add circuitry to
6709         Validate_Unchecked_Warnings to suppress warnings about size or
6710         alignment or extra bits if either type involved has pragma Warnings
6711         (Off) set for the type entity.
6713 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
6715         * gcc-interface/trans.c (gigi): Make the special IA-64 descriptor type
6716         a builtin type and give it a name.
6718 2009-04-17  Diego Novillo  <dnovillo@google.com>
6720         * gcc-interface/misc.c (gnat_expand_expr): Remove.
6721         (LANG_HOOKS_EXPAND_EXPR): Remove.
6723 2009-04-17  Robert Dewar  <dewar@adacore.com>
6725         * sem_ch3.adb: Minor reformatting
6727 2009-04-17  Pascal Obry  <obry@adacore.com>
6729         * adaint.c: Add __gnat_use_acl global variable to control use of ACL.
6731 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
6733         * sem_ch3.adb (Build_Derived_Enumeration_Type): Diagnose properly
6734         illegal constraints on type derived from formal discrete types.
6736 2009-04-17  Thomas Quinot  <quinot@adacore.com>
6738         PR ada/35953
6740         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
6741         g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
6742         g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb,
6743         g-socket.ads (GNAT.Sockets.Thin.C_Send,
6744         GNAT.Sockets.Thin.Syscall_Send): Remove unused subprograms.
6745         Replace calls to send(2) with equivalent sendto(2) calls.
6746         (GNAT.Sockets.Send_Socket): Factor common code in inlined subprogram.
6747         (GNAT.Sockets.Write): Account for the case of hyper-empty arrays, do not
6748         report an error in that case. Factor code common to the two versions
6749         (datagram and stream) in common routine Stream_Write.
6751 2009-04-17  Robert Dewar  <dewar@adacore.com>
6753         * exp_disp.adb: Minor reformatting
6754         Minor code reorganization (use Nkind_In)
6756         * prepcomp.adb: Minor reformatting
6758         * sem_ch3.adb: Minor reformatting
6760         * sem_res.adb: Minor comment addition
6762         * exp_ch5.adb (Expand_Assign_Array): Use Has_Address_Clause to test
6763         for address clause
6765         * lib-xref.adb (Generate_Reference): Exclude recursive calls from
6766         setting Is_Referenced
6768         * types.ads: Minor reformatting
6770 2009-04-17  Arnaud Charlet  <charlet@adacore.com>
6772         * gnat_ugn.texi: Initial documentation on binding generator.
6774 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
6776         * einfo.ads, einfo.adb: New attribute Underlying_Record_View, to handle
6777         type extensions whose parent is a type with unknown discriminants.
6779         * exp_aggr.adb (Expand_Record_Aggregate): If the type of an extension
6780         aggregate has unknown discriminants, use the Underlying_Record_View to
6781         obtain the discriminants of the ancestor part.
6783         * exp_disp.adb (Build_Dispatch_Tables): Types that are
6784         Underlying_Record_Views share the dispatching information of the
6785         original record extension.
6787         * exp_ch3.adb (Expand_Record_Extension): If the type inherits unknown
6788         discriminants, propagate dispach table information to the
6789         Underlying_Record_View.
6791         * sem_ch3.adb (Build_Derived_Private_Type): If parent type has unknown
6792         discriminants and declaration is not a completion, generate
6793         Underlying_Record_View to provide proper discriminant information to
6794         the front-end and to gigi.
6796 2009-04-17  Robert Dewar  <dewar@adacore.com>
6798         * s-conca5.adb, g-sercom.adb, s-conca5.ads, s-conca7.adb, exp_imgv.adb,
6799         s-conca7.ads, s-crc32.adb, s-crc32.ads, s-conca9.adb, s-conca9.ads,
6800         s-addope.adb, i-cstrin.ads, s-addope.ads, s-carun8.adb, s-carun8.ads,
6801         g-htable.ads, g-hesora.adb, g-hesora.ads, s-htable.adb, s-htable.ads,
6802         s-conca2.adb, s-conca2.ads, a-except.adb, s-conca4.adb, a-except.ads,
6803         s-conca4.ads, s-except.adb, s-except.ads, s-conca6.adb, s-conca6.ads,
6804         g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads, s-conca8.adb,
6805         s-conca8.ads, g-byorma.adb, g-byorma.ads, s-memory.adb, s-memory.ads,
6806         g-speche.adb, g-speche.ads, g-stsifd-sockets.adb, exp_dist.adb,
6807         s-imgenu.adb, s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-exctab.adb,
6808         s-exctab.ads, s-imenne.adb, s-imenne.ads, s-casuti.adb, osint.adb,
6809         s-assert.adb, s-casuti.ads, s-assert.ads, s-os_lib.adb, s-conca3.adb,
6810         s-conca3.ads: Remove unneeded pragma Warnings
6812 2009-04-17  Robert Dewar  <dewar@adacore.com>
6814         * g-moreex.adb: Add comments.
6816         * s-auxdec.ads: Add ??? comment for uncommented pragma Warnings (Off)
6818         * s-auxdec-vms_64.ads: Add ??? comment for uncommented pragma
6819         Warnings (Off)
6821         * prepcomp.adb: Add ??? comment
6823         * a-tasatt.adb: Minor reformatting
6825         * g-trasym-vms-alpha.adb: Add ??? comment
6827         * g-trasym-vms-ia64.adb: Add ??? comment
6829         * xoscons.adb: Minor reformatting
6831         * s-tassta.adb: Minor reformatting
6833         * s-scaval.adb: Add ??? comment
6835         * stand.ads: Minor code clean up (remove junk with of Namet)
6837         * s-strcom.adb, s-strcom.ads, s-string.adb, s-string.ads, s-sopco3.adb,
6838         s-sopco3.ads, s-strops.adb, s-strops.ads, s-sopco5.adb, s-sopco5.ads,
6839         s-wchcnv.adb, s-wchcnv.ads, s-ststop.adb, s-ststop.ads, s-soflin.adb,
6840         s-soflin.ads, s-traceb.adb, s-traceb.ads, s-traent.adb, s-traent.ads,
6841         s-secsta.adb, s-secsta.ads, s-utf_32.adb, s-utf_32.ads, s-wchcon.adb,
6842         s-wchjis.adb, s-wchcon.ads, s-wchjis.ads, s-sopco4.adb, s-sopco4.ads,
6843         s-stache.adb, s-stache.ads, s-stoele.adb, s-stoele.ads, s-stalib.adb,
6844         s-stalib.ads, s-os_lib.ads, s-purexc.ads: Remove no longer needed
6845         Warnings off pragmas.
6847 2009-04-17  Pascal Obry  <obry@adacore.com>
6849         * initialize.c: Fix test for reallocating the arguments array.
6851 2009-04-17  Geert Bosch  <bosch@adacore.com>
6853         * exp_fixd.adb (Expand_Convert_Float_To_Fixed): Have float to fixed
6854         conversion truncate only for decimal fixed point types.
6856 2009-04-17  Jerome Lambourg  <lambourg@adacore.com>
6858         * g-comlin.adb (Initialize_Scan_Option): Make sure the sections are
6859         reinitialized.
6861 2009-04-17  Robert Dewar  <dewar@adacore.com>
6863         * exp_ch5.adb (Expand_Assign_Array): Do not set Forwards_OK and
6864         Backwards_OK if either operand has an address clause.
6866 2009-04-17  Pascal Obry  <obry@adacore.com>
6868         * initialize.c: Code clean up, use realloc.
6870 2009-04-17  Pascal Obry  <obry@adacore.com>
6872         * initialize.c: Do not get Unicode command line if Unicode support not
6873         activated.
6874         Add support for wildcard expansion for Unicode parameters on Win32.
6876         * mingw32.h: Add missing macros when Unicode support not activated.
6878 2009-04-17  Javier Miranda  <miranda@adacore.com>
6880         * sem_ch6.adb (Check_Anonymous_Return): Add missing checks to
6881         avoid generating code that references the Current_Master
6882         when compiling without tasks.
6884 2009-04-17  Vincent Celier  <celier@adacore.com>
6886         * prj-attr.adb: New project level attribute Target
6887         
6888         * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
6889         attribute Target
6890         
6891         * prj.ads (Project_Configuration): New component Target
6893 2009-04-17  Thomas Quinot  <quinot@adacore.com>
6895         * exp_ch7.adb (Expand_Ctrl_Function_Call): Remove incorrect special
6896         case for the case of an aggregate component, the attach call for the
6897         result is actually needed.
6899         * exp_aggr.adb (Backend_Processing_Possible): Backend processing for
6900         an array aggregate must be disabled if the component type requires
6901         controlled actions.
6903         * exp_ch3.adb: Minor reformatting
6905 2009-04-17  Bob Duff  <duff@adacore.com>
6907         * output.ads (Indent,Outdent): New procedures for indenting the output.
6908         (Write_Char): Correct comment -- LF _is_ allowed.
6910         * output.adb (Indent,Outdent): New procedures for indenting the output.
6911         Keep track of the indentation level, and make sure it doesn't get too
6912         high.
6913         (Flush_Buffer): Insert spaces at the beginning of each line, if
6914         indentation level is nonzero.
6915         (Save_Output_Buffer,Restore_Output_Buffer): Save and restore the current
6916         indentation level.
6917         (Set_Standard_Error,Set_Standard_Output): Remove superfluous
6918         "Next_Col := 1;".  Flush_Buffer does that.
6920         * sem_ch6.adb, sem_ch7.adb (Debug_Flag_C): Reorganize the output
6921         controlled by the -gnatdc switch. It now occurs on entry/exit to the
6922         relevant analysis routines, and calls Indent/Outdent to make the
6923         indentation reflect the nesting level.  Add "helper" routines, since
6924         otherwise lots of "return;" statements would skip the debugging output.
6926 2009-04-17  Arnaud Charlet  <charlet@adacore.com>
6928         * s-taprop-tru64.adb, s-taprop-vms.adb, s-taprop-linux.adb,
6929         s-taprop-solaris.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
6930         s-taprop-posix.adb (Suspend_Until_True): Protect against early wakeup.
6932 2009-04-17  Thomas Quinot  <quinot@adacore.com>
6934         * exp_aggr.adb: Minor code reorganization, no behaviour change.
6936 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
6938         * sem_ch8.adb (Use_One_Type): Handle properly a redundant use type
6939         clause in a unit that is a package body or a subunit, when the previous
6940         clause appears in a spec or a parent.
6942 2009-04-17  Thomas Quinot  <quinot@adacore.com>
6944         * sinfo.ads, exp_aggr.adb, exp_aggr.ads: Minor reformatting
6946         * exp_ch7.adb: Minor reformatting
6948 2009-04-17  Bob Duff  <duff@adacore.com>
6950         * exp_ch4.adb (Expand_Allocator_Expression): In an initialized
6951         allocator, check that the expression of the qualified expression obeys
6952         the constraints of the subtype of the qualified expression.
6954 2009-04-17  Thomas Quinot  <quinot@adacore.com>
6956         * sprint.adb (Write_Itype): Add handling of enumeration subtypes.
6958 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
6960         * exp_ch4.adb (Expand_Allocator_Expression): Apply constraint check to
6961         aggregate, using context imposed by subtype mark in allocator.
6963 2009-04-17  Pascal Obry  <obry@adacore.com>
6965         * gnat_rm.texi: Document GNAT_CODE_PAGE environment variable
6967 2009-04-17  Nicolas Roche  <roche@adacore.com>
6969         * initialize.c (__gnat_initialize): remove MAX_PATH limitation on each
6970         argument length.
6972 2009-04-17  Gary Dismukes  <dismukes@adacore.com>
6974         * sem_elim.adb (Eliminate_Error_Msg): Minor change to error message to
6975         cover both calls and attribute references ("call" => "reference").
6977 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
6979         * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype of an access
6980         type for which Storage_Size is set to 0 is legal in a pure unit.
6982 2009-04-17  Thomas Quinot  <quinot@adacore.com>
6984         * exp_ch7.adb: Minor reformatting
6986 2009-04-17  Robert Dewar  <dewar@adacore.com>
6988         * restrict.adb (Check_Restriction_No_Dependence): Don't check
6989         restriction if outside main extended source unit.
6991         * sem_ch10.adb (Analyze_With_Clause): Check No_Dependence restriction
6992         for parents of child units as well as the child unit itself.
6994 2009-04-17  Bob Duff  <duff@adacore.com>
6996         * checks.ads: Minor comment fix
6998         * exp_aggr.ads: Minor comment fix
7000 2009-04-17  Nicolas Roche  <roche@adacore.com>
7002         * adaint.c: Improve cross compiler detection and handling.
7004 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
7006         * exp_ch4.adb (Expand_Concatenation): Do not use calls at -Os.
7008 2009-04-17  Pascal Obry  <obry@adacore.com>
7010         * mingw32.h: Add S2WSC and WS2SC macros to convert to/from
7011         CurrentCodePage.
7013         * adaint.h: Encoding_Unspecified is now defined. Corresponds to the
7014         value when no encoding form paramter is set on Text_IO services.
7016         * adaint.c: CurrentCodePage new variable on Windows.
7017         Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
7018         ones.
7020         * mkdir.c: Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
7021         ones.
7023         * initialize.c: Initialize CurrentCodePage depending on GNAT_CODE_PAGE
7024         environment variable value. Default is UTF-8.
7026         * s-crtl.ads: Filename_Encoding add Unspecified in the enumeration type.
7027         fopen and freopen encoding parameter is now set to Unspecified.
7028         The default value is in this case UTF-8 (as it was before) but
7029         use the new macros that convert to/from the code page set
7030         at runtime (CurrentCodePage).
7032         * s-fileio.adb: When no encoding specified use Unspecified value.
7034 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
7036         * atree.adb, atree.ads: Remove dead code.
7038 2009-04-17  Arnaud Charlet  <charlet@adacore.com>
7040         * gcc-interface/Make-lang.in: Update dependencies.
7042 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
7044         * sem_ch3.adb (Access_Subprogram_Definition): Additional checks on
7045         illegal uses of incomplete types in formal parts and return types.
7047         * sem_ch6.adb (Process_Formals): Taft-amendment types are legal in
7048         access to subprograms.
7050         * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to use
7051         Taft-amendment types as the return type of an access_to_function type.
7053         * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
7054         type for access_to_subprograms. The check is performed on package exit.
7056 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
7058         * atree.ads, atree.adb: Move New_Copy_Tree.to sem_util.
7060         * nlists.ads, nlists.adb: Move New_Copy_List to sem_util.
7061         
7062         * lib-load.adb: Use Copy_Separate_Tree rather than New_Copy_Tree
7064         * sem_util.ads, sem_util.adb: New_Copy_Tree and New_Copy_List belong in
7065         semantic units, because the handling of itypes in the copied tree
7066         requires semantic information that does not belong in atree.
7068 2009-04-17  Robert Dewar  <dewar@adacore.com>
7070         * par-ch6.adb: Minor reformatting
7072         * prj.adb: Minor reformatting
7074 2009-04-17  Gary Dismukes  <dismukes@adacore.com>
7076         * par-ch6.adb (P_Subprogram): Overriding indicators should be allowed
7077         on protected subprogram bodies, so exclude the case where Pf_Flags is
7078         Pf_Decl_Pbod from the error check.
7080         * par-ch9.adb (P_Protected_Operation_Items): Permit overriding
7081         indicators on subprograms in protected bodies, and proceed with parsing
7082         the subprogram.
7084         * sem_ch6.adb (Verify_Overriding_Indicator): Exclude protected
7085         subprograms from the check for primitiveness on subprograms with
7086         overriding indicators.
7087         (Check_Overriding_Indicator): Include protected subprograms in the
7088         style check for missing overriding indicators.
7090 2009-04-17  Tristan Gingold  <gingold@adacore.com>
7092         * init.c: Fix stack checking for x86 Darwin.
7094 2009-04-17  Vincent Celier  <celier@adacore.com>
7096         * prj-attr.adb: New project level attribute Object_File_Suffix
7097         (<language>).
7098         
7099         * prj-nmsc.adb (Add_Source): Use the object file suffix to get the
7100         object file name
7101         (Process_Compiler): Process attribute Object_File_Suffix
7103         * prj.adb (Object_Name): Use suffix Object_File_Suffix instead of
7104         platform suffix, when specified.
7106         * prj.ads (Language_Config): New component Object_File_Suffix,
7107         defaulted to No_Name.
7108         (Object_Name): New parameter Object_File_Suffix, defaulted to No_Name
7110         * snames.ads-tmpl: New standard name Object_File_Suffix
7112 2009-04-17  Robert Dewar  <dewar@adacore.com>
7114         * gnat_rm.texi: Add documentation about No_Streams restriction
7116         * sem_attr.adb (Check_Stream_Attribute): Exclude implicit stream
7117         attributes when checking No_Streams restriction.
7119 2009-04-17  Thomas Quinot  <quinot@adacore.com>
7121         * rtsfind.ads (RE_Request_Destroy): New PolyORB s-parint entity.
7123         * exp_dist.adb (PolyORB_Support.Build_General_Calling_Stubs): Add
7124         missing calls to RE_Request_Destroy to deallocate request objects after
7125         use.
7127 2009-04-17  Nicolas Setton  <setton@adacore.com>
7129         * link.c: Fix support for passing a response file under Darwin.
7131 2009-04-17  Emmanuel Briot  <briot@adacore.com>
7133         * prj.adb (Free): new subprogram.
7135 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
7137         * sem_ch3.adb: additional initialization on incomplete subtypes.
7138         
7139         * sem_ch6.adb (Process_Formals): if the subprogram is in the private
7140         part and one of the formals is an incomplete tagged type, attach to
7141         list of private dependends of the type for later validation.
7143         * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to declare
7144         primitive operations of a Taft-amendmment type.
7146         * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
7147         type. The check is performed on package exit, possibly after the
7148         subprogram is frozen.
7150 2009-04-17  Vincent Celier  <celier@adacore.com>
7152         * prj-nmsc.adb (Get_Directories): Get the object and exec directory
7153         before looking for source directories, but make sure that there are nil
7154         if they are not explicitely declared and there is explicitely no
7155         sources in the project.
7157 2009-04-17  Pascal Obry  <obry@adacore.com>
7159         * initialize.c: Set gnat_argv with UTF-8 encoded strings on Windows.
7161         * init.c: Fix minor typo and style fix.
7163 2009-04-17  Robert Dewar  <dewar@adacore.com>
7165         * a-except.adb, a-except-2005.adb: Add PE_Address_Of_Intrinsic
7167         * sem_attr.adb (Analyze_Attribute, case Address): Use
7168         PE_Address_Of_Intrinsic.
7170         * types.ads: Add PE_Address_Of_Intrinsic
7172         * types.h: Add PE_Address_Of_Intrinsic
7174 2009-04-17  Nicolas Setton  <setton@adacore.com>
7176         * gcc-interface/Makefile.in: Under darwin, build shared libraries
7177         with install_name starting with "@rpath/".
7179 2009-04-17  Nicolas Setton  <setton@adacore.com>
7181         * link.c: Add darwin section
7183 2009-04-16  Robert Dewar  <dewar@adacore.com>
7185         * g-pehage.adb: Minor reformatting
7187         * sem_ch12.adb: Minor reformatting
7189         * exp_dist.adb: Minor reformatting
7191         * bindgen.adb: Minor style fixes.
7193 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
7195         * sem_eval.adb (Eval_Indexed_Component): Extend constant-folding of
7196         indexed components to the case where the prefix is a static string
7197         literal.
7199 2009-04-16  Javier Miranda  <miranda@adacore.com>
7201         * exp_ch3.adb (Expand_N_Object_Declaration): In case of build-in-place
7202         objects avoid any further expansion of the expression initializing the
7203         object.
7205 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
7207         * sem_ch12.adb (Preanalyze_Actuals): If the instance is a child unit
7208         that hides an outer homograph, make that homograph invisible when
7209         analyzing the actuals, to to prevent illegal direct visibility on it.
7211 2009-04-16  Eric Botcazou  <ebotcazou@adacore.com>
7213         * g-pehage.adb (Initialize): Fix off-by-one error.
7215 2009-04-16  Tristan Gingold  <gingold@adacore.com>
7217         * init.c: Detect real stack overflow on Darwin.
7219         * system-darwin-x86.ads: Use stack probing on darwin x86.
7221 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
7223         * sem_attr.adb (Analyze_Attribute, case 'Address): It is illegal to
7224         take the address of an intrinsic subprogram.
7226 2009-04-16  Arnaud Charlet  <charlet@adacore.com>
7228         * gcc-interface/Makefile.in: Change g-trasym to g-trasym-unimplemented
7229         for the targets where GNAT.Traceback.Symbolic is not supported.
7231 2009-04-16  Vincent Celier  <celier@adacore.com>
7233         * g-trasym-unimplemented.ads, g-trasym-unimplemented.adb: New file.
7235         * g-trasym.ads: Update comments.
7237 2009-04-16  Vasiliy Fofanov  <fofanov@adacore.com>
7239         * tracebak.c (STOP_FRAME): Verify validity of the current address
7240         before dereferencing.
7242 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
7244         * sprint.adb (Write_Itype): If the itype is an array subtype, preserve
7245         the original location of the index expressions and the index subtypes,
7246         to prevent spurious out-of-scope references in gigi.
7248 2009-04-16  Tristan Gingold  <gingold@adacore.com>
7250         * init.c, s-osinte-darwin.ads, system-darwin-x86_64.ads:
7251         Add support for stack checking on darwin.
7253 2009-04-16  Vincent Celier  <celier@adacore.com>
7255         * prj-attr.adb: New attribute Runtime_Source_Dir
7257         * prj-nmsc.adb (Process_Project_Level_Array_Attributes): Process
7258         attribute Runtime_Source_Dir.
7259         (Check_Naming_Schemes): Give default values to out parameters to avoid
7260         invalid data.
7262         * prj.ads (Language_Config): New component Runtime_Source_Dir
7264         * snames.ads-tmpl: New standard name Runtime_Source_Dir
7266 2009-04-16  Pascal Obry  <obry@adacore.com>
7268         * adaint.h, adaint.c (__gnat_rmdir): New routine.
7269         Simple wrapper routines used to convert to proper encoding on
7270         Windows.
7272         * s-crtl.ads: Use __gnat_rmdir instead of direct call to the C library.
7274         * g-dirope.adb (Remove_Dir): Fix a bug, the root directory was removed
7275         twice.
7277 2009-04-16  Pascal Obry  <obry@adacore.com>
7279         * s-crtl.ads, s-os_lib.adb: Minor code clean-up.
7281 2009-04-16  Thomas Quinot  <quinot@adacore.com>
7283         * snames.ads-tmpl (Name_Defined): New predefined name for use by the
7284         integrated preprocessor.
7286         * prep.ads, prep.adb (Setup_Hooks): New subprogram.
7287         (Initialize): Split into two subprograms, Initialize (to be called
7288         prior to compiler command line processing) and Setup_Hooks (to be called
7289         later on when the first source file is loaded).
7291         * gprep.adb: Change call to Prep.Initialize to call to Prep.Setup_Hooks.
7292         Add call to Prep.Initialize.
7294         * sinput-l.adb, prepcomp.adb: Change call to Prep.Initialize to call
7295         to Prep.Setup_Hooks.
7297 2009-04-16  Pascal Obry  <obry@adacore.com>
7299         * adaint.h, adaint.c (__gnat_chdir): New routine.
7300         Simple wrapper routines used to convert to proper encoding on
7301         Windows.
7303         * s-crtl.ads: Use __gnat_chdir instead of direct call to the C library.
7305         * a-direct.adb, g-dirope.adb: Use chdir from System.CRTL.
7307 2009-04-16  Quentin Ochem  <ochem@adacore.com>
7309         * sinput-p.adb (Clear_Source_File_Table): Use Sinput.Initialize instead
7310         of Source.Init.
7312 2009-04-16  Eric Botcazou  <ebotcazou@adacore.com>
7314         * a-convec.ads (Is_Empty): Mark inline.
7316 2009-04-16  Nicolas Roche  <roche@adacore.com>
7318         * init.c (__gnat_init_float): Initialize FPU on x86_64 windows
7320 2009-04-16  Thomas Quinot  <quinot@adacore.com>
7322         * prepcomp.adb: Minor reformatting
7324 2009-04-16  Jerome Lambourg  <lambourg@adacore.com>
7326         * sem_prag.adb (Process_Import_Or_Interface): With .NET,
7327         Access_Subprogram types can also be imported.
7328         (Check_Form_Of_Interface_Name): Accept '/' character in entity CIL
7329         names.
7331 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
7333         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
7334         preserve homonym chain when the declaration is rewritten into a
7335         renaming declaration, in order to preserve visibility structure.
7337 2009-04-16  Jerome Lambourg  <lambourg@adacore.com>
7339         * sem_prag.adb (Analyze_Pragma): Make sure that pragma pack is not
7340         taken into account for VM targets.
7342 2009-04-16  Hristian Kirtchev  <kirtchev@adacore.com>
7344         * g-calend.ads, g-calend.adb (Week_In_Year): Now calls
7345         Year_Week_In_Year.
7346         (Year_Week_In_Year): New routine which contains the original code from
7347         Week_In_Year. Add the missing special case for January 1st falling on
7348         a Monday.
7350 2009-04-16  Thomas Quinot  <quinot@adacore.com>
7352         * exp_dist.adb (Build_From_Any_Call): For a subtype that is a generic
7353         actual type, use the base type to build the To_Any function.
7354         (Build_From_Any_Function): Remove junk, useless subtype conversion.
7356 2009-04-16  Thomas Quinot  <quinot@adacore.com>
7358         * exp_ch9.adb, exp_code.adb, tbuild.adb, sem_case.adb,
7359         restrict.adb: Minor code reorganization (use
7360         Add_{Char,Str}_To_Name_Buffer instead of inlining it by hand).
7362 2009-04-16  Bob Duff  <duff@adacore.com>
7364         * exp_ch6.ads, exp_ch6.adb (Is_Build_In_Place_Function_Return): Remove,
7365         unused.
7367 2009-04-16  Thomas Quinot  <quinot@adacore.com>
7369         * sem_ch4.adb: Minor reformatting
7371         * adaint.c: Remove junk duplicated code.
7373         * sem_ch3.adb: Minor reformatting
7375         * exp_dist.adb: Minor comment rewording
7377 2009-04-16  Robert Dewar  <dewar@adacore.com>
7379         * gnat_rm.texi: Document effect of Assume_No_Invalid_Values and -gnatVa
7380         used together.
7382 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
7384         * sem_ch4.adb (Find_Equality_Types): Filter out types that are not
7385         usable before calling Add_One_Interp, to resolve spurious ambiguities.
7387 2009-04-16  Robert Dewar  <dewar@adacore.com>
7389         * Make-lang.in: Add entries for s-conca?.o
7391         * Makefile.rtl: Add entries for s-conca?
7393         * debug.adb: Add debug flags -gnatd.c and -gnatd.C to control behavior
7394         of concatenation expansion
7396         * exp_ch4.adb (Expand_Concatenation): Generate calls for certain
7397         string cases instead of expanding assignments inline.
7399         * opt.ads (Optimize_Size): New flag
7401         * s-conca2.ads, s-conca2.adb, s-conca3.adb, s-conca3.ads,
7402         s-conca4.adb, s-conca4.ads, s-conca5.adb, s-conca5.ads, s-conca6.adb,
7403         s-conca6.ads, s-conca7.ads, s-conca7.adb, s-conca8.adb, s-conca8.ads,
7404         s-conca9.adb, s-conca9.ads: New file.
7406 2009-04-16  Robert Dewar  <dewar@adacore.com>
7408         * exp_ch6.adb: Add comments
7410         * rtsfind.ads: Add entries for s-conca? routines
7412 2009-04-16  Arnaud Charlet  <charlet@adacore.com>
7414         * gcc-interface/Make-lang.in: Update dependencies.
7416         * gcc-interface/Makefile.in: Update translation for vms.
7418 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
7420         * sem_ch12.adb (Map_Formal_Package_Entities): renamed from Map_Entities
7421         and made global, to be used when installing parents of a child
7422         instance, to provide mappings for entities declared in formal packages
7423         of ancestor units. Now called from Install_Formal_Packages.
7425 2009-04-16  Doug Rupp  <rupp@adacore.com>
7427         * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events with others
7428         notation for clarity.
7430         * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
7431         s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
7432         s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-posix.adb
7433         (Initialize): Initialize Known_Tasks with Environment task.
7435         * s-taskin.ads (Task_States): Move new states to end for the sake of
7436         GDB compatibility.
7438         * s-tassta.adb (Task_Wrapper): Fix comment about Enter_Task.
7440 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
7442         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): If a protected
7443         operation has an inline pragma, propagate the flag to the internal
7444         unprotected subprogram.
7446 2009-04-16  Doug Rupp  <rupp@adacore.com>
7448         * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-mingw.adb,
7449         s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-irix.adb, 
7450         s-taprop-hpux-dce.adb, s-taprop-posix.adb
7451         (Enter_Task): Move Known_Tasks initialization to s-tassta.adb
7453         * s-taprop-vms.adb (Enter_Task): Likewise.
7454         (Initialize): Import DBEXT, Debug_Register. Register DBGEXT callback.
7456         * s-tassta.adb (Activate_Tasks): After task creation set state to
7457         Activating, vice Runnable. Initialize Known_Tasks, moved here from
7458         s-taprop.adb (Enter_Task). Set Debug_Event_Activating for debugger.
7459         Set state to Runnable after above.
7460         (Task_Wrapper): Set Debug_Event_Run. In exception block set
7461         Debug_Event_Terminated.
7463         * s-taskin.ads (Task_States): Add new states Activiting and
7464         Activator_Delay_Sleep.
7465         (Bit_Array, Debug_Event_Array): New types.
7466         (Global_Task_Debug_Event_Set: New flag.
7467         (Common_ATCB): New field Debug_Events.
7469         * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events.
7471         * s-tasren.adb (Timed_Selective_Wait): Set Activator_Delay_Sleep vice
7472         Activator_Sleep.
7474         * s-tasini.adb (Locked_Abort_To_Level): Add case alternatives for when
7475         Activating and when Acceptor_Delay_Sleep.
7477         * s-tasdeb.ads: Add constants for Debug_Events.
7478         (Debug_Event_Kind_Type): New subtype.
7479         (Signal_Debug_Event): New subprogram.
7481         * s-tasdeb.adb (Signal_Debug_Event): New null subprogram.
7483 2009-04-16  Thomas Quinot  <quinot@adacore.com>
7485         * sem_elim.adb: Minor reformatting
7487         * freeze.adb: Minor reformatting
7489         * exp_ch4.adb: Minor reformatting
7491 2009-04-16  Emmanuel Briot  <briot@adacore.com>
7493         * prj-nmsc.adb (Path_Name_Of): fix memory leak
7495 2009-04-16  Robert Dewar  <dewar@adacore.com>
7497         * sinfo.ads (Backwards_OK, Forwards_OK): Clarify documentation
7499 2009-04-16  Vincent Celier  <celier@adacore.com>
7501         * fmap.adb (Initialize): Show the current line when the mapping file
7502         is detected as "incorrectly formatted".
7504 2009-04-16  Robert Dewar  <dewar@adacore.com>
7506         * sem_ch12.adb: Minor reformatting
7508         * sem_ch5.adb: Minor comment addition
7510         * sem_util.adb: Minor reformatting
7512         * sinput-p.adb: Minor reformatting
7513         Add missing pragma Warnings (On)
7515 2009-04-16  Ed Falis  <falis@adacore.com>
7517         * s-vxwext-kernel.adb: (ERROR): deleted unused constant
7519 2009-04-16  Vincent Celier  <celier@adacore.com>
7521         * ali-util.adb: Minor comment spelling error fix
7523 2009-04-16  Eric Botcazou  <ebotcazou@adacore.com>
7525         * exp_ch5.adb (Expand_Assign_Array): For the GCC back-end, do not
7526         generate an assignment loop in case of overlap.
7528 2009-04-16  Olivier Hainque  <hainque@adacore.com>
7530         * gnat_ugn.texi (gnatmem description): Make it explicit that
7531         gnatmem is designed to work in association with static runtime
7532         library only.
7534 2009-04-16  Thomas Quinot  <quinot@adacore.com>
7536         * sem_type.adb: Minor reformatting
7538 2009-04-16  Hristian Kirtchev  <kirtchev@adacore.com>
7540         * s-osprim-darwin.adb, s-osprim-posix.adb (Clock): Add comment
7541         concerning return codes of gettimeofday and return value check.
7543 2009-04-16  Ed Falis  <falis@adacore.com>
7545         * s-vxwext-kernel.ads (Int_Lock, Int_Unlock): set to convention C so
7546         body can be renaming of imported routines.
7548 2009-04-16  Vasiliy Fofanov  <fofanov@adacore.com>
7550         * s-asthan-vms-alpha.adb: Disable warnings on alignment in a more
7551         targeted fashion.
7553 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
7555         * exp_ch9.adb: Comment improvements.
7556         (Build_Entry_Family_Name): Add parentheses around the index of a entry
7557         family member.
7559 2009-04-15  Bob Duff  <duff@adacore.com>
7561         * sem_warn.adb (Check_Infinite_Loop_Warning): Catch cases like
7562         "while X /= null loop" where X is unchanged inside the loop. We were
7563         not warning in this case, because of the pointers -- we feared that the
7564         loop variable could be updated via a pointer, if there are any pointers
7565         around the place. But that is impossible in this case.
7567         * sem_util.adb (May_Be_Lvalue): This routine was overly pessimistic in
7568         the case of dereferences. In X.all, X cannot be an l-value. We now
7569         catch that case (and implicit dereferences, too).
7571 2009-04-15  Vincent Celier  <celier@adacore.com>
7573         * sinput-p.ads, sinput-p.adb (Clear_Source_File_Table): New procedure
7575 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7577         * sem_ch12.adb (Is_Actual_Of_Previous_Formal): Make fully recursive.
7578         From code reading.
7579         (Analyze_Package_Instantiation): If generic unit in child instance is
7580         the same as generic unit in parent instance, look for an outer homonym
7581         to locate the desired generic.
7583 2009-04-15  Bob Duff  <duff@adacore.com>
7585         * sem_ch5.adb (Analyze_Loop_Statement): Don't check for infinite loop
7586         warnings unless the loop comes from source, because checking generated
7587         loops is a waste of time, and makes it harder to debug
7588         Check_Infinite_Loop_Warning.
7590         * sem_warn.adb (Check_Infinite_Loop_Warning): If the local variable
7591         tested in the while loop is a renaming, do not warn. Otherwise, we get
7592         false alarms, because it's usually renaming something that we can't
7593         deal with (an indexed component, a global variable, ...).
7595         * gnat_rm.texi: Fix typo
7597 2009-04-15  Thomas Quinot  <quinot@adacore.com>
7599         * sem_ch6.adb: Minor reformatting
7601 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
7603         * exp_ch7.adb (Expand_Ctrl_Function_Call): Check for the case where the
7604         immediate parent of the controlled function call is a component
7605         association.
7607 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7609         * sem_ch8.adb (Use_One_Type): If the type is tagged, indicate that the
7610         corresponding class-wide type is also in use.
7612 2009-04-15  Thomas Quinot  <quinot@adacore.com>
7614         * frontend.adb: Minor comment fix
7616 2009-04-15  Robert Dewar  <dewar@adacore.com>
7618         * gnatchop.adb (BOM_Length): New global variable
7619         (Write_Unit): Add new parameter Write_BOM
7620         (Write_Chopped_Files): Check for BOM and set Write_BOM for call
7621         to Write_Unit
7623         * gnat_ugn.texi: Add note on propagation of BOM by gnatchop
7625 2009-04-15  Geert Bosch  <bosch@adacore.com>
7627         * system-mingw-x86_64.ads, system-darwin-x86_64.ads
7628         (Backend_Overflow_Checks): Set to True.
7630 2009-04-15  Gary Dismukes  <dismukes@adacore.com>
7632         * par-ch3.adb (P_Type_Declaration): Issue an error if the synchronized
7633         keyword is given in a record extension.
7635 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
7637         * exp_ch7.adb (Expand_Ctrl_Function_Call): Procede with the expansion
7638         of a controlled function call in the context of a record aggregate.
7639         This does not apply to array aggregates since the call will be expanded
7640         into assignments.
7642 2009-04-15  Ed Falis  <falis@adacore.com>
7644         * s-osinte-vxworks-kernel.adb, s-osinte-vxworks.adb,
7645         s-osinte-vxworks.ads s-vxwext.ads, s-vxwext-kernel.adb,
7646         s-vxwext-kernel.ads, s-vxwext-rtp.ads, s-vxwext-rtp.adb: Reorganize
7647         s-osinte-vxworks* and s-vxwext*.
7649 2009-04-15  Arnaud Charlet  <charlet@adacore.com>
7651         * gcc-interface/Make-lang.in: Update dependencies.
7653         * gcc-interface/Makefile.in: Reorganization of s-osinte-vxworks*
7654         and s-vxwext*.
7656 2009-04-15  Robert Dewar  <dewar@adacore.com>
7658         * sem_ch13.adb (Unchecked_Conversions): Store source location instead
7659         of node for location for warning messages.
7661         * gnatchop.adb: Minor reformatting
7663 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7665         * exp_ch6.adb: additional guard for renaming declarations for in
7666         parameters of an array type.
7668 2009-04-15  Robert Dewar  <dewar@adacore.com>
7670         * sem_eval.adb (Get_Static_Length): Go to origin node for array bounds
7671         in case they were rewritten by expander (Force_Evaluation).
7673         * targparm.adb (Get_Target_Parameters): Correct check for
7674         Suppress_Exception_Locations.
7676 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7678         * exp_ch6.adb (Expand_Inlined_Call): If an in-parameter in a call to be
7679         inlined  is of an array type that is not bit-packed, use a renaming
7680         declaration to capture its value, rather than a constant declaration.
7682 2009-04-15  Robert Dewar  <dewar@adacore.com>
7684         * rtsfind.adb: Minor reformatting.
7686 2009-04-15  Emmanuel Briot  <briot@adacore.com>
7688         * prj-part.adb, prj-tree.adb, prj-tree.ads (Restore_And_Free): renames
7689         Restore, and free the saved context.
7691 2009-04-15  Gary Dismukes  <dismukes@adacore.com>
7693         * sem_ch3.adb (Analyze_Private_Extension_Declaration): Move error check
7694         for illegal private extension from a synchronized interface parent in
7695         front of check for illegal limited extension so that limited extension
7696         from a synchronized interface will be rejected.
7697         (Check_Ifaces): Check that a private extension that has a synchronized
7698         interface as a progenitor must be explicitly declared synchronized.
7699         Also check that a record extension cannot derive from a synchronized
7700         interface.
7702 2009-04-15  Pascal Obry  <obry@adacore.com>
7704         * adaint.h (__gnat_unlink): Add spec.
7705         (__gnat_rename): Likewise.
7707 2009-04-15  Vincent Celier  <celier@adacore.com>
7709         * prj-nmsc.adb: Minor spelling error corrections in error messages
7711 2009-04-15  Robert Dewar  <dewar@adacore.com>
7713         * sinfo.ads: Minor comment update
7715         * opt.ads: Minor comment updates
7717         * checks.adb (Enable_Overflow_Check): Do not set Do_Overflow_Check for
7718         modular type.
7720 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7722         * exp_disp.ads, exp_disp.adb (Register_Primitive): Is now a function
7723         that generates the code needed to update a dispatch table when a
7724         primitive operation is declared with a subprogram body without previous
7725         spec. Insertion of the generated code is responsibility of the caller.
7726         (Make_DT): When building static tables, append the code created by
7727         Register_Primitive to update a secondary table after it has been
7728         constructed.
7730         * exp_ch3.adb, exp_ch6.adb: use new version of Register_Primitive.
7732         * sem_disp.adb (Check_Dispatching_Operation): Call Register_Primitive
7733         on an overriding operation that implements an interface operation only
7734         if not building static dispatch tables.
7736 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
7738         * a-caldel-vms.adb (To_Duration): Declare a "safe" end of time which
7739         does not cause overflow when converted to Duration. Use the safe value
7740         as the maximum allowable time delay..
7742 2009-04-15  Jerome Lambourg  <lambourg@adacore.com>
7744         * g-comlin.adb (Set_Command_Line): When adding a switch with attached
7745         parameter, specify that the delimiter is NUL, otherwise "-j2" will be
7746         translated to "-j 2".
7748 2009-04-15  Bob Duff  <duff@adacore.com>
7750         * rtsfind.adb (Maybe_Add_With): Split out procedure to add implicit
7751         with_clauses, to avoid code duplication. Change this processing so we
7752         always add a with_clause on the main unit if needed.
7754 2009-04-15  Pascal Obry  <obry@adacore.com>
7756         Add support for Win32 native encoding for delete/rename routines.
7757         
7758         * adaint.c (__gnat_unlink): New routine.
7759         (__gnat_rename): New routine.
7760         Simple wrapper routines used to convert to proper encoding on
7761         Windows.
7763         * s-os_lib.adb: Use __gnat_unlink and __gnat_rename instead of direct
7764         call to the C library.
7766         * g-sercom-mingw.adb, s-win32.ads: Update Win32 binding.
7768 2009-04-15  Robert Dewar  <dewar@adacore.com>
7770         * s-tassta.adb: Minor reformatting
7772 2009-04-15  Robert Dewar  <dewar@adacore.com>
7774         * frontend.adb (Frontend): Set proper default for
7775         Warn_On_Non_Local_Exception.
7777         * opt.ads (Exception_Handler_Encountered): New flag
7778         (No_Warn_On_Non_Local_Exception): New flag
7780         * par-ch11.adb (P_Exception_Handler): Set Exception_Handler_Encountered
7782         * sem_warn.adb (Set_Warning_Switch): Set No_Warn_On_Non_Local_Exception
7783         (Set_Dot_Warning_Switch): Set No_Warn_On_Non_Local_Exception
7785 2009-04-15  Cyrille Comar  <comar@adacore.com>
7787         * s-tassta.adb, a-exextr.adb, a-elchha.adb
7788         (Ada.Exception.Last_Chance_Handler): Do not print unhandled exception
7789         message when exception traces are active since it would generate
7790         redundant information.
7791         (Exception_Traces.Notify_Exception): put message output by a critical
7792         section to avoid unsynchronized output.
7793         (Trace_Unhandled_Exception_In_Task): put message output by a critical
7794         section to avoid unsynchronized output.
7796 2009-04-15  Emmanuel Briot  <briot@adacore.com>
7798         * g-comlin.adb, prj-tree.adb, prj-tree.ads, prj.adb, prj.ads
7799         (Free): New subprogram.
7801 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
7803         * a-calend.adb: Add new constant Nanos_In_Four_Years.
7804         (Formatting_Operations.Time_Of): Change the way four year chunks of
7805         nanoseconds are added to the intermediate result.
7807 2009-04-15  Nicolas Setton  <setton@adacore.com>
7809         * sysdep.c: Add __APPLE__ in the list of systems where get_immediate
7810         does not need to wait for a carriage return.
7812 2009-04-15  Tristan Gingold  <gingold@adacore.com>
7814         * bindgen.adb: Do not generate adafinal if No_Finalization restriction
7815         is set.
7817 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7819         * freeze.adb (Freeze_Entity): improve error message for improper use of
7820         incomplete types.
7821         Diagnose additional illegal uses of incomplete types in formal parts.
7822         appearing in formal parts.
7824         * sem_ch6.adb (Process_Formals, Analyze_Return_Type): ditto.
7826 2009-04-15  Robert Dewar  <dewar@adacore.com>
7828         * exp_ch4.adb (Expand_N_Allocator): Install test for object too large.
7830 2009-04-15  Nicolas Roche  <roche@adacore.com>
7832         * adaint.c: Add function __gnat_lwp_self that retrieves the LWP of the
7833         current thread.
7835         * s-osinte-linux.ads: Import the __gnat_lwp_self function as lwp_self
7837         * s-taprop-linux.adb (Enter_Task): Store the LWP in the TCB
7839 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7841         * sem_ch4.adb: improve error message on exponentiation.
7843 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
7845         * a-calend.adb: Move constant Epoch_Offset from package
7846         Conversion_Operations to top level.
7847         (Delay_Operations.To_Duration): Define a constant which represents
7848         "end of time" and use it as a guard against very distant delay dates.
7849         Protect the code against overflow when performing the origin shift to
7850         Unix time.
7852 2009-04-15  Robert Dewar  <dewar@adacore.com>
7854         * sem_prag.adb: Minor reformatting.
7856         * sem_type.adb: Minor reformatting
7858 2009-04-15  Javier Miranda  <miranda@adacore.com>
7860         * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Add missing
7861         support to check eliminated subprograms.
7863         * sem_elim.ads (Eliminate_Error_Msg): Update documentation.
7865         * sem_elim.adb (Set_Eliminated): Add support for elimination of
7866         dispatching subprograms.
7868         * exp_disp.adb (Make_DT): Minor code cleanup when freezing primitive
7869         operations. Initialize with "null" the slots of eliminated dispaching
7870         primitives.
7871         (Write_DT): Add output for eliminated primitives.
7873         * sem_disp.adb (Check_Dispatching_Call): Check eliminated primitives.
7875 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7877         * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit,
7878         the second is redundant, regardless of scopes.
7880 2009-04-15  Vincent Celier  <celier@adacore.com>
7882         * prj-nmsc.adb (Get_Directories): Check for sources before checking
7883         the object directory as when there are no sources, they may not be any
7884         object directory.
7886         * make.adb (Gnatmake): Do not attempt to get the path name of the exec
7887         directory, when there are no exec directory.
7889 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7891         * sem_type.adb (Remove_Conversions): In order to resolve spurious
7892         ambiguities, refine removal of universal interpretations from complex
7893         expressions with literal arguments, when some numeric operators have
7894         been declared abstract.
7896 2009-04-15  Ed Falis  <falis@adacore.com>
7898         * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity
7899         and backward compatibility for targets using probing for stack overflow
7901 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7903         * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal
7904         after any declaration, including renaming declarations.
7906 2009-04-15  Arnaud Charlet  <charlet@adacore.com>
7908         * gcc-interface/Make-lang.in: Update dependencies.
7910         * gcc-interface/Makefile.in: Fix VxWorks target pairs.
7911         Update xenomai target pairs.
7913 2009-04-15  Javier Miranda  <miranda@adacore.com>
7915         * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
7917         * sem_ch6.adb (Check_Anonymous_Return): Add missing support for
7918         functions returning anonymous access to class-wide limited types. Mark
7919         also the containing scope as a task master.
7921         * sem_ch8.adb (Restore_Scope_Stack): Add missing management for
7922         limited-withed packages. Required to restore their visibility after
7923         processing packages associated with implicit with-clauses.
7925         * exp_ch3.adb (Build_Class_Wide_Master): Avoid marking masters
7926         associated with return statements because this work is now done by
7927         Check_Anonymous_Return.
7928         (Build_Master): Code cleanup.
7930 2009-04-15  Thomas Quinot  <quinot@adacore.com>
7932         * sem_warn.ads: Minor reformatting
7934 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7936         * sem_ch3.adb: better error message for illegal interfaces
7938         * sem_ch6.adb (Possible_Freeze): Delay freezing a subprogram if a
7939         formal is an incomplete type from a limited_with clause.
7941 2009-04-15  Vincent Celier  <celier@adacore.com>
7943         * prj-nmsc.adb (Locate_Directory): New Boolean parameter
7944         Externally_Built indicating if the project is externally built. If it
7945         is, and --subdirs is specified, but the subdir does not exist, look
7946         for the specified directory, without the subdir.
7948 2009-04-15  Gary Dismukes  <dismukes@adacore.com>
7950         * a-tasatt.adb: Fix typo, plus minor reformatting
7952         * sem_ch3.ads: Add missing hyphen ("class wide" => "class-wide").
7954         * sem_ch10.adb: Add missing hyphen ("use visible" => "use-visible").
7956 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7958         * sem_ch3.adb (Analyze_Private_Extension_Declaration): Verify that a
7959         private extension whose parent is a synchronized interface carries an
7960         explicit synchronized keyword.
7962 2009-04-15  Thomas Quinot  <quinot@adacore.com>
7964         * exp_smem.adb (Make_Shared_Var_Procs): For a protected type,
7965         instantiate generic shared object package with the corresponding
7966         record type.
7968 2009-04-15  Arnaud Charlet  <charlet@adacore.com>
7970         * system-linux-sparc.ads: Remove obsolete entries.
7972 2009-04-15  Thomas Quinot  <quinot@adacore.com>
7974         * s-tasuti.ads: Add ??? comment
7976 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7978         * sem_ch3.adb (Analyze_Type_Declaration): Create freeze node for access
7979         type even if the designated type comes from a limited_with clause, to
7980         ensure that the symbol for the finalization list of the access type is
7981         created.
7983 2009-04-10  Robert Dewar  <dewar@adacore.com>
7985         * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): Catch more cases
7986         for warning suppression.
7988 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
7990         * sem_ch8.adb (Use_One_Type): If the two use_type clauses are
7991         identical, there is no redudancy to check.
7993 2009-04-10  Gary Dismukes  <dismukes@adacore.com>
7995         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Delete redundant
7996         calls initializing SS_Allocator (which is initialized in following
7997         code).
7998         (Expand_Simple_Function_Return): Add comment about False value for
7999         Comes_From_Source on secondary-stack allocator.
8001         * exp_ch9.adb (Build_Entry_Family_Name): Add comment.
8002         (Build_Entry_Name): Add comment.
8004 2009-04-10  Robert Dewar  <dewar@adacore.com>
8006         * einfo.ads, einfo.adb (Low_Bound_Tested): New name for Low_Bound_Known
8008         * sem_prag.adb (Analyze_Pragma, case Check): Remove check for lower
8009         bound tested, since this is now done more generally in Sem_Res.
8011         * sem_res.adb (Resolve_Comparison_Op): Add call to
8012         Check_Lower_Bound_Tested.
8013         (Resolve_Equality_Op): Add call to Check_Lower_Bound_Tested
8015         * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): New procedure
8016         (Low_Bound_Tested): New name for Low_Bound_Known flag
8018         * exp_ch5.adb: Minor reformatting
8020         * exp_ch4.adb:
8021         Add comments on copying the Comes_From_Source flag for allocators
8023         * sinfo.ads:
8024         Add comments on copying the Comes_From_Source flag for allocators
8026         * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Copy
8027         Comes_From_Source flag from old allocator to new one.
8029 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
8031         * sem_ch6.ads: Address missing documentation query
8033 2009-04-10  Vincent Celier  <celier@adacore.com>
8035         * prj-attr.adb:
8036         Add new Linker attributes Max_Command_Line_Length, Response_File_Format
8037         and Response_File_Switches.
8039         * prj-nmsc.adb (Process_Linker): Process new attributes
8040         Max_Command_Line_Length, Response_File_Format and
8041         Response_File_Switches.
8043         * prj.ads (Response_File_Format): New enumeration type
8044         (Project_Configuration): New componants Max_Command_Line_Length,
8045         Resp_File_Format and Resp_File_Options.
8047         * snames.ads-tmpl: Add new standard names for linking response files
8048         for gprbuild: GNU, None, Object_List, Option_List,
8049         Max_Command_Line_Length, Response_File_Format and
8050         Response_File_Switches.
8052 2009-04-10  Geert Bosch  <bosch@adacore.com>
8054         * system-aix.ads, system-darwin-ppc.ads, system-darwin-x86.ads,
8055         system-freebsd-x86.ads, system-hpux.ads, system-hpux-ia64.ads,
8056         system-irix-n32.ads, system-irix-o32.ads, system-linux-alpha.ads,
8057         system-linux-hppa.ads, system-linux-ia64.ads, system-linux-ppc.ads,
8058         system-linux-s390.ads, system-linux-s390x.ads, system-linux-sh4.ads,
8059         system-linux-sparc.ads, system-linux-x86_64.ads, system-linux-x86.ads,
8060         system-mingw.ads, system-solaris-sparc.ads, system-solaris-sparcv9.ads,
8061         system-solaris-x86.ads, system-tru64.ads, system-vms_64.ads,
8062         system-vms.ads, system-vms-ia64.ads, system-vms-zcx.ads,
8063         system-vxworks-arm.ads, system-vxworks-m68k.ads,
8064         system-vxworks-mips.ads, system-vxworks-ppc.ads,
8065         system-vxworks-sparcv9.ads, system-vxworks-x86.ads
8066         (Backend_Overflow_Checks): Set to True.
8068 2009-04-10  Thomas Quinot  <quinot@adacore.com>
8070         * exp_attr.adb: Minor reformatting
8072 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
8074         * sem_prag.adb (Check_Precondition_Postcondition): Within a generic,
8075         analyze the expression for a postcondition, even if the compiler mode
8076         is Generate_Code.
8078 2009-04-10  Robert Dewar  <dewar@adacore.com>
8080         * sem_aux.adb: Minor reformatting
8082 2009-04-10  Ed Falis  <falis@adacore.com>
8084         * init.c: Change VxWorks 6 stack overflow checking for kernel apps.
8086         * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header.
8088 2009-04-10  Thomas Quinot  <quinot@adacore.com>
8090         * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
8091         undocumented formal.
8092         Minor reformatting
8094         * a-direio.ads: Fix typo in comment
8096         * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
8097         errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
8098         Use uniform phrasing for comment at start of subprogram body.
8100         * xsnamest.adb: Add note to explain why we use specific names for the
8101         newly generated files instead of generating snames.{ads,adb,h} directly
8103 2009-04-10  Sergey Rybin  <rybin@adacore.com>
8105         * vms_data.ads:
8106         Add qualifier for new gnatstub option '--no-exception'
8108         * gnat_ugn.texi:
8109         Add the description of the new gnatstub option '--no-exception'
8111 2009-04-10  Robert Dewar  <dewar@adacore.com>
8113         * rtsfind.adb: Minor reformatting
8115 2009-04-10  Thomas Quinot  <quinot@adacore.com>
8117         * sem_disp.adb: Minor reformatting.
8118         Add comment pointing to RM clause for the case of warning against a
8119         (failed) attempt at declaring a primitive operation elsewhere than in a
8120         package spec.
8122 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
8124         * sem_ch12.adb (Denotes_Formal_Package): Check whether the package is
8125         an actual for a previous formal package of the current instance.
8127 2009-04-10  Bob Duff  <duff@adacore.com>
8129         * rtsfind.adb (RTE): Put implicit with_clauses on whatever unit needs
8130         them first, rather than on the extended main unit.
8132 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
8134         * sem_ch6.adb (Check_Discriminant_Conformance): If discriminant
8135         specification of full view carries a null exclusion indicator, create
8136         an itype for it, to check for conformance with partial view.
8138 2009-04-10  Bob Duff  <duff@adacore.com>
8140         * rtsfind.ads: Minor code change: make RE_Unit_Table constant.
8142         * rtsfind.adb: Minor comment changes, and remove useless code.
8144         * sinfo.ads: Add ??? comment.
8146 2009-04-10  Vincent Celier  <celier@adacore.com>
8148         * vms_data.ads: Add missing GNAT SYNC VMS qualifiers -main= and -U
8150 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
8152         * exp_attr.adb (Expand_N_Attribute_Reference, case 'Tag): If the tagged
8153         type is a synchronized type, retrieve tag information from the
8154         corresponding record, which has the dispatch table link.
8156 2009-04-10  Jerome Lambourg  <lambourg@adacore.com>
8158         * g-comlin.adb (Group_Analysis): Take care of switches that might be
8159         decomposed afterwards, but are present as-is in the command line
8160         configuration, and thus should be kept as-is.
8162 2009-04-10  Robert Dewar  <dewar@adacore.com>
8164         * gnat_rm.texi: Document that postconditions are tested on implicit
8165         returns.
8167         * sem_aux.adb: Minor reformatting
8169 2009-04-10  Gary Dismukes  <dismukes@adacore.com>
8171         * itypes.adb (Create_Null_Excluding_Itype): Apply Base_Type when
8172         setting Etype.
8173         
8174         * par-ch3.adb (P_Access_Type_Definition): Set new attribute
8175         Null_Exclusion_In_Return_Present when an access-to-function type has a
8176         result type with an explicit not null.
8178         * sem_ch3.adb (Access_Subprogram_Definition): If a null exclusion is
8179         given on the result type, then create a null-excluding itype for the
8180         function.
8182         * sem_ch6.adb (Analyze_Return_Type): Create a null-excluding itype in
8183         the case where a null exclusion is imposed on a named access type.
8184         (Analyze_Subprogram_Specification): Push and pop the scope of the
8185         function around the call to Analyze_Return_Type in the case of no
8186         formals, for consistency with handling when formals are present
8187         (Process_Formals does this). Ensures that any itype created for the
8188         return type will be associated with the proper scope.
8190         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): If a null
8191         exclusion is given on a generic function's result type, then create a
8192         null-excluding itype for the generic function.
8193         (Instantiate_Object): Set Null_Exclusion_Present of a constant created
8194         for an actual for a formal in object according to the setting on the
8195         formal. Ensures null exclusion checks are done when the association is
8196         elaborated.
8198         * sinfo.ads: Add new flag Null_Exclusion_In_Return_Present on
8199         N_Access_Function_Definition.
8201         * sinfo.adb: Add Get_ and Set_ operations for
8202         Null_Exclusion_In_Return_Present.
8204 2009-04-10  Bob Duff  <duff@adacore.com>
8206         * exp_ch5.adb, exp_ch6.adb, sem_ch6.adb: Move the code that creates a
8207         call to the _Postconditions procedure in the case of implicit returns
8208         from analysis to expansion. This eliminates some duplicated code. Use
8209         the Postcondition_Proc to find the identity of this procedure during
8210         expansion.
8212 2009-04-10  Robert Dewar  <dewar@adacore.com>
8214         * sem_ch6.adb: Minor code clean up.
8216         * einfo.ads, sem_attr.adb: Minor comment fixes.
8218 2009-04-10  Robert Dewar  <dewar@adacore.com>
8220         * sem_ch8.adb: Minor reformatting
8222 2009-04-10  Robert Dewar  <dewar@adacore.com>
8224         * einfo.ads, einfo.adb (Postcondition_Proc): New attribute for
8225         procedures.
8227         * sem_ch6.adb: Minor code clean up.
8229 2009-04-10  Robert Dewar  <dewar@adacore.com>
8231         * mlib-tgt-specific-xi.adb: Minor reformatting
8233 2009-04-10  Bob Duff  <duff@adacore.com>
8235         * einfo.ads: Minor comment fixes
8237 2009-04-10  Vincent Celier  <celier@adacore.com>
8239         * snames.ads-tmpl: Remove names that are no longer used in the
8240         Project Manager.
8241         Mark specifically those that are used only in gprbuild
8243 2009-04-10  Eric Botcazou  <ebotcazou@adacore.com>
8245         * init.c: Adjust EH support code on Alpha/Tru64.
8247 2009-04-10  Bob Duff  <duff@adacore.com>
8249         * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions
8250         procedure on every path that could return implicitly (not via a return
8251         statement) from a procedure.
8253 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
8255         * exp_ch9.adb (Build_Master_Entity): An extended return statement is a
8256         valid scope for a task declarations and therefore for a master id.
8258 2009-04-10  Robert Dewar  <dewar@adacore.com>
8260         * sem_aux.adb: Minor reformatting
8262 2009-04-10  Vincent Celier  <celier@adacore.com>
8264         * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to
8265         True.
8266         (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False
8267         (Set_Obsolescent_Check): New procedure to change the value of
8268         Obsolescent_Check_Flag.
8270         * scn.ads (Set_Obsolescent_Check): New procedure to control
8271         Obsolescent_Check.
8273         * sinput-l.adb (Load_File): Do not check for pragma Restrictions on
8274         obsolescent features while preprocessing.
8276 2009-04-10  Thomas Quinot  <quinot@adacore.com>
8278         * xsnamest.adb: Use XUtil to have uniform line endings (UNIX style) in
8279         generated files on all platforms.
8281 2009-04-10  Robert Dewar  <dewar@adacore.com>
8283         * sem_aux.adb: Minor reformatting
8285 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
8287         * sem_ch3.adb (Access_Definition): Handle properly the case of a
8288         protected function with formals that returns an anonymous access type.
8290 2009-04-10  Thomas Quinot  <quinot@adacore.com>
8292         * sem_disp.adb: Minor reformatting
8294 2009-04-10  Vasiliy Fofanov  <fofanov@adacore.com>
8296         * seh_init.c: Do not use the 32-bit specific implementation of
8297         __gnat_install_SEH_handler on 64-bit Windows target (64-bit specific
8298         version TBD).
8300 2009-04-10  Jose Ruiz  <ruiz@adacore.com>
8302         * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Target_Name may contain
8303         a '/' at the end so we better use the complete target name to determine
8304         whether it is a PowerPC 55xx target.
8306 2009-04-10  Thomas Quinot  <quinot@adacore.com>
8308         * sem_eval.adb: Minor reformatting
8310 2009-04-10  Thomas Quinot  <quinot@adacore.com>
8312         * snames.h, snames.ads, snames.adb: Remove files, now generated from
8313         templates.
8315         * snames.h-tmpl, snames.ads-tmpl, snames.adb-tmpl: Templates for the
8316         above.
8318         * xsnamest.adb: New file.
8320         * gcc-interface/Make-lang.in: New target for automated generation of
8321         snames.ads, snames.adb and snames.h
8323 2009-04-10  Tristan Gingold  <gingold@adacore.com>
8325         * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to
8326         avoid compile time warnings.
8327         Do not add gcc/config in include search list while compiling the RTS.
8328         Pragma Thread_Local_Storage is available on any target.
8330 2009-04-10  Bob Duff  <duff@adacore.com>
8332         * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes.
8334 2009-04-10  Tristan Gingold  <gingold@adacore.com>
8336         * init.c: Install signal handler on Darwin.
8338 2009-04-10  Robert Dewar  <dewar@adacore.com>
8340         * sem_prag.adb: Minor reformatting
8342         * exp_util.adb (Make_Non_Empty_Check): New function
8343         (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check
8344         (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check
8346 2009-04-10  Arnaud Charlet  <charlet@adacore.com>
8348         * make.adb, gnatlink.adb: Rename JGNAT toolchain.
8350 2009-04-10  Jose Ruiz  <ruiz@adacore.com>
8352         * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate
8353         tool prefix for AVR and PowerPC 55xx targets.
8355 2009-04-10  Robert Dewar  <dewar@adacore.com>
8357         * sem_warn.adb (Within_Postcondition): New function
8358         (Check_Unset_Reference): Use Within_Postcondition to stop bad warning
8360 2009-04-10  Robert Dewar  <dewar@adacore.com>
8362         * sem_warn.adb: Minor reformatting
8364         * make.adb: Minor reformatting.
8366 2009-04-10  Gary Dismukes  <dismukes@adacore.com>
8368         * exp_ch7.adb (Find_Final_List): When creating a finalization-chain
8369         entity and the scope is a subprogram, retrieve the Sloc of the
8370         subprogram's body rather than using the sloc of the spec, for better
8371         line-stepping behavior in gdb.
8372         (Wrap_Transient_Declaration): For the Sloc of nodes created with a list
8373         controller, use the Sloc of the first declaration of the containing list
8374         rather than that of the node that triggered creation of the list
8375         controller.
8377 2009-04-10  Vincent Celier  <celier@adacore.com>
8379         * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing
8380         to avoid gcc warning.
8382 2009-04-10  Robert Dewar  <dewar@adacore.com>
8384         * g-comlin.adb: Add ??? comment
8386 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
8388         * sem_warn.adb (Check_Unused_Withs): Do not emit message about
8389         unreferenced entities for a package with no visible declarations.
8391 2009-04-10  Robert Dewar  <dewar@adacore.com>
8393         * exp_ch9.adb: Minor reformatting
8395 2009-04-10  Thomas Quinot  <quinot@adacore.com>
8397         * sem_prag.adb: Minor reformatting
8399 2009-04-10  Vincent Celier  <celier@adacore.com>
8401         * prj-nmsc.adb:
8402         (Check_Library_Attributes): For a project qualified as a library project
8403         that is not a library project, indicate in the error message which
8404         attributes are missing (Library_Dir and/or Library_Name).
8406 2009-04-10  Bob Duff  <duff@adacore.com>
8408         * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of
8409         generated nodes, because it might confuse various circuits in the FE.
8411 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
8413         * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument
8414         of pragma. It will be recopied and analyzed when used in call to
8415         Create_Task.
8417         * sem_res.adb (Resolve_Call): Clarify use of secondary stack within
8418         initialization operations and recognize use of it in procedure calls
8419         within init_procs.
8421         * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name
8422         argument, because it may have side-effects.
8424         * exp_ch2.adb: Remove obsolete comments on default functions
8426 2009-04-10  Jose Ruiz  <ruiz@adacore.com>
8428         * adaint.c (RTX section): Do for RTX the same thing as we do for
8429         Windows (include ctype.h and define a fallback ISALPHA if IN_RTS).
8431 2009-04-10  Robert Dewar  <dewar@adacore.com>
8433         * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function.
8435         * sem_res.adb (Resolve_Call): Fix test for
8436         Suppress_Value_Tracking_On_Call (was wrong for the case of a call from
8437         a non-dynamic scope).
8439 2009-04-10  Robert Dewar  <dewar@adacore.com>
8441         * make.adb: Add comment.
8442         Minor reformatting
8444 2009-04-10  Nicolas Setton  <setton@adacore.com>
8446         * s-osprim-darwin.adb: New file.
8448         * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec.
8450 2009-04-10  Thomas Quinot  <quinot@adacore.com>
8452         * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set
8454 2009-04-09  Nick Clifton  <nickc@redhat.com>
8456         * adadecode.h: Change copyright header to refer to version
8457         3 of the GNU General Public License with version 3.1 of the
8458         GCC Runtime Library Exception and to point readers at the
8459         COPYING3 and COPYING3.RUNTIME files and the FSF's license web
8460         page.
8461         * 9drpc.adb: Likewise.
8462         * a-assert.adb: Likewise.
8463         * a-astaco.adb: Likewise.
8464         * a-calari.adb: Likewise.
8465         * a-calcon.adb: Likewise.
8466         * a-calcon.ads: Likewise.
8467         * a-caldel.ads: Likewise.
8468         * a-calend-vms.adb: Likewise.
8469         * a-calend-vms.ads: Likewise.
8470         * a-calend.adb: Likewise.
8471         * a-calend.ads: Likewise.
8472         * a-calfor.adb: Likewise.
8473         * a-catizo.adb: Likewise.
8474         * a-cdlili.adb: Likewise.
8475         * a-cdlili.ads: Likewise.
8476         * a-cgaaso.adb: Likewise.
8477         * a-cgaaso.ads: Likewise.
8478         * a-cgarso.adb: Likewise.
8479         * a-cgcaso.adb: Likewise.
8480         * a-chacon.adb: Likewise.
8481         * a-chacon.ads: Likewise.
8482         * a-chahan.adb: Likewise.
8483         * a-chahan.ads: Likewise.
8484         * a-chlat9.ads: Likewise.
8485         * a-chtgke.adb: Likewise.
8486         * a-chtgke.ads: Likewise.
8487         * a-chtgop.adb: Likewise.
8488         * a-chtgop.ads: Likewise.
8489         * a-chzla1.ads: Likewise.
8490         * a-chzla9.ads: Likewise.
8491         * a-cidlli.adb: Likewise.
8492         * a-cidlli.ads: Likewise.
8493         * a-cihama.adb: Likewise.
8494         * a-cihama.ads: Likewise.
8495         * a-cihase.adb: Likewise.
8496         * a-cihase.ads: Likewise.
8497         * a-ciorma.adb: Likewise.
8498         * a-ciorma.ads: Likewise.
8499         * a-ciormu.adb: Likewise.
8500         * a-ciormu.ads: Likewise.
8501         * a-ciorse.adb: Likewise.
8502         * a-ciorse.ads: Likewise.
8503         * a-clrefi.adb: Likewise.
8504         * a-clrefi.ads: Likewise.
8505         * a-cohama.adb: Likewise.
8506         * a-cohama.ads: Likewise.
8507         * a-cohase.adb: Likewise.
8508         * a-cohase.ads: Likewise.
8509         * a-cohata.ads: Likewise.
8510         * a-coinve.adb: Likewise.
8511         * a-coinve.ads: Likewise.
8512         * a-colien.adb: Likewise.
8513         * a-colien.ads: Likewise.
8514         * a-colire.adb: Likewise.
8515         * a-colire.ads: Likewise.
8516         * a-comlin.adb: Likewise.
8517         * a-comlin.ads: Likewise.
8518         * a-convec.adb: Likewise.
8519         * a-convec.ads: Likewise.
8520         * a-coorma.adb: Likewise.
8521         * a-coorma.ads: Likewise.
8522         * a-coormu.adb: Likewise.
8523         * a-coormu.ads: Likewise.
8524         * a-coorse.adb: Likewise.
8525         * a-coorse.ads: Likewise.
8526         * a-coprnu.adb: Likewise.
8527         * a-coprnu.ads: Likewise.
8528         * a-crbltr.ads: Likewise.
8529         * a-crbtgk.adb: Likewise.
8530         * a-crbtgk.ads: Likewise.
8531         * a-crbtgo.adb: Likewise.
8532         * a-crbtgo.ads: Likewise.
8533         * a-crdlli.adb: Likewise.
8534         * a-crdlli.ads: Likewise.
8535         * a-cwila1.ads: Likewise.
8536         * a-cwila9.ads: Likewise.
8537         * a-decima.adb: Likewise.
8538         * a-decima.ads: Likewise.
8539         * a-diocst.adb: Likewise.
8540         * a-diocst.ads: Likewise.
8541         * a-direct.adb: Likewise.
8542         * a-direct.ads: Likewise.
8543         * a-direio.adb: Likewise.
8544         * a-direio.ads: Likewise.
8545         * a-dirval-mingw.adb: Likewise.
8546         * a-dirval-vms.adb: Likewise.
8547         * a-dirval.adb: Likewise.
8548         * a-dirval.ads: Likewise.
8549         * a-dynpri.adb: Likewise.
8550         * a-einuoc.adb: Likewise.
8551         * a-einuoc.ads: Likewise.
8552         * a-elchha.adb: Likewise.
8553         * a-elchha.ads: Likewise.
8554         * a-envvar.adb: Likewise.
8555         * a-excach.adb: Likewise.
8556         * a-except-2005.adb: Likewise.
8557         * a-except-2005.ads: Likewise.
8558         * a-except.adb: Likewise.
8559         * a-except.ads: Likewise.
8560         * a-excpol-abort.adb: Likewise.
8561         * a-excpol.adb: Likewise.
8562         * a-exctra.adb: Likewise.
8563         * a-exctra.ads: Likewise.
8564         * a-exetim-mingw.adb: Likewise.
8565         * a-exetim-mingw.ads: Likewise.
8566         * a-exexda.adb: Likewise.
8567         * a-exexpr-gcc.adb: Likewise.
8568         * a-exexpr.adb: Likewise.
8569         * a-exextr.adb: Likewise.
8570         * a-exstat.adb: Likewise.
8571         * a-filico.adb: Likewise.
8572         * a-filico.ads: Likewise.
8573         * a-finali.adb: Likewise.
8574         * a-finali.ads: Likewise.
8575         * a-interr.ads: Likewise.
8576         * a-intnam-aix.ads: Likewise.
8577         * a-intnam-darwin.ads: Likewise.
8578         * a-intnam-dummy.ads: Likewise.
8579         * a-intnam-freebsd.ads: Likewise.
8580         * a-intnam-hpux.ads: Likewise.
8581         * a-intnam-irix.ads: Likewise.
8582         * a-intnam-linux.ads: Likewise.
8583         * a-intnam-lynxos.ads: Likewise.
8584         * a-intnam-mingw.ads: Likewise.
8585         * a-intnam-rtems.ads: Likewise.
8586         * a-intnam-solaris.ads: Likewise.
8587         * a-intnam-tru64.ads: Likewise.
8588         * a-intnam-vms.ads: Likewise.
8589         * a-intnam-vxworks.ads: Likewise.
8590         * a-intsig.adb: Likewise.
8591         * a-intsig.ads: Likewise.
8592         * a-ngcefu.adb: Likewise.
8593         * a-ngcoar.adb: Likewise.
8594         * a-ngcoty.adb: Likewise.
8595         * a-ngcoty.ads: Likewise.
8596         * a-ngelfu.adb: Likewise.
8597         * a-ngrear.adb: Likewise.
8598         * a-ngrear.ads: Likewise.
8599         * a-nudira.adb: Likewise.
8600         * a-nudira.ads: Likewise.
8601         * a-nuflra.adb: Likewise.
8602         * a-nuflra.ads: Likewise.
8603         * a-numaux-darwin.adb: Likewise.
8604         * a-numaux-darwin.ads: Likewise.
8605         * a-numaux-libc-x86.ads: Likewise.
8606         * a-numaux-vxworks.ads: Likewise.
8607         * a-numaux-x86.adb: Likewise.
8608         * a-numaux-x86.ads: Likewise.
8609         * a-numaux.ads: Likewise.
8610         * a-rbtgso.adb: Likewise.
8611         * a-rbtgso.ads: Likewise.
8612         * a-reatim.ads: Likewise.
8613         * a-retide.adb: Likewise.
8614         * a-retide.ads: Likewise.
8615         * a-rttiev.adb: Likewise.
8616         * a-rttiev.ads: Likewise.
8617         * a-secain.adb: Likewise.
8618         * a-secain.ads: Likewise.
8619         * a-sequio.adb: Likewise.
8620         * a-sequio.ads: Likewise.
8621         * a-shcain.adb: Likewise.
8622         * a-shcain.ads: Likewise.
8623         * a-siocst.adb: Likewise.
8624         * a-siocst.ads: Likewise.
8625         * a-slcain.adb: Likewise.
8626         * a-slcain.ads: Likewise.
8627         * a-ssicst.adb: Likewise.
8628         * a-ssicst.ads: Likewise.
8629         * a-stboha.adb: Likewise.
8630         * a-stmaco.ads: Likewise.
8631         * a-storio.adb: Likewise.
8632         * a-strbou.adb: Likewise.
8633         * a-strbou.ads: Likewise.
8634         * a-stream.ads: Likewise.
8635         * a-strfix.adb: Likewise.
8636         * a-strhas.adb: Likewise.
8637         * a-strmap.adb: Likewise.
8638         * a-strmap.ads: Likewise.
8639         * a-strsea.adb: Likewise.
8640         * a-strsea.ads: Likewise.
8641         * a-strsup.adb: Likewise.
8642         * a-strsup.ads: Likewise.
8643         * a-strunb.adb: Likewise.
8644         * a-strunb.ads: Likewise.
8645         * a-ststio.adb: Likewise.
8646         * a-ststio.ads: Likewise.
8647         * a-stunau.adb: Likewise.
8648         * a-stunau.ads: Likewise.
8649         * a-stunha.adb: Likewise.
8650         * a-stwibo.adb: Likewise.
8651         * a-stwibo.ads: Likewise.
8652         * a-stwifi.adb: Likewise.
8653         * a-stwiha.adb: Likewise.
8654         * a-stwima.adb: Likewise.
8655         * a-stwima.ads: Likewise.
8656         * a-stwise.adb: Likewise.
8657         * a-stwise.ads: Likewise.
8658         * a-stwisu.adb: Likewise.
8659         * a-stwisu.ads: Likewise.
8660         * a-stwiun.adb: Likewise.
8661         * a-stwiun.ads: Likewise.
8662         * a-stzbou.adb: Likewise.
8663         * a-stzbou.ads: Likewise.
8664         * a-stzfix.adb: Likewise.
8665         * a-stzhas.adb: Likewise.
8666         * a-stzmap.adb: Likewise.
8667         * a-stzmap.ads: Likewise.
8668         * a-stzsea.adb: Likewise.
8669         * a-stzsea.ads: Likewise.
8670         * a-stzsup.adb: Likewise.
8671         * a-stzsup.ads: Likewise.
8672         * a-stzunb.adb: Likewise.
8673         * a-stzunb.ads: Likewise.
8674         * a-suteio.adb: Likewise.
8675         * a-suteio.ads: Likewise.
8676         * a-swbwha.adb: Likewise.
8677         * a-swmwco.ads: Likewise.
8678         * a-swunau.adb: Likewise.
8679         * a-swunau.ads: Likewise.
8680         * a-swuwha.adb: Likewise.
8681         * a-swuwti.adb: Likewise.
8682         * a-swuwti.ads: Likewise.
8683         * a-sytaco.adb: Likewise.
8684         * a-sytaco.ads: Likewise.
8685         * a-szbzha.adb: Likewise.
8686         * a-szmzco.ads: Likewise.
8687         * a-szunau.adb: Likewise.
8688         * a-szunau.ads: Likewise.
8689         * a-szuzha.adb: Likewise.
8690         * a-szuzti.adb: Likewise.
8691         * a-szuzti.ads: Likewise.
8692         * a-tags.adb: Likewise.
8693         * a-tags.ads: Likewise.
8694         * a-tasatt.ads: Likewise.
8695         * a-taside.adb: Likewise.
8696         * a-taside.ads: Likewise.
8697         * a-taster.adb: Likewise.
8698         * a-teioed.adb: Likewise.
8699         * a-teioed.ads: Likewise.
8700         * a-textio.adb: Likewise.
8701         * a-textio.ads: Likewise.
8702         * a-tiboio.adb: Likewise.
8703         * a-ticoau.adb: Likewise.
8704         * a-ticoau.ads: Likewise.
8705         * a-ticoio.adb: Likewise.
8706         * a-ticoio.ads: Likewise.
8707         * a-tideau.adb: Likewise.
8708         * a-tideau.ads: Likewise.
8709         * a-tideio.adb: Likewise.
8710         * a-tideio.ads: Likewise.
8711         * a-tienau.adb: Likewise.
8712         * a-tienau.ads: Likewise.
8713         * a-tienio.adb: Likewise.
8714         * a-tienio.ads: Likewise.
8715         * a-tifiio.adb: Likewise.
8716         * a-tifiio.ads: Likewise.
8717         * a-tiflau.adb: Likewise.
8718         * a-tiflau.ads: Likewise.
8719         * a-tiflio.adb: Likewise.
8720         * a-tiflio.ads: Likewise.
8721         * a-tigeau.adb: Likewise.
8722         * a-tigeau.ads: Likewise.
8723         * a-tiinau.adb: Likewise.
8724         * a-tiinau.ads: Likewise.
8725         * a-tiinio.adb: Likewise.
8726         * a-tiinio.ads: Likewise.
8727         * a-timoau.adb: Likewise.
8728         * a-timoau.ads: Likewise.
8729         * a-timoio.adb: Likewise.
8730         * a-timoio.ads: Likewise.
8731         * a-tiocst.adb: Likewise.
8732         * a-tiocst.ads: Likewise.
8733         * a-titest.adb: Likewise.
8734         * a-wichun.adb: Likewise.
8735         * a-wichun.ads: Likewise.
8736         * a-witeio.adb: Likewise.
8737         * a-witeio.ads: Likewise.
8738         * a-wtcoau.adb: Likewise.
8739         * a-wtcoau.ads: Likewise.
8740         * a-wtcoio.adb: Likewise.
8741         * a-wtcstr.adb: Likewise.
8742         * a-wtcstr.ads: Likewise.
8743         * a-wtdeau.adb: Likewise.
8744         * a-wtdeau.ads: Likewise.
8745         * a-wtdeio.adb: Likewise.
8746         * a-wtdeio.ads: Likewise.
8747         * a-wtedit.adb: Likewise.
8748         * a-wtedit.ads: Likewise.
8749         * a-wtenau.adb: Likewise.
8750         * a-wtenau.ads: Likewise.
8751         * a-wtenio.adb: Likewise.
8752         * a-wtenio.ads: Likewise.
8753         * a-wtfiio.adb: Likewise.
8754         * a-wtfiio.ads: Likewise.
8755         * a-wtflau.adb: Likewise.
8756         * a-wtflau.ads: Likewise.
8757         * a-wtflio.adb: Likewise.
8758         * a-wtflio.ads: Likewise.
8759         * a-wtgeau.adb: Likewise.
8760         * a-wtgeau.ads: Likewise.
8761         * a-wtinau.adb: Likewise.
8762         * a-wtinau.ads: Likewise.
8763         * a-wtinio.adb: Likewise.
8764         * a-wtmoau.adb: Likewise.
8765         * a-wtmoau.ads: Likewise.
8766         * a-wtmoio.adb: Likewise.
8767         * a-wtmoio.ads: Likewise.
8768         * a-wttest.adb: Likewise.
8769         * a-wwboio.adb: Likewise.
8770         * a-zchuni.adb: Likewise.
8771         * a-zchuni.ads: Likewise.
8772         * a-ztcoau.adb: Likewise.
8773         * a-ztcoau.ads: Likewise.
8774         * a-ztcoio.adb: Likewise.
8775         * a-ztcstr.adb: Likewise.
8776         * a-ztcstr.ads: Likewise.
8777         * a-ztdeau.adb: Likewise.
8778         * a-ztdeau.ads: Likewise.
8779         * a-ztdeio.adb: Likewise.
8780         * a-ztdeio.ads: Likewise.
8781         * a-ztedit.adb: Likewise.
8782         * a-ztedit.ads: Likewise.
8783         * a-ztenau.adb: Likewise.
8784         * a-ztenau.ads: Likewise.
8785         * a-ztenio.adb: Likewise.
8786         * a-ztenio.ads: Likewise.
8787         * a-ztexio.adb: Likewise.
8788         * a-ztexio.ads: Likewise.
8789         * a-ztfiio.adb: Likewise.
8790         * a-ztfiio.ads: Likewise.
8791         * a-ztflau.adb: Likewise.
8792         * a-ztflau.ads: Likewise.
8793         * a-ztflio.adb: Likewise.
8794         * a-ztflio.ads: Likewise.
8795         * a-ztgeau.adb: Likewise.
8796         * a-ztgeau.ads: Likewise.
8797         * a-ztinau.adb: Likewise.
8798         * a-ztinau.ads: Likewise.
8799         * a-ztinio.adb: Likewise.
8800         * a-ztmoau.adb: Likewise.
8801         * a-ztmoau.ads: Likewise.
8802         * a-ztmoio.adb: Likewise.
8803         * a-ztmoio.ads: Likewise.
8804         * a-zttest.adb: Likewise.
8805         * a-zzboio.adb: Likewise.
8806         * adadecode.c: Likewise.
8807         * adaint.c: Likewise.
8808         * adaint.h: Likewise.
8809         * alloc.ads: Likewise.
8810         * argv.c: Likewise.
8811         * arit64.c: Likewise.
8812         * atree.adb: Likewise.
8813         * atree.ads: Likewise.
8814         * aux-io.c: Likewise.
8815         * cal.c: Likewise.
8816         * casing.adb: Likewise.
8817         * casing.ads: Likewise.
8818         * cio.c: Likewise.
8819         * csets.adb: Likewise.
8820         * csets.ads: Likewise.
8821         * cstreams.c: Likewise.
8822         * ctrl_c.c: Likewise.
8823         * debug.adb: Likewise.
8824         * debug.ads: Likewise.
8825         * dec.ads: Likewise.
8826         * einfo.adb: Likewise.
8827         * einfo.ads: Likewise.
8828         * elists.adb: Likewise.
8829         * elists.ads: Likewise.
8830         * env.c: Likewise.
8831         * env.h: Likewise.
8832         * errno.c: Likewise.
8833         * exit.c: Likewise.
8834         * fe.h: Likewise.
8835         * final.c: Likewise.
8836         * fname.adb: Likewise.
8837         * fname.ads: Likewise.
8838         * g-allein.ads: Likewise.
8839         * g-alleve.adb: Likewise.
8840         * g-alleve.ads: Likewise.
8841         * g-altcon.adb: Likewise.
8842         * g-altcon.ads: Likewise.
8843         * g-altive.ads: Likewise.
8844         * g-alveop.adb: Likewise.
8845         * g-alveop.ads: Likewise.
8846         * g-alvety.ads: Likewise.
8847         * g-alvevi.ads: Likewise.
8848         * g-arrspl.adb: Likewise.
8849         * g-arrspl.ads: Likewise.
8850         * g-calend.ads: Likewise.
8851         * g-comlin.adb: Likewise.
8852         * g-debpoo.adb: Likewise.
8853         * g-debpoo.ads: Likewise.
8854         * g-eacodu-vms.adb: Likewise.
8855         * g-eacodu.adb: Likewise.
8856         * g-excact.adb: Likewise.
8857         * g-excact.ads: Likewise.
8858         * g-locfil.adb: Likewise.
8859         * g-os_lib.ads: Likewise.
8860         * g-rannum.adb: Likewise.
8861         * g-rannum.ads: Likewise.
8862         * g-regist.adb: Likewise.
8863         * g-regist.ads: Likewise.
8864         * g-signal.adb: Likewise.
8865         * g-signal.ads: Likewise.
8866         * g-soccon.ads: Likewise.
8867         * g-string.adb: Likewise.
8868         * g-string.ads: Likewise.
8869         * g-strspl.ads: Likewise.
8870         * g-timsta.adb: Likewise.
8871         * g-timsta.ads: Likewise.
8872         * g-trasym-vms-alpha.adb: Likewise.
8873         * g-trasym-vms-ia64.adb: Likewise.
8874         * g-utf_32.adb: Likewise.
8875         * g-utf_32.ads: Likewise.
8876         * g-wistsp.ads: Likewise.
8877         * g-zstspl.ads: Likewise.
8878         * gmem.c: Likewise.
8879         * gnatvsn.adb: Likewise.
8880         * gnatvsn.ads: Likewise.
8881         * gsocket.h: Likewise.
8882         * hostparm.ads: Likewise.
8883         * i-c.adb: Likewise.
8884         * i-cexten.ads: Likewise.
8885         * i-cobol.adb: Likewise.
8886         * i-cobol.ads: Likewise.
8887         * i-cpoint.adb: Likewise.
8888         * i-cpoint.ads: Likewise.
8889         * i-cpp.adb: Likewise.
8890         * i-cpp.ads: Likewise.
8891         * i-cstrea-vms.adb: Likewise.
8892         * i-cstrea.adb: Likewise.
8893         * i-cstrea.ads: Likewise.
8894         * i-cstrin.adb: Likewise.
8895         * i-cstrin.ads: Likewise.
8896         * i-forbla-darwin.adb: Likewise.
8897         * i-forbla-unimplemented.ads: Likewise.
8898         * i-forbla.adb: Likewise.
8899         * i-forbla.ads: Likewise.
8900         * i-forlap.ads: Likewise.
8901         * i-fortra.adb: Likewise.
8902         * i-pacdec.adb: Likewise.
8903         * i-pacdec.ads: Likewise.
8904         * i-vxwoio.adb: Likewise.
8905         * i-vxwoio.ads: Likewise.
8906         * indepsw-aix.adb: Likewise.
8907         * indepsw-gnu.adb: Likewise.
8908         * indepsw-mingw.adb: Likewise.
8909         * indepsw.adb: Likewise.
8910         * indepsw.ads: Likewise.
8911         * init.c: Likewise.
8912         * initialize.c: Likewise.
8913         * interfac.ads: Likewise.
8914         * krunch.adb: Likewise.
8915         * krunch.ads: Likewise.
8916         * lib-list.adb: Likewise.
8917         * lib-sort.adb: Likewise.
8918         * lib.adb: Likewise.
8919         * lib.ads: Likewise.
8920         * link.c: Likewise.
8921         * math_lib.adb: Likewise.
8922         * memtrack.adb: Likewise.
8923         * mingw32.h: Likewise.
8924         * mkdir.c: Likewise.
8925         * namet-sp.adb: Likewise.
8926         * namet-sp.ads: Likewise.
8927         * namet.adb: Likewise.
8928         * namet.ads: Likewise.
8929         * nlists.adb: Likewise.
8930         * nlists.ads: Likewise.
8931         * opt.adb: Likewise.
8932         * opt.ads: Likewise.
8933         * output.adb: Likewise.
8934         * output.ads: Likewise.
8935         * raise-gcc.c: Likewise.
8936         * raise.c: Likewise.
8937         * raise.h: Likewise.
8938         * repinfo.adb: Likewise.
8939         * repinfo.ads: Likewise.
8940         * repinfo.h: Likewise.
8941         * rident.ads: Likewise.
8942         * s-addima.adb: Likewise.
8943         * s-addima.ads: Likewise.
8944         * s-addope.adb: Likewise.
8945         * s-addope.ads: Likewise.
8946         * s-arit64.adb: Likewise.
8947         * s-arit64.ads: Likewise.
8948         * s-assert.adb: Likewise.
8949         * s-assert.ads: Likewise.
8950         * s-asthan-vms-alpha.adb: Likewise.
8951         * s-asthan.adb: Likewise.
8952         * s-asthan.ads: Likewise.
8953         * s-atacco.adb: Likewise.
8954         * s-atacco.ads: Likewise.
8955         * s-auxdec-empty.adb: Likewise.
8956         * s-auxdec-empty.ads: Likewise.
8957         * s-auxdec-vms_64.ads: Likewise.
8958         * s-auxdec.adb: Likewise.
8959         * s-auxdec.ads: Likewise.
8960         * s-bitops.adb: Likewise.
8961         * s-bitops.ads: Likewise.
8962         * s-boarop.ads: Likewise.
8963         * s-carsi8.adb: Likewise.
8964         * s-carsi8.ads: Likewise.
8965         * s-carun8.adb: Likewise.
8966         * s-carun8.ads: Likewise.
8967         * s-casi16.adb: Likewise.
8968         * s-casi16.ads: Likewise.
8969         * s-casi32.adb: Likewise.
8970         * s-casi32.ads: Likewise.
8971         * s-casi64.adb: Likewise.
8972         * s-casi64.ads: Likewise.
8973         * s-casuti.ads: Likewise.
8974         * s-caun16.adb: Likewise.
8975         * s-caun16.ads: Likewise.
8976         * s-caun32.adb: Likewise.
8977         * s-caun32.ads: Likewise.
8978         * s-caun64.adb: Likewise.
8979         * s-caun64.ads: Likewise.
8980         * s-chepoo.ads: Likewise.
8981         * s-crc32.adb: Likewise.
8982         * s-crc32.ads: Likewise.
8983         * s-crtl.ads: Likewise.
8984         * s-direio.adb: Likewise.
8985         * s-direio.ads: Likewise.
8986         * s-dsaser.ads: Likewise.
8987         * s-except.adb: Likewise.
8988         * s-except.ads: Likewise.
8989         * s-exctab.adb: Likewise.
8990         * s-exctab.ads: Likewise.
8991         * s-exnint.adb: Likewise.
8992         * s-exnint.ads: Likewise.
8993         * s-exnllf.adb: Likewise.
8994         * s-exnllf.ads: Likewise.
8995         * s-exnlli.adb: Likewise.
8996         * s-exnlli.ads: Likewise.
8997         * s-expint.adb: Likewise.
8998         * s-expint.ads: Likewise.
8999         * s-explli.adb: Likewise.
9000         * s-explli.ads: Likewise.
9001         * s-expllu.adb: Likewise.
9002         * s-expllu.ads: Likewise.
9003         * s-expmod.adb: Likewise.
9004         * s-expmod.ads: Likewise.
9005         * s-expuns.adb: Likewise.
9006         * s-expuns.ads: Likewise.
9007         * s-fatflt.ads: Likewise.
9008         * s-fatgen.adb: Likewise.
9009         * s-fatgen.ads: Likewise.
9010         * s-fatlfl.ads: Likewise.
9011         * s-fatllf.ads: Likewise.
9012         * s-fatsfl.ads: Likewise.
9013         * s-ficobl.ads: Likewise.
9014         * s-fileio.adb: Likewise.
9015         * s-fileio.ads: Likewise.
9016         * s-filofl.ads: Likewise.
9017         * s-finimp.adb: Likewise.
9018         * s-finimp.ads: Likewise.
9019         * s-finroo.adb: Likewise.
9020         * s-finroo.ads: Likewise.
9021         * s-fishfl.ads: Likewise.
9022         * s-fore.adb: Likewise.
9023         * s-fore.ads: Likewise.
9024         * s-fvadfl.ads: Likewise.
9025         * s-fvaffl.ads: Likewise.
9026         * s-fvagfl.ads: Likewise.
9027         * s-gearop.adb: Likewise.
9028         * s-gearop.ads: Likewise.
9029         * s-gecobl.adb: Likewise.
9030         * s-gecobl.ads: Likewise.
9031         * s-gecola.adb: Likewise.
9032         * s-gecola.ads: Likewise.
9033         * s-gerebl.adb: Likewise.
9034         * s-gerebl.ads: Likewise.
9035         * s-gerela.adb: Likewise.
9036         * s-gerela.ads: Likewise.
9037         * s-geveop.adb: Likewise.
9038         * s-geveop.ads: Likewise.
9039         * s-gloloc.adb: Likewise.
9040         * s-gloloc.ads: Likewise.
9041         * s-hibaen.ads: Likewise.
9042         * s-imenne.adb: Likewise.
9043         * s-imenne.ads: Likewise.
9044         * s-imgbiu.adb: Likewise.
9045         * s-imgbiu.ads: Likewise.
9046         * s-imgboo.adb: Likewise.
9047         * s-imgboo.ads: Likewise.
9048         * s-imgcha.adb: Likewise.
9049         * s-imgcha.ads: Likewise.
9050         * s-imgdec.adb: Likewise.
9051         * s-imgdec.ads: Likewise.
9052         * s-imgenu.adb: Likewise.
9053         * s-imgenu.ads: Likewise.
9054         * s-imgint.adb: Likewise.
9055         * s-imgint.ads: Likewise.
9056         * s-imgllb.adb: Likewise.
9057         * s-imgllb.ads: Likewise.
9058         * s-imglld.adb: Likewise.
9059         * s-imglld.ads: Likewise.
9060         * s-imglli.adb: Likewise.
9061         * s-imglli.ads: Likewise.
9062         * s-imgllu.adb: Likewise.
9063         * s-imgllu.ads: Likewise.
9064         * s-imgllw.adb: Likewise.
9065         * s-imgllw.ads: Likewise.
9066         * s-imgrea.adb: Likewise.
9067         * s-imgrea.ads: Likewise.
9068         * s-imguns.adb: Likewise.
9069         * s-imguns.ads: Likewise.
9070         * s-imgwch.adb: Likewise.
9071         * s-imgwch.ads: Likewise.
9072         * s-imgwiu.adb: Likewise.
9073         * s-imgwiu.ads: Likewise.
9074         * s-inmaop-dummy.adb: Likewise.
9075         * s-inmaop-vms.adb: Likewise.
9076         * s-inmaop.ads: Likewise.
9077         * s-interr-hwint.adb: Likewise.
9078         * s-interr-sigaction.adb: Likewise.
9079         * s-interr-vms.adb: Likewise.
9080         * s-interr.adb: Likewise.
9081         * s-interr.ads: Likewise.
9082         * s-intman-dummy.adb: Likewise.
9083         * s-intman-mingw.adb: Likewise.
9084         * s-intman-posix.adb: Likewise.
9085         * s-intman-solaris.adb: Likewise.
9086         * s-intman-vms.adb: Likewise.
9087         * s-intman-vms.ads: Likewise.
9088         * s-intman-vxworks.adb: Likewise.
9089         * s-intman-vxworks.ads: Likewise.
9090         * s-intman.ads: Likewise.
9091         * s-io.adb: Likewise.
9092         * s-io.ads: Likewise.
9093         * s-linux-alpha.ads: Likewise.
9094         * s-linux-hppa.ads: Likewise.
9095         * s-linux.ads: Likewise.
9096         * s-maccod.ads: Likewise.
9097         * s-mantis.adb: Likewise.
9098         * s-mantis.ads: Likewise.
9099         * s-mastop-irix.adb: Likewise.
9100         * s-mastop.adb: Likewise.
9101         * s-mastop.ads: Likewise.
9102         * s-memcop.ads: Likewise.
9103         * s-memory-mingw.adb: Likewise.
9104         * s-memory.adb: Likewise.
9105         * s-memory.ads: Likewise.
9106         * s-os_lib.ads: Likewise.
9107         * s-oscons-tmplt.c: Likewise.
9108         * s-osinte-aix.adb: Likewise.
9109         * s-osinte-darwin.adb: Likewise.
9110         * s-osinte-freebsd.adb: Likewise.
9111         * s-osinte-irix.adb: Likewise.
9112         * s-osinte-lynxos-3.adb: Likewise.
9113         * s-osinte-rtems.ads: Likewise.
9114         * s-osinte-tru64.adb: Likewise.
9115         * s-osinte-vxworks-kernel.adb: Likewise.
9116         * s-osinte-vxworks.adb: Likewise.
9117         * s-osprim-mingw.adb: Likewise.
9118         * s-osprim-posix.adb: Likewise.
9119         * s-osprim-solaris.adb: Likewise.
9120         * s-osprim-unix.adb: Likewise.
9121         * s-osprim-vms.adb: Likewise.
9122         * s-osprim-vms.ads: Likewise.
9123         * s-osprim-vxworks.adb: Likewise.
9124         * s-osprim.ads: Likewise.
9125         * s-pack03.adb: Likewise.
9126         * s-pack03.ads: Likewise.
9127         * s-pack05.adb: Likewise.
9128         * s-pack05.ads: Likewise.
9129         * s-pack06.adb: Likewise.
9130         * s-pack06.ads: Likewise.
9131         * s-pack07.adb: Likewise.
9132         * s-pack07.ads: Likewise.
9133         * s-pack09.adb: Likewise.
9134         * s-pack09.ads: Likewise.
9135         * s-pack10.adb: Likewise.
9136         * s-pack10.ads: Likewise.
9137         * s-pack11.adb: Likewise.
9138         * s-pack11.ads: Likewise.
9139         * s-pack12.adb: Likewise.
9140         * s-pack12.ads: Likewise.
9141         * s-pack13.adb: Likewise.
9142         * s-pack13.ads: Likewise.
9143         * s-pack14.adb: Likewise.
9144         * s-pack14.ads: Likewise.
9145         * s-pack15.adb: Likewise.
9146         * s-pack15.ads: Likewise.
9147         * s-pack17.adb: Likewise.
9148         * s-pack17.ads: Likewise.
9149         * s-pack18.adb: Likewise.
9150         * s-pack18.ads: Likewise.
9151         * s-pack19.adb: Likewise.
9152         * s-pack19.ads: Likewise.
9153         * s-pack20.adb: Likewise.
9154         * s-pack20.ads: Likewise.
9155         * s-pack21.adb: Likewise.
9156         * s-pack21.ads: Likewise.
9157         * s-pack22.adb: Likewise.
9158         * s-pack22.ads: Likewise.
9159         * s-pack23.adb: Likewise.
9160         * s-pack23.ads: Likewise.
9161         * s-pack24.adb: Likewise.
9162         * s-pack24.ads: Likewise.
9163         * s-pack25.adb: Likewise.
9164         * s-pack25.ads: Likewise.
9165         * s-pack26.adb: Likewise.
9166         * s-pack26.ads: Likewise.
9167         * s-pack27.adb: Likewise.
9168         * s-pack27.ads: Likewise.
9169         * s-pack28.adb: Likewise.
9170         * s-pack28.ads: Likewise.
9171         * s-pack29.adb: Likewise.
9172         * s-pack29.ads: Likewise.
9173         * s-pack30.adb: Likewise.
9174         * s-pack30.ads: Likewise.
9175         * s-pack31.adb: Likewise.
9176         * s-pack31.ads: Likewise.
9177         * s-pack33.adb: Likewise.
9178         * s-pack33.ads: Likewise.
9179         * s-pack34.adb: Likewise.
9180         * s-pack34.ads: Likewise.
9181         * s-pack35.adb: Likewise.
9182         * s-pack35.ads: Likewise.
9183         * s-pack36.adb: Likewise.
9184         * s-pack36.ads: Likewise.
9185         * s-pack37.adb: Likewise.
9186         * s-pack37.ads: Likewise.
9187         * s-pack38.adb: Likewise.
9188         * s-pack38.ads: Likewise.
9189         * s-pack39.adb: Likewise.
9190         * s-pack39.ads: Likewise.
9191         * s-pack40.adb: Likewise.
9192         * s-pack40.ads: Likewise.
9193         * s-pack41.adb: Likewise.
9194         * s-pack41.ads: Likewise.
9195         * s-pack42.adb: Likewise.
9196         * s-pack42.ads: Likewise.
9197         * s-pack43.adb: Likewise.
9198         * s-pack43.ads: Likewise.
9199         * s-pack44.adb: Likewise.
9200         * s-pack44.ads: Likewise.
9201         * s-pack45.adb: Likewise.
9202         * s-pack45.ads: Likewise.
9203         * s-pack46.adb: Likewise.
9204         * s-pack46.ads: Likewise.
9205         * s-pack47.adb: Likewise.
9206         * s-pack47.ads: Likewise.
9207         * s-pack48.adb: Likewise.
9208         * s-pack48.ads: Likewise.
9209         * s-pack49.adb: Likewise.
9210         * s-pack49.ads: Likewise.
9211         * s-pack50.adb: Likewise.
9212         * s-pack50.ads: Likewise.
9213         * s-pack51.adb: Likewise.
9214         * s-pack51.ads: Likewise.
9215         * s-pack52.adb: Likewise.
9216         * s-pack52.ads: Likewise.
9217         * s-pack53.adb: Likewise.
9218         * s-pack53.ads: Likewise.
9219         * s-pack54.adb: Likewise.
9220         * s-pack54.ads: Likewise.
9221         * s-pack55.adb: Likewise.
9222         * s-pack55.ads: Likewise.
9223         * s-pack56.adb: Likewise.
9224         * s-pack56.ads: Likewise.
9225         * s-pack57.adb: Likewise.
9226         * s-pack57.ads: Likewise.
9227         * s-pack58.adb: Likewise.
9228         * s-pack58.ads: Likewise.
9229         * s-pack59.adb: Likewise.
9230         * s-pack59.ads: Likewise.
9231         * s-pack60.adb: Likewise.
9232         * s-pack60.ads: Likewise.
9233         * s-pack61.adb: Likewise.
9234         * s-pack61.ads: Likewise.
9235         * s-pack62.adb: Likewise.
9236         * s-pack62.ads: Likewise.
9237         * s-pack63.adb: Likewise.
9238         * s-pack63.ads: Likewise.
9239         * s-parame-ae653.ads: Likewise.
9240         * s-parame-hpux.ads: Likewise.
9241         * s-parame-rtems.adb: Likewise.
9242         * s-parame-vms-alpha.ads: Likewise.
9243         * s-parame-vms-ia64.ads: Likewise.
9244         * s-parame-vms-restrict.ads: Likewise.
9245         * s-parame-vxworks.adb: Likewise.
9246         * s-parame-vxworks.ads: Likewise.
9247         * s-parame.adb: Likewise.
9248         * s-parame.ads: Likewise.
9249         * s-parint.adb: Likewise.
9250         * s-parint.ads: Likewise.
9251         * s-pooglo.adb: Likewise.
9252         * s-pooglo.ads: Likewise.
9253         * s-pooloc.adb: Likewise.
9254         * s-pooloc.ads: Likewise.
9255         * s-poosiz.adb: Likewise.
9256         * s-poosiz.ads: Likewise.
9257         * s-powtab.ads: Likewise.
9258         * s-proinf-irix-athread.adb: Likewise.
9259         * s-proinf-irix-athread.ads: Likewise.
9260         * s-proinf.adb: Likewise.
9261         * s-proinf.ads: Likewise.
9262         * s-purexc.ads: Likewise.
9263         * s-rannum.adb: Likewise.
9264         * s-rannum.ads: Likewise.
9265         * s-restri.adb: Likewise.
9266         * s-restri.ads: Likewise.
9267         * s-rident.ads: Likewise.
9268         * s-rpc.adb: Likewise.
9269         * s-rpc.ads: Likewise.
9270         * s-scaval.adb: Likewise.
9271         * s-scaval.ads: Likewise.
9272         * s-secsta.adb: Likewise.
9273         * s-secsta.ads: Likewise.
9274         * s-sequio.adb: Likewise.
9275         * s-sequio.ads: Likewise.
9276         * s-shasto.adb: Likewise.
9277         * s-shasto.ads: Likewise.
9278         * s-soflin.adb: Likewise.
9279         * s-soflin.ads: Likewise.
9280         * s-solita.adb: Likewise.
9281         * s-solita.ads: Likewise.
9282         * s-sopco3.adb: Likewise.
9283         * s-sopco3.ads: Likewise.
9284         * s-sopco4.adb: Likewise.
9285         * s-sopco4.ads: Likewise.
9286         * s-sopco5.adb: Likewise.
9287         * s-sopco5.ads: Likewise.
9288         * s-stache.adb: Likewise.
9289         * s-stache.ads: Likewise.
9290         * s-stalib.adb: Likewise.
9291         * s-stalib.ads: Likewise.
9292         * s-stausa.adb: Likewise.
9293         * s-stausa.ads: Likewise.
9294         * s-stchop-limit.ads: Likewise.
9295         * s-stchop-rtems.adb: Likewise.
9296         * s-stchop-vxworks.adb: Likewise.
9297         * s-stchop.adb: Likewise.
9298         * s-stchop.ads: Likewise.
9299         * s-stoele.adb: Likewise.
9300         * s-stoele.ads: Likewise.
9301         * s-stopoo.adb: Likewise.
9302         * s-stopoo.ads: Likewise.
9303         * s-stratt.adb: Likewise.
9304         * s-stratt.ads: Likewise.
9305         * s-strcom.adb: Likewise.
9306         * s-strcom.ads: Likewise.
9307         * s-string.adb: Likewise.
9308         * s-string.ads: Likewise.
9309         * s-strops.adb: Likewise.
9310         * s-strops.ads: Likewise.
9311         * s-strxdr.adb: Likewise.
9312         * s-ststop.adb: Likewise.
9313         * s-ststop.ads: Likewise.
9314         * s-taasde.adb: Likewise.
9315         * s-taasde.ads: Likewise.
9316         * s-tadeca.adb: Likewise.
9317         * s-tadeca.ads: Likewise.
9318         * s-tadert.adb: Likewise.
9319         * s-tadert.ads: Likewise.
9320         * s-taenca.adb: Likewise.
9321         * s-taenca.ads: Likewise.
9322         * s-taprob.ads: Likewise.
9323         * s-taprop-dummy.adb: Likewise.
9324         * s-taprop-hpux-dce.adb: Likewise.
9325         * s-taprop-irix.adb: Likewise.
9326         * s-taprop-linux.adb: Likewise.
9327         * s-taprop-lynxos.adb: Likewise.
9328         * s-taprop-mingw.adb: Likewise.
9329         * s-taprop-posix.adb: Likewise.
9330         * s-taprop-solaris.adb: Likewise.
9331         * s-taprop-tru64.adb: Likewise.
9332         * s-taprop-vms.adb: Likewise.
9333         * s-taprop-vxworks.adb: Likewise.
9334         * s-taprop.ads: Likewise.
9335         * s-tarest.adb: Likewise.
9336         * s-tarest.ads: Likewise.
9337         * s-tasdeb.adb: Likewise.
9338         * s-tasdeb.ads: Likewise.
9339         * s-tasinf-irix.ads: Likewise.
9340         * s-tasinf-linux.adb: Likewise.
9341         * s-tasinf-linux.ads: Likewise.
9342         * s-tasinf-mingw.adb: Likewise.
9343         * s-tasinf-mingw.ads: Likewise.
9344         * s-tasinf-solaris.adb: Likewise.
9345         * s-tasinf-solaris.ads: Likewise.
9346         * s-tasinf-tru64.ads: Likewise.
9347         * s-tasinf.adb: Likewise.
9348         * s-tasinf.ads: Likewise.
9349         * s-tasini.adb: Likewise.
9350         * s-tasini.ads: Likewise.
9351         * s-taskin.adb: Likewise.
9352         * s-taskin.ads: Likewise.
9353         * s-taspri-dummy.ads: Likewise.
9354         * s-taspri-hpux-dce.ads: Likewise.
9355         * s-taspri-mingw.ads: Likewise.
9356         * s-taspri-solaris.ads: Likewise.
9357         * s-taspri-tru64.ads: Likewise.
9358         * s-taspri-vms.ads: Likewise.
9359         * s-taspri-vxworks.ads: Likewise.
9360         * s-tasque.adb: Likewise.
9361         * s-tasque.ads: Likewise.
9362         * s-tasren.adb: Likewise.
9363         * s-tasren.ads: Likewise.
9364         * s-tasres.ads: Likewise.
9365         * s-tassta.adb: Likewise.
9366         * s-tassta.ads: Likewise.
9367         * s-tasuti.adb: Likewise.
9368         * s-tasuti.ads: Likewise.
9369         * s-tfsetr-default.adb: Likewise.
9370         * s-tfsetr-vxworks.adb: Likewise.
9371         * s-tpinop.adb: Likewise.
9372         * s-tpinop.ads: Likewise.
9373         * s-tpoben.adb: Likewise.
9374         * s-tpoben.ads: Likewise.
9375         * s-tpobop.adb: Likewise.
9376         * s-tpobop.ads: Likewise.
9377         * s-tpopde-vms.adb: Likewise.
9378         * s-tpopde-vms.ads: Likewise.
9379         * s-tpopsp-lynxos.adb: Likewise.
9380         * s-tpopsp-posix-foreign.adb: Likewise.
9381         * s-tpopsp-posix.adb: Likewise.
9382         * s-tpopsp-solaris.adb: Likewise.
9383         * s-tpopsp-vxworks.adb: Likewise.
9384         * s-tporft.adb: Likewise.
9385         * s-tposen.adb: Likewise.
9386         * s-tposen.ads: Likewise.
9387         * s-traceb.adb: Likewise.
9388         * s-traceb.ads: Likewise.
9389         * s-traces-default.adb: Likewise.
9390         * s-traces.adb: Likewise.
9391         * s-traces.ads: Likewise.
9392         * s-traent-vms.adb: Likewise.
9393         * s-traent-vms.ads: Likewise.
9394         * s-traent.adb: Likewise.
9395         * s-traent.ads: Likewise.
9396         * s-trafor-default.adb: Likewise.
9397         * s-trafor-default.ads: Likewise.
9398         * s-tratas-default.adb: Likewise.
9399         * s-tratas.adb: Likewise.
9400         * s-tratas.ads: Likewise.
9401         * s-unstyp.ads: Likewise.
9402         * s-utf_32.adb: Likewise.
9403         * s-utf_32.ads: Likewise.
9404         * s-vaflop-vms-alpha.adb: Likewise.
9405         * s-vaflop.adb: Likewise.
9406         * s-vaflop.ads: Likewise.
9407         * s-valboo.adb: Likewise.
9408         * s-valboo.ads: Likewise.
9409         * s-valcha.adb: Likewise.
9410         * s-valcha.ads: Likewise.
9411         * s-valdec.adb: Likewise.
9412         * s-valdec.ads: Likewise.
9413         * s-valenu.adb: Likewise.
9414         * s-valenu.ads: Likewise.
9415         * s-valint.adb: Likewise.
9416         * s-valint.ads: Likewise.
9417         * s-vallld.adb: Likewise.
9418         * s-vallld.ads: Likewise.
9419         * s-vallli.adb: Likewise.
9420         * s-vallli.ads: Likewise.
9421         * s-valllu.adb: Likewise.
9422         * s-valllu.ads: Likewise.
9423         * s-valrea.adb: Likewise.
9424         * s-valrea.ads: Likewise.
9425         * s-valuns.adb: Likewise.
9426         * s-valuns.ads: Likewise.
9427         * s-valuti.adb: Likewise.
9428         * s-valuti.ads: Likewise.
9429         * s-valwch.adb: Likewise.
9430         * s-valwch.ads: Likewise.
9431         * s-veboop.adb: Likewise.
9432         * s-veboop.ads: Likewise.
9433         * s-vector.ads: Likewise.
9434         * s-vercon.adb: Likewise.
9435         * s-vercon.ads: Likewise.
9436         * s-vmexta.adb: Likewise.
9437         * s-vmexta.ads: Likewise.
9438         * s-vxwext-kernel.ads: Likewise.
9439         * s-vxwext-rtp.adb: Likewise.
9440         * s-vxwext-rtp.ads: Likewise.
9441         * s-vxwext.ads: Likewise.
9442         * s-vxwork-arm.ads: Likewise.
9443         * s-vxwork-m68k.ads: Likewise.
9444         * s-vxwork-mips.ads: Likewise.
9445         * s-vxwork-ppc.ads: Likewise.
9446         * s-vxwork-sparcv9.ads: Likewise.
9447         * s-vxwork-x86.ads: Likewise.
9448         * s-wchcnv.adb: Likewise.
9449         * s-wchcnv.ads: Likewise.
9450         * s-wchcon.adb: Likewise.
9451         * s-wchcon.ads: Likewise.
9452         * s-wchjis.adb: Likewise.
9453         * s-wchjis.ads: Likewise.
9454         * s-wchstw.adb: Likewise.
9455         * s-wchstw.ads: Likewise.
9456         * s-wchwts.adb: Likewise.
9457         * s-wchwts.ads: Likewise.
9458         * s-widboo.adb: Likewise.
9459         * s-widboo.ads: Likewise.
9460         * s-widcha.adb: Likewise.
9461         * s-widcha.ads: Likewise.
9462         * s-widenu.adb: Likewise.
9463         * s-widenu.ads: Likewise.
9464         * s-widlli.adb: Likewise.
9465         * s-widlli.ads: Likewise.
9466         * s-widllu.adb: Likewise.
9467         * s-widllu.ads: Likewise.
9468         * s-widwch.adb: Likewise.
9469         * s-widwch.ads: Likewise.
9470         * s-win32.ads: Likewise.
9471         * s-winext.ads: Likewise.
9472         * s-wwdcha.adb: Likewise.
9473         * s-wwdcha.ads: Likewise.
9474         * s-wwdenu.adb: Likewise.
9475         * s-wwdenu.ads: Likewise.
9476         * s-wwdwch.adb: Likewise.
9477         * s-wwdwch.ads: Likewise.
9478         * scans.adb: Likewise.
9479         * scans.ads: Likewise.
9480         * seh_init.c: Likewise.
9481         * sfn_scan.adb: Likewise.
9482         * sinfo.adb: Likewise.
9483         * sinfo.ads: Likewise.
9484         * sinput.adb: Likewise.
9485         * sinput.ads: Likewise.
9486         * snames.adb: Likewise.
9487         * snames.ads: Likewise.
9488         * socket.c: Likewise.
9489         * stand.adb: Likewise.
9490         * stand.ads: Likewise.
9491         * stringt.adb: Likewise.
9492         * stringt.ads: Likewise.
9493         * sysdep.c: Likewise.
9494         * system-aix.ads: Likewise.
9495         * system-darwin-ppc.ads: Likewise.
9496         * system-darwin-x86.ads: Likewise.
9497         * system-darwin-x86_64.ads: Likewise.
9498         * system-freebsd-x86.ads: Likewise.
9499         * system-hpux-ia64.ads: Likewise.
9500         * system-hpux.ads: Likewise.
9501         * system-irix-n32.ads: Likewise.
9502         * system-irix-n64.ads: Likewise.
9503         * system-irix-o32.ads: Likewise.
9504         * system-linux-alpha.ads: Likewise.
9505         * system-linux-hppa.ads: Likewise.
9506         * system-linux-ia64.ads: Likewise.
9507         * system-linux-mips.ads: Likewise.
9508         * system-linux-mipsel.ads: Likewise.
9509         * system-linux-ppc.ads: Likewise.
9510         * system-linux-ppc64.ads: Likewise.
9511         * system-linux-s390.ads: Likewise.
9512         * system-linux-s390x.ads: Likewise.
9513         * system-linux-sh4.ads: Likewise.
9514         * system-linux-sparc.ads: Likewise.
9515         * system-linux-sparcv9.ads: Likewise.
9516         * system-linux-x86.ads: Likewise.
9517         * system-linux-x86_64.ads: Likewise.
9518         * system-lynxos-ppc.ads: Likewise.
9519         * system-lynxos-x86.ads: Likewise.
9520         * system-mingw-x86_64.ads: Likewise.
9521         * system-mingw.ads: Likewise.
9522         * system-rtems.ads: Likewise.
9523         * system-solaris-sparc.ads: Likewise.
9524         * system-solaris-sparcv9.ads: Likewise.
9525         * system-solaris-x86.ads: Likewise.
9526         * system-solaris-x86_64.ads: Likewise.
9527         * system-tru64.ads: Likewise.
9528         * system-vms-ia64.ads: Likewise.
9529         * system-vms-zcx.ads: Likewise.
9530         * system-vms.ads: Likewise.
9531         * system-vms_64.ads: Likewise.
9532         * system-vxworks-arm.ads: Likewise.
9533         * system-vxworks-m68k.ads: Likewise.
9534         * system-vxworks-mips.ads: Likewise.
9535         * system-vxworks-ppc.ads: Likewise.
9536         * system-vxworks-sparcv9.ads: Likewise.
9537         * system-vxworks-x86.ads: Likewise.
9538         * system.ads: Likewise.
9539         * table.adb: Likewise.
9540         * table.ads: Likewise.
9541         * targext.c: Likewise.
9542         * targparm.ads: Likewise.
9543         * tree_in.adb: Likewise.
9544         * tree_in.ads: Likewise.
9545         * tree_io.adb: Likewise.
9546         * tree_io.ads: Likewise.
9547         * types.adb: Likewise.
9548         * types.ads: Likewise.
9549         * uintp.adb: Likewise.
9550         * uintp.ads: Likewise.
9551         * uname.adb: Likewise.
9552         * uname.ads: Likewise.
9553         * urealp.adb: Likewise.
9554         * urealp.ads: Likewise.
9555         * vx_stack_info.c: Likewise.
9556         * widechar.adb: Likewise.
9557         * widechar.ads: Likewise.
9558         * exp_attr.adb: Change copyright header to refer to version
9559         3 of the GNU General Public License and to point readers at the
9560         COPYING3 file and the FSF's license web page.
9561         * sem.adb: Likewise.
9562         * sem_attr.ads: Likewise.
9563         * freeze.adb: Likewise.
9564         * freeze.ads: Likewise.
9565         * errout.ads: Likewise.
9566         * erroutc.adb: Likewise.
9567         * exp_ch11.ads: Likewise.
9569 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
9571         * config-lang.in: Change copyright header to refer to version
9572         3 of the GNU General Public License and to point readers at the
9573         COPYING3 file and the FSF's license web page.
9574         * gcc-interface/trans.c: Likewise.
9575         * gnathtml.pl: Likewise.
9576         * gcc-interface/ada.h: Likewise.  Remove runtime exception.
9577         * gcc-interface/gigi.h: Likewise.
9578         * gcc-interface/misc.c: Likewise.
9579         * gcc-interface/targtyps.c: Likewise.
9581 2009-04-09  Nicolas Setton  <setton@adacore.com>
9583         * s-osinte-darwin.ads: Fix wrong binding to struc timeval.
9585         * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of
9586         struct_timeval.
9588 2009-04-09  Bob Duff  <duff@adacore.com>
9590         * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in
9591         internally-generated nodes related to select statements to avoid
9592         confusing the debugger.
9594 2009-04-09  Pascal Obry  <obry@adacore.com>
9596         * make.adb: Ensure that all linker arguments are duplicated.
9598 2009-04-09  Robert Dewar  <dewar@adacore.com>
9600         * sem_ch5.adb: Minor reformatting
9602 2009-04-09  Vincent Celier  <celier@adacore.com>
9604         * vms_data.ads:
9605         Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT
9606         New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn
9607         New qualifier /LXDEBUG=nnn for -gnatDnnn
9608         For H820-010
9610         * gnat_ugn.texi:
9611         Update documentation for VMS qualifiers equivalent to -gnatGnn and
9612         -gnatDnn
9614 2009-04-09  Nicolas Setton  <setton@adacore.com>
9616         * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long,
9617         to match layout of siginfo_t in sys/signal.h.
9619         * gcc-interface/Makefile.in: Add section for x86_64 darwin.
9621 2009-04-09  Thomas Quinot  <quinot@adacore.com>
9623         * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment.
9625 2009-04-09  Nicolas Setton  <setton@adacore.com>
9627         * s-oscons-tmplt.c: Allow long lines in the generated spec.
9628         Add generation of Darwin-specific constants needed when binding to the
9629         pthread library.
9631 2009-04-09  Robert Dewar  <dewar@adacore.com>
9633         * checks.adb:
9634         (Insert_Valid_Check): Avoid unnecessary generation of junk declaration
9635         when no invalid values exist, Avoid duplicate read of atomic variable.
9637         * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid
9638         (Standard_Unsigned): Set Is_Known_Valid
9640         * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on
9641         subtype declaration if no constraint.
9642         (Set_Modular_Size): Set Is_Known_Valid if appropriate
9643         (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint
9645 2009-04-09  Robert Dewar  <dewar@adacore.com>
9647         * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb,
9648         switch.ads: for numeric switches, an optional equal sign is always
9649         allowed.
9651 2009-04-09  Vincent Celier  <celier@adacore.com>
9653         * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where
9654         the case of file names is not significant.
9656 2009-04-09  Vincent Celier  <celier@adacore.com>
9658         * errout.adb: Remove dependency on package Style
9660         * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
9661         moved to Stylesw.
9662         
9663         * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
9664         Styleg.
9666         * errutil.adb, par.adb: Import Stylesw
9668 2009-04-09  Arnaud Charlet  <charlet@adacore.com>
9670         * opt.ads: Fix typos.
9672 2009-04-09  Robert Dewar  <dewar@adacore.com>
9674         * einfo.adb: Minor reformatting
9676 2009-04-09  Robert Dewar  <dewar@adacore.com>
9678         * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
9679         units.
9681         * styleg-c.ads, styleg-c.adb: Removed, no longer used.
9683 2009-04-09  Robert Dewar  <dewar@adacore.com>
9685         * g-comver.adb: Minor reformatting.
9687 2009-04-09  Thomas Quinot  <quinot@adacore.com>
9689         * lib-load.ads (Load_Unit): Update documentation.
9691 2009-04-09  Ed Schonberg  <schonberg@adacore.com>
9693         * lib-load.adb (Load_Unit): When loading the parent of a child unit
9694         named in a with_clause, retain the with_clause to preserve a
9695         limited_with indication.
9697 2009-04-09  Robert Dewar  <dewar@adacore.com>
9699         * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb,
9700         exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb,
9701         sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where
9702         possible to replace an OR of two separate tests.
9704 2009-04-09  Robert Dewar  <dewar@adacore.com>
9706         * binderr.adb, errout.adb, errutil.adb: New circuitry for handling
9707         Maximum_Messages.
9708         
9709         * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global
9710         warning status as well.
9711         
9712         * opt.ads (Maximum_Messages): New name for Maximum_Errors.
9713         
9714         * switch-b.adb, switch-c.adb: Change name Maximum_Errors to
9715         Maximum_Messages.
9716         
9717         * bindusg.adb, usage.adb: Update line for -gnatm switch
9719         * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and
9720         -mnn binder switch.
9722 2009-04-09  Robert Dewar  <dewar@adacore.com>
9724         * sem_ch10.adb: Minor reformatting.
9726 2009-04-09  Bob Duff  <duff@adacore.com>
9728         * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler):
9729         Set Sloc of generated nodes for calls to Undefer_Aborts and
9730         Save_Occurrence to No_Location, so the debugger ignores them and
9731         therefore does not jump back and forth when single stepping.
9733 2009-04-09  Robert Dewar  <dewar@adacore.com>
9735         * switch-b.adb: Minor reformatting.
9737 2009-04-09  Robert Dewar  <dewar@adacore.com>
9739         * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
9740         sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
9741         exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
9742         sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
9743         einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
9744         tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
9745         exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
9746         sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
9747         sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
9748         sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
9749         Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
9751 2009-04-09  Robert Dewar  <dewar@adacore.com>
9753         * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
9755         * atree.h: Add Elist26
9757         * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
9758         backends.
9760 2009-04-09  Javier Miranda  <miranda@adacore.com>
9762         * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
9763         retrieve from the Dispatch_Table_Wrappers list the external name.
9764         Addition of documentation.
9765         (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
9766         used to export secondary dispatch tables (in the previous version of
9767         the frontend only primary dispatch tables were exported). Addition of
9768         documentation.
9769         (Import_DT): New subprogram (internal of Make_Tags). Used to import a
9770         dispatch table of a given tagged type. 
9771         (Make_Tags): Modified to import secondary dispatch tables.
9773         * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
9774         (Constant_Redeclaration): Code cleanup.
9776         * einfo.ads (Dispatch_Table_Wrapper): Renamed to
9777         Dispatch_Table_Wrappers.  Update documentation.
9779         * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
9780         Renamed to Dispatch_Table_Wrappers.
9782         * sem_util.adb (Collect_Interface_Components): Improve handling of
9783         private types.
9785         * atree.ads (Elist26, Set_Elist26): New subprograms
9787         * atree.adb (Elist26, Set_Elist26): New subprograms
9789 2009-04-09  Javier Miranda  <miranda@adacore.com>
9791         * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
9792         (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
9793         tagged types.
9795 2009-04-09  Robert Dewar  <dewar@adacore.com>
9797         * s-direio.adb: Minor reformatting
9799         * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
9801 2009-04-09  Robert Dewar  <dewar@adacore.com>
9803         * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
9805 2009-04-09  Pascal Obry  <obry@adacore.com>
9807         * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
9808         s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
9809         a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
9810         a-filico.ads: Add some missing overriding keywords.
9812 2009-04-09  Pascal Obry  <obry@adacore.com>
9814         * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
9815         a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
9816         a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
9817         reformatting.
9819 2009-04-09  Ed Schonberg  <schonberg@adacore.com>
9821         * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
9822         missing overriding indicator if the new declaration is not seen as
9823         primitive.
9825 2009-04-09  Thomas Quinot  <quinot@adacore.com>
9827         * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
9828         overflows in computation of bounds.
9830 2009-04-09  Pascal Obry  <obry@adacore.com>
9832         * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
9833         typos in comment.
9835 2009-04-09  Robert Dewar  <dewar@adacore.com>
9837         * sem_attr.adb (Check_Stream_Attribute): Check violation of
9838         restriction No_Streams
9840         * gnat_rm.texi: Clarify No_Streams restriction
9842         * g-socket.adb: Minor reformatting.
9844 2009-04-09  Thomas Quinot  <quinot@adacore.com>
9846         * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
9848 2009-04-09  Geert Bosch  <bosch@adacore.com>
9850         * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
9851         (Set_Result): Likewise.
9852         (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
9853         conversion, as required by RM 4.6(31).
9855 2009-04-08  Robert Dewar  <dewar@adacore.com>
9857         * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
9858         suppressed.
9859         
9860         * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
9861         resolution steps.
9863 2009-04-08  Robert Dewar  <dewar@adacore.com>
9865         * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
9866         No_Local_Allocators restriction preventing local instantiation.
9868 2009-04-08  Thomas Quinot  <quinot@adacore.com>
9870         * sem_eval.adb: Minor comment fix
9872 2009-04-08  Thomas Quinot  <quinot@adacore.com>
9874         * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
9875         New limited controlled type used to automate the initialization and
9876         finalization of the sockets implementation.
9877         (GNAT.Sockets.Initialize, Finalize): Make these no-ops
9879 2009-04-08  Vincent Celier  <celier@adacore.com>
9881         * prj-attr.adb: New read-only project-level attribute Project_Dir
9883         * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
9884         read-only attribute of the same name.
9885         (Process_Declarative_Items): Call Add_Attributes with Project_Dir
9886         (Recursive_Process): Ditto
9888         * snames.adb: Add new standard name Project_Dir
9890         * snames.ads: Add new standard name Project_Dir
9892 2009-04-08  Thomas Quinot  <quinot@adacore.com>
9894         * checks.adb: Minor reformatting
9896 2009-04-08  Vincent Celier  <celier@adacore.com>
9898         * vms_data.ads: Add documentation for new style keyword
9899         OVERRIDING_INDICATORS
9901 2009-04-08  Robert Dewar  <dewar@adacore.com>
9903         * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
9904         spec is in the current unit.
9906 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
9908         * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
9909         presence of entity.
9911         * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
9913 2009-04-08  Vincent Celier  <celier@adacore.com>
9915         * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
9917 2009-04-08  Thomas Quinot  <quinot@adacore.com>
9919         * checks.ads: Minor reformatting
9921 2009-04-08  Robert Dewar  <dewar@adacore.com>
9923         * gnat_rm.texi: Update documentation of pragma Obsolescent
9924         
9925         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
9926         be omitted, and allow Entity parameter to be omitted.
9928 2009-04-08  Thomas Quinot  <quinot@adacore.com>
9930         * exp_util.adb: Minor comment fix
9932 2009-04-08  Robert Dewar  <dewar@adacore.com>
9934         * g-socket.ads: Fix bad syntax in pragma Obsolescent
9936         * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
9937         argument with no identifier following one that has an identifier. Was
9938         missed in some cases.
9940         * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
9941         identifier.
9942         (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
9944         * snames.adb: Add Name_Policy
9946         * snames.ads: Add Name_Policy
9948 2009-04-08  Robert Dewar  <dewar@adacore.com>
9950         * gnat_rm.texi: Minor reformatting
9952         * par-ch2.adb: Minor reformatting
9954 2009-04-08  Robert Dewar  <dewar@adacore.com>
9956         * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
9958 2009-04-08  Robert Dewar  <dewar@adacore.com>
9960         * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
9961         properly in the presence of Remote_Types or Remote_Call_Interface.
9963         * sem_util.adb: Add comment.
9965 2009-04-08  Robert Dewar  <dewar@adacore.com>
9967         * ug_words: Add /ASSUME_VALID for -gnatB
9969         * vms_data.ads: Add /ASSUME_VALID for -gnatB
9971         * sem_cat.adb: Add clarifying commment
9973         * a-direio.ads (Bytes): Make sure value is non-zero
9975 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
9977         * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
9978         that does not come from source, check for a rewritten function call in
9979         prefixed notation before other forms of rewriting.
9981 2009-04-08  Robert Dewar  <dewar@adacore.com>
9983         * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
9984         these are now obsolescent units used only for bootrapping with an
9985         older compiler.
9987 2009-04-08  Robert Dewar  <dewar@adacore.com>
9989         * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
9991         * sem_ch3.adb: Minor comment updates
9993 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
9995         * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
9996         that come from source.
9998 2009-04-08  Tristan Gingold  <gingold@adacore.com>
10000         * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE.
10001         * gcc-interface/decl.c (prepend_attributes): New case
10002         Pragma_Thread_Local_Storage.
10003         * gcc-interface/utils.c (process_attributes): New case
10004         ATTR_THREAD_LOCAL_STORAGE.
10006 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
10008         * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
10009         by the back-end if it contains a call to a subprogram without a
10010         previous spec that is declared in the same unit.
10012         * errout.ads: Update comments on uses of dirs
10014 2009-04-08  Robert Dewar  <dewar@adacore.com>
10016         * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
10018 2009-04-08  Tristan Gingold  <gingold@adacore.com>
10020         * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
10021         variables.
10022         Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
10024 2009-04-08  Vincent Celier  <celier@adacore.com>
10026         * prj-nmsc.adb:
10027         (Add_Source): Add the mapping of the unit name to source file name in
10028         the Unit_Sources_HT hash table, if the unit name is not null.
10030         * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
10032         * prj.ads (Unit_Sources_Htable): New hash table instantiation
10033         (Project_Tree_Data): New component Unit_Sources_HT
10035 2009-04-08  Thomas Quinot  <quinot@adacore.com>
10037         * sem_ch8.adb: Minor reformatting.
10038         Minor code reorganization.
10040 2009-04-08  Robert Dewar  <dewar@adacore.com>
10042         * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
10043         snames.ads, freeze.adb, par-prag.adb: Add implementation of
10044         pragma Thread_Local_Storage, setting new flag
10045         Has_Pragma_Thread_Local_Storage in corresponding entities.
10047 2009-04-08  Emmanuel Briot  <briot@adacore.com>
10049         * prj.ads: Update comment on switches file
10051         * prj-nmsc.adb: Code clean up. Use renaming clauses.
10053 2009-04-08  Robert Dewar  <dewar@adacore.com>
10055         * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
10057 2009-04-08  Thomas Quinot  <quinot@adacore.com>
10059         * ali-util.adb: Minor comment fix
10061 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
10063         * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
10064         appears in a context clause, and the enclosing package is mentioned in
10065         a limited_with_clause.
10066         (Use_One_Type): Reject clause if type is still incomplete.
10068 2009-04-08  Emmanuel Briot  <briot@adacore.com>
10070         * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
10071         avoid copies of Source_Data variables when possible, since these
10072         involve calls to memcpy() which are done too many times.
10074 2009-04-08  Robert Dewar  <dewar@adacore.com>
10076         * exp_ch4.adb (Expand_Concatenate): Clean up code
10078 2009-04-07  Thomas Quinot  <quinot@adacore.com>
10080         * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
10081         type for the case of concatenating a constrained array indexed by an
10082         enumeration type.
10084 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
10086         * sem_ch6.adb (Check_Conformance): when checking conformance of an
10087         operation that overrides an abstract operation inherited from an
10088         interface, return False if only one of the controlling formals is an
10089         access parameter.
10091 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
10093         * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
10094         mandated by AI05-105.
10096 2009-04-07  Vincent Celier  <celier@adacore.com>
10098         * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
10100 2009-04-07  Thomas Quinot  <quinot@adacore.com>
10102         * usage.adb: Minor fix in usage message.
10104         * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
10105         match declaration; the correct subtype is Node_Id, not Entity_Id,
10106         because the expected node kind is an identifier, not a defining
10107         identifier.
10109         * switch-c.adb: Minor reformatting.
10111         * uintp.adb: Minor reformatting.
10113 2009-04-07  Robert Dewar  <dewar@adacore.com>
10115         * exp_ch13.adb: Minor reformatting
10117 2009-04-07  Robert Dewar  <dewar@adacore.com>
10119         * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
10120         against missing parent.
10122 2009-04-07  Thomas Quinot  <quinot@adacore.com>
10124         * xoscons.adb: Minor reformatting
10126 2009-04-07  Robert Dewar  <dewar@adacore.com>
10128         * rtsfind.ads: Remove obsolete string concatenation entries
10130 2009-04-07  Robert Dewar  <dewar@adacore.com>
10132         * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
10134 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
10136         * sem_ch10.adb (Check_Body_Required): Handle properly imported
10137         subprograms.
10139 2009-04-07  Gary Dismukes  <dismukes@adacore.com>
10141         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
10142         Attribute_Address): When Init_Or_Norm_Scalars is True and the object
10143         is of a scalar or string type then suppress the setting of the
10144         expression to Empty.
10146         * freeze.adb (Warn_Overlay): Also emit the warnings about default
10147         initialization for the cases of scalar and string objects when
10148         Init_Or_Norm_Scalars is True.
10150 2009-04-07  Bob Duff  <duff@adacore.com>
10152         * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
10154 2009-04-07  Bob Duff  <duff@adacore.com>
10156         * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
10157         Form parameter of Text_Translation=No allows binary mode for Text_IO
10158         files.
10160         * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
10162 2009-04-07  Javier Miranda  <miranda@adacore.com>
10164         * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
10165         processing the bounds for bit packed arrays or VM target machines.
10167 2009-04-07  Thomas Quinot  <quinot@adacore.com>
10169         * g-sothco.ads (Int_Access): Remove extraneous access type (use
10170         anonymous access instead).
10171         (Get_Socket_From_Set): Fix incorrectly reverted formals
10172         Last and Socket to match the underlying C routine.
10174         * g-socket.adb, g-socket.ads
10175         (Get): Use named parameter associations instead of positional ones in
10176         call go Get_Socket_From_Set, since this routine has two formals of the
10177         same type.
10178         (Image): New procedure.
10180         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
10181         g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
10182         (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
10183         for type of Arg formal.
10185         * sem_warn.adb: Minor reformatting
10187 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
10189         * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
10190         over record components.
10192 2009-04-07  Nicolas Roche  <roche@adacore.com>
10194         * gsocket.h:
10195         Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
10196         has disappeared between VxWorks 6.4 and VxWorks 6.5
10197         In RTP mode use time.h instead of times.h
10199 2009-04-07  Robert Dewar  <dewar@adacore.com>
10201         * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
10203 2009-04-07  Kevin Pouget  <pouget@adacore.com>
10205         * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
10206         expanded code for constrained types.
10208 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
10210         * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
10211         AI05-105: in an object renaming declaration, anonymousness is a name
10212         resolution rule.
10214         * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
10216 2009-04-07  Arnaud Charlet  <charlet@adacore.com>
10218         * g-comlin.adb (Expansion): Fix old regression: also return directory
10219         names when matching.
10221 2009-04-07  Robert Dewar  <dewar@adacore.com>
10223         * exp_ch4.adb:
10224         (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
10225         (Expand_Concatenate): New name for Expand_Concatenate_String which has
10226         been rewritten to handle all types.
10227         (Expand_Concatenate_Other): Remove
10229 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
10231         * lib-xref.adb (Generate_Reference): A default subprogram in an
10232         instance appears within the tree for the instance, but generates an
10233         implicit reference in the ALI.
10235 2009-04-07  Javier Miranda  <miranda@adacore.com>
10237         * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
10238         derived type that has discriminants, propagate the list of interfaces
10239         to the corresponding new base type. In addition, propagate also
10240         attribute Limited_Present (found working in this patch).
10242 2009-04-07  Robert Dewar  <dewar@adacore.com>
10244         * exp_ch4.adb: Rewrite concatenation expansion.
10246 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
10248         * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
10249         relevant to packages.
10251 2009-04-07  Robert Dewar  <dewar@adacore.com>
10253         * sem_attr.adb: Minor reformatting
10255         * sem_ch6.adb: Minor reformatting
10257 2009-04-07  Tristan Gingold  <gingold@adacore.com>
10259         * socket.c: Add more protections against S_resolvLib_ macros.
10261 2009-04-07  Thomas Quinot  <quinot@adacore.com>
10263         * sem_attr.adb: Minor reformatting
10265 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
10267         * sem_ch6.adb (New_Overloaded_Entity): New predicate
10268         Is_Overriding_Alias to handle properly types that inherit two homonym
10269         operations that have distinct dispatch table entries.
10271 2009-04-07  Emmanuel Briot  <briot@adacore.com>
10273         * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
10274         looking for the end of a parenthesis group
10276 2009-04-07  Tristan Gingold  <gingold@adacore.com>
10278         * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
10280         * socket.c Don't use resolvLib_ macros if not defined.
10282 2009-04-07  Robert Dewar  <dewar@adacore.com>
10284         * g-socket.adb: Minor reformatting.
10286         * g-socthi-mingw.adb: Minor reformatting
10288         * g-sothco.ads: Minor reformatting
10290         * exp_ch4.adb:
10291         (Expand_Concatenate_String): Complete rewrite to generate efficient code
10292         inline instead of relying on external library routines.
10294         * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
10295         s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
10296         obsolescent
10298 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
10300         * sem_attr.adb:
10301         (Eval_Attribute): for attributes of array objects that are not strings,
10302         attributes are not static if nominal subtype of object is unconstrained.
10304 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
10306         * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
10307         operations for a type T in an instance do not override each other,
10308         when T is derived from a formal private type, the corresponding
10309         operations inherited by a type derived from T outside
10310         of the instance do not override each other either.
10312 2009-04-07  Robert Dewar  <dewar@adacore.com>
10314         (Osint.Fail): Change calling sequence to have one string arg
10315         (Make.Make_Failed): Same change
10316         All callers are adjusted to use concatenation
10318 2009-04-07  Robert Dewar  <dewar@adacore.com>
10320         * exp_ch4.adb: Fix documentation typo
10322 2009-04-07  Robert Dewar  <dewar@adacore.com>
10324         * tbuild.ads: Minor reformatting
10326 2009-04-07  Javier Miranda  <miranda@adacore.com>
10328         * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
10329         when compiling under ZFP runtime.
10331 2009-04-07  Robert Dewar  <dewar@adacore.com>
10333         * g-comlin.adb: Minor reformatting
10335 2009-04-07  Thomas Quinot  <quinot@adacore.com>
10337         * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
10338         g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
10339         g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
10340         Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
10342 2009-04-07  Robert Dewar  <dewar@adacore.com>
10344         * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
10346         * opt.ads (Sprint_Line_Limit): New parameter
10347         
10348         * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
10349         
10350         * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
10351         
10352         * usage.adb: Output information for -gnatGnn -gnatDnn
10354 2009-04-07  Robert Dewar  <dewar@adacore.com>
10356         * make.adb: Minor reformatting
10358 2009-04-07  Robert Dewar  <dewar@adacore.com>
10360         * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
10362 2009-04-07  Robert Dewar  <dewar@adacore.com>
10364         * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
10366 2009-04-07  Robert Dewar  <dewar@adacore.com>
10368         * checks.adb:
10369         Remove Assume_Valid parameter from In_Subrange_Of calls
10370         
10371         * sem_eval.adb:
10372         (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
10373         (Is_In_Range): Remove incorrect use of Assume_Valid
10374         (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
10375         
10376         * sem_eval.ads:
10377         (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
10378         (Is_In_Range): Documentation cleanup
10379         (Is_Out_Of_Range): Documentation cleanup
10381         * gnat_rm.texi:
10382         Add documentation for Assume_No_Invalid_Values pragma
10384         * sem_ch12.adb: Minor reformatting
10386         * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
10388         * sem_prag.adb: Improve error message.
10390         * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
10391         LF/CR no longer recognized as line terminator
10393         * switch.ads: Minor documentation improvement
10395         * vms_data.ads: Minor reformatting
10397 2009-04-07  Robert Dewar  <dewar@adacore.com>
10399         * checks.adb (Determine_Range): Add Assume_Valid parameter
10400         
10401         * checks.ads (Determine_Range): Add Assume_Valid parameter
10402         
10403         * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
10404          Is_Null_Loop to suppress warnings in a loop body.
10405         
10406         * exp_ch4.adb:
10407         (Rewrite_Comparison): Major rewrite to accomodate invalid values
10408         
10409         * exp_ch5.adb:
10410         (Expand_N_Loop_Statement): Delete loop known not to execute
10411         
10412         * opt.ads:
10413         (Assume_No_Invalid_Values): Now set to False, and as documented, this
10414          fully enables the proper handling of invalid values.
10415         
10416         * sem_attr.adb:
10417         New calling sequence for Is_In_Range
10418         
10419         * sem_ch5.adb:
10420         (Analyze_Iteration_Scheme): Accomodate possible invalid values
10421          in determining if a loop range is null.
10422         
10423         * sem_eval.adb:
10424         (Is_In_Range): Add Assume_Valid parameter
10425         (Is_Out_Of_Range): Add Assume_Valid_Parameter
10426         (Compile_Time_Compare): Major rewrite to accomodate invalid values and
10427          also to do more accurate and complete range analysis, catching more
10428          cases.
10429         
10430         * sem_eval.ads:
10431         (Is_In_Range): Add Assume_Valid parameter
10432         (Is_Out_Of_Range): Add Assume_Valid_Parameter
10433         
10434         * sem_util.adb:
10435         New calling sequence for Is_In_Range
10436         
10437         * sinfo.adb:
10438         (Suppress_Loop_Warnings): New flag
10439         
10440         * sinfo.ads:
10441         (Is_Null_Loop): Update documentation
10442         (Suppress_Loop_Warnings): New flag
10443         
10444         * gnat_ugn.texi: Document -gnatB switch
10446 2009-04-07  Arnaud Charlet  <charlet@adacore.com>
10448         * gnatvsn.ads: Bump version number.
10450 2009-04-07  Thomas Quinot  <quinot@adacore.com>
10452         * exp_ch3.adb: Minor rewording (comments)
10454 2009-04-07  Robert Dewar  <dewar@adacore.com>
10456         * exp_disp.adb: Minor reformatting
10458 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10460         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
10461         underlying type.
10462         * gcc-interface/trans.c (lvalue_required_p): Likewise.
10464 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10466         * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
10467         Do not convert the result.  Remove obsolete comment.
10469 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10471         * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
10472         DECL_CONTEXT.
10473         (Subprogram_Body_to_gnu): Fix pasto.
10475 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10477         * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
10478         (void_type_decl_node): Remove.
10479         (init_gigi_decls): Likewise.
10480         (gnat_install_builtins): Declare.
10481         (record_builtin_type): Likewise.
10482         (create_type_stub_decl): Likewise.
10483         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
10484         (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
10485         artificial.
10486         <E_Array_Subtype>: Use the index types, not only their name, in the
10487         record giving the names of the bounds, if any.
10488         For a packed array type, make it artificial only if the base type
10489         was artificial as well.  Remove redundant statement.
10490         (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
10491         dummy types.
10492         Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
10493         (rest_of_type_decl_compilation_no_defer): Likewise.
10494         * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
10495         * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
10496         and use create_type_stub_decl to build it.
10497         (gnat_pushdecl): Rewrite condition.
10498         (gnat_install_builtins): Remove bogus declaration.
10499         (record_builtin_type): New function.
10500         (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
10501         of types.
10502         (create_type_stub_decl): New function.
10503         (create_type_decl): Assert that the type is not dummy.  If the type
10504         hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
10505         (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
10506         (build_vms_descriptor): Likewise.
10507         (init_gigi_decls): Delete and move bulk of code to...
10508         * gcc-interface/trans.c (gigi): ...here.  Use record_builtin_type.
10509         (emit_range_check): Add gnat_node parameter.
10510         (emit_index_check): Likewise.
10511         (emit_check): Likewise.
10512         (build_unary_op_trapv): Likewise.
10513         (build_binary_op_trapv): Likewise.
10514         (convert_with_check): Likewise.
10515         (Attribute_to_gnu): Adjust calls for above changes.
10516         (call_to_gnu): Likewise.
10517         (gnat_to_gnu): Likewise.
10518         (assoc_to_constructor): Likewise.
10519         (pos_to_constructor): Likewise.
10520         (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
10521         (process_type): Do not create TYPE_DECL for dummy types.
10523 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10525         * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
10526         * gcc-interface/trans.c: Fix formatting throughout.  Fix comments.
10527         * gcc-interface/utils.c: Fix comments.
10529 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10531         * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
10532         move around.
10533         (gnat_to_gnu_type): Move around.
10534         (get_unpadded_type): Likewise.
10535         * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
10536         Tidy comments.
10538 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10540         * gcc-interface/trans.c (check_for_eliminated_entity): New function.
10541         (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
10542         (call_to_gnu): Invoke it instead of manually checking.
10544 2009-04-04  Eric Botcazou  <ebotcazou@adacore.com>
10546         * gcc-interface/utils.c (finish_record_type): Force structural equality
10547         checks if the record type is discriminated.
10549 2009-03-31  Eric Botcazou  <ebotcazou@adacore.com>
10551         * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
10552         * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
10553         * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
10554         * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
10555         * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
10556         * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
10557         * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
10559 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
10561         * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
10562         of TREE_CONSTANT_OVERFLOW.
10564 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
10566         PR rtl-optimization/323
10567         * gcc-interface/misc.c (gnat_post_options): Set
10568         flag_excess_precision_cmdline.  Give an error for
10569         -fexcess-precision=standard for processors where the option is
10570         significant.
10572 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
10574         PR c/39323
10575         * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
10576         on bit_align.
10578 2009-03-11  Olivier Hainque  <hainque@adacore.com>
10580         * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
10581         checks processing, remove unintended TREE_TYPE walk on index type.
10583 2009-03-01  Eric Botcazou  <ebotcazou@adacore.com>
10585         PR ada/39264
10586         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
10587         call make_packable_type on fat pointer types.
10588         <E_Array_Subtype>: Likewise.
10589         <E_Record_Subtype>: Call make_packable_type on all record types
10590         except for fat pointer types.
10591         (make_packable_type): Likewise.
10592         (gnat_to_gnu_field): Likewise.
10594 2009-02-28  Eric Botcazou  <ebotcazou@adacore.com>
10596         * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
10597         EH_MECHANISM change made on 2007-12-06.
10599 2009-02-26  Andreas Schwab  <schwab@suse.de>
10601         PR ada/39172
10602         * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
10603         * gcc-interface/Makefile.in: Change all uses of $(srcdir),
10604         $(fsrcdir) and $(fsrcpfx) to add ada subdir.
10605         (AWK): Substitute.
10606         (target_cpu_default): Substitute.
10608 2009-02-25  Laurent GUERBY  <laurent@guerby.net>
10610         PR ada/39221
10611         * a-teioed.adb (Expand): Fix Result overflow.
10613 2009-02-25  Laurent GUERBY  <laurent@guerby.net>
10615         * gcc-interface/Makefile.in: Fix multilib handling for
10616         sparc64-linux.
10618 2009-02-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10620         * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
10622 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
10624         * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
10626 2009-02-16  Eric Botcazou  <ebotcazou@adacore.com>
10628         * gcc-interface/deftarg.c: Remove.
10630 2009-02-10  Olivier Hainque  <hainque@adacore.com>
10631             Eric Botcazou  <ebotcazou@adacore.com>
10633         * gcc-interface/decl.c (enum alias_set_op): New enumeration.
10634         (copy_alias_set): Rename into...
10635         (relate_alias_sets): ...this.  Add third parameter OP.  Retrieve the
10636         underlying array of unconstrained arrays for the new type as well.
10637         If the old and new alias sets don't conflict, make one a subset of
10638         the other as per the OP parameter.
10639         (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
10640         <E_Record_Type>: Do not copy the alias set for derived types.
10641         For all types, make the alias set of derived types a superset of
10642         that of their parent type.
10643         (make_aligning_type): Adjust calls to copy_alias_set.
10644         (make_packable_type): Likewise.
10645         * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
10646         Check for alias set conflict instead of strict equality to issue the
10647         warning.
10649 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
10651         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
10652         Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
10653         (copy_alias_set): Assert that arrays have the same aliasing settings.
10654         (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
10656 2009-02-08  Eric Botcazou  <ebotcazou@adacore.com>
10658         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
10659         Set TYPE_NONALIASED_COMPONENT on the array type.
10661 2009-01-31  Laurent GUERBY  <laurent@guerby.net>
10663         * gcc-interface/Makefile.in: Fix mipsel linux handling.
10665 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
10667         * gcc-interface/Makefile.in: Fix multilib handling for
10668         powerpc64-linux.
10670 2009-01-12  Eric Botcazou  <ebotcazou@adacore.com>
10672         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
10673         only useless conversions around renamed objects.
10675 2009-01-11  Eric Botcazou  <ebotcazou@adacore.com>
10677         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
10678         the _Tag field before any discriminants in the field list.
10679         (components_to_record): Remove obsolete comment.
10683 Copyright (C) 2009 Free Software Foundation, Inc.
10685 Copying and distribution of this file, with or without modification,
10686 are permitted in any medium without royalty provided the copyright
10687 notice and this notice are preserved.