1 2010-10-22 Jerome Lambourg <lambourg@adacore.com>
3 * gnatlink.adb (Process_Binder_File): Remove CLI-specific code, now
5 (Gnatlink): Remove CLI-specific code, moved to dotnet-ld
6 * bindgen.adb (Gen_Object_Files_Options): Do not issue -L switches with
7 the .NET compiler, useless and unsupported.
9 2010-10-22 Robert Dewar <dewar@adacore.com>
11 * sem_util.ads (Get_Num_Lit_From_Pos): Fix errors in documentation,
12 this returns a Node_Id for a reference to the entity, not the entity
15 2010-10-22 Ed Schonberg <schonberg@adacore.com>
17 * sem_ch5.adb (Analyze_Iteration_Scheme): use Insert_Actions when
18 bounds require a temporary.
20 2010-10-22 Robert Dewar <dewar@adacore.com>
22 * sem_ch4.adb: Minor reformatting.
23 * sinfo.ads: Minor comment fixes for Ada 2012 syntax.
25 2010-10-22 Robert Dewar <dewar@adacore.com>
27 * par-ch5.adb: Minor reformatting.
28 * gcc-interface/Make-lang.in: Update dependencies.
30 2010-10-22 Robert Dewar <dewar@adacore.com>
32 * a-except.adb, a-except-2005.adb: Add new Rcheck entry.
33 * exp_ch13.adb (Add_Call): Make sure subtype is marked with
34 Has_Predicates set to True if it inherits predicates.
35 * sem_attr.adb: Handle 'First/'Last/'Range for predicated types
36 * types.ads (PE_Bad_Attribute_For_Predicate): New reason code
37 * types.h: Add new Rcheck entry.
38 * einfo.ads, einfo.adb (Static_Predicate): New field.
39 Minor code reorganization (file float routines in proper section)
40 Fix bad field name in comments.
42 2010-10-22 Robert Dewar <dewar@adacore.com>
44 * sem_eval.adb (Subtypes_Statically_Compatible): Check null exclusion
47 2010-10-22 Vincent Celier <celier@adacore.com>
49 * prj-conf.adb (Get_Config_Switches): Detect if there is at least one
50 declaration of IDE'Compiler_Command for one of the language in the main
52 (Do_Autoconf): If there were at least one Compiler_Command declared and
53 no target, invoke gprconfig with --target=all instead of the normalized
56 2010-10-22 Robert Dewar <dewar@adacore.com>
58 * par-ch4.adb: Update syntax in comments for Ada 2012.
59 * sinfo.ads: Update syntax in comments for Ada 2012
60 * par-ch3.adb (Check_Restricted_Expression): Remove "in Ada 2012 mode"
63 2010-10-22 Gary Dismukes <dismukes@adacore.com>
65 * sem_ch3.adb (Check_Or_Process_Discriminants): In Ada 2012, allow
66 limited tagged types to have defaulted discriminants. Customize the
67 error message for the Ada 2012 case.
68 (Process_Discriminants): In Ada 2012, allow limited tagged types to have
69 defaulted discriminants. Customize the error message for the Ada 2012
71 * sem_ch6.adb (Create_Extra_Formals): Suppress creation of the extra
72 formal for out formals of discriminated types in the case where the
73 underlying type is a limited tagged type.
74 * exp_attr.adb (Expand_N_Attribute_Reference, case
75 Attribute_Constrained): Return True for 'Constrained when the
76 underlying type of the prefix is a limited tagged type.
78 2010-10-22 Thomas Quinot <quinot@adacore.com>
80 * sem_ch3.adb (Complete_Private_Subtype): The full view of the subtype
81 may already have a rep item chain inherited from the full view of the
82 base type, so do not overwrite it when propagating rep items from the
83 partial view of the subtype.
84 * sem_ch3.adb: Minor code reorganization. Minor reformatting.
86 2010-10-22 Sergey Rybin <rybin@adacore.com>
88 * gnat_ugn.texi (gnatmetric): Remove description of debug option.
90 2010-10-22 Tristan Gingold <gingold@adacore.com>
92 * adaint.c (__gnat_number_of_cpus): Add implementation for VMS.
94 2010-10-22 Ed Schonberg <schonberg@adacore.com>
96 * par-ch5.adb: Set properly starting sloc of loop parameter.
98 2010-10-22 Ed Schonberg <schonberg@adacore.com>
100 * sem_util.adb (May_Be_Lvalue): An actual in a function call can be an
101 lvalue in Ada2012, if the function has in-out parameters.
103 2010-10-22 Robert Dewar <dewar@adacore.com>
105 * cstand.adb, einfo.adb, exp_attr.adb, sem_prag.adb, sem_vfpt.adb,
106 sem_ch10.adb: Minor reformatting.
108 2010-10-22 Sergey Rybin <rybin@adacore.com>
110 * gnat_ugn.texi: Remove most of the content of gnatcheck chapter.
112 2010-10-22 Ed Schonberg <schonberg@adacore.com>
114 * sem_attr.adb: Handle indexed P'old.
116 2010-10-22 Geert Bosch <bosch@adacore.com>
118 * cstand.adb (Build_Float_Type): Set Float_Rep according to platform.
119 * einfo.ads (Float_Rep): New attribute.
120 (Float_Rep_Kind): Move from body. Add comments.
121 * einfo.adb (Float_Rep_Kind): Move to spec
122 (Float_Rep): Now a real field instead of local function.
123 (Set_Float_Rep): New procedure to set floating point representation
124 (Set_Vax_Float): Remove.
125 (Write_Entity_Flags): Remove Vax_Float flag.
126 (Write_Field10_Name): Add E_Floating_Point_Type case for Float_Rep.
127 * exp_attr.adb (Attribute_Valid): Use case statement for representation
129 * sem_ch3.adb (Build_Derived_Numeric_Type,
130 Floating_Point_Type_Declaration): Set Float_Rep instead of Vax_Float
132 * sem_util.ads, sem_util.adb (Is_AAMP_Float): Remove.
133 * sem_vfpt.adb (Set_D_Float, Set_F_Float, Set_G_Float, Set_IEEE_Long,
134 Set_IEEE_Short): Set Float_Rep instead of Vax_Float attribute.
136 2010-10-22 Robert Dewar <dewar@adacore.com>
138 * sprint.adb: Minor reformatting.
140 2010-10-22 Robert Dewar <dewar@adacore.com>
142 * exp_ch3.adb (Expand_N_Object_Declaration): Do required predicate
144 * sem_ch3.adb (Complete_Private_Subtype): Propagate predicates to full
146 * sem_ch6.adb (Invariants_Or_Predicates_Present): New name for
148 (Process_PPCs): Handle predicates generating post conditions
149 * sem_util.adb (Is_Partially_Initialized_Type): Add
150 Include_Null parameter.
151 * sem_util.ads (Is_Partially_Initialized_Type): Add
152 Include_Null parameter.
154 2010-10-22 Sergey Rybin <rybin@adacore.com>
156 * gnat_ugn.texi (gnatelim): Add description for '--ignore' option
158 2010-10-22 Thomas Quinot <quinot@adacore.com>
160 * sem_prag.adb (Check_First_Subtype): Specialize error messages for
161 case where argument is not a type.
163 2010-10-22 Robert Dewar <dewar@adacore.com>
165 * exp_ch5.adb, par-ch4.adb, par-ch5.adb, sem_ch5.adb, sinfo.ads: Minor
168 2010-10-22 Arnaud Charlet <charlet@adacore.com>
170 * a-locale.adb: Minor code clean up.
172 2010-10-22 Thomas Quinot <quinot@adacore.com>
174 * exp_ch4.adb: Minor code reorganization and factoring.
176 2010-10-22 Thomas Quinot <quinot@adacore.com>
178 * exp_ch5.adb, sem_ch5.adb, sinfo.ads, snames.ads-tmpl, par-ch5.adb:
181 2010-10-22 Geert Bosch <bosch@adacore.com>
183 * stand.ads: Fix typo in comment.
185 2010-10-22 Ed Schonberg <schonberg@adacore.com>
187 * sem_ch6.adb: Enable in-out parameter for functions.
189 2010-10-22 Ed Schonberg <schonberg@adacore.com>
191 * sem_ch4.adb (Analyze_Quantified_Expression): Handle properly loop
192 iterators that are transformed into container iterators after analysis.
193 * exp_ch4.adb (Expand_N_Quantified_Expression): Handle properly both
194 iterator forms before rewriting as a loop.
196 2010-10-22 Brett Porter <porter@adacore.com>
198 * a-locale.adb, a-locale.ads, locales.c: New files.
199 * Makefile.rtl: Add a-locale
200 * gcc-interface/Makefile.in: Add locales.c
202 2010-10-22 Robert Dewar <dewar@adacore.com>
204 * sem_util.ads, sem_util.adb, sem_aux.ads, sem_aux.adb
205 (Is_Generic_Formal): Moved from Sem_Util to Sem_Aux.
207 2010-10-22 Ed Schonberg <schonberg@adacore.com>
209 * exp_ch5.adb (Expand_Iterator_Loop): New subprogram, implements new
210 iterator forms over arrays and containers, in loops and quantified
212 * exp_util.adb (Insert_Actions): include N_Iterator_Specification.
213 * par-ch4.adb (P_Quantified_Expression): Handle iterator specifications.
214 * par-ch5.adb (P_Iterator_Specification): New subprogram. Modify
215 P_Iteration_Scheme to handle both loop forms.
216 * sem.adb: Handle N_Iterator_Specification.
217 * sem_ch5.adb, sem_ch5.ads (Analyze_Iterator_Specification): New
219 * sinfo.adb, sinfo.ads: New node N_Iterator_Specification.
220 N_Iteration_Scheme can now include an Iterator_Specification. Ditto
221 for N_Quantified_Expression.
222 * snames.ads-tmpl: Add names Cursor, Element, Element_Type, No_Element,
223 and Previous, to support iterators over predefined containers.
224 * sprint.adb: Handle N_Iterator_Specification.
226 2010-10-22 Thomas Quinot <quinot@adacore.com>
228 * sem_prag.adb, sem_ch12.adb, sem_util.adb, sem_util.ads
229 (Is_Generic_Formal): Move from body of Sem_Ch12 to Sem_Util.
230 (Check_Arg_Is_Local_Name): Fix check in the case of a pragma appearing
231 immediately after a library unit.
232 (Analyze_Pragma, case Preelaborable_Initialization): Pragma may apply to
233 a formal derived type.
235 2010-10-22 Geert Bosch <bosch@adacore.com>
237 * gcc-interface/Make-lang.in: Remove ttypef.ads
238 * checks.adb: Use Machine_Mantissa_Value and Machine_Radix_Value instead
239 of Machine_Mantissa and Machine_Radix.
240 * cstand.adb (P_Float_Range): Directly print the Type_Low_Bound and
241 Type_High_Bound of the type, instead of choosing constants from Ttypef.
242 (Set_Float_Bounds): Compute the bounds based on Machine_Radix_Value,
243 Machine_Emax_Value and Machine_Mantissa_Value instead of special-casing
245 * einfo.ads (Machine_Emax_Value, Machine_Emin_Value,
246 Machine_Mantissa_Value, Machine_Radix_Value, Model_Emin_Value,
247 Model_Epsilon_Value, Model_Mantissa_Value, Model_Small_Value,
248 Safe_Emax_Value, Safe_First_Value, Safe_Last_Value): Add new
249 synthesized floating point attributes.
250 * einfo.adb (Float_Rep): Determine the kind of floating point
251 representation used for a given type.
252 (Machine_Emax_Value, Machine_Emin_Value, Machine_Mantissa_Value,
253 Machine_Radix_Value): Implement based on Float_Rep_Kind of a type and
254 the number of digits in the type.
255 (Model_Emin_Value, Model_Epsilon_Value, Model_Mantissa_Value,
256 Model_Small_Value, Safe_Emax_Value, Safe_First_Value, Safe_Last_Value):
257 Implement new synthesized floating point attributes based on the various
259 * eval_fat.ads: Remove Machine_Mantissa and Machine_Radix.
260 * eval_fat.adb (Machine_Mantissa, Machine_Radix): Remove. Use the
261 Machine_Mantissa_Value and Machine_Radix_Value functions instead.
262 * exp_vfpt.adb (VAXFF_Digits, VAXDF_Digits, VAXFG_Digits): Define local
263 constants, instead of using constants from Ttypef.
264 * gnat_rm.texi: Reword comments referencing Ttypef.
265 * sem_attr.ads: Reword comment referencing Ttypef.
266 * sem_attr.adb (Float_Attribute_Universal_Integer,
267 Float_Attribute_Universal_Real): Remove.
268 (Attribute_Machine_Emax, Attribute_Machine_Emin,
269 Attribute_Machine_Mantissa, Attribute_Model_Epsilon,
270 Attribute_Model_Mantissa, Attribute_Model_Small, Attribute_Safe_Emax,
271 Attribute_Safe_First, Attribute_Safe_Last, Model_Small_Value): Use
272 attributes in Einfo instead of Float_Attribute_Universal_Real and
273 Float_Attribute_Universal_Integer and all explicit constants.
274 * sem_util.ads, sem_util.adb (Real_Convert): Remove.
275 * sem_vfpt.adb (VAXDF_Digits, VAXFF_Digits, VAXGF_Digits, IEEEL_Digits,
276 IEEES_Digits): New local constants, in order to remove dependency on
278 * tbuild.ads (Make_Float_Literal): New function.
279 * tbuild.adb (Make_Float_Literal): New function to create a new
280 N_Real_Literal, constructing it as simple as possible for best
281 output of constants in -gnatS.
282 * ttypef.ads: Remove.
284 2010-10-22 Robert Dewar <dewar@adacore.com>
286 * checks.adb (Apply_Predicate_Check): Remove attempt at optimization
287 when subtype is the same, caused legitimate checks to be missed.
288 * exp_ch13.adb (Build_Predicate_Function): Use Nearest_Ancestor to get
289 inheritance from right entity.
290 * freeze.adb (Freeze_Entity): Use Nearest_Ancestor to freeze in the
291 derived type case if the ancestor type has predicates.
292 * sem_aux.ads, sem_aux.adb (Nearest_Ancestor): New function.
293 * sem_prag.adb (Check_Enabled): Minor code reorganization.
295 2010-10-22 Arnaud Charlet <charlet@adacore.com>
297 * gcc-interface/utils.c, gcc-interface/gigi.h: Minor reformatting.
299 2010-10-22 Thomas Quinot <quinot@adacore.com>
301 * einfo.ads (Declaration_Node): Clarify documentation, in particular
302 regarding what is returned for subprogram entities.
304 2010-10-22 Arnaud Charlet <charlet@adacore.com>
306 * exp_attr.adb (Make_Range_Test): Generate a Range node instead of
307 explicit comparisons, generates simpler expanded code.
308 * a-except-2005.adb (Rcheck_06_Ext): New.
309 * gcc-interface/trans.c (gigi, gnat_to_gnu): Handle validity checks
311 * gcc-interface/Make-lang.in: Update dependencies.
313 2010-10-22 Robert Dewar <dewar@adacore.com>
315 * sem_ch3.adb (Array_Type_Declaration): Error for subtype wi predicate
317 (Constrain_Index): Error of subtype wi predicate in index constraint
318 * sem_ch9.adb (Analyze_Entry_Declaration): Error of subtype wi
319 predicate in entry family.
320 * sem_res.adb (Resolve_Slice): Error of type wi predicate in slice.
322 2010-10-22 Javier Miranda <miranda@adacore.com>
324 * sem_util.ads, sem_util.adb (Collect_Parents): New subprogram.
325 (Original_Corresponding_Operation): New subprogram.
326 (Visible_Ancestors): New subprogram.
327 * sem_ch6.adb (New_Overloaded_Entity): Handle new case of dispatching
328 operation that overrides a hidden inherited primitive.
329 * sem_disp.adb (Find_Hidden_Overridden_Primitive): New subprogram.
330 (Check_Dispatching_Operation): if the new dispatching operation
331 does not override a visible primtive then check if it overrides
332 some hidden inherited primitive.
334 2010-10-22 Ed Schonberg <schonberg@adacore.com>
336 * sem_ch10.adb (Analyze_With_Clause): If the parent_unit_name in a with
337 clause is a child unit that denotes a renaming, replace the
338 parent_unit_name with a reference to the renamed unit, because the
339 prefix is irrelevant to subsequent visibility..
341 2010-10-22 Robert Dewar <dewar@adacore.com>
343 * einfo.ads, einfo.adb (Has_Predicates): Flag is now on all entities
345 * exp_ch13.adb (Build_Predicate_Function): Output info msgs for
347 * sem_ch13.adb (Analyze_Aspect_Specifications): Make sure we have a
348 freeze node for entities for which a predicate is specified.
349 (Analyze_Aspect_Specifications): Avoid duplicate calls
350 * sem_ch3.adb (Analyze_Full_Type_Declaration): Remove attempt to avoid
351 duplicate calls to Analye_Aspect_Specifications.
353 2010-10-22 Thomas Quinot <quinot@adacore.com>
355 * a-exextr.adb, atree.ads, freeze.adb: Minor reformatting.
357 2010-10-21 Robert Dewar <dewar@adacore.com>
359 * sem_ch3.adb: Minor reformatting.
361 2010-10-21 Thomas Quinot <quinot@adacore.com>
363 * einfo.ads (Next_Girder_Discriminant): Remove obsolete description for
366 2010-10-21 Nicolas Roche <roche@adacore.com>
368 * gnatmem.adb, memroot.adb, memroot.ads, gmem.c,
369 gcc-interface/Makefile.in: Remove gnatmem specific files.
371 2010-10-21 Thomas Quinot <quinot@adacore.com>
373 * sem_res.adb, exp_ch13.adb: Minor reformatting.
375 2010-10-21 Thomas Quinot <quinot@adacore.com>
377 * sem_ch3.adb (Check_Or_Process_Discriminant): Reject illegal attempt
378 to provide a tagged full view as the completion of an untagged partial
379 view if the partial view has a discriminant with default.
381 2010-10-21 Arnaud Charlet <charlet@adacore.com>
383 * gcc-interface/Make-lang.in: Update dependencies.
385 2010-10-21 Robert Dewar <dewar@adacore.com>
387 * checks.ads, checks.adb (Apply_Predicate_Check): New procedure
388 Minor code reorganization.
389 * einfo.adb (Has_Predicates): Fix assertion.
390 * exp_ch13.adb (Build_Predicate_Function): Move from Sem_Ch13 spec to
392 (Expand_N_Freeze_Entity): Call build predicate function.
393 * exp_ch4.adb (Expand_N_Type_Conversion): Add predicate check.
394 * exp_ch5.adb (Expand_N_Assignment_Statement): Add predicate check.
395 * exp_prag.adb (Expand_Pragma_Check): Use all lower case for name of
397 * freeze.adb (Freeze_Entity): Move building of predicate function to
399 * sem_ch13.adb (Build_Predicate_Function): Move from Sem_Ch13 to
401 * sem_ch13.ads (Build_Predicate_Function): Move from Sem_Ch13 to
403 * sem_ch3.adb (Analyze_Declarations): Remove call to build predicate
405 * sem_res.adb (Resolve_Actuals): Apply predicate check.
407 2010-10-21 Robert Dewar <dewar@adacore.com>
409 * einfo.ads, einfo.adb: Replace Predicate_Procedure by
411 * exp_ch4.adb (Expand_N_In): Handle predicates.
412 * exp_util.ads, exp_util.adb (Make_Predicate_Call): New function.
413 (Make_Predicate_Check): New function.
414 * freeze.adb (Freee_Entity): Build predicate function if needed.
415 * sem_ch13.adb (Build_Predicate_Function): New procedure.
416 (Analyze_Aspect_Specifications): No third argument for Predicate pragma
417 built from Predicate aspect.
418 * sem_ch13.ads (Build_Predicate_Function): New procedure.
419 * sem_ch3.adb: Add handling for predicates.
420 * sem_eval.adb (Eval_Membership_Op): Never static if predicate
422 * sem_prag.adb (Analye_Pragma, case Predicate): Does not take a third
425 2010-10-21 Robert Dewar <dewar@adacore.com>
427 * einfo.ads, einfo.adb: Add handling of predicates.
428 Rework handling of invariants.
429 * exp_ch3.adb, exp_ch4.adb, exp_util.adb, sem_ch6.adb: Minor changes to
430 handing of invariants.
431 * par-prag.adb: Add dummy entry for pragma Predicate
432 * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing for
434 * sem_prag.adb: Add implementation of pragma Predicate.
435 * snames.ads-tmpl: Add entries for pragma Predicate.
437 2010-10-21 Robert Dewar <dewar@adacore.com>
439 * elists.adb: Minor reformatting.
441 2010-10-21 Geert Bosch <bosch@adacore.com>
443 * urealp.adb (UR_Write): Write hexadecimal constants with exponent 1 as
444 decimal constants, and write any others using the exponent notation.
445 Minor reformatting throughout
446 (Store_Ureal_Normalized): New function (minor code reorganization)
448 2010-10-21 Robert Dewar <dewar@adacore.com>
450 * einfo.ads, xeinfo.adb: Minor reformatting.
451 * s-stalib.ads: Minor comment fixes.
453 2010-10-21 Ed Schonberg <schonberg@adacore.com>
455 * sem_ch6.adb (Enter_Overloaded_Entity): Refine warning message about
456 hiding, to remove noise warnings about hiding predefined operators.
458 2010-10-21 Emmanuel Briot <briot@adacore.com>
460 * g-comlin.adb (Add_Switch): Fix handling of switches with no separator
461 when the parameter has length 1.
463 2010-10-21 Jose Ruiz <ruiz@adacore.com>
465 * sem_prag.adb (Set_Ravenscar_Profile): Enforce the restrictions of no
466 dependence on Ada.Execution_Time.Timers,
467 Ada.Execution_Time.Group_Budget, and
468 System.Multiprocessors.Dispatching_Domains which are part of the
470 * impunit.adb (Non_Imp_File_Names_05): Add the file "a-etgrbu" to the
471 list of Ada 2005 files for package Ada.Execution_Time.Group_Budgets.
472 (Non_Imp_File_Names_12): Add the file "s-mudido" to the list of Ada 2012
473 files for package System.Mutiprocessors.Dispatching_Domains.
475 2010-10-21 Tristan Gingold <gingold@adacore.com>
477 * ug_words, vms_data.ads: Define the VMS qualifier for -gnateE.
479 2010-10-21 Thomas Quinot <quinot@adacore.com>
481 * sem_ch3.ads (Process_Discriminants): Clarify cases where this is
482 called for a completion.
484 2010-10-21 Geert Bosch <bosch@adacore.com>
486 * uintp.ads: Expand image buffer to have enough room for 128-bit values
487 * urealp.ads (UR_Write): Write constants in base 16 in hexadecimal
488 notation; either as fixed point literal or in canonical radix 16
491 2010-10-21 Robert Dewar <dewar@adacore.com>
493 * a-cgaaso.ads, a-tags.ads, exp_ch3.adb, exp_attr.adb, exp_ch4.adb,
494 exp_ch3.ads, exp_ch7.adb, exp_ch9.adb, exp_disp.adb, exp_disp.ads,
495 exp_dist.adb, exp_util.adb, layout.adb, lib-xref.adb, lib.ads,
496 prep.adb, prj-strt.adb, s-ststop.adb, s-taskin.ads, s-tataat.ads,
497 sem_aggr.adb, sem_attr.adb, sem_ch12.adb, sem_ch3.adb, sem_ch4.adb,
498 sem_ch4.ads, sem_ch5.adb, sem_res.adb, sem_util.adb, einfo.adb,
499 g-sothco.ads, make.adb: Minor reformatting
501 2010-10-21 Vincent Celier <celier@adacore.com>
503 * vms_data.ads: Add new qualifiers /SRC_INFO= and
504 /UNCHECKED_SHARED_LIB_IMPORTS for GNAT COMPILE.
505 Correct qualifier /SRC_INFO= for GNAT MAKE
507 2010-10-21 Ed Schonberg <schonberg@adacore.com>
509 * exp_aggr.adb (Flatten): An association for a subtype may be an
511 (Safe_Left_Hand_Side): An unchecked conversion is part of a safe
512 left-hand side if the expression is.
513 (Is_Safe_Index): new predicate
514 * exp_ch3.adb (Expand_Freeze_Enumeration_Type): Indicate that the
515 generated Rep_To_Pos function is a Pure_Function.
517 2010-10-21 Robert Dewar <dewar@adacore.com>
519 * gnat_rm.texi: Document Invariant pragma.
521 2010-10-21 Javier Miranda <miranda@adacore.com>
523 * exp_ch5.adb: Update comment.
525 2010-10-21 Robert Dewar <dewar@adacore.com>
527 * sem_ch13.adb (Build_Invariant_Procedure): Remove commented out code
528 for interfaces, since invariants are not allowed on interfaces in any
531 2010-10-21 Javier Miranda <miranda@adacore.com>
533 * sem_attr.adb (Resolve_Attribute): After replacing the range attribute
534 node with a range expression ensure that its evaluation will not have
536 * exp_ch5.adb (Expand_Assign_Array): Propagate the Parent to the
537 unchecked conversion node generated to handle assignment of private
538 types. Required to allow climbing the subtree if Insert_Action is
541 2010-10-21 Robert Dewar <dewar@adacore.com>
543 * par-ch3.adb (P_Interface_Type_Definition): Allow for possibility of
544 aspect clause presence terminating the type definition.
546 2010-10-21 Robert Dewar <dewar@adacore.com>
548 * exp_ch4.adb, exp_intr.adb, par-ch4.adb, scn.adb, sem_ch4.adb,
549 sem_res.adb, sem_util.adb, sinfo.ads, a-except-2005.adb: Minor
551 * snames.ads-tmpl: Add note on Name_Some (not a reserved keyword).
553 2010-10-21 Geert Bosch <bosch@adacore.com>
555 * ttypef.ads: Further cleanup of Safe_XXX float attributes.
557 2010-10-19 Ed Schonberg <schonberg@adacore.com>
559 * exp_ch4.adb, exp_ch4.ads (Expand_Quantified_Expression): New procedure
560 * exp_util.adb (Insert_Actions): Include Quantified_Expression.
561 * expander.adb: Call Expand_Qualified_Expression.
562 * par.adb: New procedure P_Quantified_Expression. Make
563 P_Loop_Parameter_Specification global for use in quantified expressions.
564 * par-ch3.adb (P_Subtype_Mark_Resync): Allow "some" as an identifier if
566 * par-ch4.adb: New procedure P_Quantified_Expression.
567 * par-ch5.adb: P_Loop_Parameter_Specification is now global.
568 * scans.adb, scans.ads: Introduce token Some. For now leave as
570 * scn.adb (Scan_Reserved_Identifier): For earlier versions of Ada,
571 treat Some as a regular identifier.
572 * sem.adb: Call Analyze_Quantified_Expression.
573 * sem_ch4.adb, sem_ch4.ads: New procedure Analyze_Quantified_Expression.
574 * sem_ch5.adb, sem_ch5.ads: Analyze_Iteration_Scheme is public, for use
575 in quantified expressions.
576 * sem_res.adb: New procedure Resolve_Qualified_Expression.
577 * sinfo.adb, sinfo.ads: New node N_Quantified_Expression
578 * snames.ads-tmpl: New name Some.
579 * sprint.adb: Output quantified_expression.
581 2010-10-19 Robert Dewar <dewar@adacore.com>
583 * a-exexda.adb: Minor reformatting
584 Minor code reorganization.
586 2010-10-19 Robert Dewar <dewar@adacore.com>
588 * sem_eval.adb: Minor reformatting.
590 2010-10-19 Tristan Gingold <gingold@adacore.com>
592 * exp_ch4.adb (Expand_N_And_Op, Expand_N_Or_Op, Expand_N_Xor_Op): Call
593 Expand_Intrinsic_Call if the function is intrinsic.
594 * exp_intr_adb (Expand_Binary_Operator): Handle VMS case for logical
595 binary operator on the unsigned_quadword record.
596 * exp_intr.ads (Expand_Intrinsic_Call): Update comments.
598 2010-10-19 Geert Bosch <bosch@adacore.com>
600 * gnat_rm.texi (pragma Float_Representation): Fix typo.
602 2010-10-19 Arnaud Charlet <charlet@adacore.com>
604 * switch-c.adb (Scan_Front_End_Switches): Add handling of -gnateE.
605 * fe.h (Exception_Extra_Info): Declare.
606 * usage.adb (usage): Add -gnateE doc.
607 * checks.adb (Install_Null_Excluding_Check): Use better sloc.
608 * sem_util.adb (Insert_Explicit_Dereference): Ditto.
609 * gnat_ugn.texi: Document -gnateE switch.
610 * a-except.adb (Set_Exception_C_Msg): New parameter Column.
611 * a-except-2005.adb (Set_Exception_C_Msg): New parameter Column.
612 (Raise_Constraint_Error_Msg): Ditto.
613 (Image): New helper function.
614 (Rcheck_00_Ext, Rcheck_05_Ext, Rcheck_12_Ext): New procedure with more
615 detailed exception information.
616 Adjust calls to Set_Exception_C_Msg and Raise_Constraint_Error_Msg.
617 * a-exexda.adb (Set_Exception_C_Msg): New parameter Column.
618 * opt.ads (Exception_Extra_Info): New flag.
619 * gcc-interface/utils.c (gnat_raise_decls_ext): New.
620 * gcc-interface/utils2.c (build_call_raise_range,
621 build_call_raise_column): New functions.
622 * gcc-interface/gigi.h (exception_info_kind, gnat_raise_decls_ext,
623 build_call_raise_range, build_call_raise_column): Declare.
624 gcc-interface/trans.c (build_raise_check): New function.
625 (gigi): Initialize gnat_raise_decls_ext.
626 (gnat_to_gnu): Add initial support for -gnateE switch.
627 * gcc-interface/Make-lang.in: Update dependencies.
629 2010-10-19 Geert Bosch <bosch@adacore.com>
631 * ttypef.ads: Change VAXDF_Last to be -VAXDF_First, as type is
634 2010-10-19 Robert Dewar <dewar@adacore.com>
636 * atree.h (Field29): Fix incorrect definition.
637 * einfo.adb (Invariant_Procedure): New attribute
638 (Has_Invariants): New flag
639 (Has_Inheritable_Invariants): New flag
640 (OK_To_Reference): New flag
641 Minor code reorganization (use Next_Rep_Item function)
642 * einfo.ads (Invariant_Procedure): New attribute
643 (Has_Invariants): New flag
644 (Has_Inheritable_Invariants): New flag
645 (OK_To_Reference): New flag
646 * exp_ch3.adb (Expand_N_Object_Declaration): Add check for invariant
647 * exp_ch4.adb (Expand_N_Type_Conversion): Check invariant on type
648 conversion. Minor reformatting.
649 * exp_util.ads, exp_util.adb (Make_Invariant_Call): New procedure.
650 * opt.ads (List_Inherited_Aspects): New name for List_Inherited_Pre_Post
651 * par-prag.adb: Add dummy entry for pragma Invariant.
652 * sem_ch13.adb (Build_Invariant_Procedure): New procedure
653 (Analyze_Aspect_Specification): Add support for Invariant aspect
654 * sem_ch13.ads (Build_Invariant_Procedure): New procedure
655 * sem_ch3.adb (Build_Derived_Type): Propagate invariant information
656 (Process_Full_View): Deal with invariants, building invariant procedure
658 * sem_ch6.adb (Process_PPCs): Add processing of invariants
659 * sem_ch7.adb (Analyze_Package_Specification): Build invariant
661 * sem_prag.adb: Implement pragma Invariant.
662 * sem_res.adb (Resolve_Entity_Name): Allow type reference if
664 * sem_warn.adb (List_Inherited_Aspects): New name for
665 List_Inherited_Pre_Post.
666 * snames.ads-tmpl: Add entries for pragma Invariant.
667 * treepr.adb (Print_Entity_Information): Add handling of Field29.
668 * usage.adb: Warning .l/.L applies to invariant as well as pre/post.
670 2010-10-19 Javier Miranda <miranda@adacore.com>
672 * par-ch4.adb: Update documentation of Ada 2012 syntax rules for
675 2010-10-19 Bob Duff <duff@adacore.com>
677 * sem_attr.adb (Eval_Attribute): Implement Max_Alignment_For_Allocation
679 * exp_attr.adb (Expand_N_Attribute_Reference): Add
680 Attribute_Max_Alignment_For_Allocation to the case statement.
681 * snames.ads-tmpl (Name_Max_Alignment_For_Allocation,
682 Attribute_Max_Alignment_For_Allocation): New attribute name.
684 2010-10-19 Ed Schonberg <schonberg@adacore.com>
686 * sem_ch3.adb (OK_For_Limited_Init_In_05): a call to an access to
687 parameterless function appears syntactically as an explicit dereference.
689 2010-10-19 Thomas Quinot <quinot@adacore.com>
691 * sem_ch8.adb, sem_ch12.adb, opt.ads, sem_ch6.adb, sem_res.adb,
692 i-cexten.ads, exp_disp.adb, exp_ch4.adb, exp_ch9.adb: Minor reformatting
694 2010-10-19 Thomas Quinot <quinot@adacore.com>
696 * sem_util.adb (Collect_Primitive_Operations): A function with an
697 anonymous access result designating T is a primitive operation of T.
699 2010-10-19 Tristan Gingold <gingold@adacore.com>
701 * init.c: On Alpha/VMS, only adjust PC for HPARITH.
703 2010-10-19 Tristan Gingold <gingold@adacore.com>
705 * sem_attr.adb (Eval_Attribute): Handle Attribute_Ref, which can be
708 2010-10-19 Ed Schonberg <schonberg@adacore.com>
710 * sem_ch12.adb (Check_Generic_Child_Unit): Handle properly the case of
711 an instantiation of a renaming of the implicit generic child that
712 appears within an instance of its parent.
714 2010-10-19 Thomas Quinot <quinot@adacore.com>
716 * exp_ch9.adb: Minor reformatting.
717 * einfo.adb, einfo.ads, atree.adb, atree.ads, exp_dist.adb, atree.h:
718 (Referenced_Object): Remove unused entity attribute.
719 (Direct_Primitive_Operations): Move to Elist10, this is set for all
720 tagged types, including synchronous ones, so can't use field15 which is
721 used as Storage_Size_Variable for task types and Entry_Bodies_Array for
723 (Add_RACW_Primitive_Declarations_And_Bodies): Remove bogus guard
724 against Concurrent_Types (we must handle the case of a RACW designating
725 a class-wide private synchronous type).
726 Use Direct_Primitive_Operations, not Primitive_Operations, since we
727 really want the former.
729 2010-10-19 Bob Duff <duff@adacore.com>
731 * sem_ch8.adb (Pop_Scope): Change "return;" to "raise Program_Error;".
733 2010-10-19 Javier Miranda <miranda@adacore.com>
735 * exp_ch4.adb (Expand_Set_Membership.Make_Cond): Add missing support
738 2010-10-19 Thomas Quinot <quinot@adacore.com>
740 * einfo.ads, atree.ads: Minor comment fixes.
742 2010-10-18 Bob Duff <duff@adacore.com>
744 * sinfo.ads, sinfo.adb: Modify comment about adding fields to be more
745 correct, and to be in a more convenient order.
746 (Default_Storage_Pool): New field of N_Compilation_Unit_Aux, for
747 recording the Default_Storage_Pool for a parent library unit.
748 * einfo.ads (Etype): Document the case in which Etype can be Empty.
749 * sem_prag.adb (Pragma_Default_Storage_Pool): Analyze the new
750 Default_Storage_Pool pragma.
751 * sem.ads (Save_Default_Storage_Pool): Save area for push/pop scopes.
752 * gnat_ugn.texi: Document Default_Storage_Pool as a new configuration
754 * freeze.adb (Freeze_Entity): When freezing an access type, take into
755 account any Default_Storage_Pool pragma that applies. We have to do
756 this at the freezing point, because up until that point, a Storage_Pool
757 or Storage_Size clause could occur, which should override the
758 Default_Storage_Pool.
759 * par-prag.adb: Add this pragma to the list of pragmas handled entirely
761 * sem_ch8.adb (Push_Scope, Pop_Scope): Save and restore the
762 Default_Storage_Pool information.
763 * opt.ads (Default_Pool, Default_Pool_Config): New globals for recording
764 currently-applicable Default_Storage_Pool pragmas.
765 * opt.adb: Save/restore the globals as appropriate.
766 * snames.ads-tmpl (Name_Default_Storage_Pool,
767 Pragma_Default_Storage_Pool): New pragma name.
769 2010-10-18 Vincent Celier <celier@adacore.com>
771 * make.adb (Switches_Of): Put the spec and body suffix in canonical
774 2010-10-18 Ed Schonberg <schonberg@adacore.com>
776 * sem_ch13.adb (Analyze_Aspect_Specifications): If subprogram is at the
777 library level, the pre/postconditions must be treated as global
778 declarations, i.e. placed on the Aux_Decl nodes of the compilation unit.
779 * freeze.adb (Freeze_Expression): If the expression is at library level
780 there is no enclosing record to check.
782 2010-10-18 Javier Miranda <miranda@adacore.com>
784 * sem_ch3.ads (Find_Type_Name): Add documentation.
785 * sem_ch3.adb (Analyze_Full_Type_Declaration): Code cleanup because the
786 propagation of the class-wide entity is now done by routine
787 Find_Type_Name to factorize this code.
788 (Analyze_Private_Extension_Declaration): Handle private type that
789 completes an incomplete type.
790 (Tag_Mismatch): Add error message for tag mismatch in a private type
791 declaration that completes an incomplete type.
792 (Find_Type_Name): Handle completion of incomplete type by means of
793 a private declaration. Generate an error if a tagged incomplete type
794 is completed by an untagged private type.
795 * sem_ch7.adb (New_Private_Type): Handle private type that completes an
797 * einfo.ads (Full_View): Add documentation.
799 2010-10-18 Ed Schonberg <schonberg@adacore.com>
801 * sem_ch12.adb (Analyze_Formal_Package_Declaration): If the package is
802 a renaming, generate a reference for it before analyzing the renamed
803 entity, to prevent spurious warnings.
805 2010-10-18 Jose Ruiz <ruiz@adacore.com>
807 * adaint.c (__gnat_pthread_setaffinity_np,
808 __gnat_pthread_attr_setaffinity_np): Remove wrappers, no longer needed.
809 * s-osinte-linux.ads (pthread_setaffinity_np,
810 pthread_attr_setaffinity_np): Remove use of wrappers.
811 * s-taprop-linux.adb (Create_Task, Initialize): Restore check to verify
812 whether the affinity functionality is available in the OS.
813 * gcc-interface/utils.c: Set TREE_STATIC on functions only when there
816 2010-10-18 Robert Dewar <dewar@adacore.com>
818 * einfo.ads, einfo.adb: Minor reformatting.
819 * gnat_ugn.texi, ug_words: Add missing entries, fix typos.
821 2010-10-18 Emmanuel Briot <briot@adacore.com>
823 * g-comlin.adb (Is_In_Config): When the switch accepts either a space
824 or equal, we output an equal every time.
826 2010-10-18 Ed Schonberg <schonberg@adacore.com>
828 * sem_res.adb (Resolve_Entry_Call): Handle call to an entry family
829 member when pre/post conditions are present.
830 * exp_ch9.adb (Build_PPC_Wrapper): The PPC_Wrapper for an entry family
831 includes an index parameter, and the name of the enclosed entry call is
832 an indexed component.
834 2010-10-18 Robert Dewar <dewar@adacore.com>
836 * einfo.ads, einfo.adb: Minor reformatting.
838 2010-10-18 Jose Ruiz <ruiz@adacore.com>
840 * adaint.c (__gnat_pthread_setaffinity_np,
841 __gnat_pthread_attr_setaffinity_np): Add these wrappers which check the
842 availability of the underlying OS functionality before calling.
843 * s-osinte-linux.ads (pthread_setaffinity_np,
844 pthread_attr_setaffinity_np): Call a wrapper instead of the OS function
845 to perform a check of its availability.
846 * s-taprop-linux.adb (Create_Task): Remove the check to verify whether
847 the affinity functionality is available in the OS. Now done in a wrapper
848 * gcc-interface/Makefile.in: Remove vmshandler.asm, unused.
849 * gcc-interface/Make-lang.in: Update dependencies.
851 2010-10-18 Robert Dewar <dewar@adacore.com>
853 * sinfo.ads, sinfo.adb: Change Has_Pragma_CPU to Flag14 (Flag10 is
856 2010-10-18 Robert Dewar <dewar@adacore.com>
858 * s-stausa.adb, s-taprop-linux.adb, s-taprop-mingw.adb, s-tassta.ads:
861 2010-10-18 Robert Dewar <dewar@adacore.com>
863 * exp_strm.adb (Build_Elementary_Input_Call): Check
864 No_Default_Stream_Attributes.
865 (Build_Elementary_Write_Call): Check No_Default_Stream_Attributes
866 * s-rident.ads: Add restriction No_Default_Stream_Attributes
867 Put restriction No_Allocators_After_Elaboration in alpha order
869 2010-10-18 Jose Ruiz <ruiz@adacore.com>
871 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Add field corresponding
872 to the affinity when expanding the task declaration.
873 (Make_Task_Create_Call): Add the affinity parameter to the call to
875 * sem_prag.adb (Analyze_Pragma): Add the analysis for pragma CPU,
876 taking into account the case when it applies to a subprogram (only for
877 main and with static expression) or to a task.
878 * par_prag.adb:(Prag): Make pragma CPU a valid one.
879 * snames.ads-tmpl (Name_uCPU, Name_CPU): Add these new name identifiers
880 used by the expander for handling the affinity parameter when creating
882 (Pragma_Id): Add Pragma_CPU as a valid one.
883 * rtsfind.ads (RTU_Id): Make System_Multiprocessors accesible.
884 (RE_Id, RE_Unit_Table): Make the entities RE_CPU_Range and
885 RE_Unspecified_CPU visible.
886 * sinfo.ads, sinfo.adb (Has_Pragma_CPU, Set_Has_Pragma_CPU): Add these
887 two subprograms to set/get the flag indicating whether there is a
888 pragma CPU which applies to the entity.
889 * lib.ads, lib.adb (Unit_Record, Default_Main_CPU, Main_CPU,
890 Set_Main_CPU): Add the field Main_CPU to Unit_Record to store the value
891 of the affinity associated to the main subprogram (if any).
892 Default_Main_CPU is used when no affinity is set. Subprograms
893 Set_Main_CPU and Main_CPU are added to set/get the affinity of the main
895 * ali.ads, ali.adb (ALIs_Record): Add field Main_CPU to contain the
896 value of the affinity of the main subprogram.
897 (Scan_ALI): Get the affinity of the main subprogram (encoded as C=XX in
899 * lib-writ.ads, lib-writ.adb (M_Parameters): Encode the affinity of the
900 main subprogram in the M (main) line using C=XX.
901 * lib-load.adb (Create_Dummy_Package_Unit, Load_Main_Source,
902 Load_Unit): Add new field Main_CPU.
903 * bindgen.adb (Gen_Adainit_Ada, Gen_Adainit_C): Add the code to pass
904 the affinity of the main subprogram to the run time.
905 * s-taskin.ads (Common_ATCB): Add the field Base_CPU to store the
907 (Unspecified_CPU): Add this constant to identify the case when no
908 affinity is set for tasks.
909 * s-taskin.adb (Initialize_ATCB): Store the value coming from pragma
910 CPU in the common part of the ATCB.
911 (Initialize): Store the value coming from pragma CPU (for the
912 environment task) in the common part of the ATCB.
913 * s-tassta.ads, s-tassta.adb (Create_Task): Add the affinity specified
914 by pragma CPU to the ATCB.
915 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add the affinity
916 specified by pragma CPU to the ATCB.
917 * s-tporft.adb (Register_Foreign_Thread): Add the new affinity
918 parameter to the call to Initialize_ATCB.
919 * s-taprop-linux.adb (Create_Task): Change the attributes of the thread
920 to include the task affinity before creation. Additionally, the
921 affinity selected with Task_Info is also enforced changing the
922 attributes at task creation time, instead of changing it after creation.
923 (Initialize): Change the affinity of the environment task if required
925 * s-osinte-linux.ads (pthread_setaffinity_np): Instead of using a
926 wrapper to check whether the function is available or not, use a weak
928 (pthread_attr_setaffinity_np): Add the import of this function which is
929 used to change the affinity in the attributes used to create a thread.
930 * adaint.c (__gnat_pthread_attr_setaffinity_np): Remove this wrapper.
931 It was used to check whether the pthread function was available or not,
932 but the use of a weak symbol handles this situation in a cleaner way.
933 * s-taprop-mingw.adb (Create_Task, Initialize): Change the affinity of
934 tasks (including the environment task) if required by a pragma CPU.
935 * s-taprop-solaris.adb (Enter_Task): Change the affinity of tasks
936 (including the environment task) if required by a pragma CPU.
937 * s-taprop-vxworks.adb (Create_Task, Initialize): Change the affinity
938 of tasks (including the environment task) if required by a pragma CPU.
939 * init.c (__gl_main_cpu): Make this value visible to the run time. It
940 will pass the affinity of the environment task.
942 2010-10-18 Javier Miranda <miranda@adacore.com>
944 * einfo.adb (Direct_Primitive_Operations): Complete assertion.
946 2010-10-18 Vincent Celier <celier@adacore.com>
948 * prj.ads (Source_Data): New Boolean flag In_The_Queue.
950 2010-10-18 Tristan Gingold <gingold@adacore.com>
952 * s-stausa.ads: Add the Top parameter to Initialize_Analyzer.
953 * s-stausa.adb: Use the top parameter. In Fill_Stack, use the
955 * s-tassta.adb (Task_Wrapper): Call Initialize_Analyzer after Enter_Task
956 so that Pri_Stack_Info.Limit can be set and used.
958 2010-10-18 Robert Dewar <dewar@adacore.com>
960 * einfo.ads: Minor reformatting.
961 * sem_res.adb (Resolve_Allocator): Add test for violating
962 No_Anonymous_Allocators.
964 2010-10-18 Robert Dewar <dewar@adacore.com>
966 * prj-nmsc.adb, prj.adb, sem_res.adb: Minor reformatting.
968 2010-10-18 Ed Schonberg <schonberg@adacore.com>
970 * sem_util.adb (Insert_Explicit_Dereference): If operand is a selected
971 component, we generate a reference to the ultimate prefix when it is an
972 entity name. We must place the reference on the identifier for that
973 prefix, and not on the operand itself, to prevent spurious extra
974 references in the ali file.
976 2010-10-18 Vincent Celier <celier@adacore.com>
978 * projects.texi: Add documentation for attribute Ignore_Source_Sub_Dirs
980 2010-10-18 Ed Schonberg <schonberg@adacore.com>
982 * einfo.ads, einfo.adb: New attribute PPC_Wrapper for entries and entry
983 families. Denotes a procedure that performs pre/postcondition checks
984 and then performs the entry call.
985 * sem_res.adb (Resolve_Entry_Call): If the entry has
986 pre/postconditions, replace call with a call to the PPC_Wrapper of the
988 * exp_ch9.adb (Build_PPC_Wrapper): new procedure.
989 (Expand_N_Entry_Declaration, Expand_N_Protected_Type_Declaration): call
990 Build_PPC_Wrapper for all entries in task and protected definitions.
992 2010-10-18 Tristan Gingold <gingold@adacore.com>
994 * init.c: Add __gnat_set_stack_guard_page and __gnat_set_stack_limit.
995 Implement stack limitation on VMS.
998 2010-10-18 Vincent Celier <celier@adacore.com>
1000 * prj.adb (Is_Compilable): Do not modify Source.Compilable until the
1001 source record has been initialized.
1003 2010-10-18 Robert Dewar <dewar@adacore.com>
1005 * einfo.adb: Minor code reorganization (Primitive_Operations is a
1006 synthesized attribute routine and was in the wrong place).
1008 2010-10-18 Tristan Gingold <gingold@adacore.com>
1010 * init.c: Indentation, and minor changes to more closely follow GNU
1011 style rules. Make more variable statics.
1013 2010-10-18 Vincent Celier <celier@adacore.com>
1015 * prj.adb (Is_Compilable): On first call for a source, cache value in
1016 component Compilable.
1017 * prj.ads (Source_Data): New component Compilable, to cache the value
1018 returned by function Is_Compilable.
1020 2010-10-18 Vincent Celier <celier@adacore.com>
1022 * prj-attr.adb: New project level attribute Ignore_Source_Sub_Dirs.
1023 * prj-nmsc.adb (Expand_Subdirectory_Pattern): New string list parameter
1025 (Recursive_Find_Dirs): Do not consider subdirectories listed in Ignore.
1026 (Get_Directories): Call Find_Source_Dirs with the string list
1027 indicated by attribute Ignore_Source_Sub_Dirs.
1028 * snames.ads-tmpl: New standard name Ignore_Source_Sub_Dirs.
1030 2010-10-18 Javier Miranda <miranda@adacore.com>
1032 * einfo.ads, einfo.adb (Primitive_Operations): New synthesized
1034 (Direct_Primitive_Operations): Renaming of old Primitive_Operations.
1035 (Set_Direct_Primitive_Operations): Renaming of old
1036 Set_Primitive_Operations. Update documentation
1037 * sem_ch3.adb, exp_util.adb, sem_ch7.adb, sem_ch8.adb, exp_ch3.adb:
1038 Replace occurrences of Set_Primitive_Operations by
1039 Set_Direct_Primitive_Operations.
1040 * sem_cat.adb (Validate_RACW_Primitives): No action needed for tagged
1042 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
1043 process primitives of concurrent types.
1044 * lib-xref.adb (Generate_Prim_Op_References): Minor code cleanup.
1046 2010-10-18 Eric Botcazou <ebotcazou@adacore.com>
1048 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Use Freeze_Before.
1049 (Expand_Protected_Object_Reference): Likewise.
1050 * sem_attr.adb (Resolve_Attribute): Likewise.
1051 * sem_ch3.adb (Analyze_Subtype_Declaration): Likewise.
1052 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Likewise.
1054 2010-10-18 Arnaud Charlet <charlet@adacore.com>
1056 * g-comlin.adb (Get_Switches): Prevent dereferencing null Config.
1058 2010-10-18 Robert Dewar <dewar@adacore.com>
1060 * aspects.ads, aspects.adb: Add entries for aspects
1061 Read/Write/Input/Output.
1062 * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing for
1063 handling aspects Read/Write/Input/Output.
1065 2010-10-18 Robert Dewar <dewar@adacore.com>
1067 * sem_util.adb (Note_Possible_Modification): Do not give warning for
1068 use of pragma Unmodified unless we are sure this is a modification.
1070 2010-10-18 Tristan Gingold <gingold@adacore.com>
1072 * sysdep.c: Add __gnat_get_stack_bounds.
1073 * s-taprop-mingw.adb Call __gnat_get_stack_bounds to set Pri_Stack_Info.
1075 2010-10-18 Robert Dewar <dewar@adacore.com>
1077 * a-assert.ads: Fix bad name in header.
1078 * sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch10.adb: Minor
1080 * exp_aggr.adb: Fix typo in comment.
1082 2010-10-18 Javier Miranda <miranda@adacore.com>
1084 * exp_util.adb (Side_Effect_Free): Code clean up.
1086 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1088 * sem_ch8.adb (Is_Primitive_Operator_In_Use): Renamed from
1089 Is_Primitive_Operator. When ending the scope of a use package scope, a
1090 primitive operator remains in use if the base type has a current use
1093 2010-10-18 Javier Miranda <miranda@adacore.com>
1095 * einfo.ads (Is_Dynamic_Support): Add missing support for limited
1096 private types whose full-view is a task type.
1097 * sem_util.adb (Enclosing_Subprogram): Add missing support for limited
1098 private types whose full-view is a task type.
1099 * exp_ch7.adb (Find_Final_List): Minor code cleanup replacing code by
1100 function Nearest_Dynamic_Scope which provides the needed functionality.
1102 2010-10-18 Arnaud Charlet <charlet@adacore.com>
1104 * sem_prag.adb (Set_Exported): Do not generate error when exporting a
1105 variable with an address clause in codepeer mode.
1107 2010-10-18 Robert Dewar <dewar@adacore.com>
1109 * g-trasym-vms-ia64.adb: Minor reformatting.
1111 2010-10-18 Thomas Quinot <quinot@adacore.com>
1113 * sem_type.adb (Covers): If either argument is Standard_Void_Type and
1114 the other isn't, return False early.
1116 2010-10-18 Ed Falis <falis@adacore.com>
1118 * s-vxwext-rtp.ads, s-vxext-rtp.adb: Adapt for missing APIs for RTPs in
1121 2010-10-18 Robert Dewar <dewar@adacore.com>
1123 * sem_disp.ads: Minor comment update.
1125 2010-10-18 Robert Dewar <dewar@adacore.com>
1127 * einfo.ads, einfo.adb (Spec_PPC_List): Is now present in Entries
1128 * sem_ch3.adb (Analyze_Declarations): Add processing for delaying
1129 visibility analysis of precondition and postcondition pragmas (and
1131 * sem_ch6.adb (Process_PPCs): Add handling of inherited Pre'Class
1133 * sem_ch7.adb (Analyze_Package_Specification): Remove special handling
1134 of pre/post conditions (no longer needed).
1135 * sem_disp.adb (Inherit_Subprograms): Deal with interface case.
1136 * sem_prag.adb (Analyze_PPC_In_Decl_Part): Remove analysis of message
1137 argument, since this is now done in the main processing for
1138 pre/postcondition pragmas when they are first seen.
1139 (Chain_PPC): Pre'Class and Post'Class now handled properly
1140 (Chain_PPC): Handle Pre/Post aspects for entries
1141 (Check_Precondition_Postcondition): Handle entry declaration case
1142 (Check_Precondition_Postcondition): Handle delay of visibility analysis
1143 (Check_Precondition_Postcondition): Preanalyze message argument if
1146 2010-10-18 Robert Dewar <dewar@adacore.com>
1148 * g-trasym-vms-ia64.adb, prj-nmsc.adb, prj.ads: Minor reformatting.
1150 2010-10-14 Eric Botcazou <ebotcazou@adacore.com>
1152 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Set
1153 TREE_THIS_NOTRAP on the INDIRECT_REF node built for the template.
1154 * gcc-interface/trans.c (Identifier_to_gnu): Set TREE_THIS_NOTRAP on
1155 the INDIRECT_REF node built for objects used by reference.
1156 * gcc-interface/utils2.c (build_binary_op): Add short-circuit for
1157 constant result. Set TREE_THIS_NOTRAP on ARRAY_REF and ARRAY_RANGE_REF.
1158 (gnat_stabilize_reference_1): Propagate the TREE_THIS_NOTRAP flag.
1160 2010-10-13 Richard Henderson <rth@redhat.com>
1162 * gcc-interface/misc.c (gnat_eh_personality): Update call to
1163 build_personality_function.
1164 * raise-gcc.c (PERSONALITY_FUNCTION): Change to match other languages;
1165 use__gnat_personality_{v,sj}0.
1167 2010-10-12 Vincent Celier <celier@adacore.com>
1169 * prj-nmsc.adb (Add_Source): Put source in hash table Source_Files_HT
1170 (Process_Exceptions_File_Based): Use hash table Source_Files_HT instead
1171 of iterating through all sources of the project.
1172 * prj.adb (Free): Reset hash table Source_Files_HT
1173 (Reset): Reset hash table Source_Files_HT
1174 * prj.ads (Source_Data): New component Next_With_File_Name
1175 (Source_Files_Htable): New hash table
1176 (Project_Tree_Data): New component Source_Files_HT
1178 2010-10-12 Tristan Gingold <gingold@adacore.com>
1180 * g-trasym-vms-ia64.adb: Use the documented API.
1181 * gcc-interface/Makefile.in: Always set NO_REORDER_ADAFLAGS.
1182 * gcc-interface/Make-lang.in: Update dependencies.
1184 2010-10-12 Thomas Quinot <quinot@adacore.com>
1186 * rtsfind.ads, exp_dist.adb, exp_dist.ads (Build_General_Calling_Stubs,
1187 PolyORB case): Request is now a controlled type: we can declare the
1188 request on the stack, and we do not need explicit cleanup actions
1191 2010-10-12 Bob Duff <duff@adacore.com>
1193 * s-rident.ads (Profile_Info): This variable is now constant.
1195 2010-10-12 Emmanuel Briot <briot@adacore.com>
1197 * g-comlin.adb, g-comlin.ads (Define_Switch): Put back (unused)
1198 parameter Separator for backward compatibility.
1200 2010-10-12 Robert Dewar <dewar@adacore.com>
1202 * sem_ch9.adb, par-ch9.adb, impunit.adb: Minor reformatting.
1204 2010-10-12 Vincent Celier <celier@adacore.com>
1206 * debug.adb: Put detailed documentation for gnatmake switch -dm.
1208 2010-10-12 Vincent Celier <celier@adacore.com>
1210 * gnat1drv.adb: When the compiler is invoked for a spec that needs aw
1211 body, do not generate an ALI file if neither -gnatc nor -gnatQ is used.
1213 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1215 * g-comlin.adb (Foreach_Switch): Make this procedure generic to avoid
1218 2010-10-12 Robert Dewar <dewar@adacore.com>
1220 * debug.adb: Add comment.
1221 * gnatcmd.adb, sem_ch6.adb, switch-m.adb: Minor reformatting.
1223 2010-10-12 Javier Miranda <miranda@adacore.com>
1225 * exp_util.adb (Side_Effect_Free): Return true for object renaming
1226 declarations that were previously generated by Remove_Side_Effects.
1228 2010-10-12 Emmanuel Briot <briot@adacore.com>
1230 * xref_lib.adb (Get_Full_Type): Display "private variable" instead of
1231 "???" when an entity is defined as "*" in the ALI file.
1232 * g-comlin.ads, g-comlin.adb: Fix handling of null parameters.
1235 2010-10-12 Emmanuel Briot <briot@adacore.com>
1237 * g-comlin.adb, g-comlin.ads (Display_Help, Getopt, Current_Section,
1238 Set_Usage): New subprograms.
1239 (Define_Switch): Change profile to add support for help messages and
1242 2010-10-12 Javier Miranda <miranda@adacore.com>
1244 * sem_ch6.adb (New_Overloaded_Entity): Add missing decoration of
1245 attribute Overridden_Operation in predefined dispatching primitives.
1247 2010-10-12 Emmanuel Briot <briot@adacore.com>
1249 * g-comlin.adb, g-comlin.ads (Add_Switch): Raise an exception when a
1250 command line configuration exists and we specify an invalid section.
1252 2010-10-12 Robert Dewar <dewar@adacore.com>
1254 * sem_ch6.adb (Process_PPCs): Fix error in inheriting Pre'Class when no
1255 exception messages are generated.
1256 (Process_PPCs): Fix error in inheriting Pre'Class.
1258 2010-10-12 Jose Ruiz <ruiz@adacore.com>
1260 * gnatcmd.adb: Use response file for GNATstack.
1261 (Check_Files): Pass the list of ci files for GNATstack using a response
1262 file to avoid problems with command line length.
1263 Factor out the code handling response file into a new procedure named
1264 Add_To_Response_File.
1266 2010-10-12 Vincent Celier <celier@adacore.com>
1268 * debug.adb: For gnatmake, document the meaning of -dm
1269 * make.adb (Gnatmake): If -dm is used, indicate the maximum number of
1270 simultaneous compilations.
1271 * switch-m.adb (Scan_Make_Switches): Allow -j0, meaning as many
1272 simultaneous compilations as the number of processors.
1274 2010-10-12 Joseph Myers <joseph@codesourcery.com>
1276 * gcc-interface/Make-lang.in (ada/misc.o): Use $(OPTIONS_H)
1277 instead of options.h.
1279 2010-10-12 Robert Dewar <dewar@adacore.com>
1281 * gnat_rm.texi: Clarify that 'Old can be used in preconditions and
1282 postcondition pragmas.
1284 2010-10-12 Robert Dewar <dewar@adacore.com>
1286 * errout.ads, erroutc.adb: The # insertion now handles from in place of
1288 * exp_prag.adb (Expand_Pragma_Check): Suppress generated default
1289 message if new switch Exception_Locations_Suppressed is set.
1290 (Expand_Pragma_Check): Revised wording for default message for case
1291 of precondition or postcondition.
1292 * namet.ads, namet.adb (Build_Location_String): New procedure.
1293 * opt.ads (List_Inherited_Pre_Post): New flag.
1294 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Add call to
1295 list inherited pre/post aspects.
1296 * sem_ch13.adb (Analyze_Aspect_Specification): Improve generation of
1297 messages for precondition/postcondition cases.
1298 * sem_ch6.adb (Process_PPCs): General cleanup, and list inherited PPC's
1299 if flag List_Inherited_Pre_Post is set True.
1300 (Process_PPCs): Add initial handling for inherited preconditions
1301 (List_Inherited_Pre_Post_Aspects): New procedure
1302 * sem_ch6.ads (List_Inherited_Pre_Post_Aspects): New procedure
1303 * sem_disp.adb (Inherited_Subprograms): New function
1304 * sem_disp.ads (Inherited_Subprograms): New function
1305 * sem_prag.adb (Check_Duplicate_Pragma): Clean up handling of
1307 (Check_Precondition_Postcondition): Check for inherited aspects
1308 * sem_warn.adb: Process -gnatw.l/w.L setting List_Inherited_Pre_Post
1309 * sinfo.ads, sinfo.adb (Split_PPC): New flag.
1310 * sinput.ads, sinput.adb (Build_Location_String): New function.
1311 * usage.adb: Add line for -gnatw.l/-gnatw.L
1313 2010-10-12 Javier Miranda <miranda@adacore.com>
1315 * exp_util.adb (Remove_Side_Effects): Remove wrong code.
1317 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1319 * xref_lib.adb: Add handling of j/J letters.
1321 2010-10-12 Pascal Obry <obry@adacore.com>
1323 * adaint.c (__gnat_number_of_cpus): Add implementation for Windows.
1325 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1327 * make.adb (Globalize): New procedure.
1328 (Compile): Set Do_Codepeer_Globalize_Step when -gnatC is used.
1329 (Gnatmake): Call Globalize when needed.
1330 (Process_Restrictions_Or_Restriction_Warnings): Ignore Restrictions
1331 pragmas in CodePeer mode.
1332 (Adjust_Global_Switches): Set No_Initialize_Scalars in CodePeer mode,
1333 to generate simpler and consistent code.
1335 2010-10-12 Bob Duff <duff@adacore.com>
1337 * exp_util.adb (Remove_Side_Effects): Disable previous change,
1338 can cause side effects to be duplicated.
1340 2010-10-12 Robert Dewar <dewar@adacore.com>
1342 * sem_ch6.adb (Process_PPCs): Handle inherited postconditions.
1344 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1346 * exp_disp.adb (Set_All_DT_Position): Disable emit error message on
1347 abstract inherited private operation in CodePeer mode.
1349 2010-10-12 Thomas Quinot <quinot@adacore.com>
1351 * a-exetim.ads: Minor reformatting.
1352 * g-socket.ads (Port_Type): Better definition corresponding to the
1353 actual standard range.
1354 * exp_ch5.adb: Add comment.
1355 * sem_aux.adb: Minor reformatting.
1357 2010-10-12 Ed Schonberg <schonberg@adacore.com>
1359 * sem_ch12.adb (Copy_Generic_Node): If node is a string literal, remove
1360 string_literal_subtype so that a new one can be constructed in the
1361 scope of the instance.
1363 2010-10-12 Robert Dewar <dewar@adacore.com>
1365 * exp_ch9.adb (Has_Pragma_Priority): New name for Has_Priority_Pragma
1366 * gnat_rm.texi (pragma Suppress_All): Document new placement rules
1367 * par-prag.adb (P_Pragma, case Suppress_All): Set
1368 Has_Pragma_Suppress_All flag.
1369 * sem_prag.adb (Has_Pragma_Priority): New name for Has_Priority_Pragma
1370 (Analyze_Pragma, case Suppress_All): Remove placement check
1371 (Process_Compilation_Unit_Pragmas): Use Has_Pragma_Suppress_All flag
1372 * sem_prag.ads (Process_Compilation_Unit_Pragmas): Update documentation
1373 * sinfo.adb (Has_Pragma_Suppress_All): New flag
1374 (Has_Pragma_Priority): New name for Has_Priority_Pragma
1375 * sinfo.ads (Has_Pragma_Suppress_All): New flag
1376 (Has_Pragma_Priority): New name for Has_Priority_Pragma
1378 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1380 * lib-xref.ads: Mark j/J as reserved for C++ classes.
1382 2010-10-12 Jose Ruiz <ruiz@adacore.com>
1384 * a-exetim-default.ads, a-exetim-posix.adb: New.
1385 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for linux): Use the
1386 POSIX Realtime support to implement CPU clocks.
1387 (EXTRA_GNATRTL_TASKING_OBJS for linux): Add the a-exetim.o object
1388 to the tasking library.
1389 (THREADSLIB): Make the POSIX.1b Realtime Extensions library (librt)
1390 available for shared libraries.
1391 * gcc-interface/Make-lang.in: Update dependencies.
1393 2010-10-12 Robert Dewar <dewar@adacore.com>
1395 * sem_ch13.adb (Analyze_Aspect_Specifications): For Pre/Post, break
1396 apart expressions with AND THEN clauses into separate pragmas.
1397 * sinput.ads, sinput.adab (Get_Logical_Line_Number_Img): New function.
1399 2010-10-12 Robert Dewar <dewar@adacore.com>
1401 * par-ch13.adb (P_Aspect_Specifications): Fix handling of 'Class
1403 * sem_ch13.adb (Analyze_Aspect_Specifications): Fix bad Sloc on aspects
1404 * sem_prag.adb (Fix_Error): Only change pragma names for pragmas from
1406 (Check_Optional_Identifier): Handle case of direct arguments
1407 (Chain_PPC): Test for abstract case, giving appropriate messages
1408 * sinfo.ads, sinfo.adb (Class_Present): Allowed on N_Pragma node
1410 2010-10-12 Robert Dewar <dewar@adacore.com>
1412 * par-endh.adb (Check_End): Don't swallow semicolon or aspects after
1414 * sem_attr.adb (Eval_Attribute): Code clean up.
1416 2010-10-12 Robert Dewar <dewar@adacore.com>
1418 * par-ch12.adb (P_Formal_Private_Type_Definition): Improve error
1419 messages and recovery for case of out of order Abstract/Tagged/Private
1421 * par-ch3.adb (P_Type_Declaration): Improve error messages and recovery
1422 for case of out of order Abstract/Tagged/Private keywords.
1424 2010-10-12 Ed Schonberg <schonberg@adacore.com>
1426 * inline.adb (Analyze_Inlined_Bodies): Restrict previous change to case
1427 where child unit is main unit of compilation.
1429 2010-10-12 Robert Dewar <dewar@adacore.com>
1431 * aspects.ads, aspects.adb (Move_Aspects): New procedure.
1432 * atree.ads, atree.adb: (New_Copy): Does not copy aspect specifications
1433 * sinfo.ads, par-ch3.adb, par-ch6.adb, par-ch7.adb, par-ch9.adb,
1434 par-endh.adb, par-ch13.adb, par-ch12.adb: Modify grammar to include
1435 aspect specifications.
1436 Recognize aspect specifications for all cases
1437 * par.adb: Recognize aspect specifications for all cases
1438 * sem_ch12.ads, sem_ch12.adb (Copy_Generic_Node): Copies aspect
1440 * sem_ch3.adb (Analyze_Subtype_Declaration): Improve patch to freeze
1441 generic actual types (was missing some guards before).
1442 * sem_ch9.adb (Analyze_Single_Protected_Declaration): Copy aspects to
1444 (Analyze_Single_Task_Declaration): Copy aspects to generated object
1446 2010-10-12 Eric Botcazou <ebotcazou@adacore.com>
1448 * usage.adb (usage): Adjust line for -gnatn switch.
1450 2010-10-12 Robert Dewar <dewar@adacore.com>
1452 * sem_attr.adb (Eval_Attribute): Only leave change active for aspect
1455 2010-10-12 Ed Schonberg <schonberg@adacore.com>
1457 * sem_ch6.adb (Analyze_Subprogram_Declaration): If this is a
1458 declaration of a null procedure resolve the types of the profile of the
1459 generated null body now.
1461 2010-10-11 Robert Dewar <dewar@adacore.com>
1463 * debug.adb: Remove d.A flag to delay address clause (not needed any
1464 more). Add d.A flag to enable tree read/write of aspect spec hash table
1465 * sem_ch13.adb (Analyze_Aspect_Specifications): Properly delay address
1467 (Rep_Item_Too_Late): No need for special processing for delayed rep
1468 items (and it caused difficulties in the address case).
1469 * tree_gen.adb: Only write aspect spec hash table if -gnatd.A is set
1470 * tree_in.adb: Only write aspect spec hash table if -gnatd.A is set
1472 2010-10-11 Pat Rogers <rogers@adacore.com>
1474 * gnat_ugn.texi: Minor editing.
1476 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
1478 * gcc-interface/utils2.c (gnat_build_constructor): Use VEC_qsort.
1480 2010-10-11 Robert Dewar <dewar@adacore.com>
1482 * g-htable.ads (Get_First): New procedural version for Simple_HTable
1483 (Get_Next): New procedural version for Simple_HTable
1484 * s-htable.adb (Get_First): New procedural version for Simple_HTable
1485 (Get_Next): New procedural version for Simple_HTable
1486 * s-htable.ads (Get_First): New procedural version for Simple_HTable
1487 (Get_Next): New procedural version for Simple_HTable
1489 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1491 * sem_aggr.adb (Propagate_Discriminants): To gather the components of a
1492 variant part, use the association list of the subaggregate, which
1493 already includes the values of the needed discriminants.
1495 2010-10-11 Robert Dewar <dewar@adacore.com>
1497 * aspects.ads, aspects.adb: Changes to accomodate aspect delay
1498 (Tree_Write): New procedure.
1499 * atree.ads, atree.adb: Flag3 is now Has_Aspects and applies to all
1501 * atree.h: Flag3 is now Has_Aspects and applies to all nodes
1502 * debug.adb: Add debug flag gnatd.A
1503 * einfo.adb (Has_Delayed_Aspects): New flag
1504 (Get_Rep_Item_For_Entity): New function
1505 * einfo.ads (Has_Delayed_Aspects): New flag
1506 (Get_Rep_Item_For_Entity): New function
1507 * exp_ch13.adb (Expand_N_Freeze_Entity): Insert delayed aspects into
1509 * exp_ch3.adb, exp_ch6.adb, exp_ch9.adb, exp_disp.adb: New calling
1510 sequence for Freeze_Entity.
1511 * freeze.ads, freeze.adb (Freeze_Entity): Takes node rather than source
1512 ptr. All calls are changed to this new interface.
1513 (Freeze_And_Append): Same change
1514 (Freeze_Entity): Evaluate deferred aspects
1515 * sem_attr.adb: New calling sequence for Freeze_Entity
1516 (Eval_Attribute): Don't try to evaluate attributes of unfrozen types
1517 when we are in spec expression preanalysis mode.
1518 * sem_ch10.adb: New calling sequence for Freeze_Entity
1519 * sem_ch11.adb: Simplify analysis of aspect specifications now that the
1520 flag Has_Aspects applies to all nodes (no need to save aspects).
1521 * sem_ch12.adb: Simplify analysis of aspect specifications now that the
1522 flag Has_Aspects applies to all nodes (no need to save aspects).
1523 * sem_ch13.adb (Analyze_Aspect_Specifications): Major rewrite to
1524 accomodate delaying aspect evaluation to the freeze point.
1525 (Duplicate_Clause): Simplify using Get_Rep_Item_For_Entity, and also
1526 accomodate delayed aspects.
1527 (Rep_Item_Too_Late): Deal with delayed aspects case
1528 * sem_ch13.ads (Rep_Item_Too_Late): Document handling of delayed
1530 * sem_ch3.adb (Analyze_Subtype_Declaration): Make sure that generic
1531 actual types are properly frozen (this is needed because of the new
1532 check in Eval_Attribute that declines to evaluate attributes
1533 for unfrozen types).
1534 Simplify analysis of aspect specifications now that the flag
1535 Has_Aspects applies to all nodes (no need to save aspects).
1536 * sem_ch3.ads (Preanalyze_Spec_Expression): Note use for delayed
1538 * sem_ch5.adb: Simplify analysis of aspect specifications now that the
1539 flag Has_Aspects applies to all nodes (no need to save aspects).
1540 New calling sequence for Freeze_Entity.
1541 * sem_ch9.adb, sem_ch7.adb, sem_ch6.adb: Simplify analysis of aspect
1542 specifications now that the flag Has_Aspects applies to all nodes
1543 (no need to save aspects).
1544 New calling sequence for Freeze_Entity
1545 * sem_prag.adb (Check_Duplicate_Pragma): Simplify using
1546 Get_Rep_Item_For_Entity
1547 (Get_Pragma_Arg): Moved to Sinfo
1548 * sinfo.ads, sinfo.adb (Aspect_Rep_Item_: New field
1549 (Is_Delayed_Aspect): New flag
1550 (Next_Rep_Item): Document use for aspects
1551 (Get_Pragma_Arg): Moved here from Sem_Prag
1552 * sprint.adb (Sprint_Aspect_Specifications): Now called after semicolon
1553 is output and removes semicolon (simplifies interface).
1554 (Sprint_Node_Actual): Simplify handling of aspects now that Has_Aspects
1555 applies to any node.
1556 * tree_gen.adb: Write contents of Aspect_Specifications hash table
1557 * tree_in.adb: Read and initialize Aspect_Specifications hash table
1558 * treepr.adb (Print_Node): Print Has_Aspects flag
1559 (Print_Node): Print Aspect_Specifications in Has_Aspects set
1560 * xtreeprs.adb: Remove obsolete references to Flag1,2,3
1562 2010-10-11 Robert Dewar <dewar@adacore.com>
1564 * aspects.ads, aspects.adb: Major revision of this package for 2nd
1565 stage of aspects implementation.
1566 * gcc-interface/Make-lang.in: Add entry for aspects.o
1567 * gcc-interface/Makefile.in: Add aspects.o to GNATMAKE_OBJS
1568 * par-ch13.adb (Aspect_Specifications_Present): New function
1569 (P_Aspect_Specifications): New procedure
1570 * par-ch3.adb (P_Type_Declaration): Handle aspect specifications
1571 (P_Derived_Type_Def_Or_Private_Ext_Decl): Handle aspect specifications
1572 (P_Identifier_Declarations): Handle aspect specifications
1573 (P_Component_Items): Handle aspect specifications
1574 (P_Subtype_Declaration): Handle aspect specifications
1575 * par-ch6.adb (P_Subprogram): Handle aspect specifications
1576 * par-ch9.adb (P_Entry_Declaration): Handle aspect specifications
1577 * par.adb (Aspect_Specifications_Present): New function
1578 (P_Aspect_Specifications): New procedure
1579 * sem.adb (Analyze_Full_Type_Declaration): New name for
1580 Analyze_Type_Declaration.
1581 (Analyze_Formal_Package_Declaration): New name (add _Declaration)
1582 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
1583 (Analyze_Protected_Type_Declaration): New name (add _Declaration)
1584 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
1585 (Analyze_Single_Task_Declaration): New name (add _Declaration)
1586 (Analyze_Task_Type_Declaration): New name (add _Declaration)
1587 * sem_cat.adb (Analyze_Full_Type_Declaration): New name for
1588 Analyze_Type_Declaration.
1589 * sem_ch11.adb (Analyze_Exception_Declaration): Analyze aspect
1591 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Handle aspect
1593 (Analyze_Formal_Package_Declaration): New name (add _Declaration)
1594 (Analyze_Formal_Package_Declaration): Handle aspect specifications
1595 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
1596 (Analyze_Formal_Subprogram_Declaration): Handle aspect specifications
1597 (Analyze_Formal_Type_Declaration): Handle aspect specifications
1598 (Analyze_Generic_Package_Declaration): Handle aspect specifications
1599 (Analyze_Generic_Subprogram_Declaration): Handle aspect specifications
1600 (Analyze_Package_Instantiation): Handle aspect specifications
1601 (Analyze_Subprogram_Instantiation): Handle aspect specifications
1602 * sem_ch12.ads (Analyze_Formal_Package_Declaration): New name (add
1604 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
1605 * sem_ch13.adb (Analyze_Aspect_Specifications): New procedure
1606 (Duplicate_Clause): New function, calls to this function are added to
1607 processing for all aspects.
1608 * sem_ch13.ads (Analyze_Aspect_Specifications): New procedure
1609 * sem_ch3.adb (Analyze_Full_Type_Declaration): New name for
1610 Analyze_Type_Declaration.
1611 * sem_ch3.ads (Analyze_Full_Type_Declaration): New name for
1612 Analyze_Type_Declaration.
1613 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Analyze aspect
1615 (Analyze_Subprogram_Declaration): Analyze aspect specifications
1616 * sem_ch7.adb (Analyze_Package_Declaration): Analyze aspect
1618 (Analyze_Private_Type_Declaration): Analyze aspect specifications
1619 * sem_ch9.adb (Analyze_Protected_Type_Declaration): Analyze aspect
1621 (Analyze_Protected_Type_Declaration): New name (add _Declaration)
1622 (Analyze_Single_Protected_Declaration): Analyze aspect specifications
1623 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
1624 (Analyze_Single_Task_Declaration): Analyze aspect specifications
1625 (Analyze_Single_Task_Declaration): New name (add _Declaration)
1626 (Analyze_Task_Type_Declaration): Analyze aspect specifications
1627 (Analyze_Task_Type_Declaration): New name (add _Declaration)
1628 * sem_ch9.ads (Analyze_Protected_Type_Declaration): New name (add
1630 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
1631 (Analyze_Single_Task_Declaration): New name (add _Declaration)
1632 (Analyze_Task_Type_Declaration): New name (add _Declaration)
1633 * sem_prag.adb: Use Get_Pragma_Arg systematically so that we do not
1634 have to generate unnecessary pragma argument associations (this matches
1636 Throughout do changes to accomodate aspect specifications, including
1637 specializing messages, handling the case of not going through all
1638 homonyms, and allowing for cancellation.
1639 * sinfo.ads, sinfo.adb: Clean up obsolete documentation for Flag1,2,3
1640 (Aspect_Cancel): New flag
1641 (From_Aspect_Specification): New flag
1642 (First_Aspect): Removed flag
1643 (Last_Aspect): Removed flag
1644 * sprint.adb (Sprint_Aspect_Specifications): New procedure
1645 (Sprint_Node_Actual): Add calls to Sprint_Aspect_Specifications
1647 2010-10-11 Bob Duff <duff@adacore.com>
1649 * sem_res.adb (Resolve_Actuals): Minor change to warning messages so
1650 they match in Ada 95, 2005, and 2012 modes, in the case where the
1651 language didn't change. Same thing for the run-time exception message.
1653 2010-10-11 Javier Miranda <miranda@adacore.com>
1655 * debug.adb Document that switch -gnatd.p enables the CIL verifier.
1657 2010-10-11 Robert Dewar <dewar@adacore.com>
1659 * s-htable.adb: Minor reformatting.
1661 2010-10-11 Javier Miranda <miranda@adacore.com>
1663 * debug.adb: Update comment.
1665 2010-10-11 Vincent Celier <celier@adacore.com>
1667 * gnatcmd.adb (GNATCmd): Set Opt.Unchecked_Shared_Lib_Imports to True
1668 unconditionally as for "gnat make" the projects are not processed in
1671 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1673 * sem_ch10.ads, sem_ch10.adb (Load_Needed_Body): Add parameter to
1674 suppress semantic analysis of the body when inlining, prior to
1675 verifying that the body does not have a with_clause on a descendant
1677 * inline.adb (Analyze_Inlined_Bodies): Do not inline a body if it has a
1678 with_clause on a descendant.
1679 (Scope_In_Main_Unit): Simplify.
1681 2010-10-11 Robert Dewar <dewar@adacore.com>
1683 * exp_ch6.adb, freeze.adb: Minor reformatting.
1685 2010-10-11 Vincent Celier <celier@adacore.com>
1687 * gnatcmd.adb (GNATCmd): For all tools other than gnatmake, allow
1688 shared library projects to import projects that are not shared library
1691 2010-10-11 Javier Miranda <miranda@adacore.com>
1693 * debug.adb: Document that switch -gnatd.o generates the CIL listing.
1695 2010-10-11 Arnaud Charlet <charlet@adacore.com>
1697 * sem_prag.adb (Process_Suppress_Unsuppress): Only ignore
1698 Suppress/Unsuppress pragmas in codepeer mode on user code.
1700 2010-10-11 Javier Miranda <miranda@adacore.com>
1702 * exp_ch6.adb (Expand_Call): For VM platforms, add missing expansion of
1703 tag check in case of dispatching call through "=".
1705 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1707 * sem_ch3.adb (Access_Subprogram_Declaration): In Ada2012 an incomplete
1708 type is legal in the profile of any basic declaration.
1709 * sem_ch6.adb (Analyze_Return_Type, Process_Formals): In Ada2012 an
1710 incomplete type, including a limited view of a type, is legal in the
1711 profile of any subprogram declaration.
1712 If the type is tagged, its use is also legal in a body.
1713 * sem_ch10.adb (Install_Limited_With_Clause): Do not process context
1715 (Install_Limited_Withed_Unit): Refine legality checks when both the
1716 limited and the non-limited view of a package are visible in the
1718 If this is not an error case, the limited view is ignored.
1719 freeze.adb (Freeze_Entity): In Ada2012, an incomplete type is legal in
1720 access to subprogram declarations
1722 2010-10-11 Robert Dewar <dewar@adacore.com>
1724 * exp_ch6.adb: Code clean up.
1725 * exp_util.adb: Minor reformatting.
1727 2010-10-11 Arnaud Charlet <charlet@adacore.com>
1729 * sem_ch3.adb, exp_ch6.adb
1730 (Make_Build_In_Place_Call_In_Anonymous_Context,
1731 Make_Build_In_Place_Call_In_Assignment,
1732 Make_Build_In_Place_Call_In_Object_Declaration): Fix calls to
1733 Add_Task_Actuals_To_Build_In_Place_Call in case of No_Task_Hierarchy
1735 (Access_Definition): Add missing handling of No_Task_Hierarchy.
1737 2010-10-11 Javier Miranda <miranda@adacore.com>
1739 * exp_util.adb (Remove_Side_Effects): No action needed for renamings of
1740 class-wide expressions.
1742 2010-10-11 Arnaud Charlet <charlet@adacore.com>
1744 * xr_tabls.adb, sem_res.adb: Minor reformatting
1746 2010-10-11 Arnaud Charlet <charlet@adacore.com>
1748 * gnat_rm.texi, exp_attr.adb, sem_attr.adb, sem_attr.ads,
1749 snames.ads-tmpl (Analyze_Attribute, Expand_N_Attribute_Reference): Add
1750 handling of Attribute_Ref. Add missing blanks in some error messages.
1751 (Attribute_Ref, Name_Ref): Declare.
1752 Document 'Ref attribute.
1754 2010-10-11 Robert Dewar <dewar@adacore.com>
1756 * sem_attr.adb: Minor reformatting.
1758 2010-10-11 Javier Miranda <miranda@adacore.com>
1760 * sem_ch8.adb (Attribute_Renaming): Add missing check to avoid loading
1761 package System.Aux_Dec in VM platforms.
1763 2010-10-11 Arnaud Charlet <charlet@adacore.com>
1765 * sem_prag.adb (Process_Suppress_Unsuppress): Ignore
1766 Suppress/Unsuppress pragmas in codepeer mode.
1767 (Analyze_Pragma [Pragma_Suppress_All]): Do not generate error message
1769 * einfo.ads: Fix typo.
1771 2010-10-11 Emmanuel Briot <briot@adacore.com>
1773 * sinfo.adb: Use GNAT.HTable rather than System.HTable.
1774 * prj-nmsc.adb: Minor reformatting.
1776 2010-10-11 Thomas Quinot <quinot@adacore.com>
1778 * sem_attr.adb (Type_Key): Code simplification.
1780 2010-10-11 Tristan Gingold <gingold@adacore.com>
1782 * gcc-interface/utils2.c (maybe_wrap_malloc): Fix crash when allocating
1783 very large object on VMS.
1785 2010-10-11 Javier Miranda <miranda@adacore.com>
1787 * sem_ch10.adb (Analyze_With_Clause): Add missing test to ensure
1788 availability of attribute Instance_Spec.
1790 2010-10-11 Arnaud Charlet <charlet@adacore.com>
1792 * gnat1drv.adb (Adjust_Global_Switches): Disable codepeer mode if
1793 checking syntax only or in ASIS mode.
1795 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1797 * sem_ch6.adb (Check_Delayed_Subprogram): Abstract subprograms may also
1798 need a freeze node if some type in the profile has one.
1799 * gcc-interface/trans.c (case N_Abstract_Subprogram_Declaration): If
1800 entity has a freeze node, defer elaboration.
1802 2010-10-11 Emmanuel Briot <briot@adacore.com>
1804 * prj-nmsc.adb (Check_Aggregate_Project): Add support for finding all
1805 aggregated projects.
1807 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1809 * sem_res.adb (Resolve_Entry_Call): Generate 's' reference for entry
1811 * sem_ch6.adb: Diagnose additional error condition.
1813 2010-10-11 Bob Duff <duff@adacore.com>
1815 * par.adb (Par): Clarify wording of certain error messages.
1817 2010-10-11 Gary Dismukes <dismukes@adacore.com>
1819 * sem_disp.adb (Check_Dispatching_Operation): Revise test for warning
1820 about nondispatching subprograms to use In_Same_List (reducing use of
1823 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1825 * xr_tabls.adb, sem_res.adb, lib-xref.adb, lib-xref.ads: Use s for
1826 reference in a static call.
1828 2010-10-11 Steve Baird <baird@adacore.com>
1830 * exp_attr.adb (Expand_N_Attribute_Reference, case Type_Key): Type_Key
1831 attribute should always be transformed into a string literal in
1833 * par-ch4.adb: Type_Key attribute's type is String; update value of
1834 Is_Parameterless_Attribute constant to reflect this.
1835 * sem_attr.adb (Analyze_Attribute): Recognize Type_Key attribute and
1836 rewrite it as a string literal (attribute value is always known
1838 * snames.ads-tmpl: Add entries for Type_Key attribute.
1840 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1842 * lib-xref.adb (Output_References): Common handling for objects and
1843 formals of an anonymous access type.
1845 2010-10-11 Eric Botcazou <ebotcazou@adacore.com>
1847 * make.adb (Scan_Make_Arg): Also pass -O to both compiler and linker.
1849 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1851 * sem_ch6.adb: Fix check for illegal equality declaration in Ada2012
1853 2010-10-11 Gary Dismukes <dismukes@adacore.com>
1855 * sem_disp.adb (Check_Dispatching_Operation): When testing for issuing
1856 a warning about subprograms of a tagged type not being dispatching,
1857 limit this to cases where the tagged type and the subprogram are
1858 declared within the same declaration list.
1860 2010-10-11 Jerome Lambourg <lambourg@adacore.com>
1862 * projects.texi, prj-attr.adb: Add new attribute documentation_dir.
1864 2010-10-11 Bob Duff <duff@adacore.com>
1866 * par-ch9.adb, sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, impunit.adb,
1867 impunit.ads, sem_ch5.adb, sem_type.adb, exp_imgv.adb, exp_util.adb,
1868 switch-c.adb, exp_attr.adb, exp_ch9.adb, par-ch11.adb, usage.adb,
1869 sem_ch9.adb, sem_ch10.adb, scng.adb, checks.adb, sem_prag.adb,
1870 sem_ch12.adb, par-ch2.adb, freeze.adb, par-ch4.adb, sem_util.adb,
1871 sem_res.adb, sem_attr.adb, par-ch6.adb, exp_ch4.adb, exp_ch6.adb,
1872 sem_ch4.adb, exp_ch8.adb, par-ch10.adb, sem_ch6.adb, par-prag.adb,
1873 exp_disp.adb, par-ch12.adb, sem_ch8.adb, snames.adb-tmpl, opt.ads,
1874 exp_aggr.adb, sem_cat.adb, sem_ch13.adb, par-ch3.adb, exp_strm.adb,
1875 exp_cg.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb: Use Ada_2005
1876 instead of Ada_05 (Ada_Version_Type).
1878 2010-10-11 Bob Duff <duff@adacore.com>
1880 * sem_aggr.adb, impunit.adb, impunit.ads, switch-c.adb, usage.adb,
1881 sem_ch10.adb, sem_prag.adb, sem_ch12.adb, par-ch4.adb, par-ch6.adb,
1882 par-ch8.adb, exp_ch4.adb, sem_ch4.adb, sem_ch6.adb, par-prag.adb,
1883 opt.ads, par-ch3.adb, lib-xref.adb: Use Ada_2012 instead of Ada_12
1886 2010-10-11 Javier Miranda <miranda@adacore.com>
1888 * exp_util.adb (Safe_Prefixed_Reference): If the prefix is an explicit
1889 dereference then do not exclude dereferences of access-to-constant
1890 types to handle them as constant view of variables (and hence remove
1891 side effects when required).
1892 * sem_res.adb (Resolve_Slice): Ensure that side effects in the bounds
1893 are properly handled.
1895 2010-10-11 Robert Dewar <dewar@adacore.com>
1897 * sem_prag.adb, sem_aggr.adb, sprint.adb: Minor reformatting.
1899 2010-10-11 Javier Miranda <miranda@adacore.com>
1901 * exp_ch5.ads, exp_ch6.ads (Expand_N_Extended_Return_Statement): Moved
1903 (Expand_N_Simple_Return_Statement): Moved to exp_ch6.
1904 * exp_ch5.adb, exp_ch6.adb (Expand_Non_Function_Return): Moved to
1906 (Expand_Simple_Function_Return): Move to exp_ch6.
1907 (Expand_N_Extended_Return_Statement): Moved to exp_ch6.
1908 (Expand_N_Simple_Return_Statement): Moved to exp_ch6.
1910 2010-10-11 Robert Dewar <dewar@adacore.com>
1912 * snames.ads-tmpl: Add names for aspects.
1913 * aspects.ads, aspects.adb: New.
1914 * gcc-interface/Make-lang.in: Update dependencies.
1915 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1917 * exp_ch6.adb (Expand_Actuals): If an actual is the current instance of
1918 a task type, it must be replaced with a reference to Self.
1920 2010-10-11 Vincent Celier <celier@adacore.com>
1922 * adaint.h: Add prototype for function __gnat_create_output_file_new.
1924 2010-10-11 Javier Miranda <miranda@adacore.com>
1926 * sem_aggr.adb (Collect_Aggr_Bounds): Remove side effects of collected
1929 2010-10-11 Arnaud Charlet <charlet@adacore.com>
1931 * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Do not emit error
1932 for AI05-0033 in CodePeer mode.
1934 2010-10-11 Robert Dewar <dewar@adacore.com>
1936 * atree.h, atree.ads, atree.adb (Flag3): New flag (replaces Unused_1)
1937 * csinfo.adb: Aspect_Specifications is a new special field
1938 * einfo.adb (Flag3): New unused flag
1939 * exp_util.adb (Insert_Actions): Add processing for
1940 N_Aspect_Specification.
1941 * sem.adb: Add entry for N_Aspect_Specification.
1942 * sinfo.ads, sinfo.adb (N_Aspect_Specification): New node
1943 (Has_Aspect_Specifications): New flag
1944 (Permits_Aspect_Specifications): New function
1945 (Aspect_Specifications): New function
1946 (Set_Aspect_Specifications): New procedure
1947 * sprint.adb (Sprint_Node): Put N_At_Clause in proper alpha order
1948 (Sprint_Node): Add dummy entry for N_Aspect_Specification
1949 * treepr.adb (Flag3): New flag to be listed
1951 2010-10-11 Vincent Celier <celier@adacore.com>
1953 * adaint.c: Minor reformatting.
1955 2010-10-11 Robert Dewar <dewar@adacore.com>
1957 * sem_ch6.adb, s-htable.ads: Minor reformatting.
1959 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1961 * sem_ch4.adb (Analyze_Selected_Component): If the selector is
1962 invisible in an instantiation, and both the formal and the actual are
1963 private extensions of the same type, look for the desired component in
1964 the proper view of the parent type.
1966 2010-10-11 Vincent Celier <celier@adacore.com>
1968 * adaint.c (__gnat_number_of_cpus): Add implementation for Solaris,
1969 AIX, Tru64, Darwin, IRIX and HP-UX.
1971 2010-10-11 Robert Dewar <dewar@adacore.com>
1973 * a-textio.adb: Minor reformatting
1975 2010-10-11 Robert Dewar <dewar@adacore.com>
1977 * a-suesen.ads, a-suenst.ads,
1978 a-suesen.adb, a-suenst.adb,
1979 a-suewse.adb, a-suewst.adb,
1980 a-suewse.ads, a-suewst.ads,
1981 a-suezse.ads, a-suezst.ads,
1982 a-suezse.adb, a-suezst.adb: New name for string encoding packages.
1983 * impunit.adb: New names for string encoding units
1984 * Makefile.rtl: New names for string encoding units
1985 * rtsfind.ads: Minor code reorganization.
1987 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1989 * exp_ch5.adb: Code clean up.
1991 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1993 * sem_ch6.adb (Check_Limited_Return): Specialize warning on limited
1994 returns when in a generic context.
1995 (Analyze_Function_Return): ditto.
1997 2010-10-11 Robert Dewar <dewar@adacore.com>
1999 * s-multip.ads: Fix header.
2000 * sem_ch3.adb, s-multip.adb, a-tigeli.adb: Minor reformatting.
2002 2010-10-11 Vincent Celier <celier@adacore.com>
2004 * Makefile.rtl: Add s-multip.
2005 * adaint.c: New function __gnat_number_of_cpus, implemented for Linux,
2006 defaulting to 1 for other platforms.
2007 * adaint.h: New function __gnat_number_of_cpus.
2008 * impunit.adb (Non_Imp_File_Names_12): New file list for Ada 2012,
2009 with a single component "s-multip".
2010 * impunit.ads (Kind_Of_Unit): New enumerated value Ada_12_Unit for Ada
2012 * rtsfind.ads (RTU_Id): New enumerated value System_Multiprocessors
2013 * s-multip.ads, s-multip.adb: New Ada 2012 package.
2014 * sem_ch10.adb (Analyze_With_Clause): Check also Ada 2012 units.
2016 2010-10-11 Javier Miranda <miranda@adacore.com>
2018 * a-textio.adb: Move new implementation of Get_Line to a subunit.
2019 * a-tigeli.adb: New subunit containing the implementation of Get_Line.
2021 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2023 * sem_aux.adb: Code clean up.
2025 2010-10-11 Robert Dewar <dewar@adacore.com>
2027 * sem_ch3.adb, sem_aux.adb, sem_ch6.adb: Minor reformatting
2029 2010-10-11 Robert Dewar <dewar@adacore.com>
2031 * einfo.adb, atree.h, atree.ads, atree.adb: Define seven new flags
2032 Flag248-Flag254. Define new field Field29.
2034 2010-10-10 Olivier Hainque <hainque@adacore.com>
2035 Eric Botcazou <ebotcazou@adacore.com>
2037 * gcc-interface/lang.opt (gdwarf+): Remove.
2038 * gcc-interface/gigi.h (get_parallel_type): Likewise
2039 * gcc-interface/misc.c (gnat_dwarf_extensions): Likewise.
2040 (gnat_handle_option): Remove OPT_gdwarfplus case.
2041 (gnat_post_options): Remove setting of use_gnu_debug_info_extensions
2042 from gnat_dwarf_extensions.
2043 * gcc-interface/trans.c (gigi): Remove -gdwarf+ initializations.
2044 * gcc-interface/utils.c (get_parallel_type): Remove.
2046 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
2048 * gcc-interface/trans.c (gnat_to_gnu) <N_Not_In>: Use
2049 invert_truthvalue_loc instead of invert_truthvalue.
2050 * gcc-interface/utils2.c (build_binary_op) <NE_EXPR>: Likewise.
2051 (build_unary_op) <TRUTH_NOT_EXPR>: Likewise.
2053 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
2055 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
2056 assertion on the types of the parameters. Use KIND local variable.
2057 <E_Incomplete_Type>: Likewise.
2059 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
2061 * gcc-interface/ada-tree.h (DECL_BY_DOUBLE_REF_P): New macro.
2062 * gcc-interface/gigi.h (annotate_object): Add BY_DOUBLE_REF parameter.
2063 * gcc-interface/decl.c (annotate_object): Likewise and handle it.
2064 (gnat_to_gnu_entity): Adjust calls to annotate_object.
2065 (gnat_to_gnu_param): If fat pointer types are passed by reference on
2066 the target, pass them by explicit reference.
2067 * gcc-interface/misc.c (default_pass_by_ref): Fix type of constant.
2068 * gcc-interface/trans.c (Identifier_to_gnu): Do DECL_BY_DOUBLE_REF_P.
2069 (Subprogram_Body_to_gnu): Adjust call to annotate_object.
2070 (call_to_gnu): Handle DECL_BY_DOUBLE_REF_P.
2071 * gcc-interface/utils.c (convert_vms_descriptor): Add BY_REF parameter
2073 (build_function_stub): Iterate on the parameters of the subprogram in
2074 lieu of on the argument types. Adjust call to convert_vms_descriptor.
2076 2010-10-09 Eric Botcazou <ebotcazou@adacore.com>
2078 * gcc-interface/misc.c: Delete prototypes.
2079 (gnat_init_options): Use local variable.
2080 (lang_hooks): Move to the end of the file.
2082 2010-10-08 Joseph Myers <joseph@codesourcery.com>
2084 * gcc-interface/misc.c (gnat_init_options_struct): New. Split out
2085 from gnat_init_options.
2086 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
2088 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2090 * sem_aux.adb: Cleanup Is_Immutably_Limited_Type.
2092 2010-10-08 Robert Dewar <dewar@adacore.com>
2094 * exp_ch3.adb: Minor reformatting.
2095 * exp_ch5.adb: Add comment.
2097 2010-10-08 Robert Dewar <dewar@adacore.com>
2099 * sem_prag.adb (Check_Duplicate_Pragma): Check for entity match
2100 * gcc-interface/Make-lang.in: Update dependencies.
2101 * einfo.ads: Minor reformatting.
2103 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2105 * exp_ch5.adb, sem_ch3.adb, exp_ch7.adb, exp_util.adb, sem_aux.adb,
2106 sem_aux.ads, exp_ch4.adb, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
2107 exp_ch3.adb: Change Is_Inherently_Limited_Type to
2108 Is_Immutably_Limited_Type to accord with new RM terminology.
2109 * sem_aux.adb (Is_Immutably_Limited_Type): A type that is a descendant
2110 of a formal limited private type is not immutably limited in a generic
2113 2010-10-08 Robert Dewar <dewar@adacore.com>
2115 * sem_prag.adb (Check_Duplicate_Pragma): New procedure
2116 Add calls to this new procedure where appropriate
2118 2010-10-08 Vincent Celier <celier@adacore.com>
2120 * a-textio.adb (Get_Chunk): Code clean up.
2122 2010-10-08 Robert Dewar <dewar@adacore.com>
2124 * a-strbou.ads, a-strfix.adb, a-strfix.ads, a-strsea.adb, a-strsea.ads,
2125 a-strsup.adb, a-strsup.ads, a-strunb-shared.adb, a-strunb-shared.ads,
2126 a-strunb.adb, a-strunb.ads, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
2127 a-stwise.adb, a-stwise.ads, a-stwisu.adb, a-stwisu.ads,
2128 a-stwiun-shared.adb, a-stwiun-shared.ads, a-stwiun.adb, a-stwiun.ads,
2129 a-stzbou.ads, a-stzfix.adb, a-stzfix.ads, a-stzsea.adb, a-stzsea.ads,
2130 a-stzsup.adb, a-stzsup.ads, a-stzunb-shared.adb, a-stzunb-shared.ads,
2131 a-stzunb.adb, a-stzunb.ads (Find_Token): New version with From
2134 2010-10-08 Robert Dewar <dewar@adacore.com>
2136 * sem_cat.adb (Check_Categorization_Dependencies): Remote types
2137 packages can depend on preleborated packages.
2139 2010-10-08 Robert Dewar <dewar@adacore.com>
2141 * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Pragmas
2142 Interrupt_Handler and Attach_Handler not allowed in generics.
2144 2010-10-08 Robert Dewar <dewar@adacore.com>
2146 * ali.adb: Set Allocator_In_Body if AB parameter present on M line
2147 * ali.ads (Allocator_In_Body): New flag
2148 * bcheck.adb (Check_Consistent_Restrictions): Handle case of main
2149 program violating No_Allocators_After_Elaboration restriction.
2150 * gnatbind.adb (No_Restriction_List): Add entries for
2151 No_Anonymous_Allocators, and No_Allocators_After_Elaboration.
2152 * lib-load.adb: Initialize Has_Allocator flag
2153 * lib-writ.adb: Initialize Has_Allocator flag
2154 (M_Parameters): Set AB switch if Has_Allocator flag set
2155 * lib-writ.ads: Document AB flag on M line
2156 * lib.adb (Has_Allocator): New function
2157 (Set_Has_Allocator): New procedure
2158 * lib.ads (Has_Allocator): New function
2159 (Set_Has_Allocator): New procedure
2160 (Has_Allocator): New flag in Unit_Record
2161 * sem_ch4.adb (Analyze_Allocator): Add processing for
2162 No_Allocators_After_Elaboration.
2164 2010-10-08 Geert Bosch <bosch@adacore.com>
2166 * a-textio.adb (Get_Line): Rewrite to use fgets instead of fgetc.
2168 2010-10-08 Javier Miranda <miranda@adacore.com>
2170 * sem_prag.adb (Analyze_Pragma): Relax semantic rule of
2171 Java_Constructors because in the JRE library we generate occurrences
2172 in which the "this" parameter is not the first formal.
2174 2010-10-08 Robert Dewar <dewar@adacore.com>
2176 * par-ch3.adb: Minor reformatting.
2178 2010-10-08 Javier Miranda <miranda@adacore.com>
2180 * exp_disp.adb (Make_DT): Do not generate dispatch tables for CIL/Java
2183 2010-10-08 Robert Dewar <dewar@adacore.com>
2185 * par-ch8.adb (P_Use_Type_Clause): Recognize ALL keyword in Ada 2012
2187 * sinfo.adb (Use_Type_Clause): Add All_Present flag.
2188 * sinfo.ads (Use_Type_Clause): Add All_Present flag.
2189 * s-rident.ads: Add entry for No_Allocators_After_Elaboration,
2190 No_Anonymous_Allocators.
2192 2010-10-08 Vincent Celier <celier@adacore.com>
2194 * bindgen.adb (Gen_Restrictions_Ada): No new line after last
2195 restriction, so that the last comma is always replaced with a left
2198 2010-10-08 Javier Miranda <miranda@adacore.com>
2200 * sem_prag.adb (Analyze_Pragma): Add specific check on the type of the
2201 first formal of delegates.
2203 2010-10-08 Robert Dewar <dewar@adacore.com>
2205 * sem_aggr.adb: Minor reformatting.
2207 2010-10-08 Robert Dewar <dewar@adacore.com>
2209 * exp_imgv.adb (Expand_Image_Attribute): Handle special calling
2210 sequence for soft hyphen for Character'Image case.
2211 * rtsfind.ads (Image_Character_05): New entry
2212 * s-imgcha.adb (Image_Character_05): New procedurew
2213 * s-imgcha.ads (Image_Character_05): New procedure
2214 * s-imgwch.adb (Image_Wide_Character): Deal with Ada 2005 soft hyphen
2216 * s-valcha.adb (Value_Character): Recognize SOFT_HYPHEN for 16#AD#
2217 * sem_attr.adb (Eval_Attribute, case Width): Handle soft_hyphen name
2220 2010-10-08 Robert Dewar <dewar@adacore.com>
2222 * sem_attr.adb (Eval_Attribute, case Width): Avoid ludicrous long loop
2223 for case of Wide_[Wide_]Character.
2225 2010-10-08 Robert Dewar <dewar@adacore.com>
2227 * exp_ch3.adb: Minor reformating
2228 Minor code reorganization.
2230 2010-10-08 Javier Miranda <miranda@adacore.com>
2232 * sem_prag.adb (Analyze_Pragma): Add missing checks on wrong use of
2233 pragmas CIL_Constructor and Java_Constructor.
2234 * exp_ch3.adb (Expand_Freeze_Record_Type): Do not generate the
2235 predefined primitives for CIL/Java tagged types.
2237 2010-10-08 Robert Dewar <dewar@adacore.com>
2239 * sem_ch6.adb: Minor reformatting.
2241 2010-10-08 Robert Dewar <dewar@adacore.com>
2243 * gnat1drv.adb: Add call to Validate_Independence.
2244 * par-prag.adb: Add dummy entries for Independent,
2245 Independent_Componentsa.
2246 * sem_ch13.adb (Validate_Independence): New procedure
2247 (Initialize): Initialize address clause and independence check tables
2248 * sem_ch13.ads (Independence_Checks): New table
2249 (Validate_Independence): New procedure
2250 * sem_prag.adb: Add processing for pragma Independent[_Components]
2251 * snames.ads-tmpl: Add entries for pragma Independent[_Components]
2253 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2255 * sem_aggr.adb (Propagate_Discriminants): When expanding an aggregate
2256 component with box initialization, if the component is a variant record
2257 use the values of the discriminants to select the proper variant for
2258 further box initialization.
2260 2010-10-08 Thomas Quinot <quinot@adacore.com>
2262 * xsnames.adb: Remove obsolete file.
2263 * make.adb, sem_ch8.adb, einfo.ads: Minor reformatting.
2265 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2267 * exp_aggr.adb: Complete previous change.
2269 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2271 * sem_ch6.adb (Check_Return_Subtype): The subtype indication in an
2272 extended return must match statically the return subtype of the
2273 enclosing function if the type is an elementary type or if it is
2276 2010-10-08 Vincent Celier <celier@adacore.com>
2278 * prj-nmsc.adb (Add_Source): Report all duplicate units and source file
2279 names. Do not report the same duplicate unit several times.
2280 * prj.ads (Source_Data): New Boolean component Duplicate_Unit,
2281 defaulted to False, to avoid reporting the same unit as duplicate
2284 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2286 * sem_aggr.adb (Resolve_Array_Aggregate): If the expression in an
2287 others choice is a literal, analyze it to enable later optimizations.
2288 * exp_aggr.adb (Expand_Record_Aggregate): An aggregate with static size
2289 and components can be handled by the backend even if it is of a limited
2292 2010-10-08 Arnaud Charlet <charlet@adacore.com>
2294 * a-rttiev.adb (task Timer): Since this package may be elaborated
2295 before System.Interrupt, we need to call Setup_Interrupt_Mask
2296 explicitly to ensure that this task has the proper signal mask.
2298 2010-10-08 Robert Dewar <dewar@adacore.com>
2300 * freeze.adb (Freeze_Entity): For array case, move some processing for
2301 pragma Pack, Component_Size clause and atomic/volatile components here
2302 instead of trying to do the job in Sem_Ch13 and Freeze.
2303 * layout.adb: Use new Addressable function
2304 * sem_ch13.adb (Analyze_Attribute_Representation_Clause, case
2305 Component_Size): Move some handling to freeze point in
2306 Freeze.Freeze_Entity.
2307 * sem_prag.adb (Analyze_pragma, case Pack): Move some handling to
2308 freeze point in Freese.Freeze_Entity.
2309 * sem_util.ads, sem_util.adb (Addressable): New function.
2311 2010-10-08 Robert Dewar <dewar@adacore.com>
2313 * sprint.adb: Minor reformatting.
2315 2010-10-08 Javier Miranda <miranda@adacore.com>
2317 * exp_ch4.adb (Real_Range_Check): Declare temporary as constant.
2319 2010-10-08 Robert Dewar <dewar@adacore.com>
2321 * sem_ch3.adb: Minor reformatting.
2323 2010-10-08 Vincent Celier <celier@adacore.com>
2325 * ali-util.adb (Get_File_Checksum): Make sure that external_as_list is
2326 not a reserved word.
2327 * prj-proc.adb (Expression): Process string list external references.
2328 * prj-strt.adb (External_Reference): Parse external_as_list external
2330 * prj-tree.ads (Expression_Kind_Of): Allowed for N_External_Value nodes
2331 (Set_Expression_Kind_Of): Ditto
2332 * prj.adb (Initialize): Set external_as_list as a reserved word
2333 * projects.texi: Document new string external reference
2335 * scans.ads (Token_Type): New token Tok_External_As_List
2336 * snames.ads-tmpl: New standard name Name_External_As_List
2338 2010-10-08 Thomas Quinot <quinot@adacore.com>
2340 * sem_prag.adb: Minor reformatting.
2342 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2344 * sem_ch3.adb (Derived_Type_Declaration): In the private part of an
2345 instance, it is legal to derive from a non-limited actual when the
2346 formal type is untagged limited.
2347 * sem_ch12.adb (Instantiate_Type): For a formal private type, use
2348 analyzed formal as Generic_Parent_Type, to simplify later checks.
2350 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2352 * sem_res.adb (Insert_Default): If default value is already a
2353 raise_constraint_error do not rewrite it as new raise node, to prevent
2354 infinite loops in the warning removal machinery.
2356 2010-10-08 Robert Dewar <dewar@adacore.com>
2358 * sem_util.adb, sem_prag.adb: Minor reformatting
2360 2010-10-08 Hristian Kirtchev <kirtchev@adacore.com>
2362 * gnat_rm.texi: Remove the section on pragma Implemented_By_Entry.
2363 Add section on pragma Implemented.
2365 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2367 * sem_ch3.adb (Derive_Subprogram): If an abstract extension has a
2368 concrete parent with a concrete constructor, the inherited constructor
2369 is abstract even if the derived type is a null extension.
2371 2010-10-08 Thomas Quinot <quinot@adacore.com>
2373 * sem_ch4.adb: Minor reformatting.
2375 2010-10-08 Hristian Kirtchev <kirtchev@adacore.com>
2377 * einfo.adb: Flag 232 (formerly Implemented_By_Entry) is now unused.
2378 (Implemented_By_Entry): Removed.
2379 (Set_Implemented_By_Entry): Removed.
2380 (Write_Entity_Flags): Remove the output for Implemented_By_Entry.
2381 * einfo.ads: Remove Implemented_By_Entry and its usage in entities.
2382 (Implemented_By_Entry): Removed along with its associated pragma.
2383 (Set_Implemented_By_Entry): Removed along with its associated pragma.
2384 * exp_ch9.adb: Alphabetize with and use clauses of Exp_Ch9.
2385 (Build_Dispatching_Call_Equivalent): New routine.
2386 (Build_Dispatching_Requeue): New routine.
2387 (Build_Dispatching_Requeue_To_Any): New routine.
2388 (Build_Normal_Requeue): New routine.
2389 (Build_Skip_Statement): New routine.
2390 (Expand_N_Requeue_Statement): Rewritten. The logic has been split into
2391 several subroutines.
2392 * par-prag.adb: Replace Pragma_Implemented_By_Entry by
2394 * sem_ch3.adb (Check_Abstract_Overriding): Perform checks concerning
2396 (Check_Pragma_Implemented): New routines.
2397 (Inherit_Pragma_Implemented): New routine.
2398 * sem_ch9.adb (Analyze_Requeue): Update the predicate which detects a
2399 dispatching requeue.
2400 * sem_prag.adb: Update array Sig_Flags by removing Implemented_By_Entry
2401 and adding Implemented.
2402 (Ada_2012_Pragma): New routine.
2403 (Analyze_Pragma, case Implemented): Perform all necessary checks
2404 concerning pragma Implemented and register the pragma as a
2405 representation item with the procedure_LOCAL_NAME.
2406 (Analyze_Pragma, case Implemented_By_Entry): Removed.
2407 * sem_util.adb (Implementation_Kind): New routine.
2408 * sem_util.ads (Implementation_Kind): New routine.
2409 * snames.ads-tmpl: Remove Name_Implemented_By_Entry and add
2410 Name_Implemented. Remove pragma name Pragma_Implemented_By_Entry and
2411 add Pragma_Implemented. Add special names By_Any, By_Entry and
2412 By_Protected_Procedure.
2414 2010-10-08 Javier Miranda <miranda@adacore.com>
2416 * exp_ch3.adb (Expand_Freeeze_Record_Type): Code cleanup: remove local
2417 variable Has_Static_DT by invocation of function Building_Static_DT.
2419 2010-10-08 Vincent Celier <celier@adacore.com>
2421 * g-dirope.adb (Remove_Dir): Do not change the current directory when
2422 doing a recursive remove of a subdirectory.
2424 2010-10-08 Javier Miranda <miranda@adacore.com>
2426 * exp_ch6.ad (Freeze_Subprogram): Factorize code.
2427 * exp_disp.adb (Make_Secondary_DT): Factorize code.
2428 (Make_DT): Factorize code.
2430 2010-10-08 Robert Dewar <dewar@adacore.com>
2432 * sem_ch4.adb: Minor reformatting.
2434 2010-10-08 Robert Dewar <dewar@adacore.com>
2436 * sem_ch6.adb (Check_Conformance): Check null exclusion match for full
2439 2010-10-08 Thomas Quinot <quinot@adacore.com>
2441 * sem_ch12.adb (Instantiate_Object): Rename Formal_Id to Gen_Obj, for
2442 consistency with Gen_T in Instantiate_Type.
2443 Introduce constant A_Gen_Obj to avoid repeated queries for
2444 Defining_Identifier (Analyzed_Formal).
2446 2010-10-08 Vincent Celier <celier@adacore.com>
2448 * prj-nmsc.adb: Minor comment fix.
2450 2010-10-07 Robert Dewar <dewar@adacore.com>
2452 * sem_prag.adb, sem_ch13.adb: Implement AI05-0012-1/02.
2453 * gcc-interface/Make-lang.in: Update dependencies.
2455 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2457 * sem_ch12.ad: (Instantiate_Object): For an in-out formal of a child
2458 unit, if the type of the formal is declared in a parent unit and is not
2459 a formal itself, the actual must be located from an enclosing parent
2460 instance by normal visibility.
2462 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2464 * sem_ch4.adb (Analyze_Allocator): In Ada 2012, a null_exclusion
2465 indicator is illegal for an uninitialized allocator.
2467 2010-10-07 Robert Dewar <dewar@adacore.com>
2469 * sem_prag.adb (Analyze_Attribute_Definition_Clause, case
2470 Component_Size): Complete previous change.
2472 2010-10-07 Vincent Celier <celier@adacore.com>
2474 * scng.adb (Scan): Call Accumulate_Token_Checksum for Tok_Identifier,
2475 even for keywords, to avoid having the checksum to depend on the Ada
2478 2010-10-07 Gary Dismukes <dismukes@adacore.com>
2480 * sem_aggr.adb, sem_ch12.adb, sem_ch6.adb, par-ch5.adb,
2481 exp_ch3.adb: Minor reformatting.
2483 2010-10-07 Robert Dewar <dewar@adacore.com>
2485 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
2486 Component_Size): It is now illegal to give an incorrect component size
2487 clause in the case of aliased or atomic components.
2488 * sem_prag.adb (Analyze_Pragma, case Pack): It is now illegal to give
2489 an effective pragma Pack in the case of aliased or atomic components.
2491 2010-10-07 Steve Baird <baird@adacore.com>
2493 * exp_ch4.adb (Expand_N_Allocator): Do not bypass expansion
2494 in the case of a violation of an active No_Task_Hierarchy restriction.
2496 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2498 * sem_ch12.adb (Validate_Derived_Type_Instance): If a formal derived
2499 type is non-limited, an actual for it cannot be limited.
2501 2010-10-07 Robert Dewar <dewar@adacore.com>
2503 * einfo.ads (No_Pool_Assigned): Update documentation.
2504 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
2505 Storage_Size): We only set No_Pool_Assigned if the expression is a
2506 static constant and zero.
2507 * sem_res.adb (Resolve_Allocator): Allocation from empty storage pool
2508 should be an error not a warning.
2510 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2512 * exp_aggr.adb (Expand_Array_Aggregate): Recognize additional cases
2513 where an aggregate in an assignment can be built directly into the
2514 target, and does not require the creation of a temporary that may
2517 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2519 * sem_aggr.adb (Analyze_Record_Aggregate): In Ada2012, a choice list
2520 in a record aggregate can correspond to several components of
2521 anonymous access types, as long as the designated subtypes match.
2523 2010-10-07 Robert Dewar <dewar@adacore.com>
2525 * gnat_rm.texi, exp_util.adb, sinfo.adb, sinfo.ads, sem_ch12.adb,
2526 sem.adb, gnat_ugn.texi, sem_util.ads, par-ch6.adb, targparm.ads,
2527 restrict.adb, sem_ch6.adb, sem_ch6.ads, sprint.adb, i-c.ads: Change
2528 spelling parametrize(d) => parameterize(d).
2530 2010-10-07 Robert Dewar <dewar@adacore.com>
2532 * sem_ch12.adb: Add comment.
2533 * sem_ch6.adb: Minor reformatting.
2535 2010-10-07 Robert Dewar <dewar@adacore.com>
2537 * par-ch3.adb, par-ch6.adb, par-ch7.adb, par-ch9.adb, par-ch10.adb: Add
2538 Pexp to Pf_Rec constants
2539 (P_Subprogram): Expression is always enclosed in parentheses
2540 * par.adb (Pf_Rec): add Pexp flag for parametrized expression
2541 * sinfo.ads (N_Parametrized_Expression): Expression must be in parens
2543 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2545 * sem_ch6.adb (Analyze_Subprogram_Specification): Implement Ada2012
2546 checks on functions that return an abstract type or have a controlling
2547 result whose designated type is an abstract type.
2548 (Check_Private_Overriding): Implement Ada2012 checks on functions
2549 declared in the private part, if an abstract type is involved.
2550 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): In Ada2012,
2551 reject a generic function that returns an abstract type.
2552 * exp_ch5.adb (Expand_Simple_Function_Return): in Ada2012, if a
2553 function has a controlling access result, check that the tag of the
2554 return value matches the designated type of the return expression.
2556 2010-10-07 Robert Dewar <dewar@adacore.com>
2558 * par-ch6.adb: Fix error in handling of parametrized expressions.
2559 * par-ch4.adb (P_Name): Allow qualified expression as name in Ada 2012
2561 (P_Simple_Expression): Better message for qualified expression prefix
2562 * s-crc32.adb: Minor reformatting.
2563 * exp_intr.adb (Expand_Unc_Deallocation): Remove test for empty
2564 storage pool (this test is moved to Sem_Intr).
2565 * sem_intr.adb (Check_Intrinsic_Call): Add check for deallocation from
2566 empty storage pool, moved here from Exp_Intr and made into error.
2567 (Check_Intrinsic_Call): Remove assumption in generating not-null free
2568 warning that the name of the instantiation is Free.
2569 * sinput.adb (Tree_Read): Document use of illegal free call allowed in
2571 * types.ads: Remove storage size clauses from big types (since we may
2572 need to do deallocations, which are now illegal for empty pools).
2574 2010-10-07 Sergey Rybin <rybin@adacore.com>
2576 * gnat_ugn.texi: Add missing word.
2578 2010-10-07 Robert Dewar <dewar@adacore.com>
2580 * exp_util.adb (Insert_Actions): Add handling of
2581 N_Parametrized_Expression.
2582 * par-ch6.adb (P_Subprogram): Add parsing of parametrized expression
2583 * sem.adb: Add entry for N_Parametrized_Expression
2584 * sem_ch6.adb (Analyze_Parametrized_Expression): New procedure
2585 * sem_ch6.ads (Analyze_Parametrized_Expression): New procedure
2586 * sinfo.ads, sinfo.adb: Add N_Parametrized_Expression
2587 * sprint.adb (Sprint_Node): Add handling for N_Parametrized_Expression
2588 * par-ch4.adb: Minor reformatting.
2590 2010-10-07 Robert Dewar <dewar@adacore.com>
2592 * scng.adb (Skip_Other_Format_Characters): New procedure
2593 (Start_Of_Wide_Character): New procedure
2594 (Scan): Use Start_Of_Wide_Character where appropriate
2595 (Scan): Improve error message for other_format chars in identifier
2596 (Scan): Allow other_format chars between tokens
2598 2010-10-07 Javier Miranda <miranda@adacore.com>
2600 * exp_util.adb (Safe_Prefixed_Reference): When removing side effects,
2601 Add missing support for explicit dereferences.
2603 2010-10-07 Robert Dewar <dewar@adacore.com>
2605 * par-ch10.adb, par-ch3.adb, par.adb: Minor reformatting.
2607 2010-10-07 Robert Dewar <dewar@adacore.com>
2609 * exp_disp.adb, exp_dist.adb, exp_util.ads, exp_util.adb,
2610 exp_ch11.adb: Rename Full_Qualified_Name to Fully_Qualified_Name_String
2611 * sem_util.adb, sem_util.ads (Full_Qualified_Name): Moved to
2612 Exp_Util.Fully_Qualified_Name_String.
2614 2010-10-07 Robert Dewar <dewar@adacore.com>
2616 * rtsfind.ads: Add entry for Ada.Real_Time.Timing_Events.Set_Handler
2617 * sem_res.adb (Resolve_Call): A call to
2618 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
2619 No_Relative_Delay (AI-0211).
2621 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2623 * sem_ch10.adb: Small change in error message.
2625 2010-10-07 Robert Dewar <dewar@adacore.com>
2627 * tbuild.ads: Minor reformatting.
2629 2010-10-07 Robert Dewar <dewar@adacore.com>
2631 * gnatcmd.adb, make.adb, prj-nmsc.adb, sem_elab.adb: Minor reformatting
2633 2010-10-07 Arnaud Charlet <charlet@adacore.com>
2635 * exp_ch11.adb (Expand_N_Exception_Declaration): Update comments.
2637 2010-10-07 Robert Dewar <dewar@adacore.com>
2639 * sem_res.adb: Minor reformatting
2641 2010-10-07 Olivier Ramonat <ramonat@adacore.com>
2643 * gnat_ugn.texi: Minor editing.
2644 * opt.ads: Document that scripts rely on specific formats in opt.ads
2646 2010-10-07 Robert Dewar <dewar@adacore.com>
2648 * a-wichun.ads, a-wichun.adb (To_Lower_Case): New function
2649 (To_Upper_Case): Fix to be inverse of To_Lower_Case
2650 * a-zchuni.ads, a-zchuni.adb (To_Lower_Case): New function
2651 (To_Upper_Case): Fix to be inverse of To_Lower_Case
2653 2010-10-07 Robert Dewar <dewar@adacore.com>
2655 * a-wichha.adb, a-wichha.ads, a-zchhan.adb, a-zchhan.ads: New file.
2656 * impunit.adb: Add entries for a-wichha/a-zchhan
2657 * Makefile.rtl: Add entries for a-wichha/a-zchhan
2659 2010-10-07 Vincent Celier <celier@adacore.com>
2661 * make.adb (Check): Call Check_Source_Info_In_ALI with Project_Tree
2662 * makeutl.adb (Check_Source_Info_In_ALI): If there is at least one
2663 replaced source, check that none of the replaced sources are in the
2665 * makeutl.ads (Check_Source_Info_In_ALI): New parameter Tree
2666 * prj-nmsc.adb (Remove_Source): New parameter Tree. If the source is
2667 replaced with a source with a different file name, put it in the hash
2668 table Replaced_Sources.
2669 (Add_Source): Call Remove_Source with Data.Tree. If there is at least
2670 one replaced source, check if it has the same file name as the current
2671 source; if it has, remove it from the hash table Replaced_Sources.
2672 * prj.adb (Reset): Reset hash table Tree.Replaced_Sources
2673 * prj.ads (Replaced_Source_HTable): New hash table
2674 (Project_Tree_Data): New components Replaced_Sources and
2675 Replaced_Source_Number.
2677 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2679 * sem_elab.adb (Check_A_Call): After inserting elaboration check, set
2680 proper flag to prevent a double elaboration check on the same call.
2681 * exp_util.adb (Insert_Actions): If the enclosing node is an
2682 Expression_With_Actions and it has been analyzed already, find
2683 insertion point further up in the tree.
2685 2010-10-07 Hristian Kirtchev <kirtchev@adacore.com>
2687 * sem_ch13.adb (Analyze_Record_Representation_Clause): Alphabetize all
2688 local variables. Remove the general restriction which prohibits the
2689 application of record rep clauses to Unchecked_Union types. Add Ada
2690 2012 check to detect improper naming of an Unchecked_Union
2691 discriminant in record rep clause.
2692 * sem_prag.adb: Add with and use clause for Exp_Ch7.
2693 (Analyze_Pragma): Unchecked_Union case: Propagate the Unchecked_Union
2694 type to all invocations of Check_Component and Check_Variant.
2695 (Check_Component): Add formal parameters UU_Typ and In_Variant_Part.
2696 Rewritten. Add Ada 2012 check to detect improper use of formal
2697 private types and private extensions as component types of an
2698 Unchecked_Union declared inside a generic body.
2699 (Check_Variant): Add formal parameter UU_Typ. Propagate the
2700 Unchecked_Union type to all calls of Check_Component. Signal that the
2701 current component comes from the variant part of an Unchecked_Union
2703 (Inside_Generic_Body): New routine.
2705 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2707 * exp_ch4.adb (Expand_Composite_Equality): When looking for a primitive
2708 equality operation for a record component, verify that both formals
2709 have the same type, and the result type is boolean.
2711 2010-10-07 Vincent Celier <celier@adacore.com>
2713 * gnatcmd.adb (Check_Files): When looking for the .ci file for a
2714 binder generated file, look for both b~xxx and b__xxx as gprbuild
2715 always uses b__ as the prefix of such files.
2717 2010-10-07 Thomas Quinot <quinot@adacore.com>
2719 * sem_res.adb: Minor reformatting.
2721 2010-10-07 Arnaud Charlet <charlet@adacore.com>
2723 * debug.adb: Update -gnatd.J documentation.
2725 2010-10-07 Robert Dewar <dewar@adacore.com>
2727 * gnat_rm.texi: Document handling of invalid values
2728 * s-utf_32.ads, s-utf_32.adb (UTF_To_Lower_Case): Fix implementation
2730 (UTF_To_Upper_Case): New function.
2732 2010-10-07 Robert Dewar <dewar@adacore.com>
2734 * sem_attr.adb: Minor reformatting.
2735 * einfo.ads, einfo.adb (Is_Ada_2012_Only): New flag
2736 * itypes.adb (Create_Null_Excluding_Itype): Set Is_Ada_2012_Only flag
2738 * lib-xref.adb (Generate_Reference): Warn on use of Ada 2012 entity in
2740 * opt.ads (Warn_On_Ada_2012_Compatibility): New flag
2741 * sem_ch3.adb (Analye_Subtype_Declaration): Inherit Is_Ada_2012_Only
2742 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Is_Ada_2012_Only
2744 * sem_prag.adb (Analyze_Pragma, case Ada_12/Ada_2012): Allow form with
2746 * sem_type.adb (Disambiguate): Deal with Is_Ada_2012_Only.
2747 * sem_warn.adb (Warn_On_Ada_2012_Compatibility): New flag, treated
2750 2010-10-07 Javier Miranda <miranda@adacore.com>
2752 * a-tags.ads: Use new support for pragma Ada_2012 with function
2755 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2757 * par-ch5.adb (P_Sequence_Of_Statements): In Ada2012 a label can end a
2758 sequence of statements.
2760 2010-10-07 Vincent Celier <celier@adacore.com>
2762 * gnatcmd.adb (Check_Files): Only add a .ci files if it exists
2764 2010-10-07 Javier Miranda <miranda@adacore.com>
2766 * a-tags.ads, a-tags.adb (Type_Is_Abstract): New subprogram.
2767 * rtsfind.ads (RE_Type_Is_Abstract): New entity.
2768 * exp_disp.adb (Make_DT): Initialize TSD component Type_Is_Abstract.
2770 2010-10-07 Arnaud Charlet <charlet@adacore.com>
2772 * sem_ch12.adb (Mark_Context): Removed, no longer needed.
2773 (Analyze_Package_Instantiation): No longer analyze systematically a
2774 generic body in CodePeer mode.
2775 * freeze.adb, sem_attr.adb: Update comments.
2777 2010-10-05 Robert Dewar <dewar@adacore.com>
2779 * par-ch5.adb (Test_Statement_Required): Allow all pragmas in Ada 2012
2782 2010-10-05 Pascal Obry <obry@adacore.com>
2784 * gnat_rm.texi: Fix typo.
2786 2010-10-05 Arnaud Charlet <charlet@adacore.com>
2788 * gnat_ugn.texi: Add note about identifiers with same name and
2791 2010-10-05 Robert Dewar <dewar@adacore.com>
2793 * sem_ch4.adb: Minor reformatting.
2794 * a-direct.ads: Minor comment update.
2796 2010-10-05 Javier Miranda <miranda@adacore.com>
2798 * sem_ch3.adb (Add_Internal_Interface_Entities): Removing code that is
2799 no longer required after change in New_Overloaded_Entity.
2800 * sem_ch6.adb (New_Overloaded_Entity): Code reorganization to isolate
2801 the fragment of code that handles derivations of interface primitives.
2802 Add missing dependence on global variable Inside_Freezing_Actions to
2803 ensure the correct management of internal interface entities.
2804 * sem_ch13.adb (Analyze_Freeze_Entity): Add missing increase/decrease
2805 of the global variable Inside_Freezing_Actions to ensure that internal
2806 interface entities are well handled by New_Overloaded_Entity.
2807 * sem_disp.adb (Find_Primitive_Covering_Interface): Add documentation
2808 and complete the algorithm to catch hidden primitives derived of
2809 private type that covers the interface.
2810 * sem_disp.ads (Find_Primitive_Covering_Interface): Add missing
2813 2010-10-05 Robert Dewar <dewar@adacore.com>
2815 * prj-util.adb, prj-util.ads, prj.ads, s-vxwext-rtp.adb, sem_ch4.adb,
2816 sem_ch7.adb, sem_res.adb, sem_type.adb: Minor reformatting.
2817 Minor code reorganization (use Nkind_In).
2819 2010-10-05 Ed Schonberg <schonberg@adacore.com>
2821 * sem_ch10.adb (Analyze_Task_Body_Stub): Diagnose duplicate stub for
2824 2010-10-05 Vincent Celier <celier@adacore.com>
2826 * gnatbind.adb: If the main library file is not for a suitable main
2827 program, change the error message.
2829 2010-10-05 Vincent Celier <celier@adacore.com>
2831 * a-direct.ads: Minor spelling error fixes in comments.
2832 * gnat_rm.texi: Add three entries in "Implementation Defined
2833 Characteristics" for the interpretations of the Form parameters in
2836 2010-10-05 Robert Dewar <dewar@adacore.com>
2838 * exp_ch3.adb, exp_ch5.adb, exp_disp.adb, exp_dist.adb, gnatlink.adb,
2839 makeutl.adb, par-ch6.adb, prj-dect.adb, prj-env.adb, prj-env.ads,
2840 prj-ext.adb, prj-nmsc.adb, prj-part.adb, prj-pp.ads: Minor code
2844 2010-10-05 Ed Schonberg <schonberg@adacore.com>
2846 * sem_res.adb (Check_Parameterless_Call): If the prefix of 'Address is
2847 an explicit dereference of an access to function, the prefix is not
2848 interpreted as a parameterless call.
2850 2010-10-05 Ed Schonberg <schonberg@adacore.com>
2852 * exp_attr.adb: For 'Read and 'Write, use full view of base type if
2855 2010-10-05 Vincent Celier <celier@adacore.com>
2857 * make.adb (Switches_Of): Allow wild cards in index of attributes
2859 * prj-util.adb (Value_Of): When Allow_Wildcards is True, use the index
2860 of the associative array as a glob regular expression.
2861 * prj-util.ads (Value_Of (Index, In_Array)): New Boolean parameter
2862 Allow_Wildcards, defaulted to False.
2863 (Value_Of (Name, Attribute_Or_Array_Name)): Ditto
2864 * projects.texi: Document that attribute Switches (<file name>) may
2865 use wild cards in the index.
2867 2010-10-05 Robert Dewar <dewar@adacore.com>
2869 * a-direct.adb, a-direct.ads, back_end.adb, checks.adb,
2870 einfo.adb: Minor reformatting.
2871 * debug.adb: Remove obsolete documentation for d.Z flag.
2873 2010-10-05 Vincent Celier <celier@adacore.com>
2875 * vms_data.ads: Add VMS qualifier /SRC_INFO= corresponding to gnatmake
2876 switch --create-info-file=.
2877 * gnat_ugn.texi: Add documentation for new gnatmake switch
2880 2010-10-05 Ed Schonberg <schonberg@adacore.com>
2882 * sem_ch3.adb: Do not elaborate type definition if syntax error.
2884 2010-10-05 Javier Miranda <miranda@adacore.com>
2886 * sprint.adb (Sprint_Node_Actual): Improve output of subprogram bodies
2887 to generate the full-qualified names of its corresponding spec.
2888 This facilitates locating the corresponing body when reading
2891 2010-10-05 Thomas Quinot <quinot@adacore.com>
2893 * exp_dist.adb (Make_Helper_Function_Name): For a tagged type, use
2894 canonical name without serial number only if the helper is becoming a
2895 primitive of the type.
2897 2010-10-05 Javier Miranda <miranda@adacore.com>
2899 * exp_disp.adb (Make_DT): Minor code reorganization.
2901 2010-10-05 Ed Schonberg <schonberg@adacore.com>
2903 * par-ch6.adb: improve recovery with extra paren in function spec.
2905 2010-10-05 Quentin Ochem <ochem@adacore.com>
2907 * prj-tree.ads: Project_Path is now aliased.
2909 2010-10-05 Thomas Quinot <quinot@adacore.com>
2911 * checks.adb: Minor reformatting.
2913 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
2915 * mlib-tgt-specific-mingw.adb (No_Argument_List): Delete.
2916 (Shared_Libgcc): New aliased variable.
2917 (Shared_Libgcc_Switch): New constant.
2918 (Build_Dynamic_Library): Pass Shared_Libgcc_Switch to the compiler
2919 * gcc-interface/Makefile.in (gnatlib-shared-win32): Pass -shared-libgcc
2921 * gcc-interface/Make-lang.in: Update dependencies.
2923 2010-10-05 Vincent Celier <celier@adacore.com>
2925 * prj-part.adb (Parse_Simple_Project): When checking if a child project
2926 imports its parent project, also look in projects being extended by
2929 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
2931 * gnat_ugn.texi: Adjust instructions in G.10 Building DLLs with GNAT.
2933 2010-10-05 Javier Miranda <miranda@adacore.com>
2935 * exp_cg.adb (Slot_Number): Add support to handle aliased entities.
2936 (Generate_CG_Output): Switch -gnatd.Z is no longer needed to
2937 activate this output.
2939 2010-10-05 Arnaud Charlet <charlet@adacore.com>
2941 * back_end.adb (Call_Back_End): Generate an error message when scil
2942 generation is enabled, and no scil back-end (by default) is available.
2944 2010-10-05 Javier Miranda <miranda@adacore.com>
2946 * debug.adb: Update documentation since -gnatd.Z is no longer required
2947 to generate the call-graph information.
2949 2010-10-05 Javier Miranda <miranda@adacore.com>
2951 * exp_ch5.adb (Expand_Simple_Function_Return): Rewrite expansion of a
2952 runtime access check by an equivalent expansion that causes
2953 no problems in the VM backend. The original expansion was
2954 not good for the VM backends because when Tagged_Type_Expansion
2955 is disabled the attribute Access_Disp_Table is not available.
2957 2010-10-05 Ed Schonberg <schonberg@adacore.com>
2959 * sem_type.adb (Covers): In a dispatching context, T1 covers T2 if T2
2960 is class-wide and T1 is its specific type.
2962 2010-10-05 Ed Schonberg <schonberg@adacore.com>
2964 * einfo.adb: Add guard to Is_String_Type to prevent cascaded errors.
2966 2010-10-05 Vincent Celier <celier@adacore.com>
2968 * back_end.ads: Minor spelling error correction.
2970 2010-10-05 Arnaud Charlet <charlet@adacore.com>
2972 * switch-c.adb, gnat1drv.adb (Scan_Front_End_Switches): Disable
2973 warnings when -gnatC is specified here so that warnings can be
2974 re-enabled explicitly.
2975 (Adjust_Global_Switches): No longer suppress warnings.
2977 2010-10-05 Vincent Celier <celier@adacore.com>
2979 * makeutl.adb: Minor reformatting.
2981 2010-10-05 Ed Schonberg <schonberg@adacore.com>
2983 * sem_ch4.adb: add guard in Analyze_One_Call to prevent crash when a
2984 non-discrete type appears as an actual in a call.
2986 2010-10-05 Vincent Celier <celier@adacore.com>
2988 * make.adb (Scan_Make_Arg): Take into account new switch
2990 * makeusg.adb: Add line for new switch --source-info=file.
2991 * makeutl.ads (Source_Info_Option): New constant String for new builder
2993 * prj-conf.adb: Put subprograms in alphabetical order
2994 (Process_Project_And_Apply_Config): Read/write an eventual source info
2996 * prj-nmsc.adb (Look_For_Sources.Get_Sources_From_Source_Info): New
2998 (Look_For_Sources): If a source info file was successfully read, get
2999 the source data from the data read from the source info file.
3000 * prj-util.adb (Source_Info_Table): New table
3001 (Source_Info_Project_HTable): New hash table
3002 (Create): New procedure
3003 (Put (File), Put_Line): New procedures
3004 (Write_Source_Info_File): New procedure
3005 (Read_Source_Info_File): New procedure
3006 (Initialize): New procedure
3007 (Source_Info_Of): New procedure
3008 (Next): New procedure
3009 (Close): When file is an out file, fail if the buffer cannot be written
3010 or if the file cannot be close successfully.
3011 (Get_Line): Fail if file is an out file
3012 * prj-util.ads (Create): New procedure
3013 (Put (File), Put_Line): New procedures
3014 (Write_Source_Info_File): New procedure
3015 (Read_Source_Info_File): New procedure
3016 (Source_Info_Data): New record type
3017 (Source_Info_Iterator): New private type
3018 (Initialize): New procedure
3019 (Source_Info_Of): New procedure
3020 (Next): New procedure
3021 * prj.ads (Project_Tree_Data): New components Source_Info_File_Name and
3022 Source_Info_File_Exists.
3024 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3026 * exp_ch4.adb: Fix typo.
3028 2010-10-05 Thomas Quinot <quinot@adacore.com>
3030 * lib-writ.adb: Minor reformatting.
3032 2010-10-05 Javier Miranda <miranda@adacore.com>
3034 * sem_ch3.adb (Access_Definition): Remove useless code.
3036 2010-10-05 Emmanuel Briot <briot@adacore.com>
3038 * prj-env.adb, prj-env.ads (Set_Path): New subprogram.
3039 (Deep_Copy): Removed, not used.
3041 2010-10-05 Javier Miranda <miranda@adacore.com>
3043 * sem_ch3.adb (Add_Internal_Interface_Entities): Code reorganization:
3044 move code that searches in the list of primitives of a tagged type for
3045 the entity that will be overridden by user-defined routines.
3046 * sem_disp.adb (Find_Primitive_Covering_Interface): Move here code
3047 previously located in routine Add_Internal_Interface_Entities.
3048 * sem_disp.ads (Find_Primitive_Covering_Interface): Update docs.
3049 * sem_ch6.adb (New_Overloaded_Entity): Add missing check on
3050 availability of attribute Alias.
3052 2010-10-05 Ed Falis <falis@adacore.com>
3054 * s-taprop-vxworks.adb, s-osinte-vxworks.adb, s-osinte-vxworks.ads,
3055 s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.adb, s-vxwext-rtp.ads:
3056 Move definition of intContext to System.OS_Interface.
3057 Add necessary variants in System.VxWorks.Extensions.
3059 2010-10-05 Doug Rupp <rupp@adacore.com>
3061 * s-asthan-vms-alpha.adb: On VMS, a task using
3062 pragma AST_Entry exhibits a memory leak when the task terminates
3063 because the vector allocated for the AST interface is not freed. Fixed
3064 by making the vector a controlled type.
3066 2010-10-05 Emmanuel Briot <briot@adacore.com>
3068 * prj-nmsc.adb (Expand_Subdirectory_Pattern): Check that the prefix in
3069 a "**" pattern properly exists, and report an error otherwise.
3071 2010-10-05 Emmanuel Briot <briot@adacore.com>
3073 * prj-env.ads: Use GNAT.OS_Lib rather than System.OS_Lib.
3075 2010-10-05 Emmanuel Briot <briot@adacore.com>
3077 * prj-nmsc.adb, prj-err.adb (Expand_Subdirectory_Pattern): New
3079 Extract some code from Get_Directories, to share with the handling
3080 of aggregate projects (for the Project_Files attributes)
3082 2010-10-05 Emmanuel Briot <briot@adacore.com>
3084 * gnatcmd.adb, prj-proc.adb, prj-part.adb, prj-ext.adb, prj-ext.ads,
3085 switch-m.adb, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-env.adb,
3086 prj-env.ads, prj-tree.adb, prj-tree.ads (Project_Search_Path): New
3089 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
3091 * exp_ch5.adb (Make_Field_Expr): Revert previous change (removed).
3093 2010-10-05 Emmanuel Briot <briot@adacore.com>
3095 * prj-dect.adb, prj-nmsc.adb, prj-attr.adb, snames.ads-tmpl
3096 (Aggregate projects): added support for parsing aggregate projects.
3097 In particular, check the presence and value of the new attributes
3098 related to aggregate projects, ie Project_Files, Project_Path
3100 (Check_Attribute_Allowed, Check_Package_Allowed,
3101 Rename_Obsolescent_Attributes): new subprogram, extracting code
3102 from existing subprogram to keep their sizes smaller.
3103 (Check_Aggregate_Project, Check_Abstract_Project,
3104 Check_Missing_Sources): new subprograms
3105 (Check): remove comments that duplicated either the name of the
3106 following subprogram call, or the comment on that subprogram.
3107 * prj-part.adb (Check_Extending_All_Imports): New subprogram, extracted
3108 from Parse_Single_Project.
3109 (Check_Aggregate_Imports): new subprogram.
3111 2010-10-05 Vincent Celier <celier@adacore.com>
3113 * make.adb (Check): When compiling with -gnatc, recompile if the ALI
3114 file has not been generated for the current source, for example if it
3115 has been generated for the spec, but we are compiling the body.
3117 2010-10-05 Bob Duff <duff@adacore.com>
3119 * xgnatugn.adb: Remove unused procedure.
3121 2010-10-04 Vincent Celier <celier@adacore.com>
3123 * a-direct.adb (Copy_File): Interpret the Form parameter and call
3124 System.OS_Lib.Copy_File to do the work accordingly. Raise Use_Error if
3125 the Form parameter contains an incorrect value for field preserve= or
3127 * a-direct.ads (Create_Directory, Create_Path): Indicate that the Form
3128 parameter is ignored.
3129 (Copy_File): Indicate the interpretation of the Form parameter.
3131 2010-10-04 Vincent Celier <celier@adacore.com>
3133 * make.adb (Gnatmake): When there are no foreign languages declared and
3134 a main in attribute Main of the main project does not exist or is a
3135 source of another project, fail immediately before attempting
3138 2010-10-04 Javier Miranda <miranda@adacore.com>
3140 * exp_disp.ads (Convert_Tag_To_Interface): New function which must be
3141 used to convert a node referencing a tag to a class-wide interface
3143 * exp_disp.adb (Convert_Tag_To_Interface): New function.
3144 (Expand_Interface_Conversion): Replace invocation of
3145 Unchecked_Conversion by new function Convert_Tag_To_Interface.
3146 (Write_DT): Add support for null primitives.
3147 * exp_ch3.adb (Expand_N_Object_Declaration): For tagged type objects,
3148 cleanup code that handles interface conversions and avoid unchecked
3149 conversion of referenced tag components.
3150 * exp_ch5.adb (Expand_N_Assignment_Statement): Code cleanup. Avoid
3151 unrequired conversions when generating a dispatching call to _assign.
3152 * sprint.adb (Write_Itype): Fix wrong output of not null access itypes.
3154 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3156 * exp_ch4.adb (Expand_N_Op_Not): Handle properly both operands when the
3157 parent is a binary boolean operation and the operand is an unpacked
3159 (Build_Boolean_Array_Proc_Call): If the operands are both negations,
3160 the operands of the rewritten node are the operands of the negations,
3161 not the negations themselves.
3163 2010-10-04 Robert Dewar <dewar@adacore.com>
3165 * sem_ch13.adb (Set_Biased): New procedure, now used throughout, adds
3166 name of entity to biased warning msg.
3167 (Analyze_Enumeration_Representation_Clause): Remove attempt to use
3168 biased rep (wrong and never worked anyway).
3170 2010-10-04 Arnaud Charlet <charlet@adacore.com>
3172 * sem_elab.adb: Minor reformatting.
3174 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3176 * exp_ch4.adb (Expand_N_Null): Handle properly the case of a subtype of
3177 an access_to_protected subprogram type, and convert null value into
3178 corresponding aggregate.
3180 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3182 * gnat_ugn.texi: Clarify first point of 7.1.5 about pragma Inline.
3184 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3186 * make.adb (Scan_Make_Arg): Pass -Oxxx switches to the linker as well.
3187 * gnatlink.adb (Gnatlink): Filter out -Oxxx switches for CLI, RTX and
3190 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3192 * sem_ch4.adb (Analyze_Indexed_Component_Form): Remove redundant test
3193 for N_Operator_Symbol.
3194 (Indicate_Name_And_Type): Likewise.
3195 * sem_ch8.adb (Analyze_Subprogram_Renaming): Likewise.
3196 * sem_res.adb (Resolve): Likewise.
3197 * sem_type.adb (Add_One_Interp): Likewise.
3198 (Disambiguate): Likewise.
3200 2010-10-04 Vincent Celier <celier@adacore.com>
3202 * osint.adb (Read_Library_Info_From_Full): If object timestamp is less
3203 than ALI file timestamp, return null.
3205 2010-10-04 Vincent Celier <celier@adacore.com>
3207 * prj-makr.adb (Finalize): Invoke Pretty_Print with Max_Length of 79.
3208 * prj-pp.adb (Pretty_Print): New parameter Max_Line_Length, that
3209 replaces global constant with the same name. When a line is too long,
3210 indent properly the next continuation line.
3211 * prj-pp.ads (Pretty_Print): New parameter Max_Line_Length with a range
3212 from 50 to 255, defaulted to 255, to indicate the maximum length of
3213 lines in the project file.
3215 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3217 * sem_ch7.adb (Analyze_Package_Body_Helper) <Has_Referencer>: New
3218 Check_Subprogram_Ref function and Check_Subprogram_Refs instantiation
3219 of Traverse_Func on it to look for subprogram references in a body.
3220 Call Check_Subprogram_Refs on the body of inlined subprograms at the
3221 outer level and keep clearing the Is_Public flag of subprograms as long
3222 as it returns OK. Do not look at anything else than subprograms once
3223 an inlined subprogram has been seen.
3225 2010-10-04 Javier Miranda <miranda@adacore.com>
3227 * exp_cg.adb (Expand_N_Assignment_Statement): Restore tag check when
3228 the target object is an interface.
3229 * sem_disp.adb (Propagate_Tag): If the controlling argument is an
3230 interface type then we generate an implicit conversion to force
3231 displacement of the pointer to the object to reference the secondary
3232 dispatch table associated with the interface.
3234 2010-10-04 Robert Dewar <dewar@adacore.com>
3236 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Set
3237 Enumeration_Rep_Expr to point to the literal, not the identifier.
3238 (Analyze_Enumeration_Representation_Clause): Improve error message for
3239 size too small for enum rep value
3240 (Analyze_Enumeration_Representation_Clause): Fix size test to use
3241 proper size (RM_Size, not Esize).
3243 2010-10-04 Robert Dewar <dewar@adacore.com>
3245 * s-taprop-vxworks.adb, sem_res.adb: Minor reformatting.
3247 2010-10-04 Javier Miranda <miranda@adacore.com>
3249 * exp_cg.adb (Write_Call_Info): Code clean up.
3251 2010-10-04 Arnaud Charlet <charlet@adacore.com>
3253 * s-taprop-mingw.adb (Create_Task): Initialize Thread_Id field to 0.
3255 2010-10-04 Robert Dewar <dewar@adacore.com>
3257 * exp_cg.adb: Minor code reorganization
3259 * exp_ch5.adb, prj-nmsc.adb: Minor reformatting.
3261 2010-10-04 Bob Duff <duff@adacore.com>
3263 * sem_res.adb (Resolve_Type_Conversion): If a type conversion is needed
3264 to make a qualified expression into a name (syntax-wise), then do not
3265 consider it redundant.
3267 2010-10-04 Thomas Quinot <quinot@adacore.com>
3269 * sem_warn.ads: Fix typo.
3271 2010-10-04 Javier Miranda <miranda@adacore.com>
3273 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Handle suffix in
3275 (Write_Call_Info): Add missing support for renamed primitives.
3277 2010-10-04 Thomas Quinot <quinot@adacore.com>
3279 * exp_ch5.adb (Make_Field_Expr): New subprogram, to factor duplicated
3280 code between Make_Component_List_Assign and Make_Field_Assign.
3282 2010-10-04 Vincent Celier <celier@adacore.com>
3284 * prj-nmsc.adb (Get_Directories): For non extending projects that
3285 declare that they have no sources, do not create a non existing object
3286 or exec directory if builder switch -p is used.
3288 2010-10-04 Sergey Rybin <rybin@adacore.com>
3290 * gnat_ugn.texi (gnatcheck): Change the description of the report file
3293 2010-10-04 Ed Falis <falis@adacore.com>
3295 * s-taprop-vxworks.adb (Is_Task_Context): Import VxWorks intContext to
3296 determine whether Set_True is called from a task or an ISR.
3297 (Set_True): test for being in a task context before trying to
3298 dereference Defer_Abort or Undefer_Abort.
3300 2010-10-04 Robert Dewar <dewar@adacore.com>
3302 * sem_res.adb, sinput-l.adb: Minor reformatting.
3304 2010-10-04 Hristian Kirtchev <kirtchev@adacore.com>
3306 * exp_ch5.adb (Expand_N_Assignment_Statement): Do not generate a tag
3307 check when the target object is an interface since the expression of
3308 the right hand side must only cover the interface.
3310 2010-10-04 Vincent Celier <celier@adacore.com>
3312 * frontend.adb: Set Lib.Parsing_Main_Extended_Source to True before
3313 loading the main source, so that if it is preprocessed and -gnateG is
3314 used, the preprocessed file is written.
3315 * lib.ads (Analysing_Subunit_Of_Main): New global variable to indicate
3316 if a subunit is from the main unit when it is loaded.
3317 * sem_ch10.adb (Analyze_Proper_Body): Set Lib.Analysing_Subunit_Of_Main
3318 to True before loading a subunit.
3319 * sem_ch12.adb (Copy_Generic_Node): Set Lib.Analysing_Subunit_Of_Main
3320 to True when the main is a generic unit before loading one of its
3322 * sinput-l.adb (Load_File): If -gnateG is used, write the preprocessed
3323 file only for the main unit (spec, body and subunits).
3325 2010-10-04 Vincent Celier <celier@adacore.com>
3327 * sinput-l.adb (Load_File): Do not fail when switch -gnateG is
3328 specified and the processed file cannot be written. Just issue a
3329 warning and continue.
3331 2010-10-04 Thomas Quinot <quinot@adacore.com>
3333 * sem_res.adb: Minor reformatting.
3335 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3337 * sem_ch8.adb (Analyze_Subprogram_Renaming): If the renamed operation
3338 is an overridden inherited operation, the desired operation is the
3339 overriding one, which is the alias of the visible one.
3341 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3343 * sem_ch6.adb (Find_Corresponding_Spec): Check that the wrapper body is
3344 present before deleting from the tree, when an inherited function with
3345 a controlling result that returns a null extension is overridden by a
3346 later declaration or body.
3348 2010-10-04 Gary Dismukes <dismukes@adacore.com>
3350 * checks.adb: Update comment.
3352 2010-09-30 Joseph Myers <joseph@codesourcery.com>
3354 * gcc-interface/misc.c (optimize, optimize_size): Undefine as macros
3355 and define as variables.
3356 (gnat_post_options): Set optimize and optimize_size variables.
3358 2010-09-29 Joel Sherrill <joel.sherrill@oarcorp.com>
3360 * g-socket.adb: Move pragma to disable warnings in case multiple errnos
3361 are not defined by target.
3363 2010-09-29 Eric Botcazou <ebotcazou@adacore.com>
3365 * gcc-interface/utils.c (handle_leaf_attribute): Fix long line.
3367 2010-09-28 Richard Henderson <rth@redhat.com>
3369 * gcc-interface/misc.c (gnat_eh_personality): Use
3370 targetm.except_unwind_info.
3372 2010-09-28 Jan Hubicka <jh@suse.cz>
3374 * gcc-interface/utils.c (handle_leaf_attribute): New function.
3375 (gnat_internal_attribute_tables): Add leaf.
3377 2010-09-22 Joseph Myers <joseph@codesourcery.com>
3379 * gcc-interface/lang.opt (-all-warnings, -include-barrier,
3380 -include-directory, -include-directory=, -no-standard-includes,
3381 -no-standard-libraries): New.
3383 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
3385 * gcc-interface/decl.c (gnat_to_gnu_entity): Replace calls to
3386 build_array_type with calls to build_nonshared_array_type.
3387 (substitute_in_type): Likewise.
3388 * gcc-interface/misc.c (LANG_HOOKS_HASH_TYPES): Delete.
3389 (LANG_HOOKS_TYPE_HASH_EQ): Define.
3390 (gnat_post_options): Add 'static' keyword.
3391 (gnat_type_hash_eq): New static function.
3392 * gcc-interface/utils.c (fntype_same_flags_p): New function.
3393 (create_subprog_type): Call it.
3394 (create_index_type): Call build_nonshared_range_type and tidy up.
3395 (create_range_type): Likewise.
3396 * gcc-interface/gigi.h (fntype_same_flags_p): Declare.
3398 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3400 * gcc-interface/trans.c (gnat_pushdecl): Do not do anything special
3402 (end_subprog_body): If the body is a BIND_EXPR, make its associated
3403 block the top-level one.
3404 (build_function_stub): Build a statement group for the whole function.
3405 * gcc-interface/utils.c (Subprogram_Body_to_gnu): If copy-in/copy-out
3406 is used, create the enclosing block early and process first the OUT
3409 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3411 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>: Do
3412 not generate debug info for individual enumerators.
3414 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3416 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Use record
3417 type instead of enumeral type as the dummy type built for the template
3418 type of fat pointers.
3420 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3422 * gcc-interface/gigi.h (get_elaboration_procedure): Declare.
3423 (gnat_zaplevel): Likewise.
3424 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force global
3425 binding level for an external constant.
3426 <E_Constant>: Force the local context and create a fake scope before
3427 translating the defining expression of an external constant.
3428 <object>: Treat external constants at the global level explicitly for
3429 renaming declarations.
3430 (elaborate_expression_1): Force the variable to be static if the
3431 expression is global.
3432 * gcc-interface/trans.c (get_elaboration_procedure): New function.
3433 (call_to_gnu): Use it.
3434 (gnat_to_gnu): Likewise.
3435 <N_Object_Declaration>: Do not test Is_Public to force the creation of
3436 an initialization variable.
3437 (add_decl_expr): Discard the statement if the declaration is external.
3438 * gcc-interface/utils.c (gnat_pushdecl): Do not put the declaration in
3439 the current block if it is external.
3440 (create_var_decl_1): Do not test Is_Public to set TREE_STATIC.
3441 (gnat_zaplevel): New global function.
3443 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3445 * gcc-interface/decl.c (gnat_to_gnu_entity): Explicitly test _LEVEL
3446 variables against zero in all cases.
3447 (rest_of_type_decl_compilation): Likewise.
3448 * gcc-interface/trans.c (gigi): Pass properly typed constants to
3450 (call_to_gnu): Fix formatting.
3451 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
3452 (Exception_Handler_to_gnu_zcx): Likewise.
3453 (gnat_to_gnu) <N_Object_Declaration>: Short-circuit handling of
3455 expressions in presence of a freeze node.
3457 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3459 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Look into
3460 expressions for external constants that are aggregates.
3461 * gcc-interface/utils2.c (build_simple_component_ref): If the field
3462 is an inherited component in an extension, look through the extension.
3464 2010-09-10 Vincent Celier <celier@adacore.com>
3466 * projects.texi: Add documentation for package extensions
3467 Add some documentation for attributes Leading_Library_Options and
3468 Linker'Leading_Switches.
3470 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3472 * exp_util.adb (Expand_Subtype_From_Expression): When expansion is
3473 disabled, compute subtype for all string types.
3475 2010-09-10 Robert Dewar <dewar@adacore.com>
3477 * gnat_ugn.texi: Add documentation for -gnatw.s/S
3478 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
3479 Component_Size): Implement warning on overriden size clause.
3480 (Analyze_Record_Representation_Clause): Implement warning on overriden
3482 * sem_warn.ads, sem_warn.adb (Warn_On_Overridden_Size): New flag
3484 * ug_words: Add entries for -gnatw.s/S.
3485 * vms_data.ads, usage.adb: Add line for -gnatw.s/-gnatw.S.
3486 * gcc-interface/Make-lang.in: Update dependencies.
3488 2010-09-10 Vincent Celier <celier@adacore.com>
3490 * prj-dect.adb (Parse_Package_Declaration): Allow a package to extend
3491 a package with the same name from an imported or extended project.
3492 * prj-proc.adb (Process_Declarative_Items): Process package extensions
3494 2010-09-10 Bob Duff <duff@adacore.com>
3496 * exp_ch6.adb (Expand_Call): Do not perform a null_exclusion check on
3499 2010-09-10 Robert Dewar <dewar@adacore.com>
3501 * sem.adb: Minor reformatting.
3503 2010-09-10 Bob Duff <duff@adacore.com>
3505 * s-os_lib.ads, g-expect.ads: Add comments.
3507 2010-09-10 Robert Dewar <dewar@adacore.com>
3509 * exp_ch5.adb: Minor reformatting.
3511 2010-09-10 Thomas Quinot <quinot@adacore.com>
3513 * scos.ads: Add comments.
3515 2010-09-10 Vincent Celier <celier@adacore.com>
3517 * gnatcmd.adb (Get_Closure): Remove useless invocation of Close.
3519 2010-09-10 Hristian Kirtchev <kirtchev@adacore.com>
3521 * exp_ch7.adb, exp_ch6.adb (Expand_Call): Establish a transient scope
3522 for a controlled build-in-place function call which appears in an
3523 anonymous context. The transient scope ensures that the intermediate
3524 function result is cleaned up after the master is left.
3525 (Make_Build_In_Place_Call_In_Anonymous_Context): Remove the creation
3526 of the transient scope. This is now done in Exand_Call which covers
3527 additional cases other than secondary stack release.
3529 2010-09-10 Arnaud Charlet <charlet@adacore.com>
3531 * sem.adb (Do_Unit_And_Dependents): Add guard.
3533 2010-09-10 Robert Dewar <dewar@adacore.com>
3535 * exp_ch5.adb: Update comments.
3536 * exp_dist.adb: Minor reformatting.
3538 2010-09-10 Robert Dewar <dewar@adacore.com>
3540 * sem_ch13.adb (Check_Record_Representation_Clause): Implement record
3542 * sem_warn.ads, sem_warn.adb (Warn_On_Record_Holes): New warning flag.
3543 * usage.adb: Add lines for -gnatw.h/H
3544 * gnat_ugn.texi: Add documentation for J519-010
3545 Warn on record holes/gaps
3546 * ug_words: Add entries for -gnatw.h/-gnatw.H
3547 * vms_data.ads: Add entries for [NO]AVOIDGAPS
3549 2010-09-10 Gary Dismukes <dismukes@adacore.com>
3551 * sem_ch6.adb: Update comment.
3553 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3555 * sem_ch3.adb (Build_Derived_Private_Type): Mark generated declaration
3556 of full view analyzed after analyzing the corresponding record
3557 declaration, to prevent spurious name conflicts with original
3560 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
3562 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): In the VM case,
3563 just issue a warning, but continue with the normal processing.
3565 2010-09-10 Robert Dewar <dewar@adacore.com>
3567 * exp_attr.adb, prj-nmsc.adb, sem_ch4.adb, sem_res.adb: Minor
3570 2010-09-10 Thomas Quinot <quinot@adacore.com>
3572 * exp_dist.adb (Build_From_Any_Call, Build_To_Any_Call,
3573 Build_TypeCode_Call): For a subtype inserted for the expansion of a
3574 generic actual type, go to the underlying type of the original actual
3577 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3579 * exp_ch5.adb (Expand_Assign_Array_Loop): In CodePeer mode, place a
3580 guard around the increment statement, to prevent an off-by-one-value
3581 on the last iteration.
3583 2010-09-10 Vincent Celier <celier@adacore.com>
3585 * sem_aggr.adb, exp_prag.adb, sem_ch3.adb, exp_attr.adb,
3586 sem_res.adb, sem_attr.adb, sem_elab.adb, sem_ch4.adb, exp_disp.adb,
3587 exp_aggr.adb, exp_dist.adb: Change all mentions of "at run-time" to
3588 "at run time" in comments and error/warning messages.
3590 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3592 * exp_cg.adb: Handle properly bodies without specs.
3594 2010-09-10 Emmanuel Briot <briot@adacore.com>
3596 * prj-nmsc.adb (Find_Source_Dirs): When a source directory is not
3597 present, and the user requested to either ignore this or display a
3598 warning (as opposed to an error), we still need to register the
3601 2010-09-10 Robert Dewar <dewar@adacore.com>
3603 * errout.adb: Remove tests of Parsing_Main_Subunit, since this test is
3604 now done in In_Extended_Main_Source_Unit.
3605 * errout.ads (Compiler_State[_Type]): Moved from Errout to Lib
3606 (Parsing_Main_Subunit): Moved from Errout to Lib and renamed
3607 as Parsing_Main_Extended_Source.
3608 * frontend.adb: Set Parsing_Main_Extended_Source True for parsing main
3610 * lib-load.adb (Load_Unit): Add PMES parameter
3611 Set PMES appropriately in all calls to Load_Unit
3612 * lib-load.ads (Load_Unit): Add PMES parameter
3613 * lib.adb (In_Extended_Main_Source_Unit): When called with
3614 Compiler_State set to Parsing, test new flag
3615 Compiling_Main_Extended_Source.
3616 * lib.ads (Compiler_State[_Type]): Moved from Errout to Lib
3617 (Parsing_Main_Subunit): Moved from Errout to Lib and renamed
3618 as Parsing_Main_Extended_Source
3619 * par-load.adb (Load): Set PMES properly in call to Load_Unit
3621 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3623 * exp_cg.adb: Use proper entity to handle overloads.
3624 * sem_res.adb (Check_Parameterless_Call): An operator node without
3625 actuals cannot be a call, and must be treated as a string.
3627 2010-09-10 Robert Dewar <dewar@adacore.com>
3629 * frontend.adb: Minor reformatting.
3631 2010-09-10 Robert Dewar <dewar@adacore.com>
3633 * par-ch4.adb (P_Conditional_Expression): Use P_Condition for condition
3634 * par-ch5.adb (P_Condition): Move from body to spec
3635 * par.adb (Ch5.P_Condition): Move from body to spec
3637 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3639 * exp_cg.adb (Write_Call_Info): If a type that has been registered in
3640 the call table is private, use its full view to generate information
3643 2010-09-10 Jose Ruiz <ruiz@adacore.com>
3645 * exp_cg.adb (Is_Predefined_Dispatching_Operation): When trying the
3646 pattern matching to detect predefined primitive operations take into
3647 account that there can be an extra suffix related to body-nested
3650 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3652 * s-pooglo.ads: Add overriding indicators.
3654 2010-09-10 Vincent Celier <celier@adacore.com>
3656 * vms_data.ads: Add new GNAT BIND qualifiers /32_MALLOC (for -H32) and
3657 /64_MALLOC (for -H64).
3659 2010-09-10 Robert Dewar <dewar@adacore.com>
3661 * errout.adb (Error_Msg_Internal): Test Parsing_Main_Subunit flag
3662 (Error_Msg_NW): Test Parsing_Main_Subunit flag
3663 * errout.ads (Parsing_Main_Subunit): New flag
3664 * lib-load.adb (Load_Unit): Set Parsing_Main_Subunit flag
3665 * par-ch6.adb: Minor style fix (remove redandant parentheses)
3666 * par-ch9.adb: Minor style fix (remove redundant parens)
3667 * par-load.adb: (Load): Deal with setting Parsing_Main_Subunit
3669 2010-09-10 Vincent Celier <celier@adacore.com>
3671 * make.adb (Create_Binder_Mapping_File): Remove procedure. Replaced by
3672 function of the same name in Makeutl.
3673 (Gnatmake): Call function Create_Binder_Mapping_File in Makeutl, instead
3674 of removed procedure when creating a binder mapping file.
3675 * makeutl.adb (Create_Binder_Mapping_File): New function. Was a
3677 * makeutl.ads (Create_Binder_Mapping_File): New function
3679 2010-09-10 Jose Ruiz <ruiz@adacore.com>
3681 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Add the "__" scope
3682 separator when trying the pattern matching to detect predefined
3683 primitive operations.
3685 2010-09-10 Robert Dewar <dewar@adacore.com>
3687 * bindgen.adb, atree.adb: Minor reformatting.
3689 2010-09-10 Ben Brosgol <brosgol@adacore.com>
3691 * ug_words, gnat_ugn.texi: Revised "Transitioning to 64-Bit GNAT for
3694 2010-09-10 Doug Rupp <rupp@adacore.com>
3696 * bindgen.adb: Minor comment fix for -H switch.
3698 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3700 * exp_cg.adb (Register_CG_Node): Determine enclosing subprogram or
3701 library unit now, by traversing tree before context is expanded.
3702 (Write_Call_Info): Use enclosing unit name directly.
3703 * exp_ch9.adb (Expand_N_Accept_Statement): Attach generated block to
3704 tree earlier, to ensure that subsequent declarations are analyzed in a
3705 connected structure.
3706 * exp_intr.adb (Expand_Unc_Deallocation): Ditto for generated statement
3709 2010-09-10 Robert Dewar <dewar@adacore.com>
3711 * symbols-processing-vms-alpha.adb: Minor reformatting.
3713 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
3715 * bindgen.adb (Gen_Adainit_Ada): In .NET, don't call
3716 __gnat_install_handler in case the binder is called with -n.
3718 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3720 * exp_ch6.adb (Make_Build_In_Place_In_Object_Declaration): Use proper
3721 sloc for renaming declaration and set Comes_From_Source properly to
3722 ensure that references are properly generated for an object declaration
3723 that is built in place.
3725 2010-09-10 Tristan Gingold <gingold@adacore.com>
3727 * symbols-processing-vms-alpha.adb: Allow gnatsym to work as a cross
3729 * gcc-interface/Make-lang.in: Install gnatsym when cross compiling.
3730 * gcc-interface/Makefile.in: gnat.hlp is now generated by
3733 2010-09-10 Bob Duff <duff@adacore.com>
3735 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): For things like ""X(J)
3736 := ...;", remove side effects from the right-hand side, because they
3737 might affect the value of the left-hand side, but the left-hand side is
3738 first READ (so we can do shifting and masking) and then written back,
3739 which would cause the side effects to be incorrectly overwritten.
3741 2010-09-10 Robert Dewar <dewar@adacore.com>
3743 * sem_ch4.adb: Minor reformatting.
3744 * exp_ch6.adb: Add comment on testing limited on full type
3745 * gnat_rm.texi: Add documentation on Pure_Function.
3747 2010-09-10 Vincent Celier <celier@adacore.com>
3749 * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
3750 as a source of another project and of another language.
3752 2010-09-10 Robert Dewar <dewar@adacore.com>
3754 * exp_ch3.adb (Expand_N_Object_Declaration): Defend against previous
3756 * freeze.adb (Check_Unsigned_Type): Ditto.
3757 * sem_aggr.adb (Resolve_Aggr_Expr): Ditto.
3758 * sem_ch3.adb (Convert_Scalar_Bounds): Ditto.
3759 (Set_Scalar_Range_For_Subtype): Ditto.
3760 * sem_eval.adb (Subtypes_Statically_Match): Ditto.
3762 2010-09-10 Robert Dewar <dewar@adacore.com>
3764 * repinfo.adb (List_Type_Info): List Small and Range for fixed-point
3766 * sprint.adb (Write_Ureal_With_Col_Check_Sloc): Use square brackets
3767 rather than parens for fixed constants.
3768 * sprint.ads: Use square brackets rather than parens for fixed constants
3769 * urealp.adb (UR_Write): Use square brackets rather than parens
3770 (UR_Write): Add Brackets argument
3771 (UR_Write): Add many more special cases to output literals
3772 * urealp.ads (UR_Write): Use square brackets rather than parens
3773 (UR_Write): Add Brackets argument
3775 2010-09-10 Robert Dewar <dewar@adacore.com>
3777 * sem_ch4.adb: Minor reformatting.
3779 2010-09-10 Richard Guenther <rguenther@suse.de>
3781 * gcc-interface/utils.c (create_index_type): Use build_range_type.
3783 2010-09-10 Arnaud Charlet <charlet@adacore.com>
3785 * vms_cmds.ads: New.
3787 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
3789 * exp_dbug.ads: Mention enhanced encoding for array types.
3791 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
3793 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Size clause are
3794 unsupported in VM targets. Display a warning in this case.
3796 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3798 * sprint.adb (Sprint_Node_Actual, case N_Derived_Type_Definition): Do
3799 not reset Sloc when printing keyword "new".
3801 2010-09-10 Vincent Celier <celier@adacore.com>
3803 * gnatcmd.adb (GNATCmd): Put the command line in environment variable
3804 GNAT_DRIVER_COMMAND_LINE.
3806 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3808 * sem.adb (Do_Unit_And_Dependents): if Withed_Body is set on a context
3809 clause, process the body at once.
3811 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3813 * sem_res.adb (Resolve_Type_Conversion): Do not warn on a redundant
3814 conversion is the expression is a qualified expression used to
3815 disambiguate a function call.
3817 2010-09-10 Vincent Celier <celier@adacore.com>
3819 * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
3820 as a source of another project and of another language.
3822 2010-09-10 Robert Dewar <dewar@adacore.com>
3824 * prj-util.adb: Minor reformatting.
3826 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
3828 * exp_disp.adb: Minor reformatting.
3830 2010-09-10 Arnaud Charlet <charlet@adacore.com>
3832 * sem_prag.adb (Analyze_Pragma): Ignore Inline_Always pragma in
3835 2010-09-10 Thomas Quinot <quinot@adacore.com>
3837 * sem_res.adb: Minor reformatting.
3838 * exp_ch9.adb, rtsfind.ads, exp_ch4.adb, exp_ch3.adb: Do not hardcode
3839 magic constants for task master levels (instead, reference
3840 named numbers from System.Tasking).
3842 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
3844 * gnatvsn.ads (Ver_Prefix): New constant string.
3845 * bindgen.adb (Gen_Output_File_Ada): Use it in lieu of hardcoded value.
3846 (Gen_Output_File_C): Likewise.
3847 * g-comver.adb (Ver_Prefix): Add cross-reference to Gnatvsn.Ver_Prefix
3850 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3852 * sem.adb (Walk_Library_Items): Do not traverse children of the main
3853 unit, to prevent spurious circularities in the walk order.
3854 (Depends_On_Main): Use elsewhere to prevent circularities when the body
3855 of an ancestor of the main unit depends on a child of the main unit.
3857 2010-09-10 Robert Dewar <dewar@adacore.com>
3859 * gnatlink.adb, prj-ext.adb, prj-util.adb, s-tporft.adb,
3860 sem_ch3.adb: Minor reformatting.
3862 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3864 * sem_ch3.adb (Derive_Subprograms): An interface primitive operation
3865 that is a renaming must be derived like any other primitive operation,
3866 the renamed operation is not relevant to the derivation.
3868 2010-09-10 Robert Dewar <dewar@adacore.com>
3870 * sem_aux.ads: Add comment for Is_Inherently_Limited_Type.
3871 * checks.adb: Minor reformatting.
3873 2010-09-10 Robert Dewar <dewar@adacore.com>
3875 * gnat_ugn.texi: Add section on intent of style checking options.
3877 2010-09-10 Arnaud Charlet <charlet@adacore.com>
3879 * xref_lib.adb (Get_Full_Type): Fix handling of 'a' char.
3881 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3883 * sem_ch3.adb: Improve error message on derivation from class-wide type
3885 2010-09-10 Steve Baird <baird@adacore.com>
3887 * gnat1drv.adb (Adjust_Global_Switches): Enable Expression_With_Actions
3888 generation when Generate_SCIL is True.
3890 2010-09-10 Geert Bosch <bosch@adacore.com>
3892 * gnatlink.adb (Check_ Existing_Executable): New procedure for checking
3893 validity of executable name and removing any existing executable
3894 (Gnatlink): Call Check_Existing_Executable.
3896 2010-09-10 Arnaud Charlet <charlet@adacore.com>
3898 * s-tporft.adb, s-taskin.ads (Register_Foreign_Thread): Move
3899 initialization of Task_Alternate_Stack here, cleaner since in case of
3900 ranvescar, Restricted_Ada_Task_Control_Block is not initialized
3903 2010-09-10 Thomas Quinot <quinot@adacore.com>
3905 * s-fileio.adb, a-dirval.adb: Minor reformatting.
3907 2010-09-10 Emmanuel Briot <briot@adacore.com>
3909 * prj-util.adb (Executable_Of): Fix CE when the project does not
3910 contain a Builder package.
3912 2010-09-10 Vincent Celier <celier@adacore.com>
3914 * prj-ext.adb (Initialize_Project_Path): Add <prefix>/lib/gpr/<target>
3915 to the project path, if Prefix and Target_Name are defined.
3916 * prj-tree.ads (Project_Node_Tree_Data): New component Target_Name
3918 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3920 * checks.adb (Ensure_Valid): If the expression is a boolean expression
3921 or short-circuit operation, do no emit a validity check: only the
3922 elementary operands of the expression need checking.
3924 2010-09-10 Ben Brosgol <brosgol@adacore.com>
3926 * gnat_rm.texi: Document Short_Descriptors.
3928 2010-09-10 Arnaud Charlet <charlet@adacore.com>
3930 * s-taprop-linux.adb, s-taskin.ads (Task_Alternate_Stack): Default
3931 initialize to Null_Address.
3932 (Enter_Task): Do not set up an alternate stack for foreign threads.
3934 2010-09-10 Robert Dewar <dewar@adacore.com>
3936 * opt.adb (Short_Descriptors): New flag
3937 (Short_Descriptors_Config): New flag
3938 * opt.ads (Short_Descriptors): New flag
3939 (Short_Descriptors_Config): New flag
3940 * par-prag.adb: Add dummy entry for Short_Descriptors pragma
3941 * sem_prag.adb (Set_Mechanism_Value): Deal with Short_Descriptors.
3942 (Analyze_Pragma): Implement Short_Descriptors pragma
3943 * snames.ads-tmpl: Add entry for Short_Descriptors pragma
3945 2010-09-10 Emmanuel Briot <briot@adacore.com>
3947 * prj-util.adb, prj-util.ads (Executable_Of): Take into account the
3948 project's Executable_Suffix.
3950 2010-09-10 Robert Dewar <dewar@adacore.com>
3952 * g-pehage.ads: Minor reformatting
3954 * gnat_ugn.texi: Clarifying comment on -gnatyc
3955 * exp_ch6.adb (Expand_N_Subprogram_Body): Reset Is_Pure if limited
3958 2010-09-10 Tristan Gingold <gingold@adacore.com>
3960 * Make-generated.in (gnat.hlp): New rule.
3962 2010-09-10 Emmanuel Briot <briot@adacore.com>
3964 * prj-util.adb, prj-util.ads (Executable_Of): New parameter
3967 2010-09-10 Robert Dewar <dewar@adacore.com>
3969 * einfo.adb: Minor code cleanup: Add assertion to
3970 Set_Corresponding_Protected_Entry.
3972 2010-09-10 Bob Duff <duff@adacore.com>
3974 * g-pehage.ads, g-pehage.adb (Produce): Add a new flag to allow sending
3975 the output to standard output.
3977 2010-09-09 Vincent Celier <celier@adacore.com>
3979 * gnat_ugn.texi: Add documentation for new gnatmake switch
3981 * make.adb (Map_File): New global variable to store the value of switch
3983 (Gnatmake): Add switch -M to gnatlink if switch --create-map-file has
3985 (Scan_Make_Arg): Recognize switch --create-map-file
3986 * makeutl.ads (Create_Map_File_Switch): New constant string for new
3987 gnatmake and gprbuild switch --create-map-file.
3989 2010-09-09 Robert Dewar <dewar@adacore.com>
3991 * sinput-p.ads: Minor comment update.
3993 2010-09-09 Arnaud Charlet <charlet@adacore.com>
3995 * s-tpobop.adb, s-taenca.adb (Wait_For_Completion_With_Timeout): Reset
3996 Entry_Call.State if needed so that the call is marked as cancelled by
3997 Check_Pending_Actions_For_Entry_Call.
3998 (Timed_Protected_Entry_Call): Adjust calls to Defer/Under_Abort, since
3999 this procedure may be called from a controlled operation
4000 (Initialize/Finalize).
4002 2010-09-09 Vadim Godunko <godunko@adacore.com>
4004 * impunit.adb: Correct spelling of package's name in the comment.
4006 2010-09-09 Robert Dewar <dewar@adacore.com>
4008 * gnatcmd.adb, gnatlink.adb, sem_ch12.adb, sem_eval.adb, sinput-p.adb:
4011 2010-09-09 Robert Dewar <dewar@adacore.com>
4013 * impunit.adb: Add entry for a-izteio.
4014 * checks.adb: Add comment.
4015 * debug.adb, exp_disp.adb: Minor reformatting.
4016 * exp_dbug.ads: Minor reformatting throughout (pack block comments).
4018 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4020 * sem_eval.adb (Is_Same_Value): Two occurrences of the same
4021 discriminant cannot be assumed to be the same value because they may
4022 refer to bounds of a component of two different instances of a
4025 2010-09-09 Gary Dismukes <dismukes@adacore.com>
4027 * checks.adb (Apply_Arithmetic_Overflow_Check): When converting the
4028 operands of an operator to the type of an enclosing conversion, rewrite
4029 the operator so the conversion can't be flagged as redundant.
4030 Remove useless assignments to Typ and Rtyp.
4032 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
4034 * gnat_ugn.texi: Fix another long line.
4036 2010-09-09 Bob Duff <duff@adacore.com>
4038 * sem_warn.adb (Output_Reference_Error): Don't warn for renames read
4041 2010-09-09 Matthew Heaney <heaney@adacore.com>
4043 * a-convec.adb, a-coinve.adb (Clear, Delete, Delete_Last, Finalize,
4044 Merge, Insert, Insert_Space, Move, Reserve_Capacity, Generic_Sorting,
4045 Replace_Element, Reverse_Elements, Swap): Change exception message to
4046 correctly indicate kind of tampering (cursor or element).
4047 * a-cdlili.adb, a-cidlli.adb (Clear, Delete, Delete_First, Delete_Last,
4048 Merge, Generic_Sorting, Insert, Move, Reverse_Elements, Splice,
4049 Swap_Links, Replace_Element, Swap): Ditto.
4050 * a-coorse.adb, a-ciorse.adb (Include, Replace, Replace_Element): Ditto
4051 * a-coorma.adb, a-ciorma.adb (Include, Replace, Replace_Element): Ditto
4052 * a-coormu.adb, a-ciormu.adb (Replace_Element): Ditto
4053 * a-chtgke.adb (Delete_Key_Sans_Free, Generic_Conditional_Insert,
4054 Generic_Replace_Element): Ditto
4055 * a-chtgop.adb (Clear, Move, Reserve_Capacity): Ditto
4056 * a-cohama.adb, a-cihama.adb (Delete, Include, Replace,
4057 Replace_Element): Ditto.
4058 * a-cohase.adb, a-cihase.adb (Delete, Difference, Intersection,
4059 Symmetric_Difference, Union, Include, Replace): Ditto
4061 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4063 * sprint.adb (Write_Id): If the parent node is an expanded name, check
4064 that its entity_or_associated_node is an entity before writing it out.
4065 * exp_disp.adb (Make_Tags); if a type is declared in C++ and has no
4066 constructors, there is no need for a dispatch table pointer because the
4067 table is fully inherited from the C++ code.
4069 2010-09-09 Thomas Quinot <quinot@adacore.com>
4071 * projects.texi: Fix wrong identifiers on package end lines in project
4073 * exp_ch6.adb: Minor reformatting.
4075 2010-09-09 Tristan Gingold <gingold@adacore.com>
4077 * gnatcmd.adb, vms_conv.ads: Extract Command_Type.
4079 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
4081 * gnat_ugn.texi: Fix description of -O3 optimization level.
4083 2010-09-09 Yannick Moy <moy@adacore.com>
4085 * a-cihama.adb, a-cohama.adb: Fix comments.
4087 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4089 * i-cexten.ads: Add comments.
4090 (Signed_128): New type, used by some C bindings.
4091 * debug.adb: Update comment.
4093 2010-09-09 Sergey Rybin <rybin@adacore.com>
4095 * gnat_ugn.texi: For ASIS tools (gnatpp, gnatcheck, gnatelim,
4096 gnatmetric and gnatstub) add a note that '-gnat05' should be used if
4097 the tool should process Ada 2005 sources.
4099 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4101 * sem_ch12.adb (Remove_Parent): If the scope containing the child
4102 instance is a block, examine the enclosing scope to determine if it is
4105 2010-09-09 Doug Rupp <rupp@adacore.com>
4107 * sem_prag.adb (pragma Ident): Pass --identification= vice
4109 * gnatlink.adb (Linker_Options): Look for --identification= vice
4112 2010-09-09 Gary Dismukes <dismukes@adacore.com>
4114 * exp_attr.adb (Expand_N_Attribute_Reference, case Attribute_Old): When
4115 inserting and analyzing the object declaration for the temporary object
4116 created to hold a 'Old value, push the scope for the subprogram where
4117 the object is inserted, so that its Scope (and that of related objects)
4118 will be set properly.
4120 2010-09-09 Vincent Celier <celier@adacore.com>
4122 * prj.adb (Get_Object_Directory): Return object directory display name
4123 * adaint.c (__gnat_get_file_names_case_sensitive): When environment
4124 variable GNAT_FILE_NAME_CASE_SENSITIVE has a value of "0" or "1",
4125 return this value, otherwise return the default for the platform.
4127 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4129 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
4130 dependencies. Remove handling of gnatlbr.
4131 Do not remove s-stratt-xdr for the run-time when installing.
4133 2010-09-09 Robert Dewar <dewar@adacore.com>
4135 * sem_attr.adb: Minor reformatting.
4137 2010-09-09 Thomas Quinot <quinot@adacore.com>
4139 * socket.c (__gnat_socket_ioctl): On Darwin, the req parameter is an
4140 unsigned long, not an int.
4142 2010-09-09 Vincent Celier <celier@adacore.com>
4144 * make.adb, mlib-prj.adb, prj.adb, prj-nmsc.adb, mlib-tgt.adb,
4145 prj-conf.adb, prj-env.adb: Use Display_Name instead of Name whenever
4146 we are not checking for equality of path or file names.
4148 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4150 * exp_util.adb (Remove_Side_Effects): If the expression is a packed
4151 array reference, reset the Analyzed flag so that it is properly
4152 expanded when the resulting object declaration is analyzed.
4154 2010-09-09 Vincent Celier <celier@adacore.com>
4156 * sinput-p.adb (Source_File_Is_Subunit): Return False if X is
4159 2010-09-09 Ramon Fernandez <fernandez@adacore.com>
4161 * sysdep.c: The wrSbc8548 BSP in MILS doesn't know anything about the
4162 VX_SPE_TASK option, so disable it.
4164 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4166 * sem.adb (Walk_Library_Items): Traverse context of subunits of the
4168 (Is_Subunit_Of_Main): Handle null nodes properly.
4170 2010-09-09 Robert Dewar <dewar@adacore.com>
4172 * par-ch2.adb: Update comments.
4174 2010-09-09 Ben Brosgol <brosgol@adacore.com>
4176 * gnat_rm.texi: Minor wordsmithing of section on pragma Ordered.
4178 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4180 * par-ch2.adb (Scan_Pragma_Argument_Association): In CodePeer mode,
4181 do not generate an error for compatibility with legacy code.
4182 ignored when generating SCIL.
4183 * sem_attr.adb (Resolve_Attribute): Ignore AI-229 in CodePeer mode.
4185 2010-09-09 Thomas Quinot <quinot@adacore.com>
4187 * s-strxdr.adb, gnat_rm.texi, s-stratt-xdr.adb, s-stratt.ads: Rename
4188 s-strxdr.adb to s-stratt-xdr.adb
4190 2010-09-09 Robert Dewar <dewar@adacore.com>
4192 * ali-util.adb (Obsolescent_Check): Removed.
4193 * gprep.adb (Obsolescent_Check): Removed.
4194 Remove Obsolescent_Check parameter in Scng instantiation
4195 * prj-err.adb (Obsolescent_Check): Removed.
4196 * prj-err.ads (Obsolescent_Check): Removed.
4197 Remove Obsolescent_Check parameter in Scng instantiation
4198 * scans.ads (Based_Literal_Uses_Colon): New flag
4199 * scn.adb (Obsolscent_Check_Flag): Removed
4200 (Obsolscent_Check): Removed
4201 (Set_Obsolescent_Check): Removed
4202 (Post_Scan): Add handling for obsolescent features
4203 * scn.ads (Obsolscent_Check): Removed
4204 (Set_Obsolescent_Check): Removed
4205 (Post_Scan): Can no longer be inlined
4206 Remove Obsolescent_Check from instantiation of Scng
4207 * scng.adb (Nlit): Set Based_Literal_Uses_Colon
4208 (Nlit): Remove handling of obsolescent check
4209 (Scan, case '%'): Remove handling of obsolescent check
4210 (Scan, case '|'): Call Post_Scan
4211 (Scan, case '!'): Remove handling of obsolescent check, call Post_Scan
4212 * scng.ads Remove Obsolescent_Check argument from Scng generic
4213 (Post_Scan): Now called for Tok_Vertical_Bar
4214 * sinput-l.adb: Remove calls to Set_Obsolescent_Check
4216 2010-09-09 Doug Rupp <rupp@adacore.com>
4218 * gnatlbr.adb: Removed.
4219 * gnat_rm.texi, ug_words, gnat_ugn.texi: Remove mention of gnatlbr.
4221 2010-09-09 Robert Dewar <dewar@adacore.com>
4223 * sem_res.adb (Resolve_Type_Conversion): Catch more cases of redundant
4226 2010-09-09 Vincent Celier <celier@adacore.com>
4228 * gnatlbr.adb: Remove redundant conversions.
4230 2010-09-09 Vincent Celier <celier@adacore.com>
4232 * prj-proc.adb: Minor comment spelling error fix.
4233 * osint.ads (Env_Vars_Case_Sensitive): Use function
4234 Get_Env_Vars_Case_Sensitive, not Get_File_Names_Case_Sensitive to
4237 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4239 * sem_res.adb (Resolve_Equality_Op): Implement Ada2012 rule for
4240 resolution of conditional expressions whose dependent expressions are
4241 anonymous access types.
4243 2010-09-09 Robert Dewar <dewar@adacore.com>
4245 * a-ststio.adb: Minor code reorganization.
4246 * s-direio.adb, prj.adb, prj-nmsc.adb, sem_type.adb: Remove redundant
4248 * types.ads: Minor reformatting.
4249 * binde.adb, vms_conv.adb, gnatls.adb, s-strxdr.adb, uintp.adb: Remove
4250 redundant conversions.
4251 * output.adb: Minor reformatting.
4252 * sem_ch8.adb (Find_Type): Test for redundant base applies to user
4254 * opt.ads: Add pragma Ordered for Verbosity_Level.
4255 * prj.ads: Add pragma Ordered for type Verbosity.
4257 2010-09-09 Vincent Celier <celier@adacore.com>
4259 * osint.adb (Canonical_Case_File_Name): Use procedure To_Lower in
4261 (Canonical_Case_Env_Var_Name): Ditto
4263 2010-09-09 Bob Duff <duff@adacore.com>
4265 * g-pehage.adb (Allocate): Initialize the allocated elements of IT.
4267 2010-09-09 Robert Dewar <dewar@adacore.com>
4269 * cstand.adb: Mark Boolean and Character types as Ordered
4270 * einfo.adb (Has_Pragma_Ordered): New flag
4271 * einfo.ads (Has_Pragma_Ordered): New flag
4272 * g-calend.ads: Mark Day_Name as Ordered
4273 * opt.ads: Mark Ada_Version_Type as Ordered
4274 (Warn_On_Unordered_Enumeration_Type): New flag
4275 * par-prag.adb: Add procdessing for pragma Ordered
4276 * s-ficobl.ads (Read_File_Mode): New subtype
4277 * s-fileio.adb: Use Read_File_Mode instead of explicit ranges
4278 * s-taskin.ads: Mark Entry_Call_State as ordered
4279 * sem_ch3.adb (Build_Derived_Enumeration_Type): Inherit
4281 * sem_ch6.ads: Mark Conformance_Type as Ordered
4282 * sem_prag.adb: Implement pragma Ordered
4283 * sem_res.adb (Bad_Unordered_Enumeration_Reference): New function
4284 (Resolve_Comparison_Op): Diagnose unordered comparison
4285 (Resolve_Range): Diagnose unordered range
4286 * sem_warn.adb (Warn_On_Unordered_Enumeration_Type): New flag (from
4288 * snames.ads-tmpl: Add entry for pragma Ordered
4289 * style.ads (Check_Enumeration_Subrange): Removed
4290 * styleg.adb (Check_Enumeration_Subrange): Removed
4291 * styleg.ads (Check_Enumeration_Subrange): Removed
4292 * stylesw.adb: Remove handling of -gnatyE switch
4293 * stylesw.ads: (Style_Check_Enumeration_Subranges): Removed
4294 * vms_data.ads: Remove -gnatyE entries
4295 Add -gnatw.u entries
4296 * ug_words: Entries for -gnatw.u and -gnatw.U
4297 * gnat_ugn.texi: Document -gnatw.u/-gnatw.U switches
4298 * gnat_rm.texi: Document pragma Ordered.
4299 * s-tasren.adb: Avoid unnecessary comparison on unordered enumeration.
4300 * s-tpobop.adb: Remove comparison on unordered enumeration type.
4302 2010-09-09 Vincent Celier <celier@adacore.com>
4304 * adaint.c: New function __gnat_get_env_vars_case_sensitive, returns 0
4305 for VMS and Windows, and 1 for all other platforms.
4306 * adaint.h: New function __gnat_get_env_vars_case_sensitive
4307 * osint.ads, osint.adb (Canonical_Case_Env_Var_Name): New procedure.
4308 * prj-ext.adb (Add): Call Canonical_Case_Env_Var_Name instead of
4309 Canonical_Case_File_Name, as we are dealing with environment variables,
4312 2010-09-09 Robert Dewar <dewar@adacore.com>
4314 * sem_util.adb: Minor reformatting
4316 2010-09-09 Vincent Celier <celier@adacore.com>
4318 * vms_data.ads: Add documentation for S_Make_Single.
4320 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4322 * sem_util.adb (Same_Object): include formal parameters.
4324 2010-09-09 Vincent Celier <celier@adacore.com>
4326 * make.adb (Queue): New package implementing a new impementation of the
4327 queue, taking into account the new switch --single-compile-per-obj-dir.
4328 * makeutl.ads (Single_Compile_Per_Obj_Dir_Switch): New constant String
4329 for gnatmake and gprbuild new switch --single-compile-per-obj-dir.
4330 * opt.ads (One_Compilation_Per_Obj_Dir): New Boolean flag, defauted to
4332 * switch-m.adb (Scan_Make_Switches): Take into account new gnatmake
4333 switch --single-compile-per-obj-dir.
4334 * vms_data.ads: Add qualifier SINGLE_COMPILE_PER_OBJ_DIR for gnatmake
4335 switch --single-compile-per-obj-dir.
4336 * gnat_ugn.texi: Add documentation for new gnatmake switch
4337 --single-compile-per-obj-dir.
4339 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4341 * einfo.adb, einfo.ads: Clarify use of Corresponding_Protected_Entry.
4343 2010-09-09 Javier Miranda <miranda@adacore.com>
4345 * sem_ch3.adb (Is_Progenitor): Relocated to sem_type.
4346 (Replace_Type): Code cleanup.
4347 * sem_type.ads, sem_type.adb (Is_Progenitor): Relocated from sem_ch3
4349 2010-09-09 Thomas Quinot <quinot@adacore.com>
4351 * exp_ch8.adb: Minor reformatting.
4353 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4355 * exp_ch9.adb, einfo.adb, einfo.ads: New attribute
4356 Corresponding_Protected_Entry.
4358 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4360 * exp_ch3.adb (Build_Untagged_Equality): Do not set alias of implicit
4361 inequality, it is always rewritten as the negation of the corresponding
4363 * exp_ch8.adb (Expand_N_Subprogram_Renaming): If the subprogram renames
4364 the predefined equality of an untagged record, create a body at the
4365 point of the renaming, to capture the current meaning of equality for
4368 2010-09-09 Robert Dewar <dewar@adacore.com>
4370 * sem.adb, sem_warn.adb: Minor reformatting.
4372 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4374 * sem_ch6.adb: Improve error message on untagged equality.
4375 * sem.adb (Semantics): Include subprogram bodies that act as spec.
4377 2010-09-09 Javier Miranda <miranda@adacore.com>
4379 * sem_ch13.adb, exp_ch13.adb: Undo previous change, unneeded.
4381 2010-09-09 Robert Dewar <dewar@adacore.com>
4383 * sem_ch13.adb, sem_ch6.adb, exp_ch3.adb: Minor reformatting.
4385 2010-09-09 Robert Dewar <dewar@adacore.com>
4387 * einfo.adb (Is_Aggregate_Type): New function.
4388 * einfo.ads (Aggregate_Kind): New enumeration subtype
4389 (Is_Aggregate_Type): New function.
4390 * sem_type.adb (Is_Array_Class_Record_Type): Removed, replaced by
4393 2010-09-09 Robert Dewar <dewar@adacore.com>
4395 * exp_ch11.adb, frontend.adb, sem_attr.adb, sem_ch10.adb, sem_ch3.adb,
4396 sem_ch4.adb, sem_ch9.adb, sem_res.adb: Use Restriction_Check_Needed
4398 * restrict.ads, restrict.adb: Ditto.
4399 (Restriction_Check_Needed): New function
4401 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4403 * exp_ch9.ads (Find_Master_Scope): New function, extracted from
4404 Build_Master_Entity, to find the proper scope for the master entity of
4405 a type that may contain tasks, in the presence of transient scopes.
4406 * exp_ch9.adb (Build_Master_Entity) Use new function.
4407 * exp_ch3.adb (Build_Class_Wide_Master): ditto.
4409 2010-09-09 Vincent Celier <celier@adacore.com>
4411 * prj-attr.adb: Add new attributes Leading_Library_Options and
4412 Linker'Leading_Switches.
4413 * snames.ads-tmpl: Add new standard names Leading_Library_Options and
4416 2010-09-09 Javier Miranda <miranda@adacore.com>
4418 * sem_ch3.adb (Derive_Subprogram): The code that checks if a
4419 dispatching primitive covers some interface primitive is incomplete.
4420 Replace such code by the invocation of a new subprogram that provides
4422 * sem_ch6.ads (Is_Interface_Conformant): Add missing documentation.
4423 * sem_ch6.adb (Check_Missing_Return): Minor reformating
4424 (Check_Convention): Complete if-statement conditition when reporting
4425 errors (to avoid assertion failure).
4426 * sem_ch13.adb (Make_Null_Procedure_Specs): This routine was previously
4427 located in exp_ch3. Relocated inside Analyze_Freeze_Entity.
4428 (Analyze_Freeze_Entity): Invoke routine that adds the spec of non
4429 overridden null interface primitives.
4430 * sem_type.adb (Is_Ancestor): If the parent of the partial view of a
4431 private type is an interface then use the parent of its full view to
4432 climb to its ancestor type.
4433 * sem_disp.ads, sem_disp.adb (Covers_Some_Interface): New subprogram.
4434 (Check_Dispatching_Operation): Extend assertion to handle wrappers of
4435 null interface primitives.
4436 (Is_Null_Interface_Primitive): New subprogram.
4437 * exp_ch3.adb (Make_Null_Procedure_Specs): Removed.
4438 (Expand_Freeze_Record_Type): Do not generate specs of null interface
4439 subprograms because they are now generated by Analyze_Freeze_Entity.
4441 2010-09-09 Robert Dewar <dewar@adacore.com>
4443 * a-calfor.adb, sem_ch3.adb: Minor reformatting.
4445 2010-09-09 Robert Dewar <dewar@adacore.com>
4447 * bindgen.adb (Gen_Restrictions_Ada): Avoid explicit enumeration ranges
4448 (Gen_Restrictions_C): Avoid explicit enumeration ranges
4449 (Set_String_Replace): New procedure
4450 * casing.ads (Known_Casing): New subtype declaration
4451 * prj-attr.ads (All_Case_Insensitive_Associative_Array): New subtype
4453 * prj-dect.adb (Parse_Attribute_Declaration): Avoid enumeration range
4454 * prj-nmsc.adb (Check_Naming): Avoid unnecessary enumeration range
4455 * prj-strt.adb (Attribute_Reference): Avoid enumeration range test
4456 * prj.adb (Known_Casing): Moved to Casing spec (avoid enum range)
4457 * sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order): Avoid enumeration
4459 * sem_res.adb (Resolve_Range): Check for enumeration subrange style
4461 * sem_type.adb (Is_Array_Class_Record_Type): New.
4462 * style.ads (Check_Enumeration_Subrange): New procedure
4463 * styleg.adb (Check_Enumeration_Subrange): New procedure
4464 * styleg.ads (Check_Enumeration_Subrange): New procedure
4465 * stylesw.adb Add handling for Style_Check_Enumeration_Subranges
4466 * stylesw.ads (Style_Check_Enumeration_Subranges): New flag
4467 * usage.adb: Add line for -gnatyE
4468 * vms_data.ads: Add entries for [NO]ENUMERATION_RANGES
4469 Add missing entry for NOBOOLEAN_OPERATORS
4470 * gnat_ugn.texi: Add documentation for -gnatyE
4472 2010-09-09 Robert Dewar <dewar@adacore.com>
4474 * namet.adb (Initialize): Is now a dummy procedure
4475 (Reinitialize): New procedure
4476 Call Reinitialize from package initialization
4477 * namet.ads (Initialize): Is now a dummy procedure
4478 (Reinitialize): New procedure
4479 * clean.adb, gnat1drv.adb, gnatbind.adb, gnatcmd.adb, gnatlink.adb,
4480 gnatls.adb, gprep.adb, make.adb, prj-makr.adb: Remove obsolete call to
4483 2010-09-09 Bob Duff <duff@adacore.com>
4485 * sem_elab.adb, s-os_lib.ads: Minor comment fixes.
4487 2010-09-09 Robert Dewar <dewar@adacore.com>
4489 * s-bitops.adb (Raise_Error): Add exception message
4491 2010-09-09 Robert Dewar <dewar@adacore.com>
4493 * par-ch5.adb (Test_Statement_Required): Deal with Ada 2012 allowing no
4494 null statement after label.
4495 * sinfo.ads: Minor comment updates.
4497 2010-09-09 Robert Dewar <dewar@adacore.com>
4499 * nlists.ads, nlists.adb (In_Same_List): New function.
4500 Use Node_Or_Entity_Id where appropriate.
4501 * par-labl.adb, sem_ch6.adb, sem_type.adb: Use In_Same_List.
4503 2010-09-09 Robert Dewar <dewar@adacore.com>
4505 * restrict.ads, restrict.adb (Check_Wide_Character_Restriction): New
4507 * sem_ch3.adb: Use Check_Wide_Character_Restriction
4508 (Enumeration_Type_Declaration): Check violation of No_Wide_Characters
4509 * sem_ch8.adb (Find_Direct_Name): Check violation of No_Wide_Characters
4510 (Find_Expanded_Name): Check violation of No_Wide_Characters
4512 2010-09-09 Robert Dewar <dewar@adacore.com>
4514 * par-ch5.adb: Minor reformatting.
4516 2010-09-09 Robert Dewar <dewar@adacore.com>
4518 * prj-env.adb: Minor code reorganization.
4519 * par-ch3.adb: Minor reformatting.
4520 * gcc-interface/Make-lang.in: Update dependencies.
4522 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4524 * exp_ch9.adb (Build_Activation_Chain_Entity): The construct enclosing
4525 a task declaration can be an entry body.
4527 2010-09-09 Javier Miranda <miranda@adacore.com>
4529 * exp_disp.adb (Make_DT): Decorate as "static" variables containing
4530 tags of library level tagged types.
4531 (Make_Tags): Disable backend optimizations about aliasing for
4532 declarations of access to dispatch tables.
4534 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4536 * sem_ch12.adb (Reset_Entity): If the entity is an itype created as a
4537 subtype for a null-excluding access type, recover the original
4538 subtype_mark to get the proper visibility on the original name.
4540 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4542 * exp_ch3.adb (Build_Untagged_Equality): For Ada2012, new procedure to
4543 create the primitive equality operation for an untagged record. The
4544 operation is the predefined equality if no record component has a
4545 user-defined equality, or if there is a user-defined equality for the
4546 type as a whole, or when the type is derived and it has an inherited
4547 equality. Otherwise the body of the operations is built as for tagged
4549 (Expand_Freeze_Record_Type): Call Build_Untagged_Equality when needed.
4550 (Make_Eq_Body): New function to create the expanded body of the
4551 equality operation for tagged and untagged records. In both cases the
4552 operation composes, and the primitive operation of each record
4553 component is used to generate the equality function for the type.
4554 * exp_ch4.adb (Expand_Composite_Equality): In Ada2012, if a component
4555 has an abstract equality defined, replace its call with a
4556 Raise_Program_Error.
4557 * sem_ch6.adb (New_Overloaded_Entity): if Ada2012, verify that a
4558 user-defined equality operator for an untagged record type does not
4559 happen after type is frozen, and appears in the visible part if partial
4560 view of type is not limited.
4562 2010-09-09 Tristan Gingold <gingold@adacore.com>
4564 * gnatlbr.adb: Make Create_Directory more portable: use __gnat_mkdir.
4566 2010-09-09 Bob Duff <duff@adacore.com>
4568 * gnat_ugn.texi: Remove incorrect statement about -E being the default.
4570 2010-09-09 Pascal Obry <obry@adacore.com>
4572 * gnat_ugn.texi: Update doc on windows related topics.
4574 2010-09-09 Geert Bosch <bosch@adacore.com>
4576 * s-fatgen.adb: Update comments.
4578 2010-09-09 Robert Dewar <dewar@adacore.com>
4580 * par-ch4.adb (Box_Error): New procedure.
4582 2010-09-09 Thomas Quinot <quinot@adacore.com>
4584 * sem.adb: Minor reformatting.
4586 2010-09-09 Pascal Obry <obry@adacore.com>
4588 * prj-env.adb: Style fix, use /and then/ and /or else/.
4589 * gnat_ugn.texi: Fix typos.
4591 2010-09-03 Joseph Myers <joseph@codesourcery.com>
4594 * gcc-interface/misc.c (gnat_init_options): Allow options with
4595 empty canonical form. Generate a single save_argv element from -I
4598 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
4600 * gcc-interface/utils.c (gnat_pushdecl): Remove test for PARM_DECLs.
4601 Attach fake PARM_DECLs to the topmost block of the function.
4603 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
4605 * gcc-interface/trans.c (call_to_gnu): Also force the return slot opt
4606 for the call to a function whose return type was unconstrained.
4608 2010-08-30 Olivier Hainque <hainque@adacore.com>
4610 * gcc-interface/decl.c (FOREIGN_FORCE_REALIGN_STACK): New macro,
4611 replacement for FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
4612 (gnat_to_gnu_entity) <case ..., E_Procedure>: Use it.
4614 2010-08-21 Eric Botcazou <ebotcazou@adacore.com>
4616 * tracebak.c: Fix typo in comment.
4618 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
4620 * gcc-interface/decl.c: Use FOR_EACH_VEC_ELT.
4621 * gcc-interface/trans.c: Likewise.
4622 * gcc-interface/utils.c: Likewise.
4624 2010-08-18 Eric Botcazou <ebotcazou@adacore.com>
4626 * tracebak.c (i386): Use GCC unwinder on Linux with GCC > 4.5.
4628 2010-08-10 Robert Dewar <dewar@adacore.com>
4630 * sem_ch8.adb, sem_ch8.ads: Change name Write_Scopes to ws.
4631 * sem_util.adb: Minor reformatting.
4633 2010-08-10 Javier Miranda <miranda@adacore.com>
4635 * sem_aggr.adb (Resolve_Extension_Aggregate): Warn on the use of C++
4636 constructors that leave the object partially initialized.
4637 * exp_atag.ads, exp_atags.adb (Build_Inherit_CPP_Prims): New subprogram
4638 that copies from parent of Typ the dispatch table slots of inherited
4639 C++ primitives. It handles primary and secondary dispatch tables.
4640 * einfo.adb (Related_Type): Moved from Node26 to Node27. Required to
4641 use this attribute with E_Variable entities.
4642 (Set_Is_Tag): Relax assertion to allow its use with variables that
4644 (Set_Related_Type): Relax assertion to allow its use with variables
4645 that store the tag of a C++ class.
4646 (Write_26_Field_Name): Remove Related_Type.
4647 (Write_27_Field_Name): Add Related_Type.
4648 * einfo.ads (Related_Type): Moved from Node26 to Node27. Available also
4649 with E_Variable entities.
4650 * sem_prag.adb (CPP_Constructor): Warn on duplicated occurrence of this
4652 * sem_util.adb (Search_Tag): Add missing support for CPP types.
4653 (Enclosing_CPP_Parent): New subprogram.
4654 (Has_Suffix): New subprogram.
4655 * sem_util.ads (Enclosing_CPP_Parent): New subprogram that returns the
4656 closest ancestor of a type that is a C++ type.
4657 (Has_Suffix): New subprogram. Used in assertions to check the suffix of
4659 * sem_attr.adb (Analyze_Access_Attribute): Check wrong use of current
4660 instance in derivations of C++ types.
4661 * exp_tss.adb (CPP_Init_Proc): New subprogram.
4662 (Is_CPP_Init_Proc): New subprogram.
4663 (Set_TSS): Handle new C++ init routines.
4664 * exp_tss.ads (TSS_CPP_Init): New TSS name. For initialization of C++
4666 (CPP_Init_Proc): New subprogram.
4667 (Is_CPP_Init_Proc): New subprogram.
4668 * exp_disp.adb (CPP_Num_Prims): New subprogram.
4669 (Has_CPP_Constructors): New subprogram.
4670 (Make_Secondary_DT, Make_DT): For derivations of CPP types, do not
4671 initialize slots located in the C++ part of the dispatch table.
4672 (Make_Tags): For CPP types declare variables used by the IP routine to
4673 store the C++ tag values after the first invocation of the C++
4675 (Build_CPP_Init_DT): New subprogram.
4676 (Set_CPP_Constructors): New implementation that builds an IP for each
4677 CPP constructor. These IP are wrappers of the C++ constructors that,
4678 after the first invocation of the constructor, read the C++ tags from
4679 the object and save them locally. These copies of the C++ tags are used
4680 by the IC routines to initialize tables of Ada derivations of CPP
4682 (Write_DT): Indicate what primitives are imported from C++
4683 * exp_disp.ads (CPP_Num_Prims): New subprogram.
4684 (Has_CPP_Constructors): New subprogram.
4685 * exp_aggr.adb (Build_Record_Aggr_Code): For derivations of C++ types
4686 invoke the IC routine to inherit the slots of the parents.
4687 * sem_ch13.adb (Analyze_Freeze_Entity): Add new warnings on CPP types.
4688 * exp_ch3.adb (Is_Variable_Size_Array): New subprogram.
4689 (Is_Variable_Size_Record): Factorize code calling
4690 Is_Variable_Size_Array.
4691 (Build_CPP_Init_Procedure): New subprogram that builds the tree
4692 corresponding to the procedure that initializes the C++ part of the
4693 dispatch table of an Ada tagged type that is a derivation of a CPP
4695 (Build_Init_Procedure): Adding documentation plus code reorganization
4696 to leave more clear the construction of the IP with C++ types.
4697 (Expand_Freeze_Record_Type): Delay call to Set_CPP_Constructors because
4698 it cannot be called after Make_Tags has been invoked.
4699 (Inherit_CPP_Tag): Removed.
4700 (Init_Secondary_Tags): For derivations of CPP types, warn on tags
4701 located at variable offset.
4702 * freeze.ads: Minor reformating.
4703 * sem_ch8.adb (Write_Scopes): Add pragma export. Required to have it
4705 * gcc-interface/Make-lang.in: Update dependencies.
4707 2010-08-10 Robert Dewar <dewar@adacore.com>
4709 * a-chahan.ads: Add comments on handling of obsolescent entries.
4710 * opt.ads: Add Ada_2005 and Ada_2012 renamings for versions.
4711 * restrict.adb (Check_Obsolescent_2005_Entity): New procedure.
4712 * restrict.ads (Check_Obsolescent_2005_Entity): New procedure.
4713 * sem_attr.adb (Analyze_Access_Attribute): Call
4714 Check_Obsolescent_2005_Entity to check for access to obsolescent
4715 Ada.Characters.Handling subprogram.
4716 (Analyze_Attribute, case Class): Applying Class to untagged incomplete
4717 type is obsolescent in Ada 2005.
4718 (Analyze_Attribute, case Constrained): Better placement of flag when
4719 flagged as obsolescent feature.
4720 (Analyze_Attribute, case Storage_Size): Use with tasks is obsolescent
4721 * sem_ch10.adb (Analyze_With_Clause): With of renamings such as Text_IO
4722 is an obsolescent feature.
4723 * sem_ch11.adb (Analyze_Raise_Statement): Numeric_Error is obsolescent
4725 * sem_ch8.adb (Analyze_Subprogram_Renaming): Call
4726 Check_Obsolescent_2005_Entity to check for renaming obsolete
4727 Ada.Characters.Handling subprogram.
4728 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings): Check
4729 for obsolescent restrictions in Ada 2005.
4730 (Analyze_Pragma, case Suppress): Entity arg is obsolescent in Ada 2005
4731 (Analyze_Pragma, case Interface): Interface is obsolescent in Ada 2005
4732 * sem_res.adb (Resolve_Call): Call Check_Obsolescent_2005_Entity to
4733 check for obsolescent references to Ada.Characters.Handling subprograms
4735 2010-08-10 Robert Dewar <dewar@adacore.com>
4737 * einfo.adb, einfo.ads: Fix bad -gnatdt output for incomplete type.
4739 2010-08-10 Robert Dewar <dewar@adacore.com>
4741 * errout.ads: Add VMS table entries for 2005, 12, 2012 switches
4742 * par-ch4.adb: Change wording of Ada 2012 messages
4743 * vms_data.ads: Add VMS entries for /2005, /12, /2012
4745 2010-08-10 Robert Dewar <dewar@adacore.com>
4747 * a-suenco.adb (Convert): Fix bug in UTF-16 to UTF-8 conversion for
4748 codes in the range 16#80#..16#7FF#.
4749 * sem_ch10.adb: Minor reformatting.
4751 2010-08-10 Arnaud Charlet <charlet@adacore.com>
4753 * gnat1drv.adb (Scan_Front_End_Switches): Always perform semantics and
4754 generate ali files in CodePeer mode, so that a gnatmake -c -k will
4755 proceed further when possible
4756 * freeze.adb (Freeze_Static_Object): Fix thinko. Do not generate error
4757 messages when ignoring representation clauses (-gnatI).
4759 2010-08-10 Ed Schonberg <schonberg@adacore.com>
4761 * exp_ch4.adb (Expand_N_Selected_Component): Do not attempt to
4762 constant-fold discriminant reference if the constraint is an object
4763 with non-static expression. Expression may contain volatile references
4764 in the presence of renamings.
4766 2010-08-10 Vincent Celier <celier@adacore.com>
4768 * prj-proc.adb (Get_Attribute_Index): If Index is All_Other_Names,
4770 * prj-strt.adb (Attribute_Reference): Recognize 'others' as a valid
4771 index for an associative array where it is allowed.
4773 2010-08-10 Thomas Quinot <quinot@adacore.com>
4775 * exp_attr.adb: Add comments.
4777 2010-08-10 Jerome Lambourg <lambourg@adacore.com>
4779 * adaint.c (__gnat_get_file_names_case_sensitive): return 0 on darwin.
4781 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
4783 * gcc-interface/utils.c (gnat_poplevel): Use blocks_nreverse.
4785 2010-08-09 Eric Botcazou <ebotcazou@adacore.com>
4787 * gcc-interface/utils.c (build_vms_descriptor32): Fix formatting.
4788 (build_vms_descriptor): Likewise.
4790 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4792 * gcc-interface/utils.c (make_descriptor_field): Add tree parameter.
4793 (build_vms_descriptor32): Adjust calls to it for new parameter.
4794 (build_vms_descriptor): Likewise.
4796 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4798 * gcc-interface/decl.c (rec_variant): Declare. Declare a VEC of it.
4799 (build_variant_list): Take and return a VEC instead of a tree.
4800 (create_variant_part_from): Take a VEC instead of a tree for
4801 variant_list. Adjust accordingly.
4802 (gnat_to_gnu_entity): Adjust for changes to previous functions.
4804 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
4806 * gcc-interface/decl.c (gnat_to_gnu_entity): Use XALLOCAVEC instead
4808 (components_to_record): Likewise.
4809 * gcc-interface/trans.c (gnat_to_gnu): Likewise.
4810 * gcc-interface/utils.c (max_size): Likewise.
4811 (build_vms_descriptor32): Likewise.
4812 (build_vms_descriptor): Likewise.
4814 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
4816 * gcc-interface/decl.c (subst_pair): Declare. Declare a VEC of it.
4817 (build_subst_list): Return a VEC instead of a tree.
4818 (build_variant_list): Take a VEC for subst_list. Adjust
4820 (create_field_decl_from): Likewise.
4821 (create_variant_part_from): Likewise.
4822 (copy_and_substitute_in_size): Likewise.
4823 (gnat_to_gnu_entity): Adjust for new interface to build_subst_list.
4824 Free the built vector.
4826 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
4828 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not build an
4829 allocator for large imported objects.
4831 2010-08-05 Robert Dewar <dewar@adacore.com>
4833 * gnat1drv.adb: Minor reformatting.
4835 2010-08-05 Ed Schonberg <schonberg@adacore.com>
4837 * sem.adb (Do_Unit_And_Dependents): If some parent unit is an
4838 instantiation, process its body before the spec of the main unit,
4839 because it may contain subprograms invoked in the spec of main.
4840 * einfo.ads: Add documention of delayed freeze.
4842 2010-08-05 Vincent Celier <celier@adacore.com>
4844 * prj-nmsc.adb (Process_Linker): Take into account new values for
4845 attribute Response_File_Format.
4846 * prj.ads (Response_File_Format): New enumeration values GCC_GNU,
4847 GCC_Object_List and GCC_Option_List.
4849 2010-08-05 Ed Schonberg <schonberg@adacore.com>
4851 * exp_ch4.adb (Expand_N_Selected_Component): Do not constant-fold a
4852 selected component that denotes a discriminant if it is the
4853 discriminant of a component of an unconstrained record type.
4855 2010-08-05 Ed Schonberg <schonberg@adacore.com>
4857 * exp_util.adb (Insert_Actions): If the action appears within a
4858 conditional expression that is already analyzed, insert action further
4861 2010-08-05 Robert Dewar <dewar@adacore.com>
4863 * exp_ch4.adb: Minor reformatting.
4865 2010-08-05 Thomas Quinot <quinot@adacore.com>
4867 * exp_ch4.adb: Minor reformatting
4868 * gnat1drv.adb: Minor reformatting.
4869 Minor code reorganization (use Nkind_In).
4871 2010-08-05 Ed Schonberg <schonberg@adacore.com>
4873 * exp_util.ads, exp_util.adb (Needs_Constant_Address): New predicate to
4874 determine whether the expression in an address clause for an
4875 initialized object must be constant. Code moved from freeze.adb.
4876 (Remove_Side_Effects): When the temporary is initialized with a
4877 reference, indicate that the temporary is a constant as done in all
4879 * freeze.adb (Check_Address_Clause): use Needs_Constant_Address.
4880 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
4881 If object does not need a constant address, remove side effects from
4882 address expression, so it is elaborated at the point of the address
4883 clause and not at the freeze point of the object, so that elaboration
4886 2010-08-05 Vincent Celier <celier@adacore.com>
4888 * prj.adb (Is_Compilable): Return False for header files of non Ada
4891 2010-08-05 Emmanuel Briot <briot@adacore.com>
4893 * prj-nmsc.adb: The Missing_Source_Files flag also considers a missing
4894 exec directory as a warning rather than an error.
4896 2010-08-05 Thomas Quinot <quinot@adacore.com>
4898 * sem_ch6.adb, gnat1drv.adb, exp_ch6.adb, sem_eval.adb: Minor
4901 2010-08-05 Steve Baird <baird@adacore.com>
4903 * exp_util.adb (Remove_Side_Effects): An access value which designates
4904 a volatile object of a nonvolatile type is prohibited.
4905 Do not call Make_Reference to construct a reference to such an object.
4907 2010-08-05 Robert Dewar <dewar@adacore.com>
4909 * a-suezse.adb, a-suezse.ads, a-suezen.adb, a-suezen.ads: Removed.
4910 * a-suewse.adb, a-suewse.ads, a-suesen.adb, a-suesen.ads,
4911 a-suewen.adb, a-suewen.ads: New files.
4912 * Makefile.rtl, impunit.adb: Update implementation of Ada 2012 string
4914 * sem_elab.adb: Minor reformatting.
4916 2010-08-05 Arnaud Charlet <charlet@adacore.com>
4918 * sem_ch8.adb (Use_One_Type): Protect against empty scopes.
4919 * exp_util.adb (Component_May_Be_Bit_Aligned): Prevent assert failure
4920 in case of null Comp.
4922 2010-08-05 Robert Dewar <dewar@adacore.com>
4924 * errout.adb, a-suewen.adb, a-suezen.adb: Minor reformatting.
4926 2010-08-05 Gary Dismukes <dismukes@adacore.com>
4928 * sem_ch4.adb (Analyze_Allocator): Flag errors on allocators of a
4929 nested access type whose designated type has tasks or is a protected
4930 object when the restrictions No_Task_Hierarchy or
4931 No_Local_Protected_Objects apply. Add ??? comment.
4932 * sem_ch9.adb (Analyze_Protected_Type): Give a warning when a protected
4933 type is not a library-level type and No_Local_Protected_Objects applies.
4934 (Analyze_Task_Type): Give a warning when a task type is not a
4935 library-level type and No_Task_Hierarchy applies.
4937 2010-08-05 Arnaud Charlet <charlet@adacore.com>
4939 * sem.adb: Minor reformatting
4940 * sem_ch4.adb (Analyze_Reference): Disable error message in CodePeer
4943 2010-08-04 Eric Botcazou <ebotcazou@adacore.com>
4945 * gcc-interface/decl.c: Do not undefine IN_GCC_FRONTEND and do not
4947 (gnat_to_gnu_entity) <object>: Force address of -1 at the tree level
4948 for the debug-only entity.
4949 * gcc-interface/Make-lang.in (ada/decl.o): Adjust dependencies.
4951 2010-08-03 Joseph Myers <joseph@codesourcery.com>
4953 * gcc-interface/lang-specs.h: Don't pass -a options.
4955 2010-07-28 Joseph Myers <joseph@codesourcery.com>
4957 * gcc-interface/misc.c (gnat_init_options): Ignore erroneous
4958 options. Check canonical_option_num_elements on options copied.
4960 2010-07-27 Joseph Myers <joseph@codesourcery.com>
4962 * gcc-interface/misc.c (gnat_handle_option): Update prototype and
4963 return value type. Don't check for missing arguments here.
4965 2010-07-27 Joseph Myers <joseph@codesourcery.com>
4967 * gcc-interface/misc.c (gnat_option_lang_mask): New.
4968 (gnat_init_options): Update prototype. Reconstruct argv array
4969 from decoded options.
4971 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
4973 * gcc-interface/utils.c (update_pointer_to): In the unconstrained array
4974 case, merge the alias set of the old pointer type.
4976 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
4978 * gcc-interface/utils.c (gnat_types_compatible_p): Revert latest change
4979 and recurse only for multidimensional array types instead.
4981 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
4984 * gcc-interface/utils.c (convert): Fix thinko in test.
4985 (unchecked_convert): When converting from a scalar type to a type with
4986 a different size, pad to have the same size on both sides.
4988 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
4990 * gcc-interface/utils.c (gnat_types_compatible_p): Don't require strict
4991 equality for the component type of array types.
4993 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
4995 * gcc-interface/decl.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4996 * gcc-interface/trans.c: Likewise.
4997 * gcc-interface/utils.c: Likewise.
4998 * gcc-interface/utils2.c: Likewise.
5000 2010-07-13 Laurent GUERBY <laurent@guerby.net>
5003 * gcc-interface/targtyps.c: Include tm_p.h.
5004 * gcc-interface/Make-lang.in: Update dependencies.
5006 2010-07-09 Eric Botcazou <ebotcazou@adacore.com>
5008 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Deal with
5011 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5013 * gcc-interface/utils.c: Include diagnostic-core.h in every file
5014 that includes toplev.h.
5016 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
5018 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>:
5019 Branch to common code handling the alignment of discrete types.
5020 <E_Signed_Integer_Type>: Likewise.
5021 <E_Modular_Integer_Type>: Likewise.
5023 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
5025 * gcc-interface/misc.c (gnat_handle_option): Do not populate gnat_argv.
5026 (gnat_handle_option): Allocate only one element for gnat_argv.
5027 (gnat_init): Do not populate gnat_argv.
5029 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5031 * gcc-interface/trans.c: Do not include tree-flow.h.
5032 * gcc-interface/Make-lang.in: Adjust dependencies.
5034 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
5036 * gcc-interface/gigi.h (gnat_build_constructor): Take a VEC instead
5037 of a TREE_LIST. Update comment.
5038 * gcc-interface/trans.c (gigi): Build a VEC instead of a TREE_LIST.
5039 Adjust call to gnat_build_constructor.
5040 (Attribute_to_gnu): Likewise.
5041 (gnat_to_gnu): Likewise.
5042 (pos_to_constructor): Likewise.
5043 (extract_values): Likewise.
5044 * gcc-interface/utils.c (build_template): Likewise.
5045 (convert_vms_descriptor64): Likewise.
5046 (convert_vms_descriptor32): Likewise.
5047 (convert_to_fat_pointer): Likewise.
5048 (convert): Likewise.
5049 (unchecked_convert): Likewise.
5050 * gcc-interface/decl.c (gnat_to_gnu_entity): Likewise.
5051 * gcc-interface/utils2.c (build_allocator): Likewise.
5052 (fill_vms_descriptor): Likewise.
5053 (gnat_build_constructor): Take a VEC instead of a TREE_LIST.
5054 (compare_elmt_bitpos): Adjust for parameters being constructor_elts
5055 instead of TREE_LISTs.
5057 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
5059 * gcc-interface/misc.c: Do not include except.h.
5060 * gcc-interface/Make-lang.in: Update dependencies.
5062 2010-06-27 Eric Botcazou <ebotcazou@adacore.com>
5064 * gcc-interface/trans.c: Include tree-flow.h.
5065 (gnu_switch_label_stack): Delete.
5066 (Case_Statement_to_gnu): Do not emit the goto at the end of a case if
5067 its associated block cannot fall through. Do not emit the final label
5068 if no cases branch to it.
5069 * gcc-interface/Make-lang.in (ada/trans.o): Add $(TREE_FLOW_H).
5071 2010-06-23 Thomas Quinot <quinot@adacore.com>
5073 * exp_attr.adb (Expand_Access_To_Protected_Op): When rewriting a
5074 reference to a protected subprogram outside of the protected's scope,
5075 ensure the corresponding external subprogram is frozen before the
5078 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5080 * sem_prag.adb: Fix typo in error message.
5081 * sem.adb: Refine previous change.
5083 2010-06-23 Robert Dewar <dewar@adacore.com>
5085 * impunit.adb, a-suewen.adb, a-suewen.ads, a-suenco.adb, a-suenco.ads,
5086 a-suezen.adb, a-suezen.ads, a-stuten.adb, a-stuten.ads, Makefile.rtl:
5087 Implement Ada 2012 string encoding packages.
5089 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5091 * a-stwiun-shared.adb, a-stwiun-shared.ads, a-stzunb-shared.adb,
5092 a-stzunb-shared.ads, a-swunau-shared.adb, a-swuwti-shared.adb,
5093 a-szunau-shared.adb, a-szuzti-shared.adb, a-strunb-shared.adb,
5094 a-strunb-shared.ads, a-stunau-shared.adb, a-suteio-shared.adb: New
5096 * gcc-interface/Makefile.in: Enable use of above files.
5098 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5100 * sem_ch13.adb (Check_Constant_Address_Clauses): Do not check legality
5101 of address clauses if if Ignore_Rep_Clauses is active.
5102 * freeze.adb (Check_Address_Clause): If Ignore_Rep_Clauses is active,
5103 remove address clause from tree so that it does not reach the backend.
5105 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5107 * exp_attr.adb (Expand_N_Attribute_Reference [Attribute_Valid]): Do not
5108 expand 'Valid from user code in CodePeer mode, will be handled by the
5111 2010-06-23 Bob Duff <duff@adacore.com>
5113 * g-comlin.ads: Minor comment improvements.
5115 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5117 * sem_res.adb (Uses_SS): The expression that initializes a controlled
5118 component of a record type may be a user-defined operator that is
5119 rewritten as a function call.
5121 2010-06-23 Bob Duff <duff@adacore.com>
5123 * g-comlin.ads, sem_ch13.adb: Minor comment fix.
5125 2010-06-23 Eric Botcazou <ebotcazou@adacore.com>
5127 * exp_ch11.adb (Expand_Local_Exception_Handlers): Propagate the end
5128 label to the new sequence of statements. Set the sloc of the raise
5129 statement onto the new goto statements.
5131 2010-06-23 Robert Dewar <dewar@adacore.com>
5133 * a-stuten.ads, a-stuten.adb: New files.
5134 * impunit.adb: Add engtry for Ada.Strings.UTF_Encoding (a-stuten.ads)
5135 * Makefile.rtl: Add entry for a-stuten (Ada.Strings.UTF_Encoding)
5137 2010-06-23 Robert Dewar <dewar@adacore.com>
5139 * gnat_ugn.texi: Add documentation of -gnat12 switch
5140 Add documentation of -gnatX switch.
5142 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5144 * inline.ads: Include the current Ada_Version in the info for pending
5145 instance bodies, so that declaration and body are compiled with the
5147 * inline.adb: Move with_clause for Opt to spec.
5148 * sem_ch12.adb (Analyze_Package_Instantiation,
5149 Analyze_Subprogram_Instantiation): Save current Ada_Version in
5150 Pending_Instantiation information.
5151 (Instantiate_Package_Body, Instantiate_Subprogram_Body,
5152 Inline_Package_Body): Use the Ada_Version present in the body
5155 2010-06-23 Robert Dewar <dewar@adacore.com>
5157 * usage.adb: Add documentation for -gnat12 switch.
5158 * errout.ads: Add VMS alias entry for -gnat12 switch
5159 * gnat_rm.texi: Add documentation for pragma Ada_12 and Ada_2012
5160 Add documentation for pragma Extensions_Allowed.
5161 * opt.ads: Add entry for Ada 2012 mode.
5162 * sem_ch4.adb, par-ch3.adb, par-ch4.adb: Use new Ada 2012 mode for 2012
5164 * sem_prag.adb, par-prag.adb: Add processing for pragma Ada_12 and
5166 * sem_ch13.adb: Add handling for Ada 2012 mode.
5167 * snames.ads-tmpl: Add entries for pragma Ada_2012 and Ada_12.
5168 * switch-c.adb: Add handling for -gnat12 switch.
5169 Implement -gnat2005 and -gnat2012.
5170 * usage.adb: Add documentation for -gnat12 switch.
5171 * vms_data.ads: Add /12 switch for Ada 2012 mode.
5173 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5175 * exp_ch4.adb (Expand_N_Allocator): Fix potential crash when using
5176 No_Task_Hierarchy restriction. Add comment.
5177 * exp_ch9.adb, exp_ch3.adb: Update comments.
5179 2010-06-23 Robert Dewar <dewar@adacore.com>
5181 * sem_ch5.adb (Process_Bounds): Remove some junk initializations.
5182 * sem_res.adb: Add comments.
5183 * sem_util.adb: Minor reformatting. Add comments.
5184 Change increment on Actuals_In_Call table.
5185 * opt.ads: Minor: add 'constant'.
5187 2010-06-23 Javier Miranda <miranda@adacore.com>
5189 * exp_disp.adb (Make_DT): Initialize the Size_Func component of the
5190 TSD to Null_Address if No_Dispatching_Calls is active.
5192 2010-06-23 Vincent Celier <celier@adacore.com>
5194 * a-comlin.ads: Indicate that use of this package is not supported
5195 during the elaboration of an auto-initialized Stand-Alone Library.
5197 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5199 * exp_util.adb (Is_Possibly_Misaligned_Object): Do not rely on an
5200 alignment clause on a record type to determine if a component may be
5201 misaligned. The decision must be taken in the back-end where target
5202 alignment information is known.
5204 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5206 * gnat1drv.adb (Adjust_Global_Switches): Enable some restrictions
5207 systematically in CodePeer mode to simplify generated code.
5208 * restrict.adb (Check_Restriction): Do nothing in CodePeer mode.
5209 * exp_ch4.adb (Expand_N_Allocator): Generate proper code when
5210 No_Task_Hierarchy is set instead of crasshing.
5212 2010-06-23 Thomas Quinot <quinot@adacore.com>
5214 * sem_util.adb: Minor code cleanup: test for proper entity instead of
5215 testing just Chars attribute when checking whether a given scope is
5217 * exp_ch4.adb, einfo.adb: Minor reformatting.
5219 2010-06-23 Vincent Celier <celier@adacore.com>
5222 * switch-m.adb (Normalize_Compiler_Switches): Take into account
5223 switches -gnatB, -gnatD=nn, -gnatG (incuding -gnatG=nn), -gnatI,
5224 -gnatl=file, -gnatS, -gnatjnn, -gnateI=nn and -gnatWx.
5226 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5228 * sem_res.adb (Resolve_Membership_Op): If left operand is a mixed mode
5229 operation with a universal real operand, and the right operand is a
5230 range with universal bounds, find unique fixed point that may be
5231 candidate, and warn appropriately.
5233 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5235 * sem_res.adb (Resolve_Intrinsic_Operator): Add guards to handle
5236 properly the rare cases where VMS operators are visible through
5237 Extend_System, but the default System is being used and Address is a
5239 * sem_util.adb: Widen predicate Is_VMS_Operator.
5241 2010-06-23 Vincent Celier <celier@adacore.com>
5243 * switch-m.adb (Normalize_Compiler_Switches): Take into account -gnatC
5246 2010-06-23 Olivier Hainque <hainque@adacore.com>
5248 * einfo.adb (Has_Foreign_Convention): Consider Intrinsic with
5249 Interface_Name as foreign. These are GCC builtin imports for
5250 which Ada specific processing doesn't apply.
5252 2010-06-23 Thomas Quinot <quinot@adacore.com>
5254 * sem_ch12.adb: Minor reformatting.
5256 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5258 * sem_util.adb (Is_VMS_Operator): Use scope of system extension to
5259 determine whether an intrinsic subprogram is VMS specific.
5261 2010-06-23 Hristian Kirtchev <kirtchev@adacore.com>
5263 * treepr.adb (Print_Entity_Info): Output the contents of Field28 if it
5264 is present in the entity.
5266 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5268 * xr_tabls.adb, xref_lib.adb: Update to latest lib-xref.ads
5269 Fix handling of parameters.
5270 Add protection against unexpected cases.
5271 * sem_ch6.adb (Create_Extra_Formals): Use suffix "L" instead of "A" for
5272 access level, since "A" suffix is already used elsewhere. Similarly,
5273 use suffix "O" instead of "C" for 'Constrained since "C" suffix is used
5276 2010-06-23 Thomas Quinot <quinot@adacore.com>
5278 * sem_util.adb, sem_util.ads: Minor reformatting.
5280 2010-06-23 Vincent Celier <celier@adacore.com>
5282 * prj.ads (Gprclean_Flags.Missing_Source_Files): Set to Error to keep
5283 the previous behavior of gprclean when there are missing files.
5285 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5287 * sem_ch12.adb (Load_Body_Of_Generic): In CodePeer mode, a missing
5288 generic body is not a fatal error.
5289 (Mark_Context): Handle properly names of child units.
5290 * sem.adb (Walk_Library_Items.Do_Action): Remove assertion on
5293 2010-06-23 Vincent Celier <celier@adacore.com>
5295 * ali.adb (Scan_ALI): When ignoring R lines, do not skip the next
5298 2010-06-23 Bob Duff <duff@adacore.com>
5300 * g-pehage.ads, g-pehage.adb: Switch default optimization mode to
5301 Memory_Space, because CPU_Time doesn't seem to provide any significant
5302 speed advantage in practice. Cleanup: Get rid of constant
5303 Default_Optimization; doesn't seem to add anything. Use case
5304 statements instead of if statements; seems cleaner.
5306 2010-06-23 Olivier Hainque <hainque@adacore.com>
5308 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Procedure>: Use
5309 Wshadow instead of Wextra to guard warning on absence of internal
5310 builtin decl for an import. Fix use of quote in warning text.
5311 (intrin_arglists_compatible_p): Remove processing of integer trailing
5312 args on the Ada side. Fix use of literal > in warning text.
5313 (intrin_return_compatible_p): Never warn on "function imported as
5314 procedure". Defer the void/void case to the common type compatibility
5316 (gnat_to_gnu_param): Use void_ptr GCC type for System.Address argument
5317 of GCC builtin imports.
5319 2010-06-23 Olivier Hainque <hainque@adacore.com>
5321 * gcc-interface/decl.c (intrin_types_incompatible_p): New function,
5323 (intrin_arglists_compatible_p, intrin_return_compatible_p): New
5324 functions, helpers for ...
5325 (intrin_profiles_compatible_p): New function, replacement for ...
5326 (compatible_signatures_p): Removed.
5327 (gnat_to_gnu_entity) <case E_Procedure>: If -Wextra, warn on
5328 attempt to bind an unregistered builtin function. When we have
5329 one, use it and warn on profile incompatibilities.
5331 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5333 * gcc-interface/Make-lang.in: Update dependencies.
5335 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5337 * sem_util.adb (Mark_Coextensions): If the expression in the allocator
5338 for a coextension in an object declaration is a concatenation, treat
5339 coextension as dynamic.
5341 2010-06-23 Javier Miranda <miranda@adacore.com>
5343 * sem_ch3.adb (Add_Internal_Interface_Entities): Ensure that the
5344 internal entities are added to the scope of the tagged type.
5345 (Derive_Subprograms): Do not stop derivation when we find the first
5346 internal entity that has attribute Interface_Alias. After the change
5347 done to Override_Dispatching_Operations it is no longer true that
5348 these primirives are always located at the end of the list of
5350 * einfo.ads (Primitive_Operations): Add documentation.
5351 * exp_disp.adb (Write_DT): Improve output adding to the name of the
5352 primitive a prefix indicating its corresponding tagged type.
5353 * sem_disp.adb (Override_Dispatching_Operations): If the overridden
5354 entity covers the primitive of an interface that is not an ancestor of
5355 this tagged type then the new primitive is added at the end of the list
5356 of primitives. Required to fulfill the C++ ABI.
5358 2010-06-23 Javier Miranda <miranda@adacore.com>
5360 * atree.ads (Set_Reporting_Proc): New subprogram.
5361 * atree.adb: Remove dependency on packages Opt and SCIL_LL.
5362 (Allocate_Initialize_Node, Replace, Rewrite): Replace direct calls
5363 to routines of package Scil_ll by indirect call to the registered
5365 (Set_Reporting_Proc): New subprogram. Used to register a subprogram
5366 that is invoked when a node is allocated, replaced or rewritten.
5367 * scil_ll.adb (Copy_SCIL_Node): New routine that takes care of copying
5368 the SCIL node. Used as argument for Set_Reporting_Proc.
5369 (Initialize): Register Copy_SCIL_Node as the reporting routine that
5370 is invoked by atree.
5372 2010-06-23 Thomas Quinot <quinot@adacore.com>
5374 * sem_ch3.ads: Minor reformatting.
5376 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5378 * sem_ch12.adb (Analyze_Package_Instantiation): In CodePeer mode,
5379 always analyze the generic body and instance, because it may be needed
5381 (Mark_Context): Prepend the with clauses for needed generic units, so
5382 they appear in a better order for CodePeer.
5383 * sem_util.adb, sem_util.ads: Prototype code for AI05-0144.
5385 2010-06-23 Emmanuel Briot <briot@adacore.com>
5387 * prj.ads, prj-nmsc.adb (Error_Or_Warning): New subprogram.
5389 2010-06-23 Robert Dewar <dewar@adacore.com>
5391 * g-pehage.adb, exp_ch13.adb: Minor reformatting.
5393 2010-06-23 Thomas Quinot <quinot@adacore.com>
5395 * a-tags.ads: Fix description of TSD structure.
5397 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5399 * sem_ch12.adb (Mark_Context): When indicating that the body of a
5400 generic unit is needed prior to the unit containing an instantiation,
5401 search recursively the context of the generic to add other generic
5402 bodies that may be instantiated indirectly through the current instance.
5404 2010-06-23 Robert Dewar <dewar@adacore.com>
5406 * freeze.adb: Minor reformatting.
5408 2010-06-23 Bob Duff <duff@adacore.com>
5410 * g-pehage.adb (Trim_Trailing_Nuls): Fix the code to match the comment.
5412 2010-06-23 Vincent Celier <celier@adacore.com>
5414 * make.adb (Compile_Sources): Complete previous change.
5416 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5418 * sem_ch6.adb (Add_Extra_Formal): Use suffix "C" in the name of the
5419 Constrained extra formal.
5421 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5423 * exp_ch13.adb (Expand_Freeze_Actions): If validity checks and
5424 Initialize_Scalars are enabled, compile the generated equality function
5425 for a composite type with full checks enabled, so that validity checks
5426 are performed on individual components.
5428 2010-06-23 Emmanuel Briot <briot@adacore.com>
5430 * prj.adb, prj.ads, prj-nmsc.adb (Processing_Flags): New flag
5431 Missing_Source_Files.
5433 2010-06-23 Robert Dewar <dewar@adacore.com>
5435 * exp_ch3.adb, exp_util.adb: Minor reformatting.
5437 2010-06-23 Jose Ruiz <ruiz@adacore.com>
5439 * a-reatim.adb, a-retide.adb: Move the initialization of the tasking
5440 run time from Ada.Real_Time.Delays to Ada.Real_Time. This way, calls to
5441 Clock (without delays) use a run time which is properly initialized.
5443 2010-06-23 Vincent Celier <celier@adacore.com>
5445 * make.adb: Do not set Check_Readonly_Files when setting Must_Compile,
5446 when -f -u and a main is specified on the command line. However,
5447 attempt to compile even when the ALI file is read-only when
5448 Must_Compile is True.
5450 2010-06-23 Thomas Quinot <quinot@adacore.com>
5452 * checks.adb, g-pehage.adb, cstand.adb: Minor code factorization.
5454 2010-06-23 Javier Miranda <miranda@adacore.com>
5456 * sem_ch3.adb (Add_Internal_Interface_Entities): Generate internal
5457 entities for parent types that are interfaces. Needed in generics to
5458 handle formals that implement interfaces.
5459 (Derive_Subprograms): Add assertion for derivation of tagged types that
5460 do not cover interfaces. For generics, complete code that handles
5461 derivation of type that covers interfaces because the previous
5462 condition was weak (it required only name consistency; arguments were
5463 not checked). Add new code to locate primitives covering interfaces
5464 defined in generic units or instantiatons.
5465 * sem_util.adb (Has_Interfaces): Add missing support for derived types.
5466 * sem_ch6.adb (Check_Overriding_Indicator): Minor code cleanups.
5467 * exp_disp.adb (Make_Select_Specific_Data_Table): Skip primitives of
5468 interfaces that are parents of the type because they share the primary
5470 (Register_Primitive): Do not register primitives of interfaces that
5471 are parents of the type.
5472 * sem_ch13.adb (Analyze_Freeze_Entity): Add documentation.
5473 * exp_cg.adb (Write_Type_Info): When displaying overriding of interface
5474 primitives skip primitives of interfaces that are parents of the type.
5476 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5478 * sem_attr.adb (Eval_Attribute): If the prefix is an array, the
5479 attribute cannot be constant-folded if an index type is a formal type,
5480 or is derived from one.
5481 * checks.adb (Determine_Range): ditto.
5483 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5485 * gnat_ugn.texi, gnatxref.adb: Add support for --ext switch.
5487 2010-06-23 Bob Duff <duff@adacore.com>
5489 * g-pehage.ads, g-pehage.adb (Put): Fix off-by-one bug.
5490 (Insert): Disallow nul characters.
5491 (misc output routines): Assert no nul characters.
5493 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5495 * exp_ch4.adb: Use predefined unsigned type in all cases.
5497 2010-06-23 Bob Duff <duff@adacore.com>
5499 * s-rannum.adb (Reset): Avoid overflow in calculation of Initiator.
5500 * g-pehage.ads: Minor comment fixes.
5501 * g-pehage.adb: Minor: Add some additional debugging printouts under
5504 2010-06-23 Robert Dewar <dewar@adacore.com>
5506 * binde.adb (Better_Choice): Always prefer Pure/Preelab.
5507 (Worse_Choice): Always prefer Pure/Preelab.
5509 2010-06-23 Vincent Celier <celier@adacore.com>
5511 * a-reatim.adb: Call System.OS_Primitives.Initialize during elaboration
5513 2010-06-23 Robert Dewar <dewar@adacore.com>
5515 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Properly handle
5516 checking returns in generic case.
5517 (Check_Missing_Return): New procedure.
5519 2010-06-23 Robert Dewar <dewar@adacore.com>
5521 * bindgen.adb, switch-b.adb: Minor reformatting.
5523 2010-06-23 Javier Miranda <miranda@adacore.com>
5525 * frontend.adb (Frontend): Add call to initialize the new package
5527 * exp_ch7.adb (Wrap_Transient_Expression): Remove call to
5529 (Wrap_Transient_Statement): Remove call to Adjust_SCIL_Node.
5530 * sem_ch5.adb (Analyze_Iteration_Scheme.Process_Bounds): Remove call to
5532 * exp_util.adb (Insert_Actions): Remove code for
5533 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
5534 (Remove_Side_Effects): Remove calls to Adjust_SCIL_Node.
5535 * sinfo.adb (SCIL_Entity, SCIL_Tag_Value): Remove checks on
5536 N_SCIL_Tag_Init and N_SCIL_Dispatch_Table_Object_Init in the assertion.
5537 (SCIL_Related_Node, Set_SCIL_Related_Node): Removed.
5538 * sinfo.ads (SCIL_Related_Node): Field removed.
5539 (N_SCIL_Dispatch_Table_Object_Init): Node removed.
5540 (N_SCIL_Tag_Init): Node removed.
5541 * sem_scil.ads, sem_scil.adb (Adjust_SCIL_Node): Removed.
5542 (Check_SCIL_Node): New implementation.
5543 (Find_SCIL_Node): Removed.
5544 * sem.adb (Analyze): Remove management of
5545 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
5546 * sem_util.adb (Insert_Explicit_Dereference): Remove call to
5548 * exp_ch4.adb (Expand_N_In): Code cleanup: remove call to
5549 Set_SCIL_Related_Node and avoid adding the SCIL node before the
5550 referenced node using Insert_Action because this is not longer
5552 (Expand_Short_Circuit_Operator): Remove call to SCIL node.
5553 * exp_ch6.adb (Expand_Call): Remove call to Adjust_SCIL_Node.
5554 * sem_ch4.adb (Analyze_Type_Conversion): Remove call to
5556 * exp_disp.adb (Expand_Dispatching_Call): Minor code reorganization
5557 because we no longer require to generate the SCIL node before the call.
5558 (Make_DT): Remove generation of SCI_Dispatch_Table_Object_Init node.
5559 Remove calls to Set_SCIL_Related_Node and avoid adding the SCIL
5560 nodes before the referenced node using Insert_Action because this
5561 is not longer required.
5562 * atree.adb (Allocate_Initialize_Node, Replace, Rewrite): Add call to
5563 update the SCIL_Node field.
5564 * sprint.adb (Sprint_Node_Actual): Remove code for
5565 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
5566 * treepr.adb (Print_Node): Print the SCIL node field (if available).
5567 * exp_ch3.adb (Build_Init_Procedure): Remove generation of
5568 SCIL_Tag_Init nodes.
5569 * scil_ll.ads, scil_ll.adb: New files.
5570 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
5573 2010-06-23 Robert Dewar <dewar@adacore.com>
5575 * sem_ch6.adb: Minor reformatting.
5577 2010-06-23 Doug Rupp <rupp@adacore.com>
5579 * bindusg.adb (Display): Write -Hnn line.
5580 * bindgen.adb (Gen_Adainit_Ada): Write Heap_Size to binder file as
5582 * init.c (__gl_heap_size): Rename from __gl_no_malloc_64 and change
5583 valid values to 32 and 64.
5584 (GNAT$NO_MALLOC_64): Recognize TRUE, 1, FALSE, and 0 in addition to
5585 ENABLE, DISABLE as valid settings.
5586 * switch-b.adb (Scan_Binder_Switches): Process -Hnn switch.
5587 * opt.ads (Heap_Size): New global variable.
5588 * gcc-interface/utils2.c (maybe_wrap_malloc): Remove mostly redundant
5589 TARGET_MALLOC64 check. Fix comment.
5591 2010-06-23 Robert Dewar <dewar@adacore.com>
5593 * sem_ch6.adb, exp_ch4.adb, s-rannum.ads, sem.adb, sem_ch12.adb: Minor
5594 reformatting. Add comments.
5595 * errout.adb (Finalize): Properly adjust warning count when deleting
5598 2010-06-22 Robert Dewar <dewar@adacore.com>
5600 * errout.adb (Finalize): Set Prev pointers.
5601 (Finalize): Delete continuations for deletion by warnings off(str).
5602 * erroutc.ads: Add Prev pointer to error message structure.
5604 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5606 * sem.adb (Do_Unit_And_Dependents): If the spec of the main unit is a
5607 child unit, examine context of parent units to locate instantiated
5608 generics whose bodies may be needed.
5609 * sem_ch12.adb: (Mark_Context): if the enclosing unit does not have a
5610 with_clause for the instantiated generic, examine the context of its
5611 parents, to set Withed_Body flag, so that it can be visited earlier.
5612 * exp_ch4.adb (Expand_N_Op_Not): If this is a VMS operator applied to
5613 an unsigned type, use a type of the proper size for the intermediate
5614 value, to prevent alignment problems on unchecked conversion.
5616 2010-06-22 Geert Bosch <bosch@adacore.com>
5618 * s-rannum.ads Change Generator type to be self-referential to allow
5619 Random to update its argument. Use "in" mode for the generator in the
5620 Reset procedures to allow them to be called from the Ada.Numerics
5621 packages without tricks.
5622 * s-rannum.adb: Use the self-referencing argument to get write access
5623 to the internal state of the random generator.
5624 * a-nudira.ads: Make Generator a derived type of
5625 System.Random_Numbers.Generator.
5626 * a-nudira.adb: Remove use of 'Unrestricted_Access.
5627 Put subprograms in alpha order and add headers.
5628 * g-mbdira.ads: Change Generator type to be self-referential.
5629 * g-mbdira.adb: Remove use of 'Unrestricted_Access.
5631 2010-06-22 Robert Dewar <dewar@adacore.com>
5633 * freeze.adb: Minor reformatting
5634 Minor code reorganization (use Nkind_In and Ekind_In).
5636 2010-06-22 Bob Duff <duff@adacore.com>
5638 * gnat1drv.adb (Gnat1drv): Remove the messages that recommend using
5639 -gnatc when a file is compiled that we cannot generate code for, not
5640 helpful and confusing.
5642 2010-06-22 Vincent Celier <celier@adacore.com>
5644 * switch-m.adb (Normalize_Compiler_Switches): Process correctly
5647 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
5649 * s-rannum.adb: Replace constants with commented symbols.
5650 * s-rannum.ads: Explain significance of the initial value of the data
5653 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5655 * a-ngcoty.adb: Clarify comment.
5657 2010-06-22 Gary Dismukes <dismukes@adacore.com>
5659 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Return without
5660 expansion for indexing packed arrays with small power-of-2 component
5661 sizes when the target is AAMP.
5662 (Expand_Packed_Element_Reference): Return without expansion for
5663 indexing packed arrays with small power-of-2 component sizes when the
5666 2010-06-22 Geert Bosch <bosch@adacore.com>
5668 * exp_ch4.adb (Expand_N_In): Do not substitute a valid check for X in
5671 2010-06-22 Robert Dewar <dewar@adacore.com>
5673 * g-mbdira.adb, g-mbflra.adb, a-nuflra.adb, a-nudira.adb: Minor comment
5676 2010-06-22 Doug Rupp <rupp@adacore.com>
5678 * system-vms.ads, system-vms-zcx.ads: Remove old unused VMS system
5680 * system-vms_64.ads, system-vms-ia64.ads: Minor reformatting.
5681 (pragma Ident): Add a default ident string in the private part.
5683 2010-06-22 Robert Dewar <dewar@adacore.com>
5685 * cstand.adb: Minor reformatting.
5687 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5689 * freeze.adb (Build_And_Analyze_Renamed_Body): For expansion purposes,
5690 recognize the Shift and Rotation intrinsics that are known to the
5691 compiler but have no interface name.
5693 2010-06-22 Geert Bosch <bosch@adacore.com>
5695 * a-ngcoty.adb ("*"): Rewrite complex multiplication to use proper
5696 scaling in case of overflow or NaN results.
5698 2010-06-22 Robert Dewar <dewar@adacore.com>
5700 * cstand.adb: Complete previous change.
5701 * g-dirope.ads: Add comment.
5702 * s-stchop.adb, sfn_scan.adb: Minor reformatting.
5704 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5706 * cstand.adb: Add tree nodes for pragma Pack on string types.
5708 2010-06-22 Javier Miranda <miranda@adacore.com>
5710 * einfo.ads, einfo.adb (Last_Formal): New synthesized attribute.
5711 * exp_util.adb (Find_Prim_Op): Use new attribute to locate the last
5712 formal of a primitive.
5713 * exp_disp.adb (Is_Predefined_Dispatching_Operation,
5714 Is_Predefined_Dispatching_Alias): Use new attribute to locate the last
5715 formal of a primitive.
5716 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Use new attribute
5717 to obtain the last formal of a primitive.
5719 2010-06-22 Geert Bosch <bosch@adacore.com>
5721 * sysdep.c, init.c, adaint.c, cstreams.c: Remove conditional code
5722 depending on __EMX__ or MSDOS being defined.
5723 * i-cstrea.ads, gnat_rm.texi: Remove mentions of OS/2, DOS and Xenix.
5724 * a-excpol-abort.adb: Update comment indicating users of the file.
5725 * xref_lib.adb, sfn_scan.adb: Remove mention of OS/2, replace NT by
5727 * env.c: Remove empty conditional for MSDOS.
5728 * s-stchop.adb, g-dirope.ads, s-fileio.adb, osint.ads: Remove mention
5731 2010-06-22 Robert Dewar <dewar@adacore.com>
5733 * s-rannum.adb: Minor reformatting.
5735 2010-06-22 Javier Miranda <miranda@adacore.com>
5737 * sem_aux.adb, sem_aux.ads, sem_util.adb, sem_util.ads, sem_elim.adb,
5738 exp_cg.adb: Minor code reorganization: Move routine Ultimate_Alias from
5739 package Sem_Util to package Sem_Aux.
5741 2010-06-22 Javier Miranda <miranda@adacore.com>
5743 * exp_disp.adb (Make_Secondary_DT, Make_DT): Minor code cleanup:
5744 remove useless restriction on imported routines when building the
5747 2010-06-22 Robert Dewar <dewar@adacore.com>
5749 * cstand.adb (Create_Standard): Set Has_Pragma_Pack for standard string
5752 2010-06-22 Javier Miranda <miranda@adacore.com>
5754 * sem_ch4.adb (Collect_Generic_Type_Ops): Protect code that handles
5755 generic subprogram declarations to ensure proper context. Add missing
5756 support for generic actuals.
5757 (Try_Primitive_Operation): Add missing support for concurrent types
5758 that have no Corresponding_Record_Type. Required to diagnose errors
5760 generics or when compiling with no code generation (-gnatc).
5761 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Do not build
5762 the corresponding record type.
5763 * sem_disp.ads, sem_disp.adb (Check_Dispatching_Operation): Complete
5764 documentation. Do minimum decoration when processing a primitive of a
5765 concurrent tagged type that covers interfaces. Required to diagnose
5766 errors in the Object.Operation notation compiling generics or under
5768 * exp_ch9.ads, exp_ch9.adb (Build_Corresponding_Record): Add missing
5769 propagation of attribute Interface_List to the corresponding record.
5770 (Expand_N_Task_Type_Declaration): Code cleanup.
5771 (Expand_N_Protected_Type_Declaration): Code cleanup.
5773 2010-06-22 Matthew Heaney <heaney@adacore.com>
5775 * a-convec.adb, a-coinve.adb: Removed 64-bit types Int and UInt.
5777 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
5779 * s-rannum.adb (Random_Float_Template): Replace with unbiased version
5780 that is able to produce all representable floating-point numbers in the
5781 unit interval. Remove template parameter Shift_Right, no longer used.
5782 * gnat_rm.texi: Document the period of the pseudo-random number
5783 generator under the description of its algorithm.
5784 * gcc-interface/Make-lang.in: Update dependencies.
5786 2010-06-22 Thomas Quinot <quinot@adacore.com>
5788 * exp_aggr.adb (Rewrite_Discriminant): Fix predicate used to identify
5789 reference to discriminant (can be an expanded name as well as an
5792 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5794 * exp_ch6.adb: Clarify comment.
5796 2010-06-22 Geert Bosch <bosch@adacore.com>
5798 * exp_imgv.adb (Expand_Image_Attribute): Treat ordinary fixed point
5799 with decimal small as decimal types, avoiding FP arithmetic.
5800 (Has_Decimal_Small): New function.
5801 * einfo.ads, einfo.adb (Aft_Value): New synthesized attributed for
5803 * sem_attr.adb (Eval_Attribute): Remove Aft_Value function and update
5804 callers to call the new function in Einfo that takes the entity as
5807 2010-06-22 Robert Dewar <dewar@adacore.com>
5809 * sem_ch3.adb, sem_ch8.adb: Minor reformatting.
5811 2010-06-22 Thomas Quinot <quinot@adacore.com>
5813 * sem_elab.adb: Minor reformatting.
5815 2010-06-22 Vincent Celier <celier@adacore.com>
5817 * gnatsym.adb: Put the object files in the table in increasing
5818 aphabetical order of base names.
5820 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5822 * sem_ch8.adb (Set_Entity_Or_Discriminal): New procedure used by
5823 Find_Direct_Name and Find_Expanded_Name, to replace a discriminant with
5824 the corresponding discriminal within a record declaration.
5826 2010-06-22 Thomas Quinot <quinot@adacore.com>
5828 * exp_aggr.adb (Rewrite_Discriminant): Rewriting must occur only for an
5829 expression referring to a discriminal of the type of the aggregate (not
5830 a discriminal of some other unrelated type), and the prefix in the
5831 generated selected component must come from Lhs, not Obj.
5833 2010-06-22 Thomas Quinot <quinot@adacore.com>
5835 * sem_ch3.adb (Build_Derived_Record_Type): Fix predicate determining
5836 when to freeze the parent type.
5838 2010-06-22 Robert Dewar <dewar@adacore.com>
5840 * s-rannum.adb, a-nudira.adb, types.ads, freeze.adb, sem_aggr.adb,
5841 exp_aggr.adb: Minor reformatting.
5842 * gnat_rm.texi: Document GNAT.MBBS_Discrete_Random and
5843 GNAT.MBSS_Float_Random.
5844 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: Fix header.
5846 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
5848 * a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-nuflra.ads,
5849 gnat_rm.texi, impunit.adb, Makefile.rtl, s-rannum.adb
5850 (Random_Float_Template, Random): New method of creating
5851 uniform floating-point variables that allow the creation of all machine
5854 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: New file.
5856 2010-06-22 Gary Dismukes <dismukes@adacore.com>
5858 * sem_ch5.adb (Analyze_Assignment): Revise test for illegal assignment
5859 to abstract targets to check that the type is tagged and comes from
5860 source, rather than only testing for targets of interface types. Remove
5863 2010-06-22 Vincent Celier <celier@adacore.com>
5865 * vms_data.ads: Modify the declarations of qualifiers
5866 /UNCHECKED_SHARED_LIB_IMPORTS to allow the generation of gnat.hlp
5869 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5871 * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false if
5872 expansion is disabled.
5874 2010-06-22 Robert Dewar <dewar@adacore.com>
5876 * makeusg.adb: Minor reformatting.
5878 2010-06-22 Robert Dewar <dewar@adacore.com>
5880 * types.ads: (Dint): Removed, no longer used anywhere.
5881 * uintp.adb (UI_From_CC): Use UI_From_Int, range is sufficient.
5882 (UI_Mul): Avoid use of UI_From_Dint.
5883 (UI_From_Dint): Removed, not used.
5884 * uintp.ads (UI_From_Dint): Removed, not used.
5885 (Uint_Min/Max_Simple_Mul): New constants.
5887 2010-06-22 Vincent Celier <celier@adacore.com>
5889 * clean.adb (Parse_Cmd_Line): Recognize switch
5890 --unchecked-shared-lib-imports.
5891 (Usage): Add line for switch --unchecked-shared-lib-imports
5892 * makeusg.adb: Add line for switch --unchecked-shared-lib-imports
5893 * makeutl.ads: (Unchecked_Shared_Lib_Imports): New constant string
5894 moved from GPR_Util.
5895 * switch-m.adb (Scan_Make_Switches): Recognize switch
5896 --unchecked-shared-lib-imports.
5897 * vms_data.ads: Add VMS qualifiers /UNCHECKED_SHARED_LIB_IMPORTS.
5898 * gnat_ugn.texi: Add documentation for new switch
5899 --unchecked-shared-lib-imports. Add also documentation for --subdirs.
5901 2010-06-22 Javier Miranda <miranda@adacore.com>
5903 * sem_prag.adb, sem_util.adb, sem_util.ads, sem_attr.adb, exp_ch6.adb,
5904 exp_disp.adb, sem_eval.adb, exp_dist.adb lib-xref.adb: Code cleanup,
5905 this patch replaces duplication of code that traverses the chain of
5906 aliased primitives by a call to routine Ultimate_Alias that
5907 provides this functionality.
5909 2010-06-22 Arnaud Charlet <charlet@adacore.com>
5911 * fmap.adb, opt.ads, osint.adb, osint.ads, output.ads, scng.adb,
5912 sinput-c.adb, switch-m.ads, tree_io.ads: Use simpler form of
5915 2010-06-22 Thomas Quinot <quinot@adacore.com>
5917 * einfo.ads: Minor reformatting.
5919 2010-06-22 Javier Miranda <miranda@adacore.com>
5921 * exp_disp.adb (Expand_Interface_Thunk): Do not generate thunk of
5922 eliminated primitives.
5923 (Make_DT): Avoid referencing eliminated primitives.
5924 (Register_Primitive): Do not register eliminated primitives in the
5925 dispatch table. Required to add this functionality when the program is
5926 compiled without static dispatch tables (-gnatd.t)
5928 2010-06-22 Emmanuel Briot <briot@adacore.com>
5930 * fmap.adb, scng.adb, switch-m.ads, sinput-c.adb, opt.ads, output.ads,
5931 tree_io.ads, osint.adb, osint.ads: Use configuration pragmas to prevent
5932 warnings on use of internal GNAT units.
5934 2010-06-22 Jose Ruiz <ruiz@adacore.com>
5936 * s-taprop-vxworks.adb (Set_Priority): Update comments.
5938 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
5940 * s-rannum.adb: Make stylistic change to remove mystery constant in
5941 Extract_Value. Image_Numeral_Length: new symbolic constant.
5943 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5945 * einfo.ads, einfo.adb: Make Is_Protected_Interface,
5946 Is_Synchronized_Interface, Is_Task_Interface into computable
5947 predicates, to free three flags in entity nodes.
5948 * sem_ch3.adb: Remove setting of these flags.
5950 2010-06-22 Robert Dewar <dewar@adacore.com>
5952 * uintp.adb, osint.adb, prj-conf.adb, prj-part.adb, prj.adb: Minor
5954 * s-taprop-vxworks.adb: Add comment for Set_Priority.
5955 * impunit.adb (Map_Array): Add entries for s-htable.ads and s-crc32.ads
5956 * projects.texi: Move @cindex to the left margin, since otherwise we
5957 are missing entries in the index.
5959 2010-06-22 Emmanuel Briot <briot@adacore.com>
5961 * prj-part.adb, prj.adb, tempdir.ads, makeutl.adb: Use
5962 packages from the GNAT hierarchy instead of System when possible.
5963 * gcc-interface/Make-lang.in: Update dependencies.
5965 2010-06-22 Jose Ruiz <ruiz@adacore.com>
5967 * s-taprop-vxworks.adb (Set_Priority): Remove the code that was
5968 previously in place to reorder the ready queue when a task drops its
5969 priority due to the loss of inherited priority.
5971 2010-06-22 Vincent Celier <celier@adacore.com>
5973 * projects.texi: Minor spelling error fixes.
5976 2010-06-22 Emmanuel Briot <briot@adacore.com>
5978 * prj-part.adb, prj-ext.adb, prj.adb, makeutl.adb, prj-conf.adb: Remove
5979 warnings for some with clauses.
5981 2010-06-22 Robert Dewar <dewar@adacore.com>
5983 * errout.adb (Unwind_Internal_Type): Improve handling of First_Subtype
5984 test to catch more cases where first subtype is the results we want.
5985 * sem_res.adb (Make_Call_Into_Operator): Don't go to First_Subtype in
5986 error case, since Errout will now handle this correctly.
5987 * gcc-interface/Make-lang.in: Add Sem_Aux to list of GNATBIND objects.
5988 Update dependencies.
5990 2010-06-22 Arnaud Charlet <charlet@adacore.com>
5992 * exp_ch4.adb (Expand_Allocator_Expression): Set Related_Node properly
5993 when calling Make_Temporary.
5995 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5997 * sem_ch3.adb (Access_Subprogram_Declaration): An anonymous access to
5998 subprogram can be associated with an entry body.
6000 2010-06-22 Robert Dewar <dewar@adacore.com>
6002 * scos.ads: Add note on membership test handling.
6004 2010-06-22 Vincent Celier <celier@adacore.com>
6006 * projects.texi: Minor spelling fixes.
6009 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6011 * s-rannum.adb: Correct off-by-one error in Extract_Value.
6013 2010-06-22 Vincent Celier <celier@adacore.com>
6015 * mlib-prj.adb (Display): In non verbose mode, truncate after fourth
6017 * mlib-utl.adb (Gcc): In non verbose mode, truncate the display of the
6018 gcc command if it is too long.
6020 2010-06-22 Robert Dewar <dewar@adacore.com>
6022 * errout.adb (Set_Msg_Node): Fix incorrect reference to node.
6024 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6026 * exp_ch6.adb (Expand_Actuals): Use Actual as the related node when
6027 calling Make_Temporary.
6029 2010-06-22 Robert Dewar <dewar@adacore.com>
6031 * sem_res.adb, sem_aux.adb, errout.adb: Minor reformatting.
6033 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6035 * sem_res.adb: Additional special-case for VMS.
6037 2010-06-22 Vincent Celier <celier@adacore.com>
6039 * gnatsym.adb: Minor comment fix.
6041 2010-06-22 Vincent Celier <celier@adacore.com>
6043 * prj-nmsc.adb (Process_Naming_Scheme): Initialize Lib_Data_Table.
6045 2010-06-22 Robert Dewar <dewar@adacore.com>
6047 * par-ch4.adb (P_Name): Recognize 'Mod attribute in Ada 95 mode
6048 * sem_attr.adb (Attribute_05): Add Name_Mod so that 'Mod recognized in
6049 Ada 95 mode as an implementation defined attribute.
6051 2010-06-22 Vincent Celier <celier@adacore.com>
6053 * bindusg.adb (Display): Update line for -R
6054 * switch-b.adb (Scan_Binder_Switches): Allow generation of the binder
6055 generated files when -R is used.
6057 2010-06-22 Vincent Celier <celier@adacore.com>
6059 * prj-nmsc.adb (Lib_Data_Table): New table.
6060 (Check_Library_Attributes): Check if the same library name is used in
6061 two different projects that do not extend each other.
6063 2010-06-22 Robert Dewar <dewar@adacore.com>
6065 * lib-writ.ads, errout.adb, einfo.adb, einfo.ads: Minor reformatting.
6067 2010-06-22 Vincent Celier <celier@adacore.com>
6069 * adaint.c (__gnat_locate_regular_file): If a directory in the path is
6070 empty, make it the current working directory.
6072 2010-06-22 Thomas Quinot <quinot@adacore.com>
6074 * sem_ch3.adb (Build_Derived_Record_Type): When deriving a tagged
6075 private type with discriminants, make sure the parent type is frozen.
6077 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
6079 * exp_attr.adb (Expand_N_Attribute_Reference) <Attribute_Bit>: Deal
6080 with packed array references specially.
6081 * exp_ch4.adb (Expand_N_Indexed_Component): Do not convert a reference
6082 to a component of a bit packed array if it is the prefix of 'Bit.
6083 * exp_pakd.ads (Expand_Packed_Bit_Reference): Declare.
6084 * exp_pakd.adb (Expand_Packed_Bit_Reference): New procedure. Expand a
6085 'Bit reference, where the prefix involves a packed array reference.
6086 (Get_Base_And_Bit_Offset): New helper, extracted from...
6087 (Expand_Packed_Address_Reference): ...here. Call above procedure to
6088 get the outer object and offset expression.
6090 2010-06-22 Thomas Quinot <quinot@adacore.com>
6092 * exp_attr.adb, lib-writ.ads, bindgen.adb: Minor reformatting.
6093 * einfo.adb (Related_Expression, Set_Related_Expression): Add
6096 2010-06-22 Javier Miranda <miranda@adacore.com>
6098 * sem_ch3.adb (Add_Internal_Interface_Entities): Minor code
6099 reorganization to properly check if the operation has been inherited as
6100 an abstract operation.
6102 2010-06-22 Ed Falis <falis@adacore.com>
6104 * s-osinte-vxworks.ads: Complete previous change.
6106 2010-06-22 Thomas Quinot <quinot@adacore.com>
6108 * sem_res.adb: Add comment.
6109 * projects.texi, gnat_ugn.texi: Remove macro.
6111 2010-06-22 Vincent Celier <celier@adacore.com>
6113 * prj-attr.adb: Remove project level attribute Main_Language.
6115 2010-06-22 Robert Dewar <dewar@adacore.com>
6117 * switch-b.adb, osint-b.adb: Minor reformatting.
6119 2010-06-22 Pascal Obry <obry@adacore.com>
6121 * g-socthi-mingw.adb (C_Sendmsg): Do not attempt to send data from a
6122 vector if previous send was not fully successful. If only part of
6123 the vector data was sent, we exit the loop.
6125 2010-06-22 Thomas Quinot <quinot@adacore.com>
6127 * sem_res.adb (Make_Call_Into_Operator): Use First_Subtype for better
6128 error reporting with generic types.
6130 2010-06-22 Thomas Quinot <quinot@adacore.com>
6132 * bindgen.adb, bindusg.adb, gnatbind.adb, gnat_ugn.texi, opt.ads,
6133 osint-b.adb, osint-b.ads, output.adb, output.ads, switch-b.adb,
6134 vms_data.ads: Add a new command line switch -A to gnatbind to output
6135 the list of all ALI files for the partition.
6137 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6139 * s-osinte-vxworks.ads: Fix casing.
6140 * s-vxwext-kernel.ads, s-vxwext-rtp.ads: Complete previous
6141 change: Interfaces.C does not provide a long_long type.
6143 2010-06-22 Emmanuel Briot <briot@adacore.com>
6145 * gnat_ugn.texi, projects.texi: Preprocess projects.texi for VMS and
6146 native user's guide, since this document contains the two versions.
6147 * gcc-interface/Make-lang.in: Update doc dependencies.
6149 2010-06-22 Robert Dewar <dewar@adacore.com>
6151 * sem_ch3.adb: Minor reformatting. Minor code reorganization.
6153 2010-06-22 Emmanuel Briot <briot@adacore.com>
6155 * gnat_ugn.texi, projects.texi: Remove toplevel menu, since we should
6156 not build this file on its own (only through gnat_ugn.texi).
6157 Remove macro definitions and insert simpler version in gnat_ugn.texi.
6159 2010-06-22 Robert Dewar <dewar@adacore.com>
6161 * ali-util.ads: Minor comment update.
6162 * g-socthi-mingw.adb: Minor reformatting.
6164 2010-06-22 Ed Falis <falis@adacore.com>
6166 * s-osinte-vxworks.ads: Take sigset_t definition of System.VxWorks.Ext.
6167 * s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads: Define sigset_t
6168 for specific versions of VxWorks.
6170 2010-06-22 Emmanuel Briot <briot@adacore.com>
6172 * gnat_rm.texi, gnat_ugn.texi, projects.texi: Remove all project files
6173 related sections from user's guide and reference manual, since they
6174 have now been merged together into a separate document (projects.texi).
6175 This removes a lot of duplication where attributes where described
6177 The grammar for the project files is now in each of the sections
6178 (packages,expressions,...) instead of being duplicates in two other
6179 sections (one in the user's guide that contained the full grammar,
6180 and various sections in the rm that contained extracts of the same
6182 Added the full list of all supported attributes, since existing lists
6184 Rename "associative array" into "indexed attribute"
6185 Remove sections that were duplicates ("External References in
6186 Project Files" and "External Values", and "Project Extensions"
6187 for instance). The list of valid packages in project files is now in
6190 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6192 * sem_ch3.adb (Add_Internal_Interface_Entities): If
6193 Find_Primitive_Covering_Interface does not find the operation, it may
6194 be because of a name conflict between the inherited operation and a
6195 local non-overloadable name. In that case look for the operation among
6196 the primitive operations of the type. This search must succeed
6197 regardless of visibility.
6199 2010-06-22 Pascal Obry <obry@adacore.com>
6201 * g-socthi-mingw.adb: Properly honor MSG_WAITALL in recvmsg.
6202 (C_Recvmsg): Propely honor the MSG_WAITALL flag in Windows
6205 2010-06-22 Robert Dewar <dewar@adacore.com>
6207 * sem_ch4.adb (Analyze_Conditional_Expression): Defend against
6209 * sprint.adb (Sprint_Node_Actual, case N_Conditional_Expression):
6212 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6214 * s-intman-vxworks.ads: Code clean up.
6216 2010-06-22 Thomas Quinot <quinot@adacore.com>
6218 * sem_res.adb (Resolve_Slice): When the prefix is an explicit
6219 dereference, construct actual subtype of designated object to generate
6220 proper bounds checks.
6222 2010-06-22 Thomas Quinot <quinot@adacore.com>
6224 * ali-util.adb, ali-util.ads, gnatbind.adb (Read_ALI): Rename to
6225 Read_Withed_ALIs, which is more descriptive.
6227 2010-06-22 Pascal Obry <obry@adacore.com>
6229 * g-sothco.ads: Minor reformatting.
6230 * g-socthi-mingw.adb: Remove part of work on the C_Recvmsg and
6231 C_Sendmsg implementation.
6232 (C_Sendmsg): Do not use lock (not needed).
6233 (C_Recvmsg): Likewise and also do not wait for incoming data.
6235 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6237 * uintp.adb: Fix scope error in operator call.
6239 2010-06-22 Vincent Celier <celier@adacore.com>
6241 * makeutl.adb (Executable_Prefix_Path): on VMS, return "/gnu/".
6242 * prj-conf.adb (Get_Or_Create_Configuration_File): On VMS, if
6243 autoconfiguration is needed, fail indicating that no config project
6244 file can be found, as there is no autoconfiguration on VMS.
6246 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6248 * sem_res.adb (Make_Call_Into_Operator): Diagnose an incorrect scope
6249 for an operator in a functional notation, when operands are universal.
6251 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6253 * gcc-interface/Make-lang.in: Update dependencies.
6255 2010-06-22 Robert Dewar <dewar@adacore.com>
6257 * sem_aggr.adb (Resolve_Record_Aggregate): Do style check on component
6259 * sem_ch10.adb (Analyze_Subunit): Do style check on parent unit name.
6260 * sem_ch8.adb (Find_Direct_Name): For non-overloadable entities, do
6262 * sem_res.adb (Resolve_Entity_Name): Do style check for enumeration
6265 2010-06-22 Vincent Celier <celier@adacore.com>
6267 * make.adb (Scan_Make_Arg): No longer pass -nostdlib to the compiler as
6268 it has no effect. Always pass -nostdlib to gnatlink, even on VMS.
6270 2010-06-22 Pascal Obry <obry@adacore.com>
6272 * g-socthi-mingw.adb: Fix implementation of the vectored sockets on
6274 (C_Recvmsg): Make sure the routine is atomic. Also fully
6275 fill vectors in the proper order.
6276 (C_Sendmsg): Make sure the routine is atomic.
6278 2010-06-22 Robert Dewar <dewar@adacore.com>
6280 * sem_ch8.adb: Update comment.
6281 * sem_res.adb: Minor code reorganization (use Ekind_In).
6283 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6285 * sem_ch8.adb (Add_Implicit_Operator): If the context of the expanded
6286 name is a call, use the number of actuals to determine whether this is
6287 a binary or unary operator, rather than relying on later information
6288 to resolve the overload.
6290 2010-06-22 Robert Dewar <dewar@adacore.com>
6292 * sem_ch10.adb, sem_aggr.adb: Minor reformatting.
6294 2010-06-22 Robert Dewar <dewar@adacore.com>
6296 * sem_ch3.adb, sem_disp.adb: Minor code fixes.
6297 * sem_eval.adb: Minor reformatting.
6299 2010-06-22 Vincent Celier <celier@adacore.com>
6301 * make.adb (Scan_Make_Arg): When invoked with -nostdlib, pass -nostdlib
6302 to gnatlink, except on Open VMS.
6303 * osint.adb (Add_Default_Search_Dirs): Do not suppress the default
6304 object directories if -nostdlib is used.
6306 2010-06-22 Robert Dewar <dewar@adacore.com>
6308 * sem_util.adb (Is_Delegate): Put in proper alpha order.
6309 * sem_eval.adb: Minor reformatting.
6311 2010-06-22 Robert Dewar <dewar@adacore.com>
6313 * g-expect-vms.adb, sem_res.adb: Minor reformatting.
6314 * exp_aggr.adb: Minor comment changes and reformatting.
6315 * sem_eval.adb (Find_Universal_Operator_Type): Put in proper alpha
6317 * sem_util.ads: Add some missing pragma Inline's.
6319 2010-06-22 Thomas Quinot <quinot@adacore.com>
6321 * sem_util.adb (Build_Actual_Subtype): Record original expression in
6322 Related_Expression attribute of the constructed subtype.
6323 * einfo.adb, einfo.ads (Underlying_View): Move to Node28 to free up
6324 Node24 on types for...
6325 (Related_Expression): Make attribute available on types as well.
6327 2010-06-22 Gary Dismukes <dismukes@adacore.com>
6329 * exp_util.adb (Find_Interface_ADT): Retrieve Designated_Type instead
6330 of Directly_Designated_Type when the type argument is an access type.
6331 (Find_Interface_Tag): Retrieve Designated_Type instead of
6332 Directly_Designated_Type when the type argument is an access type.
6333 (Has_Controlled_Coextensions): Retrieve Designated_Type instead of
6334 Directly_Designated_Type of each access discriminant.
6335 * sem_res.adb (Resolve_Type_Conversion): Retrieve Designated_Type
6336 instead of Directly_Designated_Type when the operand and target types
6339 2010-06-22 Thomas Quinot <quinot@adacore.com>
6341 * exp_aggr.adb (Flatten): Return False if one choice is statically
6342 known to be out of bounds.
6344 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6346 * sem_res.adb (Resolve_Call): If the call is rewritten as an indexed of
6347 a parameterless function call, preserve parentheses of original
6348 expression, for proper handling by pretty printer.
6349 * sem_attr.adb (Analyze_Attribute, case 'Old): Add guard to Process
6350 procedure, to handle quietly identifiers that have no entity names.
6351 * exp_util.adb (Get_Current_Value_Condition): If the parent of an
6352 elsif_part is missing, it has been rewritten as a nested if, and there
6353 is no useful information on the current value of the variable.
6355 2010-06-22 Gary Dismukes <dismukes@adacore.com>
6357 * sem_ch3.adb (Build_Discriminal): Set default scopes for newly created
6358 discriminals to the current scope.
6359 * sem_util.adb (Find_Body_Discriminal): Remove setting of discriminal's
6360 scope, which could overwrite a different already set value.
6362 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6364 * sem_res.adb (Valid_Conversion): If expression is a predefined
6365 operator, use sloc of type of interpretation to improve error message
6366 when operand is of some derived type.
6367 * sem_eval.adb (Is_Mixed_Mode_Operand): New function, use it.
6369 2010-06-22 Emmanuel Briot <briot@adacore.com>
6371 * g-expect-vms.adb (Expect_Internal): No longer raises an exception, so
6372 that it can set out parameters as well. When a process has died, reset
6373 its Input_Fd to Invalid_Fd, so that when using multiple processes we
6374 can find out which process has died.
6376 2010-06-22 Thomas Quinot <quinot@adacore.com>
6378 * sem_eval.adb (Find_Universal_Operator_Type): New
6379 subprogram to identify the operand type of an operator on universal
6380 operands, when an explicit scope indication is present. Diagnose the
6381 case where such a call is ambiguous.
6382 (Eval_Arithmetic_Op, Eval_Relational_Op, Eval_Unary_Op):
6383 Use the above to identify the operand type so it can be properly
6385 * sem_res.adb (Make_Call_Into_Operator): Remove bogus freeze of operand
6386 type, done in an arbitrary, possibly incorrect type (the presence of
6387 some numeric type in the scope is checked for legality, but when more
6388 than one such type is in the scope, we just pick a random one, not
6389 necessarily the expected one).
6390 * sem_utils.ads, sem_utils.adb (Is_Universal_Numeric_Type): New utility
6393 2010-06-22 Robert Dewar <dewar@adacore.com>
6395 * sem_eval.adb: Minor reformatting.
6397 2010-06-22 Robert Dewar <dewar@adacore.com>
6399 * exp_ch4.adb (Expand_N_Conditional_Expression): Use
6400 Expression_With_Actions to clean up the code generated when folding
6401 constant expressions.
6403 2010-06-22 Vincent Celier <celier@adacore.com>
6405 * g-expect-vms.adb: Add new subprograms Free, First_Dead_Process and
6408 2010-06-22 Vincent Celier <celier@adacore.com>
6410 * prj-nmsc.adb (Find_Sources): When a source from a multi-unit file is
6411 found, check if it's path has aready been found, whatever its index.
6413 2010-06-22 Robert Dewar <dewar@adacore.com>
6415 * atree.adb, gnatbind.adb: Minor reformatting.
6416 Minor code reorganization.
6418 2010-06-21 Robert Dewar <dewar@adacore.com>
6420 * exp_ch4.adb (Expand_N_Conditional_Expression): Fold if condition
6421 known at compile time.
6423 2010-06-21 Gary Dismukes <dismukes@adacore.com>
6425 * atree.adb: Fix comment typo.
6427 2010-06-21 Ed Schonberg <schonberg@adacore.com>
6429 * sem_eval.adb (Test_Ambiguous_Operator): New procedure to check
6430 whether a universal arithmetic expression in a conversion, which is
6431 rewritten from a function call with an expanded name, is ambiguous.
6433 2010-06-21 Vincent Celier <celier@adacore.com>
6435 * prj-nmsc.adb (Name_Location): New Boolean component Listed, to record
6436 source files in specified list of sources.
6437 (Check_Package_Naming): Remove out parameters Bodies and Specs, as they
6439 (Add_Source): Set the Location of the new source
6440 (Process_Exceptions_File_Based): Call Add_Source with the Location
6441 (Get_Sources_From_File): If an exception is found, set its Listed to
6443 (Find_Sources): When Source_Files is specified, if an exception is
6444 found, set its Listed to True. Remove any exception that is not in a
6445 specified list of sources.
6446 * prj.ads (Source_Data): New component Location
6448 2010-06-21 Vincent Celier <celier@adacore.com>
6450 * gnatbind.adb (Closure_Sources): Global table, moved from block.
6452 2010-06-21 Thomas Quinot <quinot@adacore.com>
6454 * sem_res.adb: Minor reformatting.
6455 * atree.adb: New debugging hook "rr" for node rewrites.
6457 2010-06-21 Robert Dewar <dewar@adacore.com>
6459 * g-expect.ads, g-expect.adb: Minor reformatting.
6461 2010-06-21 Emmanuel Briot <briot@adacore.com>
6463 * s-regpat.adb (Next_Pointer_Bytes): New named constant. Code clean up.
6465 2010-06-21 Arnaud Charlet <charlet@adacore.com>
6467 * gcc-interface/Make-lang.in: Update dependencies.
6469 2010-06-21 Thomas Quinot <quinot@adacore.com>
6471 * bindgen.ads: Update comments.
6473 2010-06-21 Vincent Celier <celier@adacore.com>
6475 * gnatbind.adb: Suppress dupicates when listing the sources in the
6476 closure (switch -R).
6478 2010-06-21 Emmanuel Briot <briot@adacore.com>
6480 * s-regpat.adb (Link_Tail): Fix error when size of the pattern matcher
6483 2010-06-21 Emmanuel Briot <briot@adacore.com>
6485 * g-expect.adb, g-expect.ads (First_Dead_Process, Free, Has_Process):
6487 (Expect_Internal): No longer raises an exception, so that it can set
6488 out parameters as well. When a process has died, reset its Input_Fd
6489 to Invalid_Fd, so that when using multiple processes we can find out
6490 which process has died.
6492 2010-06-21 Robert Dewar <dewar@adacore.com>
6494 * s-regpat.adb, s-tpoben.adb, sem_attr.adb, sem_util.adb, sem_util.ads,
6495 checks.adb, sem_res.adb: Minor reformatting. Add comments.
6497 2010-06-21 Ed Schonberg <schonberg@adacore.com>
6499 * sem_ch6.adb (New_Overloaded_Entity): If the new entity is a
6500 rederivation associated with a full declaration in a private part, and
6501 there is a partial view that derives the same parent subprogram, the
6502 new entity does not become visible. This check must be applied to
6503 interface operations as well.
6505 2010-06-21 Thomas Quinot <quinot@adacore.com>
6507 * checks.adb: Add comments.
6508 * prj-nmsc.adb: Minor reformatting.
6510 2010-06-21 Thomas Quinot <quinot@adacore.com>
6512 * sem_ch9.adb, checks.adb, sem_util.adb, sem_util.ads, sem_res.adb,
6513 sem_attr.adb (Get_E_First_Or_Last): Use attribute references on E to
6514 extract bounds, to ensure that we get the proper captured values,
6515 rather than an expression that may have changed value since the point
6516 where the subtype was elaborated.
6517 (Find_Body_Discriminal): New utility subprogram to share code
6519 (Eval_Attribute): For the case of a subtype bound that references a
6520 discriminant of the current concurrent type, insert appropriate
6521 discriminal reference.
6522 (Resolve_Entry.Actual_Index_Type.Actual_Discriminant_Ref): For a
6523 requeue to an entry in a family in the current task, use corresponding
6525 (Analyze_Accept_Statement): Rely on expansion of attribute references
6526 to insert proper discriminal references in range check for entry in
6529 2010-06-21 Emmanuel Briot <briot@adacore.com>
6531 * s-regpat.adb (Compile): Fix handling of big patterns.
6533 2010-06-21 Robert Dewar <dewar@adacore.com>
6535 * a-tifiio.adb: Minor reformatting.
6537 2010-06-21 Pascal Obry <obry@adacore.com>
6539 * prj-nmsc.adb (Search_Directories): Use the non-translated directory
6542 2010-06-21 Javier Miranda <miranda@adacore.com>
6544 * exp_cg.adb (Write_Call_Info): Fill the component sourcename using the
6547 2010-06-21 Ed Schonberg <schonberg@adacore.com>
6549 * exp_ch4.adb (Expand_Concatenate): If an object declaration is created
6550 to hold the result, indicate that the target of the declaration does
6551 not need an initialization, to prevent spurious errors when
6552 Initialize_Scalars is enabled.
6554 2010-06-21 Ed Schonberg <schonberg@adacore.com>
6556 * a-tifiio.adb (Put): In the procedure that performs I/O on a String,
6557 Fore is not bound by line length. The Fore parameter of the internal
6558 procedure that performs the operation is an integer.
6560 2010-06-21 Thomas Quinot <quinot@adacore.com>
6562 * sem_res.adb, checks.adb: Minor reformatting.
6564 2010-06-21 Emmanuel Briot <briot@adacore.com>
6566 * s-regpat.adb (Next_Instruction, Get_Next_Offset): Removed, merged
6568 (Insert_Operator_Before): New subprogram, avoids duplicated code
6569 (Compile): Avoid doing two compilations when the pattern matcher ends
6572 2010-06-21 Emmanuel Briot <briot@adacore.com>
6574 * s-regpat.adb: Improve debug traces
6575 (Dump): Change output format to keep it smaller.
6577 2010-06-21 Javier Miranda <miranda@adacore.com>
6579 * exp_cg.adb (Generate_CG_Output): Disable redirection of standard
6580 output to the output file when this routine completes its work.
6582 2010-06-20 Eric Botcazou <ebotcazou@adacore.com>
6584 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Use while instead of
6585 for loop. Call build_constructor_from_list directly in the CICO case.
6587 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6589 * freeze.adb (Build_And_Analyze_Renamed_Body): If the renaming
6590 declaration appears in the same unit and ealier than the renamed
6591 entity, retain generated body to prevent order-of-elaboration issues in
6594 2010-06-18 Arnaud Charlet <charlet@adacore.com>
6596 * s-tpoben.adb: Update comments.
6598 2010-06-18 Robert Dewar <dewar@adacore.com>
6600 * debug.adb: Minor comment change.
6602 2010-06-18 Javier Miranda <miranda@adacore.com>
6604 * exp_cg.adb: Code clean up.
6605 * debug.adb: Complete documentation of switch -gnatd.Z.
6606 * gcc-interface/misc.c (callgraph_info_file): Declare.
6608 2010-06-18 Javier Miranda <miranda@adacore.com>
6610 * exp_cg.adb (Homonym_Suffix_Length): Minor code reorganization.
6612 2010-06-18 Thomas Quinot <quinot@adacore.com>
6614 * sprint.ads: Minor reformatting.
6615 * output.ads: Update obsolete comment.
6617 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6619 * freeze.adb (Build_And_Analyze_Renamed_Body): if the renamed entity is
6620 an external intrinsic operation (e.g. a GCC numeric function) indicate
6621 that the renaming entity has the same characteristics, so a call to it
6622 is properly expanded.
6624 2010-06-18 Javier Miranda <miranda@adacore.com>
6626 * exp_cg.adb, exp_cg.ads, exp_disp.adb, gnat1drv.adb: Add initial
6627 support for dispatch table/callgraph info generation.
6628 * gcc-interface/Make-lang.in: Update dependencies.
6630 2010-06-18 Robert Dewar <dewar@adacore.com>
6632 * exp_ch6.adb: Minor reformatting.
6633 * gnatname.adb: Add comment.
6635 2010-06-18 Vincent Celier <celier@adacore.com>
6637 * gnatname.adb (Scan_Args): When --and is used, make sure that the
6638 dynamic tables in the newly allocated Argument_Data are properly
6641 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
6643 * gnat1drv.adb: Fix comment.
6645 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6647 * exp_ch6.adb (Expand_Inlined_Call): If the inlined subprogram is a
6648 renaming, re-expand the call with the renamed subprogram if that one
6649 is marked inlined as well.
6651 2010-06-18 Gary Dismukes <dismukes@adacore.com>
6653 * gnat1drv.adb (Adjust_Global_Switches): Enable
6654 Use_Expression_With_Actions for AAMP and VM targets.
6656 2010-06-18 Vincent Celier <celier@adacore.com>
6658 * prj-nmsc.adb (Process_Linker): Recognize response file format GCC.
6660 2010-06-18 Thomas Quinot <quinot@adacore.com>
6662 * exp_ch4.adb: Minor reformatting.
6664 2010-06-18 Javier Miranda <miranda@adacore.com>
6666 * debug.ads Add documentation on -gnatd.Z.
6668 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6670 * sem_elim.adb: Proper error message on improperly eliminated instances
6672 2010-06-18 Vincent Celier <celier@adacore.com>
6674 * prj.ads (Response_File_Format): New value GCC.
6676 2010-06-18 Thomas Quinot <quinot@adacore.com>
6678 * gnat1drv.adb: Minor reformatting.
6680 2010-06-18 Robert Dewar <dewar@adacore.com>
6682 * make.adb, sem_cat.adb: Minor reformatting.
6683 * sem_eval.adb: Fix typos.
6685 2010-06-18 Pascal Obry <obry@adacore.com>
6687 * prj-nmsc.adb: Fix source filenames casing in debug output.
6689 2010-06-18 Robert Dewar <dewar@adacore.com>
6691 * gnatcmd.adb: Minor reformatting.
6693 2010-06-18 Robert Dewar <dewar@adacore.com>
6695 * sem_eval.adb (Eval_Conditional_Expression): Result is static if
6696 condition and both sub-expressions are static (and result is selected
6699 2010-06-18 Robert Dewar <dewar@adacore.com>
6701 * g-pehage.adb: Minor reformatting
6703 2010-06-18 Pascal Obry <obry@adacore.com>
6705 * prj-nmsc.adb (Search_Directories): Insert canonical filenames into
6708 2010-06-18 Arnaud Charlet <charlet@adacore.com>
6710 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
6711 dependencies. Fix target pairs on darwin.
6712 (gnatlib-sjlj, gnatlib-zcx): Pass THREAD_KIND.
6714 2010-06-18 Pascal Obry <obry@adacore.com>
6716 * make.adb, prj-nmsc.adb: Fix source filenames casing in debug output.
6718 2010-06-18 Vincent Celier <celier@adacore.com>
6720 * gnatcmd.adb: For gnatcheck, add -gnatec= switch for a global
6721 configuration pragmas file and, if -U is not used, for a local one.
6723 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6725 * sem_elim.adb (Check_Eliminated): Use full information on entity name
6726 when it is given in the pragma by a selected component.
6727 (Check_For_Eliminated_Subprogram): Do no emit error if within a
6728 instance body that is itself within a generic unit.
6729 * sem_ch12.adb (Analyze_Subprogram_Instance): If the subprogram is
6730 eliminated, mark as well the anonymous subprogram that is its alias
6731 and appears within the wrapper package.
6733 2010-06-18 Bob Duff <duff@adacore.com>
6735 * g-pehage.ads, g-pehage.adb (Produce): Clean up some of the code.
6736 Raise an exception if the output file cannot be opened. Add comments.
6738 2010-06-18 Thomas Quinot <quinot@adacore.com>
6740 * sem_cat.adb (Validate_Object_Declaration): A variable declaration is
6741 not illegal per E.2.2(7) if it occurs in the private part of a
6744 2010-06-18 Arnaud Charlet <charlet@adacore.com>
6746 * par-ch9.adb, sem_aggr.adb, sem_ch3.adb, layout.adb, sem_ch4.adb,
6747 sem_ch5.adb, sem_mech.adb, exp_util.adb, par-ch10.adb, sem_ch6.adb,
6748 par-ch11.adb, sem_ch7.adb, par-prag.adb, exp_disp.adb, par-ch12.adb,
6749 sem_ch8.adb, style.adb, sem_ch9.adb, sem_ch10.adb, prep.adb,
6750 sem_warn.adb, par-util.adb, scng.adb, sem_eval.adb, checks.adb,
6751 sem_prag.adb, sem_ch12.adb, styleg.adb, sem_ch13.adb, par-ch3.adb,
6752 par-tchk.adb, freeze.adb, sfn_scan.adb, par-ch4.adb, sem_util.adb,
6753 sem_res.adb, par-ch5.adb, lib-xref.adb, sem_attr.adb, par-ch6.adb,
6754 sem_disp.adb, prepcomp.adb, par-ch7.adb, sem_elab.adb, exp_ch4.adb,
6755 errout.ads: Update comments. Minor reformatting.
6757 * g-spipat.adb, a-swunau.adb, a-swunau.ads, g-spitbo.adb,
6758 a-szunau.adb, a-szunau.ads, a-stunau.adb, a-stunau.ads,
6759 a-strunb.adb (Big_String. Big_String_Access): New type.
6761 * par-labl.adb, restrict.adb, s-osinte-hpux-dce.ads, sem_ch11.adb,
6762 exp_pakd.adb, s-filofl.ads, par-endh.adb, exp_intr.adb, sem_cat.adb,
6763 sem_case.adb, exp_ch11.adb, s-osinte-linux.ads: Fix copyright notices.
6765 2010-06-18 Geert Bosch <bosch@adacore.com>
6767 * i-forbla-darwin.adb: Include -lgnala and -lm in linker options for
6770 2010-06-18 Robert Dewar <dewar@adacore.com>
6772 * gnat1drv.adb (Adjust_Global_Switches): Set Use_Expression_With_Actions
6775 2010-06-18 Robert Dewar <dewar@adacore.com>
6777 * sprint.adb: Minor format change for N_Expression_With_Actions.
6778 * repinfo.adb: Minor reformatting.
6780 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6782 * sem_elim.adb (Check_Eliminated): If within a subunit, use
6783 Defining_Entity to obtain the name of the entity in the proper body, to
6784 properly handle both separate packages and subprograms.
6786 2010-06-18 Emmanuel Briot <briot@adacore.com>
6788 * prj-nmsc.adb (Check_File): New parameter Display_Path.
6790 2010-06-18 Thomas Quinot <quinot@adacore.com>
6792 * g-socket.adb, g-socket.ads (Null_Selector): New object.
6794 2010-06-18 Pascal Obry <obry@adacore.com>
6796 * gnat_ugn.texi: Minor clarification.
6798 2010-06-18 Emmanuel Briot <briot@adacore.com>
6800 * prj-nmsc.adb (Find_Source_Dirs): Minor refactoring to avoid duplicate
6801 code when using the project dir as the source dir.
6802 (Search_Directories): use the normalized name for the source directory,
6803 where symbolic names have potentially been resolved.
6805 2010-06-18 Robert Dewar <dewar@adacore.com>
6807 * exp_ch4.adb (Expand_N_Conditional_Expression): Clear Actions field
6808 when we create N_Expression_With_Actions node.
6809 (Expand_Short_Circuit): Ditto.
6811 2010-06-18 Robert Dewar <dewar@adacore.com>
6813 * exp_util.adb: Minor reformatting.
6815 2010-06-18 Thomas Quinot <quinot@adacore.com>
6817 * types.ads: Clean up obsolete comments
6818 * tbuild.adb: Minor reformatting.
6819 * exp_ch5.adb, sem_intr.adb, sem_ch10.adb, rtsfind.adb, s-shasto.adb,
6820 exp_strm.adb, aa_drive.adb: Minor reformatting.
6821 * sem_res.adb (Is_Predefined_Operator): An operator that is an imported
6822 intrinsic with an Interface_Name denotes an imported back-end builtin,
6823 and must be rewritten into a call, not left in the tree as an operator,
6824 so return False in that case.
6826 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
6828 * exp_util.adb (Remove_Side_Effects): Make a copy for an allocator.
6830 2010-06-18 Robert Dewar <dewar@adacore.com>
6832 * scos.ads: Add proposed output for case expression
6834 2010-06-18 Jose Ruiz <ruiz@adacore.com>
6836 * gnat_ugn.texi: Document that, when using the RTX compiler to generate
6837 RTSS modules, we need to use the Microsoft linker.
6839 2010-06-18 Robert Dewar <dewar@adacore.com>
6841 * checks.adb (Safe_To_Capture_In_Parameter_Value): Deal with case
6842 expression (cannot count on a particular branch being executed).
6843 * exp_ch4.adb (Expand_N_Case_Expression): New procedure.
6844 * exp_ch4.ads (Expand_N_Case_Expression): New procedure.
6845 * exp_util.adb (Insert_Actions): Deal with proper insertion of actions
6846 within case expression.
6847 * expander.adb (Expand): Add call to Expand_N_Case_Expression
6848 * par-ch4.adb Add calls to P_Case_Expression at appropriate points
6849 (P_Case_Expression): New procedure
6850 (P_Case_Expression_Alternative): New procedure
6851 * par.adb (P_Case_Expression): New procedure
6852 * par_sco.adb (Process_Decisions): Add dummy place holder entry for
6854 * sem.adb (Analyze): Add call to Analyze_Case_Expression
6855 * sem_case.ads (Analyze_Choices): Also used for case expressions now,
6856 this is a documentation change only.
6857 * sem_ch4.ads, sem_ch4.adb (Analyze_Case_Expression): New procedure.
6858 * sem_ch6.adb (Fully_Conformant_Expressions): Add handling of case
6860 * sem_eval.ads, sem_eval.adb (Eval_Case_Expression): New procedure.
6861 * sem_res.adb (Resolve_Case_Expression): New procedure.
6862 * sem_scil.adb (Find_SCIL_Node): Add processing for
6863 N_Case_Expression_Alternative.
6864 * sinfo.ads, sinfo.adb (N_Case_Expression): New node.
6865 (N_Case_Expression_Alternative): New node.
6866 * sprint.adb (Sprint_Node_Actual): Add processing for new nodes
6867 N_Case_Expression and N_Case_Expression_Alternative.
6869 2010-06-18 Robert Dewar <dewar@adacore.com>
6871 * par-ch7.adb, sem_warn.adb, types.ads, par-ch3.adb: Minor
6873 * gnat1drv.adb: Fix typo.
6875 2010-06-18 Robert Dewar <dewar@adacore.com>
6877 * par-prag.adb (Prag, case Style_Checks): All_Checks sets gnat style
6879 * sem_prag.adb (Analyze_Pragma, case Style_Checks): All_Checks sets
6880 gnat style for -gnatg.
6881 * gnat_rm.texi: Add documentation for ALL_CHECKS in GNAT mode.
6883 2010-06-18 Thomas Quinot <quinot@adacore.com>
6885 * sem_eval.adb (Test_In_Range): New subprogram, factoring duplicated
6887 (Is_In_Range, Is_Out_Of_Range): Reimplement in terms of call to
6890 2010-06-18 Robert Dewar <dewar@adacore.com>
6892 * sprint.adb: Minor change in output format for expression wi actions.
6893 * par-ch3.adb: Minor code reorganization. Minor reformatting.
6894 * sem_ch5.adb: Minor comment fix.
6896 2010-06-18 Robert Dewar <dewar@adacore.com>
6898 * debug.adb: New debug flag -gnatd.L to control
6899 Back_End_Handles_Limited_Types.
6900 * exp_ch4.adb (Expand_N_Conditional_Expression): Let back end handle
6901 limited case if Back_End_Handles_Limited_Types is True.
6902 (Expand_N_Conditional_Expression): Use N_Expression_With_Actions to
6903 simplify expansion if Use_Expression_With_Actions is True.
6904 * gnat1drv.adb (Adjust_Global_Switches): Set
6905 Back_End_Handles_Limited_Types.
6906 * opt.ads (Back_End_Handles_Limited_Types): New flag.
6908 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6910 * sem_res.adb (Rewrite_Operator_As_Call): Do not rewrite user-defined
6911 intrinsic operator if expansion is not enabled, because in an
6912 instantiation the original operator must be present to verify the
6913 legality of the operation.
6915 2010-06-18 Robert Dewar <dewar@adacore.com>
6917 * exp_disp.adb, sem_ch12.adb: Minor reformatting
6919 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6921 * exp_util.adb (Make_Subtype_From_Expr): If the unconstrained type is
6922 the class-wide type for a private extension, and the completion is a
6923 subtype, set the type of the class-wide type to the base type of the
6926 2010-06-18 Robert Dewar <dewar@adacore.com>
6928 * g-socket.ads, sem_aggr.adb, einfo.ads, sem_elim.adb,
6929 sem_intr.adb, sem_eval.adb: Minor reformatting
6931 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6933 * sem_type.adb (Is_Ancestor): If either type is private, examine full
6936 2010-06-18 Thomas Quinot <quinot@adacore.com>
6938 * g-socket.adb, g-socket.ads (Check_Selector): Make Selector an IN
6939 parameter rather than IN OUT.
6941 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6943 * exp_ch6.adb: Add extra guard.
6945 2010-06-18 Gary Dismukes <dismukes@adacore.com>
6947 * sem_util.adb (Object_Access_Level): For Ada 2005, determine the
6948 accessibility level of a function call from the level of the innermost
6949 enclosing dynamic scope.
6950 (Innermost_Master_Scope_Depth): New function to find the depth of the
6951 nearest dynamic scope enclosing a node.
6953 2010-06-18 Tristan Gingold <gingold@adacore.com>
6955 * adaint.c: Make ATTR_UNSET static as it is not used outside this file.
6957 2010-06-18 Thomas Quinot <quinot@adacore.com>
6959 * g-socket.ads: Minor reformatting.
6961 2010-06-18 Vincent Celier <celier@adacore.com>
6963 * make.adb (Must_Compile): New Boolean global variable
6964 (Main_On_Command_Line): New Boolean global variable
6965 (Collect_Arguments_And_Compile): Do compile if Must_Compile is True,
6966 even when the project is externally built.
6967 (Start_Compile_If_Possible): Compile in -aL directories if
6968 Check_Readonly_Files is True. Do compile if Must_Compile is True, even
6969 when the project is externally built.
6970 (Gnatmake): Set Must_Compile and Check_Readonly_Files to True when
6971 invoked with -f -u and one or several mains on the command line.
6972 (Scan_Make_Arg): Set Main_On_Command_Line to True when at least one
6973 main is specified on the command line.
6975 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6977 * sem_ch6.adb (Build_Body_For_Inline): Handle
6978 extended_return_statements.
6979 * exp_ch6.adb (Expand_Inlined_Call): when possible, inline a body
6980 containing extented_return statements.
6981 * exp_util.adb (Make_CW_Equivalent_Type): If the root type is already
6982 constrained, do not build subtype declaration.
6984 2010-06-18 Robert Dewar <dewar@adacore.com>
6986 * sem_res.adb (Analyze_Indexed_Component, Analyze_Selected_Component):
6987 Warn on assigning to packed atomic component.
6989 2010-06-18 Robert Dewar <dewar@adacore.com>
6991 * sem_util.ads: Minor reformatting
6992 * einfo.ads, einfo.adb: Minor doc clarification (scope of decls in
6993 Expression_With_Actions).
6994 * snames.ads-tmpl: Minor comment fix
6996 2010-06-18 Robert Dewar <dewar@adacore.com>
6998 * sem_prag.adb (Diagnose_Multiple_Pragmas): New procedure
6999 (Set_Imported): Use Import_Interface_Present to control message output
7000 * sinfo.ads, sinfo.adb (Import_Interface_Present): New flag
7001 * gnat_rm.texi: Document that we can have pragma Import and pragma
7002 Interface for the same subprogram.
7004 2010-06-18 Robert Dewar <dewar@adacore.com>
7006 * lib-xref.adb (Generate_Reference): Fix bad reference to
7007 Has_Pragma_Unreferenced (clients should always use Has_Unreferenced).
7009 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7011 * gcc-interface/trans.c (set_gnu_expr_location_from_node): New static
7013 (gnat_to_gnu) <N_Expression_With_Actions>: New case.
7014 Use set_gnu_expr_location_from_node to set location information on the
7017 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7019 * gcc-interface/Make-lang.in: Update dependencies.
7021 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7023 * sem_util.adb (Is_Atomic_Object): Predicate does not apply to
7026 2010-06-17 Robert Dewar <dewar@adacore.com>
7028 * gnat_rm.texi, gnat_ugn.texi: Clean up documentation on warning and
7029 style check messages.
7030 * sem_res.adb (Resolve_Call): Don't call
7031 Check_For_Eliminated_Subprogram if we are analyzing within a spec
7034 2010-06-17 Robert Dewar <dewar@adacore.com>
7036 * debug.adb: Add documentation for debug flags .X and .Y
7037 * exp_ch4.adb (Expand_Short_Circuit_Operator): Use
7038 Use_Expression_With_Actions.
7039 * gnat1drv.adb (Adjust_Global_Switches): Set
7040 Use_Expression_With_Actions.
7041 * opt.ads (Use_Expression_With_Actions): New switch.
7043 2010-06-17 Robert Dewar <dewar@adacore.com>
7045 * exp_intr.adb: Minor code reorganization (use UI_Max)
7046 * sem_intr.adb: use underlying type to check legality.
7047 * einfo.adb (Known_Static_Esize): False for generic types
7048 (Known_Static_RM_Size): False for generic types
7049 * einfo.ads (Known_Static_Esize): False for generic types
7050 (Known_Static_RM_Size): False for generic types
7052 2010-06-17 Robert Dewar <dewar@adacore.com>
7054 * exp_ch4.ads: Minor code reorganization (specs in alpha order).
7056 2010-06-17 Robert Dewar <dewar@adacore.com>
7058 * debug.adb: New debug flag -gnatd.X to use Expression_With_Actions
7059 node when expanding short circuit form with actions present for right
7061 * exp_ch4.adb: Minor reformatting
7062 (Expand_Short_Circuit_Operator): Use new Expression_With_Actions node
7063 if right opeand has actions present, and debug flag -gnatd.X is set.
7064 * exp_util.adb (Insert_Actions): Handle case of Expression_With_Actions
7066 * nlists.adb (Prepend_List): New procedure
7067 (Prepend_List_To): New procedure
7068 * nlists.ads (Prepend_List): New procedure
7069 (Prepend_List_To): New procedure
7070 * sem.adb: Add processing for Expression_With_Actions
7071 * sem_ch4.adb (Analyze_Expression_With_Actions): New procedure
7072 * sem_ch4.ads (Analyze_Expression_With_Actions): New procedure
7073 * sem_res.adb: Add processing for Expression_With_Actions.
7074 * sem_scil.adb: Add processing for Expression_With_Actions
7075 * sinfo.ads, sinfo.adb (N_Expression_With_Actions): New node.
7076 * sprint.ads, sprint.adb: Add processing for Expression_With_Actions
7078 2010-06-17 Doug Rupp <rupp@adacore.com>
7080 * sem_intr.adb (Check_Intrinsic_Operator): Check that the types
7081 involved both have underlying integer types.
7082 * exp_intr.adb (Expand_Binary_Operator) New subprogram to expand a call
7083 to an intrinsic operator when the operand types or sizes are not
7085 * s-auxdec-vms_64.ads: Revert "+" "-" ops back to Address now that
7086 64/32 Address/Integer works.
7088 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7090 * sem_ch12.adb (Mark_Context): Refine placement of Withed_Body flag, so
7091 that it marks a unit as needed by a spec only if the corresponding
7092 instantiation appears in that spec (and not in the corresponding body).
7093 * sem_elim.adb (Check_Eliminated): If we are within a subunit, the name
7094 in the pragma Eliminate has been parsed as a child unit, but the
7095 current compilation unit is in fact the parent in which the subunit is
7098 2010-06-17 Vincent Celier <celier@adacore.com>
7100 * gnat_rm.texi: Fix typo
7102 2010-06-17 Robert Dewar <dewar@adacore.com>
7104 * sem_util.adb: Minor reformatting
7106 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7108 * sem.adb (Do_Withed_Unit): if the unit in the with_clause is a generic
7109 instance, the clause now denotes the instance body. Traverse the
7110 corresponding spec because there may be no other dependence that will
7111 force the traversal of its own context.
7113 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7115 * sem_ch10.adb (Is_Ancestor_Unit): Subsidiary to
7116 Install_Limited_Context_Clauses, to determine whether a limited_with in
7117 some parent of the current unit designates some other parent, in which
7118 case the limited_with clause must not be installed.
7119 (In_Context): Refine test.
7121 2010-06-17 Gary Dismukes <dismukes@adacore.com>
7123 * sem_util.adb (Collect_Primitive_Operations): In the of an untagged
7124 type with a dispatching equality operator that is overridden (for a
7125 tagged full type), don't include the overridden equality in the list of
7126 primitives. The overridden equality is detected by testing for an
7127 Aliased field that references the overriding equality.
7129 2010-06-17 Robert Dewar <dewar@adacore.com>
7131 * freeze.adb: Minor reformatting.
7133 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
7135 * gnat_ugn.texi: Add a section introducing gdbserver.
7137 2010-06-17 Thomas Quinot <quinot@adacore.com>
7139 * sem_res.adb, sem_ch4.adb, s-stoele.adb, par-labl.adb: Minor
7142 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7144 * sem_aggr.adb (Valid_Ancestor_Type): handle properly the case of a
7145 constrained discriminated parent that is a private type.
7146 (Analyze_Record_Aggregate): when collecting inherited discriminants,
7147 handle properly an ancestor type that is a constrained private type.
7149 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7151 * sem_util.adb (Enclosing_Subprogram): If the called subprogram is
7152 protected, use the protected_subprogram_body only if the original
7153 subprogram has not been eliminated.
7155 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7157 * freeze.adb (Freeze_Expression): The designated type of an
7158 access_to_suprogram type can only be frozen if all types in its profile
7161 2010-06-17 Robert Dewar <dewar@adacore.com>
7163 * par.adb: Minor comment fix
7164 * sem_aggr.adb, sem_ch3.adb: Minor reformatting
7166 2010-06-17 Doug Rupp <rupp@adacore.com>
7168 * s-auxdec-vms_64.ads: Revert Integer to Long_Integer change, instead
7169 change Address to Short_Address in functions where both must be the
7170 same size for intrinsics to work.
7172 2010-06-17 Thomas Quinot <quinot@adacore.com>
7174 * sem_ch4.adb (Analyze_Selected_Component): A selected component may
7175 not denote a (private) component of a protected object.
7177 2010-06-17 Bob Duff <duff@adacore.com>
7179 * par-labl.adb (Try_Loop): Test whether the label and the goto are in
7182 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
7184 * gnat_ugn.texi: Update the documentation about GDB re: exception
7187 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7189 * gnatvsn.ads: Bump to 4.6 version.
7191 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7193 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): The
7194 designated type of the generated pointer is the type of the original
7195 expression, not that of the function call itself, because the return
7196 type may be an untagged derived type and the function may be an
7197 inherited operation.
7199 2010-06-17 Robert Dewar <dewar@adacore.com>
7201 * exp_ch4.adb: Minor reformatting.
7203 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7205 * sinfo.ads, sinfo.adb (Inherited_Discriminant): New flag on
7206 N_Component_Association nodes, to indicate that a component association
7207 of an extension aggregate denotes the value of a discriminant of an
7208 ancestor type that has been constrained by the derivation.
7209 * sem_aggr.adb (Discr_Present): use Inherited_Discriminant to prevent a
7210 double expansion of the aggregate appearing in a context that delays
7211 expansion, to prevent double insertion of discriminant values when the
7212 aggregate is reanalyzed.
7214 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7216 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Do not use
7217 Allocator as the Related_Node of Return_Obj_Access in call to
7218 Make_Temporary below as this would create a sort of infinite
7221 2010-06-17 Ben Brosgol <brosgol@adacore.com>
7223 * gnat_ugn.texi: Update gnatcheck doc.
7225 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7227 * sem_ch3.adb (Build_Incomplete_Type_Declaration): If there is an
7228 incomplete view of the type that is not tagged, and the full type is a
7229 tagged extension, create class_wide type now, and warn that the
7230 incomplete view should be tagged as well.
7232 2010-06-17 Vincent Celier <celier@adacore.com>
7234 * gnatcmd.adb (Non_VMS_Usage): Do not issue usage for gnat sync.
7235 Update the last line of the usage, indicating what commands do not
7236 accept project file switches.
7237 * vms_conv.adb: Do not issue usage line for GNAT SYNC
7238 * vms_data.ads: Fix errors in the qualifiers /LOGFILE and /MAIN of
7240 * gnat_ugn.texi: Document the relaxed rules for library directories in
7241 externally built library projects.
7243 2010-06-17 Doug Rupp <rupp@adacore.com>
7245 * s-auxdec-vms_64.ads: Make boolean and arithmetic operations intrinsic
7247 * s-auxdec-vms-alpha.adb: Remove kludges for aforemention.
7248 * gcc-interface/Makefile.in: Update VMS target pairs.
7250 2010-06-17 Vasiliy Fofanov <fofanov@adacore.com>
7252 * adaint.c: Reorganized in order to avoid use of GetProcessId to stay
7253 compatible with Windows NT 4.0 which doesn't provide this function.
7255 2010-06-17 Vincent Celier <celier@adacore.com>
7257 * ali-util.adb (Time_Stamp_Mismatch): In Verbose mode, if there is
7258 different timestamps but the checksum is the same, issue a short
7261 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7263 * s-interr.adb (Finalize): If the Abort_Task signal is set to system,
7264 it means that we cannot reset interrupt handlers since this would
7265 require potentially sending the abort signal to the Server_Task.
7267 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7269 * exp_ch4.adb: expand NOT for VMS types.
7270 * sem_util.adb: Use OpenVMS_On_Target for IS_VMS_Operator.
7272 2010-06-17 Sergey Rybin <rybin@adacore.com>
7274 * vms_data.ads: Add qualifier for '--no-elim-dispatch' gnatelim option.
7275 * gnat_ugn.texi (gnatelim): add description for --no-elim-dispatch
7278 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7280 * exp_ch6.adb (Expand_Call): Do not expand a call to an internal
7281 protected operation if the subprogram has been eliminated.
7283 2010-06-17 Vincent Celier <celier@adacore.com>
7285 * prj-nmsc.adb (Check_Library_Attributes): Allow the different
7286 directories associated with a library to be any directory when the
7287 library project is externally built.
7289 2010-06-17 Vincent Celier <celier@adacore.com>
7291 * make.adb (Check): If switch -m is used, deallocate the memory that
7292 may be allocated when computing the checksum.
7294 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7296 * g-socthi-mingw.adb (C_Recvmsg): Add 'use type' clause for C.size_t;
7297 (C_Sendmsg): Likewise.
7299 2010-06-17 Thomas Quinot <quinot@adacore.com>
7301 * sem_res.adb: Update comments.
7303 2010-06-17 Vincent Celier <celier@adacore.com>
7305 * back_end.adb (Scan_Compiler_Arguments): Process last argument
7307 2010-06-17 Robert Dewar <dewar@adacore.com>
7309 * exp_ch3.adb, exp_ch6.adb, exp_smem.adb, exp_util.adb: Use Ekind_In.
7310 * layout.adb, freeze.adb: Use Make_Temporary.
7312 2010-06-17 Jerome Lambourg <lambourg@adacore.com>
7314 * exp_ch11.adb (Expand_N_Raise_Statement): Expand raise statements in
7315 .NET/JVM normally as this is now perfectly supported by the backend.
7317 2010-06-17 Pascal Obry <obry@adacore.com>
7319 * gnat_rm.texi: Fix minor typo, remove duplicate blank lines.
7321 2010-06-17 Vincent Celier <celier@adacore.com>
7323 * make.adb (Collect_Arguments_And_Compile): Create include path file
7324 only when -x is specified.
7326 * opt.ads (Use_Include_Path_File): New Boolean flag, initialized to
7328 * prj-env.adb (Set_Ada_Paths): New Boolean parameters Include_Path and
7329 Objects_Path, defaulted to True. Only create include path file if
7330 Include_Path is True, only create objects path file if Objects_Path is
7332 * prj-env.ads (Set_Ada_Paths): New Boolean parameters Include_Path and
7333 Objects_Path, defaulted to True.
7334 * switch-m.adb (Scan_Make_Switches): Set Use_Include_Path_File to True
7337 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7339 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
7340 determine whether it has the controlling type, when the formal is an
7343 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7345 * s-crtl.ads (ssize_t): New type.
7346 (read): Fix signature.
7348 * g-socthi.ads: Add 'with System.CRTL' clause. Remove ssize_t and
7349 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7350 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7351 (C_Sendmsg): Likewise.
7352 * g-socthi.adb (Syscall_Recvmsg): Likewise.
7353 (Syscall_Sendmsg): Likewise.
7354 (C_Recvmsg): Likewise.
7355 (C_Sendmsg): Likewise.
7356 * g-socthi-mingw.ads: Add 'with System.CRTL' clause. Remove ssize_t
7357 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7358 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7359 (C_Sendmsg): Likewise.
7360 * g-socthi-mingw.adb (C_Recvmsg): Likewise.
7361 (C_Sendmsg): Likewise.
7362 * g-socthi-vms.ads: Add 'with System.CRTL' clause. Remove ssize_t and
7363 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7364 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7365 (C_Sendmsg): Likewise.
7366 * g-socthi-vms.adb (C_Recvmsg): Likewise.
7367 (C_Sendmsg): Likewise.
7368 * g-socthi-vxworks.ads Add 'with System.CRTL' clause. Remove ssize_t
7369 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7370 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7371 (C_Sendmsg): Likewise.
7372 * g-socthi-vxworks.adb (C_Recvmsg): Likewise.
7373 (C_Sendmsg): Likewise.
7374 * g-sercom-linux.adb (Read): Use correct types to call 'read'.
7375 (Write): Likewise to call 'write'.
7376 * s-os_lib.adb (Read): Use correct type to call System.CRTL.read.
7377 (Write): Use correct type to call System.CRTL.write.
7378 * s-tasdeb.adb (Write): Likewise.
7380 2010-06-17 Vincent Celier <celier@adacore.com>
7382 * prj-proc.adb (Copy_Package_Declarations): Change argument name
7383 Naming_Restricted to Restricted. If Restricted is True, do not copy the
7384 value of attribute Linker_Options.
7386 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7388 * gcc-interface/trans.c (push_stack, pop_stack): Delete.
7389 (Case_Statement_to_gnu): Adjust.
7390 (Loop_Statement_to_gnu): Likewise.
7391 (Subprogram_Body_to_gnu): Likewise.
7392 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
7393 (Compilation_Unit_to_gnu): Likewise.
7395 2010-06-17 Robert Dewar <dewar@adacore.com>
7397 * exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb, exp_prag.adb,
7398 exp_sel.adb, exp_util.adb, sem_ch10.adb, sem_ch12.adb, sem_ch13.adb,
7399 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb, sem_ch9.adb,
7400 sem_dist.adb, sem_util.adb: Use Make_Temporary
7401 * itypes.ads, tbuild.ads: Minor comment update
7402 * exp_ch9.adb, exp_dist.adb: Minor reformatting
7404 2010-06-17 Thomas Quinot <quinot@adacore.com>
7406 * exp_imgv.adb, exp_ch7.ads: Minor reformatting.
7408 2010-06-17 Robert Dewar <dewar@adacore.com>
7410 * exp_ch9.adb, exp_disp.adb, exp_dist.adb: Use Make_Temporary.
7412 2010-06-17 Thomas Quinot <quinot@adacore.com>
7414 * sprint.adb (pg): Set Dump_Freeze_Null, to be consistent with -gnatdg.
7416 2010-06-17 Robert Dewar <dewar@adacore.com>
7418 * exp_ch6.adb, exp_ch7.adb, exp_ch5.adb: Use Make_Temporary
7419 * tbuild.ads (Make_Temporary): More comment updates
7420 * tbuild.adb: Minor reformatting
7422 2010-06-17 Robert Dewar <dewar@adacore.com>
7424 * checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch11.adb,
7425 exp_ch3.adb, exp_ch4.adb: Minor code reorganization.
7427 * tbuild.ads, tbuild.adb (Make_Temporary): Clean up, use Entity_Id
7429 (Make_Temporary): Add more extensive documentation
7431 2010-06-17 Robert Dewar <dewar@adacore.com>
7433 * sem_intr.adb, sem_prag.adb, sem_res.adb, sem_type.adb, sem_util.adb,
7434 sem_warn.adb, sem_eval.adb: Minor reformatting. Use Ekind_In.
7435 (Set_Slice_Subtype): Explicitly freeze the slice's itype at the point
7436 where the slice's actions are inserted.
7437 (Decompose_Expr): Account for possible rewriting of slice bounds
7438 resulting from side effects suppression caused by the above freezing,
7439 so that folding of bounds is preserved by such rewriting.
7441 2010-06-17 Robert Dewar <dewar@adacore.com>
7443 * einfo.ads, einfo.adb (Get_Record_Representation_Clause): New
7445 * freeze.adb (Freeze_Record_Type): Add call to
7446 Check_Record_Representation_Clause.
7447 * sem_ch13.adb (Check_Record_Representation_Clause): New function
7448 (Analyze_Record_Representation_Clause): Split out overlap code into
7450 (Check_Component_Overlap): Moved inside
7451 Check_Record_Representation_Clause.
7452 * sem_ch13.ads (Check_Record_Representation_Clause): New function.
7454 2010-06-17 Robert Dewar <dewar@adacore.com>
7456 * back_end.adb, sem_res.adb, switch-c.adb, sem_scil.adb: Minor
7458 * sem_attr.adb, sem_cat.adb, sem_disp.adb, sem_elab.adb, sem_elim.adb,
7459 sem_eval.adb: Use Ekind_In
7461 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7463 * sem_ch8.adb: better error message for illegal inherited discriminant
7465 2010-06-17 Vincent Celier <celier@adacore.com>
7467 * bindusg.adb: Remove lines for -A and -C
7468 * gnat_ugn.texi: Remove all documentation and examples of switches -A
7469 and -C for gnatbind and gnatlink.
7470 * gnatlink.adb (Usage): Remove lines for -A and -C
7471 * switch-b.adb (Scan_Binder_Switches): Issue warning when switch -C is
7473 * gcc-interface/Make-lang.in: Update dependencies.
7475 2010-06-17 Vincent Celier <celier@adacore.com>
7477 * back_end.adb (Scan_Compiler_Arguments): Put all arguments in new
7478 local Argument_List variable Args.
7479 * switch-c.adb (Scan_Front_End_Switches): New Argument_List argument
7481 (Switch_Subsequently_Cancelled): New Argument_List argument Args. Look
7482 for subsequent switches in Args.
7483 * switch-c.ads (Scan_Front_End_Switches): New Argument_List argument
7485 * gcc-interface/Make-lang.in: Update dependencies.
7487 2010-06-17 Robert Dewar <dewar@adacore.com>
7489 * einfo.adb: Minor code fix, allow E_Class_Wide_Type for
7490 Equivalent_Type to match documentation.
7492 2010-06-17 Robert Dewar <dewar@adacore.com>
7494 * sem_ch6.adb, sem_ch7.adb: Minor reformatting.
7495 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_ch10.adb, sem_ch12.adb,
7496 sem_ch4.adb, sem_ch8.adb, sem_ch13.adb: Make use of Ekind_In.
7498 2010-06-17 Thomas Quinot <quinot@adacore.com>
7500 * sem_res.adb (Set_Slice_Subtype): Always freeze the slice's itype.
7502 2010-06-17 Thomas Quinot <quinot@adacore.com>
7504 * freeze.adb (Freeze_Expression): Short circuit operators are valid
7505 freeze node insertion points.
7507 2010-06-17 Robert Dewar <dewar@adacore.com>
7509 * switch-c.ads, switch-c.adb, sem_ch13.adb: Minor reformatting.
7510 * sem_ch12.adb: Add pragmas Assert and Check to previous change.
7512 2010-06-17 Gary Dismukes <dismukes@adacore.com>
7514 * layout.adb (Layout_Type): Broaden test for setting an array type's
7515 Component_Size to include all scalar types, not just discrete types
7516 (components of real types were missed).
7517 * sem_ch3.adb (Constrain_Index): Add missing setting of First_Literal
7518 on the itype created for an index (consistent with Make_Index and
7519 avoids possible Assert_Failures).
7521 2010-06-17 Robert Dewar <dewar@adacore.com>
7523 * atree.ads, atree.adb: Add 6-parameter version of Ekind_In
7524 * einfo.adb: Minor code reformatting (use Ekind_In)
7526 2010-06-17 Robert Dewar <dewar@adacore.com>
7528 * sem_warn.adb (Test_Ref): Abandon scan if access subprogram parameter
7531 2010-06-17 Vincent Celier <celier@adacore.com>
7533 * back_end.adb: Minor comment updates
7534 * switch-c.adb: Remove dependencies on gcc C sources
7535 * gcc-interface/Make-lang.in: Add a-comlin.o to the object file list
7538 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7540 * sem_ch12.adb: propagate Pragma_Enabled flag to generic.
7541 * get_scos.adb: Set C2 flag in decision entry of pragma to 'e'.
7542 * par_sco.ads, par_sco.adb (Set_SCO_Pragma_Enabled): New procedure
7543 Remove use of Node field in SCOs table
7544 (Output_Header): Set 'd' to initially disable pragma entry
7545 * put_scos.adb (Put_SCOs): New flag indicating if pragma is enabled
7546 * scos.ads, scos.adb: Remove Node field from internal SCOs table.
7547 Use C2 field of pragma decision header to indicate enabled.
7548 * sem_prag.adb: Add calls to Set_SCO_Pragma_Enabled.
7549 * gcc-interface/Make-lang.in: Update dependencies.
7551 2010-06-17 Vincent Celier <celier@adacore.com>
7553 * back_end.adb (Next_Arg): Moved to procedure Scan_Compiler_Arguments
7554 (Scan_Compiler_Arguments): Call Scan_Front_End_Switches with Next_Arg
7555 (Switch_Subsequently_Cancelled): Function moved to the body of Switch.C
7556 * back_end.ads (Scan_Front_End_Switches): Function moved to the body of
7558 * switch-c.adb: Copied a number of global declarations from
7560 (Len_Arg): New function copied from back_end.adb
7561 (Switch_Subsequently_Cancelled): New function moved from back_end.adb
7562 (Scan_Front_End_Switches): New parameter Arg_Rank used to call
7563 Switch_Subsequently_Cancelled.
7564 * switch-c.ads (Scan_Front_End_Switches): New parameter Arg_Rank.
7565 * gcc-interface/Makefile.in: Add line so that shared libgnat is linked
7566 with -lexc on Tru64.
7568 2010-06-17 Robert Dewar <dewar@adacore.com>
7570 * prj.ads, prj.adb: Minor reformatting
7572 2010-06-17 Thomas Quinot <quinot@adacore.com>
7574 * put_scos.adb: Do not generate a blank line in SCOs when omitting the
7575 CP line for a disabled pragma.
7577 2010-06-17 Emmanuel Briot <briot@adacore.com>
7579 * prj-proc.adb, prj.adb, prj.ads (Check_Or_Set_Typed_Variable): New
7581 (Process_Declarative_Item): An invalid value in an typed variable
7582 declaration is no longer always fatal.
7584 2010-06-16 Arnaud Charlet <charlet@adacore.com>
7586 * get_scos.adb, par_sco.adb, par_sco.ads, put_scos.adb, scos.adb,
7587 scos.ads, exp_ch4.adb, sem_warn.adb: Code clean up, update
7590 2010-06-16 Javier Miranda <miranda@adacore.com>
7592 * exp_disp.adb (Expand_Dispatching_Call): Adjust the decoration of the
7593 node referenced by the SCIL node of dispatching "=" to skip the tags
7596 2010-06-16 Ed Schonberg <schonberg@adacore.com>
7598 * sem_ch5.adb (Analyze_Exit_Statement): Return if no enclosing loop,
7599 to prevent cascaded errors and compilation aborts.
7601 2010-06-16 Robert Dewar <dewar@adacore.com>
7603 * back_end.adb (Switch_Subsequently_Cancelled): New function
7604 Move declarations to package body level to support this change
7605 * back_end.ads (Switch_Subsequently_Cancelled): New function
7606 * gnat_ugn.texi: Document -gnat-p switch
7607 * switch-c.adb (Scan_Front_End_Switches): Implement -gnat-p switch
7608 * ug_words: Add entry for -gnat-p (UNSUPPRESS_ALL)
7609 * usage.adb: Add line for -gnat-p switch
7610 * vms_data.ads: Add entry for UNSUPPRESS_ALL (-gnat-p)
7612 2010-06-16 Robert Dewar <dewar@adacore.com>
7614 * sem_warn.adb (Check_Infinite_Loop_Warning): Declaration counts as
7617 2010-06-16 Robert Dewar <dewar@adacore.com>
7619 * exp_disp.adb: Minor reformatting
7621 2010-06-16 Ed Schonberg <schonberg@adacore.com>
7623 * sem_ch3.adb (Complete_Private_Subtype): Inherit class_wide type from
7624 base type only if it was not previously created for the partial view.
7626 2010-06-16 Thomas Quinot <quinot@adacore.com>
7628 * tbuild.ads: Minor comment fix
7630 2010-06-15 Nathan Froyd <froydnj@codesourcery.com>
7632 * gcc-interface/trans.c (gnu_stack_free_list): Delete.
7633 (gnu_except_ptr_stack): Change type to VEC. Update comment.
7634 (gnu_elab_proc_stack): Likewise.
7635 (gnu_return_label_stack): Likewise.
7636 (gnu_loop_label_stack): Likewise.
7637 (gnu_switch_label_stack): Likewise.
7638 (gnu_constraint_label_stack): Likewise.
7639 (gnu_storage_error_label_stack): Likewise.
7640 (gnu_program_error_label_stack): Likewise.
7641 (push_exception_label_stack): Take a VEC ** instead of a tree *.
7642 (push_stack): Likewise. Remove unused second parameter. Update
7644 (pop_stack): Take a VEC * instead of a tree *. Update callers.
7645 (gigi): Initialize stacks as VECs.
7646 (Identifier_to_gnu): Use VEC_last instead of TREE_VALUE.
7647 (Case_Statement_to_gnu): Likewise.
7648 (Subprogram_Body_to_gnu): Likewise.
7649 (call_to_gnu): Likewise.
7650 (Exception_Handler_to_gnu_sjlj): Likewise.
7651 (gnat_to_gnu): Likewise.
7652 (get_exception_label): Likewise.
7654 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7656 * sem_ch3.adb (Build_Derived_Record_Type): if derived type is an
7657 anonymous base generated when the parent is a constrained discriminated
7658 type, propagate interface list to first subtype because it may appear
7659 in a current instance within the extension part of the derived type
7660 declaration, and its own subtype declaration has not been elaborated
7662 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
7663 determine whether it has the controlling type.
7665 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
7667 * exp_ch11.adb (Expand_N_Raise_Statement): Make sure that the explicit
7668 raise of CE, SE and PE have the reason correctly set and are properly
7669 expanded before stopping the expansions of .NET/JVM exceptions.
7671 2010-06-14 Robert Dewar <dewar@adacore.com>
7673 * opt.ads (Check_Policy_List): Add some clarifying comments
7674 * sem_prag.adb (Analyze_Pragma, case Check): Set Pragma_Enabled flag
7675 on rewritten Assert pragma.
7677 2010-06-14 Gary Dismukes <dismukes@adacore.com>
7679 * sem_ch6.adb (Check_Overriding_Indicator): Add a special check for
7680 controlled operations, so that they will be treated as overriding even
7681 if the overridden subprogram is marked Is_Hidden, as long as the
7682 overridden subprogram's parent subprogram is not hidden.
7684 2010-06-14 Robert Dewar <dewar@adacore.com>
7686 * debug.adb: Entry for gnatw.d no longer specific for while loops
7687 * einfo.adb (First_Exit_Statement): New attribute for E_Loop
7688 * einfo.ads (First_Exit_Statement): New attribute for E_Loop
7689 * sem_ch5.adb (Analyze_Loop_Statement): Check_Infinite_Loop_Warning has
7690 new calling sequence to include test for EXIT WHEN.
7691 (Analyze_Exit_Statement): Chain EXIT statement into exit statement
7693 * sem_warn.ads, sem_warn.adb (Check_Infinite_Loop_Warning): Now handles
7695 * sinfo.adb (Next_Exit_Statement): New attribute of N_Exit_Statement
7697 * sinfo.ads (N_Pragma): Correct comment on Sloc field (points to
7698 PRAGMA, not to pragma identifier).
7699 (Next_Exit_Statement): New attribute of N_Exit_Statement node
7701 2010-06-14 Robert Dewar <dewar@adacore.com>
7703 * sem_res.adb (Resolve_Short_Circuit): Fix sloc of "assertion/check
7706 2010-06-14 Robert Dewar <dewar@adacore.com>
7708 * par-ch2.adb (Scan_Pragma_Argument_Association): Clarify message for
7709 missing pragma argument identifier.
7711 2010-06-14 Robert Dewar <dewar@adacore.com>
7713 * atree.ads, atree.adb (Ekind_In): New functions.
7715 2010-06-14 Robert Dewar <dewar@adacore.com>
7717 * exp_ch4.adb (Expand_N_Op_Expon): Optimize 2**N in stand alone context
7719 2010-06-14 Robert Dewar <dewar@adacore.com>
7721 * usage.adb (Usage): Redo documentation of -gnatwa.
7723 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7725 * sem_ch8.adb (Find_Type): The attribute 'class cannot be applied to
7726 an untagged incomplete type that is a limited view.
7728 2010-06-14 Sergey Rybin <rybin@adacore.com>
7730 * gnat_ugn.texi: Add description of '-cargs gcc_switches' to gnatstub
7733 2010-06-14 Thomas Quinot <quinot@adacore.com>
7735 * exp_ch4.adb (Expand_Short_Circuit_Operator): New subprogram,
7736 factoring duplicated code between...
7737 (Expand_N_And_Than, Expand_N_Or_Else): Remove duplicated code.
7738 * a-envvar.ads: Minor reformatting
7740 2010-06-14 Arnaud Charlet <charlet@adacore.com>
7742 * ali.adb, ali.ads, lib-xref.ads: Document new '+' letter for C/C++
7744 (Scan_ALI): Take into account new Visibility field.
7745 (Visibility_Kind): New type.
7746 (Xref_Entity_Record): Replace Lib field by Visibility.
7748 * gcc-interface/Make-lang.in: Update dependencies.
7750 2010-06-14 Pascal Obry <obry@adacore.com>
7752 * raise.h: Remove unused defintions.
7754 2010-06-14 Bob Duff <duff@adacore.com>
7756 * par-ch10.adb (P_Subunit): If the next token after "separate(X)" is
7757 Tok_Not or Tok_Overriding, call P_Subprogram. We had previously given
7758 the incorrect error "proper body expected".
7759 * par-ch6.adb (P_Subprogram): Suppress "overriding indicator not
7760 allowed here" error in case of subunits, which was triggered by the
7761 above change to P_Subunit.
7763 2010-06-14 Sergey Rybin <rybin@adacore.com>
7765 * gnat_ugn.texi, vms_data.ads: Update gnatelim doc.
7767 2010-06-14 Thomas Quinot <quinot@adacore.com>
7769 * lib-util.adb: Minor code reorganization.
7771 2010-06-14 Robert Dewar <dewar@adacore.com>
7773 * ali.adb (Scan_ALI): Implement reading and storing of N lines
7774 (Known_ALI_Lines): Add entry for 'N' (notes)
7775 * ali.ads (Notes): New table to store Notes information
7776 * alloc.ads: Add entries for Notes table
7777 * lib-util.adb (Write_Info_Int): New procedure
7778 (Write_Info_Slit): New procedure
7779 (Write_Info_Uint): New procedure
7780 * lib-util.ads (Write_Info_Int): New procedure
7781 (Write_Info_Slit): New procedure
7782 (Write_Info_Uint): New procedure
7783 * lib-writ.adb (Write_Unit_Information): Output N (notes) lines
7784 * lib-writ.ads: Update documentation for N (Notes) lines
7785 * lib.adb (Store_Note): New procedure
7786 * lib.ads (Notes): New table
7787 (Store_Note): New procedure
7788 * sem_prag.adb: Call Store_Note for affected pragmas
7790 2010-06-14 Thomas Quinot <quinot@adacore.com>
7792 * socket.c: Fix wrong condition in #ifdef
7793 * g-socket.adb, g-sothco.ads: Functions imported from socket.c that
7794 take or return char* values can't use Interfaces.C.Strings.chars_ptr,
7795 because on VMS this type is a 32-bit pointer which is not compatible
7796 with the default for C pointers for code compiled with gcc on that
7799 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7801 * sem_util (Is_VMS_Operator): New predicate to determine whether an
7802 operator is an intrinsic operator declared in the DEC system extension.
7803 * sem_res.adb (Resolve_Logical_Op): operation is legal on signed types
7804 if the operator is a VMS intrinsic.
7805 * sem_eval.adb (Eval_Logical_Op): Operation is legal and be
7806 constant-folded if the operands are signed and the operator is a VMS
7809 2010-06-14 Robert Dewar <dewar@adacore.com>
7811 * g-socket.adb, gnatcmd.adb: Minor reformatting.
7813 2010-06-14 Pascal Obry <obry@adacore.com>
7815 * s-finimp.adb: Fix typo.
7816 * raise.h: Remove duplicate blank line.
7818 2010-06-14 Vincent Celier <celier@adacore.com>
7820 * prj-nmsc.adb (Add_Sources): Always set the object file and the
7821 switches file names, as the configuration of the language may change
7822 in an extending project.
7823 (Process_Naming_Scheme): For sources of projects that are extended, set
7824 the configuration of the language from the highest extending project
7825 where the language is declared.
7827 2010-06-14 Gary Dismukes <dismukes@adacore.com>
7829 * sem_res.adb (Resolve_Call): For infinite recursion check, test
7830 whether the called subprogram is inherited from a containing
7832 (Same_Or_Aliased_Subprograms): New function
7834 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7836 * sem_ch8.adb (End_Use_Type): Before indicating that an operator is not
7837 use-visible, check whether it is a primitive for more than one type.
7839 2010-06-14 Robert Dewar <dewar@adacore.com>
7841 * sem_ch3.adb (Copy_And_Swap): Copy Has_Pragma_Unmodified flag.
7843 * sem_ch7.adb (Preserve_Full_Attributes): Preserve
7844 Has_Pragma_Unmodified flag.
7846 2010-06-14 Thomas Quinot <quinot@adacore.com>
7848 * g-sttsne-locking.adb, g-sttsne-locking.ads, g-sttsne.ads,
7849 g-sttsne-vxworks.adb, g-sttsne-dummy.ads: Removed. Mutual exclusion is
7850 now done in GNAT.Sockets if necessary.
7851 * gsocket.h, g-socket.adb, g-sothco.ads (GNAT.Sockets.Get_XXX_By_YYY):
7852 Ensure mutual exclusion for netdb operations if the target platform
7854 (GNAT.Sockets.Thin_Common): New binding for getXXXbyYYY, treating
7855 struct hostent as an opaque type to improve portability.
7856 * s-oscons-tmplt.c, socket.c: For the case of Vxworks, emulate
7857 gethostbyYYY using proprietary VxWorks API so that a uniform interface
7858 is available for the Ada side.
7859 * gcc-interface/Makefile.in: Remove g-sttsne-*
7860 * gcc-interface/Make-lang.in: Update dependencies.
7862 2010-06-14 Vincent Celier <celier@adacore.com>
7864 * gnatcmd.adb (Mapping_File): New function.
7866 2010-06-14 Javier Miranda <miranda@adacore.com>
7868 * sem_ch3.adb (Derive_Subprograms): Remove over-restrictive assertion.
7870 2010-06-14 Arnaud Charlet <charlet@adacore.com>
7872 * ali.adb: Fix typo.
7873 * s-auxdec-vms-alpha.adb, scng.ads: Minor reformatting.
7875 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7877 * sem_ch12.adb: Make Mark_Context transitive, and apply to subprogram
7880 * sem_ch8.adb (Find_Expanded_Name): If a candidate compilation unit in
7881 the context does not have a homonym of the selector, emit default
7884 2010-06-14 Robert Dewar <dewar@adacore.com>
7886 * sem.adb, sem_ch12.adb, sem_util.adb: Minor reformatting and
7889 2010-06-14 Arnaud Charlet <charlet@adacore.com>
7891 * lib-xref.ads: Doc updates:
7892 - Allocate 'Q' for #include entity kind
7894 - Allocate 'g' for regular macros
7895 - Allocate 'G' for function-like macros
7897 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7899 * sinfo.ads, sinfo.adb (Withed_Body): New attribute of a with_clause.
7900 Indicates that there is an instantiation in the current unit that
7901 loaded the body of the unit denoted by the with_clause.
7902 * sem_ch12.adb (Mark_Context): When instanting a generic body, check
7903 whether a with_clause in the current context denotes the unit that
7904 holds the generic declaration, and mark the with_clause accordingly.
7905 (Instantiate_Package_Body): call Mark_Context.
7906 * sem.adb (Process_Bodies_In_Context): Use Withed_Body to determine
7907 whether a given body should be traversed before the spec of the main
7910 2010-06-14 Ed Falis <falis@adacore.com>
7912 * sysdep.c: Fix 653 build against vThreads headers.
7914 2010-06-14 Robert Dewar <dewar@adacore.com>
7916 * sinfo.ads: Minor reformatting.
7918 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7920 * sem_ch6.adb (Analyze_Subprogram_Body): Do not check conformance when
7921 the spec has been generated for a body without spec that carries an
7922 Inline_Always pragma.
7924 2010-06-14 Arnaud Charlet <charlet@adacore.com>
7926 * lib-xref.ads: Documentation change: allocate 'Z' letter to C/C++
7929 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
7931 * exp_dbug.adb (Debug_Renaming_Declaration): Do not output any debug
7932 declaration for VMs, as those are useless and might lead to duplicated
7933 local variable names in the generated code.
7934 * gcc-interface/Make-lang.in: Update dependencies.
7936 2010-06-14 Robert Dewar <dewar@adacore.com>
7938 * opt.ads, sem.adb, sem_elab.adb: Minor reformatting
7940 2010-06-14 Robert Dewar <dewar@adacore.com>
7942 * exp_aggr.adb (Has_Address_Clause): Moved to Exp_Util, and there it
7943 is renamed as Has_Following_Address_Clause.
7944 * exp_ch3.adb (Needs_Simple_Initialization): Add Consider_IS argument
7945 to allow the caller to avoid Initialize_Scalars having an effect.
7946 (Expand_N_Object_Declaration): Do not do Initialize_Scalars stuff for
7947 scalars with an address clause specified.
7948 * exp_ch3.ads (Needs_Simple_Initialization): Add Consider_IS argument
7949 to allow the caller to avoid Initialize_Scalars having an effect.
7950 * exp_util.adb (Has_Following_Address_Clause): Moved here from Exp_Aggr
7951 (where it was called Has_Address_Clause).
7952 * exp_util.ads (Has_Following_Address_Clause): Moved here from Exp_Aggr
7953 (where it was called Has_Address_Clause).
7954 * freeze.adb (Warn_Overlay): Suppress message about overlaying causing
7955 problems for Initialize_Scalars (since we no longer initialize objects
7956 with an address clause.
7958 2010-06-14 Robert Dewar <dewar@adacore.com>
7960 * exp_prag.adb (Expand_Pragma_Check): Set Loc of generated code from
7963 2010-06-14 Gary Dismukes <dismukes@adacore.com>
7965 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Debug_Info_Needed
7966 on the entity of an implicitly generated postcondition procedure.
7968 2010-06-14 Thomas Quinot <quinot@adacore.com>
7970 * sem_ch7.adb (Preserve_Full_Attributes): Propagate
7971 Discriminant_Constraint elist from full view to private view.
7973 2010-06-14 Robert Dewar <dewar@adacore.com>
7975 * sem_res.adb: Minor reformatting.
7977 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7979 * sem.adb: New version of unit traversal.
7981 * sem_elab.adb (Check_Internal_Call): Do not place a call appearing
7982 within a generic unit in the table of delayed calls.
7984 2010-06-14 Robert Dewar <dewar@adacore.com>
7986 * gnatcmd.adb, sem_util.adb, exp_ch3.adb: Minor reformatting
7988 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7990 * sem_ch12.adb (Save_References): If an identifier has been rewritten
7991 during analysis as an explicit dereference, keep the reference implicit
7992 in the generic, but preserve the entity if global. This prevents
7993 malformed generic trees in the presence of some nested generics.
7995 2010-06-14 Sergey Rybin <rybin@adacore.com>
7997 * gnat_ugn.texi: For the GNAT driver, clarify the effect of calling the
7998 tool with '-files=' option. Also fix some small errors (wrong brackets)
8000 2010-06-14 Vincent Celier <celier@adacore.com>
8002 * gnatbind.adb: Call Scan_ALI with Directly_Scanned set to True for all
8003 the ALI files on the command line.
8005 * ali.adb (Scan_ALI): Set component Directly_Scanned of the unit(s) to
8006 the same value as the parameter of the same name.
8007 * ali.ads (Scan_ALI): New Boolean parameter Directly_Scanned, defaulted
8009 * bindgen.adb (Gen_Versions_Ada): Never emit version symbols for
8010 Stand-Alone Library interfaces. When binding Stand-Alone Libraries,
8011 emit version symbols only for the units of the library.
8012 (Gen_Versions_C): Ditto.
8014 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8016 * sem_ch4.adb: Fix typo.
8018 2010-06-14 Vasiliy Fofanov <fofanov@adacore.com>
8020 * s-oscons-tmplt.c (IOV_MAX): redefine on Tru64 and VMS since the
8021 vector IO doesn't work at default value properly.
8023 2010-06-14 Doug Rupp <rupp@adacore.com>
8025 * s-stoele.adb: Remove unnecessary qualification of To_Address for VMS.
8027 2010-06-14 Vincent Celier <celier@adacore.com>
8029 * gnatcmd.adb (Check_Files): Do not invoke the tool with all the
8030 sources of the project if a switch -files= is used.
8032 2010-06-14 Thomas Quinot <quinot@adacore.com>
8034 * exp_attr.adb: Minor reformatting.
8036 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8038 * gnat_ugn.texi: Minor typo fixes and wording changes.
8040 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8042 * sem_ch4.adb (Analyze_One_Call): If the call has been rewritten from a
8043 prefixed form, do not re-analyze first actual, which may need an
8044 implicit dereference.
8045 * sem_ch6.adb (Analyze_Procedure_Call): If the call is given in
8046 prefixed notation, the analysis will rewrite the node, and possible
8047 errors appear in the rewritten name of the node.
8048 * sem_res.adb: If a call is ambiguous because its first parameter is
8049 an overloaded call, report list of candidates, to clarify ambiguity of
8052 2010-06-14 Doug Rupp <rupp@adacore.com>
8054 * s-auxdec-vms-alpha.adb: New package body implementing legacy
8055 VAX instructions with Asm insertions.
8056 * s-auxdec-vms_64.ads: Inline VAX queue functions
8057 * s-stoele.adb: Resolve some ambiguities in To_Addresss with s-suxdec
8058 that show up only on VMS.
8059 * gcc-interface/Makefile.in: Provide translation for
8060 s-auxdec-vms-alpha.adb.
8062 2010-06-14 Olivier Hainque <hainque@adacore.com>
8064 * initialize.c (VxWorks section): Update comments.
8066 2010-06-14 Robert Dewar <dewar@adacore.com>
8068 * a-convec.adb, sem_prag.adb, checks.adb: Minor reformatting.
8070 2010-06-14 Eric Botcazou <ebotcazou@adacore.com>
8072 * init.c: Code clean up.
8074 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8076 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address): Do
8077 not insert address clause in table for later validation if type of
8078 entity is generic, to prevent possible spurious errors.
8080 * sem_ch8.adb: Code clean up.
8082 2010-06-14 Ben Brosgol <brosgol@adacore.com>
8084 * gnat_ugn.texi: Expanded @ovar macro inline to solve problem with
8085 texi2pdf and texi2html.
8086 Document how to change scheduling properties on HP-UX.
8088 2010-06-14 Thomas Quinot <quinot@adacore.com>
8090 * g-socket.ads: Remove misleading comments.
8092 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
8094 * sem_prag.adb (Check_Duplicated_Export_Name): Remove check for
8095 CLI_Target as this prevents proper detection of exported names
8096 duplicates when the exported language is different to CIL.
8097 (Process_Interface_Name): Add check for CIL convention exports,
8098 replacing the old one from Check_Duplicated_Export_Name.
8100 2010-06-14 Matthew Heaney <heaney@adacore.com>
8102 * a-coinve.adb, a-convec.adb (operator "&"): Check both that new length
8103 and new last satisfy constraints.
8104 (Delete_Last): prevent overflow for subtraction of index values
8105 (To_Vector): prevent overflow for addition of index values
8107 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8109 * sem_ch4.adb (Complete_Object_Operation): After analyzing the
8110 rewritten call, preserve the resulting type to prevent spurious errors,
8111 when the call is implicitly dereferenced in the context of an in-out
8114 * checks.adb (Apply_Discriminant_Check): If the target of the
8115 assignment is a renaming of a heap object, create constrained type for
8118 2010-06-14 Pascal Obry <obry@adacore.com>
8120 * prj-proc.adb: Fix copy of object directory for extending projects.
8122 2010-06-14 Jose Ruiz <ruiz@adacore.com>
8124 * init.c (__gnat_alternate_stack): Define this space for PowerPC linux
8125 (__gnat_install_handler, PowerPC linux): Activate the alternative
8128 2010-06-13 Gerald Pfeifer <gerald@pfeifer.com>
8130 * gnat_rm.texi: Move to GFDL version 1.3.
8131 * gnat-style.texi: Ditto.
8132 * gnat_ugn.texi: Ditto.
8134 2010-06-12 Kai Tietz <kai.tietz@onevision.com>
8137 * gcc-interface/Makefile.in: Add rules for multilib x86/x64
8140 2010-06-11 Alexandre Oliva <aoliva@redhat.com>
8142 * gcc-interface/utils.c (update_pointer_to): Initialize last.
8144 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
8146 * gcc-interface/ada-tree.h: Fix formatting nits.
8148 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8150 * gcc-interface/utils.c (init_gnat_to_gnu): Use typed GC
8152 (init_dummy_type): Likewise.
8153 (gnat_pushlevel): Likewise.
8155 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
8156 (Subprogram_Body_to_gnu): Likewise.
8157 (Compilation_Unit_to_gnu): Likewise.
8158 (start_stmt_group): Likewise.
8159 (extract_encoding): Likewise.
8160 (decode_name): Likewise.
8162 * gcc-interface/misc.c (gnat_printable_name): Likewise.
8164 * gcc-interface/decl.c (annotate_value): Likewise.
8166 * gcc-interface/ada-tree.h (struct lang_type): Add variable_size
8168 (struct lang_decl): Likewise.
8169 (SET_TYPE_LANG_SPECIFIC): Use typed GC allocation.
8170 (SET_DECL_LANG_SPECIFIC): Likewise.
8172 2010-06-04 Eric Botcazou <ebotcazou@adacore.com>
8174 * gnatlink.adb (gnatlink): Remove support for -fsjlj switch.
8175 * gcc-interface/lang-specs.h: Likewise.
8177 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
8180 * gcc-interface/decl.c (MAX_FIXED_MODE_SIZE): Removed.
8182 2010-06-01 Arnaud Charlet <charlet@adacore.com>
8184 * gnat_ugn.texi: Improve doc on -fdump-ada-spec, mention limitations.
8186 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
8188 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Task_Type>: Reuse the
8189 TYPE_DECL of the equivalent type instead of building a new one.
8191 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
8193 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust warning message.
8194 Fix nits in comments.
8195 * gcc-interface/misc.c (gnat_init_gcc_eh): Likewise.
8196 * gcc-interface/trans.c (gigi): Likewise.
8197 (Attribute_to_gnu): Likewise.
8198 (Case_Statement_to_gnu): Likewise.
8199 (gnat_to_gnu): Adjust warning message.
8200 * gcc-interface/utils.c (create_var_decl_1): Fix nits in comments.
8201 (build_vms_descriptor32): Likewise.
8203 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
8205 * gcc-interface/decl.c: Pretend to be a backend file by undefining
8206 IN_GCC_FRONTEND (still need rtl.h here).
8208 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8210 * gcc-interface/trans.c: Do not include rtl.h, insclude libfuncs.h.
8211 (gigi): Adjust call to set_stack_check_libfunc.
8213 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8215 * gcc-interface/utils.c: Do not include rtl.h.
8217 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
8219 * gcc-interface/utils.c: Do not include function.h, pointer-set.h,
8220 and gimple.h. Explain why rtl.h has to be included.
8221 (handle_vector_size_attribute): Call reconstruct_complex_type directly.
8222 * gcc-interface/targtyps.c: Do not include tm_p.h
8223 * gcc-interface/utils2.c: Do not include flags.h.
8224 * gcc-interface/trans.c: Do not include expr.h. Include rtl.h instead,
8225 and explain why it has to be included.
8226 * gcc-interface/misc.c: Do not include expr.h, libfuncs.h, cgraph.h,
8228 Include function.h and explain why. Explain why except.h is included.
8229 (enumerate_modes): Remove unused function.
8230 * gcc-interface/gigi.h (enumerate_modes): Remove prototype.
8231 * gcc-interface/Make-lang.in: Update dependencies.
8233 2010-05-25 Joseph Myers <joseph@codesourcery.com>
8235 * gcc-interface/misc.c (internal_error_function): Add context
8236 parameter. Use it to access show_column flag and instead of using
8237 global_dc. Call warn_if_plugins.
8238 * gcc-interface/Make-lang.in (ada/misc.o): Update dependencies.
8240 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
8242 * gcc-interface/misc.c (LANG_HOOKS_DEEP_UNSHARING): Redefine.
8243 * gcc-interface/trans.c (unshare_save_expr): Delete.
8244 (gigi): Do not unshare trees under SAVE_EXPRs here.
8246 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
8248 * gcc-interface/trans.c (call_to_gnu): Use build_call_vec instead of
8250 * gcc-interface/utils.c (build_function_stub): Likewise.
8252 2010-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
8254 * gcc-interface/misc.c (gnat_handle_option): Remove special logic
8255 for Wuninitialized without -O.
8257 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
8259 * gcc-interface/gigi.h (enum standard_datatypes): Add new value
8260 ADT_exception_data_name_id.
8261 (exception_data_name_id): New define.
8262 * gcc-interface/trans.c (gigi): Initialize it.
8263 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use the standard
8264 exception type for standard exception definitions. Do not make them
8266 <E_Record_Type>: Equate fields of types associated with an exception
8267 definition to those of the standard exception type.
8269 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
8271 * tracebak.c (__gnat_backtrace): Mark top_stack with ATTRIBUTE_UNUSED.
8273 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
8275 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Tidy up
8276 code, improve comments and fix formatting nits.
8278 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
8280 * gcc-interface/utils.c (update_pointer_to): Return early if the old
8281 pointer already points to the new type. Chain the old pointer and its
8282 variants at the end of new pointer's chain after updating them.
8284 2010-05-10 Eric Botcazou <ebotcazou@adacore.com>
8286 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables
8287 built for interfaces.
8288 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Use
8289 imported_p instead of Is_Imported when considering constants.
8290 Do not promote alignment of exported objects.
8291 <E_Record_Subtype>: Strip all suffixes for dispatch table entities.
8293 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8295 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables.
8296 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Make imported
8297 constants really constant.
8298 <E_Record_Subtype>: Strip the suffix for dispatch table entities.
8300 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8302 * gcc-interface/decl.c (make_aligning_type): Declare the type.
8304 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8306 * gcc-interface/decl.c (gnat_to_gnu_entity): Create variables for size
8307 expressions of variant part of record types declared at library level.
8309 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8311 * gcc-interface/gigi.h (create_field_decl): Move PACKED parameter.
8312 * gcc-interface/utils.c (create_field_decl): Move PACKED parameter.
8313 (rest_of_record_type_compilation): Adjust call to create_field_decl.
8314 (make_descriptor_field): Likewise and pass correctly typed constants.
8315 (build_unc_object_type): Likewise.
8316 (unchecked_convert): Likewise.
8317 * gcc-interface/decl.c (elaborate_expression_2): New static function.
8318 (gnat_to_gnu_entity): Use it to make alignment factors explicit.
8319 Adjust call to create_field_decl.
8320 (make_aligning_type): Likewise.
8321 (make_packable_type): Likewise.
8322 (maybe_pad_type): Likewise.
8323 (gnat_to_gnu_field): Likewise.
8324 (components_to_record): Likewise.
8325 (create_field_decl_from): Likewise.
8326 (create_variant_part_from): Remove superfluous test.
8327 * gcc-interface/trans.c (gigi): Adjust call to create_field_decl.
8329 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8331 * gcc-interface/gigi.h (build_unc_object_type): Add DEBUG_INFO_P param.
8332 (build_unc_object_type_from_ptr): Likewise.
8333 * gcc-interface/utils.c (build_unc_object_type): Add DEBUG_INFO_P param
8334 and pass it to create_type_decl. Declare the type. Simplify.
8335 (build_unc_object_type_from_ptr): Add DEBUG_INFO_P parameter and pass
8336 it to build_unc_object_type.
8337 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust to above change.
8338 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
8339 (gnat_to_gnu): Likewise.
8340 * gcc-interface/utils2.c (build_allocator): Likewise.
8342 2010-05-07 Eric Botcazou <ebotcazou@adacore.com>
8345 * gcc-interface/misc.c (gnat_handle_option): Fix long line.
8347 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8349 * gcc-interface/Makefile.in: Removed mips-sgi-irix5* support.
8351 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
8354 * gcc-interface/misc.c (gnat_handle_option): Add argument kind.
8356 2010-05-02 Giuseppe Scrivano <gscrivano@gnu.org>
8358 * gnathtml.pl: Use 755 as mask for new directories.
8360 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
8362 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Uniquize
8363 constant constructors before taking their address.
8365 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
8367 * exp_dbug.ads: Fix outdated description. Mention link between XVS
8369 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Set
8370 XVZ variable as unit size of XVS type.
8371 (maybe_pad_type): Likewise.
8373 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
8375 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Do not
8376 use memmove if the array type is bit-packed.
8378 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
8380 * gcc-interface/misc.c (gnat_init): Remove second argument in call to
8381 build_common_tree_nodes.
8383 2010-04-18 Ozkan Sezer <sezeroz@gmail.com>
8385 * gsocket.h: Make sure that winsock2.h is included before windows.h.
8387 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8389 * gcc-interface/utils2.c (build_unary_op) <ATTR_ADDR_EXPR>: Do not
8392 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8394 * uintp.h (UI_Lt): Declare.
8395 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do the size
8396 computation in sizetype.
8397 <E_Array_Subtype>: Use unified handling for all index types. Do not
8398 generate MAX_EXPR-based expressions, only COND_EXPR-based ones. Add
8400 (annotate_value): Change test for negative values.
8401 (validate_size): Apply test for negative values on GNAT nodes.
8402 (set_rm_size): Likewise.
8403 * gcc-interface/misc.c (gnat_init): Set unsigned types for sizetypes.
8404 * gcc-interface/utils.c (rest_of_record_type_compilation): Change test
8405 for negative values.
8406 (max_size) <MINUS_EXPR>: Do not reassociate a COND_EXPR on the LHS.
8407 (builtin_type_for_size): Adjust definition of signed_size_type_node.
8408 * gcc-interface/utils2.c (compare_arrays): Optimize comparison of
8409 lengths against zero.
8411 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8413 * back-end.adb (Call_Back_End): Pass Standard_Character to gigi.
8414 * gcc-interface/gigi.h (gigi): Add standard_character parameter.
8415 (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
8416 LONG_LONG_TYPE_SIZE, FLOAT_TYPE_SIZE, DOUBLE_TYPE_SIZE,
8417 LONG_DOUBLE_TYPE_SIZE, SIZE_TYPE): Delete.
8418 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Call
8420 * gcc-interface/misc.c (gnat_init): Set signedness of char as per
8421 flag_signed_char. Tag sizetype with "size_type" moniker.
8422 * gcc-interface/trans.c (gigi): Add standard_character parameter.
8423 Remove useless built-in types. Equate unsigned_char_type_node to
8424 Standard.Character. Use it instead of char_type_node throughout.
8425 (Attribute_to_gnu): Likewise.
8426 (gnat_to_gnu): Likewise.
8427 * gcc-interface/utils2.c (build_call_raise): Likewise.
8429 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8431 * gcc-interface/gigi.h (enum standard_datatypes): Add new values
8432 ADT_sbitsize_one_node and ADT_sbitsize_unit_node.
8433 (sbitsize_one_node): New macro.
8434 (sbitsize_unit_node): Likewise.
8435 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Fix
8436 latent bug in the computation of subrange_p. Fold wider_p predicate.
8437 (cannot_be_superflat_p): Use an explicitly signed 64-bit type to do
8438 the final comparison.
8439 (make_aligning_type): Build real negation and use sizetype throughout
8440 the offset computation.
8441 (maybe_pad_type): Do not issue the warning when the new size expression
8443 (annotate_value) <INTEGER_CST>: Simplify code handling negative values.
8444 * gcc-interface/misc.c (gnat_init): Initialize sbitsize_one_node and
8446 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Pool_Address>: Fold
8448 (gnat_to_gnu) <N_Free_Statement>: Likewise.
8449 * gcc-interface/utils.c (convert): Use sbitsize_unit_node.
8450 * gcc-interface/utils2.c (compare_arrays): Compute real lengths and use
8451 constants in sizetype. Remove dead code and tweak comments. Generate
8452 equality instead of inequality comparisons for zero length tests.
8454 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8456 * gcc-interface/gigi.h (gnat_init_decl_processing): Delete.
8457 * gcc-interface/decl.c (gnat_to_gnu_entity): Constify a few variables.
8458 <object>: Do not create the fake PARM_DECL if no debug info is needed.
8459 Do not create the corresponding VAR_DECL of a CONST_DECL for debugging
8460 purposes if no debug info is needed.
8461 Fix formatting. Reorder and add comments.
8462 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Reference>: Constify
8463 variable and remove obsolete comment.
8464 * gcc-interface/utils.c (convert_vms_descriptor64): Tweak comment.
8465 (convert_vms_descriptor32): Likewise.
8466 (convert): Remove dead code.
8467 <UNCONSTRAINED_ARRAY_REF>: Pass the field instead of its name to build
8468 the reference to the P_ARRAY pointer.
8469 <POINTER_TYPE>: Likewise.
8470 (maybe_unconstrained_array) <UNCONSTRAINED_ARRAY_TYPE>: Likewise.
8471 (gnat_init_decl_processing): Delete, move contents to...
8472 * gcc-interface/misc.c (gnat_init): ...here.
8474 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8476 * gcc-interface/trans.c (unchecked_conversion_nop): Handle function
8477 calls. Return true for conversion from a record subtype to its type.
8479 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8481 * gcc-interface/decl.c (gnat_to_gnu_entity): Use boolean_type_node in
8482 lieu of integer_type_node for boolean operations.
8483 (choices_to_gnu): Likewise.
8484 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
8485 (Loop_Statement_to_gnu): Likewise.
8486 (establish_gnat_vms_condition_handler): Likewise.
8487 (Exception_Handler_to_gnu_sjlj): Likewise.
8488 (gnat_to_gnu): Likewise.
8489 (build_unary_op_trapv): Likewise.
8490 (build_binary_op_trapv): Likewise.
8491 (emit_range_check): Likewise.
8492 (emit_index_check): Likewise.
8493 (convert_with_check): Likewise.
8494 * gcc-interface/utils.c (convert_vms_descriptor64): Likewise.
8495 (convert_vms_descriptor32): Likewise.
8496 (convert_vms_descriptor): Likewise.
8497 * gcc-interface/utils2.c (nonbinary_modular_operation): Likewise.
8498 (compare_arrays): Use boolean instead of integer constants.
8499 (build_binary_op) <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR,
8500 TRUTH_OR_EXPR, TRUTH_XOR_EXPR>: New case. Check that the result type
8502 <GE_EXPR, LE_EXPR, GT_EXPR, LT_EXPR>: Remove obsolete assertion.
8503 <EQ_EXPR, NE_EXPR>: Check that the result type is a boolean type.
8504 <PREINC/PREDECREMENT_EXPR, POSTINC/POSTDECREMENT_EXPR>: Delete.
8505 <TRUTH_NOT_EXPR>: Check that the result type is a boolean type.
8506 (build_unary_op): Use boolean_type_node in lieu of integer_type_node
8507 for boolean operations.
8508 (fill_vms_descriptor): Likewise. Fix formatting nits.
8510 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8512 * gcc-interface/ada-tree.def (LOOP_STMT): Change to 4-operand nodes.
8513 * gcc-interface/ada-tree.h (LOOP_STMT_TOP_COND, LOOP_STMT_BOT_COND):
8515 (LOOP_STMT_COND): ...this.
8516 (LOOP_STMT_BOTTOM_COND_P): New flag.
8517 (LOOP_STMT_TOP_UPDATE_P): Likewise.
8518 * gcc-interface/trans.c (can_equal_min_or_max_val_p): New function.
8519 (can_equal_min_val_p): New static inline function.
8520 (can_equal_max_val_p): Likewise.
8521 (Loop_Statement_to_gnu): Use build4 in lieu of build5 and adjust to
8522 new LOOP_STMT semantics. Use two different strategies depending on
8523 whether optimization is enabled to translate the loop.
8524 (gnat_gimplify_stmt) <LOOP_STMT>: Adjust to new LOOP_STMT semantics.
8526 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8528 * uintp.adb (UI_From_Dint): Remove useless code.
8529 (UI_From_Int): Likewise.
8530 * uintp.h: Reorder declarations.
8531 (UI_From_gnu): Declare.
8532 (UI_Base): Likewise.
8533 (Vector_Template): Likewise.
8534 (Vector_To_Uint): Likewise.
8537 * gcc-interface/gigi.h: Tweak comments.
8538 * gcc-interface/cuintp.c (UI_From_gnu): New global function.
8539 * gcc-interface/decl.c (maybe_pad_type): Do not warn if either size
8541 (annotate_value) <INTEGER_CST>: Call UI_From_gnu.
8542 * gcc-interface/trans.c (post_error_ne_num): Call post_error_ne.
8543 (post_error_ne_tree): Call UI_From_gnu and post_error_ne.
8544 * gcc-interface/utils.c (max_size) <tcc_binary>: Do not special-case
8547 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8549 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Just copy
8551 * gcc-interface/trans.c (smaller_packable_type_p): Rename into...
8552 (smaller_form_type_p): ...this. Change parameter and variable names.
8553 (call_to_gnu): Use the nominal type of the parameter to create the
8554 temporary if it's a smaller form of the actual type.
8555 (addressable_p): Return false if the actual type is integral and its
8556 size is greater than that of the expected type.
8558 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8560 * gcc-interface/cuintp.c (UI_To_gnu): Fix long line.
8561 * gcc-interface/gigi.h (MARK_VISITED): Skip objects of constant class.
8562 (process_attributes): Delete.
8563 (post_error_ne_num): Change parameter name.
8564 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force debug info
8565 with -g3. Remove a couple of obsolete lines. Minor tweaks.
8566 If type annotating mode, operate on trees to compute the adjustment to
8567 the sizes of tagged types. Fix long line.
8568 (cannot_be_superflat_p): Tweak head comment.
8569 (annotate_value): Fold local constant.
8570 (set_rm_size): Fix long line.
8571 * gcc-interface/trans.c (Identifier_to_gnu): Rework comments.
8572 (Attribute_to_gnu): Fix long line.
8573 <Attr_Size>: Remove useless assertion.
8574 Reorder statements. Use size_binop routine.
8575 (Loop_Statement_to_gnu): Use build5 in lieu of build_nt.
8576 Create local variables for the label and the test. Tweak comments.
8577 (Subprogram_Body_to_gnu): Reset cfun to NULL.
8578 (Compilation_Unit_to_gnu): Use the Sloc of the Unit node.
8579 (process_inlined_subprograms): Integrate into...
8580 (Compilation_Unit_to_gnu): ...this.
8581 (gnat_to_gnu): Fix long line.
8582 (post_error_ne_num): Change parameter name.
8583 * gcc-interface/utils.c (process_attributes): Static-ify.
8584 <ATTR_MACHINE_ATTRIBUTE>: Set input_location before proceeding.
8585 (create_type_decl): Add comment.
8586 (create_var_decl_1): Process the attributes after adding the VAR_DECL
8587 to the current binding level.
8588 (create_subprog_decl): Likewise for the FUNCTION_DECL.
8589 (end_subprog_body): Do not reset cfun to NULL.
8590 (build_vms_descriptor32): Fix long line.
8591 (build_vms_descriptor): Likewise.
8592 (handle_nonnull_attribute): Likewise.
8593 (convert_vms_descriptor64): Likewise.
8594 * gcc-interface/utils2.c (fill_vms_descriptor): Fix long line.
8595 (gnat_protect_expr): Fix thinko.
8597 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8599 * gcc-interface/trans.c (gigi): Set DECL_IGNORED_P on EH functions.
8600 (gnat_to_gnu) <N_Op_Eq>: Restore the value of input_location
8601 before translating the top-level node.
8602 (lvalue_required_p) <N_Function_Call>: Return 1 if !constant.
8603 <N_Object_Declaration>: Likewise.
8604 <N_Assignment_Statement>: Likewise.
8605 <N_Unchecked_Type_Conversion>: Likewise.
8606 (call_to_gnu): Remove kludge.
8607 (gnat_to_gnu) <N_Return_Statement>: When not optimizing, force labels
8608 associated with user returns to be preserved.
8609 (gnat_to_gnu): Add special code to deal with boolean rvalues.
8610 * gcc-interface/utils2.c (compare_arrays): Set input_location on all
8612 (build_unary_op) <ADDR_EXPR>: Call build_fold_addr_expr.
8613 <INDIRECT_REF>: Call build_fold_indirect_ref.
8615 2010-04-15 Joel Sherrill <joel.sherrill@oarcorp.com>
8617 * g-socket.adb: A target can have multiple missing errno's. This
8618 will result in multiple errno's being defined as -1. Because of this
8619 we can not use a case but must use a series of if's to avoid
8620 a duplicate case error in GNAT.Sockets.Resolve_Error.
8622 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8624 * gcc-interface/trans.c (call_to_gnu): Open a nesting level if this is
8625 a statement. Otherwise, if at top-level, push the processing of the
8626 elaboration routine. In the misaligned case, issue the error messages
8627 again on entry and create the temporary explicitly. Do not issue them
8629 For a function call, emit the range check if necessary.
8630 In the copy-in copy-out case, create the temporary for the return
8632 Do not unnecessarily convert by-ref parameters to the formal's type.
8633 Remove obsolete guards in conditions.
8634 (gnat_to_gnu) <N_Assignment_Statement>: For a function call, pass the
8635 target to call_to_gnu in all cases.
8636 (gnat_gimplify_expr) <ADDR_EXPR>: Remove handling of SAVE_EXPR.
8637 (addressable_p) <CONSTRUCTOR>: Return false if not static.
8638 <COMPOUND_EXPR>: New case.
8639 * gcc-interface/utils2.c (build_unary_op) <ADDR_EXPR>: Fold a compound
8640 expression if it has unconstrained array type.
8641 (gnat_mark_addressable) <COMPOUND_EXPR>: New case.
8642 (gnat_stabilize_reference) <COMPOUND_EXPR>: Stabilize operands on an
8645 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8647 * gcc-interface/trans.c (gigi): Do not start statement group.
8648 (Compilation_Unit_to_gnu): Set current_function_decl to NULL.
8649 Start statement group and push binding level here...
8650 (gnat_to_gnu) <N_Compilation_Unit>: ...and not here.
8651 Do not push fake contexts at top level. Remove redundant code.
8652 (call_to_gnu): Rename a local variable and constify another.
8653 * gcc-interface/utils.c (gnat_pushlevel): Fix formatting nits.
8654 (set_current_block_context): Set it as the group's block.
8655 (gnat_init_decl_processing): Delete unrelated init code.
8656 (end_subprog_body): Use NULL_TREE.
8658 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8660 * gcc-interface/trans.c (call_to_gnu): Do not unnecessarily force
8661 side-effects of actual parameters before the call.
8663 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8665 * gcc-interface/decl.c (validate_size): Reorder, remove obsolete test
8667 (set_rm_size): Reorder and remove obsolete test.
8669 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
8671 * gcc-interface/gigi.h: Reorder declarations and tweak comments.
8672 (gigi): Adjust ATTRIBUTE_UNUSED markers.
8673 * gcc-interface/gadaint.h: New file.
8674 * gcc-interface/trans.c: Include it in lieu of adaint.h. Reorder.
8675 (__gnat_to_canonical_file_spec): Remove declaration.
8676 (number_names): Delete.
8677 (number_files): Likewise.
8679 * gcc-interface/Make-lang.in (ada/trans.o): Adjust dependencies to
8682 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
8684 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Class_Wide_Type>: Fix
8686 * gcc-interface/trans.c (process_freeze_entity): Use local copy of
8687 Ekind. Return early for class-wide types. Do not compute initializer
8688 unless necessary. Reuse the tree for an associated class-wide type
8689 only if processing its root type.
8691 2010-04-13 Joel Sherrill <joel.sherrill@oarcorp.com>
8693 * gsocket.h: Run-time can no longer be built without network
8694 OS headers available. Changing RTEMS GNAT build procedure to
8695 reflect this and letting run-time build use network .h files.
8697 2010-04-13 Duncan Sands <baldrick@free.fr>
8699 * gcc-interface/misc.c (gnat_eh_type_covers): Remove.
8700 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Update comment.
8702 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
8704 * gcc-interface/gigi.h (standard_datatypes): Add ADT_parent_name_id.
8705 (parent_name_id): New macro.
8706 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Use it.
8707 * gcc-interface/trans.c (gigi): Initialize it.
8708 (lvalue_required_p) <N_Type_Conversion>: New case.
8709 <N_Qualified_Expression>: Likewise.
8710 <N_Allocator>: Likewise.
8711 * gcc-interface/utils.c (convert): Try to properly upcast tagged types.
8713 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
8715 * gcc-interface/ada-tree.h (TYPE_BY_REFERENCE_P): Delete.
8716 (DECL_CONST_ADDRESS_P): New macro.
8717 (SET_DECL_ORIGINAL_FIELD_TO_FIELD): Likewise.
8718 (SAME_FIELD_P): Likewise.
8719 * gcc-interface/decl.c (constructor_address_p): New static function.
8720 (gnat_to_gnu_entity) <object>: Set DECL_CONST_ADDRESS_P according to
8721 the return value of above function.
8722 (gnat_to_gnu_entity) <E_Record_Type>: Force BLKmode for all types
8723 passed by reference.
8724 <E_Record_Subtype>: Likewise.
8725 Set TREE_ADDRESSABLE on the type if it passed by reference.
8726 (make_packable_type): Use SET_DECL_ORIGINAL_FIELD_TO_FIELD.
8727 (create_field_decl_from): Likewise.
8728 (substitute_in_type): Likewise.
8729 (purpose_member_field): Use SAME_FIELD_P.
8730 * gcc-interface/misc.c (must_pass_by_ref): Test TREE_ADDRESSABLE.
8731 * gcc-interface/trans.c (lvalue_required_p): Add ADDRESS_OF_CONSTANT
8732 parameter and adjust recursive calls.
8733 <N_Explicit_Dereference>: New case.
8734 <N_Object_Declaration>: Return 1 if the object is of a class-wide type.
8735 Adjust calls to lvalue_required_p. Do not return the initializer of a
8736 DECL_CONST_ADDRESS_P constant if an lvalue is required for it.
8737 (call_to_gnu): Delay issuing error message for a misaligned actual and
8738 avoid the associated back-end assertion. Test TREE_ADDRESSABLE.
8739 (gnat_gimplify_expr) <ADDR_EXPR>: Handle non-static constructors.
8740 * gcc-interface/utils.c (make_dummy_type): Set TREE_ADDRESSABLE if the
8741 type is passed by reference.
8742 (convert) <CONSTRUCTOR>: Convert in-place in more cases.
8743 * gcc-interface/utils2.c (build_cond_expr): Drop TYPE_BY_REFERENCE_P.
8744 (build_simple_component_ref): Use SAME_FIELD_P.
8746 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
8748 * gcc-interface/trans.c (Identifier_to_gnu): Use boolean variable.
8749 (call_to_gnu): Test gigi's flag TYPE_BY_REFERENCE_P instead of calling
8750 front-end's predicate Is_By_Reference_Type. Use consistent order and
8751 remove ??? comment. Use original conversion in all cases, if any.
8752 * gcc-interface/utils.c (make_dummy_type): Minor tweak.
8753 (convert): Use local copy in more cases.
8754 <INDIRECT_REF>: Remove deactivated code.
8755 (unchecked_convert): Use a couple of local copies.
8757 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
8759 * gcc-interface/trans.c (lvalue_required_for_attribute_p): New static
8761 (lvalue_required_p) <N_Attribute_Reference>: Call it.
8762 (gnat_to_gnu) <N_Selected_Component>: Prevent build_component_ref from
8763 folding the result only if lvalue_required_for_attribute_p is true.
8764 * gcc-interface/utils.c (maybe_unconstrained_array): Pass correctly
8765 typed constant to build_component_ref.
8766 (unchecked_convert): Likewise.
8767 * gcc-interface/utils2.c (maybe_wrap_malloc): Likewise.
8768 (build_allocator): Likewise.
8770 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
8772 * gcc-interface/utils2.c (build_cond_expr): Take the address and
8773 dereference if the result type is passed by reference.
8775 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
8777 * gcc-interface/trans.c (Case_Statement_to_gnu): Bool-ify variable.
8778 (gnat_to_gnu) <N_Null_Statement>: When not optimizing, generate a
8779 goto to the next statement.
8781 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
8783 * gcc-interface/gigi.h (maybe_variable): Delete.
8784 (protect_multiple_eval): Likewise.
8785 (maybe_stabilize_reference): Likewise.
8786 (gnat_save_expr): Declare.
8787 (gnat_protect_expr): Likewise.
8788 (gnat_stabilize_reference): Likewise.
8789 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use
8790 gnat_stabilize_reference.
8791 (maybe_variable): Delete.
8792 (elaborate_expression_1): Use gnat_save_expr.
8793 * gcc-interface/trans.c (Attribute_to_gnu): Use gnat_protect_expr.
8794 (call_to_gnu): Pass NULL to gnat_stabilize_reference.
8795 (gnat_to_gnu) <N_Object_Declaration>: Use gnat_save_expr.
8796 <N_Slice>: Use gnat_protect_exp.
8797 <N_Selected_Component>: Pass NULL to gnat_stabilize_reference.
8798 <N_In>: Use gnat_protect_expr.
8799 Pass NULL to gnat_stabilize_reference.
8800 (build_unary_op_trapv): Use gnat_protect_expr.
8801 (build_binary_op_trapv): Likewise.
8802 (emit_range_check): Likewise.
8803 (emit_index_check): Likewise.
8804 (convert_with_check): Likewise.
8805 (protect_multiple_eval): Move to utils2.c file.
8806 (maybe_stabilize_reference): Merge into...
8807 (gnat_stabilize_reference): ...this. Move to utils2.c file.
8808 (gnat_stabilize_reference_1): Likewise.
8809 * gcc-interface/utils.c (convert_to_fat_pointer): Use gnat_protect_expr
8810 instead of protect_multiple_eval.
8811 * gcc-interface/utils2.c (compare_arrays): Likewise.
8812 (nonbinary_modular_operation): Likewise.
8813 (maybe_wrap_malloc): Likewise.
8814 (build_allocator): Likewise.
8815 (gnat_save_expr): New function.
8816 (gnat_protect_expr): Rename from protect_multiple_eval. Early return
8817 in common cases. Propagate TREE_READONLY onto dereferences.
8818 (gnat_stabilize_reference_1): Move from trans.c file.
8819 (gnat_stabilize_reference): Likewise.
8821 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
8823 * gcc-interface/gigi.h (gnat_mark_addressable): Rename parameter.
8824 * gcc-interface/decl.c (maybe_variable): Do not set TREE_STATIC on _REF
8825 node. Use the type of the operand to set TREE_READONLY.
8826 * gcc-interface/trans.c (Identifier_to_gnu): Do not set TREE_STATIC on
8827 _REF node. Do not overwrite TREE_READONLY.
8828 (call_to_gnu): Rename local variable and fix various nits. In the
8829 copy-in/copy-out case, build the SAVE_EXPR manually.
8830 (convert_with_check): Call protect_multiple_eval in lieu of save_expr
8831 and fold the computations.
8832 (protect_multiple_eval): Always save entire fat pointers.
8833 (maybe_stabilize_reference): Minor tweaks.
8834 (gnat_stabilize_reference_1): Likewise. Do not deal with tcc_constant,
8835 tcc_type and tcc_statement.
8836 * gcc-interface/utils.c (convert_to_fat_pointer): Call
8837 protect_multiple_eval in lieu of save_expr.
8838 (convert): Minor tweaks.
8839 (maybe_unconstrained_array): Do not set TREE_STATIC on _REF node.
8840 (builtin_type_for_size): Call gnat_type_for_size directly.
8841 * gcc-interface/utils2.c (contains_save_expr_p): Delete.
8842 (contains_null_expr): Likewise
8843 (gnat_build_constructor): Do not call it.
8844 (compare_arrays): Deal with all side-effects, use protect_multiple_eval
8845 instead of gnat_stabilize_reference to protect the operands.
8846 (nonbinary_modular_operation): Call protect_multiple_eval in lieu of
8848 (maybe_wrap_malloc): Likewise.
8849 (build_allocator): Likewise.
8850 (build_unary_op) <INDIRECT_REF>: Do not set TREE_STATIC on _REF node.
8851 (gnat_mark_addressable): Rename parameter.
8853 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
8855 * gcc-interface/ada-tree.h (TYPE_RETURNS_UNCONSTRAINED_P): Rename into.
8856 (TYPE_RETURN_UNCONSTRAINED_P): ...this.
8857 (TYPE_RETURNS_BY_REF_P): Rename into.
8858 (TYPE_RETURN_BY_DIRECT_REF_P): ...this.
8859 (TYPE_RETURNS_BY_TARGET_PTR_P): Delete.
8860 * gcc-interface/gigi.h (create_subprog_type): Adjust parameter names.
8861 (build_return_expr): Likewise.
8862 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>:
8863 Rename local variables. If the return Mechanism is By_Reference, pass
8864 return_by_invisible_ref_p to create_subprog_type instead of toggling
8865 TREE_ADDRESSABLE. Test return_by_invisible_ref_p in order to annotate
8866 the mechanism. Use regular return for contrained types with non-static
8867 size and return by invisible reference for unconstrained return types
8868 with default discriminants. Update comment.
8869 * gcc-interface/trans.c (Subprogram_Body_to_gnu): If the function
8870 returns by invisible reference, turn the RESULT_DECL into a pointer.
8871 Do not handle DECL_BY_REF_P in the CICO case here.
8872 (call_to_gnu): Remove code handling return by target pointer. For a
8873 function call, if the return type has non-constant size, generate the
8874 assignment with an INIT_EXPR.
8875 (gnat_to_gnu) <N_Return_Statement>: Remove dead code in the CICO case.
8876 If the function returns by invisible reference, build the copy return
8878 (add_decl_expr): Initialize the variable with an INIT_EXPR.
8879 * gcc-interface/utils.c (create_subprog_type): Adjust parameter names.
8880 Adjust for renaming of macros. Copy the node only when necessary.
8881 (create_subprog_decl): Do not toggle TREE_ADDRESSABLE on the return
8882 type, only change DECL_BY_REFERENCE on the RETURN_DECL.
8883 (convert_from_reference): Delete.
8884 (is_byref_result): Likewise.
8885 (gnat_genericize_r): Likewise.
8886 (gnat_genericize): Likewise.
8887 (end_subprog_body): Do not call gnat_genericize.
8888 * gcc-interface/utils2.c (build_binary_op) <INIT_EXPR>: New case.
8889 (build_return_expr): Adjust parameter names, logic and comment.
8891 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
8893 * exp_pakd.adb (Create_Packed_Array_Type): Always use a modular type
8894 if the size is small enough. Propagate the alignment if there is an
8895 alignment clause on the original array type.
8896 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
8897 Deal with under-aligned packed array types. Copy the size onto the
8898 justified modular type and don't lay it out again. Likewise for the
8899 padding type built for other under-aligned subtypes.
8900 * gcc-interface/utils.c (finish_record_type): Do not set a default mode
8903 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
8905 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set default
8906 alignment on the RETURN type built for the Copy-In Copy-Out mechanism.
8908 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
8910 * gcc-interface/trans.c (call_to_gnu): In the return-by-target-ptr case
8911 do not set the result type if there is a specified target and do not
8912 convert the result in any cases.
8913 (protect_multiple_eval): Make direct SAVE_EXPR for CALL_EXPR.
8914 (maybe_stabilize_reference) <COMPOUND_EXPR>: Merge with CALL_EXPR.
8916 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
8918 * gcc-interface/Makefile.in (SPARC/Solaris): Use sparcv8plus.
8920 2010-02-27 Eric Botcazou <ebotcazou@adacore.com>
8923 * gcc-interface/utils2.c (build_binary_op) <EQ_EXPR>: Assert that fat
8924 pointer base types are variant of each other. Apply special treatment
8925 for null to fat pointer types in all cases.
8927 2010-01-28 Pascal Obry <obry@adacore.com>
8929 * s-win32.ads: Add some missing constants.
8931 2010-01-28 Vincent Celier <celier@adacore.com>
8933 * prj-attr-pm.adb (Add_Attribute): Do nothing if To_Package is
8936 2010-01-28 Robert Dewar <dewar@adacore.com>
8938 * gnat_rm.texi: Minor correction
8940 2010-01-27 Pascal Obry <obry@adacore.com>
8942 * g-awk.adb: ensure that an AWK session is reusable.
8944 2010-01-27 Vasiliy Fofanov <fofanov@adacore.com>
8946 * g-regist.adb (For_Every_Key): Fix previous change.
8949 2010-01-27 Thomas Quinot <quinot@adacore.com>
8951 * lib-writ.ads: Current version of spec for new N (note) ALI lines
8953 2010-01-27 Yannick Moy <moy@adacore.com>
8955 * a-cdlili.adb (Insert): Correct exception message when cursor
8956 designates wrong list.
8958 2010-01-27 Vincent Celier <celier@adacore.com>
8960 * gnatcmd.adb: When there is only one main specified, the package
8961 support Switches (<main>) and attribute Switches is specified for the
8962 main, use these switches, instead of Default_Switches ("Ada").
8964 2010-01-27 Robert Dewar <dewar@adacore.com>
8966 * sem_prag.adb, par-prag.adb, snames.ads-tmpl: pragma Dimension initial
8968 * exp_disp.adb: Minor reformatting
8970 2010-01-27 Tristan Gingold <gingold@adacore.com>
8972 * seh_init.c: Use __ImageBase instead of _ImageBase.
8974 2010-01-27 Javier Miranda <miranda@adacore.com>
8976 * exp_disp.ads, exp_disp.adb (Expand_Interface_Thunk): Modify the
8977 profile of interface thunks. The type of the controlling formal is now
8978 the covered interface type (instead of the target tagged type).
8980 2010-01-27 Sergey Rybin <rybin@adacore.com>
8982 * gnat_rm.texi, gnat_ugn.texi: Update gnatcheck doc.
8984 2010-01-27 Robert Dewar <dewar@adacore.com>
8986 * sinput.ads, sinput.adb (Sloc_Range): Applies to all nodes, formal
8987 changed from Expr to N.
8989 2010-01-26 Thomas Quinot <quinot@adacore.com>
8991 * gnat_ugn.texi: Adjust documentation of -gnatz switches.
8992 * usage.adb: Replace line for -gnatz with two lines for -gnatzc and
8995 2010-01-26 Vincent Celier <celier@adacore.com>
8997 * prj-attr.adb: Add new attribute Library_Install_Name_Option
8998 Replace attribute Run_Path_Origin_Supported with Run_Path_Origin
8999 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
9000 attributes Run_Path_Option and Library_Install_Name_Option.
9001 * prj.ads (Project_Configuration): Replace component
9002 Run_Path_Origin_Supported with component Run_Path_Origin. Add new
9003 component Library_Install_Name_Option.
9004 * snames.ads-tmpl: Add new standard name Library_Install_Name_Option
9005 Replace Run_Path_Origin_Supported with Run_Path_Origin
9007 2010-01-26 Ed Schonberg <schonberg@adacore.com>
9009 * sem_ch8.adb (Use_One_Package): Within an instance, an actual package
9010 is not hidden by a homograph declared in another actual package.
9012 2010-01-26 Robert Dewar <dewar@adacore.com>
9014 * par_sco.adb (Traverse_Declarations_Or_Statements): Only generate
9015 decisions for pragmas Assert, Check, Precondition, Postcondition if
9017 * scos.ads: Update comments.
9018 * get_scos.adb, put_scos.adb: Minor fix to code reading statement SCOs.
9019 Also remove obsolete code for CT (exit point) SCOs.
9021 2010-01-26 Thomas Quinot <quinot@adacore.com>
9023 * switch-c.adb: Fix handling of -gnatz*
9025 2010-01-26 Robert Dewar <dewar@adacore.com>
9027 * par_sco.adb (Traverse_Declarations_Or_Statements): Separate F/W
9028 qualifiers for FOR/WHILE loops
9029 * scos.ads: Use separate type letters F/W for for/while loops
9031 2010-01-26 Robert Dewar <dewar@adacore.com>
9033 * get_scos.adb (Get_SCOs): Implement new form of CS entries (multiple
9034 entries per line, one for each statement in the sequence).
9035 * par_sco.adb (Traverse_Declarations_Or_Statements): Increase array
9036 size from 100 to 10_000 for SC_Array to avoid any real possibility of
9037 overflow. Output decisions in for loops.
9038 Exclude labels from CS lines.
9039 * scos.ads: Clarify that label is not included in the entry point
9041 2010-01-26 Robert Dewar <dewar@adacore.com>
9043 * par_sco.adb (Traverse_Declarations_Or_Statments): Implement new
9044 format of statement sequence SCO entries (one location/statement).
9045 * put_scos.adb (Put_SCOs): Implement new format of CS lines
9046 * scos.ads: Update comments.
9047 * sem_eval.adb: Minor reformatting.
9049 2010-01-26 Robert Dewar <dewar@adacore.com>
9051 * par_sco.ads, par_sco.adb (Set_Statement_Entry): New handling of exits
9052 (Extend_Statement_Sequence): New procedures
9053 (Traverse_Declarations_Or_Statements): New handling for exits.
9055 2010-01-26 Robert Dewar <dewar@adacore.com>
9057 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
9060 2010-01-26 Robert Dewar <dewar@adacore.com>
9062 * par_sco.adb (Is_Logical_Operator): Exclude AND/OR/XOR
9063 * scos.ads: Clarify handling of logical operators
9065 2010-01-26 Arnaud Charlet <charlet@adacore.com>
9067 * s-tpoben.adb: Update comments.
9069 2010-01-26 Robert Dewar <dewar@adacore.com>
9071 * freeze.adb (Set_Small_Size): Don't set size if alignment clause
9074 2010-01-26 Robert Dewar <dewar@adacore.com>
9076 * scos.ads: Clean up documentation, remove obsolete XOR references
9077 2010-01-26 Vincent Celier <celier@adacore.com>
9079 * gnat_ugn.texi: Complete documentation on the restrictions for
9080 combined options in -gnatxxx switches.
9083 2010-01-26 Arnaud Charlet <charlet@adacore.com>
9085 * s-tpoben.adb (Initialize_Protection_Entries): If a PO is created from
9086 a controlled operation, abort is already deferred at this point, so we
9087 need to use Defer_Abort_Nestable.
9089 2010-01-26 Vincent Celier <celier@adacore.com>
9091 * prj-conf.adb (Get_Config_Switches): Check for a default language for
9092 a project extending a project with no languages.
9094 2010-01-26 Vincent Celier <celier@adacore.com>
9096 * switch-c.adb (Scan_Front_End_Switches): Take into account options
9097 that follow -gnatef.
9098 Allow -gnateG to be followed by other options.
9100 2010-01-26 Robert Dewar <dewar@adacore.com>
9102 * s-commun.ads, s-osprim-mingw.adb, s-stchop-vxworks.adb, sem_aggr.adb,
9103 s-vxwext.adb, sem_ch10.adb, sem_eval.adb, sem_prag.adb: Minor
9106 2010-01-26 Vasiliy Fofanov <fofanov@adacore.com>
9108 * g-regist.adb, g-regist.ads (For_Every_Key): New generic procedure
9109 that allows to iterate over all subkeys of a key.
9111 2010-01-26 Ed Falis <falis@adacore.com>
9113 * sysdep.c: enable NFS for VxWorks MILS
9114 * env.c: enable __gnat_environ for VxWorks MILS
9115 * gcc-interface/Makefile.in: Add VxWorks MILS target pairs.
9117 2010-01-25 Bob Duff <duff@adacore.com>
9119 * sem_aggr.adb (Resolve_Array_Aggregate): Check for the case where this
9120 is an internally-generated positional aggregate, and the bounds are
9121 already correctly set. We don't want to overwrite those bounds with
9122 bounds determined by context.
9124 2010-01-25 Robert Dewar <dewar@adacore.com>
9126 * g-sercom.ads, gnatcmd.adb, gnatlink.adb, a-ststio.adb, exp_ch6.adb,
9127 exp_ch9.adb, g-sechas.ads: Minor reformatting.
9129 2010-01-25 Thomas Quinot <quinot@adacore.com>
9131 * s-commun.adb (Last_Index): Count must be converted to SEO (a signed
9132 integer type) before subtracting 1, otherwise the computation may wrap
9133 (because size_t is modular) and cause the conversion to fail.
9135 2010-01-25 Ed Falis <falis@adacore.com>
9137 * sysdep.c, init.c: Adapt to support full run-time on VxWorks MILS.
9139 2010-01-25 Vincent Celier <celier@adacore.com>
9141 * prj-attr.adb: New attribute Run_Path_Origin_Required
9142 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process new
9143 attribute Run_Path_Origin_Required.
9144 * prj.ads (Project_Configuration): New component
9145 Run_Path_Origin_Supported.
9146 * snames.ads-tmpl: New standard name Run_Path_Origin_Required
9148 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9150 * sem_aggr.adb (Resolve_Array_Aggregate): If the bounds in a choice
9151 have errors, do not continue resolution of the aggregate.
9152 * sem_eval.adb (Eval_Indexed_Component): Do not attempt to evaluate if
9153 the array type indicates an error.
9155 2010-01-25 Bob Duff <duff@adacore.com>
9157 * sinfo.ads: Minor comment fixes.
9159 2010-01-25 Bob Duff <duff@adacore.com>
9161 * exp_ch4.adb, exp_aggr.adb: Minor comment fixes and code clean up.
9163 2010-01-25 Arnaud Charlet <charlet@adacore.com>
9165 * gnatvsn.ads (Current_Year): Update.
9167 2010-01-25 Florian Villoing <villoing@adacore.com>
9169 * gnat_ugn.texi: Fix typo.
9171 2010-01-25 Thomas Quinot <quinot@adacore.com>
9173 * scos.ads: Update specification.
9175 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9177 * sem_ch6.adb (Process_PPCs): If a postcondition is present and the
9178 enclosing subprogram has no previous spec, attach postcondition
9179 procedure to the defining entity for the body.
9181 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9183 * exp_aggr.adb (Build_Record_Aggr_Code); Do not generate call to
9184 initialization procedure of the ancestor part of an extension aggregate
9185 if it is an interface type.
9187 2010-01-25 Vincent Celier <celier@adacore.com>
9189 * gnatlink.adb (Process_Binder_File): The directory for the shared
9190 version of libgcc in the run path options is found in the subdirectory
9191 indicated by __gnat_default_libgcc_subdir.
9192 * link.c: Declare new const char * __gnat_default_libgcc_subdir for
9195 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9197 * sem_prag.adb: More flexible pragma Annotate.
9199 2010-01-22 Eric Botcazou <ebotcazou@adacore.com>
9201 * system-linux-armel.ads (Stack_Check_Probes): Set to True.
9202 * system-linux-armeb.ads (Stack_Check_Probes): Likewise.
9204 2010-01-18 Eric Botcazou <ebotcazou@adacore.com>
9206 * gcc-interface/utils.c (create_var_decl_1): Fix formatting nits.
9208 2010-01-18 Jan Hubicka <jh@suse.cz>
9211 * gcc-interface/utils.c (create_var_decl_1): Do not set COMMON flag for
9212 unit local variables.
9214 2010-01-17 Laurent GUERBY <laurent@guerby.net>
9216 * gcc-interface/Makefile.in: Fix typo in arm*-*-linux-gnueabi.
9218 2010-01-11 Mikael Pettersson <mikpe@it.uu.se>
9220 * gcc-interface/Makefile.in: Add arm*-*-linux-gnueabi.
9221 * system-linux-armeb.ads, system-linux-armel.ads: New files.
9223 2010-01-09 Simon Wright <simon@pushface.org>
9226 * gcc-interface/Makefile.in (gnatlib-shared-darwin): Add missing
9231 Copyright (C) 2010 Free Software Foundation, Inc.
9233 Copying and distribution of this file, with or without modification,
9234 are permitted in any medium without royalty provided the copyright
9235 notice and this notice are preserved.