1 2010-10-22 Thomas Quinot <quinot@adacore.com>
3 * uname.adb (Get_Unit_Name.Add_Node_Name): If encountering an error
4 node in the unit name, propagate Program_Error to guard against
7 2010-10-22 Javier Miranda <miranda@adacore.com>
9 * sem_ch8.adb (Find_Selected_Component): Do not generate a subtype for
10 selected components of dispatch table wrappers.
12 2010-10-22 Ed Schonberg <schonberg@adacore.com>
14 * exp_ch9.adb (Make_Initialize_Protection): A protected type that
15 implements an interface must be treated as if it has entries, to
16 support dispatching select statements.
18 2010-10-22 Robert Dewar <dewar@adacore.com>
20 * sem_aggr.adb, sem_ch3.adb: Minor reformatting.
22 2010-10-22 Javier Miranda <miranda@adacore.com>
24 * sem_aggr.adb (Resolve_Array_Aggregate.Add): If the type of the
25 aggregate has a non standard representation the attributes 'Val and
26 'Pos expand into function calls and the resulting expression is
27 considered non-safe for reevaluation by the backend. Relocate it into
28 a constant temporary to indicate to the backend that it is side
31 2010-10-22 Ed Schonberg <schonberg@adacore.com>
33 * sem_ch3.adb (Build_Concurrent_Derived_Type): Create declaration for
34 derived corresponding record type only when expansion is enabled.
36 2010-10-22 Robert Dewar <dewar@adacore.com>
38 * sem_case.adb, sem_attr.adb (Bad_Predicated_Subtype_Use): Change order
40 * sem_ch13.adb (Build_Predicate_Function): Don't give inheritance
41 messages for generic actual subtypes.
42 * sem_ch9.adb, sem_res.adb, sem_util.adb, sem_util.ads, sem_ch3.adb
43 (Bad_Predicated_Subtype_Use): Use this procedure.
45 2010-10-22 Robert Dewar <dewar@adacore.com>
47 * sem_ch5.adb: Minor reformatting.
49 2010-10-22 Robert Dewar <dewar@adacore.com>
51 * a-except-2005.adb (Rmsg_18): New message text.
52 * a-except.adb (Rmsg_18): New message text.
53 * atree.adb (List25): New function
54 (Set_List25): New procedure
55 * atree.ads (List25): New function
56 (Set_List25): New procedure
57 * einfo.adb (Static_Predicate): Is now a list
58 (OK_To_Reference): Present in all entities
59 * einfo.ads (Static_Predicate): Is now a list
60 (OK_To_Reference): Applies to all entities
61 * exp_ch13.adb (Build_Predicate_Function): Moved to Sem_Ch13
62 * sem_attr.adb (Bad_Attribute_For_Predicate): Call
63 Bad_Predicated_Subtype_Use.
64 * sem_case.ads, sem_case.adb: Major surgery to deal with predicated
66 * sem_ch13.adb (Build_Predicate_Function): Moved from Exp_Ch13 to
68 (Build_Static_Predicate): New procedure handles static predicates.
69 * sem_ch3.adb (Analyze_Subtype_Declaration): Delay freeze on subtype
70 with no constraint if ancestor subtype has predicates.
71 (Analyze_Variant_Part): New calling sequence for Analyze_Choices
72 * sem_ch4.adb (Junk_Operand): Don't complain about OK_To_Reference
74 (Analyze_Case_Expression): New calling sequence for Analyze_Choices
75 * sem_ch5.adb (Analyze_Case_Statement): New calling sequence for
77 * sem_util.ads, sem_util.adb (Bad_Predicated_Subtype_Use): New procedure
78 * types.ads (PE_Bad_Predicated_Generic_Type): Replaces
79 PE_Bad_Attribute_For_Predicate.
80 * atree.h: Add definition of List25.
82 2010-10-22 Jerome Lambourg <lambourg@adacore.com>
84 * gnatlink.adb (Process_Binder_File): Remove CLI-specific code, now
86 (Gnatlink): Remove CLI-specific code, moved to dotnet-ld
87 * bindgen.adb (Gen_Object_Files_Options): Do not issue -L switches with
88 the .NET compiler, useless and unsupported.
90 2010-10-22 Robert Dewar <dewar@adacore.com>
92 * sem_util.ads (Get_Num_Lit_From_Pos): Fix errors in documentation,
93 this returns a Node_Id for a reference to the entity, not the entity
96 2010-10-22 Ed Schonberg <schonberg@adacore.com>
98 * sem_ch5.adb (Analyze_Iteration_Scheme): use Insert_Actions when
99 bounds require a temporary.
101 2010-10-22 Robert Dewar <dewar@adacore.com>
103 * sem_ch4.adb: Minor reformatting.
104 * sinfo.ads: Minor comment fixes for Ada 2012 syntax.
106 2010-10-22 Robert Dewar <dewar@adacore.com>
108 * par-ch5.adb: Minor reformatting.
109 * gcc-interface/Make-lang.in: Update dependencies.
111 2010-10-22 Robert Dewar <dewar@adacore.com>
113 * a-except.adb, a-except-2005.adb: Add new Rcheck entry.
114 * exp_ch13.adb (Add_Call): Make sure subtype is marked with
115 Has_Predicates set to True if it inherits predicates.
116 * sem_attr.adb: Handle 'First/'Last/'Range for predicated types
117 * types.ads (PE_Bad_Attribute_For_Predicate): New reason code
118 * types.h: Add new Rcheck entry.
119 * einfo.ads, einfo.adb (Static_Predicate): New field.
120 Minor code reorganization (file float routines in proper section)
121 Fix bad field name in comments.
123 2010-10-22 Robert Dewar <dewar@adacore.com>
125 * sem_eval.adb (Subtypes_Statically_Compatible): Check null exclusion
128 2010-10-22 Vincent Celier <celier@adacore.com>
130 * prj-conf.adb (Get_Config_Switches): Detect if there is at least one
131 declaration of IDE'Compiler_Command for one of the language in the main
133 (Do_Autoconf): If there were at least one Compiler_Command declared and
134 no target, invoke gprconfig with --target=all instead of the normalized
137 2010-10-22 Robert Dewar <dewar@adacore.com>
139 * par-ch4.adb: Update syntax in comments for Ada 2012.
140 * sinfo.ads: Update syntax in comments for Ada 2012
141 * par-ch3.adb (Check_Restricted_Expression): Remove "in Ada 2012 mode"
144 2010-10-22 Gary Dismukes <dismukes@adacore.com>
146 * sem_ch3.adb (Check_Or_Process_Discriminants): In Ada 2012, allow
147 limited tagged types to have defaulted discriminants. Customize the
148 error message for the Ada 2012 case.
149 (Process_Discriminants): In Ada 2012, allow limited tagged types to have
150 defaulted discriminants. Customize the error message for the Ada 2012
152 * sem_ch6.adb (Create_Extra_Formals): Suppress creation of the extra
153 formal for out formals of discriminated types in the case where the
154 underlying type is a limited tagged type.
155 * exp_attr.adb (Expand_N_Attribute_Reference, case
156 Attribute_Constrained): Return True for 'Constrained when the
157 underlying type of the prefix is a limited tagged type.
159 2010-10-22 Thomas Quinot <quinot@adacore.com>
161 * sem_ch3.adb (Complete_Private_Subtype): The full view of the subtype
162 may already have a rep item chain inherited from the full view of the
163 base type, so do not overwrite it when propagating rep items from the
164 partial view of the subtype.
165 * sem_ch3.adb: Minor code reorganization. Minor reformatting.
167 2010-10-22 Sergey Rybin <rybin@adacore.com>
169 * gnat_ugn.texi (gnatmetric): Remove description of debug option.
171 2010-10-22 Tristan Gingold <gingold@adacore.com>
173 * adaint.c (__gnat_number_of_cpus): Add implementation for VMS.
175 2010-10-22 Ed Schonberg <schonberg@adacore.com>
177 * par-ch5.adb: Set properly starting sloc of loop parameter.
179 2010-10-22 Ed Schonberg <schonberg@adacore.com>
181 * sem_util.adb (May_Be_Lvalue): An actual in a function call can be an
182 lvalue in Ada2012, if the function has in-out parameters.
184 2010-10-22 Robert Dewar <dewar@adacore.com>
186 * cstand.adb, einfo.adb, exp_attr.adb, sem_prag.adb, sem_vfpt.adb,
187 sem_ch10.adb: Minor reformatting.
189 2010-10-22 Sergey Rybin <rybin@adacore.com>
191 * gnat_ugn.texi: Remove most of the content of gnatcheck chapter.
193 2010-10-22 Ed Schonberg <schonberg@adacore.com>
195 * sem_attr.adb: Handle indexed P'old.
197 2010-10-22 Geert Bosch <bosch@adacore.com>
199 * cstand.adb (Build_Float_Type): Set Float_Rep according to platform.
200 * einfo.ads (Float_Rep): New attribute.
201 (Float_Rep_Kind): Move from body. Add comments.
202 * einfo.adb (Float_Rep_Kind): Move to spec
203 (Float_Rep): Now a real field instead of local function.
204 (Set_Float_Rep): New procedure to set floating point representation
205 (Set_Vax_Float): Remove.
206 (Write_Entity_Flags): Remove Vax_Float flag.
207 (Write_Field10_Name): Add E_Floating_Point_Type case for Float_Rep.
208 * exp_attr.adb (Attribute_Valid): Use case statement for representation
210 * sem_ch3.adb (Build_Derived_Numeric_Type,
211 Floating_Point_Type_Declaration): Set Float_Rep instead of Vax_Float
213 * sem_util.ads, sem_util.adb (Is_AAMP_Float): Remove.
214 * sem_vfpt.adb (Set_D_Float, Set_F_Float, Set_G_Float, Set_IEEE_Long,
215 Set_IEEE_Short): Set Float_Rep instead of Vax_Float attribute.
217 2010-10-22 Robert Dewar <dewar@adacore.com>
219 * sprint.adb: Minor reformatting.
221 2010-10-22 Robert Dewar <dewar@adacore.com>
223 * exp_ch3.adb (Expand_N_Object_Declaration): Do required predicate
225 * sem_ch3.adb (Complete_Private_Subtype): Propagate predicates to full
227 * sem_ch6.adb (Invariants_Or_Predicates_Present): New name for
229 (Process_PPCs): Handle predicates generating post conditions
230 * sem_util.adb (Is_Partially_Initialized_Type): Add
231 Include_Null parameter.
232 * sem_util.ads (Is_Partially_Initialized_Type): Add
233 Include_Null parameter.
235 2010-10-22 Sergey Rybin <rybin@adacore.com>
237 * gnat_ugn.texi (gnatelim): Add description for '--ignore' option
239 2010-10-22 Thomas Quinot <quinot@adacore.com>
241 * sem_prag.adb (Check_First_Subtype): Specialize error messages for
242 case where argument is not a type.
244 2010-10-22 Robert Dewar <dewar@adacore.com>
246 * exp_ch5.adb, par-ch4.adb, par-ch5.adb, sem_ch5.adb, sinfo.ads: Minor
249 2010-10-22 Arnaud Charlet <charlet@adacore.com>
251 * a-locale.adb: Minor code clean up.
253 2010-10-22 Thomas Quinot <quinot@adacore.com>
255 * exp_ch4.adb: Minor code reorganization and factoring.
257 2010-10-22 Thomas Quinot <quinot@adacore.com>
259 * exp_ch5.adb, sem_ch5.adb, sinfo.ads, snames.ads-tmpl, par-ch5.adb:
262 2010-10-22 Geert Bosch <bosch@adacore.com>
264 * stand.ads: Fix typo in comment.
266 2010-10-22 Ed Schonberg <schonberg@adacore.com>
268 * sem_ch6.adb: Enable in-out parameter for functions.
270 2010-10-22 Ed Schonberg <schonberg@adacore.com>
272 * sem_ch4.adb (Analyze_Quantified_Expression): Handle properly loop
273 iterators that are transformed into container iterators after analysis.
274 * exp_ch4.adb (Expand_N_Quantified_Expression): Handle properly both
275 iterator forms before rewriting as a loop.
277 2010-10-22 Brett Porter <porter@adacore.com>
279 * a-locale.adb, a-locale.ads, locales.c: New files.
280 * Makefile.rtl: Add a-locale
281 * gcc-interface/Makefile.in: Add locales.c
283 2010-10-22 Robert Dewar <dewar@adacore.com>
285 * sem_util.ads, sem_util.adb, sem_aux.ads, sem_aux.adb
286 (Is_Generic_Formal): Moved from Sem_Util to Sem_Aux.
288 2010-10-22 Ed Schonberg <schonberg@adacore.com>
290 * exp_ch5.adb (Expand_Iterator_Loop): New subprogram, implements new
291 iterator forms over arrays and containers, in loops and quantified
293 * exp_util.adb (Insert_Actions): include N_Iterator_Specification.
294 * par-ch4.adb (P_Quantified_Expression): Handle iterator specifications.
295 * par-ch5.adb (P_Iterator_Specification): New subprogram. Modify
296 P_Iteration_Scheme to handle both loop forms.
297 * sem.adb: Handle N_Iterator_Specification.
298 * sem_ch5.adb, sem_ch5.ads (Analyze_Iterator_Specification): New
300 * sinfo.adb, sinfo.ads: New node N_Iterator_Specification.
301 N_Iteration_Scheme can now include an Iterator_Specification. Ditto
302 for N_Quantified_Expression.
303 * snames.ads-tmpl: Add names Cursor, Element, Element_Type, No_Element,
304 and Previous, to support iterators over predefined containers.
305 * sprint.adb: Handle N_Iterator_Specification.
307 2010-10-22 Thomas Quinot <quinot@adacore.com>
309 * sem_prag.adb, sem_ch12.adb, sem_util.adb, sem_util.ads
310 (Is_Generic_Formal): Move from body of Sem_Ch12 to Sem_Util.
311 (Check_Arg_Is_Local_Name): Fix check in the case of a pragma appearing
312 immediately after a library unit.
313 (Analyze_Pragma, case Preelaborable_Initialization): Pragma may apply to
314 a formal derived type.
316 2010-10-22 Geert Bosch <bosch@adacore.com>
318 * gcc-interface/Make-lang.in: Remove ttypef.ads
319 * checks.adb: Use Machine_Mantissa_Value and Machine_Radix_Value instead
320 of Machine_Mantissa and Machine_Radix.
321 * cstand.adb (P_Float_Range): Directly print the Type_Low_Bound and
322 Type_High_Bound of the type, instead of choosing constants from Ttypef.
323 (Set_Float_Bounds): Compute the bounds based on Machine_Radix_Value,
324 Machine_Emax_Value and Machine_Mantissa_Value instead of special-casing
326 * einfo.ads (Machine_Emax_Value, Machine_Emin_Value,
327 Machine_Mantissa_Value, Machine_Radix_Value, Model_Emin_Value,
328 Model_Epsilon_Value, Model_Mantissa_Value, Model_Small_Value,
329 Safe_Emax_Value, Safe_First_Value, Safe_Last_Value): Add new
330 synthesized floating point attributes.
331 * einfo.adb (Float_Rep): Determine the kind of floating point
332 representation used for a given type.
333 (Machine_Emax_Value, Machine_Emin_Value, Machine_Mantissa_Value,
334 Machine_Radix_Value): Implement based on Float_Rep_Kind of a type and
335 the number of digits in the type.
336 (Model_Emin_Value, Model_Epsilon_Value, Model_Mantissa_Value,
337 Model_Small_Value, Safe_Emax_Value, Safe_First_Value, Safe_Last_Value):
338 Implement new synthesized floating point attributes based on the various
340 * eval_fat.ads: Remove Machine_Mantissa and Machine_Radix.
341 * eval_fat.adb (Machine_Mantissa, Machine_Radix): Remove. Use the
342 Machine_Mantissa_Value and Machine_Radix_Value functions instead.
343 * exp_vfpt.adb (VAXFF_Digits, VAXDF_Digits, VAXFG_Digits): Define local
344 constants, instead of using constants from Ttypef.
345 * gnat_rm.texi: Reword comments referencing Ttypef.
346 * sem_attr.ads: Reword comment referencing Ttypef.
347 * sem_attr.adb (Float_Attribute_Universal_Integer,
348 Float_Attribute_Universal_Real): Remove.
349 (Attribute_Machine_Emax, Attribute_Machine_Emin,
350 Attribute_Machine_Mantissa, Attribute_Model_Epsilon,
351 Attribute_Model_Mantissa, Attribute_Model_Small, Attribute_Safe_Emax,
352 Attribute_Safe_First, Attribute_Safe_Last, Model_Small_Value): Use
353 attributes in Einfo instead of Float_Attribute_Universal_Real and
354 Float_Attribute_Universal_Integer and all explicit constants.
355 * sem_util.ads, sem_util.adb (Real_Convert): Remove.
356 * sem_vfpt.adb (VAXDF_Digits, VAXFF_Digits, VAXGF_Digits, IEEEL_Digits,
357 IEEES_Digits): New local constants, in order to remove dependency on
359 * tbuild.ads (Make_Float_Literal): New function.
360 * tbuild.adb (Make_Float_Literal): New function to create a new
361 N_Real_Literal, constructing it as simple as possible for best
362 output of constants in -gnatS.
363 * ttypef.ads: Remove.
365 2010-10-22 Robert Dewar <dewar@adacore.com>
367 * checks.adb (Apply_Predicate_Check): Remove attempt at optimization
368 when subtype is the same, caused legitimate checks to be missed.
369 * exp_ch13.adb (Build_Predicate_Function): Use Nearest_Ancestor to get
370 inheritance from right entity.
371 * freeze.adb (Freeze_Entity): Use Nearest_Ancestor to freeze in the
372 derived type case if the ancestor type has predicates.
373 * sem_aux.ads, sem_aux.adb (Nearest_Ancestor): New function.
374 * sem_prag.adb (Check_Enabled): Minor code reorganization.
376 2010-10-22 Arnaud Charlet <charlet@adacore.com>
378 * gcc-interface/utils.c, gcc-interface/gigi.h: Minor reformatting.
380 2010-10-22 Thomas Quinot <quinot@adacore.com>
382 * einfo.ads (Declaration_Node): Clarify documentation, in particular
383 regarding what is returned for subprogram entities.
385 2010-10-22 Arnaud Charlet <charlet@adacore.com>
387 * exp_attr.adb (Make_Range_Test): Generate a Range node instead of
388 explicit comparisons, generates simpler expanded code.
389 * a-except-2005.adb (Rcheck_06_Ext): New.
390 * gcc-interface/trans.c (gigi, gnat_to_gnu): Handle validity checks
392 * gcc-interface/Make-lang.in: Update dependencies.
394 2010-10-22 Robert Dewar <dewar@adacore.com>
396 * sem_ch3.adb (Array_Type_Declaration): Error for subtype wi predicate
398 (Constrain_Index): Error of subtype wi predicate in index constraint
399 * sem_ch9.adb (Analyze_Entry_Declaration): Error of subtype wi
400 predicate in entry family.
401 * sem_res.adb (Resolve_Slice): Error of type wi predicate in slice.
403 2010-10-22 Javier Miranda <miranda@adacore.com>
405 * sem_util.ads, sem_util.adb (Collect_Parents): New subprogram.
406 (Original_Corresponding_Operation): New subprogram.
407 (Visible_Ancestors): New subprogram.
408 * sem_ch6.adb (New_Overloaded_Entity): Handle new case of dispatching
409 operation that overrides a hidden inherited primitive.
410 * sem_disp.adb (Find_Hidden_Overridden_Primitive): New subprogram.
411 (Check_Dispatching_Operation): if the new dispatching operation
412 does not override a visible primtive then check if it overrides
413 some hidden inherited primitive.
415 2010-10-22 Ed Schonberg <schonberg@adacore.com>
417 * sem_ch10.adb (Analyze_With_Clause): If the parent_unit_name in a with
418 clause is a child unit that denotes a renaming, replace the
419 parent_unit_name with a reference to the renamed unit, because the
420 prefix is irrelevant to subsequent visibility..
422 2010-10-22 Robert Dewar <dewar@adacore.com>
424 * einfo.ads, einfo.adb (Has_Predicates): Flag is now on all entities
426 * exp_ch13.adb (Build_Predicate_Function): Output info msgs for
428 * sem_ch13.adb (Analyze_Aspect_Specifications): Make sure we have a
429 freeze node for entities for which a predicate is specified.
430 (Analyze_Aspect_Specifications): Avoid duplicate calls
431 * sem_ch3.adb (Analyze_Full_Type_Declaration): Remove attempt to avoid
432 duplicate calls to Analye_Aspect_Specifications.
434 2010-10-22 Thomas Quinot <quinot@adacore.com>
436 * a-exextr.adb, atree.ads, freeze.adb: Minor reformatting.
438 2010-10-21 Robert Dewar <dewar@adacore.com>
440 * sem_ch3.adb: Minor reformatting.
442 2010-10-21 Thomas Quinot <quinot@adacore.com>
444 * einfo.ads (Next_Girder_Discriminant): Remove obsolete description for
447 2010-10-21 Nicolas Roche <roche@adacore.com>
449 * gnatmem.adb, memroot.adb, memroot.ads, gmem.c,
450 gcc-interface/Makefile.in: Remove gnatmem specific files.
452 2010-10-21 Thomas Quinot <quinot@adacore.com>
454 * sem_res.adb, exp_ch13.adb: Minor reformatting.
456 2010-10-21 Thomas Quinot <quinot@adacore.com>
458 * sem_ch3.adb (Check_Or_Process_Discriminant): Reject illegal attempt
459 to provide a tagged full view as the completion of an untagged partial
460 view if the partial view has a discriminant with default.
462 2010-10-21 Arnaud Charlet <charlet@adacore.com>
464 * gcc-interface/Make-lang.in: Update dependencies.
466 2010-10-21 Robert Dewar <dewar@adacore.com>
468 * checks.ads, checks.adb (Apply_Predicate_Check): New procedure
469 Minor code reorganization.
470 * einfo.adb (Has_Predicates): Fix assertion.
471 * exp_ch13.adb (Build_Predicate_Function): Move from Sem_Ch13 spec to
473 (Expand_N_Freeze_Entity): Call build predicate function.
474 * exp_ch4.adb (Expand_N_Type_Conversion): Add predicate check.
475 * exp_ch5.adb (Expand_N_Assignment_Statement): Add predicate check.
476 * exp_prag.adb (Expand_Pragma_Check): Use all lower case for name of
478 * freeze.adb (Freeze_Entity): Move building of predicate function to
480 * sem_ch13.adb (Build_Predicate_Function): Move from Sem_Ch13 to
482 * sem_ch13.ads (Build_Predicate_Function): Move from Sem_Ch13 to
484 * sem_ch3.adb (Analyze_Declarations): Remove call to build predicate
486 * sem_res.adb (Resolve_Actuals): Apply predicate check.
488 2010-10-21 Robert Dewar <dewar@adacore.com>
490 * einfo.ads, einfo.adb: Replace Predicate_Procedure by
492 * exp_ch4.adb (Expand_N_In): Handle predicates.
493 * exp_util.ads, exp_util.adb (Make_Predicate_Call): New function.
494 (Make_Predicate_Check): New function.
495 * freeze.adb (Freee_Entity): Build predicate function if needed.
496 * sem_ch13.adb (Build_Predicate_Function): New procedure.
497 (Analyze_Aspect_Specifications): No third argument for Predicate pragma
498 built from Predicate aspect.
499 * sem_ch13.ads (Build_Predicate_Function): New procedure.
500 * sem_ch3.adb: Add handling for predicates.
501 * sem_eval.adb (Eval_Membership_Op): Never static if predicate
503 * sem_prag.adb (Analye_Pragma, case Predicate): Does not take a third
506 2010-10-21 Robert Dewar <dewar@adacore.com>
508 * einfo.ads, einfo.adb: Add handling of predicates.
509 Rework handling of invariants.
510 * exp_ch3.adb, exp_ch4.adb, exp_util.adb, sem_ch6.adb: Minor changes to
511 handing of invariants.
512 * par-prag.adb: Add dummy entry for pragma Predicate
513 * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing for
515 * sem_prag.adb: Add implementation of pragma Predicate.
516 * snames.ads-tmpl: Add entries for pragma Predicate.
518 2010-10-21 Robert Dewar <dewar@adacore.com>
520 * elists.adb: Minor reformatting.
522 2010-10-21 Geert Bosch <bosch@adacore.com>
524 * urealp.adb (UR_Write): Write hexadecimal constants with exponent 1 as
525 decimal constants, and write any others using the exponent notation.
526 Minor reformatting throughout
527 (Store_Ureal_Normalized): New function (minor code reorganization)
529 2010-10-21 Robert Dewar <dewar@adacore.com>
531 * einfo.ads, xeinfo.adb: Minor reformatting.
532 * s-stalib.ads: Minor comment fixes.
534 2010-10-21 Ed Schonberg <schonberg@adacore.com>
536 * sem_ch6.adb (Enter_Overloaded_Entity): Refine warning message about
537 hiding, to remove noise warnings about hiding predefined operators.
539 2010-10-21 Emmanuel Briot <briot@adacore.com>
541 * g-comlin.adb (Add_Switch): Fix handling of switches with no separator
542 when the parameter has length 1.
544 2010-10-21 Jose Ruiz <ruiz@adacore.com>
546 * sem_prag.adb (Set_Ravenscar_Profile): Enforce the restrictions of no
547 dependence on Ada.Execution_Time.Timers,
548 Ada.Execution_Time.Group_Budget, and
549 System.Multiprocessors.Dispatching_Domains which are part of the
551 * impunit.adb (Non_Imp_File_Names_05): Add the file "a-etgrbu" to the
552 list of Ada 2005 files for package Ada.Execution_Time.Group_Budgets.
553 (Non_Imp_File_Names_12): Add the file "s-mudido" to the list of Ada 2012
554 files for package System.Mutiprocessors.Dispatching_Domains.
556 2010-10-21 Tristan Gingold <gingold@adacore.com>
558 * ug_words, vms_data.ads: Define the VMS qualifier for -gnateE.
560 2010-10-21 Thomas Quinot <quinot@adacore.com>
562 * sem_ch3.ads (Process_Discriminants): Clarify cases where this is
563 called for a completion.
565 2010-10-21 Geert Bosch <bosch@adacore.com>
567 * uintp.ads: Expand image buffer to have enough room for 128-bit values
568 * urealp.ads (UR_Write): Write constants in base 16 in hexadecimal
569 notation; either as fixed point literal or in canonical radix 16
572 2010-10-21 Robert Dewar <dewar@adacore.com>
574 * a-cgaaso.ads, a-tags.ads, exp_ch3.adb, exp_attr.adb, exp_ch4.adb,
575 exp_ch3.ads, exp_ch7.adb, exp_ch9.adb, exp_disp.adb, exp_disp.ads,
576 exp_dist.adb, exp_util.adb, layout.adb, lib-xref.adb, lib.ads,
577 prep.adb, prj-strt.adb, s-ststop.adb, s-taskin.ads, s-tataat.ads,
578 sem_aggr.adb, sem_attr.adb, sem_ch12.adb, sem_ch3.adb, sem_ch4.adb,
579 sem_ch4.ads, sem_ch5.adb, sem_res.adb, sem_util.adb, einfo.adb,
580 g-sothco.ads, make.adb: Minor reformatting
582 2010-10-21 Vincent Celier <celier@adacore.com>
584 * vms_data.ads: Add new qualifiers /SRC_INFO= and
585 /UNCHECKED_SHARED_LIB_IMPORTS for GNAT COMPILE.
586 Correct qualifier /SRC_INFO= for GNAT MAKE
588 2010-10-21 Ed Schonberg <schonberg@adacore.com>
590 * exp_aggr.adb (Flatten): An association for a subtype may be an
592 (Safe_Left_Hand_Side): An unchecked conversion is part of a safe
593 left-hand side if the expression is.
594 (Is_Safe_Index): new predicate
595 * exp_ch3.adb (Expand_Freeze_Enumeration_Type): Indicate that the
596 generated Rep_To_Pos function is a Pure_Function.
598 2010-10-21 Robert Dewar <dewar@adacore.com>
600 * gnat_rm.texi: Document Invariant pragma.
602 2010-10-21 Javier Miranda <miranda@adacore.com>
604 * exp_ch5.adb: Update comment.
606 2010-10-21 Robert Dewar <dewar@adacore.com>
608 * sem_ch13.adb (Build_Invariant_Procedure): Remove commented out code
609 for interfaces, since invariants are not allowed on interfaces in any
612 2010-10-21 Javier Miranda <miranda@adacore.com>
614 * sem_attr.adb (Resolve_Attribute): After replacing the range attribute
615 node with a range expression ensure that its evaluation will not have
617 * exp_ch5.adb (Expand_Assign_Array): Propagate the Parent to the
618 unchecked conversion node generated to handle assignment of private
619 types. Required to allow climbing the subtree if Insert_Action is
622 2010-10-21 Robert Dewar <dewar@adacore.com>
624 * par-ch3.adb (P_Interface_Type_Definition): Allow for possibility of
625 aspect clause presence terminating the type definition.
627 2010-10-21 Robert Dewar <dewar@adacore.com>
629 * exp_ch4.adb, exp_intr.adb, par-ch4.adb, scn.adb, sem_ch4.adb,
630 sem_res.adb, sem_util.adb, sinfo.ads, a-except-2005.adb: Minor
632 * snames.ads-tmpl: Add note on Name_Some (not a reserved keyword).
634 2010-10-21 Geert Bosch <bosch@adacore.com>
636 * ttypef.ads: Further cleanup of Safe_XXX float attributes.
638 2010-10-19 Ed Schonberg <schonberg@adacore.com>
640 * exp_ch4.adb, exp_ch4.ads (Expand_Quantified_Expression): New procedure
641 * exp_util.adb (Insert_Actions): Include Quantified_Expression.
642 * expander.adb: Call Expand_Qualified_Expression.
643 * par.adb: New procedure P_Quantified_Expression. Make
644 P_Loop_Parameter_Specification global for use in quantified expressions.
645 * par-ch3.adb (P_Subtype_Mark_Resync): Allow "some" as an identifier if
647 * par-ch4.adb: New procedure P_Quantified_Expression.
648 * par-ch5.adb: P_Loop_Parameter_Specification is now global.
649 * scans.adb, scans.ads: Introduce token Some. For now leave as
651 * scn.adb (Scan_Reserved_Identifier): For earlier versions of Ada,
652 treat Some as a regular identifier.
653 * sem.adb: Call Analyze_Quantified_Expression.
654 * sem_ch4.adb, sem_ch4.ads: New procedure Analyze_Quantified_Expression.
655 * sem_ch5.adb, sem_ch5.ads: Analyze_Iteration_Scheme is public, for use
656 in quantified expressions.
657 * sem_res.adb: New procedure Resolve_Qualified_Expression.
658 * sinfo.adb, sinfo.ads: New node N_Quantified_Expression
659 * snames.ads-tmpl: New name Some.
660 * sprint.adb: Output quantified_expression.
662 2010-10-19 Robert Dewar <dewar@adacore.com>
664 * a-exexda.adb: Minor reformatting
665 Minor code reorganization.
667 2010-10-19 Robert Dewar <dewar@adacore.com>
669 * sem_eval.adb: Minor reformatting.
671 2010-10-19 Tristan Gingold <gingold@adacore.com>
673 * exp_ch4.adb (Expand_N_And_Op, Expand_N_Or_Op, Expand_N_Xor_Op): Call
674 Expand_Intrinsic_Call if the function is intrinsic.
675 * exp_intr_adb (Expand_Binary_Operator): Handle VMS case for logical
676 binary operator on the unsigned_quadword record.
677 * exp_intr.ads (Expand_Intrinsic_Call): Update comments.
679 2010-10-19 Geert Bosch <bosch@adacore.com>
681 * gnat_rm.texi (pragma Float_Representation): Fix typo.
683 2010-10-19 Arnaud Charlet <charlet@adacore.com>
685 * switch-c.adb (Scan_Front_End_Switches): Add handling of -gnateE.
686 * fe.h (Exception_Extra_Info): Declare.
687 * usage.adb (usage): Add -gnateE doc.
688 * checks.adb (Install_Null_Excluding_Check): Use better sloc.
689 * sem_util.adb (Insert_Explicit_Dereference): Ditto.
690 * gnat_ugn.texi: Document -gnateE switch.
691 * a-except.adb (Set_Exception_C_Msg): New parameter Column.
692 * a-except-2005.adb (Set_Exception_C_Msg): New parameter Column.
693 (Raise_Constraint_Error_Msg): Ditto.
694 (Image): New helper function.
695 (Rcheck_00_Ext, Rcheck_05_Ext, Rcheck_12_Ext): New procedure with more
696 detailed exception information.
697 Adjust calls to Set_Exception_C_Msg and Raise_Constraint_Error_Msg.
698 * a-exexda.adb (Set_Exception_C_Msg): New parameter Column.
699 * opt.ads (Exception_Extra_Info): New flag.
700 * gcc-interface/utils.c (gnat_raise_decls_ext): New.
701 * gcc-interface/utils2.c (build_call_raise_range,
702 build_call_raise_column): New functions.
703 * gcc-interface/gigi.h (exception_info_kind, gnat_raise_decls_ext,
704 build_call_raise_range, build_call_raise_column): Declare.
705 gcc-interface/trans.c (build_raise_check): New function.
706 (gigi): Initialize gnat_raise_decls_ext.
707 (gnat_to_gnu): Add initial support for -gnateE switch.
708 * gcc-interface/Make-lang.in: Update dependencies.
710 2010-10-19 Geert Bosch <bosch@adacore.com>
712 * ttypef.ads: Change VAXDF_Last to be -VAXDF_First, as type is
715 2010-10-19 Robert Dewar <dewar@adacore.com>
717 * atree.h (Field29): Fix incorrect definition.
718 * einfo.adb (Invariant_Procedure): New attribute
719 (Has_Invariants): New flag
720 (Has_Inheritable_Invariants): New flag
721 (OK_To_Reference): New flag
722 Minor code reorganization (use Next_Rep_Item function)
723 * einfo.ads (Invariant_Procedure): New attribute
724 (Has_Invariants): New flag
725 (Has_Inheritable_Invariants): New flag
726 (OK_To_Reference): New flag
727 * exp_ch3.adb (Expand_N_Object_Declaration): Add check for invariant
728 * exp_ch4.adb (Expand_N_Type_Conversion): Check invariant on type
729 conversion. Minor reformatting.
730 * exp_util.ads, exp_util.adb (Make_Invariant_Call): New procedure.
731 * opt.ads (List_Inherited_Aspects): New name for List_Inherited_Pre_Post
732 * par-prag.adb: Add dummy entry for pragma Invariant.
733 * sem_ch13.adb (Build_Invariant_Procedure): New procedure
734 (Analyze_Aspect_Specification): Add support for Invariant aspect
735 * sem_ch13.ads (Build_Invariant_Procedure): New procedure
736 * sem_ch3.adb (Build_Derived_Type): Propagate invariant information
737 (Process_Full_View): Deal with invariants, building invariant procedure
739 * sem_ch6.adb (Process_PPCs): Add processing of invariants
740 * sem_ch7.adb (Analyze_Package_Specification): Build invariant
742 * sem_prag.adb: Implement pragma Invariant.
743 * sem_res.adb (Resolve_Entity_Name): Allow type reference if
745 * sem_warn.adb (List_Inherited_Aspects): New name for
746 List_Inherited_Pre_Post.
747 * snames.ads-tmpl: Add entries for pragma Invariant.
748 * treepr.adb (Print_Entity_Information): Add handling of Field29.
749 * usage.adb: Warning .l/.L applies to invariant as well as pre/post.
751 2010-10-19 Javier Miranda <miranda@adacore.com>
753 * par-ch4.adb: Update documentation of Ada 2012 syntax rules for
756 2010-10-19 Bob Duff <duff@adacore.com>
758 * sem_attr.adb (Eval_Attribute): Implement Max_Alignment_For_Allocation
760 * exp_attr.adb (Expand_N_Attribute_Reference): Add
761 Attribute_Max_Alignment_For_Allocation to the case statement.
762 * snames.ads-tmpl (Name_Max_Alignment_For_Allocation,
763 Attribute_Max_Alignment_For_Allocation): New attribute name.
765 2010-10-19 Ed Schonberg <schonberg@adacore.com>
767 * sem_ch3.adb (OK_For_Limited_Init_In_05): a call to an access to
768 parameterless function appears syntactically as an explicit dereference.
770 2010-10-19 Thomas Quinot <quinot@adacore.com>
772 * sem_ch8.adb, sem_ch12.adb, opt.ads, sem_ch6.adb, sem_res.adb,
773 i-cexten.ads, exp_disp.adb, exp_ch4.adb, exp_ch9.adb: Minor reformatting
775 2010-10-19 Thomas Quinot <quinot@adacore.com>
777 * sem_util.adb (Collect_Primitive_Operations): A function with an
778 anonymous access result designating T is a primitive operation of T.
780 2010-10-19 Tristan Gingold <gingold@adacore.com>
782 * init.c: On Alpha/VMS, only adjust PC for HPARITH.
784 2010-10-19 Tristan Gingold <gingold@adacore.com>
786 * sem_attr.adb (Eval_Attribute): Handle Attribute_Ref, which can be
789 2010-10-19 Ed Schonberg <schonberg@adacore.com>
791 * sem_ch12.adb (Check_Generic_Child_Unit): Handle properly the case of
792 an instantiation of a renaming of the implicit generic child that
793 appears within an instance of its parent.
795 2010-10-19 Thomas Quinot <quinot@adacore.com>
797 * exp_ch9.adb: Minor reformatting.
798 * einfo.adb, einfo.ads, atree.adb, atree.ads, exp_dist.adb, atree.h:
799 (Referenced_Object): Remove unused entity attribute.
800 (Direct_Primitive_Operations): Move to Elist10, this is set for all
801 tagged types, including synchronous ones, so can't use field15 which is
802 used as Storage_Size_Variable for task types and Entry_Bodies_Array for
804 (Add_RACW_Primitive_Declarations_And_Bodies): Remove bogus guard
805 against Concurrent_Types (we must handle the case of a RACW designating
806 a class-wide private synchronous type).
807 Use Direct_Primitive_Operations, not Primitive_Operations, since we
808 really want the former.
810 2010-10-19 Bob Duff <duff@adacore.com>
812 * sem_ch8.adb (Pop_Scope): Change "return;" to "raise Program_Error;".
814 2010-10-19 Javier Miranda <miranda@adacore.com>
816 * exp_ch4.adb (Expand_Set_Membership.Make_Cond): Add missing support
819 2010-10-19 Thomas Quinot <quinot@adacore.com>
821 * einfo.ads, atree.ads: Minor comment fixes.
823 2010-10-18 Bob Duff <duff@adacore.com>
825 * sinfo.ads, sinfo.adb: Modify comment about adding fields to be more
826 correct, and to be in a more convenient order.
827 (Default_Storage_Pool): New field of N_Compilation_Unit_Aux, for
828 recording the Default_Storage_Pool for a parent library unit.
829 * einfo.ads (Etype): Document the case in which Etype can be Empty.
830 * sem_prag.adb (Pragma_Default_Storage_Pool): Analyze the new
831 Default_Storage_Pool pragma.
832 * sem.ads (Save_Default_Storage_Pool): Save area for push/pop scopes.
833 * gnat_ugn.texi: Document Default_Storage_Pool as a new configuration
835 * freeze.adb (Freeze_Entity): When freezing an access type, take into
836 account any Default_Storage_Pool pragma that applies. We have to do
837 this at the freezing point, because up until that point, a Storage_Pool
838 or Storage_Size clause could occur, which should override the
839 Default_Storage_Pool.
840 * par-prag.adb: Add this pragma to the list of pragmas handled entirely
842 * sem_ch8.adb (Push_Scope, Pop_Scope): Save and restore the
843 Default_Storage_Pool information.
844 * opt.ads (Default_Pool, Default_Pool_Config): New globals for recording
845 currently-applicable Default_Storage_Pool pragmas.
846 * opt.adb: Save/restore the globals as appropriate.
847 * snames.ads-tmpl (Name_Default_Storage_Pool,
848 Pragma_Default_Storage_Pool): New pragma name.
850 2010-10-18 Vincent Celier <celier@adacore.com>
852 * make.adb (Switches_Of): Put the spec and body suffix in canonical
855 2010-10-18 Ed Schonberg <schonberg@adacore.com>
857 * sem_ch13.adb (Analyze_Aspect_Specifications): If subprogram is at the
858 library level, the pre/postconditions must be treated as global
859 declarations, i.e. placed on the Aux_Decl nodes of the compilation unit.
860 * freeze.adb (Freeze_Expression): If the expression is at library level
861 there is no enclosing record to check.
863 2010-10-18 Javier Miranda <miranda@adacore.com>
865 * sem_ch3.ads (Find_Type_Name): Add documentation.
866 * sem_ch3.adb (Analyze_Full_Type_Declaration): Code cleanup because the
867 propagation of the class-wide entity is now done by routine
868 Find_Type_Name to factorize this code.
869 (Analyze_Private_Extension_Declaration): Handle private type that
870 completes an incomplete type.
871 (Tag_Mismatch): Add error message for tag mismatch in a private type
872 declaration that completes an incomplete type.
873 (Find_Type_Name): Handle completion of incomplete type by means of
874 a private declaration. Generate an error if a tagged incomplete type
875 is completed by an untagged private type.
876 * sem_ch7.adb (New_Private_Type): Handle private type that completes an
878 * einfo.ads (Full_View): Add documentation.
880 2010-10-18 Ed Schonberg <schonberg@adacore.com>
882 * sem_ch12.adb (Analyze_Formal_Package_Declaration): If the package is
883 a renaming, generate a reference for it before analyzing the renamed
884 entity, to prevent spurious warnings.
886 2010-10-18 Jose Ruiz <ruiz@adacore.com>
888 * adaint.c (__gnat_pthread_setaffinity_np,
889 __gnat_pthread_attr_setaffinity_np): Remove wrappers, no longer needed.
890 * s-osinte-linux.ads (pthread_setaffinity_np,
891 pthread_attr_setaffinity_np): Remove use of wrappers.
892 * s-taprop-linux.adb (Create_Task, Initialize): Restore check to verify
893 whether the affinity functionality is available in the OS.
894 * gcc-interface/utils.c: Set TREE_STATIC on functions only when there
897 2010-10-18 Robert Dewar <dewar@adacore.com>
899 * einfo.ads, einfo.adb: Minor reformatting.
900 * gnat_ugn.texi, ug_words: Add missing entries, fix typos.
902 2010-10-18 Emmanuel Briot <briot@adacore.com>
904 * g-comlin.adb (Is_In_Config): When the switch accepts either a space
905 or equal, we output an equal every time.
907 2010-10-18 Ed Schonberg <schonberg@adacore.com>
909 * sem_res.adb (Resolve_Entry_Call): Handle call to an entry family
910 member when pre/post conditions are present.
911 * exp_ch9.adb (Build_PPC_Wrapper): The PPC_Wrapper for an entry family
912 includes an index parameter, and the name of the enclosed entry call is
913 an indexed component.
915 2010-10-18 Robert Dewar <dewar@adacore.com>
917 * einfo.ads, einfo.adb: Minor reformatting.
919 2010-10-18 Jose Ruiz <ruiz@adacore.com>
921 * adaint.c (__gnat_pthread_setaffinity_np,
922 __gnat_pthread_attr_setaffinity_np): Add these wrappers which check the
923 availability of the underlying OS functionality before calling.
924 * s-osinte-linux.ads (pthread_setaffinity_np,
925 pthread_attr_setaffinity_np): Call a wrapper instead of the OS function
926 to perform a check of its availability.
927 * s-taprop-linux.adb (Create_Task): Remove the check to verify whether
928 the affinity functionality is available in the OS. Now done in a wrapper
929 * gcc-interface/Makefile.in: Remove vmshandler.asm, unused.
930 * gcc-interface/Make-lang.in: Update dependencies.
932 2010-10-18 Robert Dewar <dewar@adacore.com>
934 * sinfo.ads, sinfo.adb: Change Has_Pragma_CPU to Flag14 (Flag10 is
937 2010-10-18 Robert Dewar <dewar@adacore.com>
939 * s-stausa.adb, s-taprop-linux.adb, s-taprop-mingw.adb, s-tassta.ads:
942 2010-10-18 Robert Dewar <dewar@adacore.com>
944 * exp_strm.adb (Build_Elementary_Input_Call): Check
945 No_Default_Stream_Attributes.
946 (Build_Elementary_Write_Call): Check No_Default_Stream_Attributes
947 * s-rident.ads: Add restriction No_Default_Stream_Attributes
948 Put restriction No_Allocators_After_Elaboration in alpha order
950 2010-10-18 Jose Ruiz <ruiz@adacore.com>
952 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Add field corresponding
953 to the affinity when expanding the task declaration.
954 (Make_Task_Create_Call): Add the affinity parameter to the call to
956 * sem_prag.adb (Analyze_Pragma): Add the analysis for pragma CPU,
957 taking into account the case when it applies to a subprogram (only for
958 main and with static expression) or to a task.
959 * par_prag.adb:(Prag): Make pragma CPU a valid one.
960 * snames.ads-tmpl (Name_uCPU, Name_CPU): Add these new name identifiers
961 used by the expander for handling the affinity parameter when creating
963 (Pragma_Id): Add Pragma_CPU as a valid one.
964 * rtsfind.ads (RTU_Id): Make System_Multiprocessors accesible.
965 (RE_Id, RE_Unit_Table): Make the entities RE_CPU_Range and
966 RE_Unspecified_CPU visible.
967 * sinfo.ads, sinfo.adb (Has_Pragma_CPU, Set_Has_Pragma_CPU): Add these
968 two subprograms to set/get the flag indicating whether there is a
969 pragma CPU which applies to the entity.
970 * lib.ads, lib.adb (Unit_Record, Default_Main_CPU, Main_CPU,
971 Set_Main_CPU): Add the field Main_CPU to Unit_Record to store the value
972 of the affinity associated to the main subprogram (if any).
973 Default_Main_CPU is used when no affinity is set. Subprograms
974 Set_Main_CPU and Main_CPU are added to set/get the affinity of the main
976 * ali.ads, ali.adb (ALIs_Record): Add field Main_CPU to contain the
977 value of the affinity of the main subprogram.
978 (Scan_ALI): Get the affinity of the main subprogram (encoded as C=XX in
980 * lib-writ.ads, lib-writ.adb (M_Parameters): Encode the affinity of the
981 main subprogram in the M (main) line using C=XX.
982 * lib-load.adb (Create_Dummy_Package_Unit, Load_Main_Source,
983 Load_Unit): Add new field Main_CPU.
984 * bindgen.adb (Gen_Adainit_Ada, Gen_Adainit_C): Add the code to pass
985 the affinity of the main subprogram to the run time.
986 * s-taskin.ads (Common_ATCB): Add the field Base_CPU to store the
988 (Unspecified_CPU): Add this constant to identify the case when no
989 affinity is set for tasks.
990 * s-taskin.adb (Initialize_ATCB): Store the value coming from pragma
991 CPU in the common part of the ATCB.
992 (Initialize): Store the value coming from pragma CPU (for the
993 environment task) in the common part of the ATCB.
994 * s-tassta.ads, s-tassta.adb (Create_Task): Add the affinity specified
995 by pragma CPU to the ATCB.
996 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add the affinity
997 specified by pragma CPU to the ATCB.
998 * s-tporft.adb (Register_Foreign_Thread): Add the new affinity
999 parameter to the call to Initialize_ATCB.
1000 * s-taprop-linux.adb (Create_Task): Change the attributes of the thread
1001 to include the task affinity before creation. Additionally, the
1002 affinity selected with Task_Info is also enforced changing the
1003 attributes at task creation time, instead of changing it after creation.
1004 (Initialize): Change the affinity of the environment task if required
1006 * s-osinte-linux.ads (pthread_setaffinity_np): Instead of using a
1007 wrapper to check whether the function is available or not, use a weak
1009 (pthread_attr_setaffinity_np): Add the import of this function which is
1010 used to change the affinity in the attributes used to create a thread.
1011 * adaint.c (__gnat_pthread_attr_setaffinity_np): Remove this wrapper.
1012 It was used to check whether the pthread function was available or not,
1013 but the use of a weak symbol handles this situation in a cleaner way.
1014 * s-taprop-mingw.adb (Create_Task, Initialize): Change the affinity of
1015 tasks (including the environment task) if required by a pragma CPU.
1016 * s-taprop-solaris.adb (Enter_Task): Change the affinity of tasks
1017 (including the environment task) if required by a pragma CPU.
1018 * s-taprop-vxworks.adb (Create_Task, Initialize): Change the affinity
1019 of tasks (including the environment task) if required by a pragma CPU.
1020 * init.c (__gl_main_cpu): Make this value visible to the run time. It
1021 will pass the affinity of the environment task.
1023 2010-10-18 Javier Miranda <miranda@adacore.com>
1025 * einfo.adb (Direct_Primitive_Operations): Complete assertion.
1027 2010-10-18 Vincent Celier <celier@adacore.com>
1029 * prj.ads (Source_Data): New Boolean flag In_The_Queue.
1031 2010-10-18 Tristan Gingold <gingold@adacore.com>
1033 * s-stausa.ads: Add the Top parameter to Initialize_Analyzer.
1034 * s-stausa.adb: Use the top parameter. In Fill_Stack, use the
1036 * s-tassta.adb (Task_Wrapper): Call Initialize_Analyzer after Enter_Task
1037 so that Pri_Stack_Info.Limit can be set and used.
1039 2010-10-18 Robert Dewar <dewar@adacore.com>
1041 * einfo.ads: Minor reformatting.
1042 * sem_res.adb (Resolve_Allocator): Add test for violating
1043 No_Anonymous_Allocators.
1045 2010-10-18 Robert Dewar <dewar@adacore.com>
1047 * prj-nmsc.adb, prj.adb, sem_res.adb: Minor reformatting.
1049 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1051 * sem_util.adb (Insert_Explicit_Dereference): If operand is a selected
1052 component, we generate a reference to the ultimate prefix when it is an
1053 entity name. We must place the reference on the identifier for that
1054 prefix, and not on the operand itself, to prevent spurious extra
1055 references in the ali file.
1057 2010-10-18 Vincent Celier <celier@adacore.com>
1059 * projects.texi: Add documentation for attribute Ignore_Source_Sub_Dirs
1061 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1063 * einfo.ads, einfo.adb: New attribute PPC_Wrapper for entries and entry
1064 families. Denotes a procedure that performs pre/postcondition checks
1065 and then performs the entry call.
1066 * sem_res.adb (Resolve_Entry_Call): If the entry has
1067 pre/postconditions, replace call with a call to the PPC_Wrapper of the
1069 * exp_ch9.adb (Build_PPC_Wrapper): new procedure.
1070 (Expand_N_Entry_Declaration, Expand_N_Protected_Type_Declaration): call
1071 Build_PPC_Wrapper for all entries in task and protected definitions.
1073 2010-10-18 Tristan Gingold <gingold@adacore.com>
1075 * init.c: Add __gnat_set_stack_guard_page and __gnat_set_stack_limit.
1076 Implement stack limitation on VMS.
1079 2010-10-18 Vincent Celier <celier@adacore.com>
1081 * prj.adb (Is_Compilable): Do not modify Source.Compilable until the
1082 source record has been initialized.
1084 2010-10-18 Robert Dewar <dewar@adacore.com>
1086 * einfo.adb: Minor code reorganization (Primitive_Operations is a
1087 synthesized attribute routine and was in the wrong place).
1089 2010-10-18 Tristan Gingold <gingold@adacore.com>
1091 * init.c: Indentation, and minor changes to more closely follow GNU
1092 style rules. Make more variable statics.
1094 2010-10-18 Vincent Celier <celier@adacore.com>
1096 * prj.adb (Is_Compilable): On first call for a source, cache value in
1097 component Compilable.
1098 * prj.ads (Source_Data): New component Compilable, to cache the value
1099 returned by function Is_Compilable.
1101 2010-10-18 Vincent Celier <celier@adacore.com>
1103 * prj-attr.adb: New project level attribute Ignore_Source_Sub_Dirs.
1104 * prj-nmsc.adb (Expand_Subdirectory_Pattern): New string list parameter
1106 (Recursive_Find_Dirs): Do not consider subdirectories listed in Ignore.
1107 (Get_Directories): Call Find_Source_Dirs with the string list
1108 indicated by attribute Ignore_Source_Sub_Dirs.
1109 * snames.ads-tmpl: New standard name Ignore_Source_Sub_Dirs.
1111 2010-10-18 Javier Miranda <miranda@adacore.com>
1113 * einfo.ads, einfo.adb (Primitive_Operations): New synthesized
1115 (Direct_Primitive_Operations): Renaming of old Primitive_Operations.
1116 (Set_Direct_Primitive_Operations): Renaming of old
1117 Set_Primitive_Operations. Update documentation
1118 * sem_ch3.adb, exp_util.adb, sem_ch7.adb, sem_ch8.adb, exp_ch3.adb:
1119 Replace occurrences of Set_Primitive_Operations by
1120 Set_Direct_Primitive_Operations.
1121 * sem_cat.adb (Validate_RACW_Primitives): No action needed for tagged
1123 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
1124 process primitives of concurrent types.
1125 * lib-xref.adb (Generate_Prim_Op_References): Minor code cleanup.
1127 2010-10-18 Eric Botcazou <ebotcazou@adacore.com>
1129 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Use Freeze_Before.
1130 (Expand_Protected_Object_Reference): Likewise.
1131 * sem_attr.adb (Resolve_Attribute): Likewise.
1132 * sem_ch3.adb (Analyze_Subtype_Declaration): Likewise.
1133 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Likewise.
1135 2010-10-18 Arnaud Charlet <charlet@adacore.com>
1137 * g-comlin.adb (Get_Switches): Prevent dereferencing null Config.
1139 2010-10-18 Robert Dewar <dewar@adacore.com>
1141 * aspects.ads, aspects.adb: Add entries for aspects
1142 Read/Write/Input/Output.
1143 * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing for
1144 handling aspects Read/Write/Input/Output.
1146 2010-10-18 Robert Dewar <dewar@adacore.com>
1148 * sem_util.adb (Note_Possible_Modification): Do not give warning for
1149 use of pragma Unmodified unless we are sure this is a modification.
1151 2010-10-18 Tristan Gingold <gingold@adacore.com>
1153 * sysdep.c: Add __gnat_get_stack_bounds.
1154 * s-taprop-mingw.adb Call __gnat_get_stack_bounds to set Pri_Stack_Info.
1156 2010-10-18 Robert Dewar <dewar@adacore.com>
1158 * a-assert.ads: Fix bad name in header.
1159 * sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch10.adb: Minor
1161 * exp_aggr.adb: Fix typo in comment.
1163 2010-10-18 Javier Miranda <miranda@adacore.com>
1165 * exp_util.adb (Side_Effect_Free): Code clean up.
1167 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1169 * sem_ch8.adb (Is_Primitive_Operator_In_Use): Renamed from
1170 Is_Primitive_Operator. When ending the scope of a use package scope, a
1171 primitive operator remains in use if the base type has a current use
1174 2010-10-18 Javier Miranda <miranda@adacore.com>
1176 * einfo.ads (Is_Dynamic_Support): Add missing support for limited
1177 private types whose full-view is a task type.
1178 * sem_util.adb (Enclosing_Subprogram): Add missing support for limited
1179 private types whose full-view is a task type.
1180 * exp_ch7.adb (Find_Final_List): Minor code cleanup replacing code by
1181 function Nearest_Dynamic_Scope which provides the needed functionality.
1183 2010-10-18 Arnaud Charlet <charlet@adacore.com>
1185 * sem_prag.adb (Set_Exported): Do not generate error when exporting a
1186 variable with an address clause in codepeer mode.
1188 2010-10-18 Robert Dewar <dewar@adacore.com>
1190 * g-trasym-vms-ia64.adb: Minor reformatting.
1192 2010-10-18 Thomas Quinot <quinot@adacore.com>
1194 * sem_type.adb (Covers): If either argument is Standard_Void_Type and
1195 the other isn't, return False early.
1197 2010-10-18 Ed Falis <falis@adacore.com>
1199 * s-vxwext-rtp.ads, s-vxext-rtp.adb: Adapt for missing APIs for RTPs in
1202 2010-10-18 Robert Dewar <dewar@adacore.com>
1204 * sem_disp.ads: Minor comment update.
1206 2010-10-18 Robert Dewar <dewar@adacore.com>
1208 * einfo.ads, einfo.adb (Spec_PPC_List): Is now present in Entries
1209 * sem_ch3.adb (Analyze_Declarations): Add processing for delaying
1210 visibility analysis of precondition and postcondition pragmas (and
1212 * sem_ch6.adb (Process_PPCs): Add handling of inherited Pre'Class
1214 * sem_ch7.adb (Analyze_Package_Specification): Remove special handling
1215 of pre/post conditions (no longer needed).
1216 * sem_disp.adb (Inherit_Subprograms): Deal with interface case.
1217 * sem_prag.adb (Analyze_PPC_In_Decl_Part): Remove analysis of message
1218 argument, since this is now done in the main processing for
1219 pre/postcondition pragmas when they are first seen.
1220 (Chain_PPC): Pre'Class and Post'Class now handled properly
1221 (Chain_PPC): Handle Pre/Post aspects for entries
1222 (Check_Precondition_Postcondition): Handle entry declaration case
1223 (Check_Precondition_Postcondition): Handle delay of visibility analysis
1224 (Check_Precondition_Postcondition): Preanalyze message argument if
1227 2010-10-18 Robert Dewar <dewar@adacore.com>
1229 * g-trasym-vms-ia64.adb, prj-nmsc.adb, prj.ads: Minor reformatting.
1231 2010-10-14 Eric Botcazou <ebotcazou@adacore.com>
1233 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Set
1234 TREE_THIS_NOTRAP on the INDIRECT_REF node built for the template.
1235 * gcc-interface/trans.c (Identifier_to_gnu): Set TREE_THIS_NOTRAP on
1236 the INDIRECT_REF node built for objects used by reference.
1237 * gcc-interface/utils2.c (build_binary_op): Add short-circuit for
1238 constant result. Set TREE_THIS_NOTRAP on ARRAY_REF and ARRAY_RANGE_REF.
1239 (gnat_stabilize_reference_1): Propagate the TREE_THIS_NOTRAP flag.
1241 2010-10-13 Richard Henderson <rth@redhat.com>
1243 * gcc-interface/misc.c (gnat_eh_personality): Update call to
1244 build_personality_function.
1245 * raise-gcc.c (PERSONALITY_FUNCTION): Change to match other languages;
1246 use__gnat_personality_{v,sj}0.
1248 2010-10-12 Vincent Celier <celier@adacore.com>
1250 * prj-nmsc.adb (Add_Source): Put source in hash table Source_Files_HT
1251 (Process_Exceptions_File_Based): Use hash table Source_Files_HT instead
1252 of iterating through all sources of the project.
1253 * prj.adb (Free): Reset hash table Source_Files_HT
1254 (Reset): Reset hash table Source_Files_HT
1255 * prj.ads (Source_Data): New component Next_With_File_Name
1256 (Source_Files_Htable): New hash table
1257 (Project_Tree_Data): New component Source_Files_HT
1259 2010-10-12 Tristan Gingold <gingold@adacore.com>
1261 * g-trasym-vms-ia64.adb: Use the documented API.
1262 * gcc-interface/Makefile.in: Always set NO_REORDER_ADAFLAGS.
1263 * gcc-interface/Make-lang.in: Update dependencies.
1265 2010-10-12 Thomas Quinot <quinot@adacore.com>
1267 * rtsfind.ads, exp_dist.adb, exp_dist.ads (Build_General_Calling_Stubs,
1268 PolyORB case): Request is now a controlled type: we can declare the
1269 request on the stack, and we do not need explicit cleanup actions
1272 2010-10-12 Bob Duff <duff@adacore.com>
1274 * s-rident.ads (Profile_Info): This variable is now constant.
1276 2010-10-12 Emmanuel Briot <briot@adacore.com>
1278 * g-comlin.adb, g-comlin.ads (Define_Switch): Put back (unused)
1279 parameter Separator for backward compatibility.
1281 2010-10-12 Robert Dewar <dewar@adacore.com>
1283 * sem_ch9.adb, par-ch9.adb, impunit.adb: Minor reformatting.
1285 2010-10-12 Vincent Celier <celier@adacore.com>
1287 * debug.adb: Put detailed documentation for gnatmake switch -dm.
1289 2010-10-12 Vincent Celier <celier@adacore.com>
1291 * gnat1drv.adb: When the compiler is invoked for a spec that needs aw
1292 body, do not generate an ALI file if neither -gnatc nor -gnatQ is used.
1294 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1296 * g-comlin.adb (Foreach_Switch): Make this procedure generic to avoid
1299 2010-10-12 Robert Dewar <dewar@adacore.com>
1301 * debug.adb: Add comment.
1302 * gnatcmd.adb, sem_ch6.adb, switch-m.adb: Minor reformatting.
1304 2010-10-12 Javier Miranda <miranda@adacore.com>
1306 * exp_util.adb (Side_Effect_Free): Return true for object renaming
1307 declarations that were previously generated by Remove_Side_Effects.
1309 2010-10-12 Emmanuel Briot <briot@adacore.com>
1311 * xref_lib.adb (Get_Full_Type): Display "private variable" instead of
1312 "???" when an entity is defined as "*" in the ALI file.
1313 * g-comlin.ads, g-comlin.adb: Fix handling of null parameters.
1316 2010-10-12 Emmanuel Briot <briot@adacore.com>
1318 * g-comlin.adb, g-comlin.ads (Display_Help, Getopt, Current_Section,
1319 Set_Usage): New subprograms.
1320 (Define_Switch): Change profile to add support for help messages and
1323 2010-10-12 Javier Miranda <miranda@adacore.com>
1325 * sem_ch6.adb (New_Overloaded_Entity): Add missing decoration of
1326 attribute Overridden_Operation in predefined dispatching primitives.
1328 2010-10-12 Emmanuel Briot <briot@adacore.com>
1330 * g-comlin.adb, g-comlin.ads (Add_Switch): Raise an exception when a
1331 command line configuration exists and we specify an invalid section.
1333 2010-10-12 Robert Dewar <dewar@adacore.com>
1335 * sem_ch6.adb (Process_PPCs): Fix error in inheriting Pre'Class when no
1336 exception messages are generated.
1337 (Process_PPCs): Fix error in inheriting Pre'Class.
1339 2010-10-12 Jose Ruiz <ruiz@adacore.com>
1341 * gnatcmd.adb: Use response file for GNATstack.
1342 (Check_Files): Pass the list of ci files for GNATstack using a response
1343 file to avoid problems with command line length.
1344 Factor out the code handling response file into a new procedure named
1345 Add_To_Response_File.
1347 2010-10-12 Vincent Celier <celier@adacore.com>
1349 * debug.adb: For gnatmake, document the meaning of -dm
1350 * make.adb (Gnatmake): If -dm is used, indicate the maximum number of
1351 simultaneous compilations.
1352 * switch-m.adb (Scan_Make_Switches): Allow -j0, meaning as many
1353 simultaneous compilations as the number of processors.
1355 2010-10-12 Joseph Myers <joseph@codesourcery.com>
1357 * gcc-interface/Make-lang.in (ada/misc.o): Use $(OPTIONS_H)
1358 instead of options.h.
1360 2010-10-12 Robert Dewar <dewar@adacore.com>
1362 * gnat_rm.texi: Clarify that 'Old can be used in preconditions and
1363 postcondition pragmas.
1365 2010-10-12 Robert Dewar <dewar@adacore.com>
1367 * errout.ads, erroutc.adb: The # insertion now handles from in place of
1369 * exp_prag.adb (Expand_Pragma_Check): Suppress generated default
1370 message if new switch Exception_Locations_Suppressed is set.
1371 (Expand_Pragma_Check): Revised wording for default message for case
1372 of precondition or postcondition.
1373 * namet.ads, namet.adb (Build_Location_String): New procedure.
1374 * opt.ads (List_Inherited_Pre_Post): New flag.
1375 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Add call to
1376 list inherited pre/post aspects.
1377 * sem_ch13.adb (Analyze_Aspect_Specification): Improve generation of
1378 messages for precondition/postcondition cases.
1379 * sem_ch6.adb (Process_PPCs): General cleanup, and list inherited PPC's
1380 if flag List_Inherited_Pre_Post is set True.
1381 (Process_PPCs): Add initial handling for inherited preconditions
1382 (List_Inherited_Pre_Post_Aspects): New procedure
1383 * sem_ch6.ads (List_Inherited_Pre_Post_Aspects): New procedure
1384 * sem_disp.adb (Inherited_Subprograms): New function
1385 * sem_disp.ads (Inherited_Subprograms): New function
1386 * sem_prag.adb (Check_Duplicate_Pragma): Clean up handling of
1388 (Check_Precondition_Postcondition): Check for inherited aspects
1389 * sem_warn.adb: Process -gnatw.l/w.L setting List_Inherited_Pre_Post
1390 * sinfo.ads, sinfo.adb (Split_PPC): New flag.
1391 * sinput.ads, sinput.adb (Build_Location_String): New function.
1392 * usage.adb: Add line for -gnatw.l/-gnatw.L
1394 2010-10-12 Javier Miranda <miranda@adacore.com>
1396 * exp_util.adb (Remove_Side_Effects): Remove wrong code.
1398 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1400 * xref_lib.adb: Add handling of j/J letters.
1402 2010-10-12 Pascal Obry <obry@adacore.com>
1404 * adaint.c (__gnat_number_of_cpus): Add implementation for Windows.
1406 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1408 * make.adb (Globalize): New procedure.
1409 (Compile): Set Do_Codepeer_Globalize_Step when -gnatC is used.
1410 (Gnatmake): Call Globalize when needed.
1411 (Process_Restrictions_Or_Restriction_Warnings): Ignore Restrictions
1412 pragmas in CodePeer mode.
1413 (Adjust_Global_Switches): Set No_Initialize_Scalars in CodePeer mode,
1414 to generate simpler and consistent code.
1416 2010-10-12 Bob Duff <duff@adacore.com>
1418 * exp_util.adb (Remove_Side_Effects): Disable previous change,
1419 can cause side effects to be duplicated.
1421 2010-10-12 Robert Dewar <dewar@adacore.com>
1423 * sem_ch6.adb (Process_PPCs): Handle inherited postconditions.
1425 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1427 * exp_disp.adb (Set_All_DT_Position): Disable emit error message on
1428 abstract inherited private operation in CodePeer mode.
1430 2010-10-12 Thomas Quinot <quinot@adacore.com>
1432 * a-exetim.ads: Minor reformatting.
1433 * g-socket.ads (Port_Type): Better definition corresponding to the
1434 actual standard range.
1435 * exp_ch5.adb: Add comment.
1436 * sem_aux.adb: Minor reformatting.
1438 2010-10-12 Ed Schonberg <schonberg@adacore.com>
1440 * sem_ch12.adb (Copy_Generic_Node): If node is a string literal, remove
1441 string_literal_subtype so that a new one can be constructed in the
1442 scope of the instance.
1444 2010-10-12 Robert Dewar <dewar@adacore.com>
1446 * exp_ch9.adb (Has_Pragma_Priority): New name for Has_Priority_Pragma
1447 * gnat_rm.texi (pragma Suppress_All): Document new placement rules
1448 * par-prag.adb (P_Pragma, case Suppress_All): Set
1449 Has_Pragma_Suppress_All flag.
1450 * sem_prag.adb (Has_Pragma_Priority): New name for Has_Priority_Pragma
1451 (Analyze_Pragma, case Suppress_All): Remove placement check
1452 (Process_Compilation_Unit_Pragmas): Use Has_Pragma_Suppress_All flag
1453 * sem_prag.ads (Process_Compilation_Unit_Pragmas): Update documentation
1454 * sinfo.adb (Has_Pragma_Suppress_All): New flag
1455 (Has_Pragma_Priority): New name for Has_Priority_Pragma
1456 * sinfo.ads (Has_Pragma_Suppress_All): New flag
1457 (Has_Pragma_Priority): New name for Has_Priority_Pragma
1459 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1461 * lib-xref.ads: Mark j/J as reserved for C++ classes.
1463 2010-10-12 Jose Ruiz <ruiz@adacore.com>
1465 * a-exetim-default.ads, a-exetim-posix.adb: New.
1466 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for linux): Use the
1467 POSIX Realtime support to implement CPU clocks.
1468 (EXTRA_GNATRTL_TASKING_OBJS for linux): Add the a-exetim.o object
1469 to the tasking library.
1470 (THREADSLIB): Make the POSIX.1b Realtime Extensions library (librt)
1471 available for shared libraries.
1472 * gcc-interface/Make-lang.in: Update dependencies.
1474 2010-10-12 Robert Dewar <dewar@adacore.com>
1476 * sem_ch13.adb (Analyze_Aspect_Specifications): For Pre/Post, break
1477 apart expressions with AND THEN clauses into separate pragmas.
1478 * sinput.ads, sinput.adab (Get_Logical_Line_Number_Img): New function.
1480 2010-10-12 Robert Dewar <dewar@adacore.com>
1482 * par-ch13.adb (P_Aspect_Specifications): Fix handling of 'Class
1484 * sem_ch13.adb (Analyze_Aspect_Specifications): Fix bad Sloc on aspects
1485 * sem_prag.adb (Fix_Error): Only change pragma names for pragmas from
1487 (Check_Optional_Identifier): Handle case of direct arguments
1488 (Chain_PPC): Test for abstract case, giving appropriate messages
1489 * sinfo.ads, sinfo.adb (Class_Present): Allowed on N_Pragma node
1491 2010-10-12 Robert Dewar <dewar@adacore.com>
1493 * par-endh.adb (Check_End): Don't swallow semicolon or aspects after
1495 * sem_attr.adb (Eval_Attribute): Code clean up.
1497 2010-10-12 Robert Dewar <dewar@adacore.com>
1499 * par-ch12.adb (P_Formal_Private_Type_Definition): Improve error
1500 messages and recovery for case of out of order Abstract/Tagged/Private
1502 * par-ch3.adb (P_Type_Declaration): Improve error messages and recovery
1503 for case of out of order Abstract/Tagged/Private keywords.
1505 2010-10-12 Ed Schonberg <schonberg@adacore.com>
1507 * inline.adb (Analyze_Inlined_Bodies): Restrict previous change to case
1508 where child unit is main unit of compilation.
1510 2010-10-12 Robert Dewar <dewar@adacore.com>
1512 * aspects.ads, aspects.adb (Move_Aspects): New procedure.
1513 * atree.ads, atree.adb: (New_Copy): Does not copy aspect specifications
1514 * sinfo.ads, par-ch3.adb, par-ch6.adb, par-ch7.adb, par-ch9.adb,
1515 par-endh.adb, par-ch13.adb, par-ch12.adb: Modify grammar to include
1516 aspect specifications.
1517 Recognize aspect specifications for all cases
1518 * par.adb: Recognize aspect specifications for all cases
1519 * sem_ch12.ads, sem_ch12.adb (Copy_Generic_Node): Copies aspect
1521 * sem_ch3.adb (Analyze_Subtype_Declaration): Improve patch to freeze
1522 generic actual types (was missing some guards before).
1523 * sem_ch9.adb (Analyze_Single_Protected_Declaration): Copy aspects to
1525 (Analyze_Single_Task_Declaration): Copy aspects to generated object
1527 2010-10-12 Eric Botcazou <ebotcazou@adacore.com>
1529 * usage.adb (usage): Adjust line for -gnatn switch.
1531 2010-10-12 Robert Dewar <dewar@adacore.com>
1533 * sem_attr.adb (Eval_Attribute): Only leave change active for aspect
1536 2010-10-12 Ed Schonberg <schonberg@adacore.com>
1538 * sem_ch6.adb (Analyze_Subprogram_Declaration): If this is a
1539 declaration of a null procedure resolve the types of the profile of the
1540 generated null body now.
1542 2010-10-11 Robert Dewar <dewar@adacore.com>
1544 * debug.adb: Remove d.A flag to delay address clause (not needed any
1545 more). Add d.A flag to enable tree read/write of aspect spec hash table
1546 * sem_ch13.adb (Analyze_Aspect_Specifications): Properly delay address
1548 (Rep_Item_Too_Late): No need for special processing for delayed rep
1549 items (and it caused difficulties in the address case).
1550 * tree_gen.adb: Only write aspect spec hash table if -gnatd.A is set
1551 * tree_in.adb: Only write aspect spec hash table if -gnatd.A is set
1553 2010-10-11 Pat Rogers <rogers@adacore.com>
1555 * gnat_ugn.texi: Minor editing.
1557 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
1559 * gcc-interface/utils2.c (gnat_build_constructor): Use VEC_qsort.
1561 2010-10-11 Robert Dewar <dewar@adacore.com>
1563 * g-htable.ads (Get_First): New procedural version for Simple_HTable
1564 (Get_Next): New procedural version for Simple_HTable
1565 * s-htable.adb (Get_First): New procedural version for Simple_HTable
1566 (Get_Next): New procedural version for Simple_HTable
1567 * s-htable.ads (Get_First): New procedural version for Simple_HTable
1568 (Get_Next): New procedural version for Simple_HTable
1570 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1572 * sem_aggr.adb (Propagate_Discriminants): To gather the components of a
1573 variant part, use the association list of the subaggregate, which
1574 already includes the values of the needed discriminants.
1576 2010-10-11 Robert Dewar <dewar@adacore.com>
1578 * aspects.ads, aspects.adb: Changes to accomodate aspect delay
1579 (Tree_Write): New procedure.
1580 * atree.ads, atree.adb: Flag3 is now Has_Aspects and applies to all
1582 * atree.h: Flag3 is now Has_Aspects and applies to all nodes
1583 * debug.adb: Add debug flag gnatd.A
1584 * einfo.adb (Has_Delayed_Aspects): New flag
1585 (Get_Rep_Item_For_Entity): New function
1586 * einfo.ads (Has_Delayed_Aspects): New flag
1587 (Get_Rep_Item_For_Entity): New function
1588 * exp_ch13.adb (Expand_N_Freeze_Entity): Insert delayed aspects into
1590 * exp_ch3.adb, exp_ch6.adb, exp_ch9.adb, exp_disp.adb: New calling
1591 sequence for Freeze_Entity.
1592 * freeze.ads, freeze.adb (Freeze_Entity): Takes node rather than source
1593 ptr. All calls are changed to this new interface.
1594 (Freeze_And_Append): Same change
1595 (Freeze_Entity): Evaluate deferred aspects
1596 * sem_attr.adb: New calling sequence for Freeze_Entity
1597 (Eval_Attribute): Don't try to evaluate attributes of unfrozen types
1598 when we are in spec expression preanalysis mode.
1599 * sem_ch10.adb: New calling sequence for Freeze_Entity
1600 * sem_ch11.adb: Simplify analysis of aspect specifications now that the
1601 flag Has_Aspects applies to all nodes (no need to save aspects).
1602 * sem_ch12.adb: Simplify analysis of aspect specifications now that the
1603 flag Has_Aspects applies to all nodes (no need to save aspects).
1604 * sem_ch13.adb (Analyze_Aspect_Specifications): Major rewrite to
1605 accomodate delaying aspect evaluation to the freeze point.
1606 (Duplicate_Clause): Simplify using Get_Rep_Item_For_Entity, and also
1607 accomodate delayed aspects.
1608 (Rep_Item_Too_Late): Deal with delayed aspects case
1609 * sem_ch13.ads (Rep_Item_Too_Late): Document handling of delayed
1611 * sem_ch3.adb (Analyze_Subtype_Declaration): Make sure that generic
1612 actual types are properly frozen (this is needed because of the new
1613 check in Eval_Attribute that declines to evaluate attributes
1614 for unfrozen types).
1615 Simplify analysis of aspect specifications now that the flag
1616 Has_Aspects applies to all nodes (no need to save aspects).
1617 * sem_ch3.ads (Preanalyze_Spec_Expression): Note use for delayed
1619 * sem_ch5.adb: Simplify analysis of aspect specifications now that the
1620 flag Has_Aspects applies to all nodes (no need to save aspects).
1621 New calling sequence for Freeze_Entity.
1622 * sem_ch9.adb, sem_ch7.adb, sem_ch6.adb: Simplify analysis of aspect
1623 specifications now that the flag Has_Aspects applies to all nodes
1624 (no need to save aspects).
1625 New calling sequence for Freeze_Entity
1626 * sem_prag.adb (Check_Duplicate_Pragma): Simplify using
1627 Get_Rep_Item_For_Entity
1628 (Get_Pragma_Arg): Moved to Sinfo
1629 * sinfo.ads, sinfo.adb (Aspect_Rep_Item_: New field
1630 (Is_Delayed_Aspect): New flag
1631 (Next_Rep_Item): Document use for aspects
1632 (Get_Pragma_Arg): Moved here from Sem_Prag
1633 * sprint.adb (Sprint_Aspect_Specifications): Now called after semicolon
1634 is output and removes semicolon (simplifies interface).
1635 (Sprint_Node_Actual): Simplify handling of aspects now that Has_Aspects
1636 applies to any node.
1637 * tree_gen.adb: Write contents of Aspect_Specifications hash table
1638 * tree_in.adb: Read and initialize Aspect_Specifications hash table
1639 * treepr.adb (Print_Node): Print Has_Aspects flag
1640 (Print_Node): Print Aspect_Specifications in Has_Aspects set
1641 * xtreeprs.adb: Remove obsolete references to Flag1,2,3
1643 2010-10-11 Robert Dewar <dewar@adacore.com>
1645 * aspects.ads, aspects.adb: Major revision of this package for 2nd
1646 stage of aspects implementation.
1647 * gcc-interface/Make-lang.in: Add entry for aspects.o
1648 * gcc-interface/Makefile.in: Add aspects.o to GNATMAKE_OBJS
1649 * par-ch13.adb (Aspect_Specifications_Present): New function
1650 (P_Aspect_Specifications): New procedure
1651 * par-ch3.adb (P_Type_Declaration): Handle aspect specifications
1652 (P_Derived_Type_Def_Or_Private_Ext_Decl): Handle aspect specifications
1653 (P_Identifier_Declarations): Handle aspect specifications
1654 (P_Component_Items): Handle aspect specifications
1655 (P_Subtype_Declaration): Handle aspect specifications
1656 * par-ch6.adb (P_Subprogram): Handle aspect specifications
1657 * par-ch9.adb (P_Entry_Declaration): Handle aspect specifications
1658 * par.adb (Aspect_Specifications_Present): New function
1659 (P_Aspect_Specifications): New procedure
1660 * sem.adb (Analyze_Full_Type_Declaration): New name for
1661 Analyze_Type_Declaration.
1662 (Analyze_Formal_Package_Declaration): New name (add _Declaration)
1663 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
1664 (Analyze_Protected_Type_Declaration): New name (add _Declaration)
1665 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
1666 (Analyze_Single_Task_Declaration): New name (add _Declaration)
1667 (Analyze_Task_Type_Declaration): New name (add _Declaration)
1668 * sem_cat.adb (Analyze_Full_Type_Declaration): New name for
1669 Analyze_Type_Declaration.
1670 * sem_ch11.adb (Analyze_Exception_Declaration): Analyze aspect
1672 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Handle aspect
1674 (Analyze_Formal_Package_Declaration): New name (add _Declaration)
1675 (Analyze_Formal_Package_Declaration): Handle aspect specifications
1676 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
1677 (Analyze_Formal_Subprogram_Declaration): Handle aspect specifications
1678 (Analyze_Formal_Type_Declaration): Handle aspect specifications
1679 (Analyze_Generic_Package_Declaration): Handle aspect specifications
1680 (Analyze_Generic_Subprogram_Declaration): Handle aspect specifications
1681 (Analyze_Package_Instantiation): Handle aspect specifications
1682 (Analyze_Subprogram_Instantiation): Handle aspect specifications
1683 * sem_ch12.ads (Analyze_Formal_Package_Declaration): New name (add
1685 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
1686 * sem_ch13.adb (Analyze_Aspect_Specifications): New procedure
1687 (Duplicate_Clause): New function, calls to this function are added to
1688 processing for all aspects.
1689 * sem_ch13.ads (Analyze_Aspect_Specifications): New procedure
1690 * sem_ch3.adb (Analyze_Full_Type_Declaration): New name for
1691 Analyze_Type_Declaration.
1692 * sem_ch3.ads (Analyze_Full_Type_Declaration): New name for
1693 Analyze_Type_Declaration.
1694 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Analyze aspect
1696 (Analyze_Subprogram_Declaration): Analyze aspect specifications
1697 * sem_ch7.adb (Analyze_Package_Declaration): Analyze aspect
1699 (Analyze_Private_Type_Declaration): Analyze aspect specifications
1700 * sem_ch9.adb (Analyze_Protected_Type_Declaration): Analyze aspect
1702 (Analyze_Protected_Type_Declaration): New name (add _Declaration)
1703 (Analyze_Single_Protected_Declaration): Analyze aspect specifications
1704 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
1705 (Analyze_Single_Task_Declaration): Analyze aspect specifications
1706 (Analyze_Single_Task_Declaration): New name (add _Declaration)
1707 (Analyze_Task_Type_Declaration): Analyze aspect specifications
1708 (Analyze_Task_Type_Declaration): New name (add _Declaration)
1709 * sem_ch9.ads (Analyze_Protected_Type_Declaration): New name (add
1711 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
1712 (Analyze_Single_Task_Declaration): New name (add _Declaration)
1713 (Analyze_Task_Type_Declaration): New name (add _Declaration)
1714 * sem_prag.adb: Use Get_Pragma_Arg systematically so that we do not
1715 have to generate unnecessary pragma argument associations (this matches
1717 Throughout do changes to accomodate aspect specifications, including
1718 specializing messages, handling the case of not going through all
1719 homonyms, and allowing for cancellation.
1720 * sinfo.ads, sinfo.adb: Clean up obsolete documentation for Flag1,2,3
1721 (Aspect_Cancel): New flag
1722 (From_Aspect_Specification): New flag
1723 (First_Aspect): Removed flag
1724 (Last_Aspect): Removed flag
1725 * sprint.adb (Sprint_Aspect_Specifications): New procedure
1726 (Sprint_Node_Actual): Add calls to Sprint_Aspect_Specifications
1728 2010-10-11 Bob Duff <duff@adacore.com>
1730 * sem_res.adb (Resolve_Actuals): Minor change to warning messages so
1731 they match in Ada 95, 2005, and 2012 modes, in the case where the
1732 language didn't change. Same thing for the run-time exception message.
1734 2010-10-11 Javier Miranda <miranda@adacore.com>
1736 * debug.adb Document that switch -gnatd.p enables the CIL verifier.
1738 2010-10-11 Robert Dewar <dewar@adacore.com>
1740 * s-htable.adb: Minor reformatting.
1742 2010-10-11 Javier Miranda <miranda@adacore.com>
1744 * debug.adb: Update comment.
1746 2010-10-11 Vincent Celier <celier@adacore.com>
1748 * gnatcmd.adb (GNATCmd): Set Opt.Unchecked_Shared_Lib_Imports to True
1749 unconditionally as for "gnat make" the projects are not processed in
1752 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1754 * sem_ch10.ads, sem_ch10.adb (Load_Needed_Body): Add parameter to
1755 suppress semantic analysis of the body when inlining, prior to
1756 verifying that the body does not have a with_clause on a descendant
1758 * inline.adb (Analyze_Inlined_Bodies): Do not inline a body if it has a
1759 with_clause on a descendant.
1760 (Scope_In_Main_Unit): Simplify.
1762 2010-10-11 Robert Dewar <dewar@adacore.com>
1764 * exp_ch6.adb, freeze.adb: Minor reformatting.
1766 2010-10-11 Vincent Celier <celier@adacore.com>
1768 * gnatcmd.adb (GNATCmd): For all tools other than gnatmake, allow
1769 shared library projects to import projects that are not shared library
1772 2010-10-11 Javier Miranda <miranda@adacore.com>
1774 * debug.adb: Document that switch -gnatd.o generates the CIL listing.
1776 2010-10-11 Arnaud Charlet <charlet@adacore.com>
1778 * sem_prag.adb (Process_Suppress_Unsuppress): Only ignore
1779 Suppress/Unsuppress pragmas in codepeer mode on user code.
1781 2010-10-11 Javier Miranda <miranda@adacore.com>
1783 * exp_ch6.adb (Expand_Call): For VM platforms, add missing expansion of
1784 tag check in case of dispatching call through "=".
1786 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1788 * sem_ch3.adb (Access_Subprogram_Declaration): In Ada2012 an incomplete
1789 type is legal in the profile of any basic declaration.
1790 * sem_ch6.adb (Analyze_Return_Type, Process_Formals): In Ada2012 an
1791 incomplete type, including a limited view of a type, is legal in the
1792 profile of any subprogram declaration.
1793 If the type is tagged, its use is also legal in a body.
1794 * sem_ch10.adb (Install_Limited_With_Clause): Do not process context
1796 (Install_Limited_Withed_Unit): Refine legality checks when both the
1797 limited and the non-limited view of a package are visible in the
1799 If this is not an error case, the limited view is ignored.
1800 freeze.adb (Freeze_Entity): In Ada2012, an incomplete type is legal in
1801 access to subprogram declarations
1803 2010-10-11 Robert Dewar <dewar@adacore.com>
1805 * exp_ch6.adb: Code clean up.
1806 * exp_util.adb: Minor reformatting.
1808 2010-10-11 Arnaud Charlet <charlet@adacore.com>
1810 * sem_ch3.adb, exp_ch6.adb
1811 (Make_Build_In_Place_Call_In_Anonymous_Context,
1812 Make_Build_In_Place_Call_In_Assignment,
1813 Make_Build_In_Place_Call_In_Object_Declaration): Fix calls to
1814 Add_Task_Actuals_To_Build_In_Place_Call in case of No_Task_Hierarchy
1816 (Access_Definition): Add missing handling of No_Task_Hierarchy.
1818 2010-10-11 Javier Miranda <miranda@adacore.com>
1820 * exp_util.adb (Remove_Side_Effects): No action needed for renamings of
1821 class-wide expressions.
1823 2010-10-11 Arnaud Charlet <charlet@adacore.com>
1825 * xr_tabls.adb, sem_res.adb: Minor reformatting
1827 2010-10-11 Arnaud Charlet <charlet@adacore.com>
1829 * gnat_rm.texi, exp_attr.adb, sem_attr.adb, sem_attr.ads,
1830 snames.ads-tmpl (Analyze_Attribute, Expand_N_Attribute_Reference): Add
1831 handling of Attribute_Ref. Add missing blanks in some error messages.
1832 (Attribute_Ref, Name_Ref): Declare.
1833 Document 'Ref attribute.
1835 2010-10-11 Robert Dewar <dewar@adacore.com>
1837 * sem_attr.adb: Minor reformatting.
1839 2010-10-11 Javier Miranda <miranda@adacore.com>
1841 * sem_ch8.adb (Attribute_Renaming): Add missing check to avoid loading
1842 package System.Aux_Dec in VM platforms.
1844 2010-10-11 Arnaud Charlet <charlet@adacore.com>
1846 * sem_prag.adb (Process_Suppress_Unsuppress): Ignore
1847 Suppress/Unsuppress pragmas in codepeer mode.
1848 (Analyze_Pragma [Pragma_Suppress_All]): Do not generate error message
1850 * einfo.ads: Fix typo.
1852 2010-10-11 Emmanuel Briot <briot@adacore.com>
1854 * sinfo.adb: Use GNAT.HTable rather than System.HTable.
1855 * prj-nmsc.adb: Minor reformatting.
1857 2010-10-11 Thomas Quinot <quinot@adacore.com>
1859 * sem_attr.adb (Type_Key): Code simplification.
1861 2010-10-11 Tristan Gingold <gingold@adacore.com>
1863 * gcc-interface/utils2.c (maybe_wrap_malloc): Fix crash when allocating
1864 very large object on VMS.
1866 2010-10-11 Javier Miranda <miranda@adacore.com>
1868 * sem_ch10.adb (Analyze_With_Clause): Add missing test to ensure
1869 availability of attribute Instance_Spec.
1871 2010-10-11 Arnaud Charlet <charlet@adacore.com>
1873 * gnat1drv.adb (Adjust_Global_Switches): Disable codepeer mode if
1874 checking syntax only or in ASIS mode.
1876 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1878 * sem_ch6.adb (Check_Delayed_Subprogram): Abstract subprograms may also
1879 need a freeze node if some type in the profile has one.
1880 * gcc-interface/trans.c (case N_Abstract_Subprogram_Declaration): If
1881 entity has a freeze node, defer elaboration.
1883 2010-10-11 Emmanuel Briot <briot@adacore.com>
1885 * prj-nmsc.adb (Check_Aggregate_Project): Add support for finding all
1886 aggregated projects.
1888 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1890 * sem_res.adb (Resolve_Entry_Call): Generate 's' reference for entry
1892 * sem_ch6.adb: Diagnose additional error condition.
1894 2010-10-11 Bob Duff <duff@adacore.com>
1896 * par.adb (Par): Clarify wording of certain error messages.
1898 2010-10-11 Gary Dismukes <dismukes@adacore.com>
1900 * sem_disp.adb (Check_Dispatching_Operation): Revise test for warning
1901 about nondispatching subprograms to use In_Same_List (reducing use of
1904 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1906 * xr_tabls.adb, sem_res.adb, lib-xref.adb, lib-xref.ads: Use s for
1907 reference in a static call.
1909 2010-10-11 Steve Baird <baird@adacore.com>
1911 * exp_attr.adb (Expand_N_Attribute_Reference, case Type_Key): Type_Key
1912 attribute should always be transformed into a string literal in
1914 * par-ch4.adb: Type_Key attribute's type is String; update value of
1915 Is_Parameterless_Attribute constant to reflect this.
1916 * sem_attr.adb (Analyze_Attribute): Recognize Type_Key attribute and
1917 rewrite it as a string literal (attribute value is always known
1919 * snames.ads-tmpl: Add entries for Type_Key attribute.
1921 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1923 * lib-xref.adb (Output_References): Common handling for objects and
1924 formals of an anonymous access type.
1926 2010-10-11 Eric Botcazou <ebotcazou@adacore.com>
1928 * make.adb (Scan_Make_Arg): Also pass -O to both compiler and linker.
1930 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1932 * sem_ch6.adb: Fix check for illegal equality declaration in Ada2012
1934 2010-10-11 Gary Dismukes <dismukes@adacore.com>
1936 * sem_disp.adb (Check_Dispatching_Operation): When testing for issuing
1937 a warning about subprograms of a tagged type not being dispatching,
1938 limit this to cases where the tagged type and the subprogram are
1939 declared within the same declaration list.
1941 2010-10-11 Jerome Lambourg <lambourg@adacore.com>
1943 * projects.texi, prj-attr.adb: Add new attribute documentation_dir.
1945 2010-10-11 Bob Duff <duff@adacore.com>
1947 * par-ch9.adb, sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, impunit.adb,
1948 impunit.ads, sem_ch5.adb, sem_type.adb, exp_imgv.adb, exp_util.adb,
1949 switch-c.adb, exp_attr.adb, exp_ch9.adb, par-ch11.adb, usage.adb,
1950 sem_ch9.adb, sem_ch10.adb, scng.adb, checks.adb, sem_prag.adb,
1951 sem_ch12.adb, par-ch2.adb, freeze.adb, par-ch4.adb, sem_util.adb,
1952 sem_res.adb, sem_attr.adb, par-ch6.adb, exp_ch4.adb, exp_ch6.adb,
1953 sem_ch4.adb, exp_ch8.adb, par-ch10.adb, sem_ch6.adb, par-prag.adb,
1954 exp_disp.adb, par-ch12.adb, sem_ch8.adb, snames.adb-tmpl, opt.ads,
1955 exp_aggr.adb, sem_cat.adb, sem_ch13.adb, par-ch3.adb, exp_strm.adb,
1956 exp_cg.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb: Use Ada_2005
1957 instead of Ada_05 (Ada_Version_Type).
1959 2010-10-11 Bob Duff <duff@adacore.com>
1961 * sem_aggr.adb, impunit.adb, impunit.ads, switch-c.adb, usage.adb,
1962 sem_ch10.adb, sem_prag.adb, sem_ch12.adb, par-ch4.adb, par-ch6.adb,
1963 par-ch8.adb, exp_ch4.adb, sem_ch4.adb, sem_ch6.adb, par-prag.adb,
1964 opt.ads, par-ch3.adb, lib-xref.adb: Use Ada_2012 instead of Ada_12
1967 2010-10-11 Javier Miranda <miranda@adacore.com>
1969 * exp_util.adb (Safe_Prefixed_Reference): If the prefix is an explicit
1970 dereference then do not exclude dereferences of access-to-constant
1971 types to handle them as constant view of variables (and hence remove
1972 side effects when required).
1973 * sem_res.adb (Resolve_Slice): Ensure that side effects in the bounds
1974 are properly handled.
1976 2010-10-11 Robert Dewar <dewar@adacore.com>
1978 * sem_prag.adb, sem_aggr.adb, sprint.adb: Minor reformatting.
1980 2010-10-11 Javier Miranda <miranda@adacore.com>
1982 * exp_ch5.ads, exp_ch6.ads (Expand_N_Extended_Return_Statement): Moved
1984 (Expand_N_Simple_Return_Statement): Moved to exp_ch6.
1985 * exp_ch5.adb, exp_ch6.adb (Expand_Non_Function_Return): Moved to
1987 (Expand_Simple_Function_Return): Move to exp_ch6.
1988 (Expand_N_Extended_Return_Statement): Moved to exp_ch6.
1989 (Expand_N_Simple_Return_Statement): Moved to exp_ch6.
1991 2010-10-11 Robert Dewar <dewar@adacore.com>
1993 * snames.ads-tmpl: Add names for aspects.
1994 * aspects.ads, aspects.adb: New.
1995 * gcc-interface/Make-lang.in: Update dependencies.
1996 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1998 * exp_ch6.adb (Expand_Actuals): If an actual is the current instance of
1999 a task type, it must be replaced with a reference to Self.
2001 2010-10-11 Vincent Celier <celier@adacore.com>
2003 * adaint.h: Add prototype for function __gnat_create_output_file_new.
2005 2010-10-11 Javier Miranda <miranda@adacore.com>
2007 * sem_aggr.adb (Collect_Aggr_Bounds): Remove side effects of collected
2010 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2012 * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Do not emit error
2013 for AI05-0033 in CodePeer mode.
2015 2010-10-11 Robert Dewar <dewar@adacore.com>
2017 * atree.h, atree.ads, atree.adb (Flag3): New flag (replaces Unused_1)
2018 * csinfo.adb: Aspect_Specifications is a new special field
2019 * einfo.adb (Flag3): New unused flag
2020 * exp_util.adb (Insert_Actions): Add processing for
2021 N_Aspect_Specification.
2022 * sem.adb: Add entry for N_Aspect_Specification.
2023 * sinfo.ads, sinfo.adb (N_Aspect_Specification): New node
2024 (Has_Aspect_Specifications): New flag
2025 (Permits_Aspect_Specifications): New function
2026 (Aspect_Specifications): New function
2027 (Set_Aspect_Specifications): New procedure
2028 * sprint.adb (Sprint_Node): Put N_At_Clause in proper alpha order
2029 (Sprint_Node): Add dummy entry for N_Aspect_Specification
2030 * treepr.adb (Flag3): New flag to be listed
2032 2010-10-11 Vincent Celier <celier@adacore.com>
2034 * adaint.c: Minor reformatting.
2036 2010-10-11 Robert Dewar <dewar@adacore.com>
2038 * sem_ch6.adb, s-htable.ads: Minor reformatting.
2040 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2042 * sem_ch4.adb (Analyze_Selected_Component): If the selector is
2043 invisible in an instantiation, and both the formal and the actual are
2044 private extensions of the same type, look for the desired component in
2045 the proper view of the parent type.
2047 2010-10-11 Vincent Celier <celier@adacore.com>
2049 * adaint.c (__gnat_number_of_cpus): Add implementation for Solaris,
2050 AIX, Tru64, Darwin, IRIX and HP-UX.
2052 2010-10-11 Robert Dewar <dewar@adacore.com>
2054 * a-textio.adb: Minor reformatting
2056 2010-10-11 Robert Dewar <dewar@adacore.com>
2058 * a-suesen.ads, a-suenst.ads,
2059 a-suesen.adb, a-suenst.adb,
2060 a-suewse.adb, a-suewst.adb,
2061 a-suewse.ads, a-suewst.ads,
2062 a-suezse.ads, a-suezst.ads,
2063 a-suezse.adb, a-suezst.adb: New name for string encoding packages.
2064 * impunit.adb: New names for string encoding units
2065 * Makefile.rtl: New names for string encoding units
2066 * rtsfind.ads: Minor code reorganization.
2068 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2070 * exp_ch5.adb: Code clean up.
2072 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2074 * sem_ch6.adb (Check_Limited_Return): Specialize warning on limited
2075 returns when in a generic context.
2076 (Analyze_Function_Return): ditto.
2078 2010-10-11 Robert Dewar <dewar@adacore.com>
2080 * s-multip.ads: Fix header.
2081 * sem_ch3.adb, s-multip.adb, a-tigeli.adb: Minor reformatting.
2083 2010-10-11 Vincent Celier <celier@adacore.com>
2085 * Makefile.rtl: Add s-multip.
2086 * adaint.c: New function __gnat_number_of_cpus, implemented for Linux,
2087 defaulting to 1 for other platforms.
2088 * adaint.h: New function __gnat_number_of_cpus.
2089 * impunit.adb (Non_Imp_File_Names_12): New file list for Ada 2012,
2090 with a single component "s-multip".
2091 * impunit.ads (Kind_Of_Unit): New enumerated value Ada_12_Unit for Ada
2093 * rtsfind.ads (RTU_Id): New enumerated value System_Multiprocessors
2094 * s-multip.ads, s-multip.adb: New Ada 2012 package.
2095 * sem_ch10.adb (Analyze_With_Clause): Check also Ada 2012 units.
2097 2010-10-11 Javier Miranda <miranda@adacore.com>
2099 * a-textio.adb: Move new implementation of Get_Line to a subunit.
2100 * a-tigeli.adb: New subunit containing the implementation of Get_Line.
2102 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2104 * sem_aux.adb: Code clean up.
2106 2010-10-11 Robert Dewar <dewar@adacore.com>
2108 * sem_ch3.adb, sem_aux.adb, sem_ch6.adb: Minor reformatting
2110 2010-10-11 Robert Dewar <dewar@adacore.com>
2112 * einfo.adb, atree.h, atree.ads, atree.adb: Define seven new flags
2113 Flag248-Flag254. Define new field Field29.
2115 2010-10-10 Olivier Hainque <hainque@adacore.com>
2116 Eric Botcazou <ebotcazou@adacore.com>
2118 * gcc-interface/lang.opt (gdwarf+): Remove.
2119 * gcc-interface/gigi.h (get_parallel_type): Likewise
2120 * gcc-interface/misc.c (gnat_dwarf_extensions): Likewise.
2121 (gnat_handle_option): Remove OPT_gdwarfplus case.
2122 (gnat_post_options): Remove setting of use_gnu_debug_info_extensions
2123 from gnat_dwarf_extensions.
2124 * gcc-interface/trans.c (gigi): Remove -gdwarf+ initializations.
2125 * gcc-interface/utils.c (get_parallel_type): Remove.
2127 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
2129 * gcc-interface/trans.c (gnat_to_gnu) <N_Not_In>: Use
2130 invert_truthvalue_loc instead of invert_truthvalue.
2131 * gcc-interface/utils2.c (build_binary_op) <NE_EXPR>: Likewise.
2132 (build_unary_op) <TRUTH_NOT_EXPR>: Likewise.
2134 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
2136 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
2137 assertion on the types of the parameters. Use KIND local variable.
2138 <E_Incomplete_Type>: Likewise.
2140 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
2142 * gcc-interface/ada-tree.h (DECL_BY_DOUBLE_REF_P): New macro.
2143 * gcc-interface/gigi.h (annotate_object): Add BY_DOUBLE_REF parameter.
2144 * gcc-interface/decl.c (annotate_object): Likewise and handle it.
2145 (gnat_to_gnu_entity): Adjust calls to annotate_object.
2146 (gnat_to_gnu_param): If fat pointer types are passed by reference on
2147 the target, pass them by explicit reference.
2148 * gcc-interface/misc.c (default_pass_by_ref): Fix type of constant.
2149 * gcc-interface/trans.c (Identifier_to_gnu): Do DECL_BY_DOUBLE_REF_P.
2150 (Subprogram_Body_to_gnu): Adjust call to annotate_object.
2151 (call_to_gnu): Handle DECL_BY_DOUBLE_REF_P.
2152 * gcc-interface/utils.c (convert_vms_descriptor): Add BY_REF parameter
2154 (build_function_stub): Iterate on the parameters of the subprogram in
2155 lieu of on the argument types. Adjust call to convert_vms_descriptor.
2157 2010-10-09 Eric Botcazou <ebotcazou@adacore.com>
2159 * gcc-interface/misc.c: Delete prototypes.
2160 (gnat_init_options): Use local variable.
2161 (lang_hooks): Move to the end of the file.
2163 2010-10-08 Joseph Myers <joseph@codesourcery.com>
2165 * gcc-interface/misc.c (gnat_init_options_struct): New. Split out
2166 from gnat_init_options.
2167 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
2169 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2171 * sem_aux.adb: Cleanup Is_Immutably_Limited_Type.
2173 2010-10-08 Robert Dewar <dewar@adacore.com>
2175 * exp_ch3.adb: Minor reformatting.
2176 * exp_ch5.adb: Add comment.
2178 2010-10-08 Robert Dewar <dewar@adacore.com>
2180 * sem_prag.adb (Check_Duplicate_Pragma): Check for entity match
2181 * gcc-interface/Make-lang.in: Update dependencies.
2182 * einfo.ads: Minor reformatting.
2184 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2186 * exp_ch5.adb, sem_ch3.adb, exp_ch7.adb, exp_util.adb, sem_aux.adb,
2187 sem_aux.ads, exp_ch4.adb, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
2188 exp_ch3.adb: Change Is_Inherently_Limited_Type to
2189 Is_Immutably_Limited_Type to accord with new RM terminology.
2190 * sem_aux.adb (Is_Immutably_Limited_Type): A type that is a descendant
2191 of a formal limited private type is not immutably limited in a generic
2194 2010-10-08 Robert Dewar <dewar@adacore.com>
2196 * sem_prag.adb (Check_Duplicate_Pragma): New procedure
2197 Add calls to this new procedure where appropriate
2199 2010-10-08 Vincent Celier <celier@adacore.com>
2201 * a-textio.adb (Get_Chunk): Code clean up.
2203 2010-10-08 Robert Dewar <dewar@adacore.com>
2205 * a-strbou.ads, a-strfix.adb, a-strfix.ads, a-strsea.adb, a-strsea.ads,
2206 a-strsup.adb, a-strsup.ads, a-strunb-shared.adb, a-strunb-shared.ads,
2207 a-strunb.adb, a-strunb.ads, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
2208 a-stwise.adb, a-stwise.ads, a-stwisu.adb, a-stwisu.ads,
2209 a-stwiun-shared.adb, a-stwiun-shared.ads, a-stwiun.adb, a-stwiun.ads,
2210 a-stzbou.ads, a-stzfix.adb, a-stzfix.ads, a-stzsea.adb, a-stzsea.ads,
2211 a-stzsup.adb, a-stzsup.ads, a-stzunb-shared.adb, a-stzunb-shared.ads,
2212 a-stzunb.adb, a-stzunb.ads (Find_Token): New version with From
2215 2010-10-08 Robert Dewar <dewar@adacore.com>
2217 * sem_cat.adb (Check_Categorization_Dependencies): Remote types
2218 packages can depend on preleborated packages.
2220 2010-10-08 Robert Dewar <dewar@adacore.com>
2222 * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Pragmas
2223 Interrupt_Handler and Attach_Handler not allowed in generics.
2225 2010-10-08 Robert Dewar <dewar@adacore.com>
2227 * ali.adb: Set Allocator_In_Body if AB parameter present on M line
2228 * ali.ads (Allocator_In_Body): New flag
2229 * bcheck.adb (Check_Consistent_Restrictions): Handle case of main
2230 program violating No_Allocators_After_Elaboration restriction.
2231 * gnatbind.adb (No_Restriction_List): Add entries for
2232 No_Anonymous_Allocators, and No_Allocators_After_Elaboration.
2233 * lib-load.adb: Initialize Has_Allocator flag
2234 * lib-writ.adb: Initialize Has_Allocator flag
2235 (M_Parameters): Set AB switch if Has_Allocator flag set
2236 * lib-writ.ads: Document AB flag on M line
2237 * lib.adb (Has_Allocator): New function
2238 (Set_Has_Allocator): New procedure
2239 * lib.ads (Has_Allocator): New function
2240 (Set_Has_Allocator): New procedure
2241 (Has_Allocator): New flag in Unit_Record
2242 * sem_ch4.adb (Analyze_Allocator): Add processing for
2243 No_Allocators_After_Elaboration.
2245 2010-10-08 Geert Bosch <bosch@adacore.com>
2247 * a-textio.adb (Get_Line): Rewrite to use fgets instead of fgetc.
2249 2010-10-08 Javier Miranda <miranda@adacore.com>
2251 * sem_prag.adb (Analyze_Pragma): Relax semantic rule of
2252 Java_Constructors because in the JRE library we generate occurrences
2253 in which the "this" parameter is not the first formal.
2255 2010-10-08 Robert Dewar <dewar@adacore.com>
2257 * par-ch3.adb: Minor reformatting.
2259 2010-10-08 Javier Miranda <miranda@adacore.com>
2261 * exp_disp.adb (Make_DT): Do not generate dispatch tables for CIL/Java
2264 2010-10-08 Robert Dewar <dewar@adacore.com>
2266 * par-ch8.adb (P_Use_Type_Clause): Recognize ALL keyword in Ada 2012
2268 * sinfo.adb (Use_Type_Clause): Add All_Present flag.
2269 * sinfo.ads (Use_Type_Clause): Add All_Present flag.
2270 * s-rident.ads: Add entry for No_Allocators_After_Elaboration,
2271 No_Anonymous_Allocators.
2273 2010-10-08 Vincent Celier <celier@adacore.com>
2275 * bindgen.adb (Gen_Restrictions_Ada): No new line after last
2276 restriction, so that the last comma is always replaced with a left
2279 2010-10-08 Javier Miranda <miranda@adacore.com>
2281 * sem_prag.adb (Analyze_Pragma): Add specific check on the type of the
2282 first formal of delegates.
2284 2010-10-08 Robert Dewar <dewar@adacore.com>
2286 * sem_aggr.adb: Minor reformatting.
2288 2010-10-08 Robert Dewar <dewar@adacore.com>
2290 * exp_imgv.adb (Expand_Image_Attribute): Handle special calling
2291 sequence for soft hyphen for Character'Image case.
2292 * rtsfind.ads (Image_Character_05): New entry
2293 * s-imgcha.adb (Image_Character_05): New procedurew
2294 * s-imgcha.ads (Image_Character_05): New procedure
2295 * s-imgwch.adb (Image_Wide_Character): Deal with Ada 2005 soft hyphen
2297 * s-valcha.adb (Value_Character): Recognize SOFT_HYPHEN for 16#AD#
2298 * sem_attr.adb (Eval_Attribute, case Width): Handle soft_hyphen name
2301 2010-10-08 Robert Dewar <dewar@adacore.com>
2303 * sem_attr.adb (Eval_Attribute, case Width): Avoid ludicrous long loop
2304 for case of Wide_[Wide_]Character.
2306 2010-10-08 Robert Dewar <dewar@adacore.com>
2308 * exp_ch3.adb: Minor reformating
2309 Minor code reorganization.
2311 2010-10-08 Javier Miranda <miranda@adacore.com>
2313 * sem_prag.adb (Analyze_Pragma): Add missing checks on wrong use of
2314 pragmas CIL_Constructor and Java_Constructor.
2315 * exp_ch3.adb (Expand_Freeze_Record_Type): Do not generate the
2316 predefined primitives for CIL/Java tagged types.
2318 2010-10-08 Robert Dewar <dewar@adacore.com>
2320 * sem_ch6.adb: Minor reformatting.
2322 2010-10-08 Robert Dewar <dewar@adacore.com>
2324 * gnat1drv.adb: Add call to Validate_Independence.
2325 * par-prag.adb: Add dummy entries for Independent,
2326 Independent_Componentsa.
2327 * sem_ch13.adb (Validate_Independence): New procedure
2328 (Initialize): Initialize address clause and independence check tables
2329 * sem_ch13.ads (Independence_Checks): New table
2330 (Validate_Independence): New procedure
2331 * sem_prag.adb: Add processing for pragma Independent[_Components]
2332 * snames.ads-tmpl: Add entries for pragma Independent[_Components]
2334 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2336 * sem_aggr.adb (Propagate_Discriminants): When expanding an aggregate
2337 component with box initialization, if the component is a variant record
2338 use the values of the discriminants to select the proper variant for
2339 further box initialization.
2341 2010-10-08 Thomas Quinot <quinot@adacore.com>
2343 * xsnames.adb: Remove obsolete file.
2344 * make.adb, sem_ch8.adb, einfo.ads: Minor reformatting.
2346 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2348 * exp_aggr.adb: Complete previous change.
2350 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2352 * sem_ch6.adb (Check_Return_Subtype): The subtype indication in an
2353 extended return must match statically the return subtype of the
2354 enclosing function if the type is an elementary type or if it is
2357 2010-10-08 Vincent Celier <celier@adacore.com>
2359 * prj-nmsc.adb (Add_Source): Report all duplicate units and source file
2360 names. Do not report the same duplicate unit several times.
2361 * prj.ads (Source_Data): New Boolean component Duplicate_Unit,
2362 defaulted to False, to avoid reporting the same unit as duplicate
2365 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2367 * sem_aggr.adb (Resolve_Array_Aggregate): If the expression in an
2368 others choice is a literal, analyze it to enable later optimizations.
2369 * exp_aggr.adb (Expand_Record_Aggregate): An aggregate with static size
2370 and components can be handled by the backend even if it is of a limited
2373 2010-10-08 Arnaud Charlet <charlet@adacore.com>
2375 * a-rttiev.adb (task Timer): Since this package may be elaborated
2376 before System.Interrupt, we need to call Setup_Interrupt_Mask
2377 explicitly to ensure that this task has the proper signal mask.
2379 2010-10-08 Robert Dewar <dewar@adacore.com>
2381 * freeze.adb (Freeze_Entity): For array case, move some processing for
2382 pragma Pack, Component_Size clause and atomic/volatile components here
2383 instead of trying to do the job in Sem_Ch13 and Freeze.
2384 * layout.adb: Use new Addressable function
2385 * sem_ch13.adb (Analyze_Attribute_Representation_Clause, case
2386 Component_Size): Move some handling to freeze point in
2387 Freeze.Freeze_Entity.
2388 * sem_prag.adb (Analyze_pragma, case Pack): Move some handling to
2389 freeze point in Freese.Freeze_Entity.
2390 * sem_util.ads, sem_util.adb (Addressable): New function.
2392 2010-10-08 Robert Dewar <dewar@adacore.com>
2394 * sprint.adb: Minor reformatting.
2396 2010-10-08 Javier Miranda <miranda@adacore.com>
2398 * exp_ch4.adb (Real_Range_Check): Declare temporary as constant.
2400 2010-10-08 Robert Dewar <dewar@adacore.com>
2402 * sem_ch3.adb: Minor reformatting.
2404 2010-10-08 Vincent Celier <celier@adacore.com>
2406 * ali-util.adb (Get_File_Checksum): Make sure that external_as_list is
2407 not a reserved word.
2408 * prj-proc.adb (Expression): Process string list external references.
2409 * prj-strt.adb (External_Reference): Parse external_as_list external
2411 * prj-tree.ads (Expression_Kind_Of): Allowed for N_External_Value nodes
2412 (Set_Expression_Kind_Of): Ditto
2413 * prj.adb (Initialize): Set external_as_list as a reserved word
2414 * projects.texi: Document new string external reference
2416 * scans.ads (Token_Type): New token Tok_External_As_List
2417 * snames.ads-tmpl: New standard name Name_External_As_List
2419 2010-10-08 Thomas Quinot <quinot@adacore.com>
2421 * sem_prag.adb: Minor reformatting.
2423 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2425 * sem_ch3.adb (Derived_Type_Declaration): In the private part of an
2426 instance, it is legal to derive from a non-limited actual when the
2427 formal type is untagged limited.
2428 * sem_ch12.adb (Instantiate_Type): For a formal private type, use
2429 analyzed formal as Generic_Parent_Type, to simplify later checks.
2431 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2433 * sem_res.adb (Insert_Default): If default value is already a
2434 raise_constraint_error do not rewrite it as new raise node, to prevent
2435 infinite loops in the warning removal machinery.
2437 2010-10-08 Robert Dewar <dewar@adacore.com>
2439 * sem_util.adb, sem_prag.adb: Minor reformatting
2441 2010-10-08 Hristian Kirtchev <kirtchev@adacore.com>
2443 * gnat_rm.texi: Remove the section on pragma Implemented_By_Entry.
2444 Add section on pragma Implemented.
2446 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2448 * sem_ch3.adb (Derive_Subprogram): If an abstract extension has a
2449 concrete parent with a concrete constructor, the inherited constructor
2450 is abstract even if the derived type is a null extension.
2452 2010-10-08 Thomas Quinot <quinot@adacore.com>
2454 * sem_ch4.adb: Minor reformatting.
2456 2010-10-08 Hristian Kirtchev <kirtchev@adacore.com>
2458 * einfo.adb: Flag 232 (formerly Implemented_By_Entry) is now unused.
2459 (Implemented_By_Entry): Removed.
2460 (Set_Implemented_By_Entry): Removed.
2461 (Write_Entity_Flags): Remove the output for Implemented_By_Entry.
2462 * einfo.ads: Remove Implemented_By_Entry and its usage in entities.
2463 (Implemented_By_Entry): Removed along with its associated pragma.
2464 (Set_Implemented_By_Entry): Removed along with its associated pragma.
2465 * exp_ch9.adb: Alphabetize with and use clauses of Exp_Ch9.
2466 (Build_Dispatching_Call_Equivalent): New routine.
2467 (Build_Dispatching_Requeue): New routine.
2468 (Build_Dispatching_Requeue_To_Any): New routine.
2469 (Build_Normal_Requeue): New routine.
2470 (Build_Skip_Statement): New routine.
2471 (Expand_N_Requeue_Statement): Rewritten. The logic has been split into
2472 several subroutines.
2473 * par-prag.adb: Replace Pragma_Implemented_By_Entry by
2475 * sem_ch3.adb (Check_Abstract_Overriding): Perform checks concerning
2477 (Check_Pragma_Implemented): New routines.
2478 (Inherit_Pragma_Implemented): New routine.
2479 * sem_ch9.adb (Analyze_Requeue): Update the predicate which detects a
2480 dispatching requeue.
2481 * sem_prag.adb: Update array Sig_Flags by removing Implemented_By_Entry
2482 and adding Implemented.
2483 (Ada_2012_Pragma): New routine.
2484 (Analyze_Pragma, case Implemented): Perform all necessary checks
2485 concerning pragma Implemented and register the pragma as a
2486 representation item with the procedure_LOCAL_NAME.
2487 (Analyze_Pragma, case Implemented_By_Entry): Removed.
2488 * sem_util.adb (Implementation_Kind): New routine.
2489 * sem_util.ads (Implementation_Kind): New routine.
2490 * snames.ads-tmpl: Remove Name_Implemented_By_Entry and add
2491 Name_Implemented. Remove pragma name Pragma_Implemented_By_Entry and
2492 add Pragma_Implemented. Add special names By_Any, By_Entry and
2493 By_Protected_Procedure.
2495 2010-10-08 Javier Miranda <miranda@adacore.com>
2497 * exp_ch3.adb (Expand_Freeeze_Record_Type): Code cleanup: remove local
2498 variable Has_Static_DT by invocation of function Building_Static_DT.
2500 2010-10-08 Vincent Celier <celier@adacore.com>
2502 * g-dirope.adb (Remove_Dir): Do not change the current directory when
2503 doing a recursive remove of a subdirectory.
2505 2010-10-08 Javier Miranda <miranda@adacore.com>
2507 * exp_ch6.ad (Freeze_Subprogram): Factorize code.
2508 * exp_disp.adb (Make_Secondary_DT): Factorize code.
2509 (Make_DT): Factorize code.
2511 2010-10-08 Robert Dewar <dewar@adacore.com>
2513 * sem_ch4.adb: Minor reformatting.
2515 2010-10-08 Robert Dewar <dewar@adacore.com>
2517 * sem_ch6.adb (Check_Conformance): Check null exclusion match for full
2520 2010-10-08 Thomas Quinot <quinot@adacore.com>
2522 * sem_ch12.adb (Instantiate_Object): Rename Formal_Id to Gen_Obj, for
2523 consistency with Gen_T in Instantiate_Type.
2524 Introduce constant A_Gen_Obj to avoid repeated queries for
2525 Defining_Identifier (Analyzed_Formal).
2527 2010-10-08 Vincent Celier <celier@adacore.com>
2529 * prj-nmsc.adb: Minor comment fix.
2531 2010-10-07 Robert Dewar <dewar@adacore.com>
2533 * sem_prag.adb, sem_ch13.adb: Implement AI05-0012-1/02.
2534 * gcc-interface/Make-lang.in: Update dependencies.
2536 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2538 * sem_ch12.ad: (Instantiate_Object): For an in-out formal of a child
2539 unit, if the type of the formal is declared in a parent unit and is not
2540 a formal itself, the actual must be located from an enclosing parent
2541 instance by normal visibility.
2543 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2545 * sem_ch4.adb (Analyze_Allocator): In Ada 2012, a null_exclusion
2546 indicator is illegal for an uninitialized allocator.
2548 2010-10-07 Robert Dewar <dewar@adacore.com>
2550 * sem_prag.adb (Analyze_Attribute_Definition_Clause, case
2551 Component_Size): Complete previous change.
2553 2010-10-07 Vincent Celier <celier@adacore.com>
2555 * scng.adb (Scan): Call Accumulate_Token_Checksum for Tok_Identifier,
2556 even for keywords, to avoid having the checksum to depend on the Ada
2559 2010-10-07 Gary Dismukes <dismukes@adacore.com>
2561 * sem_aggr.adb, sem_ch12.adb, sem_ch6.adb, par-ch5.adb,
2562 exp_ch3.adb: Minor reformatting.
2564 2010-10-07 Robert Dewar <dewar@adacore.com>
2566 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
2567 Component_Size): It is now illegal to give an incorrect component size
2568 clause in the case of aliased or atomic components.
2569 * sem_prag.adb (Analyze_Pragma, case Pack): It is now illegal to give
2570 an effective pragma Pack in the case of aliased or atomic components.
2572 2010-10-07 Steve Baird <baird@adacore.com>
2574 * exp_ch4.adb (Expand_N_Allocator): Do not bypass expansion
2575 in the case of a violation of an active No_Task_Hierarchy restriction.
2577 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2579 * sem_ch12.adb (Validate_Derived_Type_Instance): If a formal derived
2580 type is non-limited, an actual for it cannot be limited.
2582 2010-10-07 Robert Dewar <dewar@adacore.com>
2584 * einfo.ads (No_Pool_Assigned): Update documentation.
2585 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
2586 Storage_Size): We only set No_Pool_Assigned if the expression is a
2587 static constant and zero.
2588 * sem_res.adb (Resolve_Allocator): Allocation from empty storage pool
2589 should be an error not a warning.
2591 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2593 * exp_aggr.adb (Expand_Array_Aggregate): Recognize additional cases
2594 where an aggregate in an assignment can be built directly into the
2595 target, and does not require the creation of a temporary that may
2598 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2600 * sem_aggr.adb (Analyze_Record_Aggregate): In Ada2012, a choice list
2601 in a record aggregate can correspond to several components of
2602 anonymous access types, as long as the designated subtypes match.
2604 2010-10-07 Robert Dewar <dewar@adacore.com>
2606 * gnat_rm.texi, exp_util.adb, sinfo.adb, sinfo.ads, sem_ch12.adb,
2607 sem.adb, gnat_ugn.texi, sem_util.ads, par-ch6.adb, targparm.ads,
2608 restrict.adb, sem_ch6.adb, sem_ch6.ads, sprint.adb, i-c.ads: Change
2609 spelling parametrize(d) => parameterize(d).
2611 2010-10-07 Robert Dewar <dewar@adacore.com>
2613 * sem_ch12.adb: Add comment.
2614 * sem_ch6.adb: Minor reformatting.
2616 2010-10-07 Robert Dewar <dewar@adacore.com>
2618 * par-ch3.adb, par-ch6.adb, par-ch7.adb, par-ch9.adb, par-ch10.adb: Add
2619 Pexp to Pf_Rec constants
2620 (P_Subprogram): Expression is always enclosed in parentheses
2621 * par.adb (Pf_Rec): add Pexp flag for parametrized expression
2622 * sinfo.ads (N_Parametrized_Expression): Expression must be in parens
2624 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2626 * sem_ch6.adb (Analyze_Subprogram_Specification): Implement Ada2012
2627 checks on functions that return an abstract type or have a controlling
2628 result whose designated type is an abstract type.
2629 (Check_Private_Overriding): Implement Ada2012 checks on functions
2630 declared in the private part, if an abstract type is involved.
2631 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): In Ada2012,
2632 reject a generic function that returns an abstract type.
2633 * exp_ch5.adb (Expand_Simple_Function_Return): in Ada2012, if a
2634 function has a controlling access result, check that the tag of the
2635 return value matches the designated type of the return expression.
2637 2010-10-07 Robert Dewar <dewar@adacore.com>
2639 * par-ch6.adb: Fix error in handling of parametrized expressions.
2640 * par-ch4.adb (P_Name): Allow qualified expression as name in Ada 2012
2642 (P_Simple_Expression): Better message for qualified expression prefix
2643 * s-crc32.adb: Minor reformatting.
2644 * exp_intr.adb (Expand_Unc_Deallocation): Remove test for empty
2645 storage pool (this test is moved to Sem_Intr).
2646 * sem_intr.adb (Check_Intrinsic_Call): Add check for deallocation from
2647 empty storage pool, moved here from Exp_Intr and made into error.
2648 (Check_Intrinsic_Call): Remove assumption in generating not-null free
2649 warning that the name of the instantiation is Free.
2650 * sinput.adb (Tree_Read): Document use of illegal free call allowed in
2652 * types.ads: Remove storage size clauses from big types (since we may
2653 need to do deallocations, which are now illegal for empty pools).
2655 2010-10-07 Sergey Rybin <rybin@adacore.com>
2657 * gnat_ugn.texi: Add missing word.
2659 2010-10-07 Robert Dewar <dewar@adacore.com>
2661 * exp_util.adb (Insert_Actions): Add handling of
2662 N_Parametrized_Expression.
2663 * par-ch6.adb (P_Subprogram): Add parsing of parametrized expression
2664 * sem.adb: Add entry for N_Parametrized_Expression
2665 * sem_ch6.adb (Analyze_Parametrized_Expression): New procedure
2666 * sem_ch6.ads (Analyze_Parametrized_Expression): New procedure
2667 * sinfo.ads, sinfo.adb: Add N_Parametrized_Expression
2668 * sprint.adb (Sprint_Node): Add handling for N_Parametrized_Expression
2669 * par-ch4.adb: Minor reformatting.
2671 2010-10-07 Robert Dewar <dewar@adacore.com>
2673 * scng.adb (Skip_Other_Format_Characters): New procedure
2674 (Start_Of_Wide_Character): New procedure
2675 (Scan): Use Start_Of_Wide_Character where appropriate
2676 (Scan): Improve error message for other_format chars in identifier
2677 (Scan): Allow other_format chars between tokens
2679 2010-10-07 Javier Miranda <miranda@adacore.com>
2681 * exp_util.adb (Safe_Prefixed_Reference): When removing side effects,
2682 Add missing support for explicit dereferences.
2684 2010-10-07 Robert Dewar <dewar@adacore.com>
2686 * par-ch10.adb, par-ch3.adb, par.adb: Minor reformatting.
2688 2010-10-07 Robert Dewar <dewar@adacore.com>
2690 * exp_disp.adb, exp_dist.adb, exp_util.ads, exp_util.adb,
2691 exp_ch11.adb: Rename Full_Qualified_Name to Fully_Qualified_Name_String
2692 * sem_util.adb, sem_util.ads (Full_Qualified_Name): Moved to
2693 Exp_Util.Fully_Qualified_Name_String.
2695 2010-10-07 Robert Dewar <dewar@adacore.com>
2697 * rtsfind.ads: Add entry for Ada.Real_Time.Timing_Events.Set_Handler
2698 * sem_res.adb (Resolve_Call): A call to
2699 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
2700 No_Relative_Delay (AI-0211).
2702 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2704 * sem_ch10.adb: Small change in error message.
2706 2010-10-07 Robert Dewar <dewar@adacore.com>
2708 * tbuild.ads: Minor reformatting.
2710 2010-10-07 Robert Dewar <dewar@adacore.com>
2712 * gnatcmd.adb, make.adb, prj-nmsc.adb, sem_elab.adb: Minor reformatting
2714 2010-10-07 Arnaud Charlet <charlet@adacore.com>
2716 * exp_ch11.adb (Expand_N_Exception_Declaration): Update comments.
2718 2010-10-07 Robert Dewar <dewar@adacore.com>
2720 * sem_res.adb: Minor reformatting
2722 2010-10-07 Olivier Ramonat <ramonat@adacore.com>
2724 * gnat_ugn.texi: Minor editing.
2725 * opt.ads: Document that scripts rely on specific formats in opt.ads
2727 2010-10-07 Robert Dewar <dewar@adacore.com>
2729 * a-wichun.ads, a-wichun.adb (To_Lower_Case): New function
2730 (To_Upper_Case): Fix to be inverse of To_Lower_Case
2731 * a-zchuni.ads, a-zchuni.adb (To_Lower_Case): New function
2732 (To_Upper_Case): Fix to be inverse of To_Lower_Case
2734 2010-10-07 Robert Dewar <dewar@adacore.com>
2736 * a-wichha.adb, a-wichha.ads, a-zchhan.adb, a-zchhan.ads: New file.
2737 * impunit.adb: Add entries for a-wichha/a-zchhan
2738 * Makefile.rtl: Add entries for a-wichha/a-zchhan
2740 2010-10-07 Vincent Celier <celier@adacore.com>
2742 * make.adb (Check): Call Check_Source_Info_In_ALI with Project_Tree
2743 * makeutl.adb (Check_Source_Info_In_ALI): If there is at least one
2744 replaced source, check that none of the replaced sources are in the
2746 * makeutl.ads (Check_Source_Info_In_ALI): New parameter Tree
2747 * prj-nmsc.adb (Remove_Source): New parameter Tree. If the source is
2748 replaced with a source with a different file name, put it in the hash
2749 table Replaced_Sources.
2750 (Add_Source): Call Remove_Source with Data.Tree. If there is at least
2751 one replaced source, check if it has the same file name as the current
2752 source; if it has, remove it from the hash table Replaced_Sources.
2753 * prj.adb (Reset): Reset hash table Tree.Replaced_Sources
2754 * prj.ads (Replaced_Source_HTable): New hash table
2755 (Project_Tree_Data): New components Replaced_Sources and
2756 Replaced_Source_Number.
2758 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2760 * sem_elab.adb (Check_A_Call): After inserting elaboration check, set
2761 proper flag to prevent a double elaboration check on the same call.
2762 * exp_util.adb (Insert_Actions): If the enclosing node is an
2763 Expression_With_Actions and it has been analyzed already, find
2764 insertion point further up in the tree.
2766 2010-10-07 Hristian Kirtchev <kirtchev@adacore.com>
2768 * sem_ch13.adb (Analyze_Record_Representation_Clause): Alphabetize all
2769 local variables. Remove the general restriction which prohibits the
2770 application of record rep clauses to Unchecked_Union types. Add Ada
2771 2012 check to detect improper naming of an Unchecked_Union
2772 discriminant in record rep clause.
2773 * sem_prag.adb: Add with and use clause for Exp_Ch7.
2774 (Analyze_Pragma): Unchecked_Union case: Propagate the Unchecked_Union
2775 type to all invocations of Check_Component and Check_Variant.
2776 (Check_Component): Add formal parameters UU_Typ and In_Variant_Part.
2777 Rewritten. Add Ada 2012 check to detect improper use of formal
2778 private types and private extensions as component types of an
2779 Unchecked_Union declared inside a generic body.
2780 (Check_Variant): Add formal parameter UU_Typ. Propagate the
2781 Unchecked_Union type to all calls of Check_Component. Signal that the
2782 current component comes from the variant part of an Unchecked_Union
2784 (Inside_Generic_Body): New routine.
2786 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2788 * exp_ch4.adb (Expand_Composite_Equality): When looking for a primitive
2789 equality operation for a record component, verify that both formals
2790 have the same type, and the result type is boolean.
2792 2010-10-07 Vincent Celier <celier@adacore.com>
2794 * gnatcmd.adb (Check_Files): When looking for the .ci file for a
2795 binder generated file, look for both b~xxx and b__xxx as gprbuild
2796 always uses b__ as the prefix of such files.
2798 2010-10-07 Thomas Quinot <quinot@adacore.com>
2800 * sem_res.adb: Minor reformatting.
2802 2010-10-07 Arnaud Charlet <charlet@adacore.com>
2804 * debug.adb: Update -gnatd.J documentation.
2806 2010-10-07 Robert Dewar <dewar@adacore.com>
2808 * gnat_rm.texi: Document handling of invalid values
2809 * s-utf_32.ads, s-utf_32.adb (UTF_To_Lower_Case): Fix implementation
2811 (UTF_To_Upper_Case): New function.
2813 2010-10-07 Robert Dewar <dewar@adacore.com>
2815 * sem_attr.adb: Minor reformatting.
2816 * einfo.ads, einfo.adb (Is_Ada_2012_Only): New flag
2817 * itypes.adb (Create_Null_Excluding_Itype): Set Is_Ada_2012_Only flag
2819 * lib-xref.adb (Generate_Reference): Warn on use of Ada 2012 entity in
2821 * opt.ads (Warn_On_Ada_2012_Compatibility): New flag
2822 * sem_ch3.adb (Analye_Subtype_Declaration): Inherit Is_Ada_2012_Only
2823 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Is_Ada_2012_Only
2825 * sem_prag.adb (Analyze_Pragma, case Ada_12/Ada_2012): Allow form with
2827 * sem_type.adb (Disambiguate): Deal with Is_Ada_2012_Only.
2828 * sem_warn.adb (Warn_On_Ada_2012_Compatibility): New flag, treated
2831 2010-10-07 Javier Miranda <miranda@adacore.com>
2833 * a-tags.ads: Use new support for pragma Ada_2012 with function
2836 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2838 * par-ch5.adb (P_Sequence_Of_Statements): In Ada2012 a label can end a
2839 sequence of statements.
2841 2010-10-07 Vincent Celier <celier@adacore.com>
2843 * gnatcmd.adb (Check_Files): Only add a .ci files if it exists
2845 2010-10-07 Javier Miranda <miranda@adacore.com>
2847 * a-tags.ads, a-tags.adb (Type_Is_Abstract): New subprogram.
2848 * rtsfind.ads (RE_Type_Is_Abstract): New entity.
2849 * exp_disp.adb (Make_DT): Initialize TSD component Type_Is_Abstract.
2851 2010-10-07 Arnaud Charlet <charlet@adacore.com>
2853 * sem_ch12.adb (Mark_Context): Removed, no longer needed.
2854 (Analyze_Package_Instantiation): No longer analyze systematically a
2855 generic body in CodePeer mode.
2856 * freeze.adb, sem_attr.adb: Update comments.
2858 2010-10-05 Robert Dewar <dewar@adacore.com>
2860 * par-ch5.adb (Test_Statement_Required): Allow all pragmas in Ada 2012
2863 2010-10-05 Pascal Obry <obry@adacore.com>
2865 * gnat_rm.texi: Fix typo.
2867 2010-10-05 Arnaud Charlet <charlet@adacore.com>
2869 * gnat_ugn.texi: Add note about identifiers with same name and
2872 2010-10-05 Robert Dewar <dewar@adacore.com>
2874 * sem_ch4.adb: Minor reformatting.
2875 * a-direct.ads: Minor comment update.
2877 2010-10-05 Javier Miranda <miranda@adacore.com>
2879 * sem_ch3.adb (Add_Internal_Interface_Entities): Removing code that is
2880 no longer required after change in New_Overloaded_Entity.
2881 * sem_ch6.adb (New_Overloaded_Entity): Code reorganization to isolate
2882 the fragment of code that handles derivations of interface primitives.
2883 Add missing dependence on global variable Inside_Freezing_Actions to
2884 ensure the correct management of internal interface entities.
2885 * sem_ch13.adb (Analyze_Freeze_Entity): Add missing increase/decrease
2886 of the global variable Inside_Freezing_Actions to ensure that internal
2887 interface entities are well handled by New_Overloaded_Entity.
2888 * sem_disp.adb (Find_Primitive_Covering_Interface): Add documentation
2889 and complete the algorithm to catch hidden primitives derived of
2890 private type that covers the interface.
2891 * sem_disp.ads (Find_Primitive_Covering_Interface): Add missing
2894 2010-10-05 Robert Dewar <dewar@adacore.com>
2896 * prj-util.adb, prj-util.ads, prj.ads, s-vxwext-rtp.adb, sem_ch4.adb,
2897 sem_ch7.adb, sem_res.adb, sem_type.adb: Minor reformatting.
2898 Minor code reorganization (use Nkind_In).
2900 2010-10-05 Ed Schonberg <schonberg@adacore.com>
2902 * sem_ch10.adb (Analyze_Task_Body_Stub): Diagnose duplicate stub for
2905 2010-10-05 Vincent Celier <celier@adacore.com>
2907 * gnatbind.adb: If the main library file is not for a suitable main
2908 program, change the error message.
2910 2010-10-05 Vincent Celier <celier@adacore.com>
2912 * a-direct.ads: Minor spelling error fixes in comments.
2913 * gnat_rm.texi: Add three entries in "Implementation Defined
2914 Characteristics" for the interpretations of the Form parameters in
2917 2010-10-05 Robert Dewar <dewar@adacore.com>
2919 * exp_ch3.adb, exp_ch5.adb, exp_disp.adb, exp_dist.adb, gnatlink.adb,
2920 makeutl.adb, par-ch6.adb, prj-dect.adb, prj-env.adb, prj-env.ads,
2921 prj-ext.adb, prj-nmsc.adb, prj-part.adb, prj-pp.ads: Minor code
2925 2010-10-05 Ed Schonberg <schonberg@adacore.com>
2927 * sem_res.adb (Check_Parameterless_Call): If the prefix of 'Address is
2928 an explicit dereference of an access to function, the prefix is not
2929 interpreted as a parameterless call.
2931 2010-10-05 Ed Schonberg <schonberg@adacore.com>
2933 * exp_attr.adb: For 'Read and 'Write, use full view of base type if
2936 2010-10-05 Vincent Celier <celier@adacore.com>
2938 * make.adb (Switches_Of): Allow wild cards in index of attributes
2940 * prj-util.adb (Value_Of): When Allow_Wildcards is True, use the index
2941 of the associative array as a glob regular expression.
2942 * prj-util.ads (Value_Of (Index, In_Array)): New Boolean parameter
2943 Allow_Wildcards, defaulted to False.
2944 (Value_Of (Name, Attribute_Or_Array_Name)): Ditto
2945 * projects.texi: Document that attribute Switches (<file name>) may
2946 use wild cards in the index.
2948 2010-10-05 Robert Dewar <dewar@adacore.com>
2950 * a-direct.adb, a-direct.ads, back_end.adb, checks.adb,
2951 einfo.adb: Minor reformatting.
2952 * debug.adb: Remove obsolete documentation for d.Z flag.
2954 2010-10-05 Vincent Celier <celier@adacore.com>
2956 * vms_data.ads: Add VMS qualifier /SRC_INFO= corresponding to gnatmake
2957 switch --create-info-file=.
2958 * gnat_ugn.texi: Add documentation for new gnatmake switch
2961 2010-10-05 Ed Schonberg <schonberg@adacore.com>
2963 * sem_ch3.adb: Do not elaborate type definition if syntax error.
2965 2010-10-05 Javier Miranda <miranda@adacore.com>
2967 * sprint.adb (Sprint_Node_Actual): Improve output of subprogram bodies
2968 to generate the full-qualified names of its corresponding spec.
2969 This facilitates locating the corresponing body when reading
2972 2010-10-05 Thomas Quinot <quinot@adacore.com>
2974 * exp_dist.adb (Make_Helper_Function_Name): For a tagged type, use
2975 canonical name without serial number only if the helper is becoming a
2976 primitive of the type.
2978 2010-10-05 Javier Miranda <miranda@adacore.com>
2980 * exp_disp.adb (Make_DT): Minor code reorganization.
2982 2010-10-05 Ed Schonberg <schonberg@adacore.com>
2984 * par-ch6.adb: improve recovery with extra paren in function spec.
2986 2010-10-05 Quentin Ochem <ochem@adacore.com>
2988 * prj-tree.ads: Project_Path is now aliased.
2990 2010-10-05 Thomas Quinot <quinot@adacore.com>
2992 * checks.adb: Minor reformatting.
2994 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
2996 * mlib-tgt-specific-mingw.adb (No_Argument_List): Delete.
2997 (Shared_Libgcc): New aliased variable.
2998 (Shared_Libgcc_Switch): New constant.
2999 (Build_Dynamic_Library): Pass Shared_Libgcc_Switch to the compiler
3000 * gcc-interface/Makefile.in (gnatlib-shared-win32): Pass -shared-libgcc
3002 * gcc-interface/Make-lang.in: Update dependencies.
3004 2010-10-05 Vincent Celier <celier@adacore.com>
3006 * prj-part.adb (Parse_Simple_Project): When checking if a child project
3007 imports its parent project, also look in projects being extended by
3010 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
3012 * gnat_ugn.texi: Adjust instructions in G.10 Building DLLs with GNAT.
3014 2010-10-05 Javier Miranda <miranda@adacore.com>
3016 * exp_cg.adb (Slot_Number): Add support to handle aliased entities.
3017 (Generate_CG_Output): Switch -gnatd.Z is no longer needed to
3018 activate this output.
3020 2010-10-05 Arnaud Charlet <charlet@adacore.com>
3022 * back_end.adb (Call_Back_End): Generate an error message when scil
3023 generation is enabled, and no scil back-end (by default) is available.
3025 2010-10-05 Javier Miranda <miranda@adacore.com>
3027 * debug.adb: Update documentation since -gnatd.Z is no longer required
3028 to generate the call-graph information.
3030 2010-10-05 Javier Miranda <miranda@adacore.com>
3032 * exp_ch5.adb (Expand_Simple_Function_Return): Rewrite expansion of a
3033 runtime access check by an equivalent expansion that causes
3034 no problems in the VM backend. The original expansion was
3035 not good for the VM backends because when Tagged_Type_Expansion
3036 is disabled the attribute Access_Disp_Table is not available.
3038 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3040 * sem_type.adb (Covers): In a dispatching context, T1 covers T2 if T2
3041 is class-wide and T1 is its specific type.
3043 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3045 * einfo.adb: Add guard to Is_String_Type to prevent cascaded errors.
3047 2010-10-05 Vincent Celier <celier@adacore.com>
3049 * back_end.ads: Minor spelling error correction.
3051 2010-10-05 Arnaud Charlet <charlet@adacore.com>
3053 * switch-c.adb, gnat1drv.adb (Scan_Front_End_Switches): Disable
3054 warnings when -gnatC is specified here so that warnings can be
3055 re-enabled explicitly.
3056 (Adjust_Global_Switches): No longer suppress warnings.
3058 2010-10-05 Vincent Celier <celier@adacore.com>
3060 * makeutl.adb: Minor reformatting.
3062 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3064 * sem_ch4.adb: add guard in Analyze_One_Call to prevent crash when a
3065 non-discrete type appears as an actual in a call.
3067 2010-10-05 Vincent Celier <celier@adacore.com>
3069 * make.adb (Scan_Make_Arg): Take into account new switch
3071 * makeusg.adb: Add line for new switch --source-info=file.
3072 * makeutl.ads (Source_Info_Option): New constant String for new builder
3074 * prj-conf.adb: Put subprograms in alphabetical order
3075 (Process_Project_And_Apply_Config): Read/write an eventual source info
3077 * prj-nmsc.adb (Look_For_Sources.Get_Sources_From_Source_Info): New
3079 (Look_For_Sources): If a source info file was successfully read, get
3080 the source data from the data read from the source info file.
3081 * prj-util.adb (Source_Info_Table): New table
3082 (Source_Info_Project_HTable): New hash table
3083 (Create): New procedure
3084 (Put (File), Put_Line): New procedures
3085 (Write_Source_Info_File): New procedure
3086 (Read_Source_Info_File): New procedure
3087 (Initialize): New procedure
3088 (Source_Info_Of): New procedure
3089 (Next): New procedure
3090 (Close): When file is an out file, fail if the buffer cannot be written
3091 or if the file cannot be close successfully.
3092 (Get_Line): Fail if file is an out file
3093 * prj-util.ads (Create): New procedure
3094 (Put (File), Put_Line): New procedures
3095 (Write_Source_Info_File): New procedure
3096 (Read_Source_Info_File): New procedure
3097 (Source_Info_Data): New record type
3098 (Source_Info_Iterator): New private type
3099 (Initialize): New procedure
3100 (Source_Info_Of): New procedure
3101 (Next): New procedure
3102 * prj.ads (Project_Tree_Data): New components Source_Info_File_Name and
3103 Source_Info_File_Exists.
3105 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3107 * exp_ch4.adb: Fix typo.
3109 2010-10-05 Thomas Quinot <quinot@adacore.com>
3111 * lib-writ.adb: Minor reformatting.
3113 2010-10-05 Javier Miranda <miranda@adacore.com>
3115 * sem_ch3.adb (Access_Definition): Remove useless code.
3117 2010-10-05 Emmanuel Briot <briot@adacore.com>
3119 * prj-env.adb, prj-env.ads (Set_Path): New subprogram.
3120 (Deep_Copy): Removed, not used.
3122 2010-10-05 Javier Miranda <miranda@adacore.com>
3124 * sem_ch3.adb (Add_Internal_Interface_Entities): Code reorganization:
3125 move code that searches in the list of primitives of a tagged type for
3126 the entity that will be overridden by user-defined routines.
3127 * sem_disp.adb (Find_Primitive_Covering_Interface): Move here code
3128 previously located in routine Add_Internal_Interface_Entities.
3129 * sem_disp.ads (Find_Primitive_Covering_Interface): Update docs.
3130 * sem_ch6.adb (New_Overloaded_Entity): Add missing check on
3131 availability of attribute Alias.
3133 2010-10-05 Ed Falis <falis@adacore.com>
3135 * s-taprop-vxworks.adb, s-osinte-vxworks.adb, s-osinte-vxworks.ads,
3136 s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.adb, s-vxwext-rtp.ads:
3137 Move definition of intContext to System.OS_Interface.
3138 Add necessary variants in System.VxWorks.Extensions.
3140 2010-10-05 Doug Rupp <rupp@adacore.com>
3142 * s-asthan-vms-alpha.adb: On VMS, a task using
3143 pragma AST_Entry exhibits a memory leak when the task terminates
3144 because the vector allocated for the AST interface is not freed. Fixed
3145 by making the vector a controlled type.
3147 2010-10-05 Emmanuel Briot <briot@adacore.com>
3149 * prj-nmsc.adb (Expand_Subdirectory_Pattern): Check that the prefix in
3150 a "**" pattern properly exists, and report an error otherwise.
3152 2010-10-05 Emmanuel Briot <briot@adacore.com>
3154 * prj-env.ads: Use GNAT.OS_Lib rather than System.OS_Lib.
3156 2010-10-05 Emmanuel Briot <briot@adacore.com>
3158 * prj-nmsc.adb, prj-err.adb (Expand_Subdirectory_Pattern): New
3160 Extract some code from Get_Directories, to share with the handling
3161 of aggregate projects (for the Project_Files attributes)
3163 2010-10-05 Emmanuel Briot <briot@adacore.com>
3165 * gnatcmd.adb, prj-proc.adb, prj-part.adb, prj-ext.adb, prj-ext.ads,
3166 switch-m.adb, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-env.adb,
3167 prj-env.ads, prj-tree.adb, prj-tree.ads (Project_Search_Path): New
3170 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
3172 * exp_ch5.adb (Make_Field_Expr): Revert previous change (removed).
3174 2010-10-05 Emmanuel Briot <briot@adacore.com>
3176 * prj-dect.adb, prj-nmsc.adb, prj-attr.adb, snames.ads-tmpl
3177 (Aggregate projects): added support for parsing aggregate projects.
3178 In particular, check the presence and value of the new attributes
3179 related to aggregate projects, ie Project_Files, Project_Path
3181 (Check_Attribute_Allowed, Check_Package_Allowed,
3182 Rename_Obsolescent_Attributes): new subprogram, extracting code
3183 from existing subprogram to keep their sizes smaller.
3184 (Check_Aggregate_Project, Check_Abstract_Project,
3185 Check_Missing_Sources): new subprograms
3186 (Check): remove comments that duplicated either the name of the
3187 following subprogram call, or the comment on that subprogram.
3188 * prj-part.adb (Check_Extending_All_Imports): New subprogram, extracted
3189 from Parse_Single_Project.
3190 (Check_Aggregate_Imports): new subprogram.
3192 2010-10-05 Vincent Celier <celier@adacore.com>
3194 * make.adb (Check): When compiling with -gnatc, recompile if the ALI
3195 file has not been generated for the current source, for example if it
3196 has been generated for the spec, but we are compiling the body.
3198 2010-10-05 Bob Duff <duff@adacore.com>
3200 * xgnatugn.adb: Remove unused procedure.
3202 2010-10-04 Vincent Celier <celier@adacore.com>
3204 * a-direct.adb (Copy_File): Interpret the Form parameter and call
3205 System.OS_Lib.Copy_File to do the work accordingly. Raise Use_Error if
3206 the Form parameter contains an incorrect value for field preserve= or
3208 * a-direct.ads (Create_Directory, Create_Path): Indicate that the Form
3209 parameter is ignored.
3210 (Copy_File): Indicate the interpretation of the Form parameter.
3212 2010-10-04 Vincent Celier <celier@adacore.com>
3214 * make.adb (Gnatmake): When there are no foreign languages declared and
3215 a main in attribute Main of the main project does not exist or is a
3216 source of another project, fail immediately before attempting
3219 2010-10-04 Javier Miranda <miranda@adacore.com>
3221 * exp_disp.ads (Convert_Tag_To_Interface): New function which must be
3222 used to convert a node referencing a tag to a class-wide interface
3224 * exp_disp.adb (Convert_Tag_To_Interface): New function.
3225 (Expand_Interface_Conversion): Replace invocation of
3226 Unchecked_Conversion by new function Convert_Tag_To_Interface.
3227 (Write_DT): Add support for null primitives.
3228 * exp_ch3.adb (Expand_N_Object_Declaration): For tagged type objects,
3229 cleanup code that handles interface conversions and avoid unchecked
3230 conversion of referenced tag components.
3231 * exp_ch5.adb (Expand_N_Assignment_Statement): Code cleanup. Avoid
3232 unrequired conversions when generating a dispatching call to _assign.
3233 * sprint.adb (Write_Itype): Fix wrong output of not null access itypes.
3235 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3237 * exp_ch4.adb (Expand_N_Op_Not): Handle properly both operands when the
3238 parent is a binary boolean operation and the operand is an unpacked
3240 (Build_Boolean_Array_Proc_Call): If the operands are both negations,
3241 the operands of the rewritten node are the operands of the negations,
3242 not the negations themselves.
3244 2010-10-04 Robert Dewar <dewar@adacore.com>
3246 * sem_ch13.adb (Set_Biased): New procedure, now used throughout, adds
3247 name of entity to biased warning msg.
3248 (Analyze_Enumeration_Representation_Clause): Remove attempt to use
3249 biased rep (wrong and never worked anyway).
3251 2010-10-04 Arnaud Charlet <charlet@adacore.com>
3253 * sem_elab.adb: Minor reformatting.
3255 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3257 * exp_ch4.adb (Expand_N_Null): Handle properly the case of a subtype of
3258 an access_to_protected subprogram type, and convert null value into
3259 corresponding aggregate.
3261 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3263 * gnat_ugn.texi: Clarify first point of 7.1.5 about pragma Inline.
3265 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3267 * make.adb (Scan_Make_Arg): Pass -Oxxx switches to the linker as well.
3268 * gnatlink.adb (Gnatlink): Filter out -Oxxx switches for CLI, RTX and
3271 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3273 * sem_ch4.adb (Analyze_Indexed_Component_Form): Remove redundant test
3274 for N_Operator_Symbol.
3275 (Indicate_Name_And_Type): Likewise.
3276 * sem_ch8.adb (Analyze_Subprogram_Renaming): Likewise.
3277 * sem_res.adb (Resolve): Likewise.
3278 * sem_type.adb (Add_One_Interp): Likewise.
3279 (Disambiguate): Likewise.
3281 2010-10-04 Vincent Celier <celier@adacore.com>
3283 * osint.adb (Read_Library_Info_From_Full): If object timestamp is less
3284 than ALI file timestamp, return null.
3286 2010-10-04 Vincent Celier <celier@adacore.com>
3288 * prj-makr.adb (Finalize): Invoke Pretty_Print with Max_Length of 79.
3289 * prj-pp.adb (Pretty_Print): New parameter Max_Line_Length, that
3290 replaces global constant with the same name. When a line is too long,
3291 indent properly the next continuation line.
3292 * prj-pp.ads (Pretty_Print): New parameter Max_Line_Length with a range
3293 from 50 to 255, defaulted to 255, to indicate the maximum length of
3294 lines in the project file.
3296 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3298 * sem_ch7.adb (Analyze_Package_Body_Helper) <Has_Referencer>: New
3299 Check_Subprogram_Ref function and Check_Subprogram_Refs instantiation
3300 of Traverse_Func on it to look for subprogram references in a body.
3301 Call Check_Subprogram_Refs on the body of inlined subprograms at the
3302 outer level and keep clearing the Is_Public flag of subprograms as long
3303 as it returns OK. Do not look at anything else than subprograms once
3304 an inlined subprogram has been seen.
3306 2010-10-04 Javier Miranda <miranda@adacore.com>
3308 * exp_cg.adb (Expand_N_Assignment_Statement): Restore tag check when
3309 the target object is an interface.
3310 * sem_disp.adb (Propagate_Tag): If the controlling argument is an
3311 interface type then we generate an implicit conversion to force
3312 displacement of the pointer to the object to reference the secondary
3313 dispatch table associated with the interface.
3315 2010-10-04 Robert Dewar <dewar@adacore.com>
3317 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Set
3318 Enumeration_Rep_Expr to point to the literal, not the identifier.
3319 (Analyze_Enumeration_Representation_Clause): Improve error message for
3320 size too small for enum rep value
3321 (Analyze_Enumeration_Representation_Clause): Fix size test to use
3322 proper size (RM_Size, not Esize).
3324 2010-10-04 Robert Dewar <dewar@adacore.com>
3326 * s-taprop-vxworks.adb, sem_res.adb: Minor reformatting.
3328 2010-10-04 Javier Miranda <miranda@adacore.com>
3330 * exp_cg.adb (Write_Call_Info): Code clean up.
3332 2010-10-04 Arnaud Charlet <charlet@adacore.com>
3334 * s-taprop-mingw.adb (Create_Task): Initialize Thread_Id field to 0.
3336 2010-10-04 Robert Dewar <dewar@adacore.com>
3338 * exp_cg.adb: Minor code reorganization
3340 * exp_ch5.adb, prj-nmsc.adb: Minor reformatting.
3342 2010-10-04 Bob Duff <duff@adacore.com>
3344 * sem_res.adb (Resolve_Type_Conversion): If a type conversion is needed
3345 to make a qualified expression into a name (syntax-wise), then do not
3346 consider it redundant.
3348 2010-10-04 Thomas Quinot <quinot@adacore.com>
3350 * sem_warn.ads: Fix typo.
3352 2010-10-04 Javier Miranda <miranda@adacore.com>
3354 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Handle suffix in
3356 (Write_Call_Info): Add missing support for renamed primitives.
3358 2010-10-04 Thomas Quinot <quinot@adacore.com>
3360 * exp_ch5.adb (Make_Field_Expr): New subprogram, to factor duplicated
3361 code between Make_Component_List_Assign and Make_Field_Assign.
3363 2010-10-04 Vincent Celier <celier@adacore.com>
3365 * prj-nmsc.adb (Get_Directories): For non extending projects that
3366 declare that they have no sources, do not create a non existing object
3367 or exec directory if builder switch -p is used.
3369 2010-10-04 Sergey Rybin <rybin@adacore.com>
3371 * gnat_ugn.texi (gnatcheck): Change the description of the report file
3374 2010-10-04 Ed Falis <falis@adacore.com>
3376 * s-taprop-vxworks.adb (Is_Task_Context): Import VxWorks intContext to
3377 determine whether Set_True is called from a task or an ISR.
3378 (Set_True): test for being in a task context before trying to
3379 dereference Defer_Abort or Undefer_Abort.
3381 2010-10-04 Robert Dewar <dewar@adacore.com>
3383 * sem_res.adb, sinput-l.adb: Minor reformatting.
3385 2010-10-04 Hristian Kirtchev <kirtchev@adacore.com>
3387 * exp_ch5.adb (Expand_N_Assignment_Statement): Do not generate a tag
3388 check when the target object is an interface since the expression of
3389 the right hand side must only cover the interface.
3391 2010-10-04 Vincent Celier <celier@adacore.com>
3393 * frontend.adb: Set Lib.Parsing_Main_Extended_Source to True before
3394 loading the main source, so that if it is preprocessed and -gnateG is
3395 used, the preprocessed file is written.
3396 * lib.ads (Analysing_Subunit_Of_Main): New global variable to indicate
3397 if a subunit is from the main unit when it is loaded.
3398 * sem_ch10.adb (Analyze_Proper_Body): Set Lib.Analysing_Subunit_Of_Main
3399 to True before loading a subunit.
3400 * sem_ch12.adb (Copy_Generic_Node): Set Lib.Analysing_Subunit_Of_Main
3401 to True when the main is a generic unit before loading one of its
3403 * sinput-l.adb (Load_File): If -gnateG is used, write the preprocessed
3404 file only for the main unit (spec, body and subunits).
3406 2010-10-04 Vincent Celier <celier@adacore.com>
3408 * sinput-l.adb (Load_File): Do not fail when switch -gnateG is
3409 specified and the processed file cannot be written. Just issue a
3410 warning and continue.
3412 2010-10-04 Thomas Quinot <quinot@adacore.com>
3414 * sem_res.adb: Minor reformatting.
3416 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3418 * sem_ch8.adb (Analyze_Subprogram_Renaming): If the renamed operation
3419 is an overridden inherited operation, the desired operation is the
3420 overriding one, which is the alias of the visible one.
3422 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3424 * sem_ch6.adb (Find_Corresponding_Spec): Check that the wrapper body is
3425 present before deleting from the tree, when an inherited function with
3426 a controlling result that returns a null extension is overridden by a
3427 later declaration or body.
3429 2010-10-04 Gary Dismukes <dismukes@adacore.com>
3431 * checks.adb: Update comment.
3433 2010-09-30 Joseph Myers <joseph@codesourcery.com>
3435 * gcc-interface/misc.c (optimize, optimize_size): Undefine as macros
3436 and define as variables.
3437 (gnat_post_options): Set optimize and optimize_size variables.
3439 2010-09-29 Joel Sherrill <joel.sherrill@oarcorp.com>
3441 * g-socket.adb: Move pragma to disable warnings in case multiple errnos
3442 are not defined by target.
3444 2010-09-29 Eric Botcazou <ebotcazou@adacore.com>
3446 * gcc-interface/utils.c (handle_leaf_attribute): Fix long line.
3448 2010-09-28 Richard Henderson <rth@redhat.com>
3450 * gcc-interface/misc.c (gnat_eh_personality): Use
3451 targetm.except_unwind_info.
3453 2010-09-28 Jan Hubicka <jh@suse.cz>
3455 * gcc-interface/utils.c (handle_leaf_attribute): New function.
3456 (gnat_internal_attribute_tables): Add leaf.
3458 2010-09-22 Joseph Myers <joseph@codesourcery.com>
3460 * gcc-interface/lang.opt (-all-warnings, -include-barrier,
3461 -include-directory, -include-directory=, -no-standard-includes,
3462 -no-standard-libraries): New.
3464 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
3466 * gcc-interface/decl.c (gnat_to_gnu_entity): Replace calls to
3467 build_array_type with calls to build_nonshared_array_type.
3468 (substitute_in_type): Likewise.
3469 * gcc-interface/misc.c (LANG_HOOKS_HASH_TYPES): Delete.
3470 (LANG_HOOKS_TYPE_HASH_EQ): Define.
3471 (gnat_post_options): Add 'static' keyword.
3472 (gnat_type_hash_eq): New static function.
3473 * gcc-interface/utils.c (fntype_same_flags_p): New function.
3474 (create_subprog_type): Call it.
3475 (create_index_type): Call build_nonshared_range_type and tidy up.
3476 (create_range_type): Likewise.
3477 * gcc-interface/gigi.h (fntype_same_flags_p): Declare.
3479 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3481 * gcc-interface/trans.c (gnat_pushdecl): Do not do anything special
3483 (end_subprog_body): If the body is a BIND_EXPR, make its associated
3484 block the top-level one.
3485 (build_function_stub): Build a statement group for the whole function.
3486 * gcc-interface/utils.c (Subprogram_Body_to_gnu): If copy-in/copy-out
3487 is used, create the enclosing block early and process first the OUT
3490 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3492 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>: Do
3493 not generate debug info for individual enumerators.
3495 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3497 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Use record
3498 type instead of enumeral type as the dummy type built for the template
3499 type of fat pointers.
3501 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3503 * gcc-interface/gigi.h (get_elaboration_procedure): Declare.
3504 (gnat_zaplevel): Likewise.
3505 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force global
3506 binding level for an external constant.
3507 <E_Constant>: Force the local context and create a fake scope before
3508 translating the defining expression of an external constant.
3509 <object>: Treat external constants at the global level explicitly for
3510 renaming declarations.
3511 (elaborate_expression_1): Force the variable to be static if the
3512 expression is global.
3513 * gcc-interface/trans.c (get_elaboration_procedure): New function.
3514 (call_to_gnu): Use it.
3515 (gnat_to_gnu): Likewise.
3516 <N_Object_Declaration>: Do not test Is_Public to force the creation of
3517 an initialization variable.
3518 (add_decl_expr): Discard the statement if the declaration is external.
3519 * gcc-interface/utils.c (gnat_pushdecl): Do not put the declaration in
3520 the current block if it is external.
3521 (create_var_decl_1): Do not test Is_Public to set TREE_STATIC.
3522 (gnat_zaplevel): New global function.
3524 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3526 * gcc-interface/decl.c (gnat_to_gnu_entity): Explicitly test _LEVEL
3527 variables against zero in all cases.
3528 (rest_of_type_decl_compilation): Likewise.
3529 * gcc-interface/trans.c (gigi): Pass properly typed constants to
3531 (call_to_gnu): Fix formatting.
3532 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
3533 (Exception_Handler_to_gnu_zcx): Likewise.
3534 (gnat_to_gnu) <N_Object_Declaration>: Short-circuit handling of
3536 expressions in presence of a freeze node.
3538 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3540 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Look into
3541 expressions for external constants that are aggregates.
3542 * gcc-interface/utils2.c (build_simple_component_ref): If the field
3543 is an inherited component in an extension, look through the extension.
3545 2010-09-10 Vincent Celier <celier@adacore.com>
3547 * projects.texi: Add documentation for package extensions
3548 Add some documentation for attributes Leading_Library_Options and
3549 Linker'Leading_Switches.
3551 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3553 * exp_util.adb (Expand_Subtype_From_Expression): When expansion is
3554 disabled, compute subtype for all string types.
3556 2010-09-10 Robert Dewar <dewar@adacore.com>
3558 * gnat_ugn.texi: Add documentation for -gnatw.s/S
3559 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
3560 Component_Size): Implement warning on overriden size clause.
3561 (Analyze_Record_Representation_Clause): Implement warning on overriden
3563 * sem_warn.ads, sem_warn.adb (Warn_On_Overridden_Size): New flag
3565 * ug_words: Add entries for -gnatw.s/S.
3566 * vms_data.ads, usage.adb: Add line for -gnatw.s/-gnatw.S.
3567 * gcc-interface/Make-lang.in: Update dependencies.
3569 2010-09-10 Vincent Celier <celier@adacore.com>
3571 * prj-dect.adb (Parse_Package_Declaration): Allow a package to extend
3572 a package with the same name from an imported or extended project.
3573 * prj-proc.adb (Process_Declarative_Items): Process package extensions
3575 2010-09-10 Bob Duff <duff@adacore.com>
3577 * exp_ch6.adb (Expand_Call): Do not perform a null_exclusion check on
3580 2010-09-10 Robert Dewar <dewar@adacore.com>
3582 * sem.adb: Minor reformatting.
3584 2010-09-10 Bob Duff <duff@adacore.com>
3586 * s-os_lib.ads, g-expect.ads: Add comments.
3588 2010-09-10 Robert Dewar <dewar@adacore.com>
3590 * exp_ch5.adb: Minor reformatting.
3592 2010-09-10 Thomas Quinot <quinot@adacore.com>
3594 * scos.ads: Add comments.
3596 2010-09-10 Vincent Celier <celier@adacore.com>
3598 * gnatcmd.adb (Get_Closure): Remove useless invocation of Close.
3600 2010-09-10 Hristian Kirtchev <kirtchev@adacore.com>
3602 * exp_ch7.adb, exp_ch6.adb (Expand_Call): Establish a transient scope
3603 for a controlled build-in-place function call which appears in an
3604 anonymous context. The transient scope ensures that the intermediate
3605 function result is cleaned up after the master is left.
3606 (Make_Build_In_Place_Call_In_Anonymous_Context): Remove the creation
3607 of the transient scope. This is now done in Exand_Call which covers
3608 additional cases other than secondary stack release.
3610 2010-09-10 Arnaud Charlet <charlet@adacore.com>
3612 * sem.adb (Do_Unit_And_Dependents): Add guard.
3614 2010-09-10 Robert Dewar <dewar@adacore.com>
3616 * exp_ch5.adb: Update comments.
3617 * exp_dist.adb: Minor reformatting.
3619 2010-09-10 Robert Dewar <dewar@adacore.com>
3621 * sem_ch13.adb (Check_Record_Representation_Clause): Implement record
3623 * sem_warn.ads, sem_warn.adb (Warn_On_Record_Holes): New warning flag.
3624 * usage.adb: Add lines for -gnatw.h/H
3625 * gnat_ugn.texi: Add documentation for J519-010
3626 Warn on record holes/gaps
3627 * ug_words: Add entries for -gnatw.h/-gnatw.H
3628 * vms_data.ads: Add entries for [NO]AVOIDGAPS
3630 2010-09-10 Gary Dismukes <dismukes@adacore.com>
3632 * sem_ch6.adb: Update comment.
3634 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3636 * sem_ch3.adb (Build_Derived_Private_Type): Mark generated declaration
3637 of full view analyzed after analyzing the corresponding record
3638 declaration, to prevent spurious name conflicts with original
3641 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
3643 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): In the VM case,
3644 just issue a warning, but continue with the normal processing.
3646 2010-09-10 Robert Dewar <dewar@adacore.com>
3648 * exp_attr.adb, prj-nmsc.adb, sem_ch4.adb, sem_res.adb: Minor
3651 2010-09-10 Thomas Quinot <quinot@adacore.com>
3653 * exp_dist.adb (Build_From_Any_Call, Build_To_Any_Call,
3654 Build_TypeCode_Call): For a subtype inserted for the expansion of a
3655 generic actual type, go to the underlying type of the original actual
3658 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3660 * exp_ch5.adb (Expand_Assign_Array_Loop): In CodePeer mode, place a
3661 guard around the increment statement, to prevent an off-by-one-value
3662 on the last iteration.
3664 2010-09-10 Vincent Celier <celier@adacore.com>
3666 * sem_aggr.adb, exp_prag.adb, sem_ch3.adb, exp_attr.adb,
3667 sem_res.adb, sem_attr.adb, sem_elab.adb, sem_ch4.adb, exp_disp.adb,
3668 exp_aggr.adb, exp_dist.adb: Change all mentions of "at run-time" to
3669 "at run time" in comments and error/warning messages.
3671 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3673 * exp_cg.adb: Handle properly bodies without specs.
3675 2010-09-10 Emmanuel Briot <briot@adacore.com>
3677 * prj-nmsc.adb (Find_Source_Dirs): When a source directory is not
3678 present, and the user requested to either ignore this or display a
3679 warning (as opposed to an error), we still need to register the
3682 2010-09-10 Robert Dewar <dewar@adacore.com>
3684 * errout.adb: Remove tests of Parsing_Main_Subunit, since this test is
3685 now done in In_Extended_Main_Source_Unit.
3686 * errout.ads (Compiler_State[_Type]): Moved from Errout to Lib
3687 (Parsing_Main_Subunit): Moved from Errout to Lib and renamed
3688 as Parsing_Main_Extended_Source.
3689 * frontend.adb: Set Parsing_Main_Extended_Source True for parsing main
3691 * lib-load.adb (Load_Unit): Add PMES parameter
3692 Set PMES appropriately in all calls to Load_Unit
3693 * lib-load.ads (Load_Unit): Add PMES parameter
3694 * lib.adb (In_Extended_Main_Source_Unit): When called with
3695 Compiler_State set to Parsing, test new flag
3696 Compiling_Main_Extended_Source.
3697 * lib.ads (Compiler_State[_Type]): Moved from Errout to Lib
3698 (Parsing_Main_Subunit): Moved from Errout to Lib and renamed
3699 as Parsing_Main_Extended_Source
3700 * par-load.adb (Load): Set PMES properly in call to Load_Unit
3702 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3704 * exp_cg.adb: Use proper entity to handle overloads.
3705 * sem_res.adb (Check_Parameterless_Call): An operator node without
3706 actuals cannot be a call, and must be treated as a string.
3708 2010-09-10 Robert Dewar <dewar@adacore.com>
3710 * frontend.adb: Minor reformatting.
3712 2010-09-10 Robert Dewar <dewar@adacore.com>
3714 * par-ch4.adb (P_Conditional_Expression): Use P_Condition for condition
3715 * par-ch5.adb (P_Condition): Move from body to spec
3716 * par.adb (Ch5.P_Condition): Move from body to spec
3718 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3720 * exp_cg.adb (Write_Call_Info): If a type that has been registered in
3721 the call table is private, use its full view to generate information
3724 2010-09-10 Jose Ruiz <ruiz@adacore.com>
3726 * exp_cg.adb (Is_Predefined_Dispatching_Operation): When trying the
3727 pattern matching to detect predefined primitive operations take into
3728 account that there can be an extra suffix related to body-nested
3731 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3733 * s-pooglo.ads: Add overriding indicators.
3735 2010-09-10 Vincent Celier <celier@adacore.com>
3737 * vms_data.ads: Add new GNAT BIND qualifiers /32_MALLOC (for -H32) and
3738 /64_MALLOC (for -H64).
3740 2010-09-10 Robert Dewar <dewar@adacore.com>
3742 * errout.adb (Error_Msg_Internal): Test Parsing_Main_Subunit flag
3743 (Error_Msg_NW): Test Parsing_Main_Subunit flag
3744 * errout.ads (Parsing_Main_Subunit): New flag
3745 * lib-load.adb (Load_Unit): Set Parsing_Main_Subunit flag
3746 * par-ch6.adb: Minor style fix (remove redandant parentheses)
3747 * par-ch9.adb: Minor style fix (remove redundant parens)
3748 * par-load.adb: (Load): Deal with setting Parsing_Main_Subunit
3750 2010-09-10 Vincent Celier <celier@adacore.com>
3752 * make.adb (Create_Binder_Mapping_File): Remove procedure. Replaced by
3753 function of the same name in Makeutl.
3754 (Gnatmake): Call function Create_Binder_Mapping_File in Makeutl, instead
3755 of removed procedure when creating a binder mapping file.
3756 * makeutl.adb (Create_Binder_Mapping_File): New function. Was a
3758 * makeutl.ads (Create_Binder_Mapping_File): New function
3760 2010-09-10 Jose Ruiz <ruiz@adacore.com>
3762 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Add the "__" scope
3763 separator when trying the pattern matching to detect predefined
3764 primitive operations.
3766 2010-09-10 Robert Dewar <dewar@adacore.com>
3768 * bindgen.adb, atree.adb: Minor reformatting.
3770 2010-09-10 Ben Brosgol <brosgol@adacore.com>
3772 * ug_words, gnat_ugn.texi: Revised "Transitioning to 64-Bit GNAT for
3775 2010-09-10 Doug Rupp <rupp@adacore.com>
3777 * bindgen.adb: Minor comment fix for -H switch.
3779 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3781 * exp_cg.adb (Register_CG_Node): Determine enclosing subprogram or
3782 library unit now, by traversing tree before context is expanded.
3783 (Write_Call_Info): Use enclosing unit name directly.
3784 * exp_ch9.adb (Expand_N_Accept_Statement): Attach generated block to
3785 tree earlier, to ensure that subsequent declarations are analyzed in a
3786 connected structure.
3787 * exp_intr.adb (Expand_Unc_Deallocation): Ditto for generated statement
3790 2010-09-10 Robert Dewar <dewar@adacore.com>
3792 * symbols-processing-vms-alpha.adb: Minor reformatting.
3794 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
3796 * bindgen.adb (Gen_Adainit_Ada): In .NET, don't call
3797 __gnat_install_handler in case the binder is called with -n.
3799 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3801 * exp_ch6.adb (Make_Build_In_Place_In_Object_Declaration): Use proper
3802 sloc for renaming declaration and set Comes_From_Source properly to
3803 ensure that references are properly generated for an object declaration
3804 that is built in place.
3806 2010-09-10 Tristan Gingold <gingold@adacore.com>
3808 * symbols-processing-vms-alpha.adb: Allow gnatsym to work as a cross
3810 * gcc-interface/Make-lang.in: Install gnatsym when cross compiling.
3811 * gcc-interface/Makefile.in: gnat.hlp is now generated by
3814 2010-09-10 Bob Duff <duff@adacore.com>
3816 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): For things like ""X(J)
3817 := ...;", remove side effects from the right-hand side, because they
3818 might affect the value of the left-hand side, but the left-hand side is
3819 first READ (so we can do shifting and masking) and then written back,
3820 which would cause the side effects to be incorrectly overwritten.
3822 2010-09-10 Robert Dewar <dewar@adacore.com>
3824 * sem_ch4.adb: Minor reformatting.
3825 * exp_ch6.adb: Add comment on testing limited on full type
3826 * gnat_rm.texi: Add documentation on Pure_Function.
3828 2010-09-10 Vincent Celier <celier@adacore.com>
3830 * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
3831 as a source of another project and of another language.
3833 2010-09-10 Robert Dewar <dewar@adacore.com>
3835 * exp_ch3.adb (Expand_N_Object_Declaration): Defend against previous
3837 * freeze.adb (Check_Unsigned_Type): Ditto.
3838 * sem_aggr.adb (Resolve_Aggr_Expr): Ditto.
3839 * sem_ch3.adb (Convert_Scalar_Bounds): Ditto.
3840 (Set_Scalar_Range_For_Subtype): Ditto.
3841 * sem_eval.adb (Subtypes_Statically_Match): Ditto.
3843 2010-09-10 Robert Dewar <dewar@adacore.com>
3845 * repinfo.adb (List_Type_Info): List Small and Range for fixed-point
3847 * sprint.adb (Write_Ureal_With_Col_Check_Sloc): Use square brackets
3848 rather than parens for fixed constants.
3849 * sprint.ads: Use square brackets rather than parens for fixed constants
3850 * urealp.adb (UR_Write): Use square brackets rather than parens
3851 (UR_Write): Add Brackets argument
3852 (UR_Write): Add many more special cases to output literals
3853 * urealp.ads (UR_Write): Use square brackets rather than parens
3854 (UR_Write): Add Brackets argument
3856 2010-09-10 Robert Dewar <dewar@adacore.com>
3858 * sem_ch4.adb: Minor reformatting.
3860 2010-09-10 Richard Guenther <rguenther@suse.de>
3862 * gcc-interface/utils.c (create_index_type): Use build_range_type.
3864 2010-09-10 Arnaud Charlet <charlet@adacore.com>
3866 * vms_cmds.ads: New.
3868 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
3870 * exp_dbug.ads: Mention enhanced encoding for array types.
3872 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
3874 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Size clause are
3875 unsupported in VM targets. Display a warning in this case.
3877 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3879 * sprint.adb (Sprint_Node_Actual, case N_Derived_Type_Definition): Do
3880 not reset Sloc when printing keyword "new".
3882 2010-09-10 Vincent Celier <celier@adacore.com>
3884 * gnatcmd.adb (GNATCmd): Put the command line in environment variable
3885 GNAT_DRIVER_COMMAND_LINE.
3887 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3889 * sem.adb (Do_Unit_And_Dependents): if Withed_Body is set on a context
3890 clause, process the body at once.
3892 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3894 * sem_res.adb (Resolve_Type_Conversion): Do not warn on a redundant
3895 conversion is the expression is a qualified expression used to
3896 disambiguate a function call.
3898 2010-09-10 Vincent Celier <celier@adacore.com>
3900 * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
3901 as a source of another project and of another language.
3903 2010-09-10 Robert Dewar <dewar@adacore.com>
3905 * prj-util.adb: Minor reformatting.
3907 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
3909 * exp_disp.adb: Minor reformatting.
3911 2010-09-10 Arnaud Charlet <charlet@adacore.com>
3913 * sem_prag.adb (Analyze_Pragma): Ignore Inline_Always pragma in
3916 2010-09-10 Thomas Quinot <quinot@adacore.com>
3918 * sem_res.adb: Minor reformatting.
3919 * exp_ch9.adb, rtsfind.ads, exp_ch4.adb, exp_ch3.adb: Do not hardcode
3920 magic constants for task master levels (instead, reference
3921 named numbers from System.Tasking).
3923 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
3925 * gnatvsn.ads (Ver_Prefix): New constant string.
3926 * bindgen.adb (Gen_Output_File_Ada): Use it in lieu of hardcoded value.
3927 (Gen_Output_File_C): Likewise.
3928 * g-comver.adb (Ver_Prefix): Add cross-reference to Gnatvsn.Ver_Prefix
3931 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3933 * sem.adb (Walk_Library_Items): Do not traverse children of the main
3934 unit, to prevent spurious circularities in the walk order.
3935 (Depends_On_Main): Use elsewhere to prevent circularities when the body
3936 of an ancestor of the main unit depends on a child of the main unit.
3938 2010-09-10 Robert Dewar <dewar@adacore.com>
3940 * gnatlink.adb, prj-ext.adb, prj-util.adb, s-tporft.adb,
3941 sem_ch3.adb: Minor reformatting.
3943 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3945 * sem_ch3.adb (Derive_Subprograms): An interface primitive operation
3946 that is a renaming must be derived like any other primitive operation,
3947 the renamed operation is not relevant to the derivation.
3949 2010-09-10 Robert Dewar <dewar@adacore.com>
3951 * sem_aux.ads: Add comment for Is_Inherently_Limited_Type.
3952 * checks.adb: Minor reformatting.
3954 2010-09-10 Robert Dewar <dewar@adacore.com>
3956 * gnat_ugn.texi: Add section on intent of style checking options.
3958 2010-09-10 Arnaud Charlet <charlet@adacore.com>
3960 * xref_lib.adb (Get_Full_Type): Fix handling of 'a' char.
3962 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3964 * sem_ch3.adb: Improve error message on derivation from class-wide type
3966 2010-09-10 Steve Baird <baird@adacore.com>
3968 * gnat1drv.adb (Adjust_Global_Switches): Enable Expression_With_Actions
3969 generation when Generate_SCIL is True.
3971 2010-09-10 Geert Bosch <bosch@adacore.com>
3973 * gnatlink.adb (Check_ Existing_Executable): New procedure for checking
3974 validity of executable name and removing any existing executable
3975 (Gnatlink): Call Check_Existing_Executable.
3977 2010-09-10 Arnaud Charlet <charlet@adacore.com>
3979 * s-tporft.adb, s-taskin.ads (Register_Foreign_Thread): Move
3980 initialization of Task_Alternate_Stack here, cleaner since in case of
3981 ranvescar, Restricted_Ada_Task_Control_Block is not initialized
3984 2010-09-10 Thomas Quinot <quinot@adacore.com>
3986 * s-fileio.adb, a-dirval.adb: Minor reformatting.
3988 2010-09-10 Emmanuel Briot <briot@adacore.com>
3990 * prj-util.adb (Executable_Of): Fix CE when the project does not
3991 contain a Builder package.
3993 2010-09-10 Vincent Celier <celier@adacore.com>
3995 * prj-ext.adb (Initialize_Project_Path): Add <prefix>/lib/gpr/<target>
3996 to the project path, if Prefix and Target_Name are defined.
3997 * prj-tree.ads (Project_Node_Tree_Data): New component Target_Name
3999 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4001 * checks.adb (Ensure_Valid): If the expression is a boolean expression
4002 or short-circuit operation, do no emit a validity check: only the
4003 elementary operands of the expression need checking.
4005 2010-09-10 Ben Brosgol <brosgol@adacore.com>
4007 * gnat_rm.texi: Document Short_Descriptors.
4009 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4011 * s-taprop-linux.adb, s-taskin.ads (Task_Alternate_Stack): Default
4012 initialize to Null_Address.
4013 (Enter_Task): Do not set up an alternate stack for foreign threads.
4015 2010-09-10 Robert Dewar <dewar@adacore.com>
4017 * opt.adb (Short_Descriptors): New flag
4018 (Short_Descriptors_Config): New flag
4019 * opt.ads (Short_Descriptors): New flag
4020 (Short_Descriptors_Config): New flag
4021 * par-prag.adb: Add dummy entry for Short_Descriptors pragma
4022 * sem_prag.adb (Set_Mechanism_Value): Deal with Short_Descriptors.
4023 (Analyze_Pragma): Implement Short_Descriptors pragma
4024 * snames.ads-tmpl: Add entry for Short_Descriptors pragma
4026 2010-09-10 Emmanuel Briot <briot@adacore.com>
4028 * prj-util.adb, prj-util.ads (Executable_Of): Take into account the
4029 project's Executable_Suffix.
4031 2010-09-10 Robert Dewar <dewar@adacore.com>
4033 * g-pehage.ads: Minor reformatting
4035 * gnat_ugn.texi: Clarifying comment on -gnatyc
4036 * exp_ch6.adb (Expand_N_Subprogram_Body): Reset Is_Pure if limited
4039 2010-09-10 Tristan Gingold <gingold@adacore.com>
4041 * Make-generated.in (gnat.hlp): New rule.
4043 2010-09-10 Emmanuel Briot <briot@adacore.com>
4045 * prj-util.adb, prj-util.ads (Executable_Of): New parameter
4048 2010-09-10 Robert Dewar <dewar@adacore.com>
4050 * einfo.adb: Minor code cleanup: Add assertion to
4051 Set_Corresponding_Protected_Entry.
4053 2010-09-10 Bob Duff <duff@adacore.com>
4055 * g-pehage.ads, g-pehage.adb (Produce): Add a new flag to allow sending
4056 the output to standard output.
4058 2010-09-09 Vincent Celier <celier@adacore.com>
4060 * gnat_ugn.texi: Add documentation for new gnatmake switch
4062 * make.adb (Map_File): New global variable to store the value of switch
4064 (Gnatmake): Add switch -M to gnatlink if switch --create-map-file has
4066 (Scan_Make_Arg): Recognize switch --create-map-file
4067 * makeutl.ads (Create_Map_File_Switch): New constant string for new
4068 gnatmake and gprbuild switch --create-map-file.
4070 2010-09-09 Robert Dewar <dewar@adacore.com>
4072 * sinput-p.ads: Minor comment update.
4074 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4076 * s-tpobop.adb, s-taenca.adb (Wait_For_Completion_With_Timeout): Reset
4077 Entry_Call.State if needed so that the call is marked as cancelled by
4078 Check_Pending_Actions_For_Entry_Call.
4079 (Timed_Protected_Entry_Call): Adjust calls to Defer/Under_Abort, since
4080 this procedure may be called from a controlled operation
4081 (Initialize/Finalize).
4083 2010-09-09 Vadim Godunko <godunko@adacore.com>
4085 * impunit.adb: Correct spelling of package's name in the comment.
4087 2010-09-09 Robert Dewar <dewar@adacore.com>
4089 * gnatcmd.adb, gnatlink.adb, sem_ch12.adb, sem_eval.adb, sinput-p.adb:
4092 2010-09-09 Robert Dewar <dewar@adacore.com>
4094 * impunit.adb: Add entry for a-izteio.
4095 * checks.adb: Add comment.
4096 * debug.adb, exp_disp.adb: Minor reformatting.
4097 * exp_dbug.ads: Minor reformatting throughout (pack block comments).
4099 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4101 * sem_eval.adb (Is_Same_Value): Two occurrences of the same
4102 discriminant cannot be assumed to be the same value because they may
4103 refer to bounds of a component of two different instances of a
4106 2010-09-09 Gary Dismukes <dismukes@adacore.com>
4108 * checks.adb (Apply_Arithmetic_Overflow_Check): When converting the
4109 operands of an operator to the type of an enclosing conversion, rewrite
4110 the operator so the conversion can't be flagged as redundant.
4111 Remove useless assignments to Typ and Rtyp.
4113 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
4115 * gnat_ugn.texi: Fix another long line.
4117 2010-09-09 Bob Duff <duff@adacore.com>
4119 * sem_warn.adb (Output_Reference_Error): Don't warn for renames read
4122 2010-09-09 Matthew Heaney <heaney@adacore.com>
4124 * a-convec.adb, a-coinve.adb (Clear, Delete, Delete_Last, Finalize,
4125 Merge, Insert, Insert_Space, Move, Reserve_Capacity, Generic_Sorting,
4126 Replace_Element, Reverse_Elements, Swap): Change exception message to
4127 correctly indicate kind of tampering (cursor or element).
4128 * a-cdlili.adb, a-cidlli.adb (Clear, Delete, Delete_First, Delete_Last,
4129 Merge, Generic_Sorting, Insert, Move, Reverse_Elements, Splice,
4130 Swap_Links, Replace_Element, Swap): Ditto.
4131 * a-coorse.adb, a-ciorse.adb (Include, Replace, Replace_Element): Ditto
4132 * a-coorma.adb, a-ciorma.adb (Include, Replace, Replace_Element): Ditto
4133 * a-coormu.adb, a-ciormu.adb (Replace_Element): Ditto
4134 * a-chtgke.adb (Delete_Key_Sans_Free, Generic_Conditional_Insert,
4135 Generic_Replace_Element): Ditto
4136 * a-chtgop.adb (Clear, Move, Reserve_Capacity): Ditto
4137 * a-cohama.adb, a-cihama.adb (Delete, Include, Replace,
4138 Replace_Element): Ditto.
4139 * a-cohase.adb, a-cihase.adb (Delete, Difference, Intersection,
4140 Symmetric_Difference, Union, Include, Replace): Ditto
4142 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4144 * sprint.adb (Write_Id): If the parent node is an expanded name, check
4145 that its entity_or_associated_node is an entity before writing it out.
4146 * exp_disp.adb (Make_Tags); if a type is declared in C++ and has no
4147 constructors, there is no need for a dispatch table pointer because the
4148 table is fully inherited from the C++ code.
4150 2010-09-09 Thomas Quinot <quinot@adacore.com>
4152 * projects.texi: Fix wrong identifiers on package end lines in project
4154 * exp_ch6.adb: Minor reformatting.
4156 2010-09-09 Tristan Gingold <gingold@adacore.com>
4158 * gnatcmd.adb, vms_conv.ads: Extract Command_Type.
4160 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
4162 * gnat_ugn.texi: Fix description of -O3 optimization level.
4164 2010-09-09 Yannick Moy <moy@adacore.com>
4166 * a-cihama.adb, a-cohama.adb: Fix comments.
4168 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4170 * i-cexten.ads: Add comments.
4171 (Signed_128): New type, used by some C bindings.
4172 * debug.adb: Update comment.
4174 2010-09-09 Sergey Rybin <rybin@adacore.com>
4176 * gnat_ugn.texi: For ASIS tools (gnatpp, gnatcheck, gnatelim,
4177 gnatmetric and gnatstub) add a note that '-gnat05' should be used if
4178 the tool should process Ada 2005 sources.
4180 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4182 * sem_ch12.adb (Remove_Parent): If the scope containing the child
4183 instance is a block, examine the enclosing scope to determine if it is
4186 2010-09-09 Doug Rupp <rupp@adacore.com>
4188 * sem_prag.adb (pragma Ident): Pass --identification= vice
4190 * gnatlink.adb (Linker_Options): Look for --identification= vice
4193 2010-09-09 Gary Dismukes <dismukes@adacore.com>
4195 * exp_attr.adb (Expand_N_Attribute_Reference, case Attribute_Old): When
4196 inserting and analyzing the object declaration for the temporary object
4197 created to hold a 'Old value, push the scope for the subprogram where
4198 the object is inserted, so that its Scope (and that of related objects)
4199 will be set properly.
4201 2010-09-09 Vincent Celier <celier@adacore.com>
4203 * prj.adb (Get_Object_Directory): Return object directory display name
4204 * adaint.c (__gnat_get_file_names_case_sensitive): When environment
4205 variable GNAT_FILE_NAME_CASE_SENSITIVE has a value of "0" or "1",
4206 return this value, otherwise return the default for the platform.
4208 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4210 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
4211 dependencies. Remove handling of gnatlbr.
4212 Do not remove s-stratt-xdr for the run-time when installing.
4214 2010-09-09 Robert Dewar <dewar@adacore.com>
4216 * sem_attr.adb: Minor reformatting.
4218 2010-09-09 Thomas Quinot <quinot@adacore.com>
4220 * socket.c (__gnat_socket_ioctl): On Darwin, the req parameter is an
4221 unsigned long, not an int.
4223 2010-09-09 Vincent Celier <celier@adacore.com>
4225 * make.adb, mlib-prj.adb, prj.adb, prj-nmsc.adb, mlib-tgt.adb,
4226 prj-conf.adb, prj-env.adb: Use Display_Name instead of Name whenever
4227 we are not checking for equality of path or file names.
4229 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4231 * exp_util.adb (Remove_Side_Effects): If the expression is a packed
4232 array reference, reset the Analyzed flag so that it is properly
4233 expanded when the resulting object declaration is analyzed.
4235 2010-09-09 Vincent Celier <celier@adacore.com>
4237 * sinput-p.adb (Source_File_Is_Subunit): Return False if X is
4240 2010-09-09 Ramon Fernandez <fernandez@adacore.com>
4242 * sysdep.c: The wrSbc8548 BSP in MILS doesn't know anything about the
4243 VX_SPE_TASK option, so disable it.
4245 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4247 * sem.adb (Walk_Library_Items): Traverse context of subunits of the
4249 (Is_Subunit_Of_Main): Handle null nodes properly.
4251 2010-09-09 Robert Dewar <dewar@adacore.com>
4253 * par-ch2.adb: Update comments.
4255 2010-09-09 Ben Brosgol <brosgol@adacore.com>
4257 * gnat_rm.texi: Minor wordsmithing of section on pragma Ordered.
4259 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4261 * par-ch2.adb (Scan_Pragma_Argument_Association): In CodePeer mode,
4262 do not generate an error for compatibility with legacy code.
4263 ignored when generating SCIL.
4264 * sem_attr.adb (Resolve_Attribute): Ignore AI-229 in CodePeer mode.
4266 2010-09-09 Thomas Quinot <quinot@adacore.com>
4268 * s-strxdr.adb, gnat_rm.texi, s-stratt-xdr.adb, s-stratt.ads: Rename
4269 s-strxdr.adb to s-stratt-xdr.adb
4271 2010-09-09 Robert Dewar <dewar@adacore.com>
4273 * ali-util.adb (Obsolescent_Check): Removed.
4274 * gprep.adb (Obsolescent_Check): Removed.
4275 Remove Obsolescent_Check parameter in Scng instantiation
4276 * prj-err.adb (Obsolescent_Check): Removed.
4277 * prj-err.ads (Obsolescent_Check): Removed.
4278 Remove Obsolescent_Check parameter in Scng instantiation
4279 * scans.ads (Based_Literal_Uses_Colon): New flag
4280 * scn.adb (Obsolscent_Check_Flag): Removed
4281 (Obsolscent_Check): Removed
4282 (Set_Obsolescent_Check): Removed
4283 (Post_Scan): Add handling for obsolescent features
4284 * scn.ads (Obsolscent_Check): Removed
4285 (Set_Obsolescent_Check): Removed
4286 (Post_Scan): Can no longer be inlined
4287 Remove Obsolescent_Check from instantiation of Scng
4288 * scng.adb (Nlit): Set Based_Literal_Uses_Colon
4289 (Nlit): Remove handling of obsolescent check
4290 (Scan, case '%'): Remove handling of obsolescent check
4291 (Scan, case '|'): Call Post_Scan
4292 (Scan, case '!'): Remove handling of obsolescent check, call Post_Scan
4293 * scng.ads Remove Obsolescent_Check argument from Scng generic
4294 (Post_Scan): Now called for Tok_Vertical_Bar
4295 * sinput-l.adb: Remove calls to Set_Obsolescent_Check
4297 2010-09-09 Doug Rupp <rupp@adacore.com>
4299 * gnatlbr.adb: Removed.
4300 * gnat_rm.texi, ug_words, gnat_ugn.texi: Remove mention of gnatlbr.
4302 2010-09-09 Robert Dewar <dewar@adacore.com>
4304 * sem_res.adb (Resolve_Type_Conversion): Catch more cases of redundant
4307 2010-09-09 Vincent Celier <celier@adacore.com>
4309 * gnatlbr.adb: Remove redundant conversions.
4311 2010-09-09 Vincent Celier <celier@adacore.com>
4313 * prj-proc.adb: Minor comment spelling error fix.
4314 * osint.ads (Env_Vars_Case_Sensitive): Use function
4315 Get_Env_Vars_Case_Sensitive, not Get_File_Names_Case_Sensitive to
4318 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4320 * sem_res.adb (Resolve_Equality_Op): Implement Ada2012 rule for
4321 resolution of conditional expressions whose dependent expressions are
4322 anonymous access types.
4324 2010-09-09 Robert Dewar <dewar@adacore.com>
4326 * a-ststio.adb: Minor code reorganization.
4327 * s-direio.adb, prj.adb, prj-nmsc.adb, sem_type.adb: Remove redundant
4329 * types.ads: Minor reformatting.
4330 * binde.adb, vms_conv.adb, gnatls.adb, s-strxdr.adb, uintp.adb: Remove
4331 redundant conversions.
4332 * output.adb: Minor reformatting.
4333 * sem_ch8.adb (Find_Type): Test for redundant base applies to user
4335 * opt.ads: Add pragma Ordered for Verbosity_Level.
4336 * prj.ads: Add pragma Ordered for type Verbosity.
4338 2010-09-09 Vincent Celier <celier@adacore.com>
4340 * osint.adb (Canonical_Case_File_Name): Use procedure To_Lower in
4342 (Canonical_Case_Env_Var_Name): Ditto
4344 2010-09-09 Bob Duff <duff@adacore.com>
4346 * g-pehage.adb (Allocate): Initialize the allocated elements of IT.
4348 2010-09-09 Robert Dewar <dewar@adacore.com>
4350 * cstand.adb: Mark Boolean and Character types as Ordered
4351 * einfo.adb (Has_Pragma_Ordered): New flag
4352 * einfo.ads (Has_Pragma_Ordered): New flag
4353 * g-calend.ads: Mark Day_Name as Ordered
4354 * opt.ads: Mark Ada_Version_Type as Ordered
4355 (Warn_On_Unordered_Enumeration_Type): New flag
4356 * par-prag.adb: Add procdessing for pragma Ordered
4357 * s-ficobl.ads (Read_File_Mode): New subtype
4358 * s-fileio.adb: Use Read_File_Mode instead of explicit ranges
4359 * s-taskin.ads: Mark Entry_Call_State as ordered
4360 * sem_ch3.adb (Build_Derived_Enumeration_Type): Inherit
4362 * sem_ch6.ads: Mark Conformance_Type as Ordered
4363 * sem_prag.adb: Implement pragma Ordered
4364 * sem_res.adb (Bad_Unordered_Enumeration_Reference): New function
4365 (Resolve_Comparison_Op): Diagnose unordered comparison
4366 (Resolve_Range): Diagnose unordered range
4367 * sem_warn.adb (Warn_On_Unordered_Enumeration_Type): New flag (from
4369 * snames.ads-tmpl: Add entry for pragma Ordered
4370 * style.ads (Check_Enumeration_Subrange): Removed
4371 * styleg.adb (Check_Enumeration_Subrange): Removed
4372 * styleg.ads (Check_Enumeration_Subrange): Removed
4373 * stylesw.adb: Remove handling of -gnatyE switch
4374 * stylesw.ads: (Style_Check_Enumeration_Subranges): Removed
4375 * vms_data.ads: Remove -gnatyE entries
4376 Add -gnatw.u entries
4377 * ug_words: Entries for -gnatw.u and -gnatw.U
4378 * gnat_ugn.texi: Document -gnatw.u/-gnatw.U switches
4379 * gnat_rm.texi: Document pragma Ordered.
4380 * s-tasren.adb: Avoid unnecessary comparison on unordered enumeration.
4381 * s-tpobop.adb: Remove comparison on unordered enumeration type.
4383 2010-09-09 Vincent Celier <celier@adacore.com>
4385 * adaint.c: New function __gnat_get_env_vars_case_sensitive, returns 0
4386 for VMS and Windows, and 1 for all other platforms.
4387 * adaint.h: New function __gnat_get_env_vars_case_sensitive
4388 * osint.ads, osint.adb (Canonical_Case_Env_Var_Name): New procedure.
4389 * prj-ext.adb (Add): Call Canonical_Case_Env_Var_Name instead of
4390 Canonical_Case_File_Name, as we are dealing with environment variables,
4393 2010-09-09 Robert Dewar <dewar@adacore.com>
4395 * sem_util.adb: Minor reformatting
4397 2010-09-09 Vincent Celier <celier@adacore.com>
4399 * vms_data.ads: Add documentation for S_Make_Single.
4401 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4403 * sem_util.adb (Same_Object): include formal parameters.
4405 2010-09-09 Vincent Celier <celier@adacore.com>
4407 * make.adb (Queue): New package implementing a new impementation of the
4408 queue, taking into account the new switch --single-compile-per-obj-dir.
4409 * makeutl.ads (Single_Compile_Per_Obj_Dir_Switch): New constant String
4410 for gnatmake and gprbuild new switch --single-compile-per-obj-dir.
4411 * opt.ads (One_Compilation_Per_Obj_Dir): New Boolean flag, defauted to
4413 * switch-m.adb (Scan_Make_Switches): Take into account new gnatmake
4414 switch --single-compile-per-obj-dir.
4415 * vms_data.ads: Add qualifier SINGLE_COMPILE_PER_OBJ_DIR for gnatmake
4416 switch --single-compile-per-obj-dir.
4417 * gnat_ugn.texi: Add documentation for new gnatmake switch
4418 --single-compile-per-obj-dir.
4420 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4422 * einfo.adb, einfo.ads: Clarify use of Corresponding_Protected_Entry.
4424 2010-09-09 Javier Miranda <miranda@adacore.com>
4426 * sem_ch3.adb (Is_Progenitor): Relocated to sem_type.
4427 (Replace_Type): Code cleanup.
4428 * sem_type.ads, sem_type.adb (Is_Progenitor): Relocated from sem_ch3
4430 2010-09-09 Thomas Quinot <quinot@adacore.com>
4432 * exp_ch8.adb: Minor reformatting.
4434 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4436 * exp_ch9.adb, einfo.adb, einfo.ads: New attribute
4437 Corresponding_Protected_Entry.
4439 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4441 * exp_ch3.adb (Build_Untagged_Equality): Do not set alias of implicit
4442 inequality, it is always rewritten as the negation of the corresponding
4444 * exp_ch8.adb (Expand_N_Subprogram_Renaming): If the subprogram renames
4445 the predefined equality of an untagged record, create a body at the
4446 point of the renaming, to capture the current meaning of equality for
4449 2010-09-09 Robert Dewar <dewar@adacore.com>
4451 * sem.adb, sem_warn.adb: Minor reformatting.
4453 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4455 * sem_ch6.adb: Improve error message on untagged equality.
4456 * sem.adb (Semantics): Include subprogram bodies that act as spec.
4458 2010-09-09 Javier Miranda <miranda@adacore.com>
4460 * sem_ch13.adb, exp_ch13.adb: Undo previous change, unneeded.
4462 2010-09-09 Robert Dewar <dewar@adacore.com>
4464 * sem_ch13.adb, sem_ch6.adb, exp_ch3.adb: Minor reformatting.
4466 2010-09-09 Robert Dewar <dewar@adacore.com>
4468 * einfo.adb (Is_Aggregate_Type): New function.
4469 * einfo.ads (Aggregate_Kind): New enumeration subtype
4470 (Is_Aggregate_Type): New function.
4471 * sem_type.adb (Is_Array_Class_Record_Type): Removed, replaced by
4474 2010-09-09 Robert Dewar <dewar@adacore.com>
4476 * exp_ch11.adb, frontend.adb, sem_attr.adb, sem_ch10.adb, sem_ch3.adb,
4477 sem_ch4.adb, sem_ch9.adb, sem_res.adb: Use Restriction_Check_Needed
4479 * restrict.ads, restrict.adb: Ditto.
4480 (Restriction_Check_Needed): New function
4482 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4484 * exp_ch9.ads (Find_Master_Scope): New function, extracted from
4485 Build_Master_Entity, to find the proper scope for the master entity of
4486 a type that may contain tasks, in the presence of transient scopes.
4487 * exp_ch9.adb (Build_Master_Entity) Use new function.
4488 * exp_ch3.adb (Build_Class_Wide_Master): ditto.
4490 2010-09-09 Vincent Celier <celier@adacore.com>
4492 * prj-attr.adb: Add new attributes Leading_Library_Options and
4493 Linker'Leading_Switches.
4494 * snames.ads-tmpl: Add new standard names Leading_Library_Options and
4497 2010-09-09 Javier Miranda <miranda@adacore.com>
4499 * sem_ch3.adb (Derive_Subprogram): The code that checks if a
4500 dispatching primitive covers some interface primitive is incomplete.
4501 Replace such code by the invocation of a new subprogram that provides
4503 * sem_ch6.ads (Is_Interface_Conformant): Add missing documentation.
4504 * sem_ch6.adb (Check_Missing_Return): Minor reformating
4505 (Check_Convention): Complete if-statement conditition when reporting
4506 errors (to avoid assertion failure).
4507 * sem_ch13.adb (Make_Null_Procedure_Specs): This routine was previously
4508 located in exp_ch3. Relocated inside Analyze_Freeze_Entity.
4509 (Analyze_Freeze_Entity): Invoke routine that adds the spec of non
4510 overridden null interface primitives.
4511 * sem_type.adb (Is_Ancestor): If the parent of the partial view of a
4512 private type is an interface then use the parent of its full view to
4513 climb to its ancestor type.
4514 * sem_disp.ads, sem_disp.adb (Covers_Some_Interface): New subprogram.
4515 (Check_Dispatching_Operation): Extend assertion to handle wrappers of
4516 null interface primitives.
4517 (Is_Null_Interface_Primitive): New subprogram.
4518 * exp_ch3.adb (Make_Null_Procedure_Specs): Removed.
4519 (Expand_Freeze_Record_Type): Do not generate specs of null interface
4520 subprograms because they are now generated by Analyze_Freeze_Entity.
4522 2010-09-09 Robert Dewar <dewar@adacore.com>
4524 * a-calfor.adb, sem_ch3.adb: Minor reformatting.
4526 2010-09-09 Robert Dewar <dewar@adacore.com>
4528 * bindgen.adb (Gen_Restrictions_Ada): Avoid explicit enumeration ranges
4529 (Gen_Restrictions_C): Avoid explicit enumeration ranges
4530 (Set_String_Replace): New procedure
4531 * casing.ads (Known_Casing): New subtype declaration
4532 * prj-attr.ads (All_Case_Insensitive_Associative_Array): New subtype
4534 * prj-dect.adb (Parse_Attribute_Declaration): Avoid enumeration range
4535 * prj-nmsc.adb (Check_Naming): Avoid unnecessary enumeration range
4536 * prj-strt.adb (Attribute_Reference): Avoid enumeration range test
4537 * prj.adb (Known_Casing): Moved to Casing spec (avoid enum range)
4538 * sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order): Avoid enumeration
4540 * sem_res.adb (Resolve_Range): Check for enumeration subrange style
4542 * sem_type.adb (Is_Array_Class_Record_Type): New.
4543 * style.ads (Check_Enumeration_Subrange): New procedure
4544 * styleg.adb (Check_Enumeration_Subrange): New procedure
4545 * styleg.ads (Check_Enumeration_Subrange): New procedure
4546 * stylesw.adb Add handling for Style_Check_Enumeration_Subranges
4547 * stylesw.ads (Style_Check_Enumeration_Subranges): New flag
4548 * usage.adb: Add line for -gnatyE
4549 * vms_data.ads: Add entries for [NO]ENUMERATION_RANGES
4550 Add missing entry for NOBOOLEAN_OPERATORS
4551 * gnat_ugn.texi: Add documentation for -gnatyE
4553 2010-09-09 Robert Dewar <dewar@adacore.com>
4555 * namet.adb (Initialize): Is now a dummy procedure
4556 (Reinitialize): New procedure
4557 Call Reinitialize from package initialization
4558 * namet.ads (Initialize): Is now a dummy procedure
4559 (Reinitialize): New procedure
4560 * clean.adb, gnat1drv.adb, gnatbind.adb, gnatcmd.adb, gnatlink.adb,
4561 gnatls.adb, gprep.adb, make.adb, prj-makr.adb: Remove obsolete call to
4564 2010-09-09 Bob Duff <duff@adacore.com>
4566 * sem_elab.adb, s-os_lib.ads: Minor comment fixes.
4568 2010-09-09 Robert Dewar <dewar@adacore.com>
4570 * s-bitops.adb (Raise_Error): Add exception message
4572 2010-09-09 Robert Dewar <dewar@adacore.com>
4574 * par-ch5.adb (Test_Statement_Required): Deal with Ada 2012 allowing no
4575 null statement after label.
4576 * sinfo.ads: Minor comment updates.
4578 2010-09-09 Robert Dewar <dewar@adacore.com>
4580 * nlists.ads, nlists.adb (In_Same_List): New function.
4581 Use Node_Or_Entity_Id where appropriate.
4582 * par-labl.adb, sem_ch6.adb, sem_type.adb: Use In_Same_List.
4584 2010-09-09 Robert Dewar <dewar@adacore.com>
4586 * restrict.ads, restrict.adb (Check_Wide_Character_Restriction): New
4588 * sem_ch3.adb: Use Check_Wide_Character_Restriction
4589 (Enumeration_Type_Declaration): Check violation of No_Wide_Characters
4590 * sem_ch8.adb (Find_Direct_Name): Check violation of No_Wide_Characters
4591 (Find_Expanded_Name): Check violation of No_Wide_Characters
4593 2010-09-09 Robert Dewar <dewar@adacore.com>
4595 * par-ch5.adb: Minor reformatting.
4597 2010-09-09 Robert Dewar <dewar@adacore.com>
4599 * prj-env.adb: Minor code reorganization.
4600 * par-ch3.adb: Minor reformatting.
4601 * gcc-interface/Make-lang.in: Update dependencies.
4603 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4605 * exp_ch9.adb (Build_Activation_Chain_Entity): The construct enclosing
4606 a task declaration can be an entry body.
4608 2010-09-09 Javier Miranda <miranda@adacore.com>
4610 * exp_disp.adb (Make_DT): Decorate as "static" variables containing
4611 tags of library level tagged types.
4612 (Make_Tags): Disable backend optimizations about aliasing for
4613 declarations of access to dispatch tables.
4615 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4617 * sem_ch12.adb (Reset_Entity): If the entity is an itype created as a
4618 subtype for a null-excluding access type, recover the original
4619 subtype_mark to get the proper visibility on the original name.
4621 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4623 * exp_ch3.adb (Build_Untagged_Equality): For Ada2012, new procedure to
4624 create the primitive equality operation for an untagged record. The
4625 operation is the predefined equality if no record component has a
4626 user-defined equality, or if there is a user-defined equality for the
4627 type as a whole, or when the type is derived and it has an inherited
4628 equality. Otherwise the body of the operations is built as for tagged
4630 (Expand_Freeze_Record_Type): Call Build_Untagged_Equality when needed.
4631 (Make_Eq_Body): New function to create the expanded body of the
4632 equality operation for tagged and untagged records. In both cases the
4633 operation composes, and the primitive operation of each record
4634 component is used to generate the equality function for the type.
4635 * exp_ch4.adb (Expand_Composite_Equality): In Ada2012, if a component
4636 has an abstract equality defined, replace its call with a
4637 Raise_Program_Error.
4638 * sem_ch6.adb (New_Overloaded_Entity): if Ada2012, verify that a
4639 user-defined equality operator for an untagged record type does not
4640 happen after type is frozen, and appears in the visible part if partial
4641 view of type is not limited.
4643 2010-09-09 Tristan Gingold <gingold@adacore.com>
4645 * gnatlbr.adb: Make Create_Directory more portable: use __gnat_mkdir.
4647 2010-09-09 Bob Duff <duff@adacore.com>
4649 * gnat_ugn.texi: Remove incorrect statement about -E being the default.
4651 2010-09-09 Pascal Obry <obry@adacore.com>
4653 * gnat_ugn.texi: Update doc on windows related topics.
4655 2010-09-09 Geert Bosch <bosch@adacore.com>
4657 * s-fatgen.adb: Update comments.
4659 2010-09-09 Robert Dewar <dewar@adacore.com>
4661 * par-ch4.adb (Box_Error): New procedure.
4663 2010-09-09 Thomas Quinot <quinot@adacore.com>
4665 * sem.adb: Minor reformatting.
4667 2010-09-09 Pascal Obry <obry@adacore.com>
4669 * prj-env.adb: Style fix, use /and then/ and /or else/.
4670 * gnat_ugn.texi: Fix typos.
4672 2010-09-03 Joseph Myers <joseph@codesourcery.com>
4675 * gcc-interface/misc.c (gnat_init_options): Allow options with
4676 empty canonical form. Generate a single save_argv element from -I
4679 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
4681 * gcc-interface/utils.c (gnat_pushdecl): Remove test for PARM_DECLs.
4682 Attach fake PARM_DECLs to the topmost block of the function.
4684 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
4686 * gcc-interface/trans.c (call_to_gnu): Also force the return slot opt
4687 for the call to a function whose return type was unconstrained.
4689 2010-08-30 Olivier Hainque <hainque@adacore.com>
4691 * gcc-interface/decl.c (FOREIGN_FORCE_REALIGN_STACK): New macro,
4692 replacement for FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
4693 (gnat_to_gnu_entity) <case ..., E_Procedure>: Use it.
4695 2010-08-21 Eric Botcazou <ebotcazou@adacore.com>
4697 * tracebak.c: Fix typo in comment.
4699 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
4701 * gcc-interface/decl.c: Use FOR_EACH_VEC_ELT.
4702 * gcc-interface/trans.c: Likewise.
4703 * gcc-interface/utils.c: Likewise.
4705 2010-08-18 Eric Botcazou <ebotcazou@adacore.com>
4707 * tracebak.c (i386): Use GCC unwinder on Linux with GCC > 4.5.
4709 2010-08-10 Robert Dewar <dewar@adacore.com>
4711 * sem_ch8.adb, sem_ch8.ads: Change name Write_Scopes to ws.
4712 * sem_util.adb: Minor reformatting.
4714 2010-08-10 Javier Miranda <miranda@adacore.com>
4716 * sem_aggr.adb (Resolve_Extension_Aggregate): Warn on the use of C++
4717 constructors that leave the object partially initialized.
4718 * exp_atag.ads, exp_atags.adb (Build_Inherit_CPP_Prims): New subprogram
4719 that copies from parent of Typ the dispatch table slots of inherited
4720 C++ primitives. It handles primary and secondary dispatch tables.
4721 * einfo.adb (Related_Type): Moved from Node26 to Node27. Required to
4722 use this attribute with E_Variable entities.
4723 (Set_Is_Tag): Relax assertion to allow its use with variables that
4725 (Set_Related_Type): Relax assertion to allow its use with variables
4726 that store the tag of a C++ class.
4727 (Write_26_Field_Name): Remove Related_Type.
4728 (Write_27_Field_Name): Add Related_Type.
4729 * einfo.ads (Related_Type): Moved from Node26 to Node27. Available also
4730 with E_Variable entities.
4731 * sem_prag.adb (CPP_Constructor): Warn on duplicated occurrence of this
4733 * sem_util.adb (Search_Tag): Add missing support for CPP types.
4734 (Enclosing_CPP_Parent): New subprogram.
4735 (Has_Suffix): New subprogram.
4736 * sem_util.ads (Enclosing_CPP_Parent): New subprogram that returns the
4737 closest ancestor of a type that is a C++ type.
4738 (Has_Suffix): New subprogram. Used in assertions to check the suffix of
4740 * sem_attr.adb (Analyze_Access_Attribute): Check wrong use of current
4741 instance in derivations of C++ types.
4742 * exp_tss.adb (CPP_Init_Proc): New subprogram.
4743 (Is_CPP_Init_Proc): New subprogram.
4744 (Set_TSS): Handle new C++ init routines.
4745 * exp_tss.ads (TSS_CPP_Init): New TSS name. For initialization of C++
4747 (CPP_Init_Proc): New subprogram.
4748 (Is_CPP_Init_Proc): New subprogram.
4749 * exp_disp.adb (CPP_Num_Prims): New subprogram.
4750 (Has_CPP_Constructors): New subprogram.
4751 (Make_Secondary_DT, Make_DT): For derivations of CPP types, do not
4752 initialize slots located in the C++ part of the dispatch table.
4753 (Make_Tags): For CPP types declare variables used by the IP routine to
4754 store the C++ tag values after the first invocation of the C++
4756 (Build_CPP_Init_DT): New subprogram.
4757 (Set_CPP_Constructors): New implementation that builds an IP for each
4758 CPP constructor. These IP are wrappers of the C++ constructors that,
4759 after the first invocation of the constructor, read the C++ tags from
4760 the object and save them locally. These copies of the C++ tags are used
4761 by the IC routines to initialize tables of Ada derivations of CPP
4763 (Write_DT): Indicate what primitives are imported from C++
4764 * exp_disp.ads (CPP_Num_Prims): New subprogram.
4765 (Has_CPP_Constructors): New subprogram.
4766 * exp_aggr.adb (Build_Record_Aggr_Code): For derivations of C++ types
4767 invoke the IC routine to inherit the slots of the parents.
4768 * sem_ch13.adb (Analyze_Freeze_Entity): Add new warnings on CPP types.
4769 * exp_ch3.adb (Is_Variable_Size_Array): New subprogram.
4770 (Is_Variable_Size_Record): Factorize code calling
4771 Is_Variable_Size_Array.
4772 (Build_CPP_Init_Procedure): New subprogram that builds the tree
4773 corresponding to the procedure that initializes the C++ part of the
4774 dispatch table of an Ada tagged type that is a derivation of a CPP
4776 (Build_Init_Procedure): Adding documentation plus code reorganization
4777 to leave more clear the construction of the IP with C++ types.
4778 (Expand_Freeze_Record_Type): Delay call to Set_CPP_Constructors because
4779 it cannot be called after Make_Tags has been invoked.
4780 (Inherit_CPP_Tag): Removed.
4781 (Init_Secondary_Tags): For derivations of CPP types, warn on tags
4782 located at variable offset.
4783 * freeze.ads: Minor reformating.
4784 * sem_ch8.adb (Write_Scopes): Add pragma export. Required to have it
4786 * gcc-interface/Make-lang.in: Update dependencies.
4788 2010-08-10 Robert Dewar <dewar@adacore.com>
4790 * a-chahan.ads: Add comments on handling of obsolescent entries.
4791 * opt.ads: Add Ada_2005 and Ada_2012 renamings for versions.
4792 * restrict.adb (Check_Obsolescent_2005_Entity): New procedure.
4793 * restrict.ads (Check_Obsolescent_2005_Entity): New procedure.
4794 * sem_attr.adb (Analyze_Access_Attribute): Call
4795 Check_Obsolescent_2005_Entity to check for access to obsolescent
4796 Ada.Characters.Handling subprogram.
4797 (Analyze_Attribute, case Class): Applying Class to untagged incomplete
4798 type is obsolescent in Ada 2005.
4799 (Analyze_Attribute, case Constrained): Better placement of flag when
4800 flagged as obsolescent feature.
4801 (Analyze_Attribute, case Storage_Size): Use with tasks is obsolescent
4802 * sem_ch10.adb (Analyze_With_Clause): With of renamings such as Text_IO
4803 is an obsolescent feature.
4804 * sem_ch11.adb (Analyze_Raise_Statement): Numeric_Error is obsolescent
4806 * sem_ch8.adb (Analyze_Subprogram_Renaming): Call
4807 Check_Obsolescent_2005_Entity to check for renaming obsolete
4808 Ada.Characters.Handling subprogram.
4809 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings): Check
4810 for obsolescent restrictions in Ada 2005.
4811 (Analyze_Pragma, case Suppress): Entity arg is obsolescent in Ada 2005
4812 (Analyze_Pragma, case Interface): Interface is obsolescent in Ada 2005
4813 * sem_res.adb (Resolve_Call): Call Check_Obsolescent_2005_Entity to
4814 check for obsolescent references to Ada.Characters.Handling subprograms
4816 2010-08-10 Robert Dewar <dewar@adacore.com>
4818 * einfo.adb, einfo.ads: Fix bad -gnatdt output for incomplete type.
4820 2010-08-10 Robert Dewar <dewar@adacore.com>
4822 * errout.ads: Add VMS table entries for 2005, 12, 2012 switches
4823 * par-ch4.adb: Change wording of Ada 2012 messages
4824 * vms_data.ads: Add VMS entries for /2005, /12, /2012
4826 2010-08-10 Robert Dewar <dewar@adacore.com>
4828 * a-suenco.adb (Convert): Fix bug in UTF-16 to UTF-8 conversion for
4829 codes in the range 16#80#..16#7FF#.
4830 * sem_ch10.adb: Minor reformatting.
4832 2010-08-10 Arnaud Charlet <charlet@adacore.com>
4834 * gnat1drv.adb (Scan_Front_End_Switches): Always perform semantics and
4835 generate ali files in CodePeer mode, so that a gnatmake -c -k will
4836 proceed further when possible
4837 * freeze.adb (Freeze_Static_Object): Fix thinko. Do not generate error
4838 messages when ignoring representation clauses (-gnatI).
4840 2010-08-10 Ed Schonberg <schonberg@adacore.com>
4842 * exp_ch4.adb (Expand_N_Selected_Component): Do not attempt to
4843 constant-fold discriminant reference if the constraint is an object
4844 with non-static expression. Expression may contain volatile references
4845 in the presence of renamings.
4847 2010-08-10 Vincent Celier <celier@adacore.com>
4849 * prj-proc.adb (Get_Attribute_Index): If Index is All_Other_Names,
4851 * prj-strt.adb (Attribute_Reference): Recognize 'others' as a valid
4852 index for an associative array where it is allowed.
4854 2010-08-10 Thomas Quinot <quinot@adacore.com>
4856 * exp_attr.adb: Add comments.
4858 2010-08-10 Jerome Lambourg <lambourg@adacore.com>
4860 * adaint.c (__gnat_get_file_names_case_sensitive): return 0 on darwin.
4862 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
4864 * gcc-interface/utils.c (gnat_poplevel): Use blocks_nreverse.
4866 2010-08-09 Eric Botcazou <ebotcazou@adacore.com>
4868 * gcc-interface/utils.c (build_vms_descriptor32): Fix formatting.
4869 (build_vms_descriptor): Likewise.
4871 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4873 * gcc-interface/utils.c (make_descriptor_field): Add tree parameter.
4874 (build_vms_descriptor32): Adjust calls to it for new parameter.
4875 (build_vms_descriptor): Likewise.
4877 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4879 * gcc-interface/decl.c (rec_variant): Declare. Declare a VEC of it.
4880 (build_variant_list): Take and return a VEC instead of a tree.
4881 (create_variant_part_from): Take a VEC instead of a tree for
4882 variant_list. Adjust accordingly.
4883 (gnat_to_gnu_entity): Adjust for changes to previous functions.
4885 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
4887 * gcc-interface/decl.c (gnat_to_gnu_entity): Use XALLOCAVEC instead
4889 (components_to_record): Likewise.
4890 * gcc-interface/trans.c (gnat_to_gnu): Likewise.
4891 * gcc-interface/utils.c (max_size): Likewise.
4892 (build_vms_descriptor32): Likewise.
4893 (build_vms_descriptor): Likewise.
4895 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
4897 * gcc-interface/decl.c (subst_pair): Declare. Declare a VEC of it.
4898 (build_subst_list): Return a VEC instead of a tree.
4899 (build_variant_list): Take a VEC for subst_list. Adjust
4901 (create_field_decl_from): Likewise.
4902 (create_variant_part_from): Likewise.
4903 (copy_and_substitute_in_size): Likewise.
4904 (gnat_to_gnu_entity): Adjust for new interface to build_subst_list.
4905 Free the built vector.
4907 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
4909 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not build an
4910 allocator for large imported objects.
4912 2010-08-05 Robert Dewar <dewar@adacore.com>
4914 * gnat1drv.adb: Minor reformatting.
4916 2010-08-05 Ed Schonberg <schonberg@adacore.com>
4918 * sem.adb (Do_Unit_And_Dependents): If some parent unit is an
4919 instantiation, process its body before the spec of the main unit,
4920 because it may contain subprograms invoked in the spec of main.
4921 * einfo.ads: Add documention of delayed freeze.
4923 2010-08-05 Vincent Celier <celier@adacore.com>
4925 * prj-nmsc.adb (Process_Linker): Take into account new values for
4926 attribute Response_File_Format.
4927 * prj.ads (Response_File_Format): New enumeration values GCC_GNU,
4928 GCC_Object_List and GCC_Option_List.
4930 2010-08-05 Ed Schonberg <schonberg@adacore.com>
4932 * exp_ch4.adb (Expand_N_Selected_Component): Do not constant-fold a
4933 selected component that denotes a discriminant if it is the
4934 discriminant of a component of an unconstrained record type.
4936 2010-08-05 Ed Schonberg <schonberg@adacore.com>
4938 * exp_util.adb (Insert_Actions): If the action appears within a
4939 conditional expression that is already analyzed, insert action further
4942 2010-08-05 Robert Dewar <dewar@adacore.com>
4944 * exp_ch4.adb: Minor reformatting.
4946 2010-08-05 Thomas Quinot <quinot@adacore.com>
4948 * exp_ch4.adb: Minor reformatting
4949 * gnat1drv.adb: Minor reformatting.
4950 Minor code reorganization (use Nkind_In).
4952 2010-08-05 Ed Schonberg <schonberg@adacore.com>
4954 * exp_util.ads, exp_util.adb (Needs_Constant_Address): New predicate to
4955 determine whether the expression in an address clause for an
4956 initialized object must be constant. Code moved from freeze.adb.
4957 (Remove_Side_Effects): When the temporary is initialized with a
4958 reference, indicate that the temporary is a constant as done in all
4960 * freeze.adb (Check_Address_Clause): use Needs_Constant_Address.
4961 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
4962 If object does not need a constant address, remove side effects from
4963 address expression, so it is elaborated at the point of the address
4964 clause and not at the freeze point of the object, so that elaboration
4967 2010-08-05 Vincent Celier <celier@adacore.com>
4969 * prj.adb (Is_Compilable): Return False for header files of non Ada
4972 2010-08-05 Emmanuel Briot <briot@adacore.com>
4974 * prj-nmsc.adb: The Missing_Source_Files flag also considers a missing
4975 exec directory as a warning rather than an error.
4977 2010-08-05 Thomas Quinot <quinot@adacore.com>
4979 * sem_ch6.adb, gnat1drv.adb, exp_ch6.adb, sem_eval.adb: Minor
4982 2010-08-05 Steve Baird <baird@adacore.com>
4984 * exp_util.adb (Remove_Side_Effects): An access value which designates
4985 a volatile object of a nonvolatile type is prohibited.
4986 Do not call Make_Reference to construct a reference to such an object.
4988 2010-08-05 Robert Dewar <dewar@adacore.com>
4990 * a-suezse.adb, a-suezse.ads, a-suezen.adb, a-suezen.ads: Removed.
4991 * a-suewse.adb, a-suewse.ads, a-suesen.adb, a-suesen.ads,
4992 a-suewen.adb, a-suewen.ads: New files.
4993 * Makefile.rtl, impunit.adb: Update implementation of Ada 2012 string
4995 * sem_elab.adb: Minor reformatting.
4997 2010-08-05 Arnaud Charlet <charlet@adacore.com>
4999 * sem_ch8.adb (Use_One_Type): Protect against empty scopes.
5000 * exp_util.adb (Component_May_Be_Bit_Aligned): Prevent assert failure
5001 in case of null Comp.
5003 2010-08-05 Robert Dewar <dewar@adacore.com>
5005 * errout.adb, a-suewen.adb, a-suezen.adb: Minor reformatting.
5007 2010-08-05 Gary Dismukes <dismukes@adacore.com>
5009 * sem_ch4.adb (Analyze_Allocator): Flag errors on allocators of a
5010 nested access type whose designated type has tasks or is a protected
5011 object when the restrictions No_Task_Hierarchy or
5012 No_Local_Protected_Objects apply. Add ??? comment.
5013 * sem_ch9.adb (Analyze_Protected_Type): Give a warning when a protected
5014 type is not a library-level type and No_Local_Protected_Objects applies.
5015 (Analyze_Task_Type): Give a warning when a task type is not a
5016 library-level type and No_Task_Hierarchy applies.
5018 2010-08-05 Arnaud Charlet <charlet@adacore.com>
5020 * sem.adb: Minor reformatting
5021 * sem_ch4.adb (Analyze_Reference): Disable error message in CodePeer
5024 2010-08-04 Eric Botcazou <ebotcazou@adacore.com>
5026 * gcc-interface/decl.c: Do not undefine IN_GCC_FRONTEND and do not
5028 (gnat_to_gnu_entity) <object>: Force address of -1 at the tree level
5029 for the debug-only entity.
5030 * gcc-interface/Make-lang.in (ada/decl.o): Adjust dependencies.
5032 2010-08-03 Joseph Myers <joseph@codesourcery.com>
5034 * gcc-interface/lang-specs.h: Don't pass -a options.
5036 2010-07-28 Joseph Myers <joseph@codesourcery.com>
5038 * gcc-interface/misc.c (gnat_init_options): Ignore erroneous
5039 options. Check canonical_option_num_elements on options copied.
5041 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5043 * gcc-interface/misc.c (gnat_handle_option): Update prototype and
5044 return value type. Don't check for missing arguments here.
5046 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5048 * gcc-interface/misc.c (gnat_option_lang_mask): New.
5049 (gnat_init_options): Update prototype. Reconstruct argv array
5050 from decoded options.
5052 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
5054 * gcc-interface/utils.c (update_pointer_to): In the unconstrained array
5055 case, merge the alias set of the old pointer type.
5057 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
5059 * gcc-interface/utils.c (gnat_types_compatible_p): Revert latest change
5060 and recurse only for multidimensional array types instead.
5062 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
5065 * gcc-interface/utils.c (convert): Fix thinko in test.
5066 (unchecked_convert): When converting from a scalar type to a type with
5067 a different size, pad to have the same size on both sides.
5069 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
5071 * gcc-interface/utils.c (gnat_types_compatible_p): Don't require strict
5072 equality for the component type of array types.
5074 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
5076 * gcc-interface/decl.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
5077 * gcc-interface/trans.c: Likewise.
5078 * gcc-interface/utils.c: Likewise.
5079 * gcc-interface/utils2.c: Likewise.
5081 2010-07-13 Laurent GUERBY <laurent@guerby.net>
5084 * gcc-interface/targtyps.c: Include tm_p.h.
5085 * gcc-interface/Make-lang.in: Update dependencies.
5087 2010-07-09 Eric Botcazou <ebotcazou@adacore.com>
5089 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Deal with
5092 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5094 * gcc-interface/utils.c: Include diagnostic-core.h in every file
5095 that includes toplev.h.
5097 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
5099 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>:
5100 Branch to common code handling the alignment of discrete types.
5101 <E_Signed_Integer_Type>: Likewise.
5102 <E_Modular_Integer_Type>: Likewise.
5104 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
5106 * gcc-interface/misc.c (gnat_handle_option): Do not populate gnat_argv.
5107 (gnat_handle_option): Allocate only one element for gnat_argv.
5108 (gnat_init): Do not populate gnat_argv.
5110 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5112 * gcc-interface/trans.c: Do not include tree-flow.h.
5113 * gcc-interface/Make-lang.in: Adjust dependencies.
5115 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
5117 * gcc-interface/gigi.h (gnat_build_constructor): Take a VEC instead
5118 of a TREE_LIST. Update comment.
5119 * gcc-interface/trans.c (gigi): Build a VEC instead of a TREE_LIST.
5120 Adjust call to gnat_build_constructor.
5121 (Attribute_to_gnu): Likewise.
5122 (gnat_to_gnu): Likewise.
5123 (pos_to_constructor): Likewise.
5124 (extract_values): Likewise.
5125 * gcc-interface/utils.c (build_template): Likewise.
5126 (convert_vms_descriptor64): Likewise.
5127 (convert_vms_descriptor32): Likewise.
5128 (convert_to_fat_pointer): Likewise.
5129 (convert): Likewise.
5130 (unchecked_convert): Likewise.
5131 * gcc-interface/decl.c (gnat_to_gnu_entity): Likewise.
5132 * gcc-interface/utils2.c (build_allocator): Likewise.
5133 (fill_vms_descriptor): Likewise.
5134 (gnat_build_constructor): Take a VEC instead of a TREE_LIST.
5135 (compare_elmt_bitpos): Adjust for parameters being constructor_elts
5136 instead of TREE_LISTs.
5138 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
5140 * gcc-interface/misc.c: Do not include except.h.
5141 * gcc-interface/Make-lang.in: Update dependencies.
5143 2010-06-27 Eric Botcazou <ebotcazou@adacore.com>
5145 * gcc-interface/trans.c: Include tree-flow.h.
5146 (gnu_switch_label_stack): Delete.
5147 (Case_Statement_to_gnu): Do not emit the goto at the end of a case if
5148 its associated block cannot fall through. Do not emit the final label
5149 if no cases branch to it.
5150 * gcc-interface/Make-lang.in (ada/trans.o): Add $(TREE_FLOW_H).
5152 2010-06-23 Thomas Quinot <quinot@adacore.com>
5154 * exp_attr.adb (Expand_Access_To_Protected_Op): When rewriting a
5155 reference to a protected subprogram outside of the protected's scope,
5156 ensure the corresponding external subprogram is frozen before the
5159 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5161 * sem_prag.adb: Fix typo in error message.
5162 * sem.adb: Refine previous change.
5164 2010-06-23 Robert Dewar <dewar@adacore.com>
5166 * impunit.adb, a-suewen.adb, a-suewen.ads, a-suenco.adb, a-suenco.ads,
5167 a-suezen.adb, a-suezen.ads, a-stuten.adb, a-stuten.ads, Makefile.rtl:
5168 Implement Ada 2012 string encoding packages.
5170 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5172 * a-stwiun-shared.adb, a-stwiun-shared.ads, a-stzunb-shared.adb,
5173 a-stzunb-shared.ads, a-swunau-shared.adb, a-swuwti-shared.adb,
5174 a-szunau-shared.adb, a-szuzti-shared.adb, a-strunb-shared.adb,
5175 a-strunb-shared.ads, a-stunau-shared.adb, a-suteio-shared.adb: New
5177 * gcc-interface/Makefile.in: Enable use of above files.
5179 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5181 * sem_ch13.adb (Check_Constant_Address_Clauses): Do not check legality
5182 of address clauses if if Ignore_Rep_Clauses is active.
5183 * freeze.adb (Check_Address_Clause): If Ignore_Rep_Clauses is active,
5184 remove address clause from tree so that it does not reach the backend.
5186 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5188 * exp_attr.adb (Expand_N_Attribute_Reference [Attribute_Valid]): Do not
5189 expand 'Valid from user code in CodePeer mode, will be handled by the
5192 2010-06-23 Bob Duff <duff@adacore.com>
5194 * g-comlin.ads: Minor comment improvements.
5196 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5198 * sem_res.adb (Uses_SS): The expression that initializes a controlled
5199 component of a record type may be a user-defined operator that is
5200 rewritten as a function call.
5202 2010-06-23 Bob Duff <duff@adacore.com>
5204 * g-comlin.ads, sem_ch13.adb: Minor comment fix.
5206 2010-06-23 Eric Botcazou <ebotcazou@adacore.com>
5208 * exp_ch11.adb (Expand_Local_Exception_Handlers): Propagate the end
5209 label to the new sequence of statements. Set the sloc of the raise
5210 statement onto the new goto statements.
5212 2010-06-23 Robert Dewar <dewar@adacore.com>
5214 * a-stuten.ads, a-stuten.adb: New files.
5215 * impunit.adb: Add engtry for Ada.Strings.UTF_Encoding (a-stuten.ads)
5216 * Makefile.rtl: Add entry for a-stuten (Ada.Strings.UTF_Encoding)
5218 2010-06-23 Robert Dewar <dewar@adacore.com>
5220 * gnat_ugn.texi: Add documentation of -gnat12 switch
5221 Add documentation of -gnatX switch.
5223 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5225 * inline.ads: Include the current Ada_Version in the info for pending
5226 instance bodies, so that declaration and body are compiled with the
5228 * inline.adb: Move with_clause for Opt to spec.
5229 * sem_ch12.adb (Analyze_Package_Instantiation,
5230 Analyze_Subprogram_Instantiation): Save current Ada_Version in
5231 Pending_Instantiation information.
5232 (Instantiate_Package_Body, Instantiate_Subprogram_Body,
5233 Inline_Package_Body): Use the Ada_Version present in the body
5236 2010-06-23 Robert Dewar <dewar@adacore.com>
5238 * usage.adb: Add documentation for -gnat12 switch.
5239 * errout.ads: Add VMS alias entry for -gnat12 switch
5240 * gnat_rm.texi: Add documentation for pragma Ada_12 and Ada_2012
5241 Add documentation for pragma Extensions_Allowed.
5242 * opt.ads: Add entry for Ada 2012 mode.
5243 * sem_ch4.adb, par-ch3.adb, par-ch4.adb: Use new Ada 2012 mode for 2012
5245 * sem_prag.adb, par-prag.adb: Add processing for pragma Ada_12 and
5247 * sem_ch13.adb: Add handling for Ada 2012 mode.
5248 * snames.ads-tmpl: Add entries for pragma Ada_2012 and Ada_12.
5249 * switch-c.adb: Add handling for -gnat12 switch.
5250 Implement -gnat2005 and -gnat2012.
5251 * usage.adb: Add documentation for -gnat12 switch.
5252 * vms_data.ads: Add /12 switch for Ada 2012 mode.
5254 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5256 * exp_ch4.adb (Expand_N_Allocator): Fix potential crash when using
5257 No_Task_Hierarchy restriction. Add comment.
5258 * exp_ch9.adb, exp_ch3.adb: Update comments.
5260 2010-06-23 Robert Dewar <dewar@adacore.com>
5262 * sem_ch5.adb (Process_Bounds): Remove some junk initializations.
5263 * sem_res.adb: Add comments.
5264 * sem_util.adb: Minor reformatting. Add comments.
5265 Change increment on Actuals_In_Call table.
5266 * opt.ads: Minor: add 'constant'.
5268 2010-06-23 Javier Miranda <miranda@adacore.com>
5270 * exp_disp.adb (Make_DT): Initialize the Size_Func component of the
5271 TSD to Null_Address if No_Dispatching_Calls is active.
5273 2010-06-23 Vincent Celier <celier@adacore.com>
5275 * a-comlin.ads: Indicate that use of this package is not supported
5276 during the elaboration of an auto-initialized Stand-Alone Library.
5278 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5280 * exp_util.adb (Is_Possibly_Misaligned_Object): Do not rely on an
5281 alignment clause on a record type to determine if a component may be
5282 misaligned. The decision must be taken in the back-end where target
5283 alignment information is known.
5285 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5287 * gnat1drv.adb (Adjust_Global_Switches): Enable some restrictions
5288 systematically in CodePeer mode to simplify generated code.
5289 * restrict.adb (Check_Restriction): Do nothing in CodePeer mode.
5290 * exp_ch4.adb (Expand_N_Allocator): Generate proper code when
5291 No_Task_Hierarchy is set instead of crasshing.
5293 2010-06-23 Thomas Quinot <quinot@adacore.com>
5295 * sem_util.adb: Minor code cleanup: test for proper entity instead of
5296 testing just Chars attribute when checking whether a given scope is
5298 * exp_ch4.adb, einfo.adb: Minor reformatting.
5300 2010-06-23 Vincent Celier <celier@adacore.com>
5303 * switch-m.adb (Normalize_Compiler_Switches): Take into account
5304 switches -gnatB, -gnatD=nn, -gnatG (incuding -gnatG=nn), -gnatI,
5305 -gnatl=file, -gnatS, -gnatjnn, -gnateI=nn and -gnatWx.
5307 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5309 * sem_res.adb (Resolve_Membership_Op): If left operand is a mixed mode
5310 operation with a universal real operand, and the right operand is a
5311 range with universal bounds, find unique fixed point that may be
5312 candidate, and warn appropriately.
5314 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5316 * sem_res.adb (Resolve_Intrinsic_Operator): Add guards to handle
5317 properly the rare cases where VMS operators are visible through
5318 Extend_System, but the default System is being used and Address is a
5320 * sem_util.adb: Widen predicate Is_VMS_Operator.
5322 2010-06-23 Vincent Celier <celier@adacore.com>
5324 * switch-m.adb (Normalize_Compiler_Switches): Take into account -gnatC
5327 2010-06-23 Olivier Hainque <hainque@adacore.com>
5329 * einfo.adb (Has_Foreign_Convention): Consider Intrinsic with
5330 Interface_Name as foreign. These are GCC builtin imports for
5331 which Ada specific processing doesn't apply.
5333 2010-06-23 Thomas Quinot <quinot@adacore.com>
5335 * sem_ch12.adb: Minor reformatting.
5337 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5339 * sem_util.adb (Is_VMS_Operator): Use scope of system extension to
5340 determine whether an intrinsic subprogram is VMS specific.
5342 2010-06-23 Hristian Kirtchev <kirtchev@adacore.com>
5344 * treepr.adb (Print_Entity_Info): Output the contents of Field28 if it
5345 is present in the entity.
5347 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5349 * xr_tabls.adb, xref_lib.adb: Update to latest lib-xref.ads
5350 Fix handling of parameters.
5351 Add protection against unexpected cases.
5352 * sem_ch6.adb (Create_Extra_Formals): Use suffix "L" instead of "A" for
5353 access level, since "A" suffix is already used elsewhere. Similarly,
5354 use suffix "O" instead of "C" for 'Constrained since "C" suffix is used
5357 2010-06-23 Thomas Quinot <quinot@adacore.com>
5359 * sem_util.adb, sem_util.ads: Minor reformatting.
5361 2010-06-23 Vincent Celier <celier@adacore.com>
5363 * prj.ads (Gprclean_Flags.Missing_Source_Files): Set to Error to keep
5364 the previous behavior of gprclean when there are missing files.
5366 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5368 * sem_ch12.adb (Load_Body_Of_Generic): In CodePeer mode, a missing
5369 generic body is not a fatal error.
5370 (Mark_Context): Handle properly names of child units.
5371 * sem.adb (Walk_Library_Items.Do_Action): Remove assertion on
5374 2010-06-23 Vincent Celier <celier@adacore.com>
5376 * ali.adb (Scan_ALI): When ignoring R lines, do not skip the next
5379 2010-06-23 Bob Duff <duff@adacore.com>
5381 * g-pehage.ads, g-pehage.adb: Switch default optimization mode to
5382 Memory_Space, because CPU_Time doesn't seem to provide any significant
5383 speed advantage in practice. Cleanup: Get rid of constant
5384 Default_Optimization; doesn't seem to add anything. Use case
5385 statements instead of if statements; seems cleaner.
5387 2010-06-23 Olivier Hainque <hainque@adacore.com>
5389 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Procedure>: Use
5390 Wshadow instead of Wextra to guard warning on absence of internal
5391 builtin decl for an import. Fix use of quote in warning text.
5392 (intrin_arglists_compatible_p): Remove processing of integer trailing
5393 args on the Ada side. Fix use of literal > in warning text.
5394 (intrin_return_compatible_p): Never warn on "function imported as
5395 procedure". Defer the void/void case to the common type compatibility
5397 (gnat_to_gnu_param): Use void_ptr GCC type for System.Address argument
5398 of GCC builtin imports.
5400 2010-06-23 Olivier Hainque <hainque@adacore.com>
5402 * gcc-interface/decl.c (intrin_types_incompatible_p): New function,
5404 (intrin_arglists_compatible_p, intrin_return_compatible_p): New
5405 functions, helpers for ...
5406 (intrin_profiles_compatible_p): New function, replacement for ...
5407 (compatible_signatures_p): Removed.
5408 (gnat_to_gnu_entity) <case E_Procedure>: If -Wextra, warn on
5409 attempt to bind an unregistered builtin function. When we have
5410 one, use it and warn on profile incompatibilities.
5412 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5414 * gcc-interface/Make-lang.in: Update dependencies.
5416 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5418 * sem_util.adb (Mark_Coextensions): If the expression in the allocator
5419 for a coextension in an object declaration is a concatenation, treat
5420 coextension as dynamic.
5422 2010-06-23 Javier Miranda <miranda@adacore.com>
5424 * sem_ch3.adb (Add_Internal_Interface_Entities): Ensure that the
5425 internal entities are added to the scope of the tagged type.
5426 (Derive_Subprograms): Do not stop derivation when we find the first
5427 internal entity that has attribute Interface_Alias. After the change
5428 done to Override_Dispatching_Operations it is no longer true that
5429 these primirives are always located at the end of the list of
5431 * einfo.ads (Primitive_Operations): Add documentation.
5432 * exp_disp.adb (Write_DT): Improve output adding to the name of the
5433 primitive a prefix indicating its corresponding tagged type.
5434 * sem_disp.adb (Override_Dispatching_Operations): If the overridden
5435 entity covers the primitive of an interface that is not an ancestor of
5436 this tagged type then the new primitive is added at the end of the list
5437 of primitives. Required to fulfill the C++ ABI.
5439 2010-06-23 Javier Miranda <miranda@adacore.com>
5441 * atree.ads (Set_Reporting_Proc): New subprogram.
5442 * atree.adb: Remove dependency on packages Opt and SCIL_LL.
5443 (Allocate_Initialize_Node, Replace, Rewrite): Replace direct calls
5444 to routines of package Scil_ll by indirect call to the registered
5446 (Set_Reporting_Proc): New subprogram. Used to register a subprogram
5447 that is invoked when a node is allocated, replaced or rewritten.
5448 * scil_ll.adb (Copy_SCIL_Node): New routine that takes care of copying
5449 the SCIL node. Used as argument for Set_Reporting_Proc.
5450 (Initialize): Register Copy_SCIL_Node as the reporting routine that
5451 is invoked by atree.
5453 2010-06-23 Thomas Quinot <quinot@adacore.com>
5455 * sem_ch3.ads: Minor reformatting.
5457 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5459 * sem_ch12.adb (Analyze_Package_Instantiation): In CodePeer mode,
5460 always analyze the generic body and instance, because it may be needed
5462 (Mark_Context): Prepend the with clauses for needed generic units, so
5463 they appear in a better order for CodePeer.
5464 * sem_util.adb, sem_util.ads: Prototype code for AI05-0144.
5466 2010-06-23 Emmanuel Briot <briot@adacore.com>
5468 * prj.ads, prj-nmsc.adb (Error_Or_Warning): New subprogram.
5470 2010-06-23 Robert Dewar <dewar@adacore.com>
5472 * g-pehage.adb, exp_ch13.adb: Minor reformatting.
5474 2010-06-23 Thomas Quinot <quinot@adacore.com>
5476 * a-tags.ads: Fix description of TSD structure.
5478 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5480 * sem_ch12.adb (Mark_Context): When indicating that the body of a
5481 generic unit is needed prior to the unit containing an instantiation,
5482 search recursively the context of the generic to add other generic
5483 bodies that may be instantiated indirectly through the current instance.
5485 2010-06-23 Robert Dewar <dewar@adacore.com>
5487 * freeze.adb: Minor reformatting.
5489 2010-06-23 Bob Duff <duff@adacore.com>
5491 * g-pehage.adb (Trim_Trailing_Nuls): Fix the code to match the comment.
5493 2010-06-23 Vincent Celier <celier@adacore.com>
5495 * make.adb (Compile_Sources): Complete previous change.
5497 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5499 * sem_ch6.adb (Add_Extra_Formal): Use suffix "C" in the name of the
5500 Constrained extra formal.
5502 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5504 * exp_ch13.adb (Expand_Freeze_Actions): If validity checks and
5505 Initialize_Scalars are enabled, compile the generated equality function
5506 for a composite type with full checks enabled, so that validity checks
5507 are performed on individual components.
5509 2010-06-23 Emmanuel Briot <briot@adacore.com>
5511 * prj.adb, prj.ads, prj-nmsc.adb (Processing_Flags): New flag
5512 Missing_Source_Files.
5514 2010-06-23 Robert Dewar <dewar@adacore.com>
5516 * exp_ch3.adb, exp_util.adb: Minor reformatting.
5518 2010-06-23 Jose Ruiz <ruiz@adacore.com>
5520 * a-reatim.adb, a-retide.adb: Move the initialization of the tasking
5521 run time from Ada.Real_Time.Delays to Ada.Real_Time. This way, calls to
5522 Clock (without delays) use a run time which is properly initialized.
5524 2010-06-23 Vincent Celier <celier@adacore.com>
5526 * make.adb: Do not set Check_Readonly_Files when setting Must_Compile,
5527 when -f -u and a main is specified on the command line. However,
5528 attempt to compile even when the ALI file is read-only when
5529 Must_Compile is True.
5531 2010-06-23 Thomas Quinot <quinot@adacore.com>
5533 * checks.adb, g-pehage.adb, cstand.adb: Minor code factorization.
5535 2010-06-23 Javier Miranda <miranda@adacore.com>
5537 * sem_ch3.adb (Add_Internal_Interface_Entities): Generate internal
5538 entities for parent types that are interfaces. Needed in generics to
5539 handle formals that implement interfaces.
5540 (Derive_Subprograms): Add assertion for derivation of tagged types that
5541 do not cover interfaces. For generics, complete code that handles
5542 derivation of type that covers interfaces because the previous
5543 condition was weak (it required only name consistency; arguments were
5544 not checked). Add new code to locate primitives covering interfaces
5545 defined in generic units or instantiatons.
5546 * sem_util.adb (Has_Interfaces): Add missing support for derived types.
5547 * sem_ch6.adb (Check_Overriding_Indicator): Minor code cleanups.
5548 * exp_disp.adb (Make_Select_Specific_Data_Table): Skip primitives of
5549 interfaces that are parents of the type because they share the primary
5551 (Register_Primitive): Do not register primitives of interfaces that
5552 are parents of the type.
5553 * sem_ch13.adb (Analyze_Freeze_Entity): Add documentation.
5554 * exp_cg.adb (Write_Type_Info): When displaying overriding of interface
5555 primitives skip primitives of interfaces that are parents of the type.
5557 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5559 * sem_attr.adb (Eval_Attribute): If the prefix is an array, the
5560 attribute cannot be constant-folded if an index type is a formal type,
5561 or is derived from one.
5562 * checks.adb (Determine_Range): ditto.
5564 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5566 * gnat_ugn.texi, gnatxref.adb: Add support for --ext switch.
5568 2010-06-23 Bob Duff <duff@adacore.com>
5570 * g-pehage.ads, g-pehage.adb (Put): Fix off-by-one bug.
5571 (Insert): Disallow nul characters.
5572 (misc output routines): Assert no nul characters.
5574 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5576 * exp_ch4.adb: Use predefined unsigned type in all cases.
5578 2010-06-23 Bob Duff <duff@adacore.com>
5580 * s-rannum.adb (Reset): Avoid overflow in calculation of Initiator.
5581 * g-pehage.ads: Minor comment fixes.
5582 * g-pehage.adb: Minor: Add some additional debugging printouts under
5585 2010-06-23 Robert Dewar <dewar@adacore.com>
5587 * binde.adb (Better_Choice): Always prefer Pure/Preelab.
5588 (Worse_Choice): Always prefer Pure/Preelab.
5590 2010-06-23 Vincent Celier <celier@adacore.com>
5592 * a-reatim.adb: Call System.OS_Primitives.Initialize during elaboration
5594 2010-06-23 Robert Dewar <dewar@adacore.com>
5596 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Properly handle
5597 checking returns in generic case.
5598 (Check_Missing_Return): New procedure.
5600 2010-06-23 Robert Dewar <dewar@adacore.com>
5602 * bindgen.adb, switch-b.adb: Minor reformatting.
5604 2010-06-23 Javier Miranda <miranda@adacore.com>
5606 * frontend.adb (Frontend): Add call to initialize the new package
5608 * exp_ch7.adb (Wrap_Transient_Expression): Remove call to
5610 (Wrap_Transient_Statement): Remove call to Adjust_SCIL_Node.
5611 * sem_ch5.adb (Analyze_Iteration_Scheme.Process_Bounds): Remove call to
5613 * exp_util.adb (Insert_Actions): Remove code for
5614 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
5615 (Remove_Side_Effects): Remove calls to Adjust_SCIL_Node.
5616 * sinfo.adb (SCIL_Entity, SCIL_Tag_Value): Remove checks on
5617 N_SCIL_Tag_Init and N_SCIL_Dispatch_Table_Object_Init in the assertion.
5618 (SCIL_Related_Node, Set_SCIL_Related_Node): Removed.
5619 * sinfo.ads (SCIL_Related_Node): Field removed.
5620 (N_SCIL_Dispatch_Table_Object_Init): Node removed.
5621 (N_SCIL_Tag_Init): Node removed.
5622 * sem_scil.ads, sem_scil.adb (Adjust_SCIL_Node): Removed.
5623 (Check_SCIL_Node): New implementation.
5624 (Find_SCIL_Node): Removed.
5625 * sem.adb (Analyze): Remove management of
5626 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
5627 * sem_util.adb (Insert_Explicit_Dereference): Remove call to
5629 * exp_ch4.adb (Expand_N_In): Code cleanup: remove call to
5630 Set_SCIL_Related_Node and avoid adding the SCIL node before the
5631 referenced node using Insert_Action because this is not longer
5633 (Expand_Short_Circuit_Operator): Remove call to SCIL node.
5634 * exp_ch6.adb (Expand_Call): Remove call to Adjust_SCIL_Node.
5635 * sem_ch4.adb (Analyze_Type_Conversion): Remove call to
5637 * exp_disp.adb (Expand_Dispatching_Call): Minor code reorganization
5638 because we no longer require to generate the SCIL node before the call.
5639 (Make_DT): Remove generation of SCI_Dispatch_Table_Object_Init node.
5640 Remove calls to Set_SCIL_Related_Node and avoid adding the SCIL
5641 nodes before the referenced node using Insert_Action because this
5642 is not longer required.
5643 * atree.adb (Allocate_Initialize_Node, Replace, Rewrite): Add call to
5644 update the SCIL_Node field.
5645 * sprint.adb (Sprint_Node_Actual): Remove code for
5646 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
5647 * treepr.adb (Print_Node): Print the SCIL node field (if available).
5648 * exp_ch3.adb (Build_Init_Procedure): Remove generation of
5649 SCIL_Tag_Init nodes.
5650 * scil_ll.ads, scil_ll.adb: New files.
5651 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
5654 2010-06-23 Robert Dewar <dewar@adacore.com>
5656 * sem_ch6.adb: Minor reformatting.
5658 2010-06-23 Doug Rupp <rupp@adacore.com>
5660 * bindusg.adb (Display): Write -Hnn line.
5661 * bindgen.adb (Gen_Adainit_Ada): Write Heap_Size to binder file as
5663 * init.c (__gl_heap_size): Rename from __gl_no_malloc_64 and change
5664 valid values to 32 and 64.
5665 (GNAT$NO_MALLOC_64): Recognize TRUE, 1, FALSE, and 0 in addition to
5666 ENABLE, DISABLE as valid settings.
5667 * switch-b.adb (Scan_Binder_Switches): Process -Hnn switch.
5668 * opt.ads (Heap_Size): New global variable.
5669 * gcc-interface/utils2.c (maybe_wrap_malloc): Remove mostly redundant
5670 TARGET_MALLOC64 check. Fix comment.
5672 2010-06-23 Robert Dewar <dewar@adacore.com>
5674 * sem_ch6.adb, exp_ch4.adb, s-rannum.ads, sem.adb, sem_ch12.adb: Minor
5675 reformatting. Add comments.
5676 * errout.adb (Finalize): Properly adjust warning count when deleting
5679 2010-06-22 Robert Dewar <dewar@adacore.com>
5681 * errout.adb (Finalize): Set Prev pointers.
5682 (Finalize): Delete continuations for deletion by warnings off(str).
5683 * erroutc.ads: Add Prev pointer to error message structure.
5685 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5687 * sem.adb (Do_Unit_And_Dependents): If the spec of the main unit is a
5688 child unit, examine context of parent units to locate instantiated
5689 generics whose bodies may be needed.
5690 * sem_ch12.adb: (Mark_Context): if the enclosing unit does not have a
5691 with_clause for the instantiated generic, examine the context of its
5692 parents, to set Withed_Body flag, so that it can be visited earlier.
5693 * exp_ch4.adb (Expand_N_Op_Not): If this is a VMS operator applied to
5694 an unsigned type, use a type of the proper size for the intermediate
5695 value, to prevent alignment problems on unchecked conversion.
5697 2010-06-22 Geert Bosch <bosch@adacore.com>
5699 * s-rannum.ads Change Generator type to be self-referential to allow
5700 Random to update its argument. Use "in" mode for the generator in the
5701 Reset procedures to allow them to be called from the Ada.Numerics
5702 packages without tricks.
5703 * s-rannum.adb: Use the self-referencing argument to get write access
5704 to the internal state of the random generator.
5705 * a-nudira.ads: Make Generator a derived type of
5706 System.Random_Numbers.Generator.
5707 * a-nudira.adb: Remove use of 'Unrestricted_Access.
5708 Put subprograms in alpha order and add headers.
5709 * g-mbdira.ads: Change Generator type to be self-referential.
5710 * g-mbdira.adb: Remove use of 'Unrestricted_Access.
5712 2010-06-22 Robert Dewar <dewar@adacore.com>
5714 * freeze.adb: Minor reformatting
5715 Minor code reorganization (use Nkind_In and Ekind_In).
5717 2010-06-22 Bob Duff <duff@adacore.com>
5719 * gnat1drv.adb (Gnat1drv): Remove the messages that recommend using
5720 -gnatc when a file is compiled that we cannot generate code for, not
5721 helpful and confusing.
5723 2010-06-22 Vincent Celier <celier@adacore.com>
5725 * switch-m.adb (Normalize_Compiler_Switches): Process correctly
5728 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
5730 * s-rannum.adb: Replace constants with commented symbols.
5731 * s-rannum.ads: Explain significance of the initial value of the data
5734 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5736 * a-ngcoty.adb: Clarify comment.
5738 2010-06-22 Gary Dismukes <dismukes@adacore.com>
5740 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Return without
5741 expansion for indexing packed arrays with small power-of-2 component
5742 sizes when the target is AAMP.
5743 (Expand_Packed_Element_Reference): Return without expansion for
5744 indexing packed arrays with small power-of-2 component sizes when the
5747 2010-06-22 Geert Bosch <bosch@adacore.com>
5749 * exp_ch4.adb (Expand_N_In): Do not substitute a valid check for X in
5752 2010-06-22 Robert Dewar <dewar@adacore.com>
5754 * g-mbdira.adb, g-mbflra.adb, a-nuflra.adb, a-nudira.adb: Minor comment
5757 2010-06-22 Doug Rupp <rupp@adacore.com>
5759 * system-vms.ads, system-vms-zcx.ads: Remove old unused VMS system
5761 * system-vms_64.ads, system-vms-ia64.ads: Minor reformatting.
5762 (pragma Ident): Add a default ident string in the private part.
5764 2010-06-22 Robert Dewar <dewar@adacore.com>
5766 * cstand.adb: Minor reformatting.
5768 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5770 * freeze.adb (Build_And_Analyze_Renamed_Body): For expansion purposes,
5771 recognize the Shift and Rotation intrinsics that are known to the
5772 compiler but have no interface name.
5774 2010-06-22 Geert Bosch <bosch@adacore.com>
5776 * a-ngcoty.adb ("*"): Rewrite complex multiplication to use proper
5777 scaling in case of overflow or NaN results.
5779 2010-06-22 Robert Dewar <dewar@adacore.com>
5781 * cstand.adb: Complete previous change.
5782 * g-dirope.ads: Add comment.
5783 * s-stchop.adb, sfn_scan.adb: Minor reformatting.
5785 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5787 * cstand.adb: Add tree nodes for pragma Pack on string types.
5789 2010-06-22 Javier Miranda <miranda@adacore.com>
5791 * einfo.ads, einfo.adb (Last_Formal): New synthesized attribute.
5792 * exp_util.adb (Find_Prim_Op): Use new attribute to locate the last
5793 formal of a primitive.
5794 * exp_disp.adb (Is_Predefined_Dispatching_Operation,
5795 Is_Predefined_Dispatching_Alias): Use new attribute to locate the last
5796 formal of a primitive.
5797 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Use new attribute
5798 to obtain the last formal of a primitive.
5800 2010-06-22 Geert Bosch <bosch@adacore.com>
5802 * sysdep.c, init.c, adaint.c, cstreams.c: Remove conditional code
5803 depending on __EMX__ or MSDOS being defined.
5804 * i-cstrea.ads, gnat_rm.texi: Remove mentions of OS/2, DOS and Xenix.
5805 * a-excpol-abort.adb: Update comment indicating users of the file.
5806 * xref_lib.adb, sfn_scan.adb: Remove mention of OS/2, replace NT by
5808 * env.c: Remove empty conditional for MSDOS.
5809 * s-stchop.adb, g-dirope.ads, s-fileio.adb, osint.ads: Remove mention
5812 2010-06-22 Robert Dewar <dewar@adacore.com>
5814 * s-rannum.adb: Minor reformatting.
5816 2010-06-22 Javier Miranda <miranda@adacore.com>
5818 * sem_aux.adb, sem_aux.ads, sem_util.adb, sem_util.ads, sem_elim.adb,
5819 exp_cg.adb: Minor code reorganization: Move routine Ultimate_Alias from
5820 package Sem_Util to package Sem_Aux.
5822 2010-06-22 Javier Miranda <miranda@adacore.com>
5824 * exp_disp.adb (Make_Secondary_DT, Make_DT): Minor code cleanup:
5825 remove useless restriction on imported routines when building the
5828 2010-06-22 Robert Dewar <dewar@adacore.com>
5830 * cstand.adb (Create_Standard): Set Has_Pragma_Pack for standard string
5833 2010-06-22 Javier Miranda <miranda@adacore.com>
5835 * sem_ch4.adb (Collect_Generic_Type_Ops): Protect code that handles
5836 generic subprogram declarations to ensure proper context. Add missing
5837 support for generic actuals.
5838 (Try_Primitive_Operation): Add missing support for concurrent types
5839 that have no Corresponding_Record_Type. Required to diagnose errors
5841 generics or when compiling with no code generation (-gnatc).
5842 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Do not build
5843 the corresponding record type.
5844 * sem_disp.ads, sem_disp.adb (Check_Dispatching_Operation): Complete
5845 documentation. Do minimum decoration when processing a primitive of a
5846 concurrent tagged type that covers interfaces. Required to diagnose
5847 errors in the Object.Operation notation compiling generics or under
5849 * exp_ch9.ads, exp_ch9.adb (Build_Corresponding_Record): Add missing
5850 propagation of attribute Interface_List to the corresponding record.
5851 (Expand_N_Task_Type_Declaration): Code cleanup.
5852 (Expand_N_Protected_Type_Declaration): Code cleanup.
5854 2010-06-22 Matthew Heaney <heaney@adacore.com>
5856 * a-convec.adb, a-coinve.adb: Removed 64-bit types Int and UInt.
5858 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
5860 * s-rannum.adb (Random_Float_Template): Replace with unbiased version
5861 that is able to produce all representable floating-point numbers in the
5862 unit interval. Remove template parameter Shift_Right, no longer used.
5863 * gnat_rm.texi: Document the period of the pseudo-random number
5864 generator under the description of its algorithm.
5865 * gcc-interface/Make-lang.in: Update dependencies.
5867 2010-06-22 Thomas Quinot <quinot@adacore.com>
5869 * exp_aggr.adb (Rewrite_Discriminant): Fix predicate used to identify
5870 reference to discriminant (can be an expanded name as well as an
5873 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5875 * exp_ch6.adb: Clarify comment.
5877 2010-06-22 Geert Bosch <bosch@adacore.com>
5879 * exp_imgv.adb (Expand_Image_Attribute): Treat ordinary fixed point
5880 with decimal small as decimal types, avoiding FP arithmetic.
5881 (Has_Decimal_Small): New function.
5882 * einfo.ads, einfo.adb (Aft_Value): New synthesized attributed for
5884 * sem_attr.adb (Eval_Attribute): Remove Aft_Value function and update
5885 callers to call the new function in Einfo that takes the entity as
5888 2010-06-22 Robert Dewar <dewar@adacore.com>
5890 * sem_ch3.adb, sem_ch8.adb: Minor reformatting.
5892 2010-06-22 Thomas Quinot <quinot@adacore.com>
5894 * sem_elab.adb: Minor reformatting.
5896 2010-06-22 Vincent Celier <celier@adacore.com>
5898 * gnatsym.adb: Put the object files in the table in increasing
5899 aphabetical order of base names.
5901 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5903 * sem_ch8.adb (Set_Entity_Or_Discriminal): New procedure used by
5904 Find_Direct_Name and Find_Expanded_Name, to replace a discriminant with
5905 the corresponding discriminal within a record declaration.
5907 2010-06-22 Thomas Quinot <quinot@adacore.com>
5909 * exp_aggr.adb (Rewrite_Discriminant): Rewriting must occur only for an
5910 expression referring to a discriminal of the type of the aggregate (not
5911 a discriminal of some other unrelated type), and the prefix in the
5912 generated selected component must come from Lhs, not Obj.
5914 2010-06-22 Thomas Quinot <quinot@adacore.com>
5916 * sem_ch3.adb (Build_Derived_Record_Type): Fix predicate determining
5917 when to freeze the parent type.
5919 2010-06-22 Robert Dewar <dewar@adacore.com>
5921 * s-rannum.adb, a-nudira.adb, types.ads, freeze.adb, sem_aggr.adb,
5922 exp_aggr.adb: Minor reformatting.
5923 * gnat_rm.texi: Document GNAT.MBBS_Discrete_Random and
5924 GNAT.MBSS_Float_Random.
5925 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: Fix header.
5927 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
5929 * a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-nuflra.ads,
5930 gnat_rm.texi, impunit.adb, Makefile.rtl, s-rannum.adb
5931 (Random_Float_Template, Random): New method of creating
5932 uniform floating-point variables that allow the creation of all machine
5935 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: New file.
5937 2010-06-22 Gary Dismukes <dismukes@adacore.com>
5939 * sem_ch5.adb (Analyze_Assignment): Revise test for illegal assignment
5940 to abstract targets to check that the type is tagged and comes from
5941 source, rather than only testing for targets of interface types. Remove
5944 2010-06-22 Vincent Celier <celier@adacore.com>
5946 * vms_data.ads: Modify the declarations of qualifiers
5947 /UNCHECKED_SHARED_LIB_IMPORTS to allow the generation of gnat.hlp
5950 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5952 * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false if
5953 expansion is disabled.
5955 2010-06-22 Robert Dewar <dewar@adacore.com>
5957 * makeusg.adb: Minor reformatting.
5959 2010-06-22 Robert Dewar <dewar@adacore.com>
5961 * types.ads: (Dint): Removed, no longer used anywhere.
5962 * uintp.adb (UI_From_CC): Use UI_From_Int, range is sufficient.
5963 (UI_Mul): Avoid use of UI_From_Dint.
5964 (UI_From_Dint): Removed, not used.
5965 * uintp.ads (UI_From_Dint): Removed, not used.
5966 (Uint_Min/Max_Simple_Mul): New constants.
5968 2010-06-22 Vincent Celier <celier@adacore.com>
5970 * clean.adb (Parse_Cmd_Line): Recognize switch
5971 --unchecked-shared-lib-imports.
5972 (Usage): Add line for switch --unchecked-shared-lib-imports
5973 * makeusg.adb: Add line for switch --unchecked-shared-lib-imports
5974 * makeutl.ads: (Unchecked_Shared_Lib_Imports): New constant string
5975 moved from GPR_Util.
5976 * switch-m.adb (Scan_Make_Switches): Recognize switch
5977 --unchecked-shared-lib-imports.
5978 * vms_data.ads: Add VMS qualifiers /UNCHECKED_SHARED_LIB_IMPORTS.
5979 * gnat_ugn.texi: Add documentation for new switch
5980 --unchecked-shared-lib-imports. Add also documentation for --subdirs.
5982 2010-06-22 Javier Miranda <miranda@adacore.com>
5984 * sem_prag.adb, sem_util.adb, sem_util.ads, sem_attr.adb, exp_ch6.adb,
5985 exp_disp.adb, sem_eval.adb, exp_dist.adb lib-xref.adb: Code cleanup,
5986 this patch replaces duplication of code that traverses the chain of
5987 aliased primitives by a call to routine Ultimate_Alias that
5988 provides this functionality.
5990 2010-06-22 Arnaud Charlet <charlet@adacore.com>
5992 * fmap.adb, opt.ads, osint.adb, osint.ads, output.ads, scng.adb,
5993 sinput-c.adb, switch-m.ads, tree_io.ads: Use simpler form of
5996 2010-06-22 Thomas Quinot <quinot@adacore.com>
5998 * einfo.ads: Minor reformatting.
6000 2010-06-22 Javier Miranda <miranda@adacore.com>
6002 * exp_disp.adb (Expand_Interface_Thunk): Do not generate thunk of
6003 eliminated primitives.
6004 (Make_DT): Avoid referencing eliminated primitives.
6005 (Register_Primitive): Do not register eliminated primitives in the
6006 dispatch table. Required to add this functionality when the program is
6007 compiled without static dispatch tables (-gnatd.t)
6009 2010-06-22 Emmanuel Briot <briot@adacore.com>
6011 * fmap.adb, scng.adb, switch-m.ads, sinput-c.adb, opt.ads, output.ads,
6012 tree_io.ads, osint.adb, osint.ads: Use configuration pragmas to prevent
6013 warnings on use of internal GNAT units.
6015 2010-06-22 Jose Ruiz <ruiz@adacore.com>
6017 * s-taprop-vxworks.adb (Set_Priority): Update comments.
6019 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6021 * s-rannum.adb: Make stylistic change to remove mystery constant in
6022 Extract_Value. Image_Numeral_Length: new symbolic constant.
6024 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6026 * einfo.ads, einfo.adb: Make Is_Protected_Interface,
6027 Is_Synchronized_Interface, Is_Task_Interface into computable
6028 predicates, to free three flags in entity nodes.
6029 * sem_ch3.adb: Remove setting of these flags.
6031 2010-06-22 Robert Dewar <dewar@adacore.com>
6033 * uintp.adb, osint.adb, prj-conf.adb, prj-part.adb, prj.adb: Minor
6035 * s-taprop-vxworks.adb: Add comment for Set_Priority.
6036 * impunit.adb (Map_Array): Add entries for s-htable.ads and s-crc32.ads
6037 * projects.texi: Move @cindex to the left margin, since otherwise we
6038 are missing entries in the index.
6040 2010-06-22 Emmanuel Briot <briot@adacore.com>
6042 * prj-part.adb, prj.adb, tempdir.ads, makeutl.adb: Use
6043 packages from the GNAT hierarchy instead of System when possible.
6044 * gcc-interface/Make-lang.in: Update dependencies.
6046 2010-06-22 Jose Ruiz <ruiz@adacore.com>
6048 * s-taprop-vxworks.adb (Set_Priority): Remove the code that was
6049 previously in place to reorder the ready queue when a task drops its
6050 priority due to the loss of inherited priority.
6052 2010-06-22 Vincent Celier <celier@adacore.com>
6054 * projects.texi: Minor spelling error fixes.
6057 2010-06-22 Emmanuel Briot <briot@adacore.com>
6059 * prj-part.adb, prj-ext.adb, prj.adb, makeutl.adb, prj-conf.adb: Remove
6060 warnings for some with clauses.
6062 2010-06-22 Robert Dewar <dewar@adacore.com>
6064 * errout.adb (Unwind_Internal_Type): Improve handling of First_Subtype
6065 test to catch more cases where first subtype is the results we want.
6066 * sem_res.adb (Make_Call_Into_Operator): Don't go to First_Subtype in
6067 error case, since Errout will now handle this correctly.
6068 * gcc-interface/Make-lang.in: Add Sem_Aux to list of GNATBIND objects.
6069 Update dependencies.
6071 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6073 * exp_ch4.adb (Expand_Allocator_Expression): Set Related_Node properly
6074 when calling Make_Temporary.
6076 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6078 * sem_ch3.adb (Access_Subprogram_Declaration): An anonymous access to
6079 subprogram can be associated with an entry body.
6081 2010-06-22 Robert Dewar <dewar@adacore.com>
6083 * scos.ads: Add note on membership test handling.
6085 2010-06-22 Vincent Celier <celier@adacore.com>
6087 * projects.texi: Minor spelling fixes.
6090 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6092 * s-rannum.adb: Correct off-by-one error in Extract_Value.
6094 2010-06-22 Vincent Celier <celier@adacore.com>
6096 * mlib-prj.adb (Display): In non verbose mode, truncate after fourth
6098 * mlib-utl.adb (Gcc): In non verbose mode, truncate the display of the
6099 gcc command if it is too long.
6101 2010-06-22 Robert Dewar <dewar@adacore.com>
6103 * errout.adb (Set_Msg_Node): Fix incorrect reference to node.
6105 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6107 * exp_ch6.adb (Expand_Actuals): Use Actual as the related node when
6108 calling Make_Temporary.
6110 2010-06-22 Robert Dewar <dewar@adacore.com>
6112 * sem_res.adb, sem_aux.adb, errout.adb: Minor reformatting.
6114 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6116 * sem_res.adb: Additional special-case for VMS.
6118 2010-06-22 Vincent Celier <celier@adacore.com>
6120 * gnatsym.adb: Minor comment fix.
6122 2010-06-22 Vincent Celier <celier@adacore.com>
6124 * prj-nmsc.adb (Process_Naming_Scheme): Initialize Lib_Data_Table.
6126 2010-06-22 Robert Dewar <dewar@adacore.com>
6128 * par-ch4.adb (P_Name): Recognize 'Mod attribute in Ada 95 mode
6129 * sem_attr.adb (Attribute_05): Add Name_Mod so that 'Mod recognized in
6130 Ada 95 mode as an implementation defined attribute.
6132 2010-06-22 Vincent Celier <celier@adacore.com>
6134 * bindusg.adb (Display): Update line for -R
6135 * switch-b.adb (Scan_Binder_Switches): Allow generation of the binder
6136 generated files when -R is used.
6138 2010-06-22 Vincent Celier <celier@adacore.com>
6140 * prj-nmsc.adb (Lib_Data_Table): New table.
6141 (Check_Library_Attributes): Check if the same library name is used in
6142 two different projects that do not extend each other.
6144 2010-06-22 Robert Dewar <dewar@adacore.com>
6146 * lib-writ.ads, errout.adb, einfo.adb, einfo.ads: Minor reformatting.
6148 2010-06-22 Vincent Celier <celier@adacore.com>
6150 * adaint.c (__gnat_locate_regular_file): If a directory in the path is
6151 empty, make it the current working directory.
6153 2010-06-22 Thomas Quinot <quinot@adacore.com>
6155 * sem_ch3.adb (Build_Derived_Record_Type): When deriving a tagged
6156 private type with discriminants, make sure the parent type is frozen.
6158 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
6160 * exp_attr.adb (Expand_N_Attribute_Reference) <Attribute_Bit>: Deal
6161 with packed array references specially.
6162 * exp_ch4.adb (Expand_N_Indexed_Component): Do not convert a reference
6163 to a component of a bit packed array if it is the prefix of 'Bit.
6164 * exp_pakd.ads (Expand_Packed_Bit_Reference): Declare.
6165 * exp_pakd.adb (Expand_Packed_Bit_Reference): New procedure. Expand a
6166 'Bit reference, where the prefix involves a packed array reference.
6167 (Get_Base_And_Bit_Offset): New helper, extracted from...
6168 (Expand_Packed_Address_Reference): ...here. Call above procedure to
6169 get the outer object and offset expression.
6171 2010-06-22 Thomas Quinot <quinot@adacore.com>
6173 * exp_attr.adb, lib-writ.ads, bindgen.adb: Minor reformatting.
6174 * einfo.adb (Related_Expression, Set_Related_Expression): Add
6177 2010-06-22 Javier Miranda <miranda@adacore.com>
6179 * sem_ch3.adb (Add_Internal_Interface_Entities): Minor code
6180 reorganization to properly check if the operation has been inherited as
6181 an abstract operation.
6183 2010-06-22 Ed Falis <falis@adacore.com>
6185 * s-osinte-vxworks.ads: Complete previous change.
6187 2010-06-22 Thomas Quinot <quinot@adacore.com>
6189 * sem_res.adb: Add comment.
6190 * projects.texi, gnat_ugn.texi: Remove macro.
6192 2010-06-22 Vincent Celier <celier@adacore.com>
6194 * prj-attr.adb: Remove project level attribute Main_Language.
6196 2010-06-22 Robert Dewar <dewar@adacore.com>
6198 * switch-b.adb, osint-b.adb: Minor reformatting.
6200 2010-06-22 Pascal Obry <obry@adacore.com>
6202 * g-socthi-mingw.adb (C_Sendmsg): Do not attempt to send data from a
6203 vector if previous send was not fully successful. If only part of
6204 the vector data was sent, we exit the loop.
6206 2010-06-22 Thomas Quinot <quinot@adacore.com>
6208 * sem_res.adb (Make_Call_Into_Operator): Use First_Subtype for better
6209 error reporting with generic types.
6211 2010-06-22 Thomas Quinot <quinot@adacore.com>
6213 * bindgen.adb, bindusg.adb, gnatbind.adb, gnat_ugn.texi, opt.ads,
6214 osint-b.adb, osint-b.ads, output.adb, output.ads, switch-b.adb,
6215 vms_data.ads: Add a new command line switch -A to gnatbind to output
6216 the list of all ALI files for the partition.
6218 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6220 * s-osinte-vxworks.ads: Fix casing.
6221 * s-vxwext-kernel.ads, s-vxwext-rtp.ads: Complete previous
6222 change: Interfaces.C does not provide a long_long type.
6224 2010-06-22 Emmanuel Briot <briot@adacore.com>
6226 * gnat_ugn.texi, projects.texi: Preprocess projects.texi for VMS and
6227 native user's guide, since this document contains the two versions.
6228 * gcc-interface/Make-lang.in: Update doc dependencies.
6230 2010-06-22 Robert Dewar <dewar@adacore.com>
6232 * sem_ch3.adb: Minor reformatting. Minor code reorganization.
6234 2010-06-22 Emmanuel Briot <briot@adacore.com>
6236 * gnat_ugn.texi, projects.texi: Remove toplevel menu, since we should
6237 not build this file on its own (only through gnat_ugn.texi).
6238 Remove macro definitions and insert simpler version in gnat_ugn.texi.
6240 2010-06-22 Robert Dewar <dewar@adacore.com>
6242 * ali-util.ads: Minor comment update.
6243 * g-socthi-mingw.adb: Minor reformatting.
6245 2010-06-22 Ed Falis <falis@adacore.com>
6247 * s-osinte-vxworks.ads: Take sigset_t definition of System.VxWorks.Ext.
6248 * s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads: Define sigset_t
6249 for specific versions of VxWorks.
6251 2010-06-22 Emmanuel Briot <briot@adacore.com>
6253 * gnat_rm.texi, gnat_ugn.texi, projects.texi: Remove all project files
6254 related sections from user's guide and reference manual, since they
6255 have now been merged together into a separate document (projects.texi).
6256 This removes a lot of duplication where attributes where described
6258 The grammar for the project files is now in each of the sections
6259 (packages,expressions,...) instead of being duplicates in two other
6260 sections (one in the user's guide that contained the full grammar,
6261 and various sections in the rm that contained extracts of the same
6263 Added the full list of all supported attributes, since existing lists
6265 Rename "associative array" into "indexed attribute"
6266 Remove sections that were duplicates ("External References in
6267 Project Files" and "External Values", and "Project Extensions"
6268 for instance). The list of valid packages in project files is now in
6271 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6273 * sem_ch3.adb (Add_Internal_Interface_Entities): If
6274 Find_Primitive_Covering_Interface does not find the operation, it may
6275 be because of a name conflict between the inherited operation and a
6276 local non-overloadable name. In that case look for the operation among
6277 the primitive operations of the type. This search must succeed
6278 regardless of visibility.
6280 2010-06-22 Pascal Obry <obry@adacore.com>
6282 * g-socthi-mingw.adb: Properly honor MSG_WAITALL in recvmsg.
6283 (C_Recvmsg): Propely honor the MSG_WAITALL flag in Windows
6286 2010-06-22 Robert Dewar <dewar@adacore.com>
6288 * sem_ch4.adb (Analyze_Conditional_Expression): Defend against
6290 * sprint.adb (Sprint_Node_Actual, case N_Conditional_Expression):
6293 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6295 * s-intman-vxworks.ads: Code clean up.
6297 2010-06-22 Thomas Quinot <quinot@adacore.com>
6299 * sem_res.adb (Resolve_Slice): When the prefix is an explicit
6300 dereference, construct actual subtype of designated object to generate
6301 proper bounds checks.
6303 2010-06-22 Thomas Quinot <quinot@adacore.com>
6305 * ali-util.adb, ali-util.ads, gnatbind.adb (Read_ALI): Rename to
6306 Read_Withed_ALIs, which is more descriptive.
6308 2010-06-22 Pascal Obry <obry@adacore.com>
6310 * g-sothco.ads: Minor reformatting.
6311 * g-socthi-mingw.adb: Remove part of work on the C_Recvmsg and
6312 C_Sendmsg implementation.
6313 (C_Sendmsg): Do not use lock (not needed).
6314 (C_Recvmsg): Likewise and also do not wait for incoming data.
6316 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6318 * uintp.adb: Fix scope error in operator call.
6320 2010-06-22 Vincent Celier <celier@adacore.com>
6322 * makeutl.adb (Executable_Prefix_Path): on VMS, return "/gnu/".
6323 * prj-conf.adb (Get_Or_Create_Configuration_File): On VMS, if
6324 autoconfiguration is needed, fail indicating that no config project
6325 file can be found, as there is no autoconfiguration on VMS.
6327 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6329 * sem_res.adb (Make_Call_Into_Operator): Diagnose an incorrect scope
6330 for an operator in a functional notation, when operands are universal.
6332 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6334 * gcc-interface/Make-lang.in: Update dependencies.
6336 2010-06-22 Robert Dewar <dewar@adacore.com>
6338 * sem_aggr.adb (Resolve_Record_Aggregate): Do style check on component
6340 * sem_ch10.adb (Analyze_Subunit): Do style check on parent unit name.
6341 * sem_ch8.adb (Find_Direct_Name): For non-overloadable entities, do
6343 * sem_res.adb (Resolve_Entity_Name): Do style check for enumeration
6346 2010-06-22 Vincent Celier <celier@adacore.com>
6348 * make.adb (Scan_Make_Arg): No longer pass -nostdlib to the compiler as
6349 it has no effect. Always pass -nostdlib to gnatlink, even on VMS.
6351 2010-06-22 Pascal Obry <obry@adacore.com>
6353 * g-socthi-mingw.adb: Fix implementation of the vectored sockets on
6355 (C_Recvmsg): Make sure the routine is atomic. Also fully
6356 fill vectors in the proper order.
6357 (C_Sendmsg): Make sure the routine is atomic.
6359 2010-06-22 Robert Dewar <dewar@adacore.com>
6361 * sem_ch8.adb: Update comment.
6362 * sem_res.adb: Minor code reorganization (use Ekind_In).
6364 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6366 * sem_ch8.adb (Add_Implicit_Operator): If the context of the expanded
6367 name is a call, use the number of actuals to determine whether this is
6368 a binary or unary operator, rather than relying on later information
6369 to resolve the overload.
6371 2010-06-22 Robert Dewar <dewar@adacore.com>
6373 * sem_ch10.adb, sem_aggr.adb: Minor reformatting.
6375 2010-06-22 Robert Dewar <dewar@adacore.com>
6377 * sem_ch3.adb, sem_disp.adb: Minor code fixes.
6378 * sem_eval.adb: Minor reformatting.
6380 2010-06-22 Vincent Celier <celier@adacore.com>
6382 * make.adb (Scan_Make_Arg): When invoked with -nostdlib, pass -nostdlib
6383 to gnatlink, except on Open VMS.
6384 * osint.adb (Add_Default_Search_Dirs): Do not suppress the default
6385 object directories if -nostdlib is used.
6387 2010-06-22 Robert Dewar <dewar@adacore.com>
6389 * sem_util.adb (Is_Delegate): Put in proper alpha order.
6390 * sem_eval.adb: Minor reformatting.
6392 2010-06-22 Robert Dewar <dewar@adacore.com>
6394 * g-expect-vms.adb, sem_res.adb: Minor reformatting.
6395 * exp_aggr.adb: Minor comment changes and reformatting.
6396 * sem_eval.adb (Find_Universal_Operator_Type): Put in proper alpha
6398 * sem_util.ads: Add some missing pragma Inline's.
6400 2010-06-22 Thomas Quinot <quinot@adacore.com>
6402 * sem_util.adb (Build_Actual_Subtype): Record original expression in
6403 Related_Expression attribute of the constructed subtype.
6404 * einfo.adb, einfo.ads (Underlying_View): Move to Node28 to free up
6405 Node24 on types for...
6406 (Related_Expression): Make attribute available on types as well.
6408 2010-06-22 Gary Dismukes <dismukes@adacore.com>
6410 * exp_util.adb (Find_Interface_ADT): Retrieve Designated_Type instead
6411 of Directly_Designated_Type when the type argument is an access type.
6412 (Find_Interface_Tag): Retrieve Designated_Type instead of
6413 Directly_Designated_Type when the type argument is an access type.
6414 (Has_Controlled_Coextensions): Retrieve Designated_Type instead of
6415 Directly_Designated_Type of each access discriminant.
6416 * sem_res.adb (Resolve_Type_Conversion): Retrieve Designated_Type
6417 instead of Directly_Designated_Type when the operand and target types
6420 2010-06-22 Thomas Quinot <quinot@adacore.com>
6422 * exp_aggr.adb (Flatten): Return False if one choice is statically
6423 known to be out of bounds.
6425 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6427 * sem_res.adb (Resolve_Call): If the call is rewritten as an indexed of
6428 a parameterless function call, preserve parentheses of original
6429 expression, for proper handling by pretty printer.
6430 * sem_attr.adb (Analyze_Attribute, case 'Old): Add guard to Process
6431 procedure, to handle quietly identifiers that have no entity names.
6432 * exp_util.adb (Get_Current_Value_Condition): If the parent of an
6433 elsif_part is missing, it has been rewritten as a nested if, and there
6434 is no useful information on the current value of the variable.
6436 2010-06-22 Gary Dismukes <dismukes@adacore.com>
6438 * sem_ch3.adb (Build_Discriminal): Set default scopes for newly created
6439 discriminals to the current scope.
6440 * sem_util.adb (Find_Body_Discriminal): Remove setting of discriminal's
6441 scope, which could overwrite a different already set value.
6443 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6445 * sem_res.adb (Valid_Conversion): If expression is a predefined
6446 operator, use sloc of type of interpretation to improve error message
6447 when operand is of some derived type.
6448 * sem_eval.adb (Is_Mixed_Mode_Operand): New function, use it.
6450 2010-06-22 Emmanuel Briot <briot@adacore.com>
6452 * g-expect-vms.adb (Expect_Internal): No longer raises an exception, so
6453 that it can set out parameters as well. When a process has died, reset
6454 its Input_Fd to Invalid_Fd, so that when using multiple processes we
6455 can find out which process has died.
6457 2010-06-22 Thomas Quinot <quinot@adacore.com>
6459 * sem_eval.adb (Find_Universal_Operator_Type): New
6460 subprogram to identify the operand type of an operator on universal
6461 operands, when an explicit scope indication is present. Diagnose the
6462 case where such a call is ambiguous.
6463 (Eval_Arithmetic_Op, Eval_Relational_Op, Eval_Unary_Op):
6464 Use the above to identify the operand type so it can be properly
6466 * sem_res.adb (Make_Call_Into_Operator): Remove bogus freeze of operand
6467 type, done in an arbitrary, possibly incorrect type (the presence of
6468 some numeric type in the scope is checked for legality, but when more
6469 than one such type is in the scope, we just pick a random one, not
6470 necessarily the expected one).
6471 * sem_utils.ads, sem_utils.adb (Is_Universal_Numeric_Type): New utility
6474 2010-06-22 Robert Dewar <dewar@adacore.com>
6476 * sem_eval.adb: Minor reformatting.
6478 2010-06-22 Robert Dewar <dewar@adacore.com>
6480 * exp_ch4.adb (Expand_N_Conditional_Expression): Use
6481 Expression_With_Actions to clean up the code generated when folding
6482 constant expressions.
6484 2010-06-22 Vincent Celier <celier@adacore.com>
6486 * g-expect-vms.adb: Add new subprograms Free, First_Dead_Process and
6489 2010-06-22 Vincent Celier <celier@adacore.com>
6491 * prj-nmsc.adb (Find_Sources): When a source from a multi-unit file is
6492 found, check if it's path has aready been found, whatever its index.
6494 2010-06-22 Robert Dewar <dewar@adacore.com>
6496 * atree.adb, gnatbind.adb: Minor reformatting.
6497 Minor code reorganization.
6499 2010-06-21 Robert Dewar <dewar@adacore.com>
6501 * exp_ch4.adb (Expand_N_Conditional_Expression): Fold if condition
6502 known at compile time.
6504 2010-06-21 Gary Dismukes <dismukes@adacore.com>
6506 * atree.adb: Fix comment typo.
6508 2010-06-21 Ed Schonberg <schonberg@adacore.com>
6510 * sem_eval.adb (Test_Ambiguous_Operator): New procedure to check
6511 whether a universal arithmetic expression in a conversion, which is
6512 rewritten from a function call with an expanded name, is ambiguous.
6514 2010-06-21 Vincent Celier <celier@adacore.com>
6516 * prj-nmsc.adb (Name_Location): New Boolean component Listed, to record
6517 source files in specified list of sources.
6518 (Check_Package_Naming): Remove out parameters Bodies and Specs, as they
6520 (Add_Source): Set the Location of the new source
6521 (Process_Exceptions_File_Based): Call Add_Source with the Location
6522 (Get_Sources_From_File): If an exception is found, set its Listed to
6524 (Find_Sources): When Source_Files is specified, if an exception is
6525 found, set its Listed to True. Remove any exception that is not in a
6526 specified list of sources.
6527 * prj.ads (Source_Data): New component Location
6529 2010-06-21 Vincent Celier <celier@adacore.com>
6531 * gnatbind.adb (Closure_Sources): Global table, moved from block.
6533 2010-06-21 Thomas Quinot <quinot@adacore.com>
6535 * sem_res.adb: Minor reformatting.
6536 * atree.adb: New debugging hook "rr" for node rewrites.
6538 2010-06-21 Robert Dewar <dewar@adacore.com>
6540 * g-expect.ads, g-expect.adb: Minor reformatting.
6542 2010-06-21 Emmanuel Briot <briot@adacore.com>
6544 * s-regpat.adb (Next_Pointer_Bytes): New named constant. Code clean up.
6546 2010-06-21 Arnaud Charlet <charlet@adacore.com>
6548 * gcc-interface/Make-lang.in: Update dependencies.
6550 2010-06-21 Thomas Quinot <quinot@adacore.com>
6552 * bindgen.ads: Update comments.
6554 2010-06-21 Vincent Celier <celier@adacore.com>
6556 * gnatbind.adb: Suppress dupicates when listing the sources in the
6557 closure (switch -R).
6559 2010-06-21 Emmanuel Briot <briot@adacore.com>
6561 * s-regpat.adb (Link_Tail): Fix error when size of the pattern matcher
6564 2010-06-21 Emmanuel Briot <briot@adacore.com>
6566 * g-expect.adb, g-expect.ads (First_Dead_Process, Free, Has_Process):
6568 (Expect_Internal): No longer raises an exception, so that it can set
6569 out parameters as well. When a process has died, reset its Input_Fd
6570 to Invalid_Fd, so that when using multiple processes we can find out
6571 which process has died.
6573 2010-06-21 Robert Dewar <dewar@adacore.com>
6575 * s-regpat.adb, s-tpoben.adb, sem_attr.adb, sem_util.adb, sem_util.ads,
6576 checks.adb, sem_res.adb: Minor reformatting. Add comments.
6578 2010-06-21 Ed Schonberg <schonberg@adacore.com>
6580 * sem_ch6.adb (New_Overloaded_Entity): If the new entity is a
6581 rederivation associated with a full declaration in a private part, and
6582 there is a partial view that derives the same parent subprogram, the
6583 new entity does not become visible. This check must be applied to
6584 interface operations as well.
6586 2010-06-21 Thomas Quinot <quinot@adacore.com>
6588 * checks.adb: Add comments.
6589 * prj-nmsc.adb: Minor reformatting.
6591 2010-06-21 Thomas Quinot <quinot@adacore.com>
6593 * sem_ch9.adb, checks.adb, sem_util.adb, sem_util.ads, sem_res.adb,
6594 sem_attr.adb (Get_E_First_Or_Last): Use attribute references on E to
6595 extract bounds, to ensure that we get the proper captured values,
6596 rather than an expression that may have changed value since the point
6597 where the subtype was elaborated.
6598 (Find_Body_Discriminal): New utility subprogram to share code
6600 (Eval_Attribute): For the case of a subtype bound that references a
6601 discriminant of the current concurrent type, insert appropriate
6602 discriminal reference.
6603 (Resolve_Entry.Actual_Index_Type.Actual_Discriminant_Ref): For a
6604 requeue to an entry in a family in the current task, use corresponding
6606 (Analyze_Accept_Statement): Rely on expansion of attribute references
6607 to insert proper discriminal references in range check for entry in
6610 2010-06-21 Emmanuel Briot <briot@adacore.com>
6612 * s-regpat.adb (Compile): Fix handling of big patterns.
6614 2010-06-21 Robert Dewar <dewar@adacore.com>
6616 * a-tifiio.adb: Minor reformatting.
6618 2010-06-21 Pascal Obry <obry@adacore.com>
6620 * prj-nmsc.adb (Search_Directories): Use the non-translated directory
6623 2010-06-21 Javier Miranda <miranda@adacore.com>
6625 * exp_cg.adb (Write_Call_Info): Fill the component sourcename using the
6628 2010-06-21 Ed Schonberg <schonberg@adacore.com>
6630 * exp_ch4.adb (Expand_Concatenate): If an object declaration is created
6631 to hold the result, indicate that the target of the declaration does
6632 not need an initialization, to prevent spurious errors when
6633 Initialize_Scalars is enabled.
6635 2010-06-21 Ed Schonberg <schonberg@adacore.com>
6637 * a-tifiio.adb (Put): In the procedure that performs I/O on a String,
6638 Fore is not bound by line length. The Fore parameter of the internal
6639 procedure that performs the operation is an integer.
6641 2010-06-21 Thomas Quinot <quinot@adacore.com>
6643 * sem_res.adb, checks.adb: Minor reformatting.
6645 2010-06-21 Emmanuel Briot <briot@adacore.com>
6647 * s-regpat.adb (Next_Instruction, Get_Next_Offset): Removed, merged
6649 (Insert_Operator_Before): New subprogram, avoids duplicated code
6650 (Compile): Avoid doing two compilations when the pattern matcher ends
6653 2010-06-21 Emmanuel Briot <briot@adacore.com>
6655 * s-regpat.adb: Improve debug traces
6656 (Dump): Change output format to keep it smaller.
6658 2010-06-21 Javier Miranda <miranda@adacore.com>
6660 * exp_cg.adb (Generate_CG_Output): Disable redirection of standard
6661 output to the output file when this routine completes its work.
6663 2010-06-20 Eric Botcazou <ebotcazou@adacore.com>
6665 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Use while instead of
6666 for loop. Call build_constructor_from_list directly in the CICO case.
6668 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6670 * freeze.adb (Build_And_Analyze_Renamed_Body): If the renaming
6671 declaration appears in the same unit and ealier than the renamed
6672 entity, retain generated body to prevent order-of-elaboration issues in
6675 2010-06-18 Arnaud Charlet <charlet@adacore.com>
6677 * s-tpoben.adb: Update comments.
6679 2010-06-18 Robert Dewar <dewar@adacore.com>
6681 * debug.adb: Minor comment change.
6683 2010-06-18 Javier Miranda <miranda@adacore.com>
6685 * exp_cg.adb: Code clean up.
6686 * debug.adb: Complete documentation of switch -gnatd.Z.
6687 * gcc-interface/misc.c (callgraph_info_file): Declare.
6689 2010-06-18 Javier Miranda <miranda@adacore.com>
6691 * exp_cg.adb (Homonym_Suffix_Length): Minor code reorganization.
6693 2010-06-18 Thomas Quinot <quinot@adacore.com>
6695 * sprint.ads: Minor reformatting.
6696 * output.ads: Update obsolete comment.
6698 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6700 * freeze.adb (Build_And_Analyze_Renamed_Body): if the renamed entity is
6701 an external intrinsic operation (e.g. a GCC numeric function) indicate
6702 that the renaming entity has the same characteristics, so a call to it
6703 is properly expanded.
6705 2010-06-18 Javier Miranda <miranda@adacore.com>
6707 * exp_cg.adb, exp_cg.ads, exp_disp.adb, gnat1drv.adb: Add initial
6708 support for dispatch table/callgraph info generation.
6709 * gcc-interface/Make-lang.in: Update dependencies.
6711 2010-06-18 Robert Dewar <dewar@adacore.com>
6713 * exp_ch6.adb: Minor reformatting.
6714 * gnatname.adb: Add comment.
6716 2010-06-18 Vincent Celier <celier@adacore.com>
6718 * gnatname.adb (Scan_Args): When --and is used, make sure that the
6719 dynamic tables in the newly allocated Argument_Data are properly
6722 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
6724 * gnat1drv.adb: Fix comment.
6726 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6728 * exp_ch6.adb (Expand_Inlined_Call): If the inlined subprogram is a
6729 renaming, re-expand the call with the renamed subprogram if that one
6730 is marked inlined as well.
6732 2010-06-18 Gary Dismukes <dismukes@adacore.com>
6734 * gnat1drv.adb (Adjust_Global_Switches): Enable
6735 Use_Expression_With_Actions for AAMP and VM targets.
6737 2010-06-18 Vincent Celier <celier@adacore.com>
6739 * prj-nmsc.adb (Process_Linker): Recognize response file format GCC.
6741 2010-06-18 Thomas Quinot <quinot@adacore.com>
6743 * exp_ch4.adb: Minor reformatting.
6745 2010-06-18 Javier Miranda <miranda@adacore.com>
6747 * debug.ads Add documentation on -gnatd.Z.
6749 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6751 * sem_elim.adb: Proper error message on improperly eliminated instances
6753 2010-06-18 Vincent Celier <celier@adacore.com>
6755 * prj.ads (Response_File_Format): New value GCC.
6757 2010-06-18 Thomas Quinot <quinot@adacore.com>
6759 * gnat1drv.adb: Minor reformatting.
6761 2010-06-18 Robert Dewar <dewar@adacore.com>
6763 * make.adb, sem_cat.adb: Minor reformatting.
6764 * sem_eval.adb: Fix typos.
6766 2010-06-18 Pascal Obry <obry@adacore.com>
6768 * prj-nmsc.adb: Fix source filenames casing in debug output.
6770 2010-06-18 Robert Dewar <dewar@adacore.com>
6772 * gnatcmd.adb: Minor reformatting.
6774 2010-06-18 Robert Dewar <dewar@adacore.com>
6776 * sem_eval.adb (Eval_Conditional_Expression): Result is static if
6777 condition and both sub-expressions are static (and result is selected
6780 2010-06-18 Robert Dewar <dewar@adacore.com>
6782 * g-pehage.adb: Minor reformatting
6784 2010-06-18 Pascal Obry <obry@adacore.com>
6786 * prj-nmsc.adb (Search_Directories): Insert canonical filenames into
6789 2010-06-18 Arnaud Charlet <charlet@adacore.com>
6791 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
6792 dependencies. Fix target pairs on darwin.
6793 (gnatlib-sjlj, gnatlib-zcx): Pass THREAD_KIND.
6795 2010-06-18 Pascal Obry <obry@adacore.com>
6797 * make.adb, prj-nmsc.adb: Fix source filenames casing in debug output.
6799 2010-06-18 Vincent Celier <celier@adacore.com>
6801 * gnatcmd.adb: For gnatcheck, add -gnatec= switch for a global
6802 configuration pragmas file and, if -U is not used, for a local one.
6804 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6806 * sem_elim.adb (Check_Eliminated): Use full information on entity name
6807 when it is given in the pragma by a selected component.
6808 (Check_For_Eliminated_Subprogram): Do no emit error if within a
6809 instance body that is itself within a generic unit.
6810 * sem_ch12.adb (Analyze_Subprogram_Instance): If the subprogram is
6811 eliminated, mark as well the anonymous subprogram that is its alias
6812 and appears within the wrapper package.
6814 2010-06-18 Bob Duff <duff@adacore.com>
6816 * g-pehage.ads, g-pehage.adb (Produce): Clean up some of the code.
6817 Raise an exception if the output file cannot be opened. Add comments.
6819 2010-06-18 Thomas Quinot <quinot@adacore.com>
6821 * sem_cat.adb (Validate_Object_Declaration): A variable declaration is
6822 not illegal per E.2.2(7) if it occurs in the private part of a
6825 2010-06-18 Arnaud Charlet <charlet@adacore.com>
6827 * par-ch9.adb, sem_aggr.adb, sem_ch3.adb, layout.adb, sem_ch4.adb,
6828 sem_ch5.adb, sem_mech.adb, exp_util.adb, par-ch10.adb, sem_ch6.adb,
6829 par-ch11.adb, sem_ch7.adb, par-prag.adb, exp_disp.adb, par-ch12.adb,
6830 sem_ch8.adb, style.adb, sem_ch9.adb, sem_ch10.adb, prep.adb,
6831 sem_warn.adb, par-util.adb, scng.adb, sem_eval.adb, checks.adb,
6832 sem_prag.adb, sem_ch12.adb, styleg.adb, sem_ch13.adb, par-ch3.adb,
6833 par-tchk.adb, freeze.adb, sfn_scan.adb, par-ch4.adb, sem_util.adb,
6834 sem_res.adb, par-ch5.adb, lib-xref.adb, sem_attr.adb, par-ch6.adb,
6835 sem_disp.adb, prepcomp.adb, par-ch7.adb, sem_elab.adb, exp_ch4.adb,
6836 errout.ads: Update comments. Minor reformatting.
6838 * g-spipat.adb, a-swunau.adb, a-swunau.ads, g-spitbo.adb,
6839 a-szunau.adb, a-szunau.ads, a-stunau.adb, a-stunau.ads,
6840 a-strunb.adb (Big_String. Big_String_Access): New type.
6842 * par-labl.adb, restrict.adb, s-osinte-hpux-dce.ads, sem_ch11.adb,
6843 exp_pakd.adb, s-filofl.ads, par-endh.adb, exp_intr.adb, sem_cat.adb,
6844 sem_case.adb, exp_ch11.adb, s-osinte-linux.ads: Fix copyright notices.
6846 2010-06-18 Geert Bosch <bosch@adacore.com>
6848 * i-forbla-darwin.adb: Include -lgnala and -lm in linker options for
6851 2010-06-18 Robert Dewar <dewar@adacore.com>
6853 * gnat1drv.adb (Adjust_Global_Switches): Set Use_Expression_With_Actions
6856 2010-06-18 Robert Dewar <dewar@adacore.com>
6858 * sprint.adb: Minor format change for N_Expression_With_Actions.
6859 * repinfo.adb: Minor reformatting.
6861 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6863 * sem_elim.adb (Check_Eliminated): If within a subunit, use
6864 Defining_Entity to obtain the name of the entity in the proper body, to
6865 properly handle both separate packages and subprograms.
6867 2010-06-18 Emmanuel Briot <briot@adacore.com>
6869 * prj-nmsc.adb (Check_File): New parameter Display_Path.
6871 2010-06-18 Thomas Quinot <quinot@adacore.com>
6873 * g-socket.adb, g-socket.ads (Null_Selector): New object.
6875 2010-06-18 Pascal Obry <obry@adacore.com>
6877 * gnat_ugn.texi: Minor clarification.
6879 2010-06-18 Emmanuel Briot <briot@adacore.com>
6881 * prj-nmsc.adb (Find_Source_Dirs): Minor refactoring to avoid duplicate
6882 code when using the project dir as the source dir.
6883 (Search_Directories): use the normalized name for the source directory,
6884 where symbolic names have potentially been resolved.
6886 2010-06-18 Robert Dewar <dewar@adacore.com>
6888 * exp_ch4.adb (Expand_N_Conditional_Expression): Clear Actions field
6889 when we create N_Expression_With_Actions node.
6890 (Expand_Short_Circuit): Ditto.
6892 2010-06-18 Robert Dewar <dewar@adacore.com>
6894 * exp_util.adb: Minor reformatting.
6896 2010-06-18 Thomas Quinot <quinot@adacore.com>
6898 * types.ads: Clean up obsolete comments
6899 * tbuild.adb: Minor reformatting.
6900 * exp_ch5.adb, sem_intr.adb, sem_ch10.adb, rtsfind.adb, s-shasto.adb,
6901 exp_strm.adb, aa_drive.adb: Minor reformatting.
6902 * sem_res.adb (Is_Predefined_Operator): An operator that is an imported
6903 intrinsic with an Interface_Name denotes an imported back-end builtin,
6904 and must be rewritten into a call, not left in the tree as an operator,
6905 so return False in that case.
6907 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
6909 * exp_util.adb (Remove_Side_Effects): Make a copy for an allocator.
6911 2010-06-18 Robert Dewar <dewar@adacore.com>
6913 * scos.ads: Add proposed output for case expression
6915 2010-06-18 Jose Ruiz <ruiz@adacore.com>
6917 * gnat_ugn.texi: Document that, when using the RTX compiler to generate
6918 RTSS modules, we need to use the Microsoft linker.
6920 2010-06-18 Robert Dewar <dewar@adacore.com>
6922 * checks.adb (Safe_To_Capture_In_Parameter_Value): Deal with case
6923 expression (cannot count on a particular branch being executed).
6924 * exp_ch4.adb (Expand_N_Case_Expression): New procedure.
6925 * exp_ch4.ads (Expand_N_Case_Expression): New procedure.
6926 * exp_util.adb (Insert_Actions): Deal with proper insertion of actions
6927 within case expression.
6928 * expander.adb (Expand): Add call to Expand_N_Case_Expression
6929 * par-ch4.adb Add calls to P_Case_Expression at appropriate points
6930 (P_Case_Expression): New procedure
6931 (P_Case_Expression_Alternative): New procedure
6932 * par.adb (P_Case_Expression): New procedure
6933 * par_sco.adb (Process_Decisions): Add dummy place holder entry for
6935 * sem.adb (Analyze): Add call to Analyze_Case_Expression
6936 * sem_case.ads (Analyze_Choices): Also used for case expressions now,
6937 this is a documentation change only.
6938 * sem_ch4.ads, sem_ch4.adb (Analyze_Case_Expression): New procedure.
6939 * sem_ch6.adb (Fully_Conformant_Expressions): Add handling of case
6941 * sem_eval.ads, sem_eval.adb (Eval_Case_Expression): New procedure.
6942 * sem_res.adb (Resolve_Case_Expression): New procedure.
6943 * sem_scil.adb (Find_SCIL_Node): Add processing for
6944 N_Case_Expression_Alternative.
6945 * sinfo.ads, sinfo.adb (N_Case_Expression): New node.
6946 (N_Case_Expression_Alternative): New node.
6947 * sprint.adb (Sprint_Node_Actual): Add processing for new nodes
6948 N_Case_Expression and N_Case_Expression_Alternative.
6950 2010-06-18 Robert Dewar <dewar@adacore.com>
6952 * par-ch7.adb, sem_warn.adb, types.ads, par-ch3.adb: Minor
6954 * gnat1drv.adb: Fix typo.
6956 2010-06-18 Robert Dewar <dewar@adacore.com>
6958 * par-prag.adb (Prag, case Style_Checks): All_Checks sets gnat style
6960 * sem_prag.adb (Analyze_Pragma, case Style_Checks): All_Checks sets
6961 gnat style for -gnatg.
6962 * gnat_rm.texi: Add documentation for ALL_CHECKS in GNAT mode.
6964 2010-06-18 Thomas Quinot <quinot@adacore.com>
6966 * sem_eval.adb (Test_In_Range): New subprogram, factoring duplicated
6968 (Is_In_Range, Is_Out_Of_Range): Reimplement in terms of call to
6971 2010-06-18 Robert Dewar <dewar@adacore.com>
6973 * sprint.adb: Minor change in output format for expression wi actions.
6974 * par-ch3.adb: Minor code reorganization. Minor reformatting.
6975 * sem_ch5.adb: Minor comment fix.
6977 2010-06-18 Robert Dewar <dewar@adacore.com>
6979 * debug.adb: New debug flag -gnatd.L to control
6980 Back_End_Handles_Limited_Types.
6981 * exp_ch4.adb (Expand_N_Conditional_Expression): Let back end handle
6982 limited case if Back_End_Handles_Limited_Types is True.
6983 (Expand_N_Conditional_Expression): Use N_Expression_With_Actions to
6984 simplify expansion if Use_Expression_With_Actions is True.
6985 * gnat1drv.adb (Adjust_Global_Switches): Set
6986 Back_End_Handles_Limited_Types.
6987 * opt.ads (Back_End_Handles_Limited_Types): New flag.
6989 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6991 * sem_res.adb (Rewrite_Operator_As_Call): Do not rewrite user-defined
6992 intrinsic operator if expansion is not enabled, because in an
6993 instantiation the original operator must be present to verify the
6994 legality of the operation.
6996 2010-06-18 Robert Dewar <dewar@adacore.com>
6998 * exp_disp.adb, sem_ch12.adb: Minor reformatting
7000 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7002 * exp_util.adb (Make_Subtype_From_Expr): If the unconstrained type is
7003 the class-wide type for a private extension, and the completion is a
7004 subtype, set the type of the class-wide type to the base type of the
7007 2010-06-18 Robert Dewar <dewar@adacore.com>
7009 * g-socket.ads, sem_aggr.adb, einfo.ads, sem_elim.adb,
7010 sem_intr.adb, sem_eval.adb: Minor reformatting
7012 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7014 * sem_type.adb (Is_Ancestor): If either type is private, examine full
7017 2010-06-18 Thomas Quinot <quinot@adacore.com>
7019 * g-socket.adb, g-socket.ads (Check_Selector): Make Selector an IN
7020 parameter rather than IN OUT.
7022 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7024 * exp_ch6.adb: Add extra guard.
7026 2010-06-18 Gary Dismukes <dismukes@adacore.com>
7028 * sem_util.adb (Object_Access_Level): For Ada 2005, determine the
7029 accessibility level of a function call from the level of the innermost
7030 enclosing dynamic scope.
7031 (Innermost_Master_Scope_Depth): New function to find the depth of the
7032 nearest dynamic scope enclosing a node.
7034 2010-06-18 Tristan Gingold <gingold@adacore.com>
7036 * adaint.c: Make ATTR_UNSET static as it is not used outside this file.
7038 2010-06-18 Thomas Quinot <quinot@adacore.com>
7040 * g-socket.ads: Minor reformatting.
7042 2010-06-18 Vincent Celier <celier@adacore.com>
7044 * make.adb (Must_Compile): New Boolean global variable
7045 (Main_On_Command_Line): New Boolean global variable
7046 (Collect_Arguments_And_Compile): Do compile if Must_Compile is True,
7047 even when the project is externally built.
7048 (Start_Compile_If_Possible): Compile in -aL directories if
7049 Check_Readonly_Files is True. Do compile if Must_Compile is True, even
7050 when the project is externally built.
7051 (Gnatmake): Set Must_Compile and Check_Readonly_Files to True when
7052 invoked with -f -u and one or several mains on the command line.
7053 (Scan_Make_Arg): Set Main_On_Command_Line to True when at least one
7054 main is specified on the command line.
7056 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7058 * sem_ch6.adb (Build_Body_For_Inline): Handle
7059 extended_return_statements.
7060 * exp_ch6.adb (Expand_Inlined_Call): when possible, inline a body
7061 containing extented_return statements.
7062 * exp_util.adb (Make_CW_Equivalent_Type): If the root type is already
7063 constrained, do not build subtype declaration.
7065 2010-06-18 Robert Dewar <dewar@adacore.com>
7067 * sem_res.adb (Analyze_Indexed_Component, Analyze_Selected_Component):
7068 Warn on assigning to packed atomic component.
7070 2010-06-18 Robert Dewar <dewar@adacore.com>
7072 * sem_util.ads: Minor reformatting
7073 * einfo.ads, einfo.adb: Minor doc clarification (scope of decls in
7074 Expression_With_Actions).
7075 * snames.ads-tmpl: Minor comment fix
7077 2010-06-18 Robert Dewar <dewar@adacore.com>
7079 * sem_prag.adb (Diagnose_Multiple_Pragmas): New procedure
7080 (Set_Imported): Use Import_Interface_Present to control message output
7081 * sinfo.ads, sinfo.adb (Import_Interface_Present): New flag
7082 * gnat_rm.texi: Document that we can have pragma Import and pragma
7083 Interface for the same subprogram.
7085 2010-06-18 Robert Dewar <dewar@adacore.com>
7087 * lib-xref.adb (Generate_Reference): Fix bad reference to
7088 Has_Pragma_Unreferenced (clients should always use Has_Unreferenced).
7090 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7092 * gcc-interface/trans.c (set_gnu_expr_location_from_node): New static
7094 (gnat_to_gnu) <N_Expression_With_Actions>: New case.
7095 Use set_gnu_expr_location_from_node to set location information on the
7098 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7100 * gcc-interface/Make-lang.in: Update dependencies.
7102 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7104 * sem_util.adb (Is_Atomic_Object): Predicate does not apply to
7107 2010-06-17 Robert Dewar <dewar@adacore.com>
7109 * gnat_rm.texi, gnat_ugn.texi: Clean up documentation on warning and
7110 style check messages.
7111 * sem_res.adb (Resolve_Call): Don't call
7112 Check_For_Eliminated_Subprogram if we are analyzing within a spec
7115 2010-06-17 Robert Dewar <dewar@adacore.com>
7117 * debug.adb: Add documentation for debug flags .X and .Y
7118 * exp_ch4.adb (Expand_Short_Circuit_Operator): Use
7119 Use_Expression_With_Actions.
7120 * gnat1drv.adb (Adjust_Global_Switches): Set
7121 Use_Expression_With_Actions.
7122 * opt.ads (Use_Expression_With_Actions): New switch.
7124 2010-06-17 Robert Dewar <dewar@adacore.com>
7126 * exp_intr.adb: Minor code reorganization (use UI_Max)
7127 * sem_intr.adb: use underlying type to check legality.
7128 * einfo.adb (Known_Static_Esize): False for generic types
7129 (Known_Static_RM_Size): False for generic types
7130 * einfo.ads (Known_Static_Esize): False for generic types
7131 (Known_Static_RM_Size): False for generic types
7133 2010-06-17 Robert Dewar <dewar@adacore.com>
7135 * exp_ch4.ads: Minor code reorganization (specs in alpha order).
7137 2010-06-17 Robert Dewar <dewar@adacore.com>
7139 * debug.adb: New debug flag -gnatd.X to use Expression_With_Actions
7140 node when expanding short circuit form with actions present for right
7142 * exp_ch4.adb: Minor reformatting
7143 (Expand_Short_Circuit_Operator): Use new Expression_With_Actions node
7144 if right opeand has actions present, and debug flag -gnatd.X is set.
7145 * exp_util.adb (Insert_Actions): Handle case of Expression_With_Actions
7147 * nlists.adb (Prepend_List): New procedure
7148 (Prepend_List_To): New procedure
7149 * nlists.ads (Prepend_List): New procedure
7150 (Prepend_List_To): New procedure
7151 * sem.adb: Add processing for Expression_With_Actions
7152 * sem_ch4.adb (Analyze_Expression_With_Actions): New procedure
7153 * sem_ch4.ads (Analyze_Expression_With_Actions): New procedure
7154 * sem_res.adb: Add processing for Expression_With_Actions.
7155 * sem_scil.adb: Add processing for Expression_With_Actions
7156 * sinfo.ads, sinfo.adb (N_Expression_With_Actions): New node.
7157 * sprint.ads, sprint.adb: Add processing for Expression_With_Actions
7159 2010-06-17 Doug Rupp <rupp@adacore.com>
7161 * sem_intr.adb (Check_Intrinsic_Operator): Check that the types
7162 involved both have underlying integer types.
7163 * exp_intr.adb (Expand_Binary_Operator) New subprogram to expand a call
7164 to an intrinsic operator when the operand types or sizes are not
7166 * s-auxdec-vms_64.ads: Revert "+" "-" ops back to Address now that
7167 64/32 Address/Integer works.
7169 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7171 * sem_ch12.adb (Mark_Context): Refine placement of Withed_Body flag, so
7172 that it marks a unit as needed by a spec only if the corresponding
7173 instantiation appears in that spec (and not in the corresponding body).
7174 * sem_elim.adb (Check_Eliminated): If we are within a subunit, the name
7175 in the pragma Eliminate has been parsed as a child unit, but the
7176 current compilation unit is in fact the parent in which the subunit is
7179 2010-06-17 Vincent Celier <celier@adacore.com>
7181 * gnat_rm.texi: Fix typo
7183 2010-06-17 Robert Dewar <dewar@adacore.com>
7185 * sem_util.adb: Minor reformatting
7187 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7189 * sem.adb (Do_Withed_Unit): if the unit in the with_clause is a generic
7190 instance, the clause now denotes the instance body. Traverse the
7191 corresponding spec because there may be no other dependence that will
7192 force the traversal of its own context.
7194 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7196 * sem_ch10.adb (Is_Ancestor_Unit): Subsidiary to
7197 Install_Limited_Context_Clauses, to determine whether a limited_with in
7198 some parent of the current unit designates some other parent, in which
7199 case the limited_with clause must not be installed.
7200 (In_Context): Refine test.
7202 2010-06-17 Gary Dismukes <dismukes@adacore.com>
7204 * sem_util.adb (Collect_Primitive_Operations): In the of an untagged
7205 type with a dispatching equality operator that is overridden (for a
7206 tagged full type), don't include the overridden equality in the list of
7207 primitives. The overridden equality is detected by testing for an
7208 Aliased field that references the overriding equality.
7210 2010-06-17 Robert Dewar <dewar@adacore.com>
7212 * freeze.adb: Minor reformatting.
7214 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
7216 * gnat_ugn.texi: Add a section introducing gdbserver.
7218 2010-06-17 Thomas Quinot <quinot@adacore.com>
7220 * sem_res.adb, sem_ch4.adb, s-stoele.adb, par-labl.adb: Minor
7223 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7225 * sem_aggr.adb (Valid_Ancestor_Type): handle properly the case of a
7226 constrained discriminated parent that is a private type.
7227 (Analyze_Record_Aggregate): when collecting inherited discriminants,
7228 handle properly an ancestor type that is a constrained private type.
7230 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7232 * sem_util.adb (Enclosing_Subprogram): If the called subprogram is
7233 protected, use the protected_subprogram_body only if the original
7234 subprogram has not been eliminated.
7236 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7238 * freeze.adb (Freeze_Expression): The designated type of an
7239 access_to_suprogram type can only be frozen if all types in its profile
7242 2010-06-17 Robert Dewar <dewar@adacore.com>
7244 * par.adb: Minor comment fix
7245 * sem_aggr.adb, sem_ch3.adb: Minor reformatting
7247 2010-06-17 Doug Rupp <rupp@adacore.com>
7249 * s-auxdec-vms_64.ads: Revert Integer to Long_Integer change, instead
7250 change Address to Short_Address in functions where both must be the
7251 same size for intrinsics to work.
7253 2010-06-17 Thomas Quinot <quinot@adacore.com>
7255 * sem_ch4.adb (Analyze_Selected_Component): A selected component may
7256 not denote a (private) component of a protected object.
7258 2010-06-17 Bob Duff <duff@adacore.com>
7260 * par-labl.adb (Try_Loop): Test whether the label and the goto are in
7263 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
7265 * gnat_ugn.texi: Update the documentation about GDB re: exception
7268 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7270 * gnatvsn.ads: Bump to 4.6 version.
7272 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7274 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): The
7275 designated type of the generated pointer is the type of the original
7276 expression, not that of the function call itself, because the return
7277 type may be an untagged derived type and the function may be an
7278 inherited operation.
7280 2010-06-17 Robert Dewar <dewar@adacore.com>
7282 * exp_ch4.adb: Minor reformatting.
7284 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7286 * sinfo.ads, sinfo.adb (Inherited_Discriminant): New flag on
7287 N_Component_Association nodes, to indicate that a component association
7288 of an extension aggregate denotes the value of a discriminant of an
7289 ancestor type that has been constrained by the derivation.
7290 * sem_aggr.adb (Discr_Present): use Inherited_Discriminant to prevent a
7291 double expansion of the aggregate appearing in a context that delays
7292 expansion, to prevent double insertion of discriminant values when the
7293 aggregate is reanalyzed.
7295 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7297 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Do not use
7298 Allocator as the Related_Node of Return_Obj_Access in call to
7299 Make_Temporary below as this would create a sort of infinite
7302 2010-06-17 Ben Brosgol <brosgol@adacore.com>
7304 * gnat_ugn.texi: Update gnatcheck doc.
7306 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7308 * sem_ch3.adb (Build_Incomplete_Type_Declaration): If there is an
7309 incomplete view of the type that is not tagged, and the full type is a
7310 tagged extension, create class_wide type now, and warn that the
7311 incomplete view should be tagged as well.
7313 2010-06-17 Vincent Celier <celier@adacore.com>
7315 * gnatcmd.adb (Non_VMS_Usage): Do not issue usage for gnat sync.
7316 Update the last line of the usage, indicating what commands do not
7317 accept project file switches.
7318 * vms_conv.adb: Do not issue usage line for GNAT SYNC
7319 * vms_data.ads: Fix errors in the qualifiers /LOGFILE and /MAIN of
7321 * gnat_ugn.texi: Document the relaxed rules for library directories in
7322 externally built library projects.
7324 2010-06-17 Doug Rupp <rupp@adacore.com>
7326 * s-auxdec-vms_64.ads: Make boolean and arithmetic operations intrinsic
7328 * s-auxdec-vms-alpha.adb: Remove kludges for aforemention.
7329 * gcc-interface/Makefile.in: Update VMS target pairs.
7331 2010-06-17 Vasiliy Fofanov <fofanov@adacore.com>
7333 * adaint.c: Reorganized in order to avoid use of GetProcessId to stay
7334 compatible with Windows NT 4.0 which doesn't provide this function.
7336 2010-06-17 Vincent Celier <celier@adacore.com>
7338 * ali-util.adb (Time_Stamp_Mismatch): In Verbose mode, if there is
7339 different timestamps but the checksum is the same, issue a short
7342 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7344 * s-interr.adb (Finalize): If the Abort_Task signal is set to system,
7345 it means that we cannot reset interrupt handlers since this would
7346 require potentially sending the abort signal to the Server_Task.
7348 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7350 * exp_ch4.adb: expand NOT for VMS types.
7351 * sem_util.adb: Use OpenVMS_On_Target for IS_VMS_Operator.
7353 2010-06-17 Sergey Rybin <rybin@adacore.com>
7355 * vms_data.ads: Add qualifier for '--no-elim-dispatch' gnatelim option.
7356 * gnat_ugn.texi (gnatelim): add description for --no-elim-dispatch
7359 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7361 * exp_ch6.adb (Expand_Call): Do not expand a call to an internal
7362 protected operation if the subprogram has been eliminated.
7364 2010-06-17 Vincent Celier <celier@adacore.com>
7366 * prj-nmsc.adb (Check_Library_Attributes): Allow the different
7367 directories associated with a library to be any directory when the
7368 library project is externally built.
7370 2010-06-17 Vincent Celier <celier@adacore.com>
7372 * make.adb (Check): If switch -m is used, deallocate the memory that
7373 may be allocated when computing the checksum.
7375 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7377 * g-socthi-mingw.adb (C_Recvmsg): Add 'use type' clause for C.size_t;
7378 (C_Sendmsg): Likewise.
7380 2010-06-17 Thomas Quinot <quinot@adacore.com>
7382 * sem_res.adb: Update comments.
7384 2010-06-17 Vincent Celier <celier@adacore.com>
7386 * back_end.adb (Scan_Compiler_Arguments): Process last argument
7388 2010-06-17 Robert Dewar <dewar@adacore.com>
7390 * exp_ch3.adb, exp_ch6.adb, exp_smem.adb, exp_util.adb: Use Ekind_In.
7391 * layout.adb, freeze.adb: Use Make_Temporary.
7393 2010-06-17 Jerome Lambourg <lambourg@adacore.com>
7395 * exp_ch11.adb (Expand_N_Raise_Statement): Expand raise statements in
7396 .NET/JVM normally as this is now perfectly supported by the backend.
7398 2010-06-17 Pascal Obry <obry@adacore.com>
7400 * gnat_rm.texi: Fix minor typo, remove duplicate blank lines.
7402 2010-06-17 Vincent Celier <celier@adacore.com>
7404 * make.adb (Collect_Arguments_And_Compile): Create include path file
7405 only when -x is specified.
7407 * opt.ads (Use_Include_Path_File): New Boolean flag, initialized to
7409 * prj-env.adb (Set_Ada_Paths): New Boolean parameters Include_Path and
7410 Objects_Path, defaulted to True. Only create include path file if
7411 Include_Path is True, only create objects path file if Objects_Path is
7413 * prj-env.ads (Set_Ada_Paths): New Boolean parameters Include_Path and
7414 Objects_Path, defaulted to True.
7415 * switch-m.adb (Scan_Make_Switches): Set Use_Include_Path_File to True
7418 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7420 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
7421 determine whether it has the controlling type, when the formal is an
7424 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7426 * s-crtl.ads (ssize_t): New type.
7427 (read): Fix signature.
7429 * g-socthi.ads: Add 'with System.CRTL' clause. Remove ssize_t and
7430 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7431 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7432 (C_Sendmsg): Likewise.
7433 * g-socthi.adb (Syscall_Recvmsg): Likewise.
7434 (Syscall_Sendmsg): Likewise.
7435 (C_Recvmsg): Likewise.
7436 (C_Sendmsg): Likewise.
7437 * g-socthi-mingw.ads: Add 'with System.CRTL' clause. Remove ssize_t
7438 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7439 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7440 (C_Sendmsg): Likewise.
7441 * g-socthi-mingw.adb (C_Recvmsg): Likewise.
7442 (C_Sendmsg): Likewise.
7443 * g-socthi-vms.ads: Add 'with System.CRTL' clause. Remove ssize_t and
7444 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7445 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7446 (C_Sendmsg): Likewise.
7447 * g-socthi-vms.adb (C_Recvmsg): Likewise.
7448 (C_Sendmsg): Likewise.
7449 * g-socthi-vxworks.ads Add 'with System.CRTL' clause. Remove ssize_t
7450 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7451 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7452 (C_Sendmsg): Likewise.
7453 * g-socthi-vxworks.adb (C_Recvmsg): Likewise.
7454 (C_Sendmsg): Likewise.
7455 * g-sercom-linux.adb (Read): Use correct types to call 'read'.
7456 (Write): Likewise to call 'write'.
7457 * s-os_lib.adb (Read): Use correct type to call System.CRTL.read.
7458 (Write): Use correct type to call System.CRTL.write.
7459 * s-tasdeb.adb (Write): Likewise.
7461 2010-06-17 Vincent Celier <celier@adacore.com>
7463 * prj-proc.adb (Copy_Package_Declarations): Change argument name
7464 Naming_Restricted to Restricted. If Restricted is True, do not copy the
7465 value of attribute Linker_Options.
7467 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7469 * gcc-interface/trans.c (push_stack, pop_stack): Delete.
7470 (Case_Statement_to_gnu): Adjust.
7471 (Loop_Statement_to_gnu): Likewise.
7472 (Subprogram_Body_to_gnu): Likewise.
7473 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
7474 (Compilation_Unit_to_gnu): Likewise.
7476 2010-06-17 Robert Dewar <dewar@adacore.com>
7478 * exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb, exp_prag.adb,
7479 exp_sel.adb, exp_util.adb, sem_ch10.adb, sem_ch12.adb, sem_ch13.adb,
7480 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb, sem_ch9.adb,
7481 sem_dist.adb, sem_util.adb: Use Make_Temporary
7482 * itypes.ads, tbuild.ads: Minor comment update
7483 * exp_ch9.adb, exp_dist.adb: Minor reformatting
7485 2010-06-17 Thomas Quinot <quinot@adacore.com>
7487 * exp_imgv.adb, exp_ch7.ads: Minor reformatting.
7489 2010-06-17 Robert Dewar <dewar@adacore.com>
7491 * exp_ch9.adb, exp_disp.adb, exp_dist.adb: Use Make_Temporary.
7493 2010-06-17 Thomas Quinot <quinot@adacore.com>
7495 * sprint.adb (pg): Set Dump_Freeze_Null, to be consistent with -gnatdg.
7497 2010-06-17 Robert Dewar <dewar@adacore.com>
7499 * exp_ch6.adb, exp_ch7.adb, exp_ch5.adb: Use Make_Temporary
7500 * tbuild.ads (Make_Temporary): More comment updates
7501 * tbuild.adb: Minor reformatting
7503 2010-06-17 Robert Dewar <dewar@adacore.com>
7505 * checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch11.adb,
7506 exp_ch3.adb, exp_ch4.adb: Minor code reorganization.
7508 * tbuild.ads, tbuild.adb (Make_Temporary): Clean up, use Entity_Id
7510 (Make_Temporary): Add more extensive documentation
7512 2010-06-17 Robert Dewar <dewar@adacore.com>
7514 * sem_intr.adb, sem_prag.adb, sem_res.adb, sem_type.adb, sem_util.adb,
7515 sem_warn.adb, sem_eval.adb: Minor reformatting. Use Ekind_In.
7516 (Set_Slice_Subtype): Explicitly freeze the slice's itype at the point
7517 where the slice's actions are inserted.
7518 (Decompose_Expr): Account for possible rewriting of slice bounds
7519 resulting from side effects suppression caused by the above freezing,
7520 so that folding of bounds is preserved by such rewriting.
7522 2010-06-17 Robert Dewar <dewar@adacore.com>
7524 * einfo.ads, einfo.adb (Get_Record_Representation_Clause): New
7526 * freeze.adb (Freeze_Record_Type): Add call to
7527 Check_Record_Representation_Clause.
7528 * sem_ch13.adb (Check_Record_Representation_Clause): New function
7529 (Analyze_Record_Representation_Clause): Split out overlap code into
7531 (Check_Component_Overlap): Moved inside
7532 Check_Record_Representation_Clause.
7533 * sem_ch13.ads (Check_Record_Representation_Clause): New function.
7535 2010-06-17 Robert Dewar <dewar@adacore.com>
7537 * back_end.adb, sem_res.adb, switch-c.adb, sem_scil.adb: Minor
7539 * sem_attr.adb, sem_cat.adb, sem_disp.adb, sem_elab.adb, sem_elim.adb,
7540 sem_eval.adb: Use Ekind_In
7542 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7544 * sem_ch8.adb: better error message for illegal inherited discriminant
7546 2010-06-17 Vincent Celier <celier@adacore.com>
7548 * bindusg.adb: Remove lines for -A and -C
7549 * gnat_ugn.texi: Remove all documentation and examples of switches -A
7550 and -C for gnatbind and gnatlink.
7551 * gnatlink.adb (Usage): Remove lines for -A and -C
7552 * switch-b.adb (Scan_Binder_Switches): Issue warning when switch -C is
7554 * gcc-interface/Make-lang.in: Update dependencies.
7556 2010-06-17 Vincent Celier <celier@adacore.com>
7558 * back_end.adb (Scan_Compiler_Arguments): Put all arguments in new
7559 local Argument_List variable Args.
7560 * switch-c.adb (Scan_Front_End_Switches): New Argument_List argument
7562 (Switch_Subsequently_Cancelled): New Argument_List argument Args. Look
7563 for subsequent switches in Args.
7564 * switch-c.ads (Scan_Front_End_Switches): New Argument_List argument
7566 * gcc-interface/Make-lang.in: Update dependencies.
7568 2010-06-17 Robert Dewar <dewar@adacore.com>
7570 * einfo.adb: Minor code fix, allow E_Class_Wide_Type for
7571 Equivalent_Type to match documentation.
7573 2010-06-17 Robert Dewar <dewar@adacore.com>
7575 * sem_ch6.adb, sem_ch7.adb: Minor reformatting.
7576 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_ch10.adb, sem_ch12.adb,
7577 sem_ch4.adb, sem_ch8.adb, sem_ch13.adb: Make use of Ekind_In.
7579 2010-06-17 Thomas Quinot <quinot@adacore.com>
7581 * sem_res.adb (Set_Slice_Subtype): Always freeze the slice's itype.
7583 2010-06-17 Thomas Quinot <quinot@adacore.com>
7585 * freeze.adb (Freeze_Expression): Short circuit operators are valid
7586 freeze node insertion points.
7588 2010-06-17 Robert Dewar <dewar@adacore.com>
7590 * switch-c.ads, switch-c.adb, sem_ch13.adb: Minor reformatting.
7591 * sem_ch12.adb: Add pragmas Assert and Check to previous change.
7593 2010-06-17 Gary Dismukes <dismukes@adacore.com>
7595 * layout.adb (Layout_Type): Broaden test for setting an array type's
7596 Component_Size to include all scalar types, not just discrete types
7597 (components of real types were missed).
7598 * sem_ch3.adb (Constrain_Index): Add missing setting of First_Literal
7599 on the itype created for an index (consistent with Make_Index and
7600 avoids possible Assert_Failures).
7602 2010-06-17 Robert Dewar <dewar@adacore.com>
7604 * atree.ads, atree.adb: Add 6-parameter version of Ekind_In
7605 * einfo.adb: Minor code reformatting (use Ekind_In)
7607 2010-06-17 Robert Dewar <dewar@adacore.com>
7609 * sem_warn.adb (Test_Ref): Abandon scan if access subprogram parameter
7612 2010-06-17 Vincent Celier <celier@adacore.com>
7614 * back_end.adb: Minor comment updates
7615 * switch-c.adb: Remove dependencies on gcc C sources
7616 * gcc-interface/Make-lang.in: Add a-comlin.o to the object file list
7619 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7621 * sem_ch12.adb: propagate Pragma_Enabled flag to generic.
7622 * get_scos.adb: Set C2 flag in decision entry of pragma to 'e'.
7623 * par_sco.ads, par_sco.adb (Set_SCO_Pragma_Enabled): New procedure
7624 Remove use of Node field in SCOs table
7625 (Output_Header): Set 'd' to initially disable pragma entry
7626 * put_scos.adb (Put_SCOs): New flag indicating if pragma is enabled
7627 * scos.ads, scos.adb: Remove Node field from internal SCOs table.
7628 Use C2 field of pragma decision header to indicate enabled.
7629 * sem_prag.adb: Add calls to Set_SCO_Pragma_Enabled.
7630 * gcc-interface/Make-lang.in: Update dependencies.
7632 2010-06-17 Vincent Celier <celier@adacore.com>
7634 * back_end.adb (Next_Arg): Moved to procedure Scan_Compiler_Arguments
7635 (Scan_Compiler_Arguments): Call Scan_Front_End_Switches with Next_Arg
7636 (Switch_Subsequently_Cancelled): Function moved to the body of Switch.C
7637 * back_end.ads (Scan_Front_End_Switches): Function moved to the body of
7639 * switch-c.adb: Copied a number of global declarations from
7641 (Len_Arg): New function copied from back_end.adb
7642 (Switch_Subsequently_Cancelled): New function moved from back_end.adb
7643 (Scan_Front_End_Switches): New parameter Arg_Rank used to call
7644 Switch_Subsequently_Cancelled.
7645 * switch-c.ads (Scan_Front_End_Switches): New parameter Arg_Rank.
7646 * gcc-interface/Makefile.in: Add line so that shared libgnat is linked
7647 with -lexc on Tru64.
7649 2010-06-17 Robert Dewar <dewar@adacore.com>
7651 * prj.ads, prj.adb: Minor reformatting
7653 2010-06-17 Thomas Quinot <quinot@adacore.com>
7655 * put_scos.adb: Do not generate a blank line in SCOs when omitting the
7656 CP line for a disabled pragma.
7658 2010-06-17 Emmanuel Briot <briot@adacore.com>
7660 * prj-proc.adb, prj.adb, prj.ads (Check_Or_Set_Typed_Variable): New
7662 (Process_Declarative_Item): An invalid value in an typed variable
7663 declaration is no longer always fatal.
7665 2010-06-16 Arnaud Charlet <charlet@adacore.com>
7667 * get_scos.adb, par_sco.adb, par_sco.ads, put_scos.adb, scos.adb,
7668 scos.ads, exp_ch4.adb, sem_warn.adb: Code clean up, update
7671 2010-06-16 Javier Miranda <miranda@adacore.com>
7673 * exp_disp.adb (Expand_Dispatching_Call): Adjust the decoration of the
7674 node referenced by the SCIL node of dispatching "=" to skip the tags
7677 2010-06-16 Ed Schonberg <schonberg@adacore.com>
7679 * sem_ch5.adb (Analyze_Exit_Statement): Return if no enclosing loop,
7680 to prevent cascaded errors and compilation aborts.
7682 2010-06-16 Robert Dewar <dewar@adacore.com>
7684 * back_end.adb (Switch_Subsequently_Cancelled): New function
7685 Move declarations to package body level to support this change
7686 * back_end.ads (Switch_Subsequently_Cancelled): New function
7687 * gnat_ugn.texi: Document -gnat-p switch
7688 * switch-c.adb (Scan_Front_End_Switches): Implement -gnat-p switch
7689 * ug_words: Add entry for -gnat-p (UNSUPPRESS_ALL)
7690 * usage.adb: Add line for -gnat-p switch
7691 * vms_data.ads: Add entry for UNSUPPRESS_ALL (-gnat-p)
7693 2010-06-16 Robert Dewar <dewar@adacore.com>
7695 * sem_warn.adb (Check_Infinite_Loop_Warning): Declaration counts as
7698 2010-06-16 Robert Dewar <dewar@adacore.com>
7700 * exp_disp.adb: Minor reformatting
7702 2010-06-16 Ed Schonberg <schonberg@adacore.com>
7704 * sem_ch3.adb (Complete_Private_Subtype): Inherit class_wide type from
7705 base type only if it was not previously created for the partial view.
7707 2010-06-16 Thomas Quinot <quinot@adacore.com>
7709 * tbuild.ads: Minor comment fix
7711 2010-06-15 Nathan Froyd <froydnj@codesourcery.com>
7713 * gcc-interface/trans.c (gnu_stack_free_list): Delete.
7714 (gnu_except_ptr_stack): Change type to VEC. Update comment.
7715 (gnu_elab_proc_stack): Likewise.
7716 (gnu_return_label_stack): Likewise.
7717 (gnu_loop_label_stack): Likewise.
7718 (gnu_switch_label_stack): Likewise.
7719 (gnu_constraint_label_stack): Likewise.
7720 (gnu_storage_error_label_stack): Likewise.
7721 (gnu_program_error_label_stack): Likewise.
7722 (push_exception_label_stack): Take a VEC ** instead of a tree *.
7723 (push_stack): Likewise. Remove unused second parameter. Update
7725 (pop_stack): Take a VEC * instead of a tree *. Update callers.
7726 (gigi): Initialize stacks as VECs.
7727 (Identifier_to_gnu): Use VEC_last instead of TREE_VALUE.
7728 (Case_Statement_to_gnu): Likewise.
7729 (Subprogram_Body_to_gnu): Likewise.
7730 (call_to_gnu): Likewise.
7731 (Exception_Handler_to_gnu_sjlj): Likewise.
7732 (gnat_to_gnu): Likewise.
7733 (get_exception_label): Likewise.
7735 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7737 * sem_ch3.adb (Build_Derived_Record_Type): if derived type is an
7738 anonymous base generated when the parent is a constrained discriminated
7739 type, propagate interface list to first subtype because it may appear
7740 in a current instance within the extension part of the derived type
7741 declaration, and its own subtype declaration has not been elaborated
7743 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
7744 determine whether it has the controlling type.
7746 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
7748 * exp_ch11.adb (Expand_N_Raise_Statement): Make sure that the explicit
7749 raise of CE, SE and PE have the reason correctly set and are properly
7750 expanded before stopping the expansions of .NET/JVM exceptions.
7752 2010-06-14 Robert Dewar <dewar@adacore.com>
7754 * opt.ads (Check_Policy_List): Add some clarifying comments
7755 * sem_prag.adb (Analyze_Pragma, case Check): Set Pragma_Enabled flag
7756 on rewritten Assert pragma.
7758 2010-06-14 Gary Dismukes <dismukes@adacore.com>
7760 * sem_ch6.adb (Check_Overriding_Indicator): Add a special check for
7761 controlled operations, so that they will be treated as overriding even
7762 if the overridden subprogram is marked Is_Hidden, as long as the
7763 overridden subprogram's parent subprogram is not hidden.
7765 2010-06-14 Robert Dewar <dewar@adacore.com>
7767 * debug.adb: Entry for gnatw.d no longer specific for while loops
7768 * einfo.adb (First_Exit_Statement): New attribute for E_Loop
7769 * einfo.ads (First_Exit_Statement): New attribute for E_Loop
7770 * sem_ch5.adb (Analyze_Loop_Statement): Check_Infinite_Loop_Warning has
7771 new calling sequence to include test for EXIT WHEN.
7772 (Analyze_Exit_Statement): Chain EXIT statement into exit statement
7774 * sem_warn.ads, sem_warn.adb (Check_Infinite_Loop_Warning): Now handles
7776 * sinfo.adb (Next_Exit_Statement): New attribute of N_Exit_Statement
7778 * sinfo.ads (N_Pragma): Correct comment on Sloc field (points to
7779 PRAGMA, not to pragma identifier).
7780 (Next_Exit_Statement): New attribute of N_Exit_Statement node
7782 2010-06-14 Robert Dewar <dewar@adacore.com>
7784 * sem_res.adb (Resolve_Short_Circuit): Fix sloc of "assertion/check
7787 2010-06-14 Robert Dewar <dewar@adacore.com>
7789 * par-ch2.adb (Scan_Pragma_Argument_Association): Clarify message for
7790 missing pragma argument identifier.
7792 2010-06-14 Robert Dewar <dewar@adacore.com>
7794 * atree.ads, atree.adb (Ekind_In): New functions.
7796 2010-06-14 Robert Dewar <dewar@adacore.com>
7798 * exp_ch4.adb (Expand_N_Op_Expon): Optimize 2**N in stand alone context
7800 2010-06-14 Robert Dewar <dewar@adacore.com>
7802 * usage.adb (Usage): Redo documentation of -gnatwa.
7804 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7806 * sem_ch8.adb (Find_Type): The attribute 'class cannot be applied to
7807 an untagged incomplete type that is a limited view.
7809 2010-06-14 Sergey Rybin <rybin@adacore.com>
7811 * gnat_ugn.texi: Add description of '-cargs gcc_switches' to gnatstub
7814 2010-06-14 Thomas Quinot <quinot@adacore.com>
7816 * exp_ch4.adb (Expand_Short_Circuit_Operator): New subprogram,
7817 factoring duplicated code between...
7818 (Expand_N_And_Than, Expand_N_Or_Else): Remove duplicated code.
7819 * a-envvar.ads: Minor reformatting
7821 2010-06-14 Arnaud Charlet <charlet@adacore.com>
7823 * ali.adb, ali.ads, lib-xref.ads: Document new '+' letter for C/C++
7825 (Scan_ALI): Take into account new Visibility field.
7826 (Visibility_Kind): New type.
7827 (Xref_Entity_Record): Replace Lib field by Visibility.
7829 * gcc-interface/Make-lang.in: Update dependencies.
7831 2010-06-14 Pascal Obry <obry@adacore.com>
7833 * raise.h: Remove unused defintions.
7835 2010-06-14 Bob Duff <duff@adacore.com>
7837 * par-ch10.adb (P_Subunit): If the next token after "separate(X)" is
7838 Tok_Not or Tok_Overriding, call P_Subprogram. We had previously given
7839 the incorrect error "proper body expected".
7840 * par-ch6.adb (P_Subprogram): Suppress "overriding indicator not
7841 allowed here" error in case of subunits, which was triggered by the
7842 above change to P_Subunit.
7844 2010-06-14 Sergey Rybin <rybin@adacore.com>
7846 * gnat_ugn.texi, vms_data.ads: Update gnatelim doc.
7848 2010-06-14 Thomas Quinot <quinot@adacore.com>
7850 * lib-util.adb: Minor code reorganization.
7852 2010-06-14 Robert Dewar <dewar@adacore.com>
7854 * ali.adb (Scan_ALI): Implement reading and storing of N lines
7855 (Known_ALI_Lines): Add entry for 'N' (notes)
7856 * ali.ads (Notes): New table to store Notes information
7857 * alloc.ads: Add entries for Notes table
7858 * lib-util.adb (Write_Info_Int): New procedure
7859 (Write_Info_Slit): New procedure
7860 (Write_Info_Uint): New procedure
7861 * lib-util.ads (Write_Info_Int): New procedure
7862 (Write_Info_Slit): New procedure
7863 (Write_Info_Uint): New procedure
7864 * lib-writ.adb (Write_Unit_Information): Output N (notes) lines
7865 * lib-writ.ads: Update documentation for N (Notes) lines
7866 * lib.adb (Store_Note): New procedure
7867 * lib.ads (Notes): New table
7868 (Store_Note): New procedure
7869 * sem_prag.adb: Call Store_Note for affected pragmas
7871 2010-06-14 Thomas Quinot <quinot@adacore.com>
7873 * socket.c: Fix wrong condition in #ifdef
7874 * g-socket.adb, g-sothco.ads: Functions imported from socket.c that
7875 take or return char* values can't use Interfaces.C.Strings.chars_ptr,
7876 because on VMS this type is a 32-bit pointer which is not compatible
7877 with the default for C pointers for code compiled with gcc on that
7880 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7882 * sem_util (Is_VMS_Operator): New predicate to determine whether an
7883 operator is an intrinsic operator declared in the DEC system extension.
7884 * sem_res.adb (Resolve_Logical_Op): operation is legal on signed types
7885 if the operator is a VMS intrinsic.
7886 * sem_eval.adb (Eval_Logical_Op): Operation is legal and be
7887 constant-folded if the operands are signed and the operator is a VMS
7890 2010-06-14 Robert Dewar <dewar@adacore.com>
7892 * g-socket.adb, gnatcmd.adb: Minor reformatting.
7894 2010-06-14 Pascal Obry <obry@adacore.com>
7896 * s-finimp.adb: Fix typo.
7897 * raise.h: Remove duplicate blank line.
7899 2010-06-14 Vincent Celier <celier@adacore.com>
7901 * prj-nmsc.adb (Add_Sources): Always set the object file and the
7902 switches file names, as the configuration of the language may change
7903 in an extending project.
7904 (Process_Naming_Scheme): For sources of projects that are extended, set
7905 the configuration of the language from the highest extending project
7906 where the language is declared.
7908 2010-06-14 Gary Dismukes <dismukes@adacore.com>
7910 * sem_res.adb (Resolve_Call): For infinite recursion check, test
7911 whether the called subprogram is inherited from a containing
7913 (Same_Or_Aliased_Subprograms): New function
7915 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7917 * sem_ch8.adb (End_Use_Type): Before indicating that an operator is not
7918 use-visible, check whether it is a primitive for more than one type.
7920 2010-06-14 Robert Dewar <dewar@adacore.com>
7922 * sem_ch3.adb (Copy_And_Swap): Copy Has_Pragma_Unmodified flag.
7924 * sem_ch7.adb (Preserve_Full_Attributes): Preserve
7925 Has_Pragma_Unmodified flag.
7927 2010-06-14 Thomas Quinot <quinot@adacore.com>
7929 * g-sttsne-locking.adb, g-sttsne-locking.ads, g-sttsne.ads,
7930 g-sttsne-vxworks.adb, g-sttsne-dummy.ads: Removed. Mutual exclusion is
7931 now done in GNAT.Sockets if necessary.
7932 * gsocket.h, g-socket.adb, g-sothco.ads (GNAT.Sockets.Get_XXX_By_YYY):
7933 Ensure mutual exclusion for netdb operations if the target platform
7935 (GNAT.Sockets.Thin_Common): New binding for getXXXbyYYY, treating
7936 struct hostent as an opaque type to improve portability.
7937 * s-oscons-tmplt.c, socket.c: For the case of Vxworks, emulate
7938 gethostbyYYY using proprietary VxWorks API so that a uniform interface
7939 is available for the Ada side.
7940 * gcc-interface/Makefile.in: Remove g-sttsne-*
7941 * gcc-interface/Make-lang.in: Update dependencies.
7943 2010-06-14 Vincent Celier <celier@adacore.com>
7945 * gnatcmd.adb (Mapping_File): New function.
7947 2010-06-14 Javier Miranda <miranda@adacore.com>
7949 * sem_ch3.adb (Derive_Subprograms): Remove over-restrictive assertion.
7951 2010-06-14 Arnaud Charlet <charlet@adacore.com>
7953 * ali.adb: Fix typo.
7954 * s-auxdec-vms-alpha.adb, scng.ads: Minor reformatting.
7956 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7958 * sem_ch12.adb: Make Mark_Context transitive, and apply to subprogram
7961 * sem_ch8.adb (Find_Expanded_Name): If a candidate compilation unit in
7962 the context does not have a homonym of the selector, emit default
7965 2010-06-14 Robert Dewar <dewar@adacore.com>
7967 * sem.adb, sem_ch12.adb, sem_util.adb: Minor reformatting and
7970 2010-06-14 Arnaud Charlet <charlet@adacore.com>
7972 * lib-xref.ads: Doc updates:
7973 - Allocate 'Q' for #include entity kind
7975 - Allocate 'g' for regular macros
7976 - Allocate 'G' for function-like macros
7978 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7980 * sinfo.ads, sinfo.adb (Withed_Body): New attribute of a with_clause.
7981 Indicates that there is an instantiation in the current unit that
7982 loaded the body of the unit denoted by the with_clause.
7983 * sem_ch12.adb (Mark_Context): When instanting a generic body, check
7984 whether a with_clause in the current context denotes the unit that
7985 holds the generic declaration, and mark the with_clause accordingly.
7986 (Instantiate_Package_Body): call Mark_Context.
7987 * sem.adb (Process_Bodies_In_Context): Use Withed_Body to determine
7988 whether a given body should be traversed before the spec of the main
7991 2010-06-14 Ed Falis <falis@adacore.com>
7993 * sysdep.c: Fix 653 build against vThreads headers.
7995 2010-06-14 Robert Dewar <dewar@adacore.com>
7997 * sinfo.ads: Minor reformatting.
7999 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8001 * sem_ch6.adb (Analyze_Subprogram_Body): Do not check conformance when
8002 the spec has been generated for a body without spec that carries an
8003 Inline_Always pragma.
8005 2010-06-14 Arnaud Charlet <charlet@adacore.com>
8007 * lib-xref.ads: Documentation change: allocate 'Z' letter to C/C++
8010 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
8012 * exp_dbug.adb (Debug_Renaming_Declaration): Do not output any debug
8013 declaration for VMs, as those are useless and might lead to duplicated
8014 local variable names in the generated code.
8015 * gcc-interface/Make-lang.in: Update dependencies.
8017 2010-06-14 Robert Dewar <dewar@adacore.com>
8019 * opt.ads, sem.adb, sem_elab.adb: Minor reformatting
8021 2010-06-14 Robert Dewar <dewar@adacore.com>
8023 * exp_aggr.adb (Has_Address_Clause): Moved to Exp_Util, and there it
8024 is renamed as Has_Following_Address_Clause.
8025 * exp_ch3.adb (Needs_Simple_Initialization): Add Consider_IS argument
8026 to allow the caller to avoid Initialize_Scalars having an effect.
8027 (Expand_N_Object_Declaration): Do not do Initialize_Scalars stuff for
8028 scalars with an address clause specified.
8029 * exp_ch3.ads (Needs_Simple_Initialization): Add Consider_IS argument
8030 to allow the caller to avoid Initialize_Scalars having an effect.
8031 * exp_util.adb (Has_Following_Address_Clause): Moved here from Exp_Aggr
8032 (where it was called Has_Address_Clause).
8033 * exp_util.ads (Has_Following_Address_Clause): Moved here from Exp_Aggr
8034 (where it was called Has_Address_Clause).
8035 * freeze.adb (Warn_Overlay): Suppress message about overlaying causing
8036 problems for Initialize_Scalars (since we no longer initialize objects
8037 with an address clause.
8039 2010-06-14 Robert Dewar <dewar@adacore.com>
8041 * exp_prag.adb (Expand_Pragma_Check): Set Loc of generated code from
8044 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8046 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Debug_Info_Needed
8047 on the entity of an implicitly generated postcondition procedure.
8049 2010-06-14 Thomas Quinot <quinot@adacore.com>
8051 * sem_ch7.adb (Preserve_Full_Attributes): Propagate
8052 Discriminant_Constraint elist from full view to private view.
8054 2010-06-14 Robert Dewar <dewar@adacore.com>
8056 * sem_res.adb: Minor reformatting.
8058 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8060 * sem.adb: New version of unit traversal.
8062 * sem_elab.adb (Check_Internal_Call): Do not place a call appearing
8063 within a generic unit in the table of delayed calls.
8065 2010-06-14 Robert Dewar <dewar@adacore.com>
8067 * gnatcmd.adb, sem_util.adb, exp_ch3.adb: Minor reformatting
8069 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8071 * sem_ch12.adb (Save_References): If an identifier has been rewritten
8072 during analysis as an explicit dereference, keep the reference implicit
8073 in the generic, but preserve the entity if global. This prevents
8074 malformed generic trees in the presence of some nested generics.
8076 2010-06-14 Sergey Rybin <rybin@adacore.com>
8078 * gnat_ugn.texi: For the GNAT driver, clarify the effect of calling the
8079 tool with '-files=' option. Also fix some small errors (wrong brackets)
8081 2010-06-14 Vincent Celier <celier@adacore.com>
8083 * gnatbind.adb: Call Scan_ALI with Directly_Scanned set to True for all
8084 the ALI files on the command line.
8086 * ali.adb (Scan_ALI): Set component Directly_Scanned of the unit(s) to
8087 the same value as the parameter of the same name.
8088 * ali.ads (Scan_ALI): New Boolean parameter Directly_Scanned, defaulted
8090 * bindgen.adb (Gen_Versions_Ada): Never emit version symbols for
8091 Stand-Alone Library interfaces. When binding Stand-Alone Libraries,
8092 emit version symbols only for the units of the library.
8093 (Gen_Versions_C): Ditto.
8095 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8097 * sem_ch4.adb: Fix typo.
8099 2010-06-14 Vasiliy Fofanov <fofanov@adacore.com>
8101 * s-oscons-tmplt.c (IOV_MAX): redefine on Tru64 and VMS since the
8102 vector IO doesn't work at default value properly.
8104 2010-06-14 Doug Rupp <rupp@adacore.com>
8106 * s-stoele.adb: Remove unnecessary qualification of To_Address for VMS.
8108 2010-06-14 Vincent Celier <celier@adacore.com>
8110 * gnatcmd.adb (Check_Files): Do not invoke the tool with all the
8111 sources of the project if a switch -files= is used.
8113 2010-06-14 Thomas Quinot <quinot@adacore.com>
8115 * exp_attr.adb: Minor reformatting.
8117 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8119 * gnat_ugn.texi: Minor typo fixes and wording changes.
8121 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8123 * sem_ch4.adb (Analyze_One_Call): If the call has been rewritten from a
8124 prefixed form, do not re-analyze first actual, which may need an
8125 implicit dereference.
8126 * sem_ch6.adb (Analyze_Procedure_Call): If the call is given in
8127 prefixed notation, the analysis will rewrite the node, and possible
8128 errors appear in the rewritten name of the node.
8129 * sem_res.adb: If a call is ambiguous because its first parameter is
8130 an overloaded call, report list of candidates, to clarify ambiguity of
8133 2010-06-14 Doug Rupp <rupp@adacore.com>
8135 * s-auxdec-vms-alpha.adb: New package body implementing legacy
8136 VAX instructions with Asm insertions.
8137 * s-auxdec-vms_64.ads: Inline VAX queue functions
8138 * s-stoele.adb: Resolve some ambiguities in To_Addresss with s-suxdec
8139 that show up only on VMS.
8140 * gcc-interface/Makefile.in: Provide translation for
8141 s-auxdec-vms-alpha.adb.
8143 2010-06-14 Olivier Hainque <hainque@adacore.com>
8145 * initialize.c (VxWorks section): Update comments.
8147 2010-06-14 Robert Dewar <dewar@adacore.com>
8149 * a-convec.adb, sem_prag.adb, checks.adb: Minor reformatting.
8151 2010-06-14 Eric Botcazou <ebotcazou@adacore.com>
8153 * init.c: Code clean up.
8155 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8157 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address): Do
8158 not insert address clause in table for later validation if type of
8159 entity is generic, to prevent possible spurious errors.
8161 * sem_ch8.adb: Code clean up.
8163 2010-06-14 Ben Brosgol <brosgol@adacore.com>
8165 * gnat_ugn.texi: Expanded @ovar macro inline to solve problem with
8166 texi2pdf and texi2html.
8167 Document how to change scheduling properties on HP-UX.
8169 2010-06-14 Thomas Quinot <quinot@adacore.com>
8171 * g-socket.ads: Remove misleading comments.
8173 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
8175 * sem_prag.adb (Check_Duplicated_Export_Name): Remove check for
8176 CLI_Target as this prevents proper detection of exported names
8177 duplicates when the exported language is different to CIL.
8178 (Process_Interface_Name): Add check for CIL convention exports,
8179 replacing the old one from Check_Duplicated_Export_Name.
8181 2010-06-14 Matthew Heaney <heaney@adacore.com>
8183 * a-coinve.adb, a-convec.adb (operator "&"): Check both that new length
8184 and new last satisfy constraints.
8185 (Delete_Last): prevent overflow for subtraction of index values
8186 (To_Vector): prevent overflow for addition of index values
8188 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8190 * sem_ch4.adb (Complete_Object_Operation): After analyzing the
8191 rewritten call, preserve the resulting type to prevent spurious errors,
8192 when the call is implicitly dereferenced in the context of an in-out
8195 * checks.adb (Apply_Discriminant_Check): If the target of the
8196 assignment is a renaming of a heap object, create constrained type for
8199 2010-06-14 Pascal Obry <obry@adacore.com>
8201 * prj-proc.adb: Fix copy of object directory for extending projects.
8203 2010-06-14 Jose Ruiz <ruiz@adacore.com>
8205 * init.c (__gnat_alternate_stack): Define this space for PowerPC linux
8206 (__gnat_install_handler, PowerPC linux): Activate the alternative
8209 2010-06-13 Gerald Pfeifer <gerald@pfeifer.com>
8211 * gnat_rm.texi: Move to GFDL version 1.3.
8212 * gnat-style.texi: Ditto.
8213 * gnat_ugn.texi: Ditto.
8215 2010-06-12 Kai Tietz <kai.tietz@onevision.com>
8218 * gcc-interface/Makefile.in: Add rules for multilib x86/x64
8221 2010-06-11 Alexandre Oliva <aoliva@redhat.com>
8223 * gcc-interface/utils.c (update_pointer_to): Initialize last.
8225 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
8227 * gcc-interface/ada-tree.h: Fix formatting nits.
8229 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8231 * gcc-interface/utils.c (init_gnat_to_gnu): Use typed GC
8233 (init_dummy_type): Likewise.
8234 (gnat_pushlevel): Likewise.
8236 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
8237 (Subprogram_Body_to_gnu): Likewise.
8238 (Compilation_Unit_to_gnu): Likewise.
8239 (start_stmt_group): Likewise.
8240 (extract_encoding): Likewise.
8241 (decode_name): Likewise.
8243 * gcc-interface/misc.c (gnat_printable_name): Likewise.
8245 * gcc-interface/decl.c (annotate_value): Likewise.
8247 * gcc-interface/ada-tree.h (struct lang_type): Add variable_size
8249 (struct lang_decl): Likewise.
8250 (SET_TYPE_LANG_SPECIFIC): Use typed GC allocation.
8251 (SET_DECL_LANG_SPECIFIC): Likewise.
8253 2010-06-04 Eric Botcazou <ebotcazou@adacore.com>
8255 * gnatlink.adb (gnatlink): Remove support for -fsjlj switch.
8256 * gcc-interface/lang-specs.h: Likewise.
8258 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
8261 * gcc-interface/decl.c (MAX_FIXED_MODE_SIZE): Removed.
8263 2010-06-01 Arnaud Charlet <charlet@adacore.com>
8265 * gnat_ugn.texi: Improve doc on -fdump-ada-spec, mention limitations.
8267 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
8269 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Task_Type>: Reuse the
8270 TYPE_DECL of the equivalent type instead of building a new one.
8272 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
8274 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust warning message.
8275 Fix nits in comments.
8276 * gcc-interface/misc.c (gnat_init_gcc_eh): Likewise.
8277 * gcc-interface/trans.c (gigi): Likewise.
8278 (Attribute_to_gnu): Likewise.
8279 (Case_Statement_to_gnu): Likewise.
8280 (gnat_to_gnu): Adjust warning message.
8281 * gcc-interface/utils.c (create_var_decl_1): Fix nits in comments.
8282 (build_vms_descriptor32): Likewise.
8284 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
8286 * gcc-interface/decl.c: Pretend to be a backend file by undefining
8287 IN_GCC_FRONTEND (still need rtl.h here).
8289 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8291 * gcc-interface/trans.c: Do not include rtl.h, insclude libfuncs.h.
8292 (gigi): Adjust call to set_stack_check_libfunc.
8294 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8296 * gcc-interface/utils.c: Do not include rtl.h.
8298 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
8300 * gcc-interface/utils.c: Do not include function.h, pointer-set.h,
8301 and gimple.h. Explain why rtl.h has to be included.
8302 (handle_vector_size_attribute): Call reconstruct_complex_type directly.
8303 * gcc-interface/targtyps.c: Do not include tm_p.h
8304 * gcc-interface/utils2.c: Do not include flags.h.
8305 * gcc-interface/trans.c: Do not include expr.h. Include rtl.h instead,
8306 and explain why it has to be included.
8307 * gcc-interface/misc.c: Do not include expr.h, libfuncs.h, cgraph.h,
8309 Include function.h and explain why. Explain why except.h is included.
8310 (enumerate_modes): Remove unused function.
8311 * gcc-interface/gigi.h (enumerate_modes): Remove prototype.
8312 * gcc-interface/Make-lang.in: Update dependencies.
8314 2010-05-25 Joseph Myers <joseph@codesourcery.com>
8316 * gcc-interface/misc.c (internal_error_function): Add context
8317 parameter. Use it to access show_column flag and instead of using
8318 global_dc. Call warn_if_plugins.
8319 * gcc-interface/Make-lang.in (ada/misc.o): Update dependencies.
8321 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
8323 * gcc-interface/misc.c (LANG_HOOKS_DEEP_UNSHARING): Redefine.
8324 * gcc-interface/trans.c (unshare_save_expr): Delete.
8325 (gigi): Do not unshare trees under SAVE_EXPRs here.
8327 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
8329 * gcc-interface/trans.c (call_to_gnu): Use build_call_vec instead of
8331 * gcc-interface/utils.c (build_function_stub): Likewise.
8333 2010-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
8335 * gcc-interface/misc.c (gnat_handle_option): Remove special logic
8336 for Wuninitialized without -O.
8338 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
8340 * gcc-interface/gigi.h (enum standard_datatypes): Add new value
8341 ADT_exception_data_name_id.
8342 (exception_data_name_id): New define.
8343 * gcc-interface/trans.c (gigi): Initialize it.
8344 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use the standard
8345 exception type for standard exception definitions. Do not make them
8347 <E_Record_Type>: Equate fields of types associated with an exception
8348 definition to those of the standard exception type.
8350 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
8352 * tracebak.c (__gnat_backtrace): Mark top_stack with ATTRIBUTE_UNUSED.
8354 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
8356 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Tidy up
8357 code, improve comments and fix formatting nits.
8359 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
8361 * gcc-interface/utils.c (update_pointer_to): Return early if the old
8362 pointer already points to the new type. Chain the old pointer and its
8363 variants at the end of new pointer's chain after updating them.
8365 2010-05-10 Eric Botcazou <ebotcazou@adacore.com>
8367 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables
8368 built for interfaces.
8369 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Use
8370 imported_p instead of Is_Imported when considering constants.
8371 Do not promote alignment of exported objects.
8372 <E_Record_Subtype>: Strip all suffixes for dispatch table entities.
8374 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8376 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables.
8377 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Make imported
8378 constants really constant.
8379 <E_Record_Subtype>: Strip the suffix for dispatch table entities.
8381 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8383 * gcc-interface/decl.c (make_aligning_type): Declare the type.
8385 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8387 * gcc-interface/decl.c (gnat_to_gnu_entity): Create variables for size
8388 expressions of variant part of record types declared at library level.
8390 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8392 * gcc-interface/gigi.h (create_field_decl): Move PACKED parameter.
8393 * gcc-interface/utils.c (create_field_decl): Move PACKED parameter.
8394 (rest_of_record_type_compilation): Adjust call to create_field_decl.
8395 (make_descriptor_field): Likewise and pass correctly typed constants.
8396 (build_unc_object_type): Likewise.
8397 (unchecked_convert): Likewise.
8398 * gcc-interface/decl.c (elaborate_expression_2): New static function.
8399 (gnat_to_gnu_entity): Use it to make alignment factors explicit.
8400 Adjust call to create_field_decl.
8401 (make_aligning_type): Likewise.
8402 (make_packable_type): Likewise.
8403 (maybe_pad_type): Likewise.
8404 (gnat_to_gnu_field): Likewise.
8405 (components_to_record): Likewise.
8406 (create_field_decl_from): Likewise.
8407 (create_variant_part_from): Remove superfluous test.
8408 * gcc-interface/trans.c (gigi): Adjust call to create_field_decl.
8410 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8412 * gcc-interface/gigi.h (build_unc_object_type): Add DEBUG_INFO_P param.
8413 (build_unc_object_type_from_ptr): Likewise.
8414 * gcc-interface/utils.c (build_unc_object_type): Add DEBUG_INFO_P param
8415 and pass it to create_type_decl. Declare the type. Simplify.
8416 (build_unc_object_type_from_ptr): Add DEBUG_INFO_P parameter and pass
8417 it to build_unc_object_type.
8418 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust to above change.
8419 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
8420 (gnat_to_gnu): Likewise.
8421 * gcc-interface/utils2.c (build_allocator): Likewise.
8423 2010-05-07 Eric Botcazou <ebotcazou@adacore.com>
8426 * gcc-interface/misc.c (gnat_handle_option): Fix long line.
8428 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8430 * gcc-interface/Makefile.in: Removed mips-sgi-irix5* support.
8432 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
8435 * gcc-interface/misc.c (gnat_handle_option): Add argument kind.
8437 2010-05-02 Giuseppe Scrivano <gscrivano@gnu.org>
8439 * gnathtml.pl: Use 755 as mask for new directories.
8441 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
8443 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Uniquize
8444 constant constructors before taking their address.
8446 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
8448 * exp_dbug.ads: Fix outdated description. Mention link between XVS
8450 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Set
8451 XVZ variable as unit size of XVS type.
8452 (maybe_pad_type): Likewise.
8454 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
8456 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Do not
8457 use memmove if the array type is bit-packed.
8459 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
8461 * gcc-interface/misc.c (gnat_init): Remove second argument in call to
8462 build_common_tree_nodes.
8464 2010-04-18 Ozkan Sezer <sezeroz@gmail.com>
8466 * gsocket.h: Make sure that winsock2.h is included before windows.h.
8468 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8470 * gcc-interface/utils2.c (build_unary_op) <ATTR_ADDR_EXPR>: Do not
8473 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8475 * uintp.h (UI_Lt): Declare.
8476 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do the size
8477 computation in sizetype.
8478 <E_Array_Subtype>: Use unified handling for all index types. Do not
8479 generate MAX_EXPR-based expressions, only COND_EXPR-based ones. Add
8481 (annotate_value): Change test for negative values.
8482 (validate_size): Apply test for negative values on GNAT nodes.
8483 (set_rm_size): Likewise.
8484 * gcc-interface/misc.c (gnat_init): Set unsigned types for sizetypes.
8485 * gcc-interface/utils.c (rest_of_record_type_compilation): Change test
8486 for negative values.
8487 (max_size) <MINUS_EXPR>: Do not reassociate a COND_EXPR on the LHS.
8488 (builtin_type_for_size): Adjust definition of signed_size_type_node.
8489 * gcc-interface/utils2.c (compare_arrays): Optimize comparison of
8490 lengths against zero.
8492 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8494 * back-end.adb (Call_Back_End): Pass Standard_Character to gigi.
8495 * gcc-interface/gigi.h (gigi): Add standard_character parameter.
8496 (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
8497 LONG_LONG_TYPE_SIZE, FLOAT_TYPE_SIZE, DOUBLE_TYPE_SIZE,
8498 LONG_DOUBLE_TYPE_SIZE, SIZE_TYPE): Delete.
8499 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Call
8501 * gcc-interface/misc.c (gnat_init): Set signedness of char as per
8502 flag_signed_char. Tag sizetype with "size_type" moniker.
8503 * gcc-interface/trans.c (gigi): Add standard_character parameter.
8504 Remove useless built-in types. Equate unsigned_char_type_node to
8505 Standard.Character. Use it instead of char_type_node throughout.
8506 (Attribute_to_gnu): Likewise.
8507 (gnat_to_gnu): Likewise.
8508 * gcc-interface/utils2.c (build_call_raise): Likewise.
8510 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8512 * gcc-interface/gigi.h (enum standard_datatypes): Add new values
8513 ADT_sbitsize_one_node and ADT_sbitsize_unit_node.
8514 (sbitsize_one_node): New macro.
8515 (sbitsize_unit_node): Likewise.
8516 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Fix
8517 latent bug in the computation of subrange_p. Fold wider_p predicate.
8518 (cannot_be_superflat_p): Use an explicitly signed 64-bit type to do
8519 the final comparison.
8520 (make_aligning_type): Build real negation and use sizetype throughout
8521 the offset computation.
8522 (maybe_pad_type): Do not issue the warning when the new size expression
8524 (annotate_value) <INTEGER_CST>: Simplify code handling negative values.
8525 * gcc-interface/misc.c (gnat_init): Initialize sbitsize_one_node and
8527 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Pool_Address>: Fold
8529 (gnat_to_gnu) <N_Free_Statement>: Likewise.
8530 * gcc-interface/utils.c (convert): Use sbitsize_unit_node.
8531 * gcc-interface/utils2.c (compare_arrays): Compute real lengths and use
8532 constants in sizetype. Remove dead code and tweak comments. Generate
8533 equality instead of inequality comparisons for zero length tests.
8535 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8537 * gcc-interface/gigi.h (gnat_init_decl_processing): Delete.
8538 * gcc-interface/decl.c (gnat_to_gnu_entity): Constify a few variables.
8539 <object>: Do not create the fake PARM_DECL if no debug info is needed.
8540 Do not create the corresponding VAR_DECL of a CONST_DECL for debugging
8541 purposes if no debug info is needed.
8542 Fix formatting. Reorder and add comments.
8543 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Reference>: Constify
8544 variable and remove obsolete comment.
8545 * gcc-interface/utils.c (convert_vms_descriptor64): Tweak comment.
8546 (convert_vms_descriptor32): Likewise.
8547 (convert): Remove dead code.
8548 <UNCONSTRAINED_ARRAY_REF>: Pass the field instead of its name to build
8549 the reference to the P_ARRAY pointer.
8550 <POINTER_TYPE>: Likewise.
8551 (maybe_unconstrained_array) <UNCONSTRAINED_ARRAY_TYPE>: Likewise.
8552 (gnat_init_decl_processing): Delete, move contents to...
8553 * gcc-interface/misc.c (gnat_init): ...here.
8555 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8557 * gcc-interface/trans.c (unchecked_conversion_nop): Handle function
8558 calls. Return true for conversion from a record subtype to its type.
8560 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8562 * gcc-interface/decl.c (gnat_to_gnu_entity): Use boolean_type_node in
8563 lieu of integer_type_node for boolean operations.
8564 (choices_to_gnu): Likewise.
8565 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
8566 (Loop_Statement_to_gnu): Likewise.
8567 (establish_gnat_vms_condition_handler): Likewise.
8568 (Exception_Handler_to_gnu_sjlj): Likewise.
8569 (gnat_to_gnu): Likewise.
8570 (build_unary_op_trapv): Likewise.
8571 (build_binary_op_trapv): Likewise.
8572 (emit_range_check): Likewise.
8573 (emit_index_check): Likewise.
8574 (convert_with_check): Likewise.
8575 * gcc-interface/utils.c (convert_vms_descriptor64): Likewise.
8576 (convert_vms_descriptor32): Likewise.
8577 (convert_vms_descriptor): Likewise.
8578 * gcc-interface/utils2.c (nonbinary_modular_operation): Likewise.
8579 (compare_arrays): Use boolean instead of integer constants.
8580 (build_binary_op) <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR,
8581 TRUTH_OR_EXPR, TRUTH_XOR_EXPR>: New case. Check that the result type
8583 <GE_EXPR, LE_EXPR, GT_EXPR, LT_EXPR>: Remove obsolete assertion.
8584 <EQ_EXPR, NE_EXPR>: Check that the result type is a boolean type.
8585 <PREINC/PREDECREMENT_EXPR, POSTINC/POSTDECREMENT_EXPR>: Delete.
8586 <TRUTH_NOT_EXPR>: Check that the result type is a boolean type.
8587 (build_unary_op): Use boolean_type_node in lieu of integer_type_node
8588 for boolean operations.
8589 (fill_vms_descriptor): Likewise. Fix formatting nits.
8591 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8593 * gcc-interface/ada-tree.def (LOOP_STMT): Change to 4-operand nodes.
8594 * gcc-interface/ada-tree.h (LOOP_STMT_TOP_COND, LOOP_STMT_BOT_COND):
8596 (LOOP_STMT_COND): ...this.
8597 (LOOP_STMT_BOTTOM_COND_P): New flag.
8598 (LOOP_STMT_TOP_UPDATE_P): Likewise.
8599 * gcc-interface/trans.c (can_equal_min_or_max_val_p): New function.
8600 (can_equal_min_val_p): New static inline function.
8601 (can_equal_max_val_p): Likewise.
8602 (Loop_Statement_to_gnu): Use build4 in lieu of build5 and adjust to
8603 new LOOP_STMT semantics. Use two different strategies depending on
8604 whether optimization is enabled to translate the loop.
8605 (gnat_gimplify_stmt) <LOOP_STMT>: Adjust to new LOOP_STMT semantics.
8607 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8609 * uintp.adb (UI_From_Dint): Remove useless code.
8610 (UI_From_Int): Likewise.
8611 * uintp.h: Reorder declarations.
8612 (UI_From_gnu): Declare.
8613 (UI_Base): Likewise.
8614 (Vector_Template): Likewise.
8615 (Vector_To_Uint): Likewise.
8618 * gcc-interface/gigi.h: Tweak comments.
8619 * gcc-interface/cuintp.c (UI_From_gnu): New global function.
8620 * gcc-interface/decl.c (maybe_pad_type): Do not warn if either size
8622 (annotate_value) <INTEGER_CST>: Call UI_From_gnu.
8623 * gcc-interface/trans.c (post_error_ne_num): Call post_error_ne.
8624 (post_error_ne_tree): Call UI_From_gnu and post_error_ne.
8625 * gcc-interface/utils.c (max_size) <tcc_binary>: Do not special-case
8628 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8630 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Just copy
8632 * gcc-interface/trans.c (smaller_packable_type_p): Rename into...
8633 (smaller_form_type_p): ...this. Change parameter and variable names.
8634 (call_to_gnu): Use the nominal type of the parameter to create the
8635 temporary if it's a smaller form of the actual type.
8636 (addressable_p): Return false if the actual type is integral and its
8637 size is greater than that of the expected type.
8639 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8641 * gcc-interface/cuintp.c (UI_To_gnu): Fix long line.
8642 * gcc-interface/gigi.h (MARK_VISITED): Skip objects of constant class.
8643 (process_attributes): Delete.
8644 (post_error_ne_num): Change parameter name.
8645 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force debug info
8646 with -g3. Remove a couple of obsolete lines. Minor tweaks.
8647 If type annotating mode, operate on trees to compute the adjustment to
8648 the sizes of tagged types. Fix long line.
8649 (cannot_be_superflat_p): Tweak head comment.
8650 (annotate_value): Fold local constant.
8651 (set_rm_size): Fix long line.
8652 * gcc-interface/trans.c (Identifier_to_gnu): Rework comments.
8653 (Attribute_to_gnu): Fix long line.
8654 <Attr_Size>: Remove useless assertion.
8655 Reorder statements. Use size_binop routine.
8656 (Loop_Statement_to_gnu): Use build5 in lieu of build_nt.
8657 Create local variables for the label and the test. Tweak comments.
8658 (Subprogram_Body_to_gnu): Reset cfun to NULL.
8659 (Compilation_Unit_to_gnu): Use the Sloc of the Unit node.
8660 (process_inlined_subprograms): Integrate into...
8661 (Compilation_Unit_to_gnu): ...this.
8662 (gnat_to_gnu): Fix long line.
8663 (post_error_ne_num): Change parameter name.
8664 * gcc-interface/utils.c (process_attributes): Static-ify.
8665 <ATTR_MACHINE_ATTRIBUTE>: Set input_location before proceeding.
8666 (create_type_decl): Add comment.
8667 (create_var_decl_1): Process the attributes after adding the VAR_DECL
8668 to the current binding level.
8669 (create_subprog_decl): Likewise for the FUNCTION_DECL.
8670 (end_subprog_body): Do not reset cfun to NULL.
8671 (build_vms_descriptor32): Fix long line.
8672 (build_vms_descriptor): Likewise.
8673 (handle_nonnull_attribute): Likewise.
8674 (convert_vms_descriptor64): Likewise.
8675 * gcc-interface/utils2.c (fill_vms_descriptor): Fix long line.
8676 (gnat_protect_expr): Fix thinko.
8678 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8680 * gcc-interface/trans.c (gigi): Set DECL_IGNORED_P on EH functions.
8681 (gnat_to_gnu) <N_Op_Eq>: Restore the value of input_location
8682 before translating the top-level node.
8683 (lvalue_required_p) <N_Function_Call>: Return 1 if !constant.
8684 <N_Object_Declaration>: Likewise.
8685 <N_Assignment_Statement>: Likewise.
8686 <N_Unchecked_Type_Conversion>: Likewise.
8687 (call_to_gnu): Remove kludge.
8688 (gnat_to_gnu) <N_Return_Statement>: When not optimizing, force labels
8689 associated with user returns to be preserved.
8690 (gnat_to_gnu): Add special code to deal with boolean rvalues.
8691 * gcc-interface/utils2.c (compare_arrays): Set input_location on all
8693 (build_unary_op) <ADDR_EXPR>: Call build_fold_addr_expr.
8694 <INDIRECT_REF>: Call build_fold_indirect_ref.
8696 2010-04-15 Joel Sherrill <joel.sherrill@oarcorp.com>
8698 * g-socket.adb: A target can have multiple missing errno's. This
8699 will result in multiple errno's being defined as -1. Because of this
8700 we can not use a case but must use a series of if's to avoid
8701 a duplicate case error in GNAT.Sockets.Resolve_Error.
8703 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8705 * gcc-interface/trans.c (call_to_gnu): Open a nesting level if this is
8706 a statement. Otherwise, if at top-level, push the processing of the
8707 elaboration routine. In the misaligned case, issue the error messages
8708 again on entry and create the temporary explicitly. Do not issue them
8710 For a function call, emit the range check if necessary.
8711 In the copy-in copy-out case, create the temporary for the return
8713 Do not unnecessarily convert by-ref parameters to the formal's type.
8714 Remove obsolete guards in conditions.
8715 (gnat_to_gnu) <N_Assignment_Statement>: For a function call, pass the
8716 target to call_to_gnu in all cases.
8717 (gnat_gimplify_expr) <ADDR_EXPR>: Remove handling of SAVE_EXPR.
8718 (addressable_p) <CONSTRUCTOR>: Return false if not static.
8719 <COMPOUND_EXPR>: New case.
8720 * gcc-interface/utils2.c (build_unary_op) <ADDR_EXPR>: Fold a compound
8721 expression if it has unconstrained array type.
8722 (gnat_mark_addressable) <COMPOUND_EXPR>: New case.
8723 (gnat_stabilize_reference) <COMPOUND_EXPR>: Stabilize operands on an
8726 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8728 * gcc-interface/trans.c (gigi): Do not start statement group.
8729 (Compilation_Unit_to_gnu): Set current_function_decl to NULL.
8730 Start statement group and push binding level here...
8731 (gnat_to_gnu) <N_Compilation_Unit>: ...and not here.
8732 Do not push fake contexts at top level. Remove redundant code.
8733 (call_to_gnu): Rename a local variable and constify another.
8734 * gcc-interface/utils.c (gnat_pushlevel): Fix formatting nits.
8735 (set_current_block_context): Set it as the group's block.
8736 (gnat_init_decl_processing): Delete unrelated init code.
8737 (end_subprog_body): Use NULL_TREE.
8739 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8741 * gcc-interface/trans.c (call_to_gnu): Do not unnecessarily force
8742 side-effects of actual parameters before the call.
8744 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8746 * gcc-interface/decl.c (validate_size): Reorder, remove obsolete test
8748 (set_rm_size): Reorder and remove obsolete test.
8750 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
8752 * gcc-interface/gigi.h: Reorder declarations and tweak comments.
8753 (gigi): Adjust ATTRIBUTE_UNUSED markers.
8754 * gcc-interface/gadaint.h: New file.
8755 * gcc-interface/trans.c: Include it in lieu of adaint.h. Reorder.
8756 (__gnat_to_canonical_file_spec): Remove declaration.
8757 (number_names): Delete.
8758 (number_files): Likewise.
8760 * gcc-interface/Make-lang.in (ada/trans.o): Adjust dependencies to
8763 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
8765 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Class_Wide_Type>: Fix
8767 * gcc-interface/trans.c (process_freeze_entity): Use local copy of
8768 Ekind. Return early for class-wide types. Do not compute initializer
8769 unless necessary. Reuse the tree for an associated class-wide type
8770 only if processing its root type.
8772 2010-04-13 Joel Sherrill <joel.sherrill@oarcorp.com>
8774 * gsocket.h: Run-time can no longer be built without network
8775 OS headers available. Changing RTEMS GNAT build procedure to
8776 reflect this and letting run-time build use network .h files.
8778 2010-04-13 Duncan Sands <baldrick@free.fr>
8780 * gcc-interface/misc.c (gnat_eh_type_covers): Remove.
8781 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Update comment.
8783 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
8785 * gcc-interface/gigi.h (standard_datatypes): Add ADT_parent_name_id.
8786 (parent_name_id): New macro.
8787 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Use it.
8788 * gcc-interface/trans.c (gigi): Initialize it.
8789 (lvalue_required_p) <N_Type_Conversion>: New case.
8790 <N_Qualified_Expression>: Likewise.
8791 <N_Allocator>: Likewise.
8792 * gcc-interface/utils.c (convert): Try to properly upcast tagged types.
8794 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
8796 * gcc-interface/ada-tree.h (TYPE_BY_REFERENCE_P): Delete.
8797 (DECL_CONST_ADDRESS_P): New macro.
8798 (SET_DECL_ORIGINAL_FIELD_TO_FIELD): Likewise.
8799 (SAME_FIELD_P): Likewise.
8800 * gcc-interface/decl.c (constructor_address_p): New static function.
8801 (gnat_to_gnu_entity) <object>: Set DECL_CONST_ADDRESS_P according to
8802 the return value of above function.
8803 (gnat_to_gnu_entity) <E_Record_Type>: Force BLKmode for all types
8804 passed by reference.
8805 <E_Record_Subtype>: Likewise.
8806 Set TREE_ADDRESSABLE on the type if it passed by reference.
8807 (make_packable_type): Use SET_DECL_ORIGINAL_FIELD_TO_FIELD.
8808 (create_field_decl_from): Likewise.
8809 (substitute_in_type): Likewise.
8810 (purpose_member_field): Use SAME_FIELD_P.
8811 * gcc-interface/misc.c (must_pass_by_ref): Test TREE_ADDRESSABLE.
8812 * gcc-interface/trans.c (lvalue_required_p): Add ADDRESS_OF_CONSTANT
8813 parameter and adjust recursive calls.
8814 <N_Explicit_Dereference>: New case.
8815 <N_Object_Declaration>: Return 1 if the object is of a class-wide type.
8816 Adjust calls to lvalue_required_p. Do not return the initializer of a
8817 DECL_CONST_ADDRESS_P constant if an lvalue is required for it.
8818 (call_to_gnu): Delay issuing error message for a misaligned actual and
8819 avoid the associated back-end assertion. Test TREE_ADDRESSABLE.
8820 (gnat_gimplify_expr) <ADDR_EXPR>: Handle non-static constructors.
8821 * gcc-interface/utils.c (make_dummy_type): Set TREE_ADDRESSABLE if the
8822 type is passed by reference.
8823 (convert) <CONSTRUCTOR>: Convert in-place in more cases.
8824 * gcc-interface/utils2.c (build_cond_expr): Drop TYPE_BY_REFERENCE_P.
8825 (build_simple_component_ref): Use SAME_FIELD_P.
8827 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
8829 * gcc-interface/trans.c (Identifier_to_gnu): Use boolean variable.
8830 (call_to_gnu): Test gigi's flag TYPE_BY_REFERENCE_P instead of calling
8831 front-end's predicate Is_By_Reference_Type. Use consistent order and
8832 remove ??? comment. Use original conversion in all cases, if any.
8833 * gcc-interface/utils.c (make_dummy_type): Minor tweak.
8834 (convert): Use local copy in more cases.
8835 <INDIRECT_REF>: Remove deactivated code.
8836 (unchecked_convert): Use a couple of local copies.
8838 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
8840 * gcc-interface/trans.c (lvalue_required_for_attribute_p): New static
8842 (lvalue_required_p) <N_Attribute_Reference>: Call it.
8843 (gnat_to_gnu) <N_Selected_Component>: Prevent build_component_ref from
8844 folding the result only if lvalue_required_for_attribute_p is true.
8845 * gcc-interface/utils.c (maybe_unconstrained_array): Pass correctly
8846 typed constant to build_component_ref.
8847 (unchecked_convert): Likewise.
8848 * gcc-interface/utils2.c (maybe_wrap_malloc): Likewise.
8849 (build_allocator): Likewise.
8851 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
8853 * gcc-interface/utils2.c (build_cond_expr): Take the address and
8854 dereference if the result type is passed by reference.
8856 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
8858 * gcc-interface/trans.c (Case_Statement_to_gnu): Bool-ify variable.
8859 (gnat_to_gnu) <N_Null_Statement>: When not optimizing, generate a
8860 goto to the next statement.
8862 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
8864 * gcc-interface/gigi.h (maybe_variable): Delete.
8865 (protect_multiple_eval): Likewise.
8866 (maybe_stabilize_reference): Likewise.
8867 (gnat_save_expr): Declare.
8868 (gnat_protect_expr): Likewise.
8869 (gnat_stabilize_reference): Likewise.
8870 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use
8871 gnat_stabilize_reference.
8872 (maybe_variable): Delete.
8873 (elaborate_expression_1): Use gnat_save_expr.
8874 * gcc-interface/trans.c (Attribute_to_gnu): Use gnat_protect_expr.
8875 (call_to_gnu): Pass NULL to gnat_stabilize_reference.
8876 (gnat_to_gnu) <N_Object_Declaration>: Use gnat_save_expr.
8877 <N_Slice>: Use gnat_protect_exp.
8878 <N_Selected_Component>: Pass NULL to gnat_stabilize_reference.
8879 <N_In>: Use gnat_protect_expr.
8880 Pass NULL to gnat_stabilize_reference.
8881 (build_unary_op_trapv): Use gnat_protect_expr.
8882 (build_binary_op_trapv): Likewise.
8883 (emit_range_check): Likewise.
8884 (emit_index_check): Likewise.
8885 (convert_with_check): Likewise.
8886 (protect_multiple_eval): Move to utils2.c file.
8887 (maybe_stabilize_reference): Merge into...
8888 (gnat_stabilize_reference): ...this. Move to utils2.c file.
8889 (gnat_stabilize_reference_1): Likewise.
8890 * gcc-interface/utils.c (convert_to_fat_pointer): Use gnat_protect_expr
8891 instead of protect_multiple_eval.
8892 * gcc-interface/utils2.c (compare_arrays): Likewise.
8893 (nonbinary_modular_operation): Likewise.
8894 (maybe_wrap_malloc): Likewise.
8895 (build_allocator): Likewise.
8896 (gnat_save_expr): New function.
8897 (gnat_protect_expr): Rename from protect_multiple_eval. Early return
8898 in common cases. Propagate TREE_READONLY onto dereferences.
8899 (gnat_stabilize_reference_1): Move from trans.c file.
8900 (gnat_stabilize_reference): Likewise.
8902 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
8904 * gcc-interface/gigi.h (gnat_mark_addressable): Rename parameter.
8905 * gcc-interface/decl.c (maybe_variable): Do not set TREE_STATIC on _REF
8906 node. Use the type of the operand to set TREE_READONLY.
8907 * gcc-interface/trans.c (Identifier_to_gnu): Do not set TREE_STATIC on
8908 _REF node. Do not overwrite TREE_READONLY.
8909 (call_to_gnu): Rename local variable and fix various nits. In the
8910 copy-in/copy-out case, build the SAVE_EXPR manually.
8911 (convert_with_check): Call protect_multiple_eval in lieu of save_expr
8912 and fold the computations.
8913 (protect_multiple_eval): Always save entire fat pointers.
8914 (maybe_stabilize_reference): Minor tweaks.
8915 (gnat_stabilize_reference_1): Likewise. Do not deal with tcc_constant,
8916 tcc_type and tcc_statement.
8917 * gcc-interface/utils.c (convert_to_fat_pointer): Call
8918 protect_multiple_eval in lieu of save_expr.
8919 (convert): Minor tweaks.
8920 (maybe_unconstrained_array): Do not set TREE_STATIC on _REF node.
8921 (builtin_type_for_size): Call gnat_type_for_size directly.
8922 * gcc-interface/utils2.c (contains_save_expr_p): Delete.
8923 (contains_null_expr): Likewise
8924 (gnat_build_constructor): Do not call it.
8925 (compare_arrays): Deal with all side-effects, use protect_multiple_eval
8926 instead of gnat_stabilize_reference to protect the operands.
8927 (nonbinary_modular_operation): Call protect_multiple_eval in lieu of
8929 (maybe_wrap_malloc): Likewise.
8930 (build_allocator): Likewise.
8931 (build_unary_op) <INDIRECT_REF>: Do not set TREE_STATIC on _REF node.
8932 (gnat_mark_addressable): Rename parameter.
8934 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
8936 * gcc-interface/ada-tree.h (TYPE_RETURNS_UNCONSTRAINED_P): Rename into.
8937 (TYPE_RETURN_UNCONSTRAINED_P): ...this.
8938 (TYPE_RETURNS_BY_REF_P): Rename into.
8939 (TYPE_RETURN_BY_DIRECT_REF_P): ...this.
8940 (TYPE_RETURNS_BY_TARGET_PTR_P): Delete.
8941 * gcc-interface/gigi.h (create_subprog_type): Adjust parameter names.
8942 (build_return_expr): Likewise.
8943 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>:
8944 Rename local variables. If the return Mechanism is By_Reference, pass
8945 return_by_invisible_ref_p to create_subprog_type instead of toggling
8946 TREE_ADDRESSABLE. Test return_by_invisible_ref_p in order to annotate
8947 the mechanism. Use regular return for contrained types with non-static
8948 size and return by invisible reference for unconstrained return types
8949 with default discriminants. Update comment.
8950 * gcc-interface/trans.c (Subprogram_Body_to_gnu): If the function
8951 returns by invisible reference, turn the RESULT_DECL into a pointer.
8952 Do not handle DECL_BY_REF_P in the CICO case here.
8953 (call_to_gnu): Remove code handling return by target pointer. For a
8954 function call, if the return type has non-constant size, generate the
8955 assignment with an INIT_EXPR.
8956 (gnat_to_gnu) <N_Return_Statement>: Remove dead code in the CICO case.
8957 If the function returns by invisible reference, build the copy return
8959 (add_decl_expr): Initialize the variable with an INIT_EXPR.
8960 * gcc-interface/utils.c (create_subprog_type): Adjust parameter names.
8961 Adjust for renaming of macros. Copy the node only when necessary.
8962 (create_subprog_decl): Do not toggle TREE_ADDRESSABLE on the return
8963 type, only change DECL_BY_REFERENCE on the RETURN_DECL.
8964 (convert_from_reference): Delete.
8965 (is_byref_result): Likewise.
8966 (gnat_genericize_r): Likewise.
8967 (gnat_genericize): Likewise.
8968 (end_subprog_body): Do not call gnat_genericize.
8969 * gcc-interface/utils2.c (build_binary_op) <INIT_EXPR>: New case.
8970 (build_return_expr): Adjust parameter names, logic and comment.
8972 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
8974 * exp_pakd.adb (Create_Packed_Array_Type): Always use a modular type
8975 if the size is small enough. Propagate the alignment if there is an
8976 alignment clause on the original array type.
8977 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
8978 Deal with under-aligned packed array types. Copy the size onto the
8979 justified modular type and don't lay it out again. Likewise for the
8980 padding type built for other under-aligned subtypes.
8981 * gcc-interface/utils.c (finish_record_type): Do not set a default mode
8984 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
8986 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set default
8987 alignment on the RETURN type built for the Copy-In Copy-Out mechanism.
8989 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
8991 * gcc-interface/trans.c (call_to_gnu): In the return-by-target-ptr case
8992 do not set the result type if there is a specified target and do not
8993 convert the result in any cases.
8994 (protect_multiple_eval): Make direct SAVE_EXPR for CALL_EXPR.
8995 (maybe_stabilize_reference) <COMPOUND_EXPR>: Merge with CALL_EXPR.
8997 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
8999 * gcc-interface/Makefile.in (SPARC/Solaris): Use sparcv8plus.
9001 2010-02-27 Eric Botcazou <ebotcazou@adacore.com>
9004 * gcc-interface/utils2.c (build_binary_op) <EQ_EXPR>: Assert that fat
9005 pointer base types are variant of each other. Apply special treatment
9006 for null to fat pointer types in all cases.
9008 2010-01-28 Pascal Obry <obry@adacore.com>
9010 * s-win32.ads: Add some missing constants.
9012 2010-01-28 Vincent Celier <celier@adacore.com>
9014 * prj-attr-pm.adb (Add_Attribute): Do nothing if To_Package is
9017 2010-01-28 Robert Dewar <dewar@adacore.com>
9019 * gnat_rm.texi: Minor correction
9021 2010-01-27 Pascal Obry <obry@adacore.com>
9023 * g-awk.adb: ensure that an AWK session is reusable.
9025 2010-01-27 Vasiliy Fofanov <fofanov@adacore.com>
9027 * g-regist.adb (For_Every_Key): Fix previous change.
9030 2010-01-27 Thomas Quinot <quinot@adacore.com>
9032 * lib-writ.ads: Current version of spec for new N (note) ALI lines
9034 2010-01-27 Yannick Moy <moy@adacore.com>
9036 * a-cdlili.adb (Insert): Correct exception message when cursor
9037 designates wrong list.
9039 2010-01-27 Vincent Celier <celier@adacore.com>
9041 * gnatcmd.adb: When there is only one main specified, the package
9042 support Switches (<main>) and attribute Switches is specified for the
9043 main, use these switches, instead of Default_Switches ("Ada").
9045 2010-01-27 Robert Dewar <dewar@adacore.com>
9047 * sem_prag.adb, par-prag.adb, snames.ads-tmpl: pragma Dimension initial
9049 * exp_disp.adb: Minor reformatting
9051 2010-01-27 Tristan Gingold <gingold@adacore.com>
9053 * seh_init.c: Use __ImageBase instead of _ImageBase.
9055 2010-01-27 Javier Miranda <miranda@adacore.com>
9057 * exp_disp.ads, exp_disp.adb (Expand_Interface_Thunk): Modify the
9058 profile of interface thunks. The type of the controlling formal is now
9059 the covered interface type (instead of the target tagged type).
9061 2010-01-27 Sergey Rybin <rybin@adacore.com>
9063 * gnat_rm.texi, gnat_ugn.texi: Update gnatcheck doc.
9065 2010-01-27 Robert Dewar <dewar@adacore.com>
9067 * sinput.ads, sinput.adb (Sloc_Range): Applies to all nodes, formal
9068 changed from Expr to N.
9070 2010-01-26 Thomas Quinot <quinot@adacore.com>
9072 * gnat_ugn.texi: Adjust documentation of -gnatz switches.
9073 * usage.adb: Replace line for -gnatz with two lines for -gnatzc and
9076 2010-01-26 Vincent Celier <celier@adacore.com>
9078 * prj-attr.adb: Add new attribute Library_Install_Name_Option
9079 Replace attribute Run_Path_Origin_Supported with Run_Path_Origin
9080 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
9081 attributes Run_Path_Option and Library_Install_Name_Option.
9082 * prj.ads (Project_Configuration): Replace component
9083 Run_Path_Origin_Supported with component Run_Path_Origin. Add new
9084 component Library_Install_Name_Option.
9085 * snames.ads-tmpl: Add new standard name Library_Install_Name_Option
9086 Replace Run_Path_Origin_Supported with Run_Path_Origin
9088 2010-01-26 Ed Schonberg <schonberg@adacore.com>
9090 * sem_ch8.adb (Use_One_Package): Within an instance, an actual package
9091 is not hidden by a homograph declared in another actual package.
9093 2010-01-26 Robert Dewar <dewar@adacore.com>
9095 * par_sco.adb (Traverse_Declarations_Or_Statements): Only generate
9096 decisions for pragmas Assert, Check, Precondition, Postcondition if
9098 * scos.ads: Update comments.
9099 * get_scos.adb, put_scos.adb: Minor fix to code reading statement SCOs.
9100 Also remove obsolete code for CT (exit point) SCOs.
9102 2010-01-26 Thomas Quinot <quinot@adacore.com>
9104 * switch-c.adb: Fix handling of -gnatz*
9106 2010-01-26 Robert Dewar <dewar@adacore.com>
9108 * par_sco.adb (Traverse_Declarations_Or_Statements): Separate F/W
9109 qualifiers for FOR/WHILE loops
9110 * scos.ads: Use separate type letters F/W for for/while loops
9112 2010-01-26 Robert Dewar <dewar@adacore.com>
9114 * get_scos.adb (Get_SCOs): Implement new form of CS entries (multiple
9115 entries per line, one for each statement in the sequence).
9116 * par_sco.adb (Traverse_Declarations_Or_Statements): Increase array
9117 size from 100 to 10_000 for SC_Array to avoid any real possibility of
9118 overflow. Output decisions in for loops.
9119 Exclude labels from CS lines.
9120 * scos.ads: Clarify that label is not included in the entry point
9122 2010-01-26 Robert Dewar <dewar@adacore.com>
9124 * par_sco.adb (Traverse_Declarations_Or_Statments): Implement new
9125 format of statement sequence SCO entries (one location/statement).
9126 * put_scos.adb (Put_SCOs): Implement new format of CS lines
9127 * scos.ads: Update comments.
9128 * sem_eval.adb: Minor reformatting.
9130 2010-01-26 Robert Dewar <dewar@adacore.com>
9132 * par_sco.ads, par_sco.adb (Set_Statement_Entry): New handling of exits
9133 (Extend_Statement_Sequence): New procedures
9134 (Traverse_Declarations_Or_Statements): New handling for exits.
9136 2010-01-26 Robert Dewar <dewar@adacore.com>
9138 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
9141 2010-01-26 Robert Dewar <dewar@adacore.com>
9143 * par_sco.adb (Is_Logical_Operator): Exclude AND/OR/XOR
9144 * scos.ads: Clarify handling of logical operators
9146 2010-01-26 Arnaud Charlet <charlet@adacore.com>
9148 * s-tpoben.adb: Update comments.
9150 2010-01-26 Robert Dewar <dewar@adacore.com>
9152 * freeze.adb (Set_Small_Size): Don't set size if alignment clause
9155 2010-01-26 Robert Dewar <dewar@adacore.com>
9157 * scos.ads: Clean up documentation, remove obsolete XOR references
9158 2010-01-26 Vincent Celier <celier@adacore.com>
9160 * gnat_ugn.texi: Complete documentation on the restrictions for
9161 combined options in -gnatxxx switches.
9164 2010-01-26 Arnaud Charlet <charlet@adacore.com>
9166 * s-tpoben.adb (Initialize_Protection_Entries): If a PO is created from
9167 a controlled operation, abort is already deferred at this point, so we
9168 need to use Defer_Abort_Nestable.
9170 2010-01-26 Vincent Celier <celier@adacore.com>
9172 * prj-conf.adb (Get_Config_Switches): Check for a default language for
9173 a project extending a project with no languages.
9175 2010-01-26 Vincent Celier <celier@adacore.com>
9177 * switch-c.adb (Scan_Front_End_Switches): Take into account options
9178 that follow -gnatef.
9179 Allow -gnateG to be followed by other options.
9181 2010-01-26 Robert Dewar <dewar@adacore.com>
9183 * s-commun.ads, s-osprim-mingw.adb, s-stchop-vxworks.adb, sem_aggr.adb,
9184 s-vxwext.adb, sem_ch10.adb, sem_eval.adb, sem_prag.adb: Minor
9187 2010-01-26 Vasiliy Fofanov <fofanov@adacore.com>
9189 * g-regist.adb, g-regist.ads (For_Every_Key): New generic procedure
9190 that allows to iterate over all subkeys of a key.
9192 2010-01-26 Ed Falis <falis@adacore.com>
9194 * sysdep.c: enable NFS for VxWorks MILS
9195 * env.c: enable __gnat_environ for VxWorks MILS
9196 * gcc-interface/Makefile.in: Add VxWorks MILS target pairs.
9198 2010-01-25 Bob Duff <duff@adacore.com>
9200 * sem_aggr.adb (Resolve_Array_Aggregate): Check for the case where this
9201 is an internally-generated positional aggregate, and the bounds are
9202 already correctly set. We don't want to overwrite those bounds with
9203 bounds determined by context.
9205 2010-01-25 Robert Dewar <dewar@adacore.com>
9207 * g-sercom.ads, gnatcmd.adb, gnatlink.adb, a-ststio.adb, exp_ch6.adb,
9208 exp_ch9.adb, g-sechas.ads: Minor reformatting.
9210 2010-01-25 Thomas Quinot <quinot@adacore.com>
9212 * s-commun.adb (Last_Index): Count must be converted to SEO (a signed
9213 integer type) before subtracting 1, otherwise the computation may wrap
9214 (because size_t is modular) and cause the conversion to fail.
9216 2010-01-25 Ed Falis <falis@adacore.com>
9218 * sysdep.c, init.c: Adapt to support full run-time on VxWorks MILS.
9220 2010-01-25 Vincent Celier <celier@adacore.com>
9222 * prj-attr.adb: New attribute Run_Path_Origin_Required
9223 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process new
9224 attribute Run_Path_Origin_Required.
9225 * prj.ads (Project_Configuration): New component
9226 Run_Path_Origin_Supported.
9227 * snames.ads-tmpl: New standard name Run_Path_Origin_Required
9229 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9231 * sem_aggr.adb (Resolve_Array_Aggregate): If the bounds in a choice
9232 have errors, do not continue resolution of the aggregate.
9233 * sem_eval.adb (Eval_Indexed_Component): Do not attempt to evaluate if
9234 the array type indicates an error.
9236 2010-01-25 Bob Duff <duff@adacore.com>
9238 * sinfo.ads: Minor comment fixes.
9240 2010-01-25 Bob Duff <duff@adacore.com>
9242 * exp_ch4.adb, exp_aggr.adb: Minor comment fixes and code clean up.
9244 2010-01-25 Arnaud Charlet <charlet@adacore.com>
9246 * gnatvsn.ads (Current_Year): Update.
9248 2010-01-25 Florian Villoing <villoing@adacore.com>
9250 * gnat_ugn.texi: Fix typo.
9252 2010-01-25 Thomas Quinot <quinot@adacore.com>
9254 * scos.ads: Update specification.
9256 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9258 * sem_ch6.adb (Process_PPCs): If a postcondition is present and the
9259 enclosing subprogram has no previous spec, attach postcondition
9260 procedure to the defining entity for the body.
9262 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9264 * exp_aggr.adb (Build_Record_Aggr_Code); Do not generate call to
9265 initialization procedure of the ancestor part of an extension aggregate
9266 if it is an interface type.
9268 2010-01-25 Vincent Celier <celier@adacore.com>
9270 * gnatlink.adb (Process_Binder_File): The directory for the shared
9271 version of libgcc in the run path options is found in the subdirectory
9272 indicated by __gnat_default_libgcc_subdir.
9273 * link.c: Declare new const char * __gnat_default_libgcc_subdir for
9276 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9278 * sem_prag.adb: More flexible pragma Annotate.
9280 2010-01-22 Eric Botcazou <ebotcazou@adacore.com>
9282 * system-linux-armel.ads (Stack_Check_Probes): Set to True.
9283 * system-linux-armeb.ads (Stack_Check_Probes): Likewise.
9285 2010-01-18 Eric Botcazou <ebotcazou@adacore.com>
9287 * gcc-interface/utils.c (create_var_decl_1): Fix formatting nits.
9289 2010-01-18 Jan Hubicka <jh@suse.cz>
9292 * gcc-interface/utils.c (create_var_decl_1): Do not set COMMON flag for
9293 unit local variables.
9295 2010-01-17 Laurent GUERBY <laurent@guerby.net>
9297 * gcc-interface/Makefile.in: Fix typo in arm*-*-linux-gnueabi.
9299 2010-01-11 Mikael Pettersson <mikpe@it.uu.se>
9301 * gcc-interface/Makefile.in: Add arm*-*-linux-gnueabi.
9302 * system-linux-armeb.ads, system-linux-armel.ads: New files.
9304 2010-01-09 Simon Wright <simon@pushface.org>
9307 * gcc-interface/Makefile.in (gnatlib-shared-darwin): Add missing
9312 Copyright (C) 2010 Free Software Foundation, Inc.
9314 Copying and distribution of this file, with or without modification,
9315 are permitted in any medium without royalty provided the copyright
9316 notice and this notice are preserved.