OSDN Git Service

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