1 2010-10-25 Jose Ruiz <ruiz@adacore.com>
3 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for powerpc-linux):
4 Reorganize target pairs so that it works on linux and ElinOS.
6 2010-10-25 Pascal Obry <obry@adacore.com>
8 * adaint.c (__gnat_file_time_name_attr): Use GetFileAttributesEx to get
9 the timestamp. A bit faster than opening/closing the file.
10 (__gnat_stat_to_attr): Remove kludge for Windows.
11 (__gnat_file_exists_attr): Likewise.
12 The timestamp is now retreived using GetFileAttributesEx as faster.
14 2010-10-25 Javier Miranda <miranda@adacore.com>
16 * sem_ch3.adb (Derive_Interface_Subprogram): New subprogram.
17 (Derive_Subprograms): For abstract private types transfer to the full
18 view entities of uncovered interface primitives. Required because if
19 the interface primitives are left in the private part of the package
20 they will be decorated as hidden when the analysis of the enclosing
21 package completes (and hence the interface primitive is not visible
22 for dispatching calls).
24 2010-10-25 Matthew Heaney <heaney@adacore.com>
26 * Makefile.rtl, impunit.adb: Added bounded set and bounded map
28 * a-crbltr.ads: Added declaration of generic package for bounded tree
30 * a-rbtgbo.ads, a-rbtgbo.adb, a-rbtgbk.ads, a-rbtgbk.adb, a-btgbso.ads,
31 a-btgbso.adb, a-cborse.ads, a-cborse.adb, a-cborma.ads, a-cborma.adb:
34 2010-10-25 Thomas Quinot <quinot@adacore.com>
36 * sem_util.adb: Minor reformatting.
37 * usage.adb: Fix usage line for -gnatwh.
39 2010-10-25 Thomas Quinot <quinot@adacore.com>
41 * sem_ch12.adb (Analyze_Package_Instantiation): For an
42 instantiation in an RCI spec, omit package body if instantiation comes
43 from source, even as a nested
45 * exp_dist.adb (Add_Calling_Stubs_To_Declarations,
46 *_Support.Add_Receiving_Stubs_To_Declarations): Handle the case of
47 nested packages, package instantiations and subprogram instantiations.
49 2010-10-25 Robert Dewar <dewar@adacore.com>
51 * exp_ch5.adb (Expand_Predicated_Loop): Remove code for loop through
52 non-static predicate, since we agree not to allow this.
53 (Expand_Predicated_Loop): Properlay handle false predicate (null
54 list in Static_Predicate field.
55 * sem_ch13.adb (Build_Static_Predicate): Extensive changes to clean up
56 handling of more general predicate forms.
58 2010-10-25 Robert Dewar <dewar@adacore.com>
60 * sem_ch4.adb, sem_util.adb: Minor reformatting.
61 * sem_ch8.adb (Find_Selected_Component): Allow selection from instance
62 of type in predicate or invariant expression.
64 2010-10-25 Pascal Obry <obry@adacore.com>
66 * adaint.c (__gnat_stat_to_attr): Can set the timestamp on Windows now.
68 (__gnat_stat): Rewrite Win32 version.
70 2010-10-25 Robert Dewar <dewar@adacore.com>
72 * sem_warn.adb, einfo.ads, exp_ch4.adb: Minor comment fix
73 * sem_case.adb: Comment clarification for loops through false
75 * sem_util.adb: Minor reformatting
76 (Check_Order_Dependence): Fix bad double blank in error message
78 2010-10-25 Ed Schonberg <schonberg@adacore.com>
80 * sem_ch4.adb (Analyze_Membership_Op): in Ada_2012 a membership
81 operation can have a single alternative that is a value of the type.
82 Rewrite operation as an equality test.
84 2010-10-25 Matthew Heaney <heaney@adacore.com>
86 * Makefile.rtl, impunit.adb: Added a-cobove (bounded vector container)
88 * a-contai.ads: Added declaration of Capacity_Error exception.
89 * a-cobove.ads, a-cobove.adb: New files.
91 2010-10-25 Thomas Quinot <quinot@adacore.com>
93 * uname.adb: Revert previous change, no longer needed after change
96 2010-10-25 Thomas Quinot <quinot@adacore.com>
98 * scos.ads: Minor comment fix.
100 2010-10-25 Ed Schonberg <schonberg@adacore.com>
102 * sem_ch5.adb (Analyze_Assignment_Statement): Check dangerous order
104 * sem_ch6.adb (Analyze_Procedure_Call_Statement): Ditto.
105 * sem_res.adb (Analyze_Actuals): Add actual to list of actuals for
106 current construct, for subsequent order dependence checking.
107 (Resolve): Check order dependence on expressions that are not
109 * sem_util.adb (Check_Order_Dependence): Code cleanup, to correspond
110 to latest version of AI05-144-2.
111 * sem_warn.adb (Warn_On_Overlapping_Actuals): Code cleanup.
113 2010-10-25 Robert Dewar <dewar@adacore.com>
115 * sem_ch13.adb (Build_Static_Predicate): Moved out of
116 Build_Predicate_Function.
117 (Build_Static_Predicate): Complet rewrite for more general predicates
119 2010-10-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
120 Eric Botcazou <ebotcazou@adacore.com>
122 * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Function): Allow
123 In Out/Out parameters for functions.
124 * gcc-interface/trans.c (gnu_return_var_stack): New variable.
125 (create_init_temporary): New static function.
126 (Subprogram_Body_to_gnu): Handle In Out/Out parameters for functions.
127 (call_to_gnu): Likewise. Use create_init_temporary in order to create
128 temporaries for unaligned parameters and return value. If there is an
129 unaligned In Out or Out parameter passed by reference, push a binding
130 level if not already done. If a binding level has been pushed and the
131 call is returning a value, create the call statement.
132 (gnat_to_gnu) <N_Return_Statement>: Handle In Out/Out parameters for
135 2010-10-22 Ben Brosgol <brosgol@adacore.com>
137 * gnat_rm.texi: Add chapter on Ada 2012 support.
139 2010-10-22 Robert Dewar <dewar@adacore.com>
141 * sem_ch12.adb: Minor reformatting.
143 2010-10-22 Thomas Quinot <quinot@adacore.com>
145 * exp_dist.adb: Mark missing case of nested package when expanding
148 2010-10-22 Ed Schonberg <schonberg@adacore.com>
150 * par-ch10.adb: Discard incomplete with_clause.
152 2010-10-22 Robert Dewar <dewar@adacore.com>
154 * checks.adb (Enable_Range_Check): Remove code suppressing range check
155 if static predicate present, not needed.
156 * exp_attr.adb (Expand_Pred_Succ): Check Suppress_Assignment_Checks flag
157 * exp_ch3.adb (Expand_N_Object_Declaration): Check
158 Suppress_Assignment_Checks flag.
159 * exp_ch4.adb (Expand_N_In): Make some corrections for proper handling
160 of ranges when predicates are present.
161 * exp_ch5.adb (Expand_Predicated_Loop): New procedure
162 (Expand_N_Assignment_Statement): Check Suppress_Assignment_Checks flag
163 (Expand_N_Loop_Statement): Handle loops over predicated types
164 * sem_case.adb (Analyze_Choices): Remove extra blank in error message.
165 * sem_ch13.adb (Build_Predicate_Function.Add_Call): Suppress info
166 message for inheritance if within a generic instance, not useful there!
167 (Build_Static_Predicate): Optimize test in predicate function
168 based on static ranges determined.
169 * sem_ch5.adb (Analyze_Iteration_Scheme): Error for loop through
170 subtype with non-static predicate.
171 * sinfo.ads, sinfo.adb (Suppress_Assignment_Checks): New flag.
173 2010-10-22 Thomas Quinot <quinot@adacore.com>
175 * uname.adb (Get_Unit_Name.Add_Node_Name): If encountering an error
176 node in the unit name, propagate Program_Error to guard against
179 2010-10-22 Javier Miranda <miranda@adacore.com>
181 * sem_ch8.adb (Find_Selected_Component): Do not generate a subtype for
182 selected components of dispatch table wrappers.
184 2010-10-22 Ed Schonberg <schonberg@adacore.com>
186 * exp_ch9.adb (Make_Initialize_Protection): A protected type that
187 implements an interface must be treated as if it has entries, to
188 support dispatching select statements.
190 2010-10-22 Robert Dewar <dewar@adacore.com>
192 * sem_aggr.adb, sem_ch3.adb: Minor reformatting.
194 2010-10-22 Javier Miranda <miranda@adacore.com>
196 * sem_aggr.adb (Resolve_Array_Aggregate.Add): If the type of the
197 aggregate has a non standard representation the attributes 'Val and
198 'Pos expand into function calls and the resulting expression is
199 considered non-safe for reevaluation by the backend. Relocate it into
200 a constant temporary to indicate to the backend that it is side
203 2010-10-22 Ed Schonberg <schonberg@adacore.com>
205 * sem_ch3.adb (Build_Concurrent_Derived_Type): Create declaration for
206 derived corresponding record type only when expansion is enabled.
208 2010-10-22 Robert Dewar <dewar@adacore.com>
210 * sem_case.adb, sem_attr.adb (Bad_Predicated_Subtype_Use): Change order
212 * sem_ch13.adb (Build_Predicate_Function): Don't give inheritance
213 messages for generic actual subtypes.
214 * sem_ch9.adb, sem_res.adb, sem_util.adb, sem_util.ads, sem_ch3.adb
215 (Bad_Predicated_Subtype_Use): Use this procedure.
217 2010-10-22 Robert Dewar <dewar@adacore.com>
219 * sem_ch5.adb: Minor reformatting.
221 2010-10-22 Robert Dewar <dewar@adacore.com>
223 * a-except-2005.adb (Rmsg_18): New message text.
224 * a-except.adb (Rmsg_18): New message text.
225 * atree.adb (List25): New function
226 (Set_List25): New procedure
227 * atree.ads (List25): New function
228 (Set_List25): New procedure
229 * einfo.adb (Static_Predicate): Is now a list
230 (OK_To_Reference): Present in all entities
231 * einfo.ads (Static_Predicate): Is now a list
232 (OK_To_Reference): Applies to all entities
233 * exp_ch13.adb (Build_Predicate_Function): Moved to Sem_Ch13
234 * sem_attr.adb (Bad_Attribute_For_Predicate): Call
235 Bad_Predicated_Subtype_Use.
236 * sem_case.ads, sem_case.adb: Major surgery to deal with predicated
238 * sem_ch13.adb (Build_Predicate_Function): Moved from Exp_Ch13 to
240 (Build_Static_Predicate): New procedure handles static predicates.
241 * sem_ch3.adb (Analyze_Subtype_Declaration): Delay freeze on subtype
242 with no constraint if ancestor subtype has predicates.
243 (Analyze_Variant_Part): New calling sequence for Analyze_Choices
244 * sem_ch4.adb (Junk_Operand): Don't complain about OK_To_Reference
246 (Analyze_Case_Expression): New calling sequence for Analyze_Choices
247 * sem_ch5.adb (Analyze_Case_Statement): New calling sequence for
249 * sem_util.ads, sem_util.adb (Bad_Predicated_Subtype_Use): New procedure
250 * types.ads (PE_Bad_Predicated_Generic_Type): Replaces
251 PE_Bad_Attribute_For_Predicate.
252 * atree.h: Add definition of List25.
254 2010-10-22 Jerome Lambourg <lambourg@adacore.com>
256 * gnatlink.adb (Process_Binder_File): Remove CLI-specific code, now
258 (Gnatlink): Remove CLI-specific code, moved to dotnet-ld
259 * bindgen.adb (Gen_Object_Files_Options): Do not issue -L switches with
260 the .NET compiler, useless and unsupported.
262 2010-10-22 Robert Dewar <dewar@adacore.com>
264 * sem_util.ads (Get_Num_Lit_From_Pos): Fix errors in documentation,
265 this returns a Node_Id for a reference to the entity, not the entity
268 2010-10-22 Ed Schonberg <schonberg@adacore.com>
270 * sem_ch5.adb (Analyze_Iteration_Scheme): use Insert_Actions when
271 bounds require a temporary.
273 2010-10-22 Robert Dewar <dewar@adacore.com>
275 * sem_ch4.adb: Minor reformatting.
276 * sinfo.ads: Minor comment fixes for Ada 2012 syntax.
278 2010-10-22 Robert Dewar <dewar@adacore.com>
280 * par-ch5.adb: Minor reformatting.
281 * gcc-interface/Make-lang.in: Update dependencies.
283 2010-10-22 Robert Dewar <dewar@adacore.com>
285 * a-except.adb, a-except-2005.adb: Add new Rcheck entry.
286 * exp_ch13.adb (Add_Call): Make sure subtype is marked with
287 Has_Predicates set to True if it inherits predicates.
288 * sem_attr.adb: Handle 'First/'Last/'Range for predicated types
289 * types.ads (PE_Bad_Attribute_For_Predicate): New reason code
290 * types.h: Add new Rcheck entry.
291 * einfo.ads, einfo.adb (Static_Predicate): New field.
292 Minor code reorganization (file float routines in proper section)
293 Fix bad field name in comments.
295 2010-10-22 Robert Dewar <dewar@adacore.com>
297 * sem_eval.adb (Subtypes_Statically_Compatible): Check null exclusion
300 2010-10-22 Vincent Celier <celier@adacore.com>
302 * prj-conf.adb (Get_Config_Switches): Detect if there is at least one
303 declaration of IDE'Compiler_Command for one of the language in the main
305 (Do_Autoconf): If there were at least one Compiler_Command declared and
306 no target, invoke gprconfig with --target=all instead of the normalized
309 2010-10-22 Robert Dewar <dewar@adacore.com>
311 * par-ch4.adb: Update syntax in comments for Ada 2012.
312 * sinfo.ads: Update syntax in comments for Ada 2012
313 * par-ch3.adb (Check_Restricted_Expression): Remove "in Ada 2012 mode"
316 2010-10-22 Gary Dismukes <dismukes@adacore.com>
318 * sem_ch3.adb (Check_Or_Process_Discriminants): In Ada 2012, allow
319 limited tagged types to have defaulted discriminants. Customize the
320 error message for the Ada 2012 case.
321 (Process_Discriminants): In Ada 2012, allow limited tagged types to have
322 defaulted discriminants. Customize the error message for the Ada 2012
324 * sem_ch6.adb (Create_Extra_Formals): Suppress creation of the extra
325 formal for out formals of discriminated types in the case where the
326 underlying type is a limited tagged type.
327 * exp_attr.adb (Expand_N_Attribute_Reference, case
328 Attribute_Constrained): Return True for 'Constrained when the
329 underlying type of the prefix is a limited tagged type.
331 2010-10-22 Thomas Quinot <quinot@adacore.com>
333 * sem_ch3.adb (Complete_Private_Subtype): The full view of the subtype
334 may already have a rep item chain inherited from the full view of the
335 base type, so do not overwrite it when propagating rep items from the
336 partial view of the subtype.
337 * sem_ch3.adb: Minor code reorganization. Minor reformatting.
339 2010-10-22 Sergey Rybin <rybin@adacore.com>
341 * gnat_ugn.texi (gnatmetric): Remove description of debug option.
343 2010-10-22 Tristan Gingold <gingold@adacore.com>
345 * adaint.c (__gnat_number_of_cpus): Add implementation for VMS.
347 2010-10-22 Ed Schonberg <schonberg@adacore.com>
349 * par-ch5.adb: Set properly starting sloc of loop parameter.
351 2010-10-22 Ed Schonberg <schonberg@adacore.com>
353 * sem_util.adb (May_Be_Lvalue): An actual in a function call can be an
354 lvalue in Ada2012, if the function has in-out parameters.
356 2010-10-22 Robert Dewar <dewar@adacore.com>
358 * cstand.adb, einfo.adb, exp_attr.adb, sem_prag.adb, sem_vfpt.adb,
359 sem_ch10.adb: Minor reformatting.
361 2010-10-22 Sergey Rybin <rybin@adacore.com>
363 * gnat_ugn.texi: Remove most of the content of gnatcheck chapter.
365 2010-10-22 Ed Schonberg <schonberg@adacore.com>
367 * sem_attr.adb: Handle indexed P'old.
369 2010-10-22 Geert Bosch <bosch@adacore.com>
371 * cstand.adb (Build_Float_Type): Set Float_Rep according to platform.
372 * einfo.ads (Float_Rep): New attribute.
373 (Float_Rep_Kind): Move from body. Add comments.
374 * einfo.adb (Float_Rep_Kind): Move to spec
375 (Float_Rep): Now a real field instead of local function.
376 (Set_Float_Rep): New procedure to set floating point representation
377 (Set_Vax_Float): Remove.
378 (Write_Entity_Flags): Remove Vax_Float flag.
379 (Write_Field10_Name): Add E_Floating_Point_Type case for Float_Rep.
380 * exp_attr.adb (Attribute_Valid): Use case statement for representation
382 * sem_ch3.adb (Build_Derived_Numeric_Type,
383 Floating_Point_Type_Declaration): Set Float_Rep instead of Vax_Float
385 * sem_util.ads, sem_util.adb (Is_AAMP_Float): Remove.
386 * sem_vfpt.adb (Set_D_Float, Set_F_Float, Set_G_Float, Set_IEEE_Long,
387 Set_IEEE_Short): Set Float_Rep instead of Vax_Float attribute.
389 2010-10-22 Robert Dewar <dewar@adacore.com>
391 * sprint.adb: Minor reformatting.
393 2010-10-22 Robert Dewar <dewar@adacore.com>
395 * exp_ch3.adb (Expand_N_Object_Declaration): Do required predicate
397 * sem_ch3.adb (Complete_Private_Subtype): Propagate predicates to full
399 * sem_ch6.adb (Invariants_Or_Predicates_Present): New name for
401 (Process_PPCs): Handle predicates generating post conditions
402 * sem_util.adb (Is_Partially_Initialized_Type): Add
403 Include_Null parameter.
404 * sem_util.ads (Is_Partially_Initialized_Type): Add
405 Include_Null parameter.
407 2010-10-22 Sergey Rybin <rybin@adacore.com>
409 * gnat_ugn.texi (gnatelim): Add description for '--ignore' option
411 2010-10-22 Thomas Quinot <quinot@adacore.com>
413 * sem_prag.adb (Check_First_Subtype): Specialize error messages for
414 case where argument is not a type.
416 2010-10-22 Robert Dewar <dewar@adacore.com>
418 * exp_ch5.adb, par-ch4.adb, par-ch5.adb, sem_ch5.adb, sinfo.ads: Minor
421 2010-10-22 Arnaud Charlet <charlet@adacore.com>
423 * a-locale.adb: Minor code clean up.
425 2010-10-22 Thomas Quinot <quinot@adacore.com>
427 * exp_ch4.adb: Minor code reorganization and factoring.
429 2010-10-22 Thomas Quinot <quinot@adacore.com>
431 * exp_ch5.adb, sem_ch5.adb, sinfo.ads, snames.ads-tmpl, par-ch5.adb:
434 2010-10-22 Geert Bosch <bosch@adacore.com>
436 * stand.ads: Fix typo in comment.
438 2010-10-22 Ed Schonberg <schonberg@adacore.com>
440 * sem_ch6.adb: Enable in-out parameter for functions.
442 2010-10-22 Ed Schonberg <schonberg@adacore.com>
444 * sem_ch4.adb (Analyze_Quantified_Expression): Handle properly loop
445 iterators that are transformed into container iterators after analysis.
446 * exp_ch4.adb (Expand_N_Quantified_Expression): Handle properly both
447 iterator forms before rewriting as a loop.
449 2010-10-22 Brett Porter <porter@adacore.com>
451 * a-locale.adb, a-locale.ads, locales.c: New files.
452 * Makefile.rtl: Add a-locale
453 * gcc-interface/Makefile.in: Add locales.c
455 2010-10-22 Robert Dewar <dewar@adacore.com>
457 * sem_util.ads, sem_util.adb, sem_aux.ads, sem_aux.adb
458 (Is_Generic_Formal): Moved from Sem_Util to Sem_Aux.
460 2010-10-22 Ed Schonberg <schonberg@adacore.com>
462 * exp_ch5.adb (Expand_Iterator_Loop): New subprogram, implements new
463 iterator forms over arrays and containers, in loops and quantified
465 * exp_util.adb (Insert_Actions): include N_Iterator_Specification.
466 * par-ch4.adb (P_Quantified_Expression): Handle iterator specifications.
467 * par-ch5.adb (P_Iterator_Specification): New subprogram. Modify
468 P_Iteration_Scheme to handle both loop forms.
469 * sem.adb: Handle N_Iterator_Specification.
470 * sem_ch5.adb, sem_ch5.ads (Analyze_Iterator_Specification): New
472 * sinfo.adb, sinfo.ads: New node N_Iterator_Specification.
473 N_Iteration_Scheme can now include an Iterator_Specification. Ditto
474 for N_Quantified_Expression.
475 * snames.ads-tmpl: Add names Cursor, Element, Element_Type, No_Element,
476 and Previous, to support iterators over predefined containers.
477 * sprint.adb: Handle N_Iterator_Specification.
479 2010-10-22 Thomas Quinot <quinot@adacore.com>
481 * sem_prag.adb, sem_ch12.adb, sem_util.adb, sem_util.ads
482 (Is_Generic_Formal): Move from body of Sem_Ch12 to Sem_Util.
483 (Check_Arg_Is_Local_Name): Fix check in the case of a pragma appearing
484 immediately after a library unit.
485 (Analyze_Pragma, case Preelaborable_Initialization): Pragma may apply to
486 a formal derived type.
488 2010-10-22 Geert Bosch <bosch@adacore.com>
490 * gcc-interface/Make-lang.in: Remove ttypef.ads
491 * checks.adb: Use Machine_Mantissa_Value and Machine_Radix_Value instead
492 of Machine_Mantissa and Machine_Radix.
493 * cstand.adb (P_Float_Range): Directly print the Type_Low_Bound and
494 Type_High_Bound of the type, instead of choosing constants from Ttypef.
495 (Set_Float_Bounds): Compute the bounds based on Machine_Radix_Value,
496 Machine_Emax_Value and Machine_Mantissa_Value instead of special-casing
498 * einfo.ads (Machine_Emax_Value, Machine_Emin_Value,
499 Machine_Mantissa_Value, Machine_Radix_Value, Model_Emin_Value,
500 Model_Epsilon_Value, Model_Mantissa_Value, Model_Small_Value,
501 Safe_Emax_Value, Safe_First_Value, Safe_Last_Value): Add new
502 synthesized floating point attributes.
503 * einfo.adb (Float_Rep): Determine the kind of floating point
504 representation used for a given type.
505 (Machine_Emax_Value, Machine_Emin_Value, Machine_Mantissa_Value,
506 Machine_Radix_Value): Implement based on Float_Rep_Kind of a type and
507 the number of digits in the type.
508 (Model_Emin_Value, Model_Epsilon_Value, Model_Mantissa_Value,
509 Model_Small_Value, Safe_Emax_Value, Safe_First_Value, Safe_Last_Value):
510 Implement new synthesized floating point attributes based on the various
512 * eval_fat.ads: Remove Machine_Mantissa and Machine_Radix.
513 * eval_fat.adb (Machine_Mantissa, Machine_Radix): Remove. Use the
514 Machine_Mantissa_Value and Machine_Radix_Value functions instead.
515 * exp_vfpt.adb (VAXFF_Digits, VAXDF_Digits, VAXFG_Digits): Define local
516 constants, instead of using constants from Ttypef.
517 * gnat_rm.texi: Reword comments referencing Ttypef.
518 * sem_attr.ads: Reword comment referencing Ttypef.
519 * sem_attr.adb (Float_Attribute_Universal_Integer,
520 Float_Attribute_Universal_Real): Remove.
521 (Attribute_Machine_Emax, Attribute_Machine_Emin,
522 Attribute_Machine_Mantissa, Attribute_Model_Epsilon,
523 Attribute_Model_Mantissa, Attribute_Model_Small, Attribute_Safe_Emax,
524 Attribute_Safe_First, Attribute_Safe_Last, Model_Small_Value): Use
525 attributes in Einfo instead of Float_Attribute_Universal_Real and
526 Float_Attribute_Universal_Integer and all explicit constants.
527 * sem_util.ads, sem_util.adb (Real_Convert): Remove.
528 * sem_vfpt.adb (VAXDF_Digits, VAXFF_Digits, VAXGF_Digits, IEEEL_Digits,
529 IEEES_Digits): New local constants, in order to remove dependency on
531 * tbuild.ads (Make_Float_Literal): New function.
532 * tbuild.adb (Make_Float_Literal): New function to create a new
533 N_Real_Literal, constructing it as simple as possible for best
534 output of constants in -gnatS.
535 * ttypef.ads: Remove.
537 2010-10-22 Robert Dewar <dewar@adacore.com>
539 * checks.adb (Apply_Predicate_Check): Remove attempt at optimization
540 when subtype is the same, caused legitimate checks to be missed.
541 * exp_ch13.adb (Build_Predicate_Function): Use Nearest_Ancestor to get
542 inheritance from right entity.
543 * freeze.adb (Freeze_Entity): Use Nearest_Ancestor to freeze in the
544 derived type case if the ancestor type has predicates.
545 * sem_aux.ads, sem_aux.adb (Nearest_Ancestor): New function.
546 * sem_prag.adb (Check_Enabled): Minor code reorganization.
548 2010-10-22 Arnaud Charlet <charlet@adacore.com>
550 * gcc-interface/utils.c, gcc-interface/gigi.h: Minor reformatting.
552 2010-10-22 Thomas Quinot <quinot@adacore.com>
554 * einfo.ads (Declaration_Node): Clarify documentation, in particular
555 regarding what is returned for subprogram entities.
557 2010-10-22 Arnaud Charlet <charlet@adacore.com>
559 * exp_attr.adb (Make_Range_Test): Generate a Range node instead of
560 explicit comparisons, generates simpler expanded code.
561 * a-except-2005.adb (Rcheck_06_Ext): New.
562 * gcc-interface/trans.c (gigi, gnat_to_gnu): Handle validity checks
564 * gcc-interface/Make-lang.in: Update dependencies.
566 2010-10-22 Robert Dewar <dewar@adacore.com>
568 * sem_ch3.adb (Array_Type_Declaration): Error for subtype wi predicate
570 (Constrain_Index): Error of subtype wi predicate in index constraint
571 * sem_ch9.adb (Analyze_Entry_Declaration): Error of subtype wi
572 predicate in entry family.
573 * sem_res.adb (Resolve_Slice): Error of type wi predicate in slice.
575 2010-10-22 Javier Miranda <miranda@adacore.com>
577 * sem_util.ads, sem_util.adb (Collect_Parents): New subprogram.
578 (Original_Corresponding_Operation): New subprogram.
579 (Visible_Ancestors): New subprogram.
580 * sem_ch6.adb (New_Overloaded_Entity): Handle new case of dispatching
581 operation that overrides a hidden inherited primitive.
582 * sem_disp.adb (Find_Hidden_Overridden_Primitive): New subprogram.
583 (Check_Dispatching_Operation): if the new dispatching operation
584 does not override a visible primtive then check if it overrides
585 some hidden inherited primitive.
587 2010-10-22 Ed Schonberg <schonberg@adacore.com>
589 * sem_ch10.adb (Analyze_With_Clause): If the parent_unit_name in a with
590 clause is a child unit that denotes a renaming, replace the
591 parent_unit_name with a reference to the renamed unit, because the
592 prefix is irrelevant to subsequent visibility..
594 2010-10-22 Robert Dewar <dewar@adacore.com>
596 * einfo.ads, einfo.adb (Has_Predicates): Flag is now on all entities
598 * exp_ch13.adb (Build_Predicate_Function): Output info msgs for
600 * sem_ch13.adb (Analyze_Aspect_Specifications): Make sure we have a
601 freeze node for entities for which a predicate is specified.
602 (Analyze_Aspect_Specifications): Avoid duplicate calls
603 * sem_ch3.adb (Analyze_Full_Type_Declaration): Remove attempt to avoid
604 duplicate calls to Analye_Aspect_Specifications.
606 2010-10-22 Thomas Quinot <quinot@adacore.com>
608 * a-exextr.adb, atree.ads, freeze.adb: Minor reformatting.
610 2010-10-21 Robert Dewar <dewar@adacore.com>
612 * sem_ch3.adb: Minor reformatting.
614 2010-10-21 Thomas Quinot <quinot@adacore.com>
616 * einfo.ads (Next_Girder_Discriminant): Remove obsolete description for
619 2010-10-21 Nicolas Roche <roche@adacore.com>
621 * gnatmem.adb, memroot.adb, memroot.ads, gmem.c,
622 gcc-interface/Makefile.in: Remove gnatmem specific files.
624 2010-10-21 Thomas Quinot <quinot@adacore.com>
626 * sem_res.adb, exp_ch13.adb: Minor reformatting.
628 2010-10-21 Thomas Quinot <quinot@adacore.com>
630 * sem_ch3.adb (Check_Or_Process_Discriminant): Reject illegal attempt
631 to provide a tagged full view as the completion of an untagged partial
632 view if the partial view has a discriminant with default.
634 2010-10-21 Arnaud Charlet <charlet@adacore.com>
636 * gcc-interface/Make-lang.in: Update dependencies.
638 2010-10-21 Robert Dewar <dewar@adacore.com>
640 * checks.ads, checks.adb (Apply_Predicate_Check): New procedure
641 Minor code reorganization.
642 * einfo.adb (Has_Predicates): Fix assertion.
643 * exp_ch13.adb (Build_Predicate_Function): Move from Sem_Ch13 spec to
645 (Expand_N_Freeze_Entity): Call build predicate function.
646 * exp_ch4.adb (Expand_N_Type_Conversion): Add predicate check.
647 * exp_ch5.adb (Expand_N_Assignment_Statement): Add predicate check.
648 * exp_prag.adb (Expand_Pragma_Check): Use all lower case for name of
650 * freeze.adb (Freeze_Entity): Move building of predicate function to
652 * sem_ch13.adb (Build_Predicate_Function): Move from Sem_Ch13 to
654 * sem_ch13.ads (Build_Predicate_Function): Move from Sem_Ch13 to
656 * sem_ch3.adb (Analyze_Declarations): Remove call to build predicate
658 * sem_res.adb (Resolve_Actuals): Apply predicate check.
660 2010-10-21 Robert Dewar <dewar@adacore.com>
662 * einfo.ads, einfo.adb: Replace Predicate_Procedure by
664 * exp_ch4.adb (Expand_N_In): Handle predicates.
665 * exp_util.ads, exp_util.adb (Make_Predicate_Call): New function.
666 (Make_Predicate_Check): New function.
667 * freeze.adb (Freee_Entity): Build predicate function if needed.
668 * sem_ch13.adb (Build_Predicate_Function): New procedure.
669 (Analyze_Aspect_Specifications): No third argument for Predicate pragma
670 built from Predicate aspect.
671 * sem_ch13.ads (Build_Predicate_Function): New procedure.
672 * sem_ch3.adb: Add handling for predicates.
673 * sem_eval.adb (Eval_Membership_Op): Never static if predicate
675 * sem_prag.adb (Analye_Pragma, case Predicate): Does not take a third
678 2010-10-21 Robert Dewar <dewar@adacore.com>
680 * einfo.ads, einfo.adb: Add handling of predicates.
681 Rework handling of invariants.
682 * exp_ch3.adb, exp_ch4.adb, exp_util.adb, sem_ch6.adb: Minor changes to
683 handing of invariants.
684 * par-prag.adb: Add dummy entry for pragma Predicate
685 * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing for
687 * sem_prag.adb: Add implementation of pragma Predicate.
688 * snames.ads-tmpl: Add entries for pragma Predicate.
690 2010-10-21 Robert Dewar <dewar@adacore.com>
692 * elists.adb: Minor reformatting.
694 2010-10-21 Geert Bosch <bosch@adacore.com>
696 * urealp.adb (UR_Write): Write hexadecimal constants with exponent 1 as
697 decimal constants, and write any others using the exponent notation.
698 Minor reformatting throughout
699 (Store_Ureal_Normalized): New function (minor code reorganization)
701 2010-10-21 Robert Dewar <dewar@adacore.com>
703 * einfo.ads, xeinfo.adb: Minor reformatting.
704 * s-stalib.ads: Minor comment fixes.
706 2010-10-21 Ed Schonberg <schonberg@adacore.com>
708 * sem_ch6.adb (Enter_Overloaded_Entity): Refine warning message about
709 hiding, to remove noise warnings about hiding predefined operators.
711 2010-10-21 Emmanuel Briot <briot@adacore.com>
713 * g-comlin.adb (Add_Switch): Fix handling of switches with no separator
714 when the parameter has length 1.
716 2010-10-21 Jose Ruiz <ruiz@adacore.com>
718 * sem_prag.adb (Set_Ravenscar_Profile): Enforce the restrictions of no
719 dependence on Ada.Execution_Time.Timers,
720 Ada.Execution_Time.Group_Budget, and
721 System.Multiprocessors.Dispatching_Domains which are part of the
723 * impunit.adb (Non_Imp_File_Names_05): Add the file "a-etgrbu" to the
724 list of Ada 2005 files for package Ada.Execution_Time.Group_Budgets.
725 (Non_Imp_File_Names_12): Add the file "s-mudido" to the list of Ada 2012
726 files for package System.Mutiprocessors.Dispatching_Domains.
728 2010-10-21 Tristan Gingold <gingold@adacore.com>
730 * ug_words, vms_data.ads: Define the VMS qualifier for -gnateE.
732 2010-10-21 Thomas Quinot <quinot@adacore.com>
734 * sem_ch3.ads (Process_Discriminants): Clarify cases where this is
735 called for a completion.
737 2010-10-21 Geert Bosch <bosch@adacore.com>
739 * uintp.ads: Expand image buffer to have enough room for 128-bit values
740 * urealp.ads (UR_Write): Write constants in base 16 in hexadecimal
741 notation; either as fixed point literal or in canonical radix 16
744 2010-10-21 Robert Dewar <dewar@adacore.com>
746 * a-cgaaso.ads, a-tags.ads, exp_ch3.adb, exp_attr.adb, exp_ch4.adb,
747 exp_ch3.ads, exp_ch7.adb, exp_ch9.adb, exp_disp.adb, exp_disp.ads,
748 exp_dist.adb, exp_util.adb, layout.adb, lib-xref.adb, lib.ads,
749 prep.adb, prj-strt.adb, s-ststop.adb, s-taskin.ads, s-tataat.ads,
750 sem_aggr.adb, sem_attr.adb, sem_ch12.adb, sem_ch3.adb, sem_ch4.adb,
751 sem_ch4.ads, sem_ch5.adb, sem_res.adb, sem_util.adb, einfo.adb,
752 g-sothco.ads, make.adb: Minor reformatting
754 2010-10-21 Vincent Celier <celier@adacore.com>
756 * vms_data.ads: Add new qualifiers /SRC_INFO= and
757 /UNCHECKED_SHARED_LIB_IMPORTS for GNAT COMPILE.
758 Correct qualifier /SRC_INFO= for GNAT MAKE
760 2010-10-21 Ed Schonberg <schonberg@adacore.com>
762 * exp_aggr.adb (Flatten): An association for a subtype may be an
764 (Safe_Left_Hand_Side): An unchecked conversion is part of a safe
765 left-hand side if the expression is.
766 (Is_Safe_Index): new predicate
767 * exp_ch3.adb (Expand_Freeze_Enumeration_Type): Indicate that the
768 generated Rep_To_Pos function is a Pure_Function.
770 2010-10-21 Robert Dewar <dewar@adacore.com>
772 * gnat_rm.texi: Document Invariant pragma.
774 2010-10-21 Javier Miranda <miranda@adacore.com>
776 * exp_ch5.adb: Update comment.
778 2010-10-21 Robert Dewar <dewar@adacore.com>
780 * sem_ch13.adb (Build_Invariant_Procedure): Remove commented out code
781 for interfaces, since invariants are not allowed on interfaces in any
784 2010-10-21 Javier Miranda <miranda@adacore.com>
786 * sem_attr.adb (Resolve_Attribute): After replacing the range attribute
787 node with a range expression ensure that its evaluation will not have
789 * exp_ch5.adb (Expand_Assign_Array): Propagate the Parent to the
790 unchecked conversion node generated to handle assignment of private
791 types. Required to allow climbing the subtree if Insert_Action is
794 2010-10-21 Robert Dewar <dewar@adacore.com>
796 * par-ch3.adb (P_Interface_Type_Definition): Allow for possibility of
797 aspect clause presence terminating the type definition.
799 2010-10-21 Robert Dewar <dewar@adacore.com>
801 * exp_ch4.adb, exp_intr.adb, par-ch4.adb, scn.adb, sem_ch4.adb,
802 sem_res.adb, sem_util.adb, sinfo.ads, a-except-2005.adb: Minor
804 * snames.ads-tmpl: Add note on Name_Some (not a reserved keyword).
806 2010-10-21 Geert Bosch <bosch@adacore.com>
808 * ttypef.ads: Further cleanup of Safe_XXX float attributes.
810 2010-10-19 Ed Schonberg <schonberg@adacore.com>
812 * exp_ch4.adb, exp_ch4.ads (Expand_Quantified_Expression): New procedure
813 * exp_util.adb (Insert_Actions): Include Quantified_Expression.
814 * expander.adb: Call Expand_Qualified_Expression.
815 * par.adb: New procedure P_Quantified_Expression. Make
816 P_Loop_Parameter_Specification global for use in quantified expressions.
817 * par-ch3.adb (P_Subtype_Mark_Resync): Allow "some" as an identifier if
819 * par-ch4.adb: New procedure P_Quantified_Expression.
820 * par-ch5.adb: P_Loop_Parameter_Specification is now global.
821 * scans.adb, scans.ads: Introduce token Some. For now leave as
823 * scn.adb (Scan_Reserved_Identifier): For earlier versions of Ada,
824 treat Some as a regular identifier.
825 * sem.adb: Call Analyze_Quantified_Expression.
826 * sem_ch4.adb, sem_ch4.ads: New procedure Analyze_Quantified_Expression.
827 * sem_ch5.adb, sem_ch5.ads: Analyze_Iteration_Scheme is public, for use
828 in quantified expressions.
829 * sem_res.adb: New procedure Resolve_Qualified_Expression.
830 * sinfo.adb, sinfo.ads: New node N_Quantified_Expression
831 * snames.ads-tmpl: New name Some.
832 * sprint.adb: Output quantified_expression.
834 2010-10-19 Robert Dewar <dewar@adacore.com>
836 * a-exexda.adb: Minor reformatting
837 Minor code reorganization.
839 2010-10-19 Robert Dewar <dewar@adacore.com>
841 * sem_eval.adb: Minor reformatting.
843 2010-10-19 Tristan Gingold <gingold@adacore.com>
845 * exp_ch4.adb (Expand_N_And_Op, Expand_N_Or_Op, Expand_N_Xor_Op): Call
846 Expand_Intrinsic_Call if the function is intrinsic.
847 * exp_intr_adb (Expand_Binary_Operator): Handle VMS case for logical
848 binary operator on the unsigned_quadword record.
849 * exp_intr.ads (Expand_Intrinsic_Call): Update comments.
851 2010-10-19 Geert Bosch <bosch@adacore.com>
853 * gnat_rm.texi (pragma Float_Representation): Fix typo.
855 2010-10-19 Arnaud Charlet <charlet@adacore.com>
857 * switch-c.adb (Scan_Front_End_Switches): Add handling of -gnateE.
858 * fe.h (Exception_Extra_Info): Declare.
859 * usage.adb (usage): Add -gnateE doc.
860 * checks.adb (Install_Null_Excluding_Check): Use better sloc.
861 * sem_util.adb (Insert_Explicit_Dereference): Ditto.
862 * gnat_ugn.texi: Document -gnateE switch.
863 * a-except.adb (Set_Exception_C_Msg): New parameter Column.
864 * a-except-2005.adb (Set_Exception_C_Msg): New parameter Column.
865 (Raise_Constraint_Error_Msg): Ditto.
866 (Image): New helper function.
867 (Rcheck_00_Ext, Rcheck_05_Ext, Rcheck_12_Ext): New procedure with more
868 detailed exception information.
869 Adjust calls to Set_Exception_C_Msg and Raise_Constraint_Error_Msg.
870 * a-exexda.adb (Set_Exception_C_Msg): New parameter Column.
871 * opt.ads (Exception_Extra_Info): New flag.
872 * gcc-interface/utils.c (gnat_raise_decls_ext): New.
873 * gcc-interface/utils2.c (build_call_raise_range,
874 build_call_raise_column): New functions.
875 * gcc-interface/gigi.h (exception_info_kind, gnat_raise_decls_ext,
876 build_call_raise_range, build_call_raise_column): Declare.
877 gcc-interface/trans.c (build_raise_check): New function.
878 (gigi): Initialize gnat_raise_decls_ext.
879 (gnat_to_gnu): Add initial support for -gnateE switch.
880 * gcc-interface/Make-lang.in: Update dependencies.
882 2010-10-19 Geert Bosch <bosch@adacore.com>
884 * ttypef.ads: Change VAXDF_Last to be -VAXDF_First, as type is
887 2010-10-19 Robert Dewar <dewar@adacore.com>
889 * atree.h (Field29): Fix incorrect definition.
890 * einfo.adb (Invariant_Procedure): New attribute
891 (Has_Invariants): New flag
892 (Has_Inheritable_Invariants): New flag
893 (OK_To_Reference): New flag
894 Minor code reorganization (use Next_Rep_Item function)
895 * einfo.ads (Invariant_Procedure): New attribute
896 (Has_Invariants): New flag
897 (Has_Inheritable_Invariants): New flag
898 (OK_To_Reference): New flag
899 * exp_ch3.adb (Expand_N_Object_Declaration): Add check for invariant
900 * exp_ch4.adb (Expand_N_Type_Conversion): Check invariant on type
901 conversion. Minor reformatting.
902 * exp_util.ads, exp_util.adb (Make_Invariant_Call): New procedure.
903 * opt.ads (List_Inherited_Aspects): New name for List_Inherited_Pre_Post
904 * par-prag.adb: Add dummy entry for pragma Invariant.
905 * sem_ch13.adb (Build_Invariant_Procedure): New procedure
906 (Analyze_Aspect_Specification): Add support for Invariant aspect
907 * sem_ch13.ads (Build_Invariant_Procedure): New procedure
908 * sem_ch3.adb (Build_Derived_Type): Propagate invariant information
909 (Process_Full_View): Deal with invariants, building invariant procedure
911 * sem_ch6.adb (Process_PPCs): Add processing of invariants
912 * sem_ch7.adb (Analyze_Package_Specification): Build invariant
914 * sem_prag.adb: Implement pragma Invariant.
915 * sem_res.adb (Resolve_Entity_Name): Allow type reference if
917 * sem_warn.adb (List_Inherited_Aspects): New name for
918 List_Inherited_Pre_Post.
919 * snames.ads-tmpl: Add entries for pragma Invariant.
920 * treepr.adb (Print_Entity_Information): Add handling of Field29.
921 * usage.adb: Warning .l/.L applies to invariant as well as pre/post.
923 2010-10-19 Javier Miranda <miranda@adacore.com>
925 * par-ch4.adb: Update documentation of Ada 2012 syntax rules for
928 2010-10-19 Bob Duff <duff@adacore.com>
930 * sem_attr.adb (Eval_Attribute): Implement Max_Alignment_For_Allocation
932 * exp_attr.adb (Expand_N_Attribute_Reference): Add
933 Attribute_Max_Alignment_For_Allocation to the case statement.
934 * snames.ads-tmpl (Name_Max_Alignment_For_Allocation,
935 Attribute_Max_Alignment_For_Allocation): New attribute name.
937 2010-10-19 Ed Schonberg <schonberg@adacore.com>
939 * sem_ch3.adb (OK_For_Limited_Init_In_05): a call to an access to
940 parameterless function appears syntactically as an explicit dereference.
942 2010-10-19 Thomas Quinot <quinot@adacore.com>
944 * sem_ch8.adb, sem_ch12.adb, opt.ads, sem_ch6.adb, sem_res.adb,
945 i-cexten.ads, exp_disp.adb, exp_ch4.adb, exp_ch9.adb: Minor reformatting
947 2010-10-19 Thomas Quinot <quinot@adacore.com>
949 * sem_util.adb (Collect_Primitive_Operations): A function with an
950 anonymous access result designating T is a primitive operation of T.
952 2010-10-19 Tristan Gingold <gingold@adacore.com>
954 * init.c: On Alpha/VMS, only adjust PC for HPARITH.
956 2010-10-19 Tristan Gingold <gingold@adacore.com>
958 * sem_attr.adb (Eval_Attribute): Handle Attribute_Ref, which can be
961 2010-10-19 Ed Schonberg <schonberg@adacore.com>
963 * sem_ch12.adb (Check_Generic_Child_Unit): Handle properly the case of
964 an instantiation of a renaming of the implicit generic child that
965 appears within an instance of its parent.
967 2010-10-19 Thomas Quinot <quinot@adacore.com>
969 * exp_ch9.adb: Minor reformatting.
970 * einfo.adb, einfo.ads, atree.adb, atree.ads, exp_dist.adb, atree.h:
971 (Referenced_Object): Remove unused entity attribute.
972 (Direct_Primitive_Operations): Move to Elist10, this is set for all
973 tagged types, including synchronous ones, so can't use field15 which is
974 used as Storage_Size_Variable for task types and Entry_Bodies_Array for
976 (Add_RACW_Primitive_Declarations_And_Bodies): Remove bogus guard
977 against Concurrent_Types (we must handle the case of a RACW designating
978 a class-wide private synchronous type).
979 Use Direct_Primitive_Operations, not Primitive_Operations, since we
980 really want the former.
982 2010-10-19 Bob Duff <duff@adacore.com>
984 * sem_ch8.adb (Pop_Scope): Change "return;" to "raise Program_Error;".
986 2010-10-19 Javier Miranda <miranda@adacore.com>
988 * exp_ch4.adb (Expand_Set_Membership.Make_Cond): Add missing support
991 2010-10-19 Thomas Quinot <quinot@adacore.com>
993 * einfo.ads, atree.ads: Minor comment fixes.
995 2010-10-18 Bob Duff <duff@adacore.com>
997 * sinfo.ads, sinfo.adb: Modify comment about adding fields to be more
998 correct, and to be in a more convenient order.
999 (Default_Storage_Pool): New field of N_Compilation_Unit_Aux, for
1000 recording the Default_Storage_Pool for a parent library unit.
1001 * einfo.ads (Etype): Document the case in which Etype can be Empty.
1002 * sem_prag.adb (Pragma_Default_Storage_Pool): Analyze the new
1003 Default_Storage_Pool pragma.
1004 * sem.ads (Save_Default_Storage_Pool): Save area for push/pop scopes.
1005 * gnat_ugn.texi: Document Default_Storage_Pool as a new configuration
1007 * freeze.adb (Freeze_Entity): When freezing an access type, take into
1008 account any Default_Storage_Pool pragma that applies. We have to do
1009 this at the freezing point, because up until that point, a Storage_Pool
1010 or Storage_Size clause could occur, which should override the
1011 Default_Storage_Pool.
1012 * par-prag.adb: Add this pragma to the list of pragmas handled entirely
1014 * sem_ch8.adb (Push_Scope, Pop_Scope): Save and restore the
1015 Default_Storage_Pool information.
1016 * opt.ads (Default_Pool, Default_Pool_Config): New globals for recording
1017 currently-applicable Default_Storage_Pool pragmas.
1018 * opt.adb: Save/restore the globals as appropriate.
1019 * snames.ads-tmpl (Name_Default_Storage_Pool,
1020 Pragma_Default_Storage_Pool): New pragma name.
1022 2010-10-18 Vincent Celier <celier@adacore.com>
1024 * make.adb (Switches_Of): Put the spec and body suffix in canonical
1027 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1029 * sem_ch13.adb (Analyze_Aspect_Specifications): If subprogram is at the
1030 library level, the pre/postconditions must be treated as global
1031 declarations, i.e. placed on the Aux_Decl nodes of the compilation unit.
1032 * freeze.adb (Freeze_Expression): If the expression is at library level
1033 there is no enclosing record to check.
1035 2010-10-18 Javier Miranda <miranda@adacore.com>
1037 * sem_ch3.ads (Find_Type_Name): Add documentation.
1038 * sem_ch3.adb (Analyze_Full_Type_Declaration): Code cleanup because the
1039 propagation of the class-wide entity is now done by routine
1040 Find_Type_Name to factorize this code.
1041 (Analyze_Private_Extension_Declaration): Handle private type that
1042 completes an incomplete type.
1043 (Tag_Mismatch): Add error message for tag mismatch in a private type
1044 declaration that completes an incomplete type.
1045 (Find_Type_Name): Handle completion of incomplete type by means of
1046 a private declaration. Generate an error if a tagged incomplete type
1047 is completed by an untagged private type.
1048 * sem_ch7.adb (New_Private_Type): Handle private type that completes an
1050 * einfo.ads (Full_View): Add documentation.
1052 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1054 * sem_ch12.adb (Analyze_Formal_Package_Declaration): If the package is
1055 a renaming, generate a reference for it before analyzing the renamed
1056 entity, to prevent spurious warnings.
1058 2010-10-18 Jose Ruiz <ruiz@adacore.com>
1060 * adaint.c (__gnat_pthread_setaffinity_np,
1061 __gnat_pthread_attr_setaffinity_np): Remove wrappers, no longer needed.
1062 * s-osinte-linux.ads (pthread_setaffinity_np,
1063 pthread_attr_setaffinity_np): Remove use of wrappers.
1064 * s-taprop-linux.adb (Create_Task, Initialize): Restore check to verify
1065 whether the affinity functionality is available in the OS.
1066 * gcc-interface/utils.c: Set TREE_STATIC on functions only when there
1069 2010-10-18 Robert Dewar <dewar@adacore.com>
1071 * einfo.ads, einfo.adb: Minor reformatting.
1072 * gnat_ugn.texi, ug_words: Add missing entries, fix typos.
1074 2010-10-18 Emmanuel Briot <briot@adacore.com>
1076 * g-comlin.adb (Is_In_Config): When the switch accepts either a space
1077 or equal, we output an equal every time.
1079 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1081 * sem_res.adb (Resolve_Entry_Call): Handle call to an entry family
1082 member when pre/post conditions are present.
1083 * exp_ch9.adb (Build_PPC_Wrapper): The PPC_Wrapper for an entry family
1084 includes an index parameter, and the name of the enclosed entry call is
1085 an indexed component.
1087 2010-10-18 Robert Dewar <dewar@adacore.com>
1089 * einfo.ads, einfo.adb: Minor reformatting.
1091 2010-10-18 Jose Ruiz <ruiz@adacore.com>
1093 * adaint.c (__gnat_pthread_setaffinity_np,
1094 __gnat_pthread_attr_setaffinity_np): Add these wrappers which check the
1095 availability of the underlying OS functionality before calling.
1096 * s-osinte-linux.ads (pthread_setaffinity_np,
1097 pthread_attr_setaffinity_np): Call a wrapper instead of the OS function
1098 to perform a check of its availability.
1099 * s-taprop-linux.adb (Create_Task): Remove the check to verify whether
1100 the affinity functionality is available in the OS. Now done in a wrapper
1101 * gcc-interface/Makefile.in: Remove vmshandler.asm, unused.
1102 * gcc-interface/Make-lang.in: Update dependencies.
1104 2010-10-18 Robert Dewar <dewar@adacore.com>
1106 * sinfo.ads, sinfo.adb: Change Has_Pragma_CPU to Flag14 (Flag10 is
1109 2010-10-18 Robert Dewar <dewar@adacore.com>
1111 * s-stausa.adb, s-taprop-linux.adb, s-taprop-mingw.adb, s-tassta.ads:
1114 2010-10-18 Robert Dewar <dewar@adacore.com>
1116 * exp_strm.adb (Build_Elementary_Input_Call): Check
1117 No_Default_Stream_Attributes.
1118 (Build_Elementary_Write_Call): Check No_Default_Stream_Attributes
1119 * s-rident.ads: Add restriction No_Default_Stream_Attributes
1120 Put restriction No_Allocators_After_Elaboration in alpha order
1122 2010-10-18 Jose Ruiz <ruiz@adacore.com>
1124 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Add field corresponding
1125 to the affinity when expanding the task declaration.
1126 (Make_Task_Create_Call): Add the affinity parameter to the call to
1128 * sem_prag.adb (Analyze_Pragma): Add the analysis for pragma CPU,
1129 taking into account the case when it applies to a subprogram (only for
1130 main and with static expression) or to a task.
1131 * par_prag.adb:(Prag): Make pragma CPU a valid one.
1132 * snames.ads-tmpl (Name_uCPU, Name_CPU): Add these new name identifiers
1133 used by the expander for handling the affinity parameter when creating
1135 (Pragma_Id): Add Pragma_CPU as a valid one.
1136 * rtsfind.ads (RTU_Id): Make System_Multiprocessors accesible.
1137 (RE_Id, RE_Unit_Table): Make the entities RE_CPU_Range and
1138 RE_Unspecified_CPU visible.
1139 * sinfo.ads, sinfo.adb (Has_Pragma_CPU, Set_Has_Pragma_CPU): Add these
1140 two subprograms to set/get the flag indicating whether there is a
1141 pragma CPU which applies to the entity.
1142 * lib.ads, lib.adb (Unit_Record, Default_Main_CPU, Main_CPU,
1143 Set_Main_CPU): Add the field Main_CPU to Unit_Record to store the value
1144 of the affinity associated to the main subprogram (if any).
1145 Default_Main_CPU is used when no affinity is set. Subprograms
1146 Set_Main_CPU and Main_CPU are added to set/get the affinity of the main
1148 * ali.ads, ali.adb (ALIs_Record): Add field Main_CPU to contain the
1149 value of the affinity of the main subprogram.
1150 (Scan_ALI): Get the affinity of the main subprogram (encoded as C=XX in
1152 * lib-writ.ads, lib-writ.adb (M_Parameters): Encode the affinity of the
1153 main subprogram in the M (main) line using C=XX.
1154 * lib-load.adb (Create_Dummy_Package_Unit, Load_Main_Source,
1155 Load_Unit): Add new field Main_CPU.
1156 * bindgen.adb (Gen_Adainit_Ada, Gen_Adainit_C): Add the code to pass
1157 the affinity of the main subprogram to the run time.
1158 * s-taskin.ads (Common_ATCB): Add the field Base_CPU to store the
1160 (Unspecified_CPU): Add this constant to identify the case when no
1161 affinity is set for tasks.
1162 * s-taskin.adb (Initialize_ATCB): Store the value coming from pragma
1163 CPU in the common part of the ATCB.
1164 (Initialize): Store the value coming from pragma CPU (for the
1165 environment task) in the common part of the ATCB.
1166 * s-tassta.ads, s-tassta.adb (Create_Task): Add the affinity specified
1167 by pragma CPU to the ATCB.
1168 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add the affinity
1169 specified by pragma CPU to the ATCB.
1170 * s-tporft.adb (Register_Foreign_Thread): Add the new affinity
1171 parameter to the call to Initialize_ATCB.
1172 * s-taprop-linux.adb (Create_Task): Change the attributes of the thread
1173 to include the task affinity before creation. Additionally, the
1174 affinity selected with Task_Info is also enforced changing the
1175 attributes at task creation time, instead of changing it after creation.
1176 (Initialize): Change the affinity of the environment task if required
1178 * s-osinte-linux.ads (pthread_setaffinity_np): Instead of using a
1179 wrapper to check whether the function is available or not, use a weak
1181 (pthread_attr_setaffinity_np): Add the import of this function which is
1182 used to change the affinity in the attributes used to create a thread.
1183 * adaint.c (__gnat_pthread_attr_setaffinity_np): Remove this wrapper.
1184 It was used to check whether the pthread function was available or not,
1185 but the use of a weak symbol handles this situation in a cleaner way.
1186 * s-taprop-mingw.adb (Create_Task, Initialize): Change the affinity of
1187 tasks (including the environment task) if required by a pragma CPU.
1188 * s-taprop-solaris.adb (Enter_Task): Change the affinity of tasks
1189 (including the environment task) if required by a pragma CPU.
1190 * s-taprop-vxworks.adb (Create_Task, Initialize): Change the affinity
1191 of tasks (including the environment task) if required by a pragma CPU.
1192 * init.c (__gl_main_cpu): Make this value visible to the run time. It
1193 will pass the affinity of the environment task.
1195 2010-10-18 Javier Miranda <miranda@adacore.com>
1197 * einfo.adb (Direct_Primitive_Operations): Complete assertion.
1199 2010-10-18 Vincent Celier <celier@adacore.com>
1201 * prj.ads (Source_Data): New Boolean flag In_The_Queue.
1203 2010-10-18 Tristan Gingold <gingold@adacore.com>
1205 * s-stausa.ads: Add the Top parameter to Initialize_Analyzer.
1206 * s-stausa.adb: Use the top parameter. In Fill_Stack, use the
1208 * s-tassta.adb (Task_Wrapper): Call Initialize_Analyzer after Enter_Task
1209 so that Pri_Stack_Info.Limit can be set and used.
1211 2010-10-18 Robert Dewar <dewar@adacore.com>
1213 * einfo.ads: Minor reformatting.
1214 * sem_res.adb (Resolve_Allocator): Add test for violating
1215 No_Anonymous_Allocators.
1217 2010-10-18 Robert Dewar <dewar@adacore.com>
1219 * prj-nmsc.adb, prj.adb, sem_res.adb: Minor reformatting.
1221 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1223 * sem_util.adb (Insert_Explicit_Dereference): If operand is a selected
1224 component, we generate a reference to the ultimate prefix when it is an
1225 entity name. We must place the reference on the identifier for that
1226 prefix, and not on the operand itself, to prevent spurious extra
1227 references in the ali file.
1229 2010-10-18 Vincent Celier <celier@adacore.com>
1231 * projects.texi: Add documentation for attribute Ignore_Source_Sub_Dirs
1233 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1235 * einfo.ads, einfo.adb: New attribute PPC_Wrapper for entries and entry
1236 families. Denotes a procedure that performs pre/postcondition checks
1237 and then performs the entry call.
1238 * sem_res.adb (Resolve_Entry_Call): If the entry has
1239 pre/postconditions, replace call with a call to the PPC_Wrapper of the
1241 * exp_ch9.adb (Build_PPC_Wrapper): new procedure.
1242 (Expand_N_Entry_Declaration, Expand_N_Protected_Type_Declaration): call
1243 Build_PPC_Wrapper for all entries in task and protected definitions.
1245 2010-10-18 Tristan Gingold <gingold@adacore.com>
1247 * init.c: Add __gnat_set_stack_guard_page and __gnat_set_stack_limit.
1248 Implement stack limitation on VMS.
1251 2010-10-18 Vincent Celier <celier@adacore.com>
1253 * prj.adb (Is_Compilable): Do not modify Source.Compilable until the
1254 source record has been initialized.
1256 2010-10-18 Robert Dewar <dewar@adacore.com>
1258 * einfo.adb: Minor code reorganization (Primitive_Operations is a
1259 synthesized attribute routine and was in the wrong place).
1261 2010-10-18 Tristan Gingold <gingold@adacore.com>
1263 * init.c: Indentation, and minor changes to more closely follow GNU
1264 style rules. Make more variable statics.
1266 2010-10-18 Vincent Celier <celier@adacore.com>
1268 * prj.adb (Is_Compilable): On first call for a source, cache value in
1269 component Compilable.
1270 * prj.ads (Source_Data): New component Compilable, to cache the value
1271 returned by function Is_Compilable.
1273 2010-10-18 Vincent Celier <celier@adacore.com>
1275 * prj-attr.adb: New project level attribute Ignore_Source_Sub_Dirs.
1276 * prj-nmsc.adb (Expand_Subdirectory_Pattern): New string list parameter
1278 (Recursive_Find_Dirs): Do not consider subdirectories listed in Ignore.
1279 (Get_Directories): Call Find_Source_Dirs with the string list
1280 indicated by attribute Ignore_Source_Sub_Dirs.
1281 * snames.ads-tmpl: New standard name Ignore_Source_Sub_Dirs.
1283 2010-10-18 Javier Miranda <miranda@adacore.com>
1285 * einfo.ads, einfo.adb (Primitive_Operations): New synthesized
1287 (Direct_Primitive_Operations): Renaming of old Primitive_Operations.
1288 (Set_Direct_Primitive_Operations): Renaming of old
1289 Set_Primitive_Operations. Update documentation
1290 * sem_ch3.adb, exp_util.adb, sem_ch7.adb, sem_ch8.adb, exp_ch3.adb:
1291 Replace occurrences of Set_Primitive_Operations by
1292 Set_Direct_Primitive_Operations.
1293 * sem_cat.adb (Validate_RACW_Primitives): No action needed for tagged
1295 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
1296 process primitives of concurrent types.
1297 * lib-xref.adb (Generate_Prim_Op_References): Minor code cleanup.
1299 2010-10-18 Eric Botcazou <ebotcazou@adacore.com>
1301 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Use Freeze_Before.
1302 (Expand_Protected_Object_Reference): Likewise.
1303 * sem_attr.adb (Resolve_Attribute): Likewise.
1304 * sem_ch3.adb (Analyze_Subtype_Declaration): Likewise.
1305 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Likewise.
1307 2010-10-18 Arnaud Charlet <charlet@adacore.com>
1309 * g-comlin.adb (Get_Switches): Prevent dereferencing null Config.
1311 2010-10-18 Robert Dewar <dewar@adacore.com>
1313 * aspects.ads, aspects.adb: Add entries for aspects
1314 Read/Write/Input/Output.
1315 * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing for
1316 handling aspects Read/Write/Input/Output.
1318 2010-10-18 Robert Dewar <dewar@adacore.com>
1320 * sem_util.adb (Note_Possible_Modification): Do not give warning for
1321 use of pragma Unmodified unless we are sure this is a modification.
1323 2010-10-18 Tristan Gingold <gingold@adacore.com>
1325 * sysdep.c: Add __gnat_get_stack_bounds.
1326 * s-taprop-mingw.adb Call __gnat_get_stack_bounds to set Pri_Stack_Info.
1328 2010-10-18 Robert Dewar <dewar@adacore.com>
1330 * a-assert.ads: Fix bad name in header.
1331 * sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch10.adb: Minor
1333 * exp_aggr.adb: Fix typo in comment.
1335 2010-10-18 Javier Miranda <miranda@adacore.com>
1337 * exp_util.adb (Side_Effect_Free): Code clean up.
1339 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1341 * sem_ch8.adb (Is_Primitive_Operator_In_Use): Renamed from
1342 Is_Primitive_Operator. When ending the scope of a use package scope, a
1343 primitive operator remains in use if the base type has a current use
1346 2010-10-18 Javier Miranda <miranda@adacore.com>
1348 * einfo.ads (Is_Dynamic_Support): Add missing support for limited
1349 private types whose full-view is a task type.
1350 * sem_util.adb (Enclosing_Subprogram): Add missing support for limited
1351 private types whose full-view is a task type.
1352 * exp_ch7.adb (Find_Final_List): Minor code cleanup replacing code by
1353 function Nearest_Dynamic_Scope which provides the needed functionality.
1355 2010-10-18 Arnaud Charlet <charlet@adacore.com>
1357 * sem_prag.adb (Set_Exported): Do not generate error when exporting a
1358 variable with an address clause in codepeer mode.
1360 2010-10-18 Robert Dewar <dewar@adacore.com>
1362 * g-trasym-vms-ia64.adb: Minor reformatting.
1364 2010-10-18 Thomas Quinot <quinot@adacore.com>
1366 * sem_type.adb (Covers): If either argument is Standard_Void_Type and
1367 the other isn't, return False early.
1369 2010-10-18 Ed Falis <falis@adacore.com>
1371 * s-vxwext-rtp.ads, s-vxext-rtp.adb: Adapt for missing APIs for RTPs in
1374 2010-10-18 Robert Dewar <dewar@adacore.com>
1376 * sem_disp.ads: Minor comment update.
1378 2010-10-18 Robert Dewar <dewar@adacore.com>
1380 * einfo.ads, einfo.adb (Spec_PPC_List): Is now present in Entries
1381 * sem_ch3.adb (Analyze_Declarations): Add processing for delaying
1382 visibility analysis of precondition and postcondition pragmas (and
1384 * sem_ch6.adb (Process_PPCs): Add handling of inherited Pre'Class
1386 * sem_ch7.adb (Analyze_Package_Specification): Remove special handling
1387 of pre/post conditions (no longer needed).
1388 * sem_disp.adb (Inherit_Subprograms): Deal with interface case.
1389 * sem_prag.adb (Analyze_PPC_In_Decl_Part): Remove analysis of message
1390 argument, since this is now done in the main processing for
1391 pre/postcondition pragmas when they are first seen.
1392 (Chain_PPC): Pre'Class and Post'Class now handled properly
1393 (Chain_PPC): Handle Pre/Post aspects for entries
1394 (Check_Precondition_Postcondition): Handle entry declaration case
1395 (Check_Precondition_Postcondition): Handle delay of visibility analysis
1396 (Check_Precondition_Postcondition): Preanalyze message argument if
1399 2010-10-18 Robert Dewar <dewar@adacore.com>
1401 * g-trasym-vms-ia64.adb, prj-nmsc.adb, prj.ads: Minor reformatting.
1403 2010-10-14 Eric Botcazou <ebotcazou@adacore.com>
1405 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Set
1406 TREE_THIS_NOTRAP on the INDIRECT_REF node built for the template.
1407 * gcc-interface/trans.c (Identifier_to_gnu): Set TREE_THIS_NOTRAP on
1408 the INDIRECT_REF node built for objects used by reference.
1409 * gcc-interface/utils2.c (build_binary_op): Add short-circuit for
1410 constant result. Set TREE_THIS_NOTRAP on ARRAY_REF and ARRAY_RANGE_REF.
1411 (gnat_stabilize_reference_1): Propagate the TREE_THIS_NOTRAP flag.
1413 2010-10-13 Richard Henderson <rth@redhat.com>
1415 * gcc-interface/misc.c (gnat_eh_personality): Update call to
1416 build_personality_function.
1417 * raise-gcc.c (PERSONALITY_FUNCTION): Change to match other languages;
1418 use__gnat_personality_{v,sj}0.
1420 2010-10-12 Vincent Celier <celier@adacore.com>
1422 * prj-nmsc.adb (Add_Source): Put source in hash table Source_Files_HT
1423 (Process_Exceptions_File_Based): Use hash table Source_Files_HT instead
1424 of iterating through all sources of the project.
1425 * prj.adb (Free): Reset hash table Source_Files_HT
1426 (Reset): Reset hash table Source_Files_HT
1427 * prj.ads (Source_Data): New component Next_With_File_Name
1428 (Source_Files_Htable): New hash table
1429 (Project_Tree_Data): New component Source_Files_HT
1431 2010-10-12 Tristan Gingold <gingold@adacore.com>
1433 * g-trasym-vms-ia64.adb: Use the documented API.
1434 * gcc-interface/Makefile.in: Always set NO_REORDER_ADAFLAGS.
1435 * gcc-interface/Make-lang.in: Update dependencies.
1437 2010-10-12 Thomas Quinot <quinot@adacore.com>
1439 * rtsfind.ads, exp_dist.adb, exp_dist.ads (Build_General_Calling_Stubs,
1440 PolyORB case): Request is now a controlled type: we can declare the
1441 request on the stack, and we do not need explicit cleanup actions
1444 2010-10-12 Bob Duff <duff@adacore.com>
1446 * s-rident.ads (Profile_Info): This variable is now constant.
1448 2010-10-12 Emmanuel Briot <briot@adacore.com>
1450 * g-comlin.adb, g-comlin.ads (Define_Switch): Put back (unused)
1451 parameter Separator for backward compatibility.
1453 2010-10-12 Robert Dewar <dewar@adacore.com>
1455 * sem_ch9.adb, par-ch9.adb, impunit.adb: Minor reformatting.
1457 2010-10-12 Vincent Celier <celier@adacore.com>
1459 * debug.adb: Put detailed documentation for gnatmake switch -dm.
1461 2010-10-12 Vincent Celier <celier@adacore.com>
1463 * gnat1drv.adb: When the compiler is invoked for a spec that needs aw
1464 body, do not generate an ALI file if neither -gnatc nor -gnatQ is used.
1466 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1468 * g-comlin.adb (Foreach_Switch): Make this procedure generic to avoid
1471 2010-10-12 Robert Dewar <dewar@adacore.com>
1473 * debug.adb: Add comment.
1474 * gnatcmd.adb, sem_ch6.adb, switch-m.adb: Minor reformatting.
1476 2010-10-12 Javier Miranda <miranda@adacore.com>
1478 * exp_util.adb (Side_Effect_Free): Return true for object renaming
1479 declarations that were previously generated by Remove_Side_Effects.
1481 2010-10-12 Emmanuel Briot <briot@adacore.com>
1483 * xref_lib.adb (Get_Full_Type): Display "private variable" instead of
1484 "???" when an entity is defined as "*" in the ALI file.
1485 * g-comlin.ads, g-comlin.adb: Fix handling of null parameters.
1488 2010-10-12 Emmanuel Briot <briot@adacore.com>
1490 * g-comlin.adb, g-comlin.ads (Display_Help, Getopt, Current_Section,
1491 Set_Usage): New subprograms.
1492 (Define_Switch): Change profile to add support for help messages and
1495 2010-10-12 Javier Miranda <miranda@adacore.com>
1497 * sem_ch6.adb (New_Overloaded_Entity): Add missing decoration of
1498 attribute Overridden_Operation in predefined dispatching primitives.
1500 2010-10-12 Emmanuel Briot <briot@adacore.com>
1502 * g-comlin.adb, g-comlin.ads (Add_Switch): Raise an exception when a
1503 command line configuration exists and we specify an invalid section.
1505 2010-10-12 Robert Dewar <dewar@adacore.com>
1507 * sem_ch6.adb (Process_PPCs): Fix error in inheriting Pre'Class when no
1508 exception messages are generated.
1509 (Process_PPCs): Fix error in inheriting Pre'Class.
1511 2010-10-12 Jose Ruiz <ruiz@adacore.com>
1513 * gnatcmd.adb: Use response file for GNATstack.
1514 (Check_Files): Pass the list of ci files for GNATstack using a response
1515 file to avoid problems with command line length.
1516 Factor out the code handling response file into a new procedure named
1517 Add_To_Response_File.
1519 2010-10-12 Vincent Celier <celier@adacore.com>
1521 * debug.adb: For gnatmake, document the meaning of -dm
1522 * make.adb (Gnatmake): If -dm is used, indicate the maximum number of
1523 simultaneous compilations.
1524 * switch-m.adb (Scan_Make_Switches): Allow -j0, meaning as many
1525 simultaneous compilations as the number of processors.
1527 2010-10-12 Joseph Myers <joseph@codesourcery.com>
1529 * gcc-interface/Make-lang.in (ada/misc.o): Use $(OPTIONS_H)
1530 instead of options.h.
1532 2010-10-12 Robert Dewar <dewar@adacore.com>
1534 * gnat_rm.texi: Clarify that 'Old can be used in preconditions and
1535 postcondition pragmas.
1537 2010-10-12 Robert Dewar <dewar@adacore.com>
1539 * errout.ads, erroutc.adb: The # insertion now handles from in place of
1541 * exp_prag.adb (Expand_Pragma_Check): Suppress generated default
1542 message if new switch Exception_Locations_Suppressed is set.
1543 (Expand_Pragma_Check): Revised wording for default message for case
1544 of precondition or postcondition.
1545 * namet.ads, namet.adb (Build_Location_String): New procedure.
1546 * opt.ads (List_Inherited_Pre_Post): New flag.
1547 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Add call to
1548 list inherited pre/post aspects.
1549 * sem_ch13.adb (Analyze_Aspect_Specification): Improve generation of
1550 messages for precondition/postcondition cases.
1551 * sem_ch6.adb (Process_PPCs): General cleanup, and list inherited PPC's
1552 if flag List_Inherited_Pre_Post is set True.
1553 (Process_PPCs): Add initial handling for inherited preconditions
1554 (List_Inherited_Pre_Post_Aspects): New procedure
1555 * sem_ch6.ads (List_Inherited_Pre_Post_Aspects): New procedure
1556 * sem_disp.adb (Inherited_Subprograms): New function
1557 * sem_disp.ads (Inherited_Subprograms): New function
1558 * sem_prag.adb (Check_Duplicate_Pragma): Clean up handling of
1560 (Check_Precondition_Postcondition): Check for inherited aspects
1561 * sem_warn.adb: Process -gnatw.l/w.L setting List_Inherited_Pre_Post
1562 * sinfo.ads, sinfo.adb (Split_PPC): New flag.
1563 * sinput.ads, sinput.adb (Build_Location_String): New function.
1564 * usage.adb: Add line for -gnatw.l/-gnatw.L
1566 2010-10-12 Javier Miranda <miranda@adacore.com>
1568 * exp_util.adb (Remove_Side_Effects): Remove wrong code.
1570 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1572 * xref_lib.adb: Add handling of j/J letters.
1574 2010-10-12 Pascal Obry <obry@adacore.com>
1576 * adaint.c (__gnat_number_of_cpus): Add implementation for Windows.
1578 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1580 * make.adb (Globalize): New procedure.
1581 (Compile): Set Do_Codepeer_Globalize_Step when -gnatC is used.
1582 (Gnatmake): Call Globalize when needed.
1583 (Process_Restrictions_Or_Restriction_Warnings): Ignore Restrictions
1584 pragmas in CodePeer mode.
1585 (Adjust_Global_Switches): Set No_Initialize_Scalars in CodePeer mode,
1586 to generate simpler and consistent code.
1588 2010-10-12 Bob Duff <duff@adacore.com>
1590 * exp_util.adb (Remove_Side_Effects): Disable previous change,
1591 can cause side effects to be duplicated.
1593 2010-10-12 Robert Dewar <dewar@adacore.com>
1595 * sem_ch6.adb (Process_PPCs): Handle inherited postconditions.
1597 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1599 * exp_disp.adb (Set_All_DT_Position): Disable emit error message on
1600 abstract inherited private operation in CodePeer mode.
1602 2010-10-12 Thomas Quinot <quinot@adacore.com>
1604 * a-exetim.ads: Minor reformatting.
1605 * g-socket.ads (Port_Type): Better definition corresponding to the
1606 actual standard range.
1607 * exp_ch5.adb: Add comment.
1608 * sem_aux.adb: Minor reformatting.
1610 2010-10-12 Ed Schonberg <schonberg@adacore.com>
1612 * sem_ch12.adb (Copy_Generic_Node): If node is a string literal, remove
1613 string_literal_subtype so that a new one can be constructed in the
1614 scope of the instance.
1616 2010-10-12 Robert Dewar <dewar@adacore.com>
1618 * exp_ch9.adb (Has_Pragma_Priority): New name for Has_Priority_Pragma
1619 * gnat_rm.texi (pragma Suppress_All): Document new placement rules
1620 * par-prag.adb (P_Pragma, case Suppress_All): Set
1621 Has_Pragma_Suppress_All flag.
1622 * sem_prag.adb (Has_Pragma_Priority): New name for Has_Priority_Pragma
1623 (Analyze_Pragma, case Suppress_All): Remove placement check
1624 (Process_Compilation_Unit_Pragmas): Use Has_Pragma_Suppress_All flag
1625 * sem_prag.ads (Process_Compilation_Unit_Pragmas): Update documentation
1626 * sinfo.adb (Has_Pragma_Suppress_All): New flag
1627 (Has_Pragma_Priority): New name for Has_Priority_Pragma
1628 * sinfo.ads (Has_Pragma_Suppress_All): New flag
1629 (Has_Pragma_Priority): New name for Has_Priority_Pragma
1631 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1633 * lib-xref.ads: Mark j/J as reserved for C++ classes.
1635 2010-10-12 Jose Ruiz <ruiz@adacore.com>
1637 * a-exetim-default.ads, a-exetim-posix.adb: New.
1638 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for linux): Use the
1639 POSIX Realtime support to implement CPU clocks.
1640 (EXTRA_GNATRTL_TASKING_OBJS for linux): Add the a-exetim.o object
1641 to the tasking library.
1642 (THREADSLIB): Make the POSIX.1b Realtime Extensions library (librt)
1643 available for shared libraries.
1644 * gcc-interface/Make-lang.in: Update dependencies.
1646 2010-10-12 Robert Dewar <dewar@adacore.com>
1648 * sem_ch13.adb (Analyze_Aspect_Specifications): For Pre/Post, break
1649 apart expressions with AND THEN clauses into separate pragmas.
1650 * sinput.ads, sinput.adab (Get_Logical_Line_Number_Img): New function.
1652 2010-10-12 Robert Dewar <dewar@adacore.com>
1654 * par-ch13.adb (P_Aspect_Specifications): Fix handling of 'Class
1656 * sem_ch13.adb (Analyze_Aspect_Specifications): Fix bad Sloc on aspects
1657 * sem_prag.adb (Fix_Error): Only change pragma names for pragmas from
1659 (Check_Optional_Identifier): Handle case of direct arguments
1660 (Chain_PPC): Test for abstract case, giving appropriate messages
1661 * sinfo.ads, sinfo.adb (Class_Present): Allowed on N_Pragma node
1663 2010-10-12 Robert Dewar <dewar@adacore.com>
1665 * par-endh.adb (Check_End): Don't swallow semicolon or aspects after
1667 * sem_attr.adb (Eval_Attribute): Code clean up.
1669 2010-10-12 Robert Dewar <dewar@adacore.com>
1671 * par-ch12.adb (P_Formal_Private_Type_Definition): Improve error
1672 messages and recovery for case of out of order Abstract/Tagged/Private
1674 * par-ch3.adb (P_Type_Declaration): Improve error messages and recovery
1675 for case of out of order Abstract/Tagged/Private keywords.
1677 2010-10-12 Ed Schonberg <schonberg@adacore.com>
1679 * inline.adb (Analyze_Inlined_Bodies): Restrict previous change to case
1680 where child unit is main unit of compilation.
1682 2010-10-12 Robert Dewar <dewar@adacore.com>
1684 * aspects.ads, aspects.adb (Move_Aspects): New procedure.
1685 * atree.ads, atree.adb: (New_Copy): Does not copy aspect specifications
1686 * sinfo.ads, par-ch3.adb, par-ch6.adb, par-ch7.adb, par-ch9.adb,
1687 par-endh.adb, par-ch13.adb, par-ch12.adb: Modify grammar to include
1688 aspect specifications.
1689 Recognize aspect specifications for all cases
1690 * par.adb: Recognize aspect specifications for all cases
1691 * sem_ch12.ads, sem_ch12.adb (Copy_Generic_Node): Copies aspect
1693 * sem_ch3.adb (Analyze_Subtype_Declaration): Improve patch to freeze
1694 generic actual types (was missing some guards before).
1695 * sem_ch9.adb (Analyze_Single_Protected_Declaration): Copy aspects to
1697 (Analyze_Single_Task_Declaration): Copy aspects to generated object
1699 2010-10-12 Eric Botcazou <ebotcazou@adacore.com>
1701 * usage.adb (usage): Adjust line for -gnatn switch.
1703 2010-10-12 Robert Dewar <dewar@adacore.com>
1705 * sem_attr.adb (Eval_Attribute): Only leave change active for aspect
1708 2010-10-12 Ed Schonberg <schonberg@adacore.com>
1710 * sem_ch6.adb (Analyze_Subprogram_Declaration): If this is a
1711 declaration of a null procedure resolve the types of the profile of the
1712 generated null body now.
1714 2010-10-11 Robert Dewar <dewar@adacore.com>
1716 * debug.adb: Remove d.A flag to delay address clause (not needed any
1717 more). Add d.A flag to enable tree read/write of aspect spec hash table
1718 * sem_ch13.adb (Analyze_Aspect_Specifications): Properly delay address
1720 (Rep_Item_Too_Late): No need for special processing for delayed rep
1721 items (and it caused difficulties in the address case).
1722 * tree_gen.adb: Only write aspect spec hash table if -gnatd.A is set
1723 * tree_in.adb: Only write aspect spec hash table if -gnatd.A is set
1725 2010-10-11 Pat Rogers <rogers@adacore.com>
1727 * gnat_ugn.texi: Minor editing.
1729 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
1731 * gcc-interface/utils2.c (gnat_build_constructor): Use VEC_qsort.
1733 2010-10-11 Robert Dewar <dewar@adacore.com>
1735 * g-htable.ads (Get_First): New procedural version for Simple_HTable
1736 (Get_Next): New procedural version for Simple_HTable
1737 * s-htable.adb (Get_First): New procedural version for Simple_HTable
1738 (Get_Next): New procedural version for Simple_HTable
1739 * s-htable.ads (Get_First): New procedural version for Simple_HTable
1740 (Get_Next): New procedural version for Simple_HTable
1742 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1744 * sem_aggr.adb (Propagate_Discriminants): To gather the components of a
1745 variant part, use the association list of the subaggregate, which
1746 already includes the values of the needed discriminants.
1748 2010-10-11 Robert Dewar <dewar@adacore.com>
1750 * aspects.ads, aspects.adb: Changes to accomodate aspect delay
1751 (Tree_Write): New procedure.
1752 * atree.ads, atree.adb: Flag3 is now Has_Aspects and applies to all
1754 * atree.h: Flag3 is now Has_Aspects and applies to all nodes
1755 * debug.adb: Add debug flag gnatd.A
1756 * einfo.adb (Has_Delayed_Aspects): New flag
1757 (Get_Rep_Item_For_Entity): New function
1758 * einfo.ads (Has_Delayed_Aspects): New flag
1759 (Get_Rep_Item_For_Entity): New function
1760 * exp_ch13.adb (Expand_N_Freeze_Entity): Insert delayed aspects into
1762 * exp_ch3.adb, exp_ch6.adb, exp_ch9.adb, exp_disp.adb: New calling
1763 sequence for Freeze_Entity.
1764 * freeze.ads, freeze.adb (Freeze_Entity): Takes node rather than source
1765 ptr. All calls are changed to this new interface.
1766 (Freeze_And_Append): Same change
1767 (Freeze_Entity): Evaluate deferred aspects
1768 * sem_attr.adb: New calling sequence for Freeze_Entity
1769 (Eval_Attribute): Don't try to evaluate attributes of unfrozen types
1770 when we are in spec expression preanalysis mode.
1771 * sem_ch10.adb: New calling sequence for Freeze_Entity
1772 * sem_ch11.adb: Simplify analysis of aspect specifications now that the
1773 flag Has_Aspects applies to all nodes (no need to save aspects).
1774 * sem_ch12.adb: Simplify analysis of aspect specifications now that the
1775 flag Has_Aspects applies to all nodes (no need to save aspects).
1776 * sem_ch13.adb (Analyze_Aspect_Specifications): Major rewrite to
1777 accomodate delaying aspect evaluation to the freeze point.
1778 (Duplicate_Clause): Simplify using Get_Rep_Item_For_Entity, and also
1779 accomodate delayed aspects.
1780 (Rep_Item_Too_Late): Deal with delayed aspects case
1781 * sem_ch13.ads (Rep_Item_Too_Late): Document handling of delayed
1783 * sem_ch3.adb (Analyze_Subtype_Declaration): Make sure that generic
1784 actual types are properly frozen (this is needed because of the new
1785 check in Eval_Attribute that declines to evaluate attributes
1786 for unfrozen types).
1787 Simplify analysis of aspect specifications now that the flag
1788 Has_Aspects applies to all nodes (no need to save aspects).
1789 * sem_ch3.ads (Preanalyze_Spec_Expression): Note use for delayed
1791 * sem_ch5.adb: Simplify analysis of aspect specifications now that the
1792 flag Has_Aspects applies to all nodes (no need to save aspects).
1793 New calling sequence for Freeze_Entity.
1794 * sem_ch9.adb, sem_ch7.adb, sem_ch6.adb: Simplify analysis of aspect
1795 specifications now that the flag Has_Aspects applies to all nodes
1796 (no need to save aspects).
1797 New calling sequence for Freeze_Entity
1798 * sem_prag.adb (Check_Duplicate_Pragma): Simplify using
1799 Get_Rep_Item_For_Entity
1800 (Get_Pragma_Arg): Moved to Sinfo
1801 * sinfo.ads, sinfo.adb (Aspect_Rep_Item_: New field
1802 (Is_Delayed_Aspect): New flag
1803 (Next_Rep_Item): Document use for aspects
1804 (Get_Pragma_Arg): Moved here from Sem_Prag
1805 * sprint.adb (Sprint_Aspect_Specifications): Now called after semicolon
1806 is output and removes semicolon (simplifies interface).
1807 (Sprint_Node_Actual): Simplify handling of aspects now that Has_Aspects
1808 applies to any node.
1809 * tree_gen.adb: Write contents of Aspect_Specifications hash table
1810 * tree_in.adb: Read and initialize Aspect_Specifications hash table
1811 * treepr.adb (Print_Node): Print Has_Aspects flag
1812 (Print_Node): Print Aspect_Specifications in Has_Aspects set
1813 * xtreeprs.adb: Remove obsolete references to Flag1,2,3
1815 2010-10-11 Robert Dewar <dewar@adacore.com>
1817 * aspects.ads, aspects.adb: Major revision of this package for 2nd
1818 stage of aspects implementation.
1819 * gcc-interface/Make-lang.in: Add entry for aspects.o
1820 * gcc-interface/Makefile.in: Add aspects.o to GNATMAKE_OBJS
1821 * par-ch13.adb (Aspect_Specifications_Present): New function
1822 (P_Aspect_Specifications): New procedure
1823 * par-ch3.adb (P_Type_Declaration): Handle aspect specifications
1824 (P_Derived_Type_Def_Or_Private_Ext_Decl): Handle aspect specifications
1825 (P_Identifier_Declarations): Handle aspect specifications
1826 (P_Component_Items): Handle aspect specifications
1827 (P_Subtype_Declaration): Handle aspect specifications
1828 * par-ch6.adb (P_Subprogram): Handle aspect specifications
1829 * par-ch9.adb (P_Entry_Declaration): Handle aspect specifications
1830 * par.adb (Aspect_Specifications_Present): New function
1831 (P_Aspect_Specifications): New procedure
1832 * sem.adb (Analyze_Full_Type_Declaration): New name for
1833 Analyze_Type_Declaration.
1834 (Analyze_Formal_Package_Declaration): New name (add _Declaration)
1835 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
1836 (Analyze_Protected_Type_Declaration): New name (add _Declaration)
1837 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
1838 (Analyze_Single_Task_Declaration): New name (add _Declaration)
1839 (Analyze_Task_Type_Declaration): New name (add _Declaration)
1840 * sem_cat.adb (Analyze_Full_Type_Declaration): New name for
1841 Analyze_Type_Declaration.
1842 * sem_ch11.adb (Analyze_Exception_Declaration): Analyze aspect
1844 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Handle aspect
1846 (Analyze_Formal_Package_Declaration): New name (add _Declaration)
1847 (Analyze_Formal_Package_Declaration): Handle aspect specifications
1848 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
1849 (Analyze_Formal_Subprogram_Declaration): Handle aspect specifications
1850 (Analyze_Formal_Type_Declaration): Handle aspect specifications
1851 (Analyze_Generic_Package_Declaration): Handle aspect specifications
1852 (Analyze_Generic_Subprogram_Declaration): Handle aspect specifications
1853 (Analyze_Package_Instantiation): Handle aspect specifications
1854 (Analyze_Subprogram_Instantiation): Handle aspect specifications
1855 * sem_ch12.ads (Analyze_Formal_Package_Declaration): New name (add
1857 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
1858 * sem_ch13.adb (Analyze_Aspect_Specifications): New procedure
1859 (Duplicate_Clause): New function, calls to this function are added to
1860 processing for all aspects.
1861 * sem_ch13.ads (Analyze_Aspect_Specifications): New procedure
1862 * sem_ch3.adb (Analyze_Full_Type_Declaration): New name for
1863 Analyze_Type_Declaration.
1864 * sem_ch3.ads (Analyze_Full_Type_Declaration): New name for
1865 Analyze_Type_Declaration.
1866 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Analyze aspect
1868 (Analyze_Subprogram_Declaration): Analyze aspect specifications
1869 * sem_ch7.adb (Analyze_Package_Declaration): Analyze aspect
1871 (Analyze_Private_Type_Declaration): Analyze aspect specifications
1872 * sem_ch9.adb (Analyze_Protected_Type_Declaration): Analyze aspect
1874 (Analyze_Protected_Type_Declaration): New name (add _Declaration)
1875 (Analyze_Single_Protected_Declaration): Analyze aspect specifications
1876 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
1877 (Analyze_Single_Task_Declaration): Analyze aspect specifications
1878 (Analyze_Single_Task_Declaration): New name (add _Declaration)
1879 (Analyze_Task_Type_Declaration): Analyze aspect specifications
1880 (Analyze_Task_Type_Declaration): New name (add _Declaration)
1881 * sem_ch9.ads (Analyze_Protected_Type_Declaration): New name (add
1883 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
1884 (Analyze_Single_Task_Declaration): New name (add _Declaration)
1885 (Analyze_Task_Type_Declaration): New name (add _Declaration)
1886 * sem_prag.adb: Use Get_Pragma_Arg systematically so that we do not
1887 have to generate unnecessary pragma argument associations (this matches
1889 Throughout do changes to accomodate aspect specifications, including
1890 specializing messages, handling the case of not going through all
1891 homonyms, and allowing for cancellation.
1892 * sinfo.ads, sinfo.adb: Clean up obsolete documentation for Flag1,2,3
1893 (Aspect_Cancel): New flag
1894 (From_Aspect_Specification): New flag
1895 (First_Aspect): Removed flag
1896 (Last_Aspect): Removed flag
1897 * sprint.adb (Sprint_Aspect_Specifications): New procedure
1898 (Sprint_Node_Actual): Add calls to Sprint_Aspect_Specifications
1900 2010-10-11 Bob Duff <duff@adacore.com>
1902 * sem_res.adb (Resolve_Actuals): Minor change to warning messages so
1903 they match in Ada 95, 2005, and 2012 modes, in the case where the
1904 language didn't change. Same thing for the run-time exception message.
1906 2010-10-11 Javier Miranda <miranda@adacore.com>
1908 * debug.adb Document that switch -gnatd.p enables the CIL verifier.
1910 2010-10-11 Robert Dewar <dewar@adacore.com>
1912 * s-htable.adb: Minor reformatting.
1914 2010-10-11 Javier Miranda <miranda@adacore.com>
1916 * debug.adb: Update comment.
1918 2010-10-11 Vincent Celier <celier@adacore.com>
1920 * gnatcmd.adb (GNATCmd): Set Opt.Unchecked_Shared_Lib_Imports to True
1921 unconditionally as for "gnat make" the projects are not processed in
1924 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1926 * sem_ch10.ads, sem_ch10.adb (Load_Needed_Body): Add parameter to
1927 suppress semantic analysis of the body when inlining, prior to
1928 verifying that the body does not have a with_clause on a descendant
1930 * inline.adb (Analyze_Inlined_Bodies): Do not inline a body if it has a
1931 with_clause on a descendant.
1932 (Scope_In_Main_Unit): Simplify.
1934 2010-10-11 Robert Dewar <dewar@adacore.com>
1936 * exp_ch6.adb, freeze.adb: Minor reformatting.
1938 2010-10-11 Vincent Celier <celier@adacore.com>
1940 * gnatcmd.adb (GNATCmd): For all tools other than gnatmake, allow
1941 shared library projects to import projects that are not shared library
1944 2010-10-11 Javier Miranda <miranda@adacore.com>
1946 * debug.adb: Document that switch -gnatd.o generates the CIL listing.
1948 2010-10-11 Arnaud Charlet <charlet@adacore.com>
1950 * sem_prag.adb (Process_Suppress_Unsuppress): Only ignore
1951 Suppress/Unsuppress pragmas in codepeer mode on user code.
1953 2010-10-11 Javier Miranda <miranda@adacore.com>
1955 * exp_ch6.adb (Expand_Call): For VM platforms, add missing expansion of
1956 tag check in case of dispatching call through "=".
1958 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1960 * sem_ch3.adb (Access_Subprogram_Declaration): In Ada2012 an incomplete
1961 type is legal in the profile of any basic declaration.
1962 * sem_ch6.adb (Analyze_Return_Type, Process_Formals): In Ada2012 an
1963 incomplete type, including a limited view of a type, is legal in the
1964 profile of any subprogram declaration.
1965 If the type is tagged, its use is also legal in a body.
1966 * sem_ch10.adb (Install_Limited_With_Clause): Do not process context
1968 (Install_Limited_Withed_Unit): Refine legality checks when both the
1969 limited and the non-limited view of a package are visible in the
1971 If this is not an error case, the limited view is ignored.
1972 freeze.adb (Freeze_Entity): In Ada2012, an incomplete type is legal in
1973 access to subprogram declarations
1975 2010-10-11 Robert Dewar <dewar@adacore.com>
1977 * exp_ch6.adb: Code clean up.
1978 * exp_util.adb: Minor reformatting.
1980 2010-10-11 Arnaud Charlet <charlet@adacore.com>
1982 * sem_ch3.adb, exp_ch6.adb
1983 (Make_Build_In_Place_Call_In_Anonymous_Context,
1984 Make_Build_In_Place_Call_In_Assignment,
1985 Make_Build_In_Place_Call_In_Object_Declaration): Fix calls to
1986 Add_Task_Actuals_To_Build_In_Place_Call in case of No_Task_Hierarchy
1988 (Access_Definition): Add missing handling of No_Task_Hierarchy.
1990 2010-10-11 Javier Miranda <miranda@adacore.com>
1992 * exp_util.adb (Remove_Side_Effects): No action needed for renamings of
1993 class-wide expressions.
1995 2010-10-11 Arnaud Charlet <charlet@adacore.com>
1997 * xr_tabls.adb, sem_res.adb: Minor reformatting
1999 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2001 * gnat_rm.texi, exp_attr.adb, sem_attr.adb, sem_attr.ads,
2002 snames.ads-tmpl (Analyze_Attribute, Expand_N_Attribute_Reference): Add
2003 handling of Attribute_Ref. Add missing blanks in some error messages.
2004 (Attribute_Ref, Name_Ref): Declare.
2005 Document 'Ref attribute.
2007 2010-10-11 Robert Dewar <dewar@adacore.com>
2009 * sem_attr.adb: Minor reformatting.
2011 2010-10-11 Javier Miranda <miranda@adacore.com>
2013 * sem_ch8.adb (Attribute_Renaming): Add missing check to avoid loading
2014 package System.Aux_Dec in VM platforms.
2016 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2018 * sem_prag.adb (Process_Suppress_Unsuppress): Ignore
2019 Suppress/Unsuppress pragmas in codepeer mode.
2020 (Analyze_Pragma [Pragma_Suppress_All]): Do not generate error message
2022 * einfo.ads: Fix typo.
2024 2010-10-11 Emmanuel Briot <briot@adacore.com>
2026 * sinfo.adb: Use GNAT.HTable rather than System.HTable.
2027 * prj-nmsc.adb: Minor reformatting.
2029 2010-10-11 Thomas Quinot <quinot@adacore.com>
2031 * sem_attr.adb (Type_Key): Code simplification.
2033 2010-10-11 Tristan Gingold <gingold@adacore.com>
2035 * gcc-interface/utils2.c (maybe_wrap_malloc): Fix crash when allocating
2036 very large object on VMS.
2038 2010-10-11 Javier Miranda <miranda@adacore.com>
2040 * sem_ch10.adb (Analyze_With_Clause): Add missing test to ensure
2041 availability of attribute Instance_Spec.
2043 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2045 * gnat1drv.adb (Adjust_Global_Switches): Disable codepeer mode if
2046 checking syntax only or in ASIS mode.
2048 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2050 * sem_ch6.adb (Check_Delayed_Subprogram): Abstract subprograms may also
2051 need a freeze node if some type in the profile has one.
2052 * gcc-interface/trans.c (case N_Abstract_Subprogram_Declaration): If
2053 entity has a freeze node, defer elaboration.
2055 2010-10-11 Emmanuel Briot <briot@adacore.com>
2057 * prj-nmsc.adb (Check_Aggregate_Project): Add support for finding all
2058 aggregated projects.
2060 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2062 * sem_res.adb (Resolve_Entry_Call): Generate 's' reference for entry
2064 * sem_ch6.adb: Diagnose additional error condition.
2066 2010-10-11 Bob Duff <duff@adacore.com>
2068 * par.adb (Par): Clarify wording of certain error messages.
2070 2010-10-11 Gary Dismukes <dismukes@adacore.com>
2072 * sem_disp.adb (Check_Dispatching_Operation): Revise test for warning
2073 about nondispatching subprograms to use In_Same_List (reducing use of
2076 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2078 * xr_tabls.adb, sem_res.adb, lib-xref.adb, lib-xref.ads: Use s for
2079 reference in a static call.
2081 2010-10-11 Steve Baird <baird@adacore.com>
2083 * exp_attr.adb (Expand_N_Attribute_Reference, case Type_Key): Type_Key
2084 attribute should always be transformed into a string literal in
2086 * par-ch4.adb: Type_Key attribute's type is String; update value of
2087 Is_Parameterless_Attribute constant to reflect this.
2088 * sem_attr.adb (Analyze_Attribute): Recognize Type_Key attribute and
2089 rewrite it as a string literal (attribute value is always known
2091 * snames.ads-tmpl: Add entries for Type_Key attribute.
2093 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2095 * lib-xref.adb (Output_References): Common handling for objects and
2096 formals of an anonymous access type.
2098 2010-10-11 Eric Botcazou <ebotcazou@adacore.com>
2100 * make.adb (Scan_Make_Arg): Also pass -O to both compiler and linker.
2102 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2104 * sem_ch6.adb: Fix check for illegal equality declaration in Ada2012
2106 2010-10-11 Gary Dismukes <dismukes@adacore.com>
2108 * sem_disp.adb (Check_Dispatching_Operation): When testing for issuing
2109 a warning about subprograms of a tagged type not being dispatching,
2110 limit this to cases where the tagged type and the subprogram are
2111 declared within the same declaration list.
2113 2010-10-11 Jerome Lambourg <lambourg@adacore.com>
2115 * projects.texi, prj-attr.adb: Add new attribute documentation_dir.
2117 2010-10-11 Bob Duff <duff@adacore.com>
2119 * par-ch9.adb, sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, impunit.adb,
2120 impunit.ads, sem_ch5.adb, sem_type.adb, exp_imgv.adb, exp_util.adb,
2121 switch-c.adb, exp_attr.adb, exp_ch9.adb, par-ch11.adb, usage.adb,
2122 sem_ch9.adb, sem_ch10.adb, scng.adb, checks.adb, sem_prag.adb,
2123 sem_ch12.adb, par-ch2.adb, freeze.adb, par-ch4.adb, sem_util.adb,
2124 sem_res.adb, sem_attr.adb, par-ch6.adb, exp_ch4.adb, exp_ch6.adb,
2125 sem_ch4.adb, exp_ch8.adb, par-ch10.adb, sem_ch6.adb, par-prag.adb,
2126 exp_disp.adb, par-ch12.adb, sem_ch8.adb, snames.adb-tmpl, opt.ads,
2127 exp_aggr.adb, sem_cat.adb, sem_ch13.adb, par-ch3.adb, exp_strm.adb,
2128 exp_cg.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb: Use Ada_2005
2129 instead of Ada_05 (Ada_Version_Type).
2131 2010-10-11 Bob Duff <duff@adacore.com>
2133 * sem_aggr.adb, impunit.adb, impunit.ads, switch-c.adb, usage.adb,
2134 sem_ch10.adb, sem_prag.adb, sem_ch12.adb, par-ch4.adb, par-ch6.adb,
2135 par-ch8.adb, exp_ch4.adb, sem_ch4.adb, sem_ch6.adb, par-prag.adb,
2136 opt.ads, par-ch3.adb, lib-xref.adb: Use Ada_2012 instead of Ada_12
2139 2010-10-11 Javier Miranda <miranda@adacore.com>
2141 * exp_util.adb (Safe_Prefixed_Reference): If the prefix is an explicit
2142 dereference then do not exclude dereferences of access-to-constant
2143 types to handle them as constant view of variables (and hence remove
2144 side effects when required).
2145 * sem_res.adb (Resolve_Slice): Ensure that side effects in the bounds
2146 are properly handled.
2148 2010-10-11 Robert Dewar <dewar@adacore.com>
2150 * sem_prag.adb, sem_aggr.adb, sprint.adb: Minor reformatting.
2152 2010-10-11 Javier Miranda <miranda@adacore.com>
2154 * exp_ch5.ads, exp_ch6.ads (Expand_N_Extended_Return_Statement): Moved
2156 (Expand_N_Simple_Return_Statement): Moved to exp_ch6.
2157 * exp_ch5.adb, exp_ch6.adb (Expand_Non_Function_Return): Moved to
2159 (Expand_Simple_Function_Return): Move to exp_ch6.
2160 (Expand_N_Extended_Return_Statement): Moved to exp_ch6.
2161 (Expand_N_Simple_Return_Statement): Moved to exp_ch6.
2163 2010-10-11 Robert Dewar <dewar@adacore.com>
2165 * snames.ads-tmpl: Add names for aspects.
2166 * aspects.ads, aspects.adb: New.
2167 * gcc-interface/Make-lang.in: Update dependencies.
2168 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2170 * exp_ch6.adb (Expand_Actuals): If an actual is the current instance of
2171 a task type, it must be replaced with a reference to Self.
2173 2010-10-11 Vincent Celier <celier@adacore.com>
2175 * adaint.h: Add prototype for function __gnat_create_output_file_new.
2177 2010-10-11 Javier Miranda <miranda@adacore.com>
2179 * sem_aggr.adb (Collect_Aggr_Bounds): Remove side effects of collected
2182 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2184 * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Do not emit error
2185 for AI05-0033 in CodePeer mode.
2187 2010-10-11 Robert Dewar <dewar@adacore.com>
2189 * atree.h, atree.ads, atree.adb (Flag3): New flag (replaces Unused_1)
2190 * csinfo.adb: Aspect_Specifications is a new special field
2191 * einfo.adb (Flag3): New unused flag
2192 * exp_util.adb (Insert_Actions): Add processing for
2193 N_Aspect_Specification.
2194 * sem.adb: Add entry for N_Aspect_Specification.
2195 * sinfo.ads, sinfo.adb (N_Aspect_Specification): New node
2196 (Has_Aspect_Specifications): New flag
2197 (Permits_Aspect_Specifications): New function
2198 (Aspect_Specifications): New function
2199 (Set_Aspect_Specifications): New procedure
2200 * sprint.adb (Sprint_Node): Put N_At_Clause in proper alpha order
2201 (Sprint_Node): Add dummy entry for N_Aspect_Specification
2202 * treepr.adb (Flag3): New flag to be listed
2204 2010-10-11 Vincent Celier <celier@adacore.com>
2206 * adaint.c: Minor reformatting.
2208 2010-10-11 Robert Dewar <dewar@adacore.com>
2210 * sem_ch6.adb, s-htable.ads: Minor reformatting.
2212 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2214 * sem_ch4.adb (Analyze_Selected_Component): If the selector is
2215 invisible in an instantiation, and both the formal and the actual are
2216 private extensions of the same type, look for the desired component in
2217 the proper view of the parent type.
2219 2010-10-11 Vincent Celier <celier@adacore.com>
2221 * adaint.c (__gnat_number_of_cpus): Add implementation for Solaris,
2222 AIX, Tru64, Darwin, IRIX and HP-UX.
2224 2010-10-11 Robert Dewar <dewar@adacore.com>
2226 * a-textio.adb: Minor reformatting
2228 2010-10-11 Robert Dewar <dewar@adacore.com>
2230 * a-suesen.ads, a-suenst.ads,
2231 a-suesen.adb, a-suenst.adb,
2232 a-suewse.adb, a-suewst.adb,
2233 a-suewse.ads, a-suewst.ads,
2234 a-suezse.ads, a-suezst.ads,
2235 a-suezse.adb, a-suezst.adb: New name for string encoding packages.
2236 * impunit.adb: New names for string encoding units
2237 * Makefile.rtl: New names for string encoding units
2238 * rtsfind.ads: Minor code reorganization.
2240 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2242 * exp_ch5.adb: Code clean up.
2244 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2246 * sem_ch6.adb (Check_Limited_Return): Specialize warning on limited
2247 returns when in a generic context.
2248 (Analyze_Function_Return): ditto.
2250 2010-10-11 Robert Dewar <dewar@adacore.com>
2252 * s-multip.ads: Fix header.
2253 * sem_ch3.adb, s-multip.adb, a-tigeli.adb: Minor reformatting.
2255 2010-10-11 Vincent Celier <celier@adacore.com>
2257 * Makefile.rtl: Add s-multip.
2258 * adaint.c: New function __gnat_number_of_cpus, implemented for Linux,
2259 defaulting to 1 for other platforms.
2260 * adaint.h: New function __gnat_number_of_cpus.
2261 * impunit.adb (Non_Imp_File_Names_12): New file list for Ada 2012,
2262 with a single component "s-multip".
2263 * impunit.ads (Kind_Of_Unit): New enumerated value Ada_12_Unit for Ada
2265 * rtsfind.ads (RTU_Id): New enumerated value System_Multiprocessors
2266 * s-multip.ads, s-multip.adb: New Ada 2012 package.
2267 * sem_ch10.adb (Analyze_With_Clause): Check also Ada 2012 units.
2269 2010-10-11 Javier Miranda <miranda@adacore.com>
2271 * a-textio.adb: Move new implementation of Get_Line to a subunit.
2272 * a-tigeli.adb: New subunit containing the implementation of Get_Line.
2274 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2276 * sem_aux.adb: Code clean up.
2278 2010-10-11 Robert Dewar <dewar@adacore.com>
2280 * sem_ch3.adb, sem_aux.adb, sem_ch6.adb: Minor reformatting
2282 2010-10-11 Robert Dewar <dewar@adacore.com>
2284 * einfo.adb, atree.h, atree.ads, atree.adb: Define seven new flags
2285 Flag248-Flag254. Define new field Field29.
2287 2010-10-10 Olivier Hainque <hainque@adacore.com>
2288 Eric Botcazou <ebotcazou@adacore.com>
2290 * gcc-interface/lang.opt (gdwarf+): Remove.
2291 * gcc-interface/gigi.h (get_parallel_type): Likewise
2292 * gcc-interface/misc.c (gnat_dwarf_extensions): Likewise.
2293 (gnat_handle_option): Remove OPT_gdwarfplus case.
2294 (gnat_post_options): Remove setting of use_gnu_debug_info_extensions
2295 from gnat_dwarf_extensions.
2296 * gcc-interface/trans.c (gigi): Remove -gdwarf+ initializations.
2297 * gcc-interface/utils.c (get_parallel_type): Remove.
2299 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
2301 * gcc-interface/trans.c (gnat_to_gnu) <N_Not_In>: Use
2302 invert_truthvalue_loc instead of invert_truthvalue.
2303 * gcc-interface/utils2.c (build_binary_op) <NE_EXPR>: Likewise.
2304 (build_unary_op) <TRUTH_NOT_EXPR>: Likewise.
2306 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
2308 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
2309 assertion on the types of the parameters. Use KIND local variable.
2310 <E_Incomplete_Type>: Likewise.
2312 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
2314 * gcc-interface/ada-tree.h (DECL_BY_DOUBLE_REF_P): New macro.
2315 * gcc-interface/gigi.h (annotate_object): Add BY_DOUBLE_REF parameter.
2316 * gcc-interface/decl.c (annotate_object): Likewise and handle it.
2317 (gnat_to_gnu_entity): Adjust calls to annotate_object.
2318 (gnat_to_gnu_param): If fat pointer types are passed by reference on
2319 the target, pass them by explicit reference.
2320 * gcc-interface/misc.c (default_pass_by_ref): Fix type of constant.
2321 * gcc-interface/trans.c (Identifier_to_gnu): Do DECL_BY_DOUBLE_REF_P.
2322 (Subprogram_Body_to_gnu): Adjust call to annotate_object.
2323 (call_to_gnu): Handle DECL_BY_DOUBLE_REF_P.
2324 * gcc-interface/utils.c (convert_vms_descriptor): Add BY_REF parameter
2326 (build_function_stub): Iterate on the parameters of the subprogram in
2327 lieu of on the argument types. Adjust call to convert_vms_descriptor.
2329 2010-10-09 Eric Botcazou <ebotcazou@adacore.com>
2331 * gcc-interface/misc.c: Delete prototypes.
2332 (gnat_init_options): Use local variable.
2333 (lang_hooks): Move to the end of the file.
2335 2010-10-08 Joseph Myers <joseph@codesourcery.com>
2337 * gcc-interface/misc.c (gnat_init_options_struct): New. Split out
2338 from gnat_init_options.
2339 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
2341 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2343 * sem_aux.adb: Cleanup Is_Immutably_Limited_Type.
2345 2010-10-08 Robert Dewar <dewar@adacore.com>
2347 * exp_ch3.adb: Minor reformatting.
2348 * exp_ch5.adb: Add comment.
2350 2010-10-08 Robert Dewar <dewar@adacore.com>
2352 * sem_prag.adb (Check_Duplicate_Pragma): Check for entity match
2353 * gcc-interface/Make-lang.in: Update dependencies.
2354 * einfo.ads: Minor reformatting.
2356 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2358 * exp_ch5.adb, sem_ch3.adb, exp_ch7.adb, exp_util.adb, sem_aux.adb,
2359 sem_aux.ads, exp_ch4.adb, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
2360 exp_ch3.adb: Change Is_Inherently_Limited_Type to
2361 Is_Immutably_Limited_Type to accord with new RM terminology.
2362 * sem_aux.adb (Is_Immutably_Limited_Type): A type that is a descendant
2363 of a formal limited private type is not immutably limited in a generic
2366 2010-10-08 Robert Dewar <dewar@adacore.com>
2368 * sem_prag.adb (Check_Duplicate_Pragma): New procedure
2369 Add calls to this new procedure where appropriate
2371 2010-10-08 Vincent Celier <celier@adacore.com>
2373 * a-textio.adb (Get_Chunk): Code clean up.
2375 2010-10-08 Robert Dewar <dewar@adacore.com>
2377 * a-strbou.ads, a-strfix.adb, a-strfix.ads, a-strsea.adb, a-strsea.ads,
2378 a-strsup.adb, a-strsup.ads, a-strunb-shared.adb, a-strunb-shared.ads,
2379 a-strunb.adb, a-strunb.ads, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
2380 a-stwise.adb, a-stwise.ads, a-stwisu.adb, a-stwisu.ads,
2381 a-stwiun-shared.adb, a-stwiun-shared.ads, a-stwiun.adb, a-stwiun.ads,
2382 a-stzbou.ads, a-stzfix.adb, a-stzfix.ads, a-stzsea.adb, a-stzsea.ads,
2383 a-stzsup.adb, a-stzsup.ads, a-stzunb-shared.adb, a-stzunb-shared.ads,
2384 a-stzunb.adb, a-stzunb.ads (Find_Token): New version with From
2387 2010-10-08 Robert Dewar <dewar@adacore.com>
2389 * sem_cat.adb (Check_Categorization_Dependencies): Remote types
2390 packages can depend on preleborated packages.
2392 2010-10-08 Robert Dewar <dewar@adacore.com>
2394 * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Pragmas
2395 Interrupt_Handler and Attach_Handler not allowed in generics.
2397 2010-10-08 Robert Dewar <dewar@adacore.com>
2399 * ali.adb: Set Allocator_In_Body if AB parameter present on M line
2400 * ali.ads (Allocator_In_Body): New flag
2401 * bcheck.adb (Check_Consistent_Restrictions): Handle case of main
2402 program violating No_Allocators_After_Elaboration restriction.
2403 * gnatbind.adb (No_Restriction_List): Add entries for
2404 No_Anonymous_Allocators, and No_Allocators_After_Elaboration.
2405 * lib-load.adb: Initialize Has_Allocator flag
2406 * lib-writ.adb: Initialize Has_Allocator flag
2407 (M_Parameters): Set AB switch if Has_Allocator flag set
2408 * lib-writ.ads: Document AB flag on M line
2409 * lib.adb (Has_Allocator): New function
2410 (Set_Has_Allocator): New procedure
2411 * lib.ads (Has_Allocator): New function
2412 (Set_Has_Allocator): New procedure
2413 (Has_Allocator): New flag in Unit_Record
2414 * sem_ch4.adb (Analyze_Allocator): Add processing for
2415 No_Allocators_After_Elaboration.
2417 2010-10-08 Geert Bosch <bosch@adacore.com>
2419 * a-textio.adb (Get_Line): Rewrite to use fgets instead of fgetc.
2421 2010-10-08 Javier Miranda <miranda@adacore.com>
2423 * sem_prag.adb (Analyze_Pragma): Relax semantic rule of
2424 Java_Constructors because in the JRE library we generate occurrences
2425 in which the "this" parameter is not the first formal.
2427 2010-10-08 Robert Dewar <dewar@adacore.com>
2429 * par-ch3.adb: Minor reformatting.
2431 2010-10-08 Javier Miranda <miranda@adacore.com>
2433 * exp_disp.adb (Make_DT): Do not generate dispatch tables for CIL/Java
2436 2010-10-08 Robert Dewar <dewar@adacore.com>
2438 * par-ch8.adb (P_Use_Type_Clause): Recognize ALL keyword in Ada 2012
2440 * sinfo.adb (Use_Type_Clause): Add All_Present flag.
2441 * sinfo.ads (Use_Type_Clause): Add All_Present flag.
2442 * s-rident.ads: Add entry for No_Allocators_After_Elaboration,
2443 No_Anonymous_Allocators.
2445 2010-10-08 Vincent Celier <celier@adacore.com>
2447 * bindgen.adb (Gen_Restrictions_Ada): No new line after last
2448 restriction, so that the last comma is always replaced with a left
2451 2010-10-08 Javier Miranda <miranda@adacore.com>
2453 * sem_prag.adb (Analyze_Pragma): Add specific check on the type of the
2454 first formal of delegates.
2456 2010-10-08 Robert Dewar <dewar@adacore.com>
2458 * sem_aggr.adb: Minor reformatting.
2460 2010-10-08 Robert Dewar <dewar@adacore.com>
2462 * exp_imgv.adb (Expand_Image_Attribute): Handle special calling
2463 sequence for soft hyphen for Character'Image case.
2464 * rtsfind.ads (Image_Character_05): New entry
2465 * s-imgcha.adb (Image_Character_05): New procedurew
2466 * s-imgcha.ads (Image_Character_05): New procedure
2467 * s-imgwch.adb (Image_Wide_Character): Deal with Ada 2005 soft hyphen
2469 * s-valcha.adb (Value_Character): Recognize SOFT_HYPHEN for 16#AD#
2470 * sem_attr.adb (Eval_Attribute, case Width): Handle soft_hyphen name
2473 2010-10-08 Robert Dewar <dewar@adacore.com>
2475 * sem_attr.adb (Eval_Attribute, case Width): Avoid ludicrous long loop
2476 for case of Wide_[Wide_]Character.
2478 2010-10-08 Robert Dewar <dewar@adacore.com>
2480 * exp_ch3.adb: Minor reformating
2481 Minor code reorganization.
2483 2010-10-08 Javier Miranda <miranda@adacore.com>
2485 * sem_prag.adb (Analyze_Pragma): Add missing checks on wrong use of
2486 pragmas CIL_Constructor and Java_Constructor.
2487 * exp_ch3.adb (Expand_Freeze_Record_Type): Do not generate the
2488 predefined primitives for CIL/Java tagged types.
2490 2010-10-08 Robert Dewar <dewar@adacore.com>
2492 * sem_ch6.adb: Minor reformatting.
2494 2010-10-08 Robert Dewar <dewar@adacore.com>
2496 * gnat1drv.adb: Add call to Validate_Independence.
2497 * par-prag.adb: Add dummy entries for Independent,
2498 Independent_Componentsa.
2499 * sem_ch13.adb (Validate_Independence): New procedure
2500 (Initialize): Initialize address clause and independence check tables
2501 * sem_ch13.ads (Independence_Checks): New table
2502 (Validate_Independence): New procedure
2503 * sem_prag.adb: Add processing for pragma Independent[_Components]
2504 * snames.ads-tmpl: Add entries for pragma Independent[_Components]
2506 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2508 * sem_aggr.adb (Propagate_Discriminants): When expanding an aggregate
2509 component with box initialization, if the component is a variant record
2510 use the values of the discriminants to select the proper variant for
2511 further box initialization.
2513 2010-10-08 Thomas Quinot <quinot@adacore.com>
2515 * xsnames.adb: Remove obsolete file.
2516 * make.adb, sem_ch8.adb, einfo.ads: Minor reformatting.
2518 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2520 * exp_aggr.adb: Complete previous change.
2522 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2524 * sem_ch6.adb (Check_Return_Subtype): The subtype indication in an
2525 extended return must match statically the return subtype of the
2526 enclosing function if the type is an elementary type or if it is
2529 2010-10-08 Vincent Celier <celier@adacore.com>
2531 * prj-nmsc.adb (Add_Source): Report all duplicate units and source file
2532 names. Do not report the same duplicate unit several times.
2533 * prj.ads (Source_Data): New Boolean component Duplicate_Unit,
2534 defaulted to False, to avoid reporting the same unit as duplicate
2537 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2539 * sem_aggr.adb (Resolve_Array_Aggregate): If the expression in an
2540 others choice is a literal, analyze it to enable later optimizations.
2541 * exp_aggr.adb (Expand_Record_Aggregate): An aggregate with static size
2542 and components can be handled by the backend even if it is of a limited
2545 2010-10-08 Arnaud Charlet <charlet@adacore.com>
2547 * a-rttiev.adb (task Timer): Since this package may be elaborated
2548 before System.Interrupt, we need to call Setup_Interrupt_Mask
2549 explicitly to ensure that this task has the proper signal mask.
2551 2010-10-08 Robert Dewar <dewar@adacore.com>
2553 * freeze.adb (Freeze_Entity): For array case, move some processing for
2554 pragma Pack, Component_Size clause and atomic/volatile components here
2555 instead of trying to do the job in Sem_Ch13 and Freeze.
2556 * layout.adb: Use new Addressable function
2557 * sem_ch13.adb (Analyze_Attribute_Representation_Clause, case
2558 Component_Size): Move some handling to freeze point in
2559 Freeze.Freeze_Entity.
2560 * sem_prag.adb (Analyze_pragma, case Pack): Move some handling to
2561 freeze point in Freese.Freeze_Entity.
2562 * sem_util.ads, sem_util.adb (Addressable): New function.
2564 2010-10-08 Robert Dewar <dewar@adacore.com>
2566 * sprint.adb: Minor reformatting.
2568 2010-10-08 Javier Miranda <miranda@adacore.com>
2570 * exp_ch4.adb (Real_Range_Check): Declare temporary as constant.
2572 2010-10-08 Robert Dewar <dewar@adacore.com>
2574 * sem_ch3.adb: Minor reformatting.
2576 2010-10-08 Vincent Celier <celier@adacore.com>
2578 * ali-util.adb (Get_File_Checksum): Make sure that external_as_list is
2579 not a reserved word.
2580 * prj-proc.adb (Expression): Process string list external references.
2581 * prj-strt.adb (External_Reference): Parse external_as_list external
2583 * prj-tree.ads (Expression_Kind_Of): Allowed for N_External_Value nodes
2584 (Set_Expression_Kind_Of): Ditto
2585 * prj.adb (Initialize): Set external_as_list as a reserved word
2586 * projects.texi: Document new string external reference
2588 * scans.ads (Token_Type): New token Tok_External_As_List
2589 * snames.ads-tmpl: New standard name Name_External_As_List
2591 2010-10-08 Thomas Quinot <quinot@adacore.com>
2593 * sem_prag.adb: Minor reformatting.
2595 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2597 * sem_ch3.adb (Derived_Type_Declaration): In the private part of an
2598 instance, it is legal to derive from a non-limited actual when the
2599 formal type is untagged limited.
2600 * sem_ch12.adb (Instantiate_Type): For a formal private type, use
2601 analyzed formal as Generic_Parent_Type, to simplify later checks.
2603 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2605 * sem_res.adb (Insert_Default): If default value is already a
2606 raise_constraint_error do not rewrite it as new raise node, to prevent
2607 infinite loops in the warning removal machinery.
2609 2010-10-08 Robert Dewar <dewar@adacore.com>
2611 * sem_util.adb, sem_prag.adb: Minor reformatting
2613 2010-10-08 Hristian Kirtchev <kirtchev@adacore.com>
2615 * gnat_rm.texi: Remove the section on pragma Implemented_By_Entry.
2616 Add section on pragma Implemented.
2618 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2620 * sem_ch3.adb (Derive_Subprogram): If an abstract extension has a
2621 concrete parent with a concrete constructor, the inherited constructor
2622 is abstract even if the derived type is a null extension.
2624 2010-10-08 Thomas Quinot <quinot@adacore.com>
2626 * sem_ch4.adb: Minor reformatting.
2628 2010-10-08 Hristian Kirtchev <kirtchev@adacore.com>
2630 * einfo.adb: Flag 232 (formerly Implemented_By_Entry) is now unused.
2631 (Implemented_By_Entry): Removed.
2632 (Set_Implemented_By_Entry): Removed.
2633 (Write_Entity_Flags): Remove the output for Implemented_By_Entry.
2634 * einfo.ads: Remove Implemented_By_Entry and its usage in entities.
2635 (Implemented_By_Entry): Removed along with its associated pragma.
2636 (Set_Implemented_By_Entry): Removed along with its associated pragma.
2637 * exp_ch9.adb: Alphabetize with and use clauses of Exp_Ch9.
2638 (Build_Dispatching_Call_Equivalent): New routine.
2639 (Build_Dispatching_Requeue): New routine.
2640 (Build_Dispatching_Requeue_To_Any): New routine.
2641 (Build_Normal_Requeue): New routine.
2642 (Build_Skip_Statement): New routine.
2643 (Expand_N_Requeue_Statement): Rewritten. The logic has been split into
2644 several subroutines.
2645 * par-prag.adb: Replace Pragma_Implemented_By_Entry by
2647 * sem_ch3.adb (Check_Abstract_Overriding): Perform checks concerning
2649 (Check_Pragma_Implemented): New routines.
2650 (Inherit_Pragma_Implemented): New routine.
2651 * sem_ch9.adb (Analyze_Requeue): Update the predicate which detects a
2652 dispatching requeue.
2653 * sem_prag.adb: Update array Sig_Flags by removing Implemented_By_Entry
2654 and adding Implemented.
2655 (Ada_2012_Pragma): New routine.
2656 (Analyze_Pragma, case Implemented): Perform all necessary checks
2657 concerning pragma Implemented and register the pragma as a
2658 representation item with the procedure_LOCAL_NAME.
2659 (Analyze_Pragma, case Implemented_By_Entry): Removed.
2660 * sem_util.adb (Implementation_Kind): New routine.
2661 * sem_util.ads (Implementation_Kind): New routine.
2662 * snames.ads-tmpl: Remove Name_Implemented_By_Entry and add
2663 Name_Implemented. Remove pragma name Pragma_Implemented_By_Entry and
2664 add Pragma_Implemented. Add special names By_Any, By_Entry and
2665 By_Protected_Procedure.
2667 2010-10-08 Javier Miranda <miranda@adacore.com>
2669 * exp_ch3.adb (Expand_Freeeze_Record_Type): Code cleanup: remove local
2670 variable Has_Static_DT by invocation of function Building_Static_DT.
2672 2010-10-08 Vincent Celier <celier@adacore.com>
2674 * g-dirope.adb (Remove_Dir): Do not change the current directory when
2675 doing a recursive remove of a subdirectory.
2677 2010-10-08 Javier Miranda <miranda@adacore.com>
2679 * exp_ch6.ad (Freeze_Subprogram): Factorize code.
2680 * exp_disp.adb (Make_Secondary_DT): Factorize code.
2681 (Make_DT): Factorize code.
2683 2010-10-08 Robert Dewar <dewar@adacore.com>
2685 * sem_ch4.adb: Minor reformatting.
2687 2010-10-08 Robert Dewar <dewar@adacore.com>
2689 * sem_ch6.adb (Check_Conformance): Check null exclusion match for full
2692 2010-10-08 Thomas Quinot <quinot@adacore.com>
2694 * sem_ch12.adb (Instantiate_Object): Rename Formal_Id to Gen_Obj, for
2695 consistency with Gen_T in Instantiate_Type.
2696 Introduce constant A_Gen_Obj to avoid repeated queries for
2697 Defining_Identifier (Analyzed_Formal).
2699 2010-10-08 Vincent Celier <celier@adacore.com>
2701 * prj-nmsc.adb: Minor comment fix.
2703 2010-10-07 Robert Dewar <dewar@adacore.com>
2705 * sem_prag.adb, sem_ch13.adb: Implement AI05-0012-1/02.
2706 * gcc-interface/Make-lang.in: Update dependencies.
2708 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2710 * sem_ch12.ad: (Instantiate_Object): For an in-out formal of a child
2711 unit, if the type of the formal is declared in a parent unit and is not
2712 a formal itself, the actual must be located from an enclosing parent
2713 instance by normal visibility.
2715 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2717 * sem_ch4.adb (Analyze_Allocator): In Ada 2012, a null_exclusion
2718 indicator is illegal for an uninitialized allocator.
2720 2010-10-07 Robert Dewar <dewar@adacore.com>
2722 * sem_prag.adb (Analyze_Attribute_Definition_Clause, case
2723 Component_Size): Complete previous change.
2725 2010-10-07 Vincent Celier <celier@adacore.com>
2727 * scng.adb (Scan): Call Accumulate_Token_Checksum for Tok_Identifier,
2728 even for keywords, to avoid having the checksum to depend on the Ada
2731 2010-10-07 Gary Dismukes <dismukes@adacore.com>
2733 * sem_aggr.adb, sem_ch12.adb, sem_ch6.adb, par-ch5.adb,
2734 exp_ch3.adb: Minor reformatting.
2736 2010-10-07 Robert Dewar <dewar@adacore.com>
2738 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
2739 Component_Size): It is now illegal to give an incorrect component size
2740 clause in the case of aliased or atomic components.
2741 * sem_prag.adb (Analyze_Pragma, case Pack): It is now illegal to give
2742 an effective pragma Pack in the case of aliased or atomic components.
2744 2010-10-07 Steve Baird <baird@adacore.com>
2746 * exp_ch4.adb (Expand_N_Allocator): Do not bypass expansion
2747 in the case of a violation of an active No_Task_Hierarchy restriction.
2749 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2751 * sem_ch12.adb (Validate_Derived_Type_Instance): If a formal derived
2752 type is non-limited, an actual for it cannot be limited.
2754 2010-10-07 Robert Dewar <dewar@adacore.com>
2756 * einfo.ads (No_Pool_Assigned): Update documentation.
2757 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
2758 Storage_Size): We only set No_Pool_Assigned if the expression is a
2759 static constant and zero.
2760 * sem_res.adb (Resolve_Allocator): Allocation from empty storage pool
2761 should be an error not a warning.
2763 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2765 * exp_aggr.adb (Expand_Array_Aggregate): Recognize additional cases
2766 where an aggregate in an assignment can be built directly into the
2767 target, and does not require the creation of a temporary that may
2770 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2772 * sem_aggr.adb (Analyze_Record_Aggregate): In Ada2012, a choice list
2773 in a record aggregate can correspond to several components of
2774 anonymous access types, as long as the designated subtypes match.
2776 2010-10-07 Robert Dewar <dewar@adacore.com>
2778 * gnat_rm.texi, exp_util.adb, sinfo.adb, sinfo.ads, sem_ch12.adb,
2779 sem.adb, gnat_ugn.texi, sem_util.ads, par-ch6.adb, targparm.ads,
2780 restrict.adb, sem_ch6.adb, sem_ch6.ads, sprint.adb, i-c.ads: Change
2781 spelling parametrize(d) => parameterize(d).
2783 2010-10-07 Robert Dewar <dewar@adacore.com>
2785 * sem_ch12.adb: Add comment.
2786 * sem_ch6.adb: Minor reformatting.
2788 2010-10-07 Robert Dewar <dewar@adacore.com>
2790 * par-ch3.adb, par-ch6.adb, par-ch7.adb, par-ch9.adb, par-ch10.adb: Add
2791 Pexp to Pf_Rec constants
2792 (P_Subprogram): Expression is always enclosed in parentheses
2793 * par.adb (Pf_Rec): add Pexp flag for parametrized expression
2794 * sinfo.ads (N_Parametrized_Expression): Expression must be in parens
2796 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2798 * sem_ch6.adb (Analyze_Subprogram_Specification): Implement Ada2012
2799 checks on functions that return an abstract type or have a controlling
2800 result whose designated type is an abstract type.
2801 (Check_Private_Overriding): Implement Ada2012 checks on functions
2802 declared in the private part, if an abstract type is involved.
2803 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): In Ada2012,
2804 reject a generic function that returns an abstract type.
2805 * exp_ch5.adb (Expand_Simple_Function_Return): in Ada2012, if a
2806 function has a controlling access result, check that the tag of the
2807 return value matches the designated type of the return expression.
2809 2010-10-07 Robert Dewar <dewar@adacore.com>
2811 * par-ch6.adb: Fix error in handling of parametrized expressions.
2812 * par-ch4.adb (P_Name): Allow qualified expression as name in Ada 2012
2814 (P_Simple_Expression): Better message for qualified expression prefix
2815 * s-crc32.adb: Minor reformatting.
2816 * exp_intr.adb (Expand_Unc_Deallocation): Remove test for empty
2817 storage pool (this test is moved to Sem_Intr).
2818 * sem_intr.adb (Check_Intrinsic_Call): Add check for deallocation from
2819 empty storage pool, moved here from Exp_Intr and made into error.
2820 (Check_Intrinsic_Call): Remove assumption in generating not-null free
2821 warning that the name of the instantiation is Free.
2822 * sinput.adb (Tree_Read): Document use of illegal free call allowed in
2824 * types.ads: Remove storage size clauses from big types (since we may
2825 need to do deallocations, which are now illegal for empty pools).
2827 2010-10-07 Sergey Rybin <rybin@adacore.com>
2829 * gnat_ugn.texi: Add missing word.
2831 2010-10-07 Robert Dewar <dewar@adacore.com>
2833 * exp_util.adb (Insert_Actions): Add handling of
2834 N_Parametrized_Expression.
2835 * par-ch6.adb (P_Subprogram): Add parsing of parametrized expression
2836 * sem.adb: Add entry for N_Parametrized_Expression
2837 * sem_ch6.adb (Analyze_Parametrized_Expression): New procedure
2838 * sem_ch6.ads (Analyze_Parametrized_Expression): New procedure
2839 * sinfo.ads, sinfo.adb: Add N_Parametrized_Expression
2840 * sprint.adb (Sprint_Node): Add handling for N_Parametrized_Expression
2841 * par-ch4.adb: Minor reformatting.
2843 2010-10-07 Robert Dewar <dewar@adacore.com>
2845 * scng.adb (Skip_Other_Format_Characters): New procedure
2846 (Start_Of_Wide_Character): New procedure
2847 (Scan): Use Start_Of_Wide_Character where appropriate
2848 (Scan): Improve error message for other_format chars in identifier
2849 (Scan): Allow other_format chars between tokens
2851 2010-10-07 Javier Miranda <miranda@adacore.com>
2853 * exp_util.adb (Safe_Prefixed_Reference): When removing side effects,
2854 Add missing support for explicit dereferences.
2856 2010-10-07 Robert Dewar <dewar@adacore.com>
2858 * par-ch10.adb, par-ch3.adb, par.adb: Minor reformatting.
2860 2010-10-07 Robert Dewar <dewar@adacore.com>
2862 * exp_disp.adb, exp_dist.adb, exp_util.ads, exp_util.adb,
2863 exp_ch11.adb: Rename Full_Qualified_Name to Fully_Qualified_Name_String
2864 * sem_util.adb, sem_util.ads (Full_Qualified_Name): Moved to
2865 Exp_Util.Fully_Qualified_Name_String.
2867 2010-10-07 Robert Dewar <dewar@adacore.com>
2869 * rtsfind.ads: Add entry for Ada.Real_Time.Timing_Events.Set_Handler
2870 * sem_res.adb (Resolve_Call): A call to
2871 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
2872 No_Relative_Delay (AI-0211).
2874 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2876 * sem_ch10.adb: Small change in error message.
2878 2010-10-07 Robert Dewar <dewar@adacore.com>
2880 * tbuild.ads: Minor reformatting.
2882 2010-10-07 Robert Dewar <dewar@adacore.com>
2884 * gnatcmd.adb, make.adb, prj-nmsc.adb, sem_elab.adb: Minor reformatting
2886 2010-10-07 Arnaud Charlet <charlet@adacore.com>
2888 * exp_ch11.adb (Expand_N_Exception_Declaration): Update comments.
2890 2010-10-07 Robert Dewar <dewar@adacore.com>
2892 * sem_res.adb: Minor reformatting
2894 2010-10-07 Olivier Ramonat <ramonat@adacore.com>
2896 * gnat_ugn.texi: Minor editing.
2897 * opt.ads: Document that scripts rely on specific formats in opt.ads
2899 2010-10-07 Robert Dewar <dewar@adacore.com>
2901 * a-wichun.ads, a-wichun.adb (To_Lower_Case): New function
2902 (To_Upper_Case): Fix to be inverse of To_Lower_Case
2903 * a-zchuni.ads, a-zchuni.adb (To_Lower_Case): New function
2904 (To_Upper_Case): Fix to be inverse of To_Lower_Case
2906 2010-10-07 Robert Dewar <dewar@adacore.com>
2908 * a-wichha.adb, a-wichha.ads, a-zchhan.adb, a-zchhan.ads: New file.
2909 * impunit.adb: Add entries for a-wichha/a-zchhan
2910 * Makefile.rtl: Add entries for a-wichha/a-zchhan
2912 2010-10-07 Vincent Celier <celier@adacore.com>
2914 * make.adb (Check): Call Check_Source_Info_In_ALI with Project_Tree
2915 * makeutl.adb (Check_Source_Info_In_ALI): If there is at least one
2916 replaced source, check that none of the replaced sources are in the
2918 * makeutl.ads (Check_Source_Info_In_ALI): New parameter Tree
2919 * prj-nmsc.adb (Remove_Source): New parameter Tree. If the source is
2920 replaced with a source with a different file name, put it in the hash
2921 table Replaced_Sources.
2922 (Add_Source): Call Remove_Source with Data.Tree. If there is at least
2923 one replaced source, check if it has the same file name as the current
2924 source; if it has, remove it from the hash table Replaced_Sources.
2925 * prj.adb (Reset): Reset hash table Tree.Replaced_Sources
2926 * prj.ads (Replaced_Source_HTable): New hash table
2927 (Project_Tree_Data): New components Replaced_Sources and
2928 Replaced_Source_Number.
2930 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2932 * sem_elab.adb (Check_A_Call): After inserting elaboration check, set
2933 proper flag to prevent a double elaboration check on the same call.
2934 * exp_util.adb (Insert_Actions): If the enclosing node is an
2935 Expression_With_Actions and it has been analyzed already, find
2936 insertion point further up in the tree.
2938 2010-10-07 Hristian Kirtchev <kirtchev@adacore.com>
2940 * sem_ch13.adb (Analyze_Record_Representation_Clause): Alphabetize all
2941 local variables. Remove the general restriction which prohibits the
2942 application of record rep clauses to Unchecked_Union types. Add Ada
2943 2012 check to detect improper naming of an Unchecked_Union
2944 discriminant in record rep clause.
2945 * sem_prag.adb: Add with and use clause for Exp_Ch7.
2946 (Analyze_Pragma): Unchecked_Union case: Propagate the Unchecked_Union
2947 type to all invocations of Check_Component and Check_Variant.
2948 (Check_Component): Add formal parameters UU_Typ and In_Variant_Part.
2949 Rewritten. Add Ada 2012 check to detect improper use of formal
2950 private types and private extensions as component types of an
2951 Unchecked_Union declared inside a generic body.
2952 (Check_Variant): Add formal parameter UU_Typ. Propagate the
2953 Unchecked_Union type to all calls of Check_Component. Signal that the
2954 current component comes from the variant part of an Unchecked_Union
2956 (Inside_Generic_Body): New routine.
2958 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2960 * exp_ch4.adb (Expand_Composite_Equality): When looking for a primitive
2961 equality operation for a record component, verify that both formals
2962 have the same type, and the result type is boolean.
2964 2010-10-07 Vincent Celier <celier@adacore.com>
2966 * gnatcmd.adb (Check_Files): When looking for the .ci file for a
2967 binder generated file, look for both b~xxx and b__xxx as gprbuild
2968 always uses b__ as the prefix of such files.
2970 2010-10-07 Thomas Quinot <quinot@adacore.com>
2972 * sem_res.adb: Minor reformatting.
2974 2010-10-07 Arnaud Charlet <charlet@adacore.com>
2976 * debug.adb: Update -gnatd.J documentation.
2978 2010-10-07 Robert Dewar <dewar@adacore.com>
2980 * gnat_rm.texi: Document handling of invalid values
2981 * s-utf_32.ads, s-utf_32.adb (UTF_To_Lower_Case): Fix implementation
2983 (UTF_To_Upper_Case): New function.
2985 2010-10-07 Robert Dewar <dewar@adacore.com>
2987 * sem_attr.adb: Minor reformatting.
2988 * einfo.ads, einfo.adb (Is_Ada_2012_Only): New flag
2989 * itypes.adb (Create_Null_Excluding_Itype): Set Is_Ada_2012_Only flag
2991 * lib-xref.adb (Generate_Reference): Warn on use of Ada 2012 entity in
2993 * opt.ads (Warn_On_Ada_2012_Compatibility): New flag
2994 * sem_ch3.adb (Analye_Subtype_Declaration): Inherit Is_Ada_2012_Only
2995 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Is_Ada_2012_Only
2997 * sem_prag.adb (Analyze_Pragma, case Ada_12/Ada_2012): Allow form with
2999 * sem_type.adb (Disambiguate): Deal with Is_Ada_2012_Only.
3000 * sem_warn.adb (Warn_On_Ada_2012_Compatibility): New flag, treated
3003 2010-10-07 Javier Miranda <miranda@adacore.com>
3005 * a-tags.ads: Use new support for pragma Ada_2012 with function
3008 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3010 * par-ch5.adb (P_Sequence_Of_Statements): In Ada2012 a label can end a
3011 sequence of statements.
3013 2010-10-07 Vincent Celier <celier@adacore.com>
3015 * gnatcmd.adb (Check_Files): Only add a .ci files if it exists
3017 2010-10-07 Javier Miranda <miranda@adacore.com>
3019 * a-tags.ads, a-tags.adb (Type_Is_Abstract): New subprogram.
3020 * rtsfind.ads (RE_Type_Is_Abstract): New entity.
3021 * exp_disp.adb (Make_DT): Initialize TSD component Type_Is_Abstract.
3023 2010-10-07 Arnaud Charlet <charlet@adacore.com>
3025 * sem_ch12.adb (Mark_Context): Removed, no longer needed.
3026 (Analyze_Package_Instantiation): No longer analyze systematically a
3027 generic body in CodePeer mode.
3028 * freeze.adb, sem_attr.adb: Update comments.
3030 2010-10-05 Robert Dewar <dewar@adacore.com>
3032 * par-ch5.adb (Test_Statement_Required): Allow all pragmas in Ada 2012
3035 2010-10-05 Pascal Obry <obry@adacore.com>
3037 * gnat_rm.texi: Fix typo.
3039 2010-10-05 Arnaud Charlet <charlet@adacore.com>
3041 * gnat_ugn.texi: Add note about identifiers with same name and
3044 2010-10-05 Robert Dewar <dewar@adacore.com>
3046 * sem_ch4.adb: Minor reformatting.
3047 * a-direct.ads: Minor comment update.
3049 2010-10-05 Javier Miranda <miranda@adacore.com>
3051 * sem_ch3.adb (Add_Internal_Interface_Entities): Removing code that is
3052 no longer required after change in New_Overloaded_Entity.
3053 * sem_ch6.adb (New_Overloaded_Entity): Code reorganization to isolate
3054 the fragment of code that handles derivations of interface primitives.
3055 Add missing dependence on global variable Inside_Freezing_Actions to
3056 ensure the correct management of internal interface entities.
3057 * sem_ch13.adb (Analyze_Freeze_Entity): Add missing increase/decrease
3058 of the global variable Inside_Freezing_Actions to ensure that internal
3059 interface entities are well handled by New_Overloaded_Entity.
3060 * sem_disp.adb (Find_Primitive_Covering_Interface): Add documentation
3061 and complete the algorithm to catch hidden primitives derived of
3062 private type that covers the interface.
3063 * sem_disp.ads (Find_Primitive_Covering_Interface): Add missing
3066 2010-10-05 Robert Dewar <dewar@adacore.com>
3068 * prj-util.adb, prj-util.ads, prj.ads, s-vxwext-rtp.adb, sem_ch4.adb,
3069 sem_ch7.adb, sem_res.adb, sem_type.adb: Minor reformatting.
3070 Minor code reorganization (use Nkind_In).
3072 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3074 * sem_ch10.adb (Analyze_Task_Body_Stub): Diagnose duplicate stub for
3077 2010-10-05 Vincent Celier <celier@adacore.com>
3079 * gnatbind.adb: If the main library file is not for a suitable main
3080 program, change the error message.
3082 2010-10-05 Vincent Celier <celier@adacore.com>
3084 * a-direct.ads: Minor spelling error fixes in comments.
3085 * gnat_rm.texi: Add three entries in "Implementation Defined
3086 Characteristics" for the interpretations of the Form parameters in
3089 2010-10-05 Robert Dewar <dewar@adacore.com>
3091 * exp_ch3.adb, exp_ch5.adb, exp_disp.adb, exp_dist.adb, gnatlink.adb,
3092 makeutl.adb, par-ch6.adb, prj-dect.adb, prj-env.adb, prj-env.ads,
3093 prj-ext.adb, prj-nmsc.adb, prj-part.adb, prj-pp.ads: Minor code
3097 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3099 * sem_res.adb (Check_Parameterless_Call): If the prefix of 'Address is
3100 an explicit dereference of an access to function, the prefix is not
3101 interpreted as a parameterless call.
3103 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3105 * exp_attr.adb: For 'Read and 'Write, use full view of base type if
3108 2010-10-05 Vincent Celier <celier@adacore.com>
3110 * make.adb (Switches_Of): Allow wild cards in index of attributes
3112 * prj-util.adb (Value_Of): When Allow_Wildcards is True, use the index
3113 of the associative array as a glob regular expression.
3114 * prj-util.ads (Value_Of (Index, In_Array)): New Boolean parameter
3115 Allow_Wildcards, defaulted to False.
3116 (Value_Of (Name, Attribute_Or_Array_Name)): Ditto
3117 * projects.texi: Document that attribute Switches (<file name>) may
3118 use wild cards in the index.
3120 2010-10-05 Robert Dewar <dewar@adacore.com>
3122 * a-direct.adb, a-direct.ads, back_end.adb, checks.adb,
3123 einfo.adb: Minor reformatting.
3124 * debug.adb: Remove obsolete documentation for d.Z flag.
3126 2010-10-05 Vincent Celier <celier@adacore.com>
3128 * vms_data.ads: Add VMS qualifier /SRC_INFO= corresponding to gnatmake
3129 switch --create-info-file=.
3130 * gnat_ugn.texi: Add documentation for new gnatmake switch
3133 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3135 * sem_ch3.adb: Do not elaborate type definition if syntax error.
3137 2010-10-05 Javier Miranda <miranda@adacore.com>
3139 * sprint.adb (Sprint_Node_Actual): Improve output of subprogram bodies
3140 to generate the full-qualified names of its corresponding spec.
3141 This facilitates locating the corresponing body when reading
3144 2010-10-05 Thomas Quinot <quinot@adacore.com>
3146 * exp_dist.adb (Make_Helper_Function_Name): For a tagged type, use
3147 canonical name without serial number only if the helper is becoming a
3148 primitive of the type.
3150 2010-10-05 Javier Miranda <miranda@adacore.com>
3152 * exp_disp.adb (Make_DT): Minor code reorganization.
3154 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3156 * par-ch6.adb: improve recovery with extra paren in function spec.
3158 2010-10-05 Quentin Ochem <ochem@adacore.com>
3160 * prj-tree.ads: Project_Path is now aliased.
3162 2010-10-05 Thomas Quinot <quinot@adacore.com>
3164 * checks.adb: Minor reformatting.
3166 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
3168 * mlib-tgt-specific-mingw.adb (No_Argument_List): Delete.
3169 (Shared_Libgcc): New aliased variable.
3170 (Shared_Libgcc_Switch): New constant.
3171 (Build_Dynamic_Library): Pass Shared_Libgcc_Switch to the compiler
3172 * gcc-interface/Makefile.in (gnatlib-shared-win32): Pass -shared-libgcc
3174 * gcc-interface/Make-lang.in: Update dependencies.
3176 2010-10-05 Vincent Celier <celier@adacore.com>
3178 * prj-part.adb (Parse_Simple_Project): When checking if a child project
3179 imports its parent project, also look in projects being extended by
3182 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
3184 * gnat_ugn.texi: Adjust instructions in G.10 Building DLLs with GNAT.
3186 2010-10-05 Javier Miranda <miranda@adacore.com>
3188 * exp_cg.adb (Slot_Number): Add support to handle aliased entities.
3189 (Generate_CG_Output): Switch -gnatd.Z is no longer needed to
3190 activate this output.
3192 2010-10-05 Arnaud Charlet <charlet@adacore.com>
3194 * back_end.adb (Call_Back_End): Generate an error message when scil
3195 generation is enabled, and no scil back-end (by default) is available.
3197 2010-10-05 Javier Miranda <miranda@adacore.com>
3199 * debug.adb: Update documentation since -gnatd.Z is no longer required
3200 to generate the call-graph information.
3202 2010-10-05 Javier Miranda <miranda@adacore.com>
3204 * exp_ch5.adb (Expand_Simple_Function_Return): Rewrite expansion of a
3205 runtime access check by an equivalent expansion that causes
3206 no problems in the VM backend. The original expansion was
3207 not good for the VM backends because when Tagged_Type_Expansion
3208 is disabled the attribute Access_Disp_Table is not available.
3210 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3212 * sem_type.adb (Covers): In a dispatching context, T1 covers T2 if T2
3213 is class-wide and T1 is its specific type.
3215 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3217 * einfo.adb: Add guard to Is_String_Type to prevent cascaded errors.
3219 2010-10-05 Vincent Celier <celier@adacore.com>
3221 * back_end.ads: Minor spelling error correction.
3223 2010-10-05 Arnaud Charlet <charlet@adacore.com>
3225 * switch-c.adb, gnat1drv.adb (Scan_Front_End_Switches): Disable
3226 warnings when -gnatC is specified here so that warnings can be
3227 re-enabled explicitly.
3228 (Adjust_Global_Switches): No longer suppress warnings.
3230 2010-10-05 Vincent Celier <celier@adacore.com>
3232 * makeutl.adb: Minor reformatting.
3234 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3236 * sem_ch4.adb: add guard in Analyze_One_Call to prevent crash when a
3237 non-discrete type appears as an actual in a call.
3239 2010-10-05 Vincent Celier <celier@adacore.com>
3241 * make.adb (Scan_Make_Arg): Take into account new switch
3243 * makeusg.adb: Add line for new switch --source-info=file.
3244 * makeutl.ads (Source_Info_Option): New constant String for new builder
3246 * prj-conf.adb: Put subprograms in alphabetical order
3247 (Process_Project_And_Apply_Config): Read/write an eventual source info
3249 * prj-nmsc.adb (Look_For_Sources.Get_Sources_From_Source_Info): New
3251 (Look_For_Sources): If a source info file was successfully read, get
3252 the source data from the data read from the source info file.
3253 * prj-util.adb (Source_Info_Table): New table
3254 (Source_Info_Project_HTable): New hash table
3255 (Create): New procedure
3256 (Put (File), Put_Line): New procedures
3257 (Write_Source_Info_File): New procedure
3258 (Read_Source_Info_File): New procedure
3259 (Initialize): New procedure
3260 (Source_Info_Of): New procedure
3261 (Next): New procedure
3262 (Close): When file is an out file, fail if the buffer cannot be written
3263 or if the file cannot be close successfully.
3264 (Get_Line): Fail if file is an out file
3265 * prj-util.ads (Create): New procedure
3266 (Put (File), Put_Line): New procedures
3267 (Write_Source_Info_File): New procedure
3268 (Read_Source_Info_File): New procedure
3269 (Source_Info_Data): New record type
3270 (Source_Info_Iterator): New private type
3271 (Initialize): New procedure
3272 (Source_Info_Of): New procedure
3273 (Next): New procedure
3274 * prj.ads (Project_Tree_Data): New components Source_Info_File_Name and
3275 Source_Info_File_Exists.
3277 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3279 * exp_ch4.adb: Fix typo.
3281 2010-10-05 Thomas Quinot <quinot@adacore.com>
3283 * lib-writ.adb: Minor reformatting.
3285 2010-10-05 Javier Miranda <miranda@adacore.com>
3287 * sem_ch3.adb (Access_Definition): Remove useless code.
3289 2010-10-05 Emmanuel Briot <briot@adacore.com>
3291 * prj-env.adb, prj-env.ads (Set_Path): New subprogram.
3292 (Deep_Copy): Removed, not used.
3294 2010-10-05 Javier Miranda <miranda@adacore.com>
3296 * sem_ch3.adb (Add_Internal_Interface_Entities): Code reorganization:
3297 move code that searches in the list of primitives of a tagged type for
3298 the entity that will be overridden by user-defined routines.
3299 * sem_disp.adb (Find_Primitive_Covering_Interface): Move here code
3300 previously located in routine Add_Internal_Interface_Entities.
3301 * sem_disp.ads (Find_Primitive_Covering_Interface): Update docs.
3302 * sem_ch6.adb (New_Overloaded_Entity): Add missing check on
3303 availability of attribute Alias.
3305 2010-10-05 Ed Falis <falis@adacore.com>
3307 * s-taprop-vxworks.adb, s-osinte-vxworks.adb, s-osinte-vxworks.ads,
3308 s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.adb, s-vxwext-rtp.ads:
3309 Move definition of intContext to System.OS_Interface.
3310 Add necessary variants in System.VxWorks.Extensions.
3312 2010-10-05 Doug Rupp <rupp@adacore.com>
3314 * s-asthan-vms-alpha.adb: On VMS, a task using
3315 pragma AST_Entry exhibits a memory leak when the task terminates
3316 because the vector allocated for the AST interface is not freed. Fixed
3317 by making the vector a controlled type.
3319 2010-10-05 Emmanuel Briot <briot@adacore.com>
3321 * prj-nmsc.adb (Expand_Subdirectory_Pattern): Check that the prefix in
3322 a "**" pattern properly exists, and report an error otherwise.
3324 2010-10-05 Emmanuel Briot <briot@adacore.com>
3326 * prj-env.ads: Use GNAT.OS_Lib rather than System.OS_Lib.
3328 2010-10-05 Emmanuel Briot <briot@adacore.com>
3330 * prj-nmsc.adb, prj-err.adb (Expand_Subdirectory_Pattern): New
3332 Extract some code from Get_Directories, to share with the handling
3333 of aggregate projects (for the Project_Files attributes)
3335 2010-10-05 Emmanuel Briot <briot@adacore.com>
3337 * gnatcmd.adb, prj-proc.adb, prj-part.adb, prj-ext.adb, prj-ext.ads,
3338 switch-m.adb, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-env.adb,
3339 prj-env.ads, prj-tree.adb, prj-tree.ads (Project_Search_Path): New
3342 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
3344 * exp_ch5.adb (Make_Field_Expr): Revert previous change (removed).
3346 2010-10-05 Emmanuel Briot <briot@adacore.com>
3348 * prj-dect.adb, prj-nmsc.adb, prj-attr.adb, snames.ads-tmpl
3349 (Aggregate projects): added support for parsing aggregate projects.
3350 In particular, check the presence and value of the new attributes
3351 related to aggregate projects, ie Project_Files, Project_Path
3353 (Check_Attribute_Allowed, Check_Package_Allowed,
3354 Rename_Obsolescent_Attributes): new subprogram, extracting code
3355 from existing subprogram to keep their sizes smaller.
3356 (Check_Aggregate_Project, Check_Abstract_Project,
3357 Check_Missing_Sources): new subprograms
3358 (Check): remove comments that duplicated either the name of the
3359 following subprogram call, or the comment on that subprogram.
3360 * prj-part.adb (Check_Extending_All_Imports): New subprogram, extracted
3361 from Parse_Single_Project.
3362 (Check_Aggregate_Imports): new subprogram.
3364 2010-10-05 Vincent Celier <celier@adacore.com>
3366 * make.adb (Check): When compiling with -gnatc, recompile if the ALI
3367 file has not been generated for the current source, for example if it
3368 has been generated for the spec, but we are compiling the body.
3370 2010-10-05 Bob Duff <duff@adacore.com>
3372 * xgnatugn.adb: Remove unused procedure.
3374 2010-10-04 Vincent Celier <celier@adacore.com>
3376 * a-direct.adb (Copy_File): Interpret the Form parameter and call
3377 System.OS_Lib.Copy_File to do the work accordingly. Raise Use_Error if
3378 the Form parameter contains an incorrect value for field preserve= or
3380 * a-direct.ads (Create_Directory, Create_Path): Indicate that the Form
3381 parameter is ignored.
3382 (Copy_File): Indicate the interpretation of the Form parameter.
3384 2010-10-04 Vincent Celier <celier@adacore.com>
3386 * make.adb (Gnatmake): When there are no foreign languages declared and
3387 a main in attribute Main of the main project does not exist or is a
3388 source of another project, fail immediately before attempting
3391 2010-10-04 Javier Miranda <miranda@adacore.com>
3393 * exp_disp.ads (Convert_Tag_To_Interface): New function which must be
3394 used to convert a node referencing a tag to a class-wide interface
3396 * exp_disp.adb (Convert_Tag_To_Interface): New function.
3397 (Expand_Interface_Conversion): Replace invocation of
3398 Unchecked_Conversion by new function Convert_Tag_To_Interface.
3399 (Write_DT): Add support for null primitives.
3400 * exp_ch3.adb (Expand_N_Object_Declaration): For tagged type objects,
3401 cleanup code that handles interface conversions and avoid unchecked
3402 conversion of referenced tag components.
3403 * exp_ch5.adb (Expand_N_Assignment_Statement): Code cleanup. Avoid
3404 unrequired conversions when generating a dispatching call to _assign.
3405 * sprint.adb (Write_Itype): Fix wrong output of not null access itypes.
3407 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3409 * exp_ch4.adb (Expand_N_Op_Not): Handle properly both operands when the
3410 parent is a binary boolean operation and the operand is an unpacked
3412 (Build_Boolean_Array_Proc_Call): If the operands are both negations,
3413 the operands of the rewritten node are the operands of the negations,
3414 not the negations themselves.
3416 2010-10-04 Robert Dewar <dewar@adacore.com>
3418 * sem_ch13.adb (Set_Biased): New procedure, now used throughout, adds
3419 name of entity to biased warning msg.
3420 (Analyze_Enumeration_Representation_Clause): Remove attempt to use
3421 biased rep (wrong and never worked anyway).
3423 2010-10-04 Arnaud Charlet <charlet@adacore.com>
3425 * sem_elab.adb: Minor reformatting.
3427 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3429 * exp_ch4.adb (Expand_N_Null): Handle properly the case of a subtype of
3430 an access_to_protected subprogram type, and convert null value into
3431 corresponding aggregate.
3433 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3435 * gnat_ugn.texi: Clarify first point of 7.1.5 about pragma Inline.
3437 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3439 * make.adb (Scan_Make_Arg): Pass -Oxxx switches to the linker as well.
3440 * gnatlink.adb (Gnatlink): Filter out -Oxxx switches for CLI, RTX and
3443 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3445 * sem_ch4.adb (Analyze_Indexed_Component_Form): Remove redundant test
3446 for N_Operator_Symbol.
3447 (Indicate_Name_And_Type): Likewise.
3448 * sem_ch8.adb (Analyze_Subprogram_Renaming): Likewise.
3449 * sem_res.adb (Resolve): Likewise.
3450 * sem_type.adb (Add_One_Interp): Likewise.
3451 (Disambiguate): Likewise.
3453 2010-10-04 Vincent Celier <celier@adacore.com>
3455 * osint.adb (Read_Library_Info_From_Full): If object timestamp is less
3456 than ALI file timestamp, return null.
3458 2010-10-04 Vincent Celier <celier@adacore.com>
3460 * prj-makr.adb (Finalize): Invoke Pretty_Print with Max_Length of 79.
3461 * prj-pp.adb (Pretty_Print): New parameter Max_Line_Length, that
3462 replaces global constant with the same name. When a line is too long,
3463 indent properly the next continuation line.
3464 * prj-pp.ads (Pretty_Print): New parameter Max_Line_Length with a range
3465 from 50 to 255, defaulted to 255, to indicate the maximum length of
3466 lines in the project file.
3468 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3470 * sem_ch7.adb (Analyze_Package_Body_Helper) <Has_Referencer>: New
3471 Check_Subprogram_Ref function and Check_Subprogram_Refs instantiation
3472 of Traverse_Func on it to look for subprogram references in a body.
3473 Call Check_Subprogram_Refs on the body of inlined subprograms at the
3474 outer level and keep clearing the Is_Public flag of subprograms as long
3475 as it returns OK. Do not look at anything else than subprograms once
3476 an inlined subprogram has been seen.
3478 2010-10-04 Javier Miranda <miranda@adacore.com>
3480 * exp_cg.adb (Expand_N_Assignment_Statement): Restore tag check when
3481 the target object is an interface.
3482 * sem_disp.adb (Propagate_Tag): If the controlling argument is an
3483 interface type then we generate an implicit conversion to force
3484 displacement of the pointer to the object to reference the secondary
3485 dispatch table associated with the interface.
3487 2010-10-04 Robert Dewar <dewar@adacore.com>
3489 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Set
3490 Enumeration_Rep_Expr to point to the literal, not the identifier.
3491 (Analyze_Enumeration_Representation_Clause): Improve error message for
3492 size too small for enum rep value
3493 (Analyze_Enumeration_Representation_Clause): Fix size test to use
3494 proper size (RM_Size, not Esize).
3496 2010-10-04 Robert Dewar <dewar@adacore.com>
3498 * s-taprop-vxworks.adb, sem_res.adb: Minor reformatting.
3500 2010-10-04 Javier Miranda <miranda@adacore.com>
3502 * exp_cg.adb (Write_Call_Info): Code clean up.
3504 2010-10-04 Arnaud Charlet <charlet@adacore.com>
3506 * s-taprop-mingw.adb (Create_Task): Initialize Thread_Id field to 0.
3508 2010-10-04 Robert Dewar <dewar@adacore.com>
3510 * exp_cg.adb: Minor code reorganization
3512 * exp_ch5.adb, prj-nmsc.adb: Minor reformatting.
3514 2010-10-04 Bob Duff <duff@adacore.com>
3516 * sem_res.adb (Resolve_Type_Conversion): If a type conversion is needed
3517 to make a qualified expression into a name (syntax-wise), then do not
3518 consider it redundant.
3520 2010-10-04 Thomas Quinot <quinot@adacore.com>
3522 * sem_warn.ads: Fix typo.
3524 2010-10-04 Javier Miranda <miranda@adacore.com>
3526 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Handle suffix in
3528 (Write_Call_Info): Add missing support for renamed primitives.
3530 2010-10-04 Thomas Quinot <quinot@adacore.com>
3532 * exp_ch5.adb (Make_Field_Expr): New subprogram, to factor duplicated
3533 code between Make_Component_List_Assign and Make_Field_Assign.
3535 2010-10-04 Vincent Celier <celier@adacore.com>
3537 * prj-nmsc.adb (Get_Directories): For non extending projects that
3538 declare that they have no sources, do not create a non existing object
3539 or exec directory if builder switch -p is used.
3541 2010-10-04 Sergey Rybin <rybin@adacore.com>
3543 * gnat_ugn.texi (gnatcheck): Change the description of the report file
3546 2010-10-04 Ed Falis <falis@adacore.com>
3548 * s-taprop-vxworks.adb (Is_Task_Context): Import VxWorks intContext to
3549 determine whether Set_True is called from a task or an ISR.
3550 (Set_True): test for being in a task context before trying to
3551 dereference Defer_Abort or Undefer_Abort.
3553 2010-10-04 Robert Dewar <dewar@adacore.com>
3555 * sem_res.adb, sinput-l.adb: Minor reformatting.
3557 2010-10-04 Hristian Kirtchev <kirtchev@adacore.com>
3559 * exp_ch5.adb (Expand_N_Assignment_Statement): Do not generate a tag
3560 check when the target object is an interface since the expression of
3561 the right hand side must only cover the interface.
3563 2010-10-04 Vincent Celier <celier@adacore.com>
3565 * frontend.adb: Set Lib.Parsing_Main_Extended_Source to True before
3566 loading the main source, so that if it is preprocessed and -gnateG is
3567 used, the preprocessed file is written.
3568 * lib.ads (Analysing_Subunit_Of_Main): New global variable to indicate
3569 if a subunit is from the main unit when it is loaded.
3570 * sem_ch10.adb (Analyze_Proper_Body): Set Lib.Analysing_Subunit_Of_Main
3571 to True before loading a subunit.
3572 * sem_ch12.adb (Copy_Generic_Node): Set Lib.Analysing_Subunit_Of_Main
3573 to True when the main is a generic unit before loading one of its
3575 * sinput-l.adb (Load_File): If -gnateG is used, write the preprocessed
3576 file only for the main unit (spec, body and subunits).
3578 2010-10-04 Vincent Celier <celier@adacore.com>
3580 * sinput-l.adb (Load_File): Do not fail when switch -gnateG is
3581 specified and the processed file cannot be written. Just issue a
3582 warning and continue.
3584 2010-10-04 Thomas Quinot <quinot@adacore.com>
3586 * sem_res.adb: Minor reformatting.
3588 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3590 * sem_ch8.adb (Analyze_Subprogram_Renaming): If the renamed operation
3591 is an overridden inherited operation, the desired operation is the
3592 overriding one, which is the alias of the visible one.
3594 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3596 * sem_ch6.adb (Find_Corresponding_Spec): Check that the wrapper body is
3597 present before deleting from the tree, when an inherited function with
3598 a controlling result that returns a null extension is overridden by a
3599 later declaration or body.
3601 2010-10-04 Gary Dismukes <dismukes@adacore.com>
3603 * checks.adb: Update comment.
3605 2010-09-30 Joseph Myers <joseph@codesourcery.com>
3607 * gcc-interface/misc.c (optimize, optimize_size): Undefine as macros
3608 and define as variables.
3609 (gnat_post_options): Set optimize and optimize_size variables.
3611 2010-09-29 Joel Sherrill <joel.sherrill@oarcorp.com>
3613 * g-socket.adb: Move pragma to disable warnings in case multiple errnos
3614 are not defined by target.
3616 2010-09-29 Eric Botcazou <ebotcazou@adacore.com>
3618 * gcc-interface/utils.c (handle_leaf_attribute): Fix long line.
3620 2010-09-28 Richard Henderson <rth@redhat.com>
3622 * gcc-interface/misc.c (gnat_eh_personality): Use
3623 targetm.except_unwind_info.
3625 2010-09-28 Jan Hubicka <jh@suse.cz>
3627 * gcc-interface/utils.c (handle_leaf_attribute): New function.
3628 (gnat_internal_attribute_tables): Add leaf.
3630 2010-09-22 Joseph Myers <joseph@codesourcery.com>
3632 * gcc-interface/lang.opt (-all-warnings, -include-barrier,
3633 -include-directory, -include-directory=, -no-standard-includes,
3634 -no-standard-libraries): New.
3636 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
3638 * gcc-interface/decl.c (gnat_to_gnu_entity): Replace calls to
3639 build_array_type with calls to build_nonshared_array_type.
3640 (substitute_in_type): Likewise.
3641 * gcc-interface/misc.c (LANG_HOOKS_HASH_TYPES): Delete.
3642 (LANG_HOOKS_TYPE_HASH_EQ): Define.
3643 (gnat_post_options): Add 'static' keyword.
3644 (gnat_type_hash_eq): New static function.
3645 * gcc-interface/utils.c (fntype_same_flags_p): New function.
3646 (create_subprog_type): Call it.
3647 (create_index_type): Call build_nonshared_range_type and tidy up.
3648 (create_range_type): Likewise.
3649 * gcc-interface/gigi.h (fntype_same_flags_p): Declare.
3651 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3653 * gcc-interface/trans.c (gnat_pushdecl): Do not do anything special
3655 (end_subprog_body): If the body is a BIND_EXPR, make its associated
3656 block the top-level one.
3657 (build_function_stub): Build a statement group for the whole function.
3658 * gcc-interface/utils.c (Subprogram_Body_to_gnu): If copy-in/copy-out
3659 is used, create the enclosing block early and process first the OUT
3662 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3664 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>: Do
3665 not generate debug info for individual enumerators.
3667 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3669 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Use record
3670 type instead of enumeral type as the dummy type built for the template
3671 type of fat pointers.
3673 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3675 * gcc-interface/gigi.h (get_elaboration_procedure): Declare.
3676 (gnat_zaplevel): Likewise.
3677 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force global
3678 binding level for an external constant.
3679 <E_Constant>: Force the local context and create a fake scope before
3680 translating the defining expression of an external constant.
3681 <object>: Treat external constants at the global level explicitly for
3682 renaming declarations.
3683 (elaborate_expression_1): Force the variable to be static if the
3684 expression is global.
3685 * gcc-interface/trans.c (get_elaboration_procedure): New function.
3686 (call_to_gnu): Use it.
3687 (gnat_to_gnu): Likewise.
3688 <N_Object_Declaration>: Do not test Is_Public to force the creation of
3689 an initialization variable.
3690 (add_decl_expr): Discard the statement if the declaration is external.
3691 * gcc-interface/utils.c (gnat_pushdecl): Do not put the declaration in
3692 the current block if it is external.
3693 (create_var_decl_1): Do not test Is_Public to set TREE_STATIC.
3694 (gnat_zaplevel): New global function.
3696 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3698 * gcc-interface/decl.c (gnat_to_gnu_entity): Explicitly test _LEVEL
3699 variables against zero in all cases.
3700 (rest_of_type_decl_compilation): Likewise.
3701 * gcc-interface/trans.c (gigi): Pass properly typed constants to
3703 (call_to_gnu): Fix formatting.
3704 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
3705 (Exception_Handler_to_gnu_zcx): Likewise.
3706 (gnat_to_gnu) <N_Object_Declaration>: Short-circuit handling of
3708 expressions in presence of a freeze node.
3710 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3712 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Look into
3713 expressions for external constants that are aggregates.
3714 * gcc-interface/utils2.c (build_simple_component_ref): If the field
3715 is an inherited component in an extension, look through the extension.
3717 2010-09-10 Vincent Celier <celier@adacore.com>
3719 * projects.texi: Add documentation for package extensions
3720 Add some documentation for attributes Leading_Library_Options and
3721 Linker'Leading_Switches.
3723 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3725 * exp_util.adb (Expand_Subtype_From_Expression): When expansion is
3726 disabled, compute subtype for all string types.
3728 2010-09-10 Robert Dewar <dewar@adacore.com>
3730 * gnat_ugn.texi: Add documentation for -gnatw.s/S
3731 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
3732 Component_Size): Implement warning on overriden size clause.
3733 (Analyze_Record_Representation_Clause): Implement warning on overriden
3735 * sem_warn.ads, sem_warn.adb (Warn_On_Overridden_Size): New flag
3737 * ug_words: Add entries for -gnatw.s/S.
3738 * vms_data.ads, usage.adb: Add line for -gnatw.s/-gnatw.S.
3739 * gcc-interface/Make-lang.in: Update dependencies.
3741 2010-09-10 Vincent Celier <celier@adacore.com>
3743 * prj-dect.adb (Parse_Package_Declaration): Allow a package to extend
3744 a package with the same name from an imported or extended project.
3745 * prj-proc.adb (Process_Declarative_Items): Process package extensions
3747 2010-09-10 Bob Duff <duff@adacore.com>
3749 * exp_ch6.adb (Expand_Call): Do not perform a null_exclusion check on
3752 2010-09-10 Robert Dewar <dewar@adacore.com>
3754 * sem.adb: Minor reformatting.
3756 2010-09-10 Bob Duff <duff@adacore.com>
3758 * s-os_lib.ads, g-expect.ads: Add comments.
3760 2010-09-10 Robert Dewar <dewar@adacore.com>
3762 * exp_ch5.adb: Minor reformatting.
3764 2010-09-10 Thomas Quinot <quinot@adacore.com>
3766 * scos.ads: Add comments.
3768 2010-09-10 Vincent Celier <celier@adacore.com>
3770 * gnatcmd.adb (Get_Closure): Remove useless invocation of Close.
3772 2010-09-10 Hristian Kirtchev <kirtchev@adacore.com>
3774 * exp_ch7.adb, exp_ch6.adb (Expand_Call): Establish a transient scope
3775 for a controlled build-in-place function call which appears in an
3776 anonymous context. The transient scope ensures that the intermediate
3777 function result is cleaned up after the master is left.
3778 (Make_Build_In_Place_Call_In_Anonymous_Context): Remove the creation
3779 of the transient scope. This is now done in Exand_Call which covers
3780 additional cases other than secondary stack release.
3782 2010-09-10 Arnaud Charlet <charlet@adacore.com>
3784 * sem.adb (Do_Unit_And_Dependents): Add guard.
3786 2010-09-10 Robert Dewar <dewar@adacore.com>
3788 * exp_ch5.adb: Update comments.
3789 * exp_dist.adb: Minor reformatting.
3791 2010-09-10 Robert Dewar <dewar@adacore.com>
3793 * sem_ch13.adb (Check_Record_Representation_Clause): Implement record
3795 * sem_warn.ads, sem_warn.adb (Warn_On_Record_Holes): New warning flag.
3796 * usage.adb: Add lines for -gnatw.h/H
3797 * gnat_ugn.texi: Add documentation for J519-010
3798 Warn on record holes/gaps
3799 * ug_words: Add entries for -gnatw.h/-gnatw.H
3800 * vms_data.ads: Add entries for [NO]AVOIDGAPS
3802 2010-09-10 Gary Dismukes <dismukes@adacore.com>
3804 * sem_ch6.adb: Update comment.
3806 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3808 * sem_ch3.adb (Build_Derived_Private_Type): Mark generated declaration
3809 of full view analyzed after analyzing the corresponding record
3810 declaration, to prevent spurious name conflicts with original
3813 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
3815 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): In the VM case,
3816 just issue a warning, but continue with the normal processing.
3818 2010-09-10 Robert Dewar <dewar@adacore.com>
3820 * exp_attr.adb, prj-nmsc.adb, sem_ch4.adb, sem_res.adb: Minor
3823 2010-09-10 Thomas Quinot <quinot@adacore.com>
3825 * exp_dist.adb (Build_From_Any_Call, Build_To_Any_Call,
3826 Build_TypeCode_Call): For a subtype inserted for the expansion of a
3827 generic actual type, go to the underlying type of the original actual
3830 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3832 * exp_ch5.adb (Expand_Assign_Array_Loop): In CodePeer mode, place a
3833 guard around the increment statement, to prevent an off-by-one-value
3834 on the last iteration.
3836 2010-09-10 Vincent Celier <celier@adacore.com>
3838 * sem_aggr.adb, exp_prag.adb, sem_ch3.adb, exp_attr.adb,
3839 sem_res.adb, sem_attr.adb, sem_elab.adb, sem_ch4.adb, exp_disp.adb,
3840 exp_aggr.adb, exp_dist.adb: Change all mentions of "at run-time" to
3841 "at run time" in comments and error/warning messages.
3843 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3845 * exp_cg.adb: Handle properly bodies without specs.
3847 2010-09-10 Emmanuel Briot <briot@adacore.com>
3849 * prj-nmsc.adb (Find_Source_Dirs): When a source directory is not
3850 present, and the user requested to either ignore this or display a
3851 warning (as opposed to an error), we still need to register the
3854 2010-09-10 Robert Dewar <dewar@adacore.com>
3856 * errout.adb: Remove tests of Parsing_Main_Subunit, since this test is
3857 now done in In_Extended_Main_Source_Unit.
3858 * errout.ads (Compiler_State[_Type]): Moved from Errout to Lib
3859 (Parsing_Main_Subunit): Moved from Errout to Lib and renamed
3860 as Parsing_Main_Extended_Source.
3861 * frontend.adb: Set Parsing_Main_Extended_Source True for parsing main
3863 * lib-load.adb (Load_Unit): Add PMES parameter
3864 Set PMES appropriately in all calls to Load_Unit
3865 * lib-load.ads (Load_Unit): Add PMES parameter
3866 * lib.adb (In_Extended_Main_Source_Unit): When called with
3867 Compiler_State set to Parsing, test new flag
3868 Compiling_Main_Extended_Source.
3869 * lib.ads (Compiler_State[_Type]): Moved from Errout to Lib
3870 (Parsing_Main_Subunit): Moved from Errout to Lib and renamed
3871 as Parsing_Main_Extended_Source
3872 * par-load.adb (Load): Set PMES properly in call to Load_Unit
3874 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3876 * exp_cg.adb: Use proper entity to handle overloads.
3877 * sem_res.adb (Check_Parameterless_Call): An operator node without
3878 actuals cannot be a call, and must be treated as a string.
3880 2010-09-10 Robert Dewar <dewar@adacore.com>
3882 * frontend.adb: Minor reformatting.
3884 2010-09-10 Robert Dewar <dewar@adacore.com>
3886 * par-ch4.adb (P_Conditional_Expression): Use P_Condition for condition
3887 * par-ch5.adb (P_Condition): Move from body to spec
3888 * par.adb (Ch5.P_Condition): Move from body to spec
3890 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3892 * exp_cg.adb (Write_Call_Info): If a type that has been registered in
3893 the call table is private, use its full view to generate information
3896 2010-09-10 Jose Ruiz <ruiz@adacore.com>
3898 * exp_cg.adb (Is_Predefined_Dispatching_Operation): When trying the
3899 pattern matching to detect predefined primitive operations take into
3900 account that there can be an extra suffix related to body-nested
3903 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3905 * s-pooglo.ads: Add overriding indicators.
3907 2010-09-10 Vincent Celier <celier@adacore.com>
3909 * vms_data.ads: Add new GNAT BIND qualifiers /32_MALLOC (for -H32) and
3910 /64_MALLOC (for -H64).
3912 2010-09-10 Robert Dewar <dewar@adacore.com>
3914 * errout.adb (Error_Msg_Internal): Test Parsing_Main_Subunit flag
3915 (Error_Msg_NW): Test Parsing_Main_Subunit flag
3916 * errout.ads (Parsing_Main_Subunit): New flag
3917 * lib-load.adb (Load_Unit): Set Parsing_Main_Subunit flag
3918 * par-ch6.adb: Minor style fix (remove redandant parentheses)
3919 * par-ch9.adb: Minor style fix (remove redundant parens)
3920 * par-load.adb: (Load): Deal with setting Parsing_Main_Subunit
3922 2010-09-10 Vincent Celier <celier@adacore.com>
3924 * make.adb (Create_Binder_Mapping_File): Remove procedure. Replaced by
3925 function of the same name in Makeutl.
3926 (Gnatmake): Call function Create_Binder_Mapping_File in Makeutl, instead
3927 of removed procedure when creating a binder mapping file.
3928 * makeutl.adb (Create_Binder_Mapping_File): New function. Was a
3930 * makeutl.ads (Create_Binder_Mapping_File): New function
3932 2010-09-10 Jose Ruiz <ruiz@adacore.com>
3934 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Add the "__" scope
3935 separator when trying the pattern matching to detect predefined
3936 primitive operations.
3938 2010-09-10 Robert Dewar <dewar@adacore.com>
3940 * bindgen.adb, atree.adb: Minor reformatting.
3942 2010-09-10 Ben Brosgol <brosgol@adacore.com>
3944 * ug_words, gnat_ugn.texi: Revised "Transitioning to 64-Bit GNAT for
3947 2010-09-10 Doug Rupp <rupp@adacore.com>
3949 * bindgen.adb: Minor comment fix for -H switch.
3951 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3953 * exp_cg.adb (Register_CG_Node): Determine enclosing subprogram or
3954 library unit now, by traversing tree before context is expanded.
3955 (Write_Call_Info): Use enclosing unit name directly.
3956 * exp_ch9.adb (Expand_N_Accept_Statement): Attach generated block to
3957 tree earlier, to ensure that subsequent declarations are analyzed in a
3958 connected structure.
3959 * exp_intr.adb (Expand_Unc_Deallocation): Ditto for generated statement
3962 2010-09-10 Robert Dewar <dewar@adacore.com>
3964 * symbols-processing-vms-alpha.adb: Minor reformatting.
3966 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
3968 * bindgen.adb (Gen_Adainit_Ada): In .NET, don't call
3969 __gnat_install_handler in case the binder is called with -n.
3971 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3973 * exp_ch6.adb (Make_Build_In_Place_In_Object_Declaration): Use proper
3974 sloc for renaming declaration and set Comes_From_Source properly to
3975 ensure that references are properly generated for an object declaration
3976 that is built in place.
3978 2010-09-10 Tristan Gingold <gingold@adacore.com>
3980 * symbols-processing-vms-alpha.adb: Allow gnatsym to work as a cross
3982 * gcc-interface/Make-lang.in: Install gnatsym when cross compiling.
3983 * gcc-interface/Makefile.in: gnat.hlp is now generated by
3986 2010-09-10 Bob Duff <duff@adacore.com>
3988 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): For things like ""X(J)
3989 := ...;", remove side effects from the right-hand side, because they
3990 might affect the value of the left-hand side, but the left-hand side is
3991 first READ (so we can do shifting and masking) and then written back,
3992 which would cause the side effects to be incorrectly overwritten.
3994 2010-09-10 Robert Dewar <dewar@adacore.com>
3996 * sem_ch4.adb: Minor reformatting.
3997 * exp_ch6.adb: Add comment on testing limited on full type
3998 * gnat_rm.texi: Add documentation on Pure_Function.
4000 2010-09-10 Vincent Celier <celier@adacore.com>
4002 * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
4003 as a source of another project and of another language.
4005 2010-09-10 Robert Dewar <dewar@adacore.com>
4007 * exp_ch3.adb (Expand_N_Object_Declaration): Defend against previous
4009 * freeze.adb (Check_Unsigned_Type): Ditto.
4010 * sem_aggr.adb (Resolve_Aggr_Expr): Ditto.
4011 * sem_ch3.adb (Convert_Scalar_Bounds): Ditto.
4012 (Set_Scalar_Range_For_Subtype): Ditto.
4013 * sem_eval.adb (Subtypes_Statically_Match): Ditto.
4015 2010-09-10 Robert Dewar <dewar@adacore.com>
4017 * repinfo.adb (List_Type_Info): List Small and Range for fixed-point
4019 * sprint.adb (Write_Ureal_With_Col_Check_Sloc): Use square brackets
4020 rather than parens for fixed constants.
4021 * sprint.ads: Use square brackets rather than parens for fixed constants
4022 * urealp.adb (UR_Write): Use square brackets rather than parens
4023 (UR_Write): Add Brackets argument
4024 (UR_Write): Add many more special cases to output literals
4025 * urealp.ads (UR_Write): Use square brackets rather than parens
4026 (UR_Write): Add Brackets argument
4028 2010-09-10 Robert Dewar <dewar@adacore.com>
4030 * sem_ch4.adb: Minor reformatting.
4032 2010-09-10 Richard Guenther <rguenther@suse.de>
4034 * gcc-interface/utils.c (create_index_type): Use build_range_type.
4036 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4038 * vms_cmds.ads: New.
4040 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
4042 * exp_dbug.ads: Mention enhanced encoding for array types.
4044 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
4046 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Size clause are
4047 unsupported in VM targets. Display a warning in this case.
4049 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4051 * sprint.adb (Sprint_Node_Actual, case N_Derived_Type_Definition): Do
4052 not reset Sloc when printing keyword "new".
4054 2010-09-10 Vincent Celier <celier@adacore.com>
4056 * gnatcmd.adb (GNATCmd): Put the command line in environment variable
4057 GNAT_DRIVER_COMMAND_LINE.
4059 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4061 * sem.adb (Do_Unit_And_Dependents): if Withed_Body is set on a context
4062 clause, process the body at once.
4064 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4066 * sem_res.adb (Resolve_Type_Conversion): Do not warn on a redundant
4067 conversion is the expression is a qualified expression used to
4068 disambiguate a function call.
4070 2010-09-10 Vincent Celier <celier@adacore.com>
4072 * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
4073 as a source of another project and of another language.
4075 2010-09-10 Robert Dewar <dewar@adacore.com>
4077 * prj-util.adb: Minor reformatting.
4079 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
4081 * exp_disp.adb: Minor reformatting.
4083 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4085 * sem_prag.adb (Analyze_Pragma): Ignore Inline_Always pragma in
4088 2010-09-10 Thomas Quinot <quinot@adacore.com>
4090 * sem_res.adb: Minor reformatting.
4091 * exp_ch9.adb, rtsfind.ads, exp_ch4.adb, exp_ch3.adb: Do not hardcode
4092 magic constants for task master levels (instead, reference
4093 named numbers from System.Tasking).
4095 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
4097 * gnatvsn.ads (Ver_Prefix): New constant string.
4098 * bindgen.adb (Gen_Output_File_Ada): Use it in lieu of hardcoded value.
4099 (Gen_Output_File_C): Likewise.
4100 * g-comver.adb (Ver_Prefix): Add cross-reference to Gnatvsn.Ver_Prefix
4103 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4105 * sem.adb (Walk_Library_Items): Do not traverse children of the main
4106 unit, to prevent spurious circularities in the walk order.
4107 (Depends_On_Main): Use elsewhere to prevent circularities when the body
4108 of an ancestor of the main unit depends on a child of the main unit.
4110 2010-09-10 Robert Dewar <dewar@adacore.com>
4112 * gnatlink.adb, prj-ext.adb, prj-util.adb, s-tporft.adb,
4113 sem_ch3.adb: Minor reformatting.
4115 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4117 * sem_ch3.adb (Derive_Subprograms): An interface primitive operation
4118 that is a renaming must be derived like any other primitive operation,
4119 the renamed operation is not relevant to the derivation.
4121 2010-09-10 Robert Dewar <dewar@adacore.com>
4123 * sem_aux.ads: Add comment for Is_Inherently_Limited_Type.
4124 * checks.adb: Minor reformatting.
4126 2010-09-10 Robert Dewar <dewar@adacore.com>
4128 * gnat_ugn.texi: Add section on intent of style checking options.
4130 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4132 * xref_lib.adb (Get_Full_Type): Fix handling of 'a' char.
4134 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4136 * sem_ch3.adb: Improve error message on derivation from class-wide type
4138 2010-09-10 Steve Baird <baird@adacore.com>
4140 * gnat1drv.adb (Adjust_Global_Switches): Enable Expression_With_Actions
4141 generation when Generate_SCIL is True.
4143 2010-09-10 Geert Bosch <bosch@adacore.com>
4145 * gnatlink.adb (Check_ Existing_Executable): New procedure for checking
4146 validity of executable name and removing any existing executable
4147 (Gnatlink): Call Check_Existing_Executable.
4149 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4151 * s-tporft.adb, s-taskin.ads (Register_Foreign_Thread): Move
4152 initialization of Task_Alternate_Stack here, cleaner since in case of
4153 ranvescar, Restricted_Ada_Task_Control_Block is not initialized
4156 2010-09-10 Thomas Quinot <quinot@adacore.com>
4158 * s-fileio.adb, a-dirval.adb: Minor reformatting.
4160 2010-09-10 Emmanuel Briot <briot@adacore.com>
4162 * prj-util.adb (Executable_Of): Fix CE when the project does not
4163 contain a Builder package.
4165 2010-09-10 Vincent Celier <celier@adacore.com>
4167 * prj-ext.adb (Initialize_Project_Path): Add <prefix>/lib/gpr/<target>
4168 to the project path, if Prefix and Target_Name are defined.
4169 * prj-tree.ads (Project_Node_Tree_Data): New component Target_Name
4171 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4173 * checks.adb (Ensure_Valid): If the expression is a boolean expression
4174 or short-circuit operation, do no emit a validity check: only the
4175 elementary operands of the expression need checking.
4177 2010-09-10 Ben Brosgol <brosgol@adacore.com>
4179 * gnat_rm.texi: Document Short_Descriptors.
4181 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4183 * s-taprop-linux.adb, s-taskin.ads (Task_Alternate_Stack): Default
4184 initialize to Null_Address.
4185 (Enter_Task): Do not set up an alternate stack for foreign threads.
4187 2010-09-10 Robert Dewar <dewar@adacore.com>
4189 * opt.adb (Short_Descriptors): New flag
4190 (Short_Descriptors_Config): New flag
4191 * opt.ads (Short_Descriptors): New flag
4192 (Short_Descriptors_Config): New flag
4193 * par-prag.adb: Add dummy entry for Short_Descriptors pragma
4194 * sem_prag.adb (Set_Mechanism_Value): Deal with Short_Descriptors.
4195 (Analyze_Pragma): Implement Short_Descriptors pragma
4196 * snames.ads-tmpl: Add entry for Short_Descriptors pragma
4198 2010-09-10 Emmanuel Briot <briot@adacore.com>
4200 * prj-util.adb, prj-util.ads (Executable_Of): Take into account the
4201 project's Executable_Suffix.
4203 2010-09-10 Robert Dewar <dewar@adacore.com>
4205 * g-pehage.ads: Minor reformatting
4207 * gnat_ugn.texi: Clarifying comment on -gnatyc
4208 * exp_ch6.adb (Expand_N_Subprogram_Body): Reset Is_Pure if limited
4211 2010-09-10 Tristan Gingold <gingold@adacore.com>
4213 * Make-generated.in (gnat.hlp): New rule.
4215 2010-09-10 Emmanuel Briot <briot@adacore.com>
4217 * prj-util.adb, prj-util.ads (Executable_Of): New parameter
4220 2010-09-10 Robert Dewar <dewar@adacore.com>
4222 * einfo.adb: Minor code cleanup: Add assertion to
4223 Set_Corresponding_Protected_Entry.
4225 2010-09-10 Bob Duff <duff@adacore.com>
4227 * g-pehage.ads, g-pehage.adb (Produce): Add a new flag to allow sending
4228 the output to standard output.
4230 2010-09-09 Vincent Celier <celier@adacore.com>
4232 * gnat_ugn.texi: Add documentation for new gnatmake switch
4234 * make.adb (Map_File): New global variable to store the value of switch
4236 (Gnatmake): Add switch -M to gnatlink if switch --create-map-file has
4238 (Scan_Make_Arg): Recognize switch --create-map-file
4239 * makeutl.ads (Create_Map_File_Switch): New constant string for new
4240 gnatmake and gprbuild switch --create-map-file.
4242 2010-09-09 Robert Dewar <dewar@adacore.com>
4244 * sinput-p.ads: Minor comment update.
4246 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4248 * s-tpobop.adb, s-taenca.adb (Wait_For_Completion_With_Timeout): Reset
4249 Entry_Call.State if needed so that the call is marked as cancelled by
4250 Check_Pending_Actions_For_Entry_Call.
4251 (Timed_Protected_Entry_Call): Adjust calls to Defer/Under_Abort, since
4252 this procedure may be called from a controlled operation
4253 (Initialize/Finalize).
4255 2010-09-09 Vadim Godunko <godunko@adacore.com>
4257 * impunit.adb: Correct spelling of package's name in the comment.
4259 2010-09-09 Robert Dewar <dewar@adacore.com>
4261 * gnatcmd.adb, gnatlink.adb, sem_ch12.adb, sem_eval.adb, sinput-p.adb:
4264 2010-09-09 Robert Dewar <dewar@adacore.com>
4266 * impunit.adb: Add entry for a-izteio.
4267 * checks.adb: Add comment.
4268 * debug.adb, exp_disp.adb: Minor reformatting.
4269 * exp_dbug.ads: Minor reformatting throughout (pack block comments).
4271 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4273 * sem_eval.adb (Is_Same_Value): Two occurrences of the same
4274 discriminant cannot be assumed to be the same value because they may
4275 refer to bounds of a component of two different instances of a
4278 2010-09-09 Gary Dismukes <dismukes@adacore.com>
4280 * checks.adb (Apply_Arithmetic_Overflow_Check): When converting the
4281 operands of an operator to the type of an enclosing conversion, rewrite
4282 the operator so the conversion can't be flagged as redundant.
4283 Remove useless assignments to Typ and Rtyp.
4285 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
4287 * gnat_ugn.texi: Fix another long line.
4289 2010-09-09 Bob Duff <duff@adacore.com>
4291 * sem_warn.adb (Output_Reference_Error): Don't warn for renames read
4294 2010-09-09 Matthew Heaney <heaney@adacore.com>
4296 * a-convec.adb, a-coinve.adb (Clear, Delete, Delete_Last, Finalize,
4297 Merge, Insert, Insert_Space, Move, Reserve_Capacity, Generic_Sorting,
4298 Replace_Element, Reverse_Elements, Swap): Change exception message to
4299 correctly indicate kind of tampering (cursor or element).
4300 * a-cdlili.adb, a-cidlli.adb (Clear, Delete, Delete_First, Delete_Last,
4301 Merge, Generic_Sorting, Insert, Move, Reverse_Elements, Splice,
4302 Swap_Links, Replace_Element, Swap): Ditto.
4303 * a-coorse.adb, a-ciorse.adb (Include, Replace, Replace_Element): Ditto
4304 * a-coorma.adb, a-ciorma.adb (Include, Replace, Replace_Element): Ditto
4305 * a-coormu.adb, a-ciormu.adb (Replace_Element): Ditto
4306 * a-chtgke.adb (Delete_Key_Sans_Free, Generic_Conditional_Insert,
4307 Generic_Replace_Element): Ditto
4308 * a-chtgop.adb (Clear, Move, Reserve_Capacity): Ditto
4309 * a-cohama.adb, a-cihama.adb (Delete, Include, Replace,
4310 Replace_Element): Ditto.
4311 * a-cohase.adb, a-cihase.adb (Delete, Difference, Intersection,
4312 Symmetric_Difference, Union, Include, Replace): Ditto
4314 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4316 * sprint.adb (Write_Id): If the parent node is an expanded name, check
4317 that its entity_or_associated_node is an entity before writing it out.
4318 * exp_disp.adb (Make_Tags); if a type is declared in C++ and has no
4319 constructors, there is no need for a dispatch table pointer because the
4320 table is fully inherited from the C++ code.
4322 2010-09-09 Thomas Quinot <quinot@adacore.com>
4324 * projects.texi: Fix wrong identifiers on package end lines in project
4326 * exp_ch6.adb: Minor reformatting.
4328 2010-09-09 Tristan Gingold <gingold@adacore.com>
4330 * gnatcmd.adb, vms_conv.ads: Extract Command_Type.
4332 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
4334 * gnat_ugn.texi: Fix description of -O3 optimization level.
4336 2010-09-09 Yannick Moy <moy@adacore.com>
4338 * a-cihama.adb, a-cohama.adb: Fix comments.
4340 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4342 * i-cexten.ads: Add comments.
4343 (Signed_128): New type, used by some C bindings.
4344 * debug.adb: Update comment.
4346 2010-09-09 Sergey Rybin <rybin@adacore.com>
4348 * gnat_ugn.texi: For ASIS tools (gnatpp, gnatcheck, gnatelim,
4349 gnatmetric and gnatstub) add a note that '-gnat05' should be used if
4350 the tool should process Ada 2005 sources.
4352 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4354 * sem_ch12.adb (Remove_Parent): If the scope containing the child
4355 instance is a block, examine the enclosing scope to determine if it is
4358 2010-09-09 Doug Rupp <rupp@adacore.com>
4360 * sem_prag.adb (pragma Ident): Pass --identification= vice
4362 * gnatlink.adb (Linker_Options): Look for --identification= vice
4365 2010-09-09 Gary Dismukes <dismukes@adacore.com>
4367 * exp_attr.adb (Expand_N_Attribute_Reference, case Attribute_Old): When
4368 inserting and analyzing the object declaration for the temporary object
4369 created to hold a 'Old value, push the scope for the subprogram where
4370 the object is inserted, so that its Scope (and that of related objects)
4371 will be set properly.
4373 2010-09-09 Vincent Celier <celier@adacore.com>
4375 * prj.adb (Get_Object_Directory): Return object directory display name
4376 * adaint.c (__gnat_get_file_names_case_sensitive): When environment
4377 variable GNAT_FILE_NAME_CASE_SENSITIVE has a value of "0" or "1",
4378 return this value, otherwise return the default for the platform.
4380 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4382 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
4383 dependencies. Remove handling of gnatlbr.
4384 Do not remove s-stratt-xdr for the run-time when installing.
4386 2010-09-09 Robert Dewar <dewar@adacore.com>
4388 * sem_attr.adb: Minor reformatting.
4390 2010-09-09 Thomas Quinot <quinot@adacore.com>
4392 * socket.c (__gnat_socket_ioctl): On Darwin, the req parameter is an
4393 unsigned long, not an int.
4395 2010-09-09 Vincent Celier <celier@adacore.com>
4397 * make.adb, mlib-prj.adb, prj.adb, prj-nmsc.adb, mlib-tgt.adb,
4398 prj-conf.adb, prj-env.adb: Use Display_Name instead of Name whenever
4399 we are not checking for equality of path or file names.
4401 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4403 * exp_util.adb (Remove_Side_Effects): If the expression is a packed
4404 array reference, reset the Analyzed flag so that it is properly
4405 expanded when the resulting object declaration is analyzed.
4407 2010-09-09 Vincent Celier <celier@adacore.com>
4409 * sinput-p.adb (Source_File_Is_Subunit): Return False if X is
4412 2010-09-09 Ramon Fernandez <fernandez@adacore.com>
4414 * sysdep.c: The wrSbc8548 BSP in MILS doesn't know anything about the
4415 VX_SPE_TASK option, so disable it.
4417 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4419 * sem.adb (Walk_Library_Items): Traverse context of subunits of the
4421 (Is_Subunit_Of_Main): Handle null nodes properly.
4423 2010-09-09 Robert Dewar <dewar@adacore.com>
4425 * par-ch2.adb: Update comments.
4427 2010-09-09 Ben Brosgol <brosgol@adacore.com>
4429 * gnat_rm.texi: Minor wordsmithing of section on pragma Ordered.
4431 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4433 * par-ch2.adb (Scan_Pragma_Argument_Association): In CodePeer mode,
4434 do not generate an error for compatibility with legacy code.
4435 ignored when generating SCIL.
4436 * sem_attr.adb (Resolve_Attribute): Ignore AI-229 in CodePeer mode.
4438 2010-09-09 Thomas Quinot <quinot@adacore.com>
4440 * s-strxdr.adb, gnat_rm.texi, s-stratt-xdr.adb, s-stratt.ads: Rename
4441 s-strxdr.adb to s-stratt-xdr.adb
4443 2010-09-09 Robert Dewar <dewar@adacore.com>
4445 * ali-util.adb (Obsolescent_Check): Removed.
4446 * gprep.adb (Obsolescent_Check): Removed.
4447 Remove Obsolescent_Check parameter in Scng instantiation
4448 * prj-err.adb (Obsolescent_Check): Removed.
4449 * prj-err.ads (Obsolescent_Check): Removed.
4450 Remove Obsolescent_Check parameter in Scng instantiation
4451 * scans.ads (Based_Literal_Uses_Colon): New flag
4452 * scn.adb (Obsolscent_Check_Flag): Removed
4453 (Obsolscent_Check): Removed
4454 (Set_Obsolescent_Check): Removed
4455 (Post_Scan): Add handling for obsolescent features
4456 * scn.ads (Obsolscent_Check): Removed
4457 (Set_Obsolescent_Check): Removed
4458 (Post_Scan): Can no longer be inlined
4459 Remove Obsolescent_Check from instantiation of Scng
4460 * scng.adb (Nlit): Set Based_Literal_Uses_Colon
4461 (Nlit): Remove handling of obsolescent check
4462 (Scan, case '%'): Remove handling of obsolescent check
4463 (Scan, case '|'): Call Post_Scan
4464 (Scan, case '!'): Remove handling of obsolescent check, call Post_Scan
4465 * scng.ads Remove Obsolescent_Check argument from Scng generic
4466 (Post_Scan): Now called for Tok_Vertical_Bar
4467 * sinput-l.adb: Remove calls to Set_Obsolescent_Check
4469 2010-09-09 Doug Rupp <rupp@adacore.com>
4471 * gnatlbr.adb: Removed.
4472 * gnat_rm.texi, ug_words, gnat_ugn.texi: Remove mention of gnatlbr.
4474 2010-09-09 Robert Dewar <dewar@adacore.com>
4476 * sem_res.adb (Resolve_Type_Conversion): Catch more cases of redundant
4479 2010-09-09 Vincent Celier <celier@adacore.com>
4481 * gnatlbr.adb: Remove redundant conversions.
4483 2010-09-09 Vincent Celier <celier@adacore.com>
4485 * prj-proc.adb: Minor comment spelling error fix.
4486 * osint.ads (Env_Vars_Case_Sensitive): Use function
4487 Get_Env_Vars_Case_Sensitive, not Get_File_Names_Case_Sensitive to
4490 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4492 * sem_res.adb (Resolve_Equality_Op): Implement Ada2012 rule for
4493 resolution of conditional expressions whose dependent expressions are
4494 anonymous access types.
4496 2010-09-09 Robert Dewar <dewar@adacore.com>
4498 * a-ststio.adb: Minor code reorganization.
4499 * s-direio.adb, prj.adb, prj-nmsc.adb, sem_type.adb: Remove redundant
4501 * types.ads: Minor reformatting.
4502 * binde.adb, vms_conv.adb, gnatls.adb, s-strxdr.adb, uintp.adb: Remove
4503 redundant conversions.
4504 * output.adb: Minor reformatting.
4505 * sem_ch8.adb (Find_Type): Test for redundant base applies to user
4507 * opt.ads: Add pragma Ordered for Verbosity_Level.
4508 * prj.ads: Add pragma Ordered for type Verbosity.
4510 2010-09-09 Vincent Celier <celier@adacore.com>
4512 * osint.adb (Canonical_Case_File_Name): Use procedure To_Lower in
4514 (Canonical_Case_Env_Var_Name): Ditto
4516 2010-09-09 Bob Duff <duff@adacore.com>
4518 * g-pehage.adb (Allocate): Initialize the allocated elements of IT.
4520 2010-09-09 Robert Dewar <dewar@adacore.com>
4522 * cstand.adb: Mark Boolean and Character types as Ordered
4523 * einfo.adb (Has_Pragma_Ordered): New flag
4524 * einfo.ads (Has_Pragma_Ordered): New flag
4525 * g-calend.ads: Mark Day_Name as Ordered
4526 * opt.ads: Mark Ada_Version_Type as Ordered
4527 (Warn_On_Unordered_Enumeration_Type): New flag
4528 * par-prag.adb: Add procdessing for pragma Ordered
4529 * s-ficobl.ads (Read_File_Mode): New subtype
4530 * s-fileio.adb: Use Read_File_Mode instead of explicit ranges
4531 * s-taskin.ads: Mark Entry_Call_State as ordered
4532 * sem_ch3.adb (Build_Derived_Enumeration_Type): Inherit
4534 * sem_ch6.ads: Mark Conformance_Type as Ordered
4535 * sem_prag.adb: Implement pragma Ordered
4536 * sem_res.adb (Bad_Unordered_Enumeration_Reference): New function
4537 (Resolve_Comparison_Op): Diagnose unordered comparison
4538 (Resolve_Range): Diagnose unordered range
4539 * sem_warn.adb (Warn_On_Unordered_Enumeration_Type): New flag (from
4541 * snames.ads-tmpl: Add entry for pragma Ordered
4542 * style.ads (Check_Enumeration_Subrange): Removed
4543 * styleg.adb (Check_Enumeration_Subrange): Removed
4544 * styleg.ads (Check_Enumeration_Subrange): Removed
4545 * stylesw.adb: Remove handling of -gnatyE switch
4546 * stylesw.ads: (Style_Check_Enumeration_Subranges): Removed
4547 * vms_data.ads: Remove -gnatyE entries
4548 Add -gnatw.u entries
4549 * ug_words: Entries for -gnatw.u and -gnatw.U
4550 * gnat_ugn.texi: Document -gnatw.u/-gnatw.U switches
4551 * gnat_rm.texi: Document pragma Ordered.
4552 * s-tasren.adb: Avoid unnecessary comparison on unordered enumeration.
4553 * s-tpobop.adb: Remove comparison on unordered enumeration type.
4555 2010-09-09 Vincent Celier <celier@adacore.com>
4557 * adaint.c: New function __gnat_get_env_vars_case_sensitive, returns 0
4558 for VMS and Windows, and 1 for all other platforms.
4559 * adaint.h: New function __gnat_get_env_vars_case_sensitive
4560 * osint.ads, osint.adb (Canonical_Case_Env_Var_Name): New procedure.
4561 * prj-ext.adb (Add): Call Canonical_Case_Env_Var_Name instead of
4562 Canonical_Case_File_Name, as we are dealing with environment variables,
4565 2010-09-09 Robert Dewar <dewar@adacore.com>
4567 * sem_util.adb: Minor reformatting
4569 2010-09-09 Vincent Celier <celier@adacore.com>
4571 * vms_data.ads: Add documentation for S_Make_Single.
4573 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4575 * sem_util.adb (Same_Object): include formal parameters.
4577 2010-09-09 Vincent Celier <celier@adacore.com>
4579 * make.adb (Queue): New package implementing a new impementation of the
4580 queue, taking into account the new switch --single-compile-per-obj-dir.
4581 * makeutl.ads (Single_Compile_Per_Obj_Dir_Switch): New constant String
4582 for gnatmake and gprbuild new switch --single-compile-per-obj-dir.
4583 * opt.ads (One_Compilation_Per_Obj_Dir): New Boolean flag, defauted to
4585 * switch-m.adb (Scan_Make_Switches): Take into account new gnatmake
4586 switch --single-compile-per-obj-dir.
4587 * vms_data.ads: Add qualifier SINGLE_COMPILE_PER_OBJ_DIR for gnatmake
4588 switch --single-compile-per-obj-dir.
4589 * gnat_ugn.texi: Add documentation for new gnatmake switch
4590 --single-compile-per-obj-dir.
4592 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4594 * einfo.adb, einfo.ads: Clarify use of Corresponding_Protected_Entry.
4596 2010-09-09 Javier Miranda <miranda@adacore.com>
4598 * sem_ch3.adb (Is_Progenitor): Relocated to sem_type.
4599 (Replace_Type): Code cleanup.
4600 * sem_type.ads, sem_type.adb (Is_Progenitor): Relocated from sem_ch3
4602 2010-09-09 Thomas Quinot <quinot@adacore.com>
4604 * exp_ch8.adb: Minor reformatting.
4606 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4608 * exp_ch9.adb, einfo.adb, einfo.ads: New attribute
4609 Corresponding_Protected_Entry.
4611 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4613 * exp_ch3.adb (Build_Untagged_Equality): Do not set alias of implicit
4614 inequality, it is always rewritten as the negation of the corresponding
4616 * exp_ch8.adb (Expand_N_Subprogram_Renaming): If the subprogram renames
4617 the predefined equality of an untagged record, create a body at the
4618 point of the renaming, to capture the current meaning of equality for
4621 2010-09-09 Robert Dewar <dewar@adacore.com>
4623 * sem.adb, sem_warn.adb: Minor reformatting.
4625 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4627 * sem_ch6.adb: Improve error message on untagged equality.
4628 * sem.adb (Semantics): Include subprogram bodies that act as spec.
4630 2010-09-09 Javier Miranda <miranda@adacore.com>
4632 * sem_ch13.adb, exp_ch13.adb: Undo previous change, unneeded.
4634 2010-09-09 Robert Dewar <dewar@adacore.com>
4636 * sem_ch13.adb, sem_ch6.adb, exp_ch3.adb: Minor reformatting.
4638 2010-09-09 Robert Dewar <dewar@adacore.com>
4640 * einfo.adb (Is_Aggregate_Type): New function.
4641 * einfo.ads (Aggregate_Kind): New enumeration subtype
4642 (Is_Aggregate_Type): New function.
4643 * sem_type.adb (Is_Array_Class_Record_Type): Removed, replaced by
4646 2010-09-09 Robert Dewar <dewar@adacore.com>
4648 * exp_ch11.adb, frontend.adb, sem_attr.adb, sem_ch10.adb, sem_ch3.adb,
4649 sem_ch4.adb, sem_ch9.adb, sem_res.adb: Use Restriction_Check_Needed
4651 * restrict.ads, restrict.adb: Ditto.
4652 (Restriction_Check_Needed): New function
4654 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4656 * exp_ch9.ads (Find_Master_Scope): New function, extracted from
4657 Build_Master_Entity, to find the proper scope for the master entity of
4658 a type that may contain tasks, in the presence of transient scopes.
4659 * exp_ch9.adb (Build_Master_Entity) Use new function.
4660 * exp_ch3.adb (Build_Class_Wide_Master): ditto.
4662 2010-09-09 Vincent Celier <celier@adacore.com>
4664 * prj-attr.adb: Add new attributes Leading_Library_Options and
4665 Linker'Leading_Switches.
4666 * snames.ads-tmpl: Add new standard names Leading_Library_Options and
4669 2010-09-09 Javier Miranda <miranda@adacore.com>
4671 * sem_ch3.adb (Derive_Subprogram): The code that checks if a
4672 dispatching primitive covers some interface primitive is incomplete.
4673 Replace such code by the invocation of a new subprogram that provides
4675 * sem_ch6.ads (Is_Interface_Conformant): Add missing documentation.
4676 * sem_ch6.adb (Check_Missing_Return): Minor reformating
4677 (Check_Convention): Complete if-statement conditition when reporting
4678 errors (to avoid assertion failure).
4679 * sem_ch13.adb (Make_Null_Procedure_Specs): This routine was previously
4680 located in exp_ch3. Relocated inside Analyze_Freeze_Entity.
4681 (Analyze_Freeze_Entity): Invoke routine that adds the spec of non
4682 overridden null interface primitives.
4683 * sem_type.adb (Is_Ancestor): If the parent of the partial view of a
4684 private type is an interface then use the parent of its full view to
4685 climb to its ancestor type.
4686 * sem_disp.ads, sem_disp.adb (Covers_Some_Interface): New subprogram.
4687 (Check_Dispatching_Operation): Extend assertion to handle wrappers of
4688 null interface primitives.
4689 (Is_Null_Interface_Primitive): New subprogram.
4690 * exp_ch3.adb (Make_Null_Procedure_Specs): Removed.
4691 (Expand_Freeze_Record_Type): Do not generate specs of null interface
4692 subprograms because they are now generated by Analyze_Freeze_Entity.
4694 2010-09-09 Robert Dewar <dewar@adacore.com>
4696 * a-calfor.adb, sem_ch3.adb: Minor reformatting.
4698 2010-09-09 Robert Dewar <dewar@adacore.com>
4700 * bindgen.adb (Gen_Restrictions_Ada): Avoid explicit enumeration ranges
4701 (Gen_Restrictions_C): Avoid explicit enumeration ranges
4702 (Set_String_Replace): New procedure
4703 * casing.ads (Known_Casing): New subtype declaration
4704 * prj-attr.ads (All_Case_Insensitive_Associative_Array): New subtype
4706 * prj-dect.adb (Parse_Attribute_Declaration): Avoid enumeration range
4707 * prj-nmsc.adb (Check_Naming): Avoid unnecessary enumeration range
4708 * prj-strt.adb (Attribute_Reference): Avoid enumeration range test
4709 * prj.adb (Known_Casing): Moved to Casing spec (avoid enum range)
4710 * sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order): Avoid enumeration
4712 * sem_res.adb (Resolve_Range): Check for enumeration subrange style
4714 * sem_type.adb (Is_Array_Class_Record_Type): New.
4715 * style.ads (Check_Enumeration_Subrange): New procedure
4716 * styleg.adb (Check_Enumeration_Subrange): New procedure
4717 * styleg.ads (Check_Enumeration_Subrange): New procedure
4718 * stylesw.adb Add handling for Style_Check_Enumeration_Subranges
4719 * stylesw.ads (Style_Check_Enumeration_Subranges): New flag
4720 * usage.adb: Add line for -gnatyE
4721 * vms_data.ads: Add entries for [NO]ENUMERATION_RANGES
4722 Add missing entry for NOBOOLEAN_OPERATORS
4723 * gnat_ugn.texi: Add documentation for -gnatyE
4725 2010-09-09 Robert Dewar <dewar@adacore.com>
4727 * namet.adb (Initialize): Is now a dummy procedure
4728 (Reinitialize): New procedure
4729 Call Reinitialize from package initialization
4730 * namet.ads (Initialize): Is now a dummy procedure
4731 (Reinitialize): New procedure
4732 * clean.adb, gnat1drv.adb, gnatbind.adb, gnatcmd.adb, gnatlink.adb,
4733 gnatls.adb, gprep.adb, make.adb, prj-makr.adb: Remove obsolete call to
4736 2010-09-09 Bob Duff <duff@adacore.com>
4738 * sem_elab.adb, s-os_lib.ads: Minor comment fixes.
4740 2010-09-09 Robert Dewar <dewar@adacore.com>
4742 * s-bitops.adb (Raise_Error): Add exception message
4744 2010-09-09 Robert Dewar <dewar@adacore.com>
4746 * par-ch5.adb (Test_Statement_Required): Deal with Ada 2012 allowing no
4747 null statement after label.
4748 * sinfo.ads: Minor comment updates.
4750 2010-09-09 Robert Dewar <dewar@adacore.com>
4752 * nlists.ads, nlists.adb (In_Same_List): New function.
4753 Use Node_Or_Entity_Id where appropriate.
4754 * par-labl.adb, sem_ch6.adb, sem_type.adb: Use In_Same_List.
4756 2010-09-09 Robert Dewar <dewar@adacore.com>
4758 * restrict.ads, restrict.adb (Check_Wide_Character_Restriction): New
4760 * sem_ch3.adb: Use Check_Wide_Character_Restriction
4761 (Enumeration_Type_Declaration): Check violation of No_Wide_Characters
4762 * sem_ch8.adb (Find_Direct_Name): Check violation of No_Wide_Characters
4763 (Find_Expanded_Name): Check violation of No_Wide_Characters
4765 2010-09-09 Robert Dewar <dewar@adacore.com>
4767 * par-ch5.adb: Minor reformatting.
4769 2010-09-09 Robert Dewar <dewar@adacore.com>
4771 * prj-env.adb: Minor code reorganization.
4772 * par-ch3.adb: Minor reformatting.
4773 * gcc-interface/Make-lang.in: Update dependencies.
4775 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4777 * exp_ch9.adb (Build_Activation_Chain_Entity): The construct enclosing
4778 a task declaration can be an entry body.
4780 2010-09-09 Javier Miranda <miranda@adacore.com>
4782 * exp_disp.adb (Make_DT): Decorate as "static" variables containing
4783 tags of library level tagged types.
4784 (Make_Tags): Disable backend optimizations about aliasing for
4785 declarations of access to dispatch tables.
4787 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4789 * sem_ch12.adb (Reset_Entity): If the entity is an itype created as a
4790 subtype for a null-excluding access type, recover the original
4791 subtype_mark to get the proper visibility on the original name.
4793 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4795 * exp_ch3.adb (Build_Untagged_Equality): For Ada2012, new procedure to
4796 create the primitive equality operation for an untagged record. The
4797 operation is the predefined equality if no record component has a
4798 user-defined equality, or if there is a user-defined equality for the
4799 type as a whole, or when the type is derived and it has an inherited
4800 equality. Otherwise the body of the operations is built as for tagged
4802 (Expand_Freeze_Record_Type): Call Build_Untagged_Equality when needed.
4803 (Make_Eq_Body): New function to create the expanded body of the
4804 equality operation for tagged and untagged records. In both cases the
4805 operation composes, and the primitive operation of each record
4806 component is used to generate the equality function for the type.
4807 * exp_ch4.adb (Expand_Composite_Equality): In Ada2012, if a component
4808 has an abstract equality defined, replace its call with a
4809 Raise_Program_Error.
4810 * sem_ch6.adb (New_Overloaded_Entity): if Ada2012, verify that a
4811 user-defined equality operator for an untagged record type does not
4812 happen after type is frozen, and appears in the visible part if partial
4813 view of type is not limited.
4815 2010-09-09 Tristan Gingold <gingold@adacore.com>
4817 * gnatlbr.adb: Make Create_Directory more portable: use __gnat_mkdir.
4819 2010-09-09 Bob Duff <duff@adacore.com>
4821 * gnat_ugn.texi: Remove incorrect statement about -E being the default.
4823 2010-09-09 Pascal Obry <obry@adacore.com>
4825 * gnat_ugn.texi: Update doc on windows related topics.
4827 2010-09-09 Geert Bosch <bosch@adacore.com>
4829 * s-fatgen.adb: Update comments.
4831 2010-09-09 Robert Dewar <dewar@adacore.com>
4833 * par-ch4.adb (Box_Error): New procedure.
4835 2010-09-09 Thomas Quinot <quinot@adacore.com>
4837 * sem.adb: Minor reformatting.
4839 2010-09-09 Pascal Obry <obry@adacore.com>
4841 * prj-env.adb: Style fix, use /and then/ and /or else/.
4842 * gnat_ugn.texi: Fix typos.
4844 2010-09-03 Joseph Myers <joseph@codesourcery.com>
4847 * gcc-interface/misc.c (gnat_init_options): Allow options with
4848 empty canonical form. Generate a single save_argv element from -I
4851 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
4853 * gcc-interface/utils.c (gnat_pushdecl): Remove test for PARM_DECLs.
4854 Attach fake PARM_DECLs to the topmost block of the function.
4856 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
4858 * gcc-interface/trans.c (call_to_gnu): Also force the return slot opt
4859 for the call to a function whose return type was unconstrained.
4861 2010-08-30 Olivier Hainque <hainque@adacore.com>
4863 * gcc-interface/decl.c (FOREIGN_FORCE_REALIGN_STACK): New macro,
4864 replacement for FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
4865 (gnat_to_gnu_entity) <case ..., E_Procedure>: Use it.
4867 2010-08-21 Eric Botcazou <ebotcazou@adacore.com>
4869 * tracebak.c: Fix typo in comment.
4871 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
4873 * gcc-interface/decl.c: Use FOR_EACH_VEC_ELT.
4874 * gcc-interface/trans.c: Likewise.
4875 * gcc-interface/utils.c: Likewise.
4877 2010-08-18 Eric Botcazou <ebotcazou@adacore.com>
4879 * tracebak.c (i386): Use GCC unwinder on Linux with GCC > 4.5.
4881 2010-08-10 Robert Dewar <dewar@adacore.com>
4883 * sem_ch8.adb, sem_ch8.ads: Change name Write_Scopes to ws.
4884 * sem_util.adb: Minor reformatting.
4886 2010-08-10 Javier Miranda <miranda@adacore.com>
4888 * sem_aggr.adb (Resolve_Extension_Aggregate): Warn on the use of C++
4889 constructors that leave the object partially initialized.
4890 * exp_atag.ads, exp_atags.adb (Build_Inherit_CPP_Prims): New subprogram
4891 that copies from parent of Typ the dispatch table slots of inherited
4892 C++ primitives. It handles primary and secondary dispatch tables.
4893 * einfo.adb (Related_Type): Moved from Node26 to Node27. Required to
4894 use this attribute with E_Variable entities.
4895 (Set_Is_Tag): Relax assertion to allow its use with variables that
4897 (Set_Related_Type): Relax assertion to allow its use with variables
4898 that store the tag of a C++ class.
4899 (Write_26_Field_Name): Remove Related_Type.
4900 (Write_27_Field_Name): Add Related_Type.
4901 * einfo.ads (Related_Type): Moved from Node26 to Node27. Available also
4902 with E_Variable entities.
4903 * sem_prag.adb (CPP_Constructor): Warn on duplicated occurrence of this
4905 * sem_util.adb (Search_Tag): Add missing support for CPP types.
4906 (Enclosing_CPP_Parent): New subprogram.
4907 (Has_Suffix): New subprogram.
4908 * sem_util.ads (Enclosing_CPP_Parent): New subprogram that returns the
4909 closest ancestor of a type that is a C++ type.
4910 (Has_Suffix): New subprogram. Used in assertions to check the suffix of
4912 * sem_attr.adb (Analyze_Access_Attribute): Check wrong use of current
4913 instance in derivations of C++ types.
4914 * exp_tss.adb (CPP_Init_Proc): New subprogram.
4915 (Is_CPP_Init_Proc): New subprogram.
4916 (Set_TSS): Handle new C++ init routines.
4917 * exp_tss.ads (TSS_CPP_Init): New TSS name. For initialization of C++
4919 (CPP_Init_Proc): New subprogram.
4920 (Is_CPP_Init_Proc): New subprogram.
4921 * exp_disp.adb (CPP_Num_Prims): New subprogram.
4922 (Has_CPP_Constructors): New subprogram.
4923 (Make_Secondary_DT, Make_DT): For derivations of CPP types, do not
4924 initialize slots located in the C++ part of the dispatch table.
4925 (Make_Tags): For CPP types declare variables used by the IP routine to
4926 store the C++ tag values after the first invocation of the C++
4928 (Build_CPP_Init_DT): New subprogram.
4929 (Set_CPP_Constructors): New implementation that builds an IP for each
4930 CPP constructor. These IP are wrappers of the C++ constructors that,
4931 after the first invocation of the constructor, read the C++ tags from
4932 the object and save them locally. These copies of the C++ tags are used
4933 by the IC routines to initialize tables of Ada derivations of CPP
4935 (Write_DT): Indicate what primitives are imported from C++
4936 * exp_disp.ads (CPP_Num_Prims): New subprogram.
4937 (Has_CPP_Constructors): New subprogram.
4938 * exp_aggr.adb (Build_Record_Aggr_Code): For derivations of C++ types
4939 invoke the IC routine to inherit the slots of the parents.
4940 * sem_ch13.adb (Analyze_Freeze_Entity): Add new warnings on CPP types.
4941 * exp_ch3.adb (Is_Variable_Size_Array): New subprogram.
4942 (Is_Variable_Size_Record): Factorize code calling
4943 Is_Variable_Size_Array.
4944 (Build_CPP_Init_Procedure): New subprogram that builds the tree
4945 corresponding to the procedure that initializes the C++ part of the
4946 dispatch table of an Ada tagged type that is a derivation of a CPP
4948 (Build_Init_Procedure): Adding documentation plus code reorganization
4949 to leave more clear the construction of the IP with C++ types.
4950 (Expand_Freeze_Record_Type): Delay call to Set_CPP_Constructors because
4951 it cannot be called after Make_Tags has been invoked.
4952 (Inherit_CPP_Tag): Removed.
4953 (Init_Secondary_Tags): For derivations of CPP types, warn on tags
4954 located at variable offset.
4955 * freeze.ads: Minor reformating.
4956 * sem_ch8.adb (Write_Scopes): Add pragma export. Required to have it
4958 * gcc-interface/Make-lang.in: Update dependencies.
4960 2010-08-10 Robert Dewar <dewar@adacore.com>
4962 * a-chahan.ads: Add comments on handling of obsolescent entries.
4963 * opt.ads: Add Ada_2005 and Ada_2012 renamings for versions.
4964 * restrict.adb (Check_Obsolescent_2005_Entity): New procedure.
4965 * restrict.ads (Check_Obsolescent_2005_Entity): New procedure.
4966 * sem_attr.adb (Analyze_Access_Attribute): Call
4967 Check_Obsolescent_2005_Entity to check for access to obsolescent
4968 Ada.Characters.Handling subprogram.
4969 (Analyze_Attribute, case Class): Applying Class to untagged incomplete
4970 type is obsolescent in Ada 2005.
4971 (Analyze_Attribute, case Constrained): Better placement of flag when
4972 flagged as obsolescent feature.
4973 (Analyze_Attribute, case Storage_Size): Use with tasks is obsolescent
4974 * sem_ch10.adb (Analyze_With_Clause): With of renamings such as Text_IO
4975 is an obsolescent feature.
4976 * sem_ch11.adb (Analyze_Raise_Statement): Numeric_Error is obsolescent
4978 * sem_ch8.adb (Analyze_Subprogram_Renaming): Call
4979 Check_Obsolescent_2005_Entity to check for renaming obsolete
4980 Ada.Characters.Handling subprogram.
4981 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings): Check
4982 for obsolescent restrictions in Ada 2005.
4983 (Analyze_Pragma, case Suppress): Entity arg is obsolescent in Ada 2005
4984 (Analyze_Pragma, case Interface): Interface is obsolescent in Ada 2005
4985 * sem_res.adb (Resolve_Call): Call Check_Obsolescent_2005_Entity to
4986 check for obsolescent references to Ada.Characters.Handling subprograms
4988 2010-08-10 Robert Dewar <dewar@adacore.com>
4990 * einfo.adb, einfo.ads: Fix bad -gnatdt output for incomplete type.
4992 2010-08-10 Robert Dewar <dewar@adacore.com>
4994 * errout.ads: Add VMS table entries for 2005, 12, 2012 switches
4995 * par-ch4.adb: Change wording of Ada 2012 messages
4996 * vms_data.ads: Add VMS entries for /2005, /12, /2012
4998 2010-08-10 Robert Dewar <dewar@adacore.com>
5000 * a-suenco.adb (Convert): Fix bug in UTF-16 to UTF-8 conversion for
5001 codes in the range 16#80#..16#7FF#.
5002 * sem_ch10.adb: Minor reformatting.
5004 2010-08-10 Arnaud Charlet <charlet@adacore.com>
5006 * gnat1drv.adb (Scan_Front_End_Switches): Always perform semantics and
5007 generate ali files in CodePeer mode, so that a gnatmake -c -k will
5008 proceed further when possible
5009 * freeze.adb (Freeze_Static_Object): Fix thinko. Do not generate error
5010 messages when ignoring representation clauses (-gnatI).
5012 2010-08-10 Ed Schonberg <schonberg@adacore.com>
5014 * exp_ch4.adb (Expand_N_Selected_Component): Do not attempt to
5015 constant-fold discriminant reference if the constraint is an object
5016 with non-static expression. Expression may contain volatile references
5017 in the presence of renamings.
5019 2010-08-10 Vincent Celier <celier@adacore.com>
5021 * prj-proc.adb (Get_Attribute_Index): If Index is All_Other_Names,
5023 * prj-strt.adb (Attribute_Reference): Recognize 'others' as a valid
5024 index for an associative array where it is allowed.
5026 2010-08-10 Thomas Quinot <quinot@adacore.com>
5028 * exp_attr.adb: Add comments.
5030 2010-08-10 Jerome Lambourg <lambourg@adacore.com>
5032 * adaint.c (__gnat_get_file_names_case_sensitive): return 0 on darwin.
5034 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
5036 * gcc-interface/utils.c (gnat_poplevel): Use blocks_nreverse.
5038 2010-08-09 Eric Botcazou <ebotcazou@adacore.com>
5040 * gcc-interface/utils.c (build_vms_descriptor32): Fix formatting.
5041 (build_vms_descriptor): Likewise.
5043 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5045 * gcc-interface/utils.c (make_descriptor_field): Add tree parameter.
5046 (build_vms_descriptor32): Adjust calls to it for new parameter.
5047 (build_vms_descriptor): Likewise.
5049 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5051 * gcc-interface/decl.c (rec_variant): Declare. Declare a VEC of it.
5052 (build_variant_list): Take and return a VEC instead of a tree.
5053 (create_variant_part_from): Take a VEC instead of a tree for
5054 variant_list. Adjust accordingly.
5055 (gnat_to_gnu_entity): Adjust for changes to previous functions.
5057 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
5059 * gcc-interface/decl.c (gnat_to_gnu_entity): Use XALLOCAVEC instead
5061 (components_to_record): Likewise.
5062 * gcc-interface/trans.c (gnat_to_gnu): Likewise.
5063 * gcc-interface/utils.c (max_size): Likewise.
5064 (build_vms_descriptor32): Likewise.
5065 (build_vms_descriptor): Likewise.
5067 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
5069 * gcc-interface/decl.c (subst_pair): Declare. Declare a VEC of it.
5070 (build_subst_list): Return a VEC instead of a tree.
5071 (build_variant_list): Take a VEC for subst_list. Adjust
5073 (create_field_decl_from): Likewise.
5074 (create_variant_part_from): Likewise.
5075 (copy_and_substitute_in_size): Likewise.
5076 (gnat_to_gnu_entity): Adjust for new interface to build_subst_list.
5077 Free the built vector.
5079 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
5081 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not build an
5082 allocator for large imported objects.
5084 2010-08-05 Robert Dewar <dewar@adacore.com>
5086 * gnat1drv.adb: Minor reformatting.
5088 2010-08-05 Ed Schonberg <schonberg@adacore.com>
5090 * sem.adb (Do_Unit_And_Dependents): If some parent unit is an
5091 instantiation, process its body before the spec of the main unit,
5092 because it may contain subprograms invoked in the spec of main.
5093 * einfo.ads: Add documention of delayed freeze.
5095 2010-08-05 Vincent Celier <celier@adacore.com>
5097 * prj-nmsc.adb (Process_Linker): Take into account new values for
5098 attribute Response_File_Format.
5099 * prj.ads (Response_File_Format): New enumeration values GCC_GNU,
5100 GCC_Object_List and GCC_Option_List.
5102 2010-08-05 Ed Schonberg <schonberg@adacore.com>
5104 * exp_ch4.adb (Expand_N_Selected_Component): Do not constant-fold a
5105 selected component that denotes a discriminant if it is the
5106 discriminant of a component of an unconstrained record type.
5108 2010-08-05 Ed Schonberg <schonberg@adacore.com>
5110 * exp_util.adb (Insert_Actions): If the action appears within a
5111 conditional expression that is already analyzed, insert action further
5114 2010-08-05 Robert Dewar <dewar@adacore.com>
5116 * exp_ch4.adb: Minor reformatting.
5118 2010-08-05 Thomas Quinot <quinot@adacore.com>
5120 * exp_ch4.adb: Minor reformatting
5121 * gnat1drv.adb: Minor reformatting.
5122 Minor code reorganization (use Nkind_In).
5124 2010-08-05 Ed Schonberg <schonberg@adacore.com>
5126 * exp_util.ads, exp_util.adb (Needs_Constant_Address): New predicate to
5127 determine whether the expression in an address clause for an
5128 initialized object must be constant. Code moved from freeze.adb.
5129 (Remove_Side_Effects): When the temporary is initialized with a
5130 reference, indicate that the temporary is a constant as done in all
5132 * freeze.adb (Check_Address_Clause): use Needs_Constant_Address.
5133 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
5134 If object does not need a constant address, remove side effects from
5135 address expression, so it is elaborated at the point of the address
5136 clause and not at the freeze point of the object, so that elaboration
5139 2010-08-05 Vincent Celier <celier@adacore.com>
5141 * prj.adb (Is_Compilable): Return False for header files of non Ada
5144 2010-08-05 Emmanuel Briot <briot@adacore.com>
5146 * prj-nmsc.adb: The Missing_Source_Files flag also considers a missing
5147 exec directory as a warning rather than an error.
5149 2010-08-05 Thomas Quinot <quinot@adacore.com>
5151 * sem_ch6.adb, gnat1drv.adb, exp_ch6.adb, sem_eval.adb: Minor
5154 2010-08-05 Steve Baird <baird@adacore.com>
5156 * exp_util.adb (Remove_Side_Effects): An access value which designates
5157 a volatile object of a nonvolatile type is prohibited.
5158 Do not call Make_Reference to construct a reference to such an object.
5160 2010-08-05 Robert Dewar <dewar@adacore.com>
5162 * a-suezse.adb, a-suezse.ads, a-suezen.adb, a-suezen.ads: Removed.
5163 * a-suewse.adb, a-suewse.ads, a-suesen.adb, a-suesen.ads,
5164 a-suewen.adb, a-suewen.ads: New files.
5165 * Makefile.rtl, impunit.adb: Update implementation of Ada 2012 string
5167 * sem_elab.adb: Minor reformatting.
5169 2010-08-05 Arnaud Charlet <charlet@adacore.com>
5171 * sem_ch8.adb (Use_One_Type): Protect against empty scopes.
5172 * exp_util.adb (Component_May_Be_Bit_Aligned): Prevent assert failure
5173 in case of null Comp.
5175 2010-08-05 Robert Dewar <dewar@adacore.com>
5177 * errout.adb, a-suewen.adb, a-suezen.adb: Minor reformatting.
5179 2010-08-05 Gary Dismukes <dismukes@adacore.com>
5181 * sem_ch4.adb (Analyze_Allocator): Flag errors on allocators of a
5182 nested access type whose designated type has tasks or is a protected
5183 object when the restrictions No_Task_Hierarchy or
5184 No_Local_Protected_Objects apply. Add ??? comment.
5185 * sem_ch9.adb (Analyze_Protected_Type): Give a warning when a protected
5186 type is not a library-level type and No_Local_Protected_Objects applies.
5187 (Analyze_Task_Type): Give a warning when a task type is not a
5188 library-level type and No_Task_Hierarchy applies.
5190 2010-08-05 Arnaud Charlet <charlet@adacore.com>
5192 * sem.adb: Minor reformatting
5193 * sem_ch4.adb (Analyze_Reference): Disable error message in CodePeer
5196 2010-08-04 Eric Botcazou <ebotcazou@adacore.com>
5198 * gcc-interface/decl.c: Do not undefine IN_GCC_FRONTEND and do not
5200 (gnat_to_gnu_entity) <object>: Force address of -1 at the tree level
5201 for the debug-only entity.
5202 * gcc-interface/Make-lang.in (ada/decl.o): Adjust dependencies.
5204 2010-08-03 Joseph Myers <joseph@codesourcery.com>
5206 * gcc-interface/lang-specs.h: Don't pass -a options.
5208 2010-07-28 Joseph Myers <joseph@codesourcery.com>
5210 * gcc-interface/misc.c (gnat_init_options): Ignore erroneous
5211 options. Check canonical_option_num_elements on options copied.
5213 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5215 * gcc-interface/misc.c (gnat_handle_option): Update prototype and
5216 return value type. Don't check for missing arguments here.
5218 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5220 * gcc-interface/misc.c (gnat_option_lang_mask): New.
5221 (gnat_init_options): Update prototype. Reconstruct argv array
5222 from decoded options.
5224 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
5226 * gcc-interface/utils.c (update_pointer_to): In the unconstrained array
5227 case, merge the alias set of the old pointer type.
5229 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
5231 * gcc-interface/utils.c (gnat_types_compatible_p): Revert latest change
5232 and recurse only for multidimensional array types instead.
5234 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
5237 * gcc-interface/utils.c (convert): Fix thinko in test.
5238 (unchecked_convert): When converting from a scalar type to a type with
5239 a different size, pad to have the same size on both sides.
5241 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
5243 * gcc-interface/utils.c (gnat_types_compatible_p): Don't require strict
5244 equality for the component type of array types.
5246 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
5248 * gcc-interface/decl.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
5249 * gcc-interface/trans.c: Likewise.
5250 * gcc-interface/utils.c: Likewise.
5251 * gcc-interface/utils2.c: Likewise.
5253 2010-07-13 Laurent GUERBY <laurent@guerby.net>
5256 * gcc-interface/targtyps.c: Include tm_p.h.
5257 * gcc-interface/Make-lang.in: Update dependencies.
5259 2010-07-09 Eric Botcazou <ebotcazou@adacore.com>
5261 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Deal with
5264 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5266 * gcc-interface/utils.c: Include diagnostic-core.h in every file
5267 that includes toplev.h.
5269 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
5271 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>:
5272 Branch to common code handling the alignment of discrete types.
5273 <E_Signed_Integer_Type>: Likewise.
5274 <E_Modular_Integer_Type>: Likewise.
5276 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
5278 * gcc-interface/misc.c (gnat_handle_option): Do not populate gnat_argv.
5279 (gnat_handle_option): Allocate only one element for gnat_argv.
5280 (gnat_init): Do not populate gnat_argv.
5282 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5284 * gcc-interface/trans.c: Do not include tree-flow.h.
5285 * gcc-interface/Make-lang.in: Adjust dependencies.
5287 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
5289 * gcc-interface/gigi.h (gnat_build_constructor): Take a VEC instead
5290 of a TREE_LIST. Update comment.
5291 * gcc-interface/trans.c (gigi): Build a VEC instead of a TREE_LIST.
5292 Adjust call to gnat_build_constructor.
5293 (Attribute_to_gnu): Likewise.
5294 (gnat_to_gnu): Likewise.
5295 (pos_to_constructor): Likewise.
5296 (extract_values): Likewise.
5297 * gcc-interface/utils.c (build_template): Likewise.
5298 (convert_vms_descriptor64): Likewise.
5299 (convert_vms_descriptor32): Likewise.
5300 (convert_to_fat_pointer): Likewise.
5301 (convert): Likewise.
5302 (unchecked_convert): Likewise.
5303 * gcc-interface/decl.c (gnat_to_gnu_entity): Likewise.
5304 * gcc-interface/utils2.c (build_allocator): Likewise.
5305 (fill_vms_descriptor): Likewise.
5306 (gnat_build_constructor): Take a VEC instead of a TREE_LIST.
5307 (compare_elmt_bitpos): Adjust for parameters being constructor_elts
5308 instead of TREE_LISTs.
5310 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
5312 * gcc-interface/misc.c: Do not include except.h.
5313 * gcc-interface/Make-lang.in: Update dependencies.
5315 2010-06-27 Eric Botcazou <ebotcazou@adacore.com>
5317 * gcc-interface/trans.c: Include tree-flow.h.
5318 (gnu_switch_label_stack): Delete.
5319 (Case_Statement_to_gnu): Do not emit the goto at the end of a case if
5320 its associated block cannot fall through. Do not emit the final label
5321 if no cases branch to it.
5322 * gcc-interface/Make-lang.in (ada/trans.o): Add $(TREE_FLOW_H).
5324 2010-06-23 Thomas Quinot <quinot@adacore.com>
5326 * exp_attr.adb (Expand_Access_To_Protected_Op): When rewriting a
5327 reference to a protected subprogram outside of the protected's scope,
5328 ensure the corresponding external subprogram is frozen before the
5331 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5333 * sem_prag.adb: Fix typo in error message.
5334 * sem.adb: Refine previous change.
5336 2010-06-23 Robert Dewar <dewar@adacore.com>
5338 * impunit.adb, a-suewen.adb, a-suewen.ads, a-suenco.adb, a-suenco.ads,
5339 a-suezen.adb, a-suezen.ads, a-stuten.adb, a-stuten.ads, Makefile.rtl:
5340 Implement Ada 2012 string encoding packages.
5342 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5344 * a-stwiun-shared.adb, a-stwiun-shared.ads, a-stzunb-shared.adb,
5345 a-stzunb-shared.ads, a-swunau-shared.adb, a-swuwti-shared.adb,
5346 a-szunau-shared.adb, a-szuzti-shared.adb, a-strunb-shared.adb,
5347 a-strunb-shared.ads, a-stunau-shared.adb, a-suteio-shared.adb: New
5349 * gcc-interface/Makefile.in: Enable use of above files.
5351 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5353 * sem_ch13.adb (Check_Constant_Address_Clauses): Do not check legality
5354 of address clauses if if Ignore_Rep_Clauses is active.
5355 * freeze.adb (Check_Address_Clause): If Ignore_Rep_Clauses is active,
5356 remove address clause from tree so that it does not reach the backend.
5358 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5360 * exp_attr.adb (Expand_N_Attribute_Reference [Attribute_Valid]): Do not
5361 expand 'Valid from user code in CodePeer mode, will be handled by the
5364 2010-06-23 Bob Duff <duff@adacore.com>
5366 * g-comlin.ads: Minor comment improvements.
5368 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5370 * sem_res.adb (Uses_SS): The expression that initializes a controlled
5371 component of a record type may be a user-defined operator that is
5372 rewritten as a function call.
5374 2010-06-23 Bob Duff <duff@adacore.com>
5376 * g-comlin.ads, sem_ch13.adb: Minor comment fix.
5378 2010-06-23 Eric Botcazou <ebotcazou@adacore.com>
5380 * exp_ch11.adb (Expand_Local_Exception_Handlers): Propagate the end
5381 label to the new sequence of statements. Set the sloc of the raise
5382 statement onto the new goto statements.
5384 2010-06-23 Robert Dewar <dewar@adacore.com>
5386 * a-stuten.ads, a-stuten.adb: New files.
5387 * impunit.adb: Add engtry for Ada.Strings.UTF_Encoding (a-stuten.ads)
5388 * Makefile.rtl: Add entry for a-stuten (Ada.Strings.UTF_Encoding)
5390 2010-06-23 Robert Dewar <dewar@adacore.com>
5392 * gnat_ugn.texi: Add documentation of -gnat12 switch
5393 Add documentation of -gnatX switch.
5395 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5397 * inline.ads: Include the current Ada_Version in the info for pending
5398 instance bodies, so that declaration and body are compiled with the
5400 * inline.adb: Move with_clause for Opt to spec.
5401 * sem_ch12.adb (Analyze_Package_Instantiation,
5402 Analyze_Subprogram_Instantiation): Save current Ada_Version in
5403 Pending_Instantiation information.
5404 (Instantiate_Package_Body, Instantiate_Subprogram_Body,
5405 Inline_Package_Body): Use the Ada_Version present in the body
5408 2010-06-23 Robert Dewar <dewar@adacore.com>
5410 * usage.adb: Add documentation for -gnat12 switch.
5411 * errout.ads: Add VMS alias entry for -gnat12 switch
5412 * gnat_rm.texi: Add documentation for pragma Ada_12 and Ada_2012
5413 Add documentation for pragma Extensions_Allowed.
5414 * opt.ads: Add entry for Ada 2012 mode.
5415 * sem_ch4.adb, par-ch3.adb, par-ch4.adb: Use new Ada 2012 mode for 2012
5417 * sem_prag.adb, par-prag.adb: Add processing for pragma Ada_12 and
5419 * sem_ch13.adb: Add handling for Ada 2012 mode.
5420 * snames.ads-tmpl: Add entries for pragma Ada_2012 and Ada_12.
5421 * switch-c.adb: Add handling for -gnat12 switch.
5422 Implement -gnat2005 and -gnat2012.
5423 * usage.adb: Add documentation for -gnat12 switch.
5424 * vms_data.ads: Add /12 switch for Ada 2012 mode.
5426 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5428 * exp_ch4.adb (Expand_N_Allocator): Fix potential crash when using
5429 No_Task_Hierarchy restriction. Add comment.
5430 * exp_ch9.adb, exp_ch3.adb: Update comments.
5432 2010-06-23 Robert Dewar <dewar@adacore.com>
5434 * sem_ch5.adb (Process_Bounds): Remove some junk initializations.
5435 * sem_res.adb: Add comments.
5436 * sem_util.adb: Minor reformatting. Add comments.
5437 Change increment on Actuals_In_Call table.
5438 * opt.ads: Minor: add 'constant'.
5440 2010-06-23 Javier Miranda <miranda@adacore.com>
5442 * exp_disp.adb (Make_DT): Initialize the Size_Func component of the
5443 TSD to Null_Address if No_Dispatching_Calls is active.
5445 2010-06-23 Vincent Celier <celier@adacore.com>
5447 * a-comlin.ads: Indicate that use of this package is not supported
5448 during the elaboration of an auto-initialized Stand-Alone Library.
5450 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5452 * exp_util.adb (Is_Possibly_Misaligned_Object): Do not rely on an
5453 alignment clause on a record type to determine if a component may be
5454 misaligned. The decision must be taken in the back-end where target
5455 alignment information is known.
5457 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5459 * gnat1drv.adb (Adjust_Global_Switches): Enable some restrictions
5460 systematically in CodePeer mode to simplify generated code.
5461 * restrict.adb (Check_Restriction): Do nothing in CodePeer mode.
5462 * exp_ch4.adb (Expand_N_Allocator): Generate proper code when
5463 No_Task_Hierarchy is set instead of crasshing.
5465 2010-06-23 Thomas Quinot <quinot@adacore.com>
5467 * sem_util.adb: Minor code cleanup: test for proper entity instead of
5468 testing just Chars attribute when checking whether a given scope is
5470 * exp_ch4.adb, einfo.adb: Minor reformatting.
5472 2010-06-23 Vincent Celier <celier@adacore.com>
5475 * switch-m.adb (Normalize_Compiler_Switches): Take into account
5476 switches -gnatB, -gnatD=nn, -gnatG (incuding -gnatG=nn), -gnatI,
5477 -gnatl=file, -gnatS, -gnatjnn, -gnateI=nn and -gnatWx.
5479 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5481 * sem_res.adb (Resolve_Membership_Op): If left operand is a mixed mode
5482 operation with a universal real operand, and the right operand is a
5483 range with universal bounds, find unique fixed point that may be
5484 candidate, and warn appropriately.
5486 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5488 * sem_res.adb (Resolve_Intrinsic_Operator): Add guards to handle
5489 properly the rare cases where VMS operators are visible through
5490 Extend_System, but the default System is being used and Address is a
5492 * sem_util.adb: Widen predicate Is_VMS_Operator.
5494 2010-06-23 Vincent Celier <celier@adacore.com>
5496 * switch-m.adb (Normalize_Compiler_Switches): Take into account -gnatC
5499 2010-06-23 Olivier Hainque <hainque@adacore.com>
5501 * einfo.adb (Has_Foreign_Convention): Consider Intrinsic with
5502 Interface_Name as foreign. These are GCC builtin imports for
5503 which Ada specific processing doesn't apply.
5505 2010-06-23 Thomas Quinot <quinot@adacore.com>
5507 * sem_ch12.adb: Minor reformatting.
5509 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5511 * sem_util.adb (Is_VMS_Operator): Use scope of system extension to
5512 determine whether an intrinsic subprogram is VMS specific.
5514 2010-06-23 Hristian Kirtchev <kirtchev@adacore.com>
5516 * treepr.adb (Print_Entity_Info): Output the contents of Field28 if it
5517 is present in the entity.
5519 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5521 * xr_tabls.adb, xref_lib.adb: Update to latest lib-xref.ads
5522 Fix handling of parameters.
5523 Add protection against unexpected cases.
5524 * sem_ch6.adb (Create_Extra_Formals): Use suffix "L" instead of "A" for
5525 access level, since "A" suffix is already used elsewhere. Similarly,
5526 use suffix "O" instead of "C" for 'Constrained since "C" suffix is used
5529 2010-06-23 Thomas Quinot <quinot@adacore.com>
5531 * sem_util.adb, sem_util.ads: Minor reformatting.
5533 2010-06-23 Vincent Celier <celier@adacore.com>
5535 * prj.ads (Gprclean_Flags.Missing_Source_Files): Set to Error to keep
5536 the previous behavior of gprclean when there are missing files.
5538 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5540 * sem_ch12.adb (Load_Body_Of_Generic): In CodePeer mode, a missing
5541 generic body is not a fatal error.
5542 (Mark_Context): Handle properly names of child units.
5543 * sem.adb (Walk_Library_Items.Do_Action): Remove assertion on
5546 2010-06-23 Vincent Celier <celier@adacore.com>
5548 * ali.adb (Scan_ALI): When ignoring R lines, do not skip the next
5551 2010-06-23 Bob Duff <duff@adacore.com>
5553 * g-pehage.ads, g-pehage.adb: Switch default optimization mode to
5554 Memory_Space, because CPU_Time doesn't seem to provide any significant
5555 speed advantage in practice. Cleanup: Get rid of constant
5556 Default_Optimization; doesn't seem to add anything. Use case
5557 statements instead of if statements; seems cleaner.
5559 2010-06-23 Olivier Hainque <hainque@adacore.com>
5561 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Procedure>: Use
5562 Wshadow instead of Wextra to guard warning on absence of internal
5563 builtin decl for an import. Fix use of quote in warning text.
5564 (intrin_arglists_compatible_p): Remove processing of integer trailing
5565 args on the Ada side. Fix use of literal > in warning text.
5566 (intrin_return_compatible_p): Never warn on "function imported as
5567 procedure". Defer the void/void case to the common type compatibility
5569 (gnat_to_gnu_param): Use void_ptr GCC type for System.Address argument
5570 of GCC builtin imports.
5572 2010-06-23 Olivier Hainque <hainque@adacore.com>
5574 * gcc-interface/decl.c (intrin_types_incompatible_p): New function,
5576 (intrin_arglists_compatible_p, intrin_return_compatible_p): New
5577 functions, helpers for ...
5578 (intrin_profiles_compatible_p): New function, replacement for ...
5579 (compatible_signatures_p): Removed.
5580 (gnat_to_gnu_entity) <case E_Procedure>: If -Wextra, warn on
5581 attempt to bind an unregistered builtin function. When we have
5582 one, use it and warn on profile incompatibilities.
5584 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5586 * gcc-interface/Make-lang.in: Update dependencies.
5588 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5590 * sem_util.adb (Mark_Coextensions): If the expression in the allocator
5591 for a coextension in an object declaration is a concatenation, treat
5592 coextension as dynamic.
5594 2010-06-23 Javier Miranda <miranda@adacore.com>
5596 * sem_ch3.adb (Add_Internal_Interface_Entities): Ensure that the
5597 internal entities are added to the scope of the tagged type.
5598 (Derive_Subprograms): Do not stop derivation when we find the first
5599 internal entity that has attribute Interface_Alias. After the change
5600 done to Override_Dispatching_Operations it is no longer true that
5601 these primirives are always located at the end of the list of
5603 * einfo.ads (Primitive_Operations): Add documentation.
5604 * exp_disp.adb (Write_DT): Improve output adding to the name of the
5605 primitive a prefix indicating its corresponding tagged type.
5606 * sem_disp.adb (Override_Dispatching_Operations): If the overridden
5607 entity covers the primitive of an interface that is not an ancestor of
5608 this tagged type then the new primitive is added at the end of the list
5609 of primitives. Required to fulfill the C++ ABI.
5611 2010-06-23 Javier Miranda <miranda@adacore.com>
5613 * atree.ads (Set_Reporting_Proc): New subprogram.
5614 * atree.adb: Remove dependency on packages Opt and SCIL_LL.
5615 (Allocate_Initialize_Node, Replace, Rewrite): Replace direct calls
5616 to routines of package Scil_ll by indirect call to the registered
5618 (Set_Reporting_Proc): New subprogram. Used to register a subprogram
5619 that is invoked when a node is allocated, replaced or rewritten.
5620 * scil_ll.adb (Copy_SCIL_Node): New routine that takes care of copying
5621 the SCIL node. Used as argument for Set_Reporting_Proc.
5622 (Initialize): Register Copy_SCIL_Node as the reporting routine that
5623 is invoked by atree.
5625 2010-06-23 Thomas Quinot <quinot@adacore.com>
5627 * sem_ch3.ads: Minor reformatting.
5629 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5631 * sem_ch12.adb (Analyze_Package_Instantiation): In CodePeer mode,
5632 always analyze the generic body and instance, because it may be needed
5634 (Mark_Context): Prepend the with clauses for needed generic units, so
5635 they appear in a better order for CodePeer.
5636 * sem_util.adb, sem_util.ads: Prototype code for AI05-0144.
5638 2010-06-23 Emmanuel Briot <briot@adacore.com>
5640 * prj.ads, prj-nmsc.adb (Error_Or_Warning): New subprogram.
5642 2010-06-23 Robert Dewar <dewar@adacore.com>
5644 * g-pehage.adb, exp_ch13.adb: Minor reformatting.
5646 2010-06-23 Thomas Quinot <quinot@adacore.com>
5648 * a-tags.ads: Fix description of TSD structure.
5650 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5652 * sem_ch12.adb (Mark_Context): When indicating that the body of a
5653 generic unit is needed prior to the unit containing an instantiation,
5654 search recursively the context of the generic to add other generic
5655 bodies that may be instantiated indirectly through the current instance.
5657 2010-06-23 Robert Dewar <dewar@adacore.com>
5659 * freeze.adb: Minor reformatting.
5661 2010-06-23 Bob Duff <duff@adacore.com>
5663 * g-pehage.adb (Trim_Trailing_Nuls): Fix the code to match the comment.
5665 2010-06-23 Vincent Celier <celier@adacore.com>
5667 * make.adb (Compile_Sources): Complete previous change.
5669 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5671 * sem_ch6.adb (Add_Extra_Formal): Use suffix "C" in the name of the
5672 Constrained extra formal.
5674 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5676 * exp_ch13.adb (Expand_Freeze_Actions): If validity checks and
5677 Initialize_Scalars are enabled, compile the generated equality function
5678 for a composite type with full checks enabled, so that validity checks
5679 are performed on individual components.
5681 2010-06-23 Emmanuel Briot <briot@adacore.com>
5683 * prj.adb, prj.ads, prj-nmsc.adb (Processing_Flags): New flag
5684 Missing_Source_Files.
5686 2010-06-23 Robert Dewar <dewar@adacore.com>
5688 * exp_ch3.adb, exp_util.adb: Minor reformatting.
5690 2010-06-23 Jose Ruiz <ruiz@adacore.com>
5692 * a-reatim.adb, a-retide.adb: Move the initialization of the tasking
5693 run time from Ada.Real_Time.Delays to Ada.Real_Time. This way, calls to
5694 Clock (without delays) use a run time which is properly initialized.
5696 2010-06-23 Vincent Celier <celier@adacore.com>
5698 * make.adb: Do not set Check_Readonly_Files when setting Must_Compile,
5699 when -f -u and a main is specified on the command line. However,
5700 attempt to compile even when the ALI file is read-only when
5701 Must_Compile is True.
5703 2010-06-23 Thomas Quinot <quinot@adacore.com>
5705 * checks.adb, g-pehage.adb, cstand.adb: Minor code factorization.
5707 2010-06-23 Javier Miranda <miranda@adacore.com>
5709 * sem_ch3.adb (Add_Internal_Interface_Entities): Generate internal
5710 entities for parent types that are interfaces. Needed in generics to
5711 handle formals that implement interfaces.
5712 (Derive_Subprograms): Add assertion for derivation of tagged types that
5713 do not cover interfaces. For generics, complete code that handles
5714 derivation of type that covers interfaces because the previous
5715 condition was weak (it required only name consistency; arguments were
5716 not checked). Add new code to locate primitives covering interfaces
5717 defined in generic units or instantiatons.
5718 * sem_util.adb (Has_Interfaces): Add missing support for derived types.
5719 * sem_ch6.adb (Check_Overriding_Indicator): Minor code cleanups.
5720 * exp_disp.adb (Make_Select_Specific_Data_Table): Skip primitives of
5721 interfaces that are parents of the type because they share the primary
5723 (Register_Primitive): Do not register primitives of interfaces that
5724 are parents of the type.
5725 * sem_ch13.adb (Analyze_Freeze_Entity): Add documentation.
5726 * exp_cg.adb (Write_Type_Info): When displaying overriding of interface
5727 primitives skip primitives of interfaces that are parents of the type.
5729 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5731 * sem_attr.adb (Eval_Attribute): If the prefix is an array, the
5732 attribute cannot be constant-folded if an index type is a formal type,
5733 or is derived from one.
5734 * checks.adb (Determine_Range): ditto.
5736 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5738 * gnat_ugn.texi, gnatxref.adb: Add support for --ext switch.
5740 2010-06-23 Bob Duff <duff@adacore.com>
5742 * g-pehage.ads, g-pehage.adb (Put): Fix off-by-one bug.
5743 (Insert): Disallow nul characters.
5744 (misc output routines): Assert no nul characters.
5746 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5748 * exp_ch4.adb: Use predefined unsigned type in all cases.
5750 2010-06-23 Bob Duff <duff@adacore.com>
5752 * s-rannum.adb (Reset): Avoid overflow in calculation of Initiator.
5753 * g-pehage.ads: Minor comment fixes.
5754 * g-pehage.adb: Minor: Add some additional debugging printouts under
5757 2010-06-23 Robert Dewar <dewar@adacore.com>
5759 * binde.adb (Better_Choice): Always prefer Pure/Preelab.
5760 (Worse_Choice): Always prefer Pure/Preelab.
5762 2010-06-23 Vincent Celier <celier@adacore.com>
5764 * a-reatim.adb: Call System.OS_Primitives.Initialize during elaboration
5766 2010-06-23 Robert Dewar <dewar@adacore.com>
5768 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Properly handle
5769 checking returns in generic case.
5770 (Check_Missing_Return): New procedure.
5772 2010-06-23 Robert Dewar <dewar@adacore.com>
5774 * bindgen.adb, switch-b.adb: Minor reformatting.
5776 2010-06-23 Javier Miranda <miranda@adacore.com>
5778 * frontend.adb (Frontend): Add call to initialize the new package
5780 * exp_ch7.adb (Wrap_Transient_Expression): Remove call to
5782 (Wrap_Transient_Statement): Remove call to Adjust_SCIL_Node.
5783 * sem_ch5.adb (Analyze_Iteration_Scheme.Process_Bounds): Remove call to
5785 * exp_util.adb (Insert_Actions): Remove code for
5786 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
5787 (Remove_Side_Effects): Remove calls to Adjust_SCIL_Node.
5788 * sinfo.adb (SCIL_Entity, SCIL_Tag_Value): Remove checks on
5789 N_SCIL_Tag_Init and N_SCIL_Dispatch_Table_Object_Init in the assertion.
5790 (SCIL_Related_Node, Set_SCIL_Related_Node): Removed.
5791 * sinfo.ads (SCIL_Related_Node): Field removed.
5792 (N_SCIL_Dispatch_Table_Object_Init): Node removed.
5793 (N_SCIL_Tag_Init): Node removed.
5794 * sem_scil.ads, sem_scil.adb (Adjust_SCIL_Node): Removed.
5795 (Check_SCIL_Node): New implementation.
5796 (Find_SCIL_Node): Removed.
5797 * sem.adb (Analyze): Remove management of
5798 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
5799 * sem_util.adb (Insert_Explicit_Dereference): Remove call to
5801 * exp_ch4.adb (Expand_N_In): Code cleanup: remove call to
5802 Set_SCIL_Related_Node and avoid adding the SCIL node before the
5803 referenced node using Insert_Action because this is not longer
5805 (Expand_Short_Circuit_Operator): Remove call to SCIL node.
5806 * exp_ch6.adb (Expand_Call): Remove call to Adjust_SCIL_Node.
5807 * sem_ch4.adb (Analyze_Type_Conversion): Remove call to
5809 * exp_disp.adb (Expand_Dispatching_Call): Minor code reorganization
5810 because we no longer require to generate the SCIL node before the call.
5811 (Make_DT): Remove generation of SCI_Dispatch_Table_Object_Init node.
5812 Remove calls to Set_SCIL_Related_Node and avoid adding the SCIL
5813 nodes before the referenced node using Insert_Action because this
5814 is not longer required.
5815 * atree.adb (Allocate_Initialize_Node, Replace, Rewrite): Add call to
5816 update the SCIL_Node field.
5817 * sprint.adb (Sprint_Node_Actual): Remove code for
5818 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
5819 * treepr.adb (Print_Node): Print the SCIL node field (if available).
5820 * exp_ch3.adb (Build_Init_Procedure): Remove generation of
5821 SCIL_Tag_Init nodes.
5822 * scil_ll.ads, scil_ll.adb: New files.
5823 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
5826 2010-06-23 Robert Dewar <dewar@adacore.com>
5828 * sem_ch6.adb: Minor reformatting.
5830 2010-06-23 Doug Rupp <rupp@adacore.com>
5832 * bindusg.adb (Display): Write -Hnn line.
5833 * bindgen.adb (Gen_Adainit_Ada): Write Heap_Size to binder file as
5835 * init.c (__gl_heap_size): Rename from __gl_no_malloc_64 and change
5836 valid values to 32 and 64.
5837 (GNAT$NO_MALLOC_64): Recognize TRUE, 1, FALSE, and 0 in addition to
5838 ENABLE, DISABLE as valid settings.
5839 * switch-b.adb (Scan_Binder_Switches): Process -Hnn switch.
5840 * opt.ads (Heap_Size): New global variable.
5841 * gcc-interface/utils2.c (maybe_wrap_malloc): Remove mostly redundant
5842 TARGET_MALLOC64 check. Fix comment.
5844 2010-06-23 Robert Dewar <dewar@adacore.com>
5846 * sem_ch6.adb, exp_ch4.adb, s-rannum.ads, sem.adb, sem_ch12.adb: Minor
5847 reformatting. Add comments.
5848 * errout.adb (Finalize): Properly adjust warning count when deleting
5851 2010-06-22 Robert Dewar <dewar@adacore.com>
5853 * errout.adb (Finalize): Set Prev pointers.
5854 (Finalize): Delete continuations for deletion by warnings off(str).
5855 * erroutc.ads: Add Prev pointer to error message structure.
5857 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5859 * sem.adb (Do_Unit_And_Dependents): If the spec of the main unit is a
5860 child unit, examine context of parent units to locate instantiated
5861 generics whose bodies may be needed.
5862 * sem_ch12.adb: (Mark_Context): if the enclosing unit does not have a
5863 with_clause for the instantiated generic, examine the context of its
5864 parents, to set Withed_Body flag, so that it can be visited earlier.
5865 * exp_ch4.adb (Expand_N_Op_Not): If this is a VMS operator applied to
5866 an unsigned type, use a type of the proper size for the intermediate
5867 value, to prevent alignment problems on unchecked conversion.
5869 2010-06-22 Geert Bosch <bosch@adacore.com>
5871 * s-rannum.ads Change Generator type to be self-referential to allow
5872 Random to update its argument. Use "in" mode for the generator in the
5873 Reset procedures to allow them to be called from the Ada.Numerics
5874 packages without tricks.
5875 * s-rannum.adb: Use the self-referencing argument to get write access
5876 to the internal state of the random generator.
5877 * a-nudira.ads: Make Generator a derived type of
5878 System.Random_Numbers.Generator.
5879 * a-nudira.adb: Remove use of 'Unrestricted_Access.
5880 Put subprograms in alpha order and add headers.
5881 * g-mbdira.ads: Change Generator type to be self-referential.
5882 * g-mbdira.adb: Remove use of 'Unrestricted_Access.
5884 2010-06-22 Robert Dewar <dewar@adacore.com>
5886 * freeze.adb: Minor reformatting
5887 Minor code reorganization (use Nkind_In and Ekind_In).
5889 2010-06-22 Bob Duff <duff@adacore.com>
5891 * gnat1drv.adb (Gnat1drv): Remove the messages that recommend using
5892 -gnatc when a file is compiled that we cannot generate code for, not
5893 helpful and confusing.
5895 2010-06-22 Vincent Celier <celier@adacore.com>
5897 * switch-m.adb (Normalize_Compiler_Switches): Process correctly
5900 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
5902 * s-rannum.adb: Replace constants with commented symbols.
5903 * s-rannum.ads: Explain significance of the initial value of the data
5906 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5908 * a-ngcoty.adb: Clarify comment.
5910 2010-06-22 Gary Dismukes <dismukes@adacore.com>
5912 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Return without
5913 expansion for indexing packed arrays with small power-of-2 component
5914 sizes when the target is AAMP.
5915 (Expand_Packed_Element_Reference): Return without expansion for
5916 indexing packed arrays with small power-of-2 component sizes when the
5919 2010-06-22 Geert Bosch <bosch@adacore.com>
5921 * exp_ch4.adb (Expand_N_In): Do not substitute a valid check for X in
5924 2010-06-22 Robert Dewar <dewar@adacore.com>
5926 * g-mbdira.adb, g-mbflra.adb, a-nuflra.adb, a-nudira.adb: Minor comment
5929 2010-06-22 Doug Rupp <rupp@adacore.com>
5931 * system-vms.ads, system-vms-zcx.ads: Remove old unused VMS system
5933 * system-vms_64.ads, system-vms-ia64.ads: Minor reformatting.
5934 (pragma Ident): Add a default ident string in the private part.
5936 2010-06-22 Robert Dewar <dewar@adacore.com>
5938 * cstand.adb: Minor reformatting.
5940 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5942 * freeze.adb (Build_And_Analyze_Renamed_Body): For expansion purposes,
5943 recognize the Shift and Rotation intrinsics that are known to the
5944 compiler but have no interface name.
5946 2010-06-22 Geert Bosch <bosch@adacore.com>
5948 * a-ngcoty.adb ("*"): Rewrite complex multiplication to use proper
5949 scaling in case of overflow or NaN results.
5951 2010-06-22 Robert Dewar <dewar@adacore.com>
5953 * cstand.adb: Complete previous change.
5954 * g-dirope.ads: Add comment.
5955 * s-stchop.adb, sfn_scan.adb: Minor reformatting.
5957 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5959 * cstand.adb: Add tree nodes for pragma Pack on string types.
5961 2010-06-22 Javier Miranda <miranda@adacore.com>
5963 * einfo.ads, einfo.adb (Last_Formal): New synthesized attribute.
5964 * exp_util.adb (Find_Prim_Op): Use new attribute to locate the last
5965 formal of a primitive.
5966 * exp_disp.adb (Is_Predefined_Dispatching_Operation,
5967 Is_Predefined_Dispatching_Alias): Use new attribute to locate the last
5968 formal of a primitive.
5969 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Use new attribute
5970 to obtain the last formal of a primitive.
5972 2010-06-22 Geert Bosch <bosch@adacore.com>
5974 * sysdep.c, init.c, adaint.c, cstreams.c: Remove conditional code
5975 depending on __EMX__ or MSDOS being defined.
5976 * i-cstrea.ads, gnat_rm.texi: Remove mentions of OS/2, DOS and Xenix.
5977 * a-excpol-abort.adb: Update comment indicating users of the file.
5978 * xref_lib.adb, sfn_scan.adb: Remove mention of OS/2, replace NT by
5980 * env.c: Remove empty conditional for MSDOS.
5981 * s-stchop.adb, g-dirope.ads, s-fileio.adb, osint.ads: Remove mention
5984 2010-06-22 Robert Dewar <dewar@adacore.com>
5986 * s-rannum.adb: Minor reformatting.
5988 2010-06-22 Javier Miranda <miranda@adacore.com>
5990 * sem_aux.adb, sem_aux.ads, sem_util.adb, sem_util.ads, sem_elim.adb,
5991 exp_cg.adb: Minor code reorganization: Move routine Ultimate_Alias from
5992 package Sem_Util to package Sem_Aux.
5994 2010-06-22 Javier Miranda <miranda@adacore.com>
5996 * exp_disp.adb (Make_Secondary_DT, Make_DT): Minor code cleanup:
5997 remove useless restriction on imported routines when building the
6000 2010-06-22 Robert Dewar <dewar@adacore.com>
6002 * cstand.adb (Create_Standard): Set Has_Pragma_Pack for standard string
6005 2010-06-22 Javier Miranda <miranda@adacore.com>
6007 * sem_ch4.adb (Collect_Generic_Type_Ops): Protect code that handles
6008 generic subprogram declarations to ensure proper context. Add missing
6009 support for generic actuals.
6010 (Try_Primitive_Operation): Add missing support for concurrent types
6011 that have no Corresponding_Record_Type. Required to diagnose errors
6013 generics or when compiling with no code generation (-gnatc).
6014 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Do not build
6015 the corresponding record type.
6016 * sem_disp.ads, sem_disp.adb (Check_Dispatching_Operation): Complete
6017 documentation. Do minimum decoration when processing a primitive of a
6018 concurrent tagged type that covers interfaces. Required to diagnose
6019 errors in the Object.Operation notation compiling generics or under
6021 * exp_ch9.ads, exp_ch9.adb (Build_Corresponding_Record): Add missing
6022 propagation of attribute Interface_List to the corresponding record.
6023 (Expand_N_Task_Type_Declaration): Code cleanup.
6024 (Expand_N_Protected_Type_Declaration): Code cleanup.
6026 2010-06-22 Matthew Heaney <heaney@adacore.com>
6028 * a-convec.adb, a-coinve.adb: Removed 64-bit types Int and UInt.
6030 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6032 * s-rannum.adb (Random_Float_Template): Replace with unbiased version
6033 that is able to produce all representable floating-point numbers in the
6034 unit interval. Remove template parameter Shift_Right, no longer used.
6035 * gnat_rm.texi: Document the period of the pseudo-random number
6036 generator under the description of its algorithm.
6037 * gcc-interface/Make-lang.in: Update dependencies.
6039 2010-06-22 Thomas Quinot <quinot@adacore.com>
6041 * exp_aggr.adb (Rewrite_Discriminant): Fix predicate used to identify
6042 reference to discriminant (can be an expanded name as well as an
6045 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6047 * exp_ch6.adb: Clarify comment.
6049 2010-06-22 Geert Bosch <bosch@adacore.com>
6051 * exp_imgv.adb (Expand_Image_Attribute): Treat ordinary fixed point
6052 with decimal small as decimal types, avoiding FP arithmetic.
6053 (Has_Decimal_Small): New function.
6054 * einfo.ads, einfo.adb (Aft_Value): New synthesized attributed for
6056 * sem_attr.adb (Eval_Attribute): Remove Aft_Value function and update
6057 callers to call the new function in Einfo that takes the entity as
6060 2010-06-22 Robert Dewar <dewar@adacore.com>
6062 * sem_ch3.adb, sem_ch8.adb: Minor reformatting.
6064 2010-06-22 Thomas Quinot <quinot@adacore.com>
6066 * sem_elab.adb: Minor reformatting.
6068 2010-06-22 Vincent Celier <celier@adacore.com>
6070 * gnatsym.adb: Put the object files in the table in increasing
6071 aphabetical order of base names.
6073 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6075 * sem_ch8.adb (Set_Entity_Or_Discriminal): New procedure used by
6076 Find_Direct_Name and Find_Expanded_Name, to replace a discriminant with
6077 the corresponding discriminal within a record declaration.
6079 2010-06-22 Thomas Quinot <quinot@adacore.com>
6081 * exp_aggr.adb (Rewrite_Discriminant): Rewriting must occur only for an
6082 expression referring to a discriminal of the type of the aggregate (not
6083 a discriminal of some other unrelated type), and the prefix in the
6084 generated selected component must come from Lhs, not Obj.
6086 2010-06-22 Thomas Quinot <quinot@adacore.com>
6088 * sem_ch3.adb (Build_Derived_Record_Type): Fix predicate determining
6089 when to freeze the parent type.
6091 2010-06-22 Robert Dewar <dewar@adacore.com>
6093 * s-rannum.adb, a-nudira.adb, types.ads, freeze.adb, sem_aggr.adb,
6094 exp_aggr.adb: Minor reformatting.
6095 * gnat_rm.texi: Document GNAT.MBBS_Discrete_Random and
6096 GNAT.MBSS_Float_Random.
6097 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: Fix header.
6099 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6101 * a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-nuflra.ads,
6102 gnat_rm.texi, impunit.adb, Makefile.rtl, s-rannum.adb
6103 (Random_Float_Template, Random): New method of creating
6104 uniform floating-point variables that allow the creation of all machine
6107 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: New file.
6109 2010-06-22 Gary Dismukes <dismukes@adacore.com>
6111 * sem_ch5.adb (Analyze_Assignment): Revise test for illegal assignment
6112 to abstract targets to check that the type is tagged and comes from
6113 source, rather than only testing for targets of interface types. Remove
6116 2010-06-22 Vincent Celier <celier@adacore.com>
6118 * vms_data.ads: Modify the declarations of qualifiers
6119 /UNCHECKED_SHARED_LIB_IMPORTS to allow the generation of gnat.hlp
6122 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6124 * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false if
6125 expansion is disabled.
6127 2010-06-22 Robert Dewar <dewar@adacore.com>
6129 * makeusg.adb: Minor reformatting.
6131 2010-06-22 Robert Dewar <dewar@adacore.com>
6133 * types.ads: (Dint): Removed, no longer used anywhere.
6134 * uintp.adb (UI_From_CC): Use UI_From_Int, range is sufficient.
6135 (UI_Mul): Avoid use of UI_From_Dint.
6136 (UI_From_Dint): Removed, not used.
6137 * uintp.ads (UI_From_Dint): Removed, not used.
6138 (Uint_Min/Max_Simple_Mul): New constants.
6140 2010-06-22 Vincent Celier <celier@adacore.com>
6142 * clean.adb (Parse_Cmd_Line): Recognize switch
6143 --unchecked-shared-lib-imports.
6144 (Usage): Add line for switch --unchecked-shared-lib-imports
6145 * makeusg.adb: Add line for switch --unchecked-shared-lib-imports
6146 * makeutl.ads: (Unchecked_Shared_Lib_Imports): New constant string
6147 moved from GPR_Util.
6148 * switch-m.adb (Scan_Make_Switches): Recognize switch
6149 --unchecked-shared-lib-imports.
6150 * vms_data.ads: Add VMS qualifiers /UNCHECKED_SHARED_LIB_IMPORTS.
6151 * gnat_ugn.texi: Add documentation for new switch
6152 --unchecked-shared-lib-imports. Add also documentation for --subdirs.
6154 2010-06-22 Javier Miranda <miranda@adacore.com>
6156 * sem_prag.adb, sem_util.adb, sem_util.ads, sem_attr.adb, exp_ch6.adb,
6157 exp_disp.adb, sem_eval.adb, exp_dist.adb lib-xref.adb: Code cleanup,
6158 this patch replaces duplication of code that traverses the chain of
6159 aliased primitives by a call to routine Ultimate_Alias that
6160 provides this functionality.
6162 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6164 * fmap.adb, opt.ads, osint.adb, osint.ads, output.ads, scng.adb,
6165 sinput-c.adb, switch-m.ads, tree_io.ads: Use simpler form of
6168 2010-06-22 Thomas Quinot <quinot@adacore.com>
6170 * einfo.ads: Minor reformatting.
6172 2010-06-22 Javier Miranda <miranda@adacore.com>
6174 * exp_disp.adb (Expand_Interface_Thunk): Do not generate thunk of
6175 eliminated primitives.
6176 (Make_DT): Avoid referencing eliminated primitives.
6177 (Register_Primitive): Do not register eliminated primitives in the
6178 dispatch table. Required to add this functionality when the program is
6179 compiled without static dispatch tables (-gnatd.t)
6181 2010-06-22 Emmanuel Briot <briot@adacore.com>
6183 * fmap.adb, scng.adb, switch-m.ads, sinput-c.adb, opt.ads, output.ads,
6184 tree_io.ads, osint.adb, osint.ads: Use configuration pragmas to prevent
6185 warnings on use of internal GNAT units.
6187 2010-06-22 Jose Ruiz <ruiz@adacore.com>
6189 * s-taprop-vxworks.adb (Set_Priority): Update comments.
6191 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6193 * s-rannum.adb: Make stylistic change to remove mystery constant in
6194 Extract_Value. Image_Numeral_Length: new symbolic constant.
6196 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6198 * einfo.ads, einfo.adb: Make Is_Protected_Interface,
6199 Is_Synchronized_Interface, Is_Task_Interface into computable
6200 predicates, to free three flags in entity nodes.
6201 * sem_ch3.adb: Remove setting of these flags.
6203 2010-06-22 Robert Dewar <dewar@adacore.com>
6205 * uintp.adb, osint.adb, prj-conf.adb, prj-part.adb, prj.adb: Minor
6207 * s-taprop-vxworks.adb: Add comment for Set_Priority.
6208 * impunit.adb (Map_Array): Add entries for s-htable.ads and s-crc32.ads
6209 * projects.texi: Move @cindex to the left margin, since otherwise we
6210 are missing entries in the index.
6212 2010-06-22 Emmanuel Briot <briot@adacore.com>
6214 * prj-part.adb, prj.adb, tempdir.ads, makeutl.adb: Use
6215 packages from the GNAT hierarchy instead of System when possible.
6216 * gcc-interface/Make-lang.in: Update dependencies.
6218 2010-06-22 Jose Ruiz <ruiz@adacore.com>
6220 * s-taprop-vxworks.adb (Set_Priority): Remove the code that was
6221 previously in place to reorder the ready queue when a task drops its
6222 priority due to the loss of inherited priority.
6224 2010-06-22 Vincent Celier <celier@adacore.com>
6226 * projects.texi: Minor spelling error fixes.
6229 2010-06-22 Emmanuel Briot <briot@adacore.com>
6231 * prj-part.adb, prj-ext.adb, prj.adb, makeutl.adb, prj-conf.adb: Remove
6232 warnings for some with clauses.
6234 2010-06-22 Robert Dewar <dewar@adacore.com>
6236 * errout.adb (Unwind_Internal_Type): Improve handling of First_Subtype
6237 test to catch more cases where first subtype is the results we want.
6238 * sem_res.adb (Make_Call_Into_Operator): Don't go to First_Subtype in
6239 error case, since Errout will now handle this correctly.
6240 * gcc-interface/Make-lang.in: Add Sem_Aux to list of GNATBIND objects.
6241 Update dependencies.
6243 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6245 * exp_ch4.adb (Expand_Allocator_Expression): Set Related_Node properly
6246 when calling Make_Temporary.
6248 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6250 * sem_ch3.adb (Access_Subprogram_Declaration): An anonymous access to
6251 subprogram can be associated with an entry body.
6253 2010-06-22 Robert Dewar <dewar@adacore.com>
6255 * scos.ads: Add note on membership test handling.
6257 2010-06-22 Vincent Celier <celier@adacore.com>
6259 * projects.texi: Minor spelling fixes.
6262 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6264 * s-rannum.adb: Correct off-by-one error in Extract_Value.
6266 2010-06-22 Vincent Celier <celier@adacore.com>
6268 * mlib-prj.adb (Display): In non verbose mode, truncate after fourth
6270 * mlib-utl.adb (Gcc): In non verbose mode, truncate the display of the
6271 gcc command if it is too long.
6273 2010-06-22 Robert Dewar <dewar@adacore.com>
6275 * errout.adb (Set_Msg_Node): Fix incorrect reference to node.
6277 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6279 * exp_ch6.adb (Expand_Actuals): Use Actual as the related node when
6280 calling Make_Temporary.
6282 2010-06-22 Robert Dewar <dewar@adacore.com>
6284 * sem_res.adb, sem_aux.adb, errout.adb: Minor reformatting.
6286 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6288 * sem_res.adb: Additional special-case for VMS.
6290 2010-06-22 Vincent Celier <celier@adacore.com>
6292 * gnatsym.adb: Minor comment fix.
6294 2010-06-22 Vincent Celier <celier@adacore.com>
6296 * prj-nmsc.adb (Process_Naming_Scheme): Initialize Lib_Data_Table.
6298 2010-06-22 Robert Dewar <dewar@adacore.com>
6300 * par-ch4.adb (P_Name): Recognize 'Mod attribute in Ada 95 mode
6301 * sem_attr.adb (Attribute_05): Add Name_Mod so that 'Mod recognized in
6302 Ada 95 mode as an implementation defined attribute.
6304 2010-06-22 Vincent Celier <celier@adacore.com>
6306 * bindusg.adb (Display): Update line for -R
6307 * switch-b.adb (Scan_Binder_Switches): Allow generation of the binder
6308 generated files when -R is used.
6310 2010-06-22 Vincent Celier <celier@adacore.com>
6312 * prj-nmsc.adb (Lib_Data_Table): New table.
6313 (Check_Library_Attributes): Check if the same library name is used in
6314 two different projects that do not extend each other.
6316 2010-06-22 Robert Dewar <dewar@adacore.com>
6318 * lib-writ.ads, errout.adb, einfo.adb, einfo.ads: Minor reformatting.
6320 2010-06-22 Vincent Celier <celier@adacore.com>
6322 * adaint.c (__gnat_locate_regular_file): If a directory in the path is
6323 empty, make it the current working directory.
6325 2010-06-22 Thomas Quinot <quinot@adacore.com>
6327 * sem_ch3.adb (Build_Derived_Record_Type): When deriving a tagged
6328 private type with discriminants, make sure the parent type is frozen.
6330 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
6332 * exp_attr.adb (Expand_N_Attribute_Reference) <Attribute_Bit>: Deal
6333 with packed array references specially.
6334 * exp_ch4.adb (Expand_N_Indexed_Component): Do not convert a reference
6335 to a component of a bit packed array if it is the prefix of 'Bit.
6336 * exp_pakd.ads (Expand_Packed_Bit_Reference): Declare.
6337 * exp_pakd.adb (Expand_Packed_Bit_Reference): New procedure. Expand a
6338 'Bit reference, where the prefix involves a packed array reference.
6339 (Get_Base_And_Bit_Offset): New helper, extracted from...
6340 (Expand_Packed_Address_Reference): ...here. Call above procedure to
6341 get the outer object and offset expression.
6343 2010-06-22 Thomas Quinot <quinot@adacore.com>
6345 * exp_attr.adb, lib-writ.ads, bindgen.adb: Minor reformatting.
6346 * einfo.adb (Related_Expression, Set_Related_Expression): Add
6349 2010-06-22 Javier Miranda <miranda@adacore.com>
6351 * sem_ch3.adb (Add_Internal_Interface_Entities): Minor code
6352 reorganization to properly check if the operation has been inherited as
6353 an abstract operation.
6355 2010-06-22 Ed Falis <falis@adacore.com>
6357 * s-osinte-vxworks.ads: Complete previous change.
6359 2010-06-22 Thomas Quinot <quinot@adacore.com>
6361 * sem_res.adb: Add comment.
6362 * projects.texi, gnat_ugn.texi: Remove macro.
6364 2010-06-22 Vincent Celier <celier@adacore.com>
6366 * prj-attr.adb: Remove project level attribute Main_Language.
6368 2010-06-22 Robert Dewar <dewar@adacore.com>
6370 * switch-b.adb, osint-b.adb: Minor reformatting.
6372 2010-06-22 Pascal Obry <obry@adacore.com>
6374 * g-socthi-mingw.adb (C_Sendmsg): Do not attempt to send data from a
6375 vector if previous send was not fully successful. If only part of
6376 the vector data was sent, we exit the loop.
6378 2010-06-22 Thomas Quinot <quinot@adacore.com>
6380 * sem_res.adb (Make_Call_Into_Operator): Use First_Subtype for better
6381 error reporting with generic types.
6383 2010-06-22 Thomas Quinot <quinot@adacore.com>
6385 * bindgen.adb, bindusg.adb, gnatbind.adb, gnat_ugn.texi, opt.ads,
6386 osint-b.adb, osint-b.ads, output.adb, output.ads, switch-b.adb,
6387 vms_data.ads: Add a new command line switch -A to gnatbind to output
6388 the list of all ALI files for the partition.
6390 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6392 * s-osinte-vxworks.ads: Fix casing.
6393 * s-vxwext-kernel.ads, s-vxwext-rtp.ads: Complete previous
6394 change: Interfaces.C does not provide a long_long type.
6396 2010-06-22 Emmanuel Briot <briot@adacore.com>
6398 * gnat_ugn.texi, projects.texi: Preprocess projects.texi for VMS and
6399 native user's guide, since this document contains the two versions.
6400 * gcc-interface/Make-lang.in: Update doc dependencies.
6402 2010-06-22 Robert Dewar <dewar@adacore.com>
6404 * sem_ch3.adb: Minor reformatting. Minor code reorganization.
6406 2010-06-22 Emmanuel Briot <briot@adacore.com>
6408 * gnat_ugn.texi, projects.texi: Remove toplevel menu, since we should
6409 not build this file on its own (only through gnat_ugn.texi).
6410 Remove macro definitions and insert simpler version in gnat_ugn.texi.
6412 2010-06-22 Robert Dewar <dewar@adacore.com>
6414 * ali-util.ads: Minor comment update.
6415 * g-socthi-mingw.adb: Minor reformatting.
6417 2010-06-22 Ed Falis <falis@adacore.com>
6419 * s-osinte-vxworks.ads: Take sigset_t definition of System.VxWorks.Ext.
6420 * s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads: Define sigset_t
6421 for specific versions of VxWorks.
6423 2010-06-22 Emmanuel Briot <briot@adacore.com>
6425 * gnat_rm.texi, gnat_ugn.texi, projects.texi: Remove all project files
6426 related sections from user's guide and reference manual, since they
6427 have now been merged together into a separate document (projects.texi).
6428 This removes a lot of duplication where attributes where described
6430 The grammar for the project files is now in each of the sections
6431 (packages,expressions,...) instead of being duplicates in two other
6432 sections (one in the user's guide that contained the full grammar,
6433 and various sections in the rm that contained extracts of the same
6435 Added the full list of all supported attributes, since existing lists
6437 Rename "associative array" into "indexed attribute"
6438 Remove sections that were duplicates ("External References in
6439 Project Files" and "External Values", and "Project Extensions"
6440 for instance). The list of valid packages in project files is now in
6443 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6445 * sem_ch3.adb (Add_Internal_Interface_Entities): If
6446 Find_Primitive_Covering_Interface does not find the operation, it may
6447 be because of a name conflict between the inherited operation and a
6448 local non-overloadable name. In that case look for the operation among
6449 the primitive operations of the type. This search must succeed
6450 regardless of visibility.
6452 2010-06-22 Pascal Obry <obry@adacore.com>
6454 * g-socthi-mingw.adb: Properly honor MSG_WAITALL in recvmsg.
6455 (C_Recvmsg): Propely honor the MSG_WAITALL flag in Windows
6458 2010-06-22 Robert Dewar <dewar@adacore.com>
6460 * sem_ch4.adb (Analyze_Conditional_Expression): Defend against
6462 * sprint.adb (Sprint_Node_Actual, case N_Conditional_Expression):
6465 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6467 * s-intman-vxworks.ads: Code clean up.
6469 2010-06-22 Thomas Quinot <quinot@adacore.com>
6471 * sem_res.adb (Resolve_Slice): When the prefix is an explicit
6472 dereference, construct actual subtype of designated object to generate
6473 proper bounds checks.
6475 2010-06-22 Thomas Quinot <quinot@adacore.com>
6477 * ali-util.adb, ali-util.ads, gnatbind.adb (Read_ALI): Rename to
6478 Read_Withed_ALIs, which is more descriptive.
6480 2010-06-22 Pascal Obry <obry@adacore.com>
6482 * g-sothco.ads: Minor reformatting.
6483 * g-socthi-mingw.adb: Remove part of work on the C_Recvmsg and
6484 C_Sendmsg implementation.
6485 (C_Sendmsg): Do not use lock (not needed).
6486 (C_Recvmsg): Likewise and also do not wait for incoming data.
6488 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6490 * uintp.adb: Fix scope error in operator call.
6492 2010-06-22 Vincent Celier <celier@adacore.com>
6494 * makeutl.adb (Executable_Prefix_Path): on VMS, return "/gnu/".
6495 * prj-conf.adb (Get_Or_Create_Configuration_File): On VMS, if
6496 autoconfiguration is needed, fail indicating that no config project
6497 file can be found, as there is no autoconfiguration on VMS.
6499 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6501 * sem_res.adb (Make_Call_Into_Operator): Diagnose an incorrect scope
6502 for an operator in a functional notation, when operands are universal.
6504 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6506 * gcc-interface/Make-lang.in: Update dependencies.
6508 2010-06-22 Robert Dewar <dewar@adacore.com>
6510 * sem_aggr.adb (Resolve_Record_Aggregate): Do style check on component
6512 * sem_ch10.adb (Analyze_Subunit): Do style check on parent unit name.
6513 * sem_ch8.adb (Find_Direct_Name): For non-overloadable entities, do
6515 * sem_res.adb (Resolve_Entity_Name): Do style check for enumeration
6518 2010-06-22 Vincent Celier <celier@adacore.com>
6520 * make.adb (Scan_Make_Arg): No longer pass -nostdlib to the compiler as
6521 it has no effect. Always pass -nostdlib to gnatlink, even on VMS.
6523 2010-06-22 Pascal Obry <obry@adacore.com>
6525 * g-socthi-mingw.adb: Fix implementation of the vectored sockets on
6527 (C_Recvmsg): Make sure the routine is atomic. Also fully
6528 fill vectors in the proper order.
6529 (C_Sendmsg): Make sure the routine is atomic.
6531 2010-06-22 Robert Dewar <dewar@adacore.com>
6533 * sem_ch8.adb: Update comment.
6534 * sem_res.adb: Minor code reorganization (use Ekind_In).
6536 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6538 * sem_ch8.adb (Add_Implicit_Operator): If the context of the expanded
6539 name is a call, use the number of actuals to determine whether this is
6540 a binary or unary operator, rather than relying on later information
6541 to resolve the overload.
6543 2010-06-22 Robert Dewar <dewar@adacore.com>
6545 * sem_ch10.adb, sem_aggr.adb: Minor reformatting.
6547 2010-06-22 Robert Dewar <dewar@adacore.com>
6549 * sem_ch3.adb, sem_disp.adb: Minor code fixes.
6550 * sem_eval.adb: Minor reformatting.
6552 2010-06-22 Vincent Celier <celier@adacore.com>
6554 * make.adb (Scan_Make_Arg): When invoked with -nostdlib, pass -nostdlib
6555 to gnatlink, except on Open VMS.
6556 * osint.adb (Add_Default_Search_Dirs): Do not suppress the default
6557 object directories if -nostdlib is used.
6559 2010-06-22 Robert Dewar <dewar@adacore.com>
6561 * sem_util.adb (Is_Delegate): Put in proper alpha order.
6562 * sem_eval.adb: Minor reformatting.
6564 2010-06-22 Robert Dewar <dewar@adacore.com>
6566 * g-expect-vms.adb, sem_res.adb: Minor reformatting.
6567 * exp_aggr.adb: Minor comment changes and reformatting.
6568 * sem_eval.adb (Find_Universal_Operator_Type): Put in proper alpha
6570 * sem_util.ads: Add some missing pragma Inline's.
6572 2010-06-22 Thomas Quinot <quinot@adacore.com>
6574 * sem_util.adb (Build_Actual_Subtype): Record original expression in
6575 Related_Expression attribute of the constructed subtype.
6576 * einfo.adb, einfo.ads (Underlying_View): Move to Node28 to free up
6577 Node24 on types for...
6578 (Related_Expression): Make attribute available on types as well.
6580 2010-06-22 Gary Dismukes <dismukes@adacore.com>
6582 * exp_util.adb (Find_Interface_ADT): Retrieve Designated_Type instead
6583 of Directly_Designated_Type when the type argument is an access type.
6584 (Find_Interface_Tag): Retrieve Designated_Type instead of
6585 Directly_Designated_Type when the type argument is an access type.
6586 (Has_Controlled_Coextensions): Retrieve Designated_Type instead of
6587 Directly_Designated_Type of each access discriminant.
6588 * sem_res.adb (Resolve_Type_Conversion): Retrieve Designated_Type
6589 instead of Directly_Designated_Type when the operand and target types
6592 2010-06-22 Thomas Quinot <quinot@adacore.com>
6594 * exp_aggr.adb (Flatten): Return False if one choice is statically
6595 known to be out of bounds.
6597 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6599 * sem_res.adb (Resolve_Call): If the call is rewritten as an indexed of
6600 a parameterless function call, preserve parentheses of original
6601 expression, for proper handling by pretty printer.
6602 * sem_attr.adb (Analyze_Attribute, case 'Old): Add guard to Process
6603 procedure, to handle quietly identifiers that have no entity names.
6604 * exp_util.adb (Get_Current_Value_Condition): If the parent of an
6605 elsif_part is missing, it has been rewritten as a nested if, and there
6606 is no useful information on the current value of the variable.
6608 2010-06-22 Gary Dismukes <dismukes@adacore.com>
6610 * sem_ch3.adb (Build_Discriminal): Set default scopes for newly created
6611 discriminals to the current scope.
6612 * sem_util.adb (Find_Body_Discriminal): Remove setting of discriminal's
6613 scope, which could overwrite a different already set value.
6615 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6617 * sem_res.adb (Valid_Conversion): If expression is a predefined
6618 operator, use sloc of type of interpretation to improve error message
6619 when operand is of some derived type.
6620 * sem_eval.adb (Is_Mixed_Mode_Operand): New function, use it.
6622 2010-06-22 Emmanuel Briot <briot@adacore.com>
6624 * g-expect-vms.adb (Expect_Internal): No longer raises an exception, so
6625 that it can set out parameters as well. When a process has died, reset
6626 its Input_Fd to Invalid_Fd, so that when using multiple processes we
6627 can find out which process has died.
6629 2010-06-22 Thomas Quinot <quinot@adacore.com>
6631 * sem_eval.adb (Find_Universal_Operator_Type): New
6632 subprogram to identify the operand type of an operator on universal
6633 operands, when an explicit scope indication is present. Diagnose the
6634 case where such a call is ambiguous.
6635 (Eval_Arithmetic_Op, Eval_Relational_Op, Eval_Unary_Op):
6636 Use the above to identify the operand type so it can be properly
6638 * sem_res.adb (Make_Call_Into_Operator): Remove bogus freeze of operand
6639 type, done in an arbitrary, possibly incorrect type (the presence of
6640 some numeric type in the scope is checked for legality, but when more
6641 than one such type is in the scope, we just pick a random one, not
6642 necessarily the expected one).
6643 * sem_utils.ads, sem_utils.adb (Is_Universal_Numeric_Type): New utility
6646 2010-06-22 Robert Dewar <dewar@adacore.com>
6648 * sem_eval.adb: Minor reformatting.
6650 2010-06-22 Robert Dewar <dewar@adacore.com>
6652 * exp_ch4.adb (Expand_N_Conditional_Expression): Use
6653 Expression_With_Actions to clean up the code generated when folding
6654 constant expressions.
6656 2010-06-22 Vincent Celier <celier@adacore.com>
6658 * g-expect-vms.adb: Add new subprograms Free, First_Dead_Process and
6661 2010-06-22 Vincent Celier <celier@adacore.com>
6663 * prj-nmsc.adb (Find_Sources): When a source from a multi-unit file is
6664 found, check if it's path has aready been found, whatever its index.
6666 2010-06-22 Robert Dewar <dewar@adacore.com>
6668 * atree.adb, gnatbind.adb: Minor reformatting.
6669 Minor code reorganization.
6671 2010-06-21 Robert Dewar <dewar@adacore.com>
6673 * exp_ch4.adb (Expand_N_Conditional_Expression): Fold if condition
6674 known at compile time.
6676 2010-06-21 Gary Dismukes <dismukes@adacore.com>
6678 * atree.adb: Fix comment typo.
6680 2010-06-21 Ed Schonberg <schonberg@adacore.com>
6682 * sem_eval.adb (Test_Ambiguous_Operator): New procedure to check
6683 whether a universal arithmetic expression in a conversion, which is
6684 rewritten from a function call with an expanded name, is ambiguous.
6686 2010-06-21 Vincent Celier <celier@adacore.com>
6688 * prj-nmsc.adb (Name_Location): New Boolean component Listed, to record
6689 source files in specified list of sources.
6690 (Check_Package_Naming): Remove out parameters Bodies and Specs, as they
6692 (Add_Source): Set the Location of the new source
6693 (Process_Exceptions_File_Based): Call Add_Source with the Location
6694 (Get_Sources_From_File): If an exception is found, set its Listed to
6696 (Find_Sources): When Source_Files is specified, if an exception is
6697 found, set its Listed to True. Remove any exception that is not in a
6698 specified list of sources.
6699 * prj.ads (Source_Data): New component Location
6701 2010-06-21 Vincent Celier <celier@adacore.com>
6703 * gnatbind.adb (Closure_Sources): Global table, moved from block.
6705 2010-06-21 Thomas Quinot <quinot@adacore.com>
6707 * sem_res.adb: Minor reformatting.
6708 * atree.adb: New debugging hook "rr" for node rewrites.
6710 2010-06-21 Robert Dewar <dewar@adacore.com>
6712 * g-expect.ads, g-expect.adb: Minor reformatting.
6714 2010-06-21 Emmanuel Briot <briot@adacore.com>
6716 * s-regpat.adb (Next_Pointer_Bytes): New named constant. Code clean up.
6718 2010-06-21 Arnaud Charlet <charlet@adacore.com>
6720 * gcc-interface/Make-lang.in: Update dependencies.
6722 2010-06-21 Thomas Quinot <quinot@adacore.com>
6724 * bindgen.ads: Update comments.
6726 2010-06-21 Vincent Celier <celier@adacore.com>
6728 * gnatbind.adb: Suppress dupicates when listing the sources in the
6729 closure (switch -R).
6731 2010-06-21 Emmanuel Briot <briot@adacore.com>
6733 * s-regpat.adb (Link_Tail): Fix error when size of the pattern matcher
6736 2010-06-21 Emmanuel Briot <briot@adacore.com>
6738 * g-expect.adb, g-expect.ads (First_Dead_Process, Free, Has_Process):
6740 (Expect_Internal): No longer raises an exception, so that it can set
6741 out parameters as well. When a process has died, reset its Input_Fd
6742 to Invalid_Fd, so that when using multiple processes we can find out
6743 which process has died.
6745 2010-06-21 Robert Dewar <dewar@adacore.com>
6747 * s-regpat.adb, s-tpoben.adb, sem_attr.adb, sem_util.adb, sem_util.ads,
6748 checks.adb, sem_res.adb: Minor reformatting. Add comments.
6750 2010-06-21 Ed Schonberg <schonberg@adacore.com>
6752 * sem_ch6.adb (New_Overloaded_Entity): If the new entity is a
6753 rederivation associated with a full declaration in a private part, and
6754 there is a partial view that derives the same parent subprogram, the
6755 new entity does not become visible. This check must be applied to
6756 interface operations as well.
6758 2010-06-21 Thomas Quinot <quinot@adacore.com>
6760 * checks.adb: Add comments.
6761 * prj-nmsc.adb: Minor reformatting.
6763 2010-06-21 Thomas Quinot <quinot@adacore.com>
6765 * sem_ch9.adb, checks.adb, sem_util.adb, sem_util.ads, sem_res.adb,
6766 sem_attr.adb (Get_E_First_Or_Last): Use attribute references on E to
6767 extract bounds, to ensure that we get the proper captured values,
6768 rather than an expression that may have changed value since the point
6769 where the subtype was elaborated.
6770 (Find_Body_Discriminal): New utility subprogram to share code
6772 (Eval_Attribute): For the case of a subtype bound that references a
6773 discriminant of the current concurrent type, insert appropriate
6774 discriminal reference.
6775 (Resolve_Entry.Actual_Index_Type.Actual_Discriminant_Ref): For a
6776 requeue to an entry in a family in the current task, use corresponding
6778 (Analyze_Accept_Statement): Rely on expansion of attribute references
6779 to insert proper discriminal references in range check for entry in
6782 2010-06-21 Emmanuel Briot <briot@adacore.com>
6784 * s-regpat.adb (Compile): Fix handling of big patterns.
6786 2010-06-21 Robert Dewar <dewar@adacore.com>
6788 * a-tifiio.adb: Minor reformatting.
6790 2010-06-21 Pascal Obry <obry@adacore.com>
6792 * prj-nmsc.adb (Search_Directories): Use the non-translated directory
6795 2010-06-21 Javier Miranda <miranda@adacore.com>
6797 * exp_cg.adb (Write_Call_Info): Fill the component sourcename using the
6800 2010-06-21 Ed Schonberg <schonberg@adacore.com>
6802 * exp_ch4.adb (Expand_Concatenate): If an object declaration is created
6803 to hold the result, indicate that the target of the declaration does
6804 not need an initialization, to prevent spurious errors when
6805 Initialize_Scalars is enabled.
6807 2010-06-21 Ed Schonberg <schonberg@adacore.com>
6809 * a-tifiio.adb (Put): In the procedure that performs I/O on a String,
6810 Fore is not bound by line length. The Fore parameter of the internal
6811 procedure that performs the operation is an integer.
6813 2010-06-21 Thomas Quinot <quinot@adacore.com>
6815 * sem_res.adb, checks.adb: Minor reformatting.
6817 2010-06-21 Emmanuel Briot <briot@adacore.com>
6819 * s-regpat.adb (Next_Instruction, Get_Next_Offset): Removed, merged
6821 (Insert_Operator_Before): New subprogram, avoids duplicated code
6822 (Compile): Avoid doing two compilations when the pattern matcher ends
6825 2010-06-21 Emmanuel Briot <briot@adacore.com>
6827 * s-regpat.adb: Improve debug traces
6828 (Dump): Change output format to keep it smaller.
6830 2010-06-21 Javier Miranda <miranda@adacore.com>
6832 * exp_cg.adb (Generate_CG_Output): Disable redirection of standard
6833 output to the output file when this routine completes its work.
6835 2010-06-20 Eric Botcazou <ebotcazou@adacore.com>
6837 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Use while instead of
6838 for loop. Call build_constructor_from_list directly in the CICO case.
6840 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6842 * freeze.adb (Build_And_Analyze_Renamed_Body): If the renaming
6843 declaration appears in the same unit and ealier than the renamed
6844 entity, retain generated body to prevent order-of-elaboration issues in
6847 2010-06-18 Arnaud Charlet <charlet@adacore.com>
6849 * s-tpoben.adb: Update comments.
6851 2010-06-18 Robert Dewar <dewar@adacore.com>
6853 * debug.adb: Minor comment change.
6855 2010-06-18 Javier Miranda <miranda@adacore.com>
6857 * exp_cg.adb: Code clean up.
6858 * debug.adb: Complete documentation of switch -gnatd.Z.
6859 * gcc-interface/misc.c (callgraph_info_file): Declare.
6861 2010-06-18 Javier Miranda <miranda@adacore.com>
6863 * exp_cg.adb (Homonym_Suffix_Length): Minor code reorganization.
6865 2010-06-18 Thomas Quinot <quinot@adacore.com>
6867 * sprint.ads: Minor reformatting.
6868 * output.ads: Update obsolete comment.
6870 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6872 * freeze.adb (Build_And_Analyze_Renamed_Body): if the renamed entity is
6873 an external intrinsic operation (e.g. a GCC numeric function) indicate
6874 that the renaming entity has the same characteristics, so a call to it
6875 is properly expanded.
6877 2010-06-18 Javier Miranda <miranda@adacore.com>
6879 * exp_cg.adb, exp_cg.ads, exp_disp.adb, gnat1drv.adb: Add initial
6880 support for dispatch table/callgraph info generation.
6881 * gcc-interface/Make-lang.in: Update dependencies.
6883 2010-06-18 Robert Dewar <dewar@adacore.com>
6885 * exp_ch6.adb: Minor reformatting.
6886 * gnatname.adb: Add comment.
6888 2010-06-18 Vincent Celier <celier@adacore.com>
6890 * gnatname.adb (Scan_Args): When --and is used, make sure that the
6891 dynamic tables in the newly allocated Argument_Data are properly
6894 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
6896 * gnat1drv.adb: Fix comment.
6898 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6900 * exp_ch6.adb (Expand_Inlined_Call): If the inlined subprogram is a
6901 renaming, re-expand the call with the renamed subprogram if that one
6902 is marked inlined as well.
6904 2010-06-18 Gary Dismukes <dismukes@adacore.com>
6906 * gnat1drv.adb (Adjust_Global_Switches): Enable
6907 Use_Expression_With_Actions for AAMP and VM targets.
6909 2010-06-18 Vincent Celier <celier@adacore.com>
6911 * prj-nmsc.adb (Process_Linker): Recognize response file format GCC.
6913 2010-06-18 Thomas Quinot <quinot@adacore.com>
6915 * exp_ch4.adb: Minor reformatting.
6917 2010-06-18 Javier Miranda <miranda@adacore.com>
6919 * debug.ads Add documentation on -gnatd.Z.
6921 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6923 * sem_elim.adb: Proper error message on improperly eliminated instances
6925 2010-06-18 Vincent Celier <celier@adacore.com>
6927 * prj.ads (Response_File_Format): New value GCC.
6929 2010-06-18 Thomas Quinot <quinot@adacore.com>
6931 * gnat1drv.adb: Minor reformatting.
6933 2010-06-18 Robert Dewar <dewar@adacore.com>
6935 * make.adb, sem_cat.adb: Minor reformatting.
6936 * sem_eval.adb: Fix typos.
6938 2010-06-18 Pascal Obry <obry@adacore.com>
6940 * prj-nmsc.adb: Fix source filenames casing in debug output.
6942 2010-06-18 Robert Dewar <dewar@adacore.com>
6944 * gnatcmd.adb: Minor reformatting.
6946 2010-06-18 Robert Dewar <dewar@adacore.com>
6948 * sem_eval.adb (Eval_Conditional_Expression): Result is static if
6949 condition and both sub-expressions are static (and result is selected
6952 2010-06-18 Robert Dewar <dewar@adacore.com>
6954 * g-pehage.adb: Minor reformatting
6956 2010-06-18 Pascal Obry <obry@adacore.com>
6958 * prj-nmsc.adb (Search_Directories): Insert canonical filenames into
6961 2010-06-18 Arnaud Charlet <charlet@adacore.com>
6963 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
6964 dependencies. Fix target pairs on darwin.
6965 (gnatlib-sjlj, gnatlib-zcx): Pass THREAD_KIND.
6967 2010-06-18 Pascal Obry <obry@adacore.com>
6969 * make.adb, prj-nmsc.adb: Fix source filenames casing in debug output.
6971 2010-06-18 Vincent Celier <celier@adacore.com>
6973 * gnatcmd.adb: For gnatcheck, add -gnatec= switch for a global
6974 configuration pragmas file and, if -U is not used, for a local one.
6976 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6978 * sem_elim.adb (Check_Eliminated): Use full information on entity name
6979 when it is given in the pragma by a selected component.
6980 (Check_For_Eliminated_Subprogram): Do no emit error if within a
6981 instance body that is itself within a generic unit.
6982 * sem_ch12.adb (Analyze_Subprogram_Instance): If the subprogram is
6983 eliminated, mark as well the anonymous subprogram that is its alias
6984 and appears within the wrapper package.
6986 2010-06-18 Bob Duff <duff@adacore.com>
6988 * g-pehage.ads, g-pehage.adb (Produce): Clean up some of the code.
6989 Raise an exception if the output file cannot be opened. Add comments.
6991 2010-06-18 Thomas Quinot <quinot@adacore.com>
6993 * sem_cat.adb (Validate_Object_Declaration): A variable declaration is
6994 not illegal per E.2.2(7) if it occurs in the private part of a
6997 2010-06-18 Arnaud Charlet <charlet@adacore.com>
6999 * par-ch9.adb, sem_aggr.adb, sem_ch3.adb, layout.adb, sem_ch4.adb,
7000 sem_ch5.adb, sem_mech.adb, exp_util.adb, par-ch10.adb, sem_ch6.adb,
7001 par-ch11.adb, sem_ch7.adb, par-prag.adb, exp_disp.adb, par-ch12.adb,
7002 sem_ch8.adb, style.adb, sem_ch9.adb, sem_ch10.adb, prep.adb,
7003 sem_warn.adb, par-util.adb, scng.adb, sem_eval.adb, checks.adb,
7004 sem_prag.adb, sem_ch12.adb, styleg.adb, sem_ch13.adb, par-ch3.adb,
7005 par-tchk.adb, freeze.adb, sfn_scan.adb, par-ch4.adb, sem_util.adb,
7006 sem_res.adb, par-ch5.adb, lib-xref.adb, sem_attr.adb, par-ch6.adb,
7007 sem_disp.adb, prepcomp.adb, par-ch7.adb, sem_elab.adb, exp_ch4.adb,
7008 errout.ads: Update comments. Minor reformatting.
7010 * g-spipat.adb, a-swunau.adb, a-swunau.ads, g-spitbo.adb,
7011 a-szunau.adb, a-szunau.ads, a-stunau.adb, a-stunau.ads,
7012 a-strunb.adb (Big_String. Big_String_Access): New type.
7014 * par-labl.adb, restrict.adb, s-osinte-hpux-dce.ads, sem_ch11.adb,
7015 exp_pakd.adb, s-filofl.ads, par-endh.adb, exp_intr.adb, sem_cat.adb,
7016 sem_case.adb, exp_ch11.adb, s-osinte-linux.ads: Fix copyright notices.
7018 2010-06-18 Geert Bosch <bosch@adacore.com>
7020 * i-forbla-darwin.adb: Include -lgnala and -lm in linker options for
7023 2010-06-18 Robert Dewar <dewar@adacore.com>
7025 * gnat1drv.adb (Adjust_Global_Switches): Set Use_Expression_With_Actions
7028 2010-06-18 Robert Dewar <dewar@adacore.com>
7030 * sprint.adb: Minor format change for N_Expression_With_Actions.
7031 * repinfo.adb: Minor reformatting.
7033 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7035 * sem_elim.adb (Check_Eliminated): If within a subunit, use
7036 Defining_Entity to obtain the name of the entity in the proper body, to
7037 properly handle both separate packages and subprograms.
7039 2010-06-18 Emmanuel Briot <briot@adacore.com>
7041 * prj-nmsc.adb (Check_File): New parameter Display_Path.
7043 2010-06-18 Thomas Quinot <quinot@adacore.com>
7045 * g-socket.adb, g-socket.ads (Null_Selector): New object.
7047 2010-06-18 Pascal Obry <obry@adacore.com>
7049 * gnat_ugn.texi: Minor clarification.
7051 2010-06-18 Emmanuel Briot <briot@adacore.com>
7053 * prj-nmsc.adb (Find_Source_Dirs): Minor refactoring to avoid duplicate
7054 code when using the project dir as the source dir.
7055 (Search_Directories): use the normalized name for the source directory,
7056 where symbolic names have potentially been resolved.
7058 2010-06-18 Robert Dewar <dewar@adacore.com>
7060 * exp_ch4.adb (Expand_N_Conditional_Expression): Clear Actions field
7061 when we create N_Expression_With_Actions node.
7062 (Expand_Short_Circuit): Ditto.
7064 2010-06-18 Robert Dewar <dewar@adacore.com>
7066 * exp_util.adb: Minor reformatting.
7068 2010-06-18 Thomas Quinot <quinot@adacore.com>
7070 * types.ads: Clean up obsolete comments
7071 * tbuild.adb: Minor reformatting.
7072 * exp_ch5.adb, sem_intr.adb, sem_ch10.adb, rtsfind.adb, s-shasto.adb,
7073 exp_strm.adb, aa_drive.adb: Minor reformatting.
7074 * sem_res.adb (Is_Predefined_Operator): An operator that is an imported
7075 intrinsic with an Interface_Name denotes an imported back-end builtin,
7076 and must be rewritten into a call, not left in the tree as an operator,
7077 so return False in that case.
7079 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
7081 * exp_util.adb (Remove_Side_Effects): Make a copy for an allocator.
7083 2010-06-18 Robert Dewar <dewar@adacore.com>
7085 * scos.ads: Add proposed output for case expression
7087 2010-06-18 Jose Ruiz <ruiz@adacore.com>
7089 * gnat_ugn.texi: Document that, when using the RTX compiler to generate
7090 RTSS modules, we need to use the Microsoft linker.
7092 2010-06-18 Robert Dewar <dewar@adacore.com>
7094 * checks.adb (Safe_To_Capture_In_Parameter_Value): Deal with case
7095 expression (cannot count on a particular branch being executed).
7096 * exp_ch4.adb (Expand_N_Case_Expression): New procedure.
7097 * exp_ch4.ads (Expand_N_Case_Expression): New procedure.
7098 * exp_util.adb (Insert_Actions): Deal with proper insertion of actions
7099 within case expression.
7100 * expander.adb (Expand): Add call to Expand_N_Case_Expression
7101 * par-ch4.adb Add calls to P_Case_Expression at appropriate points
7102 (P_Case_Expression): New procedure
7103 (P_Case_Expression_Alternative): New procedure
7104 * par.adb (P_Case_Expression): New procedure
7105 * par_sco.adb (Process_Decisions): Add dummy place holder entry for
7107 * sem.adb (Analyze): Add call to Analyze_Case_Expression
7108 * sem_case.ads (Analyze_Choices): Also used for case expressions now,
7109 this is a documentation change only.
7110 * sem_ch4.ads, sem_ch4.adb (Analyze_Case_Expression): New procedure.
7111 * sem_ch6.adb (Fully_Conformant_Expressions): Add handling of case
7113 * sem_eval.ads, sem_eval.adb (Eval_Case_Expression): New procedure.
7114 * sem_res.adb (Resolve_Case_Expression): New procedure.
7115 * sem_scil.adb (Find_SCIL_Node): Add processing for
7116 N_Case_Expression_Alternative.
7117 * sinfo.ads, sinfo.adb (N_Case_Expression): New node.
7118 (N_Case_Expression_Alternative): New node.
7119 * sprint.adb (Sprint_Node_Actual): Add processing for new nodes
7120 N_Case_Expression and N_Case_Expression_Alternative.
7122 2010-06-18 Robert Dewar <dewar@adacore.com>
7124 * par-ch7.adb, sem_warn.adb, types.ads, par-ch3.adb: Minor
7126 * gnat1drv.adb: Fix typo.
7128 2010-06-18 Robert Dewar <dewar@adacore.com>
7130 * par-prag.adb (Prag, case Style_Checks): All_Checks sets gnat style
7132 * sem_prag.adb (Analyze_Pragma, case Style_Checks): All_Checks sets
7133 gnat style for -gnatg.
7134 * gnat_rm.texi: Add documentation for ALL_CHECKS in GNAT mode.
7136 2010-06-18 Thomas Quinot <quinot@adacore.com>
7138 * sem_eval.adb (Test_In_Range): New subprogram, factoring duplicated
7140 (Is_In_Range, Is_Out_Of_Range): Reimplement in terms of call to
7143 2010-06-18 Robert Dewar <dewar@adacore.com>
7145 * sprint.adb: Minor change in output format for expression wi actions.
7146 * par-ch3.adb: Minor code reorganization. Minor reformatting.
7147 * sem_ch5.adb: Minor comment fix.
7149 2010-06-18 Robert Dewar <dewar@adacore.com>
7151 * debug.adb: New debug flag -gnatd.L to control
7152 Back_End_Handles_Limited_Types.
7153 * exp_ch4.adb (Expand_N_Conditional_Expression): Let back end handle
7154 limited case if Back_End_Handles_Limited_Types is True.
7155 (Expand_N_Conditional_Expression): Use N_Expression_With_Actions to
7156 simplify expansion if Use_Expression_With_Actions is True.
7157 * gnat1drv.adb (Adjust_Global_Switches): Set
7158 Back_End_Handles_Limited_Types.
7159 * opt.ads (Back_End_Handles_Limited_Types): New flag.
7161 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7163 * sem_res.adb (Rewrite_Operator_As_Call): Do not rewrite user-defined
7164 intrinsic operator if expansion is not enabled, because in an
7165 instantiation the original operator must be present to verify the
7166 legality of the operation.
7168 2010-06-18 Robert Dewar <dewar@adacore.com>
7170 * exp_disp.adb, sem_ch12.adb: Minor reformatting
7172 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7174 * exp_util.adb (Make_Subtype_From_Expr): If the unconstrained type is
7175 the class-wide type for a private extension, and the completion is a
7176 subtype, set the type of the class-wide type to the base type of the
7179 2010-06-18 Robert Dewar <dewar@adacore.com>
7181 * g-socket.ads, sem_aggr.adb, einfo.ads, sem_elim.adb,
7182 sem_intr.adb, sem_eval.adb: Minor reformatting
7184 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7186 * sem_type.adb (Is_Ancestor): If either type is private, examine full
7189 2010-06-18 Thomas Quinot <quinot@adacore.com>
7191 * g-socket.adb, g-socket.ads (Check_Selector): Make Selector an IN
7192 parameter rather than IN OUT.
7194 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7196 * exp_ch6.adb: Add extra guard.
7198 2010-06-18 Gary Dismukes <dismukes@adacore.com>
7200 * sem_util.adb (Object_Access_Level): For Ada 2005, determine the
7201 accessibility level of a function call from the level of the innermost
7202 enclosing dynamic scope.
7203 (Innermost_Master_Scope_Depth): New function to find the depth of the
7204 nearest dynamic scope enclosing a node.
7206 2010-06-18 Tristan Gingold <gingold@adacore.com>
7208 * adaint.c: Make ATTR_UNSET static as it is not used outside this file.
7210 2010-06-18 Thomas Quinot <quinot@adacore.com>
7212 * g-socket.ads: Minor reformatting.
7214 2010-06-18 Vincent Celier <celier@adacore.com>
7216 * make.adb (Must_Compile): New Boolean global variable
7217 (Main_On_Command_Line): New Boolean global variable
7218 (Collect_Arguments_And_Compile): Do compile if Must_Compile is True,
7219 even when the project is externally built.
7220 (Start_Compile_If_Possible): Compile in -aL directories if
7221 Check_Readonly_Files is True. Do compile if Must_Compile is True, even
7222 when the project is externally built.
7223 (Gnatmake): Set Must_Compile and Check_Readonly_Files to True when
7224 invoked with -f -u and one or several mains on the command line.
7225 (Scan_Make_Arg): Set Main_On_Command_Line to True when at least one
7226 main is specified on the command line.
7228 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7230 * sem_ch6.adb (Build_Body_For_Inline): Handle
7231 extended_return_statements.
7232 * exp_ch6.adb (Expand_Inlined_Call): when possible, inline a body
7233 containing extented_return statements.
7234 * exp_util.adb (Make_CW_Equivalent_Type): If the root type is already
7235 constrained, do not build subtype declaration.
7237 2010-06-18 Robert Dewar <dewar@adacore.com>
7239 * sem_res.adb (Analyze_Indexed_Component, Analyze_Selected_Component):
7240 Warn on assigning to packed atomic component.
7242 2010-06-18 Robert Dewar <dewar@adacore.com>
7244 * sem_util.ads: Minor reformatting
7245 * einfo.ads, einfo.adb: Minor doc clarification (scope of decls in
7246 Expression_With_Actions).
7247 * snames.ads-tmpl: Minor comment fix
7249 2010-06-18 Robert Dewar <dewar@adacore.com>
7251 * sem_prag.adb (Diagnose_Multiple_Pragmas): New procedure
7252 (Set_Imported): Use Import_Interface_Present to control message output
7253 * sinfo.ads, sinfo.adb (Import_Interface_Present): New flag
7254 * gnat_rm.texi: Document that we can have pragma Import and pragma
7255 Interface for the same subprogram.
7257 2010-06-18 Robert Dewar <dewar@adacore.com>
7259 * lib-xref.adb (Generate_Reference): Fix bad reference to
7260 Has_Pragma_Unreferenced (clients should always use Has_Unreferenced).
7262 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7264 * gcc-interface/trans.c (set_gnu_expr_location_from_node): New static
7266 (gnat_to_gnu) <N_Expression_With_Actions>: New case.
7267 Use set_gnu_expr_location_from_node to set location information on the
7270 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7272 * gcc-interface/Make-lang.in: Update dependencies.
7274 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7276 * sem_util.adb (Is_Atomic_Object): Predicate does not apply to
7279 2010-06-17 Robert Dewar <dewar@adacore.com>
7281 * gnat_rm.texi, gnat_ugn.texi: Clean up documentation on warning and
7282 style check messages.
7283 * sem_res.adb (Resolve_Call): Don't call
7284 Check_For_Eliminated_Subprogram if we are analyzing within a spec
7287 2010-06-17 Robert Dewar <dewar@adacore.com>
7289 * debug.adb: Add documentation for debug flags .X and .Y
7290 * exp_ch4.adb (Expand_Short_Circuit_Operator): Use
7291 Use_Expression_With_Actions.
7292 * gnat1drv.adb (Adjust_Global_Switches): Set
7293 Use_Expression_With_Actions.
7294 * opt.ads (Use_Expression_With_Actions): New switch.
7296 2010-06-17 Robert Dewar <dewar@adacore.com>
7298 * exp_intr.adb: Minor code reorganization (use UI_Max)
7299 * sem_intr.adb: use underlying type to check legality.
7300 * einfo.adb (Known_Static_Esize): False for generic types
7301 (Known_Static_RM_Size): False for generic types
7302 * einfo.ads (Known_Static_Esize): False for generic types
7303 (Known_Static_RM_Size): False for generic types
7305 2010-06-17 Robert Dewar <dewar@adacore.com>
7307 * exp_ch4.ads: Minor code reorganization (specs in alpha order).
7309 2010-06-17 Robert Dewar <dewar@adacore.com>
7311 * debug.adb: New debug flag -gnatd.X to use Expression_With_Actions
7312 node when expanding short circuit form with actions present for right
7314 * exp_ch4.adb: Minor reformatting
7315 (Expand_Short_Circuit_Operator): Use new Expression_With_Actions node
7316 if right opeand has actions present, and debug flag -gnatd.X is set.
7317 * exp_util.adb (Insert_Actions): Handle case of Expression_With_Actions
7319 * nlists.adb (Prepend_List): New procedure
7320 (Prepend_List_To): New procedure
7321 * nlists.ads (Prepend_List): New procedure
7322 (Prepend_List_To): New procedure
7323 * sem.adb: Add processing for Expression_With_Actions
7324 * sem_ch4.adb (Analyze_Expression_With_Actions): New procedure
7325 * sem_ch4.ads (Analyze_Expression_With_Actions): New procedure
7326 * sem_res.adb: Add processing for Expression_With_Actions.
7327 * sem_scil.adb: Add processing for Expression_With_Actions
7328 * sinfo.ads, sinfo.adb (N_Expression_With_Actions): New node.
7329 * sprint.ads, sprint.adb: Add processing for Expression_With_Actions
7331 2010-06-17 Doug Rupp <rupp@adacore.com>
7333 * sem_intr.adb (Check_Intrinsic_Operator): Check that the types
7334 involved both have underlying integer types.
7335 * exp_intr.adb (Expand_Binary_Operator) New subprogram to expand a call
7336 to an intrinsic operator when the operand types or sizes are not
7338 * s-auxdec-vms_64.ads: Revert "+" "-" ops back to Address now that
7339 64/32 Address/Integer works.
7341 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7343 * sem_ch12.adb (Mark_Context): Refine placement of Withed_Body flag, so
7344 that it marks a unit as needed by a spec only if the corresponding
7345 instantiation appears in that spec (and not in the corresponding body).
7346 * sem_elim.adb (Check_Eliminated): If we are within a subunit, the name
7347 in the pragma Eliminate has been parsed as a child unit, but the
7348 current compilation unit is in fact the parent in which the subunit is
7351 2010-06-17 Vincent Celier <celier@adacore.com>
7353 * gnat_rm.texi: Fix typo
7355 2010-06-17 Robert Dewar <dewar@adacore.com>
7357 * sem_util.adb: Minor reformatting
7359 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7361 * sem.adb (Do_Withed_Unit): if the unit in the with_clause is a generic
7362 instance, the clause now denotes the instance body. Traverse the
7363 corresponding spec because there may be no other dependence that will
7364 force the traversal of its own context.
7366 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7368 * sem_ch10.adb (Is_Ancestor_Unit): Subsidiary to
7369 Install_Limited_Context_Clauses, to determine whether a limited_with in
7370 some parent of the current unit designates some other parent, in which
7371 case the limited_with clause must not be installed.
7372 (In_Context): Refine test.
7374 2010-06-17 Gary Dismukes <dismukes@adacore.com>
7376 * sem_util.adb (Collect_Primitive_Operations): In the of an untagged
7377 type with a dispatching equality operator that is overridden (for a
7378 tagged full type), don't include the overridden equality in the list of
7379 primitives. The overridden equality is detected by testing for an
7380 Aliased field that references the overriding equality.
7382 2010-06-17 Robert Dewar <dewar@adacore.com>
7384 * freeze.adb: Minor reformatting.
7386 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
7388 * gnat_ugn.texi: Add a section introducing gdbserver.
7390 2010-06-17 Thomas Quinot <quinot@adacore.com>
7392 * sem_res.adb, sem_ch4.adb, s-stoele.adb, par-labl.adb: Minor
7395 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7397 * sem_aggr.adb (Valid_Ancestor_Type): handle properly the case of a
7398 constrained discriminated parent that is a private type.
7399 (Analyze_Record_Aggregate): when collecting inherited discriminants,
7400 handle properly an ancestor type that is a constrained private type.
7402 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7404 * sem_util.adb (Enclosing_Subprogram): If the called subprogram is
7405 protected, use the protected_subprogram_body only if the original
7406 subprogram has not been eliminated.
7408 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7410 * freeze.adb (Freeze_Expression): The designated type of an
7411 access_to_suprogram type can only be frozen if all types in its profile
7414 2010-06-17 Robert Dewar <dewar@adacore.com>
7416 * par.adb: Minor comment fix
7417 * sem_aggr.adb, sem_ch3.adb: Minor reformatting
7419 2010-06-17 Doug Rupp <rupp@adacore.com>
7421 * s-auxdec-vms_64.ads: Revert Integer to Long_Integer change, instead
7422 change Address to Short_Address in functions where both must be the
7423 same size for intrinsics to work.
7425 2010-06-17 Thomas Quinot <quinot@adacore.com>
7427 * sem_ch4.adb (Analyze_Selected_Component): A selected component may
7428 not denote a (private) component of a protected object.
7430 2010-06-17 Bob Duff <duff@adacore.com>
7432 * par-labl.adb (Try_Loop): Test whether the label and the goto are in
7435 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
7437 * gnat_ugn.texi: Update the documentation about GDB re: exception
7440 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7442 * gnatvsn.ads: Bump to 4.6 version.
7444 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7446 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): The
7447 designated type of the generated pointer is the type of the original
7448 expression, not that of the function call itself, because the return
7449 type may be an untagged derived type and the function may be an
7450 inherited operation.
7452 2010-06-17 Robert Dewar <dewar@adacore.com>
7454 * exp_ch4.adb: Minor reformatting.
7456 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7458 * sinfo.ads, sinfo.adb (Inherited_Discriminant): New flag on
7459 N_Component_Association nodes, to indicate that a component association
7460 of an extension aggregate denotes the value of a discriminant of an
7461 ancestor type that has been constrained by the derivation.
7462 * sem_aggr.adb (Discr_Present): use Inherited_Discriminant to prevent a
7463 double expansion of the aggregate appearing in a context that delays
7464 expansion, to prevent double insertion of discriminant values when the
7465 aggregate is reanalyzed.
7467 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7469 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Do not use
7470 Allocator as the Related_Node of Return_Obj_Access in call to
7471 Make_Temporary below as this would create a sort of infinite
7474 2010-06-17 Ben Brosgol <brosgol@adacore.com>
7476 * gnat_ugn.texi: Update gnatcheck doc.
7478 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7480 * sem_ch3.adb (Build_Incomplete_Type_Declaration): If there is an
7481 incomplete view of the type that is not tagged, and the full type is a
7482 tagged extension, create class_wide type now, and warn that the
7483 incomplete view should be tagged as well.
7485 2010-06-17 Vincent Celier <celier@adacore.com>
7487 * gnatcmd.adb (Non_VMS_Usage): Do not issue usage for gnat sync.
7488 Update the last line of the usage, indicating what commands do not
7489 accept project file switches.
7490 * vms_conv.adb: Do not issue usage line for GNAT SYNC
7491 * vms_data.ads: Fix errors in the qualifiers /LOGFILE and /MAIN of
7493 * gnat_ugn.texi: Document the relaxed rules for library directories in
7494 externally built library projects.
7496 2010-06-17 Doug Rupp <rupp@adacore.com>
7498 * s-auxdec-vms_64.ads: Make boolean and arithmetic operations intrinsic
7500 * s-auxdec-vms-alpha.adb: Remove kludges for aforemention.
7501 * gcc-interface/Makefile.in: Update VMS target pairs.
7503 2010-06-17 Vasiliy Fofanov <fofanov@adacore.com>
7505 * adaint.c: Reorganized in order to avoid use of GetProcessId to stay
7506 compatible with Windows NT 4.0 which doesn't provide this function.
7508 2010-06-17 Vincent Celier <celier@adacore.com>
7510 * ali-util.adb (Time_Stamp_Mismatch): In Verbose mode, if there is
7511 different timestamps but the checksum is the same, issue a short
7514 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7516 * s-interr.adb (Finalize): If the Abort_Task signal is set to system,
7517 it means that we cannot reset interrupt handlers since this would
7518 require potentially sending the abort signal to the Server_Task.
7520 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7522 * exp_ch4.adb: expand NOT for VMS types.
7523 * sem_util.adb: Use OpenVMS_On_Target for IS_VMS_Operator.
7525 2010-06-17 Sergey Rybin <rybin@adacore.com>
7527 * vms_data.ads: Add qualifier for '--no-elim-dispatch' gnatelim option.
7528 * gnat_ugn.texi (gnatelim): add description for --no-elim-dispatch
7531 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7533 * exp_ch6.adb (Expand_Call): Do not expand a call to an internal
7534 protected operation if the subprogram has been eliminated.
7536 2010-06-17 Vincent Celier <celier@adacore.com>
7538 * prj-nmsc.adb (Check_Library_Attributes): Allow the different
7539 directories associated with a library to be any directory when the
7540 library project is externally built.
7542 2010-06-17 Vincent Celier <celier@adacore.com>
7544 * make.adb (Check): If switch -m is used, deallocate the memory that
7545 may be allocated when computing the checksum.
7547 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7549 * g-socthi-mingw.adb (C_Recvmsg): Add 'use type' clause for C.size_t;
7550 (C_Sendmsg): Likewise.
7552 2010-06-17 Thomas Quinot <quinot@adacore.com>
7554 * sem_res.adb: Update comments.
7556 2010-06-17 Vincent Celier <celier@adacore.com>
7558 * back_end.adb (Scan_Compiler_Arguments): Process last argument
7560 2010-06-17 Robert Dewar <dewar@adacore.com>
7562 * exp_ch3.adb, exp_ch6.adb, exp_smem.adb, exp_util.adb: Use Ekind_In.
7563 * layout.adb, freeze.adb: Use Make_Temporary.
7565 2010-06-17 Jerome Lambourg <lambourg@adacore.com>
7567 * exp_ch11.adb (Expand_N_Raise_Statement): Expand raise statements in
7568 .NET/JVM normally as this is now perfectly supported by the backend.
7570 2010-06-17 Pascal Obry <obry@adacore.com>
7572 * gnat_rm.texi: Fix minor typo, remove duplicate blank lines.
7574 2010-06-17 Vincent Celier <celier@adacore.com>
7576 * make.adb (Collect_Arguments_And_Compile): Create include path file
7577 only when -x is specified.
7579 * opt.ads (Use_Include_Path_File): New Boolean flag, initialized to
7581 * prj-env.adb (Set_Ada_Paths): New Boolean parameters Include_Path and
7582 Objects_Path, defaulted to True. Only create include path file if
7583 Include_Path is True, only create objects path file if Objects_Path is
7585 * prj-env.ads (Set_Ada_Paths): New Boolean parameters Include_Path and
7586 Objects_Path, defaulted to True.
7587 * switch-m.adb (Scan_Make_Switches): Set Use_Include_Path_File to True
7590 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7592 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
7593 determine whether it has the controlling type, when the formal is an
7596 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7598 * s-crtl.ads (ssize_t): New type.
7599 (read): Fix signature.
7601 * g-socthi.ads: Add 'with System.CRTL' clause. Remove ssize_t and
7602 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7603 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7604 (C_Sendmsg): Likewise.
7605 * g-socthi.adb (Syscall_Recvmsg): Likewise.
7606 (Syscall_Sendmsg): Likewise.
7607 (C_Recvmsg): Likewise.
7608 (C_Sendmsg): Likewise.
7609 * g-socthi-mingw.ads: Add 'with System.CRTL' clause. Remove ssize_t
7610 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7611 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7612 (C_Sendmsg): Likewise.
7613 * g-socthi-mingw.adb (C_Recvmsg): Likewise.
7614 (C_Sendmsg): Likewise.
7615 * g-socthi-vms.ads: Add 'with System.CRTL' clause. Remove ssize_t and
7616 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7617 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7618 (C_Sendmsg): Likewise.
7619 * g-socthi-vms.adb (C_Recvmsg): Likewise.
7620 (C_Sendmsg): Likewise.
7621 * g-socthi-vxworks.ads Add 'with System.CRTL' clause. Remove ssize_t
7622 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7623 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7624 (C_Sendmsg): Likewise.
7625 * g-socthi-vxworks.adb (C_Recvmsg): Likewise.
7626 (C_Sendmsg): Likewise.
7627 * g-sercom-linux.adb (Read): Use correct types to call 'read'.
7628 (Write): Likewise to call 'write'.
7629 * s-os_lib.adb (Read): Use correct type to call System.CRTL.read.
7630 (Write): Use correct type to call System.CRTL.write.
7631 * s-tasdeb.adb (Write): Likewise.
7633 2010-06-17 Vincent Celier <celier@adacore.com>
7635 * prj-proc.adb (Copy_Package_Declarations): Change argument name
7636 Naming_Restricted to Restricted. If Restricted is True, do not copy the
7637 value of attribute Linker_Options.
7639 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7641 * gcc-interface/trans.c (push_stack, pop_stack): Delete.
7642 (Case_Statement_to_gnu): Adjust.
7643 (Loop_Statement_to_gnu): Likewise.
7644 (Subprogram_Body_to_gnu): Likewise.
7645 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
7646 (Compilation_Unit_to_gnu): Likewise.
7648 2010-06-17 Robert Dewar <dewar@adacore.com>
7650 * exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb, exp_prag.adb,
7651 exp_sel.adb, exp_util.adb, sem_ch10.adb, sem_ch12.adb, sem_ch13.adb,
7652 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb, sem_ch9.adb,
7653 sem_dist.adb, sem_util.adb: Use Make_Temporary
7654 * itypes.ads, tbuild.ads: Minor comment update
7655 * exp_ch9.adb, exp_dist.adb: Minor reformatting
7657 2010-06-17 Thomas Quinot <quinot@adacore.com>
7659 * exp_imgv.adb, exp_ch7.ads: Minor reformatting.
7661 2010-06-17 Robert Dewar <dewar@adacore.com>
7663 * exp_ch9.adb, exp_disp.adb, exp_dist.adb: Use Make_Temporary.
7665 2010-06-17 Thomas Quinot <quinot@adacore.com>
7667 * sprint.adb (pg): Set Dump_Freeze_Null, to be consistent with -gnatdg.
7669 2010-06-17 Robert Dewar <dewar@adacore.com>
7671 * exp_ch6.adb, exp_ch7.adb, exp_ch5.adb: Use Make_Temporary
7672 * tbuild.ads (Make_Temporary): More comment updates
7673 * tbuild.adb: Minor reformatting
7675 2010-06-17 Robert Dewar <dewar@adacore.com>
7677 * checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch11.adb,
7678 exp_ch3.adb, exp_ch4.adb: Minor code reorganization.
7680 * tbuild.ads, tbuild.adb (Make_Temporary): Clean up, use Entity_Id
7682 (Make_Temporary): Add more extensive documentation
7684 2010-06-17 Robert Dewar <dewar@adacore.com>
7686 * sem_intr.adb, sem_prag.adb, sem_res.adb, sem_type.adb, sem_util.adb,
7687 sem_warn.adb, sem_eval.adb: Minor reformatting. Use Ekind_In.
7688 (Set_Slice_Subtype): Explicitly freeze the slice's itype at the point
7689 where the slice's actions are inserted.
7690 (Decompose_Expr): Account for possible rewriting of slice bounds
7691 resulting from side effects suppression caused by the above freezing,
7692 so that folding of bounds is preserved by such rewriting.
7694 2010-06-17 Robert Dewar <dewar@adacore.com>
7696 * einfo.ads, einfo.adb (Get_Record_Representation_Clause): New
7698 * freeze.adb (Freeze_Record_Type): Add call to
7699 Check_Record_Representation_Clause.
7700 * sem_ch13.adb (Check_Record_Representation_Clause): New function
7701 (Analyze_Record_Representation_Clause): Split out overlap code into
7703 (Check_Component_Overlap): Moved inside
7704 Check_Record_Representation_Clause.
7705 * sem_ch13.ads (Check_Record_Representation_Clause): New function.
7707 2010-06-17 Robert Dewar <dewar@adacore.com>
7709 * back_end.adb, sem_res.adb, switch-c.adb, sem_scil.adb: Minor
7711 * sem_attr.adb, sem_cat.adb, sem_disp.adb, sem_elab.adb, sem_elim.adb,
7712 sem_eval.adb: Use Ekind_In
7714 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7716 * sem_ch8.adb: better error message for illegal inherited discriminant
7718 2010-06-17 Vincent Celier <celier@adacore.com>
7720 * bindusg.adb: Remove lines for -A and -C
7721 * gnat_ugn.texi: Remove all documentation and examples of switches -A
7722 and -C for gnatbind and gnatlink.
7723 * gnatlink.adb (Usage): Remove lines for -A and -C
7724 * switch-b.adb (Scan_Binder_Switches): Issue warning when switch -C is
7726 * gcc-interface/Make-lang.in: Update dependencies.
7728 2010-06-17 Vincent Celier <celier@adacore.com>
7730 * back_end.adb (Scan_Compiler_Arguments): Put all arguments in new
7731 local Argument_List variable Args.
7732 * switch-c.adb (Scan_Front_End_Switches): New Argument_List argument
7734 (Switch_Subsequently_Cancelled): New Argument_List argument Args. Look
7735 for subsequent switches in Args.
7736 * switch-c.ads (Scan_Front_End_Switches): New Argument_List argument
7738 * gcc-interface/Make-lang.in: Update dependencies.
7740 2010-06-17 Robert Dewar <dewar@adacore.com>
7742 * einfo.adb: Minor code fix, allow E_Class_Wide_Type for
7743 Equivalent_Type to match documentation.
7745 2010-06-17 Robert Dewar <dewar@adacore.com>
7747 * sem_ch6.adb, sem_ch7.adb: Minor reformatting.
7748 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_ch10.adb, sem_ch12.adb,
7749 sem_ch4.adb, sem_ch8.adb, sem_ch13.adb: Make use of Ekind_In.
7751 2010-06-17 Thomas Quinot <quinot@adacore.com>
7753 * sem_res.adb (Set_Slice_Subtype): Always freeze the slice's itype.
7755 2010-06-17 Thomas Quinot <quinot@adacore.com>
7757 * freeze.adb (Freeze_Expression): Short circuit operators are valid
7758 freeze node insertion points.
7760 2010-06-17 Robert Dewar <dewar@adacore.com>
7762 * switch-c.ads, switch-c.adb, sem_ch13.adb: Minor reformatting.
7763 * sem_ch12.adb: Add pragmas Assert and Check to previous change.
7765 2010-06-17 Gary Dismukes <dismukes@adacore.com>
7767 * layout.adb (Layout_Type): Broaden test for setting an array type's
7768 Component_Size to include all scalar types, not just discrete types
7769 (components of real types were missed).
7770 * sem_ch3.adb (Constrain_Index): Add missing setting of First_Literal
7771 on the itype created for an index (consistent with Make_Index and
7772 avoids possible Assert_Failures).
7774 2010-06-17 Robert Dewar <dewar@adacore.com>
7776 * atree.ads, atree.adb: Add 6-parameter version of Ekind_In
7777 * einfo.adb: Minor code reformatting (use Ekind_In)
7779 2010-06-17 Robert Dewar <dewar@adacore.com>
7781 * sem_warn.adb (Test_Ref): Abandon scan if access subprogram parameter
7784 2010-06-17 Vincent Celier <celier@adacore.com>
7786 * back_end.adb: Minor comment updates
7787 * switch-c.adb: Remove dependencies on gcc C sources
7788 * gcc-interface/Make-lang.in: Add a-comlin.o to the object file list
7791 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7793 * sem_ch12.adb: propagate Pragma_Enabled flag to generic.
7794 * get_scos.adb: Set C2 flag in decision entry of pragma to 'e'.
7795 * par_sco.ads, par_sco.adb (Set_SCO_Pragma_Enabled): New procedure
7796 Remove use of Node field in SCOs table
7797 (Output_Header): Set 'd' to initially disable pragma entry
7798 * put_scos.adb (Put_SCOs): New flag indicating if pragma is enabled
7799 * scos.ads, scos.adb: Remove Node field from internal SCOs table.
7800 Use C2 field of pragma decision header to indicate enabled.
7801 * sem_prag.adb: Add calls to Set_SCO_Pragma_Enabled.
7802 * gcc-interface/Make-lang.in: Update dependencies.
7804 2010-06-17 Vincent Celier <celier@adacore.com>
7806 * back_end.adb (Next_Arg): Moved to procedure Scan_Compiler_Arguments
7807 (Scan_Compiler_Arguments): Call Scan_Front_End_Switches with Next_Arg
7808 (Switch_Subsequently_Cancelled): Function moved to the body of Switch.C
7809 * back_end.ads (Scan_Front_End_Switches): Function moved to the body of
7811 * switch-c.adb: Copied a number of global declarations from
7813 (Len_Arg): New function copied from back_end.adb
7814 (Switch_Subsequently_Cancelled): New function moved from back_end.adb
7815 (Scan_Front_End_Switches): New parameter Arg_Rank used to call
7816 Switch_Subsequently_Cancelled.
7817 * switch-c.ads (Scan_Front_End_Switches): New parameter Arg_Rank.
7818 * gcc-interface/Makefile.in: Add line so that shared libgnat is linked
7819 with -lexc on Tru64.
7821 2010-06-17 Robert Dewar <dewar@adacore.com>
7823 * prj.ads, prj.adb: Minor reformatting
7825 2010-06-17 Thomas Quinot <quinot@adacore.com>
7827 * put_scos.adb: Do not generate a blank line in SCOs when omitting the
7828 CP line for a disabled pragma.
7830 2010-06-17 Emmanuel Briot <briot@adacore.com>
7832 * prj-proc.adb, prj.adb, prj.ads (Check_Or_Set_Typed_Variable): New
7834 (Process_Declarative_Item): An invalid value in an typed variable
7835 declaration is no longer always fatal.
7837 2010-06-16 Arnaud Charlet <charlet@adacore.com>
7839 * get_scos.adb, par_sco.adb, par_sco.ads, put_scos.adb, scos.adb,
7840 scos.ads, exp_ch4.adb, sem_warn.adb: Code clean up, update
7843 2010-06-16 Javier Miranda <miranda@adacore.com>
7845 * exp_disp.adb (Expand_Dispatching_Call): Adjust the decoration of the
7846 node referenced by the SCIL node of dispatching "=" to skip the tags
7849 2010-06-16 Ed Schonberg <schonberg@adacore.com>
7851 * sem_ch5.adb (Analyze_Exit_Statement): Return if no enclosing loop,
7852 to prevent cascaded errors and compilation aborts.
7854 2010-06-16 Robert Dewar <dewar@adacore.com>
7856 * back_end.adb (Switch_Subsequently_Cancelled): New function
7857 Move declarations to package body level to support this change
7858 * back_end.ads (Switch_Subsequently_Cancelled): New function
7859 * gnat_ugn.texi: Document -gnat-p switch
7860 * switch-c.adb (Scan_Front_End_Switches): Implement -gnat-p switch
7861 * ug_words: Add entry for -gnat-p (UNSUPPRESS_ALL)
7862 * usage.adb: Add line for -gnat-p switch
7863 * vms_data.ads: Add entry for UNSUPPRESS_ALL (-gnat-p)
7865 2010-06-16 Robert Dewar <dewar@adacore.com>
7867 * sem_warn.adb (Check_Infinite_Loop_Warning): Declaration counts as
7870 2010-06-16 Robert Dewar <dewar@adacore.com>
7872 * exp_disp.adb: Minor reformatting
7874 2010-06-16 Ed Schonberg <schonberg@adacore.com>
7876 * sem_ch3.adb (Complete_Private_Subtype): Inherit class_wide type from
7877 base type only if it was not previously created for the partial view.
7879 2010-06-16 Thomas Quinot <quinot@adacore.com>
7881 * tbuild.ads: Minor comment fix
7883 2010-06-15 Nathan Froyd <froydnj@codesourcery.com>
7885 * gcc-interface/trans.c (gnu_stack_free_list): Delete.
7886 (gnu_except_ptr_stack): Change type to VEC. Update comment.
7887 (gnu_elab_proc_stack): Likewise.
7888 (gnu_return_label_stack): Likewise.
7889 (gnu_loop_label_stack): Likewise.
7890 (gnu_switch_label_stack): Likewise.
7891 (gnu_constraint_label_stack): Likewise.
7892 (gnu_storage_error_label_stack): Likewise.
7893 (gnu_program_error_label_stack): Likewise.
7894 (push_exception_label_stack): Take a VEC ** instead of a tree *.
7895 (push_stack): Likewise. Remove unused second parameter. Update
7897 (pop_stack): Take a VEC * instead of a tree *. Update callers.
7898 (gigi): Initialize stacks as VECs.
7899 (Identifier_to_gnu): Use VEC_last instead of TREE_VALUE.
7900 (Case_Statement_to_gnu): Likewise.
7901 (Subprogram_Body_to_gnu): Likewise.
7902 (call_to_gnu): Likewise.
7903 (Exception_Handler_to_gnu_sjlj): Likewise.
7904 (gnat_to_gnu): Likewise.
7905 (get_exception_label): Likewise.
7907 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7909 * sem_ch3.adb (Build_Derived_Record_Type): if derived type is an
7910 anonymous base generated when the parent is a constrained discriminated
7911 type, propagate interface list to first subtype because it may appear
7912 in a current instance within the extension part of the derived type
7913 declaration, and its own subtype declaration has not been elaborated
7915 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
7916 determine whether it has the controlling type.
7918 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
7920 * exp_ch11.adb (Expand_N_Raise_Statement): Make sure that the explicit
7921 raise of CE, SE and PE have the reason correctly set and are properly
7922 expanded before stopping the expansions of .NET/JVM exceptions.
7924 2010-06-14 Robert Dewar <dewar@adacore.com>
7926 * opt.ads (Check_Policy_List): Add some clarifying comments
7927 * sem_prag.adb (Analyze_Pragma, case Check): Set Pragma_Enabled flag
7928 on rewritten Assert pragma.
7930 2010-06-14 Gary Dismukes <dismukes@adacore.com>
7932 * sem_ch6.adb (Check_Overriding_Indicator): Add a special check for
7933 controlled operations, so that they will be treated as overriding even
7934 if the overridden subprogram is marked Is_Hidden, as long as the
7935 overridden subprogram's parent subprogram is not hidden.
7937 2010-06-14 Robert Dewar <dewar@adacore.com>
7939 * debug.adb: Entry for gnatw.d no longer specific for while loops
7940 * einfo.adb (First_Exit_Statement): New attribute for E_Loop
7941 * einfo.ads (First_Exit_Statement): New attribute for E_Loop
7942 * sem_ch5.adb (Analyze_Loop_Statement): Check_Infinite_Loop_Warning has
7943 new calling sequence to include test for EXIT WHEN.
7944 (Analyze_Exit_Statement): Chain EXIT statement into exit statement
7946 * sem_warn.ads, sem_warn.adb (Check_Infinite_Loop_Warning): Now handles
7948 * sinfo.adb (Next_Exit_Statement): New attribute of N_Exit_Statement
7950 * sinfo.ads (N_Pragma): Correct comment on Sloc field (points to
7951 PRAGMA, not to pragma identifier).
7952 (Next_Exit_Statement): New attribute of N_Exit_Statement node
7954 2010-06-14 Robert Dewar <dewar@adacore.com>
7956 * sem_res.adb (Resolve_Short_Circuit): Fix sloc of "assertion/check
7959 2010-06-14 Robert Dewar <dewar@adacore.com>
7961 * par-ch2.adb (Scan_Pragma_Argument_Association): Clarify message for
7962 missing pragma argument identifier.
7964 2010-06-14 Robert Dewar <dewar@adacore.com>
7966 * atree.ads, atree.adb (Ekind_In): New functions.
7968 2010-06-14 Robert Dewar <dewar@adacore.com>
7970 * exp_ch4.adb (Expand_N_Op_Expon): Optimize 2**N in stand alone context
7972 2010-06-14 Robert Dewar <dewar@adacore.com>
7974 * usage.adb (Usage): Redo documentation of -gnatwa.
7976 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7978 * sem_ch8.adb (Find_Type): The attribute 'class cannot be applied to
7979 an untagged incomplete type that is a limited view.
7981 2010-06-14 Sergey Rybin <rybin@adacore.com>
7983 * gnat_ugn.texi: Add description of '-cargs gcc_switches' to gnatstub
7986 2010-06-14 Thomas Quinot <quinot@adacore.com>
7988 * exp_ch4.adb (Expand_Short_Circuit_Operator): New subprogram,
7989 factoring duplicated code between...
7990 (Expand_N_And_Than, Expand_N_Or_Else): Remove duplicated code.
7991 * a-envvar.ads: Minor reformatting
7993 2010-06-14 Arnaud Charlet <charlet@adacore.com>
7995 * ali.adb, ali.ads, lib-xref.ads: Document new '+' letter for C/C++
7997 (Scan_ALI): Take into account new Visibility field.
7998 (Visibility_Kind): New type.
7999 (Xref_Entity_Record): Replace Lib field by Visibility.
8001 * gcc-interface/Make-lang.in: Update dependencies.
8003 2010-06-14 Pascal Obry <obry@adacore.com>
8005 * raise.h: Remove unused defintions.
8007 2010-06-14 Bob Duff <duff@adacore.com>
8009 * par-ch10.adb (P_Subunit): If the next token after "separate(X)" is
8010 Tok_Not or Tok_Overriding, call P_Subprogram. We had previously given
8011 the incorrect error "proper body expected".
8012 * par-ch6.adb (P_Subprogram): Suppress "overriding indicator not
8013 allowed here" error in case of subunits, which was triggered by the
8014 above change to P_Subunit.
8016 2010-06-14 Sergey Rybin <rybin@adacore.com>
8018 * gnat_ugn.texi, vms_data.ads: Update gnatelim doc.
8020 2010-06-14 Thomas Quinot <quinot@adacore.com>
8022 * lib-util.adb: Minor code reorganization.
8024 2010-06-14 Robert Dewar <dewar@adacore.com>
8026 * ali.adb (Scan_ALI): Implement reading and storing of N lines
8027 (Known_ALI_Lines): Add entry for 'N' (notes)
8028 * ali.ads (Notes): New table to store Notes information
8029 * alloc.ads: Add entries for Notes table
8030 * lib-util.adb (Write_Info_Int): New procedure
8031 (Write_Info_Slit): New procedure
8032 (Write_Info_Uint): New procedure
8033 * lib-util.ads (Write_Info_Int): New procedure
8034 (Write_Info_Slit): New procedure
8035 (Write_Info_Uint): New procedure
8036 * lib-writ.adb (Write_Unit_Information): Output N (notes) lines
8037 * lib-writ.ads: Update documentation for N (Notes) lines
8038 * lib.adb (Store_Note): New procedure
8039 * lib.ads (Notes): New table
8040 (Store_Note): New procedure
8041 * sem_prag.adb: Call Store_Note for affected pragmas
8043 2010-06-14 Thomas Quinot <quinot@adacore.com>
8045 * socket.c: Fix wrong condition in #ifdef
8046 * g-socket.adb, g-sothco.ads: Functions imported from socket.c that
8047 take or return char* values can't use Interfaces.C.Strings.chars_ptr,
8048 because on VMS this type is a 32-bit pointer which is not compatible
8049 with the default for C pointers for code compiled with gcc on that
8052 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8054 * sem_util (Is_VMS_Operator): New predicate to determine whether an
8055 operator is an intrinsic operator declared in the DEC system extension.
8056 * sem_res.adb (Resolve_Logical_Op): operation is legal on signed types
8057 if the operator is a VMS intrinsic.
8058 * sem_eval.adb (Eval_Logical_Op): Operation is legal and be
8059 constant-folded if the operands are signed and the operator is a VMS
8062 2010-06-14 Robert Dewar <dewar@adacore.com>
8064 * g-socket.adb, gnatcmd.adb: Minor reformatting.
8066 2010-06-14 Pascal Obry <obry@adacore.com>
8068 * s-finimp.adb: Fix typo.
8069 * raise.h: Remove duplicate blank line.
8071 2010-06-14 Vincent Celier <celier@adacore.com>
8073 * prj-nmsc.adb (Add_Sources): Always set the object file and the
8074 switches file names, as the configuration of the language may change
8075 in an extending project.
8076 (Process_Naming_Scheme): For sources of projects that are extended, set
8077 the configuration of the language from the highest extending project
8078 where the language is declared.
8080 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8082 * sem_res.adb (Resolve_Call): For infinite recursion check, test
8083 whether the called subprogram is inherited from a containing
8085 (Same_Or_Aliased_Subprograms): New function
8087 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8089 * sem_ch8.adb (End_Use_Type): Before indicating that an operator is not
8090 use-visible, check whether it is a primitive for more than one type.
8092 2010-06-14 Robert Dewar <dewar@adacore.com>
8094 * sem_ch3.adb (Copy_And_Swap): Copy Has_Pragma_Unmodified flag.
8096 * sem_ch7.adb (Preserve_Full_Attributes): Preserve
8097 Has_Pragma_Unmodified flag.
8099 2010-06-14 Thomas Quinot <quinot@adacore.com>
8101 * g-sttsne-locking.adb, g-sttsne-locking.ads, g-sttsne.ads,
8102 g-sttsne-vxworks.adb, g-sttsne-dummy.ads: Removed. Mutual exclusion is
8103 now done in GNAT.Sockets if necessary.
8104 * gsocket.h, g-socket.adb, g-sothco.ads (GNAT.Sockets.Get_XXX_By_YYY):
8105 Ensure mutual exclusion for netdb operations if the target platform
8107 (GNAT.Sockets.Thin_Common): New binding for getXXXbyYYY, treating
8108 struct hostent as an opaque type to improve portability.
8109 * s-oscons-tmplt.c, socket.c: For the case of Vxworks, emulate
8110 gethostbyYYY using proprietary VxWorks API so that a uniform interface
8111 is available for the Ada side.
8112 * gcc-interface/Makefile.in: Remove g-sttsne-*
8113 * gcc-interface/Make-lang.in: Update dependencies.
8115 2010-06-14 Vincent Celier <celier@adacore.com>
8117 * gnatcmd.adb (Mapping_File): New function.
8119 2010-06-14 Javier Miranda <miranda@adacore.com>
8121 * sem_ch3.adb (Derive_Subprograms): Remove over-restrictive assertion.
8123 2010-06-14 Arnaud Charlet <charlet@adacore.com>
8125 * ali.adb: Fix typo.
8126 * s-auxdec-vms-alpha.adb, scng.ads: Minor reformatting.
8128 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8130 * sem_ch12.adb: Make Mark_Context transitive, and apply to subprogram
8133 * sem_ch8.adb (Find_Expanded_Name): If a candidate compilation unit in
8134 the context does not have a homonym of the selector, emit default
8137 2010-06-14 Robert Dewar <dewar@adacore.com>
8139 * sem.adb, sem_ch12.adb, sem_util.adb: Minor reformatting and
8142 2010-06-14 Arnaud Charlet <charlet@adacore.com>
8144 * lib-xref.ads: Doc updates:
8145 - Allocate 'Q' for #include entity kind
8147 - Allocate 'g' for regular macros
8148 - Allocate 'G' for function-like macros
8150 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8152 * sinfo.ads, sinfo.adb (Withed_Body): New attribute of a with_clause.
8153 Indicates that there is an instantiation in the current unit that
8154 loaded the body of the unit denoted by the with_clause.
8155 * sem_ch12.adb (Mark_Context): When instanting a generic body, check
8156 whether a with_clause in the current context denotes the unit that
8157 holds the generic declaration, and mark the with_clause accordingly.
8158 (Instantiate_Package_Body): call Mark_Context.
8159 * sem.adb (Process_Bodies_In_Context): Use Withed_Body to determine
8160 whether a given body should be traversed before the spec of the main
8163 2010-06-14 Ed Falis <falis@adacore.com>
8165 * sysdep.c: Fix 653 build against vThreads headers.
8167 2010-06-14 Robert Dewar <dewar@adacore.com>
8169 * sinfo.ads: Minor reformatting.
8171 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8173 * sem_ch6.adb (Analyze_Subprogram_Body): Do not check conformance when
8174 the spec has been generated for a body without spec that carries an
8175 Inline_Always pragma.
8177 2010-06-14 Arnaud Charlet <charlet@adacore.com>
8179 * lib-xref.ads: Documentation change: allocate 'Z' letter to C/C++
8182 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
8184 * exp_dbug.adb (Debug_Renaming_Declaration): Do not output any debug
8185 declaration for VMs, as those are useless and might lead to duplicated
8186 local variable names in the generated code.
8187 * gcc-interface/Make-lang.in: Update dependencies.
8189 2010-06-14 Robert Dewar <dewar@adacore.com>
8191 * opt.ads, sem.adb, sem_elab.adb: Minor reformatting
8193 2010-06-14 Robert Dewar <dewar@adacore.com>
8195 * exp_aggr.adb (Has_Address_Clause): Moved to Exp_Util, and there it
8196 is renamed as Has_Following_Address_Clause.
8197 * exp_ch3.adb (Needs_Simple_Initialization): Add Consider_IS argument
8198 to allow the caller to avoid Initialize_Scalars having an effect.
8199 (Expand_N_Object_Declaration): Do not do Initialize_Scalars stuff for
8200 scalars with an address clause specified.
8201 * exp_ch3.ads (Needs_Simple_Initialization): Add Consider_IS argument
8202 to allow the caller to avoid Initialize_Scalars having an effect.
8203 * exp_util.adb (Has_Following_Address_Clause): Moved here from Exp_Aggr
8204 (where it was called Has_Address_Clause).
8205 * exp_util.ads (Has_Following_Address_Clause): Moved here from Exp_Aggr
8206 (where it was called Has_Address_Clause).
8207 * freeze.adb (Warn_Overlay): Suppress message about overlaying causing
8208 problems for Initialize_Scalars (since we no longer initialize objects
8209 with an address clause.
8211 2010-06-14 Robert Dewar <dewar@adacore.com>
8213 * exp_prag.adb (Expand_Pragma_Check): Set Loc of generated code from
8216 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8218 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Debug_Info_Needed
8219 on the entity of an implicitly generated postcondition procedure.
8221 2010-06-14 Thomas Quinot <quinot@adacore.com>
8223 * sem_ch7.adb (Preserve_Full_Attributes): Propagate
8224 Discriminant_Constraint elist from full view to private view.
8226 2010-06-14 Robert Dewar <dewar@adacore.com>
8228 * sem_res.adb: Minor reformatting.
8230 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8232 * sem.adb: New version of unit traversal.
8234 * sem_elab.adb (Check_Internal_Call): Do not place a call appearing
8235 within a generic unit in the table of delayed calls.
8237 2010-06-14 Robert Dewar <dewar@adacore.com>
8239 * gnatcmd.adb, sem_util.adb, exp_ch3.adb: Minor reformatting
8241 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8243 * sem_ch12.adb (Save_References): If an identifier has been rewritten
8244 during analysis as an explicit dereference, keep the reference implicit
8245 in the generic, but preserve the entity if global. This prevents
8246 malformed generic trees in the presence of some nested generics.
8248 2010-06-14 Sergey Rybin <rybin@adacore.com>
8250 * gnat_ugn.texi: For the GNAT driver, clarify the effect of calling the
8251 tool with '-files=' option. Also fix some small errors (wrong brackets)
8253 2010-06-14 Vincent Celier <celier@adacore.com>
8255 * gnatbind.adb: Call Scan_ALI with Directly_Scanned set to True for all
8256 the ALI files on the command line.
8258 * ali.adb (Scan_ALI): Set component Directly_Scanned of the unit(s) to
8259 the same value as the parameter of the same name.
8260 * ali.ads (Scan_ALI): New Boolean parameter Directly_Scanned, defaulted
8262 * bindgen.adb (Gen_Versions_Ada): Never emit version symbols for
8263 Stand-Alone Library interfaces. When binding Stand-Alone Libraries,
8264 emit version symbols only for the units of the library.
8265 (Gen_Versions_C): Ditto.
8267 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8269 * sem_ch4.adb: Fix typo.
8271 2010-06-14 Vasiliy Fofanov <fofanov@adacore.com>
8273 * s-oscons-tmplt.c (IOV_MAX): redefine on Tru64 and VMS since the
8274 vector IO doesn't work at default value properly.
8276 2010-06-14 Doug Rupp <rupp@adacore.com>
8278 * s-stoele.adb: Remove unnecessary qualification of To_Address for VMS.
8280 2010-06-14 Vincent Celier <celier@adacore.com>
8282 * gnatcmd.adb (Check_Files): Do not invoke the tool with all the
8283 sources of the project if a switch -files= is used.
8285 2010-06-14 Thomas Quinot <quinot@adacore.com>
8287 * exp_attr.adb: Minor reformatting.
8289 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8291 * gnat_ugn.texi: Minor typo fixes and wording changes.
8293 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8295 * sem_ch4.adb (Analyze_One_Call): If the call has been rewritten from a
8296 prefixed form, do not re-analyze first actual, which may need an
8297 implicit dereference.
8298 * sem_ch6.adb (Analyze_Procedure_Call): If the call is given in
8299 prefixed notation, the analysis will rewrite the node, and possible
8300 errors appear in the rewritten name of the node.
8301 * sem_res.adb: If a call is ambiguous because its first parameter is
8302 an overloaded call, report list of candidates, to clarify ambiguity of
8305 2010-06-14 Doug Rupp <rupp@adacore.com>
8307 * s-auxdec-vms-alpha.adb: New package body implementing legacy
8308 VAX instructions with Asm insertions.
8309 * s-auxdec-vms_64.ads: Inline VAX queue functions
8310 * s-stoele.adb: Resolve some ambiguities in To_Addresss with s-suxdec
8311 that show up only on VMS.
8312 * gcc-interface/Makefile.in: Provide translation for
8313 s-auxdec-vms-alpha.adb.
8315 2010-06-14 Olivier Hainque <hainque@adacore.com>
8317 * initialize.c (VxWorks section): Update comments.
8319 2010-06-14 Robert Dewar <dewar@adacore.com>
8321 * a-convec.adb, sem_prag.adb, checks.adb: Minor reformatting.
8323 2010-06-14 Eric Botcazou <ebotcazou@adacore.com>
8325 * init.c: Code clean up.
8327 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8329 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address): Do
8330 not insert address clause in table for later validation if type of
8331 entity is generic, to prevent possible spurious errors.
8333 * sem_ch8.adb: Code clean up.
8335 2010-06-14 Ben Brosgol <brosgol@adacore.com>
8337 * gnat_ugn.texi: Expanded @ovar macro inline to solve problem with
8338 texi2pdf and texi2html.
8339 Document how to change scheduling properties on HP-UX.
8341 2010-06-14 Thomas Quinot <quinot@adacore.com>
8343 * g-socket.ads: Remove misleading comments.
8345 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
8347 * sem_prag.adb (Check_Duplicated_Export_Name): Remove check for
8348 CLI_Target as this prevents proper detection of exported names
8349 duplicates when the exported language is different to CIL.
8350 (Process_Interface_Name): Add check for CIL convention exports,
8351 replacing the old one from Check_Duplicated_Export_Name.
8353 2010-06-14 Matthew Heaney <heaney@adacore.com>
8355 * a-coinve.adb, a-convec.adb (operator "&"): Check both that new length
8356 and new last satisfy constraints.
8357 (Delete_Last): prevent overflow for subtraction of index values
8358 (To_Vector): prevent overflow for addition of index values
8360 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8362 * sem_ch4.adb (Complete_Object_Operation): After analyzing the
8363 rewritten call, preserve the resulting type to prevent spurious errors,
8364 when the call is implicitly dereferenced in the context of an in-out
8367 * checks.adb (Apply_Discriminant_Check): If the target of the
8368 assignment is a renaming of a heap object, create constrained type for
8371 2010-06-14 Pascal Obry <obry@adacore.com>
8373 * prj-proc.adb: Fix copy of object directory for extending projects.
8375 2010-06-14 Jose Ruiz <ruiz@adacore.com>
8377 * init.c (__gnat_alternate_stack): Define this space for PowerPC linux
8378 (__gnat_install_handler, PowerPC linux): Activate the alternative
8381 2010-06-13 Gerald Pfeifer <gerald@pfeifer.com>
8383 * gnat_rm.texi: Move to GFDL version 1.3.
8384 * gnat-style.texi: Ditto.
8385 * gnat_ugn.texi: Ditto.
8387 2010-06-12 Kai Tietz <kai.tietz@onevision.com>
8390 * gcc-interface/Makefile.in: Add rules for multilib x86/x64
8393 2010-06-11 Alexandre Oliva <aoliva@redhat.com>
8395 * gcc-interface/utils.c (update_pointer_to): Initialize last.
8397 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
8399 * gcc-interface/ada-tree.h: Fix formatting nits.
8401 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8403 * gcc-interface/utils.c (init_gnat_to_gnu): Use typed GC
8405 (init_dummy_type): Likewise.
8406 (gnat_pushlevel): Likewise.
8408 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
8409 (Subprogram_Body_to_gnu): Likewise.
8410 (Compilation_Unit_to_gnu): Likewise.
8411 (start_stmt_group): Likewise.
8412 (extract_encoding): Likewise.
8413 (decode_name): Likewise.
8415 * gcc-interface/misc.c (gnat_printable_name): Likewise.
8417 * gcc-interface/decl.c (annotate_value): Likewise.
8419 * gcc-interface/ada-tree.h (struct lang_type): Add variable_size
8421 (struct lang_decl): Likewise.
8422 (SET_TYPE_LANG_SPECIFIC): Use typed GC allocation.
8423 (SET_DECL_LANG_SPECIFIC): Likewise.
8425 2010-06-04 Eric Botcazou <ebotcazou@adacore.com>
8427 * gnatlink.adb (gnatlink): Remove support for -fsjlj switch.
8428 * gcc-interface/lang-specs.h: Likewise.
8430 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
8433 * gcc-interface/decl.c (MAX_FIXED_MODE_SIZE): Removed.
8435 2010-06-01 Arnaud Charlet <charlet@adacore.com>
8437 * gnat_ugn.texi: Improve doc on -fdump-ada-spec, mention limitations.
8439 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
8441 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Task_Type>: Reuse the
8442 TYPE_DECL of the equivalent type instead of building a new one.
8444 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
8446 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust warning message.
8447 Fix nits in comments.
8448 * gcc-interface/misc.c (gnat_init_gcc_eh): Likewise.
8449 * gcc-interface/trans.c (gigi): Likewise.
8450 (Attribute_to_gnu): Likewise.
8451 (Case_Statement_to_gnu): Likewise.
8452 (gnat_to_gnu): Adjust warning message.
8453 * gcc-interface/utils.c (create_var_decl_1): Fix nits in comments.
8454 (build_vms_descriptor32): Likewise.
8456 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
8458 * gcc-interface/decl.c: Pretend to be a backend file by undefining
8459 IN_GCC_FRONTEND (still need rtl.h here).
8461 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8463 * gcc-interface/trans.c: Do not include rtl.h, insclude libfuncs.h.
8464 (gigi): Adjust call to set_stack_check_libfunc.
8466 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8468 * gcc-interface/utils.c: Do not include rtl.h.
8470 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
8472 * gcc-interface/utils.c: Do not include function.h, pointer-set.h,
8473 and gimple.h. Explain why rtl.h has to be included.
8474 (handle_vector_size_attribute): Call reconstruct_complex_type directly.
8475 * gcc-interface/targtyps.c: Do not include tm_p.h
8476 * gcc-interface/utils2.c: Do not include flags.h.
8477 * gcc-interface/trans.c: Do not include expr.h. Include rtl.h instead,
8478 and explain why it has to be included.
8479 * gcc-interface/misc.c: Do not include expr.h, libfuncs.h, cgraph.h,
8481 Include function.h and explain why. Explain why except.h is included.
8482 (enumerate_modes): Remove unused function.
8483 * gcc-interface/gigi.h (enumerate_modes): Remove prototype.
8484 * gcc-interface/Make-lang.in: Update dependencies.
8486 2010-05-25 Joseph Myers <joseph@codesourcery.com>
8488 * gcc-interface/misc.c (internal_error_function): Add context
8489 parameter. Use it to access show_column flag and instead of using
8490 global_dc. Call warn_if_plugins.
8491 * gcc-interface/Make-lang.in (ada/misc.o): Update dependencies.
8493 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
8495 * gcc-interface/misc.c (LANG_HOOKS_DEEP_UNSHARING): Redefine.
8496 * gcc-interface/trans.c (unshare_save_expr): Delete.
8497 (gigi): Do not unshare trees under SAVE_EXPRs here.
8499 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
8501 * gcc-interface/trans.c (call_to_gnu): Use build_call_vec instead of
8503 * gcc-interface/utils.c (build_function_stub): Likewise.
8505 2010-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
8507 * gcc-interface/misc.c (gnat_handle_option): Remove special logic
8508 for Wuninitialized without -O.
8510 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
8512 * gcc-interface/gigi.h (enum standard_datatypes): Add new value
8513 ADT_exception_data_name_id.
8514 (exception_data_name_id): New define.
8515 * gcc-interface/trans.c (gigi): Initialize it.
8516 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use the standard
8517 exception type for standard exception definitions. Do not make them
8519 <E_Record_Type>: Equate fields of types associated with an exception
8520 definition to those of the standard exception type.
8522 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
8524 * tracebak.c (__gnat_backtrace): Mark top_stack with ATTRIBUTE_UNUSED.
8526 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
8528 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Tidy up
8529 code, improve comments and fix formatting nits.
8531 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
8533 * gcc-interface/utils.c (update_pointer_to): Return early if the old
8534 pointer already points to the new type. Chain the old pointer and its
8535 variants at the end of new pointer's chain after updating them.
8537 2010-05-10 Eric Botcazou <ebotcazou@adacore.com>
8539 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables
8540 built for interfaces.
8541 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Use
8542 imported_p instead of Is_Imported when considering constants.
8543 Do not promote alignment of exported objects.
8544 <E_Record_Subtype>: Strip all suffixes for dispatch table entities.
8546 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8548 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables.
8549 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Make imported
8550 constants really constant.
8551 <E_Record_Subtype>: Strip the suffix for dispatch table entities.
8553 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8555 * gcc-interface/decl.c (make_aligning_type): Declare the type.
8557 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8559 * gcc-interface/decl.c (gnat_to_gnu_entity): Create variables for size
8560 expressions of variant part of record types declared at library level.
8562 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8564 * gcc-interface/gigi.h (create_field_decl): Move PACKED parameter.
8565 * gcc-interface/utils.c (create_field_decl): Move PACKED parameter.
8566 (rest_of_record_type_compilation): Adjust call to create_field_decl.
8567 (make_descriptor_field): Likewise and pass correctly typed constants.
8568 (build_unc_object_type): Likewise.
8569 (unchecked_convert): Likewise.
8570 * gcc-interface/decl.c (elaborate_expression_2): New static function.
8571 (gnat_to_gnu_entity): Use it to make alignment factors explicit.
8572 Adjust call to create_field_decl.
8573 (make_aligning_type): Likewise.
8574 (make_packable_type): Likewise.
8575 (maybe_pad_type): Likewise.
8576 (gnat_to_gnu_field): Likewise.
8577 (components_to_record): Likewise.
8578 (create_field_decl_from): Likewise.
8579 (create_variant_part_from): Remove superfluous test.
8580 * gcc-interface/trans.c (gigi): Adjust call to create_field_decl.
8582 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8584 * gcc-interface/gigi.h (build_unc_object_type): Add DEBUG_INFO_P param.
8585 (build_unc_object_type_from_ptr): Likewise.
8586 * gcc-interface/utils.c (build_unc_object_type): Add DEBUG_INFO_P param
8587 and pass it to create_type_decl. Declare the type. Simplify.
8588 (build_unc_object_type_from_ptr): Add DEBUG_INFO_P parameter and pass
8589 it to build_unc_object_type.
8590 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust to above change.
8591 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
8592 (gnat_to_gnu): Likewise.
8593 * gcc-interface/utils2.c (build_allocator): Likewise.
8595 2010-05-07 Eric Botcazou <ebotcazou@adacore.com>
8598 * gcc-interface/misc.c (gnat_handle_option): Fix long line.
8600 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8602 * gcc-interface/Makefile.in: Removed mips-sgi-irix5* support.
8604 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
8607 * gcc-interface/misc.c (gnat_handle_option): Add argument kind.
8609 2010-05-02 Giuseppe Scrivano <gscrivano@gnu.org>
8611 * gnathtml.pl: Use 755 as mask for new directories.
8613 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
8615 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Uniquize
8616 constant constructors before taking their address.
8618 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
8620 * exp_dbug.ads: Fix outdated description. Mention link between XVS
8622 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Set
8623 XVZ variable as unit size of XVS type.
8624 (maybe_pad_type): Likewise.
8626 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
8628 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Do not
8629 use memmove if the array type is bit-packed.
8631 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
8633 * gcc-interface/misc.c (gnat_init): Remove second argument in call to
8634 build_common_tree_nodes.
8636 2010-04-18 Ozkan Sezer <sezeroz@gmail.com>
8638 * gsocket.h: Make sure that winsock2.h is included before windows.h.
8640 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8642 * gcc-interface/utils2.c (build_unary_op) <ATTR_ADDR_EXPR>: Do not
8645 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8647 * uintp.h (UI_Lt): Declare.
8648 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do the size
8649 computation in sizetype.
8650 <E_Array_Subtype>: Use unified handling for all index types. Do not
8651 generate MAX_EXPR-based expressions, only COND_EXPR-based ones. Add
8653 (annotate_value): Change test for negative values.
8654 (validate_size): Apply test for negative values on GNAT nodes.
8655 (set_rm_size): Likewise.
8656 * gcc-interface/misc.c (gnat_init): Set unsigned types for sizetypes.
8657 * gcc-interface/utils.c (rest_of_record_type_compilation): Change test
8658 for negative values.
8659 (max_size) <MINUS_EXPR>: Do not reassociate a COND_EXPR on the LHS.
8660 (builtin_type_for_size): Adjust definition of signed_size_type_node.
8661 * gcc-interface/utils2.c (compare_arrays): Optimize comparison of
8662 lengths against zero.
8664 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8666 * back-end.adb (Call_Back_End): Pass Standard_Character to gigi.
8667 * gcc-interface/gigi.h (gigi): Add standard_character parameter.
8668 (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
8669 LONG_LONG_TYPE_SIZE, FLOAT_TYPE_SIZE, DOUBLE_TYPE_SIZE,
8670 LONG_DOUBLE_TYPE_SIZE, SIZE_TYPE): Delete.
8671 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Call
8673 * gcc-interface/misc.c (gnat_init): Set signedness of char as per
8674 flag_signed_char. Tag sizetype with "size_type" moniker.
8675 * gcc-interface/trans.c (gigi): Add standard_character parameter.
8676 Remove useless built-in types. Equate unsigned_char_type_node to
8677 Standard.Character. Use it instead of char_type_node throughout.
8678 (Attribute_to_gnu): Likewise.
8679 (gnat_to_gnu): Likewise.
8680 * gcc-interface/utils2.c (build_call_raise): Likewise.
8682 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8684 * gcc-interface/gigi.h (enum standard_datatypes): Add new values
8685 ADT_sbitsize_one_node and ADT_sbitsize_unit_node.
8686 (sbitsize_one_node): New macro.
8687 (sbitsize_unit_node): Likewise.
8688 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Fix
8689 latent bug in the computation of subrange_p. Fold wider_p predicate.
8690 (cannot_be_superflat_p): Use an explicitly signed 64-bit type to do
8691 the final comparison.
8692 (make_aligning_type): Build real negation and use sizetype throughout
8693 the offset computation.
8694 (maybe_pad_type): Do not issue the warning when the new size expression
8696 (annotate_value) <INTEGER_CST>: Simplify code handling negative values.
8697 * gcc-interface/misc.c (gnat_init): Initialize sbitsize_one_node and
8699 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Pool_Address>: Fold
8701 (gnat_to_gnu) <N_Free_Statement>: Likewise.
8702 * gcc-interface/utils.c (convert): Use sbitsize_unit_node.
8703 * gcc-interface/utils2.c (compare_arrays): Compute real lengths and use
8704 constants in sizetype. Remove dead code and tweak comments. Generate
8705 equality instead of inequality comparisons for zero length tests.
8707 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8709 * gcc-interface/gigi.h (gnat_init_decl_processing): Delete.
8710 * gcc-interface/decl.c (gnat_to_gnu_entity): Constify a few variables.
8711 <object>: Do not create the fake PARM_DECL if no debug info is needed.
8712 Do not create the corresponding VAR_DECL of a CONST_DECL for debugging
8713 purposes if no debug info is needed.
8714 Fix formatting. Reorder and add comments.
8715 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Reference>: Constify
8716 variable and remove obsolete comment.
8717 * gcc-interface/utils.c (convert_vms_descriptor64): Tweak comment.
8718 (convert_vms_descriptor32): Likewise.
8719 (convert): Remove dead code.
8720 <UNCONSTRAINED_ARRAY_REF>: Pass the field instead of its name to build
8721 the reference to the P_ARRAY pointer.
8722 <POINTER_TYPE>: Likewise.
8723 (maybe_unconstrained_array) <UNCONSTRAINED_ARRAY_TYPE>: Likewise.
8724 (gnat_init_decl_processing): Delete, move contents to...
8725 * gcc-interface/misc.c (gnat_init): ...here.
8727 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8729 * gcc-interface/trans.c (unchecked_conversion_nop): Handle function
8730 calls. Return true for conversion from a record subtype to its type.
8732 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8734 * gcc-interface/decl.c (gnat_to_gnu_entity): Use boolean_type_node in
8735 lieu of integer_type_node for boolean operations.
8736 (choices_to_gnu): Likewise.
8737 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
8738 (Loop_Statement_to_gnu): Likewise.
8739 (establish_gnat_vms_condition_handler): Likewise.
8740 (Exception_Handler_to_gnu_sjlj): Likewise.
8741 (gnat_to_gnu): Likewise.
8742 (build_unary_op_trapv): Likewise.
8743 (build_binary_op_trapv): Likewise.
8744 (emit_range_check): Likewise.
8745 (emit_index_check): Likewise.
8746 (convert_with_check): Likewise.
8747 * gcc-interface/utils.c (convert_vms_descriptor64): Likewise.
8748 (convert_vms_descriptor32): Likewise.
8749 (convert_vms_descriptor): Likewise.
8750 * gcc-interface/utils2.c (nonbinary_modular_operation): Likewise.
8751 (compare_arrays): Use boolean instead of integer constants.
8752 (build_binary_op) <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR,
8753 TRUTH_OR_EXPR, TRUTH_XOR_EXPR>: New case. Check that the result type
8755 <GE_EXPR, LE_EXPR, GT_EXPR, LT_EXPR>: Remove obsolete assertion.
8756 <EQ_EXPR, NE_EXPR>: Check that the result type is a boolean type.
8757 <PREINC/PREDECREMENT_EXPR, POSTINC/POSTDECREMENT_EXPR>: Delete.
8758 <TRUTH_NOT_EXPR>: Check that the result type is a boolean type.
8759 (build_unary_op): Use boolean_type_node in lieu of integer_type_node
8760 for boolean operations.
8761 (fill_vms_descriptor): Likewise. Fix formatting nits.
8763 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8765 * gcc-interface/ada-tree.def (LOOP_STMT): Change to 4-operand nodes.
8766 * gcc-interface/ada-tree.h (LOOP_STMT_TOP_COND, LOOP_STMT_BOT_COND):
8768 (LOOP_STMT_COND): ...this.
8769 (LOOP_STMT_BOTTOM_COND_P): New flag.
8770 (LOOP_STMT_TOP_UPDATE_P): Likewise.
8771 * gcc-interface/trans.c (can_equal_min_or_max_val_p): New function.
8772 (can_equal_min_val_p): New static inline function.
8773 (can_equal_max_val_p): Likewise.
8774 (Loop_Statement_to_gnu): Use build4 in lieu of build5 and adjust to
8775 new LOOP_STMT semantics. Use two different strategies depending on
8776 whether optimization is enabled to translate the loop.
8777 (gnat_gimplify_stmt) <LOOP_STMT>: Adjust to new LOOP_STMT semantics.
8779 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8781 * uintp.adb (UI_From_Dint): Remove useless code.
8782 (UI_From_Int): Likewise.
8783 * uintp.h: Reorder declarations.
8784 (UI_From_gnu): Declare.
8785 (UI_Base): Likewise.
8786 (Vector_Template): Likewise.
8787 (Vector_To_Uint): Likewise.
8790 * gcc-interface/gigi.h: Tweak comments.
8791 * gcc-interface/cuintp.c (UI_From_gnu): New global function.
8792 * gcc-interface/decl.c (maybe_pad_type): Do not warn if either size
8794 (annotate_value) <INTEGER_CST>: Call UI_From_gnu.
8795 * gcc-interface/trans.c (post_error_ne_num): Call post_error_ne.
8796 (post_error_ne_tree): Call UI_From_gnu and post_error_ne.
8797 * gcc-interface/utils.c (max_size) <tcc_binary>: Do not special-case
8800 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8802 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Just copy
8804 * gcc-interface/trans.c (smaller_packable_type_p): Rename into...
8805 (smaller_form_type_p): ...this. Change parameter and variable names.
8806 (call_to_gnu): Use the nominal type of the parameter to create the
8807 temporary if it's a smaller form of the actual type.
8808 (addressable_p): Return false if the actual type is integral and its
8809 size is greater than that of the expected type.
8811 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8813 * gcc-interface/cuintp.c (UI_To_gnu): Fix long line.
8814 * gcc-interface/gigi.h (MARK_VISITED): Skip objects of constant class.
8815 (process_attributes): Delete.
8816 (post_error_ne_num): Change parameter name.
8817 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force debug info
8818 with -g3. Remove a couple of obsolete lines. Minor tweaks.
8819 If type annotating mode, operate on trees to compute the adjustment to
8820 the sizes of tagged types. Fix long line.
8821 (cannot_be_superflat_p): Tweak head comment.
8822 (annotate_value): Fold local constant.
8823 (set_rm_size): Fix long line.
8824 * gcc-interface/trans.c (Identifier_to_gnu): Rework comments.
8825 (Attribute_to_gnu): Fix long line.
8826 <Attr_Size>: Remove useless assertion.
8827 Reorder statements. Use size_binop routine.
8828 (Loop_Statement_to_gnu): Use build5 in lieu of build_nt.
8829 Create local variables for the label and the test. Tweak comments.
8830 (Subprogram_Body_to_gnu): Reset cfun to NULL.
8831 (Compilation_Unit_to_gnu): Use the Sloc of the Unit node.
8832 (process_inlined_subprograms): Integrate into...
8833 (Compilation_Unit_to_gnu): ...this.
8834 (gnat_to_gnu): Fix long line.
8835 (post_error_ne_num): Change parameter name.
8836 * gcc-interface/utils.c (process_attributes): Static-ify.
8837 <ATTR_MACHINE_ATTRIBUTE>: Set input_location before proceeding.
8838 (create_type_decl): Add comment.
8839 (create_var_decl_1): Process the attributes after adding the VAR_DECL
8840 to the current binding level.
8841 (create_subprog_decl): Likewise for the FUNCTION_DECL.
8842 (end_subprog_body): Do not reset cfun to NULL.
8843 (build_vms_descriptor32): Fix long line.
8844 (build_vms_descriptor): Likewise.
8845 (handle_nonnull_attribute): Likewise.
8846 (convert_vms_descriptor64): Likewise.
8847 * gcc-interface/utils2.c (fill_vms_descriptor): Fix long line.
8848 (gnat_protect_expr): Fix thinko.
8850 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8852 * gcc-interface/trans.c (gigi): Set DECL_IGNORED_P on EH functions.
8853 (gnat_to_gnu) <N_Op_Eq>: Restore the value of input_location
8854 before translating the top-level node.
8855 (lvalue_required_p) <N_Function_Call>: Return 1 if !constant.
8856 <N_Object_Declaration>: Likewise.
8857 <N_Assignment_Statement>: Likewise.
8858 <N_Unchecked_Type_Conversion>: Likewise.
8859 (call_to_gnu): Remove kludge.
8860 (gnat_to_gnu) <N_Return_Statement>: When not optimizing, force labels
8861 associated with user returns to be preserved.
8862 (gnat_to_gnu): Add special code to deal with boolean rvalues.
8863 * gcc-interface/utils2.c (compare_arrays): Set input_location on all
8865 (build_unary_op) <ADDR_EXPR>: Call build_fold_addr_expr.
8866 <INDIRECT_REF>: Call build_fold_indirect_ref.
8868 2010-04-15 Joel Sherrill <joel.sherrill@oarcorp.com>
8870 * g-socket.adb: A target can have multiple missing errno's. This
8871 will result in multiple errno's being defined as -1. Because of this
8872 we can not use a case but must use a series of if's to avoid
8873 a duplicate case error in GNAT.Sockets.Resolve_Error.
8875 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8877 * gcc-interface/trans.c (call_to_gnu): Open a nesting level if this is
8878 a statement. Otherwise, if at top-level, push the processing of the
8879 elaboration routine. In the misaligned case, issue the error messages
8880 again on entry and create the temporary explicitly. Do not issue them
8882 For a function call, emit the range check if necessary.
8883 In the copy-in copy-out case, create the temporary for the return
8885 Do not unnecessarily convert by-ref parameters to the formal's type.
8886 Remove obsolete guards in conditions.
8887 (gnat_to_gnu) <N_Assignment_Statement>: For a function call, pass the
8888 target to call_to_gnu in all cases.
8889 (gnat_gimplify_expr) <ADDR_EXPR>: Remove handling of SAVE_EXPR.
8890 (addressable_p) <CONSTRUCTOR>: Return false if not static.
8891 <COMPOUND_EXPR>: New case.
8892 * gcc-interface/utils2.c (build_unary_op) <ADDR_EXPR>: Fold a compound
8893 expression if it has unconstrained array type.
8894 (gnat_mark_addressable) <COMPOUND_EXPR>: New case.
8895 (gnat_stabilize_reference) <COMPOUND_EXPR>: Stabilize operands on an
8898 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8900 * gcc-interface/trans.c (gigi): Do not start statement group.
8901 (Compilation_Unit_to_gnu): Set current_function_decl to NULL.
8902 Start statement group and push binding level here...
8903 (gnat_to_gnu) <N_Compilation_Unit>: ...and not here.
8904 Do not push fake contexts at top level. Remove redundant code.
8905 (call_to_gnu): Rename a local variable and constify another.
8906 * gcc-interface/utils.c (gnat_pushlevel): Fix formatting nits.
8907 (set_current_block_context): Set it as the group's block.
8908 (gnat_init_decl_processing): Delete unrelated init code.
8909 (end_subprog_body): Use NULL_TREE.
8911 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8913 * gcc-interface/trans.c (call_to_gnu): Do not unnecessarily force
8914 side-effects of actual parameters before the call.
8916 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8918 * gcc-interface/decl.c (validate_size): Reorder, remove obsolete test
8920 (set_rm_size): Reorder and remove obsolete test.
8922 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
8924 * gcc-interface/gigi.h: Reorder declarations and tweak comments.
8925 (gigi): Adjust ATTRIBUTE_UNUSED markers.
8926 * gcc-interface/gadaint.h: New file.
8927 * gcc-interface/trans.c: Include it in lieu of adaint.h. Reorder.
8928 (__gnat_to_canonical_file_spec): Remove declaration.
8929 (number_names): Delete.
8930 (number_files): Likewise.
8932 * gcc-interface/Make-lang.in (ada/trans.o): Adjust dependencies to
8935 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
8937 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Class_Wide_Type>: Fix
8939 * gcc-interface/trans.c (process_freeze_entity): Use local copy of
8940 Ekind. Return early for class-wide types. Do not compute initializer
8941 unless necessary. Reuse the tree for an associated class-wide type
8942 only if processing its root type.
8944 2010-04-13 Joel Sherrill <joel.sherrill@oarcorp.com>
8946 * gsocket.h: Run-time can no longer be built without network
8947 OS headers available. Changing RTEMS GNAT build procedure to
8948 reflect this and letting run-time build use network .h files.
8950 2010-04-13 Duncan Sands <baldrick@free.fr>
8952 * gcc-interface/misc.c (gnat_eh_type_covers): Remove.
8953 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Update comment.
8955 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
8957 * gcc-interface/gigi.h (standard_datatypes): Add ADT_parent_name_id.
8958 (parent_name_id): New macro.
8959 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Use it.
8960 * gcc-interface/trans.c (gigi): Initialize it.
8961 (lvalue_required_p) <N_Type_Conversion>: New case.
8962 <N_Qualified_Expression>: Likewise.
8963 <N_Allocator>: Likewise.
8964 * gcc-interface/utils.c (convert): Try to properly upcast tagged types.
8966 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
8968 * gcc-interface/ada-tree.h (TYPE_BY_REFERENCE_P): Delete.
8969 (DECL_CONST_ADDRESS_P): New macro.
8970 (SET_DECL_ORIGINAL_FIELD_TO_FIELD): Likewise.
8971 (SAME_FIELD_P): Likewise.
8972 * gcc-interface/decl.c (constructor_address_p): New static function.
8973 (gnat_to_gnu_entity) <object>: Set DECL_CONST_ADDRESS_P according to
8974 the return value of above function.
8975 (gnat_to_gnu_entity) <E_Record_Type>: Force BLKmode for all types
8976 passed by reference.
8977 <E_Record_Subtype>: Likewise.
8978 Set TREE_ADDRESSABLE on the type if it passed by reference.
8979 (make_packable_type): Use SET_DECL_ORIGINAL_FIELD_TO_FIELD.
8980 (create_field_decl_from): Likewise.
8981 (substitute_in_type): Likewise.
8982 (purpose_member_field): Use SAME_FIELD_P.
8983 * gcc-interface/misc.c (must_pass_by_ref): Test TREE_ADDRESSABLE.
8984 * gcc-interface/trans.c (lvalue_required_p): Add ADDRESS_OF_CONSTANT
8985 parameter and adjust recursive calls.
8986 <N_Explicit_Dereference>: New case.
8987 <N_Object_Declaration>: Return 1 if the object is of a class-wide type.
8988 Adjust calls to lvalue_required_p. Do not return the initializer of a
8989 DECL_CONST_ADDRESS_P constant if an lvalue is required for it.
8990 (call_to_gnu): Delay issuing error message for a misaligned actual and
8991 avoid the associated back-end assertion. Test TREE_ADDRESSABLE.
8992 (gnat_gimplify_expr) <ADDR_EXPR>: Handle non-static constructors.
8993 * gcc-interface/utils.c (make_dummy_type): Set TREE_ADDRESSABLE if the
8994 type is passed by reference.
8995 (convert) <CONSTRUCTOR>: Convert in-place in more cases.
8996 * gcc-interface/utils2.c (build_cond_expr): Drop TYPE_BY_REFERENCE_P.
8997 (build_simple_component_ref): Use SAME_FIELD_P.
8999 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
9001 * gcc-interface/trans.c (Identifier_to_gnu): Use boolean variable.
9002 (call_to_gnu): Test gigi's flag TYPE_BY_REFERENCE_P instead of calling
9003 front-end's predicate Is_By_Reference_Type. Use consistent order and
9004 remove ??? comment. Use original conversion in all cases, if any.
9005 * gcc-interface/utils.c (make_dummy_type): Minor tweak.
9006 (convert): Use local copy in more cases.
9007 <INDIRECT_REF>: Remove deactivated code.
9008 (unchecked_convert): Use a couple of local copies.
9010 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
9012 * gcc-interface/trans.c (lvalue_required_for_attribute_p): New static
9014 (lvalue_required_p) <N_Attribute_Reference>: Call it.
9015 (gnat_to_gnu) <N_Selected_Component>: Prevent build_component_ref from
9016 folding the result only if lvalue_required_for_attribute_p is true.
9017 * gcc-interface/utils.c (maybe_unconstrained_array): Pass correctly
9018 typed constant to build_component_ref.
9019 (unchecked_convert): Likewise.
9020 * gcc-interface/utils2.c (maybe_wrap_malloc): Likewise.
9021 (build_allocator): Likewise.
9023 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
9025 * gcc-interface/utils2.c (build_cond_expr): Take the address and
9026 dereference if the result type is passed by reference.
9028 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
9030 * gcc-interface/trans.c (Case_Statement_to_gnu): Bool-ify variable.
9031 (gnat_to_gnu) <N_Null_Statement>: When not optimizing, generate a
9032 goto to the next statement.
9034 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
9036 * gcc-interface/gigi.h (maybe_variable): Delete.
9037 (protect_multiple_eval): Likewise.
9038 (maybe_stabilize_reference): Likewise.
9039 (gnat_save_expr): Declare.
9040 (gnat_protect_expr): Likewise.
9041 (gnat_stabilize_reference): Likewise.
9042 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use
9043 gnat_stabilize_reference.
9044 (maybe_variable): Delete.
9045 (elaborate_expression_1): Use gnat_save_expr.
9046 * gcc-interface/trans.c (Attribute_to_gnu): Use gnat_protect_expr.
9047 (call_to_gnu): Pass NULL to gnat_stabilize_reference.
9048 (gnat_to_gnu) <N_Object_Declaration>: Use gnat_save_expr.
9049 <N_Slice>: Use gnat_protect_exp.
9050 <N_Selected_Component>: Pass NULL to gnat_stabilize_reference.
9051 <N_In>: Use gnat_protect_expr.
9052 Pass NULL to gnat_stabilize_reference.
9053 (build_unary_op_trapv): Use gnat_protect_expr.
9054 (build_binary_op_trapv): Likewise.
9055 (emit_range_check): Likewise.
9056 (emit_index_check): Likewise.
9057 (convert_with_check): Likewise.
9058 (protect_multiple_eval): Move to utils2.c file.
9059 (maybe_stabilize_reference): Merge into...
9060 (gnat_stabilize_reference): ...this. Move to utils2.c file.
9061 (gnat_stabilize_reference_1): Likewise.
9062 * gcc-interface/utils.c (convert_to_fat_pointer): Use gnat_protect_expr
9063 instead of protect_multiple_eval.
9064 * gcc-interface/utils2.c (compare_arrays): Likewise.
9065 (nonbinary_modular_operation): Likewise.
9066 (maybe_wrap_malloc): Likewise.
9067 (build_allocator): Likewise.
9068 (gnat_save_expr): New function.
9069 (gnat_protect_expr): Rename from protect_multiple_eval. Early return
9070 in common cases. Propagate TREE_READONLY onto dereferences.
9071 (gnat_stabilize_reference_1): Move from trans.c file.
9072 (gnat_stabilize_reference): Likewise.
9074 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
9076 * gcc-interface/gigi.h (gnat_mark_addressable): Rename parameter.
9077 * gcc-interface/decl.c (maybe_variable): Do not set TREE_STATIC on _REF
9078 node. Use the type of the operand to set TREE_READONLY.
9079 * gcc-interface/trans.c (Identifier_to_gnu): Do not set TREE_STATIC on
9080 _REF node. Do not overwrite TREE_READONLY.
9081 (call_to_gnu): Rename local variable and fix various nits. In the
9082 copy-in/copy-out case, build the SAVE_EXPR manually.
9083 (convert_with_check): Call protect_multiple_eval in lieu of save_expr
9084 and fold the computations.
9085 (protect_multiple_eval): Always save entire fat pointers.
9086 (maybe_stabilize_reference): Minor tweaks.
9087 (gnat_stabilize_reference_1): Likewise. Do not deal with tcc_constant,
9088 tcc_type and tcc_statement.
9089 * gcc-interface/utils.c (convert_to_fat_pointer): Call
9090 protect_multiple_eval in lieu of save_expr.
9091 (convert): Minor tweaks.
9092 (maybe_unconstrained_array): Do not set TREE_STATIC on _REF node.
9093 (builtin_type_for_size): Call gnat_type_for_size directly.
9094 * gcc-interface/utils2.c (contains_save_expr_p): Delete.
9095 (contains_null_expr): Likewise
9096 (gnat_build_constructor): Do not call it.
9097 (compare_arrays): Deal with all side-effects, use protect_multiple_eval
9098 instead of gnat_stabilize_reference to protect the operands.
9099 (nonbinary_modular_operation): Call protect_multiple_eval in lieu of
9101 (maybe_wrap_malloc): Likewise.
9102 (build_allocator): Likewise.
9103 (build_unary_op) <INDIRECT_REF>: Do not set TREE_STATIC on _REF node.
9104 (gnat_mark_addressable): Rename parameter.
9106 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
9108 * gcc-interface/ada-tree.h (TYPE_RETURNS_UNCONSTRAINED_P): Rename into.
9109 (TYPE_RETURN_UNCONSTRAINED_P): ...this.
9110 (TYPE_RETURNS_BY_REF_P): Rename into.
9111 (TYPE_RETURN_BY_DIRECT_REF_P): ...this.
9112 (TYPE_RETURNS_BY_TARGET_PTR_P): Delete.
9113 * gcc-interface/gigi.h (create_subprog_type): Adjust parameter names.
9114 (build_return_expr): Likewise.
9115 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>:
9116 Rename local variables. If the return Mechanism is By_Reference, pass
9117 return_by_invisible_ref_p to create_subprog_type instead of toggling
9118 TREE_ADDRESSABLE. Test return_by_invisible_ref_p in order to annotate
9119 the mechanism. Use regular return for contrained types with non-static
9120 size and return by invisible reference for unconstrained return types
9121 with default discriminants. Update comment.
9122 * gcc-interface/trans.c (Subprogram_Body_to_gnu): If the function
9123 returns by invisible reference, turn the RESULT_DECL into a pointer.
9124 Do not handle DECL_BY_REF_P in the CICO case here.
9125 (call_to_gnu): Remove code handling return by target pointer. For a
9126 function call, if the return type has non-constant size, generate the
9127 assignment with an INIT_EXPR.
9128 (gnat_to_gnu) <N_Return_Statement>: Remove dead code in the CICO case.
9129 If the function returns by invisible reference, build the copy return
9131 (add_decl_expr): Initialize the variable with an INIT_EXPR.
9132 * gcc-interface/utils.c (create_subprog_type): Adjust parameter names.
9133 Adjust for renaming of macros. Copy the node only when necessary.
9134 (create_subprog_decl): Do not toggle TREE_ADDRESSABLE on the return
9135 type, only change DECL_BY_REFERENCE on the RETURN_DECL.
9136 (convert_from_reference): Delete.
9137 (is_byref_result): Likewise.
9138 (gnat_genericize_r): Likewise.
9139 (gnat_genericize): Likewise.
9140 (end_subprog_body): Do not call gnat_genericize.
9141 * gcc-interface/utils2.c (build_binary_op) <INIT_EXPR>: New case.
9142 (build_return_expr): Adjust parameter names, logic and comment.
9144 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
9146 * exp_pakd.adb (Create_Packed_Array_Type): Always use a modular type
9147 if the size is small enough. Propagate the alignment if there is an
9148 alignment clause on the original array type.
9149 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
9150 Deal with under-aligned packed array types. Copy the size onto the
9151 justified modular type and don't lay it out again. Likewise for the
9152 padding type built for other under-aligned subtypes.
9153 * gcc-interface/utils.c (finish_record_type): Do not set a default mode
9156 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
9158 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set default
9159 alignment on the RETURN type built for the Copy-In Copy-Out mechanism.
9161 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
9163 * gcc-interface/trans.c (call_to_gnu): In the return-by-target-ptr case
9164 do not set the result type if there is a specified target and do not
9165 convert the result in any cases.
9166 (protect_multiple_eval): Make direct SAVE_EXPR for CALL_EXPR.
9167 (maybe_stabilize_reference) <COMPOUND_EXPR>: Merge with CALL_EXPR.
9169 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
9171 * gcc-interface/Makefile.in (SPARC/Solaris): Use sparcv8plus.
9173 2010-02-27 Eric Botcazou <ebotcazou@adacore.com>
9176 * gcc-interface/utils2.c (build_binary_op) <EQ_EXPR>: Assert that fat
9177 pointer base types are variant of each other. Apply special treatment
9178 for null to fat pointer types in all cases.
9180 2010-01-28 Pascal Obry <obry@adacore.com>
9182 * s-win32.ads: Add some missing constants.
9184 2010-01-28 Vincent Celier <celier@adacore.com>
9186 * prj-attr-pm.adb (Add_Attribute): Do nothing if To_Package is
9189 2010-01-28 Robert Dewar <dewar@adacore.com>
9191 * gnat_rm.texi: Minor correction
9193 2010-01-27 Pascal Obry <obry@adacore.com>
9195 * g-awk.adb: ensure that an AWK session is reusable.
9197 2010-01-27 Vasiliy Fofanov <fofanov@adacore.com>
9199 * g-regist.adb (For_Every_Key): Fix previous change.
9202 2010-01-27 Thomas Quinot <quinot@adacore.com>
9204 * lib-writ.ads: Current version of spec for new N (note) ALI lines
9206 2010-01-27 Yannick Moy <moy@adacore.com>
9208 * a-cdlili.adb (Insert): Correct exception message when cursor
9209 designates wrong list.
9211 2010-01-27 Vincent Celier <celier@adacore.com>
9213 * gnatcmd.adb: When there is only one main specified, the package
9214 support Switches (<main>) and attribute Switches is specified for the
9215 main, use these switches, instead of Default_Switches ("Ada").
9217 2010-01-27 Robert Dewar <dewar@adacore.com>
9219 * sem_prag.adb, par-prag.adb, snames.ads-tmpl: pragma Dimension initial
9221 * exp_disp.adb: Minor reformatting
9223 2010-01-27 Tristan Gingold <gingold@adacore.com>
9225 * seh_init.c: Use __ImageBase instead of _ImageBase.
9227 2010-01-27 Javier Miranda <miranda@adacore.com>
9229 * exp_disp.ads, exp_disp.adb (Expand_Interface_Thunk): Modify the
9230 profile of interface thunks. The type of the controlling formal is now
9231 the covered interface type (instead of the target tagged type).
9233 2010-01-27 Sergey Rybin <rybin@adacore.com>
9235 * gnat_rm.texi, gnat_ugn.texi: Update gnatcheck doc.
9237 2010-01-27 Robert Dewar <dewar@adacore.com>
9239 * sinput.ads, sinput.adb (Sloc_Range): Applies to all nodes, formal
9240 changed from Expr to N.
9242 2010-01-26 Thomas Quinot <quinot@adacore.com>
9244 * gnat_ugn.texi: Adjust documentation of -gnatz switches.
9245 * usage.adb: Replace line for -gnatz with two lines for -gnatzc and
9248 2010-01-26 Vincent Celier <celier@adacore.com>
9250 * prj-attr.adb: Add new attribute Library_Install_Name_Option
9251 Replace attribute Run_Path_Origin_Supported with Run_Path_Origin
9252 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
9253 attributes Run_Path_Option and Library_Install_Name_Option.
9254 * prj.ads (Project_Configuration): Replace component
9255 Run_Path_Origin_Supported with component Run_Path_Origin. Add new
9256 component Library_Install_Name_Option.
9257 * snames.ads-tmpl: Add new standard name Library_Install_Name_Option
9258 Replace Run_Path_Origin_Supported with Run_Path_Origin
9260 2010-01-26 Ed Schonberg <schonberg@adacore.com>
9262 * sem_ch8.adb (Use_One_Package): Within an instance, an actual package
9263 is not hidden by a homograph declared in another actual package.
9265 2010-01-26 Robert Dewar <dewar@adacore.com>
9267 * par_sco.adb (Traverse_Declarations_Or_Statements): Only generate
9268 decisions for pragmas Assert, Check, Precondition, Postcondition if
9270 * scos.ads: Update comments.
9271 * get_scos.adb, put_scos.adb: Minor fix to code reading statement SCOs.
9272 Also remove obsolete code for CT (exit point) SCOs.
9274 2010-01-26 Thomas Quinot <quinot@adacore.com>
9276 * switch-c.adb: Fix handling of -gnatz*
9278 2010-01-26 Robert Dewar <dewar@adacore.com>
9280 * par_sco.adb (Traverse_Declarations_Or_Statements): Separate F/W
9281 qualifiers for FOR/WHILE loops
9282 * scos.ads: Use separate type letters F/W for for/while loops
9284 2010-01-26 Robert Dewar <dewar@adacore.com>
9286 * get_scos.adb (Get_SCOs): Implement new form of CS entries (multiple
9287 entries per line, one for each statement in the sequence).
9288 * par_sco.adb (Traverse_Declarations_Or_Statements): Increase array
9289 size from 100 to 10_000 for SC_Array to avoid any real possibility of
9290 overflow. Output decisions in for loops.
9291 Exclude labels from CS lines.
9292 * scos.ads: Clarify that label is not included in the entry point
9294 2010-01-26 Robert Dewar <dewar@adacore.com>
9296 * par_sco.adb (Traverse_Declarations_Or_Statments): Implement new
9297 format of statement sequence SCO entries (one location/statement).
9298 * put_scos.adb (Put_SCOs): Implement new format of CS lines
9299 * scos.ads: Update comments.
9300 * sem_eval.adb: Minor reformatting.
9302 2010-01-26 Robert Dewar <dewar@adacore.com>
9304 * par_sco.ads, par_sco.adb (Set_Statement_Entry): New handling of exits
9305 (Extend_Statement_Sequence): New procedures
9306 (Traverse_Declarations_Or_Statements): New handling for exits.
9308 2010-01-26 Robert Dewar <dewar@adacore.com>
9310 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
9313 2010-01-26 Robert Dewar <dewar@adacore.com>
9315 * par_sco.adb (Is_Logical_Operator): Exclude AND/OR/XOR
9316 * scos.ads: Clarify handling of logical operators
9318 2010-01-26 Arnaud Charlet <charlet@adacore.com>
9320 * s-tpoben.adb: Update comments.
9322 2010-01-26 Robert Dewar <dewar@adacore.com>
9324 * freeze.adb (Set_Small_Size): Don't set size if alignment clause
9327 2010-01-26 Robert Dewar <dewar@adacore.com>
9329 * scos.ads: Clean up documentation, remove obsolete XOR references
9330 2010-01-26 Vincent Celier <celier@adacore.com>
9332 * gnat_ugn.texi: Complete documentation on the restrictions for
9333 combined options in -gnatxxx switches.
9336 2010-01-26 Arnaud Charlet <charlet@adacore.com>
9338 * s-tpoben.adb (Initialize_Protection_Entries): If a PO is created from
9339 a controlled operation, abort is already deferred at this point, so we
9340 need to use Defer_Abort_Nestable.
9342 2010-01-26 Vincent Celier <celier@adacore.com>
9344 * prj-conf.adb (Get_Config_Switches): Check for a default language for
9345 a project extending a project with no languages.
9347 2010-01-26 Vincent Celier <celier@adacore.com>
9349 * switch-c.adb (Scan_Front_End_Switches): Take into account options
9350 that follow -gnatef.
9351 Allow -gnateG to be followed by other options.
9353 2010-01-26 Robert Dewar <dewar@adacore.com>
9355 * s-commun.ads, s-osprim-mingw.adb, s-stchop-vxworks.adb, sem_aggr.adb,
9356 s-vxwext.adb, sem_ch10.adb, sem_eval.adb, sem_prag.adb: Minor
9359 2010-01-26 Vasiliy Fofanov <fofanov@adacore.com>
9361 * g-regist.adb, g-regist.ads (For_Every_Key): New generic procedure
9362 that allows to iterate over all subkeys of a key.
9364 2010-01-26 Ed Falis <falis@adacore.com>
9366 * sysdep.c: enable NFS for VxWorks MILS
9367 * env.c: enable __gnat_environ for VxWorks MILS
9368 * gcc-interface/Makefile.in: Add VxWorks MILS target pairs.
9370 2010-01-25 Bob Duff <duff@adacore.com>
9372 * sem_aggr.adb (Resolve_Array_Aggregate): Check for the case where this
9373 is an internally-generated positional aggregate, and the bounds are
9374 already correctly set. We don't want to overwrite those bounds with
9375 bounds determined by context.
9377 2010-01-25 Robert Dewar <dewar@adacore.com>
9379 * g-sercom.ads, gnatcmd.adb, gnatlink.adb, a-ststio.adb, exp_ch6.adb,
9380 exp_ch9.adb, g-sechas.ads: Minor reformatting.
9382 2010-01-25 Thomas Quinot <quinot@adacore.com>
9384 * s-commun.adb (Last_Index): Count must be converted to SEO (a signed
9385 integer type) before subtracting 1, otherwise the computation may wrap
9386 (because size_t is modular) and cause the conversion to fail.
9388 2010-01-25 Ed Falis <falis@adacore.com>
9390 * sysdep.c, init.c: Adapt to support full run-time on VxWorks MILS.
9392 2010-01-25 Vincent Celier <celier@adacore.com>
9394 * prj-attr.adb: New attribute Run_Path_Origin_Required
9395 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process new
9396 attribute Run_Path_Origin_Required.
9397 * prj.ads (Project_Configuration): New component
9398 Run_Path_Origin_Supported.
9399 * snames.ads-tmpl: New standard name Run_Path_Origin_Required
9401 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9403 * sem_aggr.adb (Resolve_Array_Aggregate): If the bounds in a choice
9404 have errors, do not continue resolution of the aggregate.
9405 * sem_eval.adb (Eval_Indexed_Component): Do not attempt to evaluate if
9406 the array type indicates an error.
9408 2010-01-25 Bob Duff <duff@adacore.com>
9410 * sinfo.ads: Minor comment fixes.
9412 2010-01-25 Bob Duff <duff@adacore.com>
9414 * exp_ch4.adb, exp_aggr.adb: Minor comment fixes and code clean up.
9416 2010-01-25 Arnaud Charlet <charlet@adacore.com>
9418 * gnatvsn.ads (Current_Year): Update.
9420 2010-01-25 Florian Villoing <villoing@adacore.com>
9422 * gnat_ugn.texi: Fix typo.
9424 2010-01-25 Thomas Quinot <quinot@adacore.com>
9426 * scos.ads: Update specification.
9428 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9430 * sem_ch6.adb (Process_PPCs): If a postcondition is present and the
9431 enclosing subprogram has no previous spec, attach postcondition
9432 procedure to the defining entity for the body.
9434 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9436 * exp_aggr.adb (Build_Record_Aggr_Code); Do not generate call to
9437 initialization procedure of the ancestor part of an extension aggregate
9438 if it is an interface type.
9440 2010-01-25 Vincent Celier <celier@adacore.com>
9442 * gnatlink.adb (Process_Binder_File): The directory for the shared
9443 version of libgcc in the run path options is found in the subdirectory
9444 indicated by __gnat_default_libgcc_subdir.
9445 * link.c: Declare new const char * __gnat_default_libgcc_subdir for
9448 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9450 * sem_prag.adb: More flexible pragma Annotate.
9452 2010-01-22 Eric Botcazou <ebotcazou@adacore.com>
9454 * system-linux-armel.ads (Stack_Check_Probes): Set to True.
9455 * system-linux-armeb.ads (Stack_Check_Probes): Likewise.
9457 2010-01-18 Eric Botcazou <ebotcazou@adacore.com>
9459 * gcc-interface/utils.c (create_var_decl_1): Fix formatting nits.
9461 2010-01-18 Jan Hubicka <jh@suse.cz>
9464 * gcc-interface/utils.c (create_var_decl_1): Do not set COMMON flag for
9465 unit local variables.
9467 2010-01-17 Laurent GUERBY <laurent@guerby.net>
9469 * gcc-interface/Makefile.in: Fix typo in arm*-*-linux-gnueabi.
9471 2010-01-11 Mikael Pettersson <mikpe@it.uu.se>
9473 * gcc-interface/Makefile.in: Add arm*-*-linux-gnueabi.
9474 * system-linux-armeb.ads, system-linux-armel.ads: New files.
9476 2010-01-09 Simon Wright <simon@pushface.org>
9479 * gcc-interface/Makefile.in (gnatlib-shared-darwin): Add missing
9484 Copyright (C) 2010 Free Software Foundation, Inc.
9486 Copying and distribution of this file, with or without modification,
9487 are permitted in any medium without royalty provided the copyright
9488 notice and this notice are preserved.