1 2010-10-22 Gary Dismukes <dismukes@adacore.com>
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
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.
16 2010-10-22 Thomas Quinot <quinot@adacore.com>
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.
24 2010-10-22 Sergey Rybin <rybin@adacore.com>
26 * gnat_ugn.texi (gnatmetric): Remove description of debug option.
28 2010-10-22 Tristan Gingold <gingold@adacore.com>
30 * adaint.c (__gnat_number_of_cpus): Add implementation for VMS.
32 2010-10-22 Ed Schonberg <schonberg@adacore.com>
34 * par-ch5.adb: Set properly starting sloc of loop parameter.
36 2010-10-22 Ed Schonberg <schonberg@adacore.com>
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.
41 2010-10-22 Robert Dewar <dewar@adacore.com>
43 * cstand.adb, einfo.adb, exp_attr.adb, sem_prag.adb, sem_vfpt.adb,
44 sem_ch10.adb: Minor reformatting.
46 2010-10-22 Sergey Rybin <rybin@adacore.com>
48 * gnat_ugn.texi: Remove most of the content of gnatcheck chapter.
50 2010-10-22 Ed Schonberg <schonberg@adacore.com>
52 * sem_attr.adb: Handle indexed P'old.
54 2010-10-22 Geert Bosch <bosch@adacore.com>
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
67 * sem_ch3.adb (Build_Derived_Numeric_Type,
68 Floating_Point_Type_Declaration): Set Float_Rep instead of Vax_Float
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.
74 2010-10-22 Robert Dewar <dewar@adacore.com>
76 * sprint.adb: Minor reformatting.
78 2010-10-22 Robert Dewar <dewar@adacore.com>
80 * exp_ch3.adb (Expand_N_Object_Declaration): Do required predicate
82 * sem_ch3.adb (Complete_Private_Subtype): Propagate predicates to full
84 * sem_ch6.adb (Invariants_Or_Predicates_Present): New name for
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.
92 2010-10-22 Sergey Rybin <rybin@adacore.com>
94 * gnat_ugn.texi (gnatelim): Add description for '--ignore' option
96 2010-10-22 Thomas Quinot <quinot@adacore.com>
98 * sem_prag.adb (Check_First_Subtype): Specialize error messages for
99 case where argument is not a type.
101 2010-10-22 Robert Dewar <dewar@adacore.com>
103 * exp_ch5.adb, par-ch4.adb, par-ch5.adb, sem_ch5.adb, sinfo.ads: Minor
106 2010-10-22 Arnaud Charlet <charlet@adacore.com>
108 * a-locale.adb: Minor code clean up.
110 2010-10-22 Thomas Quinot <quinot@adacore.com>
112 * exp_ch4.adb: Minor code reorganization and factoring.
114 2010-10-22 Thomas Quinot <quinot@adacore.com>
116 * exp_ch5.adb, sem_ch5.adb, sinfo.ads, snames.ads-tmpl, par-ch5.adb:
119 2010-10-22 Geert Bosch <bosch@adacore.com>
121 * stand.ads: Fix typo in comment.
123 2010-10-22 Ed Schonberg <schonberg@adacore.com>
125 * sem_ch6.adb: Enable in-out parameter for functions.
127 2010-10-22 Ed Schonberg <schonberg@adacore.com>
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.
134 2010-10-22 Brett Porter <porter@adacore.com>
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
140 2010-10-22 Robert Dewar <dewar@adacore.com>
142 * sem_util.ads, sem_util.adb, sem_aux.ads, sem_aux.adb
143 (Is_Generic_Formal): Moved from Sem_Util to Sem_Aux.
145 2010-10-22 Ed Schonberg <schonberg@adacore.com>
147 * exp_ch5.adb (Expand_Iterator_Loop): New subprogram, implements new
148 iterator forms over arrays and containers, in loops and quantified
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
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.
164 2010-10-22 Thomas Quinot <quinot@adacore.com>
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.
173 2010-10-22 Geert Bosch <bosch@adacore.com>
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
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
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
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.
222 2010-10-22 Robert Dewar <dewar@adacore.com>
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.
233 2010-10-22 Arnaud Charlet <charlet@adacore.com>
235 * gcc-interface/utils.c, gcc-interface/gigi.h: Minor reformatting.
237 2010-10-22 Thomas Quinot <quinot@adacore.com>
239 * einfo.ads (Declaration_Node): Clarify documentation, in particular
240 regarding what is returned for subprogram entities.
242 2010-10-22 Arnaud Charlet <charlet@adacore.com>
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
249 * gcc-interface/Make-lang.in: Update dependencies.
251 2010-10-22 Robert Dewar <dewar@adacore.com>
253 * sem_ch3.adb (Array_Type_Declaration): Error for subtype wi predicate
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.
260 2010-10-22 Javier Miranda <miranda@adacore.com>
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.
272 2010-10-22 Ed Schonberg <schonberg@adacore.com>
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..
279 2010-10-22 Robert Dewar <dewar@adacore.com>
281 * einfo.ads, einfo.adb (Has_Predicates): Flag is now on all entities
283 * exp_ch13.adb (Build_Predicate_Function): Output info msgs for
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.
291 2010-10-22 Thomas Quinot <quinot@adacore.com>
293 * a-exextr.adb, atree.ads, freeze.adb: Minor reformatting.
295 2010-10-21 Robert Dewar <dewar@adacore.com>
297 * sem_ch3.adb: Minor reformatting.
299 2010-10-21 Thomas Quinot <quinot@adacore.com>
301 * einfo.ads (Next_Girder_Discriminant): Remove obsolete description for
304 2010-10-21 Nicolas Roche <roche@adacore.com>
306 * gnatmem.adb, memroot.adb, memroot.ads, gmem.c,
307 gcc-interface/Makefile.in: Remove gnatmem specific files.
309 2010-10-21 Thomas Quinot <quinot@adacore.com>
311 * sem_res.adb, exp_ch13.adb: Minor reformatting.
313 2010-10-21 Thomas Quinot <quinot@adacore.com>
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.
319 2010-10-21 Arnaud Charlet <charlet@adacore.com>
321 * gcc-interface/Make-lang.in: Update dependencies.
323 2010-10-21 Robert Dewar <dewar@adacore.com>
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
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
335 * freeze.adb (Freeze_Entity): Move building of predicate function to
337 * sem_ch13.adb (Build_Predicate_Function): Move from Sem_Ch13 to
339 * sem_ch13.ads (Build_Predicate_Function): Move from Sem_Ch13 to
341 * sem_ch3.adb (Analyze_Declarations): Remove call to build predicate
343 * sem_res.adb (Resolve_Actuals): Apply predicate check.
345 2010-10-21 Robert Dewar <dewar@adacore.com>
347 * einfo.ads, einfo.adb: Replace Predicate_Procedure by
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
360 * sem_prag.adb (Analye_Pragma, case Predicate): Does not take a third
363 2010-10-21 Robert Dewar <dewar@adacore.com>
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
372 * sem_prag.adb: Add implementation of pragma Predicate.
373 * snames.ads-tmpl: Add entries for pragma Predicate.
375 2010-10-21 Robert Dewar <dewar@adacore.com>
377 * elists.adb: Minor reformatting.
379 2010-10-21 Geert Bosch <bosch@adacore.com>
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)
386 2010-10-21 Robert Dewar <dewar@adacore.com>
388 * einfo.ads, xeinfo.adb: Minor reformatting.
389 * s-stalib.ads: Minor comment fixes.
391 2010-10-21 Ed Schonberg <schonberg@adacore.com>
393 * sem_ch6.adb (Enter_Overloaded_Entity): Refine warning message about
394 hiding, to remove noise warnings about hiding predefined operators.
396 2010-10-21 Emmanuel Briot <briot@adacore.com>
398 * g-comlin.adb (Add_Switch): Fix handling of switches with no separator
399 when the parameter has length 1.
401 2010-10-21 Jose Ruiz <ruiz@adacore.com>
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
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.
413 2010-10-21 Tristan Gingold <gingold@adacore.com>
415 * ug_words, vms_data.ads: Define the VMS qualifier for -gnateE.
417 2010-10-21 Thomas Quinot <quinot@adacore.com>
419 * sem_ch3.ads (Process_Discriminants): Clarify cases where this is
420 called for a completion.
422 2010-10-21 Geert Bosch <bosch@adacore.com>
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
429 2010-10-21 Robert Dewar <dewar@adacore.com>
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
439 2010-10-21 Vincent Celier <celier@adacore.com>
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
445 2010-10-21 Ed Schonberg <schonberg@adacore.com>
447 * exp_aggr.adb (Flatten): An association for a subtype may be an
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.
455 2010-10-21 Robert Dewar <dewar@adacore.com>
457 * gnat_rm.texi: Document Invariant pragma.
459 2010-10-21 Javier Miranda <miranda@adacore.com>
461 * exp_ch5.adb: Update comment.
463 2010-10-21 Robert Dewar <dewar@adacore.com>
465 * sem_ch13.adb (Build_Invariant_Procedure): Remove commented out code
466 for interfaces, since invariants are not allowed on interfaces in any
469 2010-10-21 Javier Miranda <miranda@adacore.com>
471 * sem_attr.adb (Resolve_Attribute): After replacing the range attribute
472 node with a range expression ensure that its evaluation will not have
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
479 2010-10-21 Robert Dewar <dewar@adacore.com>
481 * par-ch3.adb (P_Interface_Type_Definition): Allow for possibility of
482 aspect clause presence terminating the type definition.
484 2010-10-21 Robert Dewar <dewar@adacore.com>
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
489 * snames.ads-tmpl: Add note on Name_Some (not a reserved keyword).
491 2010-10-21 Geert Bosch <bosch@adacore.com>
493 * ttypef.ads: Further cleanup of Safe_XXX float attributes.
495 2010-10-19 Ed Schonberg <schonberg@adacore.com>
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
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
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.
519 2010-10-19 Robert Dewar <dewar@adacore.com>
521 * a-exexda.adb: Minor reformatting
522 Minor code reorganization.
524 2010-10-19 Robert Dewar <dewar@adacore.com>
526 * sem_eval.adb: Minor reformatting.
528 2010-10-19 Tristan Gingold <gingold@adacore.com>
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.
536 2010-10-19 Geert Bosch <bosch@adacore.com>
538 * gnat_rm.texi (pragma Float_Representation): Fix typo.
540 2010-10-19 Arnaud Charlet <charlet@adacore.com>
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.
567 2010-10-19 Geert Bosch <bosch@adacore.com>
569 * ttypef.ads: Change VAXDF_Last to be -VAXDF_First, as type is
572 2010-10-19 Robert Dewar <dewar@adacore.com>
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
596 * sem_ch6.adb (Process_PPCs): Add processing of invariants
597 * sem_ch7.adb (Analyze_Package_Specification): Build invariant
599 * sem_prag.adb: Implement pragma Invariant.
600 * sem_res.adb (Resolve_Entity_Name): Allow type reference if
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.
608 2010-10-19 Javier Miranda <miranda@adacore.com>
610 * par-ch4.adb: Update documentation of Ada 2012 syntax rules for
613 2010-10-19 Bob Duff <duff@adacore.com>
615 * sem_attr.adb (Eval_Attribute): Implement Max_Alignment_For_Allocation
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.
622 2010-10-19 Ed Schonberg <schonberg@adacore.com>
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.
627 2010-10-19 Thomas Quinot <quinot@adacore.com>
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
632 2010-10-19 Thomas Quinot <quinot@adacore.com>
634 * sem_util.adb (Collect_Primitive_Operations): A function with an
635 anonymous access result designating T is a primitive operation of T.
637 2010-10-19 Tristan Gingold <gingold@adacore.com>
639 * init.c: On Alpha/VMS, only adjust PC for HPARITH.
641 2010-10-19 Tristan Gingold <gingold@adacore.com>
643 * sem_attr.adb (Eval_Attribute): Handle Attribute_Ref, which can be
646 2010-10-19 Ed Schonberg <schonberg@adacore.com>
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.
652 2010-10-19 Thomas Quinot <quinot@adacore.com>
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
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.
667 2010-10-19 Bob Duff <duff@adacore.com>
669 * sem_ch8.adb (Pop_Scope): Change "return;" to "raise Program_Error;".
671 2010-10-19 Javier Miranda <miranda@adacore.com>
673 * exp_ch4.adb (Expand_Set_Membership.Make_Cond): Add missing support
676 2010-10-19 Thomas Quinot <quinot@adacore.com>
678 * einfo.ads, atree.ads: Minor comment fixes.
680 2010-10-18 Bob Duff <duff@adacore.com>
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
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
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.
707 2010-10-18 Vincent Celier <celier@adacore.com>
709 * make.adb (Switches_Of): Put the spec and body suffix in canonical
712 2010-10-18 Ed Schonberg <schonberg@adacore.com>
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.
720 2010-10-18 Javier Miranda <miranda@adacore.com>
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
735 * einfo.ads (Full_View): Add documentation.
737 2010-10-18 Ed Schonberg <schonberg@adacore.com>
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.
743 2010-10-18 Jose Ruiz <ruiz@adacore.com>
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
754 2010-10-18 Robert Dewar <dewar@adacore.com>
756 * einfo.ads, einfo.adb: Minor reformatting.
757 * gnat_ugn.texi, ug_words: Add missing entries, fix typos.
759 2010-10-18 Emmanuel Briot <briot@adacore.com>
761 * g-comlin.adb (Is_In_Config): When the switch accepts either a space
762 or equal, we output an equal every time.
764 2010-10-18 Ed Schonberg <schonberg@adacore.com>
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.
772 2010-10-18 Robert Dewar <dewar@adacore.com>
774 * einfo.ads, einfo.adb: Minor reformatting.
776 2010-10-18 Jose Ruiz <ruiz@adacore.com>
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.
789 2010-10-18 Robert Dewar <dewar@adacore.com>
791 * sinfo.ads, sinfo.adb: Change Has_Pragma_CPU to Flag14 (Flag10 is
794 2010-10-18 Robert Dewar <dewar@adacore.com>
796 * s-stausa.adb, s-taprop-linux.adb, s-taprop-mingw.adb, s-tassta.ads:
799 2010-10-18 Robert Dewar <dewar@adacore.com>
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
807 2010-10-18 Jose Ruiz <ruiz@adacore.com>
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
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
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
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
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
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
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
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.
880 2010-10-18 Javier Miranda <miranda@adacore.com>
882 * einfo.adb (Direct_Primitive_Operations): Complete assertion.
884 2010-10-18 Vincent Celier <celier@adacore.com>
886 * prj.ads (Source_Data): New Boolean flag In_The_Queue.
888 2010-10-18 Tristan Gingold <gingold@adacore.com>
890 * s-stausa.ads: Add the Top parameter to Initialize_Analyzer.
891 * s-stausa.adb: Use the top parameter. In Fill_Stack, use the
893 * s-tassta.adb (Task_Wrapper): Call Initialize_Analyzer after Enter_Task
894 so that Pri_Stack_Info.Limit can be set and used.
896 2010-10-18 Robert Dewar <dewar@adacore.com>
898 * einfo.ads: Minor reformatting.
899 * sem_res.adb (Resolve_Allocator): Add test for violating
900 No_Anonymous_Allocators.
902 2010-10-18 Robert Dewar <dewar@adacore.com>
904 * prj-nmsc.adb, prj.adb, sem_res.adb: Minor reformatting.
906 2010-10-18 Ed Schonberg <schonberg@adacore.com>
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.
914 2010-10-18 Vincent Celier <celier@adacore.com>
916 * projects.texi: Add documentation for attribute Ignore_Source_Sub_Dirs
918 2010-10-18 Ed Schonberg <schonberg@adacore.com>
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
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.
930 2010-10-18 Tristan Gingold <gingold@adacore.com>
932 * init.c: Add __gnat_set_stack_guard_page and __gnat_set_stack_limit.
933 Implement stack limitation on VMS.
936 2010-10-18 Vincent Celier <celier@adacore.com>
938 * prj.adb (Is_Compilable): Do not modify Source.Compilable until the
939 source record has been initialized.
941 2010-10-18 Robert Dewar <dewar@adacore.com>
943 * einfo.adb: Minor code reorganization (Primitive_Operations is a
944 synthesized attribute routine and was in the wrong place).
946 2010-10-18 Tristan Gingold <gingold@adacore.com>
948 * init.c: Indentation, and minor changes to more closely follow GNU
949 style rules. Make more variable statics.
951 2010-10-18 Vincent Celier <celier@adacore.com>
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.
958 2010-10-18 Vincent Celier <celier@adacore.com>
960 * prj-attr.adb: New project level attribute Ignore_Source_Sub_Dirs.
961 * prj-nmsc.adb (Expand_Subdirectory_Pattern): New string list parameter
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.
968 2010-10-18 Javier Miranda <miranda@adacore.com>
970 * einfo.ads, einfo.adb (Primitive_Operations): New synthesized
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
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.
984 2010-10-18 Eric Botcazou <ebotcazou@adacore.com>
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.
992 2010-10-18 Arnaud Charlet <charlet@adacore.com>
994 * g-comlin.adb (Get_Switches): Prevent dereferencing null Config.
996 2010-10-18 Robert Dewar <dewar@adacore.com>
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.
1003 2010-10-18 Robert Dewar <dewar@adacore.com>
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.
1008 2010-10-18 Tristan Gingold <gingold@adacore.com>
1010 * sysdep.c: Add __gnat_get_stack_bounds.
1011 * s-taprop-mingw.adb Call __gnat_get_stack_bounds to set Pri_Stack_Info.
1013 2010-10-18 Robert Dewar <dewar@adacore.com>
1015 * a-assert.ads: Fix bad name in header.
1016 * sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch10.adb: Minor
1018 * exp_aggr.adb: Fix typo in comment.
1020 2010-10-18 Javier Miranda <miranda@adacore.com>
1022 * exp_util.adb (Side_Effect_Free): Code clean up.
1024 2010-10-18 Ed Schonberg <schonberg@adacore.com>
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
1031 2010-10-18 Javier Miranda <miranda@adacore.com>
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.
1040 2010-10-18 Arnaud Charlet <charlet@adacore.com>
1042 * sem_prag.adb (Set_Exported): Do not generate error when exporting a
1043 variable with an address clause in codepeer mode.
1045 2010-10-18 Robert Dewar <dewar@adacore.com>
1047 * g-trasym-vms-ia64.adb: Minor reformatting.
1049 2010-10-18 Thomas Quinot <quinot@adacore.com>
1051 * sem_type.adb (Covers): If either argument is Standard_Void_Type and
1052 the other isn't, return False early.
1054 2010-10-18 Ed Falis <falis@adacore.com>
1056 * s-vxwext-rtp.ads, s-vxext-rtp.adb: Adapt for missing APIs for RTPs in
1059 2010-10-18 Robert Dewar <dewar@adacore.com>
1061 * sem_disp.ads: Minor comment update.
1063 2010-10-18 Robert Dewar <dewar@adacore.com>
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
1069 * sem_ch6.adb (Process_PPCs): Add handling of inherited Pre'Class
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
1084 2010-10-18 Robert Dewar <dewar@adacore.com>
1086 * g-trasym-vms-ia64.adb, prj-nmsc.adb, prj.ads: Minor reformatting.
1088 2010-10-14 Eric Botcazou <ebotcazou@adacore.com>
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.
1098 2010-10-13 Richard Henderson <rth@redhat.com>
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.
1105 2010-10-12 Vincent Celier <celier@adacore.com>
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
1116 2010-10-12 Tristan Gingold <gingold@adacore.com>
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.
1122 2010-10-12 Thomas Quinot <quinot@adacore.com>
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
1129 2010-10-12 Bob Duff <duff@adacore.com>
1131 * s-rident.ads (Profile_Info): This variable is now constant.
1133 2010-10-12 Emmanuel Briot <briot@adacore.com>
1135 * g-comlin.adb, g-comlin.ads (Define_Switch): Put back (unused)
1136 parameter Separator for backward compatibility.
1138 2010-10-12 Robert Dewar <dewar@adacore.com>
1140 * sem_ch9.adb, par-ch9.adb, impunit.adb: Minor reformatting.
1142 2010-10-12 Vincent Celier <celier@adacore.com>
1144 * debug.adb: Put detailed documentation for gnatmake switch -dm.
1146 2010-10-12 Vincent Celier <celier@adacore.com>
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.
1151 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1153 * g-comlin.adb (Foreach_Switch): Make this procedure generic to avoid
1156 2010-10-12 Robert Dewar <dewar@adacore.com>
1158 * debug.adb: Add comment.
1159 * gnatcmd.adb, sem_ch6.adb, switch-m.adb: Minor reformatting.
1161 2010-10-12 Javier Miranda <miranda@adacore.com>
1163 * exp_util.adb (Side_Effect_Free): Return true for object renaming
1164 declarations that were previously generated by Remove_Side_Effects.
1166 2010-10-12 Emmanuel Briot <briot@adacore.com>
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.
1173 2010-10-12 Emmanuel Briot <briot@adacore.com>
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
1180 2010-10-12 Javier Miranda <miranda@adacore.com>
1182 * sem_ch6.adb (New_Overloaded_Entity): Add missing decoration of
1183 attribute Overridden_Operation in predefined dispatching primitives.
1185 2010-10-12 Emmanuel Briot <briot@adacore.com>
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.
1190 2010-10-12 Robert Dewar <dewar@adacore.com>
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.
1196 2010-10-12 Jose Ruiz <ruiz@adacore.com>
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.
1204 2010-10-12 Vincent Celier <celier@adacore.com>
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.
1212 2010-10-12 Joseph Myers <joseph@codesourcery.com>
1214 * gcc-interface/Make-lang.in (ada/misc.o): Use $(OPTIONS_H)
1215 instead of options.h.
1217 2010-10-12 Robert Dewar <dewar@adacore.com>
1219 * gnat_rm.texi: Clarify that 'Old can be used in preconditions and
1220 postcondition pragmas.
1222 2010-10-12 Robert Dewar <dewar@adacore.com>
1224 * errout.ads, erroutc.adb: The # insertion now handles from in place of
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
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
1251 2010-10-12 Javier Miranda <miranda@adacore.com>
1253 * exp_util.adb (Remove_Side_Effects): Remove wrong code.
1255 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1257 * xref_lib.adb: Add handling of j/J letters.
1259 2010-10-12 Pascal Obry <obry@adacore.com>
1261 * adaint.c (__gnat_number_of_cpus): Add implementation for Windows.
1263 2010-10-12 Arnaud Charlet <charlet@adacore.com>
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.
1273 2010-10-12 Bob Duff <duff@adacore.com>
1275 * exp_util.adb (Remove_Side_Effects): Disable previous change,
1276 can cause side effects to be duplicated.
1278 2010-10-12 Robert Dewar <dewar@adacore.com>
1280 * sem_ch6.adb (Process_PPCs): Handle inherited postconditions.
1282 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1284 * exp_disp.adb (Set_All_DT_Position): Disable emit error message on
1285 abstract inherited private operation in CodePeer mode.
1287 2010-10-12 Thomas Quinot <quinot@adacore.com>
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.
1295 2010-10-12 Ed Schonberg <schonberg@adacore.com>
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.
1301 2010-10-12 Robert Dewar <dewar@adacore.com>
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
1316 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1318 * lib-xref.ads: Mark j/J as reserved for C++ classes.
1320 2010-10-12 Jose Ruiz <ruiz@adacore.com>
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.
1331 2010-10-12 Robert Dewar <dewar@adacore.com>
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.
1337 2010-10-12 Robert Dewar <dewar@adacore.com>
1339 * par-ch13.adb (P_Aspect_Specifications): Fix handling of 'Class
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
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
1348 2010-10-12 Robert Dewar <dewar@adacore.com>
1350 * par-endh.adb (Check_End): Don't swallow semicolon or aspects after
1352 * sem_attr.adb (Eval_Attribute): Code clean up.
1354 2010-10-12 Robert Dewar <dewar@adacore.com>
1356 * par-ch12.adb (P_Formal_Private_Type_Definition): Improve error
1357 messages and recovery for case of out of order Abstract/Tagged/Private
1359 * par-ch3.adb (P_Type_Declaration): Improve error messages and recovery
1360 for case of out of order Abstract/Tagged/Private keywords.
1362 2010-10-12 Ed Schonberg <schonberg@adacore.com>
1364 * inline.adb (Analyze_Inlined_Bodies): Restrict previous change to case
1365 where child unit is main unit of compilation.
1367 2010-10-12 Robert Dewar <dewar@adacore.com>
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
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
1382 (Analyze_Single_Task_Declaration): Copy aspects to generated object
1384 2010-10-12 Eric Botcazou <ebotcazou@adacore.com>
1386 * usage.adb (usage): Adjust line for -gnatn switch.
1388 2010-10-12 Robert Dewar <dewar@adacore.com>
1390 * sem_attr.adb (Eval_Attribute): Only leave change active for aspect
1393 2010-10-12 Ed Schonberg <schonberg@adacore.com>
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.
1399 2010-10-11 Robert Dewar <dewar@adacore.com>
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
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
1410 2010-10-11 Pat Rogers <rogers@adacore.com>
1412 * gnat_ugn.texi: Minor editing.
1414 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
1416 * gcc-interface/utils2.c (gnat_build_constructor): Use VEC_qsort.
1418 2010-10-11 Robert Dewar <dewar@adacore.com>
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
1427 2010-10-11 Ed Schonberg <schonberg@adacore.com>
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.
1433 2010-10-11 Robert Dewar <dewar@adacore.com>
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
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
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
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
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
1500 2010-10-11 Robert Dewar <dewar@adacore.com>
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
1529 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Handle aspect
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
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
1553 (Analyze_Subprogram_Declaration): Analyze aspect specifications
1554 * sem_ch7.adb (Analyze_Package_Declaration): Analyze aspect
1556 (Analyze_Private_Type_Declaration): Analyze aspect specifications
1557 * sem_ch9.adb (Analyze_Protected_Type_Declaration): Analyze aspect
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
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
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
1585 2010-10-11 Bob Duff <duff@adacore.com>
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.
1591 2010-10-11 Javier Miranda <miranda@adacore.com>
1593 * debug.adb Document that switch -gnatd.p enables the CIL verifier.
1595 2010-10-11 Robert Dewar <dewar@adacore.com>
1597 * s-htable.adb: Minor reformatting.
1599 2010-10-11 Javier Miranda <miranda@adacore.com>
1601 * debug.adb: Update comment.
1603 2010-10-11 Vincent Celier <celier@adacore.com>
1605 * gnatcmd.adb (GNATCmd): Set Opt.Unchecked_Shared_Lib_Imports to True
1606 unconditionally as for "gnat make" the projects are not processed in
1609 2010-10-11 Ed Schonberg <schonberg@adacore.com>
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
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.
1619 2010-10-11 Robert Dewar <dewar@adacore.com>
1621 * exp_ch6.adb, freeze.adb: Minor reformatting.
1623 2010-10-11 Vincent Celier <celier@adacore.com>
1625 * gnatcmd.adb (GNATCmd): For all tools other than gnatmake, allow
1626 shared library projects to import projects that are not shared library
1629 2010-10-11 Javier Miranda <miranda@adacore.com>
1631 * debug.adb: Document that switch -gnatd.o generates the CIL listing.
1633 2010-10-11 Arnaud Charlet <charlet@adacore.com>
1635 * sem_prag.adb (Process_Suppress_Unsuppress): Only ignore
1636 Suppress/Unsuppress pragmas in codepeer mode on user code.
1638 2010-10-11 Javier Miranda <miranda@adacore.com>
1640 * exp_ch6.adb (Expand_Call): For VM platforms, add missing expansion of
1641 tag check in case of dispatching call through "=".
1643 2010-10-11 Ed Schonberg <schonberg@adacore.com>
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
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
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
1660 2010-10-11 Robert Dewar <dewar@adacore.com>
1662 * exp_ch6.adb: Code clean up.
1663 * exp_util.adb: Minor reformatting.
1665 2010-10-11 Arnaud Charlet <charlet@adacore.com>
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
1673 (Access_Definition): Add missing handling of No_Task_Hierarchy.
1675 2010-10-11 Javier Miranda <miranda@adacore.com>
1677 * exp_util.adb (Remove_Side_Effects): No action needed for renamings of
1678 class-wide expressions.
1680 2010-10-11 Arnaud Charlet <charlet@adacore.com>
1682 * xr_tabls.adb, sem_res.adb: Minor reformatting
1684 2010-10-11 Arnaud Charlet <charlet@adacore.com>
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.
1692 2010-10-11 Robert Dewar <dewar@adacore.com>
1694 * sem_attr.adb: Minor reformatting.
1696 2010-10-11 Javier Miranda <miranda@adacore.com>
1698 * sem_ch8.adb (Attribute_Renaming): Add missing check to avoid loading
1699 package System.Aux_Dec in VM platforms.
1701 2010-10-11 Arnaud Charlet <charlet@adacore.com>
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
1707 * einfo.ads: Fix typo.
1709 2010-10-11 Emmanuel Briot <briot@adacore.com>
1711 * sinfo.adb: Use GNAT.HTable rather than System.HTable.
1712 * prj-nmsc.adb: Minor reformatting.
1714 2010-10-11 Thomas Quinot <quinot@adacore.com>
1716 * sem_attr.adb (Type_Key): Code simplification.
1718 2010-10-11 Tristan Gingold <gingold@adacore.com>
1720 * gcc-interface/utils2.c (maybe_wrap_malloc): Fix crash when allocating
1721 very large object on VMS.
1723 2010-10-11 Javier Miranda <miranda@adacore.com>
1725 * sem_ch10.adb (Analyze_With_Clause): Add missing test to ensure
1726 availability of attribute Instance_Spec.
1728 2010-10-11 Arnaud Charlet <charlet@adacore.com>
1730 * gnat1drv.adb (Adjust_Global_Switches): Disable codepeer mode if
1731 checking syntax only or in ASIS mode.
1733 2010-10-11 Ed Schonberg <schonberg@adacore.com>
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.
1740 2010-10-11 Emmanuel Briot <briot@adacore.com>
1742 * prj-nmsc.adb (Check_Aggregate_Project): Add support for finding all
1743 aggregated projects.
1745 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1747 * sem_res.adb (Resolve_Entry_Call): Generate 's' reference for entry
1749 * sem_ch6.adb: Diagnose additional error condition.
1751 2010-10-11 Bob Duff <duff@adacore.com>
1753 * par.adb (Par): Clarify wording of certain error messages.
1755 2010-10-11 Gary Dismukes <dismukes@adacore.com>
1757 * sem_disp.adb (Check_Dispatching_Operation): Revise test for warning
1758 about nondispatching subprograms to use In_Same_List (reducing use of
1761 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1763 * xr_tabls.adb, sem_res.adb, lib-xref.adb, lib-xref.ads: Use s for
1764 reference in a static call.
1766 2010-10-11 Steve Baird <baird@adacore.com>
1768 * exp_attr.adb (Expand_N_Attribute_Reference, case Type_Key): Type_Key
1769 attribute should always be transformed into a string literal in
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
1776 * snames.ads-tmpl: Add entries for Type_Key attribute.
1778 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1780 * lib-xref.adb (Output_References): Common handling for objects and
1781 formals of an anonymous access type.
1783 2010-10-11 Eric Botcazou <ebotcazou@adacore.com>
1785 * make.adb (Scan_Make_Arg): Also pass -O to both compiler and linker.
1787 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1789 * sem_ch6.adb: Fix check for illegal equality declaration in Ada2012
1791 2010-10-11 Gary Dismukes <dismukes@adacore.com>
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.
1798 2010-10-11 Jerome Lambourg <lambourg@adacore.com>
1800 * projects.texi, prj-attr.adb: Add new attribute documentation_dir.
1802 2010-10-11 Bob Duff <duff@adacore.com>
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).
1816 2010-10-11 Bob Duff <duff@adacore.com>
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
1824 2010-10-11 Javier Miranda <miranda@adacore.com>
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.
1833 2010-10-11 Robert Dewar <dewar@adacore.com>
1835 * sem_prag.adb, sem_aggr.adb, sprint.adb: Minor reformatting.
1837 2010-10-11 Javier Miranda <miranda@adacore.com>
1839 * exp_ch5.ads, exp_ch6.ads (Expand_N_Extended_Return_Statement): Moved
1841 (Expand_N_Simple_Return_Statement): Moved to exp_ch6.
1842 * exp_ch5.adb, exp_ch6.adb (Expand_Non_Function_Return): Moved to
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.
1848 2010-10-11 Robert Dewar <dewar@adacore.com>
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>
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.
1858 2010-10-11 Vincent Celier <celier@adacore.com>
1860 * adaint.h: Add prototype for function __gnat_create_output_file_new.
1862 2010-10-11 Javier Miranda <miranda@adacore.com>
1864 * sem_aggr.adb (Collect_Aggr_Bounds): Remove side effects of collected
1867 2010-10-11 Arnaud Charlet <charlet@adacore.com>
1869 * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Do not emit error
1870 for AI05-0033 in CodePeer mode.
1872 2010-10-11 Robert Dewar <dewar@adacore.com>
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
1889 2010-10-11 Vincent Celier <celier@adacore.com>
1891 * adaint.c: Minor reformatting.
1893 2010-10-11 Robert Dewar <dewar@adacore.com>
1895 * sem_ch6.adb, s-htable.ads: Minor reformatting.
1897 2010-10-11 Ed Schonberg <schonberg@adacore.com>
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.
1904 2010-10-11 Vincent Celier <celier@adacore.com>
1906 * adaint.c (__gnat_number_of_cpus): Add implementation for Solaris,
1907 AIX, Tru64, Darwin, IRIX and HP-UX.
1909 2010-10-11 Robert Dewar <dewar@adacore.com>
1911 * a-textio.adb: Minor reformatting
1913 2010-10-11 Robert Dewar <dewar@adacore.com>
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.
1925 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1927 * exp_ch5.adb: Code clean up.
1929 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1931 * sem_ch6.adb (Check_Limited_Return): Specialize warning on limited
1932 returns when in a generic context.
1933 (Analyze_Function_Return): ditto.
1935 2010-10-11 Robert Dewar <dewar@adacore.com>
1937 * s-multip.ads: Fix header.
1938 * sem_ch3.adb, s-multip.adb, a-tigeli.adb: Minor reformatting.
1940 2010-10-11 Vincent Celier <celier@adacore.com>
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
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.
1954 2010-10-11 Javier Miranda <miranda@adacore.com>
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.
1959 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1961 * sem_aux.adb: Code clean up.
1963 2010-10-11 Robert Dewar <dewar@adacore.com>
1965 * sem_ch3.adb, sem_aux.adb, sem_ch6.adb: Minor reformatting
1967 2010-10-11 Robert Dewar <dewar@adacore.com>
1969 * einfo.adb, atree.h, atree.ads, atree.adb: Define seven new flags
1970 Flag248-Flag254. Define new field Field29.
1972 2010-10-10 Olivier Hainque <hainque@adacore.com>
1973 Eric Botcazou <ebotcazou@adacore.com>
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.
1984 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
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.
1991 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
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.
1997 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
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
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.
2014 2010-10-09 Eric Botcazou <ebotcazou@adacore.com>
2016 * gcc-interface/misc.c: Delete prototypes.
2017 (gnat_init_options): Use local variable.
2018 (lang_hooks): Move to the end of the file.
2020 2010-10-08 Joseph Myers <joseph@codesourcery.com>
2022 * gcc-interface/misc.c (gnat_init_options_struct): New. Split out
2023 from gnat_init_options.
2024 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
2026 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2028 * sem_aux.adb: Cleanup Is_Immutably_Limited_Type.
2030 2010-10-08 Robert Dewar <dewar@adacore.com>
2032 * exp_ch3.adb: Minor reformatting.
2033 * exp_ch5.adb: Add comment.
2035 2010-10-08 Robert Dewar <dewar@adacore.com>
2037 * sem_prag.adb (Check_Duplicate_Pragma): Check for entity match
2038 * gcc-interface/Make-lang.in: Update dependencies.
2039 * einfo.ads: Minor reformatting.
2041 2010-10-08 Ed Schonberg <schonberg@adacore.com>
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
2051 2010-10-08 Robert Dewar <dewar@adacore.com>
2053 * sem_prag.adb (Check_Duplicate_Pragma): New procedure
2054 Add calls to this new procedure where appropriate
2056 2010-10-08 Vincent Celier <celier@adacore.com>
2058 * a-textio.adb (Get_Chunk): Code clean up.
2060 2010-10-08 Robert Dewar <dewar@adacore.com>
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
2072 2010-10-08 Robert Dewar <dewar@adacore.com>
2074 * sem_cat.adb (Check_Categorization_Dependencies): Remote types
2075 packages can depend on preleborated packages.
2077 2010-10-08 Robert Dewar <dewar@adacore.com>
2079 * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Pragmas
2080 Interrupt_Handler and Attach_Handler not allowed in generics.
2082 2010-10-08 Robert Dewar <dewar@adacore.com>
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.
2102 2010-10-08 Geert Bosch <bosch@adacore.com>
2104 * a-textio.adb (Get_Line): Rewrite to use fgets instead of fgetc.
2106 2010-10-08 Javier Miranda <miranda@adacore.com>
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.
2112 2010-10-08 Robert Dewar <dewar@adacore.com>
2114 * par-ch3.adb: Minor reformatting.
2116 2010-10-08 Javier Miranda <miranda@adacore.com>
2118 * exp_disp.adb (Make_DT): Do not generate dispatch tables for CIL/Java
2121 2010-10-08 Robert Dewar <dewar@adacore.com>
2123 * par-ch8.adb (P_Use_Type_Clause): Recognize ALL keyword in Ada 2012
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.
2130 2010-10-08 Vincent Celier <celier@adacore.com>
2132 * bindgen.adb (Gen_Restrictions_Ada): No new line after last
2133 restriction, so that the last comma is always replaced with a left
2136 2010-10-08 Javier Miranda <miranda@adacore.com>
2138 * sem_prag.adb (Analyze_Pragma): Add specific check on the type of the
2139 first formal of delegates.
2141 2010-10-08 Robert Dewar <dewar@adacore.com>
2143 * sem_aggr.adb: Minor reformatting.
2145 2010-10-08 Robert Dewar <dewar@adacore.com>
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
2154 * s-valcha.adb (Value_Character): Recognize SOFT_HYPHEN for 16#AD#
2155 * sem_attr.adb (Eval_Attribute, case Width): Handle soft_hyphen name
2158 2010-10-08 Robert Dewar <dewar@adacore.com>
2160 * sem_attr.adb (Eval_Attribute, case Width): Avoid ludicrous long loop
2161 for case of Wide_[Wide_]Character.
2163 2010-10-08 Robert Dewar <dewar@adacore.com>
2165 * exp_ch3.adb: Minor reformating
2166 Minor code reorganization.
2168 2010-10-08 Javier Miranda <miranda@adacore.com>
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.
2175 2010-10-08 Robert Dewar <dewar@adacore.com>
2177 * sem_ch6.adb: Minor reformatting.
2179 2010-10-08 Robert Dewar <dewar@adacore.com>
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]
2191 2010-10-08 Ed Schonberg <schonberg@adacore.com>
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.
2198 2010-10-08 Thomas Quinot <quinot@adacore.com>
2200 * xsnames.adb: Remove obsolete file.
2201 * make.adb, sem_ch8.adb, einfo.ads: Minor reformatting.
2203 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2205 * exp_aggr.adb: Complete previous change.
2207 2010-10-08 Ed Schonberg <schonberg@adacore.com>
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
2214 2010-10-08 Vincent Celier <celier@adacore.com>
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
2222 2010-10-08 Ed Schonberg <schonberg@adacore.com>
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
2230 2010-10-08 Arnaud Charlet <charlet@adacore.com>
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.
2236 2010-10-08 Robert Dewar <dewar@adacore.com>
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.
2249 2010-10-08 Robert Dewar <dewar@adacore.com>
2251 * sprint.adb: Minor reformatting.
2253 2010-10-08 Javier Miranda <miranda@adacore.com>
2255 * exp_ch4.adb (Real_Range_Check): Declare temporary as constant.
2257 2010-10-08 Robert Dewar <dewar@adacore.com>
2259 * sem_ch3.adb: Minor reformatting.
2261 2010-10-08 Vincent Celier <celier@adacore.com>
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
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
2273 * scans.ads (Token_Type): New token Tok_External_As_List
2274 * snames.ads-tmpl: New standard name Name_External_As_List
2276 2010-10-08 Thomas Quinot <quinot@adacore.com>
2278 * sem_prag.adb: Minor reformatting.
2280 2010-10-08 Ed Schonberg <schonberg@adacore.com>
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.
2288 2010-10-08 Ed Schonberg <schonberg@adacore.com>
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.
2294 2010-10-08 Robert Dewar <dewar@adacore.com>
2296 * sem_util.adb, sem_prag.adb: Minor reformatting
2298 2010-10-08 Hristian Kirtchev <kirtchev@adacore.com>
2300 * gnat_rm.texi: Remove the section on pragma Implemented_By_Entry.
2301 Add section on pragma Implemented.
2303 2010-10-08 Ed Schonberg <schonberg@adacore.com>
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.
2309 2010-10-08 Thomas Quinot <quinot@adacore.com>
2311 * sem_ch4.adb: Minor reformatting.
2313 2010-10-08 Hristian Kirtchev <kirtchev@adacore.com>
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
2332 * sem_ch3.adb (Check_Abstract_Overriding): Perform checks concerning
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.
2352 2010-10-08 Javier Miranda <miranda@adacore.com>
2354 * exp_ch3.adb (Expand_Freeeze_Record_Type): Code cleanup: remove local
2355 variable Has_Static_DT by invocation of function Building_Static_DT.
2357 2010-10-08 Vincent Celier <celier@adacore.com>
2359 * g-dirope.adb (Remove_Dir): Do not change the current directory when
2360 doing a recursive remove of a subdirectory.
2362 2010-10-08 Javier Miranda <miranda@adacore.com>
2364 * exp_ch6.ad (Freeze_Subprogram): Factorize code.
2365 * exp_disp.adb (Make_Secondary_DT): Factorize code.
2366 (Make_DT): Factorize code.
2368 2010-10-08 Robert Dewar <dewar@adacore.com>
2370 * sem_ch4.adb: Minor reformatting.
2372 2010-10-08 Robert Dewar <dewar@adacore.com>
2374 * sem_ch6.adb (Check_Conformance): Check null exclusion match for full
2377 2010-10-08 Thomas Quinot <quinot@adacore.com>
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).
2384 2010-10-08 Vincent Celier <celier@adacore.com>
2386 * prj-nmsc.adb: Minor comment fix.
2388 2010-10-07 Robert Dewar <dewar@adacore.com>
2390 * sem_prag.adb, sem_ch13.adb: Implement AI05-0012-1/02.
2391 * gcc-interface/Make-lang.in: Update dependencies.
2393 2010-10-07 Ed Schonberg <schonberg@adacore.com>
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.
2400 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2402 * sem_ch4.adb (Analyze_Allocator): In Ada 2012, a null_exclusion
2403 indicator is illegal for an uninitialized allocator.
2405 2010-10-07 Robert Dewar <dewar@adacore.com>
2407 * sem_prag.adb (Analyze_Attribute_Definition_Clause, case
2408 Component_Size): Complete previous change.
2410 2010-10-07 Vincent Celier <celier@adacore.com>
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
2416 2010-10-07 Gary Dismukes <dismukes@adacore.com>
2418 * sem_aggr.adb, sem_ch12.adb, sem_ch6.adb, par-ch5.adb,
2419 exp_ch3.adb: Minor reformatting.
2421 2010-10-07 Robert Dewar <dewar@adacore.com>
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.
2429 2010-10-07 Steve Baird <baird@adacore.com>
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.
2434 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2436 * sem_ch12.adb (Validate_Derived_Type_Instance): If a formal derived
2437 type is non-limited, an actual for it cannot be limited.
2439 2010-10-07 Robert Dewar <dewar@adacore.com>
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.
2448 2010-10-07 Ed Schonberg <schonberg@adacore.com>
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
2455 2010-10-07 Ed Schonberg <schonberg@adacore.com>
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.
2461 2010-10-07 Robert Dewar <dewar@adacore.com>
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).
2468 2010-10-07 Robert Dewar <dewar@adacore.com>
2470 * sem_ch12.adb: Add comment.
2471 * sem_ch6.adb: Minor reformatting.
2473 2010-10-07 Robert Dewar <dewar@adacore.com>
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
2481 2010-10-07 Ed Schonberg <schonberg@adacore.com>
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.
2494 2010-10-07 Robert Dewar <dewar@adacore.com>
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
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
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).
2512 2010-10-07 Sergey Rybin <rybin@adacore.com>
2514 * gnat_ugn.texi: Add missing word.
2516 2010-10-07 Robert Dewar <dewar@adacore.com>
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.
2528 2010-10-07 Robert Dewar <dewar@adacore.com>
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
2536 2010-10-07 Javier Miranda <miranda@adacore.com>
2538 * exp_util.adb (Safe_Prefixed_Reference): When removing side effects,
2539 Add missing support for explicit dereferences.
2541 2010-10-07 Robert Dewar <dewar@adacore.com>
2543 * par-ch10.adb, par-ch3.adb, par.adb: Minor reformatting.
2545 2010-10-07 Robert Dewar <dewar@adacore.com>
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.
2552 2010-10-07 Robert Dewar <dewar@adacore.com>
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).
2559 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2561 * sem_ch10.adb: Small change in error message.
2563 2010-10-07 Robert Dewar <dewar@adacore.com>
2565 * tbuild.ads: Minor reformatting.
2567 2010-10-07 Robert Dewar <dewar@adacore.com>
2569 * gnatcmd.adb, make.adb, prj-nmsc.adb, sem_elab.adb: Minor reformatting
2571 2010-10-07 Arnaud Charlet <charlet@adacore.com>
2573 * exp_ch11.adb (Expand_N_Exception_Declaration): Update comments.
2575 2010-10-07 Robert Dewar <dewar@adacore.com>
2577 * sem_res.adb: Minor reformatting
2579 2010-10-07 Olivier Ramonat <ramonat@adacore.com>
2581 * gnat_ugn.texi: Minor editing.
2582 * opt.ads: Document that scripts rely on specific formats in opt.ads
2584 2010-10-07 Robert Dewar <dewar@adacore.com>
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
2591 2010-10-07 Robert Dewar <dewar@adacore.com>
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
2597 2010-10-07 Vincent Celier <celier@adacore.com>
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
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.
2615 2010-10-07 Ed Schonberg <schonberg@adacore.com>
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.
2623 2010-10-07 Hristian Kirtchev <kirtchev@adacore.com>
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
2641 (Inside_Generic_Body): New routine.
2643 2010-10-07 Ed Schonberg <schonberg@adacore.com>
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.
2649 2010-10-07 Vincent Celier <celier@adacore.com>
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.
2655 2010-10-07 Thomas Quinot <quinot@adacore.com>
2657 * sem_res.adb: Minor reformatting.
2659 2010-10-07 Arnaud Charlet <charlet@adacore.com>
2661 * debug.adb: Update -gnatd.J documentation.
2663 2010-10-07 Robert Dewar <dewar@adacore.com>
2665 * gnat_rm.texi: Document handling of invalid values
2666 * s-utf_32.ads, s-utf_32.adb (UTF_To_Lower_Case): Fix implementation
2668 (UTF_To_Upper_Case): New function.
2670 2010-10-07 Robert Dewar <dewar@adacore.com>
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
2676 * lib-xref.adb (Generate_Reference): Warn on use of Ada 2012 entity in
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
2682 * sem_prag.adb (Analyze_Pragma, case Ada_12/Ada_2012): Allow form with
2684 * sem_type.adb (Disambiguate): Deal with Is_Ada_2012_Only.
2685 * sem_warn.adb (Warn_On_Ada_2012_Compatibility): New flag, treated
2688 2010-10-07 Javier Miranda <miranda@adacore.com>
2690 * a-tags.ads: Use new support for pragma Ada_2012 with function
2693 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2695 * par-ch5.adb (P_Sequence_Of_Statements): In Ada2012 a label can end a
2696 sequence of statements.
2698 2010-10-07 Vincent Celier <celier@adacore.com>
2700 * gnatcmd.adb (Check_Files): Only add a .ci files if it exists
2702 2010-10-07 Javier Miranda <miranda@adacore.com>
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.
2708 2010-10-07 Arnaud Charlet <charlet@adacore.com>
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.
2715 2010-10-05 Robert Dewar <dewar@adacore.com>
2717 * par-ch5.adb (Test_Statement_Required): Allow all pragmas in Ada 2012
2720 2010-10-05 Pascal Obry <obry@adacore.com>
2722 * gnat_rm.texi: Fix typo.
2724 2010-10-05 Arnaud Charlet <charlet@adacore.com>
2726 * gnat_ugn.texi: Add note about identifiers with same name and
2729 2010-10-05 Robert Dewar <dewar@adacore.com>
2731 * sem_ch4.adb: Minor reformatting.
2732 * a-direct.ads: Minor comment update.
2734 2010-10-05 Javier Miranda <miranda@adacore.com>
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
2751 2010-10-05 Robert Dewar <dewar@adacore.com>
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).
2757 2010-10-05 Ed Schonberg <schonberg@adacore.com>
2759 * sem_ch10.adb (Analyze_Task_Body_Stub): Diagnose duplicate stub for
2762 2010-10-05 Vincent Celier <celier@adacore.com>
2764 * gnatbind.adb: If the main library file is not for a suitable main
2765 program, change the error message.
2767 2010-10-05 Vincent Celier <celier@adacore.com>
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
2774 2010-10-05 Robert Dewar <dewar@adacore.com>
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
2782 2010-10-05 Ed Schonberg <schonberg@adacore.com>
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.
2788 2010-10-05 Ed Schonberg <schonberg@adacore.com>
2790 * exp_attr.adb: For 'Read and 'Write, use full view of base type if
2793 2010-10-05 Vincent Celier <celier@adacore.com>
2795 * make.adb (Switches_Of): Allow wild cards in index of attributes
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.
2805 2010-10-05 Robert Dewar <dewar@adacore.com>
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.
2811 2010-10-05 Vincent Celier <celier@adacore.com>
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
2818 2010-10-05 Ed Schonberg <schonberg@adacore.com>
2820 * sem_ch3.adb: Do not elaborate type definition if syntax error.
2822 2010-10-05 Javier Miranda <miranda@adacore.com>
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
2829 2010-10-05 Thomas Quinot <quinot@adacore.com>
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.
2835 2010-10-05 Javier Miranda <miranda@adacore.com>
2837 * exp_disp.adb (Make_DT): Minor code reorganization.
2839 2010-10-05 Ed Schonberg <schonberg@adacore.com>
2841 * par-ch6.adb: improve recovery with extra paren in function spec.
2843 2010-10-05 Quentin Ochem <ochem@adacore.com>
2845 * prj-tree.ads: Project_Path is now aliased.
2847 2010-10-05 Thomas Quinot <quinot@adacore.com>
2849 * checks.adb: Minor reformatting.
2851 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
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
2859 * gcc-interface/Make-lang.in: Update dependencies.
2861 2010-10-05 Vincent Celier <celier@adacore.com>
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
2867 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
2869 * gnat_ugn.texi: Adjust instructions in G.10 Building DLLs with GNAT.
2871 2010-10-05 Javier Miranda <miranda@adacore.com>
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.
2877 2010-10-05 Arnaud Charlet <charlet@adacore.com>
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.
2882 2010-10-05 Javier Miranda <miranda@adacore.com>
2884 * debug.adb: Update documentation since -gnatd.Z is no longer required
2885 to generate the call-graph information.
2887 2010-10-05 Javier Miranda <miranda@adacore.com>
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.
2895 2010-10-05 Ed Schonberg <schonberg@adacore.com>
2897 * sem_type.adb (Covers): In a dispatching context, T1 covers T2 if T2
2898 is class-wide and T1 is its specific type.
2900 2010-10-05 Ed Schonberg <schonberg@adacore.com>
2902 * einfo.adb: Add guard to Is_String_Type to prevent cascaded errors.
2904 2010-10-05 Vincent Celier <celier@adacore.com>
2906 * back_end.ads: Minor spelling error correction.
2908 2010-10-05 Arnaud Charlet <charlet@adacore.com>
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.
2915 2010-10-05 Vincent Celier <celier@adacore.com>
2917 * makeutl.adb: Minor reformatting.
2919 2010-10-05 Ed Schonberg <schonberg@adacore.com>
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.
2924 2010-10-05 Vincent Celier <celier@adacore.com>
2926 * make.adb (Scan_Make_Arg): Take into account new switch
2928 * makeusg.adb: Add line for new switch --source-info=file.
2929 * makeutl.ads (Source_Info_Option): New constant String for new builder
2931 * prj-conf.adb: Put subprograms in alphabetical order
2932 (Process_Project_And_Apply_Config): Read/write an eventual source info
2934 * prj-nmsc.adb (Look_For_Sources.Get_Sources_From_Source_Info): New
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.
2962 2010-10-05 Ed Schonberg <schonberg@adacore.com>
2964 * exp_ch4.adb: Fix typo.
2966 2010-10-05 Thomas Quinot <quinot@adacore.com>
2968 * lib-writ.adb: Minor reformatting.
2970 2010-10-05 Javier Miranda <miranda@adacore.com>
2972 * sem_ch3.adb (Access_Definition): Remove useless code.
2974 2010-10-05 Emmanuel Briot <briot@adacore.com>
2976 * prj-env.adb, prj-env.ads (Set_Path): New subprogram.
2977 (Deep_Copy): Removed, not used.
2979 2010-10-05 Javier Miranda <miranda@adacore.com>
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.
2990 2010-10-05 Ed Falis <falis@adacore.com>
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.
2997 2010-10-05 Doug Rupp <rupp@adacore.com>
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.
3004 2010-10-05 Emmanuel Briot <briot@adacore.com>
3006 * prj-nmsc.adb (Expand_Subdirectory_Pattern): Check that the prefix in
3007 a "**" pattern properly exists, and report an error otherwise.
3009 2010-10-05 Emmanuel Briot <briot@adacore.com>
3011 * prj-env.ads: Use GNAT.OS_Lib rather than System.OS_Lib.
3013 2010-10-05 Emmanuel Briot <briot@adacore.com>
3015 * prj-nmsc.adb, prj-err.adb (Expand_Subdirectory_Pattern): New
3017 Extract some code from Get_Directories, to share with the handling
3018 of aggregate projects (for the Project_Files attributes)
3020 2010-10-05 Emmanuel Briot <briot@adacore.com>
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
3027 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
3029 * exp_ch5.adb (Make_Field_Expr): Revert previous change (removed).
3031 2010-10-05 Emmanuel Briot <briot@adacore.com>
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
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.
3049 2010-10-05 Vincent Celier <celier@adacore.com>
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.
3055 2010-10-05 Bob Duff <duff@adacore.com>
3057 * xgnatugn.adb: Remove unused procedure.
3059 2010-10-04 Vincent Celier <celier@adacore.com>
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
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.
3069 2010-10-04 Vincent Celier <celier@adacore.com>
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
3076 2010-10-04 Javier Miranda <miranda@adacore.com>
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
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.
3092 2010-10-04 Ed Schonberg <schonberg@adacore.com>
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
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.
3101 2010-10-04 Robert Dewar <dewar@adacore.com>
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).
3108 2010-10-04 Arnaud Charlet <charlet@adacore.com>
3110 * sem_elab.adb: Minor reformatting.
3112 2010-10-04 Ed Schonberg <schonberg@adacore.com>
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.
3118 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3120 * gnat_ugn.texi: Clarify first point of 7.1.5 about pragma Inline.
3122 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
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
3128 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
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.
3138 2010-10-04 Vincent Celier <celier@adacore.com>
3140 * osint.adb (Read_Library_Info_From_Full): If object timestamp is less
3141 than ALI file timestamp, return null.
3143 2010-10-04 Vincent Celier <celier@adacore.com>
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.
3153 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
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.
3163 2010-10-04 Javier Miranda <miranda@adacore.com>
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.
3172 2010-10-04 Robert Dewar <dewar@adacore.com>
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).
3181 2010-10-04 Robert Dewar <dewar@adacore.com>
3183 * s-taprop-vxworks.adb, sem_res.adb: Minor reformatting.
3185 2010-10-04 Javier Miranda <miranda@adacore.com>
3187 * exp_cg.adb (Write_Call_Info): Code clean up.
3189 2010-10-04 Arnaud Charlet <charlet@adacore.com>
3191 * s-taprop-mingw.adb (Create_Task): Initialize Thread_Id field to 0.
3193 2010-10-04 Robert Dewar <dewar@adacore.com>
3195 * exp_cg.adb: Minor code reorganization
3197 * exp_ch5.adb, prj-nmsc.adb: Minor reformatting.
3199 2010-10-04 Bob Duff <duff@adacore.com>
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.
3205 2010-10-04 Thomas Quinot <quinot@adacore.com>
3207 * sem_warn.ads: Fix typo.
3209 2010-10-04 Javier Miranda <miranda@adacore.com>
3211 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Handle suffix in
3213 (Write_Call_Info): Add missing support for renamed primitives.
3215 2010-10-04 Thomas Quinot <quinot@adacore.com>
3217 * exp_ch5.adb (Make_Field_Expr): New subprogram, to factor duplicated
3218 code between Make_Component_List_Assign and Make_Field_Assign.
3220 2010-10-04 Vincent Celier <celier@adacore.com>
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.
3226 2010-10-04 Sergey Rybin <rybin@adacore.com>
3228 * gnat_ugn.texi (gnatcheck): Change the description of the report file
3231 2010-10-04 Ed Falis <falis@adacore.com>
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.
3238 2010-10-04 Robert Dewar <dewar@adacore.com>
3240 * sem_res.adb, sinput-l.adb: Minor reformatting.
3242 2010-10-04 Hristian Kirtchev <kirtchev@adacore.com>
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.
3248 2010-10-04 Vincent Celier <celier@adacore.com>
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
3260 * sinput-l.adb (Load_File): If -gnateG is used, write the preprocessed
3261 file only for the main unit (spec, body and subunits).
3263 2010-10-04 Vincent Celier <celier@adacore.com>
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.
3269 2010-10-04 Thomas Quinot <quinot@adacore.com>
3271 * sem_res.adb: Minor reformatting.
3273 2010-10-04 Ed Schonberg <schonberg@adacore.com>
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.
3279 2010-10-04 Ed Schonberg <schonberg@adacore.com>
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.
3286 2010-10-04 Gary Dismukes <dismukes@adacore.com>
3288 * checks.adb: Update comment.
3290 2010-09-30 Joseph Myers <joseph@codesourcery.com>
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.
3296 2010-09-29 Joel Sherrill <joel.sherrill@oarcorp.com>
3298 * g-socket.adb: Move pragma to disable warnings in case multiple errnos
3299 are not defined by target.
3301 2010-09-29 Eric Botcazou <ebotcazou@adacore.com>
3303 * gcc-interface/utils.c (handle_leaf_attribute): Fix long line.
3305 2010-09-28 Richard Henderson <rth@redhat.com>
3307 * gcc-interface/misc.c (gnat_eh_personality): Use
3308 targetm.except_unwind_info.
3310 2010-09-28 Jan Hubicka <jh@suse.cz>
3312 * gcc-interface/utils.c (handle_leaf_attribute): New function.
3313 (gnat_internal_attribute_tables): Add leaf.
3315 2010-09-22 Joseph Myers <joseph@codesourcery.com>
3317 * gcc-interface/lang.opt (-all-warnings, -include-barrier,
3318 -include-directory, -include-directory=, -no-standard-includes,
3319 -no-standard-libraries): New.
3321 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
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.
3336 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3338 * gcc-interface/trans.c (gnat_pushdecl): Do not do anything special
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
3347 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3349 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>: Do
3350 not generate debug info for individual enumerators.
3352 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
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.
3358 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
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.
3381 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
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
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
3393 expressions in presence of a freeze node.
3395 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
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.
3402 2010-09-10 Vincent Celier <celier@adacore.com>
3404 * projects.texi: Add documentation for package extensions
3405 Add some documentation for attributes Leading_Library_Options and
3406 Linker'Leading_Switches.
3408 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3410 * exp_util.adb (Expand_Subtype_From_Expression): When expansion is
3411 disabled, compute subtype for all string types.
3413 2010-09-10 Robert Dewar <dewar@adacore.com>
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
3420 * sem_warn.ads, sem_warn.adb (Warn_On_Overridden_Size): New flag
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.
3426 2010-09-10 Vincent Celier <celier@adacore.com>
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
3432 2010-09-10 Bob Duff <duff@adacore.com>
3434 * exp_ch6.adb (Expand_Call): Do not perform a null_exclusion check on
3437 2010-09-10 Robert Dewar <dewar@adacore.com>
3439 * sem.adb: Minor reformatting.
3441 2010-09-10 Bob Duff <duff@adacore.com>
3443 * s-os_lib.ads, g-expect.ads: Add comments.
3445 2010-09-10 Robert Dewar <dewar@adacore.com>
3447 * exp_ch5.adb: Minor reformatting.
3449 2010-09-10 Thomas Quinot <quinot@adacore.com>
3451 * scos.ads: Add comments.
3453 2010-09-10 Vincent Celier <celier@adacore.com>
3455 * gnatcmd.adb (Get_Closure): Remove useless invocation of Close.
3457 2010-09-10 Hristian Kirtchev <kirtchev@adacore.com>
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.
3467 2010-09-10 Arnaud Charlet <charlet@adacore.com>
3469 * sem.adb (Do_Unit_And_Dependents): Add guard.
3471 2010-09-10 Robert Dewar <dewar@adacore.com>
3473 * exp_ch5.adb: Update comments.
3474 * exp_dist.adb: Minor reformatting.
3476 2010-09-10 Robert Dewar <dewar@adacore.com>
3478 * sem_ch13.adb (Check_Record_Representation_Clause): Implement record
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
3487 2010-09-10 Gary Dismukes <dismukes@adacore.com>
3489 * sem_ch6.adb: Update comment.
3491 2010-09-10 Ed Schonberg <schonberg@adacore.com>
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
3498 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
3500 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): In the VM case,
3501 just issue a warning, but continue with the normal processing.
3503 2010-09-10 Robert Dewar <dewar@adacore.com>
3505 * exp_attr.adb, prj-nmsc.adb, sem_ch4.adb, sem_res.adb: Minor
3508 2010-09-10 Thomas Quinot <quinot@adacore.com>
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
3515 2010-09-10 Ed Schonberg <schonberg@adacore.com>
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.
3521 2010-09-10 Vincent Celier <celier@adacore.com>
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.
3528 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3530 * exp_cg.adb: Handle properly bodies without specs.
3532 2010-09-10 Emmanuel Briot <briot@adacore.com>
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
3539 2010-09-10 Robert Dewar <dewar@adacore.com>
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
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
3559 2010-09-10 Ed Schonberg <schonberg@adacore.com>
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.
3565 2010-09-10 Robert Dewar <dewar@adacore.com>
3567 * frontend.adb: Minor reformatting.
3569 2010-09-10 Robert Dewar <dewar@adacore.com>
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
3575 2010-09-10 Ed Schonberg <schonberg@adacore.com>
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
3581 2010-09-10 Jose Ruiz <ruiz@adacore.com>
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
3588 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3590 * s-pooglo.ads: Add overriding indicators.
3592 2010-09-10 Vincent Celier <celier@adacore.com>
3594 * vms_data.ads: Add new GNAT BIND qualifiers /32_MALLOC (for -H32) and
3595 /64_MALLOC (for -H64).
3597 2010-09-10 Robert Dewar <dewar@adacore.com>
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
3607 2010-09-10 Vincent Celier <celier@adacore.com>
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
3615 * makeutl.ads (Create_Binder_Mapping_File): New function
3617 2010-09-10 Jose Ruiz <ruiz@adacore.com>
3619 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Add the "__" scope
3620 separator when trying the pattern matching to detect predefined
3621 primitive operations.
3623 2010-09-10 Robert Dewar <dewar@adacore.com>
3625 * bindgen.adb, atree.adb: Minor reformatting.
3627 2010-09-10 Ben Brosgol <brosgol@adacore.com>
3629 * ug_words, gnat_ugn.texi: Revised "Transitioning to 64-Bit GNAT for
3632 2010-09-10 Doug Rupp <rupp@adacore.com>
3634 * bindgen.adb: Minor comment fix for -H switch.
3636 2010-09-10 Ed Schonberg <schonberg@adacore.com>
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
3647 2010-09-10 Robert Dewar <dewar@adacore.com>
3649 * symbols-processing-vms-alpha.adb: Minor reformatting.
3651 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
3653 * bindgen.adb (Gen_Adainit_Ada): In .NET, don't call
3654 __gnat_install_handler in case the binder is called with -n.
3656 2010-09-10 Ed Schonberg <schonberg@adacore.com>
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.
3663 2010-09-10 Tristan Gingold <gingold@adacore.com>
3665 * symbols-processing-vms-alpha.adb: Allow gnatsym to work as a cross
3667 * gcc-interface/Make-lang.in: Install gnatsym when cross compiling.
3668 * gcc-interface/Makefile.in: gnat.hlp is now generated by
3671 2010-09-10 Bob Duff <duff@adacore.com>
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.
3679 2010-09-10 Robert Dewar <dewar@adacore.com>
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.
3685 2010-09-10 Vincent Celier <celier@adacore.com>
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.
3690 2010-09-10 Robert Dewar <dewar@adacore.com>
3692 * exp_ch3.adb (Expand_N_Object_Declaration): Defend against previous
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.
3700 2010-09-10 Robert Dewar <dewar@adacore.com>
3702 * repinfo.adb (List_Type_Info): List Small and Range for fixed-point
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
3713 2010-09-10 Robert Dewar <dewar@adacore.com>
3715 * sem_ch4.adb: Minor reformatting.
3717 2010-09-10 Richard Guenther <rguenther@suse.de>
3719 * gcc-interface/utils.c (create_index_type): Use build_range_type.
3721 2010-09-10 Arnaud Charlet <charlet@adacore.com>
3723 * vms_cmds.ads: New.
3725 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
3727 * exp_dbug.ads: Mention enhanced encoding for array types.
3729 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
3731 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Size clause are
3732 unsupported in VM targets. Display a warning in this case.
3734 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3736 * sprint.adb (Sprint_Node_Actual, case N_Derived_Type_Definition): Do
3737 not reset Sloc when printing keyword "new".
3739 2010-09-10 Vincent Celier <celier@adacore.com>
3741 * gnatcmd.adb (GNATCmd): Put the command line in environment variable
3742 GNAT_DRIVER_COMMAND_LINE.
3744 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3746 * sem.adb (Do_Unit_And_Dependents): if Withed_Body is set on a context
3747 clause, process the body at once.
3749 2010-09-10 Ed Schonberg <schonberg@adacore.com>
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.
3755 2010-09-10 Vincent Celier <celier@adacore.com>
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.
3760 2010-09-10 Robert Dewar <dewar@adacore.com>
3762 * prj-util.adb: Minor reformatting.
3764 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
3766 * exp_disp.adb: Minor reformatting.
3768 2010-09-10 Arnaud Charlet <charlet@adacore.com>
3770 * sem_prag.adb (Analyze_Pragma): Ignore Inline_Always pragma in
3773 2010-09-10 Thomas Quinot <quinot@adacore.com>
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).
3780 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
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
3788 2010-09-10 Ed Schonberg <schonberg@adacore.com>
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.
3795 2010-09-10 Robert Dewar <dewar@adacore.com>
3797 * gnatlink.adb, prj-ext.adb, prj-util.adb, s-tporft.adb,
3798 sem_ch3.adb: Minor reformatting.
3800 2010-09-10 Ed Schonberg <schonberg@adacore.com>
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.
3806 2010-09-10 Robert Dewar <dewar@adacore.com>
3808 * sem_aux.ads: Add comment for Is_Inherently_Limited_Type.
3809 * checks.adb: Minor reformatting.
3811 2010-09-10 Robert Dewar <dewar@adacore.com>
3813 * gnat_ugn.texi: Add section on intent of style checking options.
3815 2010-09-10 Arnaud Charlet <charlet@adacore.com>
3817 * xref_lib.adb (Get_Full_Type): Fix handling of 'a' char.
3819 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3821 * sem_ch3.adb: Improve error message on derivation from class-wide type
3823 2010-09-10 Steve Baird <baird@adacore.com>
3825 * gnat1drv.adb (Adjust_Global_Switches): Enable Expression_With_Actions
3826 generation when Generate_SCIL is True.
3828 2010-09-10 Geert Bosch <bosch@adacore.com>
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.
3834 2010-09-10 Arnaud Charlet <charlet@adacore.com>
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
3841 2010-09-10 Thomas Quinot <quinot@adacore.com>
3843 * s-fileio.adb, a-dirval.adb: Minor reformatting.
3845 2010-09-10 Emmanuel Briot <briot@adacore.com>
3847 * prj-util.adb (Executable_Of): Fix CE when the project does not
3848 contain a Builder package.
3850 2010-09-10 Vincent Celier <celier@adacore.com>
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
3856 2010-09-10 Ed Schonberg <schonberg@adacore.com>
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.
3862 2010-09-10 Ben Brosgol <brosgol@adacore.com>
3864 * gnat_rm.texi: Document Short_Descriptors.
3866 2010-09-10 Arnaud Charlet <charlet@adacore.com>
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.
3872 2010-09-10 Robert Dewar <dewar@adacore.com>
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
3883 2010-09-10 Emmanuel Briot <briot@adacore.com>
3885 * prj-util.adb, prj-util.ads (Executable_Of): Take into account the
3886 project's Executable_Suffix.
3888 2010-09-10 Robert Dewar <dewar@adacore.com>
3890 * g-pehage.ads: Minor reformatting
3892 * gnat_ugn.texi: Clarifying comment on -gnatyc
3893 * exp_ch6.adb (Expand_N_Subprogram_Body): Reset Is_Pure if limited
3896 2010-09-10 Tristan Gingold <gingold@adacore.com>
3898 * Make-generated.in (gnat.hlp): New rule.
3900 2010-09-10 Emmanuel Briot <briot@adacore.com>
3902 * prj-util.adb, prj-util.ads (Executable_Of): New parameter
3905 2010-09-10 Robert Dewar <dewar@adacore.com>
3907 * einfo.adb: Minor code cleanup: Add assertion to
3908 Set_Corresponding_Protected_Entry.
3910 2010-09-10 Bob Duff <duff@adacore.com>
3912 * g-pehage.ads, g-pehage.adb (Produce): Add a new flag to allow sending
3913 the output to standard output.
3915 2010-09-09 Vincent Celier <celier@adacore.com>
3917 * gnat_ugn.texi: Add documentation for new gnatmake switch
3919 * make.adb (Map_File): New global variable to store the value of switch
3921 (Gnatmake): Add switch -M to gnatlink if switch --create-map-file has
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.
3927 2010-09-09 Robert Dewar <dewar@adacore.com>
3929 * sinput-p.ads: Minor comment update.
3931 2010-09-09 Arnaud Charlet <charlet@adacore.com>
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).
3940 2010-09-09 Vadim Godunko <godunko@adacore.com>
3942 * impunit.adb: Correct spelling of package's name in the comment.
3944 2010-09-09 Robert Dewar <dewar@adacore.com>
3946 * gnatcmd.adb, gnatlink.adb, sem_ch12.adb, sem_eval.adb, sinput-p.adb:
3949 2010-09-09 Robert Dewar <dewar@adacore.com>
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).
3956 2010-09-09 Ed Schonberg <schonberg@adacore.com>
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
3963 2010-09-09 Gary Dismukes <dismukes@adacore.com>
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.
3970 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
3972 * gnat_ugn.texi: Fix another long line.
3974 2010-09-09 Bob Duff <duff@adacore.com>
3976 * sem_warn.adb (Output_Reference_Error): Don't warn for renames read
3979 2010-09-09 Matthew Heaney <heaney@adacore.com>
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
3999 2010-09-09 Ed Schonberg <schonberg@adacore.com>
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.
4007 2010-09-09 Thomas Quinot <quinot@adacore.com>
4009 * projects.texi: Fix wrong identifiers on package end lines in project
4011 * exp_ch6.adb: Minor reformatting.
4013 2010-09-09 Tristan Gingold <gingold@adacore.com>
4015 * gnatcmd.adb, vms_conv.ads: Extract Command_Type.
4017 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
4019 * gnat_ugn.texi: Fix description of -O3 optimization level.
4021 2010-09-09 Yannick Moy <moy@adacore.com>
4023 * a-cihama.adb, a-cohama.adb: Fix comments.
4025 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4027 * i-cexten.ads: Add comments.
4028 (Signed_128): New type, used by some C bindings.
4029 * debug.adb: Update comment.
4031 2010-09-09 Sergey Rybin <rybin@adacore.com>
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.
4037 2010-09-09 Ed Schonberg <schonberg@adacore.com>
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
4043 2010-09-09 Doug Rupp <rupp@adacore.com>
4045 * sem_prag.adb (pragma Ident): Pass --identification= vice
4047 * gnatlink.adb (Linker_Options): Look for --identification= vice
4050 2010-09-09 Gary Dismukes <dismukes@adacore.com>
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.
4058 2010-09-09 Vincent Celier <celier@adacore.com>
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.
4065 2010-09-09 Arnaud Charlet <charlet@adacore.com>
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.
4071 2010-09-09 Robert Dewar <dewar@adacore.com>
4073 * sem_attr.adb: Minor reformatting.
4075 2010-09-09 Thomas Quinot <quinot@adacore.com>
4077 * socket.c (__gnat_socket_ioctl): On Darwin, the req parameter is an
4078 unsigned long, not an int.
4080 2010-09-09 Vincent Celier <celier@adacore.com>
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.
4086 2010-09-09 Ed Schonberg <schonberg@adacore.com>
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.
4092 2010-09-09 Vincent Celier <celier@adacore.com>
4094 * sinput-p.adb (Source_File_Is_Subunit): Return False if X is
4097 2010-09-09 Ramon Fernandez <fernandez@adacore.com>
4099 * sysdep.c: The wrSbc8548 BSP in MILS doesn't know anything about the
4100 VX_SPE_TASK option, so disable it.
4102 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4104 * sem.adb (Walk_Library_Items): Traverse context of subunits of the
4106 (Is_Subunit_Of_Main): Handle null nodes properly.
4108 2010-09-09 Robert Dewar <dewar@adacore.com>
4110 * par-ch2.adb: Update comments.
4112 2010-09-09 Ben Brosgol <brosgol@adacore.com>
4114 * gnat_rm.texi: Minor wordsmithing of section on pragma Ordered.
4116 2010-09-09 Arnaud Charlet <charlet@adacore.com>
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.
4123 2010-09-09 Thomas Quinot <quinot@adacore.com>
4125 * s-strxdr.adb, gnat_rm.texi, s-stratt-xdr.adb, s-stratt.ads: Rename
4126 s-strxdr.adb to s-stratt-xdr.adb
4128 2010-09-09 Robert Dewar <dewar@adacore.com>
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
4154 2010-09-09 Doug Rupp <rupp@adacore.com>
4156 * gnatlbr.adb: Removed.
4157 * gnat_rm.texi, ug_words, gnat_ugn.texi: Remove mention of gnatlbr.
4159 2010-09-09 Robert Dewar <dewar@adacore.com>
4161 * sem_res.adb (Resolve_Type_Conversion): Catch more cases of redundant
4164 2010-09-09 Vincent Celier <celier@adacore.com>
4166 * gnatlbr.adb: Remove redundant conversions.
4168 2010-09-09 Vincent Celier <celier@adacore.com>
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
4175 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4177 * sem_res.adb (Resolve_Equality_Op): Implement Ada2012 rule for
4178 resolution of conditional expressions whose dependent expressions are
4179 anonymous access types.
4181 2010-09-09 Robert Dewar <dewar@adacore.com>
4183 * a-ststio.adb: Minor code reorganization.
4184 * s-direio.adb, prj.adb, prj-nmsc.adb, sem_type.adb: Remove redundant
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
4192 * opt.ads: Add pragma Ordered for Verbosity_Level.
4193 * prj.ads: Add pragma Ordered for type Verbosity.
4195 2010-09-09 Vincent Celier <celier@adacore.com>
4197 * osint.adb (Canonical_Case_File_Name): Use procedure To_Lower in
4199 (Canonical_Case_Env_Var_Name): Ditto
4201 2010-09-09 Bob Duff <duff@adacore.com>
4203 * g-pehage.adb (Allocate): Initialize the allocated elements of IT.
4205 2010-09-09 Robert Dewar <dewar@adacore.com>
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
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
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.
4240 2010-09-09 Vincent Celier <celier@adacore.com>
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,
4250 2010-09-09 Robert Dewar <dewar@adacore.com>
4252 * sem_util.adb: Minor reformatting
4254 2010-09-09 Vincent Celier <celier@adacore.com>
4256 * vms_data.ads: Add documentation for S_Make_Single.
4258 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4260 * sem_util.adb (Same_Object): include formal parameters.
4262 2010-09-09 Vincent Celier <celier@adacore.com>
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
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.
4277 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4279 * einfo.adb, einfo.ads: Clarify use of Corresponding_Protected_Entry.
4281 2010-09-09 Javier Miranda <miranda@adacore.com>
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
4287 2010-09-09 Thomas Quinot <quinot@adacore.com>
4289 * exp_ch8.adb: Minor reformatting.
4291 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4293 * exp_ch9.adb, einfo.adb, einfo.ads: New attribute
4294 Corresponding_Protected_Entry.
4296 2010-09-09 Ed Schonberg <schonberg@adacore.com>
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
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
4306 2010-09-09 Robert Dewar <dewar@adacore.com>
4308 * sem.adb, sem_warn.adb: Minor reformatting.
4310 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4312 * sem_ch6.adb: Improve error message on untagged equality.
4313 * sem.adb (Semantics): Include subprogram bodies that act as spec.
4315 2010-09-09 Javier Miranda <miranda@adacore.com>
4317 * sem_ch13.adb, exp_ch13.adb: Undo previous change, unneeded.
4319 2010-09-09 Robert Dewar <dewar@adacore.com>
4321 * sem_ch13.adb, sem_ch6.adb, exp_ch3.adb: Minor reformatting.
4323 2010-09-09 Robert Dewar <dewar@adacore.com>
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
4331 2010-09-09 Robert Dewar <dewar@adacore.com>
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
4336 * restrict.ads, restrict.adb: Ditto.
4337 (Restriction_Check_Needed): New function
4339 2010-09-09 Ed Schonberg <schonberg@adacore.com>
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.
4347 2010-09-09 Vincent Celier <celier@adacore.com>
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
4354 2010-09-09 Javier Miranda <miranda@adacore.com>
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
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.
4379 2010-09-09 Robert Dewar <dewar@adacore.com>
4381 * a-calfor.adb, sem_ch3.adb: Minor reformatting.
4383 2010-09-09 Robert Dewar <dewar@adacore.com>
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
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
4397 * sem_res.adb (Resolve_Range): Check for enumeration subrange style
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
4410 2010-09-09 Robert Dewar <dewar@adacore.com>
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
4421 2010-09-09 Bob Duff <duff@adacore.com>
4423 * sem_elab.adb, s-os_lib.ads: Minor comment fixes.
4425 2010-09-09 Robert Dewar <dewar@adacore.com>
4427 * s-bitops.adb (Raise_Error): Add exception message
4429 2010-09-09 Robert Dewar <dewar@adacore.com>
4431 * par-ch5.adb (Test_Statement_Required): Deal with Ada 2012 allowing no
4432 null statement after label.
4433 * sinfo.ads: Minor comment updates.
4435 2010-09-09 Robert Dewar <dewar@adacore.com>
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.
4441 2010-09-09 Robert Dewar <dewar@adacore.com>
4443 * restrict.ads, restrict.adb (Check_Wide_Character_Restriction): New
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
4450 2010-09-09 Robert Dewar <dewar@adacore.com>
4452 * par-ch5.adb: Minor reformatting.
4454 2010-09-09 Robert Dewar <dewar@adacore.com>
4456 * prj-env.adb: Minor code reorganization.
4457 * par-ch3.adb: Minor reformatting.
4458 * gcc-interface/Make-lang.in: Update dependencies.
4460 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4462 * exp_ch9.adb (Build_Activation_Chain_Entity): The construct enclosing
4463 a task declaration can be an entry body.
4465 2010-09-09 Javier Miranda <miranda@adacore.com>
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.
4472 2010-09-09 Ed Schonberg <schonberg@adacore.com>
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.
4478 2010-09-09 Ed Schonberg <schonberg@adacore.com>
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
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.
4500 2010-09-09 Tristan Gingold <gingold@adacore.com>
4502 * gnatlbr.adb: Make Create_Directory more portable: use __gnat_mkdir.
4504 2010-09-09 Bob Duff <duff@adacore.com>
4506 * gnat_ugn.texi: Remove incorrect statement about -E being the default.
4508 2010-09-09 Pascal Obry <obry@adacore.com>
4510 * gnat_ugn.texi: Update doc on windows related topics.
4512 2010-09-09 Geert Bosch <bosch@adacore.com>
4514 * s-fatgen.adb: Update comments.
4516 2010-09-09 Robert Dewar <dewar@adacore.com>
4518 * par-ch4.adb (Box_Error): New procedure.
4520 2010-09-09 Thomas Quinot <quinot@adacore.com>
4522 * sem.adb: Minor reformatting.
4524 2010-09-09 Pascal Obry <obry@adacore.com>
4526 * prj-env.adb: Style fix, use /and then/ and /or else/.
4527 * gnat_ugn.texi: Fix typos.
4529 2010-09-03 Joseph Myers <joseph@codesourcery.com>
4532 * gcc-interface/misc.c (gnat_init_options): Allow options with
4533 empty canonical form. Generate a single save_argv element from -I
4536 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
4538 * gcc-interface/utils.c (gnat_pushdecl): Remove test for PARM_DECLs.
4539 Attach fake PARM_DECLs to the topmost block of the function.
4541 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
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.
4546 2010-08-30 Olivier Hainque <hainque@adacore.com>
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.
4552 2010-08-21 Eric Botcazou <ebotcazou@adacore.com>
4554 * tracebak.c: Fix typo in comment.
4556 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
4558 * gcc-interface/decl.c: Use FOR_EACH_VEC_ELT.
4559 * gcc-interface/trans.c: Likewise.
4560 * gcc-interface/utils.c: Likewise.
4562 2010-08-18 Eric Botcazou <ebotcazou@adacore.com>
4564 * tracebak.c (i386): Use GCC unwinder on Linux with GCC > 4.5.
4566 2010-08-10 Robert Dewar <dewar@adacore.com>
4568 * sem_ch8.adb, sem_ch8.ads: Change name Write_Scopes to ws.
4569 * sem_util.adb: Minor reformatting.
4571 2010-08-10 Javier Miranda <miranda@adacore.com>
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
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
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
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++
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++
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
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
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
4643 * gcc-interface/Make-lang.in: Update dependencies.
4645 2010-08-10 Robert Dewar <dewar@adacore.com>
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
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
4673 2010-08-10 Robert Dewar <dewar@adacore.com>
4675 * einfo.adb, einfo.ads: Fix bad -gnatdt output for incomplete type.
4677 2010-08-10 Robert Dewar <dewar@adacore.com>
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
4683 2010-08-10 Robert Dewar <dewar@adacore.com>
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.
4689 2010-08-10 Arnaud Charlet <charlet@adacore.com>
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).
4697 2010-08-10 Ed Schonberg <schonberg@adacore.com>
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.
4704 2010-08-10 Vincent Celier <celier@adacore.com>
4706 * prj-proc.adb (Get_Attribute_Index): If Index is All_Other_Names,
4708 * prj-strt.adb (Attribute_Reference): Recognize 'others' as a valid
4709 index for an associative array where it is allowed.
4711 2010-08-10 Thomas Quinot <quinot@adacore.com>
4713 * exp_attr.adb: Add comments.
4715 2010-08-10 Jerome Lambourg <lambourg@adacore.com>
4717 * adaint.c (__gnat_get_file_names_case_sensitive): return 0 on darwin.
4719 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
4721 * gcc-interface/utils.c (gnat_poplevel): Use blocks_nreverse.
4723 2010-08-09 Eric Botcazou <ebotcazou@adacore.com>
4725 * gcc-interface/utils.c (build_vms_descriptor32): Fix formatting.
4726 (build_vms_descriptor): Likewise.
4728 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
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.
4734 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
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.
4742 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
4744 * gcc-interface/decl.c (gnat_to_gnu_entity): Use XALLOCAVEC instead
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.
4752 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
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
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.
4764 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
4766 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not build an
4767 allocator for large imported objects.
4769 2010-08-05 Robert Dewar <dewar@adacore.com>
4771 * gnat1drv.adb: Minor reformatting.
4773 2010-08-05 Ed Schonberg <schonberg@adacore.com>
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.
4780 2010-08-05 Vincent Celier <celier@adacore.com>
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.
4787 2010-08-05 Ed Schonberg <schonberg@adacore.com>
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.
4793 2010-08-05 Ed Schonberg <schonberg@adacore.com>
4795 * exp_util.adb (Insert_Actions): If the action appears within a
4796 conditional expression that is already analyzed, insert action further
4799 2010-08-05 Robert Dewar <dewar@adacore.com>
4801 * exp_ch4.adb: Minor reformatting.
4803 2010-08-05 Thomas Quinot <quinot@adacore.com>
4805 * exp_ch4.adb: Minor reformatting
4806 * gnat1drv.adb: Minor reformatting.
4807 Minor code reorganization (use Nkind_In).
4809 2010-08-05 Ed Schonberg <schonberg@adacore.com>
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
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
4824 2010-08-05 Vincent Celier <celier@adacore.com>
4826 * prj.adb (Is_Compilable): Return False for header files of non Ada
4829 2010-08-05 Emmanuel Briot <briot@adacore.com>
4831 * prj-nmsc.adb: The Missing_Source_Files flag also considers a missing
4832 exec directory as a warning rather than an error.
4834 2010-08-05 Thomas Quinot <quinot@adacore.com>
4836 * sem_ch6.adb, gnat1drv.adb, exp_ch6.adb, sem_eval.adb: Minor
4839 2010-08-05 Steve Baird <baird@adacore.com>
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.
4845 2010-08-05 Robert Dewar <dewar@adacore.com>
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
4852 * sem_elab.adb: Minor reformatting.
4854 2010-08-05 Arnaud Charlet <charlet@adacore.com>
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.
4860 2010-08-05 Robert Dewar <dewar@adacore.com>
4862 * errout.adb, a-suewen.adb, a-suezen.adb: Minor reformatting.
4864 2010-08-05 Gary Dismukes <dismukes@adacore.com>
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.
4875 2010-08-05 Arnaud Charlet <charlet@adacore.com>
4877 * sem.adb: Minor reformatting
4878 * sem_ch4.adb (Analyze_Reference): Disable error message in CodePeer
4881 2010-08-04 Eric Botcazou <ebotcazou@adacore.com>
4883 * gcc-interface/decl.c: Do not undefine IN_GCC_FRONTEND and do not
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.
4889 2010-08-03 Joseph Myers <joseph@codesourcery.com>
4891 * gcc-interface/lang-specs.h: Don't pass -a options.
4893 2010-07-28 Joseph Myers <joseph@codesourcery.com>
4895 * gcc-interface/misc.c (gnat_init_options): Ignore erroneous
4896 options. Check canonical_option_num_elements on options copied.
4898 2010-07-27 Joseph Myers <joseph@codesourcery.com>
4900 * gcc-interface/misc.c (gnat_handle_option): Update prototype and
4901 return value type. Don't check for missing arguments here.
4903 2010-07-27 Joseph Myers <joseph@codesourcery.com>
4905 * gcc-interface/misc.c (gnat_option_lang_mask): New.
4906 (gnat_init_options): Update prototype. Reconstruct argv array
4907 from decoded options.
4909 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
4911 * gcc-interface/utils.c (update_pointer_to): In the unconstrained array
4912 case, merge the alias set of the old pointer type.
4914 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
4916 * gcc-interface/utils.c (gnat_types_compatible_p): Revert latest change
4917 and recurse only for multidimensional array types instead.
4919 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
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.
4926 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
4928 * gcc-interface/utils.c (gnat_types_compatible_p): Don't require strict
4929 equality for the component type of array types.
4931 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
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.
4938 2010-07-13 Laurent GUERBY <laurent@guerby.net>
4941 * gcc-interface/targtyps.c: Include tm_p.h.
4942 * gcc-interface/Make-lang.in: Update dependencies.
4944 2010-07-09 Eric Botcazou <ebotcazou@adacore.com>
4946 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Deal with
4949 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
4951 * gcc-interface/utils.c: Include diagnostic-core.h in every file
4952 that includes toplev.h.
4954 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
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.
4961 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
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.
4967 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4969 * gcc-interface/trans.c: Do not include tree-flow.h.
4970 * gcc-interface/Make-lang.in: Adjust dependencies.
4972 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
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.
4995 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
4997 * gcc-interface/misc.c: Do not include except.h.
4998 * gcc-interface/Make-lang.in: Update dependencies.
5000 2010-06-27 Eric Botcazou <ebotcazou@adacore.com>
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).
5009 2010-06-23 Thomas Quinot <quinot@adacore.com>
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
5016 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5018 * sem_prag.adb: Fix typo in error message.
5019 * sem.adb: Refine previous change.
5021 2010-06-23 Robert Dewar <dewar@adacore.com>
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.
5027 2010-06-23 Arnaud Charlet <charlet@adacore.com>
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
5034 * gcc-interface/Makefile.in: Enable use of above files.
5036 2010-06-23 Ed Schonberg <schonberg@adacore.com>
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.
5043 2010-06-23 Arnaud Charlet <charlet@adacore.com>
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
5049 2010-06-23 Bob Duff <duff@adacore.com>
5051 * g-comlin.ads: Minor comment improvements.
5053 2010-06-23 Ed Schonberg <schonberg@adacore.com>
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.
5059 2010-06-23 Bob Duff <duff@adacore.com>
5061 * g-comlin.ads, sem_ch13.adb: Minor comment fix.
5063 2010-06-23 Eric Botcazou <ebotcazou@adacore.com>
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.
5069 2010-06-23 Robert Dewar <dewar@adacore.com>
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)
5075 2010-06-23 Robert Dewar <dewar@adacore.com>
5077 * gnat_ugn.texi: Add documentation of -gnat12 switch
5078 Add documentation of -gnatX switch.
5080 2010-06-23 Ed Schonberg <schonberg@adacore.com>
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
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
5093 2010-06-23 Robert Dewar <dewar@adacore.com>
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
5102 * sem_prag.adb, par-prag.adb: Add processing for pragma Ada_12 and
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.
5111 2010-06-23 Arnaud Charlet <charlet@adacore.com>
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.
5117 2010-06-23 Robert Dewar <dewar@adacore.com>
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'.
5125 2010-06-23 Javier Miranda <miranda@adacore.com>
5127 * exp_disp.adb (Make_DT): Initialize the Size_Func component of the
5128 TSD to Null_Address if No_Dispatching_Calls is active.
5130 2010-06-23 Vincent Celier <celier@adacore.com>
5132 * a-comlin.ads: Indicate that use of this package is not supported
5133 during the elaboration of an auto-initialized Stand-Alone Library.
5135 2010-06-23 Ed Schonberg <schonberg@adacore.com>
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.
5142 2010-06-23 Arnaud Charlet <charlet@adacore.com>
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.
5150 2010-06-23 Thomas Quinot <quinot@adacore.com>
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
5155 * exp_ch4.adb, einfo.adb: Minor reformatting.
5157 2010-06-23 Vincent Celier <celier@adacore.com>
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.
5164 2010-06-23 Ed Schonberg <schonberg@adacore.com>
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.
5171 2010-06-23 Ed Schonberg <schonberg@adacore.com>
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
5177 * sem_util.adb: Widen predicate Is_VMS_Operator.
5179 2010-06-23 Vincent Celier <celier@adacore.com>
5181 * switch-m.adb (Normalize_Compiler_Switches): Take into account -gnatC
5184 2010-06-23 Olivier Hainque <hainque@adacore.com>
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.
5190 2010-06-23 Thomas Quinot <quinot@adacore.com>
5192 * sem_ch12.adb: Minor reformatting.
5194 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5196 * sem_util.adb (Is_VMS_Operator): Use scope of system extension to
5197 determine whether an intrinsic subprogram is VMS specific.
5199 2010-06-23 Hristian Kirtchev <kirtchev@adacore.com>
5201 * treepr.adb (Print_Entity_Info): Output the contents of Field28 if it
5202 is present in the entity.
5204 2010-06-23 Arnaud Charlet <charlet@adacore.com>
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
5214 2010-06-23 Thomas Quinot <quinot@adacore.com>
5216 * sem_util.adb, sem_util.ads: Minor reformatting.
5218 2010-06-23 Vincent Celier <celier@adacore.com>
5220 * prj.ads (Gprclean_Flags.Missing_Source_Files): Set to Error to keep
5221 the previous behavior of gprclean when there are missing files.
5223 2010-06-23 Ed Schonberg <schonberg@adacore.com>
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
5231 2010-06-23 Vincent Celier <celier@adacore.com>
5233 * ali.adb (Scan_ALI): When ignoring R lines, do not skip the next
5236 2010-06-23 Bob Duff <duff@adacore.com>
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.
5244 2010-06-23 Olivier Hainque <hainque@adacore.com>
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
5254 (gnat_to_gnu_param): Use void_ptr GCC type for System.Address argument
5255 of GCC builtin imports.
5257 2010-06-23 Olivier Hainque <hainque@adacore.com>
5259 * gcc-interface/decl.c (intrin_types_incompatible_p): New function,
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.
5269 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5271 * gcc-interface/Make-lang.in: Update dependencies.
5273 2010-06-23 Ed Schonberg <schonberg@adacore.com>
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.
5279 2010-06-23 Javier Miranda <miranda@adacore.com>
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
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.
5296 2010-06-23 Javier Miranda <miranda@adacore.com>
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
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.
5310 2010-06-23 Thomas Quinot <quinot@adacore.com>
5312 * sem_ch3.ads: Minor reformatting.
5314 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5316 * sem_ch12.adb (Analyze_Package_Instantiation): In CodePeer mode,
5317 always analyze the generic body and instance, because it may be needed
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.
5323 2010-06-23 Emmanuel Briot <briot@adacore.com>
5325 * prj.ads, prj-nmsc.adb (Error_Or_Warning): New subprogram.
5327 2010-06-23 Robert Dewar <dewar@adacore.com>
5329 * g-pehage.adb, exp_ch13.adb: Minor reformatting.
5331 2010-06-23 Thomas Quinot <quinot@adacore.com>
5333 * a-tags.ads: Fix description of TSD structure.
5335 2010-06-23 Ed Schonberg <schonberg@adacore.com>
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.
5342 2010-06-23 Robert Dewar <dewar@adacore.com>
5344 * freeze.adb: Minor reformatting.
5346 2010-06-23 Bob Duff <duff@adacore.com>
5348 * g-pehage.adb (Trim_Trailing_Nuls): Fix the code to match the comment.
5350 2010-06-23 Vincent Celier <celier@adacore.com>
5352 * make.adb (Compile_Sources): Complete previous change.
5354 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5356 * sem_ch6.adb (Add_Extra_Formal): Use suffix "C" in the name of the
5357 Constrained extra formal.
5359 2010-06-23 Ed Schonberg <schonberg@adacore.com>
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.
5366 2010-06-23 Emmanuel Briot <briot@adacore.com>
5368 * prj.adb, prj.ads, prj-nmsc.adb (Processing_Flags): New flag
5369 Missing_Source_Files.
5371 2010-06-23 Robert Dewar <dewar@adacore.com>
5373 * exp_ch3.adb, exp_util.adb: Minor reformatting.
5375 2010-06-23 Jose Ruiz <ruiz@adacore.com>
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.
5381 2010-06-23 Vincent Celier <celier@adacore.com>
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.
5388 2010-06-23 Thomas Quinot <quinot@adacore.com>
5390 * checks.adb, g-pehage.adb, cstand.adb: Minor code factorization.
5392 2010-06-23 Javier Miranda <miranda@adacore.com>
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
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.
5414 2010-06-23 Ed Schonberg <schonberg@adacore.com>
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.
5421 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5423 * gnat_ugn.texi, gnatxref.adb: Add support for --ext switch.
5425 2010-06-23 Bob Duff <duff@adacore.com>
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.
5431 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5433 * exp_ch4.adb: Use predefined unsigned type in all cases.
5435 2010-06-23 Bob Duff <duff@adacore.com>
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
5442 2010-06-23 Robert Dewar <dewar@adacore.com>
5444 * binde.adb (Better_Choice): Always prefer Pure/Preelab.
5445 (Worse_Choice): Always prefer Pure/Preelab.
5447 2010-06-23 Vincent Celier <celier@adacore.com>
5449 * a-reatim.adb: Call System.OS_Primitives.Initialize during elaboration
5451 2010-06-23 Robert Dewar <dewar@adacore.com>
5453 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Properly handle
5454 checking returns in generic case.
5455 (Check_Missing_Return): New procedure.
5457 2010-06-23 Robert Dewar <dewar@adacore.com>
5459 * bindgen.adb, switch-b.adb: Minor reformatting.
5461 2010-06-23 Javier Miranda <miranda@adacore.com>
5463 * frontend.adb (Frontend): Add call to initialize the new package
5465 * exp_ch7.adb (Wrap_Transient_Expression): Remove call to
5467 (Wrap_Transient_Statement): Remove call to Adjust_SCIL_Node.
5468 * sem_ch5.adb (Analyze_Iteration_Scheme.Process_Bounds): Remove call to
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
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
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
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
5511 2010-06-23 Robert Dewar <dewar@adacore.com>
5513 * sem_ch6.adb: Minor reformatting.
5515 2010-06-23 Doug Rupp <rupp@adacore.com>
5517 * bindusg.adb (Display): Write -Hnn line.
5518 * bindgen.adb (Gen_Adainit_Ada): Write Heap_Size to binder file as
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.
5529 2010-06-23 Robert Dewar <dewar@adacore.com>
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
5536 2010-06-22 Robert Dewar <dewar@adacore.com>
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.
5542 2010-06-22 Ed Schonberg <schonberg@adacore.com>
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.
5554 2010-06-22 Geert Bosch <bosch@adacore.com>
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.
5569 2010-06-22 Robert Dewar <dewar@adacore.com>
5571 * freeze.adb: Minor reformatting
5572 Minor code reorganization (use Nkind_In and Ekind_In).
5574 2010-06-22 Bob Duff <duff@adacore.com>
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.
5580 2010-06-22 Vincent Celier <celier@adacore.com>
5582 * switch-m.adb (Normalize_Compiler_Switches): Process correctly
5585 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
5587 * s-rannum.adb: Replace constants with commented symbols.
5588 * s-rannum.ads: Explain significance of the initial value of the data
5591 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5593 * a-ngcoty.adb: Clarify comment.
5595 2010-06-22 Gary Dismukes <dismukes@adacore.com>
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
5604 2010-06-22 Geert Bosch <bosch@adacore.com>
5606 * exp_ch4.adb (Expand_N_In): Do not substitute a valid check for X in
5609 2010-06-22 Robert Dewar <dewar@adacore.com>
5611 * g-mbdira.adb, g-mbflra.adb, a-nuflra.adb, a-nudira.adb: Minor comment
5614 2010-06-22 Doug Rupp <rupp@adacore.com>
5616 * system-vms.ads, system-vms-zcx.ads: Remove old unused VMS system
5618 * system-vms_64.ads, system-vms-ia64.ads: Minor reformatting.
5619 (pragma Ident): Add a default ident string in the private part.
5621 2010-06-22 Robert Dewar <dewar@adacore.com>
5623 * cstand.adb: Minor reformatting.
5625 2010-06-22 Ed Schonberg <schonberg@adacore.com>
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.
5631 2010-06-22 Geert Bosch <bosch@adacore.com>
5633 * a-ngcoty.adb ("*"): Rewrite complex multiplication to use proper
5634 scaling in case of overflow or NaN results.
5636 2010-06-22 Robert Dewar <dewar@adacore.com>
5638 * cstand.adb: Complete previous change.
5639 * g-dirope.ads: Add comment.
5640 * s-stchop.adb, sfn_scan.adb: Minor reformatting.
5642 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5644 * cstand.adb: Add tree nodes for pragma Pack on string types.
5646 2010-06-22 Javier Miranda <miranda@adacore.com>
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.
5657 2010-06-22 Geert Bosch <bosch@adacore.com>
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
5665 * env.c: Remove empty conditional for MSDOS.
5666 * s-stchop.adb, g-dirope.ads, s-fileio.adb, osint.ads: Remove mention
5669 2010-06-22 Robert Dewar <dewar@adacore.com>
5671 * s-rannum.adb: Minor reformatting.
5673 2010-06-22 Javier Miranda <miranda@adacore.com>
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.
5679 2010-06-22 Javier Miranda <miranda@adacore.com>
5681 * exp_disp.adb (Make_Secondary_DT, Make_DT): Minor code cleanup:
5682 remove useless restriction on imported routines when building the
5685 2010-06-22 Robert Dewar <dewar@adacore.com>
5687 * cstand.adb (Create_Standard): Set Has_Pragma_Pack for standard string
5690 2010-06-22 Javier Miranda <miranda@adacore.com>
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
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
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.
5711 2010-06-22 Matthew Heaney <heaney@adacore.com>
5713 * a-convec.adb, a-coinve.adb: Removed 64-bit types Int and UInt.
5715 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
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.
5724 2010-06-22 Thomas Quinot <quinot@adacore.com>
5726 * exp_aggr.adb (Rewrite_Discriminant): Fix predicate used to identify
5727 reference to discriminant (can be an expanded name as well as an
5730 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5732 * exp_ch6.adb: Clarify comment.
5734 2010-06-22 Geert Bosch <bosch@adacore.com>
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
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
5745 2010-06-22 Robert Dewar <dewar@adacore.com>
5747 * sem_ch3.adb, sem_ch8.adb: Minor reformatting.
5749 2010-06-22 Thomas Quinot <quinot@adacore.com>
5751 * sem_elab.adb: Minor reformatting.
5753 2010-06-22 Vincent Celier <celier@adacore.com>
5755 * gnatsym.adb: Put the object files in the table in increasing
5756 aphabetical order of base names.
5758 2010-06-22 Ed Schonberg <schonberg@adacore.com>
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.
5764 2010-06-22 Thomas Quinot <quinot@adacore.com>
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.
5771 2010-06-22 Thomas Quinot <quinot@adacore.com>
5773 * sem_ch3.adb (Build_Derived_Record_Type): Fix predicate determining
5774 when to freeze the parent type.
5776 2010-06-22 Robert Dewar <dewar@adacore.com>
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.
5784 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
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
5792 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: New file.
5794 2010-06-22 Gary Dismukes <dismukes@adacore.com>
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
5801 2010-06-22 Vincent Celier <celier@adacore.com>
5803 * vms_data.ads: Modify the declarations of qualifiers
5804 /UNCHECKED_SHARED_LIB_IMPORTS to allow the generation of gnat.hlp
5807 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5809 * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false if
5810 expansion is disabled.
5812 2010-06-22 Robert Dewar <dewar@adacore.com>
5814 * makeusg.adb: Minor reformatting.
5816 2010-06-22 Robert Dewar <dewar@adacore.com>
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.
5825 2010-06-22 Vincent Celier <celier@adacore.com>
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.
5839 2010-06-22 Javier Miranda <miranda@adacore.com>
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.
5847 2010-06-22 Arnaud Charlet <charlet@adacore.com>
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
5853 2010-06-22 Thomas Quinot <quinot@adacore.com>
5855 * einfo.ads: Minor reformatting.
5857 2010-06-22 Javier Miranda <miranda@adacore.com>
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)
5866 2010-06-22 Emmanuel Briot <briot@adacore.com>
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.
5872 2010-06-22 Jose Ruiz <ruiz@adacore.com>
5874 * s-taprop-vxworks.adb (Set_Priority): Update comments.
5876 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
5878 * s-rannum.adb: Make stylistic change to remove mystery constant in
5879 Extract_Value. Image_Numeral_Length: new symbolic constant.
5881 2010-06-22 Ed Schonberg <schonberg@adacore.com>
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.
5888 2010-06-22 Robert Dewar <dewar@adacore.com>
5890 * uintp.adb, osint.adb, prj-conf.adb, prj-part.adb, prj.adb: Minor
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.
5897 2010-06-22 Emmanuel Briot <briot@adacore.com>
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.
5903 2010-06-22 Jose Ruiz <ruiz@adacore.com>
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.
5909 2010-06-22 Vincent Celier <celier@adacore.com>
5911 * projects.texi: Minor spelling error fixes.
5914 2010-06-22 Emmanuel Briot <briot@adacore.com>
5916 * prj-part.adb, prj-ext.adb, prj.adb, makeutl.adb, prj-conf.adb: Remove
5917 warnings for some with clauses.
5919 2010-06-22 Robert Dewar <dewar@adacore.com>
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.
5928 2010-06-22 Arnaud Charlet <charlet@adacore.com>
5930 * exp_ch4.adb (Expand_Allocator_Expression): Set Related_Node properly
5931 when calling Make_Temporary.
5933 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5935 * sem_ch3.adb (Access_Subprogram_Declaration): An anonymous access to
5936 subprogram can be associated with an entry body.
5938 2010-06-22 Robert Dewar <dewar@adacore.com>
5940 * scos.ads: Add note on membership test handling.
5942 2010-06-22 Vincent Celier <celier@adacore.com>
5944 * projects.texi: Minor spelling fixes.
5947 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
5949 * s-rannum.adb: Correct off-by-one error in Extract_Value.
5951 2010-06-22 Vincent Celier <celier@adacore.com>
5953 * mlib-prj.adb (Display): In non verbose mode, truncate after fourth
5955 * mlib-utl.adb (Gcc): In non verbose mode, truncate the display of the
5956 gcc command if it is too long.
5958 2010-06-22 Robert Dewar <dewar@adacore.com>
5960 * errout.adb (Set_Msg_Node): Fix incorrect reference to node.
5962 2010-06-22 Arnaud Charlet <charlet@adacore.com>
5964 * exp_ch6.adb (Expand_Actuals): Use Actual as the related node when
5965 calling Make_Temporary.
5967 2010-06-22 Robert Dewar <dewar@adacore.com>
5969 * sem_res.adb, sem_aux.adb, errout.adb: Minor reformatting.
5971 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5973 * sem_res.adb: Additional special-case for VMS.
5975 2010-06-22 Vincent Celier <celier@adacore.com>
5977 * gnatsym.adb: Minor comment fix.
5979 2010-06-22 Vincent Celier <celier@adacore.com>
5981 * prj-nmsc.adb (Process_Naming_Scheme): Initialize Lib_Data_Table.
5983 2010-06-22 Robert Dewar <dewar@adacore.com>
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.
5989 2010-06-22 Vincent Celier <celier@adacore.com>
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.
5995 2010-06-22 Vincent Celier <celier@adacore.com>
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.
6001 2010-06-22 Robert Dewar <dewar@adacore.com>
6003 * lib-writ.ads, errout.adb, einfo.adb, einfo.ads: Minor reformatting.
6005 2010-06-22 Vincent Celier <celier@adacore.com>
6007 * adaint.c (__gnat_locate_regular_file): If a directory in the path is
6008 empty, make it the current working directory.
6010 2010-06-22 Thomas Quinot <quinot@adacore.com>
6012 * sem_ch3.adb (Build_Derived_Record_Type): When deriving a tagged
6013 private type with discriminants, make sure the parent type is frozen.
6015 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
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.
6028 2010-06-22 Thomas Quinot <quinot@adacore.com>
6030 * exp_attr.adb, lib-writ.ads, bindgen.adb: Minor reformatting.
6031 * einfo.adb (Related_Expression, Set_Related_Expression): Add
6034 2010-06-22 Javier Miranda <miranda@adacore.com>
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.
6040 2010-06-22 Ed Falis <falis@adacore.com>
6042 * s-osinte-vxworks.ads: Complete previous change.
6044 2010-06-22 Thomas Quinot <quinot@adacore.com>
6046 * sem_res.adb: Add comment.
6047 * projects.texi, gnat_ugn.texi: Remove macro.
6049 2010-06-22 Vincent Celier <celier@adacore.com>
6051 * prj-attr.adb: Remove project level attribute Main_Language.
6053 2010-06-22 Robert Dewar <dewar@adacore.com>
6055 * switch-b.adb, osint-b.adb: Minor reformatting.
6057 2010-06-22 Pascal Obry <obry@adacore.com>
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.
6063 2010-06-22 Thomas Quinot <quinot@adacore.com>
6065 * sem_res.adb (Make_Call_Into_Operator): Use First_Subtype for better
6066 error reporting with generic types.
6068 2010-06-22 Thomas Quinot <quinot@adacore.com>
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.
6075 2010-06-22 Arnaud Charlet <charlet@adacore.com>
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.
6081 2010-06-22 Emmanuel Briot <briot@adacore.com>
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.
6087 2010-06-22 Robert Dewar <dewar@adacore.com>
6089 * sem_ch3.adb: Minor reformatting. Minor code reorganization.
6091 2010-06-22 Emmanuel Briot <briot@adacore.com>
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.
6097 2010-06-22 Robert Dewar <dewar@adacore.com>
6099 * ali-util.ads: Minor comment update.
6100 * g-socthi-mingw.adb: Minor reformatting.
6102 2010-06-22 Ed Falis <falis@adacore.com>
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.
6108 2010-06-22 Emmanuel Briot <briot@adacore.com>
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
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
6120 Added the full list of all supported attributes, since existing lists
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
6128 2010-06-22 Ed Schonberg <schonberg@adacore.com>
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.
6137 2010-06-22 Pascal Obry <obry@adacore.com>
6139 * g-socthi-mingw.adb: Properly honor MSG_WAITALL in recvmsg.
6140 (C_Recvmsg): Propely honor the MSG_WAITALL flag in Windows
6143 2010-06-22 Robert Dewar <dewar@adacore.com>
6145 * sem_ch4.adb (Analyze_Conditional_Expression): Defend against
6147 * sprint.adb (Sprint_Node_Actual, case N_Conditional_Expression):
6150 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6152 * s-intman-vxworks.ads: Code clean up.
6154 2010-06-22 Thomas Quinot <quinot@adacore.com>
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.
6160 2010-06-22 Thomas Quinot <quinot@adacore.com>
6162 * ali-util.adb, ali-util.ads, gnatbind.adb (Read_ALI): Rename to
6163 Read_Withed_ALIs, which is more descriptive.
6165 2010-06-22 Pascal Obry <obry@adacore.com>
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.
6173 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6175 * uintp.adb: Fix scope error in operator call.
6177 2010-06-22 Vincent Celier <celier@adacore.com>
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.
6184 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6186 * sem_res.adb (Make_Call_Into_Operator): Diagnose an incorrect scope
6187 for an operator in a functional notation, when operands are universal.
6189 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6191 * gcc-interface/Make-lang.in: Update dependencies.
6193 2010-06-22 Robert Dewar <dewar@adacore.com>
6195 * sem_aggr.adb (Resolve_Record_Aggregate): Do style check on component
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
6200 * sem_res.adb (Resolve_Entity_Name): Do style check for enumeration
6203 2010-06-22 Vincent Celier <celier@adacore.com>
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.
6208 2010-06-22 Pascal Obry <obry@adacore.com>
6210 * g-socthi-mingw.adb: Fix implementation of the vectored sockets on
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.
6216 2010-06-22 Robert Dewar <dewar@adacore.com>
6218 * sem_ch8.adb: Update comment.
6219 * sem_res.adb: Minor code reorganization (use Ekind_In).
6221 2010-06-22 Ed Schonberg <schonberg@adacore.com>
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.
6228 2010-06-22 Robert Dewar <dewar@adacore.com>
6230 * sem_ch10.adb, sem_aggr.adb: Minor reformatting.
6232 2010-06-22 Robert Dewar <dewar@adacore.com>
6234 * sem_ch3.adb, sem_disp.adb: Minor code fixes.
6235 * sem_eval.adb: Minor reformatting.
6237 2010-06-22 Vincent Celier <celier@adacore.com>
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.
6244 2010-06-22 Robert Dewar <dewar@adacore.com>
6246 * sem_util.adb (Is_Delegate): Put in proper alpha order.
6247 * sem_eval.adb: Minor reformatting.
6249 2010-06-22 Robert Dewar <dewar@adacore.com>
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
6255 * sem_util.ads: Add some missing pragma Inline's.
6257 2010-06-22 Thomas Quinot <quinot@adacore.com>
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.
6265 2010-06-22 Gary Dismukes <dismukes@adacore.com>
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
6277 2010-06-22 Thomas Quinot <quinot@adacore.com>
6279 * exp_aggr.adb (Flatten): Return False if one choice is statically
6280 known to be out of bounds.
6282 2010-06-22 Ed Schonberg <schonberg@adacore.com>
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.
6293 2010-06-22 Gary Dismukes <dismukes@adacore.com>
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.
6300 2010-06-22 Ed Schonberg <schonberg@adacore.com>
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.
6307 2010-06-22 Emmanuel Briot <briot@adacore.com>
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.
6314 2010-06-22 Thomas Quinot <quinot@adacore.com>
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
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
6331 2010-06-22 Robert Dewar <dewar@adacore.com>
6333 * sem_eval.adb: Minor reformatting.
6335 2010-06-22 Robert Dewar <dewar@adacore.com>
6337 * exp_ch4.adb (Expand_N_Conditional_Expression): Use
6338 Expression_With_Actions to clean up the code generated when folding
6339 constant expressions.
6341 2010-06-22 Vincent Celier <celier@adacore.com>
6343 * g-expect-vms.adb: Add new subprograms Free, First_Dead_Process and
6346 2010-06-22 Vincent Celier <celier@adacore.com>
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.
6351 2010-06-22 Robert Dewar <dewar@adacore.com>
6353 * atree.adb, gnatbind.adb: Minor reformatting.
6354 Minor code reorganization.
6356 2010-06-21 Robert Dewar <dewar@adacore.com>
6358 * exp_ch4.adb (Expand_N_Conditional_Expression): Fold if condition
6359 known at compile time.
6361 2010-06-21 Gary Dismukes <dismukes@adacore.com>
6363 * atree.adb: Fix comment typo.
6365 2010-06-21 Ed Schonberg <schonberg@adacore.com>
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.
6371 2010-06-21 Vincent Celier <celier@adacore.com>
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
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
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
6386 2010-06-21 Vincent Celier <celier@adacore.com>
6388 * gnatbind.adb (Closure_Sources): Global table, moved from block.
6390 2010-06-21 Thomas Quinot <quinot@adacore.com>
6392 * sem_res.adb: Minor reformatting.
6393 * atree.adb: New debugging hook "rr" for node rewrites.
6395 2010-06-21 Robert Dewar <dewar@adacore.com>
6397 * g-expect.ads, g-expect.adb: Minor reformatting.
6399 2010-06-21 Emmanuel Briot <briot@adacore.com>
6401 * s-regpat.adb (Next_Pointer_Bytes): New named constant. Code clean up.
6403 2010-06-21 Arnaud Charlet <charlet@adacore.com>
6405 * gcc-interface/Make-lang.in: Update dependencies.
6407 2010-06-21 Thomas Quinot <quinot@adacore.com>
6409 * bindgen.ads: Update comments.
6411 2010-06-21 Vincent Celier <celier@adacore.com>
6413 * gnatbind.adb: Suppress dupicates when listing the sources in the
6414 closure (switch -R).
6416 2010-06-21 Emmanuel Briot <briot@adacore.com>
6418 * s-regpat.adb (Link_Tail): Fix error when size of the pattern matcher
6421 2010-06-21 Emmanuel Briot <briot@adacore.com>
6423 * g-expect.adb, g-expect.ads (First_Dead_Process, Free, Has_Process):
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.
6430 2010-06-21 Robert Dewar <dewar@adacore.com>
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.
6435 2010-06-21 Ed Schonberg <schonberg@adacore.com>
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.
6443 2010-06-21 Thomas Quinot <quinot@adacore.com>
6445 * checks.adb: Add comments.
6446 * prj-nmsc.adb: Minor reformatting.
6448 2010-06-21 Thomas Quinot <quinot@adacore.com>
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
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
6463 (Analyze_Accept_Statement): Rely on expansion of attribute references
6464 to insert proper discriminal references in range check for entry in
6467 2010-06-21 Emmanuel Briot <briot@adacore.com>
6469 * s-regpat.adb (Compile): Fix handling of big patterns.
6471 2010-06-21 Robert Dewar <dewar@adacore.com>
6473 * a-tifiio.adb: Minor reformatting.
6475 2010-06-21 Pascal Obry <obry@adacore.com>
6477 * prj-nmsc.adb (Search_Directories): Use the non-translated directory
6480 2010-06-21 Javier Miranda <miranda@adacore.com>
6482 * exp_cg.adb (Write_Call_Info): Fill the component sourcename using the
6485 2010-06-21 Ed Schonberg <schonberg@adacore.com>
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.
6492 2010-06-21 Ed Schonberg <schonberg@adacore.com>
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.
6498 2010-06-21 Thomas Quinot <quinot@adacore.com>
6500 * sem_res.adb, checks.adb: Minor reformatting.
6502 2010-06-21 Emmanuel Briot <briot@adacore.com>
6504 * s-regpat.adb (Next_Instruction, Get_Next_Offset): Removed, merged
6506 (Insert_Operator_Before): New subprogram, avoids duplicated code
6507 (Compile): Avoid doing two compilations when the pattern matcher ends
6510 2010-06-21 Emmanuel Briot <briot@adacore.com>
6512 * s-regpat.adb: Improve debug traces
6513 (Dump): Change output format to keep it smaller.
6515 2010-06-21 Javier Miranda <miranda@adacore.com>
6517 * exp_cg.adb (Generate_CG_Output): Disable redirection of standard
6518 output to the output file when this routine completes its work.
6520 2010-06-20 Eric Botcazou <ebotcazou@adacore.com>
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.
6525 2010-06-18 Ed Schonberg <schonberg@adacore.com>
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
6532 2010-06-18 Arnaud Charlet <charlet@adacore.com>
6534 * s-tpoben.adb: Update comments.
6536 2010-06-18 Robert Dewar <dewar@adacore.com>
6538 * debug.adb: Minor comment change.
6540 2010-06-18 Javier Miranda <miranda@adacore.com>
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.
6546 2010-06-18 Javier Miranda <miranda@adacore.com>
6548 * exp_cg.adb (Homonym_Suffix_Length): Minor code reorganization.
6550 2010-06-18 Thomas Quinot <quinot@adacore.com>
6552 * sprint.ads: Minor reformatting.
6553 * output.ads: Update obsolete comment.
6555 2010-06-18 Ed Schonberg <schonberg@adacore.com>
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.
6562 2010-06-18 Javier Miranda <miranda@adacore.com>
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.
6568 2010-06-18 Robert Dewar <dewar@adacore.com>
6570 * exp_ch6.adb: Minor reformatting.
6571 * gnatname.adb: Add comment.
6573 2010-06-18 Vincent Celier <celier@adacore.com>
6575 * gnatname.adb (Scan_Args): When --and is used, make sure that the
6576 dynamic tables in the newly allocated Argument_Data are properly
6579 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
6581 * gnat1drv.adb: Fix comment.
6583 2010-06-18 Ed Schonberg <schonberg@adacore.com>
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.
6589 2010-06-18 Gary Dismukes <dismukes@adacore.com>
6591 * gnat1drv.adb (Adjust_Global_Switches): Enable
6592 Use_Expression_With_Actions for AAMP and VM targets.
6594 2010-06-18 Vincent Celier <celier@adacore.com>
6596 * prj-nmsc.adb (Process_Linker): Recognize response file format GCC.
6598 2010-06-18 Thomas Quinot <quinot@adacore.com>
6600 * exp_ch4.adb: Minor reformatting.
6602 2010-06-18 Javier Miranda <miranda@adacore.com>
6604 * debug.ads Add documentation on -gnatd.Z.
6606 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6608 * sem_elim.adb: Proper error message on improperly eliminated instances
6610 2010-06-18 Vincent Celier <celier@adacore.com>
6612 * prj.ads (Response_File_Format): New value GCC.
6614 2010-06-18 Thomas Quinot <quinot@adacore.com>
6616 * gnat1drv.adb: Minor reformatting.
6618 2010-06-18 Robert Dewar <dewar@adacore.com>
6620 * make.adb, sem_cat.adb: Minor reformatting.
6621 * sem_eval.adb: Fix typos.
6623 2010-06-18 Pascal Obry <obry@adacore.com>
6625 * prj-nmsc.adb: Fix source filenames casing in debug output.
6627 2010-06-18 Robert Dewar <dewar@adacore.com>
6629 * gnatcmd.adb: Minor reformatting.
6631 2010-06-18 Robert Dewar <dewar@adacore.com>
6633 * sem_eval.adb (Eval_Conditional_Expression): Result is static if
6634 condition and both sub-expressions are static (and result is selected
6637 2010-06-18 Robert Dewar <dewar@adacore.com>
6639 * g-pehage.adb: Minor reformatting
6641 2010-06-18 Pascal Obry <obry@adacore.com>
6643 * prj-nmsc.adb (Search_Directories): Insert canonical filenames into
6646 2010-06-18 Arnaud Charlet <charlet@adacore.com>
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.
6652 2010-06-18 Pascal Obry <obry@adacore.com>
6654 * make.adb, prj-nmsc.adb: Fix source filenames casing in debug output.
6656 2010-06-18 Vincent Celier <celier@adacore.com>
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.
6661 2010-06-18 Ed Schonberg <schonberg@adacore.com>
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.
6671 2010-06-18 Bob Duff <duff@adacore.com>
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.
6676 2010-06-18 Thomas Quinot <quinot@adacore.com>
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
6682 2010-06-18 Arnaud Charlet <charlet@adacore.com>
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.
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.
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.
6703 2010-06-18 Geert Bosch <bosch@adacore.com>
6705 * i-forbla-darwin.adb: Include -lgnala and -lm in linker options for
6708 2010-06-18 Robert Dewar <dewar@adacore.com>
6710 * gnat1drv.adb (Adjust_Global_Switches): Set Use_Expression_With_Actions
6713 2010-06-18 Robert Dewar <dewar@adacore.com>
6715 * sprint.adb: Minor format change for N_Expression_With_Actions.
6716 * repinfo.adb: Minor reformatting.
6718 2010-06-18 Ed Schonberg <schonberg@adacore.com>
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.
6724 2010-06-18 Emmanuel Briot <briot@adacore.com>
6726 * prj-nmsc.adb (Check_File): New parameter Display_Path.
6728 2010-06-18 Thomas Quinot <quinot@adacore.com>
6730 * g-socket.adb, g-socket.ads (Null_Selector): New object.
6732 2010-06-18 Pascal Obry <obry@adacore.com>
6734 * gnat_ugn.texi: Minor clarification.
6736 2010-06-18 Emmanuel Briot <briot@adacore.com>
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.
6743 2010-06-18 Robert Dewar <dewar@adacore.com>
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.
6749 2010-06-18 Robert Dewar <dewar@adacore.com>
6751 * exp_util.adb: Minor reformatting.
6753 2010-06-18 Thomas Quinot <quinot@adacore.com>
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.
6764 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
6766 * exp_util.adb (Remove_Side_Effects): Make a copy for an allocator.
6768 2010-06-18 Robert Dewar <dewar@adacore.com>
6770 * scos.ads: Add proposed output for case expression
6772 2010-06-18 Jose Ruiz <ruiz@adacore.com>
6774 * gnat_ugn.texi: Document that, when using the RTX compiler to generate
6775 RTSS modules, we need to use the Microsoft linker.
6777 2010-06-18 Robert Dewar <dewar@adacore.com>
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
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
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.
6807 2010-06-18 Robert Dewar <dewar@adacore.com>
6809 * par-ch7.adb, sem_warn.adb, types.ads, par-ch3.adb: Minor
6811 * gnat1drv.adb: Fix typo.
6813 2010-06-18 Robert Dewar <dewar@adacore.com>
6815 * par-prag.adb (Prag, case Style_Checks): All_Checks sets gnat style
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.
6821 2010-06-18 Thomas Quinot <quinot@adacore.com>
6823 * sem_eval.adb (Test_In_Range): New subprogram, factoring duplicated
6825 (Is_In_Range, Is_Out_Of_Range): Reimplement in terms of call to
6828 2010-06-18 Robert Dewar <dewar@adacore.com>
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.
6834 2010-06-18 Robert Dewar <dewar@adacore.com>
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.
6846 2010-06-18 Ed Schonberg <schonberg@adacore.com>
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.
6853 2010-06-18 Robert Dewar <dewar@adacore.com>
6855 * exp_disp.adb, sem_ch12.adb: Minor reformatting
6857 2010-06-18 Ed Schonberg <schonberg@adacore.com>
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
6864 2010-06-18 Robert Dewar <dewar@adacore.com>
6866 * g-socket.ads, sem_aggr.adb, einfo.ads, sem_elim.adb,
6867 sem_intr.adb, sem_eval.adb: Minor reformatting
6869 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6871 * sem_type.adb (Is_Ancestor): If either type is private, examine full
6874 2010-06-18 Thomas Quinot <quinot@adacore.com>
6876 * g-socket.adb, g-socket.ads (Check_Selector): Make Selector an IN
6877 parameter rather than IN OUT.
6879 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6881 * exp_ch6.adb: Add extra guard.
6883 2010-06-18 Gary Dismukes <dismukes@adacore.com>
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.
6891 2010-06-18 Tristan Gingold <gingold@adacore.com>
6893 * adaint.c: Make ATTR_UNSET static as it is not used outside this file.
6895 2010-06-18 Thomas Quinot <quinot@adacore.com>
6897 * g-socket.ads: Minor reformatting.
6899 2010-06-18 Vincent Celier <celier@adacore.com>
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.
6913 2010-06-18 Ed Schonberg <schonberg@adacore.com>
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.
6922 2010-06-18 Robert Dewar <dewar@adacore.com>
6924 * sem_res.adb (Analyze_Indexed_Component, Analyze_Selected_Component):
6925 Warn on assigning to packed atomic component.
6927 2010-06-18 Robert Dewar <dewar@adacore.com>
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
6934 2010-06-18 Robert Dewar <dewar@adacore.com>
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.
6942 2010-06-18 Robert Dewar <dewar@adacore.com>
6944 * lib-xref.adb (Generate_Reference): Fix bad reference to
6945 Has_Pragma_Unreferenced (clients should always use Has_Unreferenced).
6947 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
6949 * gcc-interface/trans.c (set_gnu_expr_location_from_node): New static
6951 (gnat_to_gnu) <N_Expression_With_Actions>: New case.
6952 Use set_gnu_expr_location_from_node to set location information on the
6955 2010-06-17 Arnaud Charlet <charlet@adacore.com>
6957 * gcc-interface/Make-lang.in: Update dependencies.
6959 2010-06-17 Ed Schonberg <schonberg@adacore.com>
6961 * sem_util.adb (Is_Atomic_Object): Predicate does not apply to
6964 2010-06-17 Robert Dewar <dewar@adacore.com>
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
6972 2010-06-17 Robert Dewar <dewar@adacore.com>
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.
6981 2010-06-17 Robert Dewar <dewar@adacore.com>
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
6990 2010-06-17 Robert Dewar <dewar@adacore.com>
6992 * exp_ch4.ads: Minor code reorganization (specs in alpha order).
6994 2010-06-17 Robert Dewar <dewar@adacore.com>
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
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
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
7016 2010-06-17 Doug Rupp <rupp@adacore.com>
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
7023 * s-auxdec-vms_64.ads: Revert "+" "-" ops back to Address now that
7024 64/32 Address/Integer works.
7026 2010-06-17 Ed Schonberg <schonberg@adacore.com>
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
7036 2010-06-17 Vincent Celier <celier@adacore.com>
7038 * gnat_rm.texi: Fix typo
7040 2010-06-17 Robert Dewar <dewar@adacore.com>
7042 * sem_util.adb: Minor reformatting
7044 2010-06-17 Ed Schonberg <schonberg@adacore.com>
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.
7051 2010-06-17 Ed Schonberg <schonberg@adacore.com>
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.
7059 2010-06-17 Gary Dismukes <dismukes@adacore.com>
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.
7067 2010-06-17 Robert Dewar <dewar@adacore.com>
7069 * freeze.adb: Minor reformatting.
7071 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
7073 * gnat_ugn.texi: Add a section introducing gdbserver.
7075 2010-06-17 Thomas Quinot <quinot@adacore.com>
7077 * sem_res.adb, sem_ch4.adb, s-stoele.adb, par-labl.adb: Minor
7080 2010-06-17 Ed Schonberg <schonberg@adacore.com>
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.
7087 2010-06-17 Ed Schonberg <schonberg@adacore.com>
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.
7093 2010-06-17 Ed Schonberg <schonberg@adacore.com>
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
7099 2010-06-17 Robert Dewar <dewar@adacore.com>
7101 * par.adb: Minor comment fix
7102 * sem_aggr.adb, sem_ch3.adb: Minor reformatting
7104 2010-06-17 Doug Rupp <rupp@adacore.com>
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.
7110 2010-06-17 Thomas Quinot <quinot@adacore.com>
7112 * sem_ch4.adb (Analyze_Selected_Component): A selected component may
7113 not denote a (private) component of a protected object.
7115 2010-06-17 Bob Duff <duff@adacore.com>
7117 * par-labl.adb (Try_Loop): Test whether the label and the goto are in
7120 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
7122 * gnat_ugn.texi: Update the documentation about GDB re: exception
7125 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7127 * gnatvsn.ads: Bump to 4.6 version.
7129 2010-06-17 Ed Schonberg <schonberg@adacore.com>
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.
7137 2010-06-17 Robert Dewar <dewar@adacore.com>
7139 * exp_ch4.adb: Minor reformatting.
7141 2010-06-17 Ed Schonberg <schonberg@adacore.com>
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.
7152 2010-06-17 Arnaud Charlet <charlet@adacore.com>
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
7159 2010-06-17 Ben Brosgol <brosgol@adacore.com>
7161 * gnat_ugn.texi: Update gnatcheck doc.
7163 2010-06-17 Ed Schonberg <schonberg@adacore.com>
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.
7170 2010-06-17 Vincent Celier <celier@adacore.com>
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
7178 * gnat_ugn.texi: Document the relaxed rules for library directories in
7179 externally built library projects.
7181 2010-06-17 Doug Rupp <rupp@adacore.com>
7183 * s-auxdec-vms_64.ads: Make boolean and arithmetic operations intrinsic
7185 * s-auxdec-vms-alpha.adb: Remove kludges for aforemention.
7186 * gcc-interface/Makefile.in: Update VMS target pairs.
7188 2010-06-17 Vasiliy Fofanov <fofanov@adacore.com>
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.
7193 2010-06-17 Vincent Celier <celier@adacore.com>
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
7199 2010-06-17 Arnaud Charlet <charlet@adacore.com>
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.
7205 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7207 * exp_ch4.adb: expand NOT for VMS types.
7208 * sem_util.adb: Use OpenVMS_On_Target for IS_VMS_Operator.
7210 2010-06-17 Sergey Rybin <rybin@adacore.com>
7212 * vms_data.ads: Add qualifier for '--no-elim-dispatch' gnatelim option.
7213 * gnat_ugn.texi (gnatelim): add description for --no-elim-dispatch
7216 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7218 * exp_ch6.adb (Expand_Call): Do not expand a call to an internal
7219 protected operation if the subprogram has been eliminated.
7221 2010-06-17 Vincent Celier <celier@adacore.com>
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.
7227 2010-06-17 Vincent Celier <celier@adacore.com>
7229 * make.adb (Check): If switch -m is used, deallocate the memory that
7230 may be allocated when computing the checksum.
7232 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7234 * g-socthi-mingw.adb (C_Recvmsg): Add 'use type' clause for C.size_t;
7235 (C_Sendmsg): Likewise.
7237 2010-06-17 Thomas Quinot <quinot@adacore.com>
7239 * sem_res.adb: Update comments.
7241 2010-06-17 Vincent Celier <celier@adacore.com>
7243 * back_end.adb (Scan_Compiler_Arguments): Process last argument
7245 2010-06-17 Robert Dewar <dewar@adacore.com>
7247 * exp_ch3.adb, exp_ch6.adb, exp_smem.adb, exp_util.adb: Use Ekind_In.
7248 * layout.adb, freeze.adb: Use Make_Temporary.
7250 2010-06-17 Jerome Lambourg <lambourg@adacore.com>
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.
7255 2010-06-17 Pascal Obry <obry@adacore.com>
7257 * gnat_rm.texi: Fix minor typo, remove duplicate blank lines.
7259 2010-06-17 Vincent Celier <celier@adacore.com>
7261 * make.adb (Collect_Arguments_And_Compile): Create include path file
7262 only when -x is specified.
7264 * opt.ads (Use_Include_Path_File): New Boolean flag, initialized to
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
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
7275 2010-06-17 Ed Schonberg <schonberg@adacore.com>
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
7281 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7283 * s-crtl.ads (ssize_t): New type.
7284 (read): Fix signature.
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.
7318 2010-06-17 Vincent Celier <celier@adacore.com>
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.
7324 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
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.
7333 2010-06-17 Robert Dewar <dewar@adacore.com>
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
7342 2010-06-17 Thomas Quinot <quinot@adacore.com>
7344 * exp_imgv.adb, exp_ch7.ads: Minor reformatting.
7346 2010-06-17 Robert Dewar <dewar@adacore.com>
7348 * exp_ch9.adb, exp_disp.adb, exp_dist.adb: Use Make_Temporary.
7350 2010-06-17 Thomas Quinot <quinot@adacore.com>
7352 * sprint.adb (pg): Set Dump_Freeze_Null, to be consistent with -gnatdg.
7354 2010-06-17 Robert Dewar <dewar@adacore.com>
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
7360 2010-06-17 Robert Dewar <dewar@adacore.com>
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.
7365 * tbuild.ads, tbuild.adb (Make_Temporary): Clean up, use Entity_Id
7367 (Make_Temporary): Add more extensive documentation
7369 2010-06-17 Robert Dewar <dewar@adacore.com>
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.
7379 2010-06-17 Robert Dewar <dewar@adacore.com>
7381 * einfo.ads, einfo.adb (Get_Record_Representation_Clause): New
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
7388 (Check_Component_Overlap): Moved inside
7389 Check_Record_Representation_Clause.
7390 * sem_ch13.ads (Check_Record_Representation_Clause): New function.
7392 2010-06-17 Robert Dewar <dewar@adacore.com>
7394 * back_end.adb, sem_res.adb, switch-c.adb, sem_scil.adb: Minor
7396 * sem_attr.adb, sem_cat.adb, sem_disp.adb, sem_elab.adb, sem_elim.adb,
7397 sem_eval.adb: Use Ekind_In
7399 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7401 * sem_ch8.adb: better error message for illegal inherited discriminant
7403 2010-06-17 Vincent Celier <celier@adacore.com>
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
7411 * gcc-interface/Make-lang.in: Update dependencies.
7413 2010-06-17 Vincent Celier <celier@adacore.com>
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
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
7423 * gcc-interface/Make-lang.in: Update dependencies.
7425 2010-06-17 Robert Dewar <dewar@adacore.com>
7427 * einfo.adb: Minor code fix, allow E_Class_Wide_Type for
7428 Equivalent_Type to match documentation.
7430 2010-06-17 Robert Dewar <dewar@adacore.com>
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.
7436 2010-06-17 Thomas Quinot <quinot@adacore.com>
7438 * sem_res.adb (Set_Slice_Subtype): Always freeze the slice's itype.
7440 2010-06-17 Thomas Quinot <quinot@adacore.com>
7442 * freeze.adb (Freeze_Expression): Short circuit operators are valid
7443 freeze node insertion points.
7445 2010-06-17 Robert Dewar <dewar@adacore.com>
7447 * switch-c.ads, switch-c.adb, sem_ch13.adb: Minor reformatting.
7448 * sem_ch12.adb: Add pragmas Assert and Check to previous change.
7450 2010-06-17 Gary Dismukes <dismukes@adacore.com>
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).
7459 2010-06-17 Robert Dewar <dewar@adacore.com>
7461 * atree.ads, atree.adb: Add 6-parameter version of Ekind_In
7462 * einfo.adb: Minor code reformatting (use Ekind_In)
7464 2010-06-17 Robert Dewar <dewar@adacore.com>
7466 * sem_warn.adb (Test_Ref): Abandon scan if access subprogram parameter
7469 2010-06-17 Vincent Celier <celier@adacore.com>
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
7476 2010-06-17 Ed Schonberg <schonberg@adacore.com>
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.
7489 2010-06-17 Vincent Celier <celier@adacore.com>
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
7496 * switch-c.adb: Copied a number of global declarations from
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.
7506 2010-06-17 Robert Dewar <dewar@adacore.com>
7508 * prj.ads, prj.adb: Minor reformatting
7510 2010-06-17 Thomas Quinot <quinot@adacore.com>
7512 * put_scos.adb: Do not generate a blank line in SCOs when omitting the
7513 CP line for a disabled pragma.
7515 2010-06-17 Emmanuel Briot <briot@adacore.com>
7517 * prj-proc.adb, prj.adb, prj.ads (Check_Or_Set_Typed_Variable): New
7519 (Process_Declarative_Item): An invalid value in an typed variable
7520 declaration is no longer always fatal.
7522 2010-06-16 Arnaud Charlet <charlet@adacore.com>
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
7528 2010-06-16 Javier Miranda <miranda@adacore.com>
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
7534 2010-06-16 Ed Schonberg <schonberg@adacore.com>
7536 * sem_ch5.adb (Analyze_Exit_Statement): Return if no enclosing loop,
7537 to prevent cascaded errors and compilation aborts.
7539 2010-06-16 Robert Dewar <dewar@adacore.com>
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)
7550 2010-06-16 Robert Dewar <dewar@adacore.com>
7552 * sem_warn.adb (Check_Infinite_Loop_Warning): Declaration counts as
7555 2010-06-16 Robert Dewar <dewar@adacore.com>
7557 * exp_disp.adb: Minor reformatting
7559 2010-06-16 Ed Schonberg <schonberg@adacore.com>
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.
7564 2010-06-16 Thomas Quinot <quinot@adacore.com>
7566 * tbuild.ads: Minor comment fix
7568 2010-06-15 Nathan Froyd <froydnj@codesourcery.com>
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
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.
7592 2010-06-14 Ed Schonberg <schonberg@adacore.com>
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
7600 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
7601 determine whether it has the controlling type.
7603 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
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.
7609 2010-06-14 Robert Dewar <dewar@adacore.com>
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.
7615 2010-06-14 Gary Dismukes <dismukes@adacore.com>
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.
7622 2010-06-14 Robert Dewar <dewar@adacore.com>
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
7631 * sem_warn.ads, sem_warn.adb (Check_Infinite_Loop_Warning): Now handles
7633 * sinfo.adb (Next_Exit_Statement): New attribute of N_Exit_Statement
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
7639 2010-06-14 Robert Dewar <dewar@adacore.com>
7641 * sem_res.adb (Resolve_Short_Circuit): Fix sloc of "assertion/check
7644 2010-06-14 Robert Dewar <dewar@adacore.com>
7646 * par-ch2.adb (Scan_Pragma_Argument_Association): Clarify message for
7647 missing pragma argument identifier.
7649 2010-06-14 Robert Dewar <dewar@adacore.com>
7651 * atree.ads, atree.adb (Ekind_In): New functions.
7653 2010-06-14 Robert Dewar <dewar@adacore.com>
7655 * exp_ch4.adb (Expand_N_Op_Expon): Optimize 2**N in stand alone context
7657 2010-06-14 Robert Dewar <dewar@adacore.com>
7659 * usage.adb (Usage): Redo documentation of -gnatwa.
7661 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7663 * sem_ch8.adb (Find_Type): The attribute 'class cannot be applied to
7664 an untagged incomplete type that is a limited view.
7666 2010-06-14 Sergey Rybin <rybin@adacore.com>
7668 * gnat_ugn.texi: Add description of '-cargs gcc_switches' to gnatstub
7671 2010-06-14 Thomas Quinot <quinot@adacore.com>
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
7678 2010-06-14 Arnaud Charlet <charlet@adacore.com>
7680 * ali.adb, ali.ads, lib-xref.ads: Document new '+' letter for C/C++
7682 (Scan_ALI): Take into account new Visibility field.
7683 (Visibility_Kind): New type.
7684 (Xref_Entity_Record): Replace Lib field by Visibility.
7686 * gcc-interface/Make-lang.in: Update dependencies.
7688 2010-06-14 Pascal Obry <obry@adacore.com>
7690 * raise.h: Remove unused defintions.
7692 2010-06-14 Bob Duff <duff@adacore.com>
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.
7701 2010-06-14 Sergey Rybin <rybin@adacore.com>
7703 * gnat_ugn.texi, vms_data.ads: Update gnatelim doc.
7705 2010-06-14 Thomas Quinot <quinot@adacore.com>
7707 * lib-util.adb: Minor code reorganization.
7709 2010-06-14 Robert Dewar <dewar@adacore.com>
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
7728 2010-06-14 Thomas Quinot <quinot@adacore.com>
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
7737 2010-06-14 Ed Schonberg <schonberg@adacore.com>
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
7747 2010-06-14 Robert Dewar <dewar@adacore.com>
7749 * g-socket.adb, gnatcmd.adb: Minor reformatting.
7751 2010-06-14 Pascal Obry <obry@adacore.com>
7753 * s-finimp.adb: Fix typo.
7754 * raise.h: Remove duplicate blank line.
7756 2010-06-14 Vincent Celier <celier@adacore.com>
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.
7765 2010-06-14 Gary Dismukes <dismukes@adacore.com>
7767 * sem_res.adb (Resolve_Call): For infinite recursion check, test
7768 whether the called subprogram is inherited from a containing
7770 (Same_Or_Aliased_Subprograms): New function
7772 2010-06-14 Ed Schonberg <schonberg@adacore.com>
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.
7777 2010-06-14 Robert Dewar <dewar@adacore.com>
7779 * sem_ch3.adb (Copy_And_Swap): Copy Has_Pragma_Unmodified flag.
7781 * sem_ch7.adb (Preserve_Full_Attributes): Preserve
7782 Has_Pragma_Unmodified flag.
7784 2010-06-14 Thomas Quinot <quinot@adacore.com>
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
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.
7800 2010-06-14 Vincent Celier <celier@adacore.com>
7802 * gnatcmd.adb (Mapping_File): New function.
7804 2010-06-14 Javier Miranda <miranda@adacore.com>
7806 * sem_ch3.adb (Derive_Subprograms): Remove over-restrictive assertion.
7808 2010-06-14 Arnaud Charlet <charlet@adacore.com>
7810 * ali.adb: Fix typo.
7811 * s-auxdec-vms-alpha.adb, scng.ads: Minor reformatting.
7813 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7815 * sem_ch12.adb: Make Mark_Context transitive, and apply to subprogram
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
7822 2010-06-14 Robert Dewar <dewar@adacore.com>
7824 * sem.adb, sem_ch12.adb, sem_util.adb: Minor reformatting and
7827 2010-06-14 Arnaud Charlet <charlet@adacore.com>
7829 * lib-xref.ads: Doc updates:
7830 - Allocate 'Q' for #include entity kind
7832 - Allocate 'g' for regular macros
7833 - Allocate 'G' for function-like macros
7835 2010-06-14 Ed Schonberg <schonberg@adacore.com>
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
7848 2010-06-14 Ed Falis <falis@adacore.com>
7850 * sysdep.c: Fix 653 build against vThreads headers.
7852 2010-06-14 Robert Dewar <dewar@adacore.com>
7854 * sinfo.ads: Minor reformatting.
7856 2010-06-14 Ed Schonberg <schonberg@adacore.com>
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.
7862 2010-06-14 Arnaud Charlet <charlet@adacore.com>
7864 * lib-xref.ads: Documentation change: allocate 'Z' letter to C/C++
7867 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
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.
7874 2010-06-14 Robert Dewar <dewar@adacore.com>
7876 * opt.ads, sem.adb, sem_elab.adb: Minor reformatting
7878 2010-06-14 Robert Dewar <dewar@adacore.com>
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.
7896 2010-06-14 Robert Dewar <dewar@adacore.com>
7898 * exp_prag.adb (Expand_Pragma_Check): Set Loc of generated code from
7901 2010-06-14 Gary Dismukes <dismukes@adacore.com>
7903 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Debug_Info_Needed
7904 on the entity of an implicitly generated postcondition procedure.
7906 2010-06-14 Thomas Quinot <quinot@adacore.com>
7908 * sem_ch7.adb (Preserve_Full_Attributes): Propagate
7909 Discriminant_Constraint elist from full view to private view.
7911 2010-06-14 Robert Dewar <dewar@adacore.com>
7913 * sem_res.adb: Minor reformatting.
7915 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7917 * sem.adb: New version of unit traversal.
7919 * sem_elab.adb (Check_Internal_Call): Do not place a call appearing
7920 within a generic unit in the table of delayed calls.
7922 2010-06-14 Robert Dewar <dewar@adacore.com>
7924 * gnatcmd.adb, sem_util.adb, exp_ch3.adb: Minor reformatting
7926 2010-06-14 Ed Schonberg <schonberg@adacore.com>
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.
7933 2010-06-14 Sergey Rybin <rybin@adacore.com>
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)
7938 2010-06-14 Vincent Celier <celier@adacore.com>
7940 * gnatbind.adb: Call Scan_ALI with Directly_Scanned set to True for all
7941 the ALI files on the command line.
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
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.
7952 2010-06-14 Gary Dismukes <dismukes@adacore.com>
7954 * sem_ch4.adb: Fix typo.
7956 2010-06-14 Vasiliy Fofanov <fofanov@adacore.com>
7958 * s-oscons-tmplt.c (IOV_MAX): redefine on Tru64 and VMS since the
7959 vector IO doesn't work at default value properly.
7961 2010-06-14 Doug Rupp <rupp@adacore.com>
7963 * s-stoele.adb: Remove unnecessary qualification of To_Address for VMS.
7965 2010-06-14 Vincent Celier <celier@adacore.com>
7967 * gnatcmd.adb (Check_Files): Do not invoke the tool with all the
7968 sources of the project if a switch -files= is used.
7970 2010-06-14 Thomas Quinot <quinot@adacore.com>
7972 * exp_attr.adb: Minor reformatting.
7974 2010-06-14 Gary Dismukes <dismukes@adacore.com>
7976 * gnat_ugn.texi: Minor typo fixes and wording changes.
7978 2010-06-14 Ed Schonberg <schonberg@adacore.com>
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
7990 2010-06-14 Doug Rupp <rupp@adacore.com>
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.
8000 2010-06-14 Olivier Hainque <hainque@adacore.com>
8002 * initialize.c (VxWorks section): Update comments.
8004 2010-06-14 Robert Dewar <dewar@adacore.com>
8006 * a-convec.adb, sem_prag.adb, checks.adb: Minor reformatting.
8008 2010-06-14 Eric Botcazou <ebotcazou@adacore.com>
8010 * init.c: Code clean up.
8012 2010-06-14 Ed Schonberg <schonberg@adacore.com>
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.
8018 * sem_ch8.adb: Code clean up.
8020 2010-06-14 Ben Brosgol <brosgol@adacore.com>
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.
8026 2010-06-14 Thomas Quinot <quinot@adacore.com>
8028 * g-socket.ads: Remove misleading comments.
8030 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
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.
8038 2010-06-14 Matthew Heaney <heaney@adacore.com>
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
8045 2010-06-14 Ed Schonberg <schonberg@adacore.com>
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
8052 * checks.adb (Apply_Discriminant_Check): If the target of the
8053 assignment is a renaming of a heap object, create constrained type for
8056 2010-06-14 Pascal Obry <obry@adacore.com>
8058 * prj-proc.adb: Fix copy of object directory for extending projects.
8060 2010-06-14 Jose Ruiz <ruiz@adacore.com>
8062 * init.c (__gnat_alternate_stack): Define this space for PowerPC linux
8063 (__gnat_install_handler, PowerPC linux): Activate the alternative
8066 2010-06-13 Gerald Pfeifer <gerald@pfeifer.com>
8068 * gnat_rm.texi: Move to GFDL version 1.3.
8069 * gnat-style.texi: Ditto.
8070 * gnat_ugn.texi: Ditto.
8072 2010-06-12 Kai Tietz <kai.tietz@onevision.com>
8075 * gcc-interface/Makefile.in: Add rules for multilib x86/x64
8078 2010-06-11 Alexandre Oliva <aoliva@redhat.com>
8080 * gcc-interface/utils.c (update_pointer_to): Initialize last.
8082 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
8084 * gcc-interface/ada-tree.h: Fix formatting nits.
8086 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8088 * gcc-interface/utils.c (init_gnat_to_gnu): Use typed GC
8090 (init_dummy_type): Likewise.
8091 (gnat_pushlevel): Likewise.
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.
8100 * gcc-interface/misc.c (gnat_printable_name): Likewise.
8102 * gcc-interface/decl.c (annotate_value): Likewise.
8104 * gcc-interface/ada-tree.h (struct lang_type): Add variable_size
8106 (struct lang_decl): Likewise.
8107 (SET_TYPE_LANG_SPECIFIC): Use typed GC allocation.
8108 (SET_DECL_LANG_SPECIFIC): Likewise.
8110 2010-06-04 Eric Botcazou <ebotcazou@adacore.com>
8112 * gnatlink.adb (gnatlink): Remove support for -fsjlj switch.
8113 * gcc-interface/lang-specs.h: Likewise.
8115 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
8118 * gcc-interface/decl.c (MAX_FIXED_MODE_SIZE): Removed.
8120 2010-06-01 Arnaud Charlet <charlet@adacore.com>
8122 * gnat_ugn.texi: Improve doc on -fdump-ada-spec, mention limitations.
8124 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
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.
8129 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
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.
8141 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
8143 * gcc-interface/decl.c: Pretend to be a backend file by undefining
8144 IN_GCC_FRONTEND (still need rtl.h here).
8146 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8148 * gcc-interface/trans.c: Do not include rtl.h, insclude libfuncs.h.
8149 (gigi): Adjust call to set_stack_check_libfunc.
8151 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8153 * gcc-interface/utils.c: Do not include rtl.h.
8155 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
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,
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.
8171 2010-05-25 Joseph Myers <joseph@codesourcery.com>
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.
8178 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
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.
8184 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
8186 * gcc-interface/trans.c (call_to_gnu): Use build_call_vec instead of
8188 * gcc-interface/utils.c (build_function_stub): Likewise.
8190 2010-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
8192 * gcc-interface/misc.c (gnat_handle_option): Remove special logic
8193 for Wuninitialized without -O.
8195 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
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
8204 <E_Record_Type>: Equate fields of types associated with an exception
8205 definition to those of the standard exception type.
8207 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
8209 * tracebak.c (__gnat_backtrace): Mark top_stack with ATTRIBUTE_UNUSED.
8211 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
8213 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Tidy up
8214 code, improve comments and fix formatting nits.
8216 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
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.
8222 2010-05-10 Eric Botcazou <ebotcazou@adacore.com>
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.
8231 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
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.
8238 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8240 * gcc-interface/decl.c (make_aligning_type): Declare the type.
8242 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
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.
8247 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
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.
8267 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
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.
8280 2010-05-07 Eric Botcazou <ebotcazou@adacore.com>
8283 * gcc-interface/misc.c (gnat_handle_option): Fix long line.
8285 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8287 * gcc-interface/Makefile.in: Removed mips-sgi-irix5* support.
8289 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
8292 * gcc-interface/misc.c (gnat_handle_option): Add argument kind.
8294 2010-05-02 Giuseppe Scrivano <gscrivano@gnu.org>
8296 * gnathtml.pl: Use 755 as mask for new directories.
8298 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
8300 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Uniquize
8301 constant constructors before taking their address.
8303 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
8305 * exp_dbug.ads: Fix outdated description. Mention link between XVS
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.
8311 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
8313 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Do not
8314 use memmove if the array type is bit-packed.
8316 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
8318 * gcc-interface/misc.c (gnat_init): Remove second argument in call to
8319 build_common_tree_nodes.
8321 2010-04-18 Ozkan Sezer <sezeroz@gmail.com>
8323 * gsocket.h: Make sure that winsock2.h is included before windows.h.
8325 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8327 * gcc-interface/utils2.c (build_unary_op) <ATTR_ADDR_EXPR>: Do not
8330 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
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
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.
8349 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
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
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.
8367 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
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
8381 (annotate_value) <INTEGER_CST>: Simplify code handling negative values.
8382 * gcc-interface/misc.c (gnat_init): Initialize sbitsize_one_node and
8384 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Pool_Address>: Fold
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.
8392 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
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.
8412 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8414 * gcc-interface/trans.c (unchecked_conversion_nop): Handle function
8415 calls. Return true for conversion from a record subtype to its type.
8417 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
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
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.
8448 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
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):
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.
8464 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
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.
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
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
8485 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8487 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Just copy
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.
8496 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
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.
8535 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
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
8550 (build_unary_op) <ADDR_EXPR>: Call build_fold_addr_expr.
8551 <INDIRECT_REF>: Call build_fold_indirect_ref.
8553 2010-04-15 Joel Sherrill <joel.sherrill@oarcorp.com>
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.
8560 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
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
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
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
8583 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
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.
8596 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8598 * gcc-interface/trans.c (call_to_gnu): Do not unnecessarily force
8599 side-effects of actual parameters before the call.
8601 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8603 * gcc-interface/decl.c (validate_size): Reorder, remove obsolete test
8605 (set_rm_size): Reorder and remove obsolete test.
8607 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
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.
8617 * gcc-interface/Make-lang.in (ada/trans.o): Adjust dependencies to
8620 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
8622 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Class_Wide_Type>: Fix
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.
8629 2010-04-13 Joel Sherrill <joel.sherrill@oarcorp.com>
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.
8635 2010-04-13 Duncan Sands <baldrick@free.fr>
8637 * gcc-interface/misc.c (gnat_eh_type_covers): Remove.
8638 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Update comment.
8640 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
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.
8651 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
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.
8684 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
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.
8695 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
8697 * gcc-interface/trans.c (lvalue_required_for_attribute_p): New static
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.
8708 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
8710 * gcc-interface/utils2.c (build_cond_expr): Take the address and
8711 dereference if the result type is passed by reference.
8713 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
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.
8719 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
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.
8759 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
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
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.
8791 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
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
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.
8829 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
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
8841 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
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.
8846 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
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.
8854 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
8856 * gcc-interface/Makefile.in (SPARC/Solaris): Use sparcv8plus.
8858 2010-02-27 Eric Botcazou <ebotcazou@adacore.com>
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.
8865 2010-01-28 Pascal Obry <obry@adacore.com>
8867 * s-win32.ads: Add some missing constants.
8869 2010-01-28 Vincent Celier <celier@adacore.com>
8871 * prj-attr-pm.adb (Add_Attribute): Do nothing if To_Package is
8874 2010-01-28 Robert Dewar <dewar@adacore.com>
8876 * gnat_rm.texi: Minor correction
8878 2010-01-27 Pascal Obry <obry@adacore.com>
8880 * g-awk.adb: ensure that an AWK session is reusable.
8882 2010-01-27 Vasiliy Fofanov <fofanov@adacore.com>
8884 * g-regist.adb (For_Every_Key): Fix previous change.
8887 2010-01-27 Thomas Quinot <quinot@adacore.com>
8889 * lib-writ.ads: Current version of spec for new N (note) ALI lines
8891 2010-01-27 Yannick Moy <moy@adacore.com>
8893 * a-cdlili.adb (Insert): Correct exception message when cursor
8894 designates wrong list.
8896 2010-01-27 Vincent Celier <celier@adacore.com>
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").
8902 2010-01-27 Robert Dewar <dewar@adacore.com>
8904 * sem_prag.adb, par-prag.adb, snames.ads-tmpl: pragma Dimension initial
8906 * exp_disp.adb: Minor reformatting
8908 2010-01-27 Tristan Gingold <gingold@adacore.com>
8910 * seh_init.c: Use __ImageBase instead of _ImageBase.
8912 2010-01-27 Javier Miranda <miranda@adacore.com>
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).
8918 2010-01-27 Sergey Rybin <rybin@adacore.com>
8920 * gnat_rm.texi, gnat_ugn.texi: Update gnatcheck doc.
8922 2010-01-27 Robert Dewar <dewar@adacore.com>
8924 * sinput.ads, sinput.adb (Sloc_Range): Applies to all nodes, formal
8925 changed from Expr to N.
8927 2010-01-26 Thomas Quinot <quinot@adacore.com>
8929 * gnat_ugn.texi: Adjust documentation of -gnatz switches.
8930 * usage.adb: Replace line for -gnatz with two lines for -gnatzc and
8933 2010-01-26 Vincent Celier <celier@adacore.com>
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
8945 2010-01-26 Ed Schonberg <schonberg@adacore.com>
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.
8950 2010-01-26 Robert Dewar <dewar@adacore.com>
8952 * par_sco.adb (Traverse_Declarations_Or_Statements): Only generate
8953 decisions for pragmas Assert, Check, Precondition, Postcondition if
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.
8959 2010-01-26 Thomas Quinot <quinot@adacore.com>
8961 * switch-c.adb: Fix handling of -gnatz*
8963 2010-01-26 Robert Dewar <dewar@adacore.com>
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
8969 2010-01-26 Robert Dewar <dewar@adacore.com>
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
8979 2010-01-26 Robert Dewar <dewar@adacore.com>
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.
8987 2010-01-26 Robert Dewar <dewar@adacore.com>
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.
8993 2010-01-26 Robert Dewar <dewar@adacore.com>
8995 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
8998 2010-01-26 Robert Dewar <dewar@adacore.com>
9000 * par_sco.adb (Is_Logical_Operator): Exclude AND/OR/XOR
9001 * scos.ads: Clarify handling of logical operators
9003 2010-01-26 Arnaud Charlet <charlet@adacore.com>
9005 * s-tpoben.adb: Update comments.
9007 2010-01-26 Robert Dewar <dewar@adacore.com>
9009 * freeze.adb (Set_Small_Size): Don't set size if alignment clause
9012 2010-01-26 Robert Dewar <dewar@adacore.com>
9014 * scos.ads: Clean up documentation, remove obsolete XOR references
9015 2010-01-26 Vincent Celier <celier@adacore.com>
9017 * gnat_ugn.texi: Complete documentation on the restrictions for
9018 combined options in -gnatxxx switches.
9021 2010-01-26 Arnaud Charlet <charlet@adacore.com>
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.
9027 2010-01-26 Vincent Celier <celier@adacore.com>
9029 * prj-conf.adb (Get_Config_Switches): Check for a default language for
9030 a project extending a project with no languages.
9032 2010-01-26 Vincent Celier <celier@adacore.com>
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.
9038 2010-01-26 Robert Dewar <dewar@adacore.com>
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
9044 2010-01-26 Vasiliy Fofanov <fofanov@adacore.com>
9046 * g-regist.adb, g-regist.ads (For_Every_Key): New generic procedure
9047 that allows to iterate over all subkeys of a key.
9049 2010-01-26 Ed Falis <falis@adacore.com>
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.
9055 2010-01-25 Bob Duff <duff@adacore.com>
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.
9062 2010-01-25 Robert Dewar <dewar@adacore.com>
9064 * g-sercom.ads, gnatcmd.adb, gnatlink.adb, a-ststio.adb, exp_ch6.adb,
9065 exp_ch9.adb, g-sechas.ads: Minor reformatting.
9067 2010-01-25 Thomas Quinot <quinot@adacore.com>
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.
9073 2010-01-25 Ed Falis <falis@adacore.com>
9075 * sysdep.c, init.c: Adapt to support full run-time on VxWorks MILS.
9077 2010-01-25 Vincent Celier <celier@adacore.com>
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
9086 2010-01-25 Ed Schonberg <schonberg@adacore.com>
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.
9093 2010-01-25 Bob Duff <duff@adacore.com>
9095 * sinfo.ads: Minor comment fixes.
9097 2010-01-25 Bob Duff <duff@adacore.com>
9099 * exp_ch4.adb, exp_aggr.adb: Minor comment fixes and code clean up.
9101 2010-01-25 Arnaud Charlet <charlet@adacore.com>
9103 * gnatvsn.ads (Current_Year): Update.
9105 2010-01-25 Florian Villoing <villoing@adacore.com>
9107 * gnat_ugn.texi: Fix typo.
9109 2010-01-25 Thomas Quinot <quinot@adacore.com>
9111 * scos.ads: Update specification.
9113 2010-01-25 Ed Schonberg <schonberg@adacore.com>
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.
9119 2010-01-25 Ed Schonberg <schonberg@adacore.com>
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.
9125 2010-01-25 Vincent Celier <celier@adacore.com>
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
9133 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9135 * sem_prag.adb: More flexible pragma Annotate.
9137 2010-01-22 Eric Botcazou <ebotcazou@adacore.com>
9139 * system-linux-armel.ads (Stack_Check_Probes): Set to True.
9140 * system-linux-armeb.ads (Stack_Check_Probes): Likewise.
9142 2010-01-18 Eric Botcazou <ebotcazou@adacore.com>
9144 * gcc-interface/utils.c (create_var_decl_1): Fix formatting nits.
9146 2010-01-18 Jan Hubicka <jh@suse.cz>
9149 * gcc-interface/utils.c (create_var_decl_1): Do not set COMMON flag for
9150 unit local variables.
9152 2010-01-17 Laurent GUERBY <laurent@guerby.net>
9154 * gcc-interface/Makefile.in: Fix typo in arm*-*-linux-gnueabi.
9156 2010-01-11 Mikael Pettersson <mikpe@it.uu.se>
9158 * gcc-interface/Makefile.in: Add arm*-*-linux-gnueabi.
9159 * system-linux-armeb.ads, system-linux-armel.ads: New files.
9161 2010-01-09 Simon Wright <simon@pushface.org>
9164 * gcc-interface/Makefile.in (gnatlib-shared-darwin): Add missing
9169 Copyright (C) 2010 Free Software Foundation, Inc.
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.