OSDN Git Service

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