1 2010-10-26 Vincent Celier <celier@adacore.com>
3 * opt.ads (Old_Checksums, Old_Old_Checksums): New Boolean flags,
5 * prj-nmsc.adb (Process_Project_Level_Array_Attributes): When
6 processing attribute Toolchain_Version ("Ada"), set Opt.Old_Checksums
7 and Opt.Old_Old_Checksums depending on the GNAT version.
8 * scng.adb (Accumulate_Token_Checksum_Old): New procedure.
9 (Accumulate_Token_Checksum_Old_Old): New procedure.
10 (Scan): For keywords, when Opt.Old_Checksums is True, call one of the
11 alternative procedures Accumulate_Token_Checksum_Old or
12 Accumulate_Token_Checksum_Old_Old, instead of Accumulate_Token_Checksum.
14 2010-10-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
16 * gcc-interface/utils2.c (build_compound_expr): New function.
17 * gcc-interface/gigi.h (build_compound_expr): Declare it.
18 * gcc-interface/trans.c (Attribute_to_gnu, call_to_gnu): Use it.
19 (gnat_to_gnu, case N_Expression_With_Actions): Likewise.
21 2010-10-26 Javier Miranda <miranda@adacore.com>
23 * sem_prag.adb (Process_Import_Or_Interface): Skip primitives of
24 interface types when processing all the entities in the homonym chain
25 that are declared in the same declarative part.
27 2010-10-26 Ed Schonberg <schonberg@adacore.com>
29 * sem_ch3.adb (Process_Range_In_Decl): If the range is part of a
30 quantified expression, the insertion point for range checks will be
31 arbitrarily far in the tree.
32 * sem_ch5.adb (One_Bound): Use Insert_Actions for the declaration of
33 the temporary that holds the value of the bounds.
34 * sem_res.adb (Resolve_Quantified_Expressions): Disable expansion of
35 condition until the full expression is expanded.
37 2010-10-26 Robert Dewar <dewar@adacore.com>
39 * opt.ads: Comment fix.
40 * sem_cat.adb: Treat categorization errors as warnings in GNAT Mode.
41 * switch-c.adb: GNAT Mode does not set
42 Treat_Categorization_Errors_As_Warnings.
44 2010-10-26 Ed Schonberg <schonberg@adacore.com>
46 * sem_ch8.adb (Analyze_Subprogram_Renaming): Improve warning when an
47 operator renames another one with a different name.
49 2010-10-26 Thomas Quinot <quinot@adacore.com>
51 * exp_ch4.adb, exp_pakd.adb: Minor reformatting.
53 2010-10-26 Bob Duff <duff@adacore.com>
55 * namet.adb: Improve hash function.
57 2010-10-26 Thomas Quinot <quinot@adacore.com>
59 * sem_disp.adb: Minor reformatting.
61 2010-10-26 Robert Dewar <dewar@adacore.com>
63 * sem_ch3.adb, sem_ch4.adb, sem_disp.adb, switch-c.adb: Minor
65 * gnat_ugn.texi: Document -gnateP switch.
67 2010-10-26 Robert Dewar <dewar@adacore.com>
69 * opt.ads (Treat_Categorization_Errors_As_Warnings): New flag
70 * sem_cat.adb (Check_Categorization_Dependencies):
71 Use Check_Categorization_Dependencies
72 * switch-c.adb: GNAT Mode sets Treat_Categorization_Errors_As_Warnings
73 -gnateP sets Treat_Categorization_Errors_As_Warnings
74 * usage.adb: Add line for -gnateP switch
76 2010-10-26 Javier Miranda <miranda@adacore.com>
78 * sem_ch3.adb (Add_Internal_Interface_Entities): Handle primitives
79 inherited from the parent that cover interface primitives.
80 (Derive_Progenitor_Subprograms): Handle primitives inherited from
81 the parent that cover interface primitives.
82 * sem_disp.adb (Find_Primitive_Covering_Interface): When searching in
83 the list of primitives of the type extend the test to include inherited
85 * sem_ch6.ads (Is_Interface_Conformant): Add missing documentation.
86 * sem_ch7.adb (Declare_Inherited_Private_Subprograms): Add missing
87 barrier to the loop searching for explicit overriding primitives.
88 * sem_ch4.adb (Analyze_Indexed_Component_Form): Add missing barrier
89 before accessing attribute Entity.
91 2010-10-26 Bob Duff <duff@adacore.com>
93 * make.adb: Call Namet.Finalize, so we can get statistics.
95 2010-10-26 Geert Bosch <bosch@adacore.com>
97 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Use the subprogram_body
98 node to determine wether the subprogram is a rewritten parameterized
101 2010-10-26 Robert Dewar <dewar@adacore.com>
103 * opt.ads: Minor code reorganization
104 Alphabetize Warning switches.
106 2010-10-26 Robert Dewar <dewar@adacore.com>
108 * sem_res.adb, xsinfo.adb: Minor reformatting.
110 2010-10-26 Bob Duff <duff@adacore.com>
112 * namet.adb (Finalize): More cleanup of statistics printouts.
114 2010-10-26 Robert Dewar <dewar@adacore.com>
116 * ceinfo.adb: Minor reformatting.
118 2010-10-26 Javier Miranda <miranda@adacore.com>
120 * sem_ch6.adb (Check_Overriding_Indicator, New_Overloaded_Entity): When
121 setting attribute Overridden_Operation do not reference the entities
122 generated by Derive_Subprograms but their aliased entity (which
123 is the primitive inherited from the parent type).
125 2010-10-26 Bob Duff <duff@adacore.com>
127 * namet.adb, namet.ads: Minor cleanup.
129 2010-10-26 Arnaud Charlet <charlet@adacore.com>
131 * gcc-interface/Make-lang.in: Update dependencies.
133 2010-10-26 Robert Dewar <dewar@adacore.com>
135 * einfo.ads, einfo.adb (Is_Base_Type): New function, use it where
137 * exp_ch6.adb, exp_dbug.adb, exp_disp.adb, freeze.adb, lib-xref.adb,
138 sem_aux.adb, sem_ch3.adb, sem_ch7.adb, sem_ch8.adb (Is_Base_Type): Use
139 this new abstraction where appropriate.
141 2010-10-26 Ed Schonberg <schonberg@adacore.com>
143 * sem_ch12.adb: Code clean up.
145 2010-10-26 Paul Hilfinger <hilfinger@adacore.com>
147 * exp_dbug.ads: Document effect of 'pragma Unchecked_Union' on
150 2010-10-26 Ed Schonberg <schonberg@adacore.com>
152 * sem_util.adb (Note_Possible_Modification): If the target of an
153 assignment is the bound variable in an iterator, the domain of
154 iteration, i.e. array or container, is modified as well.
156 2010-10-26 Bob Duff <duff@adacore.com>
158 * Make-generated.in: Make the relevant make targets depend on
159 ceinfo.adb and csinfo.adb.
160 * csinfo.adb, ceinfo.adb: Make sure it raises an exception on failure,
161 so when called from xeinfo, the failure will be noticed.
162 * sinfo.ads: Update comments to reflect the fact that xsinfo runs csinfo
163 * xsinfo.adb, xeinfo.adb: Run ceinfo to check for errors. Close files.
165 2010-10-26 Ed Schonberg <schonberg@adacore.com>
167 * exp_ch4.adb: Set properly parent field of operands of concatenation.
169 2010-10-26 Ed Schonberg <schonberg@adacore.com>
171 * sem_res.adb (Check_Infinite_Recursion): A recursive call within a
172 conditional expression or a case expression should not generate an
173 infinite recursion warning.
175 2010-10-26 Javier Miranda <miranda@adacore.com>
177 * einfo.ads, einfo.adb (Is_Overriding_Operation): Removed.
178 (Set_Is_Overriding_Operation): Removed.
179 * sem_ch3.adb (Check_Abstract_Overriding): Remove redundant call to
180 Is_Overriding_Operation.
181 * exp_ch7.adb (Check_Visibly_Controlled): Remove redundant call to
182 Is_Overriding_Operation.
183 * sem_ch7.adb (Declare_Inherited_Private_Subprograms): Remove redundant
184 call to Set_Is_Overriding_Operation.
185 * sem_util.adb (Collect_Primitive_Operations): Replace test on
186 Is_Overriding_Operation by test on the presence of attribute
187 Overridden_Operation.
188 (Original_Corresponding_Operation): Remove redundant call to attribute
189 Is_Overriding_Operation.
190 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Remove
191 redundant call to Is_Overriding_Operation.
192 (Verify_Overriding_Indicator): Replace several occurrences of test on
193 Is_Overriding_Operation by test on the presence of attribute
194 Overridden_Operation.
195 (Check_Convention): Replace test on Is_Overriding_Operation by test on
196 the presence of Overridden_Operation.
197 (Check_Overriding_Indicator): Add missing decoration of attribute
198 Overridden_Operation. Minor code cleanup.
199 (New_Overloaded_Entity): Replace occurrence of test on
200 Is_Overriding_Operation by test on the presence of attribute
201 Overridden_Operation. Remove redundant setting of attribute
202 Is_Overriding_Operation plus minor code reorganization.
203 Add missing decoration of attribute Overridden_Operation.
204 * sem_elim.adb (Set_Eliminated): Replace test on
205 Is_Overriding_Operation by test on the presence of Overridden_Operation.
206 * sem_ch8.adb (Analyze_Subprogram_Renaming): Replace test on
207 Is_Overriding_Operation by test on the presence of
208 Overridden_Operation. Remove a redundant test on attribute
209 Is_Overriding_Operation.
210 * lib-xref.adb (Generate_Reference): Replace test on
211 Is_Overriding_Operation by test on the presence of Overridden_Operation.
212 (Output_References): Replace test on Is_Overriding_Operation by test on
213 the presence of Overridden_Operation.
214 * sem_disp.adb (Override_Dispatching_Operation): Replace test on
215 Is_Overriding_Operation by test on the presence of Overridden_Operation.
216 Add missing decoration of attribute Overridden_Operation.
218 2010-10-26 Robert Dewar <dewar@adacore.com>
220 * sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order): Properly check
223 2010-10-26 Bob Duff <duff@adacore.com>
225 * sem_res.adb (Resolve_Actuals): In case of certain
226 internally-generated type conversions (created by OK_Convert_To, so the
227 Conversion_OK flag is set), avoid fetching the component type when it's
228 not really an array type, but a private type completed by an array type.
230 2010-10-26 Ed Schonberg <schonberg@adacore.com>
232 * sem_ch5.adb: Adjust format of error message.
234 2010-10-26 Robert Dewar <dewar@adacore.com>
236 * einfo.ads, einfo.adb (OK_To_Reference): Removed, no longer used.
237 * exp_util.adb (Side_Effect_Free): Put in safety barrier in code to
238 detect renamings to avoid problems with invariants.
239 * sem_ch13.adb (Replace_Type_References_Generic): New procedure
240 (Build_Invariant_Procedure): Use Replace_Type_Reference_Generic
241 (Build_Predicate_Function): Use Replace_Type_Reference_Generic
242 * sem_res.adb, sem_ch8.adb, sem_ch4.adb (OK_To_Reference): Remove
243 references, flag is no longer set.
245 2010-10-26 Vincent Celier <celier@adacore.com>
247 * prj.ads (Source_Data): New Boolean component Initialized, defaulted
248 to False, set to True when Source_Data is completely initialized.
249 * prj-env.adb: Minor comment fix.
251 2010-10-26 Robert Dewar <dewar@adacore.com>
253 * sem_case.adb, sem_ch6.adb, sem_util.adb: Minor reformatting.
255 2010-10-26 Ed Schonberg <schonberg@adacore.com>
257 * sem_ch5.adb (Analyze_Iteration_Scheme): Diagnose attempt to use thew
258 form "for X in A" when A is an array object. This form is only intended
260 * sem_eval.adb: Fix reference to non-existing field of type conversion
262 * sem_case.adb (Check_Choices): Improve error reporting for overlapping
263 choices in case statements.
265 2010-10-26 Gary Dismukes <dismukes@adacore.com>
267 * exp_disp.adb (Expand_Interface_Actuals): When expanding an actual for
268 a class-wide interface formal that involves applying a displacement
269 conversion to the actual, check for the case of calling a build-in-place
270 function and handle generation of the implicit BIP parameters (call
271 Make_Build_In_Place_Call_In_Anonymous_Context).
272 Add with and use of Exp_Ch6.
274 2010-10-26 Robert Dewar <dewar@adacore.com>
276 * sem_prag.adb, sem_cat.ads: Minor reformatting.
278 2010-10-26 Sergey Rybin <rybin@adacore.com>
280 * vms_data.ads: Define VMS qualifier for gnatelim '--ignore' option
282 2010-10-26 Thomas Quinot <quinot@adacore.com>
284 * sem_util.adb (Has_Preelaborable_Initialization.Check_Components):
285 For a discriminant, use Discriminant_Default_Value rather than
286 Expression (Declaration_Node (D)).
288 2010-10-26 Geert Bosch <bosch@adacore.com>
290 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Parameterized
291 expressions don't need a spec, even when style checks require
292 subprograms to have one.
294 2010-10-26 Arnaud Charlet <charlet@adacore.com>
296 * gnatvsn.ads: Update comments.
298 2010-10-26 Matthew Heaney <heaney@adacore.com>
300 * Makefile.rtl, impunit.adb: Add bounded hashed set and bounded hashed
302 * a-cohata.ads: Add declaration of generic package for bounded hash
304 * a-chtgbo.ads, a-chtgbo.adb, a-chtgbk.ads, a-chtgbk.adb, a-cbhase.ads,
305 a-cbhase.adb, a-cbhama.ads, a-cbhama.adb: New files.
307 2010-10-26 Ed Schonberg <schonberg@adacore.com>
309 * sem_warn.adb: Improve warning message on overlapping actuals.
311 2010-10-26 Thomas Quinot <quinot@adacore.com>
313 * sem_ch4.adb, exp_dist.adb: Minor reformatting.
315 2010-10-26 Vincent Celier <celier@adacore.com>
317 * makeusg.adb (Makeusg): Add lines for switches -vl, -vm and -vh.
319 2010-10-26 Robert Dewar <dewar@adacore.com>
321 * exp_ch3.adb (Expand_N_Object_Declaration): Move generation of
322 predicate check to analyzer, since too much rewriting occurs in the
324 * sem_ch13.adb (Build_Predicate_Function): Change calling sequence, and
325 change the order in which things are done to fix several errors in
326 dealing with qualification of the type name.
327 (Build_Static_Predicate): Built static predicate after full analysis
328 of the body. This is necessary to fix several problems.
329 * sem_ch3.adb (Analyze_Object_Declaration): Move predicate check here
330 from expander, since too much expansion occurs in the analyzer to leave
332 (Analyze_Object_Declaration): Change parameter Include_Null to new name
333 Include_Implicit in Is_Partially_Initialized_Type call.
334 (Analyze_Subtype_Declaration): Make sure predicates are proapagated in
335 some strange cases of internal subtype generation.
336 * sem_util.ads, sem_util.adb (Is_Partially_Initialized_Type): Change
337 Include_Null to Include_Implicit, now includes the case of
340 2010-10-26 Sergey Rybin <rybin@adacore.com>
342 * gnat_rm.texi: Revise the documentation for pragma Eliminate.
344 2010-10-26 Matthew Heaney <heaney@adacore.com>
346 * Makefile.rtl, impunit.adb: Added bounded list container.
347 * a-cbdlli.ads, a-cbdlli.adb: New file.
349 2010-10-25 Eric Botcazou <ebotcazou@adacore.com>
351 * gcc-interface/utils2.c: Include flags.h and remove prototypes.
352 (build_unary_op) <TRUTH_NOT_EXPR>: When not optimizing, fold the result
353 of the call to invert_truthvalue_loc.
354 * gcc-interface/Make-lang.in (utils2.o): Add $(FLAGS_H).
356 2010-10-25 Eric Botcazou <ebotcazou@adacore.com>
358 * gcc-interface/utils.c (update_pointer_to): Clear TYPE_POINTER_TO and
359 TYPE_REFERENCE_TO of the old type after redirecting its pointer and
362 2010-10-25 Eric Botcazou <ebotcazou@adacore.com>
364 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do not set
365 TREE_THIS_NOTRAP on the INDIRECT_REF node built for the template.
367 2010-10-25 Jose Ruiz <ruiz@adacore.com>
369 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for powerpc-linux):
370 Reorganize target pairs so that it works on linux and ElinOS.
372 2010-10-25 Pascal Obry <obry@adacore.com>
374 * adaint.c (__gnat_file_time_name_attr): Use GetFileAttributesEx to get
375 the timestamp. A bit faster than opening/closing the file.
376 (__gnat_stat_to_attr): Remove kludge for Windows.
377 (__gnat_file_exists_attr): Likewise.
378 The timestamp is now retreived using GetFileAttributesEx as faster.
380 2010-10-25 Javier Miranda <miranda@adacore.com>
382 * sem_ch3.adb (Derive_Interface_Subprogram): New subprogram.
383 (Derive_Subprograms): For abstract private types transfer to the full
384 view entities of uncovered interface primitives. Required because if
385 the interface primitives are left in the private part of the package
386 they will be decorated as hidden when the analysis of the enclosing
387 package completes (and hence the interface primitive is not visible
388 for dispatching calls).
390 2010-10-25 Matthew Heaney <heaney@adacore.com>
392 * Makefile.rtl, impunit.adb: Added bounded set and bounded map
394 * a-crbltr.ads: Added declaration of generic package for bounded tree
396 * a-rbtgbo.ads, a-rbtgbo.adb, a-rbtgbk.ads, a-rbtgbk.adb, a-btgbso.ads,
397 a-btgbso.adb, a-cborse.ads, a-cborse.adb, a-cborma.ads, a-cborma.adb:
400 2010-10-25 Thomas Quinot <quinot@adacore.com>
402 * sem_util.adb: Minor reformatting.
403 * usage.adb: Fix usage line for -gnatwh.
405 2010-10-25 Thomas Quinot <quinot@adacore.com>
407 * sem_ch12.adb (Analyze_Package_Instantiation): For an
408 instantiation in an RCI spec, omit package body if instantiation comes
409 from source, even as a nested
411 * exp_dist.adb (Add_Calling_Stubs_To_Declarations,
412 *_Support.Add_Receiving_Stubs_To_Declarations): Handle the case of
413 nested packages, package instantiations and subprogram instantiations.
415 2010-10-25 Robert Dewar <dewar@adacore.com>
417 * exp_ch5.adb (Expand_Predicated_Loop): Remove code for loop through
418 non-static predicate, since we agree not to allow this.
419 (Expand_Predicated_Loop): Properlay handle false predicate (null
420 list in Static_Predicate field.
421 * sem_ch13.adb (Build_Static_Predicate): Extensive changes to clean up
422 handling of more general predicate forms.
424 2010-10-25 Robert Dewar <dewar@adacore.com>
426 * sem_ch4.adb, sem_util.adb: Minor reformatting.
427 * sem_ch8.adb (Find_Selected_Component): Allow selection from instance
428 of type in predicate or invariant expression.
430 2010-10-25 Pascal Obry <obry@adacore.com>
432 * adaint.c (__gnat_stat_to_attr): Can set the timestamp on Windows now.
434 (__gnat_stat): Rewrite Win32 version.
436 2010-10-25 Robert Dewar <dewar@adacore.com>
438 * sem_warn.adb, einfo.ads, exp_ch4.adb: Minor comment fix
439 * sem_case.adb: Comment clarification for loops through false
441 * sem_util.adb: Minor reformatting
442 (Check_Order_Dependence): Fix bad double blank in error message
444 2010-10-25 Ed Schonberg <schonberg@adacore.com>
446 * sem_ch4.adb (Analyze_Membership_Op): in Ada_2012 a membership
447 operation can have a single alternative that is a value of the type.
448 Rewrite operation as an equality test.
450 2010-10-25 Matthew Heaney <heaney@adacore.com>
452 * Makefile.rtl, impunit.adb: Added a-cobove (bounded vector container)
454 * a-contai.ads: Added declaration of Capacity_Error exception.
455 * a-cobove.ads, a-cobove.adb: New files.
457 2010-10-25 Thomas Quinot <quinot@adacore.com>
459 * uname.adb: Revert previous change, no longer needed after change
462 2010-10-25 Thomas Quinot <quinot@adacore.com>
464 * scos.ads: Minor comment fix.
466 2010-10-25 Ed Schonberg <schonberg@adacore.com>
468 * sem_ch5.adb (Analyze_Assignment_Statement): Check dangerous order
470 * sem_ch6.adb (Analyze_Procedure_Call_Statement): Ditto.
471 * sem_res.adb (Analyze_Actuals): Add actual to list of actuals for
472 current construct, for subsequent order dependence checking.
473 (Resolve): Check order dependence on expressions that are not
475 * sem_util.adb (Check_Order_Dependence): Code cleanup, to correspond
476 to latest version of AI05-144-2.
477 * sem_warn.adb (Warn_On_Overlapping_Actuals): Code cleanup.
479 2010-10-25 Robert Dewar <dewar@adacore.com>
481 * sem_ch13.adb (Build_Static_Predicate): Moved out of
482 Build_Predicate_Function.
483 (Build_Static_Predicate): Complet rewrite for more general predicates
485 2010-10-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
486 Eric Botcazou <ebotcazou@adacore.com>
488 * gcc-interface/decl.c (gnat_to_gnu_entity, case E_Function): Allow
489 In Out/Out parameters for functions.
490 * gcc-interface/trans.c (gnu_return_var_stack): New variable.
491 (create_init_temporary): New static function.
492 (Subprogram_Body_to_gnu): Handle In Out/Out parameters for functions.
493 (call_to_gnu): Likewise. Use create_init_temporary in order to create
494 temporaries for unaligned parameters and return value. If there is an
495 unaligned In Out or Out parameter passed by reference, push a binding
496 level if not already done. If a binding level has been pushed and the
497 call is returning a value, create the call statement.
498 (gnat_to_gnu) <N_Return_Statement>: Handle In Out/Out parameters for
501 2010-10-22 Ben Brosgol <brosgol@adacore.com>
503 * gnat_rm.texi: Add chapter on Ada 2012 support.
505 2010-10-22 Robert Dewar <dewar@adacore.com>
507 * sem_ch12.adb: Minor reformatting.
509 2010-10-22 Thomas Quinot <quinot@adacore.com>
511 * exp_dist.adb: Mark missing case of nested package when expanding
514 2010-10-22 Ed Schonberg <schonberg@adacore.com>
516 * par-ch10.adb: Discard incomplete with_clause.
518 2010-10-22 Robert Dewar <dewar@adacore.com>
520 * checks.adb (Enable_Range_Check): Remove code suppressing range check
521 if static predicate present, not needed.
522 * exp_attr.adb (Expand_Pred_Succ): Check Suppress_Assignment_Checks flag
523 * exp_ch3.adb (Expand_N_Object_Declaration): Check
524 Suppress_Assignment_Checks flag.
525 * exp_ch4.adb (Expand_N_In): Make some corrections for proper handling
526 of ranges when predicates are present.
527 * exp_ch5.adb (Expand_Predicated_Loop): New procedure
528 (Expand_N_Assignment_Statement): Check Suppress_Assignment_Checks flag
529 (Expand_N_Loop_Statement): Handle loops over predicated types
530 * sem_case.adb (Analyze_Choices): Remove extra blank in error message.
531 * sem_ch13.adb (Build_Predicate_Function.Add_Call): Suppress info
532 message for inheritance if within a generic instance, not useful there!
533 (Build_Static_Predicate): Optimize test in predicate function
534 based on static ranges determined.
535 * sem_ch5.adb (Analyze_Iteration_Scheme): Error for loop through
536 subtype with non-static predicate.
537 * sinfo.ads, sinfo.adb (Suppress_Assignment_Checks): New flag.
539 2010-10-22 Thomas Quinot <quinot@adacore.com>
541 * uname.adb (Get_Unit_Name.Add_Node_Name): If encountering an error
542 node in the unit name, propagate Program_Error to guard against
545 2010-10-22 Javier Miranda <miranda@adacore.com>
547 * sem_ch8.adb (Find_Selected_Component): Do not generate a subtype for
548 selected components of dispatch table wrappers.
550 2010-10-22 Ed Schonberg <schonberg@adacore.com>
552 * exp_ch9.adb (Make_Initialize_Protection): A protected type that
553 implements an interface must be treated as if it has entries, to
554 support dispatching select statements.
556 2010-10-22 Robert Dewar <dewar@adacore.com>
558 * sem_aggr.adb, sem_ch3.adb: Minor reformatting.
560 2010-10-22 Javier Miranda <miranda@adacore.com>
562 * sem_aggr.adb (Resolve_Array_Aggregate.Add): If the type of the
563 aggregate has a non standard representation the attributes 'Val and
564 'Pos expand into function calls and the resulting expression is
565 considered non-safe for reevaluation by the backend. Relocate it into
566 a constant temporary to indicate to the backend that it is side
569 2010-10-22 Ed Schonberg <schonberg@adacore.com>
571 * sem_ch3.adb (Build_Concurrent_Derived_Type): Create declaration for
572 derived corresponding record type only when expansion is enabled.
574 2010-10-22 Robert Dewar <dewar@adacore.com>
576 * sem_case.adb, sem_attr.adb (Bad_Predicated_Subtype_Use): Change order
578 * sem_ch13.adb (Build_Predicate_Function): Don't give inheritance
579 messages for generic actual subtypes.
580 * sem_ch9.adb, sem_res.adb, sem_util.adb, sem_util.ads, sem_ch3.adb
581 (Bad_Predicated_Subtype_Use): Use this procedure.
583 2010-10-22 Robert Dewar <dewar@adacore.com>
585 * sem_ch5.adb: Minor reformatting.
587 2010-10-22 Robert Dewar <dewar@adacore.com>
589 * a-except-2005.adb (Rmsg_18): New message text.
590 * a-except.adb (Rmsg_18): New message text.
591 * atree.adb (List25): New function
592 (Set_List25): New procedure
593 * atree.ads (List25): New function
594 (Set_List25): New procedure
595 * einfo.adb (Static_Predicate): Is now a list
596 (OK_To_Reference): Present in all entities
597 * einfo.ads (Static_Predicate): Is now a list
598 (OK_To_Reference): Applies to all entities
599 * exp_ch13.adb (Build_Predicate_Function): Moved to Sem_Ch13
600 * sem_attr.adb (Bad_Attribute_For_Predicate): Call
601 Bad_Predicated_Subtype_Use.
602 * sem_case.ads, sem_case.adb: Major surgery to deal with predicated
604 * sem_ch13.adb (Build_Predicate_Function): Moved from Exp_Ch13 to
606 (Build_Static_Predicate): New procedure handles static predicates.
607 * sem_ch3.adb (Analyze_Subtype_Declaration): Delay freeze on subtype
608 with no constraint if ancestor subtype has predicates.
609 (Analyze_Variant_Part): New calling sequence for Analyze_Choices
610 * sem_ch4.adb (Junk_Operand): Don't complain about OK_To_Reference
612 (Analyze_Case_Expression): New calling sequence for Analyze_Choices
613 * sem_ch5.adb (Analyze_Case_Statement): New calling sequence for
615 * sem_util.ads, sem_util.adb (Bad_Predicated_Subtype_Use): New procedure
616 * types.ads (PE_Bad_Predicated_Generic_Type): Replaces
617 PE_Bad_Attribute_For_Predicate.
618 * atree.h: Add definition of List25.
620 2010-10-22 Jerome Lambourg <lambourg@adacore.com>
622 * gnatlink.adb (Process_Binder_File): Remove CLI-specific code, now
624 (Gnatlink): Remove CLI-specific code, moved to dotnet-ld
625 * bindgen.adb (Gen_Object_Files_Options): Do not issue -L switches with
626 the .NET compiler, useless and unsupported.
628 2010-10-22 Robert Dewar <dewar@adacore.com>
630 * sem_util.ads (Get_Num_Lit_From_Pos): Fix errors in documentation,
631 this returns a Node_Id for a reference to the entity, not the entity
634 2010-10-22 Ed Schonberg <schonberg@adacore.com>
636 * sem_ch5.adb (Analyze_Iteration_Scheme): use Insert_Actions when
637 bounds require a temporary.
639 2010-10-22 Robert Dewar <dewar@adacore.com>
641 * sem_ch4.adb: Minor reformatting.
642 * sinfo.ads: Minor comment fixes for Ada 2012 syntax.
644 2010-10-22 Robert Dewar <dewar@adacore.com>
646 * par-ch5.adb: Minor reformatting.
647 * gcc-interface/Make-lang.in: Update dependencies.
649 2010-10-22 Robert Dewar <dewar@adacore.com>
651 * a-except.adb, a-except-2005.adb: Add new Rcheck entry.
652 * exp_ch13.adb (Add_Call): Make sure subtype is marked with
653 Has_Predicates set to True if it inherits predicates.
654 * sem_attr.adb: Handle 'First/'Last/'Range for predicated types
655 * types.ads (PE_Bad_Attribute_For_Predicate): New reason code
656 * types.h: Add new Rcheck entry.
657 * einfo.ads, einfo.adb (Static_Predicate): New field.
658 Minor code reorganization (file float routines in proper section)
659 Fix bad field name in comments.
661 2010-10-22 Robert Dewar <dewar@adacore.com>
663 * sem_eval.adb (Subtypes_Statically_Compatible): Check null exclusion
666 2010-10-22 Vincent Celier <celier@adacore.com>
668 * prj-conf.adb (Get_Config_Switches): Detect if there is at least one
669 declaration of IDE'Compiler_Command for one of the language in the main
671 (Do_Autoconf): If there were at least one Compiler_Command declared and
672 no target, invoke gprconfig with --target=all instead of the normalized
675 2010-10-22 Robert Dewar <dewar@adacore.com>
677 * par-ch4.adb: Update syntax in comments for Ada 2012.
678 * sinfo.ads: Update syntax in comments for Ada 2012
679 * par-ch3.adb (Check_Restricted_Expression): Remove "in Ada 2012 mode"
682 2010-10-22 Gary Dismukes <dismukes@adacore.com>
684 * sem_ch3.adb (Check_Or_Process_Discriminants): In Ada 2012, allow
685 limited tagged types to have defaulted discriminants. Customize the
686 error message for the Ada 2012 case.
687 (Process_Discriminants): In Ada 2012, allow limited tagged types to have
688 defaulted discriminants. Customize the error message for the Ada 2012
690 * sem_ch6.adb (Create_Extra_Formals): Suppress creation of the extra
691 formal for out formals of discriminated types in the case where the
692 underlying type is a limited tagged type.
693 * exp_attr.adb (Expand_N_Attribute_Reference, case
694 Attribute_Constrained): Return True for 'Constrained when the
695 underlying type of the prefix is a limited tagged type.
697 2010-10-22 Thomas Quinot <quinot@adacore.com>
699 * sem_ch3.adb (Complete_Private_Subtype): The full view of the subtype
700 may already have a rep item chain inherited from the full view of the
701 base type, so do not overwrite it when propagating rep items from the
702 partial view of the subtype.
703 * sem_ch3.adb: Minor code reorganization. Minor reformatting.
705 2010-10-22 Sergey Rybin <rybin@adacore.com>
707 * gnat_ugn.texi (gnatmetric): Remove description of debug option.
709 2010-10-22 Tristan Gingold <gingold@adacore.com>
711 * adaint.c (__gnat_number_of_cpus): Add implementation for VMS.
713 2010-10-22 Ed Schonberg <schonberg@adacore.com>
715 * par-ch5.adb: Set properly starting sloc of loop parameter.
717 2010-10-22 Ed Schonberg <schonberg@adacore.com>
719 * sem_util.adb (May_Be_Lvalue): An actual in a function call can be an
720 lvalue in Ada2012, if the function has in-out parameters.
722 2010-10-22 Robert Dewar <dewar@adacore.com>
724 * cstand.adb, einfo.adb, exp_attr.adb, sem_prag.adb, sem_vfpt.adb,
725 sem_ch10.adb: Minor reformatting.
727 2010-10-22 Sergey Rybin <rybin@adacore.com>
729 * gnat_ugn.texi: Remove most of the content of gnatcheck chapter.
731 2010-10-22 Ed Schonberg <schonberg@adacore.com>
733 * sem_attr.adb: Handle indexed P'old.
735 2010-10-22 Geert Bosch <bosch@adacore.com>
737 * cstand.adb (Build_Float_Type): Set Float_Rep according to platform.
738 * einfo.ads (Float_Rep): New attribute.
739 (Float_Rep_Kind): Move from body. Add comments.
740 * einfo.adb (Float_Rep_Kind): Move to spec
741 (Float_Rep): Now a real field instead of local function.
742 (Set_Float_Rep): New procedure to set floating point representation
743 (Set_Vax_Float): Remove.
744 (Write_Entity_Flags): Remove Vax_Float flag.
745 (Write_Field10_Name): Add E_Floating_Point_Type case for Float_Rep.
746 * exp_attr.adb (Attribute_Valid): Use case statement for representation
748 * sem_ch3.adb (Build_Derived_Numeric_Type,
749 Floating_Point_Type_Declaration): Set Float_Rep instead of Vax_Float
751 * sem_util.ads, sem_util.adb (Is_AAMP_Float): Remove.
752 * sem_vfpt.adb (Set_D_Float, Set_F_Float, Set_G_Float, Set_IEEE_Long,
753 Set_IEEE_Short): Set Float_Rep instead of Vax_Float attribute.
755 2010-10-22 Robert Dewar <dewar@adacore.com>
757 * sprint.adb: Minor reformatting.
759 2010-10-22 Robert Dewar <dewar@adacore.com>
761 * exp_ch3.adb (Expand_N_Object_Declaration): Do required predicate
763 * sem_ch3.adb (Complete_Private_Subtype): Propagate predicates to full
765 * sem_ch6.adb (Invariants_Or_Predicates_Present): New name for
767 (Process_PPCs): Handle predicates generating post conditions
768 * sem_util.adb (Is_Partially_Initialized_Type): Add
769 Include_Null parameter.
770 * sem_util.ads (Is_Partially_Initialized_Type): Add
771 Include_Null parameter.
773 2010-10-22 Sergey Rybin <rybin@adacore.com>
775 * gnat_ugn.texi (gnatelim): Add description for '--ignore' option
777 2010-10-22 Thomas Quinot <quinot@adacore.com>
779 * sem_prag.adb (Check_First_Subtype): Specialize error messages for
780 case where argument is not a type.
782 2010-10-22 Robert Dewar <dewar@adacore.com>
784 * exp_ch5.adb, par-ch4.adb, par-ch5.adb, sem_ch5.adb, sinfo.ads: Minor
787 2010-10-22 Arnaud Charlet <charlet@adacore.com>
789 * a-locale.adb: Minor code clean up.
791 2010-10-22 Thomas Quinot <quinot@adacore.com>
793 * exp_ch4.adb: Minor code reorganization and factoring.
795 2010-10-22 Thomas Quinot <quinot@adacore.com>
797 * exp_ch5.adb, sem_ch5.adb, sinfo.ads, snames.ads-tmpl, par-ch5.adb:
800 2010-10-22 Geert Bosch <bosch@adacore.com>
802 * stand.ads: Fix typo in comment.
804 2010-10-22 Ed Schonberg <schonberg@adacore.com>
806 * sem_ch6.adb: Enable in-out parameter for functions.
808 2010-10-22 Ed Schonberg <schonberg@adacore.com>
810 * sem_ch4.adb (Analyze_Quantified_Expression): Handle properly loop
811 iterators that are transformed into container iterators after analysis.
812 * exp_ch4.adb (Expand_N_Quantified_Expression): Handle properly both
813 iterator forms before rewriting as a loop.
815 2010-10-22 Brett Porter <porter@adacore.com>
817 * a-locale.adb, a-locale.ads, locales.c: New files.
818 * Makefile.rtl: Add a-locale
819 * gcc-interface/Makefile.in: Add locales.c
821 2010-10-22 Robert Dewar <dewar@adacore.com>
823 * sem_util.ads, sem_util.adb, sem_aux.ads, sem_aux.adb
824 (Is_Generic_Formal): Moved from Sem_Util to Sem_Aux.
826 2010-10-22 Ed Schonberg <schonberg@adacore.com>
828 * exp_ch5.adb (Expand_Iterator_Loop): New subprogram, implements new
829 iterator forms over arrays and containers, in loops and quantified
831 * exp_util.adb (Insert_Actions): include N_Iterator_Specification.
832 * par-ch4.adb (P_Quantified_Expression): Handle iterator specifications.
833 * par-ch5.adb (P_Iterator_Specification): New subprogram. Modify
834 P_Iteration_Scheme to handle both loop forms.
835 * sem.adb: Handle N_Iterator_Specification.
836 * sem_ch5.adb, sem_ch5.ads (Analyze_Iterator_Specification): New
838 * sinfo.adb, sinfo.ads: New node N_Iterator_Specification.
839 N_Iteration_Scheme can now include an Iterator_Specification. Ditto
840 for N_Quantified_Expression.
841 * snames.ads-tmpl: Add names Cursor, Element, Element_Type, No_Element,
842 and Previous, to support iterators over predefined containers.
843 * sprint.adb: Handle N_Iterator_Specification.
845 2010-10-22 Thomas Quinot <quinot@adacore.com>
847 * sem_prag.adb, sem_ch12.adb, sem_util.adb, sem_util.ads
848 (Is_Generic_Formal): Move from body of Sem_Ch12 to Sem_Util.
849 (Check_Arg_Is_Local_Name): Fix check in the case of a pragma appearing
850 immediately after a library unit.
851 (Analyze_Pragma, case Preelaborable_Initialization): Pragma may apply to
852 a formal derived type.
854 2010-10-22 Geert Bosch <bosch@adacore.com>
856 * gcc-interface/Make-lang.in: Remove ttypef.ads
857 * checks.adb: Use Machine_Mantissa_Value and Machine_Radix_Value instead
858 of Machine_Mantissa and Machine_Radix.
859 * cstand.adb (P_Float_Range): Directly print the Type_Low_Bound and
860 Type_High_Bound of the type, instead of choosing constants from Ttypef.
861 (Set_Float_Bounds): Compute the bounds based on Machine_Radix_Value,
862 Machine_Emax_Value and Machine_Mantissa_Value instead of special-casing
864 * einfo.ads (Machine_Emax_Value, Machine_Emin_Value,
865 Machine_Mantissa_Value, Machine_Radix_Value, Model_Emin_Value,
866 Model_Epsilon_Value, Model_Mantissa_Value, Model_Small_Value,
867 Safe_Emax_Value, Safe_First_Value, Safe_Last_Value): Add new
868 synthesized floating point attributes.
869 * einfo.adb (Float_Rep): Determine the kind of floating point
870 representation used for a given type.
871 (Machine_Emax_Value, Machine_Emin_Value, Machine_Mantissa_Value,
872 Machine_Radix_Value): Implement based on Float_Rep_Kind of a type and
873 the number of digits in the type.
874 (Model_Emin_Value, Model_Epsilon_Value, Model_Mantissa_Value,
875 Model_Small_Value, Safe_Emax_Value, Safe_First_Value, Safe_Last_Value):
876 Implement new synthesized floating point attributes based on the various
878 * eval_fat.ads: Remove Machine_Mantissa and Machine_Radix.
879 * eval_fat.adb (Machine_Mantissa, Machine_Radix): Remove. Use the
880 Machine_Mantissa_Value and Machine_Radix_Value functions instead.
881 * exp_vfpt.adb (VAXFF_Digits, VAXDF_Digits, VAXFG_Digits): Define local
882 constants, instead of using constants from Ttypef.
883 * gnat_rm.texi: Reword comments referencing Ttypef.
884 * sem_attr.ads: Reword comment referencing Ttypef.
885 * sem_attr.adb (Float_Attribute_Universal_Integer,
886 Float_Attribute_Universal_Real): Remove.
887 (Attribute_Machine_Emax, Attribute_Machine_Emin,
888 Attribute_Machine_Mantissa, Attribute_Model_Epsilon,
889 Attribute_Model_Mantissa, Attribute_Model_Small, Attribute_Safe_Emax,
890 Attribute_Safe_First, Attribute_Safe_Last, Model_Small_Value): Use
891 attributes in Einfo instead of Float_Attribute_Universal_Real and
892 Float_Attribute_Universal_Integer and all explicit constants.
893 * sem_util.ads, sem_util.adb (Real_Convert): Remove.
894 * sem_vfpt.adb (VAXDF_Digits, VAXFF_Digits, VAXGF_Digits, IEEEL_Digits,
895 IEEES_Digits): New local constants, in order to remove dependency on
897 * tbuild.ads (Make_Float_Literal): New function.
898 * tbuild.adb (Make_Float_Literal): New function to create a new
899 N_Real_Literal, constructing it as simple as possible for best
900 output of constants in -gnatS.
901 * ttypef.ads: Remove.
903 2010-10-22 Robert Dewar <dewar@adacore.com>
905 * checks.adb (Apply_Predicate_Check): Remove attempt at optimization
906 when subtype is the same, caused legitimate checks to be missed.
907 * exp_ch13.adb (Build_Predicate_Function): Use Nearest_Ancestor to get
908 inheritance from right entity.
909 * freeze.adb (Freeze_Entity): Use Nearest_Ancestor to freeze in the
910 derived type case if the ancestor type has predicates.
911 * sem_aux.ads, sem_aux.adb (Nearest_Ancestor): New function.
912 * sem_prag.adb (Check_Enabled): Minor code reorganization.
914 2010-10-22 Arnaud Charlet <charlet@adacore.com>
916 * gcc-interface/utils.c, gcc-interface/gigi.h: Minor reformatting.
918 2010-10-22 Thomas Quinot <quinot@adacore.com>
920 * einfo.ads (Declaration_Node): Clarify documentation, in particular
921 regarding what is returned for subprogram entities.
923 2010-10-22 Arnaud Charlet <charlet@adacore.com>
925 * exp_attr.adb (Make_Range_Test): Generate a Range node instead of
926 explicit comparisons, generates simpler expanded code.
927 * a-except-2005.adb (Rcheck_06_Ext): New.
928 * gcc-interface/trans.c (gigi, gnat_to_gnu): Handle validity checks
930 * gcc-interface/Make-lang.in: Update dependencies.
932 2010-10-22 Robert Dewar <dewar@adacore.com>
934 * sem_ch3.adb (Array_Type_Declaration): Error for subtype wi predicate
936 (Constrain_Index): Error of subtype wi predicate in index constraint
937 * sem_ch9.adb (Analyze_Entry_Declaration): Error of subtype wi
938 predicate in entry family.
939 * sem_res.adb (Resolve_Slice): Error of type wi predicate in slice.
941 2010-10-22 Javier Miranda <miranda@adacore.com>
943 * sem_util.ads, sem_util.adb (Collect_Parents): New subprogram.
944 (Original_Corresponding_Operation): New subprogram.
945 (Visible_Ancestors): New subprogram.
946 * sem_ch6.adb (New_Overloaded_Entity): Handle new case of dispatching
947 operation that overrides a hidden inherited primitive.
948 * sem_disp.adb (Find_Hidden_Overridden_Primitive): New subprogram.
949 (Check_Dispatching_Operation): if the new dispatching operation
950 does not override a visible primtive then check if it overrides
951 some hidden inherited primitive.
953 2010-10-22 Ed Schonberg <schonberg@adacore.com>
955 * sem_ch10.adb (Analyze_With_Clause): If the parent_unit_name in a with
956 clause is a child unit that denotes a renaming, replace the
957 parent_unit_name with a reference to the renamed unit, because the
958 prefix is irrelevant to subsequent visibility..
960 2010-10-22 Robert Dewar <dewar@adacore.com>
962 * einfo.ads, einfo.adb (Has_Predicates): Flag is now on all entities
964 * exp_ch13.adb (Build_Predicate_Function): Output info msgs for
966 * sem_ch13.adb (Analyze_Aspect_Specifications): Make sure we have a
967 freeze node for entities for which a predicate is specified.
968 (Analyze_Aspect_Specifications): Avoid duplicate calls
969 * sem_ch3.adb (Analyze_Full_Type_Declaration): Remove attempt to avoid
970 duplicate calls to Analye_Aspect_Specifications.
972 2010-10-22 Thomas Quinot <quinot@adacore.com>
974 * a-exextr.adb, atree.ads, freeze.adb: Minor reformatting.
976 2010-10-21 Robert Dewar <dewar@adacore.com>
978 * sem_ch3.adb: Minor reformatting.
980 2010-10-21 Thomas Quinot <quinot@adacore.com>
982 * einfo.ads (Next_Girder_Discriminant): Remove obsolete description for
985 2010-10-21 Nicolas Roche <roche@adacore.com>
987 * gnatmem.adb, memroot.adb, memroot.ads, gmem.c,
988 gcc-interface/Makefile.in: Remove gnatmem specific files.
990 2010-10-21 Thomas Quinot <quinot@adacore.com>
992 * sem_res.adb, exp_ch13.adb: Minor reformatting.
994 2010-10-21 Thomas Quinot <quinot@adacore.com>
996 * sem_ch3.adb (Check_Or_Process_Discriminant): Reject illegal attempt
997 to provide a tagged full view as the completion of an untagged partial
998 view if the partial view has a discriminant with default.
1000 2010-10-21 Arnaud Charlet <charlet@adacore.com>
1002 * gcc-interface/Make-lang.in: Update dependencies.
1004 2010-10-21 Robert Dewar <dewar@adacore.com>
1006 * checks.ads, checks.adb (Apply_Predicate_Check): New procedure
1007 Minor code reorganization.
1008 * einfo.adb (Has_Predicates): Fix assertion.
1009 * exp_ch13.adb (Build_Predicate_Function): Move from Sem_Ch13 spec to
1011 (Expand_N_Freeze_Entity): Call build predicate function.
1012 * exp_ch4.adb (Expand_N_Type_Conversion): Add predicate check.
1013 * exp_ch5.adb (Expand_N_Assignment_Statement): Add predicate check.
1014 * exp_prag.adb (Expand_Pragma_Check): Use all lower case for name of
1016 * freeze.adb (Freeze_Entity): Move building of predicate function to
1018 * sem_ch13.adb (Build_Predicate_Function): Move from Sem_Ch13 to
1020 * sem_ch13.ads (Build_Predicate_Function): Move from Sem_Ch13 to
1022 * sem_ch3.adb (Analyze_Declarations): Remove call to build predicate
1024 * sem_res.adb (Resolve_Actuals): Apply predicate check.
1026 2010-10-21 Robert Dewar <dewar@adacore.com>
1028 * einfo.ads, einfo.adb: Replace Predicate_Procedure by
1029 Predicate_Functions.
1030 * exp_ch4.adb (Expand_N_In): Handle predicates.
1031 * exp_util.ads, exp_util.adb (Make_Predicate_Call): New function.
1032 (Make_Predicate_Check): New function.
1033 * freeze.adb (Freee_Entity): Build predicate function if needed.
1034 * sem_ch13.adb (Build_Predicate_Function): New procedure.
1035 (Analyze_Aspect_Specifications): No third argument for Predicate pragma
1036 built from Predicate aspect.
1037 * sem_ch13.ads (Build_Predicate_Function): New procedure.
1038 * sem_ch3.adb: Add handling for predicates.
1039 * sem_eval.adb (Eval_Membership_Op): Never static if predicate
1041 * sem_prag.adb (Analye_Pragma, case Predicate): Does not take a third
1044 2010-10-21 Robert Dewar <dewar@adacore.com>
1046 * einfo.ads, einfo.adb: Add handling of predicates.
1047 Rework handling of invariants.
1048 * exp_ch3.adb, exp_ch4.adb, exp_util.adb, sem_ch6.adb: Minor changes to
1049 handing of invariants.
1050 * par-prag.adb: Add dummy entry for pragma Predicate
1051 * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing for
1053 * sem_prag.adb: Add implementation of pragma Predicate.
1054 * snames.ads-tmpl: Add entries for pragma Predicate.
1056 2010-10-21 Robert Dewar <dewar@adacore.com>
1058 * elists.adb: Minor reformatting.
1060 2010-10-21 Geert Bosch <bosch@adacore.com>
1062 * urealp.adb (UR_Write): Write hexadecimal constants with exponent 1 as
1063 decimal constants, and write any others using the exponent notation.
1064 Minor reformatting throughout
1065 (Store_Ureal_Normalized): New function (minor code reorganization)
1067 2010-10-21 Robert Dewar <dewar@adacore.com>
1069 * einfo.ads, xeinfo.adb: Minor reformatting.
1070 * s-stalib.ads: Minor comment fixes.
1072 2010-10-21 Ed Schonberg <schonberg@adacore.com>
1074 * sem_ch6.adb (Enter_Overloaded_Entity): Refine warning message about
1075 hiding, to remove noise warnings about hiding predefined operators.
1077 2010-10-21 Emmanuel Briot <briot@adacore.com>
1079 * g-comlin.adb (Add_Switch): Fix handling of switches with no separator
1080 when the parameter has length 1.
1082 2010-10-21 Jose Ruiz <ruiz@adacore.com>
1084 * sem_prag.adb (Set_Ravenscar_Profile): Enforce the restrictions of no
1085 dependence on Ada.Execution_Time.Timers,
1086 Ada.Execution_Time.Group_Budget, and
1087 System.Multiprocessors.Dispatching_Domains which are part of the
1089 * impunit.adb (Non_Imp_File_Names_05): Add the file "a-etgrbu" to the
1090 list of Ada 2005 files for package Ada.Execution_Time.Group_Budgets.
1091 (Non_Imp_File_Names_12): Add the file "s-mudido" to the list of Ada 2012
1092 files for package System.Mutiprocessors.Dispatching_Domains.
1094 2010-10-21 Tristan Gingold <gingold@adacore.com>
1096 * ug_words, vms_data.ads: Define the VMS qualifier for -gnateE.
1098 2010-10-21 Thomas Quinot <quinot@adacore.com>
1100 * sem_ch3.ads (Process_Discriminants): Clarify cases where this is
1101 called for a completion.
1103 2010-10-21 Geert Bosch <bosch@adacore.com>
1105 * uintp.ads: Expand image buffer to have enough room for 128-bit values
1106 * urealp.ads (UR_Write): Write constants in base 16 in hexadecimal
1107 notation; either as fixed point literal or in canonical radix 16
1108 floating point form.
1110 2010-10-21 Robert Dewar <dewar@adacore.com>
1112 * a-cgaaso.ads, a-tags.ads, exp_ch3.adb, exp_attr.adb, exp_ch4.adb,
1113 exp_ch3.ads, exp_ch7.adb, exp_ch9.adb, exp_disp.adb, exp_disp.ads,
1114 exp_dist.adb, exp_util.adb, layout.adb, lib-xref.adb, lib.ads,
1115 prep.adb, prj-strt.adb, s-ststop.adb, s-taskin.ads, s-tataat.ads,
1116 sem_aggr.adb, sem_attr.adb, sem_ch12.adb, sem_ch3.adb, sem_ch4.adb,
1117 sem_ch4.ads, sem_ch5.adb, sem_res.adb, sem_util.adb, einfo.adb,
1118 g-sothco.ads, make.adb: Minor reformatting
1120 2010-10-21 Vincent Celier <celier@adacore.com>
1122 * vms_data.ads: Add new qualifiers /SRC_INFO= and
1123 /UNCHECKED_SHARED_LIB_IMPORTS for GNAT COMPILE.
1124 Correct qualifier /SRC_INFO= for GNAT MAKE
1126 2010-10-21 Ed Schonberg <schonberg@adacore.com>
1128 * exp_aggr.adb (Flatten): An association for a subtype may be an
1130 (Safe_Left_Hand_Side): An unchecked conversion is part of a safe
1131 left-hand side if the expression is.
1132 (Is_Safe_Index): new predicate
1133 * exp_ch3.adb (Expand_Freeze_Enumeration_Type): Indicate that the
1134 generated Rep_To_Pos function is a Pure_Function.
1136 2010-10-21 Robert Dewar <dewar@adacore.com>
1138 * gnat_rm.texi: Document Invariant pragma.
1140 2010-10-21 Javier Miranda <miranda@adacore.com>
1142 * exp_ch5.adb: Update comment.
1144 2010-10-21 Robert Dewar <dewar@adacore.com>
1146 * sem_ch13.adb (Build_Invariant_Procedure): Remove commented out code
1147 for interfaces, since invariants are not allowed on interfaces in any
1150 2010-10-21 Javier Miranda <miranda@adacore.com>
1152 * sem_attr.adb (Resolve_Attribute): After replacing the range attribute
1153 node with a range expression ensure that its evaluation will not have
1155 * exp_ch5.adb (Expand_Assign_Array): Propagate the Parent to the
1156 unchecked conversion node generated to handle assignment of private
1157 types. Required to allow climbing the subtree if Insert_Action is
1160 2010-10-21 Robert Dewar <dewar@adacore.com>
1162 * par-ch3.adb (P_Interface_Type_Definition): Allow for possibility of
1163 aspect clause presence terminating the type definition.
1165 2010-10-21 Robert Dewar <dewar@adacore.com>
1167 * exp_ch4.adb, exp_intr.adb, par-ch4.adb, scn.adb, sem_ch4.adb,
1168 sem_res.adb, sem_util.adb, sinfo.ads, a-except-2005.adb: Minor
1170 * snames.ads-tmpl: Add note on Name_Some (not a reserved keyword).
1172 2010-10-21 Geert Bosch <bosch@adacore.com>
1174 * ttypef.ads: Further cleanup of Safe_XXX float attributes.
1176 2010-10-19 Ed Schonberg <schonberg@adacore.com>
1178 * exp_ch4.adb, exp_ch4.ads (Expand_Quantified_Expression): New procedure
1179 * exp_util.adb (Insert_Actions): Include Quantified_Expression.
1180 * expander.adb: Call Expand_Qualified_Expression.
1181 * par.adb: New procedure P_Quantified_Expression. Make
1182 P_Loop_Parameter_Specification global for use in quantified expressions.
1183 * par-ch3.adb (P_Subtype_Mark_Resync): Allow "some" as an identifier if
1185 * par-ch4.adb: New procedure P_Quantified_Expression.
1186 * par-ch5.adb: P_Loop_Parameter_Specification is now global.
1187 * scans.adb, scans.ads: Introduce token Some. For now leave as
1189 * scn.adb (Scan_Reserved_Identifier): For earlier versions of Ada,
1190 treat Some as a regular identifier.
1191 * sem.adb: Call Analyze_Quantified_Expression.
1192 * sem_ch4.adb, sem_ch4.ads: New procedure Analyze_Quantified_Expression.
1193 * sem_ch5.adb, sem_ch5.ads: Analyze_Iteration_Scheme is public, for use
1194 in quantified expressions.
1195 * sem_res.adb: New procedure Resolve_Qualified_Expression.
1196 * sinfo.adb, sinfo.ads: New node N_Quantified_Expression
1197 * snames.ads-tmpl: New name Some.
1198 * sprint.adb: Output quantified_expression.
1200 2010-10-19 Robert Dewar <dewar@adacore.com>
1202 * a-exexda.adb: Minor reformatting
1203 Minor code reorganization.
1205 2010-10-19 Robert Dewar <dewar@adacore.com>
1207 * sem_eval.adb: Minor reformatting.
1209 2010-10-19 Tristan Gingold <gingold@adacore.com>
1211 * exp_ch4.adb (Expand_N_And_Op, Expand_N_Or_Op, Expand_N_Xor_Op): Call
1212 Expand_Intrinsic_Call if the function is intrinsic.
1213 * exp_intr_adb (Expand_Binary_Operator): Handle VMS case for logical
1214 binary operator on the unsigned_quadword record.
1215 * exp_intr.ads (Expand_Intrinsic_Call): Update comments.
1217 2010-10-19 Geert Bosch <bosch@adacore.com>
1219 * gnat_rm.texi (pragma Float_Representation): Fix typo.
1221 2010-10-19 Arnaud Charlet <charlet@adacore.com>
1223 * switch-c.adb (Scan_Front_End_Switches): Add handling of -gnateE.
1224 * fe.h (Exception_Extra_Info): Declare.
1225 * usage.adb (usage): Add -gnateE doc.
1226 * checks.adb (Install_Null_Excluding_Check): Use better sloc.
1227 * sem_util.adb (Insert_Explicit_Dereference): Ditto.
1228 * gnat_ugn.texi: Document -gnateE switch.
1229 * a-except.adb (Set_Exception_C_Msg): New parameter Column.
1230 * a-except-2005.adb (Set_Exception_C_Msg): New parameter Column.
1231 (Raise_Constraint_Error_Msg): Ditto.
1232 (Image): New helper function.
1233 (Rcheck_00_Ext, Rcheck_05_Ext, Rcheck_12_Ext): New procedure with more
1234 detailed exception information.
1235 Adjust calls to Set_Exception_C_Msg and Raise_Constraint_Error_Msg.
1236 * a-exexda.adb (Set_Exception_C_Msg): New parameter Column.
1237 * opt.ads (Exception_Extra_Info): New flag.
1238 * gcc-interface/utils.c (gnat_raise_decls_ext): New.
1239 * gcc-interface/utils2.c (build_call_raise_range,
1240 build_call_raise_column): New functions.
1241 * gcc-interface/gigi.h (exception_info_kind, gnat_raise_decls_ext,
1242 build_call_raise_range, build_call_raise_column): Declare.
1243 gcc-interface/trans.c (build_raise_check): New function.
1244 (gigi): Initialize gnat_raise_decls_ext.
1245 (gnat_to_gnu): Add initial support for -gnateE switch.
1246 * gcc-interface/Make-lang.in: Update dependencies.
1248 2010-10-19 Geert Bosch <bosch@adacore.com>
1250 * ttypef.ads: Change VAXDF_Last to be -VAXDF_First, as type is
1253 2010-10-19 Robert Dewar <dewar@adacore.com>
1255 * atree.h (Field29): Fix incorrect definition.
1256 * einfo.adb (Invariant_Procedure): New attribute
1257 (Has_Invariants): New flag
1258 (Has_Inheritable_Invariants): New flag
1259 (OK_To_Reference): New flag
1260 Minor code reorganization (use Next_Rep_Item function)
1261 * einfo.ads (Invariant_Procedure): New attribute
1262 (Has_Invariants): New flag
1263 (Has_Inheritable_Invariants): New flag
1264 (OK_To_Reference): New flag
1265 * exp_ch3.adb (Expand_N_Object_Declaration): Add check for invariant
1266 * exp_ch4.adb (Expand_N_Type_Conversion): Check invariant on type
1267 conversion. Minor reformatting.
1268 * exp_util.ads, exp_util.adb (Make_Invariant_Call): New procedure.
1269 * opt.ads (List_Inherited_Aspects): New name for List_Inherited_Pre_Post
1270 * par-prag.adb: Add dummy entry for pragma Invariant.
1271 * sem_ch13.adb (Build_Invariant_Procedure): New procedure
1272 (Analyze_Aspect_Specification): Add support for Invariant aspect
1273 * sem_ch13.ads (Build_Invariant_Procedure): New procedure
1274 * sem_ch3.adb (Build_Derived_Type): Propagate invariant information
1275 (Process_Full_View): Deal with invariants, building invariant procedure
1277 * sem_ch6.adb (Process_PPCs): Add processing of invariants
1278 * sem_ch7.adb (Analyze_Package_Specification): Build invariant
1280 * sem_prag.adb: Implement pragma Invariant.
1281 * sem_res.adb (Resolve_Entity_Name): Allow type reference if
1282 OK_To_Reference set.
1283 * sem_warn.adb (List_Inherited_Aspects): New name for
1284 List_Inherited_Pre_Post.
1285 * snames.ads-tmpl: Add entries for pragma Invariant.
1286 * treepr.adb (Print_Entity_Information): Add handling of Field29.
1287 * usage.adb: Warning .l/.L applies to invariant as well as pre/post.
1289 2010-10-19 Javier Miranda <miranda@adacore.com>
1291 * par-ch4.adb: Update documentation of Ada 2012 syntax rules for
1294 2010-10-19 Bob Duff <duff@adacore.com>
1296 * sem_attr.adb (Eval_Attribute): Implement Max_Alignment_For_Allocation
1298 * exp_attr.adb (Expand_N_Attribute_Reference): Add
1299 Attribute_Max_Alignment_For_Allocation to the case statement.
1300 * snames.ads-tmpl (Name_Max_Alignment_For_Allocation,
1301 Attribute_Max_Alignment_For_Allocation): New attribute name.
1303 2010-10-19 Ed Schonberg <schonberg@adacore.com>
1305 * sem_ch3.adb (OK_For_Limited_Init_In_05): a call to an access to
1306 parameterless function appears syntactically as an explicit dereference.
1308 2010-10-19 Thomas Quinot <quinot@adacore.com>
1310 * sem_ch8.adb, sem_ch12.adb, opt.ads, sem_ch6.adb, sem_res.adb,
1311 i-cexten.ads, exp_disp.adb, exp_ch4.adb, exp_ch9.adb: Minor reformatting
1313 2010-10-19 Thomas Quinot <quinot@adacore.com>
1315 * sem_util.adb (Collect_Primitive_Operations): A function with an
1316 anonymous access result designating T is a primitive operation of T.
1318 2010-10-19 Tristan Gingold <gingold@adacore.com>
1320 * init.c: On Alpha/VMS, only adjust PC for HPARITH.
1322 2010-10-19 Tristan Gingold <gingold@adacore.com>
1324 * sem_attr.adb (Eval_Attribute): Handle Attribute_Ref, which can be
1327 2010-10-19 Ed Schonberg <schonberg@adacore.com>
1329 * sem_ch12.adb (Check_Generic_Child_Unit): Handle properly the case of
1330 an instantiation of a renaming of the implicit generic child that
1331 appears within an instance of its parent.
1333 2010-10-19 Thomas Quinot <quinot@adacore.com>
1335 * exp_ch9.adb: Minor reformatting.
1336 * einfo.adb, einfo.ads, atree.adb, atree.ads, exp_dist.adb, atree.h:
1337 (Referenced_Object): Remove unused entity attribute.
1338 (Direct_Primitive_Operations): Move to Elist10, this is set for all
1339 tagged types, including synchronous ones, so can't use field15 which is
1340 used as Storage_Size_Variable for task types and Entry_Bodies_Array for
1342 (Add_RACW_Primitive_Declarations_And_Bodies): Remove bogus guard
1343 against Concurrent_Types (we must handle the case of a RACW designating
1344 a class-wide private synchronous type).
1345 Use Direct_Primitive_Operations, not Primitive_Operations, since we
1346 really want the former.
1348 2010-10-19 Bob Duff <duff@adacore.com>
1350 * sem_ch8.adb (Pop_Scope): Change "return;" to "raise Program_Error;".
1352 2010-10-19 Javier Miranda <miranda@adacore.com>
1354 * exp_ch4.adb (Expand_Set_Membership.Make_Cond): Add missing support
1357 2010-10-19 Thomas Quinot <quinot@adacore.com>
1359 * einfo.ads, atree.ads: Minor comment fixes.
1361 2010-10-18 Bob Duff <duff@adacore.com>
1363 * sinfo.ads, sinfo.adb: Modify comment about adding fields to be more
1364 correct, and to be in a more convenient order.
1365 (Default_Storage_Pool): New field of N_Compilation_Unit_Aux, for
1366 recording the Default_Storage_Pool for a parent library unit.
1367 * einfo.ads (Etype): Document the case in which Etype can be Empty.
1368 * sem_prag.adb (Pragma_Default_Storage_Pool): Analyze the new
1369 Default_Storage_Pool pragma.
1370 * sem.ads (Save_Default_Storage_Pool): Save area for push/pop scopes.
1371 * gnat_ugn.texi: Document Default_Storage_Pool as a new configuration
1373 * freeze.adb (Freeze_Entity): When freezing an access type, take into
1374 account any Default_Storage_Pool pragma that applies. We have to do
1375 this at the freezing point, because up until that point, a Storage_Pool
1376 or Storage_Size clause could occur, which should override the
1377 Default_Storage_Pool.
1378 * par-prag.adb: Add this pragma to the list of pragmas handled entirely
1380 * sem_ch8.adb (Push_Scope, Pop_Scope): Save and restore the
1381 Default_Storage_Pool information.
1382 * opt.ads (Default_Pool, Default_Pool_Config): New globals for recording
1383 currently-applicable Default_Storage_Pool pragmas.
1384 * opt.adb: Save/restore the globals as appropriate.
1385 * snames.ads-tmpl (Name_Default_Storage_Pool,
1386 Pragma_Default_Storage_Pool): New pragma name.
1388 2010-10-18 Vincent Celier <celier@adacore.com>
1390 * make.adb (Switches_Of): Put the spec and body suffix in canonical
1393 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1395 * sem_ch13.adb (Analyze_Aspect_Specifications): If subprogram is at the
1396 library level, the pre/postconditions must be treated as global
1397 declarations, i.e. placed on the Aux_Decl nodes of the compilation unit.
1398 * freeze.adb (Freeze_Expression): If the expression is at library level
1399 there is no enclosing record to check.
1401 2010-10-18 Javier Miranda <miranda@adacore.com>
1403 * sem_ch3.ads (Find_Type_Name): Add documentation.
1404 * sem_ch3.adb (Analyze_Full_Type_Declaration): Code cleanup because the
1405 propagation of the class-wide entity is now done by routine
1406 Find_Type_Name to factorize this code.
1407 (Analyze_Private_Extension_Declaration): Handle private type that
1408 completes an incomplete type.
1409 (Tag_Mismatch): Add error message for tag mismatch in a private type
1410 declaration that completes an incomplete type.
1411 (Find_Type_Name): Handle completion of incomplete type by means of
1412 a private declaration. Generate an error if a tagged incomplete type
1413 is completed by an untagged private type.
1414 * sem_ch7.adb (New_Private_Type): Handle private type that completes an
1416 * einfo.ads (Full_View): Add documentation.
1418 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1420 * sem_ch12.adb (Analyze_Formal_Package_Declaration): If the package is
1421 a renaming, generate a reference for it before analyzing the renamed
1422 entity, to prevent spurious warnings.
1424 2010-10-18 Jose Ruiz <ruiz@adacore.com>
1426 * adaint.c (__gnat_pthread_setaffinity_np,
1427 __gnat_pthread_attr_setaffinity_np): Remove wrappers, no longer needed.
1428 * s-osinte-linux.ads (pthread_setaffinity_np,
1429 pthread_attr_setaffinity_np): Remove use of wrappers.
1430 * s-taprop-linux.adb (Create_Task, Initialize): Restore check to verify
1431 whether the affinity functionality is available in the OS.
1432 * gcc-interface/utils.c: Set TREE_STATIC on functions only when there
1435 2010-10-18 Robert Dewar <dewar@adacore.com>
1437 * einfo.ads, einfo.adb: Minor reformatting.
1438 * gnat_ugn.texi, ug_words: Add missing entries, fix typos.
1440 2010-10-18 Emmanuel Briot <briot@adacore.com>
1442 * g-comlin.adb (Is_In_Config): When the switch accepts either a space
1443 or equal, we output an equal every time.
1445 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1447 * sem_res.adb (Resolve_Entry_Call): Handle call to an entry family
1448 member when pre/post conditions are present.
1449 * exp_ch9.adb (Build_PPC_Wrapper): The PPC_Wrapper for an entry family
1450 includes an index parameter, and the name of the enclosed entry call is
1451 an indexed component.
1453 2010-10-18 Robert Dewar <dewar@adacore.com>
1455 * einfo.ads, einfo.adb: Minor reformatting.
1457 2010-10-18 Jose Ruiz <ruiz@adacore.com>
1459 * adaint.c (__gnat_pthread_setaffinity_np,
1460 __gnat_pthread_attr_setaffinity_np): Add these wrappers which check the
1461 availability of the underlying OS functionality before calling.
1462 * s-osinte-linux.ads (pthread_setaffinity_np,
1463 pthread_attr_setaffinity_np): Call a wrapper instead of the OS function
1464 to perform a check of its availability.
1465 * s-taprop-linux.adb (Create_Task): Remove the check to verify whether
1466 the affinity functionality is available in the OS. Now done in a wrapper
1467 * gcc-interface/Makefile.in: Remove vmshandler.asm, unused.
1468 * gcc-interface/Make-lang.in: Update dependencies.
1470 2010-10-18 Robert Dewar <dewar@adacore.com>
1472 * sinfo.ads, sinfo.adb: Change Has_Pragma_CPU to Flag14 (Flag10 is
1475 2010-10-18 Robert Dewar <dewar@adacore.com>
1477 * s-stausa.adb, s-taprop-linux.adb, s-taprop-mingw.adb, s-tassta.ads:
1480 2010-10-18 Robert Dewar <dewar@adacore.com>
1482 * exp_strm.adb (Build_Elementary_Input_Call): Check
1483 No_Default_Stream_Attributes.
1484 (Build_Elementary_Write_Call): Check No_Default_Stream_Attributes
1485 * s-rident.ads: Add restriction No_Default_Stream_Attributes
1486 Put restriction No_Allocators_After_Elaboration in alpha order
1488 2010-10-18 Jose Ruiz <ruiz@adacore.com>
1490 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Add field corresponding
1491 to the affinity when expanding the task declaration.
1492 (Make_Task_Create_Call): Add the affinity parameter to the call to
1494 * sem_prag.adb (Analyze_Pragma): Add the analysis for pragma CPU,
1495 taking into account the case when it applies to a subprogram (only for
1496 main and with static expression) or to a task.
1497 * par_prag.adb:(Prag): Make pragma CPU a valid one.
1498 * snames.ads-tmpl (Name_uCPU, Name_CPU): Add these new name identifiers
1499 used by the expander for handling the affinity parameter when creating
1501 (Pragma_Id): Add Pragma_CPU as a valid one.
1502 * rtsfind.ads (RTU_Id): Make System_Multiprocessors accesible.
1503 (RE_Id, RE_Unit_Table): Make the entities RE_CPU_Range and
1504 RE_Unspecified_CPU visible.
1505 * sinfo.ads, sinfo.adb (Has_Pragma_CPU, Set_Has_Pragma_CPU): Add these
1506 two subprograms to set/get the flag indicating whether there is a
1507 pragma CPU which applies to the entity.
1508 * lib.ads, lib.adb (Unit_Record, Default_Main_CPU, Main_CPU,
1509 Set_Main_CPU): Add the field Main_CPU to Unit_Record to store the value
1510 of the affinity associated to the main subprogram (if any).
1511 Default_Main_CPU is used when no affinity is set. Subprograms
1512 Set_Main_CPU and Main_CPU are added to set/get the affinity of the main
1514 * ali.ads, ali.adb (ALIs_Record): Add field Main_CPU to contain the
1515 value of the affinity of the main subprogram.
1516 (Scan_ALI): Get the affinity of the main subprogram (encoded as C=XX in
1518 * lib-writ.ads, lib-writ.adb (M_Parameters): Encode the affinity of the
1519 main subprogram in the M (main) line using C=XX.
1520 * lib-load.adb (Create_Dummy_Package_Unit, Load_Main_Source,
1521 Load_Unit): Add new field Main_CPU.
1522 * bindgen.adb (Gen_Adainit_Ada, Gen_Adainit_C): Add the code to pass
1523 the affinity of the main subprogram to the run time.
1524 * s-taskin.ads (Common_ATCB): Add the field Base_CPU to store the
1526 (Unspecified_CPU): Add this constant to identify the case when no
1527 affinity is set for tasks.
1528 * s-taskin.adb (Initialize_ATCB): Store the value coming from pragma
1529 CPU in the common part of the ATCB.
1530 (Initialize): Store the value coming from pragma CPU (for the
1531 environment task) in the common part of the ATCB.
1532 * s-tassta.ads, s-tassta.adb (Create_Task): Add the affinity specified
1533 by pragma CPU to the ATCB.
1534 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add the affinity
1535 specified by pragma CPU to the ATCB.
1536 * s-tporft.adb (Register_Foreign_Thread): Add the new affinity
1537 parameter to the call to Initialize_ATCB.
1538 * s-taprop-linux.adb (Create_Task): Change the attributes of the thread
1539 to include the task affinity before creation. Additionally, the
1540 affinity selected with Task_Info is also enforced changing the
1541 attributes at task creation time, instead of changing it after creation.
1542 (Initialize): Change the affinity of the environment task if required
1544 * s-osinte-linux.ads (pthread_setaffinity_np): Instead of using a
1545 wrapper to check whether the function is available or not, use a weak
1547 (pthread_attr_setaffinity_np): Add the import of this function which is
1548 used to change the affinity in the attributes used to create a thread.
1549 * adaint.c (__gnat_pthread_attr_setaffinity_np): Remove this wrapper.
1550 It was used to check whether the pthread function was available or not,
1551 but the use of a weak symbol handles this situation in a cleaner way.
1552 * s-taprop-mingw.adb (Create_Task, Initialize): Change the affinity of
1553 tasks (including the environment task) if required by a pragma CPU.
1554 * s-taprop-solaris.adb (Enter_Task): Change the affinity of tasks
1555 (including the environment task) if required by a pragma CPU.
1556 * s-taprop-vxworks.adb (Create_Task, Initialize): Change the affinity
1557 of tasks (including the environment task) if required by a pragma CPU.
1558 * init.c (__gl_main_cpu): Make this value visible to the run time. It
1559 will pass the affinity of the environment task.
1561 2010-10-18 Javier Miranda <miranda@adacore.com>
1563 * einfo.adb (Direct_Primitive_Operations): Complete assertion.
1565 2010-10-18 Vincent Celier <celier@adacore.com>
1567 * prj.ads (Source_Data): New Boolean flag In_The_Queue.
1569 2010-10-18 Tristan Gingold <gingold@adacore.com>
1571 * s-stausa.ads: Add the Top parameter to Initialize_Analyzer.
1572 * s-stausa.adb: Use the top parameter. In Fill_Stack, use the
1574 * s-tassta.adb (Task_Wrapper): Call Initialize_Analyzer after Enter_Task
1575 so that Pri_Stack_Info.Limit can be set and used.
1577 2010-10-18 Robert Dewar <dewar@adacore.com>
1579 * einfo.ads: Minor reformatting.
1580 * sem_res.adb (Resolve_Allocator): Add test for violating
1581 No_Anonymous_Allocators.
1583 2010-10-18 Robert Dewar <dewar@adacore.com>
1585 * prj-nmsc.adb, prj.adb, sem_res.adb: Minor reformatting.
1587 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1589 * sem_util.adb (Insert_Explicit_Dereference): If operand is a selected
1590 component, we generate a reference to the ultimate prefix when it is an
1591 entity name. We must place the reference on the identifier for that
1592 prefix, and not on the operand itself, to prevent spurious extra
1593 references in the ali file.
1595 2010-10-18 Vincent Celier <celier@adacore.com>
1597 * projects.texi: Add documentation for attribute Ignore_Source_Sub_Dirs
1599 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1601 * einfo.ads, einfo.adb: New attribute PPC_Wrapper for entries and entry
1602 families. Denotes a procedure that performs pre/postcondition checks
1603 and then performs the entry call.
1604 * sem_res.adb (Resolve_Entry_Call): If the entry has
1605 pre/postconditions, replace call with a call to the PPC_Wrapper of the
1607 * exp_ch9.adb (Build_PPC_Wrapper): new procedure.
1608 (Expand_N_Entry_Declaration, Expand_N_Protected_Type_Declaration): call
1609 Build_PPC_Wrapper for all entries in task and protected definitions.
1611 2010-10-18 Tristan Gingold <gingold@adacore.com>
1613 * init.c: Add __gnat_set_stack_guard_page and __gnat_set_stack_limit.
1614 Implement stack limitation on VMS.
1617 2010-10-18 Vincent Celier <celier@adacore.com>
1619 * prj.adb (Is_Compilable): Do not modify Source.Compilable until the
1620 source record has been initialized.
1622 2010-10-18 Robert Dewar <dewar@adacore.com>
1624 * einfo.adb: Minor code reorganization (Primitive_Operations is a
1625 synthesized attribute routine and was in the wrong place).
1627 2010-10-18 Tristan Gingold <gingold@adacore.com>
1629 * init.c: Indentation, and minor changes to more closely follow GNU
1630 style rules. Make more variable statics.
1632 2010-10-18 Vincent Celier <celier@adacore.com>
1634 * prj.adb (Is_Compilable): On first call for a source, cache value in
1635 component Compilable.
1636 * prj.ads (Source_Data): New component Compilable, to cache the value
1637 returned by function Is_Compilable.
1639 2010-10-18 Vincent Celier <celier@adacore.com>
1641 * prj-attr.adb: New project level attribute Ignore_Source_Sub_Dirs.
1642 * prj-nmsc.adb (Expand_Subdirectory_Pattern): New string list parameter
1644 (Recursive_Find_Dirs): Do not consider subdirectories listed in Ignore.
1645 (Get_Directories): Call Find_Source_Dirs with the string list
1646 indicated by attribute Ignore_Source_Sub_Dirs.
1647 * snames.ads-tmpl: New standard name Ignore_Source_Sub_Dirs.
1649 2010-10-18 Javier Miranda <miranda@adacore.com>
1651 * einfo.ads, einfo.adb (Primitive_Operations): New synthesized
1653 (Direct_Primitive_Operations): Renaming of old Primitive_Operations.
1654 (Set_Direct_Primitive_Operations): Renaming of old
1655 Set_Primitive_Operations. Update documentation
1656 * sem_ch3.adb, exp_util.adb, sem_ch7.adb, sem_ch8.adb, exp_ch3.adb:
1657 Replace occurrences of Set_Primitive_Operations by
1658 Set_Direct_Primitive_Operations.
1659 * sem_cat.adb (Validate_RACW_Primitives): No action needed for tagged
1661 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
1662 process primitives of concurrent types.
1663 * lib-xref.adb (Generate_Prim_Op_References): Minor code cleanup.
1665 2010-10-18 Eric Botcazou <ebotcazou@adacore.com>
1667 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Use Freeze_Before.
1668 (Expand_Protected_Object_Reference): Likewise.
1669 * sem_attr.adb (Resolve_Attribute): Likewise.
1670 * sem_ch3.adb (Analyze_Subtype_Declaration): Likewise.
1671 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Likewise.
1673 2010-10-18 Arnaud Charlet <charlet@adacore.com>
1675 * g-comlin.adb (Get_Switches): Prevent dereferencing null Config.
1677 2010-10-18 Robert Dewar <dewar@adacore.com>
1679 * aspects.ads, aspects.adb: Add entries for aspects
1680 Read/Write/Input/Output.
1681 * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing for
1682 handling aspects Read/Write/Input/Output.
1684 2010-10-18 Robert Dewar <dewar@adacore.com>
1686 * sem_util.adb (Note_Possible_Modification): Do not give warning for
1687 use of pragma Unmodified unless we are sure this is a modification.
1689 2010-10-18 Tristan Gingold <gingold@adacore.com>
1691 * sysdep.c: Add __gnat_get_stack_bounds.
1692 * s-taprop-mingw.adb Call __gnat_get_stack_bounds to set Pri_Stack_Info.
1694 2010-10-18 Robert Dewar <dewar@adacore.com>
1696 * a-assert.ads: Fix bad name in header.
1697 * sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch10.adb: Minor
1699 * exp_aggr.adb: Fix typo in comment.
1701 2010-10-18 Javier Miranda <miranda@adacore.com>
1703 * exp_util.adb (Side_Effect_Free): Code clean up.
1705 2010-10-18 Ed Schonberg <schonberg@adacore.com>
1707 * sem_ch8.adb (Is_Primitive_Operator_In_Use): Renamed from
1708 Is_Primitive_Operator. When ending the scope of a use package scope, a
1709 primitive operator remains in use if the base type has a current use
1712 2010-10-18 Javier Miranda <miranda@adacore.com>
1714 * einfo.ads (Is_Dynamic_Support): Add missing support for limited
1715 private types whose full-view is a task type.
1716 * sem_util.adb (Enclosing_Subprogram): Add missing support for limited
1717 private types whose full-view is a task type.
1718 * exp_ch7.adb (Find_Final_List): Minor code cleanup replacing code by
1719 function Nearest_Dynamic_Scope which provides the needed functionality.
1721 2010-10-18 Arnaud Charlet <charlet@adacore.com>
1723 * sem_prag.adb (Set_Exported): Do not generate error when exporting a
1724 variable with an address clause in codepeer mode.
1726 2010-10-18 Robert Dewar <dewar@adacore.com>
1728 * g-trasym-vms-ia64.adb: Minor reformatting.
1730 2010-10-18 Thomas Quinot <quinot@adacore.com>
1732 * sem_type.adb (Covers): If either argument is Standard_Void_Type and
1733 the other isn't, return False early.
1735 2010-10-18 Ed Falis <falis@adacore.com>
1737 * s-vxwext-rtp.ads, s-vxext-rtp.adb: Adapt for missing APIs for RTPs in
1740 2010-10-18 Robert Dewar <dewar@adacore.com>
1742 * sem_disp.ads: Minor comment update.
1744 2010-10-18 Robert Dewar <dewar@adacore.com>
1746 * einfo.ads, einfo.adb (Spec_PPC_List): Is now present in Entries
1747 * sem_ch3.adb (Analyze_Declarations): Add processing for delaying
1748 visibility analysis of precondition and postcondition pragmas (and
1750 * sem_ch6.adb (Process_PPCs): Add handling of inherited Pre'Class
1752 * sem_ch7.adb (Analyze_Package_Specification): Remove special handling
1753 of pre/post conditions (no longer needed).
1754 * sem_disp.adb (Inherit_Subprograms): Deal with interface case.
1755 * sem_prag.adb (Analyze_PPC_In_Decl_Part): Remove analysis of message
1756 argument, since this is now done in the main processing for
1757 pre/postcondition pragmas when they are first seen.
1758 (Chain_PPC): Pre'Class and Post'Class now handled properly
1759 (Chain_PPC): Handle Pre/Post aspects for entries
1760 (Check_Precondition_Postcondition): Handle entry declaration case
1761 (Check_Precondition_Postcondition): Handle delay of visibility analysis
1762 (Check_Precondition_Postcondition): Preanalyze message argument if
1765 2010-10-18 Robert Dewar <dewar@adacore.com>
1767 * g-trasym-vms-ia64.adb, prj-nmsc.adb, prj.ads: Minor reformatting.
1769 2010-10-14 Eric Botcazou <ebotcazou@adacore.com>
1771 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Set
1772 TREE_THIS_NOTRAP on the INDIRECT_REF node built for the template.
1773 * gcc-interface/trans.c (Identifier_to_gnu): Set TREE_THIS_NOTRAP on
1774 the INDIRECT_REF node built for objects used by reference.
1775 * gcc-interface/utils2.c (build_binary_op): Add short-circuit for
1776 constant result. Set TREE_THIS_NOTRAP on ARRAY_REF and ARRAY_RANGE_REF.
1777 (gnat_stabilize_reference_1): Propagate the TREE_THIS_NOTRAP flag.
1779 2010-10-13 Richard Henderson <rth@redhat.com>
1781 * gcc-interface/misc.c (gnat_eh_personality): Update call to
1782 build_personality_function.
1783 * raise-gcc.c (PERSONALITY_FUNCTION): Change to match other languages;
1784 use__gnat_personality_{v,sj}0.
1786 2010-10-12 Vincent Celier <celier@adacore.com>
1788 * prj-nmsc.adb (Add_Source): Put source in hash table Source_Files_HT
1789 (Process_Exceptions_File_Based): Use hash table Source_Files_HT instead
1790 of iterating through all sources of the project.
1791 * prj.adb (Free): Reset hash table Source_Files_HT
1792 (Reset): Reset hash table Source_Files_HT
1793 * prj.ads (Source_Data): New component Next_With_File_Name
1794 (Source_Files_Htable): New hash table
1795 (Project_Tree_Data): New component Source_Files_HT
1797 2010-10-12 Tristan Gingold <gingold@adacore.com>
1799 * g-trasym-vms-ia64.adb: Use the documented API.
1800 * gcc-interface/Makefile.in: Always set NO_REORDER_ADAFLAGS.
1801 * gcc-interface/Make-lang.in: Update dependencies.
1803 2010-10-12 Thomas Quinot <quinot@adacore.com>
1805 * rtsfind.ads, exp_dist.adb, exp_dist.ads (Build_General_Calling_Stubs,
1806 PolyORB case): Request is now a controlled type: we can declare the
1807 request on the stack, and we do not need explicit cleanup actions
1810 2010-10-12 Bob Duff <duff@adacore.com>
1812 * s-rident.ads (Profile_Info): This variable is now constant.
1814 2010-10-12 Emmanuel Briot <briot@adacore.com>
1816 * g-comlin.adb, g-comlin.ads (Define_Switch): Put back (unused)
1817 parameter Separator for backward compatibility.
1819 2010-10-12 Robert Dewar <dewar@adacore.com>
1821 * sem_ch9.adb, par-ch9.adb, impunit.adb: Minor reformatting.
1823 2010-10-12 Vincent Celier <celier@adacore.com>
1825 * debug.adb: Put detailed documentation for gnatmake switch -dm.
1827 2010-10-12 Vincent Celier <celier@adacore.com>
1829 * gnat1drv.adb: When the compiler is invoked for a spec that needs aw
1830 body, do not generate an ALI file if neither -gnatc nor -gnatQ is used.
1832 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1834 * g-comlin.adb (Foreach_Switch): Make this procedure generic to avoid
1837 2010-10-12 Robert Dewar <dewar@adacore.com>
1839 * debug.adb: Add comment.
1840 * gnatcmd.adb, sem_ch6.adb, switch-m.adb: Minor reformatting.
1842 2010-10-12 Javier Miranda <miranda@adacore.com>
1844 * exp_util.adb (Side_Effect_Free): Return true for object renaming
1845 declarations that were previously generated by Remove_Side_Effects.
1847 2010-10-12 Emmanuel Briot <briot@adacore.com>
1849 * xref_lib.adb (Get_Full_Type): Display "private variable" instead of
1850 "???" when an entity is defined as "*" in the ALI file.
1851 * g-comlin.ads, g-comlin.adb: Fix handling of null parameters.
1854 2010-10-12 Emmanuel Briot <briot@adacore.com>
1856 * g-comlin.adb, g-comlin.ads (Display_Help, Getopt, Current_Section,
1857 Set_Usage): New subprograms.
1858 (Define_Switch): Change profile to add support for help messages and
1861 2010-10-12 Javier Miranda <miranda@adacore.com>
1863 * sem_ch6.adb (New_Overloaded_Entity): Add missing decoration of
1864 attribute Overridden_Operation in predefined dispatching primitives.
1866 2010-10-12 Emmanuel Briot <briot@adacore.com>
1868 * g-comlin.adb, g-comlin.ads (Add_Switch): Raise an exception when a
1869 command line configuration exists and we specify an invalid section.
1871 2010-10-12 Robert Dewar <dewar@adacore.com>
1873 * sem_ch6.adb (Process_PPCs): Fix error in inheriting Pre'Class when no
1874 exception messages are generated.
1875 (Process_PPCs): Fix error in inheriting Pre'Class.
1877 2010-10-12 Jose Ruiz <ruiz@adacore.com>
1879 * gnatcmd.adb: Use response file for GNATstack.
1880 (Check_Files): Pass the list of ci files for GNATstack using a response
1881 file to avoid problems with command line length.
1882 Factor out the code handling response file into a new procedure named
1883 Add_To_Response_File.
1885 2010-10-12 Vincent Celier <celier@adacore.com>
1887 * debug.adb: For gnatmake, document the meaning of -dm
1888 * make.adb (Gnatmake): If -dm is used, indicate the maximum number of
1889 simultaneous compilations.
1890 * switch-m.adb (Scan_Make_Switches): Allow -j0, meaning as many
1891 simultaneous compilations as the number of processors.
1893 2010-10-12 Joseph Myers <joseph@codesourcery.com>
1895 * gcc-interface/Make-lang.in (ada/misc.o): Use $(OPTIONS_H)
1896 instead of options.h.
1898 2010-10-12 Robert Dewar <dewar@adacore.com>
1900 * gnat_rm.texi: Clarify that 'Old can be used in preconditions and
1901 postcondition pragmas.
1903 2010-10-12 Robert Dewar <dewar@adacore.com>
1905 * errout.ads, erroutc.adb: The # insertion now handles from in place of
1907 * exp_prag.adb (Expand_Pragma_Check): Suppress generated default
1908 message if new switch Exception_Locations_Suppressed is set.
1909 (Expand_Pragma_Check): Revised wording for default message for case
1910 of precondition or postcondition.
1911 * namet.ads, namet.adb (Build_Location_String): New procedure.
1912 * opt.ads (List_Inherited_Pre_Post): New flag.
1913 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Add call to
1914 list inherited pre/post aspects.
1915 * sem_ch13.adb (Analyze_Aspect_Specification): Improve generation of
1916 messages for precondition/postcondition cases.
1917 * sem_ch6.adb (Process_PPCs): General cleanup, and list inherited PPC's
1918 if flag List_Inherited_Pre_Post is set True.
1919 (Process_PPCs): Add initial handling for inherited preconditions
1920 (List_Inherited_Pre_Post_Aspects): New procedure
1921 * sem_ch6.ads (List_Inherited_Pre_Post_Aspects): New procedure
1922 * sem_disp.adb (Inherited_Subprograms): New function
1923 * sem_disp.ads (Inherited_Subprograms): New function
1924 * sem_prag.adb (Check_Duplicate_Pragma): Clean up handling of
1926 (Check_Precondition_Postcondition): Check for inherited aspects
1927 * sem_warn.adb: Process -gnatw.l/w.L setting List_Inherited_Pre_Post
1928 * sinfo.ads, sinfo.adb (Split_PPC): New flag.
1929 * sinput.ads, sinput.adb (Build_Location_String): New function.
1930 * usage.adb: Add line for -gnatw.l/-gnatw.L
1932 2010-10-12 Javier Miranda <miranda@adacore.com>
1934 * exp_util.adb (Remove_Side_Effects): Remove wrong code.
1936 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1938 * xref_lib.adb: Add handling of j/J letters.
1940 2010-10-12 Pascal Obry <obry@adacore.com>
1942 * adaint.c (__gnat_number_of_cpus): Add implementation for Windows.
1944 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1946 * make.adb (Globalize): New procedure.
1947 (Compile): Set Do_Codepeer_Globalize_Step when -gnatC is used.
1948 (Gnatmake): Call Globalize when needed.
1949 (Process_Restrictions_Or_Restriction_Warnings): Ignore Restrictions
1950 pragmas in CodePeer mode.
1951 (Adjust_Global_Switches): Set No_Initialize_Scalars in CodePeer mode,
1952 to generate simpler and consistent code.
1954 2010-10-12 Bob Duff <duff@adacore.com>
1956 * exp_util.adb (Remove_Side_Effects): Disable previous change,
1957 can cause side effects to be duplicated.
1959 2010-10-12 Robert Dewar <dewar@adacore.com>
1961 * sem_ch6.adb (Process_PPCs): Handle inherited postconditions.
1963 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1965 * exp_disp.adb (Set_All_DT_Position): Disable emit error message on
1966 abstract inherited private operation in CodePeer mode.
1968 2010-10-12 Thomas Quinot <quinot@adacore.com>
1970 * a-exetim.ads: Minor reformatting.
1971 * g-socket.ads (Port_Type): Better definition corresponding to the
1972 actual standard range.
1973 * exp_ch5.adb: Add comment.
1974 * sem_aux.adb: Minor reformatting.
1976 2010-10-12 Ed Schonberg <schonberg@adacore.com>
1978 * sem_ch12.adb (Copy_Generic_Node): If node is a string literal, remove
1979 string_literal_subtype so that a new one can be constructed in the
1980 scope of the instance.
1982 2010-10-12 Robert Dewar <dewar@adacore.com>
1984 * exp_ch9.adb (Has_Pragma_Priority): New name for Has_Priority_Pragma
1985 * gnat_rm.texi (pragma Suppress_All): Document new placement rules
1986 * par-prag.adb (P_Pragma, case Suppress_All): Set
1987 Has_Pragma_Suppress_All flag.
1988 * sem_prag.adb (Has_Pragma_Priority): New name for Has_Priority_Pragma
1989 (Analyze_Pragma, case Suppress_All): Remove placement check
1990 (Process_Compilation_Unit_Pragmas): Use Has_Pragma_Suppress_All flag
1991 * sem_prag.ads (Process_Compilation_Unit_Pragmas): Update documentation
1992 * sinfo.adb (Has_Pragma_Suppress_All): New flag
1993 (Has_Pragma_Priority): New name for Has_Priority_Pragma
1994 * sinfo.ads (Has_Pragma_Suppress_All): New flag
1995 (Has_Pragma_Priority): New name for Has_Priority_Pragma
1997 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1999 * lib-xref.ads: Mark j/J as reserved for C++ classes.
2001 2010-10-12 Jose Ruiz <ruiz@adacore.com>
2003 * a-exetim-default.ads, a-exetim-posix.adb: New.
2004 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for linux): Use the
2005 POSIX Realtime support to implement CPU clocks.
2006 (EXTRA_GNATRTL_TASKING_OBJS for linux): Add the a-exetim.o object
2007 to the tasking library.
2008 (THREADSLIB): Make the POSIX.1b Realtime Extensions library (librt)
2009 available for shared libraries.
2010 * gcc-interface/Make-lang.in: Update dependencies.
2012 2010-10-12 Robert Dewar <dewar@adacore.com>
2014 * sem_ch13.adb (Analyze_Aspect_Specifications): For Pre/Post, break
2015 apart expressions with AND THEN clauses into separate pragmas.
2016 * sinput.ads, sinput.adab (Get_Logical_Line_Number_Img): New function.
2018 2010-10-12 Robert Dewar <dewar@adacore.com>
2020 * par-ch13.adb (P_Aspect_Specifications): Fix handling of 'Class
2022 * sem_ch13.adb (Analyze_Aspect_Specifications): Fix bad Sloc on aspects
2023 * sem_prag.adb (Fix_Error): Only change pragma names for pragmas from
2025 (Check_Optional_Identifier): Handle case of direct arguments
2026 (Chain_PPC): Test for abstract case, giving appropriate messages
2027 * sinfo.ads, sinfo.adb (Class_Present): Allowed on N_Pragma node
2029 2010-10-12 Robert Dewar <dewar@adacore.com>
2031 * par-endh.adb (Check_End): Don't swallow semicolon or aspects after
2033 * sem_attr.adb (Eval_Attribute): Code clean up.
2035 2010-10-12 Robert Dewar <dewar@adacore.com>
2037 * par-ch12.adb (P_Formal_Private_Type_Definition): Improve error
2038 messages and recovery for case of out of order Abstract/Tagged/Private
2040 * par-ch3.adb (P_Type_Declaration): Improve error messages and recovery
2041 for case of out of order Abstract/Tagged/Private keywords.
2043 2010-10-12 Ed Schonberg <schonberg@adacore.com>
2045 * inline.adb (Analyze_Inlined_Bodies): Restrict previous change to case
2046 where child unit is main unit of compilation.
2048 2010-10-12 Robert Dewar <dewar@adacore.com>
2050 * aspects.ads, aspects.adb (Move_Aspects): New procedure.
2051 * atree.ads, atree.adb: (New_Copy): Does not copy aspect specifications
2052 * sinfo.ads, par-ch3.adb, par-ch6.adb, par-ch7.adb, par-ch9.adb,
2053 par-endh.adb, par-ch13.adb, par-ch12.adb: Modify grammar to include
2054 aspect specifications.
2055 Recognize aspect specifications for all cases
2056 * par.adb: Recognize aspect specifications for all cases
2057 * sem_ch12.ads, sem_ch12.adb (Copy_Generic_Node): Copies aspect
2059 * sem_ch3.adb (Analyze_Subtype_Declaration): Improve patch to freeze
2060 generic actual types (was missing some guards before).
2061 * sem_ch9.adb (Analyze_Single_Protected_Declaration): Copy aspects to
2063 (Analyze_Single_Task_Declaration): Copy aspects to generated object
2065 2010-10-12 Eric Botcazou <ebotcazou@adacore.com>
2067 * usage.adb (usage): Adjust line for -gnatn switch.
2069 2010-10-12 Robert Dewar <dewar@adacore.com>
2071 * sem_attr.adb (Eval_Attribute): Only leave change active for aspect
2074 2010-10-12 Ed Schonberg <schonberg@adacore.com>
2076 * sem_ch6.adb (Analyze_Subprogram_Declaration): If this is a
2077 declaration of a null procedure resolve the types of the profile of the
2078 generated null body now.
2080 2010-10-11 Robert Dewar <dewar@adacore.com>
2082 * debug.adb: Remove d.A flag to delay address clause (not needed any
2083 more). Add d.A flag to enable tree read/write of aspect spec hash table
2084 * sem_ch13.adb (Analyze_Aspect_Specifications): Properly delay address
2086 (Rep_Item_Too_Late): No need for special processing for delayed rep
2087 items (and it caused difficulties in the address case).
2088 * tree_gen.adb: Only write aspect spec hash table if -gnatd.A is set
2089 * tree_in.adb: Only write aspect spec hash table if -gnatd.A is set
2091 2010-10-11 Pat Rogers <rogers@adacore.com>
2093 * gnat_ugn.texi: Minor editing.
2095 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
2097 * gcc-interface/utils2.c (gnat_build_constructor): Use VEC_qsort.
2099 2010-10-11 Robert Dewar <dewar@adacore.com>
2101 * g-htable.ads (Get_First): New procedural version for Simple_HTable
2102 (Get_Next): New procedural version for Simple_HTable
2103 * s-htable.adb (Get_First): New procedural version for Simple_HTable
2104 (Get_Next): New procedural version for Simple_HTable
2105 * s-htable.ads (Get_First): New procedural version for Simple_HTable
2106 (Get_Next): New procedural version for Simple_HTable
2108 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2110 * sem_aggr.adb (Propagate_Discriminants): To gather the components of a
2111 variant part, use the association list of the subaggregate, which
2112 already includes the values of the needed discriminants.
2114 2010-10-11 Robert Dewar <dewar@adacore.com>
2116 * aspects.ads, aspects.adb: Changes to accomodate aspect delay
2117 (Tree_Write): New procedure.
2118 * atree.ads, atree.adb: Flag3 is now Has_Aspects and applies to all
2120 * atree.h: Flag3 is now Has_Aspects and applies to all nodes
2121 * debug.adb: Add debug flag gnatd.A
2122 * einfo.adb (Has_Delayed_Aspects): New flag
2123 (Get_Rep_Item_For_Entity): New function
2124 * einfo.ads (Has_Delayed_Aspects): New flag
2125 (Get_Rep_Item_For_Entity): New function
2126 * exp_ch13.adb (Expand_N_Freeze_Entity): Insert delayed aspects into
2128 * exp_ch3.adb, exp_ch6.adb, exp_ch9.adb, exp_disp.adb: New calling
2129 sequence for Freeze_Entity.
2130 * freeze.ads, freeze.adb (Freeze_Entity): Takes node rather than source
2131 ptr. All calls are changed to this new interface.
2132 (Freeze_And_Append): Same change
2133 (Freeze_Entity): Evaluate deferred aspects
2134 * sem_attr.adb: New calling sequence for Freeze_Entity
2135 (Eval_Attribute): Don't try to evaluate attributes of unfrozen types
2136 when we are in spec expression preanalysis mode.
2137 * sem_ch10.adb: New calling sequence for Freeze_Entity
2138 * sem_ch11.adb: Simplify analysis of aspect specifications now that the
2139 flag Has_Aspects applies to all nodes (no need to save aspects).
2140 * sem_ch12.adb: Simplify analysis of aspect specifications now that the
2141 flag Has_Aspects applies to all nodes (no need to save aspects).
2142 * sem_ch13.adb (Analyze_Aspect_Specifications): Major rewrite to
2143 accomodate delaying aspect evaluation to the freeze point.
2144 (Duplicate_Clause): Simplify using Get_Rep_Item_For_Entity, and also
2145 accomodate delayed aspects.
2146 (Rep_Item_Too_Late): Deal with delayed aspects case
2147 * sem_ch13.ads (Rep_Item_Too_Late): Document handling of delayed
2149 * sem_ch3.adb (Analyze_Subtype_Declaration): Make sure that generic
2150 actual types are properly frozen (this is needed because of the new
2151 check in Eval_Attribute that declines to evaluate attributes
2152 for unfrozen types).
2153 Simplify analysis of aspect specifications now that the flag
2154 Has_Aspects applies to all nodes (no need to save aspects).
2155 * sem_ch3.ads (Preanalyze_Spec_Expression): Note use for delayed
2157 * sem_ch5.adb: Simplify analysis of aspect specifications now that the
2158 flag Has_Aspects applies to all nodes (no need to save aspects).
2159 New calling sequence for Freeze_Entity.
2160 * sem_ch9.adb, sem_ch7.adb, sem_ch6.adb: Simplify analysis of aspect
2161 specifications now that the flag Has_Aspects applies to all nodes
2162 (no need to save aspects).
2163 New calling sequence for Freeze_Entity
2164 * sem_prag.adb (Check_Duplicate_Pragma): Simplify using
2165 Get_Rep_Item_For_Entity
2166 (Get_Pragma_Arg): Moved to Sinfo
2167 * sinfo.ads, sinfo.adb (Aspect_Rep_Item_: New field
2168 (Is_Delayed_Aspect): New flag
2169 (Next_Rep_Item): Document use for aspects
2170 (Get_Pragma_Arg): Moved here from Sem_Prag
2171 * sprint.adb (Sprint_Aspect_Specifications): Now called after semicolon
2172 is output and removes semicolon (simplifies interface).
2173 (Sprint_Node_Actual): Simplify handling of aspects now that Has_Aspects
2174 applies to any node.
2175 * tree_gen.adb: Write contents of Aspect_Specifications hash table
2176 * tree_in.adb: Read and initialize Aspect_Specifications hash table
2177 * treepr.adb (Print_Node): Print Has_Aspects flag
2178 (Print_Node): Print Aspect_Specifications in Has_Aspects set
2179 * xtreeprs.adb: Remove obsolete references to Flag1,2,3
2181 2010-10-11 Robert Dewar <dewar@adacore.com>
2183 * aspects.ads, aspects.adb: Major revision of this package for 2nd
2184 stage of aspects implementation.
2185 * gcc-interface/Make-lang.in: Add entry for aspects.o
2186 * gcc-interface/Makefile.in: Add aspects.o to GNATMAKE_OBJS
2187 * par-ch13.adb (Aspect_Specifications_Present): New function
2188 (P_Aspect_Specifications): New procedure
2189 * par-ch3.adb (P_Type_Declaration): Handle aspect specifications
2190 (P_Derived_Type_Def_Or_Private_Ext_Decl): Handle aspect specifications
2191 (P_Identifier_Declarations): Handle aspect specifications
2192 (P_Component_Items): Handle aspect specifications
2193 (P_Subtype_Declaration): Handle aspect specifications
2194 * par-ch6.adb (P_Subprogram): Handle aspect specifications
2195 * par-ch9.adb (P_Entry_Declaration): Handle aspect specifications
2196 * par.adb (Aspect_Specifications_Present): New function
2197 (P_Aspect_Specifications): New procedure
2198 * sem.adb (Analyze_Full_Type_Declaration): New name for
2199 Analyze_Type_Declaration.
2200 (Analyze_Formal_Package_Declaration): New name (add _Declaration)
2201 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
2202 (Analyze_Protected_Type_Declaration): New name (add _Declaration)
2203 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
2204 (Analyze_Single_Task_Declaration): New name (add _Declaration)
2205 (Analyze_Task_Type_Declaration): New name (add _Declaration)
2206 * sem_cat.adb (Analyze_Full_Type_Declaration): New name for
2207 Analyze_Type_Declaration.
2208 * sem_ch11.adb (Analyze_Exception_Declaration): Analyze aspect
2210 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Handle aspect
2212 (Analyze_Formal_Package_Declaration): New name (add _Declaration)
2213 (Analyze_Formal_Package_Declaration): Handle aspect specifications
2214 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
2215 (Analyze_Formal_Subprogram_Declaration): Handle aspect specifications
2216 (Analyze_Formal_Type_Declaration): Handle aspect specifications
2217 (Analyze_Generic_Package_Declaration): Handle aspect specifications
2218 (Analyze_Generic_Subprogram_Declaration): Handle aspect specifications
2219 (Analyze_Package_Instantiation): Handle aspect specifications
2220 (Analyze_Subprogram_Instantiation): Handle aspect specifications
2221 * sem_ch12.ads (Analyze_Formal_Package_Declaration): New name (add
2223 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
2224 * sem_ch13.adb (Analyze_Aspect_Specifications): New procedure
2225 (Duplicate_Clause): New function, calls to this function are added to
2226 processing for all aspects.
2227 * sem_ch13.ads (Analyze_Aspect_Specifications): New procedure
2228 * sem_ch3.adb (Analyze_Full_Type_Declaration): New name for
2229 Analyze_Type_Declaration.
2230 * sem_ch3.ads (Analyze_Full_Type_Declaration): New name for
2231 Analyze_Type_Declaration.
2232 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Analyze aspect
2234 (Analyze_Subprogram_Declaration): Analyze aspect specifications
2235 * sem_ch7.adb (Analyze_Package_Declaration): Analyze aspect
2237 (Analyze_Private_Type_Declaration): Analyze aspect specifications
2238 * sem_ch9.adb (Analyze_Protected_Type_Declaration): Analyze aspect
2240 (Analyze_Protected_Type_Declaration): New name (add _Declaration)
2241 (Analyze_Single_Protected_Declaration): Analyze aspect specifications
2242 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
2243 (Analyze_Single_Task_Declaration): Analyze aspect specifications
2244 (Analyze_Single_Task_Declaration): New name (add _Declaration)
2245 (Analyze_Task_Type_Declaration): Analyze aspect specifications
2246 (Analyze_Task_Type_Declaration): New name (add _Declaration)
2247 * sem_ch9.ads (Analyze_Protected_Type_Declaration): New name (add
2249 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
2250 (Analyze_Single_Task_Declaration): New name (add _Declaration)
2251 (Analyze_Task_Type_Declaration): New name (add _Declaration)
2252 * sem_prag.adb: Use Get_Pragma_Arg systematically so that we do not
2253 have to generate unnecessary pragma argument associations (this matches
2255 Throughout do changes to accomodate aspect specifications, including
2256 specializing messages, handling the case of not going through all
2257 homonyms, and allowing for cancellation.
2258 * sinfo.ads, sinfo.adb: Clean up obsolete documentation for Flag1,2,3
2259 (Aspect_Cancel): New flag
2260 (From_Aspect_Specification): New flag
2261 (First_Aspect): Removed flag
2262 (Last_Aspect): Removed flag
2263 * sprint.adb (Sprint_Aspect_Specifications): New procedure
2264 (Sprint_Node_Actual): Add calls to Sprint_Aspect_Specifications
2266 2010-10-11 Bob Duff <duff@adacore.com>
2268 * sem_res.adb (Resolve_Actuals): Minor change to warning messages so
2269 they match in Ada 95, 2005, and 2012 modes, in the case where the
2270 language didn't change. Same thing for the run-time exception message.
2272 2010-10-11 Javier Miranda <miranda@adacore.com>
2274 * debug.adb Document that switch -gnatd.p enables the CIL verifier.
2276 2010-10-11 Robert Dewar <dewar@adacore.com>
2278 * s-htable.adb: Minor reformatting.
2280 2010-10-11 Javier Miranda <miranda@adacore.com>
2282 * debug.adb: Update comment.
2284 2010-10-11 Vincent Celier <celier@adacore.com>
2286 * gnatcmd.adb (GNATCmd): Set Opt.Unchecked_Shared_Lib_Imports to True
2287 unconditionally as for "gnat make" the projects are not processed in
2290 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2292 * sem_ch10.ads, sem_ch10.adb (Load_Needed_Body): Add parameter to
2293 suppress semantic analysis of the body when inlining, prior to
2294 verifying that the body does not have a with_clause on a descendant
2296 * inline.adb (Analyze_Inlined_Bodies): Do not inline a body if it has a
2297 with_clause on a descendant.
2298 (Scope_In_Main_Unit): Simplify.
2300 2010-10-11 Robert Dewar <dewar@adacore.com>
2302 * exp_ch6.adb, freeze.adb: Minor reformatting.
2304 2010-10-11 Vincent Celier <celier@adacore.com>
2306 * gnatcmd.adb (GNATCmd): For all tools other than gnatmake, allow
2307 shared library projects to import projects that are not shared library
2310 2010-10-11 Javier Miranda <miranda@adacore.com>
2312 * debug.adb: Document that switch -gnatd.o generates the CIL listing.
2314 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2316 * sem_prag.adb (Process_Suppress_Unsuppress): Only ignore
2317 Suppress/Unsuppress pragmas in codepeer mode on user code.
2319 2010-10-11 Javier Miranda <miranda@adacore.com>
2321 * exp_ch6.adb (Expand_Call): For VM platforms, add missing expansion of
2322 tag check in case of dispatching call through "=".
2324 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2326 * sem_ch3.adb (Access_Subprogram_Declaration): In Ada2012 an incomplete
2327 type is legal in the profile of any basic declaration.
2328 * sem_ch6.adb (Analyze_Return_Type, Process_Formals): In Ada2012 an
2329 incomplete type, including a limited view of a type, is legal in the
2330 profile of any subprogram declaration.
2331 If the type is tagged, its use is also legal in a body.
2332 * sem_ch10.adb (Install_Limited_With_Clause): Do not process context
2334 (Install_Limited_Withed_Unit): Refine legality checks when both the
2335 limited and the non-limited view of a package are visible in the
2337 If this is not an error case, the limited view is ignored.
2338 freeze.adb (Freeze_Entity): In Ada2012, an incomplete type is legal in
2339 access to subprogram declarations
2341 2010-10-11 Robert Dewar <dewar@adacore.com>
2343 * exp_ch6.adb: Code clean up.
2344 * exp_util.adb: Minor reformatting.
2346 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2348 * sem_ch3.adb, exp_ch6.adb
2349 (Make_Build_In_Place_Call_In_Anonymous_Context,
2350 Make_Build_In_Place_Call_In_Assignment,
2351 Make_Build_In_Place_Call_In_Object_Declaration): Fix calls to
2352 Add_Task_Actuals_To_Build_In_Place_Call in case of No_Task_Hierarchy
2354 (Access_Definition): Add missing handling of No_Task_Hierarchy.
2356 2010-10-11 Javier Miranda <miranda@adacore.com>
2358 * exp_util.adb (Remove_Side_Effects): No action needed for renamings of
2359 class-wide expressions.
2361 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2363 * xr_tabls.adb, sem_res.adb: Minor reformatting
2365 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2367 * gnat_rm.texi, exp_attr.adb, sem_attr.adb, sem_attr.ads,
2368 snames.ads-tmpl (Analyze_Attribute, Expand_N_Attribute_Reference): Add
2369 handling of Attribute_Ref. Add missing blanks in some error messages.
2370 (Attribute_Ref, Name_Ref): Declare.
2371 Document 'Ref attribute.
2373 2010-10-11 Robert Dewar <dewar@adacore.com>
2375 * sem_attr.adb: Minor reformatting.
2377 2010-10-11 Javier Miranda <miranda@adacore.com>
2379 * sem_ch8.adb (Attribute_Renaming): Add missing check to avoid loading
2380 package System.Aux_Dec in VM platforms.
2382 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2384 * sem_prag.adb (Process_Suppress_Unsuppress): Ignore
2385 Suppress/Unsuppress pragmas in codepeer mode.
2386 (Analyze_Pragma [Pragma_Suppress_All]): Do not generate error message
2388 * einfo.ads: Fix typo.
2390 2010-10-11 Emmanuel Briot <briot@adacore.com>
2392 * sinfo.adb: Use GNAT.HTable rather than System.HTable.
2393 * prj-nmsc.adb: Minor reformatting.
2395 2010-10-11 Thomas Quinot <quinot@adacore.com>
2397 * sem_attr.adb (Type_Key): Code simplification.
2399 2010-10-11 Tristan Gingold <gingold@adacore.com>
2401 * gcc-interface/utils2.c (maybe_wrap_malloc): Fix crash when allocating
2402 very large object on VMS.
2404 2010-10-11 Javier Miranda <miranda@adacore.com>
2406 * sem_ch10.adb (Analyze_With_Clause): Add missing test to ensure
2407 availability of attribute Instance_Spec.
2409 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2411 * gnat1drv.adb (Adjust_Global_Switches): Disable codepeer mode if
2412 checking syntax only or in ASIS mode.
2414 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2416 * sem_ch6.adb (Check_Delayed_Subprogram): Abstract subprograms may also
2417 need a freeze node if some type in the profile has one.
2418 * gcc-interface/trans.c (case N_Abstract_Subprogram_Declaration): If
2419 entity has a freeze node, defer elaboration.
2421 2010-10-11 Emmanuel Briot <briot@adacore.com>
2423 * prj-nmsc.adb (Check_Aggregate_Project): Add support for finding all
2424 aggregated projects.
2426 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2428 * sem_res.adb (Resolve_Entry_Call): Generate 's' reference for entry
2430 * sem_ch6.adb: Diagnose additional error condition.
2432 2010-10-11 Bob Duff <duff@adacore.com>
2434 * par.adb (Par): Clarify wording of certain error messages.
2436 2010-10-11 Gary Dismukes <dismukes@adacore.com>
2438 * sem_disp.adb (Check_Dispatching_Operation): Revise test for warning
2439 about nondispatching subprograms to use In_Same_List (reducing use of
2442 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2444 * xr_tabls.adb, sem_res.adb, lib-xref.adb, lib-xref.ads: Use s for
2445 reference in a static call.
2447 2010-10-11 Steve Baird <baird@adacore.com>
2449 * exp_attr.adb (Expand_N_Attribute_Reference, case Type_Key): Type_Key
2450 attribute should always be transformed into a string literal in
2452 * par-ch4.adb: Type_Key attribute's type is String; update value of
2453 Is_Parameterless_Attribute constant to reflect this.
2454 * sem_attr.adb (Analyze_Attribute): Recognize Type_Key attribute and
2455 rewrite it as a string literal (attribute value is always known
2457 * snames.ads-tmpl: Add entries for Type_Key attribute.
2459 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2461 * lib-xref.adb (Output_References): Common handling for objects and
2462 formals of an anonymous access type.
2464 2010-10-11 Eric Botcazou <ebotcazou@adacore.com>
2466 * make.adb (Scan_Make_Arg): Also pass -O to both compiler and linker.
2468 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2470 * sem_ch6.adb: Fix check for illegal equality declaration in Ada2012
2472 2010-10-11 Gary Dismukes <dismukes@adacore.com>
2474 * sem_disp.adb (Check_Dispatching_Operation): When testing for issuing
2475 a warning about subprograms of a tagged type not being dispatching,
2476 limit this to cases where the tagged type and the subprogram are
2477 declared within the same declaration list.
2479 2010-10-11 Jerome Lambourg <lambourg@adacore.com>
2481 * projects.texi, prj-attr.adb: Add new attribute documentation_dir.
2483 2010-10-11 Bob Duff <duff@adacore.com>
2485 * par-ch9.adb, sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, impunit.adb,
2486 impunit.ads, sem_ch5.adb, sem_type.adb, exp_imgv.adb, exp_util.adb,
2487 switch-c.adb, exp_attr.adb, exp_ch9.adb, par-ch11.adb, usage.adb,
2488 sem_ch9.adb, sem_ch10.adb, scng.adb, checks.adb, sem_prag.adb,
2489 sem_ch12.adb, par-ch2.adb, freeze.adb, par-ch4.adb, sem_util.adb,
2490 sem_res.adb, sem_attr.adb, par-ch6.adb, exp_ch4.adb, exp_ch6.adb,
2491 sem_ch4.adb, exp_ch8.adb, par-ch10.adb, sem_ch6.adb, par-prag.adb,
2492 exp_disp.adb, par-ch12.adb, sem_ch8.adb, snames.adb-tmpl, opt.ads,
2493 exp_aggr.adb, sem_cat.adb, sem_ch13.adb, par-ch3.adb, exp_strm.adb,
2494 exp_cg.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb: Use Ada_2005
2495 instead of Ada_05 (Ada_Version_Type).
2497 2010-10-11 Bob Duff <duff@adacore.com>
2499 * sem_aggr.adb, impunit.adb, impunit.ads, switch-c.adb, usage.adb,
2500 sem_ch10.adb, sem_prag.adb, sem_ch12.adb, par-ch4.adb, par-ch6.adb,
2501 par-ch8.adb, exp_ch4.adb, sem_ch4.adb, sem_ch6.adb, par-prag.adb,
2502 opt.ads, par-ch3.adb, lib-xref.adb: Use Ada_2012 instead of Ada_12
2505 2010-10-11 Javier Miranda <miranda@adacore.com>
2507 * exp_util.adb (Safe_Prefixed_Reference): If the prefix is an explicit
2508 dereference then do not exclude dereferences of access-to-constant
2509 types to handle them as constant view of variables (and hence remove
2510 side effects when required).
2511 * sem_res.adb (Resolve_Slice): Ensure that side effects in the bounds
2512 are properly handled.
2514 2010-10-11 Robert Dewar <dewar@adacore.com>
2516 * sem_prag.adb, sem_aggr.adb, sprint.adb: Minor reformatting.
2518 2010-10-11 Javier Miranda <miranda@adacore.com>
2520 * exp_ch5.ads, exp_ch6.ads (Expand_N_Extended_Return_Statement): Moved
2522 (Expand_N_Simple_Return_Statement): Moved to exp_ch6.
2523 * exp_ch5.adb, exp_ch6.adb (Expand_Non_Function_Return): Moved to
2525 (Expand_Simple_Function_Return): Move to exp_ch6.
2526 (Expand_N_Extended_Return_Statement): Moved to exp_ch6.
2527 (Expand_N_Simple_Return_Statement): Moved to exp_ch6.
2529 2010-10-11 Robert Dewar <dewar@adacore.com>
2531 * snames.ads-tmpl: Add names for aspects.
2532 * aspects.ads, aspects.adb: New.
2533 * gcc-interface/Make-lang.in: Update dependencies.
2534 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2536 * exp_ch6.adb (Expand_Actuals): If an actual is the current instance of
2537 a task type, it must be replaced with a reference to Self.
2539 2010-10-11 Vincent Celier <celier@adacore.com>
2541 * adaint.h: Add prototype for function __gnat_create_output_file_new.
2543 2010-10-11 Javier Miranda <miranda@adacore.com>
2545 * sem_aggr.adb (Collect_Aggr_Bounds): Remove side effects of collected
2548 2010-10-11 Arnaud Charlet <charlet@adacore.com>
2550 * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Do not emit error
2551 for AI05-0033 in CodePeer mode.
2553 2010-10-11 Robert Dewar <dewar@adacore.com>
2555 * atree.h, atree.ads, atree.adb (Flag3): New flag (replaces Unused_1)
2556 * csinfo.adb: Aspect_Specifications is a new special field
2557 * einfo.adb (Flag3): New unused flag
2558 * exp_util.adb (Insert_Actions): Add processing for
2559 N_Aspect_Specification.
2560 * sem.adb: Add entry for N_Aspect_Specification.
2561 * sinfo.ads, sinfo.adb (N_Aspect_Specification): New node
2562 (Has_Aspect_Specifications): New flag
2563 (Permits_Aspect_Specifications): New function
2564 (Aspect_Specifications): New function
2565 (Set_Aspect_Specifications): New procedure
2566 * sprint.adb (Sprint_Node): Put N_At_Clause in proper alpha order
2567 (Sprint_Node): Add dummy entry for N_Aspect_Specification
2568 * treepr.adb (Flag3): New flag to be listed
2570 2010-10-11 Vincent Celier <celier@adacore.com>
2572 * adaint.c: Minor reformatting.
2574 2010-10-11 Robert Dewar <dewar@adacore.com>
2576 * sem_ch6.adb, s-htable.ads: Minor reformatting.
2578 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2580 * sem_ch4.adb (Analyze_Selected_Component): If the selector is
2581 invisible in an instantiation, and both the formal and the actual are
2582 private extensions of the same type, look for the desired component in
2583 the proper view of the parent type.
2585 2010-10-11 Vincent Celier <celier@adacore.com>
2587 * adaint.c (__gnat_number_of_cpus): Add implementation for Solaris,
2588 AIX, Tru64, Darwin, IRIX and HP-UX.
2590 2010-10-11 Robert Dewar <dewar@adacore.com>
2592 * a-textio.adb: Minor reformatting
2594 2010-10-11 Robert Dewar <dewar@adacore.com>
2596 * a-suesen.ads, a-suenst.ads,
2597 a-suesen.adb, a-suenst.adb,
2598 a-suewse.adb, a-suewst.adb,
2599 a-suewse.ads, a-suewst.ads,
2600 a-suezse.ads, a-suezst.ads,
2601 a-suezse.adb, a-suezst.adb: New name for string encoding packages.
2602 * impunit.adb: New names for string encoding units
2603 * Makefile.rtl: New names for string encoding units
2604 * rtsfind.ads: Minor code reorganization.
2606 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2608 * exp_ch5.adb: Code clean up.
2610 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2612 * sem_ch6.adb (Check_Limited_Return): Specialize warning on limited
2613 returns when in a generic context.
2614 (Analyze_Function_Return): ditto.
2616 2010-10-11 Robert Dewar <dewar@adacore.com>
2618 * s-multip.ads: Fix header.
2619 * sem_ch3.adb, s-multip.adb, a-tigeli.adb: Minor reformatting.
2621 2010-10-11 Vincent Celier <celier@adacore.com>
2623 * Makefile.rtl: Add s-multip.
2624 * adaint.c: New function __gnat_number_of_cpus, implemented for Linux,
2625 defaulting to 1 for other platforms.
2626 * adaint.h: New function __gnat_number_of_cpus.
2627 * impunit.adb (Non_Imp_File_Names_12): New file list for Ada 2012,
2628 with a single component "s-multip".
2629 * impunit.ads (Kind_Of_Unit): New enumerated value Ada_12_Unit for Ada
2631 * rtsfind.ads (RTU_Id): New enumerated value System_Multiprocessors
2632 * s-multip.ads, s-multip.adb: New Ada 2012 package.
2633 * sem_ch10.adb (Analyze_With_Clause): Check also Ada 2012 units.
2635 2010-10-11 Javier Miranda <miranda@adacore.com>
2637 * a-textio.adb: Move new implementation of Get_Line to a subunit.
2638 * a-tigeli.adb: New subunit containing the implementation of Get_Line.
2640 2010-10-11 Ed Schonberg <schonberg@adacore.com>
2642 * sem_aux.adb: Code clean up.
2644 2010-10-11 Robert Dewar <dewar@adacore.com>
2646 * sem_ch3.adb, sem_aux.adb, sem_ch6.adb: Minor reformatting
2648 2010-10-11 Robert Dewar <dewar@adacore.com>
2650 * einfo.adb, atree.h, atree.ads, atree.adb: Define seven new flags
2651 Flag248-Flag254. Define new field Field29.
2653 2010-10-10 Olivier Hainque <hainque@adacore.com>
2654 Eric Botcazou <ebotcazou@adacore.com>
2656 * gcc-interface/lang.opt (gdwarf+): Remove.
2657 * gcc-interface/gigi.h (get_parallel_type): Likewise
2658 * gcc-interface/misc.c (gnat_dwarf_extensions): Likewise.
2659 (gnat_handle_option): Remove OPT_gdwarfplus case.
2660 (gnat_post_options): Remove setting of use_gnu_debug_info_extensions
2661 from gnat_dwarf_extensions.
2662 * gcc-interface/trans.c (gigi): Remove -gdwarf+ initializations.
2663 * gcc-interface/utils.c (get_parallel_type): Remove.
2665 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
2667 * gcc-interface/trans.c (gnat_to_gnu) <N_Not_In>: Use
2668 invert_truthvalue_loc instead of invert_truthvalue.
2669 * gcc-interface/utils2.c (build_binary_op) <NE_EXPR>: Likewise.
2670 (build_unary_op) <TRUTH_NOT_EXPR>: Likewise.
2672 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
2674 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
2675 assertion on the types of the parameters. Use KIND local variable.
2676 <E_Incomplete_Type>: Likewise.
2678 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
2680 * gcc-interface/ada-tree.h (DECL_BY_DOUBLE_REF_P): New macro.
2681 * gcc-interface/gigi.h (annotate_object): Add BY_DOUBLE_REF parameter.
2682 * gcc-interface/decl.c (annotate_object): Likewise and handle it.
2683 (gnat_to_gnu_entity): Adjust calls to annotate_object.
2684 (gnat_to_gnu_param): If fat pointer types are passed by reference on
2685 the target, pass them by explicit reference.
2686 * gcc-interface/misc.c (default_pass_by_ref): Fix type of constant.
2687 * gcc-interface/trans.c (Identifier_to_gnu): Do DECL_BY_DOUBLE_REF_P.
2688 (Subprogram_Body_to_gnu): Adjust call to annotate_object.
2689 (call_to_gnu): Handle DECL_BY_DOUBLE_REF_P.
2690 * gcc-interface/utils.c (convert_vms_descriptor): Add BY_REF parameter
2692 (build_function_stub): Iterate on the parameters of the subprogram in
2693 lieu of on the argument types. Adjust call to convert_vms_descriptor.
2695 2010-10-09 Eric Botcazou <ebotcazou@adacore.com>
2697 * gcc-interface/misc.c: Delete prototypes.
2698 (gnat_init_options): Use local variable.
2699 (lang_hooks): Move to the end of the file.
2701 2010-10-08 Joseph Myers <joseph@codesourcery.com>
2703 * gcc-interface/misc.c (gnat_init_options_struct): New. Split out
2704 from gnat_init_options.
2705 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
2707 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2709 * sem_aux.adb: Cleanup Is_Immutably_Limited_Type.
2711 2010-10-08 Robert Dewar <dewar@adacore.com>
2713 * exp_ch3.adb: Minor reformatting.
2714 * exp_ch5.adb: Add comment.
2716 2010-10-08 Robert Dewar <dewar@adacore.com>
2718 * sem_prag.adb (Check_Duplicate_Pragma): Check for entity match
2719 * gcc-interface/Make-lang.in: Update dependencies.
2720 * einfo.ads: Minor reformatting.
2722 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2724 * exp_ch5.adb, sem_ch3.adb, exp_ch7.adb, exp_util.adb, sem_aux.adb,
2725 sem_aux.ads, exp_ch4.adb, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
2726 exp_ch3.adb: Change Is_Inherently_Limited_Type to
2727 Is_Immutably_Limited_Type to accord with new RM terminology.
2728 * sem_aux.adb (Is_Immutably_Limited_Type): A type that is a descendant
2729 of a formal limited private type is not immutably limited in a generic
2732 2010-10-08 Robert Dewar <dewar@adacore.com>
2734 * sem_prag.adb (Check_Duplicate_Pragma): New procedure
2735 Add calls to this new procedure where appropriate
2737 2010-10-08 Vincent Celier <celier@adacore.com>
2739 * a-textio.adb (Get_Chunk): Code clean up.
2741 2010-10-08 Robert Dewar <dewar@adacore.com>
2743 * a-strbou.ads, a-strfix.adb, a-strfix.ads, a-strsea.adb, a-strsea.ads,
2744 a-strsup.adb, a-strsup.ads, a-strunb-shared.adb, a-strunb-shared.ads,
2745 a-strunb.adb, a-strunb.ads, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
2746 a-stwise.adb, a-stwise.ads, a-stwisu.adb, a-stwisu.ads,
2747 a-stwiun-shared.adb, a-stwiun-shared.ads, a-stwiun.adb, a-stwiun.ads,
2748 a-stzbou.ads, a-stzfix.adb, a-stzfix.ads, a-stzsea.adb, a-stzsea.ads,
2749 a-stzsup.adb, a-stzsup.ads, a-stzunb-shared.adb, a-stzunb-shared.ads,
2750 a-stzunb.adb, a-stzunb.ads (Find_Token): New version with From
2753 2010-10-08 Robert Dewar <dewar@adacore.com>
2755 * sem_cat.adb (Check_Categorization_Dependencies): Remote types
2756 packages can depend on preleborated packages.
2758 2010-10-08 Robert Dewar <dewar@adacore.com>
2760 * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Pragmas
2761 Interrupt_Handler and Attach_Handler not allowed in generics.
2763 2010-10-08 Robert Dewar <dewar@adacore.com>
2765 * ali.adb: Set Allocator_In_Body if AB parameter present on M line
2766 * ali.ads (Allocator_In_Body): New flag
2767 * bcheck.adb (Check_Consistent_Restrictions): Handle case of main
2768 program violating No_Allocators_After_Elaboration restriction.
2769 * gnatbind.adb (No_Restriction_List): Add entries for
2770 No_Anonymous_Allocators, and No_Allocators_After_Elaboration.
2771 * lib-load.adb: Initialize Has_Allocator flag
2772 * lib-writ.adb: Initialize Has_Allocator flag
2773 (M_Parameters): Set AB switch if Has_Allocator flag set
2774 * lib-writ.ads: Document AB flag on M line
2775 * lib.adb (Has_Allocator): New function
2776 (Set_Has_Allocator): New procedure
2777 * lib.ads (Has_Allocator): New function
2778 (Set_Has_Allocator): New procedure
2779 (Has_Allocator): New flag in Unit_Record
2780 * sem_ch4.adb (Analyze_Allocator): Add processing for
2781 No_Allocators_After_Elaboration.
2783 2010-10-08 Geert Bosch <bosch@adacore.com>
2785 * a-textio.adb (Get_Line): Rewrite to use fgets instead of fgetc.
2787 2010-10-08 Javier Miranda <miranda@adacore.com>
2789 * sem_prag.adb (Analyze_Pragma): Relax semantic rule of
2790 Java_Constructors because in the JRE library we generate occurrences
2791 in which the "this" parameter is not the first formal.
2793 2010-10-08 Robert Dewar <dewar@adacore.com>
2795 * par-ch3.adb: Minor reformatting.
2797 2010-10-08 Javier Miranda <miranda@adacore.com>
2799 * exp_disp.adb (Make_DT): Do not generate dispatch tables for CIL/Java
2802 2010-10-08 Robert Dewar <dewar@adacore.com>
2804 * par-ch8.adb (P_Use_Type_Clause): Recognize ALL keyword in Ada 2012
2806 * sinfo.adb (Use_Type_Clause): Add All_Present flag.
2807 * sinfo.ads (Use_Type_Clause): Add All_Present flag.
2808 * s-rident.ads: Add entry for No_Allocators_After_Elaboration,
2809 No_Anonymous_Allocators.
2811 2010-10-08 Vincent Celier <celier@adacore.com>
2813 * bindgen.adb (Gen_Restrictions_Ada): No new line after last
2814 restriction, so that the last comma is always replaced with a left
2817 2010-10-08 Javier Miranda <miranda@adacore.com>
2819 * sem_prag.adb (Analyze_Pragma): Add specific check on the type of the
2820 first formal of delegates.
2822 2010-10-08 Robert Dewar <dewar@adacore.com>
2824 * sem_aggr.adb: Minor reformatting.
2826 2010-10-08 Robert Dewar <dewar@adacore.com>
2828 * exp_imgv.adb (Expand_Image_Attribute): Handle special calling
2829 sequence for soft hyphen for Character'Image case.
2830 * rtsfind.ads (Image_Character_05): New entry
2831 * s-imgcha.adb (Image_Character_05): New procedurew
2832 * s-imgcha.ads (Image_Character_05): New procedure
2833 * s-imgwch.adb (Image_Wide_Character): Deal with Ada 2005 soft hyphen
2835 * s-valcha.adb (Value_Character): Recognize SOFT_HYPHEN for 16#AD#
2836 * sem_attr.adb (Eval_Attribute, case Width): Handle soft_hyphen name
2839 2010-10-08 Robert Dewar <dewar@adacore.com>
2841 * sem_attr.adb (Eval_Attribute, case Width): Avoid ludicrous long loop
2842 for case of Wide_[Wide_]Character.
2844 2010-10-08 Robert Dewar <dewar@adacore.com>
2846 * exp_ch3.adb: Minor reformating
2847 Minor code reorganization.
2849 2010-10-08 Javier Miranda <miranda@adacore.com>
2851 * sem_prag.adb (Analyze_Pragma): Add missing checks on wrong use of
2852 pragmas CIL_Constructor and Java_Constructor.
2853 * exp_ch3.adb (Expand_Freeze_Record_Type): Do not generate the
2854 predefined primitives for CIL/Java tagged types.
2856 2010-10-08 Robert Dewar <dewar@adacore.com>
2858 * sem_ch6.adb: Minor reformatting.
2860 2010-10-08 Robert Dewar <dewar@adacore.com>
2862 * gnat1drv.adb: Add call to Validate_Independence.
2863 * par-prag.adb: Add dummy entries for Independent,
2864 Independent_Componentsa.
2865 * sem_ch13.adb (Validate_Independence): New procedure
2866 (Initialize): Initialize address clause and independence check tables
2867 * sem_ch13.ads (Independence_Checks): New table
2868 (Validate_Independence): New procedure
2869 * sem_prag.adb: Add processing for pragma Independent[_Components]
2870 * snames.ads-tmpl: Add entries for pragma Independent[_Components]
2872 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2874 * sem_aggr.adb (Propagate_Discriminants): When expanding an aggregate
2875 component with box initialization, if the component is a variant record
2876 use the values of the discriminants to select the proper variant for
2877 further box initialization.
2879 2010-10-08 Thomas Quinot <quinot@adacore.com>
2881 * xsnames.adb: Remove obsolete file.
2882 * make.adb, sem_ch8.adb, einfo.ads: Minor reformatting.
2884 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2886 * exp_aggr.adb: Complete previous change.
2888 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2890 * sem_ch6.adb (Check_Return_Subtype): The subtype indication in an
2891 extended return must match statically the return subtype of the
2892 enclosing function if the type is an elementary type or if it is
2895 2010-10-08 Vincent Celier <celier@adacore.com>
2897 * prj-nmsc.adb (Add_Source): Report all duplicate units and source file
2898 names. Do not report the same duplicate unit several times.
2899 * prj.ads (Source_Data): New Boolean component Duplicate_Unit,
2900 defaulted to False, to avoid reporting the same unit as duplicate
2903 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2905 * sem_aggr.adb (Resolve_Array_Aggregate): If the expression in an
2906 others choice is a literal, analyze it to enable later optimizations.
2907 * exp_aggr.adb (Expand_Record_Aggregate): An aggregate with static size
2908 and components can be handled by the backend even if it is of a limited
2911 2010-10-08 Arnaud Charlet <charlet@adacore.com>
2913 * a-rttiev.adb (task Timer): Since this package may be elaborated
2914 before System.Interrupt, we need to call Setup_Interrupt_Mask
2915 explicitly to ensure that this task has the proper signal mask.
2917 2010-10-08 Robert Dewar <dewar@adacore.com>
2919 * freeze.adb (Freeze_Entity): For array case, move some processing for
2920 pragma Pack, Component_Size clause and atomic/volatile components here
2921 instead of trying to do the job in Sem_Ch13 and Freeze.
2922 * layout.adb: Use new Addressable function
2923 * sem_ch13.adb (Analyze_Attribute_Representation_Clause, case
2924 Component_Size): Move some handling to freeze point in
2925 Freeze.Freeze_Entity.
2926 * sem_prag.adb (Analyze_pragma, case Pack): Move some handling to
2927 freeze point in Freese.Freeze_Entity.
2928 * sem_util.ads, sem_util.adb (Addressable): New function.
2930 2010-10-08 Robert Dewar <dewar@adacore.com>
2932 * sprint.adb: Minor reformatting.
2934 2010-10-08 Javier Miranda <miranda@adacore.com>
2936 * exp_ch4.adb (Real_Range_Check): Declare temporary as constant.
2938 2010-10-08 Robert Dewar <dewar@adacore.com>
2940 * sem_ch3.adb: Minor reformatting.
2942 2010-10-08 Vincent Celier <celier@adacore.com>
2944 * ali-util.adb (Get_File_Checksum): Make sure that external_as_list is
2945 not a reserved word.
2946 * prj-proc.adb (Expression): Process string list external references.
2947 * prj-strt.adb (External_Reference): Parse external_as_list external
2949 * prj-tree.ads (Expression_Kind_Of): Allowed for N_External_Value nodes
2950 (Set_Expression_Kind_Of): Ditto
2951 * prj.adb (Initialize): Set external_as_list as a reserved word
2952 * projects.texi: Document new string external reference
2954 * scans.ads (Token_Type): New token Tok_External_As_List
2955 * snames.ads-tmpl: New standard name Name_External_As_List
2957 2010-10-08 Thomas Quinot <quinot@adacore.com>
2959 * sem_prag.adb: Minor reformatting.
2961 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2963 * sem_ch3.adb (Derived_Type_Declaration): In the private part of an
2964 instance, it is legal to derive from a non-limited actual when the
2965 formal type is untagged limited.
2966 * sem_ch12.adb (Instantiate_Type): For a formal private type, use
2967 analyzed formal as Generic_Parent_Type, to simplify later checks.
2969 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2971 * sem_res.adb (Insert_Default): If default value is already a
2972 raise_constraint_error do not rewrite it as new raise node, to prevent
2973 infinite loops in the warning removal machinery.
2975 2010-10-08 Robert Dewar <dewar@adacore.com>
2977 * sem_util.adb, sem_prag.adb: Minor reformatting
2979 2010-10-08 Hristian Kirtchev <kirtchev@adacore.com>
2981 * gnat_rm.texi: Remove the section on pragma Implemented_By_Entry.
2982 Add section on pragma Implemented.
2984 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2986 * sem_ch3.adb (Derive_Subprogram): If an abstract extension has a
2987 concrete parent with a concrete constructor, the inherited constructor
2988 is abstract even if the derived type is a null extension.
2990 2010-10-08 Thomas Quinot <quinot@adacore.com>
2992 * sem_ch4.adb: Minor reformatting.
2994 2010-10-08 Hristian Kirtchev <kirtchev@adacore.com>
2996 * einfo.adb: Flag 232 (formerly Implemented_By_Entry) is now unused.
2997 (Implemented_By_Entry): Removed.
2998 (Set_Implemented_By_Entry): Removed.
2999 (Write_Entity_Flags): Remove the output for Implemented_By_Entry.
3000 * einfo.ads: Remove Implemented_By_Entry and its usage in entities.
3001 (Implemented_By_Entry): Removed along with its associated pragma.
3002 (Set_Implemented_By_Entry): Removed along with its associated pragma.
3003 * exp_ch9.adb: Alphabetize with and use clauses of Exp_Ch9.
3004 (Build_Dispatching_Call_Equivalent): New routine.
3005 (Build_Dispatching_Requeue): New routine.
3006 (Build_Dispatching_Requeue_To_Any): New routine.
3007 (Build_Normal_Requeue): New routine.
3008 (Build_Skip_Statement): New routine.
3009 (Expand_N_Requeue_Statement): Rewritten. The logic has been split into
3010 several subroutines.
3011 * par-prag.adb: Replace Pragma_Implemented_By_Entry by
3013 * sem_ch3.adb (Check_Abstract_Overriding): Perform checks concerning
3015 (Check_Pragma_Implemented): New routines.
3016 (Inherit_Pragma_Implemented): New routine.
3017 * sem_ch9.adb (Analyze_Requeue): Update the predicate which detects a
3018 dispatching requeue.
3019 * sem_prag.adb: Update array Sig_Flags by removing Implemented_By_Entry
3020 and adding Implemented.
3021 (Ada_2012_Pragma): New routine.
3022 (Analyze_Pragma, case Implemented): Perform all necessary checks
3023 concerning pragma Implemented and register the pragma as a
3024 representation item with the procedure_LOCAL_NAME.
3025 (Analyze_Pragma, case Implemented_By_Entry): Removed.
3026 * sem_util.adb (Implementation_Kind): New routine.
3027 * sem_util.ads (Implementation_Kind): New routine.
3028 * snames.ads-tmpl: Remove Name_Implemented_By_Entry and add
3029 Name_Implemented. Remove pragma name Pragma_Implemented_By_Entry and
3030 add Pragma_Implemented. Add special names By_Any, By_Entry and
3031 By_Protected_Procedure.
3033 2010-10-08 Javier Miranda <miranda@adacore.com>
3035 * exp_ch3.adb (Expand_Freeeze_Record_Type): Code cleanup: remove local
3036 variable Has_Static_DT by invocation of function Building_Static_DT.
3038 2010-10-08 Vincent Celier <celier@adacore.com>
3040 * g-dirope.adb (Remove_Dir): Do not change the current directory when
3041 doing a recursive remove of a subdirectory.
3043 2010-10-08 Javier Miranda <miranda@adacore.com>
3045 * exp_ch6.ad (Freeze_Subprogram): Factorize code.
3046 * exp_disp.adb (Make_Secondary_DT): Factorize code.
3047 (Make_DT): Factorize code.
3049 2010-10-08 Robert Dewar <dewar@adacore.com>
3051 * sem_ch4.adb: Minor reformatting.
3053 2010-10-08 Robert Dewar <dewar@adacore.com>
3055 * sem_ch6.adb (Check_Conformance): Check null exclusion match for full
3058 2010-10-08 Thomas Quinot <quinot@adacore.com>
3060 * sem_ch12.adb (Instantiate_Object): Rename Formal_Id to Gen_Obj, for
3061 consistency with Gen_T in Instantiate_Type.
3062 Introduce constant A_Gen_Obj to avoid repeated queries for
3063 Defining_Identifier (Analyzed_Formal).
3065 2010-10-08 Vincent Celier <celier@adacore.com>
3067 * prj-nmsc.adb: Minor comment fix.
3069 2010-10-07 Robert Dewar <dewar@adacore.com>
3071 * sem_prag.adb, sem_ch13.adb: Implement AI05-0012-1/02.
3072 * gcc-interface/Make-lang.in: Update dependencies.
3074 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3076 * sem_ch12.ad: (Instantiate_Object): For an in-out formal of a child
3077 unit, if the type of the formal is declared in a parent unit and is not
3078 a formal itself, the actual must be located from an enclosing parent
3079 instance by normal visibility.
3081 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3083 * sem_ch4.adb (Analyze_Allocator): In Ada 2012, a null_exclusion
3084 indicator is illegal for an uninitialized allocator.
3086 2010-10-07 Robert Dewar <dewar@adacore.com>
3088 * sem_prag.adb (Analyze_Attribute_Definition_Clause, case
3089 Component_Size): Complete previous change.
3091 2010-10-07 Vincent Celier <celier@adacore.com>
3093 * scng.adb (Scan): Call Accumulate_Token_Checksum for Tok_Identifier,
3094 even for keywords, to avoid having the checksum to depend on the Ada
3097 2010-10-07 Gary Dismukes <dismukes@adacore.com>
3099 * sem_aggr.adb, sem_ch12.adb, sem_ch6.adb, par-ch5.adb,
3100 exp_ch3.adb: Minor reformatting.
3102 2010-10-07 Robert Dewar <dewar@adacore.com>
3104 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
3105 Component_Size): It is now illegal to give an incorrect component size
3106 clause in the case of aliased or atomic components.
3107 * sem_prag.adb (Analyze_Pragma, case Pack): It is now illegal to give
3108 an effective pragma Pack in the case of aliased or atomic components.
3110 2010-10-07 Steve Baird <baird@adacore.com>
3112 * exp_ch4.adb (Expand_N_Allocator): Do not bypass expansion
3113 in the case of a violation of an active No_Task_Hierarchy restriction.
3115 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3117 * sem_ch12.adb (Validate_Derived_Type_Instance): If a formal derived
3118 type is non-limited, an actual for it cannot be limited.
3120 2010-10-07 Robert Dewar <dewar@adacore.com>
3122 * einfo.ads (No_Pool_Assigned): Update documentation.
3123 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
3124 Storage_Size): We only set No_Pool_Assigned if the expression is a
3125 static constant and zero.
3126 * sem_res.adb (Resolve_Allocator): Allocation from empty storage pool
3127 should be an error not a warning.
3129 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3131 * exp_aggr.adb (Expand_Array_Aggregate): Recognize additional cases
3132 where an aggregate in an assignment can be built directly into the
3133 target, and does not require the creation of a temporary that may
3136 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3138 * sem_aggr.adb (Analyze_Record_Aggregate): In Ada2012, a choice list
3139 in a record aggregate can correspond to several components of
3140 anonymous access types, as long as the designated subtypes match.
3142 2010-10-07 Robert Dewar <dewar@adacore.com>
3144 * gnat_rm.texi, exp_util.adb, sinfo.adb, sinfo.ads, sem_ch12.adb,
3145 sem.adb, gnat_ugn.texi, sem_util.ads, par-ch6.adb, targparm.ads,
3146 restrict.adb, sem_ch6.adb, sem_ch6.ads, sprint.adb, i-c.ads: Change
3147 spelling parametrize(d) => parameterize(d).
3149 2010-10-07 Robert Dewar <dewar@adacore.com>
3151 * sem_ch12.adb: Add comment.
3152 * sem_ch6.adb: Minor reformatting.
3154 2010-10-07 Robert Dewar <dewar@adacore.com>
3156 * par-ch3.adb, par-ch6.adb, par-ch7.adb, par-ch9.adb, par-ch10.adb: Add
3157 Pexp to Pf_Rec constants
3158 (P_Subprogram): Expression is always enclosed in parentheses
3159 * par.adb (Pf_Rec): add Pexp flag for parametrized expression
3160 * sinfo.ads (N_Parametrized_Expression): Expression must be in parens
3162 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3164 * sem_ch6.adb (Analyze_Subprogram_Specification): Implement Ada2012
3165 checks on functions that return an abstract type or have a controlling
3166 result whose designated type is an abstract type.
3167 (Check_Private_Overriding): Implement Ada2012 checks on functions
3168 declared in the private part, if an abstract type is involved.
3169 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): In Ada2012,
3170 reject a generic function that returns an abstract type.
3171 * exp_ch5.adb (Expand_Simple_Function_Return): in Ada2012, if a
3172 function has a controlling access result, check that the tag of the
3173 return value matches the designated type of the return expression.
3175 2010-10-07 Robert Dewar <dewar@adacore.com>
3177 * par-ch6.adb: Fix error in handling of parametrized expressions.
3178 * par-ch4.adb (P_Name): Allow qualified expression as name in Ada 2012
3180 (P_Simple_Expression): Better message for qualified expression prefix
3181 * s-crc32.adb: Minor reformatting.
3182 * exp_intr.adb (Expand_Unc_Deallocation): Remove test for empty
3183 storage pool (this test is moved to Sem_Intr).
3184 * sem_intr.adb (Check_Intrinsic_Call): Add check for deallocation from
3185 empty storage pool, moved here from Exp_Intr and made into error.
3186 (Check_Intrinsic_Call): Remove assumption in generating not-null free
3187 warning that the name of the instantiation is Free.
3188 * sinput.adb (Tree_Read): Document use of illegal free call allowed in
3190 * types.ads: Remove storage size clauses from big types (since we may
3191 need to do deallocations, which are now illegal for empty pools).
3193 2010-10-07 Sergey Rybin <rybin@adacore.com>
3195 * gnat_ugn.texi: Add missing word.
3197 2010-10-07 Robert Dewar <dewar@adacore.com>
3199 * exp_util.adb (Insert_Actions): Add handling of
3200 N_Parametrized_Expression.
3201 * par-ch6.adb (P_Subprogram): Add parsing of parametrized expression
3202 * sem.adb: Add entry for N_Parametrized_Expression
3203 * sem_ch6.adb (Analyze_Parametrized_Expression): New procedure
3204 * sem_ch6.ads (Analyze_Parametrized_Expression): New procedure
3205 * sinfo.ads, sinfo.adb: Add N_Parametrized_Expression
3206 * sprint.adb (Sprint_Node): Add handling for N_Parametrized_Expression
3207 * par-ch4.adb: Minor reformatting.
3209 2010-10-07 Robert Dewar <dewar@adacore.com>
3211 * scng.adb (Skip_Other_Format_Characters): New procedure
3212 (Start_Of_Wide_Character): New procedure
3213 (Scan): Use Start_Of_Wide_Character where appropriate
3214 (Scan): Improve error message for other_format chars in identifier
3215 (Scan): Allow other_format chars between tokens
3217 2010-10-07 Javier Miranda <miranda@adacore.com>
3219 * exp_util.adb (Safe_Prefixed_Reference): When removing side effects,
3220 Add missing support for explicit dereferences.
3222 2010-10-07 Robert Dewar <dewar@adacore.com>
3224 * par-ch10.adb, par-ch3.adb, par.adb: Minor reformatting.
3226 2010-10-07 Robert Dewar <dewar@adacore.com>
3228 * exp_disp.adb, exp_dist.adb, exp_util.ads, exp_util.adb,
3229 exp_ch11.adb: Rename Full_Qualified_Name to Fully_Qualified_Name_String
3230 * sem_util.adb, sem_util.ads (Full_Qualified_Name): Moved to
3231 Exp_Util.Fully_Qualified_Name_String.
3233 2010-10-07 Robert Dewar <dewar@adacore.com>
3235 * rtsfind.ads: Add entry for Ada.Real_Time.Timing_Events.Set_Handler
3236 * sem_res.adb (Resolve_Call): A call to
3237 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
3238 No_Relative_Delay (AI-0211).
3240 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3242 * sem_ch10.adb: Small change in error message.
3244 2010-10-07 Robert Dewar <dewar@adacore.com>
3246 * tbuild.ads: Minor reformatting.
3248 2010-10-07 Robert Dewar <dewar@adacore.com>
3250 * gnatcmd.adb, make.adb, prj-nmsc.adb, sem_elab.adb: Minor reformatting
3252 2010-10-07 Arnaud Charlet <charlet@adacore.com>
3254 * exp_ch11.adb (Expand_N_Exception_Declaration): Update comments.
3256 2010-10-07 Robert Dewar <dewar@adacore.com>
3258 * sem_res.adb: Minor reformatting
3260 2010-10-07 Olivier Ramonat <ramonat@adacore.com>
3262 * gnat_ugn.texi: Minor editing.
3263 * opt.ads: Document that scripts rely on specific formats in opt.ads
3265 2010-10-07 Robert Dewar <dewar@adacore.com>
3267 * a-wichun.ads, a-wichun.adb (To_Lower_Case): New function
3268 (To_Upper_Case): Fix to be inverse of To_Lower_Case
3269 * a-zchuni.ads, a-zchuni.adb (To_Lower_Case): New function
3270 (To_Upper_Case): Fix to be inverse of To_Lower_Case
3272 2010-10-07 Robert Dewar <dewar@adacore.com>
3274 * a-wichha.adb, a-wichha.ads, a-zchhan.adb, a-zchhan.ads: New file.
3275 * impunit.adb: Add entries for a-wichha/a-zchhan
3276 * Makefile.rtl: Add entries for a-wichha/a-zchhan
3278 2010-10-07 Vincent Celier <celier@adacore.com>
3280 * make.adb (Check): Call Check_Source_Info_In_ALI with Project_Tree
3281 * makeutl.adb (Check_Source_Info_In_ALI): If there is at least one
3282 replaced source, check that none of the replaced sources are in the
3284 * makeutl.ads (Check_Source_Info_In_ALI): New parameter Tree
3285 * prj-nmsc.adb (Remove_Source): New parameter Tree. If the source is
3286 replaced with a source with a different file name, put it in the hash
3287 table Replaced_Sources.
3288 (Add_Source): Call Remove_Source with Data.Tree. If there is at least
3289 one replaced source, check if it has the same file name as the current
3290 source; if it has, remove it from the hash table Replaced_Sources.
3291 * prj.adb (Reset): Reset hash table Tree.Replaced_Sources
3292 * prj.ads (Replaced_Source_HTable): New hash table
3293 (Project_Tree_Data): New components Replaced_Sources and
3294 Replaced_Source_Number.
3296 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3298 * sem_elab.adb (Check_A_Call): After inserting elaboration check, set
3299 proper flag to prevent a double elaboration check on the same call.
3300 * exp_util.adb (Insert_Actions): If the enclosing node is an
3301 Expression_With_Actions and it has been analyzed already, find
3302 insertion point further up in the tree.
3304 2010-10-07 Hristian Kirtchev <kirtchev@adacore.com>
3306 * sem_ch13.adb (Analyze_Record_Representation_Clause): Alphabetize all
3307 local variables. Remove the general restriction which prohibits the
3308 application of record rep clauses to Unchecked_Union types. Add Ada
3309 2012 check to detect improper naming of an Unchecked_Union
3310 discriminant in record rep clause.
3311 * sem_prag.adb: Add with and use clause for Exp_Ch7.
3312 (Analyze_Pragma): Unchecked_Union case: Propagate the Unchecked_Union
3313 type to all invocations of Check_Component and Check_Variant.
3314 (Check_Component): Add formal parameters UU_Typ and In_Variant_Part.
3315 Rewritten. Add Ada 2012 check to detect improper use of formal
3316 private types and private extensions as component types of an
3317 Unchecked_Union declared inside a generic body.
3318 (Check_Variant): Add formal parameter UU_Typ. Propagate the
3319 Unchecked_Union type to all calls of Check_Component. Signal that the
3320 current component comes from the variant part of an Unchecked_Union
3322 (Inside_Generic_Body): New routine.
3324 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3326 * exp_ch4.adb (Expand_Composite_Equality): When looking for a primitive
3327 equality operation for a record component, verify that both formals
3328 have the same type, and the result type is boolean.
3330 2010-10-07 Vincent Celier <celier@adacore.com>
3332 * gnatcmd.adb (Check_Files): When looking for the .ci file for a
3333 binder generated file, look for both b~xxx and b__xxx as gprbuild
3334 always uses b__ as the prefix of such files.
3336 2010-10-07 Thomas Quinot <quinot@adacore.com>
3338 * sem_res.adb: Minor reformatting.
3340 2010-10-07 Arnaud Charlet <charlet@adacore.com>
3342 * debug.adb: Update -gnatd.J documentation.
3344 2010-10-07 Robert Dewar <dewar@adacore.com>
3346 * gnat_rm.texi: Document handling of invalid values
3347 * s-utf_32.ads, s-utf_32.adb (UTF_To_Lower_Case): Fix implementation
3349 (UTF_To_Upper_Case): New function.
3351 2010-10-07 Robert Dewar <dewar@adacore.com>
3353 * sem_attr.adb: Minor reformatting.
3354 * einfo.ads, einfo.adb (Is_Ada_2012_Only): New flag
3355 * itypes.adb (Create_Null_Excluding_Itype): Set Is_Ada_2012_Only flag
3357 * lib-xref.adb (Generate_Reference): Warn on use of Ada 2012 entity in
3359 * opt.ads (Warn_On_Ada_2012_Compatibility): New flag
3360 * sem_ch3.adb (Analye_Subtype_Declaration): Inherit Is_Ada_2012_Only
3361 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Is_Ada_2012_Only
3363 * sem_prag.adb (Analyze_Pragma, case Ada_12/Ada_2012): Allow form with
3365 * sem_type.adb (Disambiguate): Deal with Is_Ada_2012_Only.
3366 * sem_warn.adb (Warn_On_Ada_2012_Compatibility): New flag, treated
3369 2010-10-07 Javier Miranda <miranda@adacore.com>
3371 * a-tags.ads: Use new support for pragma Ada_2012 with function
3374 2010-10-07 Ed Schonberg <schonberg@adacore.com>
3376 * par-ch5.adb (P_Sequence_Of_Statements): In Ada2012 a label can end a
3377 sequence of statements.
3379 2010-10-07 Vincent Celier <celier@adacore.com>
3381 * gnatcmd.adb (Check_Files): Only add a .ci files if it exists
3383 2010-10-07 Javier Miranda <miranda@adacore.com>
3385 * a-tags.ads, a-tags.adb (Type_Is_Abstract): New subprogram.
3386 * rtsfind.ads (RE_Type_Is_Abstract): New entity.
3387 * exp_disp.adb (Make_DT): Initialize TSD component Type_Is_Abstract.
3389 2010-10-07 Arnaud Charlet <charlet@adacore.com>
3391 * sem_ch12.adb (Mark_Context): Removed, no longer needed.
3392 (Analyze_Package_Instantiation): No longer analyze systematically a
3393 generic body in CodePeer mode.
3394 * freeze.adb, sem_attr.adb: Update comments.
3396 2010-10-05 Robert Dewar <dewar@adacore.com>
3398 * par-ch5.adb (Test_Statement_Required): Allow all pragmas in Ada 2012
3401 2010-10-05 Pascal Obry <obry@adacore.com>
3403 * gnat_rm.texi: Fix typo.
3405 2010-10-05 Arnaud Charlet <charlet@adacore.com>
3407 * gnat_ugn.texi: Add note about identifiers with same name and
3410 2010-10-05 Robert Dewar <dewar@adacore.com>
3412 * sem_ch4.adb: Minor reformatting.
3413 * a-direct.ads: Minor comment update.
3415 2010-10-05 Javier Miranda <miranda@adacore.com>
3417 * sem_ch3.adb (Add_Internal_Interface_Entities): Removing code that is
3418 no longer required after change in New_Overloaded_Entity.
3419 * sem_ch6.adb (New_Overloaded_Entity): Code reorganization to isolate
3420 the fragment of code that handles derivations of interface primitives.
3421 Add missing dependence on global variable Inside_Freezing_Actions to
3422 ensure the correct management of internal interface entities.
3423 * sem_ch13.adb (Analyze_Freeze_Entity): Add missing increase/decrease
3424 of the global variable Inside_Freezing_Actions to ensure that internal
3425 interface entities are well handled by New_Overloaded_Entity.
3426 * sem_disp.adb (Find_Primitive_Covering_Interface): Add documentation
3427 and complete the algorithm to catch hidden primitives derived of
3428 private type that covers the interface.
3429 * sem_disp.ads (Find_Primitive_Covering_Interface): Add missing
3432 2010-10-05 Robert Dewar <dewar@adacore.com>
3434 * prj-util.adb, prj-util.ads, prj.ads, s-vxwext-rtp.adb, sem_ch4.adb,
3435 sem_ch7.adb, sem_res.adb, sem_type.adb: Minor reformatting.
3436 Minor code reorganization (use Nkind_In).
3438 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3440 * sem_ch10.adb (Analyze_Task_Body_Stub): Diagnose duplicate stub for
3443 2010-10-05 Vincent Celier <celier@adacore.com>
3445 * gnatbind.adb: If the main library file is not for a suitable main
3446 program, change the error message.
3448 2010-10-05 Vincent Celier <celier@adacore.com>
3450 * a-direct.ads: Minor spelling error fixes in comments.
3451 * gnat_rm.texi: Add three entries in "Implementation Defined
3452 Characteristics" for the interpretations of the Form parameters in
3455 2010-10-05 Robert Dewar <dewar@adacore.com>
3457 * exp_ch3.adb, exp_ch5.adb, exp_disp.adb, exp_dist.adb, gnatlink.adb,
3458 makeutl.adb, par-ch6.adb, prj-dect.adb, prj-env.adb, prj-env.ads,
3459 prj-ext.adb, prj-nmsc.adb, prj-part.adb, prj-pp.ads: Minor code
3463 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3465 * sem_res.adb (Check_Parameterless_Call): If the prefix of 'Address is
3466 an explicit dereference of an access to function, the prefix is not
3467 interpreted as a parameterless call.
3469 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3471 * exp_attr.adb: For 'Read and 'Write, use full view of base type if
3474 2010-10-05 Vincent Celier <celier@adacore.com>
3476 * make.adb (Switches_Of): Allow wild cards in index of attributes
3478 * prj-util.adb (Value_Of): When Allow_Wildcards is True, use the index
3479 of the associative array as a glob regular expression.
3480 * prj-util.ads (Value_Of (Index, In_Array)): New Boolean parameter
3481 Allow_Wildcards, defaulted to False.
3482 (Value_Of (Name, Attribute_Or_Array_Name)): Ditto
3483 * projects.texi: Document that attribute Switches (<file name>) may
3484 use wild cards in the index.
3486 2010-10-05 Robert Dewar <dewar@adacore.com>
3488 * a-direct.adb, a-direct.ads, back_end.adb, checks.adb,
3489 einfo.adb: Minor reformatting.
3490 * debug.adb: Remove obsolete documentation for d.Z flag.
3492 2010-10-05 Vincent Celier <celier@adacore.com>
3494 * vms_data.ads: Add VMS qualifier /SRC_INFO= corresponding to gnatmake
3495 switch --create-info-file=.
3496 * gnat_ugn.texi: Add documentation for new gnatmake switch
3499 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3501 * sem_ch3.adb: Do not elaborate type definition if syntax error.
3503 2010-10-05 Javier Miranda <miranda@adacore.com>
3505 * sprint.adb (Sprint_Node_Actual): Improve output of subprogram bodies
3506 to generate the full-qualified names of its corresponding spec.
3507 This facilitates locating the corresponing body when reading
3510 2010-10-05 Thomas Quinot <quinot@adacore.com>
3512 * exp_dist.adb (Make_Helper_Function_Name): For a tagged type, use
3513 canonical name without serial number only if the helper is becoming a
3514 primitive of the type.
3516 2010-10-05 Javier Miranda <miranda@adacore.com>
3518 * exp_disp.adb (Make_DT): Minor code reorganization.
3520 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3522 * par-ch6.adb: improve recovery with extra paren in function spec.
3524 2010-10-05 Quentin Ochem <ochem@adacore.com>
3526 * prj-tree.ads: Project_Path is now aliased.
3528 2010-10-05 Thomas Quinot <quinot@adacore.com>
3530 * checks.adb: Minor reformatting.
3532 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
3534 * mlib-tgt-specific-mingw.adb (No_Argument_List): Delete.
3535 (Shared_Libgcc): New aliased variable.
3536 (Shared_Libgcc_Switch): New constant.
3537 (Build_Dynamic_Library): Pass Shared_Libgcc_Switch to the compiler
3538 * gcc-interface/Makefile.in (gnatlib-shared-win32): Pass -shared-libgcc
3540 * gcc-interface/Make-lang.in: Update dependencies.
3542 2010-10-05 Vincent Celier <celier@adacore.com>
3544 * prj-part.adb (Parse_Simple_Project): When checking if a child project
3545 imports its parent project, also look in projects being extended by
3548 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
3550 * gnat_ugn.texi: Adjust instructions in G.10 Building DLLs with GNAT.
3552 2010-10-05 Javier Miranda <miranda@adacore.com>
3554 * exp_cg.adb (Slot_Number): Add support to handle aliased entities.
3555 (Generate_CG_Output): Switch -gnatd.Z is no longer needed to
3556 activate this output.
3558 2010-10-05 Arnaud Charlet <charlet@adacore.com>
3560 * back_end.adb (Call_Back_End): Generate an error message when scil
3561 generation is enabled, and no scil back-end (by default) is available.
3563 2010-10-05 Javier Miranda <miranda@adacore.com>
3565 * debug.adb: Update documentation since -gnatd.Z is no longer required
3566 to generate the call-graph information.
3568 2010-10-05 Javier Miranda <miranda@adacore.com>
3570 * exp_ch5.adb (Expand_Simple_Function_Return): Rewrite expansion of a
3571 runtime access check by an equivalent expansion that causes
3572 no problems in the VM backend. The original expansion was
3573 not good for the VM backends because when Tagged_Type_Expansion
3574 is disabled the attribute Access_Disp_Table is not available.
3576 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3578 * sem_type.adb (Covers): In a dispatching context, T1 covers T2 if T2
3579 is class-wide and T1 is its specific type.
3581 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3583 * einfo.adb: Add guard to Is_String_Type to prevent cascaded errors.
3585 2010-10-05 Vincent Celier <celier@adacore.com>
3587 * back_end.ads: Minor spelling error correction.
3589 2010-10-05 Arnaud Charlet <charlet@adacore.com>
3591 * switch-c.adb, gnat1drv.adb (Scan_Front_End_Switches): Disable
3592 warnings when -gnatC is specified here so that warnings can be
3593 re-enabled explicitly.
3594 (Adjust_Global_Switches): No longer suppress warnings.
3596 2010-10-05 Vincent Celier <celier@adacore.com>
3598 * makeutl.adb: Minor reformatting.
3600 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3602 * sem_ch4.adb: add guard in Analyze_One_Call to prevent crash when a
3603 non-discrete type appears as an actual in a call.
3605 2010-10-05 Vincent Celier <celier@adacore.com>
3607 * make.adb (Scan_Make_Arg): Take into account new switch
3609 * makeusg.adb: Add line for new switch --source-info=file.
3610 * makeutl.ads (Source_Info_Option): New constant String for new builder
3612 * prj-conf.adb: Put subprograms in alphabetical order
3613 (Process_Project_And_Apply_Config): Read/write an eventual source info
3615 * prj-nmsc.adb (Look_For_Sources.Get_Sources_From_Source_Info): New
3617 (Look_For_Sources): If a source info file was successfully read, get
3618 the source data from the data read from the source info file.
3619 * prj-util.adb (Source_Info_Table): New table
3620 (Source_Info_Project_HTable): New hash table
3621 (Create): New procedure
3622 (Put (File), Put_Line): New procedures
3623 (Write_Source_Info_File): New procedure
3624 (Read_Source_Info_File): New procedure
3625 (Initialize): New procedure
3626 (Source_Info_Of): New procedure
3627 (Next): New procedure
3628 (Close): When file is an out file, fail if the buffer cannot be written
3629 or if the file cannot be close successfully.
3630 (Get_Line): Fail if file is an out file
3631 * prj-util.ads (Create): New procedure
3632 (Put (File), Put_Line): New procedures
3633 (Write_Source_Info_File): New procedure
3634 (Read_Source_Info_File): New procedure
3635 (Source_Info_Data): New record type
3636 (Source_Info_Iterator): New private type
3637 (Initialize): New procedure
3638 (Source_Info_Of): New procedure
3639 (Next): New procedure
3640 * prj.ads (Project_Tree_Data): New components Source_Info_File_Name and
3641 Source_Info_File_Exists.
3643 2010-10-05 Ed Schonberg <schonberg@adacore.com>
3645 * exp_ch4.adb: Fix typo.
3647 2010-10-05 Thomas Quinot <quinot@adacore.com>
3649 * lib-writ.adb: Minor reformatting.
3651 2010-10-05 Javier Miranda <miranda@adacore.com>
3653 * sem_ch3.adb (Access_Definition): Remove useless code.
3655 2010-10-05 Emmanuel Briot <briot@adacore.com>
3657 * prj-env.adb, prj-env.ads (Set_Path): New subprogram.
3658 (Deep_Copy): Removed, not used.
3660 2010-10-05 Javier Miranda <miranda@adacore.com>
3662 * sem_ch3.adb (Add_Internal_Interface_Entities): Code reorganization:
3663 move code that searches in the list of primitives of a tagged type for
3664 the entity that will be overridden by user-defined routines.
3665 * sem_disp.adb (Find_Primitive_Covering_Interface): Move here code
3666 previously located in routine Add_Internal_Interface_Entities.
3667 * sem_disp.ads (Find_Primitive_Covering_Interface): Update docs.
3668 * sem_ch6.adb (New_Overloaded_Entity): Add missing check on
3669 availability of attribute Alias.
3671 2010-10-05 Ed Falis <falis@adacore.com>
3673 * s-taprop-vxworks.adb, s-osinte-vxworks.adb, s-osinte-vxworks.ads,
3674 s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.adb, s-vxwext-rtp.ads:
3675 Move definition of intContext to System.OS_Interface.
3676 Add necessary variants in System.VxWorks.Extensions.
3678 2010-10-05 Doug Rupp <rupp@adacore.com>
3680 * s-asthan-vms-alpha.adb: On VMS, a task using
3681 pragma AST_Entry exhibits a memory leak when the task terminates
3682 because the vector allocated for the AST interface is not freed. Fixed
3683 by making the vector a controlled type.
3685 2010-10-05 Emmanuel Briot <briot@adacore.com>
3687 * prj-nmsc.adb (Expand_Subdirectory_Pattern): Check that the prefix in
3688 a "**" pattern properly exists, and report an error otherwise.
3690 2010-10-05 Emmanuel Briot <briot@adacore.com>
3692 * prj-env.ads: Use GNAT.OS_Lib rather than System.OS_Lib.
3694 2010-10-05 Emmanuel Briot <briot@adacore.com>
3696 * prj-nmsc.adb, prj-err.adb (Expand_Subdirectory_Pattern): New
3698 Extract some code from Get_Directories, to share with the handling
3699 of aggregate projects (for the Project_Files attributes)
3701 2010-10-05 Emmanuel Briot <briot@adacore.com>
3703 * gnatcmd.adb, prj-proc.adb, prj-part.adb, prj-ext.adb, prj-ext.ads,
3704 switch-m.adb, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-env.adb,
3705 prj-env.ads, prj-tree.adb, prj-tree.ads (Project_Search_Path): New
3708 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
3710 * exp_ch5.adb (Make_Field_Expr): Revert previous change (removed).
3712 2010-10-05 Emmanuel Briot <briot@adacore.com>
3714 * prj-dect.adb, prj-nmsc.adb, prj-attr.adb, snames.ads-tmpl
3715 (Aggregate projects): added support for parsing aggregate projects.
3716 In particular, check the presence and value of the new attributes
3717 related to aggregate projects, ie Project_Files, Project_Path
3719 (Check_Attribute_Allowed, Check_Package_Allowed,
3720 Rename_Obsolescent_Attributes): new subprogram, extracting code
3721 from existing subprogram to keep their sizes smaller.
3722 (Check_Aggregate_Project, Check_Abstract_Project,
3723 Check_Missing_Sources): new subprograms
3724 (Check): remove comments that duplicated either the name of the
3725 following subprogram call, or the comment on that subprogram.
3726 * prj-part.adb (Check_Extending_All_Imports): New subprogram, extracted
3727 from Parse_Single_Project.
3728 (Check_Aggregate_Imports): new subprogram.
3730 2010-10-05 Vincent Celier <celier@adacore.com>
3732 * make.adb (Check): When compiling with -gnatc, recompile if the ALI
3733 file has not been generated for the current source, for example if it
3734 has been generated for the spec, but we are compiling the body.
3736 2010-10-05 Bob Duff <duff@adacore.com>
3738 * xgnatugn.adb: Remove unused procedure.
3740 2010-10-04 Vincent Celier <celier@adacore.com>
3742 * a-direct.adb (Copy_File): Interpret the Form parameter and call
3743 System.OS_Lib.Copy_File to do the work accordingly. Raise Use_Error if
3744 the Form parameter contains an incorrect value for field preserve= or
3746 * a-direct.ads (Create_Directory, Create_Path): Indicate that the Form
3747 parameter is ignored.
3748 (Copy_File): Indicate the interpretation of the Form parameter.
3750 2010-10-04 Vincent Celier <celier@adacore.com>
3752 * make.adb (Gnatmake): When there are no foreign languages declared and
3753 a main in attribute Main of the main project does not exist or is a
3754 source of another project, fail immediately before attempting
3757 2010-10-04 Javier Miranda <miranda@adacore.com>
3759 * exp_disp.ads (Convert_Tag_To_Interface): New function which must be
3760 used to convert a node referencing a tag to a class-wide interface
3762 * exp_disp.adb (Convert_Tag_To_Interface): New function.
3763 (Expand_Interface_Conversion): Replace invocation of
3764 Unchecked_Conversion by new function Convert_Tag_To_Interface.
3765 (Write_DT): Add support for null primitives.
3766 * exp_ch3.adb (Expand_N_Object_Declaration): For tagged type objects,
3767 cleanup code that handles interface conversions and avoid unchecked
3768 conversion of referenced tag components.
3769 * exp_ch5.adb (Expand_N_Assignment_Statement): Code cleanup. Avoid
3770 unrequired conversions when generating a dispatching call to _assign.
3771 * sprint.adb (Write_Itype): Fix wrong output of not null access itypes.
3773 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3775 * exp_ch4.adb (Expand_N_Op_Not): Handle properly both operands when the
3776 parent is a binary boolean operation and the operand is an unpacked
3778 (Build_Boolean_Array_Proc_Call): If the operands are both negations,
3779 the operands of the rewritten node are the operands of the negations,
3780 not the negations themselves.
3782 2010-10-04 Robert Dewar <dewar@adacore.com>
3784 * sem_ch13.adb (Set_Biased): New procedure, now used throughout, adds
3785 name of entity to biased warning msg.
3786 (Analyze_Enumeration_Representation_Clause): Remove attempt to use
3787 biased rep (wrong and never worked anyway).
3789 2010-10-04 Arnaud Charlet <charlet@adacore.com>
3791 * sem_elab.adb: Minor reformatting.
3793 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3795 * exp_ch4.adb (Expand_N_Null): Handle properly the case of a subtype of
3796 an access_to_protected subprogram type, and convert null value into
3797 corresponding aggregate.
3799 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3801 * gnat_ugn.texi: Clarify first point of 7.1.5 about pragma Inline.
3803 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3805 * make.adb (Scan_Make_Arg): Pass -Oxxx switches to the linker as well.
3806 * gnatlink.adb (Gnatlink): Filter out -Oxxx switches for CLI, RTX and
3809 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3811 * sem_ch4.adb (Analyze_Indexed_Component_Form): Remove redundant test
3812 for N_Operator_Symbol.
3813 (Indicate_Name_And_Type): Likewise.
3814 * sem_ch8.adb (Analyze_Subprogram_Renaming): Likewise.
3815 * sem_res.adb (Resolve): Likewise.
3816 * sem_type.adb (Add_One_Interp): Likewise.
3817 (Disambiguate): Likewise.
3819 2010-10-04 Vincent Celier <celier@adacore.com>
3821 * osint.adb (Read_Library_Info_From_Full): If object timestamp is less
3822 than ALI file timestamp, return null.
3824 2010-10-04 Vincent Celier <celier@adacore.com>
3826 * prj-makr.adb (Finalize): Invoke Pretty_Print with Max_Length of 79.
3827 * prj-pp.adb (Pretty_Print): New parameter Max_Line_Length, that
3828 replaces global constant with the same name. When a line is too long,
3829 indent properly the next continuation line.
3830 * prj-pp.ads (Pretty_Print): New parameter Max_Line_Length with a range
3831 from 50 to 255, defaulted to 255, to indicate the maximum length of
3832 lines in the project file.
3834 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
3836 * sem_ch7.adb (Analyze_Package_Body_Helper) <Has_Referencer>: New
3837 Check_Subprogram_Ref function and Check_Subprogram_Refs instantiation
3838 of Traverse_Func on it to look for subprogram references in a body.
3839 Call Check_Subprogram_Refs on the body of inlined subprograms at the
3840 outer level and keep clearing the Is_Public flag of subprograms as long
3841 as it returns OK. Do not look at anything else than subprograms once
3842 an inlined subprogram has been seen.
3844 2010-10-04 Javier Miranda <miranda@adacore.com>
3846 * exp_cg.adb (Expand_N_Assignment_Statement): Restore tag check when
3847 the target object is an interface.
3848 * sem_disp.adb (Propagate_Tag): If the controlling argument is an
3849 interface type then we generate an implicit conversion to force
3850 displacement of the pointer to the object to reference the secondary
3851 dispatch table associated with the interface.
3853 2010-10-04 Robert Dewar <dewar@adacore.com>
3855 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Set
3856 Enumeration_Rep_Expr to point to the literal, not the identifier.
3857 (Analyze_Enumeration_Representation_Clause): Improve error message for
3858 size too small for enum rep value
3859 (Analyze_Enumeration_Representation_Clause): Fix size test to use
3860 proper size (RM_Size, not Esize).
3862 2010-10-04 Robert Dewar <dewar@adacore.com>
3864 * s-taprop-vxworks.adb, sem_res.adb: Minor reformatting.
3866 2010-10-04 Javier Miranda <miranda@adacore.com>
3868 * exp_cg.adb (Write_Call_Info): Code clean up.
3870 2010-10-04 Arnaud Charlet <charlet@adacore.com>
3872 * s-taprop-mingw.adb (Create_Task): Initialize Thread_Id field to 0.
3874 2010-10-04 Robert Dewar <dewar@adacore.com>
3876 * exp_cg.adb: Minor code reorganization
3878 * exp_ch5.adb, prj-nmsc.adb: Minor reformatting.
3880 2010-10-04 Bob Duff <duff@adacore.com>
3882 * sem_res.adb (Resolve_Type_Conversion): If a type conversion is needed
3883 to make a qualified expression into a name (syntax-wise), then do not
3884 consider it redundant.
3886 2010-10-04 Thomas Quinot <quinot@adacore.com>
3888 * sem_warn.ads: Fix typo.
3890 2010-10-04 Javier Miranda <miranda@adacore.com>
3892 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Handle suffix in
3894 (Write_Call_Info): Add missing support for renamed primitives.
3896 2010-10-04 Thomas Quinot <quinot@adacore.com>
3898 * exp_ch5.adb (Make_Field_Expr): New subprogram, to factor duplicated
3899 code between Make_Component_List_Assign and Make_Field_Assign.
3901 2010-10-04 Vincent Celier <celier@adacore.com>
3903 * prj-nmsc.adb (Get_Directories): For non extending projects that
3904 declare that they have no sources, do not create a non existing object
3905 or exec directory if builder switch -p is used.
3907 2010-10-04 Sergey Rybin <rybin@adacore.com>
3909 * gnat_ugn.texi (gnatcheck): Change the description of the report file
3912 2010-10-04 Ed Falis <falis@adacore.com>
3914 * s-taprop-vxworks.adb (Is_Task_Context): Import VxWorks intContext to
3915 determine whether Set_True is called from a task or an ISR.
3916 (Set_True): test for being in a task context before trying to
3917 dereference Defer_Abort or Undefer_Abort.
3919 2010-10-04 Robert Dewar <dewar@adacore.com>
3921 * sem_res.adb, sinput-l.adb: Minor reformatting.
3923 2010-10-04 Hristian Kirtchev <kirtchev@adacore.com>
3925 * exp_ch5.adb (Expand_N_Assignment_Statement): Do not generate a tag
3926 check when the target object is an interface since the expression of
3927 the right hand side must only cover the interface.
3929 2010-10-04 Vincent Celier <celier@adacore.com>
3931 * frontend.adb: Set Lib.Parsing_Main_Extended_Source to True before
3932 loading the main source, so that if it is preprocessed and -gnateG is
3933 used, the preprocessed file is written.
3934 * lib.ads (Analysing_Subunit_Of_Main): New global variable to indicate
3935 if a subunit is from the main unit when it is loaded.
3936 * sem_ch10.adb (Analyze_Proper_Body): Set Lib.Analysing_Subunit_Of_Main
3937 to True before loading a subunit.
3938 * sem_ch12.adb (Copy_Generic_Node): Set Lib.Analysing_Subunit_Of_Main
3939 to True when the main is a generic unit before loading one of its
3941 * sinput-l.adb (Load_File): If -gnateG is used, write the preprocessed
3942 file only for the main unit (spec, body and subunits).
3944 2010-10-04 Vincent Celier <celier@adacore.com>
3946 * sinput-l.adb (Load_File): Do not fail when switch -gnateG is
3947 specified and the processed file cannot be written. Just issue a
3948 warning and continue.
3950 2010-10-04 Thomas Quinot <quinot@adacore.com>
3952 * sem_res.adb: Minor reformatting.
3954 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3956 * sem_ch8.adb (Analyze_Subprogram_Renaming): If the renamed operation
3957 is an overridden inherited operation, the desired operation is the
3958 overriding one, which is the alias of the visible one.
3960 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3962 * sem_ch6.adb (Find_Corresponding_Spec): Check that the wrapper body is
3963 present before deleting from the tree, when an inherited function with
3964 a controlling result that returns a null extension is overridden by a
3965 later declaration or body.
3967 2010-10-04 Gary Dismukes <dismukes@adacore.com>
3969 * checks.adb: Update comment.
3971 2010-09-30 Joseph Myers <joseph@codesourcery.com>
3973 * gcc-interface/misc.c (optimize, optimize_size): Undefine as macros
3974 and define as variables.
3975 (gnat_post_options): Set optimize and optimize_size variables.
3977 2010-09-29 Joel Sherrill <joel.sherrill@oarcorp.com>
3979 * g-socket.adb: Move pragma to disable warnings in case multiple errnos
3980 are not defined by target.
3982 2010-09-29 Eric Botcazou <ebotcazou@adacore.com>
3984 * gcc-interface/utils.c (handle_leaf_attribute): Fix long line.
3986 2010-09-28 Richard Henderson <rth@redhat.com>
3988 * gcc-interface/misc.c (gnat_eh_personality): Use
3989 targetm.except_unwind_info.
3991 2010-09-28 Jan Hubicka <jh@suse.cz>
3993 * gcc-interface/utils.c (handle_leaf_attribute): New function.
3994 (gnat_internal_attribute_tables): Add leaf.
3996 2010-09-22 Joseph Myers <joseph@codesourcery.com>
3998 * gcc-interface/lang.opt (-all-warnings, -include-barrier,
3999 -include-directory, -include-directory=, -no-standard-includes,
4000 -no-standard-libraries): New.
4002 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
4004 * gcc-interface/decl.c (gnat_to_gnu_entity): Replace calls to
4005 build_array_type with calls to build_nonshared_array_type.
4006 (substitute_in_type): Likewise.
4007 * gcc-interface/misc.c (LANG_HOOKS_HASH_TYPES): Delete.
4008 (LANG_HOOKS_TYPE_HASH_EQ): Define.
4009 (gnat_post_options): Add 'static' keyword.
4010 (gnat_type_hash_eq): New static function.
4011 * gcc-interface/utils.c (fntype_same_flags_p): New function.
4012 (create_subprog_type): Call it.
4013 (create_index_type): Call build_nonshared_range_type and tidy up.
4014 (create_range_type): Likewise.
4015 * gcc-interface/gigi.h (fntype_same_flags_p): Declare.
4017 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
4019 * gcc-interface/trans.c (gnat_pushdecl): Do not do anything special
4021 (end_subprog_body): If the body is a BIND_EXPR, make its associated
4022 block the top-level one.
4023 (build_function_stub): Build a statement group for the whole function.
4024 * gcc-interface/utils.c (Subprogram_Body_to_gnu): If copy-in/copy-out
4025 is used, create the enclosing block early and process first the OUT
4028 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
4030 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>: Do
4031 not generate debug info for individual enumerators.
4033 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
4035 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Use record
4036 type instead of enumeral type as the dummy type built for the template
4037 type of fat pointers.
4039 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
4041 * gcc-interface/gigi.h (get_elaboration_procedure): Declare.
4042 (gnat_zaplevel): Likewise.
4043 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force global
4044 binding level for an external constant.
4045 <E_Constant>: Force the local context and create a fake scope before
4046 translating the defining expression of an external constant.
4047 <object>: Treat external constants at the global level explicitly for
4048 renaming declarations.
4049 (elaborate_expression_1): Force the variable to be static if the
4050 expression is global.
4051 * gcc-interface/trans.c (get_elaboration_procedure): New function.
4052 (call_to_gnu): Use it.
4053 (gnat_to_gnu): Likewise.
4054 <N_Object_Declaration>: Do not test Is_Public to force the creation of
4055 an initialization variable.
4056 (add_decl_expr): Discard the statement if the declaration is external.
4057 * gcc-interface/utils.c (gnat_pushdecl): Do not put the declaration in
4058 the current block if it is external.
4059 (create_var_decl_1): Do not test Is_Public to set TREE_STATIC.
4060 (gnat_zaplevel): New global function.
4062 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
4064 * gcc-interface/decl.c (gnat_to_gnu_entity): Explicitly test _LEVEL
4065 variables against zero in all cases.
4066 (rest_of_type_decl_compilation): Likewise.
4067 * gcc-interface/trans.c (gigi): Pass properly typed constants to
4069 (call_to_gnu): Fix formatting.
4070 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
4071 (Exception_Handler_to_gnu_zcx): Likewise.
4072 (gnat_to_gnu) <N_Object_Declaration>: Short-circuit handling of
4074 expressions in presence of a freeze node.
4076 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
4078 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Look into
4079 expressions for external constants that are aggregates.
4080 * gcc-interface/utils2.c (build_simple_component_ref): If the field
4081 is an inherited component in an extension, look through the extension.
4083 2010-09-10 Vincent Celier <celier@adacore.com>
4085 * projects.texi: Add documentation for package extensions
4086 Add some documentation for attributes Leading_Library_Options and
4087 Linker'Leading_Switches.
4089 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4091 * exp_util.adb (Expand_Subtype_From_Expression): When expansion is
4092 disabled, compute subtype for all string types.
4094 2010-09-10 Robert Dewar <dewar@adacore.com>
4096 * gnat_ugn.texi: Add documentation for -gnatw.s/S
4097 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
4098 Component_Size): Implement warning on overriden size clause.
4099 (Analyze_Record_Representation_Clause): Implement warning on overriden
4101 * sem_warn.ads, sem_warn.adb (Warn_On_Overridden_Size): New flag
4103 * ug_words: Add entries for -gnatw.s/S.
4104 * vms_data.ads, usage.adb: Add line for -gnatw.s/-gnatw.S.
4105 * gcc-interface/Make-lang.in: Update dependencies.
4107 2010-09-10 Vincent Celier <celier@adacore.com>
4109 * prj-dect.adb (Parse_Package_Declaration): Allow a package to extend
4110 a package with the same name from an imported or extended project.
4111 * prj-proc.adb (Process_Declarative_Items): Process package extensions
4113 2010-09-10 Bob Duff <duff@adacore.com>
4115 * exp_ch6.adb (Expand_Call): Do not perform a null_exclusion check on
4118 2010-09-10 Robert Dewar <dewar@adacore.com>
4120 * sem.adb: Minor reformatting.
4122 2010-09-10 Bob Duff <duff@adacore.com>
4124 * s-os_lib.ads, g-expect.ads: Add comments.
4126 2010-09-10 Robert Dewar <dewar@adacore.com>
4128 * exp_ch5.adb: Minor reformatting.
4130 2010-09-10 Thomas Quinot <quinot@adacore.com>
4132 * scos.ads: Add comments.
4134 2010-09-10 Vincent Celier <celier@adacore.com>
4136 * gnatcmd.adb (Get_Closure): Remove useless invocation of Close.
4138 2010-09-10 Hristian Kirtchev <kirtchev@adacore.com>
4140 * exp_ch7.adb, exp_ch6.adb (Expand_Call): Establish a transient scope
4141 for a controlled build-in-place function call which appears in an
4142 anonymous context. The transient scope ensures that the intermediate
4143 function result is cleaned up after the master is left.
4144 (Make_Build_In_Place_Call_In_Anonymous_Context): Remove the creation
4145 of the transient scope. This is now done in Exand_Call which covers
4146 additional cases other than secondary stack release.
4148 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4150 * sem.adb (Do_Unit_And_Dependents): Add guard.
4152 2010-09-10 Robert Dewar <dewar@adacore.com>
4154 * exp_ch5.adb: Update comments.
4155 * exp_dist.adb: Minor reformatting.
4157 2010-09-10 Robert Dewar <dewar@adacore.com>
4159 * sem_ch13.adb (Check_Record_Representation_Clause): Implement record
4161 * sem_warn.ads, sem_warn.adb (Warn_On_Record_Holes): New warning flag.
4162 * usage.adb: Add lines for -gnatw.h/H
4163 * gnat_ugn.texi: Add documentation for J519-010
4164 Warn on record holes/gaps
4165 * ug_words: Add entries for -gnatw.h/-gnatw.H
4166 * vms_data.ads: Add entries for [NO]AVOIDGAPS
4168 2010-09-10 Gary Dismukes <dismukes@adacore.com>
4170 * sem_ch6.adb: Update comment.
4172 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4174 * sem_ch3.adb (Build_Derived_Private_Type): Mark generated declaration
4175 of full view analyzed after analyzing the corresponding record
4176 declaration, to prevent spurious name conflicts with original
4179 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
4181 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): In the VM case,
4182 just issue a warning, but continue with the normal processing.
4184 2010-09-10 Robert Dewar <dewar@adacore.com>
4186 * exp_attr.adb, prj-nmsc.adb, sem_ch4.adb, sem_res.adb: Minor
4189 2010-09-10 Thomas Quinot <quinot@adacore.com>
4191 * exp_dist.adb (Build_From_Any_Call, Build_To_Any_Call,
4192 Build_TypeCode_Call): For a subtype inserted for the expansion of a
4193 generic actual type, go to the underlying type of the original actual
4196 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4198 * exp_ch5.adb (Expand_Assign_Array_Loop): In CodePeer mode, place a
4199 guard around the increment statement, to prevent an off-by-one-value
4200 on the last iteration.
4202 2010-09-10 Vincent Celier <celier@adacore.com>
4204 * sem_aggr.adb, exp_prag.adb, sem_ch3.adb, exp_attr.adb,
4205 sem_res.adb, sem_attr.adb, sem_elab.adb, sem_ch4.adb, exp_disp.adb,
4206 exp_aggr.adb, exp_dist.adb: Change all mentions of "at run-time" to
4207 "at run time" in comments and error/warning messages.
4209 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4211 * exp_cg.adb: Handle properly bodies without specs.
4213 2010-09-10 Emmanuel Briot <briot@adacore.com>
4215 * prj-nmsc.adb (Find_Source_Dirs): When a source directory is not
4216 present, and the user requested to either ignore this or display a
4217 warning (as opposed to an error), we still need to register the
4220 2010-09-10 Robert Dewar <dewar@adacore.com>
4222 * errout.adb: Remove tests of Parsing_Main_Subunit, since this test is
4223 now done in In_Extended_Main_Source_Unit.
4224 * errout.ads (Compiler_State[_Type]): Moved from Errout to Lib
4225 (Parsing_Main_Subunit): Moved from Errout to Lib and renamed
4226 as Parsing_Main_Extended_Source.
4227 * frontend.adb: Set Parsing_Main_Extended_Source True for parsing main
4229 * lib-load.adb (Load_Unit): Add PMES parameter
4230 Set PMES appropriately in all calls to Load_Unit
4231 * lib-load.ads (Load_Unit): Add PMES parameter
4232 * lib.adb (In_Extended_Main_Source_Unit): When called with
4233 Compiler_State set to Parsing, test new flag
4234 Compiling_Main_Extended_Source.
4235 * lib.ads (Compiler_State[_Type]): Moved from Errout to Lib
4236 (Parsing_Main_Subunit): Moved from Errout to Lib and renamed
4237 as Parsing_Main_Extended_Source
4238 * par-load.adb (Load): Set PMES properly in call to Load_Unit
4240 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4242 * exp_cg.adb: Use proper entity to handle overloads.
4243 * sem_res.adb (Check_Parameterless_Call): An operator node without
4244 actuals cannot be a call, and must be treated as a string.
4246 2010-09-10 Robert Dewar <dewar@adacore.com>
4248 * frontend.adb: Minor reformatting.
4250 2010-09-10 Robert Dewar <dewar@adacore.com>
4252 * par-ch4.adb (P_Conditional_Expression): Use P_Condition for condition
4253 * par-ch5.adb (P_Condition): Move from body to spec
4254 * par.adb (Ch5.P_Condition): Move from body to spec
4256 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4258 * exp_cg.adb (Write_Call_Info): If a type that has been registered in
4259 the call table is private, use its full view to generate information
4262 2010-09-10 Jose Ruiz <ruiz@adacore.com>
4264 * exp_cg.adb (Is_Predefined_Dispatching_Operation): When trying the
4265 pattern matching to detect predefined primitive operations take into
4266 account that there can be an extra suffix related to body-nested
4269 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4271 * s-pooglo.ads: Add overriding indicators.
4273 2010-09-10 Vincent Celier <celier@adacore.com>
4275 * vms_data.ads: Add new GNAT BIND qualifiers /32_MALLOC (for -H32) and
4276 /64_MALLOC (for -H64).
4278 2010-09-10 Robert Dewar <dewar@adacore.com>
4280 * errout.adb (Error_Msg_Internal): Test Parsing_Main_Subunit flag
4281 (Error_Msg_NW): Test Parsing_Main_Subunit flag
4282 * errout.ads (Parsing_Main_Subunit): New flag
4283 * lib-load.adb (Load_Unit): Set Parsing_Main_Subunit flag
4284 * par-ch6.adb: Minor style fix (remove redandant parentheses)
4285 * par-ch9.adb: Minor style fix (remove redundant parens)
4286 * par-load.adb: (Load): Deal with setting Parsing_Main_Subunit
4288 2010-09-10 Vincent Celier <celier@adacore.com>
4290 * make.adb (Create_Binder_Mapping_File): Remove procedure. Replaced by
4291 function of the same name in Makeutl.
4292 (Gnatmake): Call function Create_Binder_Mapping_File in Makeutl, instead
4293 of removed procedure when creating a binder mapping file.
4294 * makeutl.adb (Create_Binder_Mapping_File): New function. Was a
4296 * makeutl.ads (Create_Binder_Mapping_File): New function
4298 2010-09-10 Jose Ruiz <ruiz@adacore.com>
4300 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Add the "__" scope
4301 separator when trying the pattern matching to detect predefined
4302 primitive operations.
4304 2010-09-10 Robert Dewar <dewar@adacore.com>
4306 * bindgen.adb, atree.adb: Minor reformatting.
4308 2010-09-10 Ben Brosgol <brosgol@adacore.com>
4310 * ug_words, gnat_ugn.texi: Revised "Transitioning to 64-Bit GNAT for
4313 2010-09-10 Doug Rupp <rupp@adacore.com>
4315 * bindgen.adb: Minor comment fix for -H switch.
4317 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4319 * exp_cg.adb (Register_CG_Node): Determine enclosing subprogram or
4320 library unit now, by traversing tree before context is expanded.
4321 (Write_Call_Info): Use enclosing unit name directly.
4322 * exp_ch9.adb (Expand_N_Accept_Statement): Attach generated block to
4323 tree earlier, to ensure that subsequent declarations are analyzed in a
4324 connected structure.
4325 * exp_intr.adb (Expand_Unc_Deallocation): Ditto for generated statement
4328 2010-09-10 Robert Dewar <dewar@adacore.com>
4330 * symbols-processing-vms-alpha.adb: Minor reformatting.
4332 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
4334 * bindgen.adb (Gen_Adainit_Ada): In .NET, don't call
4335 __gnat_install_handler in case the binder is called with -n.
4337 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4339 * exp_ch6.adb (Make_Build_In_Place_In_Object_Declaration): Use proper
4340 sloc for renaming declaration and set Comes_From_Source properly to
4341 ensure that references are properly generated for an object declaration
4342 that is built in place.
4344 2010-09-10 Tristan Gingold <gingold@adacore.com>
4346 * symbols-processing-vms-alpha.adb: Allow gnatsym to work as a cross
4348 * gcc-interface/Make-lang.in: Install gnatsym when cross compiling.
4349 * gcc-interface/Makefile.in: gnat.hlp is now generated by
4352 2010-09-10 Bob Duff <duff@adacore.com>
4354 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): For things like ""X(J)
4355 := ...;", remove side effects from the right-hand side, because they
4356 might affect the value of the left-hand side, but the left-hand side is
4357 first READ (so we can do shifting and masking) and then written back,
4358 which would cause the side effects to be incorrectly overwritten.
4360 2010-09-10 Robert Dewar <dewar@adacore.com>
4362 * sem_ch4.adb: Minor reformatting.
4363 * exp_ch6.adb: Add comment on testing limited on full type
4364 * gnat_rm.texi: Add documentation on Pure_Function.
4366 2010-09-10 Vincent Celier <celier@adacore.com>
4368 * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
4369 as a source of another project and of another language.
4371 2010-09-10 Robert Dewar <dewar@adacore.com>
4373 * exp_ch3.adb (Expand_N_Object_Declaration): Defend against previous
4375 * freeze.adb (Check_Unsigned_Type): Ditto.
4376 * sem_aggr.adb (Resolve_Aggr_Expr): Ditto.
4377 * sem_ch3.adb (Convert_Scalar_Bounds): Ditto.
4378 (Set_Scalar_Range_For_Subtype): Ditto.
4379 * sem_eval.adb (Subtypes_Statically_Match): Ditto.
4381 2010-09-10 Robert Dewar <dewar@adacore.com>
4383 * repinfo.adb (List_Type_Info): List Small and Range for fixed-point
4385 * sprint.adb (Write_Ureal_With_Col_Check_Sloc): Use square brackets
4386 rather than parens for fixed constants.
4387 * sprint.ads: Use square brackets rather than parens for fixed constants
4388 * urealp.adb (UR_Write): Use square brackets rather than parens
4389 (UR_Write): Add Brackets argument
4390 (UR_Write): Add many more special cases to output literals
4391 * urealp.ads (UR_Write): Use square brackets rather than parens
4392 (UR_Write): Add Brackets argument
4394 2010-09-10 Robert Dewar <dewar@adacore.com>
4396 * sem_ch4.adb: Minor reformatting.
4398 2010-09-10 Richard Guenther <rguenther@suse.de>
4400 * gcc-interface/utils.c (create_index_type): Use build_range_type.
4402 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4404 * vms_cmds.ads: New.
4406 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
4408 * exp_dbug.ads: Mention enhanced encoding for array types.
4410 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
4412 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Size clause are
4413 unsupported in VM targets. Display a warning in this case.
4415 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4417 * sprint.adb (Sprint_Node_Actual, case N_Derived_Type_Definition): Do
4418 not reset Sloc when printing keyword "new".
4420 2010-09-10 Vincent Celier <celier@adacore.com>
4422 * gnatcmd.adb (GNATCmd): Put the command line in environment variable
4423 GNAT_DRIVER_COMMAND_LINE.
4425 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4427 * sem.adb (Do_Unit_And_Dependents): if Withed_Body is set on a context
4428 clause, process the body at once.
4430 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4432 * sem_res.adb (Resolve_Type_Conversion): Do not warn on a redundant
4433 conversion is the expression is a qualified expression used to
4434 disambiguate a function call.
4436 2010-09-10 Vincent Celier <celier@adacore.com>
4438 * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
4439 as a source of another project and of another language.
4441 2010-09-10 Robert Dewar <dewar@adacore.com>
4443 * prj-util.adb: Minor reformatting.
4445 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
4447 * exp_disp.adb: Minor reformatting.
4449 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4451 * sem_prag.adb (Analyze_Pragma): Ignore Inline_Always pragma in
4454 2010-09-10 Thomas Quinot <quinot@adacore.com>
4456 * sem_res.adb: Minor reformatting.
4457 * exp_ch9.adb, rtsfind.ads, exp_ch4.adb, exp_ch3.adb: Do not hardcode
4458 magic constants for task master levels (instead, reference
4459 named numbers from System.Tasking).
4461 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
4463 * gnatvsn.ads (Ver_Prefix): New constant string.
4464 * bindgen.adb (Gen_Output_File_Ada): Use it in lieu of hardcoded value.
4465 (Gen_Output_File_C): Likewise.
4466 * g-comver.adb (Ver_Prefix): Add cross-reference to Gnatvsn.Ver_Prefix
4469 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4471 * sem.adb (Walk_Library_Items): Do not traverse children of the main
4472 unit, to prevent spurious circularities in the walk order.
4473 (Depends_On_Main): Use elsewhere to prevent circularities when the body
4474 of an ancestor of the main unit depends on a child of the main unit.
4476 2010-09-10 Robert Dewar <dewar@adacore.com>
4478 * gnatlink.adb, prj-ext.adb, prj-util.adb, s-tporft.adb,
4479 sem_ch3.adb: Minor reformatting.
4481 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4483 * sem_ch3.adb (Derive_Subprograms): An interface primitive operation
4484 that is a renaming must be derived like any other primitive operation,
4485 the renamed operation is not relevant to the derivation.
4487 2010-09-10 Robert Dewar <dewar@adacore.com>
4489 * sem_aux.ads: Add comment for Is_Inherently_Limited_Type.
4490 * checks.adb: Minor reformatting.
4492 2010-09-10 Robert Dewar <dewar@adacore.com>
4494 * gnat_ugn.texi: Add section on intent of style checking options.
4496 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4498 * xref_lib.adb (Get_Full_Type): Fix handling of 'a' char.
4500 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4502 * sem_ch3.adb: Improve error message on derivation from class-wide type
4504 2010-09-10 Steve Baird <baird@adacore.com>
4506 * gnat1drv.adb (Adjust_Global_Switches): Enable Expression_With_Actions
4507 generation when Generate_SCIL is True.
4509 2010-09-10 Geert Bosch <bosch@adacore.com>
4511 * gnatlink.adb (Check_ Existing_Executable): New procedure for checking
4512 validity of executable name and removing any existing executable
4513 (Gnatlink): Call Check_Existing_Executable.
4515 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4517 * s-tporft.adb, s-taskin.ads (Register_Foreign_Thread): Move
4518 initialization of Task_Alternate_Stack here, cleaner since in case of
4519 ranvescar, Restricted_Ada_Task_Control_Block is not initialized
4522 2010-09-10 Thomas Quinot <quinot@adacore.com>
4524 * s-fileio.adb, a-dirval.adb: Minor reformatting.
4526 2010-09-10 Emmanuel Briot <briot@adacore.com>
4528 * prj-util.adb (Executable_Of): Fix CE when the project does not
4529 contain a Builder package.
4531 2010-09-10 Vincent Celier <celier@adacore.com>
4533 * prj-ext.adb (Initialize_Project_Path): Add <prefix>/lib/gpr/<target>
4534 to the project path, if Prefix and Target_Name are defined.
4535 * prj-tree.ads (Project_Node_Tree_Data): New component Target_Name
4537 2010-09-10 Ed Schonberg <schonberg@adacore.com>
4539 * checks.adb (Ensure_Valid): If the expression is a boolean expression
4540 or short-circuit operation, do no emit a validity check: only the
4541 elementary operands of the expression need checking.
4543 2010-09-10 Ben Brosgol <brosgol@adacore.com>
4545 * gnat_rm.texi: Document Short_Descriptors.
4547 2010-09-10 Arnaud Charlet <charlet@adacore.com>
4549 * s-taprop-linux.adb, s-taskin.ads (Task_Alternate_Stack): Default
4550 initialize to Null_Address.
4551 (Enter_Task): Do not set up an alternate stack for foreign threads.
4553 2010-09-10 Robert Dewar <dewar@adacore.com>
4555 * opt.adb (Short_Descriptors): New flag
4556 (Short_Descriptors_Config): New flag
4557 * opt.ads (Short_Descriptors): New flag
4558 (Short_Descriptors_Config): New flag
4559 * par-prag.adb: Add dummy entry for Short_Descriptors pragma
4560 * sem_prag.adb (Set_Mechanism_Value): Deal with Short_Descriptors.
4561 (Analyze_Pragma): Implement Short_Descriptors pragma
4562 * snames.ads-tmpl: Add entry for Short_Descriptors pragma
4564 2010-09-10 Emmanuel Briot <briot@adacore.com>
4566 * prj-util.adb, prj-util.ads (Executable_Of): Take into account the
4567 project's Executable_Suffix.
4569 2010-09-10 Robert Dewar <dewar@adacore.com>
4571 * g-pehage.ads: Minor reformatting
4573 * gnat_ugn.texi: Clarifying comment on -gnatyc
4574 * exp_ch6.adb (Expand_N_Subprogram_Body): Reset Is_Pure if limited
4577 2010-09-10 Tristan Gingold <gingold@adacore.com>
4579 * Make-generated.in (gnat.hlp): New rule.
4581 2010-09-10 Emmanuel Briot <briot@adacore.com>
4583 * prj-util.adb, prj-util.ads (Executable_Of): New parameter
4586 2010-09-10 Robert Dewar <dewar@adacore.com>
4588 * einfo.adb: Minor code cleanup: Add assertion to
4589 Set_Corresponding_Protected_Entry.
4591 2010-09-10 Bob Duff <duff@adacore.com>
4593 * g-pehage.ads, g-pehage.adb (Produce): Add a new flag to allow sending
4594 the output to standard output.
4596 2010-09-09 Vincent Celier <celier@adacore.com>
4598 * gnat_ugn.texi: Add documentation for new gnatmake switch
4600 * make.adb (Map_File): New global variable to store the value of switch
4602 (Gnatmake): Add switch -M to gnatlink if switch --create-map-file has
4604 (Scan_Make_Arg): Recognize switch --create-map-file
4605 * makeutl.ads (Create_Map_File_Switch): New constant string for new
4606 gnatmake and gprbuild switch --create-map-file.
4608 2010-09-09 Robert Dewar <dewar@adacore.com>
4610 * sinput-p.ads: Minor comment update.
4612 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4614 * s-tpobop.adb, s-taenca.adb (Wait_For_Completion_With_Timeout): Reset
4615 Entry_Call.State if needed so that the call is marked as cancelled by
4616 Check_Pending_Actions_For_Entry_Call.
4617 (Timed_Protected_Entry_Call): Adjust calls to Defer/Under_Abort, since
4618 this procedure may be called from a controlled operation
4619 (Initialize/Finalize).
4621 2010-09-09 Vadim Godunko <godunko@adacore.com>
4623 * impunit.adb: Correct spelling of package's name in the comment.
4625 2010-09-09 Robert Dewar <dewar@adacore.com>
4627 * gnatcmd.adb, gnatlink.adb, sem_ch12.adb, sem_eval.adb, sinput-p.adb:
4630 2010-09-09 Robert Dewar <dewar@adacore.com>
4632 * impunit.adb: Add entry for a-izteio.
4633 * checks.adb: Add comment.
4634 * debug.adb, exp_disp.adb: Minor reformatting.
4635 * exp_dbug.ads: Minor reformatting throughout (pack block comments).
4637 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4639 * sem_eval.adb (Is_Same_Value): Two occurrences of the same
4640 discriminant cannot be assumed to be the same value because they may
4641 refer to bounds of a component of two different instances of a
4644 2010-09-09 Gary Dismukes <dismukes@adacore.com>
4646 * checks.adb (Apply_Arithmetic_Overflow_Check): When converting the
4647 operands of an operator to the type of an enclosing conversion, rewrite
4648 the operator so the conversion can't be flagged as redundant.
4649 Remove useless assignments to Typ and Rtyp.
4651 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
4653 * gnat_ugn.texi: Fix another long line.
4655 2010-09-09 Bob Duff <duff@adacore.com>
4657 * sem_warn.adb (Output_Reference_Error): Don't warn for renames read
4660 2010-09-09 Matthew Heaney <heaney@adacore.com>
4662 * a-convec.adb, a-coinve.adb (Clear, Delete, Delete_Last, Finalize,
4663 Merge, Insert, Insert_Space, Move, Reserve_Capacity, Generic_Sorting,
4664 Replace_Element, Reverse_Elements, Swap): Change exception message to
4665 correctly indicate kind of tampering (cursor or element).
4666 * a-cdlili.adb, a-cidlli.adb (Clear, Delete, Delete_First, Delete_Last,
4667 Merge, Generic_Sorting, Insert, Move, Reverse_Elements, Splice,
4668 Swap_Links, Replace_Element, Swap): Ditto.
4669 * a-coorse.adb, a-ciorse.adb (Include, Replace, Replace_Element): Ditto
4670 * a-coorma.adb, a-ciorma.adb (Include, Replace, Replace_Element): Ditto
4671 * a-coormu.adb, a-ciormu.adb (Replace_Element): Ditto
4672 * a-chtgke.adb (Delete_Key_Sans_Free, Generic_Conditional_Insert,
4673 Generic_Replace_Element): Ditto
4674 * a-chtgop.adb (Clear, Move, Reserve_Capacity): Ditto
4675 * a-cohama.adb, a-cihama.adb (Delete, Include, Replace,
4676 Replace_Element): Ditto.
4677 * a-cohase.adb, a-cihase.adb (Delete, Difference, Intersection,
4678 Symmetric_Difference, Union, Include, Replace): Ditto
4680 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4682 * sprint.adb (Write_Id): If the parent node is an expanded name, check
4683 that its entity_or_associated_node is an entity before writing it out.
4684 * exp_disp.adb (Make_Tags); if a type is declared in C++ and has no
4685 constructors, there is no need for a dispatch table pointer because the
4686 table is fully inherited from the C++ code.
4688 2010-09-09 Thomas Quinot <quinot@adacore.com>
4690 * projects.texi: Fix wrong identifiers on package end lines in project
4692 * exp_ch6.adb: Minor reformatting.
4694 2010-09-09 Tristan Gingold <gingold@adacore.com>
4696 * gnatcmd.adb, vms_conv.ads: Extract Command_Type.
4698 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
4700 * gnat_ugn.texi: Fix description of -O3 optimization level.
4702 2010-09-09 Yannick Moy <moy@adacore.com>
4704 * a-cihama.adb, a-cohama.adb: Fix comments.
4706 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4708 * i-cexten.ads: Add comments.
4709 (Signed_128): New type, used by some C bindings.
4710 * debug.adb: Update comment.
4712 2010-09-09 Sergey Rybin <rybin@adacore.com>
4714 * gnat_ugn.texi: For ASIS tools (gnatpp, gnatcheck, gnatelim,
4715 gnatmetric and gnatstub) add a note that '-gnat05' should be used if
4716 the tool should process Ada 2005 sources.
4718 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4720 * sem_ch12.adb (Remove_Parent): If the scope containing the child
4721 instance is a block, examine the enclosing scope to determine if it is
4724 2010-09-09 Doug Rupp <rupp@adacore.com>
4726 * sem_prag.adb (pragma Ident): Pass --identification= vice
4728 * gnatlink.adb (Linker_Options): Look for --identification= vice
4731 2010-09-09 Gary Dismukes <dismukes@adacore.com>
4733 * exp_attr.adb (Expand_N_Attribute_Reference, case Attribute_Old): When
4734 inserting and analyzing the object declaration for the temporary object
4735 created to hold a 'Old value, push the scope for the subprogram where
4736 the object is inserted, so that its Scope (and that of related objects)
4737 will be set properly.
4739 2010-09-09 Vincent Celier <celier@adacore.com>
4741 * prj.adb (Get_Object_Directory): Return object directory display name
4742 * adaint.c (__gnat_get_file_names_case_sensitive): When environment
4743 variable GNAT_FILE_NAME_CASE_SENSITIVE has a value of "0" or "1",
4744 return this value, otherwise return the default for the platform.
4746 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4748 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
4749 dependencies. Remove handling of gnatlbr.
4750 Do not remove s-stratt-xdr for the run-time when installing.
4752 2010-09-09 Robert Dewar <dewar@adacore.com>
4754 * sem_attr.adb: Minor reformatting.
4756 2010-09-09 Thomas Quinot <quinot@adacore.com>
4758 * socket.c (__gnat_socket_ioctl): On Darwin, the req parameter is an
4759 unsigned long, not an int.
4761 2010-09-09 Vincent Celier <celier@adacore.com>
4763 * make.adb, mlib-prj.adb, prj.adb, prj-nmsc.adb, mlib-tgt.adb,
4764 prj-conf.adb, prj-env.adb: Use Display_Name instead of Name whenever
4765 we are not checking for equality of path or file names.
4767 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4769 * exp_util.adb (Remove_Side_Effects): If the expression is a packed
4770 array reference, reset the Analyzed flag so that it is properly
4771 expanded when the resulting object declaration is analyzed.
4773 2010-09-09 Vincent Celier <celier@adacore.com>
4775 * sinput-p.adb (Source_File_Is_Subunit): Return False if X is
4778 2010-09-09 Ramon Fernandez <fernandez@adacore.com>
4780 * sysdep.c: The wrSbc8548 BSP in MILS doesn't know anything about the
4781 VX_SPE_TASK option, so disable it.
4783 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4785 * sem.adb (Walk_Library_Items): Traverse context of subunits of the
4787 (Is_Subunit_Of_Main): Handle null nodes properly.
4789 2010-09-09 Robert Dewar <dewar@adacore.com>
4791 * par-ch2.adb: Update comments.
4793 2010-09-09 Ben Brosgol <brosgol@adacore.com>
4795 * gnat_rm.texi: Minor wordsmithing of section on pragma Ordered.
4797 2010-09-09 Arnaud Charlet <charlet@adacore.com>
4799 * par-ch2.adb (Scan_Pragma_Argument_Association): In CodePeer mode,
4800 do not generate an error for compatibility with legacy code.
4801 ignored when generating SCIL.
4802 * sem_attr.adb (Resolve_Attribute): Ignore AI-229 in CodePeer mode.
4804 2010-09-09 Thomas Quinot <quinot@adacore.com>
4806 * s-strxdr.adb, gnat_rm.texi, s-stratt-xdr.adb, s-stratt.ads: Rename
4807 s-strxdr.adb to s-stratt-xdr.adb
4809 2010-09-09 Robert Dewar <dewar@adacore.com>
4811 * ali-util.adb (Obsolescent_Check): Removed.
4812 * gprep.adb (Obsolescent_Check): Removed.
4813 Remove Obsolescent_Check parameter in Scng instantiation
4814 * prj-err.adb (Obsolescent_Check): Removed.
4815 * prj-err.ads (Obsolescent_Check): Removed.
4816 Remove Obsolescent_Check parameter in Scng instantiation
4817 * scans.ads (Based_Literal_Uses_Colon): New flag
4818 * scn.adb (Obsolscent_Check_Flag): Removed
4819 (Obsolscent_Check): Removed
4820 (Set_Obsolescent_Check): Removed
4821 (Post_Scan): Add handling for obsolescent features
4822 * scn.ads (Obsolscent_Check): Removed
4823 (Set_Obsolescent_Check): Removed
4824 (Post_Scan): Can no longer be inlined
4825 Remove Obsolescent_Check from instantiation of Scng
4826 * scng.adb (Nlit): Set Based_Literal_Uses_Colon
4827 (Nlit): Remove handling of obsolescent check
4828 (Scan, case '%'): Remove handling of obsolescent check
4829 (Scan, case '|'): Call Post_Scan
4830 (Scan, case '!'): Remove handling of obsolescent check, call Post_Scan
4831 * scng.ads Remove Obsolescent_Check argument from Scng generic
4832 (Post_Scan): Now called for Tok_Vertical_Bar
4833 * sinput-l.adb: Remove calls to Set_Obsolescent_Check
4835 2010-09-09 Doug Rupp <rupp@adacore.com>
4837 * gnatlbr.adb: Removed.
4838 * gnat_rm.texi, ug_words, gnat_ugn.texi: Remove mention of gnatlbr.
4840 2010-09-09 Robert Dewar <dewar@adacore.com>
4842 * sem_res.adb (Resolve_Type_Conversion): Catch more cases of redundant
4845 2010-09-09 Vincent Celier <celier@adacore.com>
4847 * gnatlbr.adb: Remove redundant conversions.
4849 2010-09-09 Vincent Celier <celier@adacore.com>
4851 * prj-proc.adb: Minor comment spelling error fix.
4852 * osint.ads (Env_Vars_Case_Sensitive): Use function
4853 Get_Env_Vars_Case_Sensitive, not Get_File_Names_Case_Sensitive to
4856 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4858 * sem_res.adb (Resolve_Equality_Op): Implement Ada2012 rule for
4859 resolution of conditional expressions whose dependent expressions are
4860 anonymous access types.
4862 2010-09-09 Robert Dewar <dewar@adacore.com>
4864 * a-ststio.adb: Minor code reorganization.
4865 * s-direio.adb, prj.adb, prj-nmsc.adb, sem_type.adb: Remove redundant
4867 * types.ads: Minor reformatting.
4868 * binde.adb, vms_conv.adb, gnatls.adb, s-strxdr.adb, uintp.adb: Remove
4869 redundant conversions.
4870 * output.adb: Minor reformatting.
4871 * sem_ch8.adb (Find_Type): Test for redundant base applies to user
4873 * opt.ads: Add pragma Ordered for Verbosity_Level.
4874 * prj.ads: Add pragma Ordered for type Verbosity.
4876 2010-09-09 Vincent Celier <celier@adacore.com>
4878 * osint.adb (Canonical_Case_File_Name): Use procedure To_Lower in
4880 (Canonical_Case_Env_Var_Name): Ditto
4882 2010-09-09 Bob Duff <duff@adacore.com>
4884 * g-pehage.adb (Allocate): Initialize the allocated elements of IT.
4886 2010-09-09 Robert Dewar <dewar@adacore.com>
4888 * cstand.adb: Mark Boolean and Character types as Ordered
4889 * einfo.adb (Has_Pragma_Ordered): New flag
4890 * einfo.ads (Has_Pragma_Ordered): New flag
4891 * g-calend.ads: Mark Day_Name as Ordered
4892 * opt.ads: Mark Ada_Version_Type as Ordered
4893 (Warn_On_Unordered_Enumeration_Type): New flag
4894 * par-prag.adb: Add procdessing for pragma Ordered
4895 * s-ficobl.ads (Read_File_Mode): New subtype
4896 * s-fileio.adb: Use Read_File_Mode instead of explicit ranges
4897 * s-taskin.ads: Mark Entry_Call_State as ordered
4898 * sem_ch3.adb (Build_Derived_Enumeration_Type): Inherit
4900 * sem_ch6.ads: Mark Conformance_Type as Ordered
4901 * sem_prag.adb: Implement pragma Ordered
4902 * sem_res.adb (Bad_Unordered_Enumeration_Reference): New function
4903 (Resolve_Comparison_Op): Diagnose unordered comparison
4904 (Resolve_Range): Diagnose unordered range
4905 * sem_warn.adb (Warn_On_Unordered_Enumeration_Type): New flag (from
4907 * snames.ads-tmpl: Add entry for pragma Ordered
4908 * style.ads (Check_Enumeration_Subrange): Removed
4909 * styleg.adb (Check_Enumeration_Subrange): Removed
4910 * styleg.ads (Check_Enumeration_Subrange): Removed
4911 * stylesw.adb: Remove handling of -gnatyE switch
4912 * stylesw.ads: (Style_Check_Enumeration_Subranges): Removed
4913 * vms_data.ads: Remove -gnatyE entries
4914 Add -gnatw.u entries
4915 * ug_words: Entries for -gnatw.u and -gnatw.U
4916 * gnat_ugn.texi: Document -gnatw.u/-gnatw.U switches
4917 * gnat_rm.texi: Document pragma Ordered.
4918 * s-tasren.adb: Avoid unnecessary comparison on unordered enumeration.
4919 * s-tpobop.adb: Remove comparison on unordered enumeration type.
4921 2010-09-09 Vincent Celier <celier@adacore.com>
4923 * adaint.c: New function __gnat_get_env_vars_case_sensitive, returns 0
4924 for VMS and Windows, and 1 for all other platforms.
4925 * adaint.h: New function __gnat_get_env_vars_case_sensitive
4926 * osint.ads, osint.adb (Canonical_Case_Env_Var_Name): New procedure.
4927 * prj-ext.adb (Add): Call Canonical_Case_Env_Var_Name instead of
4928 Canonical_Case_File_Name, as we are dealing with environment variables,
4931 2010-09-09 Robert Dewar <dewar@adacore.com>
4933 * sem_util.adb: Minor reformatting
4935 2010-09-09 Vincent Celier <celier@adacore.com>
4937 * vms_data.ads: Add documentation for S_Make_Single.
4939 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4941 * sem_util.adb (Same_Object): include formal parameters.
4943 2010-09-09 Vincent Celier <celier@adacore.com>
4945 * make.adb (Queue): New package implementing a new impementation of the
4946 queue, taking into account the new switch --single-compile-per-obj-dir.
4947 * makeutl.ads (Single_Compile_Per_Obj_Dir_Switch): New constant String
4948 for gnatmake and gprbuild new switch --single-compile-per-obj-dir.
4949 * opt.ads (One_Compilation_Per_Obj_Dir): New Boolean flag, defauted to
4951 * switch-m.adb (Scan_Make_Switches): Take into account new gnatmake
4952 switch --single-compile-per-obj-dir.
4953 * vms_data.ads: Add qualifier SINGLE_COMPILE_PER_OBJ_DIR for gnatmake
4954 switch --single-compile-per-obj-dir.
4955 * gnat_ugn.texi: Add documentation for new gnatmake switch
4956 --single-compile-per-obj-dir.
4958 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4960 * einfo.adb, einfo.ads: Clarify use of Corresponding_Protected_Entry.
4962 2010-09-09 Javier Miranda <miranda@adacore.com>
4964 * sem_ch3.adb (Is_Progenitor): Relocated to sem_type.
4965 (Replace_Type): Code cleanup.
4966 * sem_type.ads, sem_type.adb (Is_Progenitor): Relocated from sem_ch3
4968 2010-09-09 Thomas Quinot <quinot@adacore.com>
4970 * exp_ch8.adb: Minor reformatting.
4972 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4974 * exp_ch9.adb, einfo.adb, einfo.ads: New attribute
4975 Corresponding_Protected_Entry.
4977 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4979 * exp_ch3.adb (Build_Untagged_Equality): Do not set alias of implicit
4980 inequality, it is always rewritten as the negation of the corresponding
4982 * exp_ch8.adb (Expand_N_Subprogram_Renaming): If the subprogram renames
4983 the predefined equality of an untagged record, create a body at the
4984 point of the renaming, to capture the current meaning of equality for
4987 2010-09-09 Robert Dewar <dewar@adacore.com>
4989 * sem.adb, sem_warn.adb: Minor reformatting.
4991 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4993 * sem_ch6.adb: Improve error message on untagged equality.
4994 * sem.adb (Semantics): Include subprogram bodies that act as spec.
4996 2010-09-09 Javier Miranda <miranda@adacore.com>
4998 * sem_ch13.adb, exp_ch13.adb: Undo previous change, unneeded.
5000 2010-09-09 Robert Dewar <dewar@adacore.com>
5002 * sem_ch13.adb, sem_ch6.adb, exp_ch3.adb: Minor reformatting.
5004 2010-09-09 Robert Dewar <dewar@adacore.com>
5006 * einfo.adb (Is_Aggregate_Type): New function.
5007 * einfo.ads (Aggregate_Kind): New enumeration subtype
5008 (Is_Aggregate_Type): New function.
5009 * sem_type.adb (Is_Array_Class_Record_Type): Removed, replaced by
5012 2010-09-09 Robert Dewar <dewar@adacore.com>
5014 * exp_ch11.adb, frontend.adb, sem_attr.adb, sem_ch10.adb, sem_ch3.adb,
5015 sem_ch4.adb, sem_ch9.adb, sem_res.adb: Use Restriction_Check_Needed
5017 * restrict.ads, restrict.adb: Ditto.
5018 (Restriction_Check_Needed): New function
5020 2010-09-09 Ed Schonberg <schonberg@adacore.com>
5022 * exp_ch9.ads (Find_Master_Scope): New function, extracted from
5023 Build_Master_Entity, to find the proper scope for the master entity of
5024 a type that may contain tasks, in the presence of transient scopes.
5025 * exp_ch9.adb (Build_Master_Entity) Use new function.
5026 * exp_ch3.adb (Build_Class_Wide_Master): ditto.
5028 2010-09-09 Vincent Celier <celier@adacore.com>
5030 * prj-attr.adb: Add new attributes Leading_Library_Options and
5031 Linker'Leading_Switches.
5032 * snames.ads-tmpl: Add new standard names Leading_Library_Options and
5035 2010-09-09 Javier Miranda <miranda@adacore.com>
5037 * sem_ch3.adb (Derive_Subprogram): The code that checks if a
5038 dispatching primitive covers some interface primitive is incomplete.
5039 Replace such code by the invocation of a new subprogram that provides
5041 * sem_ch6.ads (Is_Interface_Conformant): Add missing documentation.
5042 * sem_ch6.adb (Check_Missing_Return): Minor reformating
5043 (Check_Convention): Complete if-statement conditition when reporting
5044 errors (to avoid assertion failure).
5045 * sem_ch13.adb (Make_Null_Procedure_Specs): This routine was previously
5046 located in exp_ch3. Relocated inside Analyze_Freeze_Entity.
5047 (Analyze_Freeze_Entity): Invoke routine that adds the spec of non
5048 overridden null interface primitives.
5049 * sem_type.adb (Is_Ancestor): If the parent of the partial view of a
5050 private type is an interface then use the parent of its full view to
5051 climb to its ancestor type.
5052 * sem_disp.ads, sem_disp.adb (Covers_Some_Interface): New subprogram.
5053 (Check_Dispatching_Operation): Extend assertion to handle wrappers of
5054 null interface primitives.
5055 (Is_Null_Interface_Primitive): New subprogram.
5056 * exp_ch3.adb (Make_Null_Procedure_Specs): Removed.
5057 (Expand_Freeze_Record_Type): Do not generate specs of null interface
5058 subprograms because they are now generated by Analyze_Freeze_Entity.
5060 2010-09-09 Robert Dewar <dewar@adacore.com>
5062 * a-calfor.adb, sem_ch3.adb: Minor reformatting.
5064 2010-09-09 Robert Dewar <dewar@adacore.com>
5066 * bindgen.adb (Gen_Restrictions_Ada): Avoid explicit enumeration ranges
5067 (Gen_Restrictions_C): Avoid explicit enumeration ranges
5068 (Set_String_Replace): New procedure
5069 * casing.ads (Known_Casing): New subtype declaration
5070 * prj-attr.ads (All_Case_Insensitive_Associative_Array): New subtype
5072 * prj-dect.adb (Parse_Attribute_Declaration): Avoid enumeration range
5073 * prj-nmsc.adb (Check_Naming): Avoid unnecessary enumeration range
5074 * prj-strt.adb (Attribute_Reference): Avoid enumeration range test
5075 * prj.adb (Known_Casing): Moved to Casing spec (avoid enum range)
5076 * sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order): Avoid enumeration
5078 * sem_res.adb (Resolve_Range): Check for enumeration subrange style
5080 * sem_type.adb (Is_Array_Class_Record_Type): New.
5081 * style.ads (Check_Enumeration_Subrange): New procedure
5082 * styleg.adb (Check_Enumeration_Subrange): New procedure
5083 * styleg.ads (Check_Enumeration_Subrange): New procedure
5084 * stylesw.adb Add handling for Style_Check_Enumeration_Subranges
5085 * stylesw.ads (Style_Check_Enumeration_Subranges): New flag
5086 * usage.adb: Add line for -gnatyE
5087 * vms_data.ads: Add entries for [NO]ENUMERATION_RANGES
5088 Add missing entry for NOBOOLEAN_OPERATORS
5089 * gnat_ugn.texi: Add documentation for -gnatyE
5091 2010-09-09 Robert Dewar <dewar@adacore.com>
5093 * namet.adb (Initialize): Is now a dummy procedure
5094 (Reinitialize): New procedure
5095 Call Reinitialize from package initialization
5096 * namet.ads (Initialize): Is now a dummy procedure
5097 (Reinitialize): New procedure
5098 * clean.adb, gnat1drv.adb, gnatbind.adb, gnatcmd.adb, gnatlink.adb,
5099 gnatls.adb, gprep.adb, make.adb, prj-makr.adb: Remove obsolete call to
5102 2010-09-09 Bob Duff <duff@adacore.com>
5104 * sem_elab.adb, s-os_lib.ads: Minor comment fixes.
5106 2010-09-09 Robert Dewar <dewar@adacore.com>
5108 * s-bitops.adb (Raise_Error): Add exception message
5110 2010-09-09 Robert Dewar <dewar@adacore.com>
5112 * par-ch5.adb (Test_Statement_Required): Deal with Ada 2012 allowing no
5113 null statement after label.
5114 * sinfo.ads: Minor comment updates.
5116 2010-09-09 Robert Dewar <dewar@adacore.com>
5118 * nlists.ads, nlists.adb (In_Same_List): New function.
5119 Use Node_Or_Entity_Id where appropriate.
5120 * par-labl.adb, sem_ch6.adb, sem_type.adb: Use In_Same_List.
5122 2010-09-09 Robert Dewar <dewar@adacore.com>
5124 * restrict.ads, restrict.adb (Check_Wide_Character_Restriction): New
5126 * sem_ch3.adb: Use Check_Wide_Character_Restriction
5127 (Enumeration_Type_Declaration): Check violation of No_Wide_Characters
5128 * sem_ch8.adb (Find_Direct_Name): Check violation of No_Wide_Characters
5129 (Find_Expanded_Name): Check violation of No_Wide_Characters
5131 2010-09-09 Robert Dewar <dewar@adacore.com>
5133 * par-ch5.adb: Minor reformatting.
5135 2010-09-09 Robert Dewar <dewar@adacore.com>
5137 * prj-env.adb: Minor code reorganization.
5138 * par-ch3.adb: Minor reformatting.
5139 * gcc-interface/Make-lang.in: Update dependencies.
5141 2010-09-09 Ed Schonberg <schonberg@adacore.com>
5143 * exp_ch9.adb (Build_Activation_Chain_Entity): The construct enclosing
5144 a task declaration can be an entry body.
5146 2010-09-09 Javier Miranda <miranda@adacore.com>
5148 * exp_disp.adb (Make_DT): Decorate as "static" variables containing
5149 tags of library level tagged types.
5150 (Make_Tags): Disable backend optimizations about aliasing for
5151 declarations of access to dispatch tables.
5153 2010-09-09 Ed Schonberg <schonberg@adacore.com>
5155 * sem_ch12.adb (Reset_Entity): If the entity is an itype created as a
5156 subtype for a null-excluding access type, recover the original
5157 subtype_mark to get the proper visibility on the original name.
5159 2010-09-09 Ed Schonberg <schonberg@adacore.com>
5161 * exp_ch3.adb (Build_Untagged_Equality): For Ada2012, new procedure to
5162 create the primitive equality operation for an untagged record. The
5163 operation is the predefined equality if no record component has a
5164 user-defined equality, or if there is a user-defined equality for the
5165 type as a whole, or when the type is derived and it has an inherited
5166 equality. Otherwise the body of the operations is built as for tagged
5168 (Expand_Freeze_Record_Type): Call Build_Untagged_Equality when needed.
5169 (Make_Eq_Body): New function to create the expanded body of the
5170 equality operation for tagged and untagged records. In both cases the
5171 operation composes, and the primitive operation of each record
5172 component is used to generate the equality function for the type.
5173 * exp_ch4.adb (Expand_Composite_Equality): In Ada2012, if a component
5174 has an abstract equality defined, replace its call with a
5175 Raise_Program_Error.
5176 * sem_ch6.adb (New_Overloaded_Entity): if Ada2012, verify that a
5177 user-defined equality operator for an untagged record type does not
5178 happen after type is frozen, and appears in the visible part if partial
5179 view of type is not limited.
5181 2010-09-09 Tristan Gingold <gingold@adacore.com>
5183 * gnatlbr.adb: Make Create_Directory more portable: use __gnat_mkdir.
5185 2010-09-09 Bob Duff <duff@adacore.com>
5187 * gnat_ugn.texi: Remove incorrect statement about -E being the default.
5189 2010-09-09 Pascal Obry <obry@adacore.com>
5191 * gnat_ugn.texi: Update doc on windows related topics.
5193 2010-09-09 Geert Bosch <bosch@adacore.com>
5195 * s-fatgen.adb: Update comments.
5197 2010-09-09 Robert Dewar <dewar@adacore.com>
5199 * par-ch4.adb (Box_Error): New procedure.
5201 2010-09-09 Thomas Quinot <quinot@adacore.com>
5203 * sem.adb: Minor reformatting.
5205 2010-09-09 Pascal Obry <obry@adacore.com>
5207 * prj-env.adb: Style fix, use /and then/ and /or else/.
5208 * gnat_ugn.texi: Fix typos.
5210 2010-09-03 Joseph Myers <joseph@codesourcery.com>
5213 * gcc-interface/misc.c (gnat_init_options): Allow options with
5214 empty canonical form. Generate a single save_argv element from -I
5217 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
5219 * gcc-interface/utils.c (gnat_pushdecl): Remove test for PARM_DECLs.
5220 Attach fake PARM_DECLs to the topmost block of the function.
5222 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
5224 * gcc-interface/trans.c (call_to_gnu): Also force the return slot opt
5225 for the call to a function whose return type was unconstrained.
5227 2010-08-30 Olivier Hainque <hainque@adacore.com>
5229 * gcc-interface/decl.c (FOREIGN_FORCE_REALIGN_STACK): New macro,
5230 replacement for FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
5231 (gnat_to_gnu_entity) <case ..., E_Procedure>: Use it.
5233 2010-08-21 Eric Botcazou <ebotcazou@adacore.com>
5235 * tracebak.c: Fix typo in comment.
5237 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
5239 * gcc-interface/decl.c: Use FOR_EACH_VEC_ELT.
5240 * gcc-interface/trans.c: Likewise.
5241 * gcc-interface/utils.c: Likewise.
5243 2010-08-18 Eric Botcazou <ebotcazou@adacore.com>
5245 * tracebak.c (i386): Use GCC unwinder on Linux with GCC > 4.5.
5247 2010-08-10 Robert Dewar <dewar@adacore.com>
5249 * sem_ch8.adb, sem_ch8.ads: Change name Write_Scopes to ws.
5250 * sem_util.adb: Minor reformatting.
5252 2010-08-10 Javier Miranda <miranda@adacore.com>
5254 * sem_aggr.adb (Resolve_Extension_Aggregate): Warn on the use of C++
5255 constructors that leave the object partially initialized.
5256 * exp_atag.ads, exp_atags.adb (Build_Inherit_CPP_Prims): New subprogram
5257 that copies from parent of Typ the dispatch table slots of inherited
5258 C++ primitives. It handles primary and secondary dispatch tables.
5259 * einfo.adb (Related_Type): Moved from Node26 to Node27. Required to
5260 use this attribute with E_Variable entities.
5261 (Set_Is_Tag): Relax assertion to allow its use with variables that
5263 (Set_Related_Type): Relax assertion to allow its use with variables
5264 that store the tag of a C++ class.
5265 (Write_26_Field_Name): Remove Related_Type.
5266 (Write_27_Field_Name): Add Related_Type.
5267 * einfo.ads (Related_Type): Moved from Node26 to Node27. Available also
5268 with E_Variable entities.
5269 * sem_prag.adb (CPP_Constructor): Warn on duplicated occurrence of this
5271 * sem_util.adb (Search_Tag): Add missing support for CPP types.
5272 (Enclosing_CPP_Parent): New subprogram.
5273 (Has_Suffix): New subprogram.
5274 * sem_util.ads (Enclosing_CPP_Parent): New subprogram that returns the
5275 closest ancestor of a type that is a C++ type.
5276 (Has_Suffix): New subprogram. Used in assertions to check the suffix of
5278 * sem_attr.adb (Analyze_Access_Attribute): Check wrong use of current
5279 instance in derivations of C++ types.
5280 * exp_tss.adb (CPP_Init_Proc): New subprogram.
5281 (Is_CPP_Init_Proc): New subprogram.
5282 (Set_TSS): Handle new C++ init routines.
5283 * exp_tss.ads (TSS_CPP_Init): New TSS name. For initialization of C++
5285 (CPP_Init_Proc): New subprogram.
5286 (Is_CPP_Init_Proc): New subprogram.
5287 * exp_disp.adb (CPP_Num_Prims): New subprogram.
5288 (Has_CPP_Constructors): New subprogram.
5289 (Make_Secondary_DT, Make_DT): For derivations of CPP types, do not
5290 initialize slots located in the C++ part of the dispatch table.
5291 (Make_Tags): For CPP types declare variables used by the IP routine to
5292 store the C++ tag values after the first invocation of the C++
5294 (Build_CPP_Init_DT): New subprogram.
5295 (Set_CPP_Constructors): New implementation that builds an IP for each
5296 CPP constructor. These IP are wrappers of the C++ constructors that,
5297 after the first invocation of the constructor, read the C++ tags from
5298 the object and save them locally. These copies of the C++ tags are used
5299 by the IC routines to initialize tables of Ada derivations of CPP
5301 (Write_DT): Indicate what primitives are imported from C++
5302 * exp_disp.ads (CPP_Num_Prims): New subprogram.
5303 (Has_CPP_Constructors): New subprogram.
5304 * exp_aggr.adb (Build_Record_Aggr_Code): For derivations of C++ types
5305 invoke the IC routine to inherit the slots of the parents.
5306 * sem_ch13.adb (Analyze_Freeze_Entity): Add new warnings on CPP types.
5307 * exp_ch3.adb (Is_Variable_Size_Array): New subprogram.
5308 (Is_Variable_Size_Record): Factorize code calling
5309 Is_Variable_Size_Array.
5310 (Build_CPP_Init_Procedure): New subprogram that builds the tree
5311 corresponding to the procedure that initializes the C++ part of the
5312 dispatch table of an Ada tagged type that is a derivation of a CPP
5314 (Build_Init_Procedure): Adding documentation plus code reorganization
5315 to leave more clear the construction of the IP with C++ types.
5316 (Expand_Freeze_Record_Type): Delay call to Set_CPP_Constructors because
5317 it cannot be called after Make_Tags has been invoked.
5318 (Inherit_CPP_Tag): Removed.
5319 (Init_Secondary_Tags): For derivations of CPP types, warn on tags
5320 located at variable offset.
5321 * freeze.ads: Minor reformating.
5322 * sem_ch8.adb (Write_Scopes): Add pragma export. Required to have it
5324 * gcc-interface/Make-lang.in: Update dependencies.
5326 2010-08-10 Robert Dewar <dewar@adacore.com>
5328 * a-chahan.ads: Add comments on handling of obsolescent entries.
5329 * opt.ads: Add Ada_2005 and Ada_2012 renamings for versions.
5330 * restrict.adb (Check_Obsolescent_2005_Entity): New procedure.
5331 * restrict.ads (Check_Obsolescent_2005_Entity): New procedure.
5332 * sem_attr.adb (Analyze_Access_Attribute): Call
5333 Check_Obsolescent_2005_Entity to check for access to obsolescent
5334 Ada.Characters.Handling subprogram.
5335 (Analyze_Attribute, case Class): Applying Class to untagged incomplete
5336 type is obsolescent in Ada 2005.
5337 (Analyze_Attribute, case Constrained): Better placement of flag when
5338 flagged as obsolescent feature.
5339 (Analyze_Attribute, case Storage_Size): Use with tasks is obsolescent
5340 * sem_ch10.adb (Analyze_With_Clause): With of renamings such as Text_IO
5341 is an obsolescent feature.
5342 * sem_ch11.adb (Analyze_Raise_Statement): Numeric_Error is obsolescent
5344 * sem_ch8.adb (Analyze_Subprogram_Renaming): Call
5345 Check_Obsolescent_2005_Entity to check for renaming obsolete
5346 Ada.Characters.Handling subprogram.
5347 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings): Check
5348 for obsolescent restrictions in Ada 2005.
5349 (Analyze_Pragma, case Suppress): Entity arg is obsolescent in Ada 2005
5350 (Analyze_Pragma, case Interface): Interface is obsolescent in Ada 2005
5351 * sem_res.adb (Resolve_Call): Call Check_Obsolescent_2005_Entity to
5352 check for obsolescent references to Ada.Characters.Handling subprograms
5354 2010-08-10 Robert Dewar <dewar@adacore.com>
5356 * einfo.adb, einfo.ads: Fix bad -gnatdt output for incomplete type.
5358 2010-08-10 Robert Dewar <dewar@adacore.com>
5360 * errout.ads: Add VMS table entries for 2005, 12, 2012 switches
5361 * par-ch4.adb: Change wording of Ada 2012 messages
5362 * vms_data.ads: Add VMS entries for /2005, /12, /2012
5364 2010-08-10 Robert Dewar <dewar@adacore.com>
5366 * a-suenco.adb (Convert): Fix bug in UTF-16 to UTF-8 conversion for
5367 codes in the range 16#80#..16#7FF#.
5368 * sem_ch10.adb: Minor reformatting.
5370 2010-08-10 Arnaud Charlet <charlet@adacore.com>
5372 * gnat1drv.adb (Scan_Front_End_Switches): Always perform semantics and
5373 generate ali files in CodePeer mode, so that a gnatmake -c -k will
5374 proceed further when possible
5375 * freeze.adb (Freeze_Static_Object): Fix thinko. Do not generate error
5376 messages when ignoring representation clauses (-gnatI).
5378 2010-08-10 Ed Schonberg <schonberg@adacore.com>
5380 * exp_ch4.adb (Expand_N_Selected_Component): Do not attempt to
5381 constant-fold discriminant reference if the constraint is an object
5382 with non-static expression. Expression may contain volatile references
5383 in the presence of renamings.
5385 2010-08-10 Vincent Celier <celier@adacore.com>
5387 * prj-proc.adb (Get_Attribute_Index): If Index is All_Other_Names,
5389 * prj-strt.adb (Attribute_Reference): Recognize 'others' as a valid
5390 index for an associative array where it is allowed.
5392 2010-08-10 Thomas Quinot <quinot@adacore.com>
5394 * exp_attr.adb: Add comments.
5396 2010-08-10 Jerome Lambourg <lambourg@adacore.com>
5398 * adaint.c (__gnat_get_file_names_case_sensitive): return 0 on darwin.
5400 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
5402 * gcc-interface/utils.c (gnat_poplevel): Use blocks_nreverse.
5404 2010-08-09 Eric Botcazou <ebotcazou@adacore.com>
5406 * gcc-interface/utils.c (build_vms_descriptor32): Fix formatting.
5407 (build_vms_descriptor): Likewise.
5409 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5411 * gcc-interface/utils.c (make_descriptor_field): Add tree parameter.
5412 (build_vms_descriptor32): Adjust calls to it for new parameter.
5413 (build_vms_descriptor): Likewise.
5415 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
5417 * gcc-interface/decl.c (rec_variant): Declare. Declare a VEC of it.
5418 (build_variant_list): Take and return a VEC instead of a tree.
5419 (create_variant_part_from): Take a VEC instead of a tree for
5420 variant_list. Adjust accordingly.
5421 (gnat_to_gnu_entity): Adjust for changes to previous functions.
5423 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
5425 * gcc-interface/decl.c (gnat_to_gnu_entity): Use XALLOCAVEC instead
5427 (components_to_record): Likewise.
5428 * gcc-interface/trans.c (gnat_to_gnu): Likewise.
5429 * gcc-interface/utils.c (max_size): Likewise.
5430 (build_vms_descriptor32): Likewise.
5431 (build_vms_descriptor): Likewise.
5433 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
5435 * gcc-interface/decl.c (subst_pair): Declare. Declare a VEC of it.
5436 (build_subst_list): Return a VEC instead of a tree.
5437 (build_variant_list): Take a VEC for subst_list. Adjust
5439 (create_field_decl_from): Likewise.
5440 (create_variant_part_from): Likewise.
5441 (copy_and_substitute_in_size): Likewise.
5442 (gnat_to_gnu_entity): Adjust for new interface to build_subst_list.
5443 Free the built vector.
5445 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
5447 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not build an
5448 allocator for large imported objects.
5450 2010-08-05 Robert Dewar <dewar@adacore.com>
5452 * gnat1drv.adb: Minor reformatting.
5454 2010-08-05 Ed Schonberg <schonberg@adacore.com>
5456 * sem.adb (Do_Unit_And_Dependents): If some parent unit is an
5457 instantiation, process its body before the spec of the main unit,
5458 because it may contain subprograms invoked in the spec of main.
5459 * einfo.ads: Add documention of delayed freeze.
5461 2010-08-05 Vincent Celier <celier@adacore.com>
5463 * prj-nmsc.adb (Process_Linker): Take into account new values for
5464 attribute Response_File_Format.
5465 * prj.ads (Response_File_Format): New enumeration values GCC_GNU,
5466 GCC_Object_List and GCC_Option_List.
5468 2010-08-05 Ed Schonberg <schonberg@adacore.com>
5470 * exp_ch4.adb (Expand_N_Selected_Component): Do not constant-fold a
5471 selected component that denotes a discriminant if it is the
5472 discriminant of a component of an unconstrained record type.
5474 2010-08-05 Ed Schonberg <schonberg@adacore.com>
5476 * exp_util.adb (Insert_Actions): If the action appears within a
5477 conditional expression that is already analyzed, insert action further
5480 2010-08-05 Robert Dewar <dewar@adacore.com>
5482 * exp_ch4.adb: Minor reformatting.
5484 2010-08-05 Thomas Quinot <quinot@adacore.com>
5486 * exp_ch4.adb: Minor reformatting
5487 * gnat1drv.adb: Minor reformatting.
5488 Minor code reorganization (use Nkind_In).
5490 2010-08-05 Ed Schonberg <schonberg@adacore.com>
5492 * exp_util.ads, exp_util.adb (Needs_Constant_Address): New predicate to
5493 determine whether the expression in an address clause for an
5494 initialized object must be constant. Code moved from freeze.adb.
5495 (Remove_Side_Effects): When the temporary is initialized with a
5496 reference, indicate that the temporary is a constant as done in all
5498 * freeze.adb (Check_Address_Clause): use Needs_Constant_Address.
5499 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
5500 If object does not need a constant address, remove side effects from
5501 address expression, so it is elaborated at the point of the address
5502 clause and not at the freeze point of the object, so that elaboration
5505 2010-08-05 Vincent Celier <celier@adacore.com>
5507 * prj.adb (Is_Compilable): Return False for header files of non Ada
5510 2010-08-05 Emmanuel Briot <briot@adacore.com>
5512 * prj-nmsc.adb: The Missing_Source_Files flag also considers a missing
5513 exec directory as a warning rather than an error.
5515 2010-08-05 Thomas Quinot <quinot@adacore.com>
5517 * sem_ch6.adb, gnat1drv.adb, exp_ch6.adb, sem_eval.adb: Minor
5520 2010-08-05 Steve Baird <baird@adacore.com>
5522 * exp_util.adb (Remove_Side_Effects): An access value which designates
5523 a volatile object of a nonvolatile type is prohibited.
5524 Do not call Make_Reference to construct a reference to such an object.
5526 2010-08-05 Robert Dewar <dewar@adacore.com>
5528 * a-suezse.adb, a-suezse.ads, a-suezen.adb, a-suezen.ads: Removed.
5529 * a-suewse.adb, a-suewse.ads, a-suesen.adb, a-suesen.ads,
5530 a-suewen.adb, a-suewen.ads: New files.
5531 * Makefile.rtl, impunit.adb: Update implementation of Ada 2012 string
5533 * sem_elab.adb: Minor reformatting.
5535 2010-08-05 Arnaud Charlet <charlet@adacore.com>
5537 * sem_ch8.adb (Use_One_Type): Protect against empty scopes.
5538 * exp_util.adb (Component_May_Be_Bit_Aligned): Prevent assert failure
5539 in case of null Comp.
5541 2010-08-05 Robert Dewar <dewar@adacore.com>
5543 * errout.adb, a-suewen.adb, a-suezen.adb: Minor reformatting.
5545 2010-08-05 Gary Dismukes <dismukes@adacore.com>
5547 * sem_ch4.adb (Analyze_Allocator): Flag errors on allocators of a
5548 nested access type whose designated type has tasks or is a protected
5549 object when the restrictions No_Task_Hierarchy or
5550 No_Local_Protected_Objects apply. Add ??? comment.
5551 * sem_ch9.adb (Analyze_Protected_Type): Give a warning when a protected
5552 type is not a library-level type and No_Local_Protected_Objects applies.
5553 (Analyze_Task_Type): Give a warning when a task type is not a
5554 library-level type and No_Task_Hierarchy applies.
5556 2010-08-05 Arnaud Charlet <charlet@adacore.com>
5558 * sem.adb: Minor reformatting
5559 * sem_ch4.adb (Analyze_Reference): Disable error message in CodePeer
5562 2010-08-04 Eric Botcazou <ebotcazou@adacore.com>
5564 * gcc-interface/decl.c: Do not undefine IN_GCC_FRONTEND and do not
5566 (gnat_to_gnu_entity) <object>: Force address of -1 at the tree level
5567 for the debug-only entity.
5568 * gcc-interface/Make-lang.in (ada/decl.o): Adjust dependencies.
5570 2010-08-03 Joseph Myers <joseph@codesourcery.com>
5572 * gcc-interface/lang-specs.h: Don't pass -a options.
5574 2010-07-28 Joseph Myers <joseph@codesourcery.com>
5576 * gcc-interface/misc.c (gnat_init_options): Ignore erroneous
5577 options. Check canonical_option_num_elements on options copied.
5579 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5581 * gcc-interface/misc.c (gnat_handle_option): Update prototype and
5582 return value type. Don't check for missing arguments here.
5584 2010-07-27 Joseph Myers <joseph@codesourcery.com>
5586 * gcc-interface/misc.c (gnat_option_lang_mask): New.
5587 (gnat_init_options): Update prototype. Reconstruct argv array
5588 from decoded options.
5590 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
5592 * gcc-interface/utils.c (update_pointer_to): In the unconstrained array
5593 case, merge the alias set of the old pointer type.
5595 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
5597 * gcc-interface/utils.c (gnat_types_compatible_p): Revert latest change
5598 and recurse only for multidimensional array types instead.
5600 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
5603 * gcc-interface/utils.c (convert): Fix thinko in test.
5604 (unchecked_convert): When converting from a scalar type to a type with
5605 a different size, pad to have the same size on both sides.
5607 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
5609 * gcc-interface/utils.c (gnat_types_compatible_p): Don't require strict
5610 equality for the component type of array types.
5612 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
5614 * gcc-interface/decl.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
5615 * gcc-interface/trans.c: Likewise.
5616 * gcc-interface/utils.c: Likewise.
5617 * gcc-interface/utils2.c: Likewise.
5619 2010-07-13 Laurent GUERBY <laurent@guerby.net>
5622 * gcc-interface/targtyps.c: Include tm_p.h.
5623 * gcc-interface/Make-lang.in: Update dependencies.
5625 2010-07-09 Eric Botcazou <ebotcazou@adacore.com>
5627 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Deal with
5630 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5632 * gcc-interface/utils.c: Include diagnostic-core.h in every file
5633 that includes toplev.h.
5635 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
5637 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>:
5638 Branch to common code handling the alignment of discrete types.
5639 <E_Signed_Integer_Type>: Likewise.
5640 <E_Modular_Integer_Type>: Likewise.
5642 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
5644 * gcc-interface/misc.c (gnat_handle_option): Do not populate gnat_argv.
5645 (gnat_handle_option): Allocate only one element for gnat_argv.
5646 (gnat_init): Do not populate gnat_argv.
5648 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
5650 * gcc-interface/trans.c: Do not include tree-flow.h.
5651 * gcc-interface/Make-lang.in: Adjust dependencies.
5653 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
5655 * gcc-interface/gigi.h (gnat_build_constructor): Take a VEC instead
5656 of a TREE_LIST. Update comment.
5657 * gcc-interface/trans.c (gigi): Build a VEC instead of a TREE_LIST.
5658 Adjust call to gnat_build_constructor.
5659 (Attribute_to_gnu): Likewise.
5660 (gnat_to_gnu): Likewise.
5661 (pos_to_constructor): Likewise.
5662 (extract_values): Likewise.
5663 * gcc-interface/utils.c (build_template): Likewise.
5664 (convert_vms_descriptor64): Likewise.
5665 (convert_vms_descriptor32): Likewise.
5666 (convert_to_fat_pointer): Likewise.
5667 (convert): Likewise.
5668 (unchecked_convert): Likewise.
5669 * gcc-interface/decl.c (gnat_to_gnu_entity): Likewise.
5670 * gcc-interface/utils2.c (build_allocator): Likewise.
5671 (fill_vms_descriptor): Likewise.
5672 (gnat_build_constructor): Take a VEC instead of a TREE_LIST.
5673 (compare_elmt_bitpos): Adjust for parameters being constructor_elts
5674 instead of TREE_LISTs.
5676 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
5678 * gcc-interface/misc.c: Do not include except.h.
5679 * gcc-interface/Make-lang.in: Update dependencies.
5681 2010-06-27 Eric Botcazou <ebotcazou@adacore.com>
5683 * gcc-interface/trans.c: Include tree-flow.h.
5684 (gnu_switch_label_stack): Delete.
5685 (Case_Statement_to_gnu): Do not emit the goto at the end of a case if
5686 its associated block cannot fall through. Do not emit the final label
5687 if no cases branch to it.
5688 * gcc-interface/Make-lang.in (ada/trans.o): Add $(TREE_FLOW_H).
5690 2010-06-23 Thomas Quinot <quinot@adacore.com>
5692 * exp_attr.adb (Expand_Access_To_Protected_Op): When rewriting a
5693 reference to a protected subprogram outside of the protected's scope,
5694 ensure the corresponding external subprogram is frozen before the
5697 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5699 * sem_prag.adb: Fix typo in error message.
5700 * sem.adb: Refine previous change.
5702 2010-06-23 Robert Dewar <dewar@adacore.com>
5704 * impunit.adb, a-suewen.adb, a-suewen.ads, a-suenco.adb, a-suenco.ads,
5705 a-suezen.adb, a-suezen.ads, a-stuten.adb, a-stuten.ads, Makefile.rtl:
5706 Implement Ada 2012 string encoding packages.
5708 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5710 * a-stwiun-shared.adb, a-stwiun-shared.ads, a-stzunb-shared.adb,
5711 a-stzunb-shared.ads, a-swunau-shared.adb, a-swuwti-shared.adb,
5712 a-szunau-shared.adb, a-szuzti-shared.adb, a-strunb-shared.adb,
5713 a-strunb-shared.ads, a-stunau-shared.adb, a-suteio-shared.adb: New
5715 * gcc-interface/Makefile.in: Enable use of above files.
5717 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5719 * sem_ch13.adb (Check_Constant_Address_Clauses): Do not check legality
5720 of address clauses if if Ignore_Rep_Clauses is active.
5721 * freeze.adb (Check_Address_Clause): If Ignore_Rep_Clauses is active,
5722 remove address clause from tree so that it does not reach the backend.
5724 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5726 * exp_attr.adb (Expand_N_Attribute_Reference [Attribute_Valid]): Do not
5727 expand 'Valid from user code in CodePeer mode, will be handled by the
5730 2010-06-23 Bob Duff <duff@adacore.com>
5732 * g-comlin.ads: Minor comment improvements.
5734 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5736 * sem_res.adb (Uses_SS): The expression that initializes a controlled
5737 component of a record type may be a user-defined operator that is
5738 rewritten as a function call.
5740 2010-06-23 Bob Duff <duff@adacore.com>
5742 * g-comlin.ads, sem_ch13.adb: Minor comment fix.
5744 2010-06-23 Eric Botcazou <ebotcazou@adacore.com>
5746 * exp_ch11.adb (Expand_Local_Exception_Handlers): Propagate the end
5747 label to the new sequence of statements. Set the sloc of the raise
5748 statement onto the new goto statements.
5750 2010-06-23 Robert Dewar <dewar@adacore.com>
5752 * a-stuten.ads, a-stuten.adb: New files.
5753 * impunit.adb: Add engtry for Ada.Strings.UTF_Encoding (a-stuten.ads)
5754 * Makefile.rtl: Add entry for a-stuten (Ada.Strings.UTF_Encoding)
5756 2010-06-23 Robert Dewar <dewar@adacore.com>
5758 * gnat_ugn.texi: Add documentation of -gnat12 switch
5759 Add documentation of -gnatX switch.
5761 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5763 * inline.ads: Include the current Ada_Version in the info for pending
5764 instance bodies, so that declaration and body are compiled with the
5766 * inline.adb: Move with_clause for Opt to spec.
5767 * sem_ch12.adb (Analyze_Package_Instantiation,
5768 Analyze_Subprogram_Instantiation): Save current Ada_Version in
5769 Pending_Instantiation information.
5770 (Instantiate_Package_Body, Instantiate_Subprogram_Body,
5771 Inline_Package_Body): Use the Ada_Version present in the body
5774 2010-06-23 Robert Dewar <dewar@adacore.com>
5776 * usage.adb: Add documentation for -gnat12 switch.
5777 * errout.ads: Add VMS alias entry for -gnat12 switch
5778 * gnat_rm.texi: Add documentation for pragma Ada_12 and Ada_2012
5779 Add documentation for pragma Extensions_Allowed.
5780 * opt.ads: Add entry for Ada 2012 mode.
5781 * sem_ch4.adb, par-ch3.adb, par-ch4.adb: Use new Ada 2012 mode for 2012
5783 * sem_prag.adb, par-prag.adb: Add processing for pragma Ada_12 and
5785 * sem_ch13.adb: Add handling for Ada 2012 mode.
5786 * snames.ads-tmpl: Add entries for pragma Ada_2012 and Ada_12.
5787 * switch-c.adb: Add handling for -gnat12 switch.
5788 Implement -gnat2005 and -gnat2012.
5789 * usage.adb: Add documentation for -gnat12 switch.
5790 * vms_data.ads: Add /12 switch for Ada 2012 mode.
5792 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5794 * exp_ch4.adb (Expand_N_Allocator): Fix potential crash when using
5795 No_Task_Hierarchy restriction. Add comment.
5796 * exp_ch9.adb, exp_ch3.adb: Update comments.
5798 2010-06-23 Robert Dewar <dewar@adacore.com>
5800 * sem_ch5.adb (Process_Bounds): Remove some junk initializations.
5801 * sem_res.adb: Add comments.
5802 * sem_util.adb: Minor reformatting. Add comments.
5803 Change increment on Actuals_In_Call table.
5804 * opt.ads: Minor: add 'constant'.
5806 2010-06-23 Javier Miranda <miranda@adacore.com>
5808 * exp_disp.adb (Make_DT): Initialize the Size_Func component of the
5809 TSD to Null_Address if No_Dispatching_Calls is active.
5811 2010-06-23 Vincent Celier <celier@adacore.com>
5813 * a-comlin.ads: Indicate that use of this package is not supported
5814 during the elaboration of an auto-initialized Stand-Alone Library.
5816 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5818 * exp_util.adb (Is_Possibly_Misaligned_Object): Do not rely on an
5819 alignment clause on a record type to determine if a component may be
5820 misaligned. The decision must be taken in the back-end where target
5821 alignment information is known.
5823 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5825 * gnat1drv.adb (Adjust_Global_Switches): Enable some restrictions
5826 systematically in CodePeer mode to simplify generated code.
5827 * restrict.adb (Check_Restriction): Do nothing in CodePeer mode.
5828 * exp_ch4.adb (Expand_N_Allocator): Generate proper code when
5829 No_Task_Hierarchy is set instead of crasshing.
5831 2010-06-23 Thomas Quinot <quinot@adacore.com>
5833 * sem_util.adb: Minor code cleanup: test for proper entity instead of
5834 testing just Chars attribute when checking whether a given scope is
5836 * exp_ch4.adb, einfo.adb: Minor reformatting.
5838 2010-06-23 Vincent Celier <celier@adacore.com>
5841 * switch-m.adb (Normalize_Compiler_Switches): Take into account
5842 switches -gnatB, -gnatD=nn, -gnatG (incuding -gnatG=nn), -gnatI,
5843 -gnatl=file, -gnatS, -gnatjnn, -gnateI=nn and -gnatWx.
5845 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5847 * sem_res.adb (Resolve_Membership_Op): If left operand is a mixed mode
5848 operation with a universal real operand, and the right operand is a
5849 range with universal bounds, find unique fixed point that may be
5850 candidate, and warn appropriately.
5852 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5854 * sem_res.adb (Resolve_Intrinsic_Operator): Add guards to handle
5855 properly the rare cases where VMS operators are visible through
5856 Extend_System, but the default System is being used and Address is a
5858 * sem_util.adb: Widen predicate Is_VMS_Operator.
5860 2010-06-23 Vincent Celier <celier@adacore.com>
5862 * switch-m.adb (Normalize_Compiler_Switches): Take into account -gnatC
5865 2010-06-23 Olivier Hainque <hainque@adacore.com>
5867 * einfo.adb (Has_Foreign_Convention): Consider Intrinsic with
5868 Interface_Name as foreign. These are GCC builtin imports for
5869 which Ada specific processing doesn't apply.
5871 2010-06-23 Thomas Quinot <quinot@adacore.com>
5873 * sem_ch12.adb: Minor reformatting.
5875 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5877 * sem_util.adb (Is_VMS_Operator): Use scope of system extension to
5878 determine whether an intrinsic subprogram is VMS specific.
5880 2010-06-23 Hristian Kirtchev <kirtchev@adacore.com>
5882 * treepr.adb (Print_Entity_Info): Output the contents of Field28 if it
5883 is present in the entity.
5885 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5887 * xr_tabls.adb, xref_lib.adb: Update to latest lib-xref.ads
5888 Fix handling of parameters.
5889 Add protection against unexpected cases.
5890 * sem_ch6.adb (Create_Extra_Formals): Use suffix "L" instead of "A" for
5891 access level, since "A" suffix is already used elsewhere. Similarly,
5892 use suffix "O" instead of "C" for 'Constrained since "C" suffix is used
5895 2010-06-23 Thomas Quinot <quinot@adacore.com>
5897 * sem_util.adb, sem_util.ads: Minor reformatting.
5899 2010-06-23 Vincent Celier <celier@adacore.com>
5901 * prj.ads (Gprclean_Flags.Missing_Source_Files): Set to Error to keep
5902 the previous behavior of gprclean when there are missing files.
5904 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5906 * sem_ch12.adb (Load_Body_Of_Generic): In CodePeer mode, a missing
5907 generic body is not a fatal error.
5908 (Mark_Context): Handle properly names of child units.
5909 * sem.adb (Walk_Library_Items.Do_Action): Remove assertion on
5912 2010-06-23 Vincent Celier <celier@adacore.com>
5914 * ali.adb (Scan_ALI): When ignoring R lines, do not skip the next
5917 2010-06-23 Bob Duff <duff@adacore.com>
5919 * g-pehage.ads, g-pehage.adb: Switch default optimization mode to
5920 Memory_Space, because CPU_Time doesn't seem to provide any significant
5921 speed advantage in practice. Cleanup: Get rid of constant
5922 Default_Optimization; doesn't seem to add anything. Use case
5923 statements instead of if statements; seems cleaner.
5925 2010-06-23 Olivier Hainque <hainque@adacore.com>
5927 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Procedure>: Use
5928 Wshadow instead of Wextra to guard warning on absence of internal
5929 builtin decl for an import. Fix use of quote in warning text.
5930 (intrin_arglists_compatible_p): Remove processing of integer trailing
5931 args on the Ada side. Fix use of literal > in warning text.
5932 (intrin_return_compatible_p): Never warn on "function imported as
5933 procedure". Defer the void/void case to the common type compatibility
5935 (gnat_to_gnu_param): Use void_ptr GCC type for System.Address argument
5936 of GCC builtin imports.
5938 2010-06-23 Olivier Hainque <hainque@adacore.com>
5940 * gcc-interface/decl.c (intrin_types_incompatible_p): New function,
5942 (intrin_arglists_compatible_p, intrin_return_compatible_p): New
5943 functions, helpers for ...
5944 (intrin_profiles_compatible_p): New function, replacement for ...
5945 (compatible_signatures_p): Removed.
5946 (gnat_to_gnu_entity) <case E_Procedure>: If -Wextra, warn on
5947 attempt to bind an unregistered builtin function. When we have
5948 one, use it and warn on profile incompatibilities.
5950 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5952 * gcc-interface/Make-lang.in: Update dependencies.
5954 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5956 * sem_util.adb (Mark_Coextensions): If the expression in the allocator
5957 for a coextension in an object declaration is a concatenation, treat
5958 coextension as dynamic.
5960 2010-06-23 Javier Miranda <miranda@adacore.com>
5962 * sem_ch3.adb (Add_Internal_Interface_Entities): Ensure that the
5963 internal entities are added to the scope of the tagged type.
5964 (Derive_Subprograms): Do not stop derivation when we find the first
5965 internal entity that has attribute Interface_Alias. After the change
5966 done to Override_Dispatching_Operations it is no longer true that
5967 these primirives are always located at the end of the list of
5969 * einfo.ads (Primitive_Operations): Add documentation.
5970 * exp_disp.adb (Write_DT): Improve output adding to the name of the
5971 primitive a prefix indicating its corresponding tagged type.
5972 * sem_disp.adb (Override_Dispatching_Operations): If the overridden
5973 entity covers the primitive of an interface that is not an ancestor of
5974 this tagged type then the new primitive is added at the end of the list
5975 of primitives. Required to fulfill the C++ ABI.
5977 2010-06-23 Javier Miranda <miranda@adacore.com>
5979 * atree.ads (Set_Reporting_Proc): New subprogram.
5980 * atree.adb: Remove dependency on packages Opt and SCIL_LL.
5981 (Allocate_Initialize_Node, Replace, Rewrite): Replace direct calls
5982 to routines of package Scil_ll by indirect call to the registered
5984 (Set_Reporting_Proc): New subprogram. Used to register a subprogram
5985 that is invoked when a node is allocated, replaced or rewritten.
5986 * scil_ll.adb (Copy_SCIL_Node): New routine that takes care of copying
5987 the SCIL node. Used as argument for Set_Reporting_Proc.
5988 (Initialize): Register Copy_SCIL_Node as the reporting routine that
5989 is invoked by atree.
5991 2010-06-23 Thomas Quinot <quinot@adacore.com>
5993 * sem_ch3.ads: Minor reformatting.
5995 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5997 * sem_ch12.adb (Analyze_Package_Instantiation): In CodePeer mode,
5998 always analyze the generic body and instance, because it may be needed
6000 (Mark_Context): Prepend the with clauses for needed generic units, so
6001 they appear in a better order for CodePeer.
6002 * sem_util.adb, sem_util.ads: Prototype code for AI05-0144.
6004 2010-06-23 Emmanuel Briot <briot@adacore.com>
6006 * prj.ads, prj-nmsc.adb (Error_Or_Warning): New subprogram.
6008 2010-06-23 Robert Dewar <dewar@adacore.com>
6010 * g-pehage.adb, exp_ch13.adb: Minor reformatting.
6012 2010-06-23 Thomas Quinot <quinot@adacore.com>
6014 * a-tags.ads: Fix description of TSD structure.
6016 2010-06-23 Ed Schonberg <schonberg@adacore.com>
6018 * sem_ch12.adb (Mark_Context): When indicating that the body of a
6019 generic unit is needed prior to the unit containing an instantiation,
6020 search recursively the context of the generic to add other generic
6021 bodies that may be instantiated indirectly through the current instance.
6023 2010-06-23 Robert Dewar <dewar@adacore.com>
6025 * freeze.adb: Minor reformatting.
6027 2010-06-23 Bob Duff <duff@adacore.com>
6029 * g-pehage.adb (Trim_Trailing_Nuls): Fix the code to match the comment.
6031 2010-06-23 Vincent Celier <celier@adacore.com>
6033 * make.adb (Compile_Sources): Complete previous change.
6035 2010-06-23 Ed Schonberg <schonberg@adacore.com>
6037 * sem_ch6.adb (Add_Extra_Formal): Use suffix "C" in the name of the
6038 Constrained extra formal.
6040 2010-06-23 Ed Schonberg <schonberg@adacore.com>
6042 * exp_ch13.adb (Expand_Freeze_Actions): If validity checks and
6043 Initialize_Scalars are enabled, compile the generated equality function
6044 for a composite type with full checks enabled, so that validity checks
6045 are performed on individual components.
6047 2010-06-23 Emmanuel Briot <briot@adacore.com>
6049 * prj.adb, prj.ads, prj-nmsc.adb (Processing_Flags): New flag
6050 Missing_Source_Files.
6052 2010-06-23 Robert Dewar <dewar@adacore.com>
6054 * exp_ch3.adb, exp_util.adb: Minor reformatting.
6056 2010-06-23 Jose Ruiz <ruiz@adacore.com>
6058 * a-reatim.adb, a-retide.adb: Move the initialization of the tasking
6059 run time from Ada.Real_Time.Delays to Ada.Real_Time. This way, calls to
6060 Clock (without delays) use a run time which is properly initialized.
6062 2010-06-23 Vincent Celier <celier@adacore.com>
6064 * make.adb: Do not set Check_Readonly_Files when setting Must_Compile,
6065 when -f -u and a main is specified on the command line. However,
6066 attempt to compile even when the ALI file is read-only when
6067 Must_Compile is True.
6069 2010-06-23 Thomas Quinot <quinot@adacore.com>
6071 * checks.adb, g-pehage.adb, cstand.adb: Minor code factorization.
6073 2010-06-23 Javier Miranda <miranda@adacore.com>
6075 * sem_ch3.adb (Add_Internal_Interface_Entities): Generate internal
6076 entities for parent types that are interfaces. Needed in generics to
6077 handle formals that implement interfaces.
6078 (Derive_Subprograms): Add assertion for derivation of tagged types that
6079 do not cover interfaces. For generics, complete code that handles
6080 derivation of type that covers interfaces because the previous
6081 condition was weak (it required only name consistency; arguments were
6082 not checked). Add new code to locate primitives covering interfaces
6083 defined in generic units or instantiatons.
6084 * sem_util.adb (Has_Interfaces): Add missing support for derived types.
6085 * sem_ch6.adb (Check_Overriding_Indicator): Minor code cleanups.
6086 * exp_disp.adb (Make_Select_Specific_Data_Table): Skip primitives of
6087 interfaces that are parents of the type because they share the primary
6089 (Register_Primitive): Do not register primitives of interfaces that
6090 are parents of the type.
6091 * sem_ch13.adb (Analyze_Freeze_Entity): Add documentation.
6092 * exp_cg.adb (Write_Type_Info): When displaying overriding of interface
6093 primitives skip primitives of interfaces that are parents of the type.
6095 2010-06-23 Ed Schonberg <schonberg@adacore.com>
6097 * sem_attr.adb (Eval_Attribute): If the prefix is an array, the
6098 attribute cannot be constant-folded if an index type is a formal type,
6099 or is derived from one.
6100 * checks.adb (Determine_Range): ditto.
6102 2010-06-23 Arnaud Charlet <charlet@adacore.com>
6104 * gnat_ugn.texi, gnatxref.adb: Add support for --ext switch.
6106 2010-06-23 Bob Duff <duff@adacore.com>
6108 * g-pehage.ads, g-pehage.adb (Put): Fix off-by-one bug.
6109 (Insert): Disallow nul characters.
6110 (misc output routines): Assert no nul characters.
6112 2010-06-23 Ed Schonberg <schonberg@adacore.com>
6114 * exp_ch4.adb: Use predefined unsigned type in all cases.
6116 2010-06-23 Bob Duff <duff@adacore.com>
6118 * s-rannum.adb (Reset): Avoid overflow in calculation of Initiator.
6119 * g-pehage.ads: Minor comment fixes.
6120 * g-pehage.adb: Minor: Add some additional debugging printouts under
6123 2010-06-23 Robert Dewar <dewar@adacore.com>
6125 * binde.adb (Better_Choice): Always prefer Pure/Preelab.
6126 (Worse_Choice): Always prefer Pure/Preelab.
6128 2010-06-23 Vincent Celier <celier@adacore.com>
6130 * a-reatim.adb: Call System.OS_Primitives.Initialize during elaboration
6132 2010-06-23 Robert Dewar <dewar@adacore.com>
6134 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Properly handle
6135 checking returns in generic case.
6136 (Check_Missing_Return): New procedure.
6138 2010-06-23 Robert Dewar <dewar@adacore.com>
6140 * bindgen.adb, switch-b.adb: Minor reformatting.
6142 2010-06-23 Javier Miranda <miranda@adacore.com>
6144 * frontend.adb (Frontend): Add call to initialize the new package
6146 * exp_ch7.adb (Wrap_Transient_Expression): Remove call to
6148 (Wrap_Transient_Statement): Remove call to Adjust_SCIL_Node.
6149 * sem_ch5.adb (Analyze_Iteration_Scheme.Process_Bounds): Remove call to
6151 * exp_util.adb (Insert_Actions): Remove code for
6152 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
6153 (Remove_Side_Effects): Remove calls to Adjust_SCIL_Node.
6154 * sinfo.adb (SCIL_Entity, SCIL_Tag_Value): Remove checks on
6155 N_SCIL_Tag_Init and N_SCIL_Dispatch_Table_Object_Init in the assertion.
6156 (SCIL_Related_Node, Set_SCIL_Related_Node): Removed.
6157 * sinfo.ads (SCIL_Related_Node): Field removed.
6158 (N_SCIL_Dispatch_Table_Object_Init): Node removed.
6159 (N_SCIL_Tag_Init): Node removed.
6160 * sem_scil.ads, sem_scil.adb (Adjust_SCIL_Node): Removed.
6161 (Check_SCIL_Node): New implementation.
6162 (Find_SCIL_Node): Removed.
6163 * sem.adb (Analyze): Remove management of
6164 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
6165 * sem_util.adb (Insert_Explicit_Dereference): Remove call to
6167 * exp_ch4.adb (Expand_N_In): Code cleanup: remove call to
6168 Set_SCIL_Related_Node and avoid adding the SCIL node before the
6169 referenced node using Insert_Action because this is not longer
6171 (Expand_Short_Circuit_Operator): Remove call to SCIL node.
6172 * exp_ch6.adb (Expand_Call): Remove call to Adjust_SCIL_Node.
6173 * sem_ch4.adb (Analyze_Type_Conversion): Remove call to
6175 * exp_disp.adb (Expand_Dispatching_Call): Minor code reorganization
6176 because we no longer require to generate the SCIL node before the call.
6177 (Make_DT): Remove generation of SCI_Dispatch_Table_Object_Init node.
6178 Remove calls to Set_SCIL_Related_Node and avoid adding the SCIL
6179 nodes before the referenced node using Insert_Action because this
6180 is not longer required.
6181 * atree.adb (Allocate_Initialize_Node, Replace, Rewrite): Add call to
6182 update the SCIL_Node field.
6183 * sprint.adb (Sprint_Node_Actual): Remove code for
6184 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
6185 * treepr.adb (Print_Node): Print the SCIL node field (if available).
6186 * exp_ch3.adb (Build_Init_Procedure): Remove generation of
6187 SCIL_Tag_Init nodes.
6188 * scil_ll.ads, scil_ll.adb: New files.
6189 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
6192 2010-06-23 Robert Dewar <dewar@adacore.com>
6194 * sem_ch6.adb: Minor reformatting.
6196 2010-06-23 Doug Rupp <rupp@adacore.com>
6198 * bindusg.adb (Display): Write -Hnn line.
6199 * bindgen.adb (Gen_Adainit_Ada): Write Heap_Size to binder file as
6201 * init.c (__gl_heap_size): Rename from __gl_no_malloc_64 and change
6202 valid values to 32 and 64.
6203 (GNAT$NO_MALLOC_64): Recognize TRUE, 1, FALSE, and 0 in addition to
6204 ENABLE, DISABLE as valid settings.
6205 * switch-b.adb (Scan_Binder_Switches): Process -Hnn switch.
6206 * opt.ads (Heap_Size): New global variable.
6207 * gcc-interface/utils2.c (maybe_wrap_malloc): Remove mostly redundant
6208 TARGET_MALLOC64 check. Fix comment.
6210 2010-06-23 Robert Dewar <dewar@adacore.com>
6212 * sem_ch6.adb, exp_ch4.adb, s-rannum.ads, sem.adb, sem_ch12.adb: Minor
6213 reformatting. Add comments.
6214 * errout.adb (Finalize): Properly adjust warning count when deleting
6217 2010-06-22 Robert Dewar <dewar@adacore.com>
6219 * errout.adb (Finalize): Set Prev pointers.
6220 (Finalize): Delete continuations for deletion by warnings off(str).
6221 * erroutc.ads: Add Prev pointer to error message structure.
6223 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6225 * sem.adb (Do_Unit_And_Dependents): If the spec of the main unit is a
6226 child unit, examine context of parent units to locate instantiated
6227 generics whose bodies may be needed.
6228 * sem_ch12.adb: (Mark_Context): if the enclosing unit does not have a
6229 with_clause for the instantiated generic, examine the context of its
6230 parents, to set Withed_Body flag, so that it can be visited earlier.
6231 * exp_ch4.adb (Expand_N_Op_Not): If this is a VMS operator applied to
6232 an unsigned type, use a type of the proper size for the intermediate
6233 value, to prevent alignment problems on unchecked conversion.
6235 2010-06-22 Geert Bosch <bosch@adacore.com>
6237 * s-rannum.ads Change Generator type to be self-referential to allow
6238 Random to update its argument. Use "in" mode for the generator in the
6239 Reset procedures to allow them to be called from the Ada.Numerics
6240 packages without tricks.
6241 * s-rannum.adb: Use the self-referencing argument to get write access
6242 to the internal state of the random generator.
6243 * a-nudira.ads: Make Generator a derived type of
6244 System.Random_Numbers.Generator.
6245 * a-nudira.adb: Remove use of 'Unrestricted_Access.
6246 Put subprograms in alpha order and add headers.
6247 * g-mbdira.ads: Change Generator type to be self-referential.
6248 * g-mbdira.adb: Remove use of 'Unrestricted_Access.
6250 2010-06-22 Robert Dewar <dewar@adacore.com>
6252 * freeze.adb: Minor reformatting
6253 Minor code reorganization (use Nkind_In and Ekind_In).
6255 2010-06-22 Bob Duff <duff@adacore.com>
6257 * gnat1drv.adb (Gnat1drv): Remove the messages that recommend using
6258 -gnatc when a file is compiled that we cannot generate code for, not
6259 helpful and confusing.
6261 2010-06-22 Vincent Celier <celier@adacore.com>
6263 * switch-m.adb (Normalize_Compiler_Switches): Process correctly
6266 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6268 * s-rannum.adb: Replace constants with commented symbols.
6269 * s-rannum.ads: Explain significance of the initial value of the data
6272 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6274 * a-ngcoty.adb: Clarify comment.
6276 2010-06-22 Gary Dismukes <dismukes@adacore.com>
6278 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Return without
6279 expansion for indexing packed arrays with small power-of-2 component
6280 sizes when the target is AAMP.
6281 (Expand_Packed_Element_Reference): Return without expansion for
6282 indexing packed arrays with small power-of-2 component sizes when the
6285 2010-06-22 Geert Bosch <bosch@adacore.com>
6287 * exp_ch4.adb (Expand_N_In): Do not substitute a valid check for X in
6290 2010-06-22 Robert Dewar <dewar@adacore.com>
6292 * g-mbdira.adb, g-mbflra.adb, a-nuflra.adb, a-nudira.adb: Minor comment
6295 2010-06-22 Doug Rupp <rupp@adacore.com>
6297 * system-vms.ads, system-vms-zcx.ads: Remove old unused VMS system
6299 * system-vms_64.ads, system-vms-ia64.ads: Minor reformatting.
6300 (pragma Ident): Add a default ident string in the private part.
6302 2010-06-22 Robert Dewar <dewar@adacore.com>
6304 * cstand.adb: Minor reformatting.
6306 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6308 * freeze.adb (Build_And_Analyze_Renamed_Body): For expansion purposes,
6309 recognize the Shift and Rotation intrinsics that are known to the
6310 compiler but have no interface name.
6312 2010-06-22 Geert Bosch <bosch@adacore.com>
6314 * a-ngcoty.adb ("*"): Rewrite complex multiplication to use proper
6315 scaling in case of overflow or NaN results.
6317 2010-06-22 Robert Dewar <dewar@adacore.com>
6319 * cstand.adb: Complete previous change.
6320 * g-dirope.ads: Add comment.
6321 * s-stchop.adb, sfn_scan.adb: Minor reformatting.
6323 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6325 * cstand.adb: Add tree nodes for pragma Pack on string types.
6327 2010-06-22 Javier Miranda <miranda@adacore.com>
6329 * einfo.ads, einfo.adb (Last_Formal): New synthesized attribute.
6330 * exp_util.adb (Find_Prim_Op): Use new attribute to locate the last
6331 formal of a primitive.
6332 * exp_disp.adb (Is_Predefined_Dispatching_Operation,
6333 Is_Predefined_Dispatching_Alias): Use new attribute to locate the last
6334 formal of a primitive.
6335 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Use new attribute
6336 to obtain the last formal of a primitive.
6338 2010-06-22 Geert Bosch <bosch@adacore.com>
6340 * sysdep.c, init.c, adaint.c, cstreams.c: Remove conditional code
6341 depending on __EMX__ or MSDOS being defined.
6342 * i-cstrea.ads, gnat_rm.texi: Remove mentions of OS/2, DOS and Xenix.
6343 * a-excpol-abort.adb: Update comment indicating users of the file.
6344 * xref_lib.adb, sfn_scan.adb: Remove mention of OS/2, replace NT by
6346 * env.c: Remove empty conditional for MSDOS.
6347 * s-stchop.adb, g-dirope.ads, s-fileio.adb, osint.ads: Remove mention
6350 2010-06-22 Robert Dewar <dewar@adacore.com>
6352 * s-rannum.adb: Minor reformatting.
6354 2010-06-22 Javier Miranda <miranda@adacore.com>
6356 * sem_aux.adb, sem_aux.ads, sem_util.adb, sem_util.ads, sem_elim.adb,
6357 exp_cg.adb: Minor code reorganization: Move routine Ultimate_Alias from
6358 package Sem_Util to package Sem_Aux.
6360 2010-06-22 Javier Miranda <miranda@adacore.com>
6362 * exp_disp.adb (Make_Secondary_DT, Make_DT): Minor code cleanup:
6363 remove useless restriction on imported routines when building the
6366 2010-06-22 Robert Dewar <dewar@adacore.com>
6368 * cstand.adb (Create_Standard): Set Has_Pragma_Pack for standard string
6371 2010-06-22 Javier Miranda <miranda@adacore.com>
6373 * sem_ch4.adb (Collect_Generic_Type_Ops): Protect code that handles
6374 generic subprogram declarations to ensure proper context. Add missing
6375 support for generic actuals.
6376 (Try_Primitive_Operation): Add missing support for concurrent types
6377 that have no Corresponding_Record_Type. Required to diagnose errors
6379 generics or when compiling with no code generation (-gnatc).
6380 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Do not build
6381 the corresponding record type.
6382 * sem_disp.ads, sem_disp.adb (Check_Dispatching_Operation): Complete
6383 documentation. Do minimum decoration when processing a primitive of a
6384 concurrent tagged type that covers interfaces. Required to diagnose
6385 errors in the Object.Operation notation compiling generics or under
6387 * exp_ch9.ads, exp_ch9.adb (Build_Corresponding_Record): Add missing
6388 propagation of attribute Interface_List to the corresponding record.
6389 (Expand_N_Task_Type_Declaration): Code cleanup.
6390 (Expand_N_Protected_Type_Declaration): Code cleanup.
6392 2010-06-22 Matthew Heaney <heaney@adacore.com>
6394 * a-convec.adb, a-coinve.adb: Removed 64-bit types Int and UInt.
6396 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6398 * s-rannum.adb (Random_Float_Template): Replace with unbiased version
6399 that is able to produce all representable floating-point numbers in the
6400 unit interval. Remove template parameter Shift_Right, no longer used.
6401 * gnat_rm.texi: Document the period of the pseudo-random number
6402 generator under the description of its algorithm.
6403 * gcc-interface/Make-lang.in: Update dependencies.
6405 2010-06-22 Thomas Quinot <quinot@adacore.com>
6407 * exp_aggr.adb (Rewrite_Discriminant): Fix predicate used to identify
6408 reference to discriminant (can be an expanded name as well as an
6411 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6413 * exp_ch6.adb: Clarify comment.
6415 2010-06-22 Geert Bosch <bosch@adacore.com>
6417 * exp_imgv.adb (Expand_Image_Attribute): Treat ordinary fixed point
6418 with decimal small as decimal types, avoiding FP arithmetic.
6419 (Has_Decimal_Small): New function.
6420 * einfo.ads, einfo.adb (Aft_Value): New synthesized attributed for
6422 * sem_attr.adb (Eval_Attribute): Remove Aft_Value function and update
6423 callers to call the new function in Einfo that takes the entity as
6426 2010-06-22 Robert Dewar <dewar@adacore.com>
6428 * sem_ch3.adb, sem_ch8.adb: Minor reformatting.
6430 2010-06-22 Thomas Quinot <quinot@adacore.com>
6432 * sem_elab.adb: Minor reformatting.
6434 2010-06-22 Vincent Celier <celier@adacore.com>
6436 * gnatsym.adb: Put the object files in the table in increasing
6437 aphabetical order of base names.
6439 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6441 * sem_ch8.adb (Set_Entity_Or_Discriminal): New procedure used by
6442 Find_Direct_Name and Find_Expanded_Name, to replace a discriminant with
6443 the corresponding discriminal within a record declaration.
6445 2010-06-22 Thomas Quinot <quinot@adacore.com>
6447 * exp_aggr.adb (Rewrite_Discriminant): Rewriting must occur only for an
6448 expression referring to a discriminal of the type of the aggregate (not
6449 a discriminal of some other unrelated type), and the prefix in the
6450 generated selected component must come from Lhs, not Obj.
6452 2010-06-22 Thomas Quinot <quinot@adacore.com>
6454 * sem_ch3.adb (Build_Derived_Record_Type): Fix predicate determining
6455 when to freeze the parent type.
6457 2010-06-22 Robert Dewar <dewar@adacore.com>
6459 * s-rannum.adb, a-nudira.adb, types.ads, freeze.adb, sem_aggr.adb,
6460 exp_aggr.adb: Minor reformatting.
6461 * gnat_rm.texi: Document GNAT.MBBS_Discrete_Random and
6462 GNAT.MBSS_Float_Random.
6463 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: Fix header.
6465 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6467 * a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-nuflra.ads,
6468 gnat_rm.texi, impunit.adb, Makefile.rtl, s-rannum.adb
6469 (Random_Float_Template, Random): New method of creating
6470 uniform floating-point variables that allow the creation of all machine
6473 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: New file.
6475 2010-06-22 Gary Dismukes <dismukes@adacore.com>
6477 * sem_ch5.adb (Analyze_Assignment): Revise test for illegal assignment
6478 to abstract targets to check that the type is tagged and comes from
6479 source, rather than only testing for targets of interface types. Remove
6482 2010-06-22 Vincent Celier <celier@adacore.com>
6484 * vms_data.ads: Modify the declarations of qualifiers
6485 /UNCHECKED_SHARED_LIB_IMPORTS to allow the generation of gnat.hlp
6488 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6490 * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false if
6491 expansion is disabled.
6493 2010-06-22 Robert Dewar <dewar@adacore.com>
6495 * makeusg.adb: Minor reformatting.
6497 2010-06-22 Robert Dewar <dewar@adacore.com>
6499 * types.ads: (Dint): Removed, no longer used anywhere.
6500 * uintp.adb (UI_From_CC): Use UI_From_Int, range is sufficient.
6501 (UI_Mul): Avoid use of UI_From_Dint.
6502 (UI_From_Dint): Removed, not used.
6503 * uintp.ads (UI_From_Dint): Removed, not used.
6504 (Uint_Min/Max_Simple_Mul): New constants.
6506 2010-06-22 Vincent Celier <celier@adacore.com>
6508 * clean.adb (Parse_Cmd_Line): Recognize switch
6509 --unchecked-shared-lib-imports.
6510 (Usage): Add line for switch --unchecked-shared-lib-imports
6511 * makeusg.adb: Add line for switch --unchecked-shared-lib-imports
6512 * makeutl.ads: (Unchecked_Shared_Lib_Imports): New constant string
6513 moved from GPR_Util.
6514 * switch-m.adb (Scan_Make_Switches): Recognize switch
6515 --unchecked-shared-lib-imports.
6516 * vms_data.ads: Add VMS qualifiers /UNCHECKED_SHARED_LIB_IMPORTS.
6517 * gnat_ugn.texi: Add documentation for new switch
6518 --unchecked-shared-lib-imports. Add also documentation for --subdirs.
6520 2010-06-22 Javier Miranda <miranda@adacore.com>
6522 * sem_prag.adb, sem_util.adb, sem_util.ads, sem_attr.adb, exp_ch6.adb,
6523 exp_disp.adb, sem_eval.adb, exp_dist.adb lib-xref.adb: Code cleanup,
6524 this patch replaces duplication of code that traverses the chain of
6525 aliased primitives by a call to routine Ultimate_Alias that
6526 provides this functionality.
6528 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6530 * fmap.adb, opt.ads, osint.adb, osint.ads, output.ads, scng.adb,
6531 sinput-c.adb, switch-m.ads, tree_io.ads: Use simpler form of
6534 2010-06-22 Thomas Quinot <quinot@adacore.com>
6536 * einfo.ads: Minor reformatting.
6538 2010-06-22 Javier Miranda <miranda@adacore.com>
6540 * exp_disp.adb (Expand_Interface_Thunk): Do not generate thunk of
6541 eliminated primitives.
6542 (Make_DT): Avoid referencing eliminated primitives.
6543 (Register_Primitive): Do not register eliminated primitives in the
6544 dispatch table. Required to add this functionality when the program is
6545 compiled without static dispatch tables (-gnatd.t)
6547 2010-06-22 Emmanuel Briot <briot@adacore.com>
6549 * fmap.adb, scng.adb, switch-m.ads, sinput-c.adb, opt.ads, output.ads,
6550 tree_io.ads, osint.adb, osint.ads: Use configuration pragmas to prevent
6551 warnings on use of internal GNAT units.
6553 2010-06-22 Jose Ruiz <ruiz@adacore.com>
6555 * s-taprop-vxworks.adb (Set_Priority): Update comments.
6557 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6559 * s-rannum.adb: Make stylistic change to remove mystery constant in
6560 Extract_Value. Image_Numeral_Length: new symbolic constant.
6562 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6564 * einfo.ads, einfo.adb: Make Is_Protected_Interface,
6565 Is_Synchronized_Interface, Is_Task_Interface into computable
6566 predicates, to free three flags in entity nodes.
6567 * sem_ch3.adb: Remove setting of these flags.
6569 2010-06-22 Robert Dewar <dewar@adacore.com>
6571 * uintp.adb, osint.adb, prj-conf.adb, prj-part.adb, prj.adb: Minor
6573 * s-taprop-vxworks.adb: Add comment for Set_Priority.
6574 * impunit.adb (Map_Array): Add entries for s-htable.ads and s-crc32.ads
6575 * projects.texi: Move @cindex to the left margin, since otherwise we
6576 are missing entries in the index.
6578 2010-06-22 Emmanuel Briot <briot@adacore.com>
6580 * prj-part.adb, prj.adb, tempdir.ads, makeutl.adb: Use
6581 packages from the GNAT hierarchy instead of System when possible.
6582 * gcc-interface/Make-lang.in: Update dependencies.
6584 2010-06-22 Jose Ruiz <ruiz@adacore.com>
6586 * s-taprop-vxworks.adb (Set_Priority): Remove the code that was
6587 previously in place to reorder the ready queue when a task drops its
6588 priority due to the loss of inherited priority.
6590 2010-06-22 Vincent Celier <celier@adacore.com>
6592 * projects.texi: Minor spelling error fixes.
6595 2010-06-22 Emmanuel Briot <briot@adacore.com>
6597 * prj-part.adb, prj-ext.adb, prj.adb, makeutl.adb, prj-conf.adb: Remove
6598 warnings for some with clauses.
6600 2010-06-22 Robert Dewar <dewar@adacore.com>
6602 * errout.adb (Unwind_Internal_Type): Improve handling of First_Subtype
6603 test to catch more cases where first subtype is the results we want.
6604 * sem_res.adb (Make_Call_Into_Operator): Don't go to First_Subtype in
6605 error case, since Errout will now handle this correctly.
6606 * gcc-interface/Make-lang.in: Add Sem_Aux to list of GNATBIND objects.
6607 Update dependencies.
6609 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6611 * exp_ch4.adb (Expand_Allocator_Expression): Set Related_Node properly
6612 when calling Make_Temporary.
6614 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6616 * sem_ch3.adb (Access_Subprogram_Declaration): An anonymous access to
6617 subprogram can be associated with an entry body.
6619 2010-06-22 Robert Dewar <dewar@adacore.com>
6621 * scos.ads: Add note on membership test handling.
6623 2010-06-22 Vincent Celier <celier@adacore.com>
6625 * projects.texi: Minor spelling fixes.
6628 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
6630 * s-rannum.adb: Correct off-by-one error in Extract_Value.
6632 2010-06-22 Vincent Celier <celier@adacore.com>
6634 * mlib-prj.adb (Display): In non verbose mode, truncate after fourth
6636 * mlib-utl.adb (Gcc): In non verbose mode, truncate the display of the
6637 gcc command if it is too long.
6639 2010-06-22 Robert Dewar <dewar@adacore.com>
6641 * errout.adb (Set_Msg_Node): Fix incorrect reference to node.
6643 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6645 * exp_ch6.adb (Expand_Actuals): Use Actual as the related node when
6646 calling Make_Temporary.
6648 2010-06-22 Robert Dewar <dewar@adacore.com>
6650 * sem_res.adb, sem_aux.adb, errout.adb: Minor reformatting.
6652 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6654 * sem_res.adb: Additional special-case for VMS.
6656 2010-06-22 Vincent Celier <celier@adacore.com>
6658 * gnatsym.adb: Minor comment fix.
6660 2010-06-22 Vincent Celier <celier@adacore.com>
6662 * prj-nmsc.adb (Process_Naming_Scheme): Initialize Lib_Data_Table.
6664 2010-06-22 Robert Dewar <dewar@adacore.com>
6666 * par-ch4.adb (P_Name): Recognize 'Mod attribute in Ada 95 mode
6667 * sem_attr.adb (Attribute_05): Add Name_Mod so that 'Mod recognized in
6668 Ada 95 mode as an implementation defined attribute.
6670 2010-06-22 Vincent Celier <celier@adacore.com>
6672 * bindusg.adb (Display): Update line for -R
6673 * switch-b.adb (Scan_Binder_Switches): Allow generation of the binder
6674 generated files when -R is used.
6676 2010-06-22 Vincent Celier <celier@adacore.com>
6678 * prj-nmsc.adb (Lib_Data_Table): New table.
6679 (Check_Library_Attributes): Check if the same library name is used in
6680 two different projects that do not extend each other.
6682 2010-06-22 Robert Dewar <dewar@adacore.com>
6684 * lib-writ.ads, errout.adb, einfo.adb, einfo.ads: Minor reformatting.
6686 2010-06-22 Vincent Celier <celier@adacore.com>
6688 * adaint.c (__gnat_locate_regular_file): If a directory in the path is
6689 empty, make it the current working directory.
6691 2010-06-22 Thomas Quinot <quinot@adacore.com>
6693 * sem_ch3.adb (Build_Derived_Record_Type): When deriving a tagged
6694 private type with discriminants, make sure the parent type is frozen.
6696 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
6698 * exp_attr.adb (Expand_N_Attribute_Reference) <Attribute_Bit>: Deal
6699 with packed array references specially.
6700 * exp_ch4.adb (Expand_N_Indexed_Component): Do not convert a reference
6701 to a component of a bit packed array if it is the prefix of 'Bit.
6702 * exp_pakd.ads (Expand_Packed_Bit_Reference): Declare.
6703 * exp_pakd.adb (Expand_Packed_Bit_Reference): New procedure. Expand a
6704 'Bit reference, where the prefix involves a packed array reference.
6705 (Get_Base_And_Bit_Offset): New helper, extracted from...
6706 (Expand_Packed_Address_Reference): ...here. Call above procedure to
6707 get the outer object and offset expression.
6709 2010-06-22 Thomas Quinot <quinot@adacore.com>
6711 * exp_attr.adb, lib-writ.ads, bindgen.adb: Minor reformatting.
6712 * einfo.adb (Related_Expression, Set_Related_Expression): Add
6715 2010-06-22 Javier Miranda <miranda@adacore.com>
6717 * sem_ch3.adb (Add_Internal_Interface_Entities): Minor code
6718 reorganization to properly check if the operation has been inherited as
6719 an abstract operation.
6721 2010-06-22 Ed Falis <falis@adacore.com>
6723 * s-osinte-vxworks.ads: Complete previous change.
6725 2010-06-22 Thomas Quinot <quinot@adacore.com>
6727 * sem_res.adb: Add comment.
6728 * projects.texi, gnat_ugn.texi: Remove macro.
6730 2010-06-22 Vincent Celier <celier@adacore.com>
6732 * prj-attr.adb: Remove project level attribute Main_Language.
6734 2010-06-22 Robert Dewar <dewar@adacore.com>
6736 * switch-b.adb, osint-b.adb: Minor reformatting.
6738 2010-06-22 Pascal Obry <obry@adacore.com>
6740 * g-socthi-mingw.adb (C_Sendmsg): Do not attempt to send data from a
6741 vector if previous send was not fully successful. If only part of
6742 the vector data was sent, we exit the loop.
6744 2010-06-22 Thomas Quinot <quinot@adacore.com>
6746 * sem_res.adb (Make_Call_Into_Operator): Use First_Subtype for better
6747 error reporting with generic types.
6749 2010-06-22 Thomas Quinot <quinot@adacore.com>
6751 * bindgen.adb, bindusg.adb, gnatbind.adb, gnat_ugn.texi, opt.ads,
6752 osint-b.adb, osint-b.ads, output.adb, output.ads, switch-b.adb,
6753 vms_data.ads: Add a new command line switch -A to gnatbind to output
6754 the list of all ALI files for the partition.
6756 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6758 * s-osinte-vxworks.ads: Fix casing.
6759 * s-vxwext-kernel.ads, s-vxwext-rtp.ads: Complete previous
6760 change: Interfaces.C does not provide a long_long type.
6762 2010-06-22 Emmanuel Briot <briot@adacore.com>
6764 * gnat_ugn.texi, projects.texi: Preprocess projects.texi for VMS and
6765 native user's guide, since this document contains the two versions.
6766 * gcc-interface/Make-lang.in: Update doc dependencies.
6768 2010-06-22 Robert Dewar <dewar@adacore.com>
6770 * sem_ch3.adb: Minor reformatting. Minor code reorganization.
6772 2010-06-22 Emmanuel Briot <briot@adacore.com>
6774 * gnat_ugn.texi, projects.texi: Remove toplevel menu, since we should
6775 not build this file on its own (only through gnat_ugn.texi).
6776 Remove macro definitions and insert simpler version in gnat_ugn.texi.
6778 2010-06-22 Robert Dewar <dewar@adacore.com>
6780 * ali-util.ads: Minor comment update.
6781 * g-socthi-mingw.adb: Minor reformatting.
6783 2010-06-22 Ed Falis <falis@adacore.com>
6785 * s-osinte-vxworks.ads: Take sigset_t definition of System.VxWorks.Ext.
6786 * s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads: Define sigset_t
6787 for specific versions of VxWorks.
6789 2010-06-22 Emmanuel Briot <briot@adacore.com>
6791 * gnat_rm.texi, gnat_ugn.texi, projects.texi: Remove all project files
6792 related sections from user's guide and reference manual, since they
6793 have now been merged together into a separate document (projects.texi).
6794 This removes a lot of duplication where attributes where described
6796 The grammar for the project files is now in each of the sections
6797 (packages,expressions,...) instead of being duplicates in two other
6798 sections (one in the user's guide that contained the full grammar,
6799 and various sections in the rm that contained extracts of the same
6801 Added the full list of all supported attributes, since existing lists
6803 Rename "associative array" into "indexed attribute"
6804 Remove sections that were duplicates ("External References in
6805 Project Files" and "External Values", and "Project Extensions"
6806 for instance). The list of valid packages in project files is now in
6809 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6811 * sem_ch3.adb (Add_Internal_Interface_Entities): If
6812 Find_Primitive_Covering_Interface does not find the operation, it may
6813 be because of a name conflict between the inherited operation and a
6814 local non-overloadable name. In that case look for the operation among
6815 the primitive operations of the type. This search must succeed
6816 regardless of visibility.
6818 2010-06-22 Pascal Obry <obry@adacore.com>
6820 * g-socthi-mingw.adb: Properly honor MSG_WAITALL in recvmsg.
6821 (C_Recvmsg): Propely honor the MSG_WAITALL flag in Windows
6824 2010-06-22 Robert Dewar <dewar@adacore.com>
6826 * sem_ch4.adb (Analyze_Conditional_Expression): Defend against
6828 * sprint.adb (Sprint_Node_Actual, case N_Conditional_Expression):
6831 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6833 * s-intman-vxworks.ads: Code clean up.
6835 2010-06-22 Thomas Quinot <quinot@adacore.com>
6837 * sem_res.adb (Resolve_Slice): When the prefix is an explicit
6838 dereference, construct actual subtype of designated object to generate
6839 proper bounds checks.
6841 2010-06-22 Thomas Quinot <quinot@adacore.com>
6843 * ali-util.adb, ali-util.ads, gnatbind.adb (Read_ALI): Rename to
6844 Read_Withed_ALIs, which is more descriptive.
6846 2010-06-22 Pascal Obry <obry@adacore.com>
6848 * g-sothco.ads: Minor reformatting.
6849 * g-socthi-mingw.adb: Remove part of work on the C_Recvmsg and
6850 C_Sendmsg implementation.
6851 (C_Sendmsg): Do not use lock (not needed).
6852 (C_Recvmsg): Likewise and also do not wait for incoming data.
6854 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6856 * uintp.adb: Fix scope error in operator call.
6858 2010-06-22 Vincent Celier <celier@adacore.com>
6860 * makeutl.adb (Executable_Prefix_Path): on VMS, return "/gnu/".
6861 * prj-conf.adb (Get_Or_Create_Configuration_File): On VMS, if
6862 autoconfiguration is needed, fail indicating that no config project
6863 file can be found, as there is no autoconfiguration on VMS.
6865 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6867 * sem_res.adb (Make_Call_Into_Operator): Diagnose an incorrect scope
6868 for an operator in a functional notation, when operands are universal.
6870 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6872 * gcc-interface/Make-lang.in: Update dependencies.
6874 2010-06-22 Robert Dewar <dewar@adacore.com>
6876 * sem_aggr.adb (Resolve_Record_Aggregate): Do style check on component
6878 * sem_ch10.adb (Analyze_Subunit): Do style check on parent unit name.
6879 * sem_ch8.adb (Find_Direct_Name): For non-overloadable entities, do
6881 * sem_res.adb (Resolve_Entity_Name): Do style check for enumeration
6884 2010-06-22 Vincent Celier <celier@adacore.com>
6886 * make.adb (Scan_Make_Arg): No longer pass -nostdlib to the compiler as
6887 it has no effect. Always pass -nostdlib to gnatlink, even on VMS.
6889 2010-06-22 Pascal Obry <obry@adacore.com>
6891 * g-socthi-mingw.adb: Fix implementation of the vectored sockets on
6893 (C_Recvmsg): Make sure the routine is atomic. Also fully
6894 fill vectors in the proper order.
6895 (C_Sendmsg): Make sure the routine is atomic.
6897 2010-06-22 Robert Dewar <dewar@adacore.com>
6899 * sem_ch8.adb: Update comment.
6900 * sem_res.adb: Minor code reorganization (use Ekind_In).
6902 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6904 * sem_ch8.adb (Add_Implicit_Operator): If the context of the expanded
6905 name is a call, use the number of actuals to determine whether this is
6906 a binary or unary operator, rather than relying on later information
6907 to resolve the overload.
6909 2010-06-22 Robert Dewar <dewar@adacore.com>
6911 * sem_ch10.adb, sem_aggr.adb: Minor reformatting.
6913 2010-06-22 Robert Dewar <dewar@adacore.com>
6915 * sem_ch3.adb, sem_disp.adb: Minor code fixes.
6916 * sem_eval.adb: Minor reformatting.
6918 2010-06-22 Vincent Celier <celier@adacore.com>
6920 * make.adb (Scan_Make_Arg): When invoked with -nostdlib, pass -nostdlib
6921 to gnatlink, except on Open VMS.
6922 * osint.adb (Add_Default_Search_Dirs): Do not suppress the default
6923 object directories if -nostdlib is used.
6925 2010-06-22 Robert Dewar <dewar@adacore.com>
6927 * sem_util.adb (Is_Delegate): Put in proper alpha order.
6928 * sem_eval.adb: Minor reformatting.
6930 2010-06-22 Robert Dewar <dewar@adacore.com>
6932 * g-expect-vms.adb, sem_res.adb: Minor reformatting.
6933 * exp_aggr.adb: Minor comment changes and reformatting.
6934 * sem_eval.adb (Find_Universal_Operator_Type): Put in proper alpha
6936 * sem_util.ads: Add some missing pragma Inline's.
6938 2010-06-22 Thomas Quinot <quinot@adacore.com>
6940 * sem_util.adb (Build_Actual_Subtype): Record original expression in
6941 Related_Expression attribute of the constructed subtype.
6942 * einfo.adb, einfo.ads (Underlying_View): Move to Node28 to free up
6943 Node24 on types for...
6944 (Related_Expression): Make attribute available on types as well.
6946 2010-06-22 Gary Dismukes <dismukes@adacore.com>
6948 * exp_util.adb (Find_Interface_ADT): Retrieve Designated_Type instead
6949 of Directly_Designated_Type when the type argument is an access type.
6950 (Find_Interface_Tag): Retrieve Designated_Type instead of
6951 Directly_Designated_Type when the type argument is an access type.
6952 (Has_Controlled_Coextensions): Retrieve Designated_Type instead of
6953 Directly_Designated_Type of each access discriminant.
6954 * sem_res.adb (Resolve_Type_Conversion): Retrieve Designated_Type
6955 instead of Directly_Designated_Type when the operand and target types
6958 2010-06-22 Thomas Quinot <quinot@adacore.com>
6960 * exp_aggr.adb (Flatten): Return False if one choice is statically
6961 known to be out of bounds.
6963 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6965 * sem_res.adb (Resolve_Call): If the call is rewritten as an indexed of
6966 a parameterless function call, preserve parentheses of original
6967 expression, for proper handling by pretty printer.
6968 * sem_attr.adb (Analyze_Attribute, case 'Old): Add guard to Process
6969 procedure, to handle quietly identifiers that have no entity names.
6970 * exp_util.adb (Get_Current_Value_Condition): If the parent of an
6971 elsif_part is missing, it has been rewritten as a nested if, and there
6972 is no useful information on the current value of the variable.
6974 2010-06-22 Gary Dismukes <dismukes@adacore.com>
6976 * sem_ch3.adb (Build_Discriminal): Set default scopes for newly created
6977 discriminals to the current scope.
6978 * sem_util.adb (Find_Body_Discriminal): Remove setting of discriminal's
6979 scope, which could overwrite a different already set value.
6981 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6983 * sem_res.adb (Valid_Conversion): If expression is a predefined
6984 operator, use sloc of type of interpretation to improve error message
6985 when operand is of some derived type.
6986 * sem_eval.adb (Is_Mixed_Mode_Operand): New function, use it.
6988 2010-06-22 Emmanuel Briot <briot@adacore.com>
6990 * g-expect-vms.adb (Expect_Internal): No longer raises an exception, so
6991 that it can set out parameters as well. When a process has died, reset
6992 its Input_Fd to Invalid_Fd, so that when using multiple processes we
6993 can find out which process has died.
6995 2010-06-22 Thomas Quinot <quinot@adacore.com>
6997 * sem_eval.adb (Find_Universal_Operator_Type): New
6998 subprogram to identify the operand type of an operator on universal
6999 operands, when an explicit scope indication is present. Diagnose the
7000 case where such a call is ambiguous.
7001 (Eval_Arithmetic_Op, Eval_Relational_Op, Eval_Unary_Op):
7002 Use the above to identify the operand type so it can be properly
7004 * sem_res.adb (Make_Call_Into_Operator): Remove bogus freeze of operand
7005 type, done in an arbitrary, possibly incorrect type (the presence of
7006 some numeric type in the scope is checked for legality, but when more
7007 than one such type is in the scope, we just pick a random one, not
7008 necessarily the expected one).
7009 * sem_utils.ads, sem_utils.adb (Is_Universal_Numeric_Type): New utility
7012 2010-06-22 Robert Dewar <dewar@adacore.com>
7014 * sem_eval.adb: Minor reformatting.
7016 2010-06-22 Robert Dewar <dewar@adacore.com>
7018 * exp_ch4.adb (Expand_N_Conditional_Expression): Use
7019 Expression_With_Actions to clean up the code generated when folding
7020 constant expressions.
7022 2010-06-22 Vincent Celier <celier@adacore.com>
7024 * g-expect-vms.adb: Add new subprograms Free, First_Dead_Process and
7027 2010-06-22 Vincent Celier <celier@adacore.com>
7029 * prj-nmsc.adb (Find_Sources): When a source from a multi-unit file is
7030 found, check if it's path has aready been found, whatever its index.
7032 2010-06-22 Robert Dewar <dewar@adacore.com>
7034 * atree.adb, gnatbind.adb: Minor reformatting.
7035 Minor code reorganization.
7037 2010-06-21 Robert Dewar <dewar@adacore.com>
7039 * exp_ch4.adb (Expand_N_Conditional_Expression): Fold if condition
7040 known at compile time.
7042 2010-06-21 Gary Dismukes <dismukes@adacore.com>
7044 * atree.adb: Fix comment typo.
7046 2010-06-21 Ed Schonberg <schonberg@adacore.com>
7048 * sem_eval.adb (Test_Ambiguous_Operator): New procedure to check
7049 whether a universal arithmetic expression in a conversion, which is
7050 rewritten from a function call with an expanded name, is ambiguous.
7052 2010-06-21 Vincent Celier <celier@adacore.com>
7054 * prj-nmsc.adb (Name_Location): New Boolean component Listed, to record
7055 source files in specified list of sources.
7056 (Check_Package_Naming): Remove out parameters Bodies and Specs, as they
7058 (Add_Source): Set the Location of the new source
7059 (Process_Exceptions_File_Based): Call Add_Source with the Location
7060 (Get_Sources_From_File): If an exception is found, set its Listed to
7062 (Find_Sources): When Source_Files is specified, if an exception is
7063 found, set its Listed to True. Remove any exception that is not in a
7064 specified list of sources.
7065 * prj.ads (Source_Data): New component Location
7067 2010-06-21 Vincent Celier <celier@adacore.com>
7069 * gnatbind.adb (Closure_Sources): Global table, moved from block.
7071 2010-06-21 Thomas Quinot <quinot@adacore.com>
7073 * sem_res.adb: Minor reformatting.
7074 * atree.adb: New debugging hook "rr" for node rewrites.
7076 2010-06-21 Robert Dewar <dewar@adacore.com>
7078 * g-expect.ads, g-expect.adb: Minor reformatting.
7080 2010-06-21 Emmanuel Briot <briot@adacore.com>
7082 * s-regpat.adb (Next_Pointer_Bytes): New named constant. Code clean up.
7084 2010-06-21 Arnaud Charlet <charlet@adacore.com>
7086 * gcc-interface/Make-lang.in: Update dependencies.
7088 2010-06-21 Thomas Quinot <quinot@adacore.com>
7090 * bindgen.ads: Update comments.
7092 2010-06-21 Vincent Celier <celier@adacore.com>
7094 * gnatbind.adb: Suppress dupicates when listing the sources in the
7095 closure (switch -R).
7097 2010-06-21 Emmanuel Briot <briot@adacore.com>
7099 * s-regpat.adb (Link_Tail): Fix error when size of the pattern matcher
7102 2010-06-21 Emmanuel Briot <briot@adacore.com>
7104 * g-expect.adb, g-expect.ads (First_Dead_Process, Free, Has_Process):
7106 (Expect_Internal): No longer raises an exception, so that it can set
7107 out parameters as well. When a process has died, reset its Input_Fd
7108 to Invalid_Fd, so that when using multiple processes we can find out
7109 which process has died.
7111 2010-06-21 Robert Dewar <dewar@adacore.com>
7113 * s-regpat.adb, s-tpoben.adb, sem_attr.adb, sem_util.adb, sem_util.ads,
7114 checks.adb, sem_res.adb: Minor reformatting. Add comments.
7116 2010-06-21 Ed Schonberg <schonberg@adacore.com>
7118 * sem_ch6.adb (New_Overloaded_Entity): If the new entity is a
7119 rederivation associated with a full declaration in a private part, and
7120 there is a partial view that derives the same parent subprogram, the
7121 new entity does not become visible. This check must be applied to
7122 interface operations as well.
7124 2010-06-21 Thomas Quinot <quinot@adacore.com>
7126 * checks.adb: Add comments.
7127 * prj-nmsc.adb: Minor reformatting.
7129 2010-06-21 Thomas Quinot <quinot@adacore.com>
7131 * sem_ch9.adb, checks.adb, sem_util.adb, sem_util.ads, sem_res.adb,
7132 sem_attr.adb (Get_E_First_Or_Last): Use attribute references on E to
7133 extract bounds, to ensure that we get the proper captured values,
7134 rather than an expression that may have changed value since the point
7135 where the subtype was elaborated.
7136 (Find_Body_Discriminal): New utility subprogram to share code
7138 (Eval_Attribute): For the case of a subtype bound that references a
7139 discriminant of the current concurrent type, insert appropriate
7140 discriminal reference.
7141 (Resolve_Entry.Actual_Index_Type.Actual_Discriminant_Ref): For a
7142 requeue to an entry in a family in the current task, use corresponding
7144 (Analyze_Accept_Statement): Rely on expansion of attribute references
7145 to insert proper discriminal references in range check for entry in
7148 2010-06-21 Emmanuel Briot <briot@adacore.com>
7150 * s-regpat.adb (Compile): Fix handling of big patterns.
7152 2010-06-21 Robert Dewar <dewar@adacore.com>
7154 * a-tifiio.adb: Minor reformatting.
7156 2010-06-21 Pascal Obry <obry@adacore.com>
7158 * prj-nmsc.adb (Search_Directories): Use the non-translated directory
7161 2010-06-21 Javier Miranda <miranda@adacore.com>
7163 * exp_cg.adb (Write_Call_Info): Fill the component sourcename using the
7166 2010-06-21 Ed Schonberg <schonberg@adacore.com>
7168 * exp_ch4.adb (Expand_Concatenate): If an object declaration is created
7169 to hold the result, indicate that the target of the declaration does
7170 not need an initialization, to prevent spurious errors when
7171 Initialize_Scalars is enabled.
7173 2010-06-21 Ed Schonberg <schonberg@adacore.com>
7175 * a-tifiio.adb (Put): In the procedure that performs I/O on a String,
7176 Fore is not bound by line length. The Fore parameter of the internal
7177 procedure that performs the operation is an integer.
7179 2010-06-21 Thomas Quinot <quinot@adacore.com>
7181 * sem_res.adb, checks.adb: Minor reformatting.
7183 2010-06-21 Emmanuel Briot <briot@adacore.com>
7185 * s-regpat.adb (Next_Instruction, Get_Next_Offset): Removed, merged
7187 (Insert_Operator_Before): New subprogram, avoids duplicated code
7188 (Compile): Avoid doing two compilations when the pattern matcher ends
7191 2010-06-21 Emmanuel Briot <briot@adacore.com>
7193 * s-regpat.adb: Improve debug traces
7194 (Dump): Change output format to keep it smaller.
7196 2010-06-21 Javier Miranda <miranda@adacore.com>
7198 * exp_cg.adb (Generate_CG_Output): Disable redirection of standard
7199 output to the output file when this routine completes its work.
7201 2010-06-20 Eric Botcazou <ebotcazou@adacore.com>
7203 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Use while instead of
7204 for loop. Call build_constructor_from_list directly in the CICO case.
7206 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7208 * freeze.adb (Build_And_Analyze_Renamed_Body): If the renaming
7209 declaration appears in the same unit and ealier than the renamed
7210 entity, retain generated body to prevent order-of-elaboration issues in
7213 2010-06-18 Arnaud Charlet <charlet@adacore.com>
7215 * s-tpoben.adb: Update comments.
7217 2010-06-18 Robert Dewar <dewar@adacore.com>
7219 * debug.adb: Minor comment change.
7221 2010-06-18 Javier Miranda <miranda@adacore.com>
7223 * exp_cg.adb: Code clean up.
7224 * debug.adb: Complete documentation of switch -gnatd.Z.
7225 * gcc-interface/misc.c (callgraph_info_file): Declare.
7227 2010-06-18 Javier Miranda <miranda@adacore.com>
7229 * exp_cg.adb (Homonym_Suffix_Length): Minor code reorganization.
7231 2010-06-18 Thomas Quinot <quinot@adacore.com>
7233 * sprint.ads: Minor reformatting.
7234 * output.ads: Update obsolete comment.
7236 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7238 * freeze.adb (Build_And_Analyze_Renamed_Body): if the renamed entity is
7239 an external intrinsic operation (e.g. a GCC numeric function) indicate
7240 that the renaming entity has the same characteristics, so a call to it
7241 is properly expanded.
7243 2010-06-18 Javier Miranda <miranda@adacore.com>
7245 * exp_cg.adb, exp_cg.ads, exp_disp.adb, gnat1drv.adb: Add initial
7246 support for dispatch table/callgraph info generation.
7247 * gcc-interface/Make-lang.in: Update dependencies.
7249 2010-06-18 Robert Dewar <dewar@adacore.com>
7251 * exp_ch6.adb: Minor reformatting.
7252 * gnatname.adb: Add comment.
7254 2010-06-18 Vincent Celier <celier@adacore.com>
7256 * gnatname.adb (Scan_Args): When --and is used, make sure that the
7257 dynamic tables in the newly allocated Argument_Data are properly
7260 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
7262 * gnat1drv.adb: Fix comment.
7264 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7266 * exp_ch6.adb (Expand_Inlined_Call): If the inlined subprogram is a
7267 renaming, re-expand the call with the renamed subprogram if that one
7268 is marked inlined as well.
7270 2010-06-18 Gary Dismukes <dismukes@adacore.com>
7272 * gnat1drv.adb (Adjust_Global_Switches): Enable
7273 Use_Expression_With_Actions for AAMP and VM targets.
7275 2010-06-18 Vincent Celier <celier@adacore.com>
7277 * prj-nmsc.adb (Process_Linker): Recognize response file format GCC.
7279 2010-06-18 Thomas Quinot <quinot@adacore.com>
7281 * exp_ch4.adb: Minor reformatting.
7283 2010-06-18 Javier Miranda <miranda@adacore.com>
7285 * debug.ads Add documentation on -gnatd.Z.
7287 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7289 * sem_elim.adb: Proper error message on improperly eliminated instances
7291 2010-06-18 Vincent Celier <celier@adacore.com>
7293 * prj.ads (Response_File_Format): New value GCC.
7295 2010-06-18 Thomas Quinot <quinot@adacore.com>
7297 * gnat1drv.adb: Minor reformatting.
7299 2010-06-18 Robert Dewar <dewar@adacore.com>
7301 * make.adb, sem_cat.adb: Minor reformatting.
7302 * sem_eval.adb: Fix typos.
7304 2010-06-18 Pascal Obry <obry@adacore.com>
7306 * prj-nmsc.adb: Fix source filenames casing in debug output.
7308 2010-06-18 Robert Dewar <dewar@adacore.com>
7310 * gnatcmd.adb: Minor reformatting.
7312 2010-06-18 Robert Dewar <dewar@adacore.com>
7314 * sem_eval.adb (Eval_Conditional_Expression): Result is static if
7315 condition and both sub-expressions are static (and result is selected
7318 2010-06-18 Robert Dewar <dewar@adacore.com>
7320 * g-pehage.adb: Minor reformatting
7322 2010-06-18 Pascal Obry <obry@adacore.com>
7324 * prj-nmsc.adb (Search_Directories): Insert canonical filenames into
7327 2010-06-18 Arnaud Charlet <charlet@adacore.com>
7329 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
7330 dependencies. Fix target pairs on darwin.
7331 (gnatlib-sjlj, gnatlib-zcx): Pass THREAD_KIND.
7333 2010-06-18 Pascal Obry <obry@adacore.com>
7335 * make.adb, prj-nmsc.adb: Fix source filenames casing in debug output.
7337 2010-06-18 Vincent Celier <celier@adacore.com>
7339 * gnatcmd.adb: For gnatcheck, add -gnatec= switch for a global
7340 configuration pragmas file and, if -U is not used, for a local one.
7342 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7344 * sem_elim.adb (Check_Eliminated): Use full information on entity name
7345 when it is given in the pragma by a selected component.
7346 (Check_For_Eliminated_Subprogram): Do no emit error if within a
7347 instance body that is itself within a generic unit.
7348 * sem_ch12.adb (Analyze_Subprogram_Instance): If the subprogram is
7349 eliminated, mark as well the anonymous subprogram that is its alias
7350 and appears within the wrapper package.
7352 2010-06-18 Bob Duff <duff@adacore.com>
7354 * g-pehage.ads, g-pehage.adb (Produce): Clean up some of the code.
7355 Raise an exception if the output file cannot be opened. Add comments.
7357 2010-06-18 Thomas Quinot <quinot@adacore.com>
7359 * sem_cat.adb (Validate_Object_Declaration): A variable declaration is
7360 not illegal per E.2.2(7) if it occurs in the private part of a
7363 2010-06-18 Arnaud Charlet <charlet@adacore.com>
7365 * par-ch9.adb, sem_aggr.adb, sem_ch3.adb, layout.adb, sem_ch4.adb,
7366 sem_ch5.adb, sem_mech.adb, exp_util.adb, par-ch10.adb, sem_ch6.adb,
7367 par-ch11.adb, sem_ch7.adb, par-prag.adb, exp_disp.adb, par-ch12.adb,
7368 sem_ch8.adb, style.adb, sem_ch9.adb, sem_ch10.adb, prep.adb,
7369 sem_warn.adb, par-util.adb, scng.adb, sem_eval.adb, checks.adb,
7370 sem_prag.adb, sem_ch12.adb, styleg.adb, sem_ch13.adb, par-ch3.adb,
7371 par-tchk.adb, freeze.adb, sfn_scan.adb, par-ch4.adb, sem_util.adb,
7372 sem_res.adb, par-ch5.adb, lib-xref.adb, sem_attr.adb, par-ch6.adb,
7373 sem_disp.adb, prepcomp.adb, par-ch7.adb, sem_elab.adb, exp_ch4.adb,
7374 errout.ads: Update comments. Minor reformatting.
7376 * g-spipat.adb, a-swunau.adb, a-swunau.ads, g-spitbo.adb,
7377 a-szunau.adb, a-szunau.ads, a-stunau.adb, a-stunau.ads,
7378 a-strunb.adb (Big_String. Big_String_Access): New type.
7380 * par-labl.adb, restrict.adb, s-osinte-hpux-dce.ads, sem_ch11.adb,
7381 exp_pakd.adb, s-filofl.ads, par-endh.adb, exp_intr.adb, sem_cat.adb,
7382 sem_case.adb, exp_ch11.adb, s-osinte-linux.ads: Fix copyright notices.
7384 2010-06-18 Geert Bosch <bosch@adacore.com>
7386 * i-forbla-darwin.adb: Include -lgnala and -lm in linker options for
7389 2010-06-18 Robert Dewar <dewar@adacore.com>
7391 * gnat1drv.adb (Adjust_Global_Switches): Set Use_Expression_With_Actions
7394 2010-06-18 Robert Dewar <dewar@adacore.com>
7396 * sprint.adb: Minor format change for N_Expression_With_Actions.
7397 * repinfo.adb: Minor reformatting.
7399 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7401 * sem_elim.adb (Check_Eliminated): If within a subunit, use
7402 Defining_Entity to obtain the name of the entity in the proper body, to
7403 properly handle both separate packages and subprograms.
7405 2010-06-18 Emmanuel Briot <briot@adacore.com>
7407 * prj-nmsc.adb (Check_File): New parameter Display_Path.
7409 2010-06-18 Thomas Quinot <quinot@adacore.com>
7411 * g-socket.adb, g-socket.ads (Null_Selector): New object.
7413 2010-06-18 Pascal Obry <obry@adacore.com>
7415 * gnat_ugn.texi: Minor clarification.
7417 2010-06-18 Emmanuel Briot <briot@adacore.com>
7419 * prj-nmsc.adb (Find_Source_Dirs): Minor refactoring to avoid duplicate
7420 code when using the project dir as the source dir.
7421 (Search_Directories): use the normalized name for the source directory,
7422 where symbolic names have potentially been resolved.
7424 2010-06-18 Robert Dewar <dewar@adacore.com>
7426 * exp_ch4.adb (Expand_N_Conditional_Expression): Clear Actions field
7427 when we create N_Expression_With_Actions node.
7428 (Expand_Short_Circuit): Ditto.
7430 2010-06-18 Robert Dewar <dewar@adacore.com>
7432 * exp_util.adb: Minor reformatting.
7434 2010-06-18 Thomas Quinot <quinot@adacore.com>
7436 * types.ads: Clean up obsolete comments
7437 * tbuild.adb: Minor reformatting.
7438 * exp_ch5.adb, sem_intr.adb, sem_ch10.adb, rtsfind.adb, s-shasto.adb,
7439 exp_strm.adb, aa_drive.adb: Minor reformatting.
7440 * sem_res.adb (Is_Predefined_Operator): An operator that is an imported
7441 intrinsic with an Interface_Name denotes an imported back-end builtin,
7442 and must be rewritten into a call, not left in the tree as an operator,
7443 so return False in that case.
7445 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
7447 * exp_util.adb (Remove_Side_Effects): Make a copy for an allocator.
7449 2010-06-18 Robert Dewar <dewar@adacore.com>
7451 * scos.ads: Add proposed output for case expression
7453 2010-06-18 Jose Ruiz <ruiz@adacore.com>
7455 * gnat_ugn.texi: Document that, when using the RTX compiler to generate
7456 RTSS modules, we need to use the Microsoft linker.
7458 2010-06-18 Robert Dewar <dewar@adacore.com>
7460 * checks.adb (Safe_To_Capture_In_Parameter_Value): Deal with case
7461 expression (cannot count on a particular branch being executed).
7462 * exp_ch4.adb (Expand_N_Case_Expression): New procedure.
7463 * exp_ch4.ads (Expand_N_Case_Expression): New procedure.
7464 * exp_util.adb (Insert_Actions): Deal with proper insertion of actions
7465 within case expression.
7466 * expander.adb (Expand): Add call to Expand_N_Case_Expression
7467 * par-ch4.adb Add calls to P_Case_Expression at appropriate points
7468 (P_Case_Expression): New procedure
7469 (P_Case_Expression_Alternative): New procedure
7470 * par.adb (P_Case_Expression): New procedure
7471 * par_sco.adb (Process_Decisions): Add dummy place holder entry for
7473 * sem.adb (Analyze): Add call to Analyze_Case_Expression
7474 * sem_case.ads (Analyze_Choices): Also used for case expressions now,
7475 this is a documentation change only.
7476 * sem_ch4.ads, sem_ch4.adb (Analyze_Case_Expression): New procedure.
7477 * sem_ch6.adb (Fully_Conformant_Expressions): Add handling of case
7479 * sem_eval.ads, sem_eval.adb (Eval_Case_Expression): New procedure.
7480 * sem_res.adb (Resolve_Case_Expression): New procedure.
7481 * sem_scil.adb (Find_SCIL_Node): Add processing for
7482 N_Case_Expression_Alternative.
7483 * sinfo.ads, sinfo.adb (N_Case_Expression): New node.
7484 (N_Case_Expression_Alternative): New node.
7485 * sprint.adb (Sprint_Node_Actual): Add processing for new nodes
7486 N_Case_Expression and N_Case_Expression_Alternative.
7488 2010-06-18 Robert Dewar <dewar@adacore.com>
7490 * par-ch7.adb, sem_warn.adb, types.ads, par-ch3.adb: Minor
7492 * gnat1drv.adb: Fix typo.
7494 2010-06-18 Robert Dewar <dewar@adacore.com>
7496 * par-prag.adb (Prag, case Style_Checks): All_Checks sets gnat style
7498 * sem_prag.adb (Analyze_Pragma, case Style_Checks): All_Checks sets
7499 gnat style for -gnatg.
7500 * gnat_rm.texi: Add documentation for ALL_CHECKS in GNAT mode.
7502 2010-06-18 Thomas Quinot <quinot@adacore.com>
7504 * sem_eval.adb (Test_In_Range): New subprogram, factoring duplicated
7506 (Is_In_Range, Is_Out_Of_Range): Reimplement in terms of call to
7509 2010-06-18 Robert Dewar <dewar@adacore.com>
7511 * sprint.adb: Minor change in output format for expression wi actions.
7512 * par-ch3.adb: Minor code reorganization. Minor reformatting.
7513 * sem_ch5.adb: Minor comment fix.
7515 2010-06-18 Robert Dewar <dewar@adacore.com>
7517 * debug.adb: New debug flag -gnatd.L to control
7518 Back_End_Handles_Limited_Types.
7519 * exp_ch4.adb (Expand_N_Conditional_Expression): Let back end handle
7520 limited case if Back_End_Handles_Limited_Types is True.
7521 (Expand_N_Conditional_Expression): Use N_Expression_With_Actions to
7522 simplify expansion if Use_Expression_With_Actions is True.
7523 * gnat1drv.adb (Adjust_Global_Switches): Set
7524 Back_End_Handles_Limited_Types.
7525 * opt.ads (Back_End_Handles_Limited_Types): New flag.
7527 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7529 * sem_res.adb (Rewrite_Operator_As_Call): Do not rewrite user-defined
7530 intrinsic operator if expansion is not enabled, because in an
7531 instantiation the original operator must be present to verify the
7532 legality of the operation.
7534 2010-06-18 Robert Dewar <dewar@adacore.com>
7536 * exp_disp.adb, sem_ch12.adb: Minor reformatting
7538 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7540 * exp_util.adb (Make_Subtype_From_Expr): If the unconstrained type is
7541 the class-wide type for a private extension, and the completion is a
7542 subtype, set the type of the class-wide type to the base type of the
7545 2010-06-18 Robert Dewar <dewar@adacore.com>
7547 * g-socket.ads, sem_aggr.adb, einfo.ads, sem_elim.adb,
7548 sem_intr.adb, sem_eval.adb: Minor reformatting
7550 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7552 * sem_type.adb (Is_Ancestor): If either type is private, examine full
7555 2010-06-18 Thomas Quinot <quinot@adacore.com>
7557 * g-socket.adb, g-socket.ads (Check_Selector): Make Selector an IN
7558 parameter rather than IN OUT.
7560 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7562 * exp_ch6.adb: Add extra guard.
7564 2010-06-18 Gary Dismukes <dismukes@adacore.com>
7566 * sem_util.adb (Object_Access_Level): For Ada 2005, determine the
7567 accessibility level of a function call from the level of the innermost
7568 enclosing dynamic scope.
7569 (Innermost_Master_Scope_Depth): New function to find the depth of the
7570 nearest dynamic scope enclosing a node.
7572 2010-06-18 Tristan Gingold <gingold@adacore.com>
7574 * adaint.c: Make ATTR_UNSET static as it is not used outside this file.
7576 2010-06-18 Thomas Quinot <quinot@adacore.com>
7578 * g-socket.ads: Minor reformatting.
7580 2010-06-18 Vincent Celier <celier@adacore.com>
7582 * make.adb (Must_Compile): New Boolean global variable
7583 (Main_On_Command_Line): New Boolean global variable
7584 (Collect_Arguments_And_Compile): Do compile if Must_Compile is True,
7585 even when the project is externally built.
7586 (Start_Compile_If_Possible): Compile in -aL directories if
7587 Check_Readonly_Files is True. Do compile if Must_Compile is True, even
7588 when the project is externally built.
7589 (Gnatmake): Set Must_Compile and Check_Readonly_Files to True when
7590 invoked with -f -u and one or several mains on the command line.
7591 (Scan_Make_Arg): Set Main_On_Command_Line to True when at least one
7592 main is specified on the command line.
7594 2010-06-18 Ed Schonberg <schonberg@adacore.com>
7596 * sem_ch6.adb (Build_Body_For_Inline): Handle
7597 extended_return_statements.
7598 * exp_ch6.adb (Expand_Inlined_Call): when possible, inline a body
7599 containing extented_return statements.
7600 * exp_util.adb (Make_CW_Equivalent_Type): If the root type is already
7601 constrained, do not build subtype declaration.
7603 2010-06-18 Robert Dewar <dewar@adacore.com>
7605 * sem_res.adb (Analyze_Indexed_Component, Analyze_Selected_Component):
7606 Warn on assigning to packed atomic component.
7608 2010-06-18 Robert Dewar <dewar@adacore.com>
7610 * sem_util.ads: Minor reformatting
7611 * einfo.ads, einfo.adb: Minor doc clarification (scope of decls in
7612 Expression_With_Actions).
7613 * snames.ads-tmpl: Minor comment fix
7615 2010-06-18 Robert Dewar <dewar@adacore.com>
7617 * sem_prag.adb (Diagnose_Multiple_Pragmas): New procedure
7618 (Set_Imported): Use Import_Interface_Present to control message output
7619 * sinfo.ads, sinfo.adb (Import_Interface_Present): New flag
7620 * gnat_rm.texi: Document that we can have pragma Import and pragma
7621 Interface for the same subprogram.
7623 2010-06-18 Robert Dewar <dewar@adacore.com>
7625 * lib-xref.adb (Generate_Reference): Fix bad reference to
7626 Has_Pragma_Unreferenced (clients should always use Has_Unreferenced).
7628 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7630 * gcc-interface/trans.c (set_gnu_expr_location_from_node): New static
7632 (gnat_to_gnu) <N_Expression_With_Actions>: New case.
7633 Use set_gnu_expr_location_from_node to set location information on the
7636 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7638 * gcc-interface/Make-lang.in: Update dependencies.
7640 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7642 * sem_util.adb (Is_Atomic_Object): Predicate does not apply to
7645 2010-06-17 Robert Dewar <dewar@adacore.com>
7647 * gnat_rm.texi, gnat_ugn.texi: Clean up documentation on warning and
7648 style check messages.
7649 * sem_res.adb (Resolve_Call): Don't call
7650 Check_For_Eliminated_Subprogram if we are analyzing within a spec
7653 2010-06-17 Robert Dewar <dewar@adacore.com>
7655 * debug.adb: Add documentation for debug flags .X and .Y
7656 * exp_ch4.adb (Expand_Short_Circuit_Operator): Use
7657 Use_Expression_With_Actions.
7658 * gnat1drv.adb (Adjust_Global_Switches): Set
7659 Use_Expression_With_Actions.
7660 * opt.ads (Use_Expression_With_Actions): New switch.
7662 2010-06-17 Robert Dewar <dewar@adacore.com>
7664 * exp_intr.adb: Minor code reorganization (use UI_Max)
7665 * sem_intr.adb: use underlying type to check legality.
7666 * einfo.adb (Known_Static_Esize): False for generic types
7667 (Known_Static_RM_Size): False for generic types
7668 * einfo.ads (Known_Static_Esize): False for generic types
7669 (Known_Static_RM_Size): False for generic types
7671 2010-06-17 Robert Dewar <dewar@adacore.com>
7673 * exp_ch4.ads: Minor code reorganization (specs in alpha order).
7675 2010-06-17 Robert Dewar <dewar@adacore.com>
7677 * debug.adb: New debug flag -gnatd.X to use Expression_With_Actions
7678 node when expanding short circuit form with actions present for right
7680 * exp_ch4.adb: Minor reformatting
7681 (Expand_Short_Circuit_Operator): Use new Expression_With_Actions node
7682 if right opeand has actions present, and debug flag -gnatd.X is set.
7683 * exp_util.adb (Insert_Actions): Handle case of Expression_With_Actions
7685 * nlists.adb (Prepend_List): New procedure
7686 (Prepend_List_To): New procedure
7687 * nlists.ads (Prepend_List): New procedure
7688 (Prepend_List_To): New procedure
7689 * sem.adb: Add processing for Expression_With_Actions
7690 * sem_ch4.adb (Analyze_Expression_With_Actions): New procedure
7691 * sem_ch4.ads (Analyze_Expression_With_Actions): New procedure
7692 * sem_res.adb: Add processing for Expression_With_Actions.
7693 * sem_scil.adb: Add processing for Expression_With_Actions
7694 * sinfo.ads, sinfo.adb (N_Expression_With_Actions): New node.
7695 * sprint.ads, sprint.adb: Add processing for Expression_With_Actions
7697 2010-06-17 Doug Rupp <rupp@adacore.com>
7699 * sem_intr.adb (Check_Intrinsic_Operator): Check that the types
7700 involved both have underlying integer types.
7701 * exp_intr.adb (Expand_Binary_Operator) New subprogram to expand a call
7702 to an intrinsic operator when the operand types or sizes are not
7704 * s-auxdec-vms_64.ads: Revert "+" "-" ops back to Address now that
7705 64/32 Address/Integer works.
7707 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7709 * sem_ch12.adb (Mark_Context): Refine placement of Withed_Body flag, so
7710 that it marks a unit as needed by a spec only if the corresponding
7711 instantiation appears in that spec (and not in the corresponding body).
7712 * sem_elim.adb (Check_Eliminated): If we are within a subunit, the name
7713 in the pragma Eliminate has been parsed as a child unit, but the
7714 current compilation unit is in fact the parent in which the subunit is
7717 2010-06-17 Vincent Celier <celier@adacore.com>
7719 * gnat_rm.texi: Fix typo
7721 2010-06-17 Robert Dewar <dewar@adacore.com>
7723 * sem_util.adb: Minor reformatting
7725 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7727 * sem.adb (Do_Withed_Unit): if the unit in the with_clause is a generic
7728 instance, the clause now denotes the instance body. Traverse the
7729 corresponding spec because there may be no other dependence that will
7730 force the traversal of its own context.
7732 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7734 * sem_ch10.adb (Is_Ancestor_Unit): Subsidiary to
7735 Install_Limited_Context_Clauses, to determine whether a limited_with in
7736 some parent of the current unit designates some other parent, in which
7737 case the limited_with clause must not be installed.
7738 (In_Context): Refine test.
7740 2010-06-17 Gary Dismukes <dismukes@adacore.com>
7742 * sem_util.adb (Collect_Primitive_Operations): In the of an untagged
7743 type with a dispatching equality operator that is overridden (for a
7744 tagged full type), don't include the overridden equality in the list of
7745 primitives. The overridden equality is detected by testing for an
7746 Aliased field that references the overriding equality.
7748 2010-06-17 Robert Dewar <dewar@adacore.com>
7750 * freeze.adb: Minor reformatting.
7752 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
7754 * gnat_ugn.texi: Add a section introducing gdbserver.
7756 2010-06-17 Thomas Quinot <quinot@adacore.com>
7758 * sem_res.adb, sem_ch4.adb, s-stoele.adb, par-labl.adb: Minor
7761 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7763 * sem_aggr.adb (Valid_Ancestor_Type): handle properly the case of a
7764 constrained discriminated parent that is a private type.
7765 (Analyze_Record_Aggregate): when collecting inherited discriminants,
7766 handle properly an ancestor type that is a constrained private type.
7768 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7770 * sem_util.adb (Enclosing_Subprogram): If the called subprogram is
7771 protected, use the protected_subprogram_body only if the original
7772 subprogram has not been eliminated.
7774 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7776 * freeze.adb (Freeze_Expression): The designated type of an
7777 access_to_suprogram type can only be frozen if all types in its profile
7780 2010-06-17 Robert Dewar <dewar@adacore.com>
7782 * par.adb: Minor comment fix
7783 * sem_aggr.adb, sem_ch3.adb: Minor reformatting
7785 2010-06-17 Doug Rupp <rupp@adacore.com>
7787 * s-auxdec-vms_64.ads: Revert Integer to Long_Integer change, instead
7788 change Address to Short_Address in functions where both must be the
7789 same size for intrinsics to work.
7791 2010-06-17 Thomas Quinot <quinot@adacore.com>
7793 * sem_ch4.adb (Analyze_Selected_Component): A selected component may
7794 not denote a (private) component of a protected object.
7796 2010-06-17 Bob Duff <duff@adacore.com>
7798 * par-labl.adb (Try_Loop): Test whether the label and the goto are in
7801 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
7803 * gnat_ugn.texi: Update the documentation about GDB re: exception
7806 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7808 * gnatvsn.ads: Bump to 4.6 version.
7810 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7812 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): The
7813 designated type of the generated pointer is the type of the original
7814 expression, not that of the function call itself, because the return
7815 type may be an untagged derived type and the function may be an
7816 inherited operation.
7818 2010-06-17 Robert Dewar <dewar@adacore.com>
7820 * exp_ch4.adb: Minor reformatting.
7822 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7824 * sinfo.ads, sinfo.adb (Inherited_Discriminant): New flag on
7825 N_Component_Association nodes, to indicate that a component association
7826 of an extension aggregate denotes the value of a discriminant of an
7827 ancestor type that has been constrained by the derivation.
7828 * sem_aggr.adb (Discr_Present): use Inherited_Discriminant to prevent a
7829 double expansion of the aggregate appearing in a context that delays
7830 expansion, to prevent double insertion of discriminant values when the
7831 aggregate is reanalyzed.
7833 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7835 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Do not use
7836 Allocator as the Related_Node of Return_Obj_Access in call to
7837 Make_Temporary below as this would create a sort of infinite
7840 2010-06-17 Ben Brosgol <brosgol@adacore.com>
7842 * gnat_ugn.texi: Update gnatcheck doc.
7844 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7846 * sem_ch3.adb (Build_Incomplete_Type_Declaration): If there is an
7847 incomplete view of the type that is not tagged, and the full type is a
7848 tagged extension, create class_wide type now, and warn that the
7849 incomplete view should be tagged as well.
7851 2010-06-17 Vincent Celier <celier@adacore.com>
7853 * gnatcmd.adb (Non_VMS_Usage): Do not issue usage for gnat sync.
7854 Update the last line of the usage, indicating what commands do not
7855 accept project file switches.
7856 * vms_conv.adb: Do not issue usage line for GNAT SYNC
7857 * vms_data.ads: Fix errors in the qualifiers /LOGFILE and /MAIN of
7859 * gnat_ugn.texi: Document the relaxed rules for library directories in
7860 externally built library projects.
7862 2010-06-17 Doug Rupp <rupp@adacore.com>
7864 * s-auxdec-vms_64.ads: Make boolean and arithmetic operations intrinsic
7866 * s-auxdec-vms-alpha.adb: Remove kludges for aforemention.
7867 * gcc-interface/Makefile.in: Update VMS target pairs.
7869 2010-06-17 Vasiliy Fofanov <fofanov@adacore.com>
7871 * adaint.c: Reorganized in order to avoid use of GetProcessId to stay
7872 compatible with Windows NT 4.0 which doesn't provide this function.
7874 2010-06-17 Vincent Celier <celier@adacore.com>
7876 * ali-util.adb (Time_Stamp_Mismatch): In Verbose mode, if there is
7877 different timestamps but the checksum is the same, issue a short
7880 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7882 * s-interr.adb (Finalize): If the Abort_Task signal is set to system,
7883 it means that we cannot reset interrupt handlers since this would
7884 require potentially sending the abort signal to the Server_Task.
7886 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7888 * exp_ch4.adb: expand NOT for VMS types.
7889 * sem_util.adb: Use OpenVMS_On_Target for IS_VMS_Operator.
7891 2010-06-17 Sergey Rybin <rybin@adacore.com>
7893 * vms_data.ads: Add qualifier for '--no-elim-dispatch' gnatelim option.
7894 * gnat_ugn.texi (gnatelim): add description for --no-elim-dispatch
7897 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7899 * exp_ch6.adb (Expand_Call): Do not expand a call to an internal
7900 protected operation if the subprogram has been eliminated.
7902 2010-06-17 Vincent Celier <celier@adacore.com>
7904 * prj-nmsc.adb (Check_Library_Attributes): Allow the different
7905 directories associated with a library to be any directory when the
7906 library project is externally built.
7908 2010-06-17 Vincent Celier <celier@adacore.com>
7910 * make.adb (Check): If switch -m is used, deallocate the memory that
7911 may be allocated when computing the checksum.
7913 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7915 * g-socthi-mingw.adb (C_Recvmsg): Add 'use type' clause for C.size_t;
7916 (C_Sendmsg): Likewise.
7918 2010-06-17 Thomas Quinot <quinot@adacore.com>
7920 * sem_res.adb: Update comments.
7922 2010-06-17 Vincent Celier <celier@adacore.com>
7924 * back_end.adb (Scan_Compiler_Arguments): Process last argument
7926 2010-06-17 Robert Dewar <dewar@adacore.com>
7928 * exp_ch3.adb, exp_ch6.adb, exp_smem.adb, exp_util.adb: Use Ekind_In.
7929 * layout.adb, freeze.adb: Use Make_Temporary.
7931 2010-06-17 Jerome Lambourg <lambourg@adacore.com>
7933 * exp_ch11.adb (Expand_N_Raise_Statement): Expand raise statements in
7934 .NET/JVM normally as this is now perfectly supported by the backend.
7936 2010-06-17 Pascal Obry <obry@adacore.com>
7938 * gnat_rm.texi: Fix minor typo, remove duplicate blank lines.
7940 2010-06-17 Vincent Celier <celier@adacore.com>
7942 * make.adb (Collect_Arguments_And_Compile): Create include path file
7943 only when -x is specified.
7945 * opt.ads (Use_Include_Path_File): New Boolean flag, initialized to
7947 * prj-env.adb (Set_Ada_Paths): New Boolean parameters Include_Path and
7948 Objects_Path, defaulted to True. Only create include path file if
7949 Include_Path is True, only create objects path file if Objects_Path is
7951 * prj-env.ads (Set_Ada_Paths): New Boolean parameters Include_Path and
7952 Objects_Path, defaulted to True.
7953 * switch-m.adb (Scan_Make_Switches): Set Use_Include_Path_File to True
7956 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7958 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
7959 determine whether it has the controlling type, when the formal is an
7962 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7964 * s-crtl.ads (ssize_t): New type.
7965 (read): Fix signature.
7967 * g-socthi.ads: Add 'with System.CRTL' clause. Remove ssize_t and
7968 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7969 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7970 (C_Sendmsg): Likewise.
7971 * g-socthi.adb (Syscall_Recvmsg): Likewise.
7972 (Syscall_Sendmsg): Likewise.
7973 (C_Recvmsg): Likewise.
7974 (C_Sendmsg): Likewise.
7975 * g-socthi-mingw.ads: Add 'with System.CRTL' clause. Remove ssize_t
7976 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7977 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7978 (C_Sendmsg): Likewise.
7979 * g-socthi-mingw.adb (C_Recvmsg): Likewise.
7980 (C_Sendmsg): Likewise.
7981 * g-socthi-vms.ads: Add 'with System.CRTL' clause. Remove ssize_t and
7982 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7983 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7984 (C_Sendmsg): Likewise.
7985 * g-socthi-vms.adb (C_Recvmsg): Likewise.
7986 (C_Sendmsg): Likewise.
7987 * g-socthi-vxworks.ads Add 'with System.CRTL' clause. Remove ssize_t
7988 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7989 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7990 (C_Sendmsg): Likewise.
7991 * g-socthi-vxworks.adb (C_Recvmsg): Likewise.
7992 (C_Sendmsg): Likewise.
7993 * g-sercom-linux.adb (Read): Use correct types to call 'read'.
7994 (Write): Likewise to call 'write'.
7995 * s-os_lib.adb (Read): Use correct type to call System.CRTL.read.
7996 (Write): Use correct type to call System.CRTL.write.
7997 * s-tasdeb.adb (Write): Likewise.
7999 2010-06-17 Vincent Celier <celier@adacore.com>
8001 * prj-proc.adb (Copy_Package_Declarations): Change argument name
8002 Naming_Restricted to Restricted. If Restricted is True, do not copy the
8003 value of attribute Linker_Options.
8005 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
8007 * gcc-interface/trans.c (push_stack, pop_stack): Delete.
8008 (Case_Statement_to_gnu): Adjust.
8009 (Loop_Statement_to_gnu): Likewise.
8010 (Subprogram_Body_to_gnu): Likewise.
8011 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
8012 (Compilation_Unit_to_gnu): Likewise.
8014 2010-06-17 Robert Dewar <dewar@adacore.com>
8016 * exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb, exp_prag.adb,
8017 exp_sel.adb, exp_util.adb, sem_ch10.adb, sem_ch12.adb, sem_ch13.adb,
8018 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb, sem_ch9.adb,
8019 sem_dist.adb, sem_util.adb: Use Make_Temporary
8020 * itypes.ads, tbuild.ads: Minor comment update
8021 * exp_ch9.adb, exp_dist.adb: Minor reformatting
8023 2010-06-17 Thomas Quinot <quinot@adacore.com>
8025 * exp_imgv.adb, exp_ch7.ads: Minor reformatting.
8027 2010-06-17 Robert Dewar <dewar@adacore.com>
8029 * exp_ch9.adb, exp_disp.adb, exp_dist.adb: Use Make_Temporary.
8031 2010-06-17 Thomas Quinot <quinot@adacore.com>
8033 * sprint.adb (pg): Set Dump_Freeze_Null, to be consistent with -gnatdg.
8035 2010-06-17 Robert Dewar <dewar@adacore.com>
8037 * exp_ch6.adb, exp_ch7.adb, exp_ch5.adb: Use Make_Temporary
8038 * tbuild.ads (Make_Temporary): More comment updates
8039 * tbuild.adb: Minor reformatting
8041 2010-06-17 Robert Dewar <dewar@adacore.com>
8043 * checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch11.adb,
8044 exp_ch3.adb, exp_ch4.adb: Minor code reorganization.
8046 * tbuild.ads, tbuild.adb (Make_Temporary): Clean up, use Entity_Id
8048 (Make_Temporary): Add more extensive documentation
8050 2010-06-17 Robert Dewar <dewar@adacore.com>
8052 * sem_intr.adb, sem_prag.adb, sem_res.adb, sem_type.adb, sem_util.adb,
8053 sem_warn.adb, sem_eval.adb: Minor reformatting. Use Ekind_In.
8054 (Set_Slice_Subtype): Explicitly freeze the slice's itype at the point
8055 where the slice's actions are inserted.
8056 (Decompose_Expr): Account for possible rewriting of slice bounds
8057 resulting from side effects suppression caused by the above freezing,
8058 so that folding of bounds is preserved by such rewriting.
8060 2010-06-17 Robert Dewar <dewar@adacore.com>
8062 * einfo.ads, einfo.adb (Get_Record_Representation_Clause): New
8064 * freeze.adb (Freeze_Record_Type): Add call to
8065 Check_Record_Representation_Clause.
8066 * sem_ch13.adb (Check_Record_Representation_Clause): New function
8067 (Analyze_Record_Representation_Clause): Split out overlap code into
8069 (Check_Component_Overlap): Moved inside
8070 Check_Record_Representation_Clause.
8071 * sem_ch13.ads (Check_Record_Representation_Clause): New function.
8073 2010-06-17 Robert Dewar <dewar@adacore.com>
8075 * back_end.adb, sem_res.adb, switch-c.adb, sem_scil.adb: Minor
8077 * sem_attr.adb, sem_cat.adb, sem_disp.adb, sem_elab.adb, sem_elim.adb,
8078 sem_eval.adb: Use Ekind_In
8080 2010-06-17 Ed Schonberg <schonberg@adacore.com>
8082 * sem_ch8.adb: better error message for illegal inherited discriminant
8084 2010-06-17 Vincent Celier <celier@adacore.com>
8086 * bindusg.adb: Remove lines for -A and -C
8087 * gnat_ugn.texi: Remove all documentation and examples of switches -A
8088 and -C for gnatbind and gnatlink.
8089 * gnatlink.adb (Usage): Remove lines for -A and -C
8090 * switch-b.adb (Scan_Binder_Switches): Issue warning when switch -C is
8092 * gcc-interface/Make-lang.in: Update dependencies.
8094 2010-06-17 Vincent Celier <celier@adacore.com>
8096 * back_end.adb (Scan_Compiler_Arguments): Put all arguments in new
8097 local Argument_List variable Args.
8098 * switch-c.adb (Scan_Front_End_Switches): New Argument_List argument
8100 (Switch_Subsequently_Cancelled): New Argument_List argument Args. Look
8101 for subsequent switches in Args.
8102 * switch-c.ads (Scan_Front_End_Switches): New Argument_List argument
8104 * gcc-interface/Make-lang.in: Update dependencies.
8106 2010-06-17 Robert Dewar <dewar@adacore.com>
8108 * einfo.adb: Minor code fix, allow E_Class_Wide_Type for
8109 Equivalent_Type to match documentation.
8111 2010-06-17 Robert Dewar <dewar@adacore.com>
8113 * sem_ch6.adb, sem_ch7.adb: Minor reformatting.
8114 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_ch10.adb, sem_ch12.adb,
8115 sem_ch4.adb, sem_ch8.adb, sem_ch13.adb: Make use of Ekind_In.
8117 2010-06-17 Thomas Quinot <quinot@adacore.com>
8119 * sem_res.adb (Set_Slice_Subtype): Always freeze the slice's itype.
8121 2010-06-17 Thomas Quinot <quinot@adacore.com>
8123 * freeze.adb (Freeze_Expression): Short circuit operators are valid
8124 freeze node insertion points.
8126 2010-06-17 Robert Dewar <dewar@adacore.com>
8128 * switch-c.ads, switch-c.adb, sem_ch13.adb: Minor reformatting.
8129 * sem_ch12.adb: Add pragmas Assert and Check to previous change.
8131 2010-06-17 Gary Dismukes <dismukes@adacore.com>
8133 * layout.adb (Layout_Type): Broaden test for setting an array type's
8134 Component_Size to include all scalar types, not just discrete types
8135 (components of real types were missed).
8136 * sem_ch3.adb (Constrain_Index): Add missing setting of First_Literal
8137 on the itype created for an index (consistent with Make_Index and
8138 avoids possible Assert_Failures).
8140 2010-06-17 Robert Dewar <dewar@adacore.com>
8142 * atree.ads, atree.adb: Add 6-parameter version of Ekind_In
8143 * einfo.adb: Minor code reformatting (use Ekind_In)
8145 2010-06-17 Robert Dewar <dewar@adacore.com>
8147 * sem_warn.adb (Test_Ref): Abandon scan if access subprogram parameter
8150 2010-06-17 Vincent Celier <celier@adacore.com>
8152 * back_end.adb: Minor comment updates
8153 * switch-c.adb: Remove dependencies on gcc C sources
8154 * gcc-interface/Make-lang.in: Add a-comlin.o to the object file list
8157 2010-06-17 Ed Schonberg <schonberg@adacore.com>
8159 * sem_ch12.adb: propagate Pragma_Enabled flag to generic.
8160 * get_scos.adb: Set C2 flag in decision entry of pragma to 'e'.
8161 * par_sco.ads, par_sco.adb (Set_SCO_Pragma_Enabled): New procedure
8162 Remove use of Node field in SCOs table
8163 (Output_Header): Set 'd' to initially disable pragma entry
8164 * put_scos.adb (Put_SCOs): New flag indicating if pragma is enabled
8165 * scos.ads, scos.adb: Remove Node field from internal SCOs table.
8166 Use C2 field of pragma decision header to indicate enabled.
8167 * sem_prag.adb: Add calls to Set_SCO_Pragma_Enabled.
8168 * gcc-interface/Make-lang.in: Update dependencies.
8170 2010-06-17 Vincent Celier <celier@adacore.com>
8172 * back_end.adb (Next_Arg): Moved to procedure Scan_Compiler_Arguments
8173 (Scan_Compiler_Arguments): Call Scan_Front_End_Switches with Next_Arg
8174 (Switch_Subsequently_Cancelled): Function moved to the body of Switch.C
8175 * back_end.ads (Scan_Front_End_Switches): Function moved to the body of
8177 * switch-c.adb: Copied a number of global declarations from
8179 (Len_Arg): New function copied from back_end.adb
8180 (Switch_Subsequently_Cancelled): New function moved from back_end.adb
8181 (Scan_Front_End_Switches): New parameter Arg_Rank used to call
8182 Switch_Subsequently_Cancelled.
8183 * switch-c.ads (Scan_Front_End_Switches): New parameter Arg_Rank.
8184 * gcc-interface/Makefile.in: Add line so that shared libgnat is linked
8185 with -lexc on Tru64.
8187 2010-06-17 Robert Dewar <dewar@adacore.com>
8189 * prj.ads, prj.adb: Minor reformatting
8191 2010-06-17 Thomas Quinot <quinot@adacore.com>
8193 * put_scos.adb: Do not generate a blank line in SCOs when omitting the
8194 CP line for a disabled pragma.
8196 2010-06-17 Emmanuel Briot <briot@adacore.com>
8198 * prj-proc.adb, prj.adb, prj.ads (Check_Or_Set_Typed_Variable): New
8200 (Process_Declarative_Item): An invalid value in an typed variable
8201 declaration is no longer always fatal.
8203 2010-06-16 Arnaud Charlet <charlet@adacore.com>
8205 * get_scos.adb, par_sco.adb, par_sco.ads, put_scos.adb, scos.adb,
8206 scos.ads, exp_ch4.adb, sem_warn.adb: Code clean up, update
8209 2010-06-16 Javier Miranda <miranda@adacore.com>
8211 * exp_disp.adb (Expand_Dispatching_Call): Adjust the decoration of the
8212 node referenced by the SCIL node of dispatching "=" to skip the tags
8215 2010-06-16 Ed Schonberg <schonberg@adacore.com>
8217 * sem_ch5.adb (Analyze_Exit_Statement): Return if no enclosing loop,
8218 to prevent cascaded errors and compilation aborts.
8220 2010-06-16 Robert Dewar <dewar@adacore.com>
8222 * back_end.adb (Switch_Subsequently_Cancelled): New function
8223 Move declarations to package body level to support this change
8224 * back_end.ads (Switch_Subsequently_Cancelled): New function
8225 * gnat_ugn.texi: Document -gnat-p switch
8226 * switch-c.adb (Scan_Front_End_Switches): Implement -gnat-p switch
8227 * ug_words: Add entry for -gnat-p (UNSUPPRESS_ALL)
8228 * usage.adb: Add line for -gnat-p switch
8229 * vms_data.ads: Add entry for UNSUPPRESS_ALL (-gnat-p)
8231 2010-06-16 Robert Dewar <dewar@adacore.com>
8233 * sem_warn.adb (Check_Infinite_Loop_Warning): Declaration counts as
8236 2010-06-16 Robert Dewar <dewar@adacore.com>
8238 * exp_disp.adb: Minor reformatting
8240 2010-06-16 Ed Schonberg <schonberg@adacore.com>
8242 * sem_ch3.adb (Complete_Private_Subtype): Inherit class_wide type from
8243 base type only if it was not previously created for the partial view.
8245 2010-06-16 Thomas Quinot <quinot@adacore.com>
8247 * tbuild.ads: Minor comment fix
8249 2010-06-15 Nathan Froyd <froydnj@codesourcery.com>
8251 * gcc-interface/trans.c (gnu_stack_free_list): Delete.
8252 (gnu_except_ptr_stack): Change type to VEC. Update comment.
8253 (gnu_elab_proc_stack): Likewise.
8254 (gnu_return_label_stack): Likewise.
8255 (gnu_loop_label_stack): Likewise.
8256 (gnu_switch_label_stack): Likewise.
8257 (gnu_constraint_label_stack): Likewise.
8258 (gnu_storage_error_label_stack): Likewise.
8259 (gnu_program_error_label_stack): Likewise.
8260 (push_exception_label_stack): Take a VEC ** instead of a tree *.
8261 (push_stack): Likewise. Remove unused second parameter. Update
8263 (pop_stack): Take a VEC * instead of a tree *. Update callers.
8264 (gigi): Initialize stacks as VECs.
8265 (Identifier_to_gnu): Use VEC_last instead of TREE_VALUE.
8266 (Case_Statement_to_gnu): Likewise.
8267 (Subprogram_Body_to_gnu): Likewise.
8268 (call_to_gnu): Likewise.
8269 (Exception_Handler_to_gnu_sjlj): Likewise.
8270 (gnat_to_gnu): Likewise.
8271 (get_exception_label): Likewise.
8273 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8275 * sem_ch3.adb (Build_Derived_Record_Type): if derived type is an
8276 anonymous base generated when the parent is a constrained discriminated
8277 type, propagate interface list to first subtype because it may appear
8278 in a current instance within the extension part of the derived type
8279 declaration, and its own subtype declaration has not been elaborated
8281 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
8282 determine whether it has the controlling type.
8284 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
8286 * exp_ch11.adb (Expand_N_Raise_Statement): Make sure that the explicit
8287 raise of CE, SE and PE have the reason correctly set and are properly
8288 expanded before stopping the expansions of .NET/JVM exceptions.
8290 2010-06-14 Robert Dewar <dewar@adacore.com>
8292 * opt.ads (Check_Policy_List): Add some clarifying comments
8293 * sem_prag.adb (Analyze_Pragma, case Check): Set Pragma_Enabled flag
8294 on rewritten Assert pragma.
8296 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8298 * sem_ch6.adb (Check_Overriding_Indicator): Add a special check for
8299 controlled operations, so that they will be treated as overriding even
8300 if the overridden subprogram is marked Is_Hidden, as long as the
8301 overridden subprogram's parent subprogram is not hidden.
8303 2010-06-14 Robert Dewar <dewar@adacore.com>
8305 * debug.adb: Entry for gnatw.d no longer specific for while loops
8306 * einfo.adb (First_Exit_Statement): New attribute for E_Loop
8307 * einfo.ads (First_Exit_Statement): New attribute for E_Loop
8308 * sem_ch5.adb (Analyze_Loop_Statement): Check_Infinite_Loop_Warning has
8309 new calling sequence to include test for EXIT WHEN.
8310 (Analyze_Exit_Statement): Chain EXIT statement into exit statement
8312 * sem_warn.ads, sem_warn.adb (Check_Infinite_Loop_Warning): Now handles
8314 * sinfo.adb (Next_Exit_Statement): New attribute of N_Exit_Statement
8316 * sinfo.ads (N_Pragma): Correct comment on Sloc field (points to
8317 PRAGMA, not to pragma identifier).
8318 (Next_Exit_Statement): New attribute of N_Exit_Statement node
8320 2010-06-14 Robert Dewar <dewar@adacore.com>
8322 * sem_res.adb (Resolve_Short_Circuit): Fix sloc of "assertion/check
8325 2010-06-14 Robert Dewar <dewar@adacore.com>
8327 * par-ch2.adb (Scan_Pragma_Argument_Association): Clarify message for
8328 missing pragma argument identifier.
8330 2010-06-14 Robert Dewar <dewar@adacore.com>
8332 * atree.ads, atree.adb (Ekind_In): New functions.
8334 2010-06-14 Robert Dewar <dewar@adacore.com>
8336 * exp_ch4.adb (Expand_N_Op_Expon): Optimize 2**N in stand alone context
8338 2010-06-14 Robert Dewar <dewar@adacore.com>
8340 * usage.adb (Usage): Redo documentation of -gnatwa.
8342 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8344 * sem_ch8.adb (Find_Type): The attribute 'class cannot be applied to
8345 an untagged incomplete type that is a limited view.
8347 2010-06-14 Sergey Rybin <rybin@adacore.com>
8349 * gnat_ugn.texi: Add description of '-cargs gcc_switches' to gnatstub
8352 2010-06-14 Thomas Quinot <quinot@adacore.com>
8354 * exp_ch4.adb (Expand_Short_Circuit_Operator): New subprogram,
8355 factoring duplicated code between...
8356 (Expand_N_And_Than, Expand_N_Or_Else): Remove duplicated code.
8357 * a-envvar.ads: Minor reformatting
8359 2010-06-14 Arnaud Charlet <charlet@adacore.com>
8361 * ali.adb, ali.ads, lib-xref.ads: Document new '+' letter for C/C++
8363 (Scan_ALI): Take into account new Visibility field.
8364 (Visibility_Kind): New type.
8365 (Xref_Entity_Record): Replace Lib field by Visibility.
8367 * gcc-interface/Make-lang.in: Update dependencies.
8369 2010-06-14 Pascal Obry <obry@adacore.com>
8371 * raise.h: Remove unused defintions.
8373 2010-06-14 Bob Duff <duff@adacore.com>
8375 * par-ch10.adb (P_Subunit): If the next token after "separate(X)" is
8376 Tok_Not or Tok_Overriding, call P_Subprogram. We had previously given
8377 the incorrect error "proper body expected".
8378 * par-ch6.adb (P_Subprogram): Suppress "overriding indicator not
8379 allowed here" error in case of subunits, which was triggered by the
8380 above change to P_Subunit.
8382 2010-06-14 Sergey Rybin <rybin@adacore.com>
8384 * gnat_ugn.texi, vms_data.ads: Update gnatelim doc.
8386 2010-06-14 Thomas Quinot <quinot@adacore.com>
8388 * lib-util.adb: Minor code reorganization.
8390 2010-06-14 Robert Dewar <dewar@adacore.com>
8392 * ali.adb (Scan_ALI): Implement reading and storing of N lines
8393 (Known_ALI_Lines): Add entry for 'N' (notes)
8394 * ali.ads (Notes): New table to store Notes information
8395 * alloc.ads: Add entries for Notes table
8396 * lib-util.adb (Write_Info_Int): New procedure
8397 (Write_Info_Slit): New procedure
8398 (Write_Info_Uint): New procedure
8399 * lib-util.ads (Write_Info_Int): New procedure
8400 (Write_Info_Slit): New procedure
8401 (Write_Info_Uint): New procedure
8402 * lib-writ.adb (Write_Unit_Information): Output N (notes) lines
8403 * lib-writ.ads: Update documentation for N (Notes) lines
8404 * lib.adb (Store_Note): New procedure
8405 * lib.ads (Notes): New table
8406 (Store_Note): New procedure
8407 * sem_prag.adb: Call Store_Note for affected pragmas
8409 2010-06-14 Thomas Quinot <quinot@adacore.com>
8411 * socket.c: Fix wrong condition in #ifdef
8412 * g-socket.adb, g-sothco.ads: Functions imported from socket.c that
8413 take or return char* values can't use Interfaces.C.Strings.chars_ptr,
8414 because on VMS this type is a 32-bit pointer which is not compatible
8415 with the default for C pointers for code compiled with gcc on that
8418 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8420 * sem_util (Is_VMS_Operator): New predicate to determine whether an
8421 operator is an intrinsic operator declared in the DEC system extension.
8422 * sem_res.adb (Resolve_Logical_Op): operation is legal on signed types
8423 if the operator is a VMS intrinsic.
8424 * sem_eval.adb (Eval_Logical_Op): Operation is legal and be
8425 constant-folded if the operands are signed and the operator is a VMS
8428 2010-06-14 Robert Dewar <dewar@adacore.com>
8430 * g-socket.adb, gnatcmd.adb: Minor reformatting.
8432 2010-06-14 Pascal Obry <obry@adacore.com>
8434 * s-finimp.adb: Fix typo.
8435 * raise.h: Remove duplicate blank line.
8437 2010-06-14 Vincent Celier <celier@adacore.com>
8439 * prj-nmsc.adb (Add_Sources): Always set the object file and the
8440 switches file names, as the configuration of the language may change
8441 in an extending project.
8442 (Process_Naming_Scheme): For sources of projects that are extended, set
8443 the configuration of the language from the highest extending project
8444 where the language is declared.
8446 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8448 * sem_res.adb (Resolve_Call): For infinite recursion check, test
8449 whether the called subprogram is inherited from a containing
8451 (Same_Or_Aliased_Subprograms): New function
8453 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8455 * sem_ch8.adb (End_Use_Type): Before indicating that an operator is not
8456 use-visible, check whether it is a primitive for more than one type.
8458 2010-06-14 Robert Dewar <dewar@adacore.com>
8460 * sem_ch3.adb (Copy_And_Swap): Copy Has_Pragma_Unmodified flag.
8462 * sem_ch7.adb (Preserve_Full_Attributes): Preserve
8463 Has_Pragma_Unmodified flag.
8465 2010-06-14 Thomas Quinot <quinot@adacore.com>
8467 * g-sttsne-locking.adb, g-sttsne-locking.ads, g-sttsne.ads,
8468 g-sttsne-vxworks.adb, g-sttsne-dummy.ads: Removed. Mutual exclusion is
8469 now done in GNAT.Sockets if necessary.
8470 * gsocket.h, g-socket.adb, g-sothco.ads (GNAT.Sockets.Get_XXX_By_YYY):
8471 Ensure mutual exclusion for netdb operations if the target platform
8473 (GNAT.Sockets.Thin_Common): New binding for getXXXbyYYY, treating
8474 struct hostent as an opaque type to improve portability.
8475 * s-oscons-tmplt.c, socket.c: For the case of Vxworks, emulate
8476 gethostbyYYY using proprietary VxWorks API so that a uniform interface
8477 is available for the Ada side.
8478 * gcc-interface/Makefile.in: Remove g-sttsne-*
8479 * gcc-interface/Make-lang.in: Update dependencies.
8481 2010-06-14 Vincent Celier <celier@adacore.com>
8483 * gnatcmd.adb (Mapping_File): New function.
8485 2010-06-14 Javier Miranda <miranda@adacore.com>
8487 * sem_ch3.adb (Derive_Subprograms): Remove over-restrictive assertion.
8489 2010-06-14 Arnaud Charlet <charlet@adacore.com>
8491 * ali.adb: Fix typo.
8492 * s-auxdec-vms-alpha.adb, scng.ads: Minor reformatting.
8494 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8496 * sem_ch12.adb: Make Mark_Context transitive, and apply to subprogram
8499 * sem_ch8.adb (Find_Expanded_Name): If a candidate compilation unit in
8500 the context does not have a homonym of the selector, emit default
8503 2010-06-14 Robert Dewar <dewar@adacore.com>
8505 * sem.adb, sem_ch12.adb, sem_util.adb: Minor reformatting and
8508 2010-06-14 Arnaud Charlet <charlet@adacore.com>
8510 * lib-xref.ads: Doc updates:
8511 - Allocate 'Q' for #include entity kind
8513 - Allocate 'g' for regular macros
8514 - Allocate 'G' for function-like macros
8516 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8518 * sinfo.ads, sinfo.adb (Withed_Body): New attribute of a with_clause.
8519 Indicates that there is an instantiation in the current unit that
8520 loaded the body of the unit denoted by the with_clause.
8521 * sem_ch12.adb (Mark_Context): When instanting a generic body, check
8522 whether a with_clause in the current context denotes the unit that
8523 holds the generic declaration, and mark the with_clause accordingly.
8524 (Instantiate_Package_Body): call Mark_Context.
8525 * sem.adb (Process_Bodies_In_Context): Use Withed_Body to determine
8526 whether a given body should be traversed before the spec of the main
8529 2010-06-14 Ed Falis <falis@adacore.com>
8531 * sysdep.c: Fix 653 build against vThreads headers.
8533 2010-06-14 Robert Dewar <dewar@adacore.com>
8535 * sinfo.ads: Minor reformatting.
8537 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8539 * sem_ch6.adb (Analyze_Subprogram_Body): Do not check conformance when
8540 the spec has been generated for a body without spec that carries an
8541 Inline_Always pragma.
8543 2010-06-14 Arnaud Charlet <charlet@adacore.com>
8545 * lib-xref.ads: Documentation change: allocate 'Z' letter to C/C++
8548 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
8550 * exp_dbug.adb (Debug_Renaming_Declaration): Do not output any debug
8551 declaration for VMs, as those are useless and might lead to duplicated
8552 local variable names in the generated code.
8553 * gcc-interface/Make-lang.in: Update dependencies.
8555 2010-06-14 Robert Dewar <dewar@adacore.com>
8557 * opt.ads, sem.adb, sem_elab.adb: Minor reformatting
8559 2010-06-14 Robert Dewar <dewar@adacore.com>
8561 * exp_aggr.adb (Has_Address_Clause): Moved to Exp_Util, and there it
8562 is renamed as Has_Following_Address_Clause.
8563 * exp_ch3.adb (Needs_Simple_Initialization): Add Consider_IS argument
8564 to allow the caller to avoid Initialize_Scalars having an effect.
8565 (Expand_N_Object_Declaration): Do not do Initialize_Scalars stuff for
8566 scalars with an address clause specified.
8567 * exp_ch3.ads (Needs_Simple_Initialization): Add Consider_IS argument
8568 to allow the caller to avoid Initialize_Scalars having an effect.
8569 * exp_util.adb (Has_Following_Address_Clause): Moved here from Exp_Aggr
8570 (where it was called Has_Address_Clause).
8571 * exp_util.ads (Has_Following_Address_Clause): Moved here from Exp_Aggr
8572 (where it was called Has_Address_Clause).
8573 * freeze.adb (Warn_Overlay): Suppress message about overlaying causing
8574 problems for Initialize_Scalars (since we no longer initialize objects
8575 with an address clause.
8577 2010-06-14 Robert Dewar <dewar@adacore.com>
8579 * exp_prag.adb (Expand_Pragma_Check): Set Loc of generated code from
8582 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8584 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Debug_Info_Needed
8585 on the entity of an implicitly generated postcondition procedure.
8587 2010-06-14 Thomas Quinot <quinot@adacore.com>
8589 * sem_ch7.adb (Preserve_Full_Attributes): Propagate
8590 Discriminant_Constraint elist from full view to private view.
8592 2010-06-14 Robert Dewar <dewar@adacore.com>
8594 * sem_res.adb: Minor reformatting.
8596 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8598 * sem.adb: New version of unit traversal.
8600 * sem_elab.adb (Check_Internal_Call): Do not place a call appearing
8601 within a generic unit in the table of delayed calls.
8603 2010-06-14 Robert Dewar <dewar@adacore.com>
8605 * gnatcmd.adb, sem_util.adb, exp_ch3.adb: Minor reformatting
8607 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8609 * sem_ch12.adb (Save_References): If an identifier has been rewritten
8610 during analysis as an explicit dereference, keep the reference implicit
8611 in the generic, but preserve the entity if global. This prevents
8612 malformed generic trees in the presence of some nested generics.
8614 2010-06-14 Sergey Rybin <rybin@adacore.com>
8616 * gnat_ugn.texi: For the GNAT driver, clarify the effect of calling the
8617 tool with '-files=' option. Also fix some small errors (wrong brackets)
8619 2010-06-14 Vincent Celier <celier@adacore.com>
8621 * gnatbind.adb: Call Scan_ALI with Directly_Scanned set to True for all
8622 the ALI files on the command line.
8624 * ali.adb (Scan_ALI): Set component Directly_Scanned of the unit(s) to
8625 the same value as the parameter of the same name.
8626 * ali.ads (Scan_ALI): New Boolean parameter Directly_Scanned, defaulted
8628 * bindgen.adb (Gen_Versions_Ada): Never emit version symbols for
8629 Stand-Alone Library interfaces. When binding Stand-Alone Libraries,
8630 emit version symbols only for the units of the library.
8631 (Gen_Versions_C): Ditto.
8633 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8635 * sem_ch4.adb: Fix typo.
8637 2010-06-14 Vasiliy Fofanov <fofanov@adacore.com>
8639 * s-oscons-tmplt.c (IOV_MAX): redefine on Tru64 and VMS since the
8640 vector IO doesn't work at default value properly.
8642 2010-06-14 Doug Rupp <rupp@adacore.com>
8644 * s-stoele.adb: Remove unnecessary qualification of To_Address for VMS.
8646 2010-06-14 Vincent Celier <celier@adacore.com>
8648 * gnatcmd.adb (Check_Files): Do not invoke the tool with all the
8649 sources of the project if a switch -files= is used.
8651 2010-06-14 Thomas Quinot <quinot@adacore.com>
8653 * exp_attr.adb: Minor reformatting.
8655 2010-06-14 Gary Dismukes <dismukes@adacore.com>
8657 * gnat_ugn.texi: Minor typo fixes and wording changes.
8659 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8661 * sem_ch4.adb (Analyze_One_Call): If the call has been rewritten from a
8662 prefixed form, do not re-analyze first actual, which may need an
8663 implicit dereference.
8664 * sem_ch6.adb (Analyze_Procedure_Call): If the call is given in
8665 prefixed notation, the analysis will rewrite the node, and possible
8666 errors appear in the rewritten name of the node.
8667 * sem_res.adb: If a call is ambiguous because its first parameter is
8668 an overloaded call, report list of candidates, to clarify ambiguity of
8671 2010-06-14 Doug Rupp <rupp@adacore.com>
8673 * s-auxdec-vms-alpha.adb: New package body implementing legacy
8674 VAX instructions with Asm insertions.
8675 * s-auxdec-vms_64.ads: Inline VAX queue functions
8676 * s-stoele.adb: Resolve some ambiguities in To_Addresss with s-suxdec
8677 that show up only on VMS.
8678 * gcc-interface/Makefile.in: Provide translation for
8679 s-auxdec-vms-alpha.adb.
8681 2010-06-14 Olivier Hainque <hainque@adacore.com>
8683 * initialize.c (VxWorks section): Update comments.
8685 2010-06-14 Robert Dewar <dewar@adacore.com>
8687 * a-convec.adb, sem_prag.adb, checks.adb: Minor reformatting.
8689 2010-06-14 Eric Botcazou <ebotcazou@adacore.com>
8691 * init.c: Code clean up.
8693 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8695 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address): Do
8696 not insert address clause in table for later validation if type of
8697 entity is generic, to prevent possible spurious errors.
8699 * sem_ch8.adb: Code clean up.
8701 2010-06-14 Ben Brosgol <brosgol@adacore.com>
8703 * gnat_ugn.texi: Expanded @ovar macro inline to solve problem with
8704 texi2pdf and texi2html.
8705 Document how to change scheduling properties on HP-UX.
8707 2010-06-14 Thomas Quinot <quinot@adacore.com>
8709 * g-socket.ads: Remove misleading comments.
8711 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
8713 * sem_prag.adb (Check_Duplicated_Export_Name): Remove check for
8714 CLI_Target as this prevents proper detection of exported names
8715 duplicates when the exported language is different to CIL.
8716 (Process_Interface_Name): Add check for CIL convention exports,
8717 replacing the old one from Check_Duplicated_Export_Name.
8719 2010-06-14 Matthew Heaney <heaney@adacore.com>
8721 * a-coinve.adb, a-convec.adb (operator "&"): Check both that new length
8722 and new last satisfy constraints.
8723 (Delete_Last): prevent overflow for subtraction of index values
8724 (To_Vector): prevent overflow for addition of index values
8726 2010-06-14 Ed Schonberg <schonberg@adacore.com>
8728 * sem_ch4.adb (Complete_Object_Operation): After analyzing the
8729 rewritten call, preserve the resulting type to prevent spurious errors,
8730 when the call is implicitly dereferenced in the context of an in-out
8733 * checks.adb (Apply_Discriminant_Check): If the target of the
8734 assignment is a renaming of a heap object, create constrained type for
8737 2010-06-14 Pascal Obry <obry@adacore.com>
8739 * prj-proc.adb: Fix copy of object directory for extending projects.
8741 2010-06-14 Jose Ruiz <ruiz@adacore.com>
8743 * init.c (__gnat_alternate_stack): Define this space for PowerPC linux
8744 (__gnat_install_handler, PowerPC linux): Activate the alternative
8747 2010-06-13 Gerald Pfeifer <gerald@pfeifer.com>
8749 * gnat_rm.texi: Move to GFDL version 1.3.
8750 * gnat-style.texi: Ditto.
8751 * gnat_ugn.texi: Ditto.
8753 2010-06-12 Kai Tietz <kai.tietz@onevision.com>
8756 * gcc-interface/Makefile.in: Add rules for multilib x86/x64
8759 2010-06-11 Alexandre Oliva <aoliva@redhat.com>
8761 * gcc-interface/utils.c (update_pointer_to): Initialize last.
8763 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
8765 * gcc-interface/ada-tree.h: Fix formatting nits.
8767 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8769 * gcc-interface/utils.c (init_gnat_to_gnu): Use typed GC
8771 (init_dummy_type): Likewise.
8772 (gnat_pushlevel): Likewise.
8774 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
8775 (Subprogram_Body_to_gnu): Likewise.
8776 (Compilation_Unit_to_gnu): Likewise.
8777 (start_stmt_group): Likewise.
8778 (extract_encoding): Likewise.
8779 (decode_name): Likewise.
8781 * gcc-interface/misc.c (gnat_printable_name): Likewise.
8783 * gcc-interface/decl.c (annotate_value): Likewise.
8785 * gcc-interface/ada-tree.h (struct lang_type): Add variable_size
8787 (struct lang_decl): Likewise.
8788 (SET_TYPE_LANG_SPECIFIC): Use typed GC allocation.
8789 (SET_DECL_LANG_SPECIFIC): Likewise.
8791 2010-06-04 Eric Botcazou <ebotcazou@adacore.com>
8793 * gnatlink.adb (gnatlink): Remove support for -fsjlj switch.
8794 * gcc-interface/lang-specs.h: Likewise.
8796 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
8799 * gcc-interface/decl.c (MAX_FIXED_MODE_SIZE): Removed.
8801 2010-06-01 Arnaud Charlet <charlet@adacore.com>
8803 * gnat_ugn.texi: Improve doc on -fdump-ada-spec, mention limitations.
8805 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
8807 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Task_Type>: Reuse the
8808 TYPE_DECL of the equivalent type instead of building a new one.
8810 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
8812 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust warning message.
8813 Fix nits in comments.
8814 * gcc-interface/misc.c (gnat_init_gcc_eh): Likewise.
8815 * gcc-interface/trans.c (gigi): Likewise.
8816 (Attribute_to_gnu): Likewise.
8817 (Case_Statement_to_gnu): Likewise.
8818 (gnat_to_gnu): Adjust warning message.
8819 * gcc-interface/utils.c (create_var_decl_1): Fix nits in comments.
8820 (build_vms_descriptor32): Likewise.
8822 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
8824 * gcc-interface/decl.c: Pretend to be a backend file by undefining
8825 IN_GCC_FRONTEND (still need rtl.h here).
8827 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8829 * gcc-interface/trans.c: Do not include rtl.h, insclude libfuncs.h.
8830 (gigi): Adjust call to set_stack_check_libfunc.
8832 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
8834 * gcc-interface/utils.c: Do not include rtl.h.
8836 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
8838 * gcc-interface/utils.c: Do not include function.h, pointer-set.h,
8839 and gimple.h. Explain why rtl.h has to be included.
8840 (handle_vector_size_attribute): Call reconstruct_complex_type directly.
8841 * gcc-interface/targtyps.c: Do not include tm_p.h
8842 * gcc-interface/utils2.c: Do not include flags.h.
8843 * gcc-interface/trans.c: Do not include expr.h. Include rtl.h instead,
8844 and explain why it has to be included.
8845 * gcc-interface/misc.c: Do not include expr.h, libfuncs.h, cgraph.h,
8847 Include function.h and explain why. Explain why except.h is included.
8848 (enumerate_modes): Remove unused function.
8849 * gcc-interface/gigi.h (enumerate_modes): Remove prototype.
8850 * gcc-interface/Make-lang.in: Update dependencies.
8852 2010-05-25 Joseph Myers <joseph@codesourcery.com>
8854 * gcc-interface/misc.c (internal_error_function): Add context
8855 parameter. Use it to access show_column flag and instead of using
8856 global_dc. Call warn_if_plugins.
8857 * gcc-interface/Make-lang.in (ada/misc.o): Update dependencies.
8859 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
8861 * gcc-interface/misc.c (LANG_HOOKS_DEEP_UNSHARING): Redefine.
8862 * gcc-interface/trans.c (unshare_save_expr): Delete.
8863 (gigi): Do not unshare trees under SAVE_EXPRs here.
8865 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
8867 * gcc-interface/trans.c (call_to_gnu): Use build_call_vec instead of
8869 * gcc-interface/utils.c (build_function_stub): Likewise.
8871 2010-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
8873 * gcc-interface/misc.c (gnat_handle_option): Remove special logic
8874 for Wuninitialized without -O.
8876 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
8878 * gcc-interface/gigi.h (enum standard_datatypes): Add new value
8879 ADT_exception_data_name_id.
8880 (exception_data_name_id): New define.
8881 * gcc-interface/trans.c (gigi): Initialize it.
8882 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use the standard
8883 exception type for standard exception definitions. Do not make them
8885 <E_Record_Type>: Equate fields of types associated with an exception
8886 definition to those of the standard exception type.
8888 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
8890 * tracebak.c (__gnat_backtrace): Mark top_stack with ATTRIBUTE_UNUSED.
8892 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
8894 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Tidy up
8895 code, improve comments and fix formatting nits.
8897 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
8899 * gcc-interface/utils.c (update_pointer_to): Return early if the old
8900 pointer already points to the new type. Chain the old pointer and its
8901 variants at the end of new pointer's chain after updating them.
8903 2010-05-10 Eric Botcazou <ebotcazou@adacore.com>
8905 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables
8906 built for interfaces.
8907 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Use
8908 imported_p instead of Is_Imported when considering constants.
8909 Do not promote alignment of exported objects.
8910 <E_Record_Subtype>: Strip all suffixes for dispatch table entities.
8912 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8914 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables.
8915 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Make imported
8916 constants really constant.
8917 <E_Record_Subtype>: Strip the suffix for dispatch table entities.
8919 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8921 * gcc-interface/decl.c (make_aligning_type): Declare the type.
8923 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8925 * gcc-interface/decl.c (gnat_to_gnu_entity): Create variables for size
8926 expressions of variant part of record types declared at library level.
8928 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8930 * gcc-interface/gigi.h (create_field_decl): Move PACKED parameter.
8931 * gcc-interface/utils.c (create_field_decl): Move PACKED parameter.
8932 (rest_of_record_type_compilation): Adjust call to create_field_decl.
8933 (make_descriptor_field): Likewise and pass correctly typed constants.
8934 (build_unc_object_type): Likewise.
8935 (unchecked_convert): Likewise.
8936 * gcc-interface/decl.c (elaborate_expression_2): New static function.
8937 (gnat_to_gnu_entity): Use it to make alignment factors explicit.
8938 Adjust call to create_field_decl.
8939 (make_aligning_type): Likewise.
8940 (make_packable_type): Likewise.
8941 (maybe_pad_type): Likewise.
8942 (gnat_to_gnu_field): Likewise.
8943 (components_to_record): Likewise.
8944 (create_field_decl_from): Likewise.
8945 (create_variant_part_from): Remove superfluous test.
8946 * gcc-interface/trans.c (gigi): Adjust call to create_field_decl.
8948 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8950 * gcc-interface/gigi.h (build_unc_object_type): Add DEBUG_INFO_P param.
8951 (build_unc_object_type_from_ptr): Likewise.
8952 * gcc-interface/utils.c (build_unc_object_type): Add DEBUG_INFO_P param
8953 and pass it to create_type_decl. Declare the type. Simplify.
8954 (build_unc_object_type_from_ptr): Add DEBUG_INFO_P parameter and pass
8955 it to build_unc_object_type.
8956 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust to above change.
8957 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
8958 (gnat_to_gnu): Likewise.
8959 * gcc-interface/utils2.c (build_allocator): Likewise.
8961 2010-05-07 Eric Botcazou <ebotcazou@adacore.com>
8964 * gcc-interface/misc.c (gnat_handle_option): Fix long line.
8966 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8968 * gcc-interface/Makefile.in: Removed mips-sgi-irix5* support.
8970 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
8973 * gcc-interface/misc.c (gnat_handle_option): Add argument kind.
8975 2010-05-02 Giuseppe Scrivano <gscrivano@gnu.org>
8977 * gnathtml.pl: Use 755 as mask for new directories.
8979 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
8981 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Uniquize
8982 constant constructors before taking their address.
8984 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
8986 * exp_dbug.ads: Fix outdated description. Mention link between XVS
8988 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Set
8989 XVZ variable as unit size of XVS type.
8990 (maybe_pad_type): Likewise.
8992 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
8994 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Do not
8995 use memmove if the array type is bit-packed.
8997 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
8999 * gcc-interface/misc.c (gnat_init): Remove second argument in call to
9000 build_common_tree_nodes.
9002 2010-04-18 Ozkan Sezer <sezeroz@gmail.com>
9004 * gsocket.h: Make sure that winsock2.h is included before windows.h.
9006 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
9008 * gcc-interface/utils2.c (build_unary_op) <ATTR_ADDR_EXPR>: Do not
9011 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
9013 * uintp.h (UI_Lt): Declare.
9014 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do the size
9015 computation in sizetype.
9016 <E_Array_Subtype>: Use unified handling for all index types. Do not
9017 generate MAX_EXPR-based expressions, only COND_EXPR-based ones. Add
9019 (annotate_value): Change test for negative values.
9020 (validate_size): Apply test for negative values on GNAT nodes.
9021 (set_rm_size): Likewise.
9022 * gcc-interface/misc.c (gnat_init): Set unsigned types for sizetypes.
9023 * gcc-interface/utils.c (rest_of_record_type_compilation): Change test
9024 for negative values.
9025 (max_size) <MINUS_EXPR>: Do not reassociate a COND_EXPR on the LHS.
9026 (builtin_type_for_size): Adjust definition of signed_size_type_node.
9027 * gcc-interface/utils2.c (compare_arrays): Optimize comparison of
9028 lengths against zero.
9030 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
9032 * back-end.adb (Call_Back_End): Pass Standard_Character to gigi.
9033 * gcc-interface/gigi.h (gigi): Add standard_character parameter.
9034 (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
9035 LONG_LONG_TYPE_SIZE, FLOAT_TYPE_SIZE, DOUBLE_TYPE_SIZE,
9036 LONG_DOUBLE_TYPE_SIZE, SIZE_TYPE): Delete.
9037 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Call
9039 * gcc-interface/misc.c (gnat_init): Set signedness of char as per
9040 flag_signed_char. Tag sizetype with "size_type" moniker.
9041 * gcc-interface/trans.c (gigi): Add standard_character parameter.
9042 Remove useless built-in types. Equate unsigned_char_type_node to
9043 Standard.Character. Use it instead of char_type_node throughout.
9044 (Attribute_to_gnu): Likewise.
9045 (gnat_to_gnu): Likewise.
9046 * gcc-interface/utils2.c (build_call_raise): Likewise.
9048 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
9050 * gcc-interface/gigi.h (enum standard_datatypes): Add new values
9051 ADT_sbitsize_one_node and ADT_sbitsize_unit_node.
9052 (sbitsize_one_node): New macro.
9053 (sbitsize_unit_node): Likewise.
9054 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Fix
9055 latent bug in the computation of subrange_p. Fold wider_p predicate.
9056 (cannot_be_superflat_p): Use an explicitly signed 64-bit type to do
9057 the final comparison.
9058 (make_aligning_type): Build real negation and use sizetype throughout
9059 the offset computation.
9060 (maybe_pad_type): Do not issue the warning when the new size expression
9062 (annotate_value) <INTEGER_CST>: Simplify code handling negative values.
9063 * gcc-interface/misc.c (gnat_init): Initialize sbitsize_one_node and
9065 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Pool_Address>: Fold
9067 (gnat_to_gnu) <N_Free_Statement>: Likewise.
9068 * gcc-interface/utils.c (convert): Use sbitsize_unit_node.
9069 * gcc-interface/utils2.c (compare_arrays): Compute real lengths and use
9070 constants in sizetype. Remove dead code and tweak comments. Generate
9071 equality instead of inequality comparisons for zero length tests.
9073 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
9075 * gcc-interface/gigi.h (gnat_init_decl_processing): Delete.
9076 * gcc-interface/decl.c (gnat_to_gnu_entity): Constify a few variables.
9077 <object>: Do not create the fake PARM_DECL if no debug info is needed.
9078 Do not create the corresponding VAR_DECL of a CONST_DECL for debugging
9079 purposes if no debug info is needed.
9080 Fix formatting. Reorder and add comments.
9081 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Reference>: Constify
9082 variable and remove obsolete comment.
9083 * gcc-interface/utils.c (convert_vms_descriptor64): Tweak comment.
9084 (convert_vms_descriptor32): Likewise.
9085 (convert): Remove dead code.
9086 <UNCONSTRAINED_ARRAY_REF>: Pass the field instead of its name to build
9087 the reference to the P_ARRAY pointer.
9088 <POINTER_TYPE>: Likewise.
9089 (maybe_unconstrained_array) <UNCONSTRAINED_ARRAY_TYPE>: Likewise.
9090 (gnat_init_decl_processing): Delete, move contents to...
9091 * gcc-interface/misc.c (gnat_init): ...here.
9093 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
9095 * gcc-interface/trans.c (unchecked_conversion_nop): Handle function
9096 calls. Return true for conversion from a record subtype to its type.
9098 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
9100 * gcc-interface/decl.c (gnat_to_gnu_entity): Use boolean_type_node in
9101 lieu of integer_type_node for boolean operations.
9102 (choices_to_gnu): Likewise.
9103 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
9104 (Loop_Statement_to_gnu): Likewise.
9105 (establish_gnat_vms_condition_handler): Likewise.
9106 (Exception_Handler_to_gnu_sjlj): Likewise.
9107 (gnat_to_gnu): Likewise.
9108 (build_unary_op_trapv): Likewise.
9109 (build_binary_op_trapv): Likewise.
9110 (emit_range_check): Likewise.
9111 (emit_index_check): Likewise.
9112 (convert_with_check): Likewise.
9113 * gcc-interface/utils.c (convert_vms_descriptor64): Likewise.
9114 (convert_vms_descriptor32): Likewise.
9115 (convert_vms_descriptor): Likewise.
9116 * gcc-interface/utils2.c (nonbinary_modular_operation): Likewise.
9117 (compare_arrays): Use boolean instead of integer constants.
9118 (build_binary_op) <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR,
9119 TRUTH_OR_EXPR, TRUTH_XOR_EXPR>: New case. Check that the result type
9121 <GE_EXPR, LE_EXPR, GT_EXPR, LT_EXPR>: Remove obsolete assertion.
9122 <EQ_EXPR, NE_EXPR>: Check that the result type is a boolean type.
9123 <PREINC/PREDECREMENT_EXPR, POSTINC/POSTDECREMENT_EXPR>: Delete.
9124 <TRUTH_NOT_EXPR>: Check that the result type is a boolean type.
9125 (build_unary_op): Use boolean_type_node in lieu of integer_type_node
9126 for boolean operations.
9127 (fill_vms_descriptor): Likewise. Fix formatting nits.
9129 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
9131 * gcc-interface/ada-tree.def (LOOP_STMT): Change to 4-operand nodes.
9132 * gcc-interface/ada-tree.h (LOOP_STMT_TOP_COND, LOOP_STMT_BOT_COND):
9134 (LOOP_STMT_COND): ...this.
9135 (LOOP_STMT_BOTTOM_COND_P): New flag.
9136 (LOOP_STMT_TOP_UPDATE_P): Likewise.
9137 * gcc-interface/trans.c (can_equal_min_or_max_val_p): New function.
9138 (can_equal_min_val_p): New static inline function.
9139 (can_equal_max_val_p): Likewise.
9140 (Loop_Statement_to_gnu): Use build4 in lieu of build5 and adjust to
9141 new LOOP_STMT semantics. Use two different strategies depending on
9142 whether optimization is enabled to translate the loop.
9143 (gnat_gimplify_stmt) <LOOP_STMT>: Adjust to new LOOP_STMT semantics.
9145 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
9147 * uintp.adb (UI_From_Dint): Remove useless code.
9148 (UI_From_Int): Likewise.
9149 * uintp.h: Reorder declarations.
9150 (UI_From_gnu): Declare.
9151 (UI_Base): Likewise.
9152 (Vector_Template): Likewise.
9153 (Vector_To_Uint): Likewise.
9156 * gcc-interface/gigi.h: Tweak comments.
9157 * gcc-interface/cuintp.c (UI_From_gnu): New global function.
9158 * gcc-interface/decl.c (maybe_pad_type): Do not warn if either size
9160 (annotate_value) <INTEGER_CST>: Call UI_From_gnu.
9161 * gcc-interface/trans.c (post_error_ne_num): Call post_error_ne.
9162 (post_error_ne_tree): Call UI_From_gnu and post_error_ne.
9163 * gcc-interface/utils.c (max_size) <tcc_binary>: Do not special-case
9166 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
9168 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Just copy
9170 * gcc-interface/trans.c (smaller_packable_type_p): Rename into...
9171 (smaller_form_type_p): ...this. Change parameter and variable names.
9172 (call_to_gnu): Use the nominal type of the parameter to create the
9173 temporary if it's a smaller form of the actual type.
9174 (addressable_p): Return false if the actual type is integral and its
9175 size is greater than that of the expected type.
9177 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
9179 * gcc-interface/cuintp.c (UI_To_gnu): Fix long line.
9180 * gcc-interface/gigi.h (MARK_VISITED): Skip objects of constant class.
9181 (process_attributes): Delete.
9182 (post_error_ne_num): Change parameter name.
9183 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force debug info
9184 with -g3. Remove a couple of obsolete lines. Minor tweaks.
9185 If type annotating mode, operate on trees to compute the adjustment to
9186 the sizes of tagged types. Fix long line.
9187 (cannot_be_superflat_p): Tweak head comment.
9188 (annotate_value): Fold local constant.
9189 (set_rm_size): Fix long line.
9190 * gcc-interface/trans.c (Identifier_to_gnu): Rework comments.
9191 (Attribute_to_gnu): Fix long line.
9192 <Attr_Size>: Remove useless assertion.
9193 Reorder statements. Use size_binop routine.
9194 (Loop_Statement_to_gnu): Use build5 in lieu of build_nt.
9195 Create local variables for the label and the test. Tweak comments.
9196 (Subprogram_Body_to_gnu): Reset cfun to NULL.
9197 (Compilation_Unit_to_gnu): Use the Sloc of the Unit node.
9198 (process_inlined_subprograms): Integrate into...
9199 (Compilation_Unit_to_gnu): ...this.
9200 (gnat_to_gnu): Fix long line.
9201 (post_error_ne_num): Change parameter name.
9202 * gcc-interface/utils.c (process_attributes): Static-ify.
9203 <ATTR_MACHINE_ATTRIBUTE>: Set input_location before proceeding.
9204 (create_type_decl): Add comment.
9205 (create_var_decl_1): Process the attributes after adding the VAR_DECL
9206 to the current binding level.
9207 (create_subprog_decl): Likewise for the FUNCTION_DECL.
9208 (end_subprog_body): Do not reset cfun to NULL.
9209 (build_vms_descriptor32): Fix long line.
9210 (build_vms_descriptor): Likewise.
9211 (handle_nonnull_attribute): Likewise.
9212 (convert_vms_descriptor64): Likewise.
9213 * gcc-interface/utils2.c (fill_vms_descriptor): Fix long line.
9214 (gnat_protect_expr): Fix thinko.
9216 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
9218 * gcc-interface/trans.c (gigi): Set DECL_IGNORED_P on EH functions.
9219 (gnat_to_gnu) <N_Op_Eq>: Restore the value of input_location
9220 before translating the top-level node.
9221 (lvalue_required_p) <N_Function_Call>: Return 1 if !constant.
9222 <N_Object_Declaration>: Likewise.
9223 <N_Assignment_Statement>: Likewise.
9224 <N_Unchecked_Type_Conversion>: Likewise.
9225 (call_to_gnu): Remove kludge.
9226 (gnat_to_gnu) <N_Return_Statement>: When not optimizing, force labels
9227 associated with user returns to be preserved.
9228 (gnat_to_gnu): Add special code to deal with boolean rvalues.
9229 * gcc-interface/utils2.c (compare_arrays): Set input_location on all
9231 (build_unary_op) <ADDR_EXPR>: Call build_fold_addr_expr.
9232 <INDIRECT_REF>: Call build_fold_indirect_ref.
9234 2010-04-15 Joel Sherrill <joel.sherrill@oarcorp.com>
9236 * g-socket.adb: A target can have multiple missing errno's. This
9237 will result in multiple errno's being defined as -1. Because of this
9238 we can not use a case but must use a series of if's to avoid
9239 a duplicate case error in GNAT.Sockets.Resolve_Error.
9241 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
9243 * gcc-interface/trans.c (call_to_gnu): Open a nesting level if this is
9244 a statement. Otherwise, if at top-level, push the processing of the
9245 elaboration routine. In the misaligned case, issue the error messages
9246 again on entry and create the temporary explicitly. Do not issue them
9248 For a function call, emit the range check if necessary.
9249 In the copy-in copy-out case, create the temporary for the return
9251 Do not unnecessarily convert by-ref parameters to the formal's type.
9252 Remove obsolete guards in conditions.
9253 (gnat_to_gnu) <N_Assignment_Statement>: For a function call, pass the
9254 target to call_to_gnu in all cases.
9255 (gnat_gimplify_expr) <ADDR_EXPR>: Remove handling of SAVE_EXPR.
9256 (addressable_p) <CONSTRUCTOR>: Return false if not static.
9257 <COMPOUND_EXPR>: New case.
9258 * gcc-interface/utils2.c (build_unary_op) <ADDR_EXPR>: Fold a compound
9259 expression if it has unconstrained array type.
9260 (gnat_mark_addressable) <COMPOUND_EXPR>: New case.
9261 (gnat_stabilize_reference) <COMPOUND_EXPR>: Stabilize operands on an
9264 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
9266 * gcc-interface/trans.c (gigi): Do not start statement group.
9267 (Compilation_Unit_to_gnu): Set current_function_decl to NULL.
9268 Start statement group and push binding level here...
9269 (gnat_to_gnu) <N_Compilation_Unit>: ...and not here.
9270 Do not push fake contexts at top level. Remove redundant code.
9271 (call_to_gnu): Rename a local variable and constify another.
9272 * gcc-interface/utils.c (gnat_pushlevel): Fix formatting nits.
9273 (set_current_block_context): Set it as the group's block.
9274 (gnat_init_decl_processing): Delete unrelated init code.
9275 (end_subprog_body): Use NULL_TREE.
9277 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
9279 * gcc-interface/trans.c (call_to_gnu): Do not unnecessarily force
9280 side-effects of actual parameters before the call.
9282 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
9284 * gcc-interface/decl.c (validate_size): Reorder, remove obsolete test
9286 (set_rm_size): Reorder and remove obsolete test.
9288 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
9290 * gcc-interface/gigi.h: Reorder declarations and tweak comments.
9291 (gigi): Adjust ATTRIBUTE_UNUSED markers.
9292 * gcc-interface/gadaint.h: New file.
9293 * gcc-interface/trans.c: Include it in lieu of adaint.h. Reorder.
9294 (__gnat_to_canonical_file_spec): Remove declaration.
9295 (number_names): Delete.
9296 (number_files): Likewise.
9298 * gcc-interface/Make-lang.in (ada/trans.o): Adjust dependencies to
9301 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
9303 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Class_Wide_Type>: Fix
9305 * gcc-interface/trans.c (process_freeze_entity): Use local copy of
9306 Ekind. Return early for class-wide types. Do not compute initializer
9307 unless necessary. Reuse the tree for an associated class-wide type
9308 only if processing its root type.
9310 2010-04-13 Joel Sherrill <joel.sherrill@oarcorp.com>
9312 * gsocket.h: Run-time can no longer be built without network
9313 OS headers available. Changing RTEMS GNAT build procedure to
9314 reflect this and letting run-time build use network .h files.
9316 2010-04-13 Duncan Sands <baldrick@free.fr>
9318 * gcc-interface/misc.c (gnat_eh_type_covers): Remove.
9319 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Update comment.
9321 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
9323 * gcc-interface/gigi.h (standard_datatypes): Add ADT_parent_name_id.
9324 (parent_name_id): New macro.
9325 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Use it.
9326 * gcc-interface/trans.c (gigi): Initialize it.
9327 (lvalue_required_p) <N_Type_Conversion>: New case.
9328 <N_Qualified_Expression>: Likewise.
9329 <N_Allocator>: Likewise.
9330 * gcc-interface/utils.c (convert): Try to properly upcast tagged types.
9332 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
9334 * gcc-interface/ada-tree.h (TYPE_BY_REFERENCE_P): Delete.
9335 (DECL_CONST_ADDRESS_P): New macro.
9336 (SET_DECL_ORIGINAL_FIELD_TO_FIELD): Likewise.
9337 (SAME_FIELD_P): Likewise.
9338 * gcc-interface/decl.c (constructor_address_p): New static function.
9339 (gnat_to_gnu_entity) <object>: Set DECL_CONST_ADDRESS_P according to
9340 the return value of above function.
9341 (gnat_to_gnu_entity) <E_Record_Type>: Force BLKmode for all types
9342 passed by reference.
9343 <E_Record_Subtype>: Likewise.
9344 Set TREE_ADDRESSABLE on the type if it passed by reference.
9345 (make_packable_type): Use SET_DECL_ORIGINAL_FIELD_TO_FIELD.
9346 (create_field_decl_from): Likewise.
9347 (substitute_in_type): Likewise.
9348 (purpose_member_field): Use SAME_FIELD_P.
9349 * gcc-interface/misc.c (must_pass_by_ref): Test TREE_ADDRESSABLE.
9350 * gcc-interface/trans.c (lvalue_required_p): Add ADDRESS_OF_CONSTANT
9351 parameter and adjust recursive calls.
9352 <N_Explicit_Dereference>: New case.
9353 <N_Object_Declaration>: Return 1 if the object is of a class-wide type.
9354 Adjust calls to lvalue_required_p. Do not return the initializer of a
9355 DECL_CONST_ADDRESS_P constant if an lvalue is required for it.
9356 (call_to_gnu): Delay issuing error message for a misaligned actual and
9357 avoid the associated back-end assertion. Test TREE_ADDRESSABLE.
9358 (gnat_gimplify_expr) <ADDR_EXPR>: Handle non-static constructors.
9359 * gcc-interface/utils.c (make_dummy_type): Set TREE_ADDRESSABLE if the
9360 type is passed by reference.
9361 (convert) <CONSTRUCTOR>: Convert in-place in more cases.
9362 * gcc-interface/utils2.c (build_cond_expr): Drop TYPE_BY_REFERENCE_P.
9363 (build_simple_component_ref): Use SAME_FIELD_P.
9365 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
9367 * gcc-interface/trans.c (Identifier_to_gnu): Use boolean variable.
9368 (call_to_gnu): Test gigi's flag TYPE_BY_REFERENCE_P instead of calling
9369 front-end's predicate Is_By_Reference_Type. Use consistent order and
9370 remove ??? comment. Use original conversion in all cases, if any.
9371 * gcc-interface/utils.c (make_dummy_type): Minor tweak.
9372 (convert): Use local copy in more cases.
9373 <INDIRECT_REF>: Remove deactivated code.
9374 (unchecked_convert): Use a couple of local copies.
9376 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
9378 * gcc-interface/trans.c (lvalue_required_for_attribute_p): New static
9380 (lvalue_required_p) <N_Attribute_Reference>: Call it.
9381 (gnat_to_gnu) <N_Selected_Component>: Prevent build_component_ref from
9382 folding the result only if lvalue_required_for_attribute_p is true.
9383 * gcc-interface/utils.c (maybe_unconstrained_array): Pass correctly
9384 typed constant to build_component_ref.
9385 (unchecked_convert): Likewise.
9386 * gcc-interface/utils2.c (maybe_wrap_malloc): Likewise.
9387 (build_allocator): Likewise.
9389 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
9391 * gcc-interface/utils2.c (build_cond_expr): Take the address and
9392 dereference if the result type is passed by reference.
9394 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
9396 * gcc-interface/trans.c (Case_Statement_to_gnu): Bool-ify variable.
9397 (gnat_to_gnu) <N_Null_Statement>: When not optimizing, generate a
9398 goto to the next statement.
9400 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
9402 * gcc-interface/gigi.h (maybe_variable): Delete.
9403 (protect_multiple_eval): Likewise.
9404 (maybe_stabilize_reference): Likewise.
9405 (gnat_save_expr): Declare.
9406 (gnat_protect_expr): Likewise.
9407 (gnat_stabilize_reference): Likewise.
9408 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use
9409 gnat_stabilize_reference.
9410 (maybe_variable): Delete.
9411 (elaborate_expression_1): Use gnat_save_expr.
9412 * gcc-interface/trans.c (Attribute_to_gnu): Use gnat_protect_expr.
9413 (call_to_gnu): Pass NULL to gnat_stabilize_reference.
9414 (gnat_to_gnu) <N_Object_Declaration>: Use gnat_save_expr.
9415 <N_Slice>: Use gnat_protect_exp.
9416 <N_Selected_Component>: Pass NULL to gnat_stabilize_reference.
9417 <N_In>: Use gnat_protect_expr.
9418 Pass NULL to gnat_stabilize_reference.
9419 (build_unary_op_trapv): Use gnat_protect_expr.
9420 (build_binary_op_trapv): Likewise.
9421 (emit_range_check): Likewise.
9422 (emit_index_check): Likewise.
9423 (convert_with_check): Likewise.
9424 (protect_multiple_eval): Move to utils2.c file.
9425 (maybe_stabilize_reference): Merge into...
9426 (gnat_stabilize_reference): ...this. Move to utils2.c file.
9427 (gnat_stabilize_reference_1): Likewise.
9428 * gcc-interface/utils.c (convert_to_fat_pointer): Use gnat_protect_expr
9429 instead of protect_multiple_eval.
9430 * gcc-interface/utils2.c (compare_arrays): Likewise.
9431 (nonbinary_modular_operation): Likewise.
9432 (maybe_wrap_malloc): Likewise.
9433 (build_allocator): Likewise.
9434 (gnat_save_expr): New function.
9435 (gnat_protect_expr): Rename from protect_multiple_eval. Early return
9436 in common cases. Propagate TREE_READONLY onto dereferences.
9437 (gnat_stabilize_reference_1): Move from trans.c file.
9438 (gnat_stabilize_reference): Likewise.
9440 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
9442 * gcc-interface/gigi.h (gnat_mark_addressable): Rename parameter.
9443 * gcc-interface/decl.c (maybe_variable): Do not set TREE_STATIC on _REF
9444 node. Use the type of the operand to set TREE_READONLY.
9445 * gcc-interface/trans.c (Identifier_to_gnu): Do not set TREE_STATIC on
9446 _REF node. Do not overwrite TREE_READONLY.
9447 (call_to_gnu): Rename local variable and fix various nits. In the
9448 copy-in/copy-out case, build the SAVE_EXPR manually.
9449 (convert_with_check): Call protect_multiple_eval in lieu of save_expr
9450 and fold the computations.
9451 (protect_multiple_eval): Always save entire fat pointers.
9452 (maybe_stabilize_reference): Minor tweaks.
9453 (gnat_stabilize_reference_1): Likewise. Do not deal with tcc_constant,
9454 tcc_type and tcc_statement.
9455 * gcc-interface/utils.c (convert_to_fat_pointer): Call
9456 protect_multiple_eval in lieu of save_expr.
9457 (convert): Minor tweaks.
9458 (maybe_unconstrained_array): Do not set TREE_STATIC on _REF node.
9459 (builtin_type_for_size): Call gnat_type_for_size directly.
9460 * gcc-interface/utils2.c (contains_save_expr_p): Delete.
9461 (contains_null_expr): Likewise
9462 (gnat_build_constructor): Do not call it.
9463 (compare_arrays): Deal with all side-effects, use protect_multiple_eval
9464 instead of gnat_stabilize_reference to protect the operands.
9465 (nonbinary_modular_operation): Call protect_multiple_eval in lieu of
9467 (maybe_wrap_malloc): Likewise.
9468 (build_allocator): Likewise.
9469 (build_unary_op) <INDIRECT_REF>: Do not set TREE_STATIC on _REF node.
9470 (gnat_mark_addressable): Rename parameter.
9472 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
9474 * gcc-interface/ada-tree.h (TYPE_RETURNS_UNCONSTRAINED_P): Rename into.
9475 (TYPE_RETURN_UNCONSTRAINED_P): ...this.
9476 (TYPE_RETURNS_BY_REF_P): Rename into.
9477 (TYPE_RETURN_BY_DIRECT_REF_P): ...this.
9478 (TYPE_RETURNS_BY_TARGET_PTR_P): Delete.
9479 * gcc-interface/gigi.h (create_subprog_type): Adjust parameter names.
9480 (build_return_expr): Likewise.
9481 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>:
9482 Rename local variables. If the return Mechanism is By_Reference, pass
9483 return_by_invisible_ref_p to create_subprog_type instead of toggling
9484 TREE_ADDRESSABLE. Test return_by_invisible_ref_p in order to annotate
9485 the mechanism. Use regular return for contrained types with non-static
9486 size and return by invisible reference for unconstrained return types
9487 with default discriminants. Update comment.
9488 * gcc-interface/trans.c (Subprogram_Body_to_gnu): If the function
9489 returns by invisible reference, turn the RESULT_DECL into a pointer.
9490 Do not handle DECL_BY_REF_P in the CICO case here.
9491 (call_to_gnu): Remove code handling return by target pointer. For a
9492 function call, if the return type has non-constant size, generate the
9493 assignment with an INIT_EXPR.
9494 (gnat_to_gnu) <N_Return_Statement>: Remove dead code in the CICO case.
9495 If the function returns by invisible reference, build the copy return
9497 (add_decl_expr): Initialize the variable with an INIT_EXPR.
9498 * gcc-interface/utils.c (create_subprog_type): Adjust parameter names.
9499 Adjust for renaming of macros. Copy the node only when necessary.
9500 (create_subprog_decl): Do not toggle TREE_ADDRESSABLE on the return
9501 type, only change DECL_BY_REFERENCE on the RETURN_DECL.
9502 (convert_from_reference): Delete.
9503 (is_byref_result): Likewise.
9504 (gnat_genericize_r): Likewise.
9505 (gnat_genericize): Likewise.
9506 (end_subprog_body): Do not call gnat_genericize.
9507 * gcc-interface/utils2.c (build_binary_op) <INIT_EXPR>: New case.
9508 (build_return_expr): Adjust parameter names, logic and comment.
9510 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
9512 * exp_pakd.adb (Create_Packed_Array_Type): Always use a modular type
9513 if the size is small enough. Propagate the alignment if there is an
9514 alignment clause on the original array type.
9515 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
9516 Deal with under-aligned packed array types. Copy the size onto the
9517 justified modular type and don't lay it out again. Likewise for the
9518 padding type built for other under-aligned subtypes.
9519 * gcc-interface/utils.c (finish_record_type): Do not set a default mode
9522 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
9524 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set default
9525 alignment on the RETURN type built for the Copy-In Copy-Out mechanism.
9527 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
9529 * gcc-interface/trans.c (call_to_gnu): In the return-by-target-ptr case
9530 do not set the result type if there is a specified target and do not
9531 convert the result in any cases.
9532 (protect_multiple_eval): Make direct SAVE_EXPR for CALL_EXPR.
9533 (maybe_stabilize_reference) <COMPOUND_EXPR>: Merge with CALL_EXPR.
9535 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
9537 * gcc-interface/Makefile.in (SPARC/Solaris): Use sparcv8plus.
9539 2010-02-27 Eric Botcazou <ebotcazou@adacore.com>
9542 * gcc-interface/utils2.c (build_binary_op) <EQ_EXPR>: Assert that fat
9543 pointer base types are variant of each other. Apply special treatment
9544 for null to fat pointer types in all cases.
9546 2010-01-28 Pascal Obry <obry@adacore.com>
9548 * s-win32.ads: Add some missing constants.
9550 2010-01-28 Vincent Celier <celier@adacore.com>
9552 * prj-attr-pm.adb (Add_Attribute): Do nothing if To_Package is
9555 2010-01-28 Robert Dewar <dewar@adacore.com>
9557 * gnat_rm.texi: Minor correction
9559 2010-01-27 Pascal Obry <obry@adacore.com>
9561 * g-awk.adb: ensure that an AWK session is reusable.
9563 2010-01-27 Vasiliy Fofanov <fofanov@adacore.com>
9565 * g-regist.adb (For_Every_Key): Fix previous change.
9568 2010-01-27 Thomas Quinot <quinot@adacore.com>
9570 * lib-writ.ads: Current version of spec for new N (note) ALI lines
9572 2010-01-27 Yannick Moy <moy@adacore.com>
9574 * a-cdlili.adb (Insert): Correct exception message when cursor
9575 designates wrong list.
9577 2010-01-27 Vincent Celier <celier@adacore.com>
9579 * gnatcmd.adb: When there is only one main specified, the package
9580 support Switches (<main>) and attribute Switches is specified for the
9581 main, use these switches, instead of Default_Switches ("Ada").
9583 2010-01-27 Robert Dewar <dewar@adacore.com>
9585 * sem_prag.adb, par-prag.adb, snames.ads-tmpl: pragma Dimension initial
9587 * exp_disp.adb: Minor reformatting
9589 2010-01-27 Tristan Gingold <gingold@adacore.com>
9591 * seh_init.c: Use __ImageBase instead of _ImageBase.
9593 2010-01-27 Javier Miranda <miranda@adacore.com>
9595 * exp_disp.ads, exp_disp.adb (Expand_Interface_Thunk): Modify the
9596 profile of interface thunks. The type of the controlling formal is now
9597 the covered interface type (instead of the target tagged type).
9599 2010-01-27 Sergey Rybin <rybin@adacore.com>
9601 * gnat_rm.texi, gnat_ugn.texi: Update gnatcheck doc.
9603 2010-01-27 Robert Dewar <dewar@adacore.com>
9605 * sinput.ads, sinput.adb (Sloc_Range): Applies to all nodes, formal
9606 changed from Expr to N.
9608 2010-01-26 Thomas Quinot <quinot@adacore.com>
9610 * gnat_ugn.texi: Adjust documentation of -gnatz switches.
9611 * usage.adb: Replace line for -gnatz with two lines for -gnatzc and
9614 2010-01-26 Vincent Celier <celier@adacore.com>
9616 * prj-attr.adb: Add new attribute Library_Install_Name_Option
9617 Replace attribute Run_Path_Origin_Supported with Run_Path_Origin
9618 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
9619 attributes Run_Path_Option and Library_Install_Name_Option.
9620 * prj.ads (Project_Configuration): Replace component
9621 Run_Path_Origin_Supported with component Run_Path_Origin. Add new
9622 component Library_Install_Name_Option.
9623 * snames.ads-tmpl: Add new standard name Library_Install_Name_Option
9624 Replace Run_Path_Origin_Supported with Run_Path_Origin
9626 2010-01-26 Ed Schonberg <schonberg@adacore.com>
9628 * sem_ch8.adb (Use_One_Package): Within an instance, an actual package
9629 is not hidden by a homograph declared in another actual package.
9631 2010-01-26 Robert Dewar <dewar@adacore.com>
9633 * par_sco.adb (Traverse_Declarations_Or_Statements): Only generate
9634 decisions for pragmas Assert, Check, Precondition, Postcondition if
9636 * scos.ads: Update comments.
9637 * get_scos.adb, put_scos.adb: Minor fix to code reading statement SCOs.
9638 Also remove obsolete code for CT (exit point) SCOs.
9640 2010-01-26 Thomas Quinot <quinot@adacore.com>
9642 * switch-c.adb: Fix handling of -gnatz*
9644 2010-01-26 Robert Dewar <dewar@adacore.com>
9646 * par_sco.adb (Traverse_Declarations_Or_Statements): Separate F/W
9647 qualifiers for FOR/WHILE loops
9648 * scos.ads: Use separate type letters F/W for for/while loops
9650 2010-01-26 Robert Dewar <dewar@adacore.com>
9652 * get_scos.adb (Get_SCOs): Implement new form of CS entries (multiple
9653 entries per line, one for each statement in the sequence).
9654 * par_sco.adb (Traverse_Declarations_Or_Statements): Increase array
9655 size from 100 to 10_000 for SC_Array to avoid any real possibility of
9656 overflow. Output decisions in for loops.
9657 Exclude labels from CS lines.
9658 * scos.ads: Clarify that label is not included in the entry point
9660 2010-01-26 Robert Dewar <dewar@adacore.com>
9662 * par_sco.adb (Traverse_Declarations_Or_Statments): Implement new
9663 format of statement sequence SCO entries (one location/statement).
9664 * put_scos.adb (Put_SCOs): Implement new format of CS lines
9665 * scos.ads: Update comments.
9666 * sem_eval.adb: Minor reformatting.
9668 2010-01-26 Robert Dewar <dewar@adacore.com>
9670 * par_sco.ads, par_sco.adb (Set_Statement_Entry): New handling of exits
9671 (Extend_Statement_Sequence): New procedures
9672 (Traverse_Declarations_Or_Statements): New handling for exits.
9674 2010-01-26 Robert Dewar <dewar@adacore.com>
9676 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
9679 2010-01-26 Robert Dewar <dewar@adacore.com>
9681 * par_sco.adb (Is_Logical_Operator): Exclude AND/OR/XOR
9682 * scos.ads: Clarify handling of logical operators
9684 2010-01-26 Arnaud Charlet <charlet@adacore.com>
9686 * s-tpoben.adb: Update comments.
9688 2010-01-26 Robert Dewar <dewar@adacore.com>
9690 * freeze.adb (Set_Small_Size): Don't set size if alignment clause
9693 2010-01-26 Robert Dewar <dewar@adacore.com>
9695 * scos.ads: Clean up documentation, remove obsolete XOR references
9696 2010-01-26 Vincent Celier <celier@adacore.com>
9698 * gnat_ugn.texi: Complete documentation on the restrictions for
9699 combined options in -gnatxxx switches.
9702 2010-01-26 Arnaud Charlet <charlet@adacore.com>
9704 * s-tpoben.adb (Initialize_Protection_Entries): If a PO is created from
9705 a controlled operation, abort is already deferred at this point, so we
9706 need to use Defer_Abort_Nestable.
9708 2010-01-26 Vincent Celier <celier@adacore.com>
9710 * prj-conf.adb (Get_Config_Switches): Check for a default language for
9711 a project extending a project with no languages.
9713 2010-01-26 Vincent Celier <celier@adacore.com>
9715 * switch-c.adb (Scan_Front_End_Switches): Take into account options
9716 that follow -gnatef.
9717 Allow -gnateG to be followed by other options.
9719 2010-01-26 Robert Dewar <dewar@adacore.com>
9721 * s-commun.ads, s-osprim-mingw.adb, s-stchop-vxworks.adb, sem_aggr.adb,
9722 s-vxwext.adb, sem_ch10.adb, sem_eval.adb, sem_prag.adb: Minor
9725 2010-01-26 Vasiliy Fofanov <fofanov@adacore.com>
9727 * g-regist.adb, g-regist.ads (For_Every_Key): New generic procedure
9728 that allows to iterate over all subkeys of a key.
9730 2010-01-26 Ed Falis <falis@adacore.com>
9732 * sysdep.c: enable NFS for VxWorks MILS
9733 * env.c: enable __gnat_environ for VxWorks MILS
9734 * gcc-interface/Makefile.in: Add VxWorks MILS target pairs.
9736 2010-01-25 Bob Duff <duff@adacore.com>
9738 * sem_aggr.adb (Resolve_Array_Aggregate): Check for the case where this
9739 is an internally-generated positional aggregate, and the bounds are
9740 already correctly set. We don't want to overwrite those bounds with
9741 bounds determined by context.
9743 2010-01-25 Robert Dewar <dewar@adacore.com>
9745 * g-sercom.ads, gnatcmd.adb, gnatlink.adb, a-ststio.adb, exp_ch6.adb,
9746 exp_ch9.adb, g-sechas.ads: Minor reformatting.
9748 2010-01-25 Thomas Quinot <quinot@adacore.com>
9750 * s-commun.adb (Last_Index): Count must be converted to SEO (a signed
9751 integer type) before subtracting 1, otherwise the computation may wrap
9752 (because size_t is modular) and cause the conversion to fail.
9754 2010-01-25 Ed Falis <falis@adacore.com>
9756 * sysdep.c, init.c: Adapt to support full run-time on VxWorks MILS.
9758 2010-01-25 Vincent Celier <celier@adacore.com>
9760 * prj-attr.adb: New attribute Run_Path_Origin_Required
9761 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process new
9762 attribute Run_Path_Origin_Required.
9763 * prj.ads (Project_Configuration): New component
9764 Run_Path_Origin_Supported.
9765 * snames.ads-tmpl: New standard name Run_Path_Origin_Required
9767 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9769 * sem_aggr.adb (Resolve_Array_Aggregate): If the bounds in a choice
9770 have errors, do not continue resolution of the aggregate.
9771 * sem_eval.adb (Eval_Indexed_Component): Do not attempt to evaluate if
9772 the array type indicates an error.
9774 2010-01-25 Bob Duff <duff@adacore.com>
9776 * sinfo.ads: Minor comment fixes.
9778 2010-01-25 Bob Duff <duff@adacore.com>
9780 * exp_ch4.adb, exp_aggr.adb: Minor comment fixes and code clean up.
9782 2010-01-25 Arnaud Charlet <charlet@adacore.com>
9784 * gnatvsn.ads (Current_Year): Update.
9786 2010-01-25 Florian Villoing <villoing@adacore.com>
9788 * gnat_ugn.texi: Fix typo.
9790 2010-01-25 Thomas Quinot <quinot@adacore.com>
9792 * scos.ads: Update specification.
9794 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9796 * sem_ch6.adb (Process_PPCs): If a postcondition is present and the
9797 enclosing subprogram has no previous spec, attach postcondition
9798 procedure to the defining entity for the body.
9800 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9802 * exp_aggr.adb (Build_Record_Aggr_Code); Do not generate call to
9803 initialization procedure of the ancestor part of an extension aggregate
9804 if it is an interface type.
9806 2010-01-25 Vincent Celier <celier@adacore.com>
9808 * gnatlink.adb (Process_Binder_File): The directory for the shared
9809 version of libgcc in the run path options is found in the subdirectory
9810 indicated by __gnat_default_libgcc_subdir.
9811 * link.c: Declare new const char * __gnat_default_libgcc_subdir for
9814 2010-01-25 Ed Schonberg <schonberg@adacore.com>
9816 * sem_prag.adb: More flexible pragma Annotate.
9818 2010-01-22 Eric Botcazou <ebotcazou@adacore.com>
9820 * system-linux-armel.ads (Stack_Check_Probes): Set to True.
9821 * system-linux-armeb.ads (Stack_Check_Probes): Likewise.
9823 2010-01-18 Eric Botcazou <ebotcazou@adacore.com>
9825 * gcc-interface/utils.c (create_var_decl_1): Fix formatting nits.
9827 2010-01-18 Jan Hubicka <jh@suse.cz>
9830 * gcc-interface/utils.c (create_var_decl_1): Do not set COMMON flag for
9831 unit local variables.
9833 2010-01-17 Laurent GUERBY <laurent@guerby.net>
9835 * gcc-interface/Makefile.in: Fix typo in arm*-*-linux-gnueabi.
9837 2010-01-11 Mikael Pettersson <mikpe@it.uu.se>
9839 * gcc-interface/Makefile.in: Add arm*-*-linux-gnueabi.
9840 * system-linux-armeb.ads, system-linux-armel.ads: New files.
9842 2010-01-09 Simon Wright <simon@pushface.org>
9845 * gcc-interface/Makefile.in (gnatlib-shared-darwin): Add missing
9850 Copyright (C) 2010 Free Software Foundation, Inc.
9852 Copying and distribution of this file, with or without modification,
9853 are permitted in any medium without royalty provided the copyright
9854 notice and this notice are preserved.