OSDN Git Service

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