1 2010-10-26 Arnaud Charlet <charlet@adacore.com>
3 * gnatvsn.ads: Update comments.
5 2010-10-26 Matthew Heaney <heaney@adacore.com>
7 * Makefile.rtl, impunit.adb: Add bounded hashed set and bounded hashed
9 * a-cohata.ads: Add declaration of generic package for bounded hash
11 * a-chtgbo.ads, a-chtgbo.adb, a-chtgbk.ads, a-chtgbk.adb, a-cbhase.ads,
12 a-cbhase.adb, a-cbhama.ads, a-cbhama.adb: New files.
14 2010-10-26 Ed Schonberg <schonberg@adacore.com>
16 * sem_warn.adb: Improve warning message on overlapping actuals.
18 2010-10-26 Thomas Quinot <quinot@adacore.com>
20 * sem_ch4.adb, exp_dist.adb: Minor reformatting.
22 2010-10-26 Vincent Celier <celier@adacore.com>
24 * makeusg.adb (Makeusg): Add lines for switches -vl, -vm and -vh.
26 2010-10-26 Robert Dewar <dewar@adacore.com>
28 * exp_ch3.adb (Expand_N_Object_Declaration): Move generation of
29 predicate check to analyzer, since too much rewriting occurs in the
31 * sem_ch13.adb (Build_Predicate_Function): Change calling sequence, and
32 change the order in which things are done to fix several errors in
33 dealing with qualification of the type name.
34 (Build_Static_Predicate): Built static predicate after full analysis
35 of the body. This is necessary to fix several problems.
36 * sem_ch3.adb (Analyze_Object_Declaration): Move predicate check here
37 from expander, since too much expansion occurs in the analyzer to leave
39 (Analyze_Object_Declaration): Change parameter Include_Null to new name
40 Include_Implicit in Is_Partially_Initialized_Type call.
41 (Analyze_Subtype_Declaration): Make sure predicates are proapagated in
42 some strange cases of internal subtype generation.
43 * sem_util.ads, sem_util.adb (Is_Partially_Initialized_Type): Change
44 Include_Null to Include_Implicit, now includes the case of
47 2010-10-26 Sergey Rybin <rybin@adacore.com>
49 * gnat_rm.texi: Revise the documentation for pragma Eliminate.
51 2010-10-26 Matthew Heaney <heaney@adacore.com>
53 * Makefile.rtl, impunit.adb: Added bounded list container.
54 * a-cbdlli.ads, a-cbdlli.adb: New file.
56 2010-10-25 Eric Botcazou <ebotcazou@adacore.com>
58 * gcc-interface/utils2.c: Include flags.h and remove prototypes.
59 (build_unary_op) <TRUTH_NOT_EXPR>: When not optimizing, fold the result
60 of the call to invert_truthvalue_loc.
61 * gcc-interface/Make-lang.in (utils2.o): Add $(FLAGS_H).
63 2010-10-25 Eric Botcazou <ebotcazou@adacore.com>
65 * gcc-interface/utils.c (update_pointer_to): Clear TYPE_POINTER_TO and
66 TYPE_REFERENCE_TO of the old type after redirecting its pointer and
69 2010-10-25 Eric Botcazou <ebotcazou@adacore.com>
71 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not set
72 TREE_THIS_NOTRAP on the INDIRECT_REF node built for the template.
74 2010-10-25 Jose Ruiz <ruiz@adacore.com>
76 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for powerpc-linux):
77 Reorganize target pairs so that it works on linux and ElinOS.
79 2010-10-25 Pascal Obry <obry@adacore.com>
81 * adaint.c (__gnat_file_time_name_attr): Use GetFileAttributesEx to get
82 the timestamp. A bit faster than opening/closing the file.
83 (__gnat_stat_to_attr): Remove kludge for Windows.
84 (__gnat_file_exists_attr): Likewise.
85 The timestamp is now retreived using GetFileAttributesEx as faster.
87 2010-10-25 Javier Miranda <miranda@adacore.com>
89 * sem_ch3.adb (Derive_Interface_Subprogram): New subprogram.
90 (Derive_Subprograms): For abstract private types transfer to the full
91 view entities of uncovered interface primitives. Required because if
92 the interface primitives are left in the private part of the package
93 they will be decorated as hidden when the analysis of the enclosing
94 package completes (and hence the interface primitive is not visible
95 for dispatching calls).
97 2010-10-25 Matthew Heaney <heaney@adacore.com>
99 * Makefile.rtl, impunit.adb: Added bounded set and bounded map
101 * a-crbltr.ads: Added declaration of generic package for bounded tree
103 * a-rbtgbo.ads, a-rbtgbo.adb, a-rbtgbk.ads, a-rbtgbk.adb, a-btgbso.ads,
104 a-btgbso.adb, a-cborse.ads, a-cborse.adb, a-cborma.ads, a-cborma.adb:
107 2010-10-25 Thomas Quinot <quinot@adacore.com>
109 * sem_util.adb: Minor reformatting.
110 * usage.adb: Fix usage line for -gnatwh.
112 2010-10-25 Thomas Quinot <quinot@adacore.com>
114 * sem_ch12.adb (Analyze_Package_Instantiation): For an
115 instantiation in an RCI spec, omit package body if instantiation comes
116 from source, even as a nested
118 * exp_dist.adb (Add_Calling_Stubs_To_Declarations,
119 *_Support.Add_Receiving_Stubs_To_Declarations): Handle the case of
120 nested packages, package instantiations and subprogram instantiations.
122 2010-10-25 Robert Dewar <dewar@adacore.com>
124 * exp_ch5.adb (Expand_Predicated_Loop): Remove code for loop through
125 non-static predicate, since we agree not to allow this.
126 (Expand_Predicated_Loop): Properlay handle false predicate (null
127 list in Static_Predicate field.
128 * sem_ch13.adb (Build_Static_Predicate): Extensive changes to clean up
129 handling of more general predicate forms.
131 2010-10-25 Robert Dewar <dewar@adacore.com>
133 * sem_ch4.adb, sem_util.adb: Minor reformatting.
134 * sem_ch8.adb (Find_Selected_Component): Allow selection from instance
135 of type in predicate or invariant expression.
137 2010-10-25 Pascal Obry <obry@adacore.com>
139 * adaint.c (__gnat_stat_to_attr): Can set the timestamp on Windows now.
141 (__gnat_stat): Rewrite Win32 version.
143 2010-10-25 Robert Dewar <dewar@adacore.com>
145 * sem_warn.adb, einfo.ads, exp_ch4.adb: Minor comment fix
146 * sem_case.adb: Comment clarification for loops through false
148 * sem_util.adb: Minor reformatting
149 (Check_Order_Dependence): Fix bad double blank in error message
151 2010-10-25 Ed Schonberg <schonberg@adacore.com>
153 * sem_ch4.adb (Analyze_Membership_Op): in Ada_2012 a membership
154 operation can have a single alternative that is a value of the type.
155 Rewrite operation as an equality test.
157 2010-10-25 Matthew Heaney <heaney@adacore.com>
159 * Makefile.rtl, impunit.adb: Added a-cobove (bounded vector container)
161 * a-contai.ads: Added declaration of Capacity_Error exception.
162 * a-cobove.ads, a-cobove.adb: New files.
164 2010-10-25 Thomas Quinot <quinot@adacore.com>
166 * uname.adb: Revert previous change, no longer needed after change
169 2010-10-25 Thomas Quinot <quinot@adacore.com>
171 * scos.ads: Minor comment fix.
173 2010-10-25 Ed Schonberg <schonberg@adacore.com>
175 * sem_ch5.adb (Analyze_Assignment_Statement): Check dangerous order
177 * sem_ch6.adb (Analyze_Procedure_Call_Statement): Ditto.
178 * sem_res.adb (Analyze_Actuals): Add actual to list of actuals for
179 current construct, for subsequent order dependence checking.
180 (Resolve): Check order dependence on expressions that are not
182 * sem_util.adb (Check_Order_Dependence): Code cleanup, to correspond
183 to latest version of AI05-144-2.
184 * sem_warn.adb (Warn_On_Overlapping_Actuals): Code cleanup.
186 2010-10-25 Robert Dewar <dewar@adacore.com>
188 * sem_ch13.adb (Build_Static_Predicate): Moved out of
189 Build_Predicate_Function.
190 (Build_Static_Predicate): Complet rewrite for more general predicates
192 2010-10-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
193 Eric Botcazou <ebotcazou@adacore.com>
195 * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Function): Allow
196 In Out/Out parameters for functions.
197 * gcc-interface/trans.c (gnu_return_var_stack): New variable.
198 (create_init_temporary): New static function.
199 (Subprogram_Body_to_gnu): Handle In Out/Out parameters for functions.
200 (call_to_gnu): Likewise. Use create_init_temporary in order to create
201 temporaries for unaligned parameters and return value. If there is an
202 unaligned In Out or Out parameter passed by reference, push a binding
203 level if not already done. If a binding level has been pushed and the
204 call is returning a value, create the call statement.
205 (gnat_to_gnu) <N_Return_Statement>: Handle In Out/Out parameters for
208 2010-10-22 Ben Brosgol <brosgol@adacore.com>
210 * gnat_rm.texi: Add chapter on Ada 2012 support.
212 2010-10-22 Robert Dewar <dewar@adacore.com>
214 * sem_ch12.adb: Minor reformatting.
216 2010-10-22 Thomas Quinot <quinot@adacore.com>
218 * exp_dist.adb: Mark missing case of nested package when expanding
221 2010-10-22 Ed Schonberg <schonberg@adacore.com>
223 * par-ch10.adb: Discard incomplete with_clause.
225 2010-10-22 Robert Dewar <dewar@adacore.com>
227 * checks.adb (Enable_Range_Check): Remove code suppressing range check
228 if static predicate present, not needed.
229 * exp_attr.adb (Expand_Pred_Succ): Check Suppress_Assignment_Checks flag
230 * exp_ch3.adb (Expand_N_Object_Declaration): Check
231 Suppress_Assignment_Checks flag.
232 * exp_ch4.adb (Expand_N_In): Make some corrections for proper handling
233 of ranges when predicates are present.
234 * exp_ch5.adb (Expand_Predicated_Loop): New procedure
235 (Expand_N_Assignment_Statement): Check Suppress_Assignment_Checks flag
236 (Expand_N_Loop_Statement): Handle loops over predicated types
237 * sem_case.adb (Analyze_Choices): Remove extra blank in error message.
238 * sem_ch13.adb (Build_Predicate_Function.Add_Call): Suppress info
239 message for inheritance if within a generic instance, not useful there!
240 (Build_Static_Predicate): Optimize test in predicate function
241 based on static ranges determined.
242 * sem_ch5.adb (Analyze_Iteration_Scheme): Error for loop through
243 subtype with non-static predicate.
244 * sinfo.ads, sinfo.adb (Suppress_Assignment_Checks): New flag.
246 2010-10-22 Thomas Quinot <quinot@adacore.com>
248 * uname.adb (Get_Unit_Name.Add_Node_Name): If encountering an error
249 node in the unit name, propagate Program_Error to guard against
252 2010-10-22 Javier Miranda <miranda@adacore.com>
254 * sem_ch8.adb (Find_Selected_Component): Do not generate a subtype for
255 selected components of dispatch table wrappers.
257 2010-10-22 Ed Schonberg <schonberg@adacore.com>
259 * exp_ch9.adb (Make_Initialize_Protection): A protected type that
260 implements an interface must be treated as if it has entries, to
261 support dispatching select statements.
263 2010-10-22 Robert Dewar <dewar@adacore.com>
265 * sem_aggr.adb, sem_ch3.adb: Minor reformatting.
267 2010-10-22 Javier Miranda <miranda@adacore.com>
269 * sem_aggr.adb (Resolve_Array_Aggregate.Add): If the type of the
270 aggregate has a non standard representation the attributes 'Val and
271 'Pos expand into function calls and the resulting expression is
272 considered non-safe for reevaluation by the backend. Relocate it into
273 a constant temporary to indicate to the backend that it is side
276 2010-10-22 Ed Schonberg <schonberg@adacore.com>
278 * sem_ch3.adb (Build_Concurrent_Derived_Type): Create declaration for
279 derived corresponding record type only when expansion is enabled.
281 2010-10-22 Robert Dewar <dewar@adacore.com>
283 * sem_case.adb, sem_attr.adb (Bad_Predicated_Subtype_Use): Change order
285 * sem_ch13.adb (Build_Predicate_Function): Don't give inheritance
286 messages for generic actual subtypes.
287 * sem_ch9.adb, sem_res.adb, sem_util.adb, sem_util.ads, sem_ch3.adb
288 (Bad_Predicated_Subtype_Use): Use this procedure.
290 2010-10-22 Robert Dewar <dewar@adacore.com>
292 * sem_ch5.adb: Minor reformatting.
294 2010-10-22 Robert Dewar <dewar@adacore.com>
296 * a-except-2005.adb (Rmsg_18): New message text.
297 * a-except.adb (Rmsg_18): New message text.
298 * atree.adb (List25): New function
299 (Set_List25): New procedure
300 * atree.ads (List25): New function
301 (Set_List25): New procedure
302 * einfo.adb (Static_Predicate): Is now a list
303 (OK_To_Reference): Present in all entities
304 * einfo.ads (Static_Predicate): Is now a list
305 (OK_To_Reference): Applies to all entities
306 * exp_ch13.adb (Build_Predicate_Function): Moved to Sem_Ch13
307 * sem_attr.adb (Bad_Attribute_For_Predicate): Call
308 Bad_Predicated_Subtype_Use.
309 * sem_case.ads, sem_case.adb: Major surgery to deal with predicated
311 * sem_ch13.adb (Build_Predicate_Function): Moved from Exp_Ch13 to
313 (Build_Static_Predicate): New procedure handles static predicates.
314 * sem_ch3.adb (Analyze_Subtype_Declaration): Delay freeze on subtype
315 with no constraint if ancestor subtype has predicates.
316 (Analyze_Variant_Part): New calling sequence for Analyze_Choices
317 * sem_ch4.adb (Junk_Operand): Don't complain about OK_To_Reference
319 (Analyze_Case_Expression): New calling sequence for Analyze_Choices
320 * sem_ch5.adb (Analyze_Case_Statement): New calling sequence for
322 * sem_util.ads, sem_util.adb (Bad_Predicated_Subtype_Use): New procedure
323 * types.ads (PE_Bad_Predicated_Generic_Type): Replaces
324 PE_Bad_Attribute_For_Predicate.
325 * atree.h: Add definition of List25.
327 2010-10-22 Jerome Lambourg <lambourg@adacore.com>
329 * gnatlink.adb (Process_Binder_File): Remove CLI-specific code, now
331 (Gnatlink): Remove CLI-specific code, moved to dotnet-ld
332 * bindgen.adb (Gen_Object_Files_Options): Do not issue -L switches with
333 the .NET compiler, useless and unsupported.
335 2010-10-22 Robert Dewar <dewar@adacore.com>
337 * sem_util.ads (Get_Num_Lit_From_Pos): Fix errors in documentation,
338 this returns a Node_Id for a reference to the entity, not the entity
341 2010-10-22 Ed Schonberg <schonberg@adacore.com>
343 * sem_ch5.adb (Analyze_Iteration_Scheme): use Insert_Actions when
344 bounds require a temporary.
346 2010-10-22 Robert Dewar <dewar@adacore.com>
348 * sem_ch4.adb: Minor reformatting.
349 * sinfo.ads: Minor comment fixes for Ada 2012 syntax.
351 2010-10-22 Robert Dewar <dewar@adacore.com>
353 * par-ch5.adb: Minor reformatting.
354 * gcc-interface/Make-lang.in: Update dependencies.
356 2010-10-22 Robert Dewar <dewar@adacore.com>
358 * a-except.adb, a-except-2005.adb: Add new Rcheck entry.
359 * exp_ch13.adb (Add_Call): Make sure subtype is marked with
360 Has_Predicates set to True if it inherits predicates.
361 * sem_attr.adb: Handle 'First/'Last/'Range for predicated types
362 * types.ads (PE_Bad_Attribute_For_Predicate): New reason code
363 * types.h: Add new Rcheck entry.
364 * einfo.ads, einfo.adb (Static_Predicate): New field.
365 Minor code reorganization (file float routines in proper section)
366 Fix bad field name in comments.
368 2010-10-22 Robert Dewar <dewar@adacore.com>
370 * sem_eval.adb (Subtypes_Statically_Compatible): Check null exclusion
373 2010-10-22 Vincent Celier <celier@adacore.com>
375 * prj-conf.adb (Get_Config_Switches): Detect if there is at least one
376 declaration of IDE'Compiler_Command for one of the language in the main
378 (Do_Autoconf): If there were at least one Compiler_Command declared and
379 no target, invoke gprconfig with --target=all instead of the normalized
382 2010-10-22 Robert Dewar <dewar@adacore.com>
384 * par-ch4.adb: Update syntax in comments for Ada 2012.
385 * sinfo.ads: Update syntax in comments for Ada 2012
386 * par-ch3.adb (Check_Restricted_Expression): Remove "in Ada 2012 mode"
389 2010-10-22 Gary Dismukes <dismukes@adacore.com>
391 * sem_ch3.adb (Check_Or_Process_Discriminants): In Ada 2012, allow
392 limited tagged types to have defaulted discriminants. Customize the
393 error message for the Ada 2012 case.
394 (Process_Discriminants): In Ada 2012, allow limited tagged types to have
395 defaulted discriminants. Customize the error message for the Ada 2012
397 * sem_ch6.adb (Create_Extra_Formals): Suppress creation of the extra
398 formal for out formals of discriminated types in the case where the
399 underlying type is a limited tagged type.
400 * exp_attr.adb (Expand_N_Attribute_Reference, case
401 Attribute_Constrained): Return True for 'Constrained when the
402 underlying type of the prefix is a limited tagged type.
404 2010-10-22 Thomas Quinot <quinot@adacore.com>
406 * sem_ch3.adb (Complete_Private_Subtype): The full view of the subtype
407 may already have a rep item chain inherited from the full view of the
408 base type, so do not overwrite it when propagating rep items from the
409 partial view of the subtype.
410 * sem_ch3.adb: Minor code reorganization. Minor reformatting.
412 2010-10-22 Sergey Rybin <rybin@adacore.com>
414 * gnat_ugn.texi (gnatmetric): Remove description of debug option.
416 2010-10-22 Tristan Gingold <gingold@adacore.com>
418 * adaint.c (__gnat_number_of_cpus): Add implementation for VMS.
420 2010-10-22 Ed Schonberg <schonberg@adacore.com>
422 * par-ch5.adb: Set properly starting sloc of loop parameter.
424 2010-10-22 Ed Schonberg <schonberg@adacore.com>
426 * sem_util.adb (May_Be_Lvalue): An actual in a function call can be an
427 lvalue in Ada2012, if the function has in-out parameters.
429 2010-10-22 Robert Dewar <dewar@adacore.com>
431 * cstand.adb, einfo.adb, exp_attr.adb, sem_prag.adb, sem_vfpt.adb,
432 sem_ch10.adb: Minor reformatting.
434 2010-10-22 Sergey Rybin <rybin@adacore.com>
436 * gnat_ugn.texi: Remove most of the content of gnatcheck chapter.
438 2010-10-22 Ed Schonberg <schonberg@adacore.com>
440 * sem_attr.adb: Handle indexed P'old.
442 2010-10-22 Geert Bosch <bosch@adacore.com>
444 * cstand.adb (Build_Float_Type): Set Float_Rep according to platform.
445 * einfo.ads (Float_Rep): New attribute.
446 (Float_Rep_Kind): Move from body. Add comments.
447 * einfo.adb (Float_Rep_Kind): Move to spec
448 (Float_Rep): Now a real field instead of local function.
449 (Set_Float_Rep): New procedure to set floating point representation
450 (Set_Vax_Float): Remove.
451 (Write_Entity_Flags): Remove Vax_Float flag.
452 (Write_Field10_Name): Add E_Floating_Point_Type case for Float_Rep.
453 * exp_attr.adb (Attribute_Valid): Use case statement for representation
455 * sem_ch3.adb (Build_Derived_Numeric_Type,
456 Floating_Point_Type_Declaration): Set Float_Rep instead of Vax_Float
458 * sem_util.ads, sem_util.adb (Is_AAMP_Float): Remove.
459 * sem_vfpt.adb (Set_D_Float, Set_F_Float, Set_G_Float, Set_IEEE_Long,
460 Set_IEEE_Short): Set Float_Rep instead of Vax_Float attribute.
462 2010-10-22 Robert Dewar <dewar@adacore.com>
464 * sprint.adb: Minor reformatting.
466 2010-10-22 Robert Dewar <dewar@adacore.com>
468 * exp_ch3.adb (Expand_N_Object_Declaration): Do required predicate
470 * sem_ch3.adb (Complete_Private_Subtype): Propagate predicates to full
472 * sem_ch6.adb (Invariants_Or_Predicates_Present): New name for
474 (Process_PPCs): Handle predicates generating post conditions
475 * sem_util.adb (Is_Partially_Initialized_Type): Add
476 Include_Null parameter.
477 * sem_util.ads (Is_Partially_Initialized_Type): Add
478 Include_Null parameter.
480 2010-10-22 Sergey Rybin <rybin@adacore.com>
482 * gnat_ugn.texi (gnatelim): Add description for '--ignore' option
484 2010-10-22 Thomas Quinot <quinot@adacore.com>
486 * sem_prag.adb (Check_First_Subtype): Specialize error messages for
487 case where argument is not a type.
489 2010-10-22 Robert Dewar <dewar@adacore.com>
491 * exp_ch5.adb, par-ch4.adb, par-ch5.adb, sem_ch5.adb, sinfo.ads: Minor
494 2010-10-22 Arnaud Charlet <charlet@adacore.com>
496 * a-locale.adb: Minor code clean up.
498 2010-10-22 Thomas Quinot <quinot@adacore.com>
500 * exp_ch4.adb: Minor code reorganization and factoring.
502 2010-10-22 Thomas Quinot <quinot@adacore.com>
504 * exp_ch5.adb, sem_ch5.adb, sinfo.ads, snames.ads-tmpl, par-ch5.adb:
507 2010-10-22 Geert Bosch <bosch@adacore.com>
509 * stand.ads: Fix typo in comment.
511 2010-10-22 Ed Schonberg <schonberg@adacore.com>
513 * sem_ch6.adb: Enable in-out parameter for functions.
515 2010-10-22 Ed Schonberg <schonberg@adacore.com>
517 * sem_ch4.adb (Analyze_Quantified_Expression): Handle properly loop
518 iterators that are transformed into container iterators after analysis.
519 * exp_ch4.adb (Expand_N_Quantified_Expression): Handle properly both
520 iterator forms before rewriting as a loop.
522 2010-10-22 Brett Porter <porter@adacore.com>
524 * a-locale.adb, a-locale.ads, locales.c: New files.
525 * Makefile.rtl: Add a-locale
526 * gcc-interface/Makefile.in: Add locales.c
528 2010-10-22 Robert Dewar <dewar@adacore.com>
530 * sem_util.ads, sem_util.adb, sem_aux.ads, sem_aux.adb
531 (Is_Generic_Formal): Moved from Sem_Util to Sem_Aux.
533 2010-10-22 Ed Schonberg <schonberg@adacore.com>
535 * exp_ch5.adb (Expand_Iterator_Loop): New subprogram, implements new
536 iterator forms over arrays and containers, in loops and quantified
538 * exp_util.adb (Insert_Actions): include N_Iterator_Specification.
539 * par-ch4.adb (P_Quantified_Expression): Handle iterator specifications.
540 * par-ch5.adb (P_Iterator_Specification): New subprogram. Modify
541 P_Iteration_Scheme to handle both loop forms.
542 * sem.adb: Handle N_Iterator_Specification.
543 * sem_ch5.adb, sem_ch5.ads (Analyze_Iterator_Specification): New
545 * sinfo.adb, sinfo.ads: New node N_Iterator_Specification.
546 N_Iteration_Scheme can now include an Iterator_Specification. Ditto
547 for N_Quantified_Expression.
548 * snames.ads-tmpl: Add names Cursor, Element, Element_Type, No_Element,
549 and Previous, to support iterators over predefined containers.
550 * sprint.adb: Handle N_Iterator_Specification.
552 2010-10-22 Thomas Quinot <quinot@adacore.com>
554 * sem_prag.adb, sem_ch12.adb, sem_util.adb, sem_util.ads
555 (Is_Generic_Formal): Move from body of Sem_Ch12 to Sem_Util.
556 (Check_Arg_Is_Local_Name): Fix check in the case of a pragma appearing
557 immediately after a library unit.
558 (Analyze_Pragma, case Preelaborable_Initialization): Pragma may apply to
559 a formal derived type.
561 2010-10-22 Geert Bosch <bosch@adacore.com>
563 * gcc-interface/Make-lang.in: Remove ttypef.ads
564 * checks.adb: Use Machine_Mantissa_Value and Machine_Radix_Value instead
565 of Machine_Mantissa and Machine_Radix.
566 * cstand.adb (P_Float_Range): Directly print the Type_Low_Bound and
567 Type_High_Bound of the type, instead of choosing constants from Ttypef.
568 (Set_Float_Bounds): Compute the bounds based on Machine_Radix_Value,
569 Machine_Emax_Value and Machine_Mantissa_Value instead of special-casing
571 * einfo.ads (Machine_Emax_Value, Machine_Emin_Value,
572 Machine_Mantissa_Value, Machine_Radix_Value, Model_Emin_Value,
573 Model_Epsilon_Value, Model_Mantissa_Value, Model_Small_Value,
574 Safe_Emax_Value, Safe_First_Value, Safe_Last_Value): Add new
575 synthesized floating point attributes.
576 * einfo.adb (Float_Rep): Determine the kind of floating point
577 representation used for a given type.
578 (Machine_Emax_Value, Machine_Emin_Value, Machine_Mantissa_Value,
579 Machine_Radix_Value): Implement based on Float_Rep_Kind of a type and
580 the number of digits in the type.
581 (Model_Emin_Value, Model_Epsilon_Value, Model_Mantissa_Value,
582 Model_Small_Value, Safe_Emax_Value, Safe_First_Value, Safe_Last_Value):
583 Implement new synthesized floating point attributes based on the various
585 * eval_fat.ads: Remove Machine_Mantissa and Machine_Radix.
586 * eval_fat.adb (Machine_Mantissa, Machine_Radix): Remove. Use the
587 Machine_Mantissa_Value and Machine_Radix_Value functions instead.
588 * exp_vfpt.adb (VAXFF_Digits, VAXDF_Digits, VAXFG_Digits): Define local
589 constants, instead of using constants from Ttypef.
590 * gnat_rm.texi: Reword comments referencing Ttypef.
591 * sem_attr.ads: Reword comment referencing Ttypef.
592 * sem_attr.adb (Float_Attribute_Universal_Integer,
593 Float_Attribute_Universal_Real): Remove.
594 (Attribute_Machine_Emax, Attribute_Machine_Emin,
595 Attribute_Machine_Mantissa, Attribute_Model_Epsilon,
596 Attribute_Model_Mantissa, Attribute_Model_Small, Attribute_Safe_Emax,
597 Attribute_Safe_First, Attribute_Safe_Last, Model_Small_Value): Use
598 attributes in Einfo instead of Float_Attribute_Universal_Real and
599 Float_Attribute_Universal_Integer and all explicit constants.
600 * sem_util.ads, sem_util.adb (Real_Convert): Remove.
601 * sem_vfpt.adb (VAXDF_Digits, VAXFF_Digits, VAXGF_Digits, IEEEL_Digits,
602 IEEES_Digits): New local constants, in order to remove dependency on
604 * tbuild.ads (Make_Float_Literal): New function.
605 * tbuild.adb (Make_Float_Literal): New function to create a new
606 N_Real_Literal, constructing it as simple as possible for best
607 output of constants in -gnatS.
608 * ttypef.ads: Remove.
610 2010-10-22 Robert Dewar <dewar@adacore.com>
612 * checks.adb (Apply_Predicate_Check): Remove attempt at optimization
613 when subtype is the same, caused legitimate checks to be missed.
614 * exp_ch13.adb (Build_Predicate_Function): Use Nearest_Ancestor to get
615 inheritance from right entity.
616 * freeze.adb (Freeze_Entity): Use Nearest_Ancestor to freeze in the
617 derived type case if the ancestor type has predicates.
618 * sem_aux.ads, sem_aux.adb (Nearest_Ancestor): New function.
619 * sem_prag.adb (Check_Enabled): Minor code reorganization.
621 2010-10-22 Arnaud Charlet <charlet@adacore.com>
623 * gcc-interface/utils.c, gcc-interface/gigi.h: Minor reformatting.
625 2010-10-22 Thomas Quinot <quinot@adacore.com>
627 * einfo.ads (Declaration_Node): Clarify documentation, in particular
628 regarding what is returned for subprogram entities.
630 2010-10-22 Arnaud Charlet <charlet@adacore.com>
632 * exp_attr.adb (Make_Range_Test): Generate a Range node instead of
633 explicit comparisons, generates simpler expanded code.
634 * a-except-2005.adb (Rcheck_06_Ext): New.
635 * gcc-interface/trans.c (gigi, gnat_to_gnu): Handle validity checks
637 * gcc-interface/Make-lang.in: Update dependencies.
639 2010-10-22 Robert Dewar <dewar@adacore.com>
641 * sem_ch3.adb (Array_Type_Declaration): Error for subtype wi predicate
643 (Constrain_Index): Error of subtype wi predicate in index constraint
644 * sem_ch9.adb (Analyze_Entry_Declaration): Error of subtype wi
645 predicate in entry family.
646 * sem_res.adb (Resolve_Slice): Error of type wi predicate in slice.
648 2010-10-22 Javier Miranda <miranda@adacore.com>
650 * sem_util.ads, sem_util.adb (Collect_Parents): New subprogram.
651 (Original_Corresponding_Operation): New subprogram.
652 (Visible_Ancestors): New subprogram.
653 * sem_ch6.adb (New_Overloaded_Entity): Handle new case of dispatching
654 operation that overrides a hidden inherited primitive.
655 * sem_disp.adb (Find_Hidden_Overridden_Primitive): New subprogram.
656 (Check_Dispatching_Operation): if the new dispatching operation
657 does not override a visible primtive then check if it overrides
658 some hidden inherited primitive.
660 2010-10-22 Ed Schonberg <schonberg@adacore.com>
662 * sem_ch10.adb (Analyze_With_Clause): If the parent_unit_name in a with
663 clause is a child unit that denotes a renaming, replace the
664 parent_unit_name with a reference to the renamed unit, because the
665 prefix is irrelevant to subsequent visibility..
667 2010-10-22 Robert Dewar <dewar@adacore.com>
669 * einfo.ads, einfo.adb (Has_Predicates): Flag is now on all entities
671 * exp_ch13.adb (Build_Predicate_Function): Output info msgs for
673 * sem_ch13.adb (Analyze_Aspect_Specifications): Make sure we have a
674 freeze node for entities for which a predicate is specified.
675 (Analyze_Aspect_Specifications): Avoid duplicate calls
676 * sem_ch3.adb (Analyze_Full_Type_Declaration): Remove attempt to avoid
677 duplicate calls to Analye_Aspect_Specifications.
679 2010-10-22 Thomas Quinot <quinot@adacore.com>
681 * a-exextr.adb, atree.ads, freeze.adb: Minor reformatting.
683 2010-10-21 Robert Dewar <dewar@adacore.com>
685 * sem_ch3.adb: Minor reformatting.
687 2010-10-21 Thomas Quinot <quinot@adacore.com>
689 * einfo.ads (Next_Girder_Discriminant): Remove obsolete description for
692 2010-10-21 Nicolas Roche <roche@adacore.com>
694 * gnatmem.adb, memroot.adb, memroot.ads, gmem.c,
695 gcc-interface/Makefile.in: Remove gnatmem specific files.
697 2010-10-21 Thomas Quinot <quinot@adacore.com>
699 * sem_res.adb, exp_ch13.adb: Minor reformatting.
701 2010-10-21 Thomas Quinot <quinot@adacore.com>
703 * sem_ch3.adb (Check_Or_Process_Discriminant): Reject illegal attempt
704 to provide a tagged full view as the completion of an untagged partial
705 view if the partial view has a discriminant with default.
707 2010-10-21 Arnaud Charlet <charlet@adacore.com>
709 * gcc-interface/Make-lang.in: Update dependencies.
711 2010-10-21 Robert Dewar <dewar@adacore.com>
713 * checks.ads, checks.adb (Apply_Predicate_Check): New procedure
714 Minor code reorganization.
715 * einfo.adb (Has_Predicates): Fix assertion.
716 * exp_ch13.adb (Build_Predicate_Function): Move from Sem_Ch13 spec to
718 (Expand_N_Freeze_Entity): Call build predicate function.
719 * exp_ch4.adb (Expand_N_Type_Conversion): Add predicate check.
720 * exp_ch5.adb (Expand_N_Assignment_Statement): Add predicate check.
721 * exp_prag.adb (Expand_Pragma_Check): Use all lower case for name of
723 * freeze.adb (Freeze_Entity): Move building of predicate function to
725 * sem_ch13.adb (Build_Predicate_Function): Move from Sem_Ch13 to
727 * sem_ch13.ads (Build_Predicate_Function): Move from Sem_Ch13 to
729 * sem_ch3.adb (Analyze_Declarations): Remove call to build predicate
731 * sem_res.adb (Resolve_Actuals): Apply predicate check.
733 2010-10-21 Robert Dewar <dewar@adacore.com>
735 * einfo.ads, einfo.adb: Replace Predicate_Procedure by
737 * exp_ch4.adb (Expand_N_In): Handle predicates.
738 * exp_util.ads, exp_util.adb (Make_Predicate_Call): New function.
739 (Make_Predicate_Check): New function.
740 * freeze.adb (Freee_Entity): Build predicate function if needed.
741 * sem_ch13.adb (Build_Predicate_Function): New procedure.
742 (Analyze_Aspect_Specifications): No third argument for Predicate pragma
743 built from Predicate aspect.
744 * sem_ch13.ads (Build_Predicate_Function): New procedure.
745 * sem_ch3.adb: Add handling for predicates.
746 * sem_eval.adb (Eval_Membership_Op): Never static if predicate
748 * sem_prag.adb (Analye_Pragma, case Predicate): Does not take a third
751 2010-10-21 Robert Dewar <dewar@adacore.com>
753 * einfo.ads, einfo.adb: Add handling of predicates.
754 Rework handling of invariants.
755 * exp_ch3.adb, exp_ch4.adb, exp_util.adb, sem_ch6.adb: Minor changes to
756 handing of invariants.
757 * par-prag.adb: Add dummy entry for pragma Predicate
758 * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing for
760 * sem_prag.adb: Add implementation of pragma Predicate.
761 * snames.ads-tmpl: Add entries for pragma Predicate.
763 2010-10-21 Robert Dewar <dewar@adacore.com>
765 * elists.adb: Minor reformatting.
767 2010-10-21 Geert Bosch <bosch@adacore.com>
769 * urealp.adb (UR_Write): Write hexadecimal constants with exponent 1 as
770 decimal constants, and write any others using the exponent notation.
771 Minor reformatting throughout
772 (Store_Ureal_Normalized): New function (minor code reorganization)
774 2010-10-21 Robert Dewar <dewar@adacore.com>
776 * einfo.ads, xeinfo.adb: Minor reformatting.
777 * s-stalib.ads: Minor comment fixes.
779 2010-10-21 Ed Schonberg <schonberg@adacore.com>
781 * sem_ch6.adb (Enter_Overloaded_Entity): Refine warning message about
782 hiding, to remove noise warnings about hiding predefined operators.
784 2010-10-21 Emmanuel Briot <briot@adacore.com>
786 * g-comlin.adb (Add_Switch): Fix handling of switches with no separator
787 when the parameter has length 1.
789 2010-10-21 Jose Ruiz <ruiz@adacore.com>
791 * sem_prag.adb (Set_Ravenscar_Profile): Enforce the restrictions of no
792 dependence on Ada.Execution_Time.Timers,
793 Ada.Execution_Time.Group_Budget, and
794 System.Multiprocessors.Dispatching_Domains which are part of the
796 * impunit.adb (Non_Imp_File_Names_05): Add the file "a-etgrbu" to the
797 list of Ada 2005 files for package Ada.Execution_Time.Group_Budgets.
798 (Non_Imp_File_Names_12): Add the file "s-mudido" to the list of Ada 2012
799 files for package System.Mutiprocessors.Dispatching_Domains.
801 2010-10-21 Tristan Gingold <gingold@adacore.com>
803 * ug_words, vms_data.ads: Define the VMS qualifier for -gnateE.
805 2010-10-21 Thomas Quinot <quinot@adacore.com>
807 * sem_ch3.ads (Process_Discriminants): Clarify cases where this is
808 called for a completion.
810 2010-10-21 Geert Bosch <bosch@adacore.com>
812 * uintp.ads: Expand image buffer to have enough room for 128-bit values
813 * urealp.ads (UR_Write): Write constants in base 16 in hexadecimal
814 notation; either as fixed point literal or in canonical radix 16
817 2010-10-21 Robert Dewar <dewar@adacore.com>
819 * a-cgaaso.ads, a-tags.ads, exp_ch3.adb, exp_attr.adb, exp_ch4.adb,
820 exp_ch3.ads, exp_ch7.adb, exp_ch9.adb, exp_disp.adb, exp_disp.ads,
821 exp_dist.adb, exp_util.adb, layout.adb, lib-xref.adb, lib.ads,
822 prep.adb, prj-strt.adb, s-ststop.adb, s-taskin.ads, s-tataat.ads,
823 sem_aggr.adb, sem_attr.adb, sem_ch12.adb, sem_ch3.adb, sem_ch4.adb,
824 sem_ch4.ads, sem_ch5.adb, sem_res.adb, sem_util.adb, einfo.adb,
825 g-sothco.ads, make.adb: Minor reformatting
827 2010-10-21 Vincent Celier <celier@adacore.com>
829 * vms_data.ads: Add new qualifiers /SRC_INFO= and
830 /UNCHECKED_SHARED_LIB_IMPORTS for GNAT COMPILE.
831 Correct qualifier /SRC_INFO= for GNAT MAKE
833 2010-10-21 Ed Schonberg <schonberg@adacore.com>
835 * exp_aggr.adb (Flatten): An association for a subtype may be an
837 (Safe_Left_Hand_Side): An unchecked conversion is part of a safe
838 left-hand side if the expression is.
839 (Is_Safe_Index): new predicate
840 * exp_ch3.adb (Expand_Freeze_Enumeration_Type): Indicate that the
841 generated Rep_To_Pos function is a Pure_Function.
843 2010-10-21 Robert Dewar <dewar@adacore.com>
845 * gnat_rm.texi: Document Invariant pragma.
847 2010-10-21 Javier Miranda <miranda@adacore.com>
849 * exp_ch5.adb: Update comment.
851 2010-10-21 Robert Dewar <dewar@adacore.com>
853 * sem_ch13.adb (Build_Invariant_Procedure): Remove commented out code
854 for interfaces, since invariants are not allowed on interfaces in any
857 2010-10-21 Javier Miranda <miranda@adacore.com>
859 * sem_attr.adb (Resolve_Attribute): After replacing the range attribute
860 node with a range expression ensure that its evaluation will not have
862 * exp_ch5.adb (Expand_Assign_Array): Propagate the Parent to the
863 unchecked conversion node generated to handle assignment of private
864 types. Required to allow climbing the subtree if Insert_Action is
867 2010-10-21 Robert Dewar <dewar@adacore.com>
869 * par-ch3.adb (P_Interface_Type_Definition): Allow for possibility of
870 aspect clause presence terminating the type definition.
872 2010-10-21 Robert Dewar <dewar@adacore.com>
874 * exp_ch4.adb, exp_intr.adb, par-ch4.adb, scn.adb, sem_ch4.adb,
875 sem_res.adb, sem_util.adb, sinfo.ads, a-except-2005.adb: Minor
877 * snames.ads-tmpl: Add note on Name_Some (not a reserved keyword).
879 2010-10-21 Geert Bosch <bosch@adacore.com>
881 * ttypef.ads: Further cleanup of Safe_XXX float attributes.
883 2010-10-19 Ed Schonberg <schonberg@adacore.com>
885 * exp_ch4.adb, exp_ch4.ads (Expand_Quantified_Expression): New procedure
886 * exp_util.adb (Insert_Actions): Include Quantified_Expression.
887 * expander.adb: Call Expand_Qualified_Expression.
888 * par.adb: New procedure P_Quantified_Expression. Make
889 P_Loop_Parameter_Specification global for use in quantified expressions.
890 * par-ch3.adb (P_Subtype_Mark_Resync): Allow "some" as an identifier if
892 * par-ch4.adb: New procedure P_Quantified_Expression.
893 * par-ch5.adb: P_Loop_Parameter_Specification is now global.
894 * scans.adb, scans.ads: Introduce token Some. For now leave as
896 * scn.adb (Scan_Reserved_Identifier): For earlier versions of Ada,
897 treat Some as a regular identifier.
898 * sem.adb: Call Analyze_Quantified_Expression.
899 * sem_ch4.adb, sem_ch4.ads: New procedure Analyze_Quantified_Expression.
900 * sem_ch5.adb, sem_ch5.ads: Analyze_Iteration_Scheme is public, for use
901 in quantified expressions.
902 * sem_res.adb: New procedure Resolve_Qualified_Expression.
903 * sinfo.adb, sinfo.ads: New node N_Quantified_Expression
904 * snames.ads-tmpl: New name Some.
905 * sprint.adb: Output quantified_expression.
907 2010-10-19 Robert Dewar <dewar@adacore.com>
909 * a-exexda.adb: Minor reformatting
910 Minor code reorganization.
912 2010-10-19 Robert Dewar <dewar@adacore.com>
914 * sem_eval.adb: Minor reformatting.
916 2010-10-19 Tristan Gingold <gingold@adacore.com>
918 * exp_ch4.adb (Expand_N_And_Op, Expand_N_Or_Op, Expand_N_Xor_Op): Call
919 Expand_Intrinsic_Call if the function is intrinsic.
920 * exp_intr_adb (Expand_Binary_Operator): Handle VMS case for logical
921 binary operator on the unsigned_quadword record.
922 * exp_intr.ads (Expand_Intrinsic_Call): Update comments.
924 2010-10-19 Geert Bosch <bosch@adacore.com>
926 * gnat_rm.texi (pragma Float_Representation): Fix typo.
928 2010-10-19 Arnaud Charlet <charlet@adacore.com>
930 * switch-c.adb (Scan_Front_End_Switches): Add handling of -gnateE.
931 * fe.h (Exception_Extra_Info): Declare.
932 * usage.adb (usage): Add -gnateE doc.
933 * checks.adb (Install_Null_Excluding_Check): Use better sloc.
934 * sem_util.adb (Insert_Explicit_Dereference): Ditto.
935 * gnat_ugn.texi: Document -gnateE switch.
936 * a-except.adb (Set_Exception_C_Msg): New parameter Column.
937 * a-except-2005.adb (Set_Exception_C_Msg): New parameter Column.
938 (Raise_Constraint_Error_Msg): Ditto.
939 (Image): New helper function.
940 (Rcheck_00_Ext, Rcheck_05_Ext, Rcheck_12_Ext): New procedure with more
941 detailed exception information.
942 Adjust calls to Set_Exception_C_Msg and Raise_Constraint_Error_Msg.
943 * a-exexda.adb (Set_Exception_C_Msg): New parameter Column.
944 * opt.ads (Exception_Extra_Info): New flag.
945 * gcc-interface/utils.c (gnat_raise_decls_ext): New.
946 * gcc-interface/utils2.c (build_call_raise_range,
947 build_call_raise_column): New functions.
948 * gcc-interface/gigi.h (exception_info_kind, gnat_raise_decls_ext,
949 build_call_raise_range, build_call_raise_column): Declare.
950 gcc-interface/trans.c (build_raise_check): New function.
951 (gigi): Initialize gnat_raise_decls_ext.
952 (gnat_to_gnu): Add initial support for -gnateE switch.
953 * gcc-interface/Make-lang.in: Update dependencies.
955 2010-10-19 Geert Bosch <bosch@adacore.com>
957 * ttypef.ads: Change VAXDF_Last to be -VAXDF_First, as type is
960 2010-10-19 Robert Dewar <dewar@adacore.com>
962 * atree.h (Field29): Fix incorrect definition.
963 * einfo.adb (Invariant_Procedure): New attribute
964 (Has_Invariants): New flag
965 (Has_Inheritable_Invariants): New flag
966 (OK_To_Reference): New flag
967 Minor code reorganization (use Next_Rep_Item function)
968 * einfo.ads (Invariant_Procedure): New attribute
969 (Has_Invariants): New flag
970 (Has_Inheritable_Invariants): New flag
971 (OK_To_Reference): New flag
972 * exp_ch3.adb (Expand_N_Object_Declaration): Add check for invariant
973 * exp_ch4.adb (Expand_N_Type_Conversion): Check invariant on type
974 conversion. Minor reformatting.
975 * exp_util.ads, exp_util.adb (Make_Invariant_Call): New procedure.
976 * opt.ads (List_Inherited_Aspects): New name for List_Inherited_Pre_Post
977 * par-prag.adb: Add dummy entry for pragma Invariant.
978 * sem_ch13.adb (Build_Invariant_Procedure): New procedure
979 (Analyze_Aspect_Specification): Add support for Invariant aspect
980 * sem_ch13.ads (Build_Invariant_Procedure): New procedure
981 * sem_ch3.adb (Build_Derived_Type): Propagate invariant information
982 (Process_Full_View): Deal with invariants, building invariant procedure
984 * sem_ch6.adb (Process_PPCs): Add processing of invariants
985 * sem_ch7.adb (Analyze_Package_Specification): Build invariant
987 * sem_prag.adb: Implement pragma Invariant.
988 * sem_res.adb (Resolve_Entity_Name): Allow type reference if
990 * sem_warn.adb (List_Inherited_Aspects): New name for
991 List_Inherited_Pre_Post.
992 * snames.ads-tmpl: Add entries for pragma Invariant.
993 * treepr.adb (Print_Entity_Information): Add handling of Field29.
994 * usage.adb: Warning .l/.L applies to invariant as well as pre/post.
996 2010-10-19 Javier Miranda <miranda@adacore.com>
998 * par-ch4.adb: Update documentation of Ada 2012 syntax rules for
1001 2010-10-19 Bob Duff <duff@adacore.com>
1003 * sem_attr.adb (Eval_Attribute): Implement Max_Alignment_For_Allocation
1005 * exp_attr.adb (Expand_N_Attribute_Reference): Add
1006 Attribute_Max_Alignment_For_Allocation to the case statement.
1007 * snames.ads-tmpl (Name_Max_Alignment_For_Allocation,
1008 Attribute_Max_Alignment_For_Allocation): New attribute name.
1010 2010-10-19 Ed Schonberg <schonberg@adacore.com>
1012 * sem_ch3.adb (OK_For_Limited_Init_In_05): a call to an access to
1013 parameterless function appears syntactically as an explicit dereference.
1015 2010-10-19 Thomas Quinot <quinot@adacore.com>
1017 * sem_ch8.adb, sem_ch12.adb, opt.ads, sem_ch6.adb, sem_res.adb,
1018 i-cexten.ads, exp_disp.adb, exp_ch4.adb, exp_ch9.adb: Minor reformatting
1020 2010-10-19 Thomas Quinot <quinot@adacore.com>
1022 * sem_util.adb (Collect_Primitive_Operations): A function with an
1023 anonymous access result designating T is a primitive operation of T.
1025 2010-10-19 Tristan Gingold <gingold@adacore.com>
1027 * init.c: On Alpha/VMS, only adjust PC for HPARITH.
1029 2010-10-19 Tristan Gingold <gingold@adacore.com>
1031 * sem_attr.adb (Eval_Attribute): Handle Attribute_Ref, which can be
1034 2010-10-19 Ed Schonberg <schonberg@adacore.com>
1036 * sem_ch12.adb (Check_Generic_Child_Unit): Handle properly the case of
1037 an instantiation of a renaming of the implicit generic child that
1038 appears within an instance of its parent.
1040 2010-10-19 Thomas Quinot <quinot@adacore.com>
1042 * exp_ch9.adb: Minor reformatting.
1043 * einfo.adb, einfo.ads, atree.adb, atree.ads, exp_dist.adb, atree.h:
1044 (Referenced_Object): Remove unused entity attribute.
1045 (Direct_Primitive_Operations): Move to Elist10, this is set for all
1046 tagged types, including synchronous ones, so can't use field15 which is
1047 used as Storage_Size_Variable for task types and Entry_Bodies_Array for
1049 (Add_RACW_Primitive_Declarations_And_Bodies): Remove bogus guard
1050 against Concurrent_Types (we must handle the case of a RACW designating
1051 a class-wide private synchronous type).
1052 Use Direct_Primitive_Operations, not Primitive_Operations, since we
1053 really want the former.
1055 2010-10-19 Bob Duff <duff@adacore.com>
1057 * sem_ch8.adb (Pop_Scope): Change "return;" to "raise Program_Error;".
1059 2010-10-19 Javier Miranda <miranda@adacore.com>
1061 * exp_ch4.adb (Expand_Set_Membership.Make_Cond): Add missing support
1064 2010-10-19 Thomas Quinot <quinot@adacore.com>
1066 * einfo.ads, atree.ads: Minor comment fixes.
1068 2010-10-18 Bob Duff <duff@adacore.com>
1070 * sinfo.ads, sinfo.adb: Modify comment about adding fields to be more
1071 correct, and to be in a more convenient order.
1072 (Default_Storage_Pool): New field of N_Compilation_Unit_Aux, for
1073 recording the Default_Storage_Pool for a parent library unit.
1074 * einfo.ads (Etype): Document the case in which Etype can be Empty.
1075 * sem_prag.adb (Pragma_Default_Storage_Pool): Analyze the new
1076 Default_Storage_Pool pragma.
1077 * sem.ads (Save_Default_Storage_Pool): Save area for push/pop scopes.
1078 * gnat_ugn.texi: Document Default_Storage_Pool as a new configuration
1080 * freeze.adb (Freeze_Entity): When freezing an access type, take into
1081 account any Default_Storage_Pool pragma that applies. We have to do
1082 this at the freezing point, because up until that point, a Storage_Pool
1083 or Storage_Size clause could occur, which should override the
1084 Default_Storage_Pool.
1085 * par-prag.adb: Add this pragma to the list of pragmas handled entirely
1087 * sem_ch8.adb (Push_Scope, Pop_Scope): Save and restore the
1088 Default_Storage_Pool information.
1089 * opt.ads (Default_Pool, Default_Pool_Config): New globals for recording
1090 currently-applicable Default_Storage_Pool pragmas.
1091 * opt.adb: Save/restore the globals as appropriate.
1092 * snames.ads-tmpl (Name_Default_Storage_Pool,
1093 Pragma_Default_Storage_Pool): New pragma name.
1095 2010-10-18 Vincent Celier <celier@adacore.com>
1097 * make.adb (Switches_Of): Put the spec and body suffix in canonical
1100 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1102 * sem_ch13.adb (Analyze_Aspect_Specifications): If subprogram is at the
1103 library level, the pre/postconditions must be treated as global
1104 declarations, i.e. placed on the Aux_Decl nodes of the compilation unit.
1105 * freeze.adb (Freeze_Expression): If the expression is at library level
1106 there is no enclosing record to check.
1108 2010-10-18 Javier Miranda <miranda@adacore.com>
1110 * sem_ch3.ads (Find_Type_Name): Add documentation.
1111 * sem_ch3.adb (Analyze_Full_Type_Declaration): Code cleanup because the
1112 propagation of the class-wide entity is now done by routine
1113 Find_Type_Name to factorize this code.
1114 (Analyze_Private_Extension_Declaration): Handle private type that
1115 completes an incomplete type.
1116 (Tag_Mismatch): Add error message for tag mismatch in a private type
1117 declaration that completes an incomplete type.
1118 (Find_Type_Name): Handle completion of incomplete type by means of
1119 a private declaration. Generate an error if a tagged incomplete type
1120 is completed by an untagged private type.
1121 * sem_ch7.adb (New_Private_Type): Handle private type that completes an
1123 * einfo.ads (Full_View): Add documentation.
1125 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1127 * sem_ch12.adb (Analyze_Formal_Package_Declaration): If the package is
1128 a renaming, generate a reference for it before analyzing the renamed
1129 entity, to prevent spurious warnings.
1131 2010-10-18 Jose Ruiz <ruiz@adacore.com>
1133 * adaint.c (__gnat_pthread_setaffinity_np,
1134 __gnat_pthread_attr_setaffinity_np): Remove wrappers, no longer needed.
1135 * s-osinte-linux.ads (pthread_setaffinity_np,
1136 pthread_attr_setaffinity_np): Remove use of wrappers.
1137 * s-taprop-linux.adb (Create_Task, Initialize): Restore check to verify
1138 whether the affinity functionality is available in the OS.
1139 * gcc-interface/utils.c: Set TREE_STATIC on functions only when there
1142 2010-10-18 Robert Dewar <dewar@adacore.com>
1144 * einfo.ads, einfo.adb: Minor reformatting.
1145 * gnat_ugn.texi, ug_words: Add missing entries, fix typos.
1147 2010-10-18 Emmanuel Briot <briot@adacore.com>
1149 * g-comlin.adb (Is_In_Config): When the switch accepts either a space
1150 or equal, we output an equal every time.
1152 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1154 * sem_res.adb (Resolve_Entry_Call): Handle call to an entry family
1155 member when pre/post conditions are present.
1156 * exp_ch9.adb (Build_PPC_Wrapper): The PPC_Wrapper for an entry family
1157 includes an index parameter, and the name of the enclosed entry call is
1158 an indexed component.
1160 2010-10-18 Robert Dewar <dewar@adacore.com>
1162 * einfo.ads, einfo.adb: Minor reformatting.
1164 2010-10-18 Jose Ruiz <ruiz@adacore.com>
1166 * adaint.c (__gnat_pthread_setaffinity_np,
1167 __gnat_pthread_attr_setaffinity_np): Add these wrappers which check the
1168 availability of the underlying OS functionality before calling.
1169 * s-osinte-linux.ads (pthread_setaffinity_np,
1170 pthread_attr_setaffinity_np): Call a wrapper instead of the OS function
1171 to perform a check of its availability.
1172 * s-taprop-linux.adb (Create_Task): Remove the check to verify whether
1173 the affinity functionality is available in the OS. Now done in a wrapper
1174 * gcc-interface/Makefile.in: Remove vmshandler.asm, unused.
1175 * gcc-interface/Make-lang.in: Update dependencies.
1177 2010-10-18 Robert Dewar <dewar@adacore.com>
1179 * sinfo.ads, sinfo.adb: Change Has_Pragma_CPU to Flag14 (Flag10 is
1182 2010-10-18 Robert Dewar <dewar@adacore.com>
1184 * s-stausa.adb, s-taprop-linux.adb, s-taprop-mingw.adb, s-tassta.ads:
1187 2010-10-18 Robert Dewar <dewar@adacore.com>
1189 * exp_strm.adb (Build_Elementary_Input_Call): Check
1190 No_Default_Stream_Attributes.
1191 (Build_Elementary_Write_Call): Check No_Default_Stream_Attributes
1192 * s-rident.ads: Add restriction No_Default_Stream_Attributes
1193 Put restriction No_Allocators_After_Elaboration in alpha order
1195 2010-10-18 Jose Ruiz <ruiz@adacore.com>
1197 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Add field corresponding
1198 to the affinity when expanding the task declaration.
1199 (Make_Task_Create_Call): Add the affinity parameter to the call to
1201 * sem_prag.adb (Analyze_Pragma): Add the analysis for pragma CPU,
1202 taking into account the case when it applies to a subprogram (only for
1203 main and with static expression) or to a task.
1204 * par_prag.adb:(Prag): Make pragma CPU a valid one.
1205 * snames.ads-tmpl (Name_uCPU, Name_CPU): Add these new name identifiers
1206 used by the expander for handling the affinity parameter when creating
1208 (Pragma_Id): Add Pragma_CPU as a valid one.
1209 * rtsfind.ads (RTU_Id): Make System_Multiprocessors accesible.
1210 (RE_Id, RE_Unit_Table): Make the entities RE_CPU_Range and
1211 RE_Unspecified_CPU visible.
1212 * sinfo.ads, sinfo.adb (Has_Pragma_CPU, Set_Has_Pragma_CPU): Add these
1213 two subprograms to set/get the flag indicating whether there is a
1214 pragma CPU which applies to the entity.
1215 * lib.ads, lib.adb (Unit_Record, Default_Main_CPU, Main_CPU,
1216 Set_Main_CPU): Add the field Main_CPU to Unit_Record to store the value
1217 of the affinity associated to the main subprogram (if any).
1218 Default_Main_CPU is used when no affinity is set. Subprograms
1219 Set_Main_CPU and Main_CPU are added to set/get the affinity of the main
1221 * ali.ads, ali.adb (ALIs_Record): Add field Main_CPU to contain the
1222 value of the affinity of the main subprogram.
1223 (Scan_ALI): Get the affinity of the main subprogram (encoded as C=XX in
1225 * lib-writ.ads, lib-writ.adb (M_Parameters): Encode the affinity of the
1226 main subprogram in the M (main) line using C=XX.
1227 * lib-load.adb (Create_Dummy_Package_Unit, Load_Main_Source,
1228 Load_Unit): Add new field Main_CPU.
1229 * bindgen.adb (Gen_Adainit_Ada, Gen_Adainit_C): Add the code to pass
1230 the affinity of the main subprogram to the run time.
1231 * s-taskin.ads (Common_ATCB): Add the field Base_CPU to store the
1233 (Unspecified_CPU): Add this constant to identify the case when no
1234 affinity is set for tasks.
1235 * s-taskin.adb (Initialize_ATCB): Store the value coming from pragma
1236 CPU in the common part of the ATCB.
1237 (Initialize): Store the value coming from pragma CPU (for the
1238 environment task) in the common part of the ATCB.
1239 * s-tassta.ads, s-tassta.adb (Create_Task): Add the affinity specified
1240 by pragma CPU to the ATCB.
1241 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add the affinity
1242 specified by pragma CPU to the ATCB.
1243 * s-tporft.adb (Register_Foreign_Thread): Add the new affinity
1244 parameter to the call to Initialize_ATCB.
1245 * s-taprop-linux.adb (Create_Task): Change the attributes of the thread
1246 to include the task affinity before creation. Additionally, the
1247 affinity selected with Task_Info is also enforced changing the
1248 attributes at task creation time, instead of changing it after creation.
1249 (Initialize): Change the affinity of the environment task if required
1251 * s-osinte-linux.ads (pthread_setaffinity_np): Instead of using a
1252 wrapper to check whether the function is available or not, use a weak
1254 (pthread_attr_setaffinity_np): Add the import of this function which is
1255 used to change the affinity in the attributes used to create a thread.
1256 * adaint.c (__gnat_pthread_attr_setaffinity_np): Remove this wrapper.
1257 It was used to check whether the pthread function was available or not,
1258 but the use of a weak symbol handles this situation in a cleaner way.
1259 * s-taprop-mingw.adb (Create_Task, Initialize): Change the affinity of
1260 tasks (including the environment task) if required by a pragma CPU.
1261 * s-taprop-solaris.adb (Enter_Task): Change the affinity of tasks
1262 (including the environment task) if required by a pragma CPU.
1263 * s-taprop-vxworks.adb (Create_Task, Initialize): Change the affinity
1264 of tasks (including the environment task) if required by a pragma CPU.
1265 * init.c (__gl_main_cpu): Make this value visible to the run time. It
1266 will pass the affinity of the environment task.
1268 2010-10-18 Javier Miranda <miranda@adacore.com>
1270 * einfo.adb (Direct_Primitive_Operations): Complete assertion.
1272 2010-10-18 Vincent Celier <celier@adacore.com>
1274 * prj.ads (Source_Data): New Boolean flag In_The_Queue.
1276 2010-10-18 Tristan Gingold <gingold@adacore.com>
1278 * s-stausa.ads: Add the Top parameter to Initialize_Analyzer.
1279 * s-stausa.adb: Use the top parameter. In Fill_Stack, use the
1281 * s-tassta.adb (Task_Wrapper): Call Initialize_Analyzer after Enter_Task
1282 so that Pri_Stack_Info.Limit can be set and used.
1284 2010-10-18 Robert Dewar <dewar@adacore.com>
1286 * einfo.ads: Minor reformatting.
1287 * sem_res.adb (Resolve_Allocator): Add test for violating
1288 No_Anonymous_Allocators.
1290 2010-10-18 Robert Dewar <dewar@adacore.com>
1292 * prj-nmsc.adb, prj.adb, sem_res.adb: Minor reformatting.
1294 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1296 * sem_util.adb (Insert_Explicit_Dereference): If operand is a selected
1297 component, we generate a reference to the ultimate prefix when it is an
1298 entity name. We must place the reference on the identifier for that
1299 prefix, and not on the operand itself, to prevent spurious extra
1300 references in the ali file.
1302 2010-10-18 Vincent Celier <celier@adacore.com>
1304 * projects.texi: Add documentation for attribute Ignore_Source_Sub_Dirs
1306 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1308 * einfo.ads, einfo.adb: New attribute PPC_Wrapper for entries and entry
1309 families. Denotes a procedure that performs pre/postcondition checks
1310 and then performs the entry call.
1311 * sem_res.adb (Resolve_Entry_Call): If the entry has
1312 pre/postconditions, replace call with a call to the PPC_Wrapper of the
1314 * exp_ch9.adb (Build_PPC_Wrapper): new procedure.
1315 (Expand_N_Entry_Declaration, Expand_N_Protected_Type_Declaration): call
1316 Build_PPC_Wrapper for all entries in task and protected definitions.
1318 2010-10-18 Tristan Gingold <gingold@adacore.com>
1320 * init.c: Add __gnat_set_stack_guard_page and __gnat_set_stack_limit.
1321 Implement stack limitation on VMS.
1324 2010-10-18 Vincent Celier <celier@adacore.com>
1326 * prj.adb (Is_Compilable): Do not modify Source.Compilable until the
1327 source record has been initialized.
1329 2010-10-18 Robert Dewar <dewar@adacore.com>
1331 * einfo.adb: Minor code reorganization (Primitive_Operations is a
1332 synthesized attribute routine and was in the wrong place).
1334 2010-10-18 Tristan Gingold <gingold@adacore.com>
1336 * init.c: Indentation, and minor changes to more closely follow GNU
1337 style rules. Make more variable statics.
1339 2010-10-18 Vincent Celier <celier@adacore.com>
1341 * prj.adb (Is_Compilable): On first call for a source, cache value in
1342 component Compilable.
1343 * prj.ads (Source_Data): New component Compilable, to cache the value
1344 returned by function Is_Compilable.
1346 2010-10-18 Vincent Celier <celier@adacore.com>
1348 * prj-attr.adb: New project level attribute Ignore_Source_Sub_Dirs.
1349 * prj-nmsc.adb (Expand_Subdirectory_Pattern): New string list parameter
1351 (Recursive_Find_Dirs): Do not consider subdirectories listed in Ignore.
1352 (Get_Directories): Call Find_Source_Dirs with the string list
1353 indicated by attribute Ignore_Source_Sub_Dirs.
1354 * snames.ads-tmpl: New standard name Ignore_Source_Sub_Dirs.
1356 2010-10-18 Javier Miranda <miranda@adacore.com>
1358 * einfo.ads, einfo.adb (Primitive_Operations): New synthesized
1360 (Direct_Primitive_Operations): Renaming of old Primitive_Operations.
1361 (Set_Direct_Primitive_Operations): Renaming of old
1362 Set_Primitive_Operations. Update documentation
1363 * sem_ch3.adb, exp_util.adb, sem_ch7.adb, sem_ch8.adb, exp_ch3.adb:
1364 Replace occurrences of Set_Primitive_Operations by
1365 Set_Direct_Primitive_Operations.
1366 * sem_cat.adb (Validate_RACW_Primitives): No action needed for tagged
1368 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
1369 process primitives of concurrent types.
1370 * lib-xref.adb (Generate_Prim_Op_References): Minor code cleanup.
1372 2010-10-18 Eric Botcazou <ebotcazou@adacore.com>
1374 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Use Freeze_Before.
1375 (Expand_Protected_Object_Reference): Likewise.
1376 * sem_attr.adb (Resolve_Attribute): Likewise.
1377 * sem_ch3.adb (Analyze_Subtype_Declaration): Likewise.
1378 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Likewise.
1380 2010-10-18 Arnaud Charlet <charlet@adacore.com>
1382 * g-comlin.adb (Get_Switches): Prevent dereferencing null Config.
1384 2010-10-18 Robert Dewar <dewar@adacore.com>
1386 * aspects.ads, aspects.adb: Add entries for aspects
1387 Read/Write/Input/Output.
1388 * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing for
1389 handling aspects Read/Write/Input/Output.
1391 2010-10-18 Robert Dewar <dewar@adacore.com>
1393 * sem_util.adb (Note_Possible_Modification): Do not give warning for
1394 use of pragma Unmodified unless we are sure this is a modification.
1396 2010-10-18 Tristan Gingold <gingold@adacore.com>
1398 * sysdep.c: Add __gnat_get_stack_bounds.
1399 * s-taprop-mingw.adb Call __gnat_get_stack_bounds to set Pri_Stack_Info.
1401 2010-10-18 Robert Dewar <dewar@adacore.com>
1403 * a-assert.ads: Fix bad name in header.
1404 * sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch10.adb: Minor
1406 * exp_aggr.adb: Fix typo in comment.
1408 2010-10-18 Javier Miranda <miranda@adacore.com>
1410 * exp_util.adb (Side_Effect_Free): Code clean up.
1412 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1414 * sem_ch8.adb (Is_Primitive_Operator_In_Use): Renamed from
1415 Is_Primitive_Operator. When ending the scope of a use package scope, a
1416 primitive operator remains in use if the base type has a current use
1419 2010-10-18 Javier Miranda <miranda@adacore.com>
1421 * einfo.ads (Is_Dynamic_Support): Add missing support for limited
1422 private types whose full-view is a task type.
1423 * sem_util.adb (Enclosing_Subprogram): Add missing support for limited
1424 private types whose full-view is a task type.
1425 * exp_ch7.adb (Find_Final_List): Minor code cleanup replacing code by
1426 function Nearest_Dynamic_Scope which provides the needed functionality.
1428 2010-10-18 Arnaud Charlet <charlet@adacore.com>
1430 * sem_prag.adb (Set_Exported): Do not generate error when exporting a
1431 variable with an address clause in codepeer mode.
1433 2010-10-18 Robert Dewar <dewar@adacore.com>
1435 * g-trasym-vms-ia64.adb: Minor reformatting.
1437 2010-10-18 Thomas Quinot <quinot@adacore.com>
1439 * sem_type.adb (Covers): If either argument is Standard_Void_Type and
1440 the other isn't, return False early.
1442 2010-10-18 Ed Falis <falis@adacore.com>
1444 * s-vxwext-rtp.ads, s-vxext-rtp.adb: Adapt for missing APIs for RTPs in
1447 2010-10-18 Robert Dewar <dewar@adacore.com>
1449 * sem_disp.ads: Minor comment update.
1451 2010-10-18 Robert Dewar <dewar@adacore.com>
1453 * einfo.ads, einfo.adb (Spec_PPC_List): Is now present in Entries
1454 * sem_ch3.adb (Analyze_Declarations): Add processing for delaying
1455 visibility analysis of precondition and postcondition pragmas (and
1457 * sem_ch6.adb (Process_PPCs): Add handling of inherited Pre'Class
1459 * sem_ch7.adb (Analyze_Package_Specification): Remove special handling
1460 of pre/post conditions (no longer needed).
1461 * sem_disp.adb (Inherit_Subprograms): Deal with interface case.
1462 * sem_prag.adb (Analyze_PPC_In_Decl_Part): Remove analysis of message
1463 argument, since this is now done in the main processing for
1464 pre/postcondition pragmas when they are first seen.
1465 (Chain_PPC): Pre'Class and Post'Class now handled properly
1466 (Chain_PPC): Handle Pre/Post aspects for entries
1467 (Check_Precondition_Postcondition): Handle entry declaration case
1468 (Check_Precondition_Postcondition): Handle delay of visibility analysis
1469 (Check_Precondition_Postcondition): Preanalyze message argument if
1472 2010-10-18 Robert Dewar <dewar@adacore.com>
1474 * g-trasym-vms-ia64.adb, prj-nmsc.adb, prj.ads: Minor reformatting.
1476 2010-10-14 Eric Botcazou <ebotcazou@adacore.com>
1478 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Set
1479 TREE_THIS_NOTRAP on the INDIRECT_REF node built for the template.
1480 * gcc-interface/trans.c (Identifier_to_gnu): Set TREE_THIS_NOTRAP on
1481 the INDIRECT_REF node built for objects used by reference.
1482 * gcc-interface/utils2.c (build_binary_op): Add short-circuit for
1483 constant result. Set TREE_THIS_NOTRAP on ARRAY_REF and ARRAY_RANGE_REF.
1484 (gnat_stabilize_reference_1): Propagate the TREE_THIS_NOTRAP flag.
1486 2010-10-13 Richard Henderson <rth@redhat.com>
1488 * gcc-interface/misc.c (gnat_eh_personality): Update call to
1489 build_personality_function.
1490 * raise-gcc.c (PERSONALITY_FUNCTION): Change to match other languages;
1491 use__gnat_personality_{v,sj}0.
1493 2010-10-12 Vincent Celier <celier@adacore.com>
1495 * prj-nmsc.adb (Add_Source): Put source in hash table Source_Files_HT
1496 (Process_Exceptions_File_Based): Use hash table Source_Files_HT instead
1497 of iterating through all sources of the project.
1498 * prj.adb (Free): Reset hash table Source_Files_HT
1499 (Reset): Reset hash table Source_Files_HT
1500 * prj.ads (Source_Data): New component Next_With_File_Name
1501 (Source_Files_Htable): New hash table
1502 (Project_Tree_Data): New component Source_Files_HT
1504 2010-10-12 Tristan Gingold <gingold@adacore.com>
1506 * g-trasym-vms-ia64.adb: Use the documented API.
1507 * gcc-interface/Makefile.in: Always set NO_REORDER_ADAFLAGS.
1508 * gcc-interface/Make-lang.in: Update dependencies.
1510 2010-10-12 Thomas Quinot <quinot@adacore.com>
1512 * rtsfind.ads, exp_dist.adb, exp_dist.ads (Build_General_Calling_Stubs,
1513 PolyORB case): Request is now a controlled type: we can declare the
1514 request on the stack, and we do not need explicit cleanup actions
1517 2010-10-12 Bob Duff <duff@adacore.com>
1519 * s-rident.ads (Profile_Info): This variable is now constant.
1521 2010-10-12 Emmanuel Briot <briot@adacore.com>
1523 * g-comlin.adb, g-comlin.ads (Define_Switch): Put back (unused)
1524 parameter Separator for backward compatibility.
1526 2010-10-12 Robert Dewar <dewar@adacore.com>
1528 * sem_ch9.adb, par-ch9.adb, impunit.adb: Minor reformatting.
1530 2010-10-12 Vincent Celier <celier@adacore.com>
1532 * debug.adb: Put detailed documentation for gnatmake switch -dm.
1534 2010-10-12 Vincent Celier <celier@adacore.com>
1536 * gnat1drv.adb: When the compiler is invoked for a spec that needs aw
1537 body, do not generate an ALI file if neither -gnatc nor -gnatQ is used.
1539 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1541 * g-comlin.adb (Foreach_Switch): Make this procedure generic to avoid
1544 2010-10-12 Robert Dewar <dewar@adacore.com>
1546 * debug.adb: Add comment.
1547 * gnatcmd.adb, sem_ch6.adb, switch-m.adb: Minor reformatting.
1549 2010-10-12 Javier Miranda <miranda@adacore.com>
1551 * exp_util.adb (Side_Effect_Free): Return true for object renaming
1552 declarations that were previously generated by Remove_Side_Effects.
1554 2010-10-12 Emmanuel Briot <briot@adacore.com>
1556 * xref_lib.adb (Get_Full_Type): Display "private variable" instead of
1557 "???" when an entity is defined as "*" in the ALI file.
1558 * g-comlin.ads, g-comlin.adb: Fix handling of null parameters.
1561 2010-10-12 Emmanuel Briot <briot@adacore.com>
1563 * g-comlin.adb, g-comlin.ads (Display_Help, Getopt, Current_Section,
1564 Set_Usage): New subprograms.
1565 (Define_Switch): Change profile to add support for help messages and
1568 2010-10-12 Javier Miranda <miranda@adacore.com>
1570 * sem_ch6.adb (New_Overloaded_Entity): Add missing decoration of
1571 attribute Overridden_Operation in predefined dispatching primitives.
1573 2010-10-12 Emmanuel Briot <briot@adacore.com>
1575 * g-comlin.adb, g-comlin.ads (Add_Switch): Raise an exception when a
1576 command line configuration exists and we specify an invalid section.
1578 2010-10-12 Robert Dewar <dewar@adacore.com>
1580 * sem_ch6.adb (Process_PPCs): Fix error in inheriting Pre'Class when no
1581 exception messages are generated.
1582 (Process_PPCs): Fix error in inheriting Pre'Class.
1584 2010-10-12 Jose Ruiz <ruiz@adacore.com>
1586 * gnatcmd.adb: Use response file for GNATstack.
1587 (Check_Files): Pass the list of ci files for GNATstack using a response
1588 file to avoid problems with command line length.
1589 Factor out the code handling response file into a new procedure named
1590 Add_To_Response_File.
1592 2010-10-12 Vincent Celier <celier@adacore.com>
1594 * debug.adb: For gnatmake, document the meaning of -dm
1595 * make.adb (Gnatmake): If -dm is used, indicate the maximum number of
1596 simultaneous compilations.
1597 * switch-m.adb (Scan_Make_Switches): Allow -j0, meaning as many
1598 simultaneous compilations as the number of processors.
1600 2010-10-12 Joseph Myers <joseph@codesourcery.com>
1602 * gcc-interface/Make-lang.in (ada/misc.o): Use $(OPTIONS_H)
1603 instead of options.h.
1605 2010-10-12 Robert Dewar <dewar@adacore.com>
1607 * gnat_rm.texi: Clarify that 'Old can be used in preconditions and
1608 postcondition pragmas.
1610 2010-10-12 Robert Dewar <dewar@adacore.com>
1612 * errout.ads, erroutc.adb: The # insertion now handles from in place of
1614 * exp_prag.adb (Expand_Pragma_Check): Suppress generated default
1615 message if new switch Exception_Locations_Suppressed is set.
1616 (Expand_Pragma_Check): Revised wording for default message for case
1617 of precondition or postcondition.
1618 * namet.ads, namet.adb (Build_Location_String): New procedure.
1619 * opt.ads (List_Inherited_Pre_Post): New flag.
1620 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Add call to
1621 list inherited pre/post aspects.
1622 * sem_ch13.adb (Analyze_Aspect_Specification): Improve generation of
1623 messages for precondition/postcondition cases.
1624 * sem_ch6.adb (Process_PPCs): General cleanup, and list inherited PPC's
1625 if flag List_Inherited_Pre_Post is set True.
1626 (Process_PPCs): Add initial handling for inherited preconditions
1627 (List_Inherited_Pre_Post_Aspects): New procedure
1628 * sem_ch6.ads (List_Inherited_Pre_Post_Aspects): New procedure
1629 * sem_disp.adb (Inherited_Subprograms): New function
1630 * sem_disp.ads (Inherited_Subprograms): New function
1631 * sem_prag.adb (Check_Duplicate_Pragma): Clean up handling of
1633 (Check_Precondition_Postcondition): Check for inherited aspects
1634 * sem_warn.adb: Process -gnatw.l/w.L setting List_Inherited_Pre_Post
1635 * sinfo.ads, sinfo.adb (Split_PPC): New flag.
1636 * sinput.ads, sinput.adb (Build_Location_String): New function.
1637 * usage.adb: Add line for -gnatw.l/-gnatw.L
1639 2010-10-12 Javier Miranda <miranda@adacore.com>
1641 * exp_util.adb (Remove_Side_Effects): Remove wrong code.
1643 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1645 * xref_lib.adb: Add handling of j/J letters.
1647 2010-10-12 Pascal Obry <obry@adacore.com>
1649 * adaint.c (__gnat_number_of_cpus): Add implementation for Windows.
1651 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1653 * make.adb (Globalize): New procedure.
1654 (Compile): Set Do_Codepeer_Globalize_Step when -gnatC is used.
1655 (Gnatmake): Call Globalize when needed.
1656 (Process_Restrictions_Or_Restriction_Warnings): Ignore Restrictions
1657 pragmas in CodePeer mode.
1658 (Adjust_Global_Switches): Set No_Initialize_Scalars in CodePeer mode,
1659 to generate simpler and consistent code.
1661 2010-10-12 Bob Duff <duff@adacore.com>
1663 * exp_util.adb (Remove_Side_Effects): Disable previous change,
1664 can cause side effects to be duplicated.
1666 2010-10-12 Robert Dewar <dewar@adacore.com>
1668 * sem_ch6.adb (Process_PPCs): Handle inherited postconditions.
1670 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1672 * exp_disp.adb (Set_All_DT_Position): Disable emit error message on
1673 abstract inherited private operation in CodePeer mode.
1675 2010-10-12 Thomas Quinot <quinot@adacore.com>
1677 * a-exetim.ads: Minor reformatting.
1678 * g-socket.ads (Port_Type): Better definition corresponding to the
1679 actual standard range.
1680 * exp_ch5.adb: Add comment.
1681 * sem_aux.adb: Minor reformatting.
1683 2010-10-12 Ed Schonberg <schonberg@adacore.com>
1685 * sem_ch12.adb (Copy_Generic_Node): If node is a string literal, remove
1686 string_literal_subtype so that a new one can be constructed in the
1687 scope of the instance.
1689 2010-10-12 Robert Dewar <dewar@adacore.com>
1691 * exp_ch9.adb (Has_Pragma_Priority): New name for Has_Priority_Pragma
1692 * gnat_rm.texi (pragma Suppress_All): Document new placement rules
1693 * par-prag.adb (P_Pragma, case Suppress_All): Set
1694 Has_Pragma_Suppress_All flag.
1695 * sem_prag.adb (Has_Pragma_Priority): New name for Has_Priority_Pragma
1696 (Analyze_Pragma, case Suppress_All): Remove placement check
1697 (Process_Compilation_Unit_Pragmas): Use Has_Pragma_Suppress_All flag
1698 * sem_prag.ads (Process_Compilation_Unit_Pragmas): Update documentation
1699 * sinfo.adb (Has_Pragma_Suppress_All): New flag
1700 (Has_Pragma_Priority): New name for Has_Priority_Pragma
1701 * sinfo.ads (Has_Pragma_Suppress_All): New flag
1702 (Has_Pragma_Priority): New name for Has_Priority_Pragma
1704 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1706 * lib-xref.ads: Mark j/J as reserved for C++ classes.
1708 2010-10-12 Jose Ruiz <ruiz@adacore.com>
1710 * a-exetim-default.ads, a-exetim-posix.adb: New.
1711 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for linux): Use the
1712 POSIX Realtime support to implement CPU clocks.
1713 (EXTRA_GNATRTL_TASKING_OBJS for linux): Add the a-exetim.o object
1714 to the tasking library.
1715 (THREADSLIB): Make the POSIX.1b Realtime Extensions library (librt)
1716 available for shared libraries.
1717 * gcc-interface/Make-lang.in: Update dependencies.
1719 2010-10-12 Robert Dewar <dewar@adacore.com>
1721 * sem_ch13.adb (Analyze_Aspect_Specifications): For Pre/Post, break
1722 apart expressions with AND THEN clauses into separate pragmas.
1723 * sinput.ads, sinput.adab (Get_Logical_Line_Number_Img): New function.
1725 2010-10-12 Robert Dewar <dewar@adacore.com>
1727 * par-ch13.adb (P_Aspect_Specifications): Fix handling of 'Class
1729 * sem_ch13.adb (Analyze_Aspect_Specifications): Fix bad Sloc on aspects
1730 * sem_prag.adb (Fix_Error): Only change pragma names for pragmas from
1732 (Check_Optional_Identifier): Handle case of direct arguments
1733 (Chain_PPC): Test for abstract case, giving appropriate messages
1734 * sinfo.ads, sinfo.adb (Class_Present): Allowed on N_Pragma node
1736 2010-10-12 Robert Dewar <dewar@adacore.com>
1738 * par-endh.adb (Check_End): Don't swallow semicolon or aspects after
1740 * sem_attr.adb (Eval_Attribute): Code clean up.
1742 2010-10-12 Robert Dewar <dewar@adacore.com>
1744 * par-ch12.adb (P_Formal_Private_Type_Definition): Improve error
1745 messages and recovery for case of out of order Abstract/Tagged/Private
1747 * par-ch3.adb (P_Type_Declaration): Improve error messages and recovery
1748 for case of out of order Abstract/Tagged/Private keywords.
1750 2010-10-12 Ed Schonberg <schonberg@adacore.com>
1752 * inline.adb (Analyze_Inlined_Bodies): Restrict previous change to case
1753 where child unit is main unit of compilation.
1755 2010-10-12 Robert Dewar <dewar@adacore.com>
1757 * aspects.ads, aspects.adb (Move_Aspects): New procedure.
1758 * atree.ads, atree.adb: (New_Copy): Does not copy aspect specifications
1759 * sinfo.ads, par-ch3.adb, par-ch6.adb, par-ch7.adb, par-ch9.adb,
1760 par-endh.adb, par-ch13.adb, par-ch12.adb: Modify grammar to include
1761 aspect specifications.
1762 Recognize aspect specifications for all cases
1763 * par.adb: Recognize aspect specifications for all cases
1764 * sem_ch12.ads, sem_ch12.adb (Copy_Generic_Node): Copies aspect
1766 * sem_ch3.adb (Analyze_Subtype_Declaration): Improve patch to freeze
1767 generic actual types (was missing some guards before).
1768 * sem_ch9.adb (Analyze_Single_Protected_Declaration): Copy aspects to
1770 (Analyze_Single_Task_Declaration): Copy aspects to generated object
1772 2010-10-12 Eric Botcazou <ebotcazou@adacore.com>
1774 * usage.adb (usage): Adjust line for -gnatn switch.
1776 2010-10-12 Robert Dewar <dewar@adacore.com>
1778 * sem_attr.adb (Eval_Attribute): Only leave change active for aspect
1781 2010-10-12 Ed Schonberg <schonberg@adacore.com>
1783 * sem_ch6.adb (Analyze_Subprogram_Declaration): If this is a
1784 declaration of a null procedure resolve the types of the profile of the
1785 generated null body now.
1787 2010-10-11 Robert Dewar <dewar@adacore.com>
1789 * debug.adb: Remove d.A flag to delay address clause (not needed any
1790 more). Add d.A flag to enable tree read/write of aspect spec hash table
1791 * sem_ch13.adb (Analyze_Aspect_Specifications): Properly delay address
1793 (Rep_Item_Too_Late): No need for special processing for delayed rep
1794 items (and it caused difficulties in the address case).
1795 * tree_gen.adb: Only write aspect spec hash table if -gnatd.A is set
1796 * tree_in.adb: Only write aspect spec hash table if -gnatd.A is set
1798 2010-10-11 Pat Rogers <rogers@adacore.com>
1800 * gnat_ugn.texi: Minor editing.
1802 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
1804 * gcc-interface/utils2.c (gnat_build_constructor): Use VEC_qsort.
1806 2010-10-11 Robert Dewar <dewar@adacore.com>
1808 * g-htable.ads (Get_First): New procedural version for Simple_HTable
1809 (Get_Next): New procedural version for Simple_HTable
1810 * s-htable.adb (Get_First): New procedural version for Simple_HTable
1811 (Get_Next): New procedural version for Simple_HTable
1812 * s-htable.ads (Get_First): New procedural version for Simple_HTable
1813 (Get_Next): New procedural version for Simple_HTable
1815 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1817 * sem_aggr.adb (Propagate_Discriminants): To gather the components of a
1818 variant part, use the association list of the subaggregate, which
1819 already includes the values of the needed discriminants.
1821 2010-10-11 Robert Dewar <dewar@adacore.com>
1823 * aspects.ads, aspects.adb: Changes to accomodate aspect delay
1824 (Tree_Write): New procedure.
1825 * atree.ads, atree.adb: Flag3 is now Has_Aspects and applies to all
1827 * atree.h: Flag3 is now Has_Aspects and applies to all nodes
1828 * debug.adb: Add debug flag gnatd.A
1829 * einfo.adb (Has_Delayed_Aspects): New flag
1830 (Get_Rep_Item_For_Entity): New function
1831 * einfo.ads (Has_Delayed_Aspects): New flag
1832 (Get_Rep_Item_For_Entity): New function
1833 * exp_ch13.adb (Expand_N_Freeze_Entity): Insert delayed aspects into
1835 * exp_ch3.adb, exp_ch6.adb, exp_ch9.adb, exp_disp.adb: New calling
1836 sequence for Freeze_Entity.
1837 * freeze.ads, freeze.adb (Freeze_Entity): Takes node rather than source
1838 ptr. All calls are changed to this new interface.
1839 (Freeze_And_Append): Same change
1840 (Freeze_Entity): Evaluate deferred aspects
1841 * sem_attr.adb: New calling sequence for Freeze_Entity
1842 (Eval_Attribute): Don't try to evaluate attributes of unfrozen types
1843 when we are in spec expression preanalysis mode.
1844 * sem_ch10.adb: New calling sequence for Freeze_Entity
1845 * sem_ch11.adb: Simplify analysis of aspect specifications now that the
1846 flag Has_Aspects applies to all nodes (no need to save aspects).
1847 * sem_ch12.adb: Simplify analysis of aspect specifications now that the
1848 flag Has_Aspects applies to all nodes (no need to save aspects).
1849 * sem_ch13.adb (Analyze_Aspect_Specifications): Major rewrite to
1850 accomodate delaying aspect evaluation to the freeze point.
1851 (Duplicate_Clause): Simplify using Get_Rep_Item_For_Entity, and also
1852 accomodate delayed aspects.
1853 (Rep_Item_Too_Late): Deal with delayed aspects case
1854 * sem_ch13.ads (Rep_Item_Too_Late): Document handling of delayed
1856 * sem_ch3.adb (Analyze_Subtype_Declaration): Make sure that generic
1857 actual types are properly frozen (this is needed because of the new
1858 check in Eval_Attribute that declines to evaluate attributes
1859 for unfrozen types).
1860 Simplify analysis of aspect specifications now that the flag
1861 Has_Aspects applies to all nodes (no need to save aspects).
1862 * sem_ch3.ads (Preanalyze_Spec_Expression): Note use for delayed
1864 * sem_ch5.adb: Simplify analysis of aspect specifications now that the
1865 flag Has_Aspects applies to all nodes (no need to save aspects).
1866 New calling sequence for Freeze_Entity.
1867 * sem_ch9.adb, sem_ch7.adb, sem_ch6.adb: Simplify analysis of aspect
1868 specifications now that the flag Has_Aspects applies to all nodes
1869 (no need to save aspects).
1870 New calling sequence for Freeze_Entity
1871 * sem_prag.adb (Check_Duplicate_Pragma): Simplify using
1872 Get_Rep_Item_For_Entity
1873 (Get_Pragma_Arg): Moved to Sinfo
1874 * sinfo.ads, sinfo.adb (Aspect_Rep_Item_: New field
1875 (Is_Delayed_Aspect): New flag
1876 (Next_Rep_Item): Document use for aspects
1877 (Get_Pragma_Arg): Moved here from Sem_Prag
1878 * sprint.adb (Sprint_Aspect_Specifications): Now called after semicolon
1879 is output and removes semicolon (simplifies interface).
1880 (Sprint_Node_Actual): Simplify handling of aspects now that Has_Aspects
1881 applies to any node.
1882 * tree_gen.adb: Write contents of Aspect_Specifications hash table
1883 * tree_in.adb: Read and initialize Aspect_Specifications hash table
1884 * treepr.adb (Print_Node): Print Has_Aspects flag
1885 (Print_Node): Print Aspect_Specifications in Has_Aspects set
1886 * xtreeprs.adb: Remove obsolete references to Flag1,2,3
1888 2010-10-11 Robert Dewar <dewar@adacore.com>
1890 * aspects.ads, aspects.adb: Major revision of this package for 2nd
1891 stage of aspects implementation.
1892 * gcc-interface/Make-lang.in: Add entry for aspects.o
1893 * gcc-interface/Makefile.in: Add aspects.o to GNATMAKE_OBJS
1894 * par-ch13.adb (Aspect_Specifications_Present): New function
1895 (P_Aspect_Specifications): New procedure
1896 * par-ch3.adb (P_Type_Declaration): Handle aspect specifications
1897 (P_Derived_Type_Def_Or_Private_Ext_Decl): Handle aspect specifications
1898 (P_Identifier_Declarations): Handle aspect specifications
1899 (P_Component_Items): Handle aspect specifications
1900 (P_Subtype_Declaration): Handle aspect specifications
1901 * par-ch6.adb (P_Subprogram): Handle aspect specifications
1902 * par-ch9.adb (P_Entry_Declaration): Handle aspect specifications
1903 * par.adb (Aspect_Specifications_Present): New function
1904 (P_Aspect_Specifications): New procedure
1905 * sem.adb (Analyze_Full_Type_Declaration): New name for
1906 Analyze_Type_Declaration.
1907 (Analyze_Formal_Package_Declaration): New name (add _Declaration)
1908 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
1909 (Analyze_Protected_Type_Declaration): New name (add _Declaration)
1910 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
1911 (Analyze_Single_Task_Declaration): New name (add _Declaration)
1912 (Analyze_Task_Type_Declaration): New name (add _Declaration)
1913 * sem_cat.adb (Analyze_Full_Type_Declaration): New name for
1914 Analyze_Type_Declaration.
1915 * sem_ch11.adb (Analyze_Exception_Declaration): Analyze aspect
1917 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Handle aspect
1919 (Analyze_Formal_Package_Declaration): New name (add _Declaration)
1920 (Analyze_Formal_Package_Declaration): Handle aspect specifications
1921 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
1922 (Analyze_Formal_Subprogram_Declaration): Handle aspect specifications
1923 (Analyze_Formal_Type_Declaration): Handle aspect specifications
1924 (Analyze_Generic_Package_Declaration): Handle aspect specifications
1925 (Analyze_Generic_Subprogram_Declaration): Handle aspect specifications
1926 (Analyze_Package_Instantiation): Handle aspect specifications
1927 (Analyze_Subprogram_Instantiation): Handle aspect specifications
1928 * sem_ch12.ads (Analyze_Formal_Package_Declaration): New name (add
1930 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
1931 * sem_ch13.adb (Analyze_Aspect_Specifications): New procedure
1932 (Duplicate_Clause): New function, calls to this function are added to
1933 processing for all aspects.
1934 * sem_ch13.ads (Analyze_Aspect_Specifications): New procedure
1935 * sem_ch3.adb (Analyze_Full_Type_Declaration): New name for
1936 Analyze_Type_Declaration.
1937 * sem_ch3.ads (Analyze_Full_Type_Declaration): New name for
1938 Analyze_Type_Declaration.
1939 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Analyze aspect
1941 (Analyze_Subprogram_Declaration): Analyze aspect specifications
1942 * sem_ch7.adb (Analyze_Package_Declaration): Analyze aspect
1944 (Analyze_Private_Type_Declaration): Analyze aspect specifications
1945 * sem_ch9.adb (Analyze_Protected_Type_Declaration): Analyze aspect
1947 (Analyze_Protected_Type_Declaration): New name (add _Declaration)
1948 (Analyze_Single_Protected_Declaration): Analyze aspect specifications
1949 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
1950 (Analyze_Single_Task_Declaration): Analyze aspect specifications
1951 (Analyze_Single_Task_Declaration): New name (add _Declaration)
1952 (Analyze_Task_Type_Declaration): Analyze aspect specifications
1953 (Analyze_Task_Type_Declaration): New name (add _Declaration)
1954 * sem_ch9.ads (Analyze_Protected_Type_Declaration): New name (add
1956 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
1957 (Analyze_Single_Task_Declaration): New name (add _Declaration)
1958 (Analyze_Task_Type_Declaration): New name (add _Declaration)
1959 * sem_prag.adb: Use Get_Pragma_Arg systematically so that we do not
1960 have to generate unnecessary pragma argument associations (this matches
1962 Throughout do changes to accomodate aspect specifications, including
1963 specializing messages, handling the case of not going through all
1964 homonyms, and allowing for cancellation.
1965 * sinfo.ads, sinfo.adb: Clean up obsolete documentation for Flag1,2,3
1966 (Aspect_Cancel): New flag
1967 (From_Aspect_Specification): New flag
1968 (First_Aspect): Removed flag
1969 (Last_Aspect): Removed flag
1970 * sprint.adb (Sprint_Aspect_Specifications): New procedure
1971 (Sprint_Node_Actual): Add calls to Sprint_Aspect_Specifications
1973 2010-10-11 Bob Duff <duff@adacore.com>
1975 * sem_res.adb (Resolve_Actuals): Minor change to warning messages so
1976 they match in Ada 95, 2005, and 2012 modes, in the case where the
1977 language didn't change. Same thing for the run-time exception message.
1979 2010-10-11 Javier Miranda <miranda@adacore.com>
1981 * debug.adb Document that switch -gnatd.p enables the CIL verifier.
1983 2010-10-11 Robert Dewar <dewar@adacore.com>
1985 * s-htable.adb: Minor reformatting.
1987 2010-10-11 Javier Miranda <miranda@adacore.com>
1989 * debug.adb: Update comment.
1991 2010-10-11 Vincent Celier <celier@adacore.com>
1993 * gnatcmd.adb (GNATCmd): Set Opt.Unchecked_Shared_Lib_Imports to True
1994 unconditionally as for "gnat make" the projects are not processed in
1997 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1999 * sem_ch10.ads, sem_ch10.adb (Load_Needed_Body): Add parameter to
2000 suppress semantic analysis of the body when inlining, prior to
2001 verifying that the body does not have a with_clause on a descendant
2003 * inline.adb (Analyze_Inlined_Bodies): Do not inline a body if it has a
2004 with_clause on a descendant.
2005 (Scope_In_Main_Unit): Simplify.
2007 2010-10-11 Robert Dewar <dewar@adacore.com>
2009 * exp_ch6.adb, freeze.adb: Minor reformatting.
2011 2010-10-11 Vincent Celier <celier@adacore.com>
2013 * gnatcmd.adb (GNATCmd): For all tools other than gnatmake, allow
2014 shared library projects to import projects that are not shared library
2017 2010-10-11 Javier Miranda <miranda@adacore.com>
2019 * debug.adb: Document that switch -gnatd.o generates the CIL listing.
2021 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2023 * sem_prag.adb (Process_Suppress_Unsuppress): Only ignore
2024 Suppress/Unsuppress pragmas in codepeer mode on user code.
2026 2010-10-11 Javier Miranda <miranda@adacore.com>
2028 * exp_ch6.adb (Expand_Call): For VM platforms, add missing expansion of
2029 tag check in case of dispatching call through "=".
2031 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2033 * sem_ch3.adb (Access_Subprogram_Declaration): In Ada2012 an incomplete
2034 type is legal in the profile of any basic declaration.
2035 * sem_ch6.adb (Analyze_Return_Type, Process_Formals): In Ada2012 an
2036 incomplete type, including a limited view of a type, is legal in the
2037 profile of any subprogram declaration.
2038 If the type is tagged, its use is also legal in a body.
2039 * sem_ch10.adb (Install_Limited_With_Clause): Do not process context
2041 (Install_Limited_Withed_Unit): Refine legality checks when both the
2042 limited and the non-limited view of a package are visible in the
2044 If this is not an error case, the limited view is ignored.
2045 freeze.adb (Freeze_Entity): In Ada2012, an incomplete type is legal in
2046 access to subprogram declarations
2048 2010-10-11 Robert Dewar <dewar@adacore.com>
2050 * exp_ch6.adb: Code clean up.
2051 * exp_util.adb: Minor reformatting.
2053 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2055 * sem_ch3.adb, exp_ch6.adb
2056 (Make_Build_In_Place_Call_In_Anonymous_Context,
2057 Make_Build_In_Place_Call_In_Assignment,
2058 Make_Build_In_Place_Call_In_Object_Declaration): Fix calls to
2059 Add_Task_Actuals_To_Build_In_Place_Call in case of No_Task_Hierarchy
2061 (Access_Definition): Add missing handling of No_Task_Hierarchy.
2063 2010-10-11 Javier Miranda <miranda@adacore.com>
2065 * exp_util.adb (Remove_Side_Effects): No action needed for renamings of
2066 class-wide expressions.
2068 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2070 * xr_tabls.adb, sem_res.adb: Minor reformatting
2072 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2074 * gnat_rm.texi, exp_attr.adb, sem_attr.adb, sem_attr.ads,
2075 snames.ads-tmpl (Analyze_Attribute, Expand_N_Attribute_Reference): Add
2076 handling of Attribute_Ref. Add missing blanks in some error messages.
2077 (Attribute_Ref, Name_Ref): Declare.
2078 Document 'Ref attribute.
2080 2010-10-11 Robert Dewar <dewar@adacore.com>
2082 * sem_attr.adb: Minor reformatting.
2084 2010-10-11 Javier Miranda <miranda@adacore.com>
2086 * sem_ch8.adb (Attribute_Renaming): Add missing check to avoid loading
2087 package System.Aux_Dec in VM platforms.
2089 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2091 * sem_prag.adb (Process_Suppress_Unsuppress): Ignore
2092 Suppress/Unsuppress pragmas in codepeer mode.
2093 (Analyze_Pragma [Pragma_Suppress_All]): Do not generate error message
2095 * einfo.ads: Fix typo.
2097 2010-10-11 Emmanuel Briot <briot@adacore.com>
2099 * sinfo.adb: Use GNAT.HTable rather than System.HTable.
2100 * prj-nmsc.adb: Minor reformatting.
2102 2010-10-11 Thomas Quinot <quinot@adacore.com>
2104 * sem_attr.adb (Type_Key): Code simplification.
2106 2010-10-11 Tristan Gingold <gingold@adacore.com>
2108 * gcc-interface/utils2.c (maybe_wrap_malloc): Fix crash when allocating
2109 very large object on VMS.
2111 2010-10-11 Javier Miranda <miranda@adacore.com>
2113 * sem_ch10.adb (Analyze_With_Clause): Add missing test to ensure
2114 availability of attribute Instance_Spec.
2116 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2118 * gnat1drv.adb (Adjust_Global_Switches): Disable codepeer mode if
2119 checking syntax only or in ASIS mode.
2121 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2123 * sem_ch6.adb (Check_Delayed_Subprogram): Abstract subprograms may also
2124 need a freeze node if some type in the profile has one.
2125 * gcc-interface/trans.c (case N_Abstract_Subprogram_Declaration): If
2126 entity has a freeze node, defer elaboration.
2128 2010-10-11 Emmanuel Briot <briot@adacore.com>
2130 * prj-nmsc.adb (Check_Aggregate_Project): Add support for finding all
2131 aggregated projects.
2133 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2135 * sem_res.adb (Resolve_Entry_Call): Generate 's' reference for entry
2137 * sem_ch6.adb: Diagnose additional error condition.
2139 2010-10-11 Bob Duff <duff@adacore.com>
2141 * par.adb (Par): Clarify wording of certain error messages.
2143 2010-10-11 Gary Dismukes <dismukes@adacore.com>
2145 * sem_disp.adb (Check_Dispatching_Operation): Revise test for warning
2146 about nondispatching subprograms to use In_Same_List (reducing use of
2149 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2151 * xr_tabls.adb, sem_res.adb, lib-xref.adb, lib-xref.ads: Use s for
2152 reference in a static call.
2154 2010-10-11 Steve Baird <baird@adacore.com>
2156 * exp_attr.adb (Expand_N_Attribute_Reference, case Type_Key): Type_Key
2157 attribute should always be transformed into a string literal in
2159 * par-ch4.adb: Type_Key attribute's type is String; update value of
2160 Is_Parameterless_Attribute constant to reflect this.
2161 * sem_attr.adb (Analyze_Attribute): Recognize Type_Key attribute and
2162 rewrite it as a string literal (attribute value is always known
2164 * snames.ads-tmpl: Add entries for Type_Key attribute.
2166 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2168 * lib-xref.adb (Output_References): Common handling for objects and
2169 formals of an anonymous access type.
2171 2010-10-11 Eric Botcazou <ebotcazou@adacore.com>
2173 * make.adb (Scan_Make_Arg): Also pass -O to both compiler and linker.
2175 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2177 * sem_ch6.adb: Fix check for illegal equality declaration in Ada2012
2179 2010-10-11 Gary Dismukes <dismukes@adacore.com>
2181 * sem_disp.adb (Check_Dispatching_Operation): When testing for issuing
2182 a warning about subprograms of a tagged type not being dispatching,
2183 limit this to cases where the tagged type and the subprogram are
2184 declared within the same declaration list.
2186 2010-10-11 Jerome Lambourg <lambourg@adacore.com>
2188 * projects.texi, prj-attr.adb: Add new attribute documentation_dir.
2190 2010-10-11 Bob Duff <duff@adacore.com>
2192 * par-ch9.adb, sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, impunit.adb,
2193 impunit.ads, sem_ch5.adb, sem_type.adb, exp_imgv.adb, exp_util.adb,
2194 switch-c.adb, exp_attr.adb, exp_ch9.adb, par-ch11.adb, usage.adb,
2195 sem_ch9.adb, sem_ch10.adb, scng.adb, checks.adb, sem_prag.adb,
2196 sem_ch12.adb, par-ch2.adb, freeze.adb, par-ch4.adb, sem_util.adb,
2197 sem_res.adb, sem_attr.adb, par-ch6.adb, exp_ch4.adb, exp_ch6.adb,
2198 sem_ch4.adb, exp_ch8.adb, par-ch10.adb, sem_ch6.adb, par-prag.adb,
2199 exp_disp.adb, par-ch12.adb, sem_ch8.adb, snames.adb-tmpl, opt.ads,
2200 exp_aggr.adb, sem_cat.adb, sem_ch13.adb, par-ch3.adb, exp_strm.adb,
2201 exp_cg.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb: Use Ada_2005
2202 instead of Ada_05 (Ada_Version_Type).
2204 2010-10-11 Bob Duff <duff@adacore.com>
2206 * sem_aggr.adb, impunit.adb, impunit.ads, switch-c.adb, usage.adb,
2207 sem_ch10.adb, sem_prag.adb, sem_ch12.adb, par-ch4.adb, par-ch6.adb,
2208 par-ch8.adb, exp_ch4.adb, sem_ch4.adb, sem_ch6.adb, par-prag.adb,
2209 opt.ads, par-ch3.adb, lib-xref.adb: Use Ada_2012 instead of Ada_12
2212 2010-10-11 Javier Miranda <miranda@adacore.com>
2214 * exp_util.adb (Safe_Prefixed_Reference): If the prefix is an explicit
2215 dereference then do not exclude dereferences of access-to-constant
2216 types to handle them as constant view of variables (and hence remove
2217 side effects when required).
2218 * sem_res.adb (Resolve_Slice): Ensure that side effects in the bounds
2219 are properly handled.
2221 2010-10-11 Robert Dewar <dewar@adacore.com>
2223 * sem_prag.adb, sem_aggr.adb, sprint.adb: Minor reformatting.
2225 2010-10-11 Javier Miranda <miranda@adacore.com>
2227 * exp_ch5.ads, exp_ch6.ads (Expand_N_Extended_Return_Statement): Moved
2229 (Expand_N_Simple_Return_Statement): Moved to exp_ch6.
2230 * exp_ch5.adb, exp_ch6.adb (Expand_Non_Function_Return): Moved to
2232 (Expand_Simple_Function_Return): Move to exp_ch6.
2233 (Expand_N_Extended_Return_Statement): Moved to exp_ch6.
2234 (Expand_N_Simple_Return_Statement): Moved to exp_ch6.
2236 2010-10-11 Robert Dewar <dewar@adacore.com>
2238 * snames.ads-tmpl: Add names for aspects.
2239 * aspects.ads, aspects.adb: New.
2240 * gcc-interface/Make-lang.in: Update dependencies.
2241 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2243 * exp_ch6.adb (Expand_Actuals): If an actual is the current instance of
2244 a task type, it must be replaced with a reference to Self.
2246 2010-10-11 Vincent Celier <celier@adacore.com>
2248 * adaint.h: Add prototype for function __gnat_create_output_file_new.
2250 2010-10-11 Javier Miranda <miranda@adacore.com>
2252 * sem_aggr.adb (Collect_Aggr_Bounds): Remove side effects of collected
2255 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2257 * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Do not emit error
2258 for AI05-0033 in CodePeer mode.
2260 2010-10-11 Robert Dewar <dewar@adacore.com>
2262 * atree.h, atree.ads, atree.adb (Flag3): New flag (replaces Unused_1)
2263 * csinfo.adb: Aspect_Specifications is a new special field
2264 * einfo.adb (Flag3): New unused flag
2265 * exp_util.adb (Insert_Actions): Add processing for
2266 N_Aspect_Specification.
2267 * sem.adb: Add entry for N_Aspect_Specification.
2268 * sinfo.ads, sinfo.adb (N_Aspect_Specification): New node
2269 (Has_Aspect_Specifications): New flag
2270 (Permits_Aspect_Specifications): New function
2271 (Aspect_Specifications): New function
2272 (Set_Aspect_Specifications): New procedure
2273 * sprint.adb (Sprint_Node): Put N_At_Clause in proper alpha order
2274 (Sprint_Node): Add dummy entry for N_Aspect_Specification
2275 * treepr.adb (Flag3): New flag to be listed
2277 2010-10-11 Vincent Celier <celier@adacore.com>
2279 * adaint.c: Minor reformatting.
2281 2010-10-11 Robert Dewar <dewar@adacore.com>
2283 * sem_ch6.adb, s-htable.ads: Minor reformatting.
2285 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2287 * sem_ch4.adb (Analyze_Selected_Component): If the selector is
2288 invisible in an instantiation, and both the formal and the actual are
2289 private extensions of the same type, look for the desired component in
2290 the proper view of the parent type.
2292 2010-10-11 Vincent Celier <celier@adacore.com>
2294 * adaint.c (__gnat_number_of_cpus): Add implementation for Solaris,
2295 AIX, Tru64, Darwin, IRIX and HP-UX.
2297 2010-10-11 Robert Dewar <dewar@adacore.com>
2299 * a-textio.adb: Minor reformatting
2301 2010-10-11 Robert Dewar <dewar@adacore.com>
2303 * a-suesen.ads, a-suenst.ads,
2304 a-suesen.adb, a-suenst.adb,
2305 a-suewse.adb, a-suewst.adb,
2306 a-suewse.ads, a-suewst.ads,
2307 a-suezse.ads, a-suezst.ads,
2308 a-suezse.adb, a-suezst.adb: New name for string encoding packages.
2309 * impunit.adb: New names for string encoding units
2310 * Makefile.rtl: New names for string encoding units
2311 * rtsfind.ads: Minor code reorganization.
2313 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2315 * exp_ch5.adb: Code clean up.
2317 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2319 * sem_ch6.adb (Check_Limited_Return): Specialize warning on limited
2320 returns when in a generic context.
2321 (Analyze_Function_Return): ditto.
2323 2010-10-11 Robert Dewar <dewar@adacore.com>
2325 * s-multip.ads: Fix header.
2326 * sem_ch3.adb, s-multip.adb, a-tigeli.adb: Minor reformatting.
2328 2010-10-11 Vincent Celier <celier@adacore.com>
2330 * Makefile.rtl: Add s-multip.
2331 * adaint.c: New function __gnat_number_of_cpus, implemented for Linux,
2332 defaulting to 1 for other platforms.
2333 * adaint.h: New function __gnat_number_of_cpus.
2334 * impunit.adb (Non_Imp_File_Names_12): New file list for Ada 2012,
2335 with a single component "s-multip".
2336 * impunit.ads (Kind_Of_Unit): New enumerated value Ada_12_Unit for Ada
2338 * rtsfind.ads (RTU_Id): New enumerated value System_Multiprocessors
2339 * s-multip.ads, s-multip.adb: New Ada 2012 package.
2340 * sem_ch10.adb (Analyze_With_Clause): Check also Ada 2012 units.
2342 2010-10-11 Javier Miranda <miranda@adacore.com>
2344 * a-textio.adb: Move new implementation of Get_Line to a subunit.
2345 * a-tigeli.adb: New subunit containing the implementation of Get_Line.
2347 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2349 * sem_aux.adb: Code clean up.
2351 2010-10-11 Robert Dewar <dewar@adacore.com>
2353 * sem_ch3.adb, sem_aux.adb, sem_ch6.adb: Minor reformatting
2355 2010-10-11 Robert Dewar <dewar@adacore.com>
2357 * einfo.adb, atree.h, atree.ads, atree.adb: Define seven new flags
2358 Flag248-Flag254. Define new field Field29.
2360 2010-10-10 Olivier Hainque <hainque@adacore.com>
2361 Eric Botcazou <ebotcazou@adacore.com>
2363 * gcc-interface/lang.opt (gdwarf+): Remove.
2364 * gcc-interface/gigi.h (get_parallel_type): Likewise
2365 * gcc-interface/misc.c (gnat_dwarf_extensions): Likewise.
2366 (gnat_handle_option): Remove OPT_gdwarfplus case.
2367 (gnat_post_options): Remove setting of use_gnu_debug_info_extensions
2368 from gnat_dwarf_extensions.
2369 * gcc-interface/trans.c (gigi): Remove -gdwarf+ initializations.
2370 * gcc-interface/utils.c (get_parallel_type): Remove.
2372 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
2374 * gcc-interface/trans.c (gnat_to_gnu) <N_Not_In>: Use
2375 invert_truthvalue_loc instead of invert_truthvalue.
2376 * gcc-interface/utils2.c (build_binary_op) <NE_EXPR>: Likewise.
2377 (build_unary_op) <TRUTH_NOT_EXPR>: Likewise.
2379 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
2381 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
2382 assertion on the types of the parameters. Use KIND local variable.
2383 <E_Incomplete_Type>: Likewise.
2385 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
2387 * gcc-interface/ada-tree.h (DECL_BY_DOUBLE_REF_P): New macro.
2388 * gcc-interface/gigi.h (annotate_object): Add BY_DOUBLE_REF parameter.
2389 * gcc-interface/decl.c (annotate_object): Likewise and handle it.
2390 (gnat_to_gnu_entity): Adjust calls to annotate_object.
2391 (gnat_to_gnu_param): If fat pointer types are passed by reference on
2392 the target, pass them by explicit reference.
2393 * gcc-interface/misc.c (default_pass_by_ref): Fix type of constant.
2394 * gcc-interface/trans.c (Identifier_to_gnu): Do DECL_BY_DOUBLE_REF_P.
2395 (Subprogram_Body_to_gnu): Adjust call to annotate_object.
2396 (call_to_gnu): Handle DECL_BY_DOUBLE_REF_P.
2397 * gcc-interface/utils.c (convert_vms_descriptor): Add BY_REF parameter
2399 (build_function_stub): Iterate on the parameters of the subprogram in
2400 lieu of on the argument types. Adjust call to convert_vms_descriptor.
2402 2010-10-09 Eric Botcazou <ebotcazou@adacore.com>
2404 * gcc-interface/misc.c: Delete prototypes.
2405 (gnat_init_options): Use local variable.
2406 (lang_hooks): Move to the end of the file.
2408 2010-10-08 Joseph Myers <joseph@codesourcery.com>
2410 * gcc-interface/misc.c (gnat_init_options_struct): New. Split out
2411 from gnat_init_options.
2412 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
2414 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2416 * sem_aux.adb: Cleanup Is_Immutably_Limited_Type.
2418 2010-10-08 Robert Dewar <dewar@adacore.com>
2420 * exp_ch3.adb: Minor reformatting.
2421 * exp_ch5.adb: Add comment.
2423 2010-10-08 Robert Dewar <dewar@adacore.com>
2425 * sem_prag.adb (Check_Duplicate_Pragma): Check for entity match
2426 * gcc-interface/Make-lang.in: Update dependencies.
2427 * einfo.ads: Minor reformatting.
2429 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2431 * exp_ch5.adb, sem_ch3.adb, exp_ch7.adb, exp_util.adb, sem_aux.adb,
2432 sem_aux.ads, exp_ch4.adb, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
2433 exp_ch3.adb: Change Is_Inherently_Limited_Type to
2434 Is_Immutably_Limited_Type to accord with new RM terminology.
2435 * sem_aux.adb (Is_Immutably_Limited_Type): A type that is a descendant
2436 of a formal limited private type is not immutably limited in a generic
2439 2010-10-08 Robert Dewar <dewar@adacore.com>
2441 * sem_prag.adb (Check_Duplicate_Pragma): New procedure
2442 Add calls to this new procedure where appropriate
2444 2010-10-08 Vincent Celier <celier@adacore.com>
2446 * a-textio.adb (Get_Chunk): Code clean up.
2448 2010-10-08 Robert Dewar <dewar@adacore.com>
2450 * a-strbou.ads, a-strfix.adb, a-strfix.ads, a-strsea.adb, a-strsea.ads,
2451 a-strsup.adb, a-strsup.ads, a-strunb-shared.adb, a-strunb-shared.ads,
2452 a-strunb.adb, a-strunb.ads, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
2453 a-stwise.adb, a-stwise.ads, a-stwisu.adb, a-stwisu.ads,
2454 a-stwiun-shared.adb, a-stwiun-shared.ads, a-stwiun.adb, a-stwiun.ads,
2455 a-stzbou.ads, a-stzfix.adb, a-stzfix.ads, a-stzsea.adb, a-stzsea.ads,
2456 a-stzsup.adb, a-stzsup.ads, a-stzunb-shared.adb, a-stzunb-shared.ads,
2457 a-stzunb.adb, a-stzunb.ads (Find_Token): New version with From
2460 2010-10-08 Robert Dewar <dewar@adacore.com>
2462 * sem_cat.adb (Check_Categorization_Dependencies): Remote types
2463 packages can depend on preleborated packages.
2465 2010-10-08 Robert Dewar <dewar@adacore.com>
2467 * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Pragmas
2468 Interrupt_Handler and Attach_Handler not allowed in generics.
2470 2010-10-08 Robert Dewar <dewar@adacore.com>
2472 * ali.adb: Set Allocator_In_Body if AB parameter present on M line
2473 * ali.ads (Allocator_In_Body): New flag
2474 * bcheck.adb (Check_Consistent_Restrictions): Handle case of main
2475 program violating No_Allocators_After_Elaboration restriction.
2476 * gnatbind.adb (No_Restriction_List): Add entries for
2477 No_Anonymous_Allocators, and No_Allocators_After_Elaboration.
2478 * lib-load.adb: Initialize Has_Allocator flag
2479 * lib-writ.adb: Initialize Has_Allocator flag
2480 (M_Parameters): Set AB switch if Has_Allocator flag set
2481 * lib-writ.ads: Document AB flag on M line
2482 * lib.adb (Has_Allocator): New function
2483 (Set_Has_Allocator): New procedure
2484 * lib.ads (Has_Allocator): New function
2485 (Set_Has_Allocator): New procedure
2486 (Has_Allocator): New flag in Unit_Record
2487 * sem_ch4.adb (Analyze_Allocator): Add processing for
2488 No_Allocators_After_Elaboration.
2490 2010-10-08 Geert Bosch <bosch@adacore.com>
2492 * a-textio.adb (Get_Line): Rewrite to use fgets instead of fgetc.
2494 2010-10-08 Javier Miranda <miranda@adacore.com>
2496 * sem_prag.adb (Analyze_Pragma): Relax semantic rule of
2497 Java_Constructors because in the JRE library we generate occurrences
2498 in which the "this" parameter is not the first formal.
2500 2010-10-08 Robert Dewar <dewar@adacore.com>
2502 * par-ch3.adb: Minor reformatting.
2504 2010-10-08 Javier Miranda <miranda@adacore.com>
2506 * exp_disp.adb (Make_DT): Do not generate dispatch tables for CIL/Java
2509 2010-10-08 Robert Dewar <dewar@adacore.com>
2511 * par-ch8.adb (P_Use_Type_Clause): Recognize ALL keyword in Ada 2012
2513 * sinfo.adb (Use_Type_Clause): Add All_Present flag.
2514 * sinfo.ads (Use_Type_Clause): Add All_Present flag.
2515 * s-rident.ads: Add entry for No_Allocators_After_Elaboration,
2516 No_Anonymous_Allocators.
2518 2010-10-08 Vincent Celier <celier@adacore.com>
2520 * bindgen.adb (Gen_Restrictions_Ada): No new line after last
2521 restriction, so that the last comma is always replaced with a left
2524 2010-10-08 Javier Miranda <miranda@adacore.com>
2526 * sem_prag.adb (Analyze_Pragma): Add specific check on the type of the
2527 first formal of delegates.
2529 2010-10-08 Robert Dewar <dewar@adacore.com>
2531 * sem_aggr.adb: Minor reformatting.
2533 2010-10-08 Robert Dewar <dewar@adacore.com>
2535 * exp_imgv.adb (Expand_Image_Attribute): Handle special calling
2536 sequence for soft hyphen for Character'Image case.
2537 * rtsfind.ads (Image_Character_05): New entry
2538 * s-imgcha.adb (Image_Character_05): New procedurew
2539 * s-imgcha.ads (Image_Character_05): New procedure
2540 * s-imgwch.adb (Image_Wide_Character): Deal with Ada 2005 soft hyphen
2542 * s-valcha.adb (Value_Character): Recognize SOFT_HYPHEN for 16#AD#
2543 * sem_attr.adb (Eval_Attribute, case Width): Handle soft_hyphen name
2546 2010-10-08 Robert Dewar <dewar@adacore.com>
2548 * sem_attr.adb (Eval_Attribute, case Width): Avoid ludicrous long loop
2549 for case of Wide_[Wide_]Character.
2551 2010-10-08 Robert Dewar <dewar@adacore.com>
2553 * exp_ch3.adb: Minor reformating
2554 Minor code reorganization.
2556 2010-10-08 Javier Miranda <miranda@adacore.com>
2558 * sem_prag.adb (Analyze_Pragma): Add missing checks on wrong use of
2559 pragmas CIL_Constructor and Java_Constructor.
2560 * exp_ch3.adb (Expand_Freeze_Record_Type): Do not generate the
2561 predefined primitives for CIL/Java tagged types.
2563 2010-10-08 Robert Dewar <dewar@adacore.com>
2565 * sem_ch6.adb: Minor reformatting.
2567 2010-10-08 Robert Dewar <dewar@adacore.com>
2569 * gnat1drv.adb: Add call to Validate_Independence.
2570 * par-prag.adb: Add dummy entries for Independent,
2571 Independent_Componentsa.
2572 * sem_ch13.adb (Validate_Independence): New procedure
2573 (Initialize): Initialize address clause and independence check tables
2574 * sem_ch13.ads (Independence_Checks): New table
2575 (Validate_Independence): New procedure
2576 * sem_prag.adb: Add processing for pragma Independent[_Components]
2577 * snames.ads-tmpl: Add entries for pragma Independent[_Components]
2579 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2581 * sem_aggr.adb (Propagate_Discriminants): When expanding an aggregate
2582 component with box initialization, if the component is a variant record
2583 use the values of the discriminants to select the proper variant for
2584 further box initialization.
2586 2010-10-08 Thomas Quinot <quinot@adacore.com>
2588 * xsnames.adb: Remove obsolete file.
2589 * make.adb, sem_ch8.adb, einfo.ads: Minor reformatting.
2591 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2593 * exp_aggr.adb: Complete previous change.
2595 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2597 * sem_ch6.adb (Check_Return_Subtype): The subtype indication in an
2598 extended return must match statically the return subtype of the
2599 enclosing function if the type is an elementary type or if it is
2602 2010-10-08 Vincent Celier <celier@adacore.com>
2604 * prj-nmsc.adb (Add_Source): Report all duplicate units and source file
2605 names. Do not report the same duplicate unit several times.
2606 * prj.ads (Source_Data): New Boolean component Duplicate_Unit,
2607 defaulted to False, to avoid reporting the same unit as duplicate
2610 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2612 * sem_aggr.adb (Resolve_Array_Aggregate): If the expression in an
2613 others choice is a literal, analyze it to enable later optimizations.
2614 * exp_aggr.adb (Expand_Record_Aggregate): An aggregate with static size
2615 and components can be handled by the backend even if it is of a limited
2618 2010-10-08 Arnaud Charlet <charlet@adacore.com>
2620 * a-rttiev.adb (task Timer): Since this package may be elaborated
2621 before System.Interrupt, we need to call Setup_Interrupt_Mask
2622 explicitly to ensure that this task has the proper signal mask.
2624 2010-10-08 Robert Dewar <dewar@adacore.com>
2626 * freeze.adb (Freeze_Entity): For array case, move some processing for
2627 pragma Pack, Component_Size clause and atomic/volatile components here
2628 instead of trying to do the job in Sem_Ch13 and Freeze.
2629 * layout.adb: Use new Addressable function
2630 * sem_ch13.adb (Analyze_Attribute_Representation_Clause, case
2631 Component_Size): Move some handling to freeze point in
2632 Freeze.Freeze_Entity.
2633 * sem_prag.adb (Analyze_pragma, case Pack): Move some handling to
2634 freeze point in Freese.Freeze_Entity.
2635 * sem_util.ads, sem_util.adb (Addressable): New function.
2637 2010-10-08 Robert Dewar <dewar@adacore.com>
2639 * sprint.adb: Minor reformatting.
2641 2010-10-08 Javier Miranda <miranda@adacore.com>
2643 * exp_ch4.adb (Real_Range_Check): Declare temporary as constant.
2645 2010-10-08 Robert Dewar <dewar@adacore.com>
2647 * sem_ch3.adb: Minor reformatting.
2649 2010-10-08 Vincent Celier <celier@adacore.com>
2651 * ali-util.adb (Get_File_Checksum): Make sure that external_as_list is
2652 not a reserved word.
2653 * prj-proc.adb (Expression): Process string list external references.
2654 * prj-strt.adb (External_Reference): Parse external_as_list external
2656 * prj-tree.ads (Expression_Kind_Of): Allowed for N_External_Value nodes
2657 (Set_Expression_Kind_Of): Ditto
2658 * prj.adb (Initialize): Set external_as_list as a reserved word
2659 * projects.texi: Document new string external reference
2661 * scans.ads (Token_Type): New token Tok_External_As_List
2662 * snames.ads-tmpl: New standard name Name_External_As_List
2664 2010-10-08 Thomas Quinot <quinot@adacore.com>
2666 * sem_prag.adb: Minor reformatting.
2668 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2670 * sem_ch3.adb (Derived_Type_Declaration): In the private part of an
2671 instance, it is legal to derive from a non-limited actual when the
2672 formal type is untagged limited.
2673 * sem_ch12.adb (Instantiate_Type): For a formal private type, use
2674 analyzed formal as Generic_Parent_Type, to simplify later checks.
2676 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2678 * sem_res.adb (Insert_Default): If default value is already a
2679 raise_constraint_error do not rewrite it as new raise node, to prevent
2680 infinite loops in the warning removal machinery.
2682 2010-10-08 Robert Dewar <dewar@adacore.com>
2684 * sem_util.adb, sem_prag.adb: Minor reformatting
2686 2010-10-08 Hristian Kirtchev <kirtchev@adacore.com>
2688 * gnat_rm.texi: Remove the section on pragma Implemented_By_Entry.
2689 Add section on pragma Implemented.
2691 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2693 * sem_ch3.adb (Derive_Subprogram): If an abstract extension has a
2694 concrete parent with a concrete constructor, the inherited constructor
2695 is abstract even if the derived type is a null extension.
2697 2010-10-08 Thomas Quinot <quinot@adacore.com>
2699 * sem_ch4.adb: Minor reformatting.
2701 2010-10-08 Hristian Kirtchev <kirtchev@adacore.com>
2703 * einfo.adb: Flag 232 (formerly Implemented_By_Entry) is now unused.
2704 (Implemented_By_Entry): Removed.
2705 (Set_Implemented_By_Entry): Removed.
2706 (Write_Entity_Flags): Remove the output for Implemented_By_Entry.
2707 * einfo.ads: Remove Implemented_By_Entry and its usage in entities.
2708 (Implemented_By_Entry): Removed along with its associated pragma.
2709 (Set_Implemented_By_Entry): Removed along with its associated pragma.
2710 * exp_ch9.adb: Alphabetize with and use clauses of Exp_Ch9.
2711 (Build_Dispatching_Call_Equivalent): New routine.
2712 (Build_Dispatching_Requeue): New routine.
2713 (Build_Dispatching_Requeue_To_Any): New routine.
2714 (Build_Normal_Requeue): New routine.
2715 (Build_Skip_Statement): New routine.
2716 (Expand_N_Requeue_Statement): Rewritten. The logic has been split into
2717 several subroutines.
2718 * par-prag.adb: Replace Pragma_Implemented_By_Entry by
2720 * sem_ch3.adb (Check_Abstract_Overriding): Perform checks concerning
2722 (Check_Pragma_Implemented): New routines.
2723 (Inherit_Pragma_Implemented): New routine.
2724 * sem_ch9.adb (Analyze_Requeue): Update the predicate which detects a
2725 dispatching requeue.
2726 * sem_prag.adb: Update array Sig_Flags by removing Implemented_By_Entry
2727 and adding Implemented.
2728 (Ada_2012_Pragma): New routine.
2729 (Analyze_Pragma, case Implemented): Perform all necessary checks
2730 concerning pragma Implemented and register the pragma as a
2731 representation item with the procedure_LOCAL_NAME.
2732 (Analyze_Pragma, case Implemented_By_Entry): Removed.
2733 * sem_util.adb (Implementation_Kind): New routine.
2734 * sem_util.ads (Implementation_Kind): New routine.
2735 * snames.ads-tmpl: Remove Name_Implemented_By_Entry and add
2736 Name_Implemented. Remove pragma name Pragma_Implemented_By_Entry and
2737 add Pragma_Implemented. Add special names By_Any, By_Entry and
2738 By_Protected_Procedure.
2740 2010-10-08 Javier Miranda <miranda@adacore.com>
2742 * exp_ch3.adb (Expand_Freeeze_Record_Type): Code cleanup: remove local
2743 variable Has_Static_DT by invocation of function Building_Static_DT.
2745 2010-10-08 Vincent Celier <celier@adacore.com>
2747 * g-dirope.adb (Remove_Dir): Do not change the current directory when
2748 doing a recursive remove of a subdirectory.
2750 2010-10-08 Javier Miranda <miranda@adacore.com>
2752 * exp_ch6.ad (Freeze_Subprogram): Factorize code.
2753 * exp_disp.adb (Make_Secondary_DT): Factorize code.
2754 (Make_DT): Factorize code.
2756 2010-10-08 Robert Dewar <dewar@adacore.com>
2758 * sem_ch4.adb: Minor reformatting.
2760 2010-10-08 Robert Dewar <dewar@adacore.com>
2762 * sem_ch6.adb (Check_Conformance): Check null exclusion match for full
2765 2010-10-08 Thomas Quinot <quinot@adacore.com>
2767 * sem_ch12.adb (Instantiate_Object): Rename Formal_Id to Gen_Obj, for
2768 consistency with Gen_T in Instantiate_Type.
2769 Introduce constant A_Gen_Obj to avoid repeated queries for
2770 Defining_Identifier (Analyzed_Formal).
2772 2010-10-08 Vincent Celier <celier@adacore.com>
2774 * prj-nmsc.adb: Minor comment fix.
2776 2010-10-07 Robert Dewar <dewar@adacore.com>
2778 * sem_prag.adb, sem_ch13.adb: Implement AI05-0012-1/02.
2779 * gcc-interface/Make-lang.in: Update dependencies.
2781 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2783 * sem_ch12.ad: (Instantiate_Object): For an in-out formal of a child
2784 unit, if the type of the formal is declared in a parent unit and is not
2785 a formal itself, the actual must be located from an enclosing parent
2786 instance by normal visibility.
2788 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2790 * sem_ch4.adb (Analyze_Allocator): In Ada 2012, a null_exclusion
2791 indicator is illegal for an uninitialized allocator.
2793 2010-10-07 Robert Dewar <dewar@adacore.com>
2795 * sem_prag.adb (Analyze_Attribute_Definition_Clause, case
2796 Component_Size): Complete previous change.
2798 2010-10-07 Vincent Celier <celier@adacore.com>
2800 * scng.adb (Scan): Call Accumulate_Token_Checksum for Tok_Identifier,
2801 even for keywords, to avoid having the checksum to depend on the Ada
2804 2010-10-07 Gary Dismukes <dismukes@adacore.com>
2806 * sem_aggr.adb, sem_ch12.adb, sem_ch6.adb, par-ch5.adb,
2807 exp_ch3.adb: Minor reformatting.
2809 2010-10-07 Robert Dewar <dewar@adacore.com>
2811 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
2812 Component_Size): It is now illegal to give an incorrect component size
2813 clause in the case of aliased or atomic components.
2814 * sem_prag.adb (Analyze_Pragma, case Pack): It is now illegal to give
2815 an effective pragma Pack in the case of aliased or atomic components.
2817 2010-10-07 Steve Baird <baird@adacore.com>
2819 * exp_ch4.adb (Expand_N_Allocator): Do not bypass expansion
2820 in the case of a violation of an active No_Task_Hierarchy restriction.
2822 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2824 * sem_ch12.adb (Validate_Derived_Type_Instance): If a formal derived
2825 type is non-limited, an actual for it cannot be limited.
2827 2010-10-07 Robert Dewar <dewar@adacore.com>
2829 * einfo.ads (No_Pool_Assigned): Update documentation.
2830 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
2831 Storage_Size): We only set No_Pool_Assigned if the expression is a
2832 static constant and zero.
2833 * sem_res.adb (Resolve_Allocator): Allocation from empty storage pool
2834 should be an error not a warning.
2836 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2838 * exp_aggr.adb (Expand_Array_Aggregate): Recognize additional cases
2839 where an aggregate in an assignment can be built directly into the
2840 target, and does not require the creation of a temporary that may
2843 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2845 * sem_aggr.adb (Analyze_Record_Aggregate): In Ada2012, a choice list
2846 in a record aggregate can correspond to several components of
2847 anonymous access types, as long as the designated subtypes match.
2849 2010-10-07 Robert Dewar <dewar@adacore.com>
2851 * gnat_rm.texi, exp_util.adb, sinfo.adb, sinfo.ads, sem_ch12.adb,
2852 sem.adb, gnat_ugn.texi, sem_util.ads, par-ch6.adb, targparm.ads,
2853 restrict.adb, sem_ch6.adb, sem_ch6.ads, sprint.adb, i-c.ads: Change
2854 spelling parametrize(d) => parameterize(d).
2856 2010-10-07 Robert Dewar <dewar@adacore.com>
2858 * sem_ch12.adb: Add comment.
2859 * sem_ch6.adb: Minor reformatting.
2861 2010-10-07 Robert Dewar <dewar@adacore.com>
2863 * par-ch3.adb, par-ch6.adb, par-ch7.adb, par-ch9.adb, par-ch10.adb: Add
2864 Pexp to Pf_Rec constants
2865 (P_Subprogram): Expression is always enclosed in parentheses
2866 * par.adb (Pf_Rec): add Pexp flag for parametrized expression
2867 * sinfo.ads (N_Parametrized_Expression): Expression must be in parens
2869 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2871 * sem_ch6.adb (Analyze_Subprogram_Specification): Implement Ada2012
2872 checks on functions that return an abstract type or have a controlling
2873 result whose designated type is an abstract type.
2874 (Check_Private_Overriding): Implement Ada2012 checks on functions
2875 declared in the private part, if an abstract type is involved.
2876 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): In Ada2012,
2877 reject a generic function that returns an abstract type.
2878 * exp_ch5.adb (Expand_Simple_Function_Return): in Ada2012, if a
2879 function has a controlling access result, check that the tag of the
2880 return value matches the designated type of the return expression.
2882 2010-10-07 Robert Dewar <dewar@adacore.com>
2884 * par-ch6.adb: Fix error in handling of parametrized expressions.
2885 * par-ch4.adb (P_Name): Allow qualified expression as name in Ada 2012
2887 (P_Simple_Expression): Better message for qualified expression prefix
2888 * s-crc32.adb: Minor reformatting.
2889 * exp_intr.adb (Expand_Unc_Deallocation): Remove test for empty
2890 storage pool (this test is moved to Sem_Intr).
2891 * sem_intr.adb (Check_Intrinsic_Call): Add check for deallocation from
2892 empty storage pool, moved here from Exp_Intr and made into error.
2893 (Check_Intrinsic_Call): Remove assumption in generating not-null free
2894 warning that the name of the instantiation is Free.
2895 * sinput.adb (Tree_Read): Document use of illegal free call allowed in
2897 * types.ads: Remove storage size clauses from big types (since we may
2898 need to do deallocations, which are now illegal for empty pools).
2900 2010-10-07 Sergey Rybin <rybin@adacore.com>
2902 * gnat_ugn.texi: Add missing word.
2904 2010-10-07 Robert Dewar <dewar@adacore.com>
2906 * exp_util.adb (Insert_Actions): Add handling of
2907 N_Parametrized_Expression.
2908 * par-ch6.adb (P_Subprogram): Add parsing of parametrized expression
2909 * sem.adb: Add entry for N_Parametrized_Expression
2910 * sem_ch6.adb (Analyze_Parametrized_Expression): New procedure
2911 * sem_ch6.ads (Analyze_Parametrized_Expression): New procedure
2912 * sinfo.ads, sinfo.adb: Add N_Parametrized_Expression
2913 * sprint.adb (Sprint_Node): Add handling for N_Parametrized_Expression
2914 * par-ch4.adb: Minor reformatting.
2916 2010-10-07 Robert Dewar <dewar@adacore.com>
2918 * scng.adb (Skip_Other_Format_Characters): New procedure
2919 (Start_Of_Wide_Character): New procedure
2920 (Scan): Use Start_Of_Wide_Character where appropriate
2921 (Scan): Improve error message for other_format chars in identifier
2922 (Scan): Allow other_format chars between tokens
2924 2010-10-07 Javier Miranda <miranda@adacore.com>
2926 * exp_util.adb (Safe_Prefixed_Reference): When removing side effects,
2927 Add missing support for explicit dereferences.
2929 2010-10-07 Robert Dewar <dewar@adacore.com>
2931 * par-ch10.adb, par-ch3.adb, par.adb: Minor reformatting.
2933 2010-10-07 Robert Dewar <dewar@adacore.com>
2935 * exp_disp.adb, exp_dist.adb, exp_util.ads, exp_util.adb,
2936 exp_ch11.adb: Rename Full_Qualified_Name to Fully_Qualified_Name_String
2937 * sem_util.adb, sem_util.ads (Full_Qualified_Name): Moved to
2938 Exp_Util.Fully_Qualified_Name_String.
2940 2010-10-07 Robert Dewar <dewar@adacore.com>
2942 * rtsfind.ads: Add entry for Ada.Real_Time.Timing_Events.Set_Handler
2943 * sem_res.adb (Resolve_Call): A call to
2944 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
2945 No_Relative_Delay (AI-0211).
2947 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2949 * sem_ch10.adb: Small change in error message.
2951 2010-10-07 Robert Dewar <dewar@adacore.com>
2953 * tbuild.ads: Minor reformatting.
2955 2010-10-07 Robert Dewar <dewar@adacore.com>
2957 * gnatcmd.adb, make.adb, prj-nmsc.adb, sem_elab.adb: Minor reformatting
2959 2010-10-07 Arnaud Charlet <charlet@adacore.com>
2961 * exp_ch11.adb (Expand_N_Exception_Declaration): Update comments.
2963 2010-10-07 Robert Dewar <dewar@adacore.com>
2965 * sem_res.adb: Minor reformatting
2967 2010-10-07 Olivier Ramonat <ramonat@adacore.com>
2969 * gnat_ugn.texi: Minor editing.
2970 * opt.ads: Document that scripts rely on specific formats in opt.ads
2972 2010-10-07 Robert Dewar <dewar@adacore.com>
2974 * a-wichun.ads, a-wichun.adb (To_Lower_Case): New function
2975 (To_Upper_Case): Fix to be inverse of To_Lower_Case
2976 * a-zchuni.ads, a-zchuni.adb (To_Lower_Case): New function
2977 (To_Upper_Case): Fix to be inverse of To_Lower_Case
2979 2010-10-07 Robert Dewar <dewar@adacore.com>
2981 * a-wichha.adb, a-wichha.ads, a-zchhan.adb, a-zchhan.ads: New file.
2982 * impunit.adb: Add entries for a-wichha/a-zchhan
2983 * Makefile.rtl: Add entries for a-wichha/a-zchhan
2985 2010-10-07 Vincent Celier <celier@adacore.com>
2987 * make.adb (Check): Call Check_Source_Info_In_ALI with Project_Tree
2988 * makeutl.adb (Check_Source_Info_In_ALI): If there is at least one
2989 replaced source, check that none of the replaced sources are in the
2991 * makeutl.ads (Check_Source_Info_In_ALI): New parameter Tree
2992 * prj-nmsc.adb (Remove_Source): New parameter Tree. If the source is
2993 replaced with a source with a different file name, put it in the hash
2994 table Replaced_Sources.
2995 (Add_Source): Call Remove_Source with Data.Tree. If there is at least
2996 one replaced source, check if it has the same file name as the current
2997 source; if it has, remove it from the hash table Replaced_Sources.
2998 * prj.adb (Reset): Reset hash table Tree.Replaced_Sources
2999 * prj.ads (Replaced_Source_HTable): New hash table
3000 (Project_Tree_Data): New components Replaced_Sources and
3001 Replaced_Source_Number.
3003 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3005 * sem_elab.adb (Check_A_Call): After inserting elaboration check, set
3006 proper flag to prevent a double elaboration check on the same call.
3007 * exp_util.adb (Insert_Actions): If the enclosing node is an
3008 Expression_With_Actions and it has been analyzed already, find
3009 insertion point further up in the tree.
3011 2010-10-07 Hristian Kirtchev <kirtchev@adacore.com>
3013 * sem_ch13.adb (Analyze_Record_Representation_Clause): Alphabetize all
3014 local variables. Remove the general restriction which prohibits the
3015 application of record rep clauses to Unchecked_Union types. Add Ada
3016 2012 check to detect improper naming of an Unchecked_Union
3017 discriminant in record rep clause.
3018 * sem_prag.adb: Add with and use clause for Exp_Ch7.
3019 (Analyze_Pragma): Unchecked_Union case: Propagate the Unchecked_Union
3020 type to all invocations of Check_Component and Check_Variant.
3021 (Check_Component): Add formal parameters UU_Typ and In_Variant_Part.
3022 Rewritten. Add Ada 2012 check to detect improper use of formal
3023 private types and private extensions as component types of an
3024 Unchecked_Union declared inside a generic body.
3025 (Check_Variant): Add formal parameter UU_Typ. Propagate the
3026 Unchecked_Union type to all calls of Check_Component. Signal that the
3027 current component comes from the variant part of an Unchecked_Union
3029 (Inside_Generic_Body): New routine.
3031 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3033 * exp_ch4.adb (Expand_Composite_Equality): When looking for a primitive
3034 equality operation for a record component, verify that both formals
3035 have the same type, and the result type is boolean.
3037 2010-10-07 Vincent Celier <celier@adacore.com>
3039 * gnatcmd.adb (Check_Files): When looking for the .ci file for a
3040 binder generated file, look for both b~xxx and b__xxx as gprbuild
3041 always uses b__ as the prefix of such files.
3043 2010-10-07 Thomas Quinot <quinot@adacore.com>
3045 * sem_res.adb: Minor reformatting.
3047 2010-10-07 Arnaud Charlet <charlet@adacore.com>
3049 * debug.adb: Update -gnatd.J documentation.
3051 2010-10-07 Robert Dewar <dewar@adacore.com>
3053 * gnat_rm.texi: Document handling of invalid values
3054 * s-utf_32.ads, s-utf_32.adb (UTF_To_Lower_Case): Fix implementation
3056 (UTF_To_Upper_Case): New function.
3058 2010-10-07 Robert Dewar <dewar@adacore.com>
3060 * sem_attr.adb: Minor reformatting.
3061 * einfo.ads, einfo.adb (Is_Ada_2012_Only): New flag
3062 * itypes.adb (Create_Null_Excluding_Itype): Set Is_Ada_2012_Only flag
3064 * lib-xref.adb (Generate_Reference): Warn on use of Ada 2012 entity in
3066 * opt.ads (Warn_On_Ada_2012_Compatibility): New flag
3067 * sem_ch3.adb (Analye_Subtype_Declaration): Inherit Is_Ada_2012_Only
3068 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Is_Ada_2012_Only
3070 * sem_prag.adb (Analyze_Pragma, case Ada_12/Ada_2012): Allow form with
3072 * sem_type.adb (Disambiguate): Deal with Is_Ada_2012_Only.
3073 * sem_warn.adb (Warn_On_Ada_2012_Compatibility): New flag, treated
3076 2010-10-07 Javier Miranda <miranda@adacore.com>
3078 * a-tags.ads: Use new support for pragma Ada_2012 with function
3081 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3083 * par-ch5.adb (P_Sequence_Of_Statements): In Ada2012 a label can end a
3084 sequence of statements.
3086 2010-10-07 Vincent Celier <celier@adacore.com>
3088 * gnatcmd.adb (Check_Files): Only add a .ci files if it exists
3090 2010-10-07 Javier Miranda <miranda@adacore.com>
3092 * a-tags.ads, a-tags.adb (Type_Is_Abstract): New subprogram.
3093 * rtsfind.ads (RE_Type_Is_Abstract): New entity.
3094 * exp_disp.adb (Make_DT): Initialize TSD component Type_Is_Abstract.
3096 2010-10-07 Arnaud Charlet <charlet@adacore.com>
3098 * sem_ch12.adb (Mark_Context): Removed, no longer needed.
3099 (Analyze_Package_Instantiation): No longer analyze systematically a
3100 generic body in CodePeer mode.
3101 * freeze.adb, sem_attr.adb: Update comments.
3103 2010-10-05 Robert Dewar <dewar@adacore.com>
3105 * par-ch5.adb (Test_Statement_Required): Allow all pragmas in Ada 2012
3108 2010-10-05 Pascal Obry <obry@adacore.com>
3110 * gnat_rm.texi: Fix typo.
3112 2010-10-05 Arnaud Charlet <charlet@adacore.com>
3114 * gnat_ugn.texi: Add note about identifiers with same name and
3117 2010-10-05 Robert Dewar <dewar@adacore.com>
3119 * sem_ch4.adb: Minor reformatting.
3120 * a-direct.ads: Minor comment update.
3122 2010-10-05 Javier Miranda <miranda@adacore.com>
3124 * sem_ch3.adb (Add_Internal_Interface_Entities): Removing code that is
3125 no longer required after change in New_Overloaded_Entity.
3126 * sem_ch6.adb (New_Overloaded_Entity): Code reorganization to isolate
3127 the fragment of code that handles derivations of interface primitives.
3128 Add missing dependence on global variable Inside_Freezing_Actions to
3129 ensure the correct management of internal interface entities.
3130 * sem_ch13.adb (Analyze_Freeze_Entity): Add missing increase/decrease
3131 of the global variable Inside_Freezing_Actions to ensure that internal
3132 interface entities are well handled by New_Overloaded_Entity.
3133 * sem_disp.adb (Find_Primitive_Covering_Interface): Add documentation
3134 and complete the algorithm to catch hidden primitives derived of
3135 private type that covers the interface.
3136 * sem_disp.ads (Find_Primitive_Covering_Interface): Add missing
3139 2010-10-05 Robert Dewar <dewar@adacore.com>
3141 * prj-util.adb, prj-util.ads, prj.ads, s-vxwext-rtp.adb, sem_ch4.adb,
3142 sem_ch7.adb, sem_res.adb, sem_type.adb: Minor reformatting.
3143 Minor code reorganization (use Nkind_In).
3145 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3147 * sem_ch10.adb (Analyze_Task_Body_Stub): Diagnose duplicate stub for
3150 2010-10-05 Vincent Celier <celier@adacore.com>
3152 * gnatbind.adb: If the main library file is not for a suitable main
3153 program, change the error message.
3155 2010-10-05 Vincent Celier <celier@adacore.com>
3157 * a-direct.ads: Minor spelling error fixes in comments.
3158 * gnat_rm.texi: Add three entries in "Implementation Defined
3159 Characteristics" for the interpretations of the Form parameters in
3162 2010-10-05 Robert Dewar <dewar@adacore.com>
3164 * exp_ch3.adb, exp_ch5.adb, exp_disp.adb, exp_dist.adb, gnatlink.adb,
3165 makeutl.adb, par-ch6.adb, prj-dect.adb, prj-env.adb, prj-env.ads,
3166 prj-ext.adb, prj-nmsc.adb, prj-part.adb, prj-pp.ads: Minor code
3170 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3172 * sem_res.adb (Check_Parameterless_Call): If the prefix of 'Address is
3173 an explicit dereference of an access to function, the prefix is not
3174 interpreted as a parameterless call.
3176 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3178 * exp_attr.adb: For 'Read and 'Write, use full view of base type if
3181 2010-10-05 Vincent Celier <celier@adacore.com>
3183 * make.adb (Switches_Of): Allow wild cards in index of attributes
3185 * prj-util.adb (Value_Of): When Allow_Wildcards is True, use the index
3186 of the associative array as a glob regular expression.
3187 * prj-util.ads (Value_Of (Index, In_Array)): New Boolean parameter
3188 Allow_Wildcards, defaulted to False.
3189 (Value_Of (Name, Attribute_Or_Array_Name)): Ditto
3190 * projects.texi: Document that attribute Switches (<file name>) may
3191 use wild cards in the index.
3193 2010-10-05 Robert Dewar <dewar@adacore.com>
3195 * a-direct.adb, a-direct.ads, back_end.adb, checks.adb,
3196 einfo.adb: Minor reformatting.
3197 * debug.adb: Remove obsolete documentation for d.Z flag.
3199 2010-10-05 Vincent Celier <celier@adacore.com>
3201 * vms_data.ads: Add VMS qualifier /SRC_INFO= corresponding to gnatmake
3202 switch --create-info-file=.
3203 * gnat_ugn.texi: Add documentation for new gnatmake switch
3206 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3208 * sem_ch3.adb: Do not elaborate type definition if syntax error.
3210 2010-10-05 Javier Miranda <miranda@adacore.com>
3212 * sprint.adb (Sprint_Node_Actual): Improve output of subprogram bodies
3213 to generate the full-qualified names of its corresponding spec.
3214 This facilitates locating the corresponing body when reading
3217 2010-10-05 Thomas Quinot <quinot@adacore.com>
3219 * exp_dist.adb (Make_Helper_Function_Name): For a tagged type, use
3220 canonical name without serial number only if the helper is becoming a
3221 primitive of the type.
3223 2010-10-05 Javier Miranda <miranda@adacore.com>
3225 * exp_disp.adb (Make_DT): Minor code reorganization.
3227 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3229 * par-ch6.adb: improve recovery with extra paren in function spec.
3231 2010-10-05 Quentin Ochem <ochem@adacore.com>
3233 * prj-tree.ads: Project_Path is now aliased.
3235 2010-10-05 Thomas Quinot <quinot@adacore.com>
3237 * checks.adb: Minor reformatting.
3239 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
3241 * mlib-tgt-specific-mingw.adb (No_Argument_List): Delete.
3242 (Shared_Libgcc): New aliased variable.
3243 (Shared_Libgcc_Switch): New constant.
3244 (Build_Dynamic_Library): Pass Shared_Libgcc_Switch to the compiler
3245 * gcc-interface/Makefile.in (gnatlib-shared-win32): Pass -shared-libgcc
3247 * gcc-interface/Make-lang.in: Update dependencies.
3249 2010-10-05 Vincent Celier <celier@adacore.com>
3251 * prj-part.adb (Parse_Simple_Project): When checking if a child project
3252 imports its parent project, also look in projects being extended by
3255 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
3257 * gnat_ugn.texi: Adjust instructions in G.10 Building DLLs with GNAT.
3259 2010-10-05 Javier Miranda <miranda@adacore.com>
3261 * exp_cg.adb (Slot_Number): Add support to handle aliased entities.
3262 (Generate_CG_Output): Switch -gnatd.Z is no longer needed to
3263 activate this output.
3265 2010-10-05 Arnaud Charlet <charlet@adacore.com>
3267 * back_end.adb (Call_Back_End): Generate an error message when scil
3268 generation is enabled, and no scil back-end (by default) is available.
3270 2010-10-05 Javier Miranda <miranda@adacore.com>
3272 * debug.adb: Update documentation since -gnatd.Z is no longer required
3273 to generate the call-graph information.
3275 2010-10-05 Javier Miranda <miranda@adacore.com>
3277 * exp_ch5.adb (Expand_Simple_Function_Return): Rewrite expansion of a
3278 runtime access check by an equivalent expansion that causes
3279 no problems in the VM backend. The original expansion was
3280 not good for the VM backends because when Tagged_Type_Expansion
3281 is disabled the attribute Access_Disp_Table is not available.
3283 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3285 * sem_type.adb (Covers): In a dispatching context, T1 covers T2 if T2
3286 is class-wide and T1 is its specific type.
3288 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3290 * einfo.adb: Add guard to Is_String_Type to prevent cascaded errors.
3292 2010-10-05 Vincent Celier <celier@adacore.com>
3294 * back_end.ads: Minor spelling error correction.
3296 2010-10-05 Arnaud Charlet <charlet@adacore.com>
3298 * switch-c.adb, gnat1drv.adb (Scan_Front_End_Switches): Disable
3299 warnings when -gnatC is specified here so that warnings can be
3300 re-enabled explicitly.
3301 (Adjust_Global_Switches): No longer suppress warnings.
3303 2010-10-05 Vincent Celier <celier@adacore.com>
3305 * makeutl.adb: Minor reformatting.
3307 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3309 * sem_ch4.adb: add guard in Analyze_One_Call to prevent crash when a
3310 non-discrete type appears as an actual in a call.
3312 2010-10-05 Vincent Celier <celier@adacore.com>
3314 * make.adb (Scan_Make_Arg): Take into account new switch
3316 * makeusg.adb: Add line for new switch --source-info=file.
3317 * makeutl.ads (Source_Info_Option): New constant String for new builder
3319 * prj-conf.adb: Put subprograms in alphabetical order
3320 (Process_Project_And_Apply_Config): Read/write an eventual source info
3322 * prj-nmsc.adb (Look_For_Sources.Get_Sources_From_Source_Info): New
3324 (Look_For_Sources): If a source info file was successfully read, get
3325 the source data from the data read from the source info file.
3326 * prj-util.adb (Source_Info_Table): New table
3327 (Source_Info_Project_HTable): New hash table
3328 (Create): New procedure
3329 (Put (File), Put_Line): New procedures
3330 (Write_Source_Info_File): New procedure
3331 (Read_Source_Info_File): New procedure
3332 (Initialize): New procedure
3333 (Source_Info_Of): New procedure
3334 (Next): New procedure
3335 (Close): When file is an out file, fail if the buffer cannot be written
3336 or if the file cannot be close successfully.
3337 (Get_Line): Fail if file is an out file
3338 * prj-util.ads (Create): New procedure
3339 (Put (File), Put_Line): New procedures
3340 (Write_Source_Info_File): New procedure
3341 (Read_Source_Info_File): New procedure
3342 (Source_Info_Data): New record type
3343 (Source_Info_Iterator): New private type
3344 (Initialize): New procedure
3345 (Source_Info_Of): New procedure
3346 (Next): New procedure
3347 * prj.ads (Project_Tree_Data): New components Source_Info_File_Name and
3348 Source_Info_File_Exists.
3350 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3352 * exp_ch4.adb: Fix typo.
3354 2010-10-05 Thomas Quinot <quinot@adacore.com>
3356 * lib-writ.adb: Minor reformatting.
3358 2010-10-05 Javier Miranda <miranda@adacore.com>
3360 * sem_ch3.adb (Access_Definition): Remove useless code.
3362 2010-10-05 Emmanuel Briot <briot@adacore.com>
3364 * prj-env.adb, prj-env.ads (Set_Path): New subprogram.
3365 (Deep_Copy): Removed, not used.
3367 2010-10-05 Javier Miranda <miranda@adacore.com>
3369 * sem_ch3.adb (Add_Internal_Interface_Entities): Code reorganization:
3370 move code that searches in the list of primitives of a tagged type for
3371 the entity that will be overridden by user-defined routines.
3372 * sem_disp.adb (Find_Primitive_Covering_Interface): Move here code
3373 previously located in routine Add_Internal_Interface_Entities.
3374 * sem_disp.ads (Find_Primitive_Covering_Interface): Update docs.
3375 * sem_ch6.adb (New_Overloaded_Entity): Add missing check on
3376 availability of attribute Alias.
3378 2010-10-05 Ed Falis <falis@adacore.com>
3380 * s-taprop-vxworks.adb, s-osinte-vxworks.adb, s-osinte-vxworks.ads,
3381 s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.adb, s-vxwext-rtp.ads:
3382 Move definition of intContext to System.OS_Interface.
3383 Add necessary variants in System.VxWorks.Extensions.
3385 2010-10-05 Doug Rupp <rupp@adacore.com>
3387 * s-asthan-vms-alpha.adb: On VMS, a task using
3388 pragma AST_Entry exhibits a memory leak when the task terminates
3389 because the vector allocated for the AST interface is not freed. Fixed
3390 by making the vector a controlled type.
3392 2010-10-05 Emmanuel Briot <briot@adacore.com>
3394 * prj-nmsc.adb (Expand_Subdirectory_Pattern): Check that the prefix in
3395 a "**" pattern properly exists, and report an error otherwise.
3397 2010-10-05 Emmanuel Briot <briot@adacore.com>
3399 * prj-env.ads: Use GNAT.OS_Lib rather than System.OS_Lib.
3401 2010-10-05 Emmanuel Briot <briot@adacore.com>
3403 * prj-nmsc.adb, prj-err.adb (Expand_Subdirectory_Pattern): New
3405 Extract some code from Get_Directories, to share with the handling
3406 of aggregate projects (for the Project_Files attributes)
3408 2010-10-05 Emmanuel Briot <briot@adacore.com>
3410 * gnatcmd.adb, prj-proc.adb, prj-part.adb, prj-ext.adb, prj-ext.ads,
3411 switch-m.adb, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-env.adb,
3412 prj-env.ads, prj-tree.adb, prj-tree.ads (Project_Search_Path): New
3415 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
3417 * exp_ch5.adb (Make_Field_Expr): Revert previous change (removed).
3419 2010-10-05 Emmanuel Briot <briot@adacore.com>
3421 * prj-dect.adb, prj-nmsc.adb, prj-attr.adb, snames.ads-tmpl
3422 (Aggregate projects): added support for parsing aggregate projects.
3423 In particular, check the presence and value of the new attributes
3424 related to aggregate projects, ie Project_Files, Project_Path
3426 (Check_Attribute_Allowed, Check_Package_Allowed,
3427 Rename_Obsolescent_Attributes): new subprogram, extracting code
3428 from existing subprogram to keep their sizes smaller.
3429 (Check_Aggregate_Project, Check_Abstract_Project,
3430 Check_Missing_Sources): new subprograms
3431 (Check): remove comments that duplicated either the name of the
3432 following subprogram call, or the comment on that subprogram.
3433 * prj-part.adb (Check_Extending_All_Imports): New subprogram, extracted
3434 from Parse_Single_Project.
3435 (Check_Aggregate_Imports): new subprogram.
3437 2010-10-05 Vincent Celier <celier@adacore.com>
3439 * make.adb (Check): When compiling with -gnatc, recompile if the ALI
3440 file has not been generated for the current source, for example if it
3441 has been generated for the spec, but we are compiling the body.
3443 2010-10-05 Bob Duff <duff@adacore.com>
3445 * xgnatugn.adb: Remove unused procedure.
3447 2010-10-04 Vincent Celier <celier@adacore.com>
3449 * a-direct.adb (Copy_File): Interpret the Form parameter and call
3450 System.OS_Lib.Copy_File to do the work accordingly. Raise Use_Error if
3451 the Form parameter contains an incorrect value for field preserve= or
3453 * a-direct.ads (Create_Directory, Create_Path): Indicate that the Form
3454 parameter is ignored.
3455 (Copy_File): Indicate the interpretation of the Form parameter.
3457 2010-10-04 Vincent Celier <celier@adacore.com>
3459 * make.adb (Gnatmake): When there are no foreign languages declared and
3460 a main in attribute Main of the main project does not exist or is a
3461 source of another project, fail immediately before attempting
3464 2010-10-04 Javier Miranda <miranda@adacore.com>
3466 * exp_disp.ads (Convert_Tag_To_Interface): New function which must be
3467 used to convert a node referencing a tag to a class-wide interface
3469 * exp_disp.adb (Convert_Tag_To_Interface): New function.
3470 (Expand_Interface_Conversion): Replace invocation of
3471 Unchecked_Conversion by new function Convert_Tag_To_Interface.
3472 (Write_DT): Add support for null primitives.
3473 * exp_ch3.adb (Expand_N_Object_Declaration): For tagged type objects,
3474 cleanup code that handles interface conversions and avoid unchecked
3475 conversion of referenced tag components.
3476 * exp_ch5.adb (Expand_N_Assignment_Statement): Code cleanup. Avoid
3477 unrequired conversions when generating a dispatching call to _assign.
3478 * sprint.adb (Write_Itype): Fix wrong output of not null access itypes.
3480 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3482 * exp_ch4.adb (Expand_N_Op_Not): Handle properly both operands when the
3483 parent is a binary boolean operation and the operand is an unpacked
3485 (Build_Boolean_Array_Proc_Call): If the operands are both negations,
3486 the operands of the rewritten node are the operands of the negations,
3487 not the negations themselves.
3489 2010-10-04 Robert Dewar <dewar@adacore.com>
3491 * sem_ch13.adb (Set_Biased): New procedure, now used throughout, adds
3492 name of entity to biased warning msg.
3493 (Analyze_Enumeration_Representation_Clause): Remove attempt to use
3494 biased rep (wrong and never worked anyway).
3496 2010-10-04 Arnaud Charlet <charlet@adacore.com>
3498 * sem_elab.adb: Minor reformatting.
3500 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3502 * exp_ch4.adb (Expand_N_Null): Handle properly the case of a subtype of
3503 an access_to_protected subprogram type, and convert null value into
3504 corresponding aggregate.
3506 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3508 * gnat_ugn.texi: Clarify first point of 7.1.5 about pragma Inline.
3510 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3512 * make.adb (Scan_Make_Arg): Pass -Oxxx switches to the linker as well.
3513 * gnatlink.adb (Gnatlink): Filter out -Oxxx switches for CLI, RTX and
3516 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3518 * sem_ch4.adb (Analyze_Indexed_Component_Form): Remove redundant test
3519 for N_Operator_Symbol.
3520 (Indicate_Name_And_Type): Likewise.
3521 * sem_ch8.adb (Analyze_Subprogram_Renaming): Likewise.
3522 * sem_res.adb (Resolve): Likewise.
3523 * sem_type.adb (Add_One_Interp): Likewise.
3524 (Disambiguate): Likewise.
3526 2010-10-04 Vincent Celier <celier@adacore.com>
3528 * osint.adb (Read_Library_Info_From_Full): If object timestamp is less
3529 than ALI file timestamp, return null.
3531 2010-10-04 Vincent Celier <celier@adacore.com>
3533 * prj-makr.adb (Finalize): Invoke Pretty_Print with Max_Length of 79.
3534 * prj-pp.adb (Pretty_Print): New parameter Max_Line_Length, that
3535 replaces global constant with the same name. When a line is too long,
3536 indent properly the next continuation line.
3537 * prj-pp.ads (Pretty_Print): New parameter Max_Line_Length with a range
3538 from 50 to 255, defaulted to 255, to indicate the maximum length of
3539 lines in the project file.
3541 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3543 * sem_ch7.adb (Analyze_Package_Body_Helper) <Has_Referencer>: New
3544 Check_Subprogram_Ref function and Check_Subprogram_Refs instantiation
3545 of Traverse_Func on it to look for subprogram references in a body.
3546 Call Check_Subprogram_Refs on the body of inlined subprograms at the
3547 outer level and keep clearing the Is_Public flag of subprograms as long
3548 as it returns OK. Do not look at anything else than subprograms once
3549 an inlined subprogram has been seen.
3551 2010-10-04 Javier Miranda <miranda@adacore.com>
3553 * exp_cg.adb (Expand_N_Assignment_Statement): Restore tag check when
3554 the target object is an interface.
3555 * sem_disp.adb (Propagate_Tag): If the controlling argument is an
3556 interface type then we generate an implicit conversion to force
3557 displacement of the pointer to the object to reference the secondary
3558 dispatch table associated with the interface.
3560 2010-10-04 Robert Dewar <dewar@adacore.com>
3562 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Set
3563 Enumeration_Rep_Expr to point to the literal, not the identifier.
3564 (Analyze_Enumeration_Representation_Clause): Improve error message for
3565 size too small for enum rep value
3566 (Analyze_Enumeration_Representation_Clause): Fix size test to use
3567 proper size (RM_Size, not Esize).
3569 2010-10-04 Robert Dewar <dewar@adacore.com>
3571 * s-taprop-vxworks.adb, sem_res.adb: Minor reformatting.
3573 2010-10-04 Javier Miranda <miranda@adacore.com>
3575 * exp_cg.adb (Write_Call_Info): Code clean up.
3577 2010-10-04 Arnaud Charlet <charlet@adacore.com>
3579 * s-taprop-mingw.adb (Create_Task): Initialize Thread_Id field to 0.
3581 2010-10-04 Robert Dewar <dewar@adacore.com>
3583 * exp_cg.adb: Minor code reorganization
3585 * exp_ch5.adb, prj-nmsc.adb: Minor reformatting.
3587 2010-10-04 Bob Duff <duff@adacore.com>
3589 * sem_res.adb (Resolve_Type_Conversion): If a type conversion is needed
3590 to make a qualified expression into a name (syntax-wise), then do not
3591 consider it redundant.
3593 2010-10-04 Thomas Quinot <quinot@adacore.com>
3595 * sem_warn.ads: Fix typo.
3597 2010-10-04 Javier Miranda <miranda@adacore.com>
3599 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Handle suffix in
3601 (Write_Call_Info): Add missing support for renamed primitives.
3603 2010-10-04 Thomas Quinot <quinot@adacore.com>
3605 * exp_ch5.adb (Make_Field_Expr): New subprogram, to factor duplicated
3606 code between Make_Component_List_Assign and Make_Field_Assign.
3608 2010-10-04 Vincent Celier <celier@adacore.com>
3610 * prj-nmsc.adb (Get_Directories): For non extending projects that
3611 declare that they have no sources, do not create a non existing object
3612 or exec directory if builder switch -p is used.
3614 2010-10-04 Sergey Rybin <rybin@adacore.com>
3616 * gnat_ugn.texi (gnatcheck): Change the description of the report file
3619 2010-10-04 Ed Falis <falis@adacore.com>
3621 * s-taprop-vxworks.adb (Is_Task_Context): Import VxWorks intContext to
3622 determine whether Set_True is called from a task or an ISR.
3623 (Set_True): test for being in a task context before trying to
3624 dereference Defer_Abort or Undefer_Abort.
3626 2010-10-04 Robert Dewar <dewar@adacore.com>
3628 * sem_res.adb, sinput-l.adb: Minor reformatting.
3630 2010-10-04 Hristian Kirtchev <kirtchev@adacore.com>
3632 * exp_ch5.adb (Expand_N_Assignment_Statement): Do not generate a tag
3633 check when the target object is an interface since the expression of
3634 the right hand side must only cover the interface.
3636 2010-10-04 Vincent Celier <celier@adacore.com>
3638 * frontend.adb: Set Lib.Parsing_Main_Extended_Source to True before
3639 loading the main source, so that if it is preprocessed and -gnateG is
3640 used, the preprocessed file is written.
3641 * lib.ads (Analysing_Subunit_Of_Main): New global variable to indicate
3642 if a subunit is from the main unit when it is loaded.
3643 * sem_ch10.adb (Analyze_Proper_Body): Set Lib.Analysing_Subunit_Of_Main
3644 to True before loading a subunit.
3645 * sem_ch12.adb (Copy_Generic_Node): Set Lib.Analysing_Subunit_Of_Main
3646 to True when the main is a generic unit before loading one of its
3648 * sinput-l.adb (Load_File): If -gnateG is used, write the preprocessed
3649 file only for the main unit (spec, body and subunits).
3651 2010-10-04 Vincent Celier <celier@adacore.com>
3653 * sinput-l.adb (Load_File): Do not fail when switch -gnateG is
3654 specified and the processed file cannot be written. Just issue a
3655 warning and continue.
3657 2010-10-04 Thomas Quinot <quinot@adacore.com>
3659 * sem_res.adb: Minor reformatting.
3661 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3663 * sem_ch8.adb (Analyze_Subprogram_Renaming): If the renamed operation
3664 is an overridden inherited operation, the desired operation is the
3665 overriding one, which is the alias of the visible one.
3667 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3669 * sem_ch6.adb (Find_Corresponding_Spec): Check that the wrapper body is
3670 present before deleting from the tree, when an inherited function with
3671 a controlling result that returns a null extension is overridden by a
3672 later declaration or body.
3674 2010-10-04 Gary Dismukes <dismukes@adacore.com>
3676 * checks.adb: Update comment.
3678 2010-09-30 Joseph Myers <joseph@codesourcery.com>
3680 * gcc-interface/misc.c (optimize, optimize_size): Undefine as macros
3681 and define as variables.
3682 (gnat_post_options): Set optimize and optimize_size variables.
3684 2010-09-29 Joel Sherrill <joel.sherrill@oarcorp.com>
3686 * g-socket.adb: Move pragma to disable warnings in case multiple errnos
3687 are not defined by target.
3689 2010-09-29 Eric Botcazou <ebotcazou@adacore.com>
3691 * gcc-interface/utils.c (handle_leaf_attribute): Fix long line.
3693 2010-09-28 Richard Henderson <rth@redhat.com>
3695 * gcc-interface/misc.c (gnat_eh_personality): Use
3696 targetm.except_unwind_info.
3698 2010-09-28 Jan Hubicka <jh@suse.cz>
3700 * gcc-interface/utils.c (handle_leaf_attribute): New function.
3701 (gnat_internal_attribute_tables): Add leaf.
3703 2010-09-22 Joseph Myers <joseph@codesourcery.com>
3705 * gcc-interface/lang.opt (-all-warnings, -include-barrier,
3706 -include-directory, -include-directory=, -no-standard-includes,
3707 -no-standard-libraries): New.
3709 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
3711 * gcc-interface/decl.c (gnat_to_gnu_entity): Replace calls to
3712 build_array_type with calls to build_nonshared_array_type.
3713 (substitute_in_type): Likewise.
3714 * gcc-interface/misc.c (LANG_HOOKS_HASH_TYPES): Delete.
3715 (LANG_HOOKS_TYPE_HASH_EQ): Define.
3716 (gnat_post_options): Add 'static' keyword.
3717 (gnat_type_hash_eq): New static function.
3718 * gcc-interface/utils.c (fntype_same_flags_p): New function.
3719 (create_subprog_type): Call it.
3720 (create_index_type): Call build_nonshared_range_type and tidy up.
3721 (create_range_type): Likewise.
3722 * gcc-interface/gigi.h (fntype_same_flags_p): Declare.
3724 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3726 * gcc-interface/trans.c (gnat_pushdecl): Do not do anything special
3728 (end_subprog_body): If the body is a BIND_EXPR, make its associated
3729 block the top-level one.
3730 (build_function_stub): Build a statement group for the whole function.
3731 * gcc-interface/utils.c (Subprogram_Body_to_gnu): If copy-in/copy-out
3732 is used, create the enclosing block early and process first the OUT
3735 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3737 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>: Do
3738 not generate debug info for individual enumerators.
3740 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3742 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Use record
3743 type instead of enumeral type as the dummy type built for the template
3744 type of fat pointers.
3746 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3748 * gcc-interface/gigi.h (get_elaboration_procedure): Declare.
3749 (gnat_zaplevel): Likewise.
3750 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force global
3751 binding level for an external constant.
3752 <E_Constant>: Force the local context and create a fake scope before
3753 translating the defining expression of an external constant.
3754 <object>: Treat external constants at the global level explicitly for
3755 renaming declarations.
3756 (elaborate_expression_1): Force the variable to be static if the
3757 expression is global.
3758 * gcc-interface/trans.c (get_elaboration_procedure): New function.
3759 (call_to_gnu): Use it.
3760 (gnat_to_gnu): Likewise.
3761 <N_Object_Declaration>: Do not test Is_Public to force the creation of
3762 an initialization variable.
3763 (add_decl_expr): Discard the statement if the declaration is external.
3764 * gcc-interface/utils.c (gnat_pushdecl): Do not put the declaration in
3765 the current block if it is external.
3766 (create_var_decl_1): Do not test Is_Public to set TREE_STATIC.
3767 (gnat_zaplevel): New global function.
3769 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3771 * gcc-interface/decl.c (gnat_to_gnu_entity): Explicitly test _LEVEL
3772 variables against zero in all cases.
3773 (rest_of_type_decl_compilation): Likewise.
3774 * gcc-interface/trans.c (gigi): Pass properly typed constants to
3776 (call_to_gnu): Fix formatting.
3777 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
3778 (Exception_Handler_to_gnu_zcx): Likewise.
3779 (gnat_to_gnu) <N_Object_Declaration>: Short-circuit handling of
3781 expressions in presence of a freeze node.
3783 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3785 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Look into
3786 expressions for external constants that are aggregates.
3787 * gcc-interface/utils2.c (build_simple_component_ref): If the field
3788 is an inherited component in an extension, look through the extension.
3790 2010-09-10 Vincent Celier <celier@adacore.com>
3792 * projects.texi: Add documentation for package extensions
3793 Add some documentation for attributes Leading_Library_Options and
3794 Linker'Leading_Switches.
3796 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3798 * exp_util.adb (Expand_Subtype_From_Expression): When expansion is
3799 disabled, compute subtype for all string types.
3801 2010-09-10 Robert Dewar <dewar@adacore.com>
3803 * gnat_ugn.texi: Add documentation for -gnatw.s/S
3804 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
3805 Component_Size): Implement warning on overriden size clause.
3806 (Analyze_Record_Representation_Clause): Implement warning on overriden
3808 * sem_warn.ads, sem_warn.adb (Warn_On_Overridden_Size): New flag
3810 * ug_words: Add entries for -gnatw.s/S.
3811 * vms_data.ads, usage.adb: Add line for -gnatw.s/-gnatw.S.
3812 * gcc-interface/Make-lang.in: Update dependencies.
3814 2010-09-10 Vincent Celier <celier@adacore.com>
3816 * prj-dect.adb (Parse_Package_Declaration): Allow a package to extend
3817 a package with the same name from an imported or extended project.
3818 * prj-proc.adb (Process_Declarative_Items): Process package extensions
3820 2010-09-10 Bob Duff <duff@adacore.com>
3822 * exp_ch6.adb (Expand_Call): Do not perform a null_exclusion check on
3825 2010-09-10 Robert Dewar <dewar@adacore.com>
3827 * sem.adb: Minor reformatting.
3829 2010-09-10 Bob Duff <duff@adacore.com>
3831 * s-os_lib.ads, g-expect.ads: Add comments.
3833 2010-09-10 Robert Dewar <dewar@adacore.com>
3835 * exp_ch5.adb: Minor reformatting.
3837 2010-09-10 Thomas Quinot <quinot@adacore.com>
3839 * scos.ads: Add comments.
3841 2010-09-10 Vincent Celier <celier@adacore.com>
3843 * gnatcmd.adb (Get_Closure): Remove useless invocation of Close.
3845 2010-09-10 Hristian Kirtchev <kirtchev@adacore.com>
3847 * exp_ch7.adb, exp_ch6.adb (Expand_Call): Establish a transient scope
3848 for a controlled build-in-place function call which appears in an
3849 anonymous context. The transient scope ensures that the intermediate
3850 function result is cleaned up after the master is left.
3851 (Make_Build_In_Place_Call_In_Anonymous_Context): Remove the creation
3852 of the transient scope. This is now done in Exand_Call which covers
3853 additional cases other than secondary stack release.
3855 2010-09-10 Arnaud Charlet <charlet@adacore.com>
3857 * sem.adb (Do_Unit_And_Dependents): Add guard.
3859 2010-09-10 Robert Dewar <dewar@adacore.com>
3861 * exp_ch5.adb: Update comments.
3862 * exp_dist.adb: Minor reformatting.
3864 2010-09-10 Robert Dewar <dewar@adacore.com>
3866 * sem_ch13.adb (Check_Record_Representation_Clause): Implement record
3868 * sem_warn.ads, sem_warn.adb (Warn_On_Record_Holes): New warning flag.
3869 * usage.adb: Add lines for -gnatw.h/H
3870 * gnat_ugn.texi: Add documentation for J519-010
3871 Warn on record holes/gaps
3872 * ug_words: Add entries for -gnatw.h/-gnatw.H
3873 * vms_data.ads: Add entries for [NO]AVOIDGAPS
3875 2010-09-10 Gary Dismukes <dismukes@adacore.com>
3877 * sem_ch6.adb: Update comment.
3879 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3881 * sem_ch3.adb (Build_Derived_Private_Type): Mark generated declaration
3882 of full view analyzed after analyzing the corresponding record
3883 declaration, to prevent spurious name conflicts with original
3886 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
3888 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): In the VM case,
3889 just issue a warning, but continue with the normal processing.
3891 2010-09-10 Robert Dewar <dewar@adacore.com>
3893 * exp_attr.adb, prj-nmsc.adb, sem_ch4.adb, sem_res.adb: Minor
3896 2010-09-10 Thomas Quinot <quinot@adacore.com>
3898 * exp_dist.adb (Build_From_Any_Call, Build_To_Any_Call,
3899 Build_TypeCode_Call): For a subtype inserted for the expansion of a
3900 generic actual type, go to the underlying type of the original actual
3903 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3905 * exp_ch5.adb (Expand_Assign_Array_Loop): In CodePeer mode, place a
3906 guard around the increment statement, to prevent an off-by-one-value
3907 on the last iteration.
3909 2010-09-10 Vincent Celier <celier@adacore.com>
3911 * sem_aggr.adb, exp_prag.adb, sem_ch3.adb, exp_attr.adb,
3912 sem_res.adb, sem_attr.adb, sem_elab.adb, sem_ch4.adb, exp_disp.adb,
3913 exp_aggr.adb, exp_dist.adb: Change all mentions of "at run-time" to
3914 "at run time" in comments and error/warning messages.
3916 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3918 * exp_cg.adb: Handle properly bodies without specs.
3920 2010-09-10 Emmanuel Briot <briot@adacore.com>
3922 * prj-nmsc.adb (Find_Source_Dirs): When a source directory is not
3923 present, and the user requested to either ignore this or display a
3924 warning (as opposed to an error), we still need to register the
3927 2010-09-10 Robert Dewar <dewar@adacore.com>
3929 * errout.adb: Remove tests of Parsing_Main_Subunit, since this test is
3930 now done in In_Extended_Main_Source_Unit.
3931 * errout.ads (Compiler_State[_Type]): Moved from Errout to Lib
3932 (Parsing_Main_Subunit): Moved from Errout to Lib and renamed
3933 as Parsing_Main_Extended_Source.
3934 * frontend.adb: Set Parsing_Main_Extended_Source True for parsing main
3936 * lib-load.adb (Load_Unit): Add PMES parameter
3937 Set PMES appropriately in all calls to Load_Unit
3938 * lib-load.ads (Load_Unit): Add PMES parameter
3939 * lib.adb (In_Extended_Main_Source_Unit): When called with
3940 Compiler_State set to Parsing, test new flag
3941 Compiling_Main_Extended_Source.
3942 * lib.ads (Compiler_State[_Type]): Moved from Errout to Lib
3943 (Parsing_Main_Subunit): Moved from Errout to Lib and renamed
3944 as Parsing_Main_Extended_Source
3945 * par-load.adb (Load): Set PMES properly in call to Load_Unit
3947 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3949 * exp_cg.adb: Use proper entity to handle overloads.
3950 * sem_res.adb (Check_Parameterless_Call): An operator node without
3951 actuals cannot be a call, and must be treated as a string.
3953 2010-09-10 Robert Dewar <dewar@adacore.com>
3955 * frontend.adb: Minor reformatting.
3957 2010-09-10 Robert Dewar <dewar@adacore.com>
3959 * par-ch4.adb (P_Conditional_Expression): Use P_Condition for condition
3960 * par-ch5.adb (P_Condition): Move from body to spec
3961 * par.adb (Ch5.P_Condition): Move from body to spec
3963 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3965 * exp_cg.adb (Write_Call_Info): If a type that has been registered in
3966 the call table is private, use its full view to generate information
3969 2010-09-10 Jose Ruiz <ruiz@adacore.com>
3971 * exp_cg.adb (Is_Predefined_Dispatching_Operation): When trying the
3972 pattern matching to detect predefined primitive operations take into
3973 account that there can be an extra suffix related to body-nested
3976 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3978 * s-pooglo.ads: Add overriding indicators.
3980 2010-09-10 Vincent Celier <celier@adacore.com>
3982 * vms_data.ads: Add new GNAT BIND qualifiers /32_MALLOC (for -H32) and
3983 /64_MALLOC (for -H64).
3985 2010-09-10 Robert Dewar <dewar@adacore.com>
3987 * errout.adb (Error_Msg_Internal): Test Parsing_Main_Subunit flag
3988 (Error_Msg_NW): Test Parsing_Main_Subunit flag
3989 * errout.ads (Parsing_Main_Subunit): New flag
3990 * lib-load.adb (Load_Unit): Set Parsing_Main_Subunit flag
3991 * par-ch6.adb: Minor style fix (remove redandant parentheses)
3992 * par-ch9.adb: Minor style fix (remove redundant parens)
3993 * par-load.adb: (Load): Deal with setting Parsing_Main_Subunit
3995 2010-09-10 Vincent Celier <celier@adacore.com>
3997 * make.adb (Create_Binder_Mapping_File): Remove procedure. Replaced by
3998 function of the same name in Makeutl.
3999 (Gnatmake): Call function Create_Binder_Mapping_File in Makeutl, instead
4000 of removed procedure when creating a binder mapping file.
4001 * makeutl.adb (Create_Binder_Mapping_File): New function. Was a
4003 * makeutl.ads (Create_Binder_Mapping_File): New function
4005 2010-09-10 Jose Ruiz <ruiz@adacore.com>
4007 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Add the "__" scope
4008 separator when trying the pattern matching to detect predefined
4009 primitive operations.
4011 2010-09-10 Robert Dewar <dewar@adacore.com>
4013 * bindgen.adb, atree.adb: Minor reformatting.
4015 2010-09-10 Ben Brosgol <brosgol@adacore.com>
4017 * ug_words, gnat_ugn.texi: Revised "Transitioning to 64-Bit GNAT for
4020 2010-09-10 Doug Rupp <rupp@adacore.com>
4022 * bindgen.adb: Minor comment fix for -H switch.
4024 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4026 * exp_cg.adb (Register_CG_Node): Determine enclosing subprogram or
4027 library unit now, by traversing tree before context is expanded.
4028 (Write_Call_Info): Use enclosing unit name directly.
4029 * exp_ch9.adb (Expand_N_Accept_Statement): Attach generated block to
4030 tree earlier, to ensure that subsequent declarations are analyzed in a
4031 connected structure.
4032 * exp_intr.adb (Expand_Unc_Deallocation): Ditto for generated statement
4035 2010-09-10 Robert Dewar <dewar@adacore.com>
4037 * symbols-processing-vms-alpha.adb: Minor reformatting.
4039 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
4041 * bindgen.adb (Gen_Adainit_Ada): In .NET, don't call
4042 __gnat_install_handler in case the binder is called with -n.
4044 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4046 * exp_ch6.adb (Make_Build_In_Place_In_Object_Declaration): Use proper
4047 sloc for renaming declaration and set Comes_From_Source properly to
4048 ensure that references are properly generated for an object declaration
4049 that is built in place.
4051 2010-09-10 Tristan Gingold <gingold@adacore.com>
4053 * symbols-processing-vms-alpha.adb: Allow gnatsym to work as a cross
4055 * gcc-interface/Make-lang.in: Install gnatsym when cross compiling.
4056 * gcc-interface/Makefile.in: gnat.hlp is now generated by
4059 2010-09-10 Bob Duff <duff@adacore.com>
4061 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): For things like ""X(J)
4062 := ...;", remove side effects from the right-hand side, because they
4063 might affect the value of the left-hand side, but the left-hand side is
4064 first READ (so we can do shifting and masking) and then written back,
4065 which would cause the side effects to be incorrectly overwritten.
4067 2010-09-10 Robert Dewar <dewar@adacore.com>
4069 * sem_ch4.adb: Minor reformatting.
4070 * exp_ch6.adb: Add comment on testing limited on full type
4071 * gnat_rm.texi: Add documentation on Pure_Function.
4073 2010-09-10 Vincent Celier <celier@adacore.com>
4075 * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
4076 as a source of another project and of another language.
4078 2010-09-10 Robert Dewar <dewar@adacore.com>
4080 * exp_ch3.adb (Expand_N_Object_Declaration): Defend against previous
4082 * freeze.adb (Check_Unsigned_Type): Ditto.
4083 * sem_aggr.adb (Resolve_Aggr_Expr): Ditto.
4084 * sem_ch3.adb (Convert_Scalar_Bounds): Ditto.
4085 (Set_Scalar_Range_For_Subtype): Ditto.
4086 * sem_eval.adb (Subtypes_Statically_Match): Ditto.
4088 2010-09-10 Robert Dewar <dewar@adacore.com>
4090 * repinfo.adb (List_Type_Info): List Small and Range for fixed-point
4092 * sprint.adb (Write_Ureal_With_Col_Check_Sloc): Use square brackets
4093 rather than parens for fixed constants.
4094 * sprint.ads: Use square brackets rather than parens for fixed constants
4095 * urealp.adb (UR_Write): Use square brackets rather than parens
4096 (UR_Write): Add Brackets argument
4097 (UR_Write): Add many more special cases to output literals
4098 * urealp.ads (UR_Write): Use square brackets rather than parens
4099 (UR_Write): Add Brackets argument
4101 2010-09-10 Robert Dewar <dewar@adacore.com>
4103 * sem_ch4.adb: Minor reformatting.
4105 2010-09-10 Richard Guenther <rguenther@suse.de>
4107 * gcc-interface/utils.c (create_index_type): Use build_range_type.
4109 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4111 * vms_cmds.ads: New.
4113 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
4115 * exp_dbug.ads: Mention enhanced encoding for array types.
4117 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
4119 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Size clause are
4120 unsupported in VM targets. Display a warning in this case.
4122 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4124 * sprint.adb (Sprint_Node_Actual, case N_Derived_Type_Definition): Do
4125 not reset Sloc when printing keyword "new".
4127 2010-09-10 Vincent Celier <celier@adacore.com>
4129 * gnatcmd.adb (GNATCmd): Put the command line in environment variable
4130 GNAT_DRIVER_COMMAND_LINE.
4132 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4134 * sem.adb (Do_Unit_And_Dependents): if Withed_Body is set on a context
4135 clause, process the body at once.
4137 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4139 * sem_res.adb (Resolve_Type_Conversion): Do not warn on a redundant
4140 conversion is the expression is a qualified expression used to
4141 disambiguate a function call.
4143 2010-09-10 Vincent Celier <celier@adacore.com>
4145 * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
4146 as a source of another project and of another language.
4148 2010-09-10 Robert Dewar <dewar@adacore.com>
4150 * prj-util.adb: Minor reformatting.
4152 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
4154 * exp_disp.adb: Minor reformatting.
4156 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4158 * sem_prag.adb (Analyze_Pragma): Ignore Inline_Always pragma in
4161 2010-09-10 Thomas Quinot <quinot@adacore.com>
4163 * sem_res.adb: Minor reformatting.
4164 * exp_ch9.adb, rtsfind.ads, exp_ch4.adb, exp_ch3.adb: Do not hardcode
4165 magic constants for task master levels (instead, reference
4166 named numbers from System.Tasking).
4168 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
4170 * gnatvsn.ads (Ver_Prefix): New constant string.
4171 * bindgen.adb (Gen_Output_File_Ada): Use it in lieu of hardcoded value.
4172 (Gen_Output_File_C): Likewise.
4173 * g-comver.adb (Ver_Prefix): Add cross-reference to Gnatvsn.Ver_Prefix
4176 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4178 * sem.adb (Walk_Library_Items): Do not traverse children of the main
4179 unit, to prevent spurious circularities in the walk order.
4180 (Depends_On_Main): Use elsewhere to prevent circularities when the body
4181 of an ancestor of the main unit depends on a child of the main unit.
4183 2010-09-10 Robert Dewar <dewar@adacore.com>
4185 * gnatlink.adb, prj-ext.adb, prj-util.adb, s-tporft.adb,
4186 sem_ch3.adb: Minor reformatting.
4188 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4190 * sem_ch3.adb (Derive_Subprograms): An interface primitive operation
4191 that is a renaming must be derived like any other primitive operation,
4192 the renamed operation is not relevant to the derivation.
4194 2010-09-10 Robert Dewar <dewar@adacore.com>
4196 * sem_aux.ads: Add comment for Is_Inherently_Limited_Type.
4197 * checks.adb: Minor reformatting.
4199 2010-09-10 Robert Dewar <dewar@adacore.com>
4201 * gnat_ugn.texi: Add section on intent of style checking options.
4203 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4205 * xref_lib.adb (Get_Full_Type): Fix handling of 'a' char.
4207 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4209 * sem_ch3.adb: Improve error message on derivation from class-wide type
4211 2010-09-10 Steve Baird <baird@adacore.com>
4213 * gnat1drv.adb (Adjust_Global_Switches): Enable Expression_With_Actions
4214 generation when Generate_SCIL is True.
4216 2010-09-10 Geert Bosch <bosch@adacore.com>
4218 * gnatlink.adb (Check_ Existing_Executable): New procedure for checking
4219 validity of executable name and removing any existing executable
4220 (Gnatlink): Call Check_Existing_Executable.
4222 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4224 * s-tporft.adb, s-taskin.ads (Register_Foreign_Thread): Move
4225 initialization of Task_Alternate_Stack here, cleaner since in case of
4226 ranvescar, Restricted_Ada_Task_Control_Block is not initialized
4229 2010-09-10 Thomas Quinot <quinot@adacore.com>
4231 * s-fileio.adb, a-dirval.adb: Minor reformatting.
4233 2010-09-10 Emmanuel Briot <briot@adacore.com>
4235 * prj-util.adb (Executable_Of): Fix CE when the project does not
4236 contain a Builder package.
4238 2010-09-10 Vincent Celier <celier@adacore.com>
4240 * prj-ext.adb (Initialize_Project_Path): Add <prefix>/lib/gpr/<target>
4241 to the project path, if Prefix and Target_Name are defined.
4242 * prj-tree.ads (Project_Node_Tree_Data): New component Target_Name
4244 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4246 * checks.adb (Ensure_Valid): If the expression is a boolean expression
4247 or short-circuit operation, do no emit a validity check: only the
4248 elementary operands of the expression need checking.
4250 2010-09-10 Ben Brosgol <brosgol@adacore.com>
4252 * gnat_rm.texi: Document Short_Descriptors.
4254 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4256 * s-taprop-linux.adb, s-taskin.ads (Task_Alternate_Stack): Default
4257 initialize to Null_Address.
4258 (Enter_Task): Do not set up an alternate stack for foreign threads.
4260 2010-09-10 Robert Dewar <dewar@adacore.com>
4262 * opt.adb (Short_Descriptors): New flag
4263 (Short_Descriptors_Config): New flag
4264 * opt.ads (Short_Descriptors): New flag
4265 (Short_Descriptors_Config): New flag
4266 * par-prag.adb: Add dummy entry for Short_Descriptors pragma
4267 * sem_prag.adb (Set_Mechanism_Value): Deal with Short_Descriptors.
4268 (Analyze_Pragma): Implement Short_Descriptors pragma
4269 * snames.ads-tmpl: Add entry for Short_Descriptors pragma
4271 2010-09-10 Emmanuel Briot <briot@adacore.com>
4273 * prj-util.adb, prj-util.ads (Executable_Of): Take into account the
4274 project's Executable_Suffix.
4276 2010-09-10 Robert Dewar <dewar@adacore.com>
4278 * g-pehage.ads: Minor reformatting
4280 * gnat_ugn.texi: Clarifying comment on -gnatyc
4281 * exp_ch6.adb (Expand_N_Subprogram_Body): Reset Is_Pure if limited
4284 2010-09-10 Tristan Gingold <gingold@adacore.com>
4286 * Make-generated.in (gnat.hlp): New rule.
4288 2010-09-10 Emmanuel Briot <briot@adacore.com>
4290 * prj-util.adb, prj-util.ads (Executable_Of): New parameter
4293 2010-09-10 Robert Dewar <dewar@adacore.com>
4295 * einfo.adb: Minor code cleanup: Add assertion to
4296 Set_Corresponding_Protected_Entry.
4298 2010-09-10 Bob Duff <duff@adacore.com>
4300 * g-pehage.ads, g-pehage.adb (Produce): Add a new flag to allow sending
4301 the output to standard output.
4303 2010-09-09 Vincent Celier <celier@adacore.com>
4305 * gnat_ugn.texi: Add documentation for new gnatmake switch
4307 * make.adb (Map_File): New global variable to store the value of switch
4309 (Gnatmake): Add switch -M to gnatlink if switch --create-map-file has
4311 (Scan_Make_Arg): Recognize switch --create-map-file
4312 * makeutl.ads (Create_Map_File_Switch): New constant string for new
4313 gnatmake and gprbuild switch --create-map-file.
4315 2010-09-09 Robert Dewar <dewar@adacore.com>
4317 * sinput-p.ads: Minor comment update.
4319 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4321 * s-tpobop.adb, s-taenca.adb (Wait_For_Completion_With_Timeout): Reset
4322 Entry_Call.State if needed so that the call is marked as cancelled by
4323 Check_Pending_Actions_For_Entry_Call.
4324 (Timed_Protected_Entry_Call): Adjust calls to Defer/Under_Abort, since
4325 this procedure may be called from a controlled operation
4326 (Initialize/Finalize).
4328 2010-09-09 Vadim Godunko <godunko@adacore.com>
4330 * impunit.adb: Correct spelling of package's name in the comment.
4332 2010-09-09 Robert Dewar <dewar@adacore.com>
4334 * gnatcmd.adb, gnatlink.adb, sem_ch12.adb, sem_eval.adb, sinput-p.adb:
4337 2010-09-09 Robert Dewar <dewar@adacore.com>
4339 * impunit.adb: Add entry for a-izteio.
4340 * checks.adb: Add comment.
4341 * debug.adb, exp_disp.adb: Minor reformatting.
4342 * exp_dbug.ads: Minor reformatting throughout (pack block comments).
4344 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4346 * sem_eval.adb (Is_Same_Value): Two occurrences of the same
4347 discriminant cannot be assumed to be the same value because they may
4348 refer to bounds of a component of two different instances of a
4351 2010-09-09 Gary Dismukes <dismukes@adacore.com>
4353 * checks.adb (Apply_Arithmetic_Overflow_Check): When converting the
4354 operands of an operator to the type of an enclosing conversion, rewrite
4355 the operator so the conversion can't be flagged as redundant.
4356 Remove useless assignments to Typ and Rtyp.
4358 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
4360 * gnat_ugn.texi: Fix another long line.
4362 2010-09-09 Bob Duff <duff@adacore.com>
4364 * sem_warn.adb (Output_Reference_Error): Don't warn for renames read
4367 2010-09-09 Matthew Heaney <heaney@adacore.com>
4369 * a-convec.adb, a-coinve.adb (Clear, Delete, Delete_Last, Finalize,
4370 Merge, Insert, Insert_Space, Move, Reserve_Capacity, Generic_Sorting,
4371 Replace_Element, Reverse_Elements, Swap): Change exception message to
4372 correctly indicate kind of tampering (cursor or element).
4373 * a-cdlili.adb, a-cidlli.adb (Clear, Delete, Delete_First, Delete_Last,
4374 Merge, Generic_Sorting, Insert, Move, Reverse_Elements, Splice,
4375 Swap_Links, Replace_Element, Swap): Ditto.
4376 * a-coorse.adb, a-ciorse.adb (Include, Replace, Replace_Element): Ditto
4377 * a-coorma.adb, a-ciorma.adb (Include, Replace, Replace_Element): Ditto
4378 * a-coormu.adb, a-ciormu.adb (Replace_Element): Ditto
4379 * a-chtgke.adb (Delete_Key_Sans_Free, Generic_Conditional_Insert,
4380 Generic_Replace_Element): Ditto
4381 * a-chtgop.adb (Clear, Move, Reserve_Capacity): Ditto
4382 * a-cohama.adb, a-cihama.adb (Delete, Include, Replace,
4383 Replace_Element): Ditto.
4384 * a-cohase.adb, a-cihase.adb (Delete, Difference, Intersection,
4385 Symmetric_Difference, Union, Include, Replace): Ditto
4387 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4389 * sprint.adb (Write_Id): If the parent node is an expanded name, check
4390 that its entity_or_associated_node is an entity before writing it out.
4391 * exp_disp.adb (Make_Tags); if a type is declared in C++ and has no
4392 constructors, there is no need for a dispatch table pointer because the
4393 table is fully inherited from the C++ code.
4395 2010-09-09 Thomas Quinot <quinot@adacore.com>
4397 * projects.texi: Fix wrong identifiers on package end lines in project
4399 * exp_ch6.adb: Minor reformatting.
4401 2010-09-09 Tristan Gingold <gingold@adacore.com>
4403 * gnatcmd.adb, vms_conv.ads: Extract Command_Type.
4405 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
4407 * gnat_ugn.texi: Fix description of -O3 optimization level.
4409 2010-09-09 Yannick Moy <moy@adacore.com>
4411 * a-cihama.adb, a-cohama.adb: Fix comments.
4413 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4415 * i-cexten.ads: Add comments.
4416 (Signed_128): New type, used by some C bindings.
4417 * debug.adb: Update comment.
4419 2010-09-09 Sergey Rybin <rybin@adacore.com>
4421 * gnat_ugn.texi: For ASIS tools (gnatpp, gnatcheck, gnatelim,
4422 gnatmetric and gnatstub) add a note that '-gnat05' should be used if
4423 the tool should process Ada 2005 sources.
4425 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4427 * sem_ch12.adb (Remove_Parent): If the scope containing the child
4428 instance is a block, examine the enclosing scope to determine if it is
4431 2010-09-09 Doug Rupp <rupp@adacore.com>
4433 * sem_prag.adb (pragma Ident): Pass --identification= vice
4435 * gnatlink.adb (Linker_Options): Look for --identification= vice
4438 2010-09-09 Gary Dismukes <dismukes@adacore.com>
4440 * exp_attr.adb (Expand_N_Attribute_Reference, case Attribute_Old): When
4441 inserting and analyzing the object declaration for the temporary object
4442 created to hold a 'Old value, push the scope for the subprogram where
4443 the object is inserted, so that its Scope (and that of related objects)
4444 will be set properly.
4446 2010-09-09 Vincent Celier <celier@adacore.com>
4448 * prj.adb (Get_Object_Directory): Return object directory display name
4449 * adaint.c (__gnat_get_file_names_case_sensitive): When environment
4450 variable GNAT_FILE_NAME_CASE_SENSITIVE has a value of "0" or "1",
4451 return this value, otherwise return the default for the platform.
4453 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4455 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
4456 dependencies. Remove handling of gnatlbr.
4457 Do not remove s-stratt-xdr for the run-time when installing.
4459 2010-09-09 Robert Dewar <dewar@adacore.com>
4461 * sem_attr.adb: Minor reformatting.
4463 2010-09-09 Thomas Quinot <quinot@adacore.com>
4465 * socket.c (__gnat_socket_ioctl): On Darwin, the req parameter is an
4466 unsigned long, not an int.
4468 2010-09-09 Vincent Celier <celier@adacore.com>
4470 * make.adb, mlib-prj.adb, prj.adb, prj-nmsc.adb, mlib-tgt.adb,
4471 prj-conf.adb, prj-env.adb: Use Display_Name instead of Name whenever
4472 we are not checking for equality of path or file names.
4474 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4476 * exp_util.adb (Remove_Side_Effects): If the expression is a packed
4477 array reference, reset the Analyzed flag so that it is properly
4478 expanded when the resulting object declaration is analyzed.
4480 2010-09-09 Vincent Celier <celier@adacore.com>
4482 * sinput-p.adb (Source_File_Is_Subunit): Return False if X is
4485 2010-09-09 Ramon Fernandez <fernandez@adacore.com>
4487 * sysdep.c: The wrSbc8548 BSP in MILS doesn't know anything about the
4488 VX_SPE_TASK option, so disable it.
4490 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4492 * sem.adb (Walk_Library_Items): Traverse context of subunits of the
4494 (Is_Subunit_Of_Main): Handle null nodes properly.
4496 2010-09-09 Robert Dewar <dewar@adacore.com>
4498 * par-ch2.adb: Update comments.
4500 2010-09-09 Ben Brosgol <brosgol@adacore.com>
4502 * gnat_rm.texi: Minor wordsmithing of section on pragma Ordered.
4504 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4506 * par-ch2.adb (Scan_Pragma_Argument_Association): In CodePeer mode,
4507 do not generate an error for compatibility with legacy code.
4508 ignored when generating SCIL.
4509 * sem_attr.adb (Resolve_Attribute): Ignore AI-229 in CodePeer mode.
4511 2010-09-09 Thomas Quinot <quinot@adacore.com>
4513 * s-strxdr.adb, gnat_rm.texi, s-stratt-xdr.adb, s-stratt.ads: Rename
4514 s-strxdr.adb to s-stratt-xdr.adb
4516 2010-09-09 Robert Dewar <dewar@adacore.com>
4518 * ali-util.adb (Obsolescent_Check): Removed.
4519 * gprep.adb (Obsolescent_Check): Removed.
4520 Remove Obsolescent_Check parameter in Scng instantiation
4521 * prj-err.adb (Obsolescent_Check): Removed.
4522 * prj-err.ads (Obsolescent_Check): Removed.
4523 Remove Obsolescent_Check parameter in Scng instantiation
4524 * scans.ads (Based_Literal_Uses_Colon): New flag
4525 * scn.adb (Obsolscent_Check_Flag): Removed
4526 (Obsolscent_Check): Removed
4527 (Set_Obsolescent_Check): Removed
4528 (Post_Scan): Add handling for obsolescent features
4529 * scn.ads (Obsolscent_Check): Removed
4530 (Set_Obsolescent_Check): Removed
4531 (Post_Scan): Can no longer be inlined
4532 Remove Obsolescent_Check from instantiation of Scng
4533 * scng.adb (Nlit): Set Based_Literal_Uses_Colon
4534 (Nlit): Remove handling of obsolescent check
4535 (Scan, case '%'): Remove handling of obsolescent check
4536 (Scan, case '|'): Call Post_Scan
4537 (Scan, case '!'): Remove handling of obsolescent check, call Post_Scan
4538 * scng.ads Remove Obsolescent_Check argument from Scng generic
4539 (Post_Scan): Now called for Tok_Vertical_Bar
4540 * sinput-l.adb: Remove calls to Set_Obsolescent_Check
4542 2010-09-09 Doug Rupp <rupp@adacore.com>
4544 * gnatlbr.adb: Removed.
4545 * gnat_rm.texi, ug_words, gnat_ugn.texi: Remove mention of gnatlbr.
4547 2010-09-09 Robert Dewar <dewar@adacore.com>
4549 * sem_res.adb (Resolve_Type_Conversion): Catch more cases of redundant
4552 2010-09-09 Vincent Celier <celier@adacore.com>
4554 * gnatlbr.adb: Remove redundant conversions.
4556 2010-09-09 Vincent Celier <celier@adacore.com>
4558 * prj-proc.adb: Minor comment spelling error fix.
4559 * osint.ads (Env_Vars_Case_Sensitive): Use function
4560 Get_Env_Vars_Case_Sensitive, not Get_File_Names_Case_Sensitive to
4563 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4565 * sem_res.adb (Resolve_Equality_Op): Implement Ada2012 rule for
4566 resolution of conditional expressions whose dependent expressions are
4567 anonymous access types.
4569 2010-09-09 Robert Dewar <dewar@adacore.com>
4571 * a-ststio.adb: Minor code reorganization.
4572 * s-direio.adb, prj.adb, prj-nmsc.adb, sem_type.adb: Remove redundant
4574 * types.ads: Minor reformatting.
4575 * binde.adb, vms_conv.adb, gnatls.adb, s-strxdr.adb, uintp.adb: Remove
4576 redundant conversions.
4577 * output.adb: Minor reformatting.
4578 * sem_ch8.adb (Find_Type): Test for redundant base applies to user
4580 * opt.ads: Add pragma Ordered for Verbosity_Level.
4581 * prj.ads: Add pragma Ordered for type Verbosity.
4583 2010-09-09 Vincent Celier <celier@adacore.com>
4585 * osint.adb (Canonical_Case_File_Name): Use procedure To_Lower in
4587 (Canonical_Case_Env_Var_Name): Ditto
4589 2010-09-09 Bob Duff <duff@adacore.com>
4591 * g-pehage.adb (Allocate): Initialize the allocated elements of IT.
4593 2010-09-09 Robert Dewar <dewar@adacore.com>
4595 * cstand.adb: Mark Boolean and Character types as Ordered
4596 * einfo.adb (Has_Pragma_Ordered): New flag
4597 * einfo.ads (Has_Pragma_Ordered): New flag
4598 * g-calend.ads: Mark Day_Name as Ordered
4599 * opt.ads: Mark Ada_Version_Type as Ordered
4600 (Warn_On_Unordered_Enumeration_Type): New flag
4601 * par-prag.adb: Add procdessing for pragma Ordered
4602 * s-ficobl.ads (Read_File_Mode): New subtype
4603 * s-fileio.adb: Use Read_File_Mode instead of explicit ranges
4604 * s-taskin.ads: Mark Entry_Call_State as ordered
4605 * sem_ch3.adb (Build_Derived_Enumeration_Type): Inherit
4607 * sem_ch6.ads: Mark Conformance_Type as Ordered
4608 * sem_prag.adb: Implement pragma Ordered
4609 * sem_res.adb (Bad_Unordered_Enumeration_Reference): New function
4610 (Resolve_Comparison_Op): Diagnose unordered comparison
4611 (Resolve_Range): Diagnose unordered range
4612 * sem_warn.adb (Warn_On_Unordered_Enumeration_Type): New flag (from
4614 * snames.ads-tmpl: Add entry for pragma Ordered
4615 * style.ads (Check_Enumeration_Subrange): Removed
4616 * styleg.adb (Check_Enumeration_Subrange): Removed
4617 * styleg.ads (Check_Enumeration_Subrange): Removed
4618 * stylesw.adb: Remove handling of -gnatyE switch
4619 * stylesw.ads: (Style_Check_Enumeration_Subranges): Removed
4620 * vms_data.ads: Remove -gnatyE entries
4621 Add -gnatw.u entries
4622 * ug_words: Entries for -gnatw.u and -gnatw.U
4623 * gnat_ugn.texi: Document -gnatw.u/-gnatw.U switches
4624 * gnat_rm.texi: Document pragma Ordered.
4625 * s-tasren.adb: Avoid unnecessary comparison on unordered enumeration.
4626 * s-tpobop.adb: Remove comparison on unordered enumeration type.
4628 2010-09-09 Vincent Celier <celier@adacore.com>
4630 * adaint.c: New function __gnat_get_env_vars_case_sensitive, returns 0
4631 for VMS and Windows, and 1 for all other platforms.
4632 * adaint.h: New function __gnat_get_env_vars_case_sensitive
4633 * osint.ads, osint.adb (Canonical_Case_Env_Var_Name): New procedure.
4634 * prj-ext.adb (Add): Call Canonical_Case_Env_Var_Name instead of
4635 Canonical_Case_File_Name, as we are dealing with environment variables,
4638 2010-09-09 Robert Dewar <dewar@adacore.com>
4640 * sem_util.adb: Minor reformatting
4642 2010-09-09 Vincent Celier <celier@adacore.com>
4644 * vms_data.ads: Add documentation for S_Make_Single.
4646 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4648 * sem_util.adb (Same_Object): include formal parameters.
4650 2010-09-09 Vincent Celier <celier@adacore.com>
4652 * make.adb (Queue): New package implementing a new impementation of the
4653 queue, taking into account the new switch --single-compile-per-obj-dir.
4654 * makeutl.ads (Single_Compile_Per_Obj_Dir_Switch): New constant String
4655 for gnatmake and gprbuild new switch --single-compile-per-obj-dir.
4656 * opt.ads (One_Compilation_Per_Obj_Dir): New Boolean flag, defauted to
4658 * switch-m.adb (Scan_Make_Switches): Take into account new gnatmake
4659 switch --single-compile-per-obj-dir.
4660 * vms_data.ads: Add qualifier SINGLE_COMPILE_PER_OBJ_DIR for gnatmake
4661 switch --single-compile-per-obj-dir.
4662 * gnat_ugn.texi: Add documentation for new gnatmake switch
4663 --single-compile-per-obj-dir.
4665 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4667 * einfo.adb, einfo.ads: Clarify use of Corresponding_Protected_Entry.
4669 2010-09-09 Javier Miranda <miranda@adacore.com>
4671 * sem_ch3.adb (Is_Progenitor): Relocated to sem_type.
4672 (Replace_Type): Code cleanup.
4673 * sem_type.ads, sem_type.adb (Is_Progenitor): Relocated from sem_ch3
4675 2010-09-09 Thomas Quinot <quinot@adacore.com>
4677 * exp_ch8.adb: Minor reformatting.
4679 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4681 * exp_ch9.adb, einfo.adb, einfo.ads: New attribute
4682 Corresponding_Protected_Entry.
4684 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4686 * exp_ch3.adb (Build_Untagged_Equality): Do not set alias of implicit
4687 inequality, it is always rewritten as the negation of the corresponding
4689 * exp_ch8.adb (Expand_N_Subprogram_Renaming): If the subprogram renames
4690 the predefined equality of an untagged record, create a body at the
4691 point of the renaming, to capture the current meaning of equality for
4694 2010-09-09 Robert Dewar <dewar@adacore.com>
4696 * sem.adb, sem_warn.adb: Minor reformatting.
4698 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4700 * sem_ch6.adb: Improve error message on untagged equality.
4701 * sem.adb (Semantics): Include subprogram bodies that act as spec.
4703 2010-09-09 Javier Miranda <miranda@adacore.com>
4705 * sem_ch13.adb, exp_ch13.adb: Undo previous change, unneeded.
4707 2010-09-09 Robert Dewar <dewar@adacore.com>
4709 * sem_ch13.adb, sem_ch6.adb, exp_ch3.adb: Minor reformatting.
4711 2010-09-09 Robert Dewar <dewar@adacore.com>
4713 * einfo.adb (Is_Aggregate_Type): New function.
4714 * einfo.ads (Aggregate_Kind): New enumeration subtype
4715 (Is_Aggregate_Type): New function.
4716 * sem_type.adb (Is_Array_Class_Record_Type): Removed, replaced by
4719 2010-09-09 Robert Dewar <dewar@adacore.com>
4721 * exp_ch11.adb, frontend.adb, sem_attr.adb, sem_ch10.adb, sem_ch3.adb,
4722 sem_ch4.adb, sem_ch9.adb, sem_res.adb: Use Restriction_Check_Needed
4724 * restrict.ads, restrict.adb: Ditto.
4725 (Restriction_Check_Needed): New function
4727 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4729 * exp_ch9.ads (Find_Master_Scope): New function, extracted from
4730 Build_Master_Entity, to find the proper scope for the master entity of
4731 a type that may contain tasks, in the presence of transient scopes.
4732 * exp_ch9.adb (Build_Master_Entity) Use new function.
4733 * exp_ch3.adb (Build_Class_Wide_Master): ditto.
4735 2010-09-09 Vincent Celier <celier@adacore.com>
4737 * prj-attr.adb: Add new attributes Leading_Library_Options and
4738 Linker'Leading_Switches.
4739 * snames.ads-tmpl: Add new standard names Leading_Library_Options and
4742 2010-09-09 Javier Miranda <miranda@adacore.com>
4744 * sem_ch3.adb (Derive_Subprogram): The code that checks if a
4745 dispatching primitive covers some interface primitive is incomplete.
4746 Replace such code by the invocation of a new subprogram that provides
4748 * sem_ch6.ads (Is_Interface_Conformant): Add missing documentation.
4749 * sem_ch6.adb (Check_Missing_Return): Minor reformating
4750 (Check_Convention): Complete if-statement conditition when reporting
4751 errors (to avoid assertion failure).
4752 * sem_ch13.adb (Make_Null_Procedure_Specs): This routine was previously
4753 located in exp_ch3. Relocated inside Analyze_Freeze_Entity.
4754 (Analyze_Freeze_Entity): Invoke routine that adds the spec of non
4755 overridden null interface primitives.
4756 * sem_type.adb (Is_Ancestor): If the parent of the partial view of a
4757 private type is an interface then use the parent of its full view to
4758 climb to its ancestor type.
4759 * sem_disp.ads, sem_disp.adb (Covers_Some_Interface): New subprogram.
4760 (Check_Dispatching_Operation): Extend assertion to handle wrappers of
4761 null interface primitives.
4762 (Is_Null_Interface_Primitive): New subprogram.
4763 * exp_ch3.adb (Make_Null_Procedure_Specs): Removed.
4764 (Expand_Freeze_Record_Type): Do not generate specs of null interface
4765 subprograms because they are now generated by Analyze_Freeze_Entity.
4767 2010-09-09 Robert Dewar <dewar@adacore.com>
4769 * a-calfor.adb, sem_ch3.adb: Minor reformatting.
4771 2010-09-09 Robert Dewar <dewar@adacore.com>
4773 * bindgen.adb (Gen_Restrictions_Ada): Avoid explicit enumeration ranges
4774 (Gen_Restrictions_C): Avoid explicit enumeration ranges
4775 (Set_String_Replace): New procedure
4776 * casing.ads (Known_Casing): New subtype declaration
4777 * prj-attr.ads (All_Case_Insensitive_Associative_Array): New subtype
4779 * prj-dect.adb (Parse_Attribute_Declaration): Avoid enumeration range
4780 * prj-nmsc.adb (Check_Naming): Avoid unnecessary enumeration range
4781 * prj-strt.adb (Attribute_Reference): Avoid enumeration range test
4782 * prj.adb (Known_Casing): Moved to Casing spec (avoid enum range)
4783 * sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order): Avoid enumeration
4785 * sem_res.adb (Resolve_Range): Check for enumeration subrange style
4787 * sem_type.adb (Is_Array_Class_Record_Type): New.
4788 * style.ads (Check_Enumeration_Subrange): New procedure
4789 * styleg.adb (Check_Enumeration_Subrange): New procedure
4790 * styleg.ads (Check_Enumeration_Subrange): New procedure
4791 * stylesw.adb Add handling for Style_Check_Enumeration_Subranges
4792 * stylesw.ads (Style_Check_Enumeration_Subranges): New flag
4793 * usage.adb: Add line for -gnatyE
4794 * vms_data.ads: Add entries for [NO]ENUMERATION_RANGES
4795 Add missing entry for NOBOOLEAN_OPERATORS
4796 * gnat_ugn.texi: Add documentation for -gnatyE
4798 2010-09-09 Robert Dewar <dewar@adacore.com>
4800 * namet.adb (Initialize): Is now a dummy procedure
4801 (Reinitialize): New procedure
4802 Call Reinitialize from package initialization
4803 * namet.ads (Initialize): Is now a dummy procedure
4804 (Reinitialize): New procedure
4805 * clean.adb, gnat1drv.adb, gnatbind.adb, gnatcmd.adb, gnatlink.adb,
4806 gnatls.adb, gprep.adb, make.adb, prj-makr.adb: Remove obsolete call to
4809 2010-09-09 Bob Duff <duff@adacore.com>
4811 * sem_elab.adb, s-os_lib.ads: Minor comment fixes.
4813 2010-09-09 Robert Dewar <dewar@adacore.com>
4815 * s-bitops.adb (Raise_Error): Add exception message
4817 2010-09-09 Robert Dewar <dewar@adacore.com>
4819 * par-ch5.adb (Test_Statement_Required): Deal with Ada 2012 allowing no
4820 null statement after label.
4821 * sinfo.ads: Minor comment updates.
4823 2010-09-09 Robert Dewar <dewar@adacore.com>
4825 * nlists.ads, nlists.adb (In_Same_List): New function.
4826 Use Node_Or_Entity_Id where appropriate.
4827 * par-labl.adb, sem_ch6.adb, sem_type.adb: Use In_Same_List.
4829 2010-09-09 Robert Dewar <dewar@adacore.com>
4831 * restrict.ads, restrict.adb (Check_Wide_Character_Restriction): New
4833 * sem_ch3.adb: Use Check_Wide_Character_Restriction
4834 (Enumeration_Type_Declaration): Check violation of No_Wide_Characters
4835 * sem_ch8.adb (Find_Direct_Name): Check violation of No_Wide_Characters
4836 (Find_Expanded_Name): Check violation of No_Wide_Characters
4838 2010-09-09 Robert Dewar <dewar@adacore.com>
4840 * par-ch5.adb: Minor reformatting.
4842 2010-09-09 Robert Dewar <dewar@adacore.com>
4844 * prj-env.adb: Minor code reorganization.
4845 * par-ch3.adb: Minor reformatting.
4846 * gcc-interface/Make-lang.in: Update dependencies.
4848 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4850 * exp_ch9.adb (Build_Activation_Chain_Entity): The construct enclosing
4851 a task declaration can be an entry body.
4853 2010-09-09 Javier Miranda <miranda@adacore.com>
4855 * exp_disp.adb (Make_DT): Decorate as "static" variables containing
4856 tags of library level tagged types.
4857 (Make_Tags): Disable backend optimizations about aliasing for
4858 declarations of access to dispatch tables.
4860 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4862 * sem_ch12.adb (Reset_Entity): If the entity is an itype created as a
4863 subtype for a null-excluding access type, recover the original
4864 subtype_mark to get the proper visibility on the original name.
4866 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4868 * exp_ch3.adb (Build_Untagged_Equality): For Ada2012, new procedure to
4869 create the primitive equality operation for an untagged record. The
4870 operation is the predefined equality if no record component has a
4871 user-defined equality, or if there is a user-defined equality for the
4872 type as a whole, or when the type is derived and it has an inherited
4873 equality. Otherwise the body of the operations is built as for tagged
4875 (Expand_Freeze_Record_Type): Call Build_Untagged_Equality when needed.
4876 (Make_Eq_Body): New function to create the expanded body of the
4877 equality operation for tagged and untagged records. In both cases the
4878 operation composes, and the primitive operation of each record
4879 component is used to generate the equality function for the type.
4880 * exp_ch4.adb (Expand_Composite_Equality): In Ada2012, if a component
4881 has an abstract equality defined, replace its call with a
4882 Raise_Program_Error.
4883 * sem_ch6.adb (New_Overloaded_Entity): if Ada2012, verify that a
4884 user-defined equality operator for an untagged record type does not
4885 happen after type is frozen, and appears in the visible part if partial
4886 view of type is not limited.
4888 2010-09-09 Tristan Gingold <gingold@adacore.com>
4890 * gnatlbr.adb: Make Create_Directory more portable: use __gnat_mkdir.
4892 2010-09-09 Bob Duff <duff@adacore.com>
4894 * gnat_ugn.texi: Remove incorrect statement about -E being the default.
4896 2010-09-09 Pascal Obry <obry@adacore.com>
4898 * gnat_ugn.texi: Update doc on windows related topics.
4900 2010-09-09 Geert Bosch <bosch@adacore.com>
4902 * s-fatgen.adb: Update comments.
4904 2010-09-09 Robert Dewar <dewar@adacore.com>
4906 * par-ch4.adb (Box_Error): New procedure.
4908 2010-09-09 Thomas Quinot <quinot@adacore.com>
4910 * sem.adb: Minor reformatting.
4912 2010-09-09 Pascal Obry <obry@adacore.com>
4914 * prj-env.adb: Style fix, use /and then/ and /or else/.
4915 * gnat_ugn.texi: Fix typos.
4917 2010-09-03 Joseph Myers <joseph@codesourcery.com>
4920 * gcc-interface/misc.c (gnat_init_options): Allow options with
4921 empty canonical form. Generate a single save_argv element from -I
4924 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
4926 * gcc-interface/utils.c (gnat_pushdecl): Remove test for PARM_DECLs.
4927 Attach fake PARM_DECLs to the topmost block of the function.
4929 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
4931 * gcc-interface/trans.c (call_to_gnu): Also force the return slot opt
4932 for the call to a function whose return type was unconstrained.
4934 2010-08-30 Olivier Hainque <hainque@adacore.com>
4936 * gcc-interface/decl.c (FOREIGN_FORCE_REALIGN_STACK): New macro,
4937 replacement for FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
4938 (gnat_to_gnu_entity) <case ..., E_Procedure>: Use it.
4940 2010-08-21 Eric Botcazou <ebotcazou@adacore.com>
4942 * tracebak.c: Fix typo in comment.
4944 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
4946 * gcc-interface/decl.c: Use FOR_EACH_VEC_ELT.
4947 * gcc-interface/trans.c: Likewise.
4948 * gcc-interface/utils.c: Likewise.
4950 2010-08-18 Eric Botcazou <ebotcazou@adacore.com>
4952 * tracebak.c (i386): Use GCC unwinder on Linux with GCC > 4.5.
4954 2010-08-10 Robert Dewar <dewar@adacore.com>
4956 * sem_ch8.adb, sem_ch8.ads: Change name Write_Scopes to ws.
4957 * sem_util.adb: Minor reformatting.
4959 2010-08-10 Javier Miranda <miranda@adacore.com>
4961 * sem_aggr.adb (Resolve_Extension_Aggregate): Warn on the use of C++
4962 constructors that leave the object partially initialized.
4963 * exp_atag.ads, exp_atags.adb (Build_Inherit_CPP_Prims): New subprogram
4964 that copies from parent of Typ the dispatch table slots of inherited
4965 C++ primitives. It handles primary and secondary dispatch tables.
4966 * einfo.adb (Related_Type): Moved from Node26 to Node27. Required to
4967 use this attribute with E_Variable entities.
4968 (Set_Is_Tag): Relax assertion to allow its use with variables that
4970 (Set_Related_Type): Relax assertion to allow its use with variables
4971 that store the tag of a C++ class.
4972 (Write_26_Field_Name): Remove Related_Type.
4973 (Write_27_Field_Name): Add Related_Type.
4974 * einfo.ads (Related_Type): Moved from Node26 to Node27. Available also
4975 with E_Variable entities.
4976 * sem_prag.adb (CPP_Constructor): Warn on duplicated occurrence of this
4978 * sem_util.adb (Search_Tag): Add missing support for CPP types.
4979 (Enclosing_CPP_Parent): New subprogram.
4980 (Has_Suffix): New subprogram.
4981 * sem_util.ads (Enclosing_CPP_Parent): New subprogram that returns the
4982 closest ancestor of a type that is a C++ type.
4983 (Has_Suffix): New subprogram. Used in assertions to check the suffix of
4985 * sem_attr.adb (Analyze_Access_Attribute): Check wrong use of current
4986 instance in derivations of C++ types.
4987 * exp_tss.adb (CPP_Init_Proc): New subprogram.
4988 (Is_CPP_Init_Proc): New subprogram.
4989 (Set_TSS): Handle new C++ init routines.
4990 * exp_tss.ads (TSS_CPP_Init): New TSS name. For initialization of C++
4992 (CPP_Init_Proc): New subprogram.
4993 (Is_CPP_Init_Proc): New subprogram.
4994 * exp_disp.adb (CPP_Num_Prims): New subprogram.
4995 (Has_CPP_Constructors): New subprogram.
4996 (Make_Secondary_DT, Make_DT): For derivations of CPP types, do not
4997 initialize slots located in the C++ part of the dispatch table.
4998 (Make_Tags): For CPP types declare variables used by the IP routine to
4999 store the C++ tag values after the first invocation of the C++
5001 (Build_CPP_Init_DT): New subprogram.
5002 (Set_CPP_Constructors): New implementation that builds an IP for each
5003 CPP constructor. These IP are wrappers of the C++ constructors that,
5004 after the first invocation of the constructor, read the C++ tags from
5005 the object and save them locally. These copies of the C++ tags are used
5006 by the IC routines to initialize tables of Ada derivations of CPP
5008 (Write_DT): Indicate what primitives are imported from C++
5009 * exp_disp.ads (CPP_Num_Prims): New subprogram.
5010 (Has_CPP_Constructors): New subprogram.
5011 * exp_aggr.adb (Build_Record_Aggr_Code): For derivations of C++ types
5012 invoke the IC routine to inherit the slots of the parents.
5013 * sem_ch13.adb (Analyze_Freeze_Entity): Add new warnings on CPP types.
5014 * exp_ch3.adb (Is_Variable_Size_Array): New subprogram.
5015 (Is_Variable_Size_Record): Factorize code calling
5016 Is_Variable_Size_Array.
5017 (Build_CPP_Init_Procedure): New subprogram that builds the tree
5018 corresponding to the procedure that initializes the C++ part of the
5019 dispatch table of an Ada tagged type that is a derivation of a CPP
5021 (Build_Init_Procedure): Adding documentation plus code reorganization
5022 to leave more clear the construction of the IP with C++ types.
5023 (Expand_Freeze_Record_Type): Delay call to Set_CPP_Constructors because
5024 it cannot be called after Make_Tags has been invoked.
5025 (Inherit_CPP_Tag): Removed.
5026 (Init_Secondary_Tags): For derivations of CPP types, warn on tags
5027 located at variable offset.
5028 * freeze.ads: Minor reformating.
5029 * sem_ch8.adb (Write_Scopes): Add pragma export. Required to have it
5031 * gcc-interface/Make-lang.in: Update dependencies.
5033 2010-08-10 Robert Dewar <dewar@adacore.com>
5035 * a-chahan.ads: Add comments on handling of obsolescent entries.
5036 * opt.ads: Add Ada_2005 and Ada_2012 renamings for versions.
5037 * restrict.adb (Check_Obsolescent_2005_Entity): New procedure.
5038 * restrict.ads (Check_Obsolescent_2005_Entity): New procedure.
5039 * sem_attr.adb (Analyze_Access_Attribute): Call
5040 Check_Obsolescent_2005_Entity to check for access to obsolescent
5041 Ada.Characters.Handling subprogram.
5042 (Analyze_Attribute, case Class): Applying Class to untagged incomplete
5043 type is obsolescent in Ada 2005.
5044 (Analyze_Attribute, case Constrained): Better placement of flag when
5045 flagged as obsolescent feature.
5046 (Analyze_Attribute, case Storage_Size): Use with tasks is obsolescent
5047 * sem_ch10.adb (Analyze_With_Clause): With of renamings such as Text_IO
5048 is an obsolescent feature.
5049 * sem_ch11.adb (Analyze_Raise_Statement): Numeric_Error is obsolescent
5051 * sem_ch8.adb (Analyze_Subprogram_Renaming): Call
5052 Check_Obsolescent_2005_Entity to check for renaming obsolete
5053 Ada.Characters.Handling subprogram.
5054 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings): Check
5055 for obsolescent restrictions in Ada 2005.
5056 (Analyze_Pragma, case Suppress): Entity arg is obsolescent in Ada 2005
5057 (Analyze_Pragma, case Interface): Interface is obsolescent in Ada 2005
5058 * sem_res.adb (Resolve_Call): Call Check_Obsolescent_2005_Entity to
5059 check for obsolescent references to Ada.Characters.Handling subprograms
5061 2010-08-10 Robert Dewar <dewar@adacore.com>
5063 * einfo.adb, einfo.ads: Fix bad -gnatdt output for incomplete type.
5065 2010-08-10 Robert Dewar <dewar@adacore.com>
5067 * errout.ads: Add VMS table entries for 2005, 12, 2012 switches
5068 * par-ch4.adb: Change wording of Ada 2012 messages
5069 * vms_data.ads: Add VMS entries for /2005, /12, /2012
5071 2010-08-10 Robert Dewar <dewar@adacore.com>
5073 * a-suenco.adb (Convert): Fix bug in UTF-16 to UTF-8 conversion for
5074 codes in the range 16#80#..16#7FF#.
5075 * sem_ch10.adb: Minor reformatting.
5077 2010-08-10 Arnaud Charlet <charlet@adacore.com>
5079 * gnat1drv.adb (Scan_Front_End_Switches): Always perform semantics and
5080 generate ali files in CodePeer mode, so that a gnatmake -c -k will
5081 proceed further when possible
5082 * freeze.adb (Freeze_Static_Object): Fix thinko. Do not generate error
5083 messages when ignoring representation clauses (-gnatI).
5085 2010-08-10 Ed Schonberg <schonberg@adacore.com>
5087 * exp_ch4.adb (Expand_N_Selected_Component): Do not attempt to
5088 constant-fold discriminant reference if the constraint is an object
5089 with non-static expression. Expression may contain volatile references
5090 in the presence of renamings.
5092 2010-08-10 Vincent Celier <celier@adacore.com>
5094 * prj-proc.adb (Get_Attribute_Index): If Index is All_Other_Names,
5096 * prj-strt.adb (Attribute_Reference): Recognize 'others' as a valid
5097 index for an associative array where it is allowed.
5099 2010-08-10 Thomas Quinot <quinot@adacore.com>
5101 * exp_attr.adb: Add comments.
5103 2010-08-10 Jerome Lambourg <lambourg@adacore.com>
5105 * adaint.c (__gnat_get_file_names_case_sensitive): return 0 on darwin.
5107 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
5109 * gcc-interface/utils.c (gnat_poplevel): Use blocks_nreverse.
5111 2010-08-09 Eric Botcazou <ebotcazou@adacore.com>
5113 * gcc-interface/utils.c (build_vms_descriptor32): Fix formatting.
5114 (build_vms_descriptor): Likewise.
5116 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5118 * gcc-interface/utils.c (make_descriptor_field): Add tree parameter.
5119 (build_vms_descriptor32): Adjust calls to it for new parameter.
5120 (build_vms_descriptor): Likewise.
5122 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5124 * gcc-interface/decl.c (rec_variant): Declare. Declare a VEC of it.
5125 (build_variant_list): Take and return a VEC instead of a tree.
5126 (create_variant_part_from): Take a VEC instead of a tree for
5127 variant_list. Adjust accordingly.
5128 (gnat_to_gnu_entity): Adjust for changes to previous functions.
5130 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
5132 * gcc-interface/decl.c (gnat_to_gnu_entity): Use XALLOCAVEC instead
5134 (components_to_record): Likewise.
5135 * gcc-interface/trans.c (gnat_to_gnu): Likewise.
5136 * gcc-interface/utils.c (max_size): Likewise.
5137 (build_vms_descriptor32): Likewise.
5138 (build_vms_descriptor): Likewise.
5140 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
5142 * gcc-interface/decl.c (subst_pair): Declare. Declare a VEC of it.
5143 (build_subst_list): Return a VEC instead of a tree.
5144 (build_variant_list): Take a VEC for subst_list. Adjust
5146 (create_field_decl_from): Likewise.
5147 (create_variant_part_from): Likewise.
5148 (copy_and_substitute_in_size): Likewise.
5149 (gnat_to_gnu_entity): Adjust for new interface to build_subst_list.
5150 Free the built vector.
5152 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
5154 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not build an
5155 allocator for large imported objects.
5157 2010-08-05 Robert Dewar <dewar@adacore.com>
5159 * gnat1drv.adb: Minor reformatting.
5161 2010-08-05 Ed Schonberg <schonberg@adacore.com>
5163 * sem.adb (Do_Unit_And_Dependents): If some parent unit is an
5164 instantiation, process its body before the spec of the main unit,
5165 because it may contain subprograms invoked in the spec of main.
5166 * einfo.ads: Add documention of delayed freeze.
5168 2010-08-05 Vincent Celier <celier@adacore.com>
5170 * prj-nmsc.adb (Process_Linker): Take into account new values for
5171 attribute Response_File_Format.
5172 * prj.ads (Response_File_Format): New enumeration values GCC_GNU,
5173 GCC_Object_List and GCC_Option_List.
5175 2010-08-05 Ed Schonberg <schonberg@adacore.com>
5177 * exp_ch4.adb (Expand_N_Selected_Component): Do not constant-fold a
5178 selected component that denotes a discriminant if it is the
5179 discriminant of a component of an unconstrained record type.
5181 2010-08-05 Ed Schonberg <schonberg@adacore.com>
5183 * exp_util.adb (Insert_Actions): If the action appears within a
5184 conditional expression that is already analyzed, insert action further
5187 2010-08-05 Robert Dewar <dewar@adacore.com>
5189 * exp_ch4.adb: Minor reformatting.
5191 2010-08-05 Thomas Quinot <quinot@adacore.com>
5193 * exp_ch4.adb: Minor reformatting
5194 * gnat1drv.adb: Minor reformatting.
5195 Minor code reorganization (use Nkind_In).
5197 2010-08-05 Ed Schonberg <schonberg@adacore.com>
5199 * exp_util.ads, exp_util.adb (Needs_Constant_Address): New predicate to
5200 determine whether the expression in an address clause for an
5201 initialized object must be constant. Code moved from freeze.adb.
5202 (Remove_Side_Effects): When the temporary is initialized with a
5203 reference, indicate that the temporary is a constant as done in all
5205 * freeze.adb (Check_Address_Clause): use Needs_Constant_Address.
5206 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
5207 If object does not need a constant address, remove side effects from
5208 address expression, so it is elaborated at the point of the address
5209 clause and not at the freeze point of the object, so that elaboration
5212 2010-08-05 Vincent Celier <celier@adacore.com>
5214 * prj.adb (Is_Compilable): Return False for header files of non Ada
5217 2010-08-05 Emmanuel Briot <briot@adacore.com>
5219 * prj-nmsc.adb: The Missing_Source_Files flag also considers a missing
5220 exec directory as a warning rather than an error.
5222 2010-08-05 Thomas Quinot <quinot@adacore.com>
5224 * sem_ch6.adb, gnat1drv.adb, exp_ch6.adb, sem_eval.adb: Minor
5227 2010-08-05 Steve Baird <baird@adacore.com>
5229 * exp_util.adb (Remove_Side_Effects): An access value which designates
5230 a volatile object of a nonvolatile type is prohibited.
5231 Do not call Make_Reference to construct a reference to such an object.
5233 2010-08-05 Robert Dewar <dewar@adacore.com>
5235 * a-suezse.adb, a-suezse.ads, a-suezen.adb, a-suezen.ads: Removed.
5236 * a-suewse.adb, a-suewse.ads, a-suesen.adb, a-suesen.ads,
5237 a-suewen.adb, a-suewen.ads: New files.
5238 * Makefile.rtl, impunit.adb: Update implementation of Ada 2012 string
5240 * sem_elab.adb: Minor reformatting.
5242 2010-08-05 Arnaud Charlet <charlet@adacore.com>
5244 * sem_ch8.adb (Use_One_Type): Protect against empty scopes.
5245 * exp_util.adb (Component_May_Be_Bit_Aligned): Prevent assert failure
5246 in case of null Comp.
5248 2010-08-05 Robert Dewar <dewar@adacore.com>
5250 * errout.adb, a-suewen.adb, a-suezen.adb: Minor reformatting.
5252 2010-08-05 Gary Dismukes <dismukes@adacore.com>
5254 * sem_ch4.adb (Analyze_Allocator): Flag errors on allocators of a
5255 nested access type whose designated type has tasks or is a protected
5256 object when the restrictions No_Task_Hierarchy or
5257 No_Local_Protected_Objects apply. Add ??? comment.
5258 * sem_ch9.adb (Analyze_Protected_Type): Give a warning when a protected
5259 type is not a library-level type and No_Local_Protected_Objects applies.
5260 (Analyze_Task_Type): Give a warning when a task type is not a
5261 library-level type and No_Task_Hierarchy applies.
5263 2010-08-05 Arnaud Charlet <charlet@adacore.com>
5265 * sem.adb: Minor reformatting
5266 * sem_ch4.adb (Analyze_Reference): Disable error message in CodePeer
5269 2010-08-04 Eric Botcazou <ebotcazou@adacore.com>
5271 * gcc-interface/decl.c: Do not undefine IN_GCC_FRONTEND and do not
5273 (gnat_to_gnu_entity) <object>: Force address of -1 at the tree level
5274 for the debug-only entity.
5275 * gcc-interface/Make-lang.in (ada/decl.o): Adjust dependencies.
5277 2010-08-03 Joseph Myers <joseph@codesourcery.com>
5279 * gcc-interface/lang-specs.h: Don't pass -a options.
5281 2010-07-28 Joseph Myers <joseph@codesourcery.com>
5283 * gcc-interface/misc.c (gnat_init_options): Ignore erroneous
5284 options. Check canonical_option_num_elements on options copied.
5286 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5288 * gcc-interface/misc.c (gnat_handle_option): Update prototype and
5289 return value type. Don't check for missing arguments here.
5291 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5293 * gcc-interface/misc.c (gnat_option_lang_mask): New.
5294 (gnat_init_options): Update prototype. Reconstruct argv array
5295 from decoded options.
5297 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
5299 * gcc-interface/utils.c (update_pointer_to): In the unconstrained array
5300 case, merge the alias set of the old pointer type.
5302 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
5304 * gcc-interface/utils.c (gnat_types_compatible_p): Revert latest change
5305 and recurse only for multidimensional array types instead.
5307 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
5310 * gcc-interface/utils.c (convert): Fix thinko in test.
5311 (unchecked_convert): When converting from a scalar type to a type with
5312 a different size, pad to have the same size on both sides.
5314 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
5316 * gcc-interface/utils.c (gnat_types_compatible_p): Don't require strict
5317 equality for the component type of array types.
5319 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
5321 * gcc-interface/decl.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
5322 * gcc-interface/trans.c: Likewise.
5323 * gcc-interface/utils.c: Likewise.
5324 * gcc-interface/utils2.c: Likewise.
5326 2010-07-13 Laurent GUERBY <laurent@guerby.net>
5329 * gcc-interface/targtyps.c: Include tm_p.h.
5330 * gcc-interface/Make-lang.in: Update dependencies.
5332 2010-07-09 Eric Botcazou <ebotcazou@adacore.com>
5334 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Deal with
5337 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5339 * gcc-interface/utils.c: Include diagnostic-core.h in every file
5340 that includes toplev.h.
5342 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
5344 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>:
5345 Branch to common code handling the alignment of discrete types.
5346 <E_Signed_Integer_Type>: Likewise.
5347 <E_Modular_Integer_Type>: Likewise.
5349 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
5351 * gcc-interface/misc.c (gnat_handle_option): Do not populate gnat_argv.
5352 (gnat_handle_option): Allocate only one element for gnat_argv.
5353 (gnat_init): Do not populate gnat_argv.
5355 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5357 * gcc-interface/trans.c: Do not include tree-flow.h.
5358 * gcc-interface/Make-lang.in: Adjust dependencies.
5360 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
5362 * gcc-interface/gigi.h (gnat_build_constructor): Take a VEC instead
5363 of a TREE_LIST. Update comment.
5364 * gcc-interface/trans.c (gigi): Build a VEC instead of a TREE_LIST.
5365 Adjust call to gnat_build_constructor.
5366 (Attribute_to_gnu): Likewise.
5367 (gnat_to_gnu): Likewise.
5368 (pos_to_constructor): Likewise.
5369 (extract_values): Likewise.
5370 * gcc-interface/utils.c (build_template): Likewise.
5371 (convert_vms_descriptor64): Likewise.
5372 (convert_vms_descriptor32): Likewise.
5373 (convert_to_fat_pointer): Likewise.
5374 (convert): Likewise.
5375 (unchecked_convert): Likewise.
5376 * gcc-interface/decl.c (gnat_to_gnu_entity): Likewise.
5377 * gcc-interface/utils2.c (build_allocator): Likewise.
5378 (fill_vms_descriptor): Likewise.
5379 (gnat_build_constructor): Take a VEC instead of a TREE_LIST.
5380 (compare_elmt_bitpos): Adjust for parameters being constructor_elts
5381 instead of TREE_LISTs.
5383 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
5385 * gcc-interface/misc.c: Do not include except.h.
5386 * gcc-interface/Make-lang.in: Update dependencies.
5388 2010-06-27 Eric Botcazou <ebotcazou@adacore.com>
5390 * gcc-interface/trans.c: Include tree-flow.h.
5391 (gnu_switch_label_stack): Delete.
5392 (Case_Statement_to_gnu): Do not emit the goto at the end of a case if
5393 its associated block cannot fall through. Do not emit the final label
5394 if no cases branch to it.
5395 * gcc-interface/Make-lang.in (ada/trans.o): Add $(TREE_FLOW_H).
5397 2010-06-23 Thomas Quinot <quinot@adacore.com>
5399 * exp_attr.adb (Expand_Access_To_Protected_Op): When rewriting a
5400 reference to a protected subprogram outside of the protected's scope,
5401 ensure the corresponding external subprogram is frozen before the
5404 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5406 * sem_prag.adb: Fix typo in error message.
5407 * sem.adb: Refine previous change.
5409 2010-06-23 Robert Dewar <dewar@adacore.com>
5411 * impunit.adb, a-suewen.adb, a-suewen.ads, a-suenco.adb, a-suenco.ads,
5412 a-suezen.adb, a-suezen.ads, a-stuten.adb, a-stuten.ads, Makefile.rtl:
5413 Implement Ada 2012 string encoding packages.
5415 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5417 * a-stwiun-shared.adb, a-stwiun-shared.ads, a-stzunb-shared.adb,
5418 a-stzunb-shared.ads, a-swunau-shared.adb, a-swuwti-shared.adb,
5419 a-szunau-shared.adb, a-szuzti-shared.adb, a-strunb-shared.adb,
5420 a-strunb-shared.ads, a-stunau-shared.adb, a-suteio-shared.adb: New
5422 * gcc-interface/Makefile.in: Enable use of above files.
5424 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5426 * sem_ch13.adb (Check_Constant_Address_Clauses): Do not check legality
5427 of address clauses if if Ignore_Rep_Clauses is active.
5428 * freeze.adb (Check_Address_Clause): If Ignore_Rep_Clauses is active,
5429 remove address clause from tree so that it does not reach the backend.
5431 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5433 * exp_attr.adb (Expand_N_Attribute_Reference [Attribute_Valid]): Do not
5434 expand 'Valid from user code in CodePeer mode, will be handled by the
5437 2010-06-23 Bob Duff <duff@adacore.com>
5439 * g-comlin.ads: Minor comment improvements.
5441 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5443 * sem_res.adb (Uses_SS): The expression that initializes a controlled
5444 component of a record type may be a user-defined operator that is
5445 rewritten as a function call.
5447 2010-06-23 Bob Duff <duff@adacore.com>
5449 * g-comlin.ads, sem_ch13.adb: Minor comment fix.
5451 2010-06-23 Eric Botcazou <ebotcazou@adacore.com>
5453 * exp_ch11.adb (Expand_Local_Exception_Handlers): Propagate the end
5454 label to the new sequence of statements. Set the sloc of the raise
5455 statement onto the new goto statements.
5457 2010-06-23 Robert Dewar <dewar@adacore.com>
5459 * a-stuten.ads, a-stuten.adb: New files.
5460 * impunit.adb: Add engtry for Ada.Strings.UTF_Encoding (a-stuten.ads)
5461 * Makefile.rtl: Add entry for a-stuten (Ada.Strings.UTF_Encoding)
5463 2010-06-23 Robert Dewar <dewar@adacore.com>
5465 * gnat_ugn.texi: Add documentation of -gnat12 switch
5466 Add documentation of -gnatX switch.
5468 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5470 * inline.ads: Include the current Ada_Version in the info for pending
5471 instance bodies, so that declaration and body are compiled with the
5473 * inline.adb: Move with_clause for Opt to spec.
5474 * sem_ch12.adb (Analyze_Package_Instantiation,
5475 Analyze_Subprogram_Instantiation): Save current Ada_Version in
5476 Pending_Instantiation information.
5477 (Instantiate_Package_Body, Instantiate_Subprogram_Body,
5478 Inline_Package_Body): Use the Ada_Version present in the body
5481 2010-06-23 Robert Dewar <dewar@adacore.com>
5483 * usage.adb: Add documentation for -gnat12 switch.
5484 * errout.ads: Add VMS alias entry for -gnat12 switch
5485 * gnat_rm.texi: Add documentation for pragma Ada_12 and Ada_2012
5486 Add documentation for pragma Extensions_Allowed.
5487 * opt.ads: Add entry for Ada 2012 mode.
5488 * sem_ch4.adb, par-ch3.adb, par-ch4.adb: Use new Ada 2012 mode for 2012
5490 * sem_prag.adb, par-prag.adb: Add processing for pragma Ada_12 and
5492 * sem_ch13.adb: Add handling for Ada 2012 mode.
5493 * snames.ads-tmpl: Add entries for pragma Ada_2012 and Ada_12.
5494 * switch-c.adb: Add handling for -gnat12 switch.
5495 Implement -gnat2005 and -gnat2012.
5496 * usage.adb: Add documentation for -gnat12 switch.
5497 * vms_data.ads: Add /12 switch for Ada 2012 mode.
5499 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5501 * exp_ch4.adb (Expand_N_Allocator): Fix potential crash when using
5502 No_Task_Hierarchy restriction. Add comment.
5503 * exp_ch9.adb, exp_ch3.adb: Update comments.
5505 2010-06-23 Robert Dewar <dewar@adacore.com>
5507 * sem_ch5.adb (Process_Bounds): Remove some junk initializations.
5508 * sem_res.adb: Add comments.
5509 * sem_util.adb: Minor reformatting. Add comments.
5510 Change increment on Actuals_In_Call table.
5511 * opt.ads: Minor: add 'constant'.
5513 2010-06-23 Javier Miranda <miranda@adacore.com>
5515 * exp_disp.adb (Make_DT): Initialize the Size_Func component of the
5516 TSD to Null_Address if No_Dispatching_Calls is active.
5518 2010-06-23 Vincent Celier <celier@adacore.com>
5520 * a-comlin.ads: Indicate that use of this package is not supported
5521 during the elaboration of an auto-initialized Stand-Alone Library.
5523 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5525 * exp_util.adb (Is_Possibly_Misaligned_Object): Do not rely on an
5526 alignment clause on a record type to determine if a component may be
5527 misaligned. The decision must be taken in the back-end where target
5528 alignment information is known.
5530 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5532 * gnat1drv.adb (Adjust_Global_Switches): Enable some restrictions
5533 systematically in CodePeer mode to simplify generated code.
5534 * restrict.adb (Check_Restriction): Do nothing in CodePeer mode.
5535 * exp_ch4.adb (Expand_N_Allocator): Generate proper code when
5536 No_Task_Hierarchy is set instead of crasshing.
5538 2010-06-23 Thomas Quinot <quinot@adacore.com>
5540 * sem_util.adb: Minor code cleanup: test for proper entity instead of
5541 testing just Chars attribute when checking whether a given scope is
5543 * exp_ch4.adb, einfo.adb: Minor reformatting.
5545 2010-06-23 Vincent Celier <celier@adacore.com>
5548 * switch-m.adb (Normalize_Compiler_Switches): Take into account
5549 switches -gnatB, -gnatD=nn, -gnatG (incuding -gnatG=nn), -gnatI,
5550 -gnatl=file, -gnatS, -gnatjnn, -gnateI=nn and -gnatWx.
5552 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5554 * sem_res.adb (Resolve_Membership_Op): If left operand is a mixed mode
5555 operation with a universal real operand, and the right operand is a
5556 range with universal bounds, find unique fixed point that may be
5557 candidate, and warn appropriately.
5559 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5561 * sem_res.adb (Resolve_Intrinsic_Operator): Add guards to handle
5562 properly the rare cases where VMS operators are visible through
5563 Extend_System, but the default System is being used and Address is a
5565 * sem_util.adb: Widen predicate Is_VMS_Operator.
5567 2010-06-23 Vincent Celier <celier@adacore.com>
5569 * switch-m.adb (Normalize_Compiler_Switches): Take into account -gnatC
5572 2010-06-23 Olivier Hainque <hainque@adacore.com>
5574 * einfo.adb (Has_Foreign_Convention): Consider Intrinsic with
5575 Interface_Name as foreign. These are GCC builtin imports for
5576 which Ada specific processing doesn't apply.
5578 2010-06-23 Thomas Quinot <quinot@adacore.com>
5580 * sem_ch12.adb: Minor reformatting.
5582 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5584 * sem_util.adb (Is_VMS_Operator): Use scope of system extension to
5585 determine whether an intrinsic subprogram is VMS specific.
5587 2010-06-23 Hristian Kirtchev <kirtchev@adacore.com>
5589 * treepr.adb (Print_Entity_Info): Output the contents of Field28 if it
5590 is present in the entity.
5592 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5594 * xr_tabls.adb, xref_lib.adb: Update to latest lib-xref.ads
5595 Fix handling of parameters.
5596 Add protection against unexpected cases.
5597 * sem_ch6.adb (Create_Extra_Formals): Use suffix "L" instead of "A" for
5598 access level, since "A" suffix is already used elsewhere. Similarly,
5599 use suffix "O" instead of "C" for 'Constrained since "C" suffix is used
5602 2010-06-23 Thomas Quinot <quinot@adacore.com>
5604 * sem_util.adb, sem_util.ads: Minor reformatting.
5606 2010-06-23 Vincent Celier <celier@adacore.com>
5608 * prj.ads (Gprclean_Flags.Missing_Source_Files): Set to Error to keep
5609 the previous behavior of gprclean when there are missing files.
5611 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5613 * sem_ch12.adb (Load_Body_Of_Generic): In CodePeer mode, a missing
5614 generic body is not a fatal error.
5615 (Mark_Context): Handle properly names of child units.
5616 * sem.adb (Walk_Library_Items.Do_Action): Remove assertion on
5619 2010-06-23 Vincent Celier <celier@adacore.com>
5621 * ali.adb (Scan_ALI): When ignoring R lines, do not skip the next
5624 2010-06-23 Bob Duff <duff@adacore.com>
5626 * g-pehage.ads, g-pehage.adb: Switch default optimization mode to
5627 Memory_Space, because CPU_Time doesn't seem to provide any significant
5628 speed advantage in practice. Cleanup: Get rid of constant
5629 Default_Optimization; doesn't seem to add anything. Use case
5630 statements instead of if statements; seems cleaner.
5632 2010-06-23 Olivier Hainque <hainque@adacore.com>
5634 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Procedure>: Use
5635 Wshadow instead of Wextra to guard warning on absence of internal
5636 builtin decl for an import. Fix use of quote in warning text.
5637 (intrin_arglists_compatible_p): Remove processing of integer trailing
5638 args on the Ada side. Fix use of literal > in warning text.
5639 (intrin_return_compatible_p): Never warn on "function imported as
5640 procedure". Defer the void/void case to the common type compatibility
5642 (gnat_to_gnu_param): Use void_ptr GCC type for System.Address argument
5643 of GCC builtin imports.
5645 2010-06-23 Olivier Hainque <hainque@adacore.com>
5647 * gcc-interface/decl.c (intrin_types_incompatible_p): New function,
5649 (intrin_arglists_compatible_p, intrin_return_compatible_p): New
5650 functions, helpers for ...
5651 (intrin_profiles_compatible_p): New function, replacement for ...
5652 (compatible_signatures_p): Removed.
5653 (gnat_to_gnu_entity) <case E_Procedure>: If -Wextra, warn on
5654 attempt to bind an unregistered builtin function. When we have
5655 one, use it and warn on profile incompatibilities.
5657 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5659 * gcc-interface/Make-lang.in: Update dependencies.
5661 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5663 * sem_util.adb (Mark_Coextensions): If the expression in the allocator
5664 for a coextension in an object declaration is a concatenation, treat
5665 coextension as dynamic.
5667 2010-06-23 Javier Miranda <miranda@adacore.com>
5669 * sem_ch3.adb (Add_Internal_Interface_Entities): Ensure that the
5670 internal entities are added to the scope of the tagged type.
5671 (Derive_Subprograms): Do not stop derivation when we find the first
5672 internal entity that has attribute Interface_Alias. After the change
5673 done to Override_Dispatching_Operations it is no longer true that
5674 these primirives are always located at the end of the list of
5676 * einfo.ads (Primitive_Operations): Add documentation.
5677 * exp_disp.adb (Write_DT): Improve output adding to the name of the
5678 primitive a prefix indicating its corresponding tagged type.
5679 * sem_disp.adb (Override_Dispatching_Operations): If the overridden
5680 entity covers the primitive of an interface that is not an ancestor of
5681 this tagged type then the new primitive is added at the end of the list
5682 of primitives. Required to fulfill the C++ ABI.
5684 2010-06-23 Javier Miranda <miranda@adacore.com>
5686 * atree.ads (Set_Reporting_Proc): New subprogram.
5687 * atree.adb: Remove dependency on packages Opt and SCIL_LL.
5688 (Allocate_Initialize_Node, Replace, Rewrite): Replace direct calls
5689 to routines of package Scil_ll by indirect call to the registered
5691 (Set_Reporting_Proc): New subprogram. Used to register a subprogram
5692 that is invoked when a node is allocated, replaced or rewritten.
5693 * scil_ll.adb (Copy_SCIL_Node): New routine that takes care of copying
5694 the SCIL node. Used as argument for Set_Reporting_Proc.
5695 (Initialize): Register Copy_SCIL_Node as the reporting routine that
5696 is invoked by atree.
5698 2010-06-23 Thomas Quinot <quinot@adacore.com>
5700 * sem_ch3.ads: Minor reformatting.
5702 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5704 * sem_ch12.adb (Analyze_Package_Instantiation): In CodePeer mode,
5705 always analyze the generic body and instance, because it may be needed
5707 (Mark_Context): Prepend the with clauses for needed generic units, so
5708 they appear in a better order for CodePeer.
5709 * sem_util.adb, sem_util.ads: Prototype code for AI05-0144.
5711 2010-06-23 Emmanuel Briot <briot@adacore.com>
5713 * prj.ads, prj-nmsc.adb (Error_Or_Warning): New subprogram.
5715 2010-06-23 Robert Dewar <dewar@adacore.com>
5717 * g-pehage.adb, exp_ch13.adb: Minor reformatting.
5719 2010-06-23 Thomas Quinot <quinot@adacore.com>
5721 * a-tags.ads: Fix description of TSD structure.
5723 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5725 * sem_ch12.adb (Mark_Context): When indicating that the body of a
5726 generic unit is needed prior to the unit containing an instantiation,
5727 search recursively the context of the generic to add other generic
5728 bodies that may be instantiated indirectly through the current instance.
5730 2010-06-23 Robert Dewar <dewar@adacore.com>
5732 * freeze.adb: Minor reformatting.
5734 2010-06-23 Bob Duff <duff@adacore.com>
5736 * g-pehage.adb (Trim_Trailing_Nuls): Fix the code to match the comment.
5738 2010-06-23 Vincent Celier <celier@adacore.com>
5740 * make.adb (Compile_Sources): Complete previous change.
5742 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5744 * sem_ch6.adb (Add_Extra_Formal): Use suffix "C" in the name of the
5745 Constrained extra formal.
5747 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5749 * exp_ch13.adb (Expand_Freeze_Actions): If validity checks and
5750 Initialize_Scalars are enabled, compile the generated equality function
5751 for a composite type with full checks enabled, so that validity checks
5752 are performed on individual components.
5754 2010-06-23 Emmanuel Briot <briot@adacore.com>
5756 * prj.adb, prj.ads, prj-nmsc.adb (Processing_Flags): New flag
5757 Missing_Source_Files.
5759 2010-06-23 Robert Dewar <dewar@adacore.com>
5761 * exp_ch3.adb, exp_util.adb: Minor reformatting.
5763 2010-06-23 Jose Ruiz <ruiz@adacore.com>
5765 * a-reatim.adb, a-retide.adb: Move the initialization of the tasking
5766 run time from Ada.Real_Time.Delays to Ada.Real_Time. This way, calls to
5767 Clock (without delays) use a run time which is properly initialized.
5769 2010-06-23 Vincent Celier <celier@adacore.com>
5771 * make.adb: Do not set Check_Readonly_Files when setting Must_Compile,
5772 when -f -u and a main is specified on the command line. However,
5773 attempt to compile even when the ALI file is read-only when
5774 Must_Compile is True.
5776 2010-06-23 Thomas Quinot <quinot@adacore.com>
5778 * checks.adb, g-pehage.adb, cstand.adb: Minor code factorization.
5780 2010-06-23 Javier Miranda <miranda@adacore.com>
5782 * sem_ch3.adb (Add_Internal_Interface_Entities): Generate internal
5783 entities for parent types that are interfaces. Needed in generics to
5784 handle formals that implement interfaces.
5785 (Derive_Subprograms): Add assertion for derivation of tagged types that
5786 do not cover interfaces. For generics, complete code that handles
5787 derivation of type that covers interfaces because the previous
5788 condition was weak (it required only name consistency; arguments were
5789 not checked). Add new code to locate primitives covering interfaces
5790 defined in generic units or instantiatons.
5791 * sem_util.adb (Has_Interfaces): Add missing support for derived types.
5792 * sem_ch6.adb (Check_Overriding_Indicator): Minor code cleanups.
5793 * exp_disp.adb (Make_Select_Specific_Data_Table): Skip primitives of
5794 interfaces that are parents of the type because they share the primary
5796 (Register_Primitive): Do not register primitives of interfaces that
5797 are parents of the type.
5798 * sem_ch13.adb (Analyze_Freeze_Entity): Add documentation.
5799 * exp_cg.adb (Write_Type_Info): When displaying overriding of interface
5800 primitives skip primitives of interfaces that are parents of the type.
5802 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5804 * sem_attr.adb (Eval_Attribute): If the prefix is an array, the
5805 attribute cannot be constant-folded if an index type is a formal type,
5806 or is derived from one.
5807 * checks.adb (Determine_Range): ditto.
5809 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5811 * gnat_ugn.texi, gnatxref.adb: Add support for --ext switch.
5813 2010-06-23 Bob Duff <duff@adacore.com>
5815 * g-pehage.ads, g-pehage.adb (Put): Fix off-by-one bug.
5816 (Insert): Disallow nul characters.
5817 (misc output routines): Assert no nul characters.
5819 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5821 * exp_ch4.adb: Use predefined unsigned type in all cases.
5823 2010-06-23 Bob Duff <duff@adacore.com>
5825 * s-rannum.adb (Reset): Avoid overflow in calculation of Initiator.
5826 * g-pehage.ads: Minor comment fixes.
5827 * g-pehage.adb: Minor: Add some additional debugging printouts under
5830 2010-06-23 Robert Dewar <dewar@adacore.com>
5832 * binde.adb (Better_Choice): Always prefer Pure/Preelab.
5833 (Worse_Choice): Always prefer Pure/Preelab.
5835 2010-06-23 Vincent Celier <celier@adacore.com>
5837 * a-reatim.adb: Call System.OS_Primitives.Initialize during elaboration
5839 2010-06-23 Robert Dewar <dewar@adacore.com>
5841 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Properly handle
5842 checking returns in generic case.
5843 (Check_Missing_Return): New procedure.
5845 2010-06-23 Robert Dewar <dewar@adacore.com>
5847 * bindgen.adb, switch-b.adb: Minor reformatting.
5849 2010-06-23 Javier Miranda <miranda@adacore.com>
5851 * frontend.adb (Frontend): Add call to initialize the new package
5853 * exp_ch7.adb (Wrap_Transient_Expression): Remove call to
5855 (Wrap_Transient_Statement): Remove call to Adjust_SCIL_Node.
5856 * sem_ch5.adb (Analyze_Iteration_Scheme.Process_Bounds): Remove call to
5858 * exp_util.adb (Insert_Actions): Remove code for
5859 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
5860 (Remove_Side_Effects): Remove calls to Adjust_SCIL_Node.
5861 * sinfo.adb (SCIL_Entity, SCIL_Tag_Value): Remove checks on
5862 N_SCIL_Tag_Init and N_SCIL_Dispatch_Table_Object_Init in the assertion.
5863 (SCIL_Related_Node, Set_SCIL_Related_Node): Removed.
5864 * sinfo.ads (SCIL_Related_Node): Field removed.
5865 (N_SCIL_Dispatch_Table_Object_Init): Node removed.
5866 (N_SCIL_Tag_Init): Node removed.
5867 * sem_scil.ads, sem_scil.adb (Adjust_SCIL_Node): Removed.
5868 (Check_SCIL_Node): New implementation.
5869 (Find_SCIL_Node): Removed.
5870 * sem.adb (Analyze): Remove management of
5871 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
5872 * sem_util.adb (Insert_Explicit_Dereference): Remove call to
5874 * exp_ch4.adb (Expand_N_In): Code cleanup: remove call to
5875 Set_SCIL_Related_Node and avoid adding the SCIL node before the
5876 referenced node using Insert_Action because this is not longer
5878 (Expand_Short_Circuit_Operator): Remove call to SCIL node.
5879 * exp_ch6.adb (Expand_Call): Remove call to Adjust_SCIL_Node.
5880 * sem_ch4.adb (Analyze_Type_Conversion): Remove call to
5882 * exp_disp.adb (Expand_Dispatching_Call): Minor code reorganization
5883 because we no longer require to generate the SCIL node before the call.
5884 (Make_DT): Remove generation of SCI_Dispatch_Table_Object_Init node.
5885 Remove calls to Set_SCIL_Related_Node and avoid adding the SCIL
5886 nodes before the referenced node using Insert_Action because this
5887 is not longer required.
5888 * atree.adb (Allocate_Initialize_Node, Replace, Rewrite): Add call to
5889 update the SCIL_Node field.
5890 * sprint.adb (Sprint_Node_Actual): Remove code for
5891 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
5892 * treepr.adb (Print_Node): Print the SCIL node field (if available).
5893 * exp_ch3.adb (Build_Init_Procedure): Remove generation of
5894 SCIL_Tag_Init nodes.
5895 * scil_ll.ads, scil_ll.adb: New files.
5896 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
5899 2010-06-23 Robert Dewar <dewar@adacore.com>
5901 * sem_ch6.adb: Minor reformatting.
5903 2010-06-23 Doug Rupp <rupp@adacore.com>
5905 * bindusg.adb (Display): Write -Hnn line.
5906 * bindgen.adb (Gen_Adainit_Ada): Write Heap_Size to binder file as
5908 * init.c (__gl_heap_size): Rename from __gl_no_malloc_64 and change
5909 valid values to 32 and 64.
5910 (GNAT$NO_MALLOC_64): Recognize TRUE, 1, FALSE, and 0 in addition to
5911 ENABLE, DISABLE as valid settings.
5912 * switch-b.adb (Scan_Binder_Switches): Process -Hnn switch.
5913 * opt.ads (Heap_Size): New global variable.
5914 * gcc-interface/utils2.c (maybe_wrap_malloc): Remove mostly redundant
5915 TARGET_MALLOC64 check. Fix comment.
5917 2010-06-23 Robert Dewar <dewar@adacore.com>
5919 * sem_ch6.adb, exp_ch4.adb, s-rannum.ads, sem.adb, sem_ch12.adb: Minor
5920 reformatting. Add comments.
5921 * errout.adb (Finalize): Properly adjust warning count when deleting
5924 2010-06-22 Robert Dewar <dewar@adacore.com>
5926 * errout.adb (Finalize): Set Prev pointers.
5927 (Finalize): Delete continuations for deletion by warnings off(str).
5928 * erroutc.ads: Add Prev pointer to error message structure.
5930 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5932 * sem.adb (Do_Unit_And_Dependents): If the spec of the main unit is a
5933 child unit, examine context of parent units to locate instantiated
5934 generics whose bodies may be needed.
5935 * sem_ch12.adb: (Mark_Context): if the enclosing unit does not have a
5936 with_clause for the instantiated generic, examine the context of its
5937 parents, to set Withed_Body flag, so that it can be visited earlier.
5938 * exp_ch4.adb (Expand_N_Op_Not): If this is a VMS operator applied to
5939 an unsigned type, use a type of the proper size for the intermediate
5940 value, to prevent alignment problems on unchecked conversion.
5942 2010-06-22 Geert Bosch <bosch@adacore.com>
5944 * s-rannum.ads Change Generator type to be self-referential to allow
5945 Random to update its argument. Use "in" mode for the generator in the
5946 Reset procedures to allow them to be called from the Ada.Numerics
5947 packages without tricks.
5948 * s-rannum.adb: Use the self-referencing argument to get write access
5949 to the internal state of the random generator.
5950 * a-nudira.ads: Make Generator a derived type of
5951 System.Random_Numbers.Generator.
5952 * a-nudira.adb: Remove use of 'Unrestricted_Access.
5953 Put subprograms in alpha order and add headers.
5954 * g-mbdira.ads: Change Generator type to be self-referential.
5955 * g-mbdira.adb: Remove use of 'Unrestricted_Access.
5957 2010-06-22 Robert Dewar <dewar@adacore.com>
5959 * freeze.adb: Minor reformatting
5960 Minor code reorganization (use Nkind_In and Ekind_In).
5962 2010-06-22 Bob Duff <duff@adacore.com>
5964 * gnat1drv.adb (Gnat1drv): Remove the messages that recommend using
5965 -gnatc when a file is compiled that we cannot generate code for, not
5966 helpful and confusing.
5968 2010-06-22 Vincent Celier <celier@adacore.com>
5970 * switch-m.adb (Normalize_Compiler_Switches): Process correctly
5973 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
5975 * s-rannum.adb: Replace constants with commented symbols.
5976 * s-rannum.ads: Explain significance of the initial value of the data
5979 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5981 * a-ngcoty.adb: Clarify comment.
5983 2010-06-22 Gary Dismukes <dismukes@adacore.com>
5985 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Return without
5986 expansion for indexing packed arrays with small power-of-2 component
5987 sizes when the target is AAMP.
5988 (Expand_Packed_Element_Reference): Return without expansion for
5989 indexing packed arrays with small power-of-2 component sizes when the
5992 2010-06-22 Geert Bosch <bosch@adacore.com>
5994 * exp_ch4.adb (Expand_N_In): Do not substitute a valid check for X in
5997 2010-06-22 Robert Dewar <dewar@adacore.com>
5999 * g-mbdira.adb, g-mbflra.adb, a-nuflra.adb, a-nudira.adb: Minor comment
6002 2010-06-22 Doug Rupp <rupp@adacore.com>
6004 * system-vms.ads, system-vms-zcx.ads: Remove old unused VMS system
6006 * system-vms_64.ads, system-vms-ia64.ads: Minor reformatting.
6007 (pragma Ident): Add a default ident string in the private part.
6009 2010-06-22 Robert Dewar <dewar@adacore.com>
6011 * cstand.adb: Minor reformatting.
6013 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6015 * freeze.adb (Build_And_Analyze_Renamed_Body): For expansion purposes,
6016 recognize the Shift and Rotation intrinsics that are known to the
6017 compiler but have no interface name.
6019 2010-06-22 Geert Bosch <bosch@adacore.com>
6021 * a-ngcoty.adb ("*"): Rewrite complex multiplication to use proper
6022 scaling in case of overflow or NaN results.
6024 2010-06-22 Robert Dewar <dewar@adacore.com>
6026 * cstand.adb: Complete previous change.
6027 * g-dirope.ads: Add comment.
6028 * s-stchop.adb, sfn_scan.adb: Minor reformatting.
6030 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6032 * cstand.adb: Add tree nodes for pragma Pack on string types.
6034 2010-06-22 Javier Miranda <miranda@adacore.com>
6036 * einfo.ads, einfo.adb (Last_Formal): New synthesized attribute.
6037 * exp_util.adb (Find_Prim_Op): Use new attribute to locate the last
6038 formal of a primitive.
6039 * exp_disp.adb (Is_Predefined_Dispatching_Operation,
6040 Is_Predefined_Dispatching_Alias): Use new attribute to locate the last
6041 formal of a primitive.
6042 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Use new attribute
6043 to obtain the last formal of a primitive.
6045 2010-06-22 Geert Bosch <bosch@adacore.com>
6047 * sysdep.c, init.c, adaint.c, cstreams.c: Remove conditional code
6048 depending on __EMX__ or MSDOS being defined.
6049 * i-cstrea.ads, gnat_rm.texi: Remove mentions of OS/2, DOS and Xenix.
6050 * a-excpol-abort.adb: Update comment indicating users of the file.
6051 * xref_lib.adb, sfn_scan.adb: Remove mention of OS/2, replace NT by
6053 * env.c: Remove empty conditional for MSDOS.
6054 * s-stchop.adb, g-dirope.ads, s-fileio.adb, osint.ads: Remove mention
6057 2010-06-22 Robert Dewar <dewar@adacore.com>
6059 * s-rannum.adb: Minor reformatting.
6061 2010-06-22 Javier Miranda <miranda@adacore.com>
6063 * sem_aux.adb, sem_aux.ads, sem_util.adb, sem_util.ads, sem_elim.adb,
6064 exp_cg.adb: Minor code reorganization: Move routine Ultimate_Alias from
6065 package Sem_Util to package Sem_Aux.
6067 2010-06-22 Javier Miranda <miranda@adacore.com>
6069 * exp_disp.adb (Make_Secondary_DT, Make_DT): Minor code cleanup:
6070 remove useless restriction on imported routines when building the
6073 2010-06-22 Robert Dewar <dewar@adacore.com>
6075 * cstand.adb (Create_Standard): Set Has_Pragma_Pack for standard string
6078 2010-06-22 Javier Miranda <miranda@adacore.com>
6080 * sem_ch4.adb (Collect_Generic_Type_Ops): Protect code that handles
6081 generic subprogram declarations to ensure proper context. Add missing
6082 support for generic actuals.
6083 (Try_Primitive_Operation): Add missing support for concurrent types
6084 that have no Corresponding_Record_Type. Required to diagnose errors
6086 generics or when compiling with no code generation (-gnatc).
6087 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Do not build
6088 the corresponding record type.
6089 * sem_disp.ads, sem_disp.adb (Check_Dispatching_Operation): Complete
6090 documentation. Do minimum decoration when processing a primitive of a
6091 concurrent tagged type that covers interfaces. Required to diagnose
6092 errors in the Object.Operation notation compiling generics or under
6094 * exp_ch9.ads, exp_ch9.adb (Build_Corresponding_Record): Add missing
6095 propagation of attribute Interface_List to the corresponding record.
6096 (Expand_N_Task_Type_Declaration): Code cleanup.
6097 (Expand_N_Protected_Type_Declaration): Code cleanup.
6099 2010-06-22 Matthew Heaney <heaney@adacore.com>
6101 * a-convec.adb, a-coinve.adb: Removed 64-bit types Int and UInt.
6103 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6105 * s-rannum.adb (Random_Float_Template): Replace with unbiased version
6106 that is able to produce all representable floating-point numbers in the
6107 unit interval. Remove template parameter Shift_Right, no longer used.
6108 * gnat_rm.texi: Document the period of the pseudo-random number
6109 generator under the description of its algorithm.
6110 * gcc-interface/Make-lang.in: Update dependencies.
6112 2010-06-22 Thomas Quinot <quinot@adacore.com>
6114 * exp_aggr.adb (Rewrite_Discriminant): Fix predicate used to identify
6115 reference to discriminant (can be an expanded name as well as an
6118 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6120 * exp_ch6.adb: Clarify comment.
6122 2010-06-22 Geert Bosch <bosch@adacore.com>
6124 * exp_imgv.adb (Expand_Image_Attribute): Treat ordinary fixed point
6125 with decimal small as decimal types, avoiding FP arithmetic.
6126 (Has_Decimal_Small): New function.
6127 * einfo.ads, einfo.adb (Aft_Value): New synthesized attributed for
6129 * sem_attr.adb (Eval_Attribute): Remove Aft_Value function and update
6130 callers to call the new function in Einfo that takes the entity as
6133 2010-06-22 Robert Dewar <dewar@adacore.com>
6135 * sem_ch3.adb, sem_ch8.adb: Minor reformatting.
6137 2010-06-22 Thomas Quinot <quinot@adacore.com>
6139 * sem_elab.adb: Minor reformatting.
6141 2010-06-22 Vincent Celier <celier@adacore.com>
6143 * gnatsym.adb: Put the object files in the table in increasing
6144 aphabetical order of base names.
6146 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6148 * sem_ch8.adb (Set_Entity_Or_Discriminal): New procedure used by
6149 Find_Direct_Name and Find_Expanded_Name, to replace a discriminant with
6150 the corresponding discriminal within a record declaration.
6152 2010-06-22 Thomas Quinot <quinot@adacore.com>
6154 * exp_aggr.adb (Rewrite_Discriminant): Rewriting must occur only for an
6155 expression referring to a discriminal of the type of the aggregate (not
6156 a discriminal of some other unrelated type), and the prefix in the
6157 generated selected component must come from Lhs, not Obj.
6159 2010-06-22 Thomas Quinot <quinot@adacore.com>
6161 * sem_ch3.adb (Build_Derived_Record_Type): Fix predicate determining
6162 when to freeze the parent type.
6164 2010-06-22 Robert Dewar <dewar@adacore.com>
6166 * s-rannum.adb, a-nudira.adb, types.ads, freeze.adb, sem_aggr.adb,
6167 exp_aggr.adb: Minor reformatting.
6168 * gnat_rm.texi: Document GNAT.MBBS_Discrete_Random and
6169 GNAT.MBSS_Float_Random.
6170 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: Fix header.
6172 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6174 * a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-nuflra.ads,
6175 gnat_rm.texi, impunit.adb, Makefile.rtl, s-rannum.adb
6176 (Random_Float_Template, Random): New method of creating
6177 uniform floating-point variables that allow the creation of all machine
6180 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: New file.
6182 2010-06-22 Gary Dismukes <dismukes@adacore.com>
6184 * sem_ch5.adb (Analyze_Assignment): Revise test for illegal assignment
6185 to abstract targets to check that the type is tagged and comes from
6186 source, rather than only testing for targets of interface types. Remove
6189 2010-06-22 Vincent Celier <celier@adacore.com>
6191 * vms_data.ads: Modify the declarations of qualifiers
6192 /UNCHECKED_SHARED_LIB_IMPORTS to allow the generation of gnat.hlp
6195 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6197 * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false if
6198 expansion is disabled.
6200 2010-06-22 Robert Dewar <dewar@adacore.com>
6202 * makeusg.adb: Minor reformatting.
6204 2010-06-22 Robert Dewar <dewar@adacore.com>
6206 * types.ads: (Dint): Removed, no longer used anywhere.
6207 * uintp.adb (UI_From_CC): Use UI_From_Int, range is sufficient.
6208 (UI_Mul): Avoid use of UI_From_Dint.
6209 (UI_From_Dint): Removed, not used.
6210 * uintp.ads (UI_From_Dint): Removed, not used.
6211 (Uint_Min/Max_Simple_Mul): New constants.
6213 2010-06-22 Vincent Celier <celier@adacore.com>
6215 * clean.adb (Parse_Cmd_Line): Recognize switch
6216 --unchecked-shared-lib-imports.
6217 (Usage): Add line for switch --unchecked-shared-lib-imports
6218 * makeusg.adb: Add line for switch --unchecked-shared-lib-imports
6219 * makeutl.ads: (Unchecked_Shared_Lib_Imports): New constant string
6220 moved from GPR_Util.
6221 * switch-m.adb (Scan_Make_Switches): Recognize switch
6222 --unchecked-shared-lib-imports.
6223 * vms_data.ads: Add VMS qualifiers /UNCHECKED_SHARED_LIB_IMPORTS.
6224 * gnat_ugn.texi: Add documentation for new switch
6225 --unchecked-shared-lib-imports. Add also documentation for --subdirs.
6227 2010-06-22 Javier Miranda <miranda@adacore.com>
6229 * sem_prag.adb, sem_util.adb, sem_util.ads, sem_attr.adb, exp_ch6.adb,
6230 exp_disp.adb, sem_eval.adb, exp_dist.adb lib-xref.adb: Code cleanup,
6231 this patch replaces duplication of code that traverses the chain of
6232 aliased primitives by a call to routine Ultimate_Alias that
6233 provides this functionality.
6235 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6237 * fmap.adb, opt.ads, osint.adb, osint.ads, output.ads, scng.adb,
6238 sinput-c.adb, switch-m.ads, tree_io.ads: Use simpler form of
6241 2010-06-22 Thomas Quinot <quinot@adacore.com>
6243 * einfo.ads: Minor reformatting.
6245 2010-06-22 Javier Miranda <miranda@adacore.com>
6247 * exp_disp.adb (Expand_Interface_Thunk): Do not generate thunk of
6248 eliminated primitives.
6249 (Make_DT): Avoid referencing eliminated primitives.
6250 (Register_Primitive): Do not register eliminated primitives in the
6251 dispatch table. Required to add this functionality when the program is
6252 compiled without static dispatch tables (-gnatd.t)
6254 2010-06-22 Emmanuel Briot <briot@adacore.com>
6256 * fmap.adb, scng.adb, switch-m.ads, sinput-c.adb, opt.ads, output.ads,
6257 tree_io.ads, osint.adb, osint.ads: Use configuration pragmas to prevent
6258 warnings on use of internal GNAT units.
6260 2010-06-22 Jose Ruiz <ruiz@adacore.com>
6262 * s-taprop-vxworks.adb (Set_Priority): Update comments.
6264 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6266 * s-rannum.adb: Make stylistic change to remove mystery constant in
6267 Extract_Value. Image_Numeral_Length: new symbolic constant.
6269 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6271 * einfo.ads, einfo.adb: Make Is_Protected_Interface,
6272 Is_Synchronized_Interface, Is_Task_Interface into computable
6273 predicates, to free three flags in entity nodes.
6274 * sem_ch3.adb: Remove setting of these flags.
6276 2010-06-22 Robert Dewar <dewar@adacore.com>
6278 * uintp.adb, osint.adb, prj-conf.adb, prj-part.adb, prj.adb: Minor
6280 * s-taprop-vxworks.adb: Add comment for Set_Priority.
6281 * impunit.adb (Map_Array): Add entries for s-htable.ads and s-crc32.ads
6282 * projects.texi: Move @cindex to the left margin, since otherwise we
6283 are missing entries in the index.
6285 2010-06-22 Emmanuel Briot <briot@adacore.com>
6287 * prj-part.adb, prj.adb, tempdir.ads, makeutl.adb: Use
6288 packages from the GNAT hierarchy instead of System when possible.
6289 * gcc-interface/Make-lang.in: Update dependencies.
6291 2010-06-22 Jose Ruiz <ruiz@adacore.com>
6293 * s-taprop-vxworks.adb (Set_Priority): Remove the code that was
6294 previously in place to reorder the ready queue when a task drops its
6295 priority due to the loss of inherited priority.
6297 2010-06-22 Vincent Celier <celier@adacore.com>
6299 * projects.texi: Minor spelling error fixes.
6302 2010-06-22 Emmanuel Briot <briot@adacore.com>
6304 * prj-part.adb, prj-ext.adb, prj.adb, makeutl.adb, prj-conf.adb: Remove
6305 warnings for some with clauses.
6307 2010-06-22 Robert Dewar <dewar@adacore.com>
6309 * errout.adb (Unwind_Internal_Type): Improve handling of First_Subtype
6310 test to catch more cases where first subtype is the results we want.
6311 * sem_res.adb (Make_Call_Into_Operator): Don't go to First_Subtype in
6312 error case, since Errout will now handle this correctly.
6313 * gcc-interface/Make-lang.in: Add Sem_Aux to list of GNATBIND objects.
6314 Update dependencies.
6316 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6318 * exp_ch4.adb (Expand_Allocator_Expression): Set Related_Node properly
6319 when calling Make_Temporary.
6321 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6323 * sem_ch3.adb (Access_Subprogram_Declaration): An anonymous access to
6324 subprogram can be associated with an entry body.
6326 2010-06-22 Robert Dewar <dewar@adacore.com>
6328 * scos.ads: Add note on membership test handling.
6330 2010-06-22 Vincent Celier <celier@adacore.com>
6332 * projects.texi: Minor spelling fixes.
6335 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6337 * s-rannum.adb: Correct off-by-one error in Extract_Value.
6339 2010-06-22 Vincent Celier <celier@adacore.com>
6341 * mlib-prj.adb (Display): In non verbose mode, truncate after fourth
6343 * mlib-utl.adb (Gcc): In non verbose mode, truncate the display of the
6344 gcc command if it is too long.
6346 2010-06-22 Robert Dewar <dewar@adacore.com>
6348 * errout.adb (Set_Msg_Node): Fix incorrect reference to node.
6350 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6352 * exp_ch6.adb (Expand_Actuals): Use Actual as the related node when
6353 calling Make_Temporary.
6355 2010-06-22 Robert Dewar <dewar@adacore.com>
6357 * sem_res.adb, sem_aux.adb, errout.adb: Minor reformatting.
6359 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6361 * sem_res.adb: Additional special-case for VMS.
6363 2010-06-22 Vincent Celier <celier@adacore.com>
6365 * gnatsym.adb: Minor comment fix.
6367 2010-06-22 Vincent Celier <celier@adacore.com>
6369 * prj-nmsc.adb (Process_Naming_Scheme): Initialize Lib_Data_Table.
6371 2010-06-22 Robert Dewar <dewar@adacore.com>
6373 * par-ch4.adb (P_Name): Recognize 'Mod attribute in Ada 95 mode
6374 * sem_attr.adb (Attribute_05): Add Name_Mod so that 'Mod recognized in
6375 Ada 95 mode as an implementation defined attribute.
6377 2010-06-22 Vincent Celier <celier@adacore.com>
6379 * bindusg.adb (Display): Update line for -R
6380 * switch-b.adb (Scan_Binder_Switches): Allow generation of the binder
6381 generated files when -R is used.
6383 2010-06-22 Vincent Celier <celier@adacore.com>
6385 * prj-nmsc.adb (Lib_Data_Table): New table.
6386 (Check_Library_Attributes): Check if the same library name is used in
6387 two different projects that do not extend each other.
6389 2010-06-22 Robert Dewar <dewar@adacore.com>
6391 * lib-writ.ads, errout.adb, einfo.adb, einfo.ads: Minor reformatting.
6393 2010-06-22 Vincent Celier <celier@adacore.com>
6395 * adaint.c (__gnat_locate_regular_file): If a directory in the path is
6396 empty, make it the current working directory.
6398 2010-06-22 Thomas Quinot <quinot@adacore.com>
6400 * sem_ch3.adb (Build_Derived_Record_Type): When deriving a tagged
6401 private type with discriminants, make sure the parent type is frozen.
6403 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
6405 * exp_attr.adb (Expand_N_Attribute_Reference) <Attribute_Bit>: Deal
6406 with packed array references specially.
6407 * exp_ch4.adb (Expand_N_Indexed_Component): Do not convert a reference
6408 to a component of a bit packed array if it is the prefix of 'Bit.
6409 * exp_pakd.ads (Expand_Packed_Bit_Reference): Declare.
6410 * exp_pakd.adb (Expand_Packed_Bit_Reference): New procedure. Expand a
6411 'Bit reference, where the prefix involves a packed array reference.
6412 (Get_Base_And_Bit_Offset): New helper, extracted from...
6413 (Expand_Packed_Address_Reference): ...here. Call above procedure to
6414 get the outer object and offset expression.
6416 2010-06-22 Thomas Quinot <quinot@adacore.com>
6418 * exp_attr.adb, lib-writ.ads, bindgen.adb: Minor reformatting.
6419 * einfo.adb (Related_Expression, Set_Related_Expression): Add
6422 2010-06-22 Javier Miranda <miranda@adacore.com>
6424 * sem_ch3.adb (Add_Internal_Interface_Entities): Minor code
6425 reorganization to properly check if the operation has been inherited as
6426 an abstract operation.
6428 2010-06-22 Ed Falis <falis@adacore.com>
6430 * s-osinte-vxworks.ads: Complete previous change.
6432 2010-06-22 Thomas Quinot <quinot@adacore.com>
6434 * sem_res.adb: Add comment.
6435 * projects.texi, gnat_ugn.texi: Remove macro.
6437 2010-06-22 Vincent Celier <celier@adacore.com>
6439 * prj-attr.adb: Remove project level attribute Main_Language.
6441 2010-06-22 Robert Dewar <dewar@adacore.com>
6443 * switch-b.adb, osint-b.adb: Minor reformatting.
6445 2010-06-22 Pascal Obry <obry@adacore.com>
6447 * g-socthi-mingw.adb (C_Sendmsg): Do not attempt to send data from a
6448 vector if previous send was not fully successful. If only part of
6449 the vector data was sent, we exit the loop.
6451 2010-06-22 Thomas Quinot <quinot@adacore.com>
6453 * sem_res.adb (Make_Call_Into_Operator): Use First_Subtype for better
6454 error reporting with generic types.
6456 2010-06-22 Thomas Quinot <quinot@adacore.com>
6458 * bindgen.adb, bindusg.adb, gnatbind.adb, gnat_ugn.texi, opt.ads,
6459 osint-b.adb, osint-b.ads, output.adb, output.ads, switch-b.adb,
6460 vms_data.ads: Add a new command line switch -A to gnatbind to output
6461 the list of all ALI files for the partition.
6463 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6465 * s-osinte-vxworks.ads: Fix casing.
6466 * s-vxwext-kernel.ads, s-vxwext-rtp.ads: Complete previous
6467 change: Interfaces.C does not provide a long_long type.
6469 2010-06-22 Emmanuel Briot <briot@adacore.com>
6471 * gnat_ugn.texi, projects.texi: Preprocess projects.texi for VMS and
6472 native user's guide, since this document contains the two versions.
6473 * gcc-interface/Make-lang.in: Update doc dependencies.
6475 2010-06-22 Robert Dewar <dewar@adacore.com>
6477 * sem_ch3.adb: Minor reformatting. Minor code reorganization.
6479 2010-06-22 Emmanuel Briot <briot@adacore.com>
6481 * gnat_ugn.texi, projects.texi: Remove toplevel menu, since we should
6482 not build this file on its own (only through gnat_ugn.texi).
6483 Remove macro definitions and insert simpler version in gnat_ugn.texi.
6485 2010-06-22 Robert Dewar <dewar@adacore.com>
6487 * ali-util.ads: Minor comment update.
6488 * g-socthi-mingw.adb: Minor reformatting.
6490 2010-06-22 Ed Falis <falis@adacore.com>
6492 * s-osinte-vxworks.ads: Take sigset_t definition of System.VxWorks.Ext.
6493 * s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads: Define sigset_t
6494 for specific versions of VxWorks.
6496 2010-06-22 Emmanuel Briot <briot@adacore.com>
6498 * gnat_rm.texi, gnat_ugn.texi, projects.texi: Remove all project files
6499 related sections from user's guide and reference manual, since they
6500 have now been merged together into a separate document (projects.texi).
6501 This removes a lot of duplication where attributes where described
6503 The grammar for the project files is now in each of the sections
6504 (packages,expressions,...) instead of being duplicates in two other
6505 sections (one in the user's guide that contained the full grammar,
6506 and various sections in the rm that contained extracts of the same
6508 Added the full list of all supported attributes, since existing lists
6510 Rename "associative array" into "indexed attribute"
6511 Remove sections that were duplicates ("External References in
6512 Project Files" and "External Values", and "Project Extensions"
6513 for instance). The list of valid packages in project files is now in
6516 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6518 * sem_ch3.adb (Add_Internal_Interface_Entities): If
6519 Find_Primitive_Covering_Interface does not find the operation, it may
6520 be because of a name conflict between the inherited operation and a
6521 local non-overloadable name. In that case look for the operation among
6522 the primitive operations of the type. This search must succeed
6523 regardless of visibility.
6525 2010-06-22 Pascal Obry <obry@adacore.com>
6527 * g-socthi-mingw.adb: Properly honor MSG_WAITALL in recvmsg.
6528 (C_Recvmsg): Propely honor the MSG_WAITALL flag in Windows
6531 2010-06-22 Robert Dewar <dewar@adacore.com>
6533 * sem_ch4.adb (Analyze_Conditional_Expression): Defend against
6535 * sprint.adb (Sprint_Node_Actual, case N_Conditional_Expression):
6538 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6540 * s-intman-vxworks.ads: Code clean up.
6542 2010-06-22 Thomas Quinot <quinot@adacore.com>
6544 * sem_res.adb (Resolve_Slice): When the prefix is an explicit
6545 dereference, construct actual subtype of designated object to generate
6546 proper bounds checks.
6548 2010-06-22 Thomas Quinot <quinot@adacore.com>
6550 * ali-util.adb, ali-util.ads, gnatbind.adb (Read_ALI): Rename to
6551 Read_Withed_ALIs, which is more descriptive.
6553 2010-06-22 Pascal Obry <obry@adacore.com>
6555 * g-sothco.ads: Minor reformatting.
6556 * g-socthi-mingw.adb: Remove part of work on the C_Recvmsg and
6557 C_Sendmsg implementation.
6558 (C_Sendmsg): Do not use lock (not needed).
6559 (C_Recvmsg): Likewise and also do not wait for incoming data.
6561 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6563 * uintp.adb: Fix scope error in operator call.
6565 2010-06-22 Vincent Celier <celier@adacore.com>
6567 * makeutl.adb (Executable_Prefix_Path): on VMS, return "/gnu/".
6568 * prj-conf.adb (Get_Or_Create_Configuration_File): On VMS, if
6569 autoconfiguration is needed, fail indicating that no config project
6570 file can be found, as there is no autoconfiguration on VMS.
6572 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6574 * sem_res.adb (Make_Call_Into_Operator): Diagnose an incorrect scope
6575 for an operator in a functional notation, when operands are universal.
6577 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6579 * gcc-interface/Make-lang.in: Update dependencies.
6581 2010-06-22 Robert Dewar <dewar@adacore.com>
6583 * sem_aggr.adb (Resolve_Record_Aggregate): Do style check on component
6585 * sem_ch10.adb (Analyze_Subunit): Do style check on parent unit name.
6586 * sem_ch8.adb (Find_Direct_Name): For non-overloadable entities, do
6588 * sem_res.adb (Resolve_Entity_Name): Do style check for enumeration
6591 2010-06-22 Vincent Celier <celier@adacore.com>
6593 * make.adb (Scan_Make_Arg): No longer pass -nostdlib to the compiler as
6594 it has no effect. Always pass -nostdlib to gnatlink, even on VMS.
6596 2010-06-22 Pascal Obry <obry@adacore.com>
6598 * g-socthi-mingw.adb: Fix implementation of the vectored sockets on
6600 (C_Recvmsg): Make sure the routine is atomic. Also fully
6601 fill vectors in the proper order.
6602 (C_Sendmsg): Make sure the routine is atomic.
6604 2010-06-22 Robert Dewar <dewar@adacore.com>
6606 * sem_ch8.adb: Update comment.
6607 * sem_res.adb: Minor code reorganization (use Ekind_In).
6609 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6611 * sem_ch8.adb (Add_Implicit_Operator): If the context of the expanded
6612 name is a call, use the number of actuals to determine whether this is
6613 a binary or unary operator, rather than relying on later information
6614 to resolve the overload.
6616 2010-06-22 Robert Dewar <dewar@adacore.com>
6618 * sem_ch10.adb, sem_aggr.adb: Minor reformatting.
6620 2010-06-22 Robert Dewar <dewar@adacore.com>
6622 * sem_ch3.adb, sem_disp.adb: Minor code fixes.
6623 * sem_eval.adb: Minor reformatting.
6625 2010-06-22 Vincent Celier <celier@adacore.com>
6627 * make.adb (Scan_Make_Arg): When invoked with -nostdlib, pass -nostdlib
6628 to gnatlink, except on Open VMS.
6629 * osint.adb (Add_Default_Search_Dirs): Do not suppress the default
6630 object directories if -nostdlib is used.
6632 2010-06-22 Robert Dewar <dewar@adacore.com>
6634 * sem_util.adb (Is_Delegate): Put in proper alpha order.
6635 * sem_eval.adb: Minor reformatting.
6637 2010-06-22 Robert Dewar <dewar@adacore.com>
6639 * g-expect-vms.adb, sem_res.adb: Minor reformatting.
6640 * exp_aggr.adb: Minor comment changes and reformatting.
6641 * sem_eval.adb (Find_Universal_Operator_Type): Put in proper alpha
6643 * sem_util.ads: Add some missing pragma Inline's.
6645 2010-06-22 Thomas Quinot <quinot@adacore.com>
6647 * sem_util.adb (Build_Actual_Subtype): Record original expression in
6648 Related_Expression attribute of the constructed subtype.
6649 * einfo.adb, einfo.ads (Underlying_View): Move to Node28 to free up
6650 Node24 on types for...
6651 (Related_Expression): Make attribute available on types as well.
6653 2010-06-22 Gary Dismukes <dismukes@adacore.com>
6655 * exp_util.adb (Find_Interface_ADT): Retrieve Designated_Type instead
6656 of Directly_Designated_Type when the type argument is an access type.
6657 (Find_Interface_Tag): Retrieve Designated_Type instead of
6658 Directly_Designated_Type when the type argument is an access type.
6659 (Has_Controlled_Coextensions): Retrieve Designated_Type instead of
6660 Directly_Designated_Type of each access discriminant.
6661 * sem_res.adb (Resolve_Type_Conversion): Retrieve Designated_Type
6662 instead of Directly_Designated_Type when the operand and target types
6665 2010-06-22 Thomas Quinot <quinot@adacore.com>
6667 * exp_aggr.adb (Flatten): Return False if one choice is statically
6668 known to be out of bounds.
6670 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6672 * sem_res.adb (Resolve_Call): If the call is rewritten as an indexed of
6673 a parameterless function call, preserve parentheses of original
6674 expression, for proper handling by pretty printer.
6675 * sem_attr.adb (Analyze_Attribute, case 'Old): Add guard to Process
6676 procedure, to handle quietly identifiers that have no entity names.
6677 * exp_util.adb (Get_Current_Value_Condition): If the parent of an
6678 elsif_part is missing, it has been rewritten as a nested if, and there
6679 is no useful information on the current value of the variable.
6681 2010-06-22 Gary Dismukes <dismukes@adacore.com>
6683 * sem_ch3.adb (Build_Discriminal): Set default scopes for newly created
6684 discriminals to the current scope.
6685 * sem_util.adb (Find_Body_Discriminal): Remove setting of discriminal's
6686 scope, which could overwrite a different already set value.
6688 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6690 * sem_res.adb (Valid_Conversion): If expression is a predefined
6691 operator, use sloc of type of interpretation to improve error message
6692 when operand is of some derived type.
6693 * sem_eval.adb (Is_Mixed_Mode_Operand): New function, use it.
6695 2010-06-22 Emmanuel Briot <briot@adacore.com>
6697 * g-expect-vms.adb (Expect_Internal): No longer raises an exception, so
6698 that it can set out parameters as well. When a process has died, reset
6699 its Input_Fd to Invalid_Fd, so that when using multiple processes we
6700 can find out which process has died.
6702 2010-06-22 Thomas Quinot <quinot@adacore.com>
6704 * sem_eval.adb (Find_Universal_Operator_Type): New
6705 subprogram to identify the operand type of an operator on universal
6706 operands, when an explicit scope indication is present. Diagnose the
6707 case where such a call is ambiguous.
6708 (Eval_Arithmetic_Op, Eval_Relational_Op, Eval_Unary_Op):
6709 Use the above to identify the operand type so it can be properly
6711 * sem_res.adb (Make_Call_Into_Operator): Remove bogus freeze of operand
6712 type, done in an arbitrary, possibly incorrect type (the presence of
6713 some numeric type in the scope is checked for legality, but when more
6714 than one such type is in the scope, we just pick a random one, not
6715 necessarily the expected one).
6716 * sem_utils.ads, sem_utils.adb (Is_Universal_Numeric_Type): New utility
6719 2010-06-22 Robert Dewar <dewar@adacore.com>
6721 * sem_eval.adb: Minor reformatting.
6723 2010-06-22 Robert Dewar <dewar@adacore.com>
6725 * exp_ch4.adb (Expand_N_Conditional_Expression): Use
6726 Expression_With_Actions to clean up the code generated when folding
6727 constant expressions.
6729 2010-06-22 Vincent Celier <celier@adacore.com>
6731 * g-expect-vms.adb: Add new subprograms Free, First_Dead_Process and
6734 2010-06-22 Vincent Celier <celier@adacore.com>
6736 * prj-nmsc.adb (Find_Sources): When a source from a multi-unit file is
6737 found, check if it's path has aready been found, whatever its index.
6739 2010-06-22 Robert Dewar <dewar@adacore.com>
6741 * atree.adb, gnatbind.adb: Minor reformatting.
6742 Minor code reorganization.
6744 2010-06-21 Robert Dewar <dewar@adacore.com>
6746 * exp_ch4.adb (Expand_N_Conditional_Expression): Fold if condition
6747 known at compile time.
6749 2010-06-21 Gary Dismukes <dismukes@adacore.com>
6751 * atree.adb: Fix comment typo.
6753 2010-06-21 Ed Schonberg <schonberg@adacore.com>
6755 * sem_eval.adb (Test_Ambiguous_Operator): New procedure to check
6756 whether a universal arithmetic expression in a conversion, which is
6757 rewritten from a function call with an expanded name, is ambiguous.
6759 2010-06-21 Vincent Celier <celier@adacore.com>
6761 * prj-nmsc.adb (Name_Location): New Boolean component Listed, to record
6762 source files in specified list of sources.
6763 (Check_Package_Naming): Remove out parameters Bodies and Specs, as they
6765 (Add_Source): Set the Location of the new source
6766 (Process_Exceptions_File_Based): Call Add_Source with the Location
6767 (Get_Sources_From_File): If an exception is found, set its Listed to
6769 (Find_Sources): When Source_Files is specified, if an exception is
6770 found, set its Listed to True. Remove any exception that is not in a
6771 specified list of sources.
6772 * prj.ads (Source_Data): New component Location
6774 2010-06-21 Vincent Celier <celier@adacore.com>
6776 * gnatbind.adb (Closure_Sources): Global table, moved from block.
6778 2010-06-21 Thomas Quinot <quinot@adacore.com>
6780 * sem_res.adb: Minor reformatting.
6781 * atree.adb: New debugging hook "rr" for node rewrites.
6783 2010-06-21 Robert Dewar <dewar@adacore.com>
6785 * g-expect.ads, g-expect.adb: Minor reformatting.
6787 2010-06-21 Emmanuel Briot <briot@adacore.com>
6789 * s-regpat.adb (Next_Pointer_Bytes): New named constant. Code clean up.
6791 2010-06-21 Arnaud Charlet <charlet@adacore.com>
6793 * gcc-interface/Make-lang.in: Update dependencies.
6795 2010-06-21 Thomas Quinot <quinot@adacore.com>
6797 * bindgen.ads: Update comments.
6799 2010-06-21 Vincent Celier <celier@adacore.com>
6801 * gnatbind.adb: Suppress dupicates when listing the sources in the
6802 closure (switch -R).
6804 2010-06-21 Emmanuel Briot <briot@adacore.com>
6806 * s-regpat.adb (Link_Tail): Fix error when size of the pattern matcher
6809 2010-06-21 Emmanuel Briot <briot@adacore.com>
6811 * g-expect.adb, g-expect.ads (First_Dead_Process, Free, Has_Process):
6813 (Expect_Internal): No longer raises an exception, so that it can set
6814 out parameters as well. When a process has died, reset its Input_Fd
6815 to Invalid_Fd, so that when using multiple processes we can find out
6816 which process has died.
6818 2010-06-21 Robert Dewar <dewar@adacore.com>
6820 * s-regpat.adb, s-tpoben.adb, sem_attr.adb, sem_util.adb, sem_util.ads,
6821 checks.adb, sem_res.adb: Minor reformatting. Add comments.
6823 2010-06-21 Ed Schonberg <schonberg@adacore.com>
6825 * sem_ch6.adb (New_Overloaded_Entity): If the new entity is a
6826 rederivation associated with a full declaration in a private part, and
6827 there is a partial view that derives the same parent subprogram, the
6828 new entity does not become visible. This check must be applied to
6829 interface operations as well.
6831 2010-06-21 Thomas Quinot <quinot@adacore.com>
6833 * checks.adb: Add comments.
6834 * prj-nmsc.adb: Minor reformatting.
6836 2010-06-21 Thomas Quinot <quinot@adacore.com>
6838 * sem_ch9.adb, checks.adb, sem_util.adb, sem_util.ads, sem_res.adb,
6839 sem_attr.adb (Get_E_First_Or_Last): Use attribute references on E to
6840 extract bounds, to ensure that we get the proper captured values,
6841 rather than an expression that may have changed value since the point
6842 where the subtype was elaborated.
6843 (Find_Body_Discriminal): New utility subprogram to share code
6845 (Eval_Attribute): For the case of a subtype bound that references a
6846 discriminant of the current concurrent type, insert appropriate
6847 discriminal reference.
6848 (Resolve_Entry.Actual_Index_Type.Actual_Discriminant_Ref): For a
6849 requeue to an entry in a family in the current task, use corresponding
6851 (Analyze_Accept_Statement): Rely on expansion of attribute references
6852 to insert proper discriminal references in range check for entry in
6855 2010-06-21 Emmanuel Briot <briot@adacore.com>
6857 * s-regpat.adb (Compile): Fix handling of big patterns.
6859 2010-06-21 Robert Dewar <dewar@adacore.com>
6861 * a-tifiio.adb: Minor reformatting.
6863 2010-06-21 Pascal Obry <obry@adacore.com>
6865 * prj-nmsc.adb (Search_Directories): Use the non-translated directory
6868 2010-06-21 Javier Miranda <miranda@adacore.com>
6870 * exp_cg.adb (Write_Call_Info): Fill the component sourcename using the
6873 2010-06-21 Ed Schonberg <schonberg@adacore.com>
6875 * exp_ch4.adb (Expand_Concatenate): If an object declaration is created
6876 to hold the result, indicate that the target of the declaration does
6877 not need an initialization, to prevent spurious errors when
6878 Initialize_Scalars is enabled.
6880 2010-06-21 Ed Schonberg <schonberg@adacore.com>
6882 * a-tifiio.adb (Put): In the procedure that performs I/O on a String,
6883 Fore is not bound by line length. The Fore parameter of the internal
6884 procedure that performs the operation is an integer.
6886 2010-06-21 Thomas Quinot <quinot@adacore.com>
6888 * sem_res.adb, checks.adb: Minor reformatting.
6890 2010-06-21 Emmanuel Briot <briot@adacore.com>
6892 * s-regpat.adb (Next_Instruction, Get_Next_Offset): Removed, merged
6894 (Insert_Operator_Before): New subprogram, avoids duplicated code
6895 (Compile): Avoid doing two compilations when the pattern matcher ends
6898 2010-06-21 Emmanuel Briot <briot@adacore.com>
6900 * s-regpat.adb: Improve debug traces
6901 (Dump): Change output format to keep it smaller.
6903 2010-06-21 Javier Miranda <miranda@adacore.com>
6905 * exp_cg.adb (Generate_CG_Output): Disable redirection of standard
6906 output to the output file when this routine completes its work.
6908 2010-06-20 Eric Botcazou <ebotcazou@adacore.com>
6910 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Use while instead of
6911 for loop. Call build_constructor_from_list directly in the CICO case.
6913 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6915 * freeze.adb (Build_And_Analyze_Renamed_Body): If the renaming
6916 declaration appears in the same unit and ealier than the renamed
6917 entity, retain generated body to prevent order-of-elaboration issues in
6920 2010-06-18 Arnaud Charlet <charlet@adacore.com>
6922 * s-tpoben.adb: Update comments.
6924 2010-06-18 Robert Dewar <dewar@adacore.com>
6926 * debug.adb: Minor comment change.
6928 2010-06-18 Javier Miranda <miranda@adacore.com>
6930 * exp_cg.adb: Code clean up.
6931 * debug.adb: Complete documentation of switch -gnatd.Z.
6932 * gcc-interface/misc.c (callgraph_info_file): Declare.
6934 2010-06-18 Javier Miranda <miranda@adacore.com>
6936 * exp_cg.adb (Homonym_Suffix_Length): Minor code reorganization.
6938 2010-06-18 Thomas Quinot <quinot@adacore.com>
6940 * sprint.ads: Minor reformatting.
6941 * output.ads: Update obsolete comment.
6943 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6945 * freeze.adb (Build_And_Analyze_Renamed_Body): if the renamed entity is
6946 an external intrinsic operation (e.g. a GCC numeric function) indicate
6947 that the renaming entity has the same characteristics, so a call to it
6948 is properly expanded.
6950 2010-06-18 Javier Miranda <miranda@adacore.com>
6952 * exp_cg.adb, exp_cg.ads, exp_disp.adb, gnat1drv.adb: Add initial
6953 support for dispatch table/callgraph info generation.
6954 * gcc-interface/Make-lang.in: Update dependencies.
6956 2010-06-18 Robert Dewar <dewar@adacore.com>
6958 * exp_ch6.adb: Minor reformatting.
6959 * gnatname.adb: Add comment.
6961 2010-06-18 Vincent Celier <celier@adacore.com>
6963 * gnatname.adb (Scan_Args): When --and is used, make sure that the
6964 dynamic tables in the newly allocated Argument_Data are properly
6967 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
6969 * gnat1drv.adb: Fix comment.
6971 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6973 * exp_ch6.adb (Expand_Inlined_Call): If the inlined subprogram is a
6974 renaming, re-expand the call with the renamed subprogram if that one
6975 is marked inlined as well.
6977 2010-06-18 Gary Dismukes <dismukes@adacore.com>
6979 * gnat1drv.adb (Adjust_Global_Switches): Enable
6980 Use_Expression_With_Actions for AAMP and VM targets.
6982 2010-06-18 Vincent Celier <celier@adacore.com>
6984 * prj-nmsc.adb (Process_Linker): Recognize response file format GCC.
6986 2010-06-18 Thomas Quinot <quinot@adacore.com>
6988 * exp_ch4.adb: Minor reformatting.
6990 2010-06-18 Javier Miranda <miranda@adacore.com>
6992 * debug.ads Add documentation on -gnatd.Z.
6994 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6996 * sem_elim.adb: Proper error message on improperly eliminated instances
6998 2010-06-18 Vincent Celier <celier@adacore.com>
7000 * prj.ads (Response_File_Format): New value GCC.
7002 2010-06-18 Thomas Quinot <quinot@adacore.com>
7004 * gnat1drv.adb: Minor reformatting.
7006 2010-06-18 Robert Dewar <dewar@adacore.com>
7008 * make.adb, sem_cat.adb: Minor reformatting.
7009 * sem_eval.adb: Fix typos.
7011 2010-06-18 Pascal Obry <obry@adacore.com>
7013 * prj-nmsc.adb: Fix source filenames casing in debug output.
7015 2010-06-18 Robert Dewar <dewar@adacore.com>
7017 * gnatcmd.adb: Minor reformatting.
7019 2010-06-18 Robert Dewar <dewar@adacore.com>
7021 * sem_eval.adb (Eval_Conditional_Expression): Result is static if
7022 condition and both sub-expressions are static (and result is selected
7025 2010-06-18 Robert Dewar <dewar@adacore.com>
7027 * g-pehage.adb: Minor reformatting
7029 2010-06-18 Pascal Obry <obry@adacore.com>
7031 * prj-nmsc.adb (Search_Directories): Insert canonical filenames into
7034 2010-06-18 Arnaud Charlet <charlet@adacore.com>
7036 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
7037 dependencies. Fix target pairs on darwin.
7038 (gnatlib-sjlj, gnatlib-zcx): Pass THREAD_KIND.
7040 2010-06-18 Pascal Obry <obry@adacore.com>
7042 * make.adb, prj-nmsc.adb: Fix source filenames casing in debug output.
7044 2010-06-18 Vincent Celier <celier@adacore.com>
7046 * gnatcmd.adb: For gnatcheck, add -gnatec= switch for a global
7047 configuration pragmas file and, if -U is not used, for a local one.
7049 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7051 * sem_elim.adb (Check_Eliminated): Use full information on entity name
7052 when it is given in the pragma by a selected component.
7053 (Check_For_Eliminated_Subprogram): Do no emit error if within a
7054 instance body that is itself within a generic unit.
7055 * sem_ch12.adb (Analyze_Subprogram_Instance): If the subprogram is
7056 eliminated, mark as well the anonymous subprogram that is its alias
7057 and appears within the wrapper package.
7059 2010-06-18 Bob Duff <duff@adacore.com>
7061 * g-pehage.ads, g-pehage.adb (Produce): Clean up some of the code.
7062 Raise an exception if the output file cannot be opened. Add comments.
7064 2010-06-18 Thomas Quinot <quinot@adacore.com>
7066 * sem_cat.adb (Validate_Object_Declaration): A variable declaration is
7067 not illegal per E.2.2(7) if it occurs in the private part of a
7070 2010-06-18 Arnaud Charlet <charlet@adacore.com>
7072 * par-ch9.adb, sem_aggr.adb, sem_ch3.adb, layout.adb, sem_ch4.adb,
7073 sem_ch5.adb, sem_mech.adb, exp_util.adb, par-ch10.adb, sem_ch6.adb,
7074 par-ch11.adb, sem_ch7.adb, par-prag.adb, exp_disp.adb, par-ch12.adb,
7075 sem_ch8.adb, style.adb, sem_ch9.adb, sem_ch10.adb, prep.adb,
7076 sem_warn.adb, par-util.adb, scng.adb, sem_eval.adb, checks.adb,
7077 sem_prag.adb, sem_ch12.adb, styleg.adb, sem_ch13.adb, par-ch3.adb,
7078 par-tchk.adb, freeze.adb, sfn_scan.adb, par-ch4.adb, sem_util.adb,
7079 sem_res.adb, par-ch5.adb, lib-xref.adb, sem_attr.adb, par-ch6.adb,
7080 sem_disp.adb, prepcomp.adb, par-ch7.adb, sem_elab.adb, exp_ch4.adb,
7081 errout.ads: Update comments. Minor reformatting.
7083 * g-spipat.adb, a-swunau.adb, a-swunau.ads, g-spitbo.adb,
7084 a-szunau.adb, a-szunau.ads, a-stunau.adb, a-stunau.ads,
7085 a-strunb.adb (Big_String. Big_String_Access): New type.
7087 * par-labl.adb, restrict.adb, s-osinte-hpux-dce.ads, sem_ch11.adb,
7088 exp_pakd.adb, s-filofl.ads, par-endh.adb, exp_intr.adb, sem_cat.adb,
7089 sem_case.adb, exp_ch11.adb, s-osinte-linux.ads: Fix copyright notices.
7091 2010-06-18 Geert Bosch <bosch@adacore.com>
7093 * i-forbla-darwin.adb: Include -lgnala and -lm in linker options for
7096 2010-06-18 Robert Dewar <dewar@adacore.com>
7098 * gnat1drv.adb (Adjust_Global_Switches): Set Use_Expression_With_Actions
7101 2010-06-18 Robert Dewar <dewar@adacore.com>
7103 * sprint.adb: Minor format change for N_Expression_With_Actions.
7104 * repinfo.adb: Minor reformatting.
7106 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7108 * sem_elim.adb (Check_Eliminated): If within a subunit, use
7109 Defining_Entity to obtain the name of the entity in the proper body, to
7110 properly handle both separate packages and subprograms.
7112 2010-06-18 Emmanuel Briot <briot@adacore.com>
7114 * prj-nmsc.adb (Check_File): New parameter Display_Path.
7116 2010-06-18 Thomas Quinot <quinot@adacore.com>
7118 * g-socket.adb, g-socket.ads (Null_Selector): New object.
7120 2010-06-18 Pascal Obry <obry@adacore.com>
7122 * gnat_ugn.texi: Minor clarification.
7124 2010-06-18 Emmanuel Briot <briot@adacore.com>
7126 * prj-nmsc.adb (Find_Source_Dirs): Minor refactoring to avoid duplicate
7127 code when using the project dir as the source dir.
7128 (Search_Directories): use the normalized name for the source directory,
7129 where symbolic names have potentially been resolved.
7131 2010-06-18 Robert Dewar <dewar@adacore.com>
7133 * exp_ch4.adb (Expand_N_Conditional_Expression): Clear Actions field
7134 when we create N_Expression_With_Actions node.
7135 (Expand_Short_Circuit): Ditto.
7137 2010-06-18 Robert Dewar <dewar@adacore.com>
7139 * exp_util.adb: Minor reformatting.
7141 2010-06-18 Thomas Quinot <quinot@adacore.com>
7143 * types.ads: Clean up obsolete comments
7144 * tbuild.adb: Minor reformatting.
7145 * exp_ch5.adb, sem_intr.adb, sem_ch10.adb, rtsfind.adb, s-shasto.adb,
7146 exp_strm.adb, aa_drive.adb: Minor reformatting.
7147 * sem_res.adb (Is_Predefined_Operator): An operator that is an imported
7148 intrinsic with an Interface_Name denotes an imported back-end builtin,
7149 and must be rewritten into a call, not left in the tree as an operator,
7150 so return False in that case.
7152 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
7154 * exp_util.adb (Remove_Side_Effects): Make a copy for an allocator.
7156 2010-06-18 Robert Dewar <dewar@adacore.com>
7158 * scos.ads: Add proposed output for case expression
7160 2010-06-18 Jose Ruiz <ruiz@adacore.com>
7162 * gnat_ugn.texi: Document that, when using the RTX compiler to generate
7163 RTSS modules, we need to use the Microsoft linker.
7165 2010-06-18 Robert Dewar <dewar@adacore.com>
7167 * checks.adb (Safe_To_Capture_In_Parameter_Value): Deal with case
7168 expression (cannot count on a particular branch being executed).
7169 * exp_ch4.adb (Expand_N_Case_Expression): New procedure.
7170 * exp_ch4.ads (Expand_N_Case_Expression): New procedure.
7171 * exp_util.adb (Insert_Actions): Deal with proper insertion of actions
7172 within case expression.
7173 * expander.adb (Expand): Add call to Expand_N_Case_Expression
7174 * par-ch4.adb Add calls to P_Case_Expression at appropriate points
7175 (P_Case_Expression): New procedure
7176 (P_Case_Expression_Alternative): New procedure
7177 * par.adb (P_Case_Expression): New procedure
7178 * par_sco.adb (Process_Decisions): Add dummy place holder entry for
7180 * sem.adb (Analyze): Add call to Analyze_Case_Expression
7181 * sem_case.ads (Analyze_Choices): Also used for case expressions now,
7182 this is a documentation change only.
7183 * sem_ch4.ads, sem_ch4.adb (Analyze_Case_Expression): New procedure.
7184 * sem_ch6.adb (Fully_Conformant_Expressions): Add handling of case
7186 * sem_eval.ads, sem_eval.adb (Eval_Case_Expression): New procedure.
7187 * sem_res.adb (Resolve_Case_Expression): New procedure.
7188 * sem_scil.adb (Find_SCIL_Node): Add processing for
7189 N_Case_Expression_Alternative.
7190 * sinfo.ads, sinfo.adb (N_Case_Expression): New node.
7191 (N_Case_Expression_Alternative): New node.
7192 * sprint.adb (Sprint_Node_Actual): Add processing for new nodes
7193 N_Case_Expression and N_Case_Expression_Alternative.
7195 2010-06-18 Robert Dewar <dewar@adacore.com>
7197 * par-ch7.adb, sem_warn.adb, types.ads, par-ch3.adb: Minor
7199 * gnat1drv.adb: Fix typo.
7201 2010-06-18 Robert Dewar <dewar@adacore.com>
7203 * par-prag.adb (Prag, case Style_Checks): All_Checks sets gnat style
7205 * sem_prag.adb (Analyze_Pragma, case Style_Checks): All_Checks sets
7206 gnat style for -gnatg.
7207 * gnat_rm.texi: Add documentation for ALL_CHECKS in GNAT mode.
7209 2010-06-18 Thomas Quinot <quinot@adacore.com>
7211 * sem_eval.adb (Test_In_Range): New subprogram, factoring duplicated
7213 (Is_In_Range, Is_Out_Of_Range): Reimplement in terms of call to
7216 2010-06-18 Robert Dewar <dewar@adacore.com>
7218 * sprint.adb: Minor change in output format for expression wi actions.
7219 * par-ch3.adb: Minor code reorganization. Minor reformatting.
7220 * sem_ch5.adb: Minor comment fix.
7222 2010-06-18 Robert Dewar <dewar@adacore.com>
7224 * debug.adb: New debug flag -gnatd.L to control
7225 Back_End_Handles_Limited_Types.
7226 * exp_ch4.adb (Expand_N_Conditional_Expression): Let back end handle
7227 limited case if Back_End_Handles_Limited_Types is True.
7228 (Expand_N_Conditional_Expression): Use N_Expression_With_Actions to
7229 simplify expansion if Use_Expression_With_Actions is True.
7230 * gnat1drv.adb (Adjust_Global_Switches): Set
7231 Back_End_Handles_Limited_Types.
7232 * opt.ads (Back_End_Handles_Limited_Types): New flag.
7234 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7236 * sem_res.adb (Rewrite_Operator_As_Call): Do not rewrite user-defined
7237 intrinsic operator if expansion is not enabled, because in an
7238 instantiation the original operator must be present to verify the
7239 legality of the operation.
7241 2010-06-18 Robert Dewar <dewar@adacore.com>
7243 * exp_disp.adb, sem_ch12.adb: Minor reformatting
7245 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7247 * exp_util.adb (Make_Subtype_From_Expr): If the unconstrained type is
7248 the class-wide type for a private extension, and the completion is a
7249 subtype, set the type of the class-wide type to the base type of the
7252 2010-06-18 Robert Dewar <dewar@adacore.com>
7254 * g-socket.ads, sem_aggr.adb, einfo.ads, sem_elim.adb,
7255 sem_intr.adb, sem_eval.adb: Minor reformatting
7257 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7259 * sem_type.adb (Is_Ancestor): If either type is private, examine full
7262 2010-06-18 Thomas Quinot <quinot@adacore.com>
7264 * g-socket.adb, g-socket.ads (Check_Selector): Make Selector an IN
7265 parameter rather than IN OUT.
7267 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7269 * exp_ch6.adb: Add extra guard.
7271 2010-06-18 Gary Dismukes <dismukes@adacore.com>
7273 * sem_util.adb (Object_Access_Level): For Ada 2005, determine the
7274 accessibility level of a function call from the level of the innermost
7275 enclosing dynamic scope.
7276 (Innermost_Master_Scope_Depth): New function to find the depth of the
7277 nearest dynamic scope enclosing a node.
7279 2010-06-18 Tristan Gingold <gingold@adacore.com>
7281 * adaint.c: Make ATTR_UNSET static as it is not used outside this file.
7283 2010-06-18 Thomas Quinot <quinot@adacore.com>
7285 * g-socket.ads: Minor reformatting.
7287 2010-06-18 Vincent Celier <celier@adacore.com>
7289 * make.adb (Must_Compile): New Boolean global variable
7290 (Main_On_Command_Line): New Boolean global variable
7291 (Collect_Arguments_And_Compile): Do compile if Must_Compile is True,
7292 even when the project is externally built.
7293 (Start_Compile_If_Possible): Compile in -aL directories if
7294 Check_Readonly_Files is True. Do compile if Must_Compile is True, even
7295 when the project is externally built.
7296 (Gnatmake): Set Must_Compile and Check_Readonly_Files to True when
7297 invoked with -f -u and one or several mains on the command line.
7298 (Scan_Make_Arg): Set Main_On_Command_Line to True when at least one
7299 main is specified on the command line.
7301 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7303 * sem_ch6.adb (Build_Body_For_Inline): Handle
7304 extended_return_statements.
7305 * exp_ch6.adb (Expand_Inlined_Call): when possible, inline a body
7306 containing extented_return statements.
7307 * exp_util.adb (Make_CW_Equivalent_Type): If the root type is already
7308 constrained, do not build subtype declaration.
7310 2010-06-18 Robert Dewar <dewar@adacore.com>
7312 * sem_res.adb (Analyze_Indexed_Component, Analyze_Selected_Component):
7313 Warn on assigning to packed atomic component.
7315 2010-06-18 Robert Dewar <dewar@adacore.com>
7317 * sem_util.ads: Minor reformatting
7318 * einfo.ads, einfo.adb: Minor doc clarification (scope of decls in
7319 Expression_With_Actions).
7320 * snames.ads-tmpl: Minor comment fix
7322 2010-06-18 Robert Dewar <dewar@adacore.com>
7324 * sem_prag.adb (Diagnose_Multiple_Pragmas): New procedure
7325 (Set_Imported): Use Import_Interface_Present to control message output
7326 * sinfo.ads, sinfo.adb (Import_Interface_Present): New flag
7327 * gnat_rm.texi: Document that we can have pragma Import and pragma
7328 Interface for the same subprogram.
7330 2010-06-18 Robert Dewar <dewar@adacore.com>
7332 * lib-xref.adb (Generate_Reference): Fix bad reference to
7333 Has_Pragma_Unreferenced (clients should always use Has_Unreferenced).
7335 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7337 * gcc-interface/trans.c (set_gnu_expr_location_from_node): New static
7339 (gnat_to_gnu) <N_Expression_With_Actions>: New case.
7340 Use set_gnu_expr_location_from_node to set location information on the
7343 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7345 * gcc-interface/Make-lang.in: Update dependencies.
7347 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7349 * sem_util.adb (Is_Atomic_Object): Predicate does not apply to
7352 2010-06-17 Robert Dewar <dewar@adacore.com>
7354 * gnat_rm.texi, gnat_ugn.texi: Clean up documentation on warning and
7355 style check messages.
7356 * sem_res.adb (Resolve_Call): Don't call
7357 Check_For_Eliminated_Subprogram if we are analyzing within a spec
7360 2010-06-17 Robert Dewar <dewar@adacore.com>
7362 * debug.adb: Add documentation for debug flags .X and .Y
7363 * exp_ch4.adb (Expand_Short_Circuit_Operator): Use
7364 Use_Expression_With_Actions.
7365 * gnat1drv.adb (Adjust_Global_Switches): Set
7366 Use_Expression_With_Actions.
7367 * opt.ads (Use_Expression_With_Actions): New switch.
7369 2010-06-17 Robert Dewar <dewar@adacore.com>
7371 * exp_intr.adb: Minor code reorganization (use UI_Max)
7372 * sem_intr.adb: use underlying type to check legality.
7373 * einfo.adb (Known_Static_Esize): False for generic types
7374 (Known_Static_RM_Size): False for generic types
7375 * einfo.ads (Known_Static_Esize): False for generic types
7376 (Known_Static_RM_Size): False for generic types
7378 2010-06-17 Robert Dewar <dewar@adacore.com>
7380 * exp_ch4.ads: Minor code reorganization (specs in alpha order).
7382 2010-06-17 Robert Dewar <dewar@adacore.com>
7384 * debug.adb: New debug flag -gnatd.X to use Expression_With_Actions
7385 node when expanding short circuit form with actions present for right
7387 * exp_ch4.adb: Minor reformatting
7388 (Expand_Short_Circuit_Operator): Use new Expression_With_Actions node
7389 if right opeand has actions present, and debug flag -gnatd.X is set.
7390 * exp_util.adb (Insert_Actions): Handle case of Expression_With_Actions
7392 * nlists.adb (Prepend_List): New procedure
7393 (Prepend_List_To): New procedure
7394 * nlists.ads (Prepend_List): New procedure
7395 (Prepend_List_To): New procedure
7396 * sem.adb: Add processing for Expression_With_Actions
7397 * sem_ch4.adb (Analyze_Expression_With_Actions): New procedure
7398 * sem_ch4.ads (Analyze_Expression_With_Actions): New procedure
7399 * sem_res.adb: Add processing for Expression_With_Actions.
7400 * sem_scil.adb: Add processing for Expression_With_Actions
7401 * sinfo.ads, sinfo.adb (N_Expression_With_Actions): New node.
7402 * sprint.ads, sprint.adb: Add processing for Expression_With_Actions
7404 2010-06-17 Doug Rupp <rupp@adacore.com>
7406 * sem_intr.adb (Check_Intrinsic_Operator): Check that the types
7407 involved both have underlying integer types.
7408 * exp_intr.adb (Expand_Binary_Operator) New subprogram to expand a call
7409 to an intrinsic operator when the operand types or sizes are not
7411 * s-auxdec-vms_64.ads: Revert "+" "-" ops back to Address now that
7412 64/32 Address/Integer works.
7414 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7416 * sem_ch12.adb (Mark_Context): Refine placement of Withed_Body flag, so
7417 that it marks a unit as needed by a spec only if the corresponding
7418 instantiation appears in that spec (and not in the corresponding body).
7419 * sem_elim.adb (Check_Eliminated): If we are within a subunit, the name
7420 in the pragma Eliminate has been parsed as a child unit, but the
7421 current compilation unit is in fact the parent in which the subunit is
7424 2010-06-17 Vincent Celier <celier@adacore.com>
7426 * gnat_rm.texi: Fix typo
7428 2010-06-17 Robert Dewar <dewar@adacore.com>
7430 * sem_util.adb: Minor reformatting
7432 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7434 * sem.adb (Do_Withed_Unit): if the unit in the with_clause is a generic
7435 instance, the clause now denotes the instance body. Traverse the
7436 corresponding spec because there may be no other dependence that will
7437 force the traversal of its own context.
7439 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7441 * sem_ch10.adb (Is_Ancestor_Unit): Subsidiary to
7442 Install_Limited_Context_Clauses, to determine whether a limited_with in
7443 some parent of the current unit designates some other parent, in which
7444 case the limited_with clause must not be installed.
7445 (In_Context): Refine test.
7447 2010-06-17 Gary Dismukes <dismukes@adacore.com>
7449 * sem_util.adb (Collect_Primitive_Operations): In the of an untagged
7450 type with a dispatching equality operator that is overridden (for a
7451 tagged full type), don't include the overridden equality in the list of
7452 primitives. The overridden equality is detected by testing for an
7453 Aliased field that references the overriding equality.
7455 2010-06-17 Robert Dewar <dewar@adacore.com>
7457 * freeze.adb: Minor reformatting.
7459 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
7461 * gnat_ugn.texi: Add a section introducing gdbserver.
7463 2010-06-17 Thomas Quinot <quinot@adacore.com>
7465 * sem_res.adb, sem_ch4.adb, s-stoele.adb, par-labl.adb: Minor
7468 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7470 * sem_aggr.adb (Valid_Ancestor_Type): handle properly the case of a
7471 constrained discriminated parent that is a private type.
7472 (Analyze_Record_Aggregate): when collecting inherited discriminants,
7473 handle properly an ancestor type that is a constrained private type.
7475 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7477 * sem_util.adb (Enclosing_Subprogram): If the called subprogram is
7478 protected, use the protected_subprogram_body only if the original
7479 subprogram has not been eliminated.
7481 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7483 * freeze.adb (Freeze_Expression): The designated type of an
7484 access_to_suprogram type can only be frozen if all types in its profile
7487 2010-06-17 Robert Dewar <dewar@adacore.com>
7489 * par.adb: Minor comment fix
7490 * sem_aggr.adb, sem_ch3.adb: Minor reformatting
7492 2010-06-17 Doug Rupp <rupp@adacore.com>
7494 * s-auxdec-vms_64.ads: Revert Integer to Long_Integer change, instead
7495 change Address to Short_Address in functions where both must be the
7496 same size for intrinsics to work.
7498 2010-06-17 Thomas Quinot <quinot@adacore.com>
7500 * sem_ch4.adb (Analyze_Selected_Component): A selected component may
7501 not denote a (private) component of a protected object.
7503 2010-06-17 Bob Duff <duff@adacore.com>
7505 * par-labl.adb (Try_Loop): Test whether the label and the goto are in
7508 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
7510 * gnat_ugn.texi: Update the documentation about GDB re: exception
7513 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7515 * gnatvsn.ads: Bump to 4.6 version.
7517 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7519 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): The
7520 designated type of the generated pointer is the type of the original
7521 expression, not that of the function call itself, because the return
7522 type may be an untagged derived type and the function may be an
7523 inherited operation.
7525 2010-06-17 Robert Dewar <dewar@adacore.com>
7527 * exp_ch4.adb: Minor reformatting.
7529 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7531 * sinfo.ads, sinfo.adb (Inherited_Discriminant): New flag on
7532 N_Component_Association nodes, to indicate that a component association
7533 of an extension aggregate denotes the value of a discriminant of an
7534 ancestor type that has been constrained by the derivation.
7535 * sem_aggr.adb (Discr_Present): use Inherited_Discriminant to prevent a
7536 double expansion of the aggregate appearing in a context that delays
7537 expansion, to prevent double insertion of discriminant values when the
7538 aggregate is reanalyzed.
7540 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7542 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Do not use
7543 Allocator as the Related_Node of Return_Obj_Access in call to
7544 Make_Temporary below as this would create a sort of infinite
7547 2010-06-17 Ben Brosgol <brosgol@adacore.com>
7549 * gnat_ugn.texi: Update gnatcheck doc.
7551 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7553 * sem_ch3.adb (Build_Incomplete_Type_Declaration): If there is an
7554 incomplete view of the type that is not tagged, and the full type is a
7555 tagged extension, create class_wide type now, and warn that the
7556 incomplete view should be tagged as well.
7558 2010-06-17 Vincent Celier <celier@adacore.com>
7560 * gnatcmd.adb (Non_VMS_Usage): Do not issue usage for gnat sync.
7561 Update the last line of the usage, indicating what commands do not
7562 accept project file switches.
7563 * vms_conv.adb: Do not issue usage line for GNAT SYNC
7564 * vms_data.ads: Fix errors in the qualifiers /LOGFILE and /MAIN of
7566 * gnat_ugn.texi: Document the relaxed rules for library directories in
7567 externally built library projects.
7569 2010-06-17 Doug Rupp <rupp@adacore.com>
7571 * s-auxdec-vms_64.ads: Make boolean and arithmetic operations intrinsic
7573 * s-auxdec-vms-alpha.adb: Remove kludges for aforemention.
7574 * gcc-interface/Makefile.in: Update VMS target pairs.
7576 2010-06-17 Vasiliy Fofanov <fofanov@adacore.com>
7578 * adaint.c: Reorganized in order to avoid use of GetProcessId to stay
7579 compatible with Windows NT 4.0 which doesn't provide this function.
7581 2010-06-17 Vincent Celier <celier@adacore.com>
7583 * ali-util.adb (Time_Stamp_Mismatch): In Verbose mode, if there is
7584 different timestamps but the checksum is the same, issue a short
7587 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7589 * s-interr.adb (Finalize): If the Abort_Task signal is set to system,
7590 it means that we cannot reset interrupt handlers since this would
7591 require potentially sending the abort signal to the Server_Task.
7593 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7595 * exp_ch4.adb: expand NOT for VMS types.
7596 * sem_util.adb: Use OpenVMS_On_Target for IS_VMS_Operator.
7598 2010-06-17 Sergey Rybin <rybin@adacore.com>
7600 * vms_data.ads: Add qualifier for '--no-elim-dispatch' gnatelim option.
7601 * gnat_ugn.texi (gnatelim): add description for --no-elim-dispatch
7604 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7606 * exp_ch6.adb (Expand_Call): Do not expand a call to an internal
7607 protected operation if the subprogram has been eliminated.
7609 2010-06-17 Vincent Celier <celier@adacore.com>
7611 * prj-nmsc.adb (Check_Library_Attributes): Allow the different
7612 directories associated with a library to be any directory when the
7613 library project is externally built.
7615 2010-06-17 Vincent Celier <celier@adacore.com>
7617 * make.adb (Check): If switch -m is used, deallocate the memory that
7618 may be allocated when computing the checksum.
7620 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7622 * g-socthi-mingw.adb (C_Recvmsg): Add 'use type' clause for C.size_t;
7623 (C_Sendmsg): Likewise.
7625 2010-06-17 Thomas Quinot <quinot@adacore.com>
7627 * sem_res.adb: Update comments.
7629 2010-06-17 Vincent Celier <celier@adacore.com>
7631 * back_end.adb (Scan_Compiler_Arguments): Process last argument
7633 2010-06-17 Robert Dewar <dewar@adacore.com>
7635 * exp_ch3.adb, exp_ch6.adb, exp_smem.adb, exp_util.adb: Use Ekind_In.
7636 * layout.adb, freeze.adb: Use Make_Temporary.
7638 2010-06-17 Jerome Lambourg <lambourg@adacore.com>
7640 * exp_ch11.adb (Expand_N_Raise_Statement): Expand raise statements in
7641 .NET/JVM normally as this is now perfectly supported by the backend.
7643 2010-06-17 Pascal Obry <obry@adacore.com>
7645 * gnat_rm.texi: Fix minor typo, remove duplicate blank lines.
7647 2010-06-17 Vincent Celier <celier@adacore.com>
7649 * make.adb (Collect_Arguments_And_Compile): Create include path file
7650 only when -x is specified.
7652 * opt.ads (Use_Include_Path_File): New Boolean flag, initialized to
7654 * prj-env.adb (Set_Ada_Paths): New Boolean parameters Include_Path and
7655 Objects_Path, defaulted to True. Only create include path file if
7656 Include_Path is True, only create objects path file if Objects_Path is
7658 * prj-env.ads (Set_Ada_Paths): New Boolean parameters Include_Path and
7659 Objects_Path, defaulted to True.
7660 * switch-m.adb (Scan_Make_Switches): Set Use_Include_Path_File to True
7663 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7665 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
7666 determine whether it has the controlling type, when the formal is an
7669 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7671 * s-crtl.ads (ssize_t): New type.
7672 (read): Fix signature.
7674 * g-socthi.ads: Add 'with System.CRTL' clause. Remove ssize_t and
7675 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7676 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7677 (C_Sendmsg): Likewise.
7678 * g-socthi.adb (Syscall_Recvmsg): Likewise.
7679 (Syscall_Sendmsg): Likewise.
7680 (C_Recvmsg): Likewise.
7681 (C_Sendmsg): Likewise.
7682 * g-socthi-mingw.ads: Add 'with System.CRTL' clause. Remove ssize_t
7683 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7684 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7685 (C_Sendmsg): Likewise.
7686 * g-socthi-mingw.adb (C_Recvmsg): Likewise.
7687 (C_Sendmsg): Likewise.
7688 * g-socthi-vms.ads: Add 'with System.CRTL' clause. Remove ssize_t and
7689 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7690 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7691 (C_Sendmsg): Likewise.
7692 * g-socthi-vms.adb (C_Recvmsg): Likewise.
7693 (C_Sendmsg): Likewise.
7694 * g-socthi-vxworks.ads Add 'with System.CRTL' clause. Remove ssize_t
7695 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7696 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7697 (C_Sendmsg): Likewise.
7698 * g-socthi-vxworks.adb (C_Recvmsg): Likewise.
7699 (C_Sendmsg): Likewise.
7700 * g-sercom-linux.adb (Read): Use correct types to call 'read'.
7701 (Write): Likewise to call 'write'.
7702 * s-os_lib.adb (Read): Use correct type to call System.CRTL.read.
7703 (Write): Use correct type to call System.CRTL.write.
7704 * s-tasdeb.adb (Write): Likewise.
7706 2010-06-17 Vincent Celier <celier@adacore.com>
7708 * prj-proc.adb (Copy_Package_Declarations): Change argument name
7709 Naming_Restricted to Restricted. If Restricted is True, do not copy the
7710 value of attribute Linker_Options.
7712 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7714 * gcc-interface/trans.c (push_stack, pop_stack): Delete.
7715 (Case_Statement_to_gnu): Adjust.
7716 (Loop_Statement_to_gnu): Likewise.
7717 (Subprogram_Body_to_gnu): Likewise.
7718 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
7719 (Compilation_Unit_to_gnu): Likewise.
7721 2010-06-17 Robert Dewar <dewar@adacore.com>
7723 * exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb, exp_prag.adb,
7724 exp_sel.adb, exp_util.adb, sem_ch10.adb, sem_ch12.adb, sem_ch13.adb,
7725 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb, sem_ch9.adb,
7726 sem_dist.adb, sem_util.adb: Use Make_Temporary
7727 * itypes.ads, tbuild.ads: Minor comment update
7728 * exp_ch9.adb, exp_dist.adb: Minor reformatting
7730 2010-06-17 Thomas Quinot <quinot@adacore.com>
7732 * exp_imgv.adb, exp_ch7.ads: Minor reformatting.
7734 2010-06-17 Robert Dewar <dewar@adacore.com>
7736 * exp_ch9.adb, exp_disp.adb, exp_dist.adb: Use Make_Temporary.
7738 2010-06-17 Thomas Quinot <quinot@adacore.com>
7740 * sprint.adb (pg): Set Dump_Freeze_Null, to be consistent with -gnatdg.
7742 2010-06-17 Robert Dewar <dewar@adacore.com>
7744 * exp_ch6.adb, exp_ch7.adb, exp_ch5.adb: Use Make_Temporary
7745 * tbuild.ads (Make_Temporary): More comment updates
7746 * tbuild.adb: Minor reformatting
7748 2010-06-17 Robert Dewar <dewar@adacore.com>
7750 * checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch11.adb,
7751 exp_ch3.adb, exp_ch4.adb: Minor code reorganization.
7753 * tbuild.ads, tbuild.adb (Make_Temporary): Clean up, use Entity_Id
7755 (Make_Temporary): Add more extensive documentation
7757 2010-06-17 Robert Dewar <dewar@adacore.com>
7759 * sem_intr.adb, sem_prag.adb, sem_res.adb, sem_type.adb, sem_util.adb,
7760 sem_warn.adb, sem_eval.adb: Minor reformatting. Use Ekind_In.
7761 (Set_Slice_Subtype): Explicitly freeze the slice's itype at the point
7762 where the slice's actions are inserted.
7763 (Decompose_Expr): Account for possible rewriting of slice bounds
7764 resulting from side effects suppression caused by the above freezing,
7765 so that folding of bounds is preserved by such rewriting.
7767 2010-06-17 Robert Dewar <dewar@adacore.com>
7769 * einfo.ads, einfo.adb (Get_Record_Representation_Clause): New
7771 * freeze.adb (Freeze_Record_Type): Add call to
7772 Check_Record_Representation_Clause.
7773 * sem_ch13.adb (Check_Record_Representation_Clause): New function
7774 (Analyze_Record_Representation_Clause): Split out overlap code into
7776 (Check_Component_Overlap): Moved inside
7777 Check_Record_Representation_Clause.
7778 * sem_ch13.ads (Check_Record_Representation_Clause): New function.
7780 2010-06-17 Robert Dewar <dewar@adacore.com>
7782 * back_end.adb, sem_res.adb, switch-c.adb, sem_scil.adb: Minor
7784 * sem_attr.adb, sem_cat.adb, sem_disp.adb, sem_elab.adb, sem_elim.adb,
7785 sem_eval.adb: Use Ekind_In
7787 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7789 * sem_ch8.adb: better error message for illegal inherited discriminant
7791 2010-06-17 Vincent Celier <celier@adacore.com>
7793 * bindusg.adb: Remove lines for -A and -C
7794 * gnat_ugn.texi: Remove all documentation and examples of switches -A
7795 and -C for gnatbind and gnatlink.
7796 * gnatlink.adb (Usage): Remove lines for -A and -C
7797 * switch-b.adb (Scan_Binder_Switches): Issue warning when switch -C is
7799 * gcc-interface/Make-lang.in: Update dependencies.
7801 2010-06-17 Vincent Celier <celier@adacore.com>
7803 * back_end.adb (Scan_Compiler_Arguments): Put all arguments in new
7804 local Argument_List variable Args.
7805 * switch-c.adb (Scan_Front_End_Switches): New Argument_List argument
7807 (Switch_Subsequently_Cancelled): New Argument_List argument Args. Look
7808 for subsequent switches in Args.
7809 * switch-c.ads (Scan_Front_End_Switches): New Argument_List argument
7811 * gcc-interface/Make-lang.in: Update dependencies.
7813 2010-06-17 Robert Dewar <dewar@adacore.com>
7815 * einfo.adb: Minor code fix, allow E_Class_Wide_Type for
7816 Equivalent_Type to match documentation.
7818 2010-06-17 Robert Dewar <dewar@adacore.com>
7820 * sem_ch6.adb, sem_ch7.adb: Minor reformatting.
7821 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_ch10.adb, sem_ch12.adb,
7822 sem_ch4.adb, sem_ch8.adb, sem_ch13.adb: Make use of Ekind_In.
7824 2010-06-17 Thomas Quinot <quinot@adacore.com>
7826 * sem_res.adb (Set_Slice_Subtype): Always freeze the slice's itype.
7828 2010-06-17 Thomas Quinot <quinot@adacore.com>
7830 * freeze.adb (Freeze_Expression): Short circuit operators are valid
7831 freeze node insertion points.
7833 2010-06-17 Robert Dewar <dewar@adacore.com>
7835 * switch-c.ads, switch-c.adb, sem_ch13.adb: Minor reformatting.
7836 * sem_ch12.adb: Add pragmas Assert and Check to previous change.
7838 2010-06-17 Gary Dismukes <dismukes@adacore.com>
7840 * layout.adb (Layout_Type): Broaden test for setting an array type's
7841 Component_Size to include all scalar types, not just discrete types
7842 (components of real types were missed).
7843 * sem_ch3.adb (Constrain_Index): Add missing setting of First_Literal
7844 on the itype created for an index (consistent with Make_Index and
7845 avoids possible Assert_Failures).
7847 2010-06-17 Robert Dewar <dewar@adacore.com>
7849 * atree.ads, atree.adb: Add 6-parameter version of Ekind_In
7850 * einfo.adb: Minor code reformatting (use Ekind_In)
7852 2010-06-17 Robert Dewar <dewar@adacore.com>
7854 * sem_warn.adb (Test_Ref): Abandon scan if access subprogram parameter
7857 2010-06-17 Vincent Celier <celier@adacore.com>
7859 * back_end.adb: Minor comment updates
7860 * switch-c.adb: Remove dependencies on gcc C sources
7861 * gcc-interface/Make-lang.in: Add a-comlin.o to the object file list
7864 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7866 * sem_ch12.adb: propagate Pragma_Enabled flag to generic.
7867 * get_scos.adb: Set C2 flag in decision entry of pragma to 'e'.
7868 * par_sco.ads, par_sco.adb (Set_SCO_Pragma_Enabled): New procedure
7869 Remove use of Node field in SCOs table
7870 (Output_Header): Set 'd' to initially disable pragma entry
7871 * put_scos.adb (Put_SCOs): New flag indicating if pragma is enabled
7872 * scos.ads, scos.adb: Remove Node field from internal SCOs table.
7873 Use C2 field of pragma decision header to indicate enabled.
7874 * sem_prag.adb: Add calls to Set_SCO_Pragma_Enabled.
7875 * gcc-interface/Make-lang.in: Update dependencies.
7877 2010-06-17 Vincent Celier <celier@adacore.com>
7879 * back_end.adb (Next_Arg): Moved to procedure Scan_Compiler_Arguments
7880 (Scan_Compiler_Arguments): Call Scan_Front_End_Switches with Next_Arg
7881 (Switch_Subsequently_Cancelled): Function moved to the body of Switch.C
7882 * back_end.ads (Scan_Front_End_Switches): Function moved to the body of
7884 * switch-c.adb: Copied a number of global declarations from
7886 (Len_Arg): New function copied from back_end.adb
7887 (Switch_Subsequently_Cancelled): New function moved from back_end.adb
7888 (Scan_Front_End_Switches): New parameter Arg_Rank used to call
7889 Switch_Subsequently_Cancelled.
7890 * switch-c.ads (Scan_Front_End_Switches): New parameter Arg_Rank.
7891 * gcc-interface/Makefile.in: Add line so that shared libgnat is linked
7892 with -lexc on Tru64.
7894 2010-06-17 Robert Dewar <dewar@adacore.com>
7896 * prj.ads, prj.adb: Minor reformatting
7898 2010-06-17 Thomas Quinot <quinot@adacore.com>
7900 * put_scos.adb: Do not generate a blank line in SCOs when omitting the
7901 CP line for a disabled pragma.
7903 2010-06-17 Emmanuel Briot <briot@adacore.com>
7905 * prj-proc.adb, prj.adb, prj.ads (Check_Or_Set_Typed_Variable): New
7907 (Process_Declarative_Item): An invalid value in an typed variable
7908 declaration is no longer always fatal.
7910 2010-06-16 Arnaud Charlet <charlet@adacore.com>
7912 * get_scos.adb, par_sco.adb, par_sco.ads, put_scos.adb, scos.adb,
7913 scos.ads, exp_ch4.adb, sem_warn.adb: Code clean up, update
7916 2010-06-16 Javier Miranda <miranda@adacore.com>
7918 * exp_disp.adb (Expand_Dispatching_Call): Adjust the decoration of the
7919 node referenced by the SCIL node of dispatching "=" to skip the tags
7922 2010-06-16 Ed Schonberg <schonberg@adacore.com>
7924 * sem_ch5.adb (Analyze_Exit_Statement): Return if no enclosing loop,
7925 to prevent cascaded errors and compilation aborts.
7927 2010-06-16 Robert Dewar <dewar@adacore.com>
7929 * back_end.adb (Switch_Subsequently_Cancelled): New function
7930 Move declarations to package body level to support this change
7931 * back_end.ads (Switch_Subsequently_Cancelled): New function
7932 * gnat_ugn.texi: Document -gnat-p switch
7933 * switch-c.adb (Scan_Front_End_Switches): Implement -gnat-p switch
7934 * ug_words: Add entry for -gnat-p (UNSUPPRESS_ALL)
7935 * usage.adb: Add line for -gnat-p switch
7936 * vms_data.ads: Add entry for UNSUPPRESS_ALL (-gnat-p)
7938 2010-06-16 Robert Dewar <dewar@adacore.com>
7940 * sem_warn.adb (Check_Infinite_Loop_Warning): Declaration counts as
7943 2010-06-16 Robert Dewar <dewar@adacore.com>
7945 * exp_disp.adb: Minor reformatting
7947 2010-06-16 Ed Schonberg <schonberg@adacore.com>
7949 * sem_ch3.adb (Complete_Private_Subtype): Inherit class_wide type from
7950 base type only if it was not previously created for the partial view.
7952 2010-06-16 Thomas Quinot <quinot@adacore.com>
7954 * tbuild.ads: Minor comment fix
7956 2010-06-15 Nathan Froyd <froydnj@codesourcery.com>
7958 * gcc-interface/trans.c (gnu_stack_free_list): Delete.
7959 (gnu_except_ptr_stack): Change type to VEC. Update comment.
7960 (gnu_elab_proc_stack): Likewise.
7961 (gnu_return_label_stack): Likewise.
7962 (gnu_loop_label_stack): Likewise.
7963 (gnu_switch_label_stack): Likewise.
7964 (gnu_constraint_label_stack): Likewise.
7965 (gnu_storage_error_label_stack): Likewise.
7966 (gnu_program_error_label_stack): Likewise.
7967 (push_exception_label_stack): Take a VEC ** instead of a tree *.
7968 (push_stack): Likewise. Remove unused second parameter. Update
7970 (pop_stack): Take a VEC * instead of a tree *. Update callers.
7971 (gigi): Initialize stacks as VECs.
7972 (Identifier_to_gnu): Use VEC_last instead of TREE_VALUE.
7973 (Case_Statement_to_gnu): Likewise.
7974 (Subprogram_Body_to_gnu): Likewise.
7975 (call_to_gnu): Likewise.
7976 (Exception_Handler_to_gnu_sjlj): Likewise.
7977 (gnat_to_gnu): Likewise.
7978 (get_exception_label): Likewise.
7980 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7982 * sem_ch3.adb (Build_Derived_Record_Type): if derived type is an
7983 anonymous base generated when the parent is a constrained discriminated
7984 type, propagate interface list to first subtype because it may appear
7985 in a current instance within the extension part of the derived type
7986 declaration, and its own subtype declaration has not been elaborated
7988 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
7989 determine whether it has the controlling type.
7991 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
7993 * exp_ch11.adb (Expand_N_Raise_Statement): Make sure that the explicit
7994 raise of CE, SE and PE have the reason correctly set and are properly
7995 expanded before stopping the expansions of .NET/JVM exceptions.
7997 2010-06-14 Robert Dewar <dewar@adacore.com>
7999 * opt.ads (Check_Policy_List): Add some clarifying comments
8000 * sem_prag.adb (Analyze_Pragma, case Check): Set Pragma_Enabled flag
8001 on rewritten Assert pragma.
8003 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8005 * sem_ch6.adb (Check_Overriding_Indicator): Add a special check for
8006 controlled operations, so that they will be treated as overriding even
8007 if the overridden subprogram is marked Is_Hidden, as long as the
8008 overridden subprogram's parent subprogram is not hidden.
8010 2010-06-14 Robert Dewar <dewar@adacore.com>
8012 * debug.adb: Entry for gnatw.d no longer specific for while loops
8013 * einfo.adb (First_Exit_Statement): New attribute for E_Loop
8014 * einfo.ads (First_Exit_Statement): New attribute for E_Loop
8015 * sem_ch5.adb (Analyze_Loop_Statement): Check_Infinite_Loop_Warning has
8016 new calling sequence to include test for EXIT WHEN.
8017 (Analyze_Exit_Statement): Chain EXIT statement into exit statement
8019 * sem_warn.ads, sem_warn.adb (Check_Infinite_Loop_Warning): Now handles
8021 * sinfo.adb (Next_Exit_Statement): New attribute of N_Exit_Statement
8023 * sinfo.ads (N_Pragma): Correct comment on Sloc field (points to
8024 PRAGMA, not to pragma identifier).
8025 (Next_Exit_Statement): New attribute of N_Exit_Statement node
8027 2010-06-14 Robert Dewar <dewar@adacore.com>
8029 * sem_res.adb (Resolve_Short_Circuit): Fix sloc of "assertion/check
8032 2010-06-14 Robert Dewar <dewar@adacore.com>
8034 * par-ch2.adb (Scan_Pragma_Argument_Association): Clarify message for
8035 missing pragma argument identifier.
8037 2010-06-14 Robert Dewar <dewar@adacore.com>
8039 * atree.ads, atree.adb (Ekind_In): New functions.
8041 2010-06-14 Robert Dewar <dewar@adacore.com>
8043 * exp_ch4.adb (Expand_N_Op_Expon): Optimize 2**N in stand alone context
8045 2010-06-14 Robert Dewar <dewar@adacore.com>
8047 * usage.adb (Usage): Redo documentation of -gnatwa.
8049 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8051 * sem_ch8.adb (Find_Type): The attribute 'class cannot be applied to
8052 an untagged incomplete type that is a limited view.
8054 2010-06-14 Sergey Rybin <rybin@adacore.com>
8056 * gnat_ugn.texi: Add description of '-cargs gcc_switches' to gnatstub
8059 2010-06-14 Thomas Quinot <quinot@adacore.com>
8061 * exp_ch4.adb (Expand_Short_Circuit_Operator): New subprogram,
8062 factoring duplicated code between...
8063 (Expand_N_And_Than, Expand_N_Or_Else): Remove duplicated code.
8064 * a-envvar.ads: Minor reformatting
8066 2010-06-14 Arnaud Charlet <charlet@adacore.com>
8068 * ali.adb, ali.ads, lib-xref.ads: Document new '+' letter for C/C++
8070 (Scan_ALI): Take into account new Visibility field.
8071 (Visibility_Kind): New type.
8072 (Xref_Entity_Record): Replace Lib field by Visibility.
8074 * gcc-interface/Make-lang.in: Update dependencies.
8076 2010-06-14 Pascal Obry <obry@adacore.com>
8078 * raise.h: Remove unused defintions.
8080 2010-06-14 Bob Duff <duff@adacore.com>
8082 * par-ch10.adb (P_Subunit): If the next token after "separate(X)" is
8083 Tok_Not or Tok_Overriding, call P_Subprogram. We had previously given
8084 the incorrect error "proper body expected".
8085 * par-ch6.adb (P_Subprogram): Suppress "overriding indicator not
8086 allowed here" error in case of subunits, which was triggered by the
8087 above change to P_Subunit.
8089 2010-06-14 Sergey Rybin <rybin@adacore.com>
8091 * gnat_ugn.texi, vms_data.ads: Update gnatelim doc.
8093 2010-06-14 Thomas Quinot <quinot@adacore.com>
8095 * lib-util.adb: Minor code reorganization.
8097 2010-06-14 Robert Dewar <dewar@adacore.com>
8099 * ali.adb (Scan_ALI): Implement reading and storing of N lines
8100 (Known_ALI_Lines): Add entry for 'N' (notes)
8101 * ali.ads (Notes): New table to store Notes information
8102 * alloc.ads: Add entries for Notes table
8103 * lib-util.adb (Write_Info_Int): New procedure
8104 (Write_Info_Slit): New procedure
8105 (Write_Info_Uint): New procedure
8106 * lib-util.ads (Write_Info_Int): New procedure
8107 (Write_Info_Slit): New procedure
8108 (Write_Info_Uint): New procedure
8109 * lib-writ.adb (Write_Unit_Information): Output N (notes) lines
8110 * lib-writ.ads: Update documentation for N (Notes) lines
8111 * lib.adb (Store_Note): New procedure
8112 * lib.ads (Notes): New table
8113 (Store_Note): New procedure
8114 * sem_prag.adb: Call Store_Note for affected pragmas
8116 2010-06-14 Thomas Quinot <quinot@adacore.com>
8118 * socket.c: Fix wrong condition in #ifdef
8119 * g-socket.adb, g-sothco.ads: Functions imported from socket.c that
8120 take or return char* values can't use Interfaces.C.Strings.chars_ptr,
8121 because on VMS this type is a 32-bit pointer which is not compatible
8122 with the default for C pointers for code compiled with gcc on that
8125 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8127 * sem_util (Is_VMS_Operator): New predicate to determine whether an
8128 operator is an intrinsic operator declared in the DEC system extension.
8129 * sem_res.adb (Resolve_Logical_Op): operation is legal on signed types
8130 if the operator is a VMS intrinsic.
8131 * sem_eval.adb (Eval_Logical_Op): Operation is legal and be
8132 constant-folded if the operands are signed and the operator is a VMS
8135 2010-06-14 Robert Dewar <dewar@adacore.com>
8137 * g-socket.adb, gnatcmd.adb: Minor reformatting.
8139 2010-06-14 Pascal Obry <obry@adacore.com>
8141 * s-finimp.adb: Fix typo.
8142 * raise.h: Remove duplicate blank line.
8144 2010-06-14 Vincent Celier <celier@adacore.com>
8146 * prj-nmsc.adb (Add_Sources): Always set the object file and the
8147 switches file names, as the configuration of the language may change
8148 in an extending project.
8149 (Process_Naming_Scheme): For sources of projects that are extended, set
8150 the configuration of the language from the highest extending project
8151 where the language is declared.
8153 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8155 * sem_res.adb (Resolve_Call): For infinite recursion check, test
8156 whether the called subprogram is inherited from a containing
8158 (Same_Or_Aliased_Subprograms): New function
8160 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8162 * sem_ch8.adb (End_Use_Type): Before indicating that an operator is not
8163 use-visible, check whether it is a primitive for more than one type.
8165 2010-06-14 Robert Dewar <dewar@adacore.com>
8167 * sem_ch3.adb (Copy_And_Swap): Copy Has_Pragma_Unmodified flag.
8169 * sem_ch7.adb (Preserve_Full_Attributes): Preserve
8170 Has_Pragma_Unmodified flag.
8172 2010-06-14 Thomas Quinot <quinot@adacore.com>
8174 * g-sttsne-locking.adb, g-sttsne-locking.ads, g-sttsne.ads,
8175 g-sttsne-vxworks.adb, g-sttsne-dummy.ads: Removed. Mutual exclusion is
8176 now done in GNAT.Sockets if necessary.
8177 * gsocket.h, g-socket.adb, g-sothco.ads (GNAT.Sockets.Get_XXX_By_YYY):
8178 Ensure mutual exclusion for netdb operations if the target platform
8180 (GNAT.Sockets.Thin_Common): New binding for getXXXbyYYY, treating
8181 struct hostent as an opaque type to improve portability.
8182 * s-oscons-tmplt.c, socket.c: For the case of Vxworks, emulate
8183 gethostbyYYY using proprietary VxWorks API so that a uniform interface
8184 is available for the Ada side.
8185 * gcc-interface/Makefile.in: Remove g-sttsne-*
8186 * gcc-interface/Make-lang.in: Update dependencies.
8188 2010-06-14 Vincent Celier <celier@adacore.com>
8190 * gnatcmd.adb (Mapping_File): New function.
8192 2010-06-14 Javier Miranda <miranda@adacore.com>
8194 * sem_ch3.adb (Derive_Subprograms): Remove over-restrictive assertion.
8196 2010-06-14 Arnaud Charlet <charlet@adacore.com>
8198 * ali.adb: Fix typo.
8199 * s-auxdec-vms-alpha.adb, scng.ads: Minor reformatting.
8201 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8203 * sem_ch12.adb: Make Mark_Context transitive, and apply to subprogram
8206 * sem_ch8.adb (Find_Expanded_Name): If a candidate compilation unit in
8207 the context does not have a homonym of the selector, emit default
8210 2010-06-14 Robert Dewar <dewar@adacore.com>
8212 * sem.adb, sem_ch12.adb, sem_util.adb: Minor reformatting and
8215 2010-06-14 Arnaud Charlet <charlet@adacore.com>
8217 * lib-xref.ads: Doc updates:
8218 - Allocate 'Q' for #include entity kind
8220 - Allocate 'g' for regular macros
8221 - Allocate 'G' for function-like macros
8223 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8225 * sinfo.ads, sinfo.adb (Withed_Body): New attribute of a with_clause.
8226 Indicates that there is an instantiation in the current unit that
8227 loaded the body of the unit denoted by the with_clause.
8228 * sem_ch12.adb (Mark_Context): When instanting a generic body, check
8229 whether a with_clause in the current context denotes the unit that
8230 holds the generic declaration, and mark the with_clause accordingly.
8231 (Instantiate_Package_Body): call Mark_Context.
8232 * sem.adb (Process_Bodies_In_Context): Use Withed_Body to determine
8233 whether a given body should be traversed before the spec of the main
8236 2010-06-14 Ed Falis <falis@adacore.com>
8238 * sysdep.c: Fix 653 build against vThreads headers.
8240 2010-06-14 Robert Dewar <dewar@adacore.com>
8242 * sinfo.ads: Minor reformatting.
8244 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8246 * sem_ch6.adb (Analyze_Subprogram_Body): Do not check conformance when
8247 the spec has been generated for a body without spec that carries an
8248 Inline_Always pragma.
8250 2010-06-14 Arnaud Charlet <charlet@adacore.com>
8252 * lib-xref.ads: Documentation change: allocate 'Z' letter to C/C++
8255 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
8257 * exp_dbug.adb (Debug_Renaming_Declaration): Do not output any debug
8258 declaration for VMs, as those are useless and might lead to duplicated
8259 local variable names in the generated code.
8260 * gcc-interface/Make-lang.in: Update dependencies.
8262 2010-06-14 Robert Dewar <dewar@adacore.com>
8264 * opt.ads, sem.adb, sem_elab.adb: Minor reformatting
8266 2010-06-14 Robert Dewar <dewar@adacore.com>
8268 * exp_aggr.adb (Has_Address_Clause): Moved to Exp_Util, and there it
8269 is renamed as Has_Following_Address_Clause.
8270 * exp_ch3.adb (Needs_Simple_Initialization): Add Consider_IS argument
8271 to allow the caller to avoid Initialize_Scalars having an effect.
8272 (Expand_N_Object_Declaration): Do not do Initialize_Scalars stuff for
8273 scalars with an address clause specified.
8274 * exp_ch3.ads (Needs_Simple_Initialization): Add Consider_IS argument
8275 to allow the caller to avoid Initialize_Scalars having an effect.
8276 * exp_util.adb (Has_Following_Address_Clause): Moved here from Exp_Aggr
8277 (where it was called Has_Address_Clause).
8278 * exp_util.ads (Has_Following_Address_Clause): Moved here from Exp_Aggr
8279 (where it was called Has_Address_Clause).
8280 * freeze.adb (Warn_Overlay): Suppress message about overlaying causing
8281 problems for Initialize_Scalars (since we no longer initialize objects
8282 with an address clause.
8284 2010-06-14 Robert Dewar <dewar@adacore.com>
8286 * exp_prag.adb (Expand_Pragma_Check): Set Loc of generated code from
8289 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8291 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Debug_Info_Needed
8292 on the entity of an implicitly generated postcondition procedure.
8294 2010-06-14 Thomas Quinot <quinot@adacore.com>
8296 * sem_ch7.adb (Preserve_Full_Attributes): Propagate
8297 Discriminant_Constraint elist from full view to private view.
8299 2010-06-14 Robert Dewar <dewar@adacore.com>
8301 * sem_res.adb: Minor reformatting.
8303 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8305 * sem.adb: New version of unit traversal.
8307 * sem_elab.adb (Check_Internal_Call): Do not place a call appearing
8308 within a generic unit in the table of delayed calls.
8310 2010-06-14 Robert Dewar <dewar@adacore.com>
8312 * gnatcmd.adb, sem_util.adb, exp_ch3.adb: Minor reformatting
8314 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8316 * sem_ch12.adb (Save_References): If an identifier has been rewritten
8317 during analysis as an explicit dereference, keep the reference implicit
8318 in the generic, but preserve the entity if global. This prevents
8319 malformed generic trees in the presence of some nested generics.
8321 2010-06-14 Sergey Rybin <rybin@adacore.com>
8323 * gnat_ugn.texi: For the GNAT driver, clarify the effect of calling the
8324 tool with '-files=' option. Also fix some small errors (wrong brackets)
8326 2010-06-14 Vincent Celier <celier@adacore.com>
8328 * gnatbind.adb: Call Scan_ALI with Directly_Scanned set to True for all
8329 the ALI files on the command line.
8331 * ali.adb (Scan_ALI): Set component Directly_Scanned of the unit(s) to
8332 the same value as the parameter of the same name.
8333 * ali.ads (Scan_ALI): New Boolean parameter Directly_Scanned, defaulted
8335 * bindgen.adb (Gen_Versions_Ada): Never emit version symbols for
8336 Stand-Alone Library interfaces. When binding Stand-Alone Libraries,
8337 emit version symbols only for the units of the library.
8338 (Gen_Versions_C): Ditto.
8340 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8342 * sem_ch4.adb: Fix typo.
8344 2010-06-14 Vasiliy Fofanov <fofanov@adacore.com>
8346 * s-oscons-tmplt.c (IOV_MAX): redefine on Tru64 and VMS since the
8347 vector IO doesn't work at default value properly.
8349 2010-06-14 Doug Rupp <rupp@adacore.com>
8351 * s-stoele.adb: Remove unnecessary qualification of To_Address for VMS.
8353 2010-06-14 Vincent Celier <celier@adacore.com>
8355 * gnatcmd.adb (Check_Files): Do not invoke the tool with all the
8356 sources of the project if a switch -files= is used.
8358 2010-06-14 Thomas Quinot <quinot@adacore.com>
8360 * exp_attr.adb: Minor reformatting.
8362 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8364 * gnat_ugn.texi: Minor typo fixes and wording changes.
8366 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8368 * sem_ch4.adb (Analyze_One_Call): If the call has been rewritten from a
8369 prefixed form, do not re-analyze first actual, which may need an
8370 implicit dereference.
8371 * sem_ch6.adb (Analyze_Procedure_Call): If the call is given in
8372 prefixed notation, the analysis will rewrite the node, and possible
8373 errors appear in the rewritten name of the node.
8374 * sem_res.adb: If a call is ambiguous because its first parameter is
8375 an overloaded call, report list of candidates, to clarify ambiguity of
8378 2010-06-14 Doug Rupp <rupp@adacore.com>
8380 * s-auxdec-vms-alpha.adb: New package body implementing legacy
8381 VAX instructions with Asm insertions.
8382 * s-auxdec-vms_64.ads: Inline VAX queue functions
8383 * s-stoele.adb: Resolve some ambiguities in To_Addresss with s-suxdec
8384 that show up only on VMS.
8385 * gcc-interface/Makefile.in: Provide translation for
8386 s-auxdec-vms-alpha.adb.
8388 2010-06-14 Olivier Hainque <hainque@adacore.com>
8390 * initialize.c (VxWorks section): Update comments.
8392 2010-06-14 Robert Dewar <dewar@adacore.com>
8394 * a-convec.adb, sem_prag.adb, checks.adb: Minor reformatting.
8396 2010-06-14 Eric Botcazou <ebotcazou@adacore.com>
8398 * init.c: Code clean up.
8400 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8402 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address): Do
8403 not insert address clause in table for later validation if type of
8404 entity is generic, to prevent possible spurious errors.
8406 * sem_ch8.adb: Code clean up.
8408 2010-06-14 Ben Brosgol <brosgol@adacore.com>
8410 * gnat_ugn.texi: Expanded @ovar macro inline to solve problem with
8411 texi2pdf and texi2html.
8412 Document how to change scheduling properties on HP-UX.
8414 2010-06-14 Thomas Quinot <quinot@adacore.com>
8416 * g-socket.ads: Remove misleading comments.
8418 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
8420 * sem_prag.adb (Check_Duplicated_Export_Name): Remove check for
8421 CLI_Target as this prevents proper detection of exported names
8422 duplicates when the exported language is different to CIL.
8423 (Process_Interface_Name): Add check for CIL convention exports,
8424 replacing the old one from Check_Duplicated_Export_Name.
8426 2010-06-14 Matthew Heaney <heaney@adacore.com>
8428 * a-coinve.adb, a-convec.adb (operator "&"): Check both that new length
8429 and new last satisfy constraints.
8430 (Delete_Last): prevent overflow for subtraction of index values
8431 (To_Vector): prevent overflow for addition of index values
8433 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8435 * sem_ch4.adb (Complete_Object_Operation): After analyzing the
8436 rewritten call, preserve the resulting type to prevent spurious errors,
8437 when the call is implicitly dereferenced in the context of an in-out
8440 * checks.adb (Apply_Discriminant_Check): If the target of the
8441 assignment is a renaming of a heap object, create constrained type for
8444 2010-06-14 Pascal Obry <obry@adacore.com>
8446 * prj-proc.adb: Fix copy of object directory for extending projects.
8448 2010-06-14 Jose Ruiz <ruiz@adacore.com>
8450 * init.c (__gnat_alternate_stack): Define this space for PowerPC linux
8451 (__gnat_install_handler, PowerPC linux): Activate the alternative
8454 2010-06-13 Gerald Pfeifer <gerald@pfeifer.com>
8456 * gnat_rm.texi: Move to GFDL version 1.3.
8457 * gnat-style.texi: Ditto.
8458 * gnat_ugn.texi: Ditto.
8460 2010-06-12 Kai Tietz <kai.tietz@onevision.com>
8463 * gcc-interface/Makefile.in: Add rules for multilib x86/x64
8466 2010-06-11 Alexandre Oliva <aoliva@redhat.com>
8468 * gcc-interface/utils.c (update_pointer_to): Initialize last.
8470 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
8472 * gcc-interface/ada-tree.h: Fix formatting nits.
8474 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8476 * gcc-interface/utils.c (init_gnat_to_gnu): Use typed GC
8478 (init_dummy_type): Likewise.
8479 (gnat_pushlevel): Likewise.
8481 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
8482 (Subprogram_Body_to_gnu): Likewise.
8483 (Compilation_Unit_to_gnu): Likewise.
8484 (start_stmt_group): Likewise.
8485 (extract_encoding): Likewise.
8486 (decode_name): Likewise.
8488 * gcc-interface/misc.c (gnat_printable_name): Likewise.
8490 * gcc-interface/decl.c (annotate_value): Likewise.
8492 * gcc-interface/ada-tree.h (struct lang_type): Add variable_size
8494 (struct lang_decl): Likewise.
8495 (SET_TYPE_LANG_SPECIFIC): Use typed GC allocation.
8496 (SET_DECL_LANG_SPECIFIC): Likewise.
8498 2010-06-04 Eric Botcazou <ebotcazou@adacore.com>
8500 * gnatlink.adb (gnatlink): Remove support for -fsjlj switch.
8501 * gcc-interface/lang-specs.h: Likewise.
8503 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
8506 * gcc-interface/decl.c (MAX_FIXED_MODE_SIZE): Removed.
8508 2010-06-01 Arnaud Charlet <charlet@adacore.com>
8510 * gnat_ugn.texi: Improve doc on -fdump-ada-spec, mention limitations.
8512 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
8514 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Task_Type>: Reuse the
8515 TYPE_DECL of the equivalent type instead of building a new one.
8517 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
8519 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust warning message.
8520 Fix nits in comments.
8521 * gcc-interface/misc.c (gnat_init_gcc_eh): Likewise.
8522 * gcc-interface/trans.c (gigi): Likewise.
8523 (Attribute_to_gnu): Likewise.
8524 (Case_Statement_to_gnu): Likewise.
8525 (gnat_to_gnu): Adjust warning message.
8526 * gcc-interface/utils.c (create_var_decl_1): Fix nits in comments.
8527 (build_vms_descriptor32): Likewise.
8529 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
8531 * gcc-interface/decl.c: Pretend to be a backend file by undefining
8532 IN_GCC_FRONTEND (still need rtl.h here).
8534 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8536 * gcc-interface/trans.c: Do not include rtl.h, insclude libfuncs.h.
8537 (gigi): Adjust call to set_stack_check_libfunc.
8539 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8541 * gcc-interface/utils.c: Do not include rtl.h.
8543 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
8545 * gcc-interface/utils.c: Do not include function.h, pointer-set.h,
8546 and gimple.h. Explain why rtl.h has to be included.
8547 (handle_vector_size_attribute): Call reconstruct_complex_type directly.
8548 * gcc-interface/targtyps.c: Do not include tm_p.h
8549 * gcc-interface/utils2.c: Do not include flags.h.
8550 * gcc-interface/trans.c: Do not include expr.h. Include rtl.h instead,
8551 and explain why it has to be included.
8552 * gcc-interface/misc.c: Do not include expr.h, libfuncs.h, cgraph.h,
8554 Include function.h and explain why. Explain why except.h is included.
8555 (enumerate_modes): Remove unused function.
8556 * gcc-interface/gigi.h (enumerate_modes): Remove prototype.
8557 * gcc-interface/Make-lang.in: Update dependencies.
8559 2010-05-25 Joseph Myers <joseph@codesourcery.com>
8561 * gcc-interface/misc.c (internal_error_function): Add context
8562 parameter. Use it to access show_column flag and instead of using
8563 global_dc. Call warn_if_plugins.
8564 * gcc-interface/Make-lang.in (ada/misc.o): Update dependencies.
8566 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
8568 * gcc-interface/misc.c (LANG_HOOKS_DEEP_UNSHARING): Redefine.
8569 * gcc-interface/trans.c (unshare_save_expr): Delete.
8570 (gigi): Do not unshare trees under SAVE_EXPRs here.
8572 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
8574 * gcc-interface/trans.c (call_to_gnu): Use build_call_vec instead of
8576 * gcc-interface/utils.c (build_function_stub): Likewise.
8578 2010-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
8580 * gcc-interface/misc.c (gnat_handle_option): Remove special logic
8581 for Wuninitialized without -O.
8583 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
8585 * gcc-interface/gigi.h (enum standard_datatypes): Add new value
8586 ADT_exception_data_name_id.
8587 (exception_data_name_id): New define.
8588 * gcc-interface/trans.c (gigi): Initialize it.
8589 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use the standard
8590 exception type for standard exception definitions. Do not make them
8592 <E_Record_Type>: Equate fields of types associated with an exception
8593 definition to those of the standard exception type.
8595 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
8597 * tracebak.c (__gnat_backtrace): Mark top_stack with ATTRIBUTE_UNUSED.
8599 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
8601 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Tidy up
8602 code, improve comments and fix formatting nits.
8604 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
8606 * gcc-interface/utils.c (update_pointer_to): Return early if the old
8607 pointer already points to the new type. Chain the old pointer and its
8608 variants at the end of new pointer's chain after updating them.
8610 2010-05-10 Eric Botcazou <ebotcazou@adacore.com>
8612 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables
8613 built for interfaces.
8614 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Use
8615 imported_p instead of Is_Imported when considering constants.
8616 Do not promote alignment of exported objects.
8617 <E_Record_Subtype>: Strip all suffixes for dispatch table entities.
8619 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8621 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables.
8622 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Make imported
8623 constants really constant.
8624 <E_Record_Subtype>: Strip the suffix for dispatch table entities.
8626 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8628 * gcc-interface/decl.c (make_aligning_type): Declare the type.
8630 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8632 * gcc-interface/decl.c (gnat_to_gnu_entity): Create variables for size
8633 expressions of variant part of record types declared at library level.
8635 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8637 * gcc-interface/gigi.h (create_field_decl): Move PACKED parameter.
8638 * gcc-interface/utils.c (create_field_decl): Move PACKED parameter.
8639 (rest_of_record_type_compilation): Adjust call to create_field_decl.
8640 (make_descriptor_field): Likewise and pass correctly typed constants.
8641 (build_unc_object_type): Likewise.
8642 (unchecked_convert): Likewise.
8643 * gcc-interface/decl.c (elaborate_expression_2): New static function.
8644 (gnat_to_gnu_entity): Use it to make alignment factors explicit.
8645 Adjust call to create_field_decl.
8646 (make_aligning_type): Likewise.
8647 (make_packable_type): Likewise.
8648 (maybe_pad_type): Likewise.
8649 (gnat_to_gnu_field): Likewise.
8650 (components_to_record): Likewise.
8651 (create_field_decl_from): Likewise.
8652 (create_variant_part_from): Remove superfluous test.
8653 * gcc-interface/trans.c (gigi): Adjust call to create_field_decl.
8655 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8657 * gcc-interface/gigi.h (build_unc_object_type): Add DEBUG_INFO_P param.
8658 (build_unc_object_type_from_ptr): Likewise.
8659 * gcc-interface/utils.c (build_unc_object_type): Add DEBUG_INFO_P param
8660 and pass it to create_type_decl. Declare the type. Simplify.
8661 (build_unc_object_type_from_ptr): Add DEBUG_INFO_P parameter and pass
8662 it to build_unc_object_type.
8663 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust to above change.
8664 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
8665 (gnat_to_gnu): Likewise.
8666 * gcc-interface/utils2.c (build_allocator): Likewise.
8668 2010-05-07 Eric Botcazou <ebotcazou@adacore.com>
8671 * gcc-interface/misc.c (gnat_handle_option): Fix long line.
8673 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8675 * gcc-interface/Makefile.in: Removed mips-sgi-irix5* support.
8677 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
8680 * gcc-interface/misc.c (gnat_handle_option): Add argument kind.
8682 2010-05-02 Giuseppe Scrivano <gscrivano@gnu.org>
8684 * gnathtml.pl: Use 755 as mask for new directories.
8686 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
8688 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Uniquize
8689 constant constructors before taking their address.
8691 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
8693 * exp_dbug.ads: Fix outdated description. Mention link between XVS
8695 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Set
8696 XVZ variable as unit size of XVS type.
8697 (maybe_pad_type): Likewise.
8699 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
8701 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Do not
8702 use memmove if the array type is bit-packed.
8704 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
8706 * gcc-interface/misc.c (gnat_init): Remove second argument in call to
8707 build_common_tree_nodes.
8709 2010-04-18 Ozkan Sezer <sezeroz@gmail.com>
8711 * gsocket.h: Make sure that winsock2.h is included before windows.h.
8713 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8715 * gcc-interface/utils2.c (build_unary_op) <ATTR_ADDR_EXPR>: Do not
8718 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8720 * uintp.h (UI_Lt): Declare.
8721 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do the size
8722 computation in sizetype.
8723 <E_Array_Subtype>: Use unified handling for all index types. Do not
8724 generate MAX_EXPR-based expressions, only COND_EXPR-based ones. Add
8726 (annotate_value): Change test for negative values.
8727 (validate_size): Apply test for negative values on GNAT nodes.
8728 (set_rm_size): Likewise.
8729 * gcc-interface/misc.c (gnat_init): Set unsigned types for sizetypes.
8730 * gcc-interface/utils.c (rest_of_record_type_compilation): Change test
8731 for negative values.
8732 (max_size) <MINUS_EXPR>: Do not reassociate a COND_EXPR on the LHS.
8733 (builtin_type_for_size): Adjust definition of signed_size_type_node.
8734 * gcc-interface/utils2.c (compare_arrays): Optimize comparison of
8735 lengths against zero.
8737 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8739 * back-end.adb (Call_Back_End): Pass Standard_Character to gigi.
8740 * gcc-interface/gigi.h (gigi): Add standard_character parameter.
8741 (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
8742 LONG_LONG_TYPE_SIZE, FLOAT_TYPE_SIZE, DOUBLE_TYPE_SIZE,
8743 LONG_DOUBLE_TYPE_SIZE, SIZE_TYPE): Delete.
8744 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Call
8746 * gcc-interface/misc.c (gnat_init): Set signedness of char as per
8747 flag_signed_char. Tag sizetype with "size_type" moniker.
8748 * gcc-interface/trans.c (gigi): Add standard_character parameter.
8749 Remove useless built-in types. Equate unsigned_char_type_node to
8750 Standard.Character. Use it instead of char_type_node throughout.
8751 (Attribute_to_gnu): Likewise.
8752 (gnat_to_gnu): Likewise.
8753 * gcc-interface/utils2.c (build_call_raise): Likewise.
8755 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8757 * gcc-interface/gigi.h (enum standard_datatypes): Add new values
8758 ADT_sbitsize_one_node and ADT_sbitsize_unit_node.
8759 (sbitsize_one_node): New macro.
8760 (sbitsize_unit_node): Likewise.
8761 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Fix
8762 latent bug in the computation of subrange_p. Fold wider_p predicate.
8763 (cannot_be_superflat_p): Use an explicitly signed 64-bit type to do
8764 the final comparison.
8765 (make_aligning_type): Build real negation and use sizetype throughout
8766 the offset computation.
8767 (maybe_pad_type): Do not issue the warning when the new size expression
8769 (annotate_value) <INTEGER_CST>: Simplify code handling negative values.
8770 * gcc-interface/misc.c (gnat_init): Initialize sbitsize_one_node and
8772 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Pool_Address>: Fold
8774 (gnat_to_gnu) <N_Free_Statement>: Likewise.
8775 * gcc-interface/utils.c (convert): Use sbitsize_unit_node.
8776 * gcc-interface/utils2.c (compare_arrays): Compute real lengths and use
8777 constants in sizetype. Remove dead code and tweak comments. Generate
8778 equality instead of inequality comparisons for zero length tests.
8780 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8782 * gcc-interface/gigi.h (gnat_init_decl_processing): Delete.
8783 * gcc-interface/decl.c (gnat_to_gnu_entity): Constify a few variables.
8784 <object>: Do not create the fake PARM_DECL if no debug info is needed.
8785 Do not create the corresponding VAR_DECL of a CONST_DECL for debugging
8786 purposes if no debug info is needed.
8787 Fix formatting. Reorder and add comments.
8788 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Reference>: Constify
8789 variable and remove obsolete comment.
8790 * gcc-interface/utils.c (convert_vms_descriptor64): Tweak comment.
8791 (convert_vms_descriptor32): Likewise.
8792 (convert): Remove dead code.
8793 <UNCONSTRAINED_ARRAY_REF>: Pass the field instead of its name to build
8794 the reference to the P_ARRAY pointer.
8795 <POINTER_TYPE>: Likewise.
8796 (maybe_unconstrained_array) <UNCONSTRAINED_ARRAY_TYPE>: Likewise.
8797 (gnat_init_decl_processing): Delete, move contents to...
8798 * gcc-interface/misc.c (gnat_init): ...here.
8800 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8802 * gcc-interface/trans.c (unchecked_conversion_nop): Handle function
8803 calls. Return true for conversion from a record subtype to its type.
8805 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8807 * gcc-interface/decl.c (gnat_to_gnu_entity): Use boolean_type_node in
8808 lieu of integer_type_node for boolean operations.
8809 (choices_to_gnu): Likewise.
8810 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
8811 (Loop_Statement_to_gnu): Likewise.
8812 (establish_gnat_vms_condition_handler): Likewise.
8813 (Exception_Handler_to_gnu_sjlj): Likewise.
8814 (gnat_to_gnu): Likewise.
8815 (build_unary_op_trapv): Likewise.
8816 (build_binary_op_trapv): Likewise.
8817 (emit_range_check): Likewise.
8818 (emit_index_check): Likewise.
8819 (convert_with_check): Likewise.
8820 * gcc-interface/utils.c (convert_vms_descriptor64): Likewise.
8821 (convert_vms_descriptor32): Likewise.
8822 (convert_vms_descriptor): Likewise.
8823 * gcc-interface/utils2.c (nonbinary_modular_operation): Likewise.
8824 (compare_arrays): Use boolean instead of integer constants.
8825 (build_binary_op) <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR,
8826 TRUTH_OR_EXPR, TRUTH_XOR_EXPR>: New case. Check that the result type
8828 <GE_EXPR, LE_EXPR, GT_EXPR, LT_EXPR>: Remove obsolete assertion.
8829 <EQ_EXPR, NE_EXPR>: Check that the result type is a boolean type.
8830 <PREINC/PREDECREMENT_EXPR, POSTINC/POSTDECREMENT_EXPR>: Delete.
8831 <TRUTH_NOT_EXPR>: Check that the result type is a boolean type.
8832 (build_unary_op): Use boolean_type_node in lieu of integer_type_node
8833 for boolean operations.
8834 (fill_vms_descriptor): Likewise. Fix formatting nits.
8836 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8838 * gcc-interface/ada-tree.def (LOOP_STMT): Change to 4-operand nodes.
8839 * gcc-interface/ada-tree.h (LOOP_STMT_TOP_COND, LOOP_STMT_BOT_COND):
8841 (LOOP_STMT_COND): ...this.
8842 (LOOP_STMT_BOTTOM_COND_P): New flag.
8843 (LOOP_STMT_TOP_UPDATE_P): Likewise.
8844 * gcc-interface/trans.c (can_equal_min_or_max_val_p): New function.
8845 (can_equal_min_val_p): New static inline function.
8846 (can_equal_max_val_p): Likewise.
8847 (Loop_Statement_to_gnu): Use build4 in lieu of build5 and adjust to
8848 new LOOP_STMT semantics. Use two different strategies depending on
8849 whether optimization is enabled to translate the loop.
8850 (gnat_gimplify_stmt) <LOOP_STMT>: Adjust to new LOOP_STMT semantics.
8852 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8854 * uintp.adb (UI_From_Dint): Remove useless code.
8855 (UI_From_Int): Likewise.
8856 * uintp.h: Reorder declarations.
8857 (UI_From_gnu): Declare.
8858 (UI_Base): Likewise.
8859 (Vector_Template): Likewise.
8860 (Vector_To_Uint): Likewise.
8863 * gcc-interface/gigi.h: Tweak comments.
8864 * gcc-interface/cuintp.c (UI_From_gnu): New global function.
8865 * gcc-interface/decl.c (maybe_pad_type): Do not warn if either size
8867 (annotate_value) <INTEGER_CST>: Call UI_From_gnu.
8868 * gcc-interface/trans.c (post_error_ne_num): Call post_error_ne.
8869 (post_error_ne_tree): Call UI_From_gnu and post_error_ne.
8870 * gcc-interface/utils.c (max_size) <tcc_binary>: Do not special-case
8873 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8875 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Just copy
8877 * gcc-interface/trans.c (smaller_packable_type_p): Rename into...
8878 (smaller_form_type_p): ...this. Change parameter and variable names.
8879 (call_to_gnu): Use the nominal type of the parameter to create the
8880 temporary if it's a smaller form of the actual type.
8881 (addressable_p): Return false if the actual type is integral and its
8882 size is greater than that of the expected type.
8884 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8886 * gcc-interface/cuintp.c (UI_To_gnu): Fix long line.
8887 * gcc-interface/gigi.h (MARK_VISITED): Skip objects of constant class.
8888 (process_attributes): Delete.
8889 (post_error_ne_num): Change parameter name.
8890 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force debug info
8891 with -g3. Remove a couple of obsolete lines. Minor tweaks.
8892 If type annotating mode, operate on trees to compute the adjustment to
8893 the sizes of tagged types. Fix long line.
8894 (cannot_be_superflat_p): Tweak head comment.
8895 (annotate_value): Fold local constant.
8896 (set_rm_size): Fix long line.
8897 * gcc-interface/trans.c (Identifier_to_gnu): Rework comments.
8898 (Attribute_to_gnu): Fix long line.
8899 <Attr_Size>: Remove useless assertion.
8900 Reorder statements. Use size_binop routine.
8901 (Loop_Statement_to_gnu): Use build5 in lieu of build_nt.
8902 Create local variables for the label and the test. Tweak comments.
8903 (Subprogram_Body_to_gnu): Reset cfun to NULL.
8904 (Compilation_Unit_to_gnu): Use the Sloc of the Unit node.
8905 (process_inlined_subprograms): Integrate into...
8906 (Compilation_Unit_to_gnu): ...this.
8907 (gnat_to_gnu): Fix long line.
8908 (post_error_ne_num): Change parameter name.
8909 * gcc-interface/utils.c (process_attributes): Static-ify.
8910 <ATTR_MACHINE_ATTRIBUTE>: Set input_location before proceeding.
8911 (create_type_decl): Add comment.
8912 (create_var_decl_1): Process the attributes after adding the VAR_DECL
8913 to the current binding level.
8914 (create_subprog_decl): Likewise for the FUNCTION_DECL.
8915 (end_subprog_body): Do not reset cfun to NULL.
8916 (build_vms_descriptor32): Fix long line.
8917 (build_vms_descriptor): Likewise.
8918 (handle_nonnull_attribute): Likewise.
8919 (convert_vms_descriptor64): Likewise.
8920 * gcc-interface/utils2.c (fill_vms_descriptor): Fix long line.
8921 (gnat_protect_expr): Fix thinko.
8923 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8925 * gcc-interface/trans.c (gigi): Set DECL_IGNORED_P on EH functions.
8926 (gnat_to_gnu) <N_Op_Eq>: Restore the value of input_location
8927 before translating the top-level node.
8928 (lvalue_required_p) <N_Function_Call>: Return 1 if !constant.
8929 <N_Object_Declaration>: Likewise.
8930 <N_Assignment_Statement>: Likewise.
8931 <N_Unchecked_Type_Conversion>: Likewise.
8932 (call_to_gnu): Remove kludge.
8933 (gnat_to_gnu) <N_Return_Statement>: When not optimizing, force labels
8934 associated with user returns to be preserved.
8935 (gnat_to_gnu): Add special code to deal with boolean rvalues.
8936 * gcc-interface/utils2.c (compare_arrays): Set input_location on all
8938 (build_unary_op) <ADDR_EXPR>: Call build_fold_addr_expr.
8939 <INDIRECT_REF>: Call build_fold_indirect_ref.
8941 2010-04-15 Joel Sherrill <joel.sherrill@oarcorp.com>
8943 * g-socket.adb: A target can have multiple missing errno's. This
8944 will result in multiple errno's being defined as -1. Because of this
8945 we can not use a case but must use a series of if's to avoid
8946 a duplicate case error in GNAT.Sockets.Resolve_Error.
8948 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8950 * gcc-interface/trans.c (call_to_gnu): Open a nesting level if this is
8951 a statement. Otherwise, if at top-level, push the processing of the
8952 elaboration routine. In the misaligned case, issue the error messages
8953 again on entry and create the temporary explicitly. Do not issue them
8955 For a function call, emit the range check if necessary.
8956 In the copy-in copy-out case, create the temporary for the return
8958 Do not unnecessarily convert by-ref parameters to the formal's type.
8959 Remove obsolete guards in conditions.
8960 (gnat_to_gnu) <N_Assignment_Statement>: For a function call, pass the
8961 target to call_to_gnu in all cases.
8962 (gnat_gimplify_expr) <ADDR_EXPR>: Remove handling of SAVE_EXPR.
8963 (addressable_p) <CONSTRUCTOR>: Return false if not static.
8964 <COMPOUND_EXPR>: New case.
8965 * gcc-interface/utils2.c (build_unary_op) <ADDR_EXPR>: Fold a compound
8966 expression if it has unconstrained array type.
8967 (gnat_mark_addressable) <COMPOUND_EXPR>: New case.
8968 (gnat_stabilize_reference) <COMPOUND_EXPR>: Stabilize operands on an
8971 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8973 * gcc-interface/trans.c (gigi): Do not start statement group.
8974 (Compilation_Unit_to_gnu): Set current_function_decl to NULL.
8975 Start statement group and push binding level here...
8976 (gnat_to_gnu) <N_Compilation_Unit>: ...and not here.
8977 Do not push fake contexts at top level. Remove redundant code.
8978 (call_to_gnu): Rename a local variable and constify another.
8979 * gcc-interface/utils.c (gnat_pushlevel): Fix formatting nits.
8980 (set_current_block_context): Set it as the group's block.
8981 (gnat_init_decl_processing): Delete unrelated init code.
8982 (end_subprog_body): Use NULL_TREE.
8984 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8986 * gcc-interface/trans.c (call_to_gnu): Do not unnecessarily force
8987 side-effects of actual parameters before the call.
8989 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8991 * gcc-interface/decl.c (validate_size): Reorder, remove obsolete test
8993 (set_rm_size): Reorder and remove obsolete test.
8995 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
8997 * gcc-interface/gigi.h: Reorder declarations and tweak comments.
8998 (gigi): Adjust ATTRIBUTE_UNUSED markers.
8999 * gcc-interface/gadaint.h: New file.
9000 * gcc-interface/trans.c: Include it in lieu of adaint.h. Reorder.
9001 (__gnat_to_canonical_file_spec): Remove declaration.
9002 (number_names): Delete.
9003 (number_files): Likewise.
9005 * gcc-interface/Make-lang.in (ada/trans.o): Adjust dependencies to
9008 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
9010 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Class_Wide_Type>: Fix
9012 * gcc-interface/trans.c (process_freeze_entity): Use local copy of
9013 Ekind. Return early for class-wide types. Do not compute initializer
9014 unless necessary. Reuse the tree for an associated class-wide type
9015 only if processing its root type.
9017 2010-04-13 Joel Sherrill <joel.sherrill@oarcorp.com>
9019 * gsocket.h: Run-time can no longer be built without network
9020 OS headers available. Changing RTEMS GNAT build procedure to
9021 reflect this and letting run-time build use network .h files.
9023 2010-04-13 Duncan Sands <baldrick@free.fr>
9025 * gcc-interface/misc.c (gnat_eh_type_covers): Remove.
9026 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Update comment.
9028 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
9030 * gcc-interface/gigi.h (standard_datatypes): Add ADT_parent_name_id.
9031 (parent_name_id): New macro.
9032 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Use it.
9033 * gcc-interface/trans.c (gigi): Initialize it.
9034 (lvalue_required_p) <N_Type_Conversion>: New case.
9035 <N_Qualified_Expression>: Likewise.
9036 <N_Allocator>: Likewise.
9037 * gcc-interface/utils.c (convert): Try to properly upcast tagged types.
9039 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
9041 * gcc-interface/ada-tree.h (TYPE_BY_REFERENCE_P): Delete.
9042 (DECL_CONST_ADDRESS_P): New macro.
9043 (SET_DECL_ORIGINAL_FIELD_TO_FIELD): Likewise.
9044 (SAME_FIELD_P): Likewise.
9045 * gcc-interface/decl.c (constructor_address_p): New static function.
9046 (gnat_to_gnu_entity) <object>: Set DECL_CONST_ADDRESS_P according to
9047 the return value of above function.
9048 (gnat_to_gnu_entity) <E_Record_Type>: Force BLKmode for all types
9049 passed by reference.
9050 <E_Record_Subtype>: Likewise.
9051 Set TREE_ADDRESSABLE on the type if it passed by reference.
9052 (make_packable_type): Use SET_DECL_ORIGINAL_FIELD_TO_FIELD.
9053 (create_field_decl_from): Likewise.
9054 (substitute_in_type): Likewise.
9055 (purpose_member_field): Use SAME_FIELD_P.
9056 * gcc-interface/misc.c (must_pass_by_ref): Test TREE_ADDRESSABLE.
9057 * gcc-interface/trans.c (lvalue_required_p): Add ADDRESS_OF_CONSTANT
9058 parameter and adjust recursive calls.
9059 <N_Explicit_Dereference>: New case.
9060 <N_Object_Declaration>: Return 1 if the object is of a class-wide type.
9061 Adjust calls to lvalue_required_p. Do not return the initializer of a
9062 DECL_CONST_ADDRESS_P constant if an lvalue is required for it.
9063 (call_to_gnu): Delay issuing error message for a misaligned actual and
9064 avoid the associated back-end assertion. Test TREE_ADDRESSABLE.
9065 (gnat_gimplify_expr) <ADDR_EXPR>: Handle non-static constructors.
9066 * gcc-interface/utils.c (make_dummy_type): Set TREE_ADDRESSABLE if the
9067 type is passed by reference.
9068 (convert) <CONSTRUCTOR>: Convert in-place in more cases.
9069 * gcc-interface/utils2.c (build_cond_expr): Drop TYPE_BY_REFERENCE_P.
9070 (build_simple_component_ref): Use SAME_FIELD_P.
9072 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
9074 * gcc-interface/trans.c (Identifier_to_gnu): Use boolean variable.
9075 (call_to_gnu): Test gigi's flag TYPE_BY_REFERENCE_P instead of calling
9076 front-end's predicate Is_By_Reference_Type. Use consistent order and
9077 remove ??? comment. Use original conversion in all cases, if any.
9078 * gcc-interface/utils.c (make_dummy_type): Minor tweak.
9079 (convert): Use local copy in more cases.
9080 <INDIRECT_REF>: Remove deactivated code.
9081 (unchecked_convert): Use a couple of local copies.
9083 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
9085 * gcc-interface/trans.c (lvalue_required_for_attribute_p): New static
9087 (lvalue_required_p) <N_Attribute_Reference>: Call it.
9088 (gnat_to_gnu) <N_Selected_Component>: Prevent build_component_ref from
9089 folding the result only if lvalue_required_for_attribute_p is true.
9090 * gcc-interface/utils.c (maybe_unconstrained_array): Pass correctly
9091 typed constant to build_component_ref.
9092 (unchecked_convert): Likewise.
9093 * gcc-interface/utils2.c (maybe_wrap_malloc): Likewise.
9094 (build_allocator): Likewise.
9096 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
9098 * gcc-interface/utils2.c (build_cond_expr): Take the address and
9099 dereference if the result type is passed by reference.
9101 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
9103 * gcc-interface/trans.c (Case_Statement_to_gnu): Bool-ify variable.
9104 (gnat_to_gnu) <N_Null_Statement>: When not optimizing, generate a
9105 goto to the next statement.
9107 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
9109 * gcc-interface/gigi.h (maybe_variable): Delete.
9110 (protect_multiple_eval): Likewise.
9111 (maybe_stabilize_reference): Likewise.
9112 (gnat_save_expr): Declare.
9113 (gnat_protect_expr): Likewise.
9114 (gnat_stabilize_reference): Likewise.
9115 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use
9116 gnat_stabilize_reference.
9117 (maybe_variable): Delete.
9118 (elaborate_expression_1): Use gnat_save_expr.
9119 * gcc-interface/trans.c (Attribute_to_gnu): Use gnat_protect_expr.
9120 (call_to_gnu): Pass NULL to gnat_stabilize_reference.
9121 (gnat_to_gnu) <N_Object_Declaration>: Use gnat_save_expr.
9122 <N_Slice>: Use gnat_protect_exp.
9123 <N_Selected_Component>: Pass NULL to gnat_stabilize_reference.
9124 <N_In>: Use gnat_protect_expr.
9125 Pass NULL to gnat_stabilize_reference.
9126 (build_unary_op_trapv): Use gnat_protect_expr.
9127 (build_binary_op_trapv): Likewise.
9128 (emit_range_check): Likewise.
9129 (emit_index_check): Likewise.
9130 (convert_with_check): Likewise.
9131 (protect_multiple_eval): Move to utils2.c file.
9132 (maybe_stabilize_reference): Merge into...
9133 (gnat_stabilize_reference): ...this. Move to utils2.c file.
9134 (gnat_stabilize_reference_1): Likewise.
9135 * gcc-interface/utils.c (convert_to_fat_pointer): Use gnat_protect_expr
9136 instead of protect_multiple_eval.
9137 * gcc-interface/utils2.c (compare_arrays): Likewise.
9138 (nonbinary_modular_operation): Likewise.
9139 (maybe_wrap_malloc): Likewise.
9140 (build_allocator): Likewise.
9141 (gnat_save_expr): New function.
9142 (gnat_protect_expr): Rename from protect_multiple_eval. Early return
9143 in common cases. Propagate TREE_READONLY onto dereferences.
9144 (gnat_stabilize_reference_1): Move from trans.c file.
9145 (gnat_stabilize_reference): Likewise.
9147 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
9149 * gcc-interface/gigi.h (gnat_mark_addressable): Rename parameter.
9150 * gcc-interface/decl.c (maybe_variable): Do not set TREE_STATIC on _REF
9151 node. Use the type of the operand to set TREE_READONLY.
9152 * gcc-interface/trans.c (Identifier_to_gnu): Do not set TREE_STATIC on
9153 _REF node. Do not overwrite TREE_READONLY.
9154 (call_to_gnu): Rename local variable and fix various nits. In the
9155 copy-in/copy-out case, build the SAVE_EXPR manually.
9156 (convert_with_check): Call protect_multiple_eval in lieu of save_expr
9157 and fold the computations.
9158 (protect_multiple_eval): Always save entire fat pointers.
9159 (maybe_stabilize_reference): Minor tweaks.
9160 (gnat_stabilize_reference_1): Likewise. Do not deal with tcc_constant,
9161 tcc_type and tcc_statement.
9162 * gcc-interface/utils.c (convert_to_fat_pointer): Call
9163 protect_multiple_eval in lieu of save_expr.
9164 (convert): Minor tweaks.
9165 (maybe_unconstrained_array): Do not set TREE_STATIC on _REF node.
9166 (builtin_type_for_size): Call gnat_type_for_size directly.
9167 * gcc-interface/utils2.c (contains_save_expr_p): Delete.
9168 (contains_null_expr): Likewise
9169 (gnat_build_constructor): Do not call it.
9170 (compare_arrays): Deal with all side-effects, use protect_multiple_eval
9171 instead of gnat_stabilize_reference to protect the operands.
9172 (nonbinary_modular_operation): Call protect_multiple_eval in lieu of
9174 (maybe_wrap_malloc): Likewise.
9175 (build_allocator): Likewise.
9176 (build_unary_op) <INDIRECT_REF>: Do not set TREE_STATIC on _REF node.
9177 (gnat_mark_addressable): Rename parameter.
9179 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
9181 * gcc-interface/ada-tree.h (TYPE_RETURNS_UNCONSTRAINED_P): Rename into.
9182 (TYPE_RETURN_UNCONSTRAINED_P): ...this.
9183 (TYPE_RETURNS_BY_REF_P): Rename into.
9184 (TYPE_RETURN_BY_DIRECT_REF_P): ...this.
9185 (TYPE_RETURNS_BY_TARGET_PTR_P): Delete.
9186 * gcc-interface/gigi.h (create_subprog_type): Adjust parameter names.
9187 (build_return_expr): Likewise.
9188 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>:
9189 Rename local variables. If the return Mechanism is By_Reference, pass
9190 return_by_invisible_ref_p to create_subprog_type instead of toggling
9191 TREE_ADDRESSABLE. Test return_by_invisible_ref_p in order to annotate
9192 the mechanism. Use regular return for contrained types with non-static
9193 size and return by invisible reference for unconstrained return types
9194 with default discriminants. Update comment.
9195 * gcc-interface/trans.c (Subprogram_Body_to_gnu): If the function
9196 returns by invisible reference, turn the RESULT_DECL into a pointer.
9197 Do not handle DECL_BY_REF_P in the CICO case here.
9198 (call_to_gnu): Remove code handling return by target pointer. For a
9199 function call, if the return type has non-constant size, generate the
9200 assignment with an INIT_EXPR.
9201 (gnat_to_gnu) <N_Return_Statement>: Remove dead code in the CICO case.
9202 If the function returns by invisible reference, build the copy return
9204 (add_decl_expr): Initialize the variable with an INIT_EXPR.
9205 * gcc-interface/utils.c (create_subprog_type): Adjust parameter names.
9206 Adjust for renaming of macros. Copy the node only when necessary.
9207 (create_subprog_decl): Do not toggle TREE_ADDRESSABLE on the return
9208 type, only change DECL_BY_REFERENCE on the RETURN_DECL.
9209 (convert_from_reference): Delete.
9210 (is_byref_result): Likewise.
9211 (gnat_genericize_r): Likewise.
9212 (gnat_genericize): Likewise.
9213 (end_subprog_body): Do not call gnat_genericize.
9214 * gcc-interface/utils2.c (build_binary_op) <INIT_EXPR>: New case.
9215 (build_return_expr): Adjust parameter names, logic and comment.
9217 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
9219 * exp_pakd.adb (Create_Packed_Array_Type): Always use a modular type
9220 if the size is small enough. Propagate the alignment if there is an
9221 alignment clause on the original array type.
9222 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
9223 Deal with under-aligned packed array types. Copy the size onto the
9224 justified modular type and don't lay it out again. Likewise for the
9225 padding type built for other under-aligned subtypes.
9226 * gcc-interface/utils.c (finish_record_type): Do not set a default mode
9229 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
9231 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set default
9232 alignment on the RETURN type built for the Copy-In Copy-Out mechanism.
9234 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
9236 * gcc-interface/trans.c (call_to_gnu): In the return-by-target-ptr case
9237 do not set the result type if there is a specified target and do not
9238 convert the result in any cases.
9239 (protect_multiple_eval): Make direct SAVE_EXPR for CALL_EXPR.
9240 (maybe_stabilize_reference) <COMPOUND_EXPR>: Merge with CALL_EXPR.
9242 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
9244 * gcc-interface/Makefile.in (SPARC/Solaris): Use sparcv8plus.
9246 2010-02-27 Eric Botcazou <ebotcazou@adacore.com>
9249 * gcc-interface/utils2.c (build_binary_op) <EQ_EXPR>: Assert that fat
9250 pointer base types are variant of each other. Apply special treatment
9251 for null to fat pointer types in all cases.
9253 2010-01-28 Pascal Obry <obry@adacore.com>
9255 * s-win32.ads: Add some missing constants.
9257 2010-01-28 Vincent Celier <celier@adacore.com>
9259 * prj-attr-pm.adb (Add_Attribute): Do nothing if To_Package is
9262 2010-01-28 Robert Dewar <dewar@adacore.com>
9264 * gnat_rm.texi: Minor correction
9266 2010-01-27 Pascal Obry <obry@adacore.com>
9268 * g-awk.adb: ensure that an AWK session is reusable.
9270 2010-01-27 Vasiliy Fofanov <fofanov@adacore.com>
9272 * g-regist.adb (For_Every_Key): Fix previous change.
9275 2010-01-27 Thomas Quinot <quinot@adacore.com>
9277 * lib-writ.ads: Current version of spec for new N (note) ALI lines
9279 2010-01-27 Yannick Moy <moy@adacore.com>
9281 * a-cdlili.adb (Insert): Correct exception message when cursor
9282 designates wrong list.
9284 2010-01-27 Vincent Celier <celier@adacore.com>
9286 * gnatcmd.adb: When there is only one main specified, the package
9287 support Switches (<main>) and attribute Switches is specified for the
9288 main, use these switches, instead of Default_Switches ("Ada").
9290 2010-01-27 Robert Dewar <dewar@adacore.com>
9292 * sem_prag.adb, par-prag.adb, snames.ads-tmpl: pragma Dimension initial
9294 * exp_disp.adb: Minor reformatting
9296 2010-01-27 Tristan Gingold <gingold@adacore.com>
9298 * seh_init.c: Use __ImageBase instead of _ImageBase.
9300 2010-01-27 Javier Miranda <miranda@adacore.com>
9302 * exp_disp.ads, exp_disp.adb (Expand_Interface_Thunk): Modify the
9303 profile of interface thunks. The type of the controlling formal is now
9304 the covered interface type (instead of the target tagged type).
9306 2010-01-27 Sergey Rybin <rybin@adacore.com>
9308 * gnat_rm.texi, gnat_ugn.texi: Update gnatcheck doc.
9310 2010-01-27 Robert Dewar <dewar@adacore.com>
9312 * sinput.ads, sinput.adb (Sloc_Range): Applies to all nodes, formal
9313 changed from Expr to N.
9315 2010-01-26 Thomas Quinot <quinot@adacore.com>
9317 * gnat_ugn.texi: Adjust documentation of -gnatz switches.
9318 * usage.adb: Replace line for -gnatz with two lines for -gnatzc and
9321 2010-01-26 Vincent Celier <celier@adacore.com>
9323 * prj-attr.adb: Add new attribute Library_Install_Name_Option
9324 Replace attribute Run_Path_Origin_Supported with Run_Path_Origin
9325 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
9326 attributes Run_Path_Option and Library_Install_Name_Option.
9327 * prj.ads (Project_Configuration): Replace component
9328 Run_Path_Origin_Supported with component Run_Path_Origin. Add new
9329 component Library_Install_Name_Option.
9330 * snames.ads-tmpl: Add new standard name Library_Install_Name_Option
9331 Replace Run_Path_Origin_Supported with Run_Path_Origin
9333 2010-01-26 Ed Schonberg <schonberg@adacore.com>
9335 * sem_ch8.adb (Use_One_Package): Within an instance, an actual package
9336 is not hidden by a homograph declared in another actual package.
9338 2010-01-26 Robert Dewar <dewar@adacore.com>
9340 * par_sco.adb (Traverse_Declarations_Or_Statements): Only generate
9341 decisions for pragmas Assert, Check, Precondition, Postcondition if
9343 * scos.ads: Update comments.
9344 * get_scos.adb, put_scos.adb: Minor fix to code reading statement SCOs.
9345 Also remove obsolete code for CT (exit point) SCOs.
9347 2010-01-26 Thomas Quinot <quinot@adacore.com>
9349 * switch-c.adb: Fix handling of -gnatz*
9351 2010-01-26 Robert Dewar <dewar@adacore.com>
9353 * par_sco.adb (Traverse_Declarations_Or_Statements): Separate F/W
9354 qualifiers for FOR/WHILE loops
9355 * scos.ads: Use separate type letters F/W for for/while loops
9357 2010-01-26 Robert Dewar <dewar@adacore.com>
9359 * get_scos.adb (Get_SCOs): Implement new form of CS entries (multiple
9360 entries per line, one for each statement in the sequence).
9361 * par_sco.adb (Traverse_Declarations_Or_Statements): Increase array
9362 size from 100 to 10_000 for SC_Array to avoid any real possibility of
9363 overflow. Output decisions in for loops.
9364 Exclude labels from CS lines.
9365 * scos.ads: Clarify that label is not included in the entry point
9367 2010-01-26 Robert Dewar <dewar@adacore.com>
9369 * par_sco.adb (Traverse_Declarations_Or_Statments): Implement new
9370 format of statement sequence SCO entries (one location/statement).
9371 * put_scos.adb (Put_SCOs): Implement new format of CS lines
9372 * scos.ads: Update comments.
9373 * sem_eval.adb: Minor reformatting.
9375 2010-01-26 Robert Dewar <dewar@adacore.com>
9377 * par_sco.ads, par_sco.adb (Set_Statement_Entry): New handling of exits
9378 (Extend_Statement_Sequence): New procedures
9379 (Traverse_Declarations_Or_Statements): New handling for exits.
9381 2010-01-26 Robert Dewar <dewar@adacore.com>
9383 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
9386 2010-01-26 Robert Dewar <dewar@adacore.com>
9388 * par_sco.adb (Is_Logical_Operator): Exclude AND/OR/XOR
9389 * scos.ads: Clarify handling of logical operators
9391 2010-01-26 Arnaud Charlet <charlet@adacore.com>
9393 * s-tpoben.adb: Update comments.
9395 2010-01-26 Robert Dewar <dewar@adacore.com>
9397 * freeze.adb (Set_Small_Size): Don't set size if alignment clause
9400 2010-01-26 Robert Dewar <dewar@adacore.com>
9402 * scos.ads: Clean up documentation, remove obsolete XOR references
9403 2010-01-26 Vincent Celier <celier@adacore.com>
9405 * gnat_ugn.texi: Complete documentation on the restrictions for
9406 combined options in -gnatxxx switches.
9409 2010-01-26 Arnaud Charlet <charlet@adacore.com>
9411 * s-tpoben.adb (Initialize_Protection_Entries): If a PO is created from
9412 a controlled operation, abort is already deferred at this point, so we
9413 need to use Defer_Abort_Nestable.
9415 2010-01-26 Vincent Celier <celier@adacore.com>
9417 * prj-conf.adb (Get_Config_Switches): Check for a default language for
9418 a project extending a project with no languages.
9420 2010-01-26 Vincent Celier <celier@adacore.com>
9422 * switch-c.adb (Scan_Front_End_Switches): Take into account options
9423 that follow -gnatef.
9424 Allow -gnateG to be followed by other options.
9426 2010-01-26 Robert Dewar <dewar@adacore.com>
9428 * s-commun.ads, s-osprim-mingw.adb, s-stchop-vxworks.adb, sem_aggr.adb,
9429 s-vxwext.adb, sem_ch10.adb, sem_eval.adb, sem_prag.adb: Minor
9432 2010-01-26 Vasiliy Fofanov <fofanov@adacore.com>
9434 * g-regist.adb, g-regist.ads (For_Every_Key): New generic procedure
9435 that allows to iterate over all subkeys of a key.
9437 2010-01-26 Ed Falis <falis@adacore.com>
9439 * sysdep.c: enable NFS for VxWorks MILS
9440 * env.c: enable __gnat_environ for VxWorks MILS
9441 * gcc-interface/Makefile.in: Add VxWorks MILS target pairs.
9443 2010-01-25 Bob Duff <duff@adacore.com>
9445 * sem_aggr.adb (Resolve_Array_Aggregate): Check for the case where this
9446 is an internally-generated positional aggregate, and the bounds are
9447 already correctly set. We don't want to overwrite those bounds with
9448 bounds determined by context.
9450 2010-01-25 Robert Dewar <dewar@adacore.com>
9452 * g-sercom.ads, gnatcmd.adb, gnatlink.adb, a-ststio.adb, exp_ch6.adb,
9453 exp_ch9.adb, g-sechas.ads: Minor reformatting.
9455 2010-01-25 Thomas Quinot <quinot@adacore.com>
9457 * s-commun.adb (Last_Index): Count must be converted to SEO (a signed
9458 integer type) before subtracting 1, otherwise the computation may wrap
9459 (because size_t is modular) and cause the conversion to fail.
9461 2010-01-25 Ed Falis <falis@adacore.com>
9463 * sysdep.c, init.c: Adapt to support full run-time on VxWorks MILS.
9465 2010-01-25 Vincent Celier <celier@adacore.com>
9467 * prj-attr.adb: New attribute Run_Path_Origin_Required
9468 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process new
9469 attribute Run_Path_Origin_Required.
9470 * prj.ads (Project_Configuration): New component
9471 Run_Path_Origin_Supported.
9472 * snames.ads-tmpl: New standard name Run_Path_Origin_Required
9474 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9476 * sem_aggr.adb (Resolve_Array_Aggregate): If the bounds in a choice
9477 have errors, do not continue resolution of the aggregate.
9478 * sem_eval.adb (Eval_Indexed_Component): Do not attempt to evaluate if
9479 the array type indicates an error.
9481 2010-01-25 Bob Duff <duff@adacore.com>
9483 * sinfo.ads: Minor comment fixes.
9485 2010-01-25 Bob Duff <duff@adacore.com>
9487 * exp_ch4.adb, exp_aggr.adb: Minor comment fixes and code clean up.
9489 2010-01-25 Arnaud Charlet <charlet@adacore.com>
9491 * gnatvsn.ads (Current_Year): Update.
9493 2010-01-25 Florian Villoing <villoing@adacore.com>
9495 * gnat_ugn.texi: Fix typo.
9497 2010-01-25 Thomas Quinot <quinot@adacore.com>
9499 * scos.ads: Update specification.
9501 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9503 * sem_ch6.adb (Process_PPCs): If a postcondition is present and the
9504 enclosing subprogram has no previous spec, attach postcondition
9505 procedure to the defining entity for the body.
9507 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9509 * exp_aggr.adb (Build_Record_Aggr_Code); Do not generate call to
9510 initialization procedure of the ancestor part of an extension aggregate
9511 if it is an interface type.
9513 2010-01-25 Vincent Celier <celier@adacore.com>
9515 * gnatlink.adb (Process_Binder_File): The directory for the shared
9516 version of libgcc in the run path options is found in the subdirectory
9517 indicated by __gnat_default_libgcc_subdir.
9518 * link.c: Declare new const char * __gnat_default_libgcc_subdir for
9521 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9523 * sem_prag.adb: More flexible pragma Annotate.
9525 2010-01-22 Eric Botcazou <ebotcazou@adacore.com>
9527 * system-linux-armel.ads (Stack_Check_Probes): Set to True.
9528 * system-linux-armeb.ads (Stack_Check_Probes): Likewise.
9530 2010-01-18 Eric Botcazou <ebotcazou@adacore.com>
9532 * gcc-interface/utils.c (create_var_decl_1): Fix formatting nits.
9534 2010-01-18 Jan Hubicka <jh@suse.cz>
9537 * gcc-interface/utils.c (create_var_decl_1): Do not set COMMON flag for
9538 unit local variables.
9540 2010-01-17 Laurent GUERBY <laurent@guerby.net>
9542 * gcc-interface/Makefile.in: Fix typo in arm*-*-linux-gnueabi.
9544 2010-01-11 Mikael Pettersson <mikpe@it.uu.se>
9546 * gcc-interface/Makefile.in: Add arm*-*-linux-gnueabi.
9547 * system-linux-armeb.ads, system-linux-armel.ads: New files.
9549 2010-01-09 Simon Wright <simon@pushface.org>
9552 * gcc-interface/Makefile.in (gnatlib-shared-darwin): Add missing
9557 Copyright (C) 2010 Free Software Foundation, Inc.
9559 Copying and distribution of this file, with or without modification,
9560 are permitted in any medium without royalty provided the copyright
9561 notice and this notice are preserved.