1 2010-10-26 Bob Duff <duff@adacore.com>
3 * namet.adb (Finalize): More cleanup of statistics printouts.
5 2010-10-26 Robert Dewar <dewar@adacore.com>
7 * ceinfo.adb: Minor reformatting.
9 2010-10-26 Javier Miranda <miranda@adacore.com>
11 * sem_ch6.adb (Check_Overriding_Indicator, New_Overloaded_Entity): When
12 setting attribute Overridden_Operation do not reference the entities
13 generated by Derive_Subprograms but their aliased entity (which
14 is the primitive inherited from the parent type).
16 2010-10-26 Bob Duff <duff@adacore.com>
18 * namet.adb, namet.ads: Minor cleanup.
20 2010-10-26 Arnaud Charlet <charlet@adacore.com>
22 * gcc-interface/Make-lang.in: Update dependencies.
24 2010-10-26 Robert Dewar <dewar@adacore.com>
26 * einfo.ads, einfo.adb (Is_Base_Type): New function, use it where
28 * exp_ch6.adb, exp_dbug.adb, exp_disp.adb, freeze.adb, lib-xref.adb,
29 sem_aux.adb, sem_ch3.adb, sem_ch7.adb, sem_ch8.adb (Is_Base_Type): Use
30 this new abstraction where appropriate.
32 2010-10-26 Ed Schonberg <schonberg@adacore.com>
34 * sem_ch12.adb: Code clean up.
36 2010-10-26 Paul Hilfinger <hilfinger@adacore.com>
38 * exp_dbug.ads: Document effect of 'pragma Unchecked_Union' on
41 2010-10-26 Ed Schonberg <schonberg@adacore.com>
43 * sem_util.adb (Note_Possible_Modification): If the target of an
44 assignment is the bound variable in an iterator, the domain of
45 iteration, i.e. array or container, is modified as well.
47 2010-10-26 Bob Duff <duff@adacore.com>
49 * Make-generated.in: Make the relevant make targets depend on
50 ceinfo.adb and csinfo.adb.
51 * csinfo.adb, ceinfo.adb: Make sure it raises an exception on failure,
52 so when called from xeinfo, the failure will be noticed.
53 * sinfo.ads: Update comments to reflect the fact that xsinfo runs csinfo
54 * xsinfo.adb, xeinfo.adb: Run ceinfo to check for errors. Close files.
56 2010-10-26 Ed Schonberg <schonberg@adacore.com>
58 * exp_ch4.adb: Set properly parent field of operands of concatenation.
60 2010-10-26 Ed Schonberg <schonberg@adacore.com>
62 * sem_res.adb (Check_Infinite_Recursion): A recursive call within a
63 conditional expression or a case expression should not generate an
64 infinite recursion warning.
66 2010-10-26 Javier Miranda <miranda@adacore.com>
68 * einfo.ads, einfo.adb (Is_Overriding_Operation): Removed.
69 (Set_Is_Overriding_Operation): Removed.
70 * sem_ch3.adb (Check_Abstract_Overriding): Remove redundant call to
71 Is_Overriding_Operation.
72 * exp_ch7.adb (Check_Visibly_Controlled): Remove redundant call to
73 Is_Overriding_Operation.
74 * sem_ch7.adb (Declare_Inherited_Private_Subprograms): Remove redundant
75 call to Set_Is_Overriding_Operation.
76 * sem_util.adb (Collect_Primitive_Operations): Replace test on
77 Is_Overriding_Operation by test on the presence of attribute
79 (Original_Corresponding_Operation): Remove redundant call to attribute
80 Is_Overriding_Operation.
81 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Remove
82 redundant call to Is_Overriding_Operation.
83 (Verify_Overriding_Indicator): Replace several occurrences of test on
84 Is_Overriding_Operation by test on the presence of attribute
86 (Check_Convention): Replace test on Is_Overriding_Operation by test on
87 the presence of Overridden_Operation.
88 (Check_Overriding_Indicator): Add missing decoration of attribute
89 Overridden_Operation. Minor code cleanup.
90 (New_Overloaded_Entity): Replace occurrence of test on
91 Is_Overriding_Operation by test on the presence of attribute
92 Overridden_Operation. Remove redundant setting of attribute
93 Is_Overriding_Operation plus minor code reorganization.
94 Add missing decoration of attribute Overridden_Operation.
95 * sem_elim.adb (Set_Eliminated): Replace test on
96 Is_Overriding_Operation by test on the presence of Overridden_Operation.
97 * sem_ch8.adb (Analyze_Subprogram_Renaming): Replace test on
98 Is_Overriding_Operation by test on the presence of
99 Overridden_Operation. Remove a redundant test on attribute
100 Is_Overriding_Operation.
101 * lib-xref.adb (Generate_Reference): Replace test on
102 Is_Overriding_Operation by test on the presence of Overridden_Operation.
103 (Output_References): Replace test on Is_Overriding_Operation by test on
104 the presence of Overridden_Operation.
105 * sem_disp.adb (Override_Dispatching_Operation): Replace test on
106 Is_Overriding_Operation by test on the presence of Overridden_Operation.
107 Add missing decoration of attribute Overridden_Operation.
109 2010-10-26 Robert Dewar <dewar@adacore.com>
111 * sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order): Properly check
114 2010-10-26 Bob Duff <duff@adacore.com>
116 * sem_res.adb (Resolve_Actuals): In case of certain
117 internally-generated type conversions (created by OK_Convert_To, so the
118 Conversion_OK flag is set), avoid fetching the component type when it's
119 not really an array type, but a private type completed by an array type.
121 2010-10-26 Ed Schonberg <schonberg@adacore.com>
123 * sem_ch5.adb: Adjust format of error message.
125 2010-10-26 Robert Dewar <dewar@adacore.com>
127 * einfo.ads, einfo.adb (OK_To_Reference): Removed, no longer used.
128 * exp_util.adb (Side_Effect_Free): Put in safety barrier in code to
129 detect renamings to avoid problems with invariants.
130 * sem_ch13.adb (Replace_Type_References_Generic): New procedure
131 (Build_Invariant_Procedure): Use Replace_Type_Reference_Generic
132 (Build_Predicate_Function): Use Replace_Type_Reference_Generic
133 * sem_res.adb, sem_ch8.adb, sem_ch4.adb (OK_To_Reference): Remove
134 references, flag is no longer set.
136 2010-10-26 Vincent Celier <celier@adacore.com>
138 * prj.ads (Source_Data): New Boolean component Initialized, defaulted
139 to False, set to True when Source_Data is completely initialized.
140 * prj-env.adb: Minor comment fix.
142 2010-10-26 Robert Dewar <dewar@adacore.com>
144 * sem_case.adb, sem_ch6.adb, sem_util.adb: Minor reformatting.
146 2010-10-26 Ed Schonberg <schonberg@adacore.com>
148 * sem_ch5.adb (Analyze_Iteration_Scheme): Diagnose attempt to use thew
149 form "for X in A" when A is an array object. This form is only intended
151 * sem_eval.adb: Fix reference to non-existing field of type conversion
153 * sem_case.adb (Check_Choices): Improve error reporting for overlapping
154 choices in case statements.
156 2010-10-26 Gary Dismukes <dismukes@adacore.com>
158 * exp_disp.adb (Expand_Interface_Actuals): When expanding an actual for
159 a class-wide interface formal that involves applying a displacement
160 conversion to the actual, check for the case of calling a build-in-place
161 function and handle generation of the implicit BIP parameters (call
162 Make_Build_In_Place_Call_In_Anonymous_Context).
163 Add with and use of Exp_Ch6.
165 2010-10-26 Robert Dewar <dewar@adacore.com>
167 * sem_prag.adb, sem_cat.ads: Minor reformatting.
169 2010-10-26 Sergey Rybin <rybin@adacore.com>
171 * vms_data.ads: Define VMS qualifier for gnatelim '--ignore' option
173 2010-10-26 Thomas Quinot <quinot@adacore.com>
175 * sem_util.adb (Has_Preelaborable_Initialization.Check_Components):
176 For a discriminant, use Discriminant_Default_Value rather than
177 Expression (Declaration_Node (D)).
179 2010-10-26 Geert Bosch <bosch@adacore.com>
181 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Parameterized
182 expressions don't need a spec, even when style checks require
183 subprograms to have one.
185 2010-10-26 Arnaud Charlet <charlet@adacore.com>
187 * gnatvsn.ads: Update comments.
189 2010-10-26 Matthew Heaney <heaney@adacore.com>
191 * Makefile.rtl, impunit.adb: Add bounded hashed set and bounded hashed
193 * a-cohata.ads: Add declaration of generic package for bounded hash
195 * a-chtgbo.ads, a-chtgbo.adb, a-chtgbk.ads, a-chtgbk.adb, a-cbhase.ads,
196 a-cbhase.adb, a-cbhama.ads, a-cbhama.adb: New files.
198 2010-10-26 Ed Schonberg <schonberg@adacore.com>
200 * sem_warn.adb: Improve warning message on overlapping actuals.
202 2010-10-26 Thomas Quinot <quinot@adacore.com>
204 * sem_ch4.adb, exp_dist.adb: Minor reformatting.
206 2010-10-26 Vincent Celier <celier@adacore.com>
208 * makeusg.adb (Makeusg): Add lines for switches -vl, -vm and -vh.
210 2010-10-26 Robert Dewar <dewar@adacore.com>
212 * exp_ch3.adb (Expand_N_Object_Declaration): Move generation of
213 predicate check to analyzer, since too much rewriting occurs in the
215 * sem_ch13.adb (Build_Predicate_Function): Change calling sequence, and
216 change the order in which things are done to fix several errors in
217 dealing with qualification of the type name.
218 (Build_Static_Predicate): Built static predicate after full analysis
219 of the body. This is necessary to fix several problems.
220 * sem_ch3.adb (Analyze_Object_Declaration): Move predicate check here
221 from expander, since too much expansion occurs in the analyzer to leave
223 (Analyze_Object_Declaration): Change parameter Include_Null to new name
224 Include_Implicit in Is_Partially_Initialized_Type call.
225 (Analyze_Subtype_Declaration): Make sure predicates are proapagated in
226 some strange cases of internal subtype generation.
227 * sem_util.ads, sem_util.adb (Is_Partially_Initialized_Type): Change
228 Include_Null to Include_Implicit, now includes the case of
231 2010-10-26 Sergey Rybin <rybin@adacore.com>
233 * gnat_rm.texi: Revise the documentation for pragma Eliminate.
235 2010-10-26 Matthew Heaney <heaney@adacore.com>
237 * Makefile.rtl, impunit.adb: Added bounded list container.
238 * a-cbdlli.ads, a-cbdlli.adb: New file.
240 2010-10-25 Eric Botcazou <ebotcazou@adacore.com>
242 * gcc-interface/utils2.c: Include flags.h and remove prototypes.
243 (build_unary_op) <TRUTH_NOT_EXPR>: When not optimizing, fold the result
244 of the call to invert_truthvalue_loc.
245 * gcc-interface/Make-lang.in (utils2.o): Add $(FLAGS_H).
247 2010-10-25 Eric Botcazou <ebotcazou@adacore.com>
249 * gcc-interface/utils.c (update_pointer_to): Clear TYPE_POINTER_TO and
250 TYPE_REFERENCE_TO of the old type after redirecting its pointer and
253 2010-10-25 Eric Botcazou <ebotcazou@adacore.com>
255 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not set
256 TREE_THIS_NOTRAP on the INDIRECT_REF node built for the template.
258 2010-10-25 Jose Ruiz <ruiz@adacore.com>
260 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for powerpc-linux):
261 Reorganize target pairs so that it works on linux and ElinOS.
263 2010-10-25 Pascal Obry <obry@adacore.com>
265 * adaint.c (__gnat_file_time_name_attr): Use GetFileAttributesEx to get
266 the timestamp. A bit faster than opening/closing the file.
267 (__gnat_stat_to_attr): Remove kludge for Windows.
268 (__gnat_file_exists_attr): Likewise.
269 The timestamp is now retreived using GetFileAttributesEx as faster.
271 2010-10-25 Javier Miranda <miranda@adacore.com>
273 * sem_ch3.adb (Derive_Interface_Subprogram): New subprogram.
274 (Derive_Subprograms): For abstract private types transfer to the full
275 view entities of uncovered interface primitives. Required because if
276 the interface primitives are left in the private part of the package
277 they will be decorated as hidden when the analysis of the enclosing
278 package completes (and hence the interface primitive is not visible
279 for dispatching calls).
281 2010-10-25 Matthew Heaney <heaney@adacore.com>
283 * Makefile.rtl, impunit.adb: Added bounded set and bounded map
285 * a-crbltr.ads: Added declaration of generic package for bounded tree
287 * a-rbtgbo.ads, a-rbtgbo.adb, a-rbtgbk.ads, a-rbtgbk.adb, a-btgbso.ads,
288 a-btgbso.adb, a-cborse.ads, a-cborse.adb, a-cborma.ads, a-cborma.adb:
291 2010-10-25 Thomas Quinot <quinot@adacore.com>
293 * sem_util.adb: Minor reformatting.
294 * usage.adb: Fix usage line for -gnatwh.
296 2010-10-25 Thomas Quinot <quinot@adacore.com>
298 * sem_ch12.adb (Analyze_Package_Instantiation): For an
299 instantiation in an RCI spec, omit package body if instantiation comes
300 from source, even as a nested
302 * exp_dist.adb (Add_Calling_Stubs_To_Declarations,
303 *_Support.Add_Receiving_Stubs_To_Declarations): Handle the case of
304 nested packages, package instantiations and subprogram instantiations.
306 2010-10-25 Robert Dewar <dewar@adacore.com>
308 * exp_ch5.adb (Expand_Predicated_Loop): Remove code for loop through
309 non-static predicate, since we agree not to allow this.
310 (Expand_Predicated_Loop): Properlay handle false predicate (null
311 list in Static_Predicate field.
312 * sem_ch13.adb (Build_Static_Predicate): Extensive changes to clean up
313 handling of more general predicate forms.
315 2010-10-25 Robert Dewar <dewar@adacore.com>
317 * sem_ch4.adb, sem_util.adb: Minor reformatting.
318 * sem_ch8.adb (Find_Selected_Component): Allow selection from instance
319 of type in predicate or invariant expression.
321 2010-10-25 Pascal Obry <obry@adacore.com>
323 * adaint.c (__gnat_stat_to_attr): Can set the timestamp on Windows now.
325 (__gnat_stat): Rewrite Win32 version.
327 2010-10-25 Robert Dewar <dewar@adacore.com>
329 * sem_warn.adb, einfo.ads, exp_ch4.adb: Minor comment fix
330 * sem_case.adb: Comment clarification for loops through false
332 * sem_util.adb: Minor reformatting
333 (Check_Order_Dependence): Fix bad double blank in error message
335 2010-10-25 Ed Schonberg <schonberg@adacore.com>
337 * sem_ch4.adb (Analyze_Membership_Op): in Ada_2012 a membership
338 operation can have a single alternative that is a value of the type.
339 Rewrite operation as an equality test.
341 2010-10-25 Matthew Heaney <heaney@adacore.com>
343 * Makefile.rtl, impunit.adb: Added a-cobove (bounded vector container)
345 * a-contai.ads: Added declaration of Capacity_Error exception.
346 * a-cobove.ads, a-cobove.adb: New files.
348 2010-10-25 Thomas Quinot <quinot@adacore.com>
350 * uname.adb: Revert previous change, no longer needed after change
353 2010-10-25 Thomas Quinot <quinot@adacore.com>
355 * scos.ads: Minor comment fix.
357 2010-10-25 Ed Schonberg <schonberg@adacore.com>
359 * sem_ch5.adb (Analyze_Assignment_Statement): Check dangerous order
361 * sem_ch6.adb (Analyze_Procedure_Call_Statement): Ditto.
362 * sem_res.adb (Analyze_Actuals): Add actual to list of actuals for
363 current construct, for subsequent order dependence checking.
364 (Resolve): Check order dependence on expressions that are not
366 * sem_util.adb (Check_Order_Dependence): Code cleanup, to correspond
367 to latest version of AI05-144-2.
368 * sem_warn.adb (Warn_On_Overlapping_Actuals): Code cleanup.
370 2010-10-25 Robert Dewar <dewar@adacore.com>
372 * sem_ch13.adb (Build_Static_Predicate): Moved out of
373 Build_Predicate_Function.
374 (Build_Static_Predicate): Complet rewrite for more general predicates
376 2010-10-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
377 Eric Botcazou <ebotcazou@adacore.com>
379 * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Function): Allow
380 In Out/Out parameters for functions.
381 * gcc-interface/trans.c (gnu_return_var_stack): New variable.
382 (create_init_temporary): New static function.
383 (Subprogram_Body_to_gnu): Handle In Out/Out parameters for functions.
384 (call_to_gnu): Likewise. Use create_init_temporary in order to create
385 temporaries for unaligned parameters and return value. If there is an
386 unaligned In Out or Out parameter passed by reference, push a binding
387 level if not already done. If a binding level has been pushed and the
388 call is returning a value, create the call statement.
389 (gnat_to_gnu) <N_Return_Statement>: Handle In Out/Out parameters for
392 2010-10-22 Ben Brosgol <brosgol@adacore.com>
394 * gnat_rm.texi: Add chapter on Ada 2012 support.
396 2010-10-22 Robert Dewar <dewar@adacore.com>
398 * sem_ch12.adb: Minor reformatting.
400 2010-10-22 Thomas Quinot <quinot@adacore.com>
402 * exp_dist.adb: Mark missing case of nested package when expanding
405 2010-10-22 Ed Schonberg <schonberg@adacore.com>
407 * par-ch10.adb: Discard incomplete with_clause.
409 2010-10-22 Robert Dewar <dewar@adacore.com>
411 * checks.adb (Enable_Range_Check): Remove code suppressing range check
412 if static predicate present, not needed.
413 * exp_attr.adb (Expand_Pred_Succ): Check Suppress_Assignment_Checks flag
414 * exp_ch3.adb (Expand_N_Object_Declaration): Check
415 Suppress_Assignment_Checks flag.
416 * exp_ch4.adb (Expand_N_In): Make some corrections for proper handling
417 of ranges when predicates are present.
418 * exp_ch5.adb (Expand_Predicated_Loop): New procedure
419 (Expand_N_Assignment_Statement): Check Suppress_Assignment_Checks flag
420 (Expand_N_Loop_Statement): Handle loops over predicated types
421 * sem_case.adb (Analyze_Choices): Remove extra blank in error message.
422 * sem_ch13.adb (Build_Predicate_Function.Add_Call): Suppress info
423 message for inheritance if within a generic instance, not useful there!
424 (Build_Static_Predicate): Optimize test in predicate function
425 based on static ranges determined.
426 * sem_ch5.adb (Analyze_Iteration_Scheme): Error for loop through
427 subtype with non-static predicate.
428 * sinfo.ads, sinfo.adb (Suppress_Assignment_Checks): New flag.
430 2010-10-22 Thomas Quinot <quinot@adacore.com>
432 * uname.adb (Get_Unit_Name.Add_Node_Name): If encountering an error
433 node in the unit name, propagate Program_Error to guard against
436 2010-10-22 Javier Miranda <miranda@adacore.com>
438 * sem_ch8.adb (Find_Selected_Component): Do not generate a subtype for
439 selected components of dispatch table wrappers.
441 2010-10-22 Ed Schonberg <schonberg@adacore.com>
443 * exp_ch9.adb (Make_Initialize_Protection): A protected type that
444 implements an interface must be treated as if it has entries, to
445 support dispatching select statements.
447 2010-10-22 Robert Dewar <dewar@adacore.com>
449 * sem_aggr.adb, sem_ch3.adb: Minor reformatting.
451 2010-10-22 Javier Miranda <miranda@adacore.com>
453 * sem_aggr.adb (Resolve_Array_Aggregate.Add): If the type of the
454 aggregate has a non standard representation the attributes 'Val and
455 'Pos expand into function calls and the resulting expression is
456 considered non-safe for reevaluation by the backend. Relocate it into
457 a constant temporary to indicate to the backend that it is side
460 2010-10-22 Ed Schonberg <schonberg@adacore.com>
462 * sem_ch3.adb (Build_Concurrent_Derived_Type): Create declaration for
463 derived corresponding record type only when expansion is enabled.
465 2010-10-22 Robert Dewar <dewar@adacore.com>
467 * sem_case.adb, sem_attr.adb (Bad_Predicated_Subtype_Use): Change order
469 * sem_ch13.adb (Build_Predicate_Function): Don't give inheritance
470 messages for generic actual subtypes.
471 * sem_ch9.adb, sem_res.adb, sem_util.adb, sem_util.ads, sem_ch3.adb
472 (Bad_Predicated_Subtype_Use): Use this procedure.
474 2010-10-22 Robert Dewar <dewar@adacore.com>
476 * sem_ch5.adb: Minor reformatting.
478 2010-10-22 Robert Dewar <dewar@adacore.com>
480 * a-except-2005.adb (Rmsg_18): New message text.
481 * a-except.adb (Rmsg_18): New message text.
482 * atree.adb (List25): New function
483 (Set_List25): New procedure
484 * atree.ads (List25): New function
485 (Set_List25): New procedure
486 * einfo.adb (Static_Predicate): Is now a list
487 (OK_To_Reference): Present in all entities
488 * einfo.ads (Static_Predicate): Is now a list
489 (OK_To_Reference): Applies to all entities
490 * exp_ch13.adb (Build_Predicate_Function): Moved to Sem_Ch13
491 * sem_attr.adb (Bad_Attribute_For_Predicate): Call
492 Bad_Predicated_Subtype_Use.
493 * sem_case.ads, sem_case.adb: Major surgery to deal with predicated
495 * sem_ch13.adb (Build_Predicate_Function): Moved from Exp_Ch13 to
497 (Build_Static_Predicate): New procedure handles static predicates.
498 * sem_ch3.adb (Analyze_Subtype_Declaration): Delay freeze on subtype
499 with no constraint if ancestor subtype has predicates.
500 (Analyze_Variant_Part): New calling sequence for Analyze_Choices
501 * sem_ch4.adb (Junk_Operand): Don't complain about OK_To_Reference
503 (Analyze_Case_Expression): New calling sequence for Analyze_Choices
504 * sem_ch5.adb (Analyze_Case_Statement): New calling sequence for
506 * sem_util.ads, sem_util.adb (Bad_Predicated_Subtype_Use): New procedure
507 * types.ads (PE_Bad_Predicated_Generic_Type): Replaces
508 PE_Bad_Attribute_For_Predicate.
509 * atree.h: Add definition of List25.
511 2010-10-22 Jerome Lambourg <lambourg@adacore.com>
513 * gnatlink.adb (Process_Binder_File): Remove CLI-specific code, now
515 (Gnatlink): Remove CLI-specific code, moved to dotnet-ld
516 * bindgen.adb (Gen_Object_Files_Options): Do not issue -L switches with
517 the .NET compiler, useless and unsupported.
519 2010-10-22 Robert Dewar <dewar@adacore.com>
521 * sem_util.ads (Get_Num_Lit_From_Pos): Fix errors in documentation,
522 this returns a Node_Id for a reference to the entity, not the entity
525 2010-10-22 Ed Schonberg <schonberg@adacore.com>
527 * sem_ch5.adb (Analyze_Iteration_Scheme): use Insert_Actions when
528 bounds require a temporary.
530 2010-10-22 Robert Dewar <dewar@adacore.com>
532 * sem_ch4.adb: Minor reformatting.
533 * sinfo.ads: Minor comment fixes for Ada 2012 syntax.
535 2010-10-22 Robert Dewar <dewar@adacore.com>
537 * par-ch5.adb: Minor reformatting.
538 * gcc-interface/Make-lang.in: Update dependencies.
540 2010-10-22 Robert Dewar <dewar@adacore.com>
542 * a-except.adb, a-except-2005.adb: Add new Rcheck entry.
543 * exp_ch13.adb (Add_Call): Make sure subtype is marked with
544 Has_Predicates set to True if it inherits predicates.
545 * sem_attr.adb: Handle 'First/'Last/'Range for predicated types
546 * types.ads (PE_Bad_Attribute_For_Predicate): New reason code
547 * types.h: Add new Rcheck entry.
548 * einfo.ads, einfo.adb (Static_Predicate): New field.
549 Minor code reorganization (file float routines in proper section)
550 Fix bad field name in comments.
552 2010-10-22 Robert Dewar <dewar@adacore.com>
554 * sem_eval.adb (Subtypes_Statically_Compatible): Check null exclusion
557 2010-10-22 Vincent Celier <celier@adacore.com>
559 * prj-conf.adb (Get_Config_Switches): Detect if there is at least one
560 declaration of IDE'Compiler_Command for one of the language in the main
562 (Do_Autoconf): If there were at least one Compiler_Command declared and
563 no target, invoke gprconfig with --target=all instead of the normalized
566 2010-10-22 Robert Dewar <dewar@adacore.com>
568 * par-ch4.adb: Update syntax in comments for Ada 2012.
569 * sinfo.ads: Update syntax in comments for Ada 2012
570 * par-ch3.adb (Check_Restricted_Expression): Remove "in Ada 2012 mode"
573 2010-10-22 Gary Dismukes <dismukes@adacore.com>
575 * sem_ch3.adb (Check_Or_Process_Discriminants): In Ada 2012, allow
576 limited tagged types to have defaulted discriminants. Customize the
577 error message for the Ada 2012 case.
578 (Process_Discriminants): In Ada 2012, allow limited tagged types to have
579 defaulted discriminants. Customize the error message for the Ada 2012
581 * sem_ch6.adb (Create_Extra_Formals): Suppress creation of the extra
582 formal for out formals of discriminated types in the case where the
583 underlying type is a limited tagged type.
584 * exp_attr.adb (Expand_N_Attribute_Reference, case
585 Attribute_Constrained): Return True for 'Constrained when the
586 underlying type of the prefix is a limited tagged type.
588 2010-10-22 Thomas Quinot <quinot@adacore.com>
590 * sem_ch3.adb (Complete_Private_Subtype): The full view of the subtype
591 may already have a rep item chain inherited from the full view of the
592 base type, so do not overwrite it when propagating rep items from the
593 partial view of the subtype.
594 * sem_ch3.adb: Minor code reorganization. Minor reformatting.
596 2010-10-22 Sergey Rybin <rybin@adacore.com>
598 * gnat_ugn.texi (gnatmetric): Remove description of debug option.
600 2010-10-22 Tristan Gingold <gingold@adacore.com>
602 * adaint.c (__gnat_number_of_cpus): Add implementation for VMS.
604 2010-10-22 Ed Schonberg <schonberg@adacore.com>
606 * par-ch5.adb: Set properly starting sloc of loop parameter.
608 2010-10-22 Ed Schonberg <schonberg@adacore.com>
610 * sem_util.adb (May_Be_Lvalue): An actual in a function call can be an
611 lvalue in Ada2012, if the function has in-out parameters.
613 2010-10-22 Robert Dewar <dewar@adacore.com>
615 * cstand.adb, einfo.adb, exp_attr.adb, sem_prag.adb, sem_vfpt.adb,
616 sem_ch10.adb: Minor reformatting.
618 2010-10-22 Sergey Rybin <rybin@adacore.com>
620 * gnat_ugn.texi: Remove most of the content of gnatcheck chapter.
622 2010-10-22 Ed Schonberg <schonberg@adacore.com>
624 * sem_attr.adb: Handle indexed P'old.
626 2010-10-22 Geert Bosch <bosch@adacore.com>
628 * cstand.adb (Build_Float_Type): Set Float_Rep according to platform.
629 * einfo.ads (Float_Rep): New attribute.
630 (Float_Rep_Kind): Move from body. Add comments.
631 * einfo.adb (Float_Rep_Kind): Move to spec
632 (Float_Rep): Now a real field instead of local function.
633 (Set_Float_Rep): New procedure to set floating point representation
634 (Set_Vax_Float): Remove.
635 (Write_Entity_Flags): Remove Vax_Float flag.
636 (Write_Field10_Name): Add E_Floating_Point_Type case for Float_Rep.
637 * exp_attr.adb (Attribute_Valid): Use case statement for representation
639 * sem_ch3.adb (Build_Derived_Numeric_Type,
640 Floating_Point_Type_Declaration): Set Float_Rep instead of Vax_Float
642 * sem_util.ads, sem_util.adb (Is_AAMP_Float): Remove.
643 * sem_vfpt.adb (Set_D_Float, Set_F_Float, Set_G_Float, Set_IEEE_Long,
644 Set_IEEE_Short): Set Float_Rep instead of Vax_Float attribute.
646 2010-10-22 Robert Dewar <dewar@adacore.com>
648 * sprint.adb: Minor reformatting.
650 2010-10-22 Robert Dewar <dewar@adacore.com>
652 * exp_ch3.adb (Expand_N_Object_Declaration): Do required predicate
654 * sem_ch3.adb (Complete_Private_Subtype): Propagate predicates to full
656 * sem_ch6.adb (Invariants_Or_Predicates_Present): New name for
658 (Process_PPCs): Handle predicates generating post conditions
659 * sem_util.adb (Is_Partially_Initialized_Type): Add
660 Include_Null parameter.
661 * sem_util.ads (Is_Partially_Initialized_Type): Add
662 Include_Null parameter.
664 2010-10-22 Sergey Rybin <rybin@adacore.com>
666 * gnat_ugn.texi (gnatelim): Add description for '--ignore' option
668 2010-10-22 Thomas Quinot <quinot@adacore.com>
670 * sem_prag.adb (Check_First_Subtype): Specialize error messages for
671 case where argument is not a type.
673 2010-10-22 Robert Dewar <dewar@adacore.com>
675 * exp_ch5.adb, par-ch4.adb, par-ch5.adb, sem_ch5.adb, sinfo.ads: Minor
678 2010-10-22 Arnaud Charlet <charlet@adacore.com>
680 * a-locale.adb: Minor code clean up.
682 2010-10-22 Thomas Quinot <quinot@adacore.com>
684 * exp_ch4.adb: Minor code reorganization and factoring.
686 2010-10-22 Thomas Quinot <quinot@adacore.com>
688 * exp_ch5.adb, sem_ch5.adb, sinfo.ads, snames.ads-tmpl, par-ch5.adb:
691 2010-10-22 Geert Bosch <bosch@adacore.com>
693 * stand.ads: Fix typo in comment.
695 2010-10-22 Ed Schonberg <schonberg@adacore.com>
697 * sem_ch6.adb: Enable in-out parameter for functions.
699 2010-10-22 Ed Schonberg <schonberg@adacore.com>
701 * sem_ch4.adb (Analyze_Quantified_Expression): Handle properly loop
702 iterators that are transformed into container iterators after analysis.
703 * exp_ch4.adb (Expand_N_Quantified_Expression): Handle properly both
704 iterator forms before rewriting as a loop.
706 2010-10-22 Brett Porter <porter@adacore.com>
708 * a-locale.adb, a-locale.ads, locales.c: New files.
709 * Makefile.rtl: Add a-locale
710 * gcc-interface/Makefile.in: Add locales.c
712 2010-10-22 Robert Dewar <dewar@adacore.com>
714 * sem_util.ads, sem_util.adb, sem_aux.ads, sem_aux.adb
715 (Is_Generic_Formal): Moved from Sem_Util to Sem_Aux.
717 2010-10-22 Ed Schonberg <schonberg@adacore.com>
719 * exp_ch5.adb (Expand_Iterator_Loop): New subprogram, implements new
720 iterator forms over arrays and containers, in loops and quantified
722 * exp_util.adb (Insert_Actions): include N_Iterator_Specification.
723 * par-ch4.adb (P_Quantified_Expression): Handle iterator specifications.
724 * par-ch5.adb (P_Iterator_Specification): New subprogram. Modify
725 P_Iteration_Scheme to handle both loop forms.
726 * sem.adb: Handle N_Iterator_Specification.
727 * sem_ch5.adb, sem_ch5.ads (Analyze_Iterator_Specification): New
729 * sinfo.adb, sinfo.ads: New node N_Iterator_Specification.
730 N_Iteration_Scheme can now include an Iterator_Specification. Ditto
731 for N_Quantified_Expression.
732 * snames.ads-tmpl: Add names Cursor, Element, Element_Type, No_Element,
733 and Previous, to support iterators over predefined containers.
734 * sprint.adb: Handle N_Iterator_Specification.
736 2010-10-22 Thomas Quinot <quinot@adacore.com>
738 * sem_prag.adb, sem_ch12.adb, sem_util.adb, sem_util.ads
739 (Is_Generic_Formal): Move from body of Sem_Ch12 to Sem_Util.
740 (Check_Arg_Is_Local_Name): Fix check in the case of a pragma appearing
741 immediately after a library unit.
742 (Analyze_Pragma, case Preelaborable_Initialization): Pragma may apply to
743 a formal derived type.
745 2010-10-22 Geert Bosch <bosch@adacore.com>
747 * gcc-interface/Make-lang.in: Remove ttypef.ads
748 * checks.adb: Use Machine_Mantissa_Value and Machine_Radix_Value instead
749 of Machine_Mantissa and Machine_Radix.
750 * cstand.adb (P_Float_Range): Directly print the Type_Low_Bound and
751 Type_High_Bound of the type, instead of choosing constants from Ttypef.
752 (Set_Float_Bounds): Compute the bounds based on Machine_Radix_Value,
753 Machine_Emax_Value and Machine_Mantissa_Value instead of special-casing
755 * einfo.ads (Machine_Emax_Value, Machine_Emin_Value,
756 Machine_Mantissa_Value, Machine_Radix_Value, Model_Emin_Value,
757 Model_Epsilon_Value, Model_Mantissa_Value, Model_Small_Value,
758 Safe_Emax_Value, Safe_First_Value, Safe_Last_Value): Add new
759 synthesized floating point attributes.
760 * einfo.adb (Float_Rep): Determine the kind of floating point
761 representation used for a given type.
762 (Machine_Emax_Value, Machine_Emin_Value, Machine_Mantissa_Value,
763 Machine_Radix_Value): Implement based on Float_Rep_Kind of a type and
764 the number of digits in the type.
765 (Model_Emin_Value, Model_Epsilon_Value, Model_Mantissa_Value,
766 Model_Small_Value, Safe_Emax_Value, Safe_First_Value, Safe_Last_Value):
767 Implement new synthesized floating point attributes based on the various
769 * eval_fat.ads: Remove Machine_Mantissa and Machine_Radix.
770 * eval_fat.adb (Machine_Mantissa, Machine_Radix): Remove. Use the
771 Machine_Mantissa_Value and Machine_Radix_Value functions instead.
772 * exp_vfpt.adb (VAXFF_Digits, VAXDF_Digits, VAXFG_Digits): Define local
773 constants, instead of using constants from Ttypef.
774 * gnat_rm.texi: Reword comments referencing Ttypef.
775 * sem_attr.ads: Reword comment referencing Ttypef.
776 * sem_attr.adb (Float_Attribute_Universal_Integer,
777 Float_Attribute_Universal_Real): Remove.
778 (Attribute_Machine_Emax, Attribute_Machine_Emin,
779 Attribute_Machine_Mantissa, Attribute_Model_Epsilon,
780 Attribute_Model_Mantissa, Attribute_Model_Small, Attribute_Safe_Emax,
781 Attribute_Safe_First, Attribute_Safe_Last, Model_Small_Value): Use
782 attributes in Einfo instead of Float_Attribute_Universal_Real and
783 Float_Attribute_Universal_Integer and all explicit constants.
784 * sem_util.ads, sem_util.adb (Real_Convert): Remove.
785 * sem_vfpt.adb (VAXDF_Digits, VAXFF_Digits, VAXGF_Digits, IEEEL_Digits,
786 IEEES_Digits): New local constants, in order to remove dependency on
788 * tbuild.ads (Make_Float_Literal): New function.
789 * tbuild.adb (Make_Float_Literal): New function to create a new
790 N_Real_Literal, constructing it as simple as possible for best
791 output of constants in -gnatS.
792 * ttypef.ads: Remove.
794 2010-10-22 Robert Dewar <dewar@adacore.com>
796 * checks.adb (Apply_Predicate_Check): Remove attempt at optimization
797 when subtype is the same, caused legitimate checks to be missed.
798 * exp_ch13.adb (Build_Predicate_Function): Use Nearest_Ancestor to get
799 inheritance from right entity.
800 * freeze.adb (Freeze_Entity): Use Nearest_Ancestor to freeze in the
801 derived type case if the ancestor type has predicates.
802 * sem_aux.ads, sem_aux.adb (Nearest_Ancestor): New function.
803 * sem_prag.adb (Check_Enabled): Minor code reorganization.
805 2010-10-22 Arnaud Charlet <charlet@adacore.com>
807 * gcc-interface/utils.c, gcc-interface/gigi.h: Minor reformatting.
809 2010-10-22 Thomas Quinot <quinot@adacore.com>
811 * einfo.ads (Declaration_Node): Clarify documentation, in particular
812 regarding what is returned for subprogram entities.
814 2010-10-22 Arnaud Charlet <charlet@adacore.com>
816 * exp_attr.adb (Make_Range_Test): Generate a Range node instead of
817 explicit comparisons, generates simpler expanded code.
818 * a-except-2005.adb (Rcheck_06_Ext): New.
819 * gcc-interface/trans.c (gigi, gnat_to_gnu): Handle validity checks
821 * gcc-interface/Make-lang.in: Update dependencies.
823 2010-10-22 Robert Dewar <dewar@adacore.com>
825 * sem_ch3.adb (Array_Type_Declaration): Error for subtype wi predicate
827 (Constrain_Index): Error of subtype wi predicate in index constraint
828 * sem_ch9.adb (Analyze_Entry_Declaration): Error of subtype wi
829 predicate in entry family.
830 * sem_res.adb (Resolve_Slice): Error of type wi predicate in slice.
832 2010-10-22 Javier Miranda <miranda@adacore.com>
834 * sem_util.ads, sem_util.adb (Collect_Parents): New subprogram.
835 (Original_Corresponding_Operation): New subprogram.
836 (Visible_Ancestors): New subprogram.
837 * sem_ch6.adb (New_Overloaded_Entity): Handle new case of dispatching
838 operation that overrides a hidden inherited primitive.
839 * sem_disp.adb (Find_Hidden_Overridden_Primitive): New subprogram.
840 (Check_Dispatching_Operation): if the new dispatching operation
841 does not override a visible primtive then check if it overrides
842 some hidden inherited primitive.
844 2010-10-22 Ed Schonberg <schonberg@adacore.com>
846 * sem_ch10.adb (Analyze_With_Clause): If the parent_unit_name in a with
847 clause is a child unit that denotes a renaming, replace the
848 parent_unit_name with a reference to the renamed unit, because the
849 prefix is irrelevant to subsequent visibility..
851 2010-10-22 Robert Dewar <dewar@adacore.com>
853 * einfo.ads, einfo.adb (Has_Predicates): Flag is now on all entities
855 * exp_ch13.adb (Build_Predicate_Function): Output info msgs for
857 * sem_ch13.adb (Analyze_Aspect_Specifications): Make sure we have a
858 freeze node for entities for which a predicate is specified.
859 (Analyze_Aspect_Specifications): Avoid duplicate calls
860 * sem_ch3.adb (Analyze_Full_Type_Declaration): Remove attempt to avoid
861 duplicate calls to Analye_Aspect_Specifications.
863 2010-10-22 Thomas Quinot <quinot@adacore.com>
865 * a-exextr.adb, atree.ads, freeze.adb: Minor reformatting.
867 2010-10-21 Robert Dewar <dewar@adacore.com>
869 * sem_ch3.adb: Minor reformatting.
871 2010-10-21 Thomas Quinot <quinot@adacore.com>
873 * einfo.ads (Next_Girder_Discriminant): Remove obsolete description for
876 2010-10-21 Nicolas Roche <roche@adacore.com>
878 * gnatmem.adb, memroot.adb, memroot.ads, gmem.c,
879 gcc-interface/Makefile.in: Remove gnatmem specific files.
881 2010-10-21 Thomas Quinot <quinot@adacore.com>
883 * sem_res.adb, exp_ch13.adb: Minor reformatting.
885 2010-10-21 Thomas Quinot <quinot@adacore.com>
887 * sem_ch3.adb (Check_Or_Process_Discriminant): Reject illegal attempt
888 to provide a tagged full view as the completion of an untagged partial
889 view if the partial view has a discriminant with default.
891 2010-10-21 Arnaud Charlet <charlet@adacore.com>
893 * gcc-interface/Make-lang.in: Update dependencies.
895 2010-10-21 Robert Dewar <dewar@adacore.com>
897 * checks.ads, checks.adb (Apply_Predicate_Check): New procedure
898 Minor code reorganization.
899 * einfo.adb (Has_Predicates): Fix assertion.
900 * exp_ch13.adb (Build_Predicate_Function): Move from Sem_Ch13 spec to
902 (Expand_N_Freeze_Entity): Call build predicate function.
903 * exp_ch4.adb (Expand_N_Type_Conversion): Add predicate check.
904 * exp_ch5.adb (Expand_N_Assignment_Statement): Add predicate check.
905 * exp_prag.adb (Expand_Pragma_Check): Use all lower case for name of
907 * freeze.adb (Freeze_Entity): Move building of predicate function to
909 * sem_ch13.adb (Build_Predicate_Function): Move from Sem_Ch13 to
911 * sem_ch13.ads (Build_Predicate_Function): Move from Sem_Ch13 to
913 * sem_ch3.adb (Analyze_Declarations): Remove call to build predicate
915 * sem_res.adb (Resolve_Actuals): Apply predicate check.
917 2010-10-21 Robert Dewar <dewar@adacore.com>
919 * einfo.ads, einfo.adb: Replace Predicate_Procedure by
921 * exp_ch4.adb (Expand_N_In): Handle predicates.
922 * exp_util.ads, exp_util.adb (Make_Predicate_Call): New function.
923 (Make_Predicate_Check): New function.
924 * freeze.adb (Freee_Entity): Build predicate function if needed.
925 * sem_ch13.adb (Build_Predicate_Function): New procedure.
926 (Analyze_Aspect_Specifications): No third argument for Predicate pragma
927 built from Predicate aspect.
928 * sem_ch13.ads (Build_Predicate_Function): New procedure.
929 * sem_ch3.adb: Add handling for predicates.
930 * sem_eval.adb (Eval_Membership_Op): Never static if predicate
932 * sem_prag.adb (Analye_Pragma, case Predicate): Does not take a third
935 2010-10-21 Robert Dewar <dewar@adacore.com>
937 * einfo.ads, einfo.adb: Add handling of predicates.
938 Rework handling of invariants.
939 * exp_ch3.adb, exp_ch4.adb, exp_util.adb, sem_ch6.adb: Minor changes to
940 handing of invariants.
941 * par-prag.adb: Add dummy entry for pragma Predicate
942 * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing for
944 * sem_prag.adb: Add implementation of pragma Predicate.
945 * snames.ads-tmpl: Add entries for pragma Predicate.
947 2010-10-21 Robert Dewar <dewar@adacore.com>
949 * elists.adb: Minor reformatting.
951 2010-10-21 Geert Bosch <bosch@adacore.com>
953 * urealp.adb (UR_Write): Write hexadecimal constants with exponent 1 as
954 decimal constants, and write any others using the exponent notation.
955 Minor reformatting throughout
956 (Store_Ureal_Normalized): New function (minor code reorganization)
958 2010-10-21 Robert Dewar <dewar@adacore.com>
960 * einfo.ads, xeinfo.adb: Minor reformatting.
961 * s-stalib.ads: Minor comment fixes.
963 2010-10-21 Ed Schonberg <schonberg@adacore.com>
965 * sem_ch6.adb (Enter_Overloaded_Entity): Refine warning message about
966 hiding, to remove noise warnings about hiding predefined operators.
968 2010-10-21 Emmanuel Briot <briot@adacore.com>
970 * g-comlin.adb (Add_Switch): Fix handling of switches with no separator
971 when the parameter has length 1.
973 2010-10-21 Jose Ruiz <ruiz@adacore.com>
975 * sem_prag.adb (Set_Ravenscar_Profile): Enforce the restrictions of no
976 dependence on Ada.Execution_Time.Timers,
977 Ada.Execution_Time.Group_Budget, and
978 System.Multiprocessors.Dispatching_Domains which are part of the
980 * impunit.adb (Non_Imp_File_Names_05): Add the file "a-etgrbu" to the
981 list of Ada 2005 files for package Ada.Execution_Time.Group_Budgets.
982 (Non_Imp_File_Names_12): Add the file "s-mudido" to the list of Ada 2012
983 files for package System.Mutiprocessors.Dispatching_Domains.
985 2010-10-21 Tristan Gingold <gingold@adacore.com>
987 * ug_words, vms_data.ads: Define the VMS qualifier for -gnateE.
989 2010-10-21 Thomas Quinot <quinot@adacore.com>
991 * sem_ch3.ads (Process_Discriminants): Clarify cases where this is
992 called for a completion.
994 2010-10-21 Geert Bosch <bosch@adacore.com>
996 * uintp.ads: Expand image buffer to have enough room for 128-bit values
997 * urealp.ads (UR_Write): Write constants in base 16 in hexadecimal
998 notation; either as fixed point literal or in canonical radix 16
1001 2010-10-21 Robert Dewar <dewar@adacore.com>
1003 * a-cgaaso.ads, a-tags.ads, exp_ch3.adb, exp_attr.adb, exp_ch4.adb,
1004 exp_ch3.ads, exp_ch7.adb, exp_ch9.adb, exp_disp.adb, exp_disp.ads,
1005 exp_dist.adb, exp_util.adb, layout.adb, lib-xref.adb, lib.ads,
1006 prep.adb, prj-strt.adb, s-ststop.adb, s-taskin.ads, s-tataat.ads,
1007 sem_aggr.adb, sem_attr.adb, sem_ch12.adb, sem_ch3.adb, sem_ch4.adb,
1008 sem_ch4.ads, sem_ch5.adb, sem_res.adb, sem_util.adb, einfo.adb,
1009 g-sothco.ads, make.adb: Minor reformatting
1011 2010-10-21 Vincent Celier <celier@adacore.com>
1013 * vms_data.ads: Add new qualifiers /SRC_INFO= and
1014 /UNCHECKED_SHARED_LIB_IMPORTS for GNAT COMPILE.
1015 Correct qualifier /SRC_INFO= for GNAT MAKE
1017 2010-10-21 Ed Schonberg <schonberg@adacore.com>
1019 * exp_aggr.adb (Flatten): An association for a subtype may be an
1021 (Safe_Left_Hand_Side): An unchecked conversion is part of a safe
1022 left-hand side if the expression is.
1023 (Is_Safe_Index): new predicate
1024 * exp_ch3.adb (Expand_Freeze_Enumeration_Type): Indicate that the
1025 generated Rep_To_Pos function is a Pure_Function.
1027 2010-10-21 Robert Dewar <dewar@adacore.com>
1029 * gnat_rm.texi: Document Invariant pragma.
1031 2010-10-21 Javier Miranda <miranda@adacore.com>
1033 * exp_ch5.adb: Update comment.
1035 2010-10-21 Robert Dewar <dewar@adacore.com>
1037 * sem_ch13.adb (Build_Invariant_Procedure): Remove commented out code
1038 for interfaces, since invariants are not allowed on interfaces in any
1041 2010-10-21 Javier Miranda <miranda@adacore.com>
1043 * sem_attr.adb (Resolve_Attribute): After replacing the range attribute
1044 node with a range expression ensure that its evaluation will not have
1046 * exp_ch5.adb (Expand_Assign_Array): Propagate the Parent to the
1047 unchecked conversion node generated to handle assignment of private
1048 types. Required to allow climbing the subtree if Insert_Action is
1051 2010-10-21 Robert Dewar <dewar@adacore.com>
1053 * par-ch3.adb (P_Interface_Type_Definition): Allow for possibility of
1054 aspect clause presence terminating the type definition.
1056 2010-10-21 Robert Dewar <dewar@adacore.com>
1058 * exp_ch4.adb, exp_intr.adb, par-ch4.adb, scn.adb, sem_ch4.adb,
1059 sem_res.adb, sem_util.adb, sinfo.ads, a-except-2005.adb: Minor
1061 * snames.ads-tmpl: Add note on Name_Some (not a reserved keyword).
1063 2010-10-21 Geert Bosch <bosch@adacore.com>
1065 * ttypef.ads: Further cleanup of Safe_XXX float attributes.
1067 2010-10-19 Ed Schonberg <schonberg@adacore.com>
1069 * exp_ch4.adb, exp_ch4.ads (Expand_Quantified_Expression): New procedure
1070 * exp_util.adb (Insert_Actions): Include Quantified_Expression.
1071 * expander.adb: Call Expand_Qualified_Expression.
1072 * par.adb: New procedure P_Quantified_Expression. Make
1073 P_Loop_Parameter_Specification global for use in quantified expressions.
1074 * par-ch3.adb (P_Subtype_Mark_Resync): Allow "some" as an identifier if
1076 * par-ch4.adb: New procedure P_Quantified_Expression.
1077 * par-ch5.adb: P_Loop_Parameter_Specification is now global.
1078 * scans.adb, scans.ads: Introduce token Some. For now leave as
1080 * scn.adb (Scan_Reserved_Identifier): For earlier versions of Ada,
1081 treat Some as a regular identifier.
1082 * sem.adb: Call Analyze_Quantified_Expression.
1083 * sem_ch4.adb, sem_ch4.ads: New procedure Analyze_Quantified_Expression.
1084 * sem_ch5.adb, sem_ch5.ads: Analyze_Iteration_Scheme is public, for use
1085 in quantified expressions.
1086 * sem_res.adb: New procedure Resolve_Qualified_Expression.
1087 * sinfo.adb, sinfo.ads: New node N_Quantified_Expression
1088 * snames.ads-tmpl: New name Some.
1089 * sprint.adb: Output quantified_expression.
1091 2010-10-19 Robert Dewar <dewar@adacore.com>
1093 * a-exexda.adb: Minor reformatting
1094 Minor code reorganization.
1096 2010-10-19 Robert Dewar <dewar@adacore.com>
1098 * sem_eval.adb: Minor reformatting.
1100 2010-10-19 Tristan Gingold <gingold@adacore.com>
1102 * exp_ch4.adb (Expand_N_And_Op, Expand_N_Or_Op, Expand_N_Xor_Op): Call
1103 Expand_Intrinsic_Call if the function is intrinsic.
1104 * exp_intr_adb (Expand_Binary_Operator): Handle VMS case for logical
1105 binary operator on the unsigned_quadword record.
1106 * exp_intr.ads (Expand_Intrinsic_Call): Update comments.
1108 2010-10-19 Geert Bosch <bosch@adacore.com>
1110 * gnat_rm.texi (pragma Float_Representation): Fix typo.
1112 2010-10-19 Arnaud Charlet <charlet@adacore.com>
1114 * switch-c.adb (Scan_Front_End_Switches): Add handling of -gnateE.
1115 * fe.h (Exception_Extra_Info): Declare.
1116 * usage.adb (usage): Add -gnateE doc.
1117 * checks.adb (Install_Null_Excluding_Check): Use better sloc.
1118 * sem_util.adb (Insert_Explicit_Dereference): Ditto.
1119 * gnat_ugn.texi: Document -gnateE switch.
1120 * a-except.adb (Set_Exception_C_Msg): New parameter Column.
1121 * a-except-2005.adb (Set_Exception_C_Msg): New parameter Column.
1122 (Raise_Constraint_Error_Msg): Ditto.
1123 (Image): New helper function.
1124 (Rcheck_00_Ext, Rcheck_05_Ext, Rcheck_12_Ext): New procedure with more
1125 detailed exception information.
1126 Adjust calls to Set_Exception_C_Msg and Raise_Constraint_Error_Msg.
1127 * a-exexda.adb (Set_Exception_C_Msg): New parameter Column.
1128 * opt.ads (Exception_Extra_Info): New flag.
1129 * gcc-interface/utils.c (gnat_raise_decls_ext): New.
1130 * gcc-interface/utils2.c (build_call_raise_range,
1131 build_call_raise_column): New functions.
1132 * gcc-interface/gigi.h (exception_info_kind, gnat_raise_decls_ext,
1133 build_call_raise_range, build_call_raise_column): Declare.
1134 gcc-interface/trans.c (build_raise_check): New function.
1135 (gigi): Initialize gnat_raise_decls_ext.
1136 (gnat_to_gnu): Add initial support for -gnateE switch.
1137 * gcc-interface/Make-lang.in: Update dependencies.
1139 2010-10-19 Geert Bosch <bosch@adacore.com>
1141 * ttypef.ads: Change VAXDF_Last to be -VAXDF_First, as type is
1144 2010-10-19 Robert Dewar <dewar@adacore.com>
1146 * atree.h (Field29): Fix incorrect definition.
1147 * einfo.adb (Invariant_Procedure): New attribute
1148 (Has_Invariants): New flag
1149 (Has_Inheritable_Invariants): New flag
1150 (OK_To_Reference): New flag
1151 Minor code reorganization (use Next_Rep_Item function)
1152 * einfo.ads (Invariant_Procedure): New attribute
1153 (Has_Invariants): New flag
1154 (Has_Inheritable_Invariants): New flag
1155 (OK_To_Reference): New flag
1156 * exp_ch3.adb (Expand_N_Object_Declaration): Add check for invariant
1157 * exp_ch4.adb (Expand_N_Type_Conversion): Check invariant on type
1158 conversion. Minor reformatting.
1159 * exp_util.ads, exp_util.adb (Make_Invariant_Call): New procedure.
1160 * opt.ads (List_Inherited_Aspects): New name for List_Inherited_Pre_Post
1161 * par-prag.adb: Add dummy entry for pragma Invariant.
1162 * sem_ch13.adb (Build_Invariant_Procedure): New procedure
1163 (Analyze_Aspect_Specification): Add support for Invariant aspect
1164 * sem_ch13.ads (Build_Invariant_Procedure): New procedure
1165 * sem_ch3.adb (Build_Derived_Type): Propagate invariant information
1166 (Process_Full_View): Deal with invariants, building invariant procedure
1168 * sem_ch6.adb (Process_PPCs): Add processing of invariants
1169 * sem_ch7.adb (Analyze_Package_Specification): Build invariant
1171 * sem_prag.adb: Implement pragma Invariant.
1172 * sem_res.adb (Resolve_Entity_Name): Allow type reference if
1173 OK_To_Reference set.
1174 * sem_warn.adb (List_Inherited_Aspects): New name for
1175 List_Inherited_Pre_Post.
1176 * snames.ads-tmpl: Add entries for pragma Invariant.
1177 * treepr.adb (Print_Entity_Information): Add handling of Field29.
1178 * usage.adb: Warning .l/.L applies to invariant as well as pre/post.
1180 2010-10-19 Javier Miranda <miranda@adacore.com>
1182 * par-ch4.adb: Update documentation of Ada 2012 syntax rules for
1185 2010-10-19 Bob Duff <duff@adacore.com>
1187 * sem_attr.adb (Eval_Attribute): Implement Max_Alignment_For_Allocation
1189 * exp_attr.adb (Expand_N_Attribute_Reference): Add
1190 Attribute_Max_Alignment_For_Allocation to the case statement.
1191 * snames.ads-tmpl (Name_Max_Alignment_For_Allocation,
1192 Attribute_Max_Alignment_For_Allocation): New attribute name.
1194 2010-10-19 Ed Schonberg <schonberg@adacore.com>
1196 * sem_ch3.adb (OK_For_Limited_Init_In_05): a call to an access to
1197 parameterless function appears syntactically as an explicit dereference.
1199 2010-10-19 Thomas Quinot <quinot@adacore.com>
1201 * sem_ch8.adb, sem_ch12.adb, opt.ads, sem_ch6.adb, sem_res.adb,
1202 i-cexten.ads, exp_disp.adb, exp_ch4.adb, exp_ch9.adb: Minor reformatting
1204 2010-10-19 Thomas Quinot <quinot@adacore.com>
1206 * sem_util.adb (Collect_Primitive_Operations): A function with an
1207 anonymous access result designating T is a primitive operation of T.
1209 2010-10-19 Tristan Gingold <gingold@adacore.com>
1211 * init.c: On Alpha/VMS, only adjust PC for HPARITH.
1213 2010-10-19 Tristan Gingold <gingold@adacore.com>
1215 * sem_attr.adb (Eval_Attribute): Handle Attribute_Ref, which can be
1218 2010-10-19 Ed Schonberg <schonberg@adacore.com>
1220 * sem_ch12.adb (Check_Generic_Child_Unit): Handle properly the case of
1221 an instantiation of a renaming of the implicit generic child that
1222 appears within an instance of its parent.
1224 2010-10-19 Thomas Quinot <quinot@adacore.com>
1226 * exp_ch9.adb: Minor reformatting.
1227 * einfo.adb, einfo.ads, atree.adb, atree.ads, exp_dist.adb, atree.h:
1228 (Referenced_Object): Remove unused entity attribute.
1229 (Direct_Primitive_Operations): Move to Elist10, this is set for all
1230 tagged types, including synchronous ones, so can't use field15 which is
1231 used as Storage_Size_Variable for task types and Entry_Bodies_Array for
1233 (Add_RACW_Primitive_Declarations_And_Bodies): Remove bogus guard
1234 against Concurrent_Types (we must handle the case of a RACW designating
1235 a class-wide private synchronous type).
1236 Use Direct_Primitive_Operations, not Primitive_Operations, since we
1237 really want the former.
1239 2010-10-19 Bob Duff <duff@adacore.com>
1241 * sem_ch8.adb (Pop_Scope): Change "return;" to "raise Program_Error;".
1243 2010-10-19 Javier Miranda <miranda@adacore.com>
1245 * exp_ch4.adb (Expand_Set_Membership.Make_Cond): Add missing support
1248 2010-10-19 Thomas Quinot <quinot@adacore.com>
1250 * einfo.ads, atree.ads: Minor comment fixes.
1252 2010-10-18 Bob Duff <duff@adacore.com>
1254 * sinfo.ads, sinfo.adb: Modify comment about adding fields to be more
1255 correct, and to be in a more convenient order.
1256 (Default_Storage_Pool): New field of N_Compilation_Unit_Aux, for
1257 recording the Default_Storage_Pool for a parent library unit.
1258 * einfo.ads (Etype): Document the case in which Etype can be Empty.
1259 * sem_prag.adb (Pragma_Default_Storage_Pool): Analyze the new
1260 Default_Storage_Pool pragma.
1261 * sem.ads (Save_Default_Storage_Pool): Save area for push/pop scopes.
1262 * gnat_ugn.texi: Document Default_Storage_Pool as a new configuration
1264 * freeze.adb (Freeze_Entity): When freezing an access type, take into
1265 account any Default_Storage_Pool pragma that applies. We have to do
1266 this at the freezing point, because up until that point, a Storage_Pool
1267 or Storage_Size clause could occur, which should override the
1268 Default_Storage_Pool.
1269 * par-prag.adb: Add this pragma to the list of pragmas handled entirely
1271 * sem_ch8.adb (Push_Scope, Pop_Scope): Save and restore the
1272 Default_Storage_Pool information.
1273 * opt.ads (Default_Pool, Default_Pool_Config): New globals for recording
1274 currently-applicable Default_Storage_Pool pragmas.
1275 * opt.adb: Save/restore the globals as appropriate.
1276 * snames.ads-tmpl (Name_Default_Storage_Pool,
1277 Pragma_Default_Storage_Pool): New pragma name.
1279 2010-10-18 Vincent Celier <celier@adacore.com>
1281 * make.adb (Switches_Of): Put the spec and body suffix in canonical
1284 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1286 * sem_ch13.adb (Analyze_Aspect_Specifications): If subprogram is at the
1287 library level, the pre/postconditions must be treated as global
1288 declarations, i.e. placed on the Aux_Decl nodes of the compilation unit.
1289 * freeze.adb (Freeze_Expression): If the expression is at library level
1290 there is no enclosing record to check.
1292 2010-10-18 Javier Miranda <miranda@adacore.com>
1294 * sem_ch3.ads (Find_Type_Name): Add documentation.
1295 * sem_ch3.adb (Analyze_Full_Type_Declaration): Code cleanup because the
1296 propagation of the class-wide entity is now done by routine
1297 Find_Type_Name to factorize this code.
1298 (Analyze_Private_Extension_Declaration): Handle private type that
1299 completes an incomplete type.
1300 (Tag_Mismatch): Add error message for tag mismatch in a private type
1301 declaration that completes an incomplete type.
1302 (Find_Type_Name): Handle completion of incomplete type by means of
1303 a private declaration. Generate an error if a tagged incomplete type
1304 is completed by an untagged private type.
1305 * sem_ch7.adb (New_Private_Type): Handle private type that completes an
1307 * einfo.ads (Full_View): Add documentation.
1309 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1311 * sem_ch12.adb (Analyze_Formal_Package_Declaration): If the package is
1312 a renaming, generate a reference for it before analyzing the renamed
1313 entity, to prevent spurious warnings.
1315 2010-10-18 Jose Ruiz <ruiz@adacore.com>
1317 * adaint.c (__gnat_pthread_setaffinity_np,
1318 __gnat_pthread_attr_setaffinity_np): Remove wrappers, no longer needed.
1319 * s-osinte-linux.ads (pthread_setaffinity_np,
1320 pthread_attr_setaffinity_np): Remove use of wrappers.
1321 * s-taprop-linux.adb (Create_Task, Initialize): Restore check to verify
1322 whether the affinity functionality is available in the OS.
1323 * gcc-interface/utils.c: Set TREE_STATIC on functions only when there
1326 2010-10-18 Robert Dewar <dewar@adacore.com>
1328 * einfo.ads, einfo.adb: Minor reformatting.
1329 * gnat_ugn.texi, ug_words: Add missing entries, fix typos.
1331 2010-10-18 Emmanuel Briot <briot@adacore.com>
1333 * g-comlin.adb (Is_In_Config): When the switch accepts either a space
1334 or equal, we output an equal every time.
1336 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1338 * sem_res.adb (Resolve_Entry_Call): Handle call to an entry family
1339 member when pre/post conditions are present.
1340 * exp_ch9.adb (Build_PPC_Wrapper): The PPC_Wrapper for an entry family
1341 includes an index parameter, and the name of the enclosed entry call is
1342 an indexed component.
1344 2010-10-18 Robert Dewar <dewar@adacore.com>
1346 * einfo.ads, einfo.adb: Minor reformatting.
1348 2010-10-18 Jose Ruiz <ruiz@adacore.com>
1350 * adaint.c (__gnat_pthread_setaffinity_np,
1351 __gnat_pthread_attr_setaffinity_np): Add these wrappers which check the
1352 availability of the underlying OS functionality before calling.
1353 * s-osinte-linux.ads (pthread_setaffinity_np,
1354 pthread_attr_setaffinity_np): Call a wrapper instead of the OS function
1355 to perform a check of its availability.
1356 * s-taprop-linux.adb (Create_Task): Remove the check to verify whether
1357 the affinity functionality is available in the OS. Now done in a wrapper
1358 * gcc-interface/Makefile.in: Remove vmshandler.asm, unused.
1359 * gcc-interface/Make-lang.in: Update dependencies.
1361 2010-10-18 Robert Dewar <dewar@adacore.com>
1363 * sinfo.ads, sinfo.adb: Change Has_Pragma_CPU to Flag14 (Flag10 is
1366 2010-10-18 Robert Dewar <dewar@adacore.com>
1368 * s-stausa.adb, s-taprop-linux.adb, s-taprop-mingw.adb, s-tassta.ads:
1371 2010-10-18 Robert Dewar <dewar@adacore.com>
1373 * exp_strm.adb (Build_Elementary_Input_Call): Check
1374 No_Default_Stream_Attributes.
1375 (Build_Elementary_Write_Call): Check No_Default_Stream_Attributes
1376 * s-rident.ads: Add restriction No_Default_Stream_Attributes
1377 Put restriction No_Allocators_After_Elaboration in alpha order
1379 2010-10-18 Jose Ruiz <ruiz@adacore.com>
1381 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Add field corresponding
1382 to the affinity when expanding the task declaration.
1383 (Make_Task_Create_Call): Add the affinity parameter to the call to
1385 * sem_prag.adb (Analyze_Pragma): Add the analysis for pragma CPU,
1386 taking into account the case when it applies to a subprogram (only for
1387 main and with static expression) or to a task.
1388 * par_prag.adb:(Prag): Make pragma CPU a valid one.
1389 * snames.ads-tmpl (Name_uCPU, Name_CPU): Add these new name identifiers
1390 used by the expander for handling the affinity parameter when creating
1392 (Pragma_Id): Add Pragma_CPU as a valid one.
1393 * rtsfind.ads (RTU_Id): Make System_Multiprocessors accesible.
1394 (RE_Id, RE_Unit_Table): Make the entities RE_CPU_Range and
1395 RE_Unspecified_CPU visible.
1396 * sinfo.ads, sinfo.adb (Has_Pragma_CPU, Set_Has_Pragma_CPU): Add these
1397 two subprograms to set/get the flag indicating whether there is a
1398 pragma CPU which applies to the entity.
1399 * lib.ads, lib.adb (Unit_Record, Default_Main_CPU, Main_CPU,
1400 Set_Main_CPU): Add the field Main_CPU to Unit_Record to store the value
1401 of the affinity associated to the main subprogram (if any).
1402 Default_Main_CPU is used when no affinity is set. Subprograms
1403 Set_Main_CPU and Main_CPU are added to set/get the affinity of the main
1405 * ali.ads, ali.adb (ALIs_Record): Add field Main_CPU to contain the
1406 value of the affinity of the main subprogram.
1407 (Scan_ALI): Get the affinity of the main subprogram (encoded as C=XX in
1409 * lib-writ.ads, lib-writ.adb (M_Parameters): Encode the affinity of the
1410 main subprogram in the M (main) line using C=XX.
1411 * lib-load.adb (Create_Dummy_Package_Unit, Load_Main_Source,
1412 Load_Unit): Add new field Main_CPU.
1413 * bindgen.adb (Gen_Adainit_Ada, Gen_Adainit_C): Add the code to pass
1414 the affinity of the main subprogram to the run time.
1415 * s-taskin.ads (Common_ATCB): Add the field Base_CPU to store the
1417 (Unspecified_CPU): Add this constant to identify the case when no
1418 affinity is set for tasks.
1419 * s-taskin.adb (Initialize_ATCB): Store the value coming from pragma
1420 CPU in the common part of the ATCB.
1421 (Initialize): Store the value coming from pragma CPU (for the
1422 environment task) in the common part of the ATCB.
1423 * s-tassta.ads, s-tassta.adb (Create_Task): Add the affinity specified
1424 by pragma CPU to the ATCB.
1425 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add the affinity
1426 specified by pragma CPU to the ATCB.
1427 * s-tporft.adb (Register_Foreign_Thread): Add the new affinity
1428 parameter to the call to Initialize_ATCB.
1429 * s-taprop-linux.adb (Create_Task): Change the attributes of the thread
1430 to include the task affinity before creation. Additionally, the
1431 affinity selected with Task_Info is also enforced changing the
1432 attributes at task creation time, instead of changing it after creation.
1433 (Initialize): Change the affinity of the environment task if required
1435 * s-osinte-linux.ads (pthread_setaffinity_np): Instead of using a
1436 wrapper to check whether the function is available or not, use a weak
1438 (pthread_attr_setaffinity_np): Add the import of this function which is
1439 used to change the affinity in the attributes used to create a thread.
1440 * adaint.c (__gnat_pthread_attr_setaffinity_np): Remove this wrapper.
1441 It was used to check whether the pthread function was available or not,
1442 but the use of a weak symbol handles this situation in a cleaner way.
1443 * s-taprop-mingw.adb (Create_Task, Initialize): Change the affinity of
1444 tasks (including the environment task) if required by a pragma CPU.
1445 * s-taprop-solaris.adb (Enter_Task): Change the affinity of tasks
1446 (including the environment task) if required by a pragma CPU.
1447 * s-taprop-vxworks.adb (Create_Task, Initialize): Change the affinity
1448 of tasks (including the environment task) if required by a pragma CPU.
1449 * init.c (__gl_main_cpu): Make this value visible to the run time. It
1450 will pass the affinity of the environment task.
1452 2010-10-18 Javier Miranda <miranda@adacore.com>
1454 * einfo.adb (Direct_Primitive_Operations): Complete assertion.
1456 2010-10-18 Vincent Celier <celier@adacore.com>
1458 * prj.ads (Source_Data): New Boolean flag In_The_Queue.
1460 2010-10-18 Tristan Gingold <gingold@adacore.com>
1462 * s-stausa.ads: Add the Top parameter to Initialize_Analyzer.
1463 * s-stausa.adb: Use the top parameter. In Fill_Stack, use the
1465 * s-tassta.adb (Task_Wrapper): Call Initialize_Analyzer after Enter_Task
1466 so that Pri_Stack_Info.Limit can be set and used.
1468 2010-10-18 Robert Dewar <dewar@adacore.com>
1470 * einfo.ads: Minor reformatting.
1471 * sem_res.adb (Resolve_Allocator): Add test for violating
1472 No_Anonymous_Allocators.
1474 2010-10-18 Robert Dewar <dewar@adacore.com>
1476 * prj-nmsc.adb, prj.adb, sem_res.adb: Minor reformatting.
1478 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1480 * sem_util.adb (Insert_Explicit_Dereference): If operand is a selected
1481 component, we generate a reference to the ultimate prefix when it is an
1482 entity name. We must place the reference on the identifier for that
1483 prefix, and not on the operand itself, to prevent spurious extra
1484 references in the ali file.
1486 2010-10-18 Vincent Celier <celier@adacore.com>
1488 * projects.texi: Add documentation for attribute Ignore_Source_Sub_Dirs
1490 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1492 * einfo.ads, einfo.adb: New attribute PPC_Wrapper for entries and entry
1493 families. Denotes a procedure that performs pre/postcondition checks
1494 and then performs the entry call.
1495 * sem_res.adb (Resolve_Entry_Call): If the entry has
1496 pre/postconditions, replace call with a call to the PPC_Wrapper of the
1498 * exp_ch9.adb (Build_PPC_Wrapper): new procedure.
1499 (Expand_N_Entry_Declaration, Expand_N_Protected_Type_Declaration): call
1500 Build_PPC_Wrapper for all entries in task and protected definitions.
1502 2010-10-18 Tristan Gingold <gingold@adacore.com>
1504 * init.c: Add __gnat_set_stack_guard_page and __gnat_set_stack_limit.
1505 Implement stack limitation on VMS.
1508 2010-10-18 Vincent Celier <celier@adacore.com>
1510 * prj.adb (Is_Compilable): Do not modify Source.Compilable until the
1511 source record has been initialized.
1513 2010-10-18 Robert Dewar <dewar@adacore.com>
1515 * einfo.adb: Minor code reorganization (Primitive_Operations is a
1516 synthesized attribute routine and was in the wrong place).
1518 2010-10-18 Tristan Gingold <gingold@adacore.com>
1520 * init.c: Indentation, and minor changes to more closely follow GNU
1521 style rules. Make more variable statics.
1523 2010-10-18 Vincent Celier <celier@adacore.com>
1525 * prj.adb (Is_Compilable): On first call for a source, cache value in
1526 component Compilable.
1527 * prj.ads (Source_Data): New component Compilable, to cache the value
1528 returned by function Is_Compilable.
1530 2010-10-18 Vincent Celier <celier@adacore.com>
1532 * prj-attr.adb: New project level attribute Ignore_Source_Sub_Dirs.
1533 * prj-nmsc.adb (Expand_Subdirectory_Pattern): New string list parameter
1535 (Recursive_Find_Dirs): Do not consider subdirectories listed in Ignore.
1536 (Get_Directories): Call Find_Source_Dirs with the string list
1537 indicated by attribute Ignore_Source_Sub_Dirs.
1538 * snames.ads-tmpl: New standard name Ignore_Source_Sub_Dirs.
1540 2010-10-18 Javier Miranda <miranda@adacore.com>
1542 * einfo.ads, einfo.adb (Primitive_Operations): New synthesized
1544 (Direct_Primitive_Operations): Renaming of old Primitive_Operations.
1545 (Set_Direct_Primitive_Operations): Renaming of old
1546 Set_Primitive_Operations. Update documentation
1547 * sem_ch3.adb, exp_util.adb, sem_ch7.adb, sem_ch8.adb, exp_ch3.adb:
1548 Replace occurrences of Set_Primitive_Operations by
1549 Set_Direct_Primitive_Operations.
1550 * sem_cat.adb (Validate_RACW_Primitives): No action needed for tagged
1552 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
1553 process primitives of concurrent types.
1554 * lib-xref.adb (Generate_Prim_Op_References): Minor code cleanup.
1556 2010-10-18 Eric Botcazou <ebotcazou@adacore.com>
1558 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Use Freeze_Before.
1559 (Expand_Protected_Object_Reference): Likewise.
1560 * sem_attr.adb (Resolve_Attribute): Likewise.
1561 * sem_ch3.adb (Analyze_Subtype_Declaration): Likewise.
1562 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Likewise.
1564 2010-10-18 Arnaud Charlet <charlet@adacore.com>
1566 * g-comlin.adb (Get_Switches): Prevent dereferencing null Config.
1568 2010-10-18 Robert Dewar <dewar@adacore.com>
1570 * aspects.ads, aspects.adb: Add entries for aspects
1571 Read/Write/Input/Output.
1572 * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing for
1573 handling aspects Read/Write/Input/Output.
1575 2010-10-18 Robert Dewar <dewar@adacore.com>
1577 * sem_util.adb (Note_Possible_Modification): Do not give warning for
1578 use of pragma Unmodified unless we are sure this is a modification.
1580 2010-10-18 Tristan Gingold <gingold@adacore.com>
1582 * sysdep.c: Add __gnat_get_stack_bounds.
1583 * s-taprop-mingw.adb Call __gnat_get_stack_bounds to set Pri_Stack_Info.
1585 2010-10-18 Robert Dewar <dewar@adacore.com>
1587 * a-assert.ads: Fix bad name in header.
1588 * sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch10.adb: Minor
1590 * exp_aggr.adb: Fix typo in comment.
1592 2010-10-18 Javier Miranda <miranda@adacore.com>
1594 * exp_util.adb (Side_Effect_Free): Code clean up.
1596 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1598 * sem_ch8.adb (Is_Primitive_Operator_In_Use): Renamed from
1599 Is_Primitive_Operator. When ending the scope of a use package scope, a
1600 primitive operator remains in use if the base type has a current use
1603 2010-10-18 Javier Miranda <miranda@adacore.com>
1605 * einfo.ads (Is_Dynamic_Support): Add missing support for limited
1606 private types whose full-view is a task type.
1607 * sem_util.adb (Enclosing_Subprogram): Add missing support for limited
1608 private types whose full-view is a task type.
1609 * exp_ch7.adb (Find_Final_List): Minor code cleanup replacing code by
1610 function Nearest_Dynamic_Scope which provides the needed functionality.
1612 2010-10-18 Arnaud Charlet <charlet@adacore.com>
1614 * sem_prag.adb (Set_Exported): Do not generate error when exporting a
1615 variable with an address clause in codepeer mode.
1617 2010-10-18 Robert Dewar <dewar@adacore.com>
1619 * g-trasym-vms-ia64.adb: Minor reformatting.
1621 2010-10-18 Thomas Quinot <quinot@adacore.com>
1623 * sem_type.adb (Covers): If either argument is Standard_Void_Type and
1624 the other isn't, return False early.
1626 2010-10-18 Ed Falis <falis@adacore.com>
1628 * s-vxwext-rtp.ads, s-vxext-rtp.adb: Adapt for missing APIs for RTPs in
1631 2010-10-18 Robert Dewar <dewar@adacore.com>
1633 * sem_disp.ads: Minor comment update.
1635 2010-10-18 Robert Dewar <dewar@adacore.com>
1637 * einfo.ads, einfo.adb (Spec_PPC_List): Is now present in Entries
1638 * sem_ch3.adb (Analyze_Declarations): Add processing for delaying
1639 visibility analysis of precondition and postcondition pragmas (and
1641 * sem_ch6.adb (Process_PPCs): Add handling of inherited Pre'Class
1643 * sem_ch7.adb (Analyze_Package_Specification): Remove special handling
1644 of pre/post conditions (no longer needed).
1645 * sem_disp.adb (Inherit_Subprograms): Deal with interface case.
1646 * sem_prag.adb (Analyze_PPC_In_Decl_Part): Remove analysis of message
1647 argument, since this is now done in the main processing for
1648 pre/postcondition pragmas when they are first seen.
1649 (Chain_PPC): Pre'Class and Post'Class now handled properly
1650 (Chain_PPC): Handle Pre/Post aspects for entries
1651 (Check_Precondition_Postcondition): Handle entry declaration case
1652 (Check_Precondition_Postcondition): Handle delay of visibility analysis
1653 (Check_Precondition_Postcondition): Preanalyze message argument if
1656 2010-10-18 Robert Dewar <dewar@adacore.com>
1658 * g-trasym-vms-ia64.adb, prj-nmsc.adb, prj.ads: Minor reformatting.
1660 2010-10-14 Eric Botcazou <ebotcazou@adacore.com>
1662 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Set
1663 TREE_THIS_NOTRAP on the INDIRECT_REF node built for the template.
1664 * gcc-interface/trans.c (Identifier_to_gnu): Set TREE_THIS_NOTRAP on
1665 the INDIRECT_REF node built for objects used by reference.
1666 * gcc-interface/utils2.c (build_binary_op): Add short-circuit for
1667 constant result. Set TREE_THIS_NOTRAP on ARRAY_REF and ARRAY_RANGE_REF.
1668 (gnat_stabilize_reference_1): Propagate the TREE_THIS_NOTRAP flag.
1670 2010-10-13 Richard Henderson <rth@redhat.com>
1672 * gcc-interface/misc.c (gnat_eh_personality): Update call to
1673 build_personality_function.
1674 * raise-gcc.c (PERSONALITY_FUNCTION): Change to match other languages;
1675 use__gnat_personality_{v,sj}0.
1677 2010-10-12 Vincent Celier <celier@adacore.com>
1679 * prj-nmsc.adb (Add_Source): Put source in hash table Source_Files_HT
1680 (Process_Exceptions_File_Based): Use hash table Source_Files_HT instead
1681 of iterating through all sources of the project.
1682 * prj.adb (Free): Reset hash table Source_Files_HT
1683 (Reset): Reset hash table Source_Files_HT
1684 * prj.ads (Source_Data): New component Next_With_File_Name
1685 (Source_Files_Htable): New hash table
1686 (Project_Tree_Data): New component Source_Files_HT
1688 2010-10-12 Tristan Gingold <gingold@adacore.com>
1690 * g-trasym-vms-ia64.adb: Use the documented API.
1691 * gcc-interface/Makefile.in: Always set NO_REORDER_ADAFLAGS.
1692 * gcc-interface/Make-lang.in: Update dependencies.
1694 2010-10-12 Thomas Quinot <quinot@adacore.com>
1696 * rtsfind.ads, exp_dist.adb, exp_dist.ads (Build_General_Calling_Stubs,
1697 PolyORB case): Request is now a controlled type: we can declare the
1698 request on the stack, and we do not need explicit cleanup actions
1701 2010-10-12 Bob Duff <duff@adacore.com>
1703 * s-rident.ads (Profile_Info): This variable is now constant.
1705 2010-10-12 Emmanuel Briot <briot@adacore.com>
1707 * g-comlin.adb, g-comlin.ads (Define_Switch): Put back (unused)
1708 parameter Separator for backward compatibility.
1710 2010-10-12 Robert Dewar <dewar@adacore.com>
1712 * sem_ch9.adb, par-ch9.adb, impunit.adb: Minor reformatting.
1714 2010-10-12 Vincent Celier <celier@adacore.com>
1716 * debug.adb: Put detailed documentation for gnatmake switch -dm.
1718 2010-10-12 Vincent Celier <celier@adacore.com>
1720 * gnat1drv.adb: When the compiler is invoked for a spec that needs aw
1721 body, do not generate an ALI file if neither -gnatc nor -gnatQ is used.
1723 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1725 * g-comlin.adb (Foreach_Switch): Make this procedure generic to avoid
1728 2010-10-12 Robert Dewar <dewar@adacore.com>
1730 * debug.adb: Add comment.
1731 * gnatcmd.adb, sem_ch6.adb, switch-m.adb: Minor reformatting.
1733 2010-10-12 Javier Miranda <miranda@adacore.com>
1735 * exp_util.adb (Side_Effect_Free): Return true for object renaming
1736 declarations that were previously generated by Remove_Side_Effects.
1738 2010-10-12 Emmanuel Briot <briot@adacore.com>
1740 * xref_lib.adb (Get_Full_Type): Display "private variable" instead of
1741 "???" when an entity is defined as "*" in the ALI file.
1742 * g-comlin.ads, g-comlin.adb: Fix handling of null parameters.
1745 2010-10-12 Emmanuel Briot <briot@adacore.com>
1747 * g-comlin.adb, g-comlin.ads (Display_Help, Getopt, Current_Section,
1748 Set_Usage): New subprograms.
1749 (Define_Switch): Change profile to add support for help messages and
1752 2010-10-12 Javier Miranda <miranda@adacore.com>
1754 * sem_ch6.adb (New_Overloaded_Entity): Add missing decoration of
1755 attribute Overridden_Operation in predefined dispatching primitives.
1757 2010-10-12 Emmanuel Briot <briot@adacore.com>
1759 * g-comlin.adb, g-comlin.ads (Add_Switch): Raise an exception when a
1760 command line configuration exists and we specify an invalid section.
1762 2010-10-12 Robert Dewar <dewar@adacore.com>
1764 * sem_ch6.adb (Process_PPCs): Fix error in inheriting Pre'Class when no
1765 exception messages are generated.
1766 (Process_PPCs): Fix error in inheriting Pre'Class.
1768 2010-10-12 Jose Ruiz <ruiz@adacore.com>
1770 * gnatcmd.adb: Use response file for GNATstack.
1771 (Check_Files): Pass the list of ci files for GNATstack using a response
1772 file to avoid problems with command line length.
1773 Factor out the code handling response file into a new procedure named
1774 Add_To_Response_File.
1776 2010-10-12 Vincent Celier <celier@adacore.com>
1778 * debug.adb: For gnatmake, document the meaning of -dm
1779 * make.adb (Gnatmake): If -dm is used, indicate the maximum number of
1780 simultaneous compilations.
1781 * switch-m.adb (Scan_Make_Switches): Allow -j0, meaning as many
1782 simultaneous compilations as the number of processors.
1784 2010-10-12 Joseph Myers <joseph@codesourcery.com>
1786 * gcc-interface/Make-lang.in (ada/misc.o): Use $(OPTIONS_H)
1787 instead of options.h.
1789 2010-10-12 Robert Dewar <dewar@adacore.com>
1791 * gnat_rm.texi: Clarify that 'Old can be used in preconditions and
1792 postcondition pragmas.
1794 2010-10-12 Robert Dewar <dewar@adacore.com>
1796 * errout.ads, erroutc.adb: The # insertion now handles from in place of
1798 * exp_prag.adb (Expand_Pragma_Check): Suppress generated default
1799 message if new switch Exception_Locations_Suppressed is set.
1800 (Expand_Pragma_Check): Revised wording for default message for case
1801 of precondition or postcondition.
1802 * namet.ads, namet.adb (Build_Location_String): New procedure.
1803 * opt.ads (List_Inherited_Pre_Post): New flag.
1804 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Add call to
1805 list inherited pre/post aspects.
1806 * sem_ch13.adb (Analyze_Aspect_Specification): Improve generation of
1807 messages for precondition/postcondition cases.
1808 * sem_ch6.adb (Process_PPCs): General cleanup, and list inherited PPC's
1809 if flag List_Inherited_Pre_Post is set True.
1810 (Process_PPCs): Add initial handling for inherited preconditions
1811 (List_Inherited_Pre_Post_Aspects): New procedure
1812 * sem_ch6.ads (List_Inherited_Pre_Post_Aspects): New procedure
1813 * sem_disp.adb (Inherited_Subprograms): New function
1814 * sem_disp.ads (Inherited_Subprograms): New function
1815 * sem_prag.adb (Check_Duplicate_Pragma): Clean up handling of
1817 (Check_Precondition_Postcondition): Check for inherited aspects
1818 * sem_warn.adb: Process -gnatw.l/w.L setting List_Inherited_Pre_Post
1819 * sinfo.ads, sinfo.adb (Split_PPC): New flag.
1820 * sinput.ads, sinput.adb (Build_Location_String): New function.
1821 * usage.adb: Add line for -gnatw.l/-gnatw.L
1823 2010-10-12 Javier Miranda <miranda@adacore.com>
1825 * exp_util.adb (Remove_Side_Effects): Remove wrong code.
1827 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1829 * xref_lib.adb: Add handling of j/J letters.
1831 2010-10-12 Pascal Obry <obry@adacore.com>
1833 * adaint.c (__gnat_number_of_cpus): Add implementation for Windows.
1835 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1837 * make.adb (Globalize): New procedure.
1838 (Compile): Set Do_Codepeer_Globalize_Step when -gnatC is used.
1839 (Gnatmake): Call Globalize when needed.
1840 (Process_Restrictions_Or_Restriction_Warnings): Ignore Restrictions
1841 pragmas in CodePeer mode.
1842 (Adjust_Global_Switches): Set No_Initialize_Scalars in CodePeer mode,
1843 to generate simpler and consistent code.
1845 2010-10-12 Bob Duff <duff@adacore.com>
1847 * exp_util.adb (Remove_Side_Effects): Disable previous change,
1848 can cause side effects to be duplicated.
1850 2010-10-12 Robert Dewar <dewar@adacore.com>
1852 * sem_ch6.adb (Process_PPCs): Handle inherited postconditions.
1854 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1856 * exp_disp.adb (Set_All_DT_Position): Disable emit error message on
1857 abstract inherited private operation in CodePeer mode.
1859 2010-10-12 Thomas Quinot <quinot@adacore.com>
1861 * a-exetim.ads: Minor reformatting.
1862 * g-socket.ads (Port_Type): Better definition corresponding to the
1863 actual standard range.
1864 * exp_ch5.adb: Add comment.
1865 * sem_aux.adb: Minor reformatting.
1867 2010-10-12 Ed Schonberg <schonberg@adacore.com>
1869 * sem_ch12.adb (Copy_Generic_Node): If node is a string literal, remove
1870 string_literal_subtype so that a new one can be constructed in the
1871 scope of the instance.
1873 2010-10-12 Robert Dewar <dewar@adacore.com>
1875 * exp_ch9.adb (Has_Pragma_Priority): New name for Has_Priority_Pragma
1876 * gnat_rm.texi (pragma Suppress_All): Document new placement rules
1877 * par-prag.adb (P_Pragma, case Suppress_All): Set
1878 Has_Pragma_Suppress_All flag.
1879 * sem_prag.adb (Has_Pragma_Priority): New name for Has_Priority_Pragma
1880 (Analyze_Pragma, case Suppress_All): Remove placement check
1881 (Process_Compilation_Unit_Pragmas): Use Has_Pragma_Suppress_All flag
1882 * sem_prag.ads (Process_Compilation_Unit_Pragmas): Update documentation
1883 * sinfo.adb (Has_Pragma_Suppress_All): New flag
1884 (Has_Pragma_Priority): New name for Has_Priority_Pragma
1885 * sinfo.ads (Has_Pragma_Suppress_All): New flag
1886 (Has_Pragma_Priority): New name for Has_Priority_Pragma
1888 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1890 * lib-xref.ads: Mark j/J as reserved for C++ classes.
1892 2010-10-12 Jose Ruiz <ruiz@adacore.com>
1894 * a-exetim-default.ads, a-exetim-posix.adb: New.
1895 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for linux): Use the
1896 POSIX Realtime support to implement CPU clocks.
1897 (EXTRA_GNATRTL_TASKING_OBJS for linux): Add the a-exetim.o object
1898 to the tasking library.
1899 (THREADSLIB): Make the POSIX.1b Realtime Extensions library (librt)
1900 available for shared libraries.
1901 * gcc-interface/Make-lang.in: Update dependencies.
1903 2010-10-12 Robert Dewar <dewar@adacore.com>
1905 * sem_ch13.adb (Analyze_Aspect_Specifications): For Pre/Post, break
1906 apart expressions with AND THEN clauses into separate pragmas.
1907 * sinput.ads, sinput.adab (Get_Logical_Line_Number_Img): New function.
1909 2010-10-12 Robert Dewar <dewar@adacore.com>
1911 * par-ch13.adb (P_Aspect_Specifications): Fix handling of 'Class
1913 * sem_ch13.adb (Analyze_Aspect_Specifications): Fix bad Sloc on aspects
1914 * sem_prag.adb (Fix_Error): Only change pragma names for pragmas from
1916 (Check_Optional_Identifier): Handle case of direct arguments
1917 (Chain_PPC): Test for abstract case, giving appropriate messages
1918 * sinfo.ads, sinfo.adb (Class_Present): Allowed on N_Pragma node
1920 2010-10-12 Robert Dewar <dewar@adacore.com>
1922 * par-endh.adb (Check_End): Don't swallow semicolon or aspects after
1924 * sem_attr.adb (Eval_Attribute): Code clean up.
1926 2010-10-12 Robert Dewar <dewar@adacore.com>
1928 * par-ch12.adb (P_Formal_Private_Type_Definition): Improve error
1929 messages and recovery for case of out of order Abstract/Tagged/Private
1931 * par-ch3.adb (P_Type_Declaration): Improve error messages and recovery
1932 for case of out of order Abstract/Tagged/Private keywords.
1934 2010-10-12 Ed Schonberg <schonberg@adacore.com>
1936 * inline.adb (Analyze_Inlined_Bodies): Restrict previous change to case
1937 where child unit is main unit of compilation.
1939 2010-10-12 Robert Dewar <dewar@adacore.com>
1941 * aspects.ads, aspects.adb (Move_Aspects): New procedure.
1942 * atree.ads, atree.adb: (New_Copy): Does not copy aspect specifications
1943 * sinfo.ads, par-ch3.adb, par-ch6.adb, par-ch7.adb, par-ch9.adb,
1944 par-endh.adb, par-ch13.adb, par-ch12.adb: Modify grammar to include
1945 aspect specifications.
1946 Recognize aspect specifications for all cases
1947 * par.adb: Recognize aspect specifications for all cases
1948 * sem_ch12.ads, sem_ch12.adb (Copy_Generic_Node): Copies aspect
1950 * sem_ch3.adb (Analyze_Subtype_Declaration): Improve patch to freeze
1951 generic actual types (was missing some guards before).
1952 * sem_ch9.adb (Analyze_Single_Protected_Declaration): Copy aspects to
1954 (Analyze_Single_Task_Declaration): Copy aspects to generated object
1956 2010-10-12 Eric Botcazou <ebotcazou@adacore.com>
1958 * usage.adb (usage): Adjust line for -gnatn switch.
1960 2010-10-12 Robert Dewar <dewar@adacore.com>
1962 * sem_attr.adb (Eval_Attribute): Only leave change active for aspect
1965 2010-10-12 Ed Schonberg <schonberg@adacore.com>
1967 * sem_ch6.adb (Analyze_Subprogram_Declaration): If this is a
1968 declaration of a null procedure resolve the types of the profile of the
1969 generated null body now.
1971 2010-10-11 Robert Dewar <dewar@adacore.com>
1973 * debug.adb: Remove d.A flag to delay address clause (not needed any
1974 more). Add d.A flag to enable tree read/write of aspect spec hash table
1975 * sem_ch13.adb (Analyze_Aspect_Specifications): Properly delay address
1977 (Rep_Item_Too_Late): No need for special processing for delayed rep
1978 items (and it caused difficulties in the address case).
1979 * tree_gen.adb: Only write aspect spec hash table if -gnatd.A is set
1980 * tree_in.adb: Only write aspect spec hash table if -gnatd.A is set
1982 2010-10-11 Pat Rogers <rogers@adacore.com>
1984 * gnat_ugn.texi: Minor editing.
1986 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
1988 * gcc-interface/utils2.c (gnat_build_constructor): Use VEC_qsort.
1990 2010-10-11 Robert Dewar <dewar@adacore.com>
1992 * g-htable.ads (Get_First): New procedural version for Simple_HTable
1993 (Get_Next): New procedural version for Simple_HTable
1994 * s-htable.adb (Get_First): New procedural version for Simple_HTable
1995 (Get_Next): New procedural version for Simple_HTable
1996 * s-htable.ads (Get_First): New procedural version for Simple_HTable
1997 (Get_Next): New procedural version for Simple_HTable
1999 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2001 * sem_aggr.adb (Propagate_Discriminants): To gather the components of a
2002 variant part, use the association list of the subaggregate, which
2003 already includes the values of the needed discriminants.
2005 2010-10-11 Robert Dewar <dewar@adacore.com>
2007 * aspects.ads, aspects.adb: Changes to accomodate aspect delay
2008 (Tree_Write): New procedure.
2009 * atree.ads, atree.adb: Flag3 is now Has_Aspects and applies to all
2011 * atree.h: Flag3 is now Has_Aspects and applies to all nodes
2012 * debug.adb: Add debug flag gnatd.A
2013 * einfo.adb (Has_Delayed_Aspects): New flag
2014 (Get_Rep_Item_For_Entity): New function
2015 * einfo.ads (Has_Delayed_Aspects): New flag
2016 (Get_Rep_Item_For_Entity): New function
2017 * exp_ch13.adb (Expand_N_Freeze_Entity): Insert delayed aspects into
2019 * exp_ch3.adb, exp_ch6.adb, exp_ch9.adb, exp_disp.adb: New calling
2020 sequence for Freeze_Entity.
2021 * freeze.ads, freeze.adb (Freeze_Entity): Takes node rather than source
2022 ptr. All calls are changed to this new interface.
2023 (Freeze_And_Append): Same change
2024 (Freeze_Entity): Evaluate deferred aspects
2025 * sem_attr.adb: New calling sequence for Freeze_Entity
2026 (Eval_Attribute): Don't try to evaluate attributes of unfrozen types
2027 when we are in spec expression preanalysis mode.
2028 * sem_ch10.adb: New calling sequence for Freeze_Entity
2029 * sem_ch11.adb: Simplify analysis of aspect specifications now that the
2030 flag Has_Aspects applies to all nodes (no need to save aspects).
2031 * sem_ch12.adb: Simplify analysis of aspect specifications now that the
2032 flag Has_Aspects applies to all nodes (no need to save aspects).
2033 * sem_ch13.adb (Analyze_Aspect_Specifications): Major rewrite to
2034 accomodate delaying aspect evaluation to the freeze point.
2035 (Duplicate_Clause): Simplify using Get_Rep_Item_For_Entity, and also
2036 accomodate delayed aspects.
2037 (Rep_Item_Too_Late): Deal with delayed aspects case
2038 * sem_ch13.ads (Rep_Item_Too_Late): Document handling of delayed
2040 * sem_ch3.adb (Analyze_Subtype_Declaration): Make sure that generic
2041 actual types are properly frozen (this is needed because of the new
2042 check in Eval_Attribute that declines to evaluate attributes
2043 for unfrozen types).
2044 Simplify analysis of aspect specifications now that the flag
2045 Has_Aspects applies to all nodes (no need to save aspects).
2046 * sem_ch3.ads (Preanalyze_Spec_Expression): Note use for delayed
2048 * sem_ch5.adb: Simplify analysis of aspect specifications now that the
2049 flag Has_Aspects applies to all nodes (no need to save aspects).
2050 New calling sequence for Freeze_Entity.
2051 * sem_ch9.adb, sem_ch7.adb, sem_ch6.adb: Simplify analysis of aspect
2052 specifications now that the flag Has_Aspects applies to all nodes
2053 (no need to save aspects).
2054 New calling sequence for Freeze_Entity
2055 * sem_prag.adb (Check_Duplicate_Pragma): Simplify using
2056 Get_Rep_Item_For_Entity
2057 (Get_Pragma_Arg): Moved to Sinfo
2058 * sinfo.ads, sinfo.adb (Aspect_Rep_Item_: New field
2059 (Is_Delayed_Aspect): New flag
2060 (Next_Rep_Item): Document use for aspects
2061 (Get_Pragma_Arg): Moved here from Sem_Prag
2062 * sprint.adb (Sprint_Aspect_Specifications): Now called after semicolon
2063 is output and removes semicolon (simplifies interface).
2064 (Sprint_Node_Actual): Simplify handling of aspects now that Has_Aspects
2065 applies to any node.
2066 * tree_gen.adb: Write contents of Aspect_Specifications hash table
2067 * tree_in.adb: Read and initialize Aspect_Specifications hash table
2068 * treepr.adb (Print_Node): Print Has_Aspects flag
2069 (Print_Node): Print Aspect_Specifications in Has_Aspects set
2070 * xtreeprs.adb: Remove obsolete references to Flag1,2,3
2072 2010-10-11 Robert Dewar <dewar@adacore.com>
2074 * aspects.ads, aspects.adb: Major revision of this package for 2nd
2075 stage of aspects implementation.
2076 * gcc-interface/Make-lang.in: Add entry for aspects.o
2077 * gcc-interface/Makefile.in: Add aspects.o to GNATMAKE_OBJS
2078 * par-ch13.adb (Aspect_Specifications_Present): New function
2079 (P_Aspect_Specifications): New procedure
2080 * par-ch3.adb (P_Type_Declaration): Handle aspect specifications
2081 (P_Derived_Type_Def_Or_Private_Ext_Decl): Handle aspect specifications
2082 (P_Identifier_Declarations): Handle aspect specifications
2083 (P_Component_Items): Handle aspect specifications
2084 (P_Subtype_Declaration): Handle aspect specifications
2085 * par-ch6.adb (P_Subprogram): Handle aspect specifications
2086 * par-ch9.adb (P_Entry_Declaration): Handle aspect specifications
2087 * par.adb (Aspect_Specifications_Present): New function
2088 (P_Aspect_Specifications): New procedure
2089 * sem.adb (Analyze_Full_Type_Declaration): New name for
2090 Analyze_Type_Declaration.
2091 (Analyze_Formal_Package_Declaration): New name (add _Declaration)
2092 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
2093 (Analyze_Protected_Type_Declaration): New name (add _Declaration)
2094 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
2095 (Analyze_Single_Task_Declaration): New name (add _Declaration)
2096 (Analyze_Task_Type_Declaration): New name (add _Declaration)
2097 * sem_cat.adb (Analyze_Full_Type_Declaration): New name for
2098 Analyze_Type_Declaration.
2099 * sem_ch11.adb (Analyze_Exception_Declaration): Analyze aspect
2101 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Handle aspect
2103 (Analyze_Formal_Package_Declaration): New name (add _Declaration)
2104 (Analyze_Formal_Package_Declaration): Handle aspect specifications
2105 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
2106 (Analyze_Formal_Subprogram_Declaration): Handle aspect specifications
2107 (Analyze_Formal_Type_Declaration): Handle aspect specifications
2108 (Analyze_Generic_Package_Declaration): Handle aspect specifications
2109 (Analyze_Generic_Subprogram_Declaration): Handle aspect specifications
2110 (Analyze_Package_Instantiation): Handle aspect specifications
2111 (Analyze_Subprogram_Instantiation): Handle aspect specifications
2112 * sem_ch12.ads (Analyze_Formal_Package_Declaration): New name (add
2114 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
2115 * sem_ch13.adb (Analyze_Aspect_Specifications): New procedure
2116 (Duplicate_Clause): New function, calls to this function are added to
2117 processing for all aspects.
2118 * sem_ch13.ads (Analyze_Aspect_Specifications): New procedure
2119 * sem_ch3.adb (Analyze_Full_Type_Declaration): New name for
2120 Analyze_Type_Declaration.
2121 * sem_ch3.ads (Analyze_Full_Type_Declaration): New name for
2122 Analyze_Type_Declaration.
2123 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Analyze aspect
2125 (Analyze_Subprogram_Declaration): Analyze aspect specifications
2126 * sem_ch7.adb (Analyze_Package_Declaration): Analyze aspect
2128 (Analyze_Private_Type_Declaration): Analyze aspect specifications
2129 * sem_ch9.adb (Analyze_Protected_Type_Declaration): Analyze aspect
2131 (Analyze_Protected_Type_Declaration): New name (add _Declaration)
2132 (Analyze_Single_Protected_Declaration): Analyze aspect specifications
2133 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
2134 (Analyze_Single_Task_Declaration): Analyze aspect specifications
2135 (Analyze_Single_Task_Declaration): New name (add _Declaration)
2136 (Analyze_Task_Type_Declaration): Analyze aspect specifications
2137 (Analyze_Task_Type_Declaration): New name (add _Declaration)
2138 * sem_ch9.ads (Analyze_Protected_Type_Declaration): New name (add
2140 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
2141 (Analyze_Single_Task_Declaration): New name (add _Declaration)
2142 (Analyze_Task_Type_Declaration): New name (add _Declaration)
2143 * sem_prag.adb: Use Get_Pragma_Arg systematically so that we do not
2144 have to generate unnecessary pragma argument associations (this matches
2146 Throughout do changes to accomodate aspect specifications, including
2147 specializing messages, handling the case of not going through all
2148 homonyms, and allowing for cancellation.
2149 * sinfo.ads, sinfo.adb: Clean up obsolete documentation for Flag1,2,3
2150 (Aspect_Cancel): New flag
2151 (From_Aspect_Specification): New flag
2152 (First_Aspect): Removed flag
2153 (Last_Aspect): Removed flag
2154 * sprint.adb (Sprint_Aspect_Specifications): New procedure
2155 (Sprint_Node_Actual): Add calls to Sprint_Aspect_Specifications
2157 2010-10-11 Bob Duff <duff@adacore.com>
2159 * sem_res.adb (Resolve_Actuals): Minor change to warning messages so
2160 they match in Ada 95, 2005, and 2012 modes, in the case where the
2161 language didn't change. Same thing for the run-time exception message.
2163 2010-10-11 Javier Miranda <miranda@adacore.com>
2165 * debug.adb Document that switch -gnatd.p enables the CIL verifier.
2167 2010-10-11 Robert Dewar <dewar@adacore.com>
2169 * s-htable.adb: Minor reformatting.
2171 2010-10-11 Javier Miranda <miranda@adacore.com>
2173 * debug.adb: Update comment.
2175 2010-10-11 Vincent Celier <celier@adacore.com>
2177 * gnatcmd.adb (GNATCmd): Set Opt.Unchecked_Shared_Lib_Imports to True
2178 unconditionally as for "gnat make" the projects are not processed in
2181 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2183 * sem_ch10.ads, sem_ch10.adb (Load_Needed_Body): Add parameter to
2184 suppress semantic analysis of the body when inlining, prior to
2185 verifying that the body does not have a with_clause on a descendant
2187 * inline.adb (Analyze_Inlined_Bodies): Do not inline a body if it has a
2188 with_clause on a descendant.
2189 (Scope_In_Main_Unit): Simplify.
2191 2010-10-11 Robert Dewar <dewar@adacore.com>
2193 * exp_ch6.adb, freeze.adb: Minor reformatting.
2195 2010-10-11 Vincent Celier <celier@adacore.com>
2197 * gnatcmd.adb (GNATCmd): For all tools other than gnatmake, allow
2198 shared library projects to import projects that are not shared library
2201 2010-10-11 Javier Miranda <miranda@adacore.com>
2203 * debug.adb: Document that switch -gnatd.o generates the CIL listing.
2205 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2207 * sem_prag.adb (Process_Suppress_Unsuppress): Only ignore
2208 Suppress/Unsuppress pragmas in codepeer mode on user code.
2210 2010-10-11 Javier Miranda <miranda@adacore.com>
2212 * exp_ch6.adb (Expand_Call): For VM platforms, add missing expansion of
2213 tag check in case of dispatching call through "=".
2215 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2217 * sem_ch3.adb (Access_Subprogram_Declaration): In Ada2012 an incomplete
2218 type is legal in the profile of any basic declaration.
2219 * sem_ch6.adb (Analyze_Return_Type, Process_Formals): In Ada2012 an
2220 incomplete type, including a limited view of a type, is legal in the
2221 profile of any subprogram declaration.
2222 If the type is tagged, its use is also legal in a body.
2223 * sem_ch10.adb (Install_Limited_With_Clause): Do not process context
2225 (Install_Limited_Withed_Unit): Refine legality checks when both the
2226 limited and the non-limited view of a package are visible in the
2228 If this is not an error case, the limited view is ignored.
2229 freeze.adb (Freeze_Entity): In Ada2012, an incomplete type is legal in
2230 access to subprogram declarations
2232 2010-10-11 Robert Dewar <dewar@adacore.com>
2234 * exp_ch6.adb: Code clean up.
2235 * exp_util.adb: Minor reformatting.
2237 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2239 * sem_ch3.adb, exp_ch6.adb
2240 (Make_Build_In_Place_Call_In_Anonymous_Context,
2241 Make_Build_In_Place_Call_In_Assignment,
2242 Make_Build_In_Place_Call_In_Object_Declaration): Fix calls to
2243 Add_Task_Actuals_To_Build_In_Place_Call in case of No_Task_Hierarchy
2245 (Access_Definition): Add missing handling of No_Task_Hierarchy.
2247 2010-10-11 Javier Miranda <miranda@adacore.com>
2249 * exp_util.adb (Remove_Side_Effects): No action needed for renamings of
2250 class-wide expressions.
2252 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2254 * xr_tabls.adb, sem_res.adb: Minor reformatting
2256 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2258 * gnat_rm.texi, exp_attr.adb, sem_attr.adb, sem_attr.ads,
2259 snames.ads-tmpl (Analyze_Attribute, Expand_N_Attribute_Reference): Add
2260 handling of Attribute_Ref. Add missing blanks in some error messages.
2261 (Attribute_Ref, Name_Ref): Declare.
2262 Document 'Ref attribute.
2264 2010-10-11 Robert Dewar <dewar@adacore.com>
2266 * sem_attr.adb: Minor reformatting.
2268 2010-10-11 Javier Miranda <miranda@adacore.com>
2270 * sem_ch8.adb (Attribute_Renaming): Add missing check to avoid loading
2271 package System.Aux_Dec in VM platforms.
2273 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2275 * sem_prag.adb (Process_Suppress_Unsuppress): Ignore
2276 Suppress/Unsuppress pragmas in codepeer mode.
2277 (Analyze_Pragma [Pragma_Suppress_All]): Do not generate error message
2279 * einfo.ads: Fix typo.
2281 2010-10-11 Emmanuel Briot <briot@adacore.com>
2283 * sinfo.adb: Use GNAT.HTable rather than System.HTable.
2284 * prj-nmsc.adb: Minor reformatting.
2286 2010-10-11 Thomas Quinot <quinot@adacore.com>
2288 * sem_attr.adb (Type_Key): Code simplification.
2290 2010-10-11 Tristan Gingold <gingold@adacore.com>
2292 * gcc-interface/utils2.c (maybe_wrap_malloc): Fix crash when allocating
2293 very large object on VMS.
2295 2010-10-11 Javier Miranda <miranda@adacore.com>
2297 * sem_ch10.adb (Analyze_With_Clause): Add missing test to ensure
2298 availability of attribute Instance_Spec.
2300 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2302 * gnat1drv.adb (Adjust_Global_Switches): Disable codepeer mode if
2303 checking syntax only or in ASIS mode.
2305 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2307 * sem_ch6.adb (Check_Delayed_Subprogram): Abstract subprograms may also
2308 need a freeze node if some type in the profile has one.
2309 * gcc-interface/trans.c (case N_Abstract_Subprogram_Declaration): If
2310 entity has a freeze node, defer elaboration.
2312 2010-10-11 Emmanuel Briot <briot@adacore.com>
2314 * prj-nmsc.adb (Check_Aggregate_Project): Add support for finding all
2315 aggregated projects.
2317 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2319 * sem_res.adb (Resolve_Entry_Call): Generate 's' reference for entry
2321 * sem_ch6.adb: Diagnose additional error condition.
2323 2010-10-11 Bob Duff <duff@adacore.com>
2325 * par.adb (Par): Clarify wording of certain error messages.
2327 2010-10-11 Gary Dismukes <dismukes@adacore.com>
2329 * sem_disp.adb (Check_Dispatching_Operation): Revise test for warning
2330 about nondispatching subprograms to use In_Same_List (reducing use of
2333 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2335 * xr_tabls.adb, sem_res.adb, lib-xref.adb, lib-xref.ads: Use s for
2336 reference in a static call.
2338 2010-10-11 Steve Baird <baird@adacore.com>
2340 * exp_attr.adb (Expand_N_Attribute_Reference, case Type_Key): Type_Key
2341 attribute should always be transformed into a string literal in
2343 * par-ch4.adb: Type_Key attribute's type is String; update value of
2344 Is_Parameterless_Attribute constant to reflect this.
2345 * sem_attr.adb (Analyze_Attribute): Recognize Type_Key attribute and
2346 rewrite it as a string literal (attribute value is always known
2348 * snames.ads-tmpl: Add entries for Type_Key attribute.
2350 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2352 * lib-xref.adb (Output_References): Common handling for objects and
2353 formals of an anonymous access type.
2355 2010-10-11 Eric Botcazou <ebotcazou@adacore.com>
2357 * make.adb (Scan_Make_Arg): Also pass -O to both compiler and linker.
2359 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2361 * sem_ch6.adb: Fix check for illegal equality declaration in Ada2012
2363 2010-10-11 Gary Dismukes <dismukes@adacore.com>
2365 * sem_disp.adb (Check_Dispatching_Operation): When testing for issuing
2366 a warning about subprograms of a tagged type not being dispatching,
2367 limit this to cases where the tagged type and the subprogram are
2368 declared within the same declaration list.
2370 2010-10-11 Jerome Lambourg <lambourg@adacore.com>
2372 * projects.texi, prj-attr.adb: Add new attribute documentation_dir.
2374 2010-10-11 Bob Duff <duff@adacore.com>
2376 * par-ch9.adb, sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, impunit.adb,
2377 impunit.ads, sem_ch5.adb, sem_type.adb, exp_imgv.adb, exp_util.adb,
2378 switch-c.adb, exp_attr.adb, exp_ch9.adb, par-ch11.adb, usage.adb,
2379 sem_ch9.adb, sem_ch10.adb, scng.adb, checks.adb, sem_prag.adb,
2380 sem_ch12.adb, par-ch2.adb, freeze.adb, par-ch4.adb, sem_util.adb,
2381 sem_res.adb, sem_attr.adb, par-ch6.adb, exp_ch4.adb, exp_ch6.adb,
2382 sem_ch4.adb, exp_ch8.adb, par-ch10.adb, sem_ch6.adb, par-prag.adb,
2383 exp_disp.adb, par-ch12.adb, sem_ch8.adb, snames.adb-tmpl, opt.ads,
2384 exp_aggr.adb, sem_cat.adb, sem_ch13.adb, par-ch3.adb, exp_strm.adb,
2385 exp_cg.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb: Use Ada_2005
2386 instead of Ada_05 (Ada_Version_Type).
2388 2010-10-11 Bob Duff <duff@adacore.com>
2390 * sem_aggr.adb, impunit.adb, impunit.ads, switch-c.adb, usage.adb,
2391 sem_ch10.adb, sem_prag.adb, sem_ch12.adb, par-ch4.adb, par-ch6.adb,
2392 par-ch8.adb, exp_ch4.adb, sem_ch4.adb, sem_ch6.adb, par-prag.adb,
2393 opt.ads, par-ch3.adb, lib-xref.adb: Use Ada_2012 instead of Ada_12
2396 2010-10-11 Javier Miranda <miranda@adacore.com>
2398 * exp_util.adb (Safe_Prefixed_Reference): If the prefix is an explicit
2399 dereference then do not exclude dereferences of access-to-constant
2400 types to handle them as constant view of variables (and hence remove
2401 side effects when required).
2402 * sem_res.adb (Resolve_Slice): Ensure that side effects in the bounds
2403 are properly handled.
2405 2010-10-11 Robert Dewar <dewar@adacore.com>
2407 * sem_prag.adb, sem_aggr.adb, sprint.adb: Minor reformatting.
2409 2010-10-11 Javier Miranda <miranda@adacore.com>
2411 * exp_ch5.ads, exp_ch6.ads (Expand_N_Extended_Return_Statement): Moved
2413 (Expand_N_Simple_Return_Statement): Moved to exp_ch6.
2414 * exp_ch5.adb, exp_ch6.adb (Expand_Non_Function_Return): Moved to
2416 (Expand_Simple_Function_Return): Move to exp_ch6.
2417 (Expand_N_Extended_Return_Statement): Moved to exp_ch6.
2418 (Expand_N_Simple_Return_Statement): Moved to exp_ch6.
2420 2010-10-11 Robert Dewar <dewar@adacore.com>
2422 * snames.ads-tmpl: Add names for aspects.
2423 * aspects.ads, aspects.adb: New.
2424 * gcc-interface/Make-lang.in: Update dependencies.
2425 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2427 * exp_ch6.adb (Expand_Actuals): If an actual is the current instance of
2428 a task type, it must be replaced with a reference to Self.
2430 2010-10-11 Vincent Celier <celier@adacore.com>
2432 * adaint.h: Add prototype for function __gnat_create_output_file_new.
2434 2010-10-11 Javier Miranda <miranda@adacore.com>
2436 * sem_aggr.adb (Collect_Aggr_Bounds): Remove side effects of collected
2439 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2441 * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Do not emit error
2442 for AI05-0033 in CodePeer mode.
2444 2010-10-11 Robert Dewar <dewar@adacore.com>
2446 * atree.h, atree.ads, atree.adb (Flag3): New flag (replaces Unused_1)
2447 * csinfo.adb: Aspect_Specifications is a new special field
2448 * einfo.adb (Flag3): New unused flag
2449 * exp_util.adb (Insert_Actions): Add processing for
2450 N_Aspect_Specification.
2451 * sem.adb: Add entry for N_Aspect_Specification.
2452 * sinfo.ads, sinfo.adb (N_Aspect_Specification): New node
2453 (Has_Aspect_Specifications): New flag
2454 (Permits_Aspect_Specifications): New function
2455 (Aspect_Specifications): New function
2456 (Set_Aspect_Specifications): New procedure
2457 * sprint.adb (Sprint_Node): Put N_At_Clause in proper alpha order
2458 (Sprint_Node): Add dummy entry for N_Aspect_Specification
2459 * treepr.adb (Flag3): New flag to be listed
2461 2010-10-11 Vincent Celier <celier@adacore.com>
2463 * adaint.c: Minor reformatting.
2465 2010-10-11 Robert Dewar <dewar@adacore.com>
2467 * sem_ch6.adb, s-htable.ads: Minor reformatting.
2469 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2471 * sem_ch4.adb (Analyze_Selected_Component): If the selector is
2472 invisible in an instantiation, and both the formal and the actual are
2473 private extensions of the same type, look for the desired component in
2474 the proper view of the parent type.
2476 2010-10-11 Vincent Celier <celier@adacore.com>
2478 * adaint.c (__gnat_number_of_cpus): Add implementation for Solaris,
2479 AIX, Tru64, Darwin, IRIX and HP-UX.
2481 2010-10-11 Robert Dewar <dewar@adacore.com>
2483 * a-textio.adb: Minor reformatting
2485 2010-10-11 Robert Dewar <dewar@adacore.com>
2487 * a-suesen.ads, a-suenst.ads,
2488 a-suesen.adb, a-suenst.adb,
2489 a-suewse.adb, a-suewst.adb,
2490 a-suewse.ads, a-suewst.ads,
2491 a-suezse.ads, a-suezst.ads,
2492 a-suezse.adb, a-suezst.adb: New name for string encoding packages.
2493 * impunit.adb: New names for string encoding units
2494 * Makefile.rtl: New names for string encoding units
2495 * rtsfind.ads: Minor code reorganization.
2497 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2499 * exp_ch5.adb: Code clean up.
2501 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2503 * sem_ch6.adb (Check_Limited_Return): Specialize warning on limited
2504 returns when in a generic context.
2505 (Analyze_Function_Return): ditto.
2507 2010-10-11 Robert Dewar <dewar@adacore.com>
2509 * s-multip.ads: Fix header.
2510 * sem_ch3.adb, s-multip.adb, a-tigeli.adb: Minor reformatting.
2512 2010-10-11 Vincent Celier <celier@adacore.com>
2514 * Makefile.rtl: Add s-multip.
2515 * adaint.c: New function __gnat_number_of_cpus, implemented for Linux,
2516 defaulting to 1 for other platforms.
2517 * adaint.h: New function __gnat_number_of_cpus.
2518 * impunit.adb (Non_Imp_File_Names_12): New file list for Ada 2012,
2519 with a single component "s-multip".
2520 * impunit.ads (Kind_Of_Unit): New enumerated value Ada_12_Unit for Ada
2522 * rtsfind.ads (RTU_Id): New enumerated value System_Multiprocessors
2523 * s-multip.ads, s-multip.adb: New Ada 2012 package.
2524 * sem_ch10.adb (Analyze_With_Clause): Check also Ada 2012 units.
2526 2010-10-11 Javier Miranda <miranda@adacore.com>
2528 * a-textio.adb: Move new implementation of Get_Line to a subunit.
2529 * a-tigeli.adb: New subunit containing the implementation of Get_Line.
2531 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2533 * sem_aux.adb: Code clean up.
2535 2010-10-11 Robert Dewar <dewar@adacore.com>
2537 * sem_ch3.adb, sem_aux.adb, sem_ch6.adb: Minor reformatting
2539 2010-10-11 Robert Dewar <dewar@adacore.com>
2541 * einfo.adb, atree.h, atree.ads, atree.adb: Define seven new flags
2542 Flag248-Flag254. Define new field Field29.
2544 2010-10-10 Olivier Hainque <hainque@adacore.com>
2545 Eric Botcazou <ebotcazou@adacore.com>
2547 * gcc-interface/lang.opt (gdwarf+): Remove.
2548 * gcc-interface/gigi.h (get_parallel_type): Likewise
2549 * gcc-interface/misc.c (gnat_dwarf_extensions): Likewise.
2550 (gnat_handle_option): Remove OPT_gdwarfplus case.
2551 (gnat_post_options): Remove setting of use_gnu_debug_info_extensions
2552 from gnat_dwarf_extensions.
2553 * gcc-interface/trans.c (gigi): Remove -gdwarf+ initializations.
2554 * gcc-interface/utils.c (get_parallel_type): Remove.
2556 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
2558 * gcc-interface/trans.c (gnat_to_gnu) <N_Not_In>: Use
2559 invert_truthvalue_loc instead of invert_truthvalue.
2560 * gcc-interface/utils2.c (build_binary_op) <NE_EXPR>: Likewise.
2561 (build_unary_op) <TRUTH_NOT_EXPR>: Likewise.
2563 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
2565 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
2566 assertion on the types of the parameters. Use KIND local variable.
2567 <E_Incomplete_Type>: Likewise.
2569 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
2571 * gcc-interface/ada-tree.h (DECL_BY_DOUBLE_REF_P): New macro.
2572 * gcc-interface/gigi.h (annotate_object): Add BY_DOUBLE_REF parameter.
2573 * gcc-interface/decl.c (annotate_object): Likewise and handle it.
2574 (gnat_to_gnu_entity): Adjust calls to annotate_object.
2575 (gnat_to_gnu_param): If fat pointer types are passed by reference on
2576 the target, pass them by explicit reference.
2577 * gcc-interface/misc.c (default_pass_by_ref): Fix type of constant.
2578 * gcc-interface/trans.c (Identifier_to_gnu): Do DECL_BY_DOUBLE_REF_P.
2579 (Subprogram_Body_to_gnu): Adjust call to annotate_object.
2580 (call_to_gnu): Handle DECL_BY_DOUBLE_REF_P.
2581 * gcc-interface/utils.c (convert_vms_descriptor): Add BY_REF parameter
2583 (build_function_stub): Iterate on the parameters of the subprogram in
2584 lieu of on the argument types. Adjust call to convert_vms_descriptor.
2586 2010-10-09 Eric Botcazou <ebotcazou@adacore.com>
2588 * gcc-interface/misc.c: Delete prototypes.
2589 (gnat_init_options): Use local variable.
2590 (lang_hooks): Move to the end of the file.
2592 2010-10-08 Joseph Myers <joseph@codesourcery.com>
2594 * gcc-interface/misc.c (gnat_init_options_struct): New. Split out
2595 from gnat_init_options.
2596 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
2598 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2600 * sem_aux.adb: Cleanup Is_Immutably_Limited_Type.
2602 2010-10-08 Robert Dewar <dewar@adacore.com>
2604 * exp_ch3.adb: Minor reformatting.
2605 * exp_ch5.adb: Add comment.
2607 2010-10-08 Robert Dewar <dewar@adacore.com>
2609 * sem_prag.adb (Check_Duplicate_Pragma): Check for entity match
2610 * gcc-interface/Make-lang.in: Update dependencies.
2611 * einfo.ads: Minor reformatting.
2613 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2615 * exp_ch5.adb, sem_ch3.adb, exp_ch7.adb, exp_util.adb, sem_aux.adb,
2616 sem_aux.ads, exp_ch4.adb, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
2617 exp_ch3.adb: Change Is_Inherently_Limited_Type to
2618 Is_Immutably_Limited_Type to accord with new RM terminology.
2619 * sem_aux.adb (Is_Immutably_Limited_Type): A type that is a descendant
2620 of a formal limited private type is not immutably limited in a generic
2623 2010-10-08 Robert Dewar <dewar@adacore.com>
2625 * sem_prag.adb (Check_Duplicate_Pragma): New procedure
2626 Add calls to this new procedure where appropriate
2628 2010-10-08 Vincent Celier <celier@adacore.com>
2630 * a-textio.adb (Get_Chunk): Code clean up.
2632 2010-10-08 Robert Dewar <dewar@adacore.com>
2634 * a-strbou.ads, a-strfix.adb, a-strfix.ads, a-strsea.adb, a-strsea.ads,
2635 a-strsup.adb, a-strsup.ads, a-strunb-shared.adb, a-strunb-shared.ads,
2636 a-strunb.adb, a-strunb.ads, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
2637 a-stwise.adb, a-stwise.ads, a-stwisu.adb, a-stwisu.ads,
2638 a-stwiun-shared.adb, a-stwiun-shared.ads, a-stwiun.adb, a-stwiun.ads,
2639 a-stzbou.ads, a-stzfix.adb, a-stzfix.ads, a-stzsea.adb, a-stzsea.ads,
2640 a-stzsup.adb, a-stzsup.ads, a-stzunb-shared.adb, a-stzunb-shared.ads,
2641 a-stzunb.adb, a-stzunb.ads (Find_Token): New version with From
2644 2010-10-08 Robert Dewar <dewar@adacore.com>
2646 * sem_cat.adb (Check_Categorization_Dependencies): Remote types
2647 packages can depend on preleborated packages.
2649 2010-10-08 Robert Dewar <dewar@adacore.com>
2651 * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Pragmas
2652 Interrupt_Handler and Attach_Handler not allowed in generics.
2654 2010-10-08 Robert Dewar <dewar@adacore.com>
2656 * ali.adb: Set Allocator_In_Body if AB parameter present on M line
2657 * ali.ads (Allocator_In_Body): New flag
2658 * bcheck.adb (Check_Consistent_Restrictions): Handle case of main
2659 program violating No_Allocators_After_Elaboration restriction.
2660 * gnatbind.adb (No_Restriction_List): Add entries for
2661 No_Anonymous_Allocators, and No_Allocators_After_Elaboration.
2662 * lib-load.adb: Initialize Has_Allocator flag
2663 * lib-writ.adb: Initialize Has_Allocator flag
2664 (M_Parameters): Set AB switch if Has_Allocator flag set
2665 * lib-writ.ads: Document AB flag on M line
2666 * lib.adb (Has_Allocator): New function
2667 (Set_Has_Allocator): New procedure
2668 * lib.ads (Has_Allocator): New function
2669 (Set_Has_Allocator): New procedure
2670 (Has_Allocator): New flag in Unit_Record
2671 * sem_ch4.adb (Analyze_Allocator): Add processing for
2672 No_Allocators_After_Elaboration.
2674 2010-10-08 Geert Bosch <bosch@adacore.com>
2676 * a-textio.adb (Get_Line): Rewrite to use fgets instead of fgetc.
2678 2010-10-08 Javier Miranda <miranda@adacore.com>
2680 * sem_prag.adb (Analyze_Pragma): Relax semantic rule of
2681 Java_Constructors because in the JRE library we generate occurrences
2682 in which the "this" parameter is not the first formal.
2684 2010-10-08 Robert Dewar <dewar@adacore.com>
2686 * par-ch3.adb: Minor reformatting.
2688 2010-10-08 Javier Miranda <miranda@adacore.com>
2690 * exp_disp.adb (Make_DT): Do not generate dispatch tables for CIL/Java
2693 2010-10-08 Robert Dewar <dewar@adacore.com>
2695 * par-ch8.adb (P_Use_Type_Clause): Recognize ALL keyword in Ada 2012
2697 * sinfo.adb (Use_Type_Clause): Add All_Present flag.
2698 * sinfo.ads (Use_Type_Clause): Add All_Present flag.
2699 * s-rident.ads: Add entry for No_Allocators_After_Elaboration,
2700 No_Anonymous_Allocators.
2702 2010-10-08 Vincent Celier <celier@adacore.com>
2704 * bindgen.adb (Gen_Restrictions_Ada): No new line after last
2705 restriction, so that the last comma is always replaced with a left
2708 2010-10-08 Javier Miranda <miranda@adacore.com>
2710 * sem_prag.adb (Analyze_Pragma): Add specific check on the type of the
2711 first formal of delegates.
2713 2010-10-08 Robert Dewar <dewar@adacore.com>
2715 * sem_aggr.adb: Minor reformatting.
2717 2010-10-08 Robert Dewar <dewar@adacore.com>
2719 * exp_imgv.adb (Expand_Image_Attribute): Handle special calling
2720 sequence for soft hyphen for Character'Image case.
2721 * rtsfind.ads (Image_Character_05): New entry
2722 * s-imgcha.adb (Image_Character_05): New procedurew
2723 * s-imgcha.ads (Image_Character_05): New procedure
2724 * s-imgwch.adb (Image_Wide_Character): Deal with Ada 2005 soft hyphen
2726 * s-valcha.adb (Value_Character): Recognize SOFT_HYPHEN for 16#AD#
2727 * sem_attr.adb (Eval_Attribute, case Width): Handle soft_hyphen name
2730 2010-10-08 Robert Dewar <dewar@adacore.com>
2732 * sem_attr.adb (Eval_Attribute, case Width): Avoid ludicrous long loop
2733 for case of Wide_[Wide_]Character.
2735 2010-10-08 Robert Dewar <dewar@adacore.com>
2737 * exp_ch3.adb: Minor reformating
2738 Minor code reorganization.
2740 2010-10-08 Javier Miranda <miranda@adacore.com>
2742 * sem_prag.adb (Analyze_Pragma): Add missing checks on wrong use of
2743 pragmas CIL_Constructor and Java_Constructor.
2744 * exp_ch3.adb (Expand_Freeze_Record_Type): Do not generate the
2745 predefined primitives for CIL/Java tagged types.
2747 2010-10-08 Robert Dewar <dewar@adacore.com>
2749 * sem_ch6.adb: Minor reformatting.
2751 2010-10-08 Robert Dewar <dewar@adacore.com>
2753 * gnat1drv.adb: Add call to Validate_Independence.
2754 * par-prag.adb: Add dummy entries for Independent,
2755 Independent_Componentsa.
2756 * sem_ch13.adb (Validate_Independence): New procedure
2757 (Initialize): Initialize address clause and independence check tables
2758 * sem_ch13.ads (Independence_Checks): New table
2759 (Validate_Independence): New procedure
2760 * sem_prag.adb: Add processing for pragma Independent[_Components]
2761 * snames.ads-tmpl: Add entries for pragma Independent[_Components]
2763 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2765 * sem_aggr.adb (Propagate_Discriminants): When expanding an aggregate
2766 component with box initialization, if the component is a variant record
2767 use the values of the discriminants to select the proper variant for
2768 further box initialization.
2770 2010-10-08 Thomas Quinot <quinot@adacore.com>
2772 * xsnames.adb: Remove obsolete file.
2773 * make.adb, sem_ch8.adb, einfo.ads: Minor reformatting.
2775 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2777 * exp_aggr.adb: Complete previous change.
2779 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2781 * sem_ch6.adb (Check_Return_Subtype): The subtype indication in an
2782 extended return must match statically the return subtype of the
2783 enclosing function if the type is an elementary type or if it is
2786 2010-10-08 Vincent Celier <celier@adacore.com>
2788 * prj-nmsc.adb (Add_Source): Report all duplicate units and source file
2789 names. Do not report the same duplicate unit several times.
2790 * prj.ads (Source_Data): New Boolean component Duplicate_Unit,
2791 defaulted to False, to avoid reporting the same unit as duplicate
2794 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2796 * sem_aggr.adb (Resolve_Array_Aggregate): If the expression in an
2797 others choice is a literal, analyze it to enable later optimizations.
2798 * exp_aggr.adb (Expand_Record_Aggregate): An aggregate with static size
2799 and components can be handled by the backend even if it is of a limited
2802 2010-10-08 Arnaud Charlet <charlet@adacore.com>
2804 * a-rttiev.adb (task Timer): Since this package may be elaborated
2805 before System.Interrupt, we need to call Setup_Interrupt_Mask
2806 explicitly to ensure that this task has the proper signal mask.
2808 2010-10-08 Robert Dewar <dewar@adacore.com>
2810 * freeze.adb (Freeze_Entity): For array case, move some processing for
2811 pragma Pack, Component_Size clause and atomic/volatile components here
2812 instead of trying to do the job in Sem_Ch13 and Freeze.
2813 * layout.adb: Use new Addressable function
2814 * sem_ch13.adb (Analyze_Attribute_Representation_Clause, case
2815 Component_Size): Move some handling to freeze point in
2816 Freeze.Freeze_Entity.
2817 * sem_prag.adb (Analyze_pragma, case Pack): Move some handling to
2818 freeze point in Freese.Freeze_Entity.
2819 * sem_util.ads, sem_util.adb (Addressable): New function.
2821 2010-10-08 Robert Dewar <dewar@adacore.com>
2823 * sprint.adb: Minor reformatting.
2825 2010-10-08 Javier Miranda <miranda@adacore.com>
2827 * exp_ch4.adb (Real_Range_Check): Declare temporary as constant.
2829 2010-10-08 Robert Dewar <dewar@adacore.com>
2831 * sem_ch3.adb: Minor reformatting.
2833 2010-10-08 Vincent Celier <celier@adacore.com>
2835 * ali-util.adb (Get_File_Checksum): Make sure that external_as_list is
2836 not a reserved word.
2837 * prj-proc.adb (Expression): Process string list external references.
2838 * prj-strt.adb (External_Reference): Parse external_as_list external
2840 * prj-tree.ads (Expression_Kind_Of): Allowed for N_External_Value nodes
2841 (Set_Expression_Kind_Of): Ditto
2842 * prj.adb (Initialize): Set external_as_list as a reserved word
2843 * projects.texi: Document new string external reference
2845 * scans.ads (Token_Type): New token Tok_External_As_List
2846 * snames.ads-tmpl: New standard name Name_External_As_List
2848 2010-10-08 Thomas Quinot <quinot@adacore.com>
2850 * sem_prag.adb: Minor reformatting.
2852 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2854 * sem_ch3.adb (Derived_Type_Declaration): In the private part of an
2855 instance, it is legal to derive from a non-limited actual when the
2856 formal type is untagged limited.
2857 * sem_ch12.adb (Instantiate_Type): For a formal private type, use
2858 analyzed formal as Generic_Parent_Type, to simplify later checks.
2860 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2862 * sem_res.adb (Insert_Default): If default value is already a
2863 raise_constraint_error do not rewrite it as new raise node, to prevent
2864 infinite loops in the warning removal machinery.
2866 2010-10-08 Robert Dewar <dewar@adacore.com>
2868 * sem_util.adb, sem_prag.adb: Minor reformatting
2870 2010-10-08 Hristian Kirtchev <kirtchev@adacore.com>
2872 * gnat_rm.texi: Remove the section on pragma Implemented_By_Entry.
2873 Add section on pragma Implemented.
2875 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2877 * sem_ch3.adb (Derive_Subprogram): If an abstract extension has a
2878 concrete parent with a concrete constructor, the inherited constructor
2879 is abstract even if the derived type is a null extension.
2881 2010-10-08 Thomas Quinot <quinot@adacore.com>
2883 * sem_ch4.adb: Minor reformatting.
2885 2010-10-08 Hristian Kirtchev <kirtchev@adacore.com>
2887 * einfo.adb: Flag 232 (formerly Implemented_By_Entry) is now unused.
2888 (Implemented_By_Entry): Removed.
2889 (Set_Implemented_By_Entry): Removed.
2890 (Write_Entity_Flags): Remove the output for Implemented_By_Entry.
2891 * einfo.ads: Remove Implemented_By_Entry and its usage in entities.
2892 (Implemented_By_Entry): Removed along with its associated pragma.
2893 (Set_Implemented_By_Entry): Removed along with its associated pragma.
2894 * exp_ch9.adb: Alphabetize with and use clauses of Exp_Ch9.
2895 (Build_Dispatching_Call_Equivalent): New routine.
2896 (Build_Dispatching_Requeue): New routine.
2897 (Build_Dispatching_Requeue_To_Any): New routine.
2898 (Build_Normal_Requeue): New routine.
2899 (Build_Skip_Statement): New routine.
2900 (Expand_N_Requeue_Statement): Rewritten. The logic has been split into
2901 several subroutines.
2902 * par-prag.adb: Replace Pragma_Implemented_By_Entry by
2904 * sem_ch3.adb (Check_Abstract_Overriding): Perform checks concerning
2906 (Check_Pragma_Implemented): New routines.
2907 (Inherit_Pragma_Implemented): New routine.
2908 * sem_ch9.adb (Analyze_Requeue): Update the predicate which detects a
2909 dispatching requeue.
2910 * sem_prag.adb: Update array Sig_Flags by removing Implemented_By_Entry
2911 and adding Implemented.
2912 (Ada_2012_Pragma): New routine.
2913 (Analyze_Pragma, case Implemented): Perform all necessary checks
2914 concerning pragma Implemented and register the pragma as a
2915 representation item with the procedure_LOCAL_NAME.
2916 (Analyze_Pragma, case Implemented_By_Entry): Removed.
2917 * sem_util.adb (Implementation_Kind): New routine.
2918 * sem_util.ads (Implementation_Kind): New routine.
2919 * snames.ads-tmpl: Remove Name_Implemented_By_Entry and add
2920 Name_Implemented. Remove pragma name Pragma_Implemented_By_Entry and
2921 add Pragma_Implemented. Add special names By_Any, By_Entry and
2922 By_Protected_Procedure.
2924 2010-10-08 Javier Miranda <miranda@adacore.com>
2926 * exp_ch3.adb (Expand_Freeeze_Record_Type): Code cleanup: remove local
2927 variable Has_Static_DT by invocation of function Building_Static_DT.
2929 2010-10-08 Vincent Celier <celier@adacore.com>
2931 * g-dirope.adb (Remove_Dir): Do not change the current directory when
2932 doing a recursive remove of a subdirectory.
2934 2010-10-08 Javier Miranda <miranda@adacore.com>
2936 * exp_ch6.ad (Freeze_Subprogram): Factorize code.
2937 * exp_disp.adb (Make_Secondary_DT): Factorize code.
2938 (Make_DT): Factorize code.
2940 2010-10-08 Robert Dewar <dewar@adacore.com>
2942 * sem_ch4.adb: Minor reformatting.
2944 2010-10-08 Robert Dewar <dewar@adacore.com>
2946 * sem_ch6.adb (Check_Conformance): Check null exclusion match for full
2949 2010-10-08 Thomas Quinot <quinot@adacore.com>
2951 * sem_ch12.adb (Instantiate_Object): Rename Formal_Id to Gen_Obj, for
2952 consistency with Gen_T in Instantiate_Type.
2953 Introduce constant A_Gen_Obj to avoid repeated queries for
2954 Defining_Identifier (Analyzed_Formal).
2956 2010-10-08 Vincent Celier <celier@adacore.com>
2958 * prj-nmsc.adb: Minor comment fix.
2960 2010-10-07 Robert Dewar <dewar@adacore.com>
2962 * sem_prag.adb, sem_ch13.adb: Implement AI05-0012-1/02.
2963 * gcc-interface/Make-lang.in: Update dependencies.
2965 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2967 * sem_ch12.ad: (Instantiate_Object): For an in-out formal of a child
2968 unit, if the type of the formal is declared in a parent unit and is not
2969 a formal itself, the actual must be located from an enclosing parent
2970 instance by normal visibility.
2972 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2974 * sem_ch4.adb (Analyze_Allocator): In Ada 2012, a null_exclusion
2975 indicator is illegal for an uninitialized allocator.
2977 2010-10-07 Robert Dewar <dewar@adacore.com>
2979 * sem_prag.adb (Analyze_Attribute_Definition_Clause, case
2980 Component_Size): Complete previous change.
2982 2010-10-07 Vincent Celier <celier@adacore.com>
2984 * scng.adb (Scan): Call Accumulate_Token_Checksum for Tok_Identifier,
2985 even for keywords, to avoid having the checksum to depend on the Ada
2988 2010-10-07 Gary Dismukes <dismukes@adacore.com>
2990 * sem_aggr.adb, sem_ch12.adb, sem_ch6.adb, par-ch5.adb,
2991 exp_ch3.adb: Minor reformatting.
2993 2010-10-07 Robert Dewar <dewar@adacore.com>
2995 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
2996 Component_Size): It is now illegal to give an incorrect component size
2997 clause in the case of aliased or atomic components.
2998 * sem_prag.adb (Analyze_Pragma, case Pack): It is now illegal to give
2999 an effective pragma Pack in the case of aliased or atomic components.
3001 2010-10-07 Steve Baird <baird@adacore.com>
3003 * exp_ch4.adb (Expand_N_Allocator): Do not bypass expansion
3004 in the case of a violation of an active No_Task_Hierarchy restriction.
3006 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3008 * sem_ch12.adb (Validate_Derived_Type_Instance): If a formal derived
3009 type is non-limited, an actual for it cannot be limited.
3011 2010-10-07 Robert Dewar <dewar@adacore.com>
3013 * einfo.ads (No_Pool_Assigned): Update documentation.
3014 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
3015 Storage_Size): We only set No_Pool_Assigned if the expression is a
3016 static constant and zero.
3017 * sem_res.adb (Resolve_Allocator): Allocation from empty storage pool
3018 should be an error not a warning.
3020 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3022 * exp_aggr.adb (Expand_Array_Aggregate): Recognize additional cases
3023 where an aggregate in an assignment can be built directly into the
3024 target, and does not require the creation of a temporary that may
3027 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3029 * sem_aggr.adb (Analyze_Record_Aggregate): In Ada2012, a choice list
3030 in a record aggregate can correspond to several components of
3031 anonymous access types, as long as the designated subtypes match.
3033 2010-10-07 Robert Dewar <dewar@adacore.com>
3035 * gnat_rm.texi, exp_util.adb, sinfo.adb, sinfo.ads, sem_ch12.adb,
3036 sem.adb, gnat_ugn.texi, sem_util.ads, par-ch6.adb, targparm.ads,
3037 restrict.adb, sem_ch6.adb, sem_ch6.ads, sprint.adb, i-c.ads: Change
3038 spelling parametrize(d) => parameterize(d).
3040 2010-10-07 Robert Dewar <dewar@adacore.com>
3042 * sem_ch12.adb: Add comment.
3043 * sem_ch6.adb: Minor reformatting.
3045 2010-10-07 Robert Dewar <dewar@adacore.com>
3047 * par-ch3.adb, par-ch6.adb, par-ch7.adb, par-ch9.adb, par-ch10.adb: Add
3048 Pexp to Pf_Rec constants
3049 (P_Subprogram): Expression is always enclosed in parentheses
3050 * par.adb (Pf_Rec): add Pexp flag for parametrized expression
3051 * sinfo.ads (N_Parametrized_Expression): Expression must be in parens
3053 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3055 * sem_ch6.adb (Analyze_Subprogram_Specification): Implement Ada2012
3056 checks on functions that return an abstract type or have a controlling
3057 result whose designated type is an abstract type.
3058 (Check_Private_Overriding): Implement Ada2012 checks on functions
3059 declared in the private part, if an abstract type is involved.
3060 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): In Ada2012,
3061 reject a generic function that returns an abstract type.
3062 * exp_ch5.adb (Expand_Simple_Function_Return): in Ada2012, if a
3063 function has a controlling access result, check that the tag of the
3064 return value matches the designated type of the return expression.
3066 2010-10-07 Robert Dewar <dewar@adacore.com>
3068 * par-ch6.adb: Fix error in handling of parametrized expressions.
3069 * par-ch4.adb (P_Name): Allow qualified expression as name in Ada 2012
3071 (P_Simple_Expression): Better message for qualified expression prefix
3072 * s-crc32.adb: Minor reformatting.
3073 * exp_intr.adb (Expand_Unc_Deallocation): Remove test for empty
3074 storage pool (this test is moved to Sem_Intr).
3075 * sem_intr.adb (Check_Intrinsic_Call): Add check for deallocation from
3076 empty storage pool, moved here from Exp_Intr and made into error.
3077 (Check_Intrinsic_Call): Remove assumption in generating not-null free
3078 warning that the name of the instantiation is Free.
3079 * sinput.adb (Tree_Read): Document use of illegal free call allowed in
3081 * types.ads: Remove storage size clauses from big types (since we may
3082 need to do deallocations, which are now illegal for empty pools).
3084 2010-10-07 Sergey Rybin <rybin@adacore.com>
3086 * gnat_ugn.texi: Add missing word.
3088 2010-10-07 Robert Dewar <dewar@adacore.com>
3090 * exp_util.adb (Insert_Actions): Add handling of
3091 N_Parametrized_Expression.
3092 * par-ch6.adb (P_Subprogram): Add parsing of parametrized expression
3093 * sem.adb: Add entry for N_Parametrized_Expression
3094 * sem_ch6.adb (Analyze_Parametrized_Expression): New procedure
3095 * sem_ch6.ads (Analyze_Parametrized_Expression): New procedure
3096 * sinfo.ads, sinfo.adb: Add N_Parametrized_Expression
3097 * sprint.adb (Sprint_Node): Add handling for N_Parametrized_Expression
3098 * par-ch4.adb: Minor reformatting.
3100 2010-10-07 Robert Dewar <dewar@adacore.com>
3102 * scng.adb (Skip_Other_Format_Characters): New procedure
3103 (Start_Of_Wide_Character): New procedure
3104 (Scan): Use Start_Of_Wide_Character where appropriate
3105 (Scan): Improve error message for other_format chars in identifier
3106 (Scan): Allow other_format chars between tokens
3108 2010-10-07 Javier Miranda <miranda@adacore.com>
3110 * exp_util.adb (Safe_Prefixed_Reference): When removing side effects,
3111 Add missing support for explicit dereferences.
3113 2010-10-07 Robert Dewar <dewar@adacore.com>
3115 * par-ch10.adb, par-ch3.adb, par.adb: Minor reformatting.
3117 2010-10-07 Robert Dewar <dewar@adacore.com>
3119 * exp_disp.adb, exp_dist.adb, exp_util.ads, exp_util.adb,
3120 exp_ch11.adb: Rename Full_Qualified_Name to Fully_Qualified_Name_String
3121 * sem_util.adb, sem_util.ads (Full_Qualified_Name): Moved to
3122 Exp_Util.Fully_Qualified_Name_String.
3124 2010-10-07 Robert Dewar <dewar@adacore.com>
3126 * rtsfind.ads: Add entry for Ada.Real_Time.Timing_Events.Set_Handler
3127 * sem_res.adb (Resolve_Call): A call to
3128 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
3129 No_Relative_Delay (AI-0211).
3131 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3133 * sem_ch10.adb: Small change in error message.
3135 2010-10-07 Robert Dewar <dewar@adacore.com>
3137 * tbuild.ads: Minor reformatting.
3139 2010-10-07 Robert Dewar <dewar@adacore.com>
3141 * gnatcmd.adb, make.adb, prj-nmsc.adb, sem_elab.adb: Minor reformatting
3143 2010-10-07 Arnaud Charlet <charlet@adacore.com>
3145 * exp_ch11.adb (Expand_N_Exception_Declaration): Update comments.
3147 2010-10-07 Robert Dewar <dewar@adacore.com>
3149 * sem_res.adb: Minor reformatting
3151 2010-10-07 Olivier Ramonat <ramonat@adacore.com>
3153 * gnat_ugn.texi: Minor editing.
3154 * opt.ads: Document that scripts rely on specific formats in opt.ads
3156 2010-10-07 Robert Dewar <dewar@adacore.com>
3158 * a-wichun.ads, a-wichun.adb (To_Lower_Case): New function
3159 (To_Upper_Case): Fix to be inverse of To_Lower_Case
3160 * a-zchuni.ads, a-zchuni.adb (To_Lower_Case): New function
3161 (To_Upper_Case): Fix to be inverse of To_Lower_Case
3163 2010-10-07 Robert Dewar <dewar@adacore.com>
3165 * a-wichha.adb, a-wichha.ads, a-zchhan.adb, a-zchhan.ads: New file.
3166 * impunit.adb: Add entries for a-wichha/a-zchhan
3167 * Makefile.rtl: Add entries for a-wichha/a-zchhan
3169 2010-10-07 Vincent Celier <celier@adacore.com>
3171 * make.adb (Check): Call Check_Source_Info_In_ALI with Project_Tree
3172 * makeutl.adb (Check_Source_Info_In_ALI): If there is at least one
3173 replaced source, check that none of the replaced sources are in the
3175 * makeutl.ads (Check_Source_Info_In_ALI): New parameter Tree
3176 * prj-nmsc.adb (Remove_Source): New parameter Tree. If the source is
3177 replaced with a source with a different file name, put it in the hash
3178 table Replaced_Sources.
3179 (Add_Source): Call Remove_Source with Data.Tree. If there is at least
3180 one replaced source, check if it has the same file name as the current
3181 source; if it has, remove it from the hash table Replaced_Sources.
3182 * prj.adb (Reset): Reset hash table Tree.Replaced_Sources
3183 * prj.ads (Replaced_Source_HTable): New hash table
3184 (Project_Tree_Data): New components Replaced_Sources and
3185 Replaced_Source_Number.
3187 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3189 * sem_elab.adb (Check_A_Call): After inserting elaboration check, set
3190 proper flag to prevent a double elaboration check on the same call.
3191 * exp_util.adb (Insert_Actions): If the enclosing node is an
3192 Expression_With_Actions and it has been analyzed already, find
3193 insertion point further up in the tree.
3195 2010-10-07 Hristian Kirtchev <kirtchev@adacore.com>
3197 * sem_ch13.adb (Analyze_Record_Representation_Clause): Alphabetize all
3198 local variables. Remove the general restriction which prohibits the
3199 application of record rep clauses to Unchecked_Union types. Add Ada
3200 2012 check to detect improper naming of an Unchecked_Union
3201 discriminant in record rep clause.
3202 * sem_prag.adb: Add with and use clause for Exp_Ch7.
3203 (Analyze_Pragma): Unchecked_Union case: Propagate the Unchecked_Union
3204 type to all invocations of Check_Component and Check_Variant.
3205 (Check_Component): Add formal parameters UU_Typ and In_Variant_Part.
3206 Rewritten. Add Ada 2012 check to detect improper use of formal
3207 private types and private extensions as component types of an
3208 Unchecked_Union declared inside a generic body.
3209 (Check_Variant): Add formal parameter UU_Typ. Propagate the
3210 Unchecked_Union type to all calls of Check_Component. Signal that the
3211 current component comes from the variant part of an Unchecked_Union
3213 (Inside_Generic_Body): New routine.
3215 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3217 * exp_ch4.adb (Expand_Composite_Equality): When looking for a primitive
3218 equality operation for a record component, verify that both formals
3219 have the same type, and the result type is boolean.
3221 2010-10-07 Vincent Celier <celier@adacore.com>
3223 * gnatcmd.adb (Check_Files): When looking for the .ci file for a
3224 binder generated file, look for both b~xxx and b__xxx as gprbuild
3225 always uses b__ as the prefix of such files.
3227 2010-10-07 Thomas Quinot <quinot@adacore.com>
3229 * sem_res.adb: Minor reformatting.
3231 2010-10-07 Arnaud Charlet <charlet@adacore.com>
3233 * debug.adb: Update -gnatd.J documentation.
3235 2010-10-07 Robert Dewar <dewar@adacore.com>
3237 * gnat_rm.texi: Document handling of invalid values
3238 * s-utf_32.ads, s-utf_32.adb (UTF_To_Lower_Case): Fix implementation
3240 (UTF_To_Upper_Case): New function.
3242 2010-10-07 Robert Dewar <dewar@adacore.com>
3244 * sem_attr.adb: Minor reformatting.
3245 * einfo.ads, einfo.adb (Is_Ada_2012_Only): New flag
3246 * itypes.adb (Create_Null_Excluding_Itype): Set Is_Ada_2012_Only flag
3248 * lib-xref.adb (Generate_Reference): Warn on use of Ada 2012 entity in
3250 * opt.ads (Warn_On_Ada_2012_Compatibility): New flag
3251 * sem_ch3.adb (Analye_Subtype_Declaration): Inherit Is_Ada_2012_Only
3252 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Is_Ada_2012_Only
3254 * sem_prag.adb (Analyze_Pragma, case Ada_12/Ada_2012): Allow form with
3256 * sem_type.adb (Disambiguate): Deal with Is_Ada_2012_Only.
3257 * sem_warn.adb (Warn_On_Ada_2012_Compatibility): New flag, treated
3260 2010-10-07 Javier Miranda <miranda@adacore.com>
3262 * a-tags.ads: Use new support for pragma Ada_2012 with function
3265 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3267 * par-ch5.adb (P_Sequence_Of_Statements): In Ada2012 a label can end a
3268 sequence of statements.
3270 2010-10-07 Vincent Celier <celier@adacore.com>
3272 * gnatcmd.adb (Check_Files): Only add a .ci files if it exists
3274 2010-10-07 Javier Miranda <miranda@adacore.com>
3276 * a-tags.ads, a-tags.adb (Type_Is_Abstract): New subprogram.
3277 * rtsfind.ads (RE_Type_Is_Abstract): New entity.
3278 * exp_disp.adb (Make_DT): Initialize TSD component Type_Is_Abstract.
3280 2010-10-07 Arnaud Charlet <charlet@adacore.com>
3282 * sem_ch12.adb (Mark_Context): Removed, no longer needed.
3283 (Analyze_Package_Instantiation): No longer analyze systematically a
3284 generic body in CodePeer mode.
3285 * freeze.adb, sem_attr.adb: Update comments.
3287 2010-10-05 Robert Dewar <dewar@adacore.com>
3289 * par-ch5.adb (Test_Statement_Required): Allow all pragmas in Ada 2012
3292 2010-10-05 Pascal Obry <obry@adacore.com>
3294 * gnat_rm.texi: Fix typo.
3296 2010-10-05 Arnaud Charlet <charlet@adacore.com>
3298 * gnat_ugn.texi: Add note about identifiers with same name and
3301 2010-10-05 Robert Dewar <dewar@adacore.com>
3303 * sem_ch4.adb: Minor reformatting.
3304 * a-direct.ads: Minor comment update.
3306 2010-10-05 Javier Miranda <miranda@adacore.com>
3308 * sem_ch3.adb (Add_Internal_Interface_Entities): Removing code that is
3309 no longer required after change in New_Overloaded_Entity.
3310 * sem_ch6.adb (New_Overloaded_Entity): Code reorganization to isolate
3311 the fragment of code that handles derivations of interface primitives.
3312 Add missing dependence on global variable Inside_Freezing_Actions to
3313 ensure the correct management of internal interface entities.
3314 * sem_ch13.adb (Analyze_Freeze_Entity): Add missing increase/decrease
3315 of the global variable Inside_Freezing_Actions to ensure that internal
3316 interface entities are well handled by New_Overloaded_Entity.
3317 * sem_disp.adb (Find_Primitive_Covering_Interface): Add documentation
3318 and complete the algorithm to catch hidden primitives derived of
3319 private type that covers the interface.
3320 * sem_disp.ads (Find_Primitive_Covering_Interface): Add missing
3323 2010-10-05 Robert Dewar <dewar@adacore.com>
3325 * prj-util.adb, prj-util.ads, prj.ads, s-vxwext-rtp.adb, sem_ch4.adb,
3326 sem_ch7.adb, sem_res.adb, sem_type.adb: Minor reformatting.
3327 Minor code reorganization (use Nkind_In).
3329 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3331 * sem_ch10.adb (Analyze_Task_Body_Stub): Diagnose duplicate stub for
3334 2010-10-05 Vincent Celier <celier@adacore.com>
3336 * gnatbind.adb: If the main library file is not for a suitable main
3337 program, change the error message.
3339 2010-10-05 Vincent Celier <celier@adacore.com>
3341 * a-direct.ads: Minor spelling error fixes in comments.
3342 * gnat_rm.texi: Add three entries in "Implementation Defined
3343 Characteristics" for the interpretations of the Form parameters in
3346 2010-10-05 Robert Dewar <dewar@adacore.com>
3348 * exp_ch3.adb, exp_ch5.adb, exp_disp.adb, exp_dist.adb, gnatlink.adb,
3349 makeutl.adb, par-ch6.adb, prj-dect.adb, prj-env.adb, prj-env.ads,
3350 prj-ext.adb, prj-nmsc.adb, prj-part.adb, prj-pp.ads: Minor code
3354 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3356 * sem_res.adb (Check_Parameterless_Call): If the prefix of 'Address is
3357 an explicit dereference of an access to function, the prefix is not
3358 interpreted as a parameterless call.
3360 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3362 * exp_attr.adb: For 'Read and 'Write, use full view of base type if
3365 2010-10-05 Vincent Celier <celier@adacore.com>
3367 * make.adb (Switches_Of): Allow wild cards in index of attributes
3369 * prj-util.adb (Value_Of): When Allow_Wildcards is True, use the index
3370 of the associative array as a glob regular expression.
3371 * prj-util.ads (Value_Of (Index, In_Array)): New Boolean parameter
3372 Allow_Wildcards, defaulted to False.
3373 (Value_Of (Name, Attribute_Or_Array_Name)): Ditto
3374 * projects.texi: Document that attribute Switches (<file name>) may
3375 use wild cards in the index.
3377 2010-10-05 Robert Dewar <dewar@adacore.com>
3379 * a-direct.adb, a-direct.ads, back_end.adb, checks.adb,
3380 einfo.adb: Minor reformatting.
3381 * debug.adb: Remove obsolete documentation for d.Z flag.
3383 2010-10-05 Vincent Celier <celier@adacore.com>
3385 * vms_data.ads: Add VMS qualifier /SRC_INFO= corresponding to gnatmake
3386 switch --create-info-file=.
3387 * gnat_ugn.texi: Add documentation for new gnatmake switch
3390 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3392 * sem_ch3.adb: Do not elaborate type definition if syntax error.
3394 2010-10-05 Javier Miranda <miranda@adacore.com>
3396 * sprint.adb (Sprint_Node_Actual): Improve output of subprogram bodies
3397 to generate the full-qualified names of its corresponding spec.
3398 This facilitates locating the corresponing body when reading
3401 2010-10-05 Thomas Quinot <quinot@adacore.com>
3403 * exp_dist.adb (Make_Helper_Function_Name): For a tagged type, use
3404 canonical name without serial number only if the helper is becoming a
3405 primitive of the type.
3407 2010-10-05 Javier Miranda <miranda@adacore.com>
3409 * exp_disp.adb (Make_DT): Minor code reorganization.
3411 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3413 * par-ch6.adb: improve recovery with extra paren in function spec.
3415 2010-10-05 Quentin Ochem <ochem@adacore.com>
3417 * prj-tree.ads: Project_Path is now aliased.
3419 2010-10-05 Thomas Quinot <quinot@adacore.com>
3421 * checks.adb: Minor reformatting.
3423 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
3425 * mlib-tgt-specific-mingw.adb (No_Argument_List): Delete.
3426 (Shared_Libgcc): New aliased variable.
3427 (Shared_Libgcc_Switch): New constant.
3428 (Build_Dynamic_Library): Pass Shared_Libgcc_Switch to the compiler
3429 * gcc-interface/Makefile.in (gnatlib-shared-win32): Pass -shared-libgcc
3431 * gcc-interface/Make-lang.in: Update dependencies.
3433 2010-10-05 Vincent Celier <celier@adacore.com>
3435 * prj-part.adb (Parse_Simple_Project): When checking if a child project
3436 imports its parent project, also look in projects being extended by
3439 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
3441 * gnat_ugn.texi: Adjust instructions in G.10 Building DLLs with GNAT.
3443 2010-10-05 Javier Miranda <miranda@adacore.com>
3445 * exp_cg.adb (Slot_Number): Add support to handle aliased entities.
3446 (Generate_CG_Output): Switch -gnatd.Z is no longer needed to
3447 activate this output.
3449 2010-10-05 Arnaud Charlet <charlet@adacore.com>
3451 * back_end.adb (Call_Back_End): Generate an error message when scil
3452 generation is enabled, and no scil back-end (by default) is available.
3454 2010-10-05 Javier Miranda <miranda@adacore.com>
3456 * debug.adb: Update documentation since -gnatd.Z is no longer required
3457 to generate the call-graph information.
3459 2010-10-05 Javier Miranda <miranda@adacore.com>
3461 * exp_ch5.adb (Expand_Simple_Function_Return): Rewrite expansion of a
3462 runtime access check by an equivalent expansion that causes
3463 no problems in the VM backend. The original expansion was
3464 not good for the VM backends because when Tagged_Type_Expansion
3465 is disabled the attribute Access_Disp_Table is not available.
3467 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3469 * sem_type.adb (Covers): In a dispatching context, T1 covers T2 if T2
3470 is class-wide and T1 is its specific type.
3472 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3474 * einfo.adb: Add guard to Is_String_Type to prevent cascaded errors.
3476 2010-10-05 Vincent Celier <celier@adacore.com>
3478 * back_end.ads: Minor spelling error correction.
3480 2010-10-05 Arnaud Charlet <charlet@adacore.com>
3482 * switch-c.adb, gnat1drv.adb (Scan_Front_End_Switches): Disable
3483 warnings when -gnatC is specified here so that warnings can be
3484 re-enabled explicitly.
3485 (Adjust_Global_Switches): No longer suppress warnings.
3487 2010-10-05 Vincent Celier <celier@adacore.com>
3489 * makeutl.adb: Minor reformatting.
3491 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3493 * sem_ch4.adb: add guard in Analyze_One_Call to prevent crash when a
3494 non-discrete type appears as an actual in a call.
3496 2010-10-05 Vincent Celier <celier@adacore.com>
3498 * make.adb (Scan_Make_Arg): Take into account new switch
3500 * makeusg.adb: Add line for new switch --source-info=file.
3501 * makeutl.ads (Source_Info_Option): New constant String for new builder
3503 * prj-conf.adb: Put subprograms in alphabetical order
3504 (Process_Project_And_Apply_Config): Read/write an eventual source info
3506 * prj-nmsc.adb (Look_For_Sources.Get_Sources_From_Source_Info): New
3508 (Look_For_Sources): If a source info file was successfully read, get
3509 the source data from the data read from the source info file.
3510 * prj-util.adb (Source_Info_Table): New table
3511 (Source_Info_Project_HTable): New hash table
3512 (Create): New procedure
3513 (Put (File), Put_Line): New procedures
3514 (Write_Source_Info_File): New procedure
3515 (Read_Source_Info_File): New procedure
3516 (Initialize): New procedure
3517 (Source_Info_Of): New procedure
3518 (Next): New procedure
3519 (Close): When file is an out file, fail if the buffer cannot be written
3520 or if the file cannot be close successfully.
3521 (Get_Line): Fail if file is an out file
3522 * prj-util.ads (Create): New procedure
3523 (Put (File), Put_Line): New procedures
3524 (Write_Source_Info_File): New procedure
3525 (Read_Source_Info_File): New procedure
3526 (Source_Info_Data): New record type
3527 (Source_Info_Iterator): New private type
3528 (Initialize): New procedure
3529 (Source_Info_Of): New procedure
3530 (Next): New procedure
3531 * prj.ads (Project_Tree_Data): New components Source_Info_File_Name and
3532 Source_Info_File_Exists.
3534 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3536 * exp_ch4.adb: Fix typo.
3538 2010-10-05 Thomas Quinot <quinot@adacore.com>
3540 * lib-writ.adb: Minor reformatting.
3542 2010-10-05 Javier Miranda <miranda@adacore.com>
3544 * sem_ch3.adb (Access_Definition): Remove useless code.
3546 2010-10-05 Emmanuel Briot <briot@adacore.com>
3548 * prj-env.adb, prj-env.ads (Set_Path): New subprogram.
3549 (Deep_Copy): Removed, not used.
3551 2010-10-05 Javier Miranda <miranda@adacore.com>
3553 * sem_ch3.adb (Add_Internal_Interface_Entities): Code reorganization:
3554 move code that searches in the list of primitives of a tagged type for
3555 the entity that will be overridden by user-defined routines.
3556 * sem_disp.adb (Find_Primitive_Covering_Interface): Move here code
3557 previously located in routine Add_Internal_Interface_Entities.
3558 * sem_disp.ads (Find_Primitive_Covering_Interface): Update docs.
3559 * sem_ch6.adb (New_Overloaded_Entity): Add missing check on
3560 availability of attribute Alias.
3562 2010-10-05 Ed Falis <falis@adacore.com>
3564 * s-taprop-vxworks.adb, s-osinte-vxworks.adb, s-osinte-vxworks.ads,
3565 s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.adb, s-vxwext-rtp.ads:
3566 Move definition of intContext to System.OS_Interface.
3567 Add necessary variants in System.VxWorks.Extensions.
3569 2010-10-05 Doug Rupp <rupp@adacore.com>
3571 * s-asthan-vms-alpha.adb: On VMS, a task using
3572 pragma AST_Entry exhibits a memory leak when the task terminates
3573 because the vector allocated for the AST interface is not freed. Fixed
3574 by making the vector a controlled type.
3576 2010-10-05 Emmanuel Briot <briot@adacore.com>
3578 * prj-nmsc.adb (Expand_Subdirectory_Pattern): Check that the prefix in
3579 a "**" pattern properly exists, and report an error otherwise.
3581 2010-10-05 Emmanuel Briot <briot@adacore.com>
3583 * prj-env.ads: Use GNAT.OS_Lib rather than System.OS_Lib.
3585 2010-10-05 Emmanuel Briot <briot@adacore.com>
3587 * prj-nmsc.adb, prj-err.adb (Expand_Subdirectory_Pattern): New
3589 Extract some code from Get_Directories, to share with the handling
3590 of aggregate projects (for the Project_Files attributes)
3592 2010-10-05 Emmanuel Briot <briot@adacore.com>
3594 * gnatcmd.adb, prj-proc.adb, prj-part.adb, prj-ext.adb, prj-ext.ads,
3595 switch-m.adb, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-env.adb,
3596 prj-env.ads, prj-tree.adb, prj-tree.ads (Project_Search_Path): New
3599 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
3601 * exp_ch5.adb (Make_Field_Expr): Revert previous change (removed).
3603 2010-10-05 Emmanuel Briot <briot@adacore.com>
3605 * prj-dect.adb, prj-nmsc.adb, prj-attr.adb, snames.ads-tmpl
3606 (Aggregate projects): added support for parsing aggregate projects.
3607 In particular, check the presence and value of the new attributes
3608 related to aggregate projects, ie Project_Files, Project_Path
3610 (Check_Attribute_Allowed, Check_Package_Allowed,
3611 Rename_Obsolescent_Attributes): new subprogram, extracting code
3612 from existing subprogram to keep their sizes smaller.
3613 (Check_Aggregate_Project, Check_Abstract_Project,
3614 Check_Missing_Sources): new subprograms
3615 (Check): remove comments that duplicated either the name of the
3616 following subprogram call, or the comment on that subprogram.
3617 * prj-part.adb (Check_Extending_All_Imports): New subprogram, extracted
3618 from Parse_Single_Project.
3619 (Check_Aggregate_Imports): new subprogram.
3621 2010-10-05 Vincent Celier <celier@adacore.com>
3623 * make.adb (Check): When compiling with -gnatc, recompile if the ALI
3624 file has not been generated for the current source, for example if it
3625 has been generated for the spec, but we are compiling the body.
3627 2010-10-05 Bob Duff <duff@adacore.com>
3629 * xgnatugn.adb: Remove unused procedure.
3631 2010-10-04 Vincent Celier <celier@adacore.com>
3633 * a-direct.adb (Copy_File): Interpret the Form parameter and call
3634 System.OS_Lib.Copy_File to do the work accordingly. Raise Use_Error if
3635 the Form parameter contains an incorrect value for field preserve= or
3637 * a-direct.ads (Create_Directory, Create_Path): Indicate that the Form
3638 parameter is ignored.
3639 (Copy_File): Indicate the interpretation of the Form parameter.
3641 2010-10-04 Vincent Celier <celier@adacore.com>
3643 * make.adb (Gnatmake): When there are no foreign languages declared and
3644 a main in attribute Main of the main project does not exist or is a
3645 source of another project, fail immediately before attempting
3648 2010-10-04 Javier Miranda <miranda@adacore.com>
3650 * exp_disp.ads (Convert_Tag_To_Interface): New function which must be
3651 used to convert a node referencing a tag to a class-wide interface
3653 * exp_disp.adb (Convert_Tag_To_Interface): New function.
3654 (Expand_Interface_Conversion): Replace invocation of
3655 Unchecked_Conversion by new function Convert_Tag_To_Interface.
3656 (Write_DT): Add support for null primitives.
3657 * exp_ch3.adb (Expand_N_Object_Declaration): For tagged type objects,
3658 cleanup code that handles interface conversions and avoid unchecked
3659 conversion of referenced tag components.
3660 * exp_ch5.adb (Expand_N_Assignment_Statement): Code cleanup. Avoid
3661 unrequired conversions when generating a dispatching call to _assign.
3662 * sprint.adb (Write_Itype): Fix wrong output of not null access itypes.
3664 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3666 * exp_ch4.adb (Expand_N_Op_Not): Handle properly both operands when the
3667 parent is a binary boolean operation and the operand is an unpacked
3669 (Build_Boolean_Array_Proc_Call): If the operands are both negations,
3670 the operands of the rewritten node are the operands of the negations,
3671 not the negations themselves.
3673 2010-10-04 Robert Dewar <dewar@adacore.com>
3675 * sem_ch13.adb (Set_Biased): New procedure, now used throughout, adds
3676 name of entity to biased warning msg.
3677 (Analyze_Enumeration_Representation_Clause): Remove attempt to use
3678 biased rep (wrong and never worked anyway).
3680 2010-10-04 Arnaud Charlet <charlet@adacore.com>
3682 * sem_elab.adb: Minor reformatting.
3684 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3686 * exp_ch4.adb (Expand_N_Null): Handle properly the case of a subtype of
3687 an access_to_protected subprogram type, and convert null value into
3688 corresponding aggregate.
3690 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3692 * gnat_ugn.texi: Clarify first point of 7.1.5 about pragma Inline.
3694 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3696 * make.adb (Scan_Make_Arg): Pass -Oxxx switches to the linker as well.
3697 * gnatlink.adb (Gnatlink): Filter out -Oxxx switches for CLI, RTX and
3700 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3702 * sem_ch4.adb (Analyze_Indexed_Component_Form): Remove redundant test
3703 for N_Operator_Symbol.
3704 (Indicate_Name_And_Type): Likewise.
3705 * sem_ch8.adb (Analyze_Subprogram_Renaming): Likewise.
3706 * sem_res.adb (Resolve): Likewise.
3707 * sem_type.adb (Add_One_Interp): Likewise.
3708 (Disambiguate): Likewise.
3710 2010-10-04 Vincent Celier <celier@adacore.com>
3712 * osint.adb (Read_Library_Info_From_Full): If object timestamp is less
3713 than ALI file timestamp, return null.
3715 2010-10-04 Vincent Celier <celier@adacore.com>
3717 * prj-makr.adb (Finalize): Invoke Pretty_Print with Max_Length of 79.
3718 * prj-pp.adb (Pretty_Print): New parameter Max_Line_Length, that
3719 replaces global constant with the same name. When a line is too long,
3720 indent properly the next continuation line.
3721 * prj-pp.ads (Pretty_Print): New parameter Max_Line_Length with a range
3722 from 50 to 255, defaulted to 255, to indicate the maximum length of
3723 lines in the project file.
3725 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3727 * sem_ch7.adb (Analyze_Package_Body_Helper) <Has_Referencer>: New
3728 Check_Subprogram_Ref function and Check_Subprogram_Refs instantiation
3729 of Traverse_Func on it to look for subprogram references in a body.
3730 Call Check_Subprogram_Refs on the body of inlined subprograms at the
3731 outer level and keep clearing the Is_Public flag of subprograms as long
3732 as it returns OK. Do not look at anything else than subprograms once
3733 an inlined subprogram has been seen.
3735 2010-10-04 Javier Miranda <miranda@adacore.com>
3737 * exp_cg.adb (Expand_N_Assignment_Statement): Restore tag check when
3738 the target object is an interface.
3739 * sem_disp.adb (Propagate_Tag): If the controlling argument is an
3740 interface type then we generate an implicit conversion to force
3741 displacement of the pointer to the object to reference the secondary
3742 dispatch table associated with the interface.
3744 2010-10-04 Robert Dewar <dewar@adacore.com>
3746 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Set
3747 Enumeration_Rep_Expr to point to the literal, not the identifier.
3748 (Analyze_Enumeration_Representation_Clause): Improve error message for
3749 size too small for enum rep value
3750 (Analyze_Enumeration_Representation_Clause): Fix size test to use
3751 proper size (RM_Size, not Esize).
3753 2010-10-04 Robert Dewar <dewar@adacore.com>
3755 * s-taprop-vxworks.adb, sem_res.adb: Minor reformatting.
3757 2010-10-04 Javier Miranda <miranda@adacore.com>
3759 * exp_cg.adb (Write_Call_Info): Code clean up.
3761 2010-10-04 Arnaud Charlet <charlet@adacore.com>
3763 * s-taprop-mingw.adb (Create_Task): Initialize Thread_Id field to 0.
3765 2010-10-04 Robert Dewar <dewar@adacore.com>
3767 * exp_cg.adb: Minor code reorganization
3769 * exp_ch5.adb, prj-nmsc.adb: Minor reformatting.
3771 2010-10-04 Bob Duff <duff@adacore.com>
3773 * sem_res.adb (Resolve_Type_Conversion): If a type conversion is needed
3774 to make a qualified expression into a name (syntax-wise), then do not
3775 consider it redundant.
3777 2010-10-04 Thomas Quinot <quinot@adacore.com>
3779 * sem_warn.ads: Fix typo.
3781 2010-10-04 Javier Miranda <miranda@adacore.com>
3783 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Handle suffix in
3785 (Write_Call_Info): Add missing support for renamed primitives.
3787 2010-10-04 Thomas Quinot <quinot@adacore.com>
3789 * exp_ch5.adb (Make_Field_Expr): New subprogram, to factor duplicated
3790 code between Make_Component_List_Assign and Make_Field_Assign.
3792 2010-10-04 Vincent Celier <celier@adacore.com>
3794 * prj-nmsc.adb (Get_Directories): For non extending projects that
3795 declare that they have no sources, do not create a non existing object
3796 or exec directory if builder switch -p is used.
3798 2010-10-04 Sergey Rybin <rybin@adacore.com>
3800 * gnat_ugn.texi (gnatcheck): Change the description of the report file
3803 2010-10-04 Ed Falis <falis@adacore.com>
3805 * s-taprop-vxworks.adb (Is_Task_Context): Import VxWorks intContext to
3806 determine whether Set_True is called from a task or an ISR.
3807 (Set_True): test for being in a task context before trying to
3808 dereference Defer_Abort or Undefer_Abort.
3810 2010-10-04 Robert Dewar <dewar@adacore.com>
3812 * sem_res.adb, sinput-l.adb: Minor reformatting.
3814 2010-10-04 Hristian Kirtchev <kirtchev@adacore.com>
3816 * exp_ch5.adb (Expand_N_Assignment_Statement): Do not generate a tag
3817 check when the target object is an interface since the expression of
3818 the right hand side must only cover the interface.
3820 2010-10-04 Vincent Celier <celier@adacore.com>
3822 * frontend.adb: Set Lib.Parsing_Main_Extended_Source to True before
3823 loading the main source, so that if it is preprocessed and -gnateG is
3824 used, the preprocessed file is written.
3825 * lib.ads (Analysing_Subunit_Of_Main): New global variable to indicate
3826 if a subunit is from the main unit when it is loaded.
3827 * sem_ch10.adb (Analyze_Proper_Body): Set Lib.Analysing_Subunit_Of_Main
3828 to True before loading a subunit.
3829 * sem_ch12.adb (Copy_Generic_Node): Set Lib.Analysing_Subunit_Of_Main
3830 to True when the main is a generic unit before loading one of its
3832 * sinput-l.adb (Load_File): If -gnateG is used, write the preprocessed
3833 file only for the main unit (spec, body and subunits).
3835 2010-10-04 Vincent Celier <celier@adacore.com>
3837 * sinput-l.adb (Load_File): Do not fail when switch -gnateG is
3838 specified and the processed file cannot be written. Just issue a
3839 warning and continue.
3841 2010-10-04 Thomas Quinot <quinot@adacore.com>
3843 * sem_res.adb: Minor reformatting.
3845 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3847 * sem_ch8.adb (Analyze_Subprogram_Renaming): If the renamed operation
3848 is an overridden inherited operation, the desired operation is the
3849 overriding one, which is the alias of the visible one.
3851 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3853 * sem_ch6.adb (Find_Corresponding_Spec): Check that the wrapper body is
3854 present before deleting from the tree, when an inherited function with
3855 a controlling result that returns a null extension is overridden by a
3856 later declaration or body.
3858 2010-10-04 Gary Dismukes <dismukes@adacore.com>
3860 * checks.adb: Update comment.
3862 2010-09-30 Joseph Myers <joseph@codesourcery.com>
3864 * gcc-interface/misc.c (optimize, optimize_size): Undefine as macros
3865 and define as variables.
3866 (gnat_post_options): Set optimize and optimize_size variables.
3868 2010-09-29 Joel Sherrill <joel.sherrill@oarcorp.com>
3870 * g-socket.adb: Move pragma to disable warnings in case multiple errnos
3871 are not defined by target.
3873 2010-09-29 Eric Botcazou <ebotcazou@adacore.com>
3875 * gcc-interface/utils.c (handle_leaf_attribute): Fix long line.
3877 2010-09-28 Richard Henderson <rth@redhat.com>
3879 * gcc-interface/misc.c (gnat_eh_personality): Use
3880 targetm.except_unwind_info.
3882 2010-09-28 Jan Hubicka <jh@suse.cz>
3884 * gcc-interface/utils.c (handle_leaf_attribute): New function.
3885 (gnat_internal_attribute_tables): Add leaf.
3887 2010-09-22 Joseph Myers <joseph@codesourcery.com>
3889 * gcc-interface/lang.opt (-all-warnings, -include-barrier,
3890 -include-directory, -include-directory=, -no-standard-includes,
3891 -no-standard-libraries): New.
3893 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
3895 * gcc-interface/decl.c (gnat_to_gnu_entity): Replace calls to
3896 build_array_type with calls to build_nonshared_array_type.
3897 (substitute_in_type): Likewise.
3898 * gcc-interface/misc.c (LANG_HOOKS_HASH_TYPES): Delete.
3899 (LANG_HOOKS_TYPE_HASH_EQ): Define.
3900 (gnat_post_options): Add 'static' keyword.
3901 (gnat_type_hash_eq): New static function.
3902 * gcc-interface/utils.c (fntype_same_flags_p): New function.
3903 (create_subprog_type): Call it.
3904 (create_index_type): Call build_nonshared_range_type and tidy up.
3905 (create_range_type): Likewise.
3906 * gcc-interface/gigi.h (fntype_same_flags_p): Declare.
3908 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3910 * gcc-interface/trans.c (gnat_pushdecl): Do not do anything special
3912 (end_subprog_body): If the body is a BIND_EXPR, make its associated
3913 block the top-level one.
3914 (build_function_stub): Build a statement group for the whole function.
3915 * gcc-interface/utils.c (Subprogram_Body_to_gnu): If copy-in/copy-out
3916 is used, create the enclosing block early and process first the OUT
3919 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3921 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>: Do
3922 not generate debug info for individual enumerators.
3924 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3926 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Use record
3927 type instead of enumeral type as the dummy type built for the template
3928 type of fat pointers.
3930 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3932 * gcc-interface/gigi.h (get_elaboration_procedure): Declare.
3933 (gnat_zaplevel): Likewise.
3934 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force global
3935 binding level for an external constant.
3936 <E_Constant>: Force the local context and create a fake scope before
3937 translating the defining expression of an external constant.
3938 <object>: Treat external constants at the global level explicitly for
3939 renaming declarations.
3940 (elaborate_expression_1): Force the variable to be static if the
3941 expression is global.
3942 * gcc-interface/trans.c (get_elaboration_procedure): New function.
3943 (call_to_gnu): Use it.
3944 (gnat_to_gnu): Likewise.
3945 <N_Object_Declaration>: Do not test Is_Public to force the creation of
3946 an initialization variable.
3947 (add_decl_expr): Discard the statement if the declaration is external.
3948 * gcc-interface/utils.c (gnat_pushdecl): Do not put the declaration in
3949 the current block if it is external.
3950 (create_var_decl_1): Do not test Is_Public to set TREE_STATIC.
3951 (gnat_zaplevel): New global function.
3953 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3955 * gcc-interface/decl.c (gnat_to_gnu_entity): Explicitly test _LEVEL
3956 variables against zero in all cases.
3957 (rest_of_type_decl_compilation): Likewise.
3958 * gcc-interface/trans.c (gigi): Pass properly typed constants to
3960 (call_to_gnu): Fix formatting.
3961 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
3962 (Exception_Handler_to_gnu_zcx): Likewise.
3963 (gnat_to_gnu) <N_Object_Declaration>: Short-circuit handling of
3965 expressions in presence of a freeze node.
3967 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3969 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Look into
3970 expressions for external constants that are aggregates.
3971 * gcc-interface/utils2.c (build_simple_component_ref): If the field
3972 is an inherited component in an extension, look through the extension.
3974 2010-09-10 Vincent Celier <celier@adacore.com>
3976 * projects.texi: Add documentation for package extensions
3977 Add some documentation for attributes Leading_Library_Options and
3978 Linker'Leading_Switches.
3980 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3982 * exp_util.adb (Expand_Subtype_From_Expression): When expansion is
3983 disabled, compute subtype for all string types.
3985 2010-09-10 Robert Dewar <dewar@adacore.com>
3987 * gnat_ugn.texi: Add documentation for -gnatw.s/S
3988 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
3989 Component_Size): Implement warning on overriden size clause.
3990 (Analyze_Record_Representation_Clause): Implement warning on overriden
3992 * sem_warn.ads, sem_warn.adb (Warn_On_Overridden_Size): New flag
3994 * ug_words: Add entries for -gnatw.s/S.
3995 * vms_data.ads, usage.adb: Add line for -gnatw.s/-gnatw.S.
3996 * gcc-interface/Make-lang.in: Update dependencies.
3998 2010-09-10 Vincent Celier <celier@adacore.com>
4000 * prj-dect.adb (Parse_Package_Declaration): Allow a package to extend
4001 a package with the same name from an imported or extended project.
4002 * prj-proc.adb (Process_Declarative_Items): Process package extensions
4004 2010-09-10 Bob Duff <duff@adacore.com>
4006 * exp_ch6.adb (Expand_Call): Do not perform a null_exclusion check on
4009 2010-09-10 Robert Dewar <dewar@adacore.com>
4011 * sem.adb: Minor reformatting.
4013 2010-09-10 Bob Duff <duff@adacore.com>
4015 * s-os_lib.ads, g-expect.ads: Add comments.
4017 2010-09-10 Robert Dewar <dewar@adacore.com>
4019 * exp_ch5.adb: Minor reformatting.
4021 2010-09-10 Thomas Quinot <quinot@adacore.com>
4023 * scos.ads: Add comments.
4025 2010-09-10 Vincent Celier <celier@adacore.com>
4027 * gnatcmd.adb (Get_Closure): Remove useless invocation of Close.
4029 2010-09-10 Hristian Kirtchev <kirtchev@adacore.com>
4031 * exp_ch7.adb, exp_ch6.adb (Expand_Call): Establish a transient scope
4032 for a controlled build-in-place function call which appears in an
4033 anonymous context. The transient scope ensures that the intermediate
4034 function result is cleaned up after the master is left.
4035 (Make_Build_In_Place_Call_In_Anonymous_Context): Remove the creation
4036 of the transient scope. This is now done in Exand_Call which covers
4037 additional cases other than secondary stack release.
4039 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4041 * sem.adb (Do_Unit_And_Dependents): Add guard.
4043 2010-09-10 Robert Dewar <dewar@adacore.com>
4045 * exp_ch5.adb: Update comments.
4046 * exp_dist.adb: Minor reformatting.
4048 2010-09-10 Robert Dewar <dewar@adacore.com>
4050 * sem_ch13.adb (Check_Record_Representation_Clause): Implement record
4052 * sem_warn.ads, sem_warn.adb (Warn_On_Record_Holes): New warning flag.
4053 * usage.adb: Add lines for -gnatw.h/H
4054 * gnat_ugn.texi: Add documentation for J519-010
4055 Warn on record holes/gaps
4056 * ug_words: Add entries for -gnatw.h/-gnatw.H
4057 * vms_data.ads: Add entries for [NO]AVOIDGAPS
4059 2010-09-10 Gary Dismukes <dismukes@adacore.com>
4061 * sem_ch6.adb: Update comment.
4063 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4065 * sem_ch3.adb (Build_Derived_Private_Type): Mark generated declaration
4066 of full view analyzed after analyzing the corresponding record
4067 declaration, to prevent spurious name conflicts with original
4070 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
4072 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): In the VM case,
4073 just issue a warning, but continue with the normal processing.
4075 2010-09-10 Robert Dewar <dewar@adacore.com>
4077 * exp_attr.adb, prj-nmsc.adb, sem_ch4.adb, sem_res.adb: Minor
4080 2010-09-10 Thomas Quinot <quinot@adacore.com>
4082 * exp_dist.adb (Build_From_Any_Call, Build_To_Any_Call,
4083 Build_TypeCode_Call): For a subtype inserted for the expansion of a
4084 generic actual type, go to the underlying type of the original actual
4087 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4089 * exp_ch5.adb (Expand_Assign_Array_Loop): In CodePeer mode, place a
4090 guard around the increment statement, to prevent an off-by-one-value
4091 on the last iteration.
4093 2010-09-10 Vincent Celier <celier@adacore.com>
4095 * sem_aggr.adb, exp_prag.adb, sem_ch3.adb, exp_attr.adb,
4096 sem_res.adb, sem_attr.adb, sem_elab.adb, sem_ch4.adb, exp_disp.adb,
4097 exp_aggr.adb, exp_dist.adb: Change all mentions of "at run-time" to
4098 "at run time" in comments and error/warning messages.
4100 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4102 * exp_cg.adb: Handle properly bodies without specs.
4104 2010-09-10 Emmanuel Briot <briot@adacore.com>
4106 * prj-nmsc.adb (Find_Source_Dirs): When a source directory is not
4107 present, and the user requested to either ignore this or display a
4108 warning (as opposed to an error), we still need to register the
4111 2010-09-10 Robert Dewar <dewar@adacore.com>
4113 * errout.adb: Remove tests of Parsing_Main_Subunit, since this test is
4114 now done in In_Extended_Main_Source_Unit.
4115 * errout.ads (Compiler_State[_Type]): Moved from Errout to Lib
4116 (Parsing_Main_Subunit): Moved from Errout to Lib and renamed
4117 as Parsing_Main_Extended_Source.
4118 * frontend.adb: Set Parsing_Main_Extended_Source True for parsing main
4120 * lib-load.adb (Load_Unit): Add PMES parameter
4121 Set PMES appropriately in all calls to Load_Unit
4122 * lib-load.ads (Load_Unit): Add PMES parameter
4123 * lib.adb (In_Extended_Main_Source_Unit): When called with
4124 Compiler_State set to Parsing, test new flag
4125 Compiling_Main_Extended_Source.
4126 * lib.ads (Compiler_State[_Type]): Moved from Errout to Lib
4127 (Parsing_Main_Subunit): Moved from Errout to Lib and renamed
4128 as Parsing_Main_Extended_Source
4129 * par-load.adb (Load): Set PMES properly in call to Load_Unit
4131 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4133 * exp_cg.adb: Use proper entity to handle overloads.
4134 * sem_res.adb (Check_Parameterless_Call): An operator node without
4135 actuals cannot be a call, and must be treated as a string.
4137 2010-09-10 Robert Dewar <dewar@adacore.com>
4139 * frontend.adb: Minor reformatting.
4141 2010-09-10 Robert Dewar <dewar@adacore.com>
4143 * par-ch4.adb (P_Conditional_Expression): Use P_Condition for condition
4144 * par-ch5.adb (P_Condition): Move from body to spec
4145 * par.adb (Ch5.P_Condition): Move from body to spec
4147 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4149 * exp_cg.adb (Write_Call_Info): If a type that has been registered in
4150 the call table is private, use its full view to generate information
4153 2010-09-10 Jose Ruiz <ruiz@adacore.com>
4155 * exp_cg.adb (Is_Predefined_Dispatching_Operation): When trying the
4156 pattern matching to detect predefined primitive operations take into
4157 account that there can be an extra suffix related to body-nested
4160 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4162 * s-pooglo.ads: Add overriding indicators.
4164 2010-09-10 Vincent Celier <celier@adacore.com>
4166 * vms_data.ads: Add new GNAT BIND qualifiers /32_MALLOC (for -H32) and
4167 /64_MALLOC (for -H64).
4169 2010-09-10 Robert Dewar <dewar@adacore.com>
4171 * errout.adb (Error_Msg_Internal): Test Parsing_Main_Subunit flag
4172 (Error_Msg_NW): Test Parsing_Main_Subunit flag
4173 * errout.ads (Parsing_Main_Subunit): New flag
4174 * lib-load.adb (Load_Unit): Set Parsing_Main_Subunit flag
4175 * par-ch6.adb: Minor style fix (remove redandant parentheses)
4176 * par-ch9.adb: Minor style fix (remove redundant parens)
4177 * par-load.adb: (Load): Deal with setting Parsing_Main_Subunit
4179 2010-09-10 Vincent Celier <celier@adacore.com>
4181 * make.adb (Create_Binder_Mapping_File): Remove procedure. Replaced by
4182 function of the same name in Makeutl.
4183 (Gnatmake): Call function Create_Binder_Mapping_File in Makeutl, instead
4184 of removed procedure when creating a binder mapping file.
4185 * makeutl.adb (Create_Binder_Mapping_File): New function. Was a
4187 * makeutl.ads (Create_Binder_Mapping_File): New function
4189 2010-09-10 Jose Ruiz <ruiz@adacore.com>
4191 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Add the "__" scope
4192 separator when trying the pattern matching to detect predefined
4193 primitive operations.
4195 2010-09-10 Robert Dewar <dewar@adacore.com>
4197 * bindgen.adb, atree.adb: Minor reformatting.
4199 2010-09-10 Ben Brosgol <brosgol@adacore.com>
4201 * ug_words, gnat_ugn.texi: Revised "Transitioning to 64-Bit GNAT for
4204 2010-09-10 Doug Rupp <rupp@adacore.com>
4206 * bindgen.adb: Minor comment fix for -H switch.
4208 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4210 * exp_cg.adb (Register_CG_Node): Determine enclosing subprogram or
4211 library unit now, by traversing tree before context is expanded.
4212 (Write_Call_Info): Use enclosing unit name directly.
4213 * exp_ch9.adb (Expand_N_Accept_Statement): Attach generated block to
4214 tree earlier, to ensure that subsequent declarations are analyzed in a
4215 connected structure.
4216 * exp_intr.adb (Expand_Unc_Deallocation): Ditto for generated statement
4219 2010-09-10 Robert Dewar <dewar@adacore.com>
4221 * symbols-processing-vms-alpha.adb: Minor reformatting.
4223 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
4225 * bindgen.adb (Gen_Adainit_Ada): In .NET, don't call
4226 __gnat_install_handler in case the binder is called with -n.
4228 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4230 * exp_ch6.adb (Make_Build_In_Place_In_Object_Declaration): Use proper
4231 sloc for renaming declaration and set Comes_From_Source properly to
4232 ensure that references are properly generated for an object declaration
4233 that is built in place.
4235 2010-09-10 Tristan Gingold <gingold@adacore.com>
4237 * symbols-processing-vms-alpha.adb: Allow gnatsym to work as a cross
4239 * gcc-interface/Make-lang.in: Install gnatsym when cross compiling.
4240 * gcc-interface/Makefile.in: gnat.hlp is now generated by
4243 2010-09-10 Bob Duff <duff@adacore.com>
4245 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): For things like ""X(J)
4246 := ...;", remove side effects from the right-hand side, because they
4247 might affect the value of the left-hand side, but the left-hand side is
4248 first READ (so we can do shifting and masking) and then written back,
4249 which would cause the side effects to be incorrectly overwritten.
4251 2010-09-10 Robert Dewar <dewar@adacore.com>
4253 * sem_ch4.adb: Minor reformatting.
4254 * exp_ch6.adb: Add comment on testing limited on full type
4255 * gnat_rm.texi: Add documentation on Pure_Function.
4257 2010-09-10 Vincent Celier <celier@adacore.com>
4259 * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
4260 as a source of another project and of another language.
4262 2010-09-10 Robert Dewar <dewar@adacore.com>
4264 * exp_ch3.adb (Expand_N_Object_Declaration): Defend against previous
4266 * freeze.adb (Check_Unsigned_Type): Ditto.
4267 * sem_aggr.adb (Resolve_Aggr_Expr): Ditto.
4268 * sem_ch3.adb (Convert_Scalar_Bounds): Ditto.
4269 (Set_Scalar_Range_For_Subtype): Ditto.
4270 * sem_eval.adb (Subtypes_Statically_Match): Ditto.
4272 2010-09-10 Robert Dewar <dewar@adacore.com>
4274 * repinfo.adb (List_Type_Info): List Small and Range for fixed-point
4276 * sprint.adb (Write_Ureal_With_Col_Check_Sloc): Use square brackets
4277 rather than parens for fixed constants.
4278 * sprint.ads: Use square brackets rather than parens for fixed constants
4279 * urealp.adb (UR_Write): Use square brackets rather than parens
4280 (UR_Write): Add Brackets argument
4281 (UR_Write): Add many more special cases to output literals
4282 * urealp.ads (UR_Write): Use square brackets rather than parens
4283 (UR_Write): Add Brackets argument
4285 2010-09-10 Robert Dewar <dewar@adacore.com>
4287 * sem_ch4.adb: Minor reformatting.
4289 2010-09-10 Richard Guenther <rguenther@suse.de>
4291 * gcc-interface/utils.c (create_index_type): Use build_range_type.
4293 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4295 * vms_cmds.ads: New.
4297 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
4299 * exp_dbug.ads: Mention enhanced encoding for array types.
4301 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
4303 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Size clause are
4304 unsupported in VM targets. Display a warning in this case.
4306 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4308 * sprint.adb (Sprint_Node_Actual, case N_Derived_Type_Definition): Do
4309 not reset Sloc when printing keyword "new".
4311 2010-09-10 Vincent Celier <celier@adacore.com>
4313 * gnatcmd.adb (GNATCmd): Put the command line in environment variable
4314 GNAT_DRIVER_COMMAND_LINE.
4316 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4318 * sem.adb (Do_Unit_And_Dependents): if Withed_Body is set on a context
4319 clause, process the body at once.
4321 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4323 * sem_res.adb (Resolve_Type_Conversion): Do not warn on a redundant
4324 conversion is the expression is a qualified expression used to
4325 disambiguate a function call.
4327 2010-09-10 Vincent Celier <celier@adacore.com>
4329 * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
4330 as a source of another project and of another language.
4332 2010-09-10 Robert Dewar <dewar@adacore.com>
4334 * prj-util.adb: Minor reformatting.
4336 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
4338 * exp_disp.adb: Minor reformatting.
4340 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4342 * sem_prag.adb (Analyze_Pragma): Ignore Inline_Always pragma in
4345 2010-09-10 Thomas Quinot <quinot@adacore.com>
4347 * sem_res.adb: Minor reformatting.
4348 * exp_ch9.adb, rtsfind.ads, exp_ch4.adb, exp_ch3.adb: Do not hardcode
4349 magic constants for task master levels (instead, reference
4350 named numbers from System.Tasking).
4352 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
4354 * gnatvsn.ads (Ver_Prefix): New constant string.
4355 * bindgen.adb (Gen_Output_File_Ada): Use it in lieu of hardcoded value.
4356 (Gen_Output_File_C): Likewise.
4357 * g-comver.adb (Ver_Prefix): Add cross-reference to Gnatvsn.Ver_Prefix
4360 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4362 * sem.adb (Walk_Library_Items): Do not traverse children of the main
4363 unit, to prevent spurious circularities in the walk order.
4364 (Depends_On_Main): Use elsewhere to prevent circularities when the body
4365 of an ancestor of the main unit depends on a child of the main unit.
4367 2010-09-10 Robert Dewar <dewar@adacore.com>
4369 * gnatlink.adb, prj-ext.adb, prj-util.adb, s-tporft.adb,
4370 sem_ch3.adb: Minor reformatting.
4372 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4374 * sem_ch3.adb (Derive_Subprograms): An interface primitive operation
4375 that is a renaming must be derived like any other primitive operation,
4376 the renamed operation is not relevant to the derivation.
4378 2010-09-10 Robert Dewar <dewar@adacore.com>
4380 * sem_aux.ads: Add comment for Is_Inherently_Limited_Type.
4381 * checks.adb: Minor reformatting.
4383 2010-09-10 Robert Dewar <dewar@adacore.com>
4385 * gnat_ugn.texi: Add section on intent of style checking options.
4387 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4389 * xref_lib.adb (Get_Full_Type): Fix handling of 'a' char.
4391 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4393 * sem_ch3.adb: Improve error message on derivation from class-wide type
4395 2010-09-10 Steve Baird <baird@adacore.com>
4397 * gnat1drv.adb (Adjust_Global_Switches): Enable Expression_With_Actions
4398 generation when Generate_SCIL is True.
4400 2010-09-10 Geert Bosch <bosch@adacore.com>
4402 * gnatlink.adb (Check_ Existing_Executable): New procedure for checking
4403 validity of executable name and removing any existing executable
4404 (Gnatlink): Call Check_Existing_Executable.
4406 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4408 * s-tporft.adb, s-taskin.ads (Register_Foreign_Thread): Move
4409 initialization of Task_Alternate_Stack here, cleaner since in case of
4410 ranvescar, Restricted_Ada_Task_Control_Block is not initialized
4413 2010-09-10 Thomas Quinot <quinot@adacore.com>
4415 * s-fileio.adb, a-dirval.adb: Minor reformatting.
4417 2010-09-10 Emmanuel Briot <briot@adacore.com>
4419 * prj-util.adb (Executable_Of): Fix CE when the project does not
4420 contain a Builder package.
4422 2010-09-10 Vincent Celier <celier@adacore.com>
4424 * prj-ext.adb (Initialize_Project_Path): Add <prefix>/lib/gpr/<target>
4425 to the project path, if Prefix and Target_Name are defined.
4426 * prj-tree.ads (Project_Node_Tree_Data): New component Target_Name
4428 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4430 * checks.adb (Ensure_Valid): If the expression is a boolean expression
4431 or short-circuit operation, do no emit a validity check: only the
4432 elementary operands of the expression need checking.
4434 2010-09-10 Ben Brosgol <brosgol@adacore.com>
4436 * gnat_rm.texi: Document Short_Descriptors.
4438 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4440 * s-taprop-linux.adb, s-taskin.ads (Task_Alternate_Stack): Default
4441 initialize to Null_Address.
4442 (Enter_Task): Do not set up an alternate stack for foreign threads.
4444 2010-09-10 Robert Dewar <dewar@adacore.com>
4446 * opt.adb (Short_Descriptors): New flag
4447 (Short_Descriptors_Config): New flag
4448 * opt.ads (Short_Descriptors): New flag
4449 (Short_Descriptors_Config): New flag
4450 * par-prag.adb: Add dummy entry for Short_Descriptors pragma
4451 * sem_prag.adb (Set_Mechanism_Value): Deal with Short_Descriptors.
4452 (Analyze_Pragma): Implement Short_Descriptors pragma
4453 * snames.ads-tmpl: Add entry for Short_Descriptors pragma
4455 2010-09-10 Emmanuel Briot <briot@adacore.com>
4457 * prj-util.adb, prj-util.ads (Executable_Of): Take into account the
4458 project's Executable_Suffix.
4460 2010-09-10 Robert Dewar <dewar@adacore.com>
4462 * g-pehage.ads: Minor reformatting
4464 * gnat_ugn.texi: Clarifying comment on -gnatyc
4465 * exp_ch6.adb (Expand_N_Subprogram_Body): Reset Is_Pure if limited
4468 2010-09-10 Tristan Gingold <gingold@adacore.com>
4470 * Make-generated.in (gnat.hlp): New rule.
4472 2010-09-10 Emmanuel Briot <briot@adacore.com>
4474 * prj-util.adb, prj-util.ads (Executable_Of): New parameter
4477 2010-09-10 Robert Dewar <dewar@adacore.com>
4479 * einfo.adb: Minor code cleanup: Add assertion to
4480 Set_Corresponding_Protected_Entry.
4482 2010-09-10 Bob Duff <duff@adacore.com>
4484 * g-pehage.ads, g-pehage.adb (Produce): Add a new flag to allow sending
4485 the output to standard output.
4487 2010-09-09 Vincent Celier <celier@adacore.com>
4489 * gnat_ugn.texi: Add documentation for new gnatmake switch
4491 * make.adb (Map_File): New global variable to store the value of switch
4493 (Gnatmake): Add switch -M to gnatlink if switch --create-map-file has
4495 (Scan_Make_Arg): Recognize switch --create-map-file
4496 * makeutl.ads (Create_Map_File_Switch): New constant string for new
4497 gnatmake and gprbuild switch --create-map-file.
4499 2010-09-09 Robert Dewar <dewar@adacore.com>
4501 * sinput-p.ads: Minor comment update.
4503 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4505 * s-tpobop.adb, s-taenca.adb (Wait_For_Completion_With_Timeout): Reset
4506 Entry_Call.State if needed so that the call is marked as cancelled by
4507 Check_Pending_Actions_For_Entry_Call.
4508 (Timed_Protected_Entry_Call): Adjust calls to Defer/Under_Abort, since
4509 this procedure may be called from a controlled operation
4510 (Initialize/Finalize).
4512 2010-09-09 Vadim Godunko <godunko@adacore.com>
4514 * impunit.adb: Correct spelling of package's name in the comment.
4516 2010-09-09 Robert Dewar <dewar@adacore.com>
4518 * gnatcmd.adb, gnatlink.adb, sem_ch12.adb, sem_eval.adb, sinput-p.adb:
4521 2010-09-09 Robert Dewar <dewar@adacore.com>
4523 * impunit.adb: Add entry for a-izteio.
4524 * checks.adb: Add comment.
4525 * debug.adb, exp_disp.adb: Minor reformatting.
4526 * exp_dbug.ads: Minor reformatting throughout (pack block comments).
4528 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4530 * sem_eval.adb (Is_Same_Value): Two occurrences of the same
4531 discriminant cannot be assumed to be the same value because they may
4532 refer to bounds of a component of two different instances of a
4535 2010-09-09 Gary Dismukes <dismukes@adacore.com>
4537 * checks.adb (Apply_Arithmetic_Overflow_Check): When converting the
4538 operands of an operator to the type of an enclosing conversion, rewrite
4539 the operator so the conversion can't be flagged as redundant.
4540 Remove useless assignments to Typ and Rtyp.
4542 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
4544 * gnat_ugn.texi: Fix another long line.
4546 2010-09-09 Bob Duff <duff@adacore.com>
4548 * sem_warn.adb (Output_Reference_Error): Don't warn for renames read
4551 2010-09-09 Matthew Heaney <heaney@adacore.com>
4553 * a-convec.adb, a-coinve.adb (Clear, Delete, Delete_Last, Finalize,
4554 Merge, Insert, Insert_Space, Move, Reserve_Capacity, Generic_Sorting,
4555 Replace_Element, Reverse_Elements, Swap): Change exception message to
4556 correctly indicate kind of tampering (cursor or element).
4557 * a-cdlili.adb, a-cidlli.adb (Clear, Delete, Delete_First, Delete_Last,
4558 Merge, Generic_Sorting, Insert, Move, Reverse_Elements, Splice,
4559 Swap_Links, Replace_Element, Swap): Ditto.
4560 * a-coorse.adb, a-ciorse.adb (Include, Replace, Replace_Element): Ditto
4561 * a-coorma.adb, a-ciorma.adb (Include, Replace, Replace_Element): Ditto
4562 * a-coormu.adb, a-ciormu.adb (Replace_Element): Ditto
4563 * a-chtgke.adb (Delete_Key_Sans_Free, Generic_Conditional_Insert,
4564 Generic_Replace_Element): Ditto
4565 * a-chtgop.adb (Clear, Move, Reserve_Capacity): Ditto
4566 * a-cohama.adb, a-cihama.adb (Delete, Include, Replace,
4567 Replace_Element): Ditto.
4568 * a-cohase.adb, a-cihase.adb (Delete, Difference, Intersection,
4569 Symmetric_Difference, Union, Include, Replace): Ditto
4571 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4573 * sprint.adb (Write_Id): If the parent node is an expanded name, check
4574 that its entity_or_associated_node is an entity before writing it out.
4575 * exp_disp.adb (Make_Tags); if a type is declared in C++ and has no
4576 constructors, there is no need for a dispatch table pointer because the
4577 table is fully inherited from the C++ code.
4579 2010-09-09 Thomas Quinot <quinot@adacore.com>
4581 * projects.texi: Fix wrong identifiers on package end lines in project
4583 * exp_ch6.adb: Minor reformatting.
4585 2010-09-09 Tristan Gingold <gingold@adacore.com>
4587 * gnatcmd.adb, vms_conv.ads: Extract Command_Type.
4589 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
4591 * gnat_ugn.texi: Fix description of -O3 optimization level.
4593 2010-09-09 Yannick Moy <moy@adacore.com>
4595 * a-cihama.adb, a-cohama.adb: Fix comments.
4597 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4599 * i-cexten.ads: Add comments.
4600 (Signed_128): New type, used by some C bindings.
4601 * debug.adb: Update comment.
4603 2010-09-09 Sergey Rybin <rybin@adacore.com>
4605 * gnat_ugn.texi: For ASIS tools (gnatpp, gnatcheck, gnatelim,
4606 gnatmetric and gnatstub) add a note that '-gnat05' should be used if
4607 the tool should process Ada 2005 sources.
4609 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4611 * sem_ch12.adb (Remove_Parent): If the scope containing the child
4612 instance is a block, examine the enclosing scope to determine if it is
4615 2010-09-09 Doug Rupp <rupp@adacore.com>
4617 * sem_prag.adb (pragma Ident): Pass --identification= vice
4619 * gnatlink.adb (Linker_Options): Look for --identification= vice
4622 2010-09-09 Gary Dismukes <dismukes@adacore.com>
4624 * exp_attr.adb (Expand_N_Attribute_Reference, case Attribute_Old): When
4625 inserting and analyzing the object declaration for the temporary object
4626 created to hold a 'Old value, push the scope for the subprogram where
4627 the object is inserted, so that its Scope (and that of related objects)
4628 will be set properly.
4630 2010-09-09 Vincent Celier <celier@adacore.com>
4632 * prj.adb (Get_Object_Directory): Return object directory display name
4633 * adaint.c (__gnat_get_file_names_case_sensitive): When environment
4634 variable GNAT_FILE_NAME_CASE_SENSITIVE has a value of "0" or "1",
4635 return this value, otherwise return the default for the platform.
4637 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4639 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
4640 dependencies. Remove handling of gnatlbr.
4641 Do not remove s-stratt-xdr for the run-time when installing.
4643 2010-09-09 Robert Dewar <dewar@adacore.com>
4645 * sem_attr.adb: Minor reformatting.
4647 2010-09-09 Thomas Quinot <quinot@adacore.com>
4649 * socket.c (__gnat_socket_ioctl): On Darwin, the req parameter is an
4650 unsigned long, not an int.
4652 2010-09-09 Vincent Celier <celier@adacore.com>
4654 * make.adb, mlib-prj.adb, prj.adb, prj-nmsc.adb, mlib-tgt.adb,
4655 prj-conf.adb, prj-env.adb: Use Display_Name instead of Name whenever
4656 we are not checking for equality of path or file names.
4658 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4660 * exp_util.adb (Remove_Side_Effects): If the expression is a packed
4661 array reference, reset the Analyzed flag so that it is properly
4662 expanded when the resulting object declaration is analyzed.
4664 2010-09-09 Vincent Celier <celier@adacore.com>
4666 * sinput-p.adb (Source_File_Is_Subunit): Return False if X is
4669 2010-09-09 Ramon Fernandez <fernandez@adacore.com>
4671 * sysdep.c: The wrSbc8548 BSP in MILS doesn't know anything about the
4672 VX_SPE_TASK option, so disable it.
4674 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4676 * sem.adb (Walk_Library_Items): Traverse context of subunits of the
4678 (Is_Subunit_Of_Main): Handle null nodes properly.
4680 2010-09-09 Robert Dewar <dewar@adacore.com>
4682 * par-ch2.adb: Update comments.
4684 2010-09-09 Ben Brosgol <brosgol@adacore.com>
4686 * gnat_rm.texi: Minor wordsmithing of section on pragma Ordered.
4688 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4690 * par-ch2.adb (Scan_Pragma_Argument_Association): In CodePeer mode,
4691 do not generate an error for compatibility with legacy code.
4692 ignored when generating SCIL.
4693 * sem_attr.adb (Resolve_Attribute): Ignore AI-229 in CodePeer mode.
4695 2010-09-09 Thomas Quinot <quinot@adacore.com>
4697 * s-strxdr.adb, gnat_rm.texi, s-stratt-xdr.adb, s-stratt.ads: Rename
4698 s-strxdr.adb to s-stratt-xdr.adb
4700 2010-09-09 Robert Dewar <dewar@adacore.com>
4702 * ali-util.adb (Obsolescent_Check): Removed.
4703 * gprep.adb (Obsolescent_Check): Removed.
4704 Remove Obsolescent_Check parameter in Scng instantiation
4705 * prj-err.adb (Obsolescent_Check): Removed.
4706 * prj-err.ads (Obsolescent_Check): Removed.
4707 Remove Obsolescent_Check parameter in Scng instantiation
4708 * scans.ads (Based_Literal_Uses_Colon): New flag
4709 * scn.adb (Obsolscent_Check_Flag): Removed
4710 (Obsolscent_Check): Removed
4711 (Set_Obsolescent_Check): Removed
4712 (Post_Scan): Add handling for obsolescent features
4713 * scn.ads (Obsolscent_Check): Removed
4714 (Set_Obsolescent_Check): Removed
4715 (Post_Scan): Can no longer be inlined
4716 Remove Obsolescent_Check from instantiation of Scng
4717 * scng.adb (Nlit): Set Based_Literal_Uses_Colon
4718 (Nlit): Remove handling of obsolescent check
4719 (Scan, case '%'): Remove handling of obsolescent check
4720 (Scan, case '|'): Call Post_Scan
4721 (Scan, case '!'): Remove handling of obsolescent check, call Post_Scan
4722 * scng.ads Remove Obsolescent_Check argument from Scng generic
4723 (Post_Scan): Now called for Tok_Vertical_Bar
4724 * sinput-l.adb: Remove calls to Set_Obsolescent_Check
4726 2010-09-09 Doug Rupp <rupp@adacore.com>
4728 * gnatlbr.adb: Removed.
4729 * gnat_rm.texi, ug_words, gnat_ugn.texi: Remove mention of gnatlbr.
4731 2010-09-09 Robert Dewar <dewar@adacore.com>
4733 * sem_res.adb (Resolve_Type_Conversion): Catch more cases of redundant
4736 2010-09-09 Vincent Celier <celier@adacore.com>
4738 * gnatlbr.adb: Remove redundant conversions.
4740 2010-09-09 Vincent Celier <celier@adacore.com>
4742 * prj-proc.adb: Minor comment spelling error fix.
4743 * osint.ads (Env_Vars_Case_Sensitive): Use function
4744 Get_Env_Vars_Case_Sensitive, not Get_File_Names_Case_Sensitive to
4747 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4749 * sem_res.adb (Resolve_Equality_Op): Implement Ada2012 rule for
4750 resolution of conditional expressions whose dependent expressions are
4751 anonymous access types.
4753 2010-09-09 Robert Dewar <dewar@adacore.com>
4755 * a-ststio.adb: Minor code reorganization.
4756 * s-direio.adb, prj.adb, prj-nmsc.adb, sem_type.adb: Remove redundant
4758 * types.ads: Minor reformatting.
4759 * binde.adb, vms_conv.adb, gnatls.adb, s-strxdr.adb, uintp.adb: Remove
4760 redundant conversions.
4761 * output.adb: Minor reformatting.
4762 * sem_ch8.adb (Find_Type): Test for redundant base applies to user
4764 * opt.ads: Add pragma Ordered for Verbosity_Level.
4765 * prj.ads: Add pragma Ordered for type Verbosity.
4767 2010-09-09 Vincent Celier <celier@adacore.com>
4769 * osint.adb (Canonical_Case_File_Name): Use procedure To_Lower in
4771 (Canonical_Case_Env_Var_Name): Ditto
4773 2010-09-09 Bob Duff <duff@adacore.com>
4775 * g-pehage.adb (Allocate): Initialize the allocated elements of IT.
4777 2010-09-09 Robert Dewar <dewar@adacore.com>
4779 * cstand.adb: Mark Boolean and Character types as Ordered
4780 * einfo.adb (Has_Pragma_Ordered): New flag
4781 * einfo.ads (Has_Pragma_Ordered): New flag
4782 * g-calend.ads: Mark Day_Name as Ordered
4783 * opt.ads: Mark Ada_Version_Type as Ordered
4784 (Warn_On_Unordered_Enumeration_Type): New flag
4785 * par-prag.adb: Add procdessing for pragma Ordered
4786 * s-ficobl.ads (Read_File_Mode): New subtype
4787 * s-fileio.adb: Use Read_File_Mode instead of explicit ranges
4788 * s-taskin.ads: Mark Entry_Call_State as ordered
4789 * sem_ch3.adb (Build_Derived_Enumeration_Type): Inherit
4791 * sem_ch6.ads: Mark Conformance_Type as Ordered
4792 * sem_prag.adb: Implement pragma Ordered
4793 * sem_res.adb (Bad_Unordered_Enumeration_Reference): New function
4794 (Resolve_Comparison_Op): Diagnose unordered comparison
4795 (Resolve_Range): Diagnose unordered range
4796 * sem_warn.adb (Warn_On_Unordered_Enumeration_Type): New flag (from
4798 * snames.ads-tmpl: Add entry for pragma Ordered
4799 * style.ads (Check_Enumeration_Subrange): Removed
4800 * styleg.adb (Check_Enumeration_Subrange): Removed
4801 * styleg.ads (Check_Enumeration_Subrange): Removed
4802 * stylesw.adb: Remove handling of -gnatyE switch
4803 * stylesw.ads: (Style_Check_Enumeration_Subranges): Removed
4804 * vms_data.ads: Remove -gnatyE entries
4805 Add -gnatw.u entries
4806 * ug_words: Entries for -gnatw.u and -gnatw.U
4807 * gnat_ugn.texi: Document -gnatw.u/-gnatw.U switches
4808 * gnat_rm.texi: Document pragma Ordered.
4809 * s-tasren.adb: Avoid unnecessary comparison on unordered enumeration.
4810 * s-tpobop.adb: Remove comparison on unordered enumeration type.
4812 2010-09-09 Vincent Celier <celier@adacore.com>
4814 * adaint.c: New function __gnat_get_env_vars_case_sensitive, returns 0
4815 for VMS and Windows, and 1 for all other platforms.
4816 * adaint.h: New function __gnat_get_env_vars_case_sensitive
4817 * osint.ads, osint.adb (Canonical_Case_Env_Var_Name): New procedure.
4818 * prj-ext.adb (Add): Call Canonical_Case_Env_Var_Name instead of
4819 Canonical_Case_File_Name, as we are dealing with environment variables,
4822 2010-09-09 Robert Dewar <dewar@adacore.com>
4824 * sem_util.adb: Minor reformatting
4826 2010-09-09 Vincent Celier <celier@adacore.com>
4828 * vms_data.ads: Add documentation for S_Make_Single.
4830 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4832 * sem_util.adb (Same_Object): include formal parameters.
4834 2010-09-09 Vincent Celier <celier@adacore.com>
4836 * make.adb (Queue): New package implementing a new impementation of the
4837 queue, taking into account the new switch --single-compile-per-obj-dir.
4838 * makeutl.ads (Single_Compile_Per_Obj_Dir_Switch): New constant String
4839 for gnatmake and gprbuild new switch --single-compile-per-obj-dir.
4840 * opt.ads (One_Compilation_Per_Obj_Dir): New Boolean flag, defauted to
4842 * switch-m.adb (Scan_Make_Switches): Take into account new gnatmake
4843 switch --single-compile-per-obj-dir.
4844 * vms_data.ads: Add qualifier SINGLE_COMPILE_PER_OBJ_DIR for gnatmake
4845 switch --single-compile-per-obj-dir.
4846 * gnat_ugn.texi: Add documentation for new gnatmake switch
4847 --single-compile-per-obj-dir.
4849 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4851 * einfo.adb, einfo.ads: Clarify use of Corresponding_Protected_Entry.
4853 2010-09-09 Javier Miranda <miranda@adacore.com>
4855 * sem_ch3.adb (Is_Progenitor): Relocated to sem_type.
4856 (Replace_Type): Code cleanup.
4857 * sem_type.ads, sem_type.adb (Is_Progenitor): Relocated from sem_ch3
4859 2010-09-09 Thomas Quinot <quinot@adacore.com>
4861 * exp_ch8.adb: Minor reformatting.
4863 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4865 * exp_ch9.adb, einfo.adb, einfo.ads: New attribute
4866 Corresponding_Protected_Entry.
4868 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4870 * exp_ch3.adb (Build_Untagged_Equality): Do not set alias of implicit
4871 inequality, it is always rewritten as the negation of the corresponding
4873 * exp_ch8.adb (Expand_N_Subprogram_Renaming): If the subprogram renames
4874 the predefined equality of an untagged record, create a body at the
4875 point of the renaming, to capture the current meaning of equality for
4878 2010-09-09 Robert Dewar <dewar@adacore.com>
4880 * sem.adb, sem_warn.adb: Minor reformatting.
4882 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4884 * sem_ch6.adb: Improve error message on untagged equality.
4885 * sem.adb (Semantics): Include subprogram bodies that act as spec.
4887 2010-09-09 Javier Miranda <miranda@adacore.com>
4889 * sem_ch13.adb, exp_ch13.adb: Undo previous change, unneeded.
4891 2010-09-09 Robert Dewar <dewar@adacore.com>
4893 * sem_ch13.adb, sem_ch6.adb, exp_ch3.adb: Minor reformatting.
4895 2010-09-09 Robert Dewar <dewar@adacore.com>
4897 * einfo.adb (Is_Aggregate_Type): New function.
4898 * einfo.ads (Aggregate_Kind): New enumeration subtype
4899 (Is_Aggregate_Type): New function.
4900 * sem_type.adb (Is_Array_Class_Record_Type): Removed, replaced by
4903 2010-09-09 Robert Dewar <dewar@adacore.com>
4905 * exp_ch11.adb, frontend.adb, sem_attr.adb, sem_ch10.adb, sem_ch3.adb,
4906 sem_ch4.adb, sem_ch9.adb, sem_res.adb: Use Restriction_Check_Needed
4908 * restrict.ads, restrict.adb: Ditto.
4909 (Restriction_Check_Needed): New function
4911 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4913 * exp_ch9.ads (Find_Master_Scope): New function, extracted from
4914 Build_Master_Entity, to find the proper scope for the master entity of
4915 a type that may contain tasks, in the presence of transient scopes.
4916 * exp_ch9.adb (Build_Master_Entity) Use new function.
4917 * exp_ch3.adb (Build_Class_Wide_Master): ditto.
4919 2010-09-09 Vincent Celier <celier@adacore.com>
4921 * prj-attr.adb: Add new attributes Leading_Library_Options and
4922 Linker'Leading_Switches.
4923 * snames.ads-tmpl: Add new standard names Leading_Library_Options and
4926 2010-09-09 Javier Miranda <miranda@adacore.com>
4928 * sem_ch3.adb (Derive_Subprogram): The code that checks if a
4929 dispatching primitive covers some interface primitive is incomplete.
4930 Replace such code by the invocation of a new subprogram that provides
4932 * sem_ch6.ads (Is_Interface_Conformant): Add missing documentation.
4933 * sem_ch6.adb (Check_Missing_Return): Minor reformating
4934 (Check_Convention): Complete if-statement conditition when reporting
4935 errors (to avoid assertion failure).
4936 * sem_ch13.adb (Make_Null_Procedure_Specs): This routine was previously
4937 located in exp_ch3. Relocated inside Analyze_Freeze_Entity.
4938 (Analyze_Freeze_Entity): Invoke routine that adds the spec of non
4939 overridden null interface primitives.
4940 * sem_type.adb (Is_Ancestor): If the parent of the partial view of a
4941 private type is an interface then use the parent of its full view to
4942 climb to its ancestor type.
4943 * sem_disp.ads, sem_disp.adb (Covers_Some_Interface): New subprogram.
4944 (Check_Dispatching_Operation): Extend assertion to handle wrappers of
4945 null interface primitives.
4946 (Is_Null_Interface_Primitive): New subprogram.
4947 * exp_ch3.adb (Make_Null_Procedure_Specs): Removed.
4948 (Expand_Freeze_Record_Type): Do not generate specs of null interface
4949 subprograms because they are now generated by Analyze_Freeze_Entity.
4951 2010-09-09 Robert Dewar <dewar@adacore.com>
4953 * a-calfor.adb, sem_ch3.adb: Minor reformatting.
4955 2010-09-09 Robert Dewar <dewar@adacore.com>
4957 * bindgen.adb (Gen_Restrictions_Ada): Avoid explicit enumeration ranges
4958 (Gen_Restrictions_C): Avoid explicit enumeration ranges
4959 (Set_String_Replace): New procedure
4960 * casing.ads (Known_Casing): New subtype declaration
4961 * prj-attr.ads (All_Case_Insensitive_Associative_Array): New subtype
4963 * prj-dect.adb (Parse_Attribute_Declaration): Avoid enumeration range
4964 * prj-nmsc.adb (Check_Naming): Avoid unnecessary enumeration range
4965 * prj-strt.adb (Attribute_Reference): Avoid enumeration range test
4966 * prj.adb (Known_Casing): Moved to Casing spec (avoid enum range)
4967 * sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order): Avoid enumeration
4969 * sem_res.adb (Resolve_Range): Check for enumeration subrange style
4971 * sem_type.adb (Is_Array_Class_Record_Type): New.
4972 * style.ads (Check_Enumeration_Subrange): New procedure
4973 * styleg.adb (Check_Enumeration_Subrange): New procedure
4974 * styleg.ads (Check_Enumeration_Subrange): New procedure
4975 * stylesw.adb Add handling for Style_Check_Enumeration_Subranges
4976 * stylesw.ads (Style_Check_Enumeration_Subranges): New flag
4977 * usage.adb: Add line for -gnatyE
4978 * vms_data.ads: Add entries for [NO]ENUMERATION_RANGES
4979 Add missing entry for NOBOOLEAN_OPERATORS
4980 * gnat_ugn.texi: Add documentation for -gnatyE
4982 2010-09-09 Robert Dewar <dewar@adacore.com>
4984 * namet.adb (Initialize): Is now a dummy procedure
4985 (Reinitialize): New procedure
4986 Call Reinitialize from package initialization
4987 * namet.ads (Initialize): Is now a dummy procedure
4988 (Reinitialize): New procedure
4989 * clean.adb, gnat1drv.adb, gnatbind.adb, gnatcmd.adb, gnatlink.adb,
4990 gnatls.adb, gprep.adb, make.adb, prj-makr.adb: Remove obsolete call to
4993 2010-09-09 Bob Duff <duff@adacore.com>
4995 * sem_elab.adb, s-os_lib.ads: Minor comment fixes.
4997 2010-09-09 Robert Dewar <dewar@adacore.com>
4999 * s-bitops.adb (Raise_Error): Add exception message
5001 2010-09-09 Robert Dewar <dewar@adacore.com>
5003 * par-ch5.adb (Test_Statement_Required): Deal with Ada 2012 allowing no
5004 null statement after label.
5005 * sinfo.ads: Minor comment updates.
5007 2010-09-09 Robert Dewar <dewar@adacore.com>
5009 * nlists.ads, nlists.adb (In_Same_List): New function.
5010 Use Node_Or_Entity_Id where appropriate.
5011 * par-labl.adb, sem_ch6.adb, sem_type.adb: Use In_Same_List.
5013 2010-09-09 Robert Dewar <dewar@adacore.com>
5015 * restrict.ads, restrict.adb (Check_Wide_Character_Restriction): New
5017 * sem_ch3.adb: Use Check_Wide_Character_Restriction
5018 (Enumeration_Type_Declaration): Check violation of No_Wide_Characters
5019 * sem_ch8.adb (Find_Direct_Name): Check violation of No_Wide_Characters
5020 (Find_Expanded_Name): Check violation of No_Wide_Characters
5022 2010-09-09 Robert Dewar <dewar@adacore.com>
5024 * par-ch5.adb: Minor reformatting.
5026 2010-09-09 Robert Dewar <dewar@adacore.com>
5028 * prj-env.adb: Minor code reorganization.
5029 * par-ch3.adb: Minor reformatting.
5030 * gcc-interface/Make-lang.in: Update dependencies.
5032 2010-09-09 Ed Schonberg <schonberg@adacore.com>
5034 * exp_ch9.adb (Build_Activation_Chain_Entity): The construct enclosing
5035 a task declaration can be an entry body.
5037 2010-09-09 Javier Miranda <miranda@adacore.com>
5039 * exp_disp.adb (Make_DT): Decorate as "static" variables containing
5040 tags of library level tagged types.
5041 (Make_Tags): Disable backend optimizations about aliasing for
5042 declarations of access to dispatch tables.
5044 2010-09-09 Ed Schonberg <schonberg@adacore.com>
5046 * sem_ch12.adb (Reset_Entity): If the entity is an itype created as a
5047 subtype for a null-excluding access type, recover the original
5048 subtype_mark to get the proper visibility on the original name.
5050 2010-09-09 Ed Schonberg <schonberg@adacore.com>
5052 * exp_ch3.adb (Build_Untagged_Equality): For Ada2012, new procedure to
5053 create the primitive equality operation for an untagged record. The
5054 operation is the predefined equality if no record component has a
5055 user-defined equality, or if there is a user-defined equality for the
5056 type as a whole, or when the type is derived and it has an inherited
5057 equality. Otherwise the body of the operations is built as for tagged
5059 (Expand_Freeze_Record_Type): Call Build_Untagged_Equality when needed.
5060 (Make_Eq_Body): New function to create the expanded body of the
5061 equality operation for tagged and untagged records. In both cases the
5062 operation composes, and the primitive operation of each record
5063 component is used to generate the equality function for the type.
5064 * exp_ch4.adb (Expand_Composite_Equality): In Ada2012, if a component
5065 has an abstract equality defined, replace its call with a
5066 Raise_Program_Error.
5067 * sem_ch6.adb (New_Overloaded_Entity): if Ada2012, verify that a
5068 user-defined equality operator for an untagged record type does not
5069 happen after type is frozen, and appears in the visible part if partial
5070 view of type is not limited.
5072 2010-09-09 Tristan Gingold <gingold@adacore.com>
5074 * gnatlbr.adb: Make Create_Directory more portable: use __gnat_mkdir.
5076 2010-09-09 Bob Duff <duff@adacore.com>
5078 * gnat_ugn.texi: Remove incorrect statement about -E being the default.
5080 2010-09-09 Pascal Obry <obry@adacore.com>
5082 * gnat_ugn.texi: Update doc on windows related topics.
5084 2010-09-09 Geert Bosch <bosch@adacore.com>
5086 * s-fatgen.adb: Update comments.
5088 2010-09-09 Robert Dewar <dewar@adacore.com>
5090 * par-ch4.adb (Box_Error): New procedure.
5092 2010-09-09 Thomas Quinot <quinot@adacore.com>
5094 * sem.adb: Minor reformatting.
5096 2010-09-09 Pascal Obry <obry@adacore.com>
5098 * prj-env.adb: Style fix, use /and then/ and /or else/.
5099 * gnat_ugn.texi: Fix typos.
5101 2010-09-03 Joseph Myers <joseph@codesourcery.com>
5104 * gcc-interface/misc.c (gnat_init_options): Allow options with
5105 empty canonical form. Generate a single save_argv element from -I
5108 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
5110 * gcc-interface/utils.c (gnat_pushdecl): Remove test for PARM_DECLs.
5111 Attach fake PARM_DECLs to the topmost block of the function.
5113 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
5115 * gcc-interface/trans.c (call_to_gnu): Also force the return slot opt
5116 for the call to a function whose return type was unconstrained.
5118 2010-08-30 Olivier Hainque <hainque@adacore.com>
5120 * gcc-interface/decl.c (FOREIGN_FORCE_REALIGN_STACK): New macro,
5121 replacement for FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
5122 (gnat_to_gnu_entity) <case ..., E_Procedure>: Use it.
5124 2010-08-21 Eric Botcazou <ebotcazou@adacore.com>
5126 * tracebak.c: Fix typo in comment.
5128 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
5130 * gcc-interface/decl.c: Use FOR_EACH_VEC_ELT.
5131 * gcc-interface/trans.c: Likewise.
5132 * gcc-interface/utils.c: Likewise.
5134 2010-08-18 Eric Botcazou <ebotcazou@adacore.com>
5136 * tracebak.c (i386): Use GCC unwinder on Linux with GCC > 4.5.
5138 2010-08-10 Robert Dewar <dewar@adacore.com>
5140 * sem_ch8.adb, sem_ch8.ads: Change name Write_Scopes to ws.
5141 * sem_util.adb: Minor reformatting.
5143 2010-08-10 Javier Miranda <miranda@adacore.com>
5145 * sem_aggr.adb (Resolve_Extension_Aggregate): Warn on the use of C++
5146 constructors that leave the object partially initialized.
5147 * exp_atag.ads, exp_atags.adb (Build_Inherit_CPP_Prims): New subprogram
5148 that copies from parent of Typ the dispatch table slots of inherited
5149 C++ primitives. It handles primary and secondary dispatch tables.
5150 * einfo.adb (Related_Type): Moved from Node26 to Node27. Required to
5151 use this attribute with E_Variable entities.
5152 (Set_Is_Tag): Relax assertion to allow its use with variables that
5154 (Set_Related_Type): Relax assertion to allow its use with variables
5155 that store the tag of a C++ class.
5156 (Write_26_Field_Name): Remove Related_Type.
5157 (Write_27_Field_Name): Add Related_Type.
5158 * einfo.ads (Related_Type): Moved from Node26 to Node27. Available also
5159 with E_Variable entities.
5160 * sem_prag.adb (CPP_Constructor): Warn on duplicated occurrence of this
5162 * sem_util.adb (Search_Tag): Add missing support for CPP types.
5163 (Enclosing_CPP_Parent): New subprogram.
5164 (Has_Suffix): New subprogram.
5165 * sem_util.ads (Enclosing_CPP_Parent): New subprogram that returns the
5166 closest ancestor of a type that is a C++ type.
5167 (Has_Suffix): New subprogram. Used in assertions to check the suffix of
5169 * sem_attr.adb (Analyze_Access_Attribute): Check wrong use of current
5170 instance in derivations of C++ types.
5171 * exp_tss.adb (CPP_Init_Proc): New subprogram.
5172 (Is_CPP_Init_Proc): New subprogram.
5173 (Set_TSS): Handle new C++ init routines.
5174 * exp_tss.ads (TSS_CPP_Init): New TSS name. For initialization of C++
5176 (CPP_Init_Proc): New subprogram.
5177 (Is_CPP_Init_Proc): New subprogram.
5178 * exp_disp.adb (CPP_Num_Prims): New subprogram.
5179 (Has_CPP_Constructors): New subprogram.
5180 (Make_Secondary_DT, Make_DT): For derivations of CPP types, do not
5181 initialize slots located in the C++ part of the dispatch table.
5182 (Make_Tags): For CPP types declare variables used by the IP routine to
5183 store the C++ tag values after the first invocation of the C++
5185 (Build_CPP_Init_DT): New subprogram.
5186 (Set_CPP_Constructors): New implementation that builds an IP for each
5187 CPP constructor. These IP are wrappers of the C++ constructors that,
5188 after the first invocation of the constructor, read the C++ tags from
5189 the object and save them locally. These copies of the C++ tags are used
5190 by the IC routines to initialize tables of Ada derivations of CPP
5192 (Write_DT): Indicate what primitives are imported from C++
5193 * exp_disp.ads (CPP_Num_Prims): New subprogram.
5194 (Has_CPP_Constructors): New subprogram.
5195 * exp_aggr.adb (Build_Record_Aggr_Code): For derivations of C++ types
5196 invoke the IC routine to inherit the slots of the parents.
5197 * sem_ch13.adb (Analyze_Freeze_Entity): Add new warnings on CPP types.
5198 * exp_ch3.adb (Is_Variable_Size_Array): New subprogram.
5199 (Is_Variable_Size_Record): Factorize code calling
5200 Is_Variable_Size_Array.
5201 (Build_CPP_Init_Procedure): New subprogram that builds the tree
5202 corresponding to the procedure that initializes the C++ part of the
5203 dispatch table of an Ada tagged type that is a derivation of a CPP
5205 (Build_Init_Procedure): Adding documentation plus code reorganization
5206 to leave more clear the construction of the IP with C++ types.
5207 (Expand_Freeze_Record_Type): Delay call to Set_CPP_Constructors because
5208 it cannot be called after Make_Tags has been invoked.
5209 (Inherit_CPP_Tag): Removed.
5210 (Init_Secondary_Tags): For derivations of CPP types, warn on tags
5211 located at variable offset.
5212 * freeze.ads: Minor reformating.
5213 * sem_ch8.adb (Write_Scopes): Add pragma export. Required to have it
5215 * gcc-interface/Make-lang.in: Update dependencies.
5217 2010-08-10 Robert Dewar <dewar@adacore.com>
5219 * a-chahan.ads: Add comments on handling of obsolescent entries.
5220 * opt.ads: Add Ada_2005 and Ada_2012 renamings for versions.
5221 * restrict.adb (Check_Obsolescent_2005_Entity): New procedure.
5222 * restrict.ads (Check_Obsolescent_2005_Entity): New procedure.
5223 * sem_attr.adb (Analyze_Access_Attribute): Call
5224 Check_Obsolescent_2005_Entity to check for access to obsolescent
5225 Ada.Characters.Handling subprogram.
5226 (Analyze_Attribute, case Class): Applying Class to untagged incomplete
5227 type is obsolescent in Ada 2005.
5228 (Analyze_Attribute, case Constrained): Better placement of flag when
5229 flagged as obsolescent feature.
5230 (Analyze_Attribute, case Storage_Size): Use with tasks is obsolescent
5231 * sem_ch10.adb (Analyze_With_Clause): With of renamings such as Text_IO
5232 is an obsolescent feature.
5233 * sem_ch11.adb (Analyze_Raise_Statement): Numeric_Error is obsolescent
5235 * sem_ch8.adb (Analyze_Subprogram_Renaming): Call
5236 Check_Obsolescent_2005_Entity to check for renaming obsolete
5237 Ada.Characters.Handling subprogram.
5238 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings): Check
5239 for obsolescent restrictions in Ada 2005.
5240 (Analyze_Pragma, case Suppress): Entity arg is obsolescent in Ada 2005
5241 (Analyze_Pragma, case Interface): Interface is obsolescent in Ada 2005
5242 * sem_res.adb (Resolve_Call): Call Check_Obsolescent_2005_Entity to
5243 check for obsolescent references to Ada.Characters.Handling subprograms
5245 2010-08-10 Robert Dewar <dewar@adacore.com>
5247 * einfo.adb, einfo.ads: Fix bad -gnatdt output for incomplete type.
5249 2010-08-10 Robert Dewar <dewar@adacore.com>
5251 * errout.ads: Add VMS table entries for 2005, 12, 2012 switches
5252 * par-ch4.adb: Change wording of Ada 2012 messages
5253 * vms_data.ads: Add VMS entries for /2005, /12, /2012
5255 2010-08-10 Robert Dewar <dewar@adacore.com>
5257 * a-suenco.adb (Convert): Fix bug in UTF-16 to UTF-8 conversion for
5258 codes in the range 16#80#..16#7FF#.
5259 * sem_ch10.adb: Minor reformatting.
5261 2010-08-10 Arnaud Charlet <charlet@adacore.com>
5263 * gnat1drv.adb (Scan_Front_End_Switches): Always perform semantics and
5264 generate ali files in CodePeer mode, so that a gnatmake -c -k will
5265 proceed further when possible
5266 * freeze.adb (Freeze_Static_Object): Fix thinko. Do not generate error
5267 messages when ignoring representation clauses (-gnatI).
5269 2010-08-10 Ed Schonberg <schonberg@adacore.com>
5271 * exp_ch4.adb (Expand_N_Selected_Component): Do not attempt to
5272 constant-fold discriminant reference if the constraint is an object
5273 with non-static expression. Expression may contain volatile references
5274 in the presence of renamings.
5276 2010-08-10 Vincent Celier <celier@adacore.com>
5278 * prj-proc.adb (Get_Attribute_Index): If Index is All_Other_Names,
5280 * prj-strt.adb (Attribute_Reference): Recognize 'others' as a valid
5281 index for an associative array where it is allowed.
5283 2010-08-10 Thomas Quinot <quinot@adacore.com>
5285 * exp_attr.adb: Add comments.
5287 2010-08-10 Jerome Lambourg <lambourg@adacore.com>
5289 * adaint.c (__gnat_get_file_names_case_sensitive): return 0 on darwin.
5291 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
5293 * gcc-interface/utils.c (gnat_poplevel): Use blocks_nreverse.
5295 2010-08-09 Eric Botcazou <ebotcazou@adacore.com>
5297 * gcc-interface/utils.c (build_vms_descriptor32): Fix formatting.
5298 (build_vms_descriptor): Likewise.
5300 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5302 * gcc-interface/utils.c (make_descriptor_field): Add tree parameter.
5303 (build_vms_descriptor32): Adjust calls to it for new parameter.
5304 (build_vms_descriptor): Likewise.
5306 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5308 * gcc-interface/decl.c (rec_variant): Declare. Declare a VEC of it.
5309 (build_variant_list): Take and return a VEC instead of a tree.
5310 (create_variant_part_from): Take a VEC instead of a tree for
5311 variant_list. Adjust accordingly.
5312 (gnat_to_gnu_entity): Adjust for changes to previous functions.
5314 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
5316 * gcc-interface/decl.c (gnat_to_gnu_entity): Use XALLOCAVEC instead
5318 (components_to_record): Likewise.
5319 * gcc-interface/trans.c (gnat_to_gnu): Likewise.
5320 * gcc-interface/utils.c (max_size): Likewise.
5321 (build_vms_descriptor32): Likewise.
5322 (build_vms_descriptor): Likewise.
5324 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
5326 * gcc-interface/decl.c (subst_pair): Declare. Declare a VEC of it.
5327 (build_subst_list): Return a VEC instead of a tree.
5328 (build_variant_list): Take a VEC for subst_list. Adjust
5330 (create_field_decl_from): Likewise.
5331 (create_variant_part_from): Likewise.
5332 (copy_and_substitute_in_size): Likewise.
5333 (gnat_to_gnu_entity): Adjust for new interface to build_subst_list.
5334 Free the built vector.
5336 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
5338 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not build an
5339 allocator for large imported objects.
5341 2010-08-05 Robert Dewar <dewar@adacore.com>
5343 * gnat1drv.adb: Minor reformatting.
5345 2010-08-05 Ed Schonberg <schonberg@adacore.com>
5347 * sem.adb (Do_Unit_And_Dependents): If some parent unit is an
5348 instantiation, process its body before the spec of the main unit,
5349 because it may contain subprograms invoked in the spec of main.
5350 * einfo.ads: Add documention of delayed freeze.
5352 2010-08-05 Vincent Celier <celier@adacore.com>
5354 * prj-nmsc.adb (Process_Linker): Take into account new values for
5355 attribute Response_File_Format.
5356 * prj.ads (Response_File_Format): New enumeration values GCC_GNU,
5357 GCC_Object_List and GCC_Option_List.
5359 2010-08-05 Ed Schonberg <schonberg@adacore.com>
5361 * exp_ch4.adb (Expand_N_Selected_Component): Do not constant-fold a
5362 selected component that denotes a discriminant if it is the
5363 discriminant of a component of an unconstrained record type.
5365 2010-08-05 Ed Schonberg <schonberg@adacore.com>
5367 * exp_util.adb (Insert_Actions): If the action appears within a
5368 conditional expression that is already analyzed, insert action further
5371 2010-08-05 Robert Dewar <dewar@adacore.com>
5373 * exp_ch4.adb: Minor reformatting.
5375 2010-08-05 Thomas Quinot <quinot@adacore.com>
5377 * exp_ch4.adb: Minor reformatting
5378 * gnat1drv.adb: Minor reformatting.
5379 Minor code reorganization (use Nkind_In).
5381 2010-08-05 Ed Schonberg <schonberg@adacore.com>
5383 * exp_util.ads, exp_util.adb (Needs_Constant_Address): New predicate to
5384 determine whether the expression in an address clause for an
5385 initialized object must be constant. Code moved from freeze.adb.
5386 (Remove_Side_Effects): When the temporary is initialized with a
5387 reference, indicate that the temporary is a constant as done in all
5389 * freeze.adb (Check_Address_Clause): use Needs_Constant_Address.
5390 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
5391 If object does not need a constant address, remove side effects from
5392 address expression, so it is elaborated at the point of the address
5393 clause and not at the freeze point of the object, so that elaboration
5396 2010-08-05 Vincent Celier <celier@adacore.com>
5398 * prj.adb (Is_Compilable): Return False for header files of non Ada
5401 2010-08-05 Emmanuel Briot <briot@adacore.com>
5403 * prj-nmsc.adb: The Missing_Source_Files flag also considers a missing
5404 exec directory as a warning rather than an error.
5406 2010-08-05 Thomas Quinot <quinot@adacore.com>
5408 * sem_ch6.adb, gnat1drv.adb, exp_ch6.adb, sem_eval.adb: Minor
5411 2010-08-05 Steve Baird <baird@adacore.com>
5413 * exp_util.adb (Remove_Side_Effects): An access value which designates
5414 a volatile object of a nonvolatile type is prohibited.
5415 Do not call Make_Reference to construct a reference to such an object.
5417 2010-08-05 Robert Dewar <dewar@adacore.com>
5419 * a-suezse.adb, a-suezse.ads, a-suezen.adb, a-suezen.ads: Removed.
5420 * a-suewse.adb, a-suewse.ads, a-suesen.adb, a-suesen.ads,
5421 a-suewen.adb, a-suewen.ads: New files.
5422 * Makefile.rtl, impunit.adb: Update implementation of Ada 2012 string
5424 * sem_elab.adb: Minor reformatting.
5426 2010-08-05 Arnaud Charlet <charlet@adacore.com>
5428 * sem_ch8.adb (Use_One_Type): Protect against empty scopes.
5429 * exp_util.adb (Component_May_Be_Bit_Aligned): Prevent assert failure
5430 in case of null Comp.
5432 2010-08-05 Robert Dewar <dewar@adacore.com>
5434 * errout.adb, a-suewen.adb, a-suezen.adb: Minor reformatting.
5436 2010-08-05 Gary Dismukes <dismukes@adacore.com>
5438 * sem_ch4.adb (Analyze_Allocator): Flag errors on allocators of a
5439 nested access type whose designated type has tasks or is a protected
5440 object when the restrictions No_Task_Hierarchy or
5441 No_Local_Protected_Objects apply. Add ??? comment.
5442 * sem_ch9.adb (Analyze_Protected_Type): Give a warning when a protected
5443 type is not a library-level type and No_Local_Protected_Objects applies.
5444 (Analyze_Task_Type): Give a warning when a task type is not a
5445 library-level type and No_Task_Hierarchy applies.
5447 2010-08-05 Arnaud Charlet <charlet@adacore.com>
5449 * sem.adb: Minor reformatting
5450 * sem_ch4.adb (Analyze_Reference): Disable error message in CodePeer
5453 2010-08-04 Eric Botcazou <ebotcazou@adacore.com>
5455 * gcc-interface/decl.c: Do not undefine IN_GCC_FRONTEND and do not
5457 (gnat_to_gnu_entity) <object>: Force address of -1 at the tree level
5458 for the debug-only entity.
5459 * gcc-interface/Make-lang.in (ada/decl.o): Adjust dependencies.
5461 2010-08-03 Joseph Myers <joseph@codesourcery.com>
5463 * gcc-interface/lang-specs.h: Don't pass -a options.
5465 2010-07-28 Joseph Myers <joseph@codesourcery.com>
5467 * gcc-interface/misc.c (gnat_init_options): Ignore erroneous
5468 options. Check canonical_option_num_elements on options copied.
5470 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5472 * gcc-interface/misc.c (gnat_handle_option): Update prototype and
5473 return value type. Don't check for missing arguments here.
5475 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5477 * gcc-interface/misc.c (gnat_option_lang_mask): New.
5478 (gnat_init_options): Update prototype. Reconstruct argv array
5479 from decoded options.
5481 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
5483 * gcc-interface/utils.c (update_pointer_to): In the unconstrained array
5484 case, merge the alias set of the old pointer type.
5486 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
5488 * gcc-interface/utils.c (gnat_types_compatible_p): Revert latest change
5489 and recurse only for multidimensional array types instead.
5491 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
5494 * gcc-interface/utils.c (convert): Fix thinko in test.
5495 (unchecked_convert): When converting from a scalar type to a type with
5496 a different size, pad to have the same size on both sides.
5498 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
5500 * gcc-interface/utils.c (gnat_types_compatible_p): Don't require strict
5501 equality for the component type of array types.
5503 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
5505 * gcc-interface/decl.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
5506 * gcc-interface/trans.c: Likewise.
5507 * gcc-interface/utils.c: Likewise.
5508 * gcc-interface/utils2.c: Likewise.
5510 2010-07-13 Laurent GUERBY <laurent@guerby.net>
5513 * gcc-interface/targtyps.c: Include tm_p.h.
5514 * gcc-interface/Make-lang.in: Update dependencies.
5516 2010-07-09 Eric Botcazou <ebotcazou@adacore.com>
5518 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Deal with
5521 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5523 * gcc-interface/utils.c: Include diagnostic-core.h in every file
5524 that includes toplev.h.
5526 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
5528 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>:
5529 Branch to common code handling the alignment of discrete types.
5530 <E_Signed_Integer_Type>: Likewise.
5531 <E_Modular_Integer_Type>: Likewise.
5533 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
5535 * gcc-interface/misc.c (gnat_handle_option): Do not populate gnat_argv.
5536 (gnat_handle_option): Allocate only one element for gnat_argv.
5537 (gnat_init): Do not populate gnat_argv.
5539 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5541 * gcc-interface/trans.c: Do not include tree-flow.h.
5542 * gcc-interface/Make-lang.in: Adjust dependencies.
5544 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
5546 * gcc-interface/gigi.h (gnat_build_constructor): Take a VEC instead
5547 of a TREE_LIST. Update comment.
5548 * gcc-interface/trans.c (gigi): Build a VEC instead of a TREE_LIST.
5549 Adjust call to gnat_build_constructor.
5550 (Attribute_to_gnu): Likewise.
5551 (gnat_to_gnu): Likewise.
5552 (pos_to_constructor): Likewise.
5553 (extract_values): Likewise.
5554 * gcc-interface/utils.c (build_template): Likewise.
5555 (convert_vms_descriptor64): Likewise.
5556 (convert_vms_descriptor32): Likewise.
5557 (convert_to_fat_pointer): Likewise.
5558 (convert): Likewise.
5559 (unchecked_convert): Likewise.
5560 * gcc-interface/decl.c (gnat_to_gnu_entity): Likewise.
5561 * gcc-interface/utils2.c (build_allocator): Likewise.
5562 (fill_vms_descriptor): Likewise.
5563 (gnat_build_constructor): Take a VEC instead of a TREE_LIST.
5564 (compare_elmt_bitpos): Adjust for parameters being constructor_elts
5565 instead of TREE_LISTs.
5567 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
5569 * gcc-interface/misc.c: Do not include except.h.
5570 * gcc-interface/Make-lang.in: Update dependencies.
5572 2010-06-27 Eric Botcazou <ebotcazou@adacore.com>
5574 * gcc-interface/trans.c: Include tree-flow.h.
5575 (gnu_switch_label_stack): Delete.
5576 (Case_Statement_to_gnu): Do not emit the goto at the end of a case if
5577 its associated block cannot fall through. Do not emit the final label
5578 if no cases branch to it.
5579 * gcc-interface/Make-lang.in (ada/trans.o): Add $(TREE_FLOW_H).
5581 2010-06-23 Thomas Quinot <quinot@adacore.com>
5583 * exp_attr.adb (Expand_Access_To_Protected_Op): When rewriting a
5584 reference to a protected subprogram outside of the protected's scope,
5585 ensure the corresponding external subprogram is frozen before the
5588 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5590 * sem_prag.adb: Fix typo in error message.
5591 * sem.adb: Refine previous change.
5593 2010-06-23 Robert Dewar <dewar@adacore.com>
5595 * impunit.adb, a-suewen.adb, a-suewen.ads, a-suenco.adb, a-suenco.ads,
5596 a-suezen.adb, a-suezen.ads, a-stuten.adb, a-stuten.ads, Makefile.rtl:
5597 Implement Ada 2012 string encoding packages.
5599 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5601 * a-stwiun-shared.adb, a-stwiun-shared.ads, a-stzunb-shared.adb,
5602 a-stzunb-shared.ads, a-swunau-shared.adb, a-swuwti-shared.adb,
5603 a-szunau-shared.adb, a-szuzti-shared.adb, a-strunb-shared.adb,
5604 a-strunb-shared.ads, a-stunau-shared.adb, a-suteio-shared.adb: New
5606 * gcc-interface/Makefile.in: Enable use of above files.
5608 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5610 * sem_ch13.adb (Check_Constant_Address_Clauses): Do not check legality
5611 of address clauses if if Ignore_Rep_Clauses is active.
5612 * freeze.adb (Check_Address_Clause): If Ignore_Rep_Clauses is active,
5613 remove address clause from tree so that it does not reach the backend.
5615 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5617 * exp_attr.adb (Expand_N_Attribute_Reference [Attribute_Valid]): Do not
5618 expand 'Valid from user code in CodePeer mode, will be handled by the
5621 2010-06-23 Bob Duff <duff@adacore.com>
5623 * g-comlin.ads: Minor comment improvements.
5625 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5627 * sem_res.adb (Uses_SS): The expression that initializes a controlled
5628 component of a record type may be a user-defined operator that is
5629 rewritten as a function call.
5631 2010-06-23 Bob Duff <duff@adacore.com>
5633 * g-comlin.ads, sem_ch13.adb: Minor comment fix.
5635 2010-06-23 Eric Botcazou <ebotcazou@adacore.com>
5637 * exp_ch11.adb (Expand_Local_Exception_Handlers): Propagate the end
5638 label to the new sequence of statements. Set the sloc of the raise
5639 statement onto the new goto statements.
5641 2010-06-23 Robert Dewar <dewar@adacore.com>
5643 * a-stuten.ads, a-stuten.adb: New files.
5644 * impunit.adb: Add engtry for Ada.Strings.UTF_Encoding (a-stuten.ads)
5645 * Makefile.rtl: Add entry for a-stuten (Ada.Strings.UTF_Encoding)
5647 2010-06-23 Robert Dewar <dewar@adacore.com>
5649 * gnat_ugn.texi: Add documentation of -gnat12 switch
5650 Add documentation of -gnatX switch.
5652 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5654 * inline.ads: Include the current Ada_Version in the info for pending
5655 instance bodies, so that declaration and body are compiled with the
5657 * inline.adb: Move with_clause for Opt to spec.
5658 * sem_ch12.adb (Analyze_Package_Instantiation,
5659 Analyze_Subprogram_Instantiation): Save current Ada_Version in
5660 Pending_Instantiation information.
5661 (Instantiate_Package_Body, Instantiate_Subprogram_Body,
5662 Inline_Package_Body): Use the Ada_Version present in the body
5665 2010-06-23 Robert Dewar <dewar@adacore.com>
5667 * usage.adb: Add documentation for -gnat12 switch.
5668 * errout.ads: Add VMS alias entry for -gnat12 switch
5669 * gnat_rm.texi: Add documentation for pragma Ada_12 and Ada_2012
5670 Add documentation for pragma Extensions_Allowed.
5671 * opt.ads: Add entry for Ada 2012 mode.
5672 * sem_ch4.adb, par-ch3.adb, par-ch4.adb: Use new Ada 2012 mode for 2012
5674 * sem_prag.adb, par-prag.adb: Add processing for pragma Ada_12 and
5676 * sem_ch13.adb: Add handling for Ada 2012 mode.
5677 * snames.ads-tmpl: Add entries for pragma Ada_2012 and Ada_12.
5678 * switch-c.adb: Add handling for -gnat12 switch.
5679 Implement -gnat2005 and -gnat2012.
5680 * usage.adb: Add documentation for -gnat12 switch.
5681 * vms_data.ads: Add /12 switch for Ada 2012 mode.
5683 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5685 * exp_ch4.adb (Expand_N_Allocator): Fix potential crash when using
5686 No_Task_Hierarchy restriction. Add comment.
5687 * exp_ch9.adb, exp_ch3.adb: Update comments.
5689 2010-06-23 Robert Dewar <dewar@adacore.com>
5691 * sem_ch5.adb (Process_Bounds): Remove some junk initializations.
5692 * sem_res.adb: Add comments.
5693 * sem_util.adb: Minor reformatting. Add comments.
5694 Change increment on Actuals_In_Call table.
5695 * opt.ads: Minor: add 'constant'.
5697 2010-06-23 Javier Miranda <miranda@adacore.com>
5699 * exp_disp.adb (Make_DT): Initialize the Size_Func component of the
5700 TSD to Null_Address if No_Dispatching_Calls is active.
5702 2010-06-23 Vincent Celier <celier@adacore.com>
5704 * a-comlin.ads: Indicate that use of this package is not supported
5705 during the elaboration of an auto-initialized Stand-Alone Library.
5707 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5709 * exp_util.adb (Is_Possibly_Misaligned_Object): Do not rely on an
5710 alignment clause on a record type to determine if a component may be
5711 misaligned. The decision must be taken in the back-end where target
5712 alignment information is known.
5714 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5716 * gnat1drv.adb (Adjust_Global_Switches): Enable some restrictions
5717 systematically in CodePeer mode to simplify generated code.
5718 * restrict.adb (Check_Restriction): Do nothing in CodePeer mode.
5719 * exp_ch4.adb (Expand_N_Allocator): Generate proper code when
5720 No_Task_Hierarchy is set instead of crasshing.
5722 2010-06-23 Thomas Quinot <quinot@adacore.com>
5724 * sem_util.adb: Minor code cleanup: test for proper entity instead of
5725 testing just Chars attribute when checking whether a given scope is
5727 * exp_ch4.adb, einfo.adb: Minor reformatting.
5729 2010-06-23 Vincent Celier <celier@adacore.com>
5732 * switch-m.adb (Normalize_Compiler_Switches): Take into account
5733 switches -gnatB, -gnatD=nn, -gnatG (incuding -gnatG=nn), -gnatI,
5734 -gnatl=file, -gnatS, -gnatjnn, -gnateI=nn and -gnatWx.
5736 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5738 * sem_res.adb (Resolve_Membership_Op): If left operand is a mixed mode
5739 operation with a universal real operand, and the right operand is a
5740 range with universal bounds, find unique fixed point that may be
5741 candidate, and warn appropriately.
5743 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5745 * sem_res.adb (Resolve_Intrinsic_Operator): Add guards to handle
5746 properly the rare cases where VMS operators are visible through
5747 Extend_System, but the default System is being used and Address is a
5749 * sem_util.adb: Widen predicate Is_VMS_Operator.
5751 2010-06-23 Vincent Celier <celier@adacore.com>
5753 * switch-m.adb (Normalize_Compiler_Switches): Take into account -gnatC
5756 2010-06-23 Olivier Hainque <hainque@adacore.com>
5758 * einfo.adb (Has_Foreign_Convention): Consider Intrinsic with
5759 Interface_Name as foreign. These are GCC builtin imports for
5760 which Ada specific processing doesn't apply.
5762 2010-06-23 Thomas Quinot <quinot@adacore.com>
5764 * sem_ch12.adb: Minor reformatting.
5766 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5768 * sem_util.adb (Is_VMS_Operator): Use scope of system extension to
5769 determine whether an intrinsic subprogram is VMS specific.
5771 2010-06-23 Hristian Kirtchev <kirtchev@adacore.com>
5773 * treepr.adb (Print_Entity_Info): Output the contents of Field28 if it
5774 is present in the entity.
5776 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5778 * xr_tabls.adb, xref_lib.adb: Update to latest lib-xref.ads
5779 Fix handling of parameters.
5780 Add protection against unexpected cases.
5781 * sem_ch6.adb (Create_Extra_Formals): Use suffix "L" instead of "A" for
5782 access level, since "A" suffix is already used elsewhere. Similarly,
5783 use suffix "O" instead of "C" for 'Constrained since "C" suffix is used
5786 2010-06-23 Thomas Quinot <quinot@adacore.com>
5788 * sem_util.adb, sem_util.ads: Minor reformatting.
5790 2010-06-23 Vincent Celier <celier@adacore.com>
5792 * prj.ads (Gprclean_Flags.Missing_Source_Files): Set to Error to keep
5793 the previous behavior of gprclean when there are missing files.
5795 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5797 * sem_ch12.adb (Load_Body_Of_Generic): In CodePeer mode, a missing
5798 generic body is not a fatal error.
5799 (Mark_Context): Handle properly names of child units.
5800 * sem.adb (Walk_Library_Items.Do_Action): Remove assertion on
5803 2010-06-23 Vincent Celier <celier@adacore.com>
5805 * ali.adb (Scan_ALI): When ignoring R lines, do not skip the next
5808 2010-06-23 Bob Duff <duff@adacore.com>
5810 * g-pehage.ads, g-pehage.adb: Switch default optimization mode to
5811 Memory_Space, because CPU_Time doesn't seem to provide any significant
5812 speed advantage in practice. Cleanup: Get rid of constant
5813 Default_Optimization; doesn't seem to add anything. Use case
5814 statements instead of if statements; seems cleaner.
5816 2010-06-23 Olivier Hainque <hainque@adacore.com>
5818 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Procedure>: Use
5819 Wshadow instead of Wextra to guard warning on absence of internal
5820 builtin decl for an import. Fix use of quote in warning text.
5821 (intrin_arglists_compatible_p): Remove processing of integer trailing
5822 args on the Ada side. Fix use of literal > in warning text.
5823 (intrin_return_compatible_p): Never warn on "function imported as
5824 procedure". Defer the void/void case to the common type compatibility
5826 (gnat_to_gnu_param): Use void_ptr GCC type for System.Address argument
5827 of GCC builtin imports.
5829 2010-06-23 Olivier Hainque <hainque@adacore.com>
5831 * gcc-interface/decl.c (intrin_types_incompatible_p): New function,
5833 (intrin_arglists_compatible_p, intrin_return_compatible_p): New
5834 functions, helpers for ...
5835 (intrin_profiles_compatible_p): New function, replacement for ...
5836 (compatible_signatures_p): Removed.
5837 (gnat_to_gnu_entity) <case E_Procedure>: If -Wextra, warn on
5838 attempt to bind an unregistered builtin function. When we have
5839 one, use it and warn on profile incompatibilities.
5841 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5843 * gcc-interface/Make-lang.in: Update dependencies.
5845 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5847 * sem_util.adb (Mark_Coextensions): If the expression in the allocator
5848 for a coextension in an object declaration is a concatenation, treat
5849 coextension as dynamic.
5851 2010-06-23 Javier Miranda <miranda@adacore.com>
5853 * sem_ch3.adb (Add_Internal_Interface_Entities): Ensure that the
5854 internal entities are added to the scope of the tagged type.
5855 (Derive_Subprograms): Do not stop derivation when we find the first
5856 internal entity that has attribute Interface_Alias. After the change
5857 done to Override_Dispatching_Operations it is no longer true that
5858 these primirives are always located at the end of the list of
5860 * einfo.ads (Primitive_Operations): Add documentation.
5861 * exp_disp.adb (Write_DT): Improve output adding to the name of the
5862 primitive a prefix indicating its corresponding tagged type.
5863 * sem_disp.adb (Override_Dispatching_Operations): If the overridden
5864 entity covers the primitive of an interface that is not an ancestor of
5865 this tagged type then the new primitive is added at the end of the list
5866 of primitives. Required to fulfill the C++ ABI.
5868 2010-06-23 Javier Miranda <miranda@adacore.com>
5870 * atree.ads (Set_Reporting_Proc): New subprogram.
5871 * atree.adb: Remove dependency on packages Opt and SCIL_LL.
5872 (Allocate_Initialize_Node, Replace, Rewrite): Replace direct calls
5873 to routines of package Scil_ll by indirect call to the registered
5875 (Set_Reporting_Proc): New subprogram. Used to register a subprogram
5876 that is invoked when a node is allocated, replaced or rewritten.
5877 * scil_ll.adb (Copy_SCIL_Node): New routine that takes care of copying
5878 the SCIL node. Used as argument for Set_Reporting_Proc.
5879 (Initialize): Register Copy_SCIL_Node as the reporting routine that
5880 is invoked by atree.
5882 2010-06-23 Thomas Quinot <quinot@adacore.com>
5884 * sem_ch3.ads: Minor reformatting.
5886 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5888 * sem_ch12.adb (Analyze_Package_Instantiation): In CodePeer mode,
5889 always analyze the generic body and instance, because it may be needed
5891 (Mark_Context): Prepend the with clauses for needed generic units, so
5892 they appear in a better order for CodePeer.
5893 * sem_util.adb, sem_util.ads: Prototype code for AI05-0144.
5895 2010-06-23 Emmanuel Briot <briot@adacore.com>
5897 * prj.ads, prj-nmsc.adb (Error_Or_Warning): New subprogram.
5899 2010-06-23 Robert Dewar <dewar@adacore.com>
5901 * g-pehage.adb, exp_ch13.adb: Minor reformatting.
5903 2010-06-23 Thomas Quinot <quinot@adacore.com>
5905 * a-tags.ads: Fix description of TSD structure.
5907 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5909 * sem_ch12.adb (Mark_Context): When indicating that the body of a
5910 generic unit is needed prior to the unit containing an instantiation,
5911 search recursively the context of the generic to add other generic
5912 bodies that may be instantiated indirectly through the current instance.
5914 2010-06-23 Robert Dewar <dewar@adacore.com>
5916 * freeze.adb: Minor reformatting.
5918 2010-06-23 Bob Duff <duff@adacore.com>
5920 * g-pehage.adb (Trim_Trailing_Nuls): Fix the code to match the comment.
5922 2010-06-23 Vincent Celier <celier@adacore.com>
5924 * make.adb (Compile_Sources): Complete previous change.
5926 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5928 * sem_ch6.adb (Add_Extra_Formal): Use suffix "C" in the name of the
5929 Constrained extra formal.
5931 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5933 * exp_ch13.adb (Expand_Freeze_Actions): If validity checks and
5934 Initialize_Scalars are enabled, compile the generated equality function
5935 for a composite type with full checks enabled, so that validity checks
5936 are performed on individual components.
5938 2010-06-23 Emmanuel Briot <briot@adacore.com>
5940 * prj.adb, prj.ads, prj-nmsc.adb (Processing_Flags): New flag
5941 Missing_Source_Files.
5943 2010-06-23 Robert Dewar <dewar@adacore.com>
5945 * exp_ch3.adb, exp_util.adb: Minor reformatting.
5947 2010-06-23 Jose Ruiz <ruiz@adacore.com>
5949 * a-reatim.adb, a-retide.adb: Move the initialization of the tasking
5950 run time from Ada.Real_Time.Delays to Ada.Real_Time. This way, calls to
5951 Clock (without delays) use a run time which is properly initialized.
5953 2010-06-23 Vincent Celier <celier@adacore.com>
5955 * make.adb: Do not set Check_Readonly_Files when setting Must_Compile,
5956 when -f -u and a main is specified on the command line. However,
5957 attempt to compile even when the ALI file is read-only when
5958 Must_Compile is True.
5960 2010-06-23 Thomas Quinot <quinot@adacore.com>
5962 * checks.adb, g-pehage.adb, cstand.adb: Minor code factorization.
5964 2010-06-23 Javier Miranda <miranda@adacore.com>
5966 * sem_ch3.adb (Add_Internal_Interface_Entities): Generate internal
5967 entities for parent types that are interfaces. Needed in generics to
5968 handle formals that implement interfaces.
5969 (Derive_Subprograms): Add assertion for derivation of tagged types that
5970 do not cover interfaces. For generics, complete code that handles
5971 derivation of type that covers interfaces because the previous
5972 condition was weak (it required only name consistency; arguments were
5973 not checked). Add new code to locate primitives covering interfaces
5974 defined in generic units or instantiatons.
5975 * sem_util.adb (Has_Interfaces): Add missing support for derived types.
5976 * sem_ch6.adb (Check_Overriding_Indicator): Minor code cleanups.
5977 * exp_disp.adb (Make_Select_Specific_Data_Table): Skip primitives of
5978 interfaces that are parents of the type because they share the primary
5980 (Register_Primitive): Do not register primitives of interfaces that
5981 are parents of the type.
5982 * sem_ch13.adb (Analyze_Freeze_Entity): Add documentation.
5983 * exp_cg.adb (Write_Type_Info): When displaying overriding of interface
5984 primitives skip primitives of interfaces that are parents of the type.
5986 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5988 * sem_attr.adb (Eval_Attribute): If the prefix is an array, the
5989 attribute cannot be constant-folded if an index type is a formal type,
5990 or is derived from one.
5991 * checks.adb (Determine_Range): ditto.
5993 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5995 * gnat_ugn.texi, gnatxref.adb: Add support for --ext switch.
5997 2010-06-23 Bob Duff <duff@adacore.com>
5999 * g-pehage.ads, g-pehage.adb (Put): Fix off-by-one bug.
6000 (Insert): Disallow nul characters.
6001 (misc output routines): Assert no nul characters.
6003 2010-06-23 Ed Schonberg <schonberg@adacore.com>
6005 * exp_ch4.adb: Use predefined unsigned type in all cases.
6007 2010-06-23 Bob Duff <duff@adacore.com>
6009 * s-rannum.adb (Reset): Avoid overflow in calculation of Initiator.
6010 * g-pehage.ads: Minor comment fixes.
6011 * g-pehage.adb: Minor: Add some additional debugging printouts under
6014 2010-06-23 Robert Dewar <dewar@adacore.com>
6016 * binde.adb (Better_Choice): Always prefer Pure/Preelab.
6017 (Worse_Choice): Always prefer Pure/Preelab.
6019 2010-06-23 Vincent Celier <celier@adacore.com>
6021 * a-reatim.adb: Call System.OS_Primitives.Initialize during elaboration
6023 2010-06-23 Robert Dewar <dewar@adacore.com>
6025 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Properly handle
6026 checking returns in generic case.
6027 (Check_Missing_Return): New procedure.
6029 2010-06-23 Robert Dewar <dewar@adacore.com>
6031 * bindgen.adb, switch-b.adb: Minor reformatting.
6033 2010-06-23 Javier Miranda <miranda@adacore.com>
6035 * frontend.adb (Frontend): Add call to initialize the new package
6037 * exp_ch7.adb (Wrap_Transient_Expression): Remove call to
6039 (Wrap_Transient_Statement): Remove call to Adjust_SCIL_Node.
6040 * sem_ch5.adb (Analyze_Iteration_Scheme.Process_Bounds): Remove call to
6042 * exp_util.adb (Insert_Actions): Remove code for
6043 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
6044 (Remove_Side_Effects): Remove calls to Adjust_SCIL_Node.
6045 * sinfo.adb (SCIL_Entity, SCIL_Tag_Value): Remove checks on
6046 N_SCIL_Tag_Init and N_SCIL_Dispatch_Table_Object_Init in the assertion.
6047 (SCIL_Related_Node, Set_SCIL_Related_Node): Removed.
6048 * sinfo.ads (SCIL_Related_Node): Field removed.
6049 (N_SCIL_Dispatch_Table_Object_Init): Node removed.
6050 (N_SCIL_Tag_Init): Node removed.
6051 * sem_scil.ads, sem_scil.adb (Adjust_SCIL_Node): Removed.
6052 (Check_SCIL_Node): New implementation.
6053 (Find_SCIL_Node): Removed.
6054 * sem.adb (Analyze): Remove management of
6055 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
6056 * sem_util.adb (Insert_Explicit_Dereference): Remove call to
6058 * exp_ch4.adb (Expand_N_In): Code cleanup: remove call to
6059 Set_SCIL_Related_Node and avoid adding the SCIL node before the
6060 referenced node using Insert_Action because this is not longer
6062 (Expand_Short_Circuit_Operator): Remove call to SCIL node.
6063 * exp_ch6.adb (Expand_Call): Remove call to Adjust_SCIL_Node.
6064 * sem_ch4.adb (Analyze_Type_Conversion): Remove call to
6066 * exp_disp.adb (Expand_Dispatching_Call): Minor code reorganization
6067 because we no longer require to generate the SCIL node before the call.
6068 (Make_DT): Remove generation of SCI_Dispatch_Table_Object_Init node.
6069 Remove calls to Set_SCIL_Related_Node and avoid adding the SCIL
6070 nodes before the referenced node using Insert_Action because this
6071 is not longer required.
6072 * atree.adb (Allocate_Initialize_Node, Replace, Rewrite): Add call to
6073 update the SCIL_Node field.
6074 * sprint.adb (Sprint_Node_Actual): Remove code for
6075 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
6076 * treepr.adb (Print_Node): Print the SCIL node field (if available).
6077 * exp_ch3.adb (Build_Init_Procedure): Remove generation of
6078 SCIL_Tag_Init nodes.
6079 * scil_ll.ads, scil_ll.adb: New files.
6080 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
6083 2010-06-23 Robert Dewar <dewar@adacore.com>
6085 * sem_ch6.adb: Minor reformatting.
6087 2010-06-23 Doug Rupp <rupp@adacore.com>
6089 * bindusg.adb (Display): Write -Hnn line.
6090 * bindgen.adb (Gen_Adainit_Ada): Write Heap_Size to binder file as
6092 * init.c (__gl_heap_size): Rename from __gl_no_malloc_64 and change
6093 valid values to 32 and 64.
6094 (GNAT$NO_MALLOC_64): Recognize TRUE, 1, FALSE, and 0 in addition to
6095 ENABLE, DISABLE as valid settings.
6096 * switch-b.adb (Scan_Binder_Switches): Process -Hnn switch.
6097 * opt.ads (Heap_Size): New global variable.
6098 * gcc-interface/utils2.c (maybe_wrap_malloc): Remove mostly redundant
6099 TARGET_MALLOC64 check. Fix comment.
6101 2010-06-23 Robert Dewar <dewar@adacore.com>
6103 * sem_ch6.adb, exp_ch4.adb, s-rannum.ads, sem.adb, sem_ch12.adb: Minor
6104 reformatting. Add comments.
6105 * errout.adb (Finalize): Properly adjust warning count when deleting
6108 2010-06-22 Robert Dewar <dewar@adacore.com>
6110 * errout.adb (Finalize): Set Prev pointers.
6111 (Finalize): Delete continuations for deletion by warnings off(str).
6112 * erroutc.ads: Add Prev pointer to error message structure.
6114 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6116 * sem.adb (Do_Unit_And_Dependents): If the spec of the main unit is a
6117 child unit, examine context of parent units to locate instantiated
6118 generics whose bodies may be needed.
6119 * sem_ch12.adb: (Mark_Context): if the enclosing unit does not have a
6120 with_clause for the instantiated generic, examine the context of its
6121 parents, to set Withed_Body flag, so that it can be visited earlier.
6122 * exp_ch4.adb (Expand_N_Op_Not): If this is a VMS operator applied to
6123 an unsigned type, use a type of the proper size for the intermediate
6124 value, to prevent alignment problems on unchecked conversion.
6126 2010-06-22 Geert Bosch <bosch@adacore.com>
6128 * s-rannum.ads Change Generator type to be self-referential to allow
6129 Random to update its argument. Use "in" mode for the generator in the
6130 Reset procedures to allow them to be called from the Ada.Numerics
6131 packages without tricks.
6132 * s-rannum.adb: Use the self-referencing argument to get write access
6133 to the internal state of the random generator.
6134 * a-nudira.ads: Make Generator a derived type of
6135 System.Random_Numbers.Generator.
6136 * a-nudira.adb: Remove use of 'Unrestricted_Access.
6137 Put subprograms in alpha order and add headers.
6138 * g-mbdira.ads: Change Generator type to be self-referential.
6139 * g-mbdira.adb: Remove use of 'Unrestricted_Access.
6141 2010-06-22 Robert Dewar <dewar@adacore.com>
6143 * freeze.adb: Minor reformatting
6144 Minor code reorganization (use Nkind_In and Ekind_In).
6146 2010-06-22 Bob Duff <duff@adacore.com>
6148 * gnat1drv.adb (Gnat1drv): Remove the messages that recommend using
6149 -gnatc when a file is compiled that we cannot generate code for, not
6150 helpful and confusing.
6152 2010-06-22 Vincent Celier <celier@adacore.com>
6154 * switch-m.adb (Normalize_Compiler_Switches): Process correctly
6157 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6159 * s-rannum.adb: Replace constants with commented symbols.
6160 * s-rannum.ads: Explain significance of the initial value of the data
6163 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6165 * a-ngcoty.adb: Clarify comment.
6167 2010-06-22 Gary Dismukes <dismukes@adacore.com>
6169 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Return without
6170 expansion for indexing packed arrays with small power-of-2 component
6171 sizes when the target is AAMP.
6172 (Expand_Packed_Element_Reference): Return without expansion for
6173 indexing packed arrays with small power-of-2 component sizes when the
6176 2010-06-22 Geert Bosch <bosch@adacore.com>
6178 * exp_ch4.adb (Expand_N_In): Do not substitute a valid check for X in
6181 2010-06-22 Robert Dewar <dewar@adacore.com>
6183 * g-mbdira.adb, g-mbflra.adb, a-nuflra.adb, a-nudira.adb: Minor comment
6186 2010-06-22 Doug Rupp <rupp@adacore.com>
6188 * system-vms.ads, system-vms-zcx.ads: Remove old unused VMS system
6190 * system-vms_64.ads, system-vms-ia64.ads: Minor reformatting.
6191 (pragma Ident): Add a default ident string in the private part.
6193 2010-06-22 Robert Dewar <dewar@adacore.com>
6195 * cstand.adb: Minor reformatting.
6197 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6199 * freeze.adb (Build_And_Analyze_Renamed_Body): For expansion purposes,
6200 recognize the Shift and Rotation intrinsics that are known to the
6201 compiler but have no interface name.
6203 2010-06-22 Geert Bosch <bosch@adacore.com>
6205 * a-ngcoty.adb ("*"): Rewrite complex multiplication to use proper
6206 scaling in case of overflow or NaN results.
6208 2010-06-22 Robert Dewar <dewar@adacore.com>
6210 * cstand.adb: Complete previous change.
6211 * g-dirope.ads: Add comment.
6212 * s-stchop.adb, sfn_scan.adb: Minor reformatting.
6214 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6216 * cstand.adb: Add tree nodes for pragma Pack on string types.
6218 2010-06-22 Javier Miranda <miranda@adacore.com>
6220 * einfo.ads, einfo.adb (Last_Formal): New synthesized attribute.
6221 * exp_util.adb (Find_Prim_Op): Use new attribute to locate the last
6222 formal of a primitive.
6223 * exp_disp.adb (Is_Predefined_Dispatching_Operation,
6224 Is_Predefined_Dispatching_Alias): Use new attribute to locate the last
6225 formal of a primitive.
6226 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Use new attribute
6227 to obtain the last formal of a primitive.
6229 2010-06-22 Geert Bosch <bosch@adacore.com>
6231 * sysdep.c, init.c, adaint.c, cstreams.c: Remove conditional code
6232 depending on __EMX__ or MSDOS being defined.
6233 * i-cstrea.ads, gnat_rm.texi: Remove mentions of OS/2, DOS and Xenix.
6234 * a-excpol-abort.adb: Update comment indicating users of the file.
6235 * xref_lib.adb, sfn_scan.adb: Remove mention of OS/2, replace NT by
6237 * env.c: Remove empty conditional for MSDOS.
6238 * s-stchop.adb, g-dirope.ads, s-fileio.adb, osint.ads: Remove mention
6241 2010-06-22 Robert Dewar <dewar@adacore.com>
6243 * s-rannum.adb: Minor reformatting.
6245 2010-06-22 Javier Miranda <miranda@adacore.com>
6247 * sem_aux.adb, sem_aux.ads, sem_util.adb, sem_util.ads, sem_elim.adb,
6248 exp_cg.adb: Minor code reorganization: Move routine Ultimate_Alias from
6249 package Sem_Util to package Sem_Aux.
6251 2010-06-22 Javier Miranda <miranda@adacore.com>
6253 * exp_disp.adb (Make_Secondary_DT, Make_DT): Minor code cleanup:
6254 remove useless restriction on imported routines when building the
6257 2010-06-22 Robert Dewar <dewar@adacore.com>
6259 * cstand.adb (Create_Standard): Set Has_Pragma_Pack for standard string
6262 2010-06-22 Javier Miranda <miranda@adacore.com>
6264 * sem_ch4.adb (Collect_Generic_Type_Ops): Protect code that handles
6265 generic subprogram declarations to ensure proper context. Add missing
6266 support for generic actuals.
6267 (Try_Primitive_Operation): Add missing support for concurrent types
6268 that have no Corresponding_Record_Type. Required to diagnose errors
6270 generics or when compiling with no code generation (-gnatc).
6271 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Do not build
6272 the corresponding record type.
6273 * sem_disp.ads, sem_disp.adb (Check_Dispatching_Operation): Complete
6274 documentation. Do minimum decoration when processing a primitive of a
6275 concurrent tagged type that covers interfaces. Required to diagnose
6276 errors in the Object.Operation notation compiling generics or under
6278 * exp_ch9.ads, exp_ch9.adb (Build_Corresponding_Record): Add missing
6279 propagation of attribute Interface_List to the corresponding record.
6280 (Expand_N_Task_Type_Declaration): Code cleanup.
6281 (Expand_N_Protected_Type_Declaration): Code cleanup.
6283 2010-06-22 Matthew Heaney <heaney@adacore.com>
6285 * a-convec.adb, a-coinve.adb: Removed 64-bit types Int and UInt.
6287 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6289 * s-rannum.adb (Random_Float_Template): Replace with unbiased version
6290 that is able to produce all representable floating-point numbers in the
6291 unit interval. Remove template parameter Shift_Right, no longer used.
6292 * gnat_rm.texi: Document the period of the pseudo-random number
6293 generator under the description of its algorithm.
6294 * gcc-interface/Make-lang.in: Update dependencies.
6296 2010-06-22 Thomas Quinot <quinot@adacore.com>
6298 * exp_aggr.adb (Rewrite_Discriminant): Fix predicate used to identify
6299 reference to discriminant (can be an expanded name as well as an
6302 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6304 * exp_ch6.adb: Clarify comment.
6306 2010-06-22 Geert Bosch <bosch@adacore.com>
6308 * exp_imgv.adb (Expand_Image_Attribute): Treat ordinary fixed point
6309 with decimal small as decimal types, avoiding FP arithmetic.
6310 (Has_Decimal_Small): New function.
6311 * einfo.ads, einfo.adb (Aft_Value): New synthesized attributed for
6313 * sem_attr.adb (Eval_Attribute): Remove Aft_Value function and update
6314 callers to call the new function in Einfo that takes the entity as
6317 2010-06-22 Robert Dewar <dewar@adacore.com>
6319 * sem_ch3.adb, sem_ch8.adb: Minor reformatting.
6321 2010-06-22 Thomas Quinot <quinot@adacore.com>
6323 * sem_elab.adb: Minor reformatting.
6325 2010-06-22 Vincent Celier <celier@adacore.com>
6327 * gnatsym.adb: Put the object files in the table in increasing
6328 aphabetical order of base names.
6330 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6332 * sem_ch8.adb (Set_Entity_Or_Discriminal): New procedure used by
6333 Find_Direct_Name and Find_Expanded_Name, to replace a discriminant with
6334 the corresponding discriminal within a record declaration.
6336 2010-06-22 Thomas Quinot <quinot@adacore.com>
6338 * exp_aggr.adb (Rewrite_Discriminant): Rewriting must occur only for an
6339 expression referring to a discriminal of the type of the aggregate (not
6340 a discriminal of some other unrelated type), and the prefix in the
6341 generated selected component must come from Lhs, not Obj.
6343 2010-06-22 Thomas Quinot <quinot@adacore.com>
6345 * sem_ch3.adb (Build_Derived_Record_Type): Fix predicate determining
6346 when to freeze the parent type.
6348 2010-06-22 Robert Dewar <dewar@adacore.com>
6350 * s-rannum.adb, a-nudira.adb, types.ads, freeze.adb, sem_aggr.adb,
6351 exp_aggr.adb: Minor reformatting.
6352 * gnat_rm.texi: Document GNAT.MBBS_Discrete_Random and
6353 GNAT.MBSS_Float_Random.
6354 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: Fix header.
6356 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6358 * a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-nuflra.ads,
6359 gnat_rm.texi, impunit.adb, Makefile.rtl, s-rannum.adb
6360 (Random_Float_Template, Random): New method of creating
6361 uniform floating-point variables that allow the creation of all machine
6364 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: New file.
6366 2010-06-22 Gary Dismukes <dismukes@adacore.com>
6368 * sem_ch5.adb (Analyze_Assignment): Revise test for illegal assignment
6369 to abstract targets to check that the type is tagged and comes from
6370 source, rather than only testing for targets of interface types. Remove
6373 2010-06-22 Vincent Celier <celier@adacore.com>
6375 * vms_data.ads: Modify the declarations of qualifiers
6376 /UNCHECKED_SHARED_LIB_IMPORTS to allow the generation of gnat.hlp
6379 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6381 * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false if
6382 expansion is disabled.
6384 2010-06-22 Robert Dewar <dewar@adacore.com>
6386 * makeusg.adb: Minor reformatting.
6388 2010-06-22 Robert Dewar <dewar@adacore.com>
6390 * types.ads: (Dint): Removed, no longer used anywhere.
6391 * uintp.adb (UI_From_CC): Use UI_From_Int, range is sufficient.
6392 (UI_Mul): Avoid use of UI_From_Dint.
6393 (UI_From_Dint): Removed, not used.
6394 * uintp.ads (UI_From_Dint): Removed, not used.
6395 (Uint_Min/Max_Simple_Mul): New constants.
6397 2010-06-22 Vincent Celier <celier@adacore.com>
6399 * clean.adb (Parse_Cmd_Line): Recognize switch
6400 --unchecked-shared-lib-imports.
6401 (Usage): Add line for switch --unchecked-shared-lib-imports
6402 * makeusg.adb: Add line for switch --unchecked-shared-lib-imports
6403 * makeutl.ads: (Unchecked_Shared_Lib_Imports): New constant string
6404 moved from GPR_Util.
6405 * switch-m.adb (Scan_Make_Switches): Recognize switch
6406 --unchecked-shared-lib-imports.
6407 * vms_data.ads: Add VMS qualifiers /UNCHECKED_SHARED_LIB_IMPORTS.
6408 * gnat_ugn.texi: Add documentation for new switch
6409 --unchecked-shared-lib-imports. Add also documentation for --subdirs.
6411 2010-06-22 Javier Miranda <miranda@adacore.com>
6413 * sem_prag.adb, sem_util.adb, sem_util.ads, sem_attr.adb, exp_ch6.adb,
6414 exp_disp.adb, sem_eval.adb, exp_dist.adb lib-xref.adb: Code cleanup,
6415 this patch replaces duplication of code that traverses the chain of
6416 aliased primitives by a call to routine Ultimate_Alias that
6417 provides this functionality.
6419 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6421 * fmap.adb, opt.ads, osint.adb, osint.ads, output.ads, scng.adb,
6422 sinput-c.adb, switch-m.ads, tree_io.ads: Use simpler form of
6425 2010-06-22 Thomas Quinot <quinot@adacore.com>
6427 * einfo.ads: Minor reformatting.
6429 2010-06-22 Javier Miranda <miranda@adacore.com>
6431 * exp_disp.adb (Expand_Interface_Thunk): Do not generate thunk of
6432 eliminated primitives.
6433 (Make_DT): Avoid referencing eliminated primitives.
6434 (Register_Primitive): Do not register eliminated primitives in the
6435 dispatch table. Required to add this functionality when the program is
6436 compiled without static dispatch tables (-gnatd.t)
6438 2010-06-22 Emmanuel Briot <briot@adacore.com>
6440 * fmap.adb, scng.adb, switch-m.ads, sinput-c.adb, opt.ads, output.ads,
6441 tree_io.ads, osint.adb, osint.ads: Use configuration pragmas to prevent
6442 warnings on use of internal GNAT units.
6444 2010-06-22 Jose Ruiz <ruiz@adacore.com>
6446 * s-taprop-vxworks.adb (Set_Priority): Update comments.
6448 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6450 * s-rannum.adb: Make stylistic change to remove mystery constant in
6451 Extract_Value. Image_Numeral_Length: new symbolic constant.
6453 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6455 * einfo.ads, einfo.adb: Make Is_Protected_Interface,
6456 Is_Synchronized_Interface, Is_Task_Interface into computable
6457 predicates, to free three flags in entity nodes.
6458 * sem_ch3.adb: Remove setting of these flags.
6460 2010-06-22 Robert Dewar <dewar@adacore.com>
6462 * uintp.adb, osint.adb, prj-conf.adb, prj-part.adb, prj.adb: Minor
6464 * s-taprop-vxworks.adb: Add comment for Set_Priority.
6465 * impunit.adb (Map_Array): Add entries for s-htable.ads and s-crc32.ads
6466 * projects.texi: Move @cindex to the left margin, since otherwise we
6467 are missing entries in the index.
6469 2010-06-22 Emmanuel Briot <briot@adacore.com>
6471 * prj-part.adb, prj.adb, tempdir.ads, makeutl.adb: Use
6472 packages from the GNAT hierarchy instead of System when possible.
6473 * gcc-interface/Make-lang.in: Update dependencies.
6475 2010-06-22 Jose Ruiz <ruiz@adacore.com>
6477 * s-taprop-vxworks.adb (Set_Priority): Remove the code that was
6478 previously in place to reorder the ready queue when a task drops its
6479 priority due to the loss of inherited priority.
6481 2010-06-22 Vincent Celier <celier@adacore.com>
6483 * projects.texi: Minor spelling error fixes.
6486 2010-06-22 Emmanuel Briot <briot@adacore.com>
6488 * prj-part.adb, prj-ext.adb, prj.adb, makeutl.adb, prj-conf.adb: Remove
6489 warnings for some with clauses.
6491 2010-06-22 Robert Dewar <dewar@adacore.com>
6493 * errout.adb (Unwind_Internal_Type): Improve handling of First_Subtype
6494 test to catch more cases where first subtype is the results we want.
6495 * sem_res.adb (Make_Call_Into_Operator): Don't go to First_Subtype in
6496 error case, since Errout will now handle this correctly.
6497 * gcc-interface/Make-lang.in: Add Sem_Aux to list of GNATBIND objects.
6498 Update dependencies.
6500 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6502 * exp_ch4.adb (Expand_Allocator_Expression): Set Related_Node properly
6503 when calling Make_Temporary.
6505 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6507 * sem_ch3.adb (Access_Subprogram_Declaration): An anonymous access to
6508 subprogram can be associated with an entry body.
6510 2010-06-22 Robert Dewar <dewar@adacore.com>
6512 * scos.ads: Add note on membership test handling.
6514 2010-06-22 Vincent Celier <celier@adacore.com>
6516 * projects.texi: Minor spelling fixes.
6519 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6521 * s-rannum.adb: Correct off-by-one error in Extract_Value.
6523 2010-06-22 Vincent Celier <celier@adacore.com>
6525 * mlib-prj.adb (Display): In non verbose mode, truncate after fourth
6527 * mlib-utl.adb (Gcc): In non verbose mode, truncate the display of the
6528 gcc command if it is too long.
6530 2010-06-22 Robert Dewar <dewar@adacore.com>
6532 * errout.adb (Set_Msg_Node): Fix incorrect reference to node.
6534 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6536 * exp_ch6.adb (Expand_Actuals): Use Actual as the related node when
6537 calling Make_Temporary.
6539 2010-06-22 Robert Dewar <dewar@adacore.com>
6541 * sem_res.adb, sem_aux.adb, errout.adb: Minor reformatting.
6543 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6545 * sem_res.adb: Additional special-case for VMS.
6547 2010-06-22 Vincent Celier <celier@adacore.com>
6549 * gnatsym.adb: Minor comment fix.
6551 2010-06-22 Vincent Celier <celier@adacore.com>
6553 * prj-nmsc.adb (Process_Naming_Scheme): Initialize Lib_Data_Table.
6555 2010-06-22 Robert Dewar <dewar@adacore.com>
6557 * par-ch4.adb (P_Name): Recognize 'Mod attribute in Ada 95 mode
6558 * sem_attr.adb (Attribute_05): Add Name_Mod so that 'Mod recognized in
6559 Ada 95 mode as an implementation defined attribute.
6561 2010-06-22 Vincent Celier <celier@adacore.com>
6563 * bindusg.adb (Display): Update line for -R
6564 * switch-b.adb (Scan_Binder_Switches): Allow generation of the binder
6565 generated files when -R is used.
6567 2010-06-22 Vincent Celier <celier@adacore.com>
6569 * prj-nmsc.adb (Lib_Data_Table): New table.
6570 (Check_Library_Attributes): Check if the same library name is used in
6571 two different projects that do not extend each other.
6573 2010-06-22 Robert Dewar <dewar@adacore.com>
6575 * lib-writ.ads, errout.adb, einfo.adb, einfo.ads: Minor reformatting.
6577 2010-06-22 Vincent Celier <celier@adacore.com>
6579 * adaint.c (__gnat_locate_regular_file): If a directory in the path is
6580 empty, make it the current working directory.
6582 2010-06-22 Thomas Quinot <quinot@adacore.com>
6584 * sem_ch3.adb (Build_Derived_Record_Type): When deriving a tagged
6585 private type with discriminants, make sure the parent type is frozen.
6587 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
6589 * exp_attr.adb (Expand_N_Attribute_Reference) <Attribute_Bit>: Deal
6590 with packed array references specially.
6591 * exp_ch4.adb (Expand_N_Indexed_Component): Do not convert a reference
6592 to a component of a bit packed array if it is the prefix of 'Bit.
6593 * exp_pakd.ads (Expand_Packed_Bit_Reference): Declare.
6594 * exp_pakd.adb (Expand_Packed_Bit_Reference): New procedure. Expand a
6595 'Bit reference, where the prefix involves a packed array reference.
6596 (Get_Base_And_Bit_Offset): New helper, extracted from...
6597 (Expand_Packed_Address_Reference): ...here. Call above procedure to
6598 get the outer object and offset expression.
6600 2010-06-22 Thomas Quinot <quinot@adacore.com>
6602 * exp_attr.adb, lib-writ.ads, bindgen.adb: Minor reformatting.
6603 * einfo.adb (Related_Expression, Set_Related_Expression): Add
6606 2010-06-22 Javier Miranda <miranda@adacore.com>
6608 * sem_ch3.adb (Add_Internal_Interface_Entities): Minor code
6609 reorganization to properly check if the operation has been inherited as
6610 an abstract operation.
6612 2010-06-22 Ed Falis <falis@adacore.com>
6614 * s-osinte-vxworks.ads: Complete previous change.
6616 2010-06-22 Thomas Quinot <quinot@adacore.com>
6618 * sem_res.adb: Add comment.
6619 * projects.texi, gnat_ugn.texi: Remove macro.
6621 2010-06-22 Vincent Celier <celier@adacore.com>
6623 * prj-attr.adb: Remove project level attribute Main_Language.
6625 2010-06-22 Robert Dewar <dewar@adacore.com>
6627 * switch-b.adb, osint-b.adb: Minor reformatting.
6629 2010-06-22 Pascal Obry <obry@adacore.com>
6631 * g-socthi-mingw.adb (C_Sendmsg): Do not attempt to send data from a
6632 vector if previous send was not fully successful. If only part of
6633 the vector data was sent, we exit the loop.
6635 2010-06-22 Thomas Quinot <quinot@adacore.com>
6637 * sem_res.adb (Make_Call_Into_Operator): Use First_Subtype for better
6638 error reporting with generic types.
6640 2010-06-22 Thomas Quinot <quinot@adacore.com>
6642 * bindgen.adb, bindusg.adb, gnatbind.adb, gnat_ugn.texi, opt.ads,
6643 osint-b.adb, osint-b.ads, output.adb, output.ads, switch-b.adb,
6644 vms_data.ads: Add a new command line switch -A to gnatbind to output
6645 the list of all ALI files for the partition.
6647 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6649 * s-osinte-vxworks.ads: Fix casing.
6650 * s-vxwext-kernel.ads, s-vxwext-rtp.ads: Complete previous
6651 change: Interfaces.C does not provide a long_long type.
6653 2010-06-22 Emmanuel Briot <briot@adacore.com>
6655 * gnat_ugn.texi, projects.texi: Preprocess projects.texi for VMS and
6656 native user's guide, since this document contains the two versions.
6657 * gcc-interface/Make-lang.in: Update doc dependencies.
6659 2010-06-22 Robert Dewar <dewar@adacore.com>
6661 * sem_ch3.adb: Minor reformatting. Minor code reorganization.
6663 2010-06-22 Emmanuel Briot <briot@adacore.com>
6665 * gnat_ugn.texi, projects.texi: Remove toplevel menu, since we should
6666 not build this file on its own (only through gnat_ugn.texi).
6667 Remove macro definitions and insert simpler version in gnat_ugn.texi.
6669 2010-06-22 Robert Dewar <dewar@adacore.com>
6671 * ali-util.ads: Minor comment update.
6672 * g-socthi-mingw.adb: Minor reformatting.
6674 2010-06-22 Ed Falis <falis@adacore.com>
6676 * s-osinte-vxworks.ads: Take sigset_t definition of System.VxWorks.Ext.
6677 * s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads: Define sigset_t
6678 for specific versions of VxWorks.
6680 2010-06-22 Emmanuel Briot <briot@adacore.com>
6682 * gnat_rm.texi, gnat_ugn.texi, projects.texi: Remove all project files
6683 related sections from user's guide and reference manual, since they
6684 have now been merged together into a separate document (projects.texi).
6685 This removes a lot of duplication where attributes where described
6687 The grammar for the project files is now in each of the sections
6688 (packages,expressions,...) instead of being duplicates in two other
6689 sections (one in the user's guide that contained the full grammar,
6690 and various sections in the rm that contained extracts of the same
6692 Added the full list of all supported attributes, since existing lists
6694 Rename "associative array" into "indexed attribute"
6695 Remove sections that were duplicates ("External References in
6696 Project Files" and "External Values", and "Project Extensions"
6697 for instance). The list of valid packages in project files is now in
6700 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6702 * sem_ch3.adb (Add_Internal_Interface_Entities): If
6703 Find_Primitive_Covering_Interface does not find the operation, it may
6704 be because of a name conflict between the inherited operation and a
6705 local non-overloadable name. In that case look for the operation among
6706 the primitive operations of the type. This search must succeed
6707 regardless of visibility.
6709 2010-06-22 Pascal Obry <obry@adacore.com>
6711 * g-socthi-mingw.adb: Properly honor MSG_WAITALL in recvmsg.
6712 (C_Recvmsg): Propely honor the MSG_WAITALL flag in Windows
6715 2010-06-22 Robert Dewar <dewar@adacore.com>
6717 * sem_ch4.adb (Analyze_Conditional_Expression): Defend against
6719 * sprint.adb (Sprint_Node_Actual, case N_Conditional_Expression):
6722 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6724 * s-intman-vxworks.ads: Code clean up.
6726 2010-06-22 Thomas Quinot <quinot@adacore.com>
6728 * sem_res.adb (Resolve_Slice): When the prefix is an explicit
6729 dereference, construct actual subtype of designated object to generate
6730 proper bounds checks.
6732 2010-06-22 Thomas Quinot <quinot@adacore.com>
6734 * ali-util.adb, ali-util.ads, gnatbind.adb (Read_ALI): Rename to
6735 Read_Withed_ALIs, which is more descriptive.
6737 2010-06-22 Pascal Obry <obry@adacore.com>
6739 * g-sothco.ads: Minor reformatting.
6740 * g-socthi-mingw.adb: Remove part of work on the C_Recvmsg and
6741 C_Sendmsg implementation.
6742 (C_Sendmsg): Do not use lock (not needed).
6743 (C_Recvmsg): Likewise and also do not wait for incoming data.
6745 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6747 * uintp.adb: Fix scope error in operator call.
6749 2010-06-22 Vincent Celier <celier@adacore.com>
6751 * makeutl.adb (Executable_Prefix_Path): on VMS, return "/gnu/".
6752 * prj-conf.adb (Get_Or_Create_Configuration_File): On VMS, if
6753 autoconfiguration is needed, fail indicating that no config project
6754 file can be found, as there is no autoconfiguration on VMS.
6756 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6758 * sem_res.adb (Make_Call_Into_Operator): Diagnose an incorrect scope
6759 for an operator in a functional notation, when operands are universal.
6761 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6763 * gcc-interface/Make-lang.in: Update dependencies.
6765 2010-06-22 Robert Dewar <dewar@adacore.com>
6767 * sem_aggr.adb (Resolve_Record_Aggregate): Do style check on component
6769 * sem_ch10.adb (Analyze_Subunit): Do style check on parent unit name.
6770 * sem_ch8.adb (Find_Direct_Name): For non-overloadable entities, do
6772 * sem_res.adb (Resolve_Entity_Name): Do style check for enumeration
6775 2010-06-22 Vincent Celier <celier@adacore.com>
6777 * make.adb (Scan_Make_Arg): No longer pass -nostdlib to the compiler as
6778 it has no effect. Always pass -nostdlib to gnatlink, even on VMS.
6780 2010-06-22 Pascal Obry <obry@adacore.com>
6782 * g-socthi-mingw.adb: Fix implementation of the vectored sockets on
6784 (C_Recvmsg): Make sure the routine is atomic. Also fully
6785 fill vectors in the proper order.
6786 (C_Sendmsg): Make sure the routine is atomic.
6788 2010-06-22 Robert Dewar <dewar@adacore.com>
6790 * sem_ch8.adb: Update comment.
6791 * sem_res.adb: Minor code reorganization (use Ekind_In).
6793 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6795 * sem_ch8.adb (Add_Implicit_Operator): If the context of the expanded
6796 name is a call, use the number of actuals to determine whether this is
6797 a binary or unary operator, rather than relying on later information
6798 to resolve the overload.
6800 2010-06-22 Robert Dewar <dewar@adacore.com>
6802 * sem_ch10.adb, sem_aggr.adb: Minor reformatting.
6804 2010-06-22 Robert Dewar <dewar@adacore.com>
6806 * sem_ch3.adb, sem_disp.adb: Minor code fixes.
6807 * sem_eval.adb: Minor reformatting.
6809 2010-06-22 Vincent Celier <celier@adacore.com>
6811 * make.adb (Scan_Make_Arg): When invoked with -nostdlib, pass -nostdlib
6812 to gnatlink, except on Open VMS.
6813 * osint.adb (Add_Default_Search_Dirs): Do not suppress the default
6814 object directories if -nostdlib is used.
6816 2010-06-22 Robert Dewar <dewar@adacore.com>
6818 * sem_util.adb (Is_Delegate): Put in proper alpha order.
6819 * sem_eval.adb: Minor reformatting.
6821 2010-06-22 Robert Dewar <dewar@adacore.com>
6823 * g-expect-vms.adb, sem_res.adb: Minor reformatting.
6824 * exp_aggr.adb: Minor comment changes and reformatting.
6825 * sem_eval.adb (Find_Universal_Operator_Type): Put in proper alpha
6827 * sem_util.ads: Add some missing pragma Inline's.
6829 2010-06-22 Thomas Quinot <quinot@adacore.com>
6831 * sem_util.adb (Build_Actual_Subtype): Record original expression in
6832 Related_Expression attribute of the constructed subtype.
6833 * einfo.adb, einfo.ads (Underlying_View): Move to Node28 to free up
6834 Node24 on types for...
6835 (Related_Expression): Make attribute available on types as well.
6837 2010-06-22 Gary Dismukes <dismukes@adacore.com>
6839 * exp_util.adb (Find_Interface_ADT): Retrieve Designated_Type instead
6840 of Directly_Designated_Type when the type argument is an access type.
6841 (Find_Interface_Tag): Retrieve Designated_Type instead of
6842 Directly_Designated_Type when the type argument is an access type.
6843 (Has_Controlled_Coextensions): Retrieve Designated_Type instead of
6844 Directly_Designated_Type of each access discriminant.
6845 * sem_res.adb (Resolve_Type_Conversion): Retrieve Designated_Type
6846 instead of Directly_Designated_Type when the operand and target types
6849 2010-06-22 Thomas Quinot <quinot@adacore.com>
6851 * exp_aggr.adb (Flatten): Return False if one choice is statically
6852 known to be out of bounds.
6854 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6856 * sem_res.adb (Resolve_Call): If the call is rewritten as an indexed of
6857 a parameterless function call, preserve parentheses of original
6858 expression, for proper handling by pretty printer.
6859 * sem_attr.adb (Analyze_Attribute, case 'Old): Add guard to Process
6860 procedure, to handle quietly identifiers that have no entity names.
6861 * exp_util.adb (Get_Current_Value_Condition): If the parent of an
6862 elsif_part is missing, it has been rewritten as a nested if, and there
6863 is no useful information on the current value of the variable.
6865 2010-06-22 Gary Dismukes <dismukes@adacore.com>
6867 * sem_ch3.adb (Build_Discriminal): Set default scopes for newly created
6868 discriminals to the current scope.
6869 * sem_util.adb (Find_Body_Discriminal): Remove setting of discriminal's
6870 scope, which could overwrite a different already set value.
6872 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6874 * sem_res.adb (Valid_Conversion): If expression is a predefined
6875 operator, use sloc of type of interpretation to improve error message
6876 when operand is of some derived type.
6877 * sem_eval.adb (Is_Mixed_Mode_Operand): New function, use it.
6879 2010-06-22 Emmanuel Briot <briot@adacore.com>
6881 * g-expect-vms.adb (Expect_Internal): No longer raises an exception, so
6882 that it can set out parameters as well. When a process has died, reset
6883 its Input_Fd to Invalid_Fd, so that when using multiple processes we
6884 can find out which process has died.
6886 2010-06-22 Thomas Quinot <quinot@adacore.com>
6888 * sem_eval.adb (Find_Universal_Operator_Type): New
6889 subprogram to identify the operand type of an operator on universal
6890 operands, when an explicit scope indication is present. Diagnose the
6891 case where such a call is ambiguous.
6892 (Eval_Arithmetic_Op, Eval_Relational_Op, Eval_Unary_Op):
6893 Use the above to identify the operand type so it can be properly
6895 * sem_res.adb (Make_Call_Into_Operator): Remove bogus freeze of operand
6896 type, done in an arbitrary, possibly incorrect type (the presence of
6897 some numeric type in the scope is checked for legality, but when more
6898 than one such type is in the scope, we just pick a random one, not
6899 necessarily the expected one).
6900 * sem_utils.ads, sem_utils.adb (Is_Universal_Numeric_Type): New utility
6903 2010-06-22 Robert Dewar <dewar@adacore.com>
6905 * sem_eval.adb: Minor reformatting.
6907 2010-06-22 Robert Dewar <dewar@adacore.com>
6909 * exp_ch4.adb (Expand_N_Conditional_Expression): Use
6910 Expression_With_Actions to clean up the code generated when folding
6911 constant expressions.
6913 2010-06-22 Vincent Celier <celier@adacore.com>
6915 * g-expect-vms.adb: Add new subprograms Free, First_Dead_Process and
6918 2010-06-22 Vincent Celier <celier@adacore.com>
6920 * prj-nmsc.adb (Find_Sources): When a source from a multi-unit file is
6921 found, check if it's path has aready been found, whatever its index.
6923 2010-06-22 Robert Dewar <dewar@adacore.com>
6925 * atree.adb, gnatbind.adb: Minor reformatting.
6926 Minor code reorganization.
6928 2010-06-21 Robert Dewar <dewar@adacore.com>
6930 * exp_ch4.adb (Expand_N_Conditional_Expression): Fold if condition
6931 known at compile time.
6933 2010-06-21 Gary Dismukes <dismukes@adacore.com>
6935 * atree.adb: Fix comment typo.
6937 2010-06-21 Ed Schonberg <schonberg@adacore.com>
6939 * sem_eval.adb (Test_Ambiguous_Operator): New procedure to check
6940 whether a universal arithmetic expression in a conversion, which is
6941 rewritten from a function call with an expanded name, is ambiguous.
6943 2010-06-21 Vincent Celier <celier@adacore.com>
6945 * prj-nmsc.adb (Name_Location): New Boolean component Listed, to record
6946 source files in specified list of sources.
6947 (Check_Package_Naming): Remove out parameters Bodies and Specs, as they
6949 (Add_Source): Set the Location of the new source
6950 (Process_Exceptions_File_Based): Call Add_Source with the Location
6951 (Get_Sources_From_File): If an exception is found, set its Listed to
6953 (Find_Sources): When Source_Files is specified, if an exception is
6954 found, set its Listed to True. Remove any exception that is not in a
6955 specified list of sources.
6956 * prj.ads (Source_Data): New component Location
6958 2010-06-21 Vincent Celier <celier@adacore.com>
6960 * gnatbind.adb (Closure_Sources): Global table, moved from block.
6962 2010-06-21 Thomas Quinot <quinot@adacore.com>
6964 * sem_res.adb: Minor reformatting.
6965 * atree.adb: New debugging hook "rr" for node rewrites.
6967 2010-06-21 Robert Dewar <dewar@adacore.com>
6969 * g-expect.ads, g-expect.adb: Minor reformatting.
6971 2010-06-21 Emmanuel Briot <briot@adacore.com>
6973 * s-regpat.adb (Next_Pointer_Bytes): New named constant. Code clean up.
6975 2010-06-21 Arnaud Charlet <charlet@adacore.com>
6977 * gcc-interface/Make-lang.in: Update dependencies.
6979 2010-06-21 Thomas Quinot <quinot@adacore.com>
6981 * bindgen.ads: Update comments.
6983 2010-06-21 Vincent Celier <celier@adacore.com>
6985 * gnatbind.adb: Suppress dupicates when listing the sources in the
6986 closure (switch -R).
6988 2010-06-21 Emmanuel Briot <briot@adacore.com>
6990 * s-regpat.adb (Link_Tail): Fix error when size of the pattern matcher
6993 2010-06-21 Emmanuel Briot <briot@adacore.com>
6995 * g-expect.adb, g-expect.ads (First_Dead_Process, Free, Has_Process):
6997 (Expect_Internal): No longer raises an exception, so that it can set
6998 out parameters as well. When a process has died, reset its Input_Fd
6999 to Invalid_Fd, so that when using multiple processes we can find out
7000 which process has died.
7002 2010-06-21 Robert Dewar <dewar@adacore.com>
7004 * s-regpat.adb, s-tpoben.adb, sem_attr.adb, sem_util.adb, sem_util.ads,
7005 checks.adb, sem_res.adb: Minor reformatting. Add comments.
7007 2010-06-21 Ed Schonberg <schonberg@adacore.com>
7009 * sem_ch6.adb (New_Overloaded_Entity): If the new entity is a
7010 rederivation associated with a full declaration in a private part, and
7011 there is a partial view that derives the same parent subprogram, the
7012 new entity does not become visible. This check must be applied to
7013 interface operations as well.
7015 2010-06-21 Thomas Quinot <quinot@adacore.com>
7017 * checks.adb: Add comments.
7018 * prj-nmsc.adb: Minor reformatting.
7020 2010-06-21 Thomas Quinot <quinot@adacore.com>
7022 * sem_ch9.adb, checks.adb, sem_util.adb, sem_util.ads, sem_res.adb,
7023 sem_attr.adb (Get_E_First_Or_Last): Use attribute references on E to
7024 extract bounds, to ensure that we get the proper captured values,
7025 rather than an expression that may have changed value since the point
7026 where the subtype was elaborated.
7027 (Find_Body_Discriminal): New utility subprogram to share code
7029 (Eval_Attribute): For the case of a subtype bound that references a
7030 discriminant of the current concurrent type, insert appropriate
7031 discriminal reference.
7032 (Resolve_Entry.Actual_Index_Type.Actual_Discriminant_Ref): For a
7033 requeue to an entry in a family in the current task, use corresponding
7035 (Analyze_Accept_Statement): Rely on expansion of attribute references
7036 to insert proper discriminal references in range check for entry in
7039 2010-06-21 Emmanuel Briot <briot@adacore.com>
7041 * s-regpat.adb (Compile): Fix handling of big patterns.
7043 2010-06-21 Robert Dewar <dewar@adacore.com>
7045 * a-tifiio.adb: Minor reformatting.
7047 2010-06-21 Pascal Obry <obry@adacore.com>
7049 * prj-nmsc.adb (Search_Directories): Use the non-translated directory
7052 2010-06-21 Javier Miranda <miranda@adacore.com>
7054 * exp_cg.adb (Write_Call_Info): Fill the component sourcename using the
7057 2010-06-21 Ed Schonberg <schonberg@adacore.com>
7059 * exp_ch4.adb (Expand_Concatenate): If an object declaration is created
7060 to hold the result, indicate that the target of the declaration does
7061 not need an initialization, to prevent spurious errors when
7062 Initialize_Scalars is enabled.
7064 2010-06-21 Ed Schonberg <schonberg@adacore.com>
7066 * a-tifiio.adb (Put): In the procedure that performs I/O on a String,
7067 Fore is not bound by line length. The Fore parameter of the internal
7068 procedure that performs the operation is an integer.
7070 2010-06-21 Thomas Quinot <quinot@adacore.com>
7072 * sem_res.adb, checks.adb: Minor reformatting.
7074 2010-06-21 Emmanuel Briot <briot@adacore.com>
7076 * s-regpat.adb (Next_Instruction, Get_Next_Offset): Removed, merged
7078 (Insert_Operator_Before): New subprogram, avoids duplicated code
7079 (Compile): Avoid doing two compilations when the pattern matcher ends
7082 2010-06-21 Emmanuel Briot <briot@adacore.com>
7084 * s-regpat.adb: Improve debug traces
7085 (Dump): Change output format to keep it smaller.
7087 2010-06-21 Javier Miranda <miranda@adacore.com>
7089 * exp_cg.adb (Generate_CG_Output): Disable redirection of standard
7090 output to the output file when this routine completes its work.
7092 2010-06-20 Eric Botcazou <ebotcazou@adacore.com>
7094 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Use while instead of
7095 for loop. Call build_constructor_from_list directly in the CICO case.
7097 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7099 * freeze.adb (Build_And_Analyze_Renamed_Body): If the renaming
7100 declaration appears in the same unit and ealier than the renamed
7101 entity, retain generated body to prevent order-of-elaboration issues in
7104 2010-06-18 Arnaud Charlet <charlet@adacore.com>
7106 * s-tpoben.adb: Update comments.
7108 2010-06-18 Robert Dewar <dewar@adacore.com>
7110 * debug.adb: Minor comment change.
7112 2010-06-18 Javier Miranda <miranda@adacore.com>
7114 * exp_cg.adb: Code clean up.
7115 * debug.adb: Complete documentation of switch -gnatd.Z.
7116 * gcc-interface/misc.c (callgraph_info_file): Declare.
7118 2010-06-18 Javier Miranda <miranda@adacore.com>
7120 * exp_cg.adb (Homonym_Suffix_Length): Minor code reorganization.
7122 2010-06-18 Thomas Quinot <quinot@adacore.com>
7124 * sprint.ads: Minor reformatting.
7125 * output.ads: Update obsolete comment.
7127 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7129 * freeze.adb (Build_And_Analyze_Renamed_Body): if the renamed entity is
7130 an external intrinsic operation (e.g. a GCC numeric function) indicate
7131 that the renaming entity has the same characteristics, so a call to it
7132 is properly expanded.
7134 2010-06-18 Javier Miranda <miranda@adacore.com>
7136 * exp_cg.adb, exp_cg.ads, exp_disp.adb, gnat1drv.adb: Add initial
7137 support for dispatch table/callgraph info generation.
7138 * gcc-interface/Make-lang.in: Update dependencies.
7140 2010-06-18 Robert Dewar <dewar@adacore.com>
7142 * exp_ch6.adb: Minor reformatting.
7143 * gnatname.adb: Add comment.
7145 2010-06-18 Vincent Celier <celier@adacore.com>
7147 * gnatname.adb (Scan_Args): When --and is used, make sure that the
7148 dynamic tables in the newly allocated Argument_Data are properly
7151 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
7153 * gnat1drv.adb: Fix comment.
7155 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7157 * exp_ch6.adb (Expand_Inlined_Call): If the inlined subprogram is a
7158 renaming, re-expand the call with the renamed subprogram if that one
7159 is marked inlined as well.
7161 2010-06-18 Gary Dismukes <dismukes@adacore.com>
7163 * gnat1drv.adb (Adjust_Global_Switches): Enable
7164 Use_Expression_With_Actions for AAMP and VM targets.
7166 2010-06-18 Vincent Celier <celier@adacore.com>
7168 * prj-nmsc.adb (Process_Linker): Recognize response file format GCC.
7170 2010-06-18 Thomas Quinot <quinot@adacore.com>
7172 * exp_ch4.adb: Minor reformatting.
7174 2010-06-18 Javier Miranda <miranda@adacore.com>
7176 * debug.ads Add documentation on -gnatd.Z.
7178 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7180 * sem_elim.adb: Proper error message on improperly eliminated instances
7182 2010-06-18 Vincent Celier <celier@adacore.com>
7184 * prj.ads (Response_File_Format): New value GCC.
7186 2010-06-18 Thomas Quinot <quinot@adacore.com>
7188 * gnat1drv.adb: Minor reformatting.
7190 2010-06-18 Robert Dewar <dewar@adacore.com>
7192 * make.adb, sem_cat.adb: Minor reformatting.
7193 * sem_eval.adb: Fix typos.
7195 2010-06-18 Pascal Obry <obry@adacore.com>
7197 * prj-nmsc.adb: Fix source filenames casing in debug output.
7199 2010-06-18 Robert Dewar <dewar@adacore.com>
7201 * gnatcmd.adb: Minor reformatting.
7203 2010-06-18 Robert Dewar <dewar@adacore.com>
7205 * sem_eval.adb (Eval_Conditional_Expression): Result is static if
7206 condition and both sub-expressions are static (and result is selected
7209 2010-06-18 Robert Dewar <dewar@adacore.com>
7211 * g-pehage.adb: Minor reformatting
7213 2010-06-18 Pascal Obry <obry@adacore.com>
7215 * prj-nmsc.adb (Search_Directories): Insert canonical filenames into
7218 2010-06-18 Arnaud Charlet <charlet@adacore.com>
7220 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
7221 dependencies. Fix target pairs on darwin.
7222 (gnatlib-sjlj, gnatlib-zcx): Pass THREAD_KIND.
7224 2010-06-18 Pascal Obry <obry@adacore.com>
7226 * make.adb, prj-nmsc.adb: Fix source filenames casing in debug output.
7228 2010-06-18 Vincent Celier <celier@adacore.com>
7230 * gnatcmd.adb: For gnatcheck, add -gnatec= switch for a global
7231 configuration pragmas file and, if -U is not used, for a local one.
7233 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7235 * sem_elim.adb (Check_Eliminated): Use full information on entity name
7236 when it is given in the pragma by a selected component.
7237 (Check_For_Eliminated_Subprogram): Do no emit error if within a
7238 instance body that is itself within a generic unit.
7239 * sem_ch12.adb (Analyze_Subprogram_Instance): If the subprogram is
7240 eliminated, mark as well the anonymous subprogram that is its alias
7241 and appears within the wrapper package.
7243 2010-06-18 Bob Duff <duff@adacore.com>
7245 * g-pehage.ads, g-pehage.adb (Produce): Clean up some of the code.
7246 Raise an exception if the output file cannot be opened. Add comments.
7248 2010-06-18 Thomas Quinot <quinot@adacore.com>
7250 * sem_cat.adb (Validate_Object_Declaration): A variable declaration is
7251 not illegal per E.2.2(7) if it occurs in the private part of a
7254 2010-06-18 Arnaud Charlet <charlet@adacore.com>
7256 * par-ch9.adb, sem_aggr.adb, sem_ch3.adb, layout.adb, sem_ch4.adb,
7257 sem_ch5.adb, sem_mech.adb, exp_util.adb, par-ch10.adb, sem_ch6.adb,
7258 par-ch11.adb, sem_ch7.adb, par-prag.adb, exp_disp.adb, par-ch12.adb,
7259 sem_ch8.adb, style.adb, sem_ch9.adb, sem_ch10.adb, prep.adb,
7260 sem_warn.adb, par-util.adb, scng.adb, sem_eval.adb, checks.adb,
7261 sem_prag.adb, sem_ch12.adb, styleg.adb, sem_ch13.adb, par-ch3.adb,
7262 par-tchk.adb, freeze.adb, sfn_scan.adb, par-ch4.adb, sem_util.adb,
7263 sem_res.adb, par-ch5.adb, lib-xref.adb, sem_attr.adb, par-ch6.adb,
7264 sem_disp.adb, prepcomp.adb, par-ch7.adb, sem_elab.adb, exp_ch4.adb,
7265 errout.ads: Update comments. Minor reformatting.
7267 * g-spipat.adb, a-swunau.adb, a-swunau.ads, g-spitbo.adb,
7268 a-szunau.adb, a-szunau.ads, a-stunau.adb, a-stunau.ads,
7269 a-strunb.adb (Big_String. Big_String_Access): New type.
7271 * par-labl.adb, restrict.adb, s-osinte-hpux-dce.ads, sem_ch11.adb,
7272 exp_pakd.adb, s-filofl.ads, par-endh.adb, exp_intr.adb, sem_cat.adb,
7273 sem_case.adb, exp_ch11.adb, s-osinte-linux.ads: Fix copyright notices.
7275 2010-06-18 Geert Bosch <bosch@adacore.com>
7277 * i-forbla-darwin.adb: Include -lgnala and -lm in linker options for
7280 2010-06-18 Robert Dewar <dewar@adacore.com>
7282 * gnat1drv.adb (Adjust_Global_Switches): Set Use_Expression_With_Actions
7285 2010-06-18 Robert Dewar <dewar@adacore.com>
7287 * sprint.adb: Minor format change for N_Expression_With_Actions.
7288 * repinfo.adb: Minor reformatting.
7290 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7292 * sem_elim.adb (Check_Eliminated): If within a subunit, use
7293 Defining_Entity to obtain the name of the entity in the proper body, to
7294 properly handle both separate packages and subprograms.
7296 2010-06-18 Emmanuel Briot <briot@adacore.com>
7298 * prj-nmsc.adb (Check_File): New parameter Display_Path.
7300 2010-06-18 Thomas Quinot <quinot@adacore.com>
7302 * g-socket.adb, g-socket.ads (Null_Selector): New object.
7304 2010-06-18 Pascal Obry <obry@adacore.com>
7306 * gnat_ugn.texi: Minor clarification.
7308 2010-06-18 Emmanuel Briot <briot@adacore.com>
7310 * prj-nmsc.adb (Find_Source_Dirs): Minor refactoring to avoid duplicate
7311 code when using the project dir as the source dir.
7312 (Search_Directories): use the normalized name for the source directory,
7313 where symbolic names have potentially been resolved.
7315 2010-06-18 Robert Dewar <dewar@adacore.com>
7317 * exp_ch4.adb (Expand_N_Conditional_Expression): Clear Actions field
7318 when we create N_Expression_With_Actions node.
7319 (Expand_Short_Circuit): Ditto.
7321 2010-06-18 Robert Dewar <dewar@adacore.com>
7323 * exp_util.adb: Minor reformatting.
7325 2010-06-18 Thomas Quinot <quinot@adacore.com>
7327 * types.ads: Clean up obsolete comments
7328 * tbuild.adb: Minor reformatting.
7329 * exp_ch5.adb, sem_intr.adb, sem_ch10.adb, rtsfind.adb, s-shasto.adb,
7330 exp_strm.adb, aa_drive.adb: Minor reformatting.
7331 * sem_res.adb (Is_Predefined_Operator): An operator that is an imported
7332 intrinsic with an Interface_Name denotes an imported back-end builtin,
7333 and must be rewritten into a call, not left in the tree as an operator,
7334 so return False in that case.
7336 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
7338 * exp_util.adb (Remove_Side_Effects): Make a copy for an allocator.
7340 2010-06-18 Robert Dewar <dewar@adacore.com>
7342 * scos.ads: Add proposed output for case expression
7344 2010-06-18 Jose Ruiz <ruiz@adacore.com>
7346 * gnat_ugn.texi: Document that, when using the RTX compiler to generate
7347 RTSS modules, we need to use the Microsoft linker.
7349 2010-06-18 Robert Dewar <dewar@adacore.com>
7351 * checks.adb (Safe_To_Capture_In_Parameter_Value): Deal with case
7352 expression (cannot count on a particular branch being executed).
7353 * exp_ch4.adb (Expand_N_Case_Expression): New procedure.
7354 * exp_ch4.ads (Expand_N_Case_Expression): New procedure.
7355 * exp_util.adb (Insert_Actions): Deal with proper insertion of actions
7356 within case expression.
7357 * expander.adb (Expand): Add call to Expand_N_Case_Expression
7358 * par-ch4.adb Add calls to P_Case_Expression at appropriate points
7359 (P_Case_Expression): New procedure
7360 (P_Case_Expression_Alternative): New procedure
7361 * par.adb (P_Case_Expression): New procedure
7362 * par_sco.adb (Process_Decisions): Add dummy place holder entry for
7364 * sem.adb (Analyze): Add call to Analyze_Case_Expression
7365 * sem_case.ads (Analyze_Choices): Also used for case expressions now,
7366 this is a documentation change only.
7367 * sem_ch4.ads, sem_ch4.adb (Analyze_Case_Expression): New procedure.
7368 * sem_ch6.adb (Fully_Conformant_Expressions): Add handling of case
7370 * sem_eval.ads, sem_eval.adb (Eval_Case_Expression): New procedure.
7371 * sem_res.adb (Resolve_Case_Expression): New procedure.
7372 * sem_scil.adb (Find_SCIL_Node): Add processing for
7373 N_Case_Expression_Alternative.
7374 * sinfo.ads, sinfo.adb (N_Case_Expression): New node.
7375 (N_Case_Expression_Alternative): New node.
7376 * sprint.adb (Sprint_Node_Actual): Add processing for new nodes
7377 N_Case_Expression and N_Case_Expression_Alternative.
7379 2010-06-18 Robert Dewar <dewar@adacore.com>
7381 * par-ch7.adb, sem_warn.adb, types.ads, par-ch3.adb: Minor
7383 * gnat1drv.adb: Fix typo.
7385 2010-06-18 Robert Dewar <dewar@adacore.com>
7387 * par-prag.adb (Prag, case Style_Checks): All_Checks sets gnat style
7389 * sem_prag.adb (Analyze_Pragma, case Style_Checks): All_Checks sets
7390 gnat style for -gnatg.
7391 * gnat_rm.texi: Add documentation for ALL_CHECKS in GNAT mode.
7393 2010-06-18 Thomas Quinot <quinot@adacore.com>
7395 * sem_eval.adb (Test_In_Range): New subprogram, factoring duplicated
7397 (Is_In_Range, Is_Out_Of_Range): Reimplement in terms of call to
7400 2010-06-18 Robert Dewar <dewar@adacore.com>
7402 * sprint.adb: Minor change in output format for expression wi actions.
7403 * par-ch3.adb: Minor code reorganization. Minor reformatting.
7404 * sem_ch5.adb: Minor comment fix.
7406 2010-06-18 Robert Dewar <dewar@adacore.com>
7408 * debug.adb: New debug flag -gnatd.L to control
7409 Back_End_Handles_Limited_Types.
7410 * exp_ch4.adb (Expand_N_Conditional_Expression): Let back end handle
7411 limited case if Back_End_Handles_Limited_Types is True.
7412 (Expand_N_Conditional_Expression): Use N_Expression_With_Actions to
7413 simplify expansion if Use_Expression_With_Actions is True.
7414 * gnat1drv.adb (Adjust_Global_Switches): Set
7415 Back_End_Handles_Limited_Types.
7416 * opt.ads (Back_End_Handles_Limited_Types): New flag.
7418 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7420 * sem_res.adb (Rewrite_Operator_As_Call): Do not rewrite user-defined
7421 intrinsic operator if expansion is not enabled, because in an
7422 instantiation the original operator must be present to verify the
7423 legality of the operation.
7425 2010-06-18 Robert Dewar <dewar@adacore.com>
7427 * exp_disp.adb, sem_ch12.adb: Minor reformatting
7429 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7431 * exp_util.adb (Make_Subtype_From_Expr): If the unconstrained type is
7432 the class-wide type for a private extension, and the completion is a
7433 subtype, set the type of the class-wide type to the base type of the
7436 2010-06-18 Robert Dewar <dewar@adacore.com>
7438 * g-socket.ads, sem_aggr.adb, einfo.ads, sem_elim.adb,
7439 sem_intr.adb, sem_eval.adb: Minor reformatting
7441 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7443 * sem_type.adb (Is_Ancestor): If either type is private, examine full
7446 2010-06-18 Thomas Quinot <quinot@adacore.com>
7448 * g-socket.adb, g-socket.ads (Check_Selector): Make Selector an IN
7449 parameter rather than IN OUT.
7451 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7453 * exp_ch6.adb: Add extra guard.
7455 2010-06-18 Gary Dismukes <dismukes@adacore.com>
7457 * sem_util.adb (Object_Access_Level): For Ada 2005, determine the
7458 accessibility level of a function call from the level of the innermost
7459 enclosing dynamic scope.
7460 (Innermost_Master_Scope_Depth): New function to find the depth of the
7461 nearest dynamic scope enclosing a node.
7463 2010-06-18 Tristan Gingold <gingold@adacore.com>
7465 * adaint.c: Make ATTR_UNSET static as it is not used outside this file.
7467 2010-06-18 Thomas Quinot <quinot@adacore.com>
7469 * g-socket.ads: Minor reformatting.
7471 2010-06-18 Vincent Celier <celier@adacore.com>
7473 * make.adb (Must_Compile): New Boolean global variable
7474 (Main_On_Command_Line): New Boolean global variable
7475 (Collect_Arguments_And_Compile): Do compile if Must_Compile is True,
7476 even when the project is externally built.
7477 (Start_Compile_If_Possible): Compile in -aL directories if
7478 Check_Readonly_Files is True. Do compile if Must_Compile is True, even
7479 when the project is externally built.
7480 (Gnatmake): Set Must_Compile and Check_Readonly_Files to True when
7481 invoked with -f -u and one or several mains on the command line.
7482 (Scan_Make_Arg): Set Main_On_Command_Line to True when at least one
7483 main is specified on the command line.
7485 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7487 * sem_ch6.adb (Build_Body_For_Inline): Handle
7488 extended_return_statements.
7489 * exp_ch6.adb (Expand_Inlined_Call): when possible, inline a body
7490 containing extented_return statements.
7491 * exp_util.adb (Make_CW_Equivalent_Type): If the root type is already
7492 constrained, do not build subtype declaration.
7494 2010-06-18 Robert Dewar <dewar@adacore.com>
7496 * sem_res.adb (Analyze_Indexed_Component, Analyze_Selected_Component):
7497 Warn on assigning to packed atomic component.
7499 2010-06-18 Robert Dewar <dewar@adacore.com>
7501 * sem_util.ads: Minor reformatting
7502 * einfo.ads, einfo.adb: Minor doc clarification (scope of decls in
7503 Expression_With_Actions).
7504 * snames.ads-tmpl: Minor comment fix
7506 2010-06-18 Robert Dewar <dewar@adacore.com>
7508 * sem_prag.adb (Diagnose_Multiple_Pragmas): New procedure
7509 (Set_Imported): Use Import_Interface_Present to control message output
7510 * sinfo.ads, sinfo.adb (Import_Interface_Present): New flag
7511 * gnat_rm.texi: Document that we can have pragma Import and pragma
7512 Interface for the same subprogram.
7514 2010-06-18 Robert Dewar <dewar@adacore.com>
7516 * lib-xref.adb (Generate_Reference): Fix bad reference to
7517 Has_Pragma_Unreferenced (clients should always use Has_Unreferenced).
7519 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7521 * gcc-interface/trans.c (set_gnu_expr_location_from_node): New static
7523 (gnat_to_gnu) <N_Expression_With_Actions>: New case.
7524 Use set_gnu_expr_location_from_node to set location information on the
7527 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7529 * gcc-interface/Make-lang.in: Update dependencies.
7531 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7533 * sem_util.adb (Is_Atomic_Object): Predicate does not apply to
7536 2010-06-17 Robert Dewar <dewar@adacore.com>
7538 * gnat_rm.texi, gnat_ugn.texi: Clean up documentation on warning and
7539 style check messages.
7540 * sem_res.adb (Resolve_Call): Don't call
7541 Check_For_Eliminated_Subprogram if we are analyzing within a spec
7544 2010-06-17 Robert Dewar <dewar@adacore.com>
7546 * debug.adb: Add documentation for debug flags .X and .Y
7547 * exp_ch4.adb (Expand_Short_Circuit_Operator): Use
7548 Use_Expression_With_Actions.
7549 * gnat1drv.adb (Adjust_Global_Switches): Set
7550 Use_Expression_With_Actions.
7551 * opt.ads (Use_Expression_With_Actions): New switch.
7553 2010-06-17 Robert Dewar <dewar@adacore.com>
7555 * exp_intr.adb: Minor code reorganization (use UI_Max)
7556 * sem_intr.adb: use underlying type to check legality.
7557 * einfo.adb (Known_Static_Esize): False for generic types
7558 (Known_Static_RM_Size): False for generic types
7559 * einfo.ads (Known_Static_Esize): False for generic types
7560 (Known_Static_RM_Size): False for generic types
7562 2010-06-17 Robert Dewar <dewar@adacore.com>
7564 * exp_ch4.ads: Minor code reorganization (specs in alpha order).
7566 2010-06-17 Robert Dewar <dewar@adacore.com>
7568 * debug.adb: New debug flag -gnatd.X to use Expression_With_Actions
7569 node when expanding short circuit form with actions present for right
7571 * exp_ch4.adb: Minor reformatting
7572 (Expand_Short_Circuit_Operator): Use new Expression_With_Actions node
7573 if right opeand has actions present, and debug flag -gnatd.X is set.
7574 * exp_util.adb (Insert_Actions): Handle case of Expression_With_Actions
7576 * nlists.adb (Prepend_List): New procedure
7577 (Prepend_List_To): New procedure
7578 * nlists.ads (Prepend_List): New procedure
7579 (Prepend_List_To): New procedure
7580 * sem.adb: Add processing for Expression_With_Actions
7581 * sem_ch4.adb (Analyze_Expression_With_Actions): New procedure
7582 * sem_ch4.ads (Analyze_Expression_With_Actions): New procedure
7583 * sem_res.adb: Add processing for Expression_With_Actions.
7584 * sem_scil.adb: Add processing for Expression_With_Actions
7585 * sinfo.ads, sinfo.adb (N_Expression_With_Actions): New node.
7586 * sprint.ads, sprint.adb: Add processing for Expression_With_Actions
7588 2010-06-17 Doug Rupp <rupp@adacore.com>
7590 * sem_intr.adb (Check_Intrinsic_Operator): Check that the types
7591 involved both have underlying integer types.
7592 * exp_intr.adb (Expand_Binary_Operator) New subprogram to expand a call
7593 to an intrinsic operator when the operand types or sizes are not
7595 * s-auxdec-vms_64.ads: Revert "+" "-" ops back to Address now that
7596 64/32 Address/Integer works.
7598 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7600 * sem_ch12.adb (Mark_Context): Refine placement of Withed_Body flag, so
7601 that it marks a unit as needed by a spec only if the corresponding
7602 instantiation appears in that spec (and not in the corresponding body).
7603 * sem_elim.adb (Check_Eliminated): If we are within a subunit, the name
7604 in the pragma Eliminate has been parsed as a child unit, but the
7605 current compilation unit is in fact the parent in which the subunit is
7608 2010-06-17 Vincent Celier <celier@adacore.com>
7610 * gnat_rm.texi: Fix typo
7612 2010-06-17 Robert Dewar <dewar@adacore.com>
7614 * sem_util.adb: Minor reformatting
7616 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7618 * sem.adb (Do_Withed_Unit): if the unit in the with_clause is a generic
7619 instance, the clause now denotes the instance body. Traverse the
7620 corresponding spec because there may be no other dependence that will
7621 force the traversal of its own context.
7623 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7625 * sem_ch10.adb (Is_Ancestor_Unit): Subsidiary to
7626 Install_Limited_Context_Clauses, to determine whether a limited_with in
7627 some parent of the current unit designates some other parent, in which
7628 case the limited_with clause must not be installed.
7629 (In_Context): Refine test.
7631 2010-06-17 Gary Dismukes <dismukes@adacore.com>
7633 * sem_util.adb (Collect_Primitive_Operations): In the of an untagged
7634 type with a dispatching equality operator that is overridden (for a
7635 tagged full type), don't include the overridden equality in the list of
7636 primitives. The overridden equality is detected by testing for an
7637 Aliased field that references the overriding equality.
7639 2010-06-17 Robert Dewar <dewar@adacore.com>
7641 * freeze.adb: Minor reformatting.
7643 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
7645 * gnat_ugn.texi: Add a section introducing gdbserver.
7647 2010-06-17 Thomas Quinot <quinot@adacore.com>
7649 * sem_res.adb, sem_ch4.adb, s-stoele.adb, par-labl.adb: Minor
7652 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7654 * sem_aggr.adb (Valid_Ancestor_Type): handle properly the case of a
7655 constrained discriminated parent that is a private type.
7656 (Analyze_Record_Aggregate): when collecting inherited discriminants,
7657 handle properly an ancestor type that is a constrained private type.
7659 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7661 * sem_util.adb (Enclosing_Subprogram): If the called subprogram is
7662 protected, use the protected_subprogram_body only if the original
7663 subprogram has not been eliminated.
7665 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7667 * freeze.adb (Freeze_Expression): The designated type of an
7668 access_to_suprogram type can only be frozen if all types in its profile
7671 2010-06-17 Robert Dewar <dewar@adacore.com>
7673 * par.adb: Minor comment fix
7674 * sem_aggr.adb, sem_ch3.adb: Minor reformatting
7676 2010-06-17 Doug Rupp <rupp@adacore.com>
7678 * s-auxdec-vms_64.ads: Revert Integer to Long_Integer change, instead
7679 change Address to Short_Address in functions where both must be the
7680 same size for intrinsics to work.
7682 2010-06-17 Thomas Quinot <quinot@adacore.com>
7684 * sem_ch4.adb (Analyze_Selected_Component): A selected component may
7685 not denote a (private) component of a protected object.
7687 2010-06-17 Bob Duff <duff@adacore.com>
7689 * par-labl.adb (Try_Loop): Test whether the label and the goto are in
7692 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
7694 * gnat_ugn.texi: Update the documentation about GDB re: exception
7697 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7699 * gnatvsn.ads: Bump to 4.6 version.
7701 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7703 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): The
7704 designated type of the generated pointer is the type of the original
7705 expression, not that of the function call itself, because the return
7706 type may be an untagged derived type and the function may be an
7707 inherited operation.
7709 2010-06-17 Robert Dewar <dewar@adacore.com>
7711 * exp_ch4.adb: Minor reformatting.
7713 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7715 * sinfo.ads, sinfo.adb (Inherited_Discriminant): New flag on
7716 N_Component_Association nodes, to indicate that a component association
7717 of an extension aggregate denotes the value of a discriminant of an
7718 ancestor type that has been constrained by the derivation.
7719 * sem_aggr.adb (Discr_Present): use Inherited_Discriminant to prevent a
7720 double expansion of the aggregate appearing in a context that delays
7721 expansion, to prevent double insertion of discriminant values when the
7722 aggregate is reanalyzed.
7724 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7726 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Do not use
7727 Allocator as the Related_Node of Return_Obj_Access in call to
7728 Make_Temporary below as this would create a sort of infinite
7731 2010-06-17 Ben Brosgol <brosgol@adacore.com>
7733 * gnat_ugn.texi: Update gnatcheck doc.
7735 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7737 * sem_ch3.adb (Build_Incomplete_Type_Declaration): If there is an
7738 incomplete view of the type that is not tagged, and the full type is a
7739 tagged extension, create class_wide type now, and warn that the
7740 incomplete view should be tagged as well.
7742 2010-06-17 Vincent Celier <celier@adacore.com>
7744 * gnatcmd.adb (Non_VMS_Usage): Do not issue usage for gnat sync.
7745 Update the last line of the usage, indicating what commands do not
7746 accept project file switches.
7747 * vms_conv.adb: Do not issue usage line for GNAT SYNC
7748 * vms_data.ads: Fix errors in the qualifiers /LOGFILE and /MAIN of
7750 * gnat_ugn.texi: Document the relaxed rules for library directories in
7751 externally built library projects.
7753 2010-06-17 Doug Rupp <rupp@adacore.com>
7755 * s-auxdec-vms_64.ads: Make boolean and arithmetic operations intrinsic
7757 * s-auxdec-vms-alpha.adb: Remove kludges for aforemention.
7758 * gcc-interface/Makefile.in: Update VMS target pairs.
7760 2010-06-17 Vasiliy Fofanov <fofanov@adacore.com>
7762 * adaint.c: Reorganized in order to avoid use of GetProcessId to stay
7763 compatible with Windows NT 4.0 which doesn't provide this function.
7765 2010-06-17 Vincent Celier <celier@adacore.com>
7767 * ali-util.adb (Time_Stamp_Mismatch): In Verbose mode, if there is
7768 different timestamps but the checksum is the same, issue a short
7771 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7773 * s-interr.adb (Finalize): If the Abort_Task signal is set to system,
7774 it means that we cannot reset interrupt handlers since this would
7775 require potentially sending the abort signal to the Server_Task.
7777 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7779 * exp_ch4.adb: expand NOT for VMS types.
7780 * sem_util.adb: Use OpenVMS_On_Target for IS_VMS_Operator.
7782 2010-06-17 Sergey Rybin <rybin@adacore.com>
7784 * vms_data.ads: Add qualifier for '--no-elim-dispatch' gnatelim option.
7785 * gnat_ugn.texi (gnatelim): add description for --no-elim-dispatch
7788 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7790 * exp_ch6.adb (Expand_Call): Do not expand a call to an internal
7791 protected operation if the subprogram has been eliminated.
7793 2010-06-17 Vincent Celier <celier@adacore.com>
7795 * prj-nmsc.adb (Check_Library_Attributes): Allow the different
7796 directories associated with a library to be any directory when the
7797 library project is externally built.
7799 2010-06-17 Vincent Celier <celier@adacore.com>
7801 * make.adb (Check): If switch -m is used, deallocate the memory that
7802 may be allocated when computing the checksum.
7804 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7806 * g-socthi-mingw.adb (C_Recvmsg): Add 'use type' clause for C.size_t;
7807 (C_Sendmsg): Likewise.
7809 2010-06-17 Thomas Quinot <quinot@adacore.com>
7811 * sem_res.adb: Update comments.
7813 2010-06-17 Vincent Celier <celier@adacore.com>
7815 * back_end.adb (Scan_Compiler_Arguments): Process last argument
7817 2010-06-17 Robert Dewar <dewar@adacore.com>
7819 * exp_ch3.adb, exp_ch6.adb, exp_smem.adb, exp_util.adb: Use Ekind_In.
7820 * layout.adb, freeze.adb: Use Make_Temporary.
7822 2010-06-17 Jerome Lambourg <lambourg@adacore.com>
7824 * exp_ch11.adb (Expand_N_Raise_Statement): Expand raise statements in
7825 .NET/JVM normally as this is now perfectly supported by the backend.
7827 2010-06-17 Pascal Obry <obry@adacore.com>
7829 * gnat_rm.texi: Fix minor typo, remove duplicate blank lines.
7831 2010-06-17 Vincent Celier <celier@adacore.com>
7833 * make.adb (Collect_Arguments_And_Compile): Create include path file
7834 only when -x is specified.
7836 * opt.ads (Use_Include_Path_File): New Boolean flag, initialized to
7838 * prj-env.adb (Set_Ada_Paths): New Boolean parameters Include_Path and
7839 Objects_Path, defaulted to True. Only create include path file if
7840 Include_Path is True, only create objects path file if Objects_Path is
7842 * prj-env.ads (Set_Ada_Paths): New Boolean parameters Include_Path and
7843 Objects_Path, defaulted to True.
7844 * switch-m.adb (Scan_Make_Switches): Set Use_Include_Path_File to True
7847 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7849 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
7850 determine whether it has the controlling type, when the formal is an
7853 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7855 * s-crtl.ads (ssize_t): New type.
7856 (read): Fix signature.
7858 * g-socthi.ads: Add 'with System.CRTL' clause. Remove ssize_t and
7859 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7860 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7861 (C_Sendmsg): Likewise.
7862 * g-socthi.adb (Syscall_Recvmsg): Likewise.
7863 (Syscall_Sendmsg): Likewise.
7864 (C_Recvmsg): Likewise.
7865 (C_Sendmsg): Likewise.
7866 * g-socthi-mingw.ads: Add 'with System.CRTL' clause. Remove ssize_t
7867 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7868 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7869 (C_Sendmsg): Likewise.
7870 * g-socthi-mingw.adb (C_Recvmsg): Likewise.
7871 (C_Sendmsg): Likewise.
7872 * g-socthi-vms.ads: Add 'with System.CRTL' clause. Remove ssize_t and
7873 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7874 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7875 (C_Sendmsg): Likewise.
7876 * g-socthi-vms.adb (C_Recvmsg): Likewise.
7877 (C_Sendmsg): Likewise.
7878 * g-socthi-vxworks.ads Add 'with System.CRTL' clause. Remove ssize_t
7879 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7880 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7881 (C_Sendmsg): Likewise.
7882 * g-socthi-vxworks.adb (C_Recvmsg): Likewise.
7883 (C_Sendmsg): Likewise.
7884 * g-sercom-linux.adb (Read): Use correct types to call 'read'.
7885 (Write): Likewise to call 'write'.
7886 * s-os_lib.adb (Read): Use correct type to call System.CRTL.read.
7887 (Write): Use correct type to call System.CRTL.write.
7888 * s-tasdeb.adb (Write): Likewise.
7890 2010-06-17 Vincent Celier <celier@adacore.com>
7892 * prj-proc.adb (Copy_Package_Declarations): Change argument name
7893 Naming_Restricted to Restricted. If Restricted is True, do not copy the
7894 value of attribute Linker_Options.
7896 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7898 * gcc-interface/trans.c (push_stack, pop_stack): Delete.
7899 (Case_Statement_to_gnu): Adjust.
7900 (Loop_Statement_to_gnu): Likewise.
7901 (Subprogram_Body_to_gnu): Likewise.
7902 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
7903 (Compilation_Unit_to_gnu): Likewise.
7905 2010-06-17 Robert Dewar <dewar@adacore.com>
7907 * exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb, exp_prag.adb,
7908 exp_sel.adb, exp_util.adb, sem_ch10.adb, sem_ch12.adb, sem_ch13.adb,
7909 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb, sem_ch9.adb,
7910 sem_dist.adb, sem_util.adb: Use Make_Temporary
7911 * itypes.ads, tbuild.ads: Minor comment update
7912 * exp_ch9.adb, exp_dist.adb: Minor reformatting
7914 2010-06-17 Thomas Quinot <quinot@adacore.com>
7916 * exp_imgv.adb, exp_ch7.ads: Minor reformatting.
7918 2010-06-17 Robert Dewar <dewar@adacore.com>
7920 * exp_ch9.adb, exp_disp.adb, exp_dist.adb: Use Make_Temporary.
7922 2010-06-17 Thomas Quinot <quinot@adacore.com>
7924 * sprint.adb (pg): Set Dump_Freeze_Null, to be consistent with -gnatdg.
7926 2010-06-17 Robert Dewar <dewar@adacore.com>
7928 * exp_ch6.adb, exp_ch7.adb, exp_ch5.adb: Use Make_Temporary
7929 * tbuild.ads (Make_Temporary): More comment updates
7930 * tbuild.adb: Minor reformatting
7932 2010-06-17 Robert Dewar <dewar@adacore.com>
7934 * checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch11.adb,
7935 exp_ch3.adb, exp_ch4.adb: Minor code reorganization.
7937 * tbuild.ads, tbuild.adb (Make_Temporary): Clean up, use Entity_Id
7939 (Make_Temporary): Add more extensive documentation
7941 2010-06-17 Robert Dewar <dewar@adacore.com>
7943 * sem_intr.adb, sem_prag.adb, sem_res.adb, sem_type.adb, sem_util.adb,
7944 sem_warn.adb, sem_eval.adb: Minor reformatting. Use Ekind_In.
7945 (Set_Slice_Subtype): Explicitly freeze the slice's itype at the point
7946 where the slice's actions are inserted.
7947 (Decompose_Expr): Account for possible rewriting of slice bounds
7948 resulting from side effects suppression caused by the above freezing,
7949 so that folding of bounds is preserved by such rewriting.
7951 2010-06-17 Robert Dewar <dewar@adacore.com>
7953 * einfo.ads, einfo.adb (Get_Record_Representation_Clause): New
7955 * freeze.adb (Freeze_Record_Type): Add call to
7956 Check_Record_Representation_Clause.
7957 * sem_ch13.adb (Check_Record_Representation_Clause): New function
7958 (Analyze_Record_Representation_Clause): Split out overlap code into
7960 (Check_Component_Overlap): Moved inside
7961 Check_Record_Representation_Clause.
7962 * sem_ch13.ads (Check_Record_Representation_Clause): New function.
7964 2010-06-17 Robert Dewar <dewar@adacore.com>
7966 * back_end.adb, sem_res.adb, switch-c.adb, sem_scil.adb: Minor
7968 * sem_attr.adb, sem_cat.adb, sem_disp.adb, sem_elab.adb, sem_elim.adb,
7969 sem_eval.adb: Use Ekind_In
7971 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7973 * sem_ch8.adb: better error message for illegal inherited discriminant
7975 2010-06-17 Vincent Celier <celier@adacore.com>
7977 * bindusg.adb: Remove lines for -A and -C
7978 * gnat_ugn.texi: Remove all documentation and examples of switches -A
7979 and -C for gnatbind and gnatlink.
7980 * gnatlink.adb (Usage): Remove lines for -A and -C
7981 * switch-b.adb (Scan_Binder_Switches): Issue warning when switch -C is
7983 * gcc-interface/Make-lang.in: Update dependencies.
7985 2010-06-17 Vincent Celier <celier@adacore.com>
7987 * back_end.adb (Scan_Compiler_Arguments): Put all arguments in new
7988 local Argument_List variable Args.
7989 * switch-c.adb (Scan_Front_End_Switches): New Argument_List argument
7991 (Switch_Subsequently_Cancelled): New Argument_List argument Args. Look
7992 for subsequent switches in Args.
7993 * switch-c.ads (Scan_Front_End_Switches): New Argument_List argument
7995 * gcc-interface/Make-lang.in: Update dependencies.
7997 2010-06-17 Robert Dewar <dewar@adacore.com>
7999 * einfo.adb: Minor code fix, allow E_Class_Wide_Type for
8000 Equivalent_Type to match documentation.
8002 2010-06-17 Robert Dewar <dewar@adacore.com>
8004 * sem_ch6.adb, sem_ch7.adb: Minor reformatting.
8005 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_ch10.adb, sem_ch12.adb,
8006 sem_ch4.adb, sem_ch8.adb, sem_ch13.adb: Make use of Ekind_In.
8008 2010-06-17 Thomas Quinot <quinot@adacore.com>
8010 * sem_res.adb (Set_Slice_Subtype): Always freeze the slice's itype.
8012 2010-06-17 Thomas Quinot <quinot@adacore.com>
8014 * freeze.adb (Freeze_Expression): Short circuit operators are valid
8015 freeze node insertion points.
8017 2010-06-17 Robert Dewar <dewar@adacore.com>
8019 * switch-c.ads, switch-c.adb, sem_ch13.adb: Minor reformatting.
8020 * sem_ch12.adb: Add pragmas Assert and Check to previous change.
8022 2010-06-17 Gary Dismukes <dismukes@adacore.com>
8024 * layout.adb (Layout_Type): Broaden test for setting an array type's
8025 Component_Size to include all scalar types, not just discrete types
8026 (components of real types were missed).
8027 * sem_ch3.adb (Constrain_Index): Add missing setting of First_Literal
8028 on the itype created for an index (consistent with Make_Index and
8029 avoids possible Assert_Failures).
8031 2010-06-17 Robert Dewar <dewar@adacore.com>
8033 * atree.ads, atree.adb: Add 6-parameter version of Ekind_In
8034 * einfo.adb: Minor code reformatting (use Ekind_In)
8036 2010-06-17 Robert Dewar <dewar@adacore.com>
8038 * sem_warn.adb (Test_Ref): Abandon scan if access subprogram parameter
8041 2010-06-17 Vincent Celier <celier@adacore.com>
8043 * back_end.adb: Minor comment updates
8044 * switch-c.adb: Remove dependencies on gcc C sources
8045 * gcc-interface/Make-lang.in: Add a-comlin.o to the object file list
8048 2010-06-17 Ed Schonberg <schonberg@adacore.com>
8050 * sem_ch12.adb: propagate Pragma_Enabled flag to generic.
8051 * get_scos.adb: Set C2 flag in decision entry of pragma to 'e'.
8052 * par_sco.ads, par_sco.adb (Set_SCO_Pragma_Enabled): New procedure
8053 Remove use of Node field in SCOs table
8054 (Output_Header): Set 'd' to initially disable pragma entry
8055 * put_scos.adb (Put_SCOs): New flag indicating if pragma is enabled
8056 * scos.ads, scos.adb: Remove Node field from internal SCOs table.
8057 Use C2 field of pragma decision header to indicate enabled.
8058 * sem_prag.adb: Add calls to Set_SCO_Pragma_Enabled.
8059 * gcc-interface/Make-lang.in: Update dependencies.
8061 2010-06-17 Vincent Celier <celier@adacore.com>
8063 * back_end.adb (Next_Arg): Moved to procedure Scan_Compiler_Arguments
8064 (Scan_Compiler_Arguments): Call Scan_Front_End_Switches with Next_Arg
8065 (Switch_Subsequently_Cancelled): Function moved to the body of Switch.C
8066 * back_end.ads (Scan_Front_End_Switches): Function moved to the body of
8068 * switch-c.adb: Copied a number of global declarations from
8070 (Len_Arg): New function copied from back_end.adb
8071 (Switch_Subsequently_Cancelled): New function moved from back_end.adb
8072 (Scan_Front_End_Switches): New parameter Arg_Rank used to call
8073 Switch_Subsequently_Cancelled.
8074 * switch-c.ads (Scan_Front_End_Switches): New parameter Arg_Rank.
8075 * gcc-interface/Makefile.in: Add line so that shared libgnat is linked
8076 with -lexc on Tru64.
8078 2010-06-17 Robert Dewar <dewar@adacore.com>
8080 * prj.ads, prj.adb: Minor reformatting
8082 2010-06-17 Thomas Quinot <quinot@adacore.com>
8084 * put_scos.adb: Do not generate a blank line in SCOs when omitting the
8085 CP line for a disabled pragma.
8087 2010-06-17 Emmanuel Briot <briot@adacore.com>
8089 * prj-proc.adb, prj.adb, prj.ads (Check_Or_Set_Typed_Variable): New
8091 (Process_Declarative_Item): An invalid value in an typed variable
8092 declaration is no longer always fatal.
8094 2010-06-16 Arnaud Charlet <charlet@adacore.com>
8096 * get_scos.adb, par_sco.adb, par_sco.ads, put_scos.adb, scos.adb,
8097 scos.ads, exp_ch4.adb, sem_warn.adb: Code clean up, update
8100 2010-06-16 Javier Miranda <miranda@adacore.com>
8102 * exp_disp.adb (Expand_Dispatching_Call): Adjust the decoration of the
8103 node referenced by the SCIL node of dispatching "=" to skip the tags
8106 2010-06-16 Ed Schonberg <schonberg@adacore.com>
8108 * sem_ch5.adb (Analyze_Exit_Statement): Return if no enclosing loop,
8109 to prevent cascaded errors and compilation aborts.
8111 2010-06-16 Robert Dewar <dewar@adacore.com>
8113 * back_end.adb (Switch_Subsequently_Cancelled): New function
8114 Move declarations to package body level to support this change
8115 * back_end.ads (Switch_Subsequently_Cancelled): New function
8116 * gnat_ugn.texi: Document -gnat-p switch
8117 * switch-c.adb (Scan_Front_End_Switches): Implement -gnat-p switch
8118 * ug_words: Add entry for -gnat-p (UNSUPPRESS_ALL)
8119 * usage.adb: Add line for -gnat-p switch
8120 * vms_data.ads: Add entry for UNSUPPRESS_ALL (-gnat-p)
8122 2010-06-16 Robert Dewar <dewar@adacore.com>
8124 * sem_warn.adb (Check_Infinite_Loop_Warning): Declaration counts as
8127 2010-06-16 Robert Dewar <dewar@adacore.com>
8129 * exp_disp.adb: Minor reformatting
8131 2010-06-16 Ed Schonberg <schonberg@adacore.com>
8133 * sem_ch3.adb (Complete_Private_Subtype): Inherit class_wide type from
8134 base type only if it was not previously created for the partial view.
8136 2010-06-16 Thomas Quinot <quinot@adacore.com>
8138 * tbuild.ads: Minor comment fix
8140 2010-06-15 Nathan Froyd <froydnj@codesourcery.com>
8142 * gcc-interface/trans.c (gnu_stack_free_list): Delete.
8143 (gnu_except_ptr_stack): Change type to VEC. Update comment.
8144 (gnu_elab_proc_stack): Likewise.
8145 (gnu_return_label_stack): Likewise.
8146 (gnu_loop_label_stack): Likewise.
8147 (gnu_switch_label_stack): Likewise.
8148 (gnu_constraint_label_stack): Likewise.
8149 (gnu_storage_error_label_stack): Likewise.
8150 (gnu_program_error_label_stack): Likewise.
8151 (push_exception_label_stack): Take a VEC ** instead of a tree *.
8152 (push_stack): Likewise. Remove unused second parameter. Update
8154 (pop_stack): Take a VEC * instead of a tree *. Update callers.
8155 (gigi): Initialize stacks as VECs.
8156 (Identifier_to_gnu): Use VEC_last instead of TREE_VALUE.
8157 (Case_Statement_to_gnu): Likewise.
8158 (Subprogram_Body_to_gnu): Likewise.
8159 (call_to_gnu): Likewise.
8160 (Exception_Handler_to_gnu_sjlj): Likewise.
8161 (gnat_to_gnu): Likewise.
8162 (get_exception_label): Likewise.
8164 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8166 * sem_ch3.adb (Build_Derived_Record_Type): if derived type is an
8167 anonymous base generated when the parent is a constrained discriminated
8168 type, propagate interface list to first subtype because it may appear
8169 in a current instance within the extension part of the derived type
8170 declaration, and its own subtype declaration has not been elaborated
8172 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
8173 determine whether it has the controlling type.
8175 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
8177 * exp_ch11.adb (Expand_N_Raise_Statement): Make sure that the explicit
8178 raise of CE, SE and PE have the reason correctly set and are properly
8179 expanded before stopping the expansions of .NET/JVM exceptions.
8181 2010-06-14 Robert Dewar <dewar@adacore.com>
8183 * opt.ads (Check_Policy_List): Add some clarifying comments
8184 * sem_prag.adb (Analyze_Pragma, case Check): Set Pragma_Enabled flag
8185 on rewritten Assert pragma.
8187 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8189 * sem_ch6.adb (Check_Overriding_Indicator): Add a special check for
8190 controlled operations, so that they will be treated as overriding even
8191 if the overridden subprogram is marked Is_Hidden, as long as the
8192 overridden subprogram's parent subprogram is not hidden.
8194 2010-06-14 Robert Dewar <dewar@adacore.com>
8196 * debug.adb: Entry for gnatw.d no longer specific for while loops
8197 * einfo.adb (First_Exit_Statement): New attribute for E_Loop
8198 * einfo.ads (First_Exit_Statement): New attribute for E_Loop
8199 * sem_ch5.adb (Analyze_Loop_Statement): Check_Infinite_Loop_Warning has
8200 new calling sequence to include test for EXIT WHEN.
8201 (Analyze_Exit_Statement): Chain EXIT statement into exit statement
8203 * sem_warn.ads, sem_warn.adb (Check_Infinite_Loop_Warning): Now handles
8205 * sinfo.adb (Next_Exit_Statement): New attribute of N_Exit_Statement
8207 * sinfo.ads (N_Pragma): Correct comment on Sloc field (points to
8208 PRAGMA, not to pragma identifier).
8209 (Next_Exit_Statement): New attribute of N_Exit_Statement node
8211 2010-06-14 Robert Dewar <dewar@adacore.com>
8213 * sem_res.adb (Resolve_Short_Circuit): Fix sloc of "assertion/check
8216 2010-06-14 Robert Dewar <dewar@adacore.com>
8218 * par-ch2.adb (Scan_Pragma_Argument_Association): Clarify message for
8219 missing pragma argument identifier.
8221 2010-06-14 Robert Dewar <dewar@adacore.com>
8223 * atree.ads, atree.adb (Ekind_In): New functions.
8225 2010-06-14 Robert Dewar <dewar@adacore.com>
8227 * exp_ch4.adb (Expand_N_Op_Expon): Optimize 2**N in stand alone context
8229 2010-06-14 Robert Dewar <dewar@adacore.com>
8231 * usage.adb (Usage): Redo documentation of -gnatwa.
8233 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8235 * sem_ch8.adb (Find_Type): The attribute 'class cannot be applied to
8236 an untagged incomplete type that is a limited view.
8238 2010-06-14 Sergey Rybin <rybin@adacore.com>
8240 * gnat_ugn.texi: Add description of '-cargs gcc_switches' to gnatstub
8243 2010-06-14 Thomas Quinot <quinot@adacore.com>
8245 * exp_ch4.adb (Expand_Short_Circuit_Operator): New subprogram,
8246 factoring duplicated code between...
8247 (Expand_N_And_Than, Expand_N_Or_Else): Remove duplicated code.
8248 * a-envvar.ads: Minor reformatting
8250 2010-06-14 Arnaud Charlet <charlet@adacore.com>
8252 * ali.adb, ali.ads, lib-xref.ads: Document new '+' letter for C/C++
8254 (Scan_ALI): Take into account new Visibility field.
8255 (Visibility_Kind): New type.
8256 (Xref_Entity_Record): Replace Lib field by Visibility.
8258 * gcc-interface/Make-lang.in: Update dependencies.
8260 2010-06-14 Pascal Obry <obry@adacore.com>
8262 * raise.h: Remove unused defintions.
8264 2010-06-14 Bob Duff <duff@adacore.com>
8266 * par-ch10.adb (P_Subunit): If the next token after "separate(X)" is
8267 Tok_Not or Tok_Overriding, call P_Subprogram. We had previously given
8268 the incorrect error "proper body expected".
8269 * par-ch6.adb (P_Subprogram): Suppress "overriding indicator not
8270 allowed here" error in case of subunits, which was triggered by the
8271 above change to P_Subunit.
8273 2010-06-14 Sergey Rybin <rybin@adacore.com>
8275 * gnat_ugn.texi, vms_data.ads: Update gnatelim doc.
8277 2010-06-14 Thomas Quinot <quinot@adacore.com>
8279 * lib-util.adb: Minor code reorganization.
8281 2010-06-14 Robert Dewar <dewar@adacore.com>
8283 * ali.adb (Scan_ALI): Implement reading and storing of N lines
8284 (Known_ALI_Lines): Add entry for 'N' (notes)
8285 * ali.ads (Notes): New table to store Notes information
8286 * alloc.ads: Add entries for Notes table
8287 * lib-util.adb (Write_Info_Int): New procedure
8288 (Write_Info_Slit): New procedure
8289 (Write_Info_Uint): New procedure
8290 * lib-util.ads (Write_Info_Int): New procedure
8291 (Write_Info_Slit): New procedure
8292 (Write_Info_Uint): New procedure
8293 * lib-writ.adb (Write_Unit_Information): Output N (notes) lines
8294 * lib-writ.ads: Update documentation for N (Notes) lines
8295 * lib.adb (Store_Note): New procedure
8296 * lib.ads (Notes): New table
8297 (Store_Note): New procedure
8298 * sem_prag.adb: Call Store_Note for affected pragmas
8300 2010-06-14 Thomas Quinot <quinot@adacore.com>
8302 * socket.c: Fix wrong condition in #ifdef
8303 * g-socket.adb, g-sothco.ads: Functions imported from socket.c that
8304 take or return char* values can't use Interfaces.C.Strings.chars_ptr,
8305 because on VMS this type is a 32-bit pointer which is not compatible
8306 with the default for C pointers for code compiled with gcc on that
8309 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8311 * sem_util (Is_VMS_Operator): New predicate to determine whether an
8312 operator is an intrinsic operator declared in the DEC system extension.
8313 * sem_res.adb (Resolve_Logical_Op): operation is legal on signed types
8314 if the operator is a VMS intrinsic.
8315 * sem_eval.adb (Eval_Logical_Op): Operation is legal and be
8316 constant-folded if the operands are signed and the operator is a VMS
8319 2010-06-14 Robert Dewar <dewar@adacore.com>
8321 * g-socket.adb, gnatcmd.adb: Minor reformatting.
8323 2010-06-14 Pascal Obry <obry@adacore.com>
8325 * s-finimp.adb: Fix typo.
8326 * raise.h: Remove duplicate blank line.
8328 2010-06-14 Vincent Celier <celier@adacore.com>
8330 * prj-nmsc.adb (Add_Sources): Always set the object file and the
8331 switches file names, as the configuration of the language may change
8332 in an extending project.
8333 (Process_Naming_Scheme): For sources of projects that are extended, set
8334 the configuration of the language from the highest extending project
8335 where the language is declared.
8337 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8339 * sem_res.adb (Resolve_Call): For infinite recursion check, test
8340 whether the called subprogram is inherited from a containing
8342 (Same_Or_Aliased_Subprograms): New function
8344 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8346 * sem_ch8.adb (End_Use_Type): Before indicating that an operator is not
8347 use-visible, check whether it is a primitive for more than one type.
8349 2010-06-14 Robert Dewar <dewar@adacore.com>
8351 * sem_ch3.adb (Copy_And_Swap): Copy Has_Pragma_Unmodified flag.
8353 * sem_ch7.adb (Preserve_Full_Attributes): Preserve
8354 Has_Pragma_Unmodified flag.
8356 2010-06-14 Thomas Quinot <quinot@adacore.com>
8358 * g-sttsne-locking.adb, g-sttsne-locking.ads, g-sttsne.ads,
8359 g-sttsne-vxworks.adb, g-sttsne-dummy.ads: Removed. Mutual exclusion is
8360 now done in GNAT.Sockets if necessary.
8361 * gsocket.h, g-socket.adb, g-sothco.ads (GNAT.Sockets.Get_XXX_By_YYY):
8362 Ensure mutual exclusion for netdb operations if the target platform
8364 (GNAT.Sockets.Thin_Common): New binding for getXXXbyYYY, treating
8365 struct hostent as an opaque type to improve portability.
8366 * s-oscons-tmplt.c, socket.c: For the case of Vxworks, emulate
8367 gethostbyYYY using proprietary VxWorks API so that a uniform interface
8368 is available for the Ada side.
8369 * gcc-interface/Makefile.in: Remove g-sttsne-*
8370 * gcc-interface/Make-lang.in: Update dependencies.
8372 2010-06-14 Vincent Celier <celier@adacore.com>
8374 * gnatcmd.adb (Mapping_File): New function.
8376 2010-06-14 Javier Miranda <miranda@adacore.com>
8378 * sem_ch3.adb (Derive_Subprograms): Remove over-restrictive assertion.
8380 2010-06-14 Arnaud Charlet <charlet@adacore.com>
8382 * ali.adb: Fix typo.
8383 * s-auxdec-vms-alpha.adb, scng.ads: Minor reformatting.
8385 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8387 * sem_ch12.adb: Make Mark_Context transitive, and apply to subprogram
8390 * sem_ch8.adb (Find_Expanded_Name): If a candidate compilation unit in
8391 the context does not have a homonym of the selector, emit default
8394 2010-06-14 Robert Dewar <dewar@adacore.com>
8396 * sem.adb, sem_ch12.adb, sem_util.adb: Minor reformatting and
8399 2010-06-14 Arnaud Charlet <charlet@adacore.com>
8401 * lib-xref.ads: Doc updates:
8402 - Allocate 'Q' for #include entity kind
8404 - Allocate 'g' for regular macros
8405 - Allocate 'G' for function-like macros
8407 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8409 * sinfo.ads, sinfo.adb (Withed_Body): New attribute of a with_clause.
8410 Indicates that there is an instantiation in the current unit that
8411 loaded the body of the unit denoted by the with_clause.
8412 * sem_ch12.adb (Mark_Context): When instanting a generic body, check
8413 whether a with_clause in the current context denotes the unit that
8414 holds the generic declaration, and mark the with_clause accordingly.
8415 (Instantiate_Package_Body): call Mark_Context.
8416 * sem.adb (Process_Bodies_In_Context): Use Withed_Body to determine
8417 whether a given body should be traversed before the spec of the main
8420 2010-06-14 Ed Falis <falis@adacore.com>
8422 * sysdep.c: Fix 653 build against vThreads headers.
8424 2010-06-14 Robert Dewar <dewar@adacore.com>
8426 * sinfo.ads: Minor reformatting.
8428 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8430 * sem_ch6.adb (Analyze_Subprogram_Body): Do not check conformance when
8431 the spec has been generated for a body without spec that carries an
8432 Inline_Always pragma.
8434 2010-06-14 Arnaud Charlet <charlet@adacore.com>
8436 * lib-xref.ads: Documentation change: allocate 'Z' letter to C/C++
8439 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
8441 * exp_dbug.adb (Debug_Renaming_Declaration): Do not output any debug
8442 declaration for VMs, as those are useless and might lead to duplicated
8443 local variable names in the generated code.
8444 * gcc-interface/Make-lang.in: Update dependencies.
8446 2010-06-14 Robert Dewar <dewar@adacore.com>
8448 * opt.ads, sem.adb, sem_elab.adb: Minor reformatting
8450 2010-06-14 Robert Dewar <dewar@adacore.com>
8452 * exp_aggr.adb (Has_Address_Clause): Moved to Exp_Util, and there it
8453 is renamed as Has_Following_Address_Clause.
8454 * exp_ch3.adb (Needs_Simple_Initialization): Add Consider_IS argument
8455 to allow the caller to avoid Initialize_Scalars having an effect.
8456 (Expand_N_Object_Declaration): Do not do Initialize_Scalars stuff for
8457 scalars with an address clause specified.
8458 * exp_ch3.ads (Needs_Simple_Initialization): Add Consider_IS argument
8459 to allow the caller to avoid Initialize_Scalars having an effect.
8460 * exp_util.adb (Has_Following_Address_Clause): Moved here from Exp_Aggr
8461 (where it was called Has_Address_Clause).
8462 * exp_util.ads (Has_Following_Address_Clause): Moved here from Exp_Aggr
8463 (where it was called Has_Address_Clause).
8464 * freeze.adb (Warn_Overlay): Suppress message about overlaying causing
8465 problems for Initialize_Scalars (since we no longer initialize objects
8466 with an address clause.
8468 2010-06-14 Robert Dewar <dewar@adacore.com>
8470 * exp_prag.adb (Expand_Pragma_Check): Set Loc of generated code from
8473 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8475 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Debug_Info_Needed
8476 on the entity of an implicitly generated postcondition procedure.
8478 2010-06-14 Thomas Quinot <quinot@adacore.com>
8480 * sem_ch7.adb (Preserve_Full_Attributes): Propagate
8481 Discriminant_Constraint elist from full view to private view.
8483 2010-06-14 Robert Dewar <dewar@adacore.com>
8485 * sem_res.adb: Minor reformatting.
8487 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8489 * sem.adb: New version of unit traversal.
8491 * sem_elab.adb (Check_Internal_Call): Do not place a call appearing
8492 within a generic unit in the table of delayed calls.
8494 2010-06-14 Robert Dewar <dewar@adacore.com>
8496 * gnatcmd.adb, sem_util.adb, exp_ch3.adb: Minor reformatting
8498 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8500 * sem_ch12.adb (Save_References): If an identifier has been rewritten
8501 during analysis as an explicit dereference, keep the reference implicit
8502 in the generic, but preserve the entity if global. This prevents
8503 malformed generic trees in the presence of some nested generics.
8505 2010-06-14 Sergey Rybin <rybin@adacore.com>
8507 * gnat_ugn.texi: For the GNAT driver, clarify the effect of calling the
8508 tool with '-files=' option. Also fix some small errors (wrong brackets)
8510 2010-06-14 Vincent Celier <celier@adacore.com>
8512 * gnatbind.adb: Call Scan_ALI with Directly_Scanned set to True for all
8513 the ALI files on the command line.
8515 * ali.adb (Scan_ALI): Set component Directly_Scanned of the unit(s) to
8516 the same value as the parameter of the same name.
8517 * ali.ads (Scan_ALI): New Boolean parameter Directly_Scanned, defaulted
8519 * bindgen.adb (Gen_Versions_Ada): Never emit version symbols for
8520 Stand-Alone Library interfaces. When binding Stand-Alone Libraries,
8521 emit version symbols only for the units of the library.
8522 (Gen_Versions_C): Ditto.
8524 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8526 * sem_ch4.adb: Fix typo.
8528 2010-06-14 Vasiliy Fofanov <fofanov@adacore.com>
8530 * s-oscons-tmplt.c (IOV_MAX): redefine on Tru64 and VMS since the
8531 vector IO doesn't work at default value properly.
8533 2010-06-14 Doug Rupp <rupp@adacore.com>
8535 * s-stoele.adb: Remove unnecessary qualification of To_Address for VMS.
8537 2010-06-14 Vincent Celier <celier@adacore.com>
8539 * gnatcmd.adb (Check_Files): Do not invoke the tool with all the
8540 sources of the project if a switch -files= is used.
8542 2010-06-14 Thomas Quinot <quinot@adacore.com>
8544 * exp_attr.adb: Minor reformatting.
8546 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8548 * gnat_ugn.texi: Minor typo fixes and wording changes.
8550 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8552 * sem_ch4.adb (Analyze_One_Call): If the call has been rewritten from a
8553 prefixed form, do not re-analyze first actual, which may need an
8554 implicit dereference.
8555 * sem_ch6.adb (Analyze_Procedure_Call): If the call is given in
8556 prefixed notation, the analysis will rewrite the node, and possible
8557 errors appear in the rewritten name of the node.
8558 * sem_res.adb: If a call is ambiguous because its first parameter is
8559 an overloaded call, report list of candidates, to clarify ambiguity of
8562 2010-06-14 Doug Rupp <rupp@adacore.com>
8564 * s-auxdec-vms-alpha.adb: New package body implementing legacy
8565 VAX instructions with Asm insertions.
8566 * s-auxdec-vms_64.ads: Inline VAX queue functions
8567 * s-stoele.adb: Resolve some ambiguities in To_Addresss with s-suxdec
8568 that show up only on VMS.
8569 * gcc-interface/Makefile.in: Provide translation for
8570 s-auxdec-vms-alpha.adb.
8572 2010-06-14 Olivier Hainque <hainque@adacore.com>
8574 * initialize.c (VxWorks section): Update comments.
8576 2010-06-14 Robert Dewar <dewar@adacore.com>
8578 * a-convec.adb, sem_prag.adb, checks.adb: Minor reformatting.
8580 2010-06-14 Eric Botcazou <ebotcazou@adacore.com>
8582 * init.c: Code clean up.
8584 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8586 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address): Do
8587 not insert address clause in table for later validation if type of
8588 entity is generic, to prevent possible spurious errors.
8590 * sem_ch8.adb: Code clean up.
8592 2010-06-14 Ben Brosgol <brosgol@adacore.com>
8594 * gnat_ugn.texi: Expanded @ovar macro inline to solve problem with
8595 texi2pdf and texi2html.
8596 Document how to change scheduling properties on HP-UX.
8598 2010-06-14 Thomas Quinot <quinot@adacore.com>
8600 * g-socket.ads: Remove misleading comments.
8602 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
8604 * sem_prag.adb (Check_Duplicated_Export_Name): Remove check for
8605 CLI_Target as this prevents proper detection of exported names
8606 duplicates when the exported language is different to CIL.
8607 (Process_Interface_Name): Add check for CIL convention exports,
8608 replacing the old one from Check_Duplicated_Export_Name.
8610 2010-06-14 Matthew Heaney <heaney@adacore.com>
8612 * a-coinve.adb, a-convec.adb (operator "&"): Check both that new length
8613 and new last satisfy constraints.
8614 (Delete_Last): prevent overflow for subtraction of index values
8615 (To_Vector): prevent overflow for addition of index values
8617 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8619 * sem_ch4.adb (Complete_Object_Operation): After analyzing the
8620 rewritten call, preserve the resulting type to prevent spurious errors,
8621 when the call is implicitly dereferenced in the context of an in-out
8624 * checks.adb (Apply_Discriminant_Check): If the target of the
8625 assignment is a renaming of a heap object, create constrained type for
8628 2010-06-14 Pascal Obry <obry@adacore.com>
8630 * prj-proc.adb: Fix copy of object directory for extending projects.
8632 2010-06-14 Jose Ruiz <ruiz@adacore.com>
8634 * init.c (__gnat_alternate_stack): Define this space for PowerPC linux
8635 (__gnat_install_handler, PowerPC linux): Activate the alternative
8638 2010-06-13 Gerald Pfeifer <gerald@pfeifer.com>
8640 * gnat_rm.texi: Move to GFDL version 1.3.
8641 * gnat-style.texi: Ditto.
8642 * gnat_ugn.texi: Ditto.
8644 2010-06-12 Kai Tietz <kai.tietz@onevision.com>
8647 * gcc-interface/Makefile.in: Add rules for multilib x86/x64
8650 2010-06-11 Alexandre Oliva <aoliva@redhat.com>
8652 * gcc-interface/utils.c (update_pointer_to): Initialize last.
8654 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
8656 * gcc-interface/ada-tree.h: Fix formatting nits.
8658 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8660 * gcc-interface/utils.c (init_gnat_to_gnu): Use typed GC
8662 (init_dummy_type): Likewise.
8663 (gnat_pushlevel): Likewise.
8665 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
8666 (Subprogram_Body_to_gnu): Likewise.
8667 (Compilation_Unit_to_gnu): Likewise.
8668 (start_stmt_group): Likewise.
8669 (extract_encoding): Likewise.
8670 (decode_name): Likewise.
8672 * gcc-interface/misc.c (gnat_printable_name): Likewise.
8674 * gcc-interface/decl.c (annotate_value): Likewise.
8676 * gcc-interface/ada-tree.h (struct lang_type): Add variable_size
8678 (struct lang_decl): Likewise.
8679 (SET_TYPE_LANG_SPECIFIC): Use typed GC allocation.
8680 (SET_DECL_LANG_SPECIFIC): Likewise.
8682 2010-06-04 Eric Botcazou <ebotcazou@adacore.com>
8684 * gnatlink.adb (gnatlink): Remove support for -fsjlj switch.
8685 * gcc-interface/lang-specs.h: Likewise.
8687 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
8690 * gcc-interface/decl.c (MAX_FIXED_MODE_SIZE): Removed.
8692 2010-06-01 Arnaud Charlet <charlet@adacore.com>
8694 * gnat_ugn.texi: Improve doc on -fdump-ada-spec, mention limitations.
8696 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
8698 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Task_Type>: Reuse the
8699 TYPE_DECL of the equivalent type instead of building a new one.
8701 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
8703 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust warning message.
8704 Fix nits in comments.
8705 * gcc-interface/misc.c (gnat_init_gcc_eh): Likewise.
8706 * gcc-interface/trans.c (gigi): Likewise.
8707 (Attribute_to_gnu): Likewise.
8708 (Case_Statement_to_gnu): Likewise.
8709 (gnat_to_gnu): Adjust warning message.
8710 * gcc-interface/utils.c (create_var_decl_1): Fix nits in comments.
8711 (build_vms_descriptor32): Likewise.
8713 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
8715 * gcc-interface/decl.c: Pretend to be a backend file by undefining
8716 IN_GCC_FRONTEND (still need rtl.h here).
8718 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8720 * gcc-interface/trans.c: Do not include rtl.h, insclude libfuncs.h.
8721 (gigi): Adjust call to set_stack_check_libfunc.
8723 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8725 * gcc-interface/utils.c: Do not include rtl.h.
8727 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
8729 * gcc-interface/utils.c: Do not include function.h, pointer-set.h,
8730 and gimple.h. Explain why rtl.h has to be included.
8731 (handle_vector_size_attribute): Call reconstruct_complex_type directly.
8732 * gcc-interface/targtyps.c: Do not include tm_p.h
8733 * gcc-interface/utils2.c: Do not include flags.h.
8734 * gcc-interface/trans.c: Do not include expr.h. Include rtl.h instead,
8735 and explain why it has to be included.
8736 * gcc-interface/misc.c: Do not include expr.h, libfuncs.h, cgraph.h,
8738 Include function.h and explain why. Explain why except.h is included.
8739 (enumerate_modes): Remove unused function.
8740 * gcc-interface/gigi.h (enumerate_modes): Remove prototype.
8741 * gcc-interface/Make-lang.in: Update dependencies.
8743 2010-05-25 Joseph Myers <joseph@codesourcery.com>
8745 * gcc-interface/misc.c (internal_error_function): Add context
8746 parameter. Use it to access show_column flag and instead of using
8747 global_dc. Call warn_if_plugins.
8748 * gcc-interface/Make-lang.in (ada/misc.o): Update dependencies.
8750 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
8752 * gcc-interface/misc.c (LANG_HOOKS_DEEP_UNSHARING): Redefine.
8753 * gcc-interface/trans.c (unshare_save_expr): Delete.
8754 (gigi): Do not unshare trees under SAVE_EXPRs here.
8756 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
8758 * gcc-interface/trans.c (call_to_gnu): Use build_call_vec instead of
8760 * gcc-interface/utils.c (build_function_stub): Likewise.
8762 2010-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
8764 * gcc-interface/misc.c (gnat_handle_option): Remove special logic
8765 for Wuninitialized without -O.
8767 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
8769 * gcc-interface/gigi.h (enum standard_datatypes): Add new value
8770 ADT_exception_data_name_id.
8771 (exception_data_name_id): New define.
8772 * gcc-interface/trans.c (gigi): Initialize it.
8773 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use the standard
8774 exception type for standard exception definitions. Do not make them
8776 <E_Record_Type>: Equate fields of types associated with an exception
8777 definition to those of the standard exception type.
8779 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
8781 * tracebak.c (__gnat_backtrace): Mark top_stack with ATTRIBUTE_UNUSED.
8783 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
8785 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Tidy up
8786 code, improve comments and fix formatting nits.
8788 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
8790 * gcc-interface/utils.c (update_pointer_to): Return early if the old
8791 pointer already points to the new type. Chain the old pointer and its
8792 variants at the end of new pointer's chain after updating them.
8794 2010-05-10 Eric Botcazou <ebotcazou@adacore.com>
8796 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables
8797 built for interfaces.
8798 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Use
8799 imported_p instead of Is_Imported when considering constants.
8800 Do not promote alignment of exported objects.
8801 <E_Record_Subtype>: Strip all suffixes for dispatch table entities.
8803 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8805 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables.
8806 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Make imported
8807 constants really constant.
8808 <E_Record_Subtype>: Strip the suffix for dispatch table entities.
8810 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8812 * gcc-interface/decl.c (make_aligning_type): Declare the type.
8814 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8816 * gcc-interface/decl.c (gnat_to_gnu_entity): Create variables for size
8817 expressions of variant part of record types declared at library level.
8819 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8821 * gcc-interface/gigi.h (create_field_decl): Move PACKED parameter.
8822 * gcc-interface/utils.c (create_field_decl): Move PACKED parameter.
8823 (rest_of_record_type_compilation): Adjust call to create_field_decl.
8824 (make_descriptor_field): Likewise and pass correctly typed constants.
8825 (build_unc_object_type): Likewise.
8826 (unchecked_convert): Likewise.
8827 * gcc-interface/decl.c (elaborate_expression_2): New static function.
8828 (gnat_to_gnu_entity): Use it to make alignment factors explicit.
8829 Adjust call to create_field_decl.
8830 (make_aligning_type): Likewise.
8831 (make_packable_type): Likewise.
8832 (maybe_pad_type): Likewise.
8833 (gnat_to_gnu_field): Likewise.
8834 (components_to_record): Likewise.
8835 (create_field_decl_from): Likewise.
8836 (create_variant_part_from): Remove superfluous test.
8837 * gcc-interface/trans.c (gigi): Adjust call to create_field_decl.
8839 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8841 * gcc-interface/gigi.h (build_unc_object_type): Add DEBUG_INFO_P param.
8842 (build_unc_object_type_from_ptr): Likewise.
8843 * gcc-interface/utils.c (build_unc_object_type): Add DEBUG_INFO_P param
8844 and pass it to create_type_decl. Declare the type. Simplify.
8845 (build_unc_object_type_from_ptr): Add DEBUG_INFO_P parameter and pass
8846 it to build_unc_object_type.
8847 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust to above change.
8848 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
8849 (gnat_to_gnu): Likewise.
8850 * gcc-interface/utils2.c (build_allocator): Likewise.
8852 2010-05-07 Eric Botcazou <ebotcazou@adacore.com>
8855 * gcc-interface/misc.c (gnat_handle_option): Fix long line.
8857 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8859 * gcc-interface/Makefile.in: Removed mips-sgi-irix5* support.
8861 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
8864 * gcc-interface/misc.c (gnat_handle_option): Add argument kind.
8866 2010-05-02 Giuseppe Scrivano <gscrivano@gnu.org>
8868 * gnathtml.pl: Use 755 as mask for new directories.
8870 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
8872 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Uniquize
8873 constant constructors before taking their address.
8875 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
8877 * exp_dbug.ads: Fix outdated description. Mention link between XVS
8879 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Set
8880 XVZ variable as unit size of XVS type.
8881 (maybe_pad_type): Likewise.
8883 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
8885 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Do not
8886 use memmove if the array type is bit-packed.
8888 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
8890 * gcc-interface/misc.c (gnat_init): Remove second argument in call to
8891 build_common_tree_nodes.
8893 2010-04-18 Ozkan Sezer <sezeroz@gmail.com>
8895 * gsocket.h: Make sure that winsock2.h is included before windows.h.
8897 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8899 * gcc-interface/utils2.c (build_unary_op) <ATTR_ADDR_EXPR>: Do not
8902 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8904 * uintp.h (UI_Lt): Declare.
8905 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do the size
8906 computation in sizetype.
8907 <E_Array_Subtype>: Use unified handling for all index types. Do not
8908 generate MAX_EXPR-based expressions, only COND_EXPR-based ones. Add
8910 (annotate_value): Change test for negative values.
8911 (validate_size): Apply test for negative values on GNAT nodes.
8912 (set_rm_size): Likewise.
8913 * gcc-interface/misc.c (gnat_init): Set unsigned types for sizetypes.
8914 * gcc-interface/utils.c (rest_of_record_type_compilation): Change test
8915 for negative values.
8916 (max_size) <MINUS_EXPR>: Do not reassociate a COND_EXPR on the LHS.
8917 (builtin_type_for_size): Adjust definition of signed_size_type_node.
8918 * gcc-interface/utils2.c (compare_arrays): Optimize comparison of
8919 lengths against zero.
8921 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8923 * back-end.adb (Call_Back_End): Pass Standard_Character to gigi.
8924 * gcc-interface/gigi.h (gigi): Add standard_character parameter.
8925 (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
8926 LONG_LONG_TYPE_SIZE, FLOAT_TYPE_SIZE, DOUBLE_TYPE_SIZE,
8927 LONG_DOUBLE_TYPE_SIZE, SIZE_TYPE): Delete.
8928 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Call
8930 * gcc-interface/misc.c (gnat_init): Set signedness of char as per
8931 flag_signed_char. Tag sizetype with "size_type" moniker.
8932 * gcc-interface/trans.c (gigi): Add standard_character parameter.
8933 Remove useless built-in types. Equate unsigned_char_type_node to
8934 Standard.Character. Use it instead of char_type_node throughout.
8935 (Attribute_to_gnu): Likewise.
8936 (gnat_to_gnu): Likewise.
8937 * gcc-interface/utils2.c (build_call_raise): Likewise.
8939 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8941 * gcc-interface/gigi.h (enum standard_datatypes): Add new values
8942 ADT_sbitsize_one_node and ADT_sbitsize_unit_node.
8943 (sbitsize_one_node): New macro.
8944 (sbitsize_unit_node): Likewise.
8945 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Fix
8946 latent bug in the computation of subrange_p. Fold wider_p predicate.
8947 (cannot_be_superflat_p): Use an explicitly signed 64-bit type to do
8948 the final comparison.
8949 (make_aligning_type): Build real negation and use sizetype throughout
8950 the offset computation.
8951 (maybe_pad_type): Do not issue the warning when the new size expression
8953 (annotate_value) <INTEGER_CST>: Simplify code handling negative values.
8954 * gcc-interface/misc.c (gnat_init): Initialize sbitsize_one_node and
8956 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Pool_Address>: Fold
8958 (gnat_to_gnu) <N_Free_Statement>: Likewise.
8959 * gcc-interface/utils.c (convert): Use sbitsize_unit_node.
8960 * gcc-interface/utils2.c (compare_arrays): Compute real lengths and use
8961 constants in sizetype. Remove dead code and tweak comments. Generate
8962 equality instead of inequality comparisons for zero length tests.
8964 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8966 * gcc-interface/gigi.h (gnat_init_decl_processing): Delete.
8967 * gcc-interface/decl.c (gnat_to_gnu_entity): Constify a few variables.
8968 <object>: Do not create the fake PARM_DECL if no debug info is needed.
8969 Do not create the corresponding VAR_DECL of a CONST_DECL for debugging
8970 purposes if no debug info is needed.
8971 Fix formatting. Reorder and add comments.
8972 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Reference>: Constify
8973 variable and remove obsolete comment.
8974 * gcc-interface/utils.c (convert_vms_descriptor64): Tweak comment.
8975 (convert_vms_descriptor32): Likewise.
8976 (convert): Remove dead code.
8977 <UNCONSTRAINED_ARRAY_REF>: Pass the field instead of its name to build
8978 the reference to the P_ARRAY pointer.
8979 <POINTER_TYPE>: Likewise.
8980 (maybe_unconstrained_array) <UNCONSTRAINED_ARRAY_TYPE>: Likewise.
8981 (gnat_init_decl_processing): Delete, move contents to...
8982 * gcc-interface/misc.c (gnat_init): ...here.
8984 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8986 * gcc-interface/trans.c (unchecked_conversion_nop): Handle function
8987 calls. Return true for conversion from a record subtype to its type.
8989 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8991 * gcc-interface/decl.c (gnat_to_gnu_entity): Use boolean_type_node in
8992 lieu of integer_type_node for boolean operations.
8993 (choices_to_gnu): Likewise.
8994 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
8995 (Loop_Statement_to_gnu): Likewise.
8996 (establish_gnat_vms_condition_handler): Likewise.
8997 (Exception_Handler_to_gnu_sjlj): Likewise.
8998 (gnat_to_gnu): Likewise.
8999 (build_unary_op_trapv): Likewise.
9000 (build_binary_op_trapv): Likewise.
9001 (emit_range_check): Likewise.
9002 (emit_index_check): Likewise.
9003 (convert_with_check): Likewise.
9004 * gcc-interface/utils.c (convert_vms_descriptor64): Likewise.
9005 (convert_vms_descriptor32): Likewise.
9006 (convert_vms_descriptor): Likewise.
9007 * gcc-interface/utils2.c (nonbinary_modular_operation): Likewise.
9008 (compare_arrays): Use boolean instead of integer constants.
9009 (build_binary_op) <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR,
9010 TRUTH_OR_EXPR, TRUTH_XOR_EXPR>: New case. Check that the result type
9012 <GE_EXPR, LE_EXPR, GT_EXPR, LT_EXPR>: Remove obsolete assertion.
9013 <EQ_EXPR, NE_EXPR>: Check that the result type is a boolean type.
9014 <PREINC/PREDECREMENT_EXPR, POSTINC/POSTDECREMENT_EXPR>: Delete.
9015 <TRUTH_NOT_EXPR>: Check that the result type is a boolean type.
9016 (build_unary_op): Use boolean_type_node in lieu of integer_type_node
9017 for boolean operations.
9018 (fill_vms_descriptor): Likewise. Fix formatting nits.
9020 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
9022 * gcc-interface/ada-tree.def (LOOP_STMT): Change to 4-operand nodes.
9023 * gcc-interface/ada-tree.h (LOOP_STMT_TOP_COND, LOOP_STMT_BOT_COND):
9025 (LOOP_STMT_COND): ...this.
9026 (LOOP_STMT_BOTTOM_COND_P): New flag.
9027 (LOOP_STMT_TOP_UPDATE_P): Likewise.
9028 * gcc-interface/trans.c (can_equal_min_or_max_val_p): New function.
9029 (can_equal_min_val_p): New static inline function.
9030 (can_equal_max_val_p): Likewise.
9031 (Loop_Statement_to_gnu): Use build4 in lieu of build5 and adjust to
9032 new LOOP_STMT semantics. Use two different strategies depending on
9033 whether optimization is enabled to translate the loop.
9034 (gnat_gimplify_stmt) <LOOP_STMT>: Adjust to new LOOP_STMT semantics.
9036 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
9038 * uintp.adb (UI_From_Dint): Remove useless code.
9039 (UI_From_Int): Likewise.
9040 * uintp.h: Reorder declarations.
9041 (UI_From_gnu): Declare.
9042 (UI_Base): Likewise.
9043 (Vector_Template): Likewise.
9044 (Vector_To_Uint): Likewise.
9047 * gcc-interface/gigi.h: Tweak comments.
9048 * gcc-interface/cuintp.c (UI_From_gnu): New global function.
9049 * gcc-interface/decl.c (maybe_pad_type): Do not warn if either size
9051 (annotate_value) <INTEGER_CST>: Call UI_From_gnu.
9052 * gcc-interface/trans.c (post_error_ne_num): Call post_error_ne.
9053 (post_error_ne_tree): Call UI_From_gnu and post_error_ne.
9054 * gcc-interface/utils.c (max_size) <tcc_binary>: Do not special-case
9057 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
9059 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Just copy
9061 * gcc-interface/trans.c (smaller_packable_type_p): Rename into...
9062 (smaller_form_type_p): ...this. Change parameter and variable names.
9063 (call_to_gnu): Use the nominal type of the parameter to create the
9064 temporary if it's a smaller form of the actual type.
9065 (addressable_p): Return false if the actual type is integral and its
9066 size is greater than that of the expected type.
9068 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
9070 * gcc-interface/cuintp.c (UI_To_gnu): Fix long line.
9071 * gcc-interface/gigi.h (MARK_VISITED): Skip objects of constant class.
9072 (process_attributes): Delete.
9073 (post_error_ne_num): Change parameter name.
9074 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force debug info
9075 with -g3. Remove a couple of obsolete lines. Minor tweaks.
9076 If type annotating mode, operate on trees to compute the adjustment to
9077 the sizes of tagged types. Fix long line.
9078 (cannot_be_superflat_p): Tweak head comment.
9079 (annotate_value): Fold local constant.
9080 (set_rm_size): Fix long line.
9081 * gcc-interface/trans.c (Identifier_to_gnu): Rework comments.
9082 (Attribute_to_gnu): Fix long line.
9083 <Attr_Size>: Remove useless assertion.
9084 Reorder statements. Use size_binop routine.
9085 (Loop_Statement_to_gnu): Use build5 in lieu of build_nt.
9086 Create local variables for the label and the test. Tweak comments.
9087 (Subprogram_Body_to_gnu): Reset cfun to NULL.
9088 (Compilation_Unit_to_gnu): Use the Sloc of the Unit node.
9089 (process_inlined_subprograms): Integrate into...
9090 (Compilation_Unit_to_gnu): ...this.
9091 (gnat_to_gnu): Fix long line.
9092 (post_error_ne_num): Change parameter name.
9093 * gcc-interface/utils.c (process_attributes): Static-ify.
9094 <ATTR_MACHINE_ATTRIBUTE>: Set input_location before proceeding.
9095 (create_type_decl): Add comment.
9096 (create_var_decl_1): Process the attributes after adding the VAR_DECL
9097 to the current binding level.
9098 (create_subprog_decl): Likewise for the FUNCTION_DECL.
9099 (end_subprog_body): Do not reset cfun to NULL.
9100 (build_vms_descriptor32): Fix long line.
9101 (build_vms_descriptor): Likewise.
9102 (handle_nonnull_attribute): Likewise.
9103 (convert_vms_descriptor64): Likewise.
9104 * gcc-interface/utils2.c (fill_vms_descriptor): Fix long line.
9105 (gnat_protect_expr): Fix thinko.
9107 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
9109 * gcc-interface/trans.c (gigi): Set DECL_IGNORED_P on EH functions.
9110 (gnat_to_gnu) <N_Op_Eq>: Restore the value of input_location
9111 before translating the top-level node.
9112 (lvalue_required_p) <N_Function_Call>: Return 1 if !constant.
9113 <N_Object_Declaration>: Likewise.
9114 <N_Assignment_Statement>: Likewise.
9115 <N_Unchecked_Type_Conversion>: Likewise.
9116 (call_to_gnu): Remove kludge.
9117 (gnat_to_gnu) <N_Return_Statement>: When not optimizing, force labels
9118 associated with user returns to be preserved.
9119 (gnat_to_gnu): Add special code to deal with boolean rvalues.
9120 * gcc-interface/utils2.c (compare_arrays): Set input_location on all
9122 (build_unary_op) <ADDR_EXPR>: Call build_fold_addr_expr.
9123 <INDIRECT_REF>: Call build_fold_indirect_ref.
9125 2010-04-15 Joel Sherrill <joel.sherrill@oarcorp.com>
9127 * g-socket.adb: A target can have multiple missing errno's. This
9128 will result in multiple errno's being defined as -1. Because of this
9129 we can not use a case but must use a series of if's to avoid
9130 a duplicate case error in GNAT.Sockets.Resolve_Error.
9132 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
9134 * gcc-interface/trans.c (call_to_gnu): Open a nesting level if this is
9135 a statement. Otherwise, if at top-level, push the processing of the
9136 elaboration routine. In the misaligned case, issue the error messages
9137 again on entry and create the temporary explicitly. Do not issue them
9139 For a function call, emit the range check if necessary.
9140 In the copy-in copy-out case, create the temporary for the return
9142 Do not unnecessarily convert by-ref parameters to the formal's type.
9143 Remove obsolete guards in conditions.
9144 (gnat_to_gnu) <N_Assignment_Statement>: For a function call, pass the
9145 target to call_to_gnu in all cases.
9146 (gnat_gimplify_expr) <ADDR_EXPR>: Remove handling of SAVE_EXPR.
9147 (addressable_p) <CONSTRUCTOR>: Return false if not static.
9148 <COMPOUND_EXPR>: New case.
9149 * gcc-interface/utils2.c (build_unary_op) <ADDR_EXPR>: Fold a compound
9150 expression if it has unconstrained array type.
9151 (gnat_mark_addressable) <COMPOUND_EXPR>: New case.
9152 (gnat_stabilize_reference) <COMPOUND_EXPR>: Stabilize operands on an
9155 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
9157 * gcc-interface/trans.c (gigi): Do not start statement group.
9158 (Compilation_Unit_to_gnu): Set current_function_decl to NULL.
9159 Start statement group and push binding level here...
9160 (gnat_to_gnu) <N_Compilation_Unit>: ...and not here.
9161 Do not push fake contexts at top level. Remove redundant code.
9162 (call_to_gnu): Rename a local variable and constify another.
9163 * gcc-interface/utils.c (gnat_pushlevel): Fix formatting nits.
9164 (set_current_block_context): Set it as the group's block.
9165 (gnat_init_decl_processing): Delete unrelated init code.
9166 (end_subprog_body): Use NULL_TREE.
9168 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
9170 * gcc-interface/trans.c (call_to_gnu): Do not unnecessarily force
9171 side-effects of actual parameters before the call.
9173 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
9175 * gcc-interface/decl.c (validate_size): Reorder, remove obsolete test
9177 (set_rm_size): Reorder and remove obsolete test.
9179 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
9181 * gcc-interface/gigi.h: Reorder declarations and tweak comments.
9182 (gigi): Adjust ATTRIBUTE_UNUSED markers.
9183 * gcc-interface/gadaint.h: New file.
9184 * gcc-interface/trans.c: Include it in lieu of adaint.h. Reorder.
9185 (__gnat_to_canonical_file_spec): Remove declaration.
9186 (number_names): Delete.
9187 (number_files): Likewise.
9189 * gcc-interface/Make-lang.in (ada/trans.o): Adjust dependencies to
9192 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
9194 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Class_Wide_Type>: Fix
9196 * gcc-interface/trans.c (process_freeze_entity): Use local copy of
9197 Ekind. Return early for class-wide types. Do not compute initializer
9198 unless necessary. Reuse the tree for an associated class-wide type
9199 only if processing its root type.
9201 2010-04-13 Joel Sherrill <joel.sherrill@oarcorp.com>
9203 * gsocket.h: Run-time can no longer be built without network
9204 OS headers available. Changing RTEMS GNAT build procedure to
9205 reflect this and letting run-time build use network .h files.
9207 2010-04-13 Duncan Sands <baldrick@free.fr>
9209 * gcc-interface/misc.c (gnat_eh_type_covers): Remove.
9210 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Update comment.
9212 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
9214 * gcc-interface/gigi.h (standard_datatypes): Add ADT_parent_name_id.
9215 (parent_name_id): New macro.
9216 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Use it.
9217 * gcc-interface/trans.c (gigi): Initialize it.
9218 (lvalue_required_p) <N_Type_Conversion>: New case.
9219 <N_Qualified_Expression>: Likewise.
9220 <N_Allocator>: Likewise.
9221 * gcc-interface/utils.c (convert): Try to properly upcast tagged types.
9223 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
9225 * gcc-interface/ada-tree.h (TYPE_BY_REFERENCE_P): Delete.
9226 (DECL_CONST_ADDRESS_P): New macro.
9227 (SET_DECL_ORIGINAL_FIELD_TO_FIELD): Likewise.
9228 (SAME_FIELD_P): Likewise.
9229 * gcc-interface/decl.c (constructor_address_p): New static function.
9230 (gnat_to_gnu_entity) <object>: Set DECL_CONST_ADDRESS_P according to
9231 the return value of above function.
9232 (gnat_to_gnu_entity) <E_Record_Type>: Force BLKmode for all types
9233 passed by reference.
9234 <E_Record_Subtype>: Likewise.
9235 Set TREE_ADDRESSABLE on the type if it passed by reference.
9236 (make_packable_type): Use SET_DECL_ORIGINAL_FIELD_TO_FIELD.
9237 (create_field_decl_from): Likewise.
9238 (substitute_in_type): Likewise.
9239 (purpose_member_field): Use SAME_FIELD_P.
9240 * gcc-interface/misc.c (must_pass_by_ref): Test TREE_ADDRESSABLE.
9241 * gcc-interface/trans.c (lvalue_required_p): Add ADDRESS_OF_CONSTANT
9242 parameter and adjust recursive calls.
9243 <N_Explicit_Dereference>: New case.
9244 <N_Object_Declaration>: Return 1 if the object is of a class-wide type.
9245 Adjust calls to lvalue_required_p. Do not return the initializer of a
9246 DECL_CONST_ADDRESS_P constant if an lvalue is required for it.
9247 (call_to_gnu): Delay issuing error message for a misaligned actual and
9248 avoid the associated back-end assertion. Test TREE_ADDRESSABLE.
9249 (gnat_gimplify_expr) <ADDR_EXPR>: Handle non-static constructors.
9250 * gcc-interface/utils.c (make_dummy_type): Set TREE_ADDRESSABLE if the
9251 type is passed by reference.
9252 (convert) <CONSTRUCTOR>: Convert in-place in more cases.
9253 * gcc-interface/utils2.c (build_cond_expr): Drop TYPE_BY_REFERENCE_P.
9254 (build_simple_component_ref): Use SAME_FIELD_P.
9256 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
9258 * gcc-interface/trans.c (Identifier_to_gnu): Use boolean variable.
9259 (call_to_gnu): Test gigi's flag TYPE_BY_REFERENCE_P instead of calling
9260 front-end's predicate Is_By_Reference_Type. Use consistent order and
9261 remove ??? comment. Use original conversion in all cases, if any.
9262 * gcc-interface/utils.c (make_dummy_type): Minor tweak.
9263 (convert): Use local copy in more cases.
9264 <INDIRECT_REF>: Remove deactivated code.
9265 (unchecked_convert): Use a couple of local copies.
9267 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
9269 * gcc-interface/trans.c (lvalue_required_for_attribute_p): New static
9271 (lvalue_required_p) <N_Attribute_Reference>: Call it.
9272 (gnat_to_gnu) <N_Selected_Component>: Prevent build_component_ref from
9273 folding the result only if lvalue_required_for_attribute_p is true.
9274 * gcc-interface/utils.c (maybe_unconstrained_array): Pass correctly
9275 typed constant to build_component_ref.
9276 (unchecked_convert): Likewise.
9277 * gcc-interface/utils2.c (maybe_wrap_malloc): Likewise.
9278 (build_allocator): Likewise.
9280 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
9282 * gcc-interface/utils2.c (build_cond_expr): Take the address and
9283 dereference if the result type is passed by reference.
9285 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
9287 * gcc-interface/trans.c (Case_Statement_to_gnu): Bool-ify variable.
9288 (gnat_to_gnu) <N_Null_Statement>: When not optimizing, generate a
9289 goto to the next statement.
9291 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
9293 * gcc-interface/gigi.h (maybe_variable): Delete.
9294 (protect_multiple_eval): Likewise.
9295 (maybe_stabilize_reference): Likewise.
9296 (gnat_save_expr): Declare.
9297 (gnat_protect_expr): Likewise.
9298 (gnat_stabilize_reference): Likewise.
9299 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use
9300 gnat_stabilize_reference.
9301 (maybe_variable): Delete.
9302 (elaborate_expression_1): Use gnat_save_expr.
9303 * gcc-interface/trans.c (Attribute_to_gnu): Use gnat_protect_expr.
9304 (call_to_gnu): Pass NULL to gnat_stabilize_reference.
9305 (gnat_to_gnu) <N_Object_Declaration>: Use gnat_save_expr.
9306 <N_Slice>: Use gnat_protect_exp.
9307 <N_Selected_Component>: Pass NULL to gnat_stabilize_reference.
9308 <N_In>: Use gnat_protect_expr.
9309 Pass NULL to gnat_stabilize_reference.
9310 (build_unary_op_trapv): Use gnat_protect_expr.
9311 (build_binary_op_trapv): Likewise.
9312 (emit_range_check): Likewise.
9313 (emit_index_check): Likewise.
9314 (convert_with_check): Likewise.
9315 (protect_multiple_eval): Move to utils2.c file.
9316 (maybe_stabilize_reference): Merge into...
9317 (gnat_stabilize_reference): ...this. Move to utils2.c file.
9318 (gnat_stabilize_reference_1): Likewise.
9319 * gcc-interface/utils.c (convert_to_fat_pointer): Use gnat_protect_expr
9320 instead of protect_multiple_eval.
9321 * gcc-interface/utils2.c (compare_arrays): Likewise.
9322 (nonbinary_modular_operation): Likewise.
9323 (maybe_wrap_malloc): Likewise.
9324 (build_allocator): Likewise.
9325 (gnat_save_expr): New function.
9326 (gnat_protect_expr): Rename from protect_multiple_eval. Early return
9327 in common cases. Propagate TREE_READONLY onto dereferences.
9328 (gnat_stabilize_reference_1): Move from trans.c file.
9329 (gnat_stabilize_reference): Likewise.
9331 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
9333 * gcc-interface/gigi.h (gnat_mark_addressable): Rename parameter.
9334 * gcc-interface/decl.c (maybe_variable): Do not set TREE_STATIC on _REF
9335 node. Use the type of the operand to set TREE_READONLY.
9336 * gcc-interface/trans.c (Identifier_to_gnu): Do not set TREE_STATIC on
9337 _REF node. Do not overwrite TREE_READONLY.
9338 (call_to_gnu): Rename local variable and fix various nits. In the
9339 copy-in/copy-out case, build the SAVE_EXPR manually.
9340 (convert_with_check): Call protect_multiple_eval in lieu of save_expr
9341 and fold the computations.
9342 (protect_multiple_eval): Always save entire fat pointers.
9343 (maybe_stabilize_reference): Minor tweaks.
9344 (gnat_stabilize_reference_1): Likewise. Do not deal with tcc_constant,
9345 tcc_type and tcc_statement.
9346 * gcc-interface/utils.c (convert_to_fat_pointer): Call
9347 protect_multiple_eval in lieu of save_expr.
9348 (convert): Minor tweaks.
9349 (maybe_unconstrained_array): Do not set TREE_STATIC on _REF node.
9350 (builtin_type_for_size): Call gnat_type_for_size directly.
9351 * gcc-interface/utils2.c (contains_save_expr_p): Delete.
9352 (contains_null_expr): Likewise
9353 (gnat_build_constructor): Do not call it.
9354 (compare_arrays): Deal with all side-effects, use protect_multiple_eval
9355 instead of gnat_stabilize_reference to protect the operands.
9356 (nonbinary_modular_operation): Call protect_multiple_eval in lieu of
9358 (maybe_wrap_malloc): Likewise.
9359 (build_allocator): Likewise.
9360 (build_unary_op) <INDIRECT_REF>: Do not set TREE_STATIC on _REF node.
9361 (gnat_mark_addressable): Rename parameter.
9363 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
9365 * gcc-interface/ada-tree.h (TYPE_RETURNS_UNCONSTRAINED_P): Rename into.
9366 (TYPE_RETURN_UNCONSTRAINED_P): ...this.
9367 (TYPE_RETURNS_BY_REF_P): Rename into.
9368 (TYPE_RETURN_BY_DIRECT_REF_P): ...this.
9369 (TYPE_RETURNS_BY_TARGET_PTR_P): Delete.
9370 * gcc-interface/gigi.h (create_subprog_type): Adjust parameter names.
9371 (build_return_expr): Likewise.
9372 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>:
9373 Rename local variables. If the return Mechanism is By_Reference, pass
9374 return_by_invisible_ref_p to create_subprog_type instead of toggling
9375 TREE_ADDRESSABLE. Test return_by_invisible_ref_p in order to annotate
9376 the mechanism. Use regular return for contrained types with non-static
9377 size and return by invisible reference for unconstrained return types
9378 with default discriminants. Update comment.
9379 * gcc-interface/trans.c (Subprogram_Body_to_gnu): If the function
9380 returns by invisible reference, turn the RESULT_DECL into a pointer.
9381 Do not handle DECL_BY_REF_P in the CICO case here.
9382 (call_to_gnu): Remove code handling return by target pointer. For a
9383 function call, if the return type has non-constant size, generate the
9384 assignment with an INIT_EXPR.
9385 (gnat_to_gnu) <N_Return_Statement>: Remove dead code in the CICO case.
9386 If the function returns by invisible reference, build the copy return
9388 (add_decl_expr): Initialize the variable with an INIT_EXPR.
9389 * gcc-interface/utils.c (create_subprog_type): Adjust parameter names.
9390 Adjust for renaming of macros. Copy the node only when necessary.
9391 (create_subprog_decl): Do not toggle TREE_ADDRESSABLE on the return
9392 type, only change DECL_BY_REFERENCE on the RETURN_DECL.
9393 (convert_from_reference): Delete.
9394 (is_byref_result): Likewise.
9395 (gnat_genericize_r): Likewise.
9396 (gnat_genericize): Likewise.
9397 (end_subprog_body): Do not call gnat_genericize.
9398 * gcc-interface/utils2.c (build_binary_op) <INIT_EXPR>: New case.
9399 (build_return_expr): Adjust parameter names, logic and comment.
9401 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
9403 * exp_pakd.adb (Create_Packed_Array_Type): Always use a modular type
9404 if the size is small enough. Propagate the alignment if there is an
9405 alignment clause on the original array type.
9406 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
9407 Deal with under-aligned packed array types. Copy the size onto the
9408 justified modular type and don't lay it out again. Likewise for the
9409 padding type built for other under-aligned subtypes.
9410 * gcc-interface/utils.c (finish_record_type): Do not set a default mode
9413 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
9415 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set default
9416 alignment on the RETURN type built for the Copy-In Copy-Out mechanism.
9418 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
9420 * gcc-interface/trans.c (call_to_gnu): In the return-by-target-ptr case
9421 do not set the result type if there is a specified target and do not
9422 convert the result in any cases.
9423 (protect_multiple_eval): Make direct SAVE_EXPR for CALL_EXPR.
9424 (maybe_stabilize_reference) <COMPOUND_EXPR>: Merge with CALL_EXPR.
9426 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
9428 * gcc-interface/Makefile.in (SPARC/Solaris): Use sparcv8plus.
9430 2010-02-27 Eric Botcazou <ebotcazou@adacore.com>
9433 * gcc-interface/utils2.c (build_binary_op) <EQ_EXPR>: Assert that fat
9434 pointer base types are variant of each other. Apply special treatment
9435 for null to fat pointer types in all cases.
9437 2010-01-28 Pascal Obry <obry@adacore.com>
9439 * s-win32.ads: Add some missing constants.
9441 2010-01-28 Vincent Celier <celier@adacore.com>
9443 * prj-attr-pm.adb (Add_Attribute): Do nothing if To_Package is
9446 2010-01-28 Robert Dewar <dewar@adacore.com>
9448 * gnat_rm.texi: Minor correction
9450 2010-01-27 Pascal Obry <obry@adacore.com>
9452 * g-awk.adb: ensure that an AWK session is reusable.
9454 2010-01-27 Vasiliy Fofanov <fofanov@adacore.com>
9456 * g-regist.adb (For_Every_Key): Fix previous change.
9459 2010-01-27 Thomas Quinot <quinot@adacore.com>
9461 * lib-writ.ads: Current version of spec for new N (note) ALI lines
9463 2010-01-27 Yannick Moy <moy@adacore.com>
9465 * a-cdlili.adb (Insert): Correct exception message when cursor
9466 designates wrong list.
9468 2010-01-27 Vincent Celier <celier@adacore.com>
9470 * gnatcmd.adb: When there is only one main specified, the package
9471 support Switches (<main>) and attribute Switches is specified for the
9472 main, use these switches, instead of Default_Switches ("Ada").
9474 2010-01-27 Robert Dewar <dewar@adacore.com>
9476 * sem_prag.adb, par-prag.adb, snames.ads-tmpl: pragma Dimension initial
9478 * exp_disp.adb: Minor reformatting
9480 2010-01-27 Tristan Gingold <gingold@adacore.com>
9482 * seh_init.c: Use __ImageBase instead of _ImageBase.
9484 2010-01-27 Javier Miranda <miranda@adacore.com>
9486 * exp_disp.ads, exp_disp.adb (Expand_Interface_Thunk): Modify the
9487 profile of interface thunks. The type of the controlling formal is now
9488 the covered interface type (instead of the target tagged type).
9490 2010-01-27 Sergey Rybin <rybin@adacore.com>
9492 * gnat_rm.texi, gnat_ugn.texi: Update gnatcheck doc.
9494 2010-01-27 Robert Dewar <dewar@adacore.com>
9496 * sinput.ads, sinput.adb (Sloc_Range): Applies to all nodes, formal
9497 changed from Expr to N.
9499 2010-01-26 Thomas Quinot <quinot@adacore.com>
9501 * gnat_ugn.texi: Adjust documentation of -gnatz switches.
9502 * usage.adb: Replace line for -gnatz with two lines for -gnatzc and
9505 2010-01-26 Vincent Celier <celier@adacore.com>
9507 * prj-attr.adb: Add new attribute Library_Install_Name_Option
9508 Replace attribute Run_Path_Origin_Supported with Run_Path_Origin
9509 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
9510 attributes Run_Path_Option and Library_Install_Name_Option.
9511 * prj.ads (Project_Configuration): Replace component
9512 Run_Path_Origin_Supported with component Run_Path_Origin. Add new
9513 component Library_Install_Name_Option.
9514 * snames.ads-tmpl: Add new standard name Library_Install_Name_Option
9515 Replace Run_Path_Origin_Supported with Run_Path_Origin
9517 2010-01-26 Ed Schonberg <schonberg@adacore.com>
9519 * sem_ch8.adb (Use_One_Package): Within an instance, an actual package
9520 is not hidden by a homograph declared in another actual package.
9522 2010-01-26 Robert Dewar <dewar@adacore.com>
9524 * par_sco.adb (Traverse_Declarations_Or_Statements): Only generate
9525 decisions for pragmas Assert, Check, Precondition, Postcondition if
9527 * scos.ads: Update comments.
9528 * get_scos.adb, put_scos.adb: Minor fix to code reading statement SCOs.
9529 Also remove obsolete code for CT (exit point) SCOs.
9531 2010-01-26 Thomas Quinot <quinot@adacore.com>
9533 * switch-c.adb: Fix handling of -gnatz*
9535 2010-01-26 Robert Dewar <dewar@adacore.com>
9537 * par_sco.adb (Traverse_Declarations_Or_Statements): Separate F/W
9538 qualifiers for FOR/WHILE loops
9539 * scos.ads: Use separate type letters F/W for for/while loops
9541 2010-01-26 Robert Dewar <dewar@adacore.com>
9543 * get_scos.adb (Get_SCOs): Implement new form of CS entries (multiple
9544 entries per line, one for each statement in the sequence).
9545 * par_sco.adb (Traverse_Declarations_Or_Statements): Increase array
9546 size from 100 to 10_000 for SC_Array to avoid any real possibility of
9547 overflow. Output decisions in for loops.
9548 Exclude labels from CS lines.
9549 * scos.ads: Clarify that label is not included in the entry point
9551 2010-01-26 Robert Dewar <dewar@adacore.com>
9553 * par_sco.adb (Traverse_Declarations_Or_Statments): Implement new
9554 format of statement sequence SCO entries (one location/statement).
9555 * put_scos.adb (Put_SCOs): Implement new format of CS lines
9556 * scos.ads: Update comments.
9557 * sem_eval.adb: Minor reformatting.
9559 2010-01-26 Robert Dewar <dewar@adacore.com>
9561 * par_sco.ads, par_sco.adb (Set_Statement_Entry): New handling of exits
9562 (Extend_Statement_Sequence): New procedures
9563 (Traverse_Declarations_Or_Statements): New handling for exits.
9565 2010-01-26 Robert Dewar <dewar@adacore.com>
9567 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
9570 2010-01-26 Robert Dewar <dewar@adacore.com>
9572 * par_sco.adb (Is_Logical_Operator): Exclude AND/OR/XOR
9573 * scos.ads: Clarify handling of logical operators
9575 2010-01-26 Arnaud Charlet <charlet@adacore.com>
9577 * s-tpoben.adb: Update comments.
9579 2010-01-26 Robert Dewar <dewar@adacore.com>
9581 * freeze.adb (Set_Small_Size): Don't set size if alignment clause
9584 2010-01-26 Robert Dewar <dewar@adacore.com>
9586 * scos.ads: Clean up documentation, remove obsolete XOR references
9587 2010-01-26 Vincent Celier <celier@adacore.com>
9589 * gnat_ugn.texi: Complete documentation on the restrictions for
9590 combined options in -gnatxxx switches.
9593 2010-01-26 Arnaud Charlet <charlet@adacore.com>
9595 * s-tpoben.adb (Initialize_Protection_Entries): If a PO is created from
9596 a controlled operation, abort is already deferred at this point, so we
9597 need to use Defer_Abort_Nestable.
9599 2010-01-26 Vincent Celier <celier@adacore.com>
9601 * prj-conf.adb (Get_Config_Switches): Check for a default language for
9602 a project extending a project with no languages.
9604 2010-01-26 Vincent Celier <celier@adacore.com>
9606 * switch-c.adb (Scan_Front_End_Switches): Take into account options
9607 that follow -gnatef.
9608 Allow -gnateG to be followed by other options.
9610 2010-01-26 Robert Dewar <dewar@adacore.com>
9612 * s-commun.ads, s-osprim-mingw.adb, s-stchop-vxworks.adb, sem_aggr.adb,
9613 s-vxwext.adb, sem_ch10.adb, sem_eval.adb, sem_prag.adb: Minor
9616 2010-01-26 Vasiliy Fofanov <fofanov@adacore.com>
9618 * g-regist.adb, g-regist.ads (For_Every_Key): New generic procedure
9619 that allows to iterate over all subkeys of a key.
9621 2010-01-26 Ed Falis <falis@adacore.com>
9623 * sysdep.c: enable NFS for VxWorks MILS
9624 * env.c: enable __gnat_environ for VxWorks MILS
9625 * gcc-interface/Makefile.in: Add VxWorks MILS target pairs.
9627 2010-01-25 Bob Duff <duff@adacore.com>
9629 * sem_aggr.adb (Resolve_Array_Aggregate): Check for the case where this
9630 is an internally-generated positional aggregate, and the bounds are
9631 already correctly set. We don't want to overwrite those bounds with
9632 bounds determined by context.
9634 2010-01-25 Robert Dewar <dewar@adacore.com>
9636 * g-sercom.ads, gnatcmd.adb, gnatlink.adb, a-ststio.adb, exp_ch6.adb,
9637 exp_ch9.adb, g-sechas.ads: Minor reformatting.
9639 2010-01-25 Thomas Quinot <quinot@adacore.com>
9641 * s-commun.adb (Last_Index): Count must be converted to SEO (a signed
9642 integer type) before subtracting 1, otherwise the computation may wrap
9643 (because size_t is modular) and cause the conversion to fail.
9645 2010-01-25 Ed Falis <falis@adacore.com>
9647 * sysdep.c, init.c: Adapt to support full run-time on VxWorks MILS.
9649 2010-01-25 Vincent Celier <celier@adacore.com>
9651 * prj-attr.adb: New attribute Run_Path_Origin_Required
9652 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process new
9653 attribute Run_Path_Origin_Required.
9654 * prj.ads (Project_Configuration): New component
9655 Run_Path_Origin_Supported.
9656 * snames.ads-tmpl: New standard name Run_Path_Origin_Required
9658 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9660 * sem_aggr.adb (Resolve_Array_Aggregate): If the bounds in a choice
9661 have errors, do not continue resolution of the aggregate.
9662 * sem_eval.adb (Eval_Indexed_Component): Do not attempt to evaluate if
9663 the array type indicates an error.
9665 2010-01-25 Bob Duff <duff@adacore.com>
9667 * sinfo.ads: Minor comment fixes.
9669 2010-01-25 Bob Duff <duff@adacore.com>
9671 * exp_ch4.adb, exp_aggr.adb: Minor comment fixes and code clean up.
9673 2010-01-25 Arnaud Charlet <charlet@adacore.com>
9675 * gnatvsn.ads (Current_Year): Update.
9677 2010-01-25 Florian Villoing <villoing@adacore.com>
9679 * gnat_ugn.texi: Fix typo.
9681 2010-01-25 Thomas Quinot <quinot@adacore.com>
9683 * scos.ads: Update specification.
9685 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9687 * sem_ch6.adb (Process_PPCs): If a postcondition is present and the
9688 enclosing subprogram has no previous spec, attach postcondition
9689 procedure to the defining entity for the body.
9691 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9693 * exp_aggr.adb (Build_Record_Aggr_Code); Do not generate call to
9694 initialization procedure of the ancestor part of an extension aggregate
9695 if it is an interface type.
9697 2010-01-25 Vincent Celier <celier@adacore.com>
9699 * gnatlink.adb (Process_Binder_File): The directory for the shared
9700 version of libgcc in the run path options is found in the subdirectory
9701 indicated by __gnat_default_libgcc_subdir.
9702 * link.c: Declare new const char * __gnat_default_libgcc_subdir for
9705 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9707 * sem_prag.adb: More flexible pragma Annotate.
9709 2010-01-22 Eric Botcazou <ebotcazou@adacore.com>
9711 * system-linux-armel.ads (Stack_Check_Probes): Set to True.
9712 * system-linux-armeb.ads (Stack_Check_Probes): Likewise.
9714 2010-01-18 Eric Botcazou <ebotcazou@adacore.com>
9716 * gcc-interface/utils.c (create_var_decl_1): Fix formatting nits.
9718 2010-01-18 Jan Hubicka <jh@suse.cz>
9721 * gcc-interface/utils.c (create_var_decl_1): Do not set COMMON flag for
9722 unit local variables.
9724 2010-01-17 Laurent GUERBY <laurent@guerby.net>
9726 * gcc-interface/Makefile.in: Fix typo in arm*-*-linux-gnueabi.
9728 2010-01-11 Mikael Pettersson <mikpe@it.uu.se>
9730 * gcc-interface/Makefile.in: Add arm*-*-linux-gnueabi.
9731 * system-linux-armeb.ads, system-linux-armel.ads: New files.
9733 2010-01-09 Simon Wright <simon@pushface.org>
9736 * gcc-interface/Makefile.in (gnatlib-shared-darwin): Add missing
9741 Copyright (C) 2010 Free Software Foundation, Inc.
9743 Copying and distribution of this file, with or without modification,
9744 are permitted in any medium without royalty provided the copyright
9745 notice and this notice are preserved.