OSDN Git Service

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