1 2010-10-26 Robert Dewar <dewar@adacore.com>
3 * opt.ads (Treat_Categorization_Errors_As_Warnings): New flag
4 * sem_cat.adb (Check_Categorization_Dependencies):
5 Use Check_Categorization_Dependencies
6 * switch-c.adb: GNAT Mode sets Treat_Categorization_Errors_As_Warnings
7 -gnateP sets Treat_Categorization_Errors_As_Warnings
8 * usage.adb: Add line for -gnateP switch
10 2010-10-26 Javier Miranda <miranda@adacore.com>
12 * sem_ch3.adb (Add_Internal_Interface_Entities): Handle primitives
13 inherited from the parent that cover interface primitives.
14 (Derive_Progenitor_Subprograms): Handle primitives inherited from
15 the parent that cover interface primitives.
16 * sem_disp.adb (Find_Primitive_Covering_Interface): When searching in
17 the list of primitives of the type extend the test to include inherited
19 * sem_ch6.ads (Is_Interface_Conformant): Add missing documentation.
20 * sem_ch7.adb (Declare_Inherited_Private_Subprograms): Add missing
21 barrier to the loop searching for explicit overriding primitives.
22 * sem_ch4.adb (Analyze_Indexed_Component_Form): Add missing barrier
23 before accessing attribute Entity.
25 2010-10-26 Bob Duff <duff@adacore.com>
27 * make.adb: Call Namet.Finalize, so we can get statistics.
29 2010-10-26 Geert Bosch <bosch@adacore.com>
31 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Use the subprogram_body
32 node to determine wether the subprogram is a rewritten parameterized
35 2010-10-26 Robert Dewar <dewar@adacore.com>
37 * opt.ads: Minor code reorganization
38 Alphabetize Warning switches.
40 2010-10-26 Robert Dewar <dewar@adacore.com>
42 * sem_res.adb, xsinfo.adb: Minor reformatting.
44 2010-10-26 Bob Duff <duff@adacore.com>
46 * namet.adb (Finalize): More cleanup of statistics printouts.
48 2010-10-26 Robert Dewar <dewar@adacore.com>
50 * ceinfo.adb: Minor reformatting.
52 2010-10-26 Javier Miranda <miranda@adacore.com>
54 * sem_ch6.adb (Check_Overriding_Indicator, New_Overloaded_Entity): When
55 setting attribute Overridden_Operation do not reference the entities
56 generated by Derive_Subprograms but their aliased entity (which
57 is the primitive inherited from the parent type).
59 2010-10-26 Bob Duff <duff@adacore.com>
61 * namet.adb, namet.ads: Minor cleanup.
63 2010-10-26 Arnaud Charlet <charlet@adacore.com>
65 * gcc-interface/Make-lang.in: Update dependencies.
67 2010-10-26 Robert Dewar <dewar@adacore.com>
69 * einfo.ads, einfo.adb (Is_Base_Type): New function, use it where
71 * exp_ch6.adb, exp_dbug.adb, exp_disp.adb, freeze.adb, lib-xref.adb,
72 sem_aux.adb, sem_ch3.adb, sem_ch7.adb, sem_ch8.adb (Is_Base_Type): Use
73 this new abstraction where appropriate.
75 2010-10-26 Ed Schonberg <schonberg@adacore.com>
77 * sem_ch12.adb: Code clean up.
79 2010-10-26 Paul Hilfinger <hilfinger@adacore.com>
81 * exp_dbug.ads: Document effect of 'pragma Unchecked_Union' on
84 2010-10-26 Ed Schonberg <schonberg@adacore.com>
86 * sem_util.adb (Note_Possible_Modification): If the target of an
87 assignment is the bound variable in an iterator, the domain of
88 iteration, i.e. array or container, is modified as well.
90 2010-10-26 Bob Duff <duff@adacore.com>
92 * Make-generated.in: Make the relevant make targets depend on
93 ceinfo.adb and csinfo.adb.
94 * csinfo.adb, ceinfo.adb: Make sure it raises an exception on failure,
95 so when called from xeinfo, the failure will be noticed.
96 * sinfo.ads: Update comments to reflect the fact that xsinfo runs csinfo
97 * xsinfo.adb, xeinfo.adb: Run ceinfo to check for errors. Close files.
99 2010-10-26 Ed Schonberg <schonberg@adacore.com>
101 * exp_ch4.adb: Set properly parent field of operands of concatenation.
103 2010-10-26 Ed Schonberg <schonberg@adacore.com>
105 * sem_res.adb (Check_Infinite_Recursion): A recursive call within a
106 conditional expression or a case expression should not generate an
107 infinite recursion warning.
109 2010-10-26 Javier Miranda <miranda@adacore.com>
111 * einfo.ads, einfo.adb (Is_Overriding_Operation): Removed.
112 (Set_Is_Overriding_Operation): Removed.
113 * sem_ch3.adb (Check_Abstract_Overriding): Remove redundant call to
114 Is_Overriding_Operation.
115 * exp_ch7.adb (Check_Visibly_Controlled): Remove redundant call to
116 Is_Overriding_Operation.
117 * sem_ch7.adb (Declare_Inherited_Private_Subprograms): Remove redundant
118 call to Set_Is_Overriding_Operation.
119 * sem_util.adb (Collect_Primitive_Operations): Replace test on
120 Is_Overriding_Operation by test on the presence of attribute
121 Overridden_Operation.
122 (Original_Corresponding_Operation): Remove redundant call to attribute
123 Is_Overriding_Operation.
124 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Remove
125 redundant call to Is_Overriding_Operation.
126 (Verify_Overriding_Indicator): Replace several occurrences of test on
127 Is_Overriding_Operation by test on the presence of attribute
128 Overridden_Operation.
129 (Check_Convention): Replace test on Is_Overriding_Operation by test on
130 the presence of Overridden_Operation.
131 (Check_Overriding_Indicator): Add missing decoration of attribute
132 Overridden_Operation. Minor code cleanup.
133 (New_Overloaded_Entity): Replace occurrence of test on
134 Is_Overriding_Operation by test on the presence of attribute
135 Overridden_Operation. Remove redundant setting of attribute
136 Is_Overriding_Operation plus minor code reorganization.
137 Add missing decoration of attribute Overridden_Operation.
138 * sem_elim.adb (Set_Eliminated): Replace test on
139 Is_Overriding_Operation by test on the presence of Overridden_Operation.
140 * sem_ch8.adb (Analyze_Subprogram_Renaming): Replace test on
141 Is_Overriding_Operation by test on the presence of
142 Overridden_Operation. Remove a redundant test on attribute
143 Is_Overriding_Operation.
144 * lib-xref.adb (Generate_Reference): Replace test on
145 Is_Overriding_Operation by test on the presence of Overridden_Operation.
146 (Output_References): Replace test on Is_Overriding_Operation by test on
147 the presence of Overridden_Operation.
148 * sem_disp.adb (Override_Dispatching_Operation): Replace test on
149 Is_Overriding_Operation by test on the presence of Overridden_Operation.
150 Add missing decoration of attribute Overridden_Operation.
152 2010-10-26 Robert Dewar <dewar@adacore.com>
154 * sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order): Properly check
157 2010-10-26 Bob Duff <duff@adacore.com>
159 * sem_res.adb (Resolve_Actuals): In case of certain
160 internally-generated type conversions (created by OK_Convert_To, so the
161 Conversion_OK flag is set), avoid fetching the component type when it's
162 not really an array type, but a private type completed by an array type.
164 2010-10-26 Ed Schonberg <schonberg@adacore.com>
166 * sem_ch5.adb: Adjust format of error message.
168 2010-10-26 Robert Dewar <dewar@adacore.com>
170 * einfo.ads, einfo.adb (OK_To_Reference): Removed, no longer used.
171 * exp_util.adb (Side_Effect_Free): Put in safety barrier in code to
172 detect renamings to avoid problems with invariants.
173 * sem_ch13.adb (Replace_Type_References_Generic): New procedure
174 (Build_Invariant_Procedure): Use Replace_Type_Reference_Generic
175 (Build_Predicate_Function): Use Replace_Type_Reference_Generic
176 * sem_res.adb, sem_ch8.adb, sem_ch4.adb (OK_To_Reference): Remove
177 references, flag is no longer set.
179 2010-10-26 Vincent Celier <celier@adacore.com>
181 * prj.ads (Source_Data): New Boolean component Initialized, defaulted
182 to False, set to True when Source_Data is completely initialized.
183 * prj-env.adb: Minor comment fix.
185 2010-10-26 Robert Dewar <dewar@adacore.com>
187 * sem_case.adb, sem_ch6.adb, sem_util.adb: Minor reformatting.
189 2010-10-26 Ed Schonberg <schonberg@adacore.com>
191 * sem_ch5.adb (Analyze_Iteration_Scheme): Diagnose attempt to use thew
192 form "for X in A" when A is an array object. This form is only intended
194 * sem_eval.adb: Fix reference to non-existing field of type conversion
196 * sem_case.adb (Check_Choices): Improve error reporting for overlapping
197 choices in case statements.
199 2010-10-26 Gary Dismukes <dismukes@adacore.com>
201 * exp_disp.adb (Expand_Interface_Actuals): When expanding an actual for
202 a class-wide interface formal that involves applying a displacement
203 conversion to the actual, check for the case of calling a build-in-place
204 function and handle generation of the implicit BIP parameters (call
205 Make_Build_In_Place_Call_In_Anonymous_Context).
206 Add with and use of Exp_Ch6.
208 2010-10-26 Robert Dewar <dewar@adacore.com>
210 * sem_prag.adb, sem_cat.ads: Minor reformatting.
212 2010-10-26 Sergey Rybin <rybin@adacore.com>
214 * vms_data.ads: Define VMS qualifier for gnatelim '--ignore' option
216 2010-10-26 Thomas Quinot <quinot@adacore.com>
218 * sem_util.adb (Has_Preelaborable_Initialization.Check_Components):
219 For a discriminant, use Discriminant_Default_Value rather than
220 Expression (Declaration_Node (D)).
222 2010-10-26 Geert Bosch <bosch@adacore.com>
224 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Parameterized
225 expressions don't need a spec, even when style checks require
226 subprograms to have one.
228 2010-10-26 Arnaud Charlet <charlet@adacore.com>
230 * gnatvsn.ads: Update comments.
232 2010-10-26 Matthew Heaney <heaney@adacore.com>
234 * Makefile.rtl, impunit.adb: Add bounded hashed set and bounded hashed
236 * a-cohata.ads: Add declaration of generic package for bounded hash
238 * a-chtgbo.ads, a-chtgbo.adb, a-chtgbk.ads, a-chtgbk.adb, a-cbhase.ads,
239 a-cbhase.adb, a-cbhama.ads, a-cbhama.adb: New files.
241 2010-10-26 Ed Schonberg <schonberg@adacore.com>
243 * sem_warn.adb: Improve warning message on overlapping actuals.
245 2010-10-26 Thomas Quinot <quinot@adacore.com>
247 * sem_ch4.adb, exp_dist.adb: Minor reformatting.
249 2010-10-26 Vincent Celier <celier@adacore.com>
251 * makeusg.adb (Makeusg): Add lines for switches -vl, -vm and -vh.
253 2010-10-26 Robert Dewar <dewar@adacore.com>
255 * exp_ch3.adb (Expand_N_Object_Declaration): Move generation of
256 predicate check to analyzer, since too much rewriting occurs in the
258 * sem_ch13.adb (Build_Predicate_Function): Change calling sequence, and
259 change the order in which things are done to fix several errors in
260 dealing with qualification of the type name.
261 (Build_Static_Predicate): Built static predicate after full analysis
262 of the body. This is necessary to fix several problems.
263 * sem_ch3.adb (Analyze_Object_Declaration): Move predicate check here
264 from expander, since too much expansion occurs in the analyzer to leave
266 (Analyze_Object_Declaration): Change parameter Include_Null to new name
267 Include_Implicit in Is_Partially_Initialized_Type call.
268 (Analyze_Subtype_Declaration): Make sure predicates are proapagated in
269 some strange cases of internal subtype generation.
270 * sem_util.ads, sem_util.adb (Is_Partially_Initialized_Type): Change
271 Include_Null to Include_Implicit, now includes the case of
274 2010-10-26 Sergey Rybin <rybin@adacore.com>
276 * gnat_rm.texi: Revise the documentation for pragma Eliminate.
278 2010-10-26 Matthew Heaney <heaney@adacore.com>
280 * Makefile.rtl, impunit.adb: Added bounded list container.
281 * a-cbdlli.ads, a-cbdlli.adb: New file.
283 2010-10-25 Eric Botcazou <ebotcazou@adacore.com>
285 * gcc-interface/utils2.c: Include flags.h and remove prototypes.
286 (build_unary_op) <TRUTH_NOT_EXPR>: When not optimizing, fold the result
287 of the call to invert_truthvalue_loc.
288 * gcc-interface/Make-lang.in (utils2.o): Add $(FLAGS_H).
290 2010-10-25 Eric Botcazou <ebotcazou@adacore.com>
292 * gcc-interface/utils.c (update_pointer_to): Clear TYPE_POINTER_TO and
293 TYPE_REFERENCE_TO of the old type after redirecting its pointer and
296 2010-10-25 Eric Botcazou <ebotcazou@adacore.com>
298 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not set
299 TREE_THIS_NOTRAP on the INDIRECT_REF node built for the template.
301 2010-10-25 Jose Ruiz <ruiz@adacore.com>
303 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for powerpc-linux):
304 Reorganize target pairs so that it works on linux and ElinOS.
306 2010-10-25 Pascal Obry <obry@adacore.com>
308 * adaint.c (__gnat_file_time_name_attr): Use GetFileAttributesEx to get
309 the timestamp. A bit faster than opening/closing the file.
310 (__gnat_stat_to_attr): Remove kludge for Windows.
311 (__gnat_file_exists_attr): Likewise.
312 The timestamp is now retreived using GetFileAttributesEx as faster.
314 2010-10-25 Javier Miranda <miranda@adacore.com>
316 * sem_ch3.adb (Derive_Interface_Subprogram): New subprogram.
317 (Derive_Subprograms): For abstract private types transfer to the full
318 view entities of uncovered interface primitives. Required because if
319 the interface primitives are left in the private part of the package
320 they will be decorated as hidden when the analysis of the enclosing
321 package completes (and hence the interface primitive is not visible
322 for dispatching calls).
324 2010-10-25 Matthew Heaney <heaney@adacore.com>
326 * Makefile.rtl, impunit.adb: Added bounded set and bounded map
328 * a-crbltr.ads: Added declaration of generic package for bounded tree
330 * a-rbtgbo.ads, a-rbtgbo.adb, a-rbtgbk.ads, a-rbtgbk.adb, a-btgbso.ads,
331 a-btgbso.adb, a-cborse.ads, a-cborse.adb, a-cborma.ads, a-cborma.adb:
334 2010-10-25 Thomas Quinot <quinot@adacore.com>
336 * sem_util.adb: Minor reformatting.
337 * usage.adb: Fix usage line for -gnatwh.
339 2010-10-25 Thomas Quinot <quinot@adacore.com>
341 * sem_ch12.adb (Analyze_Package_Instantiation): For an
342 instantiation in an RCI spec, omit package body if instantiation comes
343 from source, even as a nested
345 * exp_dist.adb (Add_Calling_Stubs_To_Declarations,
346 *_Support.Add_Receiving_Stubs_To_Declarations): Handle the case of
347 nested packages, package instantiations and subprogram instantiations.
349 2010-10-25 Robert Dewar <dewar@adacore.com>
351 * exp_ch5.adb (Expand_Predicated_Loop): Remove code for loop through
352 non-static predicate, since we agree not to allow this.
353 (Expand_Predicated_Loop): Properlay handle false predicate (null
354 list in Static_Predicate field.
355 * sem_ch13.adb (Build_Static_Predicate): Extensive changes to clean up
356 handling of more general predicate forms.
358 2010-10-25 Robert Dewar <dewar@adacore.com>
360 * sem_ch4.adb, sem_util.adb: Minor reformatting.
361 * sem_ch8.adb (Find_Selected_Component): Allow selection from instance
362 of type in predicate or invariant expression.
364 2010-10-25 Pascal Obry <obry@adacore.com>
366 * adaint.c (__gnat_stat_to_attr): Can set the timestamp on Windows now.
368 (__gnat_stat): Rewrite Win32 version.
370 2010-10-25 Robert Dewar <dewar@adacore.com>
372 * sem_warn.adb, einfo.ads, exp_ch4.adb: Minor comment fix
373 * sem_case.adb: Comment clarification for loops through false
375 * sem_util.adb: Minor reformatting
376 (Check_Order_Dependence): Fix bad double blank in error message
378 2010-10-25 Ed Schonberg <schonberg@adacore.com>
380 * sem_ch4.adb (Analyze_Membership_Op): in Ada_2012 a membership
381 operation can have a single alternative that is a value of the type.
382 Rewrite operation as an equality test.
384 2010-10-25 Matthew Heaney <heaney@adacore.com>
386 * Makefile.rtl, impunit.adb: Added a-cobove (bounded vector container)
388 * a-contai.ads: Added declaration of Capacity_Error exception.
389 * a-cobove.ads, a-cobove.adb: New files.
391 2010-10-25 Thomas Quinot <quinot@adacore.com>
393 * uname.adb: Revert previous change, no longer needed after change
396 2010-10-25 Thomas Quinot <quinot@adacore.com>
398 * scos.ads: Minor comment fix.
400 2010-10-25 Ed Schonberg <schonberg@adacore.com>
402 * sem_ch5.adb (Analyze_Assignment_Statement): Check dangerous order
404 * sem_ch6.adb (Analyze_Procedure_Call_Statement): Ditto.
405 * sem_res.adb (Analyze_Actuals): Add actual to list of actuals for
406 current construct, for subsequent order dependence checking.
407 (Resolve): Check order dependence on expressions that are not
409 * sem_util.adb (Check_Order_Dependence): Code cleanup, to correspond
410 to latest version of AI05-144-2.
411 * sem_warn.adb (Warn_On_Overlapping_Actuals): Code cleanup.
413 2010-10-25 Robert Dewar <dewar@adacore.com>
415 * sem_ch13.adb (Build_Static_Predicate): Moved out of
416 Build_Predicate_Function.
417 (Build_Static_Predicate): Complet rewrite for more general predicates
419 2010-10-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
420 Eric Botcazou <ebotcazou@adacore.com>
422 * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Function): Allow
423 In Out/Out parameters for functions.
424 * gcc-interface/trans.c (gnu_return_var_stack): New variable.
425 (create_init_temporary): New static function.
426 (Subprogram_Body_to_gnu): Handle In Out/Out parameters for functions.
427 (call_to_gnu): Likewise. Use create_init_temporary in order to create
428 temporaries for unaligned parameters and return value. If there is an
429 unaligned In Out or Out parameter passed by reference, push a binding
430 level if not already done. If a binding level has been pushed and the
431 call is returning a value, create the call statement.
432 (gnat_to_gnu) <N_Return_Statement>: Handle In Out/Out parameters for
435 2010-10-22 Ben Brosgol <brosgol@adacore.com>
437 * gnat_rm.texi: Add chapter on Ada 2012 support.
439 2010-10-22 Robert Dewar <dewar@adacore.com>
441 * sem_ch12.adb: Minor reformatting.
443 2010-10-22 Thomas Quinot <quinot@adacore.com>
445 * exp_dist.adb: Mark missing case of nested package when expanding
448 2010-10-22 Ed Schonberg <schonberg@adacore.com>
450 * par-ch10.adb: Discard incomplete with_clause.
452 2010-10-22 Robert Dewar <dewar@adacore.com>
454 * checks.adb (Enable_Range_Check): Remove code suppressing range check
455 if static predicate present, not needed.
456 * exp_attr.adb (Expand_Pred_Succ): Check Suppress_Assignment_Checks flag
457 * exp_ch3.adb (Expand_N_Object_Declaration): Check
458 Suppress_Assignment_Checks flag.
459 * exp_ch4.adb (Expand_N_In): Make some corrections for proper handling
460 of ranges when predicates are present.
461 * exp_ch5.adb (Expand_Predicated_Loop): New procedure
462 (Expand_N_Assignment_Statement): Check Suppress_Assignment_Checks flag
463 (Expand_N_Loop_Statement): Handle loops over predicated types
464 * sem_case.adb (Analyze_Choices): Remove extra blank in error message.
465 * sem_ch13.adb (Build_Predicate_Function.Add_Call): Suppress info
466 message for inheritance if within a generic instance, not useful there!
467 (Build_Static_Predicate): Optimize test in predicate function
468 based on static ranges determined.
469 * sem_ch5.adb (Analyze_Iteration_Scheme): Error for loop through
470 subtype with non-static predicate.
471 * sinfo.ads, sinfo.adb (Suppress_Assignment_Checks): New flag.
473 2010-10-22 Thomas Quinot <quinot@adacore.com>
475 * uname.adb (Get_Unit_Name.Add_Node_Name): If encountering an error
476 node in the unit name, propagate Program_Error to guard against
479 2010-10-22 Javier Miranda <miranda@adacore.com>
481 * sem_ch8.adb (Find_Selected_Component): Do not generate a subtype for
482 selected components of dispatch table wrappers.
484 2010-10-22 Ed Schonberg <schonberg@adacore.com>
486 * exp_ch9.adb (Make_Initialize_Protection): A protected type that
487 implements an interface must be treated as if it has entries, to
488 support dispatching select statements.
490 2010-10-22 Robert Dewar <dewar@adacore.com>
492 * sem_aggr.adb, sem_ch3.adb: Minor reformatting.
494 2010-10-22 Javier Miranda <miranda@adacore.com>
496 * sem_aggr.adb (Resolve_Array_Aggregate.Add): If the type of the
497 aggregate has a non standard representation the attributes 'Val and
498 'Pos expand into function calls and the resulting expression is
499 considered non-safe for reevaluation by the backend. Relocate it into
500 a constant temporary to indicate to the backend that it is side
503 2010-10-22 Ed Schonberg <schonberg@adacore.com>
505 * sem_ch3.adb (Build_Concurrent_Derived_Type): Create declaration for
506 derived corresponding record type only when expansion is enabled.
508 2010-10-22 Robert Dewar <dewar@adacore.com>
510 * sem_case.adb, sem_attr.adb (Bad_Predicated_Subtype_Use): Change order
512 * sem_ch13.adb (Build_Predicate_Function): Don't give inheritance
513 messages for generic actual subtypes.
514 * sem_ch9.adb, sem_res.adb, sem_util.adb, sem_util.ads, sem_ch3.adb
515 (Bad_Predicated_Subtype_Use): Use this procedure.
517 2010-10-22 Robert Dewar <dewar@adacore.com>
519 * sem_ch5.adb: Minor reformatting.
521 2010-10-22 Robert Dewar <dewar@adacore.com>
523 * a-except-2005.adb (Rmsg_18): New message text.
524 * a-except.adb (Rmsg_18): New message text.
525 * atree.adb (List25): New function
526 (Set_List25): New procedure
527 * atree.ads (List25): New function
528 (Set_List25): New procedure
529 * einfo.adb (Static_Predicate): Is now a list
530 (OK_To_Reference): Present in all entities
531 * einfo.ads (Static_Predicate): Is now a list
532 (OK_To_Reference): Applies to all entities
533 * exp_ch13.adb (Build_Predicate_Function): Moved to Sem_Ch13
534 * sem_attr.adb (Bad_Attribute_For_Predicate): Call
535 Bad_Predicated_Subtype_Use.
536 * sem_case.ads, sem_case.adb: Major surgery to deal with predicated
538 * sem_ch13.adb (Build_Predicate_Function): Moved from Exp_Ch13 to
540 (Build_Static_Predicate): New procedure handles static predicates.
541 * sem_ch3.adb (Analyze_Subtype_Declaration): Delay freeze on subtype
542 with no constraint if ancestor subtype has predicates.
543 (Analyze_Variant_Part): New calling sequence for Analyze_Choices
544 * sem_ch4.adb (Junk_Operand): Don't complain about OK_To_Reference
546 (Analyze_Case_Expression): New calling sequence for Analyze_Choices
547 * sem_ch5.adb (Analyze_Case_Statement): New calling sequence for
549 * sem_util.ads, sem_util.adb (Bad_Predicated_Subtype_Use): New procedure
550 * types.ads (PE_Bad_Predicated_Generic_Type): Replaces
551 PE_Bad_Attribute_For_Predicate.
552 * atree.h: Add definition of List25.
554 2010-10-22 Jerome Lambourg <lambourg@adacore.com>
556 * gnatlink.adb (Process_Binder_File): Remove CLI-specific code, now
558 (Gnatlink): Remove CLI-specific code, moved to dotnet-ld
559 * bindgen.adb (Gen_Object_Files_Options): Do not issue -L switches with
560 the .NET compiler, useless and unsupported.
562 2010-10-22 Robert Dewar <dewar@adacore.com>
564 * sem_util.ads (Get_Num_Lit_From_Pos): Fix errors in documentation,
565 this returns a Node_Id for a reference to the entity, not the entity
568 2010-10-22 Ed Schonberg <schonberg@adacore.com>
570 * sem_ch5.adb (Analyze_Iteration_Scheme): use Insert_Actions when
571 bounds require a temporary.
573 2010-10-22 Robert Dewar <dewar@adacore.com>
575 * sem_ch4.adb: Minor reformatting.
576 * sinfo.ads: Minor comment fixes for Ada 2012 syntax.
578 2010-10-22 Robert Dewar <dewar@adacore.com>
580 * par-ch5.adb: Minor reformatting.
581 * gcc-interface/Make-lang.in: Update dependencies.
583 2010-10-22 Robert Dewar <dewar@adacore.com>
585 * a-except.adb, a-except-2005.adb: Add new Rcheck entry.
586 * exp_ch13.adb (Add_Call): Make sure subtype is marked with
587 Has_Predicates set to True if it inherits predicates.
588 * sem_attr.adb: Handle 'First/'Last/'Range for predicated types
589 * types.ads (PE_Bad_Attribute_For_Predicate): New reason code
590 * types.h: Add new Rcheck entry.
591 * einfo.ads, einfo.adb (Static_Predicate): New field.
592 Minor code reorganization (file float routines in proper section)
593 Fix bad field name in comments.
595 2010-10-22 Robert Dewar <dewar@adacore.com>
597 * sem_eval.adb (Subtypes_Statically_Compatible): Check null exclusion
600 2010-10-22 Vincent Celier <celier@adacore.com>
602 * prj-conf.adb (Get_Config_Switches): Detect if there is at least one
603 declaration of IDE'Compiler_Command for one of the language in the main
605 (Do_Autoconf): If there were at least one Compiler_Command declared and
606 no target, invoke gprconfig with --target=all instead of the normalized
609 2010-10-22 Robert Dewar <dewar@adacore.com>
611 * par-ch4.adb: Update syntax in comments for Ada 2012.
612 * sinfo.ads: Update syntax in comments for Ada 2012
613 * par-ch3.adb (Check_Restricted_Expression): Remove "in Ada 2012 mode"
616 2010-10-22 Gary Dismukes <dismukes@adacore.com>
618 * sem_ch3.adb (Check_Or_Process_Discriminants): In Ada 2012, allow
619 limited tagged types to have defaulted discriminants. Customize the
620 error message for the Ada 2012 case.
621 (Process_Discriminants): In Ada 2012, allow limited tagged types to have
622 defaulted discriminants. Customize the error message for the Ada 2012
624 * sem_ch6.adb (Create_Extra_Formals): Suppress creation of the extra
625 formal for out formals of discriminated types in the case where the
626 underlying type is a limited tagged type.
627 * exp_attr.adb (Expand_N_Attribute_Reference, case
628 Attribute_Constrained): Return True for 'Constrained when the
629 underlying type of the prefix is a limited tagged type.
631 2010-10-22 Thomas Quinot <quinot@adacore.com>
633 * sem_ch3.adb (Complete_Private_Subtype): The full view of the subtype
634 may already have a rep item chain inherited from the full view of the
635 base type, so do not overwrite it when propagating rep items from the
636 partial view of the subtype.
637 * sem_ch3.adb: Minor code reorganization. Minor reformatting.
639 2010-10-22 Sergey Rybin <rybin@adacore.com>
641 * gnat_ugn.texi (gnatmetric): Remove description of debug option.
643 2010-10-22 Tristan Gingold <gingold@adacore.com>
645 * adaint.c (__gnat_number_of_cpus): Add implementation for VMS.
647 2010-10-22 Ed Schonberg <schonberg@adacore.com>
649 * par-ch5.adb: Set properly starting sloc of loop parameter.
651 2010-10-22 Ed Schonberg <schonberg@adacore.com>
653 * sem_util.adb (May_Be_Lvalue): An actual in a function call can be an
654 lvalue in Ada2012, if the function has in-out parameters.
656 2010-10-22 Robert Dewar <dewar@adacore.com>
658 * cstand.adb, einfo.adb, exp_attr.adb, sem_prag.adb, sem_vfpt.adb,
659 sem_ch10.adb: Minor reformatting.
661 2010-10-22 Sergey Rybin <rybin@adacore.com>
663 * gnat_ugn.texi: Remove most of the content of gnatcheck chapter.
665 2010-10-22 Ed Schonberg <schonberg@adacore.com>
667 * sem_attr.adb: Handle indexed P'old.
669 2010-10-22 Geert Bosch <bosch@adacore.com>
671 * cstand.adb (Build_Float_Type): Set Float_Rep according to platform.
672 * einfo.ads (Float_Rep): New attribute.
673 (Float_Rep_Kind): Move from body. Add comments.
674 * einfo.adb (Float_Rep_Kind): Move to spec
675 (Float_Rep): Now a real field instead of local function.
676 (Set_Float_Rep): New procedure to set floating point representation
677 (Set_Vax_Float): Remove.
678 (Write_Entity_Flags): Remove Vax_Float flag.
679 (Write_Field10_Name): Add E_Floating_Point_Type case for Float_Rep.
680 * exp_attr.adb (Attribute_Valid): Use case statement for representation
682 * sem_ch3.adb (Build_Derived_Numeric_Type,
683 Floating_Point_Type_Declaration): Set Float_Rep instead of Vax_Float
685 * sem_util.ads, sem_util.adb (Is_AAMP_Float): Remove.
686 * sem_vfpt.adb (Set_D_Float, Set_F_Float, Set_G_Float, Set_IEEE_Long,
687 Set_IEEE_Short): Set Float_Rep instead of Vax_Float attribute.
689 2010-10-22 Robert Dewar <dewar@adacore.com>
691 * sprint.adb: Minor reformatting.
693 2010-10-22 Robert Dewar <dewar@adacore.com>
695 * exp_ch3.adb (Expand_N_Object_Declaration): Do required predicate
697 * sem_ch3.adb (Complete_Private_Subtype): Propagate predicates to full
699 * sem_ch6.adb (Invariants_Or_Predicates_Present): New name for
701 (Process_PPCs): Handle predicates generating post conditions
702 * sem_util.adb (Is_Partially_Initialized_Type): Add
703 Include_Null parameter.
704 * sem_util.ads (Is_Partially_Initialized_Type): Add
705 Include_Null parameter.
707 2010-10-22 Sergey Rybin <rybin@adacore.com>
709 * gnat_ugn.texi (gnatelim): Add description for '--ignore' option
711 2010-10-22 Thomas Quinot <quinot@adacore.com>
713 * sem_prag.adb (Check_First_Subtype): Specialize error messages for
714 case where argument is not a type.
716 2010-10-22 Robert Dewar <dewar@adacore.com>
718 * exp_ch5.adb, par-ch4.adb, par-ch5.adb, sem_ch5.adb, sinfo.ads: Minor
721 2010-10-22 Arnaud Charlet <charlet@adacore.com>
723 * a-locale.adb: Minor code clean up.
725 2010-10-22 Thomas Quinot <quinot@adacore.com>
727 * exp_ch4.adb: Minor code reorganization and factoring.
729 2010-10-22 Thomas Quinot <quinot@adacore.com>
731 * exp_ch5.adb, sem_ch5.adb, sinfo.ads, snames.ads-tmpl, par-ch5.adb:
734 2010-10-22 Geert Bosch <bosch@adacore.com>
736 * stand.ads: Fix typo in comment.
738 2010-10-22 Ed Schonberg <schonberg@adacore.com>
740 * sem_ch6.adb: Enable in-out parameter for functions.
742 2010-10-22 Ed Schonberg <schonberg@adacore.com>
744 * sem_ch4.adb (Analyze_Quantified_Expression): Handle properly loop
745 iterators that are transformed into container iterators after analysis.
746 * exp_ch4.adb (Expand_N_Quantified_Expression): Handle properly both
747 iterator forms before rewriting as a loop.
749 2010-10-22 Brett Porter <porter@adacore.com>
751 * a-locale.adb, a-locale.ads, locales.c: New files.
752 * Makefile.rtl: Add a-locale
753 * gcc-interface/Makefile.in: Add locales.c
755 2010-10-22 Robert Dewar <dewar@adacore.com>
757 * sem_util.ads, sem_util.adb, sem_aux.ads, sem_aux.adb
758 (Is_Generic_Formal): Moved from Sem_Util to Sem_Aux.
760 2010-10-22 Ed Schonberg <schonberg@adacore.com>
762 * exp_ch5.adb (Expand_Iterator_Loop): New subprogram, implements new
763 iterator forms over arrays and containers, in loops and quantified
765 * exp_util.adb (Insert_Actions): include N_Iterator_Specification.
766 * par-ch4.adb (P_Quantified_Expression): Handle iterator specifications.
767 * par-ch5.adb (P_Iterator_Specification): New subprogram. Modify
768 P_Iteration_Scheme to handle both loop forms.
769 * sem.adb: Handle N_Iterator_Specification.
770 * sem_ch5.adb, sem_ch5.ads (Analyze_Iterator_Specification): New
772 * sinfo.adb, sinfo.ads: New node N_Iterator_Specification.
773 N_Iteration_Scheme can now include an Iterator_Specification. Ditto
774 for N_Quantified_Expression.
775 * snames.ads-tmpl: Add names Cursor, Element, Element_Type, No_Element,
776 and Previous, to support iterators over predefined containers.
777 * sprint.adb: Handle N_Iterator_Specification.
779 2010-10-22 Thomas Quinot <quinot@adacore.com>
781 * sem_prag.adb, sem_ch12.adb, sem_util.adb, sem_util.ads
782 (Is_Generic_Formal): Move from body of Sem_Ch12 to Sem_Util.
783 (Check_Arg_Is_Local_Name): Fix check in the case of a pragma appearing
784 immediately after a library unit.
785 (Analyze_Pragma, case Preelaborable_Initialization): Pragma may apply to
786 a formal derived type.
788 2010-10-22 Geert Bosch <bosch@adacore.com>
790 * gcc-interface/Make-lang.in: Remove ttypef.ads
791 * checks.adb: Use Machine_Mantissa_Value and Machine_Radix_Value instead
792 of Machine_Mantissa and Machine_Radix.
793 * cstand.adb (P_Float_Range): Directly print the Type_Low_Bound and
794 Type_High_Bound of the type, instead of choosing constants from Ttypef.
795 (Set_Float_Bounds): Compute the bounds based on Machine_Radix_Value,
796 Machine_Emax_Value and Machine_Mantissa_Value instead of special-casing
798 * einfo.ads (Machine_Emax_Value, Machine_Emin_Value,
799 Machine_Mantissa_Value, Machine_Radix_Value, Model_Emin_Value,
800 Model_Epsilon_Value, Model_Mantissa_Value, Model_Small_Value,
801 Safe_Emax_Value, Safe_First_Value, Safe_Last_Value): Add new
802 synthesized floating point attributes.
803 * einfo.adb (Float_Rep): Determine the kind of floating point
804 representation used for a given type.
805 (Machine_Emax_Value, Machine_Emin_Value, Machine_Mantissa_Value,
806 Machine_Radix_Value): Implement based on Float_Rep_Kind of a type and
807 the number of digits in the type.
808 (Model_Emin_Value, Model_Epsilon_Value, Model_Mantissa_Value,
809 Model_Small_Value, Safe_Emax_Value, Safe_First_Value, Safe_Last_Value):
810 Implement new synthesized floating point attributes based on the various
812 * eval_fat.ads: Remove Machine_Mantissa and Machine_Radix.
813 * eval_fat.adb (Machine_Mantissa, Machine_Radix): Remove. Use the
814 Machine_Mantissa_Value and Machine_Radix_Value functions instead.
815 * exp_vfpt.adb (VAXFF_Digits, VAXDF_Digits, VAXFG_Digits): Define local
816 constants, instead of using constants from Ttypef.
817 * gnat_rm.texi: Reword comments referencing Ttypef.
818 * sem_attr.ads: Reword comment referencing Ttypef.
819 * sem_attr.adb (Float_Attribute_Universal_Integer,
820 Float_Attribute_Universal_Real): Remove.
821 (Attribute_Machine_Emax, Attribute_Machine_Emin,
822 Attribute_Machine_Mantissa, Attribute_Model_Epsilon,
823 Attribute_Model_Mantissa, Attribute_Model_Small, Attribute_Safe_Emax,
824 Attribute_Safe_First, Attribute_Safe_Last, Model_Small_Value): Use
825 attributes in Einfo instead of Float_Attribute_Universal_Real and
826 Float_Attribute_Universal_Integer and all explicit constants.
827 * sem_util.ads, sem_util.adb (Real_Convert): Remove.
828 * sem_vfpt.adb (VAXDF_Digits, VAXFF_Digits, VAXGF_Digits, IEEEL_Digits,
829 IEEES_Digits): New local constants, in order to remove dependency on
831 * tbuild.ads (Make_Float_Literal): New function.
832 * tbuild.adb (Make_Float_Literal): New function to create a new
833 N_Real_Literal, constructing it as simple as possible for best
834 output of constants in -gnatS.
835 * ttypef.ads: Remove.
837 2010-10-22 Robert Dewar <dewar@adacore.com>
839 * checks.adb (Apply_Predicate_Check): Remove attempt at optimization
840 when subtype is the same, caused legitimate checks to be missed.
841 * exp_ch13.adb (Build_Predicate_Function): Use Nearest_Ancestor to get
842 inheritance from right entity.
843 * freeze.adb (Freeze_Entity): Use Nearest_Ancestor to freeze in the
844 derived type case if the ancestor type has predicates.
845 * sem_aux.ads, sem_aux.adb (Nearest_Ancestor): New function.
846 * sem_prag.adb (Check_Enabled): Minor code reorganization.
848 2010-10-22 Arnaud Charlet <charlet@adacore.com>
850 * gcc-interface/utils.c, gcc-interface/gigi.h: Minor reformatting.
852 2010-10-22 Thomas Quinot <quinot@adacore.com>
854 * einfo.ads (Declaration_Node): Clarify documentation, in particular
855 regarding what is returned for subprogram entities.
857 2010-10-22 Arnaud Charlet <charlet@adacore.com>
859 * exp_attr.adb (Make_Range_Test): Generate a Range node instead of
860 explicit comparisons, generates simpler expanded code.
861 * a-except-2005.adb (Rcheck_06_Ext): New.
862 * gcc-interface/trans.c (gigi, gnat_to_gnu): Handle validity checks
864 * gcc-interface/Make-lang.in: Update dependencies.
866 2010-10-22 Robert Dewar <dewar@adacore.com>
868 * sem_ch3.adb (Array_Type_Declaration): Error for subtype wi predicate
870 (Constrain_Index): Error of subtype wi predicate in index constraint
871 * sem_ch9.adb (Analyze_Entry_Declaration): Error of subtype wi
872 predicate in entry family.
873 * sem_res.adb (Resolve_Slice): Error of type wi predicate in slice.
875 2010-10-22 Javier Miranda <miranda@adacore.com>
877 * sem_util.ads, sem_util.adb (Collect_Parents): New subprogram.
878 (Original_Corresponding_Operation): New subprogram.
879 (Visible_Ancestors): New subprogram.
880 * sem_ch6.adb (New_Overloaded_Entity): Handle new case of dispatching
881 operation that overrides a hidden inherited primitive.
882 * sem_disp.adb (Find_Hidden_Overridden_Primitive): New subprogram.
883 (Check_Dispatching_Operation): if the new dispatching operation
884 does not override a visible primtive then check if it overrides
885 some hidden inherited primitive.
887 2010-10-22 Ed Schonberg <schonberg@adacore.com>
889 * sem_ch10.adb (Analyze_With_Clause): If the parent_unit_name in a with
890 clause is a child unit that denotes a renaming, replace the
891 parent_unit_name with a reference to the renamed unit, because the
892 prefix is irrelevant to subsequent visibility..
894 2010-10-22 Robert Dewar <dewar@adacore.com>
896 * einfo.ads, einfo.adb (Has_Predicates): Flag is now on all entities
898 * exp_ch13.adb (Build_Predicate_Function): Output info msgs for
900 * sem_ch13.adb (Analyze_Aspect_Specifications): Make sure we have a
901 freeze node for entities for which a predicate is specified.
902 (Analyze_Aspect_Specifications): Avoid duplicate calls
903 * sem_ch3.adb (Analyze_Full_Type_Declaration): Remove attempt to avoid
904 duplicate calls to Analye_Aspect_Specifications.
906 2010-10-22 Thomas Quinot <quinot@adacore.com>
908 * a-exextr.adb, atree.ads, freeze.adb: Minor reformatting.
910 2010-10-21 Robert Dewar <dewar@adacore.com>
912 * sem_ch3.adb: Minor reformatting.
914 2010-10-21 Thomas Quinot <quinot@adacore.com>
916 * einfo.ads (Next_Girder_Discriminant): Remove obsolete description for
919 2010-10-21 Nicolas Roche <roche@adacore.com>
921 * gnatmem.adb, memroot.adb, memroot.ads, gmem.c,
922 gcc-interface/Makefile.in: Remove gnatmem specific files.
924 2010-10-21 Thomas Quinot <quinot@adacore.com>
926 * sem_res.adb, exp_ch13.adb: Minor reformatting.
928 2010-10-21 Thomas Quinot <quinot@adacore.com>
930 * sem_ch3.adb (Check_Or_Process_Discriminant): Reject illegal attempt
931 to provide a tagged full view as the completion of an untagged partial
932 view if the partial view has a discriminant with default.
934 2010-10-21 Arnaud Charlet <charlet@adacore.com>
936 * gcc-interface/Make-lang.in: Update dependencies.
938 2010-10-21 Robert Dewar <dewar@adacore.com>
940 * checks.ads, checks.adb (Apply_Predicate_Check): New procedure
941 Minor code reorganization.
942 * einfo.adb (Has_Predicates): Fix assertion.
943 * exp_ch13.adb (Build_Predicate_Function): Move from Sem_Ch13 spec to
945 (Expand_N_Freeze_Entity): Call build predicate function.
946 * exp_ch4.adb (Expand_N_Type_Conversion): Add predicate check.
947 * exp_ch5.adb (Expand_N_Assignment_Statement): Add predicate check.
948 * exp_prag.adb (Expand_Pragma_Check): Use all lower case for name of
950 * freeze.adb (Freeze_Entity): Move building of predicate function to
952 * sem_ch13.adb (Build_Predicate_Function): Move from Sem_Ch13 to
954 * sem_ch13.ads (Build_Predicate_Function): Move from Sem_Ch13 to
956 * sem_ch3.adb (Analyze_Declarations): Remove call to build predicate
958 * sem_res.adb (Resolve_Actuals): Apply predicate check.
960 2010-10-21 Robert Dewar <dewar@adacore.com>
962 * einfo.ads, einfo.adb: Replace Predicate_Procedure by
964 * exp_ch4.adb (Expand_N_In): Handle predicates.
965 * exp_util.ads, exp_util.adb (Make_Predicate_Call): New function.
966 (Make_Predicate_Check): New function.
967 * freeze.adb (Freee_Entity): Build predicate function if needed.
968 * sem_ch13.adb (Build_Predicate_Function): New procedure.
969 (Analyze_Aspect_Specifications): No third argument for Predicate pragma
970 built from Predicate aspect.
971 * sem_ch13.ads (Build_Predicate_Function): New procedure.
972 * sem_ch3.adb: Add handling for predicates.
973 * sem_eval.adb (Eval_Membership_Op): Never static if predicate
975 * sem_prag.adb (Analye_Pragma, case Predicate): Does not take a third
978 2010-10-21 Robert Dewar <dewar@adacore.com>
980 * einfo.ads, einfo.adb: Add handling of predicates.
981 Rework handling of invariants.
982 * exp_ch3.adb, exp_ch4.adb, exp_util.adb, sem_ch6.adb: Minor changes to
983 handing of invariants.
984 * par-prag.adb: Add dummy entry for pragma Predicate
985 * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing for
987 * sem_prag.adb: Add implementation of pragma Predicate.
988 * snames.ads-tmpl: Add entries for pragma Predicate.
990 2010-10-21 Robert Dewar <dewar@adacore.com>
992 * elists.adb: Minor reformatting.
994 2010-10-21 Geert Bosch <bosch@adacore.com>
996 * urealp.adb (UR_Write): Write hexadecimal constants with exponent 1 as
997 decimal constants, and write any others using the exponent notation.
998 Minor reformatting throughout
999 (Store_Ureal_Normalized): New function (minor code reorganization)
1001 2010-10-21 Robert Dewar <dewar@adacore.com>
1003 * einfo.ads, xeinfo.adb: Minor reformatting.
1004 * s-stalib.ads: Minor comment fixes.
1006 2010-10-21 Ed Schonberg <schonberg@adacore.com>
1008 * sem_ch6.adb (Enter_Overloaded_Entity): Refine warning message about
1009 hiding, to remove noise warnings about hiding predefined operators.
1011 2010-10-21 Emmanuel Briot <briot@adacore.com>
1013 * g-comlin.adb (Add_Switch): Fix handling of switches with no separator
1014 when the parameter has length 1.
1016 2010-10-21 Jose Ruiz <ruiz@adacore.com>
1018 * sem_prag.adb (Set_Ravenscar_Profile): Enforce the restrictions of no
1019 dependence on Ada.Execution_Time.Timers,
1020 Ada.Execution_Time.Group_Budget, and
1021 System.Multiprocessors.Dispatching_Domains which are part of the
1023 * impunit.adb (Non_Imp_File_Names_05): Add the file "a-etgrbu" to the
1024 list of Ada 2005 files for package Ada.Execution_Time.Group_Budgets.
1025 (Non_Imp_File_Names_12): Add the file "s-mudido" to the list of Ada 2012
1026 files for package System.Mutiprocessors.Dispatching_Domains.
1028 2010-10-21 Tristan Gingold <gingold@adacore.com>
1030 * ug_words, vms_data.ads: Define the VMS qualifier for -gnateE.
1032 2010-10-21 Thomas Quinot <quinot@adacore.com>
1034 * sem_ch3.ads (Process_Discriminants): Clarify cases where this is
1035 called for a completion.
1037 2010-10-21 Geert Bosch <bosch@adacore.com>
1039 * uintp.ads: Expand image buffer to have enough room for 128-bit values
1040 * urealp.ads (UR_Write): Write constants in base 16 in hexadecimal
1041 notation; either as fixed point literal or in canonical radix 16
1042 floating point form.
1044 2010-10-21 Robert Dewar <dewar@adacore.com>
1046 * a-cgaaso.ads, a-tags.ads, exp_ch3.adb, exp_attr.adb, exp_ch4.adb,
1047 exp_ch3.ads, exp_ch7.adb, exp_ch9.adb, exp_disp.adb, exp_disp.ads,
1048 exp_dist.adb, exp_util.adb, layout.adb, lib-xref.adb, lib.ads,
1049 prep.adb, prj-strt.adb, s-ststop.adb, s-taskin.ads, s-tataat.ads,
1050 sem_aggr.adb, sem_attr.adb, sem_ch12.adb, sem_ch3.adb, sem_ch4.adb,
1051 sem_ch4.ads, sem_ch5.adb, sem_res.adb, sem_util.adb, einfo.adb,
1052 g-sothco.ads, make.adb: Minor reformatting
1054 2010-10-21 Vincent Celier <celier@adacore.com>
1056 * vms_data.ads: Add new qualifiers /SRC_INFO= and
1057 /UNCHECKED_SHARED_LIB_IMPORTS for GNAT COMPILE.
1058 Correct qualifier /SRC_INFO= for GNAT MAKE
1060 2010-10-21 Ed Schonberg <schonberg@adacore.com>
1062 * exp_aggr.adb (Flatten): An association for a subtype may be an
1064 (Safe_Left_Hand_Side): An unchecked conversion is part of a safe
1065 left-hand side if the expression is.
1066 (Is_Safe_Index): new predicate
1067 * exp_ch3.adb (Expand_Freeze_Enumeration_Type): Indicate that the
1068 generated Rep_To_Pos function is a Pure_Function.
1070 2010-10-21 Robert Dewar <dewar@adacore.com>
1072 * gnat_rm.texi: Document Invariant pragma.
1074 2010-10-21 Javier Miranda <miranda@adacore.com>
1076 * exp_ch5.adb: Update comment.
1078 2010-10-21 Robert Dewar <dewar@adacore.com>
1080 * sem_ch13.adb (Build_Invariant_Procedure): Remove commented out code
1081 for interfaces, since invariants are not allowed on interfaces in any
1084 2010-10-21 Javier Miranda <miranda@adacore.com>
1086 * sem_attr.adb (Resolve_Attribute): After replacing the range attribute
1087 node with a range expression ensure that its evaluation will not have
1089 * exp_ch5.adb (Expand_Assign_Array): Propagate the Parent to the
1090 unchecked conversion node generated to handle assignment of private
1091 types. Required to allow climbing the subtree if Insert_Action is
1094 2010-10-21 Robert Dewar <dewar@adacore.com>
1096 * par-ch3.adb (P_Interface_Type_Definition): Allow for possibility of
1097 aspect clause presence terminating the type definition.
1099 2010-10-21 Robert Dewar <dewar@adacore.com>
1101 * exp_ch4.adb, exp_intr.adb, par-ch4.adb, scn.adb, sem_ch4.adb,
1102 sem_res.adb, sem_util.adb, sinfo.ads, a-except-2005.adb: Minor
1104 * snames.ads-tmpl: Add note on Name_Some (not a reserved keyword).
1106 2010-10-21 Geert Bosch <bosch@adacore.com>
1108 * ttypef.ads: Further cleanup of Safe_XXX float attributes.
1110 2010-10-19 Ed Schonberg <schonberg@adacore.com>
1112 * exp_ch4.adb, exp_ch4.ads (Expand_Quantified_Expression): New procedure
1113 * exp_util.adb (Insert_Actions): Include Quantified_Expression.
1114 * expander.adb: Call Expand_Qualified_Expression.
1115 * par.adb: New procedure P_Quantified_Expression. Make
1116 P_Loop_Parameter_Specification global for use in quantified expressions.
1117 * par-ch3.adb (P_Subtype_Mark_Resync): Allow "some" as an identifier if
1119 * par-ch4.adb: New procedure P_Quantified_Expression.
1120 * par-ch5.adb: P_Loop_Parameter_Specification is now global.
1121 * scans.adb, scans.ads: Introduce token Some. For now leave as
1123 * scn.adb (Scan_Reserved_Identifier): For earlier versions of Ada,
1124 treat Some as a regular identifier.
1125 * sem.adb: Call Analyze_Quantified_Expression.
1126 * sem_ch4.adb, sem_ch4.ads: New procedure Analyze_Quantified_Expression.
1127 * sem_ch5.adb, sem_ch5.ads: Analyze_Iteration_Scheme is public, for use
1128 in quantified expressions.
1129 * sem_res.adb: New procedure Resolve_Qualified_Expression.
1130 * sinfo.adb, sinfo.ads: New node N_Quantified_Expression
1131 * snames.ads-tmpl: New name Some.
1132 * sprint.adb: Output quantified_expression.
1134 2010-10-19 Robert Dewar <dewar@adacore.com>
1136 * a-exexda.adb: Minor reformatting
1137 Minor code reorganization.
1139 2010-10-19 Robert Dewar <dewar@adacore.com>
1141 * sem_eval.adb: Minor reformatting.
1143 2010-10-19 Tristan Gingold <gingold@adacore.com>
1145 * exp_ch4.adb (Expand_N_And_Op, Expand_N_Or_Op, Expand_N_Xor_Op): Call
1146 Expand_Intrinsic_Call if the function is intrinsic.
1147 * exp_intr_adb (Expand_Binary_Operator): Handle VMS case for logical
1148 binary operator on the unsigned_quadword record.
1149 * exp_intr.ads (Expand_Intrinsic_Call): Update comments.
1151 2010-10-19 Geert Bosch <bosch@adacore.com>
1153 * gnat_rm.texi (pragma Float_Representation): Fix typo.
1155 2010-10-19 Arnaud Charlet <charlet@adacore.com>
1157 * switch-c.adb (Scan_Front_End_Switches): Add handling of -gnateE.
1158 * fe.h (Exception_Extra_Info): Declare.
1159 * usage.adb (usage): Add -gnateE doc.
1160 * checks.adb (Install_Null_Excluding_Check): Use better sloc.
1161 * sem_util.adb (Insert_Explicit_Dereference): Ditto.
1162 * gnat_ugn.texi: Document -gnateE switch.
1163 * a-except.adb (Set_Exception_C_Msg): New parameter Column.
1164 * a-except-2005.adb (Set_Exception_C_Msg): New parameter Column.
1165 (Raise_Constraint_Error_Msg): Ditto.
1166 (Image): New helper function.
1167 (Rcheck_00_Ext, Rcheck_05_Ext, Rcheck_12_Ext): New procedure with more
1168 detailed exception information.
1169 Adjust calls to Set_Exception_C_Msg and Raise_Constraint_Error_Msg.
1170 * a-exexda.adb (Set_Exception_C_Msg): New parameter Column.
1171 * opt.ads (Exception_Extra_Info): New flag.
1172 * gcc-interface/utils.c (gnat_raise_decls_ext): New.
1173 * gcc-interface/utils2.c (build_call_raise_range,
1174 build_call_raise_column): New functions.
1175 * gcc-interface/gigi.h (exception_info_kind, gnat_raise_decls_ext,
1176 build_call_raise_range, build_call_raise_column): Declare.
1177 gcc-interface/trans.c (build_raise_check): New function.
1178 (gigi): Initialize gnat_raise_decls_ext.
1179 (gnat_to_gnu): Add initial support for -gnateE switch.
1180 * gcc-interface/Make-lang.in: Update dependencies.
1182 2010-10-19 Geert Bosch <bosch@adacore.com>
1184 * ttypef.ads: Change VAXDF_Last to be -VAXDF_First, as type is
1187 2010-10-19 Robert Dewar <dewar@adacore.com>
1189 * atree.h (Field29): Fix incorrect definition.
1190 * einfo.adb (Invariant_Procedure): New attribute
1191 (Has_Invariants): New flag
1192 (Has_Inheritable_Invariants): New flag
1193 (OK_To_Reference): New flag
1194 Minor code reorganization (use Next_Rep_Item function)
1195 * einfo.ads (Invariant_Procedure): New attribute
1196 (Has_Invariants): New flag
1197 (Has_Inheritable_Invariants): New flag
1198 (OK_To_Reference): New flag
1199 * exp_ch3.adb (Expand_N_Object_Declaration): Add check for invariant
1200 * exp_ch4.adb (Expand_N_Type_Conversion): Check invariant on type
1201 conversion. Minor reformatting.
1202 * exp_util.ads, exp_util.adb (Make_Invariant_Call): New procedure.
1203 * opt.ads (List_Inherited_Aspects): New name for List_Inherited_Pre_Post
1204 * par-prag.adb: Add dummy entry for pragma Invariant.
1205 * sem_ch13.adb (Build_Invariant_Procedure): New procedure
1206 (Analyze_Aspect_Specification): Add support for Invariant aspect
1207 * sem_ch13.ads (Build_Invariant_Procedure): New procedure
1208 * sem_ch3.adb (Build_Derived_Type): Propagate invariant information
1209 (Process_Full_View): Deal with invariants, building invariant procedure
1211 * sem_ch6.adb (Process_PPCs): Add processing of invariants
1212 * sem_ch7.adb (Analyze_Package_Specification): Build invariant
1214 * sem_prag.adb: Implement pragma Invariant.
1215 * sem_res.adb (Resolve_Entity_Name): Allow type reference if
1216 OK_To_Reference set.
1217 * sem_warn.adb (List_Inherited_Aspects): New name for
1218 List_Inherited_Pre_Post.
1219 * snames.ads-tmpl: Add entries for pragma Invariant.
1220 * treepr.adb (Print_Entity_Information): Add handling of Field29.
1221 * usage.adb: Warning .l/.L applies to invariant as well as pre/post.
1223 2010-10-19 Javier Miranda <miranda@adacore.com>
1225 * par-ch4.adb: Update documentation of Ada 2012 syntax rules for
1228 2010-10-19 Bob Duff <duff@adacore.com>
1230 * sem_attr.adb (Eval_Attribute): Implement Max_Alignment_For_Allocation
1232 * exp_attr.adb (Expand_N_Attribute_Reference): Add
1233 Attribute_Max_Alignment_For_Allocation to the case statement.
1234 * snames.ads-tmpl (Name_Max_Alignment_For_Allocation,
1235 Attribute_Max_Alignment_For_Allocation): New attribute name.
1237 2010-10-19 Ed Schonberg <schonberg@adacore.com>
1239 * sem_ch3.adb (OK_For_Limited_Init_In_05): a call to an access to
1240 parameterless function appears syntactically as an explicit dereference.
1242 2010-10-19 Thomas Quinot <quinot@adacore.com>
1244 * sem_ch8.adb, sem_ch12.adb, opt.ads, sem_ch6.adb, sem_res.adb,
1245 i-cexten.ads, exp_disp.adb, exp_ch4.adb, exp_ch9.adb: Minor reformatting
1247 2010-10-19 Thomas Quinot <quinot@adacore.com>
1249 * sem_util.adb (Collect_Primitive_Operations): A function with an
1250 anonymous access result designating T is a primitive operation of T.
1252 2010-10-19 Tristan Gingold <gingold@adacore.com>
1254 * init.c: On Alpha/VMS, only adjust PC for HPARITH.
1256 2010-10-19 Tristan Gingold <gingold@adacore.com>
1258 * sem_attr.adb (Eval_Attribute): Handle Attribute_Ref, which can be
1261 2010-10-19 Ed Schonberg <schonberg@adacore.com>
1263 * sem_ch12.adb (Check_Generic_Child_Unit): Handle properly the case of
1264 an instantiation of a renaming of the implicit generic child that
1265 appears within an instance of its parent.
1267 2010-10-19 Thomas Quinot <quinot@adacore.com>
1269 * exp_ch9.adb: Minor reformatting.
1270 * einfo.adb, einfo.ads, atree.adb, atree.ads, exp_dist.adb, atree.h:
1271 (Referenced_Object): Remove unused entity attribute.
1272 (Direct_Primitive_Operations): Move to Elist10, this is set for all
1273 tagged types, including synchronous ones, so can't use field15 which is
1274 used as Storage_Size_Variable for task types and Entry_Bodies_Array for
1276 (Add_RACW_Primitive_Declarations_And_Bodies): Remove bogus guard
1277 against Concurrent_Types (we must handle the case of a RACW designating
1278 a class-wide private synchronous type).
1279 Use Direct_Primitive_Operations, not Primitive_Operations, since we
1280 really want the former.
1282 2010-10-19 Bob Duff <duff@adacore.com>
1284 * sem_ch8.adb (Pop_Scope): Change "return;" to "raise Program_Error;".
1286 2010-10-19 Javier Miranda <miranda@adacore.com>
1288 * exp_ch4.adb (Expand_Set_Membership.Make_Cond): Add missing support
1291 2010-10-19 Thomas Quinot <quinot@adacore.com>
1293 * einfo.ads, atree.ads: Minor comment fixes.
1295 2010-10-18 Bob Duff <duff@adacore.com>
1297 * sinfo.ads, sinfo.adb: Modify comment about adding fields to be more
1298 correct, and to be in a more convenient order.
1299 (Default_Storage_Pool): New field of N_Compilation_Unit_Aux, for
1300 recording the Default_Storage_Pool for a parent library unit.
1301 * einfo.ads (Etype): Document the case in which Etype can be Empty.
1302 * sem_prag.adb (Pragma_Default_Storage_Pool): Analyze the new
1303 Default_Storage_Pool pragma.
1304 * sem.ads (Save_Default_Storage_Pool): Save area for push/pop scopes.
1305 * gnat_ugn.texi: Document Default_Storage_Pool as a new configuration
1307 * freeze.adb (Freeze_Entity): When freezing an access type, take into
1308 account any Default_Storage_Pool pragma that applies. We have to do
1309 this at the freezing point, because up until that point, a Storage_Pool
1310 or Storage_Size clause could occur, which should override the
1311 Default_Storage_Pool.
1312 * par-prag.adb: Add this pragma to the list of pragmas handled entirely
1314 * sem_ch8.adb (Push_Scope, Pop_Scope): Save and restore the
1315 Default_Storage_Pool information.
1316 * opt.ads (Default_Pool, Default_Pool_Config): New globals for recording
1317 currently-applicable Default_Storage_Pool pragmas.
1318 * opt.adb: Save/restore the globals as appropriate.
1319 * snames.ads-tmpl (Name_Default_Storage_Pool,
1320 Pragma_Default_Storage_Pool): New pragma name.
1322 2010-10-18 Vincent Celier <celier@adacore.com>
1324 * make.adb (Switches_Of): Put the spec and body suffix in canonical
1327 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1329 * sem_ch13.adb (Analyze_Aspect_Specifications): If subprogram is at the
1330 library level, the pre/postconditions must be treated as global
1331 declarations, i.e. placed on the Aux_Decl nodes of the compilation unit.
1332 * freeze.adb (Freeze_Expression): If the expression is at library level
1333 there is no enclosing record to check.
1335 2010-10-18 Javier Miranda <miranda@adacore.com>
1337 * sem_ch3.ads (Find_Type_Name): Add documentation.
1338 * sem_ch3.adb (Analyze_Full_Type_Declaration): Code cleanup because the
1339 propagation of the class-wide entity is now done by routine
1340 Find_Type_Name to factorize this code.
1341 (Analyze_Private_Extension_Declaration): Handle private type that
1342 completes an incomplete type.
1343 (Tag_Mismatch): Add error message for tag mismatch in a private type
1344 declaration that completes an incomplete type.
1345 (Find_Type_Name): Handle completion of incomplete type by means of
1346 a private declaration. Generate an error if a tagged incomplete type
1347 is completed by an untagged private type.
1348 * sem_ch7.adb (New_Private_Type): Handle private type that completes an
1350 * einfo.ads (Full_View): Add documentation.
1352 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1354 * sem_ch12.adb (Analyze_Formal_Package_Declaration): If the package is
1355 a renaming, generate a reference for it before analyzing the renamed
1356 entity, to prevent spurious warnings.
1358 2010-10-18 Jose Ruiz <ruiz@adacore.com>
1360 * adaint.c (__gnat_pthread_setaffinity_np,
1361 __gnat_pthread_attr_setaffinity_np): Remove wrappers, no longer needed.
1362 * s-osinte-linux.ads (pthread_setaffinity_np,
1363 pthread_attr_setaffinity_np): Remove use of wrappers.
1364 * s-taprop-linux.adb (Create_Task, Initialize): Restore check to verify
1365 whether the affinity functionality is available in the OS.
1366 * gcc-interface/utils.c: Set TREE_STATIC on functions only when there
1369 2010-10-18 Robert Dewar <dewar@adacore.com>
1371 * einfo.ads, einfo.adb: Minor reformatting.
1372 * gnat_ugn.texi, ug_words: Add missing entries, fix typos.
1374 2010-10-18 Emmanuel Briot <briot@adacore.com>
1376 * g-comlin.adb (Is_In_Config): When the switch accepts either a space
1377 or equal, we output an equal every time.
1379 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1381 * sem_res.adb (Resolve_Entry_Call): Handle call to an entry family
1382 member when pre/post conditions are present.
1383 * exp_ch9.adb (Build_PPC_Wrapper): The PPC_Wrapper for an entry family
1384 includes an index parameter, and the name of the enclosed entry call is
1385 an indexed component.
1387 2010-10-18 Robert Dewar <dewar@adacore.com>
1389 * einfo.ads, einfo.adb: Minor reformatting.
1391 2010-10-18 Jose Ruiz <ruiz@adacore.com>
1393 * adaint.c (__gnat_pthread_setaffinity_np,
1394 __gnat_pthread_attr_setaffinity_np): Add these wrappers which check the
1395 availability of the underlying OS functionality before calling.
1396 * s-osinte-linux.ads (pthread_setaffinity_np,
1397 pthread_attr_setaffinity_np): Call a wrapper instead of the OS function
1398 to perform a check of its availability.
1399 * s-taprop-linux.adb (Create_Task): Remove the check to verify whether
1400 the affinity functionality is available in the OS. Now done in a wrapper
1401 * gcc-interface/Makefile.in: Remove vmshandler.asm, unused.
1402 * gcc-interface/Make-lang.in: Update dependencies.
1404 2010-10-18 Robert Dewar <dewar@adacore.com>
1406 * sinfo.ads, sinfo.adb: Change Has_Pragma_CPU to Flag14 (Flag10 is
1409 2010-10-18 Robert Dewar <dewar@adacore.com>
1411 * s-stausa.adb, s-taprop-linux.adb, s-taprop-mingw.adb, s-tassta.ads:
1414 2010-10-18 Robert Dewar <dewar@adacore.com>
1416 * exp_strm.adb (Build_Elementary_Input_Call): Check
1417 No_Default_Stream_Attributes.
1418 (Build_Elementary_Write_Call): Check No_Default_Stream_Attributes
1419 * s-rident.ads: Add restriction No_Default_Stream_Attributes
1420 Put restriction No_Allocators_After_Elaboration in alpha order
1422 2010-10-18 Jose Ruiz <ruiz@adacore.com>
1424 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Add field corresponding
1425 to the affinity when expanding the task declaration.
1426 (Make_Task_Create_Call): Add the affinity parameter to the call to
1428 * sem_prag.adb (Analyze_Pragma): Add the analysis for pragma CPU,
1429 taking into account the case when it applies to a subprogram (only for
1430 main and with static expression) or to a task.
1431 * par_prag.adb:(Prag): Make pragma CPU a valid one.
1432 * snames.ads-tmpl (Name_uCPU, Name_CPU): Add these new name identifiers
1433 used by the expander for handling the affinity parameter when creating
1435 (Pragma_Id): Add Pragma_CPU as a valid one.
1436 * rtsfind.ads (RTU_Id): Make System_Multiprocessors accesible.
1437 (RE_Id, RE_Unit_Table): Make the entities RE_CPU_Range and
1438 RE_Unspecified_CPU visible.
1439 * sinfo.ads, sinfo.adb (Has_Pragma_CPU, Set_Has_Pragma_CPU): Add these
1440 two subprograms to set/get the flag indicating whether there is a
1441 pragma CPU which applies to the entity.
1442 * lib.ads, lib.adb (Unit_Record, Default_Main_CPU, Main_CPU,
1443 Set_Main_CPU): Add the field Main_CPU to Unit_Record to store the value
1444 of the affinity associated to the main subprogram (if any).
1445 Default_Main_CPU is used when no affinity is set. Subprograms
1446 Set_Main_CPU and Main_CPU are added to set/get the affinity of the main
1448 * ali.ads, ali.adb (ALIs_Record): Add field Main_CPU to contain the
1449 value of the affinity of the main subprogram.
1450 (Scan_ALI): Get the affinity of the main subprogram (encoded as C=XX in
1452 * lib-writ.ads, lib-writ.adb (M_Parameters): Encode the affinity of the
1453 main subprogram in the M (main) line using C=XX.
1454 * lib-load.adb (Create_Dummy_Package_Unit, Load_Main_Source,
1455 Load_Unit): Add new field Main_CPU.
1456 * bindgen.adb (Gen_Adainit_Ada, Gen_Adainit_C): Add the code to pass
1457 the affinity of the main subprogram to the run time.
1458 * s-taskin.ads (Common_ATCB): Add the field Base_CPU to store the
1460 (Unspecified_CPU): Add this constant to identify the case when no
1461 affinity is set for tasks.
1462 * s-taskin.adb (Initialize_ATCB): Store the value coming from pragma
1463 CPU in the common part of the ATCB.
1464 (Initialize): Store the value coming from pragma CPU (for the
1465 environment task) in the common part of the ATCB.
1466 * s-tassta.ads, s-tassta.adb (Create_Task): Add the affinity specified
1467 by pragma CPU to the ATCB.
1468 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add the affinity
1469 specified by pragma CPU to the ATCB.
1470 * s-tporft.adb (Register_Foreign_Thread): Add the new affinity
1471 parameter to the call to Initialize_ATCB.
1472 * s-taprop-linux.adb (Create_Task): Change the attributes of the thread
1473 to include the task affinity before creation. Additionally, the
1474 affinity selected with Task_Info is also enforced changing the
1475 attributes at task creation time, instead of changing it after creation.
1476 (Initialize): Change the affinity of the environment task if required
1478 * s-osinte-linux.ads (pthread_setaffinity_np): Instead of using a
1479 wrapper to check whether the function is available or not, use a weak
1481 (pthread_attr_setaffinity_np): Add the import of this function which is
1482 used to change the affinity in the attributes used to create a thread.
1483 * adaint.c (__gnat_pthread_attr_setaffinity_np): Remove this wrapper.
1484 It was used to check whether the pthread function was available or not,
1485 but the use of a weak symbol handles this situation in a cleaner way.
1486 * s-taprop-mingw.adb (Create_Task, Initialize): Change the affinity of
1487 tasks (including the environment task) if required by a pragma CPU.
1488 * s-taprop-solaris.adb (Enter_Task): Change the affinity of tasks
1489 (including the environment task) if required by a pragma CPU.
1490 * s-taprop-vxworks.adb (Create_Task, Initialize): Change the affinity
1491 of tasks (including the environment task) if required by a pragma CPU.
1492 * init.c (__gl_main_cpu): Make this value visible to the run time. It
1493 will pass the affinity of the environment task.
1495 2010-10-18 Javier Miranda <miranda@adacore.com>
1497 * einfo.adb (Direct_Primitive_Operations): Complete assertion.
1499 2010-10-18 Vincent Celier <celier@adacore.com>
1501 * prj.ads (Source_Data): New Boolean flag In_The_Queue.
1503 2010-10-18 Tristan Gingold <gingold@adacore.com>
1505 * s-stausa.ads: Add the Top parameter to Initialize_Analyzer.
1506 * s-stausa.adb: Use the top parameter. In Fill_Stack, use the
1508 * s-tassta.adb (Task_Wrapper): Call Initialize_Analyzer after Enter_Task
1509 so that Pri_Stack_Info.Limit can be set and used.
1511 2010-10-18 Robert Dewar <dewar@adacore.com>
1513 * einfo.ads: Minor reformatting.
1514 * sem_res.adb (Resolve_Allocator): Add test for violating
1515 No_Anonymous_Allocators.
1517 2010-10-18 Robert Dewar <dewar@adacore.com>
1519 * prj-nmsc.adb, prj.adb, sem_res.adb: Minor reformatting.
1521 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1523 * sem_util.adb (Insert_Explicit_Dereference): If operand is a selected
1524 component, we generate a reference to the ultimate prefix when it is an
1525 entity name. We must place the reference on the identifier for that
1526 prefix, and not on the operand itself, to prevent spurious extra
1527 references in the ali file.
1529 2010-10-18 Vincent Celier <celier@adacore.com>
1531 * projects.texi: Add documentation for attribute Ignore_Source_Sub_Dirs
1533 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1535 * einfo.ads, einfo.adb: New attribute PPC_Wrapper for entries and entry
1536 families. Denotes a procedure that performs pre/postcondition checks
1537 and then performs the entry call.
1538 * sem_res.adb (Resolve_Entry_Call): If the entry has
1539 pre/postconditions, replace call with a call to the PPC_Wrapper of the
1541 * exp_ch9.adb (Build_PPC_Wrapper): new procedure.
1542 (Expand_N_Entry_Declaration, Expand_N_Protected_Type_Declaration): call
1543 Build_PPC_Wrapper for all entries in task and protected definitions.
1545 2010-10-18 Tristan Gingold <gingold@adacore.com>
1547 * init.c: Add __gnat_set_stack_guard_page and __gnat_set_stack_limit.
1548 Implement stack limitation on VMS.
1551 2010-10-18 Vincent Celier <celier@adacore.com>
1553 * prj.adb (Is_Compilable): Do not modify Source.Compilable until the
1554 source record has been initialized.
1556 2010-10-18 Robert Dewar <dewar@adacore.com>
1558 * einfo.adb: Minor code reorganization (Primitive_Operations is a
1559 synthesized attribute routine and was in the wrong place).
1561 2010-10-18 Tristan Gingold <gingold@adacore.com>
1563 * init.c: Indentation, and minor changes to more closely follow GNU
1564 style rules. Make more variable statics.
1566 2010-10-18 Vincent Celier <celier@adacore.com>
1568 * prj.adb (Is_Compilable): On first call for a source, cache value in
1569 component Compilable.
1570 * prj.ads (Source_Data): New component Compilable, to cache the value
1571 returned by function Is_Compilable.
1573 2010-10-18 Vincent Celier <celier@adacore.com>
1575 * prj-attr.adb: New project level attribute Ignore_Source_Sub_Dirs.
1576 * prj-nmsc.adb (Expand_Subdirectory_Pattern): New string list parameter
1578 (Recursive_Find_Dirs): Do not consider subdirectories listed in Ignore.
1579 (Get_Directories): Call Find_Source_Dirs with the string list
1580 indicated by attribute Ignore_Source_Sub_Dirs.
1581 * snames.ads-tmpl: New standard name Ignore_Source_Sub_Dirs.
1583 2010-10-18 Javier Miranda <miranda@adacore.com>
1585 * einfo.ads, einfo.adb (Primitive_Operations): New synthesized
1587 (Direct_Primitive_Operations): Renaming of old Primitive_Operations.
1588 (Set_Direct_Primitive_Operations): Renaming of old
1589 Set_Primitive_Operations. Update documentation
1590 * sem_ch3.adb, exp_util.adb, sem_ch7.adb, sem_ch8.adb, exp_ch3.adb:
1591 Replace occurrences of Set_Primitive_Operations by
1592 Set_Direct_Primitive_Operations.
1593 * sem_cat.adb (Validate_RACW_Primitives): No action needed for tagged
1595 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
1596 process primitives of concurrent types.
1597 * lib-xref.adb (Generate_Prim_Op_References): Minor code cleanup.
1599 2010-10-18 Eric Botcazou <ebotcazou@adacore.com>
1601 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Use Freeze_Before.
1602 (Expand_Protected_Object_Reference): Likewise.
1603 * sem_attr.adb (Resolve_Attribute): Likewise.
1604 * sem_ch3.adb (Analyze_Subtype_Declaration): Likewise.
1605 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Likewise.
1607 2010-10-18 Arnaud Charlet <charlet@adacore.com>
1609 * g-comlin.adb (Get_Switches): Prevent dereferencing null Config.
1611 2010-10-18 Robert Dewar <dewar@adacore.com>
1613 * aspects.ads, aspects.adb: Add entries for aspects
1614 Read/Write/Input/Output.
1615 * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing for
1616 handling aspects Read/Write/Input/Output.
1618 2010-10-18 Robert Dewar <dewar@adacore.com>
1620 * sem_util.adb (Note_Possible_Modification): Do not give warning for
1621 use of pragma Unmodified unless we are sure this is a modification.
1623 2010-10-18 Tristan Gingold <gingold@adacore.com>
1625 * sysdep.c: Add __gnat_get_stack_bounds.
1626 * s-taprop-mingw.adb Call __gnat_get_stack_bounds to set Pri_Stack_Info.
1628 2010-10-18 Robert Dewar <dewar@adacore.com>
1630 * a-assert.ads: Fix bad name in header.
1631 * sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch10.adb: Minor
1633 * exp_aggr.adb: Fix typo in comment.
1635 2010-10-18 Javier Miranda <miranda@adacore.com>
1637 * exp_util.adb (Side_Effect_Free): Code clean up.
1639 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1641 * sem_ch8.adb (Is_Primitive_Operator_In_Use): Renamed from
1642 Is_Primitive_Operator. When ending the scope of a use package scope, a
1643 primitive operator remains in use if the base type has a current use
1646 2010-10-18 Javier Miranda <miranda@adacore.com>
1648 * einfo.ads (Is_Dynamic_Support): Add missing support for limited
1649 private types whose full-view is a task type.
1650 * sem_util.adb (Enclosing_Subprogram): Add missing support for limited
1651 private types whose full-view is a task type.
1652 * exp_ch7.adb (Find_Final_List): Minor code cleanup replacing code by
1653 function Nearest_Dynamic_Scope which provides the needed functionality.
1655 2010-10-18 Arnaud Charlet <charlet@adacore.com>
1657 * sem_prag.adb (Set_Exported): Do not generate error when exporting a
1658 variable with an address clause in codepeer mode.
1660 2010-10-18 Robert Dewar <dewar@adacore.com>
1662 * g-trasym-vms-ia64.adb: Minor reformatting.
1664 2010-10-18 Thomas Quinot <quinot@adacore.com>
1666 * sem_type.adb (Covers): If either argument is Standard_Void_Type and
1667 the other isn't, return False early.
1669 2010-10-18 Ed Falis <falis@adacore.com>
1671 * s-vxwext-rtp.ads, s-vxext-rtp.adb: Adapt for missing APIs for RTPs in
1674 2010-10-18 Robert Dewar <dewar@adacore.com>
1676 * sem_disp.ads: Minor comment update.
1678 2010-10-18 Robert Dewar <dewar@adacore.com>
1680 * einfo.ads, einfo.adb (Spec_PPC_List): Is now present in Entries
1681 * sem_ch3.adb (Analyze_Declarations): Add processing for delaying
1682 visibility analysis of precondition and postcondition pragmas (and
1684 * sem_ch6.adb (Process_PPCs): Add handling of inherited Pre'Class
1686 * sem_ch7.adb (Analyze_Package_Specification): Remove special handling
1687 of pre/post conditions (no longer needed).
1688 * sem_disp.adb (Inherit_Subprograms): Deal with interface case.
1689 * sem_prag.adb (Analyze_PPC_In_Decl_Part): Remove analysis of message
1690 argument, since this is now done in the main processing for
1691 pre/postcondition pragmas when they are first seen.
1692 (Chain_PPC): Pre'Class and Post'Class now handled properly
1693 (Chain_PPC): Handle Pre/Post aspects for entries
1694 (Check_Precondition_Postcondition): Handle entry declaration case
1695 (Check_Precondition_Postcondition): Handle delay of visibility analysis
1696 (Check_Precondition_Postcondition): Preanalyze message argument if
1699 2010-10-18 Robert Dewar <dewar@adacore.com>
1701 * g-trasym-vms-ia64.adb, prj-nmsc.adb, prj.ads: Minor reformatting.
1703 2010-10-14 Eric Botcazou <ebotcazou@adacore.com>
1705 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Set
1706 TREE_THIS_NOTRAP on the INDIRECT_REF node built for the template.
1707 * gcc-interface/trans.c (Identifier_to_gnu): Set TREE_THIS_NOTRAP on
1708 the INDIRECT_REF node built for objects used by reference.
1709 * gcc-interface/utils2.c (build_binary_op): Add short-circuit for
1710 constant result. Set TREE_THIS_NOTRAP on ARRAY_REF and ARRAY_RANGE_REF.
1711 (gnat_stabilize_reference_1): Propagate the TREE_THIS_NOTRAP flag.
1713 2010-10-13 Richard Henderson <rth@redhat.com>
1715 * gcc-interface/misc.c (gnat_eh_personality): Update call to
1716 build_personality_function.
1717 * raise-gcc.c (PERSONALITY_FUNCTION): Change to match other languages;
1718 use__gnat_personality_{v,sj}0.
1720 2010-10-12 Vincent Celier <celier@adacore.com>
1722 * prj-nmsc.adb (Add_Source): Put source in hash table Source_Files_HT
1723 (Process_Exceptions_File_Based): Use hash table Source_Files_HT instead
1724 of iterating through all sources of the project.
1725 * prj.adb (Free): Reset hash table Source_Files_HT
1726 (Reset): Reset hash table Source_Files_HT
1727 * prj.ads (Source_Data): New component Next_With_File_Name
1728 (Source_Files_Htable): New hash table
1729 (Project_Tree_Data): New component Source_Files_HT
1731 2010-10-12 Tristan Gingold <gingold@adacore.com>
1733 * g-trasym-vms-ia64.adb: Use the documented API.
1734 * gcc-interface/Makefile.in: Always set NO_REORDER_ADAFLAGS.
1735 * gcc-interface/Make-lang.in: Update dependencies.
1737 2010-10-12 Thomas Quinot <quinot@adacore.com>
1739 * rtsfind.ads, exp_dist.adb, exp_dist.ads (Build_General_Calling_Stubs,
1740 PolyORB case): Request is now a controlled type: we can declare the
1741 request on the stack, and we do not need explicit cleanup actions
1744 2010-10-12 Bob Duff <duff@adacore.com>
1746 * s-rident.ads (Profile_Info): This variable is now constant.
1748 2010-10-12 Emmanuel Briot <briot@adacore.com>
1750 * g-comlin.adb, g-comlin.ads (Define_Switch): Put back (unused)
1751 parameter Separator for backward compatibility.
1753 2010-10-12 Robert Dewar <dewar@adacore.com>
1755 * sem_ch9.adb, par-ch9.adb, impunit.adb: Minor reformatting.
1757 2010-10-12 Vincent Celier <celier@adacore.com>
1759 * debug.adb: Put detailed documentation for gnatmake switch -dm.
1761 2010-10-12 Vincent Celier <celier@adacore.com>
1763 * gnat1drv.adb: When the compiler is invoked for a spec that needs aw
1764 body, do not generate an ALI file if neither -gnatc nor -gnatQ is used.
1766 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1768 * g-comlin.adb (Foreach_Switch): Make this procedure generic to avoid
1771 2010-10-12 Robert Dewar <dewar@adacore.com>
1773 * debug.adb: Add comment.
1774 * gnatcmd.adb, sem_ch6.adb, switch-m.adb: Minor reformatting.
1776 2010-10-12 Javier Miranda <miranda@adacore.com>
1778 * exp_util.adb (Side_Effect_Free): Return true for object renaming
1779 declarations that were previously generated by Remove_Side_Effects.
1781 2010-10-12 Emmanuel Briot <briot@adacore.com>
1783 * xref_lib.adb (Get_Full_Type): Display "private variable" instead of
1784 "???" when an entity is defined as "*" in the ALI file.
1785 * g-comlin.ads, g-comlin.adb: Fix handling of null parameters.
1788 2010-10-12 Emmanuel Briot <briot@adacore.com>
1790 * g-comlin.adb, g-comlin.ads (Display_Help, Getopt, Current_Section,
1791 Set_Usage): New subprograms.
1792 (Define_Switch): Change profile to add support for help messages and
1795 2010-10-12 Javier Miranda <miranda@adacore.com>
1797 * sem_ch6.adb (New_Overloaded_Entity): Add missing decoration of
1798 attribute Overridden_Operation in predefined dispatching primitives.
1800 2010-10-12 Emmanuel Briot <briot@adacore.com>
1802 * g-comlin.adb, g-comlin.ads (Add_Switch): Raise an exception when a
1803 command line configuration exists and we specify an invalid section.
1805 2010-10-12 Robert Dewar <dewar@adacore.com>
1807 * sem_ch6.adb (Process_PPCs): Fix error in inheriting Pre'Class when no
1808 exception messages are generated.
1809 (Process_PPCs): Fix error in inheriting Pre'Class.
1811 2010-10-12 Jose Ruiz <ruiz@adacore.com>
1813 * gnatcmd.adb: Use response file for GNATstack.
1814 (Check_Files): Pass the list of ci files for GNATstack using a response
1815 file to avoid problems with command line length.
1816 Factor out the code handling response file into a new procedure named
1817 Add_To_Response_File.
1819 2010-10-12 Vincent Celier <celier@adacore.com>
1821 * debug.adb: For gnatmake, document the meaning of -dm
1822 * make.adb (Gnatmake): If -dm is used, indicate the maximum number of
1823 simultaneous compilations.
1824 * switch-m.adb (Scan_Make_Switches): Allow -j0, meaning as many
1825 simultaneous compilations as the number of processors.
1827 2010-10-12 Joseph Myers <joseph@codesourcery.com>
1829 * gcc-interface/Make-lang.in (ada/misc.o): Use $(OPTIONS_H)
1830 instead of options.h.
1832 2010-10-12 Robert Dewar <dewar@adacore.com>
1834 * gnat_rm.texi: Clarify that 'Old can be used in preconditions and
1835 postcondition pragmas.
1837 2010-10-12 Robert Dewar <dewar@adacore.com>
1839 * errout.ads, erroutc.adb: The # insertion now handles from in place of
1841 * exp_prag.adb (Expand_Pragma_Check): Suppress generated default
1842 message if new switch Exception_Locations_Suppressed is set.
1843 (Expand_Pragma_Check): Revised wording for default message for case
1844 of precondition or postcondition.
1845 * namet.ads, namet.adb (Build_Location_String): New procedure.
1846 * opt.ads (List_Inherited_Pre_Post): New flag.
1847 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Add call to
1848 list inherited pre/post aspects.
1849 * sem_ch13.adb (Analyze_Aspect_Specification): Improve generation of
1850 messages for precondition/postcondition cases.
1851 * sem_ch6.adb (Process_PPCs): General cleanup, and list inherited PPC's
1852 if flag List_Inherited_Pre_Post is set True.
1853 (Process_PPCs): Add initial handling for inherited preconditions
1854 (List_Inherited_Pre_Post_Aspects): New procedure
1855 * sem_ch6.ads (List_Inherited_Pre_Post_Aspects): New procedure
1856 * sem_disp.adb (Inherited_Subprograms): New function
1857 * sem_disp.ads (Inherited_Subprograms): New function
1858 * sem_prag.adb (Check_Duplicate_Pragma): Clean up handling of
1860 (Check_Precondition_Postcondition): Check for inherited aspects
1861 * sem_warn.adb: Process -gnatw.l/w.L setting List_Inherited_Pre_Post
1862 * sinfo.ads, sinfo.adb (Split_PPC): New flag.
1863 * sinput.ads, sinput.adb (Build_Location_String): New function.
1864 * usage.adb: Add line for -gnatw.l/-gnatw.L
1866 2010-10-12 Javier Miranda <miranda@adacore.com>
1868 * exp_util.adb (Remove_Side_Effects): Remove wrong code.
1870 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1872 * xref_lib.adb: Add handling of j/J letters.
1874 2010-10-12 Pascal Obry <obry@adacore.com>
1876 * adaint.c (__gnat_number_of_cpus): Add implementation for Windows.
1878 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1880 * make.adb (Globalize): New procedure.
1881 (Compile): Set Do_Codepeer_Globalize_Step when -gnatC is used.
1882 (Gnatmake): Call Globalize when needed.
1883 (Process_Restrictions_Or_Restriction_Warnings): Ignore Restrictions
1884 pragmas in CodePeer mode.
1885 (Adjust_Global_Switches): Set No_Initialize_Scalars in CodePeer mode,
1886 to generate simpler and consistent code.
1888 2010-10-12 Bob Duff <duff@adacore.com>
1890 * exp_util.adb (Remove_Side_Effects): Disable previous change,
1891 can cause side effects to be duplicated.
1893 2010-10-12 Robert Dewar <dewar@adacore.com>
1895 * sem_ch6.adb (Process_PPCs): Handle inherited postconditions.
1897 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1899 * exp_disp.adb (Set_All_DT_Position): Disable emit error message on
1900 abstract inherited private operation in CodePeer mode.
1902 2010-10-12 Thomas Quinot <quinot@adacore.com>
1904 * a-exetim.ads: Minor reformatting.
1905 * g-socket.ads (Port_Type): Better definition corresponding to the
1906 actual standard range.
1907 * exp_ch5.adb: Add comment.
1908 * sem_aux.adb: Minor reformatting.
1910 2010-10-12 Ed Schonberg <schonberg@adacore.com>
1912 * sem_ch12.adb (Copy_Generic_Node): If node is a string literal, remove
1913 string_literal_subtype so that a new one can be constructed in the
1914 scope of the instance.
1916 2010-10-12 Robert Dewar <dewar@adacore.com>
1918 * exp_ch9.adb (Has_Pragma_Priority): New name for Has_Priority_Pragma
1919 * gnat_rm.texi (pragma Suppress_All): Document new placement rules
1920 * par-prag.adb (P_Pragma, case Suppress_All): Set
1921 Has_Pragma_Suppress_All flag.
1922 * sem_prag.adb (Has_Pragma_Priority): New name for Has_Priority_Pragma
1923 (Analyze_Pragma, case Suppress_All): Remove placement check
1924 (Process_Compilation_Unit_Pragmas): Use Has_Pragma_Suppress_All flag
1925 * sem_prag.ads (Process_Compilation_Unit_Pragmas): Update documentation
1926 * sinfo.adb (Has_Pragma_Suppress_All): New flag
1927 (Has_Pragma_Priority): New name for Has_Priority_Pragma
1928 * sinfo.ads (Has_Pragma_Suppress_All): New flag
1929 (Has_Pragma_Priority): New name for Has_Priority_Pragma
1931 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1933 * lib-xref.ads: Mark j/J as reserved for C++ classes.
1935 2010-10-12 Jose Ruiz <ruiz@adacore.com>
1937 * a-exetim-default.ads, a-exetim-posix.adb: New.
1938 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for linux): Use the
1939 POSIX Realtime support to implement CPU clocks.
1940 (EXTRA_GNATRTL_TASKING_OBJS for linux): Add the a-exetim.o object
1941 to the tasking library.
1942 (THREADSLIB): Make the POSIX.1b Realtime Extensions library (librt)
1943 available for shared libraries.
1944 * gcc-interface/Make-lang.in: Update dependencies.
1946 2010-10-12 Robert Dewar <dewar@adacore.com>
1948 * sem_ch13.adb (Analyze_Aspect_Specifications): For Pre/Post, break
1949 apart expressions with AND THEN clauses into separate pragmas.
1950 * sinput.ads, sinput.adab (Get_Logical_Line_Number_Img): New function.
1952 2010-10-12 Robert Dewar <dewar@adacore.com>
1954 * par-ch13.adb (P_Aspect_Specifications): Fix handling of 'Class
1956 * sem_ch13.adb (Analyze_Aspect_Specifications): Fix bad Sloc on aspects
1957 * sem_prag.adb (Fix_Error): Only change pragma names for pragmas from
1959 (Check_Optional_Identifier): Handle case of direct arguments
1960 (Chain_PPC): Test for abstract case, giving appropriate messages
1961 * sinfo.ads, sinfo.adb (Class_Present): Allowed on N_Pragma node
1963 2010-10-12 Robert Dewar <dewar@adacore.com>
1965 * par-endh.adb (Check_End): Don't swallow semicolon or aspects after
1967 * sem_attr.adb (Eval_Attribute): Code clean up.
1969 2010-10-12 Robert Dewar <dewar@adacore.com>
1971 * par-ch12.adb (P_Formal_Private_Type_Definition): Improve error
1972 messages and recovery for case of out of order Abstract/Tagged/Private
1974 * par-ch3.adb (P_Type_Declaration): Improve error messages and recovery
1975 for case of out of order Abstract/Tagged/Private keywords.
1977 2010-10-12 Ed Schonberg <schonberg@adacore.com>
1979 * inline.adb (Analyze_Inlined_Bodies): Restrict previous change to case
1980 where child unit is main unit of compilation.
1982 2010-10-12 Robert Dewar <dewar@adacore.com>
1984 * aspects.ads, aspects.adb (Move_Aspects): New procedure.
1985 * atree.ads, atree.adb: (New_Copy): Does not copy aspect specifications
1986 * sinfo.ads, par-ch3.adb, par-ch6.adb, par-ch7.adb, par-ch9.adb,
1987 par-endh.adb, par-ch13.adb, par-ch12.adb: Modify grammar to include
1988 aspect specifications.
1989 Recognize aspect specifications for all cases
1990 * par.adb: Recognize aspect specifications for all cases
1991 * sem_ch12.ads, sem_ch12.adb (Copy_Generic_Node): Copies aspect
1993 * sem_ch3.adb (Analyze_Subtype_Declaration): Improve patch to freeze
1994 generic actual types (was missing some guards before).
1995 * sem_ch9.adb (Analyze_Single_Protected_Declaration): Copy aspects to
1997 (Analyze_Single_Task_Declaration): Copy aspects to generated object
1999 2010-10-12 Eric Botcazou <ebotcazou@adacore.com>
2001 * usage.adb (usage): Adjust line for -gnatn switch.
2003 2010-10-12 Robert Dewar <dewar@adacore.com>
2005 * sem_attr.adb (Eval_Attribute): Only leave change active for aspect
2008 2010-10-12 Ed Schonberg <schonberg@adacore.com>
2010 * sem_ch6.adb (Analyze_Subprogram_Declaration): If this is a
2011 declaration of a null procedure resolve the types of the profile of the
2012 generated null body now.
2014 2010-10-11 Robert Dewar <dewar@adacore.com>
2016 * debug.adb: Remove d.A flag to delay address clause (not needed any
2017 more). Add d.A flag to enable tree read/write of aspect spec hash table
2018 * sem_ch13.adb (Analyze_Aspect_Specifications): Properly delay address
2020 (Rep_Item_Too_Late): No need for special processing for delayed rep
2021 items (and it caused difficulties in the address case).
2022 * tree_gen.adb: Only write aspect spec hash table if -gnatd.A is set
2023 * tree_in.adb: Only write aspect spec hash table if -gnatd.A is set
2025 2010-10-11 Pat Rogers <rogers@adacore.com>
2027 * gnat_ugn.texi: Minor editing.
2029 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
2031 * gcc-interface/utils2.c (gnat_build_constructor): Use VEC_qsort.
2033 2010-10-11 Robert Dewar <dewar@adacore.com>
2035 * g-htable.ads (Get_First): New procedural version for Simple_HTable
2036 (Get_Next): New procedural version for Simple_HTable
2037 * s-htable.adb (Get_First): New procedural version for Simple_HTable
2038 (Get_Next): New procedural version for Simple_HTable
2039 * s-htable.ads (Get_First): New procedural version for Simple_HTable
2040 (Get_Next): New procedural version for Simple_HTable
2042 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2044 * sem_aggr.adb (Propagate_Discriminants): To gather the components of a
2045 variant part, use the association list of the subaggregate, which
2046 already includes the values of the needed discriminants.
2048 2010-10-11 Robert Dewar <dewar@adacore.com>
2050 * aspects.ads, aspects.adb: Changes to accomodate aspect delay
2051 (Tree_Write): New procedure.
2052 * atree.ads, atree.adb: Flag3 is now Has_Aspects and applies to all
2054 * atree.h: Flag3 is now Has_Aspects and applies to all nodes
2055 * debug.adb: Add debug flag gnatd.A
2056 * einfo.adb (Has_Delayed_Aspects): New flag
2057 (Get_Rep_Item_For_Entity): New function
2058 * einfo.ads (Has_Delayed_Aspects): New flag
2059 (Get_Rep_Item_For_Entity): New function
2060 * exp_ch13.adb (Expand_N_Freeze_Entity): Insert delayed aspects into
2062 * exp_ch3.adb, exp_ch6.adb, exp_ch9.adb, exp_disp.adb: New calling
2063 sequence for Freeze_Entity.
2064 * freeze.ads, freeze.adb (Freeze_Entity): Takes node rather than source
2065 ptr. All calls are changed to this new interface.
2066 (Freeze_And_Append): Same change
2067 (Freeze_Entity): Evaluate deferred aspects
2068 * sem_attr.adb: New calling sequence for Freeze_Entity
2069 (Eval_Attribute): Don't try to evaluate attributes of unfrozen types
2070 when we are in spec expression preanalysis mode.
2071 * sem_ch10.adb: New calling sequence for Freeze_Entity
2072 * sem_ch11.adb: Simplify analysis of aspect specifications now that the
2073 flag Has_Aspects applies to all nodes (no need to save aspects).
2074 * sem_ch12.adb: Simplify analysis of aspect specifications now that the
2075 flag Has_Aspects applies to all nodes (no need to save aspects).
2076 * sem_ch13.adb (Analyze_Aspect_Specifications): Major rewrite to
2077 accomodate delaying aspect evaluation to the freeze point.
2078 (Duplicate_Clause): Simplify using Get_Rep_Item_For_Entity, and also
2079 accomodate delayed aspects.
2080 (Rep_Item_Too_Late): Deal with delayed aspects case
2081 * sem_ch13.ads (Rep_Item_Too_Late): Document handling of delayed
2083 * sem_ch3.adb (Analyze_Subtype_Declaration): Make sure that generic
2084 actual types are properly frozen (this is needed because of the new
2085 check in Eval_Attribute that declines to evaluate attributes
2086 for unfrozen types).
2087 Simplify analysis of aspect specifications now that the flag
2088 Has_Aspects applies to all nodes (no need to save aspects).
2089 * sem_ch3.ads (Preanalyze_Spec_Expression): Note use for delayed
2091 * sem_ch5.adb: Simplify analysis of aspect specifications now that the
2092 flag Has_Aspects applies to all nodes (no need to save aspects).
2093 New calling sequence for Freeze_Entity.
2094 * sem_ch9.adb, sem_ch7.adb, sem_ch6.adb: Simplify analysis of aspect
2095 specifications now that the flag Has_Aspects applies to all nodes
2096 (no need to save aspects).
2097 New calling sequence for Freeze_Entity
2098 * sem_prag.adb (Check_Duplicate_Pragma): Simplify using
2099 Get_Rep_Item_For_Entity
2100 (Get_Pragma_Arg): Moved to Sinfo
2101 * sinfo.ads, sinfo.adb (Aspect_Rep_Item_: New field
2102 (Is_Delayed_Aspect): New flag
2103 (Next_Rep_Item): Document use for aspects
2104 (Get_Pragma_Arg): Moved here from Sem_Prag
2105 * sprint.adb (Sprint_Aspect_Specifications): Now called after semicolon
2106 is output and removes semicolon (simplifies interface).
2107 (Sprint_Node_Actual): Simplify handling of aspects now that Has_Aspects
2108 applies to any node.
2109 * tree_gen.adb: Write contents of Aspect_Specifications hash table
2110 * tree_in.adb: Read and initialize Aspect_Specifications hash table
2111 * treepr.adb (Print_Node): Print Has_Aspects flag
2112 (Print_Node): Print Aspect_Specifications in Has_Aspects set
2113 * xtreeprs.adb: Remove obsolete references to Flag1,2,3
2115 2010-10-11 Robert Dewar <dewar@adacore.com>
2117 * aspects.ads, aspects.adb: Major revision of this package for 2nd
2118 stage of aspects implementation.
2119 * gcc-interface/Make-lang.in: Add entry for aspects.o
2120 * gcc-interface/Makefile.in: Add aspects.o to GNATMAKE_OBJS
2121 * par-ch13.adb (Aspect_Specifications_Present): New function
2122 (P_Aspect_Specifications): New procedure
2123 * par-ch3.adb (P_Type_Declaration): Handle aspect specifications
2124 (P_Derived_Type_Def_Or_Private_Ext_Decl): Handle aspect specifications
2125 (P_Identifier_Declarations): Handle aspect specifications
2126 (P_Component_Items): Handle aspect specifications
2127 (P_Subtype_Declaration): Handle aspect specifications
2128 * par-ch6.adb (P_Subprogram): Handle aspect specifications
2129 * par-ch9.adb (P_Entry_Declaration): Handle aspect specifications
2130 * par.adb (Aspect_Specifications_Present): New function
2131 (P_Aspect_Specifications): New procedure
2132 * sem.adb (Analyze_Full_Type_Declaration): New name for
2133 Analyze_Type_Declaration.
2134 (Analyze_Formal_Package_Declaration): New name (add _Declaration)
2135 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
2136 (Analyze_Protected_Type_Declaration): New name (add _Declaration)
2137 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
2138 (Analyze_Single_Task_Declaration): New name (add _Declaration)
2139 (Analyze_Task_Type_Declaration): New name (add _Declaration)
2140 * sem_cat.adb (Analyze_Full_Type_Declaration): New name for
2141 Analyze_Type_Declaration.
2142 * sem_ch11.adb (Analyze_Exception_Declaration): Analyze aspect
2144 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Handle aspect
2146 (Analyze_Formal_Package_Declaration): New name (add _Declaration)
2147 (Analyze_Formal_Package_Declaration): Handle aspect specifications
2148 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
2149 (Analyze_Formal_Subprogram_Declaration): Handle aspect specifications
2150 (Analyze_Formal_Type_Declaration): Handle aspect specifications
2151 (Analyze_Generic_Package_Declaration): Handle aspect specifications
2152 (Analyze_Generic_Subprogram_Declaration): Handle aspect specifications
2153 (Analyze_Package_Instantiation): Handle aspect specifications
2154 (Analyze_Subprogram_Instantiation): Handle aspect specifications
2155 * sem_ch12.ads (Analyze_Formal_Package_Declaration): New name (add
2157 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
2158 * sem_ch13.adb (Analyze_Aspect_Specifications): New procedure
2159 (Duplicate_Clause): New function, calls to this function are added to
2160 processing for all aspects.
2161 * sem_ch13.ads (Analyze_Aspect_Specifications): New procedure
2162 * sem_ch3.adb (Analyze_Full_Type_Declaration): New name for
2163 Analyze_Type_Declaration.
2164 * sem_ch3.ads (Analyze_Full_Type_Declaration): New name for
2165 Analyze_Type_Declaration.
2166 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Analyze aspect
2168 (Analyze_Subprogram_Declaration): Analyze aspect specifications
2169 * sem_ch7.adb (Analyze_Package_Declaration): Analyze aspect
2171 (Analyze_Private_Type_Declaration): Analyze aspect specifications
2172 * sem_ch9.adb (Analyze_Protected_Type_Declaration): Analyze aspect
2174 (Analyze_Protected_Type_Declaration): New name (add _Declaration)
2175 (Analyze_Single_Protected_Declaration): Analyze aspect specifications
2176 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
2177 (Analyze_Single_Task_Declaration): Analyze aspect specifications
2178 (Analyze_Single_Task_Declaration): New name (add _Declaration)
2179 (Analyze_Task_Type_Declaration): Analyze aspect specifications
2180 (Analyze_Task_Type_Declaration): New name (add _Declaration)
2181 * sem_ch9.ads (Analyze_Protected_Type_Declaration): New name (add
2183 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
2184 (Analyze_Single_Task_Declaration): New name (add _Declaration)
2185 (Analyze_Task_Type_Declaration): New name (add _Declaration)
2186 * sem_prag.adb: Use Get_Pragma_Arg systematically so that we do not
2187 have to generate unnecessary pragma argument associations (this matches
2189 Throughout do changes to accomodate aspect specifications, including
2190 specializing messages, handling the case of not going through all
2191 homonyms, and allowing for cancellation.
2192 * sinfo.ads, sinfo.adb: Clean up obsolete documentation for Flag1,2,3
2193 (Aspect_Cancel): New flag
2194 (From_Aspect_Specification): New flag
2195 (First_Aspect): Removed flag
2196 (Last_Aspect): Removed flag
2197 * sprint.adb (Sprint_Aspect_Specifications): New procedure
2198 (Sprint_Node_Actual): Add calls to Sprint_Aspect_Specifications
2200 2010-10-11 Bob Duff <duff@adacore.com>
2202 * sem_res.adb (Resolve_Actuals): Minor change to warning messages so
2203 they match in Ada 95, 2005, and 2012 modes, in the case where the
2204 language didn't change. Same thing for the run-time exception message.
2206 2010-10-11 Javier Miranda <miranda@adacore.com>
2208 * debug.adb Document that switch -gnatd.p enables the CIL verifier.
2210 2010-10-11 Robert Dewar <dewar@adacore.com>
2212 * s-htable.adb: Minor reformatting.
2214 2010-10-11 Javier Miranda <miranda@adacore.com>
2216 * debug.adb: Update comment.
2218 2010-10-11 Vincent Celier <celier@adacore.com>
2220 * gnatcmd.adb (GNATCmd): Set Opt.Unchecked_Shared_Lib_Imports to True
2221 unconditionally as for "gnat make" the projects are not processed in
2224 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2226 * sem_ch10.ads, sem_ch10.adb (Load_Needed_Body): Add parameter to
2227 suppress semantic analysis of the body when inlining, prior to
2228 verifying that the body does not have a with_clause on a descendant
2230 * inline.adb (Analyze_Inlined_Bodies): Do not inline a body if it has a
2231 with_clause on a descendant.
2232 (Scope_In_Main_Unit): Simplify.
2234 2010-10-11 Robert Dewar <dewar@adacore.com>
2236 * exp_ch6.adb, freeze.adb: Minor reformatting.
2238 2010-10-11 Vincent Celier <celier@adacore.com>
2240 * gnatcmd.adb (GNATCmd): For all tools other than gnatmake, allow
2241 shared library projects to import projects that are not shared library
2244 2010-10-11 Javier Miranda <miranda@adacore.com>
2246 * debug.adb: Document that switch -gnatd.o generates the CIL listing.
2248 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2250 * sem_prag.adb (Process_Suppress_Unsuppress): Only ignore
2251 Suppress/Unsuppress pragmas in codepeer mode on user code.
2253 2010-10-11 Javier Miranda <miranda@adacore.com>
2255 * exp_ch6.adb (Expand_Call): For VM platforms, add missing expansion of
2256 tag check in case of dispatching call through "=".
2258 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2260 * sem_ch3.adb (Access_Subprogram_Declaration): In Ada2012 an incomplete
2261 type is legal in the profile of any basic declaration.
2262 * sem_ch6.adb (Analyze_Return_Type, Process_Formals): In Ada2012 an
2263 incomplete type, including a limited view of a type, is legal in the
2264 profile of any subprogram declaration.
2265 If the type is tagged, its use is also legal in a body.
2266 * sem_ch10.adb (Install_Limited_With_Clause): Do not process context
2268 (Install_Limited_Withed_Unit): Refine legality checks when both the
2269 limited and the non-limited view of a package are visible in the
2271 If this is not an error case, the limited view is ignored.
2272 freeze.adb (Freeze_Entity): In Ada2012, an incomplete type is legal in
2273 access to subprogram declarations
2275 2010-10-11 Robert Dewar <dewar@adacore.com>
2277 * exp_ch6.adb: Code clean up.
2278 * exp_util.adb: Minor reformatting.
2280 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2282 * sem_ch3.adb, exp_ch6.adb
2283 (Make_Build_In_Place_Call_In_Anonymous_Context,
2284 Make_Build_In_Place_Call_In_Assignment,
2285 Make_Build_In_Place_Call_In_Object_Declaration): Fix calls to
2286 Add_Task_Actuals_To_Build_In_Place_Call in case of No_Task_Hierarchy
2288 (Access_Definition): Add missing handling of No_Task_Hierarchy.
2290 2010-10-11 Javier Miranda <miranda@adacore.com>
2292 * exp_util.adb (Remove_Side_Effects): No action needed for renamings of
2293 class-wide expressions.
2295 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2297 * xr_tabls.adb, sem_res.adb: Minor reformatting
2299 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2301 * gnat_rm.texi, exp_attr.adb, sem_attr.adb, sem_attr.ads,
2302 snames.ads-tmpl (Analyze_Attribute, Expand_N_Attribute_Reference): Add
2303 handling of Attribute_Ref. Add missing blanks in some error messages.
2304 (Attribute_Ref, Name_Ref): Declare.
2305 Document 'Ref attribute.
2307 2010-10-11 Robert Dewar <dewar@adacore.com>
2309 * sem_attr.adb: Minor reformatting.
2311 2010-10-11 Javier Miranda <miranda@adacore.com>
2313 * sem_ch8.adb (Attribute_Renaming): Add missing check to avoid loading
2314 package System.Aux_Dec in VM platforms.
2316 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2318 * sem_prag.adb (Process_Suppress_Unsuppress): Ignore
2319 Suppress/Unsuppress pragmas in codepeer mode.
2320 (Analyze_Pragma [Pragma_Suppress_All]): Do not generate error message
2322 * einfo.ads: Fix typo.
2324 2010-10-11 Emmanuel Briot <briot@adacore.com>
2326 * sinfo.adb: Use GNAT.HTable rather than System.HTable.
2327 * prj-nmsc.adb: Minor reformatting.
2329 2010-10-11 Thomas Quinot <quinot@adacore.com>
2331 * sem_attr.adb (Type_Key): Code simplification.
2333 2010-10-11 Tristan Gingold <gingold@adacore.com>
2335 * gcc-interface/utils2.c (maybe_wrap_malloc): Fix crash when allocating
2336 very large object on VMS.
2338 2010-10-11 Javier Miranda <miranda@adacore.com>
2340 * sem_ch10.adb (Analyze_With_Clause): Add missing test to ensure
2341 availability of attribute Instance_Spec.
2343 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2345 * gnat1drv.adb (Adjust_Global_Switches): Disable codepeer mode if
2346 checking syntax only or in ASIS mode.
2348 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2350 * sem_ch6.adb (Check_Delayed_Subprogram): Abstract subprograms may also
2351 need a freeze node if some type in the profile has one.
2352 * gcc-interface/trans.c (case N_Abstract_Subprogram_Declaration): If
2353 entity has a freeze node, defer elaboration.
2355 2010-10-11 Emmanuel Briot <briot@adacore.com>
2357 * prj-nmsc.adb (Check_Aggregate_Project): Add support for finding all
2358 aggregated projects.
2360 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2362 * sem_res.adb (Resolve_Entry_Call): Generate 's' reference for entry
2364 * sem_ch6.adb: Diagnose additional error condition.
2366 2010-10-11 Bob Duff <duff@adacore.com>
2368 * par.adb (Par): Clarify wording of certain error messages.
2370 2010-10-11 Gary Dismukes <dismukes@adacore.com>
2372 * sem_disp.adb (Check_Dispatching_Operation): Revise test for warning
2373 about nondispatching subprograms to use In_Same_List (reducing use of
2376 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2378 * xr_tabls.adb, sem_res.adb, lib-xref.adb, lib-xref.ads: Use s for
2379 reference in a static call.
2381 2010-10-11 Steve Baird <baird@adacore.com>
2383 * exp_attr.adb (Expand_N_Attribute_Reference, case Type_Key): Type_Key
2384 attribute should always be transformed into a string literal in
2386 * par-ch4.adb: Type_Key attribute's type is String; update value of
2387 Is_Parameterless_Attribute constant to reflect this.
2388 * sem_attr.adb (Analyze_Attribute): Recognize Type_Key attribute and
2389 rewrite it as a string literal (attribute value is always known
2391 * snames.ads-tmpl: Add entries for Type_Key attribute.
2393 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2395 * lib-xref.adb (Output_References): Common handling for objects and
2396 formals of an anonymous access type.
2398 2010-10-11 Eric Botcazou <ebotcazou@adacore.com>
2400 * make.adb (Scan_Make_Arg): Also pass -O to both compiler and linker.
2402 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2404 * sem_ch6.adb: Fix check for illegal equality declaration in Ada2012
2406 2010-10-11 Gary Dismukes <dismukes@adacore.com>
2408 * sem_disp.adb (Check_Dispatching_Operation): When testing for issuing
2409 a warning about subprograms of a tagged type not being dispatching,
2410 limit this to cases where the tagged type and the subprogram are
2411 declared within the same declaration list.
2413 2010-10-11 Jerome Lambourg <lambourg@adacore.com>
2415 * projects.texi, prj-attr.adb: Add new attribute documentation_dir.
2417 2010-10-11 Bob Duff <duff@adacore.com>
2419 * par-ch9.adb, sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, impunit.adb,
2420 impunit.ads, sem_ch5.adb, sem_type.adb, exp_imgv.adb, exp_util.adb,
2421 switch-c.adb, exp_attr.adb, exp_ch9.adb, par-ch11.adb, usage.adb,
2422 sem_ch9.adb, sem_ch10.adb, scng.adb, checks.adb, sem_prag.adb,
2423 sem_ch12.adb, par-ch2.adb, freeze.adb, par-ch4.adb, sem_util.adb,
2424 sem_res.adb, sem_attr.adb, par-ch6.adb, exp_ch4.adb, exp_ch6.adb,
2425 sem_ch4.adb, exp_ch8.adb, par-ch10.adb, sem_ch6.adb, par-prag.adb,
2426 exp_disp.adb, par-ch12.adb, sem_ch8.adb, snames.adb-tmpl, opt.ads,
2427 exp_aggr.adb, sem_cat.adb, sem_ch13.adb, par-ch3.adb, exp_strm.adb,
2428 exp_cg.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb: Use Ada_2005
2429 instead of Ada_05 (Ada_Version_Type).
2431 2010-10-11 Bob Duff <duff@adacore.com>
2433 * sem_aggr.adb, impunit.adb, impunit.ads, switch-c.adb, usage.adb,
2434 sem_ch10.adb, sem_prag.adb, sem_ch12.adb, par-ch4.adb, par-ch6.adb,
2435 par-ch8.adb, exp_ch4.adb, sem_ch4.adb, sem_ch6.adb, par-prag.adb,
2436 opt.ads, par-ch3.adb, lib-xref.adb: Use Ada_2012 instead of Ada_12
2439 2010-10-11 Javier Miranda <miranda@adacore.com>
2441 * exp_util.adb (Safe_Prefixed_Reference): If the prefix is an explicit
2442 dereference then do not exclude dereferences of access-to-constant
2443 types to handle them as constant view of variables (and hence remove
2444 side effects when required).
2445 * sem_res.adb (Resolve_Slice): Ensure that side effects in the bounds
2446 are properly handled.
2448 2010-10-11 Robert Dewar <dewar@adacore.com>
2450 * sem_prag.adb, sem_aggr.adb, sprint.adb: Minor reformatting.
2452 2010-10-11 Javier Miranda <miranda@adacore.com>
2454 * exp_ch5.ads, exp_ch6.ads (Expand_N_Extended_Return_Statement): Moved
2456 (Expand_N_Simple_Return_Statement): Moved to exp_ch6.
2457 * exp_ch5.adb, exp_ch6.adb (Expand_Non_Function_Return): Moved to
2459 (Expand_Simple_Function_Return): Move to exp_ch6.
2460 (Expand_N_Extended_Return_Statement): Moved to exp_ch6.
2461 (Expand_N_Simple_Return_Statement): Moved to exp_ch6.
2463 2010-10-11 Robert Dewar <dewar@adacore.com>
2465 * snames.ads-tmpl: Add names for aspects.
2466 * aspects.ads, aspects.adb: New.
2467 * gcc-interface/Make-lang.in: Update dependencies.
2468 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2470 * exp_ch6.adb (Expand_Actuals): If an actual is the current instance of
2471 a task type, it must be replaced with a reference to Self.
2473 2010-10-11 Vincent Celier <celier@adacore.com>
2475 * adaint.h: Add prototype for function __gnat_create_output_file_new.
2477 2010-10-11 Javier Miranda <miranda@adacore.com>
2479 * sem_aggr.adb (Collect_Aggr_Bounds): Remove side effects of collected
2482 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2484 * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Do not emit error
2485 for AI05-0033 in CodePeer mode.
2487 2010-10-11 Robert Dewar <dewar@adacore.com>
2489 * atree.h, atree.ads, atree.adb (Flag3): New flag (replaces Unused_1)
2490 * csinfo.adb: Aspect_Specifications is a new special field
2491 * einfo.adb (Flag3): New unused flag
2492 * exp_util.adb (Insert_Actions): Add processing for
2493 N_Aspect_Specification.
2494 * sem.adb: Add entry for N_Aspect_Specification.
2495 * sinfo.ads, sinfo.adb (N_Aspect_Specification): New node
2496 (Has_Aspect_Specifications): New flag
2497 (Permits_Aspect_Specifications): New function
2498 (Aspect_Specifications): New function
2499 (Set_Aspect_Specifications): New procedure
2500 * sprint.adb (Sprint_Node): Put N_At_Clause in proper alpha order
2501 (Sprint_Node): Add dummy entry for N_Aspect_Specification
2502 * treepr.adb (Flag3): New flag to be listed
2504 2010-10-11 Vincent Celier <celier@adacore.com>
2506 * adaint.c: Minor reformatting.
2508 2010-10-11 Robert Dewar <dewar@adacore.com>
2510 * sem_ch6.adb, s-htable.ads: Minor reformatting.
2512 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2514 * sem_ch4.adb (Analyze_Selected_Component): If the selector is
2515 invisible in an instantiation, and both the formal and the actual are
2516 private extensions of the same type, look for the desired component in
2517 the proper view of the parent type.
2519 2010-10-11 Vincent Celier <celier@adacore.com>
2521 * adaint.c (__gnat_number_of_cpus): Add implementation for Solaris,
2522 AIX, Tru64, Darwin, IRIX and HP-UX.
2524 2010-10-11 Robert Dewar <dewar@adacore.com>
2526 * a-textio.adb: Minor reformatting
2528 2010-10-11 Robert Dewar <dewar@adacore.com>
2530 * a-suesen.ads, a-suenst.ads,
2531 a-suesen.adb, a-suenst.adb,
2532 a-suewse.adb, a-suewst.adb,
2533 a-suewse.ads, a-suewst.ads,
2534 a-suezse.ads, a-suezst.ads,
2535 a-suezse.adb, a-suezst.adb: New name for string encoding packages.
2536 * impunit.adb: New names for string encoding units
2537 * Makefile.rtl: New names for string encoding units
2538 * rtsfind.ads: Minor code reorganization.
2540 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2542 * exp_ch5.adb: Code clean up.
2544 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2546 * sem_ch6.adb (Check_Limited_Return): Specialize warning on limited
2547 returns when in a generic context.
2548 (Analyze_Function_Return): ditto.
2550 2010-10-11 Robert Dewar <dewar@adacore.com>
2552 * s-multip.ads: Fix header.
2553 * sem_ch3.adb, s-multip.adb, a-tigeli.adb: Minor reformatting.
2555 2010-10-11 Vincent Celier <celier@adacore.com>
2557 * Makefile.rtl: Add s-multip.
2558 * adaint.c: New function __gnat_number_of_cpus, implemented for Linux,
2559 defaulting to 1 for other platforms.
2560 * adaint.h: New function __gnat_number_of_cpus.
2561 * impunit.adb (Non_Imp_File_Names_12): New file list for Ada 2012,
2562 with a single component "s-multip".
2563 * impunit.ads (Kind_Of_Unit): New enumerated value Ada_12_Unit for Ada
2565 * rtsfind.ads (RTU_Id): New enumerated value System_Multiprocessors
2566 * s-multip.ads, s-multip.adb: New Ada 2012 package.
2567 * sem_ch10.adb (Analyze_With_Clause): Check also Ada 2012 units.
2569 2010-10-11 Javier Miranda <miranda@adacore.com>
2571 * a-textio.adb: Move new implementation of Get_Line to a subunit.
2572 * a-tigeli.adb: New subunit containing the implementation of Get_Line.
2574 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2576 * sem_aux.adb: Code clean up.
2578 2010-10-11 Robert Dewar <dewar@adacore.com>
2580 * sem_ch3.adb, sem_aux.adb, sem_ch6.adb: Minor reformatting
2582 2010-10-11 Robert Dewar <dewar@adacore.com>
2584 * einfo.adb, atree.h, atree.ads, atree.adb: Define seven new flags
2585 Flag248-Flag254. Define new field Field29.
2587 2010-10-10 Olivier Hainque <hainque@adacore.com>
2588 Eric Botcazou <ebotcazou@adacore.com>
2590 * gcc-interface/lang.opt (gdwarf+): Remove.
2591 * gcc-interface/gigi.h (get_parallel_type): Likewise
2592 * gcc-interface/misc.c (gnat_dwarf_extensions): Likewise.
2593 (gnat_handle_option): Remove OPT_gdwarfplus case.
2594 (gnat_post_options): Remove setting of use_gnu_debug_info_extensions
2595 from gnat_dwarf_extensions.
2596 * gcc-interface/trans.c (gigi): Remove -gdwarf+ initializations.
2597 * gcc-interface/utils.c (get_parallel_type): Remove.
2599 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
2601 * gcc-interface/trans.c (gnat_to_gnu) <N_Not_In>: Use
2602 invert_truthvalue_loc instead of invert_truthvalue.
2603 * gcc-interface/utils2.c (build_binary_op) <NE_EXPR>: Likewise.
2604 (build_unary_op) <TRUTH_NOT_EXPR>: Likewise.
2606 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
2608 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
2609 assertion on the types of the parameters. Use KIND local variable.
2610 <E_Incomplete_Type>: Likewise.
2612 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
2614 * gcc-interface/ada-tree.h (DECL_BY_DOUBLE_REF_P): New macro.
2615 * gcc-interface/gigi.h (annotate_object): Add BY_DOUBLE_REF parameter.
2616 * gcc-interface/decl.c (annotate_object): Likewise and handle it.
2617 (gnat_to_gnu_entity): Adjust calls to annotate_object.
2618 (gnat_to_gnu_param): If fat pointer types are passed by reference on
2619 the target, pass them by explicit reference.
2620 * gcc-interface/misc.c (default_pass_by_ref): Fix type of constant.
2621 * gcc-interface/trans.c (Identifier_to_gnu): Do DECL_BY_DOUBLE_REF_P.
2622 (Subprogram_Body_to_gnu): Adjust call to annotate_object.
2623 (call_to_gnu): Handle DECL_BY_DOUBLE_REF_P.
2624 * gcc-interface/utils.c (convert_vms_descriptor): Add BY_REF parameter
2626 (build_function_stub): Iterate on the parameters of the subprogram in
2627 lieu of on the argument types. Adjust call to convert_vms_descriptor.
2629 2010-10-09 Eric Botcazou <ebotcazou@adacore.com>
2631 * gcc-interface/misc.c: Delete prototypes.
2632 (gnat_init_options): Use local variable.
2633 (lang_hooks): Move to the end of the file.
2635 2010-10-08 Joseph Myers <joseph@codesourcery.com>
2637 * gcc-interface/misc.c (gnat_init_options_struct): New. Split out
2638 from gnat_init_options.
2639 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
2641 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2643 * sem_aux.adb: Cleanup Is_Immutably_Limited_Type.
2645 2010-10-08 Robert Dewar <dewar@adacore.com>
2647 * exp_ch3.adb: Minor reformatting.
2648 * exp_ch5.adb: Add comment.
2650 2010-10-08 Robert Dewar <dewar@adacore.com>
2652 * sem_prag.adb (Check_Duplicate_Pragma): Check for entity match
2653 * gcc-interface/Make-lang.in: Update dependencies.
2654 * einfo.ads: Minor reformatting.
2656 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2658 * exp_ch5.adb, sem_ch3.adb, exp_ch7.adb, exp_util.adb, sem_aux.adb,
2659 sem_aux.ads, exp_ch4.adb, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
2660 exp_ch3.adb: Change Is_Inherently_Limited_Type to
2661 Is_Immutably_Limited_Type to accord with new RM terminology.
2662 * sem_aux.adb (Is_Immutably_Limited_Type): A type that is a descendant
2663 of a formal limited private type is not immutably limited in a generic
2666 2010-10-08 Robert Dewar <dewar@adacore.com>
2668 * sem_prag.adb (Check_Duplicate_Pragma): New procedure
2669 Add calls to this new procedure where appropriate
2671 2010-10-08 Vincent Celier <celier@adacore.com>
2673 * a-textio.adb (Get_Chunk): Code clean up.
2675 2010-10-08 Robert Dewar <dewar@adacore.com>
2677 * a-strbou.ads, a-strfix.adb, a-strfix.ads, a-strsea.adb, a-strsea.ads,
2678 a-strsup.adb, a-strsup.ads, a-strunb-shared.adb, a-strunb-shared.ads,
2679 a-strunb.adb, a-strunb.ads, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
2680 a-stwise.adb, a-stwise.ads, a-stwisu.adb, a-stwisu.ads,
2681 a-stwiun-shared.adb, a-stwiun-shared.ads, a-stwiun.adb, a-stwiun.ads,
2682 a-stzbou.ads, a-stzfix.adb, a-stzfix.ads, a-stzsea.adb, a-stzsea.ads,
2683 a-stzsup.adb, a-stzsup.ads, a-stzunb-shared.adb, a-stzunb-shared.ads,
2684 a-stzunb.adb, a-stzunb.ads (Find_Token): New version with From
2687 2010-10-08 Robert Dewar <dewar@adacore.com>
2689 * sem_cat.adb (Check_Categorization_Dependencies): Remote types
2690 packages can depend on preleborated packages.
2692 2010-10-08 Robert Dewar <dewar@adacore.com>
2694 * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Pragmas
2695 Interrupt_Handler and Attach_Handler not allowed in generics.
2697 2010-10-08 Robert Dewar <dewar@adacore.com>
2699 * ali.adb: Set Allocator_In_Body if AB parameter present on M line
2700 * ali.ads (Allocator_In_Body): New flag
2701 * bcheck.adb (Check_Consistent_Restrictions): Handle case of main
2702 program violating No_Allocators_After_Elaboration restriction.
2703 * gnatbind.adb (No_Restriction_List): Add entries for
2704 No_Anonymous_Allocators, and No_Allocators_After_Elaboration.
2705 * lib-load.adb: Initialize Has_Allocator flag
2706 * lib-writ.adb: Initialize Has_Allocator flag
2707 (M_Parameters): Set AB switch if Has_Allocator flag set
2708 * lib-writ.ads: Document AB flag on M line
2709 * lib.adb (Has_Allocator): New function
2710 (Set_Has_Allocator): New procedure
2711 * lib.ads (Has_Allocator): New function
2712 (Set_Has_Allocator): New procedure
2713 (Has_Allocator): New flag in Unit_Record
2714 * sem_ch4.adb (Analyze_Allocator): Add processing for
2715 No_Allocators_After_Elaboration.
2717 2010-10-08 Geert Bosch <bosch@adacore.com>
2719 * a-textio.adb (Get_Line): Rewrite to use fgets instead of fgetc.
2721 2010-10-08 Javier Miranda <miranda@adacore.com>
2723 * sem_prag.adb (Analyze_Pragma): Relax semantic rule of
2724 Java_Constructors because in the JRE library we generate occurrences
2725 in which the "this" parameter is not the first formal.
2727 2010-10-08 Robert Dewar <dewar@adacore.com>
2729 * par-ch3.adb: Minor reformatting.
2731 2010-10-08 Javier Miranda <miranda@adacore.com>
2733 * exp_disp.adb (Make_DT): Do not generate dispatch tables for CIL/Java
2736 2010-10-08 Robert Dewar <dewar@adacore.com>
2738 * par-ch8.adb (P_Use_Type_Clause): Recognize ALL keyword in Ada 2012
2740 * sinfo.adb (Use_Type_Clause): Add All_Present flag.
2741 * sinfo.ads (Use_Type_Clause): Add All_Present flag.
2742 * s-rident.ads: Add entry for No_Allocators_After_Elaboration,
2743 No_Anonymous_Allocators.
2745 2010-10-08 Vincent Celier <celier@adacore.com>
2747 * bindgen.adb (Gen_Restrictions_Ada): No new line after last
2748 restriction, so that the last comma is always replaced with a left
2751 2010-10-08 Javier Miranda <miranda@adacore.com>
2753 * sem_prag.adb (Analyze_Pragma): Add specific check on the type of the
2754 first formal of delegates.
2756 2010-10-08 Robert Dewar <dewar@adacore.com>
2758 * sem_aggr.adb: Minor reformatting.
2760 2010-10-08 Robert Dewar <dewar@adacore.com>
2762 * exp_imgv.adb (Expand_Image_Attribute): Handle special calling
2763 sequence for soft hyphen for Character'Image case.
2764 * rtsfind.ads (Image_Character_05): New entry
2765 * s-imgcha.adb (Image_Character_05): New procedurew
2766 * s-imgcha.ads (Image_Character_05): New procedure
2767 * s-imgwch.adb (Image_Wide_Character): Deal with Ada 2005 soft hyphen
2769 * s-valcha.adb (Value_Character): Recognize SOFT_HYPHEN for 16#AD#
2770 * sem_attr.adb (Eval_Attribute, case Width): Handle soft_hyphen name
2773 2010-10-08 Robert Dewar <dewar@adacore.com>
2775 * sem_attr.adb (Eval_Attribute, case Width): Avoid ludicrous long loop
2776 for case of Wide_[Wide_]Character.
2778 2010-10-08 Robert Dewar <dewar@adacore.com>
2780 * exp_ch3.adb: Minor reformating
2781 Minor code reorganization.
2783 2010-10-08 Javier Miranda <miranda@adacore.com>
2785 * sem_prag.adb (Analyze_Pragma): Add missing checks on wrong use of
2786 pragmas CIL_Constructor and Java_Constructor.
2787 * exp_ch3.adb (Expand_Freeze_Record_Type): Do not generate the
2788 predefined primitives for CIL/Java tagged types.
2790 2010-10-08 Robert Dewar <dewar@adacore.com>
2792 * sem_ch6.adb: Minor reformatting.
2794 2010-10-08 Robert Dewar <dewar@adacore.com>
2796 * gnat1drv.adb: Add call to Validate_Independence.
2797 * par-prag.adb: Add dummy entries for Independent,
2798 Independent_Componentsa.
2799 * sem_ch13.adb (Validate_Independence): New procedure
2800 (Initialize): Initialize address clause and independence check tables
2801 * sem_ch13.ads (Independence_Checks): New table
2802 (Validate_Independence): New procedure
2803 * sem_prag.adb: Add processing for pragma Independent[_Components]
2804 * snames.ads-tmpl: Add entries for pragma Independent[_Components]
2806 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2808 * sem_aggr.adb (Propagate_Discriminants): When expanding an aggregate
2809 component with box initialization, if the component is a variant record
2810 use the values of the discriminants to select the proper variant for
2811 further box initialization.
2813 2010-10-08 Thomas Quinot <quinot@adacore.com>
2815 * xsnames.adb: Remove obsolete file.
2816 * make.adb, sem_ch8.adb, einfo.ads: Minor reformatting.
2818 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2820 * exp_aggr.adb: Complete previous change.
2822 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2824 * sem_ch6.adb (Check_Return_Subtype): The subtype indication in an
2825 extended return must match statically the return subtype of the
2826 enclosing function if the type is an elementary type or if it is
2829 2010-10-08 Vincent Celier <celier@adacore.com>
2831 * prj-nmsc.adb (Add_Source): Report all duplicate units and source file
2832 names. Do not report the same duplicate unit several times.
2833 * prj.ads (Source_Data): New Boolean component Duplicate_Unit,
2834 defaulted to False, to avoid reporting the same unit as duplicate
2837 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2839 * sem_aggr.adb (Resolve_Array_Aggregate): If the expression in an
2840 others choice is a literal, analyze it to enable later optimizations.
2841 * exp_aggr.adb (Expand_Record_Aggregate): An aggregate with static size
2842 and components can be handled by the backend even if it is of a limited
2845 2010-10-08 Arnaud Charlet <charlet@adacore.com>
2847 * a-rttiev.adb (task Timer): Since this package may be elaborated
2848 before System.Interrupt, we need to call Setup_Interrupt_Mask
2849 explicitly to ensure that this task has the proper signal mask.
2851 2010-10-08 Robert Dewar <dewar@adacore.com>
2853 * freeze.adb (Freeze_Entity): For array case, move some processing for
2854 pragma Pack, Component_Size clause and atomic/volatile components here
2855 instead of trying to do the job in Sem_Ch13 and Freeze.
2856 * layout.adb: Use new Addressable function
2857 * sem_ch13.adb (Analyze_Attribute_Representation_Clause, case
2858 Component_Size): Move some handling to freeze point in
2859 Freeze.Freeze_Entity.
2860 * sem_prag.adb (Analyze_pragma, case Pack): Move some handling to
2861 freeze point in Freese.Freeze_Entity.
2862 * sem_util.ads, sem_util.adb (Addressable): New function.
2864 2010-10-08 Robert Dewar <dewar@adacore.com>
2866 * sprint.adb: Minor reformatting.
2868 2010-10-08 Javier Miranda <miranda@adacore.com>
2870 * exp_ch4.adb (Real_Range_Check): Declare temporary as constant.
2872 2010-10-08 Robert Dewar <dewar@adacore.com>
2874 * sem_ch3.adb: Minor reformatting.
2876 2010-10-08 Vincent Celier <celier@adacore.com>
2878 * ali-util.adb (Get_File_Checksum): Make sure that external_as_list is
2879 not a reserved word.
2880 * prj-proc.adb (Expression): Process string list external references.
2881 * prj-strt.adb (External_Reference): Parse external_as_list external
2883 * prj-tree.ads (Expression_Kind_Of): Allowed for N_External_Value nodes
2884 (Set_Expression_Kind_Of): Ditto
2885 * prj.adb (Initialize): Set external_as_list as a reserved word
2886 * projects.texi: Document new string external reference
2888 * scans.ads (Token_Type): New token Tok_External_As_List
2889 * snames.ads-tmpl: New standard name Name_External_As_List
2891 2010-10-08 Thomas Quinot <quinot@adacore.com>
2893 * sem_prag.adb: Minor reformatting.
2895 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2897 * sem_ch3.adb (Derived_Type_Declaration): In the private part of an
2898 instance, it is legal to derive from a non-limited actual when the
2899 formal type is untagged limited.
2900 * sem_ch12.adb (Instantiate_Type): For a formal private type, use
2901 analyzed formal as Generic_Parent_Type, to simplify later checks.
2903 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2905 * sem_res.adb (Insert_Default): If default value is already a
2906 raise_constraint_error do not rewrite it as new raise node, to prevent
2907 infinite loops in the warning removal machinery.
2909 2010-10-08 Robert Dewar <dewar@adacore.com>
2911 * sem_util.adb, sem_prag.adb: Minor reformatting
2913 2010-10-08 Hristian Kirtchev <kirtchev@adacore.com>
2915 * gnat_rm.texi: Remove the section on pragma Implemented_By_Entry.
2916 Add section on pragma Implemented.
2918 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2920 * sem_ch3.adb (Derive_Subprogram): If an abstract extension has a
2921 concrete parent with a concrete constructor, the inherited constructor
2922 is abstract even if the derived type is a null extension.
2924 2010-10-08 Thomas Quinot <quinot@adacore.com>
2926 * sem_ch4.adb: Minor reformatting.
2928 2010-10-08 Hristian Kirtchev <kirtchev@adacore.com>
2930 * einfo.adb: Flag 232 (formerly Implemented_By_Entry) is now unused.
2931 (Implemented_By_Entry): Removed.
2932 (Set_Implemented_By_Entry): Removed.
2933 (Write_Entity_Flags): Remove the output for Implemented_By_Entry.
2934 * einfo.ads: Remove Implemented_By_Entry and its usage in entities.
2935 (Implemented_By_Entry): Removed along with its associated pragma.
2936 (Set_Implemented_By_Entry): Removed along with its associated pragma.
2937 * exp_ch9.adb: Alphabetize with and use clauses of Exp_Ch9.
2938 (Build_Dispatching_Call_Equivalent): New routine.
2939 (Build_Dispatching_Requeue): New routine.
2940 (Build_Dispatching_Requeue_To_Any): New routine.
2941 (Build_Normal_Requeue): New routine.
2942 (Build_Skip_Statement): New routine.
2943 (Expand_N_Requeue_Statement): Rewritten. The logic has been split into
2944 several subroutines.
2945 * par-prag.adb: Replace Pragma_Implemented_By_Entry by
2947 * sem_ch3.adb (Check_Abstract_Overriding): Perform checks concerning
2949 (Check_Pragma_Implemented): New routines.
2950 (Inherit_Pragma_Implemented): New routine.
2951 * sem_ch9.adb (Analyze_Requeue): Update the predicate which detects a
2952 dispatching requeue.
2953 * sem_prag.adb: Update array Sig_Flags by removing Implemented_By_Entry
2954 and adding Implemented.
2955 (Ada_2012_Pragma): New routine.
2956 (Analyze_Pragma, case Implemented): Perform all necessary checks
2957 concerning pragma Implemented and register the pragma as a
2958 representation item with the procedure_LOCAL_NAME.
2959 (Analyze_Pragma, case Implemented_By_Entry): Removed.
2960 * sem_util.adb (Implementation_Kind): New routine.
2961 * sem_util.ads (Implementation_Kind): New routine.
2962 * snames.ads-tmpl: Remove Name_Implemented_By_Entry and add
2963 Name_Implemented. Remove pragma name Pragma_Implemented_By_Entry and
2964 add Pragma_Implemented. Add special names By_Any, By_Entry and
2965 By_Protected_Procedure.
2967 2010-10-08 Javier Miranda <miranda@adacore.com>
2969 * exp_ch3.adb (Expand_Freeeze_Record_Type): Code cleanup: remove local
2970 variable Has_Static_DT by invocation of function Building_Static_DT.
2972 2010-10-08 Vincent Celier <celier@adacore.com>
2974 * g-dirope.adb (Remove_Dir): Do not change the current directory when
2975 doing a recursive remove of a subdirectory.
2977 2010-10-08 Javier Miranda <miranda@adacore.com>
2979 * exp_ch6.ad (Freeze_Subprogram): Factorize code.
2980 * exp_disp.adb (Make_Secondary_DT): Factorize code.
2981 (Make_DT): Factorize code.
2983 2010-10-08 Robert Dewar <dewar@adacore.com>
2985 * sem_ch4.adb: Minor reformatting.
2987 2010-10-08 Robert Dewar <dewar@adacore.com>
2989 * sem_ch6.adb (Check_Conformance): Check null exclusion match for full
2992 2010-10-08 Thomas Quinot <quinot@adacore.com>
2994 * sem_ch12.adb (Instantiate_Object): Rename Formal_Id to Gen_Obj, for
2995 consistency with Gen_T in Instantiate_Type.
2996 Introduce constant A_Gen_Obj to avoid repeated queries for
2997 Defining_Identifier (Analyzed_Formal).
2999 2010-10-08 Vincent Celier <celier@adacore.com>
3001 * prj-nmsc.adb: Minor comment fix.
3003 2010-10-07 Robert Dewar <dewar@adacore.com>
3005 * sem_prag.adb, sem_ch13.adb: Implement AI05-0012-1/02.
3006 * gcc-interface/Make-lang.in: Update dependencies.
3008 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3010 * sem_ch12.ad: (Instantiate_Object): For an in-out formal of a child
3011 unit, if the type of the formal is declared in a parent unit and is not
3012 a formal itself, the actual must be located from an enclosing parent
3013 instance by normal visibility.
3015 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3017 * sem_ch4.adb (Analyze_Allocator): In Ada 2012, a null_exclusion
3018 indicator is illegal for an uninitialized allocator.
3020 2010-10-07 Robert Dewar <dewar@adacore.com>
3022 * sem_prag.adb (Analyze_Attribute_Definition_Clause, case
3023 Component_Size): Complete previous change.
3025 2010-10-07 Vincent Celier <celier@adacore.com>
3027 * scng.adb (Scan): Call Accumulate_Token_Checksum for Tok_Identifier,
3028 even for keywords, to avoid having the checksum to depend on the Ada
3031 2010-10-07 Gary Dismukes <dismukes@adacore.com>
3033 * sem_aggr.adb, sem_ch12.adb, sem_ch6.adb, par-ch5.adb,
3034 exp_ch3.adb: Minor reformatting.
3036 2010-10-07 Robert Dewar <dewar@adacore.com>
3038 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
3039 Component_Size): It is now illegal to give an incorrect component size
3040 clause in the case of aliased or atomic components.
3041 * sem_prag.adb (Analyze_Pragma, case Pack): It is now illegal to give
3042 an effective pragma Pack in the case of aliased or atomic components.
3044 2010-10-07 Steve Baird <baird@adacore.com>
3046 * exp_ch4.adb (Expand_N_Allocator): Do not bypass expansion
3047 in the case of a violation of an active No_Task_Hierarchy restriction.
3049 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3051 * sem_ch12.adb (Validate_Derived_Type_Instance): If a formal derived
3052 type is non-limited, an actual for it cannot be limited.
3054 2010-10-07 Robert Dewar <dewar@adacore.com>
3056 * einfo.ads (No_Pool_Assigned): Update documentation.
3057 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
3058 Storage_Size): We only set No_Pool_Assigned if the expression is a
3059 static constant and zero.
3060 * sem_res.adb (Resolve_Allocator): Allocation from empty storage pool
3061 should be an error not a warning.
3063 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3065 * exp_aggr.adb (Expand_Array_Aggregate): Recognize additional cases
3066 where an aggregate in an assignment can be built directly into the
3067 target, and does not require the creation of a temporary that may
3070 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3072 * sem_aggr.adb (Analyze_Record_Aggregate): In Ada2012, a choice list
3073 in a record aggregate can correspond to several components of
3074 anonymous access types, as long as the designated subtypes match.
3076 2010-10-07 Robert Dewar <dewar@adacore.com>
3078 * gnat_rm.texi, exp_util.adb, sinfo.adb, sinfo.ads, sem_ch12.adb,
3079 sem.adb, gnat_ugn.texi, sem_util.ads, par-ch6.adb, targparm.ads,
3080 restrict.adb, sem_ch6.adb, sem_ch6.ads, sprint.adb, i-c.ads: Change
3081 spelling parametrize(d) => parameterize(d).
3083 2010-10-07 Robert Dewar <dewar@adacore.com>
3085 * sem_ch12.adb: Add comment.
3086 * sem_ch6.adb: Minor reformatting.
3088 2010-10-07 Robert Dewar <dewar@adacore.com>
3090 * par-ch3.adb, par-ch6.adb, par-ch7.adb, par-ch9.adb, par-ch10.adb: Add
3091 Pexp to Pf_Rec constants
3092 (P_Subprogram): Expression is always enclosed in parentheses
3093 * par.adb (Pf_Rec): add Pexp flag for parametrized expression
3094 * sinfo.ads (N_Parametrized_Expression): Expression must be in parens
3096 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3098 * sem_ch6.adb (Analyze_Subprogram_Specification): Implement Ada2012
3099 checks on functions that return an abstract type or have a controlling
3100 result whose designated type is an abstract type.
3101 (Check_Private_Overriding): Implement Ada2012 checks on functions
3102 declared in the private part, if an abstract type is involved.
3103 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): In Ada2012,
3104 reject a generic function that returns an abstract type.
3105 * exp_ch5.adb (Expand_Simple_Function_Return): in Ada2012, if a
3106 function has a controlling access result, check that the tag of the
3107 return value matches the designated type of the return expression.
3109 2010-10-07 Robert Dewar <dewar@adacore.com>
3111 * par-ch6.adb: Fix error in handling of parametrized expressions.
3112 * par-ch4.adb (P_Name): Allow qualified expression as name in Ada 2012
3114 (P_Simple_Expression): Better message for qualified expression prefix
3115 * s-crc32.adb: Minor reformatting.
3116 * exp_intr.adb (Expand_Unc_Deallocation): Remove test for empty
3117 storage pool (this test is moved to Sem_Intr).
3118 * sem_intr.adb (Check_Intrinsic_Call): Add check for deallocation from
3119 empty storage pool, moved here from Exp_Intr and made into error.
3120 (Check_Intrinsic_Call): Remove assumption in generating not-null free
3121 warning that the name of the instantiation is Free.
3122 * sinput.adb (Tree_Read): Document use of illegal free call allowed in
3124 * types.ads: Remove storage size clauses from big types (since we may
3125 need to do deallocations, which are now illegal for empty pools).
3127 2010-10-07 Sergey Rybin <rybin@adacore.com>
3129 * gnat_ugn.texi: Add missing word.
3131 2010-10-07 Robert Dewar <dewar@adacore.com>
3133 * exp_util.adb (Insert_Actions): Add handling of
3134 N_Parametrized_Expression.
3135 * par-ch6.adb (P_Subprogram): Add parsing of parametrized expression
3136 * sem.adb: Add entry for N_Parametrized_Expression
3137 * sem_ch6.adb (Analyze_Parametrized_Expression): New procedure
3138 * sem_ch6.ads (Analyze_Parametrized_Expression): New procedure
3139 * sinfo.ads, sinfo.adb: Add N_Parametrized_Expression
3140 * sprint.adb (Sprint_Node): Add handling for N_Parametrized_Expression
3141 * par-ch4.adb: Minor reformatting.
3143 2010-10-07 Robert Dewar <dewar@adacore.com>
3145 * scng.adb (Skip_Other_Format_Characters): New procedure
3146 (Start_Of_Wide_Character): New procedure
3147 (Scan): Use Start_Of_Wide_Character where appropriate
3148 (Scan): Improve error message for other_format chars in identifier
3149 (Scan): Allow other_format chars between tokens
3151 2010-10-07 Javier Miranda <miranda@adacore.com>
3153 * exp_util.adb (Safe_Prefixed_Reference): When removing side effects,
3154 Add missing support for explicit dereferences.
3156 2010-10-07 Robert Dewar <dewar@adacore.com>
3158 * par-ch10.adb, par-ch3.adb, par.adb: Minor reformatting.
3160 2010-10-07 Robert Dewar <dewar@adacore.com>
3162 * exp_disp.adb, exp_dist.adb, exp_util.ads, exp_util.adb,
3163 exp_ch11.adb: Rename Full_Qualified_Name to Fully_Qualified_Name_String
3164 * sem_util.adb, sem_util.ads (Full_Qualified_Name): Moved to
3165 Exp_Util.Fully_Qualified_Name_String.
3167 2010-10-07 Robert Dewar <dewar@adacore.com>
3169 * rtsfind.ads: Add entry for Ada.Real_Time.Timing_Events.Set_Handler
3170 * sem_res.adb (Resolve_Call): A call to
3171 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
3172 No_Relative_Delay (AI-0211).
3174 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3176 * sem_ch10.adb: Small change in error message.
3178 2010-10-07 Robert Dewar <dewar@adacore.com>
3180 * tbuild.ads: Minor reformatting.
3182 2010-10-07 Robert Dewar <dewar@adacore.com>
3184 * gnatcmd.adb, make.adb, prj-nmsc.adb, sem_elab.adb: Minor reformatting
3186 2010-10-07 Arnaud Charlet <charlet@adacore.com>
3188 * exp_ch11.adb (Expand_N_Exception_Declaration): Update comments.
3190 2010-10-07 Robert Dewar <dewar@adacore.com>
3192 * sem_res.adb: Minor reformatting
3194 2010-10-07 Olivier Ramonat <ramonat@adacore.com>
3196 * gnat_ugn.texi: Minor editing.
3197 * opt.ads: Document that scripts rely on specific formats in opt.ads
3199 2010-10-07 Robert Dewar <dewar@adacore.com>
3201 * a-wichun.ads, a-wichun.adb (To_Lower_Case): New function
3202 (To_Upper_Case): Fix to be inverse of To_Lower_Case
3203 * a-zchuni.ads, a-zchuni.adb (To_Lower_Case): New function
3204 (To_Upper_Case): Fix to be inverse of To_Lower_Case
3206 2010-10-07 Robert Dewar <dewar@adacore.com>
3208 * a-wichha.adb, a-wichha.ads, a-zchhan.adb, a-zchhan.ads: New file.
3209 * impunit.adb: Add entries for a-wichha/a-zchhan
3210 * Makefile.rtl: Add entries for a-wichha/a-zchhan
3212 2010-10-07 Vincent Celier <celier@adacore.com>
3214 * make.adb (Check): Call Check_Source_Info_In_ALI with Project_Tree
3215 * makeutl.adb (Check_Source_Info_In_ALI): If there is at least one
3216 replaced source, check that none of the replaced sources are in the
3218 * makeutl.ads (Check_Source_Info_In_ALI): New parameter Tree
3219 * prj-nmsc.adb (Remove_Source): New parameter Tree. If the source is
3220 replaced with a source with a different file name, put it in the hash
3221 table Replaced_Sources.
3222 (Add_Source): Call Remove_Source with Data.Tree. If there is at least
3223 one replaced source, check if it has the same file name as the current
3224 source; if it has, remove it from the hash table Replaced_Sources.
3225 * prj.adb (Reset): Reset hash table Tree.Replaced_Sources
3226 * prj.ads (Replaced_Source_HTable): New hash table
3227 (Project_Tree_Data): New components Replaced_Sources and
3228 Replaced_Source_Number.
3230 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3232 * sem_elab.adb (Check_A_Call): After inserting elaboration check, set
3233 proper flag to prevent a double elaboration check on the same call.
3234 * exp_util.adb (Insert_Actions): If the enclosing node is an
3235 Expression_With_Actions and it has been analyzed already, find
3236 insertion point further up in the tree.
3238 2010-10-07 Hristian Kirtchev <kirtchev@adacore.com>
3240 * sem_ch13.adb (Analyze_Record_Representation_Clause): Alphabetize all
3241 local variables. Remove the general restriction which prohibits the
3242 application of record rep clauses to Unchecked_Union types. Add Ada
3243 2012 check to detect improper naming of an Unchecked_Union
3244 discriminant in record rep clause.
3245 * sem_prag.adb: Add with and use clause for Exp_Ch7.
3246 (Analyze_Pragma): Unchecked_Union case: Propagate the Unchecked_Union
3247 type to all invocations of Check_Component and Check_Variant.
3248 (Check_Component): Add formal parameters UU_Typ and In_Variant_Part.
3249 Rewritten. Add Ada 2012 check to detect improper use of formal
3250 private types and private extensions as component types of an
3251 Unchecked_Union declared inside a generic body.
3252 (Check_Variant): Add formal parameter UU_Typ. Propagate the
3253 Unchecked_Union type to all calls of Check_Component. Signal that the
3254 current component comes from the variant part of an Unchecked_Union
3256 (Inside_Generic_Body): New routine.
3258 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3260 * exp_ch4.adb (Expand_Composite_Equality): When looking for a primitive
3261 equality operation for a record component, verify that both formals
3262 have the same type, and the result type is boolean.
3264 2010-10-07 Vincent Celier <celier@adacore.com>
3266 * gnatcmd.adb (Check_Files): When looking for the .ci file for a
3267 binder generated file, look for both b~xxx and b__xxx as gprbuild
3268 always uses b__ as the prefix of such files.
3270 2010-10-07 Thomas Quinot <quinot@adacore.com>
3272 * sem_res.adb: Minor reformatting.
3274 2010-10-07 Arnaud Charlet <charlet@adacore.com>
3276 * debug.adb: Update -gnatd.J documentation.
3278 2010-10-07 Robert Dewar <dewar@adacore.com>
3280 * gnat_rm.texi: Document handling of invalid values
3281 * s-utf_32.ads, s-utf_32.adb (UTF_To_Lower_Case): Fix implementation
3283 (UTF_To_Upper_Case): New function.
3285 2010-10-07 Robert Dewar <dewar@adacore.com>
3287 * sem_attr.adb: Minor reformatting.
3288 * einfo.ads, einfo.adb (Is_Ada_2012_Only): New flag
3289 * itypes.adb (Create_Null_Excluding_Itype): Set Is_Ada_2012_Only flag
3291 * lib-xref.adb (Generate_Reference): Warn on use of Ada 2012 entity in
3293 * opt.ads (Warn_On_Ada_2012_Compatibility): New flag
3294 * sem_ch3.adb (Analye_Subtype_Declaration): Inherit Is_Ada_2012_Only
3295 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Is_Ada_2012_Only
3297 * sem_prag.adb (Analyze_Pragma, case Ada_12/Ada_2012): Allow form with
3299 * sem_type.adb (Disambiguate): Deal with Is_Ada_2012_Only.
3300 * sem_warn.adb (Warn_On_Ada_2012_Compatibility): New flag, treated
3303 2010-10-07 Javier Miranda <miranda@adacore.com>
3305 * a-tags.ads: Use new support for pragma Ada_2012 with function
3308 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3310 * par-ch5.adb (P_Sequence_Of_Statements): In Ada2012 a label can end a
3311 sequence of statements.
3313 2010-10-07 Vincent Celier <celier@adacore.com>
3315 * gnatcmd.adb (Check_Files): Only add a .ci files if it exists
3317 2010-10-07 Javier Miranda <miranda@adacore.com>
3319 * a-tags.ads, a-tags.adb (Type_Is_Abstract): New subprogram.
3320 * rtsfind.ads (RE_Type_Is_Abstract): New entity.
3321 * exp_disp.adb (Make_DT): Initialize TSD component Type_Is_Abstract.
3323 2010-10-07 Arnaud Charlet <charlet@adacore.com>
3325 * sem_ch12.adb (Mark_Context): Removed, no longer needed.
3326 (Analyze_Package_Instantiation): No longer analyze systematically a
3327 generic body in CodePeer mode.
3328 * freeze.adb, sem_attr.adb: Update comments.
3330 2010-10-05 Robert Dewar <dewar@adacore.com>
3332 * par-ch5.adb (Test_Statement_Required): Allow all pragmas in Ada 2012
3335 2010-10-05 Pascal Obry <obry@adacore.com>
3337 * gnat_rm.texi: Fix typo.
3339 2010-10-05 Arnaud Charlet <charlet@adacore.com>
3341 * gnat_ugn.texi: Add note about identifiers with same name and
3344 2010-10-05 Robert Dewar <dewar@adacore.com>
3346 * sem_ch4.adb: Minor reformatting.
3347 * a-direct.ads: Minor comment update.
3349 2010-10-05 Javier Miranda <miranda@adacore.com>
3351 * sem_ch3.adb (Add_Internal_Interface_Entities): Removing code that is
3352 no longer required after change in New_Overloaded_Entity.
3353 * sem_ch6.adb (New_Overloaded_Entity): Code reorganization to isolate
3354 the fragment of code that handles derivations of interface primitives.
3355 Add missing dependence on global variable Inside_Freezing_Actions to
3356 ensure the correct management of internal interface entities.
3357 * sem_ch13.adb (Analyze_Freeze_Entity): Add missing increase/decrease
3358 of the global variable Inside_Freezing_Actions to ensure that internal
3359 interface entities are well handled by New_Overloaded_Entity.
3360 * sem_disp.adb (Find_Primitive_Covering_Interface): Add documentation
3361 and complete the algorithm to catch hidden primitives derived of
3362 private type that covers the interface.
3363 * sem_disp.ads (Find_Primitive_Covering_Interface): Add missing
3366 2010-10-05 Robert Dewar <dewar@adacore.com>
3368 * prj-util.adb, prj-util.ads, prj.ads, s-vxwext-rtp.adb, sem_ch4.adb,
3369 sem_ch7.adb, sem_res.adb, sem_type.adb: Minor reformatting.
3370 Minor code reorganization (use Nkind_In).
3372 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3374 * sem_ch10.adb (Analyze_Task_Body_Stub): Diagnose duplicate stub for
3377 2010-10-05 Vincent Celier <celier@adacore.com>
3379 * gnatbind.adb: If the main library file is not for a suitable main
3380 program, change the error message.
3382 2010-10-05 Vincent Celier <celier@adacore.com>
3384 * a-direct.ads: Minor spelling error fixes in comments.
3385 * gnat_rm.texi: Add three entries in "Implementation Defined
3386 Characteristics" for the interpretations of the Form parameters in
3389 2010-10-05 Robert Dewar <dewar@adacore.com>
3391 * exp_ch3.adb, exp_ch5.adb, exp_disp.adb, exp_dist.adb, gnatlink.adb,
3392 makeutl.adb, par-ch6.adb, prj-dect.adb, prj-env.adb, prj-env.ads,
3393 prj-ext.adb, prj-nmsc.adb, prj-part.adb, prj-pp.ads: Minor code
3397 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3399 * sem_res.adb (Check_Parameterless_Call): If the prefix of 'Address is
3400 an explicit dereference of an access to function, the prefix is not
3401 interpreted as a parameterless call.
3403 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3405 * exp_attr.adb: For 'Read and 'Write, use full view of base type if
3408 2010-10-05 Vincent Celier <celier@adacore.com>
3410 * make.adb (Switches_Of): Allow wild cards in index of attributes
3412 * prj-util.adb (Value_Of): When Allow_Wildcards is True, use the index
3413 of the associative array as a glob regular expression.
3414 * prj-util.ads (Value_Of (Index, In_Array)): New Boolean parameter
3415 Allow_Wildcards, defaulted to False.
3416 (Value_Of (Name, Attribute_Or_Array_Name)): Ditto
3417 * projects.texi: Document that attribute Switches (<file name>) may
3418 use wild cards in the index.
3420 2010-10-05 Robert Dewar <dewar@adacore.com>
3422 * a-direct.adb, a-direct.ads, back_end.adb, checks.adb,
3423 einfo.adb: Minor reformatting.
3424 * debug.adb: Remove obsolete documentation for d.Z flag.
3426 2010-10-05 Vincent Celier <celier@adacore.com>
3428 * vms_data.ads: Add VMS qualifier /SRC_INFO= corresponding to gnatmake
3429 switch --create-info-file=.
3430 * gnat_ugn.texi: Add documentation for new gnatmake switch
3433 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3435 * sem_ch3.adb: Do not elaborate type definition if syntax error.
3437 2010-10-05 Javier Miranda <miranda@adacore.com>
3439 * sprint.adb (Sprint_Node_Actual): Improve output of subprogram bodies
3440 to generate the full-qualified names of its corresponding spec.
3441 This facilitates locating the corresponing body when reading
3444 2010-10-05 Thomas Quinot <quinot@adacore.com>
3446 * exp_dist.adb (Make_Helper_Function_Name): For a tagged type, use
3447 canonical name without serial number only if the helper is becoming a
3448 primitive of the type.
3450 2010-10-05 Javier Miranda <miranda@adacore.com>
3452 * exp_disp.adb (Make_DT): Minor code reorganization.
3454 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3456 * par-ch6.adb: improve recovery with extra paren in function spec.
3458 2010-10-05 Quentin Ochem <ochem@adacore.com>
3460 * prj-tree.ads: Project_Path is now aliased.
3462 2010-10-05 Thomas Quinot <quinot@adacore.com>
3464 * checks.adb: Minor reformatting.
3466 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
3468 * mlib-tgt-specific-mingw.adb (No_Argument_List): Delete.
3469 (Shared_Libgcc): New aliased variable.
3470 (Shared_Libgcc_Switch): New constant.
3471 (Build_Dynamic_Library): Pass Shared_Libgcc_Switch to the compiler
3472 * gcc-interface/Makefile.in (gnatlib-shared-win32): Pass -shared-libgcc
3474 * gcc-interface/Make-lang.in: Update dependencies.
3476 2010-10-05 Vincent Celier <celier@adacore.com>
3478 * prj-part.adb (Parse_Simple_Project): When checking if a child project
3479 imports its parent project, also look in projects being extended by
3482 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
3484 * gnat_ugn.texi: Adjust instructions in G.10 Building DLLs with GNAT.
3486 2010-10-05 Javier Miranda <miranda@adacore.com>
3488 * exp_cg.adb (Slot_Number): Add support to handle aliased entities.
3489 (Generate_CG_Output): Switch -gnatd.Z is no longer needed to
3490 activate this output.
3492 2010-10-05 Arnaud Charlet <charlet@adacore.com>
3494 * back_end.adb (Call_Back_End): Generate an error message when scil
3495 generation is enabled, and no scil back-end (by default) is available.
3497 2010-10-05 Javier Miranda <miranda@adacore.com>
3499 * debug.adb: Update documentation since -gnatd.Z is no longer required
3500 to generate the call-graph information.
3502 2010-10-05 Javier Miranda <miranda@adacore.com>
3504 * exp_ch5.adb (Expand_Simple_Function_Return): Rewrite expansion of a
3505 runtime access check by an equivalent expansion that causes
3506 no problems in the VM backend. The original expansion was
3507 not good for the VM backends because when Tagged_Type_Expansion
3508 is disabled the attribute Access_Disp_Table is not available.
3510 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3512 * sem_type.adb (Covers): In a dispatching context, T1 covers T2 if T2
3513 is class-wide and T1 is its specific type.
3515 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3517 * einfo.adb: Add guard to Is_String_Type to prevent cascaded errors.
3519 2010-10-05 Vincent Celier <celier@adacore.com>
3521 * back_end.ads: Minor spelling error correction.
3523 2010-10-05 Arnaud Charlet <charlet@adacore.com>
3525 * switch-c.adb, gnat1drv.adb (Scan_Front_End_Switches): Disable
3526 warnings when -gnatC is specified here so that warnings can be
3527 re-enabled explicitly.
3528 (Adjust_Global_Switches): No longer suppress warnings.
3530 2010-10-05 Vincent Celier <celier@adacore.com>
3532 * makeutl.adb: Minor reformatting.
3534 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3536 * sem_ch4.adb: add guard in Analyze_One_Call to prevent crash when a
3537 non-discrete type appears as an actual in a call.
3539 2010-10-05 Vincent Celier <celier@adacore.com>
3541 * make.adb (Scan_Make_Arg): Take into account new switch
3543 * makeusg.adb: Add line for new switch --source-info=file.
3544 * makeutl.ads (Source_Info_Option): New constant String for new builder
3546 * prj-conf.adb: Put subprograms in alphabetical order
3547 (Process_Project_And_Apply_Config): Read/write an eventual source info
3549 * prj-nmsc.adb (Look_For_Sources.Get_Sources_From_Source_Info): New
3551 (Look_For_Sources): If a source info file was successfully read, get
3552 the source data from the data read from the source info file.
3553 * prj-util.adb (Source_Info_Table): New table
3554 (Source_Info_Project_HTable): New hash table
3555 (Create): New procedure
3556 (Put (File), Put_Line): New procedures
3557 (Write_Source_Info_File): New procedure
3558 (Read_Source_Info_File): New procedure
3559 (Initialize): New procedure
3560 (Source_Info_Of): New procedure
3561 (Next): New procedure
3562 (Close): When file is an out file, fail if the buffer cannot be written
3563 or if the file cannot be close successfully.
3564 (Get_Line): Fail if file is an out file
3565 * prj-util.ads (Create): New procedure
3566 (Put (File), Put_Line): New procedures
3567 (Write_Source_Info_File): New procedure
3568 (Read_Source_Info_File): New procedure
3569 (Source_Info_Data): New record type
3570 (Source_Info_Iterator): New private type
3571 (Initialize): New procedure
3572 (Source_Info_Of): New procedure
3573 (Next): New procedure
3574 * prj.ads (Project_Tree_Data): New components Source_Info_File_Name and
3575 Source_Info_File_Exists.
3577 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3579 * exp_ch4.adb: Fix typo.
3581 2010-10-05 Thomas Quinot <quinot@adacore.com>
3583 * lib-writ.adb: Minor reformatting.
3585 2010-10-05 Javier Miranda <miranda@adacore.com>
3587 * sem_ch3.adb (Access_Definition): Remove useless code.
3589 2010-10-05 Emmanuel Briot <briot@adacore.com>
3591 * prj-env.adb, prj-env.ads (Set_Path): New subprogram.
3592 (Deep_Copy): Removed, not used.
3594 2010-10-05 Javier Miranda <miranda@adacore.com>
3596 * sem_ch3.adb (Add_Internal_Interface_Entities): Code reorganization:
3597 move code that searches in the list of primitives of a tagged type for
3598 the entity that will be overridden by user-defined routines.
3599 * sem_disp.adb (Find_Primitive_Covering_Interface): Move here code
3600 previously located in routine Add_Internal_Interface_Entities.
3601 * sem_disp.ads (Find_Primitive_Covering_Interface): Update docs.
3602 * sem_ch6.adb (New_Overloaded_Entity): Add missing check on
3603 availability of attribute Alias.
3605 2010-10-05 Ed Falis <falis@adacore.com>
3607 * s-taprop-vxworks.adb, s-osinte-vxworks.adb, s-osinte-vxworks.ads,
3608 s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.adb, s-vxwext-rtp.ads:
3609 Move definition of intContext to System.OS_Interface.
3610 Add necessary variants in System.VxWorks.Extensions.
3612 2010-10-05 Doug Rupp <rupp@adacore.com>
3614 * s-asthan-vms-alpha.adb: On VMS, a task using
3615 pragma AST_Entry exhibits a memory leak when the task terminates
3616 because the vector allocated for the AST interface is not freed. Fixed
3617 by making the vector a controlled type.
3619 2010-10-05 Emmanuel Briot <briot@adacore.com>
3621 * prj-nmsc.adb (Expand_Subdirectory_Pattern): Check that the prefix in
3622 a "**" pattern properly exists, and report an error otherwise.
3624 2010-10-05 Emmanuel Briot <briot@adacore.com>
3626 * prj-env.ads: Use GNAT.OS_Lib rather than System.OS_Lib.
3628 2010-10-05 Emmanuel Briot <briot@adacore.com>
3630 * prj-nmsc.adb, prj-err.adb (Expand_Subdirectory_Pattern): New
3632 Extract some code from Get_Directories, to share with the handling
3633 of aggregate projects (for the Project_Files attributes)
3635 2010-10-05 Emmanuel Briot <briot@adacore.com>
3637 * gnatcmd.adb, prj-proc.adb, prj-part.adb, prj-ext.adb, prj-ext.ads,
3638 switch-m.adb, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-env.adb,
3639 prj-env.ads, prj-tree.adb, prj-tree.ads (Project_Search_Path): New
3642 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
3644 * exp_ch5.adb (Make_Field_Expr): Revert previous change (removed).
3646 2010-10-05 Emmanuel Briot <briot@adacore.com>
3648 * prj-dect.adb, prj-nmsc.adb, prj-attr.adb, snames.ads-tmpl
3649 (Aggregate projects): added support for parsing aggregate projects.
3650 In particular, check the presence and value of the new attributes
3651 related to aggregate projects, ie Project_Files, Project_Path
3653 (Check_Attribute_Allowed, Check_Package_Allowed,
3654 Rename_Obsolescent_Attributes): new subprogram, extracting code
3655 from existing subprogram to keep their sizes smaller.
3656 (Check_Aggregate_Project, Check_Abstract_Project,
3657 Check_Missing_Sources): new subprograms
3658 (Check): remove comments that duplicated either the name of the
3659 following subprogram call, or the comment on that subprogram.
3660 * prj-part.adb (Check_Extending_All_Imports): New subprogram, extracted
3661 from Parse_Single_Project.
3662 (Check_Aggregate_Imports): new subprogram.
3664 2010-10-05 Vincent Celier <celier@adacore.com>
3666 * make.adb (Check): When compiling with -gnatc, recompile if the ALI
3667 file has not been generated for the current source, for example if it
3668 has been generated for the spec, but we are compiling the body.
3670 2010-10-05 Bob Duff <duff@adacore.com>
3672 * xgnatugn.adb: Remove unused procedure.
3674 2010-10-04 Vincent Celier <celier@adacore.com>
3676 * a-direct.adb (Copy_File): Interpret the Form parameter and call
3677 System.OS_Lib.Copy_File to do the work accordingly. Raise Use_Error if
3678 the Form parameter contains an incorrect value for field preserve= or
3680 * a-direct.ads (Create_Directory, Create_Path): Indicate that the Form
3681 parameter is ignored.
3682 (Copy_File): Indicate the interpretation of the Form parameter.
3684 2010-10-04 Vincent Celier <celier@adacore.com>
3686 * make.adb (Gnatmake): When there are no foreign languages declared and
3687 a main in attribute Main of the main project does not exist or is a
3688 source of another project, fail immediately before attempting
3691 2010-10-04 Javier Miranda <miranda@adacore.com>
3693 * exp_disp.ads (Convert_Tag_To_Interface): New function which must be
3694 used to convert a node referencing a tag to a class-wide interface
3696 * exp_disp.adb (Convert_Tag_To_Interface): New function.
3697 (Expand_Interface_Conversion): Replace invocation of
3698 Unchecked_Conversion by new function Convert_Tag_To_Interface.
3699 (Write_DT): Add support for null primitives.
3700 * exp_ch3.adb (Expand_N_Object_Declaration): For tagged type objects,
3701 cleanup code that handles interface conversions and avoid unchecked
3702 conversion of referenced tag components.
3703 * exp_ch5.adb (Expand_N_Assignment_Statement): Code cleanup. Avoid
3704 unrequired conversions when generating a dispatching call to _assign.
3705 * sprint.adb (Write_Itype): Fix wrong output of not null access itypes.
3707 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3709 * exp_ch4.adb (Expand_N_Op_Not): Handle properly both operands when the
3710 parent is a binary boolean operation and the operand is an unpacked
3712 (Build_Boolean_Array_Proc_Call): If the operands are both negations,
3713 the operands of the rewritten node are the operands of the negations,
3714 not the negations themselves.
3716 2010-10-04 Robert Dewar <dewar@adacore.com>
3718 * sem_ch13.adb (Set_Biased): New procedure, now used throughout, adds
3719 name of entity to biased warning msg.
3720 (Analyze_Enumeration_Representation_Clause): Remove attempt to use
3721 biased rep (wrong and never worked anyway).
3723 2010-10-04 Arnaud Charlet <charlet@adacore.com>
3725 * sem_elab.adb: Minor reformatting.
3727 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3729 * exp_ch4.adb (Expand_N_Null): Handle properly the case of a subtype of
3730 an access_to_protected subprogram type, and convert null value into
3731 corresponding aggregate.
3733 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3735 * gnat_ugn.texi: Clarify first point of 7.1.5 about pragma Inline.
3737 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3739 * make.adb (Scan_Make_Arg): Pass -Oxxx switches to the linker as well.
3740 * gnatlink.adb (Gnatlink): Filter out -Oxxx switches for CLI, RTX and
3743 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3745 * sem_ch4.adb (Analyze_Indexed_Component_Form): Remove redundant test
3746 for N_Operator_Symbol.
3747 (Indicate_Name_And_Type): Likewise.
3748 * sem_ch8.adb (Analyze_Subprogram_Renaming): Likewise.
3749 * sem_res.adb (Resolve): Likewise.
3750 * sem_type.adb (Add_One_Interp): Likewise.
3751 (Disambiguate): Likewise.
3753 2010-10-04 Vincent Celier <celier@adacore.com>
3755 * osint.adb (Read_Library_Info_From_Full): If object timestamp is less
3756 than ALI file timestamp, return null.
3758 2010-10-04 Vincent Celier <celier@adacore.com>
3760 * prj-makr.adb (Finalize): Invoke Pretty_Print with Max_Length of 79.
3761 * prj-pp.adb (Pretty_Print): New parameter Max_Line_Length, that
3762 replaces global constant with the same name. When a line is too long,
3763 indent properly the next continuation line.
3764 * prj-pp.ads (Pretty_Print): New parameter Max_Line_Length with a range
3765 from 50 to 255, defaulted to 255, to indicate the maximum length of
3766 lines in the project file.
3768 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3770 * sem_ch7.adb (Analyze_Package_Body_Helper) <Has_Referencer>: New
3771 Check_Subprogram_Ref function and Check_Subprogram_Refs instantiation
3772 of Traverse_Func on it to look for subprogram references in a body.
3773 Call Check_Subprogram_Refs on the body of inlined subprograms at the
3774 outer level and keep clearing the Is_Public flag of subprograms as long
3775 as it returns OK. Do not look at anything else than subprograms once
3776 an inlined subprogram has been seen.
3778 2010-10-04 Javier Miranda <miranda@adacore.com>
3780 * exp_cg.adb (Expand_N_Assignment_Statement): Restore tag check when
3781 the target object is an interface.
3782 * sem_disp.adb (Propagate_Tag): If the controlling argument is an
3783 interface type then we generate an implicit conversion to force
3784 displacement of the pointer to the object to reference the secondary
3785 dispatch table associated with the interface.
3787 2010-10-04 Robert Dewar <dewar@adacore.com>
3789 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Set
3790 Enumeration_Rep_Expr to point to the literal, not the identifier.
3791 (Analyze_Enumeration_Representation_Clause): Improve error message for
3792 size too small for enum rep value
3793 (Analyze_Enumeration_Representation_Clause): Fix size test to use
3794 proper size (RM_Size, not Esize).
3796 2010-10-04 Robert Dewar <dewar@adacore.com>
3798 * s-taprop-vxworks.adb, sem_res.adb: Minor reformatting.
3800 2010-10-04 Javier Miranda <miranda@adacore.com>
3802 * exp_cg.adb (Write_Call_Info): Code clean up.
3804 2010-10-04 Arnaud Charlet <charlet@adacore.com>
3806 * s-taprop-mingw.adb (Create_Task): Initialize Thread_Id field to 0.
3808 2010-10-04 Robert Dewar <dewar@adacore.com>
3810 * exp_cg.adb: Minor code reorganization
3812 * exp_ch5.adb, prj-nmsc.adb: Minor reformatting.
3814 2010-10-04 Bob Duff <duff@adacore.com>
3816 * sem_res.adb (Resolve_Type_Conversion): If a type conversion is needed
3817 to make a qualified expression into a name (syntax-wise), then do not
3818 consider it redundant.
3820 2010-10-04 Thomas Quinot <quinot@adacore.com>
3822 * sem_warn.ads: Fix typo.
3824 2010-10-04 Javier Miranda <miranda@adacore.com>
3826 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Handle suffix in
3828 (Write_Call_Info): Add missing support for renamed primitives.
3830 2010-10-04 Thomas Quinot <quinot@adacore.com>
3832 * exp_ch5.adb (Make_Field_Expr): New subprogram, to factor duplicated
3833 code between Make_Component_List_Assign and Make_Field_Assign.
3835 2010-10-04 Vincent Celier <celier@adacore.com>
3837 * prj-nmsc.adb (Get_Directories): For non extending projects that
3838 declare that they have no sources, do not create a non existing object
3839 or exec directory if builder switch -p is used.
3841 2010-10-04 Sergey Rybin <rybin@adacore.com>
3843 * gnat_ugn.texi (gnatcheck): Change the description of the report file
3846 2010-10-04 Ed Falis <falis@adacore.com>
3848 * s-taprop-vxworks.adb (Is_Task_Context): Import VxWorks intContext to
3849 determine whether Set_True is called from a task or an ISR.
3850 (Set_True): test for being in a task context before trying to
3851 dereference Defer_Abort or Undefer_Abort.
3853 2010-10-04 Robert Dewar <dewar@adacore.com>
3855 * sem_res.adb, sinput-l.adb: Minor reformatting.
3857 2010-10-04 Hristian Kirtchev <kirtchev@adacore.com>
3859 * exp_ch5.adb (Expand_N_Assignment_Statement): Do not generate a tag
3860 check when the target object is an interface since the expression of
3861 the right hand side must only cover the interface.
3863 2010-10-04 Vincent Celier <celier@adacore.com>
3865 * frontend.adb: Set Lib.Parsing_Main_Extended_Source to True before
3866 loading the main source, so that if it is preprocessed and -gnateG is
3867 used, the preprocessed file is written.
3868 * lib.ads (Analysing_Subunit_Of_Main): New global variable to indicate
3869 if a subunit is from the main unit when it is loaded.
3870 * sem_ch10.adb (Analyze_Proper_Body): Set Lib.Analysing_Subunit_Of_Main
3871 to True before loading a subunit.
3872 * sem_ch12.adb (Copy_Generic_Node): Set Lib.Analysing_Subunit_Of_Main
3873 to True when the main is a generic unit before loading one of its
3875 * sinput-l.adb (Load_File): If -gnateG is used, write the preprocessed
3876 file only for the main unit (spec, body and subunits).
3878 2010-10-04 Vincent Celier <celier@adacore.com>
3880 * sinput-l.adb (Load_File): Do not fail when switch -gnateG is
3881 specified and the processed file cannot be written. Just issue a
3882 warning and continue.
3884 2010-10-04 Thomas Quinot <quinot@adacore.com>
3886 * sem_res.adb: Minor reformatting.
3888 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3890 * sem_ch8.adb (Analyze_Subprogram_Renaming): If the renamed operation
3891 is an overridden inherited operation, the desired operation is the
3892 overriding one, which is the alias of the visible one.
3894 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3896 * sem_ch6.adb (Find_Corresponding_Spec): Check that the wrapper body is
3897 present before deleting from the tree, when an inherited function with
3898 a controlling result that returns a null extension is overridden by a
3899 later declaration or body.
3901 2010-10-04 Gary Dismukes <dismukes@adacore.com>
3903 * checks.adb: Update comment.
3905 2010-09-30 Joseph Myers <joseph@codesourcery.com>
3907 * gcc-interface/misc.c (optimize, optimize_size): Undefine as macros
3908 and define as variables.
3909 (gnat_post_options): Set optimize and optimize_size variables.
3911 2010-09-29 Joel Sherrill <joel.sherrill@oarcorp.com>
3913 * g-socket.adb: Move pragma to disable warnings in case multiple errnos
3914 are not defined by target.
3916 2010-09-29 Eric Botcazou <ebotcazou@adacore.com>
3918 * gcc-interface/utils.c (handle_leaf_attribute): Fix long line.
3920 2010-09-28 Richard Henderson <rth@redhat.com>
3922 * gcc-interface/misc.c (gnat_eh_personality): Use
3923 targetm.except_unwind_info.
3925 2010-09-28 Jan Hubicka <jh@suse.cz>
3927 * gcc-interface/utils.c (handle_leaf_attribute): New function.
3928 (gnat_internal_attribute_tables): Add leaf.
3930 2010-09-22 Joseph Myers <joseph@codesourcery.com>
3932 * gcc-interface/lang.opt (-all-warnings, -include-barrier,
3933 -include-directory, -include-directory=, -no-standard-includes,
3934 -no-standard-libraries): New.
3936 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
3938 * gcc-interface/decl.c (gnat_to_gnu_entity): Replace calls to
3939 build_array_type with calls to build_nonshared_array_type.
3940 (substitute_in_type): Likewise.
3941 * gcc-interface/misc.c (LANG_HOOKS_HASH_TYPES): Delete.
3942 (LANG_HOOKS_TYPE_HASH_EQ): Define.
3943 (gnat_post_options): Add 'static' keyword.
3944 (gnat_type_hash_eq): New static function.
3945 * gcc-interface/utils.c (fntype_same_flags_p): New function.
3946 (create_subprog_type): Call it.
3947 (create_index_type): Call build_nonshared_range_type and tidy up.
3948 (create_range_type): Likewise.
3949 * gcc-interface/gigi.h (fntype_same_flags_p): Declare.
3951 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3953 * gcc-interface/trans.c (gnat_pushdecl): Do not do anything special
3955 (end_subprog_body): If the body is a BIND_EXPR, make its associated
3956 block the top-level one.
3957 (build_function_stub): Build a statement group for the whole function.
3958 * gcc-interface/utils.c (Subprogram_Body_to_gnu): If copy-in/copy-out
3959 is used, create the enclosing block early and process first the OUT
3962 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3964 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>: Do
3965 not generate debug info for individual enumerators.
3967 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3969 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Use record
3970 type instead of enumeral type as the dummy type built for the template
3971 type of fat pointers.
3973 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3975 * gcc-interface/gigi.h (get_elaboration_procedure): Declare.
3976 (gnat_zaplevel): Likewise.
3977 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force global
3978 binding level for an external constant.
3979 <E_Constant>: Force the local context and create a fake scope before
3980 translating the defining expression of an external constant.
3981 <object>: Treat external constants at the global level explicitly for
3982 renaming declarations.
3983 (elaborate_expression_1): Force the variable to be static if the
3984 expression is global.
3985 * gcc-interface/trans.c (get_elaboration_procedure): New function.
3986 (call_to_gnu): Use it.
3987 (gnat_to_gnu): Likewise.
3988 <N_Object_Declaration>: Do not test Is_Public to force the creation of
3989 an initialization variable.
3990 (add_decl_expr): Discard the statement if the declaration is external.
3991 * gcc-interface/utils.c (gnat_pushdecl): Do not put the declaration in
3992 the current block if it is external.
3993 (create_var_decl_1): Do not test Is_Public to set TREE_STATIC.
3994 (gnat_zaplevel): New global function.
3996 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3998 * gcc-interface/decl.c (gnat_to_gnu_entity): Explicitly test _LEVEL
3999 variables against zero in all cases.
4000 (rest_of_type_decl_compilation): Likewise.
4001 * gcc-interface/trans.c (gigi): Pass properly typed constants to
4003 (call_to_gnu): Fix formatting.
4004 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
4005 (Exception_Handler_to_gnu_zcx): Likewise.
4006 (gnat_to_gnu) <N_Object_Declaration>: Short-circuit handling of
4008 expressions in presence of a freeze node.
4010 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
4012 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Look into
4013 expressions for external constants that are aggregates.
4014 * gcc-interface/utils2.c (build_simple_component_ref): If the field
4015 is an inherited component in an extension, look through the extension.
4017 2010-09-10 Vincent Celier <celier@adacore.com>
4019 * projects.texi: Add documentation for package extensions
4020 Add some documentation for attributes Leading_Library_Options and
4021 Linker'Leading_Switches.
4023 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4025 * exp_util.adb (Expand_Subtype_From_Expression): When expansion is
4026 disabled, compute subtype for all string types.
4028 2010-09-10 Robert Dewar <dewar@adacore.com>
4030 * gnat_ugn.texi: Add documentation for -gnatw.s/S
4031 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
4032 Component_Size): Implement warning on overriden size clause.
4033 (Analyze_Record_Representation_Clause): Implement warning on overriden
4035 * sem_warn.ads, sem_warn.adb (Warn_On_Overridden_Size): New flag
4037 * ug_words: Add entries for -gnatw.s/S.
4038 * vms_data.ads, usage.adb: Add line for -gnatw.s/-gnatw.S.
4039 * gcc-interface/Make-lang.in: Update dependencies.
4041 2010-09-10 Vincent Celier <celier@adacore.com>
4043 * prj-dect.adb (Parse_Package_Declaration): Allow a package to extend
4044 a package with the same name from an imported or extended project.
4045 * prj-proc.adb (Process_Declarative_Items): Process package extensions
4047 2010-09-10 Bob Duff <duff@adacore.com>
4049 * exp_ch6.adb (Expand_Call): Do not perform a null_exclusion check on
4052 2010-09-10 Robert Dewar <dewar@adacore.com>
4054 * sem.adb: Minor reformatting.
4056 2010-09-10 Bob Duff <duff@adacore.com>
4058 * s-os_lib.ads, g-expect.ads: Add comments.
4060 2010-09-10 Robert Dewar <dewar@adacore.com>
4062 * exp_ch5.adb: Minor reformatting.
4064 2010-09-10 Thomas Quinot <quinot@adacore.com>
4066 * scos.ads: Add comments.
4068 2010-09-10 Vincent Celier <celier@adacore.com>
4070 * gnatcmd.adb (Get_Closure): Remove useless invocation of Close.
4072 2010-09-10 Hristian Kirtchev <kirtchev@adacore.com>
4074 * exp_ch7.adb, exp_ch6.adb (Expand_Call): Establish a transient scope
4075 for a controlled build-in-place function call which appears in an
4076 anonymous context. The transient scope ensures that the intermediate
4077 function result is cleaned up after the master is left.
4078 (Make_Build_In_Place_Call_In_Anonymous_Context): Remove the creation
4079 of the transient scope. This is now done in Exand_Call which covers
4080 additional cases other than secondary stack release.
4082 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4084 * sem.adb (Do_Unit_And_Dependents): Add guard.
4086 2010-09-10 Robert Dewar <dewar@adacore.com>
4088 * exp_ch5.adb: Update comments.
4089 * exp_dist.adb: Minor reformatting.
4091 2010-09-10 Robert Dewar <dewar@adacore.com>
4093 * sem_ch13.adb (Check_Record_Representation_Clause): Implement record
4095 * sem_warn.ads, sem_warn.adb (Warn_On_Record_Holes): New warning flag.
4096 * usage.adb: Add lines for -gnatw.h/H
4097 * gnat_ugn.texi: Add documentation for J519-010
4098 Warn on record holes/gaps
4099 * ug_words: Add entries for -gnatw.h/-gnatw.H
4100 * vms_data.ads: Add entries for [NO]AVOIDGAPS
4102 2010-09-10 Gary Dismukes <dismukes@adacore.com>
4104 * sem_ch6.adb: Update comment.
4106 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4108 * sem_ch3.adb (Build_Derived_Private_Type): Mark generated declaration
4109 of full view analyzed after analyzing the corresponding record
4110 declaration, to prevent spurious name conflicts with original
4113 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
4115 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): In the VM case,
4116 just issue a warning, but continue with the normal processing.
4118 2010-09-10 Robert Dewar <dewar@adacore.com>
4120 * exp_attr.adb, prj-nmsc.adb, sem_ch4.adb, sem_res.adb: Minor
4123 2010-09-10 Thomas Quinot <quinot@adacore.com>
4125 * exp_dist.adb (Build_From_Any_Call, Build_To_Any_Call,
4126 Build_TypeCode_Call): For a subtype inserted for the expansion of a
4127 generic actual type, go to the underlying type of the original actual
4130 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4132 * exp_ch5.adb (Expand_Assign_Array_Loop): In CodePeer mode, place a
4133 guard around the increment statement, to prevent an off-by-one-value
4134 on the last iteration.
4136 2010-09-10 Vincent Celier <celier@adacore.com>
4138 * sem_aggr.adb, exp_prag.adb, sem_ch3.adb, exp_attr.adb,
4139 sem_res.adb, sem_attr.adb, sem_elab.adb, sem_ch4.adb, exp_disp.adb,
4140 exp_aggr.adb, exp_dist.adb: Change all mentions of "at run-time" to
4141 "at run time" in comments and error/warning messages.
4143 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4145 * exp_cg.adb: Handle properly bodies without specs.
4147 2010-09-10 Emmanuel Briot <briot@adacore.com>
4149 * prj-nmsc.adb (Find_Source_Dirs): When a source directory is not
4150 present, and the user requested to either ignore this or display a
4151 warning (as opposed to an error), we still need to register the
4154 2010-09-10 Robert Dewar <dewar@adacore.com>
4156 * errout.adb: Remove tests of Parsing_Main_Subunit, since this test is
4157 now done in In_Extended_Main_Source_Unit.
4158 * errout.ads (Compiler_State[_Type]): Moved from Errout to Lib
4159 (Parsing_Main_Subunit): Moved from Errout to Lib and renamed
4160 as Parsing_Main_Extended_Source.
4161 * frontend.adb: Set Parsing_Main_Extended_Source True for parsing main
4163 * lib-load.adb (Load_Unit): Add PMES parameter
4164 Set PMES appropriately in all calls to Load_Unit
4165 * lib-load.ads (Load_Unit): Add PMES parameter
4166 * lib.adb (In_Extended_Main_Source_Unit): When called with
4167 Compiler_State set to Parsing, test new flag
4168 Compiling_Main_Extended_Source.
4169 * lib.ads (Compiler_State[_Type]): Moved from Errout to Lib
4170 (Parsing_Main_Subunit): Moved from Errout to Lib and renamed
4171 as Parsing_Main_Extended_Source
4172 * par-load.adb (Load): Set PMES properly in call to Load_Unit
4174 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4176 * exp_cg.adb: Use proper entity to handle overloads.
4177 * sem_res.adb (Check_Parameterless_Call): An operator node without
4178 actuals cannot be a call, and must be treated as a string.
4180 2010-09-10 Robert Dewar <dewar@adacore.com>
4182 * frontend.adb: Minor reformatting.
4184 2010-09-10 Robert Dewar <dewar@adacore.com>
4186 * par-ch4.adb (P_Conditional_Expression): Use P_Condition for condition
4187 * par-ch5.adb (P_Condition): Move from body to spec
4188 * par.adb (Ch5.P_Condition): Move from body to spec
4190 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4192 * exp_cg.adb (Write_Call_Info): If a type that has been registered in
4193 the call table is private, use its full view to generate information
4196 2010-09-10 Jose Ruiz <ruiz@adacore.com>
4198 * exp_cg.adb (Is_Predefined_Dispatching_Operation): When trying the
4199 pattern matching to detect predefined primitive operations take into
4200 account that there can be an extra suffix related to body-nested
4203 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4205 * s-pooglo.ads: Add overriding indicators.
4207 2010-09-10 Vincent Celier <celier@adacore.com>
4209 * vms_data.ads: Add new GNAT BIND qualifiers /32_MALLOC (for -H32) and
4210 /64_MALLOC (for -H64).
4212 2010-09-10 Robert Dewar <dewar@adacore.com>
4214 * errout.adb (Error_Msg_Internal): Test Parsing_Main_Subunit flag
4215 (Error_Msg_NW): Test Parsing_Main_Subunit flag
4216 * errout.ads (Parsing_Main_Subunit): New flag
4217 * lib-load.adb (Load_Unit): Set Parsing_Main_Subunit flag
4218 * par-ch6.adb: Minor style fix (remove redandant parentheses)
4219 * par-ch9.adb: Minor style fix (remove redundant parens)
4220 * par-load.adb: (Load): Deal with setting Parsing_Main_Subunit
4222 2010-09-10 Vincent Celier <celier@adacore.com>
4224 * make.adb (Create_Binder_Mapping_File): Remove procedure. Replaced by
4225 function of the same name in Makeutl.
4226 (Gnatmake): Call function Create_Binder_Mapping_File in Makeutl, instead
4227 of removed procedure when creating a binder mapping file.
4228 * makeutl.adb (Create_Binder_Mapping_File): New function. Was a
4230 * makeutl.ads (Create_Binder_Mapping_File): New function
4232 2010-09-10 Jose Ruiz <ruiz@adacore.com>
4234 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Add the "__" scope
4235 separator when trying the pattern matching to detect predefined
4236 primitive operations.
4238 2010-09-10 Robert Dewar <dewar@adacore.com>
4240 * bindgen.adb, atree.adb: Minor reformatting.
4242 2010-09-10 Ben Brosgol <brosgol@adacore.com>
4244 * ug_words, gnat_ugn.texi: Revised "Transitioning to 64-Bit GNAT for
4247 2010-09-10 Doug Rupp <rupp@adacore.com>
4249 * bindgen.adb: Minor comment fix for -H switch.
4251 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4253 * exp_cg.adb (Register_CG_Node): Determine enclosing subprogram or
4254 library unit now, by traversing tree before context is expanded.
4255 (Write_Call_Info): Use enclosing unit name directly.
4256 * exp_ch9.adb (Expand_N_Accept_Statement): Attach generated block to
4257 tree earlier, to ensure that subsequent declarations are analyzed in a
4258 connected structure.
4259 * exp_intr.adb (Expand_Unc_Deallocation): Ditto for generated statement
4262 2010-09-10 Robert Dewar <dewar@adacore.com>
4264 * symbols-processing-vms-alpha.adb: Minor reformatting.
4266 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
4268 * bindgen.adb (Gen_Adainit_Ada): In .NET, don't call
4269 __gnat_install_handler in case the binder is called with -n.
4271 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4273 * exp_ch6.adb (Make_Build_In_Place_In_Object_Declaration): Use proper
4274 sloc for renaming declaration and set Comes_From_Source properly to
4275 ensure that references are properly generated for an object declaration
4276 that is built in place.
4278 2010-09-10 Tristan Gingold <gingold@adacore.com>
4280 * symbols-processing-vms-alpha.adb: Allow gnatsym to work as a cross
4282 * gcc-interface/Make-lang.in: Install gnatsym when cross compiling.
4283 * gcc-interface/Makefile.in: gnat.hlp is now generated by
4286 2010-09-10 Bob Duff <duff@adacore.com>
4288 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): For things like ""X(J)
4289 := ...;", remove side effects from the right-hand side, because they
4290 might affect the value of the left-hand side, but the left-hand side is
4291 first READ (so we can do shifting and masking) and then written back,
4292 which would cause the side effects to be incorrectly overwritten.
4294 2010-09-10 Robert Dewar <dewar@adacore.com>
4296 * sem_ch4.adb: Minor reformatting.
4297 * exp_ch6.adb: Add comment on testing limited on full type
4298 * gnat_rm.texi: Add documentation on Pure_Function.
4300 2010-09-10 Vincent Celier <celier@adacore.com>
4302 * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
4303 as a source of another project and of another language.
4305 2010-09-10 Robert Dewar <dewar@adacore.com>
4307 * exp_ch3.adb (Expand_N_Object_Declaration): Defend against previous
4309 * freeze.adb (Check_Unsigned_Type): Ditto.
4310 * sem_aggr.adb (Resolve_Aggr_Expr): Ditto.
4311 * sem_ch3.adb (Convert_Scalar_Bounds): Ditto.
4312 (Set_Scalar_Range_For_Subtype): Ditto.
4313 * sem_eval.adb (Subtypes_Statically_Match): Ditto.
4315 2010-09-10 Robert Dewar <dewar@adacore.com>
4317 * repinfo.adb (List_Type_Info): List Small and Range for fixed-point
4319 * sprint.adb (Write_Ureal_With_Col_Check_Sloc): Use square brackets
4320 rather than parens for fixed constants.
4321 * sprint.ads: Use square brackets rather than parens for fixed constants
4322 * urealp.adb (UR_Write): Use square brackets rather than parens
4323 (UR_Write): Add Brackets argument
4324 (UR_Write): Add many more special cases to output literals
4325 * urealp.ads (UR_Write): Use square brackets rather than parens
4326 (UR_Write): Add Brackets argument
4328 2010-09-10 Robert Dewar <dewar@adacore.com>
4330 * sem_ch4.adb: Minor reformatting.
4332 2010-09-10 Richard Guenther <rguenther@suse.de>
4334 * gcc-interface/utils.c (create_index_type): Use build_range_type.
4336 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4338 * vms_cmds.ads: New.
4340 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
4342 * exp_dbug.ads: Mention enhanced encoding for array types.
4344 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
4346 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Size clause are
4347 unsupported in VM targets. Display a warning in this case.
4349 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4351 * sprint.adb (Sprint_Node_Actual, case N_Derived_Type_Definition): Do
4352 not reset Sloc when printing keyword "new".
4354 2010-09-10 Vincent Celier <celier@adacore.com>
4356 * gnatcmd.adb (GNATCmd): Put the command line in environment variable
4357 GNAT_DRIVER_COMMAND_LINE.
4359 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4361 * sem.adb (Do_Unit_And_Dependents): if Withed_Body is set on a context
4362 clause, process the body at once.
4364 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4366 * sem_res.adb (Resolve_Type_Conversion): Do not warn on a redundant
4367 conversion is the expression is a qualified expression used to
4368 disambiguate a function call.
4370 2010-09-10 Vincent Celier <celier@adacore.com>
4372 * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
4373 as a source of another project and of another language.
4375 2010-09-10 Robert Dewar <dewar@adacore.com>
4377 * prj-util.adb: Minor reformatting.
4379 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
4381 * exp_disp.adb: Minor reformatting.
4383 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4385 * sem_prag.adb (Analyze_Pragma): Ignore Inline_Always pragma in
4388 2010-09-10 Thomas Quinot <quinot@adacore.com>
4390 * sem_res.adb: Minor reformatting.
4391 * exp_ch9.adb, rtsfind.ads, exp_ch4.adb, exp_ch3.adb: Do not hardcode
4392 magic constants for task master levels (instead, reference
4393 named numbers from System.Tasking).
4395 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
4397 * gnatvsn.ads (Ver_Prefix): New constant string.
4398 * bindgen.adb (Gen_Output_File_Ada): Use it in lieu of hardcoded value.
4399 (Gen_Output_File_C): Likewise.
4400 * g-comver.adb (Ver_Prefix): Add cross-reference to Gnatvsn.Ver_Prefix
4403 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4405 * sem.adb (Walk_Library_Items): Do not traverse children of the main
4406 unit, to prevent spurious circularities in the walk order.
4407 (Depends_On_Main): Use elsewhere to prevent circularities when the body
4408 of an ancestor of the main unit depends on a child of the main unit.
4410 2010-09-10 Robert Dewar <dewar@adacore.com>
4412 * gnatlink.adb, prj-ext.adb, prj-util.adb, s-tporft.adb,
4413 sem_ch3.adb: Minor reformatting.
4415 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4417 * sem_ch3.adb (Derive_Subprograms): An interface primitive operation
4418 that is a renaming must be derived like any other primitive operation,
4419 the renamed operation is not relevant to the derivation.
4421 2010-09-10 Robert Dewar <dewar@adacore.com>
4423 * sem_aux.ads: Add comment for Is_Inherently_Limited_Type.
4424 * checks.adb: Minor reformatting.
4426 2010-09-10 Robert Dewar <dewar@adacore.com>
4428 * gnat_ugn.texi: Add section on intent of style checking options.
4430 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4432 * xref_lib.adb (Get_Full_Type): Fix handling of 'a' char.
4434 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4436 * sem_ch3.adb: Improve error message on derivation from class-wide type
4438 2010-09-10 Steve Baird <baird@adacore.com>
4440 * gnat1drv.adb (Adjust_Global_Switches): Enable Expression_With_Actions
4441 generation when Generate_SCIL is True.
4443 2010-09-10 Geert Bosch <bosch@adacore.com>
4445 * gnatlink.adb (Check_ Existing_Executable): New procedure for checking
4446 validity of executable name and removing any existing executable
4447 (Gnatlink): Call Check_Existing_Executable.
4449 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4451 * s-tporft.adb, s-taskin.ads (Register_Foreign_Thread): Move
4452 initialization of Task_Alternate_Stack here, cleaner since in case of
4453 ranvescar, Restricted_Ada_Task_Control_Block is not initialized
4456 2010-09-10 Thomas Quinot <quinot@adacore.com>
4458 * s-fileio.adb, a-dirval.adb: Minor reformatting.
4460 2010-09-10 Emmanuel Briot <briot@adacore.com>
4462 * prj-util.adb (Executable_Of): Fix CE when the project does not
4463 contain a Builder package.
4465 2010-09-10 Vincent Celier <celier@adacore.com>
4467 * prj-ext.adb (Initialize_Project_Path): Add <prefix>/lib/gpr/<target>
4468 to the project path, if Prefix and Target_Name are defined.
4469 * prj-tree.ads (Project_Node_Tree_Data): New component Target_Name
4471 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4473 * checks.adb (Ensure_Valid): If the expression is a boolean expression
4474 or short-circuit operation, do no emit a validity check: only the
4475 elementary operands of the expression need checking.
4477 2010-09-10 Ben Brosgol <brosgol@adacore.com>
4479 * gnat_rm.texi: Document Short_Descriptors.
4481 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4483 * s-taprop-linux.adb, s-taskin.ads (Task_Alternate_Stack): Default
4484 initialize to Null_Address.
4485 (Enter_Task): Do not set up an alternate stack for foreign threads.
4487 2010-09-10 Robert Dewar <dewar@adacore.com>
4489 * opt.adb (Short_Descriptors): New flag
4490 (Short_Descriptors_Config): New flag
4491 * opt.ads (Short_Descriptors): New flag
4492 (Short_Descriptors_Config): New flag
4493 * par-prag.adb: Add dummy entry for Short_Descriptors pragma
4494 * sem_prag.adb (Set_Mechanism_Value): Deal with Short_Descriptors.
4495 (Analyze_Pragma): Implement Short_Descriptors pragma
4496 * snames.ads-tmpl: Add entry for Short_Descriptors pragma
4498 2010-09-10 Emmanuel Briot <briot@adacore.com>
4500 * prj-util.adb, prj-util.ads (Executable_Of): Take into account the
4501 project's Executable_Suffix.
4503 2010-09-10 Robert Dewar <dewar@adacore.com>
4505 * g-pehage.ads: Minor reformatting
4507 * gnat_ugn.texi: Clarifying comment on -gnatyc
4508 * exp_ch6.adb (Expand_N_Subprogram_Body): Reset Is_Pure if limited
4511 2010-09-10 Tristan Gingold <gingold@adacore.com>
4513 * Make-generated.in (gnat.hlp): New rule.
4515 2010-09-10 Emmanuel Briot <briot@adacore.com>
4517 * prj-util.adb, prj-util.ads (Executable_Of): New parameter
4520 2010-09-10 Robert Dewar <dewar@adacore.com>
4522 * einfo.adb: Minor code cleanup: Add assertion to
4523 Set_Corresponding_Protected_Entry.
4525 2010-09-10 Bob Duff <duff@adacore.com>
4527 * g-pehage.ads, g-pehage.adb (Produce): Add a new flag to allow sending
4528 the output to standard output.
4530 2010-09-09 Vincent Celier <celier@adacore.com>
4532 * gnat_ugn.texi: Add documentation for new gnatmake switch
4534 * make.adb (Map_File): New global variable to store the value of switch
4536 (Gnatmake): Add switch -M to gnatlink if switch --create-map-file has
4538 (Scan_Make_Arg): Recognize switch --create-map-file
4539 * makeutl.ads (Create_Map_File_Switch): New constant string for new
4540 gnatmake and gprbuild switch --create-map-file.
4542 2010-09-09 Robert Dewar <dewar@adacore.com>
4544 * sinput-p.ads: Minor comment update.
4546 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4548 * s-tpobop.adb, s-taenca.adb (Wait_For_Completion_With_Timeout): Reset
4549 Entry_Call.State if needed so that the call is marked as cancelled by
4550 Check_Pending_Actions_For_Entry_Call.
4551 (Timed_Protected_Entry_Call): Adjust calls to Defer/Under_Abort, since
4552 this procedure may be called from a controlled operation
4553 (Initialize/Finalize).
4555 2010-09-09 Vadim Godunko <godunko@adacore.com>
4557 * impunit.adb: Correct spelling of package's name in the comment.
4559 2010-09-09 Robert Dewar <dewar@adacore.com>
4561 * gnatcmd.adb, gnatlink.adb, sem_ch12.adb, sem_eval.adb, sinput-p.adb:
4564 2010-09-09 Robert Dewar <dewar@adacore.com>
4566 * impunit.adb: Add entry for a-izteio.
4567 * checks.adb: Add comment.
4568 * debug.adb, exp_disp.adb: Minor reformatting.
4569 * exp_dbug.ads: Minor reformatting throughout (pack block comments).
4571 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4573 * sem_eval.adb (Is_Same_Value): Two occurrences of the same
4574 discriminant cannot be assumed to be the same value because they may
4575 refer to bounds of a component of two different instances of a
4578 2010-09-09 Gary Dismukes <dismukes@adacore.com>
4580 * checks.adb (Apply_Arithmetic_Overflow_Check): When converting the
4581 operands of an operator to the type of an enclosing conversion, rewrite
4582 the operator so the conversion can't be flagged as redundant.
4583 Remove useless assignments to Typ and Rtyp.
4585 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
4587 * gnat_ugn.texi: Fix another long line.
4589 2010-09-09 Bob Duff <duff@adacore.com>
4591 * sem_warn.adb (Output_Reference_Error): Don't warn for renames read
4594 2010-09-09 Matthew Heaney <heaney@adacore.com>
4596 * a-convec.adb, a-coinve.adb (Clear, Delete, Delete_Last, Finalize,
4597 Merge, Insert, Insert_Space, Move, Reserve_Capacity, Generic_Sorting,
4598 Replace_Element, Reverse_Elements, Swap): Change exception message to
4599 correctly indicate kind of tampering (cursor or element).
4600 * a-cdlili.adb, a-cidlli.adb (Clear, Delete, Delete_First, Delete_Last,
4601 Merge, Generic_Sorting, Insert, Move, Reverse_Elements, Splice,
4602 Swap_Links, Replace_Element, Swap): Ditto.
4603 * a-coorse.adb, a-ciorse.adb (Include, Replace, Replace_Element): Ditto
4604 * a-coorma.adb, a-ciorma.adb (Include, Replace, Replace_Element): Ditto
4605 * a-coormu.adb, a-ciormu.adb (Replace_Element): Ditto
4606 * a-chtgke.adb (Delete_Key_Sans_Free, Generic_Conditional_Insert,
4607 Generic_Replace_Element): Ditto
4608 * a-chtgop.adb (Clear, Move, Reserve_Capacity): Ditto
4609 * a-cohama.adb, a-cihama.adb (Delete, Include, Replace,
4610 Replace_Element): Ditto.
4611 * a-cohase.adb, a-cihase.adb (Delete, Difference, Intersection,
4612 Symmetric_Difference, Union, Include, Replace): Ditto
4614 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4616 * sprint.adb (Write_Id): If the parent node is an expanded name, check
4617 that its entity_or_associated_node is an entity before writing it out.
4618 * exp_disp.adb (Make_Tags); if a type is declared in C++ and has no
4619 constructors, there is no need for a dispatch table pointer because the
4620 table is fully inherited from the C++ code.
4622 2010-09-09 Thomas Quinot <quinot@adacore.com>
4624 * projects.texi: Fix wrong identifiers on package end lines in project
4626 * exp_ch6.adb: Minor reformatting.
4628 2010-09-09 Tristan Gingold <gingold@adacore.com>
4630 * gnatcmd.adb, vms_conv.ads: Extract Command_Type.
4632 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
4634 * gnat_ugn.texi: Fix description of -O3 optimization level.
4636 2010-09-09 Yannick Moy <moy@adacore.com>
4638 * a-cihama.adb, a-cohama.adb: Fix comments.
4640 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4642 * i-cexten.ads: Add comments.
4643 (Signed_128): New type, used by some C bindings.
4644 * debug.adb: Update comment.
4646 2010-09-09 Sergey Rybin <rybin@adacore.com>
4648 * gnat_ugn.texi: For ASIS tools (gnatpp, gnatcheck, gnatelim,
4649 gnatmetric and gnatstub) add a note that '-gnat05' should be used if
4650 the tool should process Ada 2005 sources.
4652 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4654 * sem_ch12.adb (Remove_Parent): If the scope containing the child
4655 instance is a block, examine the enclosing scope to determine if it is
4658 2010-09-09 Doug Rupp <rupp@adacore.com>
4660 * sem_prag.adb (pragma Ident): Pass --identification= vice
4662 * gnatlink.adb (Linker_Options): Look for --identification= vice
4665 2010-09-09 Gary Dismukes <dismukes@adacore.com>
4667 * exp_attr.adb (Expand_N_Attribute_Reference, case Attribute_Old): When
4668 inserting and analyzing the object declaration for the temporary object
4669 created to hold a 'Old value, push the scope for the subprogram where
4670 the object is inserted, so that its Scope (and that of related objects)
4671 will be set properly.
4673 2010-09-09 Vincent Celier <celier@adacore.com>
4675 * prj.adb (Get_Object_Directory): Return object directory display name
4676 * adaint.c (__gnat_get_file_names_case_sensitive): When environment
4677 variable GNAT_FILE_NAME_CASE_SENSITIVE has a value of "0" or "1",
4678 return this value, otherwise return the default for the platform.
4680 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4682 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
4683 dependencies. Remove handling of gnatlbr.
4684 Do not remove s-stratt-xdr for the run-time when installing.
4686 2010-09-09 Robert Dewar <dewar@adacore.com>
4688 * sem_attr.adb: Minor reformatting.
4690 2010-09-09 Thomas Quinot <quinot@adacore.com>
4692 * socket.c (__gnat_socket_ioctl): On Darwin, the req parameter is an
4693 unsigned long, not an int.
4695 2010-09-09 Vincent Celier <celier@adacore.com>
4697 * make.adb, mlib-prj.adb, prj.adb, prj-nmsc.adb, mlib-tgt.adb,
4698 prj-conf.adb, prj-env.adb: Use Display_Name instead of Name whenever
4699 we are not checking for equality of path or file names.
4701 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4703 * exp_util.adb (Remove_Side_Effects): If the expression is a packed
4704 array reference, reset the Analyzed flag so that it is properly
4705 expanded when the resulting object declaration is analyzed.
4707 2010-09-09 Vincent Celier <celier@adacore.com>
4709 * sinput-p.adb (Source_File_Is_Subunit): Return False if X is
4712 2010-09-09 Ramon Fernandez <fernandez@adacore.com>
4714 * sysdep.c: The wrSbc8548 BSP in MILS doesn't know anything about the
4715 VX_SPE_TASK option, so disable it.
4717 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4719 * sem.adb (Walk_Library_Items): Traverse context of subunits of the
4721 (Is_Subunit_Of_Main): Handle null nodes properly.
4723 2010-09-09 Robert Dewar <dewar@adacore.com>
4725 * par-ch2.adb: Update comments.
4727 2010-09-09 Ben Brosgol <brosgol@adacore.com>
4729 * gnat_rm.texi: Minor wordsmithing of section on pragma Ordered.
4731 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4733 * par-ch2.adb (Scan_Pragma_Argument_Association): In CodePeer mode,
4734 do not generate an error for compatibility with legacy code.
4735 ignored when generating SCIL.
4736 * sem_attr.adb (Resolve_Attribute): Ignore AI-229 in CodePeer mode.
4738 2010-09-09 Thomas Quinot <quinot@adacore.com>
4740 * s-strxdr.adb, gnat_rm.texi, s-stratt-xdr.adb, s-stratt.ads: Rename
4741 s-strxdr.adb to s-stratt-xdr.adb
4743 2010-09-09 Robert Dewar <dewar@adacore.com>
4745 * ali-util.adb (Obsolescent_Check): Removed.
4746 * gprep.adb (Obsolescent_Check): Removed.
4747 Remove Obsolescent_Check parameter in Scng instantiation
4748 * prj-err.adb (Obsolescent_Check): Removed.
4749 * prj-err.ads (Obsolescent_Check): Removed.
4750 Remove Obsolescent_Check parameter in Scng instantiation
4751 * scans.ads (Based_Literal_Uses_Colon): New flag
4752 * scn.adb (Obsolscent_Check_Flag): Removed
4753 (Obsolscent_Check): Removed
4754 (Set_Obsolescent_Check): Removed
4755 (Post_Scan): Add handling for obsolescent features
4756 * scn.ads (Obsolscent_Check): Removed
4757 (Set_Obsolescent_Check): Removed
4758 (Post_Scan): Can no longer be inlined
4759 Remove Obsolescent_Check from instantiation of Scng
4760 * scng.adb (Nlit): Set Based_Literal_Uses_Colon
4761 (Nlit): Remove handling of obsolescent check
4762 (Scan, case '%'): Remove handling of obsolescent check
4763 (Scan, case '|'): Call Post_Scan
4764 (Scan, case '!'): Remove handling of obsolescent check, call Post_Scan
4765 * scng.ads Remove Obsolescent_Check argument from Scng generic
4766 (Post_Scan): Now called for Tok_Vertical_Bar
4767 * sinput-l.adb: Remove calls to Set_Obsolescent_Check
4769 2010-09-09 Doug Rupp <rupp@adacore.com>
4771 * gnatlbr.adb: Removed.
4772 * gnat_rm.texi, ug_words, gnat_ugn.texi: Remove mention of gnatlbr.
4774 2010-09-09 Robert Dewar <dewar@adacore.com>
4776 * sem_res.adb (Resolve_Type_Conversion): Catch more cases of redundant
4779 2010-09-09 Vincent Celier <celier@adacore.com>
4781 * gnatlbr.adb: Remove redundant conversions.
4783 2010-09-09 Vincent Celier <celier@adacore.com>
4785 * prj-proc.adb: Minor comment spelling error fix.
4786 * osint.ads (Env_Vars_Case_Sensitive): Use function
4787 Get_Env_Vars_Case_Sensitive, not Get_File_Names_Case_Sensitive to
4790 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4792 * sem_res.adb (Resolve_Equality_Op): Implement Ada2012 rule for
4793 resolution of conditional expressions whose dependent expressions are
4794 anonymous access types.
4796 2010-09-09 Robert Dewar <dewar@adacore.com>
4798 * a-ststio.adb: Minor code reorganization.
4799 * s-direio.adb, prj.adb, prj-nmsc.adb, sem_type.adb: Remove redundant
4801 * types.ads: Minor reformatting.
4802 * binde.adb, vms_conv.adb, gnatls.adb, s-strxdr.adb, uintp.adb: Remove
4803 redundant conversions.
4804 * output.adb: Minor reformatting.
4805 * sem_ch8.adb (Find_Type): Test for redundant base applies to user
4807 * opt.ads: Add pragma Ordered for Verbosity_Level.
4808 * prj.ads: Add pragma Ordered for type Verbosity.
4810 2010-09-09 Vincent Celier <celier@adacore.com>
4812 * osint.adb (Canonical_Case_File_Name): Use procedure To_Lower in
4814 (Canonical_Case_Env_Var_Name): Ditto
4816 2010-09-09 Bob Duff <duff@adacore.com>
4818 * g-pehage.adb (Allocate): Initialize the allocated elements of IT.
4820 2010-09-09 Robert Dewar <dewar@adacore.com>
4822 * cstand.adb: Mark Boolean and Character types as Ordered
4823 * einfo.adb (Has_Pragma_Ordered): New flag
4824 * einfo.ads (Has_Pragma_Ordered): New flag
4825 * g-calend.ads: Mark Day_Name as Ordered
4826 * opt.ads: Mark Ada_Version_Type as Ordered
4827 (Warn_On_Unordered_Enumeration_Type): New flag
4828 * par-prag.adb: Add procdessing for pragma Ordered
4829 * s-ficobl.ads (Read_File_Mode): New subtype
4830 * s-fileio.adb: Use Read_File_Mode instead of explicit ranges
4831 * s-taskin.ads: Mark Entry_Call_State as ordered
4832 * sem_ch3.adb (Build_Derived_Enumeration_Type): Inherit
4834 * sem_ch6.ads: Mark Conformance_Type as Ordered
4835 * sem_prag.adb: Implement pragma Ordered
4836 * sem_res.adb (Bad_Unordered_Enumeration_Reference): New function
4837 (Resolve_Comparison_Op): Diagnose unordered comparison
4838 (Resolve_Range): Diagnose unordered range
4839 * sem_warn.adb (Warn_On_Unordered_Enumeration_Type): New flag (from
4841 * snames.ads-tmpl: Add entry for pragma Ordered
4842 * style.ads (Check_Enumeration_Subrange): Removed
4843 * styleg.adb (Check_Enumeration_Subrange): Removed
4844 * styleg.ads (Check_Enumeration_Subrange): Removed
4845 * stylesw.adb: Remove handling of -gnatyE switch
4846 * stylesw.ads: (Style_Check_Enumeration_Subranges): Removed
4847 * vms_data.ads: Remove -gnatyE entries
4848 Add -gnatw.u entries
4849 * ug_words: Entries for -gnatw.u and -gnatw.U
4850 * gnat_ugn.texi: Document -gnatw.u/-gnatw.U switches
4851 * gnat_rm.texi: Document pragma Ordered.
4852 * s-tasren.adb: Avoid unnecessary comparison on unordered enumeration.
4853 * s-tpobop.adb: Remove comparison on unordered enumeration type.
4855 2010-09-09 Vincent Celier <celier@adacore.com>
4857 * adaint.c: New function __gnat_get_env_vars_case_sensitive, returns 0
4858 for VMS and Windows, and 1 for all other platforms.
4859 * adaint.h: New function __gnat_get_env_vars_case_sensitive
4860 * osint.ads, osint.adb (Canonical_Case_Env_Var_Name): New procedure.
4861 * prj-ext.adb (Add): Call Canonical_Case_Env_Var_Name instead of
4862 Canonical_Case_File_Name, as we are dealing with environment variables,
4865 2010-09-09 Robert Dewar <dewar@adacore.com>
4867 * sem_util.adb: Minor reformatting
4869 2010-09-09 Vincent Celier <celier@adacore.com>
4871 * vms_data.ads: Add documentation for S_Make_Single.
4873 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4875 * sem_util.adb (Same_Object): include formal parameters.
4877 2010-09-09 Vincent Celier <celier@adacore.com>
4879 * make.adb (Queue): New package implementing a new impementation of the
4880 queue, taking into account the new switch --single-compile-per-obj-dir.
4881 * makeutl.ads (Single_Compile_Per_Obj_Dir_Switch): New constant String
4882 for gnatmake and gprbuild new switch --single-compile-per-obj-dir.
4883 * opt.ads (One_Compilation_Per_Obj_Dir): New Boolean flag, defauted to
4885 * switch-m.adb (Scan_Make_Switches): Take into account new gnatmake
4886 switch --single-compile-per-obj-dir.
4887 * vms_data.ads: Add qualifier SINGLE_COMPILE_PER_OBJ_DIR for gnatmake
4888 switch --single-compile-per-obj-dir.
4889 * gnat_ugn.texi: Add documentation for new gnatmake switch
4890 --single-compile-per-obj-dir.
4892 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4894 * einfo.adb, einfo.ads: Clarify use of Corresponding_Protected_Entry.
4896 2010-09-09 Javier Miranda <miranda@adacore.com>
4898 * sem_ch3.adb (Is_Progenitor): Relocated to sem_type.
4899 (Replace_Type): Code cleanup.
4900 * sem_type.ads, sem_type.adb (Is_Progenitor): Relocated from sem_ch3
4902 2010-09-09 Thomas Quinot <quinot@adacore.com>
4904 * exp_ch8.adb: Minor reformatting.
4906 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4908 * exp_ch9.adb, einfo.adb, einfo.ads: New attribute
4909 Corresponding_Protected_Entry.
4911 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4913 * exp_ch3.adb (Build_Untagged_Equality): Do not set alias of implicit
4914 inequality, it is always rewritten as the negation of the corresponding
4916 * exp_ch8.adb (Expand_N_Subprogram_Renaming): If the subprogram renames
4917 the predefined equality of an untagged record, create a body at the
4918 point of the renaming, to capture the current meaning of equality for
4921 2010-09-09 Robert Dewar <dewar@adacore.com>
4923 * sem.adb, sem_warn.adb: Minor reformatting.
4925 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4927 * sem_ch6.adb: Improve error message on untagged equality.
4928 * sem.adb (Semantics): Include subprogram bodies that act as spec.
4930 2010-09-09 Javier Miranda <miranda@adacore.com>
4932 * sem_ch13.adb, exp_ch13.adb: Undo previous change, unneeded.
4934 2010-09-09 Robert Dewar <dewar@adacore.com>
4936 * sem_ch13.adb, sem_ch6.adb, exp_ch3.adb: Minor reformatting.
4938 2010-09-09 Robert Dewar <dewar@adacore.com>
4940 * einfo.adb (Is_Aggregate_Type): New function.
4941 * einfo.ads (Aggregate_Kind): New enumeration subtype
4942 (Is_Aggregate_Type): New function.
4943 * sem_type.adb (Is_Array_Class_Record_Type): Removed, replaced by
4946 2010-09-09 Robert Dewar <dewar@adacore.com>
4948 * exp_ch11.adb, frontend.adb, sem_attr.adb, sem_ch10.adb, sem_ch3.adb,
4949 sem_ch4.adb, sem_ch9.adb, sem_res.adb: Use Restriction_Check_Needed
4951 * restrict.ads, restrict.adb: Ditto.
4952 (Restriction_Check_Needed): New function
4954 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4956 * exp_ch9.ads (Find_Master_Scope): New function, extracted from
4957 Build_Master_Entity, to find the proper scope for the master entity of
4958 a type that may contain tasks, in the presence of transient scopes.
4959 * exp_ch9.adb (Build_Master_Entity) Use new function.
4960 * exp_ch3.adb (Build_Class_Wide_Master): ditto.
4962 2010-09-09 Vincent Celier <celier@adacore.com>
4964 * prj-attr.adb: Add new attributes Leading_Library_Options and
4965 Linker'Leading_Switches.
4966 * snames.ads-tmpl: Add new standard names Leading_Library_Options and
4969 2010-09-09 Javier Miranda <miranda@adacore.com>
4971 * sem_ch3.adb (Derive_Subprogram): The code that checks if a
4972 dispatching primitive covers some interface primitive is incomplete.
4973 Replace such code by the invocation of a new subprogram that provides
4975 * sem_ch6.ads (Is_Interface_Conformant): Add missing documentation.
4976 * sem_ch6.adb (Check_Missing_Return): Minor reformating
4977 (Check_Convention): Complete if-statement conditition when reporting
4978 errors (to avoid assertion failure).
4979 * sem_ch13.adb (Make_Null_Procedure_Specs): This routine was previously
4980 located in exp_ch3. Relocated inside Analyze_Freeze_Entity.
4981 (Analyze_Freeze_Entity): Invoke routine that adds the spec of non
4982 overridden null interface primitives.
4983 * sem_type.adb (Is_Ancestor): If the parent of the partial view of a
4984 private type is an interface then use the parent of its full view to
4985 climb to its ancestor type.
4986 * sem_disp.ads, sem_disp.adb (Covers_Some_Interface): New subprogram.
4987 (Check_Dispatching_Operation): Extend assertion to handle wrappers of
4988 null interface primitives.
4989 (Is_Null_Interface_Primitive): New subprogram.
4990 * exp_ch3.adb (Make_Null_Procedure_Specs): Removed.
4991 (Expand_Freeze_Record_Type): Do not generate specs of null interface
4992 subprograms because they are now generated by Analyze_Freeze_Entity.
4994 2010-09-09 Robert Dewar <dewar@adacore.com>
4996 * a-calfor.adb, sem_ch3.adb: Minor reformatting.
4998 2010-09-09 Robert Dewar <dewar@adacore.com>
5000 * bindgen.adb (Gen_Restrictions_Ada): Avoid explicit enumeration ranges
5001 (Gen_Restrictions_C): Avoid explicit enumeration ranges
5002 (Set_String_Replace): New procedure
5003 * casing.ads (Known_Casing): New subtype declaration
5004 * prj-attr.ads (All_Case_Insensitive_Associative_Array): New subtype
5006 * prj-dect.adb (Parse_Attribute_Declaration): Avoid enumeration range
5007 * prj-nmsc.adb (Check_Naming): Avoid unnecessary enumeration range
5008 * prj-strt.adb (Attribute_Reference): Avoid enumeration range test
5009 * prj.adb (Known_Casing): Moved to Casing spec (avoid enum range)
5010 * sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order): Avoid enumeration
5012 * sem_res.adb (Resolve_Range): Check for enumeration subrange style
5014 * sem_type.adb (Is_Array_Class_Record_Type): New.
5015 * style.ads (Check_Enumeration_Subrange): New procedure
5016 * styleg.adb (Check_Enumeration_Subrange): New procedure
5017 * styleg.ads (Check_Enumeration_Subrange): New procedure
5018 * stylesw.adb Add handling for Style_Check_Enumeration_Subranges
5019 * stylesw.ads (Style_Check_Enumeration_Subranges): New flag
5020 * usage.adb: Add line for -gnatyE
5021 * vms_data.ads: Add entries for [NO]ENUMERATION_RANGES
5022 Add missing entry for NOBOOLEAN_OPERATORS
5023 * gnat_ugn.texi: Add documentation for -gnatyE
5025 2010-09-09 Robert Dewar <dewar@adacore.com>
5027 * namet.adb (Initialize): Is now a dummy procedure
5028 (Reinitialize): New procedure
5029 Call Reinitialize from package initialization
5030 * namet.ads (Initialize): Is now a dummy procedure
5031 (Reinitialize): New procedure
5032 * clean.adb, gnat1drv.adb, gnatbind.adb, gnatcmd.adb, gnatlink.adb,
5033 gnatls.adb, gprep.adb, make.adb, prj-makr.adb: Remove obsolete call to
5036 2010-09-09 Bob Duff <duff@adacore.com>
5038 * sem_elab.adb, s-os_lib.ads: Minor comment fixes.
5040 2010-09-09 Robert Dewar <dewar@adacore.com>
5042 * s-bitops.adb (Raise_Error): Add exception message
5044 2010-09-09 Robert Dewar <dewar@adacore.com>
5046 * par-ch5.adb (Test_Statement_Required): Deal with Ada 2012 allowing no
5047 null statement after label.
5048 * sinfo.ads: Minor comment updates.
5050 2010-09-09 Robert Dewar <dewar@adacore.com>
5052 * nlists.ads, nlists.adb (In_Same_List): New function.
5053 Use Node_Or_Entity_Id where appropriate.
5054 * par-labl.adb, sem_ch6.adb, sem_type.adb: Use In_Same_List.
5056 2010-09-09 Robert Dewar <dewar@adacore.com>
5058 * restrict.ads, restrict.adb (Check_Wide_Character_Restriction): New
5060 * sem_ch3.adb: Use Check_Wide_Character_Restriction
5061 (Enumeration_Type_Declaration): Check violation of No_Wide_Characters
5062 * sem_ch8.adb (Find_Direct_Name): Check violation of No_Wide_Characters
5063 (Find_Expanded_Name): Check violation of No_Wide_Characters
5065 2010-09-09 Robert Dewar <dewar@adacore.com>
5067 * par-ch5.adb: Minor reformatting.
5069 2010-09-09 Robert Dewar <dewar@adacore.com>
5071 * prj-env.adb: Minor code reorganization.
5072 * par-ch3.adb: Minor reformatting.
5073 * gcc-interface/Make-lang.in: Update dependencies.
5075 2010-09-09 Ed Schonberg <schonberg@adacore.com>
5077 * exp_ch9.adb (Build_Activation_Chain_Entity): The construct enclosing
5078 a task declaration can be an entry body.
5080 2010-09-09 Javier Miranda <miranda@adacore.com>
5082 * exp_disp.adb (Make_DT): Decorate as "static" variables containing
5083 tags of library level tagged types.
5084 (Make_Tags): Disable backend optimizations about aliasing for
5085 declarations of access to dispatch tables.
5087 2010-09-09 Ed Schonberg <schonberg@adacore.com>
5089 * sem_ch12.adb (Reset_Entity): If the entity is an itype created as a
5090 subtype for a null-excluding access type, recover the original
5091 subtype_mark to get the proper visibility on the original name.
5093 2010-09-09 Ed Schonberg <schonberg@adacore.com>
5095 * exp_ch3.adb (Build_Untagged_Equality): For Ada2012, new procedure to
5096 create the primitive equality operation for an untagged record. The
5097 operation is the predefined equality if no record component has a
5098 user-defined equality, or if there is a user-defined equality for the
5099 type as a whole, or when the type is derived and it has an inherited
5100 equality. Otherwise the body of the operations is built as for tagged
5102 (Expand_Freeze_Record_Type): Call Build_Untagged_Equality when needed.
5103 (Make_Eq_Body): New function to create the expanded body of the
5104 equality operation for tagged and untagged records. In both cases the
5105 operation composes, and the primitive operation of each record
5106 component is used to generate the equality function for the type.
5107 * exp_ch4.adb (Expand_Composite_Equality): In Ada2012, if a component
5108 has an abstract equality defined, replace its call with a
5109 Raise_Program_Error.
5110 * sem_ch6.adb (New_Overloaded_Entity): if Ada2012, verify that a
5111 user-defined equality operator for an untagged record type does not
5112 happen after type is frozen, and appears in the visible part if partial
5113 view of type is not limited.
5115 2010-09-09 Tristan Gingold <gingold@adacore.com>
5117 * gnatlbr.adb: Make Create_Directory more portable: use __gnat_mkdir.
5119 2010-09-09 Bob Duff <duff@adacore.com>
5121 * gnat_ugn.texi: Remove incorrect statement about -E being the default.
5123 2010-09-09 Pascal Obry <obry@adacore.com>
5125 * gnat_ugn.texi: Update doc on windows related topics.
5127 2010-09-09 Geert Bosch <bosch@adacore.com>
5129 * s-fatgen.adb: Update comments.
5131 2010-09-09 Robert Dewar <dewar@adacore.com>
5133 * par-ch4.adb (Box_Error): New procedure.
5135 2010-09-09 Thomas Quinot <quinot@adacore.com>
5137 * sem.adb: Minor reformatting.
5139 2010-09-09 Pascal Obry <obry@adacore.com>
5141 * prj-env.adb: Style fix, use /and then/ and /or else/.
5142 * gnat_ugn.texi: Fix typos.
5144 2010-09-03 Joseph Myers <joseph@codesourcery.com>
5147 * gcc-interface/misc.c (gnat_init_options): Allow options with
5148 empty canonical form. Generate a single save_argv element from -I
5151 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
5153 * gcc-interface/utils.c (gnat_pushdecl): Remove test for PARM_DECLs.
5154 Attach fake PARM_DECLs to the topmost block of the function.
5156 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
5158 * gcc-interface/trans.c (call_to_gnu): Also force the return slot opt
5159 for the call to a function whose return type was unconstrained.
5161 2010-08-30 Olivier Hainque <hainque@adacore.com>
5163 * gcc-interface/decl.c (FOREIGN_FORCE_REALIGN_STACK): New macro,
5164 replacement for FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
5165 (gnat_to_gnu_entity) <case ..., E_Procedure>: Use it.
5167 2010-08-21 Eric Botcazou <ebotcazou@adacore.com>
5169 * tracebak.c: Fix typo in comment.
5171 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
5173 * gcc-interface/decl.c: Use FOR_EACH_VEC_ELT.
5174 * gcc-interface/trans.c: Likewise.
5175 * gcc-interface/utils.c: Likewise.
5177 2010-08-18 Eric Botcazou <ebotcazou@adacore.com>
5179 * tracebak.c (i386): Use GCC unwinder on Linux with GCC > 4.5.
5181 2010-08-10 Robert Dewar <dewar@adacore.com>
5183 * sem_ch8.adb, sem_ch8.ads: Change name Write_Scopes to ws.
5184 * sem_util.adb: Minor reformatting.
5186 2010-08-10 Javier Miranda <miranda@adacore.com>
5188 * sem_aggr.adb (Resolve_Extension_Aggregate): Warn on the use of C++
5189 constructors that leave the object partially initialized.
5190 * exp_atag.ads, exp_atags.adb (Build_Inherit_CPP_Prims): New subprogram
5191 that copies from parent of Typ the dispatch table slots of inherited
5192 C++ primitives. It handles primary and secondary dispatch tables.
5193 * einfo.adb (Related_Type): Moved from Node26 to Node27. Required to
5194 use this attribute with E_Variable entities.
5195 (Set_Is_Tag): Relax assertion to allow its use with variables that
5197 (Set_Related_Type): Relax assertion to allow its use with variables
5198 that store the tag of a C++ class.
5199 (Write_26_Field_Name): Remove Related_Type.
5200 (Write_27_Field_Name): Add Related_Type.
5201 * einfo.ads (Related_Type): Moved from Node26 to Node27. Available also
5202 with E_Variable entities.
5203 * sem_prag.adb (CPP_Constructor): Warn on duplicated occurrence of this
5205 * sem_util.adb (Search_Tag): Add missing support for CPP types.
5206 (Enclosing_CPP_Parent): New subprogram.
5207 (Has_Suffix): New subprogram.
5208 * sem_util.ads (Enclosing_CPP_Parent): New subprogram that returns the
5209 closest ancestor of a type that is a C++ type.
5210 (Has_Suffix): New subprogram. Used in assertions to check the suffix of
5212 * sem_attr.adb (Analyze_Access_Attribute): Check wrong use of current
5213 instance in derivations of C++ types.
5214 * exp_tss.adb (CPP_Init_Proc): New subprogram.
5215 (Is_CPP_Init_Proc): New subprogram.
5216 (Set_TSS): Handle new C++ init routines.
5217 * exp_tss.ads (TSS_CPP_Init): New TSS name. For initialization of C++
5219 (CPP_Init_Proc): New subprogram.
5220 (Is_CPP_Init_Proc): New subprogram.
5221 * exp_disp.adb (CPP_Num_Prims): New subprogram.
5222 (Has_CPP_Constructors): New subprogram.
5223 (Make_Secondary_DT, Make_DT): For derivations of CPP types, do not
5224 initialize slots located in the C++ part of the dispatch table.
5225 (Make_Tags): For CPP types declare variables used by the IP routine to
5226 store the C++ tag values after the first invocation of the C++
5228 (Build_CPP_Init_DT): New subprogram.
5229 (Set_CPP_Constructors): New implementation that builds an IP for each
5230 CPP constructor. These IP are wrappers of the C++ constructors that,
5231 after the first invocation of the constructor, read the C++ tags from
5232 the object and save them locally. These copies of the C++ tags are used
5233 by the IC routines to initialize tables of Ada derivations of CPP
5235 (Write_DT): Indicate what primitives are imported from C++
5236 * exp_disp.ads (CPP_Num_Prims): New subprogram.
5237 (Has_CPP_Constructors): New subprogram.
5238 * exp_aggr.adb (Build_Record_Aggr_Code): For derivations of C++ types
5239 invoke the IC routine to inherit the slots of the parents.
5240 * sem_ch13.adb (Analyze_Freeze_Entity): Add new warnings on CPP types.
5241 * exp_ch3.adb (Is_Variable_Size_Array): New subprogram.
5242 (Is_Variable_Size_Record): Factorize code calling
5243 Is_Variable_Size_Array.
5244 (Build_CPP_Init_Procedure): New subprogram that builds the tree
5245 corresponding to the procedure that initializes the C++ part of the
5246 dispatch table of an Ada tagged type that is a derivation of a CPP
5248 (Build_Init_Procedure): Adding documentation plus code reorganization
5249 to leave more clear the construction of the IP with C++ types.
5250 (Expand_Freeze_Record_Type): Delay call to Set_CPP_Constructors because
5251 it cannot be called after Make_Tags has been invoked.
5252 (Inherit_CPP_Tag): Removed.
5253 (Init_Secondary_Tags): For derivations of CPP types, warn on tags
5254 located at variable offset.
5255 * freeze.ads: Minor reformating.
5256 * sem_ch8.adb (Write_Scopes): Add pragma export. Required to have it
5258 * gcc-interface/Make-lang.in: Update dependencies.
5260 2010-08-10 Robert Dewar <dewar@adacore.com>
5262 * a-chahan.ads: Add comments on handling of obsolescent entries.
5263 * opt.ads: Add Ada_2005 and Ada_2012 renamings for versions.
5264 * restrict.adb (Check_Obsolescent_2005_Entity): New procedure.
5265 * restrict.ads (Check_Obsolescent_2005_Entity): New procedure.
5266 * sem_attr.adb (Analyze_Access_Attribute): Call
5267 Check_Obsolescent_2005_Entity to check for access to obsolescent
5268 Ada.Characters.Handling subprogram.
5269 (Analyze_Attribute, case Class): Applying Class to untagged incomplete
5270 type is obsolescent in Ada 2005.
5271 (Analyze_Attribute, case Constrained): Better placement of flag when
5272 flagged as obsolescent feature.
5273 (Analyze_Attribute, case Storage_Size): Use with tasks is obsolescent
5274 * sem_ch10.adb (Analyze_With_Clause): With of renamings such as Text_IO
5275 is an obsolescent feature.
5276 * sem_ch11.adb (Analyze_Raise_Statement): Numeric_Error is obsolescent
5278 * sem_ch8.adb (Analyze_Subprogram_Renaming): Call
5279 Check_Obsolescent_2005_Entity to check for renaming obsolete
5280 Ada.Characters.Handling subprogram.
5281 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings): Check
5282 for obsolescent restrictions in Ada 2005.
5283 (Analyze_Pragma, case Suppress): Entity arg is obsolescent in Ada 2005
5284 (Analyze_Pragma, case Interface): Interface is obsolescent in Ada 2005
5285 * sem_res.adb (Resolve_Call): Call Check_Obsolescent_2005_Entity to
5286 check for obsolescent references to Ada.Characters.Handling subprograms
5288 2010-08-10 Robert Dewar <dewar@adacore.com>
5290 * einfo.adb, einfo.ads: Fix bad -gnatdt output for incomplete type.
5292 2010-08-10 Robert Dewar <dewar@adacore.com>
5294 * errout.ads: Add VMS table entries for 2005, 12, 2012 switches
5295 * par-ch4.adb: Change wording of Ada 2012 messages
5296 * vms_data.ads: Add VMS entries for /2005, /12, /2012
5298 2010-08-10 Robert Dewar <dewar@adacore.com>
5300 * a-suenco.adb (Convert): Fix bug in UTF-16 to UTF-8 conversion for
5301 codes in the range 16#80#..16#7FF#.
5302 * sem_ch10.adb: Minor reformatting.
5304 2010-08-10 Arnaud Charlet <charlet@adacore.com>
5306 * gnat1drv.adb (Scan_Front_End_Switches): Always perform semantics and
5307 generate ali files in CodePeer mode, so that a gnatmake -c -k will
5308 proceed further when possible
5309 * freeze.adb (Freeze_Static_Object): Fix thinko. Do not generate error
5310 messages when ignoring representation clauses (-gnatI).
5312 2010-08-10 Ed Schonberg <schonberg@adacore.com>
5314 * exp_ch4.adb (Expand_N_Selected_Component): Do not attempt to
5315 constant-fold discriminant reference if the constraint is an object
5316 with non-static expression. Expression may contain volatile references
5317 in the presence of renamings.
5319 2010-08-10 Vincent Celier <celier@adacore.com>
5321 * prj-proc.adb (Get_Attribute_Index): If Index is All_Other_Names,
5323 * prj-strt.adb (Attribute_Reference): Recognize 'others' as a valid
5324 index for an associative array where it is allowed.
5326 2010-08-10 Thomas Quinot <quinot@adacore.com>
5328 * exp_attr.adb: Add comments.
5330 2010-08-10 Jerome Lambourg <lambourg@adacore.com>
5332 * adaint.c (__gnat_get_file_names_case_sensitive): return 0 on darwin.
5334 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
5336 * gcc-interface/utils.c (gnat_poplevel): Use blocks_nreverse.
5338 2010-08-09 Eric Botcazou <ebotcazou@adacore.com>
5340 * gcc-interface/utils.c (build_vms_descriptor32): Fix formatting.
5341 (build_vms_descriptor): Likewise.
5343 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5345 * gcc-interface/utils.c (make_descriptor_field): Add tree parameter.
5346 (build_vms_descriptor32): Adjust calls to it for new parameter.
5347 (build_vms_descriptor): Likewise.
5349 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5351 * gcc-interface/decl.c (rec_variant): Declare. Declare a VEC of it.
5352 (build_variant_list): Take and return a VEC instead of a tree.
5353 (create_variant_part_from): Take a VEC instead of a tree for
5354 variant_list. Adjust accordingly.
5355 (gnat_to_gnu_entity): Adjust for changes to previous functions.
5357 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
5359 * gcc-interface/decl.c (gnat_to_gnu_entity): Use XALLOCAVEC instead
5361 (components_to_record): Likewise.
5362 * gcc-interface/trans.c (gnat_to_gnu): Likewise.
5363 * gcc-interface/utils.c (max_size): Likewise.
5364 (build_vms_descriptor32): Likewise.
5365 (build_vms_descriptor): Likewise.
5367 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
5369 * gcc-interface/decl.c (subst_pair): Declare. Declare a VEC of it.
5370 (build_subst_list): Return a VEC instead of a tree.
5371 (build_variant_list): Take a VEC for subst_list. Adjust
5373 (create_field_decl_from): Likewise.
5374 (create_variant_part_from): Likewise.
5375 (copy_and_substitute_in_size): Likewise.
5376 (gnat_to_gnu_entity): Adjust for new interface to build_subst_list.
5377 Free the built vector.
5379 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
5381 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not build an
5382 allocator for large imported objects.
5384 2010-08-05 Robert Dewar <dewar@adacore.com>
5386 * gnat1drv.adb: Minor reformatting.
5388 2010-08-05 Ed Schonberg <schonberg@adacore.com>
5390 * sem.adb (Do_Unit_And_Dependents): If some parent unit is an
5391 instantiation, process its body before the spec of the main unit,
5392 because it may contain subprograms invoked in the spec of main.
5393 * einfo.ads: Add documention of delayed freeze.
5395 2010-08-05 Vincent Celier <celier@adacore.com>
5397 * prj-nmsc.adb (Process_Linker): Take into account new values for
5398 attribute Response_File_Format.
5399 * prj.ads (Response_File_Format): New enumeration values GCC_GNU,
5400 GCC_Object_List and GCC_Option_List.
5402 2010-08-05 Ed Schonberg <schonberg@adacore.com>
5404 * exp_ch4.adb (Expand_N_Selected_Component): Do not constant-fold a
5405 selected component that denotes a discriminant if it is the
5406 discriminant of a component of an unconstrained record type.
5408 2010-08-05 Ed Schonberg <schonberg@adacore.com>
5410 * exp_util.adb (Insert_Actions): If the action appears within a
5411 conditional expression that is already analyzed, insert action further
5414 2010-08-05 Robert Dewar <dewar@adacore.com>
5416 * exp_ch4.adb: Minor reformatting.
5418 2010-08-05 Thomas Quinot <quinot@adacore.com>
5420 * exp_ch4.adb: Minor reformatting
5421 * gnat1drv.adb: Minor reformatting.
5422 Minor code reorganization (use Nkind_In).
5424 2010-08-05 Ed Schonberg <schonberg@adacore.com>
5426 * exp_util.ads, exp_util.adb (Needs_Constant_Address): New predicate to
5427 determine whether the expression in an address clause for an
5428 initialized object must be constant. Code moved from freeze.adb.
5429 (Remove_Side_Effects): When the temporary is initialized with a
5430 reference, indicate that the temporary is a constant as done in all
5432 * freeze.adb (Check_Address_Clause): use Needs_Constant_Address.
5433 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
5434 If object does not need a constant address, remove side effects from
5435 address expression, so it is elaborated at the point of the address
5436 clause and not at the freeze point of the object, so that elaboration
5439 2010-08-05 Vincent Celier <celier@adacore.com>
5441 * prj.adb (Is_Compilable): Return False for header files of non Ada
5444 2010-08-05 Emmanuel Briot <briot@adacore.com>
5446 * prj-nmsc.adb: The Missing_Source_Files flag also considers a missing
5447 exec directory as a warning rather than an error.
5449 2010-08-05 Thomas Quinot <quinot@adacore.com>
5451 * sem_ch6.adb, gnat1drv.adb, exp_ch6.adb, sem_eval.adb: Minor
5454 2010-08-05 Steve Baird <baird@adacore.com>
5456 * exp_util.adb (Remove_Side_Effects): An access value which designates
5457 a volatile object of a nonvolatile type is prohibited.
5458 Do not call Make_Reference to construct a reference to such an object.
5460 2010-08-05 Robert Dewar <dewar@adacore.com>
5462 * a-suezse.adb, a-suezse.ads, a-suezen.adb, a-suezen.ads: Removed.
5463 * a-suewse.adb, a-suewse.ads, a-suesen.adb, a-suesen.ads,
5464 a-suewen.adb, a-suewen.ads: New files.
5465 * Makefile.rtl, impunit.adb: Update implementation of Ada 2012 string
5467 * sem_elab.adb: Minor reformatting.
5469 2010-08-05 Arnaud Charlet <charlet@adacore.com>
5471 * sem_ch8.adb (Use_One_Type): Protect against empty scopes.
5472 * exp_util.adb (Component_May_Be_Bit_Aligned): Prevent assert failure
5473 in case of null Comp.
5475 2010-08-05 Robert Dewar <dewar@adacore.com>
5477 * errout.adb, a-suewen.adb, a-suezen.adb: Minor reformatting.
5479 2010-08-05 Gary Dismukes <dismukes@adacore.com>
5481 * sem_ch4.adb (Analyze_Allocator): Flag errors on allocators of a
5482 nested access type whose designated type has tasks or is a protected
5483 object when the restrictions No_Task_Hierarchy or
5484 No_Local_Protected_Objects apply. Add ??? comment.
5485 * sem_ch9.adb (Analyze_Protected_Type): Give a warning when a protected
5486 type is not a library-level type and No_Local_Protected_Objects applies.
5487 (Analyze_Task_Type): Give a warning when a task type is not a
5488 library-level type and No_Task_Hierarchy applies.
5490 2010-08-05 Arnaud Charlet <charlet@adacore.com>
5492 * sem.adb: Minor reformatting
5493 * sem_ch4.adb (Analyze_Reference): Disable error message in CodePeer
5496 2010-08-04 Eric Botcazou <ebotcazou@adacore.com>
5498 * gcc-interface/decl.c: Do not undefine IN_GCC_FRONTEND and do not
5500 (gnat_to_gnu_entity) <object>: Force address of -1 at the tree level
5501 for the debug-only entity.
5502 * gcc-interface/Make-lang.in (ada/decl.o): Adjust dependencies.
5504 2010-08-03 Joseph Myers <joseph@codesourcery.com>
5506 * gcc-interface/lang-specs.h: Don't pass -a options.
5508 2010-07-28 Joseph Myers <joseph@codesourcery.com>
5510 * gcc-interface/misc.c (gnat_init_options): Ignore erroneous
5511 options. Check canonical_option_num_elements on options copied.
5513 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5515 * gcc-interface/misc.c (gnat_handle_option): Update prototype and
5516 return value type. Don't check for missing arguments here.
5518 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5520 * gcc-interface/misc.c (gnat_option_lang_mask): New.
5521 (gnat_init_options): Update prototype. Reconstruct argv array
5522 from decoded options.
5524 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
5526 * gcc-interface/utils.c (update_pointer_to): In the unconstrained array
5527 case, merge the alias set of the old pointer type.
5529 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
5531 * gcc-interface/utils.c (gnat_types_compatible_p): Revert latest change
5532 and recurse only for multidimensional array types instead.
5534 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
5537 * gcc-interface/utils.c (convert): Fix thinko in test.
5538 (unchecked_convert): When converting from a scalar type to a type with
5539 a different size, pad to have the same size on both sides.
5541 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
5543 * gcc-interface/utils.c (gnat_types_compatible_p): Don't require strict
5544 equality for the component type of array types.
5546 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
5548 * gcc-interface/decl.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
5549 * gcc-interface/trans.c: Likewise.
5550 * gcc-interface/utils.c: Likewise.
5551 * gcc-interface/utils2.c: Likewise.
5553 2010-07-13 Laurent GUERBY <laurent@guerby.net>
5556 * gcc-interface/targtyps.c: Include tm_p.h.
5557 * gcc-interface/Make-lang.in: Update dependencies.
5559 2010-07-09 Eric Botcazou <ebotcazou@adacore.com>
5561 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Deal with
5564 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5566 * gcc-interface/utils.c: Include diagnostic-core.h in every file
5567 that includes toplev.h.
5569 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
5571 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>:
5572 Branch to common code handling the alignment of discrete types.
5573 <E_Signed_Integer_Type>: Likewise.
5574 <E_Modular_Integer_Type>: Likewise.
5576 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
5578 * gcc-interface/misc.c (gnat_handle_option): Do not populate gnat_argv.
5579 (gnat_handle_option): Allocate only one element for gnat_argv.
5580 (gnat_init): Do not populate gnat_argv.
5582 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5584 * gcc-interface/trans.c: Do not include tree-flow.h.
5585 * gcc-interface/Make-lang.in: Adjust dependencies.
5587 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
5589 * gcc-interface/gigi.h (gnat_build_constructor): Take a VEC instead
5590 of a TREE_LIST. Update comment.
5591 * gcc-interface/trans.c (gigi): Build a VEC instead of a TREE_LIST.
5592 Adjust call to gnat_build_constructor.
5593 (Attribute_to_gnu): Likewise.
5594 (gnat_to_gnu): Likewise.
5595 (pos_to_constructor): Likewise.
5596 (extract_values): Likewise.
5597 * gcc-interface/utils.c (build_template): Likewise.
5598 (convert_vms_descriptor64): Likewise.
5599 (convert_vms_descriptor32): Likewise.
5600 (convert_to_fat_pointer): Likewise.
5601 (convert): Likewise.
5602 (unchecked_convert): Likewise.
5603 * gcc-interface/decl.c (gnat_to_gnu_entity): Likewise.
5604 * gcc-interface/utils2.c (build_allocator): Likewise.
5605 (fill_vms_descriptor): Likewise.
5606 (gnat_build_constructor): Take a VEC instead of a TREE_LIST.
5607 (compare_elmt_bitpos): Adjust for parameters being constructor_elts
5608 instead of TREE_LISTs.
5610 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
5612 * gcc-interface/misc.c: Do not include except.h.
5613 * gcc-interface/Make-lang.in: Update dependencies.
5615 2010-06-27 Eric Botcazou <ebotcazou@adacore.com>
5617 * gcc-interface/trans.c: Include tree-flow.h.
5618 (gnu_switch_label_stack): Delete.
5619 (Case_Statement_to_gnu): Do not emit the goto at the end of a case if
5620 its associated block cannot fall through. Do not emit the final label
5621 if no cases branch to it.
5622 * gcc-interface/Make-lang.in (ada/trans.o): Add $(TREE_FLOW_H).
5624 2010-06-23 Thomas Quinot <quinot@adacore.com>
5626 * exp_attr.adb (Expand_Access_To_Protected_Op): When rewriting a
5627 reference to a protected subprogram outside of the protected's scope,
5628 ensure the corresponding external subprogram is frozen before the
5631 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5633 * sem_prag.adb: Fix typo in error message.
5634 * sem.adb: Refine previous change.
5636 2010-06-23 Robert Dewar <dewar@adacore.com>
5638 * impunit.adb, a-suewen.adb, a-suewen.ads, a-suenco.adb, a-suenco.ads,
5639 a-suezen.adb, a-suezen.ads, a-stuten.adb, a-stuten.ads, Makefile.rtl:
5640 Implement Ada 2012 string encoding packages.
5642 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5644 * a-stwiun-shared.adb, a-stwiun-shared.ads, a-stzunb-shared.adb,
5645 a-stzunb-shared.ads, a-swunau-shared.adb, a-swuwti-shared.adb,
5646 a-szunau-shared.adb, a-szuzti-shared.adb, a-strunb-shared.adb,
5647 a-strunb-shared.ads, a-stunau-shared.adb, a-suteio-shared.adb: New
5649 * gcc-interface/Makefile.in: Enable use of above files.
5651 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5653 * sem_ch13.adb (Check_Constant_Address_Clauses): Do not check legality
5654 of address clauses if if Ignore_Rep_Clauses is active.
5655 * freeze.adb (Check_Address_Clause): If Ignore_Rep_Clauses is active,
5656 remove address clause from tree so that it does not reach the backend.
5658 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5660 * exp_attr.adb (Expand_N_Attribute_Reference [Attribute_Valid]): Do not
5661 expand 'Valid from user code in CodePeer mode, will be handled by the
5664 2010-06-23 Bob Duff <duff@adacore.com>
5666 * g-comlin.ads: Minor comment improvements.
5668 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5670 * sem_res.adb (Uses_SS): The expression that initializes a controlled
5671 component of a record type may be a user-defined operator that is
5672 rewritten as a function call.
5674 2010-06-23 Bob Duff <duff@adacore.com>
5676 * g-comlin.ads, sem_ch13.adb: Minor comment fix.
5678 2010-06-23 Eric Botcazou <ebotcazou@adacore.com>
5680 * exp_ch11.adb (Expand_Local_Exception_Handlers): Propagate the end
5681 label to the new sequence of statements. Set the sloc of the raise
5682 statement onto the new goto statements.
5684 2010-06-23 Robert Dewar <dewar@adacore.com>
5686 * a-stuten.ads, a-stuten.adb: New files.
5687 * impunit.adb: Add engtry for Ada.Strings.UTF_Encoding (a-stuten.ads)
5688 * Makefile.rtl: Add entry for a-stuten (Ada.Strings.UTF_Encoding)
5690 2010-06-23 Robert Dewar <dewar@adacore.com>
5692 * gnat_ugn.texi: Add documentation of -gnat12 switch
5693 Add documentation of -gnatX switch.
5695 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5697 * inline.ads: Include the current Ada_Version in the info for pending
5698 instance bodies, so that declaration and body are compiled with the
5700 * inline.adb: Move with_clause for Opt to spec.
5701 * sem_ch12.adb (Analyze_Package_Instantiation,
5702 Analyze_Subprogram_Instantiation): Save current Ada_Version in
5703 Pending_Instantiation information.
5704 (Instantiate_Package_Body, Instantiate_Subprogram_Body,
5705 Inline_Package_Body): Use the Ada_Version present in the body
5708 2010-06-23 Robert Dewar <dewar@adacore.com>
5710 * usage.adb: Add documentation for -gnat12 switch.
5711 * errout.ads: Add VMS alias entry for -gnat12 switch
5712 * gnat_rm.texi: Add documentation for pragma Ada_12 and Ada_2012
5713 Add documentation for pragma Extensions_Allowed.
5714 * opt.ads: Add entry for Ada 2012 mode.
5715 * sem_ch4.adb, par-ch3.adb, par-ch4.adb: Use new Ada 2012 mode for 2012
5717 * sem_prag.adb, par-prag.adb: Add processing for pragma Ada_12 and
5719 * sem_ch13.adb: Add handling for Ada 2012 mode.
5720 * snames.ads-tmpl: Add entries for pragma Ada_2012 and Ada_12.
5721 * switch-c.adb: Add handling for -gnat12 switch.
5722 Implement -gnat2005 and -gnat2012.
5723 * usage.adb: Add documentation for -gnat12 switch.
5724 * vms_data.ads: Add /12 switch for Ada 2012 mode.
5726 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5728 * exp_ch4.adb (Expand_N_Allocator): Fix potential crash when using
5729 No_Task_Hierarchy restriction. Add comment.
5730 * exp_ch9.adb, exp_ch3.adb: Update comments.
5732 2010-06-23 Robert Dewar <dewar@adacore.com>
5734 * sem_ch5.adb (Process_Bounds): Remove some junk initializations.
5735 * sem_res.adb: Add comments.
5736 * sem_util.adb: Minor reformatting. Add comments.
5737 Change increment on Actuals_In_Call table.
5738 * opt.ads: Minor: add 'constant'.
5740 2010-06-23 Javier Miranda <miranda@adacore.com>
5742 * exp_disp.adb (Make_DT): Initialize the Size_Func component of the
5743 TSD to Null_Address if No_Dispatching_Calls is active.
5745 2010-06-23 Vincent Celier <celier@adacore.com>
5747 * a-comlin.ads: Indicate that use of this package is not supported
5748 during the elaboration of an auto-initialized Stand-Alone Library.
5750 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5752 * exp_util.adb (Is_Possibly_Misaligned_Object): Do not rely on an
5753 alignment clause on a record type to determine if a component may be
5754 misaligned. The decision must be taken in the back-end where target
5755 alignment information is known.
5757 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5759 * gnat1drv.adb (Adjust_Global_Switches): Enable some restrictions
5760 systematically in CodePeer mode to simplify generated code.
5761 * restrict.adb (Check_Restriction): Do nothing in CodePeer mode.
5762 * exp_ch4.adb (Expand_N_Allocator): Generate proper code when
5763 No_Task_Hierarchy is set instead of crasshing.
5765 2010-06-23 Thomas Quinot <quinot@adacore.com>
5767 * sem_util.adb: Minor code cleanup: test for proper entity instead of
5768 testing just Chars attribute when checking whether a given scope is
5770 * exp_ch4.adb, einfo.adb: Minor reformatting.
5772 2010-06-23 Vincent Celier <celier@adacore.com>
5775 * switch-m.adb (Normalize_Compiler_Switches): Take into account
5776 switches -gnatB, -gnatD=nn, -gnatG (incuding -gnatG=nn), -gnatI,
5777 -gnatl=file, -gnatS, -gnatjnn, -gnateI=nn and -gnatWx.
5779 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5781 * sem_res.adb (Resolve_Membership_Op): If left operand is a mixed mode
5782 operation with a universal real operand, and the right operand is a
5783 range with universal bounds, find unique fixed point that may be
5784 candidate, and warn appropriately.
5786 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5788 * sem_res.adb (Resolve_Intrinsic_Operator): Add guards to handle
5789 properly the rare cases where VMS operators are visible through
5790 Extend_System, but the default System is being used and Address is a
5792 * sem_util.adb: Widen predicate Is_VMS_Operator.
5794 2010-06-23 Vincent Celier <celier@adacore.com>
5796 * switch-m.adb (Normalize_Compiler_Switches): Take into account -gnatC
5799 2010-06-23 Olivier Hainque <hainque@adacore.com>
5801 * einfo.adb (Has_Foreign_Convention): Consider Intrinsic with
5802 Interface_Name as foreign. These are GCC builtin imports for
5803 which Ada specific processing doesn't apply.
5805 2010-06-23 Thomas Quinot <quinot@adacore.com>
5807 * sem_ch12.adb: Minor reformatting.
5809 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5811 * sem_util.adb (Is_VMS_Operator): Use scope of system extension to
5812 determine whether an intrinsic subprogram is VMS specific.
5814 2010-06-23 Hristian Kirtchev <kirtchev@adacore.com>
5816 * treepr.adb (Print_Entity_Info): Output the contents of Field28 if it
5817 is present in the entity.
5819 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5821 * xr_tabls.adb, xref_lib.adb: Update to latest lib-xref.ads
5822 Fix handling of parameters.
5823 Add protection against unexpected cases.
5824 * sem_ch6.adb (Create_Extra_Formals): Use suffix "L" instead of "A" for
5825 access level, since "A" suffix is already used elsewhere. Similarly,
5826 use suffix "O" instead of "C" for 'Constrained since "C" suffix is used
5829 2010-06-23 Thomas Quinot <quinot@adacore.com>
5831 * sem_util.adb, sem_util.ads: Minor reformatting.
5833 2010-06-23 Vincent Celier <celier@adacore.com>
5835 * prj.ads (Gprclean_Flags.Missing_Source_Files): Set to Error to keep
5836 the previous behavior of gprclean when there are missing files.
5838 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5840 * sem_ch12.adb (Load_Body_Of_Generic): In CodePeer mode, a missing
5841 generic body is not a fatal error.
5842 (Mark_Context): Handle properly names of child units.
5843 * sem.adb (Walk_Library_Items.Do_Action): Remove assertion on
5846 2010-06-23 Vincent Celier <celier@adacore.com>
5848 * ali.adb (Scan_ALI): When ignoring R lines, do not skip the next
5851 2010-06-23 Bob Duff <duff@adacore.com>
5853 * g-pehage.ads, g-pehage.adb: Switch default optimization mode to
5854 Memory_Space, because CPU_Time doesn't seem to provide any significant
5855 speed advantage in practice. Cleanup: Get rid of constant
5856 Default_Optimization; doesn't seem to add anything. Use case
5857 statements instead of if statements; seems cleaner.
5859 2010-06-23 Olivier Hainque <hainque@adacore.com>
5861 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Procedure>: Use
5862 Wshadow instead of Wextra to guard warning on absence of internal
5863 builtin decl for an import. Fix use of quote in warning text.
5864 (intrin_arglists_compatible_p): Remove processing of integer trailing
5865 args on the Ada side. Fix use of literal > in warning text.
5866 (intrin_return_compatible_p): Never warn on "function imported as
5867 procedure". Defer the void/void case to the common type compatibility
5869 (gnat_to_gnu_param): Use void_ptr GCC type for System.Address argument
5870 of GCC builtin imports.
5872 2010-06-23 Olivier Hainque <hainque@adacore.com>
5874 * gcc-interface/decl.c (intrin_types_incompatible_p): New function,
5876 (intrin_arglists_compatible_p, intrin_return_compatible_p): New
5877 functions, helpers for ...
5878 (intrin_profiles_compatible_p): New function, replacement for ...
5879 (compatible_signatures_p): Removed.
5880 (gnat_to_gnu_entity) <case E_Procedure>: If -Wextra, warn on
5881 attempt to bind an unregistered builtin function. When we have
5882 one, use it and warn on profile incompatibilities.
5884 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5886 * gcc-interface/Make-lang.in: Update dependencies.
5888 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5890 * sem_util.adb (Mark_Coextensions): If the expression in the allocator
5891 for a coextension in an object declaration is a concatenation, treat
5892 coextension as dynamic.
5894 2010-06-23 Javier Miranda <miranda@adacore.com>
5896 * sem_ch3.adb (Add_Internal_Interface_Entities): Ensure that the
5897 internal entities are added to the scope of the tagged type.
5898 (Derive_Subprograms): Do not stop derivation when we find the first
5899 internal entity that has attribute Interface_Alias. After the change
5900 done to Override_Dispatching_Operations it is no longer true that
5901 these primirives are always located at the end of the list of
5903 * einfo.ads (Primitive_Operations): Add documentation.
5904 * exp_disp.adb (Write_DT): Improve output adding to the name of the
5905 primitive a prefix indicating its corresponding tagged type.
5906 * sem_disp.adb (Override_Dispatching_Operations): If the overridden
5907 entity covers the primitive of an interface that is not an ancestor of
5908 this tagged type then the new primitive is added at the end of the list
5909 of primitives. Required to fulfill the C++ ABI.
5911 2010-06-23 Javier Miranda <miranda@adacore.com>
5913 * atree.ads (Set_Reporting_Proc): New subprogram.
5914 * atree.adb: Remove dependency on packages Opt and SCIL_LL.
5915 (Allocate_Initialize_Node, Replace, Rewrite): Replace direct calls
5916 to routines of package Scil_ll by indirect call to the registered
5918 (Set_Reporting_Proc): New subprogram. Used to register a subprogram
5919 that is invoked when a node is allocated, replaced or rewritten.
5920 * scil_ll.adb (Copy_SCIL_Node): New routine that takes care of copying
5921 the SCIL node. Used as argument for Set_Reporting_Proc.
5922 (Initialize): Register Copy_SCIL_Node as the reporting routine that
5923 is invoked by atree.
5925 2010-06-23 Thomas Quinot <quinot@adacore.com>
5927 * sem_ch3.ads: Minor reformatting.
5929 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5931 * sem_ch12.adb (Analyze_Package_Instantiation): In CodePeer mode,
5932 always analyze the generic body and instance, because it may be needed
5934 (Mark_Context): Prepend the with clauses for needed generic units, so
5935 they appear in a better order for CodePeer.
5936 * sem_util.adb, sem_util.ads: Prototype code for AI05-0144.
5938 2010-06-23 Emmanuel Briot <briot@adacore.com>
5940 * prj.ads, prj-nmsc.adb (Error_Or_Warning): New subprogram.
5942 2010-06-23 Robert Dewar <dewar@adacore.com>
5944 * g-pehage.adb, exp_ch13.adb: Minor reformatting.
5946 2010-06-23 Thomas Quinot <quinot@adacore.com>
5948 * a-tags.ads: Fix description of TSD structure.
5950 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5952 * sem_ch12.adb (Mark_Context): When indicating that the body of a
5953 generic unit is needed prior to the unit containing an instantiation,
5954 search recursively the context of the generic to add other generic
5955 bodies that may be instantiated indirectly through the current instance.
5957 2010-06-23 Robert Dewar <dewar@adacore.com>
5959 * freeze.adb: Minor reformatting.
5961 2010-06-23 Bob Duff <duff@adacore.com>
5963 * g-pehage.adb (Trim_Trailing_Nuls): Fix the code to match the comment.
5965 2010-06-23 Vincent Celier <celier@adacore.com>
5967 * make.adb (Compile_Sources): Complete previous change.
5969 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5971 * sem_ch6.adb (Add_Extra_Formal): Use suffix "C" in the name of the
5972 Constrained extra formal.
5974 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5976 * exp_ch13.adb (Expand_Freeze_Actions): If validity checks and
5977 Initialize_Scalars are enabled, compile the generated equality function
5978 for a composite type with full checks enabled, so that validity checks
5979 are performed on individual components.
5981 2010-06-23 Emmanuel Briot <briot@adacore.com>
5983 * prj.adb, prj.ads, prj-nmsc.adb (Processing_Flags): New flag
5984 Missing_Source_Files.
5986 2010-06-23 Robert Dewar <dewar@adacore.com>
5988 * exp_ch3.adb, exp_util.adb: Minor reformatting.
5990 2010-06-23 Jose Ruiz <ruiz@adacore.com>
5992 * a-reatim.adb, a-retide.adb: Move the initialization of the tasking
5993 run time from Ada.Real_Time.Delays to Ada.Real_Time. This way, calls to
5994 Clock (without delays) use a run time which is properly initialized.
5996 2010-06-23 Vincent Celier <celier@adacore.com>
5998 * make.adb: Do not set Check_Readonly_Files when setting Must_Compile,
5999 when -f -u and a main is specified on the command line. However,
6000 attempt to compile even when the ALI file is read-only when
6001 Must_Compile is True.
6003 2010-06-23 Thomas Quinot <quinot@adacore.com>
6005 * checks.adb, g-pehage.adb, cstand.adb: Minor code factorization.
6007 2010-06-23 Javier Miranda <miranda@adacore.com>
6009 * sem_ch3.adb (Add_Internal_Interface_Entities): Generate internal
6010 entities for parent types that are interfaces. Needed in generics to
6011 handle formals that implement interfaces.
6012 (Derive_Subprograms): Add assertion for derivation of tagged types that
6013 do not cover interfaces. For generics, complete code that handles
6014 derivation of type that covers interfaces because the previous
6015 condition was weak (it required only name consistency; arguments were
6016 not checked). Add new code to locate primitives covering interfaces
6017 defined in generic units or instantiatons.
6018 * sem_util.adb (Has_Interfaces): Add missing support for derived types.
6019 * sem_ch6.adb (Check_Overriding_Indicator): Minor code cleanups.
6020 * exp_disp.adb (Make_Select_Specific_Data_Table): Skip primitives of
6021 interfaces that are parents of the type because they share the primary
6023 (Register_Primitive): Do not register primitives of interfaces that
6024 are parents of the type.
6025 * sem_ch13.adb (Analyze_Freeze_Entity): Add documentation.
6026 * exp_cg.adb (Write_Type_Info): When displaying overriding of interface
6027 primitives skip primitives of interfaces that are parents of the type.
6029 2010-06-23 Ed Schonberg <schonberg@adacore.com>
6031 * sem_attr.adb (Eval_Attribute): If the prefix is an array, the
6032 attribute cannot be constant-folded if an index type is a formal type,
6033 or is derived from one.
6034 * checks.adb (Determine_Range): ditto.
6036 2010-06-23 Arnaud Charlet <charlet@adacore.com>
6038 * gnat_ugn.texi, gnatxref.adb: Add support for --ext switch.
6040 2010-06-23 Bob Duff <duff@adacore.com>
6042 * g-pehage.ads, g-pehage.adb (Put): Fix off-by-one bug.
6043 (Insert): Disallow nul characters.
6044 (misc output routines): Assert no nul characters.
6046 2010-06-23 Ed Schonberg <schonberg@adacore.com>
6048 * exp_ch4.adb: Use predefined unsigned type in all cases.
6050 2010-06-23 Bob Duff <duff@adacore.com>
6052 * s-rannum.adb (Reset): Avoid overflow in calculation of Initiator.
6053 * g-pehage.ads: Minor comment fixes.
6054 * g-pehage.adb: Minor: Add some additional debugging printouts under
6057 2010-06-23 Robert Dewar <dewar@adacore.com>
6059 * binde.adb (Better_Choice): Always prefer Pure/Preelab.
6060 (Worse_Choice): Always prefer Pure/Preelab.
6062 2010-06-23 Vincent Celier <celier@adacore.com>
6064 * a-reatim.adb: Call System.OS_Primitives.Initialize during elaboration
6066 2010-06-23 Robert Dewar <dewar@adacore.com>
6068 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Properly handle
6069 checking returns in generic case.
6070 (Check_Missing_Return): New procedure.
6072 2010-06-23 Robert Dewar <dewar@adacore.com>
6074 * bindgen.adb, switch-b.adb: Minor reformatting.
6076 2010-06-23 Javier Miranda <miranda@adacore.com>
6078 * frontend.adb (Frontend): Add call to initialize the new package
6080 * exp_ch7.adb (Wrap_Transient_Expression): Remove call to
6082 (Wrap_Transient_Statement): Remove call to Adjust_SCIL_Node.
6083 * sem_ch5.adb (Analyze_Iteration_Scheme.Process_Bounds): Remove call to
6085 * exp_util.adb (Insert_Actions): Remove code for
6086 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
6087 (Remove_Side_Effects): Remove calls to Adjust_SCIL_Node.
6088 * sinfo.adb (SCIL_Entity, SCIL_Tag_Value): Remove checks on
6089 N_SCIL_Tag_Init and N_SCIL_Dispatch_Table_Object_Init in the assertion.
6090 (SCIL_Related_Node, Set_SCIL_Related_Node): Removed.
6091 * sinfo.ads (SCIL_Related_Node): Field removed.
6092 (N_SCIL_Dispatch_Table_Object_Init): Node removed.
6093 (N_SCIL_Tag_Init): Node removed.
6094 * sem_scil.ads, sem_scil.adb (Adjust_SCIL_Node): Removed.
6095 (Check_SCIL_Node): New implementation.
6096 (Find_SCIL_Node): Removed.
6097 * sem.adb (Analyze): Remove management of
6098 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
6099 * sem_util.adb (Insert_Explicit_Dereference): Remove call to
6101 * exp_ch4.adb (Expand_N_In): Code cleanup: remove call to
6102 Set_SCIL_Related_Node and avoid adding the SCIL node before the
6103 referenced node using Insert_Action because this is not longer
6105 (Expand_Short_Circuit_Operator): Remove call to SCIL node.
6106 * exp_ch6.adb (Expand_Call): Remove call to Adjust_SCIL_Node.
6107 * sem_ch4.adb (Analyze_Type_Conversion): Remove call to
6109 * exp_disp.adb (Expand_Dispatching_Call): Minor code reorganization
6110 because we no longer require to generate the SCIL node before the call.
6111 (Make_DT): Remove generation of SCI_Dispatch_Table_Object_Init node.
6112 Remove calls to Set_SCIL_Related_Node and avoid adding the SCIL
6113 nodes before the referenced node using Insert_Action because this
6114 is not longer required.
6115 * atree.adb (Allocate_Initialize_Node, Replace, Rewrite): Add call to
6116 update the SCIL_Node field.
6117 * sprint.adb (Sprint_Node_Actual): Remove code for
6118 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
6119 * treepr.adb (Print_Node): Print the SCIL node field (if available).
6120 * exp_ch3.adb (Build_Init_Procedure): Remove generation of
6121 SCIL_Tag_Init nodes.
6122 * scil_ll.ads, scil_ll.adb: New files.
6123 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
6126 2010-06-23 Robert Dewar <dewar@adacore.com>
6128 * sem_ch6.adb: Minor reformatting.
6130 2010-06-23 Doug Rupp <rupp@adacore.com>
6132 * bindusg.adb (Display): Write -Hnn line.
6133 * bindgen.adb (Gen_Adainit_Ada): Write Heap_Size to binder file as
6135 * init.c (__gl_heap_size): Rename from __gl_no_malloc_64 and change
6136 valid values to 32 and 64.
6137 (GNAT$NO_MALLOC_64): Recognize TRUE, 1, FALSE, and 0 in addition to
6138 ENABLE, DISABLE as valid settings.
6139 * switch-b.adb (Scan_Binder_Switches): Process -Hnn switch.
6140 * opt.ads (Heap_Size): New global variable.
6141 * gcc-interface/utils2.c (maybe_wrap_malloc): Remove mostly redundant
6142 TARGET_MALLOC64 check. Fix comment.
6144 2010-06-23 Robert Dewar <dewar@adacore.com>
6146 * sem_ch6.adb, exp_ch4.adb, s-rannum.ads, sem.adb, sem_ch12.adb: Minor
6147 reformatting. Add comments.
6148 * errout.adb (Finalize): Properly adjust warning count when deleting
6151 2010-06-22 Robert Dewar <dewar@adacore.com>
6153 * errout.adb (Finalize): Set Prev pointers.
6154 (Finalize): Delete continuations for deletion by warnings off(str).
6155 * erroutc.ads: Add Prev pointer to error message structure.
6157 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6159 * sem.adb (Do_Unit_And_Dependents): If the spec of the main unit is a
6160 child unit, examine context of parent units to locate instantiated
6161 generics whose bodies may be needed.
6162 * sem_ch12.adb: (Mark_Context): if the enclosing unit does not have a
6163 with_clause for the instantiated generic, examine the context of its
6164 parents, to set Withed_Body flag, so that it can be visited earlier.
6165 * exp_ch4.adb (Expand_N_Op_Not): If this is a VMS operator applied to
6166 an unsigned type, use a type of the proper size for the intermediate
6167 value, to prevent alignment problems on unchecked conversion.
6169 2010-06-22 Geert Bosch <bosch@adacore.com>
6171 * s-rannum.ads Change Generator type to be self-referential to allow
6172 Random to update its argument. Use "in" mode for the generator in the
6173 Reset procedures to allow them to be called from the Ada.Numerics
6174 packages without tricks.
6175 * s-rannum.adb: Use the self-referencing argument to get write access
6176 to the internal state of the random generator.
6177 * a-nudira.ads: Make Generator a derived type of
6178 System.Random_Numbers.Generator.
6179 * a-nudira.adb: Remove use of 'Unrestricted_Access.
6180 Put subprograms in alpha order and add headers.
6181 * g-mbdira.ads: Change Generator type to be self-referential.
6182 * g-mbdira.adb: Remove use of 'Unrestricted_Access.
6184 2010-06-22 Robert Dewar <dewar@adacore.com>
6186 * freeze.adb: Minor reformatting
6187 Minor code reorganization (use Nkind_In and Ekind_In).
6189 2010-06-22 Bob Duff <duff@adacore.com>
6191 * gnat1drv.adb (Gnat1drv): Remove the messages that recommend using
6192 -gnatc when a file is compiled that we cannot generate code for, not
6193 helpful and confusing.
6195 2010-06-22 Vincent Celier <celier@adacore.com>
6197 * switch-m.adb (Normalize_Compiler_Switches): Process correctly
6200 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6202 * s-rannum.adb: Replace constants with commented symbols.
6203 * s-rannum.ads: Explain significance of the initial value of the data
6206 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6208 * a-ngcoty.adb: Clarify comment.
6210 2010-06-22 Gary Dismukes <dismukes@adacore.com>
6212 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Return without
6213 expansion for indexing packed arrays with small power-of-2 component
6214 sizes when the target is AAMP.
6215 (Expand_Packed_Element_Reference): Return without expansion for
6216 indexing packed arrays with small power-of-2 component sizes when the
6219 2010-06-22 Geert Bosch <bosch@adacore.com>
6221 * exp_ch4.adb (Expand_N_In): Do not substitute a valid check for X in
6224 2010-06-22 Robert Dewar <dewar@adacore.com>
6226 * g-mbdira.adb, g-mbflra.adb, a-nuflra.adb, a-nudira.adb: Minor comment
6229 2010-06-22 Doug Rupp <rupp@adacore.com>
6231 * system-vms.ads, system-vms-zcx.ads: Remove old unused VMS system
6233 * system-vms_64.ads, system-vms-ia64.ads: Minor reformatting.
6234 (pragma Ident): Add a default ident string in the private part.
6236 2010-06-22 Robert Dewar <dewar@adacore.com>
6238 * cstand.adb: Minor reformatting.
6240 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6242 * freeze.adb (Build_And_Analyze_Renamed_Body): For expansion purposes,
6243 recognize the Shift and Rotation intrinsics that are known to the
6244 compiler but have no interface name.
6246 2010-06-22 Geert Bosch <bosch@adacore.com>
6248 * a-ngcoty.adb ("*"): Rewrite complex multiplication to use proper
6249 scaling in case of overflow or NaN results.
6251 2010-06-22 Robert Dewar <dewar@adacore.com>
6253 * cstand.adb: Complete previous change.
6254 * g-dirope.ads: Add comment.
6255 * s-stchop.adb, sfn_scan.adb: Minor reformatting.
6257 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6259 * cstand.adb: Add tree nodes for pragma Pack on string types.
6261 2010-06-22 Javier Miranda <miranda@adacore.com>
6263 * einfo.ads, einfo.adb (Last_Formal): New synthesized attribute.
6264 * exp_util.adb (Find_Prim_Op): Use new attribute to locate the last
6265 formal of a primitive.
6266 * exp_disp.adb (Is_Predefined_Dispatching_Operation,
6267 Is_Predefined_Dispatching_Alias): Use new attribute to locate the last
6268 formal of a primitive.
6269 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Use new attribute
6270 to obtain the last formal of a primitive.
6272 2010-06-22 Geert Bosch <bosch@adacore.com>
6274 * sysdep.c, init.c, adaint.c, cstreams.c: Remove conditional code
6275 depending on __EMX__ or MSDOS being defined.
6276 * i-cstrea.ads, gnat_rm.texi: Remove mentions of OS/2, DOS and Xenix.
6277 * a-excpol-abort.adb: Update comment indicating users of the file.
6278 * xref_lib.adb, sfn_scan.adb: Remove mention of OS/2, replace NT by
6280 * env.c: Remove empty conditional for MSDOS.
6281 * s-stchop.adb, g-dirope.ads, s-fileio.adb, osint.ads: Remove mention
6284 2010-06-22 Robert Dewar <dewar@adacore.com>
6286 * s-rannum.adb: Minor reformatting.
6288 2010-06-22 Javier Miranda <miranda@adacore.com>
6290 * sem_aux.adb, sem_aux.ads, sem_util.adb, sem_util.ads, sem_elim.adb,
6291 exp_cg.adb: Minor code reorganization: Move routine Ultimate_Alias from
6292 package Sem_Util to package Sem_Aux.
6294 2010-06-22 Javier Miranda <miranda@adacore.com>
6296 * exp_disp.adb (Make_Secondary_DT, Make_DT): Minor code cleanup:
6297 remove useless restriction on imported routines when building the
6300 2010-06-22 Robert Dewar <dewar@adacore.com>
6302 * cstand.adb (Create_Standard): Set Has_Pragma_Pack for standard string
6305 2010-06-22 Javier Miranda <miranda@adacore.com>
6307 * sem_ch4.adb (Collect_Generic_Type_Ops): Protect code that handles
6308 generic subprogram declarations to ensure proper context. Add missing
6309 support for generic actuals.
6310 (Try_Primitive_Operation): Add missing support for concurrent types
6311 that have no Corresponding_Record_Type. Required to diagnose errors
6313 generics or when compiling with no code generation (-gnatc).
6314 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Do not build
6315 the corresponding record type.
6316 * sem_disp.ads, sem_disp.adb (Check_Dispatching_Operation): Complete
6317 documentation. Do minimum decoration when processing a primitive of a
6318 concurrent tagged type that covers interfaces. Required to diagnose
6319 errors in the Object.Operation notation compiling generics or under
6321 * exp_ch9.ads, exp_ch9.adb (Build_Corresponding_Record): Add missing
6322 propagation of attribute Interface_List to the corresponding record.
6323 (Expand_N_Task_Type_Declaration): Code cleanup.
6324 (Expand_N_Protected_Type_Declaration): Code cleanup.
6326 2010-06-22 Matthew Heaney <heaney@adacore.com>
6328 * a-convec.adb, a-coinve.adb: Removed 64-bit types Int and UInt.
6330 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6332 * s-rannum.adb (Random_Float_Template): Replace with unbiased version
6333 that is able to produce all representable floating-point numbers in the
6334 unit interval. Remove template parameter Shift_Right, no longer used.
6335 * gnat_rm.texi: Document the period of the pseudo-random number
6336 generator under the description of its algorithm.
6337 * gcc-interface/Make-lang.in: Update dependencies.
6339 2010-06-22 Thomas Quinot <quinot@adacore.com>
6341 * exp_aggr.adb (Rewrite_Discriminant): Fix predicate used to identify
6342 reference to discriminant (can be an expanded name as well as an
6345 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6347 * exp_ch6.adb: Clarify comment.
6349 2010-06-22 Geert Bosch <bosch@adacore.com>
6351 * exp_imgv.adb (Expand_Image_Attribute): Treat ordinary fixed point
6352 with decimal small as decimal types, avoiding FP arithmetic.
6353 (Has_Decimal_Small): New function.
6354 * einfo.ads, einfo.adb (Aft_Value): New synthesized attributed for
6356 * sem_attr.adb (Eval_Attribute): Remove Aft_Value function and update
6357 callers to call the new function in Einfo that takes the entity as
6360 2010-06-22 Robert Dewar <dewar@adacore.com>
6362 * sem_ch3.adb, sem_ch8.adb: Minor reformatting.
6364 2010-06-22 Thomas Quinot <quinot@adacore.com>
6366 * sem_elab.adb: Minor reformatting.
6368 2010-06-22 Vincent Celier <celier@adacore.com>
6370 * gnatsym.adb: Put the object files in the table in increasing
6371 aphabetical order of base names.
6373 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6375 * sem_ch8.adb (Set_Entity_Or_Discriminal): New procedure used by
6376 Find_Direct_Name and Find_Expanded_Name, to replace a discriminant with
6377 the corresponding discriminal within a record declaration.
6379 2010-06-22 Thomas Quinot <quinot@adacore.com>
6381 * exp_aggr.adb (Rewrite_Discriminant): Rewriting must occur only for an
6382 expression referring to a discriminal of the type of the aggregate (not
6383 a discriminal of some other unrelated type), and the prefix in the
6384 generated selected component must come from Lhs, not Obj.
6386 2010-06-22 Thomas Quinot <quinot@adacore.com>
6388 * sem_ch3.adb (Build_Derived_Record_Type): Fix predicate determining
6389 when to freeze the parent type.
6391 2010-06-22 Robert Dewar <dewar@adacore.com>
6393 * s-rannum.adb, a-nudira.adb, types.ads, freeze.adb, sem_aggr.adb,
6394 exp_aggr.adb: Minor reformatting.
6395 * gnat_rm.texi: Document GNAT.MBBS_Discrete_Random and
6396 GNAT.MBSS_Float_Random.
6397 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: Fix header.
6399 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6401 * a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-nuflra.ads,
6402 gnat_rm.texi, impunit.adb, Makefile.rtl, s-rannum.adb
6403 (Random_Float_Template, Random): New method of creating
6404 uniform floating-point variables that allow the creation of all machine
6407 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: New file.
6409 2010-06-22 Gary Dismukes <dismukes@adacore.com>
6411 * sem_ch5.adb (Analyze_Assignment): Revise test for illegal assignment
6412 to abstract targets to check that the type is tagged and comes from
6413 source, rather than only testing for targets of interface types. Remove
6416 2010-06-22 Vincent Celier <celier@adacore.com>
6418 * vms_data.ads: Modify the declarations of qualifiers
6419 /UNCHECKED_SHARED_LIB_IMPORTS to allow the generation of gnat.hlp
6422 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6424 * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false if
6425 expansion is disabled.
6427 2010-06-22 Robert Dewar <dewar@adacore.com>
6429 * makeusg.adb: Minor reformatting.
6431 2010-06-22 Robert Dewar <dewar@adacore.com>
6433 * types.ads: (Dint): Removed, no longer used anywhere.
6434 * uintp.adb (UI_From_CC): Use UI_From_Int, range is sufficient.
6435 (UI_Mul): Avoid use of UI_From_Dint.
6436 (UI_From_Dint): Removed, not used.
6437 * uintp.ads (UI_From_Dint): Removed, not used.
6438 (Uint_Min/Max_Simple_Mul): New constants.
6440 2010-06-22 Vincent Celier <celier@adacore.com>
6442 * clean.adb (Parse_Cmd_Line): Recognize switch
6443 --unchecked-shared-lib-imports.
6444 (Usage): Add line for switch --unchecked-shared-lib-imports
6445 * makeusg.adb: Add line for switch --unchecked-shared-lib-imports
6446 * makeutl.ads: (Unchecked_Shared_Lib_Imports): New constant string
6447 moved from GPR_Util.
6448 * switch-m.adb (Scan_Make_Switches): Recognize switch
6449 --unchecked-shared-lib-imports.
6450 * vms_data.ads: Add VMS qualifiers /UNCHECKED_SHARED_LIB_IMPORTS.
6451 * gnat_ugn.texi: Add documentation for new switch
6452 --unchecked-shared-lib-imports. Add also documentation for --subdirs.
6454 2010-06-22 Javier Miranda <miranda@adacore.com>
6456 * sem_prag.adb, sem_util.adb, sem_util.ads, sem_attr.adb, exp_ch6.adb,
6457 exp_disp.adb, sem_eval.adb, exp_dist.adb lib-xref.adb: Code cleanup,
6458 this patch replaces duplication of code that traverses the chain of
6459 aliased primitives by a call to routine Ultimate_Alias that
6460 provides this functionality.
6462 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6464 * fmap.adb, opt.ads, osint.adb, osint.ads, output.ads, scng.adb,
6465 sinput-c.adb, switch-m.ads, tree_io.ads: Use simpler form of
6468 2010-06-22 Thomas Quinot <quinot@adacore.com>
6470 * einfo.ads: Minor reformatting.
6472 2010-06-22 Javier Miranda <miranda@adacore.com>
6474 * exp_disp.adb (Expand_Interface_Thunk): Do not generate thunk of
6475 eliminated primitives.
6476 (Make_DT): Avoid referencing eliminated primitives.
6477 (Register_Primitive): Do not register eliminated primitives in the
6478 dispatch table. Required to add this functionality when the program is
6479 compiled without static dispatch tables (-gnatd.t)
6481 2010-06-22 Emmanuel Briot <briot@adacore.com>
6483 * fmap.adb, scng.adb, switch-m.ads, sinput-c.adb, opt.ads, output.ads,
6484 tree_io.ads, osint.adb, osint.ads: Use configuration pragmas to prevent
6485 warnings on use of internal GNAT units.
6487 2010-06-22 Jose Ruiz <ruiz@adacore.com>
6489 * s-taprop-vxworks.adb (Set_Priority): Update comments.
6491 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6493 * s-rannum.adb: Make stylistic change to remove mystery constant in
6494 Extract_Value. Image_Numeral_Length: new symbolic constant.
6496 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6498 * einfo.ads, einfo.adb: Make Is_Protected_Interface,
6499 Is_Synchronized_Interface, Is_Task_Interface into computable
6500 predicates, to free three flags in entity nodes.
6501 * sem_ch3.adb: Remove setting of these flags.
6503 2010-06-22 Robert Dewar <dewar@adacore.com>
6505 * uintp.adb, osint.adb, prj-conf.adb, prj-part.adb, prj.adb: Minor
6507 * s-taprop-vxworks.adb: Add comment for Set_Priority.
6508 * impunit.adb (Map_Array): Add entries for s-htable.ads and s-crc32.ads
6509 * projects.texi: Move @cindex to the left margin, since otherwise we
6510 are missing entries in the index.
6512 2010-06-22 Emmanuel Briot <briot@adacore.com>
6514 * prj-part.adb, prj.adb, tempdir.ads, makeutl.adb: Use
6515 packages from the GNAT hierarchy instead of System when possible.
6516 * gcc-interface/Make-lang.in: Update dependencies.
6518 2010-06-22 Jose Ruiz <ruiz@adacore.com>
6520 * s-taprop-vxworks.adb (Set_Priority): Remove the code that was
6521 previously in place to reorder the ready queue when a task drops its
6522 priority due to the loss of inherited priority.
6524 2010-06-22 Vincent Celier <celier@adacore.com>
6526 * projects.texi: Minor spelling error fixes.
6529 2010-06-22 Emmanuel Briot <briot@adacore.com>
6531 * prj-part.adb, prj-ext.adb, prj.adb, makeutl.adb, prj-conf.adb: Remove
6532 warnings for some with clauses.
6534 2010-06-22 Robert Dewar <dewar@adacore.com>
6536 * errout.adb (Unwind_Internal_Type): Improve handling of First_Subtype
6537 test to catch more cases where first subtype is the results we want.
6538 * sem_res.adb (Make_Call_Into_Operator): Don't go to First_Subtype in
6539 error case, since Errout will now handle this correctly.
6540 * gcc-interface/Make-lang.in: Add Sem_Aux to list of GNATBIND objects.
6541 Update dependencies.
6543 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6545 * exp_ch4.adb (Expand_Allocator_Expression): Set Related_Node properly
6546 when calling Make_Temporary.
6548 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6550 * sem_ch3.adb (Access_Subprogram_Declaration): An anonymous access to
6551 subprogram can be associated with an entry body.
6553 2010-06-22 Robert Dewar <dewar@adacore.com>
6555 * scos.ads: Add note on membership test handling.
6557 2010-06-22 Vincent Celier <celier@adacore.com>
6559 * projects.texi: Minor spelling fixes.
6562 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6564 * s-rannum.adb: Correct off-by-one error in Extract_Value.
6566 2010-06-22 Vincent Celier <celier@adacore.com>
6568 * mlib-prj.adb (Display): In non verbose mode, truncate after fourth
6570 * mlib-utl.adb (Gcc): In non verbose mode, truncate the display of the
6571 gcc command if it is too long.
6573 2010-06-22 Robert Dewar <dewar@adacore.com>
6575 * errout.adb (Set_Msg_Node): Fix incorrect reference to node.
6577 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6579 * exp_ch6.adb (Expand_Actuals): Use Actual as the related node when
6580 calling Make_Temporary.
6582 2010-06-22 Robert Dewar <dewar@adacore.com>
6584 * sem_res.adb, sem_aux.adb, errout.adb: Minor reformatting.
6586 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6588 * sem_res.adb: Additional special-case for VMS.
6590 2010-06-22 Vincent Celier <celier@adacore.com>
6592 * gnatsym.adb: Minor comment fix.
6594 2010-06-22 Vincent Celier <celier@adacore.com>
6596 * prj-nmsc.adb (Process_Naming_Scheme): Initialize Lib_Data_Table.
6598 2010-06-22 Robert Dewar <dewar@adacore.com>
6600 * par-ch4.adb (P_Name): Recognize 'Mod attribute in Ada 95 mode
6601 * sem_attr.adb (Attribute_05): Add Name_Mod so that 'Mod recognized in
6602 Ada 95 mode as an implementation defined attribute.
6604 2010-06-22 Vincent Celier <celier@adacore.com>
6606 * bindusg.adb (Display): Update line for -R
6607 * switch-b.adb (Scan_Binder_Switches): Allow generation of the binder
6608 generated files when -R is used.
6610 2010-06-22 Vincent Celier <celier@adacore.com>
6612 * prj-nmsc.adb (Lib_Data_Table): New table.
6613 (Check_Library_Attributes): Check if the same library name is used in
6614 two different projects that do not extend each other.
6616 2010-06-22 Robert Dewar <dewar@adacore.com>
6618 * lib-writ.ads, errout.adb, einfo.adb, einfo.ads: Minor reformatting.
6620 2010-06-22 Vincent Celier <celier@adacore.com>
6622 * adaint.c (__gnat_locate_regular_file): If a directory in the path is
6623 empty, make it the current working directory.
6625 2010-06-22 Thomas Quinot <quinot@adacore.com>
6627 * sem_ch3.adb (Build_Derived_Record_Type): When deriving a tagged
6628 private type with discriminants, make sure the parent type is frozen.
6630 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
6632 * exp_attr.adb (Expand_N_Attribute_Reference) <Attribute_Bit>: Deal
6633 with packed array references specially.
6634 * exp_ch4.adb (Expand_N_Indexed_Component): Do not convert a reference
6635 to a component of a bit packed array if it is the prefix of 'Bit.
6636 * exp_pakd.ads (Expand_Packed_Bit_Reference): Declare.
6637 * exp_pakd.adb (Expand_Packed_Bit_Reference): New procedure. Expand a
6638 'Bit reference, where the prefix involves a packed array reference.
6639 (Get_Base_And_Bit_Offset): New helper, extracted from...
6640 (Expand_Packed_Address_Reference): ...here. Call above procedure to
6641 get the outer object and offset expression.
6643 2010-06-22 Thomas Quinot <quinot@adacore.com>
6645 * exp_attr.adb, lib-writ.ads, bindgen.adb: Minor reformatting.
6646 * einfo.adb (Related_Expression, Set_Related_Expression): Add
6649 2010-06-22 Javier Miranda <miranda@adacore.com>
6651 * sem_ch3.adb (Add_Internal_Interface_Entities): Minor code
6652 reorganization to properly check if the operation has been inherited as
6653 an abstract operation.
6655 2010-06-22 Ed Falis <falis@adacore.com>
6657 * s-osinte-vxworks.ads: Complete previous change.
6659 2010-06-22 Thomas Quinot <quinot@adacore.com>
6661 * sem_res.adb: Add comment.
6662 * projects.texi, gnat_ugn.texi: Remove macro.
6664 2010-06-22 Vincent Celier <celier@adacore.com>
6666 * prj-attr.adb: Remove project level attribute Main_Language.
6668 2010-06-22 Robert Dewar <dewar@adacore.com>
6670 * switch-b.adb, osint-b.adb: Minor reformatting.
6672 2010-06-22 Pascal Obry <obry@adacore.com>
6674 * g-socthi-mingw.adb (C_Sendmsg): Do not attempt to send data from a
6675 vector if previous send was not fully successful. If only part of
6676 the vector data was sent, we exit the loop.
6678 2010-06-22 Thomas Quinot <quinot@adacore.com>
6680 * sem_res.adb (Make_Call_Into_Operator): Use First_Subtype for better
6681 error reporting with generic types.
6683 2010-06-22 Thomas Quinot <quinot@adacore.com>
6685 * bindgen.adb, bindusg.adb, gnatbind.adb, gnat_ugn.texi, opt.ads,
6686 osint-b.adb, osint-b.ads, output.adb, output.ads, switch-b.adb,
6687 vms_data.ads: Add a new command line switch -A to gnatbind to output
6688 the list of all ALI files for the partition.
6690 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6692 * s-osinte-vxworks.ads: Fix casing.
6693 * s-vxwext-kernel.ads, s-vxwext-rtp.ads: Complete previous
6694 change: Interfaces.C does not provide a long_long type.
6696 2010-06-22 Emmanuel Briot <briot@adacore.com>
6698 * gnat_ugn.texi, projects.texi: Preprocess projects.texi for VMS and
6699 native user's guide, since this document contains the two versions.
6700 * gcc-interface/Make-lang.in: Update doc dependencies.
6702 2010-06-22 Robert Dewar <dewar@adacore.com>
6704 * sem_ch3.adb: Minor reformatting. Minor code reorganization.
6706 2010-06-22 Emmanuel Briot <briot@adacore.com>
6708 * gnat_ugn.texi, projects.texi: Remove toplevel menu, since we should
6709 not build this file on its own (only through gnat_ugn.texi).
6710 Remove macro definitions and insert simpler version in gnat_ugn.texi.
6712 2010-06-22 Robert Dewar <dewar@adacore.com>
6714 * ali-util.ads: Minor comment update.
6715 * g-socthi-mingw.adb: Minor reformatting.
6717 2010-06-22 Ed Falis <falis@adacore.com>
6719 * s-osinte-vxworks.ads: Take sigset_t definition of System.VxWorks.Ext.
6720 * s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads: Define sigset_t
6721 for specific versions of VxWorks.
6723 2010-06-22 Emmanuel Briot <briot@adacore.com>
6725 * gnat_rm.texi, gnat_ugn.texi, projects.texi: Remove all project files
6726 related sections from user's guide and reference manual, since they
6727 have now been merged together into a separate document (projects.texi).
6728 This removes a lot of duplication where attributes where described
6730 The grammar for the project files is now in each of the sections
6731 (packages,expressions,...) instead of being duplicates in two other
6732 sections (one in the user's guide that contained the full grammar,
6733 and various sections in the rm that contained extracts of the same
6735 Added the full list of all supported attributes, since existing lists
6737 Rename "associative array" into "indexed attribute"
6738 Remove sections that were duplicates ("External References in
6739 Project Files" and "External Values", and "Project Extensions"
6740 for instance). The list of valid packages in project files is now in
6743 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6745 * sem_ch3.adb (Add_Internal_Interface_Entities): If
6746 Find_Primitive_Covering_Interface does not find the operation, it may
6747 be because of a name conflict between the inherited operation and a
6748 local non-overloadable name. In that case look for the operation among
6749 the primitive operations of the type. This search must succeed
6750 regardless of visibility.
6752 2010-06-22 Pascal Obry <obry@adacore.com>
6754 * g-socthi-mingw.adb: Properly honor MSG_WAITALL in recvmsg.
6755 (C_Recvmsg): Propely honor the MSG_WAITALL flag in Windows
6758 2010-06-22 Robert Dewar <dewar@adacore.com>
6760 * sem_ch4.adb (Analyze_Conditional_Expression): Defend against
6762 * sprint.adb (Sprint_Node_Actual, case N_Conditional_Expression):
6765 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6767 * s-intman-vxworks.ads: Code clean up.
6769 2010-06-22 Thomas Quinot <quinot@adacore.com>
6771 * sem_res.adb (Resolve_Slice): When the prefix is an explicit
6772 dereference, construct actual subtype of designated object to generate
6773 proper bounds checks.
6775 2010-06-22 Thomas Quinot <quinot@adacore.com>
6777 * ali-util.adb, ali-util.ads, gnatbind.adb (Read_ALI): Rename to
6778 Read_Withed_ALIs, which is more descriptive.
6780 2010-06-22 Pascal Obry <obry@adacore.com>
6782 * g-sothco.ads: Minor reformatting.
6783 * g-socthi-mingw.adb: Remove part of work on the C_Recvmsg and
6784 C_Sendmsg implementation.
6785 (C_Sendmsg): Do not use lock (not needed).
6786 (C_Recvmsg): Likewise and also do not wait for incoming data.
6788 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6790 * uintp.adb: Fix scope error in operator call.
6792 2010-06-22 Vincent Celier <celier@adacore.com>
6794 * makeutl.adb (Executable_Prefix_Path): on VMS, return "/gnu/".
6795 * prj-conf.adb (Get_Or_Create_Configuration_File): On VMS, if
6796 autoconfiguration is needed, fail indicating that no config project
6797 file can be found, as there is no autoconfiguration on VMS.
6799 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6801 * sem_res.adb (Make_Call_Into_Operator): Diagnose an incorrect scope
6802 for an operator in a functional notation, when operands are universal.
6804 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6806 * gcc-interface/Make-lang.in: Update dependencies.
6808 2010-06-22 Robert Dewar <dewar@adacore.com>
6810 * sem_aggr.adb (Resolve_Record_Aggregate): Do style check on component
6812 * sem_ch10.adb (Analyze_Subunit): Do style check on parent unit name.
6813 * sem_ch8.adb (Find_Direct_Name): For non-overloadable entities, do
6815 * sem_res.adb (Resolve_Entity_Name): Do style check for enumeration
6818 2010-06-22 Vincent Celier <celier@adacore.com>
6820 * make.adb (Scan_Make_Arg): No longer pass -nostdlib to the compiler as
6821 it has no effect. Always pass -nostdlib to gnatlink, even on VMS.
6823 2010-06-22 Pascal Obry <obry@adacore.com>
6825 * g-socthi-mingw.adb: Fix implementation of the vectored sockets on
6827 (C_Recvmsg): Make sure the routine is atomic. Also fully
6828 fill vectors in the proper order.
6829 (C_Sendmsg): Make sure the routine is atomic.
6831 2010-06-22 Robert Dewar <dewar@adacore.com>
6833 * sem_ch8.adb: Update comment.
6834 * sem_res.adb: Minor code reorganization (use Ekind_In).
6836 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6838 * sem_ch8.adb (Add_Implicit_Operator): If the context of the expanded
6839 name is a call, use the number of actuals to determine whether this is
6840 a binary or unary operator, rather than relying on later information
6841 to resolve the overload.
6843 2010-06-22 Robert Dewar <dewar@adacore.com>
6845 * sem_ch10.adb, sem_aggr.adb: Minor reformatting.
6847 2010-06-22 Robert Dewar <dewar@adacore.com>
6849 * sem_ch3.adb, sem_disp.adb: Minor code fixes.
6850 * sem_eval.adb: Minor reformatting.
6852 2010-06-22 Vincent Celier <celier@adacore.com>
6854 * make.adb (Scan_Make_Arg): When invoked with -nostdlib, pass -nostdlib
6855 to gnatlink, except on Open VMS.
6856 * osint.adb (Add_Default_Search_Dirs): Do not suppress the default
6857 object directories if -nostdlib is used.
6859 2010-06-22 Robert Dewar <dewar@adacore.com>
6861 * sem_util.adb (Is_Delegate): Put in proper alpha order.
6862 * sem_eval.adb: Minor reformatting.
6864 2010-06-22 Robert Dewar <dewar@adacore.com>
6866 * g-expect-vms.adb, sem_res.adb: Minor reformatting.
6867 * exp_aggr.adb: Minor comment changes and reformatting.
6868 * sem_eval.adb (Find_Universal_Operator_Type): Put in proper alpha
6870 * sem_util.ads: Add some missing pragma Inline's.
6872 2010-06-22 Thomas Quinot <quinot@adacore.com>
6874 * sem_util.adb (Build_Actual_Subtype): Record original expression in
6875 Related_Expression attribute of the constructed subtype.
6876 * einfo.adb, einfo.ads (Underlying_View): Move to Node28 to free up
6877 Node24 on types for...
6878 (Related_Expression): Make attribute available on types as well.
6880 2010-06-22 Gary Dismukes <dismukes@adacore.com>
6882 * exp_util.adb (Find_Interface_ADT): Retrieve Designated_Type instead
6883 of Directly_Designated_Type when the type argument is an access type.
6884 (Find_Interface_Tag): Retrieve Designated_Type instead of
6885 Directly_Designated_Type when the type argument is an access type.
6886 (Has_Controlled_Coextensions): Retrieve Designated_Type instead of
6887 Directly_Designated_Type of each access discriminant.
6888 * sem_res.adb (Resolve_Type_Conversion): Retrieve Designated_Type
6889 instead of Directly_Designated_Type when the operand and target types
6892 2010-06-22 Thomas Quinot <quinot@adacore.com>
6894 * exp_aggr.adb (Flatten): Return False if one choice is statically
6895 known to be out of bounds.
6897 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6899 * sem_res.adb (Resolve_Call): If the call is rewritten as an indexed of
6900 a parameterless function call, preserve parentheses of original
6901 expression, for proper handling by pretty printer.
6902 * sem_attr.adb (Analyze_Attribute, case 'Old): Add guard to Process
6903 procedure, to handle quietly identifiers that have no entity names.
6904 * exp_util.adb (Get_Current_Value_Condition): If the parent of an
6905 elsif_part is missing, it has been rewritten as a nested if, and there
6906 is no useful information on the current value of the variable.
6908 2010-06-22 Gary Dismukes <dismukes@adacore.com>
6910 * sem_ch3.adb (Build_Discriminal): Set default scopes for newly created
6911 discriminals to the current scope.
6912 * sem_util.adb (Find_Body_Discriminal): Remove setting of discriminal's
6913 scope, which could overwrite a different already set value.
6915 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6917 * sem_res.adb (Valid_Conversion): If expression is a predefined
6918 operator, use sloc of type of interpretation to improve error message
6919 when operand is of some derived type.
6920 * sem_eval.adb (Is_Mixed_Mode_Operand): New function, use it.
6922 2010-06-22 Emmanuel Briot <briot@adacore.com>
6924 * g-expect-vms.adb (Expect_Internal): No longer raises an exception, so
6925 that it can set out parameters as well. When a process has died, reset
6926 its Input_Fd to Invalid_Fd, so that when using multiple processes we
6927 can find out which process has died.
6929 2010-06-22 Thomas Quinot <quinot@adacore.com>
6931 * sem_eval.adb (Find_Universal_Operator_Type): New
6932 subprogram to identify the operand type of an operator on universal
6933 operands, when an explicit scope indication is present. Diagnose the
6934 case where such a call is ambiguous.
6935 (Eval_Arithmetic_Op, Eval_Relational_Op, Eval_Unary_Op):
6936 Use the above to identify the operand type so it can be properly
6938 * sem_res.adb (Make_Call_Into_Operator): Remove bogus freeze of operand
6939 type, done in an arbitrary, possibly incorrect type (the presence of
6940 some numeric type in the scope is checked for legality, but when more
6941 than one such type is in the scope, we just pick a random one, not
6942 necessarily the expected one).
6943 * sem_utils.ads, sem_utils.adb (Is_Universal_Numeric_Type): New utility
6946 2010-06-22 Robert Dewar <dewar@adacore.com>
6948 * sem_eval.adb: Minor reformatting.
6950 2010-06-22 Robert Dewar <dewar@adacore.com>
6952 * exp_ch4.adb (Expand_N_Conditional_Expression): Use
6953 Expression_With_Actions to clean up the code generated when folding
6954 constant expressions.
6956 2010-06-22 Vincent Celier <celier@adacore.com>
6958 * g-expect-vms.adb: Add new subprograms Free, First_Dead_Process and
6961 2010-06-22 Vincent Celier <celier@adacore.com>
6963 * prj-nmsc.adb (Find_Sources): When a source from a multi-unit file is
6964 found, check if it's path has aready been found, whatever its index.
6966 2010-06-22 Robert Dewar <dewar@adacore.com>
6968 * atree.adb, gnatbind.adb: Minor reformatting.
6969 Minor code reorganization.
6971 2010-06-21 Robert Dewar <dewar@adacore.com>
6973 * exp_ch4.adb (Expand_N_Conditional_Expression): Fold if condition
6974 known at compile time.
6976 2010-06-21 Gary Dismukes <dismukes@adacore.com>
6978 * atree.adb: Fix comment typo.
6980 2010-06-21 Ed Schonberg <schonberg@adacore.com>
6982 * sem_eval.adb (Test_Ambiguous_Operator): New procedure to check
6983 whether a universal arithmetic expression in a conversion, which is
6984 rewritten from a function call with an expanded name, is ambiguous.
6986 2010-06-21 Vincent Celier <celier@adacore.com>
6988 * prj-nmsc.adb (Name_Location): New Boolean component Listed, to record
6989 source files in specified list of sources.
6990 (Check_Package_Naming): Remove out parameters Bodies and Specs, as they
6992 (Add_Source): Set the Location of the new source
6993 (Process_Exceptions_File_Based): Call Add_Source with the Location
6994 (Get_Sources_From_File): If an exception is found, set its Listed to
6996 (Find_Sources): When Source_Files is specified, if an exception is
6997 found, set its Listed to True. Remove any exception that is not in a
6998 specified list of sources.
6999 * prj.ads (Source_Data): New component Location
7001 2010-06-21 Vincent Celier <celier@adacore.com>
7003 * gnatbind.adb (Closure_Sources): Global table, moved from block.
7005 2010-06-21 Thomas Quinot <quinot@adacore.com>
7007 * sem_res.adb: Minor reformatting.
7008 * atree.adb: New debugging hook "rr" for node rewrites.
7010 2010-06-21 Robert Dewar <dewar@adacore.com>
7012 * g-expect.ads, g-expect.adb: Minor reformatting.
7014 2010-06-21 Emmanuel Briot <briot@adacore.com>
7016 * s-regpat.adb (Next_Pointer_Bytes): New named constant. Code clean up.
7018 2010-06-21 Arnaud Charlet <charlet@adacore.com>
7020 * gcc-interface/Make-lang.in: Update dependencies.
7022 2010-06-21 Thomas Quinot <quinot@adacore.com>
7024 * bindgen.ads: Update comments.
7026 2010-06-21 Vincent Celier <celier@adacore.com>
7028 * gnatbind.adb: Suppress dupicates when listing the sources in the
7029 closure (switch -R).
7031 2010-06-21 Emmanuel Briot <briot@adacore.com>
7033 * s-regpat.adb (Link_Tail): Fix error when size of the pattern matcher
7036 2010-06-21 Emmanuel Briot <briot@adacore.com>
7038 * g-expect.adb, g-expect.ads (First_Dead_Process, Free, Has_Process):
7040 (Expect_Internal): No longer raises an exception, so that it can set
7041 out parameters as well. When a process has died, reset its Input_Fd
7042 to Invalid_Fd, so that when using multiple processes we can find out
7043 which process has died.
7045 2010-06-21 Robert Dewar <dewar@adacore.com>
7047 * s-regpat.adb, s-tpoben.adb, sem_attr.adb, sem_util.adb, sem_util.ads,
7048 checks.adb, sem_res.adb: Minor reformatting. Add comments.
7050 2010-06-21 Ed Schonberg <schonberg@adacore.com>
7052 * sem_ch6.adb (New_Overloaded_Entity): If the new entity is a
7053 rederivation associated with a full declaration in a private part, and
7054 there is a partial view that derives the same parent subprogram, the
7055 new entity does not become visible. This check must be applied to
7056 interface operations as well.
7058 2010-06-21 Thomas Quinot <quinot@adacore.com>
7060 * checks.adb: Add comments.
7061 * prj-nmsc.adb: Minor reformatting.
7063 2010-06-21 Thomas Quinot <quinot@adacore.com>
7065 * sem_ch9.adb, checks.adb, sem_util.adb, sem_util.ads, sem_res.adb,
7066 sem_attr.adb (Get_E_First_Or_Last): Use attribute references on E to
7067 extract bounds, to ensure that we get the proper captured values,
7068 rather than an expression that may have changed value since the point
7069 where the subtype was elaborated.
7070 (Find_Body_Discriminal): New utility subprogram to share code
7072 (Eval_Attribute): For the case of a subtype bound that references a
7073 discriminant of the current concurrent type, insert appropriate
7074 discriminal reference.
7075 (Resolve_Entry.Actual_Index_Type.Actual_Discriminant_Ref): For a
7076 requeue to an entry in a family in the current task, use corresponding
7078 (Analyze_Accept_Statement): Rely on expansion of attribute references
7079 to insert proper discriminal references in range check for entry in
7082 2010-06-21 Emmanuel Briot <briot@adacore.com>
7084 * s-regpat.adb (Compile): Fix handling of big patterns.
7086 2010-06-21 Robert Dewar <dewar@adacore.com>
7088 * a-tifiio.adb: Minor reformatting.
7090 2010-06-21 Pascal Obry <obry@adacore.com>
7092 * prj-nmsc.adb (Search_Directories): Use the non-translated directory
7095 2010-06-21 Javier Miranda <miranda@adacore.com>
7097 * exp_cg.adb (Write_Call_Info): Fill the component sourcename using the
7100 2010-06-21 Ed Schonberg <schonberg@adacore.com>
7102 * exp_ch4.adb (Expand_Concatenate): If an object declaration is created
7103 to hold the result, indicate that the target of the declaration does
7104 not need an initialization, to prevent spurious errors when
7105 Initialize_Scalars is enabled.
7107 2010-06-21 Ed Schonberg <schonberg@adacore.com>
7109 * a-tifiio.adb (Put): In the procedure that performs I/O on a String,
7110 Fore is not bound by line length. The Fore parameter of the internal
7111 procedure that performs the operation is an integer.
7113 2010-06-21 Thomas Quinot <quinot@adacore.com>
7115 * sem_res.adb, checks.adb: Minor reformatting.
7117 2010-06-21 Emmanuel Briot <briot@adacore.com>
7119 * s-regpat.adb (Next_Instruction, Get_Next_Offset): Removed, merged
7121 (Insert_Operator_Before): New subprogram, avoids duplicated code
7122 (Compile): Avoid doing two compilations when the pattern matcher ends
7125 2010-06-21 Emmanuel Briot <briot@adacore.com>
7127 * s-regpat.adb: Improve debug traces
7128 (Dump): Change output format to keep it smaller.
7130 2010-06-21 Javier Miranda <miranda@adacore.com>
7132 * exp_cg.adb (Generate_CG_Output): Disable redirection of standard
7133 output to the output file when this routine completes its work.
7135 2010-06-20 Eric Botcazou <ebotcazou@adacore.com>
7137 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Use while instead of
7138 for loop. Call build_constructor_from_list directly in the CICO case.
7140 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7142 * freeze.adb (Build_And_Analyze_Renamed_Body): If the renaming
7143 declaration appears in the same unit and ealier than the renamed
7144 entity, retain generated body to prevent order-of-elaboration issues in
7147 2010-06-18 Arnaud Charlet <charlet@adacore.com>
7149 * s-tpoben.adb: Update comments.
7151 2010-06-18 Robert Dewar <dewar@adacore.com>
7153 * debug.adb: Minor comment change.
7155 2010-06-18 Javier Miranda <miranda@adacore.com>
7157 * exp_cg.adb: Code clean up.
7158 * debug.adb: Complete documentation of switch -gnatd.Z.
7159 * gcc-interface/misc.c (callgraph_info_file): Declare.
7161 2010-06-18 Javier Miranda <miranda@adacore.com>
7163 * exp_cg.adb (Homonym_Suffix_Length): Minor code reorganization.
7165 2010-06-18 Thomas Quinot <quinot@adacore.com>
7167 * sprint.ads: Minor reformatting.
7168 * output.ads: Update obsolete comment.
7170 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7172 * freeze.adb (Build_And_Analyze_Renamed_Body): if the renamed entity is
7173 an external intrinsic operation (e.g. a GCC numeric function) indicate
7174 that the renaming entity has the same characteristics, so a call to it
7175 is properly expanded.
7177 2010-06-18 Javier Miranda <miranda@adacore.com>
7179 * exp_cg.adb, exp_cg.ads, exp_disp.adb, gnat1drv.adb: Add initial
7180 support for dispatch table/callgraph info generation.
7181 * gcc-interface/Make-lang.in: Update dependencies.
7183 2010-06-18 Robert Dewar <dewar@adacore.com>
7185 * exp_ch6.adb: Minor reformatting.
7186 * gnatname.adb: Add comment.
7188 2010-06-18 Vincent Celier <celier@adacore.com>
7190 * gnatname.adb (Scan_Args): When --and is used, make sure that the
7191 dynamic tables in the newly allocated Argument_Data are properly
7194 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
7196 * gnat1drv.adb: Fix comment.
7198 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7200 * exp_ch6.adb (Expand_Inlined_Call): If the inlined subprogram is a
7201 renaming, re-expand the call with the renamed subprogram if that one
7202 is marked inlined as well.
7204 2010-06-18 Gary Dismukes <dismukes@adacore.com>
7206 * gnat1drv.adb (Adjust_Global_Switches): Enable
7207 Use_Expression_With_Actions for AAMP and VM targets.
7209 2010-06-18 Vincent Celier <celier@adacore.com>
7211 * prj-nmsc.adb (Process_Linker): Recognize response file format GCC.
7213 2010-06-18 Thomas Quinot <quinot@adacore.com>
7215 * exp_ch4.adb: Minor reformatting.
7217 2010-06-18 Javier Miranda <miranda@adacore.com>
7219 * debug.ads Add documentation on -gnatd.Z.
7221 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7223 * sem_elim.adb: Proper error message on improperly eliminated instances
7225 2010-06-18 Vincent Celier <celier@adacore.com>
7227 * prj.ads (Response_File_Format): New value GCC.
7229 2010-06-18 Thomas Quinot <quinot@adacore.com>
7231 * gnat1drv.adb: Minor reformatting.
7233 2010-06-18 Robert Dewar <dewar@adacore.com>
7235 * make.adb, sem_cat.adb: Minor reformatting.
7236 * sem_eval.adb: Fix typos.
7238 2010-06-18 Pascal Obry <obry@adacore.com>
7240 * prj-nmsc.adb: Fix source filenames casing in debug output.
7242 2010-06-18 Robert Dewar <dewar@adacore.com>
7244 * gnatcmd.adb: Minor reformatting.
7246 2010-06-18 Robert Dewar <dewar@adacore.com>
7248 * sem_eval.adb (Eval_Conditional_Expression): Result is static if
7249 condition and both sub-expressions are static (and result is selected
7252 2010-06-18 Robert Dewar <dewar@adacore.com>
7254 * g-pehage.adb: Minor reformatting
7256 2010-06-18 Pascal Obry <obry@adacore.com>
7258 * prj-nmsc.adb (Search_Directories): Insert canonical filenames into
7261 2010-06-18 Arnaud Charlet <charlet@adacore.com>
7263 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
7264 dependencies. Fix target pairs on darwin.
7265 (gnatlib-sjlj, gnatlib-zcx): Pass THREAD_KIND.
7267 2010-06-18 Pascal Obry <obry@adacore.com>
7269 * make.adb, prj-nmsc.adb: Fix source filenames casing in debug output.
7271 2010-06-18 Vincent Celier <celier@adacore.com>
7273 * gnatcmd.adb: For gnatcheck, add -gnatec= switch for a global
7274 configuration pragmas file and, if -U is not used, for a local one.
7276 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7278 * sem_elim.adb (Check_Eliminated): Use full information on entity name
7279 when it is given in the pragma by a selected component.
7280 (Check_For_Eliminated_Subprogram): Do no emit error if within a
7281 instance body that is itself within a generic unit.
7282 * sem_ch12.adb (Analyze_Subprogram_Instance): If the subprogram is
7283 eliminated, mark as well the anonymous subprogram that is its alias
7284 and appears within the wrapper package.
7286 2010-06-18 Bob Duff <duff@adacore.com>
7288 * g-pehage.ads, g-pehage.adb (Produce): Clean up some of the code.
7289 Raise an exception if the output file cannot be opened. Add comments.
7291 2010-06-18 Thomas Quinot <quinot@adacore.com>
7293 * sem_cat.adb (Validate_Object_Declaration): A variable declaration is
7294 not illegal per E.2.2(7) if it occurs in the private part of a
7297 2010-06-18 Arnaud Charlet <charlet@adacore.com>
7299 * par-ch9.adb, sem_aggr.adb, sem_ch3.adb, layout.adb, sem_ch4.adb,
7300 sem_ch5.adb, sem_mech.adb, exp_util.adb, par-ch10.adb, sem_ch6.adb,
7301 par-ch11.adb, sem_ch7.adb, par-prag.adb, exp_disp.adb, par-ch12.adb,
7302 sem_ch8.adb, style.adb, sem_ch9.adb, sem_ch10.adb, prep.adb,
7303 sem_warn.adb, par-util.adb, scng.adb, sem_eval.adb, checks.adb,
7304 sem_prag.adb, sem_ch12.adb, styleg.adb, sem_ch13.adb, par-ch3.adb,
7305 par-tchk.adb, freeze.adb, sfn_scan.adb, par-ch4.adb, sem_util.adb,
7306 sem_res.adb, par-ch5.adb, lib-xref.adb, sem_attr.adb, par-ch6.adb,
7307 sem_disp.adb, prepcomp.adb, par-ch7.adb, sem_elab.adb, exp_ch4.adb,
7308 errout.ads: Update comments. Minor reformatting.
7310 * g-spipat.adb, a-swunau.adb, a-swunau.ads, g-spitbo.adb,
7311 a-szunau.adb, a-szunau.ads, a-stunau.adb, a-stunau.ads,
7312 a-strunb.adb (Big_String. Big_String_Access): New type.
7314 * par-labl.adb, restrict.adb, s-osinte-hpux-dce.ads, sem_ch11.adb,
7315 exp_pakd.adb, s-filofl.ads, par-endh.adb, exp_intr.adb, sem_cat.adb,
7316 sem_case.adb, exp_ch11.adb, s-osinte-linux.ads: Fix copyright notices.
7318 2010-06-18 Geert Bosch <bosch@adacore.com>
7320 * i-forbla-darwin.adb: Include -lgnala and -lm in linker options for
7323 2010-06-18 Robert Dewar <dewar@adacore.com>
7325 * gnat1drv.adb (Adjust_Global_Switches): Set Use_Expression_With_Actions
7328 2010-06-18 Robert Dewar <dewar@adacore.com>
7330 * sprint.adb: Minor format change for N_Expression_With_Actions.
7331 * repinfo.adb: Minor reformatting.
7333 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7335 * sem_elim.adb (Check_Eliminated): If within a subunit, use
7336 Defining_Entity to obtain the name of the entity in the proper body, to
7337 properly handle both separate packages and subprograms.
7339 2010-06-18 Emmanuel Briot <briot@adacore.com>
7341 * prj-nmsc.adb (Check_File): New parameter Display_Path.
7343 2010-06-18 Thomas Quinot <quinot@adacore.com>
7345 * g-socket.adb, g-socket.ads (Null_Selector): New object.
7347 2010-06-18 Pascal Obry <obry@adacore.com>
7349 * gnat_ugn.texi: Minor clarification.
7351 2010-06-18 Emmanuel Briot <briot@adacore.com>
7353 * prj-nmsc.adb (Find_Source_Dirs): Minor refactoring to avoid duplicate
7354 code when using the project dir as the source dir.
7355 (Search_Directories): use the normalized name for the source directory,
7356 where symbolic names have potentially been resolved.
7358 2010-06-18 Robert Dewar <dewar@adacore.com>
7360 * exp_ch4.adb (Expand_N_Conditional_Expression): Clear Actions field
7361 when we create N_Expression_With_Actions node.
7362 (Expand_Short_Circuit): Ditto.
7364 2010-06-18 Robert Dewar <dewar@adacore.com>
7366 * exp_util.adb: Minor reformatting.
7368 2010-06-18 Thomas Quinot <quinot@adacore.com>
7370 * types.ads: Clean up obsolete comments
7371 * tbuild.adb: Minor reformatting.
7372 * exp_ch5.adb, sem_intr.adb, sem_ch10.adb, rtsfind.adb, s-shasto.adb,
7373 exp_strm.adb, aa_drive.adb: Minor reformatting.
7374 * sem_res.adb (Is_Predefined_Operator): An operator that is an imported
7375 intrinsic with an Interface_Name denotes an imported back-end builtin,
7376 and must be rewritten into a call, not left in the tree as an operator,
7377 so return False in that case.
7379 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
7381 * exp_util.adb (Remove_Side_Effects): Make a copy for an allocator.
7383 2010-06-18 Robert Dewar <dewar@adacore.com>
7385 * scos.ads: Add proposed output for case expression
7387 2010-06-18 Jose Ruiz <ruiz@adacore.com>
7389 * gnat_ugn.texi: Document that, when using the RTX compiler to generate
7390 RTSS modules, we need to use the Microsoft linker.
7392 2010-06-18 Robert Dewar <dewar@adacore.com>
7394 * checks.adb (Safe_To_Capture_In_Parameter_Value): Deal with case
7395 expression (cannot count on a particular branch being executed).
7396 * exp_ch4.adb (Expand_N_Case_Expression): New procedure.
7397 * exp_ch4.ads (Expand_N_Case_Expression): New procedure.
7398 * exp_util.adb (Insert_Actions): Deal with proper insertion of actions
7399 within case expression.
7400 * expander.adb (Expand): Add call to Expand_N_Case_Expression
7401 * par-ch4.adb Add calls to P_Case_Expression at appropriate points
7402 (P_Case_Expression): New procedure
7403 (P_Case_Expression_Alternative): New procedure
7404 * par.adb (P_Case_Expression): New procedure
7405 * par_sco.adb (Process_Decisions): Add dummy place holder entry for
7407 * sem.adb (Analyze): Add call to Analyze_Case_Expression
7408 * sem_case.ads (Analyze_Choices): Also used for case expressions now,
7409 this is a documentation change only.
7410 * sem_ch4.ads, sem_ch4.adb (Analyze_Case_Expression): New procedure.
7411 * sem_ch6.adb (Fully_Conformant_Expressions): Add handling of case
7413 * sem_eval.ads, sem_eval.adb (Eval_Case_Expression): New procedure.
7414 * sem_res.adb (Resolve_Case_Expression): New procedure.
7415 * sem_scil.adb (Find_SCIL_Node): Add processing for
7416 N_Case_Expression_Alternative.
7417 * sinfo.ads, sinfo.adb (N_Case_Expression): New node.
7418 (N_Case_Expression_Alternative): New node.
7419 * sprint.adb (Sprint_Node_Actual): Add processing for new nodes
7420 N_Case_Expression and N_Case_Expression_Alternative.
7422 2010-06-18 Robert Dewar <dewar@adacore.com>
7424 * par-ch7.adb, sem_warn.adb, types.ads, par-ch3.adb: Minor
7426 * gnat1drv.adb: Fix typo.
7428 2010-06-18 Robert Dewar <dewar@adacore.com>
7430 * par-prag.adb (Prag, case Style_Checks): All_Checks sets gnat style
7432 * sem_prag.adb (Analyze_Pragma, case Style_Checks): All_Checks sets
7433 gnat style for -gnatg.
7434 * gnat_rm.texi: Add documentation for ALL_CHECKS in GNAT mode.
7436 2010-06-18 Thomas Quinot <quinot@adacore.com>
7438 * sem_eval.adb (Test_In_Range): New subprogram, factoring duplicated
7440 (Is_In_Range, Is_Out_Of_Range): Reimplement in terms of call to
7443 2010-06-18 Robert Dewar <dewar@adacore.com>
7445 * sprint.adb: Minor change in output format for expression wi actions.
7446 * par-ch3.adb: Minor code reorganization. Minor reformatting.
7447 * sem_ch5.adb: Minor comment fix.
7449 2010-06-18 Robert Dewar <dewar@adacore.com>
7451 * debug.adb: New debug flag -gnatd.L to control
7452 Back_End_Handles_Limited_Types.
7453 * exp_ch4.adb (Expand_N_Conditional_Expression): Let back end handle
7454 limited case if Back_End_Handles_Limited_Types is True.
7455 (Expand_N_Conditional_Expression): Use N_Expression_With_Actions to
7456 simplify expansion if Use_Expression_With_Actions is True.
7457 * gnat1drv.adb (Adjust_Global_Switches): Set
7458 Back_End_Handles_Limited_Types.
7459 * opt.ads (Back_End_Handles_Limited_Types): New flag.
7461 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7463 * sem_res.adb (Rewrite_Operator_As_Call): Do not rewrite user-defined
7464 intrinsic operator if expansion is not enabled, because in an
7465 instantiation the original operator must be present to verify the
7466 legality of the operation.
7468 2010-06-18 Robert Dewar <dewar@adacore.com>
7470 * exp_disp.adb, sem_ch12.adb: Minor reformatting
7472 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7474 * exp_util.adb (Make_Subtype_From_Expr): If the unconstrained type is
7475 the class-wide type for a private extension, and the completion is a
7476 subtype, set the type of the class-wide type to the base type of the
7479 2010-06-18 Robert Dewar <dewar@adacore.com>
7481 * g-socket.ads, sem_aggr.adb, einfo.ads, sem_elim.adb,
7482 sem_intr.adb, sem_eval.adb: Minor reformatting
7484 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7486 * sem_type.adb (Is_Ancestor): If either type is private, examine full
7489 2010-06-18 Thomas Quinot <quinot@adacore.com>
7491 * g-socket.adb, g-socket.ads (Check_Selector): Make Selector an IN
7492 parameter rather than IN OUT.
7494 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7496 * exp_ch6.adb: Add extra guard.
7498 2010-06-18 Gary Dismukes <dismukes@adacore.com>
7500 * sem_util.adb (Object_Access_Level): For Ada 2005, determine the
7501 accessibility level of a function call from the level of the innermost
7502 enclosing dynamic scope.
7503 (Innermost_Master_Scope_Depth): New function to find the depth of the
7504 nearest dynamic scope enclosing a node.
7506 2010-06-18 Tristan Gingold <gingold@adacore.com>
7508 * adaint.c: Make ATTR_UNSET static as it is not used outside this file.
7510 2010-06-18 Thomas Quinot <quinot@adacore.com>
7512 * g-socket.ads: Minor reformatting.
7514 2010-06-18 Vincent Celier <celier@adacore.com>
7516 * make.adb (Must_Compile): New Boolean global variable
7517 (Main_On_Command_Line): New Boolean global variable
7518 (Collect_Arguments_And_Compile): Do compile if Must_Compile is True,
7519 even when the project is externally built.
7520 (Start_Compile_If_Possible): Compile in -aL directories if
7521 Check_Readonly_Files is True. Do compile if Must_Compile is True, even
7522 when the project is externally built.
7523 (Gnatmake): Set Must_Compile and Check_Readonly_Files to True when
7524 invoked with -f -u and one or several mains on the command line.
7525 (Scan_Make_Arg): Set Main_On_Command_Line to True when at least one
7526 main is specified on the command line.
7528 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7530 * sem_ch6.adb (Build_Body_For_Inline): Handle
7531 extended_return_statements.
7532 * exp_ch6.adb (Expand_Inlined_Call): when possible, inline a body
7533 containing extented_return statements.
7534 * exp_util.adb (Make_CW_Equivalent_Type): If the root type is already
7535 constrained, do not build subtype declaration.
7537 2010-06-18 Robert Dewar <dewar@adacore.com>
7539 * sem_res.adb (Analyze_Indexed_Component, Analyze_Selected_Component):
7540 Warn on assigning to packed atomic component.
7542 2010-06-18 Robert Dewar <dewar@adacore.com>
7544 * sem_util.ads: Minor reformatting
7545 * einfo.ads, einfo.adb: Minor doc clarification (scope of decls in
7546 Expression_With_Actions).
7547 * snames.ads-tmpl: Minor comment fix
7549 2010-06-18 Robert Dewar <dewar@adacore.com>
7551 * sem_prag.adb (Diagnose_Multiple_Pragmas): New procedure
7552 (Set_Imported): Use Import_Interface_Present to control message output
7553 * sinfo.ads, sinfo.adb (Import_Interface_Present): New flag
7554 * gnat_rm.texi: Document that we can have pragma Import and pragma
7555 Interface for the same subprogram.
7557 2010-06-18 Robert Dewar <dewar@adacore.com>
7559 * lib-xref.adb (Generate_Reference): Fix bad reference to
7560 Has_Pragma_Unreferenced (clients should always use Has_Unreferenced).
7562 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7564 * gcc-interface/trans.c (set_gnu_expr_location_from_node): New static
7566 (gnat_to_gnu) <N_Expression_With_Actions>: New case.
7567 Use set_gnu_expr_location_from_node to set location information on the
7570 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7572 * gcc-interface/Make-lang.in: Update dependencies.
7574 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7576 * sem_util.adb (Is_Atomic_Object): Predicate does not apply to
7579 2010-06-17 Robert Dewar <dewar@adacore.com>
7581 * gnat_rm.texi, gnat_ugn.texi: Clean up documentation on warning and
7582 style check messages.
7583 * sem_res.adb (Resolve_Call): Don't call
7584 Check_For_Eliminated_Subprogram if we are analyzing within a spec
7587 2010-06-17 Robert Dewar <dewar@adacore.com>
7589 * debug.adb: Add documentation for debug flags .X and .Y
7590 * exp_ch4.adb (Expand_Short_Circuit_Operator): Use
7591 Use_Expression_With_Actions.
7592 * gnat1drv.adb (Adjust_Global_Switches): Set
7593 Use_Expression_With_Actions.
7594 * opt.ads (Use_Expression_With_Actions): New switch.
7596 2010-06-17 Robert Dewar <dewar@adacore.com>
7598 * exp_intr.adb: Minor code reorganization (use UI_Max)
7599 * sem_intr.adb: use underlying type to check legality.
7600 * einfo.adb (Known_Static_Esize): False for generic types
7601 (Known_Static_RM_Size): False for generic types
7602 * einfo.ads (Known_Static_Esize): False for generic types
7603 (Known_Static_RM_Size): False for generic types
7605 2010-06-17 Robert Dewar <dewar@adacore.com>
7607 * exp_ch4.ads: Minor code reorganization (specs in alpha order).
7609 2010-06-17 Robert Dewar <dewar@adacore.com>
7611 * debug.adb: New debug flag -gnatd.X to use Expression_With_Actions
7612 node when expanding short circuit form with actions present for right
7614 * exp_ch4.adb: Minor reformatting
7615 (Expand_Short_Circuit_Operator): Use new Expression_With_Actions node
7616 if right opeand has actions present, and debug flag -gnatd.X is set.
7617 * exp_util.adb (Insert_Actions): Handle case of Expression_With_Actions
7619 * nlists.adb (Prepend_List): New procedure
7620 (Prepend_List_To): New procedure
7621 * nlists.ads (Prepend_List): New procedure
7622 (Prepend_List_To): New procedure
7623 * sem.adb: Add processing for Expression_With_Actions
7624 * sem_ch4.adb (Analyze_Expression_With_Actions): New procedure
7625 * sem_ch4.ads (Analyze_Expression_With_Actions): New procedure
7626 * sem_res.adb: Add processing for Expression_With_Actions.
7627 * sem_scil.adb: Add processing for Expression_With_Actions
7628 * sinfo.ads, sinfo.adb (N_Expression_With_Actions): New node.
7629 * sprint.ads, sprint.adb: Add processing for Expression_With_Actions
7631 2010-06-17 Doug Rupp <rupp@adacore.com>
7633 * sem_intr.adb (Check_Intrinsic_Operator): Check that the types
7634 involved both have underlying integer types.
7635 * exp_intr.adb (Expand_Binary_Operator) New subprogram to expand a call
7636 to an intrinsic operator when the operand types or sizes are not
7638 * s-auxdec-vms_64.ads: Revert "+" "-" ops back to Address now that
7639 64/32 Address/Integer works.
7641 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7643 * sem_ch12.adb (Mark_Context): Refine placement of Withed_Body flag, so
7644 that it marks a unit as needed by a spec only if the corresponding
7645 instantiation appears in that spec (and not in the corresponding body).
7646 * sem_elim.adb (Check_Eliminated): If we are within a subunit, the name
7647 in the pragma Eliminate has been parsed as a child unit, but the
7648 current compilation unit is in fact the parent in which the subunit is
7651 2010-06-17 Vincent Celier <celier@adacore.com>
7653 * gnat_rm.texi: Fix typo
7655 2010-06-17 Robert Dewar <dewar@adacore.com>
7657 * sem_util.adb: Minor reformatting
7659 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7661 * sem.adb (Do_Withed_Unit): if the unit in the with_clause is a generic
7662 instance, the clause now denotes the instance body. Traverse the
7663 corresponding spec because there may be no other dependence that will
7664 force the traversal of its own context.
7666 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7668 * sem_ch10.adb (Is_Ancestor_Unit): Subsidiary to
7669 Install_Limited_Context_Clauses, to determine whether a limited_with in
7670 some parent of the current unit designates some other parent, in which
7671 case the limited_with clause must not be installed.
7672 (In_Context): Refine test.
7674 2010-06-17 Gary Dismukes <dismukes@adacore.com>
7676 * sem_util.adb (Collect_Primitive_Operations): In the of an untagged
7677 type with a dispatching equality operator that is overridden (for a
7678 tagged full type), don't include the overridden equality in the list of
7679 primitives. The overridden equality is detected by testing for an
7680 Aliased field that references the overriding equality.
7682 2010-06-17 Robert Dewar <dewar@adacore.com>
7684 * freeze.adb: Minor reformatting.
7686 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
7688 * gnat_ugn.texi: Add a section introducing gdbserver.
7690 2010-06-17 Thomas Quinot <quinot@adacore.com>
7692 * sem_res.adb, sem_ch4.adb, s-stoele.adb, par-labl.adb: Minor
7695 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7697 * sem_aggr.adb (Valid_Ancestor_Type): handle properly the case of a
7698 constrained discriminated parent that is a private type.
7699 (Analyze_Record_Aggregate): when collecting inherited discriminants,
7700 handle properly an ancestor type that is a constrained private type.
7702 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7704 * sem_util.adb (Enclosing_Subprogram): If the called subprogram is
7705 protected, use the protected_subprogram_body only if the original
7706 subprogram has not been eliminated.
7708 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7710 * freeze.adb (Freeze_Expression): The designated type of an
7711 access_to_suprogram type can only be frozen if all types in its profile
7714 2010-06-17 Robert Dewar <dewar@adacore.com>
7716 * par.adb: Minor comment fix
7717 * sem_aggr.adb, sem_ch3.adb: Minor reformatting
7719 2010-06-17 Doug Rupp <rupp@adacore.com>
7721 * s-auxdec-vms_64.ads: Revert Integer to Long_Integer change, instead
7722 change Address to Short_Address in functions where both must be the
7723 same size for intrinsics to work.
7725 2010-06-17 Thomas Quinot <quinot@adacore.com>
7727 * sem_ch4.adb (Analyze_Selected_Component): A selected component may
7728 not denote a (private) component of a protected object.
7730 2010-06-17 Bob Duff <duff@adacore.com>
7732 * par-labl.adb (Try_Loop): Test whether the label and the goto are in
7735 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
7737 * gnat_ugn.texi: Update the documentation about GDB re: exception
7740 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7742 * gnatvsn.ads: Bump to 4.6 version.
7744 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7746 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): The
7747 designated type of the generated pointer is the type of the original
7748 expression, not that of the function call itself, because the return
7749 type may be an untagged derived type and the function may be an
7750 inherited operation.
7752 2010-06-17 Robert Dewar <dewar@adacore.com>
7754 * exp_ch4.adb: Minor reformatting.
7756 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7758 * sinfo.ads, sinfo.adb (Inherited_Discriminant): New flag on
7759 N_Component_Association nodes, to indicate that a component association
7760 of an extension aggregate denotes the value of a discriminant of an
7761 ancestor type that has been constrained by the derivation.
7762 * sem_aggr.adb (Discr_Present): use Inherited_Discriminant to prevent a
7763 double expansion of the aggregate appearing in a context that delays
7764 expansion, to prevent double insertion of discriminant values when the
7765 aggregate is reanalyzed.
7767 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7769 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Do not use
7770 Allocator as the Related_Node of Return_Obj_Access in call to
7771 Make_Temporary below as this would create a sort of infinite
7774 2010-06-17 Ben Brosgol <brosgol@adacore.com>
7776 * gnat_ugn.texi: Update gnatcheck doc.
7778 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7780 * sem_ch3.adb (Build_Incomplete_Type_Declaration): If there is an
7781 incomplete view of the type that is not tagged, and the full type is a
7782 tagged extension, create class_wide type now, and warn that the
7783 incomplete view should be tagged as well.
7785 2010-06-17 Vincent Celier <celier@adacore.com>
7787 * gnatcmd.adb (Non_VMS_Usage): Do not issue usage for gnat sync.
7788 Update the last line of the usage, indicating what commands do not
7789 accept project file switches.
7790 * vms_conv.adb: Do not issue usage line for GNAT SYNC
7791 * vms_data.ads: Fix errors in the qualifiers /LOGFILE and /MAIN of
7793 * gnat_ugn.texi: Document the relaxed rules for library directories in
7794 externally built library projects.
7796 2010-06-17 Doug Rupp <rupp@adacore.com>
7798 * s-auxdec-vms_64.ads: Make boolean and arithmetic operations intrinsic
7800 * s-auxdec-vms-alpha.adb: Remove kludges for aforemention.
7801 * gcc-interface/Makefile.in: Update VMS target pairs.
7803 2010-06-17 Vasiliy Fofanov <fofanov@adacore.com>
7805 * adaint.c: Reorganized in order to avoid use of GetProcessId to stay
7806 compatible with Windows NT 4.0 which doesn't provide this function.
7808 2010-06-17 Vincent Celier <celier@adacore.com>
7810 * ali-util.adb (Time_Stamp_Mismatch): In Verbose mode, if there is
7811 different timestamps but the checksum is the same, issue a short
7814 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7816 * s-interr.adb (Finalize): If the Abort_Task signal is set to system,
7817 it means that we cannot reset interrupt handlers since this would
7818 require potentially sending the abort signal to the Server_Task.
7820 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7822 * exp_ch4.adb: expand NOT for VMS types.
7823 * sem_util.adb: Use OpenVMS_On_Target for IS_VMS_Operator.
7825 2010-06-17 Sergey Rybin <rybin@adacore.com>
7827 * vms_data.ads: Add qualifier for '--no-elim-dispatch' gnatelim option.
7828 * gnat_ugn.texi (gnatelim): add description for --no-elim-dispatch
7831 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7833 * exp_ch6.adb (Expand_Call): Do not expand a call to an internal
7834 protected operation if the subprogram has been eliminated.
7836 2010-06-17 Vincent Celier <celier@adacore.com>
7838 * prj-nmsc.adb (Check_Library_Attributes): Allow the different
7839 directories associated with a library to be any directory when the
7840 library project is externally built.
7842 2010-06-17 Vincent Celier <celier@adacore.com>
7844 * make.adb (Check): If switch -m is used, deallocate the memory that
7845 may be allocated when computing the checksum.
7847 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7849 * g-socthi-mingw.adb (C_Recvmsg): Add 'use type' clause for C.size_t;
7850 (C_Sendmsg): Likewise.
7852 2010-06-17 Thomas Quinot <quinot@adacore.com>
7854 * sem_res.adb: Update comments.
7856 2010-06-17 Vincent Celier <celier@adacore.com>
7858 * back_end.adb (Scan_Compiler_Arguments): Process last argument
7860 2010-06-17 Robert Dewar <dewar@adacore.com>
7862 * exp_ch3.adb, exp_ch6.adb, exp_smem.adb, exp_util.adb: Use Ekind_In.
7863 * layout.adb, freeze.adb: Use Make_Temporary.
7865 2010-06-17 Jerome Lambourg <lambourg@adacore.com>
7867 * exp_ch11.adb (Expand_N_Raise_Statement): Expand raise statements in
7868 .NET/JVM normally as this is now perfectly supported by the backend.
7870 2010-06-17 Pascal Obry <obry@adacore.com>
7872 * gnat_rm.texi: Fix minor typo, remove duplicate blank lines.
7874 2010-06-17 Vincent Celier <celier@adacore.com>
7876 * make.adb (Collect_Arguments_And_Compile): Create include path file
7877 only when -x is specified.
7879 * opt.ads (Use_Include_Path_File): New Boolean flag, initialized to
7881 * prj-env.adb (Set_Ada_Paths): New Boolean parameters Include_Path and
7882 Objects_Path, defaulted to True. Only create include path file if
7883 Include_Path is True, only create objects path file if Objects_Path is
7885 * prj-env.ads (Set_Ada_Paths): New Boolean parameters Include_Path and
7886 Objects_Path, defaulted to True.
7887 * switch-m.adb (Scan_Make_Switches): Set Use_Include_Path_File to True
7890 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7892 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
7893 determine whether it has the controlling type, when the formal is an
7896 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7898 * s-crtl.ads (ssize_t): New type.
7899 (read): Fix signature.
7901 * g-socthi.ads: Add 'with System.CRTL' clause. Remove ssize_t and
7902 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7903 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7904 (C_Sendmsg): Likewise.
7905 * g-socthi.adb (Syscall_Recvmsg): Likewise.
7906 (Syscall_Sendmsg): Likewise.
7907 (C_Recvmsg): Likewise.
7908 (C_Sendmsg): Likewise.
7909 * g-socthi-mingw.ads: Add 'with System.CRTL' clause. Remove ssize_t
7910 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7911 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7912 (C_Sendmsg): Likewise.
7913 * g-socthi-mingw.adb (C_Recvmsg): Likewise.
7914 (C_Sendmsg): Likewise.
7915 * g-socthi-vms.ads: Add 'with System.CRTL' clause. Remove ssize_t and
7916 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7917 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7918 (C_Sendmsg): Likewise.
7919 * g-socthi-vms.adb (C_Recvmsg): Likewise.
7920 (C_Sendmsg): Likewise.
7921 * g-socthi-vxworks.ads Add 'with System.CRTL' clause. Remove ssize_t
7922 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7923 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7924 (C_Sendmsg): Likewise.
7925 * g-socthi-vxworks.adb (C_Recvmsg): Likewise.
7926 (C_Sendmsg): Likewise.
7927 * g-sercom-linux.adb (Read): Use correct types to call 'read'.
7928 (Write): Likewise to call 'write'.
7929 * s-os_lib.adb (Read): Use correct type to call System.CRTL.read.
7930 (Write): Use correct type to call System.CRTL.write.
7931 * s-tasdeb.adb (Write): Likewise.
7933 2010-06-17 Vincent Celier <celier@adacore.com>
7935 * prj-proc.adb (Copy_Package_Declarations): Change argument name
7936 Naming_Restricted to Restricted. If Restricted is True, do not copy the
7937 value of attribute Linker_Options.
7939 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7941 * gcc-interface/trans.c (push_stack, pop_stack): Delete.
7942 (Case_Statement_to_gnu): Adjust.
7943 (Loop_Statement_to_gnu): Likewise.
7944 (Subprogram_Body_to_gnu): Likewise.
7945 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
7946 (Compilation_Unit_to_gnu): Likewise.
7948 2010-06-17 Robert Dewar <dewar@adacore.com>
7950 * exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb, exp_prag.adb,
7951 exp_sel.adb, exp_util.adb, sem_ch10.adb, sem_ch12.adb, sem_ch13.adb,
7952 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb, sem_ch9.adb,
7953 sem_dist.adb, sem_util.adb: Use Make_Temporary
7954 * itypes.ads, tbuild.ads: Minor comment update
7955 * exp_ch9.adb, exp_dist.adb: Minor reformatting
7957 2010-06-17 Thomas Quinot <quinot@adacore.com>
7959 * exp_imgv.adb, exp_ch7.ads: Minor reformatting.
7961 2010-06-17 Robert Dewar <dewar@adacore.com>
7963 * exp_ch9.adb, exp_disp.adb, exp_dist.adb: Use Make_Temporary.
7965 2010-06-17 Thomas Quinot <quinot@adacore.com>
7967 * sprint.adb (pg): Set Dump_Freeze_Null, to be consistent with -gnatdg.
7969 2010-06-17 Robert Dewar <dewar@adacore.com>
7971 * exp_ch6.adb, exp_ch7.adb, exp_ch5.adb: Use Make_Temporary
7972 * tbuild.ads (Make_Temporary): More comment updates
7973 * tbuild.adb: Minor reformatting
7975 2010-06-17 Robert Dewar <dewar@adacore.com>
7977 * checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch11.adb,
7978 exp_ch3.adb, exp_ch4.adb: Minor code reorganization.
7980 * tbuild.ads, tbuild.adb (Make_Temporary): Clean up, use Entity_Id
7982 (Make_Temporary): Add more extensive documentation
7984 2010-06-17 Robert Dewar <dewar@adacore.com>
7986 * sem_intr.adb, sem_prag.adb, sem_res.adb, sem_type.adb, sem_util.adb,
7987 sem_warn.adb, sem_eval.adb: Minor reformatting. Use Ekind_In.
7988 (Set_Slice_Subtype): Explicitly freeze the slice's itype at the point
7989 where the slice's actions are inserted.
7990 (Decompose_Expr): Account for possible rewriting of slice bounds
7991 resulting from side effects suppression caused by the above freezing,
7992 so that folding of bounds is preserved by such rewriting.
7994 2010-06-17 Robert Dewar <dewar@adacore.com>
7996 * einfo.ads, einfo.adb (Get_Record_Representation_Clause): New
7998 * freeze.adb (Freeze_Record_Type): Add call to
7999 Check_Record_Representation_Clause.
8000 * sem_ch13.adb (Check_Record_Representation_Clause): New function
8001 (Analyze_Record_Representation_Clause): Split out overlap code into
8003 (Check_Component_Overlap): Moved inside
8004 Check_Record_Representation_Clause.
8005 * sem_ch13.ads (Check_Record_Representation_Clause): New function.
8007 2010-06-17 Robert Dewar <dewar@adacore.com>
8009 * back_end.adb, sem_res.adb, switch-c.adb, sem_scil.adb: Minor
8011 * sem_attr.adb, sem_cat.adb, sem_disp.adb, sem_elab.adb, sem_elim.adb,
8012 sem_eval.adb: Use Ekind_In
8014 2010-06-17 Ed Schonberg <schonberg@adacore.com>
8016 * sem_ch8.adb: better error message for illegal inherited discriminant
8018 2010-06-17 Vincent Celier <celier@adacore.com>
8020 * bindusg.adb: Remove lines for -A and -C
8021 * gnat_ugn.texi: Remove all documentation and examples of switches -A
8022 and -C for gnatbind and gnatlink.
8023 * gnatlink.adb (Usage): Remove lines for -A and -C
8024 * switch-b.adb (Scan_Binder_Switches): Issue warning when switch -C is
8026 * gcc-interface/Make-lang.in: Update dependencies.
8028 2010-06-17 Vincent Celier <celier@adacore.com>
8030 * back_end.adb (Scan_Compiler_Arguments): Put all arguments in new
8031 local Argument_List variable Args.
8032 * switch-c.adb (Scan_Front_End_Switches): New Argument_List argument
8034 (Switch_Subsequently_Cancelled): New Argument_List argument Args. Look
8035 for subsequent switches in Args.
8036 * switch-c.ads (Scan_Front_End_Switches): New Argument_List argument
8038 * gcc-interface/Make-lang.in: Update dependencies.
8040 2010-06-17 Robert Dewar <dewar@adacore.com>
8042 * einfo.adb: Minor code fix, allow E_Class_Wide_Type for
8043 Equivalent_Type to match documentation.
8045 2010-06-17 Robert Dewar <dewar@adacore.com>
8047 * sem_ch6.adb, sem_ch7.adb: Minor reformatting.
8048 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_ch10.adb, sem_ch12.adb,
8049 sem_ch4.adb, sem_ch8.adb, sem_ch13.adb: Make use of Ekind_In.
8051 2010-06-17 Thomas Quinot <quinot@adacore.com>
8053 * sem_res.adb (Set_Slice_Subtype): Always freeze the slice's itype.
8055 2010-06-17 Thomas Quinot <quinot@adacore.com>
8057 * freeze.adb (Freeze_Expression): Short circuit operators are valid
8058 freeze node insertion points.
8060 2010-06-17 Robert Dewar <dewar@adacore.com>
8062 * switch-c.ads, switch-c.adb, sem_ch13.adb: Minor reformatting.
8063 * sem_ch12.adb: Add pragmas Assert and Check to previous change.
8065 2010-06-17 Gary Dismukes <dismukes@adacore.com>
8067 * layout.adb (Layout_Type): Broaden test for setting an array type's
8068 Component_Size to include all scalar types, not just discrete types
8069 (components of real types were missed).
8070 * sem_ch3.adb (Constrain_Index): Add missing setting of First_Literal
8071 on the itype created for an index (consistent with Make_Index and
8072 avoids possible Assert_Failures).
8074 2010-06-17 Robert Dewar <dewar@adacore.com>
8076 * atree.ads, atree.adb: Add 6-parameter version of Ekind_In
8077 * einfo.adb: Minor code reformatting (use Ekind_In)
8079 2010-06-17 Robert Dewar <dewar@adacore.com>
8081 * sem_warn.adb (Test_Ref): Abandon scan if access subprogram parameter
8084 2010-06-17 Vincent Celier <celier@adacore.com>
8086 * back_end.adb: Minor comment updates
8087 * switch-c.adb: Remove dependencies on gcc C sources
8088 * gcc-interface/Make-lang.in: Add a-comlin.o to the object file list
8091 2010-06-17 Ed Schonberg <schonberg@adacore.com>
8093 * sem_ch12.adb: propagate Pragma_Enabled flag to generic.
8094 * get_scos.adb: Set C2 flag in decision entry of pragma to 'e'.
8095 * par_sco.ads, par_sco.adb (Set_SCO_Pragma_Enabled): New procedure
8096 Remove use of Node field in SCOs table
8097 (Output_Header): Set 'd' to initially disable pragma entry
8098 * put_scos.adb (Put_SCOs): New flag indicating if pragma is enabled
8099 * scos.ads, scos.adb: Remove Node field from internal SCOs table.
8100 Use C2 field of pragma decision header to indicate enabled.
8101 * sem_prag.adb: Add calls to Set_SCO_Pragma_Enabled.
8102 * gcc-interface/Make-lang.in: Update dependencies.
8104 2010-06-17 Vincent Celier <celier@adacore.com>
8106 * back_end.adb (Next_Arg): Moved to procedure Scan_Compiler_Arguments
8107 (Scan_Compiler_Arguments): Call Scan_Front_End_Switches with Next_Arg
8108 (Switch_Subsequently_Cancelled): Function moved to the body of Switch.C
8109 * back_end.ads (Scan_Front_End_Switches): Function moved to the body of
8111 * switch-c.adb: Copied a number of global declarations from
8113 (Len_Arg): New function copied from back_end.adb
8114 (Switch_Subsequently_Cancelled): New function moved from back_end.adb
8115 (Scan_Front_End_Switches): New parameter Arg_Rank used to call
8116 Switch_Subsequently_Cancelled.
8117 * switch-c.ads (Scan_Front_End_Switches): New parameter Arg_Rank.
8118 * gcc-interface/Makefile.in: Add line so that shared libgnat is linked
8119 with -lexc on Tru64.
8121 2010-06-17 Robert Dewar <dewar@adacore.com>
8123 * prj.ads, prj.adb: Minor reformatting
8125 2010-06-17 Thomas Quinot <quinot@adacore.com>
8127 * put_scos.adb: Do not generate a blank line in SCOs when omitting the
8128 CP line for a disabled pragma.
8130 2010-06-17 Emmanuel Briot <briot@adacore.com>
8132 * prj-proc.adb, prj.adb, prj.ads (Check_Or_Set_Typed_Variable): New
8134 (Process_Declarative_Item): An invalid value in an typed variable
8135 declaration is no longer always fatal.
8137 2010-06-16 Arnaud Charlet <charlet@adacore.com>
8139 * get_scos.adb, par_sco.adb, par_sco.ads, put_scos.adb, scos.adb,
8140 scos.ads, exp_ch4.adb, sem_warn.adb: Code clean up, update
8143 2010-06-16 Javier Miranda <miranda@adacore.com>
8145 * exp_disp.adb (Expand_Dispatching_Call): Adjust the decoration of the
8146 node referenced by the SCIL node of dispatching "=" to skip the tags
8149 2010-06-16 Ed Schonberg <schonberg@adacore.com>
8151 * sem_ch5.adb (Analyze_Exit_Statement): Return if no enclosing loop,
8152 to prevent cascaded errors and compilation aborts.
8154 2010-06-16 Robert Dewar <dewar@adacore.com>
8156 * back_end.adb (Switch_Subsequently_Cancelled): New function
8157 Move declarations to package body level to support this change
8158 * back_end.ads (Switch_Subsequently_Cancelled): New function
8159 * gnat_ugn.texi: Document -gnat-p switch
8160 * switch-c.adb (Scan_Front_End_Switches): Implement -gnat-p switch
8161 * ug_words: Add entry for -gnat-p (UNSUPPRESS_ALL)
8162 * usage.adb: Add line for -gnat-p switch
8163 * vms_data.ads: Add entry for UNSUPPRESS_ALL (-gnat-p)
8165 2010-06-16 Robert Dewar <dewar@adacore.com>
8167 * sem_warn.adb (Check_Infinite_Loop_Warning): Declaration counts as
8170 2010-06-16 Robert Dewar <dewar@adacore.com>
8172 * exp_disp.adb: Minor reformatting
8174 2010-06-16 Ed Schonberg <schonberg@adacore.com>
8176 * sem_ch3.adb (Complete_Private_Subtype): Inherit class_wide type from
8177 base type only if it was not previously created for the partial view.
8179 2010-06-16 Thomas Quinot <quinot@adacore.com>
8181 * tbuild.ads: Minor comment fix
8183 2010-06-15 Nathan Froyd <froydnj@codesourcery.com>
8185 * gcc-interface/trans.c (gnu_stack_free_list): Delete.
8186 (gnu_except_ptr_stack): Change type to VEC. Update comment.
8187 (gnu_elab_proc_stack): Likewise.
8188 (gnu_return_label_stack): Likewise.
8189 (gnu_loop_label_stack): Likewise.
8190 (gnu_switch_label_stack): Likewise.
8191 (gnu_constraint_label_stack): Likewise.
8192 (gnu_storage_error_label_stack): Likewise.
8193 (gnu_program_error_label_stack): Likewise.
8194 (push_exception_label_stack): Take a VEC ** instead of a tree *.
8195 (push_stack): Likewise. Remove unused second parameter. Update
8197 (pop_stack): Take a VEC * instead of a tree *. Update callers.
8198 (gigi): Initialize stacks as VECs.
8199 (Identifier_to_gnu): Use VEC_last instead of TREE_VALUE.
8200 (Case_Statement_to_gnu): Likewise.
8201 (Subprogram_Body_to_gnu): Likewise.
8202 (call_to_gnu): Likewise.
8203 (Exception_Handler_to_gnu_sjlj): Likewise.
8204 (gnat_to_gnu): Likewise.
8205 (get_exception_label): Likewise.
8207 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8209 * sem_ch3.adb (Build_Derived_Record_Type): if derived type is an
8210 anonymous base generated when the parent is a constrained discriminated
8211 type, propagate interface list to first subtype because it may appear
8212 in a current instance within the extension part of the derived type
8213 declaration, and its own subtype declaration has not been elaborated
8215 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
8216 determine whether it has the controlling type.
8218 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
8220 * exp_ch11.adb (Expand_N_Raise_Statement): Make sure that the explicit
8221 raise of CE, SE and PE have the reason correctly set and are properly
8222 expanded before stopping the expansions of .NET/JVM exceptions.
8224 2010-06-14 Robert Dewar <dewar@adacore.com>
8226 * opt.ads (Check_Policy_List): Add some clarifying comments
8227 * sem_prag.adb (Analyze_Pragma, case Check): Set Pragma_Enabled flag
8228 on rewritten Assert pragma.
8230 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8232 * sem_ch6.adb (Check_Overriding_Indicator): Add a special check for
8233 controlled operations, so that they will be treated as overriding even
8234 if the overridden subprogram is marked Is_Hidden, as long as the
8235 overridden subprogram's parent subprogram is not hidden.
8237 2010-06-14 Robert Dewar <dewar@adacore.com>
8239 * debug.adb: Entry for gnatw.d no longer specific for while loops
8240 * einfo.adb (First_Exit_Statement): New attribute for E_Loop
8241 * einfo.ads (First_Exit_Statement): New attribute for E_Loop
8242 * sem_ch5.adb (Analyze_Loop_Statement): Check_Infinite_Loop_Warning has
8243 new calling sequence to include test for EXIT WHEN.
8244 (Analyze_Exit_Statement): Chain EXIT statement into exit statement
8246 * sem_warn.ads, sem_warn.adb (Check_Infinite_Loop_Warning): Now handles
8248 * sinfo.adb (Next_Exit_Statement): New attribute of N_Exit_Statement
8250 * sinfo.ads (N_Pragma): Correct comment on Sloc field (points to
8251 PRAGMA, not to pragma identifier).
8252 (Next_Exit_Statement): New attribute of N_Exit_Statement node
8254 2010-06-14 Robert Dewar <dewar@adacore.com>
8256 * sem_res.adb (Resolve_Short_Circuit): Fix sloc of "assertion/check
8259 2010-06-14 Robert Dewar <dewar@adacore.com>
8261 * par-ch2.adb (Scan_Pragma_Argument_Association): Clarify message for
8262 missing pragma argument identifier.
8264 2010-06-14 Robert Dewar <dewar@adacore.com>
8266 * atree.ads, atree.adb (Ekind_In): New functions.
8268 2010-06-14 Robert Dewar <dewar@adacore.com>
8270 * exp_ch4.adb (Expand_N_Op_Expon): Optimize 2**N in stand alone context
8272 2010-06-14 Robert Dewar <dewar@adacore.com>
8274 * usage.adb (Usage): Redo documentation of -gnatwa.
8276 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8278 * sem_ch8.adb (Find_Type): The attribute 'class cannot be applied to
8279 an untagged incomplete type that is a limited view.
8281 2010-06-14 Sergey Rybin <rybin@adacore.com>
8283 * gnat_ugn.texi: Add description of '-cargs gcc_switches' to gnatstub
8286 2010-06-14 Thomas Quinot <quinot@adacore.com>
8288 * exp_ch4.adb (Expand_Short_Circuit_Operator): New subprogram,
8289 factoring duplicated code between...
8290 (Expand_N_And_Than, Expand_N_Or_Else): Remove duplicated code.
8291 * a-envvar.ads: Minor reformatting
8293 2010-06-14 Arnaud Charlet <charlet@adacore.com>
8295 * ali.adb, ali.ads, lib-xref.ads: Document new '+' letter for C/C++
8297 (Scan_ALI): Take into account new Visibility field.
8298 (Visibility_Kind): New type.
8299 (Xref_Entity_Record): Replace Lib field by Visibility.
8301 * gcc-interface/Make-lang.in: Update dependencies.
8303 2010-06-14 Pascal Obry <obry@adacore.com>
8305 * raise.h: Remove unused defintions.
8307 2010-06-14 Bob Duff <duff@adacore.com>
8309 * par-ch10.adb (P_Subunit): If the next token after "separate(X)" is
8310 Tok_Not or Tok_Overriding, call P_Subprogram. We had previously given
8311 the incorrect error "proper body expected".
8312 * par-ch6.adb (P_Subprogram): Suppress "overriding indicator not
8313 allowed here" error in case of subunits, which was triggered by the
8314 above change to P_Subunit.
8316 2010-06-14 Sergey Rybin <rybin@adacore.com>
8318 * gnat_ugn.texi, vms_data.ads: Update gnatelim doc.
8320 2010-06-14 Thomas Quinot <quinot@adacore.com>
8322 * lib-util.adb: Minor code reorganization.
8324 2010-06-14 Robert Dewar <dewar@adacore.com>
8326 * ali.adb (Scan_ALI): Implement reading and storing of N lines
8327 (Known_ALI_Lines): Add entry for 'N' (notes)
8328 * ali.ads (Notes): New table to store Notes information
8329 * alloc.ads: Add entries for Notes table
8330 * lib-util.adb (Write_Info_Int): New procedure
8331 (Write_Info_Slit): New procedure
8332 (Write_Info_Uint): New procedure
8333 * lib-util.ads (Write_Info_Int): New procedure
8334 (Write_Info_Slit): New procedure
8335 (Write_Info_Uint): New procedure
8336 * lib-writ.adb (Write_Unit_Information): Output N (notes) lines
8337 * lib-writ.ads: Update documentation for N (Notes) lines
8338 * lib.adb (Store_Note): New procedure
8339 * lib.ads (Notes): New table
8340 (Store_Note): New procedure
8341 * sem_prag.adb: Call Store_Note for affected pragmas
8343 2010-06-14 Thomas Quinot <quinot@adacore.com>
8345 * socket.c: Fix wrong condition in #ifdef
8346 * g-socket.adb, g-sothco.ads: Functions imported from socket.c that
8347 take or return char* values can't use Interfaces.C.Strings.chars_ptr,
8348 because on VMS this type is a 32-bit pointer which is not compatible
8349 with the default for C pointers for code compiled with gcc on that
8352 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8354 * sem_util (Is_VMS_Operator): New predicate to determine whether an
8355 operator is an intrinsic operator declared in the DEC system extension.
8356 * sem_res.adb (Resolve_Logical_Op): operation is legal on signed types
8357 if the operator is a VMS intrinsic.
8358 * sem_eval.adb (Eval_Logical_Op): Operation is legal and be
8359 constant-folded if the operands are signed and the operator is a VMS
8362 2010-06-14 Robert Dewar <dewar@adacore.com>
8364 * g-socket.adb, gnatcmd.adb: Minor reformatting.
8366 2010-06-14 Pascal Obry <obry@adacore.com>
8368 * s-finimp.adb: Fix typo.
8369 * raise.h: Remove duplicate blank line.
8371 2010-06-14 Vincent Celier <celier@adacore.com>
8373 * prj-nmsc.adb (Add_Sources): Always set the object file and the
8374 switches file names, as the configuration of the language may change
8375 in an extending project.
8376 (Process_Naming_Scheme): For sources of projects that are extended, set
8377 the configuration of the language from the highest extending project
8378 where the language is declared.
8380 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8382 * sem_res.adb (Resolve_Call): For infinite recursion check, test
8383 whether the called subprogram is inherited from a containing
8385 (Same_Or_Aliased_Subprograms): New function
8387 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8389 * sem_ch8.adb (End_Use_Type): Before indicating that an operator is not
8390 use-visible, check whether it is a primitive for more than one type.
8392 2010-06-14 Robert Dewar <dewar@adacore.com>
8394 * sem_ch3.adb (Copy_And_Swap): Copy Has_Pragma_Unmodified flag.
8396 * sem_ch7.adb (Preserve_Full_Attributes): Preserve
8397 Has_Pragma_Unmodified flag.
8399 2010-06-14 Thomas Quinot <quinot@adacore.com>
8401 * g-sttsne-locking.adb, g-sttsne-locking.ads, g-sttsne.ads,
8402 g-sttsne-vxworks.adb, g-sttsne-dummy.ads: Removed. Mutual exclusion is
8403 now done in GNAT.Sockets if necessary.
8404 * gsocket.h, g-socket.adb, g-sothco.ads (GNAT.Sockets.Get_XXX_By_YYY):
8405 Ensure mutual exclusion for netdb operations if the target platform
8407 (GNAT.Sockets.Thin_Common): New binding for getXXXbyYYY, treating
8408 struct hostent as an opaque type to improve portability.
8409 * s-oscons-tmplt.c, socket.c: For the case of Vxworks, emulate
8410 gethostbyYYY using proprietary VxWorks API so that a uniform interface
8411 is available for the Ada side.
8412 * gcc-interface/Makefile.in: Remove g-sttsne-*
8413 * gcc-interface/Make-lang.in: Update dependencies.
8415 2010-06-14 Vincent Celier <celier@adacore.com>
8417 * gnatcmd.adb (Mapping_File): New function.
8419 2010-06-14 Javier Miranda <miranda@adacore.com>
8421 * sem_ch3.adb (Derive_Subprograms): Remove over-restrictive assertion.
8423 2010-06-14 Arnaud Charlet <charlet@adacore.com>
8425 * ali.adb: Fix typo.
8426 * s-auxdec-vms-alpha.adb, scng.ads: Minor reformatting.
8428 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8430 * sem_ch12.adb: Make Mark_Context transitive, and apply to subprogram
8433 * sem_ch8.adb (Find_Expanded_Name): If a candidate compilation unit in
8434 the context does not have a homonym of the selector, emit default
8437 2010-06-14 Robert Dewar <dewar@adacore.com>
8439 * sem.adb, sem_ch12.adb, sem_util.adb: Minor reformatting and
8442 2010-06-14 Arnaud Charlet <charlet@adacore.com>
8444 * lib-xref.ads: Doc updates:
8445 - Allocate 'Q' for #include entity kind
8447 - Allocate 'g' for regular macros
8448 - Allocate 'G' for function-like macros
8450 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8452 * sinfo.ads, sinfo.adb (Withed_Body): New attribute of a with_clause.
8453 Indicates that there is an instantiation in the current unit that
8454 loaded the body of the unit denoted by the with_clause.
8455 * sem_ch12.adb (Mark_Context): When instanting a generic body, check
8456 whether a with_clause in the current context denotes the unit that
8457 holds the generic declaration, and mark the with_clause accordingly.
8458 (Instantiate_Package_Body): call Mark_Context.
8459 * sem.adb (Process_Bodies_In_Context): Use Withed_Body to determine
8460 whether a given body should be traversed before the spec of the main
8463 2010-06-14 Ed Falis <falis@adacore.com>
8465 * sysdep.c: Fix 653 build against vThreads headers.
8467 2010-06-14 Robert Dewar <dewar@adacore.com>
8469 * sinfo.ads: Minor reformatting.
8471 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8473 * sem_ch6.adb (Analyze_Subprogram_Body): Do not check conformance when
8474 the spec has been generated for a body without spec that carries an
8475 Inline_Always pragma.
8477 2010-06-14 Arnaud Charlet <charlet@adacore.com>
8479 * lib-xref.ads: Documentation change: allocate 'Z' letter to C/C++
8482 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
8484 * exp_dbug.adb (Debug_Renaming_Declaration): Do not output any debug
8485 declaration for VMs, as those are useless and might lead to duplicated
8486 local variable names in the generated code.
8487 * gcc-interface/Make-lang.in: Update dependencies.
8489 2010-06-14 Robert Dewar <dewar@adacore.com>
8491 * opt.ads, sem.adb, sem_elab.adb: Minor reformatting
8493 2010-06-14 Robert Dewar <dewar@adacore.com>
8495 * exp_aggr.adb (Has_Address_Clause): Moved to Exp_Util, and there it
8496 is renamed as Has_Following_Address_Clause.
8497 * exp_ch3.adb (Needs_Simple_Initialization): Add Consider_IS argument
8498 to allow the caller to avoid Initialize_Scalars having an effect.
8499 (Expand_N_Object_Declaration): Do not do Initialize_Scalars stuff for
8500 scalars with an address clause specified.
8501 * exp_ch3.ads (Needs_Simple_Initialization): Add Consider_IS argument
8502 to allow the caller to avoid Initialize_Scalars having an effect.
8503 * exp_util.adb (Has_Following_Address_Clause): Moved here from Exp_Aggr
8504 (where it was called Has_Address_Clause).
8505 * exp_util.ads (Has_Following_Address_Clause): Moved here from Exp_Aggr
8506 (where it was called Has_Address_Clause).
8507 * freeze.adb (Warn_Overlay): Suppress message about overlaying causing
8508 problems for Initialize_Scalars (since we no longer initialize objects
8509 with an address clause.
8511 2010-06-14 Robert Dewar <dewar@adacore.com>
8513 * exp_prag.adb (Expand_Pragma_Check): Set Loc of generated code from
8516 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8518 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Debug_Info_Needed
8519 on the entity of an implicitly generated postcondition procedure.
8521 2010-06-14 Thomas Quinot <quinot@adacore.com>
8523 * sem_ch7.adb (Preserve_Full_Attributes): Propagate
8524 Discriminant_Constraint elist from full view to private view.
8526 2010-06-14 Robert Dewar <dewar@adacore.com>
8528 * sem_res.adb: Minor reformatting.
8530 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8532 * sem.adb: New version of unit traversal.
8534 * sem_elab.adb (Check_Internal_Call): Do not place a call appearing
8535 within a generic unit in the table of delayed calls.
8537 2010-06-14 Robert Dewar <dewar@adacore.com>
8539 * gnatcmd.adb, sem_util.adb, exp_ch3.adb: Minor reformatting
8541 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8543 * sem_ch12.adb (Save_References): If an identifier has been rewritten
8544 during analysis as an explicit dereference, keep the reference implicit
8545 in the generic, but preserve the entity if global. This prevents
8546 malformed generic trees in the presence of some nested generics.
8548 2010-06-14 Sergey Rybin <rybin@adacore.com>
8550 * gnat_ugn.texi: For the GNAT driver, clarify the effect of calling the
8551 tool with '-files=' option. Also fix some small errors (wrong brackets)
8553 2010-06-14 Vincent Celier <celier@adacore.com>
8555 * gnatbind.adb: Call Scan_ALI with Directly_Scanned set to True for all
8556 the ALI files on the command line.
8558 * ali.adb (Scan_ALI): Set component Directly_Scanned of the unit(s) to
8559 the same value as the parameter of the same name.
8560 * ali.ads (Scan_ALI): New Boolean parameter Directly_Scanned, defaulted
8562 * bindgen.adb (Gen_Versions_Ada): Never emit version symbols for
8563 Stand-Alone Library interfaces. When binding Stand-Alone Libraries,
8564 emit version symbols only for the units of the library.
8565 (Gen_Versions_C): Ditto.
8567 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8569 * sem_ch4.adb: Fix typo.
8571 2010-06-14 Vasiliy Fofanov <fofanov@adacore.com>
8573 * s-oscons-tmplt.c (IOV_MAX): redefine on Tru64 and VMS since the
8574 vector IO doesn't work at default value properly.
8576 2010-06-14 Doug Rupp <rupp@adacore.com>
8578 * s-stoele.adb: Remove unnecessary qualification of To_Address for VMS.
8580 2010-06-14 Vincent Celier <celier@adacore.com>
8582 * gnatcmd.adb (Check_Files): Do not invoke the tool with all the
8583 sources of the project if a switch -files= is used.
8585 2010-06-14 Thomas Quinot <quinot@adacore.com>
8587 * exp_attr.adb: Minor reformatting.
8589 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8591 * gnat_ugn.texi: Minor typo fixes and wording changes.
8593 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8595 * sem_ch4.adb (Analyze_One_Call): If the call has been rewritten from a
8596 prefixed form, do not re-analyze first actual, which may need an
8597 implicit dereference.
8598 * sem_ch6.adb (Analyze_Procedure_Call): If the call is given in
8599 prefixed notation, the analysis will rewrite the node, and possible
8600 errors appear in the rewritten name of the node.
8601 * sem_res.adb: If a call is ambiguous because its first parameter is
8602 an overloaded call, report list of candidates, to clarify ambiguity of
8605 2010-06-14 Doug Rupp <rupp@adacore.com>
8607 * s-auxdec-vms-alpha.adb: New package body implementing legacy
8608 VAX instructions with Asm insertions.
8609 * s-auxdec-vms_64.ads: Inline VAX queue functions
8610 * s-stoele.adb: Resolve some ambiguities in To_Addresss with s-suxdec
8611 that show up only on VMS.
8612 * gcc-interface/Makefile.in: Provide translation for
8613 s-auxdec-vms-alpha.adb.
8615 2010-06-14 Olivier Hainque <hainque@adacore.com>
8617 * initialize.c (VxWorks section): Update comments.
8619 2010-06-14 Robert Dewar <dewar@adacore.com>
8621 * a-convec.adb, sem_prag.adb, checks.adb: Minor reformatting.
8623 2010-06-14 Eric Botcazou <ebotcazou@adacore.com>
8625 * init.c: Code clean up.
8627 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8629 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address): Do
8630 not insert address clause in table for later validation if type of
8631 entity is generic, to prevent possible spurious errors.
8633 * sem_ch8.adb: Code clean up.
8635 2010-06-14 Ben Brosgol <brosgol@adacore.com>
8637 * gnat_ugn.texi: Expanded @ovar macro inline to solve problem with
8638 texi2pdf and texi2html.
8639 Document how to change scheduling properties on HP-UX.
8641 2010-06-14 Thomas Quinot <quinot@adacore.com>
8643 * g-socket.ads: Remove misleading comments.
8645 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
8647 * sem_prag.adb (Check_Duplicated_Export_Name): Remove check for
8648 CLI_Target as this prevents proper detection of exported names
8649 duplicates when the exported language is different to CIL.
8650 (Process_Interface_Name): Add check for CIL convention exports,
8651 replacing the old one from Check_Duplicated_Export_Name.
8653 2010-06-14 Matthew Heaney <heaney@adacore.com>
8655 * a-coinve.adb, a-convec.adb (operator "&"): Check both that new length
8656 and new last satisfy constraints.
8657 (Delete_Last): prevent overflow for subtraction of index values
8658 (To_Vector): prevent overflow for addition of index values
8660 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8662 * sem_ch4.adb (Complete_Object_Operation): After analyzing the
8663 rewritten call, preserve the resulting type to prevent spurious errors,
8664 when the call is implicitly dereferenced in the context of an in-out
8667 * checks.adb (Apply_Discriminant_Check): If the target of the
8668 assignment is a renaming of a heap object, create constrained type for
8671 2010-06-14 Pascal Obry <obry@adacore.com>
8673 * prj-proc.adb: Fix copy of object directory for extending projects.
8675 2010-06-14 Jose Ruiz <ruiz@adacore.com>
8677 * init.c (__gnat_alternate_stack): Define this space for PowerPC linux
8678 (__gnat_install_handler, PowerPC linux): Activate the alternative
8681 2010-06-13 Gerald Pfeifer <gerald@pfeifer.com>
8683 * gnat_rm.texi: Move to GFDL version 1.3.
8684 * gnat-style.texi: Ditto.
8685 * gnat_ugn.texi: Ditto.
8687 2010-06-12 Kai Tietz <kai.tietz@onevision.com>
8690 * gcc-interface/Makefile.in: Add rules for multilib x86/x64
8693 2010-06-11 Alexandre Oliva <aoliva@redhat.com>
8695 * gcc-interface/utils.c (update_pointer_to): Initialize last.
8697 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
8699 * gcc-interface/ada-tree.h: Fix formatting nits.
8701 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8703 * gcc-interface/utils.c (init_gnat_to_gnu): Use typed GC
8705 (init_dummy_type): Likewise.
8706 (gnat_pushlevel): Likewise.
8708 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
8709 (Subprogram_Body_to_gnu): Likewise.
8710 (Compilation_Unit_to_gnu): Likewise.
8711 (start_stmt_group): Likewise.
8712 (extract_encoding): Likewise.
8713 (decode_name): Likewise.
8715 * gcc-interface/misc.c (gnat_printable_name): Likewise.
8717 * gcc-interface/decl.c (annotate_value): Likewise.
8719 * gcc-interface/ada-tree.h (struct lang_type): Add variable_size
8721 (struct lang_decl): Likewise.
8722 (SET_TYPE_LANG_SPECIFIC): Use typed GC allocation.
8723 (SET_DECL_LANG_SPECIFIC): Likewise.
8725 2010-06-04 Eric Botcazou <ebotcazou@adacore.com>
8727 * gnatlink.adb (gnatlink): Remove support for -fsjlj switch.
8728 * gcc-interface/lang-specs.h: Likewise.
8730 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
8733 * gcc-interface/decl.c (MAX_FIXED_MODE_SIZE): Removed.
8735 2010-06-01 Arnaud Charlet <charlet@adacore.com>
8737 * gnat_ugn.texi: Improve doc on -fdump-ada-spec, mention limitations.
8739 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
8741 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Task_Type>: Reuse the
8742 TYPE_DECL of the equivalent type instead of building a new one.
8744 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
8746 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust warning message.
8747 Fix nits in comments.
8748 * gcc-interface/misc.c (gnat_init_gcc_eh): Likewise.
8749 * gcc-interface/trans.c (gigi): Likewise.
8750 (Attribute_to_gnu): Likewise.
8751 (Case_Statement_to_gnu): Likewise.
8752 (gnat_to_gnu): Adjust warning message.
8753 * gcc-interface/utils.c (create_var_decl_1): Fix nits in comments.
8754 (build_vms_descriptor32): Likewise.
8756 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
8758 * gcc-interface/decl.c: Pretend to be a backend file by undefining
8759 IN_GCC_FRONTEND (still need rtl.h here).
8761 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8763 * gcc-interface/trans.c: Do not include rtl.h, insclude libfuncs.h.
8764 (gigi): Adjust call to set_stack_check_libfunc.
8766 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8768 * gcc-interface/utils.c: Do not include rtl.h.
8770 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
8772 * gcc-interface/utils.c: Do not include function.h, pointer-set.h,
8773 and gimple.h. Explain why rtl.h has to be included.
8774 (handle_vector_size_attribute): Call reconstruct_complex_type directly.
8775 * gcc-interface/targtyps.c: Do not include tm_p.h
8776 * gcc-interface/utils2.c: Do not include flags.h.
8777 * gcc-interface/trans.c: Do not include expr.h. Include rtl.h instead,
8778 and explain why it has to be included.
8779 * gcc-interface/misc.c: Do not include expr.h, libfuncs.h, cgraph.h,
8781 Include function.h and explain why. Explain why except.h is included.
8782 (enumerate_modes): Remove unused function.
8783 * gcc-interface/gigi.h (enumerate_modes): Remove prototype.
8784 * gcc-interface/Make-lang.in: Update dependencies.
8786 2010-05-25 Joseph Myers <joseph@codesourcery.com>
8788 * gcc-interface/misc.c (internal_error_function): Add context
8789 parameter. Use it to access show_column flag and instead of using
8790 global_dc. Call warn_if_plugins.
8791 * gcc-interface/Make-lang.in (ada/misc.o): Update dependencies.
8793 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
8795 * gcc-interface/misc.c (LANG_HOOKS_DEEP_UNSHARING): Redefine.
8796 * gcc-interface/trans.c (unshare_save_expr): Delete.
8797 (gigi): Do not unshare trees under SAVE_EXPRs here.
8799 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
8801 * gcc-interface/trans.c (call_to_gnu): Use build_call_vec instead of
8803 * gcc-interface/utils.c (build_function_stub): Likewise.
8805 2010-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
8807 * gcc-interface/misc.c (gnat_handle_option): Remove special logic
8808 for Wuninitialized without -O.
8810 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
8812 * gcc-interface/gigi.h (enum standard_datatypes): Add new value
8813 ADT_exception_data_name_id.
8814 (exception_data_name_id): New define.
8815 * gcc-interface/trans.c (gigi): Initialize it.
8816 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use the standard
8817 exception type for standard exception definitions. Do not make them
8819 <E_Record_Type>: Equate fields of types associated with an exception
8820 definition to those of the standard exception type.
8822 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
8824 * tracebak.c (__gnat_backtrace): Mark top_stack with ATTRIBUTE_UNUSED.
8826 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
8828 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Tidy up
8829 code, improve comments and fix formatting nits.
8831 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
8833 * gcc-interface/utils.c (update_pointer_to): Return early if the old
8834 pointer already points to the new type. Chain the old pointer and its
8835 variants at the end of new pointer's chain after updating them.
8837 2010-05-10 Eric Botcazou <ebotcazou@adacore.com>
8839 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables
8840 built for interfaces.
8841 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Use
8842 imported_p instead of Is_Imported when considering constants.
8843 Do not promote alignment of exported objects.
8844 <E_Record_Subtype>: Strip all suffixes for dispatch table entities.
8846 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8848 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables.
8849 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Make imported
8850 constants really constant.
8851 <E_Record_Subtype>: Strip the suffix for dispatch table entities.
8853 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8855 * gcc-interface/decl.c (make_aligning_type): Declare the type.
8857 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8859 * gcc-interface/decl.c (gnat_to_gnu_entity): Create variables for size
8860 expressions of variant part of record types declared at library level.
8862 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8864 * gcc-interface/gigi.h (create_field_decl): Move PACKED parameter.
8865 * gcc-interface/utils.c (create_field_decl): Move PACKED parameter.
8866 (rest_of_record_type_compilation): Adjust call to create_field_decl.
8867 (make_descriptor_field): Likewise and pass correctly typed constants.
8868 (build_unc_object_type): Likewise.
8869 (unchecked_convert): Likewise.
8870 * gcc-interface/decl.c (elaborate_expression_2): New static function.
8871 (gnat_to_gnu_entity): Use it to make alignment factors explicit.
8872 Adjust call to create_field_decl.
8873 (make_aligning_type): Likewise.
8874 (make_packable_type): Likewise.
8875 (maybe_pad_type): Likewise.
8876 (gnat_to_gnu_field): Likewise.
8877 (components_to_record): Likewise.
8878 (create_field_decl_from): Likewise.
8879 (create_variant_part_from): Remove superfluous test.
8880 * gcc-interface/trans.c (gigi): Adjust call to create_field_decl.
8882 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8884 * gcc-interface/gigi.h (build_unc_object_type): Add DEBUG_INFO_P param.
8885 (build_unc_object_type_from_ptr): Likewise.
8886 * gcc-interface/utils.c (build_unc_object_type): Add DEBUG_INFO_P param
8887 and pass it to create_type_decl. Declare the type. Simplify.
8888 (build_unc_object_type_from_ptr): Add DEBUG_INFO_P parameter and pass
8889 it to build_unc_object_type.
8890 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust to above change.
8891 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
8892 (gnat_to_gnu): Likewise.
8893 * gcc-interface/utils2.c (build_allocator): Likewise.
8895 2010-05-07 Eric Botcazou <ebotcazou@adacore.com>
8898 * gcc-interface/misc.c (gnat_handle_option): Fix long line.
8900 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8902 * gcc-interface/Makefile.in: Removed mips-sgi-irix5* support.
8904 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
8907 * gcc-interface/misc.c (gnat_handle_option): Add argument kind.
8909 2010-05-02 Giuseppe Scrivano <gscrivano@gnu.org>
8911 * gnathtml.pl: Use 755 as mask for new directories.
8913 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
8915 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Uniquize
8916 constant constructors before taking their address.
8918 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
8920 * exp_dbug.ads: Fix outdated description. Mention link between XVS
8922 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Set
8923 XVZ variable as unit size of XVS type.
8924 (maybe_pad_type): Likewise.
8926 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
8928 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Do not
8929 use memmove if the array type is bit-packed.
8931 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
8933 * gcc-interface/misc.c (gnat_init): Remove second argument in call to
8934 build_common_tree_nodes.
8936 2010-04-18 Ozkan Sezer <sezeroz@gmail.com>
8938 * gsocket.h: Make sure that winsock2.h is included before windows.h.
8940 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8942 * gcc-interface/utils2.c (build_unary_op) <ATTR_ADDR_EXPR>: Do not
8945 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8947 * uintp.h (UI_Lt): Declare.
8948 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do the size
8949 computation in sizetype.
8950 <E_Array_Subtype>: Use unified handling for all index types. Do not
8951 generate MAX_EXPR-based expressions, only COND_EXPR-based ones. Add
8953 (annotate_value): Change test for negative values.
8954 (validate_size): Apply test for negative values on GNAT nodes.
8955 (set_rm_size): Likewise.
8956 * gcc-interface/misc.c (gnat_init): Set unsigned types for sizetypes.
8957 * gcc-interface/utils.c (rest_of_record_type_compilation): Change test
8958 for negative values.
8959 (max_size) <MINUS_EXPR>: Do not reassociate a COND_EXPR on the LHS.
8960 (builtin_type_for_size): Adjust definition of signed_size_type_node.
8961 * gcc-interface/utils2.c (compare_arrays): Optimize comparison of
8962 lengths against zero.
8964 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8966 * back-end.adb (Call_Back_End): Pass Standard_Character to gigi.
8967 * gcc-interface/gigi.h (gigi): Add standard_character parameter.
8968 (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
8969 LONG_LONG_TYPE_SIZE, FLOAT_TYPE_SIZE, DOUBLE_TYPE_SIZE,
8970 LONG_DOUBLE_TYPE_SIZE, SIZE_TYPE): Delete.
8971 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Call
8973 * gcc-interface/misc.c (gnat_init): Set signedness of char as per
8974 flag_signed_char. Tag sizetype with "size_type" moniker.
8975 * gcc-interface/trans.c (gigi): Add standard_character parameter.
8976 Remove useless built-in types. Equate unsigned_char_type_node to
8977 Standard.Character. Use it instead of char_type_node throughout.
8978 (Attribute_to_gnu): Likewise.
8979 (gnat_to_gnu): Likewise.
8980 * gcc-interface/utils2.c (build_call_raise): Likewise.
8982 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8984 * gcc-interface/gigi.h (enum standard_datatypes): Add new values
8985 ADT_sbitsize_one_node and ADT_sbitsize_unit_node.
8986 (sbitsize_one_node): New macro.
8987 (sbitsize_unit_node): Likewise.
8988 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Fix
8989 latent bug in the computation of subrange_p. Fold wider_p predicate.
8990 (cannot_be_superflat_p): Use an explicitly signed 64-bit type to do
8991 the final comparison.
8992 (make_aligning_type): Build real negation and use sizetype throughout
8993 the offset computation.
8994 (maybe_pad_type): Do not issue the warning when the new size expression
8996 (annotate_value) <INTEGER_CST>: Simplify code handling negative values.
8997 * gcc-interface/misc.c (gnat_init): Initialize sbitsize_one_node and
8999 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Pool_Address>: Fold
9001 (gnat_to_gnu) <N_Free_Statement>: Likewise.
9002 * gcc-interface/utils.c (convert): Use sbitsize_unit_node.
9003 * gcc-interface/utils2.c (compare_arrays): Compute real lengths and use
9004 constants in sizetype. Remove dead code and tweak comments. Generate
9005 equality instead of inequality comparisons for zero length tests.
9007 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
9009 * gcc-interface/gigi.h (gnat_init_decl_processing): Delete.
9010 * gcc-interface/decl.c (gnat_to_gnu_entity): Constify a few variables.
9011 <object>: Do not create the fake PARM_DECL if no debug info is needed.
9012 Do not create the corresponding VAR_DECL of a CONST_DECL for debugging
9013 purposes if no debug info is needed.
9014 Fix formatting. Reorder and add comments.
9015 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Reference>: Constify
9016 variable and remove obsolete comment.
9017 * gcc-interface/utils.c (convert_vms_descriptor64): Tweak comment.
9018 (convert_vms_descriptor32): Likewise.
9019 (convert): Remove dead code.
9020 <UNCONSTRAINED_ARRAY_REF>: Pass the field instead of its name to build
9021 the reference to the P_ARRAY pointer.
9022 <POINTER_TYPE>: Likewise.
9023 (maybe_unconstrained_array) <UNCONSTRAINED_ARRAY_TYPE>: Likewise.
9024 (gnat_init_decl_processing): Delete, move contents to...
9025 * gcc-interface/misc.c (gnat_init): ...here.
9027 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
9029 * gcc-interface/trans.c (unchecked_conversion_nop): Handle function
9030 calls. Return true for conversion from a record subtype to its type.
9032 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
9034 * gcc-interface/decl.c (gnat_to_gnu_entity): Use boolean_type_node in
9035 lieu of integer_type_node for boolean operations.
9036 (choices_to_gnu): Likewise.
9037 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
9038 (Loop_Statement_to_gnu): Likewise.
9039 (establish_gnat_vms_condition_handler): Likewise.
9040 (Exception_Handler_to_gnu_sjlj): Likewise.
9041 (gnat_to_gnu): Likewise.
9042 (build_unary_op_trapv): Likewise.
9043 (build_binary_op_trapv): Likewise.
9044 (emit_range_check): Likewise.
9045 (emit_index_check): Likewise.
9046 (convert_with_check): Likewise.
9047 * gcc-interface/utils.c (convert_vms_descriptor64): Likewise.
9048 (convert_vms_descriptor32): Likewise.
9049 (convert_vms_descriptor): Likewise.
9050 * gcc-interface/utils2.c (nonbinary_modular_operation): Likewise.
9051 (compare_arrays): Use boolean instead of integer constants.
9052 (build_binary_op) <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR,
9053 TRUTH_OR_EXPR, TRUTH_XOR_EXPR>: New case. Check that the result type
9055 <GE_EXPR, LE_EXPR, GT_EXPR, LT_EXPR>: Remove obsolete assertion.
9056 <EQ_EXPR, NE_EXPR>: Check that the result type is a boolean type.
9057 <PREINC/PREDECREMENT_EXPR, POSTINC/POSTDECREMENT_EXPR>: Delete.
9058 <TRUTH_NOT_EXPR>: Check that the result type is a boolean type.
9059 (build_unary_op): Use boolean_type_node in lieu of integer_type_node
9060 for boolean operations.
9061 (fill_vms_descriptor): Likewise. Fix formatting nits.
9063 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
9065 * gcc-interface/ada-tree.def (LOOP_STMT): Change to 4-operand nodes.
9066 * gcc-interface/ada-tree.h (LOOP_STMT_TOP_COND, LOOP_STMT_BOT_COND):
9068 (LOOP_STMT_COND): ...this.
9069 (LOOP_STMT_BOTTOM_COND_P): New flag.
9070 (LOOP_STMT_TOP_UPDATE_P): Likewise.
9071 * gcc-interface/trans.c (can_equal_min_or_max_val_p): New function.
9072 (can_equal_min_val_p): New static inline function.
9073 (can_equal_max_val_p): Likewise.
9074 (Loop_Statement_to_gnu): Use build4 in lieu of build5 and adjust to
9075 new LOOP_STMT semantics. Use two different strategies depending on
9076 whether optimization is enabled to translate the loop.
9077 (gnat_gimplify_stmt) <LOOP_STMT>: Adjust to new LOOP_STMT semantics.
9079 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
9081 * uintp.adb (UI_From_Dint): Remove useless code.
9082 (UI_From_Int): Likewise.
9083 * uintp.h: Reorder declarations.
9084 (UI_From_gnu): Declare.
9085 (UI_Base): Likewise.
9086 (Vector_Template): Likewise.
9087 (Vector_To_Uint): Likewise.
9090 * gcc-interface/gigi.h: Tweak comments.
9091 * gcc-interface/cuintp.c (UI_From_gnu): New global function.
9092 * gcc-interface/decl.c (maybe_pad_type): Do not warn if either size
9094 (annotate_value) <INTEGER_CST>: Call UI_From_gnu.
9095 * gcc-interface/trans.c (post_error_ne_num): Call post_error_ne.
9096 (post_error_ne_tree): Call UI_From_gnu and post_error_ne.
9097 * gcc-interface/utils.c (max_size) <tcc_binary>: Do not special-case
9100 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
9102 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Just copy
9104 * gcc-interface/trans.c (smaller_packable_type_p): Rename into...
9105 (smaller_form_type_p): ...this. Change parameter and variable names.
9106 (call_to_gnu): Use the nominal type of the parameter to create the
9107 temporary if it's a smaller form of the actual type.
9108 (addressable_p): Return false if the actual type is integral and its
9109 size is greater than that of the expected type.
9111 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
9113 * gcc-interface/cuintp.c (UI_To_gnu): Fix long line.
9114 * gcc-interface/gigi.h (MARK_VISITED): Skip objects of constant class.
9115 (process_attributes): Delete.
9116 (post_error_ne_num): Change parameter name.
9117 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force debug info
9118 with -g3. Remove a couple of obsolete lines. Minor tweaks.
9119 If type annotating mode, operate on trees to compute the adjustment to
9120 the sizes of tagged types. Fix long line.
9121 (cannot_be_superflat_p): Tweak head comment.
9122 (annotate_value): Fold local constant.
9123 (set_rm_size): Fix long line.
9124 * gcc-interface/trans.c (Identifier_to_gnu): Rework comments.
9125 (Attribute_to_gnu): Fix long line.
9126 <Attr_Size>: Remove useless assertion.
9127 Reorder statements. Use size_binop routine.
9128 (Loop_Statement_to_gnu): Use build5 in lieu of build_nt.
9129 Create local variables for the label and the test. Tweak comments.
9130 (Subprogram_Body_to_gnu): Reset cfun to NULL.
9131 (Compilation_Unit_to_gnu): Use the Sloc of the Unit node.
9132 (process_inlined_subprograms): Integrate into...
9133 (Compilation_Unit_to_gnu): ...this.
9134 (gnat_to_gnu): Fix long line.
9135 (post_error_ne_num): Change parameter name.
9136 * gcc-interface/utils.c (process_attributes): Static-ify.
9137 <ATTR_MACHINE_ATTRIBUTE>: Set input_location before proceeding.
9138 (create_type_decl): Add comment.
9139 (create_var_decl_1): Process the attributes after adding the VAR_DECL
9140 to the current binding level.
9141 (create_subprog_decl): Likewise for the FUNCTION_DECL.
9142 (end_subprog_body): Do not reset cfun to NULL.
9143 (build_vms_descriptor32): Fix long line.
9144 (build_vms_descriptor): Likewise.
9145 (handle_nonnull_attribute): Likewise.
9146 (convert_vms_descriptor64): Likewise.
9147 * gcc-interface/utils2.c (fill_vms_descriptor): Fix long line.
9148 (gnat_protect_expr): Fix thinko.
9150 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
9152 * gcc-interface/trans.c (gigi): Set DECL_IGNORED_P on EH functions.
9153 (gnat_to_gnu) <N_Op_Eq>: Restore the value of input_location
9154 before translating the top-level node.
9155 (lvalue_required_p) <N_Function_Call>: Return 1 if !constant.
9156 <N_Object_Declaration>: Likewise.
9157 <N_Assignment_Statement>: Likewise.
9158 <N_Unchecked_Type_Conversion>: Likewise.
9159 (call_to_gnu): Remove kludge.
9160 (gnat_to_gnu) <N_Return_Statement>: When not optimizing, force labels
9161 associated with user returns to be preserved.
9162 (gnat_to_gnu): Add special code to deal with boolean rvalues.
9163 * gcc-interface/utils2.c (compare_arrays): Set input_location on all
9165 (build_unary_op) <ADDR_EXPR>: Call build_fold_addr_expr.
9166 <INDIRECT_REF>: Call build_fold_indirect_ref.
9168 2010-04-15 Joel Sherrill <joel.sherrill@oarcorp.com>
9170 * g-socket.adb: A target can have multiple missing errno's. This
9171 will result in multiple errno's being defined as -1. Because of this
9172 we can not use a case but must use a series of if's to avoid
9173 a duplicate case error in GNAT.Sockets.Resolve_Error.
9175 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
9177 * gcc-interface/trans.c (call_to_gnu): Open a nesting level if this is
9178 a statement. Otherwise, if at top-level, push the processing of the
9179 elaboration routine. In the misaligned case, issue the error messages
9180 again on entry and create the temporary explicitly. Do not issue them
9182 For a function call, emit the range check if necessary.
9183 In the copy-in copy-out case, create the temporary for the return
9185 Do not unnecessarily convert by-ref parameters to the formal's type.
9186 Remove obsolete guards in conditions.
9187 (gnat_to_gnu) <N_Assignment_Statement>: For a function call, pass the
9188 target to call_to_gnu in all cases.
9189 (gnat_gimplify_expr) <ADDR_EXPR>: Remove handling of SAVE_EXPR.
9190 (addressable_p) <CONSTRUCTOR>: Return false if not static.
9191 <COMPOUND_EXPR>: New case.
9192 * gcc-interface/utils2.c (build_unary_op) <ADDR_EXPR>: Fold a compound
9193 expression if it has unconstrained array type.
9194 (gnat_mark_addressable) <COMPOUND_EXPR>: New case.
9195 (gnat_stabilize_reference) <COMPOUND_EXPR>: Stabilize operands on an
9198 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
9200 * gcc-interface/trans.c (gigi): Do not start statement group.
9201 (Compilation_Unit_to_gnu): Set current_function_decl to NULL.
9202 Start statement group and push binding level here...
9203 (gnat_to_gnu) <N_Compilation_Unit>: ...and not here.
9204 Do not push fake contexts at top level. Remove redundant code.
9205 (call_to_gnu): Rename a local variable and constify another.
9206 * gcc-interface/utils.c (gnat_pushlevel): Fix formatting nits.
9207 (set_current_block_context): Set it as the group's block.
9208 (gnat_init_decl_processing): Delete unrelated init code.
9209 (end_subprog_body): Use NULL_TREE.
9211 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
9213 * gcc-interface/trans.c (call_to_gnu): Do not unnecessarily force
9214 side-effects of actual parameters before the call.
9216 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
9218 * gcc-interface/decl.c (validate_size): Reorder, remove obsolete test
9220 (set_rm_size): Reorder and remove obsolete test.
9222 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
9224 * gcc-interface/gigi.h: Reorder declarations and tweak comments.
9225 (gigi): Adjust ATTRIBUTE_UNUSED markers.
9226 * gcc-interface/gadaint.h: New file.
9227 * gcc-interface/trans.c: Include it in lieu of adaint.h. Reorder.
9228 (__gnat_to_canonical_file_spec): Remove declaration.
9229 (number_names): Delete.
9230 (number_files): Likewise.
9232 * gcc-interface/Make-lang.in (ada/trans.o): Adjust dependencies to
9235 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
9237 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Class_Wide_Type>: Fix
9239 * gcc-interface/trans.c (process_freeze_entity): Use local copy of
9240 Ekind. Return early for class-wide types. Do not compute initializer
9241 unless necessary. Reuse the tree for an associated class-wide type
9242 only if processing its root type.
9244 2010-04-13 Joel Sherrill <joel.sherrill@oarcorp.com>
9246 * gsocket.h: Run-time can no longer be built without network
9247 OS headers available. Changing RTEMS GNAT build procedure to
9248 reflect this and letting run-time build use network .h files.
9250 2010-04-13 Duncan Sands <baldrick@free.fr>
9252 * gcc-interface/misc.c (gnat_eh_type_covers): Remove.
9253 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Update comment.
9255 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
9257 * gcc-interface/gigi.h (standard_datatypes): Add ADT_parent_name_id.
9258 (parent_name_id): New macro.
9259 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Use it.
9260 * gcc-interface/trans.c (gigi): Initialize it.
9261 (lvalue_required_p) <N_Type_Conversion>: New case.
9262 <N_Qualified_Expression>: Likewise.
9263 <N_Allocator>: Likewise.
9264 * gcc-interface/utils.c (convert): Try to properly upcast tagged types.
9266 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
9268 * gcc-interface/ada-tree.h (TYPE_BY_REFERENCE_P): Delete.
9269 (DECL_CONST_ADDRESS_P): New macro.
9270 (SET_DECL_ORIGINAL_FIELD_TO_FIELD): Likewise.
9271 (SAME_FIELD_P): Likewise.
9272 * gcc-interface/decl.c (constructor_address_p): New static function.
9273 (gnat_to_gnu_entity) <object>: Set DECL_CONST_ADDRESS_P according to
9274 the return value of above function.
9275 (gnat_to_gnu_entity) <E_Record_Type>: Force BLKmode for all types
9276 passed by reference.
9277 <E_Record_Subtype>: Likewise.
9278 Set TREE_ADDRESSABLE on the type if it passed by reference.
9279 (make_packable_type): Use SET_DECL_ORIGINAL_FIELD_TO_FIELD.
9280 (create_field_decl_from): Likewise.
9281 (substitute_in_type): Likewise.
9282 (purpose_member_field): Use SAME_FIELD_P.
9283 * gcc-interface/misc.c (must_pass_by_ref): Test TREE_ADDRESSABLE.
9284 * gcc-interface/trans.c (lvalue_required_p): Add ADDRESS_OF_CONSTANT
9285 parameter and adjust recursive calls.
9286 <N_Explicit_Dereference>: New case.
9287 <N_Object_Declaration>: Return 1 if the object is of a class-wide type.
9288 Adjust calls to lvalue_required_p. Do not return the initializer of a
9289 DECL_CONST_ADDRESS_P constant if an lvalue is required for it.
9290 (call_to_gnu): Delay issuing error message for a misaligned actual and
9291 avoid the associated back-end assertion. Test TREE_ADDRESSABLE.
9292 (gnat_gimplify_expr) <ADDR_EXPR>: Handle non-static constructors.
9293 * gcc-interface/utils.c (make_dummy_type): Set TREE_ADDRESSABLE if the
9294 type is passed by reference.
9295 (convert) <CONSTRUCTOR>: Convert in-place in more cases.
9296 * gcc-interface/utils2.c (build_cond_expr): Drop TYPE_BY_REFERENCE_P.
9297 (build_simple_component_ref): Use SAME_FIELD_P.
9299 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
9301 * gcc-interface/trans.c (Identifier_to_gnu): Use boolean variable.
9302 (call_to_gnu): Test gigi's flag TYPE_BY_REFERENCE_P instead of calling
9303 front-end's predicate Is_By_Reference_Type. Use consistent order and
9304 remove ??? comment. Use original conversion in all cases, if any.
9305 * gcc-interface/utils.c (make_dummy_type): Minor tweak.
9306 (convert): Use local copy in more cases.
9307 <INDIRECT_REF>: Remove deactivated code.
9308 (unchecked_convert): Use a couple of local copies.
9310 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
9312 * gcc-interface/trans.c (lvalue_required_for_attribute_p): New static
9314 (lvalue_required_p) <N_Attribute_Reference>: Call it.
9315 (gnat_to_gnu) <N_Selected_Component>: Prevent build_component_ref from
9316 folding the result only if lvalue_required_for_attribute_p is true.
9317 * gcc-interface/utils.c (maybe_unconstrained_array): Pass correctly
9318 typed constant to build_component_ref.
9319 (unchecked_convert): Likewise.
9320 * gcc-interface/utils2.c (maybe_wrap_malloc): Likewise.
9321 (build_allocator): Likewise.
9323 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
9325 * gcc-interface/utils2.c (build_cond_expr): Take the address and
9326 dereference if the result type is passed by reference.
9328 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
9330 * gcc-interface/trans.c (Case_Statement_to_gnu): Bool-ify variable.
9331 (gnat_to_gnu) <N_Null_Statement>: When not optimizing, generate a
9332 goto to the next statement.
9334 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
9336 * gcc-interface/gigi.h (maybe_variable): Delete.
9337 (protect_multiple_eval): Likewise.
9338 (maybe_stabilize_reference): Likewise.
9339 (gnat_save_expr): Declare.
9340 (gnat_protect_expr): Likewise.
9341 (gnat_stabilize_reference): Likewise.
9342 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use
9343 gnat_stabilize_reference.
9344 (maybe_variable): Delete.
9345 (elaborate_expression_1): Use gnat_save_expr.
9346 * gcc-interface/trans.c (Attribute_to_gnu): Use gnat_protect_expr.
9347 (call_to_gnu): Pass NULL to gnat_stabilize_reference.
9348 (gnat_to_gnu) <N_Object_Declaration>: Use gnat_save_expr.
9349 <N_Slice>: Use gnat_protect_exp.
9350 <N_Selected_Component>: Pass NULL to gnat_stabilize_reference.
9351 <N_In>: Use gnat_protect_expr.
9352 Pass NULL to gnat_stabilize_reference.
9353 (build_unary_op_trapv): Use gnat_protect_expr.
9354 (build_binary_op_trapv): Likewise.
9355 (emit_range_check): Likewise.
9356 (emit_index_check): Likewise.
9357 (convert_with_check): Likewise.
9358 (protect_multiple_eval): Move to utils2.c file.
9359 (maybe_stabilize_reference): Merge into...
9360 (gnat_stabilize_reference): ...this. Move to utils2.c file.
9361 (gnat_stabilize_reference_1): Likewise.
9362 * gcc-interface/utils.c (convert_to_fat_pointer): Use gnat_protect_expr
9363 instead of protect_multiple_eval.
9364 * gcc-interface/utils2.c (compare_arrays): Likewise.
9365 (nonbinary_modular_operation): Likewise.
9366 (maybe_wrap_malloc): Likewise.
9367 (build_allocator): Likewise.
9368 (gnat_save_expr): New function.
9369 (gnat_protect_expr): Rename from protect_multiple_eval. Early return
9370 in common cases. Propagate TREE_READONLY onto dereferences.
9371 (gnat_stabilize_reference_1): Move from trans.c file.
9372 (gnat_stabilize_reference): Likewise.
9374 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
9376 * gcc-interface/gigi.h (gnat_mark_addressable): Rename parameter.
9377 * gcc-interface/decl.c (maybe_variable): Do not set TREE_STATIC on _REF
9378 node. Use the type of the operand to set TREE_READONLY.
9379 * gcc-interface/trans.c (Identifier_to_gnu): Do not set TREE_STATIC on
9380 _REF node. Do not overwrite TREE_READONLY.
9381 (call_to_gnu): Rename local variable and fix various nits. In the
9382 copy-in/copy-out case, build the SAVE_EXPR manually.
9383 (convert_with_check): Call protect_multiple_eval in lieu of save_expr
9384 and fold the computations.
9385 (protect_multiple_eval): Always save entire fat pointers.
9386 (maybe_stabilize_reference): Minor tweaks.
9387 (gnat_stabilize_reference_1): Likewise. Do not deal with tcc_constant,
9388 tcc_type and tcc_statement.
9389 * gcc-interface/utils.c (convert_to_fat_pointer): Call
9390 protect_multiple_eval in lieu of save_expr.
9391 (convert): Minor tweaks.
9392 (maybe_unconstrained_array): Do not set TREE_STATIC on _REF node.
9393 (builtin_type_for_size): Call gnat_type_for_size directly.
9394 * gcc-interface/utils2.c (contains_save_expr_p): Delete.
9395 (contains_null_expr): Likewise
9396 (gnat_build_constructor): Do not call it.
9397 (compare_arrays): Deal with all side-effects, use protect_multiple_eval
9398 instead of gnat_stabilize_reference to protect the operands.
9399 (nonbinary_modular_operation): Call protect_multiple_eval in lieu of
9401 (maybe_wrap_malloc): Likewise.
9402 (build_allocator): Likewise.
9403 (build_unary_op) <INDIRECT_REF>: Do not set TREE_STATIC on _REF node.
9404 (gnat_mark_addressable): Rename parameter.
9406 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
9408 * gcc-interface/ada-tree.h (TYPE_RETURNS_UNCONSTRAINED_P): Rename into.
9409 (TYPE_RETURN_UNCONSTRAINED_P): ...this.
9410 (TYPE_RETURNS_BY_REF_P): Rename into.
9411 (TYPE_RETURN_BY_DIRECT_REF_P): ...this.
9412 (TYPE_RETURNS_BY_TARGET_PTR_P): Delete.
9413 * gcc-interface/gigi.h (create_subprog_type): Adjust parameter names.
9414 (build_return_expr): Likewise.
9415 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>:
9416 Rename local variables. If the return Mechanism is By_Reference, pass
9417 return_by_invisible_ref_p to create_subprog_type instead of toggling
9418 TREE_ADDRESSABLE. Test return_by_invisible_ref_p in order to annotate
9419 the mechanism. Use regular return for contrained types with non-static
9420 size and return by invisible reference for unconstrained return types
9421 with default discriminants. Update comment.
9422 * gcc-interface/trans.c (Subprogram_Body_to_gnu): If the function
9423 returns by invisible reference, turn the RESULT_DECL into a pointer.
9424 Do not handle DECL_BY_REF_P in the CICO case here.
9425 (call_to_gnu): Remove code handling return by target pointer. For a
9426 function call, if the return type has non-constant size, generate the
9427 assignment with an INIT_EXPR.
9428 (gnat_to_gnu) <N_Return_Statement>: Remove dead code in the CICO case.
9429 If the function returns by invisible reference, build the copy return
9431 (add_decl_expr): Initialize the variable with an INIT_EXPR.
9432 * gcc-interface/utils.c (create_subprog_type): Adjust parameter names.
9433 Adjust for renaming of macros. Copy the node only when necessary.
9434 (create_subprog_decl): Do not toggle TREE_ADDRESSABLE on the return
9435 type, only change DECL_BY_REFERENCE on the RETURN_DECL.
9436 (convert_from_reference): Delete.
9437 (is_byref_result): Likewise.
9438 (gnat_genericize_r): Likewise.
9439 (gnat_genericize): Likewise.
9440 (end_subprog_body): Do not call gnat_genericize.
9441 * gcc-interface/utils2.c (build_binary_op) <INIT_EXPR>: New case.
9442 (build_return_expr): Adjust parameter names, logic and comment.
9444 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
9446 * exp_pakd.adb (Create_Packed_Array_Type): Always use a modular type
9447 if the size is small enough. Propagate the alignment if there is an
9448 alignment clause on the original array type.
9449 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
9450 Deal with under-aligned packed array types. Copy the size onto the
9451 justified modular type and don't lay it out again. Likewise for the
9452 padding type built for other under-aligned subtypes.
9453 * gcc-interface/utils.c (finish_record_type): Do not set a default mode
9456 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
9458 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set default
9459 alignment on the RETURN type built for the Copy-In Copy-Out mechanism.
9461 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
9463 * gcc-interface/trans.c (call_to_gnu): In the return-by-target-ptr case
9464 do not set the result type if there is a specified target and do not
9465 convert the result in any cases.
9466 (protect_multiple_eval): Make direct SAVE_EXPR for CALL_EXPR.
9467 (maybe_stabilize_reference) <COMPOUND_EXPR>: Merge with CALL_EXPR.
9469 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
9471 * gcc-interface/Makefile.in (SPARC/Solaris): Use sparcv8plus.
9473 2010-02-27 Eric Botcazou <ebotcazou@adacore.com>
9476 * gcc-interface/utils2.c (build_binary_op) <EQ_EXPR>: Assert that fat
9477 pointer base types are variant of each other. Apply special treatment
9478 for null to fat pointer types in all cases.
9480 2010-01-28 Pascal Obry <obry@adacore.com>
9482 * s-win32.ads: Add some missing constants.
9484 2010-01-28 Vincent Celier <celier@adacore.com>
9486 * prj-attr-pm.adb (Add_Attribute): Do nothing if To_Package is
9489 2010-01-28 Robert Dewar <dewar@adacore.com>
9491 * gnat_rm.texi: Minor correction
9493 2010-01-27 Pascal Obry <obry@adacore.com>
9495 * g-awk.adb: ensure that an AWK session is reusable.
9497 2010-01-27 Vasiliy Fofanov <fofanov@adacore.com>
9499 * g-regist.adb (For_Every_Key): Fix previous change.
9502 2010-01-27 Thomas Quinot <quinot@adacore.com>
9504 * lib-writ.ads: Current version of spec for new N (note) ALI lines
9506 2010-01-27 Yannick Moy <moy@adacore.com>
9508 * a-cdlili.adb (Insert): Correct exception message when cursor
9509 designates wrong list.
9511 2010-01-27 Vincent Celier <celier@adacore.com>
9513 * gnatcmd.adb: When there is only one main specified, the package
9514 support Switches (<main>) and attribute Switches is specified for the
9515 main, use these switches, instead of Default_Switches ("Ada").
9517 2010-01-27 Robert Dewar <dewar@adacore.com>
9519 * sem_prag.adb, par-prag.adb, snames.ads-tmpl: pragma Dimension initial
9521 * exp_disp.adb: Minor reformatting
9523 2010-01-27 Tristan Gingold <gingold@adacore.com>
9525 * seh_init.c: Use __ImageBase instead of _ImageBase.
9527 2010-01-27 Javier Miranda <miranda@adacore.com>
9529 * exp_disp.ads, exp_disp.adb (Expand_Interface_Thunk): Modify the
9530 profile of interface thunks. The type of the controlling formal is now
9531 the covered interface type (instead of the target tagged type).
9533 2010-01-27 Sergey Rybin <rybin@adacore.com>
9535 * gnat_rm.texi, gnat_ugn.texi: Update gnatcheck doc.
9537 2010-01-27 Robert Dewar <dewar@adacore.com>
9539 * sinput.ads, sinput.adb (Sloc_Range): Applies to all nodes, formal
9540 changed from Expr to N.
9542 2010-01-26 Thomas Quinot <quinot@adacore.com>
9544 * gnat_ugn.texi: Adjust documentation of -gnatz switches.
9545 * usage.adb: Replace line for -gnatz with two lines for -gnatzc and
9548 2010-01-26 Vincent Celier <celier@adacore.com>
9550 * prj-attr.adb: Add new attribute Library_Install_Name_Option
9551 Replace attribute Run_Path_Origin_Supported with Run_Path_Origin
9552 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
9553 attributes Run_Path_Option and Library_Install_Name_Option.
9554 * prj.ads (Project_Configuration): Replace component
9555 Run_Path_Origin_Supported with component Run_Path_Origin. Add new
9556 component Library_Install_Name_Option.
9557 * snames.ads-tmpl: Add new standard name Library_Install_Name_Option
9558 Replace Run_Path_Origin_Supported with Run_Path_Origin
9560 2010-01-26 Ed Schonberg <schonberg@adacore.com>
9562 * sem_ch8.adb (Use_One_Package): Within an instance, an actual package
9563 is not hidden by a homograph declared in another actual package.
9565 2010-01-26 Robert Dewar <dewar@adacore.com>
9567 * par_sco.adb (Traverse_Declarations_Or_Statements): Only generate
9568 decisions for pragmas Assert, Check, Precondition, Postcondition if
9570 * scos.ads: Update comments.
9571 * get_scos.adb, put_scos.adb: Minor fix to code reading statement SCOs.
9572 Also remove obsolete code for CT (exit point) SCOs.
9574 2010-01-26 Thomas Quinot <quinot@adacore.com>
9576 * switch-c.adb: Fix handling of -gnatz*
9578 2010-01-26 Robert Dewar <dewar@adacore.com>
9580 * par_sco.adb (Traverse_Declarations_Or_Statements): Separate F/W
9581 qualifiers for FOR/WHILE loops
9582 * scos.ads: Use separate type letters F/W for for/while loops
9584 2010-01-26 Robert Dewar <dewar@adacore.com>
9586 * get_scos.adb (Get_SCOs): Implement new form of CS entries (multiple
9587 entries per line, one for each statement in the sequence).
9588 * par_sco.adb (Traverse_Declarations_Or_Statements): Increase array
9589 size from 100 to 10_000 for SC_Array to avoid any real possibility of
9590 overflow. Output decisions in for loops.
9591 Exclude labels from CS lines.
9592 * scos.ads: Clarify that label is not included in the entry point
9594 2010-01-26 Robert Dewar <dewar@adacore.com>
9596 * par_sco.adb (Traverse_Declarations_Or_Statments): Implement new
9597 format of statement sequence SCO entries (one location/statement).
9598 * put_scos.adb (Put_SCOs): Implement new format of CS lines
9599 * scos.ads: Update comments.
9600 * sem_eval.adb: Minor reformatting.
9602 2010-01-26 Robert Dewar <dewar@adacore.com>
9604 * par_sco.ads, par_sco.adb (Set_Statement_Entry): New handling of exits
9605 (Extend_Statement_Sequence): New procedures
9606 (Traverse_Declarations_Or_Statements): New handling for exits.
9608 2010-01-26 Robert Dewar <dewar@adacore.com>
9610 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
9613 2010-01-26 Robert Dewar <dewar@adacore.com>
9615 * par_sco.adb (Is_Logical_Operator): Exclude AND/OR/XOR
9616 * scos.ads: Clarify handling of logical operators
9618 2010-01-26 Arnaud Charlet <charlet@adacore.com>
9620 * s-tpoben.adb: Update comments.
9622 2010-01-26 Robert Dewar <dewar@adacore.com>
9624 * freeze.adb (Set_Small_Size): Don't set size if alignment clause
9627 2010-01-26 Robert Dewar <dewar@adacore.com>
9629 * scos.ads: Clean up documentation, remove obsolete XOR references
9630 2010-01-26 Vincent Celier <celier@adacore.com>
9632 * gnat_ugn.texi: Complete documentation on the restrictions for
9633 combined options in -gnatxxx switches.
9636 2010-01-26 Arnaud Charlet <charlet@adacore.com>
9638 * s-tpoben.adb (Initialize_Protection_Entries): If a PO is created from
9639 a controlled operation, abort is already deferred at this point, so we
9640 need to use Defer_Abort_Nestable.
9642 2010-01-26 Vincent Celier <celier@adacore.com>
9644 * prj-conf.adb (Get_Config_Switches): Check for a default language for
9645 a project extending a project with no languages.
9647 2010-01-26 Vincent Celier <celier@adacore.com>
9649 * switch-c.adb (Scan_Front_End_Switches): Take into account options
9650 that follow -gnatef.
9651 Allow -gnateG to be followed by other options.
9653 2010-01-26 Robert Dewar <dewar@adacore.com>
9655 * s-commun.ads, s-osprim-mingw.adb, s-stchop-vxworks.adb, sem_aggr.adb,
9656 s-vxwext.adb, sem_ch10.adb, sem_eval.adb, sem_prag.adb: Minor
9659 2010-01-26 Vasiliy Fofanov <fofanov@adacore.com>
9661 * g-regist.adb, g-regist.ads (For_Every_Key): New generic procedure
9662 that allows to iterate over all subkeys of a key.
9664 2010-01-26 Ed Falis <falis@adacore.com>
9666 * sysdep.c: enable NFS for VxWorks MILS
9667 * env.c: enable __gnat_environ for VxWorks MILS
9668 * gcc-interface/Makefile.in: Add VxWorks MILS target pairs.
9670 2010-01-25 Bob Duff <duff@adacore.com>
9672 * sem_aggr.adb (Resolve_Array_Aggregate): Check for the case where this
9673 is an internally-generated positional aggregate, and the bounds are
9674 already correctly set. We don't want to overwrite those bounds with
9675 bounds determined by context.
9677 2010-01-25 Robert Dewar <dewar@adacore.com>
9679 * g-sercom.ads, gnatcmd.adb, gnatlink.adb, a-ststio.adb, exp_ch6.adb,
9680 exp_ch9.adb, g-sechas.ads: Minor reformatting.
9682 2010-01-25 Thomas Quinot <quinot@adacore.com>
9684 * s-commun.adb (Last_Index): Count must be converted to SEO (a signed
9685 integer type) before subtracting 1, otherwise the computation may wrap
9686 (because size_t is modular) and cause the conversion to fail.
9688 2010-01-25 Ed Falis <falis@adacore.com>
9690 * sysdep.c, init.c: Adapt to support full run-time on VxWorks MILS.
9692 2010-01-25 Vincent Celier <celier@adacore.com>
9694 * prj-attr.adb: New attribute Run_Path_Origin_Required
9695 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process new
9696 attribute Run_Path_Origin_Required.
9697 * prj.ads (Project_Configuration): New component
9698 Run_Path_Origin_Supported.
9699 * snames.ads-tmpl: New standard name Run_Path_Origin_Required
9701 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9703 * sem_aggr.adb (Resolve_Array_Aggregate): If the bounds in a choice
9704 have errors, do not continue resolution of the aggregate.
9705 * sem_eval.adb (Eval_Indexed_Component): Do not attempt to evaluate if
9706 the array type indicates an error.
9708 2010-01-25 Bob Duff <duff@adacore.com>
9710 * sinfo.ads: Minor comment fixes.
9712 2010-01-25 Bob Duff <duff@adacore.com>
9714 * exp_ch4.adb, exp_aggr.adb: Minor comment fixes and code clean up.
9716 2010-01-25 Arnaud Charlet <charlet@adacore.com>
9718 * gnatvsn.ads (Current_Year): Update.
9720 2010-01-25 Florian Villoing <villoing@adacore.com>
9722 * gnat_ugn.texi: Fix typo.
9724 2010-01-25 Thomas Quinot <quinot@adacore.com>
9726 * scos.ads: Update specification.
9728 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9730 * sem_ch6.adb (Process_PPCs): If a postcondition is present and the
9731 enclosing subprogram has no previous spec, attach postcondition
9732 procedure to the defining entity for the body.
9734 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9736 * exp_aggr.adb (Build_Record_Aggr_Code); Do not generate call to
9737 initialization procedure of the ancestor part of an extension aggregate
9738 if it is an interface type.
9740 2010-01-25 Vincent Celier <celier@adacore.com>
9742 * gnatlink.adb (Process_Binder_File): The directory for the shared
9743 version of libgcc in the run path options is found in the subdirectory
9744 indicated by __gnat_default_libgcc_subdir.
9745 * link.c: Declare new const char * __gnat_default_libgcc_subdir for
9748 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9750 * sem_prag.adb: More flexible pragma Annotate.
9752 2010-01-22 Eric Botcazou <ebotcazou@adacore.com>
9754 * system-linux-armel.ads (Stack_Check_Probes): Set to True.
9755 * system-linux-armeb.ads (Stack_Check_Probes): Likewise.
9757 2010-01-18 Eric Botcazou <ebotcazou@adacore.com>
9759 * gcc-interface/utils.c (create_var_decl_1): Fix formatting nits.
9761 2010-01-18 Jan Hubicka <jh@suse.cz>
9764 * gcc-interface/utils.c (create_var_decl_1): Do not set COMMON flag for
9765 unit local variables.
9767 2010-01-17 Laurent GUERBY <laurent@guerby.net>
9769 * gcc-interface/Makefile.in: Fix typo in arm*-*-linux-gnueabi.
9771 2010-01-11 Mikael Pettersson <mikpe@it.uu.se>
9773 * gcc-interface/Makefile.in: Add arm*-*-linux-gnueabi.
9774 * system-linux-armeb.ads, system-linux-armel.ads: New files.
9776 2010-01-09 Simon Wright <simon@pushface.org>
9779 * gcc-interface/Makefile.in (gnatlib-shared-darwin): Add missing
9784 Copyright (C) 2010 Free Software Foundation, Inc.
9786 Copying and distribution of this file, with or without modification,
9787 are permitted in any medium without royalty provided the copyright
9788 notice and this notice are preserved.