OSDN Git Service

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