2010-12-13 Tobias Burnus <burnus@net-b.de>
[official-gcc.git] / gcc / ada / ChangeLog
blob4972d30517d7b18c89177888e8a7e77aad9f13a0
1 2010-12-13  Eric Botcazou  <ebotcazou@adacore.com>
3         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_General_Access_Type>:
4         Build a stub DECL for the dummy fat pointer type in the unconstrained
5         array case.
6         * gcc-interface/utils.c (update_pointer_to): Set the DECL_ORIGINAL_TYPE
7         for all the variants in the fat pointer case.
9 2010-12-13  Eric Botcazou  <ebotcazou@adacore.com>
11         * gcc-interface/trans.c (can_be_lower_p): New predicate.
12         (Loop_Statement_to_gnu): Do not generate the entry condition if we know
13         that it will be true.
15 2010-12-03  Joseph Myers  <joseph@codesourcery.com>
17         * gcc-interface/lang.opt (k8): New option.
19 2010-12-03  Alexandre Oliva  <aoliva@redhat.com>
21         * gnatvsn.adb (Gnat_Version_String): Don't overrun Ver_Len_Max.
22         * gnatvsn.ads (Ver_Len_Max): Bump up to 256.
23         * g-comver.adb (Ver_Len_Max): Likewise.
25 2010-12-03  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
27         * gcc-interface/decl.c (struct subst_pair_d): Remove GTY tag.
28         (variant_desc_d): Likewise.
30 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
32         * gcc-interface/misc.c (flag_compare_debug, flag_stack_check):
33         Undefine as macros then define as variables.
34         (gnat_post_options): Set variables from global_options.
36 2010-11-27  Eric Botcazou  <ebotcazou@adacore.com>
38         PR ada/46574
39         * gcc-interface/utils2.c (compare_elmt_bitpos): Fix typos.
41 2010-11-27  Eric Botcazou  <ebotcazou@adacore.com>
43         PR ada/40777
44         * gcc-interface/targtyps.c (get_target_double_scalar_alignment): Guard
45         use of TARGET_64BIT macro.
47 2010-11-27  Eric Botcazou  <ebotcazou@adacore.com>
49         * s-osinte-linux.ads (sigset_t): Use unsigned_char subtype directly.
50         (unsigned_long_long_t): New modular type.
51         (pthread_cond_t): Add alignment clause.
53 2010-11-27  Eric Botcazou  <ebotcazou@adacore.com>
55         * gnatvsn.adb (Version_String): Change type to C-like array of chars.
56         (Gnat_Version_String): Adjust to above change.
58 2010-11-18  Eric Botcazou  <ebotcazou@adacore.com>
60         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Also
61         use return-by-invisible-reference if the return type is By_Reference.
62         Tidy up and skip the processing of the return type if it is void.
64 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
66         * gcc-interface/misc.c (gnat_parse_file): Take no arguments.
68 2010-11-17  Eric Botcazou  <ebotcazou@adacore.com>
70         * gcc-interface/trans.c (addressable_p): Rewrite obsolete paragraph in
71         head comment.
73 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
75         * gcc-interface/Make-lang.in (ada/misc.o): Use $(OPTS_H).
76         * gcc-interface/misc.c (gnat_handle_option): Take location_t parameter.
78 2010-11-10  Eric Botcazou  <ebotcazou@adacore.com>
80         * gcc-interface/trans.c (gigi): Don't set 'pure' flag on SJLJ routines.
81         * gcc-interface/utils2.c (compare_arrays): Add LOC parameter.  Set it
82         directly on all the comparison expressions.
83         (build_binary_op): Pass input_location to compare_arrays.
85 2010-11-10  Eric Botcazou  <ebotcazou@adacore.com>
87         * gcc-interface/trans.c (lvalue_required_p) <N_Type_Conversion>): Look
88         through it for elementary types as well.
89         <N_Unchecked_Type_Conversion>: Adjust to above change.
90         <N_Allocator>: Likewise.
91         (gnat_to_gnu): Do not attempt to rewrite boolean literals.
93 2010-11-10  Eric Botcazou  <ebotcazou@adacore.com>
95         * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set DECL_ARTIFICIAL
96         on the reused DECL node coming from a renamed object.
97         Set DECL_IGNORED_P on the DECL node built for renaming entities if they
98         don't need debug info.
100 2010-11-09  Eric Botcazou  <ebotcazou@adacore.com>
102         * gcc-interface/utils.c (save_gnu_tree): Improve comments.
103         (get_gnu_tree): Likewise.
105 2010-11-09  Eric Botcazou  <ebotcazou@adacore.com>
107         * gcc-interface/decl.c (finish_fat_pointer_type): New function.
108         (gnat_to_gnu_entity) <E_Array_Type>: Use it to build the fat pointer
109         type.
110         <E_Access_Type>: Likewise.
112 2010-11-02  Eric Botcazou  <ebotcazou@adacore.com>
114         * gcc-interface/gigi.h (add_stmt_force): Declare.
115         (add_stmt_with_node_force): Likewise.
116         * gcc-interface/trans.c (Attribute_to_gnu): Don't set TREE_SIDE_EFFECTS
117         on the SAVE_EXPR built for cached expressions of parameter attributes.
118         (Subprogram_Body_to_gnu): Force evaluation of the SAVE_EXPR built for
119         cached expressions of parameter attributes.
120         (add_stmt_force): New function.
121         (add_stmt_with_node_force): Likewise.
123 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
125         * gcc-interface/trans.c (gigi): Fix formatting issues.
126         (build_raise_check): Likewise.
127         (gnat_to_gnu): Likewise.
128         * gcc-interface/utils2.c (build_call_raise_range): Likewise.
129         (build_call_raise_column): Likewise.
131 2010-10-26  Robert Dewar  <dewar@adacore.com>
133         * exp_ch5.adb, exp_prag.adb, sem_ch3.adb, exp_atag.adb, layout.adb,
134         sem_dist.adb, exp_ch7.adb, exp_util.adb, exp_attr.adb, exp_ch9.adb,
135         sem_ch10.adb, checks.adb, sem_prag.adb, par-endh.adb, sem_ch12.adb,
136         exp_smem.adb, sem_attr.adb, exp_ch4.adb, exp_ch6.adb, exp_ch8.adb,
137         sem_ch6.adb, exp_disp.adb, exp_aggr.adb, exp_dist.adb, sem_ch13.adb,
138         par-ch3.adb, par-ch5.adb, exp_strm.adb, exp_ch3.adb: Minor reformatting
139         * opt.ads: Minor comment fix.
141 2010-10-26  Vincent Celier  <celier@adacore.com>
143         * gnat_ugn.texi: Document option -s for gnatlink.
145 2010-10-26  Robert Dewar  <dewar@adacore.com>
147         * opt.ads: Move documentation on checksum stuff here from prj-nmsc
148         * prj-nmsc.adb (Process_Project_Level_Array_Attributes): Move
149         documentation on checksum versions to opt.ads.
151 2010-10-26  Vincent Celier  <celier@adacore.com>
153         * opt.ads (Checksum_Accumulate_Token_Checksum): New Boolean flag,
154         defaulted to True.
155         (Checksum_GNAT_6_3): New name of Old_Checksums
156         (Checksum_GNAT_5_03): New name of Old_Old_Checksums
157         * prj-nmsc.adb (Process_Project_Level_Array_Attributes): Adapt to new
158         names of Opt flags.
159         Set Checksum_Accumulate_Token_Checksum to False if GNAT version is 5.03
160         or before.
161         * scng.adb (Accumulate_Token_Checksum_GNAT_6_3): New name of procedure
162         Accumulate_Token_Checksum_Old.
163         (Accumulate_Token_Checksum_GNAT_5_03): New name of procedure
164         Accumulate_Token_Checksum_Old_Old.
165         (Nlit): Call Accumulate_Token_Checksum only if
166         Opt.Checksum_Accumulate_Token_Checksum is True.
167         (Scan): Ditto
169 2010-10-26  Robert Dewar  <dewar@adacore.com>
171         * sem_ch13.adb (Build_Invariant_Procedure): New calling sequence.
172         (Build_Invariant_Procedure): Properly handle analysis of invariant
173         expression with proper end-of-visible-decls visibility.
174         * sem_ch13.ads (Build_Invariant_Procedure): Changed calling sequence.
175         * sem_ch3.adb (Process_Full_View): Don't build invariant procedure
176         (too late).
177         (Analyze_Private_Extension_Declaration): Propagate invariant flags.
178         * sem_ch7.adb (Analyze_Package_Specification): Build invariant
179         procedures.
181 2010-10-26  Vincent Celier  <celier@adacore.com>
183         * opt.ads (Old_Checksums, Old_Old_Checksums): New Boolean flags,
184         defaulted to False.
185         * prj-nmsc.adb (Process_Project_Level_Array_Attributes): When
186         processing attribute Toolchain_Version ("Ada"), set Opt.Old_Checksums
187         and Opt.Old_Old_Checksums depending on the GNAT version.
188         * scng.adb (Accumulate_Token_Checksum_Old): New procedure.
189         (Accumulate_Token_Checksum_Old_Old): New procedure.
190         (Scan): For keywords, when Opt.Old_Checksums is True, call one of the
191         alternative procedures Accumulate_Token_Checksum_Old or
192         Accumulate_Token_Checksum_Old_Old, instead of Accumulate_Token_Checksum.
194 2010-10-26  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
196         * gcc-interface/utils2.c (build_compound_expr): New function.
197         * gcc-interface/gigi.h (build_compound_expr): Declare it.
198         * gcc-interface/trans.c (Attribute_to_gnu, call_to_gnu): Use it.
199         (gnat_to_gnu, case N_Expression_With_Actions): Likewise. 
201 2010-10-26  Javier Miranda  <miranda@adacore.com>
203         * sem_prag.adb (Process_Import_Or_Interface): Skip primitives of
204         interface types when processing all the entities in the homonym chain
205         that are declared in the same declarative part.
207 2010-10-26  Ed Schonberg  <schonberg@adacore.com>
209         * sem_ch3.adb (Process_Range_In_Decl): If the range is part of a
210         quantified expression, the insertion point for range checks will be
211         arbitrarily far in the tree.
212         * sem_ch5.adb (One_Bound): Use Insert_Actions for the declaration of
213         the temporary that holds the value of the bounds.
214         * sem_res.adb (Resolve_Quantified_Expressions): Disable expansion of
215         condition until the full expression is expanded.
217 2010-10-26  Robert Dewar  <dewar@adacore.com>
219         * opt.ads: Comment fix.
220         * sem_cat.adb: Treat categorization errors as warnings in GNAT Mode.
221         * switch-c.adb: GNAT Mode does not set
222         Treat_Categorization_Errors_As_Warnings.
224 2010-10-26  Ed Schonberg  <schonberg@adacore.com>
226         * sem_ch8.adb (Analyze_Subprogram_Renaming): Improve warning when an
227         operator renames another one with a different name.
229 2010-10-26  Thomas Quinot  <quinot@adacore.com>
231         * exp_ch4.adb, exp_pakd.adb: Minor reformatting.
233 2010-10-26  Bob Duff  <duff@adacore.com>
235         * namet.adb: Improve hash function.
237 2010-10-26  Thomas Quinot  <quinot@adacore.com>
239         * sem_disp.adb: Minor reformatting.
241 2010-10-26  Robert Dewar  <dewar@adacore.com>
243         * sem_ch3.adb, sem_ch4.adb, sem_disp.adb, switch-c.adb: Minor
244         reformatting.
245         * gnat_ugn.texi: Document -gnateP switch.
247 2010-10-26  Robert Dewar  <dewar@adacore.com>
249         * opt.ads (Treat_Categorization_Errors_As_Warnings): New flag
250         * sem_cat.adb (Check_Categorization_Dependencies):
251         Use Check_Categorization_Dependencies
252         * switch-c.adb: GNAT Mode sets Treat_Categorization_Errors_As_Warnings
253         -gnateP sets Treat_Categorization_Errors_As_Warnings
254         * usage.adb: Add line for -gnateP switch
256 2010-10-26  Javier Miranda  <miranda@adacore.com>
258         * sem_ch3.adb (Add_Internal_Interface_Entities): Handle primitives
259         inherited from the parent that cover interface primitives.
260         (Derive_Progenitor_Subprograms): Handle primitives inherited from
261         the parent that cover interface primitives.
262         * sem_disp.adb (Find_Primitive_Covering_Interface): When searching in
263         the list of primitives of the type extend the test to include inherited
264         private primitives.
265         * sem_ch6.ads (Is_Interface_Conformant): Add missing documentation.
266         * sem_ch7.adb (Declare_Inherited_Private_Subprograms): Add missing
267         barrier to the loop searching for explicit overriding primitives.
268         * sem_ch4.adb (Analyze_Indexed_Component_Form): Add missing barrier
269         before accessing attribute Entity.
271 2010-10-26  Bob Duff  <duff@adacore.com>
273         * make.adb: Call Namet.Finalize, so we can get statistics.
275 2010-10-26  Geert Bosch  <bosch@adacore.com>
277         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Use the subprogram_body
278         node to determine wether the subprogram is a rewritten parameterized
279         expression.
281 2010-10-26  Robert Dewar  <dewar@adacore.com>
283         * opt.ads: Minor code reorganization.  Alphabetize Warning switches.
285 2010-10-26  Robert Dewar  <dewar@adacore.com>
287         * sem_res.adb, xsinfo.adb: Minor reformatting.
289 2010-10-26  Bob Duff  <duff@adacore.com>
291         * namet.adb (Finalize): More cleanup of statistics printouts.
293 2010-10-26  Robert Dewar  <dewar@adacore.com>
295         * ceinfo.adb: Minor reformatting.
297 2010-10-26  Javier Miranda  <miranda@adacore.com>
299         * sem_ch6.adb (Check_Overriding_Indicator, New_Overloaded_Entity): When
300         setting attribute Overridden_Operation do not reference the entities
301         generated by Derive_Subprograms but their aliased entity (which
302         is the primitive inherited from the parent type).
304 2010-10-26  Bob Duff  <duff@adacore.com>
306         * namet.adb, namet.ads: Minor cleanup.
308 2010-10-26  Arnaud Charlet  <charlet@adacore.com>
310         * gcc-interface/Make-lang.in: Update dependencies.
312 2010-10-26  Robert Dewar  <dewar@adacore.com>
314         * einfo.ads, einfo.adb (Is_Base_Type): New function, use it where
315         appropriate.
316         * exp_ch6.adb, exp_dbug.adb, exp_disp.adb, freeze.adb, lib-xref.adb,
317         sem_aux.adb, sem_ch3.adb, sem_ch7.adb, sem_ch8.adb (Is_Base_Type): Use
318         this new abstraction where appropriate.
320 2010-10-26  Ed Schonberg  <schonberg@adacore.com>
322         * sem_ch12.adb: Code clean up.
324 2010-10-26  Paul Hilfinger  <hilfinger@adacore.com>
326         * exp_dbug.ads: Document effect of 'pragma Unchecked_Union' on
327         debugging data.
329 2010-10-26  Ed Schonberg  <schonberg@adacore.com>
331         * sem_util.adb (Note_Possible_Modification): If the target of an
332         assignment is the bound variable in an iterator, the domain of
333         iteration, i.e. array or container, is modified as well.
335 2010-10-26  Bob Duff  <duff@adacore.com>
337         * Make-generated.in: Make the relevant make targets depend on
338         ceinfo.adb and csinfo.adb.
339         * csinfo.adb, ceinfo.adb: Make sure it raises an exception on failure,
340         so when called from xeinfo, the failure will be noticed.
341         * sinfo.ads: Update comments to reflect the fact that xsinfo runs csinfo
342         * xsinfo.adb, xeinfo.adb: Run ceinfo to check for errors. Close files.
344 2010-10-26  Ed Schonberg  <schonberg@adacore.com>
346         * exp_ch4.adb: Set properly parent field of operands of concatenation.
348 2010-10-26  Ed Schonberg  <schonberg@adacore.com>
350         * sem_res.adb (Check_Infinite_Recursion): A recursive call within a
351         conditional expression or a case expression should not generate an
352         infinite recursion warning.
354 2010-10-26  Javier Miranda  <miranda@adacore.com>
356         * einfo.ads, einfo.adb (Is_Overriding_Operation): Removed.
357         (Set_Is_Overriding_Operation): Removed.
358         * sem_ch3.adb (Check_Abstract_Overriding): Remove redundant call to
359         Is_Overriding_Operation.
360         * exp_ch7.adb (Check_Visibly_Controlled): Remove redundant call to
361         Is_Overriding_Operation.
362         * sem_ch7.adb (Declare_Inherited_Private_Subprograms): Remove redundant
363         call to Set_Is_Overriding_Operation.
364         * sem_util.adb (Collect_Primitive_Operations): Replace test on
365         Is_Overriding_Operation by test on the presence of attribute
366         Overridden_Operation.
367         (Original_Corresponding_Operation): Remove redundant call to attribute
368         Is_Overriding_Operation.
369         * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Remove
370         redundant call to Is_Overriding_Operation.
371         (Verify_Overriding_Indicator): Replace several occurrences of test on
372         Is_Overriding_Operation by test on the presence of attribute
373         Overridden_Operation.
374         (Check_Convention): Replace test on Is_Overriding_Operation by test on
375         the presence of Overridden_Operation.
376         (Check_Overriding_Indicator): Add missing decoration of attribute
377         Overridden_Operation. Minor code cleanup.
378         (New_Overloaded_Entity): Replace occurrence of test on
379         Is_Overriding_Operation by test on the presence of attribute
380         Overridden_Operation. Remove redundant setting of attribute
381         Is_Overriding_Operation plus minor code reorganization.
382         Add missing decoration of attribute Overridden_Operation.
383         * sem_elim.adb (Set_Eliminated): Replace test on
384         Is_Overriding_Operation by test on the presence of Overridden_Operation.
385         * sem_ch8.adb (Analyze_Subprogram_Renaming): Replace test on
386         Is_Overriding_Operation by test on the presence of
387         Overridden_Operation. Remove a redundant test on attribute
388         Is_Overriding_Operation. 
389         * lib-xref.adb (Generate_Reference): Replace test on
390         Is_Overriding_Operation by test on the presence of Overridden_Operation.
391         (Output_References): Replace test on Is_Overriding_Operation by test on
392         the presence of Overridden_Operation.
393         * sem_disp.adb (Override_Dispatching_Operation): Replace test on
394         Is_Overriding_Operation by test on the presence of Overridden_Operation.
395         Add missing decoration of attribute Overridden_Operation.
397 2010-10-26  Robert Dewar  <dewar@adacore.com>
399         * sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order): Properly check
400         RM 13.4.1(10).
402 2010-10-26  Bob Duff  <duff@adacore.com>
404         * sem_res.adb (Resolve_Actuals): In case of certain
405         internally-generated type conversions (created by OK_Convert_To, so the
406         Conversion_OK flag is set), avoid fetching the component type when it's
407         not really an array type, but a private type completed by an array type.
409 2010-10-26  Ed Schonberg  <schonberg@adacore.com>
411         * sem_ch5.adb: Adjust format of error message.
413 2010-10-26  Robert Dewar  <dewar@adacore.com>
415         * einfo.ads, einfo.adb (OK_To_Reference): Removed, no longer used.
416         * exp_util.adb (Side_Effect_Free): Put in safety barrier in code to
417         detect renamings to avoid problems with invariants.
418         * sem_ch13.adb (Replace_Type_References_Generic): New procedure
419         (Build_Invariant_Procedure): Use Replace_Type_Reference_Generic
420         (Build_Predicate_Function): Use Replace_Type_Reference_Generic
421         * sem_res.adb, sem_ch8.adb, sem_ch4.adb (OK_To_Reference): Remove
422         references, flag is no longer set.
424 2010-10-26  Vincent Celier  <celier@adacore.com>
426         * prj.ads (Source_Data): New Boolean component Initialized, defaulted
427         to False, set to True when Source_Data is completely initialized.
428         * prj-env.adb: Minor comment fix.
430 2010-10-26  Robert Dewar  <dewar@adacore.com>
432         * sem_case.adb, sem_ch6.adb, sem_util.adb: Minor reformatting.
434 2010-10-26  Ed Schonberg  <schonberg@adacore.com>
436         * sem_ch5.adb (Analyze_Iteration_Scheme): Diagnose attempt to use thew
437         form "for X in A" when A is an array object. This form is only intended
438         for containers.
439         * sem_eval.adb: Fix reference to non-existing field of type conversion
440         node.
441         * sem_case.adb (Check_Choices): Improve error reporting for overlapping
442         choices in case statements.
444 2010-10-26  Gary Dismukes  <dismukes@adacore.com>
446         * exp_disp.adb (Expand_Interface_Actuals): When expanding an actual for
447         a class-wide interface formal that involves applying a displacement
448         conversion to the actual, check for the case of calling a build-in-place
449         function and handle generation of the implicit BIP parameters (call
450         Make_Build_In_Place_Call_In_Anonymous_Context).
451         Add with and use of Exp_Ch6.
453 2010-10-26  Robert Dewar  <dewar@adacore.com>
455         * sem_prag.adb, sem_cat.ads: Minor reformatting.
457 2010-10-26  Sergey Rybin  <rybin@adacore.com>
459         * vms_data.ads: Define VMS qualifier for gnatelim '--ignore' option
461 2010-10-26  Thomas Quinot  <quinot@adacore.com>
463         * sem_util.adb (Has_Preelaborable_Initialization.Check_Components):
464         For a discriminant, use Discriminant_Default_Value rather than
465         Expression (Declaration_Node (D)).
467 2010-10-26  Geert Bosch  <bosch@adacore.com>
469         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Parameterized
470         expressions don't need a spec, even when style checks require
471         subprograms to have one.
473 2010-10-26  Arnaud Charlet  <charlet@adacore.com>
475         * gnatvsn.ads: Update comments.
477 2010-10-26  Matthew Heaney  <heaney@adacore.com>
479         * Makefile.rtl, impunit.adb: Add bounded hashed set and bounded hashed
480         map containers.
481         * a-cohata.ads: Add declaration of generic package for bounded hash
482         table types.
483         * a-chtgbo.ads, a-chtgbo.adb, a-chtgbk.ads, a-chtgbk.adb, a-cbhase.ads,
484         a-cbhase.adb, a-cbhama.ads, a-cbhama.adb: New files.
486 2010-10-26  Ed Schonberg  <schonberg@adacore.com>
488         * sem_warn.adb: Improve warning message on overlapping actuals.
490 2010-10-26  Thomas Quinot  <quinot@adacore.com>
492         * sem_ch4.adb, exp_dist.adb: Minor reformatting.
494 2010-10-26  Vincent Celier  <celier@adacore.com>
496         * makeusg.adb (Makeusg): Add lines for switches -vl, -vm and -vh.
498 2010-10-26  Robert Dewar  <dewar@adacore.com>
500         * exp_ch3.adb (Expand_N_Object_Declaration): Move generation of
501         predicate check to analyzer, since too much rewriting occurs in the
502         analyzer.
503         * sem_ch13.adb (Build_Predicate_Function): Change calling sequence, and
504         change the order in which things are done to fix several errors in
505         dealing with qualification of the type name.
506         (Build_Static_Predicate): Built static predicate after full analysis
507         of the body. This is necessary to fix several problems.
508         * sem_ch3.adb (Analyze_Object_Declaration): Move predicate check here
509         from expander, since too much expansion occurs in the analyzer to leave
510         it that late.
511         (Analyze_Object_Declaration): Change parameter Include_Null to new name
512         Include_Implicit in Is_Partially_Initialized_Type call.
513         (Analyze_Subtype_Declaration): Make sure predicates are proapagated in
514         some strange cases of internal subtype generation.
515         * sem_util.ads, sem_util.adb (Is_Partially_Initialized_Type): Change
516         Include_Null to Include_Implicit, now includes the case of
517         discriminants.
519 2010-10-26  Sergey Rybin  <rybin@adacore.com>
521         * gnat_rm.texi: Revise the documentation for pragma Eliminate. 
523 2010-10-26  Matthew Heaney  <heaney@adacore.com>
525         * Makefile.rtl, impunit.adb: Added bounded list container.
526         * a-cbdlli.ads, a-cbdlli.adb: New file.
528 2010-10-25  Eric Botcazou  <ebotcazou@adacore.com>
530         * gcc-interface/utils2.c: Include flags.h and remove prototypes.
531         (build_unary_op) <TRUTH_NOT_EXPR>: When not optimizing, fold the result
532         of the call to invert_truthvalue_loc.
533         * gcc-interface/Make-lang.in (utils2.o): Add $(FLAGS_H).
535 2010-10-25  Eric Botcazou  <ebotcazou@adacore.com>
537         * gcc-interface/utils.c (update_pointer_to): Clear TYPE_POINTER_TO and
538         TYPE_REFERENCE_TO of the old type after redirecting its pointer and
539         reference types.
541 2010-10-25  Eric Botcazou  <ebotcazou@adacore.com>
543         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not set
544         TREE_THIS_NOTRAP on the INDIRECT_REF node built for the template.
546 2010-10-25  Jose Ruiz  <ruiz@adacore.com>
548         * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for powerpc-linux):
549         Reorganize target pairs so that it works on linux and ElinOS.
551 2010-10-25  Pascal Obry  <obry@adacore.com>
552         
553         * adaint.c (__gnat_file_time_name_attr): Use GetFileAttributesEx to get
554         the timestamp. A bit faster than opening/closing the file.
555         (__gnat_stat_to_attr): Remove kludge for Windows.
556         (__gnat_file_exists_attr): Likewise.
557         The timestamp is now retreived using GetFileAttributesEx as faster.
559 2010-10-25  Javier Miranda  <miranda@adacore.com>
561         * sem_ch3.adb (Derive_Interface_Subprogram): New subprogram.
562         (Derive_Subprograms): For abstract private types transfer to the full
563         view entities of uncovered interface primitives. Required because if
564         the interface primitives are left in the private part of the package
565         they will be decorated as hidden when the analysis of the enclosing
566         package completes (and hence the interface primitive is not visible
567         for dispatching calls).
569 2010-10-25  Matthew Heaney  <heaney@adacore.com>
571         * Makefile.rtl, impunit.adb: Added bounded set and bounded map
572         containers.
573         * a-crbltr.ads: Added declaration of generic package for bounded tree
574         types.
575         * a-rbtgbo.ads, a-rbtgbo.adb, a-rbtgbk.ads, a-rbtgbk.adb, a-btgbso.ads,
576         a-btgbso.adb, a-cborse.ads, a-cborse.adb, a-cborma.ads, a-cborma.adb:
577         New.
579 2010-10-25  Thomas Quinot  <quinot@adacore.com>
581         * sem_util.adb: Minor reformatting.
582         * usage.adb: Fix usage line for -gnatwh.
584 2010-10-25  Thomas Quinot  <quinot@adacore.com>
586         * sem_ch12.adb (Analyze_Package_Instantiation): For an
587         instantiation in an RCI spec, omit package body if instantiation comes
588         from source, even as a nested
589         package.
590         * exp_dist.adb (Add_Calling_Stubs_To_Declarations,
591         *_Support.Add_Receiving_Stubs_To_Declarations): Handle the case of
592         nested packages, package instantiations and subprogram instantiations.
594 2010-10-25  Robert Dewar  <dewar@adacore.com>
596         * exp_ch5.adb (Expand_Predicated_Loop): Remove code for loop through
597         non-static predicate, since we agree not to allow this.
598         (Expand_Predicated_Loop): Properlay handle false predicate (null
599         list in Static_Predicate field.
600         * sem_ch13.adb (Build_Static_Predicate): Extensive changes to clean up
601         handling of more general predicate forms.
603 2010-10-25  Robert Dewar  <dewar@adacore.com>
605         * sem_ch4.adb, sem_util.adb: Minor reformatting.
606         * sem_ch8.adb (Find_Selected_Component): Allow selection from instance
607         of type in predicate or invariant expression.
609 2010-10-25  Pascal Obry  <obry@adacore.com>
611         * adaint.c (__gnat_stat_to_attr): Can set the timestamp on Windows now.
612         (f2t): New routine.
613         (__gnat_stat): Rewrite Win32 version.
615 2010-10-25  Robert Dewar  <dewar@adacore.com>
617         * sem_warn.adb, einfo.ads, exp_ch4.adb: Minor comment fix
618         * sem_case.adb: Comment clarification for loops through false
619         predicates.
620         * sem_util.adb: Minor reformatting
621         (Check_Order_Dependence): Fix bad double blank in error message
623 2010-10-25  Ed Schonberg  <schonberg@adacore.com>
625         * sem_ch4.adb (Analyze_Membership_Op): in Ada_2012 a membership
626         operation can have a single alternative that is a value of the type.
627         Rewrite operation as an equality test.
629 2010-10-25  Matthew Heaney  <heaney@adacore.com>
631         * Makefile.rtl, impunit.adb: Added a-cobove (bounded vector container)
632         to lists.
633         * a-contai.ads: Added declaration of Capacity_Error exception.
634         * a-cobove.ads, a-cobove.adb: New files.
636 2010-10-25  Thomas Quinot  <quinot@adacore.com>
638         * uname.adb: Revert previous change, no longer needed after change
639         in par-ch10.adb.
641 2010-10-25  Thomas Quinot  <quinot@adacore.com>
643         * scos.ads: Minor comment fix.
645 2010-10-25  Ed Schonberg  <schonberg@adacore.com>
647         * sem_ch5.adb (Analyze_Assignment_Statement): Check dangerous order
648         dependence.
649         * sem_ch6.adb (Analyze_Procedure_Call_Statement): Ditto.
650         * sem_res.adb (Analyze_Actuals): Add actual to list of actuals for
651         current construct, for subsequent order dependence checking.
652         (Resolve): Check order dependence on expressions that are not
653         subexpressions.
654         * sem_util.adb (Check_Order_Dependence): Code cleanup, to correspond
655         to latest version of AI05-144-2.
656         * sem_warn.adb (Warn_On_Overlapping_Actuals): Code cleanup.
658 2010-10-25  Robert Dewar  <dewar@adacore.com>
660         * sem_ch13.adb (Build_Static_Predicate): Moved out of
661         Build_Predicate_Function.
662         (Build_Static_Predicate): Complet rewrite for more general predicates
664 2010-10-25  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
665             Eric Botcazou  <ebotcazou@adacore.com>
667         * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Function): Allow
668         In Out/Out parameters for functions.
669         * gcc-interface/trans.c (gnu_return_var_stack): New variable.
670         (create_init_temporary): New static function.
671         (Subprogram_Body_to_gnu): Handle In Out/Out parameters for functions.
672         (call_to_gnu): Likewise.  Use create_init_temporary in order to create
673         temporaries for unaligned parameters and return value.  If there is an
674         unaligned In Out or Out parameter passed by reference, push a binding
675         level if not already done.  If a binding level has been pushed and the
676         call is returning a value, create the call statement.
677         (gnat_to_gnu) <N_Return_Statement>: Handle In Out/Out parameters for
678         functions.
680 2010-10-22  Ben Brosgol  <brosgol@adacore.com>
682         * gnat_rm.texi: Add chapter on Ada 2012 support.
684 2010-10-22  Robert Dewar  <dewar@adacore.com>
686         * sem_ch12.adb: Minor reformatting.
688 2010-10-22  Thomas Quinot  <quinot@adacore.com>
690         * exp_dist.adb: Mark missing case of nested package when expanding
691         stubs.
693 2010-10-22  Ed Schonberg  <schonberg@adacore.com>
695         * par-ch10.adb: Discard incomplete with_clause.
697 2010-10-22  Robert Dewar  <dewar@adacore.com>
699         * checks.adb (Enable_Range_Check): Remove code suppressing range check
700         if static predicate present, not needed.
701         * exp_attr.adb (Expand_Pred_Succ): Check Suppress_Assignment_Checks flag
702         * exp_ch3.adb (Expand_N_Object_Declaration): Check
703         Suppress_Assignment_Checks flag.
704         * exp_ch4.adb (Expand_N_In): Make some corrections for proper handling
705         of ranges when predicates are present.
706         * exp_ch5.adb (Expand_Predicated_Loop): New procedure
707         (Expand_N_Assignment_Statement): Check Suppress_Assignment_Checks flag
708         (Expand_N_Loop_Statement): Handle loops over predicated types
709         * sem_case.adb (Analyze_Choices): Remove extra blank in error message.
710         * sem_ch13.adb (Build_Predicate_Function.Add_Call): Suppress info
711         message for inheritance if within a generic instance, not useful there!
712         (Build_Static_Predicate): Optimize test in predicate function
713         based on static ranges determined.
714         * sem_ch5.adb (Analyze_Iteration_Scheme): Error for loop through
715         subtype with non-static predicate.
716         * sinfo.ads, sinfo.adb (Suppress_Assignment_Checks): New flag.
718 2010-10-22  Thomas Quinot  <quinot@adacore.com>
720         * uname.adb (Get_Unit_Name.Add_Node_Name): If encountering an error
721         node in the unit name, propagate Program_Error to guard against
722         cascaded errors.
724 2010-10-22  Javier Miranda  <miranda@adacore.com>
726         * sem_ch8.adb (Find_Selected_Component): Do not generate a subtype for
727         selected components of dispatch table wrappers.
729 2010-10-22  Ed Schonberg  <schonberg@adacore.com>
731         * exp_ch9.adb (Make_Initialize_Protection): A protected type that
732         implements an interface must be treated as if it has entries, to
733         support dispatching select statements.
735 2010-10-22  Robert Dewar  <dewar@adacore.com>
737         * sem_aggr.adb, sem_ch3.adb: Minor reformatting.
739 2010-10-22  Javier Miranda  <miranda@adacore.com>
741         * sem_aggr.adb (Resolve_Array_Aggregate.Add): If the type of the
742         aggregate has a non standard representation the attributes 'Val and
743         'Pos expand into function calls and the resulting expression is
744         considered non-safe for reevaluation by the backend. Relocate it into
745         a constant temporary to indicate to the backend that it is side
746         effects free.
748 2010-10-22  Ed Schonberg  <schonberg@adacore.com>
750         * sem_ch3.adb (Build_Concurrent_Derived_Type): Create declaration for
751         derived corresponding record type only when expansion is enabled.
753 2010-10-22  Robert Dewar  <dewar@adacore.com>
755         * sem_case.adb, sem_attr.adb (Bad_Predicated_Subtype_Use): Change order
756         of parameters.
757         * sem_ch13.adb (Build_Predicate_Function): Don't give inheritance
758         messages for generic actual subtypes.
759         * sem_ch9.adb, sem_res.adb, sem_util.adb, sem_util.ads, sem_ch3.adb
760         (Bad_Predicated_Subtype_Use): Use this procedure.
762 2010-10-22  Robert Dewar  <dewar@adacore.com>
764         * sem_ch5.adb: Minor reformatting.
766 2010-10-22  Robert Dewar  <dewar@adacore.com>
768         * a-except-2005.adb (Rmsg_18): New message text.
769         * a-except.adb (Rmsg_18): New message text.
770         * atree.adb (List25): New function
771         (Set_List25): New procedure
772         * atree.ads (List25): New function
773         (Set_List25): New procedure
774         * einfo.adb (Static_Predicate): Is now a list
775         (OK_To_Reference): Present in all entities
776         * einfo.ads (Static_Predicate): Is now a list
777         (OK_To_Reference): Applies to all entities
778         * exp_ch13.adb (Build_Predicate_Function): Moved to Sem_Ch13
779         * sem_attr.adb (Bad_Attribute_For_Predicate): Call
780         Bad_Predicated_Subtype_Use.
781         * sem_case.ads, sem_case.adb: Major surgery to deal with predicated
782         subtype case.
783         * sem_ch13.adb (Build_Predicate_Function): Moved from Exp_Ch13 to
784         Sem_Ch13.
785         (Build_Static_Predicate): New procedure handles static predicates.
786         * sem_ch3.adb (Analyze_Subtype_Declaration): Delay freeze on subtype
787         with no constraint if ancestor subtype has predicates.
788         (Analyze_Variant_Part): New calling sequence for Analyze_Choices
789         * sem_ch4.adb (Junk_Operand): Don't complain about OK_To_Reference
790         entity.
791         (Analyze_Case_Expression): New calling sequence for Analyze_Choices
792         * sem_ch5.adb (Analyze_Case_Statement): New calling sequence for
793         Analyze_Choices.
794         * sem_util.ads, sem_util.adb (Bad_Predicated_Subtype_Use): New procedure
795         * types.ads (PE_Bad_Predicated_Generic_Type): Replaces
796         PE_Bad_Attribute_For_Predicate.
797         * atree.h: Add definition of List25.
799 2010-10-22  Jerome Lambourg  <lambourg@adacore.com>
801         * gnatlink.adb (Process_Binder_File): Remove CLI-specific code, now
802         moved to dotnet-ld.
803         (Gnatlink): Remove CLI-specific code, moved to dotnet-ld
804         * bindgen.adb (Gen_Object_Files_Options): Do not issue -L switches with
805         the .NET compiler, useless and unsupported.
807 2010-10-22  Robert Dewar  <dewar@adacore.com>
809         * sem_util.ads (Get_Num_Lit_From_Pos): Fix errors in documentation,
810         this returns a Node_Id for a reference to the entity, not the entity
811         itself!
813 2010-10-22  Ed Schonberg  <schonberg@adacore.com>
815         * sem_ch5.adb (Analyze_Iteration_Scheme): use Insert_Actions when
816         bounds require a temporary.
818 2010-10-22  Robert Dewar  <dewar@adacore.com>
820         * sem_ch4.adb: Minor reformatting.
821         * sinfo.ads: Minor comment fixes for Ada 2012 syntax.
823 2010-10-22  Robert Dewar  <dewar@adacore.com>
825         * par-ch5.adb: Minor reformatting.
826         * gcc-interface/Make-lang.in: Update dependencies.
828 2010-10-22  Robert Dewar  <dewar@adacore.com>
830         * a-except.adb, a-except-2005.adb: Add new Rcheck entry.
831         * exp_ch13.adb (Add_Call): Make sure subtype is marked with
832         Has_Predicates set to True if it inherits predicates.
833         * sem_attr.adb: Handle 'First/'Last/'Range for predicated types
834         * types.ads (PE_Bad_Attribute_For_Predicate): New reason code
835         * types.h: Add new Rcheck entry.
836         * einfo.ads, einfo.adb (Static_Predicate): New field.
837         Minor code reorganization (file float routines in proper section)
838         Fix bad field name in comments.
840 2010-10-22  Robert Dewar  <dewar@adacore.com>
842         * sem_eval.adb (Subtypes_Statically_Compatible): Check null exclusion
843         case.
845 2010-10-22  Vincent Celier  <celier@adacore.com>
847         * prj-conf.adb (Get_Config_Switches): Detect if there is at least one
848         declaration of IDE'Compiler_Command for one of the language in the main
849         project.
850         (Do_Autoconf): If there were at least one Compiler_Command declared and
851         no target, invoke gprconfig with --target=all instead of the normalized
852         host name.
854 2010-10-22  Robert Dewar  <dewar@adacore.com>
856         * par-ch4.adb: Update syntax in comments for Ada 2012.
857         * sinfo.ads: Update syntax in comments for Ada 2012
858         * par-ch3.adb (Check_Restricted_Expression): Remove "in Ada 2012 mode"
859         from msg.
861 2010-10-22  Gary Dismukes  <dismukes@adacore.com>
863         * sem_ch3.adb (Check_Or_Process_Discriminants): In Ada 2012, allow
864         limited tagged types to have defaulted discriminants. Customize the
865         error message for the Ada 2012 case.
866         (Process_Discriminants): In Ada 2012, allow limited tagged types to have
867         defaulted discriminants. Customize the error message for the Ada 2012
868         case.
869         * sem_ch6.adb (Create_Extra_Formals): Suppress creation of the extra
870         formal for out formals of discriminated types in the case where the
871         underlying type is a limited tagged type.
872         * exp_attr.adb (Expand_N_Attribute_Reference, case
873         Attribute_Constrained): Return True for 'Constrained when the
874         underlying type of the prefix is a limited tagged type.
876 2010-10-22  Thomas Quinot  <quinot@adacore.com>
878         * sem_ch3.adb (Complete_Private_Subtype): The full view of the subtype
879         may already have a rep item chain inherited from the full view of the
880         base type, so do not overwrite it when propagating rep items from the
881         partial view of the subtype.
882         * sem_ch3.adb: Minor code reorganization.  Minor reformatting.
884 2010-10-22  Sergey Rybin  <rybin@adacore.com>
886         * gnat_ugn.texi (gnatmetric): Remove description of debug option.
888 2010-10-22  Tristan Gingold  <gingold@adacore.com>
890         * adaint.c (__gnat_number_of_cpus): Add implementation for VMS.
892 2010-10-22  Ed Schonberg  <schonberg@adacore.com>
894         * par-ch5.adb: Set properly starting sloc of loop parameter.
896 2010-10-22  Ed Schonberg  <schonberg@adacore.com>
898         * sem_util.adb (May_Be_Lvalue): An actual in a function call can be an
899         lvalue in Ada2012, if the function has in-out parameters.
901 2010-10-22  Robert Dewar  <dewar@adacore.com>
903         * cstand.adb, einfo.adb, exp_attr.adb, sem_prag.adb, sem_vfpt.adb,
904         sem_ch10.adb: Minor reformatting.
906 2010-10-22  Sergey Rybin  <rybin@adacore.com>
908         * gnat_ugn.texi: Remove most of the content of gnatcheck chapter.
910 2010-10-22  Ed Schonberg  <schonberg@adacore.com>
912         * sem_attr.adb: Handle indexed P'old.
914 2010-10-22  Geert Bosch  <bosch@adacore.com>
916         * cstand.adb (Build_Float_Type): Set Float_Rep according to platform.
917         * einfo.ads (Float_Rep): New attribute.
918         (Float_Rep_Kind): Move from body. Add comments.
919         * einfo.adb (Float_Rep_Kind): Move to spec
920         (Float_Rep): Now a real field instead of local function.
921         (Set_Float_Rep): New procedure to set floating point representation
922         (Set_Vax_Float): Remove.
923         (Write_Entity_Flags): Remove Vax_Float flag.
924         (Write_Field10_Name): Add E_Floating_Point_Type case for Float_Rep.
925         * exp_attr.adb (Attribute_Valid): Use case statement for representation
926         specific processing.
927         * sem_ch3.adb (Build_Derived_Numeric_Type,
928         Floating_Point_Type_Declaration): Set Float_Rep instead of Vax_Float
929         attribute.
930         * sem_util.ads, sem_util.adb (Is_AAMP_Float): Remove.
931         * sem_vfpt.adb (Set_D_Float, Set_F_Float, Set_G_Float, Set_IEEE_Long,
932         Set_IEEE_Short): Set Float_Rep instead of Vax_Float attribute.
934 2010-10-22  Robert Dewar  <dewar@adacore.com>
936         * sprint.adb: Minor reformatting.
938 2010-10-22  Robert Dewar  <dewar@adacore.com>
940         * exp_ch3.adb (Expand_N_Object_Declaration): Do required predicate
941         checks.
942         * sem_ch3.adb (Complete_Private_Subtype): Propagate predicates to full
943         view.
944         * sem_ch6.adb (Invariants_Or_Predicates_Present): New name for
945         Invariants_Present.
946         (Process_PPCs): Handle predicates generating post conditions
947         * sem_util.adb (Is_Partially_Initialized_Type): Add
948         Include_Null parameter.
949         * sem_util.ads (Is_Partially_Initialized_Type): Add
950         Include_Null parameter.
952 2010-10-22  Sergey Rybin  <rybin@adacore.com>
954         * gnat_ugn.texi (gnatelim): Add description for '--ignore' option
956 2010-10-22  Thomas Quinot  <quinot@adacore.com>
958         * sem_prag.adb (Check_First_Subtype): Specialize error messages for
959         case where argument is not a type.
961 2010-10-22  Robert Dewar  <dewar@adacore.com>
963         * exp_ch5.adb, par-ch4.adb, par-ch5.adb, sem_ch5.adb, sinfo.ads: Minor
964         reformatting.
966 2010-10-22  Arnaud Charlet  <charlet@adacore.com>
968         * a-locale.adb: Minor code clean up.
970 2010-10-22  Thomas Quinot  <quinot@adacore.com>
972         * exp_ch4.adb: Minor code reorganization and factoring.
974 2010-10-22  Thomas Quinot  <quinot@adacore.com>
976         * exp_ch5.adb, sem_ch5.adb, sinfo.ads, snames.ads-tmpl, par-ch5.adb:
977         Minor reformatting.
979 2010-10-22  Geert Bosch  <bosch@adacore.com>
981         * stand.ads: Fix typo in comment.
983 2010-10-22  Ed Schonberg  <schonberg@adacore.com>
985         * sem_ch6.adb: Enable in-out parameter for functions.
987 2010-10-22  Ed Schonberg  <schonberg@adacore.com>
989         * sem_ch4.adb (Analyze_Quantified_Expression): Handle properly loop
990         iterators that are transformed into container iterators after analysis.
991         * exp_ch4.adb (Expand_N_Quantified_Expression): Handle properly both
992         iterator forms before rewriting as a loop.
994 2010-10-22  Brett Porter  <porter@adacore.com>
996         * a-locale.adb, a-locale.ads, locales.c: New files.
997         * Makefile.rtl: Add a-locale
998         * gcc-interface/Makefile.in: Add locales.c
1000 2010-10-22  Robert Dewar  <dewar@adacore.com>
1002         * sem_util.ads, sem_util.adb, sem_aux.ads, sem_aux.adb
1003         (Is_Generic_Formal): Moved from Sem_Util to Sem_Aux.
1005 2010-10-22  Ed Schonberg  <schonberg@adacore.com>
1007         * exp_ch5.adb (Expand_Iterator_Loop): New subprogram, implements new
1008         iterator forms over arrays and containers, in loops and quantified
1009         expressions.
1010         * exp_util.adb (Insert_Actions): include N_Iterator_Specification.
1011         * par-ch4.adb (P_Quantified_Expression): Handle iterator specifications.
1012         * par-ch5.adb (P_Iterator_Specification): New subprogram. Modify
1013         P_Iteration_Scheme to handle both loop forms.
1014         * sem.adb: Handle N_Iterator_Specification.
1015         * sem_ch5.adb, sem_ch5.ads (Analyze_Iterator_Specification): New
1016         subprogram.
1017         * sinfo.adb, sinfo.ads: New node N_Iterator_Specification.
1018         N_Iteration_Scheme can now include an Iterator_Specification. Ditto
1019         for N_Quantified_Expression.
1020         * snames.ads-tmpl: Add names Cursor, Element, Element_Type, No_Element,
1021         and Previous, to support iterators over predefined containers.
1022         * sprint.adb: Handle N_Iterator_Specification.
1024 2010-10-22  Thomas Quinot  <quinot@adacore.com>
1026         * sem_prag.adb, sem_ch12.adb, sem_util.adb, sem_util.ads
1027         (Is_Generic_Formal): Move from body of Sem_Ch12 to Sem_Util.
1028         (Check_Arg_Is_Local_Name): Fix check in the case of a pragma appearing
1029         immediately after a library unit.
1030         (Analyze_Pragma, case Preelaborable_Initialization): Pragma may apply to
1031         a formal derived type.
1033 2010-10-22  Geert Bosch  <bosch@adacore.com>
1035         * gcc-interface/Make-lang.in: Remove ttypef.ads
1036         * checks.adb: Use Machine_Mantissa_Value and Machine_Radix_Value instead
1037         of Machine_Mantissa and Machine_Radix.
1038         * cstand.adb (P_Float_Range): Directly print the Type_Low_Bound and
1039         Type_High_Bound of the type, instead of choosing constants from Ttypef.
1040         (Set_Float_Bounds): Compute the bounds based on Machine_Radix_Value,
1041         Machine_Emax_Value and Machine_Mantissa_Value instead of special-casing
1042         each type.
1043         * einfo.ads (Machine_Emax_Value, Machine_Emin_Value,
1044         Machine_Mantissa_Value, Machine_Radix_Value, Model_Emin_Value,
1045         Model_Epsilon_Value, Model_Mantissa_Value, Model_Small_Value,
1046         Safe_Emax_Value, Safe_First_Value, Safe_Last_Value): Add new
1047         synthesized floating point attributes.
1048         * einfo.adb (Float_Rep): Determine the kind of floating point
1049         representation used for a given type.
1050         (Machine_Emax_Value, Machine_Emin_Value, Machine_Mantissa_Value,
1051         Machine_Radix_Value): Implement based on Float_Rep_Kind of a type and
1052         the number of digits in the type.
1053         (Model_Emin_Value, Model_Epsilon_Value, Model_Mantissa_Value,
1054         Model_Small_Value, Safe_Emax_Value, Safe_First_Value, Safe_Last_Value):
1055         Implement new synthesized floating point attributes based on the various
1056         machine attributes.
1057         * eval_fat.ads: Remove Machine_Mantissa and Machine_Radix.
1058         * eval_fat.adb (Machine_Mantissa, Machine_Radix): Remove. Use the
1059         Machine_Mantissa_Value and Machine_Radix_Value functions instead.
1060         * exp_vfpt.adb (VAXFF_Digits, VAXDF_Digits, VAXFG_Digits): Define local
1061         constants, instead of using constants from Ttypef.
1062         * gnat_rm.texi: Reword comments referencing Ttypef.
1063         * sem_attr.ads: Reword comment referencing Ttypef.
1064         * sem_attr.adb (Float_Attribute_Universal_Integer,
1065         Float_Attribute_Universal_Real): Remove.
1066         (Attribute_Machine_Emax, Attribute_Machine_Emin,
1067         Attribute_Machine_Mantissa, Attribute_Model_Epsilon,
1068         Attribute_Model_Mantissa, Attribute_Model_Small, Attribute_Safe_Emax,
1069         Attribute_Safe_First, Attribute_Safe_Last, Model_Small_Value): Use
1070         attributes in Einfo instead of Float_Attribute_Universal_Real and
1071         Float_Attribute_Universal_Integer and all explicit constants.
1072         * sem_util.ads, sem_util.adb (Real_Convert): Remove.
1073         * sem_vfpt.adb (VAXDF_Digits, VAXFF_Digits, VAXGF_Digits, IEEEL_Digits,
1074         IEEES_Digits): New local constants, in order to remove dependency on
1075         Ttypef.
1076         * tbuild.ads (Make_Float_Literal): New function.
1077         * tbuild.adb (Make_Float_Literal): New function to create a new
1078         N_Real_Literal, constructing it as simple as possible for best
1079         output of constants in -gnatS.
1080         * ttypef.ads: Remove.
1082 2010-10-22  Robert Dewar  <dewar@adacore.com>
1084         * checks.adb (Apply_Predicate_Check): Remove attempt at optimization
1085         when subtype is the same, caused legitimate checks to be missed.
1086         * exp_ch13.adb (Build_Predicate_Function): Use Nearest_Ancestor to get
1087         inheritance from right entity.
1088         * freeze.adb (Freeze_Entity): Use Nearest_Ancestor to freeze in the
1089         derived type case if the ancestor type has predicates.
1090         * sem_aux.ads, sem_aux.adb (Nearest_Ancestor): New function.
1091         * sem_prag.adb (Check_Enabled): Minor code reorganization.
1093 2010-10-22  Arnaud Charlet  <charlet@adacore.com>
1095         * gcc-interface/utils.c, gcc-interface/gigi.h: Minor reformatting.
1097 2010-10-22  Thomas Quinot  <quinot@adacore.com>
1099         * einfo.ads (Declaration_Node): Clarify documentation, in particular
1100         regarding what is returned for subprogram entities.
1102 2010-10-22  Arnaud Charlet  <charlet@adacore.com>
1104         * exp_attr.adb (Make_Range_Test): Generate a Range node instead of
1105         explicit comparisons, generates simpler expanded code.
1106         * a-except-2005.adb (Rcheck_06_Ext): New.
1107         * gcc-interface/trans.c (gigi, gnat_to_gnu): Handle validity checks
1108         like range checks.
1109         * gcc-interface/Make-lang.in: Update dependencies.
1111 2010-10-22  Robert Dewar  <dewar@adacore.com>
1113         * sem_ch3.adb (Array_Type_Declaration): Error for subtype wi predicate
1114         for index type
1115         (Constrain_Index): Error of subtype wi predicate in index constraint
1116         * sem_ch9.adb (Analyze_Entry_Declaration): Error of subtype wi
1117         predicate in entry family.
1118         * sem_res.adb (Resolve_Slice): Error of type wi predicate in slice.
1120 2010-10-22  Javier Miranda  <miranda@adacore.com>
1122         * sem_util.ads, sem_util.adb (Collect_Parents): New subprogram.
1123         (Original_Corresponding_Operation): New subprogram.
1124         (Visible_Ancestors): New subprogram.
1125         * sem_ch6.adb (New_Overloaded_Entity): Handle new case of dispatching
1126         operation that overrides a hidden inherited primitive.
1127         * sem_disp.adb (Find_Hidden_Overridden_Primitive): New subprogram.
1128         (Check_Dispatching_Operation): if the new dispatching operation
1129         does not override a visible primtive then check if it overrides
1130         some hidden inherited primitive.
1132 2010-10-22  Ed Schonberg  <schonberg@adacore.com>
1134         * sem_ch10.adb (Analyze_With_Clause): If the parent_unit_name in a with
1135         clause is a child unit that denotes a renaming, replace the
1136         parent_unit_name with a reference to the renamed unit, because the
1137         prefix is irrelevant to subsequent visibility..
1139 2010-10-22  Robert Dewar  <dewar@adacore.com>
1141         * einfo.ads, einfo.adb (Has_Predicates): Flag is now on all entities
1142         (simplifies code).
1143         * exp_ch13.adb (Build_Predicate_Function): Output info msgs for
1144         inheritance.
1145         * sem_ch13.adb (Analyze_Aspect_Specifications): Make sure we have a
1146         freeze node for entities for which a predicate is specified.
1147         (Analyze_Aspect_Specifications): Avoid duplicate calls
1148         * sem_ch3.adb (Analyze_Full_Type_Declaration): Remove attempt to avoid
1149         duplicate calls to Analye_Aspect_Specifications.
1151 2010-10-22  Thomas Quinot  <quinot@adacore.com>
1153         * a-exextr.adb, atree.ads, freeze.adb: Minor reformatting.
1155 2010-10-21  Robert Dewar  <dewar@adacore.com>
1157         * sem_ch3.adb: Minor reformatting.
1159 2010-10-21  Thomas Quinot  <quinot@adacore.com>
1161         * einfo.ads (Next_Girder_Discriminant): Remove obsolete description for
1162         removed routine.
1164 2010-10-21  Nicolas Roche  <roche@adacore.com>
1166         * gnatmem.adb, memroot.adb, memroot.ads, gmem.c,
1167         gcc-interface/Makefile.in: Remove gnatmem specific files.
1169 2010-10-21  Thomas Quinot  <quinot@adacore.com>
1171         * sem_res.adb, exp_ch13.adb: Minor reformatting.
1173 2010-10-21  Thomas Quinot  <quinot@adacore.com>
1175         * sem_ch3.adb (Check_Or_Process_Discriminant): Reject illegal attempt
1176         to provide a tagged full view as the completion of an untagged partial
1177         view if the partial view has a discriminant with default.
1179 2010-10-21  Arnaud Charlet  <charlet@adacore.com>
1181         * gcc-interface/Make-lang.in: Update dependencies.
1183 2010-10-21  Robert Dewar  <dewar@adacore.com>
1185         * checks.ads, checks.adb (Apply_Predicate_Check): New procedure
1186         Minor code reorganization.
1187         * einfo.adb (Has_Predicates): Fix assertion.
1188         * exp_ch13.adb (Build_Predicate_Function): Move from Sem_Ch13 spec to
1189         Exp_Ch13 body.
1190         (Expand_N_Freeze_Entity): Call build predicate function.
1191         * exp_ch4.adb (Expand_N_Type_Conversion): Add predicate check.
1192         * exp_ch5.adb (Expand_N_Assignment_Statement): Add predicate check.
1193         * exp_prag.adb (Expand_Pragma_Check): Use all lower case for name of
1194         check.
1195         * freeze.adb (Freeze_Entity): Move building of predicate function to
1196         Exp_Ch13.
1197         * sem_ch13.adb (Build_Predicate_Function): Move from Sem_Ch13 to
1198         Exp_Ch13.
1199         * sem_ch13.ads (Build_Predicate_Function): Move from Sem_Ch13 to
1200         Exp_Ch13.
1201         * sem_ch3.adb (Analyze_Declarations): Remove call to build predicate
1202         function.
1203         * sem_res.adb (Resolve_Actuals): Apply predicate check.
1205 2010-10-21  Robert Dewar  <dewar@adacore.com>
1207         * einfo.ads, einfo.adb: Replace Predicate_Procedure by
1208         Predicate_Functions.
1209         * exp_ch4.adb (Expand_N_In): Handle predicates.
1210         * exp_util.ads, exp_util.adb (Make_Predicate_Call): New function.
1211         (Make_Predicate_Check): New function.
1212         * freeze.adb (Freee_Entity): Build predicate function if needed.
1213         * sem_ch13.adb (Build_Predicate_Function): New procedure.
1214         (Analyze_Aspect_Specifications): No third argument for Predicate pragma
1215         built from Predicate aspect.
1216         * sem_ch13.ads (Build_Predicate_Function): New procedure.
1217         * sem_ch3.adb: Add handling for predicates.
1218         * sem_eval.adb (Eval_Membership_Op): Never static if predicate
1219         functions around.
1220         * sem_prag.adb (Analye_Pragma, case Predicate): Does not take a third
1221         argument.
1223 2010-10-21  Robert Dewar  <dewar@adacore.com>
1225         * einfo.ads, einfo.adb: Add handling of predicates.
1226         Rework handling of invariants.
1227         * exp_ch3.adb, exp_ch4.adb, exp_util.adb, sem_ch6.adb: Minor changes to
1228         handing of invariants.
1229         * par-prag.adb: Add dummy entry for pragma Predicate
1230         * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing for
1231         Predicate aspects.
1232         * sem_prag.adb: Add implementation of pragma Predicate.
1233         * snames.ads-tmpl: Add entries for pragma Predicate.
1235 2010-10-21  Robert Dewar  <dewar@adacore.com>
1237         * elists.adb: Minor reformatting.
1239 2010-10-21  Geert Bosch  <bosch@adacore.com>
1241         * urealp.adb (UR_Write): Write hexadecimal constants with exponent 1 as
1242         decimal constants, and write any others using the exponent notation.
1243         Minor reformatting throughout
1244         (Store_Ureal_Normalized): New function (minor code reorganization)
1246 2010-10-21  Robert Dewar  <dewar@adacore.com>
1248         * einfo.ads, xeinfo.adb: Minor reformatting.
1249         * s-stalib.ads: Minor comment fixes.
1251 2010-10-21  Ed Schonberg  <schonberg@adacore.com>
1253         * sem_ch6.adb (Enter_Overloaded_Entity): Refine warning message about
1254         hiding, to remove noise warnings about hiding predefined operators.
1256 2010-10-21  Emmanuel Briot  <briot@adacore.com>
1258         * g-comlin.adb (Add_Switch): Fix handling of switches with no separator
1259         when the parameter has length 1.
1261 2010-10-21  Jose Ruiz  <ruiz@adacore.com>
1263         * sem_prag.adb (Set_Ravenscar_Profile): Enforce the restrictions of no
1264         dependence on Ada.Execution_Time.Timers,
1265         Ada.Execution_Time.Group_Budget, and
1266         System.Multiprocessors.Dispatching_Domains which are part of the
1267         Ravenscar Profile.
1268         * impunit.adb (Non_Imp_File_Names_05): Add the file "a-etgrbu" to the
1269         list of Ada 2005 files for package Ada.Execution_Time.Group_Budgets.
1270         (Non_Imp_File_Names_12): Add the file "s-mudido" to the list of Ada 2012
1271         files for package System.Mutiprocessors.Dispatching_Domains.
1273 2010-10-21  Tristan Gingold  <gingold@adacore.com>
1275         * ug_words, vms_data.ads: Define the VMS qualifier for -gnateE.
1277 2010-10-21  Thomas Quinot  <quinot@adacore.com>
1279         * sem_ch3.ads (Process_Discriminants): Clarify cases where this is
1280         called for a completion.
1282 2010-10-21  Geert Bosch  <bosch@adacore.com>
1284         * uintp.ads: Expand image buffer to have enough room for 128-bit values
1285         * urealp.ads (UR_Write): Write constants in base 16 in hexadecimal
1286         notation; either as fixed point literal or in canonical radix 16
1287         floating point form.
1289 2010-10-21  Robert Dewar  <dewar@adacore.com>
1291         * a-cgaaso.ads, a-tags.ads, exp_ch3.adb, exp_attr.adb, exp_ch4.adb,
1292         exp_ch3.ads, exp_ch7.adb, exp_ch9.adb, exp_disp.adb, exp_disp.ads,
1293         exp_dist.adb, exp_util.adb, layout.adb, lib-xref.adb, lib.ads,
1294         prep.adb, prj-strt.adb, s-ststop.adb, s-taskin.ads, s-tataat.ads,
1295         sem_aggr.adb, sem_attr.adb, sem_ch12.adb, sem_ch3.adb, sem_ch4.adb,
1296         sem_ch4.ads, sem_ch5.adb, sem_res.adb, sem_util.adb, einfo.adb,
1297         g-sothco.ads, make.adb: Minor reformatting
1299 2010-10-21  Vincent Celier  <celier@adacore.com>
1301         * vms_data.ads: Add new qualifiers /SRC_INFO= and
1302         /UNCHECKED_SHARED_LIB_IMPORTS for GNAT COMPILE.
1303         Correct qualifier /SRC_INFO= for GNAT MAKE
1305 2010-10-21  Ed Schonberg  <schonberg@adacore.com>
1307         * exp_aggr.adb (Flatten): An association for a subtype may be an
1308         expanded name.
1309         (Safe_Left_Hand_Side): An unchecked conversion is part of a safe
1310         left-hand side if the expression is.
1311         (Is_Safe_Index): new predicate
1312         * exp_ch3.adb (Expand_Freeze_Enumeration_Type): Indicate that the
1313         generated Rep_To_Pos function is a Pure_Function.
1315 2010-10-21  Robert Dewar  <dewar@adacore.com>
1317         * gnat_rm.texi: Document Invariant pragma.
1319 2010-10-21  Javier Miranda  <miranda@adacore.com>
1321         * exp_ch5.adb: Update comment.
1323 2010-10-21  Robert Dewar  <dewar@adacore.com>
1325         * sem_ch13.adb (Build_Invariant_Procedure): Remove commented out code
1326         for interfaces, since invariants are not allowed on interfaces in any
1327         case.
1329 2010-10-21  Javier Miranda  <miranda@adacore.com>
1331         * sem_attr.adb (Resolve_Attribute): After replacing the range attribute
1332         node with a range expression ensure that its evaluation will not have
1333         side effects.
1334         * exp_ch5.adb (Expand_Assign_Array): Propagate the Parent to the
1335         unchecked conversion node generated to handle assignment of private
1336         types. Required to allow climbing the subtree if Insert_Action is
1337         invoked later.
1339 2010-10-21  Robert Dewar  <dewar@adacore.com>
1341         * par-ch3.adb (P_Interface_Type_Definition): Allow for possibility of
1342         aspect clause presence terminating the type definition.
1344 2010-10-21  Robert Dewar  <dewar@adacore.com>
1346         * exp_ch4.adb, exp_intr.adb, par-ch4.adb, scn.adb, sem_ch4.adb,
1347         sem_res.adb, sem_util.adb, sinfo.ads, a-except-2005.adb: Minor
1348         reformatting.
1349         * snames.ads-tmpl: Add note on Name_Some (not a reserved keyword).
1351 2010-10-21  Geert Bosch  <bosch@adacore.com>
1353         * ttypef.ads: Further cleanup of Safe_XXX float attributes.
1355 2010-10-19  Ed Schonberg  <schonberg@adacore.com>
1357         * exp_ch4.adb, exp_ch4.ads (Expand_Quantified_Expression): New procedure
1358         * exp_util.adb (Insert_Actions): Include Quantified_Expression.
1359         * expander.adb: Call Expand_Qualified_Expression.
1360         * par.adb: New procedure P_Quantified_Expression. Make
1361         P_Loop_Parameter_Specification global for use in quantified expressions.
1362         * par-ch3.adb (P_Subtype_Mark_Resync): Allow "some" as an identifier if
1363         version < Ada2012.
1364         * par-ch4.adb: New procedure P_Quantified_Expression.
1365         * par-ch5.adb: P_Loop_Parameter_Specification is now global.
1366         * scans.adb, scans.ads: Introduce token Some. For now leave as
1367         unreserved.
1368         * scn.adb (Scan_Reserved_Identifier): For earlier versions of Ada,
1369         treat Some as a regular identifier.
1370         * sem.adb: Call Analyze_Quantified_Expression.
1371         * sem_ch4.adb, sem_ch4.ads: New procedure Analyze_Quantified_Expression.
1372         * sem_ch5.adb, sem_ch5.ads: Analyze_Iteration_Scheme is public, for use
1373         in quantified expressions.
1374         * sem_res.adb: New procedure Resolve_Qualified_Expression.
1375         * sinfo.adb, sinfo.ads: New node N_Quantified_Expression
1376         * snames.ads-tmpl: New name Some.
1377         * sprint.adb: Output quantified_expression.
1379 2010-10-19  Robert Dewar  <dewar@adacore.com>
1381         * a-exexda.adb: Minor reformatting
1382         Minor code reorganization.
1384 2010-10-19  Robert Dewar  <dewar@adacore.com>
1386         * sem_eval.adb: Minor reformatting.
1388 2010-10-19  Tristan Gingold  <gingold@adacore.com>
1390         * exp_ch4.adb (Expand_N_And_Op, Expand_N_Or_Op, Expand_N_Xor_Op): Call
1391         Expand_Intrinsic_Call if the function is intrinsic.
1392         * exp_intr_adb (Expand_Binary_Operator): Handle VMS case for logical
1393         binary operator on the unsigned_quadword record.
1394         * exp_intr.ads (Expand_Intrinsic_Call): Update comments.
1396 2010-10-19  Geert Bosch  <bosch@adacore.com>
1398         * gnat_rm.texi (pragma Float_Representation): Fix typo.
1400 2010-10-19  Arnaud Charlet  <charlet@adacore.com>
1402         * switch-c.adb (Scan_Front_End_Switches): Add handling of -gnateE.
1403         * fe.h (Exception_Extra_Info): Declare.
1404         * usage.adb (usage): Add -gnateE doc.
1405         * checks.adb (Install_Null_Excluding_Check): Use better sloc.
1406         * sem_util.adb (Insert_Explicit_Dereference): Ditto.
1407         * gnat_ugn.texi: Document -gnateE switch.
1408         * a-except.adb (Set_Exception_C_Msg): New parameter Column.
1409         * a-except-2005.adb (Set_Exception_C_Msg): New parameter Column.
1410         (Raise_Constraint_Error_Msg): Ditto.
1411         (Image): New helper function.
1412         (Rcheck_00_Ext, Rcheck_05_Ext, Rcheck_12_Ext): New procedure with more
1413         detailed exception information.
1414         Adjust calls to Set_Exception_C_Msg and Raise_Constraint_Error_Msg.
1415         * a-exexda.adb (Set_Exception_C_Msg): New parameter Column.
1416         * opt.ads (Exception_Extra_Info): New flag.
1417         * gcc-interface/utils.c (gnat_raise_decls_ext): New.
1418         * gcc-interface/utils2.c (build_call_raise_range,
1419         build_call_raise_column): New functions.
1420         * gcc-interface/gigi.h (exception_info_kind, gnat_raise_decls_ext,
1421         build_call_raise_range, build_call_raise_column): Declare.
1422         gcc-interface/trans.c (build_raise_check): New function.
1423         (gigi): Initialize gnat_raise_decls_ext.
1424         (gnat_to_gnu): Add initial support for -gnateE switch.
1425         * gcc-interface/Make-lang.in: Update dependencies.
1427 2010-10-19  Geert Bosch  <bosch@adacore.com>
1429         * ttypef.ads: Change VAXDF_Last to be -VAXDF_First, as type is
1430         symmetric.
1432 2010-10-19  Robert Dewar  <dewar@adacore.com>
1434         * atree.h (Field29): Fix incorrect definition.
1435         * einfo.adb (Invariant_Procedure): New attribute
1436         (Has_Invariants): New flag
1437         (Has_Inheritable_Invariants): New flag
1438         (OK_To_Reference): New flag
1439         Minor code reorganization (use Next_Rep_Item function)
1440         * einfo.ads (Invariant_Procedure): New attribute
1441         (Has_Invariants): New flag
1442         (Has_Inheritable_Invariants): New flag
1443         (OK_To_Reference): New flag
1444         * exp_ch3.adb (Expand_N_Object_Declaration): Add check for invariant
1445         * exp_ch4.adb (Expand_N_Type_Conversion): Check invariant on type
1446         conversion.  Minor reformatting.
1447         * exp_util.ads, exp_util.adb (Make_Invariant_Call): New procedure.
1448         * opt.ads (List_Inherited_Aspects): New name for List_Inherited_Pre_Post
1449         * par-prag.adb: Add dummy entry for pragma Invariant.
1450         * sem_ch13.adb (Build_Invariant_Procedure): New procedure
1451         (Analyze_Aspect_Specification): Add support for Invariant aspect
1452         * sem_ch13.ads (Build_Invariant_Procedure): New procedure
1453         * sem_ch3.adb (Build_Derived_Type): Propagate invariant information
1454         (Process_Full_View): Deal with invariants, building invariant procedure
1455         Minor reformatting
1456         * sem_ch6.adb (Process_PPCs): Add processing of invariants
1457         * sem_ch7.adb (Analyze_Package_Specification): Build invariant
1458         procedures.
1459         * sem_prag.adb: Implement pragma Invariant.
1460         * sem_res.adb (Resolve_Entity_Name): Allow type reference if
1461         OK_To_Reference set.
1462         * sem_warn.adb (List_Inherited_Aspects): New name for
1463         List_Inherited_Pre_Post.
1464         * snames.ads-tmpl: Add entries for pragma Invariant.
1465         * treepr.adb (Print_Entity_Information): Add handling of Field29.
1466         * usage.adb: Warning .l/.L applies to invariant as well as pre/post.
1468 2010-10-19  Javier Miranda  <miranda@adacore.com>
1470         * par-ch4.adb: Update documentation of Ada 2012 syntax rules for
1471         membership test.
1473 2010-10-19  Bob Duff  <duff@adacore.com>
1475         * sem_attr.adb (Eval_Attribute): Implement Max_Alignment_For_Allocation
1476         attribute.
1477         * exp_attr.adb (Expand_N_Attribute_Reference): Add
1478         Attribute_Max_Alignment_For_Allocation to the case statement.
1479         * snames.ads-tmpl (Name_Max_Alignment_For_Allocation,
1480         Attribute_Max_Alignment_For_Allocation): New attribute name.
1482 2010-10-19  Ed Schonberg  <schonberg@adacore.com>
1484         * sem_ch3.adb (OK_For_Limited_Init_In_05): a call to an access to
1485         parameterless function appears syntactically as an explicit dereference.
1487 2010-10-19  Thomas Quinot  <quinot@adacore.com>
1489         * sem_ch8.adb, sem_ch12.adb, opt.ads, sem_ch6.adb, sem_res.adb,
1490         i-cexten.ads, exp_disp.adb, exp_ch4.adb, exp_ch9.adb: Minor reformatting
1492 2010-10-19  Thomas Quinot  <quinot@adacore.com>
1494         * sem_util.adb (Collect_Primitive_Operations): A function with an
1495         anonymous access result designating T is a primitive operation of T.
1497 2010-10-19  Tristan Gingold  <gingold@adacore.com>
1499         * init.c: On Alpha/VMS, only adjust PC for HPARITH.
1501 2010-10-19  Tristan Gingold  <gingold@adacore.com>
1503         * sem_attr.adb (Eval_Attribute): Handle Attribute_Ref, which can be
1504         evaluated on VMS.
1506 2010-10-19  Ed Schonberg  <schonberg@adacore.com>
1508         * sem_ch12.adb (Check_Generic_Child_Unit): Handle properly the case of
1509         an instantiation of a renaming of the implicit generic child that
1510         appears within an instance of its parent.
1512 2010-10-19  Thomas Quinot  <quinot@adacore.com>
1514         * exp_ch9.adb: Minor reformatting.
1515         * einfo.adb, einfo.ads, atree.adb, atree.ads, exp_dist.adb, atree.h:
1516         (Referenced_Object): Remove unused entity attribute.
1517         (Direct_Primitive_Operations): Move to Elist10, this is set for all
1518         tagged types, including synchronous ones, so can't use field15 which is
1519         used as Storage_Size_Variable for task types and Entry_Bodies_Array for
1520         protected types.
1521         (Add_RACW_Primitive_Declarations_And_Bodies): Remove bogus guard
1522         against Concurrent_Types (we must handle the case of a RACW designating
1523         a class-wide private synchronous type).
1524         Use Direct_Primitive_Operations, not Primitive_Operations, since we
1525         really want the former.
1527 2010-10-19  Bob Duff  <duff@adacore.com>
1529         * sem_ch8.adb (Pop_Scope): Change "return;" to "raise Program_Error;".
1531 2010-10-19  Javier Miranda  <miranda@adacore.com>
1533         * exp_ch4.adb (Expand_Set_Membership.Make_Cond): Add missing support
1534         for N_Range nodes.
1536 2010-10-19  Thomas Quinot  <quinot@adacore.com>
1538         * einfo.ads, atree.ads: Minor comment fixes.
1540 2010-10-18  Bob Duff  <duff@adacore.com>
1542         * sinfo.ads, sinfo.adb: Modify comment about adding fields to be more
1543         correct, and to be in a more convenient order.
1544         (Default_Storage_Pool): New field of N_Compilation_Unit_Aux, for
1545         recording the Default_Storage_Pool for a parent library unit.
1546         * einfo.ads (Etype): Document the case in which Etype can be Empty.
1547         * sem_prag.adb (Pragma_Default_Storage_Pool): Analyze the new
1548         Default_Storage_Pool pragma.
1549         * sem.ads (Save_Default_Storage_Pool): Save area for push/pop scopes.
1550         * gnat_ugn.texi: Document Default_Storage_Pool as a new configuration
1551         pragma.
1552         * freeze.adb (Freeze_Entity): When freezing an access type, take into
1553         account any Default_Storage_Pool pragma that applies. We have to do
1554         this at the freezing point, because up until that point, a Storage_Pool
1555         or Storage_Size clause could occur, which should override the
1556         Default_Storage_Pool.
1557         * par-prag.adb: Add this pragma to the list of pragmas handled entirely
1558         during semantics.
1559         * sem_ch8.adb (Push_Scope, Pop_Scope): Save and restore the
1560         Default_Storage_Pool information.
1561         * opt.ads (Default_Pool, Default_Pool_Config): New globals for recording
1562         currently-applicable Default_Storage_Pool pragmas.
1563         * opt.adb: Save/restore the globals as appropriate.
1564         * snames.ads-tmpl (Name_Default_Storage_Pool,
1565         Pragma_Default_Storage_Pool): New pragma name.
1567 2010-10-18  Vincent Celier  <celier@adacore.com>
1569         * make.adb (Switches_Of): Put the spec and body suffix in canonical
1570         case.
1572 2010-10-18  Ed Schonberg  <schonberg@adacore.com>
1574         * sem_ch13.adb (Analyze_Aspect_Specifications): If subprogram is at the
1575         library level, the pre/postconditions must be treated as global
1576         declarations, i.e. placed on the Aux_Decl nodes of the compilation unit.
1577         * freeze.adb (Freeze_Expression): If the expression is at library level
1578         there is no enclosing record to check.
1580 2010-10-18  Javier Miranda  <miranda@adacore.com>
1582         * sem_ch3.ads (Find_Type_Name): Add documentation.
1583         * sem_ch3.adb (Analyze_Full_Type_Declaration): Code cleanup because the
1584         propagation of the class-wide entity is now done by routine
1585         Find_Type_Name to factorize this code.
1586         (Analyze_Private_Extension_Declaration): Handle private type that
1587         completes an incomplete type.
1588         (Tag_Mismatch): Add error message for tag mismatch in a private type
1589         declaration that completes an incomplete type.
1590         (Find_Type_Name): Handle completion of incomplete type by means of
1591         a private declaration. Generate an error if a tagged incomplete type
1592         is completed by an untagged private type.
1593         * sem_ch7.adb (New_Private_Type): Handle private type that completes an
1594         incomplete type.
1595         * einfo.ads (Full_View): Add documentation.
1597 2010-10-18  Ed Schonberg  <schonberg@adacore.com>
1599         * sem_ch12.adb (Analyze_Formal_Package_Declaration): If the package is
1600         a renaming, generate a reference for it before analyzing the renamed
1601         entity, to prevent spurious warnings.
1603 2010-10-18  Jose Ruiz  <ruiz@adacore.com>
1605         * adaint.c (__gnat_pthread_setaffinity_np,
1606         __gnat_pthread_attr_setaffinity_np): Remove wrappers, no longer needed.
1607         * s-osinte-linux.ads (pthread_setaffinity_np,
1608         pthread_attr_setaffinity_np): Remove use of wrappers.
1609         * s-taprop-linux.adb (Create_Task, Initialize): Restore check to verify
1610         whether the affinity functionality is available in the OS.
1611         * gcc-interface/utils.c: Set TREE_STATIC on functions only when there
1612         are defined.
1614 2010-10-18  Robert Dewar  <dewar@adacore.com>
1616         * einfo.ads, einfo.adb: Minor reformatting.
1617         * gnat_ugn.texi, ug_words: Add missing entries, fix typos.
1619 2010-10-18  Emmanuel Briot  <briot@adacore.com>
1621         * g-comlin.adb (Is_In_Config): When the switch accepts either a space
1622         or equal, we output an equal every time.
1624 2010-10-18  Ed Schonberg  <schonberg@adacore.com>
1626         * sem_res.adb (Resolve_Entry_Call): Handle call to an entry family
1627         member when pre/post conditions are present.
1628         * exp_ch9.adb (Build_PPC_Wrapper): The PPC_Wrapper for an entry family
1629         includes an index parameter, and the name of the enclosed entry call is
1630         an indexed component.
1632 2010-10-18  Robert Dewar  <dewar@adacore.com>
1634         * einfo.ads, einfo.adb: Minor reformatting.
1636 2010-10-18  Jose Ruiz  <ruiz@adacore.com>
1638         * adaint.c (__gnat_pthread_setaffinity_np,
1639         __gnat_pthread_attr_setaffinity_np): Add these wrappers which check the
1640         availability of the underlying OS functionality before calling.
1641         * s-osinte-linux.ads (pthread_setaffinity_np,
1642         pthread_attr_setaffinity_np): Call a wrapper instead of the OS function
1643         to perform a check of its availability.
1644         * s-taprop-linux.adb (Create_Task): Remove the check to verify whether
1645         the affinity functionality is available in the OS. Now done in a wrapper
1646         * gcc-interface/Makefile.in: Remove vmshandler.asm, unused.
1647         * gcc-interface/Make-lang.in: Update dependencies.
1649 2010-10-18  Robert Dewar  <dewar@adacore.com>
1651         * sinfo.ads, sinfo.adb: Change Has_Pragma_CPU to Flag14 (Flag10 is
1652         standard field).
1654 2010-10-18  Robert Dewar  <dewar@adacore.com>
1656         * s-stausa.adb, s-taprop-linux.adb, s-taprop-mingw.adb, s-tassta.ads:
1657         Minor reformatting.
1659 2010-10-18  Robert Dewar  <dewar@adacore.com>
1661         * exp_strm.adb (Build_Elementary_Input_Call): Check
1662         No_Default_Stream_Attributes.
1663         (Build_Elementary_Write_Call): Check No_Default_Stream_Attributes
1664         * s-rident.ads: Add restriction No_Default_Stream_Attributes
1665         Put restriction No_Allocators_After_Elaboration in alpha order
1667 2010-10-18  Jose Ruiz  <ruiz@adacore.com>
1669         * exp_ch9.adb (Expand_N_Task_Type_Declaration): Add field corresponding
1670         to the affinity when expanding the task declaration.
1671         (Make_Task_Create_Call): Add the affinity parameter to the call to
1672         create task.
1673         * sem_prag.adb (Analyze_Pragma): Add the analysis for pragma CPU,
1674         taking into account the case when it applies to a subprogram (only for
1675         main and with static expression) or to a task.
1676         * par_prag.adb:(Prag): Make pragma CPU a valid one.
1677         * snames.ads-tmpl (Name_uCPU, Name_CPU): Add these new name identifiers
1678         used by the expander for handling the affinity parameter when creating
1679         a task.
1680         (Pragma_Id): Add Pragma_CPU as a valid one.
1681         * rtsfind.ads (RTU_Id): Make System_Multiprocessors accesible.
1682         (RE_Id, RE_Unit_Table): Make the entities RE_CPU_Range and
1683         RE_Unspecified_CPU visible.
1684         * sinfo.ads, sinfo.adb (Has_Pragma_CPU, Set_Has_Pragma_CPU): Add these
1685         two subprograms to set/get the flag indicating whether there is a
1686         pragma CPU which applies to the entity.
1687         * lib.ads, lib.adb (Unit_Record, Default_Main_CPU, Main_CPU,
1688         Set_Main_CPU): Add the field Main_CPU to Unit_Record to store the value
1689         of the affinity associated to the main subprogram (if any).
1690         Default_Main_CPU is used when no affinity is set. Subprograms
1691         Set_Main_CPU and Main_CPU are added to set/get the affinity of the main
1692         subprogram.
1693         * ali.ads, ali.adb (ALIs_Record): Add field Main_CPU to contain the
1694         value of the affinity of the main subprogram.
1695         (Scan_ALI): Get the affinity of the main subprogram (encoded as C=XX in
1696         the M line).
1697         * lib-writ.ads, lib-writ.adb (M_Parameters): Encode the affinity of the
1698         main subprogram in the M (main) line using C=XX.
1699         * lib-load.adb (Create_Dummy_Package_Unit, Load_Main_Source,
1700         Load_Unit): Add new field Main_CPU.
1701         * bindgen.adb (Gen_Adainit_Ada, Gen_Adainit_C): Add the code to pass
1702         the affinity of the main subprogram to the run time.
1703         * s-taskin.ads (Common_ATCB): Add the field Base_CPU to store the
1704         affinity.
1705         (Unspecified_CPU): Add this constant to identify the case when no
1706         affinity is set for tasks.
1707         * s-taskin.adb (Initialize_ATCB): Store the value coming from pragma
1708         CPU in the common part of the ATCB.
1709         (Initialize): Store the value coming from pragma CPU (for the
1710         environment task) in the common part of the ATCB.
1711         * s-tassta.ads, s-tassta.adb (Create_Task): Add the affinity specified
1712         by pragma CPU to the ATCB.
1713         * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add the affinity
1714         specified by pragma CPU to the ATCB.
1715         * s-tporft.adb (Register_Foreign_Thread): Add the new affinity
1716         parameter to the call to Initialize_ATCB.
1717         * s-taprop-linux.adb (Create_Task): Change the attributes of the thread
1718         to include the task affinity before creation. Additionally, the
1719         affinity selected with Task_Info is also enforced changing the
1720         attributes at task creation time, instead of changing it after creation.
1721         (Initialize): Change the affinity of the environment task if required
1722         by a pragma CPU.
1723         * s-osinte-linux.ads (pthread_setaffinity_np): Instead of using a
1724         wrapper to check whether the function is available or not, use a weak
1725         symbol.
1726         (pthread_attr_setaffinity_np): Add the import of this function which is
1727         used to change the affinity in the attributes used to create a thread.
1728         * adaint.c (__gnat_pthread_attr_setaffinity_np): Remove this wrapper.
1729         It was used to check whether the pthread function was available or not,
1730         but the use of a weak symbol handles this situation in a cleaner way.
1731         * s-taprop-mingw.adb (Create_Task, Initialize): Change the affinity of
1732         tasks (including the environment task) if required by a pragma CPU.
1733         * s-taprop-solaris.adb (Enter_Task): Change the affinity of tasks
1734         (including the environment task) if required by a pragma CPU.
1735         * s-taprop-vxworks.adb (Create_Task, Initialize): Change the affinity
1736         of tasks (including the environment task) if required by a pragma CPU.
1737         * init.c (__gl_main_cpu): Make this value visible to the run time. It
1738         will pass the affinity of the environment task.
1740 2010-10-18  Javier Miranda  <miranda@adacore.com>
1742         * einfo.adb (Direct_Primitive_Operations): Complete assertion.
1744 2010-10-18  Vincent Celier  <celier@adacore.com>
1746         * prj.ads (Source_Data): New Boolean flag In_The_Queue.
1748 2010-10-18  Tristan Gingold  <gingold@adacore.com>
1750         * s-stausa.ads: Add the Top parameter to Initialize_Analyzer.
1751         * s-stausa.adb: Use the top parameter.  In Fill_Stack, use the
1752         stack top if known.
1753         * s-tassta.adb (Task_Wrapper): Call Initialize_Analyzer after Enter_Task
1754         so that Pri_Stack_Info.Limit can be set and used.
1756 2010-10-18  Robert Dewar  <dewar@adacore.com>
1758         * einfo.ads: Minor reformatting.
1759         * sem_res.adb (Resolve_Allocator): Add test for violating
1760         No_Anonymous_Allocators.
1762 2010-10-18  Robert Dewar  <dewar@adacore.com>
1764         * prj-nmsc.adb, prj.adb, sem_res.adb: Minor reformatting.
1766 2010-10-18  Ed Schonberg  <schonberg@adacore.com>
1768         * sem_util.adb (Insert_Explicit_Dereference): If operand is a selected
1769         component, we generate a reference to the ultimate prefix when it is an
1770         entity name. We must place the reference on the identifier for that
1771         prefix, and not on the operand itself, to prevent spurious extra
1772         references in the ali file.
1774 2010-10-18  Vincent Celier  <celier@adacore.com>
1776         * projects.texi: Add documentation for attribute Ignore_Source_Sub_Dirs
1778 2010-10-18  Ed Schonberg  <schonberg@adacore.com>
1780         * einfo.ads, einfo.adb: New attribute PPC_Wrapper for entries and entry
1781         families. Denotes a procedure that performs pre/postcondition checks
1782         and then performs the entry call.
1783         * sem_res.adb (Resolve_Entry_Call): If the entry has
1784         pre/postconditions, replace call with a call to the PPC_Wrapper of the
1785         entry.
1786         * exp_ch9.adb (Build_PPC_Wrapper): new procedure.
1787         (Expand_N_Entry_Declaration, Expand_N_Protected_Type_Declaration): call
1788         Build_PPC_Wrapper for all entries in task and protected definitions.
1790 2010-10-18  Tristan Gingold  <gingold@adacore.com>
1792         * init.c: Add __gnat_set_stack_guard_page and __gnat_set_stack_limit.
1793         Implement stack limitation on VMS.
1794         Minor reformatting.
1796 2010-10-18  Vincent Celier  <celier@adacore.com>
1798         * prj.adb (Is_Compilable): Do not modify Source.Compilable until the
1799         source record has been initialized.
1801 2010-10-18  Robert Dewar  <dewar@adacore.com>
1803         * einfo.adb: Minor code reorganization (Primitive_Operations is a
1804         synthesized attribute routine and was in the wrong place).
1806 2010-10-18  Tristan Gingold  <gingold@adacore.com>
1808         * init.c: Indentation, and minor changes to more closely follow GNU
1809         style rules.  Make more variable statics.
1811 2010-10-18  Vincent Celier  <celier@adacore.com>
1813         * prj.adb (Is_Compilable): On first call for a source, cache value in
1814         component Compilable.
1815         * prj.ads (Source_Data): New component Compilable, to cache the value
1816         returned by function Is_Compilable.
1818 2010-10-18  Vincent Celier  <celier@adacore.com>
1820         * prj-attr.adb: New project level attribute Ignore_Source_Sub_Dirs.
1821         * prj-nmsc.adb (Expand_Subdirectory_Pattern): New string list parameter
1822         Ignore.
1823         (Recursive_Find_Dirs): Do not consider subdirectories listed in Ignore.
1824         (Get_Directories): Call Find_Source_Dirs with the string list
1825         indicated by attribute Ignore_Source_Sub_Dirs.
1826         * snames.ads-tmpl: New standard name Ignore_Source_Sub_Dirs.
1828 2010-10-18  Javier Miranda  <miranda@adacore.com>
1830         * einfo.ads, einfo.adb (Primitive_Operations): New synthesized
1831         attribute.
1832         (Direct_Primitive_Operations): Renaming of old Primitive_Operations.
1833         (Set_Direct_Primitive_Operations): Renaming of old
1834         Set_Primitive_Operations. Update documentation
1835         * sem_ch3.adb, exp_util.adb, sem_ch7.adb, sem_ch8.adb, exp_ch3.adb:
1836         Replace occurrences of Set_Primitive_Operations by
1837         Set_Direct_Primitive_Operations.
1838         * sem_cat.adb (Validate_RACW_Primitives): No action needed for tagged
1839         concurrent types.
1840         * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
1841         process primitives of concurrent types.
1842         * lib-xref.adb (Generate_Prim_Op_References): Minor code cleanup.
1844 2010-10-18  Eric Botcazou  <ebotcazou@adacore.com>
1846         * exp_ch6.adb (Expand_N_Subprogram_Declaration): Use Freeze_Before.
1847         (Expand_Protected_Object_Reference): Likewise.
1848         * sem_attr.adb (Resolve_Attribute): Likewise.
1849         * sem_ch3.adb (Analyze_Subtype_Declaration): Likewise.
1850         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Likewise.
1852 2010-10-18  Arnaud Charlet  <charlet@adacore.com>
1854         * g-comlin.adb (Get_Switches): Prevent dereferencing null Config.
1856 2010-10-18  Robert Dewar  <dewar@adacore.com>
1858         * aspects.ads, aspects.adb: Add entries for aspects
1859         Read/Write/Input/Output.
1860         * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing for
1861         handling aspects Read/Write/Input/Output.
1863 2010-10-18  Robert Dewar  <dewar@adacore.com>
1865         * sem_util.adb (Note_Possible_Modification): Do not give warning for
1866         use of pragma Unmodified unless we are sure this is a modification.
1868 2010-10-18  Tristan Gingold  <gingold@adacore.com>
1870         * sysdep.c: Add __gnat_get_stack_bounds.
1871         * s-taprop-mingw.adb Call __gnat_get_stack_bounds to set Pri_Stack_Info.
1873 2010-10-18  Robert Dewar  <dewar@adacore.com>
1875         * a-assert.ads: Fix bad name in header.
1876         * sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch10.adb: Minor
1877         reformatting.
1878         * exp_aggr.adb: Fix typo in comment.
1880 2010-10-18  Javier Miranda  <miranda@adacore.com>
1882         * exp_util.adb (Side_Effect_Free): Code clean up.
1884 2010-10-18  Ed Schonberg  <schonberg@adacore.com>
1886         * sem_ch8.adb (Is_Primitive_Operator_In_Use): Renamed from
1887         Is_Primitive_Operator. When ending the scope of a use package scope, a
1888         primitive operator remains in use if the base type has a current use
1889         (type) clause.
1891 2010-10-18  Javier Miranda  <miranda@adacore.com>
1893         * einfo.ads (Is_Dynamic_Support): Add missing support for limited
1894         private types whose full-view is a task type.
1895         * sem_util.adb (Enclosing_Subprogram): Add missing support for limited
1896         private types whose full-view is a task type.
1897         * exp_ch7.adb (Find_Final_List): Minor code cleanup replacing code by
1898         function Nearest_Dynamic_Scope which provides the needed functionality.
1900 2010-10-18  Arnaud Charlet  <charlet@adacore.com>
1902         * sem_prag.adb (Set_Exported): Do not generate error when exporting a
1903         variable with an address clause in codepeer mode.
1905 2010-10-18  Robert Dewar  <dewar@adacore.com>
1907         * g-trasym-vms-ia64.adb: Minor reformatting.
1909 2010-10-18  Thomas Quinot  <quinot@adacore.com>
1911         * sem_type.adb (Covers): If either argument is Standard_Void_Type and
1912         the other isn't, return False early.
1914 2010-10-18  Ed Falis  <falis@adacore.com>
1916         * s-vxwext-rtp.ads, s-vxext-rtp.adb: Adapt for missing APIs for RTPs in
1917         VxWorks Cert.
1919 2010-10-18  Robert Dewar  <dewar@adacore.com>
1921         * sem_disp.ads: Minor comment update.
1923 2010-10-18  Robert Dewar  <dewar@adacore.com>
1925         * einfo.ads, einfo.adb (Spec_PPC_List): Is now present in Entries
1926         * sem_ch3.adb (Analyze_Declarations): Add processing for delaying
1927         visibility analysis of precondition and postcondition pragmas (and
1928         Pre/Post aspects).
1929         * sem_ch6.adb (Process_PPCs): Add handling of inherited Pre'Class
1930         aspects.
1931         * sem_ch7.adb (Analyze_Package_Specification): Remove special handling
1932         of pre/post conditions (no longer needed).
1933         * sem_disp.adb (Inherit_Subprograms): Deal with interface case.
1934         * sem_prag.adb (Analyze_PPC_In_Decl_Part): Remove analysis of message
1935         argument, since this is now done in the main processing for
1936         pre/postcondition pragmas when they are first seen.
1937         (Chain_PPC): Pre'Class and Post'Class now handled properly
1938         (Chain_PPC): Handle Pre/Post aspects for entries
1939         (Check_Precondition_Postcondition): Handle entry declaration case
1940         (Check_Precondition_Postcondition): Handle delay of visibility analysis
1941         (Check_Precondition_Postcondition): Preanalyze message argument if
1942         present.
1944 2010-10-18  Robert Dewar  <dewar@adacore.com>
1946         * g-trasym-vms-ia64.adb, prj-nmsc.adb, prj.ads: Minor reformatting.
1948 2010-10-14  Eric Botcazou  <ebotcazou@adacore.com>
1950         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Set
1951         TREE_THIS_NOTRAP on the INDIRECT_REF node built for the template.
1952         * gcc-interface/trans.c (Identifier_to_gnu): Set TREE_THIS_NOTRAP on
1953         the INDIRECT_REF node built for objects used by reference.
1954         * gcc-interface/utils2.c (build_binary_op): Add short-circuit for
1955         constant result. Set TREE_THIS_NOTRAP on ARRAY_REF and ARRAY_RANGE_REF.
1956         (gnat_stabilize_reference_1): Propagate the TREE_THIS_NOTRAP flag.
1958 2010-10-13  Richard Henderson  <rth@redhat.com>
1960         * gcc-interface/misc.c (gnat_eh_personality): Update call to
1961         build_personality_function.
1962         * raise-gcc.c (PERSONALITY_FUNCTION): Change to match other languages;
1963         use__gnat_personality_{v,sj}0.
1965 2010-10-12  Vincent Celier  <celier@adacore.com>
1967         * prj-nmsc.adb (Add_Source): Put source in hash table Source_Files_HT
1968         (Process_Exceptions_File_Based): Use hash table Source_Files_HT instead
1969         of iterating through all sources of the project.
1970         * prj.adb (Free): Reset hash table Source_Files_HT
1971         (Reset): Reset hash table Source_Files_HT
1972         * prj.ads (Source_Data): New component Next_With_File_Name
1973         (Source_Files_Htable): New hash table
1974         (Project_Tree_Data): New component Source_Files_HT
1976 2010-10-12  Tristan Gingold  <gingold@adacore.com>
1978         * g-trasym-vms-ia64.adb: Use the documented API.
1979         * gcc-interface/Makefile.in: Always set NO_REORDER_ADAFLAGS.
1980         * gcc-interface/Make-lang.in: Update dependencies.
1982 2010-10-12  Thomas Quinot  <quinot@adacore.com>
1984         * rtsfind.ads, exp_dist.adb, exp_dist.ads (Build_General_Calling_Stubs,
1985         PolyORB case): Request is now a controlled type: we can declare the
1986         request on the stack, and we do not need explicit cleanup actions
1987         anymore.
1989 2010-10-12  Bob Duff  <duff@adacore.com>
1991         * s-rident.ads (Profile_Info): This variable is now constant.
1993 2010-10-12  Emmanuel Briot  <briot@adacore.com>
1995         * g-comlin.adb, g-comlin.ads (Define_Switch): Put back (unused)
1996         parameter Separator for backward compatibility.
1998 2010-10-12  Robert Dewar  <dewar@adacore.com>
2000         * sem_ch9.adb, par-ch9.adb, impunit.adb: Minor reformatting.
2002 2010-10-12  Vincent Celier  <celier@adacore.com>
2004         * debug.adb: Put detailed documentation for gnatmake switch -dm.
2006 2010-10-12  Vincent Celier  <celier@adacore.com>
2008         * gnat1drv.adb: When the compiler is invoked for a spec that needs aw
2009         body, do not generate an ALI file if neither -gnatc nor -gnatQ is used.
2011 2010-10-12  Arnaud Charlet  <charlet@adacore.com>
2013         * g-comlin.adb (Foreach_Switch): Make this procedure generic to avoid
2014         using 'Access.
2016 2010-10-12  Robert Dewar  <dewar@adacore.com>
2018         * debug.adb: Add comment.
2019         * gnatcmd.adb, sem_ch6.adb, switch-m.adb: Minor reformatting.
2021 2010-10-12  Javier Miranda  <miranda@adacore.com>
2023         * exp_util.adb (Side_Effect_Free): Return true for object renaming
2024         declarations that were previously generated by Remove_Side_Effects.
2026 2010-10-12  Emmanuel Briot  <briot@adacore.com>
2028         * xref_lib.adb (Get_Full_Type): Display "private variable" instead of
2029         "???" when an entity is defined as "*" in the ALI file.
2030         * g-comlin.ads, g-comlin.adb: Fix handling of null parameters.
2031         Minor reformatting.
2033 2010-10-12  Emmanuel Briot  <briot@adacore.com>
2035         * g-comlin.adb, g-comlin.ads (Display_Help, Getopt, Current_Section,
2036         Set_Usage): New subprograms.
2037         (Define_Switch): Change profile to add support for help messages and
2038         long switches.
2040 2010-10-12  Javier Miranda  <miranda@adacore.com>
2042         * sem_ch6.adb (New_Overloaded_Entity): Add missing decoration of
2043         attribute Overridden_Operation in predefined dispatching primitives. 
2045 2010-10-12  Emmanuel Briot  <briot@adacore.com>
2047         * g-comlin.adb, g-comlin.ads (Add_Switch): Raise an exception when a
2048         command line configuration exists and we specify an invalid section.
2050 2010-10-12  Robert Dewar  <dewar@adacore.com>
2052         * sem_ch6.adb (Process_PPCs): Fix error in inheriting Pre'Class when no
2053         exception messages are generated.
2054         (Process_PPCs): Fix error in inheriting Pre'Class.
2056 2010-10-12  Jose Ruiz  <ruiz@adacore.com>
2058         * gnatcmd.adb: Use response file for GNATstack.
2059         (Check_Files): Pass the list of ci files for GNATstack using a response
2060         file to avoid problems with command line length.
2061         Factor out the code handling response file into a new procedure named
2062         Add_To_Response_File.
2064 2010-10-12  Vincent Celier  <celier@adacore.com>
2066         * debug.adb: For gnatmake, document the meaning of -dm
2067         * make.adb (Gnatmake): If -dm is used, indicate the maximum number of
2068         simultaneous compilations.
2069         * switch-m.adb (Scan_Make_Switches): Allow -j0, meaning as many
2070         simultaneous compilations as the number of processors.
2072 2010-10-12  Joseph Myers  <joseph@codesourcery.com>
2074         * gcc-interface/Make-lang.in (ada/misc.o): Use $(OPTIONS_H)
2075         instead of options.h.
2077 2010-10-12  Robert Dewar  <dewar@adacore.com>
2079         * gnat_rm.texi: Clarify that 'Old can be used in preconditions and
2080         postcondition pragmas.
2082 2010-10-12  Robert Dewar  <dewar@adacore.com>
2084         * errout.ads, erroutc.adb: The # insertion now handles from in place of
2085         at.
2086         * exp_prag.adb (Expand_Pragma_Check): Suppress generated default
2087         message if new switch Exception_Locations_Suppressed is set.
2088         (Expand_Pragma_Check): Revised wording for default message for case
2089         of precondition or postcondition.
2090         * namet.ads, namet.adb (Build_Location_String): New procedure.
2091         * opt.ads (List_Inherited_Pre_Post): New flag.
2092         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Add call to
2093         list inherited pre/post aspects.
2094         * sem_ch13.adb (Analyze_Aspect_Specification): Improve generation of
2095         messages for precondition/postcondition cases.
2096         * sem_ch6.adb (Process_PPCs): General cleanup, and list inherited PPC's
2097         if flag List_Inherited_Pre_Post is set True.
2098         (Process_PPCs): Add initial handling for inherited preconditions
2099         (List_Inherited_Pre_Post_Aspects): New procedure
2100         * sem_ch6.ads (List_Inherited_Pre_Post_Aspects): New procedure
2101         * sem_disp.adb (Inherited_Subprograms): New function
2102         * sem_disp.ads (Inherited_Subprograms): New function
2103         * sem_prag.adb (Check_Duplicate_Pragma): Clean up handling of
2104         pre/postcondition.
2105         (Check_Precondition_Postcondition): Check for inherited aspects
2106         * sem_warn.adb: Process -gnatw.l/w.L setting List_Inherited_Pre_Post
2107         * sinfo.ads, sinfo.adb (Split_PPC): New flag.
2108         * sinput.ads, sinput.adb (Build_Location_String): New function.
2109         * usage.adb: Add line for -gnatw.l/-gnatw.L
2111 2010-10-12  Javier Miranda  <miranda@adacore.com>
2113         * exp_util.adb (Remove_Side_Effects): Remove wrong code.
2115 2010-10-12  Arnaud Charlet  <charlet@adacore.com>
2117         * xref_lib.adb: Add handling of j/J letters.
2119 2010-10-12  Pascal Obry  <obry@adacore.com>
2121         * adaint.c (__gnat_number_of_cpus): Add implementation for Windows.
2123 2010-10-12  Arnaud Charlet  <charlet@adacore.com>
2125         * make.adb (Globalize): New procedure.
2126         (Compile): Set Do_Codepeer_Globalize_Step when -gnatC is used.
2127         (Gnatmake): Call Globalize when needed.
2128         (Process_Restrictions_Or_Restriction_Warnings): Ignore Restrictions
2129         pragmas in CodePeer mode.
2130         (Adjust_Global_Switches): Set No_Initialize_Scalars in CodePeer mode,
2131         to generate simpler and consistent code.
2133 2010-10-12  Bob Duff  <duff@adacore.com>
2135         * exp_util.adb (Remove_Side_Effects): Disable previous change,
2136         can cause side effects to be duplicated.
2138 2010-10-12  Robert Dewar  <dewar@adacore.com>
2140         * sem_ch6.adb (Process_PPCs): Handle inherited postconditions.
2142 2010-10-12  Arnaud Charlet  <charlet@adacore.com>
2144         * exp_disp.adb (Set_All_DT_Position): Disable emit error message on
2145         abstract inherited private operation in CodePeer mode.
2147 2010-10-12  Thomas Quinot  <quinot@adacore.com>
2149         * a-exetim.ads: Minor reformatting.
2150         * g-socket.ads (Port_Type): Better definition corresponding to the
2151         actual standard range.
2152         * exp_ch5.adb: Add comment.
2153         * sem_aux.adb: Minor reformatting.
2155 2010-10-12  Ed Schonberg  <schonberg@adacore.com>
2157         * sem_ch12.adb (Copy_Generic_Node): If node is a string literal, remove
2158         string_literal_subtype so that a new one can be constructed in the
2159         scope of the instance.
2161 2010-10-12  Robert Dewar  <dewar@adacore.com>
2163         * exp_ch9.adb (Has_Pragma_Priority): New name for Has_Priority_Pragma
2164         * gnat_rm.texi (pragma Suppress_All): Document new placement rules
2165         * par-prag.adb (P_Pragma, case Suppress_All): Set
2166         Has_Pragma_Suppress_All flag.
2167         * sem_prag.adb (Has_Pragma_Priority): New name for Has_Priority_Pragma
2168         (Analyze_Pragma, case Suppress_All): Remove placement check
2169         (Process_Compilation_Unit_Pragmas): Use Has_Pragma_Suppress_All flag
2170         * sem_prag.ads (Process_Compilation_Unit_Pragmas): Update documentation
2171         * sinfo.adb (Has_Pragma_Suppress_All): New flag
2172         (Has_Pragma_Priority): New name for Has_Priority_Pragma
2173         * sinfo.ads (Has_Pragma_Suppress_All): New flag
2174         (Has_Pragma_Priority): New name for Has_Priority_Pragma
2176 2010-10-12  Arnaud Charlet  <charlet@adacore.com>
2178         * lib-xref.ads: Mark j/J as reserved for C++ classes.
2180 2010-10-12  Jose Ruiz  <ruiz@adacore.com>
2182         * a-exetim-default.ads, a-exetim-posix.adb: New.
2183         * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for linux): Use the
2184         POSIX Realtime support to implement CPU clocks.
2185         (EXTRA_GNATRTL_TASKING_OBJS for linux): Add the a-exetim.o object
2186         to the tasking library.
2187         (THREADSLIB): Make the POSIX.1b Realtime Extensions library (librt)
2188         available for shared libraries.
2189         * gcc-interface/Make-lang.in: Update dependencies.
2191 2010-10-12  Robert Dewar  <dewar@adacore.com>
2193         * sem_ch13.adb (Analyze_Aspect_Specifications): For Pre/Post, break
2194         apart expressions with AND THEN clauses into separate pragmas.
2195         * sinput.ads, sinput.adab (Get_Logical_Line_Number_Img): New function.
2197 2010-10-12  Robert Dewar  <dewar@adacore.com>
2199         * par-ch13.adb (P_Aspect_Specifications): Fix handling of 'Class
2200         aspects.
2201         * sem_ch13.adb (Analyze_Aspect_Specifications): Fix bad Sloc on aspects
2202         * sem_prag.adb (Fix_Error): Only change pragma names for pragmas from
2203         aspects.
2204         (Check_Optional_Identifier): Handle case of direct arguments
2205         (Chain_PPC): Test for abstract case, giving appropriate messages
2206         * sinfo.ads, sinfo.adb (Class_Present): Allowed on N_Pragma node
2208 2010-10-12  Robert Dewar  <dewar@adacore.com>
2210         * par-endh.adb (Check_End): Don't swallow semicolon or aspects after
2211         END RECORD.
2212         * sem_attr.adb (Eval_Attribute): Code clean up.
2214 2010-10-12  Robert Dewar  <dewar@adacore.com>
2216         * par-ch12.adb (P_Formal_Private_Type_Definition): Improve error
2217         messages and recovery for case of out of order Abstract/Tagged/Private
2218         keywords.
2219         * par-ch3.adb (P_Type_Declaration): Improve error messages and recovery
2220         for case of out of order Abstract/Tagged/Private keywords.
2222 2010-10-12  Ed Schonberg  <schonberg@adacore.com>
2224         * inline.adb (Analyze_Inlined_Bodies): Restrict previous change to case
2225         where child unit is main unit of compilation.
2227 2010-10-12  Robert Dewar  <dewar@adacore.com>
2229         * aspects.ads, aspects.adb (Move_Aspects): New procedure.
2230         * atree.ads, atree.adb: (New_Copy): Does not copy aspect specifications
2231         * sinfo.ads, par-ch3.adb, par-ch6.adb, par-ch7.adb, par-ch9.adb,
2232         par-endh.adb, par-ch13.adb, par-ch12.adb: Modify grammar to include
2233         aspect specifications.
2234         Recognize aspect specifications for all cases
2235         * par.adb: Recognize aspect specifications for all cases
2236         * sem_ch12.ads, sem_ch12.adb (Copy_Generic_Node): Copies aspect
2237         specifications.
2238         * sem_ch3.adb (Analyze_Subtype_Declaration): Improve patch to freeze
2239         generic actual types (was missing some guards before).
2240         * sem_ch9.adb (Analyze_Single_Protected_Declaration): Copy aspects to
2241         generated object
2242         (Analyze_Single_Task_Declaration): Copy aspects to generated object
2244 2010-10-12  Eric Botcazou  <ebotcazou@adacore.com>
2246         * usage.adb (usage): Adjust line for -gnatn switch.
2248 2010-10-12  Robert Dewar  <dewar@adacore.com>
2250         * sem_attr.adb (Eval_Attribute): Only leave change active for aspect
2251         spec case.
2253 2010-10-12  Ed Schonberg  <schonberg@adacore.com>
2255         * sem_ch6.adb (Analyze_Subprogram_Declaration): If this is a
2256         declaration of a null procedure resolve the types of the profile of the
2257         generated null body now.
2259 2010-10-11  Robert Dewar  <dewar@adacore.com>
2261         * debug.adb: Remove d.A flag to delay address clause (not needed any
2262         more). Add d.A flag to enable tree read/write of aspect spec hash table
2263         * sem_ch13.adb (Analyze_Aspect_Specifications): Properly delay address
2264         clause.
2265         (Rep_Item_Too_Late): No need for special processing for delayed rep
2266         items (and it caused difficulties in the address case).
2267         * tree_gen.adb: Only write aspect spec hash table if -gnatd.A is set
2268         * tree_in.adb: Only write aspect spec hash table if -gnatd.A is set
2270 2010-10-11  Pat Rogers  <rogers@adacore.com>
2272         * gnat_ugn.texi: Minor editing.
2274 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
2276         * gcc-interface/utils2.c (gnat_build_constructor): Use VEC_qsort.
2278 2010-10-11  Robert Dewar  <dewar@adacore.com>
2280         * g-htable.ads (Get_First): New procedural version for Simple_HTable
2281         (Get_Next): New procedural version for Simple_HTable
2282         * s-htable.adb (Get_First): New procedural version for Simple_HTable
2283         (Get_Next): New procedural version for Simple_HTable
2284         * s-htable.ads (Get_First): New procedural version for Simple_HTable
2285         (Get_Next): New procedural version for Simple_HTable
2287 2010-10-11  Ed Schonberg  <schonberg@adacore.com>
2289         * sem_aggr.adb (Propagate_Discriminants): To gather the components of a
2290         variant part, use the association list of the subaggregate, which
2291         already includes the values of the needed discriminants.
2293 2010-10-11  Robert Dewar  <dewar@adacore.com>
2295         * aspects.ads, aspects.adb: Changes to accomodate aspect delay
2296         (Tree_Write): New procedure.
2297         * atree.ads, atree.adb: Flag3 is now Has_Aspects and applies to all
2298         nodes.
2299         * atree.h: Flag3 is now Has_Aspects and applies to all nodes
2300         * debug.adb: Add debug flag gnatd.A
2301         * einfo.adb (Has_Delayed_Aspects): New flag
2302         (Get_Rep_Item_For_Entity): New function
2303         * einfo.ads (Has_Delayed_Aspects): New flag
2304         (Get_Rep_Item_For_Entity): New function
2305         * exp_ch13.adb (Expand_N_Freeze_Entity): Insert delayed aspects into
2306         tree.
2307         * exp_ch3.adb, exp_ch6.adb, exp_ch9.adb, exp_disp.adb: New calling
2308         sequence for Freeze_Entity.
2309         * freeze.ads, freeze.adb (Freeze_Entity): Takes node rather than source
2310         ptr. All calls are changed to this new interface.
2311         (Freeze_And_Append): Same change
2312         (Freeze_Entity): Evaluate deferred aspects
2313         * sem_attr.adb: New calling sequence for Freeze_Entity
2314         (Eval_Attribute): Don't try to evaluate attributes of unfrozen types
2315         when we are in spec expression preanalysis mode.
2316         * sem_ch10.adb: New calling sequence for Freeze_Entity
2317         * sem_ch11.adb: Simplify analysis of aspect specifications now that the
2318         flag Has_Aspects applies to all nodes (no need to save aspects).
2319         * sem_ch12.adb: Simplify analysis of aspect specifications now that the
2320         flag Has_Aspects applies to all nodes (no need to save aspects).
2321         * sem_ch13.adb (Analyze_Aspect_Specifications): Major rewrite to
2322         accomodate delaying aspect evaluation to the freeze point.
2323         (Duplicate_Clause): Simplify using Get_Rep_Item_For_Entity, and also
2324         accomodate delayed aspects.
2325         (Rep_Item_Too_Late): Deal with delayed aspects case
2326         * sem_ch13.ads (Rep_Item_Too_Late): Document handling of delayed
2327         aspects.
2328         * sem_ch3.adb (Analyze_Subtype_Declaration): Make sure that generic
2329         actual types are properly frozen (this is needed because of the new
2330         check in Eval_Attribute that declines to evaluate attributes
2331         for unfrozen types).
2332         Simplify analysis of aspect specifications now that the flag
2333         Has_Aspects applies to all nodes (no need to save aspects).
2334         * sem_ch3.ads (Preanalyze_Spec_Expression): Note use for delayed
2335         aspects.
2336         * sem_ch5.adb: Simplify analysis of aspect specifications now that the
2337         flag Has_Aspects applies to all nodes (no need to save aspects).
2338         New calling sequence for Freeze_Entity.
2339         * sem_ch9.adb, sem_ch7.adb, sem_ch6.adb: Simplify analysis of aspect
2340         specifications now that the flag Has_Aspects applies to all nodes
2341         (no need to save aspects).
2342         New calling sequence for Freeze_Entity
2343         * sem_prag.adb (Check_Duplicate_Pragma): Simplify using
2344         Get_Rep_Item_For_Entity
2345         (Get_Pragma_Arg): Moved to Sinfo
2346         * sinfo.ads, sinfo.adb (Aspect_Rep_Item_: New field
2347         (Is_Delayed_Aspect): New flag
2348         (Next_Rep_Item): Document use for aspects
2349         (Get_Pragma_Arg): Moved here from Sem_Prag
2350         * sprint.adb (Sprint_Aspect_Specifications): Now called after semicolon
2351         is output and removes semicolon (simplifies interface).
2352         (Sprint_Node_Actual): Simplify handling of aspects now that Has_Aspects
2353         applies to any node.
2354         * tree_gen.adb: Write contents of Aspect_Specifications hash table
2355         * tree_in.adb: Read and initialize Aspect_Specifications hash table
2356         * treepr.adb (Print_Node): Print Has_Aspects flag
2357         (Print_Node): Print Aspect_Specifications in Has_Aspects set
2358         * xtreeprs.adb: Remove obsolete references to Flag1,2,3
2360 2010-10-11  Robert Dewar  <dewar@adacore.com>
2362         * aspects.ads, aspects.adb: Major revision of this package for 2nd
2363         stage of aspects implementation.
2364         * gcc-interface/Make-lang.in: Add entry for aspects.o
2365         * gcc-interface/Makefile.in: Add aspects.o to GNATMAKE_OBJS
2366         * par-ch13.adb (Aspect_Specifications_Present): New function
2367         (P_Aspect_Specifications): New procedure
2368         * par-ch3.adb (P_Type_Declaration): Handle aspect specifications
2369         (P_Derived_Type_Def_Or_Private_Ext_Decl): Handle aspect specifications
2370         (P_Identifier_Declarations): Handle aspect specifications
2371         (P_Component_Items): Handle aspect specifications
2372         (P_Subtype_Declaration): Handle aspect specifications
2373         * par-ch6.adb (P_Subprogram): Handle aspect specifications
2374         * par-ch9.adb (P_Entry_Declaration): Handle aspect specifications
2375         * par.adb (Aspect_Specifications_Present): New function
2376         (P_Aspect_Specifications): New procedure
2377         * sem.adb (Analyze_Full_Type_Declaration): New name for
2378         Analyze_Type_Declaration.
2379         (Analyze_Formal_Package_Declaration): New name (add _Declaration)
2380         (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
2381         (Analyze_Protected_Type_Declaration): New name (add _Declaration)
2382         (Analyze_Single_Protected_Declaration): New name (add _Declaration)
2383         (Analyze_Single_Task_Declaration): New name (add _Declaration)
2384         (Analyze_Task_Type_Declaration): New name (add _Declaration)
2385         * sem_cat.adb (Analyze_Full_Type_Declaration): New name for
2386         Analyze_Type_Declaration.
2387         * sem_ch11.adb (Analyze_Exception_Declaration): Analyze aspect
2388         specifications.
2389         * sem_ch12.adb (Analyze_Formal_Object_Declaration): Handle aspect
2390         specifications.
2391         (Analyze_Formal_Package_Declaration): New name (add _Declaration)
2392         (Analyze_Formal_Package_Declaration): Handle aspect specifications
2393         (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
2394         (Analyze_Formal_Subprogram_Declaration): Handle aspect specifications
2395         (Analyze_Formal_Type_Declaration): Handle aspect specifications
2396         (Analyze_Generic_Package_Declaration): Handle aspect specifications
2397         (Analyze_Generic_Subprogram_Declaration): Handle aspect specifications
2398         (Analyze_Package_Instantiation): Handle aspect specifications
2399         (Analyze_Subprogram_Instantiation): Handle aspect specifications
2400         * sem_ch12.ads (Analyze_Formal_Package_Declaration): New name (add
2401         _Declaration).
2402         (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
2403         * sem_ch13.adb (Analyze_Aspect_Specifications): New procedure
2404         (Duplicate_Clause): New function, calls to this function are added to
2405         processing for all aspects.
2406         * sem_ch13.ads (Analyze_Aspect_Specifications): New procedure
2407         * sem_ch3.adb (Analyze_Full_Type_Declaration): New name for
2408         Analyze_Type_Declaration.
2409         * sem_ch3.ads (Analyze_Full_Type_Declaration): New name for
2410         Analyze_Type_Declaration.
2411         * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Analyze aspect
2412         specifications.
2413         (Analyze_Subprogram_Declaration): Analyze aspect specifications
2414         * sem_ch7.adb (Analyze_Package_Declaration): Analyze aspect
2415         specifications.
2416         (Analyze_Private_Type_Declaration): Analyze aspect specifications
2417         * sem_ch9.adb (Analyze_Protected_Type_Declaration): Analyze aspect
2418         specifications.
2419         (Analyze_Protected_Type_Declaration): New name (add _Declaration)
2420         (Analyze_Single_Protected_Declaration): Analyze aspect specifications
2421         (Analyze_Single_Protected_Declaration): New name (add _Declaration)
2422         (Analyze_Single_Task_Declaration): Analyze aspect specifications
2423         (Analyze_Single_Task_Declaration): New name (add _Declaration)
2424         (Analyze_Task_Type_Declaration): Analyze aspect specifications
2425         (Analyze_Task_Type_Declaration): New name (add _Declaration)
2426         * sem_ch9.ads (Analyze_Protected_Type_Declaration): New name (add
2427         _Declaration).
2428         (Analyze_Single_Protected_Declaration): New name (add _Declaration)
2429         (Analyze_Single_Task_Declaration): New name (add _Declaration)
2430         (Analyze_Task_Type_Declaration): New name (add _Declaration)
2431         * sem_prag.adb: Use Get_Pragma_Arg systematically so that we do not
2432         have to generate unnecessary pragma argument associations (this matches
2433         the doc).
2434         Throughout do changes to accomodate aspect specifications, including
2435         specializing messages, handling the case of not going through all
2436         homonyms, and allowing for cancellation.
2437         * sinfo.ads, sinfo.adb: Clean up obsolete documentation for Flag1,2,3
2438         (Aspect_Cancel): New flag
2439         (From_Aspect_Specification): New flag
2440         (First_Aspect): Removed flag
2441         (Last_Aspect): Removed flag
2442         * sprint.adb (Sprint_Aspect_Specifications): New procedure
2443         (Sprint_Node_Actual): Add calls to Sprint_Aspect_Specifications
2445 2010-10-11  Bob Duff  <duff@adacore.com>
2447         * sem_res.adb (Resolve_Actuals): Minor change to warning messages so
2448         they match in Ada 95, 2005, and 2012 modes, in the case where the
2449         language didn't change. Same thing for the run-time exception message.
2451 2010-10-11  Javier Miranda  <miranda@adacore.com>
2453         * debug.adb Document that switch -gnatd.p enables the CIL verifier.
2455 2010-10-11  Robert Dewar  <dewar@adacore.com>
2457         * s-htable.adb: Minor reformatting.
2459 2010-10-11  Javier Miranda  <miranda@adacore.com>
2461         * debug.adb: Update comment.
2463 2010-10-11  Vincent Celier  <celier@adacore.com>
2465         * gnatcmd.adb (GNATCmd): Set Opt.Unchecked_Shared_Lib_Imports to True
2466         unconditionally as for "gnat make" the projects are not processed in
2467         the GNAT driver.
2469 2010-10-11  Ed Schonberg  <schonberg@adacore.com>
2471         * sem_ch10.ads, sem_ch10.adb (Load_Needed_Body): Add parameter to
2472         suppress semantic analysis of the body when inlining, prior to
2473         verifying that the body does not have a with_clause on a descendant
2474         unit.
2475         * inline.adb (Analyze_Inlined_Bodies): Do not inline a body if it has a
2476         with_clause on a descendant. 
2477         (Scope_In_Main_Unit): Simplify.
2479 2010-10-11  Robert Dewar  <dewar@adacore.com>
2481         * exp_ch6.adb, freeze.adb: Minor reformatting.
2483 2010-10-11  Vincent Celier  <celier@adacore.com>
2485         * gnatcmd.adb (GNATCmd): For all tools other than gnatmake, allow
2486         shared library projects to import projects that are not shared library
2487         projects.
2489 2010-10-11  Javier Miranda  <miranda@adacore.com>
2491         * debug.adb: Document that switch -gnatd.o generates the CIL listing.
2493 2010-10-11  Arnaud Charlet  <charlet@adacore.com>
2495         * sem_prag.adb (Process_Suppress_Unsuppress): Only ignore
2496         Suppress/Unsuppress pragmas in codepeer mode on user code.
2498 2010-10-11  Javier Miranda  <miranda@adacore.com>
2500         * exp_ch6.adb (Expand_Call): For VM platforms, add missing expansion of
2501         tag check in case of dispatching call through "=".
2503 2010-10-11  Ed Schonberg  <schonberg@adacore.com>
2505         * sem_ch3.adb (Access_Subprogram_Declaration): In Ada2012 an incomplete
2506         type is legal in the profile of any basic declaration.
2507         * sem_ch6.adb (Analyze_Return_Type, Process_Formals): In Ada2012 an
2508         incomplete type, including a limited view of a type, is legal in the
2509         profile of any subprogram declaration.
2510         If the type is tagged, its use is also legal in a body.
2511         * sem_ch10.adb (Install_Limited_With_Clause): Do not process context
2512         item if misplaced.
2513         (Install_Limited_Withed_Unit): Refine legality checks when both the
2514         limited and the non-limited view of a package are visible in the
2515         context of a unit.
2516         If this is not an error case, the limited view is ignored.
2517         freeze.adb (Freeze_Entity): In Ada2012, an incomplete type is legal in
2518         access to subprogram declarations
2520 2010-10-11  Robert Dewar  <dewar@adacore.com>
2522         * exp_ch6.adb: Code clean up.
2523         * exp_util.adb: Minor reformatting.
2525 2010-10-11  Arnaud Charlet  <charlet@adacore.com>
2527         * sem_ch3.adb, exp_ch6.adb
2528         (Make_Build_In_Place_Call_In_Anonymous_Context,
2529         Make_Build_In_Place_Call_In_Assignment,
2530         Make_Build_In_Place_Call_In_Object_Declaration): Fix calls to
2531         Add_Task_Actuals_To_Build_In_Place_Call in case of No_Task_Hierarchy
2532         restriction.
2533         (Access_Definition): Add missing handling of No_Task_Hierarchy.
2535 2010-10-11  Javier Miranda  <miranda@adacore.com>
2537         * exp_util.adb (Remove_Side_Effects): No action needed for renamings of
2538         class-wide expressions.
2540 2010-10-11  Arnaud Charlet  <charlet@adacore.com>
2542         * xr_tabls.adb, sem_res.adb: Minor reformatting
2544 2010-10-11  Arnaud Charlet  <charlet@adacore.com>
2546         * gnat_rm.texi, exp_attr.adb, sem_attr.adb, sem_attr.ads,
2547         snames.ads-tmpl (Analyze_Attribute, Expand_N_Attribute_Reference): Add
2548         handling of Attribute_Ref. Add missing blanks in some error messages.
2549         (Attribute_Ref, Name_Ref): Declare.
2550         Document 'Ref attribute.
2552 2010-10-11  Robert Dewar  <dewar@adacore.com>
2554         * sem_attr.adb: Minor reformatting.
2556 2010-10-11  Javier Miranda  <miranda@adacore.com>
2558         * sem_ch8.adb (Attribute_Renaming): Add missing check to avoid loading
2559         package System.Aux_Dec in VM platforms.
2561 2010-10-11  Arnaud Charlet  <charlet@adacore.com>
2563         * sem_prag.adb (Process_Suppress_Unsuppress): Ignore
2564         Suppress/Unsuppress pragmas in codepeer mode.
2565         (Analyze_Pragma [Pragma_Suppress_All]): Do not generate error message
2566         in codepeer mode.
2567         * einfo.ads: Fix typo.
2569 2010-10-11  Emmanuel Briot  <briot@adacore.com>
2571         * sinfo.adb: Use GNAT.HTable rather than System.HTable.
2572         * prj-nmsc.adb: Minor reformatting.
2574 2010-10-11  Thomas Quinot  <quinot@adacore.com>
2576         * sem_attr.adb (Type_Key): Code simplification.
2578 2010-10-11  Tristan Gingold  <gingold@adacore.com>
2580         * gcc-interface/utils2.c (maybe_wrap_malloc): Fix crash when allocating
2581         very large object on VMS.
2583 2010-10-11  Javier Miranda  <miranda@adacore.com>
2585         * sem_ch10.adb (Analyze_With_Clause): Add missing test to ensure
2586         availability of attribute Instance_Spec.
2588 2010-10-11  Arnaud Charlet  <charlet@adacore.com>
2590         * gnat1drv.adb (Adjust_Global_Switches): Disable codepeer mode if
2591         checking syntax only or in ASIS mode.
2593 2010-10-11  Ed Schonberg  <schonberg@adacore.com>
2595         * sem_ch6.adb (Check_Delayed_Subprogram): Abstract subprograms may also
2596         need a freeze node if some type in the profile has one.
2597         * gcc-interface/trans.c (case N_Abstract_Subprogram_Declaration): If
2598         entity has a freeze node, defer elaboration.
2600 2010-10-11  Emmanuel Briot  <briot@adacore.com>
2602         * prj-nmsc.adb (Check_Aggregate_Project): Add support for finding all
2603         aggregated projects.
2605 2010-10-11  Ed Schonberg  <schonberg@adacore.com>
2607         * sem_res.adb (Resolve_Entry_Call): Generate 's' reference for entry
2608         call.
2609         * sem_ch6.adb: Diagnose additional error condition.
2611 2010-10-11  Bob Duff  <duff@adacore.com>
2613         * par.adb (Par): Clarify wording of certain error messages.
2615 2010-10-11  Gary Dismukes  <dismukes@adacore.com>
2617         * sem_disp.adb (Check_Dispatching_Operation): Revise test for warning
2618         about nondispatching subprograms to use In_Same_List (reducing use of
2619         Parent links).
2621 2010-10-11  Ed Schonberg  <schonberg@adacore.com>
2623         * xr_tabls.adb, sem_res.adb, lib-xref.adb, lib-xref.ads: Use s for
2624         reference in a static call.
2626 2010-10-11  Steve Baird  <baird@adacore.com>
2628         * exp_attr.adb (Expand_N_Attribute_Reference, case Type_Key): Type_Key
2629         attribute should always be transformed into a string literal in
2630         Analyze_Attribute.
2631         * par-ch4.adb: Type_Key attribute's type is String; update value of
2632         Is_Parameterless_Attribute constant to reflect this.
2633         * sem_attr.adb (Analyze_Attribute): Recognize Type_Key attribute and
2634         rewrite it as a string literal (attribute value is always known
2635         statically).
2636         * snames.ads-tmpl: Add entries for Type_Key attribute.
2638 2010-10-11  Ed Schonberg  <schonberg@adacore.com>
2640         * lib-xref.adb (Output_References): Common handling for objects and
2641         formals of an anonymous access type.
2643 2010-10-11  Eric Botcazou  <ebotcazou@adacore.com>
2645         * make.adb (Scan_Make_Arg): Also pass -O to both compiler and linker.
2647 2010-10-11  Ed Schonberg  <schonberg@adacore.com>
2649         * sem_ch6.adb: Fix check for illegal equality declaration in Ada2012
2651 2010-10-11  Gary Dismukes  <dismukes@adacore.com>
2653         * sem_disp.adb (Check_Dispatching_Operation): When testing for issuing
2654         a warning about subprograms of a tagged type not being dispatching,
2655         limit this to cases where the tagged type and the subprogram are
2656         declared within the same declaration list.
2658 2010-10-11  Jerome Lambourg  <lambourg@adacore.com>
2660         * projects.texi, prj-attr.adb: Add new attribute documentation_dir.
2662 2010-10-11  Bob Duff  <duff@adacore.com>
2664         * par-ch9.adb, sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, impunit.adb,
2665         impunit.ads, sem_ch5.adb, sem_type.adb, exp_imgv.adb, exp_util.adb,
2666         switch-c.adb, exp_attr.adb, exp_ch9.adb, par-ch11.adb, usage.adb,
2667         sem_ch9.adb, sem_ch10.adb, scng.adb, checks.adb, sem_prag.adb,
2668         sem_ch12.adb, par-ch2.adb, freeze.adb, par-ch4.adb, sem_util.adb,
2669         sem_res.adb, sem_attr.adb, par-ch6.adb, exp_ch4.adb, exp_ch6.adb,
2670         sem_ch4.adb, exp_ch8.adb, par-ch10.adb, sem_ch6.adb, par-prag.adb,
2671         exp_disp.adb, par-ch12.adb, sem_ch8.adb, snames.adb-tmpl, opt.ads,
2672         exp_aggr.adb, sem_cat.adb, sem_ch13.adb, par-ch3.adb, exp_strm.adb,
2673         exp_cg.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb: Use Ada_2005
2674         instead of Ada_05 (Ada_Version_Type).
2676 2010-10-11  Bob Duff  <duff@adacore.com>
2678         * sem_aggr.adb, impunit.adb, impunit.ads, switch-c.adb, usage.adb,
2679         sem_ch10.adb, sem_prag.adb, sem_ch12.adb, par-ch4.adb, par-ch6.adb,
2680         par-ch8.adb, exp_ch4.adb, sem_ch4.adb, sem_ch6.adb, par-prag.adb,
2681         opt.ads, par-ch3.adb, lib-xref.adb: Use Ada_2012 instead of Ada_12
2682         (Ada_Version_Type).
2684 2010-10-11  Javier Miranda  <miranda@adacore.com>
2686         * exp_util.adb (Safe_Prefixed_Reference): If the prefix is an explicit
2687         dereference then do not exclude dereferences of access-to-constant
2688         types to handle them as constant view of variables (and hence remove
2689         side effects when required).
2690         * sem_res.adb (Resolve_Slice): Ensure that side effects in the bounds
2691         are properly handled.
2693 2010-10-11  Robert Dewar  <dewar@adacore.com>
2695         * sem_prag.adb, sem_aggr.adb, sprint.adb: Minor reformatting.
2697 2010-10-11  Javier Miranda  <miranda@adacore.com>
2699         * exp_ch5.ads, exp_ch6.ads (Expand_N_Extended_Return_Statement): Moved
2700         to exp_ch6.
2701         (Expand_N_Simple_Return_Statement): Moved to exp_ch6.
2702         * exp_ch5.adb, exp_ch6.adb (Expand_Non_Function_Return): Moved to
2703         exp_ch6.
2704         (Expand_Simple_Function_Return): Move to exp_ch6.
2705         (Expand_N_Extended_Return_Statement): Moved to exp_ch6.
2706         (Expand_N_Simple_Return_Statement): Moved to exp_ch6.
2708 2010-10-11  Robert Dewar  <dewar@adacore.com>
2710         * snames.ads-tmpl: Add names for aspects.
2711         * aspects.ads, aspects.adb: New.
2712         * gcc-interface/Make-lang.in: Update dependencies.
2713 2010-10-11  Ed Schonberg  <schonberg@adacore.com>
2715         * exp_ch6.adb (Expand_Actuals): If an actual is the current instance of
2716         a task type, it must be replaced with a reference to Self.
2718 2010-10-11  Vincent Celier  <celier@adacore.com>
2720         * adaint.h: Add prototype for function __gnat_create_output_file_new.
2722 2010-10-11  Javier Miranda  <miranda@adacore.com>
2724         * sem_aggr.adb (Collect_Aggr_Bounds): Remove side effects of collected
2725         aggregate bounds.
2727 2010-10-11  Arnaud Charlet  <charlet@adacore.com>
2729         * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Do not emit error
2730         for AI05-0033 in CodePeer mode.
2732 2010-10-11  Robert Dewar  <dewar@adacore.com>
2734         * atree.h, atree.ads, atree.adb (Flag3): New flag (replaces Unused_1)
2735         * csinfo.adb: Aspect_Specifications is a new special field
2736         * einfo.adb (Flag3): New unused flag
2737         * exp_util.adb (Insert_Actions): Add processing for
2738         N_Aspect_Specification.
2739         * sem.adb: Add entry for N_Aspect_Specification.
2740         * sinfo.ads, sinfo.adb (N_Aspect_Specification): New node
2741         (Has_Aspect_Specifications): New flag
2742         (Permits_Aspect_Specifications): New function
2743         (Aspect_Specifications): New function
2744         (Set_Aspect_Specifications): New procedure
2745         * sprint.adb (Sprint_Node): Put N_At_Clause in proper alpha order
2746         (Sprint_Node): Add dummy entry for N_Aspect_Specification
2747         * treepr.adb (Flag3): New flag to be listed
2749 2010-10-11  Vincent Celier  <celier@adacore.com>
2751         * adaint.c: Minor reformatting.
2753 2010-10-11  Robert Dewar  <dewar@adacore.com>
2755         * sem_ch6.adb, s-htable.ads: Minor reformatting.
2757 2010-10-11  Ed Schonberg  <schonberg@adacore.com>
2759         * sem_ch4.adb (Analyze_Selected_Component): If the selector is
2760         invisible in an instantiation, and both the formal and the actual are
2761         private extensions of the same type, look for the desired component in
2762         the proper view of the parent type.
2764 2010-10-11  Vincent Celier  <celier@adacore.com>
2766         * adaint.c (__gnat_number_of_cpus): Add implementation for Solaris,
2767         AIX, Tru64, Darwin, IRIX and HP-UX.
2769 2010-10-11  Robert Dewar  <dewar@adacore.com>
2771         * a-textio.adb: Minor reformatting
2773 2010-10-11  Robert Dewar  <dewar@adacore.com>
2775         * a-suesen.ads, a-suenst.ads,
2776         a-suesen.adb, a-suenst.adb,
2777         a-suewse.adb, a-suewst.adb,
2778         a-suewse.ads, a-suewst.ads,
2779         a-suezse.ads, a-suezst.ads,
2780         a-suezse.adb, a-suezst.adb: New name for string encoding packages.
2781         * impunit.adb: New names for string encoding units
2782         * Makefile.rtl: New names for string encoding units
2783         * rtsfind.ads: Minor code reorganization.
2785 2010-10-11  Ed Schonberg  <schonberg@adacore.com>
2787         * exp_ch5.adb: Code clean up.
2789 2010-10-11  Ed Schonberg  <schonberg@adacore.com>
2791         * sem_ch6.adb (Check_Limited_Return): Specialize warning on limited
2792         returns when in a generic context.
2793         (Analyze_Function_Return): ditto.
2795 2010-10-11  Robert Dewar  <dewar@adacore.com>
2797         * s-multip.ads: Fix header.
2798         * sem_ch3.adb, s-multip.adb, a-tigeli.adb: Minor reformatting.
2800 2010-10-11  Vincent Celier  <celier@adacore.com>
2802         * Makefile.rtl: Add s-multip.
2803         * adaint.c: New function __gnat_number_of_cpus, implemented for Linux,
2804         defaulting to 1 for other platforms.
2805         * adaint.h: New function __gnat_number_of_cpus.
2806         * impunit.adb (Non_Imp_File_Names_12): New file list for Ada 2012,
2807         with a single component "s-multip".
2808         * impunit.ads (Kind_Of_Unit): New enumerated value Ada_12_Unit for Ada
2809         2012.
2810         * rtsfind.ads (RTU_Id): New enumerated value System_Multiprocessors
2811         * s-multip.ads, s-multip.adb: New Ada 2012 package.
2812         * sem_ch10.adb (Analyze_With_Clause): Check also Ada 2012 units.
2814 2010-10-11  Javier Miranda  <miranda@adacore.com>
2816         * a-textio.adb: Move new implementation of Get_Line to a subunit.
2817         * a-tigeli.adb: New subunit containing the implementation of Get_Line.
2819 2010-10-11  Ed Schonberg  <schonberg@adacore.com>
2821         * sem_aux.adb: Code clean up.
2823 2010-10-11  Robert Dewar  <dewar@adacore.com>
2825         * sem_ch3.adb, sem_aux.adb, sem_ch6.adb: Minor reformatting
2827 2010-10-11  Robert Dewar  <dewar@adacore.com>
2829         * einfo.adb, atree.h, atree.ads, atree.adb: Define seven new flags
2830         Flag248-Flag254.  Define new field Field29.
2832 2010-10-10  Olivier Hainque  <hainque@adacore.com>
2833             Eric Botcazou  <ebotcazou@adacore.com>
2835         * gcc-interface/lang.opt (gdwarf+): Remove.
2836         * gcc-interface/gigi.h (get_parallel_type): Likewise
2837         * gcc-interface/misc.c (gnat_dwarf_extensions): Likewise.
2838         (gnat_handle_option): Remove OPT_gdwarfplus case.
2839         (gnat_post_options): Remove setting of use_gnu_debug_info_extensions
2840         from gnat_dwarf_extensions.
2841         * gcc-interface/trans.c (gigi): Remove -gdwarf+ initializations.
2842         * gcc-interface/utils.c (get_parallel_type): Remove.
2844 2010-10-10  Eric Botcazou  <ebotcazou@adacore.com>
2846         * gcc-interface/trans.c (gnat_to_gnu) <N_Not_In>: Use
2847         invert_truthvalue_loc instead of invert_truthvalue.
2848         * gcc-interface/utils2.c (build_binary_op) <NE_EXPR>: Likewise.
2849         (build_unary_op) <TRUTH_NOT_EXPR>: Likewise.
2851 2010-10-10  Eric Botcazou  <ebotcazou@adacore.com>
2853         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
2854         assertion on the types of the parameters.  Use KIND local variable.
2855         <E_Incomplete_Type>: Likewise.
2857 2010-10-10  Eric Botcazou  <ebotcazou@adacore.com>
2859         * gcc-interface/ada-tree.h (DECL_BY_DOUBLE_REF_P): New macro.
2860         * gcc-interface/gigi.h (annotate_object): Add BY_DOUBLE_REF parameter.
2861         * gcc-interface/decl.c (annotate_object): Likewise and handle it.
2862         (gnat_to_gnu_entity): Adjust calls to annotate_object.
2863         (gnat_to_gnu_param): If fat pointer types are passed by reference on
2864         the target, pass them by explicit reference.
2865         * gcc-interface/misc.c (default_pass_by_ref): Fix type of constant.
2866         * gcc-interface/trans.c (Identifier_to_gnu): Do DECL_BY_DOUBLE_REF_P.
2867         (Subprogram_Body_to_gnu): Adjust call to annotate_object.
2868         (call_to_gnu): Handle DECL_BY_DOUBLE_REF_P.
2869         * gcc-interface/utils.c (convert_vms_descriptor): Add BY_REF parameter
2870         and handle it.
2871         (build_function_stub): Iterate on the parameters of the subprogram in
2872         lieu of on the argument types.  Adjust call to convert_vms_descriptor.
2874 2010-10-09  Eric Botcazou  <ebotcazou@adacore.com>
2876         * gcc-interface/misc.c: Delete prototypes.
2877         (gnat_init_options): Use local variable.
2878         (lang_hooks): Move to the end of the file.
2880 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
2882         * gcc-interface/misc.c (gnat_init_options_struct): New.  Split out
2883         from gnat_init_options.
2884         (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
2886 2010-10-08  Ed Schonberg  <schonberg@adacore.com>
2888         * sem_aux.adb: Cleanup Is_Immutably_Limited_Type.
2890 2010-10-08  Robert Dewar  <dewar@adacore.com>
2892         * exp_ch3.adb: Minor reformatting.
2893         * exp_ch5.adb: Add comment.
2895 2010-10-08  Robert Dewar  <dewar@adacore.com>
2897         * sem_prag.adb (Check_Duplicate_Pragma): Check for entity match
2898         * gcc-interface/Make-lang.in: Update dependencies.
2899         * einfo.ads: Minor reformatting.
2901 2010-10-08  Ed Schonberg  <schonberg@adacore.com>
2903         * exp_ch5.adb, sem_ch3.adb, exp_ch7.adb, exp_util.adb, sem_aux.adb,
2904         sem_aux.ads, exp_ch4.adb, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
2905         exp_ch3.adb: Change Is_Inherently_Limited_Type to
2906         Is_Immutably_Limited_Type to accord with new RM terminology.
2907         * sem_aux.adb (Is_Immutably_Limited_Type): A type that is a descendant
2908         of a formal limited private type is not immutably limited in a generic
2909         body.
2911 2010-10-08  Robert Dewar  <dewar@adacore.com>
2913         * sem_prag.adb (Check_Duplicate_Pragma): New procedure
2914         Add calls to this new procedure where appropriate
2916 2010-10-08  Vincent Celier  <celier@adacore.com>
2918         * a-textio.adb (Get_Chunk): Code clean up.
2920 2010-10-08  Robert Dewar  <dewar@adacore.com>
2922         * a-strbou.ads, a-strfix.adb, a-strfix.ads, a-strsea.adb, a-strsea.ads,
2923         a-strsup.adb, a-strsup.ads, a-strunb-shared.adb, a-strunb-shared.ads,
2924         a-strunb.adb, a-strunb.ads, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
2925         a-stwise.adb, a-stwise.ads, a-stwisu.adb, a-stwisu.ads,
2926         a-stwiun-shared.adb, a-stwiun-shared.ads, a-stwiun.adb, a-stwiun.ads,
2927         a-stzbou.ads, a-stzfix.adb, a-stzfix.ads, a-stzsea.adb, a-stzsea.ads,
2928         a-stzsup.adb, a-stzsup.ads, a-stzunb-shared.adb, a-stzunb-shared.ads,
2929         a-stzunb.adb, a-stzunb.ads (Find_Token): New version with From
2930         parameter.
2932 2010-10-08  Robert Dewar  <dewar@adacore.com>
2934         * sem_cat.adb (Check_Categorization_Dependencies): Remote types
2935         packages can depend on preleborated packages.
2937 2010-10-08  Robert Dewar  <dewar@adacore.com>
2939         * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Pragmas
2940         Interrupt_Handler and Attach_Handler not allowed in generics.
2942 2010-10-08  Robert Dewar  <dewar@adacore.com>
2944         * ali.adb: Set Allocator_In_Body if AB parameter present on M line
2945         * ali.ads (Allocator_In_Body): New flag
2946         * bcheck.adb (Check_Consistent_Restrictions): Handle case of main
2947         program violating No_Allocators_After_Elaboration restriction.
2948         * gnatbind.adb (No_Restriction_List): Add entries for
2949         No_Anonymous_Allocators, and No_Allocators_After_Elaboration.
2950         * lib-load.adb: Initialize Has_Allocator flag
2951         * lib-writ.adb: Initialize Has_Allocator flag
2952         (M_Parameters): Set AB switch if Has_Allocator flag set
2953         * lib-writ.ads: Document AB flag on M line
2954         * lib.adb (Has_Allocator): New function
2955         (Set_Has_Allocator): New procedure
2956         * lib.ads (Has_Allocator): New function
2957         (Set_Has_Allocator): New procedure
2958         (Has_Allocator): New flag in Unit_Record
2959         * sem_ch4.adb (Analyze_Allocator): Add processing for
2960         No_Allocators_After_Elaboration.
2962 2010-10-08  Geert Bosch  <bosch@adacore.com>
2964         * a-textio.adb (Get_Line): Rewrite to use fgets instead of fgetc.
2966 2010-10-08  Javier Miranda  <miranda@adacore.com>
2968         * sem_prag.adb (Analyze_Pragma): Relax semantic rule of
2969         Java_Constructors because in the JRE library we generate occurrences
2970         in which the "this" parameter is not the first formal.
2972 2010-10-08  Robert Dewar  <dewar@adacore.com>
2974         * par-ch3.adb: Minor reformatting.
2976 2010-10-08  Javier Miranda  <miranda@adacore.com>
2978         * exp_disp.adb (Make_DT): Do not generate dispatch tables for CIL/Java
2979         types.
2981 2010-10-08  Robert Dewar  <dewar@adacore.com>
2983         * par-ch8.adb (P_Use_Type_Clause): Recognize ALL keyword in Ada 2012
2984         mode.
2985         * sinfo.adb (Use_Type_Clause): Add All_Present flag.
2986         * sinfo.ads (Use_Type_Clause): Add All_Present flag.
2987         * s-rident.ads: Add entry for No_Allocators_After_Elaboration,
2988         No_Anonymous_Allocators.
2990 2010-10-08  Vincent Celier  <celier@adacore.com>
2992         * bindgen.adb (Gen_Restrictions_Ada): No new line after last
2993         restriction, so that the last comma is always replaced with a left
2994         parenthesis.
2996 2010-10-08  Javier Miranda  <miranda@adacore.com>
2998         * sem_prag.adb (Analyze_Pragma): Add specific check on the type of the
2999         first formal of delegates.
3001 2010-10-08  Robert Dewar  <dewar@adacore.com>
3003         * sem_aggr.adb: Minor reformatting.
3005 2010-10-08  Robert Dewar  <dewar@adacore.com>
3007         * exp_imgv.adb (Expand_Image_Attribute): Handle special calling
3008         sequence for soft hyphen for Character'Image case.
3009         * rtsfind.ads (Image_Character_05): New entry
3010         * s-imgcha.adb (Image_Character_05): New procedurew
3011         * s-imgcha.ads (Image_Character_05): New procedure
3012         * s-imgwch.adb (Image_Wide_Character): Deal with Ada 2005 soft hyphen
3013         case.
3014         * s-valcha.adb (Value_Character): Recognize SOFT_HYPHEN for 16#AD#
3015         * sem_attr.adb (Eval_Attribute, case Width): Handle soft_hyphen name
3016         properly.
3018 2010-10-08  Robert Dewar  <dewar@adacore.com>
3020         * sem_attr.adb (Eval_Attribute, case Width): Avoid ludicrous long loop
3021         for case of Wide_[Wide_]Character.
3023 2010-10-08  Robert Dewar  <dewar@adacore.com>
3025         * exp_ch3.adb: Minor reformating
3026         Minor code reorganization.
3028 2010-10-08  Javier Miranda  <miranda@adacore.com>
3030         * sem_prag.adb (Analyze_Pragma): Add missing checks on wrong use of
3031         pragmas CIL_Constructor and Java_Constructor.
3032         * exp_ch3.adb (Expand_Freeze_Record_Type): Do not generate the
3033         predefined primitives for CIL/Java tagged types.
3035 2010-10-08  Robert Dewar  <dewar@adacore.com>
3037         * sem_ch6.adb: Minor reformatting.
3039 2010-10-08  Robert Dewar  <dewar@adacore.com>
3041         * gnat1drv.adb: Add call to Validate_Independence.
3042         * par-prag.adb: Add dummy entries for Independent,
3043         Independent_Componentsa.
3044         * sem_ch13.adb (Validate_Independence): New procedure
3045         (Initialize): Initialize address clause and independence check tables
3046         * sem_ch13.ads (Independence_Checks): New table
3047         (Validate_Independence): New procedure
3048         * sem_prag.adb: Add processing for pragma Independent[_Components]
3049         * snames.ads-tmpl: Add entries for pragma Independent[_Components]
3051 2010-10-08  Ed Schonberg  <schonberg@adacore.com>
3053         * sem_aggr.adb (Propagate_Discriminants): When expanding an aggregate
3054         component with box initialization, if the component is a variant record
3055         use the values of the discriminants to select the proper variant for
3056         further box initialization.
3058 2010-10-08  Thomas Quinot  <quinot@adacore.com>
3060         * xsnames.adb: Remove obsolete file.
3061         * make.adb, sem_ch8.adb, einfo.ads: Minor reformatting.
3063 2010-10-08  Ed Schonberg  <schonberg@adacore.com>
3065         * exp_aggr.adb: Complete previous change.
3067 2010-10-08  Ed Schonberg  <schonberg@adacore.com>
3069         * sem_ch6.adb (Check_Return_Subtype): The subtype indication in an
3070         extended return must match statically the return subtype of the
3071         enclosing function if the type is an elementary type or if it is
3072         constrained.
3074 2010-10-08  Vincent Celier  <celier@adacore.com>
3076         * prj-nmsc.adb (Add_Source): Report all duplicate units and source file
3077         names.  Do not report the same duplicate unit several times.
3078         * prj.ads (Source_Data): New Boolean component Duplicate_Unit,
3079         defaulted to False, to avoid reporting the same unit as duplicate
3080         several times.
3082 2010-10-08  Ed Schonberg  <schonberg@adacore.com>
3084         * sem_aggr.adb (Resolve_Array_Aggregate): If the expression in an
3085         others choice is a literal, analyze it to enable later optimizations.
3086         * exp_aggr.adb (Expand_Record_Aggregate): An aggregate with static size
3087         and components can be handled by the backend even if it is of a limited
3088         type.
3090 2010-10-08  Arnaud Charlet  <charlet@adacore.com>
3092         * a-rttiev.adb (task Timer): Since this package may be elaborated
3093         before System.Interrupt, we need to call Setup_Interrupt_Mask
3094         explicitly to ensure that this task has the proper signal mask.
3096 2010-10-08  Robert Dewar  <dewar@adacore.com>
3098         * freeze.adb (Freeze_Entity): For array case, move some processing for
3099         pragma Pack, Component_Size clause and atomic/volatile components here
3100         instead of trying to do the job in Sem_Ch13 and Freeze.
3101         * layout.adb: Use new Addressable function
3102         * sem_ch13.adb (Analyze_Attribute_Representation_Clause, case
3103         Component_Size): Move some handling to freeze point in
3104         Freeze.Freeze_Entity.
3105         * sem_prag.adb (Analyze_pragma, case Pack): Move some handling to
3106         freeze point in Freese.Freeze_Entity.
3107         * sem_util.ads, sem_util.adb (Addressable): New function.
3109 2010-10-08  Robert Dewar  <dewar@adacore.com>
3111         * sprint.adb: Minor reformatting.
3113 2010-10-08  Javier Miranda  <miranda@adacore.com>
3115         * exp_ch4.adb (Real_Range_Check): Declare temporary as constant.
3117 2010-10-08  Robert Dewar  <dewar@adacore.com>
3119         * sem_ch3.adb: Minor reformatting.
3121 2010-10-08  Vincent Celier  <celier@adacore.com>
3123         * ali-util.adb (Get_File_Checksum): Make sure that external_as_list is
3124         not a reserved word.
3125         * prj-proc.adb (Expression): Process string list external references.
3126         * prj-strt.adb (External_Reference): Parse external_as_list external
3127         references.
3128         * prj-tree.ads (Expression_Kind_Of): Allowed for N_External_Value nodes
3129         (Set_Expression_Kind_Of): Ditto
3130         * prj.adb (Initialize): Set external_as_list as a reserved word
3131         * projects.texi: Document new string external reference
3132         external_as_list.
3133         * scans.ads (Token_Type): New token Tok_External_As_List
3134         * snames.ads-tmpl: New standard name Name_External_As_List
3136 2010-10-08  Thomas Quinot  <quinot@adacore.com>
3138         * sem_prag.adb: Minor reformatting.
3140 2010-10-08  Ed Schonberg  <schonberg@adacore.com>
3142         * sem_ch3.adb (Derived_Type_Declaration): In the private part of an
3143         instance, it is legal to derive from a non-limited actual when the
3144         formal type is untagged limited.
3145         * sem_ch12.adb (Instantiate_Type): For a formal private type, use
3146         analyzed formal as Generic_Parent_Type, to simplify later checks.
3148 2010-10-08  Ed Schonberg  <schonberg@adacore.com>
3150         * sem_res.adb (Insert_Default): If default value is already a
3151         raise_constraint_error do not rewrite it as new raise node, to prevent
3152         infinite loops in the warning removal machinery.
3154 2010-10-08  Robert Dewar  <dewar@adacore.com>
3156         * sem_util.adb, sem_prag.adb: Minor reformatting
3158 2010-10-08  Hristian Kirtchev  <kirtchev@adacore.com>
3160         * gnat_rm.texi: Remove the section on pragma Implemented_By_Entry.
3161         Add section on pragma Implemented.
3163 2010-10-08  Ed Schonberg  <schonberg@adacore.com>
3165         * sem_ch3.adb (Derive_Subprogram): If an abstract extension has a
3166         concrete parent with a concrete constructor, the inherited constructor
3167         is abstract even if the derived type is a null extension.
3169 2010-10-08  Thomas Quinot  <quinot@adacore.com>
3171         * sem_ch4.adb: Minor reformatting.
3173 2010-10-08  Hristian Kirtchev  <kirtchev@adacore.com>
3175         * einfo.adb: Flag 232 (formerly Implemented_By_Entry) is now unused.
3176         (Implemented_By_Entry): Removed.
3177         (Set_Implemented_By_Entry): Removed.
3178         (Write_Entity_Flags): Remove the output for Implemented_By_Entry.
3179         * einfo.ads: Remove Implemented_By_Entry and its usage in entities.
3180         (Implemented_By_Entry): Removed along with its associated pragma.
3181         (Set_Implemented_By_Entry): Removed along with its associated pragma.
3182         * exp_ch9.adb: Alphabetize with and use clauses of Exp_Ch9.
3183         (Build_Dispatching_Call_Equivalent): New routine.
3184         (Build_Dispatching_Requeue): New routine.
3185         (Build_Dispatching_Requeue_To_Any): New routine.
3186         (Build_Normal_Requeue): New routine.
3187         (Build_Skip_Statement): New routine.
3188         (Expand_N_Requeue_Statement): Rewritten. The logic has been split into
3189         several subroutines.
3190         * par-prag.adb: Replace Pragma_Implemented_By_Entry by
3191         Pragma_Implemented.
3192         * sem_ch3.adb (Check_Abstract_Overriding): Perform checks concerning
3193         pragma Implemented.
3194         (Check_Pragma_Implemented): New routines.
3195         (Inherit_Pragma_Implemented): New routine.
3196         * sem_ch9.adb (Analyze_Requeue): Update the predicate which detects a
3197         dispatching requeue.
3198         * sem_prag.adb: Update array Sig_Flags by removing Implemented_By_Entry
3199         and adding Implemented.
3200         (Ada_2012_Pragma): New routine.
3201         (Analyze_Pragma, case Implemented): Perform all necessary checks
3202         concerning pragma Implemented and register the pragma as a
3203         representation item with the procedure_LOCAL_NAME.
3204         (Analyze_Pragma, case Implemented_By_Entry): Removed.
3205         * sem_util.adb (Implementation_Kind): New routine.
3206         * sem_util.ads (Implementation_Kind): New routine.
3207         * snames.ads-tmpl: Remove Name_Implemented_By_Entry and add
3208         Name_Implemented. Remove pragma name Pragma_Implemented_By_Entry and
3209         add Pragma_Implemented. Add special names By_Any, By_Entry and
3210         By_Protected_Procedure.
3212 2010-10-08  Javier Miranda  <miranda@adacore.com>
3214         * exp_ch3.adb (Expand_Freeeze_Record_Type): Code cleanup: remove local
3215         variable Has_Static_DT by invocation of function Building_Static_DT.
3217 2010-10-08  Vincent Celier  <celier@adacore.com>
3219         * g-dirope.adb (Remove_Dir): Do not change the current directory when
3220         doing a recursive remove of a subdirectory.
3222 2010-10-08  Javier Miranda  <miranda@adacore.com>
3224         * exp_ch6.ad (Freeze_Subprogram): Factorize code.
3225         * exp_disp.adb (Make_Secondary_DT): Factorize code.
3226         (Make_DT): Factorize code.
3228 2010-10-08  Robert Dewar  <dewar@adacore.com>
3230         * sem_ch4.adb: Minor reformatting.
3232 2010-10-08  Robert Dewar  <dewar@adacore.com>
3234         * sem_ch6.adb (Check_Conformance): Check null exclusion match for full
3235         conformance.
3237 2010-10-08  Thomas Quinot  <quinot@adacore.com>
3239         * sem_ch12.adb (Instantiate_Object): Rename Formal_Id to Gen_Obj, for
3240         consistency with Gen_T in Instantiate_Type.
3241         Introduce constant A_Gen_Obj to avoid repeated queries for
3242         Defining_Identifier (Analyzed_Formal).
3244 2010-10-08  Vincent Celier  <celier@adacore.com>
3246         * prj-nmsc.adb: Minor comment fix.
3248 2010-10-07  Robert Dewar  <dewar@adacore.com>
3250         * sem_prag.adb, sem_ch13.adb: Implement AI05-0012-1/02.
3251         * gcc-interface/Make-lang.in: Update dependencies.
3253 2010-10-07  Ed Schonberg  <schonberg@adacore.com>
3255         * sem_ch12.ad: (Instantiate_Object): For an in-out formal of a child
3256         unit, if the type of the formal is declared in a parent unit and is not
3257         a formal itself, the actual must be located from an enclosing parent
3258         instance by normal visibility.
3260 2010-10-07  Ed Schonberg  <schonberg@adacore.com>
3262         * sem_ch4.adb (Analyze_Allocator): In Ada 2012, a null_exclusion
3263         indicator is illegal for an uninitialized allocator.
3265 2010-10-07  Robert Dewar  <dewar@adacore.com>
3267         * sem_prag.adb (Analyze_Attribute_Definition_Clause, case
3268         Component_Size): Complete previous change.
3270 2010-10-07  Vincent Celier  <celier@adacore.com>
3272         * scng.adb (Scan): Call Accumulate_Token_Checksum for Tok_Identifier,
3273         even for keywords, to avoid having the checksum to depend on the Ada
3274         version.
3276 2010-10-07  Gary Dismukes  <dismukes@adacore.com>
3278         * sem_aggr.adb, sem_ch12.adb, sem_ch6.adb, par-ch5.adb,
3279         exp_ch3.adb: Minor reformatting.
3281 2010-10-07  Robert Dewar  <dewar@adacore.com>
3283         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
3284         Component_Size): It is now illegal to give an incorrect component size
3285         clause in the case of aliased or atomic components.
3286         * sem_prag.adb (Analyze_Pragma, case Pack): It is now illegal to give
3287         an effective pragma Pack in the case of aliased or atomic components.
3289 2010-10-07  Steve Baird  <baird@adacore.com>
3291         * exp_ch4.adb (Expand_N_Allocator): Do not bypass expansion
3292         in the case of a violation of an active No_Task_Hierarchy restriction.
3294 2010-10-07  Ed Schonberg  <schonberg@adacore.com>
3296         * sem_ch12.adb (Validate_Derived_Type_Instance): If a formal derived
3297         type is non-limited, an actual for it cannot be limited.
3299 2010-10-07  Robert Dewar  <dewar@adacore.com>
3301         * einfo.ads (No_Pool_Assigned): Update documentation.
3302         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
3303         Storage_Size): We only set No_Pool_Assigned if the expression is a
3304         static constant and zero.
3305         * sem_res.adb (Resolve_Allocator): Allocation from empty storage pool
3306         should be an error not a warning.
3308 2010-10-07  Ed Schonberg  <schonberg@adacore.com>
3310         * exp_aggr.adb (Expand_Array_Aggregate): Recognize additional cases
3311         where an aggregate in an assignment can be built directly into the
3312         target, and does not require the creation of a temporary that may
3313         overflow the stack.
3315 2010-10-07  Ed Schonberg  <schonberg@adacore.com>
3317         * sem_aggr.adb (Analyze_Record_Aggregate): In Ada2012, a choice list
3318         in a record aggregate can correspond to several components of
3319         anonymous access types, as long as the designated subtypes match.
3321 2010-10-07  Robert Dewar  <dewar@adacore.com>
3323         * gnat_rm.texi, exp_util.adb, sinfo.adb, sinfo.ads, sem_ch12.adb,
3324         sem.adb, gnat_ugn.texi, sem_util.ads, par-ch6.adb, targparm.ads,
3325         restrict.adb, sem_ch6.adb, sem_ch6.ads, sprint.adb, i-c.ads: Change
3326         spelling parametrize(d) => parameterize(d).
3328 2010-10-07  Robert Dewar  <dewar@adacore.com>
3330         * sem_ch12.adb: Add comment.
3331         * sem_ch6.adb: Minor reformatting.
3333 2010-10-07  Robert Dewar  <dewar@adacore.com>
3335         * par-ch3.adb, par-ch6.adb, par-ch7.adb, par-ch9.adb, par-ch10.adb: Add
3336         Pexp to Pf_Rec constants
3337         (P_Subprogram): Expression is always enclosed in parentheses
3338         * par.adb (Pf_Rec): add Pexp flag for parametrized expression
3339         * sinfo.ads (N_Parametrized_Expression): Expression must be in parens
3341 2010-10-07  Ed Schonberg  <schonberg@adacore.com>
3343         * sem_ch6.adb (Analyze_Subprogram_Specification): Implement Ada2012
3344         checks on functions that return an abstract type or have a controlling
3345         result whose designated type is an abstract type.
3346         (Check_Private_Overriding): Implement Ada2012 checks on functions
3347         declared in the private part, if an abstract type is involved.
3348         * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): In Ada2012,
3349         reject a generic function that returns an abstract type.
3350         * exp_ch5.adb (Expand_Simple_Function_Return): in Ada2012, if a
3351         function has a controlling access result, check that the tag of the
3352         return value matches the designated type of the return expression.
3354 2010-10-07  Robert Dewar  <dewar@adacore.com>
3356         * par-ch6.adb: Fix error in handling of parametrized expressions.
3357         * par-ch4.adb (P_Name): Allow qualified expression as name in Ada 2012
3358         mode.
3359         (P_Simple_Expression): Better message for qualified expression prefix
3360         * s-crc32.adb: Minor reformatting.
3361         * exp_intr.adb (Expand_Unc_Deallocation): Remove test for empty
3362         storage pool (this test is moved to Sem_Intr).
3363         * sem_intr.adb (Check_Intrinsic_Call): Add check for deallocation from
3364         empty storage pool, moved here from Exp_Intr and made into error.
3365         (Check_Intrinsic_Call): Remove assumption in generating not-null free
3366         warning that the name of the instantiation is Free.
3367         * sinput.adb (Tree_Read): Document use of illegal free call allowed in
3368         GNAT mode.
3369         * types.ads: Remove storage size clauses from big types (since we may
3370         need to do deallocations, which are now illegal for empty pools).
3372 2010-10-07  Sergey Rybin  <rybin@adacore.com>
3374         * gnat_ugn.texi: Add missing word.
3376 2010-10-07  Robert Dewar  <dewar@adacore.com>
3378         * exp_util.adb (Insert_Actions): Add handling of
3379         N_Parametrized_Expression.
3380         * par-ch6.adb (P_Subprogram): Add parsing of parametrized expression
3381         * sem.adb: Add entry for N_Parametrized_Expression
3382         * sem_ch6.adb (Analyze_Parametrized_Expression): New procedure
3383         * sem_ch6.ads (Analyze_Parametrized_Expression): New procedure
3384         * sinfo.ads, sinfo.adb: Add N_Parametrized_Expression
3385         * sprint.adb (Sprint_Node): Add handling for N_Parametrized_Expression
3386         * par-ch4.adb: Minor reformatting.
3388 2010-10-07  Robert Dewar  <dewar@adacore.com>
3390         * scng.adb (Skip_Other_Format_Characters): New procedure
3391         (Start_Of_Wide_Character): New procedure
3392         (Scan): Use Start_Of_Wide_Character where appropriate
3393         (Scan): Improve error message for other_format chars in identifier
3394         (Scan): Allow other_format chars between tokens
3396 2010-10-07  Javier Miranda  <miranda@adacore.com>
3398         * exp_util.adb (Safe_Prefixed_Reference): When removing side effects,
3399         Add missing support for explicit dereferences.
3401 2010-10-07  Robert Dewar  <dewar@adacore.com>
3403         * par-ch10.adb, par-ch3.adb, par.adb: Minor reformatting.
3405 2010-10-07  Robert Dewar  <dewar@adacore.com>
3407         * exp_disp.adb, exp_dist.adb, exp_util.ads, exp_util.adb,
3408         exp_ch11.adb: Rename Full_Qualified_Name to Fully_Qualified_Name_String
3409         * sem_util.adb, sem_util.ads (Full_Qualified_Name): Moved to
3410         Exp_Util.Fully_Qualified_Name_String.
3412 2010-10-07  Robert Dewar  <dewar@adacore.com>
3414         * rtsfind.ads: Add entry for Ada.Real_Time.Timing_Events.Set_Handler
3415         * sem_res.adb (Resolve_Call): A call to
3416         Ada.Real_Time.Timing_Events.Set_Handler violates restriction
3417         No_Relative_Delay (AI-0211).
3419 2010-10-07  Ed Schonberg  <schonberg@adacore.com>
3421         * sem_ch10.adb: Small change in error message.
3423 2010-10-07  Robert Dewar  <dewar@adacore.com>
3425         * tbuild.ads: Minor reformatting.
3427 2010-10-07  Robert Dewar  <dewar@adacore.com>
3429         * gnatcmd.adb, make.adb, prj-nmsc.adb, sem_elab.adb: Minor reformatting
3431 2010-10-07  Arnaud Charlet  <charlet@adacore.com>
3433         * exp_ch11.adb (Expand_N_Exception_Declaration): Update comments.
3435 2010-10-07  Robert Dewar  <dewar@adacore.com>
3437         * sem_res.adb: Minor reformatting
3439 2010-10-07  Olivier Ramonat  <ramonat@adacore.com>
3441         * gnat_ugn.texi: Minor editing.
3442         * opt.ads: Document that scripts rely on specific formats in opt.ads
3444 2010-10-07  Robert Dewar  <dewar@adacore.com>
3446         * a-wichun.ads, a-wichun.adb (To_Lower_Case): New function
3447         (To_Upper_Case): Fix to be inverse of To_Lower_Case
3448         * a-zchuni.ads, a-zchuni.adb (To_Lower_Case): New function
3449         (To_Upper_Case): Fix to be inverse of To_Lower_Case
3451 2010-10-07  Robert Dewar  <dewar@adacore.com>
3453         * a-wichha.adb, a-wichha.ads, a-zchhan.adb, a-zchhan.ads: New file.
3454         * impunit.adb: Add entries for a-wichha/a-zchhan
3455         * Makefile.rtl: Add entries for a-wichha/a-zchhan
3457 2010-10-07  Vincent Celier  <celier@adacore.com>
3459         * make.adb (Check): Call Check_Source_Info_In_ALI with Project_Tree
3460         * makeutl.adb (Check_Source_Info_In_ALI): If there is at least one
3461         replaced source, check that none of the replaced sources are in the
3462         dependencies.
3463         * makeutl.ads (Check_Source_Info_In_ALI): New parameter Tree
3464         * prj-nmsc.adb (Remove_Source): New parameter Tree. If the source is
3465         replaced with a source with a different file name, put it in the hash
3466         table Replaced_Sources.
3467         (Add_Source): Call Remove_Source with Data.Tree. If there is at least
3468         one replaced source, check if it has the same file name as the current
3469         source; if it has, remove it from the hash table Replaced_Sources.
3470         * prj.adb (Reset): Reset hash table Tree.Replaced_Sources
3471         * prj.ads (Replaced_Source_HTable): New hash table
3472         (Project_Tree_Data): New components Replaced_Sources and
3473         Replaced_Source_Number.
3475 2010-10-07  Ed Schonberg  <schonberg@adacore.com>
3477         * sem_elab.adb (Check_A_Call): After inserting elaboration check, set
3478         proper flag to prevent a double elaboration check on the same call.
3479         * exp_util.adb (Insert_Actions): If the enclosing node is an
3480         Expression_With_Actions and it has been analyzed already, find
3481         insertion point further up in the tree.
3483 2010-10-07  Hristian Kirtchev  <kirtchev@adacore.com>
3485         * sem_ch13.adb (Analyze_Record_Representation_Clause): Alphabetize all
3486         local variables. Remove the general restriction which prohibits the
3487         application of record rep clauses to Unchecked_Union types. Add Ada
3488         2012 check to detect improper naming of an Unchecked_Union
3489         discriminant in record rep clause.
3490         * sem_prag.adb: Add with and use clause for Exp_Ch7.
3491         (Analyze_Pragma): Unchecked_Union case: Propagate the Unchecked_Union
3492         type to all invocations of Check_Component and Check_Variant.
3493         (Check_Component): Add formal parameters UU_Typ and In_Variant_Part.
3494         Rewritten.  Add Ada 2012 check to detect improper use of formal
3495         private types and private extensions as component types of an
3496         Unchecked_Union declared inside a generic body.
3497         (Check_Variant): Add formal parameter UU_Typ. Propagate the
3498         Unchecked_Union type to all calls of Check_Component. Signal that the
3499         current component comes from the variant part of an Unchecked_Union
3500         type.
3501         (Inside_Generic_Body): New routine.
3503 2010-10-07  Ed Schonberg  <schonberg@adacore.com>
3505         * exp_ch4.adb (Expand_Composite_Equality): When looking for a primitive
3506         equality operation for a record component, verify that both formals
3507         have the same type, and the result type is boolean.
3509 2010-10-07  Vincent Celier  <celier@adacore.com>
3511         * gnatcmd.adb (Check_Files): When looking for the .ci file for a
3512         binder generated file, look for both b~xxx and b__xxx as gprbuild
3513         always uses b__ as the prefix of such files.
3515 2010-10-07  Thomas Quinot  <quinot@adacore.com>
3517         * sem_res.adb: Minor reformatting.
3519 2010-10-07  Arnaud Charlet  <charlet@adacore.com>
3521         * debug.adb: Update -gnatd.J documentation.
3523 2010-10-07  Robert Dewar  <dewar@adacore.com>
3525         * gnat_rm.texi: Document handling of invalid values
3526         * s-utf_32.ads, s-utf_32.adb (UTF_To_Lower_Case): Fix implementation
3527         to match new spec.
3528         (UTF_To_Upper_Case): New function.
3530 2010-10-07  Robert Dewar  <dewar@adacore.com>
3532         * sem_attr.adb: Minor reformatting.
3533         * einfo.ads, einfo.adb (Is_Ada_2012_Only): New flag
3534         * itypes.adb (Create_Null_Excluding_Itype): Set Is_Ada_2012_Only flag
3535         properly.
3536         * lib-xref.adb (Generate_Reference): Warn on use of Ada 2012 entity in
3537         non-Ada 2012 mode.
3538         * opt.ads (Warn_On_Ada_2012_Compatibility): New flag
3539         * sem_ch3.adb (Analye_Subtype_Declaration): Inherit Is_Ada_2012_Only
3540         * sem_ch7.adb (Preserve_Full_Attributes): Preserve Is_Ada_2012_Only
3541         flag.
3542         * sem_prag.adb (Analyze_Pragma, case Ada_12/Ada_2012): Allow form with
3543         argument.
3544         * sem_type.adb (Disambiguate): Deal with Is_Ada_2012_Only.
3545         * sem_warn.adb (Warn_On_Ada_2012_Compatibility): New flag, treated
3546         same as 2005 flag.
3548 2010-10-07  Javier Miranda  <miranda@adacore.com>
3550         * a-tags.ads: Use new support for pragma Ada_2012 with function
3551         Type_Is_Abstract.
3553 2010-10-07  Ed Schonberg  <schonberg@adacore.com>
3555         * par-ch5.adb (P_Sequence_Of_Statements): In Ada2012 a label can end a
3556         sequence of statements.
3558 2010-10-07  Vincent Celier  <celier@adacore.com>
3560         * gnatcmd.adb (Check_Files): Only add a .ci files if it exists
3562 2010-10-07  Javier Miranda  <miranda@adacore.com>
3564         * a-tags.ads, a-tags.adb (Type_Is_Abstract): New subprogram.
3565         * rtsfind.ads (RE_Type_Is_Abstract): New entity.
3566         * exp_disp.adb (Make_DT): Initialize TSD component Type_Is_Abstract.
3568 2010-10-07  Arnaud Charlet  <charlet@adacore.com>
3570         * sem_ch12.adb (Mark_Context): Removed, no longer needed.
3571         (Analyze_Package_Instantiation): No longer analyze systematically a
3572         generic body in CodePeer mode.
3573         * freeze.adb, sem_attr.adb: Update comments.
3575 2010-10-05  Robert Dewar  <dewar@adacore.com>
3577         * par-ch5.adb (Test_Statement_Required): Allow all pragmas in Ada 2012
3578         mode.
3580 2010-10-05  Pascal Obry  <obry@adacore.com>
3582         * gnat_rm.texi: Fix typo.
3584 2010-10-05  Arnaud Charlet  <charlet@adacore.com>
3586         * gnat_ugn.texi: Add note about identifiers with same name and
3587         -fdump-ada-spec.
3589 2010-10-05  Robert Dewar  <dewar@adacore.com>
3591         * sem_ch4.adb: Minor reformatting.
3592         * a-direct.ads: Minor comment update.
3594 2010-10-05  Javier Miranda  <miranda@adacore.com>
3596         * sem_ch3.adb (Add_Internal_Interface_Entities): Removing code that is
3597         no longer required after change in New_Overloaded_Entity.
3598         * sem_ch6.adb (New_Overloaded_Entity): Code reorganization to isolate
3599         the fragment of code that handles derivations of interface primitives.
3600         Add missing dependence on global variable Inside_Freezing_Actions to
3601         ensure the correct management of internal interface entities.
3602         * sem_ch13.adb (Analyze_Freeze_Entity): Add missing increase/decrease
3603         of the global variable Inside_Freezing_Actions to ensure that internal
3604         interface entities are well handled by New_Overloaded_Entity.
3605         * sem_disp.adb (Find_Primitive_Covering_Interface): Add documentation
3606         and complete the algorithm to catch hidden primitives derived of
3607         private type that covers the interface.
3608         * sem_disp.ads (Find_Primitive_Covering_Interface): Add missing
3609         documentation.
3611 2010-10-05  Robert Dewar  <dewar@adacore.com>
3613         * prj-util.adb, prj-util.ads, prj.ads, s-vxwext-rtp.adb, sem_ch4.adb,
3614         sem_ch7.adb, sem_res.adb, sem_type.adb: Minor reformatting.
3615         Minor code reorganization (use Nkind_In).
3617 2010-10-05  Ed Schonberg  <schonberg@adacore.com>
3619         * sem_ch10.adb (Analyze_Task_Body_Stub): Diagnose duplicate stub for
3620         task.
3622 2010-10-05  Vincent Celier  <celier@adacore.com>
3624         * gnatbind.adb: If the main library file is not for a suitable main
3625         program, change the error message.
3627 2010-10-05  Vincent Celier  <celier@adacore.com>
3629         * a-direct.ads: Minor spelling error fixes in comments.
3630         * gnat_rm.texi: Add three entries in "Implementation Defined
3631         Characteristics" for the interpretations of the Form parameters in
3632         Ada.Directories.
3634 2010-10-05  Robert Dewar  <dewar@adacore.com>
3636         * exp_ch3.adb, exp_ch5.adb, exp_disp.adb, exp_dist.adb, gnatlink.adb,
3637         makeutl.adb, par-ch6.adb, prj-dect.adb, prj-env.adb, prj-env.ads,
3638         prj-ext.adb, prj-nmsc.adb, prj-part.adb, prj-pp.ads: Minor code
3639         reorganization.
3640         Minor reformatting.
3642 2010-10-05  Ed Schonberg  <schonberg@adacore.com>
3644         * sem_res.adb (Check_Parameterless_Call): If the prefix of 'Address is
3645         an explicit dereference of an access to function, the prefix is not
3646         interpreted as a parameterless call.
3648 2010-10-05  Ed Schonberg  <schonberg@adacore.com>
3650         * exp_attr.adb: For 'Read and 'Write, use full view of base type if
3651         private.
3653 2010-10-05  Vincent Celier  <celier@adacore.com>
3655         * make.adb (Switches_Of): Allow wild cards in index of attributes
3656         Switches.
3657         * prj-util.adb (Value_Of): When Allow_Wildcards is True, use the index
3658         of the associative array as a glob regular expression.
3659         * prj-util.ads (Value_Of (Index, In_Array)): New Boolean parameter
3660         Allow_Wildcards, defaulted to False.
3661         (Value_Of (Name, Attribute_Or_Array_Name)): Ditto
3662         * projects.texi: Document that attribute Switches (<file name>) may
3663         use wild cards in the index.
3665 2010-10-05  Robert Dewar  <dewar@adacore.com>
3667         * a-direct.adb, a-direct.ads, back_end.adb, checks.adb,
3668         einfo.adb: Minor reformatting.
3669         * debug.adb: Remove obsolete documentation for d.Z flag.
3671 2010-10-05  Vincent Celier  <celier@adacore.com>
3673         * vms_data.ads: Add VMS qualifier /SRC_INFO= corresponding to gnatmake
3674         switch --create-info-file=.
3675         * gnat_ugn.texi: Add documentation for new gnatmake switch
3676         --source-info=
3678 2010-10-05  Ed Schonberg  <schonberg@adacore.com>
3680         * sem_ch3.adb: Do not elaborate type definition if syntax error.
3682 2010-10-05  Javier Miranda  <miranda@adacore.com>
3684         * sprint.adb (Sprint_Node_Actual): Improve output of subprogram bodies
3685         to generate the full-qualified names of its corresponding spec.
3686         This facilitates locating the corresponing body when reading
3687         the DG output.
3689 2010-10-05  Thomas Quinot  <quinot@adacore.com>
3691         * exp_dist.adb (Make_Helper_Function_Name): For a tagged type, use
3692         canonical name without serial number only if the helper is becoming a
3693         primitive of the type.
3695 2010-10-05  Javier Miranda  <miranda@adacore.com>
3697         * exp_disp.adb (Make_DT): Minor code reorganization.
3699 2010-10-05  Ed Schonberg  <schonberg@adacore.com>
3701         * par-ch6.adb: improve recovery with extra paren in function spec.
3703 2010-10-05  Quentin Ochem  <ochem@adacore.com>
3705         * prj-tree.ads: Project_Path is now aliased.
3707 2010-10-05  Thomas Quinot  <quinot@adacore.com>
3709         * checks.adb: Minor reformatting.
3711 2010-10-05  Eric Botcazou  <ebotcazou@adacore.com>
3713         * mlib-tgt-specific-mingw.adb (No_Argument_List): Delete.
3714         (Shared_Libgcc): New aliased variable.
3715         (Shared_Libgcc_Switch): New constant.
3716         (Build_Dynamic_Library): Pass Shared_Libgcc_Switch to the compiler
3717         * gcc-interface/Makefile.in (gnatlib-shared-win32): Pass -shared-libgcc
3718         to the compiler.
3719         * gcc-interface/Make-lang.in: Update dependencies.
3720         
3721 2010-10-05  Vincent Celier  <celier@adacore.com>
3723         * prj-part.adb (Parse_Simple_Project): When checking if a child project
3724         imports its parent project, also look in projects being extended by
3725         imported projects.
3727 2010-10-05  Eric Botcazou  <ebotcazou@adacore.com>
3729         * gnat_ugn.texi: Adjust instructions in G.10 Building DLLs with GNAT.
3731 2010-10-05  Javier Miranda  <miranda@adacore.com>
3733         * exp_cg.adb (Slot_Number): Add support to handle aliased entities.
3734         (Generate_CG_Output): Switch -gnatd.Z is no longer needed to
3735         activate this output.
3737 2010-10-05  Arnaud Charlet  <charlet@adacore.com>
3739         * back_end.adb (Call_Back_End): Generate an error message when scil
3740         generation is enabled, and no scil back-end (by default) is available.
3742 2010-10-05  Javier Miranda  <miranda@adacore.com>
3744         * debug.adb: Update documentation since -gnatd.Z is no longer required
3745         to generate the call-graph information.
3747 2010-10-05  Javier Miranda  <miranda@adacore.com>
3749         * exp_ch5.adb (Expand_Simple_Function_Return): Rewrite expansion of a
3750         runtime access check by an equivalent expansion that causes
3751         no problems in the VM backend. The original expansion was
3752         not good for the VM backends because when Tagged_Type_Expansion
3753         is disabled the attribute Access_Disp_Table is not available.
3755 2010-10-05  Ed Schonberg  <schonberg@adacore.com>
3757         * sem_type.adb (Covers): In a dispatching context, T1 covers T2 if T2
3758         is class-wide and T1 is its specific type.
3760 2010-10-05  Ed Schonberg  <schonberg@adacore.com>
3762         * einfo.adb: Add guard to Is_String_Type to prevent cascaded errors.
3764 2010-10-05  Vincent Celier  <celier@adacore.com>
3766         * back_end.ads: Minor spelling error correction.
3768 2010-10-05  Arnaud Charlet  <charlet@adacore.com>
3770         * switch-c.adb, gnat1drv.adb (Scan_Front_End_Switches): Disable
3771         warnings when -gnatC is specified here so that warnings can be
3772         re-enabled  explicitly.
3773         (Adjust_Global_Switches): No longer suppress warnings.
3775 2010-10-05  Vincent Celier  <celier@adacore.com>
3777         * makeutl.adb: Minor reformatting.
3779 2010-10-05  Ed Schonberg  <schonberg@adacore.com>
3781         * sem_ch4.adb: add guard in Analyze_One_Call to prevent crash when a
3782         non-discrete type appears as an actual in a call.
3784 2010-10-05  Vincent Celier  <celier@adacore.com>
3786         * make.adb (Scan_Make_Arg): Take into account new switch
3787         --source-info=file.
3788         * makeusg.adb: Add line for new switch --source-info=file.
3789         * makeutl.ads (Source_Info_Option): New constant String for new builder
3790         switch.
3791         * prj-conf.adb: Put subprograms in alphabetical order
3792         (Process_Project_And_Apply_Config): Read/write an eventual source info
3793         file, if necessary.
3794         * prj-nmsc.adb (Look_For_Sources.Get_Sources_From_Source_Info): New
3795         procedure.
3796         (Look_For_Sources): If a source info file was successfully read, get
3797         the source data from the data read from the source info file.
3798         * prj-util.adb (Source_Info_Table): New table
3799         (Source_Info_Project_HTable): New hash table
3800         (Create): New procedure
3801         (Put (File), Put_Line): New procedures
3802         (Write_Source_Info_File): New procedure
3803         (Read_Source_Info_File): New procedure
3804         (Initialize): New procedure
3805         (Source_Info_Of): New procedure
3806         (Next): New procedure
3807         (Close): When file is an out file, fail if the buffer cannot be written
3808         or if the file cannot be close successfully.
3809         (Get_Line): Fail if file is an out file
3810         * prj-util.ads (Create): New procedure
3811         (Put (File), Put_Line): New procedures
3812         (Write_Source_Info_File): New procedure
3813         (Read_Source_Info_File): New procedure
3814         (Source_Info_Data): New record type
3815         (Source_Info_Iterator): New private type
3816         (Initialize): New procedure
3817         (Source_Info_Of): New procedure
3818         (Next): New procedure
3819         * prj.ads (Project_Tree_Data): New components Source_Info_File_Name and
3820         Source_Info_File_Exists.
3822 2010-10-05  Ed Schonberg  <schonberg@adacore.com>
3824         * exp_ch4.adb: Fix typo.
3826 2010-10-05  Thomas Quinot  <quinot@adacore.com>
3828         * lib-writ.adb: Minor reformatting.
3830 2010-10-05  Javier Miranda  <miranda@adacore.com>
3832         * sem_ch3.adb (Access_Definition): Remove useless code.
3834 2010-10-05  Emmanuel Briot  <briot@adacore.com>
3836         * prj-env.adb, prj-env.ads (Set_Path): New subprogram.
3837         (Deep_Copy): Removed, not used.
3839 2010-10-05  Javier Miranda  <miranda@adacore.com>
3841         * sem_ch3.adb (Add_Internal_Interface_Entities): Code reorganization:
3842         move code that searches in the list of primitives of a tagged type for
3843         the entity that will be overridden by user-defined routines.
3844         * sem_disp.adb (Find_Primitive_Covering_Interface): Move here code
3845         previously located in routine Add_Internal_Interface_Entities.
3846         * sem_disp.ads (Find_Primitive_Covering_Interface): Update docs.
3847         * sem_ch6.adb (New_Overloaded_Entity): Add missing check on
3848         availability of attribute Alias.
3850 2010-10-05  Ed Falis  <falis@adacore.com>
3852         * s-taprop-vxworks.adb, s-osinte-vxworks.adb, s-osinte-vxworks.ads,
3853         s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.adb, s-vxwext-rtp.ads:
3854         Move definition of intContext to System.OS_Interface.
3855         Add necessary variants in System.VxWorks.Extensions.
3857 2010-10-05  Doug Rupp  <rupp@adacore.com>
3859         * s-asthan-vms-alpha.adb: On VMS, a task using
3860         pragma AST_Entry exhibits a memory leak when the task terminates
3861         because the vector allocated for the AST interface is not freed. Fixed
3862         by making the vector a controlled type.
3864 2010-10-05  Emmanuel Briot  <briot@adacore.com>
3866         * prj-nmsc.adb (Expand_Subdirectory_Pattern): Check that the prefix in
3867         a "**" pattern properly exists, and report an error otherwise.
3869 2010-10-05  Emmanuel Briot  <briot@adacore.com>
3871         * prj-env.ads: Use GNAT.OS_Lib rather than System.OS_Lib.
3873 2010-10-05  Emmanuel Briot  <briot@adacore.com>
3875         * prj-nmsc.adb, prj-err.adb (Expand_Subdirectory_Pattern): New
3876         subprogram.
3877         Extract some code from Get_Directories, to share with the handling
3878         of aggregate projects (for the Project_Files attributes)
3880 2010-10-05  Emmanuel Briot  <briot@adacore.com>
3882         * gnatcmd.adb, prj-proc.adb, prj-part.adb, prj-ext.adb, prj-ext.ads,
3883         switch-m.adb, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-env.adb,
3884         prj-env.ads, prj-tree.adb, prj-tree.ads (Project_Search_Path): New
3885         type.
3887 2010-10-05  Eric Botcazou  <ebotcazou@adacore.com>
3889         * exp_ch5.adb (Make_Field_Expr): Revert previous change (removed).
3891 2010-10-05  Emmanuel Briot  <briot@adacore.com>
3893         * prj-dect.adb, prj-nmsc.adb, prj-attr.adb, snames.ads-tmpl
3894         (Aggregate projects): added support for parsing aggregate projects.
3895         In particular, check the presence and value of the new attributes
3896         related to aggregate projects, ie Project_Files, Project_Path
3897         and External.
3898         (Check_Attribute_Allowed, Check_Package_Allowed,
3899         Rename_Obsolescent_Attributes): new subprogram, extracting code
3900         from existing subprogram to keep their sizes smaller.
3901         (Check_Aggregate_Project, Check_Abstract_Project,
3902         Check_Missing_Sources): new subprograms
3903         (Check): remove comments that duplicated either the name of the
3904         following subprogram call, or the comment on that subprogram.
3905         * prj-part.adb (Check_Extending_All_Imports): New subprogram, extracted
3906         from Parse_Single_Project.
3907         (Check_Aggregate_Imports): new subprogram.
3909 2010-10-05  Vincent Celier  <celier@adacore.com>
3911         * make.adb (Check): When compiling with -gnatc, recompile if the ALI
3912         file has not been generated for the current source, for example if it
3913         has been generated for the spec, but we are compiling the body.
3915 2010-10-05  Bob Duff  <duff@adacore.com>
3917         * xgnatugn.adb: Remove unused procedure.
3919 2010-10-04  Vincent Celier  <celier@adacore.com>
3921         * a-direct.adb (Copy_File): Interpret the Form parameter and call
3922         System.OS_Lib.Copy_File to do the work accordingly. Raise Use_Error if
3923         the Form parameter contains an incorrect value for field preserve= or
3924         mode=.
3925         * a-direct.ads (Create_Directory, Create_Path): Indicate that the Form
3926         parameter is ignored.
3927         (Copy_File): Indicate the interpretation of the Form parameter.
3929 2010-10-04  Vincent Celier  <celier@adacore.com>
3931         * make.adb (Gnatmake): When there are no foreign languages declared and
3932         a main in attribute Main of the main project does not exist or is a
3933         source of another project, fail immediately before attempting
3934         compilation.
3936 2010-10-04  Javier Miranda  <miranda@adacore.com>
3938         * exp_disp.ads (Convert_Tag_To_Interface): New function which must be
3939         used to convert a node referencing a tag to a class-wide interface
3940         type.
3941         * exp_disp.adb (Convert_Tag_To_Interface): New function.
3942         (Expand_Interface_Conversion): Replace invocation of
3943         Unchecked_Conversion by new function Convert_Tag_To_Interface.
3944         (Write_DT): Add support for null primitives.
3945         * exp_ch3.adb (Expand_N_Object_Declaration): For tagged type objects,
3946         cleanup code that handles interface conversions and avoid unchecked
3947         conversion of referenced tag components.
3948         * exp_ch5.adb (Expand_N_Assignment_Statement): Code cleanup. Avoid
3949         unrequired conversions when generating a dispatching call to _assign.
3950         * sprint.adb (Write_Itype): Fix wrong output of not null access itypes.
3952 2010-10-04  Ed Schonberg  <schonberg@adacore.com>
3954         * exp_ch4.adb (Expand_N_Op_Not): Handle properly both operands when the
3955         parent is a binary boolean operation and the operand is an unpacked
3956         array.
3957         (Build_Boolean_Array_Proc_Call): If the operands are both negations,
3958         the operands of the rewritten node are the operands of the negations,
3959         not the negations themselves.
3961 2010-10-04  Robert Dewar  <dewar@adacore.com>
3963         * sem_ch13.adb (Set_Biased): New procedure, now used throughout, adds
3964         name of entity to biased warning msg.
3965         (Analyze_Enumeration_Representation_Clause): Remove attempt to use
3966         biased rep (wrong and never worked anyway).
3968 2010-10-04  Arnaud Charlet  <charlet@adacore.com>
3970         * sem_elab.adb: Minor reformatting.
3972 2010-10-04  Ed Schonberg  <schonberg@adacore.com>
3974         * exp_ch4.adb (Expand_N_Null): Handle properly the case of a subtype of
3975         an access_to_protected subprogram type, and convert null value into
3976         corresponding aggregate.
3978 2010-10-04  Eric Botcazou  <ebotcazou@adacore.com>
3980         * gnat_ugn.texi: Clarify first point of 7.1.5 about pragma Inline.
3982 2010-10-04  Eric Botcazou  <ebotcazou@adacore.com>
3984         * make.adb (Scan_Make_Arg): Pass -Oxxx switches to the linker as well.
3985         * gnatlink.adb (Gnatlink): Filter out -Oxxx switches for CLI, RTX and
3986         AAMP.
3988 2010-10-04  Eric Botcazou  <ebotcazou@adacore.com>
3990         * sem_ch4.adb (Analyze_Indexed_Component_Form): Remove redundant test
3991         for N_Operator_Symbol.
3992         (Indicate_Name_And_Type): Likewise.
3993         * sem_ch8.adb (Analyze_Subprogram_Renaming): Likewise.
3994         * sem_res.adb (Resolve): Likewise.
3995         * sem_type.adb (Add_One_Interp): Likewise.
3996         (Disambiguate): Likewise.
3997         
3998 2010-10-04  Vincent Celier  <celier@adacore.com>
4000         * osint.adb (Read_Library_Info_From_Full): If object timestamp is less
4001         than ALI file timestamp, return null.
4003 2010-10-04  Vincent Celier  <celier@adacore.com>
4005         * prj-makr.adb (Finalize): Invoke Pretty_Print with Max_Length of 79.
4006         * prj-pp.adb (Pretty_Print): New parameter Max_Line_Length, that
4007         replaces global constant with the same name. When a line is too long,
4008         indent properly the next continuation line.
4009         * prj-pp.ads (Pretty_Print): New parameter Max_Line_Length with a range
4010         from 50 to 255, defaulted to 255, to indicate the maximum length of
4011         lines in the project file.
4013 2010-10-04  Eric Botcazou  <ebotcazou@adacore.com>
4015         * sem_ch7.adb (Analyze_Package_Body_Helper) <Has_Referencer>: New
4016         Check_Subprogram_Ref function and Check_Subprogram_Refs instantiation
4017         of Traverse_Func on it to look for subprogram references in a body.
4018         Call Check_Subprogram_Refs on the body of inlined subprograms at the
4019         outer level and keep clearing the Is_Public flag of subprograms as long
4020         as it returns OK.  Do not look at anything else than subprograms once
4021         an inlined subprogram has been seen.
4023 2010-10-04  Javier Miranda  <miranda@adacore.com>
4025         * exp_cg.adb (Expand_N_Assignment_Statement): Restore tag check when
4026         the target object is an interface.
4027         * sem_disp.adb (Propagate_Tag): If the controlling argument is an
4028         interface type then we generate an implicit conversion to force
4029         displacement of the pointer to the object to reference the secondary
4030         dispatch table associated with the interface.
4032 2010-10-04  Robert Dewar  <dewar@adacore.com>
4034         * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Set
4035         Enumeration_Rep_Expr to point to the literal, not the identifier.
4036         (Analyze_Enumeration_Representation_Clause): Improve error message for
4037         size too small for enum rep value
4038         (Analyze_Enumeration_Representation_Clause): Fix size test to use
4039         proper size (RM_Size, not Esize).
4041 2010-10-04  Robert Dewar  <dewar@adacore.com>
4043         * s-taprop-vxworks.adb, sem_res.adb: Minor reformatting.
4045 2010-10-04  Javier Miranda  <miranda@adacore.com>
4047         * exp_cg.adb (Write_Call_Info): Code clean up.
4049 2010-10-04  Arnaud Charlet  <charlet@adacore.com>
4051         * s-taprop-mingw.adb (Create_Task): Initialize Thread_Id field to 0.
4053 2010-10-04  Robert Dewar  <dewar@adacore.com>
4055         * exp_cg.adb: Minor code reorganization
4056         Minor reformatting.
4057         * exp_ch5.adb, prj-nmsc.adb: Minor reformatting.
4059 2010-10-04  Bob Duff  <duff@adacore.com>
4061         * sem_res.adb (Resolve_Type_Conversion): If a type conversion is needed
4062         to make a qualified expression into a name (syntax-wise), then do not
4063         consider it redundant.
4065 2010-10-04  Thomas Quinot  <quinot@adacore.com>
4067         * sem_warn.ads: Fix typo.
4069 2010-10-04  Javier Miranda  <miranda@adacore.com>
4071         * exp_cg.adb (Is_Predefined_Dispatching_Operation): Handle suffix in
4072         TSS names.
4073         (Write_Call_Info): Add missing support for renamed primitives.
4075 2010-10-04  Thomas Quinot  <quinot@adacore.com>
4077         * exp_ch5.adb (Make_Field_Expr): New subprogram, to factor duplicated
4078         code between Make_Component_List_Assign and Make_Field_Assign.
4080 2010-10-04  Vincent Celier  <celier@adacore.com>
4082         * prj-nmsc.adb (Get_Directories): For non extending projects that
4083         declare that they have no sources, do not create a non existing object
4084         or exec directory if builder switch -p is used.
4086 2010-10-04  Sergey Rybin  <rybin@adacore.com>
4088         * gnat_ugn.texi (gnatcheck): Change the description of the report file
4089         format.
4091 2010-10-04  Ed Falis  <falis@adacore.com>
4093         * s-taprop-vxworks.adb (Is_Task_Context): Import VxWorks intContext to
4094         determine whether Set_True is called from a task or an ISR.
4095         (Set_True): test for being in a task context before trying to
4096         dereference Defer_Abort or Undefer_Abort.
4098 2010-10-04  Robert Dewar  <dewar@adacore.com>
4100         * sem_res.adb, sinput-l.adb: Minor reformatting.
4102 2010-10-04  Hristian Kirtchev  <kirtchev@adacore.com>
4104         * exp_ch5.adb (Expand_N_Assignment_Statement): Do not generate a tag
4105         check when the target object is an interface since the expression of
4106         the right hand side must only cover the interface.
4108 2010-10-04  Vincent Celier  <celier@adacore.com>
4110         * frontend.adb: Set Lib.Parsing_Main_Extended_Source to True before
4111         loading the main source, so that if it is preprocessed and -gnateG is
4112         used, the preprocessed file is written.
4113         * lib.ads (Analysing_Subunit_Of_Main): New global variable to indicate
4114         if a subunit is from the main unit when it is loaded.
4115         * sem_ch10.adb (Analyze_Proper_Body): Set Lib.Analysing_Subunit_Of_Main
4116         to True before loading a subunit.
4117         * sem_ch12.adb (Copy_Generic_Node): Set Lib.Analysing_Subunit_Of_Main
4118         to True when the main is a generic unit before loading one of its
4119         subunits.
4120         * sinput-l.adb (Load_File): If -gnateG is used, write the preprocessed
4121         file only for the main unit (spec, body and subunits).
4123 2010-10-04  Vincent Celier  <celier@adacore.com>
4125         * sinput-l.adb (Load_File): Do not fail when switch -gnateG is
4126         specified and the processed file cannot be written. Just issue a
4127         warning and continue.
4129 2010-10-04  Thomas Quinot  <quinot@adacore.com>
4131         * sem_res.adb: Minor reformatting.
4133 2010-10-04  Ed Schonberg  <schonberg@adacore.com>
4135         * sem_ch8.adb (Analyze_Subprogram_Renaming): If the renamed operation
4136         is an overridden inherited operation, the desired operation is the
4137         overriding one, which is the alias of the visible one.
4139 2010-10-04  Ed Schonberg  <schonberg@adacore.com>
4141         * sem_ch6.adb (Find_Corresponding_Spec): Check that the wrapper body is
4142         present before deleting from the tree, when an inherited function with
4143         a controlling result that returns a null extension is overridden by a
4144         later declaration or body.
4146 2010-10-04  Gary Dismukes  <dismukes@adacore.com>
4148         * checks.adb: Update comment.
4150 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
4152         * gcc-interface/misc.c (optimize, optimize_size): Undefine as macros
4153         and define as variables.
4154         (gnat_post_options): Set optimize and optimize_size variables.
4156 2010-09-29  Joel Sherrill  <joel.sherrill@oarcorp.com>
4158         * g-socket.adb: Move pragma to disable warnings in case multiple errnos
4159         are not defined by target.
4161 2010-09-29  Eric Botcazou  <ebotcazou@adacore.com>
4163         * gcc-interface/utils.c (handle_leaf_attribute): Fix long line.
4165 2010-09-28  Richard Henderson  <rth@redhat.com>
4167         * gcc-interface/misc.c (gnat_eh_personality): Use
4168         targetm.except_unwind_info.
4170 2010-09-28  Jan Hubicka  <jh@suse.cz>
4172         * gcc-interface/utils.c (handle_leaf_attribute): New function.
4173         (gnat_internal_attribute_tables): Add leaf.
4175 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
4177         * gcc-interface/lang.opt (-all-warnings, -include-barrier,
4178         -include-directory, -include-directory=, -no-standard-includes,
4179         -no-standard-libraries): New.
4181 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
4183         * gcc-interface/decl.c (gnat_to_gnu_entity): Replace calls to
4184         build_array_type with calls to build_nonshared_array_type.
4185         (substitute_in_type): Likewise.
4186         * gcc-interface/misc.c (LANG_HOOKS_HASH_TYPES): Delete.
4187         (LANG_HOOKS_TYPE_HASH_EQ): Define.
4188         (gnat_post_options): Add 'static' keyword.
4189         (gnat_type_hash_eq): New static function.
4190         * gcc-interface/utils.c (fntype_same_flags_p): New function.
4191         (create_subprog_type): Call it.
4192         (create_index_type): Call build_nonshared_range_type and tidy up.
4193         (create_range_type): Likewise.
4194         * gcc-interface/gigi.h (fntype_same_flags_p): Declare.
4196 2010-09-19  Eric Botcazou  <ebotcazou@adacore.com>
4198         * gcc-interface/trans.c (gnat_pushdecl): Do not do anything special
4199         for PARM_DECLs.
4200         (end_subprog_body): If the body is a BIND_EXPR, make its associated
4201         block the top-level one.
4202         (build_function_stub): Build a statement group for the whole function.
4203         * gcc-interface/utils.c (Subprogram_Body_to_gnu): If copy-in/copy-out
4204         is used, create the enclosing block early and process first the OUT
4205         parameters.
4207 2010-09-19  Eric Botcazou  <ebotcazou@adacore.com>
4209         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>: Do
4210         not generate debug info for individual enumerators.
4212 2010-09-19  Eric Botcazou  <ebotcazou@adacore.com>
4214         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Use record
4215         type instead of enumeral type as the dummy type built for the template
4216         type of fat pointers.
4218 2010-09-19  Eric Botcazou  <ebotcazou@adacore.com>
4220         * gcc-interface/gigi.h (get_elaboration_procedure): Declare.
4221         (gnat_zaplevel): Likewise.
4222         * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force global
4223         binding level for an external constant.
4224         <E_Constant>: Force the local context and create a fake scope before
4225         translating the defining expression of an external constant.
4226         <object>: Treat external constants at the global level explicitly for
4227         renaming declarations.
4228         (elaborate_expression_1): Force the variable to be static if the
4229         expression is global.
4230         * gcc-interface/trans.c (get_elaboration_procedure): New function.
4231         (call_to_gnu): Use it.
4232         (gnat_to_gnu): Likewise.
4233         <N_Object_Declaration>: Do not test Is_Public to force the creation of
4234         an initialization variable.
4235         (add_decl_expr): Discard the statement if the declaration is external.
4236         * gcc-interface/utils.c (gnat_pushdecl): Do not put the declaration in
4237         the current block if it is external.
4238         (create_var_decl_1): Do not test Is_Public to set TREE_STATIC.
4239         (gnat_zaplevel): New global function.
4241 2010-09-19  Eric Botcazou  <ebotcazou@adacore.com>
4243         * gcc-interface/decl.c (gnat_to_gnu_entity): Explicitly test _LEVEL
4244         variables against zero in all cases.
4245         (rest_of_type_decl_compilation): Likewise.
4246         * gcc-interface/trans.c (gigi): Pass properly typed constants to
4247         create_var_decl.
4248         (call_to_gnu): Fix formatting.
4249         (Handled_Sequence_Of_Statements_to_gnu): Likewise.
4250         (Exception_Handler_to_gnu_zcx): Likewise.
4251         (gnat_to_gnu) <N_Object_Declaration>: Short-circuit handling of
4252         constant
4253         expressions in presence of a freeze node.
4255 2010-09-19  Eric Botcazou  <ebotcazou@adacore.com>
4257         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Look into
4258         expressions for external constants that are aggregates.
4259         * gcc-interface/utils2.c (build_simple_component_ref): If the field
4260         is an inherited component in an extension, look through the extension.
4262 2010-09-10  Vincent Celier  <celier@adacore.com>
4264         * projects.texi: Add documentation for package extensions
4265         Add some documentation for attributes Leading_Library_Options and
4266         Linker'Leading_Switches.
4268 2010-09-10  Ed Schonberg  <schonberg@adacore.com>
4270         * exp_util.adb (Expand_Subtype_From_Expression): When expansion is
4271         disabled, compute subtype for all string types.
4273 2010-09-10  Robert Dewar  <dewar@adacore.com>
4275         * gnat_ugn.texi: Add documentation for -gnatw.s/S
4276         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
4277         Component_Size): Implement warning on overriden size clause.
4278         (Analyze_Record_Representation_Clause): Implement warning on overriden
4279         size clause.
4280         * sem_warn.ads, sem_warn.adb (Warn_On_Overridden_Size): New flag
4281         (-gnatw.s/S).
4282         * ug_words: Add entries for -gnatw.s/S.
4283         * vms_data.ads, usage.adb: Add line for -gnatw.s/-gnatw.S.
4284         * gcc-interface/Make-lang.in: Update dependencies.
4286 2010-09-10  Vincent Celier  <celier@adacore.com>
4288         * prj-dect.adb (Parse_Package_Declaration): Allow a package to extend
4289         a package with the same name from an imported or extended project.
4290         * prj-proc.adb (Process_Declarative_Items): Process package extensions
4292 2010-09-10  Bob Duff  <duff@adacore.com>
4294         * exp_ch6.adb (Expand_Call): Do not perform a null_exclusion check on
4295         'out' parameters.
4297 2010-09-10  Robert Dewar  <dewar@adacore.com>
4299         * sem.adb: Minor reformatting.
4301 2010-09-10  Bob Duff  <duff@adacore.com>
4303         * s-os_lib.ads, g-expect.ads: Add comments.
4305 2010-09-10  Robert Dewar  <dewar@adacore.com>
4307         * exp_ch5.adb: Minor reformatting.
4309 2010-09-10  Thomas Quinot  <quinot@adacore.com>
4311         * scos.ads: Add comments.
4313 2010-09-10  Vincent Celier  <celier@adacore.com>
4315         * gnatcmd.adb (Get_Closure): Remove useless invocation of Close.
4317 2010-09-10  Hristian Kirtchev  <kirtchev@adacore.com>
4319         * exp_ch7.adb, exp_ch6.adb (Expand_Call): Establish a transient scope
4320         for a controlled build-in-place function call which appears in an
4321         anonymous context. The transient scope ensures that the intermediate
4322         function result is cleaned up after the master is left.
4323         (Make_Build_In_Place_Call_In_Anonymous_Context): Remove the creation
4324         of the transient scope. This is now done in Exand_Call which covers
4325         additional cases other than secondary stack release.
4327 2010-09-10  Arnaud Charlet  <charlet@adacore.com>
4329         * sem.adb (Do_Unit_And_Dependents): Add guard.
4331 2010-09-10  Robert Dewar  <dewar@adacore.com>
4333         * exp_ch5.adb: Update comments.
4334         * exp_dist.adb: Minor reformatting.
4336 2010-09-10  Robert Dewar  <dewar@adacore.com>
4338         * sem_ch13.adb (Check_Record_Representation_Clause): Implement record
4339         gap warnings.
4340         * sem_warn.ads, sem_warn.adb (Warn_On_Record_Holes): New warning flag.
4341         * usage.adb: Add lines for -gnatw.h/H
4342         * gnat_ugn.texi: Add documentation for J519-010
4343         Warn on record holes/gaps
4344         * ug_words: Add entries for -gnatw.h/-gnatw.H
4345         * vms_data.ads: Add entries for [NO]AVOIDGAPS
4347 2010-09-10  Gary Dismukes  <dismukes@adacore.com>
4349         * sem_ch6.adb: Update comment.
4351 2010-09-10  Ed Schonberg  <schonberg@adacore.com>
4353         * sem_ch3.adb (Build_Derived_Private_Type): Mark generated declaration
4354         of full view analyzed after analyzing the corresponding record
4355         declaration, to prevent spurious name conflicts with original
4356         declaration.
4358 2010-09-10  Jerome Lambourg  <lambourg@adacore.com>
4360         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): In the VM case,
4361         just issue a warning, but continue with the normal processing.
4363 2010-09-10  Robert Dewar  <dewar@adacore.com>
4365         * exp_attr.adb, prj-nmsc.adb, sem_ch4.adb, sem_res.adb: Minor
4366         reformatting.
4368 2010-09-10  Thomas Quinot  <quinot@adacore.com>
4370         * exp_dist.adb (Build_From_Any_Call, Build_To_Any_Call,
4371         Build_TypeCode_Call): For a subtype inserted for the expansion of a
4372         generic actual type, go to the underlying type of the original actual
4373         type.
4375 2010-09-10  Ed Schonberg  <schonberg@adacore.com>
4377         * exp_ch5.adb (Expand_Assign_Array_Loop): In CodePeer mode, place a
4378         guard around the increment statement, to prevent an off-by-one-value
4379         on the last iteration.
4381 2010-09-10  Vincent Celier  <celier@adacore.com>
4383         * sem_aggr.adb, exp_prag.adb, sem_ch3.adb, exp_attr.adb,
4384         sem_res.adb, sem_attr.adb, sem_elab.adb, sem_ch4.adb, exp_disp.adb,
4385         exp_aggr.adb, exp_dist.adb: Change all mentions of "at run-time" to
4386         "at run time" in comments and error/warning messages.
4388 2010-09-10  Ed Schonberg  <schonberg@adacore.com>
4390         * exp_cg.adb: Handle properly bodies without specs.
4392 2010-09-10  Emmanuel Briot  <briot@adacore.com>
4394         * prj-nmsc.adb (Find_Source_Dirs): When a source directory is not
4395         present, and the user requested to either ignore this or display a
4396         warning (as opposed to an error), we still need to register the
4397         directory.
4399 2010-09-10  Robert Dewar  <dewar@adacore.com>
4401         * errout.adb: Remove tests of Parsing_Main_Subunit, since this test is
4402         now done in In_Extended_Main_Source_Unit.
4403         * errout.ads (Compiler_State[_Type]): Moved from Errout to Lib
4404         (Parsing_Main_Subunit): Moved from Errout to Lib and renamed
4405         as Parsing_Main_Extended_Source.
4406         * frontend.adb: Set Parsing_Main_Extended_Source True for parsing main
4407         unit.
4408         * lib-load.adb (Load_Unit): Add PMES parameter
4409         Set PMES appropriately in all calls to Load_Unit
4410         * lib-load.ads (Load_Unit): Add PMES parameter
4411         * lib.adb (In_Extended_Main_Source_Unit): When called with
4412         Compiler_State set to Parsing, test new flag
4413         Compiling_Main_Extended_Source.
4414         * lib.ads (Compiler_State[_Type]): Moved from Errout to Lib
4415         (Parsing_Main_Subunit): Moved from Errout to Lib and renamed
4416         as Parsing_Main_Extended_Source
4417         * par-load.adb (Load): Set PMES properly in call to Load_Unit
4419 2010-09-10  Ed Schonberg  <schonberg@adacore.com>
4421         * exp_cg.adb: Use proper entity to handle overloads.
4422         * sem_res.adb (Check_Parameterless_Call): An operator node without
4423         actuals cannot be a call, and must be treated as a string.
4425 2010-09-10  Robert Dewar  <dewar@adacore.com>
4427         * frontend.adb: Minor reformatting.
4429 2010-09-10  Robert Dewar  <dewar@adacore.com>
4431         * par-ch4.adb (P_Conditional_Expression): Use P_Condition for condition
4432         * par-ch5.adb (P_Condition): Move from body to spec
4433         * par.adb (Ch5.P_Condition): Move from body to spec
4435 2010-09-10  Ed Schonberg  <schonberg@adacore.com>
4437         * exp_cg.adb (Write_Call_Info): If a type that has been registered in
4438         the call table is private, use its full view to generate information
4439         on its operations.
4441 2010-09-10  Jose Ruiz  <ruiz@adacore.com>
4443         * exp_cg.adb (Is_Predefined_Dispatching_Operation): When trying the
4444         pattern matching to detect predefined primitive operations take into
4445         account that there can be an extra suffix related to body-nested
4446         package entities.
4448 2010-09-10  Ed Schonberg  <schonberg@adacore.com>
4450         * s-pooglo.ads: Add overriding indicators.
4452 2010-09-10  Vincent Celier  <celier@adacore.com>
4454         * vms_data.ads: Add new GNAT BIND qualifiers /32_MALLOC (for -H32) and
4455         /64_MALLOC (for -H64).
4457 2010-09-10  Robert Dewar  <dewar@adacore.com>
4459         * errout.adb (Error_Msg_Internal): Test Parsing_Main_Subunit flag
4460         (Error_Msg_NW): Test Parsing_Main_Subunit flag
4461         * errout.ads (Parsing_Main_Subunit): New flag
4462         * lib-load.adb (Load_Unit): Set Parsing_Main_Subunit flag
4463         * par-ch6.adb: Minor style fix (remove redandant parentheses)
4464         * par-ch9.adb: Minor style fix (remove redundant parens)
4465         * par-load.adb: (Load): Deal with setting Parsing_Main_Subunit
4467 2010-09-10  Vincent Celier  <celier@adacore.com>
4469         * make.adb (Create_Binder_Mapping_File): Remove procedure. Replaced by
4470         function of the same name in Makeutl.
4471         (Gnatmake): Call function Create_Binder_Mapping_File in Makeutl, instead
4472         of removed procedure when creating a binder mapping file.
4473         * makeutl.adb (Create_Binder_Mapping_File): New function. Was a
4474         procedure in Make.
4475         * makeutl.ads (Create_Binder_Mapping_File): New function
4477 2010-09-10  Jose Ruiz  <ruiz@adacore.com>
4479         * exp_cg.adb (Is_Predefined_Dispatching_Operation): Add the "__" scope
4480         separator when trying the pattern matching to detect predefined
4481         primitive operations.
4483 2010-09-10  Robert Dewar  <dewar@adacore.com>
4485         * bindgen.adb, atree.adb: Minor reformatting.
4487 2010-09-10  Ben Brosgol  <brosgol@adacore.com>
4489         * ug_words, gnat_ugn.texi: Revised "Transitioning to 64-Bit GNAT for
4490         OpenVMS" section.
4492 2010-09-10  Doug Rupp  <rupp@adacore.com>
4494         * bindgen.adb: Minor comment fix for -H switch.
4496 2010-09-10  Ed Schonberg  <schonberg@adacore.com>
4498         * exp_cg.adb (Register_CG_Node): Determine enclosing subprogram or
4499         library unit now, by traversing tree before context is expanded.
4500         (Write_Call_Info): Use enclosing unit name directly.
4501         * exp_ch9.adb (Expand_N_Accept_Statement): Attach generated block to
4502         tree earlier, to ensure that subsequent declarations are analyzed in a
4503         connected structure.
4504         * exp_intr.adb (Expand_Unc_Deallocation): Ditto for generated statement
4505         list.
4507 2010-09-10  Robert Dewar  <dewar@adacore.com>
4509         * symbols-processing-vms-alpha.adb: Minor reformatting.
4511 2010-09-10  Jerome Lambourg  <lambourg@adacore.com>
4513         * bindgen.adb (Gen_Adainit_Ada): In .NET, don't call
4514         __gnat_install_handler in case the binder is called with -n.
4516 2010-09-10  Ed Schonberg  <schonberg@adacore.com>
4518         * exp_ch6.adb (Make_Build_In_Place_In_Object_Declaration): Use proper
4519         sloc for renaming declaration and set Comes_From_Source properly to
4520         ensure that references are properly generated for an object declaration
4521         that is built in place.
4523 2010-09-10  Tristan Gingold  <gingold@adacore.com>
4525         * symbols-processing-vms-alpha.adb: Allow gnatsym to work as a cross
4526         tool.
4527         * gcc-interface/Make-lang.in: Install gnatsym when cross compiling.
4528         * gcc-interface/Makefile.in: gnat.hlp is now generated by
4529         Make-generated.in
4531 2010-09-10  Bob Duff  <duff@adacore.com>
4533         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): For things like ""X(J)
4534         := ...;", remove side effects from the right-hand side, because they
4535         might affect the value of the left-hand side, but the left-hand side is
4536         first READ (so we can do shifting and masking) and then written back,
4537         which would cause the side effects to be incorrectly overwritten.
4539 2010-09-10  Robert Dewar  <dewar@adacore.com>
4541         * sem_ch4.adb: Minor reformatting.
4542         * exp_ch6.adb: Add comment on testing limited on full type
4543         * gnat_rm.texi: Add documentation on Pure_Function.
4545 2010-09-10  Vincent Celier  <celier@adacore.com>
4547         * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
4548         as a source of another project and of another language.
4550 2010-09-10  Robert Dewar  <dewar@adacore.com>
4552         * exp_ch3.adb (Expand_N_Object_Declaration): Defend against previous
4553         errors.
4554         * freeze.adb (Check_Unsigned_Type): Ditto.
4555         * sem_aggr.adb (Resolve_Aggr_Expr): Ditto.
4556         * sem_ch3.adb (Convert_Scalar_Bounds): Ditto.
4557         (Set_Scalar_Range_For_Subtype): Ditto.
4558         * sem_eval.adb (Subtypes_Statically_Match): Ditto.
4560 2010-09-10  Robert Dewar  <dewar@adacore.com>
4562         * repinfo.adb (List_Type_Info): List Small and Range for fixed-point
4563         types.
4564         * sprint.adb (Write_Ureal_With_Col_Check_Sloc): Use square brackets
4565         rather than parens for fixed constants.
4566         * sprint.ads: Use square brackets rather than parens for fixed constants
4567         * urealp.adb (UR_Write): Use square brackets rather than parens
4568         (UR_Write): Add Brackets argument
4569         (UR_Write): Add many more special cases to output literals
4570         * urealp.ads (UR_Write): Use square brackets rather than parens
4571         (UR_Write): Add Brackets argument
4573 2010-09-10  Robert Dewar  <dewar@adacore.com>
4575         * sem_ch4.adb: Minor reformatting.
4577 2010-09-10  Richard Guenther  <rguenther@suse.de>
4579         * gcc-interface/utils.c (create_index_type): Use build_range_type.
4581 2010-09-10  Arnaud Charlet  <charlet@adacore.com>
4583         * vms_cmds.ads: New.
4585 2010-09-10  Eric Botcazou  <ebotcazou@adacore.com>
4587         * exp_dbug.ads: Mention enhanced encoding for array types.
4589 2010-09-10  Jerome Lambourg  <lambourg@adacore.com>
4591         * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Size clause are
4592         unsupported in VM targets. Display a warning in this case.
4594 2010-09-10  Ed Schonberg  <schonberg@adacore.com>
4596         * sprint.adb (Sprint_Node_Actual, case N_Derived_Type_Definition): Do
4597         not reset Sloc when printing keyword "new".
4599 2010-09-10  Vincent Celier  <celier@adacore.com>
4601         * gnatcmd.adb (GNATCmd): Put the command line in environment variable
4602         GNAT_DRIVER_COMMAND_LINE.
4604 2010-09-10  Ed Schonberg  <schonberg@adacore.com>
4606         * sem.adb (Do_Unit_And_Dependents): if Withed_Body is set on a context
4607         clause, process the body at once.
4609 2010-09-10  Ed Schonberg  <schonberg@adacore.com>
4611         * sem_res.adb (Resolve_Type_Conversion): Do not warn on a redundant
4612         conversion is the expression is a qualified expression used to
4613         disambiguate a function call.
4615 2010-09-10  Vincent Celier  <celier@adacore.com>
4617         * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
4618         as a source of another project and of another language.
4620 2010-09-10  Robert Dewar  <dewar@adacore.com>
4622         * prj-util.adb: Minor reformatting.
4624 2010-09-10  Eric Botcazou  <ebotcazou@adacore.com>
4626         * exp_disp.adb: Minor reformatting.
4628 2010-09-10  Arnaud Charlet  <charlet@adacore.com>
4630         * sem_prag.adb (Analyze_Pragma): Ignore Inline_Always pragma in
4631         CodePeer mode.
4633 2010-09-10  Thomas Quinot  <quinot@adacore.com>
4635         * sem_res.adb: Minor reformatting.
4636         * exp_ch9.adb, rtsfind.ads, exp_ch4.adb, exp_ch3.adb: Do not hardcode
4637         magic constants for task master levels (instead, reference
4638         named numbers from System.Tasking).
4640 2010-09-10  Eric Botcazou  <ebotcazou@adacore.com>
4642         * gnatvsn.ads (Ver_Prefix): New constant string.
4643         * bindgen.adb (Gen_Output_File_Ada): Use it in lieu of hardcoded value.
4644         (Gen_Output_File_C): Likewise.
4645         * g-comver.adb (Ver_Prefix): Add cross-reference to Gnatvsn.Ver_Prefix
4646         in comment.
4647         
4648 2010-09-10  Ed Schonberg  <schonberg@adacore.com>
4650         * sem.adb (Walk_Library_Items): Do not traverse children of the main
4651         unit, to prevent spurious circularities in the walk order.
4652         (Depends_On_Main): Use elsewhere to prevent circularities when the body
4653         of an ancestor of the main unit depends on a child of the main unit.
4655 2010-09-10  Robert Dewar  <dewar@adacore.com>
4657         * gnatlink.adb, prj-ext.adb, prj-util.adb, s-tporft.adb,
4658         sem_ch3.adb: Minor reformatting.
4660 2010-09-10  Ed Schonberg  <schonberg@adacore.com>
4662         * sem_ch3.adb (Derive_Subprograms): An interface primitive operation
4663         that is a renaming must be derived like any other primitive operation,
4664         the renamed operation is not relevant to the derivation.
4666 2010-09-10  Robert Dewar  <dewar@adacore.com>
4668         * sem_aux.ads: Add comment for Is_Inherently_Limited_Type.
4669         * checks.adb: Minor reformatting.
4671 2010-09-10  Robert Dewar  <dewar@adacore.com>
4673         * gnat_ugn.texi: Add section on intent of style checking options.
4675 2010-09-10  Arnaud Charlet  <charlet@adacore.com>
4677         * xref_lib.adb (Get_Full_Type): Fix handling of 'a' char.
4679 2010-09-10  Ed Schonberg  <schonberg@adacore.com>
4681         * sem_ch3.adb: Improve error message on derivation from class-wide type
4683 2010-09-10  Steve Baird  <baird@adacore.com>
4685         * gnat1drv.adb (Adjust_Global_Switches): Enable Expression_With_Actions
4686         generation when Generate_SCIL is True.
4688 2010-09-10  Geert Bosch  <bosch@adacore.com>
4690         * gnatlink.adb (Check_ Existing_Executable): New procedure for checking
4691         validity of executable name and removing any existing executable
4692         (Gnatlink): Call Check_Existing_Executable.
4694 2010-09-10  Arnaud Charlet  <charlet@adacore.com>
4696         * s-tporft.adb, s-taskin.ads (Register_Foreign_Thread): Move
4697         initialization of Task_Alternate_Stack here, cleaner since in case of
4698         ranvescar, Restricted_Ada_Task_Control_Block is not initialized
4699         implicitly.
4701 2010-09-10  Thomas Quinot  <quinot@adacore.com>
4703         * s-fileio.adb, a-dirval.adb: Minor reformatting.
4705 2010-09-10  Emmanuel Briot  <briot@adacore.com>
4707         * prj-util.adb (Executable_Of): Fix CE when the project does not
4708         contain a Builder package.
4710 2010-09-10  Vincent Celier  <celier@adacore.com>
4712         * prj-ext.adb (Initialize_Project_Path): Add <prefix>/lib/gpr/<target>
4713         to the project path, if Prefix and Target_Name are defined.
4714         * prj-tree.ads (Project_Node_Tree_Data): New component Target_Name
4716 2010-09-10  Ed Schonberg  <schonberg@adacore.com>
4718         * checks.adb (Ensure_Valid): If the expression is a boolean expression
4719         or short-circuit operation, do no emit a validity check: only the
4720         elementary operands of the expression need checking.
4722 2010-09-10  Ben Brosgol  <brosgol@adacore.com>
4724         * gnat_rm.texi: Document Short_Descriptors.
4726 2010-09-10  Arnaud Charlet  <charlet@adacore.com>
4728         * s-taprop-linux.adb, s-taskin.ads (Task_Alternate_Stack): Default
4729         initialize to Null_Address.
4730         (Enter_Task): Do not set up an alternate stack for foreign threads.
4732 2010-09-10  Robert Dewar  <dewar@adacore.com>
4734         * opt.adb (Short_Descriptors): New flag
4735         (Short_Descriptors_Config): New flag
4736         * opt.ads (Short_Descriptors): New flag
4737         (Short_Descriptors_Config): New flag
4738         * par-prag.adb: Add dummy entry for Short_Descriptors pragma
4739         * sem_prag.adb (Set_Mechanism_Value): Deal with Short_Descriptors.
4740         (Analyze_Pragma): Implement Short_Descriptors pragma
4741         * snames.ads-tmpl: Add entry for Short_Descriptors pragma
4743 2010-09-10  Emmanuel Briot  <briot@adacore.com>
4745         * prj-util.adb, prj-util.ads (Executable_Of): Take into account the
4746         project's Executable_Suffix.
4748 2010-09-10  Robert Dewar  <dewar@adacore.com>
4750         * g-pehage.ads: Minor reformatting
4752         * gnat_ugn.texi: Clarifying comment on -gnatyc
4753         * exp_ch6.adb (Expand_N_Subprogram_Body): Reset Is_Pure if limited
4754         arguments.
4756 2010-09-10  Tristan Gingold  <gingold@adacore.com>
4758         * Make-generated.in (gnat.hlp): New rule.
4760 2010-09-10  Emmanuel Briot  <briot@adacore.com>
4762         * prj-util.adb, prj-util.ads (Executable_Of): New parameter
4763         Include_Suffix.
4765 2010-09-10  Robert Dewar  <dewar@adacore.com>
4767         * einfo.adb: Minor code cleanup: Add assertion to
4768         Set_Corresponding_Protected_Entry.
4770 2010-09-10  Bob Duff  <duff@adacore.com>
4772         * g-pehage.ads, g-pehage.adb (Produce): Add a new flag to allow sending
4773         the output to standard output.
4775 2010-09-09  Vincent Celier  <celier@adacore.com>
4777         * gnat_ugn.texi: Add documentation for new gnatmake switch
4778         --create-map-file.
4779         * make.adb (Map_File): New global variable to store the value of switch
4780         --create-map-file.
4781         (Gnatmake): Add switch -M to gnatlink if switch --create-map-file has
4782         been specified.
4783         (Scan_Make_Arg): Recognize switch --create-map-file
4784         * makeutl.ads (Create_Map_File_Switch): New constant string for new
4785         gnatmake and gprbuild switch --create-map-file.
4787 2010-09-09  Robert Dewar  <dewar@adacore.com>
4789         * sinput-p.ads: Minor comment update.
4791 2010-09-09  Arnaud Charlet  <charlet@adacore.com>
4793         * s-tpobop.adb, s-taenca.adb (Wait_For_Completion_With_Timeout): Reset
4794         Entry_Call.State if needed so that the call is marked as cancelled by
4795         Check_Pending_Actions_For_Entry_Call.
4796         (Timed_Protected_Entry_Call): Adjust calls to Defer/Under_Abort, since
4797         this procedure may be called from a controlled operation
4798         (Initialize/Finalize).
4800 2010-09-09  Vadim Godunko  <godunko@adacore.com>
4802         * impunit.adb: Correct spelling of package's name in the comment.
4804 2010-09-09  Robert Dewar  <dewar@adacore.com>
4806         * gnatcmd.adb, gnatlink.adb, sem_ch12.adb, sem_eval.adb, sinput-p.adb:
4807         Minor reformatting
4809 2010-09-09  Robert Dewar  <dewar@adacore.com>
4811         * impunit.adb: Add entry for a-izteio.
4812         * checks.adb: Add comment.
4813         * debug.adb, exp_disp.adb: Minor reformatting.
4814         * exp_dbug.ads: Minor reformatting throughout (pack block comments).
4816 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
4818         * sem_eval.adb (Is_Same_Value): Two occurrences of the same
4819         discriminant cannot be assumed to be the same value because they may
4820         refer to bounds of a component of two different instances of a
4821         discriminated type.
4823 2010-09-09  Gary Dismukes  <dismukes@adacore.com>
4825         * checks.adb (Apply_Arithmetic_Overflow_Check): When converting the
4826         operands of an operator to the type of an enclosing conversion, rewrite
4827         the operator so the conversion can't be flagged as redundant.
4828         Remove useless assignments to Typ and Rtyp.
4830 2010-09-09  Eric Botcazou  <ebotcazou@adacore.com>
4832         * gnat_ugn.texi: Fix another long line.
4834 2010-09-09  Bob Duff  <duff@adacore.com>
4836         * sem_warn.adb (Output_Reference_Error): Don't warn for renames read
4837         but never assigned.
4839 2010-09-09  Matthew Heaney  <heaney@adacore.com>
4841         * a-convec.adb, a-coinve.adb (Clear, Delete, Delete_Last, Finalize,
4842         Merge, Insert, Insert_Space, Move, Reserve_Capacity, Generic_Sorting,
4843         Replace_Element, Reverse_Elements, Swap): Change exception message to
4844         correctly indicate kind of tampering (cursor or element).
4845         * a-cdlili.adb, a-cidlli.adb (Clear, Delete, Delete_First, Delete_Last,
4846         Merge, Generic_Sorting, Insert, Move, Reverse_Elements, Splice,
4847         Swap_Links, Replace_Element, Swap): Ditto.
4848         * a-coorse.adb, a-ciorse.adb (Include, Replace, Replace_Element): Ditto
4849         * a-coorma.adb, a-ciorma.adb (Include, Replace, Replace_Element): Ditto
4850         * a-coormu.adb, a-ciormu.adb (Replace_Element): Ditto
4851         * a-chtgke.adb (Delete_Key_Sans_Free, Generic_Conditional_Insert,
4852         Generic_Replace_Element): Ditto
4853         * a-chtgop.adb (Clear, Move, Reserve_Capacity): Ditto
4854         * a-cohama.adb, a-cihama.adb (Delete, Include, Replace,
4855         Replace_Element): Ditto.
4856         * a-cohase.adb, a-cihase.adb (Delete, Difference, Intersection,
4857         Symmetric_Difference, Union, Include, Replace): Ditto
4859 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
4861         * sprint.adb (Write_Id): If the parent node is an expanded name, check
4862         that its entity_or_associated_node is an entity before writing it out.
4863         * exp_disp.adb (Make_Tags); if a type is declared in C++ and has no
4864         constructors, there is no need for a dispatch table pointer because the
4865         table is fully inherited from the C++ code.
4867 2010-09-09  Thomas Quinot  <quinot@adacore.com>
4869         * projects.texi: Fix wrong identifiers on package end lines in project
4870         files examples.
4871         * exp_ch6.adb: Minor reformatting.
4873 2010-09-09  Tristan Gingold  <gingold@adacore.com>
4875         * gnatcmd.adb, vms_conv.ads: Extract Command_Type.
4877 2010-09-09  Eric Botcazou  <ebotcazou@adacore.com>
4879         * gnat_ugn.texi: Fix description of -O3 optimization level.
4881 2010-09-09  Yannick Moy  <moy@adacore.com>
4883         * a-cihama.adb, a-cohama.adb: Fix comments.
4885 2010-09-09  Arnaud Charlet  <charlet@adacore.com>
4887         * i-cexten.ads: Add comments.
4888         (Signed_128): New type, used by some C bindings.
4889         * debug.adb: Update comment.
4891 2010-09-09  Sergey Rybin  <rybin@adacore.com>
4893         * gnat_ugn.texi: For ASIS tools (gnatpp, gnatcheck, gnatelim,
4894         gnatmetric and gnatstub) add a note that '-gnat05' should be used if
4895         the tool should process Ada 2005 sources.
4897 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
4899         * sem_ch12.adb (Remove_Parent): If the scope containing the child
4900         instance is a block, examine the enclosing scope to determine if it is
4901         a parent instance.
4903 2010-09-09  Doug Rupp  <rupp@adacore.com>
4905         * sem_prag.adb (pragma Ident): Pass --identification= vice 
4906         IDENTIFICATION=
4907         * gnatlink.adb (Linker_Options): Look for --identification= vice 
4908         IDENTIFICATION=
4910 2010-09-09  Gary Dismukes  <dismukes@adacore.com>
4912         * exp_attr.adb (Expand_N_Attribute_Reference, case Attribute_Old): When
4913         inserting and analyzing the object declaration for the temporary object
4914         created to hold a 'Old value, push the scope for the subprogram where
4915         the object is inserted, so that its Scope (and that of related objects)
4916         will be set properly.
4918 2010-09-09  Vincent Celier  <celier@adacore.com>
4920         * prj.adb (Get_Object_Directory): Return object directory display name
4921         * adaint.c (__gnat_get_file_names_case_sensitive): When environment
4922         variable GNAT_FILE_NAME_CASE_SENSITIVE has a value of "0" or "1",
4923         return this value, otherwise return the default for the platform.
4925 2010-09-09  Arnaud Charlet  <charlet@adacore.com>
4927         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
4928         dependencies. Remove handling of gnatlbr.
4929         Do not remove s-stratt-xdr for the run-time when installing.
4931 2010-09-09  Robert Dewar  <dewar@adacore.com>
4933         * sem_attr.adb: Minor reformatting.
4935 2010-09-09  Thomas Quinot  <quinot@adacore.com>
4937         * socket.c (__gnat_socket_ioctl): On Darwin, the req parameter is an
4938         unsigned long, not an int.
4940 2010-09-09  Vincent Celier  <celier@adacore.com>
4942         * make.adb, mlib-prj.adb, prj.adb, prj-nmsc.adb, mlib-tgt.adb,
4943         prj-conf.adb, prj-env.adb: Use Display_Name instead of Name whenever
4944         we are not checking for equality of path or file names.
4946 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
4948         * exp_util.adb (Remove_Side_Effects): If the expression is a packed
4949         array reference, reset the Analyzed flag so that it is properly
4950         expanded when the resulting object declaration is analyzed.
4952 2010-09-09  Vincent Celier  <celier@adacore.com>
4954         * sinput-p.adb (Source_File_Is_Subunit): Return False if X is
4955         No_Source_File.
4957 2010-09-09  Ramon Fernandez  <fernandez@adacore.com>
4959         * sysdep.c: The wrSbc8548 BSP in MILS doesn't know anything about the
4960         VX_SPE_TASK option, so disable it.
4962 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
4964         * sem.adb (Walk_Library_Items): Traverse context of subunits of the
4965         main unit.
4966         (Is_Subunit_Of_Main): Handle null nodes properly.
4968 2010-09-09  Robert Dewar  <dewar@adacore.com>
4970         * par-ch2.adb: Update comments.
4972 2010-09-09  Ben Brosgol  <brosgol@adacore.com>
4974         * gnat_rm.texi: Minor wordsmithing of section on pragma Ordered.
4976 2010-09-09  Arnaud Charlet  <charlet@adacore.com>
4978         * par-ch2.adb (Scan_Pragma_Argument_Association): In CodePeer mode,
4979         do not generate an error for compatibility with legacy code.
4980         ignored when generating SCIL.
4981         * sem_attr.adb (Resolve_Attribute): Ignore AI-229 in CodePeer mode.
4983 2010-09-09  Thomas Quinot  <quinot@adacore.com>
4985         * s-strxdr.adb, gnat_rm.texi, s-stratt-xdr.adb, s-stratt.ads: Rename
4986         s-strxdr.adb to s-stratt-xdr.adb
4988 2010-09-09  Robert Dewar  <dewar@adacore.com>
4990         * ali-util.adb (Obsolescent_Check): Removed.
4991         * gprep.adb (Obsolescent_Check): Removed.
4992         Remove Obsolescent_Check parameter in Scng instantiation
4993         * prj-err.adb (Obsolescent_Check): Removed.
4994         * prj-err.ads (Obsolescent_Check): Removed.
4995         Remove Obsolescent_Check parameter in Scng instantiation
4996         * scans.ads (Based_Literal_Uses_Colon): New flag
4997         * scn.adb (Obsolscent_Check_Flag): Removed
4998         (Obsolscent_Check): Removed
4999         (Set_Obsolescent_Check): Removed
5000         (Post_Scan): Add handling for obsolescent features
5001         * scn.ads (Obsolscent_Check): Removed
5002         (Set_Obsolescent_Check): Removed
5003         (Post_Scan): Can no longer be inlined
5004         Remove Obsolescent_Check from instantiation of Scng
5005         * scng.adb (Nlit): Set Based_Literal_Uses_Colon
5006         (Nlit): Remove handling of obsolescent check
5007         (Scan, case '%'): Remove handling of obsolescent check
5008         (Scan, case '|'): Call Post_Scan
5009         (Scan, case '!'): Remove handling of obsolescent check, call Post_Scan
5010         * scng.ads Remove Obsolescent_Check argument from Scng generic
5011         (Post_Scan): Now called for Tok_Vertical_Bar
5012         * sinput-l.adb: Remove calls to Set_Obsolescent_Check
5014 2010-09-09  Doug Rupp  <rupp@adacore.com>
5016         * gnatlbr.adb: Removed.
5017         * gnat_rm.texi, ug_words, gnat_ugn.texi: Remove mention of gnatlbr.
5019 2010-09-09  Robert Dewar  <dewar@adacore.com>
5021         * sem_res.adb (Resolve_Type_Conversion): Catch more cases of redundant
5022         conversions.
5024 2010-09-09  Vincent Celier  <celier@adacore.com>
5026         * gnatlbr.adb: Remove redundant conversions.
5028 2010-09-09  Vincent Celier  <celier@adacore.com>
5030         * prj-proc.adb: Minor comment spelling error fix.
5031         * osint.ads (Env_Vars_Case_Sensitive): Use function
5032         Get_Env_Vars_Case_Sensitive, not Get_File_Names_Case_Sensitive to
5033         compute value.
5035 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
5037         * sem_res.adb (Resolve_Equality_Op): Implement Ada2012 rule for
5038         resolution of conditional expressions whose dependent expressions are
5039         anonymous access types.
5041 2010-09-09  Robert Dewar  <dewar@adacore.com>
5043         * a-ststio.adb: Minor code reorganization.
5044         * s-direio.adb, prj.adb, prj-nmsc.adb, sem_type.adb: Remove redundant
5045         conversion.
5046         * types.ads: Minor reformatting.
5047         * binde.adb, vms_conv.adb, gnatls.adb, s-strxdr.adb, uintp.adb: Remove
5048         redundant conversions.
5049         * output.adb: Minor reformatting.
5050         * sem_ch8.adb (Find_Type): Test for redundant base applies to user
5051         types.
5052         * opt.ads: Add pragma Ordered for Verbosity_Level.
5053         * prj.ads: Add pragma Ordered for type Verbosity.
5055 2010-09-09  Vincent Celier  <celier@adacore.com>
5057         * osint.adb (Canonical_Case_File_Name): Use procedure To_Lower in
5058         System.Case_Util
5059         (Canonical_Case_Env_Var_Name): Ditto
5061 2010-09-09  Bob Duff  <duff@adacore.com>
5063         * g-pehage.adb (Allocate): Initialize the allocated elements of IT.
5065 2010-09-09  Robert Dewar  <dewar@adacore.com>
5067         * cstand.adb: Mark Boolean and Character types as Ordered
5068         * einfo.adb (Has_Pragma_Ordered): New flag
5069         * einfo.ads (Has_Pragma_Ordered): New flag
5070         * g-calend.ads: Mark Day_Name as Ordered
5071         * opt.ads: Mark Ada_Version_Type as Ordered
5072         (Warn_On_Unordered_Enumeration_Type): New flag
5073         * par-prag.adb: Add procdessing for pragma Ordered
5074         * s-ficobl.ads (Read_File_Mode): New subtype
5075         * s-fileio.adb: Use Read_File_Mode instead of explicit ranges
5076         * s-taskin.ads: Mark Entry_Call_State as ordered
5077         * sem_ch3.adb (Build_Derived_Enumeration_Type): Inherit
5078         Has_Pragma_Ordered.
5079         * sem_ch6.ads: Mark Conformance_Type as Ordered
5080         * sem_prag.adb: Implement pragma Ordered
5081         * sem_res.adb (Bad_Unordered_Enumeration_Reference): New function
5082         (Resolve_Comparison_Op): Diagnose unordered comparison
5083         (Resolve_Range): Diagnose unordered range
5084         * sem_warn.adb (Warn_On_Unordered_Enumeration_Type): New flag (from
5085         -gnatw.u/U)
5086         * snames.ads-tmpl: Add entry for pragma Ordered
5087         * style.ads (Check_Enumeration_Subrange): Removed
5088         * styleg.adb (Check_Enumeration_Subrange): Removed
5089         * styleg.ads (Check_Enumeration_Subrange): Removed
5090         * stylesw.adb: Remove handling of -gnatyE switch
5091         * stylesw.ads: (Style_Check_Enumeration_Subranges): Removed
5092         * vms_data.ads: Remove -gnatyE entries
5093         Add -gnatw.u entries
5094         * ug_words: Entries for -gnatw.u and -gnatw.U
5095         * gnat_ugn.texi: Document -gnatw.u/-gnatw.U switches
5096         * gnat_rm.texi: Document pragma Ordered.
5097         * s-tasren.adb: Avoid unnecessary comparison on unordered enumeration.
5098         * s-tpobop.adb: Remove comparison on unordered enumeration type.
5100 2010-09-09  Vincent Celier  <celier@adacore.com>
5102         * adaint.c: New function __gnat_get_env_vars_case_sensitive, returns 0
5103         for VMS and Windows, and 1 for all other platforms.
5104         * adaint.h: New function __gnat_get_env_vars_case_sensitive
5105         * osint.ads, osint.adb (Canonical_Case_Env_Var_Name): New procedure.
5106         * prj-ext.adb (Add): Call Canonical_Case_Env_Var_Name instead of
5107         Canonical_Case_File_Name, as we are dealing with environment variables,
5108         not files.
5110 2010-09-09  Robert Dewar  <dewar@adacore.com>
5112         * sem_util.adb: Minor reformatting
5114 2010-09-09  Vincent Celier  <celier@adacore.com>
5116         * vms_data.ads: Add documentation for S_Make_Single.
5118 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
5120         * sem_util.adb (Same_Object): include formal parameters.
5122 2010-09-09  Vincent Celier  <celier@adacore.com>
5124         * make.adb (Queue): New package implementing a new impementation of the
5125         queue, taking into account the new switch --single-compile-per-obj-dir.
5126         * makeutl.ads (Single_Compile_Per_Obj_Dir_Switch): New constant String
5127         for gnatmake and gprbuild new switch --single-compile-per-obj-dir.
5128         * opt.ads (One_Compilation_Per_Obj_Dir): New Boolean flag, defauted to
5129         False.
5130         * switch-m.adb (Scan_Make_Switches): Take into account new gnatmake
5131         switch --single-compile-per-obj-dir.
5132         * vms_data.ads: Add qualifier SINGLE_COMPILE_PER_OBJ_DIR for gnatmake
5133         switch --single-compile-per-obj-dir.
5134         * gnat_ugn.texi: Add documentation for new gnatmake switch
5135         --single-compile-per-obj-dir.
5137 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
5139         * einfo.adb, einfo.ads: Clarify use of Corresponding_Protected_Entry.
5141 2010-09-09  Javier Miranda  <miranda@adacore.com>
5143         * sem_ch3.adb (Is_Progenitor): Relocated to sem_type.
5144         (Replace_Type): Code cleanup.
5145         * sem_type.ads, sem_type.adb (Is_Progenitor): Relocated from sem_ch3
5147 2010-09-09  Thomas Quinot  <quinot@adacore.com>
5149         * exp_ch8.adb: Minor reformatting.
5151 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
5153         * exp_ch9.adb, einfo.adb, einfo.ads: New attribute
5154         Corresponding_Protected_Entry.
5156 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
5158         * exp_ch3.adb (Build_Untagged_Equality): Do not set alias of implicit
5159         inequality, it is always rewritten as the negation of the corresponding
5160         equality operation.
5161         * exp_ch8.adb (Expand_N_Subprogram_Renaming): If the subprogram renames
5162         the predefined equality of an untagged record, create a body at the
5163         point of the renaming, to capture the current meaning of equality for
5164         the type.
5166 2010-09-09  Robert Dewar  <dewar@adacore.com>
5168         * sem.adb, sem_warn.adb: Minor reformatting.
5170 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
5172         * sem_ch6.adb: Improve error message on untagged equality.
5173         * sem.adb (Semantics): Include subprogram bodies that act as spec.
5175 2010-09-09  Javier Miranda  <miranda@adacore.com>
5177         * sem_ch13.adb, exp_ch13.adb: Undo previous change, unneeded.
5179 2010-09-09  Robert Dewar  <dewar@adacore.com>
5181         * sem_ch13.adb, sem_ch6.adb, exp_ch3.adb: Minor reformatting.
5183 2010-09-09  Robert Dewar  <dewar@adacore.com>
5185         * einfo.adb (Is_Aggregate_Type): New function.
5186         * einfo.ads (Aggregate_Kind): New enumeration subtype
5187         (Is_Aggregate_Type): New function.
5188         * sem_type.adb (Is_Array_Class_Record_Type): Removed, replaced by
5189         Is_Aggregate_Typea.
5191 2010-09-09  Robert Dewar  <dewar@adacore.com>
5193         * exp_ch11.adb, frontend.adb, sem_attr.adb, sem_ch10.adb, sem_ch3.adb,
5194         sem_ch4.adb, sem_ch9.adb, sem_res.adb: Use Restriction_Check_Needed
5195         where appropriate.
5196         * restrict.ads, restrict.adb: Ditto.
5197         (Restriction_Check_Needed): New function
5199 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
5201         * exp_ch9.ads (Find_Master_Scope): New function, extracted from
5202         Build_Master_Entity, to find the proper scope for the master entity of
5203         a type that may contain tasks, in the presence of transient scopes.
5204         * exp_ch9.adb (Build_Master_Entity) Use new function.
5205         * exp_ch3.adb (Build_Class_Wide_Master): ditto.
5207 2010-09-09  Vincent Celier  <celier@adacore.com>
5209         * prj-attr.adb: Add new attributes Leading_Library_Options and
5210         Linker'Leading_Switches.
5211         * snames.ads-tmpl: Add new standard names Leading_Library_Options and
5212         Leading_Switches.
5214 2010-09-09  Javier Miranda  <miranda@adacore.com>
5216         * sem_ch3.adb (Derive_Subprogram): The code that checks if a
5217         dispatching primitive covers some interface primitive is incomplete.
5218         Replace such code by the invocation of a new subprogram that provides
5219         this functionality.
5220         * sem_ch6.ads (Is_Interface_Conformant): Add missing documentation.
5221         * sem_ch6.adb (Check_Missing_Return): Minor reformating
5222         (Check_Convention): Complete if-statement conditition when reporting
5223         errors (to avoid assertion failure).
5224         * sem_ch13.adb (Make_Null_Procedure_Specs): This routine was previously
5225         located in exp_ch3. Relocated inside Analyze_Freeze_Entity.
5226         (Analyze_Freeze_Entity): Invoke routine that adds the spec of non
5227         overridden null interface primitives.
5228         * sem_type.adb (Is_Ancestor): If the parent of the partial view of a
5229         private type is an interface then use the parent of its full view to
5230         climb to its ancestor type.
5231         * sem_disp.ads, sem_disp.adb (Covers_Some_Interface): New subprogram.
5232         (Check_Dispatching_Operation): Extend assertion to handle wrappers of
5233         null interface primitives.
5234         (Is_Null_Interface_Primitive): New subprogram.
5235         * exp_ch3.adb (Make_Null_Procedure_Specs): Removed.
5236         (Expand_Freeze_Record_Type): Do not generate specs of null interface
5237         subprograms because they are now generated by Analyze_Freeze_Entity.
5239 2010-09-09  Robert Dewar  <dewar@adacore.com>
5241         * a-calfor.adb, sem_ch3.adb: Minor reformatting.
5243 2010-09-09  Robert Dewar  <dewar@adacore.com>
5245         * bindgen.adb (Gen_Restrictions_Ada): Avoid explicit enumeration ranges
5246         (Gen_Restrictions_C): Avoid explicit enumeration ranges
5247         (Set_String_Replace): New procedure
5248         * casing.ads (Known_Casing): New subtype declaration
5249         * prj-attr.ads (All_Case_Insensitive_Associative_Array): New subtype
5250         declaration
5251         * prj-dect.adb (Parse_Attribute_Declaration): Avoid enumeration range
5252         * prj-nmsc.adb (Check_Naming): Avoid unnecessary enumeration range
5253         * prj-strt.adb (Attribute_Reference): Avoid enumeration range test
5254         * prj.adb (Known_Casing): Moved to Casing spec (avoid enum range)
5255         * sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order): Avoid enumeration
5256         ranges.
5257         * sem_res.adb (Resolve_Range): Check for enumeration subrange style
5258         rule.
5259         * sem_type.adb (Is_Array_Class_Record_Type): New.
5260         * style.ads (Check_Enumeration_Subrange): New procedure
5261         * styleg.adb (Check_Enumeration_Subrange): New procedure
5262         * styleg.ads (Check_Enumeration_Subrange): New procedure
5263         * stylesw.adb Add handling for Style_Check_Enumeration_Subranges
5264         * stylesw.ads (Style_Check_Enumeration_Subranges): New flag
5265         * usage.adb: Add line for -gnatyE
5266         * vms_data.ads: Add entries for [NO]ENUMERATION_RANGES
5267         Add missing entry for NOBOOLEAN_OPERATORS
5268         * gnat_ugn.texi: Add documentation for -gnatyE
5270 2010-09-09  Robert Dewar  <dewar@adacore.com>
5272         * namet.adb (Initialize): Is now a dummy procedure
5273         (Reinitialize): New procedure
5274         Call Reinitialize from package initialization
5275         * namet.ads (Initialize): Is now a dummy procedure
5276         (Reinitialize): New procedure
5277         * clean.adb, gnat1drv.adb, gnatbind.adb, gnatcmd.adb, gnatlink.adb,
5278         gnatls.adb, gprep.adb, make.adb, prj-makr.adb: Remove obsolete call to
5279         Namet.Initialize.
5281 2010-09-09  Bob Duff  <duff@adacore.com>
5283         * sem_elab.adb, s-os_lib.ads: Minor comment fixes.
5285 2010-09-09  Robert Dewar  <dewar@adacore.com>
5287         * s-bitops.adb (Raise_Error): Add exception message
5289 2010-09-09  Robert Dewar  <dewar@adacore.com>
5291         * par-ch5.adb (Test_Statement_Required): Deal with Ada 2012 allowing no
5292         null statement after label.
5293         * sinfo.ads: Minor comment updates.
5295 2010-09-09  Robert Dewar  <dewar@adacore.com>
5297         * nlists.ads, nlists.adb (In_Same_List): New function.
5298         Use Node_Or_Entity_Id where appropriate.
5299         * par-labl.adb, sem_ch6.adb, sem_type.adb: Use In_Same_List.
5301 2010-09-09  Robert Dewar  <dewar@adacore.com>
5303         * restrict.ads, restrict.adb (Check_Wide_Character_Restriction): New
5304         procedure.
5305         * sem_ch3.adb: Use Check_Wide_Character_Restriction
5306         (Enumeration_Type_Declaration): Check violation of No_Wide_Characters
5307         * sem_ch8.adb (Find_Direct_Name): Check violation of No_Wide_Characters
5308         (Find_Expanded_Name): Check violation of No_Wide_Characters
5310 2010-09-09  Robert Dewar  <dewar@adacore.com>
5312         * par-ch5.adb: Minor reformatting.
5314 2010-09-09  Robert Dewar  <dewar@adacore.com>
5316         * prj-env.adb: Minor code reorganization.
5317         * par-ch3.adb: Minor reformatting.
5318         * gcc-interface/Make-lang.in: Update dependencies.
5320 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
5322         * exp_ch9.adb (Build_Activation_Chain_Entity): The construct enclosing
5323         a task declaration can be an entry body.
5325 2010-09-09  Javier Miranda  <miranda@adacore.com>
5327         * exp_disp.adb (Make_DT): Decorate as "static" variables containing
5328         tags of library level tagged types.
5329         (Make_Tags): Disable backend optimizations about aliasing for
5330         declarations of access to dispatch tables.
5332 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
5334         * sem_ch12.adb (Reset_Entity): If the entity is an itype created as a
5335         subtype for a null-excluding access type, recover the original
5336         subtype_mark to get the proper visibility on the original name.
5338 2010-09-09  Ed Schonberg  <schonberg@adacore.com>
5340         * exp_ch3.adb (Build_Untagged_Equality): For Ada2012, new procedure to
5341         create the primitive equality operation for an untagged record. The
5342         operation is the predefined equality if no record component has a
5343         user-defined equality, or if there is a user-defined equality for the
5344         type as a whole, or when the type is derived and it has an inherited
5345         equality. Otherwise the body of the operations is built as for tagged
5346         types.
5347         (Expand_Freeze_Record_Type): Call Build_Untagged_Equality when needed.
5348         (Make_Eq_Body): New function to create the expanded body of the
5349         equality operation for tagged and untagged records.  In both cases the
5350         operation composes, and the primitive operation of each record
5351         component is used to generate the equality function for the type.
5352         * exp_ch4.adb (Expand_Composite_Equality): In Ada2012, if a component
5353         has an abstract equality defined, replace its call with a
5354         Raise_Program_Error.
5355         * sem_ch6.adb (New_Overloaded_Entity): if Ada2012, verify that a
5356         user-defined equality operator for an untagged record type does not
5357         happen after type is frozen, and appears in the visible part if partial
5358         view of type is not limited.
5360 2010-09-09  Tristan Gingold  <gingold@adacore.com>
5362         * gnatlbr.adb: Make Create_Directory more portable: use __gnat_mkdir.
5364 2010-09-09  Bob Duff  <duff@adacore.com>
5366         * gnat_ugn.texi: Remove incorrect statement about -E being the default.
5368 2010-09-09  Pascal Obry  <obry@adacore.com>
5370         * gnat_ugn.texi: Update doc on windows related topics.
5372 2010-09-09  Geert Bosch  <bosch@adacore.com>
5374         * s-fatgen.adb: Update comments.
5376 2010-09-09  Robert Dewar  <dewar@adacore.com>
5378         * par-ch4.adb (Box_Error): New procedure.
5380 2010-09-09  Thomas Quinot  <quinot@adacore.com>
5382         * sem.adb: Minor reformatting.
5384 2010-09-09  Pascal Obry  <obry@adacore.com>
5386         * prj-env.adb: Style fix, use /and then/ and /or else/.
5387         * gnat_ugn.texi: Fix typos.
5389 2010-09-03  Joseph Myers  <joseph@codesourcery.com>
5391         PR ada/45499
5392         * gcc-interface/misc.c (gnat_init_options): Allow options with
5393         empty canonical form.  Generate a single save_argv element from -I
5394         options.
5396 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
5398         * gcc-interface/utils.c (gnat_pushdecl): Remove test for PARM_DECLs.
5399         Attach fake PARM_DECLs to the topmost block of the function.
5401 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
5403         * gcc-interface/trans.c (call_to_gnu): Also force the return slot opt
5404         for the call to a function whose return type was unconstrained.
5406 2010-08-30  Olivier Hainque  <hainque@adacore.com>
5408         * gcc-interface/decl.c (FOREIGN_FORCE_REALIGN_STACK): New macro,
5409         replacement for FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
5410         (gnat_to_gnu_entity) <case ..., E_Procedure>: Use it.
5412 2010-08-21  Eric Botcazou  <ebotcazou@adacore.com>
5414         * tracebak.c: Fix typo in comment.
5416 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
5418         * gcc-interface/decl.c: Use FOR_EACH_VEC_ELT.
5419         * gcc-interface/trans.c: Likewise.
5420         * gcc-interface/utils.c: Likewise.
5422 2010-08-18  Eric Botcazou  <ebotcazou@adacore.com>
5424         * tracebak.c (i386): Use GCC unwinder on Linux with GCC > 4.5.
5426 2010-08-10  Robert Dewar  <dewar@adacore.com>
5428         * sem_ch8.adb, sem_ch8.ads: Change name Write_Scopes to ws.
5429         * sem_util.adb: Minor reformatting.
5431 2010-08-10  Javier Miranda  <miranda@adacore.com>
5433         * sem_aggr.adb (Resolve_Extension_Aggregate): Warn on the use of C++
5434         constructors that leave the object partially initialized.
5435         * exp_atag.ads, exp_atags.adb (Build_Inherit_CPP_Prims): New subprogram
5436         that copies from parent of Typ the dispatch table slots of inherited
5437         C++ primitives. It handles primary and secondary dispatch tables.
5438         * einfo.adb (Related_Type): Moved from Node26 to Node27. Required to
5439         use this attribute with E_Variable entities.
5440         (Set_Is_Tag): Relax assertion to allow its use with variables that
5441         store tags.
5442         (Set_Related_Type): Relax assertion to allow its use with variables
5443         that store the tag of a C++ class.
5444         (Write_26_Field_Name): Remove Related_Type.
5445         (Write_27_Field_Name): Add Related_Type.
5446         * einfo.ads (Related_Type): Moved from Node26 to Node27. Available also
5447         with E_Variable entities.
5448         * sem_prag.adb (CPP_Constructor): Warn on duplicated occurrence of this
5449         pragma.
5450         * sem_util.adb (Search_Tag): Add missing support for CPP types.
5451         (Enclosing_CPP_Parent): New subprogram.
5452         (Has_Suffix): New subprogram.
5453         * sem_util.ads (Enclosing_CPP_Parent): New subprogram that returns the
5454         closest ancestor of a type that is a C++ type.
5455         (Has_Suffix): New subprogram. Used in assertions to check the suffix of
5456         internal entities.
5457         * sem_attr.adb (Analyze_Access_Attribute): Check wrong use of current
5458         instance in derivations of C++ types.
5459         * exp_tss.adb (CPP_Init_Proc): New subprogram.
5460         (Is_CPP_Init_Proc): New subprogram.
5461         (Set_TSS): Handle new C++ init routines.
5462         * exp_tss.ads (TSS_CPP_Init): New TSS name. For initialization of C++
5463         dispatch tables.
5464         (CPP_Init_Proc): New subprogram.
5465         (Is_CPP_Init_Proc): New subprogram.
5466         * exp_disp.adb (CPP_Num_Prims): New subprogram.
5467         (Has_CPP_Constructors): New subprogram.
5468         (Make_Secondary_DT, Make_DT): For derivations of CPP types, do not
5469         initialize slots located in the C++ part of the dispatch table.
5470         (Make_Tags): For CPP types declare variables used by the IP routine to
5471         store the C++ tag values after the first invocation of the C++
5472         constructor.
5473         (Build_CPP_Init_DT): New subprogram.
5474         (Set_CPP_Constructors): New implementation that builds an IP for each
5475         CPP constructor. These IP are wrappers of the C++ constructors that,
5476         after the first invocation of the constructor, read the C++ tags from
5477         the object and save them locally. These copies of the C++ tags are used
5478         by the IC routines to initialize tables of Ada derivations of CPP
5479         types.
5480         (Write_DT): Indicate what primitives are imported from C++
5481         * exp_disp.ads (CPP_Num_Prims): New subprogram.
5482         (Has_CPP_Constructors): New subprogram.
5483         * exp_aggr.adb (Build_Record_Aggr_Code): For derivations of C++ types
5484         invoke the IC routine to inherit the slots of the parents.
5485         * sem_ch13.adb (Analyze_Freeze_Entity): Add new warnings on CPP types.
5486         * exp_ch3.adb (Is_Variable_Size_Array): New subprogram.
5487         (Is_Variable_Size_Record): Factorize code calling
5488         Is_Variable_Size_Array.
5489         (Build_CPP_Init_Procedure): New subprogram that builds the tree
5490         corresponding to the procedure that initializes the C++ part of the
5491         dispatch table of an Ada tagged type that is a derivation of a CPP
5492         type.
5493         (Build_Init_Procedure): Adding documentation plus code reorganization
5494         to leave more clear the construction of the IP with C++ types.
5495         (Expand_Freeze_Record_Type): Delay call to Set_CPP_Constructors because
5496         it cannot be called after Make_Tags has been invoked.
5497         (Inherit_CPP_Tag): Removed.
5498         (Init_Secondary_Tags): For derivations of CPP types, warn on tags
5499         located at variable offset.
5500         * freeze.ads: Minor reformating.
5501         * sem_ch8.adb (Write_Scopes): Add pragma export. Required to have it
5502         available in gdb.
5503         * gcc-interface/Make-lang.in: Update dependencies.
5505 2010-08-10  Robert Dewar  <dewar@adacore.com>
5507         * a-chahan.ads: Add comments on handling of obsolescent entries.
5508         * opt.ads: Add Ada_2005 and Ada_2012 renamings for versions.
5509         * restrict.adb (Check_Obsolescent_2005_Entity): New procedure.
5510         * restrict.ads (Check_Obsolescent_2005_Entity): New procedure.
5511         * sem_attr.adb (Analyze_Access_Attribute): Call
5512         Check_Obsolescent_2005_Entity to check for access to obsolescent
5513         Ada.Characters.Handling subprogram.
5514         (Analyze_Attribute, case Class): Applying Class to untagged incomplete
5515         type is obsolescent in Ada 2005.
5516         (Analyze_Attribute, case Constrained): Better placement of flag when
5517         flagged as obsolescent feature.
5518         (Analyze_Attribute, case Storage_Size): Use with tasks is obsolescent
5519         * sem_ch10.adb (Analyze_With_Clause): With of renamings such as Text_IO
5520         is an obsolescent feature.
5521         * sem_ch11.adb (Analyze_Raise_Statement): Numeric_Error is obsolescent
5522         feature.
5523         * sem_ch8.adb (Analyze_Subprogram_Renaming): Call
5524         Check_Obsolescent_2005_Entity to check for renaming obsolete
5525         Ada.Characters.Handling subprogram.
5526         * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings): Check
5527         for obsolescent restrictions in Ada 2005.
5528         (Analyze_Pragma, case Suppress): Entity arg is obsolescent in Ada 2005
5529         (Analyze_Pragma, case Interface): Interface is obsolescent in Ada 2005
5530         * sem_res.adb (Resolve_Call): Call Check_Obsolescent_2005_Entity to
5531         check for obsolescent references to Ada.Characters.Handling subprograms
5533 2010-08-10  Robert Dewar  <dewar@adacore.com>
5535         * einfo.adb, einfo.ads: Fix bad -gnatdt output for incomplete type.
5537 2010-08-10  Robert Dewar  <dewar@adacore.com>
5539         * errout.ads: Add VMS table entries for 2005, 12, 2012 switches
5540         * par-ch4.adb: Change wording of Ada 2012 messages
5541         * vms_data.ads: Add VMS entries for /2005, /12, /2012
5543 2010-08-10  Robert Dewar  <dewar@adacore.com>
5545         * a-suenco.adb (Convert): Fix bug in UTF-16 to UTF-8 conversion for
5546         codes in the range 16#80#..16#7FF#.
5547         * sem_ch10.adb: Minor reformatting.
5549 2010-08-10  Arnaud Charlet  <charlet@adacore.com>
5551         * gnat1drv.adb (Scan_Front_End_Switches): Always perform semantics and
5552         generate ali files in CodePeer mode, so that a gnatmake -c -k will
5553         proceed further when possible
5554         * freeze.adb (Freeze_Static_Object): Fix thinko. Do not generate error
5555         messages when ignoring representation clauses (-gnatI).
5557 2010-08-10  Ed Schonberg  <schonberg@adacore.com>
5559         * exp_ch4.adb (Expand_N_Selected_Component): Do not attempt to
5560         constant-fold discriminant reference if the constraint is an object
5561         with non-static expression. Expression may contain volatile references
5562         in the presence of renamings.
5564 2010-08-10  Vincent Celier  <celier@adacore.com>
5566         * prj-proc.adb (Get_Attribute_Index): If Index is All_Other_Names,
5567         returns Index.
5568         * prj-strt.adb (Attribute_Reference): Recognize 'others' as a valid
5569         index for an associative array where it is allowed.
5571 2010-08-10  Thomas Quinot  <quinot@adacore.com>
5573         * exp_attr.adb: Add comments.
5575 2010-08-10  Jerome Lambourg  <lambourg@adacore.com>
5577         * adaint.c (__gnat_get_file_names_case_sensitive): return 0 on darwin.
5579 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
5581         * gcc-interface/utils.c (gnat_poplevel): Use blocks_nreverse.
5583 2010-08-09  Eric Botcazou  <ebotcazou@adacore.com>
5585         * gcc-interface/utils.c (build_vms_descriptor32): Fix formatting.
5586         (build_vms_descriptor): Likewise.
5588 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
5590         * gcc-interface/utils.c (make_descriptor_field): Add tree parameter.
5591         (build_vms_descriptor32): Adjust calls to it for new parameter.
5592         (build_vms_descriptor): Likewise.
5594 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
5596         * gcc-interface/decl.c (rec_variant):  Declare.  Declare a VEC of it.
5597         (build_variant_list): Take and return a VEC instead of a tree.
5598         (create_variant_part_from): Take a VEC instead of a tree for
5599         variant_list.  Adjust accordingly.
5600         (gnat_to_gnu_entity): Adjust for changes to previous functions.
5602 2010-08-07  Nathan Froyd  <froydnj@codesourcery.com>
5604         * gcc-interface/decl.c (gnat_to_gnu_entity): Use XALLOCAVEC instead
5605         of alloca.
5606         (components_to_record): Likewise.
5607         * gcc-interface/trans.c (gnat_to_gnu): Likewise.
5608         * gcc-interface/utils.c (max_size): Likewise.
5609         (build_vms_descriptor32): Likewise.
5610         (build_vms_descriptor): Likewise.
5612 2010-08-07  Nathan Froyd  <froydnj@codesourcery.com>
5614         * gcc-interface/decl.c (subst_pair): Declare.  Declare a VEC of it.
5615         (build_subst_list): Return a VEC instead of a tree.
5616         (build_variant_list): Take a VEC for subst_list.  Adjust
5617         accordingly.
5618         (create_field_decl_from): Likewise.
5619         (create_variant_part_from): Likewise.
5620         (copy_and_substitute_in_size): Likewise.
5621         (gnat_to_gnu_entity): Adjust for new interface to build_subst_list.
5622         Free the built vector.
5624 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
5626         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not build an
5627         allocator for large imported objects.
5629 2010-08-05  Robert Dewar  <dewar@adacore.com>
5631         * gnat1drv.adb: Minor reformatting.
5633 2010-08-05  Ed Schonberg  <schonberg@adacore.com>
5635         * sem.adb (Do_Unit_And_Dependents): If some parent unit is an
5636         instantiation, process its body before the spec of the main unit,
5637         because it may contain subprograms invoked in the spec of main.
5638         * einfo.ads: Add documention of delayed freeze.
5640 2010-08-05  Vincent Celier  <celier@adacore.com>
5642         * prj-nmsc.adb (Process_Linker): Take into account new values for
5643         attribute Response_File_Format.
5644         * prj.ads (Response_File_Format): New enumeration values GCC_GNU,
5645         GCC_Object_List and GCC_Option_List.
5647 2010-08-05  Ed Schonberg  <schonberg@adacore.com>
5649         * exp_ch4.adb (Expand_N_Selected_Component): Do not constant-fold a
5650         selected component that denotes a discriminant if it is the
5651         discriminant of a component of an unconstrained record type.
5653 2010-08-05  Ed Schonberg  <schonberg@adacore.com>
5655         * exp_util.adb (Insert_Actions): If the action appears within a
5656         conditional expression that is already analyzed, insert action further
5657         out.
5659 2010-08-05  Robert Dewar  <dewar@adacore.com>
5661         * exp_ch4.adb: Minor reformatting.
5663 2010-08-05  Thomas Quinot  <quinot@adacore.com>
5665         * exp_ch4.adb: Minor reformatting
5666         * gnat1drv.adb: Minor reformatting.
5667         Minor code reorganization (use Nkind_In).
5669 2010-08-05  Ed Schonberg  <schonberg@adacore.com>
5671         * exp_util.ads, exp_util.adb (Needs_Constant_Address): New predicate to
5672         determine whether the expression in an address clause for an
5673         initialized object must be constant. Code moved from freeze.adb.
5674         (Remove_Side_Effects): When the temporary is initialized with a
5675         reference, indicate that the temporary is a constant as done in all
5676         other cases.
5677         * freeze.adb (Check_Address_Clause): use Needs_Constant_Address.
5678         * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
5679         If object does not need a constant address, remove side effects from
5680         address expression, so it is elaborated at the point of the address
5681         clause and not at the freeze point of the object, so that elaboration
5682         order is respected.
5684 2010-08-05  Vincent Celier  <celier@adacore.com>
5686         * prj.adb (Is_Compilable): Return False for header files of non Ada
5687         languages.
5689 2010-08-05  Emmanuel Briot  <briot@adacore.com>
5691         * prj-nmsc.adb: The Missing_Source_Files flag also considers a missing
5692         exec directory as a warning rather than an error.
5694 2010-08-05  Thomas Quinot  <quinot@adacore.com>
5696         * sem_ch6.adb, gnat1drv.adb, exp_ch6.adb, sem_eval.adb: Minor
5697         reformatting.
5699 2010-08-05  Steve Baird  <baird@adacore.com>
5701         * exp_util.adb (Remove_Side_Effects): An access value which designates
5702         a volatile object of a nonvolatile type is prohibited.
5703         Do not call Make_Reference to construct a reference to such an object.
5705 2010-08-05  Robert Dewar  <dewar@adacore.com>
5707         * a-suezse.adb, a-suezse.ads, a-suezen.adb, a-suezen.ads: Removed.
5708         * a-suewse.adb, a-suewse.ads, a-suesen.adb, a-suesen.ads,
5709         a-suewen.adb, a-suewen.ads: New files.
5710         * Makefile.rtl, impunit.adb: Update implementation of Ada 2012 string
5711         encoding packages.
5712         * sem_elab.adb: Minor reformatting.
5714 2010-08-05  Arnaud Charlet  <charlet@adacore.com>
5716         * sem_ch8.adb (Use_One_Type): Protect against empty scopes.
5717         * exp_util.adb (Component_May_Be_Bit_Aligned): Prevent assert failure
5718         in case of null Comp.
5720 2010-08-05  Robert Dewar  <dewar@adacore.com>
5722         * errout.adb, a-suewen.adb, a-suezen.adb: Minor reformatting.
5724 2010-08-05  Gary Dismukes  <dismukes@adacore.com>
5726         * sem_ch4.adb (Analyze_Allocator): Flag errors on allocators of a
5727         nested access type whose designated type has tasks or is a protected
5728         object when the restrictions No_Task_Hierarchy or
5729         No_Local_Protected_Objects apply. Add ??? comment.
5730         * sem_ch9.adb (Analyze_Protected_Type): Give a warning when a protected
5731         type is not a library-level type and No_Local_Protected_Objects applies.
5732         (Analyze_Task_Type): Give a warning when a task type is not a
5733         library-level type and No_Task_Hierarchy applies.
5735 2010-08-05  Arnaud Charlet  <charlet@adacore.com>
5737         * sem.adb: Minor reformatting
5738         * sem_ch4.adb (Analyze_Reference): Disable error message in CodePeer
5739         mode, not useful.
5741 2010-08-04  Eric Botcazou  <ebotcazou@adacore.com>
5743         * gcc-interface/decl.c: Do not undefine IN_GCC_FRONTEND and do not
5744         include expr.h.
5745         (gnat_to_gnu_entity) <object>: Force address of -1 at the tree level
5746         for the debug-only entity.
5747         * gcc-interface/Make-lang.in (ada/decl.o): Adjust dependencies.
5749 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
5751         * gcc-interface/lang-specs.h: Don't pass -a options.
5753 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
5755         * gcc-interface/misc.c (gnat_init_options): Ignore erroneous
5756         options.  Check canonical_option_num_elements on options copied.
5758 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
5760         * gcc-interface/misc.c (gnat_handle_option): Update prototype and
5761         return value type.  Don't check for missing arguments here.
5763 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
5765         * gcc-interface/misc.c (gnat_option_lang_mask): New.
5766         (gnat_init_options): Update prototype.  Reconstruct argv array
5767         from decoded options.
5769 2010-07-23  Eric Botcazou  <ebotcazou@adacore.com>
5771         * gcc-interface/utils.c (update_pointer_to): In the unconstrained array
5772         case, merge the alias set of the old pointer type.
5774 2010-07-23  Eric Botcazou  <ebotcazou@adacore.com>
5776         * gcc-interface/utils.c (gnat_types_compatible_p): Revert latest change
5777         and recurse only for multidimensional array types instead.
5779 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
5781         PR ada/44892
5782         * gcc-interface/utils.c (convert): Fix thinko in test.
5783         (unchecked_convert): When converting from a scalar type to a type with
5784         a different size, pad to have the same size on both sides.
5786 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
5788         * gcc-interface/utils.c (gnat_types_compatible_p): Don't require strict
5789         equality for the component type of array types.
5791 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
5793         * gcc-interface/decl.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
5794         * gcc-interface/trans.c: Likewise.
5795         * gcc-interface/utils.c: Likewise.
5796         * gcc-interface/utils2.c: Likewise.
5798 2010-07-13  Laurent GUERBY  <laurent@guerby.net>
5800         PR bootstrap/44458
5801         * gcc-interface/targtyps.c: Include tm_p.h.
5802         * gcc-interface/Make-lang.in: Update dependencies.
5804 2010-07-09  Eric Botcazou  <ebotcazou@adacore.com>
5806         * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Deal with
5807         CALL_EXPR.
5809 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5811         * gcc-interface/utils.c: Include diagnostic-core.h in every file
5812         that includes toplev.h.
5814 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
5816         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>:
5817         Branch to common code handling the alignment of discrete types.
5818         <E_Signed_Integer_Type>: Likewise.
5819         <E_Modular_Integer_Type>: Likewise.
5821 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
5823         * gcc-interface/misc.c (gnat_handle_option): Do not populate gnat_argv.
5824         (gnat_handle_option): Allocate only one element for gnat_argv.
5825         (gnat_init): Do not populate gnat_argv.
5827 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5829         * gcc-interface/trans.c: Do not include tree-flow.h.
5830         * gcc-interface/Make-lang.in: Adjust dependencies.
5832 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
5834         * gcc-interface/gigi.h (gnat_build_constructor): Take a VEC instead
5835         of a TREE_LIST.  Update comment.
5836         * gcc-interface/trans.c (gigi): Build a VEC instead of a TREE_LIST.
5837         Adjust call to gnat_build_constructor.
5838         (Attribute_to_gnu): Likewise.
5839         (gnat_to_gnu): Likewise.
5840         (pos_to_constructor): Likewise.
5841         (extract_values): Likewise.
5842         * gcc-interface/utils.c (build_template): Likewise.
5843         (convert_vms_descriptor64): Likewise.
5844         (convert_vms_descriptor32): Likewise.
5845         (convert_to_fat_pointer): Likewise.
5846         (convert): Likewise.
5847         (unchecked_convert): Likewise.
5848         * gcc-interface/decl.c (gnat_to_gnu_entity): Likewise.
5849         * gcc-interface/utils2.c (build_allocator): Likewise.
5850         (fill_vms_descriptor): Likewise.
5851         (gnat_build_constructor): Take a VEC instead of a TREE_LIST.
5852         (compare_elmt_bitpos): Adjust for parameters being constructor_elts
5853         instead of TREE_LISTs.
5855 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
5857         * gcc-interface/misc.c: Do not include except.h.
5858         * gcc-interface/Make-lang.in: Update dependencies.
5860 2010-06-27  Eric Botcazou  <ebotcazou@adacore.com>
5862         * gcc-interface/trans.c: Include tree-flow.h.
5863         (gnu_switch_label_stack): Delete.
5864         (Case_Statement_to_gnu): Do not emit the goto at the end of a case if
5865         its associated block cannot fall through.  Do not emit the final label
5866         if no cases branch to it.
5867         * gcc-interface/Make-lang.in (ada/trans.o): Add $(TREE_FLOW_H).
5869 2010-06-23  Thomas Quinot  <quinot@adacore.com>
5871         * exp_attr.adb (Expand_Access_To_Protected_Op): When rewriting a
5872         reference to a protected subprogram outside of the protected's scope,
5873         ensure the corresponding external subprogram is frozen before the
5874         reference.
5876 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
5878         * sem_prag.adb: Fix typo in error message.
5879         * sem.adb: Refine previous change.
5881 2010-06-23  Robert Dewar  <dewar@adacore.com>
5883         * impunit.adb, a-suewen.adb, a-suewen.ads, a-suenco.adb, a-suenco.ads,
5884         a-suezen.adb, a-suezen.ads, a-stuten.adb, a-stuten.ads, Makefile.rtl:
5885         Implement Ada 2012 string encoding packages.
5887 2010-06-23  Arnaud Charlet  <charlet@adacore.com>
5889         * a-stwiun-shared.adb, a-stwiun-shared.ads, a-stzunb-shared.adb,
5890         a-stzunb-shared.ads, a-swunau-shared.adb, a-swuwti-shared.adb,
5891         a-szunau-shared.adb, a-szuzti-shared.adb, a-strunb-shared.adb,
5892         a-strunb-shared.ads, a-stunau-shared.adb, a-suteio-shared.adb: New
5893         files.
5894         * gcc-interface/Makefile.in: Enable use of above files.
5896 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
5898         * sem_ch13.adb (Check_Constant_Address_Clauses): Do not check legality
5899         of address clauses if if Ignore_Rep_Clauses is active.
5900         * freeze.adb (Check_Address_Clause): If Ignore_Rep_Clauses is active,
5901         remove address clause from tree so that it does not reach the backend.
5903 2010-06-23  Arnaud Charlet  <charlet@adacore.com>
5905         * exp_attr.adb (Expand_N_Attribute_Reference [Attribute_Valid]): Do not
5906         expand 'Valid from user code in CodePeer mode, will be handled by the
5907         back-end directly.
5909 2010-06-23  Bob Duff  <duff@adacore.com>
5911         * g-comlin.ads: Minor comment improvements.
5913 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
5915         * sem_res.adb (Uses_SS): The expression that initializes a controlled
5916         component of a record type may be a user-defined operator that is
5917         rewritten as a function call.
5919 2010-06-23  Bob Duff  <duff@adacore.com>
5921         * g-comlin.ads, sem_ch13.adb: Minor comment fix.
5923 2010-06-23  Eric Botcazou  <ebotcazou@adacore.com>
5925         * exp_ch11.adb (Expand_Local_Exception_Handlers): Propagate the end
5926         label to the new sequence of statements.  Set the sloc of the raise
5927         statement onto the new goto statements.
5929 2010-06-23  Robert Dewar  <dewar@adacore.com>
5931         * a-stuten.ads, a-stuten.adb: New files.
5932         * impunit.adb: Add engtry for Ada.Strings.UTF_Encoding (a-stuten.ads)
5933         * Makefile.rtl: Add entry for a-stuten (Ada.Strings.UTF_Encoding)
5935 2010-06-23  Robert Dewar  <dewar@adacore.com>
5937         * gnat_ugn.texi: Add documentation of -gnat12 switch
5938         Add documentation of -gnatX switch.
5940 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
5942         * inline.ads: Include the current Ada_Version in the info for pending
5943         instance bodies, so that declaration and body are compiled with the
5944         same Ada_Version.
5945         * inline.adb: Move with_clause for Opt to spec.
5946         * sem_ch12.adb (Analyze_Package_Instantiation,
5947         Analyze_Subprogram_Instantiation): Save current Ada_Version in
5948         Pending_Instantiation information.
5949         (Instantiate_Package_Body, Instantiate_Subprogram_Body,
5950         Inline_Package_Body): Use the Ada_Version present in the body
5951         information.
5953 2010-06-23  Robert Dewar  <dewar@adacore.com>
5955         * usage.adb: Add documentation for -gnat12 switch.
5956         * errout.ads: Add VMS alias entry for -gnat12 switch
5957         * gnat_rm.texi: Add documentation for pragma Ada_12 and Ada_2012
5958         Add documentation for pragma Extensions_Allowed.
5959         * opt.ads: Add entry for Ada 2012 mode.
5960         * sem_ch4.adb, par-ch3.adb, par-ch4.adb: Use new Ada 2012 mode for 2012
5961         features.
5962         * sem_prag.adb, par-prag.adb: Add processing for pragma Ada_12 and
5963         Ada_2012.
5964         * sem_ch13.adb: Add handling for Ada 2012 mode.
5965         * snames.ads-tmpl: Add entries for pragma Ada_2012 and Ada_12.
5966         * switch-c.adb: Add handling for -gnat12 switch.
5967         Implement -gnat2005 and -gnat2012.
5968         * usage.adb: Add documentation for -gnat12 switch.
5969         * vms_data.ads: Add /12 switch for Ada 2012 mode.
5971 2010-06-23  Arnaud Charlet  <charlet@adacore.com>
5973         * exp_ch4.adb (Expand_N_Allocator): Fix potential crash when using
5974         No_Task_Hierarchy restriction. Add comment.
5975         * exp_ch9.adb, exp_ch3.adb: Update comments.
5977 2010-06-23  Robert Dewar  <dewar@adacore.com>
5979         * sem_ch5.adb (Process_Bounds): Remove some junk initializations.
5980         * sem_res.adb: Add comments.
5981         * sem_util.adb: Minor reformatting. Add comments.
5982         Change increment on Actuals_In_Call table.
5983         * opt.ads: Minor: add 'constant'.
5985 2010-06-23  Javier Miranda  <miranda@adacore.com>
5987         * exp_disp.adb (Make_DT): Initialize the Size_Func component of the
5988         TSD to Null_Address if No_Dispatching_Calls is active.
5990 2010-06-23  Vincent Celier  <celier@adacore.com>
5992         * a-comlin.ads: Indicate that use of this package is not supported
5993         during the elaboration of an auto-initialized Stand-Alone Library.
5995 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
5997         * exp_util.adb (Is_Possibly_Misaligned_Object): Do not rely on an
5998         alignment clause on a record type to determine if a component may be
5999         misaligned. The decision must be taken in the back-end where target
6000         alignment information is known.
6002 2010-06-23  Arnaud Charlet  <charlet@adacore.com>
6004         * gnat1drv.adb (Adjust_Global_Switches): Enable some restrictions
6005         systematically in CodePeer mode to simplify generated code.
6006         * restrict.adb (Check_Restriction): Do nothing in CodePeer mode.
6007         * exp_ch4.adb (Expand_N_Allocator): Generate proper code when
6008         No_Task_Hierarchy is set instead of crasshing.
6010 2010-06-23  Thomas Quinot  <quinot@adacore.com>
6012         * sem_util.adb: Minor code cleanup: test for proper entity instead of
6013         testing just Chars attribute when checking whether a given scope is
6014         System.
6015         * exp_ch4.adb, einfo.adb: Minor reformatting.
6017 2010-06-23  Vincent Celier  <celier@adacore.com>
6019         PR ada/44633
6020         * switch-m.adb (Normalize_Compiler_Switches): Take into account
6021         switches -gnatB, -gnatD=nn, -gnatG (incuding -gnatG=nn), -gnatI,
6022         -gnatl=file, -gnatS, -gnatjnn, -gnateI=nn and -gnatWx.
6024 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
6026         * sem_res.adb (Resolve_Membership_Op): If left operand is a mixed mode
6027         operation with a universal real operand, and the right operand is a
6028         range with universal bounds, find unique fixed point that may be
6029         candidate, and warn appropriately.
6031 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
6033         * sem_res.adb (Resolve_Intrinsic_Operator): Add guards to handle
6034         properly the rare cases where VMS operators are visible through
6035         Extend_System, but the default System is being used and Address is a
6036         private type.
6037         * sem_util.adb: Widen predicate Is_VMS_Operator.
6039 2010-06-23  Vincent Celier  <celier@adacore.com>
6041         * switch-m.adb (Normalize_Compiler_Switches): Take into account -gnatC
6042         and -gnateS.
6044 2010-06-23  Olivier Hainque  <hainque@adacore.com>
6046         * einfo.adb (Has_Foreign_Convention): Consider Intrinsic with
6047         Interface_Name as foreign. These are GCC builtin imports for
6048         which Ada specific processing doesn't apply.
6050 2010-06-23  Thomas Quinot  <quinot@adacore.com>
6052         * sem_ch12.adb: Minor reformatting.
6054 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
6056         * sem_util.adb (Is_VMS_Operator): Use scope of system extension to
6057         determine whether an intrinsic subprogram is VMS specific.
6059 2010-06-23  Hristian Kirtchev  <kirtchev@adacore.com>
6061         * treepr.adb (Print_Entity_Info): Output the contents of Field28 if it
6062         is present in the entity.
6064 2010-06-23  Arnaud Charlet  <charlet@adacore.com>
6066         * xr_tabls.adb, xref_lib.adb: Update to latest lib-xref.ads
6067         Fix handling of parameters.
6068         Add protection against unexpected cases.
6069         * sem_ch6.adb (Create_Extra_Formals): Use suffix "L" instead of "A" for
6070         access level, since "A" suffix is already used elsewhere. Similarly,
6071         use suffix "O" instead of "C" for 'Constrained since "C" suffix is used
6072         for xxx'Class.
6074 2010-06-23  Thomas Quinot  <quinot@adacore.com>
6076         * sem_util.adb, sem_util.ads: Minor reformatting.
6078 2010-06-23  Vincent Celier  <celier@adacore.com>
6080         * prj.ads (Gprclean_Flags.Missing_Source_Files): Set to Error to keep
6081         the previous behavior of gprclean when there are missing files.
6083 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
6085         * sem_ch12.adb (Load_Body_Of_Generic): In CodePeer mode, a missing
6086         generic body is not a fatal error.
6087         (Mark_Context): Handle properly names of child units.
6088         * sem.adb (Walk_Library_Items.Do_Action): Remove assertion on
6089         instantiations.
6091 2010-06-23  Vincent Celier  <celier@adacore.com>
6093         * ali.adb (Scan_ALI): When ignoring R lines, do not skip the next
6094         non-empty line.
6096 2010-06-23  Bob Duff  <duff@adacore.com>
6098         * g-pehage.ads, g-pehage.adb: Switch default optimization mode to
6099         Memory_Space, because CPU_Time doesn't seem to provide any significant
6100         speed advantage in practice. Cleanup: Get rid of constant
6101         Default_Optimization; doesn't seem to add anything. Use case
6102         statements instead of if statements; seems cleaner.
6104 2010-06-23  Olivier Hainque  <hainque@adacore.com>
6106         * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Procedure>: Use
6107         Wshadow instead of Wextra to guard warning on absence of internal
6108         builtin decl for an import.  Fix use of quote in warning text.
6109         (intrin_arglists_compatible_p): Remove processing of integer trailing
6110         args on the Ada side.  Fix use of literal > in warning text.
6111         (intrin_return_compatible_p): Never warn on "function imported as
6112         procedure".  Defer the void/void case to the common type compatibility
6113         check.
6114         (gnat_to_gnu_param): Use void_ptr GCC type for System.Address argument
6115         of GCC builtin imports.
6117 2010-06-23  Olivier Hainque  <hainque@adacore.com>
6119         * gcc-interface/decl.c (intrin_types_incompatible_p): New function,
6120         helper for ...
6121         (intrin_arglists_compatible_p, intrin_return_compatible_p): New
6122         functions, helpers for ...
6123         (intrin_profiles_compatible_p): New function, replacement for ...
6124         (compatible_signatures_p): Removed.
6125         (gnat_to_gnu_entity) <case E_Procedure>: If -Wextra, warn on
6126         attempt to bind an unregistered builtin function.  When we have
6127         one, use it and warn on profile incompatibilities.
6129 2010-06-23  Arnaud Charlet  <charlet@adacore.com>
6131         * gcc-interface/Make-lang.in: Update dependencies.
6133 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
6135         * sem_util.adb (Mark_Coextensions): If the expression in the allocator
6136         for a coextension in an object declaration is a concatenation, treat
6137         coextension as dynamic.
6139 2010-06-23  Javier Miranda  <miranda@adacore.com>
6141         * sem_ch3.adb (Add_Internal_Interface_Entities): Ensure that the
6142         internal entities are added to the scope of the tagged type.
6143         (Derive_Subprograms): Do not stop derivation when we find the first
6144         internal entity that has attribute Interface_Alias. After the change
6145         done to Override_Dispatching_Operations it is no longer true that
6146         these primirives are always located at the end of the list of
6147         primitives.
6148         * einfo.ads (Primitive_Operations): Add documentation.
6149         * exp_disp.adb (Write_DT): Improve output adding to the name of the
6150         primitive a prefix indicating its corresponding tagged type.
6151         * sem_disp.adb (Override_Dispatching_Operations): If the overridden
6152         entity covers the primitive of an interface that is not an ancestor of
6153         this tagged type then the new primitive is added at the end of the list
6154         of primitives.  Required to fulfill the C++ ABI.
6156 2010-06-23  Javier Miranda  <miranda@adacore.com>
6158         * atree.ads (Set_Reporting_Proc): New subprogram.
6159         * atree.adb: Remove dependency on packages Opt and SCIL_LL.
6160         (Allocate_Initialize_Node, Replace, Rewrite): Replace direct calls
6161         to routines of package Scil_ll by indirect call to the registered
6162         subprogram.
6163         (Set_Reporting_Proc): New subprogram. Used to register a subprogram
6164         that is invoked when a node is allocated, replaced or rewritten.
6165         * scil_ll.adb (Copy_SCIL_Node): New routine that takes care of copying
6166         the SCIL node. Used as argument for Set_Reporting_Proc.
6167         (Initialize): Register Copy_SCIL_Node as the reporting routine that
6168         is invoked by atree.
6170 2010-06-23  Thomas Quinot  <quinot@adacore.com>
6172         * sem_ch3.ads: Minor reformatting.
6174 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
6176         * sem_ch12.adb (Analyze_Package_Instantiation): In CodePeer mode,
6177         always analyze the generic body and instance, because it may be needed
6178         downstream.
6179         (Mark_Context): Prepend the with clauses for needed generic units, so
6180         they appear in a better order for CodePeer.
6181         * sem_util.adb, sem_util.ads: Prototype code for AI05-0144.
6183 2010-06-23  Emmanuel Briot  <briot@adacore.com>
6185         * prj.ads, prj-nmsc.adb (Error_Or_Warning): New subprogram.
6187 2010-06-23  Robert Dewar  <dewar@adacore.com>
6189         * g-pehage.adb, exp_ch13.adb: Minor reformatting.
6191 2010-06-23  Thomas Quinot  <quinot@adacore.com>
6193         * a-tags.ads: Fix description of TSD structure.
6195 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
6197         * sem_ch12.adb (Mark_Context): When indicating that the body of a
6198         generic unit is needed prior to the unit containing an instantiation,
6199         search recursively the context of the generic to add other generic
6200         bodies that may be instantiated indirectly through the current instance.
6202 2010-06-23  Robert Dewar  <dewar@adacore.com>
6204         * freeze.adb: Minor reformatting.
6206 2010-06-23  Bob Duff  <duff@adacore.com>
6208         * g-pehage.adb (Trim_Trailing_Nuls): Fix the code to match the comment.
6210 2010-06-23  Vincent Celier  <celier@adacore.com>
6212         * make.adb (Compile_Sources): Complete previous change.
6214 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
6216         * sem_ch6.adb (Add_Extra_Formal): Use suffix "C" in the name of the
6217         Constrained extra formal.
6219 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
6221         * exp_ch13.adb (Expand_Freeze_Actions): If validity checks and
6222         Initialize_Scalars are enabled, compile the generated equality function
6223         for a composite type with full checks enabled, so that validity checks
6224         are performed on individual components.
6226 2010-06-23  Emmanuel Briot  <briot@adacore.com>
6228         * prj.adb, prj.ads, prj-nmsc.adb (Processing_Flags): New flag
6229         Missing_Source_Files.
6231 2010-06-23  Robert Dewar  <dewar@adacore.com>
6233         * exp_ch3.adb, exp_util.adb: Minor reformatting.
6235 2010-06-23  Jose Ruiz  <ruiz@adacore.com>
6237         * a-reatim.adb, a-retide.adb: Move the initialization of the tasking
6238         run time from Ada.Real_Time.Delays to Ada.Real_Time. This way, calls to
6239         Clock (without delays) use a run time which is properly initialized.
6241 2010-06-23  Vincent Celier  <celier@adacore.com>
6243         * make.adb: Do not set Check_Readonly_Files when setting Must_Compile,
6244         when -f -u and a main is specified on the command line. However,
6245         attempt to compile even when the ALI file is read-only when
6246         Must_Compile is True.
6248 2010-06-23  Thomas Quinot  <quinot@adacore.com>
6250         * checks.adb, g-pehage.adb, cstand.adb: Minor code factorization.
6252 2010-06-23  Javier Miranda  <miranda@adacore.com>
6254         * sem_ch3.adb (Add_Internal_Interface_Entities): Generate internal
6255         entities for parent types that are interfaces. Needed in generics to
6256         handle formals that implement interfaces.
6257         (Derive_Subprograms): Add assertion for derivation of tagged types that
6258         do not cover interfaces. For generics, complete code that handles
6259         derivation of type that covers interfaces because the previous
6260         condition was weak (it required only name consistency; arguments were
6261         not checked). Add new code to locate primitives covering interfaces
6262         defined in generic units or instantiatons.
6263         * sem_util.adb (Has_Interfaces): Add missing support for derived types.
6264         * sem_ch6.adb (Check_Overriding_Indicator): Minor code cleanups.
6265         * exp_disp.adb (Make_Select_Specific_Data_Table): Skip primitives of
6266         interfaces that are parents of the type because they share the primary
6267         dispatch table.
6268         (Register_Primitive): Do not register primitives of interfaces that
6269         are parents of the type.
6270         * sem_ch13.adb (Analyze_Freeze_Entity): Add documentation.
6271         * exp_cg.adb (Write_Type_Info): When displaying overriding of interface
6272         primitives skip primitives of interfaces that are parents of the type.
6274 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
6276         * sem_attr.adb (Eval_Attribute): If the prefix is an array, the
6277         attribute cannot be constant-folded if an index type is a formal type,
6278         or is derived from one.
6279         * checks.adb (Determine_Range): ditto.
6281 2010-06-23  Arnaud Charlet  <charlet@adacore.com>
6283         * gnat_ugn.texi, gnatxref.adb: Add support for --ext switch.
6285 2010-06-23  Bob Duff  <duff@adacore.com>
6287         * g-pehage.ads, g-pehage.adb (Put): Fix off-by-one bug.
6288         (Insert): Disallow nul characters.
6289         (misc output routines): Assert no nul characters.
6291 2010-06-23  Ed Schonberg  <schonberg@adacore.com>
6293         * exp_ch4.adb: Use predefined unsigned type in all cases.
6295 2010-06-23  Bob Duff  <duff@adacore.com>
6297         * s-rannum.adb (Reset): Avoid overflow in calculation of Initiator.
6298         * g-pehage.ads: Minor comment fixes.
6299         * g-pehage.adb: Minor: Add some additional debugging printouts under
6300         Verbose flag.
6302 2010-06-23  Robert Dewar  <dewar@adacore.com>
6304         * binde.adb (Better_Choice): Always prefer Pure/Preelab.
6305         (Worse_Choice): Always prefer Pure/Preelab.
6307 2010-06-23  Vincent Celier  <celier@adacore.com>
6309         * a-reatim.adb: Call System.OS_Primitives.Initialize during elaboration
6311 2010-06-23  Robert Dewar  <dewar@adacore.com>
6313         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Properly handle
6314         checking returns in generic case.
6315         (Check_Missing_Return): New procedure.
6317 2010-06-23  Robert Dewar  <dewar@adacore.com>
6319         * bindgen.adb, switch-b.adb: Minor reformatting.
6321 2010-06-23  Javier Miranda  <miranda@adacore.com>
6323         * frontend.adb (Frontend): Add call to initialize the new package
6324         SCIL_LL.
6325         * exp_ch7.adb (Wrap_Transient_Expression): Remove call to
6326         Adjust_SCIL_Node.
6327         (Wrap_Transient_Statement): Remove call to Adjust_SCIL_Node.
6328         * sem_ch5.adb (Analyze_Iteration_Scheme.Process_Bounds): Remove call to
6329         Adjust_SCIL_Node.
6330         * exp_util.adb (Insert_Actions): Remove code for
6331         N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
6332         (Remove_Side_Effects): Remove calls to Adjust_SCIL_Node.
6333         * sinfo.adb (SCIL_Entity, SCIL_Tag_Value): Remove checks on
6334         N_SCIL_Tag_Init and N_SCIL_Dispatch_Table_Object_Init in the assertion.
6335         (SCIL_Related_Node, Set_SCIL_Related_Node): Removed.
6336         * sinfo.ads (SCIL_Related_Node): Field removed.
6337         (N_SCIL_Dispatch_Table_Object_Init): Node removed.
6338         (N_SCIL_Tag_Init): Node removed.
6339         * sem_scil.ads, sem_scil.adb (Adjust_SCIL_Node): Removed.
6340         (Check_SCIL_Node): New implementation.
6341         (Find_SCIL_Node): Removed.
6342         * sem.adb (Analyze): Remove management of
6343         N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
6344         * sem_util.adb (Insert_Explicit_Dereference): Remove call to
6345         Adjust_SCIL_Node.
6346         * exp_ch4.adb (Expand_N_In): Code cleanup: remove call to
6347         Set_SCIL_Related_Node and avoid adding the SCIL node before the
6348         referenced node using Insert_Action because this is not longer
6349         required.
6350         (Expand_Short_Circuit_Operator): Remove call to SCIL node.
6351         * exp_ch6.adb (Expand_Call): Remove call to Adjust_SCIL_Node.
6352         * sem_ch4.adb (Analyze_Type_Conversion): Remove call to
6353         Adjust_SCIL_Node.
6354         * exp_disp.adb (Expand_Dispatching_Call): Minor code reorganization
6355         because we no longer require to generate the SCIL node before the call.
6356         (Make_DT): Remove generation of SCI_Dispatch_Table_Object_Init node.
6357         Remove calls to Set_SCIL_Related_Node and avoid adding the SCIL
6358         nodes before the referenced node using Insert_Action because this
6359         is not longer required.
6360         * atree.adb (Allocate_Initialize_Node, Replace, Rewrite): Add call to
6361         update the SCIL_Node field.
6362         * sprint.adb (Sprint_Node_Actual): Remove code for
6363         N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
6364         * treepr.adb (Print_Node): Print the SCIL node field (if available).
6365         * exp_ch3.adb (Build_Init_Procedure): Remove generation of
6366         SCIL_Tag_Init nodes.
6367         * scil_ll.ads, scil_ll.adb: New files.
6368         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
6369         dependencies.
6371 2010-06-23  Robert Dewar  <dewar@adacore.com>
6373         * sem_ch6.adb: Minor reformatting.
6375 2010-06-23  Doug Rupp  <rupp@adacore.com>
6377         * bindusg.adb (Display): Write -Hnn line.
6378         * bindgen.adb (Gen_Adainit_Ada): Write Heap_Size to binder file as 
6379         necessary.
6380         * init.c (__gl_heap_size): Rename from __gl_no_malloc_64 and change
6381         valid values to 32 and 64.
6382         (GNAT$NO_MALLOC_64): Recognize TRUE, 1, FALSE, and 0 in addition to
6383         ENABLE, DISABLE as valid settings.
6384         * switch-b.adb (Scan_Binder_Switches): Process -Hnn switch.
6385         * opt.ads (Heap_Size): New global variable.
6386         * gcc-interface/utils2.c (maybe_wrap_malloc): Remove mostly redundant 
6387         TARGET_MALLOC64 check. Fix comment.
6389 2010-06-23  Robert Dewar  <dewar@adacore.com>
6391         * sem_ch6.adb, exp_ch4.adb, s-rannum.ads, sem.adb, sem_ch12.adb: Minor
6392         reformatting.  Add comments.
6393         * errout.adb (Finalize): Properly adjust warning count when deleting
6394         continuations.
6396 2010-06-22  Robert Dewar  <dewar@adacore.com>
6398         * errout.adb (Finalize): Set Prev pointers.
6399         (Finalize): Delete continuations for deletion by warnings off(str).
6400         * erroutc.ads: Add Prev pointer to error message structure.
6402 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
6404         * sem.adb (Do_Unit_And_Dependents): If the spec of the main unit is a
6405         child unit, examine context of parent units to locate instantiated
6406         generics whose bodies may be needed. 
6407         * sem_ch12.adb: (Mark_Context): if the enclosing unit does not have a
6408         with_clause for the instantiated generic, examine the context of its
6409         parents, to set Withed_Body flag, so that it can be visited earlier.
6410         * exp_ch4.adb (Expand_N_Op_Not): If this is a VMS operator applied to
6411         an unsigned type, use a type of the proper size for the intermediate
6412         value, to prevent alignment problems on unchecked conversion.
6414 2010-06-22  Geert Bosch  <bosch@adacore.com>
6416         * s-rannum.ads Change Generator type to be self-referential to allow
6417         Random to update its argument. Use "in" mode for the generator in the
6418         Reset procedures to allow them to be called from the Ada.Numerics
6419         packages without tricks.
6420         * s-rannum.adb: Use the self-referencing argument to get write access
6421         to the internal state of the random generator.
6422         * a-nudira.ads: Make Generator a derived type of
6423         System.Random_Numbers.Generator.
6424         * a-nudira.adb: Remove use of 'Unrestricted_Access.
6425         Put subprograms in alpha order and add headers.
6426         * g-mbdira.ads: Change Generator type to be self-referential.
6427         * g-mbdira.adb: Remove use of 'Unrestricted_Access.
6429 2010-06-22  Robert Dewar  <dewar@adacore.com>
6431         * freeze.adb: Minor reformatting
6432         Minor code reorganization (use Nkind_In and Ekind_In).
6434 2010-06-22  Bob Duff  <duff@adacore.com>
6436         * gnat1drv.adb (Gnat1drv): Remove the messages that recommend using 
6437         -gnatc when a file is compiled that we cannot generate code for, not
6438         helpful and confusing.
6440 2010-06-22  Vincent Celier  <celier@adacore.com>
6442         * switch-m.adb (Normalize_Compiler_Switches): Process correctly
6443         switches -gnatknn.
6445 2010-06-22  Paul Hilfinger  <hilfinger@adacore.com>
6447         * s-rannum.adb: Replace constants with commented symbols.
6448         * s-rannum.ads: Explain significance of the initial value of the data
6449         structure.
6451 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
6453         * a-ngcoty.adb: Clarify comment.
6455 2010-06-22  Gary Dismukes  <dismukes@adacore.com>
6457         * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Return without
6458         expansion for indexing packed arrays with small power-of-2 component
6459         sizes when the target is AAMP.
6460         (Expand_Packed_Element_Reference): Return without expansion for
6461         indexing packed arrays with small power-of-2 component sizes when the
6462         target is AAMP.
6464 2010-06-22  Geert Bosch  <bosch@adacore.com>
6466         * exp_ch4.adb (Expand_N_In): Do not substitute a valid check for X in
6467         Float'Range.
6469 2010-06-22  Robert Dewar  <dewar@adacore.com>
6471         * g-mbdira.adb, g-mbflra.adb, a-nuflra.adb, a-nudira.adb: Minor comment
6472         updates.
6474 2010-06-22  Doug Rupp  <rupp@adacore.com>
6476         * system-vms.ads, system-vms-zcx.ads: Remove old unused VMS system
6477         packages.
6478         * system-vms_64.ads, system-vms-ia64.ads: Minor reformatting.
6479         (pragma Ident): Add a default ident string in the private part.
6481 2010-06-22  Robert Dewar  <dewar@adacore.com>
6483         * cstand.adb: Minor reformatting.
6485 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
6487         * freeze.adb (Build_And_Analyze_Renamed_Body): For expansion purposes,
6488         recognize the Shift and Rotation intrinsics that are known to the
6489         compiler but have no interface name.
6491 2010-06-22  Geert Bosch  <bosch@adacore.com>
6493         * a-ngcoty.adb ("*"): Rewrite complex multiplication to use proper
6494         scaling in case of overflow or NaN results.
6496 2010-06-22  Robert Dewar  <dewar@adacore.com>
6498         * cstand.adb: Complete previous change.
6499         * g-dirope.ads: Add comment.
6500         * s-stchop.adb, sfn_scan.adb: Minor reformatting.
6502 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
6504         * cstand.adb: Add tree nodes for pragma Pack on string types.
6506 2010-06-22  Javier Miranda  <miranda@adacore.com>
6508         * einfo.ads, einfo.adb (Last_Formal): New synthesized attribute.
6509         * exp_util.adb (Find_Prim_Op): Use new attribute to locate the last
6510         formal of a primitive.
6511         * exp_disp.adb (Is_Predefined_Dispatching_Operation,
6512          Is_Predefined_Dispatching_Alias): Use new attribute to locate the last
6513         formal of a primitive.
6514         * exp_cg.adb (Is_Predefined_Dispatching_Operation): Use new attribute
6515         to obtain the last formal of a primitive.
6517 2010-06-22  Geert Bosch  <bosch@adacore.com>
6519         * sysdep.c, init.c, adaint.c, cstreams.c: Remove conditional code
6520         depending on __EMX__ or MSDOS being defined.
6521         * i-cstrea.ads, gnat_rm.texi: Remove mentions of OS/2, DOS and Xenix.
6522         * a-excpol-abort.adb: Update comment indicating users of the file.
6523         * xref_lib.adb, sfn_scan.adb: Remove mention of OS/2, replace NT by
6524         Windows.
6525         * env.c: Remove empty conditional for MSDOS.
6526         * s-stchop.adb, g-dirope.ads, s-fileio.adb, osint.ads: Remove mention
6527         of OS/2 in comment.
6529 2010-06-22  Robert Dewar  <dewar@adacore.com>
6531         * s-rannum.adb: Minor reformatting.
6533 2010-06-22  Javier Miranda  <miranda@adacore.com>
6535         * sem_aux.adb, sem_aux.ads, sem_util.adb, sem_util.ads, sem_elim.adb,
6536         exp_cg.adb: Minor code reorganization: Move routine Ultimate_Alias from
6537         package Sem_Util to package Sem_Aux.
6539 2010-06-22  Javier Miranda  <miranda@adacore.com>
6541         * exp_disp.adb (Make_Secondary_DT, Make_DT): Minor code cleanup:
6542         remove useless restriction on imported routines when building the
6543         dispatch tables.
6545 2010-06-22  Robert Dewar  <dewar@adacore.com>
6547         * cstand.adb (Create_Standard): Set Has_Pragma_Pack for standard string
6548         types.
6550 2010-06-22  Javier Miranda  <miranda@adacore.com>
6552         * sem_ch4.adb (Collect_Generic_Type_Ops): Protect code that handles
6553         generic subprogram declarations to ensure proper context. Add missing
6554         support for generic actuals.
6555         (Try_Primitive_Operation): Add missing support for concurrent types
6556         that have no Corresponding_Record_Type. Required to diagnose errors
6557         compiling
6558         generics or when compiling with no code generation (-gnatc).
6559         * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Do not build
6560         the corresponding record type.
6561         * sem_disp.ads, sem_disp.adb (Check_Dispatching_Operation): Complete
6562         documentation. Do minimum decoration when processing a primitive of a
6563         concurrent tagged type that covers interfaces. Required to diagnose
6564         errors in the Object.Operation notation compiling generics or under
6565         -gnatc.
6566         * exp_ch9.ads, exp_ch9.adb (Build_Corresponding_Record): Add missing
6567         propagation of attribute Interface_List to the corresponding record.
6568         (Expand_N_Task_Type_Declaration): Code cleanup.
6569         (Expand_N_Protected_Type_Declaration): Code cleanup.
6571 2010-06-22  Matthew Heaney  <heaney@adacore.com>
6573         * a-convec.adb, a-coinve.adb: Removed 64-bit types Int and UInt.
6575 2010-06-22  Paul Hilfinger  <hilfinger@adacore.com>
6577         * s-rannum.adb (Random_Float_Template): Replace with unbiased version
6578         that is able to produce all representable floating-point numbers in the
6579         unit interval. Remove template parameter Shift_Right, no longer used.
6580         * gnat_rm.texi: Document the period of the pseudo-random number
6581         generator under the description of its algorithm.
6582         * gcc-interface/Make-lang.in: Update dependencies.
6584 2010-06-22  Thomas Quinot  <quinot@adacore.com>
6586         * exp_aggr.adb (Rewrite_Discriminant): Fix predicate used to identify
6587         reference to discriminant (can be an expanded name as well as an
6588         identifier).
6590 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
6592         * exp_ch6.adb: Clarify comment.
6594 2010-06-22  Geert Bosch  <bosch@adacore.com>
6596         * exp_imgv.adb (Expand_Image_Attribute): Treat ordinary fixed point
6597         with decimal small as decimal types, avoiding FP arithmetic.
6598         (Has_Decimal_Small): New function.
6599         * einfo.ads, einfo.adb (Aft_Value): New synthesized attributed for
6600         fixed point types.
6601         * sem_attr.adb (Eval_Attribute): Remove Aft_Value function and update
6602         callers to call the new function in Einfo that takes the entity as
6603         parameter.
6605 2010-06-22  Robert Dewar  <dewar@adacore.com>
6607         * sem_ch3.adb, sem_ch8.adb: Minor reformatting.
6609 2010-06-22  Thomas Quinot  <quinot@adacore.com>
6611         * sem_elab.adb: Minor reformatting.
6613 2010-06-22  Vincent Celier  <celier@adacore.com>
6615         * gnatsym.adb: Put the object files in the table in increasing
6616         aphabetical order of base names.
6618 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
6620         * sem_ch8.adb (Set_Entity_Or_Discriminal): New procedure used by
6621         Find_Direct_Name and Find_Expanded_Name, to replace a discriminant with
6622         the corresponding discriminal within a record declaration.
6624 2010-06-22  Thomas Quinot  <quinot@adacore.com>
6626         * exp_aggr.adb (Rewrite_Discriminant): Rewriting must occur only for an
6627         expression referring to a discriminal of the type of the aggregate (not
6628         a discriminal of some other unrelated type), and the prefix in the
6629         generated selected component must come from Lhs, not Obj.
6631 2010-06-22  Thomas Quinot  <quinot@adacore.com>
6633         * sem_ch3.adb (Build_Derived_Record_Type): Fix predicate determining
6634         when to freeze the parent type.
6636 2010-06-22  Robert Dewar  <dewar@adacore.com>
6638         * s-rannum.adb, a-nudira.adb, types.ads, freeze.adb, sem_aggr.adb,
6639         exp_aggr.adb: Minor reformatting.
6640         * gnat_rm.texi: Document GNAT.MBBS_Discrete_Random and
6641         GNAT.MBSS_Float_Random.
6642         * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: Fix header.
6644 2010-06-22  Paul Hilfinger  <hilfinger@adacore.com>
6646         * a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-nuflra.ads,
6647         gnat_rm.texi, impunit.adb, Makefile.rtl, s-rannum.adb
6648         (Random_Float_Template, Random): New method of creating
6649         uniform floating-point variables that allow the creation of all machine
6650         values in [0 .. 1).  
6652         * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: New file.
6654 2010-06-22  Gary Dismukes  <dismukes@adacore.com>
6656         * sem_ch5.adb (Analyze_Assignment): Revise test for illegal assignment
6657         to abstract targets to check that the type is tagged and comes from
6658         source, rather than only testing for targets of interface types. Remove
6659         premature return.
6661 2010-06-22  Vincent Celier  <celier@adacore.com>
6663         * vms_data.ads: Modify the declarations of qualifiers
6664         /UNCHECKED_SHARED_LIB_IMPORTS to allow the generation of gnat.hlp
6665         without error.
6667 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
6669         * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false if
6670         expansion is disabled.
6672 2010-06-22  Robert Dewar  <dewar@adacore.com>
6674         * makeusg.adb: Minor reformatting.
6676 2010-06-22  Robert Dewar  <dewar@adacore.com>
6678         * types.ads: (Dint): Removed, no longer used anywhere.
6679         * uintp.adb (UI_From_CC): Use UI_From_Int, range is sufficient.
6680         (UI_Mul): Avoid use of UI_From_Dint.
6681         (UI_From_Dint): Removed, not used.
6682         * uintp.ads (UI_From_Dint): Removed, not used.
6683         (Uint_Min/Max_Simple_Mul): New constants.
6685 2010-06-22  Vincent Celier  <celier@adacore.com>
6687         * clean.adb (Parse_Cmd_Line): Recognize switch
6688         --unchecked-shared-lib-imports.
6689         (Usage): Add line for switch --unchecked-shared-lib-imports
6690         * makeusg.adb: Add line for switch --unchecked-shared-lib-imports
6691         * makeutl.ads: (Unchecked_Shared_Lib_Imports): New constant string
6692         moved from GPR_Util.
6693         * switch-m.adb (Scan_Make_Switches): Recognize switch
6694         --unchecked-shared-lib-imports.
6695         * vms_data.ads: Add VMS qualifiers /UNCHECKED_SHARED_LIB_IMPORTS.
6696         * gnat_ugn.texi: Add documentation for new switch
6697         --unchecked-shared-lib-imports.  Add also documentation for --subdirs.
6699 2010-06-22  Javier Miranda  <miranda@adacore.com>
6701         * sem_prag.adb, sem_util.adb, sem_util.ads, sem_attr.adb, exp_ch6.adb,
6702         exp_disp.adb, sem_eval.adb, exp_dist.adb lib-xref.adb: Code cleanup,
6703         this patch replaces duplication of code that traverses the chain of
6704         aliased primitives by a call to routine Ultimate_Alias that
6705         provides this functionality.
6707 2010-06-22  Arnaud Charlet  <charlet@adacore.com>
6709         * fmap.adb, opt.ads, osint.adb, osint.ads, output.ads, scng.adb,
6710         sinput-c.adb, switch-m.ads, tree_io.ads: Use simpler form of
6711         Warnings Off/On.
6713 2010-06-22  Thomas Quinot  <quinot@adacore.com>
6715         * einfo.ads: Minor reformatting.
6717 2010-06-22  Javier Miranda  <miranda@adacore.com>
6719         * exp_disp.adb (Expand_Interface_Thunk): Do not generate thunk of
6720         eliminated primitives.
6721         (Make_DT): Avoid referencing eliminated primitives.
6722         (Register_Primitive): Do not register eliminated primitives in the
6723         dispatch table. Required to add this functionality when the program is
6724         compiled without static dispatch tables (-gnatd.t)
6726 2010-06-22  Emmanuel Briot  <briot@adacore.com>
6728         * fmap.adb, scng.adb, switch-m.ads, sinput-c.adb, opt.ads, output.ads,
6729         tree_io.ads, osint.adb, osint.ads: Use configuration pragmas to prevent
6730         warnings on use of internal GNAT units.
6732 2010-06-22  Jose Ruiz  <ruiz@adacore.com>
6734         * s-taprop-vxworks.adb (Set_Priority): Update comments.
6736 2010-06-22  Paul Hilfinger  <hilfinger@adacore.com>
6738         * s-rannum.adb: Make stylistic change to remove mystery constant in
6739         Extract_Value.  Image_Numeral_Length: new symbolic constant.
6741 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
6743         * einfo.ads, einfo.adb: Make Is_Protected_Interface,
6744         Is_Synchronized_Interface, Is_Task_Interface into computable
6745         predicates, to free three flags in entity nodes.
6746         * sem_ch3.adb: Remove setting of these flags.
6748 2010-06-22  Robert Dewar  <dewar@adacore.com>
6750         * uintp.adb, osint.adb, prj-conf.adb, prj-part.adb, prj.adb: Minor
6751         reformatting.
6752         * s-taprop-vxworks.adb: Add comment for Set_Priority.
6753         * impunit.adb (Map_Array): Add entries for s-htable.ads and s-crc32.ads
6754         * projects.texi: Move @cindex to the left margin, since otherwise we
6755         are missing entries in the index.
6757 2010-06-22  Emmanuel Briot  <briot@adacore.com>
6759         * prj-part.adb, prj.adb, tempdir.ads, makeutl.adb: Use
6760         packages from the GNAT hierarchy instead of System when possible.
6761         * gcc-interface/Make-lang.in: Update dependencies.
6763 2010-06-22  Jose Ruiz  <ruiz@adacore.com>
6765         * s-taprop-vxworks.adb (Set_Priority): Remove the code that was
6766         previously in place to reorder the ready queue when a task drops its
6767         priority due to the loss of inherited priority.
6769 2010-06-22  Vincent Celier  <celier@adacore.com>
6771         * projects.texi: Minor spelling error fixes.
6772         Minor reformatting.
6774 2010-06-22  Emmanuel Briot  <briot@adacore.com>
6776         * prj-part.adb, prj-ext.adb, prj.adb, makeutl.adb, prj-conf.adb: Remove
6777         warnings for some with clauses.
6779 2010-06-22  Robert Dewar  <dewar@adacore.com>
6781         * errout.adb (Unwind_Internal_Type): Improve handling of First_Subtype
6782         test to catch more cases where first subtype is the results we want.
6783         * sem_res.adb (Make_Call_Into_Operator): Don't go to First_Subtype in
6784         error case, since Errout will now handle this correctly.
6785         * gcc-interface/Make-lang.in: Add Sem_Aux to list of GNATBIND objects.
6786         Update dependencies.
6788 2010-06-22  Arnaud Charlet  <charlet@adacore.com>
6790         * exp_ch4.adb (Expand_Allocator_Expression): Set Related_Node properly
6791         when calling Make_Temporary.
6793 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
6795         * sem_ch3.adb (Access_Subprogram_Declaration): An anonymous access to
6796         subprogram can be associated with an entry body.
6798 2010-06-22  Robert Dewar  <dewar@adacore.com>
6800         * scos.ads: Add note on membership test handling.
6802 2010-06-22  Vincent Celier  <celier@adacore.com>
6804         * projects.texi: Minor spelling fixes.
6805         Minor reformatting.
6807 2010-06-22  Paul Hilfinger  <hilfinger@adacore.com>
6809         * s-rannum.adb: Correct off-by-one error in Extract_Value.
6811 2010-06-22  Vincent Celier  <celier@adacore.com>
6813         * mlib-prj.adb (Display): In non verbose mode, truncate after fourth
6814         argument.
6815         * mlib-utl.adb (Gcc): In non verbose mode, truncate the display of the
6816         gcc command if it is too long.
6818 2010-06-22  Robert Dewar  <dewar@adacore.com>
6820         * errout.adb (Set_Msg_Node): Fix incorrect reference to node.
6822 2010-06-22  Arnaud Charlet  <charlet@adacore.com>
6824         * exp_ch6.adb (Expand_Actuals): Use Actual as the related node when
6825         calling Make_Temporary.
6827 2010-06-22  Robert Dewar  <dewar@adacore.com>
6829         * sem_res.adb, sem_aux.adb, errout.adb: Minor reformatting.
6831 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
6833         * sem_res.adb: Additional special-case for VMS.
6835 2010-06-22  Vincent Celier  <celier@adacore.com>
6837         * gnatsym.adb: Minor comment fix.
6839 2010-06-22  Vincent Celier  <celier@adacore.com>
6841         * prj-nmsc.adb (Process_Naming_Scheme): Initialize Lib_Data_Table.
6843 2010-06-22  Robert Dewar  <dewar@adacore.com>
6845         * par-ch4.adb (P_Name): Recognize 'Mod attribute in Ada 95 mode
6846         * sem_attr.adb (Attribute_05): Add Name_Mod so that 'Mod recognized in
6847         Ada 95 mode as an implementation defined attribute.
6849 2010-06-22  Vincent Celier  <celier@adacore.com>
6851         * bindusg.adb (Display): Update line for -R
6852         * switch-b.adb (Scan_Binder_Switches): Allow generation of the binder
6853         generated files when -R is used.
6855 2010-06-22  Vincent Celier  <celier@adacore.com>
6857         * prj-nmsc.adb (Lib_Data_Table): New table.
6858         (Check_Library_Attributes): Check if the same library name is used in
6859         two different projects that do not extend each other.
6861 2010-06-22  Robert Dewar  <dewar@adacore.com>
6863         * lib-writ.ads, errout.adb, einfo.adb, einfo.ads: Minor reformatting.
6865 2010-06-22  Vincent Celier  <celier@adacore.com>
6867         * adaint.c (__gnat_locate_regular_file): If a directory in the path is
6868         empty, make it the current working directory.
6870 2010-06-22  Thomas Quinot  <quinot@adacore.com>
6872         * sem_ch3.adb (Build_Derived_Record_Type): When deriving a tagged
6873         private type with discriminants, make sure the parent type is frozen.
6875 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
6877         * exp_attr.adb (Expand_N_Attribute_Reference) <Attribute_Bit>: Deal
6878         with packed array references specially.
6879         * exp_ch4.adb (Expand_N_Indexed_Component): Do not convert a reference
6880         to a component of a bit packed array if it is the prefix of 'Bit.
6881         * exp_pakd.ads (Expand_Packed_Bit_Reference): Declare.
6882         * exp_pakd.adb (Expand_Packed_Bit_Reference): New procedure.  Expand a
6883         'Bit reference, where the prefix involves a packed array reference.
6884         (Get_Base_And_Bit_Offset): New helper, extracted from...
6885         (Expand_Packed_Address_Reference): ...here.  Call above procedure to
6886         get the outer object and offset expression.
6888 2010-06-22  Thomas Quinot  <quinot@adacore.com>
6890         * exp_attr.adb, lib-writ.ads, bindgen.adb: Minor reformatting.
6891         * einfo.adb (Related_Expression, Set_Related_Expression): Add
6892         assertions.
6894 2010-06-22  Javier Miranda  <miranda@adacore.com>
6896         * sem_ch3.adb (Add_Internal_Interface_Entities): Minor code
6897         reorganization to properly check if the operation has been inherited as
6898         an abstract operation.
6900 2010-06-22  Ed Falis  <falis@adacore.com>
6902         * s-osinte-vxworks.ads: Complete previous change.
6904 2010-06-22  Thomas Quinot  <quinot@adacore.com>
6906         * sem_res.adb: Add comment.
6907         * projects.texi, gnat_ugn.texi: Remove macro.
6909 2010-06-22  Vincent Celier  <celier@adacore.com>
6911         * prj-attr.adb: Remove project level attribute Main_Language.
6913 2010-06-22  Robert Dewar  <dewar@adacore.com>
6915         * switch-b.adb, osint-b.adb: Minor reformatting.
6917 2010-06-22  Pascal Obry  <obry@adacore.com>
6919         * g-socthi-mingw.adb (C_Sendmsg): Do not attempt to send data from a
6920         vector if previous send was not fully successful. If only part of
6921         the vector data was sent, we exit the loop.
6923 2010-06-22  Thomas Quinot  <quinot@adacore.com>
6925         * sem_res.adb (Make_Call_Into_Operator): Use First_Subtype for better
6926         error reporting with generic types.
6928 2010-06-22  Thomas Quinot  <quinot@adacore.com>
6930         * bindgen.adb, bindusg.adb, gnatbind.adb, gnat_ugn.texi, opt.ads,
6931         osint-b.adb, osint-b.ads, output.adb, output.ads, switch-b.adb,
6932         vms_data.ads: Add a new command line switch -A to gnatbind to output
6933         the list of all ALI files for the partition.
6935 2010-06-22  Arnaud Charlet  <charlet@adacore.com>
6937         * s-osinte-vxworks.ads: Fix casing.
6938         * s-vxwext-kernel.ads, s-vxwext-rtp.ads: Complete previous
6939         change: Interfaces.C does not provide a long_long type.
6941 2010-06-22  Emmanuel Briot  <briot@adacore.com>
6943         * gnat_ugn.texi, projects.texi: Preprocess projects.texi for VMS and
6944         native user's guide, since this document contains the two versions.
6945         * gcc-interface/Make-lang.in: Update doc dependencies.
6947 2010-06-22  Robert Dewar  <dewar@adacore.com>
6949         * sem_ch3.adb: Minor reformatting.  Minor code reorganization.
6951 2010-06-22  Emmanuel Briot  <briot@adacore.com>
6953         * gnat_ugn.texi, projects.texi: Remove toplevel menu, since we should
6954         not build this file on its own (only through gnat_ugn.texi).
6955         Remove macro definitions and insert simpler version in gnat_ugn.texi.
6957 2010-06-22  Robert Dewar  <dewar@adacore.com>
6959         * ali-util.ads: Minor comment update.
6960         * g-socthi-mingw.adb: Minor reformatting.
6962 2010-06-22  Ed Falis  <falis@adacore.com>
6964         * s-osinte-vxworks.ads: Take sigset_t definition of System.VxWorks.Ext.
6965         * s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads: Define sigset_t
6966         for specific versions of VxWorks.
6968 2010-06-22  Emmanuel Briot  <briot@adacore.com>
6970         * gnat_rm.texi, gnat_ugn.texi, projects.texi: Remove all project files
6971         related sections from user's guide and reference manual, since they
6972         have now been merged together into a separate document (projects.texi).
6973         This removes a lot of duplication where attributes where described
6974         in several places.
6975         The grammar for the project files is now in each of the sections
6976         (packages,expressions,...) instead of being duplicates in two other
6977         sections (one in the user's guide that contained the full grammar,
6978         and various sections in the rm that contained extracts of the same
6979         grammar).
6980         Added the full list of all supported attributes, since existing lists
6981         were incomplete
6982         Rename "associative array" into "indexed attribute"
6983         Remove sections that were duplicates ("External References in
6984         Project Files" and "External Values", and "Project Extensions"
6985         for instance). The list of valid packages in project files is now in
6986         a single place.
6988 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
6990         * sem_ch3.adb (Add_Internal_Interface_Entities): If
6991         Find_Primitive_Covering_Interface does not find the operation, it may
6992         be because of a name conflict between the inherited operation and a
6993         local non-overloadable name. In that case look for the operation among
6994         the primitive operations of the type. This search must succeed
6995         regardless of visibility.
6997 2010-06-22  Pascal Obry  <obry@adacore.com>
6999         * g-socthi-mingw.adb: Properly honor MSG_WAITALL in recvmsg.
7000         (C_Recvmsg): Propely honor the MSG_WAITALL flag in Windows
7001         recvmsg emulation.
7003 2010-06-22  Robert Dewar  <dewar@adacore.com>
7005         * sem_ch4.adb (Analyze_Conditional_Expression): Defend against
7006         malformed tree.
7007         * sprint.adb (Sprint_Node_Actual, case N_Conditional_Expression):
7008         Ditto.
7010 2010-06-22  Arnaud Charlet  <charlet@adacore.com>
7012         * s-intman-vxworks.ads: Code clean up.
7014 2010-06-22  Thomas Quinot  <quinot@adacore.com>
7016         * sem_res.adb (Resolve_Slice): When the prefix is an explicit
7017         dereference, construct actual subtype of designated object to generate
7018         proper bounds checks.
7020 2010-06-22  Thomas Quinot  <quinot@adacore.com>
7022         * ali-util.adb, ali-util.ads, gnatbind.adb (Read_ALI): Rename to
7023         Read_Withed_ALIs, which is more descriptive.
7025 2010-06-22  Pascal Obry  <obry@adacore.com>
7027         * g-sothco.ads: Minor reformatting.
7028         * g-socthi-mingw.adb: Remove part of work on the C_Recvmsg and
7029         C_Sendmsg implementation.
7030         (C_Sendmsg): Do not use lock (not needed).
7031         (C_Recvmsg): Likewise and also do not wait for incoming data.
7033 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
7035         * uintp.adb: Fix scope error in operator call.
7037 2010-06-22  Vincent Celier  <celier@adacore.com>
7039         * makeutl.adb (Executable_Prefix_Path): on VMS, return "/gnu/".
7040         * prj-conf.adb (Get_Or_Create_Configuration_File): On VMS, if
7041         autoconfiguration is needed, fail indicating that no config project
7042         file can be found, as there is no autoconfiguration on VMS.
7044 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
7046         * sem_res.adb (Make_Call_Into_Operator): Diagnose an incorrect scope
7047         for an operator in a functional notation, when operands are universal.
7049 2010-06-22  Arnaud Charlet  <charlet@adacore.com>
7051         * gcc-interface/Make-lang.in: Update dependencies.
7053 2010-06-22  Robert Dewar  <dewar@adacore.com>
7055         * sem_aggr.adb (Resolve_Record_Aggregate): Do style check on component
7056         name.
7057         * sem_ch10.adb (Analyze_Subunit): Do style check on parent unit name.
7058         * sem_ch8.adb (Find_Direct_Name): For non-overloadable entities, do
7059         style check.
7060         * sem_res.adb (Resolve_Entity_Name): Do style check for enumeration
7061         literals.
7063 2010-06-22  Vincent Celier  <celier@adacore.com>
7065         * make.adb (Scan_Make_Arg): No longer pass -nostdlib to the compiler as
7066         it has no effect. Always pass -nostdlib to gnatlink, even on VMS.
7068 2010-06-22  Pascal Obry  <obry@adacore.com>
7070         * g-socthi-mingw.adb: Fix implementation of the vectored sockets on
7071         Windows.
7072         (C_Recvmsg): Make sure the routine is atomic. Also fully
7073         fill vectors in the proper order.
7074         (C_Sendmsg): Make sure the routine is atomic.
7076 2010-06-22  Robert Dewar  <dewar@adacore.com>
7078         * sem_ch8.adb: Update comment.
7079         * sem_res.adb: Minor code reorganization (use Ekind_In).
7081 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
7083         * sem_ch8.adb (Add_Implicit_Operator): If the context of the expanded
7084         name is a call, use the number of actuals to determine whether this is
7085         a binary or unary operator, rather than relying on later information
7086         to resolve the overload.
7088 2010-06-22  Robert Dewar  <dewar@adacore.com>
7090         * sem_ch10.adb, sem_aggr.adb: Minor reformatting.
7092 2010-06-22  Robert Dewar  <dewar@adacore.com>
7094         * sem_ch3.adb, sem_disp.adb: Minor code fixes.
7095         * sem_eval.adb: Minor reformatting.
7097 2010-06-22  Vincent Celier  <celier@adacore.com>
7099         * make.adb (Scan_Make_Arg): When invoked with -nostdlib, pass -nostdlib
7100         to gnatlink, except on Open VMS.
7101         * osint.adb (Add_Default_Search_Dirs): Do not suppress the default
7102         object directories if -nostdlib is used.
7104 2010-06-22  Robert Dewar  <dewar@adacore.com>
7106         * sem_util.adb (Is_Delegate): Put in proper alpha order.
7107         * sem_eval.adb: Minor reformatting.
7109 2010-06-22  Robert Dewar  <dewar@adacore.com>
7111         * g-expect-vms.adb, sem_res.adb: Minor reformatting.
7112         * exp_aggr.adb: Minor comment changes and reformatting.
7113         * sem_eval.adb (Find_Universal_Operator_Type): Put in proper alpha
7114         order.
7115         * sem_util.ads: Add some missing pragma Inline's.
7117 2010-06-22  Thomas Quinot  <quinot@adacore.com>
7119         * sem_util.adb (Build_Actual_Subtype): Record original expression in
7120         Related_Expression attribute of the constructed subtype.
7121         * einfo.adb, einfo.ads (Underlying_View): Move to Node28 to free up
7122         Node24 on types for...
7123         (Related_Expression): Make attribute available on types as well.
7125 2010-06-22  Gary Dismukes  <dismukes@adacore.com>
7127         * exp_util.adb (Find_Interface_ADT): Retrieve Designated_Type instead
7128         of Directly_Designated_Type when the type argument is an access type.
7129         (Find_Interface_Tag): Retrieve Designated_Type instead of
7130         Directly_Designated_Type when the type argument is an access type.
7131         (Has_Controlled_Coextensions): Retrieve Designated_Type instead of
7132         Directly_Designated_Type of each access discriminant.
7133         * sem_res.adb (Resolve_Type_Conversion): Retrieve Designated_Type
7134         instead of Directly_Designated_Type when the operand and target types
7135         are access types.
7137 2010-06-22  Thomas Quinot  <quinot@adacore.com>
7139         * exp_aggr.adb (Flatten): Return False if one choice is statically
7140         known to be out of bounds.
7142 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
7144         * sem_res.adb (Resolve_Call): If the call is rewritten as an indexed of
7145         a parameterless function call, preserve parentheses of original
7146         expression, for proper handling by pretty printer.
7147         * sem_attr.adb (Analyze_Attribute, case 'Old): Add guard to Process
7148         procedure, to handle quietly identifiers that have no entity names.
7149         * exp_util.adb (Get_Current_Value_Condition): If the parent of an
7150         elsif_part is missing, it has been rewritten as a nested if, and there
7151         is no useful information on the current value of the variable.
7153 2010-06-22  Gary Dismukes  <dismukes@adacore.com>
7155         * sem_ch3.adb (Build_Discriminal): Set default scopes for newly created
7156         discriminals to the current scope.
7157         * sem_util.adb (Find_Body_Discriminal): Remove setting of discriminal's
7158         scope, which could overwrite a different already set value.
7160 2010-06-22  Ed Schonberg  <schonberg@adacore.com>
7162         * sem_res.adb (Valid_Conversion): If expression is a predefined
7163         operator, use sloc of type of interpretation to improve error message
7164         when operand is of some derived type.
7165         * sem_eval.adb (Is_Mixed_Mode_Operand): New function, use it.
7167 2010-06-22  Emmanuel Briot  <briot@adacore.com>
7169         * g-expect-vms.adb (Expect_Internal): No longer raises an exception, so
7170         that it can set out parameters as well. When a process has died, reset
7171         its Input_Fd to Invalid_Fd, so that when using multiple processes we
7172         can find out which process has died.
7174 2010-06-22  Thomas Quinot  <quinot@adacore.com>
7176         * sem_eval.adb (Find_Universal_Operator_Type): New
7177         subprogram to identify the operand type of an operator on universal
7178         operands, when an explicit scope indication is present. Diagnose the
7179         case where such a call is ambiguous.
7180         (Eval_Arithmetic_Op, Eval_Relational_Op, Eval_Unary_Op):
7181         Use the above to identify the operand type so it can be properly
7182         frozen.
7183         * sem_res.adb (Make_Call_Into_Operator): Remove bogus freeze of operand
7184         type, done in an arbitrary, possibly incorrect type (the presence of
7185         some numeric type in the scope is checked for legality, but when more
7186         than one such type is in the scope, we just pick a random one, not
7187         necessarily the expected one).
7188         * sem_utils.ads, sem_utils.adb (Is_Universal_Numeric_Type): New utility
7189         subprogram.
7191 2010-06-22  Robert Dewar  <dewar@adacore.com>
7193         * sem_eval.adb: Minor reformatting.
7195 2010-06-22  Robert Dewar  <dewar@adacore.com>
7197         * exp_ch4.adb (Expand_N_Conditional_Expression): Use
7198         Expression_With_Actions to clean up the code generated when folding
7199         constant expressions.
7201 2010-06-22  Vincent Celier  <celier@adacore.com>
7203         * g-expect-vms.adb: Add new subprograms Free, First_Dead_Process and
7204         Has_Process.
7206 2010-06-22  Vincent Celier  <celier@adacore.com>
7208         * prj-nmsc.adb (Find_Sources): When a source from a multi-unit file is
7209         found, check if it's path has aready been found, whatever its index.
7211 2010-06-22  Robert Dewar  <dewar@adacore.com>
7213         * atree.adb, gnatbind.adb: Minor reformatting.
7214         Minor code reorganization.
7216 2010-06-21  Robert Dewar  <dewar@adacore.com>
7218         * exp_ch4.adb (Expand_N_Conditional_Expression): Fold if condition
7219         known at compile time.
7221 2010-06-21  Gary Dismukes  <dismukes@adacore.com>
7223         * atree.adb: Fix comment typo.
7225 2010-06-21  Ed Schonberg  <schonberg@adacore.com>
7227         * sem_eval.adb (Test_Ambiguous_Operator): New procedure to check
7228         whether a universal arithmetic expression in a conversion, which is
7229         rewritten from a function call with an expanded name, is ambiguous.
7231 2010-06-21  Vincent Celier  <celier@adacore.com>
7233         * prj-nmsc.adb (Name_Location): New Boolean component Listed, to record
7234         source files in specified list of sources.
7235         (Check_Package_Naming): Remove out parameters Bodies and Specs, as they
7236         are never used.
7237         (Add_Source): Set the Location of the new source
7238         (Process_Exceptions_File_Based): Call Add_Source with the Location
7239         (Get_Sources_From_File): If an exception is found, set its Listed to
7240         True
7241         (Find_Sources): When Source_Files is specified, if an exception is
7242         found, set its Listed to True. Remove any exception that is not in a
7243         specified list of sources.
7244         * prj.ads (Source_Data): New component Location
7246 2010-06-21  Vincent Celier  <celier@adacore.com>
7248         * gnatbind.adb (Closure_Sources): Global table, moved from block.
7250 2010-06-21  Thomas Quinot  <quinot@adacore.com>
7252         * sem_res.adb: Minor reformatting.
7253         * atree.adb: New debugging hook "rr" for node rewrites.
7255 2010-06-21  Robert Dewar  <dewar@adacore.com>
7257         * g-expect.ads, g-expect.adb: Minor reformatting.
7259 2010-06-21  Emmanuel Briot  <briot@adacore.com>
7261         * s-regpat.adb (Next_Pointer_Bytes): New named constant. Code clean up.
7263 2010-06-21  Arnaud Charlet  <charlet@adacore.com>
7265         * gcc-interface/Make-lang.in: Update dependencies.
7267 2010-06-21  Thomas Quinot  <quinot@adacore.com>
7269         * bindgen.ads: Update comments.
7271 2010-06-21  Vincent Celier  <celier@adacore.com>
7273         * gnatbind.adb: Suppress dupicates when listing the sources in the
7274         closure (switch -R).
7276 2010-06-21  Emmanuel Briot  <briot@adacore.com>
7278         * s-regpat.adb (Link_Tail): Fix error when size of the pattern matcher
7279         is too small.
7281 2010-06-21  Emmanuel Briot  <briot@adacore.com>
7283         * g-expect.adb, g-expect.ads (First_Dead_Process, Free, Has_Process):
7284         New subprograms.
7285         (Expect_Internal): No longer raises an exception, so that it can set
7286         out parameters as well. When a process has died, reset its Input_Fd
7287         to Invalid_Fd, so that when using multiple processes we can find out
7288         which process has died.
7290 2010-06-21  Robert Dewar  <dewar@adacore.com>
7292         * s-regpat.adb, s-tpoben.adb, sem_attr.adb, sem_util.adb, sem_util.ads,
7293         checks.adb, sem_res.adb: Minor reformatting. Add comments.
7295 2010-06-21  Ed Schonberg  <schonberg@adacore.com>
7297         * sem_ch6.adb (New_Overloaded_Entity): If the new entity is a
7298         rederivation associated with a full declaration in a private part, and
7299         there is a partial view that derives the same parent subprogram, the
7300         new entity does not become visible. This check must be applied to
7301         interface operations as well.
7303 2010-06-21  Thomas Quinot  <quinot@adacore.com>
7305         * checks.adb: Add comments.
7306         * prj-nmsc.adb: Minor reformatting.
7308 2010-06-21  Thomas Quinot  <quinot@adacore.com>
7310         * sem_ch9.adb, checks.adb, sem_util.adb, sem_util.ads, sem_res.adb,
7311         sem_attr.adb (Get_E_First_Or_Last): Use attribute references on E to
7312         extract bounds, to ensure that we get the proper captured values,
7313         rather than an expression that may have changed value since the point
7314         where the subtype was elaborated.
7315         (Find_Body_Discriminal): New utility subprogram to share code
7316         between...
7317         (Eval_Attribute): For the case of a subtype bound that references a
7318         discriminant of the current concurrent type, insert appropriate
7319         discriminal reference.
7320         (Resolve_Entry.Actual_Index_Type.Actual_Discriminant_Ref): For a
7321         requeue to an entry in a family in the current task, use corresponding
7322         body discriminal. 
7323         (Analyze_Accept_Statement): Rely on expansion of attribute references
7324         to insert proper discriminal references in range check for entry in
7325         family.
7327 2010-06-21  Emmanuel Briot  <briot@adacore.com>
7329         * s-regpat.adb (Compile): Fix handling of big patterns.
7331 2010-06-21  Robert Dewar  <dewar@adacore.com>
7333         * a-tifiio.adb: Minor reformatting.
7335 2010-06-21  Pascal Obry  <obry@adacore.com>
7337         * prj-nmsc.adb (Search_Directories): Use the non-translated directory
7338         path to open it.
7340 2010-06-21  Javier Miranda  <miranda@adacore.com>
7342         * exp_cg.adb (Write_Call_Info): Fill the component sourcename using the
7343         external name.
7345 2010-06-21  Ed Schonberg  <schonberg@adacore.com>
7347         * exp_ch4.adb (Expand_Concatenate): If an object declaration is created
7348         to hold the result, indicate that the target of the declaration does
7349         not need an initialization, to prevent spurious errors when
7350         Initialize_Scalars is enabled.
7352 2010-06-21  Ed Schonberg  <schonberg@adacore.com>
7354         * a-tifiio.adb (Put): In the procedure that performs I/O on a String,
7355         Fore is not bound by line length. The Fore parameter of the internal
7356         procedure that performs the operation is an integer.
7358 2010-06-21  Thomas Quinot  <quinot@adacore.com>
7360         * sem_res.adb, checks.adb: Minor reformatting.
7362 2010-06-21  Emmanuel Briot  <briot@adacore.com>
7364         * s-regpat.adb (Next_Instruction, Get_Next_Offset): Removed, merged
7365         into Get_Next.
7366         (Insert_Operator_Before): New subprogram, avoids duplicated code
7367         (Compile): Avoid doing two compilations when the pattern matcher ends
7368         up being small.
7370 2010-06-21  Emmanuel Briot  <briot@adacore.com>
7372         * s-regpat.adb: Improve debug traces
7373         (Dump): Change output format to keep it smaller.
7375 2010-06-21  Javier Miranda  <miranda@adacore.com>
7377         * exp_cg.adb (Generate_CG_Output): Disable redirection of standard
7378         output to the output file when this routine completes its work.
7380 2010-06-20  Eric Botcazou  <ebotcazou@adacore.com>
7382         * gcc-interface/trans.c (Subprogram_Body_to_gnu): Use while instead of
7383         for loop.  Call build_constructor_from_list directly in the CICO case.
7385 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
7387         * freeze.adb (Build_And_Analyze_Renamed_Body): If the renaming
7388         declaration appears in the same unit and ealier than the renamed
7389         entity, retain generated body to prevent order-of-elaboration issues in
7390         gigi.
7392 2010-06-18  Arnaud Charlet  <charlet@adacore.com>
7394         * s-tpoben.adb: Update comments.
7396 2010-06-18  Robert Dewar  <dewar@adacore.com>
7398         * debug.adb: Minor comment change.
7400 2010-06-18  Javier Miranda  <miranda@adacore.com>
7402         * exp_cg.adb: Code clean up.
7403         * debug.adb: Complete documentation of switch -gnatd.Z.
7404         * gcc-interface/misc.c (callgraph_info_file): Declare.
7406 2010-06-18  Javier Miranda  <miranda@adacore.com>
7408         * exp_cg.adb (Homonym_Suffix_Length): Minor code reorganization.
7410 2010-06-18  Thomas Quinot  <quinot@adacore.com>
7412         * sprint.ads: Minor reformatting.
7413         * output.ads: Update obsolete comment.
7415 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
7417         * freeze.adb (Build_And_Analyze_Renamed_Body): if the renamed entity is
7418         an external intrinsic operation (e.g. a GCC numeric function) indicate
7419         that the renaming entity has the same characteristics, so a call to it
7420         is properly expanded.
7422 2010-06-18  Javier Miranda  <miranda@adacore.com>
7424         * exp_cg.adb, exp_cg.ads, exp_disp.adb, gnat1drv.adb: Add initial
7425         support for dispatch table/callgraph info generation.
7426         * gcc-interface/Make-lang.in: Update dependencies.
7428 2010-06-18  Robert Dewar  <dewar@adacore.com>
7430         * exp_ch6.adb: Minor reformatting.
7431         * gnatname.adb: Add comment.
7433 2010-06-18  Vincent Celier  <celier@adacore.com>
7435         * gnatname.adb (Scan_Args): When --and is used, make sure that the
7436         dynamic tables in the newly allocated Argument_Data are properly
7437         initialized.
7439 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
7441         * gnat1drv.adb: Fix comment.
7443 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
7445         * exp_ch6.adb (Expand_Inlined_Call): If the inlined subprogram is a
7446         renaming, re-expand the call with the renamed subprogram if that one
7447         is marked inlined as well.
7449 2010-06-18  Gary Dismukes  <dismukes@adacore.com>
7451         * gnat1drv.adb (Adjust_Global_Switches): Enable
7452         Use_Expression_With_Actions for AAMP and VM targets.
7454 2010-06-18  Vincent Celier  <celier@adacore.com>
7456         * prj-nmsc.adb (Process_Linker): Recognize response file format GCC.
7458 2010-06-18  Thomas Quinot  <quinot@adacore.com>
7460         * exp_ch4.adb: Minor reformatting.
7462 2010-06-18  Javier Miranda  <miranda@adacore.com>
7464         * debug.ads Add documentation on -gnatd.Z.
7466 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
7468         * sem_elim.adb: Proper error message on improperly eliminated instances
7470 2010-06-18  Vincent Celier  <celier@adacore.com>
7472         * prj.ads (Response_File_Format): New value GCC.
7474 2010-06-18  Thomas Quinot  <quinot@adacore.com>
7476         * gnat1drv.adb: Minor reformatting.
7478 2010-06-18  Robert Dewar  <dewar@adacore.com>
7480         * make.adb, sem_cat.adb: Minor reformatting.
7481         * sem_eval.adb: Fix typos.
7483 2010-06-18  Pascal Obry  <obry@adacore.com>
7485         * prj-nmsc.adb: Fix source filenames casing in debug output.
7487 2010-06-18  Robert Dewar  <dewar@adacore.com>
7489         * gnatcmd.adb: Minor reformatting.
7491 2010-06-18  Robert Dewar  <dewar@adacore.com>
7493         * sem_eval.adb (Eval_Conditional_Expression): Result is static if
7494         condition and both sub-expressions are static (and result is selected
7495         expression).
7497 2010-06-18  Robert Dewar  <dewar@adacore.com>
7499         * g-pehage.adb: Minor reformatting
7501 2010-06-18  Pascal Obry  <obry@adacore.com>
7503         * prj-nmsc.adb (Search_Directories): Insert canonical filenames into
7504         source hash table.
7506 2010-06-18  Arnaud Charlet  <charlet@adacore.com>
7508         * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
7509         dependencies. Fix target pairs on darwin.
7510         (gnatlib-sjlj, gnatlib-zcx): Pass THREAD_KIND.
7512 2010-06-18  Pascal Obry  <obry@adacore.com>
7514         * make.adb, prj-nmsc.adb: Fix source filenames casing in debug output.
7516 2010-06-18  Vincent Celier  <celier@adacore.com>
7518         * gnatcmd.adb: For gnatcheck, add -gnatec= switch for a global
7519         configuration pragmas file and, if -U is not used, for a local one.
7521 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
7523         * sem_elim.adb (Check_Eliminated): Use full information on entity name
7524         when it is given in the pragma by a selected component.
7525         (Check_For_Eliminated_Subprogram): Do no emit error if within a
7526         instance body that is itself within a generic unit.
7527         * sem_ch12.adb (Analyze_Subprogram_Instance): If the subprogram is
7528         eliminated, mark as well the anonymous subprogram that is its alias
7529         and appears within the wrapper package.
7531 2010-06-18  Bob Duff  <duff@adacore.com>
7533         * g-pehage.ads, g-pehage.adb (Produce): Clean up some of the code.
7534         Raise an exception if the output file cannot be opened. Add comments.
7536 2010-06-18  Thomas Quinot  <quinot@adacore.com>
7538         * sem_cat.adb (Validate_Object_Declaration): A variable declaration is
7539         not illegal per E.2.2(7) if it occurs in the private part of a
7540         Remote_Types unit.
7542 2010-06-18  Arnaud Charlet  <charlet@adacore.com>
7544         * par-ch9.adb, sem_aggr.adb, sem_ch3.adb, layout.adb, sem_ch4.adb,
7545         sem_ch5.adb, sem_mech.adb, exp_util.adb, par-ch10.adb, sem_ch6.adb,
7546         par-ch11.adb, sem_ch7.adb, par-prag.adb, exp_disp.adb, par-ch12.adb,
7547         sem_ch8.adb, style.adb, sem_ch9.adb, sem_ch10.adb, prep.adb,
7548         sem_warn.adb, par-util.adb, scng.adb, sem_eval.adb, checks.adb,
7549         sem_prag.adb, sem_ch12.adb, styleg.adb, sem_ch13.adb, par-ch3.adb,
7550         par-tchk.adb, freeze.adb, sfn_scan.adb, par-ch4.adb, sem_util.adb,
7551         sem_res.adb, par-ch5.adb, lib-xref.adb, sem_attr.adb, par-ch6.adb,
7552         sem_disp.adb, prepcomp.adb, par-ch7.adb, sem_elab.adb, exp_ch4.adb,
7553         errout.ads: Update comments. Minor reformatting.
7555         * g-spipat.adb, a-swunau.adb, a-swunau.ads, g-spitbo.adb,
7556         a-szunau.adb, a-szunau.ads, a-stunau.adb, a-stunau.ads,
7557         a-strunb.adb (Big_String. Big_String_Access): New type.
7559         * par-labl.adb, restrict.adb, s-osinte-hpux-dce.ads, sem_ch11.adb,
7560         exp_pakd.adb, s-filofl.ads, par-endh.adb, exp_intr.adb, sem_cat.adb,
7561         sem_case.adb, exp_ch11.adb, s-osinte-linux.ads: Fix copyright notices.
7563 2010-06-18  Geert Bosch  <bosch@adacore.com>
7565         * i-forbla-darwin.adb: Include -lgnala and -lm in linker options for
7566         Darwin.
7568 2010-06-18  Robert Dewar  <dewar@adacore.com>
7570         * gnat1drv.adb (Adjust_Global_Switches): Set Use_Expression_With_Actions
7571         true for gcc.
7573 2010-06-18  Robert Dewar  <dewar@adacore.com>
7575         * sprint.adb: Minor format change for N_Expression_With_Actions.
7576         * repinfo.adb: Minor reformatting.
7578 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
7580         * sem_elim.adb (Check_Eliminated): If within a subunit, use
7581         Defining_Entity to obtain the name of the entity in the proper body, to
7582         properly handle both separate packages and subprograms.
7584 2010-06-18  Emmanuel Briot  <briot@adacore.com>
7586         * prj-nmsc.adb (Check_File): New parameter Display_Path.
7588 2010-06-18  Thomas Quinot  <quinot@adacore.com>
7590         * g-socket.adb, g-socket.ads (Null_Selector): New object.
7592 2010-06-18  Pascal Obry  <obry@adacore.com>
7594         * gnat_ugn.texi: Minor clarification.
7596 2010-06-18  Emmanuel Briot  <briot@adacore.com>
7598         * prj-nmsc.adb (Find_Source_Dirs): Minor refactoring to avoid duplicate
7599         code when using the project dir as the source dir.
7600         (Search_Directories): use the normalized name for the source directory,
7601         where symbolic names have potentially been resolved.
7603 2010-06-18  Robert Dewar  <dewar@adacore.com>
7605         * exp_ch4.adb (Expand_N_Conditional_Expression): Clear Actions field
7606         when we create N_Expression_With_Actions node.
7607         (Expand_Short_Circuit): Ditto.
7609 2010-06-18  Robert Dewar  <dewar@adacore.com>
7611         * exp_util.adb: Minor reformatting.
7613 2010-06-18  Thomas Quinot  <quinot@adacore.com>
7615         * types.ads: Clean up obsolete comments
7616         * tbuild.adb: Minor reformatting.
7617         * exp_ch5.adb, sem_intr.adb, sem_ch10.adb, rtsfind.adb, s-shasto.adb,
7618         exp_strm.adb, aa_drive.adb: Minor reformatting.
7619         * sem_res.adb (Is_Predefined_Operator): An operator that is an imported
7620         intrinsic with an Interface_Name denotes an imported back-end builtin,
7621         and must be rewritten into a call, not left in the tree as an operator,
7622         so return False in that case.
7624 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
7626         * exp_util.adb (Remove_Side_Effects): Make a copy for an allocator.
7627         
7628 2010-06-18  Robert Dewar  <dewar@adacore.com>
7630         * scos.ads: Add proposed output for case expression
7632 2010-06-18  Jose Ruiz  <ruiz@adacore.com>
7634         * gnat_ugn.texi: Document that, when using the RTX compiler to generate
7635         RTSS modules, we need to use the Microsoft linker.
7637 2010-06-18  Robert Dewar  <dewar@adacore.com>
7639         * checks.adb (Safe_To_Capture_In_Parameter_Value): Deal with case
7640         expression (cannot count on a particular branch being executed).
7641         * exp_ch4.adb (Expand_N_Case_Expression): New procedure.
7642         * exp_ch4.ads (Expand_N_Case_Expression): New procedure.
7643         * exp_util.adb (Insert_Actions): Deal with proper insertion of actions
7644         within case expression.
7645         * expander.adb (Expand): Add call to Expand_N_Case_Expression
7646         * par-ch4.adb Add calls to P_Case_Expression at appropriate points
7647         (P_Case_Expression): New procedure
7648         (P_Case_Expression_Alternative): New procedure
7649         * par.adb (P_Case_Expression): New procedure
7650         * par_sco.adb (Process_Decisions): Add dummy place holder entry for
7651         N_Case_Expression.
7652         * sem.adb (Analyze): Add call to Analyze_Case_Expression
7653         * sem_case.ads (Analyze_Choices): Also used for case expressions now,
7654         this is a documentation change only.
7655         * sem_ch4.ads, sem_ch4.adb (Analyze_Case_Expression): New procedure.
7656         * sem_ch6.adb (Fully_Conformant_Expressions): Add handling of case
7657         expressions.
7658         * sem_eval.ads, sem_eval.adb (Eval_Case_Expression): New procedure.
7659         * sem_res.adb (Resolve_Case_Expression): New procedure.
7660         * sem_scil.adb (Find_SCIL_Node): Add processing for
7661         N_Case_Expression_Alternative.
7662         * sinfo.ads, sinfo.adb (N_Case_Expression): New node.
7663         (N_Case_Expression_Alternative): New node.
7664         * sprint.adb (Sprint_Node_Actual): Add processing for new nodes
7665         N_Case_Expression and N_Case_Expression_Alternative.
7667 2010-06-18  Robert Dewar  <dewar@adacore.com>
7669         * par-ch7.adb, sem_warn.adb, types.ads, par-ch3.adb: Minor
7670         reformatting.
7671         * gnat1drv.adb: Fix typo.
7673 2010-06-18  Robert Dewar  <dewar@adacore.com>
7675         * par-prag.adb (Prag, case Style_Checks): All_Checks sets gnat style
7676         for -gnatg.
7677         * sem_prag.adb (Analyze_Pragma, case Style_Checks): All_Checks sets
7678         gnat style for -gnatg.
7679         * gnat_rm.texi: Add documentation for ALL_CHECKS in GNAT mode.
7681 2010-06-18  Thomas Quinot  <quinot@adacore.com>
7683         * sem_eval.adb (Test_In_Range): New subprogram, factoring duplicated
7684         code between...
7685         (Is_In_Range, Is_Out_Of_Range): Reimplement in terms of call to
7686         Test_In_Range.
7688 2010-06-18  Robert Dewar  <dewar@adacore.com>
7690         * sprint.adb: Minor change in output format for expression wi actions.
7691         * par-ch3.adb: Minor code reorganization.  Minor reformatting.
7692         * sem_ch5.adb: Minor comment fix.
7694 2010-06-18  Robert Dewar  <dewar@adacore.com>
7696         * debug.adb: New debug flag -gnatd.L to control
7697         Back_End_Handles_Limited_Types.
7698         * exp_ch4.adb (Expand_N_Conditional_Expression): Let back end handle
7699         limited case if Back_End_Handles_Limited_Types is True.
7700         (Expand_N_Conditional_Expression): Use N_Expression_With_Actions to
7701         simplify expansion if Use_Expression_With_Actions is True.
7702         * gnat1drv.adb (Adjust_Global_Switches): Set
7703         Back_End_Handles_Limited_Types.
7704         * opt.ads (Back_End_Handles_Limited_Types): New flag.
7706 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
7708         * sem_res.adb (Rewrite_Operator_As_Call): Do not rewrite user-defined
7709         intrinsic operator if expansion is not enabled, because in an
7710         instantiation the original operator must be present to verify the
7711         legality of the operation.
7713 2010-06-18  Robert Dewar  <dewar@adacore.com>
7715         * exp_disp.adb, sem_ch12.adb: Minor reformatting
7717 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
7719         * exp_util.adb (Make_Subtype_From_Expr): If the unconstrained type is
7720         the class-wide type for a private extension, and the completion is a
7721         subtype, set the type of the class-wide type to the base type of the
7722         full view.
7724 2010-06-18  Robert Dewar  <dewar@adacore.com>
7726         * g-socket.ads, sem_aggr.adb, einfo.ads, sem_elim.adb,
7727         sem_intr.adb, sem_eval.adb: Minor reformatting
7729 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
7731         * sem_type.adb (Is_Ancestor): If either type is private, examine full
7732         view.
7734 2010-06-18  Thomas Quinot  <quinot@adacore.com>
7736         * g-socket.adb, g-socket.ads (Check_Selector): Make Selector an IN
7737         parameter rather than IN OUT.
7739 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
7741         * exp_ch6.adb: Add extra guard.
7743 2010-06-18  Gary Dismukes  <dismukes@adacore.com>
7745         * sem_util.adb (Object_Access_Level): For Ada 2005, determine the
7746         accessibility level of a function call from the level of the innermost
7747         enclosing dynamic scope.
7748         (Innermost_Master_Scope_Depth): New function to find the depth of the
7749         nearest dynamic scope enclosing a node.
7751 2010-06-18  Tristan Gingold  <gingold@adacore.com>
7753         * adaint.c: Make ATTR_UNSET static as it is not used outside this file.
7755 2010-06-18  Thomas Quinot  <quinot@adacore.com>
7757         * g-socket.ads: Minor reformatting.
7759 2010-06-18  Vincent Celier  <celier@adacore.com>
7761         * make.adb (Must_Compile): New Boolean global variable
7762         (Main_On_Command_Line): New Boolean global variable
7763         (Collect_Arguments_And_Compile): Do compile if Must_Compile is True,
7764         even when the project is externally built.
7765         (Start_Compile_If_Possible): Compile in -aL directories if
7766         Check_Readonly_Files is True. Do compile if Must_Compile is True, even
7767         when the project is externally built.
7768         (Gnatmake): Set Must_Compile and Check_Readonly_Files to True when
7769         invoked with -f -u and one or several mains on the command line.
7770         (Scan_Make_Arg): Set Main_On_Command_Line to True when at least one
7771         main is specified on the command line.
7773 2010-06-18  Ed Schonberg  <schonberg@adacore.com>
7775         * sem_ch6.adb (Build_Body_For_Inline): Handle
7776         extended_return_statements.
7777         * exp_ch6.adb (Expand_Inlined_Call): when possible, inline a body
7778         containing extented_return statements.
7779         * exp_util.adb (Make_CW_Equivalent_Type): If the root type is already
7780         constrained, do not build subtype declaration.
7782 2010-06-18  Robert Dewar  <dewar@adacore.com>
7784         * sem_res.adb (Analyze_Indexed_Component, Analyze_Selected_Component):
7785         Warn on assigning to packed atomic component.
7787 2010-06-18  Robert Dewar  <dewar@adacore.com>
7789         * sem_util.ads: Minor reformatting
7790         * einfo.ads, einfo.adb: Minor doc clarification (scope of decls in
7791         Expression_With_Actions).
7792         * snames.ads-tmpl: Minor comment fix
7794 2010-06-18  Robert Dewar  <dewar@adacore.com>
7796         * sem_prag.adb (Diagnose_Multiple_Pragmas): New procedure
7797         (Set_Imported): Use Import_Interface_Present to control message output
7798         * sinfo.ads, sinfo.adb (Import_Interface_Present): New flag
7799         * gnat_rm.texi: Document that we can have pragma Import and pragma
7800         Interface for the same subprogram.
7802 2010-06-18  Robert Dewar  <dewar@adacore.com>
7804         * lib-xref.adb (Generate_Reference): Fix bad reference to
7805         Has_Pragma_Unreferenced (clients should always use Has_Unreferenced).
7807 2010-06-17  Eric Botcazou  <ebotcazou@adacore.com>
7809         * gcc-interface/trans.c (set_gnu_expr_location_from_node): New static
7810         function.
7811         (gnat_to_gnu) <N_Expression_With_Actions>: New case.
7812         Use set_gnu_expr_location_from_node to set location information on the
7813         result.
7815 2010-06-17  Arnaud Charlet  <charlet@adacore.com>
7817         * gcc-interface/Make-lang.in: Update dependencies.
7819 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
7821         * sem_util.adb (Is_Atomic_Object): Predicate does not apply to
7822         subprograms.
7824 2010-06-17  Robert Dewar  <dewar@adacore.com>
7826         * gnat_rm.texi, gnat_ugn.texi: Clean up documentation on warning and
7827         style check messages.
7828         * sem_res.adb (Resolve_Call): Don't call
7829         Check_For_Eliminated_Subprogram if we are analyzing within a spec
7830         expression.
7832 2010-06-17  Robert Dewar  <dewar@adacore.com>
7834         * debug.adb: Add documentation for debug flags .X and .Y
7835         * exp_ch4.adb (Expand_Short_Circuit_Operator): Use
7836         Use_Expression_With_Actions.
7837         * gnat1drv.adb (Adjust_Global_Switches): Set
7838         Use_Expression_With_Actions.
7839         * opt.ads (Use_Expression_With_Actions): New switch.
7841 2010-06-17  Robert Dewar  <dewar@adacore.com>
7843         * exp_intr.adb: Minor code reorganization (use UI_Max)
7844         * sem_intr.adb: use underlying type to check legality.
7845         * einfo.adb (Known_Static_Esize): False for generic types
7846         (Known_Static_RM_Size): False for generic types
7847         * einfo.ads (Known_Static_Esize): False for generic types
7848         (Known_Static_RM_Size): False for generic types
7850 2010-06-17  Robert Dewar  <dewar@adacore.com>
7852         * exp_ch4.ads: Minor code reorganization (specs in alpha order).
7854 2010-06-17  Robert Dewar  <dewar@adacore.com>
7856         * debug.adb: New debug flag -gnatd.X to use Expression_With_Actions
7857         node when expanding short circuit form with actions present for right
7858         opnd.
7859         * exp_ch4.adb: Minor reformatting
7860         (Expand_Short_Circuit_Operator): Use new Expression_With_Actions node
7861         if right opeand has actions present, and debug flag -gnatd.X is set.
7862         * exp_util.adb (Insert_Actions): Handle case of Expression_With_Actions
7863         node.
7864         * nlists.adb (Prepend_List): New procedure
7865         (Prepend_List_To): New procedure
7866         * nlists.ads (Prepend_List): New procedure
7867         (Prepend_List_To): New procedure
7868         * sem.adb: Add processing for Expression_With_Actions
7869         * sem_ch4.adb (Analyze_Expression_With_Actions): New procedure
7870         * sem_ch4.ads (Analyze_Expression_With_Actions): New procedure
7871         * sem_res.adb: Add processing for Expression_With_Actions.
7872         * sem_scil.adb: Add processing for Expression_With_Actions
7873         * sinfo.ads, sinfo.adb (N_Expression_With_Actions): New node.
7874         * sprint.ads, sprint.adb: Add processing for Expression_With_Actions
7876 2010-06-17  Doug Rupp  <rupp@adacore.com>
7878         * sem_intr.adb (Check_Intrinsic_Operator): Check that the types
7879         involved both have underlying integer types.
7880         * exp_intr.adb (Expand_Binary_Operator) New subprogram to expand a call
7881         to an intrinsic operator when the operand types or sizes are not
7882         identical.
7883         * s-auxdec-vms_64.ads: Revert "+" "-" ops back to Address now that
7884         64/32 Address/Integer works.
7886 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
7888         * sem_ch12.adb (Mark_Context): Refine placement of Withed_Body flag, so
7889         that it marks a unit as needed by a spec only if the corresponding
7890         instantiation appears in that spec (and not in the corresponding body).
7891         * sem_elim.adb (Check_Eliminated): If we are within a subunit, the name
7892         in the pragma Eliminate has been parsed as a child unit, but the
7893         current compilation unit is in fact the parent in which the subunit is
7894         embedded.
7896 2010-06-17  Vincent Celier  <celier@adacore.com>
7898         * gnat_rm.texi: Fix typo
7900 2010-06-17  Robert Dewar  <dewar@adacore.com>
7902         * sem_util.adb: Minor reformatting
7904 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
7906         * sem.adb (Do_Withed_Unit): if the unit in the with_clause is a generic
7907         instance, the clause now denotes the instance body. Traverse the
7908         corresponding spec because there may be no other dependence that will
7909         force the traversal of its own context.
7911 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
7913         * sem_ch10.adb (Is_Ancestor_Unit): Subsidiary to
7914         Install_Limited_Context_Clauses, to determine whether a limited_with in
7915         some parent of the current unit designates some other parent, in which
7916         case the limited_with clause must not be installed.
7917         (In_Context): Refine test.
7919 2010-06-17  Gary Dismukes  <dismukes@adacore.com>
7921         * sem_util.adb (Collect_Primitive_Operations): In the of an untagged
7922         type with a dispatching equality operator that is overridden (for a
7923         tagged full type), don't include the overridden equality in the list of
7924         primitives. The overridden equality is detected by testing for an
7925         Aliased field that references the overriding equality.
7927 2010-06-17  Robert Dewar  <dewar@adacore.com>
7929         * freeze.adb: Minor reformatting.
7931 2010-06-17  Joel Brobecker  <brobecker@adacore.com brobecker>
7933         * gnat_ugn.texi: Add a section introducing gdbserver.
7935 2010-06-17  Thomas Quinot  <quinot@adacore.com>
7937         * sem_res.adb, sem_ch4.adb, s-stoele.adb, par-labl.adb: Minor
7938         reformatting.
7940 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
7942         * sem_aggr.adb (Valid_Ancestor_Type): handle properly the case of a
7943         constrained discriminated parent that is a private type.
7944         (Analyze_Record_Aggregate): when collecting inherited discriminants,
7945         handle properly an ancestor type that is a constrained private type.
7947 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
7949         * sem_util.adb (Enclosing_Subprogram): If the called subprogram is
7950         protected, use the protected_subprogram_body only if the original
7951         subprogram has not been eliminated.
7953 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
7955         * freeze.adb (Freeze_Expression): The designated type of an
7956         access_to_suprogram type can only be frozen if all types in its profile
7957         are fully defined.
7959 2010-06-17  Robert Dewar  <dewar@adacore.com>
7961         * par.adb: Minor comment fix
7962         * sem_aggr.adb, sem_ch3.adb: Minor reformatting
7964 2010-06-17  Doug Rupp  <rupp@adacore.com>
7966         * s-auxdec-vms_64.ads: Revert Integer to Long_Integer change, instead
7967         change Address to Short_Address in functions where both must be the
7968         same size for intrinsics to work.
7970 2010-06-17  Thomas Quinot  <quinot@adacore.com>
7972         * sem_ch4.adb (Analyze_Selected_Component): A selected component may
7973         not denote a (private) component of a protected object.
7975 2010-06-17  Bob Duff  <duff@adacore.com>
7977         * par-labl.adb (Try_Loop): Test whether the label and the goto are in
7978         the same list.
7980 2010-06-17  Joel Brobecker  <brobecker@adacore.com brobecker>
7982         * gnat_ugn.texi: Update the documentation about GDB re: exception
7983         catchpoints.
7985 2010-06-17  Arnaud Charlet  <charlet@adacore.com>
7987         * gnatvsn.ads: Bump to 4.6 version.
7989 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
7991         * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): The
7992         designated type of the generated pointer is the type of the original
7993         expression, not that of the function call itself, because the return
7994         type may be an untagged  derived type and the function may be an
7995         inherited operation.
7997 2010-06-17  Robert Dewar  <dewar@adacore.com>
7999         * exp_ch4.adb: Minor reformatting.
8001 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
8003         * sinfo.ads, sinfo.adb (Inherited_Discriminant): New flag on
8004         N_Component_Association nodes, to indicate that a component association
8005         of an extension aggregate denotes the value of a discriminant of an
8006         ancestor type that has been constrained by the derivation.
8007         * sem_aggr.adb (Discr_Present): use Inherited_Discriminant to prevent a
8008         double expansion of the aggregate appearing in a context that delays
8009         expansion, to prevent double insertion of discriminant values when the
8010         aggregate is reanalyzed.
8012 2010-06-17  Arnaud Charlet  <charlet@adacore.com>
8014         * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Do not use
8015         Allocator as the Related_Node of Return_Obj_Access in call to
8016         Make_Temporary below as this would create a sort of infinite
8017         "recursion".
8019 2010-06-17  Ben Brosgol  <brosgol@adacore.com>
8021         * gnat_ugn.texi: Update gnatcheck doc.
8023 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
8025         * sem_ch3.adb (Build_Incomplete_Type_Declaration): If there is an
8026         incomplete view of the type that is not tagged, and the full type is a
8027         tagged extension, create class_wide type now, and warn that the
8028         incomplete view should be tagged as well.
8030 2010-06-17  Vincent Celier  <celier@adacore.com>
8032         * gnatcmd.adb (Non_VMS_Usage): Do not issue usage for gnat sync.
8033         Update the last line of the usage, indicating what commands do not
8034         accept project file switches.
8035         * vms_conv.adb: Do not issue usage line for GNAT SYNC
8036         * vms_data.ads: Fix errors in the qualifiers /LOGFILE and /MAIN of
8037         GNAT ELIM.
8038         * gnat_ugn.texi: Document the relaxed rules for library directories in
8039         externally built library projects.
8041 2010-06-17  Doug Rupp  <rupp@adacore.com>
8043         * s-auxdec-vms_64.ads: Make boolean and arithmetic operations intrinsic
8044         where possible.
8045         * s-auxdec-vms-alpha.adb: Remove kludges for aforemention.
8046         * gcc-interface/Makefile.in: Update VMS target pairs.
8048 2010-06-17  Vasiliy Fofanov  <fofanov@adacore.com>
8050         * adaint.c: Reorganized in order to avoid use of GetProcessId to stay
8051         compatible with Windows NT 4.0 which doesn't provide this function.
8053 2010-06-17  Vincent Celier  <celier@adacore.com>
8055         * ali-util.adb (Time_Stamp_Mismatch): In Verbose mode, if there is
8056         different timestamps but the checksum is the same, issue a short
8057         message saying so.
8059 2010-06-17  Arnaud Charlet  <charlet@adacore.com>
8061         * s-interr.adb (Finalize): If the Abort_Task signal is set to system,
8062         it means that we cannot reset interrupt handlers since this would
8063         require potentially sending the abort signal to the Server_Task.
8065 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
8067         * exp_ch4.adb: expand NOT for VMS types.
8068         * sem_util.adb: Use OpenVMS_On_Target for IS_VMS_Operator.
8070 2010-06-17  Sergey Rybin  <rybin@adacore.com>
8072         * vms_data.ads: Add qualifier for '--no-elim-dispatch' gnatelim option.
8073         * gnat_ugn.texi (gnatelim): add description for --no-elim-dispatch
8074         option.
8076 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
8078         * exp_ch6.adb (Expand_Call): Do not expand a call to an internal
8079         protected operation if the subprogram has been eliminated.
8081 2010-06-17  Vincent Celier  <celier@adacore.com>
8083         * prj-nmsc.adb (Check_Library_Attributes): Allow the different
8084         directories associated with a library to be any directory when the
8085         library project is externally built.
8087 2010-06-17  Vincent Celier  <celier@adacore.com>
8089         * make.adb (Check): If switch -m is used, deallocate the memory that
8090         may be allocated when computing the checksum.
8092 2010-06-17  Eric Botcazou  <ebotcazou@adacore.com>
8094         * g-socthi-mingw.adb (C_Recvmsg): Add 'use type' clause for C.size_t;
8095         (C_Sendmsg): Likewise.
8097 2010-06-17  Thomas Quinot  <quinot@adacore.com>
8099         * sem_res.adb: Update comments.
8101 2010-06-17  Vincent Celier  <celier@adacore.com>
8103         * back_end.adb (Scan_Compiler_Arguments): Process last argument
8105 2010-06-17  Robert Dewar  <dewar@adacore.com>
8107         * exp_ch3.adb, exp_ch6.adb, exp_smem.adb, exp_util.adb: Use Ekind_In.
8108         * layout.adb, freeze.adb: Use Make_Temporary.
8110 2010-06-17  Jerome Lambourg  <lambourg@adacore.com>
8112         * exp_ch11.adb (Expand_N_Raise_Statement): Expand raise statements in
8113         .NET/JVM normally as this is now perfectly supported by the backend.
8115 2010-06-17  Pascal Obry  <obry@adacore.com>
8117         * gnat_rm.texi: Fix minor typo, remove duplicate blank lines.
8119 2010-06-17  Vincent Celier  <celier@adacore.com>
8121         * make.adb (Collect_Arguments_And_Compile): Create include path file
8122         only when -x is specified.
8123         (Gnatmake): Ditto
8124         * opt.ads (Use_Include_Path_File): New Boolean flag, initialized to
8125         False.
8126         * prj-env.adb (Set_Ada_Paths): New Boolean parameters Include_Path and
8127         Objects_Path, defaulted to True. Only create include path file if
8128         Include_Path is True, only create objects path file if Objects_Path is
8129         True.
8130         * prj-env.ads (Set_Ada_Paths): New Boolean parameters Include_Path and
8131         Objects_Path, defaulted to True.
8132         * switch-m.adb (Scan_Make_Switches): Set Use_Include_Path_File to True
8133         when -x is used.
8135 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
8137         * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
8138         determine whether it has the controlling type, when the formal is an
8139         access parameter.
8141 2010-06-17  Eric Botcazou  <ebotcazou@adacore.com>
8143         * s-crtl.ads (ssize_t): New type.
8144         (read): Fix signature.
8145         (write): Likewise.
8146         * g-socthi.ads: Add 'with System.CRTL' clause.  Remove ssize_t and
8147         'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
8148         (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
8149         (C_Sendmsg): Likewise.
8150         * g-socthi.adb (Syscall_Recvmsg): Likewise.
8151         (Syscall_Sendmsg): Likewise.
8152         (C_Recvmsg): Likewise.
8153         (C_Sendmsg): Likewise.
8154         * g-socthi-mingw.ads: Add 'with System.CRTL' clause.  Remove ssize_t
8155         and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
8156         (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
8157         (C_Sendmsg): Likewise.
8158         * g-socthi-mingw.adb (C_Recvmsg): Likewise.
8159         (C_Sendmsg): Likewise.
8160         * g-socthi-vms.ads: Add 'with System.CRTL' clause.  Remove ssize_t and
8161         'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
8162         (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
8163         (C_Sendmsg): Likewise.
8164         * g-socthi-vms.adb (C_Recvmsg): Likewise.
8165         (C_Sendmsg): Likewise.
8166         * g-socthi-vxworks.ads Add 'with System.CRTL' clause.  Remove ssize_t
8167         and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
8168         (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
8169         (C_Sendmsg): Likewise.
8170         * g-socthi-vxworks.adb (C_Recvmsg): Likewise.
8171         (C_Sendmsg): Likewise.
8172         * g-sercom-linux.adb (Read): Use correct types to call 'read'.
8173         (Write): Likewise to call 'write'.
8174         * s-os_lib.adb (Read): Use correct type to call System.CRTL.read.
8175         (Write): Use correct type to call System.CRTL.write.
8176         * s-tasdeb.adb (Write): Likewise.
8178 2010-06-17  Vincent Celier  <celier@adacore.com>
8180         * prj-proc.adb (Copy_Package_Declarations): Change argument name
8181         Naming_Restricted to Restricted. If Restricted is True, do not copy the
8182         value of attribute Linker_Options.
8184 2010-06-17  Eric Botcazou  <ebotcazou@adacore.com>
8186         * gcc-interface/trans.c (push_stack, pop_stack): Delete.
8187         (Case_Statement_to_gnu): Adjust.
8188         (Loop_Statement_to_gnu): Likewise.
8189         (Subprogram_Body_to_gnu): Likewise.
8190         (Handled_Sequence_Of_Statements_to_gnu): Likewise.
8191         (Compilation_Unit_to_gnu): Likewise.
8193 2010-06-17  Robert Dewar  <dewar@adacore.com>
8195         * exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb, exp_prag.adb,
8196         exp_sel.adb, exp_util.adb, sem_ch10.adb, sem_ch12.adb, sem_ch13.adb,
8197         sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb, sem_ch9.adb,
8198         sem_dist.adb, sem_util.adb: Use Make_Temporary
8199         * itypes.ads, tbuild.ads: Minor comment update
8200         * exp_ch9.adb, exp_dist.adb: Minor reformatting
8202 2010-06-17  Thomas Quinot  <quinot@adacore.com>
8204         * exp_imgv.adb, exp_ch7.ads: Minor reformatting.
8206 2010-06-17  Robert Dewar  <dewar@adacore.com>
8208         * exp_ch9.adb, exp_disp.adb, exp_dist.adb: Use Make_Temporary.
8210 2010-06-17  Thomas Quinot  <quinot@adacore.com>
8212         * sprint.adb (pg): Set Dump_Freeze_Null, to be consistent with -gnatdg.
8214 2010-06-17  Robert Dewar  <dewar@adacore.com>
8216         * exp_ch6.adb, exp_ch7.adb, exp_ch5.adb: Use Make_Temporary
8217         * tbuild.ads (Make_Temporary): More comment updates
8218         * tbuild.adb: Minor reformatting
8220 2010-06-17  Robert Dewar  <dewar@adacore.com>
8222         * checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch11.adb,
8223         exp_ch3.adb, exp_ch4.adb: Minor code reorganization.
8224         Use Make_Temporary.
8225         * tbuild.ads, tbuild.adb (Make_Temporary): Clean up, use Entity_Id
8226         instead of Node_Id.
8227         (Make_Temporary): Add more extensive documentation
8229 2010-06-17  Robert Dewar  <dewar@adacore.com>
8231         * sem_intr.adb, sem_prag.adb, sem_res.adb, sem_type.adb, sem_util.adb,
8232         sem_warn.adb, sem_eval.adb: Minor reformatting.  Use Ekind_In.
8233         (Set_Slice_Subtype): Explicitly freeze the slice's itype at the point
8234         where the slice's actions are inserted.
8235         (Decompose_Expr): Account for possible rewriting of slice bounds
8236         resulting from side effects suppression caused by the above freezing,
8237         so that folding of bounds is preserved by such rewriting.
8239 2010-06-17  Robert Dewar  <dewar@adacore.com>
8241         * einfo.ads, einfo.adb (Get_Record_Representation_Clause): New
8242         function.
8243         * freeze.adb (Freeze_Record_Type): Add call to
8244         Check_Record_Representation_Clause.
8245         * sem_ch13.adb (Check_Record_Representation_Clause): New function
8246         (Analyze_Record_Representation_Clause): Split out overlap code into
8247         this new function.
8248         (Check_Component_Overlap): Moved inside
8249         Check_Record_Representation_Clause.
8250         * sem_ch13.ads (Check_Record_Representation_Clause): New function.
8252 2010-06-17  Robert Dewar  <dewar@adacore.com>
8254         * back_end.adb, sem_res.adb, switch-c.adb, sem_scil.adb: Minor
8255         reformatting.
8256         * sem_attr.adb, sem_cat.adb, sem_disp.adb, sem_elab.adb, sem_elim.adb,
8257         sem_eval.adb: Use Ekind_In
8259 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
8261         * sem_ch8.adb: better error message for illegal inherited discriminant
8263 2010-06-17  Vincent Celier  <celier@adacore.com>
8265         * bindusg.adb: Remove lines for -A and -C
8266         * gnat_ugn.texi: Remove all documentation and examples of switches -A
8267         and -C for gnatbind and gnatlink.
8268         * gnatlink.adb (Usage): Remove lines for -A and -C
8269         * switch-b.adb (Scan_Binder_Switches): Issue warning when switch -C is
8270         specified.
8271         * gcc-interface/Make-lang.in: Update dependencies.
8273 2010-06-17  Vincent Celier  <celier@adacore.com>
8275         * back_end.adb (Scan_Compiler_Arguments): Put all arguments in new
8276         local Argument_List variable Args.
8277         * switch-c.adb (Scan_Front_End_Switches): New Argument_List argument
8278         Args.
8279         (Switch_Subsequently_Cancelled): New Argument_List argument Args. Look
8280         for subsequent switches in Args.
8281         * switch-c.ads (Scan_Front_End_Switches): New Argument_List argument
8282         Args.
8283         * gcc-interface/Make-lang.in: Update dependencies.
8285 2010-06-17  Robert Dewar  <dewar@adacore.com>
8287         * einfo.adb: Minor code fix, allow E_Class_Wide_Type for
8288         Equivalent_Type to match documentation.
8290 2010-06-17  Robert Dewar  <dewar@adacore.com>
8292         * sem_ch6.adb, sem_ch7.adb: Minor reformatting.
8293         * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_ch10.adb, sem_ch12.adb,
8294         sem_ch4.adb, sem_ch8.adb, sem_ch13.adb: Make use of Ekind_In.
8296 2010-06-17  Thomas Quinot  <quinot@adacore.com>
8298         * sem_res.adb (Set_Slice_Subtype): Always freeze the slice's itype.
8300 2010-06-17  Thomas Quinot  <quinot@adacore.com>
8302         * freeze.adb (Freeze_Expression): Short circuit operators are valid
8303         freeze node insertion points.
8305 2010-06-17  Robert Dewar  <dewar@adacore.com>
8307         * switch-c.ads, switch-c.adb, sem_ch13.adb: Minor reformatting.
8308         * sem_ch12.adb: Add pragmas Assert and Check to previous change.
8310 2010-06-17  Gary Dismukes  <dismukes@adacore.com>
8312         * layout.adb (Layout_Type): Broaden test for setting an array type's
8313         Component_Size to include all scalar types, not just discrete types
8314         (components of real types were missed).
8315         * sem_ch3.adb (Constrain_Index): Add missing setting of First_Literal
8316         on the itype created for an index (consistent with Make_Index and
8317         avoids possible Assert_Failures).
8319 2010-06-17  Robert Dewar  <dewar@adacore.com>
8321         * atree.ads, atree.adb: Add 6-parameter version of Ekind_In
8322         * einfo.adb: Minor code reformatting (use Ekind_In)
8324 2010-06-17  Robert Dewar  <dewar@adacore.com>
8326         * sem_warn.adb (Test_Ref): Abandon scan if access subprogram parameter
8327         found.
8329 2010-06-17  Vincent Celier  <celier@adacore.com>
8331         * back_end.adb: Minor comment updates
8332         * switch-c.adb: Remove dependencies on gcc C sources
8333         * gcc-interface/Make-lang.in: Add a-comlin.o to the object file list
8334         for the compiler.
8336 2010-06-17  Ed Schonberg  <schonberg@adacore.com>
8338         * sem_ch12.adb: propagate Pragma_Enabled flag to generic.
8339         * get_scos.adb: Set C2 flag in decision entry of pragma to 'e'.
8340         * par_sco.ads, par_sco.adb (Set_SCO_Pragma_Enabled): New procedure
8341         Remove use of Node field in SCOs table
8342         (Output_Header): Set 'd' to initially disable pragma entry
8343         * put_scos.adb (Put_SCOs): New flag indicating if pragma is enabled
8344         * scos.ads, scos.adb: Remove Node field from internal SCOs table.
8345         Use C2 field of pragma decision header to indicate enabled.
8346         * sem_prag.adb: Add calls to Set_SCO_Pragma_Enabled.
8347         * gcc-interface/Make-lang.in: Update dependencies.
8349 2010-06-17  Vincent Celier  <celier@adacore.com>
8351         * back_end.adb (Next_Arg): Moved to procedure Scan_Compiler_Arguments
8352         (Scan_Compiler_Arguments): Call Scan_Front_End_Switches with Next_Arg
8353         (Switch_Subsequently_Cancelled): Function moved to the body of Switch.C
8354         * back_end.ads (Scan_Front_End_Switches): Function moved to the body of
8355         Switch.C.
8356         * switch-c.adb: Copied a number of global declarations from
8357         back_end.adb.
8358         (Len_Arg): New function copied from back_end.adb
8359         (Switch_Subsequently_Cancelled): New function moved from back_end.adb
8360         (Scan_Front_End_Switches): New parameter Arg_Rank used to call
8361         Switch_Subsequently_Cancelled.
8362         * switch-c.ads (Scan_Front_End_Switches): New parameter Arg_Rank.
8363         * gcc-interface/Makefile.in: Add line so that shared libgnat is linked
8364         with -lexc on Tru64.
8366 2010-06-17  Robert Dewar  <dewar@adacore.com>
8368         * prj.ads, prj.adb: Minor reformatting
8370 2010-06-17  Thomas Quinot  <quinot@adacore.com>
8372         * put_scos.adb: Do not generate a blank line in SCOs when omitting the
8373         CP line for a disabled pragma.
8375 2010-06-17  Emmanuel Briot  <briot@adacore.com>
8377         * prj-proc.adb, prj.adb, prj.ads (Check_Or_Set_Typed_Variable): New
8378         subprogram.
8379         (Process_Declarative_Item): An invalid value in an typed variable
8380         declaration is no longer always fatal.
8382 2010-06-16  Arnaud Charlet  <charlet@adacore.com>
8384         * get_scos.adb, par_sco.adb, par_sco.ads, put_scos.adb, scos.adb,
8385         scos.ads, exp_ch4.adb, sem_warn.adb: Code clean up, update
8386         documentation.
8388 2010-06-16  Javier Miranda  <miranda@adacore.com>
8390         * exp_disp.adb (Expand_Dispatching_Call): Adjust the decoration of the
8391         node referenced by the SCIL node of dispatching "=" to skip the tags
8392         comparison.
8394 2010-06-16  Ed Schonberg  <schonberg@adacore.com>
8396         * sem_ch5.adb (Analyze_Exit_Statement): Return if no enclosing loop,
8397         to prevent cascaded errors and compilation aborts.
8399 2010-06-16  Robert Dewar  <dewar@adacore.com>
8401         * back_end.adb (Switch_Subsequently_Cancelled): New function
8402         Move declarations to package body level to support this change
8403         * back_end.ads (Switch_Subsequently_Cancelled): New function
8404         * gnat_ugn.texi: Document -gnat-p switch
8405         * switch-c.adb (Scan_Front_End_Switches): Implement -gnat-p switch
8406         * ug_words: Add entry for -gnat-p (UNSUPPRESS_ALL)
8407         * usage.adb: Add line for -gnat-p switch
8408         * vms_data.ads: Add entry for UNSUPPRESS_ALL (-gnat-p)
8410 2010-06-16  Robert Dewar  <dewar@adacore.com>
8412         * sem_warn.adb (Check_Infinite_Loop_Warning): Declaration counts as
8413         modification.
8415 2010-06-16  Robert Dewar  <dewar@adacore.com>
8417         * exp_disp.adb: Minor reformatting
8419 2010-06-16  Ed Schonberg  <schonberg@adacore.com>
8421         * sem_ch3.adb (Complete_Private_Subtype): Inherit class_wide type from
8422         base type only if it was not previously created for the partial view.
8424 2010-06-16  Thomas Quinot  <quinot@adacore.com>
8426         * tbuild.ads: Minor comment fix
8428 2010-06-15  Nathan Froyd  <froydnj@codesourcery.com>
8430         * gcc-interface/trans.c (gnu_stack_free_list): Delete.
8431         (gnu_except_ptr_stack): Change type to VEC.  Update comment.
8432         (gnu_elab_proc_stack): Likewise.
8433         (gnu_return_label_stack): Likewise.
8434         (gnu_loop_label_stack): Likewise.
8435         (gnu_switch_label_stack): Likewise.
8436         (gnu_constraint_label_stack): Likewise.
8437         (gnu_storage_error_label_stack): Likewise.
8438         (gnu_program_error_label_stack): Likewise.
8439         (push_exception_label_stack): Take a VEC ** instead of a tree *.
8440         (push_stack): Likewise.  Remove unused second parameter.  Update
8441         callers.
8442         (pop_stack): Take a VEC * instead of a tree *.  Update callers.
8443         (gigi): Initialize stacks as VECs.
8444         (Identifier_to_gnu): Use VEC_last instead of TREE_VALUE.
8445         (Case_Statement_to_gnu): Likewise.
8446         (Subprogram_Body_to_gnu): Likewise.
8447         (call_to_gnu): Likewise.
8448         (Exception_Handler_to_gnu_sjlj): Likewise.
8449         (gnat_to_gnu): Likewise.
8450         (get_exception_label): Likewise.
8452 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
8454         * sem_ch3.adb (Build_Derived_Record_Type): if derived type is an
8455         anonymous base generated when the parent is a constrained discriminated
8456         type, propagate interface list to first subtype because it may appear
8457         in a current instance within the extension part of the derived type
8458         declaration, and its own subtype declaration has not been elaborated
8459         yet.
8460         * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
8461         determine whether it has the controlling type.
8463 2010-06-14  Jerome Lambourg  <lambourg@adacore.com>
8465         * exp_ch11.adb (Expand_N_Raise_Statement): Make sure that the explicit
8466         raise of CE, SE and PE have the reason correctly set and are properly
8467         expanded before stopping the expansions of .NET/JVM exceptions.
8469 2010-06-14  Robert Dewar  <dewar@adacore.com>
8471         * opt.ads (Check_Policy_List): Add some clarifying comments
8472         * sem_prag.adb (Analyze_Pragma, case Check): Set Pragma_Enabled flag
8473         on rewritten Assert pragma.
8475 2010-06-14  Gary Dismukes  <dismukes@adacore.com>
8477         * sem_ch6.adb (Check_Overriding_Indicator): Add a special check for
8478         controlled operations, so that they will be treated as overriding even
8479         if the overridden subprogram is marked Is_Hidden, as long as the
8480         overridden subprogram's parent subprogram is not hidden.
8482 2010-06-14  Robert Dewar  <dewar@adacore.com>
8484         * debug.adb: Entry for gnatw.d no longer specific for while loops
8485         * einfo.adb (First_Exit_Statement): New attribute for E_Loop
8486         * einfo.ads (First_Exit_Statement): New attribute for E_Loop
8487         * sem_ch5.adb (Analyze_Loop_Statement): Check_Infinite_Loop_Warning has
8488         new calling sequence to include test for EXIT WHEN.
8489         (Analyze_Exit_Statement): Chain EXIT statement into exit statement
8490         chain
8491         * sem_warn.ads, sem_warn.adb (Check_Infinite_Loop_Warning): Now handles
8492         EXIT WHEN case.
8493         * sinfo.adb (Next_Exit_Statement): New attribute of N_Exit_Statement
8494         node.
8495         * sinfo.ads (N_Pragma): Correct comment on Sloc field (points to
8496         PRAGMA, not to pragma identifier).
8497         (Next_Exit_Statement): New attribute of N_Exit_Statement node
8499 2010-06-14  Robert Dewar  <dewar@adacore.com>
8501         * sem_res.adb (Resolve_Short_Circuit): Fix sloc of "assertion/check
8502         would fail" msg.
8504 2010-06-14  Robert Dewar  <dewar@adacore.com>
8506         * par-ch2.adb (Scan_Pragma_Argument_Association): Clarify message for
8507         missing pragma argument identifier.
8509 2010-06-14  Robert Dewar  <dewar@adacore.com>
8511         * atree.ads, atree.adb (Ekind_In): New functions.
8513 2010-06-14  Robert Dewar  <dewar@adacore.com>
8515         * exp_ch4.adb (Expand_N_Op_Expon): Optimize 2**N in stand alone context
8517 2010-06-14  Robert Dewar  <dewar@adacore.com>
8519         * usage.adb (Usage): Redo documentation of -gnatwa.
8521 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
8523         * sem_ch8.adb (Find_Type): The attribute 'class cannot be applied to
8524         an untagged incomplete type that is a limited view.
8526 2010-06-14  Sergey Rybin  <rybin@adacore.com>
8528         * gnat_ugn.texi: Add description of '-cargs gcc_switches' to gnatstub
8529         and gnatppa.
8531 2010-06-14  Thomas Quinot  <quinot@adacore.com>
8533         * exp_ch4.adb (Expand_Short_Circuit_Operator): New subprogram,
8534         factoring duplicated code between...
8535         (Expand_N_And_Than, Expand_N_Or_Else): Remove duplicated code.
8536         * a-envvar.ads: Minor reformatting
8538 2010-06-14  Arnaud Charlet  <charlet@adacore.com>
8540         * ali.adb, ali.ads, lib-xref.ads: Document new '+' letter for C/C++
8541         static entities.
8542         (Scan_ALI): Take into account new Visibility field.
8543         (Visibility_Kind): New type.
8544         (Xref_Entity_Record): Replace Lib field by Visibility.
8546         * gcc-interface/Make-lang.in: Update dependencies.
8548 2010-06-14  Pascal Obry  <obry@adacore.com>
8550         * raise.h: Remove unused defintions.
8552 2010-06-14  Bob Duff  <duff@adacore.com>
8554         * par-ch10.adb (P_Subunit): If the next token after "separate(X)" is
8555         Tok_Not or Tok_Overriding, call P_Subprogram. We had previously given
8556         the incorrect error "proper body expected".
8557         * par-ch6.adb (P_Subprogram): Suppress "overriding indicator not
8558         allowed here" error in case of subunits, which was triggered by the
8559         above change to P_Subunit.
8561 2010-06-14  Sergey Rybin  <rybin@adacore.com>
8563         * gnat_ugn.texi, vms_data.ads: Update gnatelim doc.
8565 2010-06-14  Thomas Quinot  <quinot@adacore.com>
8567         * lib-util.adb: Minor code reorganization.
8569 2010-06-14  Robert Dewar  <dewar@adacore.com>
8571         * ali.adb (Scan_ALI): Implement reading and storing of N lines
8572         (Known_ALI_Lines): Add entry for 'N' (notes)
8573         * ali.ads (Notes): New table to store Notes information
8574         * alloc.ads: Add entries for Notes table
8575         * lib-util.adb (Write_Info_Int): New procedure
8576         (Write_Info_Slit): New procedure
8577         (Write_Info_Uint): New procedure
8578         * lib-util.ads (Write_Info_Int): New procedure
8579         (Write_Info_Slit): New procedure
8580         (Write_Info_Uint): New procedure
8581         * lib-writ.adb (Write_Unit_Information): Output N (notes) lines
8582         * lib-writ.ads: Update documentation for N (Notes) lines
8583         * lib.adb (Store_Note): New procedure
8584         * lib.ads (Notes): New table
8585         (Store_Note): New procedure
8586         * sem_prag.adb: Call Store_Note for affected pragmas
8588 2010-06-14  Thomas Quinot  <quinot@adacore.com>
8590         * socket.c: Fix wrong condition in #ifdef
8591         * g-socket.adb, g-sothco.ads: Functions imported from socket.c that
8592         take or return char* values can't use Interfaces.C.Strings.chars_ptr,
8593         because on VMS this type is a 32-bit pointer which is not compatible
8594         with the default for C pointers for code compiled with gcc on that
8595         platform.
8597 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
8599         * sem_util (Is_VMS_Operator): New predicate to determine whether an
8600         operator is an intrinsic operator declared in the DEC system extension.
8601         * sem_res.adb (Resolve_Logical_Op): operation is legal on signed types
8602         if the operator is a VMS intrinsic.
8603         * sem_eval.adb (Eval_Logical_Op): Operation is legal and be
8604         constant-folded if the operands are signed and the operator is a VMS
8605         intrinsic.
8607 2010-06-14  Robert Dewar  <dewar@adacore.com>
8609         * g-socket.adb, gnatcmd.adb: Minor reformatting.
8611 2010-06-14  Pascal Obry  <obry@adacore.com>
8613         * s-finimp.adb: Fix typo.
8614         * raise.h: Remove duplicate blank line.
8616 2010-06-14  Vincent Celier  <celier@adacore.com>
8618         * prj-nmsc.adb (Add_Sources): Always set the object file and the
8619         switches file names, as the configuration of the language may change
8620         in an extending project.
8621         (Process_Naming_Scheme): For sources of projects that are extended, set
8622         the configuration of the language from the highest extending project
8623         where the language is declared.
8625 2010-06-14  Gary Dismukes  <dismukes@adacore.com>
8627         * sem_res.adb (Resolve_Call): For infinite recursion check, test
8628         whether the called subprogram is inherited from a containing
8629         subprogram.
8630         (Same_Or_Aliased_Subprograms): New function
8632 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
8634         * sem_ch8.adb (End_Use_Type): Before indicating that an operator is not
8635         use-visible, check whether it is a primitive for more than one type.
8637 2010-06-14  Robert Dewar  <dewar@adacore.com>
8639         * sem_ch3.adb (Copy_And_Swap): Copy Has_Pragma_Unmodified flag.
8641         * sem_ch7.adb (Preserve_Full_Attributes): Preserve
8642         Has_Pragma_Unmodified flag.
8644 2010-06-14  Thomas Quinot  <quinot@adacore.com>
8646         * g-sttsne-locking.adb, g-sttsne-locking.ads, g-sttsne.ads,
8647         g-sttsne-vxworks.adb, g-sttsne-dummy.ads: Removed. Mutual exclusion is
8648         now done in GNAT.Sockets if necessary.
8649         * gsocket.h, g-socket.adb, g-sothco.ads (GNAT.Sockets.Get_XXX_By_YYY):
8650         Ensure mutual exclusion for netdb operations if the target platform
8651         requires it.
8652         (GNAT.Sockets.Thin_Common): New binding for getXXXbyYYY, treating
8653         struct hostent as an opaque type to improve portability.
8654         * s-oscons-tmplt.c, socket.c: For the case of Vxworks, emulate
8655         gethostbyYYY using proprietary VxWorks API so that a uniform interface
8656         is available for the Ada side.
8657         * gcc-interface/Makefile.in: Remove g-sttsne-*
8658         * gcc-interface/Make-lang.in: Update dependencies.
8660 2010-06-14  Vincent Celier  <celier@adacore.com>
8662         * gnatcmd.adb (Mapping_File): New function.
8664 2010-06-14  Javier Miranda  <miranda@adacore.com>
8666         * sem_ch3.adb (Derive_Subprograms): Remove over-restrictive assertion.
8668 2010-06-14  Arnaud Charlet  <charlet@adacore.com>
8670         * ali.adb: Fix typo.
8671         * s-auxdec-vms-alpha.adb, scng.ads: Minor reformatting.
8673 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
8675         * sem_ch12.adb: Make Mark_Context transitive, and apply to subprogram
8676         instances.
8678         * sem_ch8.adb (Find_Expanded_Name): If a candidate compilation unit in
8679         the context does not have a homonym of the selector, emit default
8680         error message.
8682 2010-06-14  Robert Dewar  <dewar@adacore.com>
8684         * sem.adb, sem_ch12.adb, sem_util.adb: Minor reformatting and
8685         comment addition.
8687 2010-06-14  Arnaud Charlet  <charlet@adacore.com>
8689         * lib-xref.ads: Doc updates:
8690          - Allocate 'Q' for #include entity kind
8691          - Free 'Z'
8692          - Allocate 'g' for regular macros
8693          - Allocate 'G' for function-like macros
8695 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
8697         * sinfo.ads, sinfo.adb (Withed_Body): New attribute of a with_clause.
8698         Indicates that there is an instantiation in the current unit that
8699         loaded the body of the unit denoted by the with_clause.
8700         * sem_ch12.adb (Mark_Context): When instanting a generic body, check
8701         whether a with_clause in the current context denotes the unit that
8702         holds the generic declaration, and mark the with_clause accordingly.
8703         (Instantiate_Package_Body): call Mark_Context.
8704         * sem.adb (Process_Bodies_In_Context): Use Withed_Body to determine
8705         whether a given body should be traversed before the spec of the main
8706         unit.
8708 2010-06-14  Ed Falis  <falis@adacore.com>
8710         * sysdep.c: Fix 653 build against vThreads headers.
8712 2010-06-14  Robert Dewar  <dewar@adacore.com>
8714         * sinfo.ads: Minor reformatting.
8716 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
8718         * sem_ch6.adb (Analyze_Subprogram_Body): Do not check conformance when
8719         the spec has been generated for a body without spec that carries an
8720         Inline_Always pragma.
8722 2010-06-14  Arnaud Charlet  <charlet@adacore.com>
8724         * lib-xref.ads: Documentation change: allocate 'Z' letter to C/C++
8725         macro.
8727 2010-06-14  Jerome Lambourg  <lambourg@adacore.com>
8729         * exp_dbug.adb (Debug_Renaming_Declaration): Do not output any debug
8730         declaration for VMs, as those are useless and might lead to duplicated
8731         local variable names in the generated code.
8732         * gcc-interface/Make-lang.in: Update dependencies.
8734 2010-06-14  Robert Dewar  <dewar@adacore.com>
8736         * opt.ads, sem.adb, sem_elab.adb: Minor reformatting
8738 2010-06-14  Robert Dewar  <dewar@adacore.com>
8740         * exp_aggr.adb (Has_Address_Clause): Moved to Exp_Util, and there it
8741         is renamed as Has_Following_Address_Clause.
8742         * exp_ch3.adb (Needs_Simple_Initialization): Add Consider_IS argument
8743         to allow the caller to avoid Initialize_Scalars having an effect.
8744         (Expand_N_Object_Declaration): Do not do Initialize_Scalars stuff for
8745         scalars with an address clause specified.
8746         * exp_ch3.ads (Needs_Simple_Initialization): Add Consider_IS argument
8747         to allow the caller to avoid Initialize_Scalars having an effect.
8748         * exp_util.adb (Has_Following_Address_Clause): Moved here from Exp_Aggr
8749         (where it was called Has_Address_Clause).
8750         * exp_util.ads (Has_Following_Address_Clause): Moved here from Exp_Aggr
8751         (where it was called Has_Address_Clause).
8752         * freeze.adb (Warn_Overlay): Suppress message about overlaying causing
8753         problems for Initialize_Scalars (since we no longer initialize objects
8754         with an address clause.
8756 2010-06-14  Robert Dewar  <dewar@adacore.com>
8758         * exp_prag.adb (Expand_Pragma_Check): Set Loc of generated code from
8759         condition.
8761 2010-06-14  Gary Dismukes  <dismukes@adacore.com>
8763         * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Debug_Info_Needed
8764         on the entity of an implicitly generated postcondition procedure.
8766 2010-06-14  Thomas Quinot  <quinot@adacore.com>
8768         * sem_ch7.adb (Preserve_Full_Attributes): Propagate
8769         Discriminant_Constraint elist from full view to private view.
8771 2010-06-14  Robert Dewar  <dewar@adacore.com>
8773         * sem_res.adb: Minor reformatting.
8775 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
8777         * sem.adb: New version of unit traversal.
8779         * sem_elab.adb (Check_Internal_Call): Do not place a call appearing
8780         within a generic unit in the table of delayed calls.
8782 2010-06-14  Robert Dewar  <dewar@adacore.com>
8784         * gnatcmd.adb, sem_util.adb, exp_ch3.adb: Minor reformatting
8786 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
8788         * sem_ch12.adb (Save_References): If an identifier has been rewritten
8789         during analysis as an explicit dereference, keep the reference implicit
8790         in the generic, but preserve the entity if global. This prevents
8791         malformed generic trees in the presence of some nested generics.
8793 2010-06-14  Sergey Rybin  <rybin@adacore.com>
8795         * gnat_ugn.texi: For the GNAT driver, clarify the effect of calling the
8796         tool with '-files=' option. Also fix some small errors (wrong brackets)
8798 2010-06-14  Vincent Celier  <celier@adacore.com>
8800         * gnatbind.adb: Call Scan_ALI with Directly_Scanned set to True for all
8801         the ALI files on the command line.
8803         * ali.adb (Scan_ALI): Set component Directly_Scanned of the unit(s) to
8804         the same value as the parameter of the same name.
8805         * ali.ads (Scan_ALI): New Boolean parameter Directly_Scanned, defaulted
8806         to False.
8807         * bindgen.adb (Gen_Versions_Ada): Never emit version symbols for
8808         Stand-Alone Library interfaces. When binding Stand-Alone Libraries,
8809         emit version symbols only for the units of the library.
8810         (Gen_Versions_C): Ditto.
8812 2010-06-14  Gary Dismukes  <dismukes@adacore.com>
8814         * sem_ch4.adb: Fix typo.
8816 2010-06-14  Vasiliy Fofanov  <fofanov@adacore.com>
8818         * s-oscons-tmplt.c (IOV_MAX): redefine on Tru64 and VMS since the
8819         vector IO doesn't work at default value properly.
8821 2010-06-14  Doug Rupp  <rupp@adacore.com>
8823         * s-stoele.adb: Remove unnecessary qualification of To_Address for VMS.
8825 2010-06-14  Vincent Celier  <celier@adacore.com>
8827         * gnatcmd.adb (Check_Files): Do not invoke the tool with all the
8828         sources of the project if a switch -files= is used.
8830 2010-06-14  Thomas Quinot  <quinot@adacore.com>
8832         * exp_attr.adb: Minor reformatting.
8834 2010-06-14  Gary Dismukes  <dismukes@adacore.com>
8836         * gnat_ugn.texi: Minor typo fixes and wording changes.
8838 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
8840         * sem_ch4.adb (Analyze_One_Call): If the call has been rewritten from a
8841         prefixed form, do not re-analyze first actual, which may need an
8842         implicit dereference.
8843         * sem_ch6.adb (Analyze_Procedure_Call): If the call is given in
8844         prefixed notation, the analysis will rewrite the node, and possible
8845         errors appear in the rewritten name of the node.
8846         * sem_res.adb: If a call is ambiguous because its first parameter is
8847         an overloaded call, report list of candidates, to clarify ambiguity of
8848         enclosing call.
8850 2010-06-14  Doug Rupp  <rupp@adacore.com>
8852         * s-auxdec-vms-alpha.adb: New package body implementing legacy
8853         VAX instructions with Asm insertions.
8854         * s-auxdec-vms_64.ads: Inline VAX queue functions
8855         * s-stoele.adb: Resolve some ambiguities in To_Addresss with s-suxdec
8856         that show up only on VMS.
8857         * gcc-interface/Makefile.in: Provide translation for
8858         s-auxdec-vms-alpha.adb.
8860 2010-06-14  Olivier Hainque  <hainque@adacore.com>
8862         * initialize.c (VxWorks section): Update comments.
8864 2010-06-14  Robert Dewar  <dewar@adacore.com>
8866         * a-convec.adb, sem_prag.adb, checks.adb: Minor reformatting.
8868 2010-06-14  Eric Botcazou  <ebotcazou@adacore.com>
8870         * init.c: Code clean up.
8872 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
8874         * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address): Do
8875         not insert address clause in table for later validation if type of
8876         entity is generic, to prevent possible spurious errors. 
8878         * sem_ch8.adb: Code clean up.
8880 2010-06-14  Ben Brosgol  <brosgol@adacore.com>
8882         * gnat_ugn.texi: Expanded @ovar macro inline to solve problem with
8883         texi2pdf and texi2html.
8884         Document how to change scheduling properties on HP-UX.
8886 2010-06-14  Thomas Quinot  <quinot@adacore.com>
8888         * g-socket.ads: Remove misleading comments.
8890 2010-06-14  Jerome Lambourg  <lambourg@adacore.com>
8892         * sem_prag.adb (Check_Duplicated_Export_Name): Remove check for
8893         CLI_Target as this prevents proper detection of exported names
8894         duplicates when the exported language is different to CIL.
8895         (Process_Interface_Name): Add check for CIL convention exports,
8896         replacing the old one from Check_Duplicated_Export_Name.
8898 2010-06-14  Matthew Heaney  <heaney@adacore.com>
8900         * a-coinve.adb, a-convec.adb (operator "&"): Check both that new length
8901         and new last satisfy constraints.
8902         (Delete_Last): prevent overflow for subtraction of index values
8903         (To_Vector): prevent overflow for addition of index values
8905 2010-06-14  Ed Schonberg  <schonberg@adacore.com>
8907         * sem_ch4.adb (Complete_Object_Operation): After analyzing the
8908         rewritten call, preserve the resulting type to prevent spurious errors,
8909         when the call is implicitly dereferenced in the context of an in-out
8910         actual.
8912         * checks.adb (Apply_Discriminant_Check): If the target of the
8913         assignment is a renaming of a heap object, create constrained type for
8914         it to apply check.
8916 2010-06-14  Pascal Obry  <obry@adacore.com>
8918         * prj-proc.adb: Fix copy of object directory for extending projects.
8920 2010-06-14  Jose Ruiz  <ruiz@adacore.com>
8922         * init.c (__gnat_alternate_stack): Define this space for PowerPC linux
8923         (__gnat_install_handler, PowerPC linux): Activate the alternative
8924         signal stack.
8926 2010-06-13  Gerald Pfeifer  <gerald@pfeifer.com>
8928         * gnat_rm.texi: Move to GFDL version 1.3.
8929         * gnat-style.texi: Ditto.
8930         * gnat_ugn.texi: Ditto.
8932 2010-06-12  Kai Tietz  <kai.tietz@onevision.com>
8934         PR ada/43731
8935         * gcc-interface/Makefile.in: Add rules for multilib x86/x64
8936         mingw targets.
8938 2010-06-11  Alexandre Oliva  <aoliva@redhat.com>
8940         * gcc-interface/utils.c (update_pointer_to): Initialize last.
8942 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
8944         * gcc-interface/ada-tree.h: Fix formatting nits.
8946 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
8948         * gcc-interface/utils.c (init_gnat_to_gnu): Use typed GC
8949         allocation.
8950         (init_dummy_type): Likewise.
8951         (gnat_pushlevel): Likewise.
8953         * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
8954         (Subprogram_Body_to_gnu): Likewise.
8955         (Compilation_Unit_to_gnu): Likewise.
8956         (start_stmt_group): Likewise.
8957         (extract_encoding): Likewise.
8958         (decode_name): Likewise.
8960         * gcc-interface/misc.c (gnat_printable_name): Likewise.
8962         * gcc-interface/decl.c (annotate_value): Likewise.
8964         * gcc-interface/ada-tree.h (struct lang_type): Add variable_size
8965         GTY option.
8966         (struct lang_decl): Likewise.
8967         (SET_TYPE_LANG_SPECIFIC): Use typed GC allocation.
8968         (SET_DECL_LANG_SPECIFIC): Likewise.
8970 2010-06-04  Eric Botcazou  <ebotcazou@adacore.com>
8972         * gnatlink.adb (gnatlink): Remove support for -fsjlj switch.
8973         * gcc-interface/lang-specs.h: Likewise.
8975 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
8977         PR c++/44294
8978         * gcc-interface/decl.c (MAX_FIXED_MODE_SIZE): Removed.
8980 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
8982         * gnat_ugn.texi: Improve doc on -fdump-ada-spec, mention limitations.
8984 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
8986         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Task_Type>: Reuse the
8987         TYPE_DECL of the equivalent type instead of building a new one.
8989 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
8991         * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust warning message.
8992         Fix nits in comments.
8993         * gcc-interface/misc.c (gnat_init_gcc_eh): Likewise.
8994         * gcc-interface/trans.c (gigi): Likewise.
8995         (Attribute_to_gnu): Likewise.
8996         (Case_Statement_to_gnu): Likewise.
8997         (gnat_to_gnu): Adjust warning message.
8998         * gcc-interface/utils.c (create_var_decl_1): Fix nits in comments.
8999         (build_vms_descriptor32): Likewise.
9001 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
9003         * gcc-interface/decl.c: Pretend to be a backend file by undefining
9004         IN_GCC_FRONTEND (still need rtl.h here).
9006 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
9008         * gcc-interface/trans.c: Do not include rtl.h, insclude libfuncs.h.
9009         (gigi): Adjust call to set_stack_check_libfunc.
9011 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
9013         * gcc-interface/utils.c: Do not include rtl.h.
9015 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
9017         * gcc-interface/utils.c: Do not include function.h, pointer-set.h,
9018         and gimple.h.  Explain why rtl.h has to be included.
9019         (handle_vector_size_attribute): Call reconstruct_complex_type directly.
9020         * gcc-interface/targtyps.c: Do not include tm_p.h
9021         * gcc-interface/utils2.c: Do not include flags.h.
9022         * gcc-interface/trans.c: Do not include expr.h.  Include rtl.h instead,
9023         and explain why it has to be included.
9024         * gcc-interface/misc.c: Do not include expr.h, libfuncs.h, cgraph.h,
9025         and optabs.h.
9026         Include function.h and explain why.  Explain why except.h is included.
9027         (enumerate_modes): Remove unused function. 
9028         * gcc-interface/gigi.h (enumerate_modes): Remove prototype.
9029         * gcc-interface/Make-lang.in: Update dependencies.
9031 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
9033         * gcc-interface/misc.c (internal_error_function): Add context
9034         parameter.  Use it to access show_column flag and instead of using
9035         global_dc.  Call warn_if_plugins.
9036         * gcc-interface/Make-lang.in (ada/misc.o): Update dependencies.
9038 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
9040         * gcc-interface/misc.c (LANG_HOOKS_DEEP_UNSHARING): Redefine.
9041         * gcc-interface/trans.c (unshare_save_expr): Delete.
9042         (gigi): Do not unshare trees under SAVE_EXPRs here.
9044 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
9046         * gcc-interface/trans.c (call_to_gnu): Use build_call_vec instead of
9047         build_call_list.
9048         * gcc-interface/utils.c (build_function_stub): Likewise.
9050 2010-05-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9052         * gcc-interface/misc.c (gnat_handle_option): Remove special logic
9053         for Wuninitialized without -O.
9054         
9055 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
9057         * gcc-interface/gigi.h (enum standard_datatypes): Add new value
9058         ADT_exception_data_name_id.
9059         (exception_data_name_id): New define.
9060         * gcc-interface/trans.c (gigi): Initialize it.
9061         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use the standard
9062         exception type for standard exception definitions.  Do not make them
9063         volatile.
9064         <E_Record_Type>: Equate fields of types associated with an exception
9065         definition to those of the standard exception type.
9067 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
9069         * tracebak.c (__gnat_backtrace): Mark top_stack with ATTRIBUTE_UNUSED.
9071 2010-05-12  Eric Botcazou  <ebotcazou@adacore.com>
9073         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Tidy up
9074         code, improve comments and fix formatting nits.
9076 2010-05-12  Eric Botcazou  <ebotcazou@adacore.com>
9078         * gcc-interface/utils.c (update_pointer_to): Return early if the old
9079         pointer already points to the new type.  Chain the old pointer and its
9080         variants at the end of new pointer's chain after updating them.
9082 2010-05-10  Eric Botcazou  <ebotcazou@adacore.com>
9084         * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables
9085         built for interfaces.
9086         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Use
9087         imported_p instead of Is_Imported when considering constants.
9088         Do not promote alignment of exported objects.
9089         <E_Record_Subtype>: Strip all suffixes for dispatch table entities.
9091 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
9093         * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables.
9094         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Make imported
9095         constants really constant.
9096         <E_Record_Subtype>: Strip the suffix for dispatch table entities.
9098 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
9100         * gcc-interface/decl.c (make_aligning_type): Declare the type.
9102 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
9104         * gcc-interface/decl.c (gnat_to_gnu_entity): Create variables for size
9105         expressions of variant part of record types declared at library level.
9107 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
9109         * gcc-interface/gigi.h (create_field_decl): Move PACKED parameter.
9110         * gcc-interface/utils.c (create_field_decl): Move PACKED parameter.
9111         (rest_of_record_type_compilation): Adjust call to create_field_decl.
9112         (make_descriptor_field): Likewise and pass correctly typed constants.
9113         (build_unc_object_type): Likewise.
9114         (unchecked_convert): Likewise.
9115         * gcc-interface/decl.c (elaborate_expression_2): New static function.
9116         (gnat_to_gnu_entity): Use it to make alignment factors explicit.
9117         Adjust call to create_field_decl.
9118         (make_aligning_type): Likewise.
9119         (make_packable_type): Likewise.
9120         (maybe_pad_type): Likewise.
9121         (gnat_to_gnu_field): Likewise.
9122         (components_to_record): Likewise.
9123         (create_field_decl_from): Likewise.
9124         (create_variant_part_from): Remove superfluous test.
9125         * gcc-interface/trans.c (gigi): Adjust call to create_field_decl.
9127 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
9129         * gcc-interface/gigi.h (build_unc_object_type): Add DEBUG_INFO_P param.
9130         (build_unc_object_type_from_ptr): Likewise.
9131         * gcc-interface/utils.c (build_unc_object_type): Add DEBUG_INFO_P param
9132         and pass it to create_type_decl.  Declare the type.  Simplify.
9133         (build_unc_object_type_from_ptr): Add DEBUG_INFO_P parameter and pass
9134         it to build_unc_object_type.
9135         * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust to above change.
9136         * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
9137         (gnat_to_gnu): Likewise.
9138         * gcc-interface/utils2.c (build_allocator): Likewise.
9140 2010-05-07  Eric Botcazou  <ebotcazou@adacore.com>
9142         PR 40989
9143         * gcc-interface/misc.c (gnat_handle_option): Fix long line.
9145 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9147         * gcc-interface/Makefile.in: Removed mips-sgi-irix5* support.
9149 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9151         PR 40989
9152         * gcc-interface/misc.c (gnat_handle_option): Add argument kind.
9154 2010-05-02  Giuseppe Scrivano  <gscrivano@gnu.org>
9156         * gnathtml.pl: Use 755 as mask for new directories.
9158 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
9160         * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Uniquize
9161         constant constructors before taking their address.
9163 2010-04-25  Eric Botcazou  <ebotcazou@adacore.com>
9165         * exp_dbug.ads: Fix outdated description.  Mention link between XVS
9166         and XVZ objects.
9167         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Set
9168         XVZ variable as unit size of XVS type.
9169         (maybe_pad_type): Likewise.
9171 2010-04-25  Eric Botcazou  <ebotcazou@adacore.com>
9173         * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Do not
9174         use memmove if the array type is bit-packed.
9176 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
9178         * gcc-interface/misc.c (gnat_init): Remove second argument in call to
9179         build_common_tree_nodes.
9181 2010-04-18  Ozkan Sezer  <sezeroz@gmail.com>
9183         * gsocket.h: Make sure that winsock2.h is included before windows.h.
9185 2010-04-17  Eric Botcazou  <ebotcazou@adacore.com>
9187         * gcc-interface/utils2.c (build_unary_op) <ATTR_ADDR_EXPR>: Do not
9188         issue warning.
9190 2010-04-17  Eric Botcazou  <ebotcazou@adacore.com>
9192         * uintp.h (UI_Lt): Declare.
9193         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do the size
9194         computation in sizetype.
9195         <E_Array_Subtype>: Use unified handling for all index types.  Do not
9196         generate MAX_EXPR-based expressions, only COND_EXPR-based ones.  Add
9197         bypass for PATs.
9198         (annotate_value): Change test for negative values.
9199         (validate_size): Apply test for negative values on GNAT nodes.
9200         (set_rm_size): Likewise.
9201         * gcc-interface/misc.c (gnat_init): Set unsigned types for sizetypes.
9202         * gcc-interface/utils.c (rest_of_record_type_compilation): Change test
9203         for negative values.
9204         (max_size) <MINUS_EXPR>: Do not reassociate a COND_EXPR on the LHS.
9205         (builtin_type_for_size): Adjust definition of signed_size_type_node.
9206         * gcc-interface/utils2.c (compare_arrays): Optimize comparison of
9207         lengths against zero.
9209 2010-04-17  Eric Botcazou  <ebotcazou@adacore.com>
9211         * back-end.adb (Call_Back_End): Pass Standard_Character to gigi.
9212         * gcc-interface/gigi.h (gigi): Add standard_character parameter.
9213         (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE, 
9214         LONG_LONG_TYPE_SIZE, FLOAT_TYPE_SIZE, DOUBLE_TYPE_SIZE,
9215         LONG_DOUBLE_TYPE_SIZE, SIZE_TYPE): Delete.
9216         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Call
9217         rm_size.
9218         * gcc-interface/misc.c (gnat_init): Set signedness of char as per
9219         flag_signed_char.  Tag sizetype with "size_type" moniker.
9220         * gcc-interface/trans.c (gigi): Add standard_character parameter.
9221         Remove useless built-in types.  Equate unsigned_char_type_node to
9222         Standard.Character.  Use it instead of char_type_node throughout.
9223         (Attribute_to_gnu): Likewise.
9224         (gnat_to_gnu): Likewise.
9225         * gcc-interface/utils2.c (build_call_raise): Likewise.
9227 2010-04-17  Eric Botcazou  <ebotcazou@adacore.com>
9229         * gcc-interface/gigi.h (enum standard_datatypes): Add new values
9230         ADT_sbitsize_one_node and ADT_sbitsize_unit_node.
9231         (sbitsize_one_node): New macro.
9232         (sbitsize_unit_node): Likewise.
9233         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Fix
9234         latent bug in the computation of subrange_p.  Fold wider_p predicate.
9235         (cannot_be_superflat_p): Use an explicitly signed 64-bit type to do
9236         the final comparison.
9237         (make_aligning_type): Build real negation and use sizetype throughout
9238         the offset computation.
9239         (maybe_pad_type): Do not issue the warning when the new size expression
9240         is too complex.
9241         (annotate_value) <INTEGER_CST>: Simplify code handling negative values.
9242         * gcc-interface/misc.c (gnat_init): Initialize sbitsize_one_node and
9243         sbitsize_unit_node.
9244         * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Pool_Address>: Fold
9245         double negation.
9246         (gnat_to_gnu) <N_Free_Statement>: Likewise.
9247         * gcc-interface/utils.c (convert): Use sbitsize_unit_node.
9248         * gcc-interface/utils2.c (compare_arrays): Compute real lengths and use
9249         constants in sizetype.  Remove dead code and tweak comments.  Generate
9250         equality instead of inequality comparisons for zero length tests.
9252 2010-04-16  Eric Botcazou  <ebotcazou@adacore.com>
9254         * gcc-interface/gigi.h (gnat_init_decl_processing): Delete.
9255         * gcc-interface/decl.c (gnat_to_gnu_entity): Constify a few variables.
9256         <object>: Do not create the fake PARM_DECL if no debug info is needed.
9257         Do not create the corresponding VAR_DECL of a CONST_DECL for debugging
9258         purposes if no debug info is needed.
9259         Fix formatting.  Reorder and add comments.
9260         * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Reference>: Constify
9261         variable and remove obsolete comment.
9262         * gcc-interface/utils.c (convert_vms_descriptor64): Tweak comment.
9263         (convert_vms_descriptor32): Likewise.
9264         (convert): Remove dead code.
9265         <UNCONSTRAINED_ARRAY_REF>: Pass the field instead of its name to build
9266         the reference to the P_ARRAY pointer.
9267         <POINTER_TYPE>: Likewise.
9268         (maybe_unconstrained_array) <UNCONSTRAINED_ARRAY_TYPE>: Likewise.
9269         (gnat_init_decl_processing): Delete, move contents to...
9270         * gcc-interface/misc.c (gnat_init): ...here.
9272 2010-04-16  Eric Botcazou  <ebotcazou@adacore.com>
9274         * gcc-interface/trans.c (unchecked_conversion_nop): Handle function
9275         calls.  Return true for conversion from a record subtype to its type.
9277 2010-04-16  Eric Botcazou  <ebotcazou@adacore.com>
9279         * gcc-interface/decl.c (gnat_to_gnu_entity): Use boolean_type_node in
9280         lieu of integer_type_node for boolean operations.
9281         (choices_to_gnu): Likewise.
9282         * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
9283         (Loop_Statement_to_gnu): Likewise.
9284         (establish_gnat_vms_condition_handler): Likewise.
9285         (Exception_Handler_to_gnu_sjlj): Likewise.
9286         (gnat_to_gnu): Likewise.
9287         (build_unary_op_trapv): Likewise.
9288         (build_binary_op_trapv): Likewise.
9289         (emit_range_check): Likewise.
9290         (emit_index_check): Likewise.
9291         (convert_with_check): Likewise.
9292         * gcc-interface/utils.c (convert_vms_descriptor64): Likewise.
9293         (convert_vms_descriptor32): Likewise.
9294         (convert_vms_descriptor): Likewise.
9295         * gcc-interface/utils2.c (nonbinary_modular_operation): Likewise.
9296         (compare_arrays): Use boolean instead of integer constants.
9297         (build_binary_op) <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR,
9298         TRUTH_OR_EXPR, TRUTH_XOR_EXPR>: New case.  Check that the result type
9299         is a boolean type.
9300         <GE_EXPR, LE_EXPR, GT_EXPR, LT_EXPR>: Remove obsolete assertion.
9301         <EQ_EXPR, NE_EXPR>: Check that the result type is a boolean type.
9302         <PREINC/PREDECREMENT_EXPR, POSTINC/POSTDECREMENT_EXPR>: Delete.
9303         <TRUTH_NOT_EXPR>: Check that the result type is a boolean type.
9304         (build_unary_op): Use boolean_type_node in lieu of integer_type_node
9305         for boolean operations.
9306         (fill_vms_descriptor): Likewise.  Fix formatting nits.
9308 2010-04-16  Eric Botcazou  <ebotcazou@adacore.com>
9310         * gcc-interface/ada-tree.def (LOOP_STMT): Change to 4-operand nodes.
9311         * gcc-interface/ada-tree.h (LOOP_STMT_TOP_COND, LOOP_STMT_BOT_COND):
9312         Merge into...
9313         (LOOP_STMT_COND): ...this.
9314         (LOOP_STMT_BOTTOM_COND_P): New flag.
9315         (LOOP_STMT_TOP_UPDATE_P): Likewise.
9316         * gcc-interface/trans.c (can_equal_min_or_max_val_p): New function.
9317         (can_equal_min_val_p): New static inline function.
9318         (can_equal_max_val_p): Likewise.
9319         (Loop_Statement_to_gnu): Use build4 in lieu of build5 and adjust to
9320         new LOOP_STMT semantics.  Use two different strategies depending on
9321         whether optimization is enabled to translate the loop.
9322         (gnat_gimplify_stmt) <LOOP_STMT>: Adjust to new LOOP_STMT semantics.
9324 2010-04-16  Eric Botcazou  <ebotcazou@adacore.com>
9326         * uintp.adb (UI_From_Dint): Remove useless code.
9327         (UI_From_Int): Likewise.
9328         * uintp.h: Reorder declarations.
9329         (UI_From_gnu): Declare.
9330         (UI_Base): Likewise.
9331         (Vector_Template): Likewise.
9332         (Vector_To_Uint): Likewise.
9333         (Uint_0): Remove.
9334         (Uint_1): Likewise.
9335         * gcc-interface/gigi.h: Tweak comments.
9336         * gcc-interface/cuintp.c (UI_From_gnu): New global function.
9337         * gcc-interface/decl.c (maybe_pad_type): Do not warn if either size
9338         overflows.
9339         (annotate_value) <INTEGER_CST>: Call UI_From_gnu.
9340         * gcc-interface/trans.c (post_error_ne_num): Call post_error_ne.
9341         (post_error_ne_tree): Call UI_From_gnu and post_error_ne.
9342         * gcc-interface/utils.c (max_size) <tcc_binary>: Do not special-case
9343         TYPE_MAX_VALUE.
9345 2010-04-16  Eric Botcazou  <ebotcazou@adacore.com>
9347         * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Just copy
9348         TYPE_NAME.
9349         * gcc-interface/trans.c (smaller_packable_type_p): Rename into...
9350         (smaller_form_type_p): ...this.  Change parameter and variable names.
9351         (call_to_gnu): Use the nominal type of the parameter to create the
9352         temporary if it's a smaller form of the actual type.
9353         (addressable_p): Return false if the actual type is integral and its
9354         size is greater than that of the expected type.
9356 2010-04-15  Eric Botcazou  <ebotcazou@adacore.com>
9358         * gcc-interface/cuintp.c (UI_To_gnu): Fix long line.
9359         * gcc-interface/gigi.h (MARK_VISITED): Skip objects of constant class.
9360         (process_attributes): Delete.
9361         (post_error_ne_num): Change parameter name.
9362         * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force debug info
9363         with -g3.  Remove a couple of obsolete lines.  Minor tweaks.
9364         If type annotating mode, operate on trees to compute the adjustment to
9365         the sizes of tagged types.  Fix long line.
9366         (cannot_be_superflat_p): Tweak head comment.
9367         (annotate_value): Fold local constant.
9368         (set_rm_size): Fix long line.
9369         * gcc-interface/trans.c (Identifier_to_gnu): Rework comments.
9370         (Attribute_to_gnu): Fix long line.
9371         <Attr_Size>: Remove useless assertion.
9372         Reorder statements.  Use size_binop routine.
9373         (Loop_Statement_to_gnu): Use build5 in lieu of build_nt.
9374         Create local variables for the label and the test.  Tweak comments.
9375         (Subprogram_Body_to_gnu): Reset cfun to NULL.
9376         (Compilation_Unit_to_gnu): Use the Sloc of the Unit node.
9377         (process_inlined_subprograms): Integrate into...
9378         (Compilation_Unit_to_gnu): ...this.
9379         (gnat_to_gnu): Fix long line.
9380         (post_error_ne_num): Change parameter name.
9381         * gcc-interface/utils.c (process_attributes): Static-ify.
9382         <ATTR_MACHINE_ATTRIBUTE>: Set input_location before proceeding.
9383         (create_type_decl): Add comment.
9384         (create_var_decl_1): Process the attributes after adding the VAR_DECL
9385         to the current binding level.
9386         (create_subprog_decl): Likewise for the FUNCTION_DECL.
9387         (end_subprog_body): Do not reset cfun to NULL.
9388         (build_vms_descriptor32): Fix long line.
9389         (build_vms_descriptor): Likewise.
9390         (handle_nonnull_attribute): Likewise.
9391         (convert_vms_descriptor64): Likewise.
9392         * gcc-interface/utils2.c (fill_vms_descriptor): Fix long line.
9393         (gnat_protect_expr): Fix thinko.
9395 2010-04-15  Eric Botcazou  <ebotcazou@adacore.com>
9397         * gcc-interface/trans.c (gigi): Set DECL_IGNORED_P on EH functions.
9398         (gnat_to_gnu) <N_Op_Eq>: Restore the value of input_location
9399         before translating the top-level node.
9400         (lvalue_required_p) <N_Function_Call>: Return 1 if !constant.
9401         <N_Object_Declaration>: Likewise.
9402         <N_Assignment_Statement>: Likewise.
9403         <N_Unchecked_Type_Conversion>: Likewise.
9404         (call_to_gnu): Remove kludge.
9405         (gnat_to_gnu) <N_Return_Statement>: When not optimizing, force labels
9406         associated with user returns to be preserved.
9407         (gnat_to_gnu): Add special code to deal with boolean rvalues.
9408         * gcc-interface/utils2.c (compare_arrays): Set input_location on all
9409         comparisons.
9410         (build_unary_op) <ADDR_EXPR>: Call build_fold_addr_expr.
9411         <INDIRECT_REF>: Call build_fold_indirect_ref.
9413 2010-04-15  Joel Sherrill  <joel.sherrill@oarcorp.com>
9415         * g-socket.adb: A target can have multiple missing errno's.  This
9416         will result in multiple errno's being defined as -1.  Because of this
9417         we can not use a case but must use a series of if's to avoid 
9418         a duplicate case error in GNAT.Sockets.Resolve_Error.
9420 2010-04-15  Eric Botcazou  <ebotcazou@adacore.com>
9422         * gcc-interface/trans.c (call_to_gnu): Open a nesting level if this is
9423         a statement.  Otherwise, if at top-level, push the processing of the
9424         elaboration routine.  In the misaligned case, issue the error messages
9425         again on entry and create the temporary explicitly.  Do not issue them
9426         for CONSTRUCTORs.
9427         For a function call, emit the range check if necessary.
9428         In the copy-in copy-out case, create the temporary for the return
9429         value explicitly.
9430         Do not unnecessarily convert by-ref parameters to the formal's type.
9431         Remove obsolete guards in conditions.
9432         (gnat_to_gnu) <N_Assignment_Statement>: For a function call, pass the
9433         target to call_to_gnu in all cases.
9434         (gnat_gimplify_expr) <ADDR_EXPR>: Remove handling of SAVE_EXPR.
9435         (addressable_p) <CONSTRUCTOR>: Return false if not static.
9436         <COMPOUND_EXPR>: New case.
9437         * gcc-interface/utils2.c (build_unary_op) <ADDR_EXPR>: Fold a compound
9438         expression if it has unconstrained array type.
9439         (gnat_mark_addressable) <COMPOUND_EXPR>: New case.
9440         (gnat_stabilize_reference) <COMPOUND_EXPR>: Stabilize operands on an
9441         individual basis.
9443 2010-04-15  Eric Botcazou  <ebotcazou@adacore.com>
9445         * gcc-interface/trans.c (gigi): Do not start statement group.
9446         (Compilation_Unit_to_gnu): Set current_function_decl to NULL.
9447         Start statement group and push binding level here...
9448         (gnat_to_gnu) <N_Compilation_Unit>: ...and not here.
9449         Do not push fake contexts at top level.  Remove redundant code.
9450         (call_to_gnu): Rename a local variable and constify another.
9451         * gcc-interface/utils.c (gnat_pushlevel): Fix formatting nits.
9452         (set_current_block_context): Set it as the group's block.
9453         (gnat_init_decl_processing): Delete unrelated init code.
9454         (end_subprog_body): Use NULL_TREE.
9456 2010-04-15  Eric Botcazou  <ebotcazou@adacore.com>
9458         * gcc-interface/trans.c (call_to_gnu): Do not unnecessarily force
9459         side-effects of actual parameters before the call.
9461 2010-04-15  Eric Botcazou  <ebotcazou@adacore.com>
9463         * gcc-interface/decl.c (validate_size): Reorder, remove obsolete test
9464         and warning.
9465         (set_rm_size): Reorder and remove obsolete test.
9467 2010-04-14  Eric Botcazou  <ebotcazou@adacore.com>
9469         * gcc-interface/gigi.h: Reorder declarations and tweak comments.
9470         (gigi): Adjust ATTRIBUTE_UNUSED markers.
9471         * gcc-interface/gadaint.h: New file.
9472         * gcc-interface/trans.c: Include it in lieu of adaint.h.  Reorder.
9473         (__gnat_to_canonical_file_spec): Remove declaration.
9474         (number_names): Delete.
9475         (number_files): Likewise.
9476         (gigi): Adjust.
9477         * gcc-interface/Make-lang.in (ada/trans.o): Adjust dependencies to
9478         above change.
9480 2010-04-14  Eric Botcazou  <ebotcazou@adacore.com>
9482         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Class_Wide_Type>: Fix
9483         comment.
9484         * gcc-interface/trans.c (process_freeze_entity): Use local copy of
9485         Ekind.  Return early for class-wide types.  Do not compute initializer
9486         unless necessary.  Reuse the tree for an associated class-wide type
9487         only if processing its root type.
9489 2010-04-13  Joel Sherrill  <joel.sherrill@oarcorp.com>
9491         * gsocket.h: Run-time can no longer be built without network
9492         OS headers available.  Changing RTEMS GNAT build procedure to
9493         reflect this and letting run-time build use network .h files.
9495 2010-04-13  Duncan Sands  <baldrick@free.fr>
9497         * gcc-interface/misc.c (gnat_eh_type_covers): Remove.
9498         * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Update comment.
9500 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
9502         * gcc-interface/gigi.h (standard_datatypes): Add ADT_parent_name_id.
9503         (parent_name_id): New macro.
9504         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Use it.
9505         * gcc-interface/trans.c (gigi): Initialize it.
9506         (lvalue_required_p) <N_Type_Conversion>: New case.
9507         <N_Qualified_Expression>: Likewise.
9508         <N_Allocator>: Likewise.
9509         * gcc-interface/utils.c (convert): Try to properly upcast tagged types.
9511 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
9513         * gcc-interface/ada-tree.h (TYPE_BY_REFERENCE_P): Delete.
9514         (DECL_CONST_ADDRESS_P): New macro.
9515         (SET_DECL_ORIGINAL_FIELD_TO_FIELD): Likewise.
9516         (SAME_FIELD_P): Likewise.
9517         * gcc-interface/decl.c (constructor_address_p): New static function.
9518         (gnat_to_gnu_entity) <object>: Set DECL_CONST_ADDRESS_P according to
9519         the return value of above function.
9520         (gnat_to_gnu_entity) <E_Record_Type>: Force BLKmode for all types
9521         passed by reference.
9522         <E_Record_Subtype>: Likewise.
9523         Set TREE_ADDRESSABLE on the type if it passed by reference.
9524         (make_packable_type): Use SET_DECL_ORIGINAL_FIELD_TO_FIELD.
9525         (create_field_decl_from): Likewise.
9526         (substitute_in_type): Likewise.
9527         (purpose_member_field): Use SAME_FIELD_P.
9528         * gcc-interface/misc.c (must_pass_by_ref): Test TREE_ADDRESSABLE.
9529         * gcc-interface/trans.c (lvalue_required_p): Add ADDRESS_OF_CONSTANT
9530         parameter and adjust recursive calls.
9531         <N_Explicit_Dereference>: New case.
9532         <N_Object_Declaration>: Return 1 if the object is of a class-wide type.
9533         Adjust calls to lvalue_required_p.  Do not return the initializer of a
9534         DECL_CONST_ADDRESS_P constant if an lvalue is required for it.
9535         (call_to_gnu): Delay issuing error message for a misaligned actual and
9536         avoid the associated back-end assertion.  Test TREE_ADDRESSABLE.
9537         (gnat_gimplify_expr) <ADDR_EXPR>: Handle non-static constructors.
9538         * gcc-interface/utils.c (make_dummy_type): Set TREE_ADDRESSABLE if the
9539         type is passed by reference.
9540         (convert) <CONSTRUCTOR>: Convert in-place in more cases.
9541         * gcc-interface/utils2.c (build_cond_expr): Drop TYPE_BY_REFERENCE_P.
9542         (build_simple_component_ref): Use SAME_FIELD_P.
9544 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
9546         * gcc-interface/trans.c (Identifier_to_gnu): Use boolean variable.
9547         (call_to_gnu): Test gigi's flag TYPE_BY_REFERENCE_P instead of calling
9548         front-end's predicate Is_By_Reference_Type.  Use consistent order and
9549         remove ??? comment.  Use original conversion in all cases, if any.
9550         * gcc-interface/utils.c (make_dummy_type): Minor tweak.
9551         (convert): Use local copy in more cases.
9552         <INDIRECT_REF>: Remove deactivated code.
9553         (unchecked_convert): Use a couple of local copies.
9555 2010-04-11  Eric Botcazou  <ebotcazou@adacore.com>
9557         * gcc-interface/trans.c (lvalue_required_for_attribute_p): New static
9558         function.
9559         (lvalue_required_p) <N_Attribute_Reference>: Call it.
9560         (gnat_to_gnu) <N_Selected_Component>: Prevent build_component_ref from
9561         folding the result only if lvalue_required_for_attribute_p is true.
9562         * gcc-interface/utils.c (maybe_unconstrained_array): Pass correctly
9563         typed constant to build_component_ref.
9564         (unchecked_convert): Likewise.
9565         * gcc-interface/utils2.c (maybe_wrap_malloc): Likewise.
9566         (build_allocator): Likewise.
9568 2010-04-11  Eric Botcazou  <ebotcazou@adacore.com>
9570         * gcc-interface/utils2.c (build_cond_expr): Take the address and
9571         dereference if the result type is passed by reference.
9573 2010-04-11  Eric Botcazou  <ebotcazou@adacore.com>
9575         * gcc-interface/trans.c (Case_Statement_to_gnu): Bool-ify variable.
9576         (gnat_to_gnu) <N_Null_Statement>: When not optimizing, generate a
9577         goto to the next statement.
9579 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
9581         * gcc-interface/gigi.h (maybe_variable): Delete.
9582         (protect_multiple_eval): Likewise.
9583         (maybe_stabilize_reference): Likewise.
9584         (gnat_save_expr): Declare.
9585         (gnat_protect_expr): Likewise.
9586         (gnat_stabilize_reference): Likewise.
9587         * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use
9588         gnat_stabilize_reference.
9589         (maybe_variable): Delete.
9590         (elaborate_expression_1): Use gnat_save_expr.
9591         * gcc-interface/trans.c (Attribute_to_gnu): Use gnat_protect_expr.
9592         (call_to_gnu): Pass NULL to gnat_stabilize_reference.
9593         (gnat_to_gnu) <N_Object_Declaration>: Use gnat_save_expr.
9594         <N_Slice>: Use gnat_protect_exp.
9595         <N_Selected_Component>: Pass NULL to gnat_stabilize_reference.
9596         <N_In>: Use gnat_protect_expr.
9597         Pass NULL to gnat_stabilize_reference.
9598         (build_unary_op_trapv): Use gnat_protect_expr.
9599         (build_binary_op_trapv): Likewise.
9600         (emit_range_check): Likewise.
9601         (emit_index_check): Likewise.
9602         (convert_with_check): Likewise.
9603         (protect_multiple_eval): Move to utils2.c file.
9604         (maybe_stabilize_reference): Merge into...
9605         (gnat_stabilize_reference): ...this.  Move to utils2.c file.
9606         (gnat_stabilize_reference_1): Likewise.
9607         * gcc-interface/utils.c (convert_to_fat_pointer): Use gnat_protect_expr
9608         instead of protect_multiple_eval.
9609         * gcc-interface/utils2.c (compare_arrays): Likewise.
9610         (nonbinary_modular_operation): Likewise.
9611         (maybe_wrap_malloc): Likewise.
9612         (build_allocator): Likewise.
9613         (gnat_save_expr): New function.
9614         (gnat_protect_expr): Rename from protect_multiple_eval.  Early return
9615         in common cases.  Propagate TREE_READONLY onto dereferences.
9616         (gnat_stabilize_reference_1): Move from trans.c file.
9617         (gnat_stabilize_reference): Likewise.
9619 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
9621         * gcc-interface/gigi.h (gnat_mark_addressable): Rename parameter.
9622         * gcc-interface/decl.c (maybe_variable): Do not set TREE_STATIC on _REF
9623         node.  Use the type of the operand to set TREE_READONLY.
9624         * gcc-interface/trans.c (Identifier_to_gnu): Do not set TREE_STATIC on
9625         _REF node.  Do not overwrite TREE_READONLY.
9626         (call_to_gnu): Rename local variable and fix various nits.  In the
9627         copy-in/copy-out case, build the SAVE_EXPR manually.
9628         (convert_with_check): Call protect_multiple_eval in lieu of save_expr
9629         and fold the computations.
9630         (protect_multiple_eval): Always save entire fat pointers.
9631         (maybe_stabilize_reference): Minor tweaks.
9632         (gnat_stabilize_reference_1): Likewise.  Do not deal with tcc_constant,
9633         tcc_type and tcc_statement.
9634         * gcc-interface/utils.c (convert_to_fat_pointer): Call
9635         protect_multiple_eval in lieu of save_expr.
9636         (convert): Minor tweaks.
9637         (maybe_unconstrained_array): Do not set TREE_STATIC on _REF node.
9638         (builtin_type_for_size): Call gnat_type_for_size directly.
9639         * gcc-interface/utils2.c (contains_save_expr_p): Delete.
9640         (contains_null_expr): Likewise
9641         (gnat_build_constructor): Do not call it.
9642         (compare_arrays): Deal with all side-effects, use protect_multiple_eval
9643         instead of gnat_stabilize_reference to protect the operands.
9644         (nonbinary_modular_operation): Call protect_multiple_eval in lieu of
9645         save_expr.
9646         (maybe_wrap_malloc): Likewise.
9647         (build_allocator): Likewise.
9648         (build_unary_op) <INDIRECT_REF>: Do not set TREE_STATIC on _REF node.
9649         (gnat_mark_addressable): Rename parameter.
9651 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
9653         * gcc-interface/ada-tree.h (TYPE_RETURNS_UNCONSTRAINED_P): Rename into.
9654         (TYPE_RETURN_UNCONSTRAINED_P): ...this.
9655         (TYPE_RETURNS_BY_REF_P): Rename into.
9656         (TYPE_RETURN_BY_DIRECT_REF_P): ...this.
9657         (TYPE_RETURNS_BY_TARGET_PTR_P): Delete.
9658         * gcc-interface/gigi.h (create_subprog_type): Adjust parameter names.
9659         (build_return_expr): Likewise.
9660         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>:
9661         Rename local variables.  If the return Mechanism is By_Reference, pass
9662         return_by_invisible_ref_p to create_subprog_type instead of toggling
9663         TREE_ADDRESSABLE.  Test return_by_invisible_ref_p in order to annotate
9664         the mechanism.  Use regular return for contrained types with non-static
9665         size and return by invisible reference for unconstrained return types
9666         with default discriminants.  Update comment.
9667         * gcc-interface/trans.c (Subprogram_Body_to_gnu): If the function
9668         returns by invisible reference, turn the RESULT_DECL into a pointer.
9669         Do not handle DECL_BY_REF_P in the CICO case here.
9670         (call_to_gnu): Remove code handling return by target pointer.  For a
9671         function call, if the return type has non-constant size, generate the
9672         assignment with an INIT_EXPR.
9673         (gnat_to_gnu) <N_Return_Statement>: Remove dead code in the CICO case.
9674         If the function returns by invisible reference, build the copy return
9675         operation manually.
9676         (add_decl_expr): Initialize the variable with an INIT_EXPR.
9677         * gcc-interface/utils.c (create_subprog_type): Adjust parameter names.
9678         Adjust for renaming of macros.  Copy the node only when necessary.
9679         (create_subprog_decl): Do not toggle TREE_ADDRESSABLE on the return
9680         type, only change DECL_BY_REFERENCE on the RETURN_DECL.
9681         (convert_from_reference): Delete.
9682         (is_byref_result): Likewise.
9683         (gnat_genericize_r): Likewise.
9684         (gnat_genericize): Likewise.
9685         (end_subprog_body): Do not call gnat_genericize.
9686         * gcc-interface/utils2.c (build_binary_op) <INIT_EXPR>: New case.
9687         (build_return_expr): Adjust parameter names, logic and comment.
9689 2010-04-07  Eric Botcazou  <ebotcazou@adacore.com>
9691         * exp_pakd.adb (Create_Packed_Array_Type): Always use a modular type
9692         if the size is small enough.  Propagate the alignment if there is an
9693         alignment clause on the original array type.
9694         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
9695         Deal with under-aligned packed array types.  Copy the size onto the
9696         justified modular type and don't lay it out again.  Likewise for the
9697         padding type built for other under-aligned subtypes.
9698         * gcc-interface/utils.c (finish_record_type): Do not set a default mode
9699         on the type.
9701 2010-04-07  Eric Botcazou  <ebotcazou@adacore.com>
9703         * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set default
9704         alignment on the RETURN type built for the Copy-In Copy-Out mechanism.
9706 2010-04-07  Eric Botcazou  <ebotcazou@adacore.com>
9708         * gcc-interface/trans.c (call_to_gnu): In the return-by-target-ptr case
9709         do not set the result type if there is a specified target and do not
9710         convert the result in any cases.
9711         (protect_multiple_eval): Make direct SAVE_EXPR for CALL_EXPR.
9712         (maybe_stabilize_reference) <COMPOUND_EXPR>: Merge with CALL_EXPR.
9714 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
9716         * gcc-interface/Makefile.in (SPARC/Solaris): Use sparcv8plus.
9718 2010-02-27  Eric Botcazou  <ebotcazou@adacore.com>
9720         PR ada/42253
9721         * gcc-interface/utils2.c (build_binary_op) <EQ_EXPR>: Assert that fat
9722         pointer base types are variant of each other.  Apply special treatment
9723         for null to fat pointer types in all cases.
9725 2010-01-28  Pascal Obry  <obry@adacore.com>
9727         * s-win32.ads: Add some missing constants.
9729 2010-01-28  Vincent Celier  <celier@adacore.com>
9731         * prj-attr-pm.adb (Add_Attribute): Do nothing if To_Package is
9732         Unknown_Package.
9734 2010-01-28  Robert Dewar  <dewar@adacore.com>
9736         * gnat_rm.texi: Minor correction
9738 2010-01-27  Pascal Obry  <obry@adacore.com>
9740         * g-awk.adb: ensure that an AWK session is reusable.
9742 2010-01-27  Vasiliy Fofanov  <fofanov@adacore.com>
9744         * g-regist.adb (For_Every_Key): Fix previous change.
9745         Minor reformatting.
9747 2010-01-27  Thomas Quinot  <quinot@adacore.com>
9749         * lib-writ.ads: Current version of spec for new N (note) ALI lines
9751 2010-01-27  Yannick Moy  <moy@adacore.com>
9753         * a-cdlili.adb (Insert): Correct exception message when cursor
9754         designates wrong list.
9756 2010-01-27  Vincent Celier  <celier@adacore.com>
9758         * gnatcmd.adb: When there is only one main specified, the package
9759         support Switches (<main>) and attribute Switches is specified for the
9760         main, use these switches, instead of Default_Switches ("Ada").
9762 2010-01-27  Robert Dewar  <dewar@adacore.com>
9764         * sem_prag.adb, par-prag.adb, snames.ads-tmpl: pragma Dimension initial
9765         implementation.
9766         * exp_disp.adb: Minor reformatting
9768 2010-01-27  Tristan Gingold  <gingold@adacore.com>
9770         * seh_init.c: Use __ImageBase instead of _ImageBase.
9772 2010-01-27  Javier Miranda  <miranda@adacore.com>
9774         * exp_disp.ads, exp_disp.adb (Expand_Interface_Thunk): Modify the
9775         profile of interface thunks. The type of the controlling formal is now
9776         the covered interface type (instead of the target tagged type).
9778 2010-01-27  Sergey Rybin  <rybin@adacore.com>
9780         * gnat_rm.texi, gnat_ugn.texi: Update gnatcheck doc.
9782 2010-01-27  Robert Dewar  <dewar@adacore.com>
9784         * sinput.ads, sinput.adb (Sloc_Range): Applies to all nodes, formal
9785         changed from Expr to N.
9787 2010-01-26  Thomas Quinot  <quinot@adacore.com>
9789         * gnat_ugn.texi: Adjust documentation of -gnatz switches.
9790         * usage.adb: Replace line for -gnatz with two lines for -gnatzc and
9791         -gnatzr.
9793 2010-01-26  Vincent Celier  <celier@adacore.com>
9795         * prj-attr.adb: Add new attribute Library_Install_Name_Option
9796         Replace attribute Run_Path_Origin_Supported with Run_Path_Origin
9797         * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
9798         attributes Run_Path_Option and Library_Install_Name_Option.
9799         * prj.ads (Project_Configuration): Replace component
9800         Run_Path_Origin_Supported with component Run_Path_Origin. Add new
9801         component Library_Install_Name_Option.
9802         * snames.ads-tmpl: Add new standard name Library_Install_Name_Option
9803         Replace Run_Path_Origin_Supported with Run_Path_Origin
9805 2010-01-26  Ed Schonberg  <schonberg@adacore.com>
9807         * sem_ch8.adb (Use_One_Package): Within an instance, an actual package
9808         is not hidden by a homograph declared in another actual package.
9810 2010-01-26  Robert Dewar  <dewar@adacore.com>
9812         * par_sco.adb (Traverse_Declarations_Or_Statements): Only generate
9813         decisions for pragmas Assert, Check, Precondition, Postcondition if
9814         -gnata set.
9815         * scos.ads: Update comments.
9816         * get_scos.adb, put_scos.adb: Minor fix to code reading statement SCOs.
9817         Also remove obsolete code for CT (exit point) SCOs.
9819 2010-01-26  Thomas Quinot  <quinot@adacore.com>
9821         * switch-c.adb: Fix handling of -gnatz*
9823 2010-01-26  Robert Dewar  <dewar@adacore.com>
9825         * par_sco.adb (Traverse_Declarations_Or_Statements): Separate F/W
9826         qualifiers for FOR/WHILE loops
9827         * scos.ads: Use separate type letters F/W for for/while loops
9829 2010-01-26  Robert Dewar  <dewar@adacore.com>
9831         * get_scos.adb (Get_SCOs): Implement new form of CS entries (multiple
9832         entries per line, one for each statement in the sequence).
9833         * par_sco.adb (Traverse_Declarations_Or_Statements): Increase array
9834         size from 100 to 10_000 for SC_Array to avoid any real possibility of
9835         overflow. Output decisions in for loops.
9836         Exclude labels from CS lines.
9837         * scos.ads: Clarify that label is not included in the entry point
9839 2010-01-26  Robert Dewar  <dewar@adacore.com>
9841         * par_sco.adb (Traverse_Declarations_Or_Statments): Implement new
9842         format of statement sequence SCO entries (one location/statement).
9843         * put_scos.adb (Put_SCOs): Implement new format of CS lines
9844         * scos.ads: Update comments.
9845         * sem_eval.adb: Minor reformatting.
9847 2010-01-26  Robert Dewar  <dewar@adacore.com>
9849         * par_sco.ads, par_sco.adb (Set_Statement_Entry): New handling of exits
9850         (Extend_Statement_Sequence): New procedures
9851         (Traverse_Declarations_Or_Statements): New handling for exits.
9853 2010-01-26  Robert Dewar  <dewar@adacore.com>
9855         * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
9856         Case.
9858 2010-01-26  Robert Dewar  <dewar@adacore.com>
9860         * par_sco.adb (Is_Logical_Operator): Exclude AND/OR/XOR
9861         * scos.ads: Clarify handling of logical operators
9863 2010-01-26  Arnaud Charlet  <charlet@adacore.com>
9865         * s-tpoben.adb: Update comments.
9867 2010-01-26  Robert Dewar  <dewar@adacore.com>
9869         * freeze.adb (Set_Small_Size): Don't set size if alignment clause
9870         present.
9872 2010-01-26  Robert Dewar  <dewar@adacore.com>
9874         * scos.ads: Clean up documentation, remove obsolete XOR references
9875 2010-01-26  Vincent Celier  <celier@adacore.com>
9877         * gnat_ugn.texi: Complete documentation on the restrictions for
9878         combined options in -gnatxxx switches.
9879         Fix typo.
9881 2010-01-26  Arnaud Charlet  <charlet@adacore.com>
9883         * s-tpoben.adb (Initialize_Protection_Entries): If a PO is created from
9884         a controlled operation, abort is already deferred at this point, so we
9885         need to use Defer_Abort_Nestable.
9887 2010-01-26  Vincent Celier  <celier@adacore.com>
9889         * prj-conf.adb (Get_Config_Switches): Check for a default language for
9890         a project extending a project with no languages.
9892 2010-01-26  Vincent Celier  <celier@adacore.com>
9894         * switch-c.adb (Scan_Front_End_Switches): Take into account options
9895         that follow -gnatef.
9896         Allow -gnateG to be followed by other options.
9898 2010-01-26  Robert Dewar  <dewar@adacore.com>
9900         * s-commun.ads, s-osprim-mingw.adb, s-stchop-vxworks.adb, sem_aggr.adb,
9901         s-vxwext.adb, sem_ch10.adb, sem_eval.adb, sem_prag.adb: Minor
9902         reformatting.
9904 2010-01-26  Vasiliy Fofanov  <fofanov@adacore.com>
9906         * g-regist.adb, g-regist.ads (For_Every_Key): New generic procedure
9907         that allows to iterate over all subkeys of a key.
9909 2010-01-26  Ed Falis  <falis@adacore.com>
9911         * sysdep.c: enable NFS for VxWorks MILS
9912         * env.c: enable __gnat_environ for VxWorks MILS
9913         * gcc-interface/Makefile.in: Add VxWorks MILS target pairs.
9915 2010-01-25  Bob Duff  <duff@adacore.com>
9917         * sem_aggr.adb (Resolve_Array_Aggregate): Check for the case where this
9918         is an internally-generated positional aggregate, and the bounds are
9919         already correctly set. We don't want to overwrite those bounds with
9920         bounds determined by context.
9922 2010-01-25  Robert Dewar  <dewar@adacore.com>
9924         * g-sercom.ads, gnatcmd.adb, gnatlink.adb, a-ststio.adb, exp_ch6.adb,
9925         exp_ch9.adb, g-sechas.ads: Minor reformatting.
9927 2010-01-25  Thomas Quinot  <quinot@adacore.com>
9929         * s-commun.adb (Last_Index): Count must be converted to SEO (a signed
9930         integer type) before subtracting 1, otherwise the computation may wrap
9931         (because size_t is modular) and cause the conversion to fail.
9933 2010-01-25  Ed Falis  <falis@adacore.com>
9935         * sysdep.c, init.c: Adapt to support full run-time on VxWorks MILS.
9937 2010-01-25  Vincent Celier  <celier@adacore.com>
9939         * prj-attr.adb: New attribute Run_Path_Origin_Required
9940         * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process new
9941         attribute Run_Path_Origin_Required.
9942         * prj.ads (Project_Configuration): New component
9943         Run_Path_Origin_Supported.
9944         * snames.ads-tmpl: New standard name Run_Path_Origin_Required
9946 2010-01-25  Ed Schonberg  <schonberg@adacore.com>
9948         * sem_aggr.adb (Resolve_Array_Aggregate): If the bounds in a choice
9949         have errors, do not continue resolution of the aggregate.
9950         * sem_eval.adb (Eval_Indexed_Component): Do not attempt to evaluate if
9951         the array type indicates an error.
9953 2010-01-25  Bob Duff  <duff@adacore.com>
9955         * sinfo.ads: Minor comment fixes.
9957 2010-01-25  Bob Duff  <duff@adacore.com>
9959         * exp_ch4.adb, exp_aggr.adb: Minor comment fixes and code clean up.
9961 2010-01-25  Arnaud Charlet  <charlet@adacore.com>
9963         * gnatvsn.ads (Current_Year): Update.
9965 2010-01-25  Florian Villoing  <villoing@adacore.com>
9967         * gnat_ugn.texi: Fix typo.
9969 2010-01-25  Thomas Quinot  <quinot@adacore.com>
9971         * scos.ads: Update specification.
9973 2010-01-25  Ed Schonberg  <schonberg@adacore.com>
9975         * sem_ch6.adb (Process_PPCs): If a postcondition is present and the
9976         enclosing subprogram has no previous spec, attach postcondition
9977         procedure to the defining entity for the body.
9979 2010-01-25  Ed Schonberg  <schonberg@adacore.com>
9981         * exp_aggr.adb (Build_Record_Aggr_Code); Do not generate call to
9982         initialization procedure of the ancestor part of an extension aggregate
9983         if it is an interface type.
9985 2010-01-25  Vincent Celier  <celier@adacore.com>
9987         * gnatlink.adb (Process_Binder_File): The directory for the shared
9988         version of libgcc in the run path options is found in the subdirectory
9989         indicated by __gnat_default_libgcc_subdir.
9990         * link.c: Declare new const char * __gnat_default_libgcc_subdir for
9991         each platform.
9993 2010-01-25  Ed Schonberg  <schonberg@adacore.com>
9995         * sem_prag.adb: More flexible pragma Annotate.
9997 2010-01-22  Eric Botcazou  <ebotcazou@adacore.com>
9999         * system-linux-armel.ads (Stack_Check_Probes): Set to True.
10000         * system-linux-armeb.ads (Stack_Check_Probes): Likewise.
10002 2010-01-18  Eric Botcazou  <ebotcazou@adacore.com>
10004         * gcc-interface/utils.c (create_var_decl_1): Fix formatting nits.
10006 2010-01-18  Jan Hubicka  <jh@suse.cz>
10008         PR middle-end/42068
10009         * gcc-interface/utils.c (create_var_decl_1): Do not set COMMON flag for
10010         unit local variables.
10012 2010-01-17  Laurent GUERBY  <laurent@guerby.net>
10014         * gcc-interface/Makefile.in: Fix typo in arm*-*-linux-gnueabi.
10016 2010-01-11  Mikael Pettersson  <mikpe@it.uu.se>
10018         * gcc-interface/Makefile.in: Add arm*-*-linux-gnueabi.
10019         * system-linux-armeb.ads, system-linux-armel.ads: New files.
10021 2010-01-09  Simon Wright  <simon@pushface.org>
10023         PR ada/42626
10024         * gcc-interface/Makefile.in (gnatlib-shared-darwin): Add missing
10025         end-quote.
10029 Copyright (C) 2010 Free Software Foundation, Inc.
10031 Copying and distribution of this file, with or without modification,
10032 are permitted in any medium without royalty provided the copyright
10033 notice and this notice are preserved.