OSDN Git Service

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