Merge from mainline (160224:163495).
[official-gcc/graphite-test-results.git] / gcc / ada / ChangeLog
blob9fb2bf19006b20106f7f4916073aa80f8c07c56b
1 2010-08-21  Eric Botcazou  <ebotcazou@adacore.com>
3         * tracebak.c: Fix typo in comment.
5 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
7         * gcc-interface/decl.c: Use FOR_EACH_VEC_ELT.
8         * gcc-interface/trans.c: Likewise.
9         * gcc-interface/utils.c: Likewise.
11 2010-08-18  Eric Botcazou  <ebotcazou@adacore.com>
13         * tracebak.c (i386): Use GCC unwinder on Linux with GCC > 4.5.
15 2010-08-10  Robert Dewar  <dewar@adacore.com>
17         * sem_ch8.adb, sem_ch8.ads: Change name Write_Scopes to ws.
18         * sem_util.adb: Minor reformatting.
20 2010-08-10  Javier Miranda  <miranda@adacore.com>
22         * sem_aggr.adb (Resolve_Extension_Aggregate): Warn on the use of C++
23         constructors that leave the object partially initialized.
24         * exp_atag.ads, exp_atags.adb (Build_Inherit_CPP_Prims): New subprogram
25         that copies from parent of Typ the dispatch table slots of inherited
26         C++ primitives. It handles primary and secondary dispatch tables.
27         * einfo.adb (Related_Type): Moved from Node26 to Node27. Required to
28         use this attribute with E_Variable entities.
29         (Set_Is_Tag): Relax assertion to allow its use with variables that
30         store tags.
31         (Set_Related_Type): Relax assertion to allow its use with variables
32         that store the tag of a C++ class.
33         (Write_26_Field_Name): Remove Related_Type.
34         (Write_27_Field_Name): Add Related_Type.
35         * einfo.ads (Related_Type): Moved from Node26 to Node27. Available also
36         with E_Variable entities.
37         * sem_prag.adb (CPP_Constructor): Warn on duplicated occurrence of this
38         pragma.
39         * sem_util.adb (Search_Tag): Add missing support for CPP types.
40         (Enclosing_CPP_Parent): New subprogram.
41         (Has_Suffix): New subprogram.
42         * sem_util.ads (Enclosing_CPP_Parent): New subprogram that returns the
43         closest ancestor of a type that is a C++ type.
44         (Has_Suffix): New subprogram. Used in assertions to check the suffix of
45         internal entities.
46         * sem_attr.adb (Analyze_Access_Attribute): Check wrong use of current
47         instance in derivations of C++ types.
48         * exp_tss.adb (CPP_Init_Proc): New subprogram.
49         (Is_CPP_Init_Proc): New subprogram.
50         (Set_TSS): Handle new C++ init routines.
51         * exp_tss.ads (TSS_CPP_Init): New TSS name. For initialization of C++
52         dispatch tables.
53         (CPP_Init_Proc): New subprogram.
54         (Is_CPP_Init_Proc): New subprogram.
55         * exp_disp.adb (CPP_Num_Prims): New subprogram.
56         (Has_CPP_Constructors): New subprogram.
57         (Make_Secondary_DT, Make_DT): For derivations of CPP types, do not
58         initialize slots located in the C++ part of the dispatch table.
59         (Make_Tags): For CPP types declare variables used by the IP routine to
60         store the C++ tag values after the first invocation of the C++
61         constructor.
62         (Build_CPP_Init_DT): New subprogram.
63         (Set_CPP_Constructors): New implementation that builds an IP for each
64         CPP constructor. These IP are wrappers of the C++ constructors that,
65         after the first invocation of the constructor, read the C++ tags from
66         the object and save them locally. These copies of the C++ tags are used
67         by the IC routines to initialize tables of Ada derivations of CPP types.
68         (Write_DT): Indicate what primitives are imported from C++
69         * exp_disp.ads (CPP_Num_Prims): New subprogram.
70         (Has_CPP_Constructors): New subprogram.
71         * exp_aggr.adb (Build_Record_Aggr_Code): For derivations of C++ types
72         invoke the IC routine to inherit the slots of the parents.
73         * sem_ch13.adb (Analyze_Freeze_Entity): Add new warnings on CPP types.
74         * exp_ch3.adb (Is_Variable_Size_Array): New subprogram.
75         (Is_Variable_Size_Record): Factorize code calling
76         Is_Variable_Size_Array.
77         (Build_CPP_Init_Procedure): New subprogram that builds the tree
78         corresponding to the procedure that initializes the C++ part of the
79         dispatch table of an Ada tagged type that is a derivation of a CPP type.
80         (Build_Init_Procedure): Adding documentation plus code reorganization to
81         leave more clear the construction of the IP with C++ types.
82         (Expand_Freeze_Record_Type): Delay call to Set_CPP_Constructors because
83         it cannot be called after Make_Tags has been invoked.
84         (Inherit_CPP_Tag): Removed.
85         (Init_Secondary_Tags): For derivations of CPP types, warn on tags
86         located at variable offset.
87         * freeze.ads: Minor reformating.
88         * sem_ch8.adb (Write_Scopes): Add pragma export. Required to have it
89         available in gdb.
90         * gcc-interface/Make-lang.in: Update dependencies.
92 2010-08-10  Robert Dewar  <dewar@adacore.com>
94         * a-chahan.ads: Add comments on handling of obsolescent entries.
95         * opt.ads: Add Ada_2005 and Ada_2012 renamings for versions.
96         * restrict.adb (Check_Obsolescent_2005_Entity): New procedure.
97         * restrict.ads (Check_Obsolescent_2005_Entity): New procedure.
98         * sem_attr.adb (Analyze_Access_Attribute): Call
99         Check_Obsolescent_2005_Entity to check for access to obsolescent
100         Ada.Characters.Handling subprogram.
101         (Analyze_Attribute, case Class): Applying Class to untagged incomplete
102         type is obsolescent in Ada 2005.
103         (Analyze_Attribute, case Constrained): Better placement of flag when
104         flagged as obsolescent feature.
105         (Analyze_Attribute, case Storage_Size): Use with tasks is obsolescent
106         * sem_ch10.adb (Analyze_With_Clause): With of renamings such as Text_IO
107         is an obsolescent feature.
108         * sem_ch11.adb (Analyze_Raise_Statement): Numeric_Error is obsolescent
109         feature.
110         * sem_ch8.adb (Analyze_Subprogram_Renaming): Call
111         Check_Obsolescent_2005_Entity to check for renaming obsolete
112         Ada.Characters.Handling subprogram.
113         * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings): Check
114         for obsolescent restrictions in Ada 2005.
115         (Analyze_Pragma, case Suppress): Entity arg is obsolescent in Ada 2005
116         (Analyze_Pragma, case Interface): Interface is obsolescent in Ada 2005
117         * sem_res.adb (Resolve_Call): Call Check_Obsolescent_2005_Entity to
118         check for obsolescent references to Ada.Characters.Handling subprograms
120 2010-08-10  Robert Dewar  <dewar@adacore.com>
122         * einfo.adb, einfo.ads: Fix bad -gnatdt output for incomplete type.
124 2010-08-10  Robert Dewar  <dewar@adacore.com>
126         * errout.ads: Add VMS table entries for 2005, 12, 2012 switches
127         * par-ch4.adb: Change wording of Ada 2012 messages
128         * vms_data.ads: Add VMS entries for /2005, /12, /2012
130 2010-08-10  Robert Dewar  <dewar@adacore.com>
132         * a-suenco.adb (Convert): Fix bug in UTF-16 to UTF-8 conversion for
133         codes in the range 16#80#..16#7FF#.
134         * sem_ch10.adb: Minor reformatting.
136 2010-08-10  Arnaud Charlet  <charlet@adacore.com>
138         * gnat1drv.adb (Scan_Front_End_Switches): Always perform semantics and
139         generate ali files in CodePeer mode, so that a gnatmake -c -k will
140         proceed further when possible
141         * freeze.adb (Freeze_Static_Object): Fix thinko. Do not generate error
142         messages when ignoring representation clauses (-gnatI).
144 2010-08-10  Ed Schonberg  <schonberg@adacore.com>
146         * exp_ch4.adb (Expand_N_Selected_Component): Do not attempt to
147         constant-fold discriminant reference if the constraint is an object
148         with non-static expression. Expression may contain volatile references
149         in the presence of renamings.
151 2010-08-10  Vincent Celier  <celier@adacore.com>
153         * prj-proc.adb (Get_Attribute_Index): If Index is All_Other_Names,
154         returns Index.
155         * prj-strt.adb (Attribute_Reference): Recognize 'others' as a valid
156         index for an associative array where it is allowed.
158 2010-08-10  Thomas Quinot  <quinot@adacore.com>
160         * exp_attr.adb: Add comments.
162 2010-08-10  Jerome Lambourg  <lambourg@adacore.com>
164         * adaint.c (__gnat_get_file_names_case_sensitive): return 0 on darwin.
166 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
168         * gcc-interface/utils.c (gnat_poplevel): Use blocks_nreverse.
170 2010-08-09  Eric Botcazou  <ebotcazou@adacore.com>
172         * gcc-interface/utils.c (build_vms_descriptor32): Fix formatting.
173         (build_vms_descriptor): Likewise.
175 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
177         * gcc-interface/utils.c (make_descriptor_field): Add tree parameter.
178         (build_vms_descriptor32): Adjust calls to it for new parameter.
179         (build_vms_descriptor): Likewise.
181 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
183         * gcc-interface/decl.c (rec_variant):  Declare.  Declare a VEC of it.
184         (build_variant_list): Take and return a VEC instead of a tree.
185         (create_variant_part_from): Take a VEC instead of a tree for
186         variant_list.  Adjust accordingly.
187         (gnat_to_gnu_entity): Adjust for changes to previous functions.
189 2010-08-07  Nathan Froyd  <froydnj@codesourcery.com>
191         * gcc-interface/decl.c (gnat_to_gnu_entity): Use XALLOCAVEC instead
192         of alloca.
193         (components_to_record): Likewise.
194         * gcc-interface/trans.c (gnat_to_gnu): Likewise.
195         * gcc-interface/utils.c (max_size): Likewise.
196         (build_vms_descriptor32): Likewise.
197         (build_vms_descriptor): Likewise.
199 2010-08-07  Nathan Froyd  <froydnj@codesourcery.com>
201         * gcc-interface/decl.c (subst_pair): Declare.  Declare a VEC of it.
202         (build_subst_list): Return a VEC instead of a tree.
203         (build_variant_list): Take a VEC for subst_list.  Adjust
204         accordingly.
205         (create_field_decl_from): Likewise.
206         (create_variant_part_from): Likewise.
207         (copy_and_substitute_in_size): Likewise.
208         (gnat_to_gnu_entity): Adjust for new interface to build_subst_list.
209         Free the built vector.
211 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
213         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not build an
214         allocator for large imported objects.
216 2010-08-05  Robert Dewar  <dewar@adacore.com>
218         * gnat1drv.adb: Minor reformatting.
220 2010-08-05  Ed Schonberg  <schonberg@adacore.com>
222         * sem.adb (Do_Unit_And_Dependents): If some parent unit is an
223         instantiation, process its body before the spec of the main unit,
224         because it may contain subprograms invoked in the spec of main.
225         * einfo.ads: Add documention of delayed freeze.
227 2010-08-05  Vincent Celier  <celier@adacore.com>
229         * prj-nmsc.adb (Process_Linker): Take into account new values for
230         attribute Response_File_Format.
231         * prj.ads (Response_File_Format): New enumeration values GCC_GNU,
232         GCC_Object_List and GCC_Option_List.
234 2010-08-05  Ed Schonberg  <schonberg@adacore.com>
236         * exp_ch4.adb (Expand_N_Selected_Component): Do not constant-fold a
237         selected component that denotes a discriminant if it is the
238         discriminant of a component of an unconstrained record type.
240 2010-08-05  Ed Schonberg  <schonberg@adacore.com>
242         * exp_util.adb (Insert_Actions): If the action appears within a
243         conditional expression that is already analyzed, insert action further
244         out.
246 2010-08-05  Robert Dewar  <dewar@adacore.com>
248         * exp_ch4.adb: Minor reformatting.
250 2010-08-05  Thomas Quinot  <quinot@adacore.com>
252         * exp_ch4.adb: Minor reformatting
253         * gnat1drv.adb: Minor reformatting.
254         Minor code reorganization (use Nkind_In).
256 2010-08-05  Ed Schonberg  <schonberg@adacore.com>
258         * exp_util.ads, exp_util.adb (Needs_Constant_Address): New predicate to
259         determine whether the expression in an address clause for an
260         initialized object must be constant. Code moved from freeze.adb.
261         (Remove_Side_Effects): When the temporary is initialized with a
262         reference, indicate that the temporary is a constant as done in all
263         other cases.
264         * freeze.adb (Check_Address_Clause): use Needs_Constant_Address.
265         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
266         If object does not need a constant address, remove side effects from
267         address expression, so it is elaborated at the point of the address
268         clause and not at the freeze point of the object, so that elaboration
269         order is respected.
271 2010-08-05  Vincent Celier  <celier@adacore.com>
273         * prj.adb (Is_Compilable): Return False for header files of non Ada
274         languages.
276 2010-08-05  Emmanuel Briot  <briot@adacore.com>
278         * prj-nmsc.adb: The Missing_Source_Files flag also considers a missing
279         exec directory as a warning rather than an error.
281 2010-08-05  Thomas Quinot  <quinot@adacore.com>
283         * sem_ch6.adb, gnat1drv.adb, exp_ch6.adb, sem_eval.adb: Minor
284         reformatting.
286 2010-08-05  Steve Baird  <baird@adacore.com>
288         * exp_util.adb (Remove_Side_Effects): An access value which designates
289         a volatile object of a nonvolatile type is prohibited.
290         Do not call Make_Reference to construct a reference to such an object.
292 2010-08-05  Robert Dewar  <dewar@adacore.com>
294         * a-suezse.adb, a-suezse.ads, a-suezen.adb, a-suezen.ads: Removed.
295         * a-suewse.adb, a-suewse.ads, a-suesen.adb, a-suesen.ads,
296         a-suewen.adb, a-suewen.ads: New files.
297         * Makefile.rtl, impunit.adb: Update implementation of Ada 2012 string
298         encoding packages.
299         * sem_elab.adb: Minor reformatting.
301 2010-08-05  Arnaud Charlet  <charlet@adacore.com>
303         * sem_ch8.adb (Use_One_Type): Protect against empty scopes.
304         * exp_util.adb (Component_May_Be_Bit_Aligned): Prevent assert failure
305         in case of null Comp.
307 2010-08-05  Robert Dewar  <dewar@adacore.com>
309         * errout.adb, a-suewen.adb, a-suezen.adb: Minor reformatting.
311 2010-08-05  Gary Dismukes  <dismukes@adacore.com>
313         * sem_ch4.adb (Analyze_Allocator): Flag errors on allocators of a
314         nested access type whose designated type has tasks or is a protected
315         object when the restrictions No_Task_Hierarchy or
316         No_Local_Protected_Objects apply. Add ??? comment.
317         * sem_ch9.adb (Analyze_Protected_Type): Give a warning when a protected
318         type is not a library-level type and No_Local_Protected_Objects applies.
319         (Analyze_Task_Type): Give a warning when a task type is not a
320         library-level type and No_Task_Hierarchy applies.
322 2010-08-05  Arnaud Charlet  <charlet@adacore.com>
324         * sem.adb: Minor reformatting
325         * sem_ch4.adb (Analyze_Reference): Disable error message in CodePeer
326         mode, not useful.
328 2010-08-04  Eric Botcazou  <ebotcazou@adacore.com>
330         * gcc-interface/decl.c: Do not undefine IN_GCC_FRONTEND and do not
331         include expr.h.
332         (gnat_to_gnu_entity) <object>: Force address of -1 at the tree level
333         for the debug-only entity.
334         * gcc-interface/Make-lang.in (ada/decl.o): Adjust dependencies.
336 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
338         * gcc-interface/lang-specs.h: Don't pass -a options.
340 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
342         * gcc-interface/misc.c (gnat_init_options): Ignore erroneous
343         options.  Check canonical_option_num_elements on options copied.
345 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
347         * gcc-interface/misc.c (gnat_handle_option): Update prototype and
348         return value type.  Don't check for missing arguments here.
350 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
352         * gcc-interface/misc.c (gnat_option_lang_mask): New.
353         (gnat_init_options): Update prototype.  Reconstruct argv array
354         from decoded options.
356 2010-07-23  Eric Botcazou  <ebotcazou@adacore.com>
358         * gcc-interface/utils.c (update_pointer_to): In the unconstrained array
359         case, merge the alias set of the old pointer type.
361 2010-07-23  Eric Botcazou  <ebotcazou@adacore.com>
363         * gcc-interface/utils.c (gnat_types_compatible_p): Revert latest change
364         and recurse only for multidimensional array types instead.
366 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
368         PR ada/44892
369         * gcc-interface/utils.c (convert): Fix thinko in test.
370         (unchecked_convert): When converting from a scalar type to a type with
371         a different size, pad to have the same size on both sides.
373 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
375         * gcc-interface/utils.c (gnat_types_compatible_p): Don't require strict
376         equality for the component type of array types.
378 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
380         * gcc-interface/decl.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
381         * gcc-interface/trans.c: Likewise.
382         * gcc-interface/utils.c: Likewise.
383         * gcc-interface/utils2.c: Likewise.
385 2010-07-13  Laurent GUERBY  <laurent@guerby.net>
387         PR bootstrap/44458
388         * gcc-interface/targtyps.c: Include tm_p.h.
389         * gcc-interface/Make-lang.in: Update dependencies.
391 2010-07-09  Eric Botcazou  <ebotcazou@adacore.com>
393         * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Deal with
394         CALL_EXPR.
396 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
398         * gcc-interface/utils.c: Include diagnostic-core.h in every file
399         that includes toplev.h.
401 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
403         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>:
404         Branch to common code handling the alignment of discrete types.
405         <E_Signed_Integer_Type>: Likewise.
406         <E_Modular_Integer_Type>: Likewise.
408 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
410         * gcc-interface/misc.c (gnat_handle_option): Do not populate gnat_argv.
411         (gnat_handle_option): Allocate only one element for gnat_argv.
412         (gnat_init): Do not populate gnat_argv.
414 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
416         * gcc-interface/trans.c: Do not include tree-flow.h.
417         * gcc-interface/Make-lang.in: Adjust dependencies.
419 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
421         * gcc-interface/gigi.h (gnat_build_constructor): Take a VEC instead
422         of a TREE_LIST.  Update comment.
423         * gcc-interface/trans.c (gigi): Build a VEC instead of a TREE_LIST.
424         Adjust call to gnat_build_constructor.
425         (Attribute_to_gnu): Likewise.
426         (gnat_to_gnu): Likewise.
427         (pos_to_constructor): Likewise.
428         (extract_values): Likewise.
429         * gcc-interface/utils.c (build_template): Likewise.
430         (convert_vms_descriptor64): Likewise.
431         (convert_vms_descriptor32): Likewise.
432         (convert_to_fat_pointer): Likewise.
433         (convert): Likewise.
434         (unchecked_convert): Likewise.
435         * gcc-interface/decl.c (gnat_to_gnu_entity): Likewise.
436         * gcc-interface/utils2.c (build_allocator): Likewise.
437         (fill_vms_descriptor): Likewise.
438         (gnat_build_constructor): Take a VEC instead of a TREE_LIST.
439         (compare_elmt_bitpos): Adjust for parameters being constructor_elts
440         instead of TREE_LISTs.
442 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
444         * gcc-interface/misc.c: Do not include except.h.
445         * gcc-interface/Make-lang.in: Update dependencies.
447 2010-06-27  Eric Botcazou  <ebotcazou@adacore.com>
449         * gcc-interface/trans.c: Include tree-flow.h.
450         (gnu_switch_label_stack): Delete.
451         (Case_Statement_to_gnu): Do not emit the goto at the end of a case if
452         its associated block cannot fall through.  Do not emit the final label
453         if no cases branch to it.
454         * gcc-interface/Make-lang.in (ada/trans.o): Add $(TREE_FLOW_H).
456 2010-06-23  Thomas Quinot  <quinot@adacore.com>
458         * exp_attr.adb (Expand_Access_To_Protected_Op): When rewriting a
459         reference to a protected subprogram outside of the protected's scope,
460         ensure the corresponding external subprogram is frozen before the
461         reference.
463 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
465         * sem_prag.adb: Fix typo in error message.
466         * sem.adb: Refine previous change.
468 2010-06-23  Robert Dewar  <dewar@adacore.com>
470         * impunit.adb, a-suewen.adb, a-suewen.ads, a-suenco.adb, a-suenco.ads,
471         a-suezen.adb, a-suezen.ads, a-stuten.adb, a-stuten.ads, Makefile.rtl:
472         Implement Ada 2012 string encoding packages.
474 2010-06-23  Arnaud Charlet  <charlet@adacore.com>
476         * a-stwiun-shared.adb, a-stwiun-shared.ads, a-stzunb-shared.adb,
477         a-stzunb-shared.ads, a-swunau-shared.adb, a-swuwti-shared.adb,
478         a-szunau-shared.adb, a-szuzti-shared.adb, a-strunb-shared.adb,
479         a-strunb-shared.ads, a-stunau-shared.adb, a-suteio-shared.adb: New
480         files.
481         * gcc-interface/Makefile.in: Enable use of above files.
483 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
485         * sem_ch13.adb (Check_Constant_Address_Clauses): Do not check legality
486         of address clauses if if Ignore_Rep_Clauses is active.
487         * freeze.adb (Check_Address_Clause): If Ignore_Rep_Clauses is active,
488         remove address clause from tree so that it does not reach the backend.
490 2010-06-23  Arnaud Charlet  <charlet@adacore.com>
492         * exp_attr.adb (Expand_N_Attribute_Reference [Attribute_Valid]): Do not
493         expand 'Valid from user code in CodePeer mode, will be handled by the
494         back-end directly.
496 2010-06-23  Bob Duff  <duff@adacore.com>
498         * g-comlin.ads: Minor comment improvements.
500 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
502         * sem_res.adb (Uses_SS): The expression that initializes a controlled
503         component of a record type may be a user-defined operator that is
504         rewritten as a function call.
506 2010-06-23  Bob Duff  <duff@adacore.com>
508         * g-comlin.ads, sem_ch13.adb: Minor comment fix.
510 2010-06-23  Eric Botcazou  <ebotcazou@adacore.com>
512         * exp_ch11.adb (Expand_Local_Exception_Handlers): Propagate the end
513         label to the new sequence of statements.  Set the sloc of the raise
514         statement onto the new goto statements.
516 2010-06-23  Robert Dewar  <dewar@adacore.com>
518         * a-stuten.ads, a-stuten.adb: New files.
519         * impunit.adb: Add engtry for Ada.Strings.UTF_Encoding (a-stuten.ads)
520         * Makefile.rtl: Add entry for a-stuten (Ada.Strings.UTF_Encoding)
522 2010-06-23  Robert Dewar  <dewar@adacore.com>
524         * gnat_ugn.texi: Add documentation of -gnat12 switch
525         Add documentation of -gnatX switch.
527 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
529         * inline.ads: Include the current Ada_Version in the info for pending
530         instance bodies, so that declaration and body are compiled with the
531         same Ada_Version.
532         * inline.adb: Move with_clause for Opt to spec.
533         * sem_ch12.adb (Analyze_Package_Instantiation,
534         Analyze_Subprogram_Instantiation): Save current Ada_Version in
535         Pending_Instantiation information.
536         (Instantiate_Package_Body, Instantiate_Subprogram_Body,
537         Inline_Package_Body): Use the Ada_Version present in the body
538         information.
540 2010-06-23  Robert Dewar  <dewar@adacore.com>
542         * usage.adb: Add documentation for -gnat12 switch.
543         * errout.ads: Add VMS alias entry for -gnat12 switch
544         * gnat_rm.texi: Add documentation for pragma Ada_12 and Ada_2012
545         Add documentation for pragma Extensions_Allowed.
546         * opt.ads: Add entry for Ada 2012 mode.
547         * sem_ch4.adb, par-ch3.adb, par-ch4.adb: Use new Ada 2012 mode for 2012
548         features.
549         * sem_prag.adb, par-prag.adb: Add processing for pragma Ada_12 and
550         Ada_2012.
551         * sem_ch13.adb: Add handling for Ada 2012 mode.
552         * snames.ads-tmpl: Add entries for pragma Ada_2012 and Ada_12.
553         * switch-c.adb: Add handling for -gnat12 switch.
554         Implement -gnat2005 and -gnat2012.
555         * usage.adb: Add documentation for -gnat12 switch.
556         * vms_data.ads: Add /12 switch for Ada 2012 mode.
558 2010-06-23  Arnaud Charlet  <charlet@adacore.com>
560         * exp_ch4.adb (Expand_N_Allocator): Fix potential crash when using
561         No_Task_Hierarchy restriction. Add comment.
562         * exp_ch9.adb, exp_ch3.adb: Update comments.
564 2010-06-23  Robert Dewar  <dewar@adacore.com>
566         * sem_ch5.adb (Process_Bounds): Remove some junk initializations.
567         * sem_res.adb: Add comments.
568         * sem_util.adb: Minor reformatting. Add comments.
569         Change increment on Actuals_In_Call table.
570         * opt.ads: Minor: add 'constant'.
572 2010-06-23  Javier Miranda  <miranda@adacore.com>
574         * exp_disp.adb (Make_DT): Initialize the Size_Func component of the
575         TSD to Null_Address if No_Dispatching_Calls is active.
577 2010-06-23  Vincent Celier  <celier@adacore.com>
579         * a-comlin.ads: Indicate that use of this package is not supported
580         during the elaboration of an auto-initialized Stand-Alone Library.
582 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
584         * exp_util.adb (Is_Possibly_Misaligned_Object): Do not rely on an
585         alignment clause on a record type to determine if a component may be
586         misaligned. The decision must be taken in the back-end where target
587         alignment information is known.
589 2010-06-23  Arnaud Charlet  <charlet@adacore.com>
591         * gnat1drv.adb (Adjust_Global_Switches): Enable some restrictions
592         systematically in CodePeer mode to simplify generated code.
593         * restrict.adb (Check_Restriction): Do nothing in CodePeer mode.
594         * exp_ch4.adb (Expand_N_Allocator): Generate proper code when
595         No_Task_Hierarchy is set instead of crasshing.
597 2010-06-23  Thomas Quinot  <quinot@adacore.com>
599         * sem_util.adb: Minor code cleanup: test for proper entity instead of
600         testing just Chars attribute when checking whether a given scope is
601         System.
602         * exp_ch4.adb, einfo.adb: Minor reformatting.
604 2010-06-23  Vincent Celier  <celier@adacore.com>
606         PR ada/44633
607         * switch-m.adb (Normalize_Compiler_Switches): Take into account
608         switches -gnatB, -gnatD=nn, -gnatG (incuding -gnatG=nn), -gnatI,
609         -gnatl=file, -gnatS, -gnatjnn, -gnateI=nn and -gnatWx.
611 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
613         * sem_res.adb (Resolve_Membership_Op): If left operand is a mixed mode
614         operation with a universal real operand, and the right operand is a
615         range with universal bounds, find unique fixed point that may be
616         candidate, and warn appropriately.
618 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
620         * sem_res.adb (Resolve_Intrinsic_Operator): Add guards to handle
621         properly the rare cases where VMS operators are visible through
622         Extend_System, but the default System is being used and Address is a
623         private type.
624         * sem_util.adb: Widen predicate Is_VMS_Operator.
626 2010-06-23  Vincent Celier  <celier@adacore.com>
628         * switch-m.adb (Normalize_Compiler_Switches): Take into account -gnatC
629         and -gnateS.
631 2010-06-23  Olivier Hainque  <hainque@adacore.com>
633         * einfo.adb (Has_Foreign_Convention): Consider Intrinsic with
634         Interface_Name as foreign. These are GCC builtin imports for
635         which Ada specific processing doesn't apply.
637 2010-06-23  Thomas Quinot  <quinot@adacore.com>
639         * sem_ch12.adb: Minor reformatting.
641 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
643         * sem_util.adb (Is_VMS_Operator): Use scope of system extension to
644         determine whether an intrinsic subprogram is VMS specific.
646 2010-06-23  Hristian Kirtchev  <kirtchev@adacore.com>
648         * treepr.adb (Print_Entity_Info): Output the contents of Field28 if it
649         is present in the entity.
651 2010-06-23  Arnaud Charlet  <charlet@adacore.com>
653         * xr_tabls.adb, xref_lib.adb: Update to latest lib-xref.ads
654         Fix handling of parameters.
655         Add protection against unexpected cases.
656         * sem_ch6.adb (Create_Extra_Formals): Use suffix "L" instead of "A" for
657         access level, since "A" suffix is already used elsewhere. Similarly,
658         use suffix "O" instead of "C" for 'Constrained since "C" suffix is used
659         for xxx'Class.
661 2010-06-23  Thomas Quinot  <quinot@adacore.com>
663         * sem_util.adb, sem_util.ads: Minor reformatting.
665 2010-06-23  Vincent Celier  <celier@adacore.com>
667         * prj.ads (Gprclean_Flags.Missing_Source_Files): Set to Error to keep
668         the previous behavior of gprclean when there are missing files.
670 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
672         * sem_ch12.adb (Load_Body_Of_Generic): In CodePeer mode, a missing
673         generic body is not a fatal error.
674         (Mark_Context): Handle properly names of child units.
675         * sem.adb (Walk_Library_Items.Do_Action): Remove assertion on
676         instantiations.
678 2010-06-23  Vincent Celier  <celier@adacore.com>
680         * ali.adb (Scan_ALI): When ignoring R lines, do not skip the next
681         non-empty line.
683 2010-06-23  Bob Duff  <duff@adacore.com>
685         * g-pehage.ads, g-pehage.adb: Switch default optimization mode to
686         Memory_Space, because CPU_Time doesn't seem to provide any significant
687         speed advantage in practice. Cleanup: Get rid of constant
688         Default_Optimization; doesn't seem to add anything. Use case
689         statements instead of if statements; seems cleaner.
691 2010-06-23  Olivier Hainque  <hainque@adacore.com>
693         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Procedure>: Use
694         Wshadow instead of Wextra to guard warning on absence of internal
695         builtin decl for an import.  Fix use of quote in warning text.
696         (intrin_arglists_compatible_p): Remove processing of integer trailing
697         args on the Ada side.  Fix use of literal > in warning text.
698         (intrin_return_compatible_p): Never warn on "function imported as
699         procedure".  Defer the void/void case to the common type compatibility
700         check.
701         (gnat_to_gnu_param): Use void_ptr GCC type for System.Address argument
702         of GCC builtin imports.
704 2010-06-23  Olivier Hainque  <hainque@adacore.com>
706         * gcc-interface/decl.c (intrin_types_incompatible_p): New function,
707         helper for ...
708         (intrin_arglists_compatible_p, intrin_return_compatible_p): New
709         functions, helpers for ...
710         (intrin_profiles_compatible_p): New function, replacement for ...
711         (compatible_signatures_p): Removed.
712         (gnat_to_gnu_entity) <case E_Procedure>: If -Wextra, warn on
713         attempt to bind an unregistered builtin function.  When we have
714         one, use it and warn on profile incompatibilities.
716 2010-06-23  Arnaud Charlet  <charlet@adacore.com>
718         * gcc-interface/Make-lang.in: Update dependencies.
720 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
722         * sem_util.adb (Mark_Coextensions): If the expression in the allocator
723         for a coextension in an object declaration is a concatenation, treat
724         coextension as dynamic.
726 2010-06-23  Javier Miranda  <miranda@adacore.com>
728         * sem_ch3.adb (Add_Internal_Interface_Entities): Ensure that the
729         internal entities are added to the scope of the tagged type.
730         (Derive_Subprograms): Do not stop derivation when we find the first
731         internal entity that has attribute Interface_Alias. After the change
732         done to Override_Dispatching_Operations it is no longer true that
733         these primirives are always located at the end of the list of
734         primitives.
735         * einfo.ads (Primitive_Operations): Add documentation.
736         * exp_disp.adb (Write_DT): Improve output adding to the name of the
737         primitive a prefix indicating its corresponding tagged type.
738         * sem_disp.adb (Override_Dispatching_Operations): If the overridden
739         entity covers the primitive of an interface that is not an ancestor of
740         this tagged type then the new primitive is added at the end of the list
741         of primitives.  Required to fulfill the C++ ABI.
743 2010-06-23  Javier Miranda  <miranda@adacore.com>
745         * atree.ads (Set_Reporting_Proc): New subprogram.
746         * atree.adb: Remove dependency on packages Opt and SCIL_LL.
747         (Allocate_Initialize_Node, Replace, Rewrite): Replace direct calls
748         to routines of package Scil_ll by indirect call to the registered
749         subprogram.
750         (Set_Reporting_Proc): New subprogram. Used to register a subprogram
751         that is invoked when a node is allocated, replaced or rewritten.
752         * scil_ll.adb (Copy_SCIL_Node): New routine that takes care of copying
753         the SCIL node. Used as argument for Set_Reporting_Proc.
754         (Initialize): Register Copy_SCIL_Node as the reporting routine that
755         is invoked by atree.
757 2010-06-23  Thomas Quinot  <quinot@adacore.com>
759         * sem_ch3.ads: Minor reformatting.
761 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
763         * sem_ch12.adb (Analyze_Package_Instantiation): In CodePeer mode,
764         always analyze the generic body and instance, because it may be needed
765         downstream.
766         (Mark_Context): Prepend the with clauses for needed generic units, so
767         they appear in a better order for CodePeer.
768         * sem_util.adb, sem_util.ads: Prototype code for AI05-0144.
770 2010-06-23  Emmanuel Briot  <briot@adacore.com>
772         * prj.ads, prj-nmsc.adb (Error_Or_Warning): New subprogram.
774 2010-06-23  Robert Dewar  <dewar@adacore.com>
776         * g-pehage.adb, exp_ch13.adb: Minor reformatting.
778 2010-06-23  Thomas Quinot  <quinot@adacore.com>
780         * a-tags.ads: Fix description of TSD structure.
782 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
784         * sem_ch12.adb (Mark_Context): When indicating that the body of a
785         generic unit is needed prior to the unit containing an instantiation,
786         search recursively the context of the generic to add other generic
787         bodies that may be instantiated indirectly through the current instance.
789 2010-06-23  Robert Dewar  <dewar@adacore.com>
791         * freeze.adb: Minor reformatting.
793 2010-06-23  Bob Duff  <duff@adacore.com>
795         * g-pehage.adb (Trim_Trailing_Nuls): Fix the code to match the comment.
797 2010-06-23  Vincent Celier  <celier@adacore.com>
799         * make.adb (Compile_Sources): Complete previous change.
801 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
803         * sem_ch6.adb (Add_Extra_Formal): Use suffix "C" in the name of the
804         Constrained extra formal.
806 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
808         * exp_ch13.adb (Expand_Freeze_Actions): If validity checks and
809         Initialize_Scalars are enabled, compile the generated equality function
810         for a composite type with full checks enabled, so that validity checks
811         are performed on individual components.
813 2010-06-23  Emmanuel Briot  <briot@adacore.com>
815         * prj.adb, prj.ads, prj-nmsc.adb (Processing_Flags): New flag
816         Missing_Source_Files.
818 2010-06-23  Robert Dewar  <dewar@adacore.com>
820         * exp_ch3.adb, exp_util.adb: Minor reformatting.
822 2010-06-23  Jose Ruiz  <ruiz@adacore.com>
824         * a-reatim.adb, a-retide.adb: Move the initialization of the tasking
825         run time from Ada.Real_Time.Delays to Ada.Real_Time. This way, calls to
826         Clock (without delays) use a run time which is properly initialized.
828 2010-06-23  Vincent Celier  <celier@adacore.com>
830         * make.adb: Do not set Check_Readonly_Files when setting Must_Compile,
831         when -f -u and a main is specified on the command line. However,
832         attempt to compile even when the ALI file is read-only when
833         Must_Compile is True.
835 2010-06-23  Thomas Quinot  <quinot@adacore.com>
837         * checks.adb, g-pehage.adb, cstand.adb: Minor code factorization.
839 2010-06-23  Javier Miranda  <miranda@adacore.com>
841         * sem_ch3.adb (Add_Internal_Interface_Entities): Generate internal
842         entities for parent types that are interfaces. Needed in generics to
843         handle formals that implement interfaces.
844         (Derive_Subprograms): Add assertion for derivation of tagged types that
845         do not cover interfaces. For generics, complete code that handles
846         derivation of type that covers interfaces because the previous
847         condition was weak (it required only name consistency; arguments were
848         not checked). Add new code to locate primitives covering interfaces
849         defined in generic units or instantiatons.
850         * sem_util.adb (Has_Interfaces): Add missing support for derived types.
851         * sem_ch6.adb (Check_Overriding_Indicator): Minor code cleanups.
852         * exp_disp.adb (Make_Select_Specific_Data_Table): Skip primitives of
853         interfaces that are parents of the type because they share the primary
854         dispatch table.
855         (Register_Primitive): Do not register primitives of interfaces that
856         are parents of the type.
857         * sem_ch13.adb (Analyze_Freeze_Entity): Add documentation.
858         * exp_cg.adb (Write_Type_Info): When displaying overriding of interface
859         primitives skip primitives of interfaces that are parents of the type.
861 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
863         * sem_attr.adb (Eval_Attribute): If the prefix is an array, the
864         attribute cannot be constant-folded if an index type is a formal type,
865         or is derived from one.
866         * checks.adb (Determine_Range): ditto.
868 2010-06-23  Arnaud Charlet  <charlet@adacore.com>
870         * gnat_ugn.texi, gnatxref.adb: Add support for --ext switch.
872 2010-06-23  Bob Duff  <duff@adacore.com>
874         * g-pehage.ads, g-pehage.adb (Put): Fix off-by-one bug.
875         (Insert): Disallow nul characters.
876         (misc output routines): Assert no nul characters.
878 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
880         * exp_ch4.adb: Use predefined unsigned type in all cases.
882 2010-06-23  Bob Duff  <duff@adacore.com>
884         * s-rannum.adb (Reset): Avoid overflow in calculation of Initiator.
885         * g-pehage.ads: Minor comment fixes.
886         * g-pehage.adb: Minor: Add some additional debugging printouts under
887         Verbose flag.
889 2010-06-23  Robert Dewar  <dewar@adacore.com>
891         * binde.adb (Better_Choice): Always prefer Pure/Preelab.
892         (Worse_Choice): Always prefer Pure/Preelab.
894 2010-06-23  Vincent Celier  <celier@adacore.com>
896         * a-reatim.adb: Call System.OS_Primitives.Initialize during elaboration
898 2010-06-23  Robert Dewar  <dewar@adacore.com>
900         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Properly handle
901         checking returns in generic case.
902         (Check_Missing_Return): New procedure.
904 2010-06-23  Robert Dewar  <dewar@adacore.com>
906         * bindgen.adb, switch-b.adb: Minor reformatting.
908 2010-06-23  Javier Miranda  <miranda@adacore.com>
910         * frontend.adb (Frontend): Add call to initialize the new package
911         SCIL_LL.
912         * exp_ch7.adb (Wrap_Transient_Expression): Remove call to
913         Adjust_SCIL_Node.
914         (Wrap_Transient_Statement): Remove call to Adjust_SCIL_Node.
915         * sem_ch5.adb (Analyze_Iteration_Scheme.Process_Bounds): Remove call to
916         Adjust_SCIL_Node.
917         * exp_util.adb (Insert_Actions): Remove code for
918         N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
919         (Remove_Side_Effects): Remove calls to Adjust_SCIL_Node.
920         * sinfo.adb (SCIL_Entity, SCIL_Tag_Value): Remove checks on
921         N_SCIL_Tag_Init and N_SCIL_Dispatch_Table_Object_Init in the assertion.
922         (SCIL_Related_Node, Set_SCIL_Related_Node): Removed.
923         * sinfo.ads (SCIL_Related_Node): Field removed.
924         (N_SCIL_Dispatch_Table_Object_Init): Node removed.
925         (N_SCIL_Tag_Init): Node removed.
926         * sem_scil.ads, sem_scil.adb (Adjust_SCIL_Node): Removed.
927         (Check_SCIL_Node): New implementation.
928         (Find_SCIL_Node): Removed.
929         * sem.adb (Analyze): Remove management of
930         N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
931         * sem_util.adb (Insert_Explicit_Dereference): Remove call to
932         Adjust_SCIL_Node.
933         * exp_ch4.adb (Expand_N_In): Code cleanup: remove call to
934         Set_SCIL_Related_Node and avoid adding the SCIL node before the
935         referenced node using Insert_Action because this is not longer required.
936         (Expand_Short_Circuit_Operator): Remove call to SCIL node.
937         * exp_ch6.adb (Expand_Call): Remove call to Adjust_SCIL_Node.
938         * sem_ch4.adb (Analyze_Type_Conversion): Remove call to Adjust_SCIL_Node
939         * exp_disp.adb (Expand_Dispatching_Call): Minor code reorganization
940         because we no longer require to generate the SCIL node before the call.
941         (Make_DT): Remove generation of SCI_Dispatch_Table_Object_Init node.
942         Remove calls to Set_SCIL_Related_Node and avoid adding the SCIL
943         nodes before the referenced node using Insert_Action because this
944         is not longer required.
945         * atree.adb (Allocate_Initialize_Node, Replace, Rewrite): Add call to
946         update the SCIL_Node field.
947         * sprint.adb (Sprint_Node_Actual): Remove code for
948         N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
949         * treepr.adb (Print_Node): Print the SCIL node field (if available).
950         * exp_ch3.adb (Build_Init_Procedure): Remove generation of
951         SCIL_Tag_Init nodes.
952         * scil_ll.ads, scil_ll.adb: New files.
953         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
954         dependencies.
956 2010-06-23  Robert Dewar  <dewar@adacore.com>
958         * sem_ch6.adb: Minor reformatting.
960 2010-06-23  Doug Rupp  <rupp@adacore.com>
962         * bindusg.adb (Display): Write -Hnn line.
963         * bindgen.adb (Gen_Adainit_Ada): Write Heap_Size to binder file as 
964         necessary.
965         * init.c (__gl_heap_size): Rename from __gl_no_malloc_64 and change
966         valid values to 32 and 64.
967         (GNAT$NO_MALLOC_64): Recognize TRUE, 1, FALSE, and 0 in addition to
968         ENABLE, DISABLE as valid settings.
969         * switch-b.adb (Scan_Binder_Switches): Process -Hnn switch.
970         * opt.ads (Heap_Size): New global variable.
971         * gcc-interface/utils2.c (maybe_wrap_malloc): Remove mostly redundant 
972         TARGET_MALLOC64 check. Fix comment.
974 2010-06-23  Robert Dewar  <dewar@adacore.com>
976         * sem_ch6.adb, exp_ch4.adb, s-rannum.ads, sem.adb, sem_ch12.adb: Minor
977         reformatting.  Add comments.
978         * errout.adb (Finalize): Properly adjust warning count when deleting
979         continuations.
981 2010-06-22  Robert Dewar  <dewar@adacore.com>
983         * errout.adb (Finalize): Set Prev pointers.
984         (Finalize): Delete continuations for deletion by warnings off(str).
985         * erroutc.ads: Add Prev pointer to error message structure.
987 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
989         * sem.adb (Do_Unit_And_Dependents): If the spec of the main unit is a
990         child unit, examine context of parent units to locate instantiated
991         generics whose bodies may be needed. 
992         * sem_ch12.adb: (Mark_Context): if the enclosing unit does not have a
993         with_clause for the instantiated generic, examine the context of its
994         parents, to set Withed_Body flag, so that it can be visited earlier.
995         * exp_ch4.adb (Expand_N_Op_Not): If this is a VMS operator applied to
996         an unsigned type, use a type of the proper size for the intermediate
997         value, to prevent alignment problems on unchecked conversion.
999 2010-06-22  Geert Bosch  <bosch@adacore.com>
1001         * s-rannum.ads Change Generator type to be self-referential to allow
1002         Random to update its argument. Use "in" mode for the generator in the
1003         Reset procedures to allow them to be called from the Ada.Numerics
1004         packages without tricks.
1005         * s-rannum.adb: Use the self-referencing argument to get write access
1006         to the internal state of the random generator.
1007         * a-nudira.ads: Make Generator a derived type of
1008         System.Random_Numbers.Generator.
1009         * a-nudira.adb: Remove use of 'Unrestricted_Access.
1010         Put subprograms in alpha order and add headers.
1011         * g-mbdira.ads: Change Generator type to be self-referential.
1012         * g-mbdira.adb: Remove use of 'Unrestricted_Access.
1014 2010-06-22  Robert Dewar  <dewar@adacore.com>
1016         * freeze.adb: Minor reformatting
1017         Minor code reorganization (use Nkind_In and Ekind_In).
1019 2010-06-22  Bob Duff  <duff@adacore.com>
1021         * gnat1drv.adb (Gnat1drv): Remove the messages that recommend using 
1022         -gnatc when a file is compiled that we cannot generate code for, not
1023         helpful and confusing.
1025 2010-06-22  Vincent Celier  <celier@adacore.com>
1027         * switch-m.adb (Normalize_Compiler_Switches): Process correctly
1028         switches -gnatknn.
1030 2010-06-22  Paul Hilfinger  <hilfinger@adacore.com>
1032         * s-rannum.adb: Replace constants with commented symbols.
1033         * s-rannum.ads: Explain significance of the initial value of the data
1034         structure.
1036 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
1038         * a-ngcoty.adb: Clarify comment.
1040 2010-06-22  Gary Dismukes  <dismukes@adacore.com>
1042         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Return without
1043         expansion for indexing packed arrays with small power-of-2 component
1044         sizes when the target is AAMP.
1045         (Expand_Packed_Element_Reference): Return without expansion for
1046         indexing packed arrays with small power-of-2 component sizes when the
1047         target is AAMP.
1049 2010-06-22  Geert Bosch  <bosch@adacore.com>
1051         * exp_ch4.adb (Expand_N_In): Do not substitute a valid check for X in
1052         Float'Range.
1054 2010-06-22  Robert Dewar  <dewar@adacore.com>
1056         * g-mbdira.adb, g-mbflra.adb, a-nuflra.adb, a-nudira.adb: Minor comment
1057         updates.
1059 2010-06-22  Doug Rupp  <rupp@adacore.com>
1061         * system-vms.ads, system-vms-zcx.ads: Remove old unused VMS system
1062         packages.
1063         * system-vms_64.ads, system-vms-ia64.ads: Minor reformatting.
1064         (pragma Ident): Add a default ident string in the private part.
1066 2010-06-22  Robert Dewar  <dewar@adacore.com>
1068         * cstand.adb: Minor reformatting.
1070 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
1072         * freeze.adb (Build_And_Analyze_Renamed_Body): For expansion purposes,
1073         recognize the Shift and Rotation intrinsics that are known to the
1074         compiler but have no interface name.
1076 2010-06-22  Geert Bosch  <bosch@adacore.com>
1078         * a-ngcoty.adb ("*"): Rewrite complex multiplication to use proper
1079         scaling in case of overflow or NaN results.
1081 2010-06-22  Robert Dewar  <dewar@adacore.com>
1083         * cstand.adb: Complete previous change.
1084         * g-dirope.ads: Add comment.
1085         * s-stchop.adb, sfn_scan.adb: Minor reformatting.
1087 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
1089         * cstand.adb: Add tree nodes for pragma Pack on string types.
1091 2010-06-22  Javier Miranda  <miranda@adacore.com>
1093         * einfo.ads, einfo.adb (Last_Formal): New synthesized attribute.
1094         * exp_util.adb (Find_Prim_Op): Use new attribute to locate the last
1095         formal of a primitive.
1096         * exp_disp.adb (Is_Predefined_Dispatching_Operation,
1097          Is_Predefined_Dispatching_Alias): Use new attribute to locate the last
1098         formal of a primitive.
1099         * exp_cg.adb (Is_Predefined_Dispatching_Operation): Use new attribute
1100         to obtain the last formal of a primitive.
1102 2010-06-22  Geert Bosch  <bosch@adacore.com>
1104         * sysdep.c, init.c, adaint.c, cstreams.c: Remove conditional code
1105         depending on __EMX__ or MSDOS being defined.
1106         * i-cstrea.ads, gnat_rm.texi: Remove mentions of OS/2, DOS and Xenix.
1107         * a-excpol-abort.adb: Update comment indicating users of the file.
1108         * xref_lib.adb, sfn_scan.adb: Remove mention of OS/2, replace NT by
1109         Windows.
1110         * env.c: Remove empty conditional for MSDOS.
1111         * s-stchop.adb, g-dirope.ads, s-fileio.adb, osint.ads: Remove mention
1112         of OS/2 in comment.
1114 2010-06-22  Robert Dewar  <dewar@adacore.com>
1116         * s-rannum.adb: Minor reformatting.
1118 2010-06-22  Javier Miranda  <miranda@adacore.com>
1120         * sem_aux.adb, sem_aux.ads, sem_util.adb, sem_util.ads, sem_elim.adb,
1121         exp_cg.adb: Minor code reorganization: Move routine Ultimate_Alias from
1122         package Sem_Util to package Sem_Aux.
1124 2010-06-22  Javier Miranda  <miranda@adacore.com>
1126         * exp_disp.adb (Make_Secondary_DT, Make_DT): Minor code cleanup:
1127         remove useless restriction on imported routines when building the
1128         dispatch tables.
1130 2010-06-22  Robert Dewar  <dewar@adacore.com>
1132         * cstand.adb (Create_Standard): Set Has_Pragma_Pack for standard string
1133         types.
1135 2010-06-22  Javier Miranda  <miranda@adacore.com>
1137         * sem_ch4.adb (Collect_Generic_Type_Ops): Protect code that handles
1138         generic subprogram declarations to ensure proper context. Add missing
1139         support for generic actuals.
1140         (Try_Primitive_Operation): Add missing support for concurrent types that
1141         have no Corresponding_Record_Type. Required to diagnose errors compiling
1142         generics or when compiling with no code generation (-gnatc).
1143         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Do not build
1144         the corresponding record type.
1145         * sem_disp.ads, sem_disp.adb (Check_Dispatching_Operation): Complete
1146         documentation. Do minimum decoration when processing a primitive of a
1147         concurrent tagged type that covers interfaces. Required to diagnose
1148         errors in the Object.Operation notation compiling generics or under
1149         -gnatc.
1150         * exp_ch9.ads, exp_ch9.adb (Build_Corresponding_Record): Add missing
1151         propagation of attribute Interface_List to the corresponding record.
1152         (Expand_N_Task_Type_Declaration): Code cleanup.
1153         (Expand_N_Protected_Type_Declaration): Code cleanup.
1155 2010-06-22  Matthew Heaney  <heaney@adacore.com>
1157         * a-convec.adb, a-coinve.adb: Removed 64-bit types Int and UInt.
1159 2010-06-22  Paul Hilfinger  <hilfinger@adacore.com>
1161         * s-rannum.adb (Random_Float_Template): Replace with unbiased version
1162         that is able to produce all representable floating-point numbers in the
1163         unit interval. Remove template parameter Shift_Right, no longer used.
1164         * gnat_rm.texi: Document the period of the pseudo-random number
1165         generator under the description of its algorithm.
1166         * gcc-interface/Make-lang.in: Update dependencies.
1168 2010-06-22  Thomas Quinot  <quinot@adacore.com>
1170         * exp_aggr.adb (Rewrite_Discriminant): Fix predicate used to identify
1171         reference to discriminant (can be an expanded name as well as an
1172         identifier).
1174 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
1176         * exp_ch6.adb: Clarify comment.
1178 2010-06-22  Geert Bosch  <bosch@adacore.com>
1180         * exp_imgv.adb (Expand_Image_Attribute): Treat ordinary fixed point
1181         with decimal small as decimal types, avoiding floating-point arithmetic.
1182         (Has_Decimal_Small): New function.
1183         * einfo.ads, einfo.adb (Aft_Value): New synthesized attributed for
1184         fixed point types.
1185         * sem_attr.adb (Eval_Attribute): Remove Aft_Value function and update
1186         callers to call the new function in Einfo that takes the entity as
1187         parameter.
1189 2010-06-22  Robert Dewar  <dewar@adacore.com>
1191         * sem_ch3.adb, sem_ch8.adb: Minor reformatting.
1193 2010-06-22  Thomas Quinot  <quinot@adacore.com>
1195         * sem_elab.adb: Minor reformatting.
1197 2010-06-22  Vincent Celier  <celier@adacore.com>
1199         * gnatsym.adb: Put the object files in the table in increasing
1200         aphabetical order of base names.
1202 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
1204         * sem_ch8.adb (Set_Entity_Or_Discriminal): New procedure used by
1205         Find_Direct_Name and Find_Expanded_Name, to replace a discriminant with
1206         the corresponding discriminal within a record declaration.
1208 2010-06-22  Thomas Quinot  <quinot@adacore.com>
1210         * exp_aggr.adb (Rewrite_Discriminant): Rewriting must occur only for an
1211         expression referring to a discriminal of the type of the aggregate (not
1212         a discriminal of some other unrelated type), and the prefix in the
1213         generated selected component must come from Lhs, not Obj.
1215 2010-06-22  Thomas Quinot  <quinot@adacore.com>
1217         * sem_ch3.adb (Build_Derived_Record_Type): Fix predicate determining
1218         when to freeze the parent type.
1220 2010-06-22  Robert Dewar  <dewar@adacore.com>
1222         * s-rannum.adb, a-nudira.adb, types.ads, freeze.adb, sem_aggr.adb,
1223         exp_aggr.adb: Minor reformatting.
1224         * gnat_rm.texi: Document GNAT.MBBS_Discrete_Random and
1225         GNAT.MBSS_Float_Random.
1226         * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: Fix header.
1228 2010-06-22  Paul Hilfinger  <hilfinger@adacore.com>
1230         * a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-nuflra.ads,
1231         gnat_rm.texi, impunit.adb, Makefile.rtl, s-rannum.adb
1232         (Random_Float_Template, Random): New method of creating
1233         uniform floating-point variables that allow the creation of all machine
1234         values in [0 .. 1).  
1236         * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: New file.
1238 2010-06-22  Gary Dismukes  <dismukes@adacore.com>
1240         * sem_ch5.adb (Analyze_Assignment): Revise test for illegal assignment
1241         to abstract targets to check that the type is tagged and comes from
1242         source, rather than only testing for targets of interface types. Remove
1243         premature return.
1245 2010-06-22  Vincent Celier  <celier@adacore.com>
1247         * vms_data.ads: Modify the declarations of qualifiers
1248         /UNCHECKED_SHARED_LIB_IMPORTS to allow the generation of gnat.hlp
1249         without error.
1251 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
1253         * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false if
1254         expansion is disabled.
1256 2010-06-22  Robert Dewar  <dewar@adacore.com>
1258         * makeusg.adb: Minor reformatting.
1260 2010-06-22  Robert Dewar  <dewar@adacore.com>
1262         * types.ads: (Dint): Removed, no longer used anywhere.
1263         * uintp.adb (UI_From_CC): Use UI_From_Int, range is sufficient.
1264         (UI_Mul): Avoid use of UI_From_Dint.
1265         (UI_From_Dint): Removed, not used.
1266         * uintp.ads (UI_From_Dint): Removed, not used.
1267         (Uint_Min/Max_Simple_Mul): New constants.
1269 2010-06-22  Vincent Celier  <celier@adacore.com>
1271         * clean.adb (Parse_Cmd_Line): Recognize switch
1272         --unchecked-shared-lib-imports.
1273         (Usage): Add line for switch --unchecked-shared-lib-imports
1274         * makeusg.adb: Add line for switch --unchecked-shared-lib-imports
1275         * makeutl.ads: (Unchecked_Shared_Lib_Imports): New constant string
1276         moved from GPR_Util.
1277         * switch-m.adb (Scan_Make_Switches): Recognize switch
1278         --unchecked-shared-lib-imports.
1279         * vms_data.ads: Add VMS qualifiers /UNCHECKED_SHARED_LIB_IMPORTS.
1280         * gnat_ugn.texi: Add documentation for new switch
1281         --unchecked-shared-lib-imports.  Add also documentation for --subdirs.
1283 2010-06-22  Javier Miranda  <miranda@adacore.com>
1285         * sem_prag.adb, sem_util.adb, sem_util.ads, sem_attr.adb, exp_ch6.adb,
1286         exp_disp.adb, sem_eval.adb, exp_dist.adb lib-xref.adb: Code cleanup,
1287         this patch replaces duplication of code that traverses the chain of
1288         aliased primitives by a call to routine Ultimate_Alias that
1289         provides this functionality.
1291 2010-06-22  Arnaud Charlet  <charlet@adacore.com>
1293         * fmap.adb, opt.ads, osint.adb, osint.ads, output.ads, scng.adb,
1294         sinput-c.adb, switch-m.ads, tree_io.ads: Use simpler form of
1295         Warnings Off/On.
1297 2010-06-22  Thomas Quinot  <quinot@adacore.com>
1299         * einfo.ads: Minor reformatting.
1301 2010-06-22  Javier Miranda  <miranda@adacore.com>
1303         * exp_disp.adb (Expand_Interface_Thunk): Do not generate thunk of
1304         eliminated primitives.
1305         (Make_DT): Avoid referencing eliminated primitives.
1306         (Register_Primitive): Do not register eliminated primitives in the
1307         dispatch table. Required to add this functionality when the program is
1308         compiled without static dispatch tables (-gnatd.t)
1310 2010-06-22  Emmanuel Briot  <briot@adacore.com>
1312         * fmap.adb, scng.adb, switch-m.ads, sinput-c.adb, opt.ads, output.ads,
1313         tree_io.ads, osint.adb, osint.ads: Use configuration pragmas to prevent
1314         warnings on use of internal GNAT units.
1316 2010-06-22  Jose Ruiz  <ruiz@adacore.com>
1318         * s-taprop-vxworks.adb (Set_Priority): Update comments.
1320 2010-06-22  Paul Hilfinger  <hilfinger@adacore.com>
1322         * s-rannum.adb: Make stylistic change to remove mystery constant in
1323         Extract_Value.  Image_Numeral_Length: new symbolic constant.
1325 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
1327         * einfo.ads, einfo.adb: Make Is_Protected_Interface,
1328         Is_Synchronized_Interface, Is_Task_Interface into computable
1329         predicates, to free three flags in entity nodes.
1330         * sem_ch3.adb: Remove setting of these flags.
1332 2010-06-22  Robert Dewar  <dewar@adacore.com>
1334         * uintp.adb, osint.adb, prj-conf.adb, prj-part.adb, prj.adb: Minor
1335         reformatting.
1336         * s-taprop-vxworks.adb: Add comment for Set_Priority.
1337         * impunit.adb (Map_Array): Add entries for s-htable.ads and s-crc32.ads
1338         * projects.texi: Move @cindex to the left margin, since otherwise we
1339         are missing entries in the index.
1341 2010-06-22  Emmanuel Briot  <briot@adacore.com>
1343         * prj-part.adb, prj.adb, tempdir.ads, makeutl.adb: Use
1344         packages from the GNAT hierarchy instead of System when possible.
1345         * gcc-interface/Make-lang.in: Update dependencies.
1347 2010-06-22  Jose Ruiz  <ruiz@adacore.com>
1349         * s-taprop-vxworks.adb (Set_Priority): Remove the code that was
1350         previously in place to reorder the ready queue when a task drops its
1351         priority due to the loss of inherited priority.
1353 2010-06-22  Vincent Celier  <celier@adacore.com>
1355         * projects.texi: Minor spelling error fixes.
1356         Minor reformatting.
1358 2010-06-22  Emmanuel Briot  <briot@adacore.com>
1360         * prj-part.adb, prj-ext.adb, prj.adb, makeutl.adb, prj-conf.adb: Remove
1361         warnings for some with clauses.
1363 2010-06-22  Robert Dewar  <dewar@adacore.com>
1365         * errout.adb (Unwind_Internal_Type): Improve handling of First_Subtype
1366         test to catch more cases where first subtype is the results we want.
1367         * sem_res.adb (Make_Call_Into_Operator): Don't go to First_Subtype in
1368         error case, since Errout will now handle this correctly.
1369         * gcc-interface/Make-lang.in: Add Sem_Aux to list of GNATBIND objects.
1370         Update dependencies.
1372 2010-06-22  Arnaud Charlet  <charlet@adacore.com>
1374         * exp_ch4.adb (Expand_Allocator_Expression): Set Related_Node properly
1375         when calling Make_Temporary.
1377 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
1379         * sem_ch3.adb (Access_Subprogram_Declaration): An anonymous access to
1380         subprogram can be associated with an entry body.
1382 2010-06-22  Robert Dewar  <dewar@adacore.com>
1384         * scos.ads: Add note on membership test handling.
1386 2010-06-22  Vincent Celier  <celier@adacore.com>
1388         * projects.texi: Minor spelling fixes.
1389         Minor reformatting.
1391 2010-06-22  Paul Hilfinger  <hilfinger@adacore.com>
1393         * s-rannum.adb: Correct off-by-one error in Extract_Value.
1395 2010-06-22  Vincent Celier  <celier@adacore.com>
1397         * mlib-prj.adb (Display): In non verbose mode, truncate after fourth
1398         argument.
1399         * mlib-utl.adb (Gcc): In non verbose mode, truncate the display of the
1400         gcc command if it is too long.
1402 2010-06-22  Robert Dewar  <dewar@adacore.com>
1404         * errout.adb (Set_Msg_Node): Fix incorrect reference to node.
1406 2010-06-22  Arnaud Charlet  <charlet@adacore.com>
1408         * exp_ch6.adb (Expand_Actuals): Use Actual as the related node when
1409         calling Make_Temporary.
1411 2010-06-22  Robert Dewar  <dewar@adacore.com>
1413         * sem_res.adb, sem_aux.adb, errout.adb: Minor reformatting.
1415 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
1417         * sem_res.adb: Additional special-case for VMS.
1419 2010-06-22  Vincent Celier  <celier@adacore.com>
1421         * gnatsym.adb: Minor comment fix.
1423 2010-06-22  Vincent Celier  <celier@adacore.com>
1425         * prj-nmsc.adb (Process_Naming_Scheme): Initialize table Lib_Data_Table.
1427 2010-06-22  Robert Dewar  <dewar@adacore.com>
1429         * par-ch4.adb (P_Name): Recognize 'Mod attribute in Ada 95 mode
1430         * sem_attr.adb (Attribute_05): Add Name_Mod so that 'Mod recognized in
1431         Ada 95 mode as an implementation defined attribute.
1433 2010-06-22  Vincent Celier  <celier@adacore.com>
1435         * bindusg.adb (Display): Update line for -R
1436         * switch-b.adb (Scan_Binder_Switches): Allow generation of the binder
1437         generated files when -R is used.
1439 2010-06-22  Vincent Celier  <celier@adacore.com>
1441         * prj-nmsc.adb (Lib_Data_Table): New table.
1442         (Check_Library_Attributes): Check if the same library name is used in
1443         two different projects that do not extend each other.
1445 2010-06-22  Robert Dewar  <dewar@adacore.com>
1447         * lib-writ.ads, errout.adb, einfo.adb, einfo.ads: Minor reformatting.
1449 2010-06-22  Vincent Celier  <celier@adacore.com>
1451         * adaint.c (__gnat_locate_regular_file): If a directory in the path is
1452         empty, make it the current working directory.
1454 2010-06-22  Thomas Quinot  <quinot@adacore.com>
1456         * sem_ch3.adb (Build_Derived_Record_Type): When deriving a tagged
1457         private type with discriminants, make sure the parent type is frozen.
1459 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
1461         * exp_attr.adb (Expand_N_Attribute_Reference) <Attribute_Bit>: Deal
1462         with packed array references specially.
1463         * exp_ch4.adb (Expand_N_Indexed_Component): Do not convert a reference
1464         to a component of a bit packed array if it is the prefix of 'Bit.
1465         * exp_pakd.ads (Expand_Packed_Bit_Reference): Declare.
1466         * exp_pakd.adb (Expand_Packed_Bit_Reference): New procedure.  Expand a
1467         'Bit reference, where the prefix involves a packed array reference.
1468         (Get_Base_And_Bit_Offset): New helper, extracted from...
1469         (Expand_Packed_Address_Reference): ...here.  Call above procedure to
1470         get the outer object and offset expression.
1472 2010-06-22  Thomas Quinot  <quinot@adacore.com>
1474         * exp_attr.adb, lib-writ.ads, bindgen.adb: Minor reformatting.
1475         * einfo.adb (Related_Expression, Set_Related_Expression): Add
1476         assertions.
1478 2010-06-22  Javier Miranda  <miranda@adacore.com>
1480         * sem_ch3.adb (Add_Internal_Interface_Entities): Minor code
1481         reorganization to properly check if the operation has been inherited as
1482         an abstract operation.
1484 2010-06-22  Ed Falis  <falis@adacore.com>
1486         * s-osinte-vxworks.ads: Complete previous change.
1488 2010-06-22  Thomas Quinot  <quinot@adacore.com>
1490         * sem_res.adb: Add comment.
1491         * projects.texi, gnat_ugn.texi: Remove macro.
1493 2010-06-22  Vincent Celier  <celier@adacore.com>
1495         * prj-attr.adb: Remove project level attribute Main_Language.
1497 2010-06-22  Robert Dewar  <dewar@adacore.com>
1499         * switch-b.adb, osint-b.adb: Minor reformatting.
1501 2010-06-22  Pascal Obry  <obry@adacore.com>
1503         * g-socthi-mingw.adb (C_Sendmsg): Do not attempt to send data from a
1504         vector if previous send was not fully successful. If only part of
1505         the vector data was sent, we exit the loop.
1507 2010-06-22  Thomas Quinot  <quinot@adacore.com>
1509         * sem_res.adb (Make_Call_Into_Operator): Use First_Subtype for better
1510         error reporting with generic types.
1512 2010-06-22  Thomas Quinot  <quinot@adacore.com>
1514         * bindgen.adb, bindusg.adb, gnatbind.adb, gnat_ugn.texi, opt.ads,
1515         osint-b.adb, osint-b.ads, output.adb, output.ads, switch-b.adb,
1516         vms_data.ads: Add a new command line switch -A to gnatbind to output
1517         the list of all ALI files for the partition.
1519 2010-06-22  Arnaud Charlet  <charlet@adacore.com>
1521         * s-osinte-vxworks.ads: Fix casing.
1522         * s-vxwext-kernel.ads, s-vxwext-rtp.ads: Complete previous
1523         change: Interfaces.C does not provide a long_long type.
1525 2010-06-22  Emmanuel Briot  <briot@adacore.com>
1527         * gnat_ugn.texi, projects.texi: Preprocess projects.texi for VMS and
1528         native user's guide, since this document contains the two versions.
1529         * gcc-interface/Make-lang.in: Update doc dependencies.
1531 2010-06-22  Robert Dewar  <dewar@adacore.com>
1533         * sem_ch3.adb: Minor reformatting.  Minor code reorganization.
1535 2010-06-22  Emmanuel Briot  <briot@adacore.com>
1537         * gnat_ugn.texi, projects.texi: Remove toplevel menu, since we should
1538         not build this file on its own (only through gnat_ugn.texi).
1539         Remove macro definitions and insert simpler version in gnat_ugn.texi.
1541 2010-06-22  Robert Dewar  <dewar@adacore.com>
1543         * ali-util.ads: Minor comment update.
1544         * g-socthi-mingw.adb: Minor reformatting.
1546 2010-06-22  Ed Falis  <falis@adacore.com>
1548         * s-osinte-vxworks.ads: take sigset_t definition from System.VxWorks.Ext
1549         * s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads: Define sigset_t
1550         for specific versions of VxWorks.
1552 2010-06-22  Emmanuel Briot  <briot@adacore.com>
1554         * gnat_rm.texi, gnat_ugn.texi, projects.texi: Remove all project files
1555         related sections from user's guide and reference manual, since they
1556         have now been merged together into a separate document (projects.texi).
1557         This removes a lot of duplication where attributes where described
1558         in several places.
1559         The grammar for the project files is now in each of the sections
1560         (packages,expressions,...) instead of being duplicates in two other
1561         sections (one in the user's guide that contained the full grammar,
1562         and various sections in the rm that contained extracts of the same
1563         grammar).
1564         Added the full list of all supported attributes, since existing lists
1565         were incomplete
1566         Rename "associative array" into "indexed attribute"
1567         Remove sections that were duplicates ("External References in
1568         Project Files" and "External Values", and "Project Extensions"
1569         for instance). The list of valid packages in project files is now in
1570         a single place.
1572 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
1574         * sem_ch3.adb (Add_Internal_Interface_Entities): If
1575         Find_Primitive_Covering_Interface does not find the operation, it may
1576         be because of a name conflict between the inherited operation and a
1577         local non-overloadable name. In that case look for the operation among
1578         the primitive operations of the type. This search must succeed
1579         regardless of visibility.
1581 2010-06-22  Pascal Obry  <obry@adacore.com>
1583         * g-socthi-mingw.adb: Properly honor MSG_WAITALL in recvmsg.
1584         (C_Recvmsg): Propely honor the MSG_WAITALL flag in Windows
1585         recvmsg emulation.
1587 2010-06-22  Robert Dewar  <dewar@adacore.com>
1589         * sem_ch4.adb (Analyze_Conditional_Expression): Defend against
1590         malformed tree.
1591         * sprint.adb (Sprint_Node_Actual, case N_Conditional_Expression): Ditto.
1593 2010-06-22  Arnaud Charlet  <charlet@adacore.com>
1595         * s-intman-vxworks.ads: Code clean up.
1597 2010-06-22  Thomas Quinot  <quinot@adacore.com>
1599         * sem_res.adb (Resolve_Slice): When the prefix is an explicit
1600         dereference, construct actual subtype of designated object to generate
1601         proper bounds checks.
1603 2010-06-22  Thomas Quinot  <quinot@adacore.com>
1605         * ali-util.adb, ali-util.ads, gnatbind.adb (Read_ALI): Rename to
1606         Read_Withed_ALIs, which is more descriptive.
1608 2010-06-22  Pascal Obry  <obry@adacore.com>
1610         * g-sothco.ads: Minor reformatting.
1611         * g-socthi-mingw.adb: Remove part of work on the C_Recvmsg and
1612         C_Sendmsg implementation.
1613         (C_Sendmsg): Do not use lock (not needed).
1614         (C_Recvmsg): Likewise and also do not wait for incoming data.
1616 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
1618         * uintp.adb: Fix scope error in operator call.
1620 2010-06-22  Vincent Celier  <celier@adacore.com>
1622         * makeutl.adb (Executable_Prefix_Path): on VMS, return "/gnu/".
1623         * prj-conf.adb (Get_Or_Create_Configuration_File): On VMS, if
1624         autoconfiguration is needed, fail indicating that no config project
1625         file can be found, as there is no autoconfiguration on VMS.
1627 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
1629         * sem_res.adb (Make_Call_Into_Operator): Diagnose an incorrect scope
1630         for an operator in a functional notation, when operands are universal.
1632 2010-06-22  Arnaud Charlet  <charlet@adacore.com>
1634         * gcc-interface/Make-lang.in: Update dependencies.
1636 2010-06-22  Robert Dewar  <dewar@adacore.com>
1638         * sem_aggr.adb (Resolve_Record_Aggregate): Do style check on component
1639         name.
1640         * sem_ch10.adb (Analyze_Subunit): Do style check on parent unit name.
1641         * sem_ch8.adb (Find_Direct_Name): For non-overloadable entities, do
1642         style check.
1643         * sem_res.adb (Resolve_Entity_Name): Do style check for enumeration
1644         literals.
1646 2010-06-22  Vincent Celier  <celier@adacore.com>
1648         * make.adb (Scan_Make_Arg): No longer pass -nostdlib to the compiler as
1649         it has no effect. Always pass -nostdlib to gnatlink, even on VMS.
1651 2010-06-22  Pascal Obry  <obry@adacore.com>
1653         * g-socthi-mingw.adb: Fix implementation of the vectored sockets on
1654         Windows.
1655         (C_Recvmsg): Make sure the routine is atomic. Also fully
1656         fill vectors in the proper order.
1657         (C_Sendmsg): Make sure the routine is atomic.
1659 2010-06-22  Robert Dewar  <dewar@adacore.com>
1661         * sem_ch8.adb: Update comment.
1662         * sem_res.adb: Minor code reorganization (use Ekind_In).
1664 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
1666         * sem_ch8.adb (Add_Implicit_Operator): If the context of the expanded
1667         name is a call, use the number of actuals to determine whether this is
1668         a binary or unary operator, rather than relying on later information
1669         to resolve the overload.
1671 2010-06-22  Robert Dewar  <dewar@adacore.com>
1673         * sem_ch10.adb, sem_aggr.adb: Minor reformatting.
1675 2010-06-22  Robert Dewar  <dewar@adacore.com>
1677         * sem_ch3.adb, sem_disp.adb: Minor code fixes.
1678         * sem_eval.adb: Minor reformatting.
1680 2010-06-22  Vincent Celier  <celier@adacore.com>
1682         * make.adb (Scan_Make_Arg): When invoked with -nostdlib, pass -nostdlib
1683         to gnatlink, except on Open VMS.
1684         * osint.adb (Add_Default_Search_Dirs): Do not suppress the default
1685         object directories if -nostdlib is used.
1687 2010-06-22  Robert Dewar  <dewar@adacore.com>
1689         * sem_util.adb (Is_Delegate): Put in proper alpha order.
1690         * sem_eval.adb: Minor reformatting.
1692 2010-06-22  Robert Dewar  <dewar@adacore.com>
1694         * g-expect-vms.adb, sem_res.adb: Minor reformatting.
1695         * exp_aggr.adb: Minor comment changes and reformatting.
1696         * sem_eval.adb (Find_Universal_Operator_Type): Put in proper alpha order
1697         * sem_util.ads: Add some missing pragma Inline's (efficiency issue only)
1699 2010-06-22  Thomas Quinot  <quinot@adacore.com>
1701         * sem_util.adb (Build_Actual_Subtype): Record original expression in
1702         Related_Expression attribute of the constructed subtype.
1703         * einfo.adb, einfo.ads (Underlying_View): Move to Node28 to free up
1704         Node24 on types for...
1705         (Related_Expression): Make attribute available on types as well.
1707 2010-06-22  Gary Dismukes  <dismukes@adacore.com>
1709         * exp_util.adb (Find_Interface_ADT): Retrieve Designated_Type instead of
1710         Directly_Designated_Type when the type argument is an access type.
1711         (Find_Interface_Tag): Retrieve Designated_Type instead of
1712         Directly_Designated_Type when the type argument is an access type.
1713         (Has_Controlled_Coextensions): Retrieve Designated_Type instead of
1714         Directly_Designated_Type of each access discriminant.
1715         * sem_res.adb (Resolve_Type_Conversion): Retrieve Designated_Type
1716         instead of Directly_Designated_Type when the operand and target types
1717         are access types.
1719 2010-06-22  Thomas Quinot  <quinot@adacore.com>
1721         * exp_aggr.adb (Flatten): Return False if one choice is statically
1722         known to be out of bounds.
1724 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
1726         * sem_res.adb (Resolve_Call): If the call is rewritten as an indexed of
1727         a parameterless function call, preserve parentheses of original
1728         expression, for proper handling by pretty printer.
1729         * sem_attr.adb (Analyze_Attribute, case 'Old): Add guard to Process
1730         procedure, to handle quietly identifiers that have no entity names.
1731         * exp_util.adb (Get_Current_Value_Condition): If the parent of an
1732         elsif_part is missing, it has been rewritten as a nested if, and there
1733         is no useful information on the current value of the variable.
1735 2010-06-22  Gary Dismukes  <dismukes@adacore.com>
1737         * sem_ch3.adb (Build_Discriminal): Set default scopes for newly created
1738         discriminals to the current scope.
1739         * sem_util.adb (Find_Body_Discriminal): Remove setting of discriminal's
1740         scope, which could overwrite a different already set value.
1742 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
1744         * sem_res.adb (Valid_Conversion): If expression is a predefined
1745         operator, use sloc of type of interpretation to improve error message
1746         when operand is of some derived type.
1747         * sem_eval.adb (Is_Mixed_Mode_Operand): New function, use it.
1749 2010-06-22  Emmanuel Briot  <briot@adacore.com>
1751         * g-expect-vms.adb (Expect_Internal): No longer raises an exception, so
1752         that it can set out parameters as well. When a process has died, reset
1753         its Input_Fd to Invalid_Fd, so that when using multiple processes we
1754         can find out which process has died.
1756 2010-06-22  Thomas Quinot  <quinot@adacore.com>
1758         * sem_eval.adb (Find_Universal_Operator_Type): New
1759         subprogram to identify the operand type of an operator on universal
1760         operands, when an explicit scope indication is present. Diagnose the
1761         case where such a call is ambiguous.
1762         (Eval_Arithmetic_Op, Eval_Relational_Op, Eval_Unary_Op):
1763         Use the above to identify the operand type so it can be properly frozen.
1764         * sem_res.adb (Make_Call_Into_Operator): Remove bogus freeze of operand
1765         type, done in an arbitrary, possibly incorrect type (the presence of
1766         some numeric type in the scope is checked for legality, but when more
1767         than one such type is in the scope, we just pick a random one, not
1768         necessarily the expected one).
1769         * sem_utils.ads, sem_utils.adb (Is_Universal_Numeric_Type): New utility
1770         subprogram.
1772 2010-06-22  Robert Dewar  <dewar@adacore.com>
1774         * sem_eval.adb: Minor reformatting.
1776 2010-06-22  Robert Dewar  <dewar@adacore.com>
1778         * exp_ch4.adb (Expand_N_Conditional_Expression): Use
1779         Expression_With_Actions to clean up the code generated when folding
1780         constant expressions.
1782 2010-06-22  Vincent Celier  <celier@adacore.com>
1784         * g-expect-vms.adb: Add new subprograms Free, First_Dead_Process and
1785         Has_Process.
1787 2010-06-22  Vincent Celier  <celier@adacore.com>
1789         * prj-nmsc.adb (Find_Sources): When a source from a multi-unit file is
1790         found, check if it's path has aready been found, whatever its index.
1792 2010-06-22  Robert Dewar  <dewar@adacore.com>
1794         * atree.adb, gnatbind.adb: Minor reformatting.
1795         Minor code reorganization.
1797 2010-06-21  Robert Dewar  <dewar@adacore.com>
1799         * exp_ch4.adb (Expand_N_Conditional_Expression): Fold if condition
1800         known at compile time.
1802 2010-06-21  Gary Dismukes  <dismukes@adacore.com>
1804         * atree.adb: Fix comment typo.
1806 2010-06-21  Ed Schonberg  <schonberg@adacore.com>
1808         * sem_eval.adb (Test_Ambiguous_Operator): New procedure to check
1809         whether a universal arithmetic expression in a conversion, which is
1810         rewritten from a function call with an expanded name, is ambiguous.
1812 2010-06-21  Vincent Celier  <celier@adacore.com>
1814         * prj-nmsc.adb (Name_Location): New Boolean component Listed, to record
1815         source files in specified list of sources.
1816         (Check_Package_Naming): Remove out parameters Bodies and Specs, as they
1817         are never used.
1818         (Add_Source): Set the Location of the new source
1819         (Process_Exceptions_File_Based): Call Add_Source with the Location
1820         (Get_Sources_From_File): If an exception is found, set its Listed to
1821         True
1822         (Find_Sources): When Source_Files is specified, if an exception is
1823         found, set its Listed to True. Remove any exception that is not in a
1824         specified list of sources.
1825         * prj.ads (Source_Data): New component Location
1827 2010-06-21  Vincent Celier  <celier@adacore.com>
1829         * gnatbind.adb (Closure_Sources): Global table, moved from block.
1831 2010-06-21  Thomas Quinot  <quinot@adacore.com>
1833         * sem_res.adb: Minor reformatting.
1834         * atree.adb: New debugging hook "rr" for node rewrites.
1836 2010-06-21  Robert Dewar  <dewar@adacore.com>
1838         * g-expect.ads, g-expect.adb: Minor reformatting.
1840 2010-06-21  Emmanuel Briot  <briot@adacore.com>
1842         * s-regpat.adb (Next_Pointer_Bytes): New named constant. Code clean up.
1844 2010-06-21  Arnaud Charlet  <charlet@adacore.com>
1846         * gcc-interface/Make-lang.in: Update dependencies.
1848 2010-06-21  Thomas Quinot  <quinot@adacore.com>
1850         * bindgen.ads: Update comments.
1852 2010-06-21  Vincent Celier  <celier@adacore.com>
1854         * gnatbind.adb: Suppress dupicates when listing the sources in the
1855         closure (switch -R).
1857 2010-06-21  Emmanuel Briot  <briot@adacore.com>
1859         * s-regpat.adb (Link_Tail): Fix error when size of the pattern matcher
1860         is too small.
1862 2010-06-21  Emmanuel Briot  <briot@adacore.com>
1864         * g-expect.adb, g-expect.ads (First_Dead_Process, Free, Has_Process):
1865         New subprograms.
1866         (Expect_Internal): No longer raises an exception, so that it can set
1867         out parameters as well. When a process has died, reset its Input_Fd
1868         to Invalid_Fd, so that when using multiple processes we can find out
1869         which process has died.
1871 2010-06-21  Robert Dewar  <dewar@adacore.com>
1873         * s-regpat.adb, s-tpoben.adb, sem_attr.adb, sem_util.adb, sem_util.ads,
1874         checks.adb, sem_res.adb: Minor reformatting. Add comments.
1876 2010-06-21  Ed Schonberg  <schonberg@adacore.com>
1878         * sem_ch6.adb (New_Overloaded_Entity): If the new entity is a
1879         rederivation associated with a full declaration in a private part, and
1880         there is a partial view that derives the same parent subprogram, the
1881         new entity does not become visible. This check must be applied to
1882         interface operations as well.
1884 2010-06-21  Thomas Quinot  <quinot@adacore.com>
1886         * checks.adb: Add comments.
1887         * prj-nmsc.adb: Minor reformatting.
1889 2010-06-21  Thomas Quinot  <quinot@adacore.com>
1891         * sem_ch9.adb, checks.adb, sem_util.adb, sem_util.ads, sem_res.adb,
1892         sem_attr.adb (Get_E_First_Or_Last): Use attribute references on E to
1893         extract bounds, to ensure that we get the proper captured values,
1894         rather than an expression that may have changed value since the point
1895         where the subtype was elaborated.
1896         (Find_Body_Discriminal): New utility subprogram to share code between...
1897         (Eval_Attribute): For the case of a subtype bound that references a
1898         discriminant of the current concurrent type, insert appropriate
1899         discriminal reference.
1900         (Resolve_Entry.Actual_Index_Type.Actual_Discriminant_Ref): For a
1901         requeue to an entry in a family in the current task, use corresponding
1902         body discriminal. 
1903         (Analyze_Accept_Statement): Rely on expansion of attribute references
1904         to insert proper discriminal references in range check for entry in
1905         family.
1907 2010-06-21  Emmanuel Briot  <briot@adacore.com>
1909         * s-regpat.adb (Compile): Fix handling of big patterns.
1911 2010-06-21  Robert Dewar  <dewar@adacore.com>
1913         * a-tifiio.adb: Minor reformatting.
1915 2010-06-21  Pascal Obry  <obry@adacore.com>
1917         * prj-nmsc.adb (Search_Directories): Use the non-translated directory
1918         path to open it.
1920 2010-06-21  Javier Miranda  <miranda@adacore.com>
1922         * exp_cg.adb (Write_Call_Info): Fill the component sourcename using the
1923         external name.
1925 2010-06-21  Ed Schonberg  <schonberg@adacore.com>
1927         * exp_ch4.adb (Expand_Concatenate): If an object declaration is created
1928         to hold the result, indicate that the target of the declaration does
1929         not need an initialization, to prevent spurious errors when
1930         Initialize_Scalars is enabled.
1932 2010-06-21  Ed Schonberg  <schonberg@adacore.com>
1934         * a-tifiio.adb (Put): In the procedure that performs I/O on a String,
1935         Fore is not bound by line length. The Fore parameter of the internal
1936         procedure that performs the operation is an integer.
1938 2010-06-21  Thomas Quinot  <quinot@adacore.com>
1940         * sem_res.adb, checks.adb: Minor reformatting.
1942 2010-06-21  Emmanuel Briot  <briot@adacore.com>
1944         * s-regpat.adb (Next_Instruction, Get_Next_Offset): Removed, merged
1945         into Get_Next.
1946         (Insert_Operator_Before): New subprogram, avoids duplicated code
1947         (Compile): Avoid doing two compilations when the pattern matcher ends
1948         up being small.
1950 2010-06-21  Emmanuel Briot  <briot@adacore.com>
1952         * s-regpat.adb: Improve debug traces
1953         (Dump): Change output format to keep it smaller.
1955 2010-06-21  Javier Miranda  <miranda@adacore.com>
1957         * exp_cg.adb (Generate_CG_Output): Disable redirection of standard
1958         output to the output file when this routine completes its work.
1960 2010-06-20  Eric Botcazou  <ebotcazou@adacore.com>
1962         * gcc-interface/trans.c (Subprogram_Body_to_gnu): Use while instead of
1963         for loop.  Call build_constructor_from_list directly in the CICO case.
1965 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
1967         * freeze.adb (Build_And_Analyze_Renamed_Body): If the renaming
1968         declaration appears in the same unit and ealier than the renamed
1969         entity, retain generated body to prevent order-of-elaboration issues in
1970         gigi.
1972 2010-06-18  Arnaud Charlet  <charlet@adacore.com>
1974         * s-tpoben.adb: Update comments.
1976 2010-06-18  Robert Dewar  <dewar@adacore.com>
1978         * debug.adb: Minor comment change.
1980 2010-06-18  Javier Miranda  <miranda@adacore.com>
1982         * exp_cg.adb: Code clean up.
1983         * debug.adb: Complete documentation of switch -gnatd.Z.
1984         * gcc-interface/misc.c (callgraph_info_file): Declare.
1986 2010-06-18  Javier Miranda  <miranda@adacore.com>
1988         * exp_cg.adb (Homonym_Suffix_Length): Minor code reorganization.
1990 2010-06-18  Thomas Quinot  <quinot@adacore.com>
1992         * sprint.ads: Minor reformatting.
1993         * output.ads: Update obsolete comment.
1995 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
1997         * freeze.adb (Build_And_Analyze_Renamed_Body): if the renamed entity is
1998         an external intrinsic operation (e.g. a GCC numeric function) indicate
1999         that the renaming entity has the same characteristics, so a call to it
2000         is properly expanded.
2002 2010-06-18  Javier Miranda  <miranda@adacore.com>
2004         * exp_cg.adb, exp_cg.ads, exp_disp.adb, gnat1drv.adb: Add initial
2005         support for dispatch table/callgraph info generation.
2006         * gcc-interface/Make-lang.in: Update dependencies.
2008 2010-06-18  Robert Dewar  <dewar@adacore.com>
2010         * exp_ch6.adb: Minor reformatting.
2011         * gnatname.adb: Add comment.
2013 2010-06-18  Vincent Celier  <celier@adacore.com>
2015         * gnatname.adb (Scan_Args): When --and is used, make sure that the
2016         dynamic tables in the newly allocated Argument_Data are properly
2017         initialized.
2019 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
2021         * gnat1drv.adb: Fix comment.
2023 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
2025         * exp_ch6.adb (Expand_Inlined_Call): If the inlined subprogram is a
2026         renaming, re-expand the call with the renamed subprogram if that one
2027         is marked inlined as well.
2029 2010-06-18  Gary Dismukes  <dismukes@adacore.com>
2031         * gnat1drv.adb (Adjust_Global_Switches): Enable
2032         Use_Expression_With_Actions for AAMP and VM targets.
2034 2010-06-18  Vincent Celier  <celier@adacore.com>
2036         * prj-nmsc.adb (Process_Linker): Recognize response file format GCC.
2038 2010-06-18  Thomas Quinot  <quinot@adacore.com>
2040         * exp_ch4.adb: Minor reformatting.
2042 2010-06-18  Javier Miranda  <miranda@adacore.com>
2044         * debug.ads Add documentation on -gnatd.Z.
2046 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
2048         * sem_elim.adb: Proper error message on improperly eliminated instances
2050 2010-06-18  Vincent Celier  <celier@adacore.com>
2052         * prj.ads (Response_File_Format): New value GCC.
2054 2010-06-18  Thomas Quinot  <quinot@adacore.com>
2056         * gnat1drv.adb: Minor reformatting.
2058 2010-06-18  Robert Dewar  <dewar@adacore.com>
2060         * make.adb, sem_cat.adb: Minor reformatting.
2061         * sem_eval.adb: Fix typos.
2063 2010-06-18  Pascal Obry  <obry@adacore.com>
2065         * prj-nmsc.adb: Fix source filenames casing in debug output.
2067 2010-06-18  Robert Dewar  <dewar@adacore.com>
2069         * gnatcmd.adb: Minor reformatting.
2071 2010-06-18  Robert Dewar  <dewar@adacore.com>
2073         * sem_eval.adb (Eval_Conditional_Expression): Result is static if
2074         condition and both sub-expressions are static (and result is selected
2075         expression).
2077 2010-06-18  Robert Dewar  <dewar@adacore.com>
2079         * g-pehage.adb: Minor reformatting
2081 2010-06-18  Pascal Obry  <obry@adacore.com>
2083         * prj-nmsc.adb (Search_Directories): Insert canonical filenames into
2084         source hash table.
2086 2010-06-18  Arnaud Charlet  <charlet@adacore.com>
2088         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
2089         dependencies. Fix target pairs on darwin.
2090         (gnatlib-sjlj, gnatlib-zcx): Pass THREAD_KIND.
2092 2010-06-18  Pascal Obry  <obry@adacore.com>
2094         * make.adb, prj-nmsc.adb: Fix source filenames casing in debug output.
2096 2010-06-18  Vincent Celier  <celier@adacore.com>
2098         * gnatcmd.adb: For gnatcheck, add -gnatec= switch for a global
2099         configuration pragmas file and, if -U is not used, for a local one.
2101 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
2103         * sem_elim.adb (Check_Eliminated): Use full information on entity name
2104         when it is given in the pragma by a selected component.
2105         (Check_For_Eliminated_Subprogram): Do no emit error if within a
2106         instance body that is itself within a generic unit.
2107         * sem_ch12.adb (Analyze_Subprogram_Instance): If the subprogram is
2108         eliminated, mark as well the anonymous subprogram that is its alias
2109         and appears within the wrapper package.
2111 2010-06-18  Bob Duff  <duff@adacore.com>
2113         * g-pehage.ads, g-pehage.adb (Produce): Clean up some of the code.
2114         Raise an exception if the output file cannot be opened. Add comments.
2116 2010-06-18  Thomas Quinot  <quinot@adacore.com>
2118         * sem_cat.adb (Validate_Object_Declaration): A variable declaration is
2119         not illegal per E.2.2(7) if it occurs in the private part of a
2120         Remote_Types unit.
2122 2010-06-18  Arnaud Charlet  <charlet@adacore.com>
2124         * par-ch9.adb, sem_aggr.adb, sem_ch3.adb, layout.adb, sem_ch4.adb,
2125         sem_ch5.adb, sem_mech.adb, exp_util.adb, par-ch10.adb, sem_ch6.adb,
2126         par-ch11.adb, sem_ch7.adb, par-prag.adb, exp_disp.adb, par-ch12.adb,
2127         sem_ch8.adb, style.adb, sem_ch9.adb, sem_ch10.adb, prep.adb,
2128         sem_warn.adb, par-util.adb, scng.adb, sem_eval.adb, checks.adb,
2129         sem_prag.adb, sem_ch12.adb, styleg.adb, sem_ch13.adb, par-ch3.adb,
2130         par-tchk.adb, freeze.adb, sfn_scan.adb, par-ch4.adb, sem_util.adb,
2131         sem_res.adb, par-ch5.adb, lib-xref.adb, sem_attr.adb, par-ch6.adb,
2132         sem_disp.adb, prepcomp.adb, par-ch7.adb, sem_elab.adb, exp_ch4.adb,
2133         errout.ads: Update comments. Minor reformatting.
2135         * g-spipat.adb, a-swunau.adb, a-swunau.ads, g-spitbo.adb,
2136         a-szunau.adb, a-szunau.ads, a-stunau.adb, a-stunau.ads,
2137         a-strunb.adb (Big_String. Big_String_Access): New type.
2139         * par-labl.adb, restrict.adb, s-osinte-hpux-dce.ads, sem_ch11.adb,
2140         exp_pakd.adb, s-filofl.ads, par-endh.adb, exp_intr.adb, sem_cat.adb,
2141         sem_case.adb, exp_ch11.adb, s-osinte-linux.ads: Fix copyright notices.
2143 2010-06-18  Geert Bosch  <bosch@adacore.com>
2145         * i-forbla-darwin.adb: Include -lgnala and -lm in linker options for
2146         Darwin.
2148 2010-06-18  Robert Dewar  <dewar@adacore.com>
2150         * gnat1drv.adb (Adjust_Global_Switches): Set Use_Expression_With_Actions
2151         true for gcc.
2153 2010-06-18  Robert Dewar  <dewar@adacore.com>
2155         * sprint.adb: Minor format change for N_Expression_With_Actions.
2156         * repinfo.adb: Minor reformatting.
2158 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
2160         * sem_elim.adb (Check_Eliminated): If within a subunit, use
2161         Defining_Entity to obtain the name of the entity in the proper body, to
2162         properly handle both separate packages and subprograms.
2164 2010-06-18  Emmanuel Briot  <briot@adacore.com>
2166         * prj-nmsc.adb (Check_File): New parameter Display_Path.
2168 2010-06-18  Thomas Quinot  <quinot@adacore.com>
2170         * g-socket.adb, g-socket.ads (Null_Selector): New object.
2172 2010-06-18  Pascal Obry  <obry@adacore.com>
2174         * gnat_ugn.texi: Minor clarification.
2176 2010-06-18  Emmanuel Briot  <briot@adacore.com>
2178         * prj-nmsc.adb (Find_Source_Dirs): Minor refactoring to avoid duplicate
2179         code when using the project dir as the source dir.
2180         (Search_Directories): use the normalized name for the source directory,
2181         where symbolic names have potentially been resolved.
2183 2010-06-18  Robert Dewar  <dewar@adacore.com>
2185         * exp_ch4.adb (Expand_N_Conditional_Expression): Clear Actions field
2186         when we create N_Expression_With_Actions node.
2187         (Expand_Short_Circuit): Ditto.
2189 2010-06-18  Robert Dewar  <dewar@adacore.com>
2191         * exp_util.adb: Minor reformatting.
2193 2010-06-18  Thomas Quinot  <quinot@adacore.com>
2195         * types.ads: Clean up obsolete comments
2196         * tbuild.adb: Minor reformatting.
2197         * exp_ch5.adb, sem_intr.adb, sem_ch10.adb, rtsfind.adb, s-shasto.adb,
2198         exp_strm.adb, aa_drive.adb: Minor reformatting.
2199         * sem_res.adb (Is_Predefined_Operator): An operator that is an imported
2200         intrinsic with an Interface_Name denotes an imported back-end builtin,
2201         and must be rewritten into a call, not left in the tree as an operator,
2202         so return False in that case.
2204 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
2206         * exp_util.adb (Remove_Side_Effects): Make a copy for an allocator.
2207         
2208 2010-06-18  Robert Dewar  <dewar@adacore.com>
2210         * scos.ads: Add proposed output for case expression
2212 2010-06-18  Jose Ruiz  <ruiz@adacore.com>
2214         * gnat_ugn.texi: Document that, when using the RTX compiler to generate
2215         RTSS modules, we need to use the Microsoft linker.
2217 2010-06-18  Robert Dewar  <dewar@adacore.com>
2219         * checks.adb (Safe_To_Capture_In_Parameter_Value): Deal with case
2220         expression (cannot count on a particular branch being executed).
2221         * exp_ch4.adb (Expand_N_Case_Expression): New procedure.
2222         * exp_ch4.ads (Expand_N_Case_Expression): New procedure.
2223         * exp_util.adb (Insert_Actions): Deal with proper insertion of actions
2224         within case expression.
2225         * expander.adb (Expand): Add call to Expand_N_Case_Expression
2226         * par-ch4.adb Add calls to P_Case_Expression at appropriate points
2227         (P_Case_Expression): New procedure
2228         (P_Case_Expression_Alternative): New procedure
2229         * par.adb (P_Case_Expression): New procedure
2230         * par_sco.adb (Process_Decisions): Add dummy place holder entry for
2231         N_Case_Expression.
2232         * sem.adb (Analyze): Add call to Analyze_Case_Expression
2233         * sem_case.ads (Analyze_Choices): Also used for case expressions now,
2234         this is a documentation change only.
2235         * sem_ch4.ads, sem_ch4.adb (Analyze_Case_Expression): New procedure.
2236         * sem_ch6.adb (Fully_Conformant_Expressions): Add handling of case
2237         expressions.
2238         * sem_eval.ads, sem_eval.adb (Eval_Case_Expression): New procedure.
2239         * sem_res.adb (Resolve_Case_Expression): New procedure.
2240         * sem_scil.adb (Find_SCIL_Node): Add processing for
2241         N_Case_Expression_Alternative.
2242         * sinfo.ads, sinfo.adb (N_Case_Expression): New node.
2243         (N_Case_Expression_Alternative): New node.
2244         * sprint.adb (Sprint_Node_Actual): Add processing for new nodes
2245         N_Case_Expression and N_Case_Expression_Alternative.
2247 2010-06-18  Robert Dewar  <dewar@adacore.com>
2249         * par-ch7.adb, sem_warn.adb, types.ads, par-ch3.adb: Minor reformatting.
2250         * gnat1drv.adb: Fix typo.
2252 2010-06-18  Robert Dewar  <dewar@adacore.com>
2254         * par-prag.adb (Prag, case Style_Checks): All_Checks sets gnat style
2255         for -gnatg.
2256         * sem_prag.adb (Analyze_Pragma, case Style_Checks): All_Checks sets
2257         gnat style for -gnatg.
2258         * gnat_rm.texi: Add documentation for ALL_CHECKS in GNAT mode.
2260 2010-06-18  Thomas Quinot  <quinot@adacore.com>
2262         * sem_eval.adb (Test_In_Range): New subprogram, factoring duplicated
2263         code between...
2264         (Is_In_Range, Is_Out_Of_Range): Reimplement in terms of call to
2265         Test_In_Range.
2267 2010-06-18  Robert Dewar  <dewar@adacore.com>
2269         * sprint.adb: Minor change in output format for expression wi actions.
2270         * par-ch3.adb: Minor code reorganization.  Minor reformatting.
2271         * sem_ch5.adb: Minor comment fix.
2273 2010-06-18  Robert Dewar  <dewar@adacore.com>
2275         * debug.adb: New debug flag -gnatd.L to control
2276         Back_End_Handles_Limited_Types.
2277         * exp_ch4.adb (Expand_N_Conditional_Expression): Let back end handle
2278         limited case if Back_End_Handles_Limited_Types is True.
2279         (Expand_N_Conditional_Expression): Use N_Expression_With_Actions to
2280         simplify expansion if Use_Expression_With_Actions is True.
2281         * gnat1drv.adb (Adjust_Global_Switches): Set
2282         Back_End_Handles_Limited_Types.
2283         * opt.ads (Back_End_Handles_Limited_Types): New flag.
2285 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
2287         * sem_res.adb (Rewrite_Operator_As_Call): Do not rewrite user-defined
2288         intrinsic operator if expansion is not enabled, because in an
2289         instantiation the original operator must be present to verify the
2290         legality of the operation.
2292 2010-06-18  Robert Dewar  <dewar@adacore.com>
2294         * exp_disp.adb, sem_ch12.adb: Minor reformatting
2296 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
2298         * exp_util.adb (Make_Subtype_From_Expr): If the unconstrained type is
2299         the class-wide type for a private extension, and the completion is a
2300         subtype, set the type of the class-wide type to the base type of the
2301         full view.
2303 2010-06-18  Robert Dewar  <dewar@adacore.com>
2305         * g-socket.ads, sem_aggr.adb, einfo.ads, sem_elim.adb,
2306         sem_intr.adb, sem_eval.adb: Minor reformatting
2308 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
2310         * sem_type.adb (Is_Ancestor): If either type is private, examine full
2311         view.
2313 2010-06-18  Thomas Quinot  <quinot@adacore.com>
2315         * g-socket.adb, g-socket.ads (Check_Selector): Make Selector an IN
2316         parameter rather than IN OUT.
2318 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
2320         * exp_ch6.adb: Add extra guard.
2322 2010-06-18  Gary Dismukes  <dismukes@adacore.com>
2324         * sem_util.adb (Object_Access_Level): For Ada 2005, determine the
2325         accessibility level of a function call from the level of the innermost
2326         enclosing dynamic scope.
2327         (Innermost_Master_Scope_Depth): New function to find the depth of the
2328         nearest dynamic scope enclosing a node.
2330 2010-06-18  Tristan Gingold  <gingold@adacore.com>
2332         * adaint.c: Make ATTR_UNSET static as it is not used outside this file.
2334 2010-06-18  Thomas Quinot  <quinot@adacore.com>
2336         * g-socket.ads: Minor reformatting.
2338 2010-06-18  Vincent Celier  <celier@adacore.com>
2340         * make.adb (Must_Compile): New Boolean global variable
2341         (Main_On_Command_Line): New Boolean global variable
2342         (Collect_Arguments_And_Compile): Do compile if Must_Compile is True,
2343         even when the project is externally built.
2344         (Start_Compile_If_Possible): Compile in -aL directories if
2345         Check_Readonly_Files is True. Do compile if Must_Compile is True, even
2346         when the project is externally built.
2347         (Gnatmake): Set Must_Compile and Check_Readonly_Files to True when
2348         invoked with -f -u and one or several mains on the command line.
2349         (Scan_Make_Arg): Set Main_On_Command_Line to True when at least one main
2350         is specified on the command line.
2352 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
2354         * sem_ch6.adb (Build_Body_For_Inline): Handle extended_return_statements
2355         * exp_ch6.adb (Expand_Inlined_Call): when possible, inline a body
2356         containing extented_return statements.
2357         * exp_util.adb (Make_CW_Equivalent_Type): If the root type is already
2358         constrained, do not build subtype declaration.
2360 2010-06-18  Robert Dewar  <dewar@adacore.com>
2362         * sem_res.adb (Analyze_Indexed_Component, Analyze_Selected_Component):
2363         Warn on assigning to packed atomic component.
2365 2010-06-18  Robert Dewar  <dewar@adacore.com>
2367         * sem_util.ads: Minor reformatting
2368         * einfo.ads, einfo.adb: Minor doc clarification (scope of decls in
2369         Expression_With_Actions).
2370         * snames.ads-tmpl: Minor comment fix
2372 2010-06-18  Robert Dewar  <dewar@adacore.com>
2374         * sem_prag.adb (Diagnose_Multiple_Pragmas): New procedure
2375         (Set_Imported): Use Import_Interface_Present to control message output
2376         * sinfo.ads, sinfo.adb (Import_Interface_Present): New flag
2377         * gnat_rm.texi: Document that we can have pragma Import and pragma
2378         Interface for the same subprogram.
2380 2010-06-18  Robert Dewar  <dewar@adacore.com>
2382         * lib-xref.adb (Generate_Reference): Fix bad reference to
2383         Has_Pragma_Unreferenced (clients should always use Has_Unreferenced).
2385 2010-06-17  Eric Botcazou  <ebotcazou@adacore.com>
2387         * gcc-interface/trans.c (set_gnu_expr_location_from_node): New static
2388         function.
2389         (gnat_to_gnu) <N_Expression_With_Actions>: New case.
2390         Use set_gnu_expr_location_from_node to set location information on the
2391         result.
2393 2010-06-17  Arnaud Charlet  <charlet@adacore.com>
2395         * gcc-interface/Make-lang.in: Update dependencies.
2397 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
2399         * sem_util.adb (Is_Atomic_Object): Predicate does not apply to
2400         subprograms.
2402 2010-06-17  Robert Dewar  <dewar@adacore.com>
2404         * gnat_rm.texi, gnat_ugn.texi: Clean up documentation on warning and
2405         style check messages.
2406         * sem_res.adb (Resolve_Call): Don't call
2407         Check_For_Eliminated_Subprogram if we are analyzing within a spec
2408         expression.
2410 2010-06-17  Robert Dewar  <dewar@adacore.com>
2412         * debug.adb: Add documentation for debug flags .X and .Y
2413         * exp_ch4.adb (Expand_Short_Circuit_Operator): Use
2414         Use_Expression_With_Actions.
2415         * gnat1drv.adb (Adjust_Global_Switches): Set
2416         Use_Expression_With_Actions.
2417         * opt.ads (Use_Expression_With_Actions): New switch.
2419 2010-06-17  Robert Dewar  <dewar@adacore.com>
2421         * exp_intr.adb: Minor code reorganization (use UI_Max)
2422         * sem_intr.adb: use underlying type to check legality.
2423         * einfo.adb (Known_Static_Esize): False for generic types
2424         (Known_Static_RM_Size): False for generic types
2425         * einfo.ads (Known_Static_Esize): False for generic types
2426         (Known_Static_RM_Size): False for generic types
2428 2010-06-17  Robert Dewar  <dewar@adacore.com>
2430         * exp_ch4.ads: Minor code reorganization (specs in alpha order).
2432 2010-06-17  Robert Dewar  <dewar@adacore.com>
2434         * debug.adb: New debug flag -gnatd.X to use Expression_With_Actions
2435         node when expanding short circuit form with actions present for right
2436         opnd.
2437         * exp_ch4.adb: Minor reformatting
2438         (Expand_Short_Circuit_Operator): Use new Expression_With_Actions node if
2439         right opeand has actions present, and debug flag -gnatd.X is set.
2440         * exp_util.adb (Insert_Actions): Handle case of Expression_With_Actions
2441         node.
2442         * nlists.adb (Prepend_List): New procedure
2443         (Prepend_List_To): New procedure
2444         * nlists.ads (Prepend_List): New procedure
2445         (Prepend_List_To): New procedure
2446         * sem.adb: Add processing for Expression_With_Actions
2447         * sem_ch4.adb (Analyze_Expression_With_Actions): New procedure
2448         * sem_ch4.ads (Analyze_Expression_With_Actions): New procedure
2449         * sem_res.adb: Add processing for Expression_With_Actions.
2450         * sem_scil.adb: Add processing for Expression_With_Actions
2451         * sinfo.ads, sinfo.adb (N_Expression_With_Actions): New node.
2452         * sprint.ads, sprint.adb: Add processing for Expression_With_Actions
2454 2010-06-17  Doug Rupp  <rupp@adacore.com>
2456         * sem_intr.adb (Check_Intrinsic_Operator): Check that the types
2457         involved both have underlying integer types.
2458         * exp_intr.adb (Expand_Binary_Operator) New subprogram to expand a call
2459         to an intrinsic operator when the operand types or sizes are not
2460         identical.
2461         * s-auxdec-vms_64.ads: Revert "+" "-" ops back to Address now that
2462         64/32 Address/Integer works.
2464 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
2466         * sem_ch12.adb (Mark_Context): Refine placement of Withed_Body flag, so
2467         that it marks a unit as needed by a spec only if the corresponding
2468         instantiation appears in that spec (and not in the corresponding body).
2469         * sem_elim.adb (Check_Eliminated): If we are within a subunit, the name
2470         in the pragma Eliminate has been parsed as a child unit, but the
2471         current compilation unit is in fact the parent in which the subunit is
2472         embedded.
2474 2010-06-17  Vincent Celier  <celier@adacore.com>
2476         * gnat_rm.texi: Fix typo
2478 2010-06-17  Robert Dewar  <dewar@adacore.com>
2480         * sem_util.adb: Minor reformatting
2482 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
2484         * sem.adb (Do_Withed_Unit): if the unit in the with_clause is a generic
2485         instance, the clause now denotes the instance body. Traverse the
2486         corresponding spec because there may be no other dependence that will
2487         force the traversal of its own context.
2489 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
2491         * sem_ch10.adb (Is_Ancestor_Unit): Subsidiary to
2492         Install_Limited_Context_Clauses, to determine whether a limited_with in
2493         some parent of the current unit designates some other parent, in which
2494         case the limited_with clause must not be installed.
2495         (In_Context): Refine test.
2497 2010-06-17  Gary Dismukes  <dismukes@adacore.com>
2499         * sem_util.adb (Collect_Primitive_Operations): In the of an untagged
2500         type with a dispatching equality operator that is overridden (for a
2501         tagged full type), don't include the overridden equality in the list of
2502         primitives. The overridden equality is detected by testing for an
2503         Aliased field that references the overriding equality.
2505 2010-06-17  Robert Dewar  <dewar@adacore.com>
2507         * freeze.adb: Minor reformatting.
2509 2010-06-17  Joel Brobecker  <brobecker@adacore.com brobecker>
2511         * gnat_ugn.texi: Add a section introducing gdbserver.
2513 2010-06-17  Thomas Quinot  <quinot@adacore.com>
2515         * sem_res.adb, sem_ch4.adb, s-stoele.adb, par-labl.adb: Minor
2516         reformatting.
2518 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
2520         * sem_aggr.adb (Valid_Ancestor_Type): handle properly the case of a
2521         constrained discriminated parent that is a private type.
2522         (Analyze_Record_Aggregate): when collecting inherited discriminants,
2523         handle properly an ancestor type that is a constrained private type.
2525 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
2527         * sem_util.adb (Enclosing_Subprogram): If the called subprogram is
2528         protected, use the protected_subprogram_body only if the original
2529         subprogram has not been eliminated.
2531 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
2533         * freeze.adb (Freeze_Expression): The designated type of an
2534         access_to_suprogram type can only be frozen if all types in its profile
2535         are fully defined.
2537 2010-06-17  Robert Dewar  <dewar@adacore.com>
2539         * par.adb: Minor comment fix
2540         * sem_aggr.adb, sem_ch3.adb: Minor reformatting
2542 2010-06-17  Doug Rupp  <rupp@adacore.com>
2544         * s-auxdec-vms_64.ads: Revert Integer to Long_Integer change, instead
2545         change Address to Short_Address in functions where both must be the
2546         same size for intrinsics to work.
2548 2010-06-17  Thomas Quinot  <quinot@adacore.com>
2550         * sem_ch4.adb (Analyze_Selected_Component): A selected component may
2551         not denote a (private) component of a protected object.
2553 2010-06-17  Bob Duff  <duff@adacore.com>
2555         * par-labl.adb (Try_Loop): Test whether the label and the goto are in
2556         the same list.
2558 2010-06-17  Joel Brobecker  <brobecker@adacore.com brobecker>
2560         * gnat_ugn.texi: Update the documentation about GDB re: exception
2561         catchpoints.
2563 2010-06-17  Arnaud Charlet  <charlet@adacore.com>
2565         * gnatvsn.ads: Bump to 4.6 version.
2567 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
2569         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): The
2570         designated type of the generated pointer is the type of the original
2571         expression, not that of the function call itself, because the return
2572         type may be an untagged  derived type and the function may be an
2573         inherited operation.
2575 2010-06-17  Robert Dewar  <dewar@adacore.com>
2577         * exp_ch4.adb: Minor reformatting.
2579 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
2581         * sinfo.ads, sinfo.adb (Inherited_Discriminant): New flag on
2582         N_Component_Association nodes, to indicate that a component association
2583         of an extension aggregate denotes the value of a discriminant of an
2584         ancestor type that has been constrained by the derivation.
2585         * sem_aggr.adb (Discr_Present): use Inherited_Discriminant to prevent a
2586         double expansion of the aggregate appearing in a context that delays
2587         expansion, to prevent double insertion of discriminant values when the
2588         aggregate is reanalyzed.
2590 2010-06-17  Arnaud Charlet  <charlet@adacore.com>
2592         * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Do not use
2593         Allocator as the Related_Node of Return_Obj_Access in call to
2594         Make_Temporary below as this would create a sort of infinite
2595         "recursion".
2597 2010-06-17  Ben Brosgol  <brosgol@adacore.com>
2599         * gnat_ugn.texi: Update gnatcheck doc.
2601 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
2603         * sem_ch3.adb (Build_Incomplete_Type_Declaration): If there is an
2604         incomplete view of the type that is not tagged, and the full type is a
2605         tagged extension, create class_wide type now, and warn that the
2606         incomplete view should be tagged as well.
2608 2010-06-17  Vincent Celier  <celier@adacore.com>
2610         * gnatcmd.adb (Non_VMS_Usage): Do not issue usage for gnat sync.
2611         Update the last line of the usage, indicating what commands do not
2612         accept project file switches.
2613         * vms_conv.adb: Do not issue usage line for GNAT SYNC
2614         * vms_data.ads: Fix errors in the qualifiers /LOGFILE and /MAIN of
2615         GNAT ELIM.
2616         * gnat_ugn.texi: Document the relaxed rules for library directories in
2617         externally built library projects.
2619 2010-06-17  Doug Rupp  <rupp@adacore.com>
2621         * s-auxdec-vms_64.ads: Make boolean and arithmetic operations intrinsic
2622         where possible.
2623         * s-auxdec-vms-alpha.adb: Remove kludges for aforemention.
2624         * gcc-interface/Makefile.in: Update VMS target pairs.
2626 2010-06-17  Vasiliy Fofanov  <fofanov@adacore.com>
2628         * adaint.c: Reorganized in order to avoid use of GetProcessId to stay
2629         compatible with Windows NT 4.0 which doesn't provide this function.
2631 2010-06-17  Vincent Celier  <celier@adacore.com>
2633         * ali-util.adb (Time_Stamp_Mismatch): In Verbose mode, if there is
2634         different timestamps but the checksum is the same, issue a short
2635         message saying so.
2637 2010-06-17  Arnaud Charlet  <charlet@adacore.com>
2639         * s-interr.adb (Finalize): If the Abort_Task signal is set to system,
2640         it means that we cannot reset interrupt handlers since this would
2641         require potentially sending the abort signal to the Server_Task.
2643 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
2645         * exp_ch4.adb: expand NOT for VMS types.
2646         * sem_util.adb: Use OpenVMS_On_Target for IS_VMS_Operator.
2648 2010-06-17  Sergey Rybin  <rybin@adacore.com>
2650         * vms_data.ads: Add qualifier for '--no-elim-dispatch' gnatelim option.
2651         * gnat_ugn.texi (gnatelim): add description for --no-elim-dispatch
2652         option.
2654 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
2656         * exp_ch6.adb (Expand_Call): Do not expand a call to an internal
2657         protected operation if the subprogram has been eliminated.
2659 2010-06-17  Vincent Celier  <celier@adacore.com>
2661         * prj-nmsc.adb (Check_Library_Attributes): Allow the different
2662         directories associated with a library to be any directory when the
2663         library project is externally built.
2665 2010-06-17  Vincent Celier  <celier@adacore.com>
2667         * make.adb (Check): If switch -m is used, deallocate the memory that
2668         may be allocated when computing the checksum.
2670 2010-06-17  Eric Botcazou  <ebotcazou@adacore.com>
2672         * g-socthi-mingw.adb (C_Recvmsg): Add 'use type' clause for C.size_t;
2673         (C_Sendmsg): Likewise.
2675 2010-06-17  Thomas Quinot  <quinot@adacore.com>
2677         * sem_res.adb: Update comments.
2679 2010-06-17  Vincent Celier  <celier@adacore.com>
2681         * back_end.adb (Scan_Compiler_Arguments): Process last argument
2683 2010-06-17  Robert Dewar  <dewar@adacore.com>
2685         * exp_ch3.adb, exp_ch6.adb, exp_smem.adb, exp_util.adb: Use Ekind_In.
2686         * layout.adb, freeze.adb: Use Make_Temporary.
2688 2010-06-17  Jerome Lambourg  <lambourg@adacore.com>
2690         * exp_ch11.adb (Expand_N_Raise_Statement): Expand raise statements in
2691         .NET/JVM normally as this is now perfectly supported by the backend.
2693 2010-06-17  Pascal Obry  <obry@adacore.com>
2695         * gnat_rm.texi: Fix minor typo, remove duplicate blank lines.
2697 2010-06-17  Vincent Celier  <celier@adacore.com>
2699         * make.adb (Collect_Arguments_And_Compile): Create include path file
2700         only when -x is specified.
2701         (Gnatmake): Ditto
2702         * opt.ads (Use_Include_Path_File): New Boolean flag, initialized to
2703         False.
2704         * prj-env.adb (Set_Ada_Paths): New Boolean parameters Include_Path and
2705         Objects_Path, defaulted to True. Only create include path file if
2706         Include_Path is True, only create objects path file if Objects_Path is
2707         True.
2708         * prj-env.ads (Set_Ada_Paths): New Boolean parameters Include_Path and
2709         Objects_Path, defaulted to True.
2710         * switch-m.adb (Scan_Make_Switches): Set Use_Include_Path_File to True
2711         when -x is used.
2713 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
2715         * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
2716         determine whether it has the controlling type, when the formal is an
2717         access parameter.
2719 2010-06-17  Eric Botcazou  <ebotcazou@adacore.com>
2721         * s-crtl.ads (ssize_t): New type.
2722         (read): Fix signature.
2723         (write): Likewise.
2724         * g-socthi.ads: Add 'with System.CRTL' clause.  Remove ssize_t and
2725         'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
2726         (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
2727         (C_Sendmsg): Likewise.
2728         * g-socthi.adb (Syscall_Recvmsg): Likewise.
2729         (Syscall_Sendmsg): Likewise.
2730         (C_Recvmsg): Likewise.
2731         (C_Sendmsg): Likewise.
2732         * g-socthi-mingw.ads: Add 'with System.CRTL' clause.  Remove ssize_t
2733         and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
2734         (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
2735         (C_Sendmsg): Likewise.
2736         * g-socthi-mingw.adb (C_Recvmsg): Likewise.
2737         (C_Sendmsg): Likewise.
2738         * g-socthi-vms.ads: Add 'with System.CRTL' clause.  Remove ssize_t and
2739         'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
2740         (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
2741         (C_Sendmsg): Likewise.
2742         * g-socthi-vms.adb (C_Recvmsg): Likewise.
2743         (C_Sendmsg): Likewise.
2744         * g-socthi-vxworks.ads Add 'with System.CRTL' clause.  Remove ssize_t
2745         and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
2746         (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
2747         (C_Sendmsg): Likewise.
2748         * g-socthi-vxworks.adb (C_Recvmsg): Likewise.
2749         (C_Sendmsg): Likewise.
2750         * g-sercom-linux.adb (Read): Use correct types to call 'read'.
2751         (Write): Likewise to call 'write'.
2752         * s-os_lib.adb (Read): Use correct type to call System.CRTL.read.
2753         (Write): Use correct type to call System.CRTL.write.
2754         * s-tasdeb.adb (Write): Likewise.
2756 2010-06-17  Vincent Celier  <celier@adacore.com>
2758         * prj-proc.adb (Copy_Package_Declarations): Change argument name
2759         Naming_Restricted to Restricted. If Restricted is True, do not copy the
2760         value of attribute Linker_Options.
2762 2010-06-17  Eric Botcazou  <ebotcazou@adacore.com>
2764         * gcc-interface/trans.c (push_stack, pop_stack): Delete.
2765         (Case_Statement_to_gnu): Adjust.
2766         (Loop_Statement_to_gnu): Likewise.
2767         (Subprogram_Body_to_gnu): Likewise.
2768         (Handled_Sequence_Of_Statements_to_gnu): Likewise.
2769         (Compilation_Unit_to_gnu): Likewise.
2771 2010-06-17  Robert Dewar  <dewar@adacore.com>
2773         * exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb, exp_prag.adb,
2774         exp_sel.adb, exp_util.adb, sem_ch10.adb, sem_ch12.adb, sem_ch13.adb,
2775         sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb, sem_ch9.adb,
2776         sem_dist.adb, sem_util.adb: Use Make_Temporary
2777         * itypes.ads, tbuild.ads: Minor comment update
2778         * exp_ch9.adb, exp_dist.adb: Minor reformatting
2780 2010-06-17  Thomas Quinot  <quinot@adacore.com>
2782         * exp_imgv.adb, exp_ch7.ads: Minor reformatting.
2784 2010-06-17  Robert Dewar  <dewar@adacore.com>
2786         * exp_ch9.adb, exp_disp.adb, exp_dist.adb: Use Make_Temporary.
2788 2010-06-17  Thomas Quinot  <quinot@adacore.com>
2790         * sprint.adb (pg): Set Dump_Freeze_Null, to be consistent with -gnatdg.
2792 2010-06-17  Robert Dewar  <dewar@adacore.com>
2794         * exp_ch6.adb, exp_ch7.adb, exp_ch5.adb: Use Make_Temporary
2795         * tbuild.ads (Make_Temporary): More comment updates
2796         * tbuild.adb: Minor reformatting
2798 2010-06-17  Robert Dewar  <dewar@adacore.com>
2800         * checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch11.adb,
2801         exp_ch3.adb, exp_ch4.adb: Minor code reorganization.
2802         Use Make_Temporary.
2803         * tbuild.ads, tbuild.adb (Make_Temporary): Clean up, use Entity_Id
2804         instead of Node_Id.
2805         (Make_Temporary): Add more extensive documentation
2807 2010-06-17  Robert Dewar  <dewar@adacore.com>
2809         * sem_intr.adb, sem_prag.adb, sem_res.adb, sem_type.adb, sem_util.adb,
2810         sem_warn.adb, sem_eval.adb: Minor reformatting.  Use Ekind_In.
2811         (Set_Slice_Subtype): Explicitly freeze the slice's itype at the point
2812         where the slice's actions are inserted.
2813         (Decompose_Expr): Account for possible rewriting of slice bounds
2814         resulting from side effects suppression caused by the above freezing,
2815         so that folding of bounds is preserved by such rewriting.
2817 2010-06-17  Robert Dewar  <dewar@adacore.com>
2819         * einfo.ads, einfo.adb (Get_Record_Representation_Clause): New function.
2820         * freeze.adb (Freeze_Record_Type): Add call to
2821         Check_Record_Representation_Clause.
2822         * sem_ch13.adb (Check_Record_Representation_Clause): New function
2823         (Analyze_Record_Representation_Clause): Split out overlap code into this
2824         new function.
2825         (Check_Component_Overlap): Moved inside
2826         Check_Record_Representation_Clause.
2827         * sem_ch13.ads (Check_Record_Representation_Clause): New function.
2829 2010-06-17  Robert Dewar  <dewar@adacore.com>
2831         * back_end.adb, sem_res.adb, switch-c.adb, sem_scil.adb: Minor
2832         reformatting.
2833         * sem_attr.adb, sem_cat.adb, sem_disp.adb, sem_elab.adb, sem_elim.adb,
2834         sem_eval.adb: Use Ekind_In
2836 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
2838         * sem_ch8.adb: better error message for illegal inherited discriminant
2840 2010-06-17  Vincent Celier  <celier@adacore.com>
2842         * bindusg.adb: Remove lines for -A and -C
2843         * gnat_ugn.texi: Remove all documentation and examples of switches -A
2844         and -C for gnatbind and gnatlink.
2845         * gnatlink.adb (Usage): Remove lines for -A and -C
2846         * switch-b.adb (Scan_Binder_Switches): Issue warning when switch -C is
2847         specified.
2848         * gcc-interface/Make-lang.in: Update dependencies.
2850 2010-06-17  Vincent Celier  <celier@adacore.com>
2852         * back_end.adb (Scan_Compiler_Arguments): Put all arguments in new
2853         local Argument_List variable Args.
2854         * switch-c.adb (Scan_Front_End_Switches): New Argument_List argument
2855         Args.
2856         (Switch_Subsequently_Cancelled): New Argument_List argument Args. Look
2857         for subsequent switches in Args.
2858         * switch-c.ads (Scan_Front_End_Switches): New Argument_List argument
2859         Args.
2860         * gcc-interface/Make-lang.in: Update dependencies.
2862 2010-06-17  Robert Dewar  <dewar@adacore.com>
2864         * einfo.adb: Minor code fix, allow E_Class_Wide_Type for
2865         Equivalent_Type to match documentation.
2867 2010-06-17  Robert Dewar  <dewar@adacore.com>
2869         * sem_ch6.adb, sem_ch7.adb: Minor reformatting.
2870         * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_ch10.adb, sem_ch12.adb,
2871         sem_ch4.adb, sem_ch8.adb, sem_ch13.adb: Make use of Ekind_In.
2873 2010-06-17  Thomas Quinot  <quinot@adacore.com>
2875         * sem_res.adb (Set_Slice_Subtype): Always freeze the slice's itype.
2877 2010-06-17  Thomas Quinot  <quinot@adacore.com>
2879         * freeze.adb (Freeze_Expression): Short circuit operators are valid
2880         freeze node insertion points.
2882 2010-06-17  Robert Dewar  <dewar@adacore.com>
2884         * switch-c.ads, switch-c.adb, sem_ch13.adb: Minor reformatting.
2885         * sem_ch12.adb: Add pragmas Assert and Check to previous change.
2887 2010-06-17  Gary Dismukes  <dismukes@adacore.com>
2889         * layout.adb (Layout_Type): Broaden test for setting an array type's
2890         Component_Size to include all scalar types, not just discrete types
2891         (components of real types were missed).
2892         * sem_ch3.adb (Constrain_Index): Add missing setting of First_Literal
2893         on the itype created for an index (consistent with Make_Index and
2894         avoids possible Assert_Failures).
2896 2010-06-17  Robert Dewar  <dewar@adacore.com>
2898         * atree.ads, atree.adb: Add 6-parameter version of Ekind_In
2899         * einfo.adb: Minor code reformatting (use Ekind_In)
2901 2010-06-17  Robert Dewar  <dewar@adacore.com>
2903         * sem_warn.adb (Test_Ref): Abandon scan if access subprogram parameter
2904         found.
2906 2010-06-17  Vincent Celier  <celier@adacore.com>
2908         * back_end.adb: Minor comment updates
2909         * switch-c.adb: Remove dependencies on gcc C sources
2910         * gcc-interface/Make-lang.in: Add a-comlin.o to the object file list
2911         for the compiler.
2913 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
2915         * sem_ch12.adb: propagate Pragma_Enabled flag to generic.
2916         * get_scos.adb: Set C2 flag in decision entry of pragma to 'e' (enabled)
2917         * par_sco.ads, par_sco.adb (Set_SCO_Pragma_Enabled): New procedure
2918         Remove use of Node field in SCOs table
2919         (Output_Header): Set 'd' to initially disable pragma entry
2920         * put_scos.adb (Put_SCOs): New flag indicating if pragma is enabled
2921         * scos.ads, scos.adb: Remove Node field from internal SCOs table.
2922         Use C2 field of pragma decision header to indicate enabled.
2923         * sem_prag.adb: Add calls to Set_SCO_Pragma_Enabled.
2924         * gcc-interface/Make-lang.in: Update dependencies.
2926 2010-06-17  Vincent Celier  <celier@adacore.com>
2928         * back_end.adb (Next_Arg): Moved to procedure Scan_Compiler_Arguments
2929         (Scan_Compiler_Arguments): Call Scan_Front_End_Switches with Next_Arg
2930         (Switch_Subsequently_Cancelled): Function moved to the body of Switch.C
2931         * back_end.ads (Scan_Front_End_Switches): Function moved to the body of
2932         Switch.C.
2933         * switch-c.adb: Copied a number of global declarations from back_end.adb
2934         (Len_Arg): New function copied from back_end.adb
2935         (Switch_Subsequently_Cancelled): New function moved from back_end.adb
2936         (Scan_Front_End_Switches): New parameter Arg_Rank used to call
2937         Switch_Subsequently_Cancelled.
2938         * switch-c.ads (Scan_Front_End_Switches): New parameter Arg_Rank.
2939         * gcc-interface/Makefile.in: Add line so that shared libgnat is linked
2940         with -lexc on Tru64.
2942 2010-06-17  Robert Dewar  <dewar@adacore.com>
2944         * prj.ads, prj.adb: Minor reformatting
2946 2010-06-17  Thomas Quinot  <quinot@adacore.com>
2948         * put_scos.adb: Do not generate a blank line in SCOs when omitting the
2949         CP line for a disabled pragma.
2951 2010-06-17  Emmanuel Briot  <briot@adacore.com>
2953         * prj-proc.adb, prj.adb, prj.ads (Check_Or_Set_Typed_Variable): New
2954         subprogram.
2955         (Process_Declarative_Item): An invalid value in an typed variable
2956         declaration is no longer always fatal.
2958 2010-06-16  Arnaud Charlet  <charlet@adacore.com>
2960         * get_scos.adb, par_sco.adb, par_sco.ads, put_scos.adb, scos.adb,
2961         scos.ads, exp_ch4.adb, sem_warn.adb: Code clean up, update
2962         documentation.
2964 2010-06-16  Javier Miranda  <miranda@adacore.com>
2966         * exp_disp.adb (Expand_Dispatching_Call): Adjust the decoration of the
2967         node referenced by the SCIL node of dispatching "=" to skip the tags
2968         comparison.
2970 2010-06-16  Ed Schonberg  <schonberg@adacore.com>
2972         * sem_ch5.adb (Analyze_Exit_Statement): Return if no enclosing loop,
2973         to prevent cascaded errors and compilation aborts.
2975 2010-06-16  Robert Dewar  <dewar@adacore.com>
2977         * back_end.adb (Switch_Subsequently_Cancelled): New function
2978         Move declarations to package body level to support this change
2979         * back_end.ads (Switch_Subsequently_Cancelled): New function
2980         * gnat_ugn.texi: Document -gnat-p switch
2981         * switch-c.adb (Scan_Front_End_Switches): Implement -gnat-p switch
2982         * ug_words: Add entry for -gnat-p (UNSUPPRESS_ALL)
2983         * usage.adb: Add line for -gnat-p switch
2984         * vms_data.ads: Add entry for UNSUPPRESS_ALL (-gnat-p)
2986 2010-06-16  Robert Dewar  <dewar@adacore.com>
2988         * sem_warn.adb (Check_Infinite_Loop_Warning): Declaration counts as
2989         modification.
2991 2010-06-16  Robert Dewar  <dewar@adacore.com>
2993         * exp_disp.adb: Minor reformatting
2995 2010-06-16  Ed Schonberg  <schonberg@adacore.com>
2997         * sem_ch3.adb (Complete_Private_Subtype): Inherit class_wide type from
2998         base type only if it was not previously created for the partial view.
3000 2010-06-16  Thomas Quinot  <quinot@adacore.com>
3002         * tbuild.ads: Minor comment fix
3004 2010-06-15  Nathan Froyd  <froydnj@codesourcery.com>
3006         * gcc-interface/trans.c (gnu_stack_free_list): Delete.
3007         (gnu_except_ptr_stack): Change type to VEC.  Update comment.
3008         (gnu_elab_proc_stack): Likewise.
3009         (gnu_return_label_stack): Likewise.
3010         (gnu_loop_label_stack): Likewise.
3011         (gnu_switch_label_stack): Likewise.
3012         (gnu_constraint_label_stack): Likewise.
3013         (gnu_storage_error_label_stack): Likewise.
3014         (gnu_program_error_label_stack): Likewise.
3015         (push_exception_label_stack): Take a VEC ** instead of a tree *.
3016         (push_stack): Likewise.  Remove unused second parameter.  Update
3017         callers.
3018         (pop_stack): Take a VEC * instead of a tree *.  Update callers.
3019         (gigi): Initialize stacks as VECs.
3020         (Identifier_to_gnu): Use VEC_last instead of TREE_VALUE.
3021         (Case_Statement_to_gnu): Likewise.
3022         (Subprogram_Body_to_gnu): Likewise.
3023         (call_to_gnu): Likewise.
3024         (Exception_Handler_to_gnu_sjlj): Likewise.
3025         (gnat_to_gnu): Likewise.
3026         (get_exception_label): Likewise.
3028 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
3030         * sem_ch3.adb (Build_Derived_Record_Type): if derived type is an
3031         anonymous base generated when the parent is a constrained discriminated
3032         type, propagate interface list to first subtype because it may appear
3033         in a current instance within the extension part of the derived type
3034         declaration, and its own subtype declaration has not been elaborated
3035         yet.
3036         * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
3037         determine whether it has the controlling type.
3039 2010-06-14  Jerome Lambourg  <lambourg@adacore.com>
3041         * exp_ch11.adb (Expand_N_Raise_Statement): Make sure that the explicit
3042         raise of CE, SE and PE have the reason correctly set and are properly
3043         expanded before stopping the expansions of .NET/JVM exceptions.
3045 2010-06-14  Robert Dewar  <dewar@adacore.com>
3047         * opt.ads (Check_Policy_List): Add some clarifying comments
3048         * sem_prag.adb (Analyze_Pragma, case Check): Set Pragma_Enabled flag
3049         on rewritten Assert pragma.
3051 2010-06-14  Gary Dismukes  <dismukes@adacore.com>
3053         * sem_ch6.adb (Check_Overriding_Indicator): Add a special check for
3054         controlled operations, so that they will be treated as overriding even
3055         if the overridden subprogram is marked Is_Hidden, as long as the
3056         overridden subprogram's parent subprogram is not hidden.
3058 2010-06-14  Robert Dewar  <dewar@adacore.com>
3060         * debug.adb: Entry for gnatw.d no longer specific for while loops
3061         * einfo.adb (First_Exit_Statement): New attribute for E_Loop
3062         * einfo.ads (First_Exit_Statement): New attribute for E_Loop
3063         * sem_ch5.adb (Analyze_Loop_Statement): Check_Infinite_Loop_Warning has
3064         new calling sequence to include test for EXIT WHEN.
3065         (Analyze_Exit_Statement): Chain EXIT statement into exit statement chain
3066         * sem_warn.ads, sem_warn.adb (Check_Infinite_Loop_Warning): Now handles
3067         EXIT WHEN case.
3068         * sinfo.adb (Next_Exit_Statement): New attribute of N_Exit_Statement
3069         node.
3070         * sinfo.ads (N_Pragma): Correct comment on Sloc field (points to
3071         PRAGMA, not to pragma identifier).
3072         (Next_Exit_Statement): New attribute of N_Exit_Statement node
3074 2010-06-14  Robert Dewar  <dewar@adacore.com>
3076         * sem_res.adb (Resolve_Short_Circuit): Fix sloc of "assertion/check
3077         would fail" msg.
3079 2010-06-14  Robert Dewar  <dewar@adacore.com>
3081         * par-ch2.adb (Scan_Pragma_Argument_Association): Clarify message for
3082         missing pragma argument identifier.
3084 2010-06-14  Robert Dewar  <dewar@adacore.com>
3086         * atree.ads, atree.adb (Ekind_In): New functions.
3088 2010-06-14  Robert Dewar  <dewar@adacore.com>
3090         * exp_ch4.adb (Expand_N_Op_Expon): Optimize 2**N in stand alone context
3092 2010-06-14  Robert Dewar  <dewar@adacore.com>
3094         * usage.adb (Usage): Redo documentation of -gnatwa.
3096 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
3098         * sem_ch8.adb (Find_Type): The attribute 'class cannot be applied to
3099         an untagged incomplete type that is a limited view.
3101 2010-06-14  Sergey Rybin  <rybin@adacore.com>
3103         * gnat_ugn.texi: Add description of '-cargs gcc_switches' to gnatstub
3104         and gnatppa.
3106 2010-06-14  Thomas Quinot  <quinot@adacore.com>
3108         * exp_ch4.adb (Expand_Short_Circuit_Operator): New subprogram,
3109         factoring duplicated code between...
3110         (Expand_N_And_Than, Expand_N_Or_Else): Remove duplicated code.
3111         * a-envvar.ads: Minor reformatting
3113 2010-06-14  Arnaud Charlet  <charlet@adacore.com>
3115         * ali.adb, ali.ads, lib-xref.ads: Document new '+' letter for C/C++
3116         static entities.
3117         (Scan_ALI): Take into account new Visibility field.
3118         (Visibility_Kind): New type.
3119         (Xref_Entity_Record): Replace Lib field by Visibility.
3121         * gcc-interface/Make-lang.in: Update dependencies.
3123 2010-06-14  Pascal Obry  <obry@adacore.com>
3125         * raise.h: Remove unused defintions.
3127 2010-06-14  Bob Duff  <duff@adacore.com>
3129         * par-ch10.adb (P_Subunit): If the next token after "separate(X)" is
3130         Tok_Not or Tok_Overriding, call P_Subprogram. We had previously given
3131         the incorrect error "proper body expected".
3132         * par-ch6.adb (P_Subprogram): Suppress "overriding indicator not
3133         allowed here" error in case of subunits, which was triggered by the
3134         above change to P_Subunit.
3136 2010-06-14  Sergey Rybin  <rybin@adacore.com>
3138         * gnat_ugn.texi, vms_data.ads: Update gnatelim doc.
3140 2010-06-14  Thomas Quinot  <quinot@adacore.com>
3142         * lib-util.adb: Minor code reorganization.
3144 2010-06-14  Robert Dewar  <dewar@adacore.com>
3146         * ali.adb (Scan_ALI): Implement reading and storing of N lines
3147         (Known_ALI_Lines): Add entry for 'N' (notes)
3148         * ali.ads (Notes): New table to store Notes information
3149         * alloc.ads: Add entries for Notes table
3150         * lib-util.adb (Write_Info_Int): New procedure
3151         (Write_Info_Slit): New procedure
3152         (Write_Info_Uint): New procedure
3153         * lib-util.ads (Write_Info_Int): New procedure
3154         (Write_Info_Slit): New procedure
3155         (Write_Info_Uint): New procedure
3156         * lib-writ.adb (Write_Unit_Information): Output N (notes) lines
3157         * lib-writ.ads: Update documentation for N (Notes) lines
3158         * lib.adb (Store_Note): New procedure
3159         * lib.ads (Notes): New table
3160         (Store_Note): New procedure
3161         * sem_prag.adb: Call Store_Note for affected pragmas
3163 2010-06-14  Thomas Quinot  <quinot@adacore.com>
3165         * socket.c: Fix wrong condition in #ifdef
3166         * g-socket.adb, g-sothco.ads: Functions imported from socket.c that
3167         take or return char* values can't use Interfaces.C.Strings.chars_ptr,
3168         because on VMS this type is a 32-bit pointer which is not compatible
3169         with the default for C pointers for code compiled with gcc on that
3170         platform.
3172 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
3174         * sem_util (Is_VMS_Operator): New predicate to determine whether an
3175         operator is an intrinsic operator declared in the DEC system extension.
3176         * sem_res.adb (Resolve_Logical_Op): operation is legal on signed types
3177         if the operator is a VMS intrinsic.
3178         * sem_eval.adb (Eval_Logical_Op): Operation is legal and be
3179         constant-folded if the operands are signed and the operator is a VMS
3180         intrinsic.
3182 2010-06-14  Robert Dewar  <dewar@adacore.com>
3184         * g-socket.adb, gnatcmd.adb: Minor reformatting.
3186 2010-06-14  Pascal Obry  <obry@adacore.com>
3188         * s-finimp.adb: Fix typo.
3189         * raise.h: Remove duplicate blank line.
3191 2010-06-14  Vincent Celier  <celier@adacore.com>
3193         * prj-nmsc.adb (Add_Sources): Always set the object file and the
3194         switches file names, as the configuration of the language may change
3195         in an extending project.
3196         (Process_Naming_Scheme): For sources of projects that are extended, set
3197         the configuration of the language from the highest extending project
3198         where the language is declared.
3200 2010-06-14  Gary Dismukes  <dismukes@adacore.com>
3202         * sem_res.adb (Resolve_Call): For infinite recursion check, test
3203         whether the called subprogram is inherited from a containing subprogram.
3204         (Same_Or_Aliased_Subprograms): New function
3206 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
3208         * sem_ch8.adb (End_Use_Type): Before indicating that an operator is not
3209         use-visible, check whether it is a primitive for more than one type.
3211 2010-06-14  Robert Dewar  <dewar@adacore.com>
3213         * sem_ch3.adb (Copy_And_Swap): Copy Has_Pragma_Unmodified flag.
3215         * sem_ch7.adb (Preserve_Full_Attributes): Preserve
3216         Has_Pragma_Unmodified flag.
3218 2010-06-14  Thomas Quinot  <quinot@adacore.com>
3220         * g-sttsne-locking.adb, g-sttsne-locking.ads, g-sttsne.ads,
3221         g-sttsne-vxworks.adb, g-sttsne-dummy.ads: Removed. Mutual exclusion is
3222         now done in GNAT.Sockets if necessary.
3223         * gsocket.h, g-socket.adb, g-sothco.ads (GNAT.Sockets.Get_XXX_By_YYY):
3224         Ensure mutual exclusion for netdb operations if the target platform
3225         requires it.
3226         (GNAT.Sockets.Thin_Common): New binding for getXXXbyYYY, treating struct
3227         hostent as an opaque type to improve portability.
3228         * s-oscons-tmplt.c, socket.c: For the case of Vxworks, emulate
3229         gethostbyYYY using proprietary VxWorks API so that a uniform interface
3230         is available for the Ada side.
3231         * gcc-interface/Makefile.in: Remove g-sttsne-*
3232         * gcc-interface/Make-lang.in: Update dependencies.
3234 2010-06-14  Vincent Celier  <celier@adacore.com>
3236         * gnatcmd.adb (Mapping_File): New function.
3238 2010-06-14  Javier Miranda  <miranda@adacore.com>
3240         * sem_ch3.adb (Derive_Subprograms): Remove over-restrictive assertion.
3242 2010-06-14  Arnaud Charlet  <charlet@adacore.com>
3244         * ali.adb: Fix typo.
3245         * s-auxdec-vms-alpha.adb, scng.ads: Minor reformatting.
3247 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
3249         * sem_ch12.adb: Make Mark_Context transitive, and apply to subprogram
3250         instances.
3252         * sem_ch8.adb (Find_Expanded_Name): If a candidate compilation unit in
3253         the context does not have a homonym of the selector, emit default
3254         error message.
3256 2010-06-14  Robert Dewar  <dewar@adacore.com>
3258         * sem.adb, sem_ch12.adb, sem_util.adb: Minor reformatting and
3259         comment addition.
3261 2010-06-14  Arnaud Charlet  <charlet@adacore.com>
3263         * lib-xref.ads: Doc updates:
3264          - Allocate 'Q' for #include entity kind
3265          - Free 'Z'
3266          - Allocate 'g' for regular macros
3267          - Allocate 'G' for function-like macros
3269 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
3271         * sinfo.ads, sinfo.adb (Withed_Body): New attribute of a with_clause.
3272         Indicates that there is an instantiation in the current unit that
3273         loaded the body of the unit denoted by the with_clause.
3274         * sem_ch12.adb (Mark_Context): When instanting a generic body, check
3275         whether a with_clause in the current context denotes the unit that
3276         holds the generic declaration, and mark the with_clause accordingly.
3277         (Instantiate_Package_Body): call Mark_Context.
3278         * sem.adb (Process_Bodies_In_Context): Use Withed_Body to determine
3279         whether a given body should be traversed before the spec of the main
3280         unit.
3282 2010-06-14  Ed Falis  <falis@adacore.com>
3284         * sysdep.c: Fix 653 build against vThreads headers.
3286 2010-06-14  Robert Dewar  <dewar@adacore.com>
3288         * sinfo.ads: Minor reformatting.
3290 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
3292         * sem_ch6.adb (Analyze_Subprogram_Body): Do not check conformance when
3293         the spec has been generated for a body without spec that carries an
3294         Inline_Always pragma.
3296 2010-06-14  Arnaud Charlet  <charlet@adacore.com>
3298         * lib-xref.ads: Documentation change: allocate 'Z' letter to C/C++
3299         macro.
3301 2010-06-14  Jerome Lambourg  <lambourg@adacore.com>
3303         * exp_dbug.adb (Debug_Renaming_Declaration): Do not output any debug
3304         declaration for VMs, as those are useless and might lead to duplicated
3305         local variable names in the generated code.
3306         * gcc-interface/Make-lang.in: Update dependencies.
3308 2010-06-14  Robert Dewar  <dewar@adacore.com>
3310         * opt.ads, sem.adb, sem_elab.adb: Minor reformatting
3312 2010-06-14  Robert Dewar  <dewar@adacore.com>
3314         * exp_aggr.adb (Has_Address_Clause): Moved to Exp_Util, and there it
3315         is renamed as Has_Following_Address_Clause.
3316         * exp_ch3.adb (Needs_Simple_Initialization): Add Consider_IS argument
3317         to allow the caller to avoid Initialize_Scalars having an effect.
3318         (Expand_N_Object_Declaration): Do not do Initialize_Scalars stuff for
3319         scalars with an address clause specified.
3320         * exp_ch3.ads (Needs_Simple_Initialization): Add Consider_IS argument
3321         to allow the caller to avoid Initialize_Scalars having an effect.
3322         * exp_util.adb (Has_Following_Address_Clause): Moved here from Exp_Aggr
3323         (where it was called Has_Address_Clause).
3324         * exp_util.ads (Has_Following_Address_Clause): Moved here from Exp_Aggr
3325         (where it was called Has_Address_Clause).
3326         * freeze.adb (Warn_Overlay): Suppress message about overlaying causing
3327         problems for Initialize_Scalars (since we no longer initialize objects
3328         with an address clause.
3330 2010-06-14  Robert Dewar  <dewar@adacore.com>
3332         * exp_prag.adb (Expand_Pragma_Check): Set Loc of generated code from
3333         condition.
3335 2010-06-14  Gary Dismukes  <dismukes@adacore.com>
3337         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Debug_Info_Needed
3338         on the entity of an implicitly generated postcondition procedure.
3340 2010-06-14  Thomas Quinot  <quinot@adacore.com>
3342         * sem_ch7.adb (Preserve_Full_Attributes): Propagate
3343         Discriminant_Constraint elist from full view to private view.
3345 2010-06-14  Robert Dewar  <dewar@adacore.com>
3347         * sem_res.adb: Minor reformatting.
3349 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
3351         * sem.adb: New version of unit traversal.
3353         * sem_elab.adb (Check_Internal_Call): Do not place a call appearing
3354         within a generic unit in the table of delayed calls.
3356 2010-06-14  Robert Dewar  <dewar@adacore.com>
3358         * gnatcmd.adb, sem_util.adb, exp_ch3.adb: Minor reformatting
3360 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
3362         * sem_ch12.adb (Save_References): If an identifier has been rewritten
3363         during analysis as an explicit dereference, keep the reference implicit
3364         in the generic, but preserve the entity if global. This prevents
3365         malformed generic trees in the presence of some nested generics.
3367 2010-06-14  Sergey Rybin  <rybin@adacore.com>
3369         * gnat_ugn.texi: For the GNAT driver, clarify the effect of calling the
3370         tool with '-files=' option. Also fix some small errors (wrong brackets)
3372 2010-06-14  Vincent Celier  <celier@adacore.com>
3374         * gnatbind.adb: Call Scan_ALI with Directly_Scanned set to True for all
3375         the ALI files on the command line.
3377         * ali.adb (Scan_ALI): Set component Directly_Scanned of the unit(s) to
3378         the same value as the parameter of the same name.
3379         * ali.ads (Scan_ALI): New Boolean parameter Directly_Scanned, defaulted
3380         to False.
3381         * bindgen.adb (Gen_Versions_Ada): Never emit version symbols for
3382         Stand-Alone Library interfaces. When binding Stand-Alone Libraries,
3383         emit version symbols only for the units of the library.
3384         (Gen_Versions_C): Ditto.
3386 2010-06-14  Gary Dismukes  <dismukes@adacore.com>
3388         * sem_ch4.adb: Fix typo.
3390 2010-06-14  Vasiliy Fofanov  <fofanov@adacore.com>
3392         * s-oscons-tmplt.c (IOV_MAX): redefine on Tru64 and VMS since the
3393         vector IO doesn't work at default value properly.
3395 2010-06-14  Doug Rupp  <rupp@adacore.com>
3397         * s-stoele.adb: Remove unnecessary qualification of To_Address for VMS.
3399 2010-06-14  Vincent Celier  <celier@adacore.com>
3401         * gnatcmd.adb (Check_Files): Do not invoke the tool with all the
3402         sources of the project if a switch -files= is used.
3404 2010-06-14  Thomas Quinot  <quinot@adacore.com>
3406         * exp_attr.adb: Minor reformatting.
3408 2010-06-14  Gary Dismukes  <dismukes@adacore.com>
3410         * gnat_ugn.texi: Minor typo fixes and wording changes.
3412 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
3414         * sem_ch4.adb (Analyze_One_Call): If the call has been rewritten from a
3415         prefixed form, do not re-analyze first actual, which may need an
3416         implicit dereference.
3417         * sem_ch6.adb (Analyze_Procedure_Call): If the call is given in
3418         prefixed notation, the analysis will rewrite the node, and possible
3419         errors appear in the rewritten name of the node.
3420         * sem_res.adb: If a call is ambiguous because its first parameter is
3421         an overloaded call, report list of candidates, to clarify ambiguity of
3422         enclosing call.
3424 2010-06-14  Doug Rupp  <rupp@adacore.com>
3426         * s-auxdec-vms-alpha.adb: New package body implementing legacy
3427         VAX instructions with Asm insertions.
3428         * s-auxdec-vms_64.ads: Inline VAX queue functions
3429         * s-stoele.adb: Resolve some ambiguities in To_Addresss with s-suxdec
3430         that show up only on VMS.
3431         * gcc-interface/Makefile.in: Provide translation for
3432         s-auxdec-vms-alpha.adb.
3434 2010-06-14  Olivier Hainque  <hainque@adacore.com>
3436         * initialize.c (VxWorks section): Update comments.
3438 2010-06-14  Robert Dewar  <dewar@adacore.com>
3440         * a-convec.adb, sem_prag.adb, checks.adb: Minor reformatting.
3442 2010-06-14  Eric Botcazou  <ebotcazou@adacore.com>
3444         * init.c: Code clean up.
3446 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
3448         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address): Do
3449         not insert address clause in table for later validation if type of
3450         entity is generic, to prevent possible spurious errors. 
3452         * sem_ch8.adb: Code clean up.
3454 2010-06-14  Ben Brosgol  <brosgol@adacore.com>
3456         * gnat_ugn.texi: Expanded @ovar macro inline to solve problem with
3457         texi2pdf and texi2html.
3458         Document how to change scheduling properties on HP-UX.
3460 2010-06-14  Thomas Quinot  <quinot@adacore.com>
3462         * g-socket.ads: Remove misleading comments.
3464 2010-06-14  Jerome Lambourg  <lambourg@adacore.com>
3466         * sem_prag.adb (Check_Duplicated_Export_Name): Remove check for
3467         CLI_Target as this prevents proper detection of exported names
3468         duplicates when the exported language is different to CIL.
3469         (Process_Interface_Name): Add check for CIL convention exports,
3470         replacing the old one from Check_Duplicated_Export_Name.
3472 2010-06-14  Matthew Heaney  <heaney@adacore.com>
3474         * a-coinve.adb, a-convec.adb (operator "&"): Check both that new length
3475         and new last satisfy constraints.
3476         (Delete_Last): prevent overflow for subtraction of index values
3477         (To_Vector): prevent overflow for addition of index values
3479 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
3481         * sem_ch4.adb (Complete_Object_Operation): After analyzing the
3482         rewritten call, preserve the resulting type to prevent spurious errors,
3483         when the call is implicitly dereferenced in the context of an in-out
3484         actual.
3486         * checks.adb (Apply_Discriminant_Check): If the target of the
3487         assignment is a renaming of a heap object, create constrained type for
3488         it to apply check.
3490 2010-06-14  Pascal Obry  <obry@adacore.com>
3492         * prj-proc.adb: Fix copy of object directory for extending projects.
3494 2010-06-14  Jose Ruiz  <ruiz@adacore.com>
3496         * init.c (__gnat_alternate_stack): Define this space for PowerPC linux
3497         (__gnat_install_handler, PowerPC linux): Activate the alternative
3498         signal stack.
3500 2010-06-13  Gerald Pfeifer  <gerald@pfeifer.com>
3502         * gnat_rm.texi: Move to GFDL version 1.3.
3503         * gnat-style.texi: Ditto.
3504         * gnat_ugn.texi: Ditto.
3506 2010-06-12  Kai Tietz  <kai.tietz@onevision.com>
3508         PR ada/43731
3509         * gcc-interface/Makefile.in: Add rules for multilib x86/x64
3510         mingw targets.
3512 2010-06-11  Alexandre Oliva  <aoliva@redhat.com>
3514         * gcc-interface/utils.c (update_pointer_to): Initialize last.
3516 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
3518         * gcc-interface/ada-tree.h: Fix formatting nits.
3520 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3522         * gcc-interface/utils.c (init_gnat_to_gnu): Use typed GC
3523         allocation.
3524         (init_dummy_type): Likewise.
3525         (gnat_pushlevel): Likewise.
3527         * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
3528         (Subprogram_Body_to_gnu): Likewise.
3529         (Compilation_Unit_to_gnu): Likewise.
3530         (start_stmt_group): Likewise.
3531         (extract_encoding): Likewise.
3532         (decode_name): Likewise.
3534         * gcc-interface/misc.c (gnat_printable_name): Likewise.
3536         * gcc-interface/decl.c (annotate_value): Likewise.
3538         * gcc-interface/ada-tree.h (struct lang_type): Add variable_size
3539         GTY option.
3540         (struct lang_decl): Likewise.
3541         (SET_TYPE_LANG_SPECIFIC): Use typed GC allocation.
3542         (SET_DECL_LANG_SPECIFIC): Likewise.
3544 2010-06-04  Eric Botcazou  <ebotcazou@adacore.com>
3546         * gnatlink.adb (gnatlink): Remove support for -fsjlj switch.
3547         * gcc-interface/lang-specs.h: Likewise.
3549 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
3551         PR c++/44294
3552         * gcc-interface/decl.c (MAX_FIXED_MODE_SIZE): Removed.
3554 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
3556         * gnat_ugn.texi: Improve doc on -fdump-ada-spec, mention limitations.
3558 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
3560         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Task_Type>: Reuse the
3561         TYPE_DECL of the equivalent type instead of building a new one.
3563 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
3565         * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust warning message.
3566         Fix nits in comments.
3567         * gcc-interface/misc.c (gnat_init_gcc_eh): Likewise.
3568         * gcc-interface/trans.c (gigi): Likewise.
3569         (Attribute_to_gnu): Likewise.
3570         (Case_Statement_to_gnu): Likewise.
3571         (gnat_to_gnu): Adjust warning message.
3572         * gcc-interface/utils.c (create_var_decl_1): Fix nits in comments.
3573         (build_vms_descriptor32): Likewise.
3575 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
3577         * gcc-interface/decl.c: Pretend to be a backend file by undefining
3578         IN_GCC_FRONTEND (still need rtl.h here).
3580 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
3582         * gcc-interface/trans.c: Do not include rtl.h, insclude libfuncs.h.
3583         (gigi): Adjust call to set_stack_check_libfunc.
3585 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
3587         * gcc-interface/utils.c: Do not include rtl.h.
3589 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
3591         * gcc-interface/utils.c: Do not include function.h, pointer-set.h,
3592         and gimple.h.  Explain why rtl.h has to be included.
3593         (handle_vector_size_attribute): Call reconstruct_complex_type directly.
3594         * gcc-interface/targtyps.c: Do not include tm_p.h
3595         * gcc-interface/utils2.c: Do not include flags.h.
3596         * gcc-interface/trans.c: Do not include expr.h.  Include rtl.h instead,
3597         and explain why it has to be included.
3598         * gcc-interface/misc.c: Do not include expr.h, libfuncs.h, cgraph.h,
3599         and optabs.h.
3600         Include function.h and explain why.  Explain why except.h is included.
3601         (enumerate_modes): Remove unused function. 
3602         * gcc-interface/gigi.h (enumerate_modes): Remove prototype.
3603         * gcc-interface/Make-lang.in: Update dependencies.
3605 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
3607         * gcc-interface/misc.c (internal_error_function): Add context
3608         parameter.  Use it to access show_column flag and instead of using
3609         global_dc.  Call warn_if_plugins.
3610         * gcc-interface/Make-lang.in (ada/misc.o): Update dependencies.
3612 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
3614         * gcc-interface/misc.c (LANG_HOOKS_DEEP_UNSHARING): Redefine.
3615         * gcc-interface/trans.c (unshare_save_expr): Delete.
3616         (gigi): Do not unshare trees under SAVE_EXPRs here.
3618 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
3620         * gcc-interface/trans.c (call_to_gnu): Use build_call_vec instead of
3621         build_call_list.
3622         * gcc-interface/utils.c (build_function_stub): Likewise.
3624 2010-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3626         * gcc-interface/misc.c (gnat_handle_option): Remove special logic
3627         for Wuninitialized without -O.
3628         
3629 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
3631         * gcc-interface/gigi.h (enum standard_datatypes): Add new value
3632         ADT_exception_data_name_id.
3633         (exception_data_name_id): New define.
3634         * gcc-interface/trans.c (gigi): Initialize it.
3635         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use the standard
3636         exception type for standard exception definitions.  Do not make them
3637         volatile.
3638         <E_Record_Type>: Equate fields of types associated with an exception
3639         definition to those of the standard exception type.
3641 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
3643         * tracebak.c (__gnat_backtrace): Mark top_stack with ATTRIBUTE_UNUSED.
3645 2010-05-12  Eric Botcazou  <ebotcazou@adacore.com>
3647         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Tidy up
3648         code, improve comments and fix formatting nits.
3650 2010-05-12  Eric Botcazou  <ebotcazou@adacore.com>
3652         * gcc-interface/utils.c (update_pointer_to): Return early if the old
3653         pointer already points to the new type.  Chain the old pointer and its
3654         variants at the end of new pointer's chain after updating them.
3656 2010-05-10  Eric Botcazou  <ebotcazou@adacore.com>
3658         * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables
3659         built for interfaces.
3660         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Use
3661         imported_p instead of Is_Imported when considering constants.
3662         Do not promote alignment of exported objects.
3663         <E_Record_Subtype>: Strip all suffixes for dispatch table entities.
3665 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
3667         * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables.
3668         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Make imported
3669         constants really constant.
3670         <E_Record_Subtype>: Strip the suffix for dispatch table entities.
3672 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
3674         * gcc-interface/decl.c (make_aligning_type): Declare the type.
3676 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
3678         * gcc-interface/decl.c (gnat_to_gnu_entity): Create variables for size
3679         expressions of variant part of record types declared at library level.
3681 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
3683         * gcc-interface/gigi.h (create_field_decl): Move PACKED parameter.
3684         * gcc-interface/utils.c (create_field_decl): Move PACKED parameter.
3685         (rest_of_record_type_compilation): Adjust call to create_field_decl.
3686         (make_descriptor_field): Likewise and pass correctly typed constants.
3687         (build_unc_object_type): Likewise.
3688         (unchecked_convert): Likewise.
3689         * gcc-interface/decl.c (elaborate_expression_2): New static function.
3690         (gnat_to_gnu_entity): Use it to make alignment factors explicit.
3691         Adjust call to create_field_decl.
3692         (make_aligning_type): Likewise.
3693         (make_packable_type): Likewise.
3694         (maybe_pad_type): Likewise.
3695         (gnat_to_gnu_field): Likewise.
3696         (components_to_record): Likewise.
3697         (create_field_decl_from): Likewise.
3698         (create_variant_part_from): Remove superfluous test.
3699         * gcc-interface/trans.c (gigi): Adjust call to create_field_decl.
3701 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
3703         * gcc-interface/gigi.h (build_unc_object_type): Add DEBUG_INFO_P param.
3704         (build_unc_object_type_from_ptr): Likewise.
3705         * gcc-interface/utils.c (build_unc_object_type): Add DEBUG_INFO_P param
3706         and pass it to create_type_decl.  Declare the type.  Simplify.
3707         (build_unc_object_type_from_ptr): Add DEBUG_INFO_P parameter and pass
3708         it to build_unc_object_type.
3709         * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust to above change.
3710         * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
3711         (gnat_to_gnu): Likewise.
3712         * gcc-interface/utils2.c (build_allocator): Likewise.
3714 2010-05-07  Eric Botcazou  <ebotcazou@adacore.com>
3716         PR 40989
3717         * gcc-interface/misc.c (gnat_handle_option): Fix long line.
3719 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3721         * gcc-interface/Makefile.in: Removed mips-sgi-irix5* support.
3723 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3725         PR 40989
3726         * gcc-interface/misc.c (gnat_handle_option): Add argument kind.
3728 2010-05-02  Giuseppe Scrivano  <gscrivano@gnu.org>
3730         * gnathtml.pl: Use 755 as mask for new directories.
3732 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
3734         * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Uniquize
3735         constant constructors before taking their address.
3737 2010-04-25  Eric Botcazou  <ebotcazou@adacore.com>
3739         * exp_dbug.ads: Fix outdated description.  Mention link between XVS
3740         and XVZ objects.
3741         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Set
3742         XVZ variable as unit size of XVS type.
3743         (maybe_pad_type): Likewise.
3745 2010-04-25  Eric Botcazou  <ebotcazou@adacore.com>
3747         * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Do not
3748         use memmove if the array type is bit-packed.
3750 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
3752         * gcc-interface/misc.c (gnat_init): Remove second argument in call to
3753         build_common_tree_nodes.
3755 2010-04-18  Ozkan Sezer  <sezeroz@gmail.com>
3757         * gsocket.h: Make sure that winsock2.h is included before windows.h.
3759 2010-04-17  Eric Botcazou  <ebotcazou@adacore.com>
3761         * gcc-interface/utils2.c (build_unary_op) <ATTR_ADDR_EXPR>: Do not
3762         issue warning.
3764 2010-04-17  Eric Botcazou  <ebotcazou@adacore.com>
3766         * uintp.h (UI_Lt): Declare.
3767         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do the size
3768         computation in sizetype.
3769         <E_Array_Subtype>: Use unified handling for all index types.  Do not
3770         generate MAX_EXPR-based expressions, only COND_EXPR-based ones.  Add
3771         bypass for PATs.
3772         (annotate_value): Change test for negative values.
3773         (validate_size): Apply test for negative values on GNAT nodes.
3774         (set_rm_size): Likewise.
3775         * gcc-interface/misc.c (gnat_init): Set unsigned types for sizetypes.
3776         * gcc-interface/utils.c (rest_of_record_type_compilation): Change test
3777         for negative values.
3778         (max_size) <MINUS_EXPR>: Do not reassociate a COND_EXPR on the LHS.
3779         (builtin_type_for_size): Adjust definition of signed_size_type_node.
3780         * gcc-interface/utils2.c (compare_arrays): Optimize comparison of
3781         lengths against zero.
3783 2010-04-17  Eric Botcazou  <ebotcazou@adacore.com>
3785         * back-end.adb (Call_Back_End): Pass Standard_Character to gigi.
3786         * gcc-interface/gigi.h (gigi): Add standard_character parameter.
3787         (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE, 
3788         LONG_LONG_TYPE_SIZE, FLOAT_TYPE_SIZE, DOUBLE_TYPE_SIZE,
3789         LONG_DOUBLE_TYPE_SIZE, SIZE_TYPE): Delete.
3790         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Call
3791         rm_size.
3792         * gcc-interface/misc.c (gnat_init): Set signedness of char as per
3793         flag_signed_char.  Tag sizetype with "size_type" moniker.
3794         * gcc-interface/trans.c (gigi): Add standard_character parameter.
3795         Remove useless built-in types.  Equate unsigned_char_type_node to
3796         Standard.Character.  Use it instead of char_type_node throughout.
3797         (Attribute_to_gnu): Likewise.
3798         (gnat_to_gnu): Likewise.
3799         * gcc-interface/utils2.c (build_call_raise): Likewise.
3801 2010-04-17  Eric Botcazou  <ebotcazou@adacore.com>
3803         * gcc-interface/gigi.h (enum standard_datatypes): Add new values
3804         ADT_sbitsize_one_node and ADT_sbitsize_unit_node.
3805         (sbitsize_one_node): New macro.
3806         (sbitsize_unit_node): Likewise.
3807         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Fix
3808         latent bug in the computation of subrange_p.  Fold wider_p predicate.
3809         (cannot_be_superflat_p): Use an explicitly signed 64-bit type to do
3810         the final comparison.
3811         (make_aligning_type): Build real negation and use sizetype throughout
3812         the offset computation.
3813         (maybe_pad_type): Do not issue the warning when the new size expression
3814         is too complex.
3815         (annotate_value) <INTEGER_CST>: Simplify code handling negative values.
3816         * gcc-interface/misc.c (gnat_init): Initialize sbitsize_one_node and
3817         sbitsize_unit_node.
3818         * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Pool_Address>: Fold
3819         double negation.
3820         (gnat_to_gnu) <N_Free_Statement>: Likewise.
3821         * gcc-interface/utils.c (convert): Use sbitsize_unit_node.
3822         * gcc-interface/utils2.c (compare_arrays): Compute real lengths and use
3823         constants in sizetype.  Remove dead code and tweak comments.  Generate
3824         equality instead of inequality comparisons for zero length tests.
3826 2010-04-16  Eric Botcazou  <ebotcazou@adacore.com>
3828         * gcc-interface/gigi.h (gnat_init_decl_processing): Delete.
3829         * gcc-interface/decl.c (gnat_to_gnu_entity): Constify a few variables.
3830         <object>: Do not create the fake PARM_DECL if no debug info is needed.
3831         Do not create the corresponding VAR_DECL of a CONST_DECL for debugging
3832         purposes if no debug info is needed.
3833         Fix formatting.  Reorder and add comments.
3834         * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Reference>: Constify
3835         variable and remove obsolete comment.
3836         * gcc-interface/utils.c (convert_vms_descriptor64): Tweak comment.
3837         (convert_vms_descriptor32): Likewise.
3838         (convert): Remove dead code.
3839         <UNCONSTRAINED_ARRAY_REF>: Pass the field instead of its name to build
3840         the reference to the P_ARRAY pointer.
3841         <POINTER_TYPE>: Likewise.
3842         (maybe_unconstrained_array) <UNCONSTRAINED_ARRAY_TYPE>: Likewise.
3843         (gnat_init_decl_processing): Delete, move contents to...
3844         * gcc-interface/misc.c (gnat_init): ...here.
3846 2010-04-16  Eric Botcazou  <ebotcazou@adacore.com>
3848         * gcc-interface/trans.c (unchecked_conversion_nop): Handle function
3849         calls.  Return true for conversion from a record subtype to its type.
3851 2010-04-16  Eric Botcazou  <ebotcazou@adacore.com>
3853         * gcc-interface/decl.c (gnat_to_gnu_entity): Use boolean_type_node in
3854         lieu of integer_type_node for boolean operations.
3855         (choices_to_gnu): Likewise.
3856         * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
3857         (Loop_Statement_to_gnu): Likewise.
3858         (establish_gnat_vms_condition_handler): Likewise.
3859         (Exception_Handler_to_gnu_sjlj): Likewise.
3860         (gnat_to_gnu): Likewise.
3861         (build_unary_op_trapv): Likewise.
3862         (build_binary_op_trapv): Likewise.
3863         (emit_range_check): Likewise.
3864         (emit_index_check): Likewise.
3865         (convert_with_check): Likewise.
3866         * gcc-interface/utils.c (convert_vms_descriptor64): Likewise.
3867         (convert_vms_descriptor32): Likewise.
3868         (convert_vms_descriptor): Likewise.
3869         * gcc-interface/utils2.c (nonbinary_modular_operation): Likewise.
3870         (compare_arrays): Use boolean instead of integer constants.
3871         (build_binary_op) <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR,
3872         TRUTH_OR_EXPR, TRUTH_XOR_EXPR>: New case.  Check that the result type
3873         is a boolean type.
3874         <GE_EXPR, LE_EXPR, GT_EXPR, LT_EXPR>: Remove obsolete assertion.
3875         <EQ_EXPR, NE_EXPR>: Check that the result type is a boolean type.
3876         <PREINC/PREDECREMENT_EXPR, POSTINC/POSTDECREMENT_EXPR>: Delete.
3877         <TRUTH_NOT_EXPR>: Check that the result type is a boolean type.
3878         (build_unary_op): Use boolean_type_node in lieu of integer_type_node
3879         for boolean operations.
3880         (fill_vms_descriptor): Likewise.  Fix formatting nits.
3882 2010-04-16  Eric Botcazou  <ebotcazou@adacore.com>
3884         * gcc-interface/ada-tree.def (LOOP_STMT): Change to 4-operand nodes.
3885         * gcc-interface/ada-tree.h (LOOP_STMT_TOP_COND, LOOP_STMT_BOT_COND):
3886         Merge into...
3887         (LOOP_STMT_COND): ...this.
3888         (LOOP_STMT_BOTTOM_COND_P): New flag.
3889         (LOOP_STMT_TOP_UPDATE_P): Likewise.
3890         * gcc-interface/trans.c (can_equal_min_or_max_val_p): New function.
3891         (can_equal_min_val_p): New static inline function.
3892         (can_equal_max_val_p): Likewise.
3893         (Loop_Statement_to_gnu): Use build4 in lieu of build5 and adjust to
3894         new LOOP_STMT semantics.  Use two different strategies depending on
3895         whether optimization is enabled to translate the loop.
3896         (gnat_gimplify_stmt) <LOOP_STMT>: Adjust to new LOOP_STMT semantics.
3898 2010-04-16  Eric Botcazou  <ebotcazou@adacore.com>
3900         * uintp.adb (UI_From_Dint): Remove useless code.
3901         (UI_From_Int): Likewise.
3902         * uintp.h: Reorder declarations.
3903         (UI_From_gnu): Declare.
3904         (UI_Base): Likewise.
3905         (Vector_Template): Likewise.
3906         (Vector_To_Uint): Likewise.
3907         (Uint_0): Remove.
3908         (Uint_1): Likewise.
3909         * gcc-interface/gigi.h: Tweak comments.
3910         * gcc-interface/cuintp.c (UI_From_gnu): New global function.
3911         * gcc-interface/decl.c (maybe_pad_type): Do not warn if either size
3912         overflows.
3913         (annotate_value) <INTEGER_CST>: Call UI_From_gnu.
3914         * gcc-interface/trans.c (post_error_ne_num): Call post_error_ne.
3915         (post_error_ne_tree): Call UI_From_gnu and post_error_ne.
3916         * gcc-interface/utils.c (max_size) <tcc_binary>: Do not special-case
3917         TYPE_MAX_VALUE.
3919 2010-04-16  Eric Botcazou  <ebotcazou@adacore.com>
3921         * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Just copy
3922         TYPE_NAME.
3923         * gcc-interface/trans.c (smaller_packable_type_p): Rename into...
3924         (smaller_form_type_p): ...this.  Change parameter and variable names.
3925         (call_to_gnu): Use the nominal type of the parameter to create the
3926         temporary if it's a smaller form of the actual type.
3927         (addressable_p): Return false if the actual type is integral and its
3928         size is greater than that of the expected type.
3930 2010-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3932         * gcc-interface/cuintp.c (UI_To_gnu): Fix long line.
3933         * gcc-interface/gigi.h (MARK_VISITED): Skip objects of constant class.
3934         (process_attributes): Delete.
3935         (post_error_ne_num): Change parameter name.
3936         * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force debug info
3937         with -g3.  Remove a couple of obsolete lines.  Minor tweaks.
3938         If type annotating mode, operate on trees to compute the adjustment to
3939         the sizes of tagged types.  Fix long line.
3940         (cannot_be_superflat_p): Tweak head comment.
3941         (annotate_value): Fold local constant.
3942         (set_rm_size): Fix long line.
3943         * gcc-interface/trans.c (Identifier_to_gnu): Rework comments.
3944         (Attribute_to_gnu): Fix long line.
3945         <Attr_Size>: Remove useless assertion.
3946         Reorder statements.  Use size_binop routine.
3947         (Loop_Statement_to_gnu): Use build5 in lieu of build_nt.
3948         Create local variables for the label and the test.  Tweak comments.
3949         (Subprogram_Body_to_gnu): Reset cfun to NULL.
3950         (Compilation_Unit_to_gnu): Use the Sloc of the Unit node.
3951         (process_inlined_subprograms): Integrate into...
3952         (Compilation_Unit_to_gnu): ...this.
3953         (gnat_to_gnu): Fix long line.
3954         (post_error_ne_num): Change parameter name.
3955         * gcc-interface/utils.c (process_attributes): Static-ify.
3956         <ATTR_MACHINE_ATTRIBUTE>: Set input_location before proceeding.
3957         (create_type_decl): Add comment.
3958         (create_var_decl_1): Process the attributes after adding the VAR_DECL
3959         to the current binding level.
3960         (create_subprog_decl): Likewise for the FUNCTION_DECL.
3961         (end_subprog_body): Do not reset cfun to NULL.
3962         (build_vms_descriptor32): Fix long line.
3963         (build_vms_descriptor): Likewise.
3964         (handle_nonnull_attribute): Likewise.
3965         (convert_vms_descriptor64): Likewise.
3966         * gcc-interface/utils2.c (fill_vms_descriptor): Fix long line.
3967         (gnat_protect_expr): Fix thinko.
3969 2010-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3971         * gcc-interface/trans.c (gigi): Set DECL_IGNORED_P on EH functions.
3972         (gnat_to_gnu) <N_Op_Eq>: Restore the value of input_location
3973         before translating the top-level node.
3974         (lvalue_required_p) <N_Function_Call>: Return 1 if !constant.
3975         <N_Object_Declaration>: Likewise.
3976         <N_Assignment_Statement>: Likewise.
3977         <N_Unchecked_Type_Conversion>: Likewise.
3978         (call_to_gnu): Remove kludge.
3979         (gnat_to_gnu) <N_Return_Statement>: When not optimizing, force labels
3980         associated with user returns to be preserved.
3981         (gnat_to_gnu): Add special code to deal with boolean rvalues.
3982         * gcc-interface/utils2.c (compare_arrays): Set input_location on all
3983         comparisons.
3984         (build_unary_op) <ADDR_EXPR>: Call build_fold_addr_expr.
3985         <INDIRECT_REF>: Call build_fold_indirect_ref.
3987 2010-04-15  Joel Sherrill  <joel.sherrill@oarcorp.com>
3989         * g-socket.adb: A target can have multiple missing errno's.  This
3990         will result in multiple errno's being defined as -1.  Because of this
3991         we can not use a case but must use a series of if's to avoid 
3992         a duplicate case error in GNAT.Sockets.Resolve_Error.
3994 2010-04-15  Eric Botcazou  <ebotcazou@adacore.com>
3996         * gcc-interface/trans.c (call_to_gnu): Open a nesting level if this is
3997         a statement.  Otherwise, if at top-level, push the processing of the
3998         elaboration routine.  In the misaligned case, issue the error messages
3999         again on entry and create the temporary explicitly.  Do not issue them
4000         for CONSTRUCTORs.
4001         For a function call, emit the range check if necessary.
4002         In the copy-in copy-out case, create the temporary for the return
4003         value explicitly.
4004         Do not unnecessarily convert by-ref parameters to the formal's type.
4005         Remove obsolete guards in conditions.
4006         (gnat_to_gnu) <N_Assignment_Statement>: For a function call, pass the
4007         target to call_to_gnu in all cases.
4008         (gnat_gimplify_expr) <ADDR_EXPR>: Remove handling of SAVE_EXPR.
4009         (addressable_p) <CONSTRUCTOR>: Return false if not static.
4010         <COMPOUND_EXPR>: New case.
4011         * gcc-interface/utils2.c (build_unary_op) <ADDR_EXPR>: Fold a compound
4012         expression if it has unconstrained array type.
4013         (gnat_mark_addressable) <COMPOUND_EXPR>: New case.
4014         (gnat_stabilize_reference) <COMPOUND_EXPR>: Stabilize operands on an
4015         individual basis.
4017 2010-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4019         * gcc-interface/trans.c (gigi): Do not start statement group.
4020         (Compilation_Unit_to_gnu): Set current_function_decl to NULL.
4021         Start statement group and push binding level here...
4022         (gnat_to_gnu) <N_Compilation_Unit>: ...and not here.
4023         Do not push fake contexts at top level.  Remove redundant code.
4024         (call_to_gnu): Rename a local variable and constify another.
4025         * gcc-interface/utils.c (gnat_pushlevel): Fix formatting nits.
4026         (set_current_block_context): Set it as the group's block.
4027         (gnat_init_decl_processing): Delete unrelated init code.
4028         (end_subprog_body): Use NULL_TREE.
4030 2010-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4032         * gcc-interface/trans.c (call_to_gnu): Do not unnecessarily force
4033         side-effects of actual parameters before the call.
4035 2010-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4037         * gcc-interface/decl.c (validate_size): Reorder, remove obsolete test
4038         and warning.
4039         (set_rm_size): Reorder and remove obsolete test.
4041 2010-04-14  Eric Botcazou  <ebotcazou@adacore.com>
4043         * gcc-interface/gigi.h: Reorder declarations and tweak comments.
4044         (gigi): Adjust ATTRIBUTE_UNUSED markers.
4045         * gcc-interface/gadaint.h: New file.
4046         * gcc-interface/trans.c: Include it in lieu of adaint.h.  Reorder.
4047         (__gnat_to_canonical_file_spec): Remove declaration.
4048         (number_names): Delete.
4049         (number_files): Likewise.
4050         (gigi): Adjust.
4051         * gcc-interface/Make-lang.in (ada/trans.o): Adjust dependencies to
4052         above change.
4054 2010-04-14  Eric Botcazou  <ebotcazou@adacore.com>
4056         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Class_Wide_Type>: Fix
4057         comment.
4058         * gcc-interface/trans.c (process_freeze_entity): Use local copy of
4059         Ekind.  Return early for class-wide types.  Do not compute initializer
4060         unless necessary.  Reuse the tree for an associated class-wide type
4061         only if processing its root type.
4063 2010-04-13  Joel Sherrill  <joel.sherrill@oarcorp.com>
4065         * gsocket.h: Run-time can no longer be built without network
4066         OS headers available.  Changing RTEMS GNAT build procedure to
4067         reflect this and letting run-time build use network .h files.
4069 2010-04-13  Duncan Sands  <baldrick@free.fr>
4071         * gcc-interface/misc.c (gnat_eh_type_covers): Remove.
4072         * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Update comment.
4074 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
4076         * gcc-interface/gigi.h (standard_datatypes): Add ADT_parent_name_id.
4077         (parent_name_id): New macro.
4078         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Use it.
4079         * gcc-interface/trans.c (gigi): Initialize it.
4080         (lvalue_required_p) <N_Type_Conversion>: New case.
4081         <N_Qualified_Expression>: Likewise.
4082         <N_Allocator>: Likewise.
4083         * gcc-interface/utils.c (convert): Try to properly upcast tagged types.
4085 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
4087         * gcc-interface/ada-tree.h (TYPE_BY_REFERENCE_P): Delete.
4088         (DECL_CONST_ADDRESS_P): New macro.
4089         (SET_DECL_ORIGINAL_FIELD_TO_FIELD): Likewise.
4090         (SAME_FIELD_P): Likewise.
4091         * gcc-interface/decl.c (constructor_address_p): New static function.
4092         (gnat_to_gnu_entity) <object>: Set DECL_CONST_ADDRESS_P according to
4093         the return value of above function.
4094         (gnat_to_gnu_entity) <E_Record_Type>: Force BLKmode for all types
4095         passed by reference.
4096         <E_Record_Subtype>: Likewise.
4097         Set TREE_ADDRESSABLE on the type if it passed by reference.
4098         (make_packable_type): Use SET_DECL_ORIGINAL_FIELD_TO_FIELD.
4099         (create_field_decl_from): Likewise.
4100         (substitute_in_type): Likewise.
4101         (purpose_member_field): Use SAME_FIELD_P.
4102         * gcc-interface/misc.c (must_pass_by_ref): Test TREE_ADDRESSABLE.
4103         * gcc-interface/trans.c (lvalue_required_p): Add ADDRESS_OF_CONSTANT
4104         parameter and adjust recursive calls.
4105         <N_Explicit_Dereference>: New case.
4106         <N_Object_Declaration>: Return 1 if the object is of a class-wide type.
4107         Adjust calls to lvalue_required_p.  Do not return the initializer of a
4108         DECL_CONST_ADDRESS_P constant if an lvalue is required for it.
4109         (call_to_gnu): Delay issuing error message for a misaligned actual and
4110         avoid the associated back-end assertion.  Test TREE_ADDRESSABLE.
4111         (gnat_gimplify_expr) <ADDR_EXPR>: Handle non-static constructors.
4112         * gcc-interface/utils.c (make_dummy_type): Set TREE_ADDRESSABLE if the
4113         type is passed by reference.
4114         (convert) <CONSTRUCTOR>: Convert in-place in more cases.
4115         * gcc-interface/utils2.c (build_cond_expr): Drop TYPE_BY_REFERENCE_P.
4116         (build_simple_component_ref): Use SAME_FIELD_P.
4118 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
4120         * gcc-interface/trans.c (Identifier_to_gnu): Use boolean variable.
4121         (call_to_gnu): Test gigi's flag TYPE_BY_REFERENCE_P instead of calling
4122         front-end's predicate Is_By_Reference_Type.  Use consistent order and
4123         remove ??? comment.  Use original conversion in all cases, if any.
4124         * gcc-interface/utils.c (make_dummy_type): Minor tweak.
4125         (convert): Use local copy in more cases.
4126         <INDIRECT_REF>: Remove deactivated code.
4127         (unchecked_convert): Use a couple of local copies.
4129 2010-04-11  Eric Botcazou  <ebotcazou@adacore.com>
4131         * gcc-interface/trans.c (lvalue_required_for_attribute_p): New static
4132         function.
4133         (lvalue_required_p) <N_Attribute_Reference>: Call it.
4134         (gnat_to_gnu) <N_Selected_Component>: Prevent build_component_ref from
4135         folding the result only if lvalue_required_for_attribute_p is true.
4136         * gcc-interface/utils.c (maybe_unconstrained_array): Pass correctly
4137         typed constant to build_component_ref.
4138         (unchecked_convert): Likewise.
4139         * gcc-interface/utils2.c (maybe_wrap_malloc): Likewise.
4140         (build_allocator): Likewise.
4142 2010-04-11  Eric Botcazou  <ebotcazou@adacore.com>
4144         * gcc-interface/utils2.c (build_cond_expr): Take the address and
4145         dereference if the result type is passed by reference.
4147 2010-04-11  Eric Botcazou  <ebotcazou@adacore.com>
4149         * gcc-interface/trans.c (Case_Statement_to_gnu): Bool-ify variable.
4150         (gnat_to_gnu) <N_Null_Statement>: When not optimizing, generate a
4151         goto to the next statement.
4153 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
4155         * gcc-interface/gigi.h (maybe_variable): Delete.
4156         (protect_multiple_eval): Likewise.
4157         (maybe_stabilize_reference): Likewise.
4158         (gnat_save_expr): Declare.
4159         (gnat_protect_expr): Likewise.
4160         (gnat_stabilize_reference): Likewise.
4161         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use
4162         gnat_stabilize_reference.
4163         (maybe_variable): Delete.
4164         (elaborate_expression_1): Use gnat_save_expr.
4165         * gcc-interface/trans.c (Attribute_to_gnu): Use gnat_protect_expr.
4166         (call_to_gnu): Pass NULL to gnat_stabilize_reference.
4167         (gnat_to_gnu) <N_Object_Declaration>: Use gnat_save_expr.
4168         <N_Slice>: Use gnat_protect_exp.
4169         <N_Selected_Component>: Pass NULL to gnat_stabilize_reference.
4170         <N_In>: Use gnat_protect_expr.
4171         Pass NULL to gnat_stabilize_reference.
4172         (build_unary_op_trapv): Use gnat_protect_expr.
4173         (build_binary_op_trapv): Likewise.
4174         (emit_range_check): Likewise.
4175         (emit_index_check): Likewise.
4176         (convert_with_check): Likewise.
4177         (protect_multiple_eval): Move to utils2.c file.
4178         (maybe_stabilize_reference): Merge into...
4179         (gnat_stabilize_reference): ...this.  Move to utils2.c file.
4180         (gnat_stabilize_reference_1): Likewise.
4181         * gcc-interface/utils.c (convert_to_fat_pointer): Use gnat_protect_expr
4182         instead of protect_multiple_eval.
4183         * gcc-interface/utils2.c (compare_arrays): Likewise.
4184         (nonbinary_modular_operation): Likewise.
4185         (maybe_wrap_malloc): Likewise.
4186         (build_allocator): Likewise.
4187         (gnat_save_expr): New function.
4188         (gnat_protect_expr): Rename from protect_multiple_eval.  Early return
4189         in common cases.  Propagate TREE_READONLY onto dereferences.
4190         (gnat_stabilize_reference_1): Move from trans.c file.
4191         (gnat_stabilize_reference): Likewise.
4193 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
4195         * gcc-interface/gigi.h (gnat_mark_addressable): Rename parameter.
4196         * gcc-interface/decl.c (maybe_variable): Do not set TREE_STATIC on _REF
4197         node.  Use the type of the operand to set TREE_READONLY.
4198         * gcc-interface/trans.c (Identifier_to_gnu): Do not set TREE_STATIC on
4199         _REF node.  Do not overwrite TREE_READONLY.
4200         (call_to_gnu): Rename local variable and fix various nits.  In the
4201         copy-in/copy-out case, build the SAVE_EXPR manually.
4202         (convert_with_check): Call protect_multiple_eval in lieu of save_expr
4203         and fold the computations.
4204         (protect_multiple_eval): Always save entire fat pointers.
4205         (maybe_stabilize_reference): Minor tweaks.
4206         (gnat_stabilize_reference_1): Likewise.  Do not deal with tcc_constant,
4207         tcc_type and tcc_statement.
4208         * gcc-interface/utils.c (convert_to_fat_pointer): Call
4209         protect_multiple_eval in lieu of save_expr.
4210         (convert): Minor tweaks.
4211         (maybe_unconstrained_array): Do not set TREE_STATIC on _REF node.
4212         (builtin_type_for_size): Call gnat_type_for_size directly.
4213         * gcc-interface/utils2.c (contains_save_expr_p): Delete.
4214         (contains_null_expr): Likewise
4215         (gnat_build_constructor): Do not call it.
4216         (compare_arrays): Deal with all side-effects, use protect_multiple_eval
4217         instead of gnat_stabilize_reference to protect the operands.
4218         (nonbinary_modular_operation): Call protect_multiple_eval in lieu of
4219         save_expr.
4220         (maybe_wrap_malloc): Likewise.
4221         (build_allocator): Likewise.
4222         (build_unary_op) <INDIRECT_REF>: Do not set TREE_STATIC on _REF node.
4223         (gnat_mark_addressable): Rename parameter.
4225 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
4227         * gcc-interface/ada-tree.h (TYPE_RETURNS_UNCONSTRAINED_P): Rename into.
4228         (TYPE_RETURN_UNCONSTRAINED_P): ...this.
4229         (TYPE_RETURNS_BY_REF_P): Rename into.
4230         (TYPE_RETURN_BY_DIRECT_REF_P): ...this.
4231         (TYPE_RETURNS_BY_TARGET_PTR_P): Delete.
4232         * gcc-interface/gigi.h (create_subprog_type): Adjust parameter names.
4233         (build_return_expr): Likewise.
4234         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>:
4235         Rename local variables.  If the return Mechanism is By_Reference, pass
4236         return_by_invisible_ref_p to create_subprog_type instead of toggling
4237         TREE_ADDRESSABLE.  Test return_by_invisible_ref_p in order to annotate
4238         the mechanism.  Use regular return for contrained types with non-static
4239         size and return by invisible reference for unconstrained return types
4240         with default discriminants.  Update comment.
4241         * gcc-interface/trans.c (Subprogram_Body_to_gnu): If the function
4242         returns by invisible reference, turn the RESULT_DECL into a pointer.
4243         Do not handle DECL_BY_REF_P in the CICO case here.
4244         (call_to_gnu): Remove code handling return by target pointer.  For a
4245         function call, if the return type has non-constant size, generate the
4246         assignment with an INIT_EXPR.
4247         (gnat_to_gnu) <N_Return_Statement>: Remove dead code in the CICO case.
4248         If the function returns by invisible reference, build the copy return
4249         operation manually.
4250         (add_decl_expr): Initialize the variable with an INIT_EXPR.
4251         * gcc-interface/utils.c (create_subprog_type): Adjust parameter names.
4252         Adjust for renaming of macros.  Copy the node only when necessary.
4253         (create_subprog_decl): Do not toggle TREE_ADDRESSABLE on the return
4254         type, only change DECL_BY_REFERENCE on the RETURN_DECL.
4255         (convert_from_reference): Delete.
4256         (is_byref_result): Likewise.
4257         (gnat_genericize_r): Likewise.
4258         (gnat_genericize): Likewise.
4259         (end_subprog_body): Do not call gnat_genericize.
4260         * gcc-interface/utils2.c (build_binary_op) <INIT_EXPR>: New case.
4261         (build_return_expr): Adjust parameter names, logic and comment.
4263 2010-04-07  Eric Botcazou  <ebotcazou@adacore.com>
4265         * exp_pakd.adb (Create_Packed_Array_Type): Always use a modular type
4266         if the size is small enough.  Propagate the alignment if there is an
4267         alignment clause on the original array type.
4268         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
4269         Deal with under-aligned packed array types.  Copy the size onto the
4270         justified modular type and don't lay it out again.  Likewise for the
4271         padding type built for other under-aligned subtypes.
4272         * gcc-interface/utils.c (finish_record_type): Do not set a default mode
4273         on the type.
4275 2010-04-07  Eric Botcazou  <ebotcazou@adacore.com>
4277         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set default
4278         alignment on the RETURN type built for the Copy-In Copy-Out mechanism.
4280 2010-04-07  Eric Botcazou  <ebotcazou@adacore.com>
4282         * gcc-interface/trans.c (call_to_gnu): In the return-by-target-ptr case
4283         do not set the result type if there is a specified target and do not
4284         convert the result in any cases.
4285         (protect_multiple_eval): Make direct SAVE_EXPR for CALL_EXPR.
4286         (maybe_stabilize_reference) <COMPOUND_EXPR>: Merge with CALL_EXPR.
4288 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
4290         * gcc-interface/Makefile.in (SPARC/Solaris): Use sparcv8plus.
4292 2010-02-27  Eric Botcazou  <ebotcazou@adacore.com>
4294         PR ada/42253
4295         * gcc-interface/utils2.c (build_binary_op) <EQ_EXPR>: Assert that fat
4296         pointer base types are variant of each other.  Apply special treatment
4297         for null to fat pointer types in all cases.
4299 2010-01-28  Pascal Obry  <obry@adacore.com>
4301         * s-win32.ads: Add some missing constants.
4303 2010-01-28  Vincent Celier  <celier@adacore.com>
4305         * prj-attr-pm.adb (Add_Attribute): Do nothing if To_Package is
4306         Unknown_Package.
4308 2010-01-28  Robert Dewar  <dewar@adacore.com>
4310         * gnat_rm.texi: Minor correction
4312 2010-01-27  Pascal Obry  <obry@adacore.com>
4314         * g-awk.adb: ensure that an AWK session is reusable.
4316 2010-01-27  Vasiliy Fofanov  <fofanov@adacore.com>
4318         * g-regist.adb (For_Every_Key): Fix previous change.
4319         Minor reformatting.
4321 2010-01-27  Thomas Quinot  <quinot@adacore.com>
4323         * lib-writ.ads: Current version of spec for new N (note) ALI lines
4325 2010-01-27  Yannick Moy  <moy@adacore.com>
4327         * a-cdlili.adb (Insert): Correct exception message when cursor
4328         designates wrong list.
4330 2010-01-27  Vincent Celier  <celier@adacore.com>
4332         * gnatcmd.adb: When there is only one main specified, the package
4333         support Switches (<main>) and attribute Switches is specified for the
4334         main, use these switches, instead of Default_Switches ("Ada").
4336 2010-01-27  Robert Dewar  <dewar@adacore.com>
4338         * sem_prag.adb, par-prag.adb, snames.ads-tmpl: pragma Dimension initial
4339         implementation.
4340         * exp_disp.adb: Minor reformatting
4342 2010-01-27  Tristan Gingold  <gingold@adacore.com>
4344         * seh_init.c: Use __ImageBase instead of _ImageBase.
4346 2010-01-27  Javier Miranda  <miranda@adacore.com>
4348         * exp_disp.ads, exp_disp.adb (Expand_Interface_Thunk): Modify the
4349         profile of interface thunks. The type of the controlling formal is now
4350         the covered interface type (instead of the target tagged type).
4352 2010-01-27  Sergey Rybin  <rybin@adacore.com>
4354         * gnat_rm.texi, gnat_ugn.texi: Update gnatcheck doc.
4356 2010-01-27  Robert Dewar  <dewar@adacore.com>
4358         * sinput.ads, sinput.adb (Sloc_Range): Applies to all nodes, formal
4359         changed from Expr to N.
4361 2010-01-26  Thomas Quinot  <quinot@adacore.com>
4363         * gnat_ugn.texi: Adjust documentation of -gnatz switches.
4364         * usage.adb: Replace line for -gnatz with two lines for -gnatzc and
4365         -gnatzr.
4367 2010-01-26  Vincent Celier  <celier@adacore.com>
4369         * prj-attr.adb: Add new attribute Library_Install_Name_Option
4370         Replace attribute Run_Path_Origin_Supported with Run_Path_Origin
4371         * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
4372         attributes Run_Path_Option and Library_Install_Name_Option.
4373         * prj.ads (Project_Configuration): Replace component
4374         Run_Path_Origin_Supported with component Run_Path_Origin. Add new
4375         component Library_Install_Name_Option.
4376         * snames.ads-tmpl: Add new standard name Library_Install_Name_Option
4377         Replace Run_Path_Origin_Supported with Run_Path_Origin
4379 2010-01-26  Ed Schonberg  <schonberg@adacore.com>
4381         * sem_ch8.adb (Use_One_Package): Within an instance, an actual package
4382         is not hidden by a homograph declared in another actual package.
4384 2010-01-26  Robert Dewar  <dewar@adacore.com>
4386         * par_sco.adb (Traverse_Declarations_Or_Statements): Only generate
4387         decisions for pragmas Assert, Check, Precondition, Postcondition if
4388         -gnata set.
4389         * scos.ads: Update comments.
4390         * get_scos.adb, put_scos.adb: Minor fix to code reading statement SCOs.
4391         Also remove obsolete code for CT (exit point) SCOs.
4393 2010-01-26  Thomas Quinot  <quinot@adacore.com>
4395         * switch-c.adb: Fix handling of -gnatz*
4397 2010-01-26  Robert Dewar  <dewar@adacore.com>
4399         * par_sco.adb (Traverse_Declarations_Or_Statements): Separate F/W
4400         qualifiers for FOR/WHILE loops
4401         * scos.ads: Use separate type letters F/W for for/while loops
4403 2010-01-26  Robert Dewar  <dewar@adacore.com>
4405         * get_scos.adb (Get_SCOs): Implement new form of CS entries (multiple
4406         entries per line, one for each statement in the sequence).
4407         * par_sco.adb (Traverse_Declarations_Or_Statements): Increase array
4408         size from 100 to 10_000 for SC_Array to avoid any real possibility of
4409         overflow. Output decisions in for loops.
4410         Exclude labels from CS lines.
4411         * scos.ads: Clarify that label is not included in the entry point
4413 2010-01-26  Robert Dewar  <dewar@adacore.com>
4415         * par_sco.adb (Traverse_Declarations_Or_Statments): Implement new
4416         format of statement sequence SCO entries (one location/statement).
4417         * put_scos.adb (Put_SCOs): Implement new format of CS lines
4418         * scos.ads: Update comments.
4419         * sem_eval.adb: Minor reformatting.
4421 2010-01-26  Robert Dewar  <dewar@adacore.com>
4423         * par_sco.ads, par_sco.adb (Set_Statement_Entry): New handling of exits
4424         (Extend_Statement_Sequence): New procedures
4425         (Traverse_Declarations_Or_Statements): New handling for exits.
4427 2010-01-26  Robert Dewar  <dewar@adacore.com>
4429         * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
4430         Case.
4432 2010-01-26  Robert Dewar  <dewar@adacore.com>
4434         * par_sco.adb (Is_Logical_Operator): Exclude AND/OR/XOR
4435         * scos.ads: Clarify handling of logical operators
4437 2010-01-26  Arnaud Charlet  <charlet@adacore.com>
4439         * s-tpoben.adb: Update comments.
4441 2010-01-26  Robert Dewar  <dewar@adacore.com>
4443         * freeze.adb (Set_Small_Size): Don't set size if alignment clause
4444         present.
4446 2010-01-26  Robert Dewar  <dewar@adacore.com>
4448         * scos.ads: Clean up documentation, remove obsolete XOR references
4449 2010-01-26  Vincent Celier  <celier@adacore.com>
4451         * gnat_ugn.texi: Complete documentation on the restrictions for
4452         combined options in -gnatxxx switches.
4453         Fix typo.
4455 2010-01-26  Arnaud Charlet  <charlet@adacore.com>
4457         * s-tpoben.adb (Initialize_Protection_Entries): If a PO is created from
4458         a controlled operation, abort is already deferred at this point, so we
4459         need to use Defer_Abort_Nestable.
4461 2010-01-26  Vincent Celier  <celier@adacore.com>
4463         * prj-conf.adb (Get_Config_Switches): Check for a default language for
4464         a project extending a project with no languages.
4466 2010-01-26  Vincent Celier  <celier@adacore.com>
4468         * switch-c.adb (Scan_Front_End_Switches): Take into account options
4469         that follow -gnatef.
4470         Allow -gnateG to be followed by other options.
4472 2010-01-26  Robert Dewar  <dewar@adacore.com>
4474         * s-commun.ads, s-osprim-mingw.adb, s-stchop-vxworks.adb, sem_aggr.adb,
4475         s-vxwext.adb, sem_ch10.adb, sem_eval.adb, sem_prag.adb: Minor
4476         reformatting.
4478 2010-01-26  Vasiliy Fofanov  <fofanov@adacore.com>
4480         * g-regist.adb, g-regist.ads (For_Every_Key): New generic procedure
4481         that allows to iterate over all subkeys of a key.
4483 2010-01-26  Ed Falis  <falis@adacore.com>
4485         * sysdep.c: enable NFS for VxWorks MILS
4486         * env.c: enable __gnat_environ for VxWorks MILS
4487         * gcc-interface/Makefile.in: Add VxWorks MILS target pairs.
4489 2010-01-25  Bob Duff  <duff@adacore.com>
4491         * sem_aggr.adb (Resolve_Array_Aggregate): Check for the case where this
4492         is an internally-generated positional aggregate, and the bounds are
4493         already correctly set. We don't want to overwrite those bounds with
4494         bounds determined by context.
4496 2010-01-25  Robert Dewar  <dewar@adacore.com>
4498         * g-sercom.ads, gnatcmd.adb, gnatlink.adb, a-ststio.adb, exp_ch6.adb,
4499         exp_ch9.adb, g-sechas.ads: Minor reformatting.
4501 2010-01-25  Thomas Quinot  <quinot@adacore.com>
4503         * s-commun.adb (Last_Index): Count must be converted to SEO (a signed
4504         integer type) before subtracting 1, otherwise the computation may wrap
4505         (because size_t is modular) and cause the conversion to fail.
4507 2010-01-25  Ed Falis  <falis@adacore.com>
4509         * sysdep.c, init.c: Adapt to support full run-time on VxWorks MILS.
4511 2010-01-25  Vincent Celier  <celier@adacore.com>
4513         * prj-attr.adb: New attribute Run_Path_Origin_Required
4514         * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process new
4515         attribute Run_Path_Origin_Required.
4516         * prj.ads (Project_Configuration): New component
4517         Run_Path_Origin_Supported.
4518         * snames.ads-tmpl: New standard name Run_Path_Origin_Required
4520 2010-01-25  Ed Schonberg  <schonberg@adacore.com>
4522         * sem_aggr.adb (Resolve_Array_Aggregate): If the bounds in a choice
4523         have errors, do not continue resolution of the aggregate.
4524         * sem_eval.adb (Eval_Indexed_Component): Do not attempt to evaluate if
4525         the array type indicates an error.
4527 2010-01-25  Bob Duff  <duff@adacore.com>
4529         * sinfo.ads: Minor comment fixes.
4531 2010-01-25  Bob Duff  <duff@adacore.com>
4533         * exp_ch4.adb, exp_aggr.adb: Minor comment fixes and code clean up.
4535 2010-01-25  Arnaud Charlet  <charlet@adacore.com>
4537         * gnatvsn.ads (Current_Year): Update.
4539 2010-01-25  Florian Villoing  <villoing@adacore.com>
4541         * gnat_ugn.texi: Fix typo.
4543 2010-01-25  Thomas Quinot  <quinot@adacore.com>
4545         * scos.ads: Update specification.
4547 2010-01-25  Ed Schonberg  <schonberg@adacore.com>
4549         * sem_ch6.adb (Process_PPCs): If a postcondition is present and the
4550         enclosing subprogram has no previous spec, attach postcondition
4551         procedure to the defining entity for the body.
4553 2010-01-25  Ed Schonberg  <schonberg@adacore.com>
4555         * exp_aggr.adb (Build_Record_Aggr_Code); Do not generate call to
4556         initialization procedure of the ancestor part of an extension aggregate
4557         if it is an interface type.
4559 2010-01-25  Vincent Celier  <celier@adacore.com>
4561         * gnatlink.adb (Process_Binder_File): The directory for the shared
4562         version of libgcc in the run path options is found in the subdirectory
4563         indicated by __gnat_default_libgcc_subdir.
4564         * link.c: Declare new const char * __gnat_default_libgcc_subdir for
4565         each platform.
4567 2010-01-25  Ed Schonberg  <schonberg@adacore.com>
4569         * sem_prag.adb: More flexible pragma Annotate.
4571 2010-01-22  Eric Botcazou  <ebotcazou@adacore.com>
4573         * system-linux-armel.ads (Stack_Check_Probes): Set to True.
4574         * system-linux-armeb.ads (Stack_Check_Probes): Likewise.
4576 2010-01-18  Eric Botcazou  <ebotcazou@adacore.com>
4578         * gcc-interface/utils.c (create_var_decl_1): Fix formatting nits.
4580 2010-01-18  Jan Hubicka  <jh@suse.cz>
4582         PR middle-end/42068
4583         * gcc-interface/utils.c (create_var_decl_1): Do not set COMMON flag for
4584         unit local variables.
4586 2010-01-17  Laurent GUERBY  <laurent@guerby.net>
4588         * gcc-interface/Makefile.in: Fix typo in arm*-*-linux-gnueabi.
4590 2010-01-11  Mikael Pettersson  <mikpe@it.uu.se>
4592         * gcc-interface/Makefile.in: Add arm*-*-linux-gnueabi.
4593         * system-linux-armeb.ads, system-linux-armel.ads: New files.
4595 2010-01-09  Simon Wright  <simon@pushface.org>
4597         PR ada/42626
4598         * gcc-interface/Makefile.in (gnatlib-shared-darwin): Add missing
4599         end-quote.
4603 Copyright (C) 2010 Free Software Foundation, Inc.
4605 Copying and distribution of this file, with or without modification,
4606 are permitted in any medium without royalty provided the copyright
4607 notice and this notice are preserved.