1 2010-10-26 Geert Bosch <bosch@adacore.com>
3 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Use the subprogram_body
4 node to determine wether the subprogram is a rewritten parameterized
7 2010-10-26 Robert Dewar <dewar@adacore.com>
9 * opt.ads: Minor code reorganization
10 Alphabetize Warning switches.
12 2010-10-26 Robert Dewar <dewar@adacore.com>
14 * sem_res.adb, xsinfo.adb: Minor reformatting.
16 2010-10-26 Bob Duff <duff@adacore.com>
18 * namet.adb (Finalize): More cleanup of statistics printouts.
20 2010-10-26 Robert Dewar <dewar@adacore.com>
22 * ceinfo.adb: Minor reformatting.
24 2010-10-26 Javier Miranda <miranda@adacore.com>
26 * sem_ch6.adb (Check_Overriding_Indicator, New_Overloaded_Entity): When
27 setting attribute Overridden_Operation do not reference the entities
28 generated by Derive_Subprograms but their aliased entity (which
29 is the primitive inherited from the parent type).
31 2010-10-26 Bob Duff <duff@adacore.com>
33 * namet.adb, namet.ads: Minor cleanup.
35 2010-10-26 Arnaud Charlet <charlet@adacore.com>
37 * gcc-interface/Make-lang.in: Update dependencies.
39 2010-10-26 Robert Dewar <dewar@adacore.com>
41 * einfo.ads, einfo.adb (Is_Base_Type): New function, use it where
43 * exp_ch6.adb, exp_dbug.adb, exp_disp.adb, freeze.adb, lib-xref.adb,
44 sem_aux.adb, sem_ch3.adb, sem_ch7.adb, sem_ch8.adb (Is_Base_Type): Use
45 this new abstraction where appropriate.
47 2010-10-26 Ed Schonberg <schonberg@adacore.com>
49 * sem_ch12.adb: Code clean up.
51 2010-10-26 Paul Hilfinger <hilfinger@adacore.com>
53 * exp_dbug.ads: Document effect of 'pragma Unchecked_Union' on
56 2010-10-26 Ed Schonberg <schonberg@adacore.com>
58 * sem_util.adb (Note_Possible_Modification): If the target of an
59 assignment is the bound variable in an iterator, the domain of
60 iteration, i.e. array or container, is modified as well.
62 2010-10-26 Bob Duff <duff@adacore.com>
64 * Make-generated.in: Make the relevant make targets depend on
65 ceinfo.adb and csinfo.adb.
66 * csinfo.adb, ceinfo.adb: Make sure it raises an exception on failure,
67 so when called from xeinfo, the failure will be noticed.
68 * sinfo.ads: Update comments to reflect the fact that xsinfo runs csinfo
69 * xsinfo.adb, xeinfo.adb: Run ceinfo to check for errors. Close files.
71 2010-10-26 Ed Schonberg <schonberg@adacore.com>
73 * exp_ch4.adb: Set properly parent field of operands of concatenation.
75 2010-10-26 Ed Schonberg <schonberg@adacore.com>
77 * sem_res.adb (Check_Infinite_Recursion): A recursive call within a
78 conditional expression or a case expression should not generate an
79 infinite recursion warning.
81 2010-10-26 Javier Miranda <miranda@adacore.com>
83 * einfo.ads, einfo.adb (Is_Overriding_Operation): Removed.
84 (Set_Is_Overriding_Operation): Removed.
85 * sem_ch3.adb (Check_Abstract_Overriding): Remove redundant call to
86 Is_Overriding_Operation.
87 * exp_ch7.adb (Check_Visibly_Controlled): Remove redundant call to
88 Is_Overriding_Operation.
89 * sem_ch7.adb (Declare_Inherited_Private_Subprograms): Remove redundant
90 call to Set_Is_Overriding_Operation.
91 * sem_util.adb (Collect_Primitive_Operations): Replace test on
92 Is_Overriding_Operation by test on the presence of attribute
94 (Original_Corresponding_Operation): Remove redundant call to attribute
95 Is_Overriding_Operation.
96 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Remove
97 redundant call to Is_Overriding_Operation.
98 (Verify_Overriding_Indicator): Replace several occurrences of test on
99 Is_Overriding_Operation by test on the presence of attribute
100 Overridden_Operation.
101 (Check_Convention): Replace test on Is_Overriding_Operation by test on
102 the presence of Overridden_Operation.
103 (Check_Overriding_Indicator): Add missing decoration of attribute
104 Overridden_Operation. Minor code cleanup.
105 (New_Overloaded_Entity): Replace occurrence of test on
106 Is_Overriding_Operation by test on the presence of attribute
107 Overridden_Operation. Remove redundant setting of attribute
108 Is_Overriding_Operation plus minor code reorganization.
109 Add missing decoration of attribute Overridden_Operation.
110 * sem_elim.adb (Set_Eliminated): Replace test on
111 Is_Overriding_Operation by test on the presence of Overridden_Operation.
112 * sem_ch8.adb (Analyze_Subprogram_Renaming): Replace test on
113 Is_Overriding_Operation by test on the presence of
114 Overridden_Operation. Remove a redundant test on attribute
115 Is_Overriding_Operation.
116 * lib-xref.adb (Generate_Reference): Replace test on
117 Is_Overriding_Operation by test on the presence of Overridden_Operation.
118 (Output_References): Replace test on Is_Overriding_Operation by test on
119 the presence of Overridden_Operation.
120 * sem_disp.adb (Override_Dispatching_Operation): Replace test on
121 Is_Overriding_Operation by test on the presence of Overridden_Operation.
122 Add missing decoration of attribute Overridden_Operation.
124 2010-10-26 Robert Dewar <dewar@adacore.com>
126 * sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order): Properly check
129 2010-10-26 Bob Duff <duff@adacore.com>
131 * sem_res.adb (Resolve_Actuals): In case of certain
132 internally-generated type conversions (created by OK_Convert_To, so the
133 Conversion_OK flag is set), avoid fetching the component type when it's
134 not really an array type, but a private type completed by an array type.
136 2010-10-26 Ed Schonberg <schonberg@adacore.com>
138 * sem_ch5.adb: Adjust format of error message.
140 2010-10-26 Robert Dewar <dewar@adacore.com>
142 * einfo.ads, einfo.adb (OK_To_Reference): Removed, no longer used.
143 * exp_util.adb (Side_Effect_Free): Put in safety barrier in code to
144 detect renamings to avoid problems with invariants.
145 * sem_ch13.adb (Replace_Type_References_Generic): New procedure
146 (Build_Invariant_Procedure): Use Replace_Type_Reference_Generic
147 (Build_Predicate_Function): Use Replace_Type_Reference_Generic
148 * sem_res.adb, sem_ch8.adb, sem_ch4.adb (OK_To_Reference): Remove
149 references, flag is no longer set.
151 2010-10-26 Vincent Celier <celier@adacore.com>
153 * prj.ads (Source_Data): New Boolean component Initialized, defaulted
154 to False, set to True when Source_Data is completely initialized.
155 * prj-env.adb: Minor comment fix.
157 2010-10-26 Robert Dewar <dewar@adacore.com>
159 * sem_case.adb, sem_ch6.adb, sem_util.adb: Minor reformatting.
161 2010-10-26 Ed Schonberg <schonberg@adacore.com>
163 * sem_ch5.adb (Analyze_Iteration_Scheme): Diagnose attempt to use thew
164 form "for X in A" when A is an array object. This form is only intended
166 * sem_eval.adb: Fix reference to non-existing field of type conversion
168 * sem_case.adb (Check_Choices): Improve error reporting for overlapping
169 choices in case statements.
171 2010-10-26 Gary Dismukes <dismukes@adacore.com>
173 * exp_disp.adb (Expand_Interface_Actuals): When expanding an actual for
174 a class-wide interface formal that involves applying a displacement
175 conversion to the actual, check for the case of calling a build-in-place
176 function and handle generation of the implicit BIP parameters (call
177 Make_Build_In_Place_Call_In_Anonymous_Context).
178 Add with and use of Exp_Ch6.
180 2010-10-26 Robert Dewar <dewar@adacore.com>
182 * sem_prag.adb, sem_cat.ads: Minor reformatting.
184 2010-10-26 Sergey Rybin <rybin@adacore.com>
186 * vms_data.ads: Define VMS qualifier for gnatelim '--ignore' option
188 2010-10-26 Thomas Quinot <quinot@adacore.com>
190 * sem_util.adb (Has_Preelaborable_Initialization.Check_Components):
191 For a discriminant, use Discriminant_Default_Value rather than
192 Expression (Declaration_Node (D)).
194 2010-10-26 Geert Bosch <bosch@adacore.com>
196 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Parameterized
197 expressions don't need a spec, even when style checks require
198 subprograms to have one.
200 2010-10-26 Arnaud Charlet <charlet@adacore.com>
202 * gnatvsn.ads: Update comments.
204 2010-10-26 Matthew Heaney <heaney@adacore.com>
206 * Makefile.rtl, impunit.adb: Add bounded hashed set and bounded hashed
208 * a-cohata.ads: Add declaration of generic package for bounded hash
210 * a-chtgbo.ads, a-chtgbo.adb, a-chtgbk.ads, a-chtgbk.adb, a-cbhase.ads,
211 a-cbhase.adb, a-cbhama.ads, a-cbhama.adb: New files.
213 2010-10-26 Ed Schonberg <schonberg@adacore.com>
215 * sem_warn.adb: Improve warning message on overlapping actuals.
217 2010-10-26 Thomas Quinot <quinot@adacore.com>
219 * sem_ch4.adb, exp_dist.adb: Minor reformatting.
221 2010-10-26 Vincent Celier <celier@adacore.com>
223 * makeusg.adb (Makeusg): Add lines for switches -vl, -vm and -vh.
225 2010-10-26 Robert Dewar <dewar@adacore.com>
227 * exp_ch3.adb (Expand_N_Object_Declaration): Move generation of
228 predicate check to analyzer, since too much rewriting occurs in the
230 * sem_ch13.adb (Build_Predicate_Function): Change calling sequence, and
231 change the order in which things are done to fix several errors in
232 dealing with qualification of the type name.
233 (Build_Static_Predicate): Built static predicate after full analysis
234 of the body. This is necessary to fix several problems.
235 * sem_ch3.adb (Analyze_Object_Declaration): Move predicate check here
236 from expander, since too much expansion occurs in the analyzer to leave
238 (Analyze_Object_Declaration): Change parameter Include_Null to new name
239 Include_Implicit in Is_Partially_Initialized_Type call.
240 (Analyze_Subtype_Declaration): Make sure predicates are proapagated in
241 some strange cases of internal subtype generation.
242 * sem_util.ads, sem_util.adb (Is_Partially_Initialized_Type): Change
243 Include_Null to Include_Implicit, now includes the case of
246 2010-10-26 Sergey Rybin <rybin@adacore.com>
248 * gnat_rm.texi: Revise the documentation for pragma Eliminate.
250 2010-10-26 Matthew Heaney <heaney@adacore.com>
252 * Makefile.rtl, impunit.adb: Added bounded list container.
253 * a-cbdlli.ads, a-cbdlli.adb: New file.
255 2010-10-25 Eric Botcazou <ebotcazou@adacore.com>
257 * gcc-interface/utils2.c: Include flags.h and remove prototypes.
258 (build_unary_op) <TRUTH_NOT_EXPR>: When not optimizing, fold the result
259 of the call to invert_truthvalue_loc.
260 * gcc-interface/Make-lang.in (utils2.o): Add $(FLAGS_H).
262 2010-10-25 Eric Botcazou <ebotcazou@adacore.com>
264 * gcc-interface/utils.c (update_pointer_to): Clear TYPE_POINTER_TO and
265 TYPE_REFERENCE_TO of the old type after redirecting its pointer and
268 2010-10-25 Eric Botcazou <ebotcazou@adacore.com>
270 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not set
271 TREE_THIS_NOTRAP on the INDIRECT_REF node built for the template.
273 2010-10-25 Jose Ruiz <ruiz@adacore.com>
275 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for powerpc-linux):
276 Reorganize target pairs so that it works on linux and ElinOS.
278 2010-10-25 Pascal Obry <obry@adacore.com>
280 * adaint.c (__gnat_file_time_name_attr): Use GetFileAttributesEx to get
281 the timestamp. A bit faster than opening/closing the file.
282 (__gnat_stat_to_attr): Remove kludge for Windows.
283 (__gnat_file_exists_attr): Likewise.
284 The timestamp is now retreived using GetFileAttributesEx as faster.
286 2010-10-25 Javier Miranda <miranda@adacore.com>
288 * sem_ch3.adb (Derive_Interface_Subprogram): New subprogram.
289 (Derive_Subprograms): For abstract private types transfer to the full
290 view entities of uncovered interface primitives. Required because if
291 the interface primitives are left in the private part of the package
292 they will be decorated as hidden when the analysis of the enclosing
293 package completes (and hence the interface primitive is not visible
294 for dispatching calls).
296 2010-10-25 Matthew Heaney <heaney@adacore.com>
298 * Makefile.rtl, impunit.adb: Added bounded set and bounded map
300 * a-crbltr.ads: Added declaration of generic package for bounded tree
302 * a-rbtgbo.ads, a-rbtgbo.adb, a-rbtgbk.ads, a-rbtgbk.adb, a-btgbso.ads,
303 a-btgbso.adb, a-cborse.ads, a-cborse.adb, a-cborma.ads, a-cborma.adb:
306 2010-10-25 Thomas Quinot <quinot@adacore.com>
308 * sem_util.adb: Minor reformatting.
309 * usage.adb: Fix usage line for -gnatwh.
311 2010-10-25 Thomas Quinot <quinot@adacore.com>
313 * sem_ch12.adb (Analyze_Package_Instantiation): For an
314 instantiation in an RCI spec, omit package body if instantiation comes
315 from source, even as a nested
317 * exp_dist.adb (Add_Calling_Stubs_To_Declarations,
318 *_Support.Add_Receiving_Stubs_To_Declarations): Handle the case of
319 nested packages, package instantiations and subprogram instantiations.
321 2010-10-25 Robert Dewar <dewar@adacore.com>
323 * exp_ch5.adb (Expand_Predicated_Loop): Remove code for loop through
324 non-static predicate, since we agree not to allow this.
325 (Expand_Predicated_Loop): Properlay handle false predicate (null
326 list in Static_Predicate field.
327 * sem_ch13.adb (Build_Static_Predicate): Extensive changes to clean up
328 handling of more general predicate forms.
330 2010-10-25 Robert Dewar <dewar@adacore.com>
332 * sem_ch4.adb, sem_util.adb: Minor reformatting.
333 * sem_ch8.adb (Find_Selected_Component): Allow selection from instance
334 of type in predicate or invariant expression.
336 2010-10-25 Pascal Obry <obry@adacore.com>
338 * adaint.c (__gnat_stat_to_attr): Can set the timestamp on Windows now.
340 (__gnat_stat): Rewrite Win32 version.
342 2010-10-25 Robert Dewar <dewar@adacore.com>
344 * sem_warn.adb, einfo.ads, exp_ch4.adb: Minor comment fix
345 * sem_case.adb: Comment clarification for loops through false
347 * sem_util.adb: Minor reformatting
348 (Check_Order_Dependence): Fix bad double blank in error message
350 2010-10-25 Ed Schonberg <schonberg@adacore.com>
352 * sem_ch4.adb (Analyze_Membership_Op): in Ada_2012 a membership
353 operation can have a single alternative that is a value of the type.
354 Rewrite operation as an equality test.
356 2010-10-25 Matthew Heaney <heaney@adacore.com>
358 * Makefile.rtl, impunit.adb: Added a-cobove (bounded vector container)
360 * a-contai.ads: Added declaration of Capacity_Error exception.
361 * a-cobove.ads, a-cobove.adb: New files.
363 2010-10-25 Thomas Quinot <quinot@adacore.com>
365 * uname.adb: Revert previous change, no longer needed after change
368 2010-10-25 Thomas Quinot <quinot@adacore.com>
370 * scos.ads: Minor comment fix.
372 2010-10-25 Ed Schonberg <schonberg@adacore.com>
374 * sem_ch5.adb (Analyze_Assignment_Statement): Check dangerous order
376 * sem_ch6.adb (Analyze_Procedure_Call_Statement): Ditto.
377 * sem_res.adb (Analyze_Actuals): Add actual to list of actuals for
378 current construct, for subsequent order dependence checking.
379 (Resolve): Check order dependence on expressions that are not
381 * sem_util.adb (Check_Order_Dependence): Code cleanup, to correspond
382 to latest version of AI05-144-2.
383 * sem_warn.adb (Warn_On_Overlapping_Actuals): Code cleanup.
385 2010-10-25 Robert Dewar <dewar@adacore.com>
387 * sem_ch13.adb (Build_Static_Predicate): Moved out of
388 Build_Predicate_Function.
389 (Build_Static_Predicate): Complet rewrite for more general predicates
391 2010-10-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
392 Eric Botcazou <ebotcazou@adacore.com>
394 * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Function): Allow
395 In Out/Out parameters for functions.
396 * gcc-interface/trans.c (gnu_return_var_stack): New variable.
397 (create_init_temporary): New static function.
398 (Subprogram_Body_to_gnu): Handle In Out/Out parameters for functions.
399 (call_to_gnu): Likewise. Use create_init_temporary in order to create
400 temporaries for unaligned parameters and return value. If there is an
401 unaligned In Out or Out parameter passed by reference, push a binding
402 level if not already done. If a binding level has been pushed and the
403 call is returning a value, create the call statement.
404 (gnat_to_gnu) <N_Return_Statement>: Handle In Out/Out parameters for
407 2010-10-22 Ben Brosgol <brosgol@adacore.com>
409 * gnat_rm.texi: Add chapter on Ada 2012 support.
411 2010-10-22 Robert Dewar <dewar@adacore.com>
413 * sem_ch12.adb: Minor reformatting.
415 2010-10-22 Thomas Quinot <quinot@adacore.com>
417 * exp_dist.adb: Mark missing case of nested package when expanding
420 2010-10-22 Ed Schonberg <schonberg@adacore.com>
422 * par-ch10.adb: Discard incomplete with_clause.
424 2010-10-22 Robert Dewar <dewar@adacore.com>
426 * checks.adb (Enable_Range_Check): Remove code suppressing range check
427 if static predicate present, not needed.
428 * exp_attr.adb (Expand_Pred_Succ): Check Suppress_Assignment_Checks flag
429 * exp_ch3.adb (Expand_N_Object_Declaration): Check
430 Suppress_Assignment_Checks flag.
431 * exp_ch4.adb (Expand_N_In): Make some corrections for proper handling
432 of ranges when predicates are present.
433 * exp_ch5.adb (Expand_Predicated_Loop): New procedure
434 (Expand_N_Assignment_Statement): Check Suppress_Assignment_Checks flag
435 (Expand_N_Loop_Statement): Handle loops over predicated types
436 * sem_case.adb (Analyze_Choices): Remove extra blank in error message.
437 * sem_ch13.adb (Build_Predicate_Function.Add_Call): Suppress info
438 message for inheritance if within a generic instance, not useful there!
439 (Build_Static_Predicate): Optimize test in predicate function
440 based on static ranges determined.
441 * sem_ch5.adb (Analyze_Iteration_Scheme): Error for loop through
442 subtype with non-static predicate.
443 * sinfo.ads, sinfo.adb (Suppress_Assignment_Checks): New flag.
445 2010-10-22 Thomas Quinot <quinot@adacore.com>
447 * uname.adb (Get_Unit_Name.Add_Node_Name): If encountering an error
448 node in the unit name, propagate Program_Error to guard against
451 2010-10-22 Javier Miranda <miranda@adacore.com>
453 * sem_ch8.adb (Find_Selected_Component): Do not generate a subtype for
454 selected components of dispatch table wrappers.
456 2010-10-22 Ed Schonberg <schonberg@adacore.com>
458 * exp_ch9.adb (Make_Initialize_Protection): A protected type that
459 implements an interface must be treated as if it has entries, to
460 support dispatching select statements.
462 2010-10-22 Robert Dewar <dewar@adacore.com>
464 * sem_aggr.adb, sem_ch3.adb: Minor reformatting.
466 2010-10-22 Javier Miranda <miranda@adacore.com>
468 * sem_aggr.adb (Resolve_Array_Aggregate.Add): If the type of the
469 aggregate has a non standard representation the attributes 'Val and
470 'Pos expand into function calls and the resulting expression is
471 considered non-safe for reevaluation by the backend. Relocate it into
472 a constant temporary to indicate to the backend that it is side
475 2010-10-22 Ed Schonberg <schonberg@adacore.com>
477 * sem_ch3.adb (Build_Concurrent_Derived_Type): Create declaration for
478 derived corresponding record type only when expansion is enabled.
480 2010-10-22 Robert Dewar <dewar@adacore.com>
482 * sem_case.adb, sem_attr.adb (Bad_Predicated_Subtype_Use): Change order
484 * sem_ch13.adb (Build_Predicate_Function): Don't give inheritance
485 messages for generic actual subtypes.
486 * sem_ch9.adb, sem_res.adb, sem_util.adb, sem_util.ads, sem_ch3.adb
487 (Bad_Predicated_Subtype_Use): Use this procedure.
489 2010-10-22 Robert Dewar <dewar@adacore.com>
491 * sem_ch5.adb: Minor reformatting.
493 2010-10-22 Robert Dewar <dewar@adacore.com>
495 * a-except-2005.adb (Rmsg_18): New message text.
496 * a-except.adb (Rmsg_18): New message text.
497 * atree.adb (List25): New function
498 (Set_List25): New procedure
499 * atree.ads (List25): New function
500 (Set_List25): New procedure
501 * einfo.adb (Static_Predicate): Is now a list
502 (OK_To_Reference): Present in all entities
503 * einfo.ads (Static_Predicate): Is now a list
504 (OK_To_Reference): Applies to all entities
505 * exp_ch13.adb (Build_Predicate_Function): Moved to Sem_Ch13
506 * sem_attr.adb (Bad_Attribute_For_Predicate): Call
507 Bad_Predicated_Subtype_Use.
508 * sem_case.ads, sem_case.adb: Major surgery to deal with predicated
510 * sem_ch13.adb (Build_Predicate_Function): Moved from Exp_Ch13 to
512 (Build_Static_Predicate): New procedure handles static predicates.
513 * sem_ch3.adb (Analyze_Subtype_Declaration): Delay freeze on subtype
514 with no constraint if ancestor subtype has predicates.
515 (Analyze_Variant_Part): New calling sequence for Analyze_Choices
516 * sem_ch4.adb (Junk_Operand): Don't complain about OK_To_Reference
518 (Analyze_Case_Expression): New calling sequence for Analyze_Choices
519 * sem_ch5.adb (Analyze_Case_Statement): New calling sequence for
521 * sem_util.ads, sem_util.adb (Bad_Predicated_Subtype_Use): New procedure
522 * types.ads (PE_Bad_Predicated_Generic_Type): Replaces
523 PE_Bad_Attribute_For_Predicate.
524 * atree.h: Add definition of List25.
526 2010-10-22 Jerome Lambourg <lambourg@adacore.com>
528 * gnatlink.adb (Process_Binder_File): Remove CLI-specific code, now
530 (Gnatlink): Remove CLI-specific code, moved to dotnet-ld
531 * bindgen.adb (Gen_Object_Files_Options): Do not issue -L switches with
532 the .NET compiler, useless and unsupported.
534 2010-10-22 Robert Dewar <dewar@adacore.com>
536 * sem_util.ads (Get_Num_Lit_From_Pos): Fix errors in documentation,
537 this returns a Node_Id for a reference to the entity, not the entity
540 2010-10-22 Ed Schonberg <schonberg@adacore.com>
542 * sem_ch5.adb (Analyze_Iteration_Scheme): use Insert_Actions when
543 bounds require a temporary.
545 2010-10-22 Robert Dewar <dewar@adacore.com>
547 * sem_ch4.adb: Minor reformatting.
548 * sinfo.ads: Minor comment fixes for Ada 2012 syntax.
550 2010-10-22 Robert Dewar <dewar@adacore.com>
552 * par-ch5.adb: Minor reformatting.
553 * gcc-interface/Make-lang.in: Update dependencies.
555 2010-10-22 Robert Dewar <dewar@adacore.com>
557 * a-except.adb, a-except-2005.adb: Add new Rcheck entry.
558 * exp_ch13.adb (Add_Call): Make sure subtype is marked with
559 Has_Predicates set to True if it inherits predicates.
560 * sem_attr.adb: Handle 'First/'Last/'Range for predicated types
561 * types.ads (PE_Bad_Attribute_For_Predicate): New reason code
562 * types.h: Add new Rcheck entry.
563 * einfo.ads, einfo.adb (Static_Predicate): New field.
564 Minor code reorganization (file float routines in proper section)
565 Fix bad field name in comments.
567 2010-10-22 Robert Dewar <dewar@adacore.com>
569 * sem_eval.adb (Subtypes_Statically_Compatible): Check null exclusion
572 2010-10-22 Vincent Celier <celier@adacore.com>
574 * prj-conf.adb (Get_Config_Switches): Detect if there is at least one
575 declaration of IDE'Compiler_Command for one of the language in the main
577 (Do_Autoconf): If there were at least one Compiler_Command declared and
578 no target, invoke gprconfig with --target=all instead of the normalized
581 2010-10-22 Robert Dewar <dewar@adacore.com>
583 * par-ch4.adb: Update syntax in comments for Ada 2012.
584 * sinfo.ads: Update syntax in comments for Ada 2012
585 * par-ch3.adb (Check_Restricted_Expression): Remove "in Ada 2012 mode"
588 2010-10-22 Gary Dismukes <dismukes@adacore.com>
590 * sem_ch3.adb (Check_Or_Process_Discriminants): In Ada 2012, allow
591 limited tagged types to have defaulted discriminants. Customize the
592 error message for the Ada 2012 case.
593 (Process_Discriminants): In Ada 2012, allow limited tagged types to have
594 defaulted discriminants. Customize the error message for the Ada 2012
596 * sem_ch6.adb (Create_Extra_Formals): Suppress creation of the extra
597 formal for out formals of discriminated types in the case where the
598 underlying type is a limited tagged type.
599 * exp_attr.adb (Expand_N_Attribute_Reference, case
600 Attribute_Constrained): Return True for 'Constrained when the
601 underlying type of the prefix is a limited tagged type.
603 2010-10-22 Thomas Quinot <quinot@adacore.com>
605 * sem_ch3.adb (Complete_Private_Subtype): The full view of the subtype
606 may already have a rep item chain inherited from the full view of the
607 base type, so do not overwrite it when propagating rep items from the
608 partial view of the subtype.
609 * sem_ch3.adb: Minor code reorganization. Minor reformatting.
611 2010-10-22 Sergey Rybin <rybin@adacore.com>
613 * gnat_ugn.texi (gnatmetric): Remove description of debug option.
615 2010-10-22 Tristan Gingold <gingold@adacore.com>
617 * adaint.c (__gnat_number_of_cpus): Add implementation for VMS.
619 2010-10-22 Ed Schonberg <schonberg@adacore.com>
621 * par-ch5.adb: Set properly starting sloc of loop parameter.
623 2010-10-22 Ed Schonberg <schonberg@adacore.com>
625 * sem_util.adb (May_Be_Lvalue): An actual in a function call can be an
626 lvalue in Ada2012, if the function has in-out parameters.
628 2010-10-22 Robert Dewar <dewar@adacore.com>
630 * cstand.adb, einfo.adb, exp_attr.adb, sem_prag.adb, sem_vfpt.adb,
631 sem_ch10.adb: Minor reformatting.
633 2010-10-22 Sergey Rybin <rybin@adacore.com>
635 * gnat_ugn.texi: Remove most of the content of gnatcheck chapter.
637 2010-10-22 Ed Schonberg <schonberg@adacore.com>
639 * sem_attr.adb: Handle indexed P'old.
641 2010-10-22 Geert Bosch <bosch@adacore.com>
643 * cstand.adb (Build_Float_Type): Set Float_Rep according to platform.
644 * einfo.ads (Float_Rep): New attribute.
645 (Float_Rep_Kind): Move from body. Add comments.
646 * einfo.adb (Float_Rep_Kind): Move to spec
647 (Float_Rep): Now a real field instead of local function.
648 (Set_Float_Rep): New procedure to set floating point representation
649 (Set_Vax_Float): Remove.
650 (Write_Entity_Flags): Remove Vax_Float flag.
651 (Write_Field10_Name): Add E_Floating_Point_Type case for Float_Rep.
652 * exp_attr.adb (Attribute_Valid): Use case statement for representation
654 * sem_ch3.adb (Build_Derived_Numeric_Type,
655 Floating_Point_Type_Declaration): Set Float_Rep instead of Vax_Float
657 * sem_util.ads, sem_util.adb (Is_AAMP_Float): Remove.
658 * sem_vfpt.adb (Set_D_Float, Set_F_Float, Set_G_Float, Set_IEEE_Long,
659 Set_IEEE_Short): Set Float_Rep instead of Vax_Float attribute.
661 2010-10-22 Robert Dewar <dewar@adacore.com>
663 * sprint.adb: Minor reformatting.
665 2010-10-22 Robert Dewar <dewar@adacore.com>
667 * exp_ch3.adb (Expand_N_Object_Declaration): Do required predicate
669 * sem_ch3.adb (Complete_Private_Subtype): Propagate predicates to full
671 * sem_ch6.adb (Invariants_Or_Predicates_Present): New name for
673 (Process_PPCs): Handle predicates generating post conditions
674 * sem_util.adb (Is_Partially_Initialized_Type): Add
675 Include_Null parameter.
676 * sem_util.ads (Is_Partially_Initialized_Type): Add
677 Include_Null parameter.
679 2010-10-22 Sergey Rybin <rybin@adacore.com>
681 * gnat_ugn.texi (gnatelim): Add description for '--ignore' option
683 2010-10-22 Thomas Quinot <quinot@adacore.com>
685 * sem_prag.adb (Check_First_Subtype): Specialize error messages for
686 case where argument is not a type.
688 2010-10-22 Robert Dewar <dewar@adacore.com>
690 * exp_ch5.adb, par-ch4.adb, par-ch5.adb, sem_ch5.adb, sinfo.ads: Minor
693 2010-10-22 Arnaud Charlet <charlet@adacore.com>
695 * a-locale.adb: Minor code clean up.
697 2010-10-22 Thomas Quinot <quinot@adacore.com>
699 * exp_ch4.adb: Minor code reorganization and factoring.
701 2010-10-22 Thomas Quinot <quinot@adacore.com>
703 * exp_ch5.adb, sem_ch5.adb, sinfo.ads, snames.ads-tmpl, par-ch5.adb:
706 2010-10-22 Geert Bosch <bosch@adacore.com>
708 * stand.ads: Fix typo in comment.
710 2010-10-22 Ed Schonberg <schonberg@adacore.com>
712 * sem_ch6.adb: Enable in-out parameter for functions.
714 2010-10-22 Ed Schonberg <schonberg@adacore.com>
716 * sem_ch4.adb (Analyze_Quantified_Expression): Handle properly loop
717 iterators that are transformed into container iterators after analysis.
718 * exp_ch4.adb (Expand_N_Quantified_Expression): Handle properly both
719 iterator forms before rewriting as a loop.
721 2010-10-22 Brett Porter <porter@adacore.com>
723 * a-locale.adb, a-locale.ads, locales.c: New files.
724 * Makefile.rtl: Add a-locale
725 * gcc-interface/Makefile.in: Add locales.c
727 2010-10-22 Robert Dewar <dewar@adacore.com>
729 * sem_util.ads, sem_util.adb, sem_aux.ads, sem_aux.adb
730 (Is_Generic_Formal): Moved from Sem_Util to Sem_Aux.
732 2010-10-22 Ed Schonberg <schonberg@adacore.com>
734 * exp_ch5.adb (Expand_Iterator_Loop): New subprogram, implements new
735 iterator forms over arrays and containers, in loops and quantified
737 * exp_util.adb (Insert_Actions): include N_Iterator_Specification.
738 * par-ch4.adb (P_Quantified_Expression): Handle iterator specifications.
739 * par-ch5.adb (P_Iterator_Specification): New subprogram. Modify
740 P_Iteration_Scheme to handle both loop forms.
741 * sem.adb: Handle N_Iterator_Specification.
742 * sem_ch5.adb, sem_ch5.ads (Analyze_Iterator_Specification): New
744 * sinfo.adb, sinfo.ads: New node N_Iterator_Specification.
745 N_Iteration_Scheme can now include an Iterator_Specification. Ditto
746 for N_Quantified_Expression.
747 * snames.ads-tmpl: Add names Cursor, Element, Element_Type, No_Element,
748 and Previous, to support iterators over predefined containers.
749 * sprint.adb: Handle N_Iterator_Specification.
751 2010-10-22 Thomas Quinot <quinot@adacore.com>
753 * sem_prag.adb, sem_ch12.adb, sem_util.adb, sem_util.ads
754 (Is_Generic_Formal): Move from body of Sem_Ch12 to Sem_Util.
755 (Check_Arg_Is_Local_Name): Fix check in the case of a pragma appearing
756 immediately after a library unit.
757 (Analyze_Pragma, case Preelaborable_Initialization): Pragma may apply to
758 a formal derived type.
760 2010-10-22 Geert Bosch <bosch@adacore.com>
762 * gcc-interface/Make-lang.in: Remove ttypef.ads
763 * checks.adb: Use Machine_Mantissa_Value and Machine_Radix_Value instead
764 of Machine_Mantissa and Machine_Radix.
765 * cstand.adb (P_Float_Range): Directly print the Type_Low_Bound and
766 Type_High_Bound of the type, instead of choosing constants from Ttypef.
767 (Set_Float_Bounds): Compute the bounds based on Machine_Radix_Value,
768 Machine_Emax_Value and Machine_Mantissa_Value instead of special-casing
770 * einfo.ads (Machine_Emax_Value, Machine_Emin_Value,
771 Machine_Mantissa_Value, Machine_Radix_Value, Model_Emin_Value,
772 Model_Epsilon_Value, Model_Mantissa_Value, Model_Small_Value,
773 Safe_Emax_Value, Safe_First_Value, Safe_Last_Value): Add new
774 synthesized floating point attributes.
775 * einfo.adb (Float_Rep): Determine the kind of floating point
776 representation used for a given type.
777 (Machine_Emax_Value, Machine_Emin_Value, Machine_Mantissa_Value,
778 Machine_Radix_Value): Implement based on Float_Rep_Kind of a type and
779 the number of digits in the type.
780 (Model_Emin_Value, Model_Epsilon_Value, Model_Mantissa_Value,
781 Model_Small_Value, Safe_Emax_Value, Safe_First_Value, Safe_Last_Value):
782 Implement new synthesized floating point attributes based on the various
784 * eval_fat.ads: Remove Machine_Mantissa and Machine_Radix.
785 * eval_fat.adb (Machine_Mantissa, Machine_Radix): Remove. Use the
786 Machine_Mantissa_Value and Machine_Radix_Value functions instead.
787 * exp_vfpt.adb (VAXFF_Digits, VAXDF_Digits, VAXFG_Digits): Define local
788 constants, instead of using constants from Ttypef.
789 * gnat_rm.texi: Reword comments referencing Ttypef.
790 * sem_attr.ads: Reword comment referencing Ttypef.
791 * sem_attr.adb (Float_Attribute_Universal_Integer,
792 Float_Attribute_Universal_Real): Remove.
793 (Attribute_Machine_Emax, Attribute_Machine_Emin,
794 Attribute_Machine_Mantissa, Attribute_Model_Epsilon,
795 Attribute_Model_Mantissa, Attribute_Model_Small, Attribute_Safe_Emax,
796 Attribute_Safe_First, Attribute_Safe_Last, Model_Small_Value): Use
797 attributes in Einfo instead of Float_Attribute_Universal_Real and
798 Float_Attribute_Universal_Integer and all explicit constants.
799 * sem_util.ads, sem_util.adb (Real_Convert): Remove.
800 * sem_vfpt.adb (VAXDF_Digits, VAXFF_Digits, VAXGF_Digits, IEEEL_Digits,
801 IEEES_Digits): New local constants, in order to remove dependency on
803 * tbuild.ads (Make_Float_Literal): New function.
804 * tbuild.adb (Make_Float_Literal): New function to create a new
805 N_Real_Literal, constructing it as simple as possible for best
806 output of constants in -gnatS.
807 * ttypef.ads: Remove.
809 2010-10-22 Robert Dewar <dewar@adacore.com>
811 * checks.adb (Apply_Predicate_Check): Remove attempt at optimization
812 when subtype is the same, caused legitimate checks to be missed.
813 * exp_ch13.adb (Build_Predicate_Function): Use Nearest_Ancestor to get
814 inheritance from right entity.
815 * freeze.adb (Freeze_Entity): Use Nearest_Ancestor to freeze in the
816 derived type case if the ancestor type has predicates.
817 * sem_aux.ads, sem_aux.adb (Nearest_Ancestor): New function.
818 * sem_prag.adb (Check_Enabled): Minor code reorganization.
820 2010-10-22 Arnaud Charlet <charlet@adacore.com>
822 * gcc-interface/utils.c, gcc-interface/gigi.h: Minor reformatting.
824 2010-10-22 Thomas Quinot <quinot@adacore.com>
826 * einfo.ads (Declaration_Node): Clarify documentation, in particular
827 regarding what is returned for subprogram entities.
829 2010-10-22 Arnaud Charlet <charlet@adacore.com>
831 * exp_attr.adb (Make_Range_Test): Generate a Range node instead of
832 explicit comparisons, generates simpler expanded code.
833 * a-except-2005.adb (Rcheck_06_Ext): New.
834 * gcc-interface/trans.c (gigi, gnat_to_gnu): Handle validity checks
836 * gcc-interface/Make-lang.in: Update dependencies.
838 2010-10-22 Robert Dewar <dewar@adacore.com>
840 * sem_ch3.adb (Array_Type_Declaration): Error for subtype wi predicate
842 (Constrain_Index): Error of subtype wi predicate in index constraint
843 * sem_ch9.adb (Analyze_Entry_Declaration): Error of subtype wi
844 predicate in entry family.
845 * sem_res.adb (Resolve_Slice): Error of type wi predicate in slice.
847 2010-10-22 Javier Miranda <miranda@adacore.com>
849 * sem_util.ads, sem_util.adb (Collect_Parents): New subprogram.
850 (Original_Corresponding_Operation): New subprogram.
851 (Visible_Ancestors): New subprogram.
852 * sem_ch6.adb (New_Overloaded_Entity): Handle new case of dispatching
853 operation that overrides a hidden inherited primitive.
854 * sem_disp.adb (Find_Hidden_Overridden_Primitive): New subprogram.
855 (Check_Dispatching_Operation): if the new dispatching operation
856 does not override a visible primtive then check if it overrides
857 some hidden inherited primitive.
859 2010-10-22 Ed Schonberg <schonberg@adacore.com>
861 * sem_ch10.adb (Analyze_With_Clause): If the parent_unit_name in a with
862 clause is a child unit that denotes a renaming, replace the
863 parent_unit_name with a reference to the renamed unit, because the
864 prefix is irrelevant to subsequent visibility..
866 2010-10-22 Robert Dewar <dewar@adacore.com>
868 * einfo.ads, einfo.adb (Has_Predicates): Flag is now on all entities
870 * exp_ch13.adb (Build_Predicate_Function): Output info msgs for
872 * sem_ch13.adb (Analyze_Aspect_Specifications): Make sure we have a
873 freeze node for entities for which a predicate is specified.
874 (Analyze_Aspect_Specifications): Avoid duplicate calls
875 * sem_ch3.adb (Analyze_Full_Type_Declaration): Remove attempt to avoid
876 duplicate calls to Analye_Aspect_Specifications.
878 2010-10-22 Thomas Quinot <quinot@adacore.com>
880 * a-exextr.adb, atree.ads, freeze.adb: Minor reformatting.
882 2010-10-21 Robert Dewar <dewar@adacore.com>
884 * sem_ch3.adb: Minor reformatting.
886 2010-10-21 Thomas Quinot <quinot@adacore.com>
888 * einfo.ads (Next_Girder_Discriminant): Remove obsolete description for
891 2010-10-21 Nicolas Roche <roche@adacore.com>
893 * gnatmem.adb, memroot.adb, memroot.ads, gmem.c,
894 gcc-interface/Makefile.in: Remove gnatmem specific files.
896 2010-10-21 Thomas Quinot <quinot@adacore.com>
898 * sem_res.adb, exp_ch13.adb: Minor reformatting.
900 2010-10-21 Thomas Quinot <quinot@adacore.com>
902 * sem_ch3.adb (Check_Or_Process_Discriminant): Reject illegal attempt
903 to provide a tagged full view as the completion of an untagged partial
904 view if the partial view has a discriminant with default.
906 2010-10-21 Arnaud Charlet <charlet@adacore.com>
908 * gcc-interface/Make-lang.in: Update dependencies.
910 2010-10-21 Robert Dewar <dewar@adacore.com>
912 * checks.ads, checks.adb (Apply_Predicate_Check): New procedure
913 Minor code reorganization.
914 * einfo.adb (Has_Predicates): Fix assertion.
915 * exp_ch13.adb (Build_Predicate_Function): Move from Sem_Ch13 spec to
917 (Expand_N_Freeze_Entity): Call build predicate function.
918 * exp_ch4.adb (Expand_N_Type_Conversion): Add predicate check.
919 * exp_ch5.adb (Expand_N_Assignment_Statement): Add predicate check.
920 * exp_prag.adb (Expand_Pragma_Check): Use all lower case for name of
922 * freeze.adb (Freeze_Entity): Move building of predicate function to
924 * sem_ch13.adb (Build_Predicate_Function): Move from Sem_Ch13 to
926 * sem_ch13.ads (Build_Predicate_Function): Move from Sem_Ch13 to
928 * sem_ch3.adb (Analyze_Declarations): Remove call to build predicate
930 * sem_res.adb (Resolve_Actuals): Apply predicate check.
932 2010-10-21 Robert Dewar <dewar@adacore.com>
934 * einfo.ads, einfo.adb: Replace Predicate_Procedure by
936 * exp_ch4.adb (Expand_N_In): Handle predicates.
937 * exp_util.ads, exp_util.adb (Make_Predicate_Call): New function.
938 (Make_Predicate_Check): New function.
939 * freeze.adb (Freee_Entity): Build predicate function if needed.
940 * sem_ch13.adb (Build_Predicate_Function): New procedure.
941 (Analyze_Aspect_Specifications): No third argument for Predicate pragma
942 built from Predicate aspect.
943 * sem_ch13.ads (Build_Predicate_Function): New procedure.
944 * sem_ch3.adb: Add handling for predicates.
945 * sem_eval.adb (Eval_Membership_Op): Never static if predicate
947 * sem_prag.adb (Analye_Pragma, case Predicate): Does not take a third
950 2010-10-21 Robert Dewar <dewar@adacore.com>
952 * einfo.ads, einfo.adb: Add handling of predicates.
953 Rework handling of invariants.
954 * exp_ch3.adb, exp_ch4.adb, exp_util.adb, sem_ch6.adb: Minor changes to
955 handing of invariants.
956 * par-prag.adb: Add dummy entry for pragma Predicate
957 * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing for
959 * sem_prag.adb: Add implementation of pragma Predicate.
960 * snames.ads-tmpl: Add entries for pragma Predicate.
962 2010-10-21 Robert Dewar <dewar@adacore.com>
964 * elists.adb: Minor reformatting.
966 2010-10-21 Geert Bosch <bosch@adacore.com>
968 * urealp.adb (UR_Write): Write hexadecimal constants with exponent 1 as
969 decimal constants, and write any others using the exponent notation.
970 Minor reformatting throughout
971 (Store_Ureal_Normalized): New function (minor code reorganization)
973 2010-10-21 Robert Dewar <dewar@adacore.com>
975 * einfo.ads, xeinfo.adb: Minor reformatting.
976 * s-stalib.ads: Minor comment fixes.
978 2010-10-21 Ed Schonberg <schonberg@adacore.com>
980 * sem_ch6.adb (Enter_Overloaded_Entity): Refine warning message about
981 hiding, to remove noise warnings about hiding predefined operators.
983 2010-10-21 Emmanuel Briot <briot@adacore.com>
985 * g-comlin.adb (Add_Switch): Fix handling of switches with no separator
986 when the parameter has length 1.
988 2010-10-21 Jose Ruiz <ruiz@adacore.com>
990 * sem_prag.adb (Set_Ravenscar_Profile): Enforce the restrictions of no
991 dependence on Ada.Execution_Time.Timers,
992 Ada.Execution_Time.Group_Budget, and
993 System.Multiprocessors.Dispatching_Domains which are part of the
995 * impunit.adb (Non_Imp_File_Names_05): Add the file "a-etgrbu" to the
996 list of Ada 2005 files for package Ada.Execution_Time.Group_Budgets.
997 (Non_Imp_File_Names_12): Add the file "s-mudido" to the list of Ada 2012
998 files for package System.Mutiprocessors.Dispatching_Domains.
1000 2010-10-21 Tristan Gingold <gingold@adacore.com>
1002 * ug_words, vms_data.ads: Define the VMS qualifier for -gnateE.
1004 2010-10-21 Thomas Quinot <quinot@adacore.com>
1006 * sem_ch3.ads (Process_Discriminants): Clarify cases where this is
1007 called for a completion.
1009 2010-10-21 Geert Bosch <bosch@adacore.com>
1011 * uintp.ads: Expand image buffer to have enough room for 128-bit values
1012 * urealp.ads (UR_Write): Write constants in base 16 in hexadecimal
1013 notation; either as fixed point literal or in canonical radix 16
1014 floating point form.
1016 2010-10-21 Robert Dewar <dewar@adacore.com>
1018 * a-cgaaso.ads, a-tags.ads, exp_ch3.adb, exp_attr.adb, exp_ch4.adb,
1019 exp_ch3.ads, exp_ch7.adb, exp_ch9.adb, exp_disp.adb, exp_disp.ads,
1020 exp_dist.adb, exp_util.adb, layout.adb, lib-xref.adb, lib.ads,
1021 prep.adb, prj-strt.adb, s-ststop.adb, s-taskin.ads, s-tataat.ads,
1022 sem_aggr.adb, sem_attr.adb, sem_ch12.adb, sem_ch3.adb, sem_ch4.adb,
1023 sem_ch4.ads, sem_ch5.adb, sem_res.adb, sem_util.adb, einfo.adb,
1024 g-sothco.ads, make.adb: Minor reformatting
1026 2010-10-21 Vincent Celier <celier@adacore.com>
1028 * vms_data.ads: Add new qualifiers /SRC_INFO= and
1029 /UNCHECKED_SHARED_LIB_IMPORTS for GNAT COMPILE.
1030 Correct qualifier /SRC_INFO= for GNAT MAKE
1032 2010-10-21 Ed Schonberg <schonberg@adacore.com>
1034 * exp_aggr.adb (Flatten): An association for a subtype may be an
1036 (Safe_Left_Hand_Side): An unchecked conversion is part of a safe
1037 left-hand side if the expression is.
1038 (Is_Safe_Index): new predicate
1039 * exp_ch3.adb (Expand_Freeze_Enumeration_Type): Indicate that the
1040 generated Rep_To_Pos function is a Pure_Function.
1042 2010-10-21 Robert Dewar <dewar@adacore.com>
1044 * gnat_rm.texi: Document Invariant pragma.
1046 2010-10-21 Javier Miranda <miranda@adacore.com>
1048 * exp_ch5.adb: Update comment.
1050 2010-10-21 Robert Dewar <dewar@adacore.com>
1052 * sem_ch13.adb (Build_Invariant_Procedure): Remove commented out code
1053 for interfaces, since invariants are not allowed on interfaces in any
1056 2010-10-21 Javier Miranda <miranda@adacore.com>
1058 * sem_attr.adb (Resolve_Attribute): After replacing the range attribute
1059 node with a range expression ensure that its evaluation will not have
1061 * exp_ch5.adb (Expand_Assign_Array): Propagate the Parent to the
1062 unchecked conversion node generated to handle assignment of private
1063 types. Required to allow climbing the subtree if Insert_Action is
1066 2010-10-21 Robert Dewar <dewar@adacore.com>
1068 * par-ch3.adb (P_Interface_Type_Definition): Allow for possibility of
1069 aspect clause presence terminating the type definition.
1071 2010-10-21 Robert Dewar <dewar@adacore.com>
1073 * exp_ch4.adb, exp_intr.adb, par-ch4.adb, scn.adb, sem_ch4.adb,
1074 sem_res.adb, sem_util.adb, sinfo.ads, a-except-2005.adb: Minor
1076 * snames.ads-tmpl: Add note on Name_Some (not a reserved keyword).
1078 2010-10-21 Geert Bosch <bosch@adacore.com>
1080 * ttypef.ads: Further cleanup of Safe_XXX float attributes.
1082 2010-10-19 Ed Schonberg <schonberg@adacore.com>
1084 * exp_ch4.adb, exp_ch4.ads (Expand_Quantified_Expression): New procedure
1085 * exp_util.adb (Insert_Actions): Include Quantified_Expression.
1086 * expander.adb: Call Expand_Qualified_Expression.
1087 * par.adb: New procedure P_Quantified_Expression. Make
1088 P_Loop_Parameter_Specification global for use in quantified expressions.
1089 * par-ch3.adb (P_Subtype_Mark_Resync): Allow "some" as an identifier if
1091 * par-ch4.adb: New procedure P_Quantified_Expression.
1092 * par-ch5.adb: P_Loop_Parameter_Specification is now global.
1093 * scans.adb, scans.ads: Introduce token Some. For now leave as
1095 * scn.adb (Scan_Reserved_Identifier): For earlier versions of Ada,
1096 treat Some as a regular identifier.
1097 * sem.adb: Call Analyze_Quantified_Expression.
1098 * sem_ch4.adb, sem_ch4.ads: New procedure Analyze_Quantified_Expression.
1099 * sem_ch5.adb, sem_ch5.ads: Analyze_Iteration_Scheme is public, for use
1100 in quantified expressions.
1101 * sem_res.adb: New procedure Resolve_Qualified_Expression.
1102 * sinfo.adb, sinfo.ads: New node N_Quantified_Expression
1103 * snames.ads-tmpl: New name Some.
1104 * sprint.adb: Output quantified_expression.
1106 2010-10-19 Robert Dewar <dewar@adacore.com>
1108 * a-exexda.adb: Minor reformatting
1109 Minor code reorganization.
1111 2010-10-19 Robert Dewar <dewar@adacore.com>
1113 * sem_eval.adb: Minor reformatting.
1115 2010-10-19 Tristan Gingold <gingold@adacore.com>
1117 * exp_ch4.adb (Expand_N_And_Op, Expand_N_Or_Op, Expand_N_Xor_Op): Call
1118 Expand_Intrinsic_Call if the function is intrinsic.
1119 * exp_intr_adb (Expand_Binary_Operator): Handle VMS case for logical
1120 binary operator on the unsigned_quadword record.
1121 * exp_intr.ads (Expand_Intrinsic_Call): Update comments.
1123 2010-10-19 Geert Bosch <bosch@adacore.com>
1125 * gnat_rm.texi (pragma Float_Representation): Fix typo.
1127 2010-10-19 Arnaud Charlet <charlet@adacore.com>
1129 * switch-c.adb (Scan_Front_End_Switches): Add handling of -gnateE.
1130 * fe.h (Exception_Extra_Info): Declare.
1131 * usage.adb (usage): Add -gnateE doc.
1132 * checks.adb (Install_Null_Excluding_Check): Use better sloc.
1133 * sem_util.adb (Insert_Explicit_Dereference): Ditto.
1134 * gnat_ugn.texi: Document -gnateE switch.
1135 * a-except.adb (Set_Exception_C_Msg): New parameter Column.
1136 * a-except-2005.adb (Set_Exception_C_Msg): New parameter Column.
1137 (Raise_Constraint_Error_Msg): Ditto.
1138 (Image): New helper function.
1139 (Rcheck_00_Ext, Rcheck_05_Ext, Rcheck_12_Ext): New procedure with more
1140 detailed exception information.
1141 Adjust calls to Set_Exception_C_Msg and Raise_Constraint_Error_Msg.
1142 * a-exexda.adb (Set_Exception_C_Msg): New parameter Column.
1143 * opt.ads (Exception_Extra_Info): New flag.
1144 * gcc-interface/utils.c (gnat_raise_decls_ext): New.
1145 * gcc-interface/utils2.c (build_call_raise_range,
1146 build_call_raise_column): New functions.
1147 * gcc-interface/gigi.h (exception_info_kind, gnat_raise_decls_ext,
1148 build_call_raise_range, build_call_raise_column): Declare.
1149 gcc-interface/trans.c (build_raise_check): New function.
1150 (gigi): Initialize gnat_raise_decls_ext.
1151 (gnat_to_gnu): Add initial support for -gnateE switch.
1152 * gcc-interface/Make-lang.in: Update dependencies.
1154 2010-10-19 Geert Bosch <bosch@adacore.com>
1156 * ttypef.ads: Change VAXDF_Last to be -VAXDF_First, as type is
1159 2010-10-19 Robert Dewar <dewar@adacore.com>
1161 * atree.h (Field29): Fix incorrect definition.
1162 * einfo.adb (Invariant_Procedure): New attribute
1163 (Has_Invariants): New flag
1164 (Has_Inheritable_Invariants): New flag
1165 (OK_To_Reference): New flag
1166 Minor code reorganization (use Next_Rep_Item function)
1167 * einfo.ads (Invariant_Procedure): New attribute
1168 (Has_Invariants): New flag
1169 (Has_Inheritable_Invariants): New flag
1170 (OK_To_Reference): New flag
1171 * exp_ch3.adb (Expand_N_Object_Declaration): Add check for invariant
1172 * exp_ch4.adb (Expand_N_Type_Conversion): Check invariant on type
1173 conversion. Minor reformatting.
1174 * exp_util.ads, exp_util.adb (Make_Invariant_Call): New procedure.
1175 * opt.ads (List_Inherited_Aspects): New name for List_Inherited_Pre_Post
1176 * par-prag.adb: Add dummy entry for pragma Invariant.
1177 * sem_ch13.adb (Build_Invariant_Procedure): New procedure
1178 (Analyze_Aspect_Specification): Add support for Invariant aspect
1179 * sem_ch13.ads (Build_Invariant_Procedure): New procedure
1180 * sem_ch3.adb (Build_Derived_Type): Propagate invariant information
1181 (Process_Full_View): Deal with invariants, building invariant procedure
1183 * sem_ch6.adb (Process_PPCs): Add processing of invariants
1184 * sem_ch7.adb (Analyze_Package_Specification): Build invariant
1186 * sem_prag.adb: Implement pragma Invariant.
1187 * sem_res.adb (Resolve_Entity_Name): Allow type reference if
1188 OK_To_Reference set.
1189 * sem_warn.adb (List_Inherited_Aspects): New name for
1190 List_Inherited_Pre_Post.
1191 * snames.ads-tmpl: Add entries for pragma Invariant.
1192 * treepr.adb (Print_Entity_Information): Add handling of Field29.
1193 * usage.adb: Warning .l/.L applies to invariant as well as pre/post.
1195 2010-10-19 Javier Miranda <miranda@adacore.com>
1197 * par-ch4.adb: Update documentation of Ada 2012 syntax rules for
1200 2010-10-19 Bob Duff <duff@adacore.com>
1202 * sem_attr.adb (Eval_Attribute): Implement Max_Alignment_For_Allocation
1204 * exp_attr.adb (Expand_N_Attribute_Reference): Add
1205 Attribute_Max_Alignment_For_Allocation to the case statement.
1206 * snames.ads-tmpl (Name_Max_Alignment_For_Allocation,
1207 Attribute_Max_Alignment_For_Allocation): New attribute name.
1209 2010-10-19 Ed Schonberg <schonberg@adacore.com>
1211 * sem_ch3.adb (OK_For_Limited_Init_In_05): a call to an access to
1212 parameterless function appears syntactically as an explicit dereference.
1214 2010-10-19 Thomas Quinot <quinot@adacore.com>
1216 * sem_ch8.adb, sem_ch12.adb, opt.ads, sem_ch6.adb, sem_res.adb,
1217 i-cexten.ads, exp_disp.adb, exp_ch4.adb, exp_ch9.adb: Minor reformatting
1219 2010-10-19 Thomas Quinot <quinot@adacore.com>
1221 * sem_util.adb (Collect_Primitive_Operations): A function with an
1222 anonymous access result designating T is a primitive operation of T.
1224 2010-10-19 Tristan Gingold <gingold@adacore.com>
1226 * init.c: On Alpha/VMS, only adjust PC for HPARITH.
1228 2010-10-19 Tristan Gingold <gingold@adacore.com>
1230 * sem_attr.adb (Eval_Attribute): Handle Attribute_Ref, which can be
1233 2010-10-19 Ed Schonberg <schonberg@adacore.com>
1235 * sem_ch12.adb (Check_Generic_Child_Unit): Handle properly the case of
1236 an instantiation of a renaming of the implicit generic child that
1237 appears within an instance of its parent.
1239 2010-10-19 Thomas Quinot <quinot@adacore.com>
1241 * exp_ch9.adb: Minor reformatting.
1242 * einfo.adb, einfo.ads, atree.adb, atree.ads, exp_dist.adb, atree.h:
1243 (Referenced_Object): Remove unused entity attribute.
1244 (Direct_Primitive_Operations): Move to Elist10, this is set for all
1245 tagged types, including synchronous ones, so can't use field15 which is
1246 used as Storage_Size_Variable for task types and Entry_Bodies_Array for
1248 (Add_RACW_Primitive_Declarations_And_Bodies): Remove bogus guard
1249 against Concurrent_Types (we must handle the case of a RACW designating
1250 a class-wide private synchronous type).
1251 Use Direct_Primitive_Operations, not Primitive_Operations, since we
1252 really want the former.
1254 2010-10-19 Bob Duff <duff@adacore.com>
1256 * sem_ch8.adb (Pop_Scope): Change "return;" to "raise Program_Error;".
1258 2010-10-19 Javier Miranda <miranda@adacore.com>
1260 * exp_ch4.adb (Expand_Set_Membership.Make_Cond): Add missing support
1263 2010-10-19 Thomas Quinot <quinot@adacore.com>
1265 * einfo.ads, atree.ads: Minor comment fixes.
1267 2010-10-18 Bob Duff <duff@adacore.com>
1269 * sinfo.ads, sinfo.adb: Modify comment about adding fields to be more
1270 correct, and to be in a more convenient order.
1271 (Default_Storage_Pool): New field of N_Compilation_Unit_Aux, for
1272 recording the Default_Storage_Pool for a parent library unit.
1273 * einfo.ads (Etype): Document the case in which Etype can be Empty.
1274 * sem_prag.adb (Pragma_Default_Storage_Pool): Analyze the new
1275 Default_Storage_Pool pragma.
1276 * sem.ads (Save_Default_Storage_Pool): Save area for push/pop scopes.
1277 * gnat_ugn.texi: Document Default_Storage_Pool as a new configuration
1279 * freeze.adb (Freeze_Entity): When freezing an access type, take into
1280 account any Default_Storage_Pool pragma that applies. We have to do
1281 this at the freezing point, because up until that point, a Storage_Pool
1282 or Storage_Size clause could occur, which should override the
1283 Default_Storage_Pool.
1284 * par-prag.adb: Add this pragma to the list of pragmas handled entirely
1286 * sem_ch8.adb (Push_Scope, Pop_Scope): Save and restore the
1287 Default_Storage_Pool information.
1288 * opt.ads (Default_Pool, Default_Pool_Config): New globals for recording
1289 currently-applicable Default_Storage_Pool pragmas.
1290 * opt.adb: Save/restore the globals as appropriate.
1291 * snames.ads-tmpl (Name_Default_Storage_Pool,
1292 Pragma_Default_Storage_Pool): New pragma name.
1294 2010-10-18 Vincent Celier <celier@adacore.com>
1296 * make.adb (Switches_Of): Put the spec and body suffix in canonical
1299 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1301 * sem_ch13.adb (Analyze_Aspect_Specifications): If subprogram is at the
1302 library level, the pre/postconditions must be treated as global
1303 declarations, i.e. placed on the Aux_Decl nodes of the compilation unit.
1304 * freeze.adb (Freeze_Expression): If the expression is at library level
1305 there is no enclosing record to check.
1307 2010-10-18 Javier Miranda <miranda@adacore.com>
1309 * sem_ch3.ads (Find_Type_Name): Add documentation.
1310 * sem_ch3.adb (Analyze_Full_Type_Declaration): Code cleanup because the
1311 propagation of the class-wide entity is now done by routine
1312 Find_Type_Name to factorize this code.
1313 (Analyze_Private_Extension_Declaration): Handle private type that
1314 completes an incomplete type.
1315 (Tag_Mismatch): Add error message for tag mismatch in a private type
1316 declaration that completes an incomplete type.
1317 (Find_Type_Name): Handle completion of incomplete type by means of
1318 a private declaration. Generate an error if a tagged incomplete type
1319 is completed by an untagged private type.
1320 * sem_ch7.adb (New_Private_Type): Handle private type that completes an
1322 * einfo.ads (Full_View): Add documentation.
1324 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1326 * sem_ch12.adb (Analyze_Formal_Package_Declaration): If the package is
1327 a renaming, generate a reference for it before analyzing the renamed
1328 entity, to prevent spurious warnings.
1330 2010-10-18 Jose Ruiz <ruiz@adacore.com>
1332 * adaint.c (__gnat_pthread_setaffinity_np,
1333 __gnat_pthread_attr_setaffinity_np): Remove wrappers, no longer needed.
1334 * s-osinte-linux.ads (pthread_setaffinity_np,
1335 pthread_attr_setaffinity_np): Remove use of wrappers.
1336 * s-taprop-linux.adb (Create_Task, Initialize): Restore check to verify
1337 whether the affinity functionality is available in the OS.
1338 * gcc-interface/utils.c: Set TREE_STATIC on functions only when there
1341 2010-10-18 Robert Dewar <dewar@adacore.com>
1343 * einfo.ads, einfo.adb: Minor reformatting.
1344 * gnat_ugn.texi, ug_words: Add missing entries, fix typos.
1346 2010-10-18 Emmanuel Briot <briot@adacore.com>
1348 * g-comlin.adb (Is_In_Config): When the switch accepts either a space
1349 or equal, we output an equal every time.
1351 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1353 * sem_res.adb (Resolve_Entry_Call): Handle call to an entry family
1354 member when pre/post conditions are present.
1355 * exp_ch9.adb (Build_PPC_Wrapper): The PPC_Wrapper for an entry family
1356 includes an index parameter, and the name of the enclosed entry call is
1357 an indexed component.
1359 2010-10-18 Robert Dewar <dewar@adacore.com>
1361 * einfo.ads, einfo.adb: Minor reformatting.
1363 2010-10-18 Jose Ruiz <ruiz@adacore.com>
1365 * adaint.c (__gnat_pthread_setaffinity_np,
1366 __gnat_pthread_attr_setaffinity_np): Add these wrappers which check the
1367 availability of the underlying OS functionality before calling.
1368 * s-osinte-linux.ads (pthread_setaffinity_np,
1369 pthread_attr_setaffinity_np): Call a wrapper instead of the OS function
1370 to perform a check of its availability.
1371 * s-taprop-linux.adb (Create_Task): Remove the check to verify whether
1372 the affinity functionality is available in the OS. Now done in a wrapper
1373 * gcc-interface/Makefile.in: Remove vmshandler.asm, unused.
1374 * gcc-interface/Make-lang.in: Update dependencies.
1376 2010-10-18 Robert Dewar <dewar@adacore.com>
1378 * sinfo.ads, sinfo.adb: Change Has_Pragma_CPU to Flag14 (Flag10 is
1381 2010-10-18 Robert Dewar <dewar@adacore.com>
1383 * s-stausa.adb, s-taprop-linux.adb, s-taprop-mingw.adb, s-tassta.ads:
1386 2010-10-18 Robert Dewar <dewar@adacore.com>
1388 * exp_strm.adb (Build_Elementary_Input_Call): Check
1389 No_Default_Stream_Attributes.
1390 (Build_Elementary_Write_Call): Check No_Default_Stream_Attributes
1391 * s-rident.ads: Add restriction No_Default_Stream_Attributes
1392 Put restriction No_Allocators_After_Elaboration in alpha order
1394 2010-10-18 Jose Ruiz <ruiz@adacore.com>
1396 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Add field corresponding
1397 to the affinity when expanding the task declaration.
1398 (Make_Task_Create_Call): Add the affinity parameter to the call to
1400 * sem_prag.adb (Analyze_Pragma): Add the analysis for pragma CPU,
1401 taking into account the case when it applies to a subprogram (only for
1402 main and with static expression) or to a task.
1403 * par_prag.adb:(Prag): Make pragma CPU a valid one.
1404 * snames.ads-tmpl (Name_uCPU, Name_CPU): Add these new name identifiers
1405 used by the expander for handling the affinity parameter when creating
1407 (Pragma_Id): Add Pragma_CPU as a valid one.
1408 * rtsfind.ads (RTU_Id): Make System_Multiprocessors accesible.
1409 (RE_Id, RE_Unit_Table): Make the entities RE_CPU_Range and
1410 RE_Unspecified_CPU visible.
1411 * sinfo.ads, sinfo.adb (Has_Pragma_CPU, Set_Has_Pragma_CPU): Add these
1412 two subprograms to set/get the flag indicating whether there is a
1413 pragma CPU which applies to the entity.
1414 * lib.ads, lib.adb (Unit_Record, Default_Main_CPU, Main_CPU,
1415 Set_Main_CPU): Add the field Main_CPU to Unit_Record to store the value
1416 of the affinity associated to the main subprogram (if any).
1417 Default_Main_CPU is used when no affinity is set. Subprograms
1418 Set_Main_CPU and Main_CPU are added to set/get the affinity of the main
1420 * ali.ads, ali.adb (ALIs_Record): Add field Main_CPU to contain the
1421 value of the affinity of the main subprogram.
1422 (Scan_ALI): Get the affinity of the main subprogram (encoded as C=XX in
1424 * lib-writ.ads, lib-writ.adb (M_Parameters): Encode the affinity of the
1425 main subprogram in the M (main) line using C=XX.
1426 * lib-load.adb (Create_Dummy_Package_Unit, Load_Main_Source,
1427 Load_Unit): Add new field Main_CPU.
1428 * bindgen.adb (Gen_Adainit_Ada, Gen_Adainit_C): Add the code to pass
1429 the affinity of the main subprogram to the run time.
1430 * s-taskin.ads (Common_ATCB): Add the field Base_CPU to store the
1432 (Unspecified_CPU): Add this constant to identify the case when no
1433 affinity is set for tasks.
1434 * s-taskin.adb (Initialize_ATCB): Store the value coming from pragma
1435 CPU in the common part of the ATCB.
1436 (Initialize): Store the value coming from pragma CPU (for the
1437 environment task) in the common part of the ATCB.
1438 * s-tassta.ads, s-tassta.adb (Create_Task): Add the affinity specified
1439 by pragma CPU to the ATCB.
1440 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add the affinity
1441 specified by pragma CPU to the ATCB.
1442 * s-tporft.adb (Register_Foreign_Thread): Add the new affinity
1443 parameter to the call to Initialize_ATCB.
1444 * s-taprop-linux.adb (Create_Task): Change the attributes of the thread
1445 to include the task affinity before creation. Additionally, the
1446 affinity selected with Task_Info is also enforced changing the
1447 attributes at task creation time, instead of changing it after creation.
1448 (Initialize): Change the affinity of the environment task if required
1450 * s-osinte-linux.ads (pthread_setaffinity_np): Instead of using a
1451 wrapper to check whether the function is available or not, use a weak
1453 (pthread_attr_setaffinity_np): Add the import of this function which is
1454 used to change the affinity in the attributes used to create a thread.
1455 * adaint.c (__gnat_pthread_attr_setaffinity_np): Remove this wrapper.
1456 It was used to check whether the pthread function was available or not,
1457 but the use of a weak symbol handles this situation in a cleaner way.
1458 * s-taprop-mingw.adb (Create_Task, Initialize): Change the affinity of
1459 tasks (including the environment task) if required by a pragma CPU.
1460 * s-taprop-solaris.adb (Enter_Task): Change the affinity of tasks
1461 (including the environment task) if required by a pragma CPU.
1462 * s-taprop-vxworks.adb (Create_Task, Initialize): Change the affinity
1463 of tasks (including the environment task) if required by a pragma CPU.
1464 * init.c (__gl_main_cpu): Make this value visible to the run time. It
1465 will pass the affinity of the environment task.
1467 2010-10-18 Javier Miranda <miranda@adacore.com>
1469 * einfo.adb (Direct_Primitive_Operations): Complete assertion.
1471 2010-10-18 Vincent Celier <celier@adacore.com>
1473 * prj.ads (Source_Data): New Boolean flag In_The_Queue.
1475 2010-10-18 Tristan Gingold <gingold@adacore.com>
1477 * s-stausa.ads: Add the Top parameter to Initialize_Analyzer.
1478 * s-stausa.adb: Use the top parameter. In Fill_Stack, use the
1480 * s-tassta.adb (Task_Wrapper): Call Initialize_Analyzer after Enter_Task
1481 so that Pri_Stack_Info.Limit can be set and used.
1483 2010-10-18 Robert Dewar <dewar@adacore.com>
1485 * einfo.ads: Minor reformatting.
1486 * sem_res.adb (Resolve_Allocator): Add test for violating
1487 No_Anonymous_Allocators.
1489 2010-10-18 Robert Dewar <dewar@adacore.com>
1491 * prj-nmsc.adb, prj.adb, sem_res.adb: Minor reformatting.
1493 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1495 * sem_util.adb (Insert_Explicit_Dereference): If operand is a selected
1496 component, we generate a reference to the ultimate prefix when it is an
1497 entity name. We must place the reference on the identifier for that
1498 prefix, and not on the operand itself, to prevent spurious extra
1499 references in the ali file.
1501 2010-10-18 Vincent Celier <celier@adacore.com>
1503 * projects.texi: Add documentation for attribute Ignore_Source_Sub_Dirs
1505 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1507 * einfo.ads, einfo.adb: New attribute PPC_Wrapper for entries and entry
1508 families. Denotes a procedure that performs pre/postcondition checks
1509 and then performs the entry call.
1510 * sem_res.adb (Resolve_Entry_Call): If the entry has
1511 pre/postconditions, replace call with a call to the PPC_Wrapper of the
1513 * exp_ch9.adb (Build_PPC_Wrapper): new procedure.
1514 (Expand_N_Entry_Declaration, Expand_N_Protected_Type_Declaration): call
1515 Build_PPC_Wrapper for all entries in task and protected definitions.
1517 2010-10-18 Tristan Gingold <gingold@adacore.com>
1519 * init.c: Add __gnat_set_stack_guard_page and __gnat_set_stack_limit.
1520 Implement stack limitation on VMS.
1523 2010-10-18 Vincent Celier <celier@adacore.com>
1525 * prj.adb (Is_Compilable): Do not modify Source.Compilable until the
1526 source record has been initialized.
1528 2010-10-18 Robert Dewar <dewar@adacore.com>
1530 * einfo.adb: Minor code reorganization (Primitive_Operations is a
1531 synthesized attribute routine and was in the wrong place).
1533 2010-10-18 Tristan Gingold <gingold@adacore.com>
1535 * init.c: Indentation, and minor changes to more closely follow GNU
1536 style rules. Make more variable statics.
1538 2010-10-18 Vincent Celier <celier@adacore.com>
1540 * prj.adb (Is_Compilable): On first call for a source, cache value in
1541 component Compilable.
1542 * prj.ads (Source_Data): New component Compilable, to cache the value
1543 returned by function Is_Compilable.
1545 2010-10-18 Vincent Celier <celier@adacore.com>
1547 * prj-attr.adb: New project level attribute Ignore_Source_Sub_Dirs.
1548 * prj-nmsc.adb (Expand_Subdirectory_Pattern): New string list parameter
1550 (Recursive_Find_Dirs): Do not consider subdirectories listed in Ignore.
1551 (Get_Directories): Call Find_Source_Dirs with the string list
1552 indicated by attribute Ignore_Source_Sub_Dirs.
1553 * snames.ads-tmpl: New standard name Ignore_Source_Sub_Dirs.
1555 2010-10-18 Javier Miranda <miranda@adacore.com>
1557 * einfo.ads, einfo.adb (Primitive_Operations): New synthesized
1559 (Direct_Primitive_Operations): Renaming of old Primitive_Operations.
1560 (Set_Direct_Primitive_Operations): Renaming of old
1561 Set_Primitive_Operations. Update documentation
1562 * sem_ch3.adb, exp_util.adb, sem_ch7.adb, sem_ch8.adb, exp_ch3.adb:
1563 Replace occurrences of Set_Primitive_Operations by
1564 Set_Direct_Primitive_Operations.
1565 * sem_cat.adb (Validate_RACW_Primitives): No action needed for tagged
1567 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
1568 process primitives of concurrent types.
1569 * lib-xref.adb (Generate_Prim_Op_References): Minor code cleanup.
1571 2010-10-18 Eric Botcazou <ebotcazou@adacore.com>
1573 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Use Freeze_Before.
1574 (Expand_Protected_Object_Reference): Likewise.
1575 * sem_attr.adb (Resolve_Attribute): Likewise.
1576 * sem_ch3.adb (Analyze_Subtype_Declaration): Likewise.
1577 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Likewise.
1579 2010-10-18 Arnaud Charlet <charlet@adacore.com>
1581 * g-comlin.adb (Get_Switches): Prevent dereferencing null Config.
1583 2010-10-18 Robert Dewar <dewar@adacore.com>
1585 * aspects.ads, aspects.adb: Add entries for aspects
1586 Read/Write/Input/Output.
1587 * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing for
1588 handling aspects Read/Write/Input/Output.
1590 2010-10-18 Robert Dewar <dewar@adacore.com>
1592 * sem_util.adb (Note_Possible_Modification): Do not give warning for
1593 use of pragma Unmodified unless we are sure this is a modification.
1595 2010-10-18 Tristan Gingold <gingold@adacore.com>
1597 * sysdep.c: Add __gnat_get_stack_bounds.
1598 * s-taprop-mingw.adb Call __gnat_get_stack_bounds to set Pri_Stack_Info.
1600 2010-10-18 Robert Dewar <dewar@adacore.com>
1602 * a-assert.ads: Fix bad name in header.
1603 * sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch10.adb: Minor
1605 * exp_aggr.adb: Fix typo in comment.
1607 2010-10-18 Javier Miranda <miranda@adacore.com>
1609 * exp_util.adb (Side_Effect_Free): Code clean up.
1611 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1613 * sem_ch8.adb (Is_Primitive_Operator_In_Use): Renamed from
1614 Is_Primitive_Operator. When ending the scope of a use package scope, a
1615 primitive operator remains in use if the base type has a current use
1618 2010-10-18 Javier Miranda <miranda@adacore.com>
1620 * einfo.ads (Is_Dynamic_Support): Add missing support for limited
1621 private types whose full-view is a task type.
1622 * sem_util.adb (Enclosing_Subprogram): Add missing support for limited
1623 private types whose full-view is a task type.
1624 * exp_ch7.adb (Find_Final_List): Minor code cleanup replacing code by
1625 function Nearest_Dynamic_Scope which provides the needed functionality.
1627 2010-10-18 Arnaud Charlet <charlet@adacore.com>
1629 * sem_prag.adb (Set_Exported): Do not generate error when exporting a
1630 variable with an address clause in codepeer mode.
1632 2010-10-18 Robert Dewar <dewar@adacore.com>
1634 * g-trasym-vms-ia64.adb: Minor reformatting.
1636 2010-10-18 Thomas Quinot <quinot@adacore.com>
1638 * sem_type.adb (Covers): If either argument is Standard_Void_Type and
1639 the other isn't, return False early.
1641 2010-10-18 Ed Falis <falis@adacore.com>
1643 * s-vxwext-rtp.ads, s-vxext-rtp.adb: Adapt for missing APIs for RTPs in
1646 2010-10-18 Robert Dewar <dewar@adacore.com>
1648 * sem_disp.ads: Minor comment update.
1650 2010-10-18 Robert Dewar <dewar@adacore.com>
1652 * einfo.ads, einfo.adb (Spec_PPC_List): Is now present in Entries
1653 * sem_ch3.adb (Analyze_Declarations): Add processing for delaying
1654 visibility analysis of precondition and postcondition pragmas (and
1656 * sem_ch6.adb (Process_PPCs): Add handling of inherited Pre'Class
1658 * sem_ch7.adb (Analyze_Package_Specification): Remove special handling
1659 of pre/post conditions (no longer needed).
1660 * sem_disp.adb (Inherit_Subprograms): Deal with interface case.
1661 * sem_prag.adb (Analyze_PPC_In_Decl_Part): Remove analysis of message
1662 argument, since this is now done in the main processing for
1663 pre/postcondition pragmas when they are first seen.
1664 (Chain_PPC): Pre'Class and Post'Class now handled properly
1665 (Chain_PPC): Handle Pre/Post aspects for entries
1666 (Check_Precondition_Postcondition): Handle entry declaration case
1667 (Check_Precondition_Postcondition): Handle delay of visibility analysis
1668 (Check_Precondition_Postcondition): Preanalyze message argument if
1671 2010-10-18 Robert Dewar <dewar@adacore.com>
1673 * g-trasym-vms-ia64.adb, prj-nmsc.adb, prj.ads: Minor reformatting.
1675 2010-10-14 Eric Botcazou <ebotcazou@adacore.com>
1677 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Set
1678 TREE_THIS_NOTRAP on the INDIRECT_REF node built for the template.
1679 * gcc-interface/trans.c (Identifier_to_gnu): Set TREE_THIS_NOTRAP on
1680 the INDIRECT_REF node built for objects used by reference.
1681 * gcc-interface/utils2.c (build_binary_op): Add short-circuit for
1682 constant result. Set TREE_THIS_NOTRAP on ARRAY_REF and ARRAY_RANGE_REF.
1683 (gnat_stabilize_reference_1): Propagate the TREE_THIS_NOTRAP flag.
1685 2010-10-13 Richard Henderson <rth@redhat.com>
1687 * gcc-interface/misc.c (gnat_eh_personality): Update call to
1688 build_personality_function.
1689 * raise-gcc.c (PERSONALITY_FUNCTION): Change to match other languages;
1690 use__gnat_personality_{v,sj}0.
1692 2010-10-12 Vincent Celier <celier@adacore.com>
1694 * prj-nmsc.adb (Add_Source): Put source in hash table Source_Files_HT
1695 (Process_Exceptions_File_Based): Use hash table Source_Files_HT instead
1696 of iterating through all sources of the project.
1697 * prj.adb (Free): Reset hash table Source_Files_HT
1698 (Reset): Reset hash table Source_Files_HT
1699 * prj.ads (Source_Data): New component Next_With_File_Name
1700 (Source_Files_Htable): New hash table
1701 (Project_Tree_Data): New component Source_Files_HT
1703 2010-10-12 Tristan Gingold <gingold@adacore.com>
1705 * g-trasym-vms-ia64.adb: Use the documented API.
1706 * gcc-interface/Makefile.in: Always set NO_REORDER_ADAFLAGS.
1707 * gcc-interface/Make-lang.in: Update dependencies.
1709 2010-10-12 Thomas Quinot <quinot@adacore.com>
1711 * rtsfind.ads, exp_dist.adb, exp_dist.ads (Build_General_Calling_Stubs,
1712 PolyORB case): Request is now a controlled type: we can declare the
1713 request on the stack, and we do not need explicit cleanup actions
1716 2010-10-12 Bob Duff <duff@adacore.com>
1718 * s-rident.ads (Profile_Info): This variable is now constant.
1720 2010-10-12 Emmanuel Briot <briot@adacore.com>
1722 * g-comlin.adb, g-comlin.ads (Define_Switch): Put back (unused)
1723 parameter Separator for backward compatibility.
1725 2010-10-12 Robert Dewar <dewar@adacore.com>
1727 * sem_ch9.adb, par-ch9.adb, impunit.adb: Minor reformatting.
1729 2010-10-12 Vincent Celier <celier@adacore.com>
1731 * debug.adb: Put detailed documentation for gnatmake switch -dm.
1733 2010-10-12 Vincent Celier <celier@adacore.com>
1735 * gnat1drv.adb: When the compiler is invoked for a spec that needs aw
1736 body, do not generate an ALI file if neither -gnatc nor -gnatQ is used.
1738 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1740 * g-comlin.adb (Foreach_Switch): Make this procedure generic to avoid
1743 2010-10-12 Robert Dewar <dewar@adacore.com>
1745 * debug.adb: Add comment.
1746 * gnatcmd.adb, sem_ch6.adb, switch-m.adb: Minor reformatting.
1748 2010-10-12 Javier Miranda <miranda@adacore.com>
1750 * exp_util.adb (Side_Effect_Free): Return true for object renaming
1751 declarations that were previously generated by Remove_Side_Effects.
1753 2010-10-12 Emmanuel Briot <briot@adacore.com>
1755 * xref_lib.adb (Get_Full_Type): Display "private variable" instead of
1756 "???" when an entity is defined as "*" in the ALI file.
1757 * g-comlin.ads, g-comlin.adb: Fix handling of null parameters.
1760 2010-10-12 Emmanuel Briot <briot@adacore.com>
1762 * g-comlin.adb, g-comlin.ads (Display_Help, Getopt, Current_Section,
1763 Set_Usage): New subprograms.
1764 (Define_Switch): Change profile to add support for help messages and
1767 2010-10-12 Javier Miranda <miranda@adacore.com>
1769 * sem_ch6.adb (New_Overloaded_Entity): Add missing decoration of
1770 attribute Overridden_Operation in predefined dispatching primitives.
1772 2010-10-12 Emmanuel Briot <briot@adacore.com>
1774 * g-comlin.adb, g-comlin.ads (Add_Switch): Raise an exception when a
1775 command line configuration exists and we specify an invalid section.
1777 2010-10-12 Robert Dewar <dewar@adacore.com>
1779 * sem_ch6.adb (Process_PPCs): Fix error in inheriting Pre'Class when no
1780 exception messages are generated.
1781 (Process_PPCs): Fix error in inheriting Pre'Class.
1783 2010-10-12 Jose Ruiz <ruiz@adacore.com>
1785 * gnatcmd.adb: Use response file for GNATstack.
1786 (Check_Files): Pass the list of ci files for GNATstack using a response
1787 file to avoid problems with command line length.
1788 Factor out the code handling response file into a new procedure named
1789 Add_To_Response_File.
1791 2010-10-12 Vincent Celier <celier@adacore.com>
1793 * debug.adb: For gnatmake, document the meaning of -dm
1794 * make.adb (Gnatmake): If -dm is used, indicate the maximum number of
1795 simultaneous compilations.
1796 * switch-m.adb (Scan_Make_Switches): Allow -j0, meaning as many
1797 simultaneous compilations as the number of processors.
1799 2010-10-12 Joseph Myers <joseph@codesourcery.com>
1801 * gcc-interface/Make-lang.in (ada/misc.o): Use $(OPTIONS_H)
1802 instead of options.h.
1804 2010-10-12 Robert Dewar <dewar@adacore.com>
1806 * gnat_rm.texi: Clarify that 'Old can be used in preconditions and
1807 postcondition pragmas.
1809 2010-10-12 Robert Dewar <dewar@adacore.com>
1811 * errout.ads, erroutc.adb: The # insertion now handles from in place of
1813 * exp_prag.adb (Expand_Pragma_Check): Suppress generated default
1814 message if new switch Exception_Locations_Suppressed is set.
1815 (Expand_Pragma_Check): Revised wording for default message for case
1816 of precondition or postcondition.
1817 * namet.ads, namet.adb (Build_Location_String): New procedure.
1818 * opt.ads (List_Inherited_Pre_Post): New flag.
1819 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Add call to
1820 list inherited pre/post aspects.
1821 * sem_ch13.adb (Analyze_Aspect_Specification): Improve generation of
1822 messages for precondition/postcondition cases.
1823 * sem_ch6.adb (Process_PPCs): General cleanup, and list inherited PPC's
1824 if flag List_Inherited_Pre_Post is set True.
1825 (Process_PPCs): Add initial handling for inherited preconditions
1826 (List_Inherited_Pre_Post_Aspects): New procedure
1827 * sem_ch6.ads (List_Inherited_Pre_Post_Aspects): New procedure
1828 * sem_disp.adb (Inherited_Subprograms): New function
1829 * sem_disp.ads (Inherited_Subprograms): New function
1830 * sem_prag.adb (Check_Duplicate_Pragma): Clean up handling of
1832 (Check_Precondition_Postcondition): Check for inherited aspects
1833 * sem_warn.adb: Process -gnatw.l/w.L setting List_Inherited_Pre_Post
1834 * sinfo.ads, sinfo.adb (Split_PPC): New flag.
1835 * sinput.ads, sinput.adb (Build_Location_String): New function.
1836 * usage.adb: Add line for -gnatw.l/-gnatw.L
1838 2010-10-12 Javier Miranda <miranda@adacore.com>
1840 * exp_util.adb (Remove_Side_Effects): Remove wrong code.
1842 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1844 * xref_lib.adb: Add handling of j/J letters.
1846 2010-10-12 Pascal Obry <obry@adacore.com>
1848 * adaint.c (__gnat_number_of_cpus): Add implementation for Windows.
1850 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1852 * make.adb (Globalize): New procedure.
1853 (Compile): Set Do_Codepeer_Globalize_Step when -gnatC is used.
1854 (Gnatmake): Call Globalize when needed.
1855 (Process_Restrictions_Or_Restriction_Warnings): Ignore Restrictions
1856 pragmas in CodePeer mode.
1857 (Adjust_Global_Switches): Set No_Initialize_Scalars in CodePeer mode,
1858 to generate simpler and consistent code.
1860 2010-10-12 Bob Duff <duff@adacore.com>
1862 * exp_util.adb (Remove_Side_Effects): Disable previous change,
1863 can cause side effects to be duplicated.
1865 2010-10-12 Robert Dewar <dewar@adacore.com>
1867 * sem_ch6.adb (Process_PPCs): Handle inherited postconditions.
1869 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1871 * exp_disp.adb (Set_All_DT_Position): Disable emit error message on
1872 abstract inherited private operation in CodePeer mode.
1874 2010-10-12 Thomas Quinot <quinot@adacore.com>
1876 * a-exetim.ads: Minor reformatting.
1877 * g-socket.ads (Port_Type): Better definition corresponding to the
1878 actual standard range.
1879 * exp_ch5.adb: Add comment.
1880 * sem_aux.adb: Minor reformatting.
1882 2010-10-12 Ed Schonberg <schonberg@adacore.com>
1884 * sem_ch12.adb (Copy_Generic_Node): If node is a string literal, remove
1885 string_literal_subtype so that a new one can be constructed in the
1886 scope of the instance.
1888 2010-10-12 Robert Dewar <dewar@adacore.com>
1890 * exp_ch9.adb (Has_Pragma_Priority): New name for Has_Priority_Pragma
1891 * gnat_rm.texi (pragma Suppress_All): Document new placement rules
1892 * par-prag.adb (P_Pragma, case Suppress_All): Set
1893 Has_Pragma_Suppress_All flag.
1894 * sem_prag.adb (Has_Pragma_Priority): New name for Has_Priority_Pragma
1895 (Analyze_Pragma, case Suppress_All): Remove placement check
1896 (Process_Compilation_Unit_Pragmas): Use Has_Pragma_Suppress_All flag
1897 * sem_prag.ads (Process_Compilation_Unit_Pragmas): Update documentation
1898 * sinfo.adb (Has_Pragma_Suppress_All): New flag
1899 (Has_Pragma_Priority): New name for Has_Priority_Pragma
1900 * sinfo.ads (Has_Pragma_Suppress_All): New flag
1901 (Has_Pragma_Priority): New name for Has_Priority_Pragma
1903 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1905 * lib-xref.ads: Mark j/J as reserved for C++ classes.
1907 2010-10-12 Jose Ruiz <ruiz@adacore.com>
1909 * a-exetim-default.ads, a-exetim-posix.adb: New.
1910 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for linux): Use the
1911 POSIX Realtime support to implement CPU clocks.
1912 (EXTRA_GNATRTL_TASKING_OBJS for linux): Add the a-exetim.o object
1913 to the tasking library.
1914 (THREADSLIB): Make the POSIX.1b Realtime Extensions library (librt)
1915 available for shared libraries.
1916 * gcc-interface/Make-lang.in: Update dependencies.
1918 2010-10-12 Robert Dewar <dewar@adacore.com>
1920 * sem_ch13.adb (Analyze_Aspect_Specifications): For Pre/Post, break
1921 apart expressions with AND THEN clauses into separate pragmas.
1922 * sinput.ads, sinput.adab (Get_Logical_Line_Number_Img): New function.
1924 2010-10-12 Robert Dewar <dewar@adacore.com>
1926 * par-ch13.adb (P_Aspect_Specifications): Fix handling of 'Class
1928 * sem_ch13.adb (Analyze_Aspect_Specifications): Fix bad Sloc on aspects
1929 * sem_prag.adb (Fix_Error): Only change pragma names for pragmas from
1931 (Check_Optional_Identifier): Handle case of direct arguments
1932 (Chain_PPC): Test for abstract case, giving appropriate messages
1933 * sinfo.ads, sinfo.adb (Class_Present): Allowed on N_Pragma node
1935 2010-10-12 Robert Dewar <dewar@adacore.com>
1937 * par-endh.adb (Check_End): Don't swallow semicolon or aspects after
1939 * sem_attr.adb (Eval_Attribute): Code clean up.
1941 2010-10-12 Robert Dewar <dewar@adacore.com>
1943 * par-ch12.adb (P_Formal_Private_Type_Definition): Improve error
1944 messages and recovery for case of out of order Abstract/Tagged/Private
1946 * par-ch3.adb (P_Type_Declaration): Improve error messages and recovery
1947 for case of out of order Abstract/Tagged/Private keywords.
1949 2010-10-12 Ed Schonberg <schonberg@adacore.com>
1951 * inline.adb (Analyze_Inlined_Bodies): Restrict previous change to case
1952 where child unit is main unit of compilation.
1954 2010-10-12 Robert Dewar <dewar@adacore.com>
1956 * aspects.ads, aspects.adb (Move_Aspects): New procedure.
1957 * atree.ads, atree.adb: (New_Copy): Does not copy aspect specifications
1958 * sinfo.ads, par-ch3.adb, par-ch6.adb, par-ch7.adb, par-ch9.adb,
1959 par-endh.adb, par-ch13.adb, par-ch12.adb: Modify grammar to include
1960 aspect specifications.
1961 Recognize aspect specifications for all cases
1962 * par.adb: Recognize aspect specifications for all cases
1963 * sem_ch12.ads, sem_ch12.adb (Copy_Generic_Node): Copies aspect
1965 * sem_ch3.adb (Analyze_Subtype_Declaration): Improve patch to freeze
1966 generic actual types (was missing some guards before).
1967 * sem_ch9.adb (Analyze_Single_Protected_Declaration): Copy aspects to
1969 (Analyze_Single_Task_Declaration): Copy aspects to generated object
1971 2010-10-12 Eric Botcazou <ebotcazou@adacore.com>
1973 * usage.adb (usage): Adjust line for -gnatn switch.
1975 2010-10-12 Robert Dewar <dewar@adacore.com>
1977 * sem_attr.adb (Eval_Attribute): Only leave change active for aspect
1980 2010-10-12 Ed Schonberg <schonberg@adacore.com>
1982 * sem_ch6.adb (Analyze_Subprogram_Declaration): If this is a
1983 declaration of a null procedure resolve the types of the profile of the
1984 generated null body now.
1986 2010-10-11 Robert Dewar <dewar@adacore.com>
1988 * debug.adb: Remove d.A flag to delay address clause (not needed any
1989 more). Add d.A flag to enable tree read/write of aspect spec hash table
1990 * sem_ch13.adb (Analyze_Aspect_Specifications): Properly delay address
1992 (Rep_Item_Too_Late): No need for special processing for delayed rep
1993 items (and it caused difficulties in the address case).
1994 * tree_gen.adb: Only write aspect spec hash table if -gnatd.A is set
1995 * tree_in.adb: Only write aspect spec hash table if -gnatd.A is set
1997 2010-10-11 Pat Rogers <rogers@adacore.com>
1999 * gnat_ugn.texi: Minor editing.
2001 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
2003 * gcc-interface/utils2.c (gnat_build_constructor): Use VEC_qsort.
2005 2010-10-11 Robert Dewar <dewar@adacore.com>
2007 * g-htable.ads (Get_First): New procedural version for Simple_HTable
2008 (Get_Next): New procedural version for Simple_HTable
2009 * s-htable.adb (Get_First): New procedural version for Simple_HTable
2010 (Get_Next): New procedural version for Simple_HTable
2011 * s-htable.ads (Get_First): New procedural version for Simple_HTable
2012 (Get_Next): New procedural version for Simple_HTable
2014 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2016 * sem_aggr.adb (Propagate_Discriminants): To gather the components of a
2017 variant part, use the association list of the subaggregate, which
2018 already includes the values of the needed discriminants.
2020 2010-10-11 Robert Dewar <dewar@adacore.com>
2022 * aspects.ads, aspects.adb: Changes to accomodate aspect delay
2023 (Tree_Write): New procedure.
2024 * atree.ads, atree.adb: Flag3 is now Has_Aspects and applies to all
2026 * atree.h: Flag3 is now Has_Aspects and applies to all nodes
2027 * debug.adb: Add debug flag gnatd.A
2028 * einfo.adb (Has_Delayed_Aspects): New flag
2029 (Get_Rep_Item_For_Entity): New function
2030 * einfo.ads (Has_Delayed_Aspects): New flag
2031 (Get_Rep_Item_For_Entity): New function
2032 * exp_ch13.adb (Expand_N_Freeze_Entity): Insert delayed aspects into
2034 * exp_ch3.adb, exp_ch6.adb, exp_ch9.adb, exp_disp.adb: New calling
2035 sequence for Freeze_Entity.
2036 * freeze.ads, freeze.adb (Freeze_Entity): Takes node rather than source
2037 ptr. All calls are changed to this new interface.
2038 (Freeze_And_Append): Same change
2039 (Freeze_Entity): Evaluate deferred aspects
2040 * sem_attr.adb: New calling sequence for Freeze_Entity
2041 (Eval_Attribute): Don't try to evaluate attributes of unfrozen types
2042 when we are in spec expression preanalysis mode.
2043 * sem_ch10.adb: New calling sequence for Freeze_Entity
2044 * sem_ch11.adb: Simplify analysis of aspect specifications now that the
2045 flag Has_Aspects applies to all nodes (no need to save aspects).
2046 * sem_ch12.adb: Simplify analysis of aspect specifications now that the
2047 flag Has_Aspects applies to all nodes (no need to save aspects).
2048 * sem_ch13.adb (Analyze_Aspect_Specifications): Major rewrite to
2049 accomodate delaying aspect evaluation to the freeze point.
2050 (Duplicate_Clause): Simplify using Get_Rep_Item_For_Entity, and also
2051 accomodate delayed aspects.
2052 (Rep_Item_Too_Late): Deal with delayed aspects case
2053 * sem_ch13.ads (Rep_Item_Too_Late): Document handling of delayed
2055 * sem_ch3.adb (Analyze_Subtype_Declaration): Make sure that generic
2056 actual types are properly frozen (this is needed because of the new
2057 check in Eval_Attribute that declines to evaluate attributes
2058 for unfrozen types).
2059 Simplify analysis of aspect specifications now that the flag
2060 Has_Aspects applies to all nodes (no need to save aspects).
2061 * sem_ch3.ads (Preanalyze_Spec_Expression): Note use for delayed
2063 * sem_ch5.adb: Simplify analysis of aspect specifications now that the
2064 flag Has_Aspects applies to all nodes (no need to save aspects).
2065 New calling sequence for Freeze_Entity.
2066 * sem_ch9.adb, sem_ch7.adb, sem_ch6.adb: Simplify analysis of aspect
2067 specifications now that the flag Has_Aspects applies to all nodes
2068 (no need to save aspects).
2069 New calling sequence for Freeze_Entity
2070 * sem_prag.adb (Check_Duplicate_Pragma): Simplify using
2071 Get_Rep_Item_For_Entity
2072 (Get_Pragma_Arg): Moved to Sinfo
2073 * sinfo.ads, sinfo.adb (Aspect_Rep_Item_: New field
2074 (Is_Delayed_Aspect): New flag
2075 (Next_Rep_Item): Document use for aspects
2076 (Get_Pragma_Arg): Moved here from Sem_Prag
2077 * sprint.adb (Sprint_Aspect_Specifications): Now called after semicolon
2078 is output and removes semicolon (simplifies interface).
2079 (Sprint_Node_Actual): Simplify handling of aspects now that Has_Aspects
2080 applies to any node.
2081 * tree_gen.adb: Write contents of Aspect_Specifications hash table
2082 * tree_in.adb: Read and initialize Aspect_Specifications hash table
2083 * treepr.adb (Print_Node): Print Has_Aspects flag
2084 (Print_Node): Print Aspect_Specifications in Has_Aspects set
2085 * xtreeprs.adb: Remove obsolete references to Flag1,2,3
2087 2010-10-11 Robert Dewar <dewar@adacore.com>
2089 * aspects.ads, aspects.adb: Major revision of this package for 2nd
2090 stage of aspects implementation.
2091 * gcc-interface/Make-lang.in: Add entry for aspects.o
2092 * gcc-interface/Makefile.in: Add aspects.o to GNATMAKE_OBJS
2093 * par-ch13.adb (Aspect_Specifications_Present): New function
2094 (P_Aspect_Specifications): New procedure
2095 * par-ch3.adb (P_Type_Declaration): Handle aspect specifications
2096 (P_Derived_Type_Def_Or_Private_Ext_Decl): Handle aspect specifications
2097 (P_Identifier_Declarations): Handle aspect specifications
2098 (P_Component_Items): Handle aspect specifications
2099 (P_Subtype_Declaration): Handle aspect specifications
2100 * par-ch6.adb (P_Subprogram): Handle aspect specifications
2101 * par-ch9.adb (P_Entry_Declaration): Handle aspect specifications
2102 * par.adb (Aspect_Specifications_Present): New function
2103 (P_Aspect_Specifications): New procedure
2104 * sem.adb (Analyze_Full_Type_Declaration): New name for
2105 Analyze_Type_Declaration.
2106 (Analyze_Formal_Package_Declaration): New name (add _Declaration)
2107 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
2108 (Analyze_Protected_Type_Declaration): New name (add _Declaration)
2109 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
2110 (Analyze_Single_Task_Declaration): New name (add _Declaration)
2111 (Analyze_Task_Type_Declaration): New name (add _Declaration)
2112 * sem_cat.adb (Analyze_Full_Type_Declaration): New name for
2113 Analyze_Type_Declaration.
2114 * sem_ch11.adb (Analyze_Exception_Declaration): Analyze aspect
2116 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Handle aspect
2118 (Analyze_Formal_Package_Declaration): New name (add _Declaration)
2119 (Analyze_Formal_Package_Declaration): Handle aspect specifications
2120 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
2121 (Analyze_Formal_Subprogram_Declaration): Handle aspect specifications
2122 (Analyze_Formal_Type_Declaration): Handle aspect specifications
2123 (Analyze_Generic_Package_Declaration): Handle aspect specifications
2124 (Analyze_Generic_Subprogram_Declaration): Handle aspect specifications
2125 (Analyze_Package_Instantiation): Handle aspect specifications
2126 (Analyze_Subprogram_Instantiation): Handle aspect specifications
2127 * sem_ch12.ads (Analyze_Formal_Package_Declaration): New name (add
2129 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
2130 * sem_ch13.adb (Analyze_Aspect_Specifications): New procedure
2131 (Duplicate_Clause): New function, calls to this function are added to
2132 processing for all aspects.
2133 * sem_ch13.ads (Analyze_Aspect_Specifications): New procedure
2134 * sem_ch3.adb (Analyze_Full_Type_Declaration): New name for
2135 Analyze_Type_Declaration.
2136 * sem_ch3.ads (Analyze_Full_Type_Declaration): New name for
2137 Analyze_Type_Declaration.
2138 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Analyze aspect
2140 (Analyze_Subprogram_Declaration): Analyze aspect specifications
2141 * sem_ch7.adb (Analyze_Package_Declaration): Analyze aspect
2143 (Analyze_Private_Type_Declaration): Analyze aspect specifications
2144 * sem_ch9.adb (Analyze_Protected_Type_Declaration): Analyze aspect
2146 (Analyze_Protected_Type_Declaration): New name (add _Declaration)
2147 (Analyze_Single_Protected_Declaration): Analyze aspect specifications
2148 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
2149 (Analyze_Single_Task_Declaration): Analyze aspect specifications
2150 (Analyze_Single_Task_Declaration): New name (add _Declaration)
2151 (Analyze_Task_Type_Declaration): Analyze aspect specifications
2152 (Analyze_Task_Type_Declaration): New name (add _Declaration)
2153 * sem_ch9.ads (Analyze_Protected_Type_Declaration): New name (add
2155 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
2156 (Analyze_Single_Task_Declaration): New name (add _Declaration)
2157 (Analyze_Task_Type_Declaration): New name (add _Declaration)
2158 * sem_prag.adb: Use Get_Pragma_Arg systematically so that we do not
2159 have to generate unnecessary pragma argument associations (this matches
2161 Throughout do changes to accomodate aspect specifications, including
2162 specializing messages, handling the case of not going through all
2163 homonyms, and allowing for cancellation.
2164 * sinfo.ads, sinfo.adb: Clean up obsolete documentation for Flag1,2,3
2165 (Aspect_Cancel): New flag
2166 (From_Aspect_Specification): New flag
2167 (First_Aspect): Removed flag
2168 (Last_Aspect): Removed flag
2169 * sprint.adb (Sprint_Aspect_Specifications): New procedure
2170 (Sprint_Node_Actual): Add calls to Sprint_Aspect_Specifications
2172 2010-10-11 Bob Duff <duff@adacore.com>
2174 * sem_res.adb (Resolve_Actuals): Minor change to warning messages so
2175 they match in Ada 95, 2005, and 2012 modes, in the case where the
2176 language didn't change. Same thing for the run-time exception message.
2178 2010-10-11 Javier Miranda <miranda@adacore.com>
2180 * debug.adb Document that switch -gnatd.p enables the CIL verifier.
2182 2010-10-11 Robert Dewar <dewar@adacore.com>
2184 * s-htable.adb: Minor reformatting.
2186 2010-10-11 Javier Miranda <miranda@adacore.com>
2188 * debug.adb: Update comment.
2190 2010-10-11 Vincent Celier <celier@adacore.com>
2192 * gnatcmd.adb (GNATCmd): Set Opt.Unchecked_Shared_Lib_Imports to True
2193 unconditionally as for "gnat make" the projects are not processed in
2196 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2198 * sem_ch10.ads, sem_ch10.adb (Load_Needed_Body): Add parameter to
2199 suppress semantic analysis of the body when inlining, prior to
2200 verifying that the body does not have a with_clause on a descendant
2202 * inline.adb (Analyze_Inlined_Bodies): Do not inline a body if it has a
2203 with_clause on a descendant.
2204 (Scope_In_Main_Unit): Simplify.
2206 2010-10-11 Robert Dewar <dewar@adacore.com>
2208 * exp_ch6.adb, freeze.adb: Minor reformatting.
2210 2010-10-11 Vincent Celier <celier@adacore.com>
2212 * gnatcmd.adb (GNATCmd): For all tools other than gnatmake, allow
2213 shared library projects to import projects that are not shared library
2216 2010-10-11 Javier Miranda <miranda@adacore.com>
2218 * debug.adb: Document that switch -gnatd.o generates the CIL listing.
2220 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2222 * sem_prag.adb (Process_Suppress_Unsuppress): Only ignore
2223 Suppress/Unsuppress pragmas in codepeer mode on user code.
2225 2010-10-11 Javier Miranda <miranda@adacore.com>
2227 * exp_ch6.adb (Expand_Call): For VM platforms, add missing expansion of
2228 tag check in case of dispatching call through "=".
2230 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2232 * sem_ch3.adb (Access_Subprogram_Declaration): In Ada2012 an incomplete
2233 type is legal in the profile of any basic declaration.
2234 * sem_ch6.adb (Analyze_Return_Type, Process_Formals): In Ada2012 an
2235 incomplete type, including a limited view of a type, is legal in the
2236 profile of any subprogram declaration.
2237 If the type is tagged, its use is also legal in a body.
2238 * sem_ch10.adb (Install_Limited_With_Clause): Do not process context
2240 (Install_Limited_Withed_Unit): Refine legality checks when both the
2241 limited and the non-limited view of a package are visible in the
2243 If this is not an error case, the limited view is ignored.
2244 freeze.adb (Freeze_Entity): In Ada2012, an incomplete type is legal in
2245 access to subprogram declarations
2247 2010-10-11 Robert Dewar <dewar@adacore.com>
2249 * exp_ch6.adb: Code clean up.
2250 * exp_util.adb: Minor reformatting.
2252 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2254 * sem_ch3.adb, exp_ch6.adb
2255 (Make_Build_In_Place_Call_In_Anonymous_Context,
2256 Make_Build_In_Place_Call_In_Assignment,
2257 Make_Build_In_Place_Call_In_Object_Declaration): Fix calls to
2258 Add_Task_Actuals_To_Build_In_Place_Call in case of No_Task_Hierarchy
2260 (Access_Definition): Add missing handling of No_Task_Hierarchy.
2262 2010-10-11 Javier Miranda <miranda@adacore.com>
2264 * exp_util.adb (Remove_Side_Effects): No action needed for renamings of
2265 class-wide expressions.
2267 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2269 * xr_tabls.adb, sem_res.adb: Minor reformatting
2271 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2273 * gnat_rm.texi, exp_attr.adb, sem_attr.adb, sem_attr.ads,
2274 snames.ads-tmpl (Analyze_Attribute, Expand_N_Attribute_Reference): Add
2275 handling of Attribute_Ref. Add missing blanks in some error messages.
2276 (Attribute_Ref, Name_Ref): Declare.
2277 Document 'Ref attribute.
2279 2010-10-11 Robert Dewar <dewar@adacore.com>
2281 * sem_attr.adb: Minor reformatting.
2283 2010-10-11 Javier Miranda <miranda@adacore.com>
2285 * sem_ch8.adb (Attribute_Renaming): Add missing check to avoid loading
2286 package System.Aux_Dec in VM platforms.
2288 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2290 * sem_prag.adb (Process_Suppress_Unsuppress): Ignore
2291 Suppress/Unsuppress pragmas in codepeer mode.
2292 (Analyze_Pragma [Pragma_Suppress_All]): Do not generate error message
2294 * einfo.ads: Fix typo.
2296 2010-10-11 Emmanuel Briot <briot@adacore.com>
2298 * sinfo.adb: Use GNAT.HTable rather than System.HTable.
2299 * prj-nmsc.adb: Minor reformatting.
2301 2010-10-11 Thomas Quinot <quinot@adacore.com>
2303 * sem_attr.adb (Type_Key): Code simplification.
2305 2010-10-11 Tristan Gingold <gingold@adacore.com>
2307 * gcc-interface/utils2.c (maybe_wrap_malloc): Fix crash when allocating
2308 very large object on VMS.
2310 2010-10-11 Javier Miranda <miranda@adacore.com>
2312 * sem_ch10.adb (Analyze_With_Clause): Add missing test to ensure
2313 availability of attribute Instance_Spec.
2315 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2317 * gnat1drv.adb (Adjust_Global_Switches): Disable codepeer mode if
2318 checking syntax only or in ASIS mode.
2320 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2322 * sem_ch6.adb (Check_Delayed_Subprogram): Abstract subprograms may also
2323 need a freeze node if some type in the profile has one.
2324 * gcc-interface/trans.c (case N_Abstract_Subprogram_Declaration): If
2325 entity has a freeze node, defer elaboration.
2327 2010-10-11 Emmanuel Briot <briot@adacore.com>
2329 * prj-nmsc.adb (Check_Aggregate_Project): Add support for finding all
2330 aggregated projects.
2332 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2334 * sem_res.adb (Resolve_Entry_Call): Generate 's' reference for entry
2336 * sem_ch6.adb: Diagnose additional error condition.
2338 2010-10-11 Bob Duff <duff@adacore.com>
2340 * par.adb (Par): Clarify wording of certain error messages.
2342 2010-10-11 Gary Dismukes <dismukes@adacore.com>
2344 * sem_disp.adb (Check_Dispatching_Operation): Revise test for warning
2345 about nondispatching subprograms to use In_Same_List (reducing use of
2348 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2350 * xr_tabls.adb, sem_res.adb, lib-xref.adb, lib-xref.ads: Use s for
2351 reference in a static call.
2353 2010-10-11 Steve Baird <baird@adacore.com>
2355 * exp_attr.adb (Expand_N_Attribute_Reference, case Type_Key): Type_Key
2356 attribute should always be transformed into a string literal in
2358 * par-ch4.adb: Type_Key attribute's type is String; update value of
2359 Is_Parameterless_Attribute constant to reflect this.
2360 * sem_attr.adb (Analyze_Attribute): Recognize Type_Key attribute and
2361 rewrite it as a string literal (attribute value is always known
2363 * snames.ads-tmpl: Add entries for Type_Key attribute.
2365 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2367 * lib-xref.adb (Output_References): Common handling for objects and
2368 formals of an anonymous access type.
2370 2010-10-11 Eric Botcazou <ebotcazou@adacore.com>
2372 * make.adb (Scan_Make_Arg): Also pass -O to both compiler and linker.
2374 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2376 * sem_ch6.adb: Fix check for illegal equality declaration in Ada2012
2378 2010-10-11 Gary Dismukes <dismukes@adacore.com>
2380 * sem_disp.adb (Check_Dispatching_Operation): When testing for issuing
2381 a warning about subprograms of a tagged type not being dispatching,
2382 limit this to cases where the tagged type and the subprogram are
2383 declared within the same declaration list.
2385 2010-10-11 Jerome Lambourg <lambourg@adacore.com>
2387 * projects.texi, prj-attr.adb: Add new attribute documentation_dir.
2389 2010-10-11 Bob Duff <duff@adacore.com>
2391 * par-ch9.adb, sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, impunit.adb,
2392 impunit.ads, sem_ch5.adb, sem_type.adb, exp_imgv.adb, exp_util.adb,
2393 switch-c.adb, exp_attr.adb, exp_ch9.adb, par-ch11.adb, usage.adb,
2394 sem_ch9.adb, sem_ch10.adb, scng.adb, checks.adb, sem_prag.adb,
2395 sem_ch12.adb, par-ch2.adb, freeze.adb, par-ch4.adb, sem_util.adb,
2396 sem_res.adb, sem_attr.adb, par-ch6.adb, exp_ch4.adb, exp_ch6.adb,
2397 sem_ch4.adb, exp_ch8.adb, par-ch10.adb, sem_ch6.adb, par-prag.adb,
2398 exp_disp.adb, par-ch12.adb, sem_ch8.adb, snames.adb-tmpl, opt.ads,
2399 exp_aggr.adb, sem_cat.adb, sem_ch13.adb, par-ch3.adb, exp_strm.adb,
2400 exp_cg.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb: Use Ada_2005
2401 instead of Ada_05 (Ada_Version_Type).
2403 2010-10-11 Bob Duff <duff@adacore.com>
2405 * sem_aggr.adb, impunit.adb, impunit.ads, switch-c.adb, usage.adb,
2406 sem_ch10.adb, sem_prag.adb, sem_ch12.adb, par-ch4.adb, par-ch6.adb,
2407 par-ch8.adb, exp_ch4.adb, sem_ch4.adb, sem_ch6.adb, par-prag.adb,
2408 opt.ads, par-ch3.adb, lib-xref.adb: Use Ada_2012 instead of Ada_12
2411 2010-10-11 Javier Miranda <miranda@adacore.com>
2413 * exp_util.adb (Safe_Prefixed_Reference): If the prefix is an explicit
2414 dereference then do not exclude dereferences of access-to-constant
2415 types to handle them as constant view of variables (and hence remove
2416 side effects when required).
2417 * sem_res.adb (Resolve_Slice): Ensure that side effects in the bounds
2418 are properly handled.
2420 2010-10-11 Robert Dewar <dewar@adacore.com>
2422 * sem_prag.adb, sem_aggr.adb, sprint.adb: Minor reformatting.
2424 2010-10-11 Javier Miranda <miranda@adacore.com>
2426 * exp_ch5.ads, exp_ch6.ads (Expand_N_Extended_Return_Statement): Moved
2428 (Expand_N_Simple_Return_Statement): Moved to exp_ch6.
2429 * exp_ch5.adb, exp_ch6.adb (Expand_Non_Function_Return): Moved to
2431 (Expand_Simple_Function_Return): Move to exp_ch6.
2432 (Expand_N_Extended_Return_Statement): Moved to exp_ch6.
2433 (Expand_N_Simple_Return_Statement): Moved to exp_ch6.
2435 2010-10-11 Robert Dewar <dewar@adacore.com>
2437 * snames.ads-tmpl: Add names for aspects.
2438 * aspects.ads, aspects.adb: New.
2439 * gcc-interface/Make-lang.in: Update dependencies.
2440 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2442 * exp_ch6.adb (Expand_Actuals): If an actual is the current instance of
2443 a task type, it must be replaced with a reference to Self.
2445 2010-10-11 Vincent Celier <celier@adacore.com>
2447 * adaint.h: Add prototype for function __gnat_create_output_file_new.
2449 2010-10-11 Javier Miranda <miranda@adacore.com>
2451 * sem_aggr.adb (Collect_Aggr_Bounds): Remove side effects of collected
2454 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2456 * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Do not emit error
2457 for AI05-0033 in CodePeer mode.
2459 2010-10-11 Robert Dewar <dewar@adacore.com>
2461 * atree.h, atree.ads, atree.adb (Flag3): New flag (replaces Unused_1)
2462 * csinfo.adb: Aspect_Specifications is a new special field
2463 * einfo.adb (Flag3): New unused flag
2464 * exp_util.adb (Insert_Actions): Add processing for
2465 N_Aspect_Specification.
2466 * sem.adb: Add entry for N_Aspect_Specification.
2467 * sinfo.ads, sinfo.adb (N_Aspect_Specification): New node
2468 (Has_Aspect_Specifications): New flag
2469 (Permits_Aspect_Specifications): New function
2470 (Aspect_Specifications): New function
2471 (Set_Aspect_Specifications): New procedure
2472 * sprint.adb (Sprint_Node): Put N_At_Clause in proper alpha order
2473 (Sprint_Node): Add dummy entry for N_Aspect_Specification
2474 * treepr.adb (Flag3): New flag to be listed
2476 2010-10-11 Vincent Celier <celier@adacore.com>
2478 * adaint.c: Minor reformatting.
2480 2010-10-11 Robert Dewar <dewar@adacore.com>
2482 * sem_ch6.adb, s-htable.ads: Minor reformatting.
2484 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2486 * sem_ch4.adb (Analyze_Selected_Component): If the selector is
2487 invisible in an instantiation, and both the formal and the actual are
2488 private extensions of the same type, look for the desired component in
2489 the proper view of the parent type.
2491 2010-10-11 Vincent Celier <celier@adacore.com>
2493 * adaint.c (__gnat_number_of_cpus): Add implementation for Solaris,
2494 AIX, Tru64, Darwin, IRIX and HP-UX.
2496 2010-10-11 Robert Dewar <dewar@adacore.com>
2498 * a-textio.adb: Minor reformatting
2500 2010-10-11 Robert Dewar <dewar@adacore.com>
2502 * a-suesen.ads, a-suenst.ads,
2503 a-suesen.adb, a-suenst.adb,
2504 a-suewse.adb, a-suewst.adb,
2505 a-suewse.ads, a-suewst.ads,
2506 a-suezse.ads, a-suezst.ads,
2507 a-suezse.adb, a-suezst.adb: New name for string encoding packages.
2508 * impunit.adb: New names for string encoding units
2509 * Makefile.rtl: New names for string encoding units
2510 * rtsfind.ads: Minor code reorganization.
2512 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2514 * exp_ch5.adb: Code clean up.
2516 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2518 * sem_ch6.adb (Check_Limited_Return): Specialize warning on limited
2519 returns when in a generic context.
2520 (Analyze_Function_Return): ditto.
2522 2010-10-11 Robert Dewar <dewar@adacore.com>
2524 * s-multip.ads: Fix header.
2525 * sem_ch3.adb, s-multip.adb, a-tigeli.adb: Minor reformatting.
2527 2010-10-11 Vincent Celier <celier@adacore.com>
2529 * Makefile.rtl: Add s-multip.
2530 * adaint.c: New function __gnat_number_of_cpus, implemented for Linux,
2531 defaulting to 1 for other platforms.
2532 * adaint.h: New function __gnat_number_of_cpus.
2533 * impunit.adb (Non_Imp_File_Names_12): New file list for Ada 2012,
2534 with a single component "s-multip".
2535 * impunit.ads (Kind_Of_Unit): New enumerated value Ada_12_Unit for Ada
2537 * rtsfind.ads (RTU_Id): New enumerated value System_Multiprocessors
2538 * s-multip.ads, s-multip.adb: New Ada 2012 package.
2539 * sem_ch10.adb (Analyze_With_Clause): Check also Ada 2012 units.
2541 2010-10-11 Javier Miranda <miranda@adacore.com>
2543 * a-textio.adb: Move new implementation of Get_Line to a subunit.
2544 * a-tigeli.adb: New subunit containing the implementation of Get_Line.
2546 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2548 * sem_aux.adb: Code clean up.
2550 2010-10-11 Robert Dewar <dewar@adacore.com>
2552 * sem_ch3.adb, sem_aux.adb, sem_ch6.adb: Minor reformatting
2554 2010-10-11 Robert Dewar <dewar@adacore.com>
2556 * einfo.adb, atree.h, atree.ads, atree.adb: Define seven new flags
2557 Flag248-Flag254. Define new field Field29.
2559 2010-10-10 Olivier Hainque <hainque@adacore.com>
2560 Eric Botcazou <ebotcazou@adacore.com>
2562 * gcc-interface/lang.opt (gdwarf+): Remove.
2563 * gcc-interface/gigi.h (get_parallel_type): Likewise
2564 * gcc-interface/misc.c (gnat_dwarf_extensions): Likewise.
2565 (gnat_handle_option): Remove OPT_gdwarfplus case.
2566 (gnat_post_options): Remove setting of use_gnu_debug_info_extensions
2567 from gnat_dwarf_extensions.
2568 * gcc-interface/trans.c (gigi): Remove -gdwarf+ initializations.
2569 * gcc-interface/utils.c (get_parallel_type): Remove.
2571 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
2573 * gcc-interface/trans.c (gnat_to_gnu) <N_Not_In>: Use
2574 invert_truthvalue_loc instead of invert_truthvalue.
2575 * gcc-interface/utils2.c (build_binary_op) <NE_EXPR>: Likewise.
2576 (build_unary_op) <TRUTH_NOT_EXPR>: Likewise.
2578 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
2580 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
2581 assertion on the types of the parameters. Use KIND local variable.
2582 <E_Incomplete_Type>: Likewise.
2584 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
2586 * gcc-interface/ada-tree.h (DECL_BY_DOUBLE_REF_P): New macro.
2587 * gcc-interface/gigi.h (annotate_object): Add BY_DOUBLE_REF parameter.
2588 * gcc-interface/decl.c (annotate_object): Likewise and handle it.
2589 (gnat_to_gnu_entity): Adjust calls to annotate_object.
2590 (gnat_to_gnu_param): If fat pointer types are passed by reference on
2591 the target, pass them by explicit reference.
2592 * gcc-interface/misc.c (default_pass_by_ref): Fix type of constant.
2593 * gcc-interface/trans.c (Identifier_to_gnu): Do DECL_BY_DOUBLE_REF_P.
2594 (Subprogram_Body_to_gnu): Adjust call to annotate_object.
2595 (call_to_gnu): Handle DECL_BY_DOUBLE_REF_P.
2596 * gcc-interface/utils.c (convert_vms_descriptor): Add BY_REF parameter
2598 (build_function_stub): Iterate on the parameters of the subprogram in
2599 lieu of on the argument types. Adjust call to convert_vms_descriptor.
2601 2010-10-09 Eric Botcazou <ebotcazou@adacore.com>
2603 * gcc-interface/misc.c: Delete prototypes.
2604 (gnat_init_options): Use local variable.
2605 (lang_hooks): Move to the end of the file.
2607 2010-10-08 Joseph Myers <joseph@codesourcery.com>
2609 * gcc-interface/misc.c (gnat_init_options_struct): New. Split out
2610 from gnat_init_options.
2611 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
2613 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2615 * sem_aux.adb: Cleanup Is_Immutably_Limited_Type.
2617 2010-10-08 Robert Dewar <dewar@adacore.com>
2619 * exp_ch3.adb: Minor reformatting.
2620 * exp_ch5.adb: Add comment.
2622 2010-10-08 Robert Dewar <dewar@adacore.com>
2624 * sem_prag.adb (Check_Duplicate_Pragma): Check for entity match
2625 * gcc-interface/Make-lang.in: Update dependencies.
2626 * einfo.ads: Minor reformatting.
2628 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2630 * exp_ch5.adb, sem_ch3.adb, exp_ch7.adb, exp_util.adb, sem_aux.adb,
2631 sem_aux.ads, exp_ch4.adb, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
2632 exp_ch3.adb: Change Is_Inherently_Limited_Type to
2633 Is_Immutably_Limited_Type to accord with new RM terminology.
2634 * sem_aux.adb (Is_Immutably_Limited_Type): A type that is a descendant
2635 of a formal limited private type is not immutably limited in a generic
2638 2010-10-08 Robert Dewar <dewar@adacore.com>
2640 * sem_prag.adb (Check_Duplicate_Pragma): New procedure
2641 Add calls to this new procedure where appropriate
2643 2010-10-08 Vincent Celier <celier@adacore.com>
2645 * a-textio.adb (Get_Chunk): Code clean up.
2647 2010-10-08 Robert Dewar <dewar@adacore.com>
2649 * a-strbou.ads, a-strfix.adb, a-strfix.ads, a-strsea.adb, a-strsea.ads,
2650 a-strsup.adb, a-strsup.ads, a-strunb-shared.adb, a-strunb-shared.ads,
2651 a-strunb.adb, a-strunb.ads, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
2652 a-stwise.adb, a-stwise.ads, a-stwisu.adb, a-stwisu.ads,
2653 a-stwiun-shared.adb, a-stwiun-shared.ads, a-stwiun.adb, a-stwiun.ads,
2654 a-stzbou.ads, a-stzfix.adb, a-stzfix.ads, a-stzsea.adb, a-stzsea.ads,
2655 a-stzsup.adb, a-stzsup.ads, a-stzunb-shared.adb, a-stzunb-shared.ads,
2656 a-stzunb.adb, a-stzunb.ads (Find_Token): New version with From
2659 2010-10-08 Robert Dewar <dewar@adacore.com>
2661 * sem_cat.adb (Check_Categorization_Dependencies): Remote types
2662 packages can depend on preleborated packages.
2664 2010-10-08 Robert Dewar <dewar@adacore.com>
2666 * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Pragmas
2667 Interrupt_Handler and Attach_Handler not allowed in generics.
2669 2010-10-08 Robert Dewar <dewar@adacore.com>
2671 * ali.adb: Set Allocator_In_Body if AB parameter present on M line
2672 * ali.ads (Allocator_In_Body): New flag
2673 * bcheck.adb (Check_Consistent_Restrictions): Handle case of main
2674 program violating No_Allocators_After_Elaboration restriction.
2675 * gnatbind.adb (No_Restriction_List): Add entries for
2676 No_Anonymous_Allocators, and No_Allocators_After_Elaboration.
2677 * lib-load.adb: Initialize Has_Allocator flag
2678 * lib-writ.adb: Initialize Has_Allocator flag
2679 (M_Parameters): Set AB switch if Has_Allocator flag set
2680 * lib-writ.ads: Document AB flag on M line
2681 * lib.adb (Has_Allocator): New function
2682 (Set_Has_Allocator): New procedure
2683 * lib.ads (Has_Allocator): New function
2684 (Set_Has_Allocator): New procedure
2685 (Has_Allocator): New flag in Unit_Record
2686 * sem_ch4.adb (Analyze_Allocator): Add processing for
2687 No_Allocators_After_Elaboration.
2689 2010-10-08 Geert Bosch <bosch@adacore.com>
2691 * a-textio.adb (Get_Line): Rewrite to use fgets instead of fgetc.
2693 2010-10-08 Javier Miranda <miranda@adacore.com>
2695 * sem_prag.adb (Analyze_Pragma): Relax semantic rule of
2696 Java_Constructors because in the JRE library we generate occurrences
2697 in which the "this" parameter is not the first formal.
2699 2010-10-08 Robert Dewar <dewar@adacore.com>
2701 * par-ch3.adb: Minor reformatting.
2703 2010-10-08 Javier Miranda <miranda@adacore.com>
2705 * exp_disp.adb (Make_DT): Do not generate dispatch tables for CIL/Java
2708 2010-10-08 Robert Dewar <dewar@adacore.com>
2710 * par-ch8.adb (P_Use_Type_Clause): Recognize ALL keyword in Ada 2012
2712 * sinfo.adb (Use_Type_Clause): Add All_Present flag.
2713 * sinfo.ads (Use_Type_Clause): Add All_Present flag.
2714 * s-rident.ads: Add entry for No_Allocators_After_Elaboration,
2715 No_Anonymous_Allocators.
2717 2010-10-08 Vincent Celier <celier@adacore.com>
2719 * bindgen.adb (Gen_Restrictions_Ada): No new line after last
2720 restriction, so that the last comma is always replaced with a left
2723 2010-10-08 Javier Miranda <miranda@adacore.com>
2725 * sem_prag.adb (Analyze_Pragma): Add specific check on the type of the
2726 first formal of delegates.
2728 2010-10-08 Robert Dewar <dewar@adacore.com>
2730 * sem_aggr.adb: Minor reformatting.
2732 2010-10-08 Robert Dewar <dewar@adacore.com>
2734 * exp_imgv.adb (Expand_Image_Attribute): Handle special calling
2735 sequence for soft hyphen for Character'Image case.
2736 * rtsfind.ads (Image_Character_05): New entry
2737 * s-imgcha.adb (Image_Character_05): New procedurew
2738 * s-imgcha.ads (Image_Character_05): New procedure
2739 * s-imgwch.adb (Image_Wide_Character): Deal with Ada 2005 soft hyphen
2741 * s-valcha.adb (Value_Character): Recognize SOFT_HYPHEN for 16#AD#
2742 * sem_attr.adb (Eval_Attribute, case Width): Handle soft_hyphen name
2745 2010-10-08 Robert Dewar <dewar@adacore.com>
2747 * sem_attr.adb (Eval_Attribute, case Width): Avoid ludicrous long loop
2748 for case of Wide_[Wide_]Character.
2750 2010-10-08 Robert Dewar <dewar@adacore.com>
2752 * exp_ch3.adb: Minor reformating
2753 Minor code reorganization.
2755 2010-10-08 Javier Miranda <miranda@adacore.com>
2757 * sem_prag.adb (Analyze_Pragma): Add missing checks on wrong use of
2758 pragmas CIL_Constructor and Java_Constructor.
2759 * exp_ch3.adb (Expand_Freeze_Record_Type): Do not generate the
2760 predefined primitives for CIL/Java tagged types.
2762 2010-10-08 Robert Dewar <dewar@adacore.com>
2764 * sem_ch6.adb: Minor reformatting.
2766 2010-10-08 Robert Dewar <dewar@adacore.com>
2768 * gnat1drv.adb: Add call to Validate_Independence.
2769 * par-prag.adb: Add dummy entries for Independent,
2770 Independent_Componentsa.
2771 * sem_ch13.adb (Validate_Independence): New procedure
2772 (Initialize): Initialize address clause and independence check tables
2773 * sem_ch13.ads (Independence_Checks): New table
2774 (Validate_Independence): New procedure
2775 * sem_prag.adb: Add processing for pragma Independent[_Components]
2776 * snames.ads-tmpl: Add entries for pragma Independent[_Components]
2778 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2780 * sem_aggr.adb (Propagate_Discriminants): When expanding an aggregate
2781 component with box initialization, if the component is a variant record
2782 use the values of the discriminants to select the proper variant for
2783 further box initialization.
2785 2010-10-08 Thomas Quinot <quinot@adacore.com>
2787 * xsnames.adb: Remove obsolete file.
2788 * make.adb, sem_ch8.adb, einfo.ads: Minor reformatting.
2790 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2792 * exp_aggr.adb: Complete previous change.
2794 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2796 * sem_ch6.adb (Check_Return_Subtype): The subtype indication in an
2797 extended return must match statically the return subtype of the
2798 enclosing function if the type is an elementary type or if it is
2801 2010-10-08 Vincent Celier <celier@adacore.com>
2803 * prj-nmsc.adb (Add_Source): Report all duplicate units and source file
2804 names. Do not report the same duplicate unit several times.
2805 * prj.ads (Source_Data): New Boolean component Duplicate_Unit,
2806 defaulted to False, to avoid reporting the same unit as duplicate
2809 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2811 * sem_aggr.adb (Resolve_Array_Aggregate): If the expression in an
2812 others choice is a literal, analyze it to enable later optimizations.
2813 * exp_aggr.adb (Expand_Record_Aggregate): An aggregate with static size
2814 and components can be handled by the backend even if it is of a limited
2817 2010-10-08 Arnaud Charlet <charlet@adacore.com>
2819 * a-rttiev.adb (task Timer): Since this package may be elaborated
2820 before System.Interrupt, we need to call Setup_Interrupt_Mask
2821 explicitly to ensure that this task has the proper signal mask.
2823 2010-10-08 Robert Dewar <dewar@adacore.com>
2825 * freeze.adb (Freeze_Entity): For array case, move some processing for
2826 pragma Pack, Component_Size clause and atomic/volatile components here
2827 instead of trying to do the job in Sem_Ch13 and Freeze.
2828 * layout.adb: Use new Addressable function
2829 * sem_ch13.adb (Analyze_Attribute_Representation_Clause, case
2830 Component_Size): Move some handling to freeze point in
2831 Freeze.Freeze_Entity.
2832 * sem_prag.adb (Analyze_pragma, case Pack): Move some handling to
2833 freeze point in Freese.Freeze_Entity.
2834 * sem_util.ads, sem_util.adb (Addressable): New function.
2836 2010-10-08 Robert Dewar <dewar@adacore.com>
2838 * sprint.adb: Minor reformatting.
2840 2010-10-08 Javier Miranda <miranda@adacore.com>
2842 * exp_ch4.adb (Real_Range_Check): Declare temporary as constant.
2844 2010-10-08 Robert Dewar <dewar@adacore.com>
2846 * sem_ch3.adb: Minor reformatting.
2848 2010-10-08 Vincent Celier <celier@adacore.com>
2850 * ali-util.adb (Get_File_Checksum): Make sure that external_as_list is
2851 not a reserved word.
2852 * prj-proc.adb (Expression): Process string list external references.
2853 * prj-strt.adb (External_Reference): Parse external_as_list external
2855 * prj-tree.ads (Expression_Kind_Of): Allowed for N_External_Value nodes
2856 (Set_Expression_Kind_Of): Ditto
2857 * prj.adb (Initialize): Set external_as_list as a reserved word
2858 * projects.texi: Document new string external reference
2860 * scans.ads (Token_Type): New token Tok_External_As_List
2861 * snames.ads-tmpl: New standard name Name_External_As_List
2863 2010-10-08 Thomas Quinot <quinot@adacore.com>
2865 * sem_prag.adb: Minor reformatting.
2867 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2869 * sem_ch3.adb (Derived_Type_Declaration): In the private part of an
2870 instance, it is legal to derive from a non-limited actual when the
2871 formal type is untagged limited.
2872 * sem_ch12.adb (Instantiate_Type): For a formal private type, use
2873 analyzed formal as Generic_Parent_Type, to simplify later checks.
2875 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2877 * sem_res.adb (Insert_Default): If default value is already a
2878 raise_constraint_error do not rewrite it as new raise node, to prevent
2879 infinite loops in the warning removal machinery.
2881 2010-10-08 Robert Dewar <dewar@adacore.com>
2883 * sem_util.adb, sem_prag.adb: Minor reformatting
2885 2010-10-08 Hristian Kirtchev <kirtchev@adacore.com>
2887 * gnat_rm.texi: Remove the section on pragma Implemented_By_Entry.
2888 Add section on pragma Implemented.
2890 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2892 * sem_ch3.adb (Derive_Subprogram): If an abstract extension has a
2893 concrete parent with a concrete constructor, the inherited constructor
2894 is abstract even if the derived type is a null extension.
2896 2010-10-08 Thomas Quinot <quinot@adacore.com>
2898 * sem_ch4.adb: Minor reformatting.
2900 2010-10-08 Hristian Kirtchev <kirtchev@adacore.com>
2902 * einfo.adb: Flag 232 (formerly Implemented_By_Entry) is now unused.
2903 (Implemented_By_Entry): Removed.
2904 (Set_Implemented_By_Entry): Removed.
2905 (Write_Entity_Flags): Remove the output for Implemented_By_Entry.
2906 * einfo.ads: Remove Implemented_By_Entry and its usage in entities.
2907 (Implemented_By_Entry): Removed along with its associated pragma.
2908 (Set_Implemented_By_Entry): Removed along with its associated pragma.
2909 * exp_ch9.adb: Alphabetize with and use clauses of Exp_Ch9.
2910 (Build_Dispatching_Call_Equivalent): New routine.
2911 (Build_Dispatching_Requeue): New routine.
2912 (Build_Dispatching_Requeue_To_Any): New routine.
2913 (Build_Normal_Requeue): New routine.
2914 (Build_Skip_Statement): New routine.
2915 (Expand_N_Requeue_Statement): Rewritten. The logic has been split into
2916 several subroutines.
2917 * par-prag.adb: Replace Pragma_Implemented_By_Entry by
2919 * sem_ch3.adb (Check_Abstract_Overriding): Perform checks concerning
2921 (Check_Pragma_Implemented): New routines.
2922 (Inherit_Pragma_Implemented): New routine.
2923 * sem_ch9.adb (Analyze_Requeue): Update the predicate which detects a
2924 dispatching requeue.
2925 * sem_prag.adb: Update array Sig_Flags by removing Implemented_By_Entry
2926 and adding Implemented.
2927 (Ada_2012_Pragma): New routine.
2928 (Analyze_Pragma, case Implemented): Perform all necessary checks
2929 concerning pragma Implemented and register the pragma as a
2930 representation item with the procedure_LOCAL_NAME.
2931 (Analyze_Pragma, case Implemented_By_Entry): Removed.
2932 * sem_util.adb (Implementation_Kind): New routine.
2933 * sem_util.ads (Implementation_Kind): New routine.
2934 * snames.ads-tmpl: Remove Name_Implemented_By_Entry and add
2935 Name_Implemented. Remove pragma name Pragma_Implemented_By_Entry and
2936 add Pragma_Implemented. Add special names By_Any, By_Entry and
2937 By_Protected_Procedure.
2939 2010-10-08 Javier Miranda <miranda@adacore.com>
2941 * exp_ch3.adb (Expand_Freeeze_Record_Type): Code cleanup: remove local
2942 variable Has_Static_DT by invocation of function Building_Static_DT.
2944 2010-10-08 Vincent Celier <celier@adacore.com>
2946 * g-dirope.adb (Remove_Dir): Do not change the current directory when
2947 doing a recursive remove of a subdirectory.
2949 2010-10-08 Javier Miranda <miranda@adacore.com>
2951 * exp_ch6.ad (Freeze_Subprogram): Factorize code.
2952 * exp_disp.adb (Make_Secondary_DT): Factorize code.
2953 (Make_DT): Factorize code.
2955 2010-10-08 Robert Dewar <dewar@adacore.com>
2957 * sem_ch4.adb: Minor reformatting.
2959 2010-10-08 Robert Dewar <dewar@adacore.com>
2961 * sem_ch6.adb (Check_Conformance): Check null exclusion match for full
2964 2010-10-08 Thomas Quinot <quinot@adacore.com>
2966 * sem_ch12.adb (Instantiate_Object): Rename Formal_Id to Gen_Obj, for
2967 consistency with Gen_T in Instantiate_Type.
2968 Introduce constant A_Gen_Obj to avoid repeated queries for
2969 Defining_Identifier (Analyzed_Formal).
2971 2010-10-08 Vincent Celier <celier@adacore.com>
2973 * prj-nmsc.adb: Minor comment fix.
2975 2010-10-07 Robert Dewar <dewar@adacore.com>
2977 * sem_prag.adb, sem_ch13.adb: Implement AI05-0012-1/02.
2978 * gcc-interface/Make-lang.in: Update dependencies.
2980 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2982 * sem_ch12.ad: (Instantiate_Object): For an in-out formal of a child
2983 unit, if the type of the formal is declared in a parent unit and is not
2984 a formal itself, the actual must be located from an enclosing parent
2985 instance by normal visibility.
2987 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2989 * sem_ch4.adb (Analyze_Allocator): In Ada 2012, a null_exclusion
2990 indicator is illegal for an uninitialized allocator.
2992 2010-10-07 Robert Dewar <dewar@adacore.com>
2994 * sem_prag.adb (Analyze_Attribute_Definition_Clause, case
2995 Component_Size): Complete previous change.
2997 2010-10-07 Vincent Celier <celier@adacore.com>
2999 * scng.adb (Scan): Call Accumulate_Token_Checksum for Tok_Identifier,
3000 even for keywords, to avoid having the checksum to depend on the Ada
3003 2010-10-07 Gary Dismukes <dismukes@adacore.com>
3005 * sem_aggr.adb, sem_ch12.adb, sem_ch6.adb, par-ch5.adb,
3006 exp_ch3.adb: Minor reformatting.
3008 2010-10-07 Robert Dewar <dewar@adacore.com>
3010 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
3011 Component_Size): It is now illegal to give an incorrect component size
3012 clause in the case of aliased or atomic components.
3013 * sem_prag.adb (Analyze_Pragma, case Pack): It is now illegal to give
3014 an effective pragma Pack in the case of aliased or atomic components.
3016 2010-10-07 Steve Baird <baird@adacore.com>
3018 * exp_ch4.adb (Expand_N_Allocator): Do not bypass expansion
3019 in the case of a violation of an active No_Task_Hierarchy restriction.
3021 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3023 * sem_ch12.adb (Validate_Derived_Type_Instance): If a formal derived
3024 type is non-limited, an actual for it cannot be limited.
3026 2010-10-07 Robert Dewar <dewar@adacore.com>
3028 * einfo.ads (No_Pool_Assigned): Update documentation.
3029 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
3030 Storage_Size): We only set No_Pool_Assigned if the expression is a
3031 static constant and zero.
3032 * sem_res.adb (Resolve_Allocator): Allocation from empty storage pool
3033 should be an error not a warning.
3035 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3037 * exp_aggr.adb (Expand_Array_Aggregate): Recognize additional cases
3038 where an aggregate in an assignment can be built directly into the
3039 target, and does not require the creation of a temporary that may
3042 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3044 * sem_aggr.adb (Analyze_Record_Aggregate): In Ada2012, a choice list
3045 in a record aggregate can correspond to several components of
3046 anonymous access types, as long as the designated subtypes match.
3048 2010-10-07 Robert Dewar <dewar@adacore.com>
3050 * gnat_rm.texi, exp_util.adb, sinfo.adb, sinfo.ads, sem_ch12.adb,
3051 sem.adb, gnat_ugn.texi, sem_util.ads, par-ch6.adb, targparm.ads,
3052 restrict.adb, sem_ch6.adb, sem_ch6.ads, sprint.adb, i-c.ads: Change
3053 spelling parametrize(d) => parameterize(d).
3055 2010-10-07 Robert Dewar <dewar@adacore.com>
3057 * sem_ch12.adb: Add comment.
3058 * sem_ch6.adb: Minor reformatting.
3060 2010-10-07 Robert Dewar <dewar@adacore.com>
3062 * par-ch3.adb, par-ch6.adb, par-ch7.adb, par-ch9.adb, par-ch10.adb: Add
3063 Pexp to Pf_Rec constants
3064 (P_Subprogram): Expression is always enclosed in parentheses
3065 * par.adb (Pf_Rec): add Pexp flag for parametrized expression
3066 * sinfo.ads (N_Parametrized_Expression): Expression must be in parens
3068 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3070 * sem_ch6.adb (Analyze_Subprogram_Specification): Implement Ada2012
3071 checks on functions that return an abstract type or have a controlling
3072 result whose designated type is an abstract type.
3073 (Check_Private_Overriding): Implement Ada2012 checks on functions
3074 declared in the private part, if an abstract type is involved.
3075 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): In Ada2012,
3076 reject a generic function that returns an abstract type.
3077 * exp_ch5.adb (Expand_Simple_Function_Return): in Ada2012, if a
3078 function has a controlling access result, check that the tag of the
3079 return value matches the designated type of the return expression.
3081 2010-10-07 Robert Dewar <dewar@adacore.com>
3083 * par-ch6.adb: Fix error in handling of parametrized expressions.
3084 * par-ch4.adb (P_Name): Allow qualified expression as name in Ada 2012
3086 (P_Simple_Expression): Better message for qualified expression prefix
3087 * s-crc32.adb: Minor reformatting.
3088 * exp_intr.adb (Expand_Unc_Deallocation): Remove test for empty
3089 storage pool (this test is moved to Sem_Intr).
3090 * sem_intr.adb (Check_Intrinsic_Call): Add check for deallocation from
3091 empty storage pool, moved here from Exp_Intr and made into error.
3092 (Check_Intrinsic_Call): Remove assumption in generating not-null free
3093 warning that the name of the instantiation is Free.
3094 * sinput.adb (Tree_Read): Document use of illegal free call allowed in
3096 * types.ads: Remove storage size clauses from big types (since we may
3097 need to do deallocations, which are now illegal for empty pools).
3099 2010-10-07 Sergey Rybin <rybin@adacore.com>
3101 * gnat_ugn.texi: Add missing word.
3103 2010-10-07 Robert Dewar <dewar@adacore.com>
3105 * exp_util.adb (Insert_Actions): Add handling of
3106 N_Parametrized_Expression.
3107 * par-ch6.adb (P_Subprogram): Add parsing of parametrized expression
3108 * sem.adb: Add entry for N_Parametrized_Expression
3109 * sem_ch6.adb (Analyze_Parametrized_Expression): New procedure
3110 * sem_ch6.ads (Analyze_Parametrized_Expression): New procedure
3111 * sinfo.ads, sinfo.adb: Add N_Parametrized_Expression
3112 * sprint.adb (Sprint_Node): Add handling for N_Parametrized_Expression
3113 * par-ch4.adb: Minor reformatting.
3115 2010-10-07 Robert Dewar <dewar@adacore.com>
3117 * scng.adb (Skip_Other_Format_Characters): New procedure
3118 (Start_Of_Wide_Character): New procedure
3119 (Scan): Use Start_Of_Wide_Character where appropriate
3120 (Scan): Improve error message for other_format chars in identifier
3121 (Scan): Allow other_format chars between tokens
3123 2010-10-07 Javier Miranda <miranda@adacore.com>
3125 * exp_util.adb (Safe_Prefixed_Reference): When removing side effects,
3126 Add missing support for explicit dereferences.
3128 2010-10-07 Robert Dewar <dewar@adacore.com>
3130 * par-ch10.adb, par-ch3.adb, par.adb: Minor reformatting.
3132 2010-10-07 Robert Dewar <dewar@adacore.com>
3134 * exp_disp.adb, exp_dist.adb, exp_util.ads, exp_util.adb,
3135 exp_ch11.adb: Rename Full_Qualified_Name to Fully_Qualified_Name_String
3136 * sem_util.adb, sem_util.ads (Full_Qualified_Name): Moved to
3137 Exp_Util.Fully_Qualified_Name_String.
3139 2010-10-07 Robert Dewar <dewar@adacore.com>
3141 * rtsfind.ads: Add entry for Ada.Real_Time.Timing_Events.Set_Handler
3142 * sem_res.adb (Resolve_Call): A call to
3143 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
3144 No_Relative_Delay (AI-0211).
3146 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3148 * sem_ch10.adb: Small change in error message.
3150 2010-10-07 Robert Dewar <dewar@adacore.com>
3152 * tbuild.ads: Minor reformatting.
3154 2010-10-07 Robert Dewar <dewar@adacore.com>
3156 * gnatcmd.adb, make.adb, prj-nmsc.adb, sem_elab.adb: Minor reformatting
3158 2010-10-07 Arnaud Charlet <charlet@adacore.com>
3160 * exp_ch11.adb (Expand_N_Exception_Declaration): Update comments.
3162 2010-10-07 Robert Dewar <dewar@adacore.com>
3164 * sem_res.adb: Minor reformatting
3166 2010-10-07 Olivier Ramonat <ramonat@adacore.com>
3168 * gnat_ugn.texi: Minor editing.
3169 * opt.ads: Document that scripts rely on specific formats in opt.ads
3171 2010-10-07 Robert Dewar <dewar@adacore.com>
3173 * a-wichun.ads, a-wichun.adb (To_Lower_Case): New function
3174 (To_Upper_Case): Fix to be inverse of To_Lower_Case
3175 * a-zchuni.ads, a-zchuni.adb (To_Lower_Case): New function
3176 (To_Upper_Case): Fix to be inverse of To_Lower_Case
3178 2010-10-07 Robert Dewar <dewar@adacore.com>
3180 * a-wichha.adb, a-wichha.ads, a-zchhan.adb, a-zchhan.ads: New file.
3181 * impunit.adb: Add entries for a-wichha/a-zchhan
3182 * Makefile.rtl: Add entries for a-wichha/a-zchhan
3184 2010-10-07 Vincent Celier <celier@adacore.com>
3186 * make.adb (Check): Call Check_Source_Info_In_ALI with Project_Tree
3187 * makeutl.adb (Check_Source_Info_In_ALI): If there is at least one
3188 replaced source, check that none of the replaced sources are in the
3190 * makeutl.ads (Check_Source_Info_In_ALI): New parameter Tree
3191 * prj-nmsc.adb (Remove_Source): New parameter Tree. If the source is
3192 replaced with a source with a different file name, put it in the hash
3193 table Replaced_Sources.
3194 (Add_Source): Call Remove_Source with Data.Tree. If there is at least
3195 one replaced source, check if it has the same file name as the current
3196 source; if it has, remove it from the hash table Replaced_Sources.
3197 * prj.adb (Reset): Reset hash table Tree.Replaced_Sources
3198 * prj.ads (Replaced_Source_HTable): New hash table
3199 (Project_Tree_Data): New components Replaced_Sources and
3200 Replaced_Source_Number.
3202 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3204 * sem_elab.adb (Check_A_Call): After inserting elaboration check, set
3205 proper flag to prevent a double elaboration check on the same call.
3206 * exp_util.adb (Insert_Actions): If the enclosing node is an
3207 Expression_With_Actions and it has been analyzed already, find
3208 insertion point further up in the tree.
3210 2010-10-07 Hristian Kirtchev <kirtchev@adacore.com>
3212 * sem_ch13.adb (Analyze_Record_Representation_Clause): Alphabetize all
3213 local variables. Remove the general restriction which prohibits the
3214 application of record rep clauses to Unchecked_Union types. Add Ada
3215 2012 check to detect improper naming of an Unchecked_Union
3216 discriminant in record rep clause.
3217 * sem_prag.adb: Add with and use clause for Exp_Ch7.
3218 (Analyze_Pragma): Unchecked_Union case: Propagate the Unchecked_Union
3219 type to all invocations of Check_Component and Check_Variant.
3220 (Check_Component): Add formal parameters UU_Typ and In_Variant_Part.
3221 Rewritten. Add Ada 2012 check to detect improper use of formal
3222 private types and private extensions as component types of an
3223 Unchecked_Union declared inside a generic body.
3224 (Check_Variant): Add formal parameter UU_Typ. Propagate the
3225 Unchecked_Union type to all calls of Check_Component. Signal that the
3226 current component comes from the variant part of an Unchecked_Union
3228 (Inside_Generic_Body): New routine.
3230 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3232 * exp_ch4.adb (Expand_Composite_Equality): When looking for a primitive
3233 equality operation for a record component, verify that both formals
3234 have the same type, and the result type is boolean.
3236 2010-10-07 Vincent Celier <celier@adacore.com>
3238 * gnatcmd.adb (Check_Files): When looking for the .ci file for a
3239 binder generated file, look for both b~xxx and b__xxx as gprbuild
3240 always uses b__ as the prefix of such files.
3242 2010-10-07 Thomas Quinot <quinot@adacore.com>
3244 * sem_res.adb: Minor reformatting.
3246 2010-10-07 Arnaud Charlet <charlet@adacore.com>
3248 * debug.adb: Update -gnatd.J documentation.
3250 2010-10-07 Robert Dewar <dewar@adacore.com>
3252 * gnat_rm.texi: Document handling of invalid values
3253 * s-utf_32.ads, s-utf_32.adb (UTF_To_Lower_Case): Fix implementation
3255 (UTF_To_Upper_Case): New function.
3257 2010-10-07 Robert Dewar <dewar@adacore.com>
3259 * sem_attr.adb: Minor reformatting.
3260 * einfo.ads, einfo.adb (Is_Ada_2012_Only): New flag
3261 * itypes.adb (Create_Null_Excluding_Itype): Set Is_Ada_2012_Only flag
3263 * lib-xref.adb (Generate_Reference): Warn on use of Ada 2012 entity in
3265 * opt.ads (Warn_On_Ada_2012_Compatibility): New flag
3266 * sem_ch3.adb (Analye_Subtype_Declaration): Inherit Is_Ada_2012_Only
3267 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Is_Ada_2012_Only
3269 * sem_prag.adb (Analyze_Pragma, case Ada_12/Ada_2012): Allow form with
3271 * sem_type.adb (Disambiguate): Deal with Is_Ada_2012_Only.
3272 * sem_warn.adb (Warn_On_Ada_2012_Compatibility): New flag, treated
3275 2010-10-07 Javier Miranda <miranda@adacore.com>
3277 * a-tags.ads: Use new support for pragma Ada_2012 with function
3280 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3282 * par-ch5.adb (P_Sequence_Of_Statements): In Ada2012 a label can end a
3283 sequence of statements.
3285 2010-10-07 Vincent Celier <celier@adacore.com>
3287 * gnatcmd.adb (Check_Files): Only add a .ci files if it exists
3289 2010-10-07 Javier Miranda <miranda@adacore.com>
3291 * a-tags.ads, a-tags.adb (Type_Is_Abstract): New subprogram.
3292 * rtsfind.ads (RE_Type_Is_Abstract): New entity.
3293 * exp_disp.adb (Make_DT): Initialize TSD component Type_Is_Abstract.
3295 2010-10-07 Arnaud Charlet <charlet@adacore.com>
3297 * sem_ch12.adb (Mark_Context): Removed, no longer needed.
3298 (Analyze_Package_Instantiation): No longer analyze systematically a
3299 generic body in CodePeer mode.
3300 * freeze.adb, sem_attr.adb: Update comments.
3302 2010-10-05 Robert Dewar <dewar@adacore.com>
3304 * par-ch5.adb (Test_Statement_Required): Allow all pragmas in Ada 2012
3307 2010-10-05 Pascal Obry <obry@adacore.com>
3309 * gnat_rm.texi: Fix typo.
3311 2010-10-05 Arnaud Charlet <charlet@adacore.com>
3313 * gnat_ugn.texi: Add note about identifiers with same name and
3316 2010-10-05 Robert Dewar <dewar@adacore.com>
3318 * sem_ch4.adb: Minor reformatting.
3319 * a-direct.ads: Minor comment update.
3321 2010-10-05 Javier Miranda <miranda@adacore.com>
3323 * sem_ch3.adb (Add_Internal_Interface_Entities): Removing code that is
3324 no longer required after change in New_Overloaded_Entity.
3325 * sem_ch6.adb (New_Overloaded_Entity): Code reorganization to isolate
3326 the fragment of code that handles derivations of interface primitives.
3327 Add missing dependence on global variable Inside_Freezing_Actions to
3328 ensure the correct management of internal interface entities.
3329 * sem_ch13.adb (Analyze_Freeze_Entity): Add missing increase/decrease
3330 of the global variable Inside_Freezing_Actions to ensure that internal
3331 interface entities are well handled by New_Overloaded_Entity.
3332 * sem_disp.adb (Find_Primitive_Covering_Interface): Add documentation
3333 and complete the algorithm to catch hidden primitives derived of
3334 private type that covers the interface.
3335 * sem_disp.ads (Find_Primitive_Covering_Interface): Add missing
3338 2010-10-05 Robert Dewar <dewar@adacore.com>
3340 * prj-util.adb, prj-util.ads, prj.ads, s-vxwext-rtp.adb, sem_ch4.adb,
3341 sem_ch7.adb, sem_res.adb, sem_type.adb: Minor reformatting.
3342 Minor code reorganization (use Nkind_In).
3344 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3346 * sem_ch10.adb (Analyze_Task_Body_Stub): Diagnose duplicate stub for
3349 2010-10-05 Vincent Celier <celier@adacore.com>
3351 * gnatbind.adb: If the main library file is not for a suitable main
3352 program, change the error message.
3354 2010-10-05 Vincent Celier <celier@adacore.com>
3356 * a-direct.ads: Minor spelling error fixes in comments.
3357 * gnat_rm.texi: Add three entries in "Implementation Defined
3358 Characteristics" for the interpretations of the Form parameters in
3361 2010-10-05 Robert Dewar <dewar@adacore.com>
3363 * exp_ch3.adb, exp_ch5.adb, exp_disp.adb, exp_dist.adb, gnatlink.adb,
3364 makeutl.adb, par-ch6.adb, prj-dect.adb, prj-env.adb, prj-env.ads,
3365 prj-ext.adb, prj-nmsc.adb, prj-part.adb, prj-pp.ads: Minor code
3369 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3371 * sem_res.adb (Check_Parameterless_Call): If the prefix of 'Address is
3372 an explicit dereference of an access to function, the prefix is not
3373 interpreted as a parameterless call.
3375 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3377 * exp_attr.adb: For 'Read and 'Write, use full view of base type if
3380 2010-10-05 Vincent Celier <celier@adacore.com>
3382 * make.adb (Switches_Of): Allow wild cards in index of attributes
3384 * prj-util.adb (Value_Of): When Allow_Wildcards is True, use the index
3385 of the associative array as a glob regular expression.
3386 * prj-util.ads (Value_Of (Index, In_Array)): New Boolean parameter
3387 Allow_Wildcards, defaulted to False.
3388 (Value_Of (Name, Attribute_Or_Array_Name)): Ditto
3389 * projects.texi: Document that attribute Switches (<file name>) may
3390 use wild cards in the index.
3392 2010-10-05 Robert Dewar <dewar@adacore.com>
3394 * a-direct.adb, a-direct.ads, back_end.adb, checks.adb,
3395 einfo.adb: Minor reformatting.
3396 * debug.adb: Remove obsolete documentation for d.Z flag.
3398 2010-10-05 Vincent Celier <celier@adacore.com>
3400 * vms_data.ads: Add VMS qualifier /SRC_INFO= corresponding to gnatmake
3401 switch --create-info-file=.
3402 * gnat_ugn.texi: Add documentation for new gnatmake switch
3405 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3407 * sem_ch3.adb: Do not elaborate type definition if syntax error.
3409 2010-10-05 Javier Miranda <miranda@adacore.com>
3411 * sprint.adb (Sprint_Node_Actual): Improve output of subprogram bodies
3412 to generate the full-qualified names of its corresponding spec.
3413 This facilitates locating the corresponing body when reading
3416 2010-10-05 Thomas Quinot <quinot@adacore.com>
3418 * exp_dist.adb (Make_Helper_Function_Name): For a tagged type, use
3419 canonical name without serial number only if the helper is becoming a
3420 primitive of the type.
3422 2010-10-05 Javier Miranda <miranda@adacore.com>
3424 * exp_disp.adb (Make_DT): Minor code reorganization.
3426 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3428 * par-ch6.adb: improve recovery with extra paren in function spec.
3430 2010-10-05 Quentin Ochem <ochem@adacore.com>
3432 * prj-tree.ads: Project_Path is now aliased.
3434 2010-10-05 Thomas Quinot <quinot@adacore.com>
3436 * checks.adb: Minor reformatting.
3438 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
3440 * mlib-tgt-specific-mingw.adb (No_Argument_List): Delete.
3441 (Shared_Libgcc): New aliased variable.
3442 (Shared_Libgcc_Switch): New constant.
3443 (Build_Dynamic_Library): Pass Shared_Libgcc_Switch to the compiler
3444 * gcc-interface/Makefile.in (gnatlib-shared-win32): Pass -shared-libgcc
3446 * gcc-interface/Make-lang.in: Update dependencies.
3448 2010-10-05 Vincent Celier <celier@adacore.com>
3450 * prj-part.adb (Parse_Simple_Project): When checking if a child project
3451 imports its parent project, also look in projects being extended by
3454 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
3456 * gnat_ugn.texi: Adjust instructions in G.10 Building DLLs with GNAT.
3458 2010-10-05 Javier Miranda <miranda@adacore.com>
3460 * exp_cg.adb (Slot_Number): Add support to handle aliased entities.
3461 (Generate_CG_Output): Switch -gnatd.Z is no longer needed to
3462 activate this output.
3464 2010-10-05 Arnaud Charlet <charlet@adacore.com>
3466 * back_end.adb (Call_Back_End): Generate an error message when scil
3467 generation is enabled, and no scil back-end (by default) is available.
3469 2010-10-05 Javier Miranda <miranda@adacore.com>
3471 * debug.adb: Update documentation since -gnatd.Z is no longer required
3472 to generate the call-graph information.
3474 2010-10-05 Javier Miranda <miranda@adacore.com>
3476 * exp_ch5.adb (Expand_Simple_Function_Return): Rewrite expansion of a
3477 runtime access check by an equivalent expansion that causes
3478 no problems in the VM backend. The original expansion was
3479 not good for the VM backends because when Tagged_Type_Expansion
3480 is disabled the attribute Access_Disp_Table is not available.
3482 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3484 * sem_type.adb (Covers): In a dispatching context, T1 covers T2 if T2
3485 is class-wide and T1 is its specific type.
3487 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3489 * einfo.adb: Add guard to Is_String_Type to prevent cascaded errors.
3491 2010-10-05 Vincent Celier <celier@adacore.com>
3493 * back_end.ads: Minor spelling error correction.
3495 2010-10-05 Arnaud Charlet <charlet@adacore.com>
3497 * switch-c.adb, gnat1drv.adb (Scan_Front_End_Switches): Disable
3498 warnings when -gnatC is specified here so that warnings can be
3499 re-enabled explicitly.
3500 (Adjust_Global_Switches): No longer suppress warnings.
3502 2010-10-05 Vincent Celier <celier@adacore.com>
3504 * makeutl.adb: Minor reformatting.
3506 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3508 * sem_ch4.adb: add guard in Analyze_One_Call to prevent crash when a
3509 non-discrete type appears as an actual in a call.
3511 2010-10-05 Vincent Celier <celier@adacore.com>
3513 * make.adb (Scan_Make_Arg): Take into account new switch
3515 * makeusg.adb: Add line for new switch --source-info=file.
3516 * makeutl.ads (Source_Info_Option): New constant String for new builder
3518 * prj-conf.adb: Put subprograms in alphabetical order
3519 (Process_Project_And_Apply_Config): Read/write an eventual source info
3521 * prj-nmsc.adb (Look_For_Sources.Get_Sources_From_Source_Info): New
3523 (Look_For_Sources): If a source info file was successfully read, get
3524 the source data from the data read from the source info file.
3525 * prj-util.adb (Source_Info_Table): New table
3526 (Source_Info_Project_HTable): New hash table
3527 (Create): New procedure
3528 (Put (File), Put_Line): New procedures
3529 (Write_Source_Info_File): New procedure
3530 (Read_Source_Info_File): New procedure
3531 (Initialize): New procedure
3532 (Source_Info_Of): New procedure
3533 (Next): New procedure
3534 (Close): When file is an out file, fail if the buffer cannot be written
3535 or if the file cannot be close successfully.
3536 (Get_Line): Fail if file is an out file
3537 * prj-util.ads (Create): New procedure
3538 (Put (File), Put_Line): New procedures
3539 (Write_Source_Info_File): New procedure
3540 (Read_Source_Info_File): New procedure
3541 (Source_Info_Data): New record type
3542 (Source_Info_Iterator): New private type
3543 (Initialize): New procedure
3544 (Source_Info_Of): New procedure
3545 (Next): New procedure
3546 * prj.ads (Project_Tree_Data): New components Source_Info_File_Name and
3547 Source_Info_File_Exists.
3549 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3551 * exp_ch4.adb: Fix typo.
3553 2010-10-05 Thomas Quinot <quinot@adacore.com>
3555 * lib-writ.adb: Minor reformatting.
3557 2010-10-05 Javier Miranda <miranda@adacore.com>
3559 * sem_ch3.adb (Access_Definition): Remove useless code.
3561 2010-10-05 Emmanuel Briot <briot@adacore.com>
3563 * prj-env.adb, prj-env.ads (Set_Path): New subprogram.
3564 (Deep_Copy): Removed, not used.
3566 2010-10-05 Javier Miranda <miranda@adacore.com>
3568 * sem_ch3.adb (Add_Internal_Interface_Entities): Code reorganization:
3569 move code that searches in the list of primitives of a tagged type for
3570 the entity that will be overridden by user-defined routines.
3571 * sem_disp.adb (Find_Primitive_Covering_Interface): Move here code
3572 previously located in routine Add_Internal_Interface_Entities.
3573 * sem_disp.ads (Find_Primitive_Covering_Interface): Update docs.
3574 * sem_ch6.adb (New_Overloaded_Entity): Add missing check on
3575 availability of attribute Alias.
3577 2010-10-05 Ed Falis <falis@adacore.com>
3579 * s-taprop-vxworks.adb, s-osinte-vxworks.adb, s-osinte-vxworks.ads,
3580 s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.adb, s-vxwext-rtp.ads:
3581 Move definition of intContext to System.OS_Interface.
3582 Add necessary variants in System.VxWorks.Extensions.
3584 2010-10-05 Doug Rupp <rupp@adacore.com>
3586 * s-asthan-vms-alpha.adb: On VMS, a task using
3587 pragma AST_Entry exhibits a memory leak when the task terminates
3588 because the vector allocated for the AST interface is not freed. Fixed
3589 by making the vector a controlled type.
3591 2010-10-05 Emmanuel Briot <briot@adacore.com>
3593 * prj-nmsc.adb (Expand_Subdirectory_Pattern): Check that the prefix in
3594 a "**" pattern properly exists, and report an error otherwise.
3596 2010-10-05 Emmanuel Briot <briot@adacore.com>
3598 * prj-env.ads: Use GNAT.OS_Lib rather than System.OS_Lib.
3600 2010-10-05 Emmanuel Briot <briot@adacore.com>
3602 * prj-nmsc.adb, prj-err.adb (Expand_Subdirectory_Pattern): New
3604 Extract some code from Get_Directories, to share with the handling
3605 of aggregate projects (for the Project_Files attributes)
3607 2010-10-05 Emmanuel Briot <briot@adacore.com>
3609 * gnatcmd.adb, prj-proc.adb, prj-part.adb, prj-ext.adb, prj-ext.ads,
3610 switch-m.adb, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-env.adb,
3611 prj-env.ads, prj-tree.adb, prj-tree.ads (Project_Search_Path): New
3614 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
3616 * exp_ch5.adb (Make_Field_Expr): Revert previous change (removed).
3618 2010-10-05 Emmanuel Briot <briot@adacore.com>
3620 * prj-dect.adb, prj-nmsc.adb, prj-attr.adb, snames.ads-tmpl
3621 (Aggregate projects): added support for parsing aggregate projects.
3622 In particular, check the presence and value of the new attributes
3623 related to aggregate projects, ie Project_Files, Project_Path
3625 (Check_Attribute_Allowed, Check_Package_Allowed,
3626 Rename_Obsolescent_Attributes): new subprogram, extracting code
3627 from existing subprogram to keep their sizes smaller.
3628 (Check_Aggregate_Project, Check_Abstract_Project,
3629 Check_Missing_Sources): new subprograms
3630 (Check): remove comments that duplicated either the name of the
3631 following subprogram call, or the comment on that subprogram.
3632 * prj-part.adb (Check_Extending_All_Imports): New subprogram, extracted
3633 from Parse_Single_Project.
3634 (Check_Aggregate_Imports): new subprogram.
3636 2010-10-05 Vincent Celier <celier@adacore.com>
3638 * make.adb (Check): When compiling with -gnatc, recompile if the ALI
3639 file has not been generated for the current source, for example if it
3640 has been generated for the spec, but we are compiling the body.
3642 2010-10-05 Bob Duff <duff@adacore.com>
3644 * xgnatugn.adb: Remove unused procedure.
3646 2010-10-04 Vincent Celier <celier@adacore.com>
3648 * a-direct.adb (Copy_File): Interpret the Form parameter and call
3649 System.OS_Lib.Copy_File to do the work accordingly. Raise Use_Error if
3650 the Form parameter contains an incorrect value for field preserve= or
3652 * a-direct.ads (Create_Directory, Create_Path): Indicate that the Form
3653 parameter is ignored.
3654 (Copy_File): Indicate the interpretation of the Form parameter.
3656 2010-10-04 Vincent Celier <celier@adacore.com>
3658 * make.adb (Gnatmake): When there are no foreign languages declared and
3659 a main in attribute Main of the main project does not exist or is a
3660 source of another project, fail immediately before attempting
3663 2010-10-04 Javier Miranda <miranda@adacore.com>
3665 * exp_disp.ads (Convert_Tag_To_Interface): New function which must be
3666 used to convert a node referencing a tag to a class-wide interface
3668 * exp_disp.adb (Convert_Tag_To_Interface): New function.
3669 (Expand_Interface_Conversion): Replace invocation of
3670 Unchecked_Conversion by new function Convert_Tag_To_Interface.
3671 (Write_DT): Add support for null primitives.
3672 * exp_ch3.adb (Expand_N_Object_Declaration): For tagged type objects,
3673 cleanup code that handles interface conversions and avoid unchecked
3674 conversion of referenced tag components.
3675 * exp_ch5.adb (Expand_N_Assignment_Statement): Code cleanup. Avoid
3676 unrequired conversions when generating a dispatching call to _assign.
3677 * sprint.adb (Write_Itype): Fix wrong output of not null access itypes.
3679 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3681 * exp_ch4.adb (Expand_N_Op_Not): Handle properly both operands when the
3682 parent is a binary boolean operation and the operand is an unpacked
3684 (Build_Boolean_Array_Proc_Call): If the operands are both negations,
3685 the operands of the rewritten node are the operands of the negations,
3686 not the negations themselves.
3688 2010-10-04 Robert Dewar <dewar@adacore.com>
3690 * sem_ch13.adb (Set_Biased): New procedure, now used throughout, adds
3691 name of entity to biased warning msg.
3692 (Analyze_Enumeration_Representation_Clause): Remove attempt to use
3693 biased rep (wrong and never worked anyway).
3695 2010-10-04 Arnaud Charlet <charlet@adacore.com>
3697 * sem_elab.adb: Minor reformatting.
3699 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3701 * exp_ch4.adb (Expand_N_Null): Handle properly the case of a subtype of
3702 an access_to_protected subprogram type, and convert null value into
3703 corresponding aggregate.
3705 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3707 * gnat_ugn.texi: Clarify first point of 7.1.5 about pragma Inline.
3709 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3711 * make.adb (Scan_Make_Arg): Pass -Oxxx switches to the linker as well.
3712 * gnatlink.adb (Gnatlink): Filter out -Oxxx switches for CLI, RTX and
3715 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3717 * sem_ch4.adb (Analyze_Indexed_Component_Form): Remove redundant test
3718 for N_Operator_Symbol.
3719 (Indicate_Name_And_Type): Likewise.
3720 * sem_ch8.adb (Analyze_Subprogram_Renaming): Likewise.
3721 * sem_res.adb (Resolve): Likewise.
3722 * sem_type.adb (Add_One_Interp): Likewise.
3723 (Disambiguate): Likewise.
3725 2010-10-04 Vincent Celier <celier@adacore.com>
3727 * osint.adb (Read_Library_Info_From_Full): If object timestamp is less
3728 than ALI file timestamp, return null.
3730 2010-10-04 Vincent Celier <celier@adacore.com>
3732 * prj-makr.adb (Finalize): Invoke Pretty_Print with Max_Length of 79.
3733 * prj-pp.adb (Pretty_Print): New parameter Max_Line_Length, that
3734 replaces global constant with the same name. When a line is too long,
3735 indent properly the next continuation line.
3736 * prj-pp.ads (Pretty_Print): New parameter Max_Line_Length with a range
3737 from 50 to 255, defaulted to 255, to indicate the maximum length of
3738 lines in the project file.
3740 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3742 * sem_ch7.adb (Analyze_Package_Body_Helper) <Has_Referencer>: New
3743 Check_Subprogram_Ref function and Check_Subprogram_Refs instantiation
3744 of Traverse_Func on it to look for subprogram references in a body.
3745 Call Check_Subprogram_Refs on the body of inlined subprograms at the
3746 outer level and keep clearing the Is_Public flag of subprograms as long
3747 as it returns OK. Do not look at anything else than subprograms once
3748 an inlined subprogram has been seen.
3750 2010-10-04 Javier Miranda <miranda@adacore.com>
3752 * exp_cg.adb (Expand_N_Assignment_Statement): Restore tag check when
3753 the target object is an interface.
3754 * sem_disp.adb (Propagate_Tag): If the controlling argument is an
3755 interface type then we generate an implicit conversion to force
3756 displacement of the pointer to the object to reference the secondary
3757 dispatch table associated with the interface.
3759 2010-10-04 Robert Dewar <dewar@adacore.com>
3761 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Set
3762 Enumeration_Rep_Expr to point to the literal, not the identifier.
3763 (Analyze_Enumeration_Representation_Clause): Improve error message for
3764 size too small for enum rep value
3765 (Analyze_Enumeration_Representation_Clause): Fix size test to use
3766 proper size (RM_Size, not Esize).
3768 2010-10-04 Robert Dewar <dewar@adacore.com>
3770 * s-taprop-vxworks.adb, sem_res.adb: Minor reformatting.
3772 2010-10-04 Javier Miranda <miranda@adacore.com>
3774 * exp_cg.adb (Write_Call_Info): Code clean up.
3776 2010-10-04 Arnaud Charlet <charlet@adacore.com>
3778 * s-taprop-mingw.adb (Create_Task): Initialize Thread_Id field to 0.
3780 2010-10-04 Robert Dewar <dewar@adacore.com>
3782 * exp_cg.adb: Minor code reorganization
3784 * exp_ch5.adb, prj-nmsc.adb: Minor reformatting.
3786 2010-10-04 Bob Duff <duff@adacore.com>
3788 * sem_res.adb (Resolve_Type_Conversion): If a type conversion is needed
3789 to make a qualified expression into a name (syntax-wise), then do not
3790 consider it redundant.
3792 2010-10-04 Thomas Quinot <quinot@adacore.com>
3794 * sem_warn.ads: Fix typo.
3796 2010-10-04 Javier Miranda <miranda@adacore.com>
3798 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Handle suffix in
3800 (Write_Call_Info): Add missing support for renamed primitives.
3802 2010-10-04 Thomas Quinot <quinot@adacore.com>
3804 * exp_ch5.adb (Make_Field_Expr): New subprogram, to factor duplicated
3805 code between Make_Component_List_Assign and Make_Field_Assign.
3807 2010-10-04 Vincent Celier <celier@adacore.com>
3809 * prj-nmsc.adb (Get_Directories): For non extending projects that
3810 declare that they have no sources, do not create a non existing object
3811 or exec directory if builder switch -p is used.
3813 2010-10-04 Sergey Rybin <rybin@adacore.com>
3815 * gnat_ugn.texi (gnatcheck): Change the description of the report file
3818 2010-10-04 Ed Falis <falis@adacore.com>
3820 * s-taprop-vxworks.adb (Is_Task_Context): Import VxWorks intContext to
3821 determine whether Set_True is called from a task or an ISR.
3822 (Set_True): test for being in a task context before trying to
3823 dereference Defer_Abort or Undefer_Abort.
3825 2010-10-04 Robert Dewar <dewar@adacore.com>
3827 * sem_res.adb, sinput-l.adb: Minor reformatting.
3829 2010-10-04 Hristian Kirtchev <kirtchev@adacore.com>
3831 * exp_ch5.adb (Expand_N_Assignment_Statement): Do not generate a tag
3832 check when the target object is an interface since the expression of
3833 the right hand side must only cover the interface.
3835 2010-10-04 Vincent Celier <celier@adacore.com>
3837 * frontend.adb: Set Lib.Parsing_Main_Extended_Source to True before
3838 loading the main source, so that if it is preprocessed and -gnateG is
3839 used, the preprocessed file is written.
3840 * lib.ads (Analysing_Subunit_Of_Main): New global variable to indicate
3841 if a subunit is from the main unit when it is loaded.
3842 * sem_ch10.adb (Analyze_Proper_Body): Set Lib.Analysing_Subunit_Of_Main
3843 to True before loading a subunit.
3844 * sem_ch12.adb (Copy_Generic_Node): Set Lib.Analysing_Subunit_Of_Main
3845 to True when the main is a generic unit before loading one of its
3847 * sinput-l.adb (Load_File): If -gnateG is used, write the preprocessed
3848 file only for the main unit (spec, body and subunits).
3850 2010-10-04 Vincent Celier <celier@adacore.com>
3852 * sinput-l.adb (Load_File): Do not fail when switch -gnateG is
3853 specified and the processed file cannot be written. Just issue a
3854 warning and continue.
3856 2010-10-04 Thomas Quinot <quinot@adacore.com>
3858 * sem_res.adb: Minor reformatting.
3860 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3862 * sem_ch8.adb (Analyze_Subprogram_Renaming): If the renamed operation
3863 is an overridden inherited operation, the desired operation is the
3864 overriding one, which is the alias of the visible one.
3866 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3868 * sem_ch6.adb (Find_Corresponding_Spec): Check that the wrapper body is
3869 present before deleting from the tree, when an inherited function with
3870 a controlling result that returns a null extension is overridden by a
3871 later declaration or body.
3873 2010-10-04 Gary Dismukes <dismukes@adacore.com>
3875 * checks.adb: Update comment.
3877 2010-09-30 Joseph Myers <joseph@codesourcery.com>
3879 * gcc-interface/misc.c (optimize, optimize_size): Undefine as macros
3880 and define as variables.
3881 (gnat_post_options): Set optimize and optimize_size variables.
3883 2010-09-29 Joel Sherrill <joel.sherrill@oarcorp.com>
3885 * g-socket.adb: Move pragma to disable warnings in case multiple errnos
3886 are not defined by target.
3888 2010-09-29 Eric Botcazou <ebotcazou@adacore.com>
3890 * gcc-interface/utils.c (handle_leaf_attribute): Fix long line.
3892 2010-09-28 Richard Henderson <rth@redhat.com>
3894 * gcc-interface/misc.c (gnat_eh_personality): Use
3895 targetm.except_unwind_info.
3897 2010-09-28 Jan Hubicka <jh@suse.cz>
3899 * gcc-interface/utils.c (handle_leaf_attribute): New function.
3900 (gnat_internal_attribute_tables): Add leaf.
3902 2010-09-22 Joseph Myers <joseph@codesourcery.com>
3904 * gcc-interface/lang.opt (-all-warnings, -include-barrier,
3905 -include-directory, -include-directory=, -no-standard-includes,
3906 -no-standard-libraries): New.
3908 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
3910 * gcc-interface/decl.c (gnat_to_gnu_entity): Replace calls to
3911 build_array_type with calls to build_nonshared_array_type.
3912 (substitute_in_type): Likewise.
3913 * gcc-interface/misc.c (LANG_HOOKS_HASH_TYPES): Delete.
3914 (LANG_HOOKS_TYPE_HASH_EQ): Define.
3915 (gnat_post_options): Add 'static' keyword.
3916 (gnat_type_hash_eq): New static function.
3917 * gcc-interface/utils.c (fntype_same_flags_p): New function.
3918 (create_subprog_type): Call it.
3919 (create_index_type): Call build_nonshared_range_type and tidy up.
3920 (create_range_type): Likewise.
3921 * gcc-interface/gigi.h (fntype_same_flags_p): Declare.
3923 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3925 * gcc-interface/trans.c (gnat_pushdecl): Do not do anything special
3927 (end_subprog_body): If the body is a BIND_EXPR, make its associated
3928 block the top-level one.
3929 (build_function_stub): Build a statement group for the whole function.
3930 * gcc-interface/utils.c (Subprogram_Body_to_gnu): If copy-in/copy-out
3931 is used, create the enclosing block early and process first the OUT
3934 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3936 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>: Do
3937 not generate debug info for individual enumerators.
3939 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3941 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Use record
3942 type instead of enumeral type as the dummy type built for the template
3943 type of fat pointers.
3945 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3947 * gcc-interface/gigi.h (get_elaboration_procedure): Declare.
3948 (gnat_zaplevel): Likewise.
3949 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force global
3950 binding level for an external constant.
3951 <E_Constant>: Force the local context and create a fake scope before
3952 translating the defining expression of an external constant.
3953 <object>: Treat external constants at the global level explicitly for
3954 renaming declarations.
3955 (elaborate_expression_1): Force the variable to be static if the
3956 expression is global.
3957 * gcc-interface/trans.c (get_elaboration_procedure): New function.
3958 (call_to_gnu): Use it.
3959 (gnat_to_gnu): Likewise.
3960 <N_Object_Declaration>: Do not test Is_Public to force the creation of
3961 an initialization variable.
3962 (add_decl_expr): Discard the statement if the declaration is external.
3963 * gcc-interface/utils.c (gnat_pushdecl): Do not put the declaration in
3964 the current block if it is external.
3965 (create_var_decl_1): Do not test Is_Public to set TREE_STATIC.
3966 (gnat_zaplevel): New global function.
3968 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3970 * gcc-interface/decl.c (gnat_to_gnu_entity): Explicitly test _LEVEL
3971 variables against zero in all cases.
3972 (rest_of_type_decl_compilation): Likewise.
3973 * gcc-interface/trans.c (gigi): Pass properly typed constants to
3975 (call_to_gnu): Fix formatting.
3976 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
3977 (Exception_Handler_to_gnu_zcx): Likewise.
3978 (gnat_to_gnu) <N_Object_Declaration>: Short-circuit handling of
3980 expressions in presence of a freeze node.
3982 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3984 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Look into
3985 expressions for external constants that are aggregates.
3986 * gcc-interface/utils2.c (build_simple_component_ref): If the field
3987 is an inherited component in an extension, look through the extension.
3989 2010-09-10 Vincent Celier <celier@adacore.com>
3991 * projects.texi: Add documentation for package extensions
3992 Add some documentation for attributes Leading_Library_Options and
3993 Linker'Leading_Switches.
3995 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3997 * exp_util.adb (Expand_Subtype_From_Expression): When expansion is
3998 disabled, compute subtype for all string types.
4000 2010-09-10 Robert Dewar <dewar@adacore.com>
4002 * gnat_ugn.texi: Add documentation for -gnatw.s/S
4003 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
4004 Component_Size): Implement warning on overriden size clause.
4005 (Analyze_Record_Representation_Clause): Implement warning on overriden
4007 * sem_warn.ads, sem_warn.adb (Warn_On_Overridden_Size): New flag
4009 * ug_words: Add entries for -gnatw.s/S.
4010 * vms_data.ads, usage.adb: Add line for -gnatw.s/-gnatw.S.
4011 * gcc-interface/Make-lang.in: Update dependencies.
4013 2010-09-10 Vincent Celier <celier@adacore.com>
4015 * prj-dect.adb (Parse_Package_Declaration): Allow a package to extend
4016 a package with the same name from an imported or extended project.
4017 * prj-proc.adb (Process_Declarative_Items): Process package extensions
4019 2010-09-10 Bob Duff <duff@adacore.com>
4021 * exp_ch6.adb (Expand_Call): Do not perform a null_exclusion check on
4024 2010-09-10 Robert Dewar <dewar@adacore.com>
4026 * sem.adb: Minor reformatting.
4028 2010-09-10 Bob Duff <duff@adacore.com>
4030 * s-os_lib.ads, g-expect.ads: Add comments.
4032 2010-09-10 Robert Dewar <dewar@adacore.com>
4034 * exp_ch5.adb: Minor reformatting.
4036 2010-09-10 Thomas Quinot <quinot@adacore.com>
4038 * scos.ads: Add comments.
4040 2010-09-10 Vincent Celier <celier@adacore.com>
4042 * gnatcmd.adb (Get_Closure): Remove useless invocation of Close.
4044 2010-09-10 Hristian Kirtchev <kirtchev@adacore.com>
4046 * exp_ch7.adb, exp_ch6.adb (Expand_Call): Establish a transient scope
4047 for a controlled build-in-place function call which appears in an
4048 anonymous context. The transient scope ensures that the intermediate
4049 function result is cleaned up after the master is left.
4050 (Make_Build_In_Place_Call_In_Anonymous_Context): Remove the creation
4051 of the transient scope. This is now done in Exand_Call which covers
4052 additional cases other than secondary stack release.
4054 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4056 * sem.adb (Do_Unit_And_Dependents): Add guard.
4058 2010-09-10 Robert Dewar <dewar@adacore.com>
4060 * exp_ch5.adb: Update comments.
4061 * exp_dist.adb: Minor reformatting.
4063 2010-09-10 Robert Dewar <dewar@adacore.com>
4065 * sem_ch13.adb (Check_Record_Representation_Clause): Implement record
4067 * sem_warn.ads, sem_warn.adb (Warn_On_Record_Holes): New warning flag.
4068 * usage.adb: Add lines for -gnatw.h/H
4069 * gnat_ugn.texi: Add documentation for J519-010
4070 Warn on record holes/gaps
4071 * ug_words: Add entries for -gnatw.h/-gnatw.H
4072 * vms_data.ads: Add entries for [NO]AVOIDGAPS
4074 2010-09-10 Gary Dismukes <dismukes@adacore.com>
4076 * sem_ch6.adb: Update comment.
4078 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4080 * sem_ch3.adb (Build_Derived_Private_Type): Mark generated declaration
4081 of full view analyzed after analyzing the corresponding record
4082 declaration, to prevent spurious name conflicts with original
4085 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
4087 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): In the VM case,
4088 just issue a warning, but continue with the normal processing.
4090 2010-09-10 Robert Dewar <dewar@adacore.com>
4092 * exp_attr.adb, prj-nmsc.adb, sem_ch4.adb, sem_res.adb: Minor
4095 2010-09-10 Thomas Quinot <quinot@adacore.com>
4097 * exp_dist.adb (Build_From_Any_Call, Build_To_Any_Call,
4098 Build_TypeCode_Call): For a subtype inserted for the expansion of a
4099 generic actual type, go to the underlying type of the original actual
4102 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4104 * exp_ch5.adb (Expand_Assign_Array_Loop): In CodePeer mode, place a
4105 guard around the increment statement, to prevent an off-by-one-value
4106 on the last iteration.
4108 2010-09-10 Vincent Celier <celier@adacore.com>
4110 * sem_aggr.adb, exp_prag.adb, sem_ch3.adb, exp_attr.adb,
4111 sem_res.adb, sem_attr.adb, sem_elab.adb, sem_ch4.adb, exp_disp.adb,
4112 exp_aggr.adb, exp_dist.adb: Change all mentions of "at run-time" to
4113 "at run time" in comments and error/warning messages.
4115 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4117 * exp_cg.adb: Handle properly bodies without specs.
4119 2010-09-10 Emmanuel Briot <briot@adacore.com>
4121 * prj-nmsc.adb (Find_Source_Dirs): When a source directory is not
4122 present, and the user requested to either ignore this or display a
4123 warning (as opposed to an error), we still need to register the
4126 2010-09-10 Robert Dewar <dewar@adacore.com>
4128 * errout.adb: Remove tests of Parsing_Main_Subunit, since this test is
4129 now done in In_Extended_Main_Source_Unit.
4130 * errout.ads (Compiler_State[_Type]): Moved from Errout to Lib
4131 (Parsing_Main_Subunit): Moved from Errout to Lib and renamed
4132 as Parsing_Main_Extended_Source.
4133 * frontend.adb: Set Parsing_Main_Extended_Source True for parsing main
4135 * lib-load.adb (Load_Unit): Add PMES parameter
4136 Set PMES appropriately in all calls to Load_Unit
4137 * lib-load.ads (Load_Unit): Add PMES parameter
4138 * lib.adb (In_Extended_Main_Source_Unit): When called with
4139 Compiler_State set to Parsing, test new flag
4140 Compiling_Main_Extended_Source.
4141 * lib.ads (Compiler_State[_Type]): Moved from Errout to Lib
4142 (Parsing_Main_Subunit): Moved from Errout to Lib and renamed
4143 as Parsing_Main_Extended_Source
4144 * par-load.adb (Load): Set PMES properly in call to Load_Unit
4146 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4148 * exp_cg.adb: Use proper entity to handle overloads.
4149 * sem_res.adb (Check_Parameterless_Call): An operator node without
4150 actuals cannot be a call, and must be treated as a string.
4152 2010-09-10 Robert Dewar <dewar@adacore.com>
4154 * frontend.adb: Minor reformatting.
4156 2010-09-10 Robert Dewar <dewar@adacore.com>
4158 * par-ch4.adb (P_Conditional_Expression): Use P_Condition for condition
4159 * par-ch5.adb (P_Condition): Move from body to spec
4160 * par.adb (Ch5.P_Condition): Move from body to spec
4162 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4164 * exp_cg.adb (Write_Call_Info): If a type that has been registered in
4165 the call table is private, use its full view to generate information
4168 2010-09-10 Jose Ruiz <ruiz@adacore.com>
4170 * exp_cg.adb (Is_Predefined_Dispatching_Operation): When trying the
4171 pattern matching to detect predefined primitive operations take into
4172 account that there can be an extra suffix related to body-nested
4175 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4177 * s-pooglo.ads: Add overriding indicators.
4179 2010-09-10 Vincent Celier <celier@adacore.com>
4181 * vms_data.ads: Add new GNAT BIND qualifiers /32_MALLOC (for -H32) and
4182 /64_MALLOC (for -H64).
4184 2010-09-10 Robert Dewar <dewar@adacore.com>
4186 * errout.adb (Error_Msg_Internal): Test Parsing_Main_Subunit flag
4187 (Error_Msg_NW): Test Parsing_Main_Subunit flag
4188 * errout.ads (Parsing_Main_Subunit): New flag
4189 * lib-load.adb (Load_Unit): Set Parsing_Main_Subunit flag
4190 * par-ch6.adb: Minor style fix (remove redandant parentheses)
4191 * par-ch9.adb: Minor style fix (remove redundant parens)
4192 * par-load.adb: (Load): Deal with setting Parsing_Main_Subunit
4194 2010-09-10 Vincent Celier <celier@adacore.com>
4196 * make.adb (Create_Binder_Mapping_File): Remove procedure. Replaced by
4197 function of the same name in Makeutl.
4198 (Gnatmake): Call function Create_Binder_Mapping_File in Makeutl, instead
4199 of removed procedure when creating a binder mapping file.
4200 * makeutl.adb (Create_Binder_Mapping_File): New function. Was a
4202 * makeutl.ads (Create_Binder_Mapping_File): New function
4204 2010-09-10 Jose Ruiz <ruiz@adacore.com>
4206 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Add the "__" scope
4207 separator when trying the pattern matching to detect predefined
4208 primitive operations.
4210 2010-09-10 Robert Dewar <dewar@adacore.com>
4212 * bindgen.adb, atree.adb: Minor reformatting.
4214 2010-09-10 Ben Brosgol <brosgol@adacore.com>
4216 * ug_words, gnat_ugn.texi: Revised "Transitioning to 64-Bit GNAT for
4219 2010-09-10 Doug Rupp <rupp@adacore.com>
4221 * bindgen.adb: Minor comment fix for -H switch.
4223 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4225 * exp_cg.adb (Register_CG_Node): Determine enclosing subprogram or
4226 library unit now, by traversing tree before context is expanded.
4227 (Write_Call_Info): Use enclosing unit name directly.
4228 * exp_ch9.adb (Expand_N_Accept_Statement): Attach generated block to
4229 tree earlier, to ensure that subsequent declarations are analyzed in a
4230 connected structure.
4231 * exp_intr.adb (Expand_Unc_Deallocation): Ditto for generated statement
4234 2010-09-10 Robert Dewar <dewar@adacore.com>
4236 * symbols-processing-vms-alpha.adb: Minor reformatting.
4238 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
4240 * bindgen.adb (Gen_Adainit_Ada): In .NET, don't call
4241 __gnat_install_handler in case the binder is called with -n.
4243 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4245 * exp_ch6.adb (Make_Build_In_Place_In_Object_Declaration): Use proper
4246 sloc for renaming declaration and set Comes_From_Source properly to
4247 ensure that references are properly generated for an object declaration
4248 that is built in place.
4250 2010-09-10 Tristan Gingold <gingold@adacore.com>
4252 * symbols-processing-vms-alpha.adb: Allow gnatsym to work as a cross
4254 * gcc-interface/Make-lang.in: Install gnatsym when cross compiling.
4255 * gcc-interface/Makefile.in: gnat.hlp is now generated by
4258 2010-09-10 Bob Duff <duff@adacore.com>
4260 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): For things like ""X(J)
4261 := ...;", remove side effects from the right-hand side, because they
4262 might affect the value of the left-hand side, but the left-hand side is
4263 first READ (so we can do shifting and masking) and then written back,
4264 which would cause the side effects to be incorrectly overwritten.
4266 2010-09-10 Robert Dewar <dewar@adacore.com>
4268 * sem_ch4.adb: Minor reformatting.
4269 * exp_ch6.adb: Add comment on testing limited on full type
4270 * gnat_rm.texi: Add documentation on Pure_Function.
4272 2010-09-10 Vincent Celier <celier@adacore.com>
4274 * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
4275 as a source of another project and of another language.
4277 2010-09-10 Robert Dewar <dewar@adacore.com>
4279 * exp_ch3.adb (Expand_N_Object_Declaration): Defend against previous
4281 * freeze.adb (Check_Unsigned_Type): Ditto.
4282 * sem_aggr.adb (Resolve_Aggr_Expr): Ditto.
4283 * sem_ch3.adb (Convert_Scalar_Bounds): Ditto.
4284 (Set_Scalar_Range_For_Subtype): Ditto.
4285 * sem_eval.adb (Subtypes_Statically_Match): Ditto.
4287 2010-09-10 Robert Dewar <dewar@adacore.com>
4289 * repinfo.adb (List_Type_Info): List Small and Range for fixed-point
4291 * sprint.adb (Write_Ureal_With_Col_Check_Sloc): Use square brackets
4292 rather than parens for fixed constants.
4293 * sprint.ads: Use square brackets rather than parens for fixed constants
4294 * urealp.adb (UR_Write): Use square brackets rather than parens
4295 (UR_Write): Add Brackets argument
4296 (UR_Write): Add many more special cases to output literals
4297 * urealp.ads (UR_Write): Use square brackets rather than parens
4298 (UR_Write): Add Brackets argument
4300 2010-09-10 Robert Dewar <dewar@adacore.com>
4302 * sem_ch4.adb: Minor reformatting.
4304 2010-09-10 Richard Guenther <rguenther@suse.de>
4306 * gcc-interface/utils.c (create_index_type): Use build_range_type.
4308 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4310 * vms_cmds.ads: New.
4312 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
4314 * exp_dbug.ads: Mention enhanced encoding for array types.
4316 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
4318 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Size clause are
4319 unsupported in VM targets. Display a warning in this case.
4321 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4323 * sprint.adb (Sprint_Node_Actual, case N_Derived_Type_Definition): Do
4324 not reset Sloc when printing keyword "new".
4326 2010-09-10 Vincent Celier <celier@adacore.com>
4328 * gnatcmd.adb (GNATCmd): Put the command line in environment variable
4329 GNAT_DRIVER_COMMAND_LINE.
4331 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4333 * sem.adb (Do_Unit_And_Dependents): if Withed_Body is set on a context
4334 clause, process the body at once.
4336 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4338 * sem_res.adb (Resolve_Type_Conversion): Do not warn on a redundant
4339 conversion is the expression is a qualified expression used to
4340 disambiguate a function call.
4342 2010-09-10 Vincent Celier <celier@adacore.com>
4344 * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
4345 as a source of another project and of another language.
4347 2010-09-10 Robert Dewar <dewar@adacore.com>
4349 * prj-util.adb: Minor reformatting.
4351 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
4353 * exp_disp.adb: Minor reformatting.
4355 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4357 * sem_prag.adb (Analyze_Pragma): Ignore Inline_Always pragma in
4360 2010-09-10 Thomas Quinot <quinot@adacore.com>
4362 * sem_res.adb: Minor reformatting.
4363 * exp_ch9.adb, rtsfind.ads, exp_ch4.adb, exp_ch3.adb: Do not hardcode
4364 magic constants for task master levels (instead, reference
4365 named numbers from System.Tasking).
4367 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
4369 * gnatvsn.ads (Ver_Prefix): New constant string.
4370 * bindgen.adb (Gen_Output_File_Ada): Use it in lieu of hardcoded value.
4371 (Gen_Output_File_C): Likewise.
4372 * g-comver.adb (Ver_Prefix): Add cross-reference to Gnatvsn.Ver_Prefix
4375 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4377 * sem.adb (Walk_Library_Items): Do not traverse children of the main
4378 unit, to prevent spurious circularities in the walk order.
4379 (Depends_On_Main): Use elsewhere to prevent circularities when the body
4380 of an ancestor of the main unit depends on a child of the main unit.
4382 2010-09-10 Robert Dewar <dewar@adacore.com>
4384 * gnatlink.adb, prj-ext.adb, prj-util.adb, s-tporft.adb,
4385 sem_ch3.adb: Minor reformatting.
4387 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4389 * sem_ch3.adb (Derive_Subprograms): An interface primitive operation
4390 that is a renaming must be derived like any other primitive operation,
4391 the renamed operation is not relevant to the derivation.
4393 2010-09-10 Robert Dewar <dewar@adacore.com>
4395 * sem_aux.ads: Add comment for Is_Inherently_Limited_Type.
4396 * checks.adb: Minor reformatting.
4398 2010-09-10 Robert Dewar <dewar@adacore.com>
4400 * gnat_ugn.texi: Add section on intent of style checking options.
4402 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4404 * xref_lib.adb (Get_Full_Type): Fix handling of 'a' char.
4406 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4408 * sem_ch3.adb: Improve error message on derivation from class-wide type
4410 2010-09-10 Steve Baird <baird@adacore.com>
4412 * gnat1drv.adb (Adjust_Global_Switches): Enable Expression_With_Actions
4413 generation when Generate_SCIL is True.
4415 2010-09-10 Geert Bosch <bosch@adacore.com>
4417 * gnatlink.adb (Check_ Existing_Executable): New procedure for checking
4418 validity of executable name and removing any existing executable
4419 (Gnatlink): Call Check_Existing_Executable.
4421 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4423 * s-tporft.adb, s-taskin.ads (Register_Foreign_Thread): Move
4424 initialization of Task_Alternate_Stack here, cleaner since in case of
4425 ranvescar, Restricted_Ada_Task_Control_Block is not initialized
4428 2010-09-10 Thomas Quinot <quinot@adacore.com>
4430 * s-fileio.adb, a-dirval.adb: Minor reformatting.
4432 2010-09-10 Emmanuel Briot <briot@adacore.com>
4434 * prj-util.adb (Executable_Of): Fix CE when the project does not
4435 contain a Builder package.
4437 2010-09-10 Vincent Celier <celier@adacore.com>
4439 * prj-ext.adb (Initialize_Project_Path): Add <prefix>/lib/gpr/<target>
4440 to the project path, if Prefix and Target_Name are defined.
4441 * prj-tree.ads (Project_Node_Tree_Data): New component Target_Name
4443 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4445 * checks.adb (Ensure_Valid): If the expression is a boolean expression
4446 or short-circuit operation, do no emit a validity check: only the
4447 elementary operands of the expression need checking.
4449 2010-09-10 Ben Brosgol <brosgol@adacore.com>
4451 * gnat_rm.texi: Document Short_Descriptors.
4453 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4455 * s-taprop-linux.adb, s-taskin.ads (Task_Alternate_Stack): Default
4456 initialize to Null_Address.
4457 (Enter_Task): Do not set up an alternate stack for foreign threads.
4459 2010-09-10 Robert Dewar <dewar@adacore.com>
4461 * opt.adb (Short_Descriptors): New flag
4462 (Short_Descriptors_Config): New flag
4463 * opt.ads (Short_Descriptors): New flag
4464 (Short_Descriptors_Config): New flag
4465 * par-prag.adb: Add dummy entry for Short_Descriptors pragma
4466 * sem_prag.adb (Set_Mechanism_Value): Deal with Short_Descriptors.
4467 (Analyze_Pragma): Implement Short_Descriptors pragma
4468 * snames.ads-tmpl: Add entry for Short_Descriptors pragma
4470 2010-09-10 Emmanuel Briot <briot@adacore.com>
4472 * prj-util.adb, prj-util.ads (Executable_Of): Take into account the
4473 project's Executable_Suffix.
4475 2010-09-10 Robert Dewar <dewar@adacore.com>
4477 * g-pehage.ads: Minor reformatting
4479 * gnat_ugn.texi: Clarifying comment on -gnatyc
4480 * exp_ch6.adb (Expand_N_Subprogram_Body): Reset Is_Pure if limited
4483 2010-09-10 Tristan Gingold <gingold@adacore.com>
4485 * Make-generated.in (gnat.hlp): New rule.
4487 2010-09-10 Emmanuel Briot <briot@adacore.com>
4489 * prj-util.adb, prj-util.ads (Executable_Of): New parameter
4492 2010-09-10 Robert Dewar <dewar@adacore.com>
4494 * einfo.adb: Minor code cleanup: Add assertion to
4495 Set_Corresponding_Protected_Entry.
4497 2010-09-10 Bob Duff <duff@adacore.com>
4499 * g-pehage.ads, g-pehage.adb (Produce): Add a new flag to allow sending
4500 the output to standard output.
4502 2010-09-09 Vincent Celier <celier@adacore.com>
4504 * gnat_ugn.texi: Add documentation for new gnatmake switch
4506 * make.adb (Map_File): New global variable to store the value of switch
4508 (Gnatmake): Add switch -M to gnatlink if switch --create-map-file has
4510 (Scan_Make_Arg): Recognize switch --create-map-file
4511 * makeutl.ads (Create_Map_File_Switch): New constant string for new
4512 gnatmake and gprbuild switch --create-map-file.
4514 2010-09-09 Robert Dewar <dewar@adacore.com>
4516 * sinput-p.ads: Minor comment update.
4518 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4520 * s-tpobop.adb, s-taenca.adb (Wait_For_Completion_With_Timeout): Reset
4521 Entry_Call.State if needed so that the call is marked as cancelled by
4522 Check_Pending_Actions_For_Entry_Call.
4523 (Timed_Protected_Entry_Call): Adjust calls to Defer/Under_Abort, since
4524 this procedure may be called from a controlled operation
4525 (Initialize/Finalize).
4527 2010-09-09 Vadim Godunko <godunko@adacore.com>
4529 * impunit.adb: Correct spelling of package's name in the comment.
4531 2010-09-09 Robert Dewar <dewar@adacore.com>
4533 * gnatcmd.adb, gnatlink.adb, sem_ch12.adb, sem_eval.adb, sinput-p.adb:
4536 2010-09-09 Robert Dewar <dewar@adacore.com>
4538 * impunit.adb: Add entry for a-izteio.
4539 * checks.adb: Add comment.
4540 * debug.adb, exp_disp.adb: Minor reformatting.
4541 * exp_dbug.ads: Minor reformatting throughout (pack block comments).
4543 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4545 * sem_eval.adb (Is_Same_Value): Two occurrences of the same
4546 discriminant cannot be assumed to be the same value because they may
4547 refer to bounds of a component of two different instances of a
4550 2010-09-09 Gary Dismukes <dismukes@adacore.com>
4552 * checks.adb (Apply_Arithmetic_Overflow_Check): When converting the
4553 operands of an operator to the type of an enclosing conversion, rewrite
4554 the operator so the conversion can't be flagged as redundant.
4555 Remove useless assignments to Typ and Rtyp.
4557 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
4559 * gnat_ugn.texi: Fix another long line.
4561 2010-09-09 Bob Duff <duff@adacore.com>
4563 * sem_warn.adb (Output_Reference_Error): Don't warn for renames read
4566 2010-09-09 Matthew Heaney <heaney@adacore.com>
4568 * a-convec.adb, a-coinve.adb (Clear, Delete, Delete_Last, Finalize,
4569 Merge, Insert, Insert_Space, Move, Reserve_Capacity, Generic_Sorting,
4570 Replace_Element, Reverse_Elements, Swap): Change exception message to
4571 correctly indicate kind of tampering (cursor or element).
4572 * a-cdlili.adb, a-cidlli.adb (Clear, Delete, Delete_First, Delete_Last,
4573 Merge, Generic_Sorting, Insert, Move, Reverse_Elements, Splice,
4574 Swap_Links, Replace_Element, Swap): Ditto.
4575 * a-coorse.adb, a-ciorse.adb (Include, Replace, Replace_Element): Ditto
4576 * a-coorma.adb, a-ciorma.adb (Include, Replace, Replace_Element): Ditto
4577 * a-coormu.adb, a-ciormu.adb (Replace_Element): Ditto
4578 * a-chtgke.adb (Delete_Key_Sans_Free, Generic_Conditional_Insert,
4579 Generic_Replace_Element): Ditto
4580 * a-chtgop.adb (Clear, Move, Reserve_Capacity): Ditto
4581 * a-cohama.adb, a-cihama.adb (Delete, Include, Replace,
4582 Replace_Element): Ditto.
4583 * a-cohase.adb, a-cihase.adb (Delete, Difference, Intersection,
4584 Symmetric_Difference, Union, Include, Replace): Ditto
4586 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4588 * sprint.adb (Write_Id): If the parent node is an expanded name, check
4589 that its entity_or_associated_node is an entity before writing it out.
4590 * exp_disp.adb (Make_Tags); if a type is declared in C++ and has no
4591 constructors, there is no need for a dispatch table pointer because the
4592 table is fully inherited from the C++ code.
4594 2010-09-09 Thomas Quinot <quinot@adacore.com>
4596 * projects.texi: Fix wrong identifiers on package end lines in project
4598 * exp_ch6.adb: Minor reformatting.
4600 2010-09-09 Tristan Gingold <gingold@adacore.com>
4602 * gnatcmd.adb, vms_conv.ads: Extract Command_Type.
4604 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
4606 * gnat_ugn.texi: Fix description of -O3 optimization level.
4608 2010-09-09 Yannick Moy <moy@adacore.com>
4610 * a-cihama.adb, a-cohama.adb: Fix comments.
4612 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4614 * i-cexten.ads: Add comments.
4615 (Signed_128): New type, used by some C bindings.
4616 * debug.adb: Update comment.
4618 2010-09-09 Sergey Rybin <rybin@adacore.com>
4620 * gnat_ugn.texi: For ASIS tools (gnatpp, gnatcheck, gnatelim,
4621 gnatmetric and gnatstub) add a note that '-gnat05' should be used if
4622 the tool should process Ada 2005 sources.
4624 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4626 * sem_ch12.adb (Remove_Parent): If the scope containing the child
4627 instance is a block, examine the enclosing scope to determine if it is
4630 2010-09-09 Doug Rupp <rupp@adacore.com>
4632 * sem_prag.adb (pragma Ident): Pass --identification= vice
4634 * gnatlink.adb (Linker_Options): Look for --identification= vice
4637 2010-09-09 Gary Dismukes <dismukes@adacore.com>
4639 * exp_attr.adb (Expand_N_Attribute_Reference, case Attribute_Old): When
4640 inserting and analyzing the object declaration for the temporary object
4641 created to hold a 'Old value, push the scope for the subprogram where
4642 the object is inserted, so that its Scope (and that of related objects)
4643 will be set properly.
4645 2010-09-09 Vincent Celier <celier@adacore.com>
4647 * prj.adb (Get_Object_Directory): Return object directory display name
4648 * adaint.c (__gnat_get_file_names_case_sensitive): When environment
4649 variable GNAT_FILE_NAME_CASE_SENSITIVE has a value of "0" or "1",
4650 return this value, otherwise return the default for the platform.
4652 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4654 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
4655 dependencies. Remove handling of gnatlbr.
4656 Do not remove s-stratt-xdr for the run-time when installing.
4658 2010-09-09 Robert Dewar <dewar@adacore.com>
4660 * sem_attr.adb: Minor reformatting.
4662 2010-09-09 Thomas Quinot <quinot@adacore.com>
4664 * socket.c (__gnat_socket_ioctl): On Darwin, the req parameter is an
4665 unsigned long, not an int.
4667 2010-09-09 Vincent Celier <celier@adacore.com>
4669 * make.adb, mlib-prj.adb, prj.adb, prj-nmsc.adb, mlib-tgt.adb,
4670 prj-conf.adb, prj-env.adb: Use Display_Name instead of Name whenever
4671 we are not checking for equality of path or file names.
4673 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4675 * exp_util.adb (Remove_Side_Effects): If the expression is a packed
4676 array reference, reset the Analyzed flag so that it is properly
4677 expanded when the resulting object declaration is analyzed.
4679 2010-09-09 Vincent Celier <celier@adacore.com>
4681 * sinput-p.adb (Source_File_Is_Subunit): Return False if X is
4684 2010-09-09 Ramon Fernandez <fernandez@adacore.com>
4686 * sysdep.c: The wrSbc8548 BSP in MILS doesn't know anything about the
4687 VX_SPE_TASK option, so disable it.
4689 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4691 * sem.adb (Walk_Library_Items): Traverse context of subunits of the
4693 (Is_Subunit_Of_Main): Handle null nodes properly.
4695 2010-09-09 Robert Dewar <dewar@adacore.com>
4697 * par-ch2.adb: Update comments.
4699 2010-09-09 Ben Brosgol <brosgol@adacore.com>
4701 * gnat_rm.texi: Minor wordsmithing of section on pragma Ordered.
4703 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4705 * par-ch2.adb (Scan_Pragma_Argument_Association): In CodePeer mode,
4706 do not generate an error for compatibility with legacy code.
4707 ignored when generating SCIL.
4708 * sem_attr.adb (Resolve_Attribute): Ignore AI-229 in CodePeer mode.
4710 2010-09-09 Thomas Quinot <quinot@adacore.com>
4712 * s-strxdr.adb, gnat_rm.texi, s-stratt-xdr.adb, s-stratt.ads: Rename
4713 s-strxdr.adb to s-stratt-xdr.adb
4715 2010-09-09 Robert Dewar <dewar@adacore.com>
4717 * ali-util.adb (Obsolescent_Check): Removed.
4718 * gprep.adb (Obsolescent_Check): Removed.
4719 Remove Obsolescent_Check parameter in Scng instantiation
4720 * prj-err.adb (Obsolescent_Check): Removed.
4721 * prj-err.ads (Obsolescent_Check): Removed.
4722 Remove Obsolescent_Check parameter in Scng instantiation
4723 * scans.ads (Based_Literal_Uses_Colon): New flag
4724 * scn.adb (Obsolscent_Check_Flag): Removed
4725 (Obsolscent_Check): Removed
4726 (Set_Obsolescent_Check): Removed
4727 (Post_Scan): Add handling for obsolescent features
4728 * scn.ads (Obsolscent_Check): Removed
4729 (Set_Obsolescent_Check): Removed
4730 (Post_Scan): Can no longer be inlined
4731 Remove Obsolescent_Check from instantiation of Scng
4732 * scng.adb (Nlit): Set Based_Literal_Uses_Colon
4733 (Nlit): Remove handling of obsolescent check
4734 (Scan, case '%'): Remove handling of obsolescent check
4735 (Scan, case '|'): Call Post_Scan
4736 (Scan, case '!'): Remove handling of obsolescent check, call Post_Scan
4737 * scng.ads Remove Obsolescent_Check argument from Scng generic
4738 (Post_Scan): Now called for Tok_Vertical_Bar
4739 * sinput-l.adb: Remove calls to Set_Obsolescent_Check
4741 2010-09-09 Doug Rupp <rupp@adacore.com>
4743 * gnatlbr.adb: Removed.
4744 * gnat_rm.texi, ug_words, gnat_ugn.texi: Remove mention of gnatlbr.
4746 2010-09-09 Robert Dewar <dewar@adacore.com>
4748 * sem_res.adb (Resolve_Type_Conversion): Catch more cases of redundant
4751 2010-09-09 Vincent Celier <celier@adacore.com>
4753 * gnatlbr.adb: Remove redundant conversions.
4755 2010-09-09 Vincent Celier <celier@adacore.com>
4757 * prj-proc.adb: Minor comment spelling error fix.
4758 * osint.ads (Env_Vars_Case_Sensitive): Use function
4759 Get_Env_Vars_Case_Sensitive, not Get_File_Names_Case_Sensitive to
4762 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4764 * sem_res.adb (Resolve_Equality_Op): Implement Ada2012 rule for
4765 resolution of conditional expressions whose dependent expressions are
4766 anonymous access types.
4768 2010-09-09 Robert Dewar <dewar@adacore.com>
4770 * a-ststio.adb: Minor code reorganization.
4771 * s-direio.adb, prj.adb, prj-nmsc.adb, sem_type.adb: Remove redundant
4773 * types.ads: Minor reformatting.
4774 * binde.adb, vms_conv.adb, gnatls.adb, s-strxdr.adb, uintp.adb: Remove
4775 redundant conversions.
4776 * output.adb: Minor reformatting.
4777 * sem_ch8.adb (Find_Type): Test for redundant base applies to user
4779 * opt.ads: Add pragma Ordered for Verbosity_Level.
4780 * prj.ads: Add pragma Ordered for type Verbosity.
4782 2010-09-09 Vincent Celier <celier@adacore.com>
4784 * osint.adb (Canonical_Case_File_Name): Use procedure To_Lower in
4786 (Canonical_Case_Env_Var_Name): Ditto
4788 2010-09-09 Bob Duff <duff@adacore.com>
4790 * g-pehage.adb (Allocate): Initialize the allocated elements of IT.
4792 2010-09-09 Robert Dewar <dewar@adacore.com>
4794 * cstand.adb: Mark Boolean and Character types as Ordered
4795 * einfo.adb (Has_Pragma_Ordered): New flag
4796 * einfo.ads (Has_Pragma_Ordered): New flag
4797 * g-calend.ads: Mark Day_Name as Ordered
4798 * opt.ads: Mark Ada_Version_Type as Ordered
4799 (Warn_On_Unordered_Enumeration_Type): New flag
4800 * par-prag.adb: Add procdessing for pragma Ordered
4801 * s-ficobl.ads (Read_File_Mode): New subtype
4802 * s-fileio.adb: Use Read_File_Mode instead of explicit ranges
4803 * s-taskin.ads: Mark Entry_Call_State as ordered
4804 * sem_ch3.adb (Build_Derived_Enumeration_Type): Inherit
4806 * sem_ch6.ads: Mark Conformance_Type as Ordered
4807 * sem_prag.adb: Implement pragma Ordered
4808 * sem_res.adb (Bad_Unordered_Enumeration_Reference): New function
4809 (Resolve_Comparison_Op): Diagnose unordered comparison
4810 (Resolve_Range): Diagnose unordered range
4811 * sem_warn.adb (Warn_On_Unordered_Enumeration_Type): New flag (from
4813 * snames.ads-tmpl: Add entry for pragma Ordered
4814 * style.ads (Check_Enumeration_Subrange): Removed
4815 * styleg.adb (Check_Enumeration_Subrange): Removed
4816 * styleg.ads (Check_Enumeration_Subrange): Removed
4817 * stylesw.adb: Remove handling of -gnatyE switch
4818 * stylesw.ads: (Style_Check_Enumeration_Subranges): Removed
4819 * vms_data.ads: Remove -gnatyE entries
4820 Add -gnatw.u entries
4821 * ug_words: Entries for -gnatw.u and -gnatw.U
4822 * gnat_ugn.texi: Document -gnatw.u/-gnatw.U switches
4823 * gnat_rm.texi: Document pragma Ordered.
4824 * s-tasren.adb: Avoid unnecessary comparison on unordered enumeration.
4825 * s-tpobop.adb: Remove comparison on unordered enumeration type.
4827 2010-09-09 Vincent Celier <celier@adacore.com>
4829 * adaint.c: New function __gnat_get_env_vars_case_sensitive, returns 0
4830 for VMS and Windows, and 1 for all other platforms.
4831 * adaint.h: New function __gnat_get_env_vars_case_sensitive
4832 * osint.ads, osint.adb (Canonical_Case_Env_Var_Name): New procedure.
4833 * prj-ext.adb (Add): Call Canonical_Case_Env_Var_Name instead of
4834 Canonical_Case_File_Name, as we are dealing with environment variables,
4837 2010-09-09 Robert Dewar <dewar@adacore.com>
4839 * sem_util.adb: Minor reformatting
4841 2010-09-09 Vincent Celier <celier@adacore.com>
4843 * vms_data.ads: Add documentation for S_Make_Single.
4845 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4847 * sem_util.adb (Same_Object): include formal parameters.
4849 2010-09-09 Vincent Celier <celier@adacore.com>
4851 * make.adb (Queue): New package implementing a new impementation of the
4852 queue, taking into account the new switch --single-compile-per-obj-dir.
4853 * makeutl.ads (Single_Compile_Per_Obj_Dir_Switch): New constant String
4854 for gnatmake and gprbuild new switch --single-compile-per-obj-dir.
4855 * opt.ads (One_Compilation_Per_Obj_Dir): New Boolean flag, defauted to
4857 * switch-m.adb (Scan_Make_Switches): Take into account new gnatmake
4858 switch --single-compile-per-obj-dir.
4859 * vms_data.ads: Add qualifier SINGLE_COMPILE_PER_OBJ_DIR for gnatmake
4860 switch --single-compile-per-obj-dir.
4861 * gnat_ugn.texi: Add documentation for new gnatmake switch
4862 --single-compile-per-obj-dir.
4864 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4866 * einfo.adb, einfo.ads: Clarify use of Corresponding_Protected_Entry.
4868 2010-09-09 Javier Miranda <miranda@adacore.com>
4870 * sem_ch3.adb (Is_Progenitor): Relocated to sem_type.
4871 (Replace_Type): Code cleanup.
4872 * sem_type.ads, sem_type.adb (Is_Progenitor): Relocated from sem_ch3
4874 2010-09-09 Thomas Quinot <quinot@adacore.com>
4876 * exp_ch8.adb: Minor reformatting.
4878 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4880 * exp_ch9.adb, einfo.adb, einfo.ads: New attribute
4881 Corresponding_Protected_Entry.
4883 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4885 * exp_ch3.adb (Build_Untagged_Equality): Do not set alias of implicit
4886 inequality, it is always rewritten as the negation of the corresponding
4888 * exp_ch8.adb (Expand_N_Subprogram_Renaming): If the subprogram renames
4889 the predefined equality of an untagged record, create a body at the
4890 point of the renaming, to capture the current meaning of equality for
4893 2010-09-09 Robert Dewar <dewar@adacore.com>
4895 * sem.adb, sem_warn.adb: Minor reformatting.
4897 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4899 * sem_ch6.adb: Improve error message on untagged equality.
4900 * sem.adb (Semantics): Include subprogram bodies that act as spec.
4902 2010-09-09 Javier Miranda <miranda@adacore.com>
4904 * sem_ch13.adb, exp_ch13.adb: Undo previous change, unneeded.
4906 2010-09-09 Robert Dewar <dewar@adacore.com>
4908 * sem_ch13.adb, sem_ch6.adb, exp_ch3.adb: Minor reformatting.
4910 2010-09-09 Robert Dewar <dewar@adacore.com>
4912 * einfo.adb (Is_Aggregate_Type): New function.
4913 * einfo.ads (Aggregate_Kind): New enumeration subtype
4914 (Is_Aggregate_Type): New function.
4915 * sem_type.adb (Is_Array_Class_Record_Type): Removed, replaced by
4918 2010-09-09 Robert Dewar <dewar@adacore.com>
4920 * exp_ch11.adb, frontend.adb, sem_attr.adb, sem_ch10.adb, sem_ch3.adb,
4921 sem_ch4.adb, sem_ch9.adb, sem_res.adb: Use Restriction_Check_Needed
4923 * restrict.ads, restrict.adb: Ditto.
4924 (Restriction_Check_Needed): New function
4926 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4928 * exp_ch9.ads (Find_Master_Scope): New function, extracted from
4929 Build_Master_Entity, to find the proper scope for the master entity of
4930 a type that may contain tasks, in the presence of transient scopes.
4931 * exp_ch9.adb (Build_Master_Entity) Use new function.
4932 * exp_ch3.adb (Build_Class_Wide_Master): ditto.
4934 2010-09-09 Vincent Celier <celier@adacore.com>
4936 * prj-attr.adb: Add new attributes Leading_Library_Options and
4937 Linker'Leading_Switches.
4938 * snames.ads-tmpl: Add new standard names Leading_Library_Options and
4941 2010-09-09 Javier Miranda <miranda@adacore.com>
4943 * sem_ch3.adb (Derive_Subprogram): The code that checks if a
4944 dispatching primitive covers some interface primitive is incomplete.
4945 Replace such code by the invocation of a new subprogram that provides
4947 * sem_ch6.ads (Is_Interface_Conformant): Add missing documentation.
4948 * sem_ch6.adb (Check_Missing_Return): Minor reformating
4949 (Check_Convention): Complete if-statement conditition when reporting
4950 errors (to avoid assertion failure).
4951 * sem_ch13.adb (Make_Null_Procedure_Specs): This routine was previously
4952 located in exp_ch3. Relocated inside Analyze_Freeze_Entity.
4953 (Analyze_Freeze_Entity): Invoke routine that adds the spec of non
4954 overridden null interface primitives.
4955 * sem_type.adb (Is_Ancestor): If the parent of the partial view of a
4956 private type is an interface then use the parent of its full view to
4957 climb to its ancestor type.
4958 * sem_disp.ads, sem_disp.adb (Covers_Some_Interface): New subprogram.
4959 (Check_Dispatching_Operation): Extend assertion to handle wrappers of
4960 null interface primitives.
4961 (Is_Null_Interface_Primitive): New subprogram.
4962 * exp_ch3.adb (Make_Null_Procedure_Specs): Removed.
4963 (Expand_Freeze_Record_Type): Do not generate specs of null interface
4964 subprograms because they are now generated by Analyze_Freeze_Entity.
4966 2010-09-09 Robert Dewar <dewar@adacore.com>
4968 * a-calfor.adb, sem_ch3.adb: Minor reformatting.
4970 2010-09-09 Robert Dewar <dewar@adacore.com>
4972 * bindgen.adb (Gen_Restrictions_Ada): Avoid explicit enumeration ranges
4973 (Gen_Restrictions_C): Avoid explicit enumeration ranges
4974 (Set_String_Replace): New procedure
4975 * casing.ads (Known_Casing): New subtype declaration
4976 * prj-attr.ads (All_Case_Insensitive_Associative_Array): New subtype
4978 * prj-dect.adb (Parse_Attribute_Declaration): Avoid enumeration range
4979 * prj-nmsc.adb (Check_Naming): Avoid unnecessary enumeration range
4980 * prj-strt.adb (Attribute_Reference): Avoid enumeration range test
4981 * prj.adb (Known_Casing): Moved to Casing spec (avoid enum range)
4982 * sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order): Avoid enumeration
4984 * sem_res.adb (Resolve_Range): Check for enumeration subrange style
4986 * sem_type.adb (Is_Array_Class_Record_Type): New.
4987 * style.ads (Check_Enumeration_Subrange): New procedure
4988 * styleg.adb (Check_Enumeration_Subrange): New procedure
4989 * styleg.ads (Check_Enumeration_Subrange): New procedure
4990 * stylesw.adb Add handling for Style_Check_Enumeration_Subranges
4991 * stylesw.ads (Style_Check_Enumeration_Subranges): New flag
4992 * usage.adb: Add line for -gnatyE
4993 * vms_data.ads: Add entries for [NO]ENUMERATION_RANGES
4994 Add missing entry for NOBOOLEAN_OPERATORS
4995 * gnat_ugn.texi: Add documentation for -gnatyE
4997 2010-09-09 Robert Dewar <dewar@adacore.com>
4999 * namet.adb (Initialize): Is now a dummy procedure
5000 (Reinitialize): New procedure
5001 Call Reinitialize from package initialization
5002 * namet.ads (Initialize): Is now a dummy procedure
5003 (Reinitialize): New procedure
5004 * clean.adb, gnat1drv.adb, gnatbind.adb, gnatcmd.adb, gnatlink.adb,
5005 gnatls.adb, gprep.adb, make.adb, prj-makr.adb: Remove obsolete call to
5008 2010-09-09 Bob Duff <duff@adacore.com>
5010 * sem_elab.adb, s-os_lib.ads: Minor comment fixes.
5012 2010-09-09 Robert Dewar <dewar@adacore.com>
5014 * s-bitops.adb (Raise_Error): Add exception message
5016 2010-09-09 Robert Dewar <dewar@adacore.com>
5018 * par-ch5.adb (Test_Statement_Required): Deal with Ada 2012 allowing no
5019 null statement after label.
5020 * sinfo.ads: Minor comment updates.
5022 2010-09-09 Robert Dewar <dewar@adacore.com>
5024 * nlists.ads, nlists.adb (In_Same_List): New function.
5025 Use Node_Or_Entity_Id where appropriate.
5026 * par-labl.adb, sem_ch6.adb, sem_type.adb: Use In_Same_List.
5028 2010-09-09 Robert Dewar <dewar@adacore.com>
5030 * restrict.ads, restrict.adb (Check_Wide_Character_Restriction): New
5032 * sem_ch3.adb: Use Check_Wide_Character_Restriction
5033 (Enumeration_Type_Declaration): Check violation of No_Wide_Characters
5034 * sem_ch8.adb (Find_Direct_Name): Check violation of No_Wide_Characters
5035 (Find_Expanded_Name): Check violation of No_Wide_Characters
5037 2010-09-09 Robert Dewar <dewar@adacore.com>
5039 * par-ch5.adb: Minor reformatting.
5041 2010-09-09 Robert Dewar <dewar@adacore.com>
5043 * prj-env.adb: Minor code reorganization.
5044 * par-ch3.adb: Minor reformatting.
5045 * gcc-interface/Make-lang.in: Update dependencies.
5047 2010-09-09 Ed Schonberg <schonberg@adacore.com>
5049 * exp_ch9.adb (Build_Activation_Chain_Entity): The construct enclosing
5050 a task declaration can be an entry body.
5052 2010-09-09 Javier Miranda <miranda@adacore.com>
5054 * exp_disp.adb (Make_DT): Decorate as "static" variables containing
5055 tags of library level tagged types.
5056 (Make_Tags): Disable backend optimizations about aliasing for
5057 declarations of access to dispatch tables.
5059 2010-09-09 Ed Schonberg <schonberg@adacore.com>
5061 * sem_ch12.adb (Reset_Entity): If the entity is an itype created as a
5062 subtype for a null-excluding access type, recover the original
5063 subtype_mark to get the proper visibility on the original name.
5065 2010-09-09 Ed Schonberg <schonberg@adacore.com>
5067 * exp_ch3.adb (Build_Untagged_Equality): For Ada2012, new procedure to
5068 create the primitive equality operation for an untagged record. The
5069 operation is the predefined equality if no record component has a
5070 user-defined equality, or if there is a user-defined equality for the
5071 type as a whole, or when the type is derived and it has an inherited
5072 equality. Otherwise the body of the operations is built as for tagged
5074 (Expand_Freeze_Record_Type): Call Build_Untagged_Equality when needed.
5075 (Make_Eq_Body): New function to create the expanded body of the
5076 equality operation for tagged and untagged records. In both cases the
5077 operation composes, and the primitive operation of each record
5078 component is used to generate the equality function for the type.
5079 * exp_ch4.adb (Expand_Composite_Equality): In Ada2012, if a component
5080 has an abstract equality defined, replace its call with a
5081 Raise_Program_Error.
5082 * sem_ch6.adb (New_Overloaded_Entity): if Ada2012, verify that a
5083 user-defined equality operator for an untagged record type does not
5084 happen after type is frozen, and appears in the visible part if partial
5085 view of type is not limited.
5087 2010-09-09 Tristan Gingold <gingold@adacore.com>
5089 * gnatlbr.adb: Make Create_Directory more portable: use __gnat_mkdir.
5091 2010-09-09 Bob Duff <duff@adacore.com>
5093 * gnat_ugn.texi: Remove incorrect statement about -E being the default.
5095 2010-09-09 Pascal Obry <obry@adacore.com>
5097 * gnat_ugn.texi: Update doc on windows related topics.
5099 2010-09-09 Geert Bosch <bosch@adacore.com>
5101 * s-fatgen.adb: Update comments.
5103 2010-09-09 Robert Dewar <dewar@adacore.com>
5105 * par-ch4.adb (Box_Error): New procedure.
5107 2010-09-09 Thomas Quinot <quinot@adacore.com>
5109 * sem.adb: Minor reformatting.
5111 2010-09-09 Pascal Obry <obry@adacore.com>
5113 * prj-env.adb: Style fix, use /and then/ and /or else/.
5114 * gnat_ugn.texi: Fix typos.
5116 2010-09-03 Joseph Myers <joseph@codesourcery.com>
5119 * gcc-interface/misc.c (gnat_init_options): Allow options with
5120 empty canonical form. Generate a single save_argv element from -I
5123 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
5125 * gcc-interface/utils.c (gnat_pushdecl): Remove test for PARM_DECLs.
5126 Attach fake PARM_DECLs to the topmost block of the function.
5128 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
5130 * gcc-interface/trans.c (call_to_gnu): Also force the return slot opt
5131 for the call to a function whose return type was unconstrained.
5133 2010-08-30 Olivier Hainque <hainque@adacore.com>
5135 * gcc-interface/decl.c (FOREIGN_FORCE_REALIGN_STACK): New macro,
5136 replacement for FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
5137 (gnat_to_gnu_entity) <case ..., E_Procedure>: Use it.
5139 2010-08-21 Eric Botcazou <ebotcazou@adacore.com>
5141 * tracebak.c: Fix typo in comment.
5143 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
5145 * gcc-interface/decl.c: Use FOR_EACH_VEC_ELT.
5146 * gcc-interface/trans.c: Likewise.
5147 * gcc-interface/utils.c: Likewise.
5149 2010-08-18 Eric Botcazou <ebotcazou@adacore.com>
5151 * tracebak.c (i386): Use GCC unwinder on Linux with GCC > 4.5.
5153 2010-08-10 Robert Dewar <dewar@adacore.com>
5155 * sem_ch8.adb, sem_ch8.ads: Change name Write_Scopes to ws.
5156 * sem_util.adb: Minor reformatting.
5158 2010-08-10 Javier Miranda <miranda@adacore.com>
5160 * sem_aggr.adb (Resolve_Extension_Aggregate): Warn on the use of C++
5161 constructors that leave the object partially initialized.
5162 * exp_atag.ads, exp_atags.adb (Build_Inherit_CPP_Prims): New subprogram
5163 that copies from parent of Typ the dispatch table slots of inherited
5164 C++ primitives. It handles primary and secondary dispatch tables.
5165 * einfo.adb (Related_Type): Moved from Node26 to Node27. Required to
5166 use this attribute with E_Variable entities.
5167 (Set_Is_Tag): Relax assertion to allow its use with variables that
5169 (Set_Related_Type): Relax assertion to allow its use with variables
5170 that store the tag of a C++ class.
5171 (Write_26_Field_Name): Remove Related_Type.
5172 (Write_27_Field_Name): Add Related_Type.
5173 * einfo.ads (Related_Type): Moved from Node26 to Node27. Available also
5174 with E_Variable entities.
5175 * sem_prag.adb (CPP_Constructor): Warn on duplicated occurrence of this
5177 * sem_util.adb (Search_Tag): Add missing support for CPP types.
5178 (Enclosing_CPP_Parent): New subprogram.
5179 (Has_Suffix): New subprogram.
5180 * sem_util.ads (Enclosing_CPP_Parent): New subprogram that returns the
5181 closest ancestor of a type that is a C++ type.
5182 (Has_Suffix): New subprogram. Used in assertions to check the suffix of
5184 * sem_attr.adb (Analyze_Access_Attribute): Check wrong use of current
5185 instance in derivations of C++ types.
5186 * exp_tss.adb (CPP_Init_Proc): New subprogram.
5187 (Is_CPP_Init_Proc): New subprogram.
5188 (Set_TSS): Handle new C++ init routines.
5189 * exp_tss.ads (TSS_CPP_Init): New TSS name. For initialization of C++
5191 (CPP_Init_Proc): New subprogram.
5192 (Is_CPP_Init_Proc): New subprogram.
5193 * exp_disp.adb (CPP_Num_Prims): New subprogram.
5194 (Has_CPP_Constructors): New subprogram.
5195 (Make_Secondary_DT, Make_DT): For derivations of CPP types, do not
5196 initialize slots located in the C++ part of the dispatch table.
5197 (Make_Tags): For CPP types declare variables used by the IP routine to
5198 store the C++ tag values after the first invocation of the C++
5200 (Build_CPP_Init_DT): New subprogram.
5201 (Set_CPP_Constructors): New implementation that builds an IP for each
5202 CPP constructor. These IP are wrappers of the C++ constructors that,
5203 after the first invocation of the constructor, read the C++ tags from
5204 the object and save them locally. These copies of the C++ tags are used
5205 by the IC routines to initialize tables of Ada derivations of CPP
5207 (Write_DT): Indicate what primitives are imported from C++
5208 * exp_disp.ads (CPP_Num_Prims): New subprogram.
5209 (Has_CPP_Constructors): New subprogram.
5210 * exp_aggr.adb (Build_Record_Aggr_Code): For derivations of C++ types
5211 invoke the IC routine to inherit the slots of the parents.
5212 * sem_ch13.adb (Analyze_Freeze_Entity): Add new warnings on CPP types.
5213 * exp_ch3.adb (Is_Variable_Size_Array): New subprogram.
5214 (Is_Variable_Size_Record): Factorize code calling
5215 Is_Variable_Size_Array.
5216 (Build_CPP_Init_Procedure): New subprogram that builds the tree
5217 corresponding to the procedure that initializes the C++ part of the
5218 dispatch table of an Ada tagged type that is a derivation of a CPP
5220 (Build_Init_Procedure): Adding documentation plus code reorganization
5221 to leave more clear the construction of the IP with C++ types.
5222 (Expand_Freeze_Record_Type): Delay call to Set_CPP_Constructors because
5223 it cannot be called after Make_Tags has been invoked.
5224 (Inherit_CPP_Tag): Removed.
5225 (Init_Secondary_Tags): For derivations of CPP types, warn on tags
5226 located at variable offset.
5227 * freeze.ads: Minor reformating.
5228 * sem_ch8.adb (Write_Scopes): Add pragma export. Required to have it
5230 * gcc-interface/Make-lang.in: Update dependencies.
5232 2010-08-10 Robert Dewar <dewar@adacore.com>
5234 * a-chahan.ads: Add comments on handling of obsolescent entries.
5235 * opt.ads: Add Ada_2005 and Ada_2012 renamings for versions.
5236 * restrict.adb (Check_Obsolescent_2005_Entity): New procedure.
5237 * restrict.ads (Check_Obsolescent_2005_Entity): New procedure.
5238 * sem_attr.adb (Analyze_Access_Attribute): Call
5239 Check_Obsolescent_2005_Entity to check for access to obsolescent
5240 Ada.Characters.Handling subprogram.
5241 (Analyze_Attribute, case Class): Applying Class to untagged incomplete
5242 type is obsolescent in Ada 2005.
5243 (Analyze_Attribute, case Constrained): Better placement of flag when
5244 flagged as obsolescent feature.
5245 (Analyze_Attribute, case Storage_Size): Use with tasks is obsolescent
5246 * sem_ch10.adb (Analyze_With_Clause): With of renamings such as Text_IO
5247 is an obsolescent feature.
5248 * sem_ch11.adb (Analyze_Raise_Statement): Numeric_Error is obsolescent
5250 * sem_ch8.adb (Analyze_Subprogram_Renaming): Call
5251 Check_Obsolescent_2005_Entity to check for renaming obsolete
5252 Ada.Characters.Handling subprogram.
5253 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings): Check
5254 for obsolescent restrictions in Ada 2005.
5255 (Analyze_Pragma, case Suppress): Entity arg is obsolescent in Ada 2005
5256 (Analyze_Pragma, case Interface): Interface is obsolescent in Ada 2005
5257 * sem_res.adb (Resolve_Call): Call Check_Obsolescent_2005_Entity to
5258 check for obsolescent references to Ada.Characters.Handling subprograms
5260 2010-08-10 Robert Dewar <dewar@adacore.com>
5262 * einfo.adb, einfo.ads: Fix bad -gnatdt output for incomplete type.
5264 2010-08-10 Robert Dewar <dewar@adacore.com>
5266 * errout.ads: Add VMS table entries for 2005, 12, 2012 switches
5267 * par-ch4.adb: Change wording of Ada 2012 messages
5268 * vms_data.ads: Add VMS entries for /2005, /12, /2012
5270 2010-08-10 Robert Dewar <dewar@adacore.com>
5272 * a-suenco.adb (Convert): Fix bug in UTF-16 to UTF-8 conversion for
5273 codes in the range 16#80#..16#7FF#.
5274 * sem_ch10.adb: Minor reformatting.
5276 2010-08-10 Arnaud Charlet <charlet@adacore.com>
5278 * gnat1drv.adb (Scan_Front_End_Switches): Always perform semantics and
5279 generate ali files in CodePeer mode, so that a gnatmake -c -k will
5280 proceed further when possible
5281 * freeze.adb (Freeze_Static_Object): Fix thinko. Do not generate error
5282 messages when ignoring representation clauses (-gnatI).
5284 2010-08-10 Ed Schonberg <schonberg@adacore.com>
5286 * exp_ch4.adb (Expand_N_Selected_Component): Do not attempt to
5287 constant-fold discriminant reference if the constraint is an object
5288 with non-static expression. Expression may contain volatile references
5289 in the presence of renamings.
5291 2010-08-10 Vincent Celier <celier@adacore.com>
5293 * prj-proc.adb (Get_Attribute_Index): If Index is All_Other_Names,
5295 * prj-strt.adb (Attribute_Reference): Recognize 'others' as a valid
5296 index for an associative array where it is allowed.
5298 2010-08-10 Thomas Quinot <quinot@adacore.com>
5300 * exp_attr.adb: Add comments.
5302 2010-08-10 Jerome Lambourg <lambourg@adacore.com>
5304 * adaint.c (__gnat_get_file_names_case_sensitive): return 0 on darwin.
5306 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
5308 * gcc-interface/utils.c (gnat_poplevel): Use blocks_nreverse.
5310 2010-08-09 Eric Botcazou <ebotcazou@adacore.com>
5312 * gcc-interface/utils.c (build_vms_descriptor32): Fix formatting.
5313 (build_vms_descriptor): Likewise.
5315 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5317 * gcc-interface/utils.c (make_descriptor_field): Add tree parameter.
5318 (build_vms_descriptor32): Adjust calls to it for new parameter.
5319 (build_vms_descriptor): Likewise.
5321 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5323 * gcc-interface/decl.c (rec_variant): Declare. Declare a VEC of it.
5324 (build_variant_list): Take and return a VEC instead of a tree.
5325 (create_variant_part_from): Take a VEC instead of a tree for
5326 variant_list. Adjust accordingly.
5327 (gnat_to_gnu_entity): Adjust for changes to previous functions.
5329 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
5331 * gcc-interface/decl.c (gnat_to_gnu_entity): Use XALLOCAVEC instead
5333 (components_to_record): Likewise.
5334 * gcc-interface/trans.c (gnat_to_gnu): Likewise.
5335 * gcc-interface/utils.c (max_size): Likewise.
5336 (build_vms_descriptor32): Likewise.
5337 (build_vms_descriptor): Likewise.
5339 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
5341 * gcc-interface/decl.c (subst_pair): Declare. Declare a VEC of it.
5342 (build_subst_list): Return a VEC instead of a tree.
5343 (build_variant_list): Take a VEC for subst_list. Adjust
5345 (create_field_decl_from): Likewise.
5346 (create_variant_part_from): Likewise.
5347 (copy_and_substitute_in_size): Likewise.
5348 (gnat_to_gnu_entity): Adjust for new interface to build_subst_list.
5349 Free the built vector.
5351 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
5353 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not build an
5354 allocator for large imported objects.
5356 2010-08-05 Robert Dewar <dewar@adacore.com>
5358 * gnat1drv.adb: Minor reformatting.
5360 2010-08-05 Ed Schonberg <schonberg@adacore.com>
5362 * sem.adb (Do_Unit_And_Dependents): If some parent unit is an
5363 instantiation, process its body before the spec of the main unit,
5364 because it may contain subprograms invoked in the spec of main.
5365 * einfo.ads: Add documention of delayed freeze.
5367 2010-08-05 Vincent Celier <celier@adacore.com>
5369 * prj-nmsc.adb (Process_Linker): Take into account new values for
5370 attribute Response_File_Format.
5371 * prj.ads (Response_File_Format): New enumeration values GCC_GNU,
5372 GCC_Object_List and GCC_Option_List.
5374 2010-08-05 Ed Schonberg <schonberg@adacore.com>
5376 * exp_ch4.adb (Expand_N_Selected_Component): Do not constant-fold a
5377 selected component that denotes a discriminant if it is the
5378 discriminant of a component of an unconstrained record type.
5380 2010-08-05 Ed Schonberg <schonberg@adacore.com>
5382 * exp_util.adb (Insert_Actions): If the action appears within a
5383 conditional expression that is already analyzed, insert action further
5386 2010-08-05 Robert Dewar <dewar@adacore.com>
5388 * exp_ch4.adb: Minor reformatting.
5390 2010-08-05 Thomas Quinot <quinot@adacore.com>
5392 * exp_ch4.adb: Minor reformatting
5393 * gnat1drv.adb: Minor reformatting.
5394 Minor code reorganization (use Nkind_In).
5396 2010-08-05 Ed Schonberg <schonberg@adacore.com>
5398 * exp_util.ads, exp_util.adb (Needs_Constant_Address): New predicate to
5399 determine whether the expression in an address clause for an
5400 initialized object must be constant. Code moved from freeze.adb.
5401 (Remove_Side_Effects): When the temporary is initialized with a
5402 reference, indicate that the temporary is a constant as done in all
5404 * freeze.adb (Check_Address_Clause): use Needs_Constant_Address.
5405 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
5406 If object does not need a constant address, remove side effects from
5407 address expression, so it is elaborated at the point of the address
5408 clause and not at the freeze point of the object, so that elaboration
5411 2010-08-05 Vincent Celier <celier@adacore.com>
5413 * prj.adb (Is_Compilable): Return False for header files of non Ada
5416 2010-08-05 Emmanuel Briot <briot@adacore.com>
5418 * prj-nmsc.adb: The Missing_Source_Files flag also considers a missing
5419 exec directory as a warning rather than an error.
5421 2010-08-05 Thomas Quinot <quinot@adacore.com>
5423 * sem_ch6.adb, gnat1drv.adb, exp_ch6.adb, sem_eval.adb: Minor
5426 2010-08-05 Steve Baird <baird@adacore.com>
5428 * exp_util.adb (Remove_Side_Effects): An access value which designates
5429 a volatile object of a nonvolatile type is prohibited.
5430 Do not call Make_Reference to construct a reference to such an object.
5432 2010-08-05 Robert Dewar <dewar@adacore.com>
5434 * a-suezse.adb, a-suezse.ads, a-suezen.adb, a-suezen.ads: Removed.
5435 * a-suewse.adb, a-suewse.ads, a-suesen.adb, a-suesen.ads,
5436 a-suewen.adb, a-suewen.ads: New files.
5437 * Makefile.rtl, impunit.adb: Update implementation of Ada 2012 string
5439 * sem_elab.adb: Minor reformatting.
5441 2010-08-05 Arnaud Charlet <charlet@adacore.com>
5443 * sem_ch8.adb (Use_One_Type): Protect against empty scopes.
5444 * exp_util.adb (Component_May_Be_Bit_Aligned): Prevent assert failure
5445 in case of null Comp.
5447 2010-08-05 Robert Dewar <dewar@adacore.com>
5449 * errout.adb, a-suewen.adb, a-suezen.adb: Minor reformatting.
5451 2010-08-05 Gary Dismukes <dismukes@adacore.com>
5453 * sem_ch4.adb (Analyze_Allocator): Flag errors on allocators of a
5454 nested access type whose designated type has tasks or is a protected
5455 object when the restrictions No_Task_Hierarchy or
5456 No_Local_Protected_Objects apply. Add ??? comment.
5457 * sem_ch9.adb (Analyze_Protected_Type): Give a warning when a protected
5458 type is not a library-level type and No_Local_Protected_Objects applies.
5459 (Analyze_Task_Type): Give a warning when a task type is not a
5460 library-level type and No_Task_Hierarchy applies.
5462 2010-08-05 Arnaud Charlet <charlet@adacore.com>
5464 * sem.adb: Minor reformatting
5465 * sem_ch4.adb (Analyze_Reference): Disable error message in CodePeer
5468 2010-08-04 Eric Botcazou <ebotcazou@adacore.com>
5470 * gcc-interface/decl.c: Do not undefine IN_GCC_FRONTEND and do not
5472 (gnat_to_gnu_entity) <object>: Force address of -1 at the tree level
5473 for the debug-only entity.
5474 * gcc-interface/Make-lang.in (ada/decl.o): Adjust dependencies.
5476 2010-08-03 Joseph Myers <joseph@codesourcery.com>
5478 * gcc-interface/lang-specs.h: Don't pass -a options.
5480 2010-07-28 Joseph Myers <joseph@codesourcery.com>
5482 * gcc-interface/misc.c (gnat_init_options): Ignore erroneous
5483 options. Check canonical_option_num_elements on options copied.
5485 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5487 * gcc-interface/misc.c (gnat_handle_option): Update prototype and
5488 return value type. Don't check for missing arguments here.
5490 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5492 * gcc-interface/misc.c (gnat_option_lang_mask): New.
5493 (gnat_init_options): Update prototype. Reconstruct argv array
5494 from decoded options.
5496 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
5498 * gcc-interface/utils.c (update_pointer_to): In the unconstrained array
5499 case, merge the alias set of the old pointer type.
5501 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
5503 * gcc-interface/utils.c (gnat_types_compatible_p): Revert latest change
5504 and recurse only for multidimensional array types instead.
5506 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
5509 * gcc-interface/utils.c (convert): Fix thinko in test.
5510 (unchecked_convert): When converting from a scalar type to a type with
5511 a different size, pad to have the same size on both sides.
5513 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
5515 * gcc-interface/utils.c (gnat_types_compatible_p): Don't require strict
5516 equality for the component type of array types.
5518 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
5520 * gcc-interface/decl.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
5521 * gcc-interface/trans.c: Likewise.
5522 * gcc-interface/utils.c: Likewise.
5523 * gcc-interface/utils2.c: Likewise.
5525 2010-07-13 Laurent GUERBY <laurent@guerby.net>
5528 * gcc-interface/targtyps.c: Include tm_p.h.
5529 * gcc-interface/Make-lang.in: Update dependencies.
5531 2010-07-09 Eric Botcazou <ebotcazou@adacore.com>
5533 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Deal with
5536 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5538 * gcc-interface/utils.c: Include diagnostic-core.h in every file
5539 that includes toplev.h.
5541 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
5543 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>:
5544 Branch to common code handling the alignment of discrete types.
5545 <E_Signed_Integer_Type>: Likewise.
5546 <E_Modular_Integer_Type>: Likewise.
5548 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
5550 * gcc-interface/misc.c (gnat_handle_option): Do not populate gnat_argv.
5551 (gnat_handle_option): Allocate only one element for gnat_argv.
5552 (gnat_init): Do not populate gnat_argv.
5554 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5556 * gcc-interface/trans.c: Do not include tree-flow.h.
5557 * gcc-interface/Make-lang.in: Adjust dependencies.
5559 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
5561 * gcc-interface/gigi.h (gnat_build_constructor): Take a VEC instead
5562 of a TREE_LIST. Update comment.
5563 * gcc-interface/trans.c (gigi): Build a VEC instead of a TREE_LIST.
5564 Adjust call to gnat_build_constructor.
5565 (Attribute_to_gnu): Likewise.
5566 (gnat_to_gnu): Likewise.
5567 (pos_to_constructor): Likewise.
5568 (extract_values): Likewise.
5569 * gcc-interface/utils.c (build_template): Likewise.
5570 (convert_vms_descriptor64): Likewise.
5571 (convert_vms_descriptor32): Likewise.
5572 (convert_to_fat_pointer): Likewise.
5573 (convert): Likewise.
5574 (unchecked_convert): Likewise.
5575 * gcc-interface/decl.c (gnat_to_gnu_entity): Likewise.
5576 * gcc-interface/utils2.c (build_allocator): Likewise.
5577 (fill_vms_descriptor): Likewise.
5578 (gnat_build_constructor): Take a VEC instead of a TREE_LIST.
5579 (compare_elmt_bitpos): Adjust for parameters being constructor_elts
5580 instead of TREE_LISTs.
5582 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
5584 * gcc-interface/misc.c: Do not include except.h.
5585 * gcc-interface/Make-lang.in: Update dependencies.
5587 2010-06-27 Eric Botcazou <ebotcazou@adacore.com>
5589 * gcc-interface/trans.c: Include tree-flow.h.
5590 (gnu_switch_label_stack): Delete.
5591 (Case_Statement_to_gnu): Do not emit the goto at the end of a case if
5592 its associated block cannot fall through. Do not emit the final label
5593 if no cases branch to it.
5594 * gcc-interface/Make-lang.in (ada/trans.o): Add $(TREE_FLOW_H).
5596 2010-06-23 Thomas Quinot <quinot@adacore.com>
5598 * exp_attr.adb (Expand_Access_To_Protected_Op): When rewriting a
5599 reference to a protected subprogram outside of the protected's scope,
5600 ensure the corresponding external subprogram is frozen before the
5603 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5605 * sem_prag.adb: Fix typo in error message.
5606 * sem.adb: Refine previous change.
5608 2010-06-23 Robert Dewar <dewar@adacore.com>
5610 * impunit.adb, a-suewen.adb, a-suewen.ads, a-suenco.adb, a-suenco.ads,
5611 a-suezen.adb, a-suezen.ads, a-stuten.adb, a-stuten.ads, Makefile.rtl:
5612 Implement Ada 2012 string encoding packages.
5614 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5616 * a-stwiun-shared.adb, a-stwiun-shared.ads, a-stzunb-shared.adb,
5617 a-stzunb-shared.ads, a-swunau-shared.adb, a-swuwti-shared.adb,
5618 a-szunau-shared.adb, a-szuzti-shared.adb, a-strunb-shared.adb,
5619 a-strunb-shared.ads, a-stunau-shared.adb, a-suteio-shared.adb: New
5621 * gcc-interface/Makefile.in: Enable use of above files.
5623 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5625 * sem_ch13.adb (Check_Constant_Address_Clauses): Do not check legality
5626 of address clauses if if Ignore_Rep_Clauses is active.
5627 * freeze.adb (Check_Address_Clause): If Ignore_Rep_Clauses is active,
5628 remove address clause from tree so that it does not reach the backend.
5630 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5632 * exp_attr.adb (Expand_N_Attribute_Reference [Attribute_Valid]): Do not
5633 expand 'Valid from user code in CodePeer mode, will be handled by the
5636 2010-06-23 Bob Duff <duff@adacore.com>
5638 * g-comlin.ads: Minor comment improvements.
5640 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5642 * sem_res.adb (Uses_SS): The expression that initializes a controlled
5643 component of a record type may be a user-defined operator that is
5644 rewritten as a function call.
5646 2010-06-23 Bob Duff <duff@adacore.com>
5648 * g-comlin.ads, sem_ch13.adb: Minor comment fix.
5650 2010-06-23 Eric Botcazou <ebotcazou@adacore.com>
5652 * exp_ch11.adb (Expand_Local_Exception_Handlers): Propagate the end
5653 label to the new sequence of statements. Set the sloc of the raise
5654 statement onto the new goto statements.
5656 2010-06-23 Robert Dewar <dewar@adacore.com>
5658 * a-stuten.ads, a-stuten.adb: New files.
5659 * impunit.adb: Add engtry for Ada.Strings.UTF_Encoding (a-stuten.ads)
5660 * Makefile.rtl: Add entry for a-stuten (Ada.Strings.UTF_Encoding)
5662 2010-06-23 Robert Dewar <dewar@adacore.com>
5664 * gnat_ugn.texi: Add documentation of -gnat12 switch
5665 Add documentation of -gnatX switch.
5667 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5669 * inline.ads: Include the current Ada_Version in the info for pending
5670 instance bodies, so that declaration and body are compiled with the
5672 * inline.adb: Move with_clause for Opt to spec.
5673 * sem_ch12.adb (Analyze_Package_Instantiation,
5674 Analyze_Subprogram_Instantiation): Save current Ada_Version in
5675 Pending_Instantiation information.
5676 (Instantiate_Package_Body, Instantiate_Subprogram_Body,
5677 Inline_Package_Body): Use the Ada_Version present in the body
5680 2010-06-23 Robert Dewar <dewar@adacore.com>
5682 * usage.adb: Add documentation for -gnat12 switch.
5683 * errout.ads: Add VMS alias entry for -gnat12 switch
5684 * gnat_rm.texi: Add documentation for pragma Ada_12 and Ada_2012
5685 Add documentation for pragma Extensions_Allowed.
5686 * opt.ads: Add entry for Ada 2012 mode.
5687 * sem_ch4.adb, par-ch3.adb, par-ch4.adb: Use new Ada 2012 mode for 2012
5689 * sem_prag.adb, par-prag.adb: Add processing for pragma Ada_12 and
5691 * sem_ch13.adb: Add handling for Ada 2012 mode.
5692 * snames.ads-tmpl: Add entries for pragma Ada_2012 and Ada_12.
5693 * switch-c.adb: Add handling for -gnat12 switch.
5694 Implement -gnat2005 and -gnat2012.
5695 * usage.adb: Add documentation for -gnat12 switch.
5696 * vms_data.ads: Add /12 switch for Ada 2012 mode.
5698 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5700 * exp_ch4.adb (Expand_N_Allocator): Fix potential crash when using
5701 No_Task_Hierarchy restriction. Add comment.
5702 * exp_ch9.adb, exp_ch3.adb: Update comments.
5704 2010-06-23 Robert Dewar <dewar@adacore.com>
5706 * sem_ch5.adb (Process_Bounds): Remove some junk initializations.
5707 * sem_res.adb: Add comments.
5708 * sem_util.adb: Minor reformatting. Add comments.
5709 Change increment on Actuals_In_Call table.
5710 * opt.ads: Minor: add 'constant'.
5712 2010-06-23 Javier Miranda <miranda@adacore.com>
5714 * exp_disp.adb (Make_DT): Initialize the Size_Func component of the
5715 TSD to Null_Address if No_Dispatching_Calls is active.
5717 2010-06-23 Vincent Celier <celier@adacore.com>
5719 * a-comlin.ads: Indicate that use of this package is not supported
5720 during the elaboration of an auto-initialized Stand-Alone Library.
5722 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5724 * exp_util.adb (Is_Possibly_Misaligned_Object): Do not rely on an
5725 alignment clause on a record type to determine if a component may be
5726 misaligned. The decision must be taken in the back-end where target
5727 alignment information is known.
5729 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5731 * gnat1drv.adb (Adjust_Global_Switches): Enable some restrictions
5732 systematically in CodePeer mode to simplify generated code.
5733 * restrict.adb (Check_Restriction): Do nothing in CodePeer mode.
5734 * exp_ch4.adb (Expand_N_Allocator): Generate proper code when
5735 No_Task_Hierarchy is set instead of crasshing.
5737 2010-06-23 Thomas Quinot <quinot@adacore.com>
5739 * sem_util.adb: Minor code cleanup: test for proper entity instead of
5740 testing just Chars attribute when checking whether a given scope is
5742 * exp_ch4.adb, einfo.adb: Minor reformatting.
5744 2010-06-23 Vincent Celier <celier@adacore.com>
5747 * switch-m.adb (Normalize_Compiler_Switches): Take into account
5748 switches -gnatB, -gnatD=nn, -gnatG (incuding -gnatG=nn), -gnatI,
5749 -gnatl=file, -gnatS, -gnatjnn, -gnateI=nn and -gnatWx.
5751 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5753 * sem_res.adb (Resolve_Membership_Op): If left operand is a mixed mode
5754 operation with a universal real operand, and the right operand is a
5755 range with universal bounds, find unique fixed point that may be
5756 candidate, and warn appropriately.
5758 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5760 * sem_res.adb (Resolve_Intrinsic_Operator): Add guards to handle
5761 properly the rare cases where VMS operators are visible through
5762 Extend_System, but the default System is being used and Address is a
5764 * sem_util.adb: Widen predicate Is_VMS_Operator.
5766 2010-06-23 Vincent Celier <celier@adacore.com>
5768 * switch-m.adb (Normalize_Compiler_Switches): Take into account -gnatC
5771 2010-06-23 Olivier Hainque <hainque@adacore.com>
5773 * einfo.adb (Has_Foreign_Convention): Consider Intrinsic with
5774 Interface_Name as foreign. These are GCC builtin imports for
5775 which Ada specific processing doesn't apply.
5777 2010-06-23 Thomas Quinot <quinot@adacore.com>
5779 * sem_ch12.adb: Minor reformatting.
5781 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5783 * sem_util.adb (Is_VMS_Operator): Use scope of system extension to
5784 determine whether an intrinsic subprogram is VMS specific.
5786 2010-06-23 Hristian Kirtchev <kirtchev@adacore.com>
5788 * treepr.adb (Print_Entity_Info): Output the contents of Field28 if it
5789 is present in the entity.
5791 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5793 * xr_tabls.adb, xref_lib.adb: Update to latest lib-xref.ads
5794 Fix handling of parameters.
5795 Add protection against unexpected cases.
5796 * sem_ch6.adb (Create_Extra_Formals): Use suffix "L" instead of "A" for
5797 access level, since "A" suffix is already used elsewhere. Similarly,
5798 use suffix "O" instead of "C" for 'Constrained since "C" suffix is used
5801 2010-06-23 Thomas Quinot <quinot@adacore.com>
5803 * sem_util.adb, sem_util.ads: Minor reformatting.
5805 2010-06-23 Vincent Celier <celier@adacore.com>
5807 * prj.ads (Gprclean_Flags.Missing_Source_Files): Set to Error to keep
5808 the previous behavior of gprclean when there are missing files.
5810 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5812 * sem_ch12.adb (Load_Body_Of_Generic): In CodePeer mode, a missing
5813 generic body is not a fatal error.
5814 (Mark_Context): Handle properly names of child units.
5815 * sem.adb (Walk_Library_Items.Do_Action): Remove assertion on
5818 2010-06-23 Vincent Celier <celier@adacore.com>
5820 * ali.adb (Scan_ALI): When ignoring R lines, do not skip the next
5823 2010-06-23 Bob Duff <duff@adacore.com>
5825 * g-pehage.ads, g-pehage.adb: Switch default optimization mode to
5826 Memory_Space, because CPU_Time doesn't seem to provide any significant
5827 speed advantage in practice. Cleanup: Get rid of constant
5828 Default_Optimization; doesn't seem to add anything. Use case
5829 statements instead of if statements; seems cleaner.
5831 2010-06-23 Olivier Hainque <hainque@adacore.com>
5833 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Procedure>: Use
5834 Wshadow instead of Wextra to guard warning on absence of internal
5835 builtin decl for an import. Fix use of quote in warning text.
5836 (intrin_arglists_compatible_p): Remove processing of integer trailing
5837 args on the Ada side. Fix use of literal > in warning text.
5838 (intrin_return_compatible_p): Never warn on "function imported as
5839 procedure". Defer the void/void case to the common type compatibility
5841 (gnat_to_gnu_param): Use void_ptr GCC type for System.Address argument
5842 of GCC builtin imports.
5844 2010-06-23 Olivier Hainque <hainque@adacore.com>
5846 * gcc-interface/decl.c (intrin_types_incompatible_p): New function,
5848 (intrin_arglists_compatible_p, intrin_return_compatible_p): New
5849 functions, helpers for ...
5850 (intrin_profiles_compatible_p): New function, replacement for ...
5851 (compatible_signatures_p): Removed.
5852 (gnat_to_gnu_entity) <case E_Procedure>: If -Wextra, warn on
5853 attempt to bind an unregistered builtin function. When we have
5854 one, use it and warn on profile incompatibilities.
5856 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5858 * gcc-interface/Make-lang.in: Update dependencies.
5860 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5862 * sem_util.adb (Mark_Coextensions): If the expression in the allocator
5863 for a coextension in an object declaration is a concatenation, treat
5864 coextension as dynamic.
5866 2010-06-23 Javier Miranda <miranda@adacore.com>
5868 * sem_ch3.adb (Add_Internal_Interface_Entities): Ensure that the
5869 internal entities are added to the scope of the tagged type.
5870 (Derive_Subprograms): Do not stop derivation when we find the first
5871 internal entity that has attribute Interface_Alias. After the change
5872 done to Override_Dispatching_Operations it is no longer true that
5873 these primirives are always located at the end of the list of
5875 * einfo.ads (Primitive_Operations): Add documentation.
5876 * exp_disp.adb (Write_DT): Improve output adding to the name of the
5877 primitive a prefix indicating its corresponding tagged type.
5878 * sem_disp.adb (Override_Dispatching_Operations): If the overridden
5879 entity covers the primitive of an interface that is not an ancestor of
5880 this tagged type then the new primitive is added at the end of the list
5881 of primitives. Required to fulfill the C++ ABI.
5883 2010-06-23 Javier Miranda <miranda@adacore.com>
5885 * atree.ads (Set_Reporting_Proc): New subprogram.
5886 * atree.adb: Remove dependency on packages Opt and SCIL_LL.
5887 (Allocate_Initialize_Node, Replace, Rewrite): Replace direct calls
5888 to routines of package Scil_ll by indirect call to the registered
5890 (Set_Reporting_Proc): New subprogram. Used to register a subprogram
5891 that is invoked when a node is allocated, replaced or rewritten.
5892 * scil_ll.adb (Copy_SCIL_Node): New routine that takes care of copying
5893 the SCIL node. Used as argument for Set_Reporting_Proc.
5894 (Initialize): Register Copy_SCIL_Node as the reporting routine that
5895 is invoked by atree.
5897 2010-06-23 Thomas Quinot <quinot@adacore.com>
5899 * sem_ch3.ads: Minor reformatting.
5901 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5903 * sem_ch12.adb (Analyze_Package_Instantiation): In CodePeer mode,
5904 always analyze the generic body and instance, because it may be needed
5906 (Mark_Context): Prepend the with clauses for needed generic units, so
5907 they appear in a better order for CodePeer.
5908 * sem_util.adb, sem_util.ads: Prototype code for AI05-0144.
5910 2010-06-23 Emmanuel Briot <briot@adacore.com>
5912 * prj.ads, prj-nmsc.adb (Error_Or_Warning): New subprogram.
5914 2010-06-23 Robert Dewar <dewar@adacore.com>
5916 * g-pehage.adb, exp_ch13.adb: Minor reformatting.
5918 2010-06-23 Thomas Quinot <quinot@adacore.com>
5920 * a-tags.ads: Fix description of TSD structure.
5922 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5924 * sem_ch12.adb (Mark_Context): When indicating that the body of a
5925 generic unit is needed prior to the unit containing an instantiation,
5926 search recursively the context of the generic to add other generic
5927 bodies that may be instantiated indirectly through the current instance.
5929 2010-06-23 Robert Dewar <dewar@adacore.com>
5931 * freeze.adb: Minor reformatting.
5933 2010-06-23 Bob Duff <duff@adacore.com>
5935 * g-pehage.adb (Trim_Trailing_Nuls): Fix the code to match the comment.
5937 2010-06-23 Vincent Celier <celier@adacore.com>
5939 * make.adb (Compile_Sources): Complete previous change.
5941 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5943 * sem_ch6.adb (Add_Extra_Formal): Use suffix "C" in the name of the
5944 Constrained extra formal.
5946 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5948 * exp_ch13.adb (Expand_Freeze_Actions): If validity checks and
5949 Initialize_Scalars are enabled, compile the generated equality function
5950 for a composite type with full checks enabled, so that validity checks
5951 are performed on individual components.
5953 2010-06-23 Emmanuel Briot <briot@adacore.com>
5955 * prj.adb, prj.ads, prj-nmsc.adb (Processing_Flags): New flag
5956 Missing_Source_Files.
5958 2010-06-23 Robert Dewar <dewar@adacore.com>
5960 * exp_ch3.adb, exp_util.adb: Minor reformatting.
5962 2010-06-23 Jose Ruiz <ruiz@adacore.com>
5964 * a-reatim.adb, a-retide.adb: Move the initialization of the tasking
5965 run time from Ada.Real_Time.Delays to Ada.Real_Time. This way, calls to
5966 Clock (without delays) use a run time which is properly initialized.
5968 2010-06-23 Vincent Celier <celier@adacore.com>
5970 * make.adb: Do not set Check_Readonly_Files when setting Must_Compile,
5971 when -f -u and a main is specified on the command line. However,
5972 attempt to compile even when the ALI file is read-only when
5973 Must_Compile is True.
5975 2010-06-23 Thomas Quinot <quinot@adacore.com>
5977 * checks.adb, g-pehage.adb, cstand.adb: Minor code factorization.
5979 2010-06-23 Javier Miranda <miranda@adacore.com>
5981 * sem_ch3.adb (Add_Internal_Interface_Entities): Generate internal
5982 entities for parent types that are interfaces. Needed in generics to
5983 handle formals that implement interfaces.
5984 (Derive_Subprograms): Add assertion for derivation of tagged types that
5985 do not cover interfaces. For generics, complete code that handles
5986 derivation of type that covers interfaces because the previous
5987 condition was weak (it required only name consistency; arguments were
5988 not checked). Add new code to locate primitives covering interfaces
5989 defined in generic units or instantiatons.
5990 * sem_util.adb (Has_Interfaces): Add missing support for derived types.
5991 * sem_ch6.adb (Check_Overriding_Indicator): Minor code cleanups.
5992 * exp_disp.adb (Make_Select_Specific_Data_Table): Skip primitives of
5993 interfaces that are parents of the type because they share the primary
5995 (Register_Primitive): Do not register primitives of interfaces that
5996 are parents of the type.
5997 * sem_ch13.adb (Analyze_Freeze_Entity): Add documentation.
5998 * exp_cg.adb (Write_Type_Info): When displaying overriding of interface
5999 primitives skip primitives of interfaces that are parents of the type.
6001 2010-06-23 Ed Schonberg <schonberg@adacore.com>
6003 * sem_attr.adb (Eval_Attribute): If the prefix is an array, the
6004 attribute cannot be constant-folded if an index type is a formal type,
6005 or is derived from one.
6006 * checks.adb (Determine_Range): ditto.
6008 2010-06-23 Arnaud Charlet <charlet@adacore.com>
6010 * gnat_ugn.texi, gnatxref.adb: Add support for --ext switch.
6012 2010-06-23 Bob Duff <duff@adacore.com>
6014 * g-pehage.ads, g-pehage.adb (Put): Fix off-by-one bug.
6015 (Insert): Disallow nul characters.
6016 (misc output routines): Assert no nul characters.
6018 2010-06-23 Ed Schonberg <schonberg@adacore.com>
6020 * exp_ch4.adb: Use predefined unsigned type in all cases.
6022 2010-06-23 Bob Duff <duff@adacore.com>
6024 * s-rannum.adb (Reset): Avoid overflow in calculation of Initiator.
6025 * g-pehage.ads: Minor comment fixes.
6026 * g-pehage.adb: Minor: Add some additional debugging printouts under
6029 2010-06-23 Robert Dewar <dewar@adacore.com>
6031 * binde.adb (Better_Choice): Always prefer Pure/Preelab.
6032 (Worse_Choice): Always prefer Pure/Preelab.
6034 2010-06-23 Vincent Celier <celier@adacore.com>
6036 * a-reatim.adb: Call System.OS_Primitives.Initialize during elaboration
6038 2010-06-23 Robert Dewar <dewar@adacore.com>
6040 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Properly handle
6041 checking returns in generic case.
6042 (Check_Missing_Return): New procedure.
6044 2010-06-23 Robert Dewar <dewar@adacore.com>
6046 * bindgen.adb, switch-b.adb: Minor reformatting.
6048 2010-06-23 Javier Miranda <miranda@adacore.com>
6050 * frontend.adb (Frontend): Add call to initialize the new package
6052 * exp_ch7.adb (Wrap_Transient_Expression): Remove call to
6054 (Wrap_Transient_Statement): Remove call to Adjust_SCIL_Node.
6055 * sem_ch5.adb (Analyze_Iteration_Scheme.Process_Bounds): Remove call to
6057 * exp_util.adb (Insert_Actions): Remove code for
6058 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
6059 (Remove_Side_Effects): Remove calls to Adjust_SCIL_Node.
6060 * sinfo.adb (SCIL_Entity, SCIL_Tag_Value): Remove checks on
6061 N_SCIL_Tag_Init and N_SCIL_Dispatch_Table_Object_Init in the assertion.
6062 (SCIL_Related_Node, Set_SCIL_Related_Node): Removed.
6063 * sinfo.ads (SCIL_Related_Node): Field removed.
6064 (N_SCIL_Dispatch_Table_Object_Init): Node removed.
6065 (N_SCIL_Tag_Init): Node removed.
6066 * sem_scil.ads, sem_scil.adb (Adjust_SCIL_Node): Removed.
6067 (Check_SCIL_Node): New implementation.
6068 (Find_SCIL_Node): Removed.
6069 * sem.adb (Analyze): Remove management of
6070 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
6071 * sem_util.adb (Insert_Explicit_Dereference): Remove call to
6073 * exp_ch4.adb (Expand_N_In): Code cleanup: remove call to
6074 Set_SCIL_Related_Node and avoid adding the SCIL node before the
6075 referenced node using Insert_Action because this is not longer
6077 (Expand_Short_Circuit_Operator): Remove call to SCIL node.
6078 * exp_ch6.adb (Expand_Call): Remove call to Adjust_SCIL_Node.
6079 * sem_ch4.adb (Analyze_Type_Conversion): Remove call to
6081 * exp_disp.adb (Expand_Dispatching_Call): Minor code reorganization
6082 because we no longer require to generate the SCIL node before the call.
6083 (Make_DT): Remove generation of SCI_Dispatch_Table_Object_Init node.
6084 Remove calls to Set_SCIL_Related_Node and avoid adding the SCIL
6085 nodes before the referenced node using Insert_Action because this
6086 is not longer required.
6087 * atree.adb (Allocate_Initialize_Node, Replace, Rewrite): Add call to
6088 update the SCIL_Node field.
6089 * sprint.adb (Sprint_Node_Actual): Remove code for
6090 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
6091 * treepr.adb (Print_Node): Print the SCIL node field (if available).
6092 * exp_ch3.adb (Build_Init_Procedure): Remove generation of
6093 SCIL_Tag_Init nodes.
6094 * scil_ll.ads, scil_ll.adb: New files.
6095 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
6098 2010-06-23 Robert Dewar <dewar@adacore.com>
6100 * sem_ch6.adb: Minor reformatting.
6102 2010-06-23 Doug Rupp <rupp@adacore.com>
6104 * bindusg.adb (Display): Write -Hnn line.
6105 * bindgen.adb (Gen_Adainit_Ada): Write Heap_Size to binder file as
6107 * init.c (__gl_heap_size): Rename from __gl_no_malloc_64 and change
6108 valid values to 32 and 64.
6109 (GNAT$NO_MALLOC_64): Recognize TRUE, 1, FALSE, and 0 in addition to
6110 ENABLE, DISABLE as valid settings.
6111 * switch-b.adb (Scan_Binder_Switches): Process -Hnn switch.
6112 * opt.ads (Heap_Size): New global variable.
6113 * gcc-interface/utils2.c (maybe_wrap_malloc): Remove mostly redundant
6114 TARGET_MALLOC64 check. Fix comment.
6116 2010-06-23 Robert Dewar <dewar@adacore.com>
6118 * sem_ch6.adb, exp_ch4.adb, s-rannum.ads, sem.adb, sem_ch12.adb: Minor
6119 reformatting. Add comments.
6120 * errout.adb (Finalize): Properly adjust warning count when deleting
6123 2010-06-22 Robert Dewar <dewar@adacore.com>
6125 * errout.adb (Finalize): Set Prev pointers.
6126 (Finalize): Delete continuations for deletion by warnings off(str).
6127 * erroutc.ads: Add Prev pointer to error message structure.
6129 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6131 * sem.adb (Do_Unit_And_Dependents): If the spec of the main unit is a
6132 child unit, examine context of parent units to locate instantiated
6133 generics whose bodies may be needed.
6134 * sem_ch12.adb: (Mark_Context): if the enclosing unit does not have a
6135 with_clause for the instantiated generic, examine the context of its
6136 parents, to set Withed_Body flag, so that it can be visited earlier.
6137 * exp_ch4.adb (Expand_N_Op_Not): If this is a VMS operator applied to
6138 an unsigned type, use a type of the proper size for the intermediate
6139 value, to prevent alignment problems on unchecked conversion.
6141 2010-06-22 Geert Bosch <bosch@adacore.com>
6143 * s-rannum.ads Change Generator type to be self-referential to allow
6144 Random to update its argument. Use "in" mode for the generator in the
6145 Reset procedures to allow them to be called from the Ada.Numerics
6146 packages without tricks.
6147 * s-rannum.adb: Use the self-referencing argument to get write access
6148 to the internal state of the random generator.
6149 * a-nudira.ads: Make Generator a derived type of
6150 System.Random_Numbers.Generator.
6151 * a-nudira.adb: Remove use of 'Unrestricted_Access.
6152 Put subprograms in alpha order and add headers.
6153 * g-mbdira.ads: Change Generator type to be self-referential.
6154 * g-mbdira.adb: Remove use of 'Unrestricted_Access.
6156 2010-06-22 Robert Dewar <dewar@adacore.com>
6158 * freeze.adb: Minor reformatting
6159 Minor code reorganization (use Nkind_In and Ekind_In).
6161 2010-06-22 Bob Duff <duff@adacore.com>
6163 * gnat1drv.adb (Gnat1drv): Remove the messages that recommend using
6164 -gnatc when a file is compiled that we cannot generate code for, not
6165 helpful and confusing.
6167 2010-06-22 Vincent Celier <celier@adacore.com>
6169 * switch-m.adb (Normalize_Compiler_Switches): Process correctly
6172 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6174 * s-rannum.adb: Replace constants with commented symbols.
6175 * s-rannum.ads: Explain significance of the initial value of the data
6178 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6180 * a-ngcoty.adb: Clarify comment.
6182 2010-06-22 Gary Dismukes <dismukes@adacore.com>
6184 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Return without
6185 expansion for indexing packed arrays with small power-of-2 component
6186 sizes when the target is AAMP.
6187 (Expand_Packed_Element_Reference): Return without expansion for
6188 indexing packed arrays with small power-of-2 component sizes when the
6191 2010-06-22 Geert Bosch <bosch@adacore.com>
6193 * exp_ch4.adb (Expand_N_In): Do not substitute a valid check for X in
6196 2010-06-22 Robert Dewar <dewar@adacore.com>
6198 * g-mbdira.adb, g-mbflra.adb, a-nuflra.adb, a-nudira.adb: Minor comment
6201 2010-06-22 Doug Rupp <rupp@adacore.com>
6203 * system-vms.ads, system-vms-zcx.ads: Remove old unused VMS system
6205 * system-vms_64.ads, system-vms-ia64.ads: Minor reformatting.
6206 (pragma Ident): Add a default ident string in the private part.
6208 2010-06-22 Robert Dewar <dewar@adacore.com>
6210 * cstand.adb: Minor reformatting.
6212 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6214 * freeze.adb (Build_And_Analyze_Renamed_Body): For expansion purposes,
6215 recognize the Shift and Rotation intrinsics that are known to the
6216 compiler but have no interface name.
6218 2010-06-22 Geert Bosch <bosch@adacore.com>
6220 * a-ngcoty.adb ("*"): Rewrite complex multiplication to use proper
6221 scaling in case of overflow or NaN results.
6223 2010-06-22 Robert Dewar <dewar@adacore.com>
6225 * cstand.adb: Complete previous change.
6226 * g-dirope.ads: Add comment.
6227 * s-stchop.adb, sfn_scan.adb: Minor reformatting.
6229 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6231 * cstand.adb: Add tree nodes for pragma Pack on string types.
6233 2010-06-22 Javier Miranda <miranda@adacore.com>
6235 * einfo.ads, einfo.adb (Last_Formal): New synthesized attribute.
6236 * exp_util.adb (Find_Prim_Op): Use new attribute to locate the last
6237 formal of a primitive.
6238 * exp_disp.adb (Is_Predefined_Dispatching_Operation,
6239 Is_Predefined_Dispatching_Alias): Use new attribute to locate the last
6240 formal of a primitive.
6241 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Use new attribute
6242 to obtain the last formal of a primitive.
6244 2010-06-22 Geert Bosch <bosch@adacore.com>
6246 * sysdep.c, init.c, adaint.c, cstreams.c: Remove conditional code
6247 depending on __EMX__ or MSDOS being defined.
6248 * i-cstrea.ads, gnat_rm.texi: Remove mentions of OS/2, DOS and Xenix.
6249 * a-excpol-abort.adb: Update comment indicating users of the file.
6250 * xref_lib.adb, sfn_scan.adb: Remove mention of OS/2, replace NT by
6252 * env.c: Remove empty conditional for MSDOS.
6253 * s-stchop.adb, g-dirope.ads, s-fileio.adb, osint.ads: Remove mention
6256 2010-06-22 Robert Dewar <dewar@adacore.com>
6258 * s-rannum.adb: Minor reformatting.
6260 2010-06-22 Javier Miranda <miranda@adacore.com>
6262 * sem_aux.adb, sem_aux.ads, sem_util.adb, sem_util.ads, sem_elim.adb,
6263 exp_cg.adb: Minor code reorganization: Move routine Ultimate_Alias from
6264 package Sem_Util to package Sem_Aux.
6266 2010-06-22 Javier Miranda <miranda@adacore.com>
6268 * exp_disp.adb (Make_Secondary_DT, Make_DT): Minor code cleanup:
6269 remove useless restriction on imported routines when building the
6272 2010-06-22 Robert Dewar <dewar@adacore.com>
6274 * cstand.adb (Create_Standard): Set Has_Pragma_Pack for standard string
6277 2010-06-22 Javier Miranda <miranda@adacore.com>
6279 * sem_ch4.adb (Collect_Generic_Type_Ops): Protect code that handles
6280 generic subprogram declarations to ensure proper context. Add missing
6281 support for generic actuals.
6282 (Try_Primitive_Operation): Add missing support for concurrent types
6283 that have no Corresponding_Record_Type. Required to diagnose errors
6285 generics or when compiling with no code generation (-gnatc).
6286 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Do not build
6287 the corresponding record type.
6288 * sem_disp.ads, sem_disp.adb (Check_Dispatching_Operation): Complete
6289 documentation. Do minimum decoration when processing a primitive of a
6290 concurrent tagged type that covers interfaces. Required to diagnose
6291 errors in the Object.Operation notation compiling generics or under
6293 * exp_ch9.ads, exp_ch9.adb (Build_Corresponding_Record): Add missing
6294 propagation of attribute Interface_List to the corresponding record.
6295 (Expand_N_Task_Type_Declaration): Code cleanup.
6296 (Expand_N_Protected_Type_Declaration): Code cleanup.
6298 2010-06-22 Matthew Heaney <heaney@adacore.com>
6300 * a-convec.adb, a-coinve.adb: Removed 64-bit types Int and UInt.
6302 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6304 * s-rannum.adb (Random_Float_Template): Replace with unbiased version
6305 that is able to produce all representable floating-point numbers in the
6306 unit interval. Remove template parameter Shift_Right, no longer used.
6307 * gnat_rm.texi: Document the period of the pseudo-random number
6308 generator under the description of its algorithm.
6309 * gcc-interface/Make-lang.in: Update dependencies.
6311 2010-06-22 Thomas Quinot <quinot@adacore.com>
6313 * exp_aggr.adb (Rewrite_Discriminant): Fix predicate used to identify
6314 reference to discriminant (can be an expanded name as well as an
6317 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6319 * exp_ch6.adb: Clarify comment.
6321 2010-06-22 Geert Bosch <bosch@adacore.com>
6323 * exp_imgv.adb (Expand_Image_Attribute): Treat ordinary fixed point
6324 with decimal small as decimal types, avoiding FP arithmetic.
6325 (Has_Decimal_Small): New function.
6326 * einfo.ads, einfo.adb (Aft_Value): New synthesized attributed for
6328 * sem_attr.adb (Eval_Attribute): Remove Aft_Value function and update
6329 callers to call the new function in Einfo that takes the entity as
6332 2010-06-22 Robert Dewar <dewar@adacore.com>
6334 * sem_ch3.adb, sem_ch8.adb: Minor reformatting.
6336 2010-06-22 Thomas Quinot <quinot@adacore.com>
6338 * sem_elab.adb: Minor reformatting.
6340 2010-06-22 Vincent Celier <celier@adacore.com>
6342 * gnatsym.adb: Put the object files in the table in increasing
6343 aphabetical order of base names.
6345 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6347 * sem_ch8.adb (Set_Entity_Or_Discriminal): New procedure used by
6348 Find_Direct_Name and Find_Expanded_Name, to replace a discriminant with
6349 the corresponding discriminal within a record declaration.
6351 2010-06-22 Thomas Quinot <quinot@adacore.com>
6353 * exp_aggr.adb (Rewrite_Discriminant): Rewriting must occur only for an
6354 expression referring to a discriminal of the type of the aggregate (not
6355 a discriminal of some other unrelated type), and the prefix in the
6356 generated selected component must come from Lhs, not Obj.
6358 2010-06-22 Thomas Quinot <quinot@adacore.com>
6360 * sem_ch3.adb (Build_Derived_Record_Type): Fix predicate determining
6361 when to freeze the parent type.
6363 2010-06-22 Robert Dewar <dewar@adacore.com>
6365 * s-rannum.adb, a-nudira.adb, types.ads, freeze.adb, sem_aggr.adb,
6366 exp_aggr.adb: Minor reformatting.
6367 * gnat_rm.texi: Document GNAT.MBBS_Discrete_Random and
6368 GNAT.MBSS_Float_Random.
6369 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: Fix header.
6371 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6373 * a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-nuflra.ads,
6374 gnat_rm.texi, impunit.adb, Makefile.rtl, s-rannum.adb
6375 (Random_Float_Template, Random): New method of creating
6376 uniform floating-point variables that allow the creation of all machine
6379 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: New file.
6381 2010-06-22 Gary Dismukes <dismukes@adacore.com>
6383 * sem_ch5.adb (Analyze_Assignment): Revise test for illegal assignment
6384 to abstract targets to check that the type is tagged and comes from
6385 source, rather than only testing for targets of interface types. Remove
6388 2010-06-22 Vincent Celier <celier@adacore.com>
6390 * vms_data.ads: Modify the declarations of qualifiers
6391 /UNCHECKED_SHARED_LIB_IMPORTS to allow the generation of gnat.hlp
6394 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6396 * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false if
6397 expansion is disabled.
6399 2010-06-22 Robert Dewar <dewar@adacore.com>
6401 * makeusg.adb: Minor reformatting.
6403 2010-06-22 Robert Dewar <dewar@adacore.com>
6405 * types.ads: (Dint): Removed, no longer used anywhere.
6406 * uintp.adb (UI_From_CC): Use UI_From_Int, range is sufficient.
6407 (UI_Mul): Avoid use of UI_From_Dint.
6408 (UI_From_Dint): Removed, not used.
6409 * uintp.ads (UI_From_Dint): Removed, not used.
6410 (Uint_Min/Max_Simple_Mul): New constants.
6412 2010-06-22 Vincent Celier <celier@adacore.com>
6414 * clean.adb (Parse_Cmd_Line): Recognize switch
6415 --unchecked-shared-lib-imports.
6416 (Usage): Add line for switch --unchecked-shared-lib-imports
6417 * makeusg.adb: Add line for switch --unchecked-shared-lib-imports
6418 * makeutl.ads: (Unchecked_Shared_Lib_Imports): New constant string
6419 moved from GPR_Util.
6420 * switch-m.adb (Scan_Make_Switches): Recognize switch
6421 --unchecked-shared-lib-imports.
6422 * vms_data.ads: Add VMS qualifiers /UNCHECKED_SHARED_LIB_IMPORTS.
6423 * gnat_ugn.texi: Add documentation for new switch
6424 --unchecked-shared-lib-imports. Add also documentation for --subdirs.
6426 2010-06-22 Javier Miranda <miranda@adacore.com>
6428 * sem_prag.adb, sem_util.adb, sem_util.ads, sem_attr.adb, exp_ch6.adb,
6429 exp_disp.adb, sem_eval.adb, exp_dist.adb lib-xref.adb: Code cleanup,
6430 this patch replaces duplication of code that traverses the chain of
6431 aliased primitives by a call to routine Ultimate_Alias that
6432 provides this functionality.
6434 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6436 * fmap.adb, opt.ads, osint.adb, osint.ads, output.ads, scng.adb,
6437 sinput-c.adb, switch-m.ads, tree_io.ads: Use simpler form of
6440 2010-06-22 Thomas Quinot <quinot@adacore.com>
6442 * einfo.ads: Minor reformatting.
6444 2010-06-22 Javier Miranda <miranda@adacore.com>
6446 * exp_disp.adb (Expand_Interface_Thunk): Do not generate thunk of
6447 eliminated primitives.
6448 (Make_DT): Avoid referencing eliminated primitives.
6449 (Register_Primitive): Do not register eliminated primitives in the
6450 dispatch table. Required to add this functionality when the program is
6451 compiled without static dispatch tables (-gnatd.t)
6453 2010-06-22 Emmanuel Briot <briot@adacore.com>
6455 * fmap.adb, scng.adb, switch-m.ads, sinput-c.adb, opt.ads, output.ads,
6456 tree_io.ads, osint.adb, osint.ads: Use configuration pragmas to prevent
6457 warnings on use of internal GNAT units.
6459 2010-06-22 Jose Ruiz <ruiz@adacore.com>
6461 * s-taprop-vxworks.adb (Set_Priority): Update comments.
6463 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6465 * s-rannum.adb: Make stylistic change to remove mystery constant in
6466 Extract_Value. Image_Numeral_Length: new symbolic constant.
6468 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6470 * einfo.ads, einfo.adb: Make Is_Protected_Interface,
6471 Is_Synchronized_Interface, Is_Task_Interface into computable
6472 predicates, to free three flags in entity nodes.
6473 * sem_ch3.adb: Remove setting of these flags.
6475 2010-06-22 Robert Dewar <dewar@adacore.com>
6477 * uintp.adb, osint.adb, prj-conf.adb, prj-part.adb, prj.adb: Minor
6479 * s-taprop-vxworks.adb: Add comment for Set_Priority.
6480 * impunit.adb (Map_Array): Add entries for s-htable.ads and s-crc32.ads
6481 * projects.texi: Move @cindex to the left margin, since otherwise we
6482 are missing entries in the index.
6484 2010-06-22 Emmanuel Briot <briot@adacore.com>
6486 * prj-part.adb, prj.adb, tempdir.ads, makeutl.adb: Use
6487 packages from the GNAT hierarchy instead of System when possible.
6488 * gcc-interface/Make-lang.in: Update dependencies.
6490 2010-06-22 Jose Ruiz <ruiz@adacore.com>
6492 * s-taprop-vxworks.adb (Set_Priority): Remove the code that was
6493 previously in place to reorder the ready queue when a task drops its
6494 priority due to the loss of inherited priority.
6496 2010-06-22 Vincent Celier <celier@adacore.com>
6498 * projects.texi: Minor spelling error fixes.
6501 2010-06-22 Emmanuel Briot <briot@adacore.com>
6503 * prj-part.adb, prj-ext.adb, prj.adb, makeutl.adb, prj-conf.adb: Remove
6504 warnings for some with clauses.
6506 2010-06-22 Robert Dewar <dewar@adacore.com>
6508 * errout.adb (Unwind_Internal_Type): Improve handling of First_Subtype
6509 test to catch more cases where first subtype is the results we want.
6510 * sem_res.adb (Make_Call_Into_Operator): Don't go to First_Subtype in
6511 error case, since Errout will now handle this correctly.
6512 * gcc-interface/Make-lang.in: Add Sem_Aux to list of GNATBIND objects.
6513 Update dependencies.
6515 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6517 * exp_ch4.adb (Expand_Allocator_Expression): Set Related_Node properly
6518 when calling Make_Temporary.
6520 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6522 * sem_ch3.adb (Access_Subprogram_Declaration): An anonymous access to
6523 subprogram can be associated with an entry body.
6525 2010-06-22 Robert Dewar <dewar@adacore.com>
6527 * scos.ads: Add note on membership test handling.
6529 2010-06-22 Vincent Celier <celier@adacore.com>
6531 * projects.texi: Minor spelling fixes.
6534 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6536 * s-rannum.adb: Correct off-by-one error in Extract_Value.
6538 2010-06-22 Vincent Celier <celier@adacore.com>
6540 * mlib-prj.adb (Display): In non verbose mode, truncate after fourth
6542 * mlib-utl.adb (Gcc): In non verbose mode, truncate the display of the
6543 gcc command if it is too long.
6545 2010-06-22 Robert Dewar <dewar@adacore.com>
6547 * errout.adb (Set_Msg_Node): Fix incorrect reference to node.
6549 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6551 * exp_ch6.adb (Expand_Actuals): Use Actual as the related node when
6552 calling Make_Temporary.
6554 2010-06-22 Robert Dewar <dewar@adacore.com>
6556 * sem_res.adb, sem_aux.adb, errout.adb: Minor reformatting.
6558 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6560 * sem_res.adb: Additional special-case for VMS.
6562 2010-06-22 Vincent Celier <celier@adacore.com>
6564 * gnatsym.adb: Minor comment fix.
6566 2010-06-22 Vincent Celier <celier@adacore.com>
6568 * prj-nmsc.adb (Process_Naming_Scheme): Initialize Lib_Data_Table.
6570 2010-06-22 Robert Dewar <dewar@adacore.com>
6572 * par-ch4.adb (P_Name): Recognize 'Mod attribute in Ada 95 mode
6573 * sem_attr.adb (Attribute_05): Add Name_Mod so that 'Mod recognized in
6574 Ada 95 mode as an implementation defined attribute.
6576 2010-06-22 Vincent Celier <celier@adacore.com>
6578 * bindusg.adb (Display): Update line for -R
6579 * switch-b.adb (Scan_Binder_Switches): Allow generation of the binder
6580 generated files when -R is used.
6582 2010-06-22 Vincent Celier <celier@adacore.com>
6584 * prj-nmsc.adb (Lib_Data_Table): New table.
6585 (Check_Library_Attributes): Check if the same library name is used in
6586 two different projects that do not extend each other.
6588 2010-06-22 Robert Dewar <dewar@adacore.com>
6590 * lib-writ.ads, errout.adb, einfo.adb, einfo.ads: Minor reformatting.
6592 2010-06-22 Vincent Celier <celier@adacore.com>
6594 * adaint.c (__gnat_locate_regular_file): If a directory in the path is
6595 empty, make it the current working directory.
6597 2010-06-22 Thomas Quinot <quinot@adacore.com>
6599 * sem_ch3.adb (Build_Derived_Record_Type): When deriving a tagged
6600 private type with discriminants, make sure the parent type is frozen.
6602 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
6604 * exp_attr.adb (Expand_N_Attribute_Reference) <Attribute_Bit>: Deal
6605 with packed array references specially.
6606 * exp_ch4.adb (Expand_N_Indexed_Component): Do not convert a reference
6607 to a component of a bit packed array if it is the prefix of 'Bit.
6608 * exp_pakd.ads (Expand_Packed_Bit_Reference): Declare.
6609 * exp_pakd.adb (Expand_Packed_Bit_Reference): New procedure. Expand a
6610 'Bit reference, where the prefix involves a packed array reference.
6611 (Get_Base_And_Bit_Offset): New helper, extracted from...
6612 (Expand_Packed_Address_Reference): ...here. Call above procedure to
6613 get the outer object and offset expression.
6615 2010-06-22 Thomas Quinot <quinot@adacore.com>
6617 * exp_attr.adb, lib-writ.ads, bindgen.adb: Minor reformatting.
6618 * einfo.adb (Related_Expression, Set_Related_Expression): Add
6621 2010-06-22 Javier Miranda <miranda@adacore.com>
6623 * sem_ch3.adb (Add_Internal_Interface_Entities): Minor code
6624 reorganization to properly check if the operation has been inherited as
6625 an abstract operation.
6627 2010-06-22 Ed Falis <falis@adacore.com>
6629 * s-osinte-vxworks.ads: Complete previous change.
6631 2010-06-22 Thomas Quinot <quinot@adacore.com>
6633 * sem_res.adb: Add comment.
6634 * projects.texi, gnat_ugn.texi: Remove macro.
6636 2010-06-22 Vincent Celier <celier@adacore.com>
6638 * prj-attr.adb: Remove project level attribute Main_Language.
6640 2010-06-22 Robert Dewar <dewar@adacore.com>
6642 * switch-b.adb, osint-b.adb: Minor reformatting.
6644 2010-06-22 Pascal Obry <obry@adacore.com>
6646 * g-socthi-mingw.adb (C_Sendmsg): Do not attempt to send data from a
6647 vector if previous send was not fully successful. If only part of
6648 the vector data was sent, we exit the loop.
6650 2010-06-22 Thomas Quinot <quinot@adacore.com>
6652 * sem_res.adb (Make_Call_Into_Operator): Use First_Subtype for better
6653 error reporting with generic types.
6655 2010-06-22 Thomas Quinot <quinot@adacore.com>
6657 * bindgen.adb, bindusg.adb, gnatbind.adb, gnat_ugn.texi, opt.ads,
6658 osint-b.adb, osint-b.ads, output.adb, output.ads, switch-b.adb,
6659 vms_data.ads: Add a new command line switch -A to gnatbind to output
6660 the list of all ALI files for the partition.
6662 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6664 * s-osinte-vxworks.ads: Fix casing.
6665 * s-vxwext-kernel.ads, s-vxwext-rtp.ads: Complete previous
6666 change: Interfaces.C does not provide a long_long type.
6668 2010-06-22 Emmanuel Briot <briot@adacore.com>
6670 * gnat_ugn.texi, projects.texi: Preprocess projects.texi for VMS and
6671 native user's guide, since this document contains the two versions.
6672 * gcc-interface/Make-lang.in: Update doc dependencies.
6674 2010-06-22 Robert Dewar <dewar@adacore.com>
6676 * sem_ch3.adb: Minor reformatting. Minor code reorganization.
6678 2010-06-22 Emmanuel Briot <briot@adacore.com>
6680 * gnat_ugn.texi, projects.texi: Remove toplevel menu, since we should
6681 not build this file on its own (only through gnat_ugn.texi).
6682 Remove macro definitions and insert simpler version in gnat_ugn.texi.
6684 2010-06-22 Robert Dewar <dewar@adacore.com>
6686 * ali-util.ads: Minor comment update.
6687 * g-socthi-mingw.adb: Minor reformatting.
6689 2010-06-22 Ed Falis <falis@adacore.com>
6691 * s-osinte-vxworks.ads: Take sigset_t definition of System.VxWorks.Ext.
6692 * s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads: Define sigset_t
6693 for specific versions of VxWorks.
6695 2010-06-22 Emmanuel Briot <briot@adacore.com>
6697 * gnat_rm.texi, gnat_ugn.texi, projects.texi: Remove all project files
6698 related sections from user's guide and reference manual, since they
6699 have now been merged together into a separate document (projects.texi).
6700 This removes a lot of duplication where attributes where described
6702 The grammar for the project files is now in each of the sections
6703 (packages,expressions,...) instead of being duplicates in two other
6704 sections (one in the user's guide that contained the full grammar,
6705 and various sections in the rm that contained extracts of the same
6707 Added the full list of all supported attributes, since existing lists
6709 Rename "associative array" into "indexed attribute"
6710 Remove sections that were duplicates ("External References in
6711 Project Files" and "External Values", and "Project Extensions"
6712 for instance). The list of valid packages in project files is now in
6715 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6717 * sem_ch3.adb (Add_Internal_Interface_Entities): If
6718 Find_Primitive_Covering_Interface does not find the operation, it may
6719 be because of a name conflict between the inherited operation and a
6720 local non-overloadable name. In that case look for the operation among
6721 the primitive operations of the type. This search must succeed
6722 regardless of visibility.
6724 2010-06-22 Pascal Obry <obry@adacore.com>
6726 * g-socthi-mingw.adb: Properly honor MSG_WAITALL in recvmsg.
6727 (C_Recvmsg): Propely honor the MSG_WAITALL flag in Windows
6730 2010-06-22 Robert Dewar <dewar@adacore.com>
6732 * sem_ch4.adb (Analyze_Conditional_Expression): Defend against
6734 * sprint.adb (Sprint_Node_Actual, case N_Conditional_Expression):
6737 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6739 * s-intman-vxworks.ads: Code clean up.
6741 2010-06-22 Thomas Quinot <quinot@adacore.com>
6743 * sem_res.adb (Resolve_Slice): When the prefix is an explicit
6744 dereference, construct actual subtype of designated object to generate
6745 proper bounds checks.
6747 2010-06-22 Thomas Quinot <quinot@adacore.com>
6749 * ali-util.adb, ali-util.ads, gnatbind.adb (Read_ALI): Rename to
6750 Read_Withed_ALIs, which is more descriptive.
6752 2010-06-22 Pascal Obry <obry@adacore.com>
6754 * g-sothco.ads: Minor reformatting.
6755 * g-socthi-mingw.adb: Remove part of work on the C_Recvmsg and
6756 C_Sendmsg implementation.
6757 (C_Sendmsg): Do not use lock (not needed).
6758 (C_Recvmsg): Likewise and also do not wait for incoming data.
6760 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6762 * uintp.adb: Fix scope error in operator call.
6764 2010-06-22 Vincent Celier <celier@adacore.com>
6766 * makeutl.adb (Executable_Prefix_Path): on VMS, return "/gnu/".
6767 * prj-conf.adb (Get_Or_Create_Configuration_File): On VMS, if
6768 autoconfiguration is needed, fail indicating that no config project
6769 file can be found, as there is no autoconfiguration on VMS.
6771 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6773 * sem_res.adb (Make_Call_Into_Operator): Diagnose an incorrect scope
6774 for an operator in a functional notation, when operands are universal.
6776 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6778 * gcc-interface/Make-lang.in: Update dependencies.
6780 2010-06-22 Robert Dewar <dewar@adacore.com>
6782 * sem_aggr.adb (Resolve_Record_Aggregate): Do style check on component
6784 * sem_ch10.adb (Analyze_Subunit): Do style check on parent unit name.
6785 * sem_ch8.adb (Find_Direct_Name): For non-overloadable entities, do
6787 * sem_res.adb (Resolve_Entity_Name): Do style check for enumeration
6790 2010-06-22 Vincent Celier <celier@adacore.com>
6792 * make.adb (Scan_Make_Arg): No longer pass -nostdlib to the compiler as
6793 it has no effect. Always pass -nostdlib to gnatlink, even on VMS.
6795 2010-06-22 Pascal Obry <obry@adacore.com>
6797 * g-socthi-mingw.adb: Fix implementation of the vectored sockets on
6799 (C_Recvmsg): Make sure the routine is atomic. Also fully
6800 fill vectors in the proper order.
6801 (C_Sendmsg): Make sure the routine is atomic.
6803 2010-06-22 Robert Dewar <dewar@adacore.com>
6805 * sem_ch8.adb: Update comment.
6806 * sem_res.adb: Minor code reorganization (use Ekind_In).
6808 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6810 * sem_ch8.adb (Add_Implicit_Operator): If the context of the expanded
6811 name is a call, use the number of actuals to determine whether this is
6812 a binary or unary operator, rather than relying on later information
6813 to resolve the overload.
6815 2010-06-22 Robert Dewar <dewar@adacore.com>
6817 * sem_ch10.adb, sem_aggr.adb: Minor reformatting.
6819 2010-06-22 Robert Dewar <dewar@adacore.com>
6821 * sem_ch3.adb, sem_disp.adb: Minor code fixes.
6822 * sem_eval.adb: Minor reformatting.
6824 2010-06-22 Vincent Celier <celier@adacore.com>
6826 * make.adb (Scan_Make_Arg): When invoked with -nostdlib, pass -nostdlib
6827 to gnatlink, except on Open VMS.
6828 * osint.adb (Add_Default_Search_Dirs): Do not suppress the default
6829 object directories if -nostdlib is used.
6831 2010-06-22 Robert Dewar <dewar@adacore.com>
6833 * sem_util.adb (Is_Delegate): Put in proper alpha order.
6834 * sem_eval.adb: Minor reformatting.
6836 2010-06-22 Robert Dewar <dewar@adacore.com>
6838 * g-expect-vms.adb, sem_res.adb: Minor reformatting.
6839 * exp_aggr.adb: Minor comment changes and reformatting.
6840 * sem_eval.adb (Find_Universal_Operator_Type): Put in proper alpha
6842 * sem_util.ads: Add some missing pragma Inline's.
6844 2010-06-22 Thomas Quinot <quinot@adacore.com>
6846 * sem_util.adb (Build_Actual_Subtype): Record original expression in
6847 Related_Expression attribute of the constructed subtype.
6848 * einfo.adb, einfo.ads (Underlying_View): Move to Node28 to free up
6849 Node24 on types for...
6850 (Related_Expression): Make attribute available on types as well.
6852 2010-06-22 Gary Dismukes <dismukes@adacore.com>
6854 * exp_util.adb (Find_Interface_ADT): Retrieve Designated_Type instead
6855 of Directly_Designated_Type when the type argument is an access type.
6856 (Find_Interface_Tag): Retrieve Designated_Type instead of
6857 Directly_Designated_Type when the type argument is an access type.
6858 (Has_Controlled_Coextensions): Retrieve Designated_Type instead of
6859 Directly_Designated_Type of each access discriminant.
6860 * sem_res.adb (Resolve_Type_Conversion): Retrieve Designated_Type
6861 instead of Directly_Designated_Type when the operand and target types
6864 2010-06-22 Thomas Quinot <quinot@adacore.com>
6866 * exp_aggr.adb (Flatten): Return False if one choice is statically
6867 known to be out of bounds.
6869 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6871 * sem_res.adb (Resolve_Call): If the call is rewritten as an indexed of
6872 a parameterless function call, preserve parentheses of original
6873 expression, for proper handling by pretty printer.
6874 * sem_attr.adb (Analyze_Attribute, case 'Old): Add guard to Process
6875 procedure, to handle quietly identifiers that have no entity names.
6876 * exp_util.adb (Get_Current_Value_Condition): If the parent of an
6877 elsif_part is missing, it has been rewritten as a nested if, and there
6878 is no useful information on the current value of the variable.
6880 2010-06-22 Gary Dismukes <dismukes@adacore.com>
6882 * sem_ch3.adb (Build_Discriminal): Set default scopes for newly created
6883 discriminals to the current scope.
6884 * sem_util.adb (Find_Body_Discriminal): Remove setting of discriminal's
6885 scope, which could overwrite a different already set value.
6887 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6889 * sem_res.adb (Valid_Conversion): If expression is a predefined
6890 operator, use sloc of type of interpretation to improve error message
6891 when operand is of some derived type.
6892 * sem_eval.adb (Is_Mixed_Mode_Operand): New function, use it.
6894 2010-06-22 Emmanuel Briot <briot@adacore.com>
6896 * g-expect-vms.adb (Expect_Internal): No longer raises an exception, so
6897 that it can set out parameters as well. When a process has died, reset
6898 its Input_Fd to Invalid_Fd, so that when using multiple processes we
6899 can find out which process has died.
6901 2010-06-22 Thomas Quinot <quinot@adacore.com>
6903 * sem_eval.adb (Find_Universal_Operator_Type): New
6904 subprogram to identify the operand type of an operator on universal
6905 operands, when an explicit scope indication is present. Diagnose the
6906 case where such a call is ambiguous.
6907 (Eval_Arithmetic_Op, Eval_Relational_Op, Eval_Unary_Op):
6908 Use the above to identify the operand type so it can be properly
6910 * sem_res.adb (Make_Call_Into_Operator): Remove bogus freeze of operand
6911 type, done in an arbitrary, possibly incorrect type (the presence of
6912 some numeric type in the scope is checked for legality, but when more
6913 than one such type is in the scope, we just pick a random one, not
6914 necessarily the expected one).
6915 * sem_utils.ads, sem_utils.adb (Is_Universal_Numeric_Type): New utility
6918 2010-06-22 Robert Dewar <dewar@adacore.com>
6920 * sem_eval.adb: Minor reformatting.
6922 2010-06-22 Robert Dewar <dewar@adacore.com>
6924 * exp_ch4.adb (Expand_N_Conditional_Expression): Use
6925 Expression_With_Actions to clean up the code generated when folding
6926 constant expressions.
6928 2010-06-22 Vincent Celier <celier@adacore.com>
6930 * g-expect-vms.adb: Add new subprograms Free, First_Dead_Process and
6933 2010-06-22 Vincent Celier <celier@adacore.com>
6935 * prj-nmsc.adb (Find_Sources): When a source from a multi-unit file is
6936 found, check if it's path has aready been found, whatever its index.
6938 2010-06-22 Robert Dewar <dewar@adacore.com>
6940 * atree.adb, gnatbind.adb: Minor reformatting.
6941 Minor code reorganization.
6943 2010-06-21 Robert Dewar <dewar@adacore.com>
6945 * exp_ch4.adb (Expand_N_Conditional_Expression): Fold if condition
6946 known at compile time.
6948 2010-06-21 Gary Dismukes <dismukes@adacore.com>
6950 * atree.adb: Fix comment typo.
6952 2010-06-21 Ed Schonberg <schonberg@adacore.com>
6954 * sem_eval.adb (Test_Ambiguous_Operator): New procedure to check
6955 whether a universal arithmetic expression in a conversion, which is
6956 rewritten from a function call with an expanded name, is ambiguous.
6958 2010-06-21 Vincent Celier <celier@adacore.com>
6960 * prj-nmsc.adb (Name_Location): New Boolean component Listed, to record
6961 source files in specified list of sources.
6962 (Check_Package_Naming): Remove out parameters Bodies and Specs, as they
6964 (Add_Source): Set the Location of the new source
6965 (Process_Exceptions_File_Based): Call Add_Source with the Location
6966 (Get_Sources_From_File): If an exception is found, set its Listed to
6968 (Find_Sources): When Source_Files is specified, if an exception is
6969 found, set its Listed to True. Remove any exception that is not in a
6970 specified list of sources.
6971 * prj.ads (Source_Data): New component Location
6973 2010-06-21 Vincent Celier <celier@adacore.com>
6975 * gnatbind.adb (Closure_Sources): Global table, moved from block.
6977 2010-06-21 Thomas Quinot <quinot@adacore.com>
6979 * sem_res.adb: Minor reformatting.
6980 * atree.adb: New debugging hook "rr" for node rewrites.
6982 2010-06-21 Robert Dewar <dewar@adacore.com>
6984 * g-expect.ads, g-expect.adb: Minor reformatting.
6986 2010-06-21 Emmanuel Briot <briot@adacore.com>
6988 * s-regpat.adb (Next_Pointer_Bytes): New named constant. Code clean up.
6990 2010-06-21 Arnaud Charlet <charlet@adacore.com>
6992 * gcc-interface/Make-lang.in: Update dependencies.
6994 2010-06-21 Thomas Quinot <quinot@adacore.com>
6996 * bindgen.ads: Update comments.
6998 2010-06-21 Vincent Celier <celier@adacore.com>
7000 * gnatbind.adb: Suppress dupicates when listing the sources in the
7001 closure (switch -R).
7003 2010-06-21 Emmanuel Briot <briot@adacore.com>
7005 * s-regpat.adb (Link_Tail): Fix error when size of the pattern matcher
7008 2010-06-21 Emmanuel Briot <briot@adacore.com>
7010 * g-expect.adb, g-expect.ads (First_Dead_Process, Free, Has_Process):
7012 (Expect_Internal): No longer raises an exception, so that it can set
7013 out parameters as well. When a process has died, reset its Input_Fd
7014 to Invalid_Fd, so that when using multiple processes we can find out
7015 which process has died.
7017 2010-06-21 Robert Dewar <dewar@adacore.com>
7019 * s-regpat.adb, s-tpoben.adb, sem_attr.adb, sem_util.adb, sem_util.ads,
7020 checks.adb, sem_res.adb: Minor reformatting. Add comments.
7022 2010-06-21 Ed Schonberg <schonberg@adacore.com>
7024 * sem_ch6.adb (New_Overloaded_Entity): If the new entity is a
7025 rederivation associated with a full declaration in a private part, and
7026 there is a partial view that derives the same parent subprogram, the
7027 new entity does not become visible. This check must be applied to
7028 interface operations as well.
7030 2010-06-21 Thomas Quinot <quinot@adacore.com>
7032 * checks.adb: Add comments.
7033 * prj-nmsc.adb: Minor reformatting.
7035 2010-06-21 Thomas Quinot <quinot@adacore.com>
7037 * sem_ch9.adb, checks.adb, sem_util.adb, sem_util.ads, sem_res.adb,
7038 sem_attr.adb (Get_E_First_Or_Last): Use attribute references on E to
7039 extract bounds, to ensure that we get the proper captured values,
7040 rather than an expression that may have changed value since the point
7041 where the subtype was elaborated.
7042 (Find_Body_Discriminal): New utility subprogram to share code
7044 (Eval_Attribute): For the case of a subtype bound that references a
7045 discriminant of the current concurrent type, insert appropriate
7046 discriminal reference.
7047 (Resolve_Entry.Actual_Index_Type.Actual_Discriminant_Ref): For a
7048 requeue to an entry in a family in the current task, use corresponding
7050 (Analyze_Accept_Statement): Rely on expansion of attribute references
7051 to insert proper discriminal references in range check for entry in
7054 2010-06-21 Emmanuel Briot <briot@adacore.com>
7056 * s-regpat.adb (Compile): Fix handling of big patterns.
7058 2010-06-21 Robert Dewar <dewar@adacore.com>
7060 * a-tifiio.adb: Minor reformatting.
7062 2010-06-21 Pascal Obry <obry@adacore.com>
7064 * prj-nmsc.adb (Search_Directories): Use the non-translated directory
7067 2010-06-21 Javier Miranda <miranda@adacore.com>
7069 * exp_cg.adb (Write_Call_Info): Fill the component sourcename using the
7072 2010-06-21 Ed Schonberg <schonberg@adacore.com>
7074 * exp_ch4.adb (Expand_Concatenate): If an object declaration is created
7075 to hold the result, indicate that the target of the declaration does
7076 not need an initialization, to prevent spurious errors when
7077 Initialize_Scalars is enabled.
7079 2010-06-21 Ed Schonberg <schonberg@adacore.com>
7081 * a-tifiio.adb (Put): In the procedure that performs I/O on a String,
7082 Fore is not bound by line length. The Fore parameter of the internal
7083 procedure that performs the operation is an integer.
7085 2010-06-21 Thomas Quinot <quinot@adacore.com>
7087 * sem_res.adb, checks.adb: Minor reformatting.
7089 2010-06-21 Emmanuel Briot <briot@adacore.com>
7091 * s-regpat.adb (Next_Instruction, Get_Next_Offset): Removed, merged
7093 (Insert_Operator_Before): New subprogram, avoids duplicated code
7094 (Compile): Avoid doing two compilations when the pattern matcher ends
7097 2010-06-21 Emmanuel Briot <briot@adacore.com>
7099 * s-regpat.adb: Improve debug traces
7100 (Dump): Change output format to keep it smaller.
7102 2010-06-21 Javier Miranda <miranda@adacore.com>
7104 * exp_cg.adb (Generate_CG_Output): Disable redirection of standard
7105 output to the output file when this routine completes its work.
7107 2010-06-20 Eric Botcazou <ebotcazou@adacore.com>
7109 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Use while instead of
7110 for loop. Call build_constructor_from_list directly in the CICO case.
7112 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7114 * freeze.adb (Build_And_Analyze_Renamed_Body): If the renaming
7115 declaration appears in the same unit and ealier than the renamed
7116 entity, retain generated body to prevent order-of-elaboration issues in
7119 2010-06-18 Arnaud Charlet <charlet@adacore.com>
7121 * s-tpoben.adb: Update comments.
7123 2010-06-18 Robert Dewar <dewar@adacore.com>
7125 * debug.adb: Minor comment change.
7127 2010-06-18 Javier Miranda <miranda@adacore.com>
7129 * exp_cg.adb: Code clean up.
7130 * debug.adb: Complete documentation of switch -gnatd.Z.
7131 * gcc-interface/misc.c (callgraph_info_file): Declare.
7133 2010-06-18 Javier Miranda <miranda@adacore.com>
7135 * exp_cg.adb (Homonym_Suffix_Length): Minor code reorganization.
7137 2010-06-18 Thomas Quinot <quinot@adacore.com>
7139 * sprint.ads: Minor reformatting.
7140 * output.ads: Update obsolete comment.
7142 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7144 * freeze.adb (Build_And_Analyze_Renamed_Body): if the renamed entity is
7145 an external intrinsic operation (e.g. a GCC numeric function) indicate
7146 that the renaming entity has the same characteristics, so a call to it
7147 is properly expanded.
7149 2010-06-18 Javier Miranda <miranda@adacore.com>
7151 * exp_cg.adb, exp_cg.ads, exp_disp.adb, gnat1drv.adb: Add initial
7152 support for dispatch table/callgraph info generation.
7153 * gcc-interface/Make-lang.in: Update dependencies.
7155 2010-06-18 Robert Dewar <dewar@adacore.com>
7157 * exp_ch6.adb: Minor reformatting.
7158 * gnatname.adb: Add comment.
7160 2010-06-18 Vincent Celier <celier@adacore.com>
7162 * gnatname.adb (Scan_Args): When --and is used, make sure that the
7163 dynamic tables in the newly allocated Argument_Data are properly
7166 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
7168 * gnat1drv.adb: Fix comment.
7170 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7172 * exp_ch6.adb (Expand_Inlined_Call): If the inlined subprogram is a
7173 renaming, re-expand the call with the renamed subprogram if that one
7174 is marked inlined as well.
7176 2010-06-18 Gary Dismukes <dismukes@adacore.com>
7178 * gnat1drv.adb (Adjust_Global_Switches): Enable
7179 Use_Expression_With_Actions for AAMP and VM targets.
7181 2010-06-18 Vincent Celier <celier@adacore.com>
7183 * prj-nmsc.adb (Process_Linker): Recognize response file format GCC.
7185 2010-06-18 Thomas Quinot <quinot@adacore.com>
7187 * exp_ch4.adb: Minor reformatting.
7189 2010-06-18 Javier Miranda <miranda@adacore.com>
7191 * debug.ads Add documentation on -gnatd.Z.
7193 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7195 * sem_elim.adb: Proper error message on improperly eliminated instances
7197 2010-06-18 Vincent Celier <celier@adacore.com>
7199 * prj.ads (Response_File_Format): New value GCC.
7201 2010-06-18 Thomas Quinot <quinot@adacore.com>
7203 * gnat1drv.adb: Minor reformatting.
7205 2010-06-18 Robert Dewar <dewar@adacore.com>
7207 * make.adb, sem_cat.adb: Minor reformatting.
7208 * sem_eval.adb: Fix typos.
7210 2010-06-18 Pascal Obry <obry@adacore.com>
7212 * prj-nmsc.adb: Fix source filenames casing in debug output.
7214 2010-06-18 Robert Dewar <dewar@adacore.com>
7216 * gnatcmd.adb: Minor reformatting.
7218 2010-06-18 Robert Dewar <dewar@adacore.com>
7220 * sem_eval.adb (Eval_Conditional_Expression): Result is static if
7221 condition and both sub-expressions are static (and result is selected
7224 2010-06-18 Robert Dewar <dewar@adacore.com>
7226 * g-pehage.adb: Minor reformatting
7228 2010-06-18 Pascal Obry <obry@adacore.com>
7230 * prj-nmsc.adb (Search_Directories): Insert canonical filenames into
7233 2010-06-18 Arnaud Charlet <charlet@adacore.com>
7235 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
7236 dependencies. Fix target pairs on darwin.
7237 (gnatlib-sjlj, gnatlib-zcx): Pass THREAD_KIND.
7239 2010-06-18 Pascal Obry <obry@adacore.com>
7241 * make.adb, prj-nmsc.adb: Fix source filenames casing in debug output.
7243 2010-06-18 Vincent Celier <celier@adacore.com>
7245 * gnatcmd.adb: For gnatcheck, add -gnatec= switch for a global
7246 configuration pragmas file and, if -U is not used, for a local one.
7248 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7250 * sem_elim.adb (Check_Eliminated): Use full information on entity name
7251 when it is given in the pragma by a selected component.
7252 (Check_For_Eliminated_Subprogram): Do no emit error if within a
7253 instance body that is itself within a generic unit.
7254 * sem_ch12.adb (Analyze_Subprogram_Instance): If the subprogram is
7255 eliminated, mark as well the anonymous subprogram that is its alias
7256 and appears within the wrapper package.
7258 2010-06-18 Bob Duff <duff@adacore.com>
7260 * g-pehage.ads, g-pehage.adb (Produce): Clean up some of the code.
7261 Raise an exception if the output file cannot be opened. Add comments.
7263 2010-06-18 Thomas Quinot <quinot@adacore.com>
7265 * sem_cat.adb (Validate_Object_Declaration): A variable declaration is
7266 not illegal per E.2.2(7) if it occurs in the private part of a
7269 2010-06-18 Arnaud Charlet <charlet@adacore.com>
7271 * par-ch9.adb, sem_aggr.adb, sem_ch3.adb, layout.adb, sem_ch4.adb,
7272 sem_ch5.adb, sem_mech.adb, exp_util.adb, par-ch10.adb, sem_ch6.adb,
7273 par-ch11.adb, sem_ch7.adb, par-prag.adb, exp_disp.adb, par-ch12.adb,
7274 sem_ch8.adb, style.adb, sem_ch9.adb, sem_ch10.adb, prep.adb,
7275 sem_warn.adb, par-util.adb, scng.adb, sem_eval.adb, checks.adb,
7276 sem_prag.adb, sem_ch12.adb, styleg.adb, sem_ch13.adb, par-ch3.adb,
7277 par-tchk.adb, freeze.adb, sfn_scan.adb, par-ch4.adb, sem_util.adb,
7278 sem_res.adb, par-ch5.adb, lib-xref.adb, sem_attr.adb, par-ch6.adb,
7279 sem_disp.adb, prepcomp.adb, par-ch7.adb, sem_elab.adb, exp_ch4.adb,
7280 errout.ads: Update comments. Minor reformatting.
7282 * g-spipat.adb, a-swunau.adb, a-swunau.ads, g-spitbo.adb,
7283 a-szunau.adb, a-szunau.ads, a-stunau.adb, a-stunau.ads,
7284 a-strunb.adb (Big_String. Big_String_Access): New type.
7286 * par-labl.adb, restrict.adb, s-osinte-hpux-dce.ads, sem_ch11.adb,
7287 exp_pakd.adb, s-filofl.ads, par-endh.adb, exp_intr.adb, sem_cat.adb,
7288 sem_case.adb, exp_ch11.adb, s-osinte-linux.ads: Fix copyright notices.
7290 2010-06-18 Geert Bosch <bosch@adacore.com>
7292 * i-forbla-darwin.adb: Include -lgnala and -lm in linker options for
7295 2010-06-18 Robert Dewar <dewar@adacore.com>
7297 * gnat1drv.adb (Adjust_Global_Switches): Set Use_Expression_With_Actions
7300 2010-06-18 Robert Dewar <dewar@adacore.com>
7302 * sprint.adb: Minor format change for N_Expression_With_Actions.
7303 * repinfo.adb: Minor reformatting.
7305 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7307 * sem_elim.adb (Check_Eliminated): If within a subunit, use
7308 Defining_Entity to obtain the name of the entity in the proper body, to
7309 properly handle both separate packages and subprograms.
7311 2010-06-18 Emmanuel Briot <briot@adacore.com>
7313 * prj-nmsc.adb (Check_File): New parameter Display_Path.
7315 2010-06-18 Thomas Quinot <quinot@adacore.com>
7317 * g-socket.adb, g-socket.ads (Null_Selector): New object.
7319 2010-06-18 Pascal Obry <obry@adacore.com>
7321 * gnat_ugn.texi: Minor clarification.
7323 2010-06-18 Emmanuel Briot <briot@adacore.com>
7325 * prj-nmsc.adb (Find_Source_Dirs): Minor refactoring to avoid duplicate
7326 code when using the project dir as the source dir.
7327 (Search_Directories): use the normalized name for the source directory,
7328 where symbolic names have potentially been resolved.
7330 2010-06-18 Robert Dewar <dewar@adacore.com>
7332 * exp_ch4.adb (Expand_N_Conditional_Expression): Clear Actions field
7333 when we create N_Expression_With_Actions node.
7334 (Expand_Short_Circuit): Ditto.
7336 2010-06-18 Robert Dewar <dewar@adacore.com>
7338 * exp_util.adb: Minor reformatting.
7340 2010-06-18 Thomas Quinot <quinot@adacore.com>
7342 * types.ads: Clean up obsolete comments
7343 * tbuild.adb: Minor reformatting.
7344 * exp_ch5.adb, sem_intr.adb, sem_ch10.adb, rtsfind.adb, s-shasto.adb,
7345 exp_strm.adb, aa_drive.adb: Minor reformatting.
7346 * sem_res.adb (Is_Predefined_Operator): An operator that is an imported
7347 intrinsic with an Interface_Name denotes an imported back-end builtin,
7348 and must be rewritten into a call, not left in the tree as an operator,
7349 so return False in that case.
7351 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
7353 * exp_util.adb (Remove_Side_Effects): Make a copy for an allocator.
7355 2010-06-18 Robert Dewar <dewar@adacore.com>
7357 * scos.ads: Add proposed output for case expression
7359 2010-06-18 Jose Ruiz <ruiz@adacore.com>
7361 * gnat_ugn.texi: Document that, when using the RTX compiler to generate
7362 RTSS modules, we need to use the Microsoft linker.
7364 2010-06-18 Robert Dewar <dewar@adacore.com>
7366 * checks.adb (Safe_To_Capture_In_Parameter_Value): Deal with case
7367 expression (cannot count on a particular branch being executed).
7368 * exp_ch4.adb (Expand_N_Case_Expression): New procedure.
7369 * exp_ch4.ads (Expand_N_Case_Expression): New procedure.
7370 * exp_util.adb (Insert_Actions): Deal with proper insertion of actions
7371 within case expression.
7372 * expander.adb (Expand): Add call to Expand_N_Case_Expression
7373 * par-ch4.adb Add calls to P_Case_Expression at appropriate points
7374 (P_Case_Expression): New procedure
7375 (P_Case_Expression_Alternative): New procedure
7376 * par.adb (P_Case_Expression): New procedure
7377 * par_sco.adb (Process_Decisions): Add dummy place holder entry for
7379 * sem.adb (Analyze): Add call to Analyze_Case_Expression
7380 * sem_case.ads (Analyze_Choices): Also used for case expressions now,
7381 this is a documentation change only.
7382 * sem_ch4.ads, sem_ch4.adb (Analyze_Case_Expression): New procedure.
7383 * sem_ch6.adb (Fully_Conformant_Expressions): Add handling of case
7385 * sem_eval.ads, sem_eval.adb (Eval_Case_Expression): New procedure.
7386 * sem_res.adb (Resolve_Case_Expression): New procedure.
7387 * sem_scil.adb (Find_SCIL_Node): Add processing for
7388 N_Case_Expression_Alternative.
7389 * sinfo.ads, sinfo.adb (N_Case_Expression): New node.
7390 (N_Case_Expression_Alternative): New node.
7391 * sprint.adb (Sprint_Node_Actual): Add processing for new nodes
7392 N_Case_Expression and N_Case_Expression_Alternative.
7394 2010-06-18 Robert Dewar <dewar@adacore.com>
7396 * par-ch7.adb, sem_warn.adb, types.ads, par-ch3.adb: Minor
7398 * gnat1drv.adb: Fix typo.
7400 2010-06-18 Robert Dewar <dewar@adacore.com>
7402 * par-prag.adb (Prag, case Style_Checks): All_Checks sets gnat style
7404 * sem_prag.adb (Analyze_Pragma, case Style_Checks): All_Checks sets
7405 gnat style for -gnatg.
7406 * gnat_rm.texi: Add documentation for ALL_CHECKS in GNAT mode.
7408 2010-06-18 Thomas Quinot <quinot@adacore.com>
7410 * sem_eval.adb (Test_In_Range): New subprogram, factoring duplicated
7412 (Is_In_Range, Is_Out_Of_Range): Reimplement in terms of call to
7415 2010-06-18 Robert Dewar <dewar@adacore.com>
7417 * sprint.adb: Minor change in output format for expression wi actions.
7418 * par-ch3.adb: Minor code reorganization. Minor reformatting.
7419 * sem_ch5.adb: Minor comment fix.
7421 2010-06-18 Robert Dewar <dewar@adacore.com>
7423 * debug.adb: New debug flag -gnatd.L to control
7424 Back_End_Handles_Limited_Types.
7425 * exp_ch4.adb (Expand_N_Conditional_Expression): Let back end handle
7426 limited case if Back_End_Handles_Limited_Types is True.
7427 (Expand_N_Conditional_Expression): Use N_Expression_With_Actions to
7428 simplify expansion if Use_Expression_With_Actions is True.
7429 * gnat1drv.adb (Adjust_Global_Switches): Set
7430 Back_End_Handles_Limited_Types.
7431 * opt.ads (Back_End_Handles_Limited_Types): New flag.
7433 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7435 * sem_res.adb (Rewrite_Operator_As_Call): Do not rewrite user-defined
7436 intrinsic operator if expansion is not enabled, because in an
7437 instantiation the original operator must be present to verify the
7438 legality of the operation.
7440 2010-06-18 Robert Dewar <dewar@adacore.com>
7442 * exp_disp.adb, sem_ch12.adb: Minor reformatting
7444 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7446 * exp_util.adb (Make_Subtype_From_Expr): If the unconstrained type is
7447 the class-wide type for a private extension, and the completion is a
7448 subtype, set the type of the class-wide type to the base type of the
7451 2010-06-18 Robert Dewar <dewar@adacore.com>
7453 * g-socket.ads, sem_aggr.adb, einfo.ads, sem_elim.adb,
7454 sem_intr.adb, sem_eval.adb: Minor reformatting
7456 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7458 * sem_type.adb (Is_Ancestor): If either type is private, examine full
7461 2010-06-18 Thomas Quinot <quinot@adacore.com>
7463 * g-socket.adb, g-socket.ads (Check_Selector): Make Selector an IN
7464 parameter rather than IN OUT.
7466 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7468 * exp_ch6.adb: Add extra guard.
7470 2010-06-18 Gary Dismukes <dismukes@adacore.com>
7472 * sem_util.adb (Object_Access_Level): For Ada 2005, determine the
7473 accessibility level of a function call from the level of the innermost
7474 enclosing dynamic scope.
7475 (Innermost_Master_Scope_Depth): New function to find the depth of the
7476 nearest dynamic scope enclosing a node.
7478 2010-06-18 Tristan Gingold <gingold@adacore.com>
7480 * adaint.c: Make ATTR_UNSET static as it is not used outside this file.
7482 2010-06-18 Thomas Quinot <quinot@adacore.com>
7484 * g-socket.ads: Minor reformatting.
7486 2010-06-18 Vincent Celier <celier@adacore.com>
7488 * make.adb (Must_Compile): New Boolean global variable
7489 (Main_On_Command_Line): New Boolean global variable
7490 (Collect_Arguments_And_Compile): Do compile if Must_Compile is True,
7491 even when the project is externally built.
7492 (Start_Compile_If_Possible): Compile in -aL directories if
7493 Check_Readonly_Files is True. Do compile if Must_Compile is True, even
7494 when the project is externally built.
7495 (Gnatmake): Set Must_Compile and Check_Readonly_Files to True when
7496 invoked with -f -u and one or several mains on the command line.
7497 (Scan_Make_Arg): Set Main_On_Command_Line to True when at least one
7498 main is specified on the command line.
7500 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7502 * sem_ch6.adb (Build_Body_For_Inline): Handle
7503 extended_return_statements.
7504 * exp_ch6.adb (Expand_Inlined_Call): when possible, inline a body
7505 containing extented_return statements.
7506 * exp_util.adb (Make_CW_Equivalent_Type): If the root type is already
7507 constrained, do not build subtype declaration.
7509 2010-06-18 Robert Dewar <dewar@adacore.com>
7511 * sem_res.adb (Analyze_Indexed_Component, Analyze_Selected_Component):
7512 Warn on assigning to packed atomic component.
7514 2010-06-18 Robert Dewar <dewar@adacore.com>
7516 * sem_util.ads: Minor reformatting
7517 * einfo.ads, einfo.adb: Minor doc clarification (scope of decls in
7518 Expression_With_Actions).
7519 * snames.ads-tmpl: Minor comment fix
7521 2010-06-18 Robert Dewar <dewar@adacore.com>
7523 * sem_prag.adb (Diagnose_Multiple_Pragmas): New procedure
7524 (Set_Imported): Use Import_Interface_Present to control message output
7525 * sinfo.ads, sinfo.adb (Import_Interface_Present): New flag
7526 * gnat_rm.texi: Document that we can have pragma Import and pragma
7527 Interface for the same subprogram.
7529 2010-06-18 Robert Dewar <dewar@adacore.com>
7531 * lib-xref.adb (Generate_Reference): Fix bad reference to
7532 Has_Pragma_Unreferenced (clients should always use Has_Unreferenced).
7534 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7536 * gcc-interface/trans.c (set_gnu_expr_location_from_node): New static
7538 (gnat_to_gnu) <N_Expression_With_Actions>: New case.
7539 Use set_gnu_expr_location_from_node to set location information on the
7542 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7544 * gcc-interface/Make-lang.in: Update dependencies.
7546 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7548 * sem_util.adb (Is_Atomic_Object): Predicate does not apply to
7551 2010-06-17 Robert Dewar <dewar@adacore.com>
7553 * gnat_rm.texi, gnat_ugn.texi: Clean up documentation on warning and
7554 style check messages.
7555 * sem_res.adb (Resolve_Call): Don't call
7556 Check_For_Eliminated_Subprogram if we are analyzing within a spec
7559 2010-06-17 Robert Dewar <dewar@adacore.com>
7561 * debug.adb: Add documentation for debug flags .X and .Y
7562 * exp_ch4.adb (Expand_Short_Circuit_Operator): Use
7563 Use_Expression_With_Actions.
7564 * gnat1drv.adb (Adjust_Global_Switches): Set
7565 Use_Expression_With_Actions.
7566 * opt.ads (Use_Expression_With_Actions): New switch.
7568 2010-06-17 Robert Dewar <dewar@adacore.com>
7570 * exp_intr.adb: Minor code reorganization (use UI_Max)
7571 * sem_intr.adb: use underlying type to check legality.
7572 * einfo.adb (Known_Static_Esize): False for generic types
7573 (Known_Static_RM_Size): False for generic types
7574 * einfo.ads (Known_Static_Esize): False for generic types
7575 (Known_Static_RM_Size): False for generic types
7577 2010-06-17 Robert Dewar <dewar@adacore.com>
7579 * exp_ch4.ads: Minor code reorganization (specs in alpha order).
7581 2010-06-17 Robert Dewar <dewar@adacore.com>
7583 * debug.adb: New debug flag -gnatd.X to use Expression_With_Actions
7584 node when expanding short circuit form with actions present for right
7586 * exp_ch4.adb: Minor reformatting
7587 (Expand_Short_Circuit_Operator): Use new Expression_With_Actions node
7588 if right opeand has actions present, and debug flag -gnatd.X is set.
7589 * exp_util.adb (Insert_Actions): Handle case of Expression_With_Actions
7591 * nlists.adb (Prepend_List): New procedure
7592 (Prepend_List_To): New procedure
7593 * nlists.ads (Prepend_List): New procedure
7594 (Prepend_List_To): New procedure
7595 * sem.adb: Add processing for Expression_With_Actions
7596 * sem_ch4.adb (Analyze_Expression_With_Actions): New procedure
7597 * sem_ch4.ads (Analyze_Expression_With_Actions): New procedure
7598 * sem_res.adb: Add processing for Expression_With_Actions.
7599 * sem_scil.adb: Add processing for Expression_With_Actions
7600 * sinfo.ads, sinfo.adb (N_Expression_With_Actions): New node.
7601 * sprint.ads, sprint.adb: Add processing for Expression_With_Actions
7603 2010-06-17 Doug Rupp <rupp@adacore.com>
7605 * sem_intr.adb (Check_Intrinsic_Operator): Check that the types
7606 involved both have underlying integer types.
7607 * exp_intr.adb (Expand_Binary_Operator) New subprogram to expand a call
7608 to an intrinsic operator when the operand types or sizes are not
7610 * s-auxdec-vms_64.ads: Revert "+" "-" ops back to Address now that
7611 64/32 Address/Integer works.
7613 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7615 * sem_ch12.adb (Mark_Context): Refine placement of Withed_Body flag, so
7616 that it marks a unit as needed by a spec only if the corresponding
7617 instantiation appears in that spec (and not in the corresponding body).
7618 * sem_elim.adb (Check_Eliminated): If we are within a subunit, the name
7619 in the pragma Eliminate has been parsed as a child unit, but the
7620 current compilation unit is in fact the parent in which the subunit is
7623 2010-06-17 Vincent Celier <celier@adacore.com>
7625 * gnat_rm.texi: Fix typo
7627 2010-06-17 Robert Dewar <dewar@adacore.com>
7629 * sem_util.adb: Minor reformatting
7631 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7633 * sem.adb (Do_Withed_Unit): if the unit in the with_clause is a generic
7634 instance, the clause now denotes the instance body. Traverse the
7635 corresponding spec because there may be no other dependence that will
7636 force the traversal of its own context.
7638 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7640 * sem_ch10.adb (Is_Ancestor_Unit): Subsidiary to
7641 Install_Limited_Context_Clauses, to determine whether a limited_with in
7642 some parent of the current unit designates some other parent, in which
7643 case the limited_with clause must not be installed.
7644 (In_Context): Refine test.
7646 2010-06-17 Gary Dismukes <dismukes@adacore.com>
7648 * sem_util.adb (Collect_Primitive_Operations): In the of an untagged
7649 type with a dispatching equality operator that is overridden (for a
7650 tagged full type), don't include the overridden equality in the list of
7651 primitives. The overridden equality is detected by testing for an
7652 Aliased field that references the overriding equality.
7654 2010-06-17 Robert Dewar <dewar@adacore.com>
7656 * freeze.adb: Minor reformatting.
7658 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
7660 * gnat_ugn.texi: Add a section introducing gdbserver.
7662 2010-06-17 Thomas Quinot <quinot@adacore.com>
7664 * sem_res.adb, sem_ch4.adb, s-stoele.adb, par-labl.adb: Minor
7667 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7669 * sem_aggr.adb (Valid_Ancestor_Type): handle properly the case of a
7670 constrained discriminated parent that is a private type.
7671 (Analyze_Record_Aggregate): when collecting inherited discriminants,
7672 handle properly an ancestor type that is a constrained private type.
7674 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7676 * sem_util.adb (Enclosing_Subprogram): If the called subprogram is
7677 protected, use the protected_subprogram_body only if the original
7678 subprogram has not been eliminated.
7680 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7682 * freeze.adb (Freeze_Expression): The designated type of an
7683 access_to_suprogram type can only be frozen if all types in its profile
7686 2010-06-17 Robert Dewar <dewar@adacore.com>
7688 * par.adb: Minor comment fix
7689 * sem_aggr.adb, sem_ch3.adb: Minor reformatting
7691 2010-06-17 Doug Rupp <rupp@adacore.com>
7693 * s-auxdec-vms_64.ads: Revert Integer to Long_Integer change, instead
7694 change Address to Short_Address in functions where both must be the
7695 same size for intrinsics to work.
7697 2010-06-17 Thomas Quinot <quinot@adacore.com>
7699 * sem_ch4.adb (Analyze_Selected_Component): A selected component may
7700 not denote a (private) component of a protected object.
7702 2010-06-17 Bob Duff <duff@adacore.com>
7704 * par-labl.adb (Try_Loop): Test whether the label and the goto are in
7707 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
7709 * gnat_ugn.texi: Update the documentation about GDB re: exception
7712 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7714 * gnatvsn.ads: Bump to 4.6 version.
7716 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7718 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): The
7719 designated type of the generated pointer is the type of the original
7720 expression, not that of the function call itself, because the return
7721 type may be an untagged derived type and the function may be an
7722 inherited operation.
7724 2010-06-17 Robert Dewar <dewar@adacore.com>
7726 * exp_ch4.adb: Minor reformatting.
7728 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7730 * sinfo.ads, sinfo.adb (Inherited_Discriminant): New flag on
7731 N_Component_Association nodes, to indicate that a component association
7732 of an extension aggregate denotes the value of a discriminant of an
7733 ancestor type that has been constrained by the derivation.
7734 * sem_aggr.adb (Discr_Present): use Inherited_Discriminant to prevent a
7735 double expansion of the aggregate appearing in a context that delays
7736 expansion, to prevent double insertion of discriminant values when the
7737 aggregate is reanalyzed.
7739 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7741 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Do not use
7742 Allocator as the Related_Node of Return_Obj_Access in call to
7743 Make_Temporary below as this would create a sort of infinite
7746 2010-06-17 Ben Brosgol <brosgol@adacore.com>
7748 * gnat_ugn.texi: Update gnatcheck doc.
7750 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7752 * sem_ch3.adb (Build_Incomplete_Type_Declaration): If there is an
7753 incomplete view of the type that is not tagged, and the full type is a
7754 tagged extension, create class_wide type now, and warn that the
7755 incomplete view should be tagged as well.
7757 2010-06-17 Vincent Celier <celier@adacore.com>
7759 * gnatcmd.adb (Non_VMS_Usage): Do not issue usage for gnat sync.
7760 Update the last line of the usage, indicating what commands do not
7761 accept project file switches.
7762 * vms_conv.adb: Do not issue usage line for GNAT SYNC
7763 * vms_data.ads: Fix errors in the qualifiers /LOGFILE and /MAIN of
7765 * gnat_ugn.texi: Document the relaxed rules for library directories in
7766 externally built library projects.
7768 2010-06-17 Doug Rupp <rupp@adacore.com>
7770 * s-auxdec-vms_64.ads: Make boolean and arithmetic operations intrinsic
7772 * s-auxdec-vms-alpha.adb: Remove kludges for aforemention.
7773 * gcc-interface/Makefile.in: Update VMS target pairs.
7775 2010-06-17 Vasiliy Fofanov <fofanov@adacore.com>
7777 * adaint.c: Reorganized in order to avoid use of GetProcessId to stay
7778 compatible with Windows NT 4.0 which doesn't provide this function.
7780 2010-06-17 Vincent Celier <celier@adacore.com>
7782 * ali-util.adb (Time_Stamp_Mismatch): In Verbose mode, if there is
7783 different timestamps but the checksum is the same, issue a short
7786 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7788 * s-interr.adb (Finalize): If the Abort_Task signal is set to system,
7789 it means that we cannot reset interrupt handlers since this would
7790 require potentially sending the abort signal to the Server_Task.
7792 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7794 * exp_ch4.adb: expand NOT for VMS types.
7795 * sem_util.adb: Use OpenVMS_On_Target for IS_VMS_Operator.
7797 2010-06-17 Sergey Rybin <rybin@adacore.com>
7799 * vms_data.ads: Add qualifier for '--no-elim-dispatch' gnatelim option.
7800 * gnat_ugn.texi (gnatelim): add description for --no-elim-dispatch
7803 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7805 * exp_ch6.adb (Expand_Call): Do not expand a call to an internal
7806 protected operation if the subprogram has been eliminated.
7808 2010-06-17 Vincent Celier <celier@adacore.com>
7810 * prj-nmsc.adb (Check_Library_Attributes): Allow the different
7811 directories associated with a library to be any directory when the
7812 library project is externally built.
7814 2010-06-17 Vincent Celier <celier@adacore.com>
7816 * make.adb (Check): If switch -m is used, deallocate the memory that
7817 may be allocated when computing the checksum.
7819 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7821 * g-socthi-mingw.adb (C_Recvmsg): Add 'use type' clause for C.size_t;
7822 (C_Sendmsg): Likewise.
7824 2010-06-17 Thomas Quinot <quinot@adacore.com>
7826 * sem_res.adb: Update comments.
7828 2010-06-17 Vincent Celier <celier@adacore.com>
7830 * back_end.adb (Scan_Compiler_Arguments): Process last argument
7832 2010-06-17 Robert Dewar <dewar@adacore.com>
7834 * exp_ch3.adb, exp_ch6.adb, exp_smem.adb, exp_util.adb: Use Ekind_In.
7835 * layout.adb, freeze.adb: Use Make_Temporary.
7837 2010-06-17 Jerome Lambourg <lambourg@adacore.com>
7839 * exp_ch11.adb (Expand_N_Raise_Statement): Expand raise statements in
7840 .NET/JVM normally as this is now perfectly supported by the backend.
7842 2010-06-17 Pascal Obry <obry@adacore.com>
7844 * gnat_rm.texi: Fix minor typo, remove duplicate blank lines.
7846 2010-06-17 Vincent Celier <celier@adacore.com>
7848 * make.adb (Collect_Arguments_And_Compile): Create include path file
7849 only when -x is specified.
7851 * opt.ads (Use_Include_Path_File): New Boolean flag, initialized to
7853 * prj-env.adb (Set_Ada_Paths): New Boolean parameters Include_Path and
7854 Objects_Path, defaulted to True. Only create include path file if
7855 Include_Path is True, only create objects path file if Objects_Path is
7857 * prj-env.ads (Set_Ada_Paths): New Boolean parameters Include_Path and
7858 Objects_Path, defaulted to True.
7859 * switch-m.adb (Scan_Make_Switches): Set Use_Include_Path_File to True
7862 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7864 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
7865 determine whether it has the controlling type, when the formal is an
7868 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7870 * s-crtl.ads (ssize_t): New type.
7871 (read): Fix signature.
7873 * g-socthi.ads: Add 'with System.CRTL' clause. Remove ssize_t and
7874 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7875 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7876 (C_Sendmsg): Likewise.
7877 * g-socthi.adb (Syscall_Recvmsg): Likewise.
7878 (Syscall_Sendmsg): Likewise.
7879 (C_Recvmsg): Likewise.
7880 (C_Sendmsg): Likewise.
7881 * g-socthi-mingw.ads: Add 'with System.CRTL' clause. Remove ssize_t
7882 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7883 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7884 (C_Sendmsg): Likewise.
7885 * g-socthi-mingw.adb (C_Recvmsg): Likewise.
7886 (C_Sendmsg): Likewise.
7887 * g-socthi-vms.ads: Add 'with System.CRTL' clause. Remove ssize_t and
7888 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7889 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7890 (C_Sendmsg): Likewise.
7891 * g-socthi-vms.adb (C_Recvmsg): Likewise.
7892 (C_Sendmsg): Likewise.
7893 * g-socthi-vxworks.ads Add 'with System.CRTL' clause. Remove ssize_t
7894 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7895 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7896 (C_Sendmsg): Likewise.
7897 * g-socthi-vxworks.adb (C_Recvmsg): Likewise.
7898 (C_Sendmsg): Likewise.
7899 * g-sercom-linux.adb (Read): Use correct types to call 'read'.
7900 (Write): Likewise to call 'write'.
7901 * s-os_lib.adb (Read): Use correct type to call System.CRTL.read.
7902 (Write): Use correct type to call System.CRTL.write.
7903 * s-tasdeb.adb (Write): Likewise.
7905 2010-06-17 Vincent Celier <celier@adacore.com>
7907 * prj-proc.adb (Copy_Package_Declarations): Change argument name
7908 Naming_Restricted to Restricted. If Restricted is True, do not copy the
7909 value of attribute Linker_Options.
7911 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7913 * gcc-interface/trans.c (push_stack, pop_stack): Delete.
7914 (Case_Statement_to_gnu): Adjust.
7915 (Loop_Statement_to_gnu): Likewise.
7916 (Subprogram_Body_to_gnu): Likewise.
7917 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
7918 (Compilation_Unit_to_gnu): Likewise.
7920 2010-06-17 Robert Dewar <dewar@adacore.com>
7922 * exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb, exp_prag.adb,
7923 exp_sel.adb, exp_util.adb, sem_ch10.adb, sem_ch12.adb, sem_ch13.adb,
7924 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb, sem_ch9.adb,
7925 sem_dist.adb, sem_util.adb: Use Make_Temporary
7926 * itypes.ads, tbuild.ads: Minor comment update
7927 * exp_ch9.adb, exp_dist.adb: Minor reformatting
7929 2010-06-17 Thomas Quinot <quinot@adacore.com>
7931 * exp_imgv.adb, exp_ch7.ads: Minor reformatting.
7933 2010-06-17 Robert Dewar <dewar@adacore.com>
7935 * exp_ch9.adb, exp_disp.adb, exp_dist.adb: Use Make_Temporary.
7937 2010-06-17 Thomas Quinot <quinot@adacore.com>
7939 * sprint.adb (pg): Set Dump_Freeze_Null, to be consistent with -gnatdg.
7941 2010-06-17 Robert Dewar <dewar@adacore.com>
7943 * exp_ch6.adb, exp_ch7.adb, exp_ch5.adb: Use Make_Temporary
7944 * tbuild.ads (Make_Temporary): More comment updates
7945 * tbuild.adb: Minor reformatting
7947 2010-06-17 Robert Dewar <dewar@adacore.com>
7949 * checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch11.adb,
7950 exp_ch3.adb, exp_ch4.adb: Minor code reorganization.
7952 * tbuild.ads, tbuild.adb (Make_Temporary): Clean up, use Entity_Id
7954 (Make_Temporary): Add more extensive documentation
7956 2010-06-17 Robert Dewar <dewar@adacore.com>
7958 * sem_intr.adb, sem_prag.adb, sem_res.adb, sem_type.adb, sem_util.adb,
7959 sem_warn.adb, sem_eval.adb: Minor reformatting. Use Ekind_In.
7960 (Set_Slice_Subtype): Explicitly freeze the slice's itype at the point
7961 where the slice's actions are inserted.
7962 (Decompose_Expr): Account for possible rewriting of slice bounds
7963 resulting from side effects suppression caused by the above freezing,
7964 so that folding of bounds is preserved by such rewriting.
7966 2010-06-17 Robert Dewar <dewar@adacore.com>
7968 * einfo.ads, einfo.adb (Get_Record_Representation_Clause): New
7970 * freeze.adb (Freeze_Record_Type): Add call to
7971 Check_Record_Representation_Clause.
7972 * sem_ch13.adb (Check_Record_Representation_Clause): New function
7973 (Analyze_Record_Representation_Clause): Split out overlap code into
7975 (Check_Component_Overlap): Moved inside
7976 Check_Record_Representation_Clause.
7977 * sem_ch13.ads (Check_Record_Representation_Clause): New function.
7979 2010-06-17 Robert Dewar <dewar@adacore.com>
7981 * back_end.adb, sem_res.adb, switch-c.adb, sem_scil.adb: Minor
7983 * sem_attr.adb, sem_cat.adb, sem_disp.adb, sem_elab.adb, sem_elim.adb,
7984 sem_eval.adb: Use Ekind_In
7986 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7988 * sem_ch8.adb: better error message for illegal inherited discriminant
7990 2010-06-17 Vincent Celier <celier@adacore.com>
7992 * bindusg.adb: Remove lines for -A and -C
7993 * gnat_ugn.texi: Remove all documentation and examples of switches -A
7994 and -C for gnatbind and gnatlink.
7995 * gnatlink.adb (Usage): Remove lines for -A and -C
7996 * switch-b.adb (Scan_Binder_Switches): Issue warning when switch -C is
7998 * gcc-interface/Make-lang.in: Update dependencies.
8000 2010-06-17 Vincent Celier <celier@adacore.com>
8002 * back_end.adb (Scan_Compiler_Arguments): Put all arguments in new
8003 local Argument_List variable Args.
8004 * switch-c.adb (Scan_Front_End_Switches): New Argument_List argument
8006 (Switch_Subsequently_Cancelled): New Argument_List argument Args. Look
8007 for subsequent switches in Args.
8008 * switch-c.ads (Scan_Front_End_Switches): New Argument_List argument
8010 * gcc-interface/Make-lang.in: Update dependencies.
8012 2010-06-17 Robert Dewar <dewar@adacore.com>
8014 * einfo.adb: Minor code fix, allow E_Class_Wide_Type for
8015 Equivalent_Type to match documentation.
8017 2010-06-17 Robert Dewar <dewar@adacore.com>
8019 * sem_ch6.adb, sem_ch7.adb: Minor reformatting.
8020 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_ch10.adb, sem_ch12.adb,
8021 sem_ch4.adb, sem_ch8.adb, sem_ch13.adb: Make use of Ekind_In.
8023 2010-06-17 Thomas Quinot <quinot@adacore.com>
8025 * sem_res.adb (Set_Slice_Subtype): Always freeze the slice's itype.
8027 2010-06-17 Thomas Quinot <quinot@adacore.com>
8029 * freeze.adb (Freeze_Expression): Short circuit operators are valid
8030 freeze node insertion points.
8032 2010-06-17 Robert Dewar <dewar@adacore.com>
8034 * switch-c.ads, switch-c.adb, sem_ch13.adb: Minor reformatting.
8035 * sem_ch12.adb: Add pragmas Assert and Check to previous change.
8037 2010-06-17 Gary Dismukes <dismukes@adacore.com>
8039 * layout.adb (Layout_Type): Broaden test for setting an array type's
8040 Component_Size to include all scalar types, not just discrete types
8041 (components of real types were missed).
8042 * sem_ch3.adb (Constrain_Index): Add missing setting of First_Literal
8043 on the itype created for an index (consistent with Make_Index and
8044 avoids possible Assert_Failures).
8046 2010-06-17 Robert Dewar <dewar@adacore.com>
8048 * atree.ads, atree.adb: Add 6-parameter version of Ekind_In
8049 * einfo.adb: Minor code reformatting (use Ekind_In)
8051 2010-06-17 Robert Dewar <dewar@adacore.com>
8053 * sem_warn.adb (Test_Ref): Abandon scan if access subprogram parameter
8056 2010-06-17 Vincent Celier <celier@adacore.com>
8058 * back_end.adb: Minor comment updates
8059 * switch-c.adb: Remove dependencies on gcc C sources
8060 * gcc-interface/Make-lang.in: Add a-comlin.o to the object file list
8063 2010-06-17 Ed Schonberg <schonberg@adacore.com>
8065 * sem_ch12.adb: propagate Pragma_Enabled flag to generic.
8066 * get_scos.adb: Set C2 flag in decision entry of pragma to 'e'.
8067 * par_sco.ads, par_sco.adb (Set_SCO_Pragma_Enabled): New procedure
8068 Remove use of Node field in SCOs table
8069 (Output_Header): Set 'd' to initially disable pragma entry
8070 * put_scos.adb (Put_SCOs): New flag indicating if pragma is enabled
8071 * scos.ads, scos.adb: Remove Node field from internal SCOs table.
8072 Use C2 field of pragma decision header to indicate enabled.
8073 * sem_prag.adb: Add calls to Set_SCO_Pragma_Enabled.
8074 * gcc-interface/Make-lang.in: Update dependencies.
8076 2010-06-17 Vincent Celier <celier@adacore.com>
8078 * back_end.adb (Next_Arg): Moved to procedure Scan_Compiler_Arguments
8079 (Scan_Compiler_Arguments): Call Scan_Front_End_Switches with Next_Arg
8080 (Switch_Subsequently_Cancelled): Function moved to the body of Switch.C
8081 * back_end.ads (Scan_Front_End_Switches): Function moved to the body of
8083 * switch-c.adb: Copied a number of global declarations from
8085 (Len_Arg): New function copied from back_end.adb
8086 (Switch_Subsequently_Cancelled): New function moved from back_end.adb
8087 (Scan_Front_End_Switches): New parameter Arg_Rank used to call
8088 Switch_Subsequently_Cancelled.
8089 * switch-c.ads (Scan_Front_End_Switches): New parameter Arg_Rank.
8090 * gcc-interface/Makefile.in: Add line so that shared libgnat is linked
8091 with -lexc on Tru64.
8093 2010-06-17 Robert Dewar <dewar@adacore.com>
8095 * prj.ads, prj.adb: Minor reformatting
8097 2010-06-17 Thomas Quinot <quinot@adacore.com>
8099 * put_scos.adb: Do not generate a blank line in SCOs when omitting the
8100 CP line for a disabled pragma.
8102 2010-06-17 Emmanuel Briot <briot@adacore.com>
8104 * prj-proc.adb, prj.adb, prj.ads (Check_Or_Set_Typed_Variable): New
8106 (Process_Declarative_Item): An invalid value in an typed variable
8107 declaration is no longer always fatal.
8109 2010-06-16 Arnaud Charlet <charlet@adacore.com>
8111 * get_scos.adb, par_sco.adb, par_sco.ads, put_scos.adb, scos.adb,
8112 scos.ads, exp_ch4.adb, sem_warn.adb: Code clean up, update
8115 2010-06-16 Javier Miranda <miranda@adacore.com>
8117 * exp_disp.adb (Expand_Dispatching_Call): Adjust the decoration of the
8118 node referenced by the SCIL node of dispatching "=" to skip the tags
8121 2010-06-16 Ed Schonberg <schonberg@adacore.com>
8123 * sem_ch5.adb (Analyze_Exit_Statement): Return if no enclosing loop,
8124 to prevent cascaded errors and compilation aborts.
8126 2010-06-16 Robert Dewar <dewar@adacore.com>
8128 * back_end.adb (Switch_Subsequently_Cancelled): New function
8129 Move declarations to package body level to support this change
8130 * back_end.ads (Switch_Subsequently_Cancelled): New function
8131 * gnat_ugn.texi: Document -gnat-p switch
8132 * switch-c.adb (Scan_Front_End_Switches): Implement -gnat-p switch
8133 * ug_words: Add entry for -gnat-p (UNSUPPRESS_ALL)
8134 * usage.adb: Add line for -gnat-p switch
8135 * vms_data.ads: Add entry for UNSUPPRESS_ALL (-gnat-p)
8137 2010-06-16 Robert Dewar <dewar@adacore.com>
8139 * sem_warn.adb (Check_Infinite_Loop_Warning): Declaration counts as
8142 2010-06-16 Robert Dewar <dewar@adacore.com>
8144 * exp_disp.adb: Minor reformatting
8146 2010-06-16 Ed Schonberg <schonberg@adacore.com>
8148 * sem_ch3.adb (Complete_Private_Subtype): Inherit class_wide type from
8149 base type only if it was not previously created for the partial view.
8151 2010-06-16 Thomas Quinot <quinot@adacore.com>
8153 * tbuild.ads: Minor comment fix
8155 2010-06-15 Nathan Froyd <froydnj@codesourcery.com>
8157 * gcc-interface/trans.c (gnu_stack_free_list): Delete.
8158 (gnu_except_ptr_stack): Change type to VEC. Update comment.
8159 (gnu_elab_proc_stack): Likewise.
8160 (gnu_return_label_stack): Likewise.
8161 (gnu_loop_label_stack): Likewise.
8162 (gnu_switch_label_stack): Likewise.
8163 (gnu_constraint_label_stack): Likewise.
8164 (gnu_storage_error_label_stack): Likewise.
8165 (gnu_program_error_label_stack): Likewise.
8166 (push_exception_label_stack): Take a VEC ** instead of a tree *.
8167 (push_stack): Likewise. Remove unused second parameter. Update
8169 (pop_stack): Take a VEC * instead of a tree *. Update callers.
8170 (gigi): Initialize stacks as VECs.
8171 (Identifier_to_gnu): Use VEC_last instead of TREE_VALUE.
8172 (Case_Statement_to_gnu): Likewise.
8173 (Subprogram_Body_to_gnu): Likewise.
8174 (call_to_gnu): Likewise.
8175 (Exception_Handler_to_gnu_sjlj): Likewise.
8176 (gnat_to_gnu): Likewise.
8177 (get_exception_label): Likewise.
8179 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8181 * sem_ch3.adb (Build_Derived_Record_Type): if derived type is an
8182 anonymous base generated when the parent is a constrained discriminated
8183 type, propagate interface list to first subtype because it may appear
8184 in a current instance within the extension part of the derived type
8185 declaration, and its own subtype declaration has not been elaborated
8187 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
8188 determine whether it has the controlling type.
8190 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
8192 * exp_ch11.adb (Expand_N_Raise_Statement): Make sure that the explicit
8193 raise of CE, SE and PE have the reason correctly set and are properly
8194 expanded before stopping the expansions of .NET/JVM exceptions.
8196 2010-06-14 Robert Dewar <dewar@adacore.com>
8198 * opt.ads (Check_Policy_List): Add some clarifying comments
8199 * sem_prag.adb (Analyze_Pragma, case Check): Set Pragma_Enabled flag
8200 on rewritten Assert pragma.
8202 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8204 * sem_ch6.adb (Check_Overriding_Indicator): Add a special check for
8205 controlled operations, so that they will be treated as overriding even
8206 if the overridden subprogram is marked Is_Hidden, as long as the
8207 overridden subprogram's parent subprogram is not hidden.
8209 2010-06-14 Robert Dewar <dewar@adacore.com>
8211 * debug.adb: Entry for gnatw.d no longer specific for while loops
8212 * einfo.adb (First_Exit_Statement): New attribute for E_Loop
8213 * einfo.ads (First_Exit_Statement): New attribute for E_Loop
8214 * sem_ch5.adb (Analyze_Loop_Statement): Check_Infinite_Loop_Warning has
8215 new calling sequence to include test for EXIT WHEN.
8216 (Analyze_Exit_Statement): Chain EXIT statement into exit statement
8218 * sem_warn.ads, sem_warn.adb (Check_Infinite_Loop_Warning): Now handles
8220 * sinfo.adb (Next_Exit_Statement): New attribute of N_Exit_Statement
8222 * sinfo.ads (N_Pragma): Correct comment on Sloc field (points to
8223 PRAGMA, not to pragma identifier).
8224 (Next_Exit_Statement): New attribute of N_Exit_Statement node
8226 2010-06-14 Robert Dewar <dewar@adacore.com>
8228 * sem_res.adb (Resolve_Short_Circuit): Fix sloc of "assertion/check
8231 2010-06-14 Robert Dewar <dewar@adacore.com>
8233 * par-ch2.adb (Scan_Pragma_Argument_Association): Clarify message for
8234 missing pragma argument identifier.
8236 2010-06-14 Robert Dewar <dewar@adacore.com>
8238 * atree.ads, atree.adb (Ekind_In): New functions.
8240 2010-06-14 Robert Dewar <dewar@adacore.com>
8242 * exp_ch4.adb (Expand_N_Op_Expon): Optimize 2**N in stand alone context
8244 2010-06-14 Robert Dewar <dewar@adacore.com>
8246 * usage.adb (Usage): Redo documentation of -gnatwa.
8248 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8250 * sem_ch8.adb (Find_Type): The attribute 'class cannot be applied to
8251 an untagged incomplete type that is a limited view.
8253 2010-06-14 Sergey Rybin <rybin@adacore.com>
8255 * gnat_ugn.texi: Add description of '-cargs gcc_switches' to gnatstub
8258 2010-06-14 Thomas Quinot <quinot@adacore.com>
8260 * exp_ch4.adb (Expand_Short_Circuit_Operator): New subprogram,
8261 factoring duplicated code between...
8262 (Expand_N_And_Than, Expand_N_Or_Else): Remove duplicated code.
8263 * a-envvar.ads: Minor reformatting
8265 2010-06-14 Arnaud Charlet <charlet@adacore.com>
8267 * ali.adb, ali.ads, lib-xref.ads: Document new '+' letter for C/C++
8269 (Scan_ALI): Take into account new Visibility field.
8270 (Visibility_Kind): New type.
8271 (Xref_Entity_Record): Replace Lib field by Visibility.
8273 * gcc-interface/Make-lang.in: Update dependencies.
8275 2010-06-14 Pascal Obry <obry@adacore.com>
8277 * raise.h: Remove unused defintions.
8279 2010-06-14 Bob Duff <duff@adacore.com>
8281 * par-ch10.adb (P_Subunit): If the next token after "separate(X)" is
8282 Tok_Not or Tok_Overriding, call P_Subprogram. We had previously given
8283 the incorrect error "proper body expected".
8284 * par-ch6.adb (P_Subprogram): Suppress "overriding indicator not
8285 allowed here" error in case of subunits, which was triggered by the
8286 above change to P_Subunit.
8288 2010-06-14 Sergey Rybin <rybin@adacore.com>
8290 * gnat_ugn.texi, vms_data.ads: Update gnatelim doc.
8292 2010-06-14 Thomas Quinot <quinot@adacore.com>
8294 * lib-util.adb: Minor code reorganization.
8296 2010-06-14 Robert Dewar <dewar@adacore.com>
8298 * ali.adb (Scan_ALI): Implement reading and storing of N lines
8299 (Known_ALI_Lines): Add entry for 'N' (notes)
8300 * ali.ads (Notes): New table to store Notes information
8301 * alloc.ads: Add entries for Notes table
8302 * lib-util.adb (Write_Info_Int): New procedure
8303 (Write_Info_Slit): New procedure
8304 (Write_Info_Uint): New procedure
8305 * lib-util.ads (Write_Info_Int): New procedure
8306 (Write_Info_Slit): New procedure
8307 (Write_Info_Uint): New procedure
8308 * lib-writ.adb (Write_Unit_Information): Output N (notes) lines
8309 * lib-writ.ads: Update documentation for N (Notes) lines
8310 * lib.adb (Store_Note): New procedure
8311 * lib.ads (Notes): New table
8312 (Store_Note): New procedure
8313 * sem_prag.adb: Call Store_Note for affected pragmas
8315 2010-06-14 Thomas Quinot <quinot@adacore.com>
8317 * socket.c: Fix wrong condition in #ifdef
8318 * g-socket.adb, g-sothco.ads: Functions imported from socket.c that
8319 take or return char* values can't use Interfaces.C.Strings.chars_ptr,
8320 because on VMS this type is a 32-bit pointer which is not compatible
8321 with the default for C pointers for code compiled with gcc on that
8324 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8326 * sem_util (Is_VMS_Operator): New predicate to determine whether an
8327 operator is an intrinsic operator declared in the DEC system extension.
8328 * sem_res.adb (Resolve_Logical_Op): operation is legal on signed types
8329 if the operator is a VMS intrinsic.
8330 * sem_eval.adb (Eval_Logical_Op): Operation is legal and be
8331 constant-folded if the operands are signed and the operator is a VMS
8334 2010-06-14 Robert Dewar <dewar@adacore.com>
8336 * g-socket.adb, gnatcmd.adb: Minor reformatting.
8338 2010-06-14 Pascal Obry <obry@adacore.com>
8340 * s-finimp.adb: Fix typo.
8341 * raise.h: Remove duplicate blank line.
8343 2010-06-14 Vincent Celier <celier@adacore.com>
8345 * prj-nmsc.adb (Add_Sources): Always set the object file and the
8346 switches file names, as the configuration of the language may change
8347 in an extending project.
8348 (Process_Naming_Scheme): For sources of projects that are extended, set
8349 the configuration of the language from the highest extending project
8350 where the language is declared.
8352 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8354 * sem_res.adb (Resolve_Call): For infinite recursion check, test
8355 whether the called subprogram is inherited from a containing
8357 (Same_Or_Aliased_Subprograms): New function
8359 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8361 * sem_ch8.adb (End_Use_Type): Before indicating that an operator is not
8362 use-visible, check whether it is a primitive for more than one type.
8364 2010-06-14 Robert Dewar <dewar@adacore.com>
8366 * sem_ch3.adb (Copy_And_Swap): Copy Has_Pragma_Unmodified flag.
8368 * sem_ch7.adb (Preserve_Full_Attributes): Preserve
8369 Has_Pragma_Unmodified flag.
8371 2010-06-14 Thomas Quinot <quinot@adacore.com>
8373 * g-sttsne-locking.adb, g-sttsne-locking.ads, g-sttsne.ads,
8374 g-sttsne-vxworks.adb, g-sttsne-dummy.ads: Removed. Mutual exclusion is
8375 now done in GNAT.Sockets if necessary.
8376 * gsocket.h, g-socket.adb, g-sothco.ads (GNAT.Sockets.Get_XXX_By_YYY):
8377 Ensure mutual exclusion for netdb operations if the target platform
8379 (GNAT.Sockets.Thin_Common): New binding for getXXXbyYYY, treating
8380 struct hostent as an opaque type to improve portability.
8381 * s-oscons-tmplt.c, socket.c: For the case of Vxworks, emulate
8382 gethostbyYYY using proprietary VxWorks API so that a uniform interface
8383 is available for the Ada side.
8384 * gcc-interface/Makefile.in: Remove g-sttsne-*
8385 * gcc-interface/Make-lang.in: Update dependencies.
8387 2010-06-14 Vincent Celier <celier@adacore.com>
8389 * gnatcmd.adb (Mapping_File): New function.
8391 2010-06-14 Javier Miranda <miranda@adacore.com>
8393 * sem_ch3.adb (Derive_Subprograms): Remove over-restrictive assertion.
8395 2010-06-14 Arnaud Charlet <charlet@adacore.com>
8397 * ali.adb: Fix typo.
8398 * s-auxdec-vms-alpha.adb, scng.ads: Minor reformatting.
8400 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8402 * sem_ch12.adb: Make Mark_Context transitive, and apply to subprogram
8405 * sem_ch8.adb (Find_Expanded_Name): If a candidate compilation unit in
8406 the context does not have a homonym of the selector, emit default
8409 2010-06-14 Robert Dewar <dewar@adacore.com>
8411 * sem.adb, sem_ch12.adb, sem_util.adb: Minor reformatting and
8414 2010-06-14 Arnaud Charlet <charlet@adacore.com>
8416 * lib-xref.ads: Doc updates:
8417 - Allocate 'Q' for #include entity kind
8419 - Allocate 'g' for regular macros
8420 - Allocate 'G' for function-like macros
8422 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8424 * sinfo.ads, sinfo.adb (Withed_Body): New attribute of a with_clause.
8425 Indicates that there is an instantiation in the current unit that
8426 loaded the body of the unit denoted by the with_clause.
8427 * sem_ch12.adb (Mark_Context): When instanting a generic body, check
8428 whether a with_clause in the current context denotes the unit that
8429 holds the generic declaration, and mark the with_clause accordingly.
8430 (Instantiate_Package_Body): call Mark_Context.
8431 * sem.adb (Process_Bodies_In_Context): Use Withed_Body to determine
8432 whether a given body should be traversed before the spec of the main
8435 2010-06-14 Ed Falis <falis@adacore.com>
8437 * sysdep.c: Fix 653 build against vThreads headers.
8439 2010-06-14 Robert Dewar <dewar@adacore.com>
8441 * sinfo.ads: Minor reformatting.
8443 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8445 * sem_ch6.adb (Analyze_Subprogram_Body): Do not check conformance when
8446 the spec has been generated for a body without spec that carries an
8447 Inline_Always pragma.
8449 2010-06-14 Arnaud Charlet <charlet@adacore.com>
8451 * lib-xref.ads: Documentation change: allocate 'Z' letter to C/C++
8454 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
8456 * exp_dbug.adb (Debug_Renaming_Declaration): Do not output any debug
8457 declaration for VMs, as those are useless and might lead to duplicated
8458 local variable names in the generated code.
8459 * gcc-interface/Make-lang.in: Update dependencies.
8461 2010-06-14 Robert Dewar <dewar@adacore.com>
8463 * opt.ads, sem.adb, sem_elab.adb: Minor reformatting
8465 2010-06-14 Robert Dewar <dewar@adacore.com>
8467 * exp_aggr.adb (Has_Address_Clause): Moved to Exp_Util, and there it
8468 is renamed as Has_Following_Address_Clause.
8469 * exp_ch3.adb (Needs_Simple_Initialization): Add Consider_IS argument
8470 to allow the caller to avoid Initialize_Scalars having an effect.
8471 (Expand_N_Object_Declaration): Do not do Initialize_Scalars stuff for
8472 scalars with an address clause specified.
8473 * exp_ch3.ads (Needs_Simple_Initialization): Add Consider_IS argument
8474 to allow the caller to avoid Initialize_Scalars having an effect.
8475 * exp_util.adb (Has_Following_Address_Clause): Moved here from Exp_Aggr
8476 (where it was called Has_Address_Clause).
8477 * exp_util.ads (Has_Following_Address_Clause): Moved here from Exp_Aggr
8478 (where it was called Has_Address_Clause).
8479 * freeze.adb (Warn_Overlay): Suppress message about overlaying causing
8480 problems for Initialize_Scalars (since we no longer initialize objects
8481 with an address clause.
8483 2010-06-14 Robert Dewar <dewar@adacore.com>
8485 * exp_prag.adb (Expand_Pragma_Check): Set Loc of generated code from
8488 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8490 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Debug_Info_Needed
8491 on the entity of an implicitly generated postcondition procedure.
8493 2010-06-14 Thomas Quinot <quinot@adacore.com>
8495 * sem_ch7.adb (Preserve_Full_Attributes): Propagate
8496 Discriminant_Constraint elist from full view to private view.
8498 2010-06-14 Robert Dewar <dewar@adacore.com>
8500 * sem_res.adb: Minor reformatting.
8502 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8504 * sem.adb: New version of unit traversal.
8506 * sem_elab.adb (Check_Internal_Call): Do not place a call appearing
8507 within a generic unit in the table of delayed calls.
8509 2010-06-14 Robert Dewar <dewar@adacore.com>
8511 * gnatcmd.adb, sem_util.adb, exp_ch3.adb: Minor reformatting
8513 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8515 * sem_ch12.adb (Save_References): If an identifier has been rewritten
8516 during analysis as an explicit dereference, keep the reference implicit
8517 in the generic, but preserve the entity if global. This prevents
8518 malformed generic trees in the presence of some nested generics.
8520 2010-06-14 Sergey Rybin <rybin@adacore.com>
8522 * gnat_ugn.texi: For the GNAT driver, clarify the effect of calling the
8523 tool with '-files=' option. Also fix some small errors (wrong brackets)
8525 2010-06-14 Vincent Celier <celier@adacore.com>
8527 * gnatbind.adb: Call Scan_ALI with Directly_Scanned set to True for all
8528 the ALI files on the command line.
8530 * ali.adb (Scan_ALI): Set component Directly_Scanned of the unit(s) to
8531 the same value as the parameter of the same name.
8532 * ali.ads (Scan_ALI): New Boolean parameter Directly_Scanned, defaulted
8534 * bindgen.adb (Gen_Versions_Ada): Never emit version symbols for
8535 Stand-Alone Library interfaces. When binding Stand-Alone Libraries,
8536 emit version symbols only for the units of the library.
8537 (Gen_Versions_C): Ditto.
8539 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8541 * sem_ch4.adb: Fix typo.
8543 2010-06-14 Vasiliy Fofanov <fofanov@adacore.com>
8545 * s-oscons-tmplt.c (IOV_MAX): redefine on Tru64 and VMS since the
8546 vector IO doesn't work at default value properly.
8548 2010-06-14 Doug Rupp <rupp@adacore.com>
8550 * s-stoele.adb: Remove unnecessary qualification of To_Address for VMS.
8552 2010-06-14 Vincent Celier <celier@adacore.com>
8554 * gnatcmd.adb (Check_Files): Do not invoke the tool with all the
8555 sources of the project if a switch -files= is used.
8557 2010-06-14 Thomas Quinot <quinot@adacore.com>
8559 * exp_attr.adb: Minor reformatting.
8561 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8563 * gnat_ugn.texi: Minor typo fixes and wording changes.
8565 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8567 * sem_ch4.adb (Analyze_One_Call): If the call has been rewritten from a
8568 prefixed form, do not re-analyze first actual, which may need an
8569 implicit dereference.
8570 * sem_ch6.adb (Analyze_Procedure_Call): If the call is given in
8571 prefixed notation, the analysis will rewrite the node, and possible
8572 errors appear in the rewritten name of the node.
8573 * sem_res.adb: If a call is ambiguous because its first parameter is
8574 an overloaded call, report list of candidates, to clarify ambiguity of
8577 2010-06-14 Doug Rupp <rupp@adacore.com>
8579 * s-auxdec-vms-alpha.adb: New package body implementing legacy
8580 VAX instructions with Asm insertions.
8581 * s-auxdec-vms_64.ads: Inline VAX queue functions
8582 * s-stoele.adb: Resolve some ambiguities in To_Addresss with s-suxdec
8583 that show up only on VMS.
8584 * gcc-interface/Makefile.in: Provide translation for
8585 s-auxdec-vms-alpha.adb.
8587 2010-06-14 Olivier Hainque <hainque@adacore.com>
8589 * initialize.c (VxWorks section): Update comments.
8591 2010-06-14 Robert Dewar <dewar@adacore.com>
8593 * a-convec.adb, sem_prag.adb, checks.adb: Minor reformatting.
8595 2010-06-14 Eric Botcazou <ebotcazou@adacore.com>
8597 * init.c: Code clean up.
8599 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8601 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address): Do
8602 not insert address clause in table for later validation if type of
8603 entity is generic, to prevent possible spurious errors.
8605 * sem_ch8.adb: Code clean up.
8607 2010-06-14 Ben Brosgol <brosgol@adacore.com>
8609 * gnat_ugn.texi: Expanded @ovar macro inline to solve problem with
8610 texi2pdf and texi2html.
8611 Document how to change scheduling properties on HP-UX.
8613 2010-06-14 Thomas Quinot <quinot@adacore.com>
8615 * g-socket.ads: Remove misleading comments.
8617 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
8619 * sem_prag.adb (Check_Duplicated_Export_Name): Remove check for
8620 CLI_Target as this prevents proper detection of exported names
8621 duplicates when the exported language is different to CIL.
8622 (Process_Interface_Name): Add check for CIL convention exports,
8623 replacing the old one from Check_Duplicated_Export_Name.
8625 2010-06-14 Matthew Heaney <heaney@adacore.com>
8627 * a-coinve.adb, a-convec.adb (operator "&"): Check both that new length
8628 and new last satisfy constraints.
8629 (Delete_Last): prevent overflow for subtraction of index values
8630 (To_Vector): prevent overflow for addition of index values
8632 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8634 * sem_ch4.adb (Complete_Object_Operation): After analyzing the
8635 rewritten call, preserve the resulting type to prevent spurious errors,
8636 when the call is implicitly dereferenced in the context of an in-out
8639 * checks.adb (Apply_Discriminant_Check): If the target of the
8640 assignment is a renaming of a heap object, create constrained type for
8643 2010-06-14 Pascal Obry <obry@adacore.com>
8645 * prj-proc.adb: Fix copy of object directory for extending projects.
8647 2010-06-14 Jose Ruiz <ruiz@adacore.com>
8649 * init.c (__gnat_alternate_stack): Define this space for PowerPC linux
8650 (__gnat_install_handler, PowerPC linux): Activate the alternative
8653 2010-06-13 Gerald Pfeifer <gerald@pfeifer.com>
8655 * gnat_rm.texi: Move to GFDL version 1.3.
8656 * gnat-style.texi: Ditto.
8657 * gnat_ugn.texi: Ditto.
8659 2010-06-12 Kai Tietz <kai.tietz@onevision.com>
8662 * gcc-interface/Makefile.in: Add rules for multilib x86/x64
8665 2010-06-11 Alexandre Oliva <aoliva@redhat.com>
8667 * gcc-interface/utils.c (update_pointer_to): Initialize last.
8669 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
8671 * gcc-interface/ada-tree.h: Fix formatting nits.
8673 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8675 * gcc-interface/utils.c (init_gnat_to_gnu): Use typed GC
8677 (init_dummy_type): Likewise.
8678 (gnat_pushlevel): Likewise.
8680 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
8681 (Subprogram_Body_to_gnu): Likewise.
8682 (Compilation_Unit_to_gnu): Likewise.
8683 (start_stmt_group): Likewise.
8684 (extract_encoding): Likewise.
8685 (decode_name): Likewise.
8687 * gcc-interface/misc.c (gnat_printable_name): Likewise.
8689 * gcc-interface/decl.c (annotate_value): Likewise.
8691 * gcc-interface/ada-tree.h (struct lang_type): Add variable_size
8693 (struct lang_decl): Likewise.
8694 (SET_TYPE_LANG_SPECIFIC): Use typed GC allocation.
8695 (SET_DECL_LANG_SPECIFIC): Likewise.
8697 2010-06-04 Eric Botcazou <ebotcazou@adacore.com>
8699 * gnatlink.adb (gnatlink): Remove support for -fsjlj switch.
8700 * gcc-interface/lang-specs.h: Likewise.
8702 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
8705 * gcc-interface/decl.c (MAX_FIXED_MODE_SIZE): Removed.
8707 2010-06-01 Arnaud Charlet <charlet@adacore.com>
8709 * gnat_ugn.texi: Improve doc on -fdump-ada-spec, mention limitations.
8711 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
8713 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Task_Type>: Reuse the
8714 TYPE_DECL of the equivalent type instead of building a new one.
8716 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
8718 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust warning message.
8719 Fix nits in comments.
8720 * gcc-interface/misc.c (gnat_init_gcc_eh): Likewise.
8721 * gcc-interface/trans.c (gigi): Likewise.
8722 (Attribute_to_gnu): Likewise.
8723 (Case_Statement_to_gnu): Likewise.
8724 (gnat_to_gnu): Adjust warning message.
8725 * gcc-interface/utils.c (create_var_decl_1): Fix nits in comments.
8726 (build_vms_descriptor32): Likewise.
8728 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
8730 * gcc-interface/decl.c: Pretend to be a backend file by undefining
8731 IN_GCC_FRONTEND (still need rtl.h here).
8733 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8735 * gcc-interface/trans.c: Do not include rtl.h, insclude libfuncs.h.
8736 (gigi): Adjust call to set_stack_check_libfunc.
8738 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8740 * gcc-interface/utils.c: Do not include rtl.h.
8742 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
8744 * gcc-interface/utils.c: Do not include function.h, pointer-set.h,
8745 and gimple.h. Explain why rtl.h has to be included.
8746 (handle_vector_size_attribute): Call reconstruct_complex_type directly.
8747 * gcc-interface/targtyps.c: Do not include tm_p.h
8748 * gcc-interface/utils2.c: Do not include flags.h.
8749 * gcc-interface/trans.c: Do not include expr.h. Include rtl.h instead,
8750 and explain why it has to be included.
8751 * gcc-interface/misc.c: Do not include expr.h, libfuncs.h, cgraph.h,
8753 Include function.h and explain why. Explain why except.h is included.
8754 (enumerate_modes): Remove unused function.
8755 * gcc-interface/gigi.h (enumerate_modes): Remove prototype.
8756 * gcc-interface/Make-lang.in: Update dependencies.
8758 2010-05-25 Joseph Myers <joseph@codesourcery.com>
8760 * gcc-interface/misc.c (internal_error_function): Add context
8761 parameter. Use it to access show_column flag and instead of using
8762 global_dc. Call warn_if_plugins.
8763 * gcc-interface/Make-lang.in (ada/misc.o): Update dependencies.
8765 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
8767 * gcc-interface/misc.c (LANG_HOOKS_DEEP_UNSHARING): Redefine.
8768 * gcc-interface/trans.c (unshare_save_expr): Delete.
8769 (gigi): Do not unshare trees under SAVE_EXPRs here.
8771 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
8773 * gcc-interface/trans.c (call_to_gnu): Use build_call_vec instead of
8775 * gcc-interface/utils.c (build_function_stub): Likewise.
8777 2010-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
8779 * gcc-interface/misc.c (gnat_handle_option): Remove special logic
8780 for Wuninitialized without -O.
8782 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
8784 * gcc-interface/gigi.h (enum standard_datatypes): Add new value
8785 ADT_exception_data_name_id.
8786 (exception_data_name_id): New define.
8787 * gcc-interface/trans.c (gigi): Initialize it.
8788 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use the standard
8789 exception type for standard exception definitions. Do not make them
8791 <E_Record_Type>: Equate fields of types associated with an exception
8792 definition to those of the standard exception type.
8794 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
8796 * tracebak.c (__gnat_backtrace): Mark top_stack with ATTRIBUTE_UNUSED.
8798 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
8800 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Tidy up
8801 code, improve comments and fix formatting nits.
8803 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
8805 * gcc-interface/utils.c (update_pointer_to): Return early if the old
8806 pointer already points to the new type. Chain the old pointer and its
8807 variants at the end of new pointer's chain after updating them.
8809 2010-05-10 Eric Botcazou <ebotcazou@adacore.com>
8811 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables
8812 built for interfaces.
8813 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Use
8814 imported_p instead of Is_Imported when considering constants.
8815 Do not promote alignment of exported objects.
8816 <E_Record_Subtype>: Strip all suffixes for dispatch table entities.
8818 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8820 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables.
8821 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Make imported
8822 constants really constant.
8823 <E_Record_Subtype>: Strip the suffix for dispatch table entities.
8825 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8827 * gcc-interface/decl.c (make_aligning_type): Declare the type.
8829 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8831 * gcc-interface/decl.c (gnat_to_gnu_entity): Create variables for size
8832 expressions of variant part of record types declared at library level.
8834 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8836 * gcc-interface/gigi.h (create_field_decl): Move PACKED parameter.
8837 * gcc-interface/utils.c (create_field_decl): Move PACKED parameter.
8838 (rest_of_record_type_compilation): Adjust call to create_field_decl.
8839 (make_descriptor_field): Likewise and pass correctly typed constants.
8840 (build_unc_object_type): Likewise.
8841 (unchecked_convert): Likewise.
8842 * gcc-interface/decl.c (elaborate_expression_2): New static function.
8843 (gnat_to_gnu_entity): Use it to make alignment factors explicit.
8844 Adjust call to create_field_decl.
8845 (make_aligning_type): Likewise.
8846 (make_packable_type): Likewise.
8847 (maybe_pad_type): Likewise.
8848 (gnat_to_gnu_field): Likewise.
8849 (components_to_record): Likewise.
8850 (create_field_decl_from): Likewise.
8851 (create_variant_part_from): Remove superfluous test.
8852 * gcc-interface/trans.c (gigi): Adjust call to create_field_decl.
8854 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8856 * gcc-interface/gigi.h (build_unc_object_type): Add DEBUG_INFO_P param.
8857 (build_unc_object_type_from_ptr): Likewise.
8858 * gcc-interface/utils.c (build_unc_object_type): Add DEBUG_INFO_P param
8859 and pass it to create_type_decl. Declare the type. Simplify.
8860 (build_unc_object_type_from_ptr): Add DEBUG_INFO_P parameter and pass
8861 it to build_unc_object_type.
8862 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust to above change.
8863 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
8864 (gnat_to_gnu): Likewise.
8865 * gcc-interface/utils2.c (build_allocator): Likewise.
8867 2010-05-07 Eric Botcazou <ebotcazou@adacore.com>
8870 * gcc-interface/misc.c (gnat_handle_option): Fix long line.
8872 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8874 * gcc-interface/Makefile.in: Removed mips-sgi-irix5* support.
8876 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
8879 * gcc-interface/misc.c (gnat_handle_option): Add argument kind.
8881 2010-05-02 Giuseppe Scrivano <gscrivano@gnu.org>
8883 * gnathtml.pl: Use 755 as mask for new directories.
8885 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
8887 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Uniquize
8888 constant constructors before taking their address.
8890 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
8892 * exp_dbug.ads: Fix outdated description. Mention link between XVS
8894 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Set
8895 XVZ variable as unit size of XVS type.
8896 (maybe_pad_type): Likewise.
8898 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
8900 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Do not
8901 use memmove if the array type is bit-packed.
8903 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
8905 * gcc-interface/misc.c (gnat_init): Remove second argument in call to
8906 build_common_tree_nodes.
8908 2010-04-18 Ozkan Sezer <sezeroz@gmail.com>
8910 * gsocket.h: Make sure that winsock2.h is included before windows.h.
8912 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8914 * gcc-interface/utils2.c (build_unary_op) <ATTR_ADDR_EXPR>: Do not
8917 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8919 * uintp.h (UI_Lt): Declare.
8920 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do the size
8921 computation in sizetype.
8922 <E_Array_Subtype>: Use unified handling for all index types. Do not
8923 generate MAX_EXPR-based expressions, only COND_EXPR-based ones. Add
8925 (annotate_value): Change test for negative values.
8926 (validate_size): Apply test for negative values on GNAT nodes.
8927 (set_rm_size): Likewise.
8928 * gcc-interface/misc.c (gnat_init): Set unsigned types for sizetypes.
8929 * gcc-interface/utils.c (rest_of_record_type_compilation): Change test
8930 for negative values.
8931 (max_size) <MINUS_EXPR>: Do not reassociate a COND_EXPR on the LHS.
8932 (builtin_type_for_size): Adjust definition of signed_size_type_node.
8933 * gcc-interface/utils2.c (compare_arrays): Optimize comparison of
8934 lengths against zero.
8936 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8938 * back-end.adb (Call_Back_End): Pass Standard_Character to gigi.
8939 * gcc-interface/gigi.h (gigi): Add standard_character parameter.
8940 (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
8941 LONG_LONG_TYPE_SIZE, FLOAT_TYPE_SIZE, DOUBLE_TYPE_SIZE,
8942 LONG_DOUBLE_TYPE_SIZE, SIZE_TYPE): Delete.
8943 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Call
8945 * gcc-interface/misc.c (gnat_init): Set signedness of char as per
8946 flag_signed_char. Tag sizetype with "size_type" moniker.
8947 * gcc-interface/trans.c (gigi): Add standard_character parameter.
8948 Remove useless built-in types. Equate unsigned_char_type_node to
8949 Standard.Character. Use it instead of char_type_node throughout.
8950 (Attribute_to_gnu): Likewise.
8951 (gnat_to_gnu): Likewise.
8952 * gcc-interface/utils2.c (build_call_raise): Likewise.
8954 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8956 * gcc-interface/gigi.h (enum standard_datatypes): Add new values
8957 ADT_sbitsize_one_node and ADT_sbitsize_unit_node.
8958 (sbitsize_one_node): New macro.
8959 (sbitsize_unit_node): Likewise.
8960 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Fix
8961 latent bug in the computation of subrange_p. Fold wider_p predicate.
8962 (cannot_be_superflat_p): Use an explicitly signed 64-bit type to do
8963 the final comparison.
8964 (make_aligning_type): Build real negation and use sizetype throughout
8965 the offset computation.
8966 (maybe_pad_type): Do not issue the warning when the new size expression
8968 (annotate_value) <INTEGER_CST>: Simplify code handling negative values.
8969 * gcc-interface/misc.c (gnat_init): Initialize sbitsize_one_node and
8971 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Pool_Address>: Fold
8973 (gnat_to_gnu) <N_Free_Statement>: Likewise.
8974 * gcc-interface/utils.c (convert): Use sbitsize_unit_node.
8975 * gcc-interface/utils2.c (compare_arrays): Compute real lengths and use
8976 constants in sizetype. Remove dead code and tweak comments. Generate
8977 equality instead of inequality comparisons for zero length tests.
8979 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8981 * gcc-interface/gigi.h (gnat_init_decl_processing): Delete.
8982 * gcc-interface/decl.c (gnat_to_gnu_entity): Constify a few variables.
8983 <object>: Do not create the fake PARM_DECL if no debug info is needed.
8984 Do not create the corresponding VAR_DECL of a CONST_DECL for debugging
8985 purposes if no debug info is needed.
8986 Fix formatting. Reorder and add comments.
8987 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Reference>: Constify
8988 variable and remove obsolete comment.
8989 * gcc-interface/utils.c (convert_vms_descriptor64): Tweak comment.
8990 (convert_vms_descriptor32): Likewise.
8991 (convert): Remove dead code.
8992 <UNCONSTRAINED_ARRAY_REF>: Pass the field instead of its name to build
8993 the reference to the P_ARRAY pointer.
8994 <POINTER_TYPE>: Likewise.
8995 (maybe_unconstrained_array) <UNCONSTRAINED_ARRAY_TYPE>: Likewise.
8996 (gnat_init_decl_processing): Delete, move contents to...
8997 * gcc-interface/misc.c (gnat_init): ...here.
8999 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
9001 * gcc-interface/trans.c (unchecked_conversion_nop): Handle function
9002 calls. Return true for conversion from a record subtype to its type.
9004 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
9006 * gcc-interface/decl.c (gnat_to_gnu_entity): Use boolean_type_node in
9007 lieu of integer_type_node for boolean operations.
9008 (choices_to_gnu): Likewise.
9009 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
9010 (Loop_Statement_to_gnu): Likewise.
9011 (establish_gnat_vms_condition_handler): Likewise.
9012 (Exception_Handler_to_gnu_sjlj): Likewise.
9013 (gnat_to_gnu): Likewise.
9014 (build_unary_op_trapv): Likewise.
9015 (build_binary_op_trapv): Likewise.
9016 (emit_range_check): Likewise.
9017 (emit_index_check): Likewise.
9018 (convert_with_check): Likewise.
9019 * gcc-interface/utils.c (convert_vms_descriptor64): Likewise.
9020 (convert_vms_descriptor32): Likewise.
9021 (convert_vms_descriptor): Likewise.
9022 * gcc-interface/utils2.c (nonbinary_modular_operation): Likewise.
9023 (compare_arrays): Use boolean instead of integer constants.
9024 (build_binary_op) <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR,
9025 TRUTH_OR_EXPR, TRUTH_XOR_EXPR>: New case. Check that the result type
9027 <GE_EXPR, LE_EXPR, GT_EXPR, LT_EXPR>: Remove obsolete assertion.
9028 <EQ_EXPR, NE_EXPR>: Check that the result type is a boolean type.
9029 <PREINC/PREDECREMENT_EXPR, POSTINC/POSTDECREMENT_EXPR>: Delete.
9030 <TRUTH_NOT_EXPR>: Check that the result type is a boolean type.
9031 (build_unary_op): Use boolean_type_node in lieu of integer_type_node
9032 for boolean operations.
9033 (fill_vms_descriptor): Likewise. Fix formatting nits.
9035 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
9037 * gcc-interface/ada-tree.def (LOOP_STMT): Change to 4-operand nodes.
9038 * gcc-interface/ada-tree.h (LOOP_STMT_TOP_COND, LOOP_STMT_BOT_COND):
9040 (LOOP_STMT_COND): ...this.
9041 (LOOP_STMT_BOTTOM_COND_P): New flag.
9042 (LOOP_STMT_TOP_UPDATE_P): Likewise.
9043 * gcc-interface/trans.c (can_equal_min_or_max_val_p): New function.
9044 (can_equal_min_val_p): New static inline function.
9045 (can_equal_max_val_p): Likewise.
9046 (Loop_Statement_to_gnu): Use build4 in lieu of build5 and adjust to
9047 new LOOP_STMT semantics. Use two different strategies depending on
9048 whether optimization is enabled to translate the loop.
9049 (gnat_gimplify_stmt) <LOOP_STMT>: Adjust to new LOOP_STMT semantics.
9051 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
9053 * uintp.adb (UI_From_Dint): Remove useless code.
9054 (UI_From_Int): Likewise.
9055 * uintp.h: Reorder declarations.
9056 (UI_From_gnu): Declare.
9057 (UI_Base): Likewise.
9058 (Vector_Template): Likewise.
9059 (Vector_To_Uint): Likewise.
9062 * gcc-interface/gigi.h: Tweak comments.
9063 * gcc-interface/cuintp.c (UI_From_gnu): New global function.
9064 * gcc-interface/decl.c (maybe_pad_type): Do not warn if either size
9066 (annotate_value) <INTEGER_CST>: Call UI_From_gnu.
9067 * gcc-interface/trans.c (post_error_ne_num): Call post_error_ne.
9068 (post_error_ne_tree): Call UI_From_gnu and post_error_ne.
9069 * gcc-interface/utils.c (max_size) <tcc_binary>: Do not special-case
9072 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
9074 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Just copy
9076 * gcc-interface/trans.c (smaller_packable_type_p): Rename into...
9077 (smaller_form_type_p): ...this. Change parameter and variable names.
9078 (call_to_gnu): Use the nominal type of the parameter to create the
9079 temporary if it's a smaller form of the actual type.
9080 (addressable_p): Return false if the actual type is integral and its
9081 size is greater than that of the expected type.
9083 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
9085 * gcc-interface/cuintp.c (UI_To_gnu): Fix long line.
9086 * gcc-interface/gigi.h (MARK_VISITED): Skip objects of constant class.
9087 (process_attributes): Delete.
9088 (post_error_ne_num): Change parameter name.
9089 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force debug info
9090 with -g3. Remove a couple of obsolete lines. Minor tweaks.
9091 If type annotating mode, operate on trees to compute the adjustment to
9092 the sizes of tagged types. Fix long line.
9093 (cannot_be_superflat_p): Tweak head comment.
9094 (annotate_value): Fold local constant.
9095 (set_rm_size): Fix long line.
9096 * gcc-interface/trans.c (Identifier_to_gnu): Rework comments.
9097 (Attribute_to_gnu): Fix long line.
9098 <Attr_Size>: Remove useless assertion.
9099 Reorder statements. Use size_binop routine.
9100 (Loop_Statement_to_gnu): Use build5 in lieu of build_nt.
9101 Create local variables for the label and the test. Tweak comments.
9102 (Subprogram_Body_to_gnu): Reset cfun to NULL.
9103 (Compilation_Unit_to_gnu): Use the Sloc of the Unit node.
9104 (process_inlined_subprograms): Integrate into...
9105 (Compilation_Unit_to_gnu): ...this.
9106 (gnat_to_gnu): Fix long line.
9107 (post_error_ne_num): Change parameter name.
9108 * gcc-interface/utils.c (process_attributes): Static-ify.
9109 <ATTR_MACHINE_ATTRIBUTE>: Set input_location before proceeding.
9110 (create_type_decl): Add comment.
9111 (create_var_decl_1): Process the attributes after adding the VAR_DECL
9112 to the current binding level.
9113 (create_subprog_decl): Likewise for the FUNCTION_DECL.
9114 (end_subprog_body): Do not reset cfun to NULL.
9115 (build_vms_descriptor32): Fix long line.
9116 (build_vms_descriptor): Likewise.
9117 (handle_nonnull_attribute): Likewise.
9118 (convert_vms_descriptor64): Likewise.
9119 * gcc-interface/utils2.c (fill_vms_descriptor): Fix long line.
9120 (gnat_protect_expr): Fix thinko.
9122 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
9124 * gcc-interface/trans.c (gigi): Set DECL_IGNORED_P on EH functions.
9125 (gnat_to_gnu) <N_Op_Eq>: Restore the value of input_location
9126 before translating the top-level node.
9127 (lvalue_required_p) <N_Function_Call>: Return 1 if !constant.
9128 <N_Object_Declaration>: Likewise.
9129 <N_Assignment_Statement>: Likewise.
9130 <N_Unchecked_Type_Conversion>: Likewise.
9131 (call_to_gnu): Remove kludge.
9132 (gnat_to_gnu) <N_Return_Statement>: When not optimizing, force labels
9133 associated with user returns to be preserved.
9134 (gnat_to_gnu): Add special code to deal with boolean rvalues.
9135 * gcc-interface/utils2.c (compare_arrays): Set input_location on all
9137 (build_unary_op) <ADDR_EXPR>: Call build_fold_addr_expr.
9138 <INDIRECT_REF>: Call build_fold_indirect_ref.
9140 2010-04-15 Joel Sherrill <joel.sherrill@oarcorp.com>
9142 * g-socket.adb: A target can have multiple missing errno's. This
9143 will result in multiple errno's being defined as -1. Because of this
9144 we can not use a case but must use a series of if's to avoid
9145 a duplicate case error in GNAT.Sockets.Resolve_Error.
9147 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
9149 * gcc-interface/trans.c (call_to_gnu): Open a nesting level if this is
9150 a statement. Otherwise, if at top-level, push the processing of the
9151 elaboration routine. In the misaligned case, issue the error messages
9152 again on entry and create the temporary explicitly. Do not issue them
9154 For a function call, emit the range check if necessary.
9155 In the copy-in copy-out case, create the temporary for the return
9157 Do not unnecessarily convert by-ref parameters to the formal's type.
9158 Remove obsolete guards in conditions.
9159 (gnat_to_gnu) <N_Assignment_Statement>: For a function call, pass the
9160 target to call_to_gnu in all cases.
9161 (gnat_gimplify_expr) <ADDR_EXPR>: Remove handling of SAVE_EXPR.
9162 (addressable_p) <CONSTRUCTOR>: Return false if not static.
9163 <COMPOUND_EXPR>: New case.
9164 * gcc-interface/utils2.c (build_unary_op) <ADDR_EXPR>: Fold a compound
9165 expression if it has unconstrained array type.
9166 (gnat_mark_addressable) <COMPOUND_EXPR>: New case.
9167 (gnat_stabilize_reference) <COMPOUND_EXPR>: Stabilize operands on an
9170 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
9172 * gcc-interface/trans.c (gigi): Do not start statement group.
9173 (Compilation_Unit_to_gnu): Set current_function_decl to NULL.
9174 Start statement group and push binding level here...
9175 (gnat_to_gnu) <N_Compilation_Unit>: ...and not here.
9176 Do not push fake contexts at top level. Remove redundant code.
9177 (call_to_gnu): Rename a local variable and constify another.
9178 * gcc-interface/utils.c (gnat_pushlevel): Fix formatting nits.
9179 (set_current_block_context): Set it as the group's block.
9180 (gnat_init_decl_processing): Delete unrelated init code.
9181 (end_subprog_body): Use NULL_TREE.
9183 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
9185 * gcc-interface/trans.c (call_to_gnu): Do not unnecessarily force
9186 side-effects of actual parameters before the call.
9188 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
9190 * gcc-interface/decl.c (validate_size): Reorder, remove obsolete test
9192 (set_rm_size): Reorder and remove obsolete test.
9194 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
9196 * gcc-interface/gigi.h: Reorder declarations and tweak comments.
9197 (gigi): Adjust ATTRIBUTE_UNUSED markers.
9198 * gcc-interface/gadaint.h: New file.
9199 * gcc-interface/trans.c: Include it in lieu of adaint.h. Reorder.
9200 (__gnat_to_canonical_file_spec): Remove declaration.
9201 (number_names): Delete.
9202 (number_files): Likewise.
9204 * gcc-interface/Make-lang.in (ada/trans.o): Adjust dependencies to
9207 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
9209 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Class_Wide_Type>: Fix
9211 * gcc-interface/trans.c (process_freeze_entity): Use local copy of
9212 Ekind. Return early for class-wide types. Do not compute initializer
9213 unless necessary. Reuse the tree for an associated class-wide type
9214 only if processing its root type.
9216 2010-04-13 Joel Sherrill <joel.sherrill@oarcorp.com>
9218 * gsocket.h: Run-time can no longer be built without network
9219 OS headers available. Changing RTEMS GNAT build procedure to
9220 reflect this and letting run-time build use network .h files.
9222 2010-04-13 Duncan Sands <baldrick@free.fr>
9224 * gcc-interface/misc.c (gnat_eh_type_covers): Remove.
9225 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Update comment.
9227 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
9229 * gcc-interface/gigi.h (standard_datatypes): Add ADT_parent_name_id.
9230 (parent_name_id): New macro.
9231 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Use it.
9232 * gcc-interface/trans.c (gigi): Initialize it.
9233 (lvalue_required_p) <N_Type_Conversion>: New case.
9234 <N_Qualified_Expression>: Likewise.
9235 <N_Allocator>: Likewise.
9236 * gcc-interface/utils.c (convert): Try to properly upcast tagged types.
9238 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
9240 * gcc-interface/ada-tree.h (TYPE_BY_REFERENCE_P): Delete.
9241 (DECL_CONST_ADDRESS_P): New macro.
9242 (SET_DECL_ORIGINAL_FIELD_TO_FIELD): Likewise.
9243 (SAME_FIELD_P): Likewise.
9244 * gcc-interface/decl.c (constructor_address_p): New static function.
9245 (gnat_to_gnu_entity) <object>: Set DECL_CONST_ADDRESS_P according to
9246 the return value of above function.
9247 (gnat_to_gnu_entity) <E_Record_Type>: Force BLKmode for all types
9248 passed by reference.
9249 <E_Record_Subtype>: Likewise.
9250 Set TREE_ADDRESSABLE on the type if it passed by reference.
9251 (make_packable_type): Use SET_DECL_ORIGINAL_FIELD_TO_FIELD.
9252 (create_field_decl_from): Likewise.
9253 (substitute_in_type): Likewise.
9254 (purpose_member_field): Use SAME_FIELD_P.
9255 * gcc-interface/misc.c (must_pass_by_ref): Test TREE_ADDRESSABLE.
9256 * gcc-interface/trans.c (lvalue_required_p): Add ADDRESS_OF_CONSTANT
9257 parameter and adjust recursive calls.
9258 <N_Explicit_Dereference>: New case.
9259 <N_Object_Declaration>: Return 1 if the object is of a class-wide type.
9260 Adjust calls to lvalue_required_p. Do not return the initializer of a
9261 DECL_CONST_ADDRESS_P constant if an lvalue is required for it.
9262 (call_to_gnu): Delay issuing error message for a misaligned actual and
9263 avoid the associated back-end assertion. Test TREE_ADDRESSABLE.
9264 (gnat_gimplify_expr) <ADDR_EXPR>: Handle non-static constructors.
9265 * gcc-interface/utils.c (make_dummy_type): Set TREE_ADDRESSABLE if the
9266 type is passed by reference.
9267 (convert) <CONSTRUCTOR>: Convert in-place in more cases.
9268 * gcc-interface/utils2.c (build_cond_expr): Drop TYPE_BY_REFERENCE_P.
9269 (build_simple_component_ref): Use SAME_FIELD_P.
9271 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
9273 * gcc-interface/trans.c (Identifier_to_gnu): Use boolean variable.
9274 (call_to_gnu): Test gigi's flag TYPE_BY_REFERENCE_P instead of calling
9275 front-end's predicate Is_By_Reference_Type. Use consistent order and
9276 remove ??? comment. Use original conversion in all cases, if any.
9277 * gcc-interface/utils.c (make_dummy_type): Minor tweak.
9278 (convert): Use local copy in more cases.
9279 <INDIRECT_REF>: Remove deactivated code.
9280 (unchecked_convert): Use a couple of local copies.
9282 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
9284 * gcc-interface/trans.c (lvalue_required_for_attribute_p): New static
9286 (lvalue_required_p) <N_Attribute_Reference>: Call it.
9287 (gnat_to_gnu) <N_Selected_Component>: Prevent build_component_ref from
9288 folding the result only if lvalue_required_for_attribute_p is true.
9289 * gcc-interface/utils.c (maybe_unconstrained_array): Pass correctly
9290 typed constant to build_component_ref.
9291 (unchecked_convert): Likewise.
9292 * gcc-interface/utils2.c (maybe_wrap_malloc): Likewise.
9293 (build_allocator): Likewise.
9295 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
9297 * gcc-interface/utils2.c (build_cond_expr): Take the address and
9298 dereference if the result type is passed by reference.
9300 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
9302 * gcc-interface/trans.c (Case_Statement_to_gnu): Bool-ify variable.
9303 (gnat_to_gnu) <N_Null_Statement>: When not optimizing, generate a
9304 goto to the next statement.
9306 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
9308 * gcc-interface/gigi.h (maybe_variable): Delete.
9309 (protect_multiple_eval): Likewise.
9310 (maybe_stabilize_reference): Likewise.
9311 (gnat_save_expr): Declare.
9312 (gnat_protect_expr): Likewise.
9313 (gnat_stabilize_reference): Likewise.
9314 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use
9315 gnat_stabilize_reference.
9316 (maybe_variable): Delete.
9317 (elaborate_expression_1): Use gnat_save_expr.
9318 * gcc-interface/trans.c (Attribute_to_gnu): Use gnat_protect_expr.
9319 (call_to_gnu): Pass NULL to gnat_stabilize_reference.
9320 (gnat_to_gnu) <N_Object_Declaration>: Use gnat_save_expr.
9321 <N_Slice>: Use gnat_protect_exp.
9322 <N_Selected_Component>: Pass NULL to gnat_stabilize_reference.
9323 <N_In>: Use gnat_protect_expr.
9324 Pass NULL to gnat_stabilize_reference.
9325 (build_unary_op_trapv): Use gnat_protect_expr.
9326 (build_binary_op_trapv): Likewise.
9327 (emit_range_check): Likewise.
9328 (emit_index_check): Likewise.
9329 (convert_with_check): Likewise.
9330 (protect_multiple_eval): Move to utils2.c file.
9331 (maybe_stabilize_reference): Merge into...
9332 (gnat_stabilize_reference): ...this. Move to utils2.c file.
9333 (gnat_stabilize_reference_1): Likewise.
9334 * gcc-interface/utils.c (convert_to_fat_pointer): Use gnat_protect_expr
9335 instead of protect_multiple_eval.
9336 * gcc-interface/utils2.c (compare_arrays): Likewise.
9337 (nonbinary_modular_operation): Likewise.
9338 (maybe_wrap_malloc): Likewise.
9339 (build_allocator): Likewise.
9340 (gnat_save_expr): New function.
9341 (gnat_protect_expr): Rename from protect_multiple_eval. Early return
9342 in common cases. Propagate TREE_READONLY onto dereferences.
9343 (gnat_stabilize_reference_1): Move from trans.c file.
9344 (gnat_stabilize_reference): Likewise.
9346 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
9348 * gcc-interface/gigi.h (gnat_mark_addressable): Rename parameter.
9349 * gcc-interface/decl.c (maybe_variable): Do not set TREE_STATIC on _REF
9350 node. Use the type of the operand to set TREE_READONLY.
9351 * gcc-interface/trans.c (Identifier_to_gnu): Do not set TREE_STATIC on
9352 _REF node. Do not overwrite TREE_READONLY.
9353 (call_to_gnu): Rename local variable and fix various nits. In the
9354 copy-in/copy-out case, build the SAVE_EXPR manually.
9355 (convert_with_check): Call protect_multiple_eval in lieu of save_expr
9356 and fold the computations.
9357 (protect_multiple_eval): Always save entire fat pointers.
9358 (maybe_stabilize_reference): Minor tweaks.
9359 (gnat_stabilize_reference_1): Likewise. Do not deal with tcc_constant,
9360 tcc_type and tcc_statement.
9361 * gcc-interface/utils.c (convert_to_fat_pointer): Call
9362 protect_multiple_eval in lieu of save_expr.
9363 (convert): Minor tweaks.
9364 (maybe_unconstrained_array): Do not set TREE_STATIC on _REF node.
9365 (builtin_type_for_size): Call gnat_type_for_size directly.
9366 * gcc-interface/utils2.c (contains_save_expr_p): Delete.
9367 (contains_null_expr): Likewise
9368 (gnat_build_constructor): Do not call it.
9369 (compare_arrays): Deal with all side-effects, use protect_multiple_eval
9370 instead of gnat_stabilize_reference to protect the operands.
9371 (nonbinary_modular_operation): Call protect_multiple_eval in lieu of
9373 (maybe_wrap_malloc): Likewise.
9374 (build_allocator): Likewise.
9375 (build_unary_op) <INDIRECT_REF>: Do not set TREE_STATIC on _REF node.
9376 (gnat_mark_addressable): Rename parameter.
9378 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
9380 * gcc-interface/ada-tree.h (TYPE_RETURNS_UNCONSTRAINED_P): Rename into.
9381 (TYPE_RETURN_UNCONSTRAINED_P): ...this.
9382 (TYPE_RETURNS_BY_REF_P): Rename into.
9383 (TYPE_RETURN_BY_DIRECT_REF_P): ...this.
9384 (TYPE_RETURNS_BY_TARGET_PTR_P): Delete.
9385 * gcc-interface/gigi.h (create_subprog_type): Adjust parameter names.
9386 (build_return_expr): Likewise.
9387 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>:
9388 Rename local variables. If the return Mechanism is By_Reference, pass
9389 return_by_invisible_ref_p to create_subprog_type instead of toggling
9390 TREE_ADDRESSABLE. Test return_by_invisible_ref_p in order to annotate
9391 the mechanism. Use regular return for contrained types with non-static
9392 size and return by invisible reference for unconstrained return types
9393 with default discriminants. Update comment.
9394 * gcc-interface/trans.c (Subprogram_Body_to_gnu): If the function
9395 returns by invisible reference, turn the RESULT_DECL into a pointer.
9396 Do not handle DECL_BY_REF_P in the CICO case here.
9397 (call_to_gnu): Remove code handling return by target pointer. For a
9398 function call, if the return type has non-constant size, generate the
9399 assignment with an INIT_EXPR.
9400 (gnat_to_gnu) <N_Return_Statement>: Remove dead code in the CICO case.
9401 If the function returns by invisible reference, build the copy return
9403 (add_decl_expr): Initialize the variable with an INIT_EXPR.
9404 * gcc-interface/utils.c (create_subprog_type): Adjust parameter names.
9405 Adjust for renaming of macros. Copy the node only when necessary.
9406 (create_subprog_decl): Do not toggle TREE_ADDRESSABLE on the return
9407 type, only change DECL_BY_REFERENCE on the RETURN_DECL.
9408 (convert_from_reference): Delete.
9409 (is_byref_result): Likewise.
9410 (gnat_genericize_r): Likewise.
9411 (gnat_genericize): Likewise.
9412 (end_subprog_body): Do not call gnat_genericize.
9413 * gcc-interface/utils2.c (build_binary_op) <INIT_EXPR>: New case.
9414 (build_return_expr): Adjust parameter names, logic and comment.
9416 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
9418 * exp_pakd.adb (Create_Packed_Array_Type): Always use a modular type
9419 if the size is small enough. Propagate the alignment if there is an
9420 alignment clause on the original array type.
9421 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
9422 Deal with under-aligned packed array types. Copy the size onto the
9423 justified modular type and don't lay it out again. Likewise for the
9424 padding type built for other under-aligned subtypes.
9425 * gcc-interface/utils.c (finish_record_type): Do not set a default mode
9428 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
9430 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set default
9431 alignment on the RETURN type built for the Copy-In Copy-Out mechanism.
9433 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
9435 * gcc-interface/trans.c (call_to_gnu): In the return-by-target-ptr case
9436 do not set the result type if there is a specified target and do not
9437 convert the result in any cases.
9438 (protect_multiple_eval): Make direct SAVE_EXPR for CALL_EXPR.
9439 (maybe_stabilize_reference) <COMPOUND_EXPR>: Merge with CALL_EXPR.
9441 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
9443 * gcc-interface/Makefile.in (SPARC/Solaris): Use sparcv8plus.
9445 2010-02-27 Eric Botcazou <ebotcazou@adacore.com>
9448 * gcc-interface/utils2.c (build_binary_op) <EQ_EXPR>: Assert that fat
9449 pointer base types are variant of each other. Apply special treatment
9450 for null to fat pointer types in all cases.
9452 2010-01-28 Pascal Obry <obry@adacore.com>
9454 * s-win32.ads: Add some missing constants.
9456 2010-01-28 Vincent Celier <celier@adacore.com>
9458 * prj-attr-pm.adb (Add_Attribute): Do nothing if To_Package is
9461 2010-01-28 Robert Dewar <dewar@adacore.com>
9463 * gnat_rm.texi: Minor correction
9465 2010-01-27 Pascal Obry <obry@adacore.com>
9467 * g-awk.adb: ensure that an AWK session is reusable.
9469 2010-01-27 Vasiliy Fofanov <fofanov@adacore.com>
9471 * g-regist.adb (For_Every_Key): Fix previous change.
9474 2010-01-27 Thomas Quinot <quinot@adacore.com>
9476 * lib-writ.ads: Current version of spec for new N (note) ALI lines
9478 2010-01-27 Yannick Moy <moy@adacore.com>
9480 * a-cdlili.adb (Insert): Correct exception message when cursor
9481 designates wrong list.
9483 2010-01-27 Vincent Celier <celier@adacore.com>
9485 * gnatcmd.adb: When there is only one main specified, the package
9486 support Switches (<main>) and attribute Switches is specified for the
9487 main, use these switches, instead of Default_Switches ("Ada").
9489 2010-01-27 Robert Dewar <dewar@adacore.com>
9491 * sem_prag.adb, par-prag.adb, snames.ads-tmpl: pragma Dimension initial
9493 * exp_disp.adb: Minor reformatting
9495 2010-01-27 Tristan Gingold <gingold@adacore.com>
9497 * seh_init.c: Use __ImageBase instead of _ImageBase.
9499 2010-01-27 Javier Miranda <miranda@adacore.com>
9501 * exp_disp.ads, exp_disp.adb (Expand_Interface_Thunk): Modify the
9502 profile of interface thunks. The type of the controlling formal is now
9503 the covered interface type (instead of the target tagged type).
9505 2010-01-27 Sergey Rybin <rybin@adacore.com>
9507 * gnat_rm.texi, gnat_ugn.texi: Update gnatcheck doc.
9509 2010-01-27 Robert Dewar <dewar@adacore.com>
9511 * sinput.ads, sinput.adb (Sloc_Range): Applies to all nodes, formal
9512 changed from Expr to N.
9514 2010-01-26 Thomas Quinot <quinot@adacore.com>
9516 * gnat_ugn.texi: Adjust documentation of -gnatz switches.
9517 * usage.adb: Replace line for -gnatz with two lines for -gnatzc and
9520 2010-01-26 Vincent Celier <celier@adacore.com>
9522 * prj-attr.adb: Add new attribute Library_Install_Name_Option
9523 Replace attribute Run_Path_Origin_Supported with Run_Path_Origin
9524 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
9525 attributes Run_Path_Option and Library_Install_Name_Option.
9526 * prj.ads (Project_Configuration): Replace component
9527 Run_Path_Origin_Supported with component Run_Path_Origin. Add new
9528 component Library_Install_Name_Option.
9529 * snames.ads-tmpl: Add new standard name Library_Install_Name_Option
9530 Replace Run_Path_Origin_Supported with Run_Path_Origin
9532 2010-01-26 Ed Schonberg <schonberg@adacore.com>
9534 * sem_ch8.adb (Use_One_Package): Within an instance, an actual package
9535 is not hidden by a homograph declared in another actual package.
9537 2010-01-26 Robert Dewar <dewar@adacore.com>
9539 * par_sco.adb (Traverse_Declarations_Or_Statements): Only generate
9540 decisions for pragmas Assert, Check, Precondition, Postcondition if
9542 * scos.ads: Update comments.
9543 * get_scos.adb, put_scos.adb: Minor fix to code reading statement SCOs.
9544 Also remove obsolete code for CT (exit point) SCOs.
9546 2010-01-26 Thomas Quinot <quinot@adacore.com>
9548 * switch-c.adb: Fix handling of -gnatz*
9550 2010-01-26 Robert Dewar <dewar@adacore.com>
9552 * par_sco.adb (Traverse_Declarations_Or_Statements): Separate F/W
9553 qualifiers for FOR/WHILE loops
9554 * scos.ads: Use separate type letters F/W for for/while loops
9556 2010-01-26 Robert Dewar <dewar@adacore.com>
9558 * get_scos.adb (Get_SCOs): Implement new form of CS entries (multiple
9559 entries per line, one for each statement in the sequence).
9560 * par_sco.adb (Traverse_Declarations_Or_Statements): Increase array
9561 size from 100 to 10_000 for SC_Array to avoid any real possibility of
9562 overflow. Output decisions in for loops.
9563 Exclude labels from CS lines.
9564 * scos.ads: Clarify that label is not included in the entry point
9566 2010-01-26 Robert Dewar <dewar@adacore.com>
9568 * par_sco.adb (Traverse_Declarations_Or_Statments): Implement new
9569 format of statement sequence SCO entries (one location/statement).
9570 * put_scos.adb (Put_SCOs): Implement new format of CS lines
9571 * scos.ads: Update comments.
9572 * sem_eval.adb: Minor reformatting.
9574 2010-01-26 Robert Dewar <dewar@adacore.com>
9576 * par_sco.ads, par_sco.adb (Set_Statement_Entry): New handling of exits
9577 (Extend_Statement_Sequence): New procedures
9578 (Traverse_Declarations_Or_Statements): New handling for exits.
9580 2010-01-26 Robert Dewar <dewar@adacore.com>
9582 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
9585 2010-01-26 Robert Dewar <dewar@adacore.com>
9587 * par_sco.adb (Is_Logical_Operator): Exclude AND/OR/XOR
9588 * scos.ads: Clarify handling of logical operators
9590 2010-01-26 Arnaud Charlet <charlet@adacore.com>
9592 * s-tpoben.adb: Update comments.
9594 2010-01-26 Robert Dewar <dewar@adacore.com>
9596 * freeze.adb (Set_Small_Size): Don't set size if alignment clause
9599 2010-01-26 Robert Dewar <dewar@adacore.com>
9601 * scos.ads: Clean up documentation, remove obsolete XOR references
9602 2010-01-26 Vincent Celier <celier@adacore.com>
9604 * gnat_ugn.texi: Complete documentation on the restrictions for
9605 combined options in -gnatxxx switches.
9608 2010-01-26 Arnaud Charlet <charlet@adacore.com>
9610 * s-tpoben.adb (Initialize_Protection_Entries): If a PO is created from
9611 a controlled operation, abort is already deferred at this point, so we
9612 need to use Defer_Abort_Nestable.
9614 2010-01-26 Vincent Celier <celier@adacore.com>
9616 * prj-conf.adb (Get_Config_Switches): Check for a default language for
9617 a project extending a project with no languages.
9619 2010-01-26 Vincent Celier <celier@adacore.com>
9621 * switch-c.adb (Scan_Front_End_Switches): Take into account options
9622 that follow -gnatef.
9623 Allow -gnateG to be followed by other options.
9625 2010-01-26 Robert Dewar <dewar@adacore.com>
9627 * s-commun.ads, s-osprim-mingw.adb, s-stchop-vxworks.adb, sem_aggr.adb,
9628 s-vxwext.adb, sem_ch10.adb, sem_eval.adb, sem_prag.adb: Minor
9631 2010-01-26 Vasiliy Fofanov <fofanov@adacore.com>
9633 * g-regist.adb, g-regist.ads (For_Every_Key): New generic procedure
9634 that allows to iterate over all subkeys of a key.
9636 2010-01-26 Ed Falis <falis@adacore.com>
9638 * sysdep.c: enable NFS for VxWorks MILS
9639 * env.c: enable __gnat_environ for VxWorks MILS
9640 * gcc-interface/Makefile.in: Add VxWorks MILS target pairs.
9642 2010-01-25 Bob Duff <duff@adacore.com>
9644 * sem_aggr.adb (Resolve_Array_Aggregate): Check for the case where this
9645 is an internally-generated positional aggregate, and the bounds are
9646 already correctly set. We don't want to overwrite those bounds with
9647 bounds determined by context.
9649 2010-01-25 Robert Dewar <dewar@adacore.com>
9651 * g-sercom.ads, gnatcmd.adb, gnatlink.adb, a-ststio.adb, exp_ch6.adb,
9652 exp_ch9.adb, g-sechas.ads: Minor reformatting.
9654 2010-01-25 Thomas Quinot <quinot@adacore.com>
9656 * s-commun.adb (Last_Index): Count must be converted to SEO (a signed
9657 integer type) before subtracting 1, otherwise the computation may wrap
9658 (because size_t is modular) and cause the conversion to fail.
9660 2010-01-25 Ed Falis <falis@adacore.com>
9662 * sysdep.c, init.c: Adapt to support full run-time on VxWorks MILS.
9664 2010-01-25 Vincent Celier <celier@adacore.com>
9666 * prj-attr.adb: New attribute Run_Path_Origin_Required
9667 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process new
9668 attribute Run_Path_Origin_Required.
9669 * prj.ads (Project_Configuration): New component
9670 Run_Path_Origin_Supported.
9671 * snames.ads-tmpl: New standard name Run_Path_Origin_Required
9673 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9675 * sem_aggr.adb (Resolve_Array_Aggregate): If the bounds in a choice
9676 have errors, do not continue resolution of the aggregate.
9677 * sem_eval.adb (Eval_Indexed_Component): Do not attempt to evaluate if
9678 the array type indicates an error.
9680 2010-01-25 Bob Duff <duff@adacore.com>
9682 * sinfo.ads: Minor comment fixes.
9684 2010-01-25 Bob Duff <duff@adacore.com>
9686 * exp_ch4.adb, exp_aggr.adb: Minor comment fixes and code clean up.
9688 2010-01-25 Arnaud Charlet <charlet@adacore.com>
9690 * gnatvsn.ads (Current_Year): Update.
9692 2010-01-25 Florian Villoing <villoing@adacore.com>
9694 * gnat_ugn.texi: Fix typo.
9696 2010-01-25 Thomas Quinot <quinot@adacore.com>
9698 * scos.ads: Update specification.
9700 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9702 * sem_ch6.adb (Process_PPCs): If a postcondition is present and the
9703 enclosing subprogram has no previous spec, attach postcondition
9704 procedure to the defining entity for the body.
9706 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9708 * exp_aggr.adb (Build_Record_Aggr_Code); Do not generate call to
9709 initialization procedure of the ancestor part of an extension aggregate
9710 if it is an interface type.
9712 2010-01-25 Vincent Celier <celier@adacore.com>
9714 * gnatlink.adb (Process_Binder_File): The directory for the shared
9715 version of libgcc in the run path options is found in the subdirectory
9716 indicated by __gnat_default_libgcc_subdir.
9717 * link.c: Declare new const char * __gnat_default_libgcc_subdir for
9720 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9722 * sem_prag.adb: More flexible pragma Annotate.
9724 2010-01-22 Eric Botcazou <ebotcazou@adacore.com>
9726 * system-linux-armel.ads (Stack_Check_Probes): Set to True.
9727 * system-linux-armeb.ads (Stack_Check_Probes): Likewise.
9729 2010-01-18 Eric Botcazou <ebotcazou@adacore.com>
9731 * gcc-interface/utils.c (create_var_decl_1): Fix formatting nits.
9733 2010-01-18 Jan Hubicka <jh@suse.cz>
9736 * gcc-interface/utils.c (create_var_decl_1): Do not set COMMON flag for
9737 unit local variables.
9739 2010-01-17 Laurent GUERBY <laurent@guerby.net>
9741 * gcc-interface/Makefile.in: Fix typo in arm*-*-linux-gnueabi.
9743 2010-01-11 Mikael Pettersson <mikpe@it.uu.se>
9745 * gcc-interface/Makefile.in: Add arm*-*-linux-gnueabi.
9746 * system-linux-armeb.ads, system-linux-armel.ads: New files.
9748 2010-01-09 Simon Wright <simon@pushface.org>
9751 * gcc-interface/Makefile.in (gnatlib-shared-darwin): Add missing
9756 Copyright (C) 2010 Free Software Foundation, Inc.
9758 Copying and distribution of this file, with or without modification,
9759 are permitted in any medium without royalty provided the copyright
9760 notice and this notice are preserved.