* init.c (__gnat_error_handler, AIX): Add ATTRIBUTE_UNUSED on si
[official-gcc.git] / gcc / ada / ChangeLog
blob21dd495c357110522618beb2f29501f724bf549a
1 2009-09-02  Olivier Hainque  <hainque@adacore.com>
3         * init.c (__gnat_error_handler, AIX): Add ATTRIBUTE_UNUSED on si
4         and uc arguments.
5         
6 2009-09-02  Olivier Hainque  <hainque@adacore.com>
8         * gcc-interface/decl.c (cannot_be_superflat_p): Handle
9         Signed_Integer_Type_Definition Scalar_Ranges.
11 2009-09-02  Eric Botcazou  <ebotcazou@adacore.com>
13         * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Gimplify the
14         SAVE_EXPR built for misaligned arguments.  Remove redundant stuff.
15         (addressable_p): Return true for more rvalues.
17 2009-09-01  Jakub Jelinek  <jakub@redhat.com>
19         * gcc-interface/utils2.c (maybe_wrap_malloc, maybe_wrap_free): Cast
20         POINTER_SIZE to HOST_WIDE_INT.
22 2009-09-01  Richard Guenther  <rguenther@suse.de>
24         * gcc-interface/misc.c (LANG_HOOKS_MARK_ADDRESSABLE): Remove.
26 2009-08-25  Eric Botcazou  <ebotcazou@adacore.com>
28         * gcc-interface/trans.c (call_to_gnu): Tidy.
29         (gnat_to_gnu) <N_Slice>: Set TYPE_ARRAY_MAX_SIZE if the slice has
30         non-constant size but the array itself has constant size.
31         * gcc-interface/utils.c (convert_vms_descriptor64): Fix type
32         consistency error.
33         (convert_vms_descriptor32): Likewise.
35 2009-08-22  Aurelien Jarno  <aurelien@aurel32.net>
37         * gcc-interface/Makefile.in: Add Ada support for 
38         GNU/kFreeBSD x86_64.
39         * system-freebsd-x86_64.ads: New file based on 
40         system-freebsd-x86.ads.
42 2009-08-20  Eric Botcazou  <ebotcazou@adacore.com>
44         * gcc-interface/utils.c (convert): In the padded case, do the final
45         conversion as an unchecked conversion if the underlying types are
46         array types with variable size.
48 2009-08-20  Eric Botcazou  <ebotcazou@adacore.com>
50         * gcc-interface/ada-tree.h (SET_TYPE_RM_VALUE): Mark the expression
51         as visited.
52         * gcc-interface/misc.c (gnat_get_subrange_bounds): Always return the
53         bounds.
54         * gcc-interface/trans.c (add_decl_expr): Do not mark gigi-specific
55         fields.
56         (gnat_gimplify_expr) <DECL_EXPR>: New case.
58 2009-08-17  Aurelien Jarno  <aurelien@aurel32.net>
60         * s-osinte-kfreebsd-gnu.ads (SA_ONSTACK): New constant.
61         (stack_t): New record type.
62         (sigaltstack): New imported function.
63         (Alternate_Stack): New imported variable.
64         (Alternate_Stack_Size): New constant.
66 2009-08-17  Vasiliy Fofanov  <fofanov@adacore.com>
68         * a-calend-vms.adb: Fix typo.
70 2009-08-17  Tristan Gingold  <gingold@adacore.com>
72         * s-taprop-posix.adb: Round up the stack size to avoid failure on
73         Darwin.
75 2009-08-17  Gary Dismukes  <dismukes@adacore.com>
77         * sem_cat.adb (Validate_Static_Object_Name): Update comment.
79 2009-08-17  Vincent Celier  <celier@adacore.com>
81         * make.adb (Arguments_Collected): Unneeded, removed
82         (Change_To_Object_Directory): Use Project directly. Add pragma Assert to
83         ensure caller does not pass in No_Project.
84         (Compile): Add new parameter Project. Let procedure
85         Collect_Arguments_And_Compile provide the proper value.
87         * switch-c.adb: Add documentation for -gnatea and -gnatez
89 2009-08-17  Ben Brosgol  <brosgol@adacore.com>
91         * gnat_ugn.texi: Changed name of package in SAL example, to avoid
92         clash with Ada 2005 reserved word (interface).
94 2009-08-17  Robert Dewar  <dewar@adacore.com>
96         * a-crbtgk.adb, a-crdlli.adb, a-direct.adb, a-caldel-vms.adb,
97         a-calend-vms.adb, a-calfor.adb, a-cdlili.adb, a-chahan.adb,
98         a-cidlli.adb, a-coinve.adb, a-comlin.adb: Minor code reorganization
99         (use conditional expressions).
101 2009-08-17  Robert Dewar  <dewar@adacore.com>
103         * make.adb: Add ??? comment
104         * tbuild.adb: Minor reformatting
106 2009-08-17  Thomas Quinot  <quinot@adacore.com>
108         * exp_ch4.adb (Exp_Ch4.Expand_N_Slice.Make_Temporary): Rename to
109         Make_Temporary_For_Slice to avoid confusion with Tbuild.Make_Temporary.
110         Use Tbuild.Make_Temporary to create entity for the temporary.
112 2009-08-17  Arnaud Charlet  <charlet@adacore.com>
114         * make.adb (Process_Multilib, Scan_Make_Arg): Refine previous change
115         and ignore -mieee switch to avoid spawning an extra gcc in this case.
117 2009-08-17  Thomas Quinot  <quinot@adacore.com>
119         * tbuild.adb: Minor reformatting
121 2009-08-17  Ed Schonberg  <schonberg@adacore.com>
123         * exp_ch3.adb (Build_Discriminant_Formals): If the discriminals already
124         exist, as is the case for synchronized types, use the type of the
125         discriminal in the parameter specification, to prevent a spurious
126         subtype mismatch in gigi.
128 2009-08-17  Robert Dewar  <dewar@adacore.com>
130         * prj-env.adb: Minor reformatting
131         * make.adb: Minor reformatting
132         Comment updates
134 2009-08-17  Javier Miranda  <miranda@adacore.com>
136         * exp_ch7.adb (Wrap_Transient_Expression): Update comments.
138 2009-08-17  Emmanuel Briot  <briot@adacore.com>
140         * prj-part.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-conf.adb
141         (Processing_Flags.Require_Obj_Dirs): new field, which controls whether
142         object directories must be present. In the case of gprclean at least,
143         these are optional (if they do not exist there is nothing to clean)
145 2009-08-17  Robert Dewar  <dewar@adacore.com>
147         * prj-env.adb: Minor reformatting
148         * sem_ch3.adb: Minor reformatting
150 2009-08-17  Hristian Kirtchev  <kirtchev@adacore.com>
152         * sysdep.c (__gnat_localtime_tzoff): VxWorks case - Flip the sign of
153         the time zone since VxWorks chose positive values to represent west
154         time zones and negative for east zones.
156 2009-08-17  Ed Schonberg  <schonberg@adacore.com>
158         * sem_ch3.adb (Access_Definition): Do not create an Itype reference for
159         an anonymous access type whose designated type is generic.
161 2009-08-17  Arnaud Charlet  <charlet@adacore.com>
163         * comperr.adb (Compiler_Abort): Do not generate a bug box when in
164         codepeer mode, friendlier.
166 2009-08-10  Laurent GUERBY  <laurent@guerby.net>
168         * make.adb: Handle multilib
169         
170 2009-08-10  Vincent Celier  <celier@adacore.com>
172         * prj-env.adb (Create_Config_Pragmas_File.Write_Temp_File): Do not use
173         the temporary file name in the error message when the temporary file
174         cannot be created.
176 2009-08-10  Yannick Moy  <moy@adacore.com>
178         * gnat_ugn.texi: Fix typo
180 2009-08-10  Robert Dewar  <dewar@adacore.com>
182         * exp_ch7.adb: Add ??? comment for last change
184 2009-08-10  Vincent Celier  <celier@adacore.com>
186         * prj-env.adb (Add_To_Buffer): New procedure
187         (Create_Config_Pragmas_File): Write to temporary file in one shot
188         (Create_Mapping_File): Ditto
189         (Set_Ada_Paths): Ditto
191 2009-08-10  Vincent Celier  <celier@adacore.com>
193         PR ada/17566
194         * xref_lib.adb (Print_Xref): Make sure that there is at least one space
195         between a declaration name and its type.
197 2009-08-07  Javier Miranda  <miranda@adacore.com>
199         * exp_ch7.adb (Wrap_Transient_Expression): Add missing adjustment of
200         SCIL node.
202 2009-08-07  Robert Dewar  <dewar@adacore.com>
204         * sem_warn.adb (Warn_On_Unreferenced_Entity): Fix obvious typo.
206 2009-08-07  Vincent Celier  <celier@adacore.com>
208         * gnatcmd.adb (GNATCmd): If -U is not used, one and only one main is
209         specified on the command line and there are switches in the Compiler
210         package of the project file, use these compilation switches to invoke
211         the tool.
213 2009-08-07  Ben Brosgol  <brosgol@adacore.com>
215         * gnat_ugn.texi: Wordsmithing edits at beginning of gnatcheck chapter.
217 2009-08-07  Ed Schonberg  <schonberg@adacore.com>
219         * sem_ch10.adb (Analyze_Proper_Body): Indicate name of missing subunit
220         even if not in main unit, to simplify debugging.
222 2009-08-07  Arnaud Charlet  <charlet@adacore.com>
224         * gcc-interface/Makefile.in: Fix handling of GCC_FOR_TARGET.
225         * gcc-interface/Make-lang.in: Update dependencies.
227 2009-08-07  Robert Dewar  <dewar@adacore.com>
229         * types.ads: Minor reformatting
230         * sem_ch12.ads (Check_Generic_Child_Unit): Add missing documentation.
231         * frontend.adb, sem_warn.adb, sem_warn.ads: Fix spelling of
232         Output_Non_Modified_In_Out_Warnings.
233         * sem_ch13.adb: Remove ??? comment.
235 2009-08-07  Vincent Celier  <celier@adacore.com>
237         * mlib-prj.adb (Build_Library): Include binder generate object file
238         for SAL when library name is only one character.
240 2009-08-07  Thomas Quinot  <quinot@adacore.com>
242         * targparm.adb: Minor reformatting
243         * sem.adb: Minor reformatting
244         * exp_ch4.adb (Expand_N_Conditional_Expression): Add comment.
246 2009-08-07  Emmanuel Briot  <briot@adacore.com>
248         * prj-conf.adb: Remove duplicate directory separator in the output when
249         an object directory does not exist.
251 2009-08-07  Robert Dewar  <dewar@adacore.com>
253         * exp_util.adb: Minor reformatting
255 2009-08-07  Vincent Celier  <celier@adacore.com>
257         * mlib-prj.adb (Build_Library): Fixed bug in name of ALI file (wrong
258         length used).
260 2009-08-07  Ed Schonberg  <schonberg@adacore.com>
262         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): In Ravenscar mode,
263         detect non-static private components that will violate restriction
264         No_Implicit_Heap_Allocation.
266 2009-08-07  Ben Brosgol  <brosgol@adacore.com>
268         * gnat_ugn.texi: Edited Rule Exemption section of gnatcheck chapter.
270 2009-08-02  Eric Botcazou  <ebotcazou@adacore.com>
272         * gcc-interface/gigi.h (end_subprog_body): Tweak comment.
273         * gcc-interface/utils.c (end_subprog_body): Likewise.
274         * gcc-interface/trans.c (gigi): Likewise.
275         (gnat_to_gnu): Likewise.
277 2009-07-30  Ben Brosgol  <brosgol@adacore.com>
279         * gnat_ugn.texi: Correct minor texi glitch.
281 2009-07-30  Ed Schonberg  <schonberg@adacore.com>
283         * exp_util.adb (Expand_Subtype_From_Expr): If the type of the
284         expression has an underlying representation that is an unchecked union,
285         there is no subtype to build.
287 2009-07-30  Robert Dewar  <dewar@adacore.com>
289         * a-teioed.adb, exp_disp.adb, s-linux-hppa.ads, s-linux.ads,
290         s-tasini.adb, sem_ch13.adb, sem_ch3.adb, sem_ch3.ads, sem_ch6.adb,
291         sem_ch7.adb, adaint.c: Minor reformatting
293 2009-07-29  Javier Miranda  <miranda@adacore.com>
295         * sem_ch3.ads, sem_ch3.adb (Add_Internal_Interface_Entities): Routine
296         moved from the expander to the semantic analyzer to allow the
297         generation of these internal entities when compiling with no code
298         generation. Required by ASIS.
299         * sem.adb (Analyze): Add processing for N_Freeze_Entity nodes.
300         * sem_ch13.ads, sem_ch13.adb (Analyze_Freeze_Entity): New subprogram.
301         * exp_ch3.adb (Add_Internal_Interface_Entities): Moved to sem_ch3
302         (Expand_Freeze_Record_Type): Remove call to
303         Add_Internal_Interface_Entities because this routine is now called at
304         early stage --when the freezing node is analyzed.
306 2009-07-29  Robert Dewar  <dewar@adacore.com>
308         * exp_atag.ads, exp_atag.adb, s-tasini.adb, s-soflin.ads,
309         exp_disp.adb, g-socket.adb: Minor reformatting
311 2009-07-29  Ed Schonberg  <schonberg@adacore.com>
313         * sem_ch7.adb (New_Private_Type): Create class-wide type after other
314         attributes have been established, so that they are all inherited by the
315         class-wide type.
316         * sem_cat.adb (Validate_Remote_Access_Object_Type_Declaration): Handle
317         properly named subtypes of class-wide types.
319 2009-07-29  Ed Schonberg  <schonberg@adacore.com>
321         * sem_ch6.adb (Check_Overriding_Indicator): Handle properly overriding
322         indicators on user-defined operators.
324 2009-07-29  Vadim Godunko  <godunko@adacore.com>
326         * g-socket.adb (Receive_Vector): Add comment.
328 2009-07-29  Javier Miranda  <miranda@adacore.com>
330         * frontend.adb (Frontend): Code cleanup.
331         * exp_atag.ads, exp_atag.adb (Build_Get_Predefined_Prim_Op_Address):
332         Rewriten as a procedure because it a new out-mode parameters to
333         keep up-to-date the controlling tag node in the caller.
334         (Build_Get_Prim_Op_Address): Rewriten as a procedure because it has a
335         new out-mode parameter to keep up-to-date the controlling tag node in
336         the caller.
337         * exp_ch7.adb, sem_ch5.adb, exp_util.adb, sem_util.adb, exp_ch4.adb,
338         exp_ch6.adb, sem_ch4.adb, exp_ch3.adb: Add new dependency on new
339         package Sem_SCIL.
340         * sem_aux.ads, sem_aux.adb (First_Non_SCIL_Node): Removed. Routine
341         available in new package Sem_SCIL.
342         (Next_Non_SCIL_Node): Ditto.
343         * exp_disp.adb (Adjust_SCIL_Node): Removed. Routine available in new
344         package Sem_SCIL.
345         (Expand_Dispatching_Call): Update call to modified Exp_Atags routines
346         plus complete decoration of SCIL dispatching node.
347         (Find_SCIL_Node): Removed. Routine available in new package Sem_SCIL.
348         * exp_disp.ads (Adjust_SCIL_Node): Removed. Routine available in new
349         package Sem_SCIL.
350         (Find_SCIL_Node): Removed. Routine available in new package Sem_SCIL.
351         * exp_ch3.adb (Build_Init_Procedure): Fix comment.
352         * sem_scil.ads, sem_scil.adb: New files.
353         * gcc-interface/Make-lang.in (GNAT_ADA_OBJS): Addition of sem_scil.o.
354         Update dependencies.
356 2009-07-28  Robert Dewar  <dewar@adacore.com>
358         * adaint.h, einfo.ads, prj.adb, sem_util.adb, makeutl.ads,
359         makeutl.adb: Minor reformatting & code reorganization
360         * sem_ch3.adb: Minor reformatting.
361         Fix spelling error (constraint for constrain) in error msg.
363 2009-07-28  Emmanuel Briot  <briot@adacore.com>
365         * make.adb, makeutl.adb, makeutl.ads (Project_Tree): Duplicates the
366         global variable that also exists in makeutl.ads, and that some routines
367         in that package use already.
368         (Check): Moved part of the code to makeutl.adb for better sharing with
369         gprbuild.
371 2009-07-28  Arnaud Charlet  <charlet@adacore.com>
373         * gcc-interface/Make-lang.in: Update dependencies.
375 2009-07-28  Emmanuel Briot  <briot@adacore.com>
377         * prj.adb, prj.ads (Compute_All_Imported_Projects): Make sure the
378         importing project does not end up in the list, in the case of extending
379         projects.
380         * make.adb, makeutl.adb, makeutl.ads (File_Not_A_Source_Of): Moved to
381         makeutl.ads, for better sharing with gprbuild.
383 2009-07-28  Arnaud Charlet  <charlet@adacore.com>
385         * gnat_ugn.texi: Fix typo.
387 2009-07-28  Ed Schonberg  <schonberg@adacore.com>
389         * sem_ch3.adb (Build_Derived_Concurrent_Type): Handle properly a
390         derivation that renames some discriminants and constrain others.
391         * exp_ch9.adb (Build_Protected_Subprogram_Call): If the type of the
392         prefix is a derived untagged type, convert to the root type to conform
393         to the signature of the protected operations.
395 2009-07-28  Robert Dewar  <dewar@adacore.com>
397         * sinfo.ads: Update comments.
398         * exp_attr.adb: Minor reformatting
400 2009-07-28  Ed Schonberg  <schonberg@adacore.com>
402         * sem_aggr.adb (Get_Value): A named association in a record aggregate
403         should be treated as a modification of the named component, not as a
404         reference.
406 2009-07-28  Quentin Ochem  <ochem@adacore.com>
408         * prj-tree.ads, prj-tree.adb (Free): Minor editing.
409         * prj.ads, prj.adb (Image): Ditto.
411 2009-07-28  Arnaud Charlet  <charlet@adacore.com>
413         * frontend.adb: Minor reformatting.
414         (Frontend): Only call Check_SCIL_Nodes if assertions are enabled,
415         for efficiency.
417 2009-07-28  Bob Duff  <duff@adacore.com>
419         * exp_attr.adb (Expand_Access_To_Protected_Op): Use 'Access instead of
420         'Address to get a pointer to the protected body wrapper.
422 2009-07-28  Javier Miranda  <miranda@adacore.com>
424         * gnat1drv.adb (Adjust_Global_Switches): Disable generation of SCIL
425         nodes if we are not generating code.
426         * frontend.adb (Check_SCIL_Node): New subprogram. Used to check
427         attribute SCIL_Related_Node of SCIL dispatching nodes.
428         (Check_SCIL_Nodes): New instantiation of Traverse_Proc.
429         * sinfo.ads (Is_SCIL_Node,Set_Is_SCIL_Node): Removed
430         (SCIL_Nkind,Set_SCIL_Nkind): Removed.
431         (SCIL_Entity): Update documentation.
432         (SCIL_Related_Node): Update documentation.
433         (SCIL_Controlling_Tag): New attribute.
434         (SCIL_Target_Prim): Update documentation.
435         (N_Null_Statement): Remove attributes associated with SCIL nodes.
436         (N_SCIL_Dispatch_Table_Object_Init): New node.
437         (N_SCIL_Dispatch_Table_Tag_Init): New node.
438         (N_SCIL_Dispatching_Call): New node.
439         (N_SCIL_Tag_Init): New node.
440         * sinfo.adb (Is_SCIL_Node,Set_Is_SCIL_Node): Removed
441         (SCIL_Nkind,Set_SCIL_Nkind): Removed.
442         (SCIL_Controlling_Tag/Set_SCIL_Controlling_Tag): New subprogram.
443         (SCIL_Entity,Set_SCIL_Entity): Applicable only to SCIL nodes.
444         (SCIL_Related_Node,Set_SCIL_Related_Node): Applicable only to SCIL nodes
445         (SCIL_Target_Prim,Set_SCIL_Target_Prim): Applicable only to
446         N_SCIL_Dispatching_Call nodes.
447         * sem.adb (Analyze): No need to analyze SCIL nodes.
448         * sem_aux.ads, sem_aux.adb (First_Non_SCIL_Node): New subprogram
449         (Next_Non_SCIL_Node): New subprogram
450         * sem_ch4.adb (Analyze_Type_Conversion): Adjust relocated SCIL
451         dispatching nodes.
452         * sem_ch5.adb (Analyze_Iteration_Scheme): Adjust relocated SCIL
453         dispatching node.
454         * sem_util.adb (Insert_Explicit_Dereference): Adjust relocated SCIL
455         dispatching node.
456         * exp_ch3.adb (Build_Array_Init_Proc): Skip SCIL nodes when processing
457         null statement nodes.
458         (Build_Init_Procedure): Generate new SCIL node.
459         * exp_ch4.adb (Expand_N_And_Then): Adjust relocated SCIL dispatching
460         node.
461         * exp_ch6.adb (Is_Null_Procedure): Skip SCIL nodes. Required because
462         they are currently implemented as special N_Null_Statement nodes.
463         * exp_ch7.adb (Wrap_Transient_Statement): If the relocated node is a
464         procedure call then check if some SCIL node references it and needs
465         readjustment.
466         * exp_disp.ads (SCIL_Node_Kind): Removed.
467         (Adjust_SCIL_Node): New subprogram.
468         (Find_SCIL_Node): New subprogram.
469         (Get_SCIL_Node_Kind): Removed.
470         (New_SCIL_Node): Removed.
471         * exp_disp.adb (Adjust_SCIL_Node): New subprogram
472         (Expand_Dispatching_Call): Generate new SCIL dispatching node including
473         decoration of its new controlling_tag attribute.
474         (Get_SCIL_Node_Kind): Removed.
475         (Find_SCIL_Node): New subprogram.
476         (Make_Secondary_DT): Generate new SCIL nodes.
477         (Make_Tags): Generate new SCIL nodes.
478         (New_SCIL_Node): Removed.
479         * exp_util.adb (Insert_Actions): Handle SCIL nodes.
480         (Remove_Side_Effects): Check if relocated nodes require readjustment
481         of some SCIL dispatching node.
482         * gcc-interface/trans.c (gnat_to_gnu): Do nothing with new SCIL nodes.
484 2009-07-28  Robert Dewar  <dewar@adacore.com>
486         * prj-nmsc.adb, g-expect.adb, prj.ads: Minor reformatting
488 2009-07-28  Sergey Rybin  <rybin@adacore.com>
490         * gnat_ugn.texi: Add section about gnatcheck rule exemption.
492 2009-07-28  Vadim Godunko  <godunko@adacore.com>
494         * s-oscons-tmplt.c: Define _XOPEN_SOURCE on Linux, otherwise IOV_MAX is
495         not defined by limits.h.
497         * g-socket.adb (Receive_Vector): Use minimum length from user's vector
498         length and maximum supported length of data vector.
500 2009-07-28  Gary Dismukes  <dismukes@adacore.com>
502         * usage.adb: Inhibit printing gcc-specific switches for AAMP target.
503         * make.adb: Call Get_Target_Parameters before calling Usage so that
504         VM_Target and AAMP_On_Target will be set.
506 2009-07-28  Olivier Hainque  <hainque@adacore.com>
508         * g-ssinty.ads: Remove, pointless and just confusing at this stage.
509         * gnat_rm.texi: Remove documentation.
510         * g-sse.ads: Minor reorg along the way.
511         * gcc-interface/Makefile.in: Remove processing for g-ssinty.
512         * g-ssvety.ads: Minor comment updates.
514 2009-07-28  Sergey Rybin  <rybin@adacore.com>
516         * gnat_ugn.texi: gnatcheck 'Format of the Report File' section - update
517         for the new format of the report file.
519 2009-07-28  Sergey Rybin  <rybin@adacore.com>
521         * gnat_ugn.texi: gnatcheck Deeply_Nested_Inlining rule: Update doc.
523 2009-07-28  Pascal Obry  <obry@adacore.com>
525         * g-expect.adb: Record standard handles only on Windows.
527 2009-07-27  Emmanuel Briot  <briot@adacore.com>
529         * prj.ads, prj-nmsc.adb (Override_Kind): add debug trace
530         Add comments.
532 2009-07-27  Sergey Rybin  <rybin@adacore.com>
534         * gnat_ugn.texi: gnatcheck Unconstrained_Array_Returns rule: Add to the
535         rule definition the paragraph that explains that generic functions and
536         functions from generic packages are not checked.
538 2009-07-27  Gary Dismukes  <dismukes@adacore.com>
540         * sem_ch6.adb (New_Overloaded_Entity): Add test for an expanded null
541         procedure when determining whether to set the Overridden_Operation
542         field of a subprogram overriding an inherited subprogram.
543         
544 2009-07-27  Robert Dewar  <dewar@adacore.com>
546         * a-except.adb, a-except-2005.ads: Minor reformatting
548 2009-07-27  Robert Dewar  <dewar@adacore.com>
550         * sem_util.adb, sem_util.ads (Kill_Current_Values): Reset Is_Known_Valid
552 2009-07-27  Javier Miranda  <miranda@adacore.com>
554         * exp_disp.adb (Expand_Dispatching_Call): Reverse previous patch and
555         add some documentation explaining why the SCIL nodes must be generated
556         at that point.
558 2009-07-27  Olivier Hainque  <hainque@adacore.com>
560         * a-except.adb: Bind to __builtin_longjmp directly.
561         * a-except-2005.ads: Provide direct binding to __builtin_longjmp
562         for sjlj variants.
563         * a-exexpr.adb: Use it.
564         * a-except-xi.adb: Likewise.
565         * raise.c (_gnat_builtin_longjmp): Remove and update comments.
566         * raise.h (_gnat_builtin_longjmp): Remove declaration.
568 2009-07-27  Ed Schonberg  <schonberg@adacore.com>
570         * sem_eval.adb (Compile_Time_Compare): More precise handling of
571         Known_Valid flag, to prevent spurious range deductions when scalar
572         variables may be uninitialized. New predicate Is_Known_Valid_Operand.
574 2009-07-27  Robert Dewar  <dewar@adacore.com>
576         * gnatfind.adb, osint.ads, sem.adb, xr_tabls.adb: Minor reformatting
577         and code clean up.
579 2009-07-27  Ed Schonberg  <schonberg@adacore.com>
581         * exp_ch9.adb (Expand_N_Timed_Entry_Call): Do not attempt expansion in
582         Ravenscar mode. Error has already been posted on specification.
584         * sem.adb: Further code clean ups.
586 2009-07-27  Robert Dewar  <dewar@adacore.com>
588         * g-sse.ads: Minor reformatting
590 2009-07-27  Arnaud Charlet  <charlet@adacore.com>
592         * xref_lib.adb (Add_Xref_File_Internal, Find_ALI_Files): Add support for
593         alternate ali extension.
594         * xr_tabls.adb (ALI_File_Name, Get_File, Set_Unvisited): Take into
595         account Osint.ALI_Suffix.
596         * osint.ads (ALI_Suffix): Make visible.
597         * gnatfind.adb (Gnatfind): Add support for --ext= switch.
598         * gnat_ugn.texi: Document new gnatfind --ext= switch.
600 2009-07-27  Ed Schonberg  <schonberg@adacore.com>
602         * sem.adb (Walk_Library_Items): If main unit is an instance body, do
603         its spec first.
605 2009-07-27  Javier Miranda  <miranda@adacore.com>
607         * exp_disp.adb (Expand_Dispatching_Call): Generate the SCIL node after
608         the dispatching call has is expanded.
610 2009-07-27  Ed Schonberg  <schonberg@adacore.com>
612         * exp_attr.adb (Expand_Attribute_Reference, case 'Valid): Reset the
613         Is_Known_Valid flag on the temporary created for the value whose
614         validity is being checked.
616         * sem.adb (Do_Unit_And_Dependents): Further code reorganization to
617         handle properly main units that are package specifications.
619 2009-07-27  Geert Bosch  <bosch@adacore.com>
621         * einfo.ads (Checks_May_Be_Suppressed): Fix typo in comment
622         * sem_aux.ads: Fix typo in comment
623         * sem_util.ads (Is_LHS): Adjust comment to match body
625 2009-07-27  Sergey Rybin  <rybin@adacore.com>
627         * gnat_ugn.texi (gnatcheck Complex_Inlined_Subprograms rule): Update
628         rule definition.
630 2009-07-27  Olivier Hainque  <hainque@adacore.com>
632         * g-sse.ads, g-ssvety.ads: Update comments.
634 2009-07-27  Sergey Rybin  <rybin@adacore.com>
636         * gnat_ugn.texi: Update gnatcheck doc.
638 2009-07-27  Arnaud Charlet  <charlet@adacore.com>
640         * lib-xref.ads: Allocate/document 'o' char for use by references to
641         spark 'own' variables.
643 2009-07-27  Gary Dismukes  <dismukes@adacore.com>
645         * sem_ch6.adb (Analyze_Function_Return): Set Referenced on return
646         objects, since these are implicitly referenced by the return statement.
647         * sem_warn.adb (Warn_On_Unreferenced_Entity): No longer a need to test
648         Is_Return_Object in this procedure, as return objects will never make
649         it here since they're now marked as Referenced.
651 2009-07-27  Robert Dewar  <dewar@adacore.com>
653         * exp_ch2.adb, sem_util.adb, sem_util.ads: Minor reformnatting
655 2009-07-27  Robert Dewar  <dewar@adacore.com>
657         * exp_ch6.adb (Expand_Call): Reset Is_Known_Valid after call
659         * sem_ch3.adb, sem_eval.adb, sem_aux.adb: Minor comment reformatting
661 2009-07-27  Geert Bosch  <bosch@adacore.com>
663         * checks.adb (Find_Check): Minor streamlining of logic.
664         * gnat1drv.adb(Gnat1drv): Put Check_Rep_Info in its alphabetical order.
665         * debug.adb: Document -gnatdX debug flag
666         * exp_ch2.adb(Expand_Entity_Reference): Implement new -gnatdX flag to
667         list information about reads from scalar entities.
668         Also slightly simplify condition for Expand_Current_Value.
669         * sem_util.ads, sem_util.adb (Is_LHS, Is_Actual_Out_Parameter): New
670         functions.
672 2009-07-26  Dave Korn  <dave.korn.cygwin@gmail.com>
674         PR bootstrap/40578
675         * adaint.h (FOPEN, STAT, FSTAT, LSTAT, STRUCT_STAT): Rename from these
676         (GNAT_FOPEN, GNAT_STAT, GNAT_FSTAT, GNAT_LSTAT, GNAT_STRUCT_STAT): ...
677         to these.
678         (__gnat_stat): Adjust reference to STAT in prototype.
679         * adaint.c (__gnat_try_lock, __gnat_fopen, __gnat_file_length,
680         __gnat_named_file_length, __gnat_file_time_name, __gnat_file_time_fd,
681         __gnat_get_libraries_from_registry, __gnat_stat, __gnat_file_exists,
682         __gnat_is_regular_file, __gnat_is_directory, __gnat_is_readable_file,
683         __gnat_is_writable_file, __gnat_is_executable_file,
684         __gnat_set_writable, __gnat_set_executable, __gnat_set_non_writable,
685         __gnat_set_readable, __gnat_set_non_readable, __gnat_is_symbolic_link,
686         __gnat_copy_attribs): Adjust all references to the above.
687         * cstreams.c (__gnat_is_regular_file_fd): Likewise.
689 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
691         * sem.adb (Do_Unit_And_Dependents): Now that specs and bodies are not
692         done at the same time, guard against listing a body more than once.
694 2009-07-23  Robert Dewar  <dewar@adacore.com>
696         * exp_ch6.adb: Minor reformatting
698 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
700         * sem_ch3.adb (Analyze_Object_Declaration): A scalar constant with a
701         static expression is known valid.
702         * sem_eval.adb (Compile_Time_Compare): Handle properly non-static
703         operands of a subtype with a single value.
705 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
707         * sem.adb (Do_Units_And_Dependents): Process bodies only for units that
708         are in the context of the main unit body.
710 2009-07-23  Sergey Rybin  <rybin@adacore.com>
712         * gnat_ugn.texi (Misnamed_Controlling_Parameters gnatcheck rule): Fix
713         misprint in rule description.
715 2009-07-23  Gary Dismukes  <dismukes@adacore.com>
717         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): Replace
718         test that the object declaration is within an extended return statement
719         with direct test of whether the declared object associated with the
720         build-in-place call is a return object, since the enclosing function
721         might not even be a build-in-place function.
723 2009-07-23  Robert Dewar  <dewar@adacore.com>
725         * freeze.adb, prj-nmsc.adb, errout.adb: Minor reformatting
726         Minor code reorganization
728 2009-07-23  Arnaud Charlet  <charlet@adacore.com>
730         * sem_prag.adb (Analyze_Pragma): Do not ignore pragma Pack on records
731         for static analysis, only packed arrays are causing troubles.
733 2009-07-23  Gary Dismukes  <dismukes@adacore.com>
735         * sem_aggr.adb (Resolve_Extension_Aggregate): Report an error when the
736         ancestor part is a call to a limited function with an unconstrained
737         result subtype unless the aggregate has a null extension type.
738         * sem_ch3.adb (Is_Null_Extension): Use the base type when retrieving
739         the parent type declaration to avoid blowups on subtype cases.
741 2009-07-23  Robert Dewar  <dewar@adacore.com>
743         * par-ch4.adb (P_Aggregate_Or_Paren_Expr): Better message for missing
744         comma.
746         * sem_util.adb (Wrong_Type): Special message for cases like A and B = 0
748         * s-regexp.adb: Minor reformatting
749         * scos.ads: Minor reformatting.
751 2009-07-23  Arnaud Charlet  <charlet@adacore.com>
753         * freeze.adb (Set_Small_Size): Remove extra space for consistency with
754         other similar messages.
755         * sem_prag.adb (Freeze_Record_Type, Freeze_Entity): Disable error
756         messages/implicit packing in CodePeer mode.
757         (Analyze_Pragma [case pragma Pack]): Ignore pragma in CodePeer mode.
758         * errout.adb (Special_Msg_Delete): Suppress 'size too small' message in
759         CodePeer mode.
761 2009-07-23  Pascal Obry  <obry@adacore.com>
763         * prj-nmsc.adb: Fix spec/body naming extension on case insensitive
764         systems.
766 2009-07-23  Robert Dewar  <dewar@adacore.com>
768         * einfo.ads, g-ssvety.ads, s-regexp.adb, g-sse.ads: Update comment.
769         Minor reformatting.
771 2009-07-23  Yannick Moy  <moy@adacore.com>
773         * s-regexp.adb (Check_Well_Formed_Pattern): Called before compiling the
774         pattern.
775         (Raise_Exception_If_No_More_Chars): Remove extra blank in exception
776         string.
777         (Raise_Exception): Ditto.
779 2009-07-23  Olivier Hainque  <hainque@adacore.com>
781         * g-sse.ads: Simplify comment.
783 2009-07-23  Olivier Hainque  <hainque@adacore.com>
785         * g-ssinty.ads: New unit. GNAT.SSE.Internal_Types. Factorize
786         low level internal type definitions for distinct higher level
787         binding development activities (user type definitions and
788         operations).
789         * gnat_rm.texi: Document it.
790         * g-ssvety.ads: Use it.
791         * gcc-interface/Makefile.in: (x86 32/64 linux, cygwin32 sections): Add
792         g-ssinty.o to EXTRA_GNATRTL_NONTASKING_OBJS.
793         * gcc-interface/utils.c (gnat_internal_attribute_table): Add entry
794         for the "may_alias" attribute.
796 2009-07-23  Thomas Quinot  <quinot@adacore.com>
798         * scos.ads: Minor typo fix
800         * gcc-interface/decl.c (validate_alignment): For the case of an
801         implicit array base type, look for alignment clause on first subtype.
803 2009-07-23  Robert Dewar  <dewar@adacore.com>
805         * gcc-interface/decl.c (gnat_to_gnu_field): Don't check for overlap
806         with tagged parent if tagged parent is fully repped.
808 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
810         * sem.adb (Walk_Library_Units): Handle properly the case where a unit
811         in the context depends on the spec of the main unit, by delaying
812         processing of the main unit body until all other units have been
813         processed.
815 2009-07-23  Arnaud Charlet  <charlet@adacore.com>
817         * a-convec.adb: Add comments about suspicious/subtle code.
819 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
821         * einfo.ads: Document use of Alias in private overriding
823 2009-07-23  Thomas Quinot  <quinot@adacore.com>
825         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): For the case of
826         an array type, propagate alignment from first subtype to implicit base
827         type so that other subtypes (such as the itypes for aggregates of the
828         type) also receive the expected alignment.
830         * g-comlin.ads: Minor documentation clarification/rewording. 
831         * scos.ads: Minor comments update.
832         * lib-writ.ads: Minor reformatting
834 2009-07-23  Gary Dismukes  <dismukes@adacore.com>
836         * exp_ch3.adb (Expand_N_Object_Declaration): For an initialized object
837         of a class-wide interface type that is a return object of a
838         build-in-place function, bypass the interface-related expansions into
839         renamings with displacement conversions, etc.
840         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Add an assertion
841         for the case where a renaming occurs in a build-in-place context, to
842         assert that the bypassing of the build-in-place treatment only occurs
843         in the case of a renaming that is an expansion of a return expression
844         that is itself a build-in-place function call.
846 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
848         * sem_ch4.adb (Try_Primitive_Operation): A primitive operation is a
849         valid candidate interpretation in a prefixed view if it is hidden, but
850         overrides an inherited operation declared in the visible part.
852 2009-07-23  Robert Dewar  <dewar@adacore.com>
854         * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
855         division operands to 64-bit at all in any circumstances.
857 2009-07-23  Robert Dewar  <dewar@adacore.com>
859         * exp_ch4.adb (Analyze_N_Op_Rem): Assume operands are valid when
860         checking ranges for mod/rem to see if conditional jump will be
861         generated.
862         (Analyze_N_Op_Rem): Don't try to check actual lower bounds for
863         generating special -1 test for rem, generate it whenever both
864         operands can be negative (match circuit in Sem_Res).
865         (Analyze_N_Op_Rem): Don't go to base type, no longer needed and
866         destroys memory of positive range.
867         * sem_res.adb (Resolve_Arithmetic_Op): Assume operands are valid when
868         checking ranges for mod/rem to see if conditional jump will be generated
870 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
872         * exp_ch3.adb (Build_Equivalent_Record_Aggregate): If the type of a
873         scalar components has non-static bounds, the equivalent aggregate
874         cannot be built, even if the expression is static, because range checks
875         will be generated.
877 2009-07-23  Robert Dewar  <dewar@adacore.com>
879         * exp_ch4.adb (Expand_N_Type_Conversion): Don't promote integer
880         division operands to 64-bit inside a conversion if 64-bit division not
881         available.
883 2009-07-23  Sergey Rybin  <rybin@adacore.com>
885         * gnat_ugn.texi: Update doc on Misnamed_Identifiers rule.
887 2009-07-23  Javier Miranda  <miranda@adacore.com>
889         * sinfo.ads, sinfo.adb (SCIL_Entity/Set_SCIL_Entity): new subprograms
890         (Entity/Set_Entity): not available in N_Null_Statement nodes
891         (Is_Scil_Node): renamed as Is_SCIL_Node
892         (Scil_Nkind): renamed as SCIL_Nkind
893         (Scil_Related_Node): renamed as SCIL_Related_Node
894         (Scil_Target_Prim): renamed as SCIL_Target_Prim
895         (Set_Is_Scil_Node): Renamed as Set_Is_SCIL_Node
896         (Set_Scil_Related_Node): Renamed as Set_SCIL_Related_Node
897         (Set_Scil_Target_Prim): Renamed as Set_SCIL_Target_Prim
898         Update documentation
899         * exp_disp.ads (Scil_Node_Kind): Renamed as SCIL_Node_Kind
900         (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
901         (New_Scil_Node): Renamed as New_SCIL_Node
902         * exp_disp.adb Update all occurrences of New_Scil_Node to New_SCIL_Node.
903         (Get_Scil_Node_Kind): Renamed as Get_SCIL_Node_Kind
904         (New_Scil_Node): Renamed as New_SCIL_Node
905         * exp_ch3.adb Update occurrence of New_Scil_Node to New_SCIL_Node.
907 2009-07-23  Robert Dewar  <dewar@adacore.com>
909         * sem_prag.adb: No_Return is an Ada 2005 pragma, not a GNAT pragma
910         * snames.ads-tmpl: No_Return is an Ada 2005 pragma, not a GNAT pragma
911         * einfo.adb: Minor reformatting
913 2009-07-23  Robert Dewar  <dewar@adacore.com>
915         * checks.adb (Apply_Arithmetic_Overflow_Check): Add comments
916         cross-referencing the new related code in
917         Exp_Ch4.Expand_N_Type_Conversion.
918         * exp_ch4.adb (Expand_N_Type_Conversion): Avoid unnecessary overflows
920         * exp_disp.adb, exp_disp.ads, sinfo.ads: Minor reformatting.
921         Add comment.
923 2009-07-23  Javier Miranda  <miranda@adacore.com>
925         * sinfo.ads (Is_Scil_Node, Scil_Nkind, Scil_Related_Node,
926         Scil_Target_Prim, N_Has_Entity): Add missing documentation.
927         * exp_disp.ads (Scil_Node_Kind): Ditto.
928         * exp_disp.adb (Make_DT, Make_Tags): Ditto.
929         * exp_ch3.adb (Build_Init_Procedure): Ditto.
931 2009-07-23  Javier Miranda  <miranda@adacore.com>
933         * einfo.adb (Component_Type): Add missing assertion.
934         * sem_res.adb (Resolve_Call): Ensure proper kind of entity before
935         reading attribute Component_Size.
936         * exp_ch4.adb (Is_Safe_In_Place_Array_Op): Ensure proper kind of entity
937         before reading attributes Component_Size and Component_Type.
938         * exp_ch3.adb (Build_Initialization_Call): Ensure proper kind of entity
939         before reading attribute Component_Type.
941 2009-07-23  Olivier Hainque  <hainque@adacore.com>
943         * gnat_rm.texi: Document the GNAT.SSE units.
945 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
947         * sem_ch6.adb (Analyze_Return_Type): Do not create itype reference for
948         not null return if it appears on a subunit.
950 2009-07-23  Robert Dewar  <dewar@adacore.com>
952         * exp_ch5.adb (Expand_N_Assignment_Statement): Do left-side validity
953         check right away so it does not get skipped for early returns, e.g.
954         array assignments.
955         (Expand_N_Assignment_Statement): Don't propagate Is_Known_Valid to
956         left-side unless we really know the value is valid.
958         * errout.adb, exp_ch3.adb, exp_disp.ads, sinfo.ads, exp_disp.adb: Minor
959         reformatting. Minor code reorganization. Add comments.
961 2009-07-23  Robert Dewar  <dewar@adacore.com>
963         * get_scos.adb (Skip_EOL): Fix error of mishandling end of line after
964         complex condition.
966 2009-07-23  Gary Dismukes  <dismukes@adacore.com>
968         * sem_ch6.adb (Check_Return_Subtype_Indication): Replace type equality
969         with test of coverage, to allow specific type objects in extended
970         returns of class-wide functions. Remove now-unnecessary special-case
971         tests that allowed this in certain cases of expanded extended returns.
973 2009-07-23  Javier Miranda  <miranda@adacore.com>
975         * sinfo.ads,sinfo.adb (Entity/Set_Entity): Attribute available in
976         N_Null_Statements (for SCIL nodes).
977         (Is_Scil_Node/Set_Is_Scil_Node): New attribute (for SCIL nodes).
978         (Scil_Nkind/Set_Scil_Nkind): New attribute (for SCIL nodes).
979         (Scil_Related_Node/Set_Scil_Related_Node): New attribute (for SCIL
980         nodes).
981         (Scil_Target_Prim/Set_Scil_Target_Prim): New attribute (for SCIL nodes).
982         * exp_disp.adb (Expand_Dispatching_Call): Add generation of SCIL node
983         associated with dispatching call.
984         (Get_Scil_Node_Kind): New function that returns the kind of SCIL node.
985         (Make_DT, Make_Tags): Add generation of SCIL nodes associated with
986         initialization of dispatch tables and initialization of tags.
987         (New_Scil_Node): New function that creates a new SCIL node.
988         (Build_Init_Procedure): Add generation of SCIL node associated with the
989         initialization of tags done in the IP subprogram.
991 2009-07-23  Ed Schonberg  <schonberg@adacore.com>
993         * errout.adb (Error_Msg_NEL): If the entity in the initial message has
994         Warnings_Off, do not emit continuation messages.
996         * sem_ch10.adb: Set Is_Compilation_Unit on generated child subprogram
997         spec.
999 2009-07-23  Emmanuel Briot  <briot@adacore.com>
1001         * ali.adb: Minor comment update
1003 2009-07-23  Vasiliy Fofanov  <fofanov@adacore.com>
1005         * s-win32.ads (HANDLE): Define to be the same size as address type.
1006         Fix copyright.
1008 2009-07-23  Olivier Hainque  <hainque@adacore.com>
1010         * g-sse.ads: New file. Root of the SSE facilities trees, with
1011         general description and common declarations.
1012         * g-ssvety.ads: New file. Expose user level SSE vector types.
1013         * impunit.adb (Non_Imp_File_Names_95): Register new units.
1014         * gcc-interface/Makefile.in (x86 32/64 linux, win32): Add
1015         EXTRA_GNATRTL_NONTASKING_OBJS entries for SSE units.
1017 2009-07-23  Ben Brosgol  <brosgol@adacore.com>
1019         * gnat_ugn.texi: Wordsmithing.
1021 2009-07-23  Arnaud Charlet  <charlet@adacore.com>
1023         * prj-conf.ads, prj-conf.adb: Switch to GPLv3.
1025 2009-07-22  Eric Botcazou  <ebotcazou@adacore.com>
1027         * exp_aggr.adb (Gen_Loop): Do not qualify the bounds of the range if
1028         they are already of the base type of the index.
1030 2009-07-22  Brett Porter  <porter@adacore.com>
1032         * sysdep.c, init.c: Fix typo: _SPE_ should have been __SPE__.
1034 2009-07-22  Robert Dewar  <dewar@adacore.com>
1036         * vms_data.ads: Add entry for SCO_OUTPUT (-gnateS)
1037         * gnat_ugn.texi: Add documentation for -gnateS switch
1038         * ug_words: Add entry for -gnateS /SCO_OUTPUT
1039         * gcc-interface/Make-lang.in: Update dependencies.
1041         * get_scos.adb, get_scos.ads, gnat1drv.adb, par_sco.adb,
1042         par_sco.ads, put_scos.adb, put_scos.ads, scos.adb, scos.ads: Initial
1043         complete information for SCO input/output.
1045 2009-07-22  Sergey Rybin  <rybin@adacore.com>
1047         * gnat_ugn.texi: Update doc for some gnatcheck rules.
1049 2009-07-22  Robert Dewar  <dewar@adacore.com>
1051         * par_sco.adb, par_sco.ads (pscos): New debug routine to output
1052         contents of SCO tables.
1053         * put_scos.adb, put_scos.ads, get_scos.adb, get_scos.ads,
1054         scos.adb, scos.ads: New files.
1055         * gcc-interface/Make-lang.in: Update dependencies.
1057         * lib-util.ads, gnatbind.ads, ali.ads, binderr.ads: Minor comment
1058         fixes and reformatting.
1060 2009-07-22  Robert Dewar  <dewar@adacore.com>
1062         * g-socket.ads: Minor reformatting
1064 2009-07-22  Gary Dismukes  <dismukes@adacore.com>
1066         * sem_warn.adb (Warn_On_Unreferenced_Entity): Add warning messages that
1067         include the entity kind for following cases of unreferenced entities:
1068         E_Label, E_Discriminant, E_Package, E_Exception, and Formal_Object_Kind.
1070 2009-07-22  Ed Falis  <falis@adacore.com>
1072         * s-vxwext-kernel.adb, s-vxwext-kernel.ads: Replace use of taskStop
1073         with taskSuspend.
1075 2009-07-22  Arnaud Charlet  <charlet@adacore.com>
1077         * adadecode.c: Make this file compilable outside of GCC.
1079 2009-07-22  Thomas Quinot  <quinot@adacore.com>
1081         * g-socket.adb, g-socket.ads (Check_Selector): Make sure that
1082         (partially) default-initialized socket sets are handled properly by
1083         clearing their Set component.
1085 2009-07-22  Bob Duff  <duff@adacore.com>
1087         * gnat_ugn.texi: Clarify the -gnatVx (validity checking) switches.
1089 2009-07-22  Robert Dewar  <dewar@adacore.com>
1091         * gnat_ugn.texi: Minor reformatting
1093 2009-07-22  Ed Schonberg  <schonberg@adacore.com>
1095         * errout.adb (Error_Msg): A style message within an instantiation
1096         should not be labelled as an error.
1098 2009-07-22  Ed Schonberg  <schonberg@adacore.com>
1100         * freeze.adb (Freeze_Entity): Do not generate extra formal for function
1101         in initialization expression if function does not have convention Ada.
1103 2009-07-22  Sergey Rybin  <rybin@adacore.com>
1105         * gnat_ugn.texi, vms_data.ads: Add qualifier for new gnatpp option
1106         '--separate-label' to control label layout.
1108 2009-07-22  Robert Dewar  <dewar@adacore.com>
1110         * exp_tss.ads, sem_eval.adb: Minor reformatting
1112 2009-07-22  Bob Duff  <duff@adacore.com>
1114         * exp_dist.adb, exp_dist.ads: Update comments.
1116 2009-07-22  Brett Porter  <porter@adacore.com>
1118         * init.c (__gnat_init_float): For SPE, set bits in SPEFSCR instead of
1119         FPSCR.
1120         * sysdep.c (__gnat_get_task_options): Set task option enabling SPE.
1122 2009-07-22  Gary Dismukes  <dismukes@adacore.com>
1124         * exp_ch5.adb, sem_util.adb, sem_attr.adb, exp_dbug.ads, exp_ch2.adb,
1125         exp_tss.ads, exp_ch4.adb, sem_ch4.adb: Correct spelling error.
1126         Minor reformatting.
1127         * sem_res.adb (Resolve_Explicit_Dereference): Reword one comment that
1128         used poor terminology.
1130 2009-07-22  Robert Dewar  <dewar@adacore.com>
1132         * freeze.adb, sem_ch3.adb, sem_prag.adb: Minor reformatting
1133         * sem_eval.adb, exp_tss.adb: Minor comment update.
1134         * stylesw.adb: Code clean up.
1136 2009-07-22  Ed Schonberg  <schonberg@adacore.com>
1138         * freeze.adb (Freeze_Entity): If Implicit_Packing is enabled, and the
1139         component size is an exact number of bytes, an array type can have a
1140         size clause that forces packing even though the array type itself is
1141         not bit-packed.
1143 2009-07-22  Thomas Quinot  <quinot@adacore.com>
1145         * sem_ch3.adb (Analyze_Object_Declaration): For a constant declaration,
1146         if there is a previous entity with the same name in the scope, ignore
1147         it if it is the renaming declaration for a generic package introduced
1148         in instances.
1150 2009-07-22  Nicolas Roche  <roche@adacore.com>
1152         * seh_init.c: use RtlAddFunctionTable to register our SEH exception
1153         handler on x86_64 windows.
1155 2009-07-22  Arnaud Charlet  <charlet@adacore.com>
1157         * sem_prag.adb (Analyze_Pragma): Initialize/Normalize_Scalars create
1158         false positives in CodePeer, so ignore this pragma in this mode.
1160 2009-07-22  Thomas Quinot  <quinot@adacore.com>
1162         * sem_util.adb, sem_ch10.adb: Minor reformatting
1164         * g-socket.adb (Receive_Socket, recvfrom(2) variant): Apply required
1165         special handling for the case of no data received and Item'First =
1166         Stream_Element_Offset'First.
1167         (Last_Index): New subprogram factoring the above special handling
1168         over the various locations where it is required.
1170 2009-07-22  Arnaud Charlet  <charlet@adacore.com>
1172         * gnat1drv.adb (Gnat1drv): Also disable division by zero and alignment
1173         checks in CodePeer_Mode.
1174         * gcc-interface/Make-lang.in: Update dependencies.
1176 2009-07-22  Ed Schonberg  <schonberg@adacore.com>
1178         * sem_aggr.adb: Improve error message.
1180         * sem_ch13.adb: If Ignore_Rep_Clauses is enabled, do a minimal analysis
1181         of an address representation clause.
1182         * freeze.adb (Freeze_Static_Object): An local imported object is legal
1183         if it has an address clause.
1185 2009-07-22  Thomas Quinot  <quinot@adacore.com>
1187         * sem_elab.adb (Insert_Elab_Check): When relocating an overloaded
1188         expression to insert an elab check using a conditional expression, be
1189         sure to carry the original list of interpretations to the new location.
1191 2009-07-22  Gary Dismukes  <dismukes@adacore.com>
1193         * gnat1drv.adb: Fix spelling error.
1195 2009-07-22  Javier Miranda  <miranda@adacore.com>
1197         * sem_type.ads, sem_type.adb (In_Generic_Actual): Leave this subprogram
1198         at the library level and fix a hidden bug in its implementation: its
1199         functionality for renaming objects was broken because
1200         N_Object_Renaming_Declarations nodes are not a subclass of
1201         N_Declaration nodes (as documented in sinfo.ads).
1202         * sem_util.adb (Check_Dynamically_Tagged_Expression): Include in this
1203         check nodes that are actuals of generic instantiations.
1205 2009-07-22  Ed Schonberg  <schonberg@adacore.com>
1207         * sinfo.ads, sinfo.adb (Pending_Context): New flag to indicate that the
1208         context of a compilation unit is being analyzed. Used to detect
1209         circularities created by with_clauses that are not detected by the
1210         loading machinery.
1211         * sem_ch10.adb (Analyze_Compilation_Unit): Set Pending_Context before
1212         analyzing the context of the current compilation unit, to detect
1213         possible circularities created by with_clauses.
1215 2009-07-22  Thomas Quinot  <quinot@adacore.com>
1217         * sem_type.adb (Get_First_Interp): Fix wrong loop exit condition.
1219 2009-07-22  Robert Dewar  <dewar@adacore.com>
1221         * sem_res.adb (Check_No_Direct_Boolean_Operators): Add check for -gnatyB
1222         * style.ads, styleg.adb, styleg.ads (Check_Boolean_Operator): New
1223         procedure.
1224         * usage.adb, stylesw.ads, stylesw.adb: Add handling of -gnatyB switch
1225         * gnat_ugn.texi: Add documentation of -gnatyB
1226         * vms_data.ads: Add entry for -gnatyB (STYLE=BOOLEAN_OPERATORS)
1228 2009-07-22  Robert Dewar  <dewar@adacore.com>
1230         * s-stchop.adb, a-direct.adb, a-ztexio.adb, gnatchop.adb, prj-proc.adb,
1231         make.adb, s-regpat.adb, ali-util.adb, a-ngcefu.adb, prep.adb,
1232         s-tassta.adb, a-tifiio.adb, a-textio.adb, prj.adb, uintp.adb,
1233         s-valrea.adb, a-ngelfu.adb, prepcomp.adb, sinput-l.adb, vms_conv.adb,
1234         errout.adb, g-alleve.adb, repinfo.adb, a-wtedit.adb, ali.adb,
1235         a-witeio.adb, prj-dect.adb, prj-nmsc.adb, sinput-c.adb, binde.adb,
1236         s-regexp.adb, s-imgrea.adb, a-teioed.adb, errutil.adb, prj-util.adb,
1237         a-ztedit.adb, gnatls.adb, prj-conf.adb, bcheck.adb, s-scaval.adb,
1238         erroutc.adb, osint.adb, a-strfix.adb, s-fileio.adb: Make sure sources
1239         obey short-circuit style rule.
1241 2009-07-20  Bob Duff  <duff@adacore.com>
1243         * sem_ch13.adb (Analyze_Record_Representation_Clause): Use "and then"
1244         instead of "and", because otherwise Parent_Last_Bit is read
1245         uninitialized in the case where it's not a tagged type, or the tagged
1246         parent does not have a complete rep clause.
1248 2009-07-20  Robert Dewar  <dewar@adacore.com>
1250         * stylesw.ads: Minor documentation change.
1252         * types.ads: Minor reformatting
1254 2009-07-20  Javier Miranda  <miranda@adacore.com>
1256         * exp_disp.ads (Apply_Access_Checks): New subprogram that takes care of
1257         generating the tag checks associated with dispatching calls.
1258         * exp_disp.adb (Apply_Access_Checks): New subprogram.
1259         (New_Value): This routine was previously local to expand dispatching
1260         calls but it is now used also by Apply_Access_Checks.
1261         (Expand_Dispatching_Calls): Cleanup code because the functionality of
1262         tag checks is now provided by Apply_Access_Checks. 
1263         * exp_ch6.adb (Expand_Call): Incorporate generation of tag checks in
1264         case of dispatching calls.
1266 2009-07-20  Arnaud Charlet  <charlet@adacore.com>
1268         * gnat1drv.adb (Gnat1drv): Also disable Elaboration_Check in
1269         CodePeer_Mode.
1271 2009-07-20  Gary Dismukes  <dismukes@adacore.com>
1273         * exp_prag.adb (Expand_Pragma_Import_Export_Exception): When compiling
1274         for VMS, only rewrite the first component of the associated exception's
1275         aggregate init (as 'V'), and eliminate the bogus rewrites of the second
1276         and third components  that were being replaced with 'M' and 'S'.
1278 2009-07-20  Arnaud Charlet  <charlet@adacore.com>
1280         * gnat1drv.adb (Gnat1drv): Suppress access checks in CodePeer mode.
1281         Also do not generate error when parsing a spec in CodePeer mode.
1283 2009-07-20  Javier Miranda  <miranda@adacore.com>
1285         * checks.adb (Apply_Access_Check): Avoid checks on availability of
1286         runtime function Offset_To_Top_Ptr when compiling with no tagged
1287         types expansion.
1288         * exp_ch3.adb (Build_Init_Procedure): Leave open the possibility of
1289         adding code to the init proc when compiling for VM backends.
1291 2009-07-20  Vincent Celier  <celier@adacore.com>
1293         * switch-m.ads, switch-m.adb (Normalize_Compiler_Switches): Take into
1294         account switches -gnatw.?
1296 2009-07-20  Thomas Quinot  <quinot@adacore.com>
1298         * sem_dist.adb, exp_dist.adb: Minor reformatting
1300         * Make-generated.in: New file.
1302         * gcc-interface/Make-lang.in: Use Make-generated.in fragment.
1304 2009-07-20  Javier Miranda  <miranda@adacore.com>
1306         * sem_util.ads, sem_util.adb (Check_Dynamically_Tagged_Expression): New
1307         subprogram.
1308         * sem_aggr.adb (Resolve_Array_Aggregate): Check incorrect use of
1309         dynamically tagged expression.
1310         * sem_ch3.adb (Analyze_Object_Declaration): Call new routine that
1311         factorizes code.
1312         * sem_ch6.adb (Analyze_Function_Return, Process_Formals): Ditto.
1313         * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
1315 2009-07-20  Arnaud Charlet  <charlet@adacore.com>
1317         * gnat1drv.adb (Gnat1drv): Set operating mode to Generate_Code when
1318         CodePeer_Mode is set, to benefit from full front-end expansion
1319         (e.g. generics).
1321 2009-07-20  Ed Schonberg  <schonberg@adacore.com>
1323         * sem_res.adb: Add guard.
1325         * exp_disp.adb, sem_disp.adb (Make_DT): Check underlying view of type
1326         for possible attribute definition of External_Tag, in case clause
1327         appears in the private part of a package.
1329 2009-07-20  Jerome Guitton  <guitton@adacore.com>
1331         * gcc-interface/Makefile.in: cleanup powerpc linux target pairs.
1333 2009-07-20  Vadim Godunko  <godunko@adacore.com>
1335         * a-coorma.adb: Minor reformatting.
1337 2009-07-20  Ed Schonberg  <schonberg@adacore.com>
1339         * sem_ch3 (Build_Itype_Reference): Make public, for use on non-null
1340         access return types.
1341         * sem_ch6.adb (Analyze_Return_Type): If return is a not null subtype,
1342         provide an itype reference to gigi to force elaboration of the subtype
1343         at the proper point.
1345 2009-07-20  Tristan Gingold  <gingold@adacore.com>
1347         * g-expect.adb: Avoid closeing already closed handle.
1349 2009-07-20  Robert Dewar  <dewar@adacore.com>
1351         * sprint.adb (Write_Subprogram_Name): New procedure to output
1352         subprogram name with possible preceding $ (replaces
1353         Note_Implicit_Run_Time_Call).
1355 2009-07-20  Robert Dewar  <dewar@adacore.com>
1357         * vms_data.ads: Minor reformatting
1359         * einfo.ads, einfo.adb (Parent_Subtype): Now allowed on record subtype,
1360         applies to base type.
1361         (Parent_Subtype): Now allowed on record subtype, applies to base type
1362         * exp_ch5.adb (Expand_Assign_Record): Handle Componentwise_Assignment
1363         for case of fully repped tagged type.
1364         (Make_Tag_Ctrl_Assignment): Set Componentwise_Assignment and avoid
1365         tag save/restore for fully repped tagged type case.
1366         * exp_util.ads, exp_util.adb (Is_Fully_Repped_Tagged_Type): New function
1367         * fe.h (Is_Fully_Repped_Tagged_Type): New function
1368         * sem_ch13.adb (Analyze_Recorrd_Representation_Clause): Check for
1369         overlap of tagged type components with parent type if parent type is
1370         fully repped.
1371         * sinfo.ads, sinfo.adb (Componentwise_Assignment): New flag
1373         * sem_res.adb (Check_No_Direct_Boolean_Operators): Remove handling of
1374         comparisons.
1375         (Resolve_Comparison_Operators): Remove No_Direct_Boolean_Operators check
1376         (Resolve_Equality_Op): Remove No_Direct_Boolean_Operators check
1378         * gnat_rm.texi: Restriction No_Direct_Boolean_Operators includes only
1379         logical operators (AND/OR/XOR), not comparison operators.
1381         * sprint.ads: Minor reformatting
1383 2009-07-20  Ed Schonberg  <schonberg@adacore.com>
1385         * sem_intr.adb (Check_Intrinsic_Call): For Import_Value and related
1386         intrinsics, check that argument is a string literal, rather than
1387         checking for staticness.
1389 2009-07-20  Robert Dewar  <dewar@adacore.com>
1391         * sem_ch13.adb: Minor reformatting
1393         * einfo.ads: Minor reformatting
1394         Component_Bit_Offset is no longer considered obsolescent
1396 2009-07-20  Nicolas Roche  <roche@adacore.com>
1398         * a-calend.adb: Redefine time_t as signed integer with same size as
1399         Address type.
1400         * s-os_lib.ads: Redefine OS_Time as signed integer with same size as
1401         Address type
1402         * adaint.h: On Windows 64bits declare OS_Time as long long instead of
1403         long
1405 2009-07-20  Javier Miranda  <miranda@adacore.com>
1407         * exp_tss.adb (Init_Proc): Add missing support for non-default C++
1408         constructors that have anonymous access type formals.
1410         * sem_res.adb (Resolve_Actuals): Disable checks associated with Ada
1411         class-wide arguments in case of imported C++ subprograms.
1413         * exp_ch3.adb (Build_Initialization_Call): Add assertion.
1415 2009-07-20  Sergey Rybin  <rybin@adacore.com>
1417         * vms_data.ads: Update qualifiers.
1419 2009-07-20  Robert Dewar  <dewar@adacore.com>
1421         * einfo.ads, switch.adb, gnatls.adb, inline.adb, sem_ch13.adb: Minor
1422         reformatting
1424 2009-07-17  Richard Guenther  <rguenther@suse.de>
1426         PR c/40401
1427         * gcc-interface/utils.c (end_subprog_body): Revert to pre-tuples
1428         state.  Remove unused parameter.
1429         (gnat_gimplify_function): Do not gimplify here.
1430         Fold into its only caller and remove.
1431         (gnat_builtin_function): Adjust for end_subprog_body signature change.
1432         (gnat_write_global_declarations): Also finalize the CU.
1433         * gcc-interface/misc.c (gnat_parse_file): Do not finalize the CU here.
1434         * gcc-interface/trans.c (gigi): Revert to pre-tuples state.
1435         (Subprogram_Body_to_gnu): Adjust for end_subprog_body signature
1436         change.
1437         * gcc-interface/gigi.h (end_subprog_body): Remove unused parameter.
1439 2009-07-15  Arnaud Charlet  <charlet@adacore.com>
1441         * gcc-interface/Make-lang.in: Update dependencies
1443         * gcc-interface/Makefile.in: Add target pairs for PPC/Xenomai
1445 2009-07-15  Robert Dewar  <dewar@adacore.com>
1447         * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
1448         N_Label. Remove SCO table entry for entry point (not used).
1450         * par_sco.ads: Remove SCO entry point type (not used)
1452         * switch.adb: Minor code clean up.
1454 2009-07-15  Eric Botcazou  <ebotcazou@adacore.com>
1456         * exp_dbug.ads (Base Record Types): Document enhanced encoding.
1458 2009-07-15  Thomas Quinot  <quinot@adacore.com>
1460         * gnatls.adb: Minor reformatting
1462         * gnatcmd.adb: Minor code reorganization
1464 2009-07-15  Ed Schonberg  <schonberg@adacore.com>
1466         * exp_util.adb (Component_May_Be_Bit_Aligned): Use underlying type to
1467         determine whether a component of a private type has a composite type.
1469 2009-07-15  Robert Dewar  <dewar@adacore.com>
1471         * sem_ch10.adb: Minor reformatting throughout
1472         Minor code reorganization (put nested subprograms in alpha order)
1474 2009-07-15  Ed Schonberg  <schonberg@adacore.com>
1476         * exp_ch6.adb (Expand_Call): Prevent double attachment of the result
1477         when compiling a call to a protected function that returns a controlled
1478         object.
1480 2009-07-15  Hristian Kirtchev  <kirtchev@adacore.com>
1482         * sysdep.c (__gnat_localtime_tzoff): Consolidate the Lynx cases into
1483         one. Add task locking and unlocking around the critical region which
1484         mentions localtime_r and global variable timezone for various targets.
1485         Comment reformatting.
1487 2009-07-15  Robert Dewar  <dewar@adacore.com>
1489         * gnat_rm.texi: Document s-ststop.ads
1491         * impunit.ad: (Map_Array): New table of alternative names
1492         (Get_Kind_Of_Unit): Return possible suggested alternative name
1494         * impunit.ads (Get_Kind_Of_Unit): Return possible suggested
1495         alternative name.
1497         * sem_ch10.adb (Analalyze_With_Clause): Add name of possible
1498         alternative unit if an implementation unit is with'ed.
1500 2009-07-15  Robert Dewar  <dewar@adacore.com>
1502         * gnat_ugn.texi: Minor updates.
1504         * snames.ads-tmpl: Minor comment updates for Ada 2005 fully implemented
1506 2009-07-15  Ed Schonberg  <schonberg@adacore.com>
1508         * sem_warn.adb (Warn_On_Constant_Condition): Handle properly constant
1509         conditions of a derived boolean type.
1510         Minor reformatting
1512 2009-07-15  Robert Dewar  <dewar@adacore.com>
1514         * gnat1drv.adb: Initialize SCO tables
1516         * par-load.adb: Call SCO_Record for main unit spec
1518         * par.adb: Make call to SCO_Record for main unit
1520         * par_sco.adb (Unit_Table): Change format to facilitate sort
1521         (Process_Decisions): New procedure with list argument
1522         (Traverse_Generic_Package_Declaration): New procedure
1523         (Initialize): New procedure, replaces Init
1524         (SCO_Output): Sort unit table before output
1525         (SCO_Record): Avoid duplications
1526         (SCO_Record): Handle remaining cases of units
1527         (Traverse_Declarations_Or_Statements): Handle generics
1529         * par_sco.ads (Initialize): New peocedure (replaces Init)
1531         * sem_ch10.adb (Analyze_Proper_Body): Make call to SCO_Record for
1532         subunit.
1534 2009-07-15  Arnaud Charlet  <charlet@adacore.com>
1536         * debug.adb: Add -gnatd.J switch for now to support scil generation in
1537         parallel. Add missing doc for -gnatd.I and -gnatd.O
1539 2009-07-15  Robert Dewar  <dewar@adacore.com>
1541         * lib-load.adb: Minor reformatting
1543         * lib-writ.adb (Write_ALI): Fix handling of SCO_Output wrt Generate_SCO.
1545 2009-07-15  Robert Dewar  <dewar@adacore.com>
1547         * par.adb: Minor reformatting
1548         Add ??? comment for possible bad comment
1550         * par-ch10.adb: Minor reformatting
1552 2009-07-15  Ed Schonberg  <schonberg@adacore.com>
1554         * sem_warn.adb (Warn_On_Constant_Condition): if the constant condition
1555         is a literal of a derived boolean type, it appears as an unchecked
1556         conversion. Retrieve actual value from expression of conversion.
1558 2009-07-15  Robert Dewar  <dewar@adacore.com>
1560         * sem_ch3.adb: Minor reformatting
1562         * lib-xref.ads, lib-xref.adb, lib.ads, par_sco.ads, par_sco.adb,
1563         lib-writ.ads, lib-writ.adb: Minor reformatting.
1564         Fix problem with SCO format in ALI files
1566 2009-07-15  Robert Dewar  <dewar@adacore.com>
1568         * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
1569         exp_aggr.adb: Minor code reorganization (better calling sequence for
1570         Make_Temporary).
1572 2009-07-15  Thomas Quinot  <quinot@adacore.com>
1574         * opt.ads: Minor comment edits
1576 2009-07-15  Tristan Gingold  <gingold@adacore.com>
1578         * gcc-interface/Makefile.in: Special rule for seh_init.o no longer
1579         needed.
1581 2009-07-15  Robert Dewar  <dewar@adacore.com>
1583         * lib-writ.adb (Write_Unit_Information): Use SCO_Output to output SCO
1584         information.
1586         * lib-writ.ads: Document addition of SCO lines to ALI file
1588         * par_sco.ads, par_sco.adb: New files.
1590         * opt.ads (Generate_SCO): New switch
1592         * par.adb (Par): Call SCO_Record to record SCO information
1594         * sem_warn.adb (Warn_On_Constant_Condition): Adjust SCO condition
1596         * switch-c.adb: Recognize -gnateS to generate SCO information
1598         * usage.adb: Add line for -gnateS
1600         * gcc-interface/Make-lang.in: Add dependency on par_sco.o for gnat1
1602 2009-07-15  Robert Dewar  <dewar@adacore.com>
1604         * sinfo.ads, make.adb, par.ads, par.adb, sem_warn.adb: Minor
1605         reformatting.
1607 2009-07-15  Thomas Quinot  <quinot@adacore.com>
1609         * g-socthi-mingw.adb: Minor comment addition
1611         * g-socthi-mingw.ads (WSAStartup): First argument is a WORD not an int.
1613 2009-07-15  Robert Dewar  <dewar@adacore.com>
1615         * g-htable.ads, s-htable.ads: Minor reformatting
1617 2009-07-15  Robert Dewar  <dewar@adacore.com>
1619         * switch-c.adb, sem_ch10.adb, sem_warn.adb, sem_warn.ads: Implement
1620         new switch -gnatw.g.
1621         (Set_GNAT_Mode_Warnings): New procedure.
1623         * lib-xref.adb: Minor reformatting
1625 2009-07-15  Robert Dewar  <dewar@adacore.com>
1627         * exp_aggr.adb, tbuild.ads, tbuild.adb: Minor reformatting
1628         Minor code reorganization
1630 2009-07-14  Taras Glek  <tglek@mozilla.com>
1631             Rafael Espindola  <espindola@google.com>
1633         * gcc-interface/Make-lang.in (ada.install-plugin): New target for
1634         installing plugin headers.
1636 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
1638         * exp_ch7.adb, exp_util.adb, tbuild.adb, tbuild.ads, exp_ch4.adb,
1639         exp_aggr.adb (Make_Temporary): Utility to create a defining identifier
1640         and link it to the expression whose value it captures.
1642 2009-07-13  Robert Dewar  <dewar@adacore.com>
1644         * output.adb: Minor comment addition for last change
1646         * sinfo.ads: Minor reformatting
1648 2009-07-13  Vasiliy Fofanov  <fofanov@adacore.com>
1650         * adaint.c (__gnat_portable_no_block_spawn): on Windows, return -1 when
1651         spawn failed like on all other targets.
1653 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
1655         * exp_ch7.adb: Indicate origin of temporary for transient expression.
1657 2009-07-13  Thomas Quinot  <quinot@adacore.com>
1659         * s-oscons-tmplt.c: Add comment.
1661 2009-07-13  Robert Dewar  <dewar@adacore.com>
1663         * sinfo.adb, sinfo.ads, sem_util.adb, atree.adb, atree.ads: Minor
1664         reformatting. Minor code reorganization (add 9 argument version of
1665         Nkind_In).
1667         * impunit.adb: Remove s-os_lib from list of system extensions.
1669         * sem_util.ads: Minor reformatting
1671         * output.adb: Add warnings off/on around System.OS_Lib.
1673 2009-07-13  Bob Duff  <duff@adacore.com>
1675         * exp_dist.adb: Minor comment updates.
1677 2009-07-13  Gary Dismukes  <dismukes@adacore.com>
1679         * sem_ch10.adb, sem_ch12.adb, gnat1drv.adb, exp_ch4.adb: Fix casing of
1680         several references to CodePeer.
1682 2009-07-13  Bob Duff  <duff@adacore.com>
1684         * exp_dist.adb (Build_From_Any_Function,Build_To_Any_Function,
1685         Build_TypeCode_Function_All): Do not recurse if the type is the base
1686         type.
1688 2009-07-13  Robert Dewar  <dewar@adacore.com>
1690         * exp_ch4.adb: Minor comment change
1692 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
1694         * sem_ch5.adb (Analyze_Iteration_Scheme): Generate dummy reference for
1695         type of iteration, to prevent spurious warnings.
1697 2009-07-13  Nicolas Roche  <roche@adacore.com>
1699         * s-oscons-tmplt.c: On VxWorks target ensure that vxWorks.h is always
1700         included.
1702 2009-07-13  Arnaud Charlet  <charlet@adacore.com>
1704         * switch-c.adb, usage.adb, sem_ch9.adb, gnat_ugn.texi, rtsfind.adb,
1705         gnat1drv.adb, opt.ads, sem_ch13.adb (Inspector_Mode): Renamed to
1706         Generate_SCIL.
1707         (CodePeer_Mode): New -gnatC switch.
1708         (Adjust_Global_Switches): Adjust settings for Generate_SCIL and
1709         CodePeer_Mode.
1711 2009-07-13  Eric Botcazou  <ebotcazou@adacore.com>
1713         * checks.adb (Selected_Range_Checks): Do not consider that a non-static
1714         integer bound forces the check if it is compared to its subtype range.
1716 2009-07-13  Robert Dewar  <dewar@adacore.com>
1718         * prj.ads, prj-dect.adb, prj-err.ads, prj-err.adb, prj-nmsc.adb,
1719         prj-strt.ads: Minor reformatting
1721 2009-07-13  Thomas Quinot  <quinot@adacore.com>
1723         * exp_dist.adb (Build_From_Any_Call): For the case of a generic type,
1724         set the type of the From_Any call to the base type.
1726 2009-07-13  Doug Rupp  <rupp@adacore.com>
1728         * symbols-processing-vms-ia64.adb (Process): Add variables and
1729         constants to retrieve and check for symbol visibility.
1731 2009-07-13  Javier Miranda  <miranda@adacore.com>
1733         * exp_ch4.adb (Expand_N_Unchecked_Type_Conversion): If conversion is to
1734         the identical type we remove the conversion completely because
1735         it is useless.
1737 2009-07-13  Emmanuel Briot  <briot@adacore.com>
1739         * prj-err.adb (Error_Msg): One more case where a message should be
1740         considered as a warning.
1742         * gnatcmd.adb (GNATCmd): Fix previous change, which negated a test.
1744 2009-07-13  Thomas Quinot  <quinot@adacore.com>
1746         * exp_dist.adb (Expand_All_Calls_Remote_Subprogram_Call): Analyze
1747         calling stubs in the (library level) scope of the RCI locator, where it
1748         is attached, not in the caller's scope.
1750 2009-07-13  Javier Miranda  <miranda@adacore.com>
1752         * sem_ch3.adb (Analyze_Object_Declaration): In case of class-wide
1753         interface object declarations we delay the generation of the equivalent
1754         record type declarations until its expansion because there are cases in
1755         which they are not required.            
1757         * sem_util.adb (Implements_Interface): Add missing support for subtypes.
1759         * sem_disp.adb (Check_Controlling_Formals): Minor code cleanup plus
1760         addition of assertion.
1762         * exp_util.adb (Expand_Subtype_From_Expr): Renamings of class-wide
1763         interface types require no equivalent constrained type declarations
1764         because the expanded code only references the tag component associated
1765         with the interface.
1766         (Find_Interface_Tag): Improve management of interfaces that are
1767         ancestors of tagged types.
1769         * exp_ch3.adb (Expand_N_Object_Declaration): Improve the expansion of
1770         class-wide object declarations to add missing support to statically
1771         displace the pointer to the object to reference the tag component
1772         associated with the interface.
1774         * exp_disp.adb (Make_Tags) Avoid generation of internally generated
1775         auxiliary types associated with user-defined dispatching calls if the
1776         type has no user-defined primitives.
1778 2009-07-13  Vasiliy Fofanov  <fofanov@adacore.com>
1780         * mingw32.h: Make it explicit that we need XP or later.
1782         * initialize.c: Remove useless extern symbol declaration.
1784         * adaint.h: Ditto, also expose __gnat_win32_remove_handle to allow
1785         code reuse in expect.c.
1787         * adaint.c: Changes throughout the Windows section to redesign storage
1788         of the child process list and the process identification.
1790         * expect.c (__gnat_kill, __gnat_waitpid): Simplify, cleanup, use pids
1791         for interfacing, fix errors.
1792         (__gnat_expect_portable_execvp): use function in adaint.c
1794 2009-07-13  Emmanuel Briot  <briot@adacore.com>
1796         * prj-proc.adb, prj-part.adb, prj-part.ads, prj-strt.adb,
1797         prj-strt.ads, prj.adb, prj.ads, prj-makr.adb, prj-makr.ads,
1798         prj-dect.adb, prj-dect.ads, prj-nmsc.adb, prj-pars.adb, errutil.adb,
1799         errutil.ads, prj-conf.adb, gnatname.adb, prj-err.adb, prj-err.ads
1800         (Prj.Nmsc.Report_Error): Removed, no longer needed.
1801         Always use Prj.Err.Report_Message.
1803 2009-07-13  Robert Dewar  <dewar@adacore.com>
1805         * prj.adb, sem_ch4.adb, sem_res.adb, prj-nmsc.adb: Minor reformatting
1806         & comment edits.
1808 2009-07-13  Robert Dewar  <dewar@adacore.com>
1810         * opt.ads, prj-conf.adb, prj-env.adb, prj-ext.adb, prj-nmsc.adb,
1811         prj-proc.adb, prj-tree.adb, prj-tree.ads: Minor reformatting
1813 2009-07-13  Emmanuel Briot  <briot@adacore.com>
1815         * prj.adb, prj.ads, prj-env.adb, prj-conf.adb, prj-tree.adb,
1816         mlib-prj.adb (Private_Part.Ada_Prj_Objects_File_Set,
1817         Ada_Prj_Include_File_Set): Removed, since not needed
1818         Code clean up.
1820 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
1822         * sem_ch4.adb (Analyze_Set_Membership): New procedure, subsidiary of
1823         Analyze_Membership_Op.
1825         * sem_res.adb (Resolve_Set_Membership): New procedure, subsidiary of
1826         Resolve_Membership_Op.
1828         * exp_ch4.adb (Expand_Set_Membership): New procedure, subsidiary of
1829         Expand_N_In.
1831 2009-07-13  Robert Dewar  <dewar@adacore.com>
1833         * clean.adb: Minor reformattting
1835 2009-07-13  Emmanuel Briot  <briot@adacore.com>
1837         * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj-ext.adb,
1838         gnat_ugn.texi, prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-util.adb,
1839         prj-conf.adb, gnatname.adb, prj-env.adb, prj-env.ads, prj-tree.adb,
1840         prj-tree.ads (Prj.Tree.Create*): New subprograms to create new packages
1841         and attributes in a project tree.
1842         (Add_Default_GNAT_Naming_Scheme): Provide real implementation.
1843         Remove last remaining mode-specific code (ada_only or
1844         multi_language). This was duplicating code
1845         (Get_Mode, Set_Mode): removed, no longer used.
1846         (Initialize_Project_Path): all tools will now take into account both
1847         GPR_PROJECT_PATH and ADA_PROJECT_PATH (in that order).
1848         Remove some global variables and subprograms no longer used
1849         Make temporary files tree-specific, to avoid interferences between
1850         trees loaded in memory at the same time.
1851         (Prj.Delete_Temporary_File): new subprogram
1852         (Object_Paths, Source_Paths): fields no longer stored in the project
1853         tree, since they are only needed locally in Set_Ada_Paths.
1854         (Set_Mapping_File_Initial_State_To_Empty): removed, since had no
1855         effect in practice.
1856         (Project_Tree_Data.Ada_Path_Buffer): removed, since it can be replaced
1857         by local variables in the appropriate subprograms
1858         (Has_Foreign_Sources): removed.
1860         * gcc-interface/Makefile.in: prj-pp.o is now needed to build gnatmake
1862 2009-07-13  Arnaud Charlet  <charlet@adacore.com>
1864         * gnat1drv.adb (Adjust_Global_Switches): No longer set
1865         Back_Annotate_Rep_Info in inspector mode.
1866         (Gnat1Drv): Need to call the back-end in inspector mode to generate SCIL
1868         * opt.ads: Update comment.
1870 2009-07-13  Robert Dewar  <dewar@adacore.com>
1872         * lib.adb, prj-nmsc.adb, prj-proc.adb, prj-proc.ads, prj.adb,
1873         prj.ads: Minor reformatting and code reorganization.
1875         * par-ch3.adb (Check_Restricted_Expression): New procedure
1877 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
1879         * exp_attr.adb (Rewrite_Stream_Proc_Call): When rewriting a stream
1880         attribute into a call of the corresponding suprogram, create extra
1881         formals for the subprogram, because it may be a renaming whose
1882         analysis does not create extra formals.
1884 2009-07-13  Emmanuel Briot  <briot@adacore.com>
1886         * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
1887         prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
1888         prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-env.adb, prj-tree.adb,
1889         prj-tree.ads: Minor reformatting.
1890         (Processing_Flags): new record to encapsulate the set of common
1891         parameters to several subprograms in the project manager.
1892         (Prj.Nmsc.Process_Naming_Scheme): renames Check, and moved to body
1893         Remove the need for the Current_Dir parameter in subprograms.
1894         (Look_For_Sources): minor refactoring, now that we no longer need to
1895         share subprograms between the two Ada_Only and Multi_Language modes
1896         (Processing_Flags): New field Error_On_Unknown_Language.
1897         Merge tests for library project between gnatmake and gprbuild.
1899 2009-07-13  Arnaud Charlet  <charlet@adacore.com>
1901         * lib.adb, make.adb, mlib.adb, exp_dist.adb: Update comments.
1902         Minor reformatting.
1904 2009-07-13  Emmanuel Briot  <briot@adacore.com>
1906         * prj-env.adb (Create_Config_Pragmas_File): Iterate on sources rather
1907         than units.
1909 2009-07-13  Thomas Quinot  <quinot@adacore.com>
1911         * sem_ch3.adb (Process_Full_View): Propagate Has_Specified_Stream_{Read,
1912         Write,Input,Output} from private view to full view.
1914         * sem_type.adb, sem_type.ads: Minor reformatting
1916 2009-07-13  Nicolas Setton  <setton@adacore.com>
1918         * exp_dbug.ads: Add documentation note on the utility of
1919         DW_AT_GNAT_encoding for IDEs.
1921 2009-07-13  Robert Dewar  <dewar@adacore.com>
1923         * g-socthi-vxworks.adb: Minor reformatting
1925         * gnatcmd.adb: Minor reformatting
1927 2009-07-13  Thomas Quinot  <quinot@adacore.com>
1929         * rtsfind.ads, exp_dist.adb (RE_Allocate_Buffer): Runtime entry
1930         removed, not used anymore.
1931         (Exp_Dist.PolyORB_Support.Helpers.Assign_Opaque_From_Any):
1932         New subprogram, implements copy of an Any value into a limited object.
1933         (Exp_Dist.PolyORB_Support.Build_General_Calling_Stubs,
1934         Exp_Dist.PolyORB_Support.Build_Subprogram_Receiving_Stubs,
1935         Exp_Dist.PolyORB_Support.Helpers.Build_From_Any_Function): For the case
1936         of parameters of a limited type, use the above new subprogram.
1938 2009-07-13  Emmanuel Briot  <briot@adacore.com>
1940         * prj-nmsc.adb, prj-proc.adb, mlib.adb (Add_Source): new parameter
1941         Location.
1942         (Copy_ALI_Files): Avoid calls to read when pointing outside of the
1943         allocated space.
1944         (Error_Report): Remove global variable, replaced by parameters.
1946 2009-07-13  Thomas Quinot  <quinot@adacore.com>
1948         * g-socthi-vxworks.adb (C_Sendto): VxWorks does not support the
1949         standard sendto(2) interface for connected sockets (passing a null
1950         destination address). Use send(2) instead for that case.
1952 2009-07-13  Pascal Obry  <obry@adacore.com>
1954         * adaint.c: Fix __gnat_stat() with Win32 UNC paths.
1956 2009-07-13  Emmanuel Briot  <briot@adacore.com>
1958         * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
1959         prj-pars.adb, prj-conf.adb, prj-conf.ads: Remove all remaining global
1960         variables and tables in prj-nmsc.adb.
1961         (Tree_Processing_Data): Renames Processing_Data, some new fields added
1962         (Project_Processing_Data): New record
1963         Simplify/unify check for missing sources.
1965 2009-07-13  Emmanuel Briot  <briot@adacore.com>
1967         * gnatcmd.adb, make.adb, mlib-prj.adb, prj-part.adb, mlib.adb,
1968         prj.adb, prj.ads, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb,
1969         prj-pars.ads, prj-conf.adb, prj-conf.ads, prj-tree.adb,
1970         prj-tree.ads (Immediate_Directory_Of): Removed.
1971         (Prj.Pars): Now parse the project simulating a default config file.
1972         (Add_Default_GNAT_Naming_Scheme): New subprogram
1973         (Check_Naming_Multi_Lang): Fix default value for Dot_Replacement.
1974         Remove gnatmake-specific parsing of source files.
1975         (Check_Illegal_Suffix): Renames Is_Illegal_Suffix, since it now raises
1976         the error itself to provide more precise diagnostics.
1977         (Process_Exceptions_Unit_Based): Avoid duplicate error message when
1978         a unit belongs to several projects.
1979         (Copy_Interface_Sources): Search the full path of files to copy in the
1980         list of sources of the application rather than in the list of units.
1981         (Parse_Project_And_Apply_Config): Do not reset the name of the main
1982         project file.
1983         (Check_File): Use htables to find out whether a source is duplicated.
1984         (Add_Source): check whether the source or unit were already seen earlier
1986         * gcc-interface/Makefile.in: Update gnatmake dependencies.
1988 2009-07-13  Robert Dewar  <dewar@adacore.com>
1990         * par-ch3.adb (P_Discrete_Choice_List): Choice can only be simple
1991         expression if extensions permitted.
1993         * par-ch4.adb (P_Membership_Test): New procedure (implement membership
1994         set tests).
1995         (P_Relation): Use P_Membership_Test
1997         * par.adb (P_Membership_Test): New procedure (implement membership set
1998         tests).
2000         * sinfo.ads, sinfo.adb (N_In, N_Not_In) Add Alternatives field for sets.
2002         * sprint.adb (Sprint_Node): Handle set form for membership tests.
2004 2009-07-13  Thomas Quinot  <quinot@adacore.com>
2006         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies):
2007         Do not attempt to generate stubs for predefined primitives of
2008         synchronized interfaces.
2009         (Add_Stub_Type): Factor some code from the PCS-specific variants of
2010         Build_Stub_Type.
2012 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
2014         * sem_disp.adb (Override_Dispatching_Operation): Functions inherit the
2015         Controlling_Result flag from the operation they override.
2017 2009-07-13  Arnaud Charlet  <charlet@adacore.com>
2019         * gcc-interface/Make-lang.in: Update dependencies
2021 2009-07-13  Robert Dewar  <dewar@adacore.com>
2023         * gnat_ugn.texi: The gnatf switch no longer is needed to get full
2024         details on unsupported constructs.
2026         * rtsfind.adb: Remove references to All_Errors_Mode, give errors
2027         unconditionally.
2029         * s-trafor-default.adb: Correct some warnings
2031         * s-valwch.adb, a-calend.adb, freeze.adb, prj.ads, s-vmexta.adb,
2032         sem.adb, sem_ch10.adb, sem_ch6.adb, sem_disp.adb, vxaddr2line.adb:
2033         Minor reformatting.
2035         * par-ch4.adb (Conditional_Expression): Capture proper location for
2036         conditional expression, should point to IF.
2038         * s-tassta.adb, a-wtdeau.adb, s-tasren.adb, s-arit64.adb, s-imgdec.adb,
2039         s-direio.adb, s-tpobop.adb, g-socket.adb, s-tposen.adb, s-taskin.adb,
2040         g-calend.adb, s-regpat.adb, s-scaval.adb, g-catiio.adb: Minor code
2041         reorganization (use conditional expressions).
2043 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
2045         * exp_util.adb (Remove_Side_Effects): If the expression is a call to a
2046         build-in-place function that returns an inherently limited type (not
2047         just a task type) create proper object declaration so that extra
2048         build-in-place actuals are properly added to the call.
2050 2009-07-13  Robert Dewar  <dewar@adacore.com>
2052         * freeze.adb (Freeze_Entity): Implement Warn_On_Suspicious_Modulus_Value
2054         * gnat_ugn.texi: Add documentation for -gnatw.m/.M
2056         * opt.ads (Warn_On_Suspicious_Modulus_Value): New flag
2058         * sem_warn.adb (Set_Dot_Warning_Flag): Set/reset
2059         Warn_On_Suspicious_Modulus_Value.
2061         * ug_words: Add entries for -gnatw.m/-gnatw.M.
2063         * usage.adb: Add lines for -gnatw.m/.M switches.
2065         * vms_data.ads: Add [NO]SUSPICIOUS_MODULUS for -gnatw.m/w.M
2067 2009-07-13  Javier Miranda  <miranda@adacore.com>
2069         * sem_ch6.adb (Check_Synchronized_Overriding): Add missing check before
2070         reading the Is_Interface attribute of the dispatching type.
2072 2009-07-13  Robert Dewar  <dewar@adacore.com>
2074         * a-convec.adb: Minor code reorganization (use conditional expressions)
2076 2009-07-13  Robert Dewar  <dewar@adacore.com>
2078         * freeze.adb (Check_Suspicious_Modulus): New procedure.
2080 2009-07-13  Robert Dewar  <dewar@adacore.com>
2082         * i-cobol.ads: Minor code fix (2**4 instead of 16 as modulus to avoid
2083         warning).
2085         * par-ch4.adb: Minor reformatting
2087 2009-07-13  Ed Schonberg  <schonberg@adacore.com>
2089         * freeze.adb, freeze.ads, exp_aggr.adb: Rename Expand_Atomic_Aggregate
2090         => Is_Atomic_Aggregate
2092 2009-07-13  Emmanuel Briot  <briot@adacore.com>
2094         * prj-nmsc.adb: Avoid traversing the list of source files if
2095         we have already processed all locally removed files.
2097 2009-07-13  Jose Ruiz  <ruiz@adacore.com>
2099         * gnat_ugn.texi: Fix typo.
2101 2009-07-13  Robert Dewar  <dewar@adacore.com>
2103         * freeze.adb: Minor reformatting
2104         Minor code reorganization (use Nkind_In)
2106         * exp_ch6.adb, prj.adb, sem_res.adb: Minor reformatting
2108 2009-07-11  Eric Botcazou  <ebotcazou@adacore.com>
2110         * checks.adb (Apply_Address_Clause_Check): Remove Size_Warning_Output
2111         local variable and do not test it in Compile_Time_Bad_Alignment.
2112         Do not issue size or alignment warnings for the X'Address form.
2113         * sem_util.ads (Find_Overlaid_Object): Delete.
2114         (Find_Overlaid_Entity): New procedure.
2115         * sem_util.adb (Find_Overlaid_Object): Rename to...
2116         (Find_Overlaid_Entity): ...this and turn into a procedure.  Report
2117         whether the address is offseted within the overlaid entity.
2118         (Has_Compatible_Alignment): Track the offset globally instead of
2119         passing it to Check_Offset.  For an indexed component, compute the
2120         full offset when possible.  If the resulting offset is zero, only
2121         check the prefix.
2122         (Check_Offset): Delete.
2123         * sem_ch13.adb (Address_Clause_Check_Record): Add Off field.
2124         (Address_Aliased_Entity): Delete.
2125         (Analyze_Attribute_Definition_Clause) <Attribute_Address>: Call
2126         Find_Overlaid_Entity to find the overlaid entity and the offset.
2127         Adjust throughout for above change.
2128         (Validate_Address_Clauses): Always use attributes of entities, not of
2129         their type.  Tweak message for warning.  Call Has_Compatible_Alignment
2130         if the address is offseted to warn about incompatible alignments.
2131         * gcc-interface/gigi.h (annotate_object): Declare.
2132         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Annotate renaming
2133         entity.  Call annotate_object instead of annotating manually objects.
2134         (annotate_object): New function.
2135         * gcc-interface/trans.c (Subprogram_Body_to_gnu): Annotate parameters
2136         at the end.
2138 2009-07-11  Eric Botcazou  <ebotcazou@adacore.com>
2140         * gcc-interface/ada-tree.h: Minor reorganization.
2141         * gcc-interface/misc.c (gnat_print_decl): Minor tweaks.
2142         (gnat_print_type): Likewise.
2144 2009-07-11  Thomas Quinot  <quinot@adacore.com>
2146         * sem_util.adb, sem_res.adb, sem_warn.adb: Minor comment editing:
2147         Lvalue -> lvalue
2149         * exp_ch6.adb: Minor reformatting
2151 2009-07-11  Ed Schonberg  <schonberg@adacore.com>
2153         * freeze.adb (Expand_Atomic_Aggregate): Clean up code, take into
2154         account possible type qualification to determine whether aggregate
2155         needs a target temporary to respect atomic type or object.
2157         * exp_aggr.adb (Expand_Record_Aggregate): Use new version of
2158         Expand_Atomic_Aggregate.
2160 2009-07-11  Emmanuel Briot  <briot@adacore.com>
2162         * prj.adb, prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Speed up
2163         algorithm.
2164         (Excluded_Sources_Htable): No longer a global table.
2165         Change error message to indicate which files are illegal in the list
2166         of excluded files, as opposed to only the location in the project
2167         file.
2168         (Find_Source): New subprogram.
2170 2009-07-10  Thomas Quinot  <quinot@adacore.com>
2172         * exp_ch7.adb: Update comments.
2174 2009-07-10  Arnaud Charlet  <charlet@adacore.com>
2176         * exp_ch13.adb (Expand_N_Record_Representation_Clause): Ignore mod
2177         clause if -gnatI is set instead of crashing.
2179 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
2181         * sem_ch11.adb (Same_Expression): Null is always equal to itself.
2182         Additional work to remove redundant successive raise statements, in
2183         this case access checks.
2185 2009-07-10  Vincent Celier  <celier@adacore.com>
2187         * make.adb (Compile): Always create a deep copy of the mapping file
2188         argument (-gnatem=...) as it may be deallocate/reallocate by
2189         Normalize_Arguments.
2191 2009-07-10  Javier Miranda  <miranda@adacore.com>
2193         * einfo.adb (Directly_Designated_Type): Add assertion.
2194         
2195         * sem_res.adb (Check_Fully_Declared_Prefix): Add missing check on
2196         access types before using attribute Directly_Designated_Type.
2198 2009-07-10  Emmanuel Briot  <briot@adacore.com>
2200         * prj.ads: Minor typo fix
2202 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
2204         * sem_ch6.adb (Add_Extra_Formal): Protected operations do no need
2205         special treatment.
2207         * exp_ch6.adb (Expand_Protected_Subprogram_Call): If rewritten
2208         subprogram is a function call, resolve properly, to ensure that extra
2209         actuals are added as needed.
2211 2009-07-10  Thomas Quinot  <quinot@adacore.com>
2213         * sem_aggr.adb: Minor comments editing
2215         * exp_tss.adb, exp_ch3.adb: Minor reformatting
2217 2009-07-10  Robert Dewar  <dewar@adacore.com>
2219         * exp_util.adb: Minor code reorganization (use N_Short_Circuit)
2221         * exp_ch4.adb: Add ??? comment for conditional expressions on limited
2222         types.
2224         * checks.adb (In_Declarative_Region_Of_Subprogram_Body): New procedure,
2225         replaces Safe_To_Capture_In_Parameter_Value, and properly handles the
2226         case of conditional expressions that may not be elaborated.
2228         * sem_util.adb (Safe_To_Capture_Value): Properly handle case of
2229         conditional expression where we may not execute then then or else
2230         branches.
2232 2009-07-10  Arnaud Charlet  <charlet@adacore.com>
2234         * i-cexten.ads (bool): New type.
2236 2009-07-10  Robert Dewar  <dewar@adacore.com>
2238         * sinfo.ads (N_Short_Circuit): New definition
2239         
2240         * sem_ch13.adb, sem_ch6.adb, sem_eval.adb, sem_res.adb,
2241         treepr.adb: Minor code reorganization (use N_Short_Circuit)
2243 2009-07-10  Javier Miranda  <miranda@adacore.com>
2245         * exp_ch3.adb (Expand_Freeze_Record_Type): Handle constructors of
2246         non-tagged record types.
2248         * sem_prag.adb
2249         (Process_Import_Or_Interface): Allow the use of "pragma Import (CPP,..)"
2250         with non-tagged types. Required to import C++ classes that have no
2251         virtual primitives.
2252         (Analyze_Pragma): For pragma CPP_Constructor. Allow the use of functions
2253         returning non-tagged types. For backward compatibility, if the
2254         constructor returns a class wide type we internally change the
2255         returned type to the corresponding non class-wide type.
2257         * sem_aggr.adb
2258         (Valid_Ancestor_Type): CPP_Constructors code cleanup.
2259         (Resolve_Extension_Aggregate): CPP_Constructors code cleanup.
2260         (Resolve_Aggr_Expr): CPP_Constructors code cleanup.
2261         (Resolve_Record_Aggregate): CPP_Constructors code cleanup.
2263         * sem_ch3.adb
2264         (Analyze_Object_Declaration): CPP_Constructors code cleanup.
2266         * sem_ch5.adb (Analyze_Assignment): CPP_Constructors code cleanup.
2268         * sem_util.adb (Is_CPP_Constructor_Call): Code cleanup.
2270         * sem_res.adb (Resolve_Allocator): CPP_Constructors code cleanup.
2272         * exp_ch4.adb (Expand_Allocator_Expression): CPP_Constructors code
2273         cleanup.
2274         
2275         * exp_aggr.adb (Build_Record_Aggr_Code): CPP_Constructors code clean up.
2277         * gnat_rm.texi
2278         (pragma CPP_Class): Document that it can be used now with non-tagged
2279         record types.
2280         (pragma CPP_Constructor): Document that it can be used now with
2281         functions returning specific types. For backward compatibility
2282         we also support functions returning class-wide types.
2284         * gnat_ugn.texi
2285         (Interfacing with C++ constructors): Update the examples to incorporate
2286         the new syntax in which the functions used to import C++ constructors
2287         return specific types.
2288         (Interfacing with C++ at the Class Level): Update the examples to
2289         incorporate the new syntax in which the functions used to import
2290         C++ constructors return specific types.
2292 2009-07-10  Thomas Quinot  <quinot@adacore.com>
2294         * exp_disp.adb (Make_Disp_Asynchronous_Select_Body,
2295         Make_Disp_Conditional_Select_Body,
2296         Make_Disp_Timed_Select_Body): For the case of a type that is neither an
2297         interface nor a concurrent type, the primitive body is empty. Generate
2298         a null statement so that it remains well formed.
2300 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
2302         * exp_aggr.adb (Build_Record_Aggr_Code): If the type has discriminants,
2303         replace references to them in defaulted component expressions with
2304         references to the values of the discriminants of the target object.
2306 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
2308         * sem_prag.adb (Analyze pragma, case Task_Name): Analyze argument of
2309         pragma, to capture global references if the context is generic.
2311         * exp_ch2.adb (Expand_Discriminant): If a task type discriminant
2312         appears within the initialization procedure for the corresponding
2313         record, replace it with the proper discriminal.
2315 2009-07-10  Vincent Celier  <celier@adacore.com>
2317         * make.adb: Do not include object directories or library ALI
2318         directories of library projects in the object path.
2320 2009-07-10  Javier Miranda  <miranda@adacore.com>
2322         * exp_util.adb (Find_Interface_Tag): Reorder processing of incoming
2323         Typ argument to ensure proper management of access types.
2325 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
2327         * exp_ch7.adb (Build_Final_List): If the list is being built for a
2328         Taft-Amendment type, place the finalization list in the package body,
2329         to ensure that the tree for the spec is identical whenever it is
2330         compiled.
2332 2009-07-10  Javier Miranda  <miranda@adacore.com>
2334         * sem_ch3.adb (Build_Derived_Record_Type): Use the full-view when
2335         inheriting attributes from a private Parent_Base.
2337 2009-07-10  Ed Schonberg  <schonberg@adacore.com>
2339         * sem_ch11.adb (analyze_raise_xxx_error): Remove consecutive raise
2340         statements with the same condition.
2342 2009-07-10  Robert Dewar  <dewar@adacore.com>
2344         * exp_ch4.adb (Raise_Accessibility_Error): New procedure
2346 2009-07-09  Tom Tromey  <tromey@redhat.com>
2348         * raise-gcc.c: Include dwarf2h (unconditionally).
2350 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
2352         * sem_ch10.adb (Install_Context): If the unit is a package body,
2353         install the private with_clauses of the corresponding package
2354         declaration.
2356 2009-07-09  Robert Dewar  <dewar@adacore.com>
2358         * checks.adb: Minor reformatting
2360 2009-07-09  Vasiliy Fofanov  <fofanov@adacore.com>
2362         * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
2363         into ug_words.
2365 2009-07-09  Thomas Quinot  <quinot@adacore.com>
2367         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
2368         Do not warn for a constant overlaying any constant object
2370 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
2372         * sem_ch10.adb (Install_Context): If the unit is a package body,
2373         install the private with_clauses of the corresponding package
2374         declaration.
2376 2009-07-09  Robert Dewar  <dewar@adacore.com>
2378         * checks.adb: Minor reformatting
2380 2009-07-09  Vasiliy Fofanov  <fofanov@adacore.com>
2382         * ug_words, gnat_ugn.texi: Move VMS equivalents of the last check in
2383         into ug_words.
2385 2009-07-09  Thomas Quinot  <quinot@adacore.com>
2387         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address):
2388         Do not warn for a constant overlaying any constant object
2390 2009-07-09  Arnaud Charlet  <charlet@adacore.com>
2392         * gcc-interface/Make-lang.in: Update dependencies
2394 2009-07-09  Thomas Quinot  <quinot@adacore.com>
2396         * g-socket.adb (Check_Selector): Do not create local copies of the
2397         socket sets on the stack.
2399 2009-07-09  Vasiliy Fofanov  <fofanov@adacore.com>
2401         * gnat_ugn.texi: Add missing VMS translations.
2403 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
2405         * sem_prag.adb (Analyze_Pragma, case Precondition): Do not analyze the
2406         condition, to prevent generation of visible code during expansion,
2407         when Check is not enabled.
2409 2009-07-09  Gary Dismukes  <dismukes@adacore.com>
2411         * checks.adb (Install_Static_Check): Call Possible_Local_Raise so that
2412         the check gets registered for any available local handler
2413         (Set_Local_Raise).
2415         * sem_util.adb: Add with and use of Exp_Ch11.
2416         (Apply_Compile_Time_Constraint_Error): Call Possible_Local_Raise so
2417         that the check gets registered for any available local handler.
2419         * exp_ch4.adb (Expand_N_Slice): Remove call to Enable_Range_Check
2420         on slice ranges.
2422 2009-07-09  Steve Baird  <baird@adacore.com>
2424         * exp_ch11.adb (Force_Static_Allocation_Of_Referenced_Objects): New
2425         function.
2426         (Expand_N_Exception_Declaration): Fix handling of exceptions
2427         declared in a subprogram.
2429 2009-07-09  Emmanuel Briot  <briot@adacore.com>
2431         * prj-nmsc.adb (Find_Sources): Avoid error messages from gprbuild from
2432         multi-unit files.
2434 2009-07-09  Thomas Quinot  <quinot@adacore.com>
2436         * freeze.adb: Minor reformatting
2438         * exp_ch3.adb: Minor comment fix.
2440         * sinfo.ads: Minor comment fix
2442 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
2444         * exp_ch4.adb (Expand_N_Conditional_Expression): Set Related_Expression.
2446 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
2448         * freeze.adb (Freeze_Expression): If the expression is the name of a
2449         function in a call, and the function has not been frozen yet, create
2450         extra formals for it to ensure that the proper actuals are created
2451         when expanding the call.
2453 2009-07-09  Emmanuel Briot  <briot@adacore.com>
2455         * prj-pp.adb (Print): Fix handling of source index when set on a
2456         declaration node.
2458 2009-07-09  Ed Schonberg  <schonberg@adacore.com>
2460         * einfo.ads, einfo.adb: New attribute Related_Expression, used to link
2461         a temporary to the source expression whose value it captures.
2463         * exp_util.adb (Remove_Side_Effects): Set Related_Expression as needed.
2465 2009-07-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2467         * gcc-interface/trans.c (gnat_gimplify_expr): Replace EXPR_LOCUS by
2468         EXPR_LOCATION.
2470 2009-07-07  Gary Dismukes  <dismukes@adacore.com>
2472         * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for in out
2473         parameters when the subtype of the actual is not known to be a subrange
2474         of the formal's subtype.
2475         (Expand_Call): Generate a range check only in the E_In_parameter case
2476         (in out parameter range checks are now handled in Expand_Actuals).
2478         * exp_ch4.adb (Expand_N_Slice): Restore code that calls
2479         Enable_Range_Check.
2481 2009-07-07  Robert Dewar  <dewar@adacore.com>
2483         * a-stwise.adb, a-stzsea.adb, a-strsea.adb: Add comments
2485 2009-07-07  Javier Miranda  <miranda@adacore.com>
2487         * exp_disp.adb (Expand_Interface_Conversion): Handle access type whose
2488         designated type comes from a limited views.
2490 2009-07-07  Emmanuel Briot  <briot@adacore.com>
2492         * prj.ads, prj-nmsc.adb (Mark_Excluded_Sources): Fix handling of
2493         locally removed files that are later made visible again in an importing
2494         project.
2496 2009-07-07  Robert Dewar  <dewar@adacore.com>
2498         * gnat_rm.texi: Clarify documentation of Stream_Convert pragma
2500 2009-07-07  Sergey Rybin  <rybin@adacore.com>
2502         * gnat_ugn.texi: Add an example to the description of gnatcheck
2503         'Style_Checks' rule option.
2505 2009-07-07  Tristan Gingold  <gingold@adacore.com>
2507         * seh_init.c: Fix inline assembly statement in seh_init.c
2509 2009-07-07  Ed Schonberg  <schonberg@adacore.com>
2511         * sem_warn.adb (Check_References): Do not emit warnings on formals of
2512         an entry body. Only the formals of the entry declaration are traced.
2514 2009-07-07  Robert Dewar  <dewar@adacore.com>
2516         * s-osprim-mingw.adb: Minor code reorganization
2518 2009-07-07  Robert Dewar  <dewar@adacore.com>
2520         * prj-nmsc.adb: Minor reformatting
2522 2009-07-07  Pascal Obry  <obry@adacore.com>
2524         * a-stwise.adb, a-stzsea.adb, a-strsea.adb (Index): properly handle
2525         cases where Pattern is longer than Source.
2527 2009-07-07  Pascal Obry  <obry@adacore.com>
2529         * s-osprim-mingw.adb (Get_Base_Time): Avoid infinite loop.
2531 2009-07-07  Emmanuel Briot  <briot@adacore.com>
2533         * prj-nmsc.adb (Process_Naming): canonicalize file suffixes read in the
2534         project file.
2536 2009-07-07  Ed Schonberg  <schonberg@adacore.com>
2538         * exp_ch3.adb (Expand_Freeze_Record_Type): Add extra formals to
2539         primitive operations, in case one of them is called in the
2540         initialization procedure for the type.
2542 2009-07-07  Robert Dewar  <dewar@adacore.com>
2544         * a-calend.adb: Minor code reorganization (use conditional expressions)
2546         * s-stusta.ads, s-interr-hwint.adb, g-expect-vms.adb, s-secsta.ads,
2547         prj-nmsc.adb, a-teioed.adb, output.ads, prj-attr.ads, a-textio.adb,
2548         s-taskin.ads, scans.ads, s-osinte-vms.adb, s-taprop-solaris.adb,
2549         s-tpopsp-posix-foreign.adb, s-trafor-default.adb, gnat1drv.adb,
2550         s-stchop-vxworks.adb, s-tpopsp-posix.adb, prj-env.adb, prj-env.ads,
2551         g-comlin.adb, exp_ch11.adb: Minor reformatting.
2553 2009-07-07  Gary Dismukes  <dismukes@adacore.com>
2555         * checks.adb (Generate_Range_Check): Replace type conversions with
2556         unchecked conversions to support the case of performing range checks
2557         on Enum'Val (permits integer values to be converted to enumeration).
2559         * exp_attr.adb (Expand_N_Attribute_Reference, cases Attribute_Pred,
2560         Attribute_Succ): Set Do_Range_Check to False before calling
2561         Expand_Pred_Succ, to prevent gigi from generating any range checks.
2562         (Expand_N_Attribute_Reference, case Attribute_Val):
2563         Generate a range check when needed (and set Do_Range_Check to False).
2565         * exp_ch3.adb (Expand_N_Object_Declaration): Generate a range check on
2566         scalar object initialization if needed.
2568         * exp_ch4.adb (Expand_Allocator_Expression): Generate range checks
2569         when needed on scalar allocators.
2570         (Expand_N_Qualified_Expression): Generate range check when needed.
2571         (Expand_N_Slice): Remove call to Enable_Range_Check on slice ranges.
2572         Checks on slice ranges handled in Resolve_Slice.
2574         * exp_ch5.adb (Expand_N_Assignment_Statement): Generate a range check,
2575         when needed, for all scalar assignments, not just discrete.
2576         (Expand_Simple_Function_Return): Resolve the conversion created for a
2577         scalar function return so that the conversion will get expanded to
2578         generate a possible constraint check.
2580         * exp_ch6.adb (Expand_Actuals): Call Add_Call_By_Copy_Code for out and
2581         in out scalar actuals when subtypes don't match, to ensure generation
2582         of return checks (and set Do_Range_Check to False).
2583         (Expand_Call): Uncomment code to perform range checks, but make it apply
2584         only to in and in out parameters (checks on parameter returns are
2585         handled in Expand_Actuals). If a scalar actual for a call to a derived
2586         subprogram is marked as needing a range check, peform it here (and set
2587         Do_Range_Check to False).
2589         * sem_aggr.adb (Resolve_*_Aggregate.Resolve_Aggr_Expr): Generate a
2590         range check on scalar component associations when needed.
2592         * sem_eval.adb (In_Subrange_Of): Return False when the first type has
2593         infinities but the second type does not, as these aren't compatible
2594         floating-point types.
2596         * sem_res.adb (Resolve_Slice): In the case where the prefix of the
2597         slice is itself a slice, pick up the Etype of the prefix. This handles
2598         the case where the prefix was an Image attribute expanded to a slice,
2599         and ensures that we get the subtype with the slice constraint rather
2600         than the unconstrained subbtype of the 'Image.
2602 2009-07-07  Ed Schonberg  <schonberg@adacore.com>
2604         * sem_ch4.adb (Analyze_Conditional_Expression): handle properly
2605         overloaded expressions in a conditional expressions.
2607         * sem_res.adb (Resolve): Handle properly overloaded conditional
2608         expressions.
2610 2009-07-07  Robert Dewar  <dewar@adacore.com>
2612         * scng.adb: Minor reformattting
2614         * par-ch2.adb (Scan_Pragma_Argument_Association): Pragma argument
2615         association allows conditional expression without parens.
2617         * par-ch4.adb (P_Name): Attribute arguments can be conditional
2618         expressions without enclosing parentheses, and also as parameters,
2619         indexing expressions etc.
2620         (P_Conditional_Expression): New procedure
2621         (P_Expression_If_OK): New procedure
2623         * par.adb (P_Conditional_Expression): New procedure
2624         (P_Expression_If_OK): New procedure
2626         * sem_ch4.adb (Analyze_Conditional_Expression): Allow for two argument
2627         form of conditional expression.
2629         * sem_res.adb (Resolve_Conditional_Expression): Deal with supplying
2630         missing True argument if ELSE argument missing.
2632         * sinfo.adb (Is_Elsif): New flag
2634         * sinfo.ads (N_Conditional_Expression): This node is now a syntactic
2635         part of the language, and the documentation is modified accordingly.
2636         (Is_Elsif): New flag
2638 2009-07-06  Olivier Hainque  <hainque@adacore.com>
2640         * gcc-interface/trans.c (Handled_Sequence_Of_Statements_to_gnu,
2641         setjmp_longjmp): Attach the exception propagation reraise fallback
2642         to the sequence end label location when we have it.
2644 2009-07-04  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
2646         PR ada/40608
2647         * init.c (APPLE): Include <mach/mach_init.h>.
2648         (__gnat_error_handler, APPLE): Add ATTRIBUTE_UNUSED marker.
2650 2009-07-04  Eric Botcazou  <ebotcazou@adacore.com>
2652         * ada-tree.h (SET_TYPE_LANG_SPECIFIC): Rewrite.
2653         (SET_DECL_LANG_SPECIFIC): Likewise.
2654         (TYPE_RM_VALUE): New macro.
2655         (SET_TYPE_RM_VALUE): Likewise.
2656         (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUE.
2657         (TYPE_RM_MIN_VALUE): Likewise.
2658         (TYPE_RM_MAX_VALUE): Likewise.
2659         (SET_TYPE_RM_SIZE): Rewrite in terms of SET_TYPE_RM_VALUE.
2660         (SET_TYPE_RM_MIN_VALUE): Likewise.
2661         (SET_TYPE_RM_MAX_VALUE): Likewise.
2662         * decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Remove kludge.
2664 2009-07-04  Laurent GUERBY  <laurent@guerby.net>
2666         PR ada/40631
2667         * tracebak.c (__gnat_backtrace): Fix old-style definition.
2669 2009-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2671         * tracebak.c [i386 && sun] (IS_BAD_PTR): Use -1UL in comparison.
2673 2009-07-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2675         PR ada/40609
2676         * init.c (__gnat_error_handler, HP-UX): Add ATTRIBUTE_UNUSED marker to
2677         ucontext argument.
2679 2009-07-01  Eric Botcazou  <ebotcazou@adacore.com>
2681         * init.c (__gnat_error_handler, Solaris): Add ATTRIBUTE_UNUSED marker.
2683 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
2685         * gcc-interface/utils2.c (build_binary_op) <MODIFY_EXPR>: Do not use
2686         the type of the left operand if it pads a self-referential type when
2687         the right operand is a constructor.
2689         * gcc-interface/lang-specs.h: Fix copyright date.
2691 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
2693         * gcc-interface/decl.c: Include tree-inline.h.
2694         (annotate_value) <CALL_EXPR>: Try to inline the call in the expression.
2695         * gcc-interface/utils.c (max_size) <CALL_EXPR>: Likewise.
2696         * gcc-interface/utils2.c: Include tree-inline.
2697         (known_alignment) <CALL_EXPR>: Likewise.
2699 2009-06-30  Eric Botcazou  <ebotcazou@adacore.com>
2701         * raise-gcc.c: Include dwarf2.h conditionally.
2702         
2703 2009-06-29  Tom Tromey  <tromey@redhat.com>
2705         * raise-gcc.c: Include elf/dwarf2.h.
2707 2009-06-27  Laurent GUERBY  <laurent@guerby.net>
2709         * tb-gcc.c (trace_callback): Add casts to silence warning.
2711 2009-06-27  Eric Botcazou  <ebotcazou@adacore.com>
2713         * tb-gcc.c: Fix copyright notice.
2715 2009-06-27  Eric Botcazou  <ebotcazou@adacore.com>
2717         * init.c (__gnat_set_globals): Add prototype.
2718         * adaint.c (__gnat_binder_supports_auto_init): Likewise.
2719         (__gnat_sals_init_using_constructors): Likewise.
2720         * gcc-interface/utils.c (gnat_pushlevel): Likewise.
2721         (get_block_jmpbuf_decl): Likewise.
2722         (gnat_poplevel): Likewise.
2723         (merge_sizes): Rename local variable.
2724         (copy_type): Likewise.
2725         (build_vms_descriptor32): Likewise.
2726         (build_vms_descriptor): Likewise.
2727         (convert_vms_descriptor64): Likewise.
2728         (convert_vms_descriptor32): Likewise.
2729         (convert_to_fat_pointer): Likewise.
2730         (maybe_unconstrained_array): Likewise.
2731         (def_fn_type): Use promoted type with va_arg.
2732         * gcc-interface/decl.c (gnat_to_gnu_entity): Add declaration.
2733         (substitute_in_type): Rename local variable.
2734         * gcc-interface/Make-lang.in (ada-warn): Use STRICT_WARN.
2736 2009-06-26  Laurent GUERBY  <laurent@guerby.net>
2738         * tb-gcc.c (trace_callback): Use char* instead of void*.
2739         * gcc-interface/misc.c (enumerate_modes): Make loop C++ compatible.
2740         * gcc-interface/trans.c (parm_attr): Rename to parm_attr_d.
2741         (Attribute_to_gnu): Adjust for above change.
2742         (Subprogram_Body_to_gnu): Likewise.
2743         * gcc-interface/utils.c (merge_sizes): Rename local variable.
2744         (copy_type): Likewise.
2745         (build_vms_descriptor32): Likewise.
2746         (build_vms_descriptor): Likewise.
2747         (convert_vms_descriptor64): Likewise.
2748         (convert_vms_descriptor32): Likewise.
2749         (convert_to_fat_pointer): Likewise.
2750         (maybe_unconstrained_array): Likewise.
2751         * gcc-interface/decl.c (substitute_in_type): Likewise.
2753 2009-06-26  Eric Botcazou  <ebotcazou@adacore.com>
2755         * gcc-interface/decl.c (cannot_be_superflat_p): New predicate.
2756         (gnat_to_gnu_entity) <E_Array_Subtype>: Use it to build the expression
2757         of the upper bound of the index types.
2759 2009-06-26  Eric Botcazou  <ebotcazou@adacore.com>
2761         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Factor
2762         out common predicate.  Use the maximum to compute the upper bound of
2763         the index type only when it is not wider than sizetype.  Perform the
2764         comparison in the index type for the generic expression.  Use real
2765         precision to decide whether to generate special types for debugging
2766         information.
2768 2009-06-26  Matthew Gingell  <gingell@adacore.com>
2770         * adaint.c: Do not use the dummy version of convert_addresses on LynxOS
2772 2009-06-26  Vincent Celier  <celier@adacore.com>
2774         * prj.ads (No_Language_Config): Value of Dependency_Kind is None by
2775         default.
2777 2009-06-26  Robert Dewar  <dewar@adacore.com>
2779         * exp_ch4.adb, gnatcmd.adb, make.adb: Minor reformatting
2781 2009-06-26  Eric Botcazou  <ebotcazou@adacore.com>
2783         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Pass
2784         correct arguments to create_field_decl.  Remove redundant iteration.
2785         Rewrite computation of the maximum size.
2786         <E_Array_Subtype>: Reorder and simplify handling of special cases.
2787         Rewrite computation of the maximum size.  Use consistent naming.
2788         * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Length>: Swap
2789         comparison order for consistency.  Use generic integer node to
2790         build the operator and fold the result.
2792 2009-06-25  Vincent Celier  <celier@adacore.com>
2794         * vms_data.ads: Minor comment change
2796 2009-06-25  Gary Dismukes  <dismukes@adacore.com>
2798         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Don't build an
2799         assignment statement to targeting a caller-provided object when the
2800         result type is an interface type.
2802         * exp_ch6.adb (Expand_Call): Remove redundant test of
2803         Is_Limited_Interface (Is_Inherently_Limited is sufficient).
2804         (Is_Build_In_Place_Function): Remove test for Is_Limited_Interface.
2806         * sem_aggr.adb (Check_Expr_OK_In_Limited_Aggregate): Add type in call
2807         to OK_For_Limited_Init.
2809         * sem_aux.adb (Is_Inherently_Limited_Type): Revise limited type
2810         condition so that True is returned for all limited interfaces, not
2811         just synchronized ones. Ignore components of an interface type when
2812         checking for limited components (such a component can be a parent
2813         component).
2815         * sem_ch3.ads (OK_For_Limited_Init_In_05): Add type parameter.
2816         (OK_For_Limited_Init): Add type parameter.
2818         * sem_ch3.adb (Check_Initialization): Add type in call to
2819         OK_For_Limited_Init.
2820         (OK_For_Limited_Init): Add new type param in call to
2821         OK_For_Limited_Init_In_05.
2822         (OK_For_Limited_Init_In_05): Permit arbitrary expressions of a
2823         nonlimited type when the context type is a limited interface. Add type
2824         on recursive calls.
2826         * sem_ch4.adb (Analyze_Allocator): Add type in call to
2827         OK_For_Limited_Init.
2829         * sem_ch6.adb (Check_Limited_Return): Add type in call to
2830         OK_For_Limited_Init.
2832         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Add type in call to
2833         OK_For_Limited_Init.
2834         (Instantiate_Object): Add type in call to OK_For_Limited_Init.
2836         * sem_type.adb (Interface_Present_In_Ancestor): In the case of a
2837         class-wide interface, get the base type before applying Etype, in order
2838         to account for class-wide subtypes.
2840 2009-06-25  Emmanuel Briot  <briot@adacore.com>
2842         * gnatcmd.adb, prj-proc.adb, make.adb, prj.adb, prj.ads, prj-nmsc.adb,
2843         prj-util.adb, prj-env.adb, prj-env.ads: Merge handling of naming_data
2844         between gnatmake and gprbuild.
2845         (Naming_Data): Removed, no longer used
2846         (Naming_Table, Project_Tree_Ref.Namings): Removed, since this is only
2847         needed locally in one subprogram, no need to store forever in the
2848         structure.
2849         (Check_Naming_Scheme, Check_Package_Naming): Merged, since they play
2850         a similar role.
2851         (Body_Suffix_Of, Body_Suffix_Id_Of, Register_Default_Naming_Scheme,
2852         Same_Naming_Scheme, Set_Body_Suffix, Set_Spec_Suffix, Spec_Suffix_Of,
2853         Spec_Suffix_Id_Of): removed, no longer used.
2855 2009-06-25  Javier Miranda  <miranda@adacore.com>
2857         * sem_res.adb (Resolve_Allocator): Skip test requiring exact match of
2858         types on qualified expression in calls to imported C++ constructors.
2860         * exp_ch4.adb (Expand_Allocator_Expression): Add missing support for
2861         imported C++ constructors.
2863 2009-06-25  Sergey Rybin  <rybin@adacore.com>
2865         * vms_data.ads: Add qualifier for new gnatcheck '-t' option.
2867 2009-06-25  Vincent Celier  <celier@adacore.com>
2869         * s-os_lib.adb (Normalize_Pathname.Get_Directory): If directory
2870         provided, on Windows change all '/' to '\'.
2872         * fmap.ads, fmap.adb (Remove_Forbidden_File_Name): Remove, no longer
2873         used. Minor comment changes
2875         * prj-nmsc.adb: Do not call Fmap.Add_Forbidden_File_Name or
2876         Remove_Forbidden_File_Name.
2878 2009-06-25  Quentin Ochem  <ochem@adacore.com>
2880         * prj.ads (Unit_Index): Now general access type.
2882 2009-06-25  Pascal Obry  <obry@adacore.com>
2884         * a-stwise.adb, a-stzsea.adb: Fix confusion between 'Length and 'Last.
2886 2009-06-25  Emmanuel Briot  <briot@adacore.com>
2888         * fmap.ads, make.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb,
2889         prj-env.ads (Source_Data.Get_Object): Field removed, since it can be
2890         computed efficiently from the other fields.
2891         (Object_To_Global_Archive): New subprogram
2892         (Create_Mapping): Remove unneeded call to Remove_Forbidden_File_Name.
2893         (Override_Kind): Fix handling of separates in Ada.
2894         (Create_Mapping_File): Remove duplicate code
2895         (Naming_Data.Implementation_Exception, Specification_Exception):
2896         field removed, since never used.
2897         (Naming_Data.Specs, .Bodies): field removed, since this is only
2898         used while processing the project and is not needed once the tree
2899         is in memory. This brings Naming_Data and Lang_Naming_Data
2900         closer (same content now, but different use still).
2902 2009-06-25  Pascal Obry  <obry@adacore.com>
2904         * sem_ch4.adb: Minor reformatting.
2906         * a-strsea.adb: Fix confusion between 'Length and 'Last.
2908 2009-06-25  Ed Schonberg  <schonberg@adacore.com>
2910         * exp_attr.adb (Expand_N_Attribute_Reference, case 'Access and
2911         Unchecked_Access): If the context is an interface type, and the prefix
2912         is of the corresponding class-wide type, do not insert a conversion
2913         because the pointer displacement has already taken place, and we must
2914         retain the class-wide type in a dispatching context.
2916 2009-06-25  Emmanuel Briot  <briot@adacore.com>
2918         * prj-nmsc.adb, prj-env.adb (Override_Kind): Unset the unit field of
2919         the previous source file.
2920         (Create_Mapping): Iterate on sources rather than on units.
2922 2009-06-25  Emmanuel Briot  <briot@adacore.com>
2924         * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb,
2925         prj-env.adb, prj-env.ads (Slash): removed, no longer used
2926         (Source_Data): no longer use Path.Name to point to a locally removed
2927         file. Instead we use the field Locally_Removed which is clearer
2929 2009-06-25  Arnaud Charlet  <charlet@adacore.com>
2931         * gcc-interface/Make-lang.in: Remove references to sem_maps.o
2933         * sem_maps.adb, sem_maps.ads: Removed, not used.
2935 2009-06-25  Ed Falis  <falis@adacore.com>
2937         * s-vxwext-rtp.ads: Add missing declaration
2939 2009-06-25  Matthew Gingell  <gingell@adacore.com>
2941         * a-stwise.adb, a-stzsea.adb (Count, Index): Avoid local copy on stack,
2942         speed up unmapped case.
2944 2009-06-25  Vincent Celier  <celier@adacore.com>
2946         * prj-nmsc.adb (Check): Change error message for illegal abstract
2947         projects.
2949 2009-06-25  Robert Dewar  <dewar@adacore.com>
2951         * gnat_ugn.texi: Add note on use of -gnatct for ASIS
2953 2009-06-25  Emmanuel Briot  <briot@adacore.com>
2955         * fmap.ads: Add documentation on mapping files
2957 2009-06-25  Robert Dewar  <dewar@adacore.com>
2959         * exp_ch6.adb, g-socket.ads, g-socket.adb, sem_ch3.adb: Minor
2960         reformatting
2962 2009-06-24  Robert Dewar  <dewar@adacore.com>
2964         * prj-nmsc.adb, prj-nmsc.ads, prj-proc.adb, prj.adb: Minor reformatting
2966         * a-strsea.adb (Count): Avoid local copy on stack, speed up unmapped
2967         case.
2968         (Index): Ditto.
2970 2009-06-24  Ed Schonberg  <schonberg@adacore.com>
2972         * sem_ch4.adb (Analyze_One_Call): Check that at least one actual is
2973         present when checking whether a call may be interpreted as an indexing
2974         of the result of a call.
2976         * exp_ch9.adb (Expand_N_Subprogram_Declaration): Place the generated
2977         body for a null procedure on the freeze actions for the procedure, so
2978         that it will be analyzed at the proper place without premature freezing
2979         of actuals.
2981         * sem_ch3.adb (Check_Completion): Code cleanup. 
2982         Do not diagnose a null procedure without a body, if previous errors
2983         have disabled expansion.
2985 2009-06-24  Doug Rupp  <rupp@adacore.com>
2987         * init.c [VMS] Resignal C$_SIGKILL
2989 2009-06-24  Ed Falis  <falis@adacore.com>
2991         * s-vxwext.adb, s-vxwext-kernel.adb: Add s-vxwext body for VxWorks 5
2992         Define ERROR in body for VxWorks 6 kernel
2994 2009-06-24  Pascal Obry  <obry@adacore.com>
2996         * g-socket.adb, g-socket.ads: Fix possible unexpected constraint error
2997         in [Send/Receive]_Socket.
2999 2009-06-24  Emmanuel Briot  <briot@adacore.com>
3001         * prj-proc.adb, prj-proc.ads, prj.ads, prj-nmsc.adb, prj-nmsc.ads,
3002         prj-conf.adb, prj-conf.ads (Allow_Duplicate_Basenames): New parameter
3003         to several subprograms.
3004         (Source_Data.Other_Part): Removed, since can be computed from the
3005         language.
3006         (Other_Part): New subprogram.
3008 2009-06-24  Emmanuel Briot  <briot@adacore.com>
3010         * gnat_ugn.texi, prj-nmsc.adb (Suffix_Matches): A suffix can also match
3011         the full base name of the file when the suffix doesn't start with a '.'.
3013 2009-06-24  Vincent Celier  <celier@adacore.com>
3015         * prj-nmsc.adb (Check): A project declared abstract is legal if no
3016         attribute Source_Dirs, Source_Files, Source_List_File or Languages is
3017         declared.
3019 2009-06-24  Robert Dewar  <dewar@adacore.com>
3021         * clean.adb, gnatcmd.adb, make.adb, mlib-prj.adb,
3022         prj-env.adb: Minor reformatting
3024 2009-06-24  Ed Falis  <falis@adacore.com>
3026         * s-taprop-vxworks.adb, s-osinte-vxworks.ads, s-vxwext.ads,
3027         s-vxwext-kernel.adb, s-vxwext-kernel.ads, s-vxwext-rtp.adb,
3028         s-tasinf-vxworks.ads, gcc-interface/Makefile.in: Add processor affinity
3029         support for VxWorks SMP.
3031         * gcc-interface/Make-lang.in: Update dependencies
3033 2009-06-24  Emmanuel Briot  <briot@adacore.com>
3035         * gnatcmd.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
3036         prj-nmsc.adb, prj-env.adb, prj-proc.adb (Units_Table): Removed, since
3037         no longer useful.
3038         (Source_Data.Lang_Kind): Removed, since it duplicates information
3039         already available through Language.Config.
3040         (Source_Data.Compile): Removed, since information is already available
3041         through the language.
3042         (Is_Compilable): New subprogram.
3043         (Source_Data.Dependency): Removed, since already available through
3044         the language.
3045         (Source_Data.Object_Exist, Object_Linked): Removed since available
3046         through the language already.
3047         (Unit_Data.File_Names): Is now also set in multi_language mode, to
3048         bring the two modes closer in the resulting data structures.
3049         (Source_Data.Unit): Now a direct pointer to the unit data, rather than
3050         just the name that would point into a hash table.
3051         (Get_Language_From_Name): New subprogram.
3053 2009-06-24  Javier Miranda  <miranda@adacore.com>
3055         * exp_ch4.adb (Expand_N_Type_Conversion): Handle entities that are
3056         visible through limited-with context clauses. In addition, avoid an
3057         extra tag check that is not required when the class-wide
3058         designated types of the operand and target types are
3059         the same entity.
3060         (Tagged_Membership): Handle entities from the limited view.
3062 2009-06-24  Emmanuel Briot  <briot@adacore.com>
3064         * gnatcmd.adb, make.adb, mlib-prj.adb, prj.ads, clean.adb,
3065         prj-nmsc.adb, prj-env.adb (File_Name_Data): removed
3066         (Spec_Or_Body): now a subtype of Source_Kind, to avoid using two
3067         different vocabularies for similar concepts (Impl/Body_Part and
3068         Spec/Specification).
3069         (Unit_Data): now points directly to a Source_Id, rather than duplicating
3070         some of the information in File_Name_Data. This also saves a bit of
3071         memory. However, since we are now using a pointer we need to test
3072         for null explicitly in several places of the code
3074 2009-06-24  Javier Miranda  <miranda@adacore.com>
3076         * exp_ch4.adb (Expand_N_Type_Conversion): return immediately
3077         from processing the type conversion when the node is
3078         replaced by an N_Raise_Program_Error node.
3080 2009-06-24  Hristian Kirtchev  <kirtchev@adacore.com>
3082         * sem_ch6.adb (Designates_From_With_Type): New routine.
3083         (Process_Formals): Since anonymous access types are no longer flagged
3084         as from with types, traverse the designated type to determine whether
3085         it is coming from a limited view.
3087         * sem_res.adb: Remove with and use clauses for Sem_Ch10.
3088         (Full_Designated_Type): Use Available_View to extract the non-limited /
3089         full view of a type.
3091 2009-06-24  Robert Dewar  <dewar@adacore.com>
3093         * exp_ch6.adb: Minor reformatting
3095         * layout.adb: Minor reformatting
3097         * make.adb: Minor reformatting
3099 2009-06-24  Thomas Quinot  <quinot@adacore.com>
3101         * sem_ch10.adb: Minor code reorganization.
3103 2009-06-24  Eric Botcazou  <ebotcazou@adacore.com>
3105         * ttypes.ads: Minor editing.
3106         
3107 2009-06-24  Robert Dewar  <dewar@adacore.com>
3109         * exp_ch6.adb (Expand_Actuals): Use Is_Volatile, not Treat_As_Volatile
3110         in deciding to do call-by-copy code.
3112 2009-06-24  Vincent Celier  <celier@adacore.com>
3114         * make.adb (Gnatmake): To decide if an executable should be rebuilt,
3115         check if an externally built library file is more current than the
3116         executable.
3118 2009-06-23  Olivier Hainque  <hainque@adacore.com>
3120         * gcc-interface/utils.c (handle_vector_size_attribute): Import from
3121         c-common.c and populate in gnat_internal_attribute_table.
3122         
3123 2009-06-23  Ed Schonberg  <schonberg@adacore.com>
3125         * sem_res.adb (Valid_Conversion, Full_Designated_Type): Use
3126         Available_View only when designated type of an anonymous access type
3127         is  limited view.
3129 2009-06-23  Robert Dewar  <dewar@adacore.com>
3131         * sem_ch10.adb: Minor reformatting
3133         * ali.ads: Mino reformatting.
3135         * gnat1drv.adb (Adjust_Global_Switches): New procedure (take care of
3136         turning off inlining if ASIS mode active).
3137         
3138         * switch-c.adb: Remove fiddling with Inspector_Mode and ASIS_Mode
3139         This belongs in gnat1drv.adb after switches are scanned.
3141 2009-06-23  Hristian Kirtchev  <kirtchev@adacore.com>
3143         * sem_attr.adb: Add with and use clauses for Sem_Ch10.
3144         (Check_Not_Incomplete_Type): Minor reformatting. Retrieve the root type
3145         when dealing with class-wide types. Detect a legal shadow entity and
3146         retrieve its non-limited view.
3148         * sem_ch10.adb (Has_With_Clause): Move the spec and body of the
3149         subprogram to top package level from Intall_Limited_Withed_Unit.
3150         (Install_Limited_Withed_Unit): Remove spec and body of Has_With_Clause.
3151         Add check which prevents the installation of a limited view if the
3152         non-limited view is already visible through a with clause.
3153         (Is_Legal_Shadow_Entity_In_Body): New routine. Detect a residual, but
3154         legal shadow entity which may occur in subprogram formals of anonymous
3155         access type.
3157         * sem_ch10.ads (Is_Legal_Shadow_Entity_In_Body): New routine.
3159         * sem_ch3.adb (Access_Definition): Remove the propagation of flag
3160         From_With_Type from the designated type to the generated anonymous
3161         access type. Remove associated comment.
3163         * sem_res.adb Add with and use clauses for Sem_Ch10.
3164         (Full_Designated_Type): Detect a legal shadow entity and retrieve its
3165         non-limited view. Since the shadow entity may replace a regular
3166         incomplete type, return the available full view.
3168 2009-06-23  Ed Schonberg  <schonberg@adacore.com>
3170         * sem_ch10.adb (Remove_Limited_With_Clause): Clean up code that handles
3171         incomplete type declarations. Previous code was potentially quadratic
3172         in the number of visible declarations in any package appearing in a
3173         limited_with_clause.
3175 2009-06-23  Robert Dewar  <dewar@adacore.com>
3177         * prj-conf.ads, prj-part.adb, prj-proc.adb, prj-proc.ads, sem_ch8.adb,
3178         xref_lib.adb: Minor reformatting
3180 2009-06-23  Robert Dewar  <dewar@adacore.com>
3182         * a-stzhas.adb: Provide dummy body to avoid build problems with old
3183         versions which did have a body for this unit.
3185 2009-06-23  Vincent Celier  <celier@adacore.com>
3187         * prj-attr.adb: Attribute names Initial_Required_Switches and
3188         Final_Required_Switches changed to Leading_Required_Switches and
3189         Trailing_Required_Switches.
3191         * prj-nmsc.adb (Process_Compiler): Attribute names
3192         Initial_Required_Switches and Final_Required_Switches changed to
3193         Leading_Required_Switches and Trailing_Required_Switches.
3195         * prj.ads (Language_Config): Component Initial_Required_Switches and
3196         Final_Required_Switches changed to Leading_Required_Switches and
3197         Trailing_Required_Switches.
3199         * snames.ads-tmpl: Remove standard names Initial_Required_Switches and
3200         Final_Required_Switches; add standard names Leading_Required_Switches
3201         and Trailing_Required_Switches.
3203 2009-06-23  Thomas Quinot  <quinot@adacore.com>
3205         * prj-conf.adb: Minor reformatting
3207         * xref_lib.adb: Minor cleanup
3209 2009-06-23  Emmanuel Briot  <briot@adacore.com>
3211         * prj-proc.adb, prj-proc.ads, prj-nmsc.adb, prj-nmsc.ads, prj-conf.adb,
3212         prj-conf.ads (Check_Configuration): New parameter
3213         Compiler_Driver_Mandatory.
3215 2009-06-23  Ed Schonberg  <schonberg@adacore.com>
3217         * sem_ch10.adb (Analyze_With_Clause): If a subprogram instance in the
3218         context of the current unit has an inline pragma, the instance is not
3219         rewritten as the declaration of the package wrapper. Handle both
3220         possibilities when retrieving the visible subprogram that renames the
3221         instantiation itself.
3223 2009-06-23  Javier Miranda  <miranda@adacore.com>
3225         * exp_ch4.adb (Displace_Allocator_Pointer, Expand_N_Allocator): Handle
3226         designated types referencing entities from the limited view.
3228 2009-06-23  Robert Dewar  <dewar@adacore.com>
3230         * s-strhas.adb, s-strhas.ads: Restrict to 32-bit modular types
3232         * s-imgdec.adb (Set_Decimal_Digits): Fix error of too many digits for
3233         small values
3235         * prj-conf.ads: Minor reformatting
3237         * prj-conf.adb: Minor reformatting
3239 2009-06-23  Vasiliy Fofanov  <fofanov@adacore.com>
3241         * g-debpoo.adb (Dump_Gnatmem): Output dummy timestamps for allocations
3242         to correspond to the log format that gnatmem now expects.
3244 2009-06-23  Vincent Celier  <celier@adacore.com>
3246         * prj-attr.adb: New attributes Initial_Required_Switches,
3247         Final_Required_Switches and Object_File_Switches
3248         
3249         * prj-nmsc.adb (Process_Compiler): Process new attributes
3250         Name_Final_Required_Switches, Name_Initial_Required_Switches and
3251         Name_Object_File_Switches.
3253         * prj.ads (Language_Config): New component
3254         Compiler_Initial_Required_Switches (replace Compiler_Required_Switches),
3255         Compiler_Final_Required_Switches and Object_File_Switches.
3257         * snames.ads-tmpl: New standard names Initial_Required_Switches,
3258         Final_Required_Switches and Object_File_Switches
3260 2009-06-23  Pascal Obry  <obry@adacore.com>
3262         * s-strhas.adb, s-strhas.ads: Minor reformatting.
3264 2009-06-23  Ed Schonberg  <schonberg@adacore.com>
3266         * sem_ch10.adb (Install_Limited_Withed_Unit): a null procedure does
3267         not indicate that the enclosing unit needs a body.
3269 2009-06-23  Emmanuel Briot  <briot@adacore.com>
3271         * prj-conf.ads, prj-conf.adb: New files part of the project manager.
3273 2009-06-23  Ed Schonberg  <schonberg@adacore.com>
3275         * sem_ch3.adb (Derive_Subprogram): If the inherited subprogram is a
3276         primitive equality include it with its source name even if the
3277         operation is currently invisible, to make sure that the corresponding
3278         slot in the dispatch table is reserved for the internal equality
3279         subsequently generated during expansion.
3281 2009-06-23  Matthew Gingell  <gingell@adacore.com>
3283         * Makefile.rtl, a-stwiha.adb: Add a-stwiha.adb back.
3285 2009-06-22  Jose Ruiz  <ruiz@adacore.com>
3287         * sysdep.c (__gnat_localtime_tzoff for RTX):
3288         SystemTimeToTzSpecificLocalTime is not supported by RTX. Use
3289         GetTimeZoneInformation instead.
3291 2009-06-22  Robert Dewar  <dewar@adacore.com>
3293         * sem_res.adb (Check_No_Direct_Boolean_Operators): New procedure
3295 2009-06-22  Ed Schonberg  <schonberg@adacore.com>
3297         * sem_ch12.adb (Collect_Previous_Instances): Do not collect
3298         instantiations declared in a previous generic package body.
3300 2009-06-22  Robert Dewar  <dewar@adacore.com>
3302         * gnat_rm.texi: Add doc that X=True and X=False is allowed for the
3303         restriction No_Direct_Boolean_Operators.
3305 2009-06-22  Thomas Quinot  <quinot@adacore.com>
3307         * bindusg.adb: Minor fixes to gnatbind usage message
3309         * sem_eval.adb: Minor reformatting
3311 2009-06-22  Javier Miranda  <miranda@adacore.com>
3313         * sem_ch3.adb (Analyze_Object_Declaration, Freeze_Entity): Move to the
3314         freezing point the check on the use of abstract types in object
3315         declarations. Done to allow the declaration of C++ imported variables
3316         or constants whose type corresponds with an imported C++ classes for
3317         which the constructor is not imported.
3319 2009-06-22  Thomas Quinot  <quinot@adacore.com>
3321         * sem_ch6.adb: Minor reformatting
3323 2009-06-22  Ed Schonberg  <schonberg@adacore.com>
3325         * exp_ch3.adb (Build_Initialization_Call): If a discriminated record
3326         component is constrained with an expression rather than with a
3327         discriminant of the enclosing type, use that expression when building
3328         the call to default-initialize the component, when the call is part of
3329         an aggregate with box initialization.
3331 2009-06-22  Ed Schonberg  <schonberg@adacore.com>
3333         * sem_ch6.adb (Check_Overriding_Indicator): Clean up code, make warning
3334         unconditional rather than a style check, because a formal name out of
3335         order is suspicious.
3337 2009-06-22  Vincent Celier  <celier@adacore.com>
3339         * prj-nmsc.adb (Locate_Directory): Indicate the project name when
3340         creating a directory automatically.
3342 2009-06-22  Eric Botcazou  <ebotcazou@adacore.com>
3344         * sem_ch3.adb (Create_Constrained_Components): For a subtype of an
3345         untagged derived type, add a hidden component for every constrained
3346         discriminant of the parent type to keep record layout consistent.
3348 2009-06-22  Thomas Quinot  <quinot@adacore.com>
3350         * exp_ch3.adb: Minor code reorganization (avoid an unnecessary tree
3351         copy).
3353 2009-06-22  Matthew Gingell  <gingell@adacore.com>
3355         * a-stzhas.adb, a-stwiha.adb, impunit.adb, a-swbwha.adb, a-shcain.adb,
3356         s-htable.adb, a-szuzha.adb, a-stunha.adb, a-stboha.adb, a-strhas.adb,
3357         g-spitbo.adb, s-strhas.adb, a-szbzha.adb, s-strhas.ads, Makefile.rtl,
3358         a-swuwha.adb: New unit System.String_Hash.  
3359         Refactor redundant cut and pasted hash functions with instances of a
3360         new generic hash function.
3361         Implement a new string hashing algorithm which appears in testing to
3362         be move effective than to previous approach.
3364 2009-06-22  Ed Falis  <falis@adacore.com>
3366         * sysdep.c: remove include for nfsLib.h and an NFS specific error
3367         message for VxWorks 653 vThreads: not supported by the OS.
3369         * gsocket.h: disable sockets for VxWorks 653 vThreads.
3371 2009-06-22  Robert Dewar  <dewar@adacore.com>
3373         * sem_ch6.adb: Add ??? comment for bad use of Style_Check
3375 2009-06-22  Robert Dewar  <dewar@adacore.com>
3377         * sinput.adb, sinput.ads (Expr_First_Char, Expr_Last_Char): Replaced
3378         by Sloc_Range.
3380         * freeze.adb: Minor comment updates
3382         * s-valrea.adb (Bad_Based_Value): New procedure
3383         (Scan_Real): Raise exceptions with messages
3385 2009-06-22  Matthew Gingell  <gingell@adacore.com>
3387         * adaint.h: Complete previous change.
3389 2009-06-22  Thomas Quinot  <quinot@adacore.com>
3391         * exp_ch7.ads, exp_ch3.adb: Minor reformatting
3393 2009-06-22  Ed Schonberg  <schonberg@adacore.com>
3395         * sem_ch6.adb (Check_Overriding_Indicator): When style checks are
3396         enabled, emit warning when a non-controlling argument of the overriding
3397         operation appears out of place vis-a-vis of the formal of the
3398         overridden operation.
3400 2009-06-22  Vincent Celier  <celier@adacore.com>
3402         * gnatcmd.adb (Check_Files): Close temporary files after all file names
3403         have been written into it.
3405 2009-06-22  Matthew Gingell  <gingell@adacore.com>
3407         * adaint.c, adaint.h, cstreams.c: Call stat64 on platforms where it is
3408         available.
3410 2009-06-22  Thomas Quinot  <quinot@adacore.com>
3412         * sem_disp.adb (Check_Direct_Call): Handle the case where the full
3413         view of the root type is visible at the point of the call.
3415 2009-06-22  Pat Rogers  <rogers@adacore.com>
3417         * gnat_ugn.texi: Revised a sentence to correct a minor grammar error.
3419 2009-06-22  Jerome Lambourg  <lambourg@adacore.com>
3421         * freeze.adb: Add comments.
3423 2009-06-21  Thomas Quinot  <quinot@adacore.com>
3425         * exp_ch3.adb, exp_prag.adb, exp_util.adb, exp_util.ads, freeze.adb,
3426         sem_ch13.adb, sem_elab.adb (Exp_Prag.Expand_Pragma_Import_Or_Interface):
3427         Factor out code to new subprogram...
3428         (Exp_Util.Find_Init_Call): New shared routine to find the init proc call
3429         for a default initialized variable.
3430         (Freeze.Check_Address_Clause): Do not reset Has_Delayed_Freeze on an
3431         entity that has an associated freeze node.
3432         (Sem_Ch13.Analyze_Attribute_Definition_Clause, case Address):
3433         If there is an init call for the object, defer it to the object freeze
3434         point.
3435         (Check_Elab_Call.Find_Init_Call): Rename to Check_Init_Call, to avoid
3436         name clash with new subprogram introduced in Exp_Util.
3438 2009-06-21  Robert Dewar  <dewar@adacore.com>
3440         * einfo.ads: Minor reformatting
3442 2009-06-21  Ed Falis  <falis@adacore.com>
3444         * env.c (__gnat_environ): return NULL for vThreads - unimplemented
3446 2009-06-21  Eric Botcazou  <ebotcazou@adacore.com>
3448         * einfo.ads: Update comments.
3450 2009-06-21  Hristian Kirtchev  <kirtchev@adacore.com>
3452         * sem_disp.adb (Check_Direct_Call): New routine. Dispatching calls
3453         where the controlling formal is of private class-wide type whose
3454         completion is a synchronized type can be converted into direct calls.
3456 2009-06-21  Vincent Celier  <celier@adacore.com>
3458         * gnatcmd.adb (Check_Files): When all sources of the project are to be
3459         indicated to gnatcheck, gnatpp or gnatmetric, always specify the list
3460         of sources using -files=, so that the distinction can be made by the
3461         tool of a call with no source (to display the usage) from a call with
3462         a project file that contains no source.
3464 2009-06-21  Jerome Lambourg  <lambourg@adacore.com>
3466         * exp_ch3.adb (Build_Array_Init_Proc): Do not build the init proc in
3467         case of VM convention arrays.
3469 2009-06-20  Robert Dewar  <dewar@adacore.com>
3471         * a-nudira.adb: Minor reformatting
3473 2009-06-20  Ed Schonberg  <schonberg@adacore.com>
3475         * exp_ch3.adb (Build_Record_Init_Proc): When copying initial
3476         expressions (possibly from a parent type) indicate that the scope of
3477         the new itypes is the initialization procedure being built.
3479 2009-06-20  Robert Dewar  <dewar@adacore.com>
3481         * a-nudira.adb (Fits_In_32_Bits): New name (inverted sense) for
3482         Needs_64, and now computed without anomolies for some dynamic types.
3484 2009-06-20  Thomas Quinot  <quinot@adacore.com>
3486         * sem_prag.adb: Minor reformatting
3488         * exp_disp.ads: Minor reformatting
3490 2009-06-20  Ed Schonberg  <schonberg@adacore.com>
3492         * sem_ch3.adb (Is_OK_For_Limited_Init): An unchecked conversion of a
3493         function call is a legal expression to initialize a limited object.
3495         * exp_ch3.adb: Rename various freeze operations that perform expansion
3496         actions, to prevent confusion with subprograms in the freeze package.
3498 2009-06-20  Ed Schonberg  <schonberg@adacore.com>
3500         * sem.adb (Walk_Library_Units): Check instantiations first.
3502         * sem_ch6.adb (Analyze_Subprogram_Declaration): Mark a subprogram as a
3503         private primitive if it is a function with a controlling result that is
3504         a type extension with progenitors.
3506         * exp_ch9.adb (Build_Wrapper_Spec, Build_Wrapper_Body): Handle properly
3507         a primitive operation of a synchronized tagged type that has a
3508         controlling result.
3510 2009-06-20  Thomas Quinot  <quinot@adacore.com>
3512         * einfo.ads: Fix typo.
3514 2009-06-20  Ed Falis  <falis@adacore.com>
3516         * s-vxwext.ads, s-vxwext-kernel.adb: Complete previous change.
3518 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
3520         * gcc-interface/trans.c (emit_check): Do not wrap up the result
3521         in a SAVE_EXPR.
3522         (protect_multiple_eval): Always protect complex expressions.
3524 2009-06-19  Emmanuel Briot  <briot@adacore.com>
3526         * prj-ext.adb, makeutl.adb, makeutl.ads (Executable_Prefix_Path): Now
3527         make sure we always return a name ending with a path separator.
3529 2009-06-19  Javier Miranda  <miranda@adacore.com>
3531         * sem_ch12.adb (Instantiate_Package_Body, Instantiate_Subprogram_Body):
3532         Save and restore the visibility of the parent when installed.
3534 2009-06-19  Jose Ruiz  <ruiz@adacore.com>
3536         * s-tposen.ads (Protection_Entry): Replace fields L, Ceiling, and Owner
3537         by Common which contains all these fields.
3539         * s-tposen.adb (Initialize_Protection_Entry, Lock_Entry,
3540         Lock_Read_Only_Entry, Timed_Protected_Single_Entry_Call, Unlock_Entry):
3541         Remove code duplication in this package by means of calling the
3542         equivalent code in s-taprob.
3544 2009-06-19  Robert Dewar  <dewar@adacore.com>
3546         * a-einuoc.ads: Minor reformatting
3548 2009-06-19  Ed Falis  <falis@adacore.com>
3550         * a-einuoc.ads, s-osinte-vxworks.ads, s-vxwext.ads, s-vxwext-kernel.adb,
3551         s-vxwext-kernel.ads, s-vxwext-rtp.ads: Code clean up.
3553 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
3555         * einfo.ads (Handling of Type'Size Values): Fix Object_Size values.
3557 2009-06-19  Robert Dewar  <dewar@adacore.com>
3559         * a-nudira.adb (Need_64): Handle negative ranges and also dynamic
3560         ranges
3562         * checks.adb (Determine_Range): Move the test for generic types later.
3564         * sem_eval.adb (Compile_Time_Compare): Improve circuitry to catch more
3565         cases.
3566         (Eval_Relational_Op): Fold more cases including string compares
3568         * sem_util.ads, sem_util.adb (References_Generic_Formal_Type): New
3569         function.
3571 2009-06-19  Robert Dewar  <dewar@adacore.com>
3573         * sem_type.ads, sem_ch12.adb: Minor reformatting
3575         * s-wchcnv.adb (UTF_32_To_Char_Sequence): Handle invalid data properly
3577 2009-06-19  Ed Schonberg  <schonberg@adacore.com>
3579         * exp_ch9.adb (Build_Wrapper_Spec): Handle properly an overridden
3580         primitive operation of a rivate extension whose controlling argument
3581         is an out parameter.
3583         * sem.adb (Walk_Library_Units): exclude generic package declarations
3584         from check.
3586 2009-06-19  Thomas Quinot  <quinot@adacore.com>
3588         * i-vxwoio.ads: Add comments
3590 2009-06-19  Thomas Quinot  <quinot@adacore.com>
3592         * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
3593         g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
3594         g-socthi.adb, g-socthi.ads, g-socket.adb, g-sothco.ads
3595         (GNAT.Sockets.Thin.C_Ioctl): Rename to Socket_Ioctl.
3596         (GNAT.Sockets.Thin.Socket_Ioctl): Use new function
3597         Thin_Common.Socket_Ioctl.
3598         (GNAT.Sockets.Thin_Common.Socket_Ioctl): Binding to new C wrapper
3599         __gnat_socket_ioctl.
3600         (__gnat_socket_ioctl): Wrapper for ioctl(2) called with a single int*
3601         argument after the file descriptor and request code.
3603 2009-06-19  Robert Dewar  <dewar@adacore.com>
3605         * checks.adb: Minor reformatting
3607 2009-06-19  Jose Ruiz  <ruiz@adacore.com>
3609         * env.c (__gnat_environ): RTX does not support this functionality.
3611 2009-06-19  Ed Schonberg  <schonberg@adacore.com>
3613         * sem.adb (Walk_Library_Items): Include bodies in the list of units to
3614         traverse, to account for front-end inlining and instantiations in a
3615         spec or in the main unit.
3617 2009-06-19  Robert Dewar  <dewar@adacore.com>
3619         * checks.adb (Determine_Range): Do not attempt to get range of generic
3620         type.
3622 2009-06-19  Sergey Rybin  <rybin@adacore.com>
3624         * gnat_ugn.texi, vms_data.ads: Add the documentation for the new
3625         gnatmetric option for generating the schema file for gnatmetric XML
3626         output. Add corresponding VMS qualifier.
3628 2009-06-19  Robert Dewar  <dewar@adacore.com>
3630         * g-cgi.adb: Minor reformatting
3632 2009-06-19  Eric Botcazou  <ebotcazou@adacore.com>
3634         * s-intman-solaris.adb (Notify_Exception): Do not discriminate on the
3635         signal code for SIGFPE and raise Program_Error for SIGILL.
3637         * s-osinte-solaris.ads: Remove signal code constants for SIGFPE.
3639 2009-06-19  Ed Schonberg  <schonberg@adacore.com>
3641         * sem_ch8.adb (Nvis_Messages): Do not list an entity declared in a
3642         generic package if there is a visibility candidate that is declared in
3643         a regular package.
3645 2009-06-18  Olivier Hainque  <hainque@adacore.com>
3647         * system-aix64.ads: New file.
3648         * gcc-interface/Makefile.in (aix LIBGNAT_TARGET_PAIRS): Use the
3649         64bit system.ads for ppc64 multilib variants.
3651 2009-06-16  Robert Dewar  <dewar@adacore.com>
3652             Olivier Hainque  <hainque@adacore.com>
3654         Relax constraints on Machine_Attribute argument types:
3655         * sem_prag.adb (Check_Arg_Is_Static_Expression): Allow for
3656         missing type.
3657         (Analyze_Attribute, case Machine_Attribute): Allow any type for arg 3.
3658         * gcc-interface/decl.c (prepend_attributes): Accept static
3659         expressions of any type as attribute arguments, not only string
3660         literals.
3661         * gnat_rm.texi (pragma Machine_Attribute section): Adjust to reflect
3662         the relaxation of the restriction on the Info argument type.
3663         
3664 2009-06-13  Aldy Hernandez  <aldyh@redhat.com>
3666         * gcc-interface/utils.c (record_builtin_type): Pass location
3667         argument to build_decl.
3668         (create_type_stub_decl): Same.
3669         (create_type_decl): Same.
3670         (create_var_decl_1): Same.
3671         (create_field_decl): Same.
3672         (create_param_decl): Same.
3673         (create_label_decl): Same.
3674         (create_subprog_decl): Same.
3675         * gcc-interface/decl.c (gnat_to_gnu_entity): Same.
3676         * gcc-interface/trans.c (Case_Statement_to_gnu): Pass location
3677         argument to create_artificial_label.
3678         (Loop_Statement_to_gnu): Same.
3679         (Subprogram_Body_to_gnu): Same.
3680         (gnat_gimplify_stmt): Same.
3682 2009-06-11  Richard Henderson  <rth@redhat.com>
3684         * gcc-interface/misc.c (gnat_handle_option): Rename OPT_gdwarf_ to
3685         OPT_gdwarfplus.
3687 2009-06-11  Ed Schonberg  <schonberg@adacore.com>
3689         * sem_attr.adb (Resolve_Attribute, case 'access): Add missing
3690         accessibiliy check on access_to_subprogram in the context of an
3691         anonymous access that is not an access parameter.
3693 2009-06-11  Eric Botcazou  <ebotcazou@adacore.com>
3695         * tracebak.c (i386 section): Define IS_BAD_PTR on Solaris.
3696         
3697 2009-06-11  Quentin Ochem  <ochem@adacore.com>
3699         * sem_warn.adb, scng.adb, sfn_scan.adb, freeze.adb: Add CODEFIX
3700         comments for message handled by GPS.
3702 2009-06-11  Matthew Gingell  <gingell@adacore.com>
3704         * adaint.c: Use fopen64 instead of fopen on platforms where we know
3705         it's supported.
3707 2009-06-11  Pascal Obry  <obry@adacore.com>
3709         * g-cgi.ads: Fix comment typo.
3711         * g-cgi.adb: Properly decode "+" in CGI parameters as spaces.
3713 2009-06-10  Eric Botcazou  <ebotcazou@adacore.com>
3715         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Use
3716         a reference to the original type for the type of the field of the
3717         XVS type.
3718         (maybe_pad_type): Likewise.
3720         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Factor
3721         common predicate and remove redundant setting of TYPE_BY_REFERENCE_P.
3722         Pass correctly typed arguments to create_field_decl.
3723         <E_Record_Subtype>: Set BLKmode for tagged and limited types in the
3724         case of contrained discriminants as well.  Use the padded base type
3725         in the other case as well.  Rename temporary variable.  Tweak test.
3726         Factor common access pattern.  Set GNU_SIZE only once.
3728 2009-06-09  Olivier Hainque  <hainque@adacore.com>
3730         * gcc-interface/utils2.c (build_call_alloc_dealloc_proc): New
3731         helper for build_call_alloc_dealloc with arguments to be interpreted
3732         identically.  Process the case where a GNAT_PROC to call is provided.
3733         (maybe_wrap_malloc): New helper for build_call_alloc_dealloc, to build
3734         and return an allocator for DATA_SIZE bytes aimed at containing a
3735         DATA_TYPE object, using the default __gnat_malloc allocator.  Honor
3736         DATA_TYPE alignments greater than what the latter offers.
3737         (maybe_wrap_free): New helper for build_call_alloc_dealloc, to
3738         release a DATA_TYPE object designated by DATA_PTR using the
3739         __gnat_free entry point.
3740         (build_call_alloc_dealloc): Expect object data type instead of naked
3741         alignment constraint. Use the new helpers.
3742         (build_allocator): Remove special processing for the super-aligned
3743         case, now handled by build_call_alloc_dealloc.  Pass data
3744         type instead of the former alignment argument, as expected by the new
3745         interface.
3746         * gcc-interface/gigi.h (build_call_alloc_dealloc): Adjust prototype
3747         and comment.
3748         * gcc-interface/trans.c (gnat_to_gnu) <case N_Free_Statement>:
3749         Remove special processing for the super-aligned case, now handled
3750         by build_call_alloc_dealloc.  Pass data type instead of the former
3751         alignment argument, as expected by the new interface.
3752         
3753 2009-06-08  Alexandre Oliva  <aoliva@redhat.com>
3755         * lib-writ.adb (flag_compare_debug): Import.
3756         (Write_ALI): Skip during -fcompare-debug-second.
3758 2009-06-03  Eric Botcazou  <ebotcazou@adacore.com>
3760         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: When
3761         adjusting the discriminant nodes in an extension, use the full view
3762         of the parent subtype if it is of a private kind.
3764 2009-06-03  Eric Botcazou  <ebotcazou@adacore.com>
3766         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Add the
3767         _Parent field, if any, to the record before adding the other fields.
3768         <E_Record_Subtype>: Put the _Controller field before the other fields
3769         except for the _Tag or _Parent fields.
3770         (components_to_record): Likewise.  Retrieve the _Parent field from the
3771         record type.
3773 2009-06-03  Eric Botcazou  <ebotcazou@adacore.com>
3775         * gcc-interface/decl.c (substitution_list): Rename to build_subst_list,
3776         remove unused parameter and simplify.
3777         (gnat_to_gnu_entity) <E_Record_Type>: Do not set TYPE_FIELDS.  Factor
3778         common predicate.  Rewrite loop for clarity.  Use GNU_TYPE directly
3779         as context for all discriminants.  Fix formatting nits.
3780         <E_Record_Subtype>: Add cosmetic 'break'.  Test Has_Discriminants
3781         before Discriminant_Constraint.  Adjust for above renaming.  Do not
3782         set GNU_TYPE more than once.
3783         (elaborate_entity): Test Has_Discriminants on the entity and use
3784         Implementation_Base_Type.
3785         (components_to_record): Rename component_list to gnat_component_list.
3786         Retrieve the _Parent field from the list.  Fix nits in comments.
3787         Clarify logic in loop.  Pass correct arguments to create_field_decl.
3789 2009-06-02  Eric Botcazou  <ebotcazou@adacore.com>
3791         * gcc-interface/Make-lang.in: Fix formatting.
3793 2009-06-01  Olivier Hainque  <hainque@adacore.com>
3794             Eric Botcazou  <ebotcazou@adacore.com>
3795         
3796         * gcc-interface/utils.c (convert) <CONSTRUCTOR case>: When converting
3797         to the packable version of the type, clear TREE_STATIC/TREE_CONSTANT
3798         on the result if at least one of the input fields couldn't be output
3799         as a static constant any more.
3801 2009-06-01  Olivier Hainque  <hainque@adacore.com>
3802             Eric Botcazou  <ebotcazou@adacore.com>
3803         
3804         * gcc-interface/utils2.c (gnat_build_constructor): Factor
3805         out code.  Use initializer_constant_valid_for_bitfield_p and
3806         CONSTRUCTOR_BITFIELD_P for bit-fields.
3808 2009-05-26  Ian Lance Taylor  <iant@google.com>
3810         * gcc-interface/Makefile.in (COMPILER): Define.
3811         (COMPILER_FLAGS, ALL_COMPILERFLAGS): Define.
3812         (.c.o, cio.o, init.o, initialize.o, targext.o): Use $(COMPILER).
3813         (seh_init.o, tracebak.o): Likewise.
3814         * gcc-interface/Make-lang.in (ada/targext.o): Likewise.
3815         (ada/cio.o, ada/init.o, ada/initialize.o, ada/raise.o): Likewise.
3816         (ada/tracebak.o, ada/cuintp.o, ada/decl.o, ada/misc.o): Likewise.
3817         (ada/targtyps.o, ada/trans.o, ada/utils.o): Likewise.
3818         (ada/utils2.o): Likewise.
3820 2009-05-24  Olivier Hainque  <hainque@adacore.com>
3822         * switch.adb (Is_Internal_GCC_Switch, Switch_Last): Bodies of ...
3823         * switch.ads (Is_Internal_GCC_Switch, Switch_Last): New functions.
3824         Add -auxbase variants to the list of recognized internal switches.
3825         * back_end.adb (Scan_Back_End_Switches): Use the new functions and
3826         adjust comments.
3827         * lib.ads: Make comment on internal GCC switches more general.
3828         * gcc-interface/lang-specs.h (specs for Ada): Pass -auxbase variants
3829         as for C.       
3830         
3831 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
3833         * gcc-interface/misc.c (gnat_get_subrange_bounds): Fix thinko.
3835 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
3837         * gcc-interface/decl.c (set_rm_size): Bypass the check for packed array
3838         types.
3840 2009-05-23  Eric Botcazou  <ebotcazou@adacore.com>
3842         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not modify the
3843         original type because of the alignment when there is an address clause.
3845 2009-05-20  Eric Botcazou  <ebotcazou@adacore.com>
3847         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: When
3848         discriminants affect the shape of the subtype, retrieve the GCC type
3849         directly from the original field if the GNAT types for the field and
3850         the original field are the same.
3852 2009-05-15  Eric Botcazou  <ebotcazou@adacore.com>
3854         * gcc-interface/ada-tree.h (TYPE_GCC_MIN_VALUE, TYPE_GCC_MAX_VALUE):
3855         New macros.
3856         (TYPE_RM_VALUES): Likewise.
3857         (TYPE_RM_SIZE): Rewrite in terms of TYPE_RM_VALUES.
3858         (SET_TYPE_RM_SIZE): New macro.
3859         (TYPE_RM_MIN_VALUE, TYPE_RM_MAX_VALUE): Likewise.
3860         (SET_TYPE_RM_SIZE, SET_TYPE_RM_MAX_VALUE): Likewise.
3861         (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Redefine.
3862         * gcc-interface/gigi.h (create_range_type): Declare.
3863         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>
3864         Use SET_TYPE_RM_MAX_VALUE to set the upper bound on the UMT type.
3865         <E_Signed_Integer_Subtype>: Build a regular integer type first and
3866         then set the RM bounds.  Use SET_TYPE_RM_SIZE to set the RM size.
3867         <E_Floating_Point_Subtype>: Build a regular floating-point type first
3868         and then set the RM bounds.
3869         <E_Array_Type>: Use create_range_type instead of build_range_type.
3870         <E_Array_Subtype>: Build a regular integer type first and then set
3871         the RM bounds for the extra subtype.
3872         <E_String_Literal_Subtype>: Use create_range_type instead of
3873         build_range_type.
3874         <all>: Set the RM bounds for enumeration types and the GCC bounds for
3875         floating-point types.
3876         (set_rm_size): Use SET_TYPE_RM_SIZE to set the RM size.
3877         (make_type_from_size) <INTEGER_TYPE>: Use SET_TYPE_RM_{MIN,MAX}_VALUE
3878         to set the bounds.  Use SET_TYPE_RM_SIZE to set the RM size.
3879         (substitute_in_type) <INTEGER_TYPE>: Deal with GCC bounds for domain
3880         types and with RM bounds for subtypes.
3881         * gcc-interface/misc.c (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
3882         (gnat_print_type) <REAL_TYPE>: New case.
3883         <ENUMERAL_TYPE>: Fall through to above case.
3884         (gnat_get_subrange_bounds): New function.
3885         * gcc-interface/trans.c (add_decl_expr): Mark the trees rooted as
3886         TYPE_RM_MIN_VALUE and TYPE_RM_MAX_VALUE, if any.
3887         * gcc-interface/utils.c (gnat_init_decl_processing): Use precision 8
3888         for booleans.  Adjust and use SET_TYPE_RM_SIZE to set the RM size.
3889         (create_range_type): New function.
3890         (create_param_decl): Build a regular integer type first and then set
3891         the RM bounds for the extra subtype.
3892         (unchecked_convert): Remove kludge for 'Valid.
3893         * gcc-interface/utils2.c (build_binary_op) <ARRAY_RANGE_REF>: Convert
3894         the index to sizetype instead of TYPE_DOMAIN.
3896 2009-05-14  Eric Botcazou  <ebotcazou@adacore.com>
3898         * gcc-interface/decl.c (elaborate_expression_1): Remove GNAT_EXPR
3899         parameter and move check for static expression to...
3900         (elaborate_expression): ...here.  Adjust call to above function.
3901         (gnat_to_gnu_entity): Likewise for all calls.  Use correct arguments
3902         in calls to elaborate_expression.
3903         (elaborate_entity): Likewise.
3904         (substitution_list): Likewise.
3905         (maybe_variable): Fix formatting.
3906         (substitute_in_type) <REAL_TYPE>: Merge with INTEGER_TYPE case and add
3907         missing guard.
3908         * gcc-interface/trans.c (protect_multiple_eval): Minor cleanup.
3910 2009-05-07  Arnaud Charlet  <charlet@adacore.com>
3912         * gcc-interface/Make-lang.in: Update dependencies.
3914 2009-05-06  Laurent GUERBY  <laurent@guerby.net>
3916         * s-linux.ads, s-linux-alpha.ads, s-linux-hppa.ads, osinte-linux.ads:
3917         Define sa_handler_pos.
3918         * s-osinte-linux.ads: Use it.
3919         * s-linux-mipsel.ads: New.
3920         * system-linux-mips64el.ads: New.
3921         * gcc-interface/Makefile.in: Multilib handling for mipsel-linux and
3922         mips64el-linux.
3924 2009-05-06  Arnaud Charlet  <charlet@adacore.com>
3926         * exp_ch5.adb, exp_util.adb, exp_attr.adb, sem_util.adb, sem_res.adb,
3927         targparm.adb, targparm.ads, exp_ch4.adb, exp_ch6.adb, exp_disp.adb,
3928         opt.ads, exp_aggr.adb, exp_intr.adb, sem_disp.adb, exp_ch3.adb
3929         (Tagged_Type_Expansion): New flag.
3930         Replace use of VM_Target related to tagged types expansion by
3931         Tagged_Type_Expansion, since tagged type expansion is not necessarily
3932         linked to VM targets.
3934 2009-05-06  Robert Dewar  <dewar@adacore.com>
3936         * sem_attr.adb: Add processing for Standard'Compiler_Version
3938         * sinput.adb (Expr_Last_Char): Fix some copy-paste errors for paren
3939         skipping.
3940         (Expr_First_Char): Add ??? comment that paren skipping needs work
3941         (Expr_Last_Char): Add ??? comment that paren skipping needs work
3943         * exp_attr.adb: Add processing for Compiler_Version
3945         * sem_attr.adb: New attribute Compiler_Version
3947         * snames.ads-tmpl: Add entries for Compiler_Version attribute
3949         * gnat_rm.texi: Document Compiler_Version attribute
3951 2009-05-06  Robert Dewar  <dewar@adacore.com>
3953         * errout.adb: Minor reformatting
3955         * scng.adb, sem_prag.adb, par-ch4.adb, sem_res.adb, par-ch6.adb,
3956         sem_ch6.adb, par-prag.adb, sem_ch8.adb, sem_warn.adb, par-util.adb,
3957         styleg.adb: Add stylized comments to error messages that are included
3958         in the codefix circuitry of IDE's such as GPS.
3960 2009-05-06  Sergey Rybin  <rybin@adacore.com>
3962         * gnat_ugn.texi: For Misnamed_Identifiers rule all description of the
3963         new form of the rule parameter that allows to specify the suffix for
3964         access-to-access type names.
3966 2009-05-06  Robert Dewar  <dewar@adacore.com>
3968         * sem_warn.adb (Warn_On_Useless_Assignment): Avoid false negative for
3969         out parameter assigned when exception handlers are present.
3971         * sem_ch5.adb (Analyze_Exit_Statement): Kill current value last
3972         assignments on exit.
3974         * par-ch9.adb, sem_aggr.adb, par-endh.adb, sem_res.adb, par-ch6.adb,
3975         sinput-l.adb, par-load.adb, errout.ads, sem_ch4.adb, lib-load.adb,
3976         prj-dect.adb, par-ch12.adb, sem_ch8.adb, par-util.adb, par-ch3.adb,
3977         par-tchk.adb, par-ch5.adb: This patch adds stylized comments to error
3978         messages that are included in the codefix circuitry of IDE's such as
3979         GPS.
3981         * sinput.ads, sinput.adb (Expr_First_Char): New function
3982         (Expr_Last_Char): New function
3984 2009-05-06  Sergey Rybin  <rybin@adacore.com>
3986         * gnat_ugn.texi: Add subsection for Exits_From_Conditional_Loops rule
3987         Add formal definition for extra exit point metric
3989 2009-05-06  Pascal Obry  <obry@adacore.com>
3991         * adaint.c: Support for setting attributes on unicode filename on
3992         Windows.
3994 2009-05-06  Robert Dewar  <dewar@adacore.com>
3996         * sem_warn.adb: Minor reformatting
3998 2009-05-06  Javier Miranda  <miranda@adacore.com>
4000         * sem_prag.adb (Process_Import_Or_Interface): Imported CPP types must
4001         not have discriminants or components with default expressions.
4002         (Analyze_Pragma): For pragma CPP_Class check that imported types
4003         have no discriminants and components have no default expression.
4005         * sem_aggr.adb (Resolve_Aggr_Expr): Add missing check on wrong use of
4006         class-wide types in the expression of a record component association.
4008 2009-05-06  Sergey Rybin  <rybin@adacore.com>
4010         * vms_data.ads: Add qualifier for gnatmetric extra exit points metric
4012         * gnat_ugn.texi: Add description for the new extra exit points metric
4013         (gnatmetric section).
4015 2009-05-06  Robert Dewar  <dewar@adacore.com>
4017         * s-fileio.adb: Minor comment update
4019         * sem_ch8.adb: Minor reformatting
4021         * exp_ch3.adb: Update comments.
4023 2009-05-06  Tristan Gingold  <gingold@adacore.com>
4025         * init.c, s-osinte-darwin.ads: Reduce alternate stack size
4027 2009-05-06  Arnaud Charlet  <charlet@adacore.com>
4029         * gcc-interface/Makefile.in: Update LIBGNAT_TARGET_PAIRS for Xenomai.
4030         Fix missing unit for rtp-smp runtime on both ppc and x86 vxworks
4032         * gcc-interface/Make-lang.in: Update dependencies
4034 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
4036         * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Revert previous
4037         change. The context clause of a generic instance declaration must be
4038         preserved until the end of the compilation, because it may have to be
4039         installed/removed repeatedly.
4040         The latest change to sem.adb ensures that the context of both spec and
4041         body of an instance is traversed before the instance itself, making
4042         this patch redundant.
4044 2009-05-06  Gary Dismukes  <dismukes@adacore.com>
4046         * sem_aggr.adb: Fix typo.
4048 2009-05-06  Thomas Quinot  <quinot@adacore.com>
4050         * exp_ch3.adb (Expand_N_Object_Declaration): For a controlled object
4051         declaration, do not adjust if the declaration is to be rewritten into
4052         a renaming.
4054 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
4056         * sem_ch8.adb (Find_Type): Reject the use of a task type in its own
4057         discriminant part.
4059 2009-05-06  Bob Duff  <duff@adacore.com>
4061         * s-fileio.adb (File_IO_Clean_Up_Type): Make this type limited, since
4062         otherwise the compiler would be allowed to optimize away the cleanup
4063         code.
4065 2009-05-06  Gary Dismukes  <dismukes@adacore.com>
4067         * gnat_ugn.texi: Fix typo.
4069 2009-05-06  Thomas Quinot  <quinot@adacore.com>
4071         * g-debuti.adb: Minor reformatting
4073         * exp_attr.adb: Minor reformatting
4075 2009-05-06  Robert Dewar  <dewar@adacore.com>
4077         * sem_aggr.adb: Minor reformatting.
4079         * g-socthi-vms.adb: Minor reformatting
4081 2009-05-06  Bob Duff  <duff@adacore.com>
4083         * g-table.ads, g-table.adb, g-dyntab.ads, g-dyntab.adb:
4084         (Append_All): Add Append_All to g-table and g-dyntab, similar to table.
4086 2009-05-06  Bob Duff  <duff@adacore.com>
4088         * gnat_ugn.texi, gnat_rm.texi: Add missing documentation for warnings
4089         flags.
4091 2009-05-06  Javier Miranda  <miranda@adacore.com>
4093         * sem_aggr.adb (Valid_Ancestor_Type): Add support for C++ constructors.
4094         (Resolve_Extension_Aggregate): Do not reject C++ constructors in
4095         extension aggregates.
4096         (Resolve_Record_Aggregate): Add support for C++ constructors in
4097         extension aggregates.
4099         * exp_aggr.adb (Build_Record_Aggr_Code): Add support for C++
4100         constructors in extension aggregates.
4102 2009-05-06  Robert Dewar  <dewar@adacore.com>
4104         * freeze.adb (Freeze_Record_Type): Improve error msg for bad size
4105         clause.
4107 2009-05-06  Thomas Quinot  <quinot@adacore.com>
4109         * g-socthi-vms.adb (C_Recvmsg, C_Sendmsg): Convert Msg to appropriate
4110         packed type, since on OpenVMS, struct msghdr is packed.
4112 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
4114         * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
4115         call returning an unconstrained composite value, create the proper
4116         subtype for it, as is done for object dclarations with unconstrained
4117         nominal subtypes. Perform this transformation regarless of whether
4118         call comes from source.
4120 2009-05-06  Robert Dewar  <dewar@adacore.com>
4122         * freeze.adb (Freeze_Record_Type): Implement Implicit_Packing for
4123         records
4125         * gnat_rm.texi:
4126         Add documentation for pragma Implicit_Packing applied to record
4127         types.
4129 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
4131         * sem.adb (Walk_Library_Items): Place all with_clauses of an
4132         instantiation on the spec, because late instance bodies may generate
4133         with_clauses for the instance body but are inserted in the instance
4134         spec.
4136 2009-05-06  Emmanuel Briot  <briot@adacore.com>
4138         * prj-nmsc.adb (Locate_Directory): Remove unused parameters, and add
4139         support for returning the directory even if it doesn't exist. This is
4140         used for the object directory, since we are always setting it to a
4141         non-null value, and we should set it to an absolute name rather than a
4142         relative name for the sake of external tools that might depend on it.
4143         (Check_Library_Attributes): When Project.Library_Dir is known, check
4144         that the directory exists.
4146 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
4148         * sem_attr.adb (Check_Dereference): If the prefix of an attribute
4149         reference is an implicit dereference, do not freeze the designated type
4150         if within a default expression or when preanalyzing a pre/postcondtion.
4152 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
4154         * sem_ch8.adb (Analyze_Object_Renaming): If the object is a function
4155         call returning an unconstrained composite value, create the proper
4156         subtype for it, as is done for object dclarations with unconstrained
4157         nominal subtypes
4159 2009-05-06  Robert Dewar  <dewar@adacore.com>
4161         * sem_ch13.adb (Check_Constant_Address_Clause): Minor error message
4162         improvements
4164         * freeze.adb: Minor reformatting
4166 2009-05-06  Thomas Quinot  <quinot@adacore.com>
4168         * sem_ch3.adb (Access_Type_Declaration): An access type whose
4169         designated type is a limited view from a limited with clause (flagged
4170         From_With_Type) is not itself such a limited view.
4172 2009-05-06  Emmanuel Briot  <briot@adacore.com>
4174         * prj-nmsc.adb: Remove unused variable.
4176         * clean.adb, gnatcmd.adb, makeutl.ads, prj-pars.adb, prj-pars.ads,
4177         prj-proc.ads, prj.ads, switch-m.adb (Subdirs_Option): Moved to
4178         makeutl.ads, since not all users of prj.ads need this.
4180 2009-05-06  Javier Miranda  <miranda@adacore.com>
4182         * exp_aggr.adb (Build_Record_Aggr_Code): Add implicit call to the C++
4183         constructor in case of aggregates whose type is a CPP_Class type.
4185 2009-05-06  Robert Dewar  <dewar@adacore.com>
4187         * sem_ch13.adb: Minor comment additions
4189         * osint.adb: Minor reformatting
4191 2009-05-06  Pascal Obry  <obry@adacore.com>
4193         * initialize.c: On Windows, keep full pathname to expanded command
4194         line patterns.
4196 2009-05-06  Ed Schonberg  <schonberg@adacore.com>
4198         * sem_aggr.adb (Resolve_Record_Aggregate): If a defaulted component of
4199         an aggregate with box default is of a discriminated private type, do
4200         not build a subaggregate for it.
4201         A proper call to the initialization procedure is generated for it.
4203 2009-05-06  Thomas Quinot  <quinot@adacore.com>
4205         * rtsfind.adb, rtsfind.ads, exp_dist.adb, exp_dist.ads
4206         (Exp_Dist.Build_TC_Call, Build_From_Any_Call, Build_To_Any_Call):
4207         Use PolyORB strings to represent Ada.Strings.Unbounded_String value;
4208         use standard array code for Standard.String.
4209         (Exp_Dist): Bump PolyORB s-parint API version to 3.
4210         (Rtsfind): New entities TA_Std_String, Unbounded_String.
4212 2009-05-06  Robert Dewar  <dewar@adacore.com>
4214         * g-comlin.ads: Minor reformatting
4216         * xoscons.adb: Minor reformatting
4218 2009-05-06  Gary Dismukes  <dismukes@adacore.com>
4220         * sem_aggr.adb (Resolve_Record_Aggregate): In step 5, get the
4221         Underlying_Type before retrieving the type definition for gathering
4222         components, to account for the case where the type is private.
4224 2009-05-06  Tristan Gingold  <gingold@adacore.com>
4226         * g-comlin.ads: Fix minor typos (Getopt instead of Get_Opt).
4228 2009-05-06  Thomas Quinot  <quinot@adacore.com>
4230         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
4231         g-socthi-vxworks.ads, g-socthi-mingw.adb g-socthi-mingw.ads,
4232         g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb
4233         (GNAT.Sockets.Thin.C_Sendmsg, GNAT.Sockets.Thin.C_Recvmsg,
4234         Windows versions): Fix incorrect base
4235         address of Iovec (it's Msg_Iov, not Msg_Iov'Address).
4236         (GNAT.Sockets.Thin.C_Sendto, GNAT.Sockets.Thin.C_Recvfrom): Use a
4237         System.Address for the To parameter instead of a Sockaddr_In_Access, to
4238         achieve independance from AF_INET family, and also to allow this
4239         parameter to be retrieved from a Msghdr for the Windows case where
4240         these routines are used to implement C_Sendmsg and C_Recvmsg.
4242 2009-05-06  Bob Duff  <duff@adacore.com>
4244         * g-expect.adb, g-expect.ads: Minor reformatting
4246         * sdefault.ads: Minor comment fix
4248         * g-expect-vms.adb: Minor reformatting
4250         * table.ads, table.adb (Append_All): New convenience procedure for
4251         appending a whole array.
4253         * comperr.adb (Compiler_Abort): Mention the -gnatd.n switch in the bug
4254         box message. Call Osint.Dump_Source_File_Names to print out the file
4255         list, instead of rummaging around in various data structures.
4257         * debug.adb: New switch -gnatd.n, to print source file names as they
4258         are read.
4260         * alloc.ads: Add parameters for Osint.File_Name_Chars.
4262         * osint.ads, osint.adb (Dump_Source_File_Names): New procedure to print
4263         out source file names during a "bug box".
4264         (Include_Dir_Default_Prefix): Use memo-izing to avoid repeated new/free.
4265         (Read_Source_File): Print out the file name, if requested via -gnatd.n.
4266         If it's not part of the runtimes, store it for later printing by
4267         Dump_Source_File_Names.
4269 2009-05-06  Javier Miranda  <miranda@adacore.com>
4271         * gnat_rm.texi (CPP_Constructor): Avoid duplication of the
4272         documentation and add reference to the GNAT user guide for further
4273         details.
4275 2009-05-06  Javier Miranda  <miranda@adacore.com>
4277         * gnat_ugn.texi: Complete documentation for CPP_Constructor and remove
4278         also wrong examples that use extension aggregates.
4280 2009-05-06  Albert Lee  <lee@adacore.com>
4282         * s-oscons-tmplt.c (System.OS_Constants): Do not use special definition
4283         of Msg_Iovlen_T for VMS.
4285 2009-05-04   Laurent GUERBY  <laurent@guerby.net>
4287         PR ada/38874
4288         * make.adb (Scan_Make_Arg): Pass --param= to compiler and linker.
4289         
4290 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
4292         * sem_ch8.adb (Analyze_Subprogram_Renaming): Improve error message on
4293         box-defaulted operator in an instantiation, when the type of the
4294         operands is not directly visible.
4296 2009-04-29  Gary Dismukes  <dismukes@adacore.com>
4298         * sem_aggr.adb (Valid_Limited_Ancestor): Undo previous change.
4299         (Resolve_Extension_Aggregate): Call Check_Parameterless_Call after the
4300         analysis of the ancestor part. Remove prohibition against limited
4301         interpretations of the ancestor expression in the case of Ada 2005.
4302         Revise error message in overloaded case, adding a message to cover
4303         the Ada 2005 case.
4305 2009-04-29  Thomas Quinot  <quinot@adacore.com>
4307         * xoscons.adb: Minor reformatting
4309 2009-04-29  Bob Duff  <duff@adacore.com>
4311         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Do not ignore
4312         attribute_definition_clauses for the following attributes when the
4313         -gnatI switch is used: External_Tag, Input, Output, Read, Storage_Pool,
4314         Storage_Size, Write. Otherwise, we get spurious errors (for example,
4315         missing Read attribute on remote types).
4317         * gnat_ugn.texi: Document the change, and add a stern warning.
4319 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
4321         * sem_attr.adb (Check_Local_Access): Indicate that value tracing is
4322         disabled not just for the current scope, but for the innermost dynamic
4323         scope as well.
4325 2009-04-29  Arnaud Charlet  <charlet@adacore.com>
4327         * gcc-interface/Make-lang.in: Update dependencies
4329 2009-04-29  Vincent Celier  <celier@adacore.com>
4331         * prj-part.adb: Minor comment update
4333 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
4335         * sem_aggr.adb (Resolve_Record_Aggregate): handle properly
4336         box-initialized records with discriminated subcomponents that are
4337         constrained by discriminants of enclosing components. New subsidiary
4338         procedures Add_Discriminant_Values, Propagate_Discriminants.
4340 2009-04-29  Arnaud Charlet  <charlet@adacore.com>
4342         * g-socket.adb: Code clean up.
4344 2009-04-29  Gary Dismukes  <dismukes@adacore.com>
4346         * sem_aggr.adb (Valid_Limited_Ancestor): Add test for the name of a
4347         function entity, to cover the case of a parameterless function call
4348         that has not been resolved.
4350 2009-04-29  Robert Dewar  <dewar@adacore.com>
4352         * err_vars.ads, prj-part.adb, scans.ads, exp_tss.adb: Minor
4353         reformatting and comment updates.
4355 2009-04-29  Arnaud Charlet  <charlet@adacore.com>
4357         * gnat_ugn.texi: Update some documentation about interfacing with C++
4358         Mention -fkeep-inline-functions.
4360         * gnat_ugn.texi: Minor edits
4362 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
4364         * sem_aggr.adb (Resolve_Record_Aggregate): When building an aggregate
4365         for a defaulted component of an enclosing aggregate, inherit the type
4366         from the component declaration of the enclosing type. 
4368 2009-04-29  Albert Lee  <lee@adacore.com>
4370         * g-socthi-vms.ads, g-socthi-vxworks.ads, s-oscons-tmplt.c,
4371         g-socthi-mingw.ads, g-socthi.ads, g-socket.adb, g-sothco.ads
4372         (System.OS_Constants): New type Msg_Iovlen_T which follows whether the
4373         msg_iovlen field in struct msghdr is 32 or 64 bits wide.
4374         Relocate the Msghdr record type from GNAT.Sockets.Thin to
4375         GNAT.Sockets.Common, and use System.OS_Constants.Msg_Iovlen_T as the
4376         type for the Msg_Iovlen field.
4378 2009-04-29  Vincent Celier  <celier@adacore.com>
4380         * sinput-l.adb (Load_File): When preprocessing, set temporarily the
4381         Source_File_Index_Table entries for the source, to avoid crash when
4382         reporting an error.
4384         * gnatcmd.adb (Test_If_Relative_Path): Use
4385         Makeutl.Test_If_Relative_Path.
4386         
4387         * makeutl.adb:(Test_If_Relative_Path): Process switches --RTS= only if
4388         Including_RTS is True.
4390         * makeutl.ads (Test_If_Relative_Path): New Boolean parameter
4391         Including_RTS defaulted to False.
4393         * sinput.ads, scans.ads, err_vars.ads: Initialize some variables with
4394         a default value.
4396 2009-04-29  Javier Miranda  <miranda@adacore.com>
4398         * gnat_ugn.texi: Adding documentation for non-default C++ constructors.
4400 2009-04-29  Javier Miranda  <miranda@adacore.com>
4402         * sem_ch3.adb (Analyze_Object_Declaration): Disable error message
4403         associated with dyamically tagged expressions if the expression
4404         initializing a tagged type corresponds with a non default CPP
4405         constructor.
4406         (OK_For_Limited_Init): CPP constructor calls are OK for initialization
4407         of limited type objects.
4409         * sem_ch5.adb (Analyze_Assignment): Improve the error message reported
4410         when a CPP constructor is called in an assignment. Disable also the
4411         error message associated with dyamically tagged expressions if the
4412         exporession initializing a tagged type corresponds with a non default
4413         CPP constructor.
4415         * sem_prag.adb (Analyze_Pragma): Remove code disabling the use of
4416         non-default C++ constructors.
4418         * sem_util.ads, sem_util.adb (Is_CPP_Constructor_Call): New subprogram.
4420         * exp_tss.ads, exp_tss.adb (Base_Init_Proc): Add support for
4421         non-default constructors.
4422         (Init_Proc): Add support for non-default constructors.
4424         * exp_disp.adb (Set_Default_Constructor): Removed.
4425         (Set_CPP_Constructors): Code based in removed Set_Default_Constructor
4426         but extending its functionality to handle non-default constructors.
4428         * exp_aggr.adb (Build_Record_Aggr_Code): Add support for non-default
4429         constructors. Minor code cleanup removing unrequired label and goto
4430         statement.
4432         * exp_ch3.adb (Build_Initialization_Call): Add support for non-default
4433         constructors.
4434         (Build_Init_Statements): Add support for non-default constructors.
4435         (Expand_N_Object_Declaration): Add support for non-default constructors.
4436         (Freeze_Record_Type): Replace call to Set_Default_Constructor by call
4437         to Set_CPP_Constructors.
4439         * exp_ch5.adb (Expand_N_Assignment_Statement): Add support for
4440         non-default constructors.
4441         Required to handle its use in build-in-place statements.
4443         * gnat_rm.texi (CPP_Constructor): Document new extended use of this
4444         pragma for non-default C++ constructors and the new compiler support
4445         that allows the use of these constructors in record components, limited
4446         aggregates, and extended return statements.
4448 2009-04-29  Vincent Celier  <celier@adacore.com>
4450         * prj-part.adb (Parse_Single_Project): Do not attempt to find a
4451         project extending an abstract project.
4453 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
4455         * targparm.ads: Fix oversight.
4457 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
4459         * lib-xref.adb (Output_Overridden_Op): Follow several levels of
4460         derivation when necessary, to find the user-subprogram that is actally
4461         being overridden.
4463 2009-04-29  Robert Dewar  <dewar@adacore.com>
4465         * sem_util.adb (May_Be_Lvalue): Fix cases involving indexed/selected
4466         components
4468 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
4470         * exp_ch9.ads, exp_ch9.adb (Build_Wrapper_Spec): Use source line of
4471         primitive operation, rather than source line of synchronized type, when
4472         building the wrapper for a primitive operation that overrides an
4473         operation inherited from a progenitor, to improve the error message on
4474         duplicate declarations.
4476         * sem_ch3.adb (Process_Full_View): Use new signature of
4477         Build_Wrapper_Spec.
4479 2009-04-29  Robert Dewar  <dewar@adacore.com>
4481         * prj-nmsc.ads: Minor reformatting
4483 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
4485         * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of the
4486         expression on the existing parent If statement.
4488 2009-04-29  Robert Dewar  <dewar@adacore.com>
4490         * prj-proc.adb, prj.ads: Minor reformatting
4492 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
4494         * exp_ch4.adb (Expand_N_Conditional_Expression): Set the SLOC of an
4495         existing parent If statement on the newly created one.
4497 2009-04-29  Emmanuel Briot  <briot@adacore.com>
4499         * gnatcmd.adb, prj-proc.adb, prj-proc.ads, make.adb, prj-part.adb,
4500         prj-part.ads, prj.adb, prj.ads, clean.adb, prj-dect.adb, prj-dect.ads,
4501         prj-nmsc.adb, prj-nmsc.ads, prj-pars.adb, prj-pars.ads, prj-makr.adb
4502         (Set_In_Configuration, In_Configuration): Removed.
4503         Replaced by an extra parameter Is_Config_File in several parameter to
4504         avoid global variables to store the state of the parser.
4506 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
4508         * sinfo.ads, sinfo.adb: New attribute Next_Implicit_With, to chain
4509         with_clauses generated for the same unit through rtsfind, and that
4510         appear in the context of different units.
4512         * rtsfind.adb: New attribute First_Implicit_With, component of the
4513         Unit_Record that stores information about a unit loaded through rtsfind.
4515 2009-04-29  Gary Dismukes  <dismukes@adacore.com>
4517         * exp_ch3.adb (Stream_Operation_OK): Return True for limited interfaces
4518         (other conditions permitting), so that abstract stream subprograms will
4519         be declared for them.
4521 2009-04-29  Bob Duff  <duff@adacore.com>
4523         * g-expect.adb (Expect_Internal): Fix check for overfull buffer.
4525         * g-expect.ads: Minor comment fixes.
4527 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
4529         * freeze.adb, lib-xref.adb (Check_Dispatching_Operation): if the
4530         dispatching operation is a body without previous spec, update the list
4531         of primitive operations to ensure that cross-reference information is
4532         up-to-date.
4534 2009-04-29  Albert Lee  <lee@adacore.com>
4536         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
4537         g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
4538         g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads
4539         (GNAT.Sockets.Thin.C_Readv,
4540         GNAT.Sockets.Thin.C_Writev): Remove unused subprograms.
4541         (GNAT.Sockets.Thin.C_Recvmsg,
4542         GNAT.Sockets.Thin.C_Sendmsg): New bindings to call recvmsg(2) and
4543         sendmsg(2).  
4544         (GNAT.Sockets.Receive_Vector, GNAT.Sockets.Send_Vector): Use
4545         C_Recvmsg/C_Sendmsg rather than Readv/C_Writev.
4547 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
4549         * sem_disp.adb (Check_Dispatching_Operation): if the dispatching
4550         operation is a body without previous spec, update the list of
4551         primitive operations to ensure that cross-reference information is
4552         up-to-date.
4554         * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): When creating a
4555         new compilation unit node for the instance declaration, keep the
4556         context items of the original unit on it, so that the context of the
4557         instance body only holds the context inherited from the generic body.
4559 2009-04-29  Bob Duff  <duff@adacore.com>
4561         * sem_res.adb: Minor comment fix.
4563 2009-04-29  Thomas Quinot  <quinot@adacore.com>
4565         * sem_elim.adb: Minor reformatting
4567 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
4569         * exp_aggr.adb (Convert_To_Positional): if the current unit is a
4570         predefined unit, allow arbitrary number of components in static
4571         aggregate, to ensure that the same level of constant folding applies
4572         for Ada 95 and Ada 05 versions of the file.
4574 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
4576         * sem_elim.adb (Check_Eliminated): Handle new improved eliminate
4577         information: no need for full scope check.
4578         (Eliminate_Error): Do not emit error in a generic context.
4580 2009-04-29  Ed Falis  <falis@adacore.com>
4582         * adaint.c (__gnat_rmdir): return error code if VTHREADS is defined.
4583         VxWorks 653 POS does not support rmdir.
4585 2009-04-29  Matteo Bordin  <bordin@adacore.com>
4587         * s-stausa.adb, s-stausa.ads: Get_Usage_Range: changing the way
4588         results are printed.
4590 2009-04-29  Arnaud Charlet  <charlet@adacore.com>
4592         * s-taskin.adb (Initialize): Remove pragma Warnings Off and remove
4593         unused assignment.
4595 2009-04-29  Thomas Quinot  <quinot@adacore.com>
4597         * make.adb: Minor reformatting.
4598         Minor code reorganization throughout.
4600 2009-04-29  Matteo Bordin  <bordin@adacore.com>
4602         * s-stausa.ads: Changed visibility of type Task_Result: moved to
4603         public part to give application visibility over it.
4604         This is for future improvement and to build a public API on top of it.
4605         Changed record components name of type Task_Result to reflect the new
4606         way of reporting. 
4608         * s-stausa.adb: Actual_Size_Str changed to reflect the new way of
4609         reporting Stack usage.
4611         * gnat_ugn.texi: Update doc of stack usage report.
4613         * g-tastus.ads, s-stusta.ads, s-stusta.adb: New files.
4615         * Makefile.rtl: Add new run-time files.
4617 2009-04-29  Pascal Obry  <obry@adacore.com>
4619         * initialize.c: Do not expand quoted arguments.
4621 2009-04-29  Emmanuel Briot  <briot@adacore.com>
4623         * prj-ext.adb, prj.adb, prj.ads: Fix memory leaks.
4625         * clean.adb (Ultimate_Extension_Of): removed, since duplicate of
4626          Prj.Ultimate_Extending_Project_Of
4628 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
4630         * exp_ch7.adb (Build_Final_List): If the designated type is a Taft
4631         Amendment type, add the with_clause for Finalization.List_Controller
4632         only if the current context is a package body.
4634 2009-04-29  Thomas Quinot  <quinot@adacore.com>
4636         * sem_ch12.adb: Minor reformatting
4638         * sem_aggr.adb: Minor reformatting
4640         * sem_ch6.adb, sem_cat.ads: Minor reformatting
4642         * sem_ch10.adb, gnat1drv.adb, prj-nmsc.adb: Minor reformatting
4644 2009-04-29  Quentin Ochem  <ochem@adacore.com>
4646         * prj.ads (Source_Id): Now general pointer type.
4648 2009-04-29  Thomas Quinot  <quinot@adacore.com>
4650         * exp_ch7.adb, rtsfind.adb: Minor reformatting
4652         * sem_res.adb: Minor reformatting
4654 2009-04-29  Thomas Quinot  <quinot@adacore.com>
4656         * sem_res.adb (Static_Concatenation): An N_Op_Concat with static
4657         operands is static only if it is a predefined concatenation operator.
4659         * sem_util.adb: Minor reformatting
4661         * sem_ch12.adb (Save_References): When propagating semantic information
4662         from generic copy back to generic template, for the case of an
4663         identifier that has been rewritten to an explicit dereference whose
4664         prefix is either an object name or a parameterless funcion call
4665         denoting a global object or function, properly capture the denoted
4666         global entity: perform the corresponding rewriting in the template,
4667         and point the rewritten identifier to the correct global entity (not
4668         to the associated identifier in the generic copy).
4670 2009-04-29  Robert Dewar  <dewar@adacore.com>
4672         * rtsfind.adb, prj-env.adb: Minor reformatting
4673         Minor code reorganization
4675 2009-04-29  Emmanuel Briot  <briot@adacore.com>
4677         * make.adb: Fix comment
4679         * prj.adb (Ultimate_Extending_Project_Of): Fix handling when no project
4680         is given as argument, as might happen in gnatmake.
4682 2009-04-29  Ed Schonberg  <schonberg@adacore.com>
4684         * sem_ch3.adb (Check_Abstract_Overriding): Improve error message when
4685         an abstract operation of a progenitor is not properly overridden by an
4686         operation of a derived synchronized type.
4688 2009-04-29  Robert Dewar  <dewar@adacore.com>
4690         * mlib-prj.adb, mlib-tgt.adb, mlib-tgt.ads, prj-nmsc.adb,
4691         prj-proc.adb: Minor reformatting
4692         Minor code reorganization
4694 2009-04-29  Bob Duff  <duff@adacore.com>
4696         * exp_ch7.adb (Build_Final_List): For an access type that designates a
4697         Taft Amendment type, if the access type needs finalization, make sure
4698         the implicit with clause for List_Controller occurs on the package spec.
4700         * rtsfind.adb (Text_IO_Kludge): Fine tune the creation of implicit
4701         with's created for the pseudo-children of Text_IO and friends. In
4702         particular, avoid cycles, such as Ada.Wide_Text_IO.Integer_IO and
4703         Ada.Text_IO.Integer_IO both with-ing each other.
4705         * sem.adb (Walk_Library_Items): Suppress assertion failure in certain
4706         oddball cases when pragma Extend_System is used.
4708         * sem_ch12.adb (Get_Associated_Node): Prevent direct 'with' cycles in
4709         the case where a package spec instantiates a generic whose body with's
4710         this package, so Walk_Library_Items won't complain about cyclic with's.
4712 2009-04-29  Emmanuel Briot  <briot@adacore.com>
4714         * gnatcmd.adb, prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads,
4715         prj-pp.adb, prj-pp.ads, makeutl.adb, clean.adb, prj-nmsc.adb,
4716         mlib-tgt.adb, mlib-tgt.ads, prj-util.adb, prj-env.adb, prj-env.ads
4717         (Project_Id): now a real pointer to Project_Data, instead of an index
4718         into the Projects_Table. This simplifies the API significantly, avoiding
4719         extra lookups in this table and the need to pass the Project_Tree_Ref
4720         parameter in several cases
4722 2009-04-29  Nicolas Setton  <setton@adacore.com>
4724         * gcc-interface/Makefile.in: Produce .dSYM files for shared libs on
4725         darwin.
4727 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
4729         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Put
4730         back kludge.
4732 2009-04-24  Robert Dewar  <dewar@adacore.com>
4734         * mlib-prj.adb, prj-env.adb, prj-nmsc.adb, prj-proc.adb, make.adb,
4735         clean.adb: Minor reformatting.
4736         Minor code reorganization and message improvement.
4738 2009-04-24  Emmanuel Briot  <briot@adacore.com>
4740         * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-nmsc.ads
4741         (Alternate_Languages): now implemented as a malloc-ed list rather
4742         than through a table.
4744 2009-04-24  Thomas Quinot  <quinot@adacore.com>
4746         * sem_res.adb (Static_Concatenation): Simplify predicate to make it
4747         accurately handle cases such as "lit" & "lit" and
4748         "lit" & static_string_constant
4750 2009-04-24  Emmanuel Briot  <briot@adacore.com>
4752         * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, clean.adb,
4753         prj-nmsc.adb, prj-env.adb (Project_List_Table, Project_Element):
4754         removed. Lists of projects are now implemented via standard malloc
4755         rather than through the table.
4757 2009-04-24  Thomas Quinot  <quinot@adacore.com>
4759         * sem_ch12.adb: Minor reformatting
4761         * g-trasym.adb: Minor reformatting
4763         * exp_ch6.adb: Minor reformatting
4765 2009-04-24  Robert Dewar  <dewar@adacore.com>
4767         * layout.adb (Layout_Type): For packed array type, copy unset
4768         size/alignment fields from the referenced Packed_Array_Type.
4770 2009-04-24  Bob Duff  <duff@adacore.com>
4772         * lib-load.adb (Make_Instance_Unit): Revert previous change, no
4773         longer needed after sem_ch12 changes.
4775         * sem.adb (Walk_Library_Items): Include with's in some debugging
4776         printouts.
4778 2009-04-24  Emmanuel Briot  <briot@adacore.com>
4780         * prj.ads, prj-nmsc.adb (Unit_Project): removed, since in fact we were
4781         only ever using the Project field.
4783 2009-04-24  Ed Schonberg  <schonberg@adacore.com>
4785         * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Do not set
4786         Body_Required on the generated compilation node. The new node is linked
4787         to its body, but both share the same file, so we do not set this flag
4788         on the new unit so as not to create a spurious dependency on a
4789         non-existent body in the ali file for the instance.
4791 2009-04-24  Robert Dewar  <dewar@adacore.com>
4793         * make.adb: Minor reformatting
4795 2009-04-24  Emmanuel Briot  <briot@adacore.com>
4797         * prj.adb, prj.ads, prj-nmsc.adb (Check_File, Record_Ada_Source,
4798         Add_Source): merge some code between those. In particular change where
4799         file normalization is done to avoid a few extra calls to
4800         Canonicalize_File_Name. This also removes the need for passing
4801         Current_Dir in a number of subprograms.
4803 2009-04-24  Bob Duff  <duff@adacore.com>
4805         * lib-load.adb (Make_Instance_Unit): In the case where In_Main is
4806         False, assign the correct unit to the Cunit field of the new table
4807         entry. We want the spec unit, not the body unit.
4809         * rtsfind.adb (Make_Unit_Name, Maybe_Add_With): Simplify calling
4810         interface for these.
4811         (Maybe_Add_With): Check whether we're trying to a with on the current
4812         unit, and avoid creating such directly self-referential with clauses.
4813         (Text_IO_Kludge): Add implicit with's for the generic pseudo-children of
4814         [[Wide_]Wide_]Text_IO. These are needed for Walk_Library_Items,
4815         and matches existing comments in the spec.
4817         * sem.adb (Walk_Library_Items): Add various special cases to make the
4818         assertions pass.
4820         * sem_ch12.adb (Build_Instance_Compilation_Unit_Nodes): Use Body_Cunit
4821         instead of Parent (N), for uniformity.
4823 2009-04-24  Robert Dewar  <dewar@adacore.com>
4825         * errout.ads: Minor reformatting
4827 2009-04-24  Emmanuel Briot  <briot@adacore.com>
4829         * gnat_ugn.texi (Library Projects): add documentation on gnatmake's
4830         behavior when the project includes sources from multiple languages
4832 2009-04-24  Vincent Celier  <celier@adacore.com>
4834         * prj.adb (Has_Foreign_Sources): Returns True in Ada_Only mode if there
4835         is a language other than Ada declared.
4837         * makeutl.adb (Linker_Options_Switches): Call For_All_Projects with
4838         Imported_First set to True.
4840 2009-04-24  Ed Schonberg  <schonberg@adacore.com>
4842         * sem_res.adb: additional optimization to inhibit creation of
4843         redundant transient scopes.
4845 2009-04-24  Bob Duff  <duff@adacore.com>
4847         * rtsfind.ads: Minor comment fix
4849 2009-04-24  Emmanuel Briot  <briot@adacore.com>
4851         * prj-proc.adb, prj-nmsc.adb (Find_Ada_Sources,
4852         Get_Path_Name_And_Record_Ada_Sources): merged, since these were
4853         basically doing the same work (for explicit or implicit sources).
4854         (Find_Explicit_Sources): renamed to Find_Sources to better reflect its
4855         role. Rewritten to share some code (testing that all explicit sources
4856         have been found) between ada_only and multi_language modes.
4858 2009-04-24  Jerome Lambourg  <lambourg@adacore.com>
4860         * sem_prag.adb (Check_Form_Of_Interface_Name): Allow space in Ext_Name
4861         for CLI imported types.
4862         (Analyze_Pragma): Allow CIL or Java imported functions returning
4863         access-to-subprogram types.
4865 2009-04-24  Emmanuel Briot  <briot@adacore.com>
4867         * make.adb, prj.adb, prj.ads, makeutl.adb, makeutl.ads:
4868         (Project_Data.Dir_Path): field removed, since it can be computed
4869         directly from .Directory, and is needed only once when processing the
4870         project is buildgpr.adb or make.adb
4872 2009-04-24  Robert Dewar  <dewar@adacore.com>
4874         * prj-env.adb, prj-proc.adb, prj.adb, prj.ads,
4875         rtsfind.adb: Minor reformatting.
4876         Minor code reorganization
4878 2009-04-24  Arnaud Charlet  <charlet@adacore.com>
4880         * mlib-prj.adb: Use friendlier english identifier.
4882         * gnatcmd.adb, make.adb: Use better english identifiers.
4884 2009-04-24  Robert Dewar  <dewar@adacore.com>
4886         * clean.adb: Minor reformatting
4888 2009-04-24  Robert Dewar  <dewar@adacore.com>
4890         * einfo.adb (OK_To_Rename): New flag
4892         * einfo.ads (OK_To_Rename): New flag
4894         * exp_ch3.adb (Expand_N_Object_Declaration): Rewrite as renames if
4895         OK_To_Rename set.
4897         * exp_ch4.adb (Expand_Concatenate): Mark temp variable OK_To_Rename
4899         * sem_ch7.adb (Uninstall_Declarations): Allow for renames from
4900         OK_To_Rename.
4902 2009-04-24  Emmanuel Briot  <briot@adacore.com>
4904         * prj-proc.adb, make.adb, mlib-prj.adb, prj.adb, prj.ads, makeutl.adb,
4905         clean.adb, prj-nmsc.adb, prj-env.adb, prj-env.ads (Project_Data.Seen):
4906         field removed. This is not a property of the
4907         project, just a boolean used to traverse the project tree, and storing
4908         it in the structure prevents doing multiple traversal in parallel.
4909         (Project_Data.Checked): also removed, since it was playing the same role
4910         as Seen when we had two nested loops, and this is no longer necessary
4911         (For_All_Imported_Projects): removed, since in fact there was already
4912         the equivalent in For_Every_Project_Imported. The latter was rewritten
4913         to use a local hash table instead of Project_Data.Seen
4914         Various loops were rewritten to use For_Every_Project_Imported, thus
4915         removing the need for Project_Data.Seen. This avoids a lot of code
4916         duplication
4918 2009-04-24  Ed Schonberg  <schonberg@adacore.com>
4920         * sem_res.adb (Resolve_Actuals): Do not create blocks around code
4921         statements, even though the actual of the call is a concatenation,
4922         because the argument is static, and we want to preserve warning
4923         messages  about sequences of code statements that are not marked
4924         volatile.
4926         * sem_warn.adb: remove obsolete comment about warning being obsolete
4928         * s-tasren.adb (Task_Do_Or_Queue): If a timed entry call is being
4929         requeued and the delay has expired while within the accept statement
4930         that executes the requeue, do not perform the requeue and indicate that
4931         the timed call has been aborted.
4933 2009-04-24  Emmanuel Briot  <briot@adacore.com>
4935         * mlib-prj.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
4936         (Has_Ada_Sources, Has_Foreign_Sources): new subprograms
4937         (Project_Data.Ada_Sources_Present, Foreign_Sources_Present): removed,
4938         since they can be computed from the above.
4940 2009-04-24  Vincent Celier  <celier@adacore.com>
4942         * gnatcmd.adb: Call Prj.Env.Initialize with the Project_Tree
4944         * prj-env.adb: Move all global variables to the private part of the
4945         project tree data.
4946         Access these new components instead of the global variables no longer
4947         in existence.
4948         (Add_To_Path): New Project_Tree_Ref parameter, to access the new
4949         components that were previously global variables.
4951         * prj-env.ads (Initialize): New Project_Tree_Ref parameter
4952         (Set_Mapping_File_Initial_State_To_Empty): New Project_Tree_Ref
4953         parameter.
4955         * prj-nmsc.adb (Compute_Unit_Name): New Project_Tree_Ref parameter to
4956         be able to call Set_Mapping_File_Initial_State_To_Empty with it.
4958         * prj.adb (Initialize): Do not call Prj.Env.Initialize
4959         (Reset): Do not call Prj.Env.Initialize. Instead, initialize the new
4960         components in the private part of the project tree data.
4962         * prj.ads (Private_Project_Tree_Data): new components moved from
4963         Prj.Env: Current_Source_Path_File, Current_Object_Path_File,
4964         Ada_Path_Buffer, Ada_Path_Length, Ada_Prj_Include_File_Set,
4965         Ada_Prj_Objects_File_Set, Fill_Mapping_File.
4967 2009-04-24  Vincent Celier  <celier@adacore.com>
4969         * opt.ads (Unchecked_Shared_Lib_Imports): New Boolean flag.
4971         * prj-nmsc.adb (Check_Library): No error for imports by shared library
4972         projects, when --unchecked-shared-lib-imports is used.
4974 2009-04-24  Robert Dewar  <dewar@adacore.com>
4976         * sem_ch7.adb: Minor reformatting
4978 2009-04-24  Tristan Gingold  <gingold@adacore.com>
4980         * s-osinte-darwin.adb, s-osinte-darwin.ads: lwp_self now returns the
4981         mach thread id.
4983 2009-04-24  Emmanuel Briot  <briot@adacore.com>
4985         * prj-env.adb, prj-env.ads (Body_Path_Name_Of, Spec_Path_Name_Of,
4986         Path_Name_Of_Library_Unit_Body): rEmove unused subprograms.
4987         (For_All_Imported_Projects): new procedure
4988         (For_All_Source_Dirs, For_All_Object_Dirs): Rewritten based on the
4989         above rather than duplicating code.
4991 2009-04-24  Emmanuel Briot  <briot@adacore.com>
4993         * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
4994         (Source_Id, Source_Data): use a real list to store sources rather than
4995         using an external table to store the elements. This makes code more
4996         efficient and more readable.
4998 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5000         * prj-proc.adb, prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb
5001         (Source_Iterator): new type.
5002         This removes the need for having the sources on three different
5003         lists at the project tree, project and language level. They are now
5004         on a single list.
5006 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5008         * gnatcmd.adb, prj.adb, prj.ads: Remove unused entities
5010 2009-04-24  Ed Schonberg  <schonberg@adacore.com>
5012         * sem_warn.adb: Add comment on obsolete warning
5014 2009-04-24  Arnaud Charlet  <charlet@adacore.com>
5016         * s-tassta.adb (Create_Task): Fix violation of locking rule.
5018 2009-04-24  Emmanuel Briot  <briot@adacore.com>
5020         * prj.adb, prj.ads, prj-nmsc.adb, prj-env.adb (Language_Index): renamed
5021         to Language_Ptr to better reflect its new implementation.
5022         (Project_Data.First_Languages_Processing): renamed to Languages now
5023         that the field with that name is no longer used
5024         (Project_Data.Languages): removed, no longer used, and duplicates
5025         information already available through First_Language_Processing.
5026         (Prj.Language_Index): now an actual pointer, instead of an index into
5027         a table. This makes the list somewhat more obvious, but more importantly
5028         removes the need to pass a pointer to the project_tree_data in a few
5029         places, and makes accessing the attributes of a languages more
5030         efficient.
5032 2009-04-24  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5033             Thomas Quinot  <quinot@adacore.com>
5035         * fe.h (Set_Identifier_Casing): Add const to second parameter.
5036         * gcc-interface/misc.c (internal_error_function): Make copy of return
5037         from pp_formatted_text before assigning BUFFER to it.
5038         (gnat_init): Likewise for main_input_filename and gnat_argv.
5039         (gnat_printable_name): Remove cast from call to Set_Identifier_Casing.
5041 2009-04-24  Eric Botcazou  <ebotcazou@adacore.com>
5043         * ttypes.ads (Target_Double_Float_Alignment): New variable.
5044         (Target_Double_Scalar_Alignment): Likewise.
5045         * get_targ.ads (Get_Strict_Alignment): Adjust external name.
5046         (Get_Double_Float_Alignment): New imported function.
5047         (Get_Double_Scalar_Alignment): Likewise.
5048         * layout.adb (Set_Elem_Alignment): Take into account specific caps for
5049         the alignment of "double" floating-point types and "double" or larger
5050         scalar types, as parameterized by Target_Double_Float_Alignment and
5051         Target_Double_Scalar_Alignment respectively.
5052         * gcc-interface/gigi.h (double_float_alignment): Declare.
5053         (double_scalar_alignment): Likewise.
5054         (is_double_float_or_array): Likewise.
5055         (is_double_scalar_or_array): Likewise.
5056         (get_target_double_float_alignment): Likewise.
5057         (get_target_double_scalar_alignment): Likewise.
5058         * gcc-interface/targtyps.c (get_strict_alignment): Rename into...
5059         (get_target_strict_alignment): ...this.
5060         (get_target_double_float_alignment): New function.
5061         (get_target_double_scalar_alignment): Likewise.
5062         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
5063         Test the presence of an alignment clause for under-aligned integer
5064         types.  Take into account specific caps for the alignment of "double"
5065         floating-point types and "double" or larger scalar types, as
5066         parameterized by Target_Double_Float_Alignment and
5067         Target_Double_Scalar_Alignment respectively.
5068         (validate_alignment): Likewise.
5069         * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Alignment>: Likewise.
5070         (gigi): Initialize double_float_alignment and double_scalar_alignment.
5071         * gcc-interface/utils.c (double_float_alignment): New global variable.
5072         (double_scalar_alignment): Likewise.
5073         (is_double_float_or_array): New predicate.
5074         (is_double_scalar_or_array): Likewise.
5076 2009-04-24  Eric Botcazou  <ebotcazou@adacore.com>
5078         * gcc-interface/utils2.c (build_cond_expr): Move SAVE_EXPR ahead of
5079         the conditional expression only if it is common to both arms.
5081 2009-04-24  Eric Botcazou  <ebotcazou@adacore.com>
5083         * gcc-interface/gigi.h (build_call_alloc_dealloc): Update comment.
5084         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Pass correct
5085         arguments to build_allocator.
5086         * gcc-interface/utils2.c (build_call_alloc_dealloc): Update comment.
5087         Remove code handling special allocator and assert its uselessness.
5089 2009-04-24  Eric Botcazou  <ebotcazou@adacore.com>
5091         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: If an
5092         alignment is specified, do not promote that of the component type
5093         beyond it.
5094         <E_Array_Subtype>: Likewise.
5096 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
5098         * einfo.ads (Is_True_Constant): Lift restriction on atomic objects.
5099         * sinfo.ads (Object Declaration): Likewise.
5100         (Assignment Statement): Likewise.
5101         * freeze.adb (Expand_Atomic_Aggregate): Remove useless test.
5102         Do not force Is_True_Constant to false on the temporary.
5103         (Freeze_Entity): Do not force Is_True_Constant to false on names on
5104         the RHS of object declarations.
5105         * gcc-interface/trans.c (lvalue_required_p) <N_Object_Declaration>:
5106         New case.  Return 1 if the object is atomic.
5107         <N_Assignment_Statement>: Likewise.
5109 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
5111         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
5112         For packed array types, make the original array type a parallel type
5113         for the modular type and its JM wrapper if the type is bit-packed.
5114         <E_Array_Subtype>: Likewise.  Do not generate the special XA parallel
5115         record type for packed array types.  Remove kludge.
5117 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
5119         * gcc-interface/gigi.h (create_index_type): Adjust head comment.
5120         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
5121         Use front-end predicates to compute signedness and precision.
5122         <E_String_Literal_Subtype>: Fold range type.
5123         Make sure to set longest_float_type_node to a scalar type.
5124         (elaborate_entity): Use consistent Constraint_Error spelling.
5125         (substitute_in_type) <INTEGER_TYPE>: Always copy the type.
5126         * gcc-interface/misc.c (gnat_print_type) <INTEGER_TYPE>: Use brief
5127         output for the modulus, if any.
5128         <ENUMERAL_TYPE>: Likewise for the RM size.
5129         * gcc-interface/trans.c (gnat_to_gnu): Use consistent Constraint_Error
5130         spelling.
5131         * gcc-interface/utils.c (finish_record_type): Really test the alignment
5132         of BLKmode bit-fields to compute their addressability.
5133         (create_index_type): Adjust comments.
5134         (create_param_decl): Create the biased subtype manually.
5135         * gcc-interface/utils2.c (build_component_ref): Use consistent
5136         Constraint_Error spelling.
5138 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
5140         * gcc-interface/cuintp.c: Clean up include directives.
5141         * gcc-interface/targtyps.c: Likewise.
5142         * gcc-interface/decl.c: Likewise.
5143         * gcc-interface/misc.c: Likewise.
5144         * gcc-interface/trans.c: Likewise.
5145         * gcc-interface/utils.c: Likewise.
5146         * gcc-interface/utils2.c: Likewise.
5147         * gcc-interface/Make-lang.in: Adjust dependencies accordingly.
5149 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
5151         * gcc-interface/ada-tree.h (union lang_tree_node): Use standard idiom.
5152         (SET_TYPE_LANG_SPECIFIC): Likewise.  Fix formatting.
5153         (SET_DECL_LANG_SPECIFIC): Likewise.
5154         Reorder macros.
5155         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
5156         Update comment about use of build_range_type.
5157         <E_Array_Type, E_Array_Subtype>: Use consistent naming convention.
5158         <E_Array_Subtype>: Rework comments about TYPE_ACTUAL_BOUNDS and add
5159         check for other cases of overloading.
5160         * gcc-interface/trans.c (gigi): Use size_int in lieu of build_int_cst.
5161         * gcc-interface/utils2.c (build_call_raise): Fix off-by-one error.
5162         Use size_int in lieu of build_int_cst.
5163         (build_call_alloc_dealloc): Use build_index_2_type in lieu of
5164         build_range_type.
5166 2009-04-22  Eric Botcazou  <ebotcazou@adacore.com>
5168         * gcc-interface/utils2.c (build_binary_op) <PLUS_EXPR>: If operation's
5169         type is an enumeral or a boolean type, change it to an integer type
5170         with the same mode and signedness.
5172 2009-04-22  Eric Botcazou  <ebotcazou@adacore.com>
5174         * gcc-interface/utils.c (create_var_decl_1): Do not emit debug info
5175         for an external constant whose initializer is not absolute.
5177 2009-04-22  Taras Glek  <tglek@mozilla.com>
5179         * gcc-interface/ada-tree.h: Update GTY annotations to new syntax.
5180         * gcc-interface/trans.c: Likewise.
5181         * gcc-interface/utils.c: Likewise.
5183 2009-04-22  Ed Schonberg  <schonberg@adacore.com>
5185         * sem_res.adb: Create block around procedure call when actual is a
5186         concatenation.
5188 2009-04-22  Thomas Quinot  <quinot@adacore.com>
5190         * s-soflin.ads: Fix typos
5192 2009-04-22  Vincent Celier  <celier@adacore.com>
5194         * prj-env.adb: Minor comment change
5196         * prj-nmsc.adb (Check_Common): Add guard to avoid calling
5197         Get_Name_String with No_File.
5199         * tempdir.adb (Create_Temp_File): Output diagnostic when temp file
5200         cannot be created even when not in verbose mode.
5202 2009-04-22  Emmanuel Briot  <briot@adacore.com>
5204         * make.adb, prj-env.adb, prj-env.ads, prj-nmsc.adb, prj.adb,
5205         prj.ads (Create_Mapping_File): merge the two versions for Ada_Only and
5206         Multi_Language modes, to avoid code duplication.
5207         (Project_Data.Include_Language): Removed.
5209 2009-04-22  Vincent Celier  <celier@adacore.com>
5211         * tempdir.adb (Create_Temp_File): Add a diagnostic in verbose mode when
5212         the temporary file cannot be created, indicating the directory when the
5213         creation was attempted.
5215 2009-04-22  Emmanuel Briot  <briot@adacore.com>
5217         * prj-env.adb, prj-env.ads (Create_Mapping_File): we need to compare
5218         the language names, not their indices.
5220 2009-04-22  Emmanuel Briot  <briot@adacore.com>
5222         * prj.ads, prj-nmsc.adb, prj-env.adb, prj-env.ads
5223         (Source_Data.Language_Name): Field removed.
5225 2009-04-22  Emmanuel Briot  <briot@adacore.com>
5227         * prj.adb, prj.ads, prj-nmsc.adb (Project_Data.Unit_Based_Language_*):
5228         Two fields removed.
5230 2009-04-22  Emmanuel Briot  <briot@adacore.com>
5232         * prj-nmsc.adb (Check_Naming_Ada_Only): Properly initialize the
5233         separate_suffix to the same value as the body_suffix.
5235 2009-04-22  Robert Dewar  <dewar@adacore.com>
5237         * prj.adb: Minor code reorganization
5238         Code clean up.
5240         * prj-proc.adb: Minor code reorganization, clean up.
5242         * prj-nmsc.adb: Minor reformatting
5243         Minor code reorganization
5245         * gnat_ugn.texi: Add to doc on strict aliasing
5247 2009-04-22  Pascal Obry  <obry@adacore.com>
5249         * s-osinte-mingw.ads: Rename Reserved field in CRITICAL_SECTION to
5250         SpinCount.
5252         * s-tasini.adb: Minor reformatting.
5254         * s-tassta.adb: Minor reformatting.
5256 2009-04-22  Emmanuel Briot  <briot@adacore.com>
5258         * prj-proc.adb, prj-nmsc.adb (Check_Naming_Schemes): split into several
5259         smaller subprograms.
5260         Renamed to Check_File_Naming_Schemes to avoid confusion with the
5261         other Check_Naming_Schemes functions that plays a totally different
5262         role.
5263         (Check_Unit_Based_Lang, Check_File_Based_Lang): new subprograms,
5264         extracted from the above. These were partially rewritten to avoid
5265         unnecessary code and temporary variables.
5266         (Compute_Unit_Name): new subprogram, merge of Check_Unit_Based_Lang
5267         and Get_Unit (which for now still exist since they contain mode-specific
5268         code)
5270 2009-04-22  Emmanuel Briot  <briot@adacore.com>
5272         * prj.ads, prj.adb, prj-nmsc.adb, prj-proc.adb (Recursive_Process):
5273         Remove duplicated code.
5274         (Canonical_Case_File_Name): new subprogram
5275         (Check_And_Normalize_Unit_Names): new subprogram
5276         (Write_Attr): new subprogram
5277         Better sharing of code
5278         (Check_Naming_Ada_Only, Check_Naming_Multi_Lang): new subprogram, to
5279         split Check_Naming and help find duplicated code
5280         (Check_Common): new subprogram, sharing code between ada_only and
5281         multi_language mode.
5282         (Naming_Data.Dot_Repl_Loc): field removed
5284 2009-04-22  Emmanuel Briot  <briot@adacore.com>
5286         * prj-proc.adb, prj-nmsc.adb (Load_Naming_Exceptions): New subprogram.
5287         Minor refactoring to reduce the size of
5288         Process_Sources_In_Multi_Language_Mode.
5289         Avoid extra copied of Source_Data, which we found in the past could be
5290         quite slow.
5291         (Mark_Excluded_Sources): new subprogram.
5292         (Remove_Locally_Removed_Files_From_Units): merged into the above
5293         Refactors Process_Sources_In_Multi_Language_Mode to reduce its size,
5294         and allow better sharing of code between multi_lang and ada_only modes
5295         (Project_Extends): removed, since exact duplicate of Prj.Is_Extending
5297 2009-04-22  Emmanuel Briot  <briot@adacore.com>
5299         * prj-proc.adb, prj.adb, prj.ads (Project_Data.First_Referred_By):
5300         Removed, since unused.
5302 2009-04-22  Vincent Celier  <celier@adacore.com>
5304         * prj-attr.adb: New single project level attribute
5305         Separate_Run_Path_Options.
5307         * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
5308         attribute Seperate_Run_Path_Options.
5310         * prj.ads: (Project_Configuration): New Boolean component
5311         Separate_Run_Path_Options, defaulted to False.
5313         * snames.ads-tmpl: New standard name Seperate_Run_Path_Options
5315 2009-04-22  Robert Dewar  <dewar@adacore.com>
5317         * sem_type.adb: Minor reformatting
5319         * mlib.adb: Minor reformatting
5321         * sem_aggr.adb: Minor reformatting. Defend against junk aggregate from
5322         syntax error.
5324 2009-04-22  Nicolas Setton  <setton@adacore.com>
5326         * link.c: Add flag __gnat_separate_run_path_options.
5328         * mlib.adb (Separate_Run_Path_Options): New subprogram.
5330         * mlib.ads (Separate_Run_Path_Options): Declare.
5332         * gnatcmd.adb (Process_Link): Add support for emitting one "rpath"
5333         switch per directory, rather than one "rpath" switch listing all
5334         directories.
5336         * gnatlink.adb (Process_Binder_File): Likewise.
5338         * make.adb (Gnatmake): Likewise.
5340 2009-04-22  Hristian Kirtchev  <kirtchev@adacore.com>
5342         * exp_ch6.adb (Make_Build_In_Place_Call_In_Assignment): Code cleanup.
5343         Add a call to Move_Final_List when the target of the assignment is a
5344         return object that needs finalization and the expression is a
5345         controlled build-in-place function.
5347 2009-04-22  Vincent Celier  <celier@adacore.com>
5349         * make.adb (Gnatmake, Bind_Step): call Set_Ada_Paths with
5350         Including_Libraries set to True.
5352 2009-04-22  Ed Schonberg  <schonberg@adacore.com>
5354         * lib-load.ads, lib-load.adb (Make_Child_Decl_Unit): New subprogram, to
5355         create a unit table entry for the subprogram declaration created for a
5356         child suprogram body that has no separate specification.
5358         * sem_ch10.adb (Analyze_Compilation_Unit): For a child unit that is a
5359         subprogram body, call Make_Child_Decl_Unit.
5361         * lib.adb (Get_Cunit_Unit_Number): Verify that an entry not yet in the
5362         table can only be the created specification of a child subprogram body
5363         that is the main unit, which has not been entered in the table yet.
5365         * errout.adb  (Output_Messages): Ignore created specification of a
5366         child subprogram body to prevent repeated listing of error messages.
5368         * gnat1drv.adb (gnat1drv): The generated specification for a child
5369         subprogram body does not generate code.
5371 2009-04-22  Arnaud Charlet  <charlet@adacore.com>
5373         * s-bitops.adb, s-bitops.ads (Raise_Error): Do not use Ada 05 syntax,
5374         since this unit is now part of bootstrap units, so must use Ada 95
5375         syntax only.
5377 2009-04-22  Thomas Quinot  <quinot@adacore.com>
5379         * a-tasatt.adb: Minor reformatting
5381 2009-04-22  Bob Duff  <duff@adacore.com>
5383         * s-stalib.ads: Remove "with System;" since we're inside System, so
5384         it's unnecessary.
5386 2009-04-22  Vincent Celier  <celier@adacore.com>
5388         * prj-nmsc.adb (Add_Source): Always put the dependency file name in
5389         the source record, as there may be a dependency file even if no object
5390         file is created.
5392 2009-04-22  Robert Dewar  <dewar@adacore.com>
5394         * lib-load.adb: Minor reformatting
5396         * lib-load.ads: Minor reformatting
5398         * sinfo.ads: Minor reformatting
5400 2009-04-22  Bob Duff  <duff@adacore.com>
5402         * exp_pakd.adb: Minor comment fixes.
5404         * sinfo.ads, par-load.adb, sem_ch10.adb, lib-load.ads, lib-load.adb
5405         sem_ch12.adb: Change the meaning of the Library_Unit attribute to
5406         include units containing instantiations, as well as units that are
5407         generic instantiations.
5409         * sem.adb: Include dependents and corresponding specs/bodies in the
5410         unit walk.
5412         * gcc-interface/Make-lang.in:
5413         sem now depends on s-bitops, because of the packed array of Booleans.
5415 2009-04-22  Eric Botcazou  <ebotcazou@adacore.com>
5417         * gcc-interface/ada-tree.def: Fix formatting nits.
5418         (REGION_STMT): Delete.
5419         (HANDLER_STMT): Likewise.
5420         * gcc-interface/ada-tree.h: Fix formatting nits.
5421         (IS_STMT): Delete.
5422         (REGION_STMT_BODY): Likewise.
5423         (REGION_STMT_HANDLE): Likewise.
5424         (REGION_STMT_BLOCK): Likewise.
5425         (HANDLER_STMT_ARG): Likewise.
5426         (HANDLER_STMT_LIST): Likewise.
5427         (HANDLER_STMT_BLOCK): Likewise.
5428         * gcc-interface/gigi.h (fp_prec_to_size): Update comment.
5429         (fp_size_to_prec): Likewise.
5430         (largest_move_alignment): Delete.
5431         (gnat_compute_largest_alignment): Likewise.
5432         Fix minor nits.
5433         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Signed_Integer_Subtype>:
5434         Remove redundant code.
5435         <E_Array_Type>: Remove redundant assert.
5436         <E_Array_Subtype>: Exit early from index computation in pathological
5437         cases.
5438         Rewrite conditional assignment.
5439         (make_type_from_size): Likewise.
5440         * gcc-interface/misc.c (largest_move_alignment): Delete.
5441         (gnat_finish_incomplete_decl): Likewise.
5442         (LANG_HOOKS_FINISH_INCOMPLETE_DECL): Likewise.
5443         (asm_out_file): Likewise
5444         (gnat_print_type) <INTEGER_TYPE>: Fall through to ENUMERAL_TYPE case.
5445         (gnat_dwarf_name): Move around.
5446         * gcc-interface/trans.c (Attribute_to_gnu): Fix minor nits.
5447         (gigi): Remove call to gnat_compute_largest_alignment.
5448         * utils.c (create_field_decl): Rewrite conditional assignment.
5449         Fix minor nits.
5451 2009-04-22  Eric Botcazou  <ebotcazou@adacore.com>
5453         * gcc-interface/decl.c (gnat_to_gnu_entity): Compute is_type predicate
5454         on entry.  Defer common processing for types.  Reorder and clean up.
5455         Compute the equivalent GNAT node and the default size for types only.
5456         <E_Modular_Integer_Type>: Directly use Esize for the type's precision.
5457         <E_Access_Type>: For an unconstrained designated type, do not pretend
5458         that a dummy type is always made.
5459         <all> Fix nits in comments.
5460         (validate_size): Fix formatting nits and comments.
5461         (set_rm_size): Likewise.
5462         * gcc-interface/utils.c (create_param_decl): Replace bogus argument
5463         passed to TARGET_PROMOTE_PROTOTYPES hook.
5465 2009-04-22  Eric Botcazou  <ebotcazou@adacore.com>
5467         * fe.h (Get_External_Name): Declare.
5468         * gcc-interface/gigi.h (concat_id_with_name): Rename to...
5469         (concat_name): ...this.
5470         * gcc-interface/decl.c (gnat_to_gnu_entity): Rename gnu_entity_id to
5471         gnu_entity_name and adjust for above renaming.
5472         <E_Access_Type>: Use create_concat_name to get the name of the various
5473         types associated with unconstrained array types.
5474         (make_aligning_type): Adjust for above renaming.
5475         (maybe_pad_type): Likewise.
5476         (components_to_record): Likewise.  Use get_identifier_with_length for
5477         the encoding of the variant.
5478         (get_entity_name): Use get_identifier_with_length.
5479         (create_concat_name): Likewise.  Use Get_External_Name if no suffix.
5480         Do not fiddle with Name_Buffer.
5481         (concat_id_with_name): Rename to...
5482         (concat_name): ...this.  Use get_identifier_with_length.  Do not fiddle
5483         with Name_Buffer.
5484         * gcc-interface/utils.c (rest_of_record_type_compilation): Adjust for
5485         above renaming.
5487 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
5489         * ChangeLog, ChangeLog.ptr, ChangeLog.tree-ssa: Add copyright and
5490         license notices.
5492 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
5494         * gcc-interface/trans.c (gnat_to_gnu): Do not overwrite location info.
5496 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
5498         * gcc-interface/ada-tree.h (TYPE_RM_SIZE_NUM): Delete.
5499         (TYPE_RM_SIZE): Access TYPE_LANG_SLOT_1 directly for integral types.
5500         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Type>:
5501         Remove useless support code for packed array types and assert its
5502         uselessness.
5503         <E_Signed_Integer_Subtype>: Reuse entity identifier in more places and
5504         adjust for TYPE_RM_SIZE change.
5505         <all> Fix nits in comments.  Use Original_Array_Type accessor instead
5506         of Associated_Node_For_Itype accessor for packed array types.
5507         (make_packable_type): Likewise.
5508         (maybe_pad_type): Likewise.
5509         (set_rm_size): Likewise.  Rework conditional statement.  Adjust for
5510         TYPE_RM_SIZE change.
5511         (make_type_from_size): Adjust for TYPE_RM_SIZE change.
5512         (rm_size): Fix nits in comments.  Rework conditional statements.
5513         * gcc-interface/misc.c (gnat_print_type): Adjust for TYPE_RM_SIZE
5514         change.
5515         * gcc-interface/trans.c (Attribute_to_gnu): Fix nits in comments.
5516         * gcc-interface/utils.c (gnat_init_decl_processing): Use more
5517         appropriate function to initialize the size_type_node.  Adjust for
5518         TYPE_RM_SIZE change.
5520 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
5522         * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set force_global
5523         for imported subprograms.
5525 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
5527         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not make
5528         constant objects covered by 13.3(19) volatile.
5530 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
5532         * gcc-interface/utils.c (create_type_decl): Do not pass declarations
5533         of dummy fat pointer types to the debug back-end.
5535 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
5537         * gcc-interface/decl.c (gnat_to_gnu_entity): Rewrite Esize calculation.
5538         <E_Signed_Integer_Subtype>: Set the RM size on the integer type
5539         before wrapping it up in the record type.  Do not overwrite the
5540         Ada size of the record type with the Esize.
5542 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
5544         * gcc-interface/trans.c (unchecked_conversion_lhs_nop): New predicate.
5545         (gnat_to_gnu) <N_Unchecked_Type_Conversion>: Return the expression
5546         if the conversion is on the LHS of an assignment and a no-op.
5547         <all> Do not convert the result to the result type if the Parent
5548         node is such a conversion.
5550 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
5552         * gcc-interface/ada-tree.h (DECL_HAS_REP_P): Delete.
5553         * gcc-interface/decl.c (gnat_to_gnu_entity): Add support for extension
5554         of types with unknown discriminants.
5555         (substitute_in_type): Rewrite and restrict to formal substitutions.
5556         * gcc-interface/utils.c (create_field_decl): Do not set DECL_HAS_REP_P.
5557         (update_pointer_to): Update comment.
5559 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
5561         * sem_ch8.adb (Use_One_Package): In an instance, if two
5562         potentially_use_visible and non-overloadable homonyms are available
5563         from  the actuals of distinct formal packages, retain the current one,
5564         which was visible in the generic, to prevent spurious visibility
5565         errors.
5566         (End_Use_Package): Restore use_visibility when needed.
5568 2009-04-20  Sergey Rybin  <rybin@adacore.com>
5570         * gnat_ugn.texi, vms_data.ads: Update doc.
5572 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
5574         * gcc-interface/Make-lang.in: Update dependencies
5576         * gcc-interface/Makefile.in: Link run-time against winsock2 lib under
5577         Windows.
5579 2009-04-20  Robert Dewar  <dewar@adacore.com>
5581         * checks.ads: Fix documentation of range check handling
5583 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
5585         * sem_ch8.adb (Use_One_Type): Use proper entity on warning message for
5586         a redundant use_type clause.
5588 2009-04-20  Robert Dewar  <dewar@adacore.com>
5590         * sem_attr.adb (Eval_Attribute, case Length): Catch more cases where
5591         this attribute can be evaluated at compile time.
5592         (Eval_Attribute, case Range_Length): Same improvement
5594         * sem_eval.ads, sem_eval.adb (Compile_Time_Compare): New procedure
5596 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
5598         * sem_ch6.adb (Analye_Subprogram_Declaration): Code reorganization,
5599         for better handling of null procedures.
5600         (Check_Overriding_Indicator): Do not emit a warning on a missing
5601         overriding indicator on an operator when the type of which the operator
5602         is a primitive is private.
5604 2009-04-20  Bob Duff  <duff@adacore.com>
5606         * sem.adb, gnat1drv.adb, debug.adb: Use the -gnatd.W switch to control
5607         debugging output.
5609 2009-04-20  Robert Dewar  <dewar@adacore.com>
5611         * sem_attr.adb: Minor reformatting
5613         * gnatcmd.adb: Minor reformatting
5615 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
5617         * sem_ch4.adb (Analyze_User_Defined_Binary_Op): If left operand is
5618         overloaded and one interpretation matches the context, label the
5619         operand with the type of first formal.
5621 2009-04-20  Bob Duff  <duff@adacore.com>
5623         * debug.ads: Minor comment fix.
5625         * debug.adb: Minor comment fixes.
5627 2009-04-20  Javier Miranda  <miranda@adacore.com>
5629         * rtsfind.ads (RE_Null_Id): New entity of package Ada.Exceptions
5631         * exp_ch6.adb (Expand_Inlined_Call): Undo previous patch.
5633         * exp_ch11.adb (Expand_N_Raise_Statement): When the raise stmt
5634         is expanded into a call to Raise_Exception, avoid passing the
5635         exception-name'identity in runtimes in which this argument
5636         is not used.
5638 2009-04-20  Jerome Lambourg  <lambourg@adacore.com>
5640         * impunit.adb: Add i-cil and i-cilobj packages, now needed by the
5641         generated bindings for cil.
5643 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
5645         * sem_aggr.adb (Resolve_Record_Aggregate): If the type has unknown
5646         discriminants, collect components from the Underlying_Record_View,
5647         which will be used in the expansion of the aggregate into assignments.
5649         * sem_ch3.adb: Do not label derived type with unknown discriminants as
5650         having a private declaration.
5652 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
5654         * exp_util.adb (Expand_Subtype_From_Expr): use the
5655         underlying_record_view when available, to create the proper constrained
5656         subtype for an object of a derived type with unknown discriminants.
5658 2009-04-20  Javier Miranda  <miranda@adacore.com>
5660         * exp_ch6.adb (Expand_Inlined_Call): Avoid generation of temporaries for
5661         formals that have pragma unreferenced.
5663 2009-04-20  Pascal Obry  <obry@adacore.com>
5665         * a-direct.adb (To_Lower_If_Case_Insensitive): Removed.
5666         Remove all calls to To_Lower_If_Case_Insensitive to preserve
5667         the pathname original casing.
5669 2009-04-20  Robert Dewar  <dewar@adacore.com>
5671         * g-trasym.adb: Minor reformatting
5673         * s-os_lib.adb: Minor reformatting
5675         * sem.adb: Minor reformatting
5676         Minor code reorganization
5678         * sem_ch3.adb: Minor reformatting
5680         * sem_ch4.adb: Minor reformatting
5682         * sem_ch8.adb: Minor reformatting
5684         * sem_type.adb: Minor reformatting
5686 2009-04-20  Javier Miranda  <miranda@adacore.com>
5688         * sem_disp.adb (Find_Dispatching_Type): For subprograms internally
5689         generated by derivations of tagged types use the aliased subprogram a
5690         reference to locate their controlling type.
5692 2009-04-20  Tristan Gingold  <gingold@adacore.com>
5694         * g-trasym.adb: Set size of result buffer before calling
5695         convert_address.
5697 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
5699         * sem_ch4.adb (Valid_Candidate): When checking whether a prefixed call
5700         to a function returning an array can be interpreted as a call with
5701         defaulted parameters whose result is indexed, take into account the
5702         types of all the indices of the array result type.
5704 2009-04-20  Pascal Obry  <obry@adacore.com>
5706         * a-direct.adb, s-os_lib.adb: Minor reformatting.
5708 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
5710         * sem_ch8.adb (Analyze_Object_Renaming): Proper checks on incorrect
5711         null exclusion qualifiers for object renaming declarations.
5713 2009-04-20  Nicolas Roche  <roche@adacore.com>
5715         * sysdep.c (__gnat_localtime_tzoff): on Windows, manipulated times are
5716         unsigned long long. So compare local_time and utc_time before computing
5717         the difference.
5719 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
5721         * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
5722         of the Underlying_Record_View before that of the derived type.
5724         * exp_ch3.adb (Expand_Record_Extension): Do not special-case types
5725         with unknown discriminants with regard to the parent subtype.
5727 2009-04-20  Bob Duff  <duff@adacore.com>
5729         * sem.adb (Semantics, Walk_Library_Items): Include dependents of bodies
5730         that are not included. This is necessary if the main unit is a generic
5731         instantiation.
5733         * gnat1drv.adb (Gnat1drv): Comment out the call to Check_Library_Items,
5734         because it doesn't work if -gnatn is used.
5736 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
5738         * rtsfind.adb (RTE, RTE_Record_Component): In
5739         Configurable_Run_Time_Mode, do not enable front-end inlining.
5741 2009-04-20  Thomas Quinot  <quinot@adacore.com>
5743         * g-socthi-vms.adb: Remove now unnecessary WITH clause on
5744         System.Address_To_Access_Conversions.
5746 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
5748         * sem.adb: Guard against ill-formed subunits.
5750 2009-04-20  Bob Duff  <duff@adacore.com>
5752         * output.adb (Flush_Buffer): Do not indent blank lines.
5753         (Ignore_Output): New procedure for output suppression.
5755 2009-04-20  Hristian Kirtchev  <kirtchev@adacore.com>
5757         * a-calfor.adb (Image): Subtract 0.5 from the sub second component only
5758         when it is positive.  This avoids a potential constraint error raised
5759         by the conversion to Natural.
5761 2009-04-20  Gary Dismukes  <dismukes@adacore.com>
5763         * exp_ch5.adb (Expand_Assign_Array): For the case where the assignment
5764         involves a target that has a specified address, don't set Forward_OK
5765         and Backward_OK to False if the rhs is an aggregate, since overlap
5766         can't occur.
5768 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
5770         * sem_ch8.adb (Analyze_Object_Renaming): Reject ambiguous expressions
5771         in an object renaming declaration when the expected type is an
5772         anonymous access type.
5774         * sem_type.adb (Disambiguate): Use anonymousness to resolve a potential
5775         ambiguity when one interpretation is an anonymous access type and the
5776         other is a named access type, and the context itself is anonymous
5778 2009-04-20  Thomas Quinot  <quinot@adacore.com>
5780         * einfo.ads: Minor comment rewording
5782         * sem_aggr.adb: Minor comment rewording
5784         * sem_ch3.adb, sem_ch6.adb: Minor reformatting
5786 2009-04-20  Pascal Obry  <obry@adacore.com>
5788         * adaint.c (__gnat_is_readable_file): Check for file existence
5789         when not using ACL (always the case on remote drives).
5791 2009-04-20  Robert Dewar  <dewar@adacore.com>
5793         * sinfo.ads: Minor comment fixes
5795         * exp_disp.adb: Minor reformatting
5797         * gnat1drv.adb: Minor reformatting
5799         * output.adb: Minor reformatting
5801         * s-vxwext-kernel.ads: Minor reformatting
5803         * sem.ads: Minor reformatting
5805         * sem.adb: Minor reformatting
5807         * sem_elim.adb: Minor reformatting
5809         * uname.ads: Minor reformatting
5811 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
5813         * init.c (__gnat_adjust_context_for_raise): On x86{-64}/Linux, add
5814         a small dope of 4 words to the adjustment to the stack pointer.
5816 2009-04-20  Thomas Quinot  <quinot@adacore.com>
5818         * xoscons.adb: generate C header s-oscons.h in
5819         addition to s-oscons.ads.
5821         * socket.c: On VMS, use s-oscons.h.
5823         * sem_ch3.adb: Minor reformatting
5825         * exp_ch9.adb: Minor reformatting
5827 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
5829         * gcc-interface/trans.c (check_for_eliminated_entity): Remove.
5830         (Attribute_to_gnu): Do not call check_for_eliminated_entity.
5831         (call_to_gnu): Likewise.
5833 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
5835         * gcc-interface/trans.c (gigi): Declare the name of the compilation
5836         unit as the first global name at the very beginning.
5838 2009-04-20  Thomas Quinot  <quinot@adacore.com>
5840         * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
5841         s-oscons-tmplt.c, gsocket.h, g-socthi-mingw.ads, g-socthi.ads,
5842         g-sothco.ads (__gnat_inet_pton): Needs to be enabled for HP-UX as well,
5843         since HP-UX supports neither inet_aton nor inet_pton (altough the
5844         latter is part of the Single UNIX Specification!).
5845         So reorganize code, and share C implementation based on inet_addr(3)
5846         with VMS (instead of having a VMS specific Ada implementation in
5847         g-socthi-vms.adb).
5849 2009-04-20  Gary Dismukes  <dismukes@adacore.com>
5851         * osint-c.ads, osint-c.adb (Get_Object_Output_File_Name): New function
5852         to return the object file name saved by Set_Object_Output_File_Name.
5854 2009-04-20  Emmanuel Briot  <briot@adacore.com>
5856         * g-comlin.adb (Initialize_Option_Scan): Fix initialization of parsers
5857         for the standard command line, when argc has been modified since the
5858         start of the application.
5860 2009-04-20  Thomas Quinot  <quinot@adacore.com>
5862         * socket.c (__gnat_inet_pton, Windows case): Adjust return value.
5863         WSAStringToAddress returns 0 for success and SOCKET_ERROR for failure.
5865 2009-04-20  Bob Duff  <duff@adacore.com>
5867         * gnat1drv.adb (Gnat1drv): Put call to Check_Library_Items inside
5868         pragma Debug.
5870 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
5872         * exp_ch9.adb (Build_Protected_Sub_Specification): Mark generated
5873         subprogram as Eliminated when source operation is.
5874         (Expand_N_Protected_Type_Declaration): Generate protected and
5875         unprotected specs for the internal operations, even if the source
5876         operation is eliminated.
5878 2009-04-20  Hristian Kirtchev  <kirtchev@adacore.com>
5880         * exp_ch3.adb (Make_Predefined_Primitive_Specs,
5881         Predefined_Primitive_Bodies): Do not create the declarations and bodies
5882         of the primitive subprograms associated with dispatching select
5883         statements when the runtime is in configurable mode.
5885 2009-04-20  Ed Falis  <falis@adacore.com>
5887         * s-vxwext-kernel.ads (tickGet): Use tick64Get.
5889 2009-04-20  Thomas Quinot  <quinot@adacore.com>
5891         * s-oscons-tmplt.c: Add support for generating a dummy version of
5892         s-oscons.ads providing all possible constants.
5894         * g-socthi-mingw.ads: Fix calling convention for __gnat_inet_pton.
5896         * socket.c (__gnat_inet_pton): On Windows make sure we always use the
5897         ANSI version (not the UNICODE version) of WSAStringToAddress.
5899 2009-04-20  Pascal Obry  <obry@adacore.com>
5901         * adaint.c (__gnat_set_OWNER_ACL): properly free memory
5902         allocated for the security descriptor and make sure all
5903         handles are closed before leaving this procedure.
5905 2009-04-20  Javier Miranda  <miranda@adacore.com>
5907         * einfo.ads, einfo.adb (Is_Underlying_Record_View): New subprogram
5908         (Set_Is_Underlying_Record_View): New subprogram
5910         * sem_aggr.adb (Discr_Present, Resolve_Record_Aggregate): In case of
5911         private types with unknown discriminants use the underlying record view
5912         if available.
5914         * sem_ch3.adb (Build_Derived_Private_Type): Enable construction of the
5915         underlying record view in the full view of private types whose parent
5916         has unknown discriminants.
5917         (Build_Derived_Record_Type): Avoid generating the class-wide entity
5918         associated with an underlying record view.
5919         (Derived_Type_Declaration): Avoid deriving parent primitives in
5920         underlying record views.
5922         * sem_ch6.adb (Check_Return_Subtype_Indication): Add support for
5923         records with unknown discriminants.
5925         * sem_type.adb (Covers): Handle underlying record views.
5926         (Is_Ancestor): Add support for underlying record views.
5928         * exp_attr.adb (Expand_Attribute): Expand attribute 'size into a
5929         dispatching call if the type of the target object is tagged and has
5930         unknown discriminants.
5932         * exp_aggr.adb (Resolve_Record_Aggregate): Add support for records with
5933         unknown discriminants.
5935         * exp_disp.adb (Build_Dispatch_Tables): Avoid generating dispatch
5936         tables for internally built underlying record views.
5938         * sprint.adb (sprint_node_actual): Improve output of aggregates with an
5939         empty list of component associations.
5941 2009-04-20  Thomas Quinot  <quinot@adacore.com>
5943         * sem_ch10.adb: Minor reformatting
5945         * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.ads,
5946         g-socthi-mingw.ads, g-socthi.ads, g-socket.adb
5947         (GNAT.Sockets.Inet_Addr): Do not use non-portable inet_aton, instead use
5948         standard inet_pton API (and emulate it on platforms that do not
5949         support it).
5950         (GNAT.Sockets.Thin.Inet_Pton, VMS case): Implement in terms of
5951         DECC$INET_ADDR, imported in Ada.
5952         (GNAT.Sockets.Thin.Inet_Pton, VxWorks and Windows cases): Use C
5953         implementation provided by GNAT runtime.
5954         (__gnat_inet_pton): C implementation of inet_pton(3) for VxWorks and
5955         Windows.
5957 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
5959         * gnat_ugn.texi: Add documentation for -fno-ivopts.
5961 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
5963         * sem_ch10.adb (Analyze_Context): Do not analyze a unit in a
5964         with_clause if it is the main unit.
5966 2009-04-20  Thomas Quinot  <quinot@adacore.com>
5968         * sem_type.adb, ali.adb, erroutc.adb: Minor code reorganization
5969         (no behaviour change): Use Append instead of Increment_Last followed
5970         by assignment.
5972 2009-04-20  Hristian Kirtchev  <kirtchev@adacore.com>
5974         * exp_ch3.adb (Make_Predefined_Primitive_Specs): Do not generate the
5975         declarations of all primitives associated with dispatching asynchronous,
5976         conditional and timed selects when dispaching calls are forbidden and
5977         select statements are not allowed (such as in Ravenscar).
5978         (Predefined_Primitive_Bodies): Ditto for bodies.
5980         * exp_disp.ad (Make_DT): Do not create and populate the
5981         Select_Specific_Data of the dispatch table when dispatching calls are
5982         forbidden and select statements are not allowed (such as in Ravenscar).
5984 2009-04-20  Robert Dewar  <dewar@adacore.com>
5986         * a-tifiio.adb: Minor reformatting
5988 2009-04-20  Thomas Quinot  <quinot@adacore.com>
5990         * g-socthi-vms.adb, g-socket.adb, g-socket.ads: inet_aton(3), unlike
5991         other C library functions, report *failure* with a zero status, and
5992         success with a non-zero status.
5994 2009-04-20  Bob Duff  <duff@adacore.com>
5996         * sem.ads, sem.adb (Walk_Library_Items): New generic procedure.
5997         (Semantics): After analyzing each unit, Append it to the
5998         Comp_Unit_List, if appropriate.
6000         * gnat1drv.adb (Check_Library_Items): New procedure for debugging
6001         purposes.
6002         (Gnat1drv): Correct comment regarding Back_End_Mode.
6004 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6006         * gnat_ugn.texi: Add documentation for -fno-inline-small-functions.
6008 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6010         * s-taprop-irix.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
6011         output.adb, output.ads, s-taprop-hpux-dce.adb,
6012         s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-posix.adb: Minor
6013         reformatting.
6015 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6017         * g-socket.adb, g-socket.ads, g-socthi-mingw.ads, g-socthi-vms.adb,
6018         g-socthi-vms.ads, g-socthi-vxworks.ads, g-socthi.ads
6019         (GNAT.Sockets.Thin.C_Inet_Addr): Remove.
6020         (GNAT.Sockets.Thin.Inet_Aton): New function, imported from C library
6021         except for VMS where it is reimplemented in Ada using DECC$INET_ADDR.
6022         (GNAT.Sockets.Inet_Addr): Use inet_aton(3) instead of inet_addr(3).
6024         * debug.adb: Fix typo
6026         * gnat_rm.texi: Minor doc fix.
6028         * sem_ch7.adb, freeze.adb: Minor reformatting
6030 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6032         * g-socket.ads: Add new constants:
6033           Loopback_Inet_Addr
6034           Unspecified_Group_Inet_Addr
6035           All_Hosts_Group_Inet_Addr
6036           All_Routers_Group_Inet_Addr
6038         * s-oscons-tmplt.c, g-sttsne-vxworks.adb (System.OS_Constants): Add
6039         ERANGE (Result too large).
6040         (GNAT.Sockets.Thin.Task_Safe_NetDB, VxWorks version): Add missing
6041         propagation of errno to caller.
6043 2009-04-20  Hristian Kirtchev  <kirtchev@adacore.com>
6045         * a-calend.adb, a-calend-vms.adb: Increase the number of leap seconds
6046         to 24. Increment Leap_Seconds_Count and add an entry to aggregate
6047         Leap_Second_Times.
6049 2009-04-20  Gary Dismukes  <dismukes@adacore.com>
6051         * sem_elim.ads (Check_For_Eliminated_Subprogram): New procedure for
6052         checking for references to eliminated subprograms that should be
6053         flagged.
6054         (Eliminate_Error_Message): Update comment to say "references" rather
6055         than "calls" (since attribute cases are handled here as well).
6057         * sem_elim.adb (Check_For_Eliminated_Subprogram): New procedure for
6058         checking for references to eliminated subprograms that should be
6059         flagged.  Add with and use of Sem and Sem_Util.
6061         * sem_res.adb (Resolve_Call): Reject calls to eliminated subprograms.
6062         Add with and use of Sem_Elim.
6064         * sem_attr.adb (Analyze_Access_Attribute): Reject access attributes
6065         applied to eliminated subprograms.
6066         (Analyze_Attribute): Reject 'Address and 'Code_Address applied to
6067         eliminated subprograms.
6068         Add with and use of Sem_Elim.
6070         * sem_disp.adb (Check_Dispatching_Call): Remove error check for calls
6071         to eliminated subprograms, now handled during Resolve_Call.
6072         Remove with and use of Sem_Elim.
6074         * exp_disp.adb (Make_DT): Get Ultimate_Alias of primitive before
6075         testing Is_Eliminated, for proper handling of primitive derived from
6076         eliminated subprograms.
6078 2009-04-20  Vincent Celier  <celier@adacore.com>
6080         * mlib-prj.adb (Build_Library): Use the shared library linker, if one
6081         has been declared (Library_GCC or Linker'Driver), for the driver name.
6083         * prj-nmsc.adb (Process_Linker): If Library_GCC is not declared and
6084         Linker'Driver is, use Linker'Driver as the shared library linker.
6085         (Process_Project_Level_Simple_Attributes): Issue a warning if attribute
6086         Library_GCC is declared.
6087         (Check_Library_Attributes): Set up the shared linker driver: either
6088         Library_GCC or Linker'Driver. Issue a warning if Library_GCC is
6089         declared.
6091 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6093         * g-socket.ads (Send_Socket): Fix misleading comment.
6095 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
6097         * switch-c.adb (Scan_Front_End_Switches): Disable inspector mode in
6098         ASIS mode.
6100 2009-04-20  Geert Bosch  <bosch@adacore.com>
6102         * a-tifiio.adb (Put): Avoid generating too many digits for certain
6103         fixed types with smalls that are neither integer or the reciprocal
6104         of an integer.
6106 2009-04-20  Bob Duff  <duff@adacore.com>
6108         * uname.ads: Minor comment fix.
6110         * types.ads: Minor comment fix.
6112 2009-04-20  Pascal Obry  <obry@adacore.com>
6114         * adaint.c (__gnat_get_libraries_from_registry): Fix code to
6115         avoid warning. At the same time fix a memory leak.
6117         * osint.adb (Get_Libraries_From_Registry): Properly free memory
6118         returned by the above routine.
6120 2009-04-20  Robert Dewar  <dewar@adacore.com>
6122         * s-conca5.adb, s-conca5.ads, s-conca7.adb, s-conca7.ads, s-conca9.adb,
6123         s-conca9.ads, rtsfind.ads, s-conca2.adb, s-conca2.ads, s-conca4.adb,
6124         s-conca4.ads, s-conca6.adb, s-conca6.ads, s-conca8.adb, s-conca8.ads,
6125         s-conca3.adb, s-conca3.ads (Str_Concat_Bounds_x): New functions.
6127         * exp_ch4.adb (Expand_Concatenate): Minor code reorganization
6129 2009-04-20  Pascal Obry  <obry@adacore.com>
6131         * initialize.c (__gnat_initialize): Add braces to kill warning.
6133         * adaint.c: Minor reformatting, remove trailing spaces.
6135 2009-04-17  Arnaud Charlet  <charlet@adacore.com>
6137         * gcc-interface/Make-lang.in: Update dependencies.
6139 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6141         * adaint.h (__gnat_lwp_self): Declare on Linux.
6143         * adaint.c (__gnat_os_filename): Add ATTRIBUTE_UNUSED on 'filename'.
6145 2009-04-20  Robert Dewar  <dewar@adacore.com>
6147         * exp_ch5.adb, usage.adb, back_end.adb, opt.ads: Implement
6148         front-end part of -fpreserve-control-flow switch.
6150 2009-04-20  Bob Duff  <duff@adacore.com>
6152         * rtsfind.adb: Minor comment fix
6154 2009-04-20  Robert Dewar  <dewar@adacore.com>
6156         * exp_aggr.adb: Minor reformatting
6157         Minor code reorganization (use Nkind_In)
6159         * g-socket.adb: Minor reformatting
6161         * g-socket.ads: Minor comment fix
6163         * s-auxdec.ads: Minor comment and organization update.
6165         * s-auxdec-vms_64.ads: Minor comment and organization update.
6167         * sem_ch10.adb: Minor addition of ??? comment
6169         * sem_disp.adb: Minor reformatting
6171 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6173         * inline.adb (Add_Inlined_Subprogram): Do not place on the back-end
6174         list a caller of an inlined subprogram, if the caller itself is not
6175         called.
6177 2009-04-20  Pascal Obry  <obry@adacore.com>
6179         * adaint.c: Disable use of ACL on network drives.
6181 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
6183         * gnat_ugn.texi: Add examples.
6185 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6187         * g-socket.ads (Abort_Selector): Clarify documentation.
6189 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
6191         * opt.ads (Inspector_Mode): Update documentation of this flag.
6193 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6195         * g-socket.ads: Minor reformatting
6197         * socket.c, gsocket.h (__gnat_get_h_errno, VxWorks case): No need to
6198         consider S_resolvLib error codes since we only use the hostLib wrappers.
6200 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6202         * sem_ch3.adb (Build_Derived_Private_Type): Insert the declaration
6203         of the Underlying_Record_View after that of the derived type.
6205 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
6207         * switch-c.adb (Scan_Front_End_Switches): Disable front-end inlining
6208         in inspector mode.
6210 2009-04-20  Javier Miranda  <miranda@adacore.com>
6212         * sem_ch6.adb (New_Overloaded_Entity): Minor reformating.
6214         * sem_ch6.ads (Subtype_Conformant, Type_Conformant): Add missing
6215         documentation.
6217         * exp_aggr.adb (Build_Record_Aggr_Code): Code cleanup.
6219         * sem_disp.adb
6220         (Check_Dispatching_Operation): Set attribute Is_Dispatching_Operation
6221         in internally built overriding subprograms.
6223 2009-04-20  Doug Rupp  <rupp@adacore.com>
6225         * s-auxdec-vms_64.ads (Integer_{8,16,32,64}_Array): New array types.
6227         * s-auxdec.ads: Likewise
6229 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6231         * sem_ch3.adb (Find_Type_Name): Reject the completion of a private
6232         type by an interface.
6234         * exp_ch6.adb (Expand_Call): Inline To_Address unconditionally, to
6235         minimze difference in expanded tree when compiled as spec of the main
6236         unit, or as a spec in the context of another unit.
6238 2009-04-20  Hristian Kirtchev  <kirtchev@adacore.com>
6240         * a-calend.adb: Remove types char_Pointer, int, tm and tm_Pointer.
6241         (localtime_tzoff): This routine no longer accepts an actual of type
6242         tm_Pointer.
6243         (UTC_Time_Offset): Remove local variable Secs_TM.
6245         * sysdep.c (__gnat_localtime_tzoff): This routine no longer accepts an
6246         actual of type struct tm*. Add local variable of type struct tm for all
6247         targets that provide localtime_r and need to invoke it.
6249 2009-04-20  Thomas Quinot  <quinot@adacore.com>
6251         * s-oscons-tmplt.c, g-socket.adb, g-socket.ads
6252         (GNAT.Sockets.Resolve_Error): Add case of EPIPE
6253         Add case of EAGAIN for platforms where it is not equal to EWOULDBLOCK
6255 2009-04-20  Robert Dewar  <dewar@adacore.com>
6257         * sem_ch3.adb: Minor reformatting
6259         * lib-load.adb: Minor reformatting
6261         * sem_ch4.adb: Minor reformatting
6263 2009-04-20  Robert Dewar  <dewar@adacore.com>
6265         * namet-sp.ads, namet-sp.adb (Is_Bad_Spelling_Of): Implement new spec
6266         (equal values => False).
6268 2009-04-20  Ed Schonberg  <schonberg@adacore.com>
6270         * exp_ch6.adb (Is_Null_Procedure): predicate is global, so that calls
6271         to null procedures can be inlined unconditionally.
6273 2009-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6275         * gcc-interface/trans.c (call_to_gnu): When creating the copy for a
6276         non-addressable parameter passed by reference, do not convert the
6277         actual if its type is already the nominal type, unless it is of
6278         self-referential size.
6280 2009-04-20  Arnaud Charlet  <charlet@adacore.com>
6282         * gnat_ugn.texi: Fix typos.
6284 2009-04-20  Robert Dewar  <dewar@adacore.com>
6286         * debug.adb, gnat1drv.adb, sem_ch13.adb: Add circuitry to
6287         Validate_Unchecked_Warnings to suppress warnings about size or
6288         alignment or extra bits if either type involved has pragma Warnings
6289         (Off) set for the type entity.
6291 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
6293         * gcc-interface/trans.c (gigi): Make the special IA-64 descriptor type
6294         a builtin type and give it a name.
6296 2009-04-17  Diego Novillo  <dnovillo@google.com>
6298         * gcc-interface/misc.c (gnat_expand_expr): Remove.
6299         (LANG_HOOKS_EXPAND_EXPR): Remove.
6301 2009-04-17  Robert Dewar  <dewar@adacore.com>
6303         * sem_ch3.adb: Minor reformatting
6305 2009-04-17  Pascal Obry  <obry@adacore.com>
6307         * adaint.c: Add __gnat_use_acl global variable to control use of ACL.
6309 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
6311         * sem_ch3.adb (Build_Derived_Enumeration_Type): Diagnose properly
6312         illegal constraints on type derived from formal discrete types.
6314 2009-04-17  Thomas Quinot  <quinot@adacore.com>
6316         PR ada/35953
6318         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
6319         g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
6320         g-socthi.adb, g-stsifd-sockets.adb, g-socthi.ads, g-socket.adb,
6321         g-socket.ads (GNAT.Sockets.Thin.C_Send,
6322         GNAT.Sockets.Thin.Syscall_Send): Remove unused subprograms.
6323         Replace calls to send(2) with equivalent sendto(2) calls.
6324         (GNAT.Sockets.Send_Socket): Factor common code in inlined subprogram.
6325         (GNAT.Sockets.Write): Account for the case of hyper-empty arrays, do not
6326         report an error in that case. Factor code common to the two versions
6327         (datagram and stream) in common routine Stream_Write.
6329 2009-04-17  Robert Dewar  <dewar@adacore.com>
6331         * exp_disp.adb: Minor reformatting
6332         Minor code reorganization (use Nkind_In)
6334         * prepcomp.adb: Minor reformatting
6336         * sem_ch3.adb: Minor reformatting
6338         * sem_res.adb: Minor comment addition
6340         * exp_ch5.adb (Expand_Assign_Array): Use Has_Address_Clause to test
6341         for address clause
6343         * lib-xref.adb (Generate_Reference): Exclude recursive calls from
6344         setting Is_Referenced
6346         * types.ads: Minor reformatting
6348 2009-04-17  Arnaud Charlet  <charlet@adacore.com>
6350         * gnat_ugn.texi: Initial documentation on binding generator.
6352 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
6354         * einfo.ads, einfo.adb: New attribute Underlying_Record_View, to handle
6355         type extensions whose parent is a type with unknown discriminants.
6357         * exp_aggr.adb (Expand_Record_Aggregate): If the type of an extension
6358         aggregate has unknown discriminants, use the Underlying_Record_View to
6359         obtain the discriminants of the ancestor part.
6361         * exp_disp.adb (Build_Dispatch_Tables): Types that are
6362         Underlying_Record_Views share the dispatching information of the
6363         original record extension.
6365         * exp_ch3.adb (Expand_Record_Extension): If the type inherits unknown
6366         discriminants, propagate dispach table information to the
6367         Underlying_Record_View.
6369         * sem_ch3.adb (Build_Derived_Private_Type): If parent type has unknown
6370         discriminants and declaration is not a completion, generate
6371         Underlying_Record_View to provide proper discriminant information to
6372         the front-end and to gigi.
6374 2009-04-17  Robert Dewar  <dewar@adacore.com>
6376         * s-conca5.adb, g-sercom.adb, s-conca5.ads, s-conca7.adb, exp_imgv.adb,
6377         s-conca7.ads, s-crc32.adb, s-crc32.ads, s-conca9.adb, s-conca9.ads,
6378         s-addope.adb, i-cstrin.ads, s-addope.ads, s-carun8.adb, s-carun8.ads,
6379         g-htable.ads, g-hesora.adb, g-hesora.ads, s-htable.adb, s-htable.ads,
6380         s-conca2.adb, s-conca2.ads, a-except.adb, s-conca4.adb, a-except.ads,
6381         s-conca4.ads, s-except.adb, s-except.ads, s-conca6.adb, s-conca6.ads,
6382         g-spchge.adb, g-spchge.ads, g-u3spch.adb, g-u3spch.ads, s-conca8.adb,
6383         s-conca8.ads, g-byorma.adb, g-byorma.ads, s-memory.adb, s-memory.ads,
6384         g-speche.adb, g-speche.ads, g-stsifd-sockets.adb, exp_dist.adb,
6385         s-imgenu.adb, s-imgenu.ads, s-mastop.adb, s-mastop.ads, s-exctab.adb,
6386         s-exctab.ads, s-imenne.adb, s-imenne.ads, s-casuti.adb, osint.adb,
6387         s-assert.adb, s-casuti.ads, s-assert.ads, s-os_lib.adb, s-conca3.adb,
6388         s-conca3.ads: Remove unneeded pragma Warnings
6390 2009-04-17  Robert Dewar  <dewar@adacore.com>
6392         * g-moreex.adb: Add comments.
6394         * s-auxdec.ads: Add ??? comment for uncommented pragma Warnings (Off)
6396         * s-auxdec-vms_64.ads: Add ??? comment for uncommented pragma
6397         Warnings (Off)
6399         * prepcomp.adb: Add ??? comment
6401         * a-tasatt.adb: Minor reformatting
6403         * g-trasym-vms-alpha.adb: Add ??? comment
6405         * g-trasym-vms-ia64.adb: Add ??? comment
6407         * xoscons.adb: Minor reformatting
6409         * s-tassta.adb: Minor reformatting
6411         * s-scaval.adb: Add ??? comment
6413         * stand.ads: Minor code clean up (remove junk with of Namet)
6415         * s-strcom.adb, s-strcom.ads, s-string.adb, s-string.ads, s-sopco3.adb,
6416         s-sopco3.ads, s-strops.adb, s-strops.ads, s-sopco5.adb, s-sopco5.ads,
6417         s-wchcnv.adb, s-wchcnv.ads, s-ststop.adb, s-ststop.ads, s-soflin.adb,
6418         s-soflin.ads, s-traceb.adb, s-traceb.ads, s-traent.adb, s-traent.ads,
6419         s-secsta.adb, s-secsta.ads, s-utf_32.adb, s-utf_32.ads, s-wchcon.adb,
6420         s-wchjis.adb, s-wchcon.ads, s-wchjis.ads, s-sopco4.adb, s-sopco4.ads,
6421         s-stache.adb, s-stache.ads, s-stoele.adb, s-stoele.ads, s-stalib.adb,
6422         s-stalib.ads, s-os_lib.ads, s-purexc.ads: Remove no longer needed
6423         Warnings off pragmas.
6425 2009-04-17  Pascal Obry  <obry@adacore.com>
6427         * initialize.c: Fix test for reallocating the arguments array.
6429 2009-04-17  Geert Bosch  <bosch@adacore.com>
6431         * exp_fixd.adb (Expand_Convert_Float_To_Fixed): Have float to fixed
6432         conversion truncate only for decimal fixed point types.
6434 2009-04-17  Jerome Lambourg  <lambourg@adacore.com>
6436         * g-comlin.adb (Initialize_Scan_Option): Make sure the sections are
6437         reinitialized.
6439 2009-04-17  Robert Dewar  <dewar@adacore.com>
6441         * exp_ch5.adb (Expand_Assign_Array): Do not set Forwards_OK and
6442         Backwards_OK if either operand has an address clause.
6444 2009-04-17  Pascal Obry  <obry@adacore.com>
6446         * initialize.c: Code clean up, use realloc.
6448 2009-04-17  Pascal Obry  <obry@adacore.com>
6450         * initialize.c: Do not get Unicode command line if Unicode support not
6451         activated.
6452         Add support for wildcard expansion for Unicode parameters on Win32.
6454         * mingw32.h: Add missing macros when Unicode support not activated.
6456 2009-04-17  Javier Miranda  <miranda@adacore.com>
6458         * sem_ch6.adb (Check_Anonymous_Return): Add missing checks to
6459         avoid generating code that references the Current_Master
6460         when compiling without tasks.
6462 2009-04-17  Vincent Celier  <celier@adacore.com>
6464         * prj-attr.adb: New project level attribute Target
6465         
6466         * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
6467         attribute Target
6468         
6469         * prj.ads (Project_Configuration): New component Target
6471 2009-04-17  Thomas Quinot  <quinot@adacore.com>
6473         * exp_ch7.adb (Expand_Ctrl_Function_Call): Remove incorrect special
6474         case for the case of an aggregate component, the attach call for the
6475         result is actually needed.
6477         * exp_aggr.adb (Backend_Processing_Possible): Backend processing for
6478         an array aggregate must be disabled if the component type requires
6479         controlled actions.
6481         * exp_ch3.adb: Minor reformatting
6483 2009-04-17  Bob Duff  <duff@adacore.com>
6485         * output.ads (Indent,Outdent): New procedures for indenting the output.
6486         (Write_Char): Correct comment -- LF _is_ allowed.
6488         * output.adb (Indent,Outdent): New procedures for indenting the output.
6489         Keep track of the indentation level, and make sure it doesn't get too
6490         high.
6491         (Flush_Buffer): Insert spaces at the beginning of each line, if
6492         indentation level is nonzero.
6493         (Save_Output_Buffer,Restore_Output_Buffer): Save and restore the current
6494         indentation level.
6495         (Set_Standard_Error,Set_Standard_Output): Remove superfluous
6496         "Next_Col := 1;".  Flush_Buffer does that.
6498         * sem_ch6.adb, sem_ch7.adb (Debug_Flag_C): Reorganize the output
6499         controlled by the -gnatdc switch. It now occurs on entry/exit to the
6500         relevant analysis routines, and calls Indent/Outdent to make the
6501         indentation reflect the nesting level.  Add "helper" routines, since
6502         otherwise lots of "return;" statements would skip the debugging output.
6504 2009-04-17  Arnaud Charlet  <charlet@adacore.com>
6506         * s-taprop-tru64.adb, s-taprop-vms.adb, s-taprop-linux.adb,
6507         s-taprop-solaris.adb, s-taprop-irix.adb, s-taprop-hpux-dce.adb,
6508         s-taprop-posix.adb (Suspend_Until_True): Protect against early wakeup.
6510 2009-04-17  Thomas Quinot  <quinot@adacore.com>
6512         * exp_aggr.adb: Minor code reorganization, no behaviour change.
6514 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
6516         * sem_ch8.adb (Use_One_Type): Handle properly a redundant use type
6517         clause in a unit that is a package body or a subunit, when the previous
6518         clause appears in a spec or a parent.
6520 2009-04-17  Thomas Quinot  <quinot@adacore.com>
6522         * sinfo.ads, exp_aggr.adb, exp_aggr.ads: Minor reformatting
6524         * exp_ch7.adb: Minor reformatting
6526 2009-04-17  Bob Duff  <duff@adacore.com>
6528         * exp_ch4.adb (Expand_Allocator_Expression): In an initialized
6529         allocator, check that the expression of the qualified expression obeys
6530         the constraints of the subtype of the qualified expression.
6532 2009-04-17  Thomas Quinot  <quinot@adacore.com>
6534         * sprint.adb (Write_Itype): Add handling of enumeration subtypes.
6536 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
6538         * exp_ch4.adb (Expand_Allocator_Expression): Apply constraint check to
6539         aggregate, using context imposed by subtype mark in allocator.
6541 2009-04-17  Pascal Obry  <obry@adacore.com>
6543         * gnat_rm.texi: Document GNAT_CODE_PAGE environment variable
6545 2009-04-17  Nicolas Roche  <roche@adacore.com>
6547         * initialize.c (__gnat_initialize): remove MAX_PATH limitation on each
6548         argument length.
6550 2009-04-17  Gary Dismukes  <dismukes@adacore.com>
6552         * sem_elim.adb (Eliminate_Error_Msg): Minor change to error message to
6553         cover both calls and attribute references ("call" => "reference").
6555 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
6557         * sem_ch3.adb (Analyze_Subtype_Declaration): A subtype of an access
6558         type for which Storage_Size is set to 0 is legal in a pure unit.
6560 2009-04-17  Thomas Quinot  <quinot@adacore.com>
6562         * exp_ch7.adb: Minor reformatting
6564 2009-04-17  Robert Dewar  <dewar@adacore.com>
6566         * restrict.adb (Check_Restriction_No_Dependence): Don't check
6567         restriction if outside main extended source unit.
6569         * sem_ch10.adb (Analyze_With_Clause): Check No_Dependence restriction
6570         for parents of child units as well as the child unit itself.
6572 2009-04-17  Bob Duff  <duff@adacore.com>
6574         * checks.ads: Minor comment fix
6576         * exp_aggr.ads: Minor comment fix
6578 2009-04-17  Nicolas Roche  <roche@adacore.com>
6580         * adaint.c: Improve cross compiler detection and handling.
6582 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
6584         * exp_ch4.adb (Expand_Concatenation): Do not use calls at -Os.
6586 2009-04-17  Pascal Obry  <obry@adacore.com>
6588         * mingw32.h: Add S2WSC and WS2SC macros to convert to/from
6589         CurrentCodePage.
6591         * adaint.h: Encoding_Unspecified is now defined. Corresponds to the
6592         value when no encoding form paramter is set on Text_IO services.
6594         * adaint.c: CurrentCodePage new variable on Windows.
6595         Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
6596         ones.
6598         * mkdir.c: Use new macros S2WSC and WS2SC instead of the UTF-8 oriented
6599         ones.
6601         * initialize.c: Initialize CurrentCodePage depending on GNAT_CODE_PAGE
6602         environment variable value. Default is UTF-8.
6604         * s-crtl.ads: Filename_Encoding add Unspecified in the enumeration type.
6605         fopen and freopen encoding parameter is now set to Unspecified.
6606         The default value is in this case UTF-8 (as it was before) but
6607         use the new macros that convert to/from the code page set
6608         at runtime (CurrentCodePage).
6610         * s-fileio.adb: When no encoding specified use Unspecified value.
6612 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
6614         * atree.adb, atree.ads: Remove dead code.
6616 2009-04-17  Arnaud Charlet  <charlet@adacore.com>
6618         * gcc-interface/Make-lang.in: Update dependencies.
6620 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
6622         * sem_ch3.adb (Access_Subprogram_Definition): Additional checks on
6623         illegal uses of incomplete types in formal parts and return types.
6625         * sem_ch6.adb (Process_Formals): Taft-amendment types are legal in
6626         access to subprograms.
6628         * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to use
6629         Taft-amendment types as the return type of an access_to_function type.
6631         * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
6632         type for access_to_subprograms. The check is performed on package exit.
6634 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
6636         * atree.ads, atree.adb: Move New_Copy_Tree.to sem_util.
6638         * nlists.ads, nlists.adb: Move New_Copy_List to sem_util.
6639         
6640         * lib-load.adb: Use Copy_Separate_Tree rather than New_Copy_Tree
6642         * sem_util.ads, sem_util.adb: New_Copy_Tree and New_Copy_List belong in
6643         semantic units, because the handling of itypes in the copied tree
6644         requires semantic information that does not belong in atree.
6646 2009-04-17  Robert Dewar  <dewar@adacore.com>
6648         * par-ch6.adb: Minor reformatting
6650         * prj.adb: Minor reformatting
6652 2009-04-17  Gary Dismukes  <dismukes@adacore.com>
6654         * par-ch6.adb (P_Subprogram): Overriding indicators should be allowed
6655         on protected subprogram bodies, so exclude the case where Pf_Flags is
6656         Pf_Decl_Pbod from the error check.
6658         * par-ch9.adb (P_Protected_Operation_Items): Permit overriding
6659         indicators on subprograms in protected bodies, and proceed with parsing
6660         the subprogram.
6662         * sem_ch6.adb (Verify_Overriding_Indicator): Exclude protected
6663         subprograms from the check for primitiveness on subprograms with
6664         overriding indicators.
6665         (Check_Overriding_Indicator): Include protected subprograms in the
6666         style check for missing overriding indicators.
6668 2009-04-17  Tristan Gingold  <gingold@adacore.com>
6670         * init.c: Fix stack checking for x86 Darwin.
6672 2009-04-17  Vincent Celier  <celier@adacore.com>
6674         * prj-attr.adb: New project level attribute Object_File_Suffix
6675         (<language>).
6676         
6677         * prj-nmsc.adb (Add_Source): Use the object file suffix to get the
6678         object file name
6679         (Process_Compiler): Process attribute Object_File_Suffix
6681         * prj.adb (Object_Name): Use suffix Object_File_Suffix instead of
6682         platform suffix, when specified.
6684         * prj.ads (Language_Config): New component Object_File_Suffix,
6685         defaulted to No_Name.
6686         (Object_Name): New parameter Object_File_Suffix, defaulted to No_Name
6688         * snames.ads-tmpl: New standard name Object_File_Suffix
6690 2009-04-17  Robert Dewar  <dewar@adacore.com>
6692         * gnat_rm.texi: Add documentation about No_Streams restriction
6694         * sem_attr.adb (Check_Stream_Attribute): Exclude implicit stream
6695         attributes when checking No_Streams restriction.
6697 2009-04-17  Thomas Quinot  <quinot@adacore.com>
6699         * rtsfind.ads (RE_Request_Destroy): New PolyORB s-parint entity.
6701         * exp_dist.adb (PolyORB_Support.Build_General_Calling_Stubs): Add
6702         missing calls to RE_Request_Destroy to deallocate request objects after
6703         use.
6705 2009-04-17  Nicolas Setton  <setton@adacore.com>
6707         * link.c: Fix support for passing a response file under Darwin.
6709 2009-04-17  Emmanuel Briot  <briot@adacore.com>
6711         * prj.adb (Free): new subprogram.
6713 2009-04-17  Ed Schonberg  <schonberg@adacore.com>
6715         * sem_ch3.adb: additional initialization on incomplete subtypes.
6716         
6717         * sem_ch6.adb (Process_Formals): if the subprogram is in the private
6718         part and one of the formals is an incomplete tagged type, attach to
6719         list of private dependends of the type for later validation.
6721         * sem_ch7.adb (Uninstall_Declarations): diagnose attempts to declare
6722         primitive operations of a Taft-amendmment type.
6724         * freeze.adb (Freeze_Entity): Remove tests on formals of an incomplete
6725         type. The check is performed on package exit, possibly after the
6726         subprogram is frozen.
6728 2009-04-17  Vincent Celier  <celier@adacore.com>
6730         * prj-nmsc.adb (Get_Directories): Get the object and exec directory
6731         before looking for source directories, but make sure that there are nil
6732         if they are not explicitely declared and there is explicitely no
6733         sources in the project.
6735 2009-04-17  Pascal Obry  <obry@adacore.com>
6737         * initialize.c: Set gnat_argv with UTF-8 encoded strings on Windows.
6739         * init.c: Fix minor typo and style fix.
6741 2009-04-17  Robert Dewar  <dewar@adacore.com>
6743         * a-except.adb, a-except-2005.adb: Add PE_Address_Of_Intrinsic
6745         * sem_attr.adb (Analyze_Attribute, case Address): Use
6746         PE_Address_Of_Intrinsic.
6748         * types.ads: Add PE_Address_Of_Intrinsic
6750         * types.h: Add PE_Address_Of_Intrinsic
6752 2009-04-17  Nicolas Setton  <setton@adacore.com>
6754         * gcc-interface/Makefile.in: Under darwin, build shared libraries
6755         with install_name starting with "@rpath/".
6757 2009-04-17  Nicolas Setton  <setton@adacore.com>
6759         * link.c: Add darwin section
6761 2009-04-16  Robert Dewar  <dewar@adacore.com>
6763         * g-pehage.adb: Minor reformatting
6765         * sem_ch12.adb: Minor reformatting
6767         * exp_dist.adb: Minor reformatting
6769         * bindgen.adb: Minor style fixes.
6771 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
6773         * sem_eval.adb (Eval_Indexed_Component): Extend constant-folding of
6774         indexed components to the case where the prefix is a static string
6775         literal.
6777 2009-04-16  Javier Miranda  <miranda@adacore.com>
6779         * exp_ch3.adb (Expand_N_Object_Declaration): In case of build-in-place
6780         objects avoid any further expansion of the expression initializing the
6781         object.
6783 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
6785         * sem_ch12.adb (Preanalyze_Actuals): If the instance is a child unit
6786         that hides an outer homograph, make that homograph invisible when
6787         analyzing the actuals, to to prevent illegal direct visibility on it.
6789 2009-04-16  Eric Botcazou  <ebotcazou@adacore.com>
6791         * g-pehage.adb (Initialize): Fix off-by-one error.
6793 2009-04-16  Tristan Gingold  <gingold@adacore.com>
6795         * init.c: Detect real stack overflow on Darwin.
6797         * system-darwin-x86.ads: Use stack probing on darwin x86.
6799 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
6801         * sem_attr.adb (Analyze_Attribute, case 'Address): It is illegal to
6802         take the address of an intrinsic subprogram.
6804 2009-04-16  Arnaud Charlet  <charlet@adacore.com>
6806         * gcc-interface/Makefile.in: Change g-trasym to g-trasym-unimplemented
6807         for the targets where GNAT.Traceback.Symbolic is not supported.
6809 2009-04-16  Vincent Celier  <celier@adacore.com>
6811         * g-trasym-unimplemented.ads, g-trasym-unimplemented.adb: New file.
6813         * g-trasym.ads: Update comments.
6815 2009-04-16  Vasiliy Fofanov  <fofanov@adacore.com>
6817         * tracebak.c (STOP_FRAME): Verify validity of the current address
6818         before dereferencing.
6820 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
6822         * sprint.adb (Write_Itype): If the itype is an array subtype, preserve
6823         the original location of the index expressions and the index subtypes,
6824         to prevent spurious out-of-scope references in gigi.
6826 2009-04-16  Tristan Gingold  <gingold@adacore.com>
6828         * init.c, s-osinte-darwin.ads, system-darwin-x86_64.ads:
6829         Add support for stack checking on darwin.
6831 2009-04-16  Vincent Celier  <celier@adacore.com>
6833         * prj-attr.adb: New attribute Runtime_Source_Dir
6835         * prj-nmsc.adb (Process_Project_Level_Array_Attributes): Process
6836         attribute Runtime_Source_Dir.
6837         (Check_Naming_Schemes): Give default values to out parameters to avoid
6838         invalid data.
6840         * prj.ads (Language_Config): New component Runtime_Source_Dir
6842         * snames.ads-tmpl: New standard name Runtime_Source_Dir
6844 2009-04-16  Pascal Obry  <obry@adacore.com>
6846         * adaint.h, adaint.c (__gnat_rmdir): New routine.
6847         Simple wrapper routines used to convert to proper encoding on
6848         Windows.
6850         * s-crtl.ads: Use __gnat_rmdir instead of direct call to the C library.
6852         * g-dirope.adb (Remove_Dir): Fix a bug, the root directory was removed
6853         twice.
6855 2009-04-16  Pascal Obry  <obry@adacore.com>
6857         * s-crtl.ads, s-os_lib.adb: Minor code clean-up.
6859 2009-04-16  Thomas Quinot  <quinot@adacore.com>
6861         * snames.ads-tmpl (Name_Defined): New predefined name for use by the
6862         integrated preprocessor.
6864         * prep.ads, prep.adb (Setup_Hooks): New subprogram.
6865         (Initialize): Split into two subprograms, Initialize (to be called
6866         prior to compiler command line processing) and Setup_Hooks (to be called
6867         later on when the first source file is loaded).
6869         * gprep.adb: Change call to Prep.Initialize to call to Prep.Setup_Hooks.
6870         Add call to Prep.Initialize.
6872         * sinput-l.adb, prepcomp.adb: Change call to Prep.Initialize to call
6873         to Prep.Setup_Hooks.
6875 2009-04-16  Pascal Obry  <obry@adacore.com>
6877         * adaint.h, adaint.c (__gnat_chdir): New routine.
6878         Simple wrapper routines used to convert to proper encoding on
6879         Windows.
6881         * s-crtl.ads: Use __gnat_chdir instead of direct call to the C library.
6883         * a-direct.adb, g-dirope.adb: Use chdir from System.CRTL.
6885 2009-04-16  Quentin Ochem  <ochem@adacore.com>
6887         * sinput-p.adb (Clear_Source_File_Table): Use Sinput.Initialize instead
6888         of Source.Init.
6890 2009-04-16  Eric Botcazou  <ebotcazou@adacore.com>
6892         * a-convec.ads (Is_Empty): Mark inline.
6894 2009-04-16  Nicolas Roche  <roche@adacore.com>
6896         * init.c (__gnat_init_float): Initialize FPU on x86_64 windows
6898 2009-04-16  Thomas Quinot  <quinot@adacore.com>
6900         * prepcomp.adb: Minor reformatting
6902 2009-04-16  Jerome Lambourg  <lambourg@adacore.com>
6904         * sem_prag.adb (Process_Import_Or_Interface): With .NET,
6905         Access_Subprogram types can also be imported.
6906         (Check_Form_Of_Interface_Name): Accept '/' character in entity CIL
6907         names.
6909 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
6911         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration):
6912         preserve homonym chain when the declaration is rewritten into a
6913         renaming declaration, in order to preserve visibility structure.
6915 2009-04-16  Jerome Lambourg  <lambourg@adacore.com>
6917         * sem_prag.adb (Analyze_Pragma): Make sure that pragma pack is not
6918         taken into account for VM targets.
6920 2009-04-16  Hristian Kirtchev  <kirtchev@adacore.com>
6922         * g-calend.ads, g-calend.adb (Week_In_Year): Now calls
6923         Year_Week_In_Year.
6924         (Year_Week_In_Year): New routine which contains the original code from
6925         Week_In_Year. Add the missing special case for January 1st falling on
6926         a Monday.
6928 2009-04-16  Thomas Quinot  <quinot@adacore.com>
6930         * exp_dist.adb (Build_From_Any_Call): For a subtype that is a generic
6931         actual type, use the base type to build the To_Any function.
6932         (Build_From_Any_Function): Remove junk, useless subtype conversion.
6934 2009-04-16  Thomas Quinot  <quinot@adacore.com>
6936         * exp_ch9.adb, exp_code.adb, tbuild.adb, sem_case.adb,
6937         restrict.adb: Minor code reorganization (use
6938         Add_{Char,Str}_To_Name_Buffer instead of inlining it by hand).
6940 2009-04-16  Bob Duff  <duff@adacore.com>
6942         * exp_ch6.ads, exp_ch6.adb (Is_Build_In_Place_Function_Return): Remove,
6943         unused.
6945 2009-04-16  Thomas Quinot  <quinot@adacore.com>
6947         * sem_ch4.adb: Minor reformatting
6949         * adaint.c: Remove junk duplicated code.
6951         * sem_ch3.adb: Minor reformatting
6953         * exp_dist.adb: Minor comment rewording
6955 2009-04-16  Robert Dewar  <dewar@adacore.com>
6957         * gnat_rm.texi: Document effect of Assume_No_Invalid_Values and -gnatVa
6958         used together.
6960 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
6962         * sem_ch4.adb (Find_Equality_Types): Filter out types that are not
6963         usable before calling Add_One_Interp, to resolve spurious ambiguities.
6965 2009-04-16  Robert Dewar  <dewar@adacore.com>
6967         * Make-lang.in: Add entries for s-conca?.o
6969         * Makefile.rtl: Add entries for s-conca?
6971         * debug.adb: Add debug flags -gnatd.c and -gnatd.C to control behavior
6972         of concatenation expansion
6974         * exp_ch4.adb (Expand_Concatenation): Generate calls for certain
6975         string cases instead of expanding assignments inline.
6977         * opt.ads (Optimize_Size): New flag
6979         * s-conca2.ads, s-conca2.adb, s-conca3.adb, s-conca3.ads,
6980         s-conca4.adb, s-conca4.ads, s-conca5.adb, s-conca5.ads, s-conca6.adb,
6981         s-conca6.ads, s-conca7.ads, s-conca7.adb, s-conca8.adb, s-conca8.ads,
6982         s-conca9.adb, s-conca9.ads: New file.
6984 2009-04-16  Robert Dewar  <dewar@adacore.com>
6986         * exp_ch6.adb: Add comments
6988         * rtsfind.ads: Add entries for s-conca? routines
6990 2009-04-16  Arnaud Charlet  <charlet@adacore.com>
6992         * gcc-interface/Make-lang.in: Update dependencies.
6994         * gcc-interface/Makefile.in: Update translation for vms.
6996 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
6998         * sem_ch12.adb (Map_Formal_Package_Entities): renamed from Map_Entities
6999         and made global, to be used when installing parents of a child
7000         instance, to provide mappings for entities declared in formal packages
7001         of ancestor units. Now called from Install_Formal_Packages.
7003 2009-04-16  Doug Rupp  <rupp@adacore.com>
7005         * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events with others
7006         notation for clarity.
7008         * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-vms.adb,
7009         s-taprop-mingw.adb, s-taprop-linux.adb, s-taprop-solaris.adb,
7010         s-taprop-irix.adb, s-taprop-hpux-dce.adb, s-taprop-posix.adb
7011         (Initialize): Initialize Known_Tasks with Environment task.
7013         * s-taskin.ads (Task_States): Move new states to end for the sake of
7014         GDB compatibility.
7016         * s-tassta.adb (Task_Wrapper): Fix comment about Enter_Task.
7018 2009-04-16  Ed Schonberg  <schonberg@adacore.com>
7020         * exp_ch9.adb (Expand_N_Protected_Type_Declaration): If a protected
7021         operation has an inline pragma, propagate the flag to the internal
7022         unprotected subprogram.
7024 2009-04-16  Doug Rupp  <rupp@adacore.com>
7026         * s-taprop-vxworks.adb, s-taprop-tru64.adb, s-taprop-mingw.adb,
7027         s-taprop-linux.adb, s-taprop-solaris.adb, s-taprop-irix.adb, 
7028         s-taprop-hpux-dce.adb, s-taprop-posix.adb
7029         (Enter_Task): Move Known_Tasks initialization to s-tassta.adb
7031         * s-taprop-vms.adb (Enter_Task): Likewise.
7032         (Initialize): Import DBEXT, Debug_Register. Register DBGEXT callback.
7034         * s-tassta.adb (Activate_Tasks): After task creation set state to
7035         Activating, vice Runnable. Initialize Known_Tasks, moved here from
7036         s-taprop.adb (Enter_Task). Set Debug_Event_Activating for debugger.
7037         Set state to Runnable after above.
7038         (Task_Wrapper): Set Debug_Event_Run. In exception block set
7039         Debug_Event_Terminated.
7041         * s-taskin.ads (Task_States): Add new states Activiting and
7042         Activator_Delay_Sleep.
7043         (Bit_Array, Debug_Event_Array): New types.
7044         (Global_Task_Debug_Event_Set: New flag.
7045         (Common_ATCB): New field Debug_Events.
7047         * s-taskin.adb (Initialize_ATCB): Initialize Debug_Events.
7049         * s-tasren.adb (Timed_Selective_Wait): Set Activator_Delay_Sleep vice
7050         Activator_Sleep.
7052         * s-tasini.adb (Locked_Abort_To_Level): Add case alternatives for when
7053         Activating and when Acceptor_Delay_Sleep.
7055         * s-tasdeb.ads: Add constants for Debug_Events.
7056         (Debug_Event_Kind_Type): New subtype.
7057         (Signal_Debug_Event): New subprogram.
7059         * s-tasdeb.adb (Signal_Debug_Event): New null subprogram.
7061 2009-04-16  Thomas Quinot  <quinot@adacore.com>
7063         * sem_elim.adb: Minor reformatting
7065         * freeze.adb: Minor reformatting
7067         * exp_ch4.adb: Minor reformatting
7069 2009-04-16  Emmanuel Briot  <briot@adacore.com>
7071         * prj-nmsc.adb (Path_Name_Of): fix memory leak
7073 2009-04-16  Robert Dewar  <dewar@adacore.com>
7075         * sinfo.ads (Backwards_OK, Forwards_OK): Clarify documentation
7077 2009-04-16  Vincent Celier  <celier@adacore.com>
7079         * fmap.adb (Initialize): Show the current line when the mapping file
7080         is detected as "incorrectly formatted".
7082 2009-04-16  Robert Dewar  <dewar@adacore.com>
7084         * sem_ch12.adb: Minor reformatting
7086         * sem_ch5.adb: Minor comment addition
7088         * sem_util.adb: Minor reformatting
7090         * sinput-p.adb: Minor reformatting
7091         Add missing pragma Warnings (On)
7093 2009-04-16  Ed Falis  <falis@adacore.com>
7095         * s-vxwext-kernel.adb: (ERROR): deleted unused constant
7097 2009-04-16  Vincent Celier  <celier@adacore.com>
7099         * ali-util.adb: Minor comment spelling error fix
7101 2009-04-16  Eric Botcazou  <ebotcazou@adacore.com>
7103         * exp_ch5.adb (Expand_Assign_Array): For the GCC back-end, do not
7104         generate an assignment loop in case of overlap.
7106 2009-04-16  Olivier Hainque  <hainque@adacore.com>
7108         * gnat_ugn.texi (gnatmem description): Make it explicit that
7109         gnatmem is designed to work in association with static runtime
7110         library only.
7112 2009-04-16  Thomas Quinot  <quinot@adacore.com>
7114         * sem_type.adb: Minor reformatting
7116 2009-04-16  Hristian Kirtchev  <kirtchev@adacore.com>
7118         * s-osprim-darwin.adb, s-osprim-posix.adb (Clock): Add comment
7119         concerning return codes of gettimeofday and return value check.
7121 2009-04-16  Ed Falis  <falis@adacore.com>
7123         * s-vxwext-kernel.ads (Int_Lock, Int_Unlock): set to convention C so
7124         body can be renaming of imported routines.
7126 2009-04-16  Vasiliy Fofanov  <fofanov@adacore.com>
7128         * s-asthan-vms-alpha.adb: Disable warnings on alignment in a more
7129         targeted fashion.
7131 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
7133         * exp_ch9.adb: Comment improvements.
7134         (Build_Entry_Family_Name): Add parentheses around the index of a entry
7135         family member.
7137 2009-04-15  Bob Duff  <duff@adacore.com>
7139         * sem_warn.adb (Check_Infinite_Loop_Warning): Catch cases like
7140         "while X /= null loop" where X is unchanged inside the loop. We were
7141         not warning in this case, because of the pointers -- we feared that the
7142         loop variable could be updated via a pointer, if there are any pointers
7143         around the place. But that is impossible in this case.
7145         * sem_util.adb (May_Be_Lvalue): This routine was overly pessimistic in
7146         the case of dereferences. In X.all, X cannot be an l-value. We now
7147         catch that case (and implicit dereferences, too).
7149 2009-04-15  Vincent Celier  <celier@adacore.com>
7151         * sinput-p.ads, sinput-p.adb (Clear_Source_File_Table): New procedure
7153 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7155         * sem_ch12.adb (Is_Actual_Of_Previous_Formal): Make fully recursive.
7156         From code reading.
7157         (Analyze_Package_Instantiation): If generic unit in child instance is
7158         the same as generic unit in parent instance, look for an outer homonym
7159         to locate the desired generic.
7161 2009-04-15  Bob Duff  <duff@adacore.com>
7163         * sem_ch5.adb (Analyze_Loop_Statement): Don't check for infinite loop
7164         warnings unless the loop comes from source, because checking generated
7165         loops is a waste of time, and makes it harder to debug
7166         Check_Infinite_Loop_Warning.
7168         * sem_warn.adb (Check_Infinite_Loop_Warning): If the local variable
7169         tested in the while loop is a renaming, do not warn. Otherwise, we get
7170         false alarms, because it's usually renaming something that we can't
7171         deal with (an indexed component, a global variable, ...).
7173         * gnat_rm.texi: Fix typo
7175 2009-04-15  Thomas Quinot  <quinot@adacore.com>
7177         * sem_ch6.adb: Minor reformatting
7179 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
7181         * exp_ch7.adb (Expand_Ctrl_Function_Call): Check for the case where the
7182         immediate parent of the controlled function call is a component
7183         association.
7185 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7187         * sem_ch8.adb (Use_One_Type): If the type is tagged, indicate that the
7188         corresponding class-wide type is also in use.
7190 2009-04-15  Thomas Quinot  <quinot@adacore.com>
7192         * frontend.adb: Minor comment fix
7194 2009-04-15  Robert Dewar  <dewar@adacore.com>
7196         * gnatchop.adb (BOM_Length): New global variable
7197         (Write_Unit): Add new parameter Write_BOM
7198         (Write_Chopped_Files): Check for BOM and set Write_BOM for call
7199         to Write_Unit
7201         * gnat_ugn.texi: Add note on propagation of BOM by gnatchop
7203 2009-04-15  Geert Bosch  <bosch@adacore.com>
7205         * system-mingw-x86_64.ads, system-darwin-x86_64.ads
7206         (Backend_Overflow_Checks): Set to True.
7208 2009-04-15  Gary Dismukes  <dismukes@adacore.com>
7210         * par-ch3.adb (P_Type_Declaration): Issue an error if the synchronized
7211         keyword is given in a record extension.
7213 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
7215         * exp_ch7.adb (Expand_Ctrl_Function_Call): Procede with the expansion
7216         of a controlled function call in the context of a record aggregate.
7217         This does not apply to array aggregates since the call will be expanded
7218         into assignments.
7220 2009-04-15  Ed Falis  <falis@adacore.com>
7222         * s-osinte-vxworks-kernel.adb, s-osinte-vxworks.adb,
7223         s-osinte-vxworks.ads s-vxwext.ads, s-vxwext-kernel.adb,
7224         s-vxwext-kernel.ads, s-vxwext-rtp.ads, s-vxwext-rtp.adb: Reorganize
7225         s-osinte-vxworks* and s-vxwext*.
7227 2009-04-15  Arnaud Charlet  <charlet@adacore.com>
7229         * gcc-interface/Make-lang.in: Update dependencies.
7231         * gcc-interface/Makefile.in: Reorganization of s-osinte-vxworks*
7232         and s-vxwext*.
7234 2009-04-15  Robert Dewar  <dewar@adacore.com>
7236         * sem_ch13.adb (Unchecked_Conversions): Store source location instead
7237         of node for location for warning messages.
7239         * gnatchop.adb: Minor reformatting
7241 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7243         * exp_ch6.adb: additional guard for renaming declarations for in
7244         parameters of an array type.
7246 2009-04-15  Robert Dewar  <dewar@adacore.com>
7248         * sem_eval.adb (Get_Static_Length): Go to origin node for array bounds
7249         in case they were rewritten by expander (Force_Evaluation).
7251         * targparm.adb (Get_Target_Parameters): Correct check for
7252         Suppress_Exception_Locations.
7254 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7256         * exp_ch6.adb (Expand_Inlined_Call): If an in-parameter in a call to be
7257         inlined  is of an array type that is not bit-packed, use a renaming
7258         declaration to capture its value, rather than a constant declaration.
7260 2009-04-15  Robert Dewar  <dewar@adacore.com>
7262         * rtsfind.adb: Minor reformatting.
7264 2009-04-15  Emmanuel Briot  <briot@adacore.com>
7266         * prj-part.adb, prj-tree.adb, prj-tree.ads (Restore_And_Free): renames
7267         Restore, and free the saved context.
7269 2009-04-15  Gary Dismukes  <dismukes@adacore.com>
7271         * sem_ch3.adb (Analyze_Private_Extension_Declaration): Move error check
7272         for illegal private extension from a synchronized interface parent in
7273         front of check for illegal limited extension so that limited extension
7274         from a synchronized interface will be rejected.
7275         (Check_Ifaces): Check that a private extension that has a synchronized
7276         interface as a progenitor must be explicitly declared synchronized.
7277         Also check that a record extension cannot derive from a synchronized
7278         interface.
7280 2009-04-15  Pascal Obry  <obry@adacore.com>
7282         * adaint.h (__gnat_unlink): Add spec.
7283         (__gnat_rename): Likewise.
7285 2009-04-15  Vincent Celier  <celier@adacore.com>
7287         * prj-nmsc.adb: Minor spelling error corrections in error messages
7289 2009-04-15  Robert Dewar  <dewar@adacore.com>
7291         * sinfo.ads: Minor comment update
7293         * opt.ads: Minor comment updates
7295         * checks.adb (Enable_Overflow_Check): Do not set Do_Overflow_Check for
7296         modular type.
7298 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7300         * exp_disp.ads, exp_disp.adb (Register_Primitive): Is now a function
7301         that generates the code needed to update a dispatch table when a
7302         primitive operation is declared with a subprogram body without previous
7303         spec. Insertion of the generated code is responsibility of the caller.
7304         (Make_DT): When building static tables, append the code created by
7305         Register_Primitive to update a secondary table after it has been
7306         constructed.
7308         * exp_ch3.adb, exp_ch6.adb: use new version of Register_Primitive.
7310         * sem_disp.adb (Check_Dispatching_Operation): Call Register_Primitive
7311         on an overriding operation that implements an interface operation only
7312         if not building static dispatch tables.
7314 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
7316         * a-caldel-vms.adb (To_Duration): Declare a "safe" end of time which
7317         does not cause overflow when converted to Duration. Use the safe value
7318         as the maximum allowable time delay..
7320 2009-04-15  Jerome Lambourg  <lambourg@adacore.com>
7322         * g-comlin.adb (Set_Command_Line): When adding a switch with attached
7323         parameter, specify that the delimiter is NUL, otherwise "-j2" will be
7324         translated to "-j 2".
7326 2009-04-15  Bob Duff  <duff@adacore.com>
7328         * rtsfind.adb (Maybe_Add_With): Split out procedure to add implicit
7329         with_clauses, to avoid code duplication. Change this processing so we
7330         always add a with_clause on the main unit if needed.
7332 2009-04-15  Pascal Obry  <obry@adacore.com>
7334         Add support for Win32 native encoding for delete/rename routines.
7335         
7336         * adaint.c (__gnat_unlink): New routine.
7337         (__gnat_rename): New routine.
7338         Simple wrapper routines used to convert to proper encoding on
7339         Windows.
7341         * s-os_lib.adb: Use __gnat_unlink and __gnat_rename instead of direct
7342         call to the C library.
7344         * g-sercom-mingw.adb, s-win32.ads: Update Win32 binding.
7346 2009-04-15  Robert Dewar  <dewar@adacore.com>
7348         * s-tassta.adb: Minor reformatting
7350 2009-04-15  Robert Dewar  <dewar@adacore.com>
7352         * frontend.adb (Frontend): Set proper default for
7353         Warn_On_Non_Local_Exception.
7355         * opt.ads (Exception_Handler_Encountered): New flag
7356         (No_Warn_On_Non_Local_Exception): New flag
7358         * par-ch11.adb (P_Exception_Handler): Set Exception_Handler_Encountered
7360         * sem_warn.adb (Set_Warning_Switch): Set No_Warn_On_Non_Local_Exception
7361         (Set_Dot_Warning_Switch): Set No_Warn_On_Non_Local_Exception
7363 2009-04-15  Cyrille Comar  <comar@adacore.com>
7365         * s-tassta.adb, a-exextr.adb, a-elchha.adb
7366         (Ada.Exception.Last_Chance_Handler): Do not print unhandled exception
7367         message when exception traces are active since it would generate
7368         redundant information.
7369         (Exception_Traces.Notify_Exception): put message output by a critical
7370         section to avoid unsynchronized output.
7371         (Trace_Unhandled_Exception_In_Task): put message output by a critical
7372         section to avoid unsynchronized output.
7374 2009-04-15  Emmanuel Briot  <briot@adacore.com>
7376         * g-comlin.adb, prj-tree.adb, prj-tree.ads, prj.adb, prj.ads
7377         (Free): New subprogram.
7379 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
7381         * a-calend.adb: Add new constant Nanos_In_Four_Years.
7382         (Formatting_Operations.Time_Of): Change the way four year chunks of
7383         nanoseconds are added to the intermediate result.
7385 2009-04-15  Nicolas Setton  <setton@adacore.com>
7387         * sysdep.c: Add __APPLE__ in the list of systems where get_immediate
7388         does not need to wait for a carriage return.
7390 2009-04-15  Tristan Gingold  <gingold@adacore.com>
7392         * bindgen.adb: Do not generate adafinal if No_Finalization restriction
7393         is set.
7395 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7397         * freeze.adb (Freeze_Entity): improve error message for improper use of
7398         incomplete types.
7399         Diagnose additional illegal uses of incomplete types in formal parts.
7400         appearing in formal parts.
7402         * sem_ch6.adb (Process_Formals, Analyze_Return_Type): ditto.
7404 2009-04-15  Robert Dewar  <dewar@adacore.com>
7406         * exp_ch4.adb (Expand_N_Allocator): Install test for object too large.
7408 2009-04-15  Nicolas Roche  <roche@adacore.com>
7410         * adaint.c: Add function __gnat_lwp_self that retrieves the LWP of the
7411         current thread.
7413         * s-osinte-linux.ads: Import the __gnat_lwp_self function as lwp_self
7415         * s-taprop-linux.adb (Enter_Task): Store the LWP in the TCB
7417 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7419         * sem_ch4.adb: improve error message on exponentiation.
7421 2009-04-15  Hristian Kirtchev  <kirtchev@adacore.com>
7423         * a-calend.adb: Move constant Epoch_Offset from package
7424         Conversion_Operations to top level.
7425         (Delay_Operations.To_Duration): Define a constant which represents
7426         "end of time" and use it as a guard against very distant delay dates.
7427         Protect the code against overflow when performing the origin shift to
7428         Unix time.
7430 2009-04-15  Robert Dewar  <dewar@adacore.com>
7432         * sem_prag.adb: Minor reformatting.
7434         * sem_type.adb: Minor reformatting
7436 2009-04-15  Javier Miranda  <miranda@adacore.com>
7438         * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Add missing
7439         support to check eliminated subprograms.
7441         * sem_elim.ads (Eliminate_Error_Msg): Update documentation.
7443         * sem_elim.adb (Set_Eliminated): Add support for elimination of
7444         dispatching subprograms.
7446         * exp_disp.adb (Make_DT): Minor code cleanup when freezing primitive
7447         operations. Initialize with "null" the slots of eliminated dispaching
7448         primitives.
7449         (Write_DT): Add output for eliminated primitives.
7451         * sem_disp.adb (Check_Dispatching_Call): Check eliminated primitives.
7453 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7455         * sem_ch8.adb (Use_One_Type): If both clauses appear on the same unit,
7456         the second is redundant, regardless of scopes.
7458 2009-04-15  Vincent Celier  <celier@adacore.com>
7460         * prj-nmsc.adb (Get_Directories): Check for sources before checking
7461         the object directory as when there are no sources, they may not be any
7462         object directory.
7464         * make.adb (Gnatmake): Do not attempt to get the path name of the exec
7465         directory, when there are no exec directory.
7467 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7469         * sem_type.adb (Remove_Conversions): In order to resolve spurious
7470         ambiguities, refine removal of universal interpretations from complex
7471         expressions with literal arguments, when some numeric operators have
7472         been declared abstract.
7474 2009-04-15  Ed Falis  <falis@adacore.com>
7476         * init.c: Map SIGSEGV to Storage_Error for all targets for uniformity
7477         and backward compatibility for targets using probing for stack overflow
7479 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7481         * sem_prag.adb (Analyze_Pragma, case 'Obsolescent): Pragma is legal
7482         after any declaration, including renaming declarations.
7484 2009-04-15  Arnaud Charlet  <charlet@adacore.com>
7486         * gcc-interface/Make-lang.in: Update dependencies.
7488         * gcc-interface/Makefile.in: Fix VxWorks target pairs.
7489         Update xenomai target pairs.
7491 2009-04-15  Javier Miranda  <miranda@adacore.com>
7493         * exp_ch4.adb (Expand_N_Allocator): Code cleanup.
7495         * sem_ch6.adb (Check_Anonymous_Return): Add missing support for
7496         functions returning anonymous access to class-wide limited types. Mark
7497         also the containing scope as a task master.
7499         * sem_ch8.adb (Restore_Scope_Stack): Add missing management for
7500         limited-withed packages. Required to restore their visibility after
7501         processing packages associated with implicit with-clauses.
7503         * exp_ch3.adb (Build_Class_Wide_Master): Avoid marking masters
7504         associated with return statements because this work is now done by
7505         Check_Anonymous_Return.
7506         (Build_Master): Code cleanup.
7508 2009-04-15  Thomas Quinot  <quinot@adacore.com>
7510         * sem_warn.ads: Minor reformatting
7512 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7514         * sem_ch3.adb: better error message for illegal interfaces
7516         * sem_ch6.adb (Possible_Freeze): Delay freezing a subprogram if a
7517         formal is an incomplete type from a limited_with clause.
7519 2009-04-15  Vincent Celier  <celier@adacore.com>
7521         * prj-nmsc.adb (Locate_Directory): New Boolean parameter
7522         Externally_Built indicating if the project is externally built. If it
7523         is, and --subdirs is specified, but the subdir does not exist, look
7524         for the specified directory, without the subdir.
7526 2009-04-15  Gary Dismukes  <dismukes@adacore.com>
7528         * a-tasatt.adb: Fix typo, plus minor reformatting
7530         * sem_ch3.ads: Add missing hyphen ("class wide" => "class-wide").
7532         * sem_ch10.adb: Add missing hyphen ("use visible" => "use-visible").
7534 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7536         * sem_ch3.adb (Analyze_Private_Extension_Declaration): Verify that a
7537         private extension whose parent is a synchronized interface carries an
7538         explicit synchronized keyword.
7540 2009-04-15  Thomas Quinot  <quinot@adacore.com>
7542         * exp_smem.adb (Make_Shared_Var_Procs): For a protected type,
7543         instantiate generic shared object package with the corresponding
7544         record type.
7546 2009-04-15  Arnaud Charlet  <charlet@adacore.com>
7548         * system-linux-sparc.ads: Remove obsolete entries.
7550 2009-04-15  Thomas Quinot  <quinot@adacore.com>
7552         * s-tasuti.ads: Add ??? comment
7554 2009-04-15  Ed Schonberg  <schonberg@adacore.com>
7556         * sem_ch3.adb (Analyze_Type_Declaration): Create freeze node for access
7557         type even if the designated type comes from a limited_with clause, to
7558         ensure that the symbol for the finalization list of the access type is
7559         created.
7561 2009-04-10  Robert Dewar  <dewar@adacore.com>
7563         * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): Catch more cases
7564         for warning suppression.
7566 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
7568         * sem_ch8.adb (Use_One_Type): If the two use_type clauses are
7569         identical, there is no redudancy to check.
7571 2009-04-10  Gary Dismukes  <dismukes@adacore.com>
7573         * exp_ch5.adb (Expand_N_Extended_Return_Statement): Delete redundant
7574         calls initializing SS_Allocator (which is initialized in following
7575         code).
7576         (Expand_Simple_Function_Return): Add comment about False value for
7577         Comes_From_Source on secondary-stack allocator.
7579         * exp_ch9.adb (Build_Entry_Family_Name): Add comment.
7580         (Build_Entry_Name): Add comment.
7582 2009-04-10  Robert Dewar  <dewar@adacore.com>
7584         * einfo.ads, einfo.adb (Low_Bound_Tested): New name for Low_Bound_Known
7586         * sem_prag.adb (Analyze_Pragma, case Check): Remove check for lower
7587         bound tested, since this is now done more generally in Sem_Res.
7589         * sem_res.adb (Resolve_Comparison_Op): Add call to
7590         Check_Lower_Bound_Tested.
7591         (Resolve_Equality_Op): Add call to Check_Lower_Bound_Tested
7593         * sem_warn.ads, sem_warn.adb (Check_Low_Bound_Tested): New procedure
7594         (Low_Bound_Tested): New name for Low_Bound_Known flag
7596         * exp_ch5.adb: Minor reformatting
7598         * exp_ch4.adb:
7599         Add comments on copying the Comes_From_Source flag for allocators
7601         * sinfo.ads:
7602         Add comments on copying the Comes_From_Source flag for allocators
7604         * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Copy
7605         Comes_From_Source flag from old allocator to new one.
7607 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
7609         * sem_ch6.ads: Address missing documentation query
7611 2009-04-10  Vincent Celier  <celier@adacore.com>
7613         * prj-attr.adb:
7614         Add new Linker attributes Max_Command_Line_Length, Response_File_Format
7615         and Response_File_Switches.
7617         * prj-nmsc.adb (Process_Linker): Process new attributes
7618         Max_Command_Line_Length, Response_File_Format and
7619         Response_File_Switches.
7621         * prj.ads (Response_File_Format): New enumeration type
7622         (Project_Configuration): New componants Max_Command_Line_Length,
7623         Resp_File_Format and Resp_File_Options.
7625         * snames.ads-tmpl: Add new standard names for linking response files
7626         for gprbuild: GNU, None, Object_List, Option_List,
7627         Max_Command_Line_Length, Response_File_Format and
7628         Response_File_Switches.
7630 2009-04-10  Geert Bosch  <bosch@adacore.com>
7632         * system-aix.ads, system-darwin-ppc.ads, system-darwin-x86.ads,
7633         system-freebsd-x86.ads, system-hpux.ads, system-hpux-ia64.ads,
7634         system-irix-n32.ads, system-irix-o32.ads, system-linux-alpha.ads,
7635         system-linux-hppa.ads, system-linux-ia64.ads, system-linux-ppc.ads,
7636         system-linux-s390.ads, system-linux-s390x.ads, system-linux-sh4.ads,
7637         system-linux-sparc.ads, system-linux-x86_64.ads, system-linux-x86.ads,
7638         system-mingw.ads, system-solaris-sparc.ads, system-solaris-sparcv9.ads,
7639         system-solaris-x86.ads, system-tru64.ads, system-vms_64.ads,
7640         system-vms.ads, system-vms-ia64.ads, system-vms-zcx.ads,
7641         system-vxworks-arm.ads, system-vxworks-m68k.ads,
7642         system-vxworks-mips.ads, system-vxworks-ppc.ads,
7643         system-vxworks-sparcv9.ads, system-vxworks-x86.ads
7644         (Backend_Overflow_Checks): Set to True.
7646 2009-04-10  Thomas Quinot  <quinot@adacore.com>
7648         * exp_attr.adb: Minor reformatting
7650 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
7652         * sem_prag.adb (Check_Precondition_Postcondition): Within a generic,
7653         analyze the expression for a postcondition, even if the compiler mode
7654         is Generate_Code.
7656 2009-04-10  Robert Dewar  <dewar@adacore.com>
7658         * sem_aux.adb: Minor reformatting
7660 2009-04-10  Ed Falis  <falis@adacore.com>
7662         * init.c: Change VxWorks 6 stack overflow checking for kernel apps.
7664         * system-vxworks-ppc.ads, system-vxworks-x86.ads: Update header.
7666 2009-04-10  Thomas Quinot  <quinot@adacore.com>
7668         * sem_ch6.ads (Check_Subtype_Conformant): Add ??? comment for
7669         undocumented formal.
7670         Minor reformatting
7672         * a-direio.ads: Fix typo in comment
7674         * sem_ch3.adb, g-dirope.adb, sem_type.adb, sem_ch12.adb, sem_case.adb,
7675         errout.adb, sem_ch4.adb, sem_ch11.adb, exp_dist.adb, sem_ch13.adb:
7676         Use uniform phrasing for comment at start of subprogram body.
7678         * xsnamest.adb: Add note to explain why we use specific names for the
7679         newly generated files instead of generating snames.{ads,adb,h} directly
7681 2009-04-10  Sergey Rybin  <rybin@adacore.com>
7683         * vms_data.ads:
7684         Add qualifier for new gnatstub option '--no-exception'
7686         * gnat_ugn.texi:
7687         Add the description of the new gnatstub option '--no-exception'
7689 2009-04-10  Robert Dewar  <dewar@adacore.com>
7691         * rtsfind.adb: Minor reformatting
7693 2009-04-10  Thomas Quinot  <quinot@adacore.com>
7695         * sem_disp.adb: Minor reformatting.
7696         Add comment pointing to RM clause for the case of warning against a
7697         (failed) attempt at declaring a primitive operation elsewhere than in a
7698         package spec.
7700 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
7702         * sem_ch12.adb (Denotes_Formal_Package): Check whether the package is
7703         an actual for a previous formal package of the current instance.
7705 2009-04-10  Bob Duff  <duff@adacore.com>
7707         * rtsfind.adb (RTE): Put implicit with_clauses on whatever unit needs
7708         them first, rather than on the extended main unit.
7710 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
7712         * sem_ch6.adb (Check_Discriminant_Conformance): If discriminant
7713         specification of full view carries a null exclusion indicator, create
7714         an itype for it, to check for conformance with partial view.
7716 2009-04-10  Bob Duff  <duff@adacore.com>
7718         * rtsfind.ads: Minor code change: make RE_Unit_Table constant.
7720         * rtsfind.adb: Minor comment changes, and remove useless code.
7722         * sinfo.ads: Add ??? comment.
7724 2009-04-10  Vincent Celier  <celier@adacore.com>
7726         * vms_data.ads: Add missing GNAT SYNC VMS qualifiers -main= and -U
7728 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
7730         * exp_attr.adb (Expand_N_Attribute_Reference, case 'Tag): If the tagged
7731         type is a synchronized type, retrieve tag information from the
7732         corresponding record, which has the dispatch table link.
7734 2009-04-10  Jerome Lambourg  <lambourg@adacore.com>
7736         * g-comlin.adb (Group_Analysis): Take care of switches that might be
7737         decomposed afterwards, but are present as-is in the command line
7738         configuration, and thus should be kept as-is.
7740 2009-04-10  Robert Dewar  <dewar@adacore.com>
7742         * gnat_rm.texi: Document that postconditions are tested on implicit
7743         returns.
7745         * sem_aux.adb: Minor reformatting
7747 2009-04-10  Gary Dismukes  <dismukes@adacore.com>
7749         * itypes.adb (Create_Null_Excluding_Itype): Apply Base_Type when
7750         setting Etype.
7751         
7752         * par-ch3.adb (P_Access_Type_Definition): Set new attribute
7753         Null_Exclusion_In_Return_Present when an access-to-function type has a
7754         result type with an explicit not null.
7756         * sem_ch3.adb (Access_Subprogram_Definition): If a null exclusion is
7757         given on the result type, then create a null-excluding itype for the
7758         function.
7760         * sem_ch6.adb (Analyze_Return_Type): Create a null-excluding itype in
7761         the case where a null exclusion is imposed on a named access type.
7762         (Analyze_Subprogram_Specification): Push and pop the scope of the
7763         function around the call to Analyze_Return_Type in the case of no
7764         formals, for consistency with handling when formals are present
7765         (Process_Formals does this). Ensures that any itype created for the
7766         return type will be associated with the proper scope.
7768         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): If a null
7769         exclusion is given on a generic function's result type, then create a
7770         null-excluding itype for the generic function.
7771         (Instantiate_Object): Set Null_Exclusion_Present of a constant created
7772         for an actual for a formal in object according to the setting on the
7773         formal. Ensures null exclusion checks are done when the association is
7774         elaborated.
7776         * sinfo.ads: Add new flag Null_Exclusion_In_Return_Present on
7777         N_Access_Function_Definition.
7779         * sinfo.adb: Add Get_ and Set_ operations for
7780         Null_Exclusion_In_Return_Present.
7782 2009-04-10  Bob Duff  <duff@adacore.com>
7784         * exp_ch5.adb, exp_ch6.adb, sem_ch6.adb: Move the code that creates a
7785         call to the _Postconditions procedure in the case of implicit returns
7786         from analysis to expansion. This eliminates some duplicated code. Use
7787         the Postcondition_Proc to find the identity of this procedure during
7788         expansion.
7790 2009-04-10  Robert Dewar  <dewar@adacore.com>
7792         * sem_ch6.adb: Minor code clean up.
7794         * einfo.ads, sem_attr.adb: Minor comment fixes.
7796 2009-04-10  Robert Dewar  <dewar@adacore.com>
7798         * sem_ch8.adb: Minor reformatting
7800 2009-04-10  Robert Dewar  <dewar@adacore.com>
7802         * einfo.ads, einfo.adb (Postcondition_Proc): New attribute for
7803         procedures.
7805         * sem_ch6.adb: Minor code clean up.
7807 2009-04-10  Robert Dewar  <dewar@adacore.com>
7809         * mlib-tgt-specific-xi.adb: Minor reformatting
7811 2009-04-10  Bob Duff  <duff@adacore.com>
7813         * einfo.ads: Minor comment fixes
7815 2009-04-10  Vincent Celier  <celier@adacore.com>
7817         * snames.ads-tmpl: Remove names that are no longer used in the
7818         Project Manager.
7819         Mark specifically those that are used only in gprbuild
7821 2009-04-10  Eric Botcazou  <ebotcazou@adacore.com>
7823         * init.c: Adjust EH support code on Alpha/Tru64.
7825 2009-04-10  Bob Duff  <duff@adacore.com>
7827         * sem_ch6.adb (Process_PPCs): Add a call to the _Postconditions
7828         procedure on every path that could return implicitly (not via a return
7829         statement) from a procedure.
7831 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
7833         * exp_ch9.adb (Build_Master_Entity): An extended return statement is a
7834         valid scope for a task declarations and therefore for a master id.
7836 2009-04-10  Robert Dewar  <dewar@adacore.com>
7838         * sem_aux.adb: Minor reformatting
7840 2009-04-10  Vincent Celier  <celier@adacore.com>
7842         * scn.adb (Obsolescent_Check_Flag): New Boolean flag, initialized to
7843         True.
7844         (Obsolescent_Check): Do nothing if Obsolescent_Check_Flag is False
7845         (Set_Obsolescent_Check): New procedure to change the value of
7846         Obsolescent_Check_Flag.
7848         * scn.ads (Set_Obsolescent_Check): New procedure to control
7849         Obsolescent_Check.
7851         * sinput-l.adb (Load_File): Do not check for pragma Restrictions on
7852         obsolescent features while preprocessing.
7854 2009-04-10  Thomas Quinot  <quinot@adacore.com>
7856         * xsnamest.adb: Use XUtil to have uniform line endings (UNIX style) in
7857         generated files on all platforms.
7859 2009-04-10  Robert Dewar  <dewar@adacore.com>
7861         * sem_aux.adb: Minor reformatting
7863 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
7865         * sem_ch3.adb (Access_Definition): Handle properly the case of a
7866         protected function with formals that returns an anonymous access type.
7868 2009-04-10  Thomas Quinot  <quinot@adacore.com>
7870         * sem_disp.adb: Minor reformatting
7872 2009-04-10  Vasiliy Fofanov  <fofanov@adacore.com>
7874         * seh_init.c: Do not use the 32-bit specific implementation of
7875         __gnat_install_SEH_handler on 64-bit Windows target (64-bit specific
7876         version TBD).
7878 2009-04-10  Jose Ruiz  <ruiz@adacore.com>
7880         * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Target_Name may contain
7881         a '/' at the end so we better use the complete target name to determine
7882         whether it is a PowerPC 55xx target.
7884 2009-04-10  Thomas Quinot  <quinot@adacore.com>
7886         * sem_eval.adb: Minor reformatting
7888 2009-04-10  Thomas Quinot  <quinot@adacore.com>
7890         * snames.h, snames.ads, snames.adb: Remove files, now generated from
7891         templates.
7893         * snames.h-tmpl, snames.ads-tmpl, snames.adb-tmpl: Templates for the
7894         above.
7896         * xsnamest.adb: New file.
7898         * gcc-interface/Make-lang.in: New target for automated generation of
7899         snames.ads, snames.adb and snames.h
7901 2009-04-10  Tristan Gingold  <gingold@adacore.com>
7903         * gcc-interface/Makefile.in, gcc-interface/utils.c: Include "rtl.h" to
7904         avoid compile time warnings.
7905         Do not add gcc/config in include search list while compiling the RTS.
7906         Pragma Thread_Local_Storage is available on any target.
7908 2009-04-10  Bob Duff  <duff@adacore.com>
7910         * sem.ads, par.adb, sem_ch6.adb, sem_ch8.adb: Minor comment fixes.
7912 2009-04-10  Tristan Gingold  <gingold@adacore.com>
7914         * init.c: Install signal handler on Darwin.
7916 2009-04-10  Robert Dewar  <dewar@adacore.com>
7918         * sem_prag.adb: Minor reformatting
7920         * exp_util.adb (Make_Non_Empty_Check): New function
7921         (Silly_Boolean_Array_Not_Test): Add call to Make_Non_Empty_Check
7922         (Silly_Boolean_Array_Xor_Test): Use Make_Non_Empty_Check
7924 2009-04-10  Arnaud Charlet  <charlet@adacore.com>
7926         * make.adb, gnatlink.adb: Rename JGNAT toolchain.
7928 2009-04-10  Jose Ruiz  <ruiz@adacore.com>
7930         * mlib-tgt-specific-xi.adb (Get_Target_Prefix): Insert the appropriate
7931         tool prefix for AVR and PowerPC 55xx targets.
7933 2009-04-10  Robert Dewar  <dewar@adacore.com>
7935         * sem_warn.adb (Within_Postcondition): New function
7936         (Check_Unset_Reference): Use Within_Postcondition to stop bad warning
7938 2009-04-10  Robert Dewar  <dewar@adacore.com>
7940         * sem_warn.adb: Minor reformatting
7942         * make.adb: Minor reformatting.
7944 2009-04-10  Gary Dismukes  <dismukes@adacore.com>
7946         * exp_ch7.adb (Find_Final_List): When creating a finalization-chain
7947         entity and the scope is a subprogram, retrieve the Sloc of the
7948         subprogram's body rather than using the sloc of the spec, for better
7949         line-stepping behavior in gdb.
7950         (Wrap_Transient_Declaration): For the Sloc of nodes created with a list
7951         controller, use the Sloc of the first declaration of the containing list
7952         rather than that of the node that triggered creation of the list
7953         controller.
7955 2009-04-10  Vincent Celier  <celier@adacore.com>
7957         * prj-nmsc.adb (Check_Naming_Schemes): Initialize local variable Casing
7958         to avoid gcc warning.
7960 2009-04-10  Robert Dewar  <dewar@adacore.com>
7962         * g-comlin.adb: Add ??? comment
7964 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
7966         * sem_warn.adb (Check_Unused_Withs): Do not emit message about
7967         unreferenced entities for a package with no visible declarations.
7969 2009-04-10  Robert Dewar  <dewar@adacore.com>
7971         * exp_ch9.adb: Minor reformatting
7973 2009-04-10  Thomas Quinot  <quinot@adacore.com>
7975         * sem_prag.adb: Minor reformatting
7977 2009-04-10  Vincent Celier  <celier@adacore.com>
7979         * prj-nmsc.adb:
7980         (Check_Library_Attributes): For a project qualified as a library project
7981         that is not a library project, indicate in the error message which
7982         attributes are missing (Library_Dir and/or Library_Name).
7984 2009-04-10  Bob Duff  <duff@adacore.com>
7986         * exp_ch5.adb, exp_ch9.adb: Avoid use of No_Position in Sloc of
7987         generated nodes, because it might confuse various circuits in the FE.
7989 2009-04-10  Ed Schonberg  <schonberg@adacore.com>
7991         * sem_prag.adb (Analyze_Pragma, case Task_Name): Do not expand argument
7992         of pragma. It will be recopied and analyzed when used in call to
7993         Create_Task.
7995         * sem_res.adb (Resolve_Call): Clarify use of secondary stack within
7996         initialization operations and recognize use of it in procedure calls
7997         within init_procs.
7999         * exp_ch9.adb (Make_Task_Create_Call): Copy full tree of Task_Name
8000         argument, because it may have side-effects.
8002         * exp_ch2.adb: Remove obsolete comments on default functions
8004 2009-04-10  Jose Ruiz  <ruiz@adacore.com>
8006         * adaint.c (RTX section): Do for RTX the same thing as we do for
8007         Windows (include ctype.h and define a fallback ISALPHA if IN_RTS).
8009 2009-04-10  Robert Dewar  <dewar@adacore.com>
8011         * sem_aux.ads, sem_aux.adb (Nearest_Current_Scope): New function.
8013         * sem_res.adb (Resolve_Call): Fix test for
8014         Suppress_Value_Tracking_On_Call (was wrong for the case of a call from
8015         a non-dynamic scope).
8017 2009-04-10  Robert Dewar  <dewar@adacore.com>
8019         * make.adb: Add comment.
8020         Minor reformatting
8022 2009-04-10  Nicolas Setton  <setton@adacore.com>
8024         * s-osprim-darwin.adb: New file.
8026         * s-osinte-darwin.adb, s-osinte-darwin.ads: Fix binding to timespec.
8028 2009-04-10  Thomas Quinot  <quinot@adacore.com>
8030         * g-socket.ads: Add comment clarifying alignment requirement for Fd_Set
8032 2009-04-09  Nick Clifton  <nickc@redhat.com>
8034         * adadecode.h: Change copyright header to refer to version
8035         3 of the GNU General Public License with version 3.1 of the
8036         GCC Runtime Library Exception and to point readers at the
8037         COPYING3 and COPYING3.RUNTIME files and the FSF's license web
8038         page.
8039         * 9drpc.adb: Likewise.
8040         * a-assert.adb: Likewise.
8041         * a-astaco.adb: Likewise.
8042         * a-calari.adb: Likewise.
8043         * a-calcon.adb: Likewise.
8044         * a-calcon.ads: Likewise.
8045         * a-caldel.ads: Likewise.
8046         * a-calend-vms.adb: Likewise.
8047         * a-calend-vms.ads: Likewise.
8048         * a-calend.adb: Likewise.
8049         * a-calend.ads: Likewise.
8050         * a-calfor.adb: Likewise.
8051         * a-catizo.adb: Likewise.
8052         * a-cdlili.adb: Likewise.
8053         * a-cdlili.ads: Likewise.
8054         * a-cgaaso.adb: Likewise.
8055         * a-cgaaso.ads: Likewise.
8056         * a-cgarso.adb: Likewise.
8057         * a-cgcaso.adb: Likewise.
8058         * a-chacon.adb: Likewise.
8059         * a-chacon.ads: Likewise.
8060         * a-chahan.adb: Likewise.
8061         * a-chahan.ads: Likewise.
8062         * a-chlat9.ads: Likewise.
8063         * a-chtgke.adb: Likewise.
8064         * a-chtgke.ads: Likewise.
8065         * a-chtgop.adb: Likewise.
8066         * a-chtgop.ads: Likewise.
8067         * a-chzla1.ads: Likewise.
8068         * a-chzla9.ads: Likewise.
8069         * a-cidlli.adb: Likewise.
8070         * a-cidlli.ads: Likewise.
8071         * a-cihama.adb: Likewise.
8072         * a-cihama.ads: Likewise.
8073         * a-cihase.adb: Likewise.
8074         * a-cihase.ads: Likewise.
8075         * a-ciorma.adb: Likewise.
8076         * a-ciorma.ads: Likewise.
8077         * a-ciormu.adb: Likewise.
8078         * a-ciormu.ads: Likewise.
8079         * a-ciorse.adb: Likewise.
8080         * a-ciorse.ads: Likewise.
8081         * a-clrefi.adb: Likewise.
8082         * a-clrefi.ads: Likewise.
8083         * a-cohama.adb: Likewise.
8084         * a-cohama.ads: Likewise.
8085         * a-cohase.adb: Likewise.
8086         * a-cohase.ads: Likewise.
8087         * a-cohata.ads: Likewise.
8088         * a-coinve.adb: Likewise.
8089         * a-coinve.ads: Likewise.
8090         * a-colien.adb: Likewise.
8091         * a-colien.ads: Likewise.
8092         * a-colire.adb: Likewise.
8093         * a-colire.ads: Likewise.
8094         * a-comlin.adb: Likewise.
8095         * a-comlin.ads: Likewise.
8096         * a-convec.adb: Likewise.
8097         * a-convec.ads: Likewise.
8098         * a-coorma.adb: Likewise.
8099         * a-coorma.ads: Likewise.
8100         * a-coormu.adb: Likewise.
8101         * a-coormu.ads: Likewise.
8102         * a-coorse.adb: Likewise.
8103         * a-coorse.ads: Likewise.
8104         * a-coprnu.adb: Likewise.
8105         * a-coprnu.ads: Likewise.
8106         * a-crbltr.ads: Likewise.
8107         * a-crbtgk.adb: Likewise.
8108         * a-crbtgk.ads: Likewise.
8109         * a-crbtgo.adb: Likewise.
8110         * a-crbtgo.ads: Likewise.
8111         * a-crdlli.adb: Likewise.
8112         * a-crdlli.ads: Likewise.
8113         * a-cwila1.ads: Likewise.
8114         * a-cwila9.ads: Likewise.
8115         * a-decima.adb: Likewise.
8116         * a-decima.ads: Likewise.
8117         * a-diocst.adb: Likewise.
8118         * a-diocst.ads: Likewise.
8119         * a-direct.adb: Likewise.
8120         * a-direct.ads: Likewise.
8121         * a-direio.adb: Likewise.
8122         * a-direio.ads: Likewise.
8123         * a-dirval-mingw.adb: Likewise.
8124         * a-dirval-vms.adb: Likewise.
8125         * a-dirval.adb: Likewise.
8126         * a-dirval.ads: Likewise.
8127         * a-dynpri.adb: Likewise.
8128         * a-einuoc.adb: Likewise.
8129         * a-einuoc.ads: Likewise.
8130         * a-elchha.adb: Likewise.
8131         * a-elchha.ads: Likewise.
8132         * a-envvar.adb: Likewise.
8133         * a-excach.adb: Likewise.
8134         * a-except-2005.adb: Likewise.
8135         * a-except-2005.ads: Likewise.
8136         * a-except.adb: Likewise.
8137         * a-except.ads: Likewise.
8138         * a-excpol-abort.adb: Likewise.
8139         * a-excpol.adb: Likewise.
8140         * a-exctra.adb: Likewise.
8141         * a-exctra.ads: Likewise.
8142         * a-exetim-mingw.adb: Likewise.
8143         * a-exetim-mingw.ads: Likewise.
8144         * a-exexda.adb: Likewise.
8145         * a-exexpr-gcc.adb: Likewise.
8146         * a-exexpr.adb: Likewise.
8147         * a-exextr.adb: Likewise.
8148         * a-exstat.adb: Likewise.
8149         * a-filico.adb: Likewise.
8150         * a-filico.ads: Likewise.
8151         * a-finali.adb: Likewise.
8152         * a-finali.ads: Likewise.
8153         * a-interr.ads: Likewise.
8154         * a-intnam-aix.ads: Likewise.
8155         * a-intnam-darwin.ads: Likewise.
8156         * a-intnam-dummy.ads: Likewise.
8157         * a-intnam-freebsd.ads: Likewise.
8158         * a-intnam-hpux.ads: Likewise.
8159         * a-intnam-irix.ads: Likewise.
8160         * a-intnam-linux.ads: Likewise.
8161         * a-intnam-lynxos.ads: Likewise.
8162         * a-intnam-mingw.ads: Likewise.
8163         * a-intnam-rtems.ads: Likewise.
8164         * a-intnam-solaris.ads: Likewise.
8165         * a-intnam-tru64.ads: Likewise.
8166         * a-intnam-vms.ads: Likewise.
8167         * a-intnam-vxworks.ads: Likewise.
8168         * a-intsig.adb: Likewise.
8169         * a-intsig.ads: Likewise.
8170         * a-ngcefu.adb: Likewise.
8171         * a-ngcoar.adb: Likewise.
8172         * a-ngcoty.adb: Likewise.
8173         * a-ngcoty.ads: Likewise.
8174         * a-ngelfu.adb: Likewise.
8175         * a-ngrear.adb: Likewise.
8176         * a-ngrear.ads: Likewise.
8177         * a-nudira.adb: Likewise.
8178         * a-nudira.ads: Likewise.
8179         * a-nuflra.adb: Likewise.
8180         * a-nuflra.ads: Likewise.
8181         * a-numaux-darwin.adb: Likewise.
8182         * a-numaux-darwin.ads: Likewise.
8183         * a-numaux-libc-x86.ads: Likewise.
8184         * a-numaux-vxworks.ads: Likewise.
8185         * a-numaux-x86.adb: Likewise.
8186         * a-numaux-x86.ads: Likewise.
8187         * a-numaux.ads: Likewise.
8188         * a-rbtgso.adb: Likewise.
8189         * a-rbtgso.ads: Likewise.
8190         * a-reatim.ads: Likewise.
8191         * a-retide.adb: Likewise.
8192         * a-retide.ads: Likewise.
8193         * a-rttiev.adb: Likewise.
8194         * a-rttiev.ads: Likewise.
8195         * a-secain.adb: Likewise.
8196         * a-secain.ads: Likewise.
8197         * a-sequio.adb: Likewise.
8198         * a-sequio.ads: Likewise.
8199         * a-shcain.adb: Likewise.
8200         * a-shcain.ads: Likewise.
8201         * a-siocst.adb: Likewise.
8202         * a-siocst.ads: Likewise.
8203         * a-slcain.adb: Likewise.
8204         * a-slcain.ads: Likewise.
8205         * a-ssicst.adb: Likewise.
8206         * a-ssicst.ads: Likewise.
8207         * a-stboha.adb: Likewise.
8208         * a-stmaco.ads: Likewise.
8209         * a-storio.adb: Likewise.
8210         * a-strbou.adb: Likewise.
8211         * a-strbou.ads: Likewise.
8212         * a-stream.ads: Likewise.
8213         * a-strfix.adb: Likewise.
8214         * a-strhas.adb: Likewise.
8215         * a-strmap.adb: Likewise.
8216         * a-strmap.ads: Likewise.
8217         * a-strsea.adb: Likewise.
8218         * a-strsea.ads: Likewise.
8219         * a-strsup.adb: Likewise.
8220         * a-strsup.ads: Likewise.
8221         * a-strunb.adb: Likewise.
8222         * a-strunb.ads: Likewise.
8223         * a-ststio.adb: Likewise.
8224         * a-ststio.ads: Likewise.
8225         * a-stunau.adb: Likewise.
8226         * a-stunau.ads: Likewise.
8227         * a-stunha.adb: Likewise.
8228         * a-stwibo.adb: Likewise.
8229         * a-stwibo.ads: Likewise.
8230         * a-stwifi.adb: Likewise.
8231         * a-stwiha.adb: Likewise.
8232         * a-stwima.adb: Likewise.
8233         * a-stwima.ads: Likewise.
8234         * a-stwise.adb: Likewise.
8235         * a-stwise.ads: Likewise.
8236         * a-stwisu.adb: Likewise.
8237         * a-stwisu.ads: Likewise.
8238         * a-stwiun.adb: Likewise.
8239         * a-stwiun.ads: Likewise.
8240         * a-stzbou.adb: Likewise.
8241         * a-stzbou.ads: Likewise.
8242         * a-stzfix.adb: Likewise.
8243         * a-stzhas.adb: Likewise.
8244         * a-stzmap.adb: Likewise.
8245         * a-stzmap.ads: Likewise.
8246         * a-stzsea.adb: Likewise.
8247         * a-stzsea.ads: Likewise.
8248         * a-stzsup.adb: Likewise.
8249         * a-stzsup.ads: Likewise.
8250         * a-stzunb.adb: Likewise.
8251         * a-stzunb.ads: Likewise.
8252         * a-suteio.adb: Likewise.
8253         * a-suteio.ads: Likewise.
8254         * a-swbwha.adb: Likewise.
8255         * a-swmwco.ads: Likewise.
8256         * a-swunau.adb: Likewise.
8257         * a-swunau.ads: Likewise.
8258         * a-swuwha.adb: Likewise.
8259         * a-swuwti.adb: Likewise.
8260         * a-swuwti.ads: Likewise.
8261         * a-sytaco.adb: Likewise.
8262         * a-sytaco.ads: Likewise.
8263         * a-szbzha.adb: Likewise.
8264         * a-szmzco.ads: Likewise.
8265         * a-szunau.adb: Likewise.
8266         * a-szunau.ads: Likewise.
8267         * a-szuzha.adb: Likewise.
8268         * a-szuzti.adb: Likewise.
8269         * a-szuzti.ads: Likewise.
8270         * a-tags.adb: Likewise.
8271         * a-tags.ads: Likewise.
8272         * a-tasatt.ads: Likewise.
8273         * a-taside.adb: Likewise.
8274         * a-taside.ads: Likewise.
8275         * a-taster.adb: Likewise.
8276         * a-teioed.adb: Likewise.
8277         * a-teioed.ads: Likewise.
8278         * a-textio.adb: Likewise.
8279         * a-textio.ads: Likewise.
8280         * a-tiboio.adb: Likewise.
8281         * a-ticoau.adb: Likewise.
8282         * a-ticoau.ads: Likewise.
8283         * a-ticoio.adb: Likewise.
8284         * a-ticoio.ads: Likewise.
8285         * a-tideau.adb: Likewise.
8286         * a-tideau.ads: Likewise.
8287         * a-tideio.adb: Likewise.
8288         * a-tideio.ads: Likewise.
8289         * a-tienau.adb: Likewise.
8290         * a-tienau.ads: Likewise.
8291         * a-tienio.adb: Likewise.
8292         * a-tienio.ads: Likewise.
8293         * a-tifiio.adb: Likewise.
8294         * a-tifiio.ads: Likewise.
8295         * a-tiflau.adb: Likewise.
8296         * a-tiflau.ads: Likewise.
8297         * a-tiflio.adb: Likewise.
8298         * a-tiflio.ads: Likewise.
8299         * a-tigeau.adb: Likewise.
8300         * a-tigeau.ads: Likewise.
8301         * a-tiinau.adb: Likewise.
8302         * a-tiinau.ads: Likewise.
8303         * a-tiinio.adb: Likewise.
8304         * a-tiinio.ads: Likewise.
8305         * a-timoau.adb: Likewise.
8306         * a-timoau.ads: Likewise.
8307         * a-timoio.adb: Likewise.
8308         * a-timoio.ads: Likewise.
8309         * a-tiocst.adb: Likewise.
8310         * a-tiocst.ads: Likewise.
8311         * a-titest.adb: Likewise.
8312         * a-wichun.adb: Likewise.
8313         * a-wichun.ads: Likewise.
8314         * a-witeio.adb: Likewise.
8315         * a-witeio.ads: Likewise.
8316         * a-wtcoau.adb: Likewise.
8317         * a-wtcoau.ads: Likewise.
8318         * a-wtcoio.adb: Likewise.
8319         * a-wtcstr.adb: Likewise.
8320         * a-wtcstr.ads: Likewise.
8321         * a-wtdeau.adb: Likewise.
8322         * a-wtdeau.ads: Likewise.
8323         * a-wtdeio.adb: Likewise.
8324         * a-wtdeio.ads: Likewise.
8325         * a-wtedit.adb: Likewise.
8326         * a-wtedit.ads: Likewise.
8327         * a-wtenau.adb: Likewise.
8328         * a-wtenau.ads: Likewise.
8329         * a-wtenio.adb: Likewise.
8330         * a-wtenio.ads: Likewise.
8331         * a-wtfiio.adb: Likewise.
8332         * a-wtfiio.ads: Likewise.
8333         * a-wtflau.adb: Likewise.
8334         * a-wtflau.ads: Likewise.
8335         * a-wtflio.adb: Likewise.
8336         * a-wtflio.ads: Likewise.
8337         * a-wtgeau.adb: Likewise.
8338         * a-wtgeau.ads: Likewise.
8339         * a-wtinau.adb: Likewise.
8340         * a-wtinau.ads: Likewise.
8341         * a-wtinio.adb: Likewise.
8342         * a-wtmoau.adb: Likewise.
8343         * a-wtmoau.ads: Likewise.
8344         * a-wtmoio.adb: Likewise.
8345         * a-wtmoio.ads: Likewise.
8346         * a-wttest.adb: Likewise.
8347         * a-wwboio.adb: Likewise.
8348         * a-zchuni.adb: Likewise.
8349         * a-zchuni.ads: Likewise.
8350         * a-ztcoau.adb: Likewise.
8351         * a-ztcoau.ads: Likewise.
8352         * a-ztcoio.adb: Likewise.
8353         * a-ztcstr.adb: Likewise.
8354         * a-ztcstr.ads: Likewise.
8355         * a-ztdeau.adb: Likewise.
8356         * a-ztdeau.ads: Likewise.
8357         * a-ztdeio.adb: Likewise.
8358         * a-ztdeio.ads: Likewise.
8359         * a-ztedit.adb: Likewise.
8360         * a-ztedit.ads: Likewise.
8361         * a-ztenau.adb: Likewise.
8362         * a-ztenau.ads: Likewise.
8363         * a-ztenio.adb: Likewise.
8364         * a-ztenio.ads: Likewise.
8365         * a-ztexio.adb: Likewise.
8366         * a-ztexio.ads: Likewise.
8367         * a-ztfiio.adb: Likewise.
8368         * a-ztfiio.ads: Likewise.
8369         * a-ztflau.adb: Likewise.
8370         * a-ztflau.ads: Likewise.
8371         * a-ztflio.adb: Likewise.
8372         * a-ztflio.ads: Likewise.
8373         * a-ztgeau.adb: Likewise.
8374         * a-ztgeau.ads: Likewise.
8375         * a-ztinau.adb: Likewise.
8376         * a-ztinau.ads: Likewise.
8377         * a-ztinio.adb: Likewise.
8378         * a-ztmoau.adb: Likewise.
8379         * a-ztmoau.ads: Likewise.
8380         * a-ztmoio.adb: Likewise.
8381         * a-ztmoio.ads: Likewise.
8382         * a-zttest.adb: Likewise.
8383         * a-zzboio.adb: Likewise.
8384         * adadecode.c: Likewise.
8385         * adaint.c: Likewise.
8386         * adaint.h: Likewise.
8387         * alloc.ads: Likewise.
8388         * argv.c: Likewise.
8389         * arit64.c: Likewise.
8390         * atree.adb: Likewise.
8391         * atree.ads: Likewise.
8392         * aux-io.c: Likewise.
8393         * cal.c: Likewise.
8394         * casing.adb: Likewise.
8395         * casing.ads: Likewise.
8396         * cio.c: Likewise.
8397         * csets.adb: Likewise.
8398         * csets.ads: Likewise.
8399         * cstreams.c: Likewise.
8400         * ctrl_c.c: Likewise.
8401         * debug.adb: Likewise.
8402         * debug.ads: Likewise.
8403         * dec.ads: Likewise.
8404         * einfo.adb: Likewise.
8405         * einfo.ads: Likewise.
8406         * elists.adb: Likewise.
8407         * elists.ads: Likewise.
8408         * env.c: Likewise.
8409         * env.h: Likewise.
8410         * errno.c: Likewise.
8411         * exit.c: Likewise.
8412         * fe.h: Likewise.
8413         * final.c: Likewise.
8414         * fname.adb: Likewise.
8415         * fname.ads: Likewise.
8416         * g-allein.ads: Likewise.
8417         * g-alleve.adb: Likewise.
8418         * g-alleve.ads: Likewise.
8419         * g-altcon.adb: Likewise.
8420         * g-altcon.ads: Likewise.
8421         * g-altive.ads: Likewise.
8422         * g-alveop.adb: Likewise.
8423         * g-alveop.ads: Likewise.
8424         * g-alvety.ads: Likewise.
8425         * g-alvevi.ads: Likewise.
8426         * g-arrspl.adb: Likewise.
8427         * g-arrspl.ads: Likewise.
8428         * g-calend.ads: Likewise.
8429         * g-comlin.adb: Likewise.
8430         * g-debpoo.adb: Likewise.
8431         * g-debpoo.ads: Likewise.
8432         * g-eacodu-vms.adb: Likewise.
8433         * g-eacodu.adb: Likewise.
8434         * g-excact.adb: Likewise.
8435         * g-excact.ads: Likewise.
8436         * g-locfil.adb: Likewise.
8437         * g-os_lib.ads: Likewise.
8438         * g-rannum.adb: Likewise.
8439         * g-rannum.ads: Likewise.
8440         * g-regist.adb: Likewise.
8441         * g-regist.ads: Likewise.
8442         * g-signal.adb: Likewise.
8443         * g-signal.ads: Likewise.
8444         * g-soccon.ads: Likewise.
8445         * g-string.adb: Likewise.
8446         * g-string.ads: Likewise.
8447         * g-strspl.ads: Likewise.
8448         * g-timsta.adb: Likewise.
8449         * g-timsta.ads: Likewise.
8450         * g-trasym-vms-alpha.adb: Likewise.
8451         * g-trasym-vms-ia64.adb: Likewise.
8452         * g-utf_32.adb: Likewise.
8453         * g-utf_32.ads: Likewise.
8454         * g-wistsp.ads: Likewise.
8455         * g-zstspl.ads: Likewise.
8456         * gmem.c: Likewise.
8457         * gnatvsn.adb: Likewise.
8458         * gnatvsn.ads: Likewise.
8459         * gsocket.h: Likewise.
8460         * hostparm.ads: Likewise.
8461         * i-c.adb: Likewise.
8462         * i-cexten.ads: Likewise.
8463         * i-cobol.adb: Likewise.
8464         * i-cobol.ads: Likewise.
8465         * i-cpoint.adb: Likewise.
8466         * i-cpoint.ads: Likewise.
8467         * i-cpp.adb: Likewise.
8468         * i-cpp.ads: Likewise.
8469         * i-cstrea-vms.adb: Likewise.
8470         * i-cstrea.adb: Likewise.
8471         * i-cstrea.ads: Likewise.
8472         * i-cstrin.adb: Likewise.
8473         * i-cstrin.ads: Likewise.
8474         * i-forbla-darwin.adb: Likewise.
8475         * i-forbla-unimplemented.ads: Likewise.
8476         * i-forbla.adb: Likewise.
8477         * i-forbla.ads: Likewise.
8478         * i-forlap.ads: Likewise.
8479         * i-fortra.adb: Likewise.
8480         * i-pacdec.adb: Likewise.
8481         * i-pacdec.ads: Likewise.
8482         * i-vxwoio.adb: Likewise.
8483         * i-vxwoio.ads: Likewise.
8484         * indepsw-aix.adb: Likewise.
8485         * indepsw-gnu.adb: Likewise.
8486         * indepsw-mingw.adb: Likewise.
8487         * indepsw.adb: Likewise.
8488         * indepsw.ads: Likewise.
8489         * init.c: Likewise.
8490         * initialize.c: Likewise.
8491         * interfac.ads: Likewise.
8492         * krunch.adb: Likewise.
8493         * krunch.ads: Likewise.
8494         * lib-list.adb: Likewise.
8495         * lib-sort.adb: Likewise.
8496         * lib.adb: Likewise.
8497         * lib.ads: Likewise.
8498         * link.c: Likewise.
8499         * math_lib.adb: Likewise.
8500         * memtrack.adb: Likewise.
8501         * mingw32.h: Likewise.
8502         * mkdir.c: Likewise.
8503         * namet-sp.adb: Likewise.
8504         * namet-sp.ads: Likewise.
8505         * namet.adb: Likewise.
8506         * namet.ads: Likewise.
8507         * nlists.adb: Likewise.
8508         * nlists.ads: Likewise.
8509         * opt.adb: Likewise.
8510         * opt.ads: Likewise.
8511         * output.adb: Likewise.
8512         * output.ads: Likewise.
8513         * raise-gcc.c: Likewise.
8514         * raise.c: Likewise.
8515         * raise.h: Likewise.
8516         * repinfo.adb: Likewise.
8517         * repinfo.ads: Likewise.
8518         * repinfo.h: Likewise.
8519         * rident.ads: Likewise.
8520         * s-addima.adb: Likewise.
8521         * s-addima.ads: Likewise.
8522         * s-addope.adb: Likewise.
8523         * s-addope.ads: Likewise.
8524         * s-arit64.adb: Likewise.
8525         * s-arit64.ads: Likewise.
8526         * s-assert.adb: Likewise.
8527         * s-assert.ads: Likewise.
8528         * s-asthan-vms-alpha.adb: Likewise.
8529         * s-asthan.adb: Likewise.
8530         * s-asthan.ads: Likewise.
8531         * s-atacco.adb: Likewise.
8532         * s-atacco.ads: Likewise.
8533         * s-auxdec-empty.adb: Likewise.
8534         * s-auxdec-empty.ads: Likewise.
8535         * s-auxdec-vms_64.ads: Likewise.
8536         * s-auxdec.adb: Likewise.
8537         * s-auxdec.ads: Likewise.
8538         * s-bitops.adb: Likewise.
8539         * s-bitops.ads: Likewise.
8540         * s-boarop.ads: Likewise.
8541         * s-carsi8.adb: Likewise.
8542         * s-carsi8.ads: Likewise.
8543         * s-carun8.adb: Likewise.
8544         * s-carun8.ads: Likewise.
8545         * s-casi16.adb: Likewise.
8546         * s-casi16.ads: Likewise.
8547         * s-casi32.adb: Likewise.
8548         * s-casi32.ads: Likewise.
8549         * s-casi64.adb: Likewise.
8550         * s-casi64.ads: Likewise.
8551         * s-casuti.ads: Likewise.
8552         * s-caun16.adb: Likewise.
8553         * s-caun16.ads: Likewise.
8554         * s-caun32.adb: Likewise.
8555         * s-caun32.ads: Likewise.
8556         * s-caun64.adb: Likewise.
8557         * s-caun64.ads: Likewise.
8558         * s-chepoo.ads: Likewise.
8559         * s-crc32.adb: Likewise.
8560         * s-crc32.ads: Likewise.
8561         * s-crtl.ads: Likewise.
8562         * s-direio.adb: Likewise.
8563         * s-direio.ads: Likewise.
8564         * s-dsaser.ads: Likewise.
8565         * s-except.adb: Likewise.
8566         * s-except.ads: Likewise.
8567         * s-exctab.adb: Likewise.
8568         * s-exctab.ads: Likewise.
8569         * s-exnint.adb: Likewise.
8570         * s-exnint.ads: Likewise.
8571         * s-exnllf.adb: Likewise.
8572         * s-exnllf.ads: Likewise.
8573         * s-exnlli.adb: Likewise.
8574         * s-exnlli.ads: Likewise.
8575         * s-expint.adb: Likewise.
8576         * s-expint.ads: Likewise.
8577         * s-explli.adb: Likewise.
8578         * s-explli.ads: Likewise.
8579         * s-expllu.adb: Likewise.
8580         * s-expllu.ads: Likewise.
8581         * s-expmod.adb: Likewise.
8582         * s-expmod.ads: Likewise.
8583         * s-expuns.adb: Likewise.
8584         * s-expuns.ads: Likewise.
8585         * s-fatflt.ads: Likewise.
8586         * s-fatgen.adb: Likewise.
8587         * s-fatgen.ads: Likewise.
8588         * s-fatlfl.ads: Likewise.
8589         * s-fatllf.ads: Likewise.
8590         * s-fatsfl.ads: Likewise.
8591         * s-ficobl.ads: Likewise.
8592         * s-fileio.adb: Likewise.
8593         * s-fileio.ads: Likewise.
8594         * s-filofl.ads: Likewise.
8595         * s-finimp.adb: Likewise.
8596         * s-finimp.ads: Likewise.
8597         * s-finroo.adb: Likewise.
8598         * s-finroo.ads: Likewise.
8599         * s-fishfl.ads: Likewise.
8600         * s-fore.adb: Likewise.
8601         * s-fore.ads: Likewise.
8602         * s-fvadfl.ads: Likewise.
8603         * s-fvaffl.ads: Likewise.
8604         * s-fvagfl.ads: Likewise.
8605         * s-gearop.adb: Likewise.
8606         * s-gearop.ads: Likewise.
8607         * s-gecobl.adb: Likewise.
8608         * s-gecobl.ads: Likewise.
8609         * s-gecola.adb: Likewise.
8610         * s-gecola.ads: Likewise.
8611         * s-gerebl.adb: Likewise.
8612         * s-gerebl.ads: Likewise.
8613         * s-gerela.adb: Likewise.
8614         * s-gerela.ads: Likewise.
8615         * s-geveop.adb: Likewise.
8616         * s-geveop.ads: Likewise.
8617         * s-gloloc.adb: Likewise.
8618         * s-gloloc.ads: Likewise.
8619         * s-hibaen.ads: Likewise.
8620         * s-imenne.adb: Likewise.
8621         * s-imenne.ads: Likewise.
8622         * s-imgbiu.adb: Likewise.
8623         * s-imgbiu.ads: Likewise.
8624         * s-imgboo.adb: Likewise.
8625         * s-imgboo.ads: Likewise.
8626         * s-imgcha.adb: Likewise.
8627         * s-imgcha.ads: Likewise.
8628         * s-imgdec.adb: Likewise.
8629         * s-imgdec.ads: Likewise.
8630         * s-imgenu.adb: Likewise.
8631         * s-imgenu.ads: Likewise.
8632         * s-imgint.adb: Likewise.
8633         * s-imgint.ads: Likewise.
8634         * s-imgllb.adb: Likewise.
8635         * s-imgllb.ads: Likewise.
8636         * s-imglld.adb: Likewise.
8637         * s-imglld.ads: Likewise.
8638         * s-imglli.adb: Likewise.
8639         * s-imglli.ads: Likewise.
8640         * s-imgllu.adb: Likewise.
8641         * s-imgllu.ads: Likewise.
8642         * s-imgllw.adb: Likewise.
8643         * s-imgllw.ads: Likewise.
8644         * s-imgrea.adb: Likewise.
8645         * s-imgrea.ads: Likewise.
8646         * s-imguns.adb: Likewise.
8647         * s-imguns.ads: Likewise.
8648         * s-imgwch.adb: Likewise.
8649         * s-imgwch.ads: Likewise.
8650         * s-imgwiu.adb: Likewise.
8651         * s-imgwiu.ads: Likewise.
8652         * s-inmaop-dummy.adb: Likewise.
8653         * s-inmaop-vms.adb: Likewise.
8654         * s-inmaop.ads: Likewise.
8655         * s-interr-hwint.adb: Likewise.
8656         * s-interr-sigaction.adb: Likewise.
8657         * s-interr-vms.adb: Likewise.
8658         * s-interr.adb: Likewise.
8659         * s-interr.ads: Likewise.
8660         * s-intman-dummy.adb: Likewise.
8661         * s-intman-mingw.adb: Likewise.
8662         * s-intman-posix.adb: Likewise.
8663         * s-intman-solaris.adb: Likewise.
8664         * s-intman-vms.adb: Likewise.
8665         * s-intman-vms.ads: Likewise.
8666         * s-intman-vxworks.adb: Likewise.
8667         * s-intman-vxworks.ads: Likewise.
8668         * s-intman.ads: Likewise.
8669         * s-io.adb: Likewise.
8670         * s-io.ads: Likewise.
8671         * s-linux-alpha.ads: Likewise.
8672         * s-linux-hppa.ads: Likewise.
8673         * s-linux.ads: Likewise.
8674         * s-maccod.ads: Likewise.
8675         * s-mantis.adb: Likewise.
8676         * s-mantis.ads: Likewise.
8677         * s-mastop-irix.adb: Likewise.
8678         * s-mastop.adb: Likewise.
8679         * s-mastop.ads: Likewise.
8680         * s-memcop.ads: Likewise.
8681         * s-memory-mingw.adb: Likewise.
8682         * s-memory.adb: Likewise.
8683         * s-memory.ads: Likewise.
8684         * s-os_lib.ads: Likewise.
8685         * s-oscons-tmplt.c: Likewise.
8686         * s-osinte-aix.adb: Likewise.
8687         * s-osinte-darwin.adb: Likewise.
8688         * s-osinte-freebsd.adb: Likewise.
8689         * s-osinte-irix.adb: Likewise.
8690         * s-osinte-lynxos-3.adb: Likewise.
8691         * s-osinte-rtems.ads: Likewise.
8692         * s-osinte-tru64.adb: Likewise.
8693         * s-osinte-vxworks-kernel.adb: Likewise.
8694         * s-osinte-vxworks.adb: Likewise.
8695         * s-osprim-mingw.adb: Likewise.
8696         * s-osprim-posix.adb: Likewise.
8697         * s-osprim-solaris.adb: Likewise.
8698         * s-osprim-unix.adb: Likewise.
8699         * s-osprim-vms.adb: Likewise.
8700         * s-osprim-vms.ads: Likewise.
8701         * s-osprim-vxworks.adb: Likewise.
8702         * s-osprim.ads: Likewise.
8703         * s-pack03.adb: Likewise.
8704         * s-pack03.ads: Likewise.
8705         * s-pack05.adb: Likewise.
8706         * s-pack05.ads: Likewise.
8707         * s-pack06.adb: Likewise.
8708         * s-pack06.ads: Likewise.
8709         * s-pack07.adb: Likewise.
8710         * s-pack07.ads: Likewise.
8711         * s-pack09.adb: Likewise.
8712         * s-pack09.ads: Likewise.
8713         * s-pack10.adb: Likewise.
8714         * s-pack10.ads: Likewise.
8715         * s-pack11.adb: Likewise.
8716         * s-pack11.ads: Likewise.
8717         * s-pack12.adb: Likewise.
8718         * s-pack12.ads: Likewise.
8719         * s-pack13.adb: Likewise.
8720         * s-pack13.ads: Likewise.
8721         * s-pack14.adb: Likewise.
8722         * s-pack14.ads: Likewise.
8723         * s-pack15.adb: Likewise.
8724         * s-pack15.ads: Likewise.
8725         * s-pack17.adb: Likewise.
8726         * s-pack17.ads: Likewise.
8727         * s-pack18.adb: Likewise.
8728         * s-pack18.ads: Likewise.
8729         * s-pack19.adb: Likewise.
8730         * s-pack19.ads: Likewise.
8731         * s-pack20.adb: Likewise.
8732         * s-pack20.ads: Likewise.
8733         * s-pack21.adb: Likewise.
8734         * s-pack21.ads: Likewise.
8735         * s-pack22.adb: Likewise.
8736         * s-pack22.ads: Likewise.
8737         * s-pack23.adb: Likewise.
8738         * s-pack23.ads: Likewise.
8739         * s-pack24.adb: Likewise.
8740         * s-pack24.ads: Likewise.
8741         * s-pack25.adb: Likewise.
8742         * s-pack25.ads: Likewise.
8743         * s-pack26.adb: Likewise.
8744         * s-pack26.ads: Likewise.
8745         * s-pack27.adb: Likewise.
8746         * s-pack27.ads: Likewise.
8747         * s-pack28.adb: Likewise.
8748         * s-pack28.ads: Likewise.
8749         * s-pack29.adb: Likewise.
8750         * s-pack29.ads: Likewise.
8751         * s-pack30.adb: Likewise.
8752         * s-pack30.ads: Likewise.
8753         * s-pack31.adb: Likewise.
8754         * s-pack31.ads: Likewise.
8755         * s-pack33.adb: Likewise.
8756         * s-pack33.ads: Likewise.
8757         * s-pack34.adb: Likewise.
8758         * s-pack34.ads: Likewise.
8759         * s-pack35.adb: Likewise.
8760         * s-pack35.ads: Likewise.
8761         * s-pack36.adb: Likewise.
8762         * s-pack36.ads: Likewise.
8763         * s-pack37.adb: Likewise.
8764         * s-pack37.ads: Likewise.
8765         * s-pack38.adb: Likewise.
8766         * s-pack38.ads: Likewise.
8767         * s-pack39.adb: Likewise.
8768         * s-pack39.ads: Likewise.
8769         * s-pack40.adb: Likewise.
8770         * s-pack40.ads: Likewise.
8771         * s-pack41.adb: Likewise.
8772         * s-pack41.ads: Likewise.
8773         * s-pack42.adb: Likewise.
8774         * s-pack42.ads: Likewise.
8775         * s-pack43.adb: Likewise.
8776         * s-pack43.ads: Likewise.
8777         * s-pack44.adb: Likewise.
8778         * s-pack44.ads: Likewise.
8779         * s-pack45.adb: Likewise.
8780         * s-pack45.ads: Likewise.
8781         * s-pack46.adb: Likewise.
8782         * s-pack46.ads: Likewise.
8783         * s-pack47.adb: Likewise.
8784         * s-pack47.ads: Likewise.
8785         * s-pack48.adb: Likewise.
8786         * s-pack48.ads: Likewise.
8787         * s-pack49.adb: Likewise.
8788         * s-pack49.ads: Likewise.
8789         * s-pack50.adb: Likewise.
8790         * s-pack50.ads: Likewise.
8791         * s-pack51.adb: Likewise.
8792         * s-pack51.ads: Likewise.
8793         * s-pack52.adb: Likewise.
8794         * s-pack52.ads: Likewise.
8795         * s-pack53.adb: Likewise.
8796         * s-pack53.ads: Likewise.
8797         * s-pack54.adb: Likewise.
8798         * s-pack54.ads: Likewise.
8799         * s-pack55.adb: Likewise.
8800         * s-pack55.ads: Likewise.
8801         * s-pack56.adb: Likewise.
8802         * s-pack56.ads: Likewise.
8803         * s-pack57.adb: Likewise.
8804         * s-pack57.ads: Likewise.
8805         * s-pack58.adb: Likewise.
8806         * s-pack58.ads: Likewise.
8807         * s-pack59.adb: Likewise.
8808         * s-pack59.ads: Likewise.
8809         * s-pack60.adb: Likewise.
8810         * s-pack60.ads: Likewise.
8811         * s-pack61.adb: Likewise.
8812         * s-pack61.ads: Likewise.
8813         * s-pack62.adb: Likewise.
8814         * s-pack62.ads: Likewise.
8815         * s-pack63.adb: Likewise.
8816         * s-pack63.ads: Likewise.
8817         * s-parame-ae653.ads: Likewise.
8818         * s-parame-hpux.ads: Likewise.
8819         * s-parame-rtems.adb: Likewise.
8820         * s-parame-vms-alpha.ads: Likewise.
8821         * s-parame-vms-ia64.ads: Likewise.
8822         * s-parame-vms-restrict.ads: Likewise.
8823         * s-parame-vxworks.adb: Likewise.
8824         * s-parame-vxworks.ads: Likewise.
8825         * s-parame.adb: Likewise.
8826         * s-parame.ads: Likewise.
8827         * s-parint.adb: Likewise.
8828         * s-parint.ads: Likewise.
8829         * s-pooglo.adb: Likewise.
8830         * s-pooglo.ads: Likewise.
8831         * s-pooloc.adb: Likewise.
8832         * s-pooloc.ads: Likewise.
8833         * s-poosiz.adb: Likewise.
8834         * s-poosiz.ads: Likewise.
8835         * s-powtab.ads: Likewise.
8836         * s-proinf-irix-athread.adb: Likewise.
8837         * s-proinf-irix-athread.ads: Likewise.
8838         * s-proinf.adb: Likewise.
8839         * s-proinf.ads: Likewise.
8840         * s-purexc.ads: Likewise.
8841         * s-rannum.adb: Likewise.
8842         * s-rannum.ads: Likewise.
8843         * s-restri.adb: Likewise.
8844         * s-restri.ads: Likewise.
8845         * s-rident.ads: Likewise.
8846         * s-rpc.adb: Likewise.
8847         * s-rpc.ads: Likewise.
8848         * s-scaval.adb: Likewise.
8849         * s-scaval.ads: Likewise.
8850         * s-secsta.adb: Likewise.
8851         * s-secsta.ads: Likewise.
8852         * s-sequio.adb: Likewise.
8853         * s-sequio.ads: Likewise.
8854         * s-shasto.adb: Likewise.
8855         * s-shasto.ads: Likewise.
8856         * s-soflin.adb: Likewise.
8857         * s-soflin.ads: Likewise.
8858         * s-solita.adb: Likewise.
8859         * s-solita.ads: Likewise.
8860         * s-sopco3.adb: Likewise.
8861         * s-sopco3.ads: Likewise.
8862         * s-sopco4.adb: Likewise.
8863         * s-sopco4.ads: Likewise.
8864         * s-sopco5.adb: Likewise.
8865         * s-sopco5.ads: Likewise.
8866         * s-stache.adb: Likewise.
8867         * s-stache.ads: Likewise.
8868         * s-stalib.adb: Likewise.
8869         * s-stalib.ads: Likewise.
8870         * s-stausa.adb: Likewise.
8871         * s-stausa.ads: Likewise.
8872         * s-stchop-limit.ads: Likewise.
8873         * s-stchop-rtems.adb: Likewise.
8874         * s-stchop-vxworks.adb: Likewise.
8875         * s-stchop.adb: Likewise.
8876         * s-stchop.ads: Likewise.
8877         * s-stoele.adb: Likewise.
8878         * s-stoele.ads: Likewise.
8879         * s-stopoo.adb: Likewise.
8880         * s-stopoo.ads: Likewise.
8881         * s-stratt.adb: Likewise.
8882         * s-stratt.ads: Likewise.
8883         * s-strcom.adb: Likewise.
8884         * s-strcom.ads: Likewise.
8885         * s-string.adb: Likewise.
8886         * s-string.ads: Likewise.
8887         * s-strops.adb: Likewise.
8888         * s-strops.ads: Likewise.
8889         * s-strxdr.adb: Likewise.
8890         * s-ststop.adb: Likewise.
8891         * s-ststop.ads: Likewise.
8892         * s-taasde.adb: Likewise.
8893         * s-taasde.ads: Likewise.
8894         * s-tadeca.adb: Likewise.
8895         * s-tadeca.ads: Likewise.
8896         * s-tadert.adb: Likewise.
8897         * s-tadert.ads: Likewise.
8898         * s-taenca.adb: Likewise.
8899         * s-taenca.ads: Likewise.
8900         * s-taprob.ads: Likewise.
8901         * s-taprop-dummy.adb: Likewise.
8902         * s-taprop-hpux-dce.adb: Likewise.
8903         * s-taprop-irix.adb: Likewise.
8904         * s-taprop-linux.adb: Likewise.
8905         * s-taprop-lynxos.adb: Likewise.
8906         * s-taprop-mingw.adb: Likewise.
8907         * s-taprop-posix.adb: Likewise.
8908         * s-taprop-solaris.adb: Likewise.
8909         * s-taprop-tru64.adb: Likewise.
8910         * s-taprop-vms.adb: Likewise.
8911         * s-taprop-vxworks.adb: Likewise.
8912         * s-taprop.ads: Likewise.
8913         * s-tarest.adb: Likewise.
8914         * s-tarest.ads: Likewise.
8915         * s-tasdeb.adb: Likewise.
8916         * s-tasdeb.ads: Likewise.
8917         * s-tasinf-irix.ads: Likewise.
8918         * s-tasinf-linux.adb: Likewise.
8919         * s-tasinf-linux.ads: Likewise.
8920         * s-tasinf-mingw.adb: Likewise.
8921         * s-tasinf-mingw.ads: Likewise.
8922         * s-tasinf-solaris.adb: Likewise.
8923         * s-tasinf-solaris.ads: Likewise.
8924         * s-tasinf-tru64.ads: Likewise.
8925         * s-tasinf.adb: Likewise.
8926         * s-tasinf.ads: Likewise.
8927         * s-tasini.adb: Likewise.
8928         * s-tasini.ads: Likewise.
8929         * s-taskin.adb: Likewise.
8930         * s-taskin.ads: Likewise.
8931         * s-taspri-dummy.ads: Likewise.
8932         * s-taspri-hpux-dce.ads: Likewise.
8933         * s-taspri-mingw.ads: Likewise.
8934         * s-taspri-solaris.ads: Likewise.
8935         * s-taspri-tru64.ads: Likewise.
8936         * s-taspri-vms.ads: Likewise.
8937         * s-taspri-vxworks.ads: Likewise.
8938         * s-tasque.adb: Likewise.
8939         * s-tasque.ads: Likewise.
8940         * s-tasren.adb: Likewise.
8941         * s-tasren.ads: Likewise.
8942         * s-tasres.ads: Likewise.
8943         * s-tassta.adb: Likewise.
8944         * s-tassta.ads: Likewise.
8945         * s-tasuti.adb: Likewise.
8946         * s-tasuti.ads: Likewise.
8947         * s-tfsetr-default.adb: Likewise.
8948         * s-tfsetr-vxworks.adb: Likewise.
8949         * s-tpinop.adb: Likewise.
8950         * s-tpinop.ads: Likewise.
8951         * s-tpoben.adb: Likewise.
8952         * s-tpoben.ads: Likewise.
8953         * s-tpobop.adb: Likewise.
8954         * s-tpobop.ads: Likewise.
8955         * s-tpopde-vms.adb: Likewise.
8956         * s-tpopde-vms.ads: Likewise.
8957         * s-tpopsp-lynxos.adb: Likewise.
8958         * s-tpopsp-posix-foreign.adb: Likewise.
8959         * s-tpopsp-posix.adb: Likewise.
8960         * s-tpopsp-solaris.adb: Likewise.
8961         * s-tpopsp-vxworks.adb: Likewise.
8962         * s-tporft.adb: Likewise.
8963         * s-tposen.adb: Likewise.
8964         * s-tposen.ads: Likewise.
8965         * s-traceb.adb: Likewise.
8966         * s-traceb.ads: Likewise.
8967         * s-traces-default.adb: Likewise.
8968         * s-traces.adb: Likewise.
8969         * s-traces.ads: Likewise.
8970         * s-traent-vms.adb: Likewise.
8971         * s-traent-vms.ads: Likewise.
8972         * s-traent.adb: Likewise.
8973         * s-traent.ads: Likewise.
8974         * s-trafor-default.adb: Likewise.
8975         * s-trafor-default.ads: Likewise.
8976         * s-tratas-default.adb: Likewise.
8977         * s-tratas.adb: Likewise.
8978         * s-tratas.ads: Likewise.
8979         * s-unstyp.ads: Likewise.
8980         * s-utf_32.adb: Likewise.
8981         * s-utf_32.ads: Likewise.
8982         * s-vaflop-vms-alpha.adb: Likewise.
8983         * s-vaflop.adb: Likewise.
8984         * s-vaflop.ads: Likewise.
8985         * s-valboo.adb: Likewise.
8986         * s-valboo.ads: Likewise.
8987         * s-valcha.adb: Likewise.
8988         * s-valcha.ads: Likewise.
8989         * s-valdec.adb: Likewise.
8990         * s-valdec.ads: Likewise.
8991         * s-valenu.adb: Likewise.
8992         * s-valenu.ads: Likewise.
8993         * s-valint.adb: Likewise.
8994         * s-valint.ads: Likewise.
8995         * s-vallld.adb: Likewise.
8996         * s-vallld.ads: Likewise.
8997         * s-vallli.adb: Likewise.
8998         * s-vallli.ads: Likewise.
8999         * s-valllu.adb: Likewise.
9000         * s-valllu.ads: Likewise.
9001         * s-valrea.adb: Likewise.
9002         * s-valrea.ads: Likewise.
9003         * s-valuns.adb: Likewise.
9004         * s-valuns.ads: Likewise.
9005         * s-valuti.adb: Likewise.
9006         * s-valuti.ads: Likewise.
9007         * s-valwch.adb: Likewise.
9008         * s-valwch.ads: Likewise.
9009         * s-veboop.adb: Likewise.
9010         * s-veboop.ads: Likewise.
9011         * s-vector.ads: Likewise.
9012         * s-vercon.adb: Likewise.
9013         * s-vercon.ads: Likewise.
9014         * s-vmexta.adb: Likewise.
9015         * s-vmexta.ads: Likewise.
9016         * s-vxwext-kernel.ads: Likewise.
9017         * s-vxwext-rtp.adb: Likewise.
9018         * s-vxwext-rtp.ads: Likewise.
9019         * s-vxwext.ads: Likewise.
9020         * s-vxwork-arm.ads: Likewise.
9021         * s-vxwork-m68k.ads: Likewise.
9022         * s-vxwork-mips.ads: Likewise.
9023         * s-vxwork-ppc.ads: Likewise.
9024         * s-vxwork-sparcv9.ads: Likewise.
9025         * s-vxwork-x86.ads: Likewise.
9026         * s-wchcnv.adb: Likewise.
9027         * s-wchcnv.ads: Likewise.
9028         * s-wchcon.adb: Likewise.
9029         * s-wchcon.ads: Likewise.
9030         * s-wchjis.adb: Likewise.
9031         * s-wchjis.ads: Likewise.
9032         * s-wchstw.adb: Likewise.
9033         * s-wchstw.ads: Likewise.
9034         * s-wchwts.adb: Likewise.
9035         * s-wchwts.ads: Likewise.
9036         * s-widboo.adb: Likewise.
9037         * s-widboo.ads: Likewise.
9038         * s-widcha.adb: Likewise.
9039         * s-widcha.ads: Likewise.
9040         * s-widenu.adb: Likewise.
9041         * s-widenu.ads: Likewise.
9042         * s-widlli.adb: Likewise.
9043         * s-widlli.ads: Likewise.
9044         * s-widllu.adb: Likewise.
9045         * s-widllu.ads: Likewise.
9046         * s-widwch.adb: Likewise.
9047         * s-widwch.ads: Likewise.
9048         * s-win32.ads: Likewise.
9049         * s-winext.ads: Likewise.
9050         * s-wwdcha.adb: Likewise.
9051         * s-wwdcha.ads: Likewise.
9052         * s-wwdenu.adb: Likewise.
9053         * s-wwdenu.ads: Likewise.
9054         * s-wwdwch.adb: Likewise.
9055         * s-wwdwch.ads: Likewise.
9056         * scans.adb: Likewise.
9057         * scans.ads: Likewise.
9058         * seh_init.c: Likewise.
9059         * sfn_scan.adb: Likewise.
9060         * sinfo.adb: Likewise.
9061         * sinfo.ads: Likewise.
9062         * sinput.adb: Likewise.
9063         * sinput.ads: Likewise.
9064         * snames.adb: Likewise.
9065         * snames.ads: Likewise.
9066         * socket.c: Likewise.
9067         * stand.adb: Likewise.
9068         * stand.ads: Likewise.
9069         * stringt.adb: Likewise.
9070         * stringt.ads: Likewise.
9071         * sysdep.c: Likewise.
9072         * system-aix.ads: Likewise.
9073         * system-darwin-ppc.ads: Likewise.
9074         * system-darwin-x86.ads: Likewise.
9075         * system-darwin-x86_64.ads: Likewise.
9076         * system-freebsd-x86.ads: Likewise.
9077         * system-hpux-ia64.ads: Likewise.
9078         * system-hpux.ads: Likewise.
9079         * system-irix-n32.ads: Likewise.
9080         * system-irix-n64.ads: Likewise.
9081         * system-irix-o32.ads: Likewise.
9082         * system-linux-alpha.ads: Likewise.
9083         * system-linux-hppa.ads: Likewise.
9084         * system-linux-ia64.ads: Likewise.
9085         * system-linux-mips.ads: Likewise.
9086         * system-linux-mipsel.ads: Likewise.
9087         * system-linux-ppc.ads: Likewise.
9088         * system-linux-ppc64.ads: Likewise.
9089         * system-linux-s390.ads: Likewise.
9090         * system-linux-s390x.ads: Likewise.
9091         * system-linux-sh4.ads: Likewise.
9092         * system-linux-sparc.ads: Likewise.
9093         * system-linux-sparcv9.ads: Likewise.
9094         * system-linux-x86.ads: Likewise.
9095         * system-linux-x86_64.ads: Likewise.
9096         * system-lynxos-ppc.ads: Likewise.
9097         * system-lynxos-x86.ads: Likewise.
9098         * system-mingw-x86_64.ads: Likewise.
9099         * system-mingw.ads: Likewise.
9100         * system-rtems.ads: Likewise.
9101         * system-solaris-sparc.ads: Likewise.
9102         * system-solaris-sparcv9.ads: Likewise.
9103         * system-solaris-x86.ads: Likewise.
9104         * system-solaris-x86_64.ads: Likewise.
9105         * system-tru64.ads: Likewise.
9106         * system-vms-ia64.ads: Likewise.
9107         * system-vms-zcx.ads: Likewise.
9108         * system-vms.ads: Likewise.
9109         * system-vms_64.ads: Likewise.
9110         * system-vxworks-arm.ads: Likewise.
9111         * system-vxworks-m68k.ads: Likewise.
9112         * system-vxworks-mips.ads: Likewise.
9113         * system-vxworks-ppc.ads: Likewise.
9114         * system-vxworks-sparcv9.ads: Likewise.
9115         * system-vxworks-x86.ads: Likewise.
9116         * system.ads: Likewise.
9117         * table.adb: Likewise.
9118         * table.ads: Likewise.
9119         * targext.c: Likewise.
9120         * targparm.ads: Likewise.
9121         * tree_in.adb: Likewise.
9122         * tree_in.ads: Likewise.
9123         * tree_io.adb: Likewise.
9124         * tree_io.ads: Likewise.
9125         * types.adb: Likewise.
9126         * types.ads: Likewise.
9127         * uintp.adb: Likewise.
9128         * uintp.ads: Likewise.
9129         * uname.adb: Likewise.
9130         * uname.ads: Likewise.
9131         * urealp.adb: Likewise.
9132         * urealp.ads: Likewise.
9133         * vx_stack_info.c: Likewise.
9134         * widechar.adb: Likewise.
9135         * widechar.ads: Likewise.
9136         * exp_attr.adb: Change copyright header to refer to version
9137         3 of the GNU General Public License and to point readers at the
9138         COPYING3 file and the FSF's license web page.
9139         * sem.adb: Likewise.
9140         * sem_attr.ads: Likewise.
9141         * freeze.adb: Likewise.
9142         * freeze.ads: Likewise.
9143         * errout.ads: Likewise.
9144         * erroutc.adb: Likewise.
9145         * exp_ch11.ads: Likewise.
9147 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
9149         * config-lang.in: Change copyright header to refer to version
9150         3 of the GNU General Public License and to point readers at the
9151         COPYING3 file and the FSF's license web page.
9152         * gcc-interface/trans.c: Likewise.
9153         * gnathtml.pl: Likewise.
9154         * gcc-interface/ada.h: Likewise.  Remove runtime exception.
9155         * gcc-interface/gigi.h: Likewise.
9156         * gcc-interface/misc.c: Likewise.
9157         * gcc-interface/targtyps.c: Likewise.
9159 2009-04-09  Nicolas Setton  <setton@adacore.com>
9161         * s-osinte-darwin.ads: Fix wrong binding to struc timeval.
9163         * s-osinte-darwin.adb (To_Timeval): Adapt to fixed implementation of
9164         struct_timeval.
9166 2009-04-09  Bob Duff  <duff@adacore.com>
9168         * exp_ch5.adb, exp_ch9.adb: Correct miscellaneous Slocs in
9169         internally-generated nodes related to select statements to avoid
9170         confusing the debugger.
9172 2009-04-09  Pascal Obry  <obry@adacore.com>
9174         * make.adb: Ensure that all linker arguments are duplicated.
9176 2009-04-09  Robert Dewar  <dewar@adacore.com>
9178         * sem_ch5.adb: Minor reformatting
9180 2009-04-09  Vincent Celier  <celier@adacore.com>
9182         * vms_data.ads:
9183         Change GNAT CHECK qualifier /DIAGNOSIS_LIMIT to /DIAGNOSTIC_LIMIT
9184         New qualifier /LEXPAND_SOURCE=nnn for -gnatGnnn
9185         New qualifier /LXDEBUG=nnn for -gnatDnnn
9186         For H820-010
9188         * gnat_ugn.texi:
9189         Update documentation for VMS qualifiers equivalent to -gnatGnn and
9190         -gnatDnn
9192 2009-04-09  Nicolas Setton  <setton@adacore.com>
9194         * s-osinte-darwin.ads: (Pad_Type): Make this an array of unsigned_long,
9195         to match layout of siginfo_t in sys/signal.h.
9197         * gcc-interface/Makefile.in: Add section for x86_64 darwin.
9199 2009-04-09  Thomas Quinot  <quinot@adacore.com>
9201         * g-socket.ads: (Fd_Set): Use Interfaces.C.long alignment.
9203 2009-04-09  Nicolas Setton  <setton@adacore.com>
9205         * s-oscons-tmplt.c: Allow long lines in the generated spec.
9206         Add generation of Darwin-specific constants needed when binding to the
9207         pthread library.
9209 2009-04-09  Robert Dewar  <dewar@adacore.com>
9211         * checks.adb:
9212         (Insert_Valid_Check): Avoid unnecessary generation of junk declaration
9213         when no invalid values exist, Avoid duplicate read of atomic variable.
9215         * cstand.adb (Build_Signed_Integer_Type): Set Is_Known_Valid
9216         (Standard_Unsigned): Set Is_Known_Valid
9218         * sem_ch3.adb (Analyze_Subtype_Declaration): Copy Is_Known_Valid on
9219         subtype declaration if no constraint.
9220         (Set_Modular_Size): Set Is_Known_Valid if appropriate
9221         (Build_Derived_Numeric_Type): Copy Is_Known_Valid if no constraint
9223 2009-04-09  Robert Dewar  <dewar@adacore.com>
9225         * switch-c.adb, gnat_ugn.texi, vms_data.ads, switch.adb,
9226         switch.ads: for numeric switches, an optional equal sign is always
9227         allowed.
9229 2009-04-09  Vincent Celier  <celier@adacore.com>
9231         * prj-nmsc.adb (Get_Unit): Do not consider Casing on platform where
9232         the case of file names is not significant.
9234 2009-04-09  Vincent Celier  <celier@adacore.com>
9236         * errout.adb: Remove dependency on package Style
9238         * style.ads, styleg.adb, styleg.ads (RM_Column_Check): Remove function,
9239         moved to Stylesw.
9240         
9241         * stylesw.ads, stylesw.adb (RM_Column_Check): New function, moved from
9242         Styleg.
9244         * errutil.adb, par.adb: Import Stylesw
9246 2009-04-09  Arnaud Charlet  <charlet@adacore.com>
9248         * opt.ads: Fix typos.
9250 2009-04-09  Robert Dewar  <dewar@adacore.com>
9252         * einfo.adb: Minor reformatting
9254 2009-04-09  Robert Dewar  <dewar@adacore.com>
9256         * gcc-interface/Make-lang.in, style.ads, style.adb: Reorganize style
9257         units.
9259         * styleg-c.ads, styleg-c.adb: Removed, no longer used.
9261 2009-04-09  Robert Dewar  <dewar@adacore.com>
9263         * g-comver.adb: Minor reformatting.
9265 2009-04-09  Thomas Quinot  <quinot@adacore.com>
9267         * lib-load.ads (Load_Unit): Update documentation.
9269 2009-04-09  Ed Schonberg  <schonberg@adacore.com>
9271         * lib-load.adb (Load_Unit): When loading the parent of a child unit
9272         named in a with_clause, retain the with_clause to preserve a
9273         limited_with indication.
9275 2009-04-09  Robert Dewar  <dewar@adacore.com>
9277         * sem_ch7.adb, sem_ch10.adb, sem_prag.adb, sem_ch12.adb, sem_util.adb,
9278         exp_ch13.adb, sem_ch6.adb, exp_disp.adb, sem_ch8.adb, sem_warn.adb,
9279         sem_cat.adb: Code clean up: use Is_Package_Or_Generic_Package where
9280         possible to replace an OR of two separate tests.
9282 2009-04-09  Robert Dewar  <dewar@adacore.com>
9284         * binderr.adb, errout.adb, errutil.adb: New circuitry for handling
9285         Maximum_Messages.
9286         
9287         * erroutc.adb, erroutc.ads (Warnings_Suppressed): Now tests global
9288         warning status as well.
9289         
9290         * opt.ads (Maximum_Messages): New name for Maximum_Errors.
9291         
9292         * switch-b.adb, switch-c.adb: Change name Maximum_Errors to
9293         Maximum_Messages.
9294         
9295         * bindusg.adb, usage.adb: Update line for -gnatm switch
9297         * gnat_ugn.texi: Update documentation for -gnatmnn compiler switch and
9298         -mnn binder switch.
9300 2009-04-09  Robert Dewar  <dewar@adacore.com>
9302         * sem_ch10.adb: Minor reformatting.
9304 2009-04-09  Bob Duff  <duff@adacore.com>
9306         * exp_ch11.adb (Expand_Exception_Handlers, Prepend_Call_To_Handler):
9307         Set Sloc of generated nodes for calls to Undefer_Aborts and
9308         Save_Occurrence to No_Location, so the debugger ignores them and
9309         therefore does not jump back and forth when single stepping.
9311 2009-04-09  Robert Dewar  <dewar@adacore.com>
9313         * switch-b.adb: Minor reformatting.
9315 2009-04-09  Robert Dewar  <dewar@adacore.com>
9317         * sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
9318         sem_dist.adb, exp_ch7.adb, sem_ch5.adb, sem_type.adb, exp_imgv.adb,
9319         exp_util.adb, sem_aux.adb, sem_aux.ads, exp_attr.adb, exp_ch9.adb,
9320         sem_ch7.adb, inline.adb, fe.h, sem_ch9.adb, exp_code.adb, einfo.adb,
9321         einfo.ads, exp_pakd.adb, checks.adb, sem_ch12.adb, exp_smem.adb,
9322         tbuild.adb, freeze.adb, sem_util.adb, sem_res.adb, sem_attr.adb,
9323         exp_dbug.adb, sem_case.adb, exp_tss.adb, exp_ch4.adb, exp_ch6.adb,
9324         sem_smem.adb, sem_ch4.adb, sem_mech.adb, sem_ch6.adb, exp_disp.adb,
9325         sem_ch8.adb, exp_aggr.adb, sem_eval.adb, sem_cat.adb, exp_dist.adb,
9326         sem_ch13.adb, exp_strm.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb:
9327         Reorganize einfo/sem_aux, moving routines from einfo to sem_aux
9329 2009-04-09  Robert Dewar  <dewar@adacore.com>
9331         * exp_util.adb (Silly_Boolean_Array_Xor_Test): Simplify existing code.
9333         * atree.h: Add Elist26
9335         * gnat_ugn.texi: Complete documentation deprecating -gnatN for non-gcc
9336         backends.
9338 2009-04-09  Javier Miranda  <miranda@adacore.com>
9340         * exp_disp.adb (Export_DT): Addition of a new argument (Index); used to
9341         retrieve from the Dispatch_Table_Wrappers list the external name.
9342         Addition of documentation.
9343         (Make_Secondary_DT): Addition of a new argument (Suffix_Index) that is
9344         used to export secondary dispatch tables (in the previous version of
9345         the frontend only primary dispatch tables were exported). Addition of
9346         documentation.
9347         (Import_DT): New subprogram (internal of Make_Tags). Used to import a
9348         dispatch table of a given tagged type. 
9349         (Make_Tags): Modified to import secondary dispatch tables.
9351         * sem_ch3.adb (Analyze_Object_Declaration): Code cleanup.
9352         (Constant_Redeclaration): Code cleanup.
9354         * einfo.ads (Dispatch_Table_Wrapper): Renamed to
9355         Dispatch_Table_Wrappers.  Update documentation.
9357         * einfo.adb (Dispatch_Table_Wrapper, Set_Dispatch_Table_Wrapper):
9358         Renamed to Dispatch_Table_Wrappers.
9360         * sem_util.adb (Collect_Interface_Components): Improve handling of
9361         private types.
9363         * atree.ads (Elist26, Set_Elist26): New subprograms
9365         * atree.adb (Elist26, Set_Elist26): New subprograms
9367 2009-04-09  Javier Miranda  <miranda@adacore.com>
9369         * sem_ch3.adb (Build_Derived_Record_Type): Fix typo.
9370         (Derive_Progenitor_Subprograms): Handle interfaces in subtypes of
9371         tagged types.
9373 2009-04-09  Robert Dewar  <dewar@adacore.com>
9375         * s-direio.adb: Minor reformatting
9377         * exp_ch4.adb (Expand_Concatenate): Avoid overflow checks for String
9379 2009-04-09  Robert Dewar  <dewar@adacore.com>
9381         * exp_ch4.adb (Expand_Concatenate): Improve handling of overflow cases
9383 2009-04-09  Pascal Obry  <obry@adacore.com>
9385         * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coinve.ads,
9386         s-tpoben.adb, s-tpoben.ads, s-finimp.adb, s-finimp.ads,
9387         a-convec.adb, a-convec.ads, a-finali.adb, a-finali.ads,
9388         a-filico.ads: Add some missing overriding keywords.
9390 2009-04-09  Pascal Obry  <obry@adacore.com>
9392         * a-cihama.adb, a-cihama.ads, a-coinve.adb, a-coorma.ads, a-cihase.adb,
9393         a-cihase.ads, a-cohama.adb, a-cohama.ads, a-coorse.adb, a-coorse.ads,
9394         a-coormu.adb, a-coormu.ads, a-cohase.adb, a-cohase.ads: Minor
9395         reformatting.
9397 2009-04-09  Ed Schonberg  <schonberg@adacore.com>
9399         * sem_ch6.adb (Check_Overriding_Indicator): Do not generate warning on
9400         missing overriding indicator if the new declaration is not seen as
9401         primitive.
9403 2009-04-09  Thomas Quinot  <quinot@adacore.com>
9405         * exp_ch4.adb (Expand_Concatenate): Add circuitry to properly handle
9406         overflows in computation of bounds.
9408 2009-04-09  Pascal Obry  <obry@adacore.com>
9410         * a-cihama.adb, a-cgcaso.adb, a-cihase.adb, a-cohase.adb: Fix some
9411         typos in comment.
9413 2009-04-09  Robert Dewar  <dewar@adacore.com>
9415         * sem_attr.adb (Check_Stream_Attribute): Check violation of
9416         restriction No_Streams
9418         * gnat_rm.texi: Clarify No_Streams restriction
9420         * g-socket.adb: Minor reformatting.
9422 2009-04-09  Thomas Quinot  <quinot@adacore.com>
9424         * g-socket.ads: Mark Initialize and Finalize as obsolesent interfaces.
9426 2009-04-09  Geert Bosch  <bosch@adacore.com>
9428         * exp_fixd.adb (Build_Conversion): Accept new optional Trunc argument.
9429         (Set_Result): Likewise.
9430         (Expand_Convert_Float_To_Fixed): Have Set_Result truncate the
9431         conversion, as required by RM 4.6(31).
9433 2009-04-08  Robert Dewar  <dewar@adacore.com>
9435         * checks.adb (Enable_Overflow_Check): Do not enable if overflow checks
9436         suppressed.
9437         
9438         * exp_ch4.adb (Expand_Concatenate): Make sure checks are off for all
9439         resolution steps.
9441 2009-04-08  Robert Dewar  <dewar@adacore.com>
9443         * sem_ch12.adb (Analyze_Package_Instantiation): Remove test for
9444         No_Local_Allocators restriction preventing local instantiation.
9446 2009-04-08  Thomas Quinot  <quinot@adacore.com>
9448         * sem_eval.adb: Minor comment fix
9450 2009-04-08  Thomas Quinot  <quinot@adacore.com>
9452         * g-socket.adb, g-socket.ads (GNAT.Sockets.Sockets_Library_Controller):
9453         New limited controlled type used to automate the initialization and
9454         finalization of the sockets implementation.
9455         (GNAT.Sockets.Initialize, Finalize): Make these no-ops
9457 2009-04-08  Vincent Celier  <celier@adacore.com>
9459         * prj-attr.adb: New read-only project-level attribute Project_Dir
9461         * prj-proc.adb (Add_Attributes): New parameter Project_Dir, value of
9462         read-only attribute of the same name.
9463         (Process_Declarative_Items): Call Add_Attributes with Project_Dir
9464         (Recursive_Process): Ditto
9466         * snames.adb: Add new standard name Project_Dir
9468         * snames.ads: Add new standard name Project_Dir
9470 2009-04-08  Thomas Quinot  <quinot@adacore.com>
9472         * checks.adb: Minor reformatting
9474 2009-04-08  Vincent Celier  <celier@adacore.com>
9476         * vms_data.ads: Add documentation for new style keyword
9477         OVERRIDING_INDICATORS
9479 2009-04-08  Robert Dewar  <dewar@adacore.com>
9481         * sem_ch3.adb (Check_Completion.Post_Error): Post error on spec if the
9482         spec is in the current unit.
9484 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
9486         * sem_util.adb (Is_Protected_Self_Reference): Add guard to check for
9487         presence of entity.
9489         * usage.adb, gnat_ugn.texi: add info on -gnatyO: overriding indicators
9491 2009-04-08  Vincent Celier  <celier@adacore.com>
9493         * vms_data.ads: Add VMS equivalent for -gnatyO (OVERRIDING_INDICATORS)
9495 2009-04-08  Thomas Quinot  <quinot@adacore.com>
9497         * checks.ads: Minor reformatting
9499 2009-04-08  Robert Dewar  <dewar@adacore.com>
9501         * gnat_rm.texi: Update documentation of pragma Obsolescent
9502         
9503         * sem_prag.adb (Analyze_Pragma, case Obsolescent): Allow identifiers to
9504         be omitted, and allow Entity parameter to be omitted.
9506 2009-04-08  Thomas Quinot  <quinot@adacore.com>
9508         * exp_util.adb: Minor comment fix
9510 2009-04-08  Robert Dewar  <dewar@adacore.com>
9512         * g-socket.ads: Fix bad syntax in pragma Obsolescent
9514         * par-ch2.adb (Scan_Pragma_Argument_Association): Check for error of
9515         argument with no identifier following one that has an identifier. Was
9516         missed in some cases.
9518         * sem_prag.adb (Analyze_Pragma, case Check_Policy): Allow Policy
9519         identifier.
9520         (Analyze_Pragma, case Obsolescent): Allow Message, Version identifiers
9522         * snames.adb: Add Name_Policy
9524         * snames.ads: Add Name_Policy
9526 2009-04-08  Robert Dewar  <dewar@adacore.com>
9528         * gnat_rm.texi: Minor reformatting
9530         * par-ch2.adb: Minor reformatting
9532 2009-04-08  Robert Dewar  <dewar@adacore.com>
9534         * exp_attr.adb, sem_attr.adb, sem_util.adb: Code clean up.
9536 2009-04-08  Robert Dewar  <dewar@adacore.com>
9538         * sem_cat.adb (Check_Categorization_Dependencies): Handle Preelaborate
9539         properly in the presence of Remote_Types or Remote_Call_Interface.
9541         * sem_util.adb: Add comment.
9543 2009-04-08  Robert Dewar  <dewar@adacore.com>
9545         * ug_words: Add /ASSUME_VALID for -gnatB
9547         * vms_data.ads: Add /ASSUME_VALID for -gnatB
9549         * sem_cat.adb: Add clarifying commment
9551         * a-direio.ads (Bytes): Make sure value is non-zero
9553 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
9555         * sem_util.adb (Is_Variable): If the prefix is an explicit dereference
9556         that does not come from source, check for a rewritten function call in
9557         prefixed notation before other forms of rewriting.
9559 2009-04-08  Robert Dewar  <dewar@adacore.com>
9561         * Makefile.rtl: Remove s-strops and s-sopco? from the run time, since
9562         these are now obsolescent units used only for bootrapping with an
9563         older compiler.
9565 2009-04-08  Robert Dewar  <dewar@adacore.com>
9567         * gnat_rm.texi: Add documentation for pragma Thread_Local_Storage
9569         * sem_ch3.adb: Minor comment updates
9571 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
9573         * inline.adb (Back_End_Cannot_Inline): restrict warning to subprograms
9574         that come from source.
9576 2009-04-08  Tristan Gingold  <gingold@adacore.com>
9578         * gcc-interface/gigi.h (enum attr_type): Add ATTR_THREAD_LOCAL_STORAGE.
9579         * gcc-interface/decl.c (prepend_attributes): New case
9580         Pragma_Thread_Local_Storage.
9581         * gcc-interface/utils.c (process_attributes): New case
9582         ATTR_THREAD_LOCAL_STORAGE.
9584 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
9586         * inline.adb (Back_End_Cannot_Inline): Do not mark a body as inlineable
9587         by the back-end if it contains a call to a subprogram without a
9588         previous spec that is declared in the same unit.
9590         * errout.ads: Update comments on uses of dirs
9592 2009-04-08  Robert Dewar  <dewar@adacore.com>
9594         * exp_ch4.adb (Expand_Concatenate): Make sure nodes are properly typed
9596 2009-04-08  Tristan Gingold  <gingold@adacore.com>
9598         * sem_prag.adb: Restrict pragma Thread_Local_Storage to library level
9599         variables.
9600         Set Has_Gigi_Rep_Item flag to TLS variables (to ease gigi work).
9602 2009-04-08  Vincent Celier  <celier@adacore.com>
9604         * prj-nmsc.adb:
9605         (Add_Source): Add the mapping of the unit name to source file name in
9606         the Unit_Sources_HT hash table, if the unit name is not null.
9608         * prj.adb (Reset): Reset hash table Tree.Unit_Sources_HT
9610         * prj.ads (Unit_Sources_Htable): New hash table instantiation
9611         (Project_Tree_Data): New component Unit_Sources_HT
9613 2009-04-08  Thomas Quinot  <quinot@adacore.com>
9615         * sem_ch8.adb: Minor reformatting.
9616         Minor code reorganization.
9618 2009-04-08  Robert Dewar  <dewar@adacore.com>
9620         * snames.h, einfo.adb, einfo.ads, sem_prag.adb, snames.adb,
9621         snames.ads, freeze.adb, par-prag.adb: Add implementation of
9622         pragma Thread_Local_Storage, setting new flag
9623         Has_Pragma_Thread_Local_Storage in corresponding entities.
9625 2009-04-08  Emmanuel Briot  <briot@adacore.com>
9627         * prj.ads: Update comment on switches file
9629         * prj-nmsc.adb: Code clean up. Use renaming clauses.
9631 2009-04-08  Robert Dewar  <dewar@adacore.com>
9633         * exp_ch4.adb (Expand_Concatenate): Further fixes to bounds handling
9635 2009-04-08  Thomas Quinot  <quinot@adacore.com>
9637         * ali-util.adb: Minor comment fix
9639 2009-04-08  Ed Schonberg  <schonberg@adacore.com>
9641         * sem_ch8.adb (Analyze_Use_Type): Improve error message when clause
9642         appears in a context clause, and the enclosing package is mentioned in
9643         a limited_with_clause.
9644         (Use_One_Type): Reject clause if type is still incomplete.
9646 2009-04-08  Emmanuel Briot  <briot@adacore.com>
9648         * prj-nmsc.adb (Check_File, Process_Sources_In_Multi_Language_Mode):
9649         avoid copies of Source_Data variables when possible, since these
9650         involve calls to memcpy() which are done too many times.
9652 2009-04-08  Robert Dewar  <dewar@adacore.com>
9654         * exp_ch4.adb (Expand_Concatenate): Clean up code
9656 2009-04-07  Thomas Quinot  <quinot@adacore.com>
9658         * exp_ch4.adb (Expand_Concatenate): Add missing conversion to index
9659         type for the case of concatenating a constrained array indexed by an
9660         enumeration type.
9662 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
9664         * sem_ch6.adb (Check_Conformance): when checking conformance of an
9665         operation that overrides an abstract operation inherited from an
9666         interface, return False if only one of the controlling formals is an
9667         access parameter.
9669 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
9671         * sem_ch8.adb (Analyze_Object_Renaming): additional error messages
9672         mandated by AI05-105.
9674 2009-04-07  Vincent Celier  <celier@adacore.com>
9676         * prj-nmsc.adb (Get_Mains): Warn if a main is an empty string
9678 2009-04-07  Thomas Quinot  <quinot@adacore.com>
9680         * usage.adb: Minor fix in usage message.
9682         * sem_ch10.adb (Remove_Homonyms): Fix subtype of formal in body to
9683         match declaration; the correct subtype is Node_Id, not Entity_Id,
9684         because the expected node kind is an identifier, not a defining
9685         identifier.
9687         * switch-c.adb: Minor reformatting.
9689         * uintp.adb: Minor reformatting.
9691 2009-04-07  Robert Dewar  <dewar@adacore.com>
9693         * exp_ch13.adb: Minor reformatting
9695 2009-04-07  Robert Dewar  <dewar@adacore.com>
9697         * sem_warn.adb (Check_Infinite_Loop_Warning.Test_Ref): Add defence
9698         against missing parent.
9700 2009-04-07  Thomas Quinot  <quinot@adacore.com>
9702         * xoscons.adb: Minor reformatting
9704 2009-04-07  Robert Dewar  <dewar@adacore.com>
9706         * rtsfind.ads: Remove obsolete string concatenation entries
9708 2009-04-07  Robert Dewar  <dewar@adacore.com>
9710         * exp_ch4.adb (Expand_Concatenate): Redo handling of bounds
9712 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
9714         * sem_ch10.adb (Check_Body_Required): Handle properly imported
9715         subprograms.
9717 2009-04-07  Gary Dismukes  <dismukes@adacore.com>
9719         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case
9720         Attribute_Address): When Init_Or_Norm_Scalars is True and the object
9721         is of a scalar or string type then suppress the setting of the
9722         expression to Empty.
9724         * freeze.adb (Warn_Overlay): Also emit the warnings about default
9725         initialization for the cases of scalar and string objects when
9726         Init_Or_Norm_Scalars is True.
9728 2009-04-07  Bob Duff  <duff@adacore.com>
9730         * s-secsta.ads, g-pehage.ads, s-fileio.ads: Minor comment fixes
9732 2009-04-07  Bob Duff  <duff@adacore.com>
9734         * gnat_rm.texi, s-fileio.adb (System.File_IO.Open): New feature: A
9735         Form parameter of Text_Translation=No allows binary mode for Text_IO
9736         files.
9738         * gnat_rm.texi: Document Form parameter Text_Translation=xxx.
9740 2009-04-07  Javier Miranda  <miranda@adacore.com>
9742         * exp_ch5.adb (Expand_Assign_Array): Add implicit conversion when
9743         processing the bounds for bit packed arrays or VM target machines.
9745 2009-04-07  Thomas Quinot  <quinot@adacore.com>
9747         * g-sothco.ads (Int_Access): Remove extraneous access type (use
9748         anonymous access instead).
9749         (Get_Socket_From_Set): Fix incorrectly reverted formals
9750         Last and Socket to match the underlying C routine.
9752         * g-socket.adb, g-socket.ads
9753         (Get): Use named parameter associations instead of positional ones in
9754         call go Get_Socket_From_Set, since this routine has two formals of the
9755         same type.
9756         (Image): New procedure.
9758         * g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
9759         g-socthi-vxworks.ads, g-socthi-mingw.ads, g-socthi.adb, g-socthi.ads:
9760         (C_Ioctl, Syscall_Ioctl): use "access C.int" instead of "Int_Access"
9761         for type of Arg formal.
9763         * sem_warn.adb: Minor reformatting
9765 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
9767         * sem_util.adb (Has_Tagged_Component): Fix typo in loop that iterates
9768         over record components.
9770 2009-04-07  Nicolas Roche  <roche@adacore.com>
9772         * gsocket.h:
9773         Don't include resolvLib.h on VxWorks 6 (kernel and rtp). This library
9774         has disappeared between VxWorks 6.4 and VxWorks 6.5
9775         In RTP mode use time.h instead of times.h
9777 2009-04-07  Robert Dewar  <dewar@adacore.com>
9779         * exp_ch4.adb (Expand_N_Op_Concat): Improve lower bound handling
9781 2009-04-07  Kevin Pouget  <pouget@adacore.com>
9783         * exp_dist.adb: Modify Build_From_Any_Fonction procedure to correct
9784         expanded code for constrained types.
9786 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
9788         * sem_ch4.adb (Analyze_Overloaded_Selected_Component): implement
9789         AI05-105: in an object renaming declaration, anonymousness is a name
9790         resolution rule.
9792         * sem_ch8.adb (Analyze_Object_Renaming): Ditto.
9794 2009-04-07  Arnaud Charlet  <charlet@adacore.com>
9796         * g-comlin.adb (Expansion): Fix old regression: also return directory
9797         names when matching.
9799 2009-04-07  Robert Dewar  <dewar@adacore.com>
9801         * exp_ch4.adb:
9802         (Expand_N_Op_Concat): Call Expand_Concatenate for all cases
9803         (Expand_Concatenate): New name for Expand_Concatenate_String which has
9804         been rewritten to handle all types.
9805         (Expand_Concatenate_Other): Remove
9807 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
9809         * lib-xref.adb (Generate_Reference): A default subprogram in an
9810         instance appears within the tree for the instance, but generates an
9811         implicit reference in the ALI.
9813 2009-04-07  Javier Miranda  <miranda@adacore.com>
9815         * sem_ch3.adb (Build_Derived_Record_Type): When processing a tagged
9816         derived type that has discriminants, propagate the list of interfaces
9817         to the corresponding new base type. In addition, propagate also
9818         attribute Limited_Present (found working in this patch).
9820 2009-04-07  Robert Dewar  <dewar@adacore.com>
9822         * exp_ch4.adb: Rewrite concatenation expansion.
9824 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
9826         * sem_ch8.adb (Restore_Scope_Stack): First_Private_Entity is only
9827         relevant to packages.
9829 2009-04-07  Robert Dewar  <dewar@adacore.com>
9831         * sem_attr.adb: Minor reformatting
9833         * sem_ch6.adb: Minor reformatting
9835 2009-04-07  Tristan Gingold  <gingold@adacore.com>
9837         * socket.c: Add more protections against S_resolvLib_ macros.
9839 2009-04-07  Thomas Quinot  <quinot@adacore.com>
9841         * sem_attr.adb: Minor reformatting
9843 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
9845         * sem_ch6.adb (New_Overloaded_Entity): New predicate
9846         Is_Overriding_Alias to handle properly types that inherit two homonym
9847         operations that have distinct dispatch table entries.
9849 2009-04-07  Emmanuel Briot  <briot@adacore.com>
9851         * s-regexp.adb (Create_Mapping): Ignore excaped open parenthesis when
9852         looking for the end of a parenthesis group
9854 2009-04-07  Tristan Gingold  <gingold@adacore.com>
9856         * gsocket.h Don't #include resolvLib.h if __RTP__ is defined.
9858         * socket.c Don't use resolvLib_ macros if not defined.
9860 2009-04-07  Robert Dewar  <dewar@adacore.com>
9862         * g-socket.adb: Minor reformatting.
9864         * g-socthi-mingw.adb: Minor reformatting
9866         * g-sothco.ads: Minor reformatting
9868         * exp_ch4.adb:
9869         (Expand_Concatenate_String): Complete rewrite to generate efficient code
9870         inline instead of relying on external library routines.
9872         * s-strops.ads, s-sopco5.ads, s-sopco5.adb, s-sopco4.ads, s-sopco4.adb,
9873         s-sopco3.ads, s-sopco3.adb, s-strops.adb: Note that this unit is now
9874         obsolescent
9876 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
9878         * sem_attr.adb:
9879         (Eval_Attribute): for attributes of array objects that are not strings,
9880         attributes are not static if nominal subtype of object is unconstrained.
9882 2009-04-07  Ed Schonberg  <schonberg@adacore.com>
9884         * sem_ch6.adb (New_Overloaded_Entity): If two implicit homonym
9885         operations for a type T in an instance do not override each other,
9886         when T is derived from a formal private type, the corresponding
9887         operations inherited by a type derived from T outside
9888         of the instance do not override each other either.
9890 2009-04-07  Robert Dewar  <dewar@adacore.com>
9892         (Osint.Fail): Change calling sequence to have one string arg
9893         (Make.Make_Failed): Same change
9894         All callers are adjusted to use concatenation
9896 2009-04-07  Robert Dewar  <dewar@adacore.com>
9898         * exp_ch4.adb: Fix documentation typo
9900 2009-04-07  Robert Dewar  <dewar@adacore.com>
9902         * tbuild.ads: Minor reformatting
9904 2009-04-07  Javier Miranda  <miranda@adacore.com>
9906         * exp_disp.adb (Make_DT): Avoid the generation of the OSD_Table
9907         when compiling under ZFP runtime.
9909 2009-04-07  Robert Dewar  <dewar@adacore.com>
9911         * g-comlin.adb: Minor reformatting
9913 2009-04-07  Thomas Quinot  <quinot@adacore.com>
9915         * socket.c, g-socthi-vms.adb, g-socthi-vms.ads, g-socthi-vxworks.adb,
9916         g-socthi-vxworks.ads, g-socthi-mingw.adb, g-socthi-mingw.ads,
9917         g-socthi.adb, g-socthi.ads, g-socket.adb, g-socket.ads, g-sothco.ads:
9918         Remove dynamic allocation of Fd_Set in Socket_Set_Type objects.
9920 2009-04-07  Robert Dewar  <dewar@adacore.com>
9922         * gnat_ugn.texi: Document -gnatDnn/-gnatGnn
9924         * opt.ads (Sprint_Line_Limit): New parameter
9925         
9926         * sprint.adb: Usa Sprint_Line_Limit instead of Line_Limit throughout
9927         
9928         * switch-c.adb: Recognize -gnatDnnn and -gnatGnnn switches
9929         
9930         * usage.adb: Output information for -gnatGnn -gnatDnn
9932 2009-04-07  Robert Dewar  <dewar@adacore.com>
9934         * make.adb: Minor reformatting
9936 2009-04-07  Robert Dewar  <dewar@adacore.com>
9938         * mlib-tgt-specific-vms-alpha.adb: Minor reformatting
9940 2009-04-07  Robert Dewar  <dewar@adacore.com>
9942         * mlib-tgt-specific-vms-ia64.adb: Minor reformatting
9944 2009-04-07  Robert Dewar  <dewar@adacore.com>
9946         * checks.adb:
9947         Remove Assume_Valid parameter from In_Subrange_Of calls
9948         
9949         * sem_eval.adb:
9950         (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
9951         (Is_In_Range): Remove incorrect use of Assume_Valid
9952         (Is_Out_Of_Range): Remove incorrect use of Assume_Valid
9953         
9954         * sem_eval.ads:
9955         (Is_Subrange_Of): Remove Assume_Valid parameter, not needed
9956         (Is_In_Range): Documentation cleanup
9957         (Is_Out_Of_Range): Documentation cleanup
9959         * gnat_rm.texi:
9960         Add documentation for Assume_No_Invalid_Values pragma
9962         * sem_ch12.adb: Minor reformatting
9964         * sem_ch6.adb: (Check_Conformance): Avoid cascaded errors
9966         * sem_prag.adb: Improve error message.
9968         * gnatchop.adb, osint.ads, sinput.adb, sinput.ads, styleg.adb:
9969         LF/CR no longer recognized as line terminator
9971         * switch.ads: Minor documentation improvement
9973         * vms_data.ads: Minor reformatting
9975 2009-04-07  Robert Dewar  <dewar@adacore.com>
9977         * checks.adb (Determine_Range): Add Assume_Valid parameter
9978         
9979         * checks.ads (Determine_Range): Add Assume_Valid parameter
9980         
9981         * errout.adb (Error_Msg_NEL): Use Suppress_Loop_Warnings rather than
9982          Is_Null_Loop to suppress warnings in a loop body.
9983         
9984         * exp_ch4.adb:
9985         (Rewrite_Comparison): Major rewrite to accomodate invalid values
9986         
9987         * exp_ch5.adb:
9988         (Expand_N_Loop_Statement): Delete loop known not to execute
9989         
9990         * opt.ads:
9991         (Assume_No_Invalid_Values): Now set to False, and as documented, this
9992          fully enables the proper handling of invalid values.
9993         
9994         * sem_attr.adb:
9995         New calling sequence for Is_In_Range
9996         
9997         * sem_ch5.adb:
9998         (Analyze_Iteration_Scheme): Accomodate possible invalid values
9999          in determining if a loop range is null.
10000         
10001         * sem_eval.adb:
10002         (Is_In_Range): Add Assume_Valid parameter
10003         (Is_Out_Of_Range): Add Assume_Valid_Parameter
10004         (Compile_Time_Compare): Major rewrite to accomodate invalid values and
10005          also to do more accurate and complete range analysis, catching more
10006          cases.
10007         
10008         * sem_eval.ads:
10009         (Is_In_Range): Add Assume_Valid parameter
10010         (Is_Out_Of_Range): Add Assume_Valid_Parameter
10011         
10012         * sem_util.adb:
10013         New calling sequence for Is_In_Range
10014         
10015         * sinfo.adb:
10016         (Suppress_Loop_Warnings): New flag
10017         
10018         * sinfo.ads:
10019         (Is_Null_Loop): Update documentation
10020         (Suppress_Loop_Warnings): New flag
10021         
10022         * gnat_ugn.texi: Document -gnatB switch
10024 2009-04-07  Arnaud Charlet  <charlet@adacore.com>
10026         * gnatvsn.ads: Bump version number.
10028 2009-04-07  Thomas Quinot  <quinot@adacore.com>
10030         * exp_ch3.adb: Minor rewording (comments)
10032 2009-04-07  Robert Dewar  <dewar@adacore.com>
10034         * exp_disp.adb: Minor reformatting
10036 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10038         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Test the
10039         underlying type.
10040         * gcc-interface/trans.c (lvalue_required_p): Likewise.
10042 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10044         * gcc-interface/trans.c (Attribute_to_gnu) <Max_Size_In_Storage_Elmts>:
10045         Do not convert the result.  Remove obsolete comment.
10047 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10049         * gcc-interface/trans.c (establish_gnat_vms_condition_handler): Clear
10050         DECL_CONTEXT.
10051         (Subprogram_Body_to_gnu): Fix pasto.
10053 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10055         * gcc-interface/gigi.h (standard_datatypes): Remove ADT_void_type_decl.
10056         (void_type_decl_node): Remove.
10057         (init_gigi_decls): Likewise.
10058         (gnat_install_builtins): Declare.
10059         (record_builtin_type): Likewise.
10060         (create_type_stub_decl): Likewise.
10061         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Void>: Use void_type.
10062         (gnat_to_gnu_entity) <E_Array_Type>: Make fat and thin pointer types
10063         artificial.
10064         <E_Array_Subtype>: Use the index types, not only their name, in the
10065         record giving the names of the bounds, if any.
10066         For a packed array type, make it artificial only if the base type
10067         was artificial as well.  Remove redundant statement.
10068         (gnat_to_gnu_entity) <E_Incomplete_Type>: Do not create TYPE_DECL for
10069         dummy types.
10070         Use create_type_stub_decl to build the TYPE_STUB_DECL of types.
10071         (rest_of_type_decl_compilation_no_defer): Likewise.
10072         * gcc-interface/misc.c (gnat_printable_name): Add missing guard.
10073         * gcc-interface/utils.c (make_dummy_type): Always create TYPE_STUB_DECL
10074         and use create_type_stub_decl to build it.
10075         (gnat_pushdecl): Rewrite condition.
10076         (gnat_install_builtins): Remove bogus declaration.
10077         (record_builtin_type): New function.
10078         (finish_record_type): Use create_type_stub_decl to build TYPE_STUB_DECL
10079         of types.
10080         (create_type_stub_decl): New function.
10081         (create_type_decl): Assert that the type is not dummy.  If the type
10082         hasn't been named yet, equate the TYPE_STUB_DECL to the created node.
10083         (build_vms_descriptor32): Do not create TYPE_DECL for the descriptor.
10084         (build_vms_descriptor): Likewise.
10085         (init_gigi_decls): Delete and move bulk of code to...
10086         * gcc-interface/trans.c (gigi): ...here.  Use record_builtin_type.
10087         (emit_range_check): Add gnat_node parameter.
10088         (emit_index_check): Likewise.
10089         (emit_check): Likewise.
10090         (build_unary_op_trapv): Likewise.
10091         (build_binary_op_trapv): Likewise.
10092         (convert_with_check): Likewise.
10093         (Attribute_to_gnu): Adjust calls for above changes.
10094         (call_to_gnu): Likewise.
10095         (gnat_to_gnu): Likewise.
10096         (assoc_to_constructor): Likewise.
10097         (pos_to_constructor): Likewise.
10098         (Sloc_to_locus): Set BUILTINS_LOCATION for Standard_Location nodes.
10099         (process_type): Do not create TYPE_DECL for dummy types.
10101 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10103         * gcc-interface/decl.c (gnat_to_gnu_entity): Reorder local variables.
10104         * gcc-interface/trans.c: Fix formatting throughout.  Fix comments.
10105         * gcc-interface/utils.c: Fix comments.
10107 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10109         * gcc-interface/decl.c (compile_time_known_address_p): Rewrite and
10110         move around.
10111         (gnat_to_gnu_type): Move around.
10112         (get_unpadded_type): Likewise.
10113         * gcc-interface/utils.c (update_pointer_to): Use synthetic macro.
10114         Tidy comments.
10116 2009-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10118         * gcc-interface/trans.c (check_for_eliminated_entity): New function.
10119         (Attribute_to_gnu): Invoke it for Access- and Address-like attributes.
10120         (call_to_gnu): Invoke it instead of manually checking.
10122 2009-04-04  Eric Botcazou  <ebotcazou@adacore.com>
10124         * gcc-interface/utils.c (finish_record_type): Force structural equality
10125         checks if the record type is discriminated.
10127 2009-03-31  Eric Botcazou  <ebotcazou@adacore.com>
10129         * system-linux-alpha.ads (Functions_Return_By_DSP): Remove.
10130         * system-linux-mips.ads (Functions_Return_By_DSP): Likewise.
10131         * system-linux-mipsel.ads (Functions_Return_By_DSP): Likewise.
10132         * system-linux-s390.ads (Functions_Return_By_DSP): Likewise.
10133         * system-linux-s390x.ads (Functions_Return_By_DSP): Likewise.
10134         * system-linux-sparc.ads (Functions_Return_By_DSP): Likewise.
10135         * system-linux-sparcv9.ads (Functions_Return_By_DSP): Likewise.
10137 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
10139         * gcc-interface/decl.c (maybe_pad_type): Use TREE_OVERFLOW instead
10140         of TREE_CONSTANT_OVERFLOW.
10142 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
10144         PR rtl-optimization/323
10145         * gcc-interface/misc.c (gnat_post_options): Set
10146         flag_excess_precision_cmdline.  Give an error for
10147         -fexcess-precision=standard for processors where the option is
10148         significant.
10150 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
10152         PR c/39323
10153         * gcc-interface/utils.c (create_field_decl): Use "unsigned int"
10154         on bit_align.
10156 2009-03-11  Olivier Hainque  <hainque@adacore.com>
10158         * gcc-interface/trans.c (gnat_to_gnu) <case N_Slice>: In range
10159         checks processing, remove unintended TREE_TYPE walk on index type.
10161 2009-03-01  Eric Botcazou  <ebotcazou@adacore.com>
10163         PR ada/39264
10164         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do no
10165         call make_packable_type on fat pointer types.
10166         <E_Array_Subtype>: Likewise.
10167         <E_Record_Subtype>: Call make_packable_type on all record types
10168         except for fat pointer types.
10169         (make_packable_type): Likewise.
10170         (gnat_to_gnu_field): Likewise.
10172 2009-02-28  Eric Botcazou  <ebotcazou@adacore.com>
10174         * gcc-interface/Makefile.in (cygwin/mingw): Revert accidental
10175         EH_MECHANISM change made on 2007-12-06.
10177 2009-02-26  Andreas Schwab  <schwab@suse.de>
10179         PR ada/39172
10180         * Makefile.in (srcdir): Set to @top_srcdir@ instead of @srcdir@.
10181         * gcc-interface/Makefile.in: Change all uses of $(srcdir),
10182         $(fsrcdir) and $(fsrcpfx) to add ada subdir.
10183         (AWK): Substitute.
10184         (target_cpu_default): Substitute.
10186 2009-02-25  Laurent GUERBY  <laurent@guerby.net>
10188         PR ada/39221
10189         * a-teioed.adb (Expand): Fix Result overflow.
10191 2009-02-25  Laurent GUERBY  <laurent@guerby.net>
10193         * gcc-interface/Makefile.in: Fix multilib handling for
10194         sparc64-linux.
10196 2009-02-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10198         * s-oscons-tmplt.c [__osf__ && !_SS_MAXSIZE]: Undef AF_UNIX6.
10200 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
10202         * gcc-interface/misc.c (gnat_post_options): Turn off warn_psabi.
10204 2009-02-16  Eric Botcazou  <ebotcazou@adacore.com>
10206         * gcc-interface/deftarg.c: Remove.
10208 2009-02-10  Olivier Hainque  <hainque@adacore.com>
10209             Eric Botcazou  <ebotcazou@adacore.com>
10211         * gcc-interface/decl.c (enum alias_set_op): New enumeration.
10212         (copy_alias_set): Rename into...
10213         (relate_alias_sets): ...this.  Add third parameter OP.  Retrieve the
10214         underlying array of unconstrained arrays for the new type as well.
10215         If the old and new alias sets don't conflict, make one a subset of
10216         the other as per the OP parameter.
10217         (gnat_to_gnu_entity): Adjust calls to copy_alias_set.
10218         <E_Record_Type>: Do not copy the alias set for derived types.
10219         For all types, make the alias set of derived types a superset of
10220         that of their parent type.
10221         (make_aligning_type): Adjust calls to copy_alias_set.
10222         (make_packable_type): Likewise.
10223         * gcc-interface/trans.c (gnat_to_gnu)<N_Validate_Unchecked_Conversion>:
10224         Check for alias set conflict instead of strict equality to issue the
10225         warning.
10227 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
10229         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
10230         Set TYPE_NONALIASED_COMPONENT on the array type only if appropriate.
10231         (copy_alias_set): Assert that arrays have the same aliasing settings.
10232         (substitute_in_type) <ARRAY_TYPE>: Copy TYPE_NONALIASED_COMPONENT.
10234 2009-02-08  Eric Botcazou  <ebotcazou@adacore.com>
10236         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_String_Literal_Subtype>:
10237         Set TYPE_NONALIASED_COMPONENT on the array type.
10239 2009-01-31  Laurent GUERBY  <laurent@guerby.net>
10241         * gcc-interface/Makefile.in: Fix mipsel linux handling.
10243 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
10245         * gcc-interface/Makefile.in: Fix multilib handling for
10246         powerpc64-linux.
10248 2009-01-12  Eric Botcazou  <ebotcazou@adacore.com>
10250         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Really strip
10251         only useless conversions around renamed objects.
10253 2009-01-11  Eric Botcazou  <ebotcazou@adacore.com>
10255         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Put
10256         the _Tag field before any discriminants in the field list.
10257         (components_to_record): Remove obsolete comment.
10261 Copyright (C) 2009 Free Software Foundation, Inc.
10263 Copying and distribution of this file, with or without modification,
10264 are permitted in any medium without royalty provided the copyright
10265 notice and this notice are preserved.