OSDN Git Service

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