1 2010-10-22 Geert Bosch <bosch@adacore.com>
3 * gcc-interface/Make-lang.in: Remove ttypef.ads
4 * checks.adb: Use Machine_Mantissa_Value and Machine_Radix_Value instead
5 of Machine_Mantissa and Machine_Radix.
6 * cstand.adb (P_Float_Range): Directly print the Type_Low_Bound and
7 Type_High_Bound of the type, instead of choosing constants from Ttypef.
8 (Set_Float_Bounds): Compute the bounds based on Machine_Radix_Value,
9 Machine_Emax_Value and Machine_Mantissa_Value instead of special-casing
11 * einfo.ads (Machine_Emax_Value, Machine_Emin_Value,
12 Machine_Mantissa_Value, Machine_Radix_Value, Model_Emin_Value,
13 Model_Epsilon_Value, Model_Mantissa_Value, Model_Small_Value,
14 Safe_Emax_Value, Safe_First_Value, Safe_Last_Value): Add new
15 synthesized floating point attributes.
16 * einfo.adb (Float_Rep): Determine the kind of floating point
17 representation used for a given type.
18 (Machine_Emax_Value, Machine_Emin_Value, Machine_Mantissa_Value,
19 Machine_Radix_Value): Implement based on Float_Rep_Kind of a type and
20 the number of digits in the type.
21 (Model_Emin_Value, Model_Epsilon_Value, Model_Mantissa_Value,
22 Model_Small_Value, Safe_Emax_Value, Safe_First_Value, Safe_Last_Value):
23 Implement new synthesized floating point attributes based on the various
25 * eval_fat.ads: Remove Machine_Mantissa and Machine_Radix.
26 * eval_fat.adb (Machine_Mantissa, Machine_Radix): Remove. Use the
27 Machine_Mantissa_Value and Machine_Radix_Value functions instead.
28 * exp_vfpt.adb (VAXFF_Digits, VAXDF_Digits, VAXFG_Digits): Define local
29 constants, instead of using constants from Ttypef.
30 * gnat_rm.texi: Reword comments referencing Ttypef.
31 * sem_attr.ads: Reword comment referencing Ttypef.
32 * sem_attr.adb (Float_Attribute_Universal_Integer,
33 Float_Attribute_Universal_Real): Remove.
34 (Attribute_Machine_Emax, Attribute_Machine_Emin,
35 Attribute_Machine_Mantissa, Attribute_Model_Epsilon,
36 Attribute_Model_Mantissa, Attribute_Model_Small, Attribute_Safe_Emax,
37 Attribute_Safe_First, Attribute_Safe_Last, Model_Small_Value): Use
38 attributes in Einfo instead of Float_Attribute_Universal_Real and
39 Float_Attribute_Universal_Integer and all explicit constants.
40 * sem_util.ads, sem_util.adb (Real_Convert): Remove.
41 * sem_vfpt.adb (VAXDF_Digits, VAXFF_Digits, VAXGF_Digits, IEEEL_Digits,
42 IEEES_Digits): New local constants, in order to remove dependency on
44 * tbuild.ads (Make_Float_Literal): New function.
45 * tbuild.adb (Make_Float_Literal): New function to create a new
46 N_Real_Literal, constructing it as simple as possible for best
47 output of constants in -gnatS.
50 2010-10-22 Robert Dewar <dewar@adacore.com>
52 * checks.adb (Apply_Predicate_Check): Remove attempt at optimization
53 when subtype is the same, caused legitimate checks to be missed.
54 * exp_ch13.adb (Build_Predicate_Function): Use Nearest_Ancestor to get
55 inheritance from right entity.
56 * freeze.adb (Freeze_Entity): Use Nearest_Ancestor to freeze in the
57 derived type case if the ancestor type has predicates.
58 * sem_aux.ads, sem_aux.adb (Nearest_Ancestor): New function.
59 * sem_prag.adb (Check_Enabled): Minor code reorganization.
61 2010-10-22 Arnaud Charlet <charlet@adacore.com>
63 * gcc-interface/utils.c, gcc-interface/gigi.h: Minor reformatting.
65 2010-10-22 Thomas Quinot <quinot@adacore.com>
67 * einfo.ads (Declaration_Node): Clarify documentation, in particular
68 regarding what is returned for subprogram entities.
70 2010-10-22 Arnaud Charlet <charlet@adacore.com>
72 * exp_attr.adb (Make_Range_Test): Generate a Range node instead of
73 explicit comparisons, generates simpler expanded code.
74 * a-except-2005.adb (Rcheck_06_Ext): New.
75 * gcc-interface/trans.c (gigi, gnat_to_gnu): Handle validity checks
77 * gcc-interface/Make-lang.in: Update dependencies.
79 2010-10-22 Robert Dewar <dewar@adacore.com>
81 * sem_ch3.adb (Array_Type_Declaration): Error for subtype wi predicate
83 (Constrain_Index): Error of subtype wi predicate in index constraint
84 * sem_ch9.adb (Analyze_Entry_Declaration): Error of subtype wi
85 predicate in entry family.
86 * sem_res.adb (Resolve_Slice): Error of type wi predicate in slice.
88 2010-10-22 Javier Miranda <miranda@adacore.com>
90 * sem_util.ads, sem_util.adb (Collect_Parents): New subprogram.
91 (Original_Corresponding_Operation): New subprogram.
92 (Visible_Ancestors): New subprogram.
93 * sem_ch6.adb (New_Overloaded_Entity): Handle new case of dispatching
94 operation that overrides a hidden inherited primitive.
95 * sem_disp.adb (Find_Hidden_Overridden_Primitive): New subprogram.
96 (Check_Dispatching_Operation): if the new dispatching operation
97 does not override a visible primtive then check if it overrides
98 some hidden inherited primitive.
100 2010-10-22 Ed Schonberg <schonberg@adacore.com>
102 * sem_ch10.adb (Analyze_With_Clause): If the parent_unit_name in a with
103 clause is a child unit that denotes a renaming, replace the
104 parent_unit_name with a reference to the renamed unit, because the
105 prefix is irrelevant to subsequent visibility..
107 2010-10-22 Robert Dewar <dewar@adacore.com>
109 * einfo.ads, einfo.adb (Has_Predicates): Flag is now on all entities
111 * exp_ch13.adb (Build_Predicate_Function): Output info msgs for
113 * sem_ch13.adb (Analyze_Aspect_Specifications): Make sure we have a
114 freeze node for entities for which a predicate is specified.
115 (Analyze_Aspect_Specifications): Avoid duplicate calls
116 * sem_ch3.adb (Analyze_Full_Type_Declaration): Remove attempt to avoid
117 duplicate calls to Analye_Aspect_Specifications.
119 2010-10-22 Thomas Quinot <quinot@adacore.com>
121 * a-exextr.adb, atree.ads, freeze.adb: Minor reformatting.
123 2010-10-21 Robert Dewar <dewar@adacore.com>
125 * sem_ch3.adb: Minor reformatting.
127 2010-10-21 Thomas Quinot <quinot@adacore.com>
129 * einfo.ads (Next_Girder_Discriminant): Remove obsolete description for
132 2010-10-21 Nicolas Roche <roche@adacore.com>
134 * gnatmem.adb, memroot.adb, memroot.ads, gmem.c,
135 gcc-interface/Makefile.in: Remove gnatmem specific files.
137 2010-10-21 Thomas Quinot <quinot@adacore.com>
139 * sem_res.adb, exp_ch13.adb: Minor reformatting.
141 2010-10-21 Thomas Quinot <quinot@adacore.com>
143 * sem_ch3.adb (Check_Or_Process_Discriminant): Reject illegal attempt
144 to provide a tagged full view as the completion of an untagged partial
145 view if the partial view has a discriminant with default.
147 2010-10-21 Arnaud Charlet <charlet@adacore.com>
149 * gcc-interface/Make-lang.in: Update dependencies.
151 2010-10-21 Robert Dewar <dewar@adacore.com>
153 * checks.ads, checks.adb (Apply_Predicate_Check): New procedure
154 Minor code reorganization.
155 * einfo.adb (Has_Predicates): Fix assertion.
156 * exp_ch13.adb (Build_Predicate_Function): Move from Sem_Ch13 spec to
158 (Expand_N_Freeze_Entity): Call build predicate function.
159 * exp_ch4.adb (Expand_N_Type_Conversion): Add predicate check.
160 * exp_ch5.adb (Expand_N_Assignment_Statement): Add predicate check.
161 * exp_prag.adb (Expand_Pragma_Check): Use all lower case for name of
163 * freeze.adb (Freeze_Entity): Move building of predicate function to
165 * sem_ch13.adb (Build_Predicate_Function): Move from Sem_Ch13 to
167 * sem_ch13.ads (Build_Predicate_Function): Move from Sem_Ch13 to
169 * sem_ch3.adb (Analyze_Declarations): Remove call to build predicate
171 * sem_res.adb (Resolve_Actuals): Apply predicate check.
173 2010-10-21 Robert Dewar <dewar@adacore.com>
175 * einfo.ads, einfo.adb: Replace Predicate_Procedure by
177 * exp_ch4.adb (Expand_N_In): Handle predicates.
178 * exp_util.ads, exp_util.adb (Make_Predicate_Call): New function.
179 (Make_Predicate_Check): New function.
180 * freeze.adb (Freee_Entity): Build predicate function if needed.
181 * sem_ch13.adb (Build_Predicate_Function): New procedure.
182 (Analyze_Aspect_Specifications): No third argument for Predicate pragma
183 built from Predicate aspect.
184 * sem_ch13.ads (Build_Predicate_Function): New procedure.
185 * sem_ch3.adb: Add handling for predicates.
186 * sem_eval.adb (Eval_Membership_Op): Never static if predicate
188 * sem_prag.adb (Analye_Pragma, case Predicate): Does not take a third
191 2010-10-21 Robert Dewar <dewar@adacore.com>
193 * einfo.ads, einfo.adb: Add handling of predicates.
194 Rework handling of invariants.
195 * exp_ch3.adb, exp_ch4.adb, exp_util.adb, sem_ch6.adb: Minor changes to
196 handing of invariants.
197 * par-prag.adb: Add dummy entry for pragma Predicate
198 * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing for
200 * sem_prag.adb: Add implementation of pragma Predicate.
201 * snames.ads-tmpl: Add entries for pragma Predicate.
203 2010-10-21 Robert Dewar <dewar@adacore.com>
205 * elists.adb: Minor reformatting.
207 2010-10-21 Geert Bosch <bosch@adacore.com>
209 * urealp.adb (UR_Write): Write hexadecimal constants with exponent 1 as
210 decimal constants, and write any others using the exponent notation.
211 Minor reformatting throughout
212 (Store_Ureal_Normalized): New function (minor code reorganization)
214 2010-10-21 Robert Dewar <dewar@adacore.com>
216 * einfo.ads, xeinfo.adb: Minor reformatting.
217 * s-stalib.ads: Minor comment fixes.
219 2010-10-21 Ed Schonberg <schonberg@adacore.com>
221 * sem_ch6.adb (Enter_Overloaded_Entity): Refine warning message about
222 hiding, to remove noise warnings about hiding predefined operators.
224 2010-10-21 Emmanuel Briot <briot@adacore.com>
226 * g-comlin.adb (Add_Switch): Fix handling of switches with no separator
227 when the parameter has length 1.
229 2010-10-21 Jose Ruiz <ruiz@adacore.com>
231 * sem_prag.adb (Set_Ravenscar_Profile): Enforce the restrictions of no
232 dependence on Ada.Execution_Time.Timers,
233 Ada.Execution_Time.Group_Budget, and
234 System.Multiprocessors.Dispatching_Domains which are part of the
236 * impunit.adb (Non_Imp_File_Names_05): Add the file "a-etgrbu" to the
237 list of Ada 2005 files for package Ada.Execution_Time.Group_Budgets.
238 (Non_Imp_File_Names_12): Add the file "s-mudido" to the list of Ada 2012
239 files for package System.Mutiprocessors.Dispatching_Domains.
241 2010-10-21 Tristan Gingold <gingold@adacore.com>
243 * ug_words, vms_data.ads: Define the VMS qualifier for -gnateE.
245 2010-10-21 Thomas Quinot <quinot@adacore.com>
247 * sem_ch3.ads (Process_Discriminants): Clarify cases where this is
248 called for a completion.
250 2010-10-21 Geert Bosch <bosch@adacore.com>
252 * uintp.ads: Expand image buffer to have enough room for 128-bit values
253 * urealp.ads (UR_Write): Write constants in base 16 in hexadecimal
254 notation; either as fixed point literal or in canonical radix 16
257 2010-10-21 Robert Dewar <dewar@adacore.com>
259 * a-cgaaso.ads, a-tags.ads, exp_ch3.adb, exp_attr.adb, exp_ch4.adb,
260 exp_ch3.ads, exp_ch7.adb, exp_ch9.adb, exp_disp.adb, exp_disp.ads,
261 exp_dist.adb, exp_util.adb, layout.adb, lib-xref.adb, lib.ads,
262 prep.adb, prj-strt.adb, s-ststop.adb, s-taskin.ads, s-tataat.ads,
263 sem_aggr.adb, sem_attr.adb, sem_ch12.adb, sem_ch3.adb, sem_ch4.adb,
264 sem_ch4.ads, sem_ch5.adb, sem_res.adb, sem_util.adb, einfo.adb,
265 g-sothco.ads, make.adb: Minor reformatting
267 2010-10-21 Vincent Celier <celier@adacore.com>
269 * vms_data.ads: Add new qualifiers /SRC_INFO= and
270 /UNCHECKED_SHARED_LIB_IMPORTS for GNAT COMPILE.
271 Correct qualifier /SRC_INFO= for GNAT MAKE
273 2010-10-21 Ed Schonberg <schonberg@adacore.com>
275 * exp_aggr.adb (Flatten): An association for a subtype may be an
277 (Safe_Left_Hand_Side): An unchecked conversion is part of a safe
278 left-hand side if the expression is.
279 (Is_Safe_Index): new predicate
280 * exp_ch3.adb (Expand_Freeze_Enumeration_Type): Indicate that the
281 generated Rep_To_Pos function is a Pure_Function.
283 2010-10-21 Robert Dewar <dewar@adacore.com>
285 * gnat_rm.texi: Document Invariant pragma.
287 2010-10-21 Javier Miranda <miranda@adacore.com>
289 * exp_ch5.adb: Update comment.
291 2010-10-21 Robert Dewar <dewar@adacore.com>
293 * sem_ch13.adb (Build_Invariant_Procedure): Remove commented out code
294 for interfaces, since invariants are not allowed on interfaces in any
297 2010-10-21 Javier Miranda <miranda@adacore.com>
299 * sem_attr.adb (Resolve_Attribute): After replacing the range attribute
300 node with a range expression ensure that its evaluation will not have
302 * exp_ch5.adb (Expand_Assign_Array): Propagate the Parent to the
303 unchecked conversion node generated to handle assignment of private
304 types. Required to allow climbing the subtree if Insert_Action is
307 2010-10-21 Robert Dewar <dewar@adacore.com>
309 * par-ch3.adb (P_Interface_Type_Definition): Allow for possibility of
310 aspect clause presence terminating the type definition.
312 2010-10-21 Robert Dewar <dewar@adacore.com>
314 * exp_ch4.adb, exp_intr.adb, par-ch4.adb, scn.adb, sem_ch4.adb,
315 sem_res.adb, sem_util.adb, sinfo.ads, a-except-2005.adb: Minor
317 * snames.ads-tmpl: Add note on Name_Some (not a reserved keyword).
319 2010-10-21 Geert Bosch <bosch@adacore.com>
321 * ttypef.ads: Further cleanup of Safe_XXX float attributes.
323 2010-10-19 Ed Schonberg <schonberg@adacore.com>
325 * exp_ch4.adb, exp_ch4.ads (Expand_Quantified_Expression): New procedure
326 * exp_util.adb (Insert_Actions): Include Quantified_Expression.
327 * expander.adb: Call Expand_Qualified_Expression.
328 * par.adb: New procedure P_Quantified_Expression. Make
329 P_Loop_Parameter_Specification global for use in quantified expressions.
330 * par-ch3.adb (P_Subtype_Mark_Resync): Allow "some" as an identifier if
332 * par-ch4.adb: New procedure P_Quantified_Expression.
333 * par-ch5.adb: P_Loop_Parameter_Specification is now global.
334 * scans.adb, scans.ads: Introduce token Some. For now leave as
336 * scn.adb (Scan_Reserved_Identifier): For earlier versions of Ada,
337 treat Some as a regular identifier.
338 * sem.adb: Call Analyze_Quantified_Expression.
339 * sem_ch4.adb, sem_ch4.ads: New procedure Analyze_Quantified_Expression.
340 * sem_ch5.adb, sem_ch5.ads: Analyze_Iteration_Scheme is public, for use
341 in quantified expressions.
342 * sem_res.adb: New procedure Resolve_Qualified_Expression.
343 * sinfo.adb, sinfo.ads: New node N_Quantified_Expression
344 * snames.ads-tmpl: New name Some.
345 * sprint.adb: Output quantified_expression.
347 2010-10-19 Robert Dewar <dewar@adacore.com>
349 * a-exexda.adb: Minor reformatting
350 Minor code reorganization.
352 2010-10-19 Robert Dewar <dewar@adacore.com>
354 * sem_eval.adb: Minor reformatting.
356 2010-10-19 Tristan Gingold <gingold@adacore.com>
358 * exp_ch4.adb (Expand_N_And_Op, Expand_N_Or_Op, Expand_N_Xor_Op): Call
359 Expand_Intrinsic_Call if the function is intrinsic.
360 * exp_intr_adb (Expand_Binary_Operator): Handle VMS case for logical
361 binary operator on the unsigned_quadword record.
362 * exp_intr.ads (Expand_Intrinsic_Call): Update comments.
364 2010-10-19 Geert Bosch <bosch@adacore.com>
366 * gnat_rm.texi (pragma Float_Representation): Fix typo.
368 2010-10-19 Arnaud Charlet <charlet@adacore.com>
370 * switch-c.adb (Scan_Front_End_Switches): Add handling of -gnateE.
371 * fe.h (Exception_Extra_Info): Declare.
372 * usage.adb (usage): Add -gnateE doc.
373 * checks.adb (Install_Null_Excluding_Check): Use better sloc.
374 * sem_util.adb (Insert_Explicit_Dereference): Ditto.
375 * gnat_ugn.texi: Document -gnateE switch.
376 * a-except.adb (Set_Exception_C_Msg): New parameter Column.
377 * a-except-2005.adb (Set_Exception_C_Msg): New parameter Column.
378 (Raise_Constraint_Error_Msg): Ditto.
379 (Image): New helper function.
380 (Rcheck_00_Ext, Rcheck_05_Ext, Rcheck_12_Ext): New procedure with more
381 detailed exception information.
382 Adjust calls to Set_Exception_C_Msg and Raise_Constraint_Error_Msg.
383 * a-exexda.adb (Set_Exception_C_Msg): New parameter Column.
384 * opt.ads (Exception_Extra_Info): New flag.
385 * gcc-interface/utils.c (gnat_raise_decls_ext): New.
386 * gcc-interface/utils2.c (build_call_raise_range,
387 build_call_raise_column): New functions.
388 * gcc-interface/gigi.h (exception_info_kind, gnat_raise_decls_ext,
389 build_call_raise_range, build_call_raise_column): Declare.
390 gcc-interface/trans.c (build_raise_check): New function.
391 (gigi): Initialize gnat_raise_decls_ext.
392 (gnat_to_gnu): Add initial support for -gnateE switch.
393 * gcc-interface/Make-lang.in: Update dependencies.
395 2010-10-19 Geert Bosch <bosch@adacore.com>
397 * ttypef.ads: Change VAXDF_Last to be -VAXDF_First, as type is
400 2010-10-19 Robert Dewar <dewar@adacore.com>
402 * atree.h (Field29): Fix incorrect definition.
403 * einfo.adb (Invariant_Procedure): New attribute
404 (Has_Invariants): New flag
405 (Has_Inheritable_Invariants): New flag
406 (OK_To_Reference): New flag
407 Minor code reorganization (use Next_Rep_Item function)
408 * einfo.ads (Invariant_Procedure): New attribute
409 (Has_Invariants): New flag
410 (Has_Inheritable_Invariants): New flag
411 (OK_To_Reference): New flag
412 * exp_ch3.adb (Expand_N_Object_Declaration): Add check for invariant
413 * exp_ch4.adb (Expand_N_Type_Conversion): Check invariant on type
414 conversion. Minor reformatting.
415 * exp_util.ads, exp_util.adb (Make_Invariant_Call): New procedure.
416 * opt.ads (List_Inherited_Aspects): New name for List_Inherited_Pre_Post
417 * par-prag.adb: Add dummy entry for pragma Invariant.
418 * sem_ch13.adb (Build_Invariant_Procedure): New procedure
419 (Analyze_Aspect_Specification): Add support for Invariant aspect
420 * sem_ch13.ads (Build_Invariant_Procedure): New procedure
421 * sem_ch3.adb (Build_Derived_Type): Propagate invariant information
422 (Process_Full_View): Deal with invariants, building invariant procedure
424 * sem_ch6.adb (Process_PPCs): Add processing of invariants
425 * sem_ch7.adb (Analyze_Package_Specification): Build invariant
427 * sem_prag.adb: Implement pragma Invariant.
428 * sem_res.adb (Resolve_Entity_Name): Allow type reference if
430 * sem_warn.adb (List_Inherited_Aspects): New name for
431 List_Inherited_Pre_Post.
432 * snames.ads-tmpl: Add entries for pragma Invariant.
433 * treepr.adb (Print_Entity_Information): Add handling of Field29.
434 * usage.adb: Warning .l/.L applies to invariant as well as pre/post.
436 2010-10-19 Javier Miranda <miranda@adacore.com>
438 * par-ch4.adb: Update documentation of Ada 2012 syntax rules for
441 2010-10-19 Bob Duff <duff@adacore.com>
443 * sem_attr.adb (Eval_Attribute): Implement Max_Alignment_For_Allocation
445 * exp_attr.adb (Expand_N_Attribute_Reference): Add
446 Attribute_Max_Alignment_For_Allocation to the case statement.
447 * snames.ads-tmpl (Name_Max_Alignment_For_Allocation,
448 Attribute_Max_Alignment_For_Allocation): New attribute name.
450 2010-10-19 Ed Schonberg <schonberg@adacore.com>
452 * sem_ch3.adb (OK_For_Limited_Init_In_05): a call to an access to
453 parameterless function appears syntactically as an explicit dereference.
455 2010-10-19 Thomas Quinot <quinot@adacore.com>
457 * sem_ch8.adb, sem_ch12.adb, opt.ads, sem_ch6.adb, sem_res.adb,
458 i-cexten.ads, exp_disp.adb, exp_ch4.adb, exp_ch9.adb: Minor reformatting
460 2010-10-19 Thomas Quinot <quinot@adacore.com>
462 * sem_util.adb (Collect_Primitive_Operations): A function with an
463 anonymous access result designating T is a primitive operation of T.
465 2010-10-19 Tristan Gingold <gingold@adacore.com>
467 * init.c: On Alpha/VMS, only adjust PC for HPARITH.
469 2010-10-19 Tristan Gingold <gingold@adacore.com>
471 * sem_attr.adb (Eval_Attribute): Handle Attribute_Ref, which can be
474 2010-10-19 Ed Schonberg <schonberg@adacore.com>
476 * sem_ch12.adb (Check_Generic_Child_Unit): Handle properly the case of
477 an instantiation of a renaming of the implicit generic child that
478 appears within an instance of its parent.
480 2010-10-19 Thomas Quinot <quinot@adacore.com>
482 * exp_ch9.adb: Minor reformatting.
483 * einfo.adb, einfo.ads, atree.adb, atree.ads, exp_dist.adb, atree.h:
484 (Referenced_Object): Remove unused entity attribute.
485 (Direct_Primitive_Operations): Move to Elist10, this is set for all
486 tagged types, including synchronous ones, so can't use field15 which is
487 used as Storage_Size_Variable for task types and Entry_Bodies_Array for
489 (Add_RACW_Primitive_Declarations_And_Bodies): Remove bogus guard
490 against Concurrent_Types (we must handle the case of a RACW designating
491 a class-wide private synchronous type).
492 Use Direct_Primitive_Operations, not Primitive_Operations, since we
493 really want the former.
495 2010-10-19 Bob Duff <duff@adacore.com>
497 * sem_ch8.adb (Pop_Scope): Change "return;" to "raise Program_Error;".
499 2010-10-19 Javier Miranda <miranda@adacore.com>
501 * exp_ch4.adb (Expand_Set_Membership.Make_Cond): Add missing support
504 2010-10-19 Thomas Quinot <quinot@adacore.com>
506 * einfo.ads, atree.ads: Minor comment fixes.
508 2010-10-18 Bob Duff <duff@adacore.com>
510 * sinfo.ads, sinfo.adb: Modify comment about adding fields to be more
511 correct, and to be in a more convenient order.
512 (Default_Storage_Pool): New field of N_Compilation_Unit_Aux, for
513 recording the Default_Storage_Pool for a parent library unit.
514 * einfo.ads (Etype): Document the case in which Etype can be Empty.
515 * sem_prag.adb (Pragma_Default_Storage_Pool): Analyze the new
516 Default_Storage_Pool pragma.
517 * sem.ads (Save_Default_Storage_Pool): Save area for push/pop scopes.
518 * gnat_ugn.texi: Document Default_Storage_Pool as a new configuration
520 * freeze.adb (Freeze_Entity): When freezing an access type, take into
521 account any Default_Storage_Pool pragma that applies. We have to do
522 this at the freezing point, because up until that point, a Storage_Pool
523 or Storage_Size clause could occur, which should override the
524 Default_Storage_Pool.
525 * par-prag.adb: Add this pragma to the list of pragmas handled entirely
527 * sem_ch8.adb (Push_Scope, Pop_Scope): Save and restore the
528 Default_Storage_Pool information.
529 * opt.ads (Default_Pool, Default_Pool_Config): New globals for recording
530 currently-applicable Default_Storage_Pool pragmas.
531 * opt.adb: Save/restore the globals as appropriate.
532 * snames.ads-tmpl (Name_Default_Storage_Pool,
533 Pragma_Default_Storage_Pool): New pragma name.
535 2010-10-18 Vincent Celier <celier@adacore.com>
537 * make.adb (Switches_Of): Put the spec and body suffix in canonical
540 2010-10-18 Ed Schonberg <schonberg@adacore.com>
542 * sem_ch13.adb (Analyze_Aspect_Specifications): If subprogram is at the
543 library level, the pre/postconditions must be treated as global
544 declarations, i.e. placed on the Aux_Decl nodes of the compilation unit.
545 * freeze.adb (Freeze_Expression): If the expression is at library level
546 there is no enclosing record to check.
548 2010-10-18 Javier Miranda <miranda@adacore.com>
550 * sem_ch3.ads (Find_Type_Name): Add documentation.
551 * sem_ch3.adb (Analyze_Full_Type_Declaration): Code cleanup because the
552 propagation of the class-wide entity is now done by routine
553 Find_Type_Name to factorize this code.
554 (Analyze_Private_Extension_Declaration): Handle private type that
555 completes an incomplete type.
556 (Tag_Mismatch): Add error message for tag mismatch in a private type
557 declaration that completes an incomplete type.
558 (Find_Type_Name): Handle completion of incomplete type by means of
559 a private declaration. Generate an error if a tagged incomplete type
560 is completed by an untagged private type.
561 * sem_ch7.adb (New_Private_Type): Handle private type that completes an
563 * einfo.ads (Full_View): Add documentation.
565 2010-10-18 Ed Schonberg <schonberg@adacore.com>
567 * sem_ch12.adb (Analyze_Formal_Package_Declaration): If the package is
568 a renaming, generate a reference for it before analyzing the renamed
569 entity, to prevent spurious warnings.
571 2010-10-18 Jose Ruiz <ruiz@adacore.com>
573 * adaint.c (__gnat_pthread_setaffinity_np,
574 __gnat_pthread_attr_setaffinity_np): Remove wrappers, no longer needed.
575 * s-osinte-linux.ads (pthread_setaffinity_np,
576 pthread_attr_setaffinity_np): Remove use of wrappers.
577 * s-taprop-linux.adb (Create_Task, Initialize): Restore check to verify
578 whether the affinity functionality is available in the OS.
579 * gcc-interface/utils.c: Set TREE_STATIC on functions only when there
582 2010-10-18 Robert Dewar <dewar@adacore.com>
584 * einfo.ads, einfo.adb: Minor reformatting.
585 * gnat_ugn.texi, ug_words: Add missing entries, fix typos.
587 2010-10-18 Emmanuel Briot <briot@adacore.com>
589 * g-comlin.adb (Is_In_Config): When the switch accepts either a space
590 or equal, we output an equal every time.
592 2010-10-18 Ed Schonberg <schonberg@adacore.com>
594 * sem_res.adb (Resolve_Entry_Call): Handle call to an entry family
595 member when pre/post conditions are present.
596 * exp_ch9.adb (Build_PPC_Wrapper): The PPC_Wrapper for an entry family
597 includes an index parameter, and the name of the enclosed entry call is
598 an indexed component.
600 2010-10-18 Robert Dewar <dewar@adacore.com>
602 * einfo.ads, einfo.adb: Minor reformatting.
604 2010-10-18 Jose Ruiz <ruiz@adacore.com>
606 * adaint.c (__gnat_pthread_setaffinity_np,
607 __gnat_pthread_attr_setaffinity_np): Add these wrappers which check the
608 availability of the underlying OS functionality before calling.
609 * s-osinte-linux.ads (pthread_setaffinity_np,
610 pthread_attr_setaffinity_np): Call a wrapper instead of the OS function
611 to perform a check of its availability.
612 * s-taprop-linux.adb (Create_Task): Remove the check to verify whether
613 the affinity functionality is available in the OS. Now done in a wrapper
614 * gcc-interface/Makefile.in: Remove vmshandler.asm, unused.
615 * gcc-interface/Make-lang.in: Update dependencies.
617 2010-10-18 Robert Dewar <dewar@adacore.com>
619 * sinfo.ads, sinfo.adb: Change Has_Pragma_CPU to Flag14 (Flag10 is
622 2010-10-18 Robert Dewar <dewar@adacore.com>
624 * s-stausa.adb, s-taprop-linux.adb, s-taprop-mingw.adb, s-tassta.ads:
627 2010-10-18 Robert Dewar <dewar@adacore.com>
629 * exp_strm.adb (Build_Elementary_Input_Call): Check
630 No_Default_Stream_Attributes.
631 (Build_Elementary_Write_Call): Check No_Default_Stream_Attributes
632 * s-rident.ads: Add restriction No_Default_Stream_Attributes
633 Put restriction No_Allocators_After_Elaboration in alpha order
635 2010-10-18 Jose Ruiz <ruiz@adacore.com>
637 * exp_ch9.adb (Expand_N_Task_Type_Declaration): Add field corresponding
638 to the affinity when expanding the task declaration.
639 (Make_Task_Create_Call): Add the affinity parameter to the call to
641 * sem_prag.adb (Analyze_Pragma): Add the analysis for pragma CPU,
642 taking into account the case when it applies to a subprogram (only for
643 main and with static expression) or to a task.
644 * par_prag.adb:(Prag): Make pragma CPU a valid one.
645 * snames.ads-tmpl (Name_uCPU, Name_CPU): Add these new name identifiers
646 used by the expander for handling the affinity parameter when creating
648 (Pragma_Id): Add Pragma_CPU as a valid one.
649 * rtsfind.ads (RTU_Id): Make System_Multiprocessors accesible.
650 (RE_Id, RE_Unit_Table): Make the entities RE_CPU_Range and
651 RE_Unspecified_CPU visible.
652 * sinfo.ads, sinfo.adb (Has_Pragma_CPU, Set_Has_Pragma_CPU): Add these
653 two subprograms to set/get the flag indicating whether there is a
654 pragma CPU which applies to the entity.
655 * lib.ads, lib.adb (Unit_Record, Default_Main_CPU, Main_CPU,
656 Set_Main_CPU): Add the field Main_CPU to Unit_Record to store the value
657 of the affinity associated to the main subprogram (if any).
658 Default_Main_CPU is used when no affinity is set. Subprograms
659 Set_Main_CPU and Main_CPU are added to set/get the affinity of the main
661 * ali.ads, ali.adb (ALIs_Record): Add field Main_CPU to contain the
662 value of the affinity of the main subprogram.
663 (Scan_ALI): Get the affinity of the main subprogram (encoded as C=XX in
665 * lib-writ.ads, lib-writ.adb (M_Parameters): Encode the affinity of the
666 main subprogram in the M (main) line using C=XX.
667 * lib-load.adb (Create_Dummy_Package_Unit, Load_Main_Source,
668 Load_Unit): Add new field Main_CPU.
669 * bindgen.adb (Gen_Adainit_Ada, Gen_Adainit_C): Add the code to pass
670 the affinity of the main subprogram to the run time.
671 * s-taskin.ads (Common_ATCB): Add the field Base_CPU to store the
673 (Unspecified_CPU): Add this constant to identify the case when no
674 affinity is set for tasks.
675 * s-taskin.adb (Initialize_ATCB): Store the value coming from pragma
676 CPU in the common part of the ATCB.
677 (Initialize): Store the value coming from pragma CPU (for the
678 environment task) in the common part of the ATCB.
679 * s-tassta.ads, s-tassta.adb (Create_Task): Add the affinity specified
680 by pragma CPU to the ATCB.
681 * s-tarest.ads, s-tarest.adb (Create_Restricted_Task): Add the affinity
682 specified by pragma CPU to the ATCB.
683 * s-tporft.adb (Register_Foreign_Thread): Add the new affinity
684 parameter to the call to Initialize_ATCB.
685 * s-taprop-linux.adb (Create_Task): Change the attributes of the thread
686 to include the task affinity before creation. Additionally, the
687 affinity selected with Task_Info is also enforced changing the
688 attributes at task creation time, instead of changing it after creation.
689 (Initialize): Change the affinity of the environment task if required
691 * s-osinte-linux.ads (pthread_setaffinity_np): Instead of using a
692 wrapper to check whether the function is available or not, use a weak
694 (pthread_attr_setaffinity_np): Add the import of this function which is
695 used to change the affinity in the attributes used to create a thread.
696 * adaint.c (__gnat_pthread_attr_setaffinity_np): Remove this wrapper.
697 It was used to check whether the pthread function was available or not,
698 but the use of a weak symbol handles this situation in a cleaner way.
699 * s-taprop-mingw.adb (Create_Task, Initialize): Change the affinity of
700 tasks (including the environment task) if required by a pragma CPU.
701 * s-taprop-solaris.adb (Enter_Task): Change the affinity of tasks
702 (including the environment task) if required by a pragma CPU.
703 * s-taprop-vxworks.adb (Create_Task, Initialize): Change the affinity
704 of tasks (including the environment task) if required by a pragma CPU.
705 * init.c (__gl_main_cpu): Make this value visible to the run time. It
706 will pass the affinity of the environment task.
708 2010-10-18 Javier Miranda <miranda@adacore.com>
710 * einfo.adb (Direct_Primitive_Operations): Complete assertion.
712 2010-10-18 Vincent Celier <celier@adacore.com>
714 * prj.ads (Source_Data): New Boolean flag In_The_Queue.
716 2010-10-18 Tristan Gingold <gingold@adacore.com>
718 * s-stausa.ads: Add the Top parameter to Initialize_Analyzer.
719 * s-stausa.adb: Use the top parameter. In Fill_Stack, use the
721 * s-tassta.adb (Task_Wrapper): Call Initialize_Analyzer after Enter_Task
722 so that Pri_Stack_Info.Limit can be set and used.
724 2010-10-18 Robert Dewar <dewar@adacore.com>
726 * einfo.ads: Minor reformatting.
727 * sem_res.adb (Resolve_Allocator): Add test for violating
728 No_Anonymous_Allocators.
730 2010-10-18 Robert Dewar <dewar@adacore.com>
732 * prj-nmsc.adb, prj.adb, sem_res.adb: Minor reformatting.
734 2010-10-18 Ed Schonberg <schonberg@adacore.com>
736 * sem_util.adb (Insert_Explicit_Dereference): If operand is a selected
737 component, we generate a reference to the ultimate prefix when it is an
738 entity name. We must place the reference on the identifier for that
739 prefix, and not on the operand itself, to prevent spurious extra
740 references in the ali file.
742 2010-10-18 Vincent Celier <celier@adacore.com>
744 * projects.texi: Add documentation for attribute Ignore_Source_Sub_Dirs
746 2010-10-18 Ed Schonberg <schonberg@adacore.com>
748 * einfo.ads, einfo.adb: New attribute PPC_Wrapper for entries and entry
749 families. Denotes a procedure that performs pre/postcondition checks
750 and then performs the entry call.
751 * sem_res.adb (Resolve_Entry_Call): If the entry has
752 pre/postconditions, replace call with a call to the PPC_Wrapper of the
754 * exp_ch9.adb (Build_PPC_Wrapper): new procedure.
755 (Expand_N_Entry_Declaration, Expand_N_Protected_Type_Declaration): call
756 Build_PPC_Wrapper for all entries in task and protected definitions.
758 2010-10-18 Tristan Gingold <gingold@adacore.com>
760 * init.c: Add __gnat_set_stack_guard_page and __gnat_set_stack_limit.
761 Implement stack limitation on VMS.
764 2010-10-18 Vincent Celier <celier@adacore.com>
766 * prj.adb (Is_Compilable): Do not modify Source.Compilable until the
767 source record has been initialized.
769 2010-10-18 Robert Dewar <dewar@adacore.com>
771 * einfo.adb: Minor code reorganization (Primitive_Operations is a
772 synthesized attribute routine and was in the wrong place).
774 2010-10-18 Tristan Gingold <gingold@adacore.com>
776 * init.c: Indentation, and minor changes to more closely follow GNU
777 style rules. Make more variable statics.
779 2010-10-18 Vincent Celier <celier@adacore.com>
781 * prj.adb (Is_Compilable): On first call for a source, cache value in
782 component Compilable.
783 * prj.ads (Source_Data): New component Compilable, to cache the value
784 returned by function Is_Compilable.
786 2010-10-18 Vincent Celier <celier@adacore.com>
788 * prj-attr.adb: New project level attribute Ignore_Source_Sub_Dirs.
789 * prj-nmsc.adb (Expand_Subdirectory_Pattern): New string list parameter
791 (Recursive_Find_Dirs): Do not consider subdirectories listed in Ignore.
792 (Get_Directories): Call Find_Source_Dirs with the string list
793 indicated by attribute Ignore_Source_Sub_Dirs.
794 * snames.ads-tmpl: New standard name Ignore_Source_Sub_Dirs.
796 2010-10-18 Javier Miranda <miranda@adacore.com>
798 * einfo.ads, einfo.adb (Primitive_Operations): New synthesized
800 (Direct_Primitive_Operations): Renaming of old Primitive_Operations.
801 (Set_Direct_Primitive_Operations): Renaming of old
802 Set_Primitive_Operations. Update documentation
803 * sem_ch3.adb, exp_util.adb, sem_ch7.adb, sem_ch8.adb, exp_ch3.adb:
804 Replace occurrences of Set_Primitive_Operations by
805 Set_Direct_Primitive_Operations.
806 * sem_cat.adb (Validate_RACW_Primitives): No action needed for tagged
808 * exp_dist.adb (Add_RACW_Primitive_Declarations_And_Bodies): Do not
809 process primitives of concurrent types.
810 * lib-xref.adb (Generate_Prim_Op_References): Minor code cleanup.
812 2010-10-18 Eric Botcazou <ebotcazou@adacore.com>
814 * exp_ch6.adb (Expand_N_Subprogram_Declaration): Use Freeze_Before.
815 (Expand_Protected_Object_Reference): Likewise.
816 * sem_attr.adb (Resolve_Attribute): Likewise.
817 * sem_ch3.adb (Analyze_Subtype_Declaration): Likewise.
818 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Likewise.
820 2010-10-18 Arnaud Charlet <charlet@adacore.com>
822 * g-comlin.adb (Get_Switches): Prevent dereferencing null Config.
824 2010-10-18 Robert Dewar <dewar@adacore.com>
826 * aspects.ads, aspects.adb: Add entries for aspects
827 Read/Write/Input/Output.
828 * sem_ch13.adb (Analyze_Aspect_Specifications): Add processing for
829 handling aspects Read/Write/Input/Output.
831 2010-10-18 Robert Dewar <dewar@adacore.com>
833 * sem_util.adb (Note_Possible_Modification): Do not give warning for
834 use of pragma Unmodified unless we are sure this is a modification.
836 2010-10-18 Tristan Gingold <gingold@adacore.com>
838 * sysdep.c: Add __gnat_get_stack_bounds.
839 * s-taprop-mingw.adb Call __gnat_get_stack_bounds to set Pri_Stack_Info.
841 2010-10-18 Robert Dewar <dewar@adacore.com>
843 * a-assert.ads: Fix bad name in header.
844 * sem_ch4.adb, sem_ch6.adb, sem_ch7.adb, sem_ch10.adb: Minor
846 * exp_aggr.adb: Fix typo in comment.
848 2010-10-18 Javier Miranda <miranda@adacore.com>
850 * exp_util.adb (Side_Effect_Free): Code clean up.
852 2010-10-18 Ed Schonberg <schonberg@adacore.com>
854 * sem_ch8.adb (Is_Primitive_Operator_In_Use): Renamed from
855 Is_Primitive_Operator. When ending the scope of a use package scope, a
856 primitive operator remains in use if the base type has a current use
859 2010-10-18 Javier Miranda <miranda@adacore.com>
861 * einfo.ads (Is_Dynamic_Support): Add missing support for limited
862 private types whose full-view is a task type.
863 * sem_util.adb (Enclosing_Subprogram): Add missing support for limited
864 private types whose full-view is a task type.
865 * exp_ch7.adb (Find_Final_List): Minor code cleanup replacing code by
866 function Nearest_Dynamic_Scope which provides the needed functionality.
868 2010-10-18 Arnaud Charlet <charlet@adacore.com>
870 * sem_prag.adb (Set_Exported): Do not generate error when exporting a
871 variable with an address clause in codepeer mode.
873 2010-10-18 Robert Dewar <dewar@adacore.com>
875 * g-trasym-vms-ia64.adb: Minor reformatting.
877 2010-10-18 Thomas Quinot <quinot@adacore.com>
879 * sem_type.adb (Covers): If either argument is Standard_Void_Type and
880 the other isn't, return False early.
882 2010-10-18 Ed Falis <falis@adacore.com>
884 * s-vxwext-rtp.ads, s-vxext-rtp.adb: Adapt for missing APIs for RTPs in
887 2010-10-18 Robert Dewar <dewar@adacore.com>
889 * sem_disp.ads: Minor comment update.
891 2010-10-18 Robert Dewar <dewar@adacore.com>
893 * einfo.ads, einfo.adb (Spec_PPC_List): Is now present in Entries
894 * sem_ch3.adb (Analyze_Declarations): Add processing for delaying
895 visibility analysis of precondition and postcondition pragmas (and
897 * sem_ch6.adb (Process_PPCs): Add handling of inherited Pre'Class
899 * sem_ch7.adb (Analyze_Package_Specification): Remove special handling
900 of pre/post conditions (no longer needed).
901 * sem_disp.adb (Inherit_Subprograms): Deal with interface case.
902 * sem_prag.adb (Analyze_PPC_In_Decl_Part): Remove analysis of message
903 argument, since this is now done in the main processing for
904 pre/postcondition pragmas when they are first seen.
905 (Chain_PPC): Pre'Class and Post'Class now handled properly
906 (Chain_PPC): Handle Pre/Post aspects for entries
907 (Check_Precondition_Postcondition): Handle entry declaration case
908 (Check_Precondition_Postcondition): Handle delay of visibility analysis
909 (Check_Precondition_Postcondition): Preanalyze message argument if
912 2010-10-18 Robert Dewar <dewar@adacore.com>
914 * g-trasym-vms-ia64.adb, prj-nmsc.adb, prj.ads: Minor reformatting.
916 2010-10-14 Eric Botcazou <ebotcazou@adacore.com>
918 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Set
919 TREE_THIS_NOTRAP on the INDIRECT_REF node built for the template.
920 * gcc-interface/trans.c (Identifier_to_gnu): Set TREE_THIS_NOTRAP on
921 the INDIRECT_REF node built for objects used by reference.
922 * gcc-interface/utils2.c (build_binary_op): Add short-circuit for
923 constant result. Set TREE_THIS_NOTRAP on ARRAY_REF and ARRAY_RANGE_REF.
924 (gnat_stabilize_reference_1): Propagate the TREE_THIS_NOTRAP flag.
926 2010-10-13 Richard Henderson <rth@redhat.com>
928 * gcc-interface/misc.c (gnat_eh_personality): Update call to
929 build_personality_function.
930 * raise-gcc.c (PERSONALITY_FUNCTION): Change to match other languages;
931 use__gnat_personality_{v,sj}0.
933 2010-10-12 Vincent Celier <celier@adacore.com>
935 * prj-nmsc.adb (Add_Source): Put source in hash table Source_Files_HT
936 (Process_Exceptions_File_Based): Use hash table Source_Files_HT instead
937 of iterating through all sources of the project.
938 * prj.adb (Free): Reset hash table Source_Files_HT
939 (Reset): Reset hash table Source_Files_HT
940 * prj.ads (Source_Data): New component Next_With_File_Name
941 (Source_Files_Htable): New hash table
942 (Project_Tree_Data): New component Source_Files_HT
944 2010-10-12 Tristan Gingold <gingold@adacore.com>
946 * g-trasym-vms-ia64.adb: Use the documented API.
947 * gcc-interface/Makefile.in: Always set NO_REORDER_ADAFLAGS.
948 * gcc-interface/Make-lang.in: Update dependencies.
950 2010-10-12 Thomas Quinot <quinot@adacore.com>
952 * rtsfind.ads, exp_dist.adb, exp_dist.ads (Build_General_Calling_Stubs,
953 PolyORB case): Request is now a controlled type: we can declare the
954 request on the stack, and we do not need explicit cleanup actions
957 2010-10-12 Bob Duff <duff@adacore.com>
959 * s-rident.ads (Profile_Info): This variable is now constant.
961 2010-10-12 Emmanuel Briot <briot@adacore.com>
963 * g-comlin.adb, g-comlin.ads (Define_Switch): Put back (unused)
964 parameter Separator for backward compatibility.
966 2010-10-12 Robert Dewar <dewar@adacore.com>
968 * sem_ch9.adb, par-ch9.adb, impunit.adb: Minor reformatting.
970 2010-10-12 Vincent Celier <celier@adacore.com>
972 * debug.adb: Put detailed documentation for gnatmake switch -dm.
974 2010-10-12 Vincent Celier <celier@adacore.com>
976 * gnat1drv.adb: When the compiler is invoked for a spec that needs aw
977 body, do not generate an ALI file if neither -gnatc nor -gnatQ is used.
979 2010-10-12 Arnaud Charlet <charlet@adacore.com>
981 * g-comlin.adb (Foreach_Switch): Make this procedure generic to avoid
984 2010-10-12 Robert Dewar <dewar@adacore.com>
986 * debug.adb: Add comment.
987 * gnatcmd.adb, sem_ch6.adb, switch-m.adb: Minor reformatting.
989 2010-10-12 Javier Miranda <miranda@adacore.com>
991 * exp_util.adb (Side_Effect_Free): Return true for object renaming
992 declarations that were previously generated by Remove_Side_Effects.
994 2010-10-12 Emmanuel Briot <briot@adacore.com>
996 * xref_lib.adb (Get_Full_Type): Display "private variable" instead of
997 "???" when an entity is defined as "*" in the ALI file.
998 * g-comlin.ads, g-comlin.adb: Fix handling of null parameters.
1001 2010-10-12 Emmanuel Briot <briot@adacore.com>
1003 * g-comlin.adb, g-comlin.ads (Display_Help, Getopt, Current_Section,
1004 Set_Usage): New subprograms.
1005 (Define_Switch): Change profile to add support for help messages and
1008 2010-10-12 Javier Miranda <miranda@adacore.com>
1010 * sem_ch6.adb (New_Overloaded_Entity): Add missing decoration of
1011 attribute Overridden_Operation in predefined dispatching primitives.
1013 2010-10-12 Emmanuel Briot <briot@adacore.com>
1015 * g-comlin.adb, g-comlin.ads (Add_Switch): Raise an exception when a
1016 command line configuration exists and we specify an invalid section.
1018 2010-10-12 Robert Dewar <dewar@adacore.com>
1020 * sem_ch6.adb (Process_PPCs): Fix error in inheriting Pre'Class when no
1021 exception messages are generated.
1022 (Process_PPCs): Fix error in inheriting Pre'Class.
1024 2010-10-12 Jose Ruiz <ruiz@adacore.com>
1026 * gnatcmd.adb: Use response file for GNATstack.
1027 (Check_Files): Pass the list of ci files for GNATstack using a response
1028 file to avoid problems with command line length.
1029 Factor out the code handling response file into a new procedure named
1030 Add_To_Response_File.
1032 2010-10-12 Vincent Celier <celier@adacore.com>
1034 * debug.adb: For gnatmake, document the meaning of -dm
1035 * make.adb (Gnatmake): If -dm is used, indicate the maximum number of
1036 simultaneous compilations.
1037 * switch-m.adb (Scan_Make_Switches): Allow -j0, meaning as many
1038 simultaneous compilations as the number of processors.
1040 2010-10-12 Joseph Myers <joseph@codesourcery.com>
1042 * gcc-interface/Make-lang.in (ada/misc.o): Use $(OPTIONS_H)
1043 instead of options.h.
1045 2010-10-12 Robert Dewar <dewar@adacore.com>
1047 * gnat_rm.texi: Clarify that 'Old can be used in preconditions and
1048 postcondition pragmas.
1050 2010-10-12 Robert Dewar <dewar@adacore.com>
1052 * errout.ads, erroutc.adb: The # insertion now handles from in place of
1054 * exp_prag.adb (Expand_Pragma_Check): Suppress generated default
1055 message if new switch Exception_Locations_Suppressed is set.
1056 (Expand_Pragma_Check): Revised wording for default message for case
1057 of precondition or postcondition.
1058 * namet.ads, namet.adb (Build_Location_String): New procedure.
1059 * opt.ads (List_Inherited_Pre_Post): New flag.
1060 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): Add call to
1061 list inherited pre/post aspects.
1062 * sem_ch13.adb (Analyze_Aspect_Specification): Improve generation of
1063 messages for precondition/postcondition cases.
1064 * sem_ch6.adb (Process_PPCs): General cleanup, and list inherited PPC's
1065 if flag List_Inherited_Pre_Post is set True.
1066 (Process_PPCs): Add initial handling for inherited preconditions
1067 (List_Inherited_Pre_Post_Aspects): New procedure
1068 * sem_ch6.ads (List_Inherited_Pre_Post_Aspects): New procedure
1069 * sem_disp.adb (Inherited_Subprograms): New function
1070 * sem_disp.ads (Inherited_Subprograms): New function
1071 * sem_prag.adb (Check_Duplicate_Pragma): Clean up handling of
1073 (Check_Precondition_Postcondition): Check for inherited aspects
1074 * sem_warn.adb: Process -gnatw.l/w.L setting List_Inherited_Pre_Post
1075 * sinfo.ads, sinfo.adb (Split_PPC): New flag.
1076 * sinput.ads, sinput.adb (Build_Location_String): New function.
1077 * usage.adb: Add line for -gnatw.l/-gnatw.L
1079 2010-10-12 Javier Miranda <miranda@adacore.com>
1081 * exp_util.adb (Remove_Side_Effects): Remove wrong code.
1083 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1085 * xref_lib.adb: Add handling of j/J letters.
1087 2010-10-12 Pascal Obry <obry@adacore.com>
1089 * adaint.c (__gnat_number_of_cpus): Add implementation for Windows.
1091 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1093 * make.adb (Globalize): New procedure.
1094 (Compile): Set Do_Codepeer_Globalize_Step when -gnatC is used.
1095 (Gnatmake): Call Globalize when needed.
1096 (Process_Restrictions_Or_Restriction_Warnings): Ignore Restrictions
1097 pragmas in CodePeer mode.
1098 (Adjust_Global_Switches): Set No_Initialize_Scalars in CodePeer mode,
1099 to generate simpler and consistent code.
1101 2010-10-12 Bob Duff <duff@adacore.com>
1103 * exp_util.adb (Remove_Side_Effects): Disable previous change,
1104 can cause side effects to be duplicated.
1106 2010-10-12 Robert Dewar <dewar@adacore.com>
1108 * sem_ch6.adb (Process_PPCs): Handle inherited postconditions.
1110 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1112 * exp_disp.adb (Set_All_DT_Position): Disable emit error message on
1113 abstract inherited private operation in CodePeer mode.
1115 2010-10-12 Thomas Quinot <quinot@adacore.com>
1117 * a-exetim.ads: Minor reformatting.
1118 * g-socket.ads (Port_Type): Better definition corresponding to the
1119 actual standard range.
1120 * exp_ch5.adb: Add comment.
1121 * sem_aux.adb: Minor reformatting.
1123 2010-10-12 Ed Schonberg <schonberg@adacore.com>
1125 * sem_ch12.adb (Copy_Generic_Node): If node is a string literal, remove
1126 string_literal_subtype so that a new one can be constructed in the
1127 scope of the instance.
1129 2010-10-12 Robert Dewar <dewar@adacore.com>
1131 * exp_ch9.adb (Has_Pragma_Priority): New name for Has_Priority_Pragma
1132 * gnat_rm.texi (pragma Suppress_All): Document new placement rules
1133 * par-prag.adb (P_Pragma, case Suppress_All): Set
1134 Has_Pragma_Suppress_All flag.
1135 * sem_prag.adb (Has_Pragma_Priority): New name for Has_Priority_Pragma
1136 (Analyze_Pragma, case Suppress_All): Remove placement check
1137 (Process_Compilation_Unit_Pragmas): Use Has_Pragma_Suppress_All flag
1138 * sem_prag.ads (Process_Compilation_Unit_Pragmas): Update documentation
1139 * sinfo.adb (Has_Pragma_Suppress_All): New flag
1140 (Has_Pragma_Priority): New name for Has_Priority_Pragma
1141 * sinfo.ads (Has_Pragma_Suppress_All): New flag
1142 (Has_Pragma_Priority): New name for Has_Priority_Pragma
1144 2010-10-12 Arnaud Charlet <charlet@adacore.com>
1146 * lib-xref.ads: Mark j/J as reserved for C++ classes.
1148 2010-10-12 Jose Ruiz <ruiz@adacore.com>
1150 * a-exetim-default.ads, a-exetim-posix.adb: New.
1151 * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS for linux): Use the
1152 POSIX Realtime support to implement CPU clocks.
1153 (EXTRA_GNATRTL_TASKING_OBJS for linux): Add the a-exetim.o object
1154 to the tasking library.
1155 (THREADSLIB): Make the POSIX.1b Realtime Extensions library (librt)
1156 available for shared libraries.
1157 * gcc-interface/Make-lang.in: Update dependencies.
1159 2010-10-12 Robert Dewar <dewar@adacore.com>
1161 * sem_ch13.adb (Analyze_Aspect_Specifications): For Pre/Post, break
1162 apart expressions with AND THEN clauses into separate pragmas.
1163 * sinput.ads, sinput.adab (Get_Logical_Line_Number_Img): New function.
1165 2010-10-12 Robert Dewar <dewar@adacore.com>
1167 * par-ch13.adb (P_Aspect_Specifications): Fix handling of 'Class
1169 * sem_ch13.adb (Analyze_Aspect_Specifications): Fix bad Sloc on aspects
1170 * sem_prag.adb (Fix_Error): Only change pragma names for pragmas from
1172 (Check_Optional_Identifier): Handle case of direct arguments
1173 (Chain_PPC): Test for abstract case, giving appropriate messages
1174 * sinfo.ads, sinfo.adb (Class_Present): Allowed on N_Pragma node
1176 2010-10-12 Robert Dewar <dewar@adacore.com>
1178 * par-endh.adb (Check_End): Don't swallow semicolon or aspects after
1180 * sem_attr.adb (Eval_Attribute): Code clean up.
1182 2010-10-12 Robert Dewar <dewar@adacore.com>
1184 * par-ch12.adb (P_Formal_Private_Type_Definition): Improve error
1185 messages and recovery for case of out of order Abstract/Tagged/Private
1187 * par-ch3.adb (P_Type_Declaration): Improve error messages and recovery
1188 for case of out of order Abstract/Tagged/Private keywords.
1190 2010-10-12 Ed Schonberg <schonberg@adacore.com>
1192 * inline.adb (Analyze_Inlined_Bodies): Restrict previous change to case
1193 where child unit is main unit of compilation.
1195 2010-10-12 Robert Dewar <dewar@adacore.com>
1197 * aspects.ads, aspects.adb (Move_Aspects): New procedure.
1198 * atree.ads, atree.adb: (New_Copy): Does not copy aspect specifications
1199 * sinfo.ads, par-ch3.adb, par-ch6.adb, par-ch7.adb, par-ch9.adb,
1200 par-endh.adb, par-ch13.adb, par-ch12.adb: Modify grammar to include
1201 aspect specifications.
1202 Recognize aspect specifications for all cases
1203 * par.adb: Recognize aspect specifications for all cases
1204 * sem_ch12.ads, sem_ch12.adb (Copy_Generic_Node): Copies aspect
1206 * sem_ch3.adb (Analyze_Subtype_Declaration): Improve patch to freeze
1207 generic actual types (was missing some guards before).
1208 * sem_ch9.adb (Analyze_Single_Protected_Declaration): Copy aspects to
1210 (Analyze_Single_Task_Declaration): Copy aspects to generated object
1212 2010-10-12 Eric Botcazou <ebotcazou@adacore.com>
1214 * usage.adb (usage): Adjust line for -gnatn switch.
1216 2010-10-12 Robert Dewar <dewar@adacore.com>
1218 * sem_attr.adb (Eval_Attribute): Only leave change active for aspect
1221 2010-10-12 Ed Schonberg <schonberg@adacore.com>
1223 * sem_ch6.adb (Analyze_Subprogram_Declaration): If this is a
1224 declaration of a null procedure resolve the types of the profile of the
1225 generated null body now.
1227 2010-10-11 Robert Dewar <dewar@adacore.com>
1229 * debug.adb: Remove d.A flag to delay address clause (not needed any
1230 more). Add d.A flag to enable tree read/write of aspect spec hash table
1231 * sem_ch13.adb (Analyze_Aspect_Specifications): Properly delay address
1233 (Rep_Item_Too_Late): No need for special processing for delayed rep
1234 items (and it caused difficulties in the address case).
1235 * tree_gen.adb: Only write aspect spec hash table if -gnatd.A is set
1236 * tree_in.adb: Only write aspect spec hash table if -gnatd.A is set
1238 2010-10-11 Pat Rogers <rogers@adacore.com>
1240 * gnat_ugn.texi: Minor editing.
1242 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
1244 * gcc-interface/utils2.c (gnat_build_constructor): Use VEC_qsort.
1246 2010-10-11 Robert Dewar <dewar@adacore.com>
1248 * g-htable.ads (Get_First): New procedural version for Simple_HTable
1249 (Get_Next): New procedural version for Simple_HTable
1250 * s-htable.adb (Get_First): New procedural version for Simple_HTable
1251 (Get_Next): New procedural version for Simple_HTable
1252 * s-htable.ads (Get_First): New procedural version for Simple_HTable
1253 (Get_Next): New procedural version for Simple_HTable
1255 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1257 * sem_aggr.adb (Propagate_Discriminants): To gather the components of a
1258 variant part, use the association list of the subaggregate, which
1259 already includes the values of the needed discriminants.
1261 2010-10-11 Robert Dewar <dewar@adacore.com>
1263 * aspects.ads, aspects.adb: Changes to accomodate aspect delay
1264 (Tree_Write): New procedure.
1265 * atree.ads, atree.adb: Flag3 is now Has_Aspects and applies to all
1267 * atree.h: Flag3 is now Has_Aspects and applies to all nodes
1268 * debug.adb: Add debug flag gnatd.A
1269 * einfo.adb (Has_Delayed_Aspects): New flag
1270 (Get_Rep_Item_For_Entity): New function
1271 * einfo.ads (Has_Delayed_Aspects): New flag
1272 (Get_Rep_Item_For_Entity): New function
1273 * exp_ch13.adb (Expand_N_Freeze_Entity): Insert delayed aspects into
1275 * exp_ch3.adb, exp_ch6.adb, exp_ch9.adb, exp_disp.adb: New calling
1276 sequence for Freeze_Entity.
1277 * freeze.ads, freeze.adb (Freeze_Entity): Takes node rather than source
1278 ptr. All calls are changed to this new interface.
1279 (Freeze_And_Append): Same change
1280 (Freeze_Entity): Evaluate deferred aspects
1281 * sem_attr.adb: New calling sequence for Freeze_Entity
1282 (Eval_Attribute): Don't try to evaluate attributes of unfrozen types
1283 when we are in spec expression preanalysis mode.
1284 * sem_ch10.adb: New calling sequence for Freeze_Entity
1285 * sem_ch11.adb: Simplify analysis of aspect specifications now that the
1286 flag Has_Aspects applies to all nodes (no need to save aspects).
1287 * sem_ch12.adb: Simplify analysis of aspect specifications now that the
1288 flag Has_Aspects applies to all nodes (no need to save aspects).
1289 * sem_ch13.adb (Analyze_Aspect_Specifications): Major rewrite to
1290 accomodate delaying aspect evaluation to the freeze point.
1291 (Duplicate_Clause): Simplify using Get_Rep_Item_For_Entity, and also
1292 accomodate delayed aspects.
1293 (Rep_Item_Too_Late): Deal with delayed aspects case
1294 * sem_ch13.ads (Rep_Item_Too_Late): Document handling of delayed
1296 * sem_ch3.adb (Analyze_Subtype_Declaration): Make sure that generic
1297 actual types are properly frozen (this is needed because of the new
1298 check in Eval_Attribute that declines to evaluate attributes
1299 for unfrozen types).
1300 Simplify analysis of aspect specifications now that the flag
1301 Has_Aspects applies to all nodes (no need to save aspects).
1302 * sem_ch3.ads (Preanalyze_Spec_Expression): Note use for delayed
1304 * sem_ch5.adb: Simplify analysis of aspect specifications now that the
1305 flag Has_Aspects applies to all nodes (no need to save aspects).
1306 New calling sequence for Freeze_Entity.
1307 * sem_ch9.adb, sem_ch7.adb, sem_ch6.adb: Simplify analysis of aspect
1308 specifications now that the flag Has_Aspects applies to all nodes
1309 (no need to save aspects).
1310 New calling sequence for Freeze_Entity
1311 * sem_prag.adb (Check_Duplicate_Pragma): Simplify using
1312 Get_Rep_Item_For_Entity
1313 (Get_Pragma_Arg): Moved to Sinfo
1314 * sinfo.ads, sinfo.adb (Aspect_Rep_Item_: New field
1315 (Is_Delayed_Aspect): New flag
1316 (Next_Rep_Item): Document use for aspects
1317 (Get_Pragma_Arg): Moved here from Sem_Prag
1318 * sprint.adb (Sprint_Aspect_Specifications): Now called after semicolon
1319 is output and removes semicolon (simplifies interface).
1320 (Sprint_Node_Actual): Simplify handling of aspects now that Has_Aspects
1321 applies to any node.
1322 * tree_gen.adb: Write contents of Aspect_Specifications hash table
1323 * tree_in.adb: Read and initialize Aspect_Specifications hash table
1324 * treepr.adb (Print_Node): Print Has_Aspects flag
1325 (Print_Node): Print Aspect_Specifications in Has_Aspects set
1326 * xtreeprs.adb: Remove obsolete references to Flag1,2,3
1328 2010-10-11 Robert Dewar <dewar@adacore.com>
1330 * aspects.ads, aspects.adb: Major revision of this package for 2nd
1331 stage of aspects implementation.
1332 * gcc-interface/Make-lang.in: Add entry for aspects.o
1333 * gcc-interface/Makefile.in: Add aspects.o to GNATMAKE_OBJS
1334 * par-ch13.adb (Aspect_Specifications_Present): New function
1335 (P_Aspect_Specifications): New procedure
1336 * par-ch3.adb (P_Type_Declaration): Handle aspect specifications
1337 (P_Derived_Type_Def_Or_Private_Ext_Decl): Handle aspect specifications
1338 (P_Identifier_Declarations): Handle aspect specifications
1339 (P_Component_Items): Handle aspect specifications
1340 (P_Subtype_Declaration): Handle aspect specifications
1341 * par-ch6.adb (P_Subprogram): Handle aspect specifications
1342 * par-ch9.adb (P_Entry_Declaration): Handle aspect specifications
1343 * par.adb (Aspect_Specifications_Present): New function
1344 (P_Aspect_Specifications): New procedure
1345 * sem.adb (Analyze_Full_Type_Declaration): New name for
1346 Analyze_Type_Declaration.
1347 (Analyze_Formal_Package_Declaration): New name (add _Declaration)
1348 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
1349 (Analyze_Protected_Type_Declaration): New name (add _Declaration)
1350 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
1351 (Analyze_Single_Task_Declaration): New name (add _Declaration)
1352 (Analyze_Task_Type_Declaration): New name (add _Declaration)
1353 * sem_cat.adb (Analyze_Full_Type_Declaration): New name for
1354 Analyze_Type_Declaration.
1355 * sem_ch11.adb (Analyze_Exception_Declaration): Analyze aspect
1357 * sem_ch12.adb (Analyze_Formal_Object_Declaration): Handle aspect
1359 (Analyze_Formal_Package_Declaration): New name (add _Declaration)
1360 (Analyze_Formal_Package_Declaration): Handle aspect specifications
1361 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
1362 (Analyze_Formal_Subprogram_Declaration): Handle aspect specifications
1363 (Analyze_Formal_Type_Declaration): Handle aspect specifications
1364 (Analyze_Generic_Package_Declaration): Handle aspect specifications
1365 (Analyze_Generic_Subprogram_Declaration): Handle aspect specifications
1366 (Analyze_Package_Instantiation): Handle aspect specifications
1367 (Analyze_Subprogram_Instantiation): Handle aspect specifications
1368 * sem_ch12.ads (Analyze_Formal_Package_Declaration): New name (add
1370 (Analyze_Formal_Subprogram_Declaration): New name (add _Declaration)
1371 * sem_ch13.adb (Analyze_Aspect_Specifications): New procedure
1372 (Duplicate_Clause): New function, calls to this function are added to
1373 processing for all aspects.
1374 * sem_ch13.ads (Analyze_Aspect_Specifications): New procedure
1375 * sem_ch3.adb (Analyze_Full_Type_Declaration): New name for
1376 Analyze_Type_Declaration.
1377 * sem_ch3.ads (Analyze_Full_Type_Declaration): New name for
1378 Analyze_Type_Declaration.
1379 * sem_ch6.adb (Analyze_Abstract_Subprogram_Declaration): Analyze aspect
1381 (Analyze_Subprogram_Declaration): Analyze aspect specifications
1382 * sem_ch7.adb (Analyze_Package_Declaration): Analyze aspect
1384 (Analyze_Private_Type_Declaration): Analyze aspect specifications
1385 * sem_ch9.adb (Analyze_Protected_Type_Declaration): Analyze aspect
1387 (Analyze_Protected_Type_Declaration): New name (add _Declaration)
1388 (Analyze_Single_Protected_Declaration): Analyze aspect specifications
1389 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
1390 (Analyze_Single_Task_Declaration): Analyze aspect specifications
1391 (Analyze_Single_Task_Declaration): New name (add _Declaration)
1392 (Analyze_Task_Type_Declaration): Analyze aspect specifications
1393 (Analyze_Task_Type_Declaration): New name (add _Declaration)
1394 * sem_ch9.ads (Analyze_Protected_Type_Declaration): New name (add
1396 (Analyze_Single_Protected_Declaration): New name (add _Declaration)
1397 (Analyze_Single_Task_Declaration): New name (add _Declaration)
1398 (Analyze_Task_Type_Declaration): New name (add _Declaration)
1399 * sem_prag.adb: Use Get_Pragma_Arg systematically so that we do not
1400 have to generate unnecessary pragma argument associations (this matches
1402 Throughout do changes to accomodate aspect specifications, including
1403 specializing messages, handling the case of not going through all
1404 homonyms, and allowing for cancellation.
1405 * sinfo.ads, sinfo.adb: Clean up obsolete documentation for Flag1,2,3
1406 (Aspect_Cancel): New flag
1407 (From_Aspect_Specification): New flag
1408 (First_Aspect): Removed flag
1409 (Last_Aspect): Removed flag
1410 * sprint.adb (Sprint_Aspect_Specifications): New procedure
1411 (Sprint_Node_Actual): Add calls to Sprint_Aspect_Specifications
1413 2010-10-11 Bob Duff <duff@adacore.com>
1415 * sem_res.adb (Resolve_Actuals): Minor change to warning messages so
1416 they match in Ada 95, 2005, and 2012 modes, in the case where the
1417 language didn't change. Same thing for the run-time exception message.
1419 2010-10-11 Javier Miranda <miranda@adacore.com>
1421 * debug.adb Document that switch -gnatd.p enables the CIL verifier.
1423 2010-10-11 Robert Dewar <dewar@adacore.com>
1425 * s-htable.adb: Minor reformatting.
1427 2010-10-11 Javier Miranda <miranda@adacore.com>
1429 * debug.adb: Update comment.
1431 2010-10-11 Vincent Celier <celier@adacore.com>
1433 * gnatcmd.adb (GNATCmd): Set Opt.Unchecked_Shared_Lib_Imports to True
1434 unconditionally as for "gnat make" the projects are not processed in
1437 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1439 * sem_ch10.ads, sem_ch10.adb (Load_Needed_Body): Add parameter to
1440 suppress semantic analysis of the body when inlining, prior to
1441 verifying that the body does not have a with_clause on a descendant
1443 * inline.adb (Analyze_Inlined_Bodies): Do not inline a body if it has a
1444 with_clause on a descendant.
1445 (Scope_In_Main_Unit): Simplify.
1447 2010-10-11 Robert Dewar <dewar@adacore.com>
1449 * exp_ch6.adb, freeze.adb: Minor reformatting.
1451 2010-10-11 Vincent Celier <celier@adacore.com>
1453 * gnatcmd.adb (GNATCmd): For all tools other than gnatmake, allow
1454 shared library projects to import projects that are not shared library
1457 2010-10-11 Javier Miranda <miranda@adacore.com>
1459 * debug.adb: Document that switch -gnatd.o generates the CIL listing.
1461 2010-10-11 Arnaud Charlet <charlet@adacore.com>
1463 * sem_prag.adb (Process_Suppress_Unsuppress): Only ignore
1464 Suppress/Unsuppress pragmas in codepeer mode on user code.
1466 2010-10-11 Javier Miranda <miranda@adacore.com>
1468 * exp_ch6.adb (Expand_Call): For VM platforms, add missing expansion of
1469 tag check in case of dispatching call through "=".
1471 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1473 * sem_ch3.adb (Access_Subprogram_Declaration): In Ada2012 an incomplete
1474 type is legal in the profile of any basic declaration.
1475 * sem_ch6.adb (Analyze_Return_Type, Process_Formals): In Ada2012 an
1476 incomplete type, including a limited view of a type, is legal in the
1477 profile of any subprogram declaration.
1478 If the type is tagged, its use is also legal in a body.
1479 * sem_ch10.adb (Install_Limited_With_Clause): Do not process context
1481 (Install_Limited_Withed_Unit): Refine legality checks when both the
1482 limited and the non-limited view of a package are visible in the
1484 If this is not an error case, the limited view is ignored.
1485 freeze.adb (Freeze_Entity): In Ada2012, an incomplete type is legal in
1486 access to subprogram declarations
1488 2010-10-11 Robert Dewar <dewar@adacore.com>
1490 * exp_ch6.adb: Code clean up.
1491 * exp_util.adb: Minor reformatting.
1493 2010-10-11 Arnaud Charlet <charlet@adacore.com>
1495 * sem_ch3.adb, exp_ch6.adb
1496 (Make_Build_In_Place_Call_In_Anonymous_Context,
1497 Make_Build_In_Place_Call_In_Assignment,
1498 Make_Build_In_Place_Call_In_Object_Declaration): Fix calls to
1499 Add_Task_Actuals_To_Build_In_Place_Call in case of No_Task_Hierarchy
1501 (Access_Definition): Add missing handling of No_Task_Hierarchy.
1503 2010-10-11 Javier Miranda <miranda@adacore.com>
1505 * exp_util.adb (Remove_Side_Effects): No action needed for renamings of
1506 class-wide expressions.
1508 2010-10-11 Arnaud Charlet <charlet@adacore.com>
1510 * xr_tabls.adb, sem_res.adb: Minor reformatting
1512 2010-10-11 Arnaud Charlet <charlet@adacore.com>
1514 * gnat_rm.texi, exp_attr.adb, sem_attr.adb, sem_attr.ads,
1515 snames.ads-tmpl (Analyze_Attribute, Expand_N_Attribute_Reference): Add
1516 handling of Attribute_Ref. Add missing blanks in some error messages.
1517 (Attribute_Ref, Name_Ref): Declare.
1518 Document 'Ref attribute.
1520 2010-10-11 Robert Dewar <dewar@adacore.com>
1522 * sem_attr.adb: Minor reformatting.
1524 2010-10-11 Javier Miranda <miranda@adacore.com>
1526 * sem_ch8.adb (Attribute_Renaming): Add missing check to avoid loading
1527 package System.Aux_Dec in VM platforms.
1529 2010-10-11 Arnaud Charlet <charlet@adacore.com>
1531 * sem_prag.adb (Process_Suppress_Unsuppress): Ignore
1532 Suppress/Unsuppress pragmas in codepeer mode.
1533 (Analyze_Pragma [Pragma_Suppress_All]): Do not generate error message
1535 * einfo.ads: Fix typo.
1537 2010-10-11 Emmanuel Briot <briot@adacore.com>
1539 * sinfo.adb: Use GNAT.HTable rather than System.HTable.
1540 * prj-nmsc.adb: Minor reformatting.
1542 2010-10-11 Thomas Quinot <quinot@adacore.com>
1544 * sem_attr.adb (Type_Key): Code simplification.
1546 2010-10-11 Tristan Gingold <gingold@adacore.com>
1548 * gcc-interface/utils2.c (maybe_wrap_malloc): Fix crash when allocating
1549 very large object on VMS.
1551 2010-10-11 Javier Miranda <miranda@adacore.com>
1553 * sem_ch10.adb (Analyze_With_Clause): Add missing test to ensure
1554 availability of attribute Instance_Spec.
1556 2010-10-11 Arnaud Charlet <charlet@adacore.com>
1558 * gnat1drv.adb (Adjust_Global_Switches): Disable codepeer mode if
1559 checking syntax only or in ASIS mode.
1561 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1563 * sem_ch6.adb (Check_Delayed_Subprogram): Abstract subprograms may also
1564 need a freeze node if some type in the profile has one.
1565 * gcc-interface/trans.c (case N_Abstract_Subprogram_Declaration): If
1566 entity has a freeze node, defer elaboration.
1568 2010-10-11 Emmanuel Briot <briot@adacore.com>
1570 * prj-nmsc.adb (Check_Aggregate_Project): Add support for finding all
1571 aggregated projects.
1573 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1575 * sem_res.adb (Resolve_Entry_Call): Generate 's' reference for entry
1577 * sem_ch6.adb: Diagnose additional error condition.
1579 2010-10-11 Bob Duff <duff@adacore.com>
1581 * par.adb (Par): Clarify wording of certain error messages.
1583 2010-10-11 Gary Dismukes <dismukes@adacore.com>
1585 * sem_disp.adb (Check_Dispatching_Operation): Revise test for warning
1586 about nondispatching subprograms to use In_Same_List (reducing use of
1589 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1591 * xr_tabls.adb, sem_res.adb, lib-xref.adb, lib-xref.ads: Use s for
1592 reference in a static call.
1594 2010-10-11 Steve Baird <baird@adacore.com>
1596 * exp_attr.adb (Expand_N_Attribute_Reference, case Type_Key): Type_Key
1597 attribute should always be transformed into a string literal in
1599 * par-ch4.adb: Type_Key attribute's type is String; update value of
1600 Is_Parameterless_Attribute constant to reflect this.
1601 * sem_attr.adb (Analyze_Attribute): Recognize Type_Key attribute and
1602 rewrite it as a string literal (attribute value is always known
1604 * snames.ads-tmpl: Add entries for Type_Key attribute.
1606 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1608 * lib-xref.adb (Output_References): Common handling for objects and
1609 formals of an anonymous access type.
1611 2010-10-11 Eric Botcazou <ebotcazou@adacore.com>
1613 * make.adb (Scan_Make_Arg): Also pass -O to both compiler and linker.
1615 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1617 * sem_ch6.adb: Fix check for illegal equality declaration in Ada2012
1619 2010-10-11 Gary Dismukes <dismukes@adacore.com>
1621 * sem_disp.adb (Check_Dispatching_Operation): When testing for issuing
1622 a warning about subprograms of a tagged type not being dispatching,
1623 limit this to cases where the tagged type and the subprogram are
1624 declared within the same declaration list.
1626 2010-10-11 Jerome Lambourg <lambourg@adacore.com>
1628 * projects.texi, prj-attr.adb: Add new attribute documentation_dir.
1630 2010-10-11 Bob Duff <duff@adacore.com>
1632 * par-ch9.adb, sem_aggr.adb, exp_ch5.adb, sem_ch3.adb, impunit.adb,
1633 impunit.ads, sem_ch5.adb, sem_type.adb, exp_imgv.adb, exp_util.adb,
1634 switch-c.adb, exp_attr.adb, exp_ch9.adb, par-ch11.adb, usage.adb,
1635 sem_ch9.adb, sem_ch10.adb, scng.adb, checks.adb, sem_prag.adb,
1636 sem_ch12.adb, par-ch2.adb, freeze.adb, par-ch4.adb, sem_util.adb,
1637 sem_res.adb, sem_attr.adb, par-ch6.adb, exp_ch4.adb, exp_ch6.adb,
1638 sem_ch4.adb, exp_ch8.adb, par-ch10.adb, sem_ch6.adb, par-prag.adb,
1639 exp_disp.adb, par-ch12.adb, sem_ch8.adb, snames.adb-tmpl, opt.ads,
1640 exp_aggr.adb, sem_cat.adb, sem_ch13.adb, par-ch3.adb, exp_strm.adb,
1641 exp_cg.adb, lib-xref.adb, sem_disp.adb, exp_ch3.adb: Use Ada_2005
1642 instead of Ada_05 (Ada_Version_Type).
1644 2010-10-11 Bob Duff <duff@adacore.com>
1646 * sem_aggr.adb, impunit.adb, impunit.ads, switch-c.adb, usage.adb,
1647 sem_ch10.adb, sem_prag.adb, sem_ch12.adb, par-ch4.adb, par-ch6.adb,
1648 par-ch8.adb, exp_ch4.adb, sem_ch4.adb, sem_ch6.adb, par-prag.adb,
1649 opt.ads, par-ch3.adb, lib-xref.adb: Use Ada_2012 instead of Ada_12
1652 2010-10-11 Javier Miranda <miranda@adacore.com>
1654 * exp_util.adb (Safe_Prefixed_Reference): If the prefix is an explicit
1655 dereference then do not exclude dereferences of access-to-constant
1656 types to handle them as constant view of variables (and hence remove
1657 side effects when required).
1658 * sem_res.adb (Resolve_Slice): Ensure that side effects in the bounds
1659 are properly handled.
1661 2010-10-11 Robert Dewar <dewar@adacore.com>
1663 * sem_prag.adb, sem_aggr.adb, sprint.adb: Minor reformatting.
1665 2010-10-11 Javier Miranda <miranda@adacore.com>
1667 * exp_ch5.ads, exp_ch6.ads (Expand_N_Extended_Return_Statement): Moved
1669 (Expand_N_Simple_Return_Statement): Moved to exp_ch6.
1670 * exp_ch5.adb, exp_ch6.adb (Expand_Non_Function_Return): Moved to
1672 (Expand_Simple_Function_Return): Move to exp_ch6.
1673 (Expand_N_Extended_Return_Statement): Moved to exp_ch6.
1674 (Expand_N_Simple_Return_Statement): Moved to exp_ch6.
1676 2010-10-11 Robert Dewar <dewar@adacore.com>
1678 * snames.ads-tmpl: Add names for aspects.
1679 * aspects.ads, aspects.adb: New.
1680 * gcc-interface/Make-lang.in: Update dependencies.
1681 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1683 * exp_ch6.adb (Expand_Actuals): If an actual is the current instance of
1684 a task type, it must be replaced with a reference to Self.
1686 2010-10-11 Vincent Celier <celier@adacore.com>
1688 * adaint.h: Add prototype for function __gnat_create_output_file_new.
1690 2010-10-11 Javier Miranda <miranda@adacore.com>
1692 * sem_aggr.adb (Collect_Aggr_Bounds): Remove side effects of collected
1695 2010-10-11 Arnaud Charlet <charlet@adacore.com>
1697 * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Do not emit error
1698 for AI05-0033 in CodePeer mode.
1700 2010-10-11 Robert Dewar <dewar@adacore.com>
1702 * atree.h, atree.ads, atree.adb (Flag3): New flag (replaces Unused_1)
1703 * csinfo.adb: Aspect_Specifications is a new special field
1704 * einfo.adb (Flag3): New unused flag
1705 * exp_util.adb (Insert_Actions): Add processing for
1706 N_Aspect_Specification.
1707 * sem.adb: Add entry for N_Aspect_Specification.
1708 * sinfo.ads, sinfo.adb (N_Aspect_Specification): New node
1709 (Has_Aspect_Specifications): New flag
1710 (Permits_Aspect_Specifications): New function
1711 (Aspect_Specifications): New function
1712 (Set_Aspect_Specifications): New procedure
1713 * sprint.adb (Sprint_Node): Put N_At_Clause in proper alpha order
1714 (Sprint_Node): Add dummy entry for N_Aspect_Specification
1715 * treepr.adb (Flag3): New flag to be listed
1717 2010-10-11 Vincent Celier <celier@adacore.com>
1719 * adaint.c: Minor reformatting.
1721 2010-10-11 Robert Dewar <dewar@adacore.com>
1723 * sem_ch6.adb, s-htable.ads: Minor reformatting.
1725 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1727 * sem_ch4.adb (Analyze_Selected_Component): If the selector is
1728 invisible in an instantiation, and both the formal and the actual are
1729 private extensions of the same type, look for the desired component in
1730 the proper view of the parent type.
1732 2010-10-11 Vincent Celier <celier@adacore.com>
1734 * adaint.c (__gnat_number_of_cpus): Add implementation for Solaris,
1735 AIX, Tru64, Darwin, IRIX and HP-UX.
1737 2010-10-11 Robert Dewar <dewar@adacore.com>
1739 * a-textio.adb: Minor reformatting
1741 2010-10-11 Robert Dewar <dewar@adacore.com>
1743 * a-suesen.ads, a-suenst.ads,
1744 a-suesen.adb, a-suenst.adb,
1745 a-suewse.adb, a-suewst.adb,
1746 a-suewse.ads, a-suewst.ads,
1747 a-suezse.ads, a-suezst.ads,
1748 a-suezse.adb, a-suezst.adb: New name for string encoding packages.
1749 * impunit.adb: New names for string encoding units
1750 * Makefile.rtl: New names for string encoding units
1751 * rtsfind.ads: Minor code reorganization.
1753 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1755 * exp_ch5.adb: Code clean up.
1757 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1759 * sem_ch6.adb (Check_Limited_Return): Specialize warning on limited
1760 returns when in a generic context.
1761 (Analyze_Function_Return): ditto.
1763 2010-10-11 Robert Dewar <dewar@adacore.com>
1765 * s-multip.ads: Fix header.
1766 * sem_ch3.adb, s-multip.adb, a-tigeli.adb: Minor reformatting.
1768 2010-10-11 Vincent Celier <celier@adacore.com>
1770 * Makefile.rtl: Add s-multip.
1771 * adaint.c: New function __gnat_number_of_cpus, implemented for Linux,
1772 defaulting to 1 for other platforms.
1773 * adaint.h: New function __gnat_number_of_cpus.
1774 * impunit.adb (Non_Imp_File_Names_12): New file list for Ada 2012,
1775 with a single component "s-multip".
1776 * impunit.ads (Kind_Of_Unit): New enumerated value Ada_12_Unit for Ada
1778 * rtsfind.ads (RTU_Id): New enumerated value System_Multiprocessors
1779 * s-multip.ads, s-multip.adb: New Ada 2012 package.
1780 * sem_ch10.adb (Analyze_With_Clause): Check also Ada 2012 units.
1782 2010-10-11 Javier Miranda <miranda@adacore.com>
1784 * a-textio.adb: Move new implementation of Get_Line to a subunit.
1785 * a-tigeli.adb: New subunit containing the implementation of Get_Line.
1787 2010-10-11 Ed Schonberg <schonberg@adacore.com>
1789 * sem_aux.adb: Code clean up.
1791 2010-10-11 Robert Dewar <dewar@adacore.com>
1793 * sem_ch3.adb, sem_aux.adb, sem_ch6.adb: Minor reformatting
1795 2010-10-11 Robert Dewar <dewar@adacore.com>
1797 * einfo.adb, atree.h, atree.ads, atree.adb: Define seven new flags
1798 Flag248-Flag254. Define new field Field29.
1800 2010-10-10 Olivier Hainque <hainque@adacore.com>
1801 Eric Botcazou <ebotcazou@adacore.com>
1803 * gcc-interface/lang.opt (gdwarf+): Remove.
1804 * gcc-interface/gigi.h (get_parallel_type): Likewise
1805 * gcc-interface/misc.c (gnat_dwarf_extensions): Likewise.
1806 (gnat_handle_option): Remove OPT_gdwarfplus case.
1807 (gnat_post_options): Remove setting of use_gnu_debug_info_extensions
1808 from gnat_dwarf_extensions.
1809 * gcc-interface/trans.c (gigi): Remove -gdwarf+ initializations.
1810 * gcc-interface/utils.c (get_parallel_type): Remove.
1812 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
1814 * gcc-interface/trans.c (gnat_to_gnu) <N_Not_In>: Use
1815 invert_truthvalue_loc instead of invert_truthvalue.
1816 * gcc-interface/utils2.c (build_binary_op) <NE_EXPR>: Likewise.
1817 (build_unary_op) <TRUTH_NOT_EXPR>: Likewise.
1819 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
1821 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>: Add
1822 assertion on the types of the parameters. Use KIND local variable.
1823 <E_Incomplete_Type>: Likewise.
1825 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
1827 * gcc-interface/ada-tree.h (DECL_BY_DOUBLE_REF_P): New macro.
1828 * gcc-interface/gigi.h (annotate_object): Add BY_DOUBLE_REF parameter.
1829 * gcc-interface/decl.c (annotate_object): Likewise and handle it.
1830 (gnat_to_gnu_entity): Adjust calls to annotate_object.
1831 (gnat_to_gnu_param): If fat pointer types are passed by reference on
1832 the target, pass them by explicit reference.
1833 * gcc-interface/misc.c (default_pass_by_ref): Fix type of constant.
1834 * gcc-interface/trans.c (Identifier_to_gnu): Do DECL_BY_DOUBLE_REF_P.
1835 (Subprogram_Body_to_gnu): Adjust call to annotate_object.
1836 (call_to_gnu): Handle DECL_BY_DOUBLE_REF_P.
1837 * gcc-interface/utils.c (convert_vms_descriptor): Add BY_REF parameter
1839 (build_function_stub): Iterate on the parameters of the subprogram in
1840 lieu of on the argument types. Adjust call to convert_vms_descriptor.
1842 2010-10-09 Eric Botcazou <ebotcazou@adacore.com>
1844 * gcc-interface/misc.c: Delete prototypes.
1845 (gnat_init_options): Use local variable.
1846 (lang_hooks): Move to the end of the file.
1848 2010-10-08 Joseph Myers <joseph@codesourcery.com>
1850 * gcc-interface/misc.c (gnat_init_options_struct): New. Split out
1851 from gnat_init_options.
1852 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
1854 2010-10-08 Ed Schonberg <schonberg@adacore.com>
1856 * sem_aux.adb: Cleanup Is_Immutably_Limited_Type.
1858 2010-10-08 Robert Dewar <dewar@adacore.com>
1860 * exp_ch3.adb: Minor reformatting.
1861 * exp_ch5.adb: Add comment.
1863 2010-10-08 Robert Dewar <dewar@adacore.com>
1865 * sem_prag.adb (Check_Duplicate_Pragma): Check for entity match
1866 * gcc-interface/Make-lang.in: Update dependencies.
1867 * einfo.ads: Minor reformatting.
1869 2010-10-08 Ed Schonberg <schonberg@adacore.com>
1871 * exp_ch5.adb, sem_ch3.adb, exp_ch7.adb, exp_util.adb, sem_aux.adb,
1872 sem_aux.ads, exp_ch4.adb, exp_ch6.adb, sem_ch6.adb, exp_aggr.adb,
1873 exp_ch3.adb: Change Is_Inherently_Limited_Type to
1874 Is_Immutably_Limited_Type to accord with new RM terminology.
1875 * sem_aux.adb (Is_Immutably_Limited_Type): A type that is a descendant
1876 of a formal limited private type is not immutably limited in a generic
1879 2010-10-08 Robert Dewar <dewar@adacore.com>
1881 * sem_prag.adb (Check_Duplicate_Pragma): New procedure
1882 Add calls to this new procedure where appropriate
1884 2010-10-08 Vincent Celier <celier@adacore.com>
1886 * a-textio.adb (Get_Chunk): Code clean up.
1888 2010-10-08 Robert Dewar <dewar@adacore.com>
1890 * a-strbou.ads, a-strfix.adb, a-strfix.ads, a-strsea.adb, a-strsea.ads,
1891 a-strsup.adb, a-strsup.ads, a-strunb-shared.adb, a-strunb-shared.ads,
1892 a-strunb.adb, a-strunb.ads, a-stwibo.ads, a-stwifi.adb, a-stwifi.ads,
1893 a-stwise.adb, a-stwise.ads, a-stwisu.adb, a-stwisu.ads,
1894 a-stwiun-shared.adb, a-stwiun-shared.ads, a-stwiun.adb, a-stwiun.ads,
1895 a-stzbou.ads, a-stzfix.adb, a-stzfix.ads, a-stzsea.adb, a-stzsea.ads,
1896 a-stzsup.adb, a-stzsup.ads, a-stzunb-shared.adb, a-stzunb-shared.ads,
1897 a-stzunb.adb, a-stzunb.ads (Find_Token): New version with From
1900 2010-10-08 Robert Dewar <dewar@adacore.com>
1902 * sem_cat.adb (Check_Categorization_Dependencies): Remote types
1903 packages can depend on preleborated packages.
1905 2010-10-08 Robert Dewar <dewar@adacore.com>
1907 * sem_prag.adb (Check_Interrupt_Or_Attach_Handler): Pragmas
1908 Interrupt_Handler and Attach_Handler not allowed in generics.
1910 2010-10-08 Robert Dewar <dewar@adacore.com>
1912 * ali.adb: Set Allocator_In_Body if AB parameter present on M line
1913 * ali.ads (Allocator_In_Body): New flag
1914 * bcheck.adb (Check_Consistent_Restrictions): Handle case of main
1915 program violating No_Allocators_After_Elaboration restriction.
1916 * gnatbind.adb (No_Restriction_List): Add entries for
1917 No_Anonymous_Allocators, and No_Allocators_After_Elaboration.
1918 * lib-load.adb: Initialize Has_Allocator flag
1919 * lib-writ.adb: Initialize Has_Allocator flag
1920 (M_Parameters): Set AB switch if Has_Allocator flag set
1921 * lib-writ.ads: Document AB flag on M line
1922 * lib.adb (Has_Allocator): New function
1923 (Set_Has_Allocator): New procedure
1924 * lib.ads (Has_Allocator): New function
1925 (Set_Has_Allocator): New procedure
1926 (Has_Allocator): New flag in Unit_Record
1927 * sem_ch4.adb (Analyze_Allocator): Add processing for
1928 No_Allocators_After_Elaboration.
1930 2010-10-08 Geert Bosch <bosch@adacore.com>
1932 * a-textio.adb (Get_Line): Rewrite to use fgets instead of fgetc.
1934 2010-10-08 Javier Miranda <miranda@adacore.com>
1936 * sem_prag.adb (Analyze_Pragma): Relax semantic rule of
1937 Java_Constructors because in the JRE library we generate occurrences
1938 in which the "this" parameter is not the first formal.
1940 2010-10-08 Robert Dewar <dewar@adacore.com>
1942 * par-ch3.adb: Minor reformatting.
1944 2010-10-08 Javier Miranda <miranda@adacore.com>
1946 * exp_disp.adb (Make_DT): Do not generate dispatch tables for CIL/Java
1949 2010-10-08 Robert Dewar <dewar@adacore.com>
1951 * par-ch8.adb (P_Use_Type_Clause): Recognize ALL keyword in Ada 2012
1953 * sinfo.adb (Use_Type_Clause): Add All_Present flag.
1954 * sinfo.ads (Use_Type_Clause): Add All_Present flag.
1955 * s-rident.ads: Add entry for No_Allocators_After_Elaboration,
1956 No_Anonymous_Allocators.
1958 2010-10-08 Vincent Celier <celier@adacore.com>
1960 * bindgen.adb (Gen_Restrictions_Ada): No new line after last
1961 restriction, so that the last comma is always replaced with a left
1964 2010-10-08 Javier Miranda <miranda@adacore.com>
1966 * sem_prag.adb (Analyze_Pragma): Add specific check on the type of the
1967 first formal of delegates.
1969 2010-10-08 Robert Dewar <dewar@adacore.com>
1971 * sem_aggr.adb: Minor reformatting.
1973 2010-10-08 Robert Dewar <dewar@adacore.com>
1975 * exp_imgv.adb (Expand_Image_Attribute): Handle special calling
1976 sequence for soft hyphen for Character'Image case.
1977 * rtsfind.ads (Image_Character_05): New entry
1978 * s-imgcha.adb (Image_Character_05): New procedurew
1979 * s-imgcha.ads (Image_Character_05): New procedure
1980 * s-imgwch.adb (Image_Wide_Character): Deal with Ada 2005 soft hyphen
1982 * s-valcha.adb (Value_Character): Recognize SOFT_HYPHEN for 16#AD#
1983 * sem_attr.adb (Eval_Attribute, case Width): Handle soft_hyphen name
1986 2010-10-08 Robert Dewar <dewar@adacore.com>
1988 * sem_attr.adb (Eval_Attribute, case Width): Avoid ludicrous long loop
1989 for case of Wide_[Wide_]Character.
1991 2010-10-08 Robert Dewar <dewar@adacore.com>
1993 * exp_ch3.adb: Minor reformating
1994 Minor code reorganization.
1996 2010-10-08 Javier Miranda <miranda@adacore.com>
1998 * sem_prag.adb (Analyze_Pragma): Add missing checks on wrong use of
1999 pragmas CIL_Constructor and Java_Constructor.
2000 * exp_ch3.adb (Expand_Freeze_Record_Type): Do not generate the
2001 predefined primitives for CIL/Java tagged types.
2003 2010-10-08 Robert Dewar <dewar@adacore.com>
2005 * sem_ch6.adb: Minor reformatting.
2007 2010-10-08 Robert Dewar <dewar@adacore.com>
2009 * gnat1drv.adb: Add call to Validate_Independence.
2010 * par-prag.adb: Add dummy entries for Independent,
2011 Independent_Componentsa.
2012 * sem_ch13.adb (Validate_Independence): New procedure
2013 (Initialize): Initialize address clause and independence check tables
2014 * sem_ch13.ads (Independence_Checks): New table
2015 (Validate_Independence): New procedure
2016 * sem_prag.adb: Add processing for pragma Independent[_Components]
2017 * snames.ads-tmpl: Add entries for pragma Independent[_Components]
2019 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2021 * sem_aggr.adb (Propagate_Discriminants): When expanding an aggregate
2022 component with box initialization, if the component is a variant record
2023 use the values of the discriminants to select the proper variant for
2024 further box initialization.
2026 2010-10-08 Thomas Quinot <quinot@adacore.com>
2028 * xsnames.adb: Remove obsolete file.
2029 * make.adb, sem_ch8.adb, einfo.ads: Minor reformatting.
2031 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2033 * exp_aggr.adb: Complete previous change.
2035 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2037 * sem_ch6.adb (Check_Return_Subtype): The subtype indication in an
2038 extended return must match statically the return subtype of the
2039 enclosing function if the type is an elementary type or if it is
2042 2010-10-08 Vincent Celier <celier@adacore.com>
2044 * prj-nmsc.adb (Add_Source): Report all duplicate units and source file
2045 names. Do not report the same duplicate unit several times.
2046 * prj.ads (Source_Data): New Boolean component Duplicate_Unit,
2047 defaulted to False, to avoid reporting the same unit as duplicate
2050 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2052 * sem_aggr.adb (Resolve_Array_Aggregate): If the expression in an
2053 others choice is a literal, analyze it to enable later optimizations.
2054 * exp_aggr.adb (Expand_Record_Aggregate): An aggregate with static size
2055 and components can be handled by the backend even if it is of a limited
2058 2010-10-08 Arnaud Charlet <charlet@adacore.com>
2060 * a-rttiev.adb (task Timer): Since this package may be elaborated
2061 before System.Interrupt, we need to call Setup_Interrupt_Mask
2062 explicitly to ensure that this task has the proper signal mask.
2064 2010-10-08 Robert Dewar <dewar@adacore.com>
2066 * freeze.adb (Freeze_Entity): For array case, move some processing for
2067 pragma Pack, Component_Size clause and atomic/volatile components here
2068 instead of trying to do the job in Sem_Ch13 and Freeze.
2069 * layout.adb: Use new Addressable function
2070 * sem_ch13.adb (Analyze_Attribute_Representation_Clause, case
2071 Component_Size): Move some handling to freeze point in
2072 Freeze.Freeze_Entity.
2073 * sem_prag.adb (Analyze_pragma, case Pack): Move some handling to
2074 freeze point in Freese.Freeze_Entity.
2075 * sem_util.ads, sem_util.adb (Addressable): New function.
2077 2010-10-08 Robert Dewar <dewar@adacore.com>
2079 * sprint.adb: Minor reformatting.
2081 2010-10-08 Javier Miranda <miranda@adacore.com>
2083 * exp_ch4.adb (Real_Range_Check): Declare temporary as constant.
2085 2010-10-08 Robert Dewar <dewar@adacore.com>
2087 * sem_ch3.adb: Minor reformatting.
2089 2010-10-08 Vincent Celier <celier@adacore.com>
2091 * ali-util.adb (Get_File_Checksum): Make sure that external_as_list is
2092 not a reserved word.
2093 * prj-proc.adb (Expression): Process string list external references.
2094 * prj-strt.adb (External_Reference): Parse external_as_list external
2096 * prj-tree.ads (Expression_Kind_Of): Allowed for N_External_Value nodes
2097 (Set_Expression_Kind_Of): Ditto
2098 * prj.adb (Initialize): Set external_as_list as a reserved word
2099 * projects.texi: Document new string external reference
2101 * scans.ads (Token_Type): New token Tok_External_As_List
2102 * snames.ads-tmpl: New standard name Name_External_As_List
2104 2010-10-08 Thomas Quinot <quinot@adacore.com>
2106 * sem_prag.adb: Minor reformatting.
2108 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2110 * sem_ch3.adb (Derived_Type_Declaration): In the private part of an
2111 instance, it is legal to derive from a non-limited actual when the
2112 formal type is untagged limited.
2113 * sem_ch12.adb (Instantiate_Type): For a formal private type, use
2114 analyzed formal as Generic_Parent_Type, to simplify later checks.
2116 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2118 * sem_res.adb (Insert_Default): If default value is already a
2119 raise_constraint_error do not rewrite it as new raise node, to prevent
2120 infinite loops in the warning removal machinery.
2122 2010-10-08 Robert Dewar <dewar@adacore.com>
2124 * sem_util.adb, sem_prag.adb: Minor reformatting
2126 2010-10-08 Hristian Kirtchev <kirtchev@adacore.com>
2128 * gnat_rm.texi: Remove the section on pragma Implemented_By_Entry.
2129 Add section on pragma Implemented.
2131 2010-10-08 Ed Schonberg <schonberg@adacore.com>
2133 * sem_ch3.adb (Derive_Subprogram): If an abstract extension has a
2134 concrete parent with a concrete constructor, the inherited constructor
2135 is abstract even if the derived type is a null extension.
2137 2010-10-08 Thomas Quinot <quinot@adacore.com>
2139 * sem_ch4.adb: Minor reformatting.
2141 2010-10-08 Hristian Kirtchev <kirtchev@adacore.com>
2143 * einfo.adb: Flag 232 (formerly Implemented_By_Entry) is now unused.
2144 (Implemented_By_Entry): Removed.
2145 (Set_Implemented_By_Entry): Removed.
2146 (Write_Entity_Flags): Remove the output for Implemented_By_Entry.
2147 * einfo.ads: Remove Implemented_By_Entry and its usage in entities.
2148 (Implemented_By_Entry): Removed along with its associated pragma.
2149 (Set_Implemented_By_Entry): Removed along with its associated pragma.
2150 * exp_ch9.adb: Alphabetize with and use clauses of Exp_Ch9.
2151 (Build_Dispatching_Call_Equivalent): New routine.
2152 (Build_Dispatching_Requeue): New routine.
2153 (Build_Dispatching_Requeue_To_Any): New routine.
2154 (Build_Normal_Requeue): New routine.
2155 (Build_Skip_Statement): New routine.
2156 (Expand_N_Requeue_Statement): Rewritten. The logic has been split into
2157 several subroutines.
2158 * par-prag.adb: Replace Pragma_Implemented_By_Entry by
2160 * sem_ch3.adb (Check_Abstract_Overriding): Perform checks concerning
2162 (Check_Pragma_Implemented): New routines.
2163 (Inherit_Pragma_Implemented): New routine.
2164 * sem_ch9.adb (Analyze_Requeue): Update the predicate which detects a
2165 dispatching requeue.
2166 * sem_prag.adb: Update array Sig_Flags by removing Implemented_By_Entry
2167 and adding Implemented.
2168 (Ada_2012_Pragma): New routine.
2169 (Analyze_Pragma, case Implemented): Perform all necessary checks
2170 concerning pragma Implemented and register the pragma as a
2171 representation item with the procedure_LOCAL_NAME.
2172 (Analyze_Pragma, case Implemented_By_Entry): Removed.
2173 * sem_util.adb (Implementation_Kind): New routine.
2174 * sem_util.ads (Implementation_Kind): New routine.
2175 * snames.ads-tmpl: Remove Name_Implemented_By_Entry and add
2176 Name_Implemented. Remove pragma name Pragma_Implemented_By_Entry and
2177 add Pragma_Implemented. Add special names By_Any, By_Entry and
2178 By_Protected_Procedure.
2180 2010-10-08 Javier Miranda <miranda@adacore.com>
2182 * exp_ch3.adb (Expand_Freeeze_Record_Type): Code cleanup: remove local
2183 variable Has_Static_DT by invocation of function Building_Static_DT.
2185 2010-10-08 Vincent Celier <celier@adacore.com>
2187 * g-dirope.adb (Remove_Dir): Do not change the current directory when
2188 doing a recursive remove of a subdirectory.
2190 2010-10-08 Javier Miranda <miranda@adacore.com>
2192 * exp_ch6.ad (Freeze_Subprogram): Factorize code.
2193 * exp_disp.adb (Make_Secondary_DT): Factorize code.
2194 (Make_DT): Factorize code.
2196 2010-10-08 Robert Dewar <dewar@adacore.com>
2198 * sem_ch4.adb: Minor reformatting.
2200 2010-10-08 Robert Dewar <dewar@adacore.com>
2202 * sem_ch6.adb (Check_Conformance): Check null exclusion match for full
2205 2010-10-08 Thomas Quinot <quinot@adacore.com>
2207 * sem_ch12.adb (Instantiate_Object): Rename Formal_Id to Gen_Obj, for
2208 consistency with Gen_T in Instantiate_Type.
2209 Introduce constant A_Gen_Obj to avoid repeated queries for
2210 Defining_Identifier (Analyzed_Formal).
2212 2010-10-08 Vincent Celier <celier@adacore.com>
2214 * prj-nmsc.adb: Minor comment fix.
2216 2010-10-07 Robert Dewar <dewar@adacore.com>
2218 * sem_prag.adb, sem_ch13.adb: Implement AI05-0012-1/02.
2219 * gcc-interface/Make-lang.in: Update dependencies.
2221 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2223 * sem_ch12.ad: (Instantiate_Object): For an in-out formal of a child
2224 unit, if the type of the formal is declared in a parent unit and is not
2225 a formal itself, the actual must be located from an enclosing parent
2226 instance by normal visibility.
2228 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2230 * sem_ch4.adb (Analyze_Allocator): In Ada 2012, a null_exclusion
2231 indicator is illegal for an uninitialized allocator.
2233 2010-10-07 Robert Dewar <dewar@adacore.com>
2235 * sem_prag.adb (Analyze_Attribute_Definition_Clause, case
2236 Component_Size): Complete previous change.
2238 2010-10-07 Vincent Celier <celier@adacore.com>
2240 * scng.adb (Scan): Call Accumulate_Token_Checksum for Tok_Identifier,
2241 even for keywords, to avoid having the checksum to depend on the Ada
2244 2010-10-07 Gary Dismukes <dismukes@adacore.com>
2246 * sem_aggr.adb, sem_ch12.adb, sem_ch6.adb, par-ch5.adb,
2247 exp_ch3.adb: Minor reformatting.
2249 2010-10-07 Robert Dewar <dewar@adacore.com>
2251 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
2252 Component_Size): It is now illegal to give an incorrect component size
2253 clause in the case of aliased or atomic components.
2254 * sem_prag.adb (Analyze_Pragma, case Pack): It is now illegal to give
2255 an effective pragma Pack in the case of aliased or atomic components.
2257 2010-10-07 Steve Baird <baird@adacore.com>
2259 * exp_ch4.adb (Expand_N_Allocator): Do not bypass expansion
2260 in the case of a violation of an active No_Task_Hierarchy restriction.
2262 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2264 * sem_ch12.adb (Validate_Derived_Type_Instance): If a formal derived
2265 type is non-limited, an actual for it cannot be limited.
2267 2010-10-07 Robert Dewar <dewar@adacore.com>
2269 * einfo.ads (No_Pool_Assigned): Update documentation.
2270 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
2271 Storage_Size): We only set No_Pool_Assigned if the expression is a
2272 static constant and zero.
2273 * sem_res.adb (Resolve_Allocator): Allocation from empty storage pool
2274 should be an error not a warning.
2276 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2278 * exp_aggr.adb (Expand_Array_Aggregate): Recognize additional cases
2279 where an aggregate in an assignment can be built directly into the
2280 target, and does not require the creation of a temporary that may
2283 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2285 * sem_aggr.adb (Analyze_Record_Aggregate): In Ada2012, a choice list
2286 in a record aggregate can correspond to several components of
2287 anonymous access types, as long as the designated subtypes match.
2289 2010-10-07 Robert Dewar <dewar@adacore.com>
2291 * gnat_rm.texi, exp_util.adb, sinfo.adb, sinfo.ads, sem_ch12.adb,
2292 sem.adb, gnat_ugn.texi, sem_util.ads, par-ch6.adb, targparm.ads,
2293 restrict.adb, sem_ch6.adb, sem_ch6.ads, sprint.adb, i-c.ads: Change
2294 spelling parametrize(d) => parameterize(d).
2296 2010-10-07 Robert Dewar <dewar@adacore.com>
2298 * sem_ch12.adb: Add comment.
2299 * sem_ch6.adb: Minor reformatting.
2301 2010-10-07 Robert Dewar <dewar@adacore.com>
2303 * par-ch3.adb, par-ch6.adb, par-ch7.adb, par-ch9.adb, par-ch10.adb: Add
2304 Pexp to Pf_Rec constants
2305 (P_Subprogram): Expression is always enclosed in parentheses
2306 * par.adb (Pf_Rec): add Pexp flag for parametrized expression
2307 * sinfo.ads (N_Parametrized_Expression): Expression must be in parens
2309 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2311 * sem_ch6.adb (Analyze_Subprogram_Specification): Implement Ada2012
2312 checks on functions that return an abstract type or have a controlling
2313 result whose designated type is an abstract type.
2314 (Check_Private_Overriding): Implement Ada2012 checks on functions
2315 declared in the private part, if an abstract type is involved.
2316 * sem_ch12.adb (Analyze_Generic_Subprogram_Declaration): In Ada2012,
2317 reject a generic function that returns an abstract type.
2318 * exp_ch5.adb (Expand_Simple_Function_Return): in Ada2012, if a
2319 function has a controlling access result, check that the tag of the
2320 return value matches the designated type of the return expression.
2322 2010-10-07 Robert Dewar <dewar@adacore.com>
2324 * par-ch6.adb: Fix error in handling of parametrized expressions.
2325 * par-ch4.adb (P_Name): Allow qualified expression as name in Ada 2012
2327 (P_Simple_Expression): Better message for qualified expression prefix
2328 * s-crc32.adb: Minor reformatting.
2329 * exp_intr.adb (Expand_Unc_Deallocation): Remove test for empty
2330 storage pool (this test is moved to Sem_Intr).
2331 * sem_intr.adb (Check_Intrinsic_Call): Add check for deallocation from
2332 empty storage pool, moved here from Exp_Intr and made into error.
2333 (Check_Intrinsic_Call): Remove assumption in generating not-null free
2334 warning that the name of the instantiation is Free.
2335 * sinput.adb (Tree_Read): Document use of illegal free call allowed in
2337 * types.ads: Remove storage size clauses from big types (since we may
2338 need to do deallocations, which are now illegal for empty pools).
2340 2010-10-07 Sergey Rybin <rybin@adacore.com>
2342 * gnat_ugn.texi: Add missing word.
2344 2010-10-07 Robert Dewar <dewar@adacore.com>
2346 * exp_util.adb (Insert_Actions): Add handling of
2347 N_Parametrized_Expression.
2348 * par-ch6.adb (P_Subprogram): Add parsing of parametrized expression
2349 * sem.adb: Add entry for N_Parametrized_Expression
2350 * sem_ch6.adb (Analyze_Parametrized_Expression): New procedure
2351 * sem_ch6.ads (Analyze_Parametrized_Expression): New procedure
2352 * sinfo.ads, sinfo.adb: Add N_Parametrized_Expression
2353 * sprint.adb (Sprint_Node): Add handling for N_Parametrized_Expression
2354 * par-ch4.adb: Minor reformatting.
2356 2010-10-07 Robert Dewar <dewar@adacore.com>
2358 * scng.adb (Skip_Other_Format_Characters): New procedure
2359 (Start_Of_Wide_Character): New procedure
2360 (Scan): Use Start_Of_Wide_Character where appropriate
2361 (Scan): Improve error message for other_format chars in identifier
2362 (Scan): Allow other_format chars between tokens
2364 2010-10-07 Javier Miranda <miranda@adacore.com>
2366 * exp_util.adb (Safe_Prefixed_Reference): When removing side effects,
2367 Add missing support for explicit dereferences.
2369 2010-10-07 Robert Dewar <dewar@adacore.com>
2371 * par-ch10.adb, par-ch3.adb, par.adb: Minor reformatting.
2373 2010-10-07 Robert Dewar <dewar@adacore.com>
2375 * exp_disp.adb, exp_dist.adb, exp_util.ads, exp_util.adb,
2376 exp_ch11.adb: Rename Full_Qualified_Name to Fully_Qualified_Name_String
2377 * sem_util.adb, sem_util.ads (Full_Qualified_Name): Moved to
2378 Exp_Util.Fully_Qualified_Name_String.
2380 2010-10-07 Robert Dewar <dewar@adacore.com>
2382 * rtsfind.ads: Add entry for Ada.Real_Time.Timing_Events.Set_Handler
2383 * sem_res.adb (Resolve_Call): A call to
2384 Ada.Real_Time.Timing_Events.Set_Handler violates restriction
2385 No_Relative_Delay (AI-0211).
2387 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2389 * sem_ch10.adb: Small change in error message.
2391 2010-10-07 Robert Dewar <dewar@adacore.com>
2393 * tbuild.ads: Minor reformatting.
2395 2010-10-07 Robert Dewar <dewar@adacore.com>
2397 * gnatcmd.adb, make.adb, prj-nmsc.adb, sem_elab.adb: Minor reformatting
2399 2010-10-07 Arnaud Charlet <charlet@adacore.com>
2401 * exp_ch11.adb (Expand_N_Exception_Declaration): Update comments.
2403 2010-10-07 Robert Dewar <dewar@adacore.com>
2405 * sem_res.adb: Minor reformatting
2407 2010-10-07 Olivier Ramonat <ramonat@adacore.com>
2409 * gnat_ugn.texi: Minor editing.
2410 * opt.ads: Document that scripts rely on specific formats in opt.ads
2412 2010-10-07 Robert Dewar <dewar@adacore.com>
2414 * a-wichun.ads, a-wichun.adb (To_Lower_Case): New function
2415 (To_Upper_Case): Fix to be inverse of To_Lower_Case
2416 * a-zchuni.ads, a-zchuni.adb (To_Lower_Case): New function
2417 (To_Upper_Case): Fix to be inverse of To_Lower_Case
2419 2010-10-07 Robert Dewar <dewar@adacore.com>
2421 * a-wichha.adb, a-wichha.ads, a-zchhan.adb, a-zchhan.ads: New file.
2422 * impunit.adb: Add entries for a-wichha/a-zchhan
2423 * Makefile.rtl: Add entries for a-wichha/a-zchhan
2425 2010-10-07 Vincent Celier <celier@adacore.com>
2427 * make.adb (Check): Call Check_Source_Info_In_ALI with Project_Tree
2428 * makeutl.adb (Check_Source_Info_In_ALI): If there is at least one
2429 replaced source, check that none of the replaced sources are in the
2431 * makeutl.ads (Check_Source_Info_In_ALI): New parameter Tree
2432 * prj-nmsc.adb (Remove_Source): New parameter Tree. If the source is
2433 replaced with a source with a different file name, put it in the hash
2434 table Replaced_Sources.
2435 (Add_Source): Call Remove_Source with Data.Tree. If there is at least
2436 one replaced source, check if it has the same file name as the current
2437 source; if it has, remove it from the hash table Replaced_Sources.
2438 * prj.adb (Reset): Reset hash table Tree.Replaced_Sources
2439 * prj.ads (Replaced_Source_HTable): New hash table
2440 (Project_Tree_Data): New components Replaced_Sources and
2441 Replaced_Source_Number.
2443 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2445 * sem_elab.adb (Check_A_Call): After inserting elaboration check, set
2446 proper flag to prevent a double elaboration check on the same call.
2447 * exp_util.adb (Insert_Actions): If the enclosing node is an
2448 Expression_With_Actions and it has been analyzed already, find
2449 insertion point further up in the tree.
2451 2010-10-07 Hristian Kirtchev <kirtchev@adacore.com>
2453 * sem_ch13.adb (Analyze_Record_Representation_Clause): Alphabetize all
2454 local variables. Remove the general restriction which prohibits the
2455 application of record rep clauses to Unchecked_Union types. Add Ada
2456 2012 check to detect improper naming of an Unchecked_Union
2457 discriminant in record rep clause.
2458 * sem_prag.adb: Add with and use clause for Exp_Ch7.
2459 (Analyze_Pragma): Unchecked_Union case: Propagate the Unchecked_Union
2460 type to all invocations of Check_Component and Check_Variant.
2461 (Check_Component): Add formal parameters UU_Typ and In_Variant_Part.
2462 Rewritten. Add Ada 2012 check to detect improper use of formal
2463 private types and private extensions as component types of an
2464 Unchecked_Union declared inside a generic body.
2465 (Check_Variant): Add formal parameter UU_Typ. Propagate the
2466 Unchecked_Union type to all calls of Check_Component. Signal that the
2467 current component comes from the variant part of an Unchecked_Union
2469 (Inside_Generic_Body): New routine.
2471 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2473 * exp_ch4.adb (Expand_Composite_Equality): When looking for a primitive
2474 equality operation for a record component, verify that both formals
2475 have the same type, and the result type is boolean.
2477 2010-10-07 Vincent Celier <celier@adacore.com>
2479 * gnatcmd.adb (Check_Files): When looking for the .ci file for a
2480 binder generated file, look for both b~xxx and b__xxx as gprbuild
2481 always uses b__ as the prefix of such files.
2483 2010-10-07 Thomas Quinot <quinot@adacore.com>
2485 * sem_res.adb: Minor reformatting.
2487 2010-10-07 Arnaud Charlet <charlet@adacore.com>
2489 * debug.adb: Update -gnatd.J documentation.
2491 2010-10-07 Robert Dewar <dewar@adacore.com>
2493 * gnat_rm.texi: Document handling of invalid values
2494 * s-utf_32.ads, s-utf_32.adb (UTF_To_Lower_Case): Fix implementation
2496 (UTF_To_Upper_Case): New function.
2498 2010-10-07 Robert Dewar <dewar@adacore.com>
2500 * sem_attr.adb: Minor reformatting.
2501 * einfo.ads, einfo.adb (Is_Ada_2012_Only): New flag
2502 * itypes.adb (Create_Null_Excluding_Itype): Set Is_Ada_2012_Only flag
2504 * lib-xref.adb (Generate_Reference): Warn on use of Ada 2012 entity in
2506 * opt.ads (Warn_On_Ada_2012_Compatibility): New flag
2507 * sem_ch3.adb (Analye_Subtype_Declaration): Inherit Is_Ada_2012_Only
2508 * sem_ch7.adb (Preserve_Full_Attributes): Preserve Is_Ada_2012_Only
2510 * sem_prag.adb (Analyze_Pragma, case Ada_12/Ada_2012): Allow form with
2512 * sem_type.adb (Disambiguate): Deal with Is_Ada_2012_Only.
2513 * sem_warn.adb (Warn_On_Ada_2012_Compatibility): New flag, treated
2516 2010-10-07 Javier Miranda <miranda@adacore.com>
2518 * a-tags.ads: Use new support for pragma Ada_2012 with function
2521 2010-10-07 Ed Schonberg <schonberg@adacore.com>
2523 * par-ch5.adb (P_Sequence_Of_Statements): In Ada2012 a label can end a
2524 sequence of statements.
2526 2010-10-07 Vincent Celier <celier@adacore.com>
2528 * gnatcmd.adb (Check_Files): Only add a .ci files if it exists
2530 2010-10-07 Javier Miranda <miranda@adacore.com>
2532 * a-tags.ads, a-tags.adb (Type_Is_Abstract): New subprogram.
2533 * rtsfind.ads (RE_Type_Is_Abstract): New entity.
2534 * exp_disp.adb (Make_DT): Initialize TSD component Type_Is_Abstract.
2536 2010-10-07 Arnaud Charlet <charlet@adacore.com>
2538 * sem_ch12.adb (Mark_Context): Removed, no longer needed.
2539 (Analyze_Package_Instantiation): No longer analyze systematically a
2540 generic body in CodePeer mode.
2541 * freeze.adb, sem_attr.adb: Update comments.
2543 2010-10-05 Robert Dewar <dewar@adacore.com>
2545 * par-ch5.adb (Test_Statement_Required): Allow all pragmas in Ada 2012
2548 2010-10-05 Pascal Obry <obry@adacore.com>
2550 * gnat_rm.texi: Fix typo.
2552 2010-10-05 Arnaud Charlet <charlet@adacore.com>
2554 * gnat_ugn.texi: Add note about identifiers with same name and
2557 2010-10-05 Robert Dewar <dewar@adacore.com>
2559 * sem_ch4.adb: Minor reformatting.
2560 * a-direct.ads: Minor comment update.
2562 2010-10-05 Javier Miranda <miranda@adacore.com>
2564 * sem_ch3.adb (Add_Internal_Interface_Entities): Removing code that is
2565 no longer required after change in New_Overloaded_Entity.
2566 * sem_ch6.adb (New_Overloaded_Entity): Code reorganization to isolate
2567 the fragment of code that handles derivations of interface primitives.
2568 Add missing dependence on global variable Inside_Freezing_Actions to
2569 ensure the correct management of internal interface entities.
2570 * sem_ch13.adb (Analyze_Freeze_Entity): Add missing increase/decrease
2571 of the global variable Inside_Freezing_Actions to ensure that internal
2572 interface entities are well handled by New_Overloaded_Entity.
2573 * sem_disp.adb (Find_Primitive_Covering_Interface): Add documentation
2574 and complete the algorithm to catch hidden primitives derived of
2575 private type that covers the interface.
2576 * sem_disp.ads (Find_Primitive_Covering_Interface): Add missing
2579 2010-10-05 Robert Dewar <dewar@adacore.com>
2581 * prj-util.adb, prj-util.ads, prj.ads, s-vxwext-rtp.adb, sem_ch4.adb,
2582 sem_ch7.adb, sem_res.adb, sem_type.adb: Minor reformatting.
2583 Minor code reorganization (use Nkind_In).
2585 2010-10-05 Ed Schonberg <schonberg@adacore.com>
2587 * sem_ch10.adb (Analyze_Task_Body_Stub): Diagnose duplicate stub for
2590 2010-10-05 Vincent Celier <celier@adacore.com>
2592 * gnatbind.adb: If the main library file is not for a suitable main
2593 program, change the error message.
2595 2010-10-05 Vincent Celier <celier@adacore.com>
2597 * a-direct.ads: Minor spelling error fixes in comments.
2598 * gnat_rm.texi: Add three entries in "Implementation Defined
2599 Characteristics" for the interpretations of the Form parameters in
2602 2010-10-05 Robert Dewar <dewar@adacore.com>
2604 * exp_ch3.adb, exp_ch5.adb, exp_disp.adb, exp_dist.adb, gnatlink.adb,
2605 makeutl.adb, par-ch6.adb, prj-dect.adb, prj-env.adb, prj-env.ads,
2606 prj-ext.adb, prj-nmsc.adb, prj-part.adb, prj-pp.ads: Minor code
2610 2010-10-05 Ed Schonberg <schonberg@adacore.com>
2612 * sem_res.adb (Check_Parameterless_Call): If the prefix of 'Address is
2613 an explicit dereference of an access to function, the prefix is not
2614 interpreted as a parameterless call.
2616 2010-10-05 Ed Schonberg <schonberg@adacore.com>
2618 * exp_attr.adb: For 'Read and 'Write, use full view of base type if
2621 2010-10-05 Vincent Celier <celier@adacore.com>
2623 * make.adb (Switches_Of): Allow wild cards in index of attributes
2625 * prj-util.adb (Value_Of): When Allow_Wildcards is True, use the index
2626 of the associative array as a glob regular expression.
2627 * prj-util.ads (Value_Of (Index, In_Array)): New Boolean parameter
2628 Allow_Wildcards, defaulted to False.
2629 (Value_Of (Name, Attribute_Or_Array_Name)): Ditto
2630 * projects.texi: Document that attribute Switches (<file name>) may
2631 use wild cards in the index.
2633 2010-10-05 Robert Dewar <dewar@adacore.com>
2635 * a-direct.adb, a-direct.ads, back_end.adb, checks.adb,
2636 einfo.adb: Minor reformatting.
2637 * debug.adb: Remove obsolete documentation for d.Z flag.
2639 2010-10-05 Vincent Celier <celier@adacore.com>
2641 * vms_data.ads: Add VMS qualifier /SRC_INFO= corresponding to gnatmake
2642 switch --create-info-file=.
2643 * gnat_ugn.texi: Add documentation for new gnatmake switch
2646 2010-10-05 Ed Schonberg <schonberg@adacore.com>
2648 * sem_ch3.adb: Do not elaborate type definition if syntax error.
2650 2010-10-05 Javier Miranda <miranda@adacore.com>
2652 * sprint.adb (Sprint_Node_Actual): Improve output of subprogram bodies
2653 to generate the full-qualified names of its corresponding spec.
2654 This facilitates locating the corresponing body when reading
2657 2010-10-05 Thomas Quinot <quinot@adacore.com>
2659 * exp_dist.adb (Make_Helper_Function_Name): For a tagged type, use
2660 canonical name without serial number only if the helper is becoming a
2661 primitive of the type.
2663 2010-10-05 Javier Miranda <miranda@adacore.com>
2665 * exp_disp.adb (Make_DT): Minor code reorganization.
2667 2010-10-05 Ed Schonberg <schonberg@adacore.com>
2669 * par-ch6.adb: improve recovery with extra paren in function spec.
2671 2010-10-05 Quentin Ochem <ochem@adacore.com>
2673 * prj-tree.ads: Project_Path is now aliased.
2675 2010-10-05 Thomas Quinot <quinot@adacore.com>
2677 * checks.adb: Minor reformatting.
2679 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
2681 * mlib-tgt-specific-mingw.adb (No_Argument_List): Delete.
2682 (Shared_Libgcc): New aliased variable.
2683 (Shared_Libgcc_Switch): New constant.
2684 (Build_Dynamic_Library): Pass Shared_Libgcc_Switch to the compiler
2685 * gcc-interface/Makefile.in (gnatlib-shared-win32): Pass -shared-libgcc
2687 * gcc-interface/Make-lang.in: Update dependencies.
2689 2010-10-05 Vincent Celier <celier@adacore.com>
2691 * prj-part.adb (Parse_Simple_Project): When checking if a child project
2692 imports its parent project, also look in projects being extended by
2695 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
2697 * gnat_ugn.texi: Adjust instructions in G.10 Building DLLs with GNAT.
2699 2010-10-05 Javier Miranda <miranda@adacore.com>
2701 * exp_cg.adb (Slot_Number): Add support to handle aliased entities.
2702 (Generate_CG_Output): Switch -gnatd.Z is no longer needed to
2703 activate this output.
2705 2010-10-05 Arnaud Charlet <charlet@adacore.com>
2707 * back_end.adb (Call_Back_End): Generate an error message when scil
2708 generation is enabled, and no scil back-end (by default) is available.
2710 2010-10-05 Javier Miranda <miranda@adacore.com>
2712 * debug.adb: Update documentation since -gnatd.Z is no longer required
2713 to generate the call-graph information.
2715 2010-10-05 Javier Miranda <miranda@adacore.com>
2717 * exp_ch5.adb (Expand_Simple_Function_Return): Rewrite expansion of a
2718 runtime access check by an equivalent expansion that causes
2719 no problems in the VM backend. The original expansion was
2720 not good for the VM backends because when Tagged_Type_Expansion
2721 is disabled the attribute Access_Disp_Table is not available.
2723 2010-10-05 Ed Schonberg <schonberg@adacore.com>
2725 * sem_type.adb (Covers): In a dispatching context, T1 covers T2 if T2
2726 is class-wide and T1 is its specific type.
2728 2010-10-05 Ed Schonberg <schonberg@adacore.com>
2730 * einfo.adb: Add guard to Is_String_Type to prevent cascaded errors.
2732 2010-10-05 Vincent Celier <celier@adacore.com>
2734 * back_end.ads: Minor spelling error correction.
2736 2010-10-05 Arnaud Charlet <charlet@adacore.com>
2738 * switch-c.adb, gnat1drv.adb (Scan_Front_End_Switches): Disable
2739 warnings when -gnatC is specified here so that warnings can be
2740 re-enabled explicitly.
2741 (Adjust_Global_Switches): No longer suppress warnings.
2743 2010-10-05 Vincent Celier <celier@adacore.com>
2745 * makeutl.adb: Minor reformatting.
2747 2010-10-05 Ed Schonberg <schonberg@adacore.com>
2749 * sem_ch4.adb: add guard in Analyze_One_Call to prevent crash when a
2750 non-discrete type appears as an actual in a call.
2752 2010-10-05 Vincent Celier <celier@adacore.com>
2754 * make.adb (Scan_Make_Arg): Take into account new switch
2756 * makeusg.adb: Add line for new switch --source-info=file.
2757 * makeutl.ads (Source_Info_Option): New constant String for new builder
2759 * prj-conf.adb: Put subprograms in alphabetical order
2760 (Process_Project_And_Apply_Config): Read/write an eventual source info
2762 * prj-nmsc.adb (Look_For_Sources.Get_Sources_From_Source_Info): New
2764 (Look_For_Sources): If a source info file was successfully read, get
2765 the source data from the data read from the source info file.
2766 * prj-util.adb (Source_Info_Table): New table
2767 (Source_Info_Project_HTable): New hash table
2768 (Create): New procedure
2769 (Put (File), Put_Line): New procedures
2770 (Write_Source_Info_File): New procedure
2771 (Read_Source_Info_File): New procedure
2772 (Initialize): New procedure
2773 (Source_Info_Of): New procedure
2774 (Next): New procedure
2775 (Close): When file is an out file, fail if the buffer cannot be written
2776 or if the file cannot be close successfully.
2777 (Get_Line): Fail if file is an out file
2778 * prj-util.ads (Create): New procedure
2779 (Put (File), Put_Line): New procedures
2780 (Write_Source_Info_File): New procedure
2781 (Read_Source_Info_File): New procedure
2782 (Source_Info_Data): New record type
2783 (Source_Info_Iterator): New private type
2784 (Initialize): New procedure
2785 (Source_Info_Of): New procedure
2786 (Next): New procedure
2787 * prj.ads (Project_Tree_Data): New components Source_Info_File_Name and
2788 Source_Info_File_Exists.
2790 2010-10-05 Ed Schonberg <schonberg@adacore.com>
2792 * exp_ch4.adb: Fix typo.
2794 2010-10-05 Thomas Quinot <quinot@adacore.com>
2796 * lib-writ.adb: Minor reformatting.
2798 2010-10-05 Javier Miranda <miranda@adacore.com>
2800 * sem_ch3.adb (Access_Definition): Remove useless code.
2802 2010-10-05 Emmanuel Briot <briot@adacore.com>
2804 * prj-env.adb, prj-env.ads (Set_Path): New subprogram.
2805 (Deep_Copy): Removed, not used.
2807 2010-10-05 Javier Miranda <miranda@adacore.com>
2809 * sem_ch3.adb (Add_Internal_Interface_Entities): Code reorganization:
2810 move code that searches in the list of primitives of a tagged type for
2811 the entity that will be overridden by user-defined routines.
2812 * sem_disp.adb (Find_Primitive_Covering_Interface): Move here code
2813 previously located in routine Add_Internal_Interface_Entities.
2814 * sem_disp.ads (Find_Primitive_Covering_Interface): Update docs.
2815 * sem_ch6.adb (New_Overloaded_Entity): Add missing check on
2816 availability of attribute Alias.
2818 2010-10-05 Ed Falis <falis@adacore.com>
2820 * s-taprop-vxworks.adb, s-osinte-vxworks.adb, s-osinte-vxworks.ads,
2821 s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.adb, s-vxwext-rtp.ads:
2822 Move definition of intContext to System.OS_Interface.
2823 Add necessary variants in System.VxWorks.Extensions.
2825 2010-10-05 Doug Rupp <rupp@adacore.com>
2827 * s-asthan-vms-alpha.adb: On VMS, a task using
2828 pragma AST_Entry exhibits a memory leak when the task terminates
2829 because the vector allocated for the AST interface is not freed. Fixed
2830 by making the vector a controlled type.
2832 2010-10-05 Emmanuel Briot <briot@adacore.com>
2834 * prj-nmsc.adb (Expand_Subdirectory_Pattern): Check that the prefix in
2835 a "**" pattern properly exists, and report an error otherwise.
2837 2010-10-05 Emmanuel Briot <briot@adacore.com>
2839 * prj-env.ads: Use GNAT.OS_Lib rather than System.OS_Lib.
2841 2010-10-05 Emmanuel Briot <briot@adacore.com>
2843 * prj-nmsc.adb, prj-err.adb (Expand_Subdirectory_Pattern): New
2845 Extract some code from Get_Directories, to share with the handling
2846 of aggregate projects (for the Project_Files attributes)
2848 2010-10-05 Emmanuel Briot <briot@adacore.com>
2850 * gnatcmd.adb, prj-proc.adb, prj-part.adb, prj-ext.adb, prj-ext.ads,
2851 switch-m.adb, clean.adb, prj-nmsc.adb, prj-nmsc.ads, prj-env.adb,
2852 prj-env.ads, prj-tree.adb, prj-tree.ads (Project_Search_Path): New
2855 2010-10-05 Eric Botcazou <ebotcazou@adacore.com>
2857 * exp_ch5.adb (Make_Field_Expr): Revert previous change (removed).
2859 2010-10-05 Emmanuel Briot <briot@adacore.com>
2861 * prj-dect.adb, prj-nmsc.adb, prj-attr.adb, snames.ads-tmpl
2862 (Aggregate projects): added support for parsing aggregate projects.
2863 In particular, check the presence and value of the new attributes
2864 related to aggregate projects, ie Project_Files, Project_Path
2866 (Check_Attribute_Allowed, Check_Package_Allowed,
2867 Rename_Obsolescent_Attributes): new subprogram, extracting code
2868 from existing subprogram to keep their sizes smaller.
2869 (Check_Aggregate_Project, Check_Abstract_Project,
2870 Check_Missing_Sources): new subprograms
2871 (Check): remove comments that duplicated either the name of the
2872 following subprogram call, or the comment on that subprogram.
2873 * prj-part.adb (Check_Extending_All_Imports): New subprogram, extracted
2874 from Parse_Single_Project.
2875 (Check_Aggregate_Imports): new subprogram.
2877 2010-10-05 Vincent Celier <celier@adacore.com>
2879 * make.adb (Check): When compiling with -gnatc, recompile if the ALI
2880 file has not been generated for the current source, for example if it
2881 has been generated for the spec, but we are compiling the body.
2883 2010-10-05 Bob Duff <duff@adacore.com>
2885 * xgnatugn.adb: Remove unused procedure.
2887 2010-10-04 Vincent Celier <celier@adacore.com>
2889 * a-direct.adb (Copy_File): Interpret the Form parameter and call
2890 System.OS_Lib.Copy_File to do the work accordingly. Raise Use_Error if
2891 the Form parameter contains an incorrect value for field preserve= or
2893 * a-direct.ads (Create_Directory, Create_Path): Indicate that the Form
2894 parameter is ignored.
2895 (Copy_File): Indicate the interpretation of the Form parameter.
2897 2010-10-04 Vincent Celier <celier@adacore.com>
2899 * make.adb (Gnatmake): When there are no foreign languages declared and
2900 a main in attribute Main of the main project does not exist or is a
2901 source of another project, fail immediately before attempting
2904 2010-10-04 Javier Miranda <miranda@adacore.com>
2906 * exp_disp.ads (Convert_Tag_To_Interface): New function which must be
2907 used to convert a node referencing a tag to a class-wide interface
2909 * exp_disp.adb (Convert_Tag_To_Interface): New function.
2910 (Expand_Interface_Conversion): Replace invocation of
2911 Unchecked_Conversion by new function Convert_Tag_To_Interface.
2912 (Write_DT): Add support for null primitives.
2913 * exp_ch3.adb (Expand_N_Object_Declaration): For tagged type objects,
2914 cleanup code that handles interface conversions and avoid unchecked
2915 conversion of referenced tag components.
2916 * exp_ch5.adb (Expand_N_Assignment_Statement): Code cleanup. Avoid
2917 unrequired conversions when generating a dispatching call to _assign.
2918 * sprint.adb (Write_Itype): Fix wrong output of not null access itypes.
2920 2010-10-04 Ed Schonberg <schonberg@adacore.com>
2922 * exp_ch4.adb (Expand_N_Op_Not): Handle properly both operands when the
2923 parent is a binary boolean operation and the operand is an unpacked
2925 (Build_Boolean_Array_Proc_Call): If the operands are both negations,
2926 the operands of the rewritten node are the operands of the negations,
2927 not the negations themselves.
2929 2010-10-04 Robert Dewar <dewar@adacore.com>
2931 * sem_ch13.adb (Set_Biased): New procedure, now used throughout, adds
2932 name of entity to biased warning msg.
2933 (Analyze_Enumeration_Representation_Clause): Remove attempt to use
2934 biased rep (wrong and never worked anyway).
2936 2010-10-04 Arnaud Charlet <charlet@adacore.com>
2938 * sem_elab.adb: Minor reformatting.
2940 2010-10-04 Ed Schonberg <schonberg@adacore.com>
2942 * exp_ch4.adb (Expand_N_Null): Handle properly the case of a subtype of
2943 an access_to_protected subprogram type, and convert null value into
2944 corresponding aggregate.
2946 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
2948 * gnat_ugn.texi: Clarify first point of 7.1.5 about pragma Inline.
2950 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
2952 * make.adb (Scan_Make_Arg): Pass -Oxxx switches to the linker as well.
2953 * gnatlink.adb (Gnatlink): Filter out -Oxxx switches for CLI, RTX and
2956 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
2958 * sem_ch4.adb (Analyze_Indexed_Component_Form): Remove redundant test
2959 for N_Operator_Symbol.
2960 (Indicate_Name_And_Type): Likewise.
2961 * sem_ch8.adb (Analyze_Subprogram_Renaming): Likewise.
2962 * sem_res.adb (Resolve): Likewise.
2963 * sem_type.adb (Add_One_Interp): Likewise.
2964 (Disambiguate): Likewise.
2966 2010-10-04 Vincent Celier <celier@adacore.com>
2968 * osint.adb (Read_Library_Info_From_Full): If object timestamp is less
2969 than ALI file timestamp, return null.
2971 2010-10-04 Vincent Celier <celier@adacore.com>
2973 * prj-makr.adb (Finalize): Invoke Pretty_Print with Max_Length of 79.
2974 * prj-pp.adb (Pretty_Print): New parameter Max_Line_Length, that
2975 replaces global constant with the same name. When a line is too long,
2976 indent properly the next continuation line.
2977 * prj-pp.ads (Pretty_Print): New parameter Max_Line_Length with a range
2978 from 50 to 255, defaulted to 255, to indicate the maximum length of
2979 lines in the project file.
2981 2010-10-04 Eric Botcazou <ebotcazou@adacore.com>
2983 * sem_ch7.adb (Analyze_Package_Body_Helper) <Has_Referencer>: New
2984 Check_Subprogram_Ref function and Check_Subprogram_Refs instantiation
2985 of Traverse_Func on it to look for subprogram references in a body.
2986 Call Check_Subprogram_Refs on the body of inlined subprograms at the
2987 outer level and keep clearing the Is_Public flag of subprograms as long
2988 as it returns OK. Do not look at anything else than subprograms once
2989 an inlined subprogram has been seen.
2991 2010-10-04 Javier Miranda <miranda@adacore.com>
2993 * exp_cg.adb (Expand_N_Assignment_Statement): Restore tag check when
2994 the target object is an interface.
2995 * sem_disp.adb (Propagate_Tag): If the controlling argument is an
2996 interface type then we generate an implicit conversion to force
2997 displacement of the pointer to the object to reference the secondary
2998 dispatch table associated with the interface.
3000 2010-10-04 Robert Dewar <dewar@adacore.com>
3002 * sem_ch13.adb (Analyze_Enumeration_Representation_Clause): Set
3003 Enumeration_Rep_Expr to point to the literal, not the identifier.
3004 (Analyze_Enumeration_Representation_Clause): Improve error message for
3005 size too small for enum rep value
3006 (Analyze_Enumeration_Representation_Clause): Fix size test to use
3007 proper size (RM_Size, not Esize).
3009 2010-10-04 Robert Dewar <dewar@adacore.com>
3011 * s-taprop-vxworks.adb, sem_res.adb: Minor reformatting.
3013 2010-10-04 Javier Miranda <miranda@adacore.com>
3015 * exp_cg.adb (Write_Call_Info): Code clean up.
3017 2010-10-04 Arnaud Charlet <charlet@adacore.com>
3019 * s-taprop-mingw.adb (Create_Task): Initialize Thread_Id field to 0.
3021 2010-10-04 Robert Dewar <dewar@adacore.com>
3023 * exp_cg.adb: Minor code reorganization
3025 * exp_ch5.adb, prj-nmsc.adb: Minor reformatting.
3027 2010-10-04 Bob Duff <duff@adacore.com>
3029 * sem_res.adb (Resolve_Type_Conversion): If a type conversion is needed
3030 to make a qualified expression into a name (syntax-wise), then do not
3031 consider it redundant.
3033 2010-10-04 Thomas Quinot <quinot@adacore.com>
3035 * sem_warn.ads: Fix typo.
3037 2010-10-04 Javier Miranda <miranda@adacore.com>
3039 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Handle suffix in
3041 (Write_Call_Info): Add missing support for renamed primitives.
3043 2010-10-04 Thomas Quinot <quinot@adacore.com>
3045 * exp_ch5.adb (Make_Field_Expr): New subprogram, to factor duplicated
3046 code between Make_Component_List_Assign and Make_Field_Assign.
3048 2010-10-04 Vincent Celier <celier@adacore.com>
3050 * prj-nmsc.adb (Get_Directories): For non extending projects that
3051 declare that they have no sources, do not create a non existing object
3052 or exec directory if builder switch -p is used.
3054 2010-10-04 Sergey Rybin <rybin@adacore.com>
3056 * gnat_ugn.texi (gnatcheck): Change the description of the report file
3059 2010-10-04 Ed Falis <falis@adacore.com>
3061 * s-taprop-vxworks.adb (Is_Task_Context): Import VxWorks intContext to
3062 determine whether Set_True is called from a task or an ISR.
3063 (Set_True): test for being in a task context before trying to
3064 dereference Defer_Abort or Undefer_Abort.
3066 2010-10-04 Robert Dewar <dewar@adacore.com>
3068 * sem_res.adb, sinput-l.adb: Minor reformatting.
3070 2010-10-04 Hristian Kirtchev <kirtchev@adacore.com>
3072 * exp_ch5.adb (Expand_N_Assignment_Statement): Do not generate a tag
3073 check when the target object is an interface since the expression of
3074 the right hand side must only cover the interface.
3076 2010-10-04 Vincent Celier <celier@adacore.com>
3078 * frontend.adb: Set Lib.Parsing_Main_Extended_Source to True before
3079 loading the main source, so that if it is preprocessed and -gnateG is
3080 used, the preprocessed file is written.
3081 * lib.ads (Analysing_Subunit_Of_Main): New global variable to indicate
3082 if a subunit is from the main unit when it is loaded.
3083 * sem_ch10.adb (Analyze_Proper_Body): Set Lib.Analysing_Subunit_Of_Main
3084 to True before loading a subunit.
3085 * sem_ch12.adb (Copy_Generic_Node): Set Lib.Analysing_Subunit_Of_Main
3086 to True when the main is a generic unit before loading one of its
3088 * sinput-l.adb (Load_File): If -gnateG is used, write the preprocessed
3089 file only for the main unit (spec, body and subunits).
3091 2010-10-04 Vincent Celier <celier@adacore.com>
3093 * sinput-l.adb (Load_File): Do not fail when switch -gnateG is
3094 specified and the processed file cannot be written. Just issue a
3095 warning and continue.
3097 2010-10-04 Thomas Quinot <quinot@adacore.com>
3099 * sem_res.adb: Minor reformatting.
3101 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3103 * sem_ch8.adb (Analyze_Subprogram_Renaming): If the renamed operation
3104 is an overridden inherited operation, the desired operation is the
3105 overriding one, which is the alias of the visible one.
3107 2010-10-04 Ed Schonberg <schonberg@adacore.com>
3109 * sem_ch6.adb (Find_Corresponding_Spec): Check that the wrapper body is
3110 present before deleting from the tree, when an inherited function with
3111 a controlling result that returns a null extension is overridden by a
3112 later declaration or body.
3114 2010-10-04 Gary Dismukes <dismukes@adacore.com>
3116 * checks.adb: Update comment.
3118 2010-09-30 Joseph Myers <joseph@codesourcery.com>
3120 * gcc-interface/misc.c (optimize, optimize_size): Undefine as macros
3121 and define as variables.
3122 (gnat_post_options): Set optimize and optimize_size variables.
3124 2010-09-29 Joel Sherrill <joel.sherrill@oarcorp.com>
3126 * g-socket.adb: Move pragma to disable warnings in case multiple errnos
3127 are not defined by target.
3129 2010-09-29 Eric Botcazou <ebotcazou@adacore.com>
3131 * gcc-interface/utils.c (handle_leaf_attribute): Fix long line.
3133 2010-09-28 Richard Henderson <rth@redhat.com>
3135 * gcc-interface/misc.c (gnat_eh_personality): Use
3136 targetm.except_unwind_info.
3138 2010-09-28 Jan Hubicka <jh@suse.cz>
3140 * gcc-interface/utils.c (handle_leaf_attribute): New function.
3141 (gnat_internal_attribute_tables): Add leaf.
3143 2010-09-22 Joseph Myers <joseph@codesourcery.com>
3145 * gcc-interface/lang.opt (-all-warnings, -include-barrier,
3146 -include-directory, -include-directory=, -no-standard-includes,
3147 -no-standard-libraries): New.
3149 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
3151 * gcc-interface/decl.c (gnat_to_gnu_entity): Replace calls to
3152 build_array_type with calls to build_nonshared_array_type.
3153 (substitute_in_type): Likewise.
3154 * gcc-interface/misc.c (LANG_HOOKS_HASH_TYPES): Delete.
3155 (LANG_HOOKS_TYPE_HASH_EQ): Define.
3156 (gnat_post_options): Add 'static' keyword.
3157 (gnat_type_hash_eq): New static function.
3158 * gcc-interface/utils.c (fntype_same_flags_p): New function.
3159 (create_subprog_type): Call it.
3160 (create_index_type): Call build_nonshared_range_type and tidy up.
3161 (create_range_type): Likewise.
3162 * gcc-interface/gigi.h (fntype_same_flags_p): Declare.
3164 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3166 * gcc-interface/trans.c (gnat_pushdecl): Do not do anything special
3168 (end_subprog_body): If the body is a BIND_EXPR, make its associated
3169 block the top-level one.
3170 (build_function_stub): Build a statement group for the whole function.
3171 * gcc-interface/utils.c (Subprogram_Body_to_gnu): If copy-in/copy-out
3172 is used, create the enclosing block early and process first the OUT
3175 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3177 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>: Do
3178 not generate debug info for individual enumerators.
3180 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3182 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Use record
3183 type instead of enumeral type as the dummy type built for the template
3184 type of fat pointers.
3186 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3188 * gcc-interface/gigi.h (get_elaboration_procedure): Declare.
3189 (gnat_zaplevel): Likewise.
3190 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force global
3191 binding level for an external constant.
3192 <E_Constant>: Force the local context and create a fake scope before
3193 translating the defining expression of an external constant.
3194 <object>: Treat external constants at the global level explicitly for
3195 renaming declarations.
3196 (elaborate_expression_1): Force the variable to be static if the
3197 expression is global.
3198 * gcc-interface/trans.c (get_elaboration_procedure): New function.
3199 (call_to_gnu): Use it.
3200 (gnat_to_gnu): Likewise.
3201 <N_Object_Declaration>: Do not test Is_Public to force the creation of
3202 an initialization variable.
3203 (add_decl_expr): Discard the statement if the declaration is external.
3204 * gcc-interface/utils.c (gnat_pushdecl): Do not put the declaration in
3205 the current block if it is external.
3206 (create_var_decl_1): Do not test Is_Public to set TREE_STATIC.
3207 (gnat_zaplevel): New global function.
3209 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3211 * gcc-interface/decl.c (gnat_to_gnu_entity): Explicitly test _LEVEL
3212 variables against zero in all cases.
3213 (rest_of_type_decl_compilation): Likewise.
3214 * gcc-interface/trans.c (gigi): Pass properly typed constants to
3216 (call_to_gnu): Fix formatting.
3217 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
3218 (Exception_Handler_to_gnu_zcx): Likewise.
3219 (gnat_to_gnu) <N_Object_Declaration>: Short-circuit handling of
3221 expressions in presence of a freeze node.
3223 2010-09-19 Eric Botcazou <ebotcazou@adacore.com>
3225 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Constant>: Look into
3226 expressions for external constants that are aggregates.
3227 * gcc-interface/utils2.c (build_simple_component_ref): If the field
3228 is an inherited component in an extension, look through the extension.
3230 2010-09-10 Vincent Celier <celier@adacore.com>
3232 * projects.texi: Add documentation for package extensions
3233 Add some documentation for attributes Leading_Library_Options and
3234 Linker'Leading_Switches.
3236 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3238 * exp_util.adb (Expand_Subtype_From_Expression): When expansion is
3239 disabled, compute subtype for all string types.
3241 2010-09-10 Robert Dewar <dewar@adacore.com>
3243 * gnat_ugn.texi: Add documentation for -gnatw.s/S
3244 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case
3245 Component_Size): Implement warning on overriden size clause.
3246 (Analyze_Record_Representation_Clause): Implement warning on overriden
3248 * sem_warn.ads, sem_warn.adb (Warn_On_Overridden_Size): New flag
3250 * ug_words: Add entries for -gnatw.s/S.
3251 * vms_data.ads, usage.adb: Add line for -gnatw.s/-gnatw.S.
3252 * gcc-interface/Make-lang.in: Update dependencies.
3254 2010-09-10 Vincent Celier <celier@adacore.com>
3256 * prj-dect.adb (Parse_Package_Declaration): Allow a package to extend
3257 a package with the same name from an imported or extended project.
3258 * prj-proc.adb (Process_Declarative_Items): Process package extensions
3260 2010-09-10 Bob Duff <duff@adacore.com>
3262 * exp_ch6.adb (Expand_Call): Do not perform a null_exclusion check on
3265 2010-09-10 Robert Dewar <dewar@adacore.com>
3267 * sem.adb: Minor reformatting.
3269 2010-09-10 Bob Duff <duff@adacore.com>
3271 * s-os_lib.ads, g-expect.ads: Add comments.
3273 2010-09-10 Robert Dewar <dewar@adacore.com>
3275 * exp_ch5.adb: Minor reformatting.
3277 2010-09-10 Thomas Quinot <quinot@adacore.com>
3279 * scos.ads: Add comments.
3281 2010-09-10 Vincent Celier <celier@adacore.com>
3283 * gnatcmd.adb (Get_Closure): Remove useless invocation of Close.
3285 2010-09-10 Hristian Kirtchev <kirtchev@adacore.com>
3287 * exp_ch7.adb, exp_ch6.adb (Expand_Call): Establish a transient scope
3288 for a controlled build-in-place function call which appears in an
3289 anonymous context. The transient scope ensures that the intermediate
3290 function result is cleaned up after the master is left.
3291 (Make_Build_In_Place_Call_In_Anonymous_Context): Remove the creation
3292 of the transient scope. This is now done in Exand_Call which covers
3293 additional cases other than secondary stack release.
3295 2010-09-10 Arnaud Charlet <charlet@adacore.com>
3297 * sem.adb (Do_Unit_And_Dependents): Add guard.
3299 2010-09-10 Robert Dewar <dewar@adacore.com>
3301 * exp_ch5.adb: Update comments.
3302 * exp_dist.adb: Minor reformatting.
3304 2010-09-10 Robert Dewar <dewar@adacore.com>
3306 * sem_ch13.adb (Check_Record_Representation_Clause): Implement record
3308 * sem_warn.ads, sem_warn.adb (Warn_On_Record_Holes): New warning flag.
3309 * usage.adb: Add lines for -gnatw.h/H
3310 * gnat_ugn.texi: Add documentation for J519-010
3311 Warn on record holes/gaps
3312 * ug_words: Add entries for -gnatw.h/-gnatw.H
3313 * vms_data.ads: Add entries for [NO]AVOIDGAPS
3315 2010-09-10 Gary Dismukes <dismukes@adacore.com>
3317 * sem_ch6.adb: Update comment.
3319 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3321 * sem_ch3.adb (Build_Derived_Private_Type): Mark generated declaration
3322 of full view analyzed after analyzing the corresponding record
3323 declaration, to prevent spurious name conflicts with original
3326 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
3328 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): In the VM case,
3329 just issue a warning, but continue with the normal processing.
3331 2010-09-10 Robert Dewar <dewar@adacore.com>
3333 * exp_attr.adb, prj-nmsc.adb, sem_ch4.adb, sem_res.adb: Minor
3336 2010-09-10 Thomas Quinot <quinot@adacore.com>
3338 * exp_dist.adb (Build_From_Any_Call, Build_To_Any_Call,
3339 Build_TypeCode_Call): For a subtype inserted for the expansion of a
3340 generic actual type, go to the underlying type of the original actual
3343 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3345 * exp_ch5.adb (Expand_Assign_Array_Loop): In CodePeer mode, place a
3346 guard around the increment statement, to prevent an off-by-one-value
3347 on the last iteration.
3349 2010-09-10 Vincent Celier <celier@adacore.com>
3351 * sem_aggr.adb, exp_prag.adb, sem_ch3.adb, exp_attr.adb,
3352 sem_res.adb, sem_attr.adb, sem_elab.adb, sem_ch4.adb, exp_disp.adb,
3353 exp_aggr.adb, exp_dist.adb: Change all mentions of "at run-time" to
3354 "at run time" in comments and error/warning messages.
3356 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3358 * exp_cg.adb: Handle properly bodies without specs.
3360 2010-09-10 Emmanuel Briot <briot@adacore.com>
3362 * prj-nmsc.adb (Find_Source_Dirs): When a source directory is not
3363 present, and the user requested to either ignore this or display a
3364 warning (as opposed to an error), we still need to register the
3367 2010-09-10 Robert Dewar <dewar@adacore.com>
3369 * errout.adb: Remove tests of Parsing_Main_Subunit, since this test is
3370 now done in In_Extended_Main_Source_Unit.
3371 * errout.ads (Compiler_State[_Type]): Moved from Errout to Lib
3372 (Parsing_Main_Subunit): Moved from Errout to Lib and renamed
3373 as Parsing_Main_Extended_Source.
3374 * frontend.adb: Set Parsing_Main_Extended_Source True for parsing main
3376 * lib-load.adb (Load_Unit): Add PMES parameter
3377 Set PMES appropriately in all calls to Load_Unit
3378 * lib-load.ads (Load_Unit): Add PMES parameter
3379 * lib.adb (In_Extended_Main_Source_Unit): When called with
3380 Compiler_State set to Parsing, test new flag
3381 Compiling_Main_Extended_Source.
3382 * lib.ads (Compiler_State[_Type]): Moved from Errout to Lib
3383 (Parsing_Main_Subunit): Moved from Errout to Lib and renamed
3384 as Parsing_Main_Extended_Source
3385 * par-load.adb (Load): Set PMES properly in call to Load_Unit
3387 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3389 * exp_cg.adb: Use proper entity to handle overloads.
3390 * sem_res.adb (Check_Parameterless_Call): An operator node without
3391 actuals cannot be a call, and must be treated as a string.
3393 2010-09-10 Robert Dewar <dewar@adacore.com>
3395 * frontend.adb: Minor reformatting.
3397 2010-09-10 Robert Dewar <dewar@adacore.com>
3399 * par-ch4.adb (P_Conditional_Expression): Use P_Condition for condition
3400 * par-ch5.adb (P_Condition): Move from body to spec
3401 * par.adb (Ch5.P_Condition): Move from body to spec
3403 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3405 * exp_cg.adb (Write_Call_Info): If a type that has been registered in
3406 the call table is private, use its full view to generate information
3409 2010-09-10 Jose Ruiz <ruiz@adacore.com>
3411 * exp_cg.adb (Is_Predefined_Dispatching_Operation): When trying the
3412 pattern matching to detect predefined primitive operations take into
3413 account that there can be an extra suffix related to body-nested
3416 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3418 * s-pooglo.ads: Add overriding indicators.
3420 2010-09-10 Vincent Celier <celier@adacore.com>
3422 * vms_data.ads: Add new GNAT BIND qualifiers /32_MALLOC (for -H32) and
3423 /64_MALLOC (for -H64).
3425 2010-09-10 Robert Dewar <dewar@adacore.com>
3427 * errout.adb (Error_Msg_Internal): Test Parsing_Main_Subunit flag
3428 (Error_Msg_NW): Test Parsing_Main_Subunit flag
3429 * errout.ads (Parsing_Main_Subunit): New flag
3430 * lib-load.adb (Load_Unit): Set Parsing_Main_Subunit flag
3431 * par-ch6.adb: Minor style fix (remove redandant parentheses)
3432 * par-ch9.adb: Minor style fix (remove redundant parens)
3433 * par-load.adb: (Load): Deal with setting Parsing_Main_Subunit
3435 2010-09-10 Vincent Celier <celier@adacore.com>
3437 * make.adb (Create_Binder_Mapping_File): Remove procedure. Replaced by
3438 function of the same name in Makeutl.
3439 (Gnatmake): Call function Create_Binder_Mapping_File in Makeutl, instead
3440 of removed procedure when creating a binder mapping file.
3441 * makeutl.adb (Create_Binder_Mapping_File): New function. Was a
3443 * makeutl.ads (Create_Binder_Mapping_File): New function
3445 2010-09-10 Jose Ruiz <ruiz@adacore.com>
3447 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Add the "__" scope
3448 separator when trying the pattern matching to detect predefined
3449 primitive operations.
3451 2010-09-10 Robert Dewar <dewar@adacore.com>
3453 * bindgen.adb, atree.adb: Minor reformatting.
3455 2010-09-10 Ben Brosgol <brosgol@adacore.com>
3457 * ug_words, gnat_ugn.texi: Revised "Transitioning to 64-Bit GNAT for
3460 2010-09-10 Doug Rupp <rupp@adacore.com>
3462 * bindgen.adb: Minor comment fix for -H switch.
3464 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3466 * exp_cg.adb (Register_CG_Node): Determine enclosing subprogram or
3467 library unit now, by traversing tree before context is expanded.
3468 (Write_Call_Info): Use enclosing unit name directly.
3469 * exp_ch9.adb (Expand_N_Accept_Statement): Attach generated block to
3470 tree earlier, to ensure that subsequent declarations are analyzed in a
3471 connected structure.
3472 * exp_intr.adb (Expand_Unc_Deallocation): Ditto for generated statement
3475 2010-09-10 Robert Dewar <dewar@adacore.com>
3477 * symbols-processing-vms-alpha.adb: Minor reformatting.
3479 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
3481 * bindgen.adb (Gen_Adainit_Ada): In .NET, don't call
3482 __gnat_install_handler in case the binder is called with -n.
3484 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3486 * exp_ch6.adb (Make_Build_In_Place_In_Object_Declaration): Use proper
3487 sloc for renaming declaration and set Comes_From_Source properly to
3488 ensure that references are properly generated for an object declaration
3489 that is built in place.
3491 2010-09-10 Tristan Gingold <gingold@adacore.com>
3493 * symbols-processing-vms-alpha.adb: Allow gnatsym to work as a cross
3495 * gcc-interface/Make-lang.in: Install gnatsym when cross compiling.
3496 * gcc-interface/Makefile.in: gnat.hlp is now generated by
3499 2010-09-10 Bob Duff <duff@adacore.com>
3501 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): For things like ""X(J)
3502 := ...;", remove side effects from the right-hand side, because they
3503 might affect the value of the left-hand side, but the left-hand side is
3504 first READ (so we can do shifting and masking) and then written back,
3505 which would cause the side effects to be incorrectly overwritten.
3507 2010-09-10 Robert Dewar <dewar@adacore.com>
3509 * sem_ch4.adb: Minor reformatting.
3510 * exp_ch6.adb: Add comment on testing limited on full type
3511 * gnat_rm.texi: Add documentation on Pure_Function.
3513 2010-09-10 Vincent Celier <celier@adacore.com>
3515 * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
3516 as a source of another project and of another language.
3518 2010-09-10 Robert Dewar <dewar@adacore.com>
3520 * exp_ch3.adb (Expand_N_Object_Declaration): Defend against previous
3522 * freeze.adb (Check_Unsigned_Type): Ditto.
3523 * sem_aggr.adb (Resolve_Aggr_Expr): Ditto.
3524 * sem_ch3.adb (Convert_Scalar_Bounds): Ditto.
3525 (Set_Scalar_Range_For_Subtype): Ditto.
3526 * sem_eval.adb (Subtypes_Statically_Match): Ditto.
3528 2010-09-10 Robert Dewar <dewar@adacore.com>
3530 * repinfo.adb (List_Type_Info): List Small and Range for fixed-point
3532 * sprint.adb (Write_Ureal_With_Col_Check_Sloc): Use square brackets
3533 rather than parens for fixed constants.
3534 * sprint.ads: Use square brackets rather than parens for fixed constants
3535 * urealp.adb (UR_Write): Use square brackets rather than parens
3536 (UR_Write): Add Brackets argument
3537 (UR_Write): Add many more special cases to output literals
3538 * urealp.ads (UR_Write): Use square brackets rather than parens
3539 (UR_Write): Add Brackets argument
3541 2010-09-10 Robert Dewar <dewar@adacore.com>
3543 * sem_ch4.adb: Minor reformatting.
3545 2010-09-10 Richard Guenther <rguenther@suse.de>
3547 * gcc-interface/utils.c (create_index_type): Use build_range_type.
3549 2010-09-10 Arnaud Charlet <charlet@adacore.com>
3551 * vms_cmds.ads: New.
3553 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
3555 * exp_dbug.ads: Mention enhanced encoding for array types.
3557 2010-09-10 Jerome Lambourg <lambourg@adacore.com>
3559 * sem_ch13.adb (Analyze_Attribute_Definition_Clause): Size clause are
3560 unsupported in VM targets. Display a warning in this case.
3562 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3564 * sprint.adb (Sprint_Node_Actual, case N_Derived_Type_Definition): Do
3565 not reset Sloc when printing keyword "new".
3567 2010-09-10 Vincent Celier <celier@adacore.com>
3569 * gnatcmd.adb (GNATCmd): Put the command line in environment variable
3570 GNAT_DRIVER_COMMAND_LINE.
3572 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3574 * sem.adb (Do_Unit_And_Dependents): if Withed_Body is set on a context
3575 clause, process the body at once.
3577 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3579 * sem_res.adb (Resolve_Type_Conversion): Do not warn on a redundant
3580 conversion is the expression is a qualified expression used to
3581 disambiguate a function call.
3583 2010-09-10 Vincent Celier <celier@adacore.com>
3585 * prj-nmsc.adb (Add_Source): Allow an Ada source to have the same name
3586 as a source of another project and of another language.
3588 2010-09-10 Robert Dewar <dewar@adacore.com>
3590 * prj-util.adb: Minor reformatting.
3592 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
3594 * exp_disp.adb: Minor reformatting.
3596 2010-09-10 Arnaud Charlet <charlet@adacore.com>
3598 * sem_prag.adb (Analyze_Pragma): Ignore Inline_Always pragma in
3601 2010-09-10 Thomas Quinot <quinot@adacore.com>
3603 * sem_res.adb: Minor reformatting.
3604 * exp_ch9.adb, rtsfind.ads, exp_ch4.adb, exp_ch3.adb: Do not hardcode
3605 magic constants for task master levels (instead, reference
3606 named numbers from System.Tasking).
3608 2010-09-10 Eric Botcazou <ebotcazou@adacore.com>
3610 * gnatvsn.ads (Ver_Prefix): New constant string.
3611 * bindgen.adb (Gen_Output_File_Ada): Use it in lieu of hardcoded value.
3612 (Gen_Output_File_C): Likewise.
3613 * g-comver.adb (Ver_Prefix): Add cross-reference to Gnatvsn.Ver_Prefix
3616 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3618 * sem.adb (Walk_Library_Items): Do not traverse children of the main
3619 unit, to prevent spurious circularities in the walk order.
3620 (Depends_On_Main): Use elsewhere to prevent circularities when the body
3621 of an ancestor of the main unit depends on a child of the main unit.
3623 2010-09-10 Robert Dewar <dewar@adacore.com>
3625 * gnatlink.adb, prj-ext.adb, prj-util.adb, s-tporft.adb,
3626 sem_ch3.adb: Minor reformatting.
3628 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3630 * sem_ch3.adb (Derive_Subprograms): An interface primitive operation
3631 that is a renaming must be derived like any other primitive operation,
3632 the renamed operation is not relevant to the derivation.
3634 2010-09-10 Robert Dewar <dewar@adacore.com>
3636 * sem_aux.ads: Add comment for Is_Inherently_Limited_Type.
3637 * checks.adb: Minor reformatting.
3639 2010-09-10 Robert Dewar <dewar@adacore.com>
3641 * gnat_ugn.texi: Add section on intent of style checking options.
3643 2010-09-10 Arnaud Charlet <charlet@adacore.com>
3645 * xref_lib.adb (Get_Full_Type): Fix handling of 'a' char.
3647 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3649 * sem_ch3.adb: Improve error message on derivation from class-wide type
3651 2010-09-10 Steve Baird <baird@adacore.com>
3653 * gnat1drv.adb (Adjust_Global_Switches): Enable Expression_With_Actions
3654 generation when Generate_SCIL is True.
3656 2010-09-10 Geert Bosch <bosch@adacore.com>
3658 * gnatlink.adb (Check_ Existing_Executable): New procedure for checking
3659 validity of executable name and removing any existing executable
3660 (Gnatlink): Call Check_Existing_Executable.
3662 2010-09-10 Arnaud Charlet <charlet@adacore.com>
3664 * s-tporft.adb, s-taskin.ads (Register_Foreign_Thread): Move
3665 initialization of Task_Alternate_Stack here, cleaner since in case of
3666 ranvescar, Restricted_Ada_Task_Control_Block is not initialized
3669 2010-09-10 Thomas Quinot <quinot@adacore.com>
3671 * s-fileio.adb, a-dirval.adb: Minor reformatting.
3673 2010-09-10 Emmanuel Briot <briot@adacore.com>
3675 * prj-util.adb (Executable_Of): Fix CE when the project does not
3676 contain a Builder package.
3678 2010-09-10 Vincent Celier <celier@adacore.com>
3680 * prj-ext.adb (Initialize_Project_Path): Add <prefix>/lib/gpr/<target>
3681 to the project path, if Prefix and Target_Name are defined.
3682 * prj-tree.ads (Project_Node_Tree_Data): New component Target_Name
3684 2010-09-10 Ed Schonberg <schonberg@adacore.com>
3686 * checks.adb (Ensure_Valid): If the expression is a boolean expression
3687 or short-circuit operation, do no emit a validity check: only the
3688 elementary operands of the expression need checking.
3690 2010-09-10 Ben Brosgol <brosgol@adacore.com>
3692 * gnat_rm.texi: Document Short_Descriptors.
3694 2010-09-10 Arnaud Charlet <charlet@adacore.com>
3696 * s-taprop-linux.adb, s-taskin.ads (Task_Alternate_Stack): Default
3697 initialize to Null_Address.
3698 (Enter_Task): Do not set up an alternate stack for foreign threads.
3700 2010-09-10 Robert Dewar <dewar@adacore.com>
3702 * opt.adb (Short_Descriptors): New flag
3703 (Short_Descriptors_Config): New flag
3704 * opt.ads (Short_Descriptors): New flag
3705 (Short_Descriptors_Config): New flag
3706 * par-prag.adb: Add dummy entry for Short_Descriptors pragma
3707 * sem_prag.adb (Set_Mechanism_Value): Deal with Short_Descriptors.
3708 (Analyze_Pragma): Implement Short_Descriptors pragma
3709 * snames.ads-tmpl: Add entry for Short_Descriptors pragma
3711 2010-09-10 Emmanuel Briot <briot@adacore.com>
3713 * prj-util.adb, prj-util.ads (Executable_Of): Take into account the
3714 project's Executable_Suffix.
3716 2010-09-10 Robert Dewar <dewar@adacore.com>
3718 * g-pehage.ads: Minor reformatting
3720 * gnat_ugn.texi: Clarifying comment on -gnatyc
3721 * exp_ch6.adb (Expand_N_Subprogram_Body): Reset Is_Pure if limited
3724 2010-09-10 Tristan Gingold <gingold@adacore.com>
3726 * Make-generated.in (gnat.hlp): New rule.
3728 2010-09-10 Emmanuel Briot <briot@adacore.com>
3730 * prj-util.adb, prj-util.ads (Executable_Of): New parameter
3733 2010-09-10 Robert Dewar <dewar@adacore.com>
3735 * einfo.adb: Minor code cleanup: Add assertion to
3736 Set_Corresponding_Protected_Entry.
3738 2010-09-10 Bob Duff <duff@adacore.com>
3740 * g-pehage.ads, g-pehage.adb (Produce): Add a new flag to allow sending
3741 the output to standard output.
3743 2010-09-09 Vincent Celier <celier@adacore.com>
3745 * gnat_ugn.texi: Add documentation for new gnatmake switch
3747 * make.adb (Map_File): New global variable to store the value of switch
3749 (Gnatmake): Add switch -M to gnatlink if switch --create-map-file has
3751 (Scan_Make_Arg): Recognize switch --create-map-file
3752 * makeutl.ads (Create_Map_File_Switch): New constant string for new
3753 gnatmake and gprbuild switch --create-map-file.
3755 2010-09-09 Robert Dewar <dewar@adacore.com>
3757 * sinput-p.ads: Minor comment update.
3759 2010-09-09 Arnaud Charlet <charlet@adacore.com>
3761 * s-tpobop.adb, s-taenca.adb (Wait_For_Completion_With_Timeout): Reset
3762 Entry_Call.State if needed so that the call is marked as cancelled by
3763 Check_Pending_Actions_For_Entry_Call.
3764 (Timed_Protected_Entry_Call): Adjust calls to Defer/Under_Abort, since
3765 this procedure may be called from a controlled operation
3766 (Initialize/Finalize).
3768 2010-09-09 Vadim Godunko <godunko@adacore.com>
3770 * impunit.adb: Correct spelling of package's name in the comment.
3772 2010-09-09 Robert Dewar <dewar@adacore.com>
3774 * gnatcmd.adb, gnatlink.adb, sem_ch12.adb, sem_eval.adb, sinput-p.adb:
3777 2010-09-09 Robert Dewar <dewar@adacore.com>
3779 * impunit.adb: Add entry for a-izteio.
3780 * checks.adb: Add comment.
3781 * debug.adb, exp_disp.adb: Minor reformatting.
3782 * exp_dbug.ads: Minor reformatting throughout (pack block comments).
3784 2010-09-09 Ed Schonberg <schonberg@adacore.com>
3786 * sem_eval.adb (Is_Same_Value): Two occurrences of the same
3787 discriminant cannot be assumed to be the same value because they may
3788 refer to bounds of a component of two different instances of a
3791 2010-09-09 Gary Dismukes <dismukes@adacore.com>
3793 * checks.adb (Apply_Arithmetic_Overflow_Check): When converting the
3794 operands of an operator to the type of an enclosing conversion, rewrite
3795 the operator so the conversion can't be flagged as redundant.
3796 Remove useless assignments to Typ and Rtyp.
3798 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
3800 * gnat_ugn.texi: Fix another long line.
3802 2010-09-09 Bob Duff <duff@adacore.com>
3804 * sem_warn.adb (Output_Reference_Error): Don't warn for renames read
3807 2010-09-09 Matthew Heaney <heaney@adacore.com>
3809 * a-convec.adb, a-coinve.adb (Clear, Delete, Delete_Last, Finalize,
3810 Merge, Insert, Insert_Space, Move, Reserve_Capacity, Generic_Sorting,
3811 Replace_Element, Reverse_Elements, Swap): Change exception message to
3812 correctly indicate kind of tampering (cursor or element).
3813 * a-cdlili.adb, a-cidlli.adb (Clear, Delete, Delete_First, Delete_Last,
3814 Merge, Generic_Sorting, Insert, Move, Reverse_Elements, Splice,
3815 Swap_Links, Replace_Element, Swap): Ditto.
3816 * a-coorse.adb, a-ciorse.adb (Include, Replace, Replace_Element): Ditto
3817 * a-coorma.adb, a-ciorma.adb (Include, Replace, Replace_Element): Ditto
3818 * a-coormu.adb, a-ciormu.adb (Replace_Element): Ditto
3819 * a-chtgke.adb (Delete_Key_Sans_Free, Generic_Conditional_Insert,
3820 Generic_Replace_Element): Ditto
3821 * a-chtgop.adb (Clear, Move, Reserve_Capacity): Ditto
3822 * a-cohama.adb, a-cihama.adb (Delete, Include, Replace,
3823 Replace_Element): Ditto.
3824 * a-cohase.adb, a-cihase.adb (Delete, Difference, Intersection,
3825 Symmetric_Difference, Union, Include, Replace): Ditto
3827 2010-09-09 Ed Schonberg <schonberg@adacore.com>
3829 * sprint.adb (Write_Id): If the parent node is an expanded name, check
3830 that its entity_or_associated_node is an entity before writing it out.
3831 * exp_disp.adb (Make_Tags); if a type is declared in C++ and has no
3832 constructors, there is no need for a dispatch table pointer because the
3833 table is fully inherited from the C++ code.
3835 2010-09-09 Thomas Quinot <quinot@adacore.com>
3837 * projects.texi: Fix wrong identifiers on package end lines in project
3839 * exp_ch6.adb: Minor reformatting.
3841 2010-09-09 Tristan Gingold <gingold@adacore.com>
3843 * gnatcmd.adb, vms_conv.ads: Extract Command_Type.
3845 2010-09-09 Eric Botcazou <ebotcazou@adacore.com>
3847 * gnat_ugn.texi: Fix description of -O3 optimization level.
3849 2010-09-09 Yannick Moy <moy@adacore.com>
3851 * a-cihama.adb, a-cohama.adb: Fix comments.
3853 2010-09-09 Arnaud Charlet <charlet@adacore.com>
3855 * i-cexten.ads: Add comments.
3856 (Signed_128): New type, used by some C bindings.
3857 * debug.adb: Update comment.
3859 2010-09-09 Sergey Rybin <rybin@adacore.com>
3861 * gnat_ugn.texi: For ASIS tools (gnatpp, gnatcheck, gnatelim,
3862 gnatmetric and gnatstub) add a note that '-gnat05' should be used if
3863 the tool should process Ada 2005 sources.
3865 2010-09-09 Ed Schonberg <schonberg@adacore.com>
3867 * sem_ch12.adb (Remove_Parent): If the scope containing the child
3868 instance is a block, examine the enclosing scope to determine if it is
3871 2010-09-09 Doug Rupp <rupp@adacore.com>
3873 * sem_prag.adb (pragma Ident): Pass --identification= vice
3875 * gnatlink.adb (Linker_Options): Look for --identification= vice
3878 2010-09-09 Gary Dismukes <dismukes@adacore.com>
3880 * exp_attr.adb (Expand_N_Attribute_Reference, case Attribute_Old): When
3881 inserting and analyzing the object declaration for the temporary object
3882 created to hold a 'Old value, push the scope for the subprogram where
3883 the object is inserted, so that its Scope (and that of related objects)
3884 will be set properly.
3886 2010-09-09 Vincent Celier <celier@adacore.com>
3888 * prj.adb (Get_Object_Directory): Return object directory display name
3889 * adaint.c (__gnat_get_file_names_case_sensitive): When environment
3890 variable GNAT_FILE_NAME_CASE_SENSITIVE has a value of "0" or "1",
3891 return this value, otherwise return the default for the platform.
3893 2010-09-09 Arnaud Charlet <charlet@adacore.com>
3895 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
3896 dependencies. Remove handling of gnatlbr.
3897 Do not remove s-stratt-xdr for the run-time when installing.
3899 2010-09-09 Robert Dewar <dewar@adacore.com>
3901 * sem_attr.adb: Minor reformatting.
3903 2010-09-09 Thomas Quinot <quinot@adacore.com>
3905 * socket.c (__gnat_socket_ioctl): On Darwin, the req parameter is an
3906 unsigned long, not an int.
3908 2010-09-09 Vincent Celier <celier@adacore.com>
3910 * make.adb, mlib-prj.adb, prj.adb, prj-nmsc.adb, mlib-tgt.adb,
3911 prj-conf.adb, prj-env.adb: Use Display_Name instead of Name whenever
3912 we are not checking for equality of path or file names.
3914 2010-09-09 Ed Schonberg <schonberg@adacore.com>
3916 * exp_util.adb (Remove_Side_Effects): If the expression is a packed
3917 array reference, reset the Analyzed flag so that it is properly
3918 expanded when the resulting object declaration is analyzed.
3920 2010-09-09 Vincent Celier <celier@adacore.com>
3922 * sinput-p.adb (Source_File_Is_Subunit): Return False if X is
3925 2010-09-09 Ramon Fernandez <fernandez@adacore.com>
3927 * sysdep.c: The wrSbc8548 BSP in MILS doesn't know anything about the
3928 VX_SPE_TASK option, so disable it.
3930 2010-09-09 Ed Schonberg <schonberg@adacore.com>
3932 * sem.adb (Walk_Library_Items): Traverse context of subunits of the
3934 (Is_Subunit_Of_Main): Handle null nodes properly.
3936 2010-09-09 Robert Dewar <dewar@adacore.com>
3938 * par-ch2.adb: Update comments.
3940 2010-09-09 Ben Brosgol <brosgol@adacore.com>
3942 * gnat_rm.texi: Minor wordsmithing of section on pragma Ordered.
3944 2010-09-09 Arnaud Charlet <charlet@adacore.com>
3946 * par-ch2.adb (Scan_Pragma_Argument_Association): In CodePeer mode,
3947 do not generate an error for compatibility with legacy code.
3948 ignored when generating SCIL.
3949 * sem_attr.adb (Resolve_Attribute): Ignore AI-229 in CodePeer mode.
3951 2010-09-09 Thomas Quinot <quinot@adacore.com>
3953 * s-strxdr.adb, gnat_rm.texi, s-stratt-xdr.adb, s-stratt.ads: Rename
3954 s-strxdr.adb to s-stratt-xdr.adb
3956 2010-09-09 Robert Dewar <dewar@adacore.com>
3958 * ali-util.adb (Obsolescent_Check): Removed.
3959 * gprep.adb (Obsolescent_Check): Removed.
3960 Remove Obsolescent_Check parameter in Scng instantiation
3961 * prj-err.adb (Obsolescent_Check): Removed.
3962 * prj-err.ads (Obsolescent_Check): Removed.
3963 Remove Obsolescent_Check parameter in Scng instantiation
3964 * scans.ads (Based_Literal_Uses_Colon): New flag
3965 * scn.adb (Obsolscent_Check_Flag): Removed
3966 (Obsolscent_Check): Removed
3967 (Set_Obsolescent_Check): Removed
3968 (Post_Scan): Add handling for obsolescent features
3969 * scn.ads (Obsolscent_Check): Removed
3970 (Set_Obsolescent_Check): Removed
3971 (Post_Scan): Can no longer be inlined
3972 Remove Obsolescent_Check from instantiation of Scng
3973 * scng.adb (Nlit): Set Based_Literal_Uses_Colon
3974 (Nlit): Remove handling of obsolescent check
3975 (Scan, case '%'): Remove handling of obsolescent check
3976 (Scan, case '|'): Call Post_Scan
3977 (Scan, case '!'): Remove handling of obsolescent check, call Post_Scan
3978 * scng.ads Remove Obsolescent_Check argument from Scng generic
3979 (Post_Scan): Now called for Tok_Vertical_Bar
3980 * sinput-l.adb: Remove calls to Set_Obsolescent_Check
3982 2010-09-09 Doug Rupp <rupp@adacore.com>
3984 * gnatlbr.adb: Removed.
3985 * gnat_rm.texi, ug_words, gnat_ugn.texi: Remove mention of gnatlbr.
3987 2010-09-09 Robert Dewar <dewar@adacore.com>
3989 * sem_res.adb (Resolve_Type_Conversion): Catch more cases of redundant
3992 2010-09-09 Vincent Celier <celier@adacore.com>
3994 * gnatlbr.adb: Remove redundant conversions.
3996 2010-09-09 Vincent Celier <celier@adacore.com>
3998 * prj-proc.adb: Minor comment spelling error fix.
3999 * osint.ads (Env_Vars_Case_Sensitive): Use function
4000 Get_Env_Vars_Case_Sensitive, not Get_File_Names_Case_Sensitive to
4003 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4005 * sem_res.adb (Resolve_Equality_Op): Implement Ada2012 rule for
4006 resolution of conditional expressions whose dependent expressions are
4007 anonymous access types.
4009 2010-09-09 Robert Dewar <dewar@adacore.com>
4011 * a-ststio.adb: Minor code reorganization.
4012 * s-direio.adb, prj.adb, prj-nmsc.adb, sem_type.adb: Remove redundant
4014 * types.ads: Minor reformatting.
4015 * binde.adb, vms_conv.adb, gnatls.adb, s-strxdr.adb, uintp.adb: Remove
4016 redundant conversions.
4017 * output.adb: Minor reformatting.
4018 * sem_ch8.adb (Find_Type): Test for redundant base applies to user
4020 * opt.ads: Add pragma Ordered for Verbosity_Level.
4021 * prj.ads: Add pragma Ordered for type Verbosity.
4023 2010-09-09 Vincent Celier <celier@adacore.com>
4025 * osint.adb (Canonical_Case_File_Name): Use procedure To_Lower in
4027 (Canonical_Case_Env_Var_Name): Ditto
4029 2010-09-09 Bob Duff <duff@adacore.com>
4031 * g-pehage.adb (Allocate): Initialize the allocated elements of IT.
4033 2010-09-09 Robert Dewar <dewar@adacore.com>
4035 * cstand.adb: Mark Boolean and Character types as Ordered
4036 * einfo.adb (Has_Pragma_Ordered): New flag
4037 * einfo.ads (Has_Pragma_Ordered): New flag
4038 * g-calend.ads: Mark Day_Name as Ordered
4039 * opt.ads: Mark Ada_Version_Type as Ordered
4040 (Warn_On_Unordered_Enumeration_Type): New flag
4041 * par-prag.adb: Add procdessing for pragma Ordered
4042 * s-ficobl.ads (Read_File_Mode): New subtype
4043 * s-fileio.adb: Use Read_File_Mode instead of explicit ranges
4044 * s-taskin.ads: Mark Entry_Call_State as ordered
4045 * sem_ch3.adb (Build_Derived_Enumeration_Type): Inherit
4047 * sem_ch6.ads: Mark Conformance_Type as Ordered
4048 * sem_prag.adb: Implement pragma Ordered
4049 * sem_res.adb (Bad_Unordered_Enumeration_Reference): New function
4050 (Resolve_Comparison_Op): Diagnose unordered comparison
4051 (Resolve_Range): Diagnose unordered range
4052 * sem_warn.adb (Warn_On_Unordered_Enumeration_Type): New flag (from
4054 * snames.ads-tmpl: Add entry for pragma Ordered
4055 * style.ads (Check_Enumeration_Subrange): Removed
4056 * styleg.adb (Check_Enumeration_Subrange): Removed
4057 * styleg.ads (Check_Enumeration_Subrange): Removed
4058 * stylesw.adb: Remove handling of -gnatyE switch
4059 * stylesw.ads: (Style_Check_Enumeration_Subranges): Removed
4060 * vms_data.ads: Remove -gnatyE entries
4061 Add -gnatw.u entries
4062 * ug_words: Entries for -gnatw.u and -gnatw.U
4063 * gnat_ugn.texi: Document -gnatw.u/-gnatw.U switches
4064 * gnat_rm.texi: Document pragma Ordered.
4065 * s-tasren.adb: Avoid unnecessary comparison on unordered enumeration.
4066 * s-tpobop.adb: Remove comparison on unordered enumeration type.
4068 2010-09-09 Vincent Celier <celier@adacore.com>
4070 * adaint.c: New function __gnat_get_env_vars_case_sensitive, returns 0
4071 for VMS and Windows, and 1 for all other platforms.
4072 * adaint.h: New function __gnat_get_env_vars_case_sensitive
4073 * osint.ads, osint.adb (Canonical_Case_Env_Var_Name): New procedure.
4074 * prj-ext.adb (Add): Call Canonical_Case_Env_Var_Name instead of
4075 Canonical_Case_File_Name, as we are dealing with environment variables,
4078 2010-09-09 Robert Dewar <dewar@adacore.com>
4080 * sem_util.adb: Minor reformatting
4082 2010-09-09 Vincent Celier <celier@adacore.com>
4084 * vms_data.ads: Add documentation for S_Make_Single.
4086 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4088 * sem_util.adb (Same_Object): include formal parameters.
4090 2010-09-09 Vincent Celier <celier@adacore.com>
4092 * make.adb (Queue): New package implementing a new impementation of the
4093 queue, taking into account the new switch --single-compile-per-obj-dir.
4094 * makeutl.ads (Single_Compile_Per_Obj_Dir_Switch): New constant String
4095 for gnatmake and gprbuild new switch --single-compile-per-obj-dir.
4096 * opt.ads (One_Compilation_Per_Obj_Dir): New Boolean flag, defauted to
4098 * switch-m.adb (Scan_Make_Switches): Take into account new gnatmake
4099 switch --single-compile-per-obj-dir.
4100 * vms_data.ads: Add qualifier SINGLE_COMPILE_PER_OBJ_DIR for gnatmake
4101 switch --single-compile-per-obj-dir.
4102 * gnat_ugn.texi: Add documentation for new gnatmake switch
4103 --single-compile-per-obj-dir.
4105 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4107 * einfo.adb, einfo.ads: Clarify use of Corresponding_Protected_Entry.
4109 2010-09-09 Javier Miranda <miranda@adacore.com>
4111 * sem_ch3.adb (Is_Progenitor): Relocated to sem_type.
4112 (Replace_Type): Code cleanup.
4113 * sem_type.ads, sem_type.adb (Is_Progenitor): Relocated from sem_ch3
4115 2010-09-09 Thomas Quinot <quinot@adacore.com>
4117 * exp_ch8.adb: Minor reformatting.
4119 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4121 * exp_ch9.adb, einfo.adb, einfo.ads: New attribute
4122 Corresponding_Protected_Entry.
4124 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4126 * exp_ch3.adb (Build_Untagged_Equality): Do not set alias of implicit
4127 inequality, it is always rewritten as the negation of the corresponding
4129 * exp_ch8.adb (Expand_N_Subprogram_Renaming): If the subprogram renames
4130 the predefined equality of an untagged record, create a body at the
4131 point of the renaming, to capture the current meaning of equality for
4134 2010-09-09 Robert Dewar <dewar@adacore.com>
4136 * sem.adb, sem_warn.adb: Minor reformatting.
4138 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4140 * sem_ch6.adb: Improve error message on untagged equality.
4141 * sem.adb (Semantics): Include subprogram bodies that act as spec.
4143 2010-09-09 Javier Miranda <miranda@adacore.com>
4145 * sem_ch13.adb, exp_ch13.adb: Undo previous change, unneeded.
4147 2010-09-09 Robert Dewar <dewar@adacore.com>
4149 * sem_ch13.adb, sem_ch6.adb, exp_ch3.adb: Minor reformatting.
4151 2010-09-09 Robert Dewar <dewar@adacore.com>
4153 * einfo.adb (Is_Aggregate_Type): New function.
4154 * einfo.ads (Aggregate_Kind): New enumeration subtype
4155 (Is_Aggregate_Type): New function.
4156 * sem_type.adb (Is_Array_Class_Record_Type): Removed, replaced by
4159 2010-09-09 Robert Dewar <dewar@adacore.com>
4161 * exp_ch11.adb, frontend.adb, sem_attr.adb, sem_ch10.adb, sem_ch3.adb,
4162 sem_ch4.adb, sem_ch9.adb, sem_res.adb: Use Restriction_Check_Needed
4164 * restrict.ads, restrict.adb: Ditto.
4165 (Restriction_Check_Needed): New function
4167 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4169 * exp_ch9.ads (Find_Master_Scope): New function, extracted from
4170 Build_Master_Entity, to find the proper scope for the master entity of
4171 a type that may contain tasks, in the presence of transient scopes.
4172 * exp_ch9.adb (Build_Master_Entity) Use new function.
4173 * exp_ch3.adb (Build_Class_Wide_Master): ditto.
4175 2010-09-09 Vincent Celier <celier@adacore.com>
4177 * prj-attr.adb: Add new attributes Leading_Library_Options and
4178 Linker'Leading_Switches.
4179 * snames.ads-tmpl: Add new standard names Leading_Library_Options and
4182 2010-09-09 Javier Miranda <miranda@adacore.com>
4184 * sem_ch3.adb (Derive_Subprogram): The code that checks if a
4185 dispatching primitive covers some interface primitive is incomplete.
4186 Replace such code by the invocation of a new subprogram that provides
4188 * sem_ch6.ads (Is_Interface_Conformant): Add missing documentation.
4189 * sem_ch6.adb (Check_Missing_Return): Minor reformating
4190 (Check_Convention): Complete if-statement conditition when reporting
4191 errors (to avoid assertion failure).
4192 * sem_ch13.adb (Make_Null_Procedure_Specs): This routine was previously
4193 located in exp_ch3. Relocated inside Analyze_Freeze_Entity.
4194 (Analyze_Freeze_Entity): Invoke routine that adds the spec of non
4195 overridden null interface primitives.
4196 * sem_type.adb (Is_Ancestor): If the parent of the partial view of a
4197 private type is an interface then use the parent of its full view to
4198 climb to its ancestor type.
4199 * sem_disp.ads, sem_disp.adb (Covers_Some_Interface): New subprogram.
4200 (Check_Dispatching_Operation): Extend assertion to handle wrappers of
4201 null interface primitives.
4202 (Is_Null_Interface_Primitive): New subprogram.
4203 * exp_ch3.adb (Make_Null_Procedure_Specs): Removed.
4204 (Expand_Freeze_Record_Type): Do not generate specs of null interface
4205 subprograms because they are now generated by Analyze_Freeze_Entity.
4207 2010-09-09 Robert Dewar <dewar@adacore.com>
4209 * a-calfor.adb, sem_ch3.adb: Minor reformatting.
4211 2010-09-09 Robert Dewar <dewar@adacore.com>
4213 * bindgen.adb (Gen_Restrictions_Ada): Avoid explicit enumeration ranges
4214 (Gen_Restrictions_C): Avoid explicit enumeration ranges
4215 (Set_String_Replace): New procedure
4216 * casing.ads (Known_Casing): New subtype declaration
4217 * prj-attr.ads (All_Case_Insensitive_Associative_Array): New subtype
4219 * prj-dect.adb (Parse_Attribute_Declaration): Avoid enumeration range
4220 * prj-nmsc.adb (Check_Naming): Avoid unnecessary enumeration range
4221 * prj-strt.adb (Attribute_Reference): Avoid enumeration range test
4222 * prj.adb (Known_Casing): Moved to Casing spec (avoid enum range)
4223 * sem_ch13.adb (Adjust_Record_For_Reverse_Bit_Order): Avoid enumeration
4225 * sem_res.adb (Resolve_Range): Check for enumeration subrange style
4227 * sem_type.adb (Is_Array_Class_Record_Type): New.
4228 * style.ads (Check_Enumeration_Subrange): New procedure
4229 * styleg.adb (Check_Enumeration_Subrange): New procedure
4230 * styleg.ads (Check_Enumeration_Subrange): New procedure
4231 * stylesw.adb Add handling for Style_Check_Enumeration_Subranges
4232 * stylesw.ads (Style_Check_Enumeration_Subranges): New flag
4233 * usage.adb: Add line for -gnatyE
4234 * vms_data.ads: Add entries for [NO]ENUMERATION_RANGES
4235 Add missing entry for NOBOOLEAN_OPERATORS
4236 * gnat_ugn.texi: Add documentation for -gnatyE
4238 2010-09-09 Robert Dewar <dewar@adacore.com>
4240 * namet.adb (Initialize): Is now a dummy procedure
4241 (Reinitialize): New procedure
4242 Call Reinitialize from package initialization
4243 * namet.ads (Initialize): Is now a dummy procedure
4244 (Reinitialize): New procedure
4245 * clean.adb, gnat1drv.adb, gnatbind.adb, gnatcmd.adb, gnatlink.adb,
4246 gnatls.adb, gprep.adb, make.adb, prj-makr.adb: Remove obsolete call to
4249 2010-09-09 Bob Duff <duff@adacore.com>
4251 * sem_elab.adb, s-os_lib.ads: Minor comment fixes.
4253 2010-09-09 Robert Dewar <dewar@adacore.com>
4255 * s-bitops.adb (Raise_Error): Add exception message
4257 2010-09-09 Robert Dewar <dewar@adacore.com>
4259 * par-ch5.adb (Test_Statement_Required): Deal with Ada 2012 allowing no
4260 null statement after label.
4261 * sinfo.ads: Minor comment updates.
4263 2010-09-09 Robert Dewar <dewar@adacore.com>
4265 * nlists.ads, nlists.adb (In_Same_List): New function.
4266 Use Node_Or_Entity_Id where appropriate.
4267 * par-labl.adb, sem_ch6.adb, sem_type.adb: Use In_Same_List.
4269 2010-09-09 Robert Dewar <dewar@adacore.com>
4271 * restrict.ads, restrict.adb (Check_Wide_Character_Restriction): New
4273 * sem_ch3.adb: Use Check_Wide_Character_Restriction
4274 (Enumeration_Type_Declaration): Check violation of No_Wide_Characters
4275 * sem_ch8.adb (Find_Direct_Name): Check violation of No_Wide_Characters
4276 (Find_Expanded_Name): Check violation of No_Wide_Characters
4278 2010-09-09 Robert Dewar <dewar@adacore.com>
4280 * par-ch5.adb: Minor reformatting.
4282 2010-09-09 Robert Dewar <dewar@adacore.com>
4284 * prj-env.adb: Minor code reorganization.
4285 * par-ch3.adb: Minor reformatting.
4286 * gcc-interface/Make-lang.in: Update dependencies.
4288 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4290 * exp_ch9.adb (Build_Activation_Chain_Entity): The construct enclosing
4291 a task declaration can be an entry body.
4293 2010-09-09 Javier Miranda <miranda@adacore.com>
4295 * exp_disp.adb (Make_DT): Decorate as "static" variables containing
4296 tags of library level tagged types.
4297 (Make_Tags): Disable backend optimizations about aliasing for
4298 declarations of access to dispatch tables.
4300 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4302 * sem_ch12.adb (Reset_Entity): If the entity is an itype created as a
4303 subtype for a null-excluding access type, recover the original
4304 subtype_mark to get the proper visibility on the original name.
4306 2010-09-09 Ed Schonberg <schonberg@adacore.com>
4308 * exp_ch3.adb (Build_Untagged_Equality): For Ada2012, new procedure to
4309 create the primitive equality operation for an untagged record. The
4310 operation is the predefined equality if no record component has a
4311 user-defined equality, or if there is a user-defined equality for the
4312 type as a whole, or when the type is derived and it has an inherited
4313 equality. Otherwise the body of the operations is built as for tagged
4315 (Expand_Freeze_Record_Type): Call Build_Untagged_Equality when needed.
4316 (Make_Eq_Body): New function to create the expanded body of the
4317 equality operation for tagged and untagged records. In both cases the
4318 operation composes, and the primitive operation of each record
4319 component is used to generate the equality function for the type.
4320 * exp_ch4.adb (Expand_Composite_Equality): In Ada2012, if a component
4321 has an abstract equality defined, replace its call with a
4322 Raise_Program_Error.
4323 * sem_ch6.adb (New_Overloaded_Entity): if Ada2012, verify that a
4324 user-defined equality operator for an untagged record type does not
4325 happen after type is frozen, and appears in the visible part if partial
4326 view of type is not limited.
4328 2010-09-09 Tristan Gingold <gingold@adacore.com>
4330 * gnatlbr.adb: Make Create_Directory more portable: use __gnat_mkdir.
4332 2010-09-09 Bob Duff <duff@adacore.com>
4334 * gnat_ugn.texi: Remove incorrect statement about -E being the default.
4336 2010-09-09 Pascal Obry <obry@adacore.com>
4338 * gnat_ugn.texi: Update doc on windows related topics.
4340 2010-09-09 Geert Bosch <bosch@adacore.com>
4342 * s-fatgen.adb: Update comments.
4344 2010-09-09 Robert Dewar <dewar@adacore.com>
4346 * par-ch4.adb (Box_Error): New procedure.
4348 2010-09-09 Thomas Quinot <quinot@adacore.com>
4350 * sem.adb: Minor reformatting.
4352 2010-09-09 Pascal Obry <obry@adacore.com>
4354 * prj-env.adb: Style fix, use /and then/ and /or else/.
4355 * gnat_ugn.texi: Fix typos.
4357 2010-09-03 Joseph Myers <joseph@codesourcery.com>
4360 * gcc-interface/misc.c (gnat_init_options): Allow options with
4361 empty canonical form. Generate a single save_argv element from -I
4364 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
4366 * gcc-interface/utils.c (gnat_pushdecl): Remove test for PARM_DECLs.
4367 Attach fake PARM_DECLs to the topmost block of the function.
4369 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
4371 * gcc-interface/trans.c (call_to_gnu): Also force the return slot opt
4372 for the call to a function whose return type was unconstrained.
4374 2010-08-30 Olivier Hainque <hainque@adacore.com>
4376 * gcc-interface/decl.c (FOREIGN_FORCE_REALIGN_STACK): New macro,
4377 replacement for FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN.
4378 (gnat_to_gnu_entity) <case ..., E_Procedure>: Use it.
4380 2010-08-21 Eric Botcazou <ebotcazou@adacore.com>
4382 * tracebak.c: Fix typo in comment.
4384 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
4386 * gcc-interface/decl.c: Use FOR_EACH_VEC_ELT.
4387 * gcc-interface/trans.c: Likewise.
4388 * gcc-interface/utils.c: Likewise.
4390 2010-08-18 Eric Botcazou <ebotcazou@adacore.com>
4392 * tracebak.c (i386): Use GCC unwinder on Linux with GCC > 4.5.
4394 2010-08-10 Robert Dewar <dewar@adacore.com>
4396 * sem_ch8.adb, sem_ch8.ads: Change name Write_Scopes to ws.
4397 * sem_util.adb: Minor reformatting.
4399 2010-08-10 Javier Miranda <miranda@adacore.com>
4401 * sem_aggr.adb (Resolve_Extension_Aggregate): Warn on the use of C++
4402 constructors that leave the object partially initialized.
4403 * exp_atag.ads, exp_atags.adb (Build_Inherit_CPP_Prims): New subprogram
4404 that copies from parent of Typ the dispatch table slots of inherited
4405 C++ primitives. It handles primary and secondary dispatch tables.
4406 * einfo.adb (Related_Type): Moved from Node26 to Node27. Required to
4407 use this attribute with E_Variable entities.
4408 (Set_Is_Tag): Relax assertion to allow its use with variables that
4410 (Set_Related_Type): Relax assertion to allow its use with variables
4411 that store the tag of a C++ class.
4412 (Write_26_Field_Name): Remove Related_Type.
4413 (Write_27_Field_Name): Add Related_Type.
4414 * einfo.ads (Related_Type): Moved from Node26 to Node27. Available also
4415 with E_Variable entities.
4416 * sem_prag.adb (CPP_Constructor): Warn on duplicated occurrence of this
4418 * sem_util.adb (Search_Tag): Add missing support for CPP types.
4419 (Enclosing_CPP_Parent): New subprogram.
4420 (Has_Suffix): New subprogram.
4421 * sem_util.ads (Enclosing_CPP_Parent): New subprogram that returns the
4422 closest ancestor of a type that is a C++ type.
4423 (Has_Suffix): New subprogram. Used in assertions to check the suffix of
4425 * sem_attr.adb (Analyze_Access_Attribute): Check wrong use of current
4426 instance in derivations of C++ types.
4427 * exp_tss.adb (CPP_Init_Proc): New subprogram.
4428 (Is_CPP_Init_Proc): New subprogram.
4429 (Set_TSS): Handle new C++ init routines.
4430 * exp_tss.ads (TSS_CPP_Init): New TSS name. For initialization of C++
4432 (CPP_Init_Proc): New subprogram.
4433 (Is_CPP_Init_Proc): New subprogram.
4434 * exp_disp.adb (CPP_Num_Prims): New subprogram.
4435 (Has_CPP_Constructors): New subprogram.
4436 (Make_Secondary_DT, Make_DT): For derivations of CPP types, do not
4437 initialize slots located in the C++ part of the dispatch table.
4438 (Make_Tags): For CPP types declare variables used by the IP routine to
4439 store the C++ tag values after the first invocation of the C++
4441 (Build_CPP_Init_DT): New subprogram.
4442 (Set_CPP_Constructors): New implementation that builds an IP for each
4443 CPP constructor. These IP are wrappers of the C++ constructors that,
4444 after the first invocation of the constructor, read the C++ tags from
4445 the object and save them locally. These copies of the C++ tags are used
4446 by the IC routines to initialize tables of Ada derivations of CPP
4448 (Write_DT): Indicate what primitives are imported from C++
4449 * exp_disp.ads (CPP_Num_Prims): New subprogram.
4450 (Has_CPP_Constructors): New subprogram.
4451 * exp_aggr.adb (Build_Record_Aggr_Code): For derivations of C++ types
4452 invoke the IC routine to inherit the slots of the parents.
4453 * sem_ch13.adb (Analyze_Freeze_Entity): Add new warnings on CPP types.
4454 * exp_ch3.adb (Is_Variable_Size_Array): New subprogram.
4455 (Is_Variable_Size_Record): Factorize code calling
4456 Is_Variable_Size_Array.
4457 (Build_CPP_Init_Procedure): New subprogram that builds the tree
4458 corresponding to the procedure that initializes the C++ part of the
4459 dispatch table of an Ada tagged type that is a derivation of a CPP
4461 (Build_Init_Procedure): Adding documentation plus code reorganization
4462 to leave more clear the construction of the IP with C++ types.
4463 (Expand_Freeze_Record_Type): Delay call to Set_CPP_Constructors because
4464 it cannot be called after Make_Tags has been invoked.
4465 (Inherit_CPP_Tag): Removed.
4466 (Init_Secondary_Tags): For derivations of CPP types, warn on tags
4467 located at variable offset.
4468 * freeze.ads: Minor reformating.
4469 * sem_ch8.adb (Write_Scopes): Add pragma export. Required to have it
4471 * gcc-interface/Make-lang.in: Update dependencies.
4473 2010-08-10 Robert Dewar <dewar@adacore.com>
4475 * a-chahan.ads: Add comments on handling of obsolescent entries.
4476 * opt.ads: Add Ada_2005 and Ada_2012 renamings for versions.
4477 * restrict.adb (Check_Obsolescent_2005_Entity): New procedure.
4478 * restrict.ads (Check_Obsolescent_2005_Entity): New procedure.
4479 * sem_attr.adb (Analyze_Access_Attribute): Call
4480 Check_Obsolescent_2005_Entity to check for access to obsolescent
4481 Ada.Characters.Handling subprogram.
4482 (Analyze_Attribute, case Class): Applying Class to untagged incomplete
4483 type is obsolescent in Ada 2005.
4484 (Analyze_Attribute, case Constrained): Better placement of flag when
4485 flagged as obsolescent feature.
4486 (Analyze_Attribute, case Storage_Size): Use with tasks is obsolescent
4487 * sem_ch10.adb (Analyze_With_Clause): With of renamings such as Text_IO
4488 is an obsolescent feature.
4489 * sem_ch11.adb (Analyze_Raise_Statement): Numeric_Error is obsolescent
4491 * sem_ch8.adb (Analyze_Subprogram_Renaming): Call
4492 Check_Obsolescent_2005_Entity to check for renaming obsolete
4493 Ada.Characters.Handling subprogram.
4494 * sem_prag.adb (Process_Restrictions_Or_Restriction_Warnings): Check
4495 for obsolescent restrictions in Ada 2005.
4496 (Analyze_Pragma, case Suppress): Entity arg is obsolescent in Ada 2005
4497 (Analyze_Pragma, case Interface): Interface is obsolescent in Ada 2005
4498 * sem_res.adb (Resolve_Call): Call Check_Obsolescent_2005_Entity to
4499 check for obsolescent references to Ada.Characters.Handling subprograms
4501 2010-08-10 Robert Dewar <dewar@adacore.com>
4503 * einfo.adb, einfo.ads: Fix bad -gnatdt output for incomplete type.
4505 2010-08-10 Robert Dewar <dewar@adacore.com>
4507 * errout.ads: Add VMS table entries for 2005, 12, 2012 switches
4508 * par-ch4.adb: Change wording of Ada 2012 messages
4509 * vms_data.ads: Add VMS entries for /2005, /12, /2012
4511 2010-08-10 Robert Dewar <dewar@adacore.com>
4513 * a-suenco.adb (Convert): Fix bug in UTF-16 to UTF-8 conversion for
4514 codes in the range 16#80#..16#7FF#.
4515 * sem_ch10.adb: Minor reformatting.
4517 2010-08-10 Arnaud Charlet <charlet@adacore.com>
4519 * gnat1drv.adb (Scan_Front_End_Switches): Always perform semantics and
4520 generate ali files in CodePeer mode, so that a gnatmake -c -k will
4521 proceed further when possible
4522 * freeze.adb (Freeze_Static_Object): Fix thinko. Do not generate error
4523 messages when ignoring representation clauses (-gnatI).
4525 2010-08-10 Ed Schonberg <schonberg@adacore.com>
4527 * exp_ch4.adb (Expand_N_Selected_Component): Do not attempt to
4528 constant-fold discriminant reference if the constraint is an object
4529 with non-static expression. Expression may contain volatile references
4530 in the presence of renamings.
4532 2010-08-10 Vincent Celier <celier@adacore.com>
4534 * prj-proc.adb (Get_Attribute_Index): If Index is All_Other_Names,
4536 * prj-strt.adb (Attribute_Reference): Recognize 'others' as a valid
4537 index for an associative array where it is allowed.
4539 2010-08-10 Thomas Quinot <quinot@adacore.com>
4541 * exp_attr.adb: Add comments.
4543 2010-08-10 Jerome Lambourg <lambourg@adacore.com>
4545 * adaint.c (__gnat_get_file_names_case_sensitive): return 0 on darwin.
4547 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
4549 * gcc-interface/utils.c (gnat_poplevel): Use blocks_nreverse.
4551 2010-08-09 Eric Botcazou <ebotcazou@adacore.com>
4553 * gcc-interface/utils.c (build_vms_descriptor32): Fix formatting.
4554 (build_vms_descriptor): Likewise.
4556 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4558 * gcc-interface/utils.c (make_descriptor_field): Add tree parameter.
4559 (build_vms_descriptor32): Adjust calls to it for new parameter.
4560 (build_vms_descriptor): Likewise.
4562 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
4564 * gcc-interface/decl.c (rec_variant): Declare. Declare a VEC of it.
4565 (build_variant_list): Take and return a VEC instead of a tree.
4566 (create_variant_part_from): Take a VEC instead of a tree for
4567 variant_list. Adjust accordingly.
4568 (gnat_to_gnu_entity): Adjust for changes to previous functions.
4570 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
4572 * gcc-interface/decl.c (gnat_to_gnu_entity): Use XALLOCAVEC instead
4574 (components_to_record): Likewise.
4575 * gcc-interface/trans.c (gnat_to_gnu): Likewise.
4576 * gcc-interface/utils.c (max_size): Likewise.
4577 (build_vms_descriptor32): Likewise.
4578 (build_vms_descriptor): Likewise.
4580 2010-08-07 Nathan Froyd <froydnj@codesourcery.com>
4582 * gcc-interface/decl.c (subst_pair): Declare. Declare a VEC of it.
4583 (build_subst_list): Return a VEC instead of a tree.
4584 (build_variant_list): Take a VEC for subst_list. Adjust
4586 (create_field_decl_from): Likewise.
4587 (create_variant_part_from): Likewise.
4588 (copy_and_substitute_in_size): Likewise.
4589 (gnat_to_gnu_entity): Adjust for new interface to build_subst_list.
4590 Free the built vector.
4592 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
4594 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Do not build an
4595 allocator for large imported objects.
4597 2010-08-05 Robert Dewar <dewar@adacore.com>
4599 * gnat1drv.adb: Minor reformatting.
4601 2010-08-05 Ed Schonberg <schonberg@adacore.com>
4603 * sem.adb (Do_Unit_And_Dependents): If some parent unit is an
4604 instantiation, process its body before the spec of the main unit,
4605 because it may contain subprograms invoked in the spec of main.
4606 * einfo.ads: Add documention of delayed freeze.
4608 2010-08-05 Vincent Celier <celier@adacore.com>
4610 * prj-nmsc.adb (Process_Linker): Take into account new values for
4611 attribute Response_File_Format.
4612 * prj.ads (Response_File_Format): New enumeration values GCC_GNU,
4613 GCC_Object_List and GCC_Option_List.
4615 2010-08-05 Ed Schonberg <schonberg@adacore.com>
4617 * exp_ch4.adb (Expand_N_Selected_Component): Do not constant-fold a
4618 selected component that denotes a discriminant if it is the
4619 discriminant of a component of an unconstrained record type.
4621 2010-08-05 Ed Schonberg <schonberg@adacore.com>
4623 * exp_util.adb (Insert_Actions): If the action appears within a
4624 conditional expression that is already analyzed, insert action further
4627 2010-08-05 Robert Dewar <dewar@adacore.com>
4629 * exp_ch4.adb: Minor reformatting.
4631 2010-08-05 Thomas Quinot <quinot@adacore.com>
4633 * exp_ch4.adb: Minor reformatting
4634 * gnat1drv.adb: Minor reformatting.
4635 Minor code reorganization (use Nkind_In).
4637 2010-08-05 Ed Schonberg <schonberg@adacore.com>
4639 * exp_util.ads, exp_util.adb (Needs_Constant_Address): New predicate to
4640 determine whether the expression in an address clause for an
4641 initialized object must be constant. Code moved from freeze.adb.
4642 (Remove_Side_Effects): When the temporary is initialized with a
4643 reference, indicate that the temporary is a constant as done in all
4645 * freeze.adb (Check_Address_Clause): use Needs_Constant_Address.
4646 * exp_ch13.adb (Expand_N_Attribute_Definition_Clause, case 'Address):
4647 If object does not need a constant address, remove side effects from
4648 address expression, so it is elaborated at the point of the address
4649 clause and not at the freeze point of the object, so that elaboration
4652 2010-08-05 Vincent Celier <celier@adacore.com>
4654 * prj.adb (Is_Compilable): Return False for header files of non Ada
4657 2010-08-05 Emmanuel Briot <briot@adacore.com>
4659 * prj-nmsc.adb: The Missing_Source_Files flag also considers a missing
4660 exec directory as a warning rather than an error.
4662 2010-08-05 Thomas Quinot <quinot@adacore.com>
4664 * sem_ch6.adb, gnat1drv.adb, exp_ch6.adb, sem_eval.adb: Minor
4667 2010-08-05 Steve Baird <baird@adacore.com>
4669 * exp_util.adb (Remove_Side_Effects): An access value which designates
4670 a volatile object of a nonvolatile type is prohibited.
4671 Do not call Make_Reference to construct a reference to such an object.
4673 2010-08-05 Robert Dewar <dewar@adacore.com>
4675 * a-suezse.adb, a-suezse.ads, a-suezen.adb, a-suezen.ads: Removed.
4676 * a-suewse.adb, a-suewse.ads, a-suesen.adb, a-suesen.ads,
4677 a-suewen.adb, a-suewen.ads: New files.
4678 * Makefile.rtl, impunit.adb: Update implementation of Ada 2012 string
4680 * sem_elab.adb: Minor reformatting.
4682 2010-08-05 Arnaud Charlet <charlet@adacore.com>
4684 * sem_ch8.adb (Use_One_Type): Protect against empty scopes.
4685 * exp_util.adb (Component_May_Be_Bit_Aligned): Prevent assert failure
4686 in case of null Comp.
4688 2010-08-05 Robert Dewar <dewar@adacore.com>
4690 * errout.adb, a-suewen.adb, a-suezen.adb: Minor reformatting.
4692 2010-08-05 Gary Dismukes <dismukes@adacore.com>
4694 * sem_ch4.adb (Analyze_Allocator): Flag errors on allocators of a
4695 nested access type whose designated type has tasks or is a protected
4696 object when the restrictions No_Task_Hierarchy or
4697 No_Local_Protected_Objects apply. Add ??? comment.
4698 * sem_ch9.adb (Analyze_Protected_Type): Give a warning when a protected
4699 type is not a library-level type and No_Local_Protected_Objects applies.
4700 (Analyze_Task_Type): Give a warning when a task type is not a
4701 library-level type and No_Task_Hierarchy applies.
4703 2010-08-05 Arnaud Charlet <charlet@adacore.com>
4705 * sem.adb: Minor reformatting
4706 * sem_ch4.adb (Analyze_Reference): Disable error message in CodePeer
4709 2010-08-04 Eric Botcazou <ebotcazou@adacore.com>
4711 * gcc-interface/decl.c: Do not undefine IN_GCC_FRONTEND and do not
4713 (gnat_to_gnu_entity) <object>: Force address of -1 at the tree level
4714 for the debug-only entity.
4715 * gcc-interface/Make-lang.in (ada/decl.o): Adjust dependencies.
4717 2010-08-03 Joseph Myers <joseph@codesourcery.com>
4719 * gcc-interface/lang-specs.h: Don't pass -a options.
4721 2010-07-28 Joseph Myers <joseph@codesourcery.com>
4723 * gcc-interface/misc.c (gnat_init_options): Ignore erroneous
4724 options. Check canonical_option_num_elements on options copied.
4726 2010-07-27 Joseph Myers <joseph@codesourcery.com>
4728 * gcc-interface/misc.c (gnat_handle_option): Update prototype and
4729 return value type. Don't check for missing arguments here.
4731 2010-07-27 Joseph Myers <joseph@codesourcery.com>
4733 * gcc-interface/misc.c (gnat_option_lang_mask): New.
4734 (gnat_init_options): Update prototype. Reconstruct argv array
4735 from decoded options.
4737 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
4739 * gcc-interface/utils.c (update_pointer_to): In the unconstrained array
4740 case, merge the alias set of the old pointer type.
4742 2010-07-23 Eric Botcazou <ebotcazou@adacore.com>
4744 * gcc-interface/utils.c (gnat_types_compatible_p): Revert latest change
4745 and recurse only for multidimensional array types instead.
4747 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
4750 * gcc-interface/utils.c (convert): Fix thinko in test.
4751 (unchecked_convert): When converting from a scalar type to a type with
4752 a different size, pad to have the same size on both sides.
4754 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
4756 * gcc-interface/utils.c (gnat_types_compatible_p): Don't require strict
4757 equality for the component type of array types.
4759 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
4761 * gcc-interface/decl.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
4762 * gcc-interface/trans.c: Likewise.
4763 * gcc-interface/utils.c: Likewise.
4764 * gcc-interface/utils2.c: Likewise.
4766 2010-07-13 Laurent GUERBY <laurent@guerby.net>
4769 * gcc-interface/targtyps.c: Include tm_p.h.
4770 * gcc-interface/Make-lang.in: Update dependencies.
4772 2010-07-09 Eric Botcazou <ebotcazou@adacore.com>
4774 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Deal with
4777 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
4779 * gcc-interface/utils.c: Include diagnostic-core.h in every file
4780 that includes toplev.h.
4782 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
4784 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Enumeration_Type>:
4785 Branch to common code handling the alignment of discrete types.
4786 <E_Signed_Integer_Type>: Likewise.
4787 <E_Modular_Integer_Type>: Likewise.
4789 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
4791 * gcc-interface/misc.c (gnat_handle_option): Do not populate gnat_argv.
4792 (gnat_handle_option): Allocate only one element for gnat_argv.
4793 (gnat_init): Do not populate gnat_argv.
4795 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
4797 * gcc-interface/trans.c: Do not include tree-flow.h.
4798 * gcc-interface/Make-lang.in: Adjust dependencies.
4800 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
4802 * gcc-interface/gigi.h (gnat_build_constructor): Take a VEC instead
4803 of a TREE_LIST. Update comment.
4804 * gcc-interface/trans.c (gigi): Build a VEC instead of a TREE_LIST.
4805 Adjust call to gnat_build_constructor.
4806 (Attribute_to_gnu): Likewise.
4807 (gnat_to_gnu): Likewise.
4808 (pos_to_constructor): Likewise.
4809 (extract_values): Likewise.
4810 * gcc-interface/utils.c (build_template): Likewise.
4811 (convert_vms_descriptor64): Likewise.
4812 (convert_vms_descriptor32): Likewise.
4813 (convert_to_fat_pointer): Likewise.
4814 (convert): Likewise.
4815 (unchecked_convert): Likewise.
4816 * gcc-interface/decl.c (gnat_to_gnu_entity): Likewise.
4817 * gcc-interface/utils2.c (build_allocator): Likewise.
4818 (fill_vms_descriptor): Likewise.
4819 (gnat_build_constructor): Take a VEC instead of a TREE_LIST.
4820 (compare_elmt_bitpos): Adjust for parameters being constructor_elts
4821 instead of TREE_LISTs.
4823 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
4825 * gcc-interface/misc.c: Do not include except.h.
4826 * gcc-interface/Make-lang.in: Update dependencies.
4828 2010-06-27 Eric Botcazou <ebotcazou@adacore.com>
4830 * gcc-interface/trans.c: Include tree-flow.h.
4831 (gnu_switch_label_stack): Delete.
4832 (Case_Statement_to_gnu): Do not emit the goto at the end of a case if
4833 its associated block cannot fall through. Do not emit the final label
4834 if no cases branch to it.
4835 * gcc-interface/Make-lang.in (ada/trans.o): Add $(TREE_FLOW_H).
4837 2010-06-23 Thomas Quinot <quinot@adacore.com>
4839 * exp_attr.adb (Expand_Access_To_Protected_Op): When rewriting a
4840 reference to a protected subprogram outside of the protected's scope,
4841 ensure the corresponding external subprogram is frozen before the
4844 2010-06-23 Ed Schonberg <schonberg@adacore.com>
4846 * sem_prag.adb: Fix typo in error message.
4847 * sem.adb: Refine previous change.
4849 2010-06-23 Robert Dewar <dewar@adacore.com>
4851 * impunit.adb, a-suewen.adb, a-suewen.ads, a-suenco.adb, a-suenco.ads,
4852 a-suezen.adb, a-suezen.ads, a-stuten.adb, a-stuten.ads, Makefile.rtl:
4853 Implement Ada 2012 string encoding packages.
4855 2010-06-23 Arnaud Charlet <charlet@adacore.com>
4857 * a-stwiun-shared.adb, a-stwiun-shared.ads, a-stzunb-shared.adb,
4858 a-stzunb-shared.ads, a-swunau-shared.adb, a-swuwti-shared.adb,
4859 a-szunau-shared.adb, a-szuzti-shared.adb, a-strunb-shared.adb,
4860 a-strunb-shared.ads, a-stunau-shared.adb, a-suteio-shared.adb: New
4862 * gcc-interface/Makefile.in: Enable use of above files.
4864 2010-06-23 Ed Schonberg <schonberg@adacore.com>
4866 * sem_ch13.adb (Check_Constant_Address_Clauses): Do not check legality
4867 of address clauses if if Ignore_Rep_Clauses is active.
4868 * freeze.adb (Check_Address_Clause): If Ignore_Rep_Clauses is active,
4869 remove address clause from tree so that it does not reach the backend.
4871 2010-06-23 Arnaud Charlet <charlet@adacore.com>
4873 * exp_attr.adb (Expand_N_Attribute_Reference [Attribute_Valid]): Do not
4874 expand 'Valid from user code in CodePeer mode, will be handled by the
4877 2010-06-23 Bob Duff <duff@adacore.com>
4879 * g-comlin.ads: Minor comment improvements.
4881 2010-06-23 Ed Schonberg <schonberg@adacore.com>
4883 * sem_res.adb (Uses_SS): The expression that initializes a controlled
4884 component of a record type may be a user-defined operator that is
4885 rewritten as a function call.
4887 2010-06-23 Bob Duff <duff@adacore.com>
4889 * g-comlin.ads, sem_ch13.adb: Minor comment fix.
4891 2010-06-23 Eric Botcazou <ebotcazou@adacore.com>
4893 * exp_ch11.adb (Expand_Local_Exception_Handlers): Propagate the end
4894 label to the new sequence of statements. Set the sloc of the raise
4895 statement onto the new goto statements.
4897 2010-06-23 Robert Dewar <dewar@adacore.com>
4899 * a-stuten.ads, a-stuten.adb: New files.
4900 * impunit.adb: Add engtry for Ada.Strings.UTF_Encoding (a-stuten.ads)
4901 * Makefile.rtl: Add entry for a-stuten (Ada.Strings.UTF_Encoding)
4903 2010-06-23 Robert Dewar <dewar@adacore.com>
4905 * gnat_ugn.texi: Add documentation of -gnat12 switch
4906 Add documentation of -gnatX switch.
4908 2010-06-23 Ed Schonberg <schonberg@adacore.com>
4910 * inline.ads: Include the current Ada_Version in the info for pending
4911 instance bodies, so that declaration and body are compiled with the
4913 * inline.adb: Move with_clause for Opt to spec.
4914 * sem_ch12.adb (Analyze_Package_Instantiation,
4915 Analyze_Subprogram_Instantiation): Save current Ada_Version in
4916 Pending_Instantiation information.
4917 (Instantiate_Package_Body, Instantiate_Subprogram_Body,
4918 Inline_Package_Body): Use the Ada_Version present in the body
4921 2010-06-23 Robert Dewar <dewar@adacore.com>
4923 * usage.adb: Add documentation for -gnat12 switch.
4924 * errout.ads: Add VMS alias entry for -gnat12 switch
4925 * gnat_rm.texi: Add documentation for pragma Ada_12 and Ada_2012
4926 Add documentation for pragma Extensions_Allowed.
4927 * opt.ads: Add entry for Ada 2012 mode.
4928 * sem_ch4.adb, par-ch3.adb, par-ch4.adb: Use new Ada 2012 mode for 2012
4930 * sem_prag.adb, par-prag.adb: Add processing for pragma Ada_12 and
4932 * sem_ch13.adb: Add handling for Ada 2012 mode.
4933 * snames.ads-tmpl: Add entries for pragma Ada_2012 and Ada_12.
4934 * switch-c.adb: Add handling for -gnat12 switch.
4935 Implement -gnat2005 and -gnat2012.
4936 * usage.adb: Add documentation for -gnat12 switch.
4937 * vms_data.ads: Add /12 switch for Ada 2012 mode.
4939 2010-06-23 Arnaud Charlet <charlet@adacore.com>
4941 * exp_ch4.adb (Expand_N_Allocator): Fix potential crash when using
4942 No_Task_Hierarchy restriction. Add comment.
4943 * exp_ch9.adb, exp_ch3.adb: Update comments.
4945 2010-06-23 Robert Dewar <dewar@adacore.com>
4947 * sem_ch5.adb (Process_Bounds): Remove some junk initializations.
4948 * sem_res.adb: Add comments.
4949 * sem_util.adb: Minor reformatting. Add comments.
4950 Change increment on Actuals_In_Call table.
4951 * opt.ads: Minor: add 'constant'.
4953 2010-06-23 Javier Miranda <miranda@adacore.com>
4955 * exp_disp.adb (Make_DT): Initialize the Size_Func component of the
4956 TSD to Null_Address if No_Dispatching_Calls is active.
4958 2010-06-23 Vincent Celier <celier@adacore.com>
4960 * a-comlin.ads: Indicate that use of this package is not supported
4961 during the elaboration of an auto-initialized Stand-Alone Library.
4963 2010-06-23 Ed Schonberg <schonberg@adacore.com>
4965 * exp_util.adb (Is_Possibly_Misaligned_Object): Do not rely on an
4966 alignment clause on a record type to determine if a component may be
4967 misaligned. The decision must be taken in the back-end where target
4968 alignment information is known.
4970 2010-06-23 Arnaud Charlet <charlet@adacore.com>
4972 * gnat1drv.adb (Adjust_Global_Switches): Enable some restrictions
4973 systematically in CodePeer mode to simplify generated code.
4974 * restrict.adb (Check_Restriction): Do nothing in CodePeer mode.
4975 * exp_ch4.adb (Expand_N_Allocator): Generate proper code when
4976 No_Task_Hierarchy is set instead of crasshing.
4978 2010-06-23 Thomas Quinot <quinot@adacore.com>
4980 * sem_util.adb: Minor code cleanup: test for proper entity instead of
4981 testing just Chars attribute when checking whether a given scope is
4983 * exp_ch4.adb, einfo.adb: Minor reformatting.
4985 2010-06-23 Vincent Celier <celier@adacore.com>
4988 * switch-m.adb (Normalize_Compiler_Switches): Take into account
4989 switches -gnatB, -gnatD=nn, -gnatG (incuding -gnatG=nn), -gnatI,
4990 -gnatl=file, -gnatS, -gnatjnn, -gnateI=nn and -gnatWx.
4992 2010-06-23 Ed Schonberg <schonberg@adacore.com>
4994 * sem_res.adb (Resolve_Membership_Op): If left operand is a mixed mode
4995 operation with a universal real operand, and the right operand is a
4996 range with universal bounds, find unique fixed point that may be
4997 candidate, and warn appropriately.
4999 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5001 * sem_res.adb (Resolve_Intrinsic_Operator): Add guards to handle
5002 properly the rare cases where VMS operators are visible through
5003 Extend_System, but the default System is being used and Address is a
5005 * sem_util.adb: Widen predicate Is_VMS_Operator.
5007 2010-06-23 Vincent Celier <celier@adacore.com>
5009 * switch-m.adb (Normalize_Compiler_Switches): Take into account -gnatC
5012 2010-06-23 Olivier Hainque <hainque@adacore.com>
5014 * einfo.adb (Has_Foreign_Convention): Consider Intrinsic with
5015 Interface_Name as foreign. These are GCC builtin imports for
5016 which Ada specific processing doesn't apply.
5018 2010-06-23 Thomas Quinot <quinot@adacore.com>
5020 * sem_ch12.adb: Minor reformatting.
5022 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5024 * sem_util.adb (Is_VMS_Operator): Use scope of system extension to
5025 determine whether an intrinsic subprogram is VMS specific.
5027 2010-06-23 Hristian Kirtchev <kirtchev@adacore.com>
5029 * treepr.adb (Print_Entity_Info): Output the contents of Field28 if it
5030 is present in the entity.
5032 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5034 * xr_tabls.adb, xref_lib.adb: Update to latest lib-xref.ads
5035 Fix handling of parameters.
5036 Add protection against unexpected cases.
5037 * sem_ch6.adb (Create_Extra_Formals): Use suffix "L" instead of "A" for
5038 access level, since "A" suffix is already used elsewhere. Similarly,
5039 use suffix "O" instead of "C" for 'Constrained since "C" suffix is used
5042 2010-06-23 Thomas Quinot <quinot@adacore.com>
5044 * sem_util.adb, sem_util.ads: Minor reformatting.
5046 2010-06-23 Vincent Celier <celier@adacore.com>
5048 * prj.ads (Gprclean_Flags.Missing_Source_Files): Set to Error to keep
5049 the previous behavior of gprclean when there are missing files.
5051 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5053 * sem_ch12.adb (Load_Body_Of_Generic): In CodePeer mode, a missing
5054 generic body is not a fatal error.
5055 (Mark_Context): Handle properly names of child units.
5056 * sem.adb (Walk_Library_Items.Do_Action): Remove assertion on
5059 2010-06-23 Vincent Celier <celier@adacore.com>
5061 * ali.adb (Scan_ALI): When ignoring R lines, do not skip the next
5064 2010-06-23 Bob Duff <duff@adacore.com>
5066 * g-pehage.ads, g-pehage.adb: Switch default optimization mode to
5067 Memory_Space, because CPU_Time doesn't seem to provide any significant
5068 speed advantage in practice. Cleanup: Get rid of constant
5069 Default_Optimization; doesn't seem to add anything. Use case
5070 statements instead of if statements; seems cleaner.
5072 2010-06-23 Olivier Hainque <hainque@adacore.com>
5074 * gcc-interface/decl.c (gnat_to_gnu_entity) <case E_Procedure>: Use
5075 Wshadow instead of Wextra to guard warning on absence of internal
5076 builtin decl for an import. Fix use of quote in warning text.
5077 (intrin_arglists_compatible_p): Remove processing of integer trailing
5078 args on the Ada side. Fix use of literal > in warning text.
5079 (intrin_return_compatible_p): Never warn on "function imported as
5080 procedure". Defer the void/void case to the common type compatibility
5082 (gnat_to_gnu_param): Use void_ptr GCC type for System.Address argument
5083 of GCC builtin imports.
5085 2010-06-23 Olivier Hainque <hainque@adacore.com>
5087 * gcc-interface/decl.c (intrin_types_incompatible_p): New function,
5089 (intrin_arglists_compatible_p, intrin_return_compatible_p): New
5090 functions, helpers for ...
5091 (intrin_profiles_compatible_p): New function, replacement for ...
5092 (compatible_signatures_p): Removed.
5093 (gnat_to_gnu_entity) <case E_Procedure>: If -Wextra, warn on
5094 attempt to bind an unregistered builtin function. When we have
5095 one, use it and warn on profile incompatibilities.
5097 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5099 * gcc-interface/Make-lang.in: Update dependencies.
5101 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5103 * sem_util.adb (Mark_Coextensions): If the expression in the allocator
5104 for a coextension in an object declaration is a concatenation, treat
5105 coextension as dynamic.
5107 2010-06-23 Javier Miranda <miranda@adacore.com>
5109 * sem_ch3.adb (Add_Internal_Interface_Entities): Ensure that the
5110 internal entities are added to the scope of the tagged type.
5111 (Derive_Subprograms): Do not stop derivation when we find the first
5112 internal entity that has attribute Interface_Alias. After the change
5113 done to Override_Dispatching_Operations it is no longer true that
5114 these primirives are always located at the end of the list of
5116 * einfo.ads (Primitive_Operations): Add documentation.
5117 * exp_disp.adb (Write_DT): Improve output adding to the name of the
5118 primitive a prefix indicating its corresponding tagged type.
5119 * sem_disp.adb (Override_Dispatching_Operations): If the overridden
5120 entity covers the primitive of an interface that is not an ancestor of
5121 this tagged type then the new primitive is added at the end of the list
5122 of primitives. Required to fulfill the C++ ABI.
5124 2010-06-23 Javier Miranda <miranda@adacore.com>
5126 * atree.ads (Set_Reporting_Proc): New subprogram.
5127 * atree.adb: Remove dependency on packages Opt and SCIL_LL.
5128 (Allocate_Initialize_Node, Replace, Rewrite): Replace direct calls
5129 to routines of package Scil_ll by indirect call to the registered
5131 (Set_Reporting_Proc): New subprogram. Used to register a subprogram
5132 that is invoked when a node is allocated, replaced or rewritten.
5133 * scil_ll.adb (Copy_SCIL_Node): New routine that takes care of copying
5134 the SCIL node. Used as argument for Set_Reporting_Proc.
5135 (Initialize): Register Copy_SCIL_Node as the reporting routine that
5136 is invoked by atree.
5138 2010-06-23 Thomas Quinot <quinot@adacore.com>
5140 * sem_ch3.ads: Minor reformatting.
5142 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5144 * sem_ch12.adb (Analyze_Package_Instantiation): In CodePeer mode,
5145 always analyze the generic body and instance, because it may be needed
5147 (Mark_Context): Prepend the with clauses for needed generic units, so
5148 they appear in a better order for CodePeer.
5149 * sem_util.adb, sem_util.ads: Prototype code for AI05-0144.
5151 2010-06-23 Emmanuel Briot <briot@adacore.com>
5153 * prj.ads, prj-nmsc.adb (Error_Or_Warning): New subprogram.
5155 2010-06-23 Robert Dewar <dewar@adacore.com>
5157 * g-pehage.adb, exp_ch13.adb: Minor reformatting.
5159 2010-06-23 Thomas Quinot <quinot@adacore.com>
5161 * a-tags.ads: Fix description of TSD structure.
5163 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5165 * sem_ch12.adb (Mark_Context): When indicating that the body of a
5166 generic unit is needed prior to the unit containing an instantiation,
5167 search recursively the context of the generic to add other generic
5168 bodies that may be instantiated indirectly through the current instance.
5170 2010-06-23 Robert Dewar <dewar@adacore.com>
5172 * freeze.adb: Minor reformatting.
5174 2010-06-23 Bob Duff <duff@adacore.com>
5176 * g-pehage.adb (Trim_Trailing_Nuls): Fix the code to match the comment.
5178 2010-06-23 Vincent Celier <celier@adacore.com>
5180 * make.adb (Compile_Sources): Complete previous change.
5182 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5184 * sem_ch6.adb (Add_Extra_Formal): Use suffix "C" in the name of the
5185 Constrained extra formal.
5187 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5189 * exp_ch13.adb (Expand_Freeze_Actions): If validity checks and
5190 Initialize_Scalars are enabled, compile the generated equality function
5191 for a composite type with full checks enabled, so that validity checks
5192 are performed on individual components.
5194 2010-06-23 Emmanuel Briot <briot@adacore.com>
5196 * prj.adb, prj.ads, prj-nmsc.adb (Processing_Flags): New flag
5197 Missing_Source_Files.
5199 2010-06-23 Robert Dewar <dewar@adacore.com>
5201 * exp_ch3.adb, exp_util.adb: Minor reformatting.
5203 2010-06-23 Jose Ruiz <ruiz@adacore.com>
5205 * a-reatim.adb, a-retide.adb: Move the initialization of the tasking
5206 run time from Ada.Real_Time.Delays to Ada.Real_Time. This way, calls to
5207 Clock (without delays) use a run time which is properly initialized.
5209 2010-06-23 Vincent Celier <celier@adacore.com>
5211 * make.adb: Do not set Check_Readonly_Files when setting Must_Compile,
5212 when -f -u and a main is specified on the command line. However,
5213 attempt to compile even when the ALI file is read-only when
5214 Must_Compile is True.
5216 2010-06-23 Thomas Quinot <quinot@adacore.com>
5218 * checks.adb, g-pehage.adb, cstand.adb: Minor code factorization.
5220 2010-06-23 Javier Miranda <miranda@adacore.com>
5222 * sem_ch3.adb (Add_Internal_Interface_Entities): Generate internal
5223 entities for parent types that are interfaces. Needed in generics to
5224 handle formals that implement interfaces.
5225 (Derive_Subprograms): Add assertion for derivation of tagged types that
5226 do not cover interfaces. For generics, complete code that handles
5227 derivation of type that covers interfaces because the previous
5228 condition was weak (it required only name consistency; arguments were
5229 not checked). Add new code to locate primitives covering interfaces
5230 defined in generic units or instantiatons.
5231 * sem_util.adb (Has_Interfaces): Add missing support for derived types.
5232 * sem_ch6.adb (Check_Overriding_Indicator): Minor code cleanups.
5233 * exp_disp.adb (Make_Select_Specific_Data_Table): Skip primitives of
5234 interfaces that are parents of the type because they share the primary
5236 (Register_Primitive): Do not register primitives of interfaces that
5237 are parents of the type.
5238 * sem_ch13.adb (Analyze_Freeze_Entity): Add documentation.
5239 * exp_cg.adb (Write_Type_Info): When displaying overriding of interface
5240 primitives skip primitives of interfaces that are parents of the type.
5242 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5244 * sem_attr.adb (Eval_Attribute): If the prefix is an array, the
5245 attribute cannot be constant-folded if an index type is a formal type,
5246 or is derived from one.
5247 * checks.adb (Determine_Range): ditto.
5249 2010-06-23 Arnaud Charlet <charlet@adacore.com>
5251 * gnat_ugn.texi, gnatxref.adb: Add support for --ext switch.
5253 2010-06-23 Bob Duff <duff@adacore.com>
5255 * g-pehage.ads, g-pehage.adb (Put): Fix off-by-one bug.
5256 (Insert): Disallow nul characters.
5257 (misc output routines): Assert no nul characters.
5259 2010-06-23 Ed Schonberg <schonberg@adacore.com>
5261 * exp_ch4.adb: Use predefined unsigned type in all cases.
5263 2010-06-23 Bob Duff <duff@adacore.com>
5265 * s-rannum.adb (Reset): Avoid overflow in calculation of Initiator.
5266 * g-pehage.ads: Minor comment fixes.
5267 * g-pehage.adb: Minor: Add some additional debugging printouts under
5270 2010-06-23 Robert Dewar <dewar@adacore.com>
5272 * binde.adb (Better_Choice): Always prefer Pure/Preelab.
5273 (Worse_Choice): Always prefer Pure/Preelab.
5275 2010-06-23 Vincent Celier <celier@adacore.com>
5277 * a-reatim.adb: Call System.OS_Primitives.Initialize during elaboration
5279 2010-06-23 Robert Dewar <dewar@adacore.com>
5281 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Properly handle
5282 checking returns in generic case.
5283 (Check_Missing_Return): New procedure.
5285 2010-06-23 Robert Dewar <dewar@adacore.com>
5287 * bindgen.adb, switch-b.adb: Minor reformatting.
5289 2010-06-23 Javier Miranda <miranda@adacore.com>
5291 * frontend.adb (Frontend): Add call to initialize the new package
5293 * exp_ch7.adb (Wrap_Transient_Expression): Remove call to
5295 (Wrap_Transient_Statement): Remove call to Adjust_SCIL_Node.
5296 * sem_ch5.adb (Analyze_Iteration_Scheme.Process_Bounds): Remove call to
5298 * exp_util.adb (Insert_Actions): Remove code for
5299 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
5300 (Remove_Side_Effects): Remove calls to Adjust_SCIL_Node.
5301 * sinfo.adb (SCIL_Entity, SCIL_Tag_Value): Remove checks on
5302 N_SCIL_Tag_Init and N_SCIL_Dispatch_Table_Object_Init in the assertion.
5303 (SCIL_Related_Node, Set_SCIL_Related_Node): Removed.
5304 * sinfo.ads (SCIL_Related_Node): Field removed.
5305 (N_SCIL_Dispatch_Table_Object_Init): Node removed.
5306 (N_SCIL_Tag_Init): Node removed.
5307 * sem_scil.ads, sem_scil.adb (Adjust_SCIL_Node): Removed.
5308 (Check_SCIL_Node): New implementation.
5309 (Find_SCIL_Node): Removed.
5310 * sem.adb (Analyze): Remove management of
5311 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
5312 * sem_util.adb (Insert_Explicit_Dereference): Remove call to
5314 * exp_ch4.adb (Expand_N_In): Code cleanup: remove call to
5315 Set_SCIL_Related_Node and avoid adding the SCIL node before the
5316 referenced node using Insert_Action because this is not longer
5318 (Expand_Short_Circuit_Operator): Remove call to SCIL node.
5319 * exp_ch6.adb (Expand_Call): Remove call to Adjust_SCIL_Node.
5320 * sem_ch4.adb (Analyze_Type_Conversion): Remove call to
5322 * exp_disp.adb (Expand_Dispatching_Call): Minor code reorganization
5323 because we no longer require to generate the SCIL node before the call.
5324 (Make_DT): Remove generation of SCI_Dispatch_Table_Object_Init node.
5325 Remove calls to Set_SCIL_Related_Node and avoid adding the SCIL
5326 nodes before the referenced node using Insert_Action because this
5327 is not longer required.
5328 * atree.adb (Allocate_Initialize_Node, Replace, Rewrite): Add call to
5329 update the SCIL_Node field.
5330 * sprint.adb (Sprint_Node_Actual): Remove code for
5331 N_SCIL_Dispatch_Table_Object_Init and N_SCIL_Tag_Init nodes.
5332 * treepr.adb (Print_Node): Print the SCIL node field (if available).
5333 * exp_ch3.adb (Build_Init_Procedure): Remove generation of
5334 SCIL_Tag_Init nodes.
5335 * scil_ll.ads, scil_ll.adb: New files.
5336 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
5339 2010-06-23 Robert Dewar <dewar@adacore.com>
5341 * sem_ch6.adb: Minor reformatting.
5343 2010-06-23 Doug Rupp <rupp@adacore.com>
5345 * bindusg.adb (Display): Write -Hnn line.
5346 * bindgen.adb (Gen_Adainit_Ada): Write Heap_Size to binder file as
5348 * init.c (__gl_heap_size): Rename from __gl_no_malloc_64 and change
5349 valid values to 32 and 64.
5350 (GNAT$NO_MALLOC_64): Recognize TRUE, 1, FALSE, and 0 in addition to
5351 ENABLE, DISABLE as valid settings.
5352 * switch-b.adb (Scan_Binder_Switches): Process -Hnn switch.
5353 * opt.ads (Heap_Size): New global variable.
5354 * gcc-interface/utils2.c (maybe_wrap_malloc): Remove mostly redundant
5355 TARGET_MALLOC64 check. Fix comment.
5357 2010-06-23 Robert Dewar <dewar@adacore.com>
5359 * sem_ch6.adb, exp_ch4.adb, s-rannum.ads, sem.adb, sem_ch12.adb: Minor
5360 reformatting. Add comments.
5361 * errout.adb (Finalize): Properly adjust warning count when deleting
5364 2010-06-22 Robert Dewar <dewar@adacore.com>
5366 * errout.adb (Finalize): Set Prev pointers.
5367 (Finalize): Delete continuations for deletion by warnings off(str).
5368 * erroutc.ads: Add Prev pointer to error message structure.
5370 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5372 * sem.adb (Do_Unit_And_Dependents): If the spec of the main unit is a
5373 child unit, examine context of parent units to locate instantiated
5374 generics whose bodies may be needed.
5375 * sem_ch12.adb: (Mark_Context): if the enclosing unit does not have a
5376 with_clause for the instantiated generic, examine the context of its
5377 parents, to set Withed_Body flag, so that it can be visited earlier.
5378 * exp_ch4.adb (Expand_N_Op_Not): If this is a VMS operator applied to
5379 an unsigned type, use a type of the proper size for the intermediate
5380 value, to prevent alignment problems on unchecked conversion.
5382 2010-06-22 Geert Bosch <bosch@adacore.com>
5384 * s-rannum.ads Change Generator type to be self-referential to allow
5385 Random to update its argument. Use "in" mode for the generator in the
5386 Reset procedures to allow them to be called from the Ada.Numerics
5387 packages without tricks.
5388 * s-rannum.adb: Use the self-referencing argument to get write access
5389 to the internal state of the random generator.
5390 * a-nudira.ads: Make Generator a derived type of
5391 System.Random_Numbers.Generator.
5392 * a-nudira.adb: Remove use of 'Unrestricted_Access.
5393 Put subprograms in alpha order and add headers.
5394 * g-mbdira.ads: Change Generator type to be self-referential.
5395 * g-mbdira.adb: Remove use of 'Unrestricted_Access.
5397 2010-06-22 Robert Dewar <dewar@adacore.com>
5399 * freeze.adb: Minor reformatting
5400 Minor code reorganization (use Nkind_In and Ekind_In).
5402 2010-06-22 Bob Duff <duff@adacore.com>
5404 * gnat1drv.adb (Gnat1drv): Remove the messages that recommend using
5405 -gnatc when a file is compiled that we cannot generate code for, not
5406 helpful and confusing.
5408 2010-06-22 Vincent Celier <celier@adacore.com>
5410 * switch-m.adb (Normalize_Compiler_Switches): Process correctly
5413 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
5415 * s-rannum.adb: Replace constants with commented symbols.
5416 * s-rannum.ads: Explain significance of the initial value of the data
5419 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5421 * a-ngcoty.adb: Clarify comment.
5423 2010-06-22 Gary Dismukes <dismukes@adacore.com>
5425 * exp_pakd.adb (Expand_Bit_Packed_Element_Set): Return without
5426 expansion for indexing packed arrays with small power-of-2 component
5427 sizes when the target is AAMP.
5428 (Expand_Packed_Element_Reference): Return without expansion for
5429 indexing packed arrays with small power-of-2 component sizes when the
5432 2010-06-22 Geert Bosch <bosch@adacore.com>
5434 * exp_ch4.adb (Expand_N_In): Do not substitute a valid check for X in
5437 2010-06-22 Robert Dewar <dewar@adacore.com>
5439 * g-mbdira.adb, g-mbflra.adb, a-nuflra.adb, a-nudira.adb: Minor comment
5442 2010-06-22 Doug Rupp <rupp@adacore.com>
5444 * system-vms.ads, system-vms-zcx.ads: Remove old unused VMS system
5446 * system-vms_64.ads, system-vms-ia64.ads: Minor reformatting.
5447 (pragma Ident): Add a default ident string in the private part.
5449 2010-06-22 Robert Dewar <dewar@adacore.com>
5451 * cstand.adb: Minor reformatting.
5453 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5455 * freeze.adb (Build_And_Analyze_Renamed_Body): For expansion purposes,
5456 recognize the Shift and Rotation intrinsics that are known to the
5457 compiler but have no interface name.
5459 2010-06-22 Geert Bosch <bosch@adacore.com>
5461 * a-ngcoty.adb ("*"): Rewrite complex multiplication to use proper
5462 scaling in case of overflow or NaN results.
5464 2010-06-22 Robert Dewar <dewar@adacore.com>
5466 * cstand.adb: Complete previous change.
5467 * g-dirope.ads: Add comment.
5468 * s-stchop.adb, sfn_scan.adb: Minor reformatting.
5470 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5472 * cstand.adb: Add tree nodes for pragma Pack on string types.
5474 2010-06-22 Javier Miranda <miranda@adacore.com>
5476 * einfo.ads, einfo.adb (Last_Formal): New synthesized attribute.
5477 * exp_util.adb (Find_Prim_Op): Use new attribute to locate the last
5478 formal of a primitive.
5479 * exp_disp.adb (Is_Predefined_Dispatching_Operation,
5480 Is_Predefined_Dispatching_Alias): Use new attribute to locate the last
5481 formal of a primitive.
5482 * exp_cg.adb (Is_Predefined_Dispatching_Operation): Use new attribute
5483 to obtain the last formal of a primitive.
5485 2010-06-22 Geert Bosch <bosch@adacore.com>
5487 * sysdep.c, init.c, adaint.c, cstreams.c: Remove conditional code
5488 depending on __EMX__ or MSDOS being defined.
5489 * i-cstrea.ads, gnat_rm.texi: Remove mentions of OS/2, DOS and Xenix.
5490 * a-excpol-abort.adb: Update comment indicating users of the file.
5491 * xref_lib.adb, sfn_scan.adb: Remove mention of OS/2, replace NT by
5493 * env.c: Remove empty conditional for MSDOS.
5494 * s-stchop.adb, g-dirope.ads, s-fileio.adb, osint.ads: Remove mention
5497 2010-06-22 Robert Dewar <dewar@adacore.com>
5499 * s-rannum.adb: Minor reformatting.
5501 2010-06-22 Javier Miranda <miranda@adacore.com>
5503 * sem_aux.adb, sem_aux.ads, sem_util.adb, sem_util.ads, sem_elim.adb,
5504 exp_cg.adb: Minor code reorganization: Move routine Ultimate_Alias from
5505 package Sem_Util to package Sem_Aux.
5507 2010-06-22 Javier Miranda <miranda@adacore.com>
5509 * exp_disp.adb (Make_Secondary_DT, Make_DT): Minor code cleanup:
5510 remove useless restriction on imported routines when building the
5513 2010-06-22 Robert Dewar <dewar@adacore.com>
5515 * cstand.adb (Create_Standard): Set Has_Pragma_Pack for standard string
5518 2010-06-22 Javier Miranda <miranda@adacore.com>
5520 * sem_ch4.adb (Collect_Generic_Type_Ops): Protect code that handles
5521 generic subprogram declarations to ensure proper context. Add missing
5522 support for generic actuals.
5523 (Try_Primitive_Operation): Add missing support for concurrent types
5524 that have no Corresponding_Record_Type. Required to diagnose errors
5526 generics or when compiling with no code generation (-gnatc).
5527 * sem_ch9.adb (Analyze_Protected_Type, Analyze_Task_Type): Do not build
5528 the corresponding record type.
5529 * sem_disp.ads, sem_disp.adb (Check_Dispatching_Operation): Complete
5530 documentation. Do minimum decoration when processing a primitive of a
5531 concurrent tagged type that covers interfaces. Required to diagnose
5532 errors in the Object.Operation notation compiling generics or under
5534 * exp_ch9.ads, exp_ch9.adb (Build_Corresponding_Record): Add missing
5535 propagation of attribute Interface_List to the corresponding record.
5536 (Expand_N_Task_Type_Declaration): Code cleanup.
5537 (Expand_N_Protected_Type_Declaration): Code cleanup.
5539 2010-06-22 Matthew Heaney <heaney@adacore.com>
5541 * a-convec.adb, a-coinve.adb: Removed 64-bit types Int and UInt.
5543 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
5545 * s-rannum.adb (Random_Float_Template): Replace with unbiased version
5546 that is able to produce all representable floating-point numbers in the
5547 unit interval. Remove template parameter Shift_Right, no longer used.
5548 * gnat_rm.texi: Document the period of the pseudo-random number
5549 generator under the description of its algorithm.
5550 * gcc-interface/Make-lang.in: Update dependencies.
5552 2010-06-22 Thomas Quinot <quinot@adacore.com>
5554 * exp_aggr.adb (Rewrite_Discriminant): Fix predicate used to identify
5555 reference to discriminant (can be an expanded name as well as an
5558 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5560 * exp_ch6.adb: Clarify comment.
5562 2010-06-22 Geert Bosch <bosch@adacore.com>
5564 * exp_imgv.adb (Expand_Image_Attribute): Treat ordinary fixed point
5565 with decimal small as decimal types, avoiding FP arithmetic.
5566 (Has_Decimal_Small): New function.
5567 * einfo.ads, einfo.adb (Aft_Value): New synthesized attributed for
5569 * sem_attr.adb (Eval_Attribute): Remove Aft_Value function and update
5570 callers to call the new function in Einfo that takes the entity as
5573 2010-06-22 Robert Dewar <dewar@adacore.com>
5575 * sem_ch3.adb, sem_ch8.adb: Minor reformatting.
5577 2010-06-22 Thomas Quinot <quinot@adacore.com>
5579 * sem_elab.adb: Minor reformatting.
5581 2010-06-22 Vincent Celier <celier@adacore.com>
5583 * gnatsym.adb: Put the object files in the table in increasing
5584 aphabetical order of base names.
5586 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5588 * sem_ch8.adb (Set_Entity_Or_Discriminal): New procedure used by
5589 Find_Direct_Name and Find_Expanded_Name, to replace a discriminant with
5590 the corresponding discriminal within a record declaration.
5592 2010-06-22 Thomas Quinot <quinot@adacore.com>
5594 * exp_aggr.adb (Rewrite_Discriminant): Rewriting must occur only for an
5595 expression referring to a discriminal of the type of the aggregate (not
5596 a discriminal of some other unrelated type), and the prefix in the
5597 generated selected component must come from Lhs, not Obj.
5599 2010-06-22 Thomas Quinot <quinot@adacore.com>
5601 * sem_ch3.adb (Build_Derived_Record_Type): Fix predicate determining
5602 when to freeze the parent type.
5604 2010-06-22 Robert Dewar <dewar@adacore.com>
5606 * s-rannum.adb, a-nudira.adb, types.ads, freeze.adb, sem_aggr.adb,
5607 exp_aggr.adb: Minor reformatting.
5608 * gnat_rm.texi: Document GNAT.MBBS_Discrete_Random and
5609 GNAT.MBSS_Float_Random.
5610 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: Fix header.
5612 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
5614 * a-nudira.adb, a-nudira.ads, a-nuflra.adb, a-nuflra.ads,
5615 gnat_rm.texi, impunit.adb, Makefile.rtl, s-rannum.adb
5616 (Random_Float_Template, Random): New method of creating
5617 uniform floating-point variables that allow the creation of all machine
5620 * g-mbdira.adb, g-mbflra.adb, g-mbdira.ads, g-mbflra.ads: New file.
5622 2010-06-22 Gary Dismukes <dismukes@adacore.com>
5624 * sem_ch5.adb (Analyze_Assignment): Revise test for illegal assignment
5625 to abstract targets to check that the type is tagged and comes from
5626 source, rather than only testing for targets of interface types. Remove
5629 2010-06-22 Vincent Celier <celier@adacore.com>
5631 * vms_data.ads: Modify the declarations of qualifiers
5632 /UNCHECKED_SHARED_LIB_IMPORTS to allow the generation of gnat.hlp
5635 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5637 * exp_ch6.adb (Is_Build_In_Place_Function): Predicate is false if
5638 expansion is disabled.
5640 2010-06-22 Robert Dewar <dewar@adacore.com>
5642 * makeusg.adb: Minor reformatting.
5644 2010-06-22 Robert Dewar <dewar@adacore.com>
5646 * types.ads: (Dint): Removed, no longer used anywhere.
5647 * uintp.adb (UI_From_CC): Use UI_From_Int, range is sufficient.
5648 (UI_Mul): Avoid use of UI_From_Dint.
5649 (UI_From_Dint): Removed, not used.
5650 * uintp.ads (UI_From_Dint): Removed, not used.
5651 (Uint_Min/Max_Simple_Mul): New constants.
5653 2010-06-22 Vincent Celier <celier@adacore.com>
5655 * clean.adb (Parse_Cmd_Line): Recognize switch
5656 --unchecked-shared-lib-imports.
5657 (Usage): Add line for switch --unchecked-shared-lib-imports
5658 * makeusg.adb: Add line for switch --unchecked-shared-lib-imports
5659 * makeutl.ads: (Unchecked_Shared_Lib_Imports): New constant string
5660 moved from GPR_Util.
5661 * switch-m.adb (Scan_Make_Switches): Recognize switch
5662 --unchecked-shared-lib-imports.
5663 * vms_data.ads: Add VMS qualifiers /UNCHECKED_SHARED_LIB_IMPORTS.
5664 * gnat_ugn.texi: Add documentation for new switch
5665 --unchecked-shared-lib-imports. Add also documentation for --subdirs.
5667 2010-06-22 Javier Miranda <miranda@adacore.com>
5669 * sem_prag.adb, sem_util.adb, sem_util.ads, sem_attr.adb, exp_ch6.adb,
5670 exp_disp.adb, sem_eval.adb, exp_dist.adb lib-xref.adb: Code cleanup,
5671 this patch replaces duplication of code that traverses the chain of
5672 aliased primitives by a call to routine Ultimate_Alias that
5673 provides this functionality.
5675 2010-06-22 Arnaud Charlet <charlet@adacore.com>
5677 * fmap.adb, opt.ads, osint.adb, osint.ads, output.ads, scng.adb,
5678 sinput-c.adb, switch-m.ads, tree_io.ads: Use simpler form of
5681 2010-06-22 Thomas Quinot <quinot@adacore.com>
5683 * einfo.ads: Minor reformatting.
5685 2010-06-22 Javier Miranda <miranda@adacore.com>
5687 * exp_disp.adb (Expand_Interface_Thunk): Do not generate thunk of
5688 eliminated primitives.
5689 (Make_DT): Avoid referencing eliminated primitives.
5690 (Register_Primitive): Do not register eliminated primitives in the
5691 dispatch table. Required to add this functionality when the program is
5692 compiled without static dispatch tables (-gnatd.t)
5694 2010-06-22 Emmanuel Briot <briot@adacore.com>
5696 * fmap.adb, scng.adb, switch-m.ads, sinput-c.adb, opt.ads, output.ads,
5697 tree_io.ads, osint.adb, osint.ads: Use configuration pragmas to prevent
5698 warnings on use of internal GNAT units.
5700 2010-06-22 Jose Ruiz <ruiz@adacore.com>
5702 * s-taprop-vxworks.adb (Set_Priority): Update comments.
5704 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
5706 * s-rannum.adb: Make stylistic change to remove mystery constant in
5707 Extract_Value. Image_Numeral_Length: new symbolic constant.
5709 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5711 * einfo.ads, einfo.adb: Make Is_Protected_Interface,
5712 Is_Synchronized_Interface, Is_Task_Interface into computable
5713 predicates, to free three flags in entity nodes.
5714 * sem_ch3.adb: Remove setting of these flags.
5716 2010-06-22 Robert Dewar <dewar@adacore.com>
5718 * uintp.adb, osint.adb, prj-conf.adb, prj-part.adb, prj.adb: Minor
5720 * s-taprop-vxworks.adb: Add comment for Set_Priority.
5721 * impunit.adb (Map_Array): Add entries for s-htable.ads and s-crc32.ads
5722 * projects.texi: Move @cindex to the left margin, since otherwise we
5723 are missing entries in the index.
5725 2010-06-22 Emmanuel Briot <briot@adacore.com>
5727 * prj-part.adb, prj.adb, tempdir.ads, makeutl.adb: Use
5728 packages from the GNAT hierarchy instead of System when possible.
5729 * gcc-interface/Make-lang.in: Update dependencies.
5731 2010-06-22 Jose Ruiz <ruiz@adacore.com>
5733 * s-taprop-vxworks.adb (Set_Priority): Remove the code that was
5734 previously in place to reorder the ready queue when a task drops its
5735 priority due to the loss of inherited priority.
5737 2010-06-22 Vincent Celier <celier@adacore.com>
5739 * projects.texi: Minor spelling error fixes.
5742 2010-06-22 Emmanuel Briot <briot@adacore.com>
5744 * prj-part.adb, prj-ext.adb, prj.adb, makeutl.adb, prj-conf.adb: Remove
5745 warnings for some with clauses.
5747 2010-06-22 Robert Dewar <dewar@adacore.com>
5749 * errout.adb (Unwind_Internal_Type): Improve handling of First_Subtype
5750 test to catch more cases where first subtype is the results we want.
5751 * sem_res.adb (Make_Call_Into_Operator): Don't go to First_Subtype in
5752 error case, since Errout will now handle this correctly.
5753 * gcc-interface/Make-lang.in: Add Sem_Aux to list of GNATBIND objects.
5754 Update dependencies.
5756 2010-06-22 Arnaud Charlet <charlet@adacore.com>
5758 * exp_ch4.adb (Expand_Allocator_Expression): Set Related_Node properly
5759 when calling Make_Temporary.
5761 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5763 * sem_ch3.adb (Access_Subprogram_Declaration): An anonymous access to
5764 subprogram can be associated with an entry body.
5766 2010-06-22 Robert Dewar <dewar@adacore.com>
5768 * scos.ads: Add note on membership test handling.
5770 2010-06-22 Vincent Celier <celier@adacore.com>
5772 * projects.texi: Minor spelling fixes.
5775 2010-06-22 Paul Hilfinger <hilfinger@adacore.com>
5777 * s-rannum.adb: Correct off-by-one error in Extract_Value.
5779 2010-06-22 Vincent Celier <celier@adacore.com>
5781 * mlib-prj.adb (Display): In non verbose mode, truncate after fourth
5783 * mlib-utl.adb (Gcc): In non verbose mode, truncate the display of the
5784 gcc command if it is too long.
5786 2010-06-22 Robert Dewar <dewar@adacore.com>
5788 * errout.adb (Set_Msg_Node): Fix incorrect reference to node.
5790 2010-06-22 Arnaud Charlet <charlet@adacore.com>
5792 * exp_ch6.adb (Expand_Actuals): Use Actual as the related node when
5793 calling Make_Temporary.
5795 2010-06-22 Robert Dewar <dewar@adacore.com>
5797 * sem_res.adb, sem_aux.adb, errout.adb: Minor reformatting.
5799 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5801 * sem_res.adb: Additional special-case for VMS.
5803 2010-06-22 Vincent Celier <celier@adacore.com>
5805 * gnatsym.adb: Minor comment fix.
5807 2010-06-22 Vincent Celier <celier@adacore.com>
5809 * prj-nmsc.adb (Process_Naming_Scheme): Initialize Lib_Data_Table.
5811 2010-06-22 Robert Dewar <dewar@adacore.com>
5813 * par-ch4.adb (P_Name): Recognize 'Mod attribute in Ada 95 mode
5814 * sem_attr.adb (Attribute_05): Add Name_Mod so that 'Mod recognized in
5815 Ada 95 mode as an implementation defined attribute.
5817 2010-06-22 Vincent Celier <celier@adacore.com>
5819 * bindusg.adb (Display): Update line for -R
5820 * switch-b.adb (Scan_Binder_Switches): Allow generation of the binder
5821 generated files when -R is used.
5823 2010-06-22 Vincent Celier <celier@adacore.com>
5825 * prj-nmsc.adb (Lib_Data_Table): New table.
5826 (Check_Library_Attributes): Check if the same library name is used in
5827 two different projects that do not extend each other.
5829 2010-06-22 Robert Dewar <dewar@adacore.com>
5831 * lib-writ.ads, errout.adb, einfo.adb, einfo.ads: Minor reformatting.
5833 2010-06-22 Vincent Celier <celier@adacore.com>
5835 * adaint.c (__gnat_locate_regular_file): If a directory in the path is
5836 empty, make it the current working directory.
5838 2010-06-22 Thomas Quinot <quinot@adacore.com>
5840 * sem_ch3.adb (Build_Derived_Record_Type): When deriving a tagged
5841 private type with discriminants, make sure the parent type is frozen.
5843 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
5845 * exp_attr.adb (Expand_N_Attribute_Reference) <Attribute_Bit>: Deal
5846 with packed array references specially.
5847 * exp_ch4.adb (Expand_N_Indexed_Component): Do not convert a reference
5848 to a component of a bit packed array if it is the prefix of 'Bit.
5849 * exp_pakd.ads (Expand_Packed_Bit_Reference): Declare.
5850 * exp_pakd.adb (Expand_Packed_Bit_Reference): New procedure. Expand a
5851 'Bit reference, where the prefix involves a packed array reference.
5852 (Get_Base_And_Bit_Offset): New helper, extracted from...
5853 (Expand_Packed_Address_Reference): ...here. Call above procedure to
5854 get the outer object and offset expression.
5856 2010-06-22 Thomas Quinot <quinot@adacore.com>
5858 * exp_attr.adb, lib-writ.ads, bindgen.adb: Minor reformatting.
5859 * einfo.adb (Related_Expression, Set_Related_Expression): Add
5862 2010-06-22 Javier Miranda <miranda@adacore.com>
5864 * sem_ch3.adb (Add_Internal_Interface_Entities): Minor code
5865 reorganization to properly check if the operation has been inherited as
5866 an abstract operation.
5868 2010-06-22 Ed Falis <falis@adacore.com>
5870 * s-osinte-vxworks.ads: Complete previous change.
5872 2010-06-22 Thomas Quinot <quinot@adacore.com>
5874 * sem_res.adb: Add comment.
5875 * projects.texi, gnat_ugn.texi: Remove macro.
5877 2010-06-22 Vincent Celier <celier@adacore.com>
5879 * prj-attr.adb: Remove project level attribute Main_Language.
5881 2010-06-22 Robert Dewar <dewar@adacore.com>
5883 * switch-b.adb, osint-b.adb: Minor reformatting.
5885 2010-06-22 Pascal Obry <obry@adacore.com>
5887 * g-socthi-mingw.adb (C_Sendmsg): Do not attempt to send data from a
5888 vector if previous send was not fully successful. If only part of
5889 the vector data was sent, we exit the loop.
5891 2010-06-22 Thomas Quinot <quinot@adacore.com>
5893 * sem_res.adb (Make_Call_Into_Operator): Use First_Subtype for better
5894 error reporting with generic types.
5896 2010-06-22 Thomas Quinot <quinot@adacore.com>
5898 * bindgen.adb, bindusg.adb, gnatbind.adb, gnat_ugn.texi, opt.ads,
5899 osint-b.adb, osint-b.ads, output.adb, output.ads, switch-b.adb,
5900 vms_data.ads: Add a new command line switch -A to gnatbind to output
5901 the list of all ALI files for the partition.
5903 2010-06-22 Arnaud Charlet <charlet@adacore.com>
5905 * s-osinte-vxworks.ads: Fix casing.
5906 * s-vxwext-kernel.ads, s-vxwext-rtp.ads: Complete previous
5907 change: Interfaces.C does not provide a long_long type.
5909 2010-06-22 Emmanuel Briot <briot@adacore.com>
5911 * gnat_ugn.texi, projects.texi: Preprocess projects.texi for VMS and
5912 native user's guide, since this document contains the two versions.
5913 * gcc-interface/Make-lang.in: Update doc dependencies.
5915 2010-06-22 Robert Dewar <dewar@adacore.com>
5917 * sem_ch3.adb: Minor reformatting. Minor code reorganization.
5919 2010-06-22 Emmanuel Briot <briot@adacore.com>
5921 * gnat_ugn.texi, projects.texi: Remove toplevel menu, since we should
5922 not build this file on its own (only through gnat_ugn.texi).
5923 Remove macro definitions and insert simpler version in gnat_ugn.texi.
5925 2010-06-22 Robert Dewar <dewar@adacore.com>
5927 * ali-util.ads: Minor comment update.
5928 * g-socthi-mingw.adb: Minor reformatting.
5930 2010-06-22 Ed Falis <falis@adacore.com>
5932 * s-osinte-vxworks.ads: Take sigset_t definition of System.VxWorks.Ext.
5933 * s-vxwext.ads, s-vxwext-kernel.ads, s-vxwext-rtp.ads: Define sigset_t
5934 for specific versions of VxWorks.
5936 2010-06-22 Emmanuel Briot <briot@adacore.com>
5938 * gnat_rm.texi, gnat_ugn.texi, projects.texi: Remove all project files
5939 related sections from user's guide and reference manual, since they
5940 have now been merged together into a separate document (projects.texi).
5941 This removes a lot of duplication where attributes where described
5943 The grammar for the project files is now in each of the sections
5944 (packages,expressions,...) instead of being duplicates in two other
5945 sections (one in the user's guide that contained the full grammar,
5946 and various sections in the rm that contained extracts of the same
5948 Added the full list of all supported attributes, since existing lists
5950 Rename "associative array" into "indexed attribute"
5951 Remove sections that were duplicates ("External References in
5952 Project Files" and "External Values", and "Project Extensions"
5953 for instance). The list of valid packages in project files is now in
5956 2010-06-22 Ed Schonberg <schonberg@adacore.com>
5958 * sem_ch3.adb (Add_Internal_Interface_Entities): If
5959 Find_Primitive_Covering_Interface does not find the operation, it may
5960 be because of a name conflict between the inherited operation and a
5961 local non-overloadable name. In that case look for the operation among
5962 the primitive operations of the type. This search must succeed
5963 regardless of visibility.
5965 2010-06-22 Pascal Obry <obry@adacore.com>
5967 * g-socthi-mingw.adb: Properly honor MSG_WAITALL in recvmsg.
5968 (C_Recvmsg): Propely honor the MSG_WAITALL flag in Windows
5971 2010-06-22 Robert Dewar <dewar@adacore.com>
5973 * sem_ch4.adb (Analyze_Conditional_Expression): Defend against
5975 * sprint.adb (Sprint_Node_Actual, case N_Conditional_Expression):
5978 2010-06-22 Arnaud Charlet <charlet@adacore.com>
5980 * s-intman-vxworks.ads: Code clean up.
5982 2010-06-22 Thomas Quinot <quinot@adacore.com>
5984 * sem_res.adb (Resolve_Slice): When the prefix is an explicit
5985 dereference, construct actual subtype of designated object to generate
5986 proper bounds checks.
5988 2010-06-22 Thomas Quinot <quinot@adacore.com>
5990 * ali-util.adb, ali-util.ads, gnatbind.adb (Read_ALI): Rename to
5991 Read_Withed_ALIs, which is more descriptive.
5993 2010-06-22 Pascal Obry <obry@adacore.com>
5995 * g-sothco.ads: Minor reformatting.
5996 * g-socthi-mingw.adb: Remove part of work on the C_Recvmsg and
5997 C_Sendmsg implementation.
5998 (C_Sendmsg): Do not use lock (not needed).
5999 (C_Recvmsg): Likewise and also do not wait for incoming data.
6001 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6003 * uintp.adb: Fix scope error in operator call.
6005 2010-06-22 Vincent Celier <celier@adacore.com>
6007 * makeutl.adb (Executable_Prefix_Path): on VMS, return "/gnu/".
6008 * prj-conf.adb (Get_Or_Create_Configuration_File): On VMS, if
6009 autoconfiguration is needed, fail indicating that no config project
6010 file can be found, as there is no autoconfiguration on VMS.
6012 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6014 * sem_res.adb (Make_Call_Into_Operator): Diagnose an incorrect scope
6015 for an operator in a functional notation, when operands are universal.
6017 2010-06-22 Arnaud Charlet <charlet@adacore.com>
6019 * gcc-interface/Make-lang.in: Update dependencies.
6021 2010-06-22 Robert Dewar <dewar@adacore.com>
6023 * sem_aggr.adb (Resolve_Record_Aggregate): Do style check on component
6025 * sem_ch10.adb (Analyze_Subunit): Do style check on parent unit name.
6026 * sem_ch8.adb (Find_Direct_Name): For non-overloadable entities, do
6028 * sem_res.adb (Resolve_Entity_Name): Do style check for enumeration
6031 2010-06-22 Vincent Celier <celier@adacore.com>
6033 * make.adb (Scan_Make_Arg): No longer pass -nostdlib to the compiler as
6034 it has no effect. Always pass -nostdlib to gnatlink, even on VMS.
6036 2010-06-22 Pascal Obry <obry@adacore.com>
6038 * g-socthi-mingw.adb: Fix implementation of the vectored sockets on
6040 (C_Recvmsg): Make sure the routine is atomic. Also fully
6041 fill vectors in the proper order.
6042 (C_Sendmsg): Make sure the routine is atomic.
6044 2010-06-22 Robert Dewar <dewar@adacore.com>
6046 * sem_ch8.adb: Update comment.
6047 * sem_res.adb: Minor code reorganization (use Ekind_In).
6049 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6051 * sem_ch8.adb (Add_Implicit_Operator): If the context of the expanded
6052 name is a call, use the number of actuals to determine whether this is
6053 a binary or unary operator, rather than relying on later information
6054 to resolve the overload.
6056 2010-06-22 Robert Dewar <dewar@adacore.com>
6058 * sem_ch10.adb, sem_aggr.adb: Minor reformatting.
6060 2010-06-22 Robert Dewar <dewar@adacore.com>
6062 * sem_ch3.adb, sem_disp.adb: Minor code fixes.
6063 * sem_eval.adb: Minor reformatting.
6065 2010-06-22 Vincent Celier <celier@adacore.com>
6067 * make.adb (Scan_Make_Arg): When invoked with -nostdlib, pass -nostdlib
6068 to gnatlink, except on Open VMS.
6069 * osint.adb (Add_Default_Search_Dirs): Do not suppress the default
6070 object directories if -nostdlib is used.
6072 2010-06-22 Robert Dewar <dewar@adacore.com>
6074 * sem_util.adb (Is_Delegate): Put in proper alpha order.
6075 * sem_eval.adb: Minor reformatting.
6077 2010-06-22 Robert Dewar <dewar@adacore.com>
6079 * g-expect-vms.adb, sem_res.adb: Minor reformatting.
6080 * exp_aggr.adb: Minor comment changes and reformatting.
6081 * sem_eval.adb (Find_Universal_Operator_Type): Put in proper alpha
6083 * sem_util.ads: Add some missing pragma Inline's.
6085 2010-06-22 Thomas Quinot <quinot@adacore.com>
6087 * sem_util.adb (Build_Actual_Subtype): Record original expression in
6088 Related_Expression attribute of the constructed subtype.
6089 * einfo.adb, einfo.ads (Underlying_View): Move to Node28 to free up
6090 Node24 on types for...
6091 (Related_Expression): Make attribute available on types as well.
6093 2010-06-22 Gary Dismukes <dismukes@adacore.com>
6095 * exp_util.adb (Find_Interface_ADT): Retrieve Designated_Type instead
6096 of Directly_Designated_Type when the type argument is an access type.
6097 (Find_Interface_Tag): Retrieve Designated_Type instead of
6098 Directly_Designated_Type when the type argument is an access type.
6099 (Has_Controlled_Coextensions): Retrieve Designated_Type instead of
6100 Directly_Designated_Type of each access discriminant.
6101 * sem_res.adb (Resolve_Type_Conversion): Retrieve Designated_Type
6102 instead of Directly_Designated_Type when the operand and target types
6105 2010-06-22 Thomas Quinot <quinot@adacore.com>
6107 * exp_aggr.adb (Flatten): Return False if one choice is statically
6108 known to be out of bounds.
6110 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6112 * sem_res.adb (Resolve_Call): If the call is rewritten as an indexed of
6113 a parameterless function call, preserve parentheses of original
6114 expression, for proper handling by pretty printer.
6115 * sem_attr.adb (Analyze_Attribute, case 'Old): Add guard to Process
6116 procedure, to handle quietly identifiers that have no entity names.
6117 * exp_util.adb (Get_Current_Value_Condition): If the parent of an
6118 elsif_part is missing, it has been rewritten as a nested if, and there
6119 is no useful information on the current value of the variable.
6121 2010-06-22 Gary Dismukes <dismukes@adacore.com>
6123 * sem_ch3.adb (Build_Discriminal): Set default scopes for newly created
6124 discriminals to the current scope.
6125 * sem_util.adb (Find_Body_Discriminal): Remove setting of discriminal's
6126 scope, which could overwrite a different already set value.
6128 2010-06-22 Ed Schonberg <schonberg@adacore.com>
6130 * sem_res.adb (Valid_Conversion): If expression is a predefined
6131 operator, use sloc of type of interpretation to improve error message
6132 when operand is of some derived type.
6133 * sem_eval.adb (Is_Mixed_Mode_Operand): New function, use it.
6135 2010-06-22 Emmanuel Briot <briot@adacore.com>
6137 * g-expect-vms.adb (Expect_Internal): No longer raises an exception, so
6138 that it can set out parameters as well. When a process has died, reset
6139 its Input_Fd to Invalid_Fd, so that when using multiple processes we
6140 can find out which process has died.
6142 2010-06-22 Thomas Quinot <quinot@adacore.com>
6144 * sem_eval.adb (Find_Universal_Operator_Type): New
6145 subprogram to identify the operand type of an operator on universal
6146 operands, when an explicit scope indication is present. Diagnose the
6147 case where such a call is ambiguous.
6148 (Eval_Arithmetic_Op, Eval_Relational_Op, Eval_Unary_Op):
6149 Use the above to identify the operand type so it can be properly
6151 * sem_res.adb (Make_Call_Into_Operator): Remove bogus freeze of operand
6152 type, done in an arbitrary, possibly incorrect type (the presence of
6153 some numeric type in the scope is checked for legality, but when more
6154 than one such type is in the scope, we just pick a random one, not
6155 necessarily the expected one).
6156 * sem_utils.ads, sem_utils.adb (Is_Universal_Numeric_Type): New utility
6159 2010-06-22 Robert Dewar <dewar@adacore.com>
6161 * sem_eval.adb: Minor reformatting.
6163 2010-06-22 Robert Dewar <dewar@adacore.com>
6165 * exp_ch4.adb (Expand_N_Conditional_Expression): Use
6166 Expression_With_Actions to clean up the code generated when folding
6167 constant expressions.
6169 2010-06-22 Vincent Celier <celier@adacore.com>
6171 * g-expect-vms.adb: Add new subprograms Free, First_Dead_Process and
6174 2010-06-22 Vincent Celier <celier@adacore.com>
6176 * prj-nmsc.adb (Find_Sources): When a source from a multi-unit file is
6177 found, check if it's path has aready been found, whatever its index.
6179 2010-06-22 Robert Dewar <dewar@adacore.com>
6181 * atree.adb, gnatbind.adb: Minor reformatting.
6182 Minor code reorganization.
6184 2010-06-21 Robert Dewar <dewar@adacore.com>
6186 * exp_ch4.adb (Expand_N_Conditional_Expression): Fold if condition
6187 known at compile time.
6189 2010-06-21 Gary Dismukes <dismukes@adacore.com>
6191 * atree.adb: Fix comment typo.
6193 2010-06-21 Ed Schonberg <schonberg@adacore.com>
6195 * sem_eval.adb (Test_Ambiguous_Operator): New procedure to check
6196 whether a universal arithmetic expression in a conversion, which is
6197 rewritten from a function call with an expanded name, is ambiguous.
6199 2010-06-21 Vincent Celier <celier@adacore.com>
6201 * prj-nmsc.adb (Name_Location): New Boolean component Listed, to record
6202 source files in specified list of sources.
6203 (Check_Package_Naming): Remove out parameters Bodies and Specs, as they
6205 (Add_Source): Set the Location of the new source
6206 (Process_Exceptions_File_Based): Call Add_Source with the Location
6207 (Get_Sources_From_File): If an exception is found, set its Listed to
6209 (Find_Sources): When Source_Files is specified, if an exception is
6210 found, set its Listed to True. Remove any exception that is not in a
6211 specified list of sources.
6212 * prj.ads (Source_Data): New component Location
6214 2010-06-21 Vincent Celier <celier@adacore.com>
6216 * gnatbind.adb (Closure_Sources): Global table, moved from block.
6218 2010-06-21 Thomas Quinot <quinot@adacore.com>
6220 * sem_res.adb: Minor reformatting.
6221 * atree.adb: New debugging hook "rr" for node rewrites.
6223 2010-06-21 Robert Dewar <dewar@adacore.com>
6225 * g-expect.ads, g-expect.adb: Minor reformatting.
6227 2010-06-21 Emmanuel Briot <briot@adacore.com>
6229 * s-regpat.adb (Next_Pointer_Bytes): New named constant. Code clean up.
6231 2010-06-21 Arnaud Charlet <charlet@adacore.com>
6233 * gcc-interface/Make-lang.in: Update dependencies.
6235 2010-06-21 Thomas Quinot <quinot@adacore.com>
6237 * bindgen.ads: Update comments.
6239 2010-06-21 Vincent Celier <celier@adacore.com>
6241 * gnatbind.adb: Suppress dupicates when listing the sources in the
6242 closure (switch -R).
6244 2010-06-21 Emmanuel Briot <briot@adacore.com>
6246 * s-regpat.adb (Link_Tail): Fix error when size of the pattern matcher
6249 2010-06-21 Emmanuel Briot <briot@adacore.com>
6251 * g-expect.adb, g-expect.ads (First_Dead_Process, Free, Has_Process):
6253 (Expect_Internal): No longer raises an exception, so that it can set
6254 out parameters as well. When a process has died, reset its Input_Fd
6255 to Invalid_Fd, so that when using multiple processes we can find out
6256 which process has died.
6258 2010-06-21 Robert Dewar <dewar@adacore.com>
6260 * s-regpat.adb, s-tpoben.adb, sem_attr.adb, sem_util.adb, sem_util.ads,
6261 checks.adb, sem_res.adb: Minor reformatting. Add comments.
6263 2010-06-21 Ed Schonberg <schonberg@adacore.com>
6265 * sem_ch6.adb (New_Overloaded_Entity): If the new entity is a
6266 rederivation associated with a full declaration in a private part, and
6267 there is a partial view that derives the same parent subprogram, the
6268 new entity does not become visible. This check must be applied to
6269 interface operations as well.
6271 2010-06-21 Thomas Quinot <quinot@adacore.com>
6273 * checks.adb: Add comments.
6274 * prj-nmsc.adb: Minor reformatting.
6276 2010-06-21 Thomas Quinot <quinot@adacore.com>
6278 * sem_ch9.adb, checks.adb, sem_util.adb, sem_util.ads, sem_res.adb,
6279 sem_attr.adb (Get_E_First_Or_Last): Use attribute references on E to
6280 extract bounds, to ensure that we get the proper captured values,
6281 rather than an expression that may have changed value since the point
6282 where the subtype was elaborated.
6283 (Find_Body_Discriminal): New utility subprogram to share code
6285 (Eval_Attribute): For the case of a subtype bound that references a
6286 discriminant of the current concurrent type, insert appropriate
6287 discriminal reference.
6288 (Resolve_Entry.Actual_Index_Type.Actual_Discriminant_Ref): For a
6289 requeue to an entry in a family in the current task, use corresponding
6291 (Analyze_Accept_Statement): Rely on expansion of attribute references
6292 to insert proper discriminal references in range check for entry in
6295 2010-06-21 Emmanuel Briot <briot@adacore.com>
6297 * s-regpat.adb (Compile): Fix handling of big patterns.
6299 2010-06-21 Robert Dewar <dewar@adacore.com>
6301 * a-tifiio.adb: Minor reformatting.
6303 2010-06-21 Pascal Obry <obry@adacore.com>
6305 * prj-nmsc.adb (Search_Directories): Use the non-translated directory
6308 2010-06-21 Javier Miranda <miranda@adacore.com>
6310 * exp_cg.adb (Write_Call_Info): Fill the component sourcename using the
6313 2010-06-21 Ed Schonberg <schonberg@adacore.com>
6315 * exp_ch4.adb (Expand_Concatenate): If an object declaration is created
6316 to hold the result, indicate that the target of the declaration does
6317 not need an initialization, to prevent spurious errors when
6318 Initialize_Scalars is enabled.
6320 2010-06-21 Ed Schonberg <schonberg@adacore.com>
6322 * a-tifiio.adb (Put): In the procedure that performs I/O on a String,
6323 Fore is not bound by line length. The Fore parameter of the internal
6324 procedure that performs the operation is an integer.
6326 2010-06-21 Thomas Quinot <quinot@adacore.com>
6328 * sem_res.adb, checks.adb: Minor reformatting.
6330 2010-06-21 Emmanuel Briot <briot@adacore.com>
6332 * s-regpat.adb (Next_Instruction, Get_Next_Offset): Removed, merged
6334 (Insert_Operator_Before): New subprogram, avoids duplicated code
6335 (Compile): Avoid doing two compilations when the pattern matcher ends
6338 2010-06-21 Emmanuel Briot <briot@adacore.com>
6340 * s-regpat.adb: Improve debug traces
6341 (Dump): Change output format to keep it smaller.
6343 2010-06-21 Javier Miranda <miranda@adacore.com>
6345 * exp_cg.adb (Generate_CG_Output): Disable redirection of standard
6346 output to the output file when this routine completes its work.
6348 2010-06-20 Eric Botcazou <ebotcazou@adacore.com>
6350 * gcc-interface/trans.c (Subprogram_Body_to_gnu): Use while instead of
6351 for loop. Call build_constructor_from_list directly in the CICO case.
6353 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6355 * freeze.adb (Build_And_Analyze_Renamed_Body): If the renaming
6356 declaration appears in the same unit and ealier than the renamed
6357 entity, retain generated body to prevent order-of-elaboration issues in
6360 2010-06-18 Arnaud Charlet <charlet@adacore.com>
6362 * s-tpoben.adb: Update comments.
6364 2010-06-18 Robert Dewar <dewar@adacore.com>
6366 * debug.adb: Minor comment change.
6368 2010-06-18 Javier Miranda <miranda@adacore.com>
6370 * exp_cg.adb: Code clean up.
6371 * debug.adb: Complete documentation of switch -gnatd.Z.
6372 * gcc-interface/misc.c (callgraph_info_file): Declare.
6374 2010-06-18 Javier Miranda <miranda@adacore.com>
6376 * exp_cg.adb (Homonym_Suffix_Length): Minor code reorganization.
6378 2010-06-18 Thomas Quinot <quinot@adacore.com>
6380 * sprint.ads: Minor reformatting.
6381 * output.ads: Update obsolete comment.
6383 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6385 * freeze.adb (Build_And_Analyze_Renamed_Body): if the renamed entity is
6386 an external intrinsic operation (e.g. a GCC numeric function) indicate
6387 that the renaming entity has the same characteristics, so a call to it
6388 is properly expanded.
6390 2010-06-18 Javier Miranda <miranda@adacore.com>
6392 * exp_cg.adb, exp_cg.ads, exp_disp.adb, gnat1drv.adb: Add initial
6393 support for dispatch table/callgraph info generation.
6394 * gcc-interface/Make-lang.in: Update dependencies.
6396 2010-06-18 Robert Dewar <dewar@adacore.com>
6398 * exp_ch6.adb: Minor reformatting.
6399 * gnatname.adb: Add comment.
6401 2010-06-18 Vincent Celier <celier@adacore.com>
6403 * gnatname.adb (Scan_Args): When --and is used, make sure that the
6404 dynamic tables in the newly allocated Argument_Data are properly
6407 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
6409 * gnat1drv.adb: Fix comment.
6411 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6413 * exp_ch6.adb (Expand_Inlined_Call): If the inlined subprogram is a
6414 renaming, re-expand the call with the renamed subprogram if that one
6415 is marked inlined as well.
6417 2010-06-18 Gary Dismukes <dismukes@adacore.com>
6419 * gnat1drv.adb (Adjust_Global_Switches): Enable
6420 Use_Expression_With_Actions for AAMP and VM targets.
6422 2010-06-18 Vincent Celier <celier@adacore.com>
6424 * prj-nmsc.adb (Process_Linker): Recognize response file format GCC.
6426 2010-06-18 Thomas Quinot <quinot@adacore.com>
6428 * exp_ch4.adb: Minor reformatting.
6430 2010-06-18 Javier Miranda <miranda@adacore.com>
6432 * debug.ads Add documentation on -gnatd.Z.
6434 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6436 * sem_elim.adb: Proper error message on improperly eliminated instances
6438 2010-06-18 Vincent Celier <celier@adacore.com>
6440 * prj.ads (Response_File_Format): New value GCC.
6442 2010-06-18 Thomas Quinot <quinot@adacore.com>
6444 * gnat1drv.adb: Minor reformatting.
6446 2010-06-18 Robert Dewar <dewar@adacore.com>
6448 * make.adb, sem_cat.adb: Minor reformatting.
6449 * sem_eval.adb: Fix typos.
6451 2010-06-18 Pascal Obry <obry@adacore.com>
6453 * prj-nmsc.adb: Fix source filenames casing in debug output.
6455 2010-06-18 Robert Dewar <dewar@adacore.com>
6457 * gnatcmd.adb: Minor reformatting.
6459 2010-06-18 Robert Dewar <dewar@adacore.com>
6461 * sem_eval.adb (Eval_Conditional_Expression): Result is static if
6462 condition and both sub-expressions are static (and result is selected
6465 2010-06-18 Robert Dewar <dewar@adacore.com>
6467 * g-pehage.adb: Minor reformatting
6469 2010-06-18 Pascal Obry <obry@adacore.com>
6471 * prj-nmsc.adb (Search_Directories): Insert canonical filenames into
6474 2010-06-18 Arnaud Charlet <charlet@adacore.com>
6476 * gcc-interface/Makefile.in, gcc-interface/Make-lang.in: Update
6477 dependencies. Fix target pairs on darwin.
6478 (gnatlib-sjlj, gnatlib-zcx): Pass THREAD_KIND.
6480 2010-06-18 Pascal Obry <obry@adacore.com>
6482 * make.adb, prj-nmsc.adb: Fix source filenames casing in debug output.
6484 2010-06-18 Vincent Celier <celier@adacore.com>
6486 * gnatcmd.adb: For gnatcheck, add -gnatec= switch for a global
6487 configuration pragmas file and, if -U is not used, for a local one.
6489 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6491 * sem_elim.adb (Check_Eliminated): Use full information on entity name
6492 when it is given in the pragma by a selected component.
6493 (Check_For_Eliminated_Subprogram): Do no emit error if within a
6494 instance body that is itself within a generic unit.
6495 * sem_ch12.adb (Analyze_Subprogram_Instance): If the subprogram is
6496 eliminated, mark as well the anonymous subprogram that is its alias
6497 and appears within the wrapper package.
6499 2010-06-18 Bob Duff <duff@adacore.com>
6501 * g-pehage.ads, g-pehage.adb (Produce): Clean up some of the code.
6502 Raise an exception if the output file cannot be opened. Add comments.
6504 2010-06-18 Thomas Quinot <quinot@adacore.com>
6506 * sem_cat.adb (Validate_Object_Declaration): A variable declaration is
6507 not illegal per E.2.2(7) if it occurs in the private part of a
6510 2010-06-18 Arnaud Charlet <charlet@adacore.com>
6512 * par-ch9.adb, sem_aggr.adb, sem_ch3.adb, layout.adb, sem_ch4.adb,
6513 sem_ch5.adb, sem_mech.adb, exp_util.adb, par-ch10.adb, sem_ch6.adb,
6514 par-ch11.adb, sem_ch7.adb, par-prag.adb, exp_disp.adb, par-ch12.adb,
6515 sem_ch8.adb, style.adb, sem_ch9.adb, sem_ch10.adb, prep.adb,
6516 sem_warn.adb, par-util.adb, scng.adb, sem_eval.adb, checks.adb,
6517 sem_prag.adb, sem_ch12.adb, styleg.adb, sem_ch13.adb, par-ch3.adb,
6518 par-tchk.adb, freeze.adb, sfn_scan.adb, par-ch4.adb, sem_util.adb,
6519 sem_res.adb, par-ch5.adb, lib-xref.adb, sem_attr.adb, par-ch6.adb,
6520 sem_disp.adb, prepcomp.adb, par-ch7.adb, sem_elab.adb, exp_ch4.adb,
6521 errout.ads: Update comments. Minor reformatting.
6523 * g-spipat.adb, a-swunau.adb, a-swunau.ads, g-spitbo.adb,
6524 a-szunau.adb, a-szunau.ads, a-stunau.adb, a-stunau.ads,
6525 a-strunb.adb (Big_String. Big_String_Access): New type.
6527 * par-labl.adb, restrict.adb, s-osinte-hpux-dce.ads, sem_ch11.adb,
6528 exp_pakd.adb, s-filofl.ads, par-endh.adb, exp_intr.adb, sem_cat.adb,
6529 sem_case.adb, exp_ch11.adb, s-osinte-linux.ads: Fix copyright notices.
6531 2010-06-18 Geert Bosch <bosch@adacore.com>
6533 * i-forbla-darwin.adb: Include -lgnala and -lm in linker options for
6536 2010-06-18 Robert Dewar <dewar@adacore.com>
6538 * gnat1drv.adb (Adjust_Global_Switches): Set Use_Expression_With_Actions
6541 2010-06-18 Robert Dewar <dewar@adacore.com>
6543 * sprint.adb: Minor format change for N_Expression_With_Actions.
6544 * repinfo.adb: Minor reformatting.
6546 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6548 * sem_elim.adb (Check_Eliminated): If within a subunit, use
6549 Defining_Entity to obtain the name of the entity in the proper body, to
6550 properly handle both separate packages and subprograms.
6552 2010-06-18 Emmanuel Briot <briot@adacore.com>
6554 * prj-nmsc.adb (Check_File): New parameter Display_Path.
6556 2010-06-18 Thomas Quinot <quinot@adacore.com>
6558 * g-socket.adb, g-socket.ads (Null_Selector): New object.
6560 2010-06-18 Pascal Obry <obry@adacore.com>
6562 * gnat_ugn.texi: Minor clarification.
6564 2010-06-18 Emmanuel Briot <briot@adacore.com>
6566 * prj-nmsc.adb (Find_Source_Dirs): Minor refactoring to avoid duplicate
6567 code when using the project dir as the source dir.
6568 (Search_Directories): use the normalized name for the source directory,
6569 where symbolic names have potentially been resolved.
6571 2010-06-18 Robert Dewar <dewar@adacore.com>
6573 * exp_ch4.adb (Expand_N_Conditional_Expression): Clear Actions field
6574 when we create N_Expression_With_Actions node.
6575 (Expand_Short_Circuit): Ditto.
6577 2010-06-18 Robert Dewar <dewar@adacore.com>
6579 * exp_util.adb: Minor reformatting.
6581 2010-06-18 Thomas Quinot <quinot@adacore.com>
6583 * types.ads: Clean up obsolete comments
6584 * tbuild.adb: Minor reformatting.
6585 * exp_ch5.adb, sem_intr.adb, sem_ch10.adb, rtsfind.adb, s-shasto.adb,
6586 exp_strm.adb, aa_drive.adb: Minor reformatting.
6587 * sem_res.adb (Is_Predefined_Operator): An operator that is an imported
6588 intrinsic with an Interface_Name denotes an imported back-end builtin,
6589 and must be rewritten into a call, not left in the tree as an operator,
6590 so return False in that case.
6592 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
6594 * exp_util.adb (Remove_Side_Effects): Make a copy for an allocator.
6596 2010-06-18 Robert Dewar <dewar@adacore.com>
6598 * scos.ads: Add proposed output for case expression
6600 2010-06-18 Jose Ruiz <ruiz@adacore.com>
6602 * gnat_ugn.texi: Document that, when using the RTX compiler to generate
6603 RTSS modules, we need to use the Microsoft linker.
6605 2010-06-18 Robert Dewar <dewar@adacore.com>
6607 * checks.adb (Safe_To_Capture_In_Parameter_Value): Deal with case
6608 expression (cannot count on a particular branch being executed).
6609 * exp_ch4.adb (Expand_N_Case_Expression): New procedure.
6610 * exp_ch4.ads (Expand_N_Case_Expression): New procedure.
6611 * exp_util.adb (Insert_Actions): Deal with proper insertion of actions
6612 within case expression.
6613 * expander.adb (Expand): Add call to Expand_N_Case_Expression
6614 * par-ch4.adb Add calls to P_Case_Expression at appropriate points
6615 (P_Case_Expression): New procedure
6616 (P_Case_Expression_Alternative): New procedure
6617 * par.adb (P_Case_Expression): New procedure
6618 * par_sco.adb (Process_Decisions): Add dummy place holder entry for
6620 * sem.adb (Analyze): Add call to Analyze_Case_Expression
6621 * sem_case.ads (Analyze_Choices): Also used for case expressions now,
6622 this is a documentation change only.
6623 * sem_ch4.ads, sem_ch4.adb (Analyze_Case_Expression): New procedure.
6624 * sem_ch6.adb (Fully_Conformant_Expressions): Add handling of case
6626 * sem_eval.ads, sem_eval.adb (Eval_Case_Expression): New procedure.
6627 * sem_res.adb (Resolve_Case_Expression): New procedure.
6628 * sem_scil.adb (Find_SCIL_Node): Add processing for
6629 N_Case_Expression_Alternative.
6630 * sinfo.ads, sinfo.adb (N_Case_Expression): New node.
6631 (N_Case_Expression_Alternative): New node.
6632 * sprint.adb (Sprint_Node_Actual): Add processing for new nodes
6633 N_Case_Expression and N_Case_Expression_Alternative.
6635 2010-06-18 Robert Dewar <dewar@adacore.com>
6637 * par-ch7.adb, sem_warn.adb, types.ads, par-ch3.adb: Minor
6639 * gnat1drv.adb: Fix typo.
6641 2010-06-18 Robert Dewar <dewar@adacore.com>
6643 * par-prag.adb (Prag, case Style_Checks): All_Checks sets gnat style
6645 * sem_prag.adb (Analyze_Pragma, case Style_Checks): All_Checks sets
6646 gnat style for -gnatg.
6647 * gnat_rm.texi: Add documentation for ALL_CHECKS in GNAT mode.
6649 2010-06-18 Thomas Quinot <quinot@adacore.com>
6651 * sem_eval.adb (Test_In_Range): New subprogram, factoring duplicated
6653 (Is_In_Range, Is_Out_Of_Range): Reimplement in terms of call to
6656 2010-06-18 Robert Dewar <dewar@adacore.com>
6658 * sprint.adb: Minor change in output format for expression wi actions.
6659 * par-ch3.adb: Minor code reorganization. Minor reformatting.
6660 * sem_ch5.adb: Minor comment fix.
6662 2010-06-18 Robert Dewar <dewar@adacore.com>
6664 * debug.adb: New debug flag -gnatd.L to control
6665 Back_End_Handles_Limited_Types.
6666 * exp_ch4.adb (Expand_N_Conditional_Expression): Let back end handle
6667 limited case if Back_End_Handles_Limited_Types is True.
6668 (Expand_N_Conditional_Expression): Use N_Expression_With_Actions to
6669 simplify expansion if Use_Expression_With_Actions is True.
6670 * gnat1drv.adb (Adjust_Global_Switches): Set
6671 Back_End_Handles_Limited_Types.
6672 * opt.ads (Back_End_Handles_Limited_Types): New flag.
6674 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6676 * sem_res.adb (Rewrite_Operator_As_Call): Do not rewrite user-defined
6677 intrinsic operator if expansion is not enabled, because in an
6678 instantiation the original operator must be present to verify the
6679 legality of the operation.
6681 2010-06-18 Robert Dewar <dewar@adacore.com>
6683 * exp_disp.adb, sem_ch12.adb: Minor reformatting
6685 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6687 * exp_util.adb (Make_Subtype_From_Expr): If the unconstrained type is
6688 the class-wide type for a private extension, and the completion is a
6689 subtype, set the type of the class-wide type to the base type of the
6692 2010-06-18 Robert Dewar <dewar@adacore.com>
6694 * g-socket.ads, sem_aggr.adb, einfo.ads, sem_elim.adb,
6695 sem_intr.adb, sem_eval.adb: Minor reformatting
6697 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6699 * sem_type.adb (Is_Ancestor): If either type is private, examine full
6702 2010-06-18 Thomas Quinot <quinot@adacore.com>
6704 * g-socket.adb, g-socket.ads (Check_Selector): Make Selector an IN
6705 parameter rather than IN OUT.
6707 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6709 * exp_ch6.adb: Add extra guard.
6711 2010-06-18 Gary Dismukes <dismukes@adacore.com>
6713 * sem_util.adb (Object_Access_Level): For Ada 2005, determine the
6714 accessibility level of a function call from the level of the innermost
6715 enclosing dynamic scope.
6716 (Innermost_Master_Scope_Depth): New function to find the depth of the
6717 nearest dynamic scope enclosing a node.
6719 2010-06-18 Tristan Gingold <gingold@adacore.com>
6721 * adaint.c: Make ATTR_UNSET static as it is not used outside this file.
6723 2010-06-18 Thomas Quinot <quinot@adacore.com>
6725 * g-socket.ads: Minor reformatting.
6727 2010-06-18 Vincent Celier <celier@adacore.com>
6729 * make.adb (Must_Compile): New Boolean global variable
6730 (Main_On_Command_Line): New Boolean global variable
6731 (Collect_Arguments_And_Compile): Do compile if Must_Compile is True,
6732 even when the project is externally built.
6733 (Start_Compile_If_Possible): Compile in -aL directories if
6734 Check_Readonly_Files is True. Do compile if Must_Compile is True, even
6735 when the project is externally built.
6736 (Gnatmake): Set Must_Compile and Check_Readonly_Files to True when
6737 invoked with -f -u and one or several mains on the command line.
6738 (Scan_Make_Arg): Set Main_On_Command_Line to True when at least one
6739 main is specified on the command line.
6741 2010-06-18 Ed Schonberg <schonberg@adacore.com>
6743 * sem_ch6.adb (Build_Body_For_Inline): Handle
6744 extended_return_statements.
6745 * exp_ch6.adb (Expand_Inlined_Call): when possible, inline a body
6746 containing extented_return statements.
6747 * exp_util.adb (Make_CW_Equivalent_Type): If the root type is already
6748 constrained, do not build subtype declaration.
6750 2010-06-18 Robert Dewar <dewar@adacore.com>
6752 * sem_res.adb (Analyze_Indexed_Component, Analyze_Selected_Component):
6753 Warn on assigning to packed atomic component.
6755 2010-06-18 Robert Dewar <dewar@adacore.com>
6757 * sem_util.ads: Minor reformatting
6758 * einfo.ads, einfo.adb: Minor doc clarification (scope of decls in
6759 Expression_With_Actions).
6760 * snames.ads-tmpl: Minor comment fix
6762 2010-06-18 Robert Dewar <dewar@adacore.com>
6764 * sem_prag.adb (Diagnose_Multiple_Pragmas): New procedure
6765 (Set_Imported): Use Import_Interface_Present to control message output
6766 * sinfo.ads, sinfo.adb (Import_Interface_Present): New flag
6767 * gnat_rm.texi: Document that we can have pragma Import and pragma
6768 Interface for the same subprogram.
6770 2010-06-18 Robert Dewar <dewar@adacore.com>
6772 * lib-xref.adb (Generate_Reference): Fix bad reference to
6773 Has_Pragma_Unreferenced (clients should always use Has_Unreferenced).
6775 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
6777 * gcc-interface/trans.c (set_gnu_expr_location_from_node): New static
6779 (gnat_to_gnu) <N_Expression_With_Actions>: New case.
6780 Use set_gnu_expr_location_from_node to set location information on the
6783 2010-06-17 Arnaud Charlet <charlet@adacore.com>
6785 * gcc-interface/Make-lang.in: Update dependencies.
6787 2010-06-17 Ed Schonberg <schonberg@adacore.com>
6789 * sem_util.adb (Is_Atomic_Object): Predicate does not apply to
6792 2010-06-17 Robert Dewar <dewar@adacore.com>
6794 * gnat_rm.texi, gnat_ugn.texi: Clean up documentation on warning and
6795 style check messages.
6796 * sem_res.adb (Resolve_Call): Don't call
6797 Check_For_Eliminated_Subprogram if we are analyzing within a spec
6800 2010-06-17 Robert Dewar <dewar@adacore.com>
6802 * debug.adb: Add documentation for debug flags .X and .Y
6803 * exp_ch4.adb (Expand_Short_Circuit_Operator): Use
6804 Use_Expression_With_Actions.
6805 * gnat1drv.adb (Adjust_Global_Switches): Set
6806 Use_Expression_With_Actions.
6807 * opt.ads (Use_Expression_With_Actions): New switch.
6809 2010-06-17 Robert Dewar <dewar@adacore.com>
6811 * exp_intr.adb: Minor code reorganization (use UI_Max)
6812 * sem_intr.adb: use underlying type to check legality.
6813 * einfo.adb (Known_Static_Esize): False for generic types
6814 (Known_Static_RM_Size): False for generic types
6815 * einfo.ads (Known_Static_Esize): False for generic types
6816 (Known_Static_RM_Size): False for generic types
6818 2010-06-17 Robert Dewar <dewar@adacore.com>
6820 * exp_ch4.ads: Minor code reorganization (specs in alpha order).
6822 2010-06-17 Robert Dewar <dewar@adacore.com>
6824 * debug.adb: New debug flag -gnatd.X to use Expression_With_Actions
6825 node when expanding short circuit form with actions present for right
6827 * exp_ch4.adb: Minor reformatting
6828 (Expand_Short_Circuit_Operator): Use new Expression_With_Actions node
6829 if right opeand has actions present, and debug flag -gnatd.X is set.
6830 * exp_util.adb (Insert_Actions): Handle case of Expression_With_Actions
6832 * nlists.adb (Prepend_List): New procedure
6833 (Prepend_List_To): New procedure
6834 * nlists.ads (Prepend_List): New procedure
6835 (Prepend_List_To): New procedure
6836 * sem.adb: Add processing for Expression_With_Actions
6837 * sem_ch4.adb (Analyze_Expression_With_Actions): New procedure
6838 * sem_ch4.ads (Analyze_Expression_With_Actions): New procedure
6839 * sem_res.adb: Add processing for Expression_With_Actions.
6840 * sem_scil.adb: Add processing for Expression_With_Actions
6841 * sinfo.ads, sinfo.adb (N_Expression_With_Actions): New node.
6842 * sprint.ads, sprint.adb: Add processing for Expression_With_Actions
6844 2010-06-17 Doug Rupp <rupp@adacore.com>
6846 * sem_intr.adb (Check_Intrinsic_Operator): Check that the types
6847 involved both have underlying integer types.
6848 * exp_intr.adb (Expand_Binary_Operator) New subprogram to expand a call
6849 to an intrinsic operator when the operand types or sizes are not
6851 * s-auxdec-vms_64.ads: Revert "+" "-" ops back to Address now that
6852 64/32 Address/Integer works.
6854 2010-06-17 Ed Schonberg <schonberg@adacore.com>
6856 * sem_ch12.adb (Mark_Context): Refine placement of Withed_Body flag, so
6857 that it marks a unit as needed by a spec only if the corresponding
6858 instantiation appears in that spec (and not in the corresponding body).
6859 * sem_elim.adb (Check_Eliminated): If we are within a subunit, the name
6860 in the pragma Eliminate has been parsed as a child unit, but the
6861 current compilation unit is in fact the parent in which the subunit is
6864 2010-06-17 Vincent Celier <celier@adacore.com>
6866 * gnat_rm.texi: Fix typo
6868 2010-06-17 Robert Dewar <dewar@adacore.com>
6870 * sem_util.adb: Minor reformatting
6872 2010-06-17 Ed Schonberg <schonberg@adacore.com>
6874 * sem.adb (Do_Withed_Unit): if the unit in the with_clause is a generic
6875 instance, the clause now denotes the instance body. Traverse the
6876 corresponding spec because there may be no other dependence that will
6877 force the traversal of its own context.
6879 2010-06-17 Ed Schonberg <schonberg@adacore.com>
6881 * sem_ch10.adb (Is_Ancestor_Unit): Subsidiary to
6882 Install_Limited_Context_Clauses, to determine whether a limited_with in
6883 some parent of the current unit designates some other parent, in which
6884 case the limited_with clause must not be installed.
6885 (In_Context): Refine test.
6887 2010-06-17 Gary Dismukes <dismukes@adacore.com>
6889 * sem_util.adb (Collect_Primitive_Operations): In the of an untagged
6890 type with a dispatching equality operator that is overridden (for a
6891 tagged full type), don't include the overridden equality in the list of
6892 primitives. The overridden equality is detected by testing for an
6893 Aliased field that references the overriding equality.
6895 2010-06-17 Robert Dewar <dewar@adacore.com>
6897 * freeze.adb: Minor reformatting.
6899 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
6901 * gnat_ugn.texi: Add a section introducing gdbserver.
6903 2010-06-17 Thomas Quinot <quinot@adacore.com>
6905 * sem_res.adb, sem_ch4.adb, s-stoele.adb, par-labl.adb: Minor
6908 2010-06-17 Ed Schonberg <schonberg@adacore.com>
6910 * sem_aggr.adb (Valid_Ancestor_Type): handle properly the case of a
6911 constrained discriminated parent that is a private type.
6912 (Analyze_Record_Aggregate): when collecting inherited discriminants,
6913 handle properly an ancestor type that is a constrained private type.
6915 2010-06-17 Ed Schonberg <schonberg@adacore.com>
6917 * sem_util.adb (Enclosing_Subprogram): If the called subprogram is
6918 protected, use the protected_subprogram_body only if the original
6919 subprogram has not been eliminated.
6921 2010-06-17 Ed Schonberg <schonberg@adacore.com>
6923 * freeze.adb (Freeze_Expression): The designated type of an
6924 access_to_suprogram type can only be frozen if all types in its profile
6927 2010-06-17 Robert Dewar <dewar@adacore.com>
6929 * par.adb: Minor comment fix
6930 * sem_aggr.adb, sem_ch3.adb: Minor reformatting
6932 2010-06-17 Doug Rupp <rupp@adacore.com>
6934 * s-auxdec-vms_64.ads: Revert Integer to Long_Integer change, instead
6935 change Address to Short_Address in functions where both must be the
6936 same size for intrinsics to work.
6938 2010-06-17 Thomas Quinot <quinot@adacore.com>
6940 * sem_ch4.adb (Analyze_Selected_Component): A selected component may
6941 not denote a (private) component of a protected object.
6943 2010-06-17 Bob Duff <duff@adacore.com>
6945 * par-labl.adb (Try_Loop): Test whether the label and the goto are in
6948 2010-06-17 Joel Brobecker <brobecker@adacore.com brobecker>
6950 * gnat_ugn.texi: Update the documentation about GDB re: exception
6953 2010-06-17 Arnaud Charlet <charlet@adacore.com>
6955 * gnatvsn.ads: Bump to 4.6 version.
6957 2010-06-17 Ed Schonberg <schonberg@adacore.com>
6959 * exp_ch6.adb (Make_Build_In_Place_Call_In_Object_Declaration): The
6960 designated type of the generated pointer is the type of the original
6961 expression, not that of the function call itself, because the return
6962 type may be an untagged derived type and the function may be an
6963 inherited operation.
6965 2010-06-17 Robert Dewar <dewar@adacore.com>
6967 * exp_ch4.adb: Minor reformatting.
6969 2010-06-17 Ed Schonberg <schonberg@adacore.com>
6971 * sinfo.ads, sinfo.adb (Inherited_Discriminant): New flag on
6972 N_Component_Association nodes, to indicate that a component association
6973 of an extension aggregate denotes the value of a discriminant of an
6974 ancestor type that has been constrained by the derivation.
6975 * sem_aggr.adb (Discr_Present): use Inherited_Discriminant to prevent a
6976 double expansion of the aggregate appearing in a context that delays
6977 expansion, to prevent double insertion of discriminant values when the
6978 aggregate is reanalyzed.
6980 2010-06-17 Arnaud Charlet <charlet@adacore.com>
6982 * exp_ch6.adb (Make_Build_In_Place_Call_In_Allocator): Do not use
6983 Allocator as the Related_Node of Return_Obj_Access in call to
6984 Make_Temporary below as this would create a sort of infinite
6987 2010-06-17 Ben Brosgol <brosgol@adacore.com>
6989 * gnat_ugn.texi: Update gnatcheck doc.
6991 2010-06-17 Ed Schonberg <schonberg@adacore.com>
6993 * sem_ch3.adb (Build_Incomplete_Type_Declaration): If there is an
6994 incomplete view of the type that is not tagged, and the full type is a
6995 tagged extension, create class_wide type now, and warn that the
6996 incomplete view should be tagged as well.
6998 2010-06-17 Vincent Celier <celier@adacore.com>
7000 * gnatcmd.adb (Non_VMS_Usage): Do not issue usage for gnat sync.
7001 Update the last line of the usage, indicating what commands do not
7002 accept project file switches.
7003 * vms_conv.adb: Do not issue usage line for GNAT SYNC
7004 * vms_data.ads: Fix errors in the qualifiers /LOGFILE and /MAIN of
7006 * gnat_ugn.texi: Document the relaxed rules for library directories in
7007 externally built library projects.
7009 2010-06-17 Doug Rupp <rupp@adacore.com>
7011 * s-auxdec-vms_64.ads: Make boolean and arithmetic operations intrinsic
7013 * s-auxdec-vms-alpha.adb: Remove kludges for aforemention.
7014 * gcc-interface/Makefile.in: Update VMS target pairs.
7016 2010-06-17 Vasiliy Fofanov <fofanov@adacore.com>
7018 * adaint.c: Reorganized in order to avoid use of GetProcessId to stay
7019 compatible with Windows NT 4.0 which doesn't provide this function.
7021 2010-06-17 Vincent Celier <celier@adacore.com>
7023 * ali-util.adb (Time_Stamp_Mismatch): In Verbose mode, if there is
7024 different timestamps but the checksum is the same, issue a short
7027 2010-06-17 Arnaud Charlet <charlet@adacore.com>
7029 * s-interr.adb (Finalize): If the Abort_Task signal is set to system,
7030 it means that we cannot reset interrupt handlers since this would
7031 require potentially sending the abort signal to the Server_Task.
7033 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7035 * exp_ch4.adb: expand NOT for VMS types.
7036 * sem_util.adb: Use OpenVMS_On_Target for IS_VMS_Operator.
7038 2010-06-17 Sergey Rybin <rybin@adacore.com>
7040 * vms_data.ads: Add qualifier for '--no-elim-dispatch' gnatelim option.
7041 * gnat_ugn.texi (gnatelim): add description for --no-elim-dispatch
7044 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7046 * exp_ch6.adb (Expand_Call): Do not expand a call to an internal
7047 protected operation if the subprogram has been eliminated.
7049 2010-06-17 Vincent Celier <celier@adacore.com>
7051 * prj-nmsc.adb (Check_Library_Attributes): Allow the different
7052 directories associated with a library to be any directory when the
7053 library project is externally built.
7055 2010-06-17 Vincent Celier <celier@adacore.com>
7057 * make.adb (Check): If switch -m is used, deallocate the memory that
7058 may be allocated when computing the checksum.
7060 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7062 * g-socthi-mingw.adb (C_Recvmsg): Add 'use type' clause for C.size_t;
7063 (C_Sendmsg): Likewise.
7065 2010-06-17 Thomas Quinot <quinot@adacore.com>
7067 * sem_res.adb: Update comments.
7069 2010-06-17 Vincent Celier <celier@adacore.com>
7071 * back_end.adb (Scan_Compiler_Arguments): Process last argument
7073 2010-06-17 Robert Dewar <dewar@adacore.com>
7075 * exp_ch3.adb, exp_ch6.adb, exp_smem.adb, exp_util.adb: Use Ekind_In.
7076 * layout.adb, freeze.adb: Use Make_Temporary.
7078 2010-06-17 Jerome Lambourg <lambourg@adacore.com>
7080 * exp_ch11.adb (Expand_N_Raise_Statement): Expand raise statements in
7081 .NET/JVM normally as this is now perfectly supported by the backend.
7083 2010-06-17 Pascal Obry <obry@adacore.com>
7085 * gnat_rm.texi: Fix minor typo, remove duplicate blank lines.
7087 2010-06-17 Vincent Celier <celier@adacore.com>
7089 * make.adb (Collect_Arguments_And_Compile): Create include path file
7090 only when -x is specified.
7092 * opt.ads (Use_Include_Path_File): New Boolean flag, initialized to
7094 * prj-env.adb (Set_Ada_Paths): New Boolean parameters Include_Path and
7095 Objects_Path, defaulted to True. Only create include path file if
7096 Include_Path is True, only create objects path file if Objects_Path is
7098 * prj-env.ads (Set_Ada_Paths): New Boolean parameters Include_Path and
7099 Objects_Path, defaulted to True.
7100 * switch-m.adb (Scan_Make_Switches): Set Use_Include_Path_File to True
7103 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7105 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
7106 determine whether it has the controlling type, when the formal is an
7109 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7111 * s-crtl.ads (ssize_t): New type.
7112 (read): Fix signature.
7114 * g-socthi.ads: Add 'with System.CRTL' clause. Remove ssize_t and
7115 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7116 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7117 (C_Sendmsg): Likewise.
7118 * g-socthi.adb (Syscall_Recvmsg): Likewise.
7119 (Syscall_Sendmsg): Likewise.
7120 (C_Recvmsg): Likewise.
7121 (C_Sendmsg): Likewise.
7122 * g-socthi-mingw.ads: Add 'with System.CRTL' clause. Remove ssize_t
7123 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7124 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7125 (C_Sendmsg): Likewise.
7126 * g-socthi-mingw.adb (C_Recvmsg): Likewise.
7127 (C_Sendmsg): Likewise.
7128 * g-socthi-vms.ads: Add 'with System.CRTL' clause. Remove ssize_t and
7129 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7130 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7131 (C_Sendmsg): Likewise.
7132 * g-socthi-vms.adb (C_Recvmsg): Likewise.
7133 (C_Sendmsg): Likewise.
7134 * g-socthi-vxworks.ads Add 'with System.CRTL' clause. Remove ssize_t
7135 and 'use type' directive for C.size_t, add one for System.CRTL.ssize_t.
7136 (C_Recvmsg): Replace ssize_t with System.CRTL.ssize_t.
7137 (C_Sendmsg): Likewise.
7138 * g-socthi-vxworks.adb (C_Recvmsg): Likewise.
7139 (C_Sendmsg): Likewise.
7140 * g-sercom-linux.adb (Read): Use correct types to call 'read'.
7141 (Write): Likewise to call 'write'.
7142 * s-os_lib.adb (Read): Use correct type to call System.CRTL.read.
7143 (Write): Use correct type to call System.CRTL.write.
7144 * s-tasdeb.adb (Write): Likewise.
7146 2010-06-17 Vincent Celier <celier@adacore.com>
7148 * prj-proc.adb (Copy_Package_Declarations): Change argument name
7149 Naming_Restricted to Restricted. If Restricted is True, do not copy the
7150 value of attribute Linker_Options.
7152 2010-06-17 Eric Botcazou <ebotcazou@adacore.com>
7154 * gcc-interface/trans.c (push_stack, pop_stack): Delete.
7155 (Case_Statement_to_gnu): Adjust.
7156 (Loop_Statement_to_gnu): Likewise.
7157 (Subprogram_Body_to_gnu): Likewise.
7158 (Handled_Sequence_Of_Statements_to_gnu): Likewise.
7159 (Compilation_Unit_to_gnu): Likewise.
7161 2010-06-17 Robert Dewar <dewar@adacore.com>
7163 * exp_fixd.adb, exp_imgv.adb, exp_intr.adb, exp_pakd.adb, exp_prag.adb,
7164 exp_sel.adb, exp_util.adb, sem_ch10.adb, sem_ch12.adb, sem_ch13.adb,
7165 sem_ch3.adb, sem_ch4.adb, sem_ch5.adb, sem_ch8.adb, sem_ch9.adb,
7166 sem_dist.adb, sem_util.adb: Use Make_Temporary
7167 * itypes.ads, tbuild.ads: Minor comment update
7168 * exp_ch9.adb, exp_dist.adb: Minor reformatting
7170 2010-06-17 Thomas Quinot <quinot@adacore.com>
7172 * exp_imgv.adb, exp_ch7.ads: Minor reformatting.
7174 2010-06-17 Robert Dewar <dewar@adacore.com>
7176 * exp_ch9.adb, exp_disp.adb, exp_dist.adb: Use Make_Temporary.
7178 2010-06-17 Thomas Quinot <quinot@adacore.com>
7180 * sprint.adb (pg): Set Dump_Freeze_Null, to be consistent with -gnatdg.
7182 2010-06-17 Robert Dewar <dewar@adacore.com>
7184 * exp_ch6.adb, exp_ch7.adb, exp_ch5.adb: Use Make_Temporary
7185 * tbuild.ads (Make_Temporary): More comment updates
7186 * tbuild.adb: Minor reformatting
7188 2010-06-17 Robert Dewar <dewar@adacore.com>
7190 * checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch11.adb,
7191 exp_ch3.adb, exp_ch4.adb: Minor code reorganization.
7193 * tbuild.ads, tbuild.adb (Make_Temporary): Clean up, use Entity_Id
7195 (Make_Temporary): Add more extensive documentation
7197 2010-06-17 Robert Dewar <dewar@adacore.com>
7199 * sem_intr.adb, sem_prag.adb, sem_res.adb, sem_type.adb, sem_util.adb,
7200 sem_warn.adb, sem_eval.adb: Minor reformatting. Use Ekind_In.
7201 (Set_Slice_Subtype): Explicitly freeze the slice's itype at the point
7202 where the slice's actions are inserted.
7203 (Decompose_Expr): Account for possible rewriting of slice bounds
7204 resulting from side effects suppression caused by the above freezing,
7205 so that folding of bounds is preserved by such rewriting.
7207 2010-06-17 Robert Dewar <dewar@adacore.com>
7209 * einfo.ads, einfo.adb (Get_Record_Representation_Clause): New
7211 * freeze.adb (Freeze_Record_Type): Add call to
7212 Check_Record_Representation_Clause.
7213 * sem_ch13.adb (Check_Record_Representation_Clause): New function
7214 (Analyze_Record_Representation_Clause): Split out overlap code into
7216 (Check_Component_Overlap): Moved inside
7217 Check_Record_Representation_Clause.
7218 * sem_ch13.ads (Check_Record_Representation_Clause): New function.
7220 2010-06-17 Robert Dewar <dewar@adacore.com>
7222 * back_end.adb, sem_res.adb, switch-c.adb, sem_scil.adb: Minor
7224 * sem_attr.adb, sem_cat.adb, sem_disp.adb, sem_elab.adb, sem_elim.adb,
7225 sem_eval.adb: Use Ekind_In
7227 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7229 * sem_ch8.adb: better error message for illegal inherited discriminant
7231 2010-06-17 Vincent Celier <celier@adacore.com>
7233 * bindusg.adb: Remove lines for -A and -C
7234 * gnat_ugn.texi: Remove all documentation and examples of switches -A
7235 and -C for gnatbind and gnatlink.
7236 * gnatlink.adb (Usage): Remove lines for -A and -C
7237 * switch-b.adb (Scan_Binder_Switches): Issue warning when switch -C is
7239 * gcc-interface/Make-lang.in: Update dependencies.
7241 2010-06-17 Vincent Celier <celier@adacore.com>
7243 * back_end.adb (Scan_Compiler_Arguments): Put all arguments in new
7244 local Argument_List variable Args.
7245 * switch-c.adb (Scan_Front_End_Switches): New Argument_List argument
7247 (Switch_Subsequently_Cancelled): New Argument_List argument Args. Look
7248 for subsequent switches in Args.
7249 * switch-c.ads (Scan_Front_End_Switches): New Argument_List argument
7251 * gcc-interface/Make-lang.in: Update dependencies.
7253 2010-06-17 Robert Dewar <dewar@adacore.com>
7255 * einfo.adb: Minor code fix, allow E_Class_Wide_Type for
7256 Equivalent_Type to match documentation.
7258 2010-06-17 Robert Dewar <dewar@adacore.com>
7260 * sem_ch6.adb, sem_ch7.adb: Minor reformatting.
7261 * sem_ch3.adb, sem_ch5.adb, sem_ch9.adb, sem_ch10.adb, sem_ch12.adb,
7262 sem_ch4.adb, sem_ch8.adb, sem_ch13.adb: Make use of Ekind_In.
7264 2010-06-17 Thomas Quinot <quinot@adacore.com>
7266 * sem_res.adb (Set_Slice_Subtype): Always freeze the slice's itype.
7268 2010-06-17 Thomas Quinot <quinot@adacore.com>
7270 * freeze.adb (Freeze_Expression): Short circuit operators are valid
7271 freeze node insertion points.
7273 2010-06-17 Robert Dewar <dewar@adacore.com>
7275 * switch-c.ads, switch-c.adb, sem_ch13.adb: Minor reformatting.
7276 * sem_ch12.adb: Add pragmas Assert and Check to previous change.
7278 2010-06-17 Gary Dismukes <dismukes@adacore.com>
7280 * layout.adb (Layout_Type): Broaden test for setting an array type's
7281 Component_Size to include all scalar types, not just discrete types
7282 (components of real types were missed).
7283 * sem_ch3.adb (Constrain_Index): Add missing setting of First_Literal
7284 on the itype created for an index (consistent with Make_Index and
7285 avoids possible Assert_Failures).
7287 2010-06-17 Robert Dewar <dewar@adacore.com>
7289 * atree.ads, atree.adb: Add 6-parameter version of Ekind_In
7290 * einfo.adb: Minor code reformatting (use Ekind_In)
7292 2010-06-17 Robert Dewar <dewar@adacore.com>
7294 * sem_warn.adb (Test_Ref): Abandon scan if access subprogram parameter
7297 2010-06-17 Vincent Celier <celier@adacore.com>
7299 * back_end.adb: Minor comment updates
7300 * switch-c.adb: Remove dependencies on gcc C sources
7301 * gcc-interface/Make-lang.in: Add a-comlin.o to the object file list
7304 2010-06-17 Ed Schonberg <schonberg@adacore.com>
7306 * sem_ch12.adb: propagate Pragma_Enabled flag to generic.
7307 * get_scos.adb: Set C2 flag in decision entry of pragma to 'e'.
7308 * par_sco.ads, par_sco.adb (Set_SCO_Pragma_Enabled): New procedure
7309 Remove use of Node field in SCOs table
7310 (Output_Header): Set 'd' to initially disable pragma entry
7311 * put_scos.adb (Put_SCOs): New flag indicating if pragma is enabled
7312 * scos.ads, scos.adb: Remove Node field from internal SCOs table.
7313 Use C2 field of pragma decision header to indicate enabled.
7314 * sem_prag.adb: Add calls to Set_SCO_Pragma_Enabled.
7315 * gcc-interface/Make-lang.in: Update dependencies.
7317 2010-06-17 Vincent Celier <celier@adacore.com>
7319 * back_end.adb (Next_Arg): Moved to procedure Scan_Compiler_Arguments
7320 (Scan_Compiler_Arguments): Call Scan_Front_End_Switches with Next_Arg
7321 (Switch_Subsequently_Cancelled): Function moved to the body of Switch.C
7322 * back_end.ads (Scan_Front_End_Switches): Function moved to the body of
7324 * switch-c.adb: Copied a number of global declarations from
7326 (Len_Arg): New function copied from back_end.adb
7327 (Switch_Subsequently_Cancelled): New function moved from back_end.adb
7328 (Scan_Front_End_Switches): New parameter Arg_Rank used to call
7329 Switch_Subsequently_Cancelled.
7330 * switch-c.ads (Scan_Front_End_Switches): New parameter Arg_Rank.
7331 * gcc-interface/Makefile.in: Add line so that shared libgnat is linked
7332 with -lexc on Tru64.
7334 2010-06-17 Robert Dewar <dewar@adacore.com>
7336 * prj.ads, prj.adb: Minor reformatting
7338 2010-06-17 Thomas Quinot <quinot@adacore.com>
7340 * put_scos.adb: Do not generate a blank line in SCOs when omitting the
7341 CP line for a disabled pragma.
7343 2010-06-17 Emmanuel Briot <briot@adacore.com>
7345 * prj-proc.adb, prj.adb, prj.ads (Check_Or_Set_Typed_Variable): New
7347 (Process_Declarative_Item): An invalid value in an typed variable
7348 declaration is no longer always fatal.
7350 2010-06-16 Arnaud Charlet <charlet@adacore.com>
7352 * get_scos.adb, par_sco.adb, par_sco.ads, put_scos.adb, scos.adb,
7353 scos.ads, exp_ch4.adb, sem_warn.adb: Code clean up, update
7356 2010-06-16 Javier Miranda <miranda@adacore.com>
7358 * exp_disp.adb (Expand_Dispatching_Call): Adjust the decoration of the
7359 node referenced by the SCIL node of dispatching "=" to skip the tags
7362 2010-06-16 Ed Schonberg <schonberg@adacore.com>
7364 * sem_ch5.adb (Analyze_Exit_Statement): Return if no enclosing loop,
7365 to prevent cascaded errors and compilation aborts.
7367 2010-06-16 Robert Dewar <dewar@adacore.com>
7369 * back_end.adb (Switch_Subsequently_Cancelled): New function
7370 Move declarations to package body level to support this change
7371 * back_end.ads (Switch_Subsequently_Cancelled): New function
7372 * gnat_ugn.texi: Document -gnat-p switch
7373 * switch-c.adb (Scan_Front_End_Switches): Implement -gnat-p switch
7374 * ug_words: Add entry for -gnat-p (UNSUPPRESS_ALL)
7375 * usage.adb: Add line for -gnat-p switch
7376 * vms_data.ads: Add entry for UNSUPPRESS_ALL (-gnat-p)
7378 2010-06-16 Robert Dewar <dewar@adacore.com>
7380 * sem_warn.adb (Check_Infinite_Loop_Warning): Declaration counts as
7383 2010-06-16 Robert Dewar <dewar@adacore.com>
7385 * exp_disp.adb: Minor reformatting
7387 2010-06-16 Ed Schonberg <schonberg@adacore.com>
7389 * sem_ch3.adb (Complete_Private_Subtype): Inherit class_wide type from
7390 base type only if it was not previously created for the partial view.
7392 2010-06-16 Thomas Quinot <quinot@adacore.com>
7394 * tbuild.ads: Minor comment fix
7396 2010-06-15 Nathan Froyd <froydnj@codesourcery.com>
7398 * gcc-interface/trans.c (gnu_stack_free_list): Delete.
7399 (gnu_except_ptr_stack): Change type to VEC. Update comment.
7400 (gnu_elab_proc_stack): Likewise.
7401 (gnu_return_label_stack): Likewise.
7402 (gnu_loop_label_stack): Likewise.
7403 (gnu_switch_label_stack): Likewise.
7404 (gnu_constraint_label_stack): Likewise.
7405 (gnu_storage_error_label_stack): Likewise.
7406 (gnu_program_error_label_stack): Likewise.
7407 (push_exception_label_stack): Take a VEC ** instead of a tree *.
7408 (push_stack): Likewise. Remove unused second parameter. Update
7410 (pop_stack): Take a VEC * instead of a tree *. Update callers.
7411 (gigi): Initialize stacks as VECs.
7412 (Identifier_to_gnu): Use VEC_last instead of TREE_VALUE.
7413 (Case_Statement_to_gnu): Likewise.
7414 (Subprogram_Body_to_gnu): Likewise.
7415 (call_to_gnu): Likewise.
7416 (Exception_Handler_to_gnu_sjlj): Likewise.
7417 (gnat_to_gnu): Likewise.
7418 (get_exception_label): Likewise.
7420 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7422 * sem_ch3.adb (Build_Derived_Record_Type): if derived type is an
7423 anonymous base generated when the parent is a constrained discriminated
7424 type, propagate interface list to first subtype because it may appear
7425 in a current instance within the extension part of the derived type
7426 declaration, and its own subtype declaration has not been elaborated
7428 * exp_disp.adb (Build_Interface_Thunk): Use base type of formal to
7429 determine whether it has the controlling type.
7431 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
7433 * exp_ch11.adb (Expand_N_Raise_Statement): Make sure that the explicit
7434 raise of CE, SE and PE have the reason correctly set and are properly
7435 expanded before stopping the expansions of .NET/JVM exceptions.
7437 2010-06-14 Robert Dewar <dewar@adacore.com>
7439 * opt.ads (Check_Policy_List): Add some clarifying comments
7440 * sem_prag.adb (Analyze_Pragma, case Check): Set Pragma_Enabled flag
7441 on rewritten Assert pragma.
7443 2010-06-14 Gary Dismukes <dismukes@adacore.com>
7445 * sem_ch6.adb (Check_Overriding_Indicator): Add a special check for
7446 controlled operations, so that they will be treated as overriding even
7447 if the overridden subprogram is marked Is_Hidden, as long as the
7448 overridden subprogram's parent subprogram is not hidden.
7450 2010-06-14 Robert Dewar <dewar@adacore.com>
7452 * debug.adb: Entry for gnatw.d no longer specific for while loops
7453 * einfo.adb (First_Exit_Statement): New attribute for E_Loop
7454 * einfo.ads (First_Exit_Statement): New attribute for E_Loop
7455 * sem_ch5.adb (Analyze_Loop_Statement): Check_Infinite_Loop_Warning has
7456 new calling sequence to include test for EXIT WHEN.
7457 (Analyze_Exit_Statement): Chain EXIT statement into exit statement
7459 * sem_warn.ads, sem_warn.adb (Check_Infinite_Loop_Warning): Now handles
7461 * sinfo.adb (Next_Exit_Statement): New attribute of N_Exit_Statement
7463 * sinfo.ads (N_Pragma): Correct comment on Sloc field (points to
7464 PRAGMA, not to pragma identifier).
7465 (Next_Exit_Statement): New attribute of N_Exit_Statement node
7467 2010-06-14 Robert Dewar <dewar@adacore.com>
7469 * sem_res.adb (Resolve_Short_Circuit): Fix sloc of "assertion/check
7472 2010-06-14 Robert Dewar <dewar@adacore.com>
7474 * par-ch2.adb (Scan_Pragma_Argument_Association): Clarify message for
7475 missing pragma argument identifier.
7477 2010-06-14 Robert Dewar <dewar@adacore.com>
7479 * atree.ads, atree.adb (Ekind_In): New functions.
7481 2010-06-14 Robert Dewar <dewar@adacore.com>
7483 * exp_ch4.adb (Expand_N_Op_Expon): Optimize 2**N in stand alone context
7485 2010-06-14 Robert Dewar <dewar@adacore.com>
7487 * usage.adb (Usage): Redo documentation of -gnatwa.
7489 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7491 * sem_ch8.adb (Find_Type): The attribute 'class cannot be applied to
7492 an untagged incomplete type that is a limited view.
7494 2010-06-14 Sergey Rybin <rybin@adacore.com>
7496 * gnat_ugn.texi: Add description of '-cargs gcc_switches' to gnatstub
7499 2010-06-14 Thomas Quinot <quinot@adacore.com>
7501 * exp_ch4.adb (Expand_Short_Circuit_Operator): New subprogram,
7502 factoring duplicated code between...
7503 (Expand_N_And_Than, Expand_N_Or_Else): Remove duplicated code.
7504 * a-envvar.ads: Minor reformatting
7506 2010-06-14 Arnaud Charlet <charlet@adacore.com>
7508 * ali.adb, ali.ads, lib-xref.ads: Document new '+' letter for C/C++
7510 (Scan_ALI): Take into account new Visibility field.
7511 (Visibility_Kind): New type.
7512 (Xref_Entity_Record): Replace Lib field by Visibility.
7514 * gcc-interface/Make-lang.in: Update dependencies.
7516 2010-06-14 Pascal Obry <obry@adacore.com>
7518 * raise.h: Remove unused defintions.
7520 2010-06-14 Bob Duff <duff@adacore.com>
7522 * par-ch10.adb (P_Subunit): If the next token after "separate(X)" is
7523 Tok_Not or Tok_Overriding, call P_Subprogram. We had previously given
7524 the incorrect error "proper body expected".
7525 * par-ch6.adb (P_Subprogram): Suppress "overriding indicator not
7526 allowed here" error in case of subunits, which was triggered by the
7527 above change to P_Subunit.
7529 2010-06-14 Sergey Rybin <rybin@adacore.com>
7531 * gnat_ugn.texi, vms_data.ads: Update gnatelim doc.
7533 2010-06-14 Thomas Quinot <quinot@adacore.com>
7535 * lib-util.adb: Minor code reorganization.
7537 2010-06-14 Robert Dewar <dewar@adacore.com>
7539 * ali.adb (Scan_ALI): Implement reading and storing of N lines
7540 (Known_ALI_Lines): Add entry for 'N' (notes)
7541 * ali.ads (Notes): New table to store Notes information
7542 * alloc.ads: Add entries for Notes table
7543 * lib-util.adb (Write_Info_Int): New procedure
7544 (Write_Info_Slit): New procedure
7545 (Write_Info_Uint): New procedure
7546 * lib-util.ads (Write_Info_Int): New procedure
7547 (Write_Info_Slit): New procedure
7548 (Write_Info_Uint): New procedure
7549 * lib-writ.adb (Write_Unit_Information): Output N (notes) lines
7550 * lib-writ.ads: Update documentation for N (Notes) lines
7551 * lib.adb (Store_Note): New procedure
7552 * lib.ads (Notes): New table
7553 (Store_Note): New procedure
7554 * sem_prag.adb: Call Store_Note for affected pragmas
7556 2010-06-14 Thomas Quinot <quinot@adacore.com>
7558 * socket.c: Fix wrong condition in #ifdef
7559 * g-socket.adb, g-sothco.ads: Functions imported from socket.c that
7560 take or return char* values can't use Interfaces.C.Strings.chars_ptr,
7561 because on VMS this type is a 32-bit pointer which is not compatible
7562 with the default for C pointers for code compiled with gcc on that
7565 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7567 * sem_util (Is_VMS_Operator): New predicate to determine whether an
7568 operator is an intrinsic operator declared in the DEC system extension.
7569 * sem_res.adb (Resolve_Logical_Op): operation is legal on signed types
7570 if the operator is a VMS intrinsic.
7571 * sem_eval.adb (Eval_Logical_Op): Operation is legal and be
7572 constant-folded if the operands are signed and the operator is a VMS
7575 2010-06-14 Robert Dewar <dewar@adacore.com>
7577 * g-socket.adb, gnatcmd.adb: Minor reformatting.
7579 2010-06-14 Pascal Obry <obry@adacore.com>
7581 * s-finimp.adb: Fix typo.
7582 * raise.h: Remove duplicate blank line.
7584 2010-06-14 Vincent Celier <celier@adacore.com>
7586 * prj-nmsc.adb (Add_Sources): Always set the object file and the
7587 switches file names, as the configuration of the language may change
7588 in an extending project.
7589 (Process_Naming_Scheme): For sources of projects that are extended, set
7590 the configuration of the language from the highest extending project
7591 where the language is declared.
7593 2010-06-14 Gary Dismukes <dismukes@adacore.com>
7595 * sem_res.adb (Resolve_Call): For infinite recursion check, test
7596 whether the called subprogram is inherited from a containing
7598 (Same_Or_Aliased_Subprograms): New function
7600 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7602 * sem_ch8.adb (End_Use_Type): Before indicating that an operator is not
7603 use-visible, check whether it is a primitive for more than one type.
7605 2010-06-14 Robert Dewar <dewar@adacore.com>
7607 * sem_ch3.adb (Copy_And_Swap): Copy Has_Pragma_Unmodified flag.
7609 * sem_ch7.adb (Preserve_Full_Attributes): Preserve
7610 Has_Pragma_Unmodified flag.
7612 2010-06-14 Thomas Quinot <quinot@adacore.com>
7614 * g-sttsne-locking.adb, g-sttsne-locking.ads, g-sttsne.ads,
7615 g-sttsne-vxworks.adb, g-sttsne-dummy.ads: Removed. Mutual exclusion is
7616 now done in GNAT.Sockets if necessary.
7617 * gsocket.h, g-socket.adb, g-sothco.ads (GNAT.Sockets.Get_XXX_By_YYY):
7618 Ensure mutual exclusion for netdb operations if the target platform
7620 (GNAT.Sockets.Thin_Common): New binding for getXXXbyYYY, treating
7621 struct hostent as an opaque type to improve portability.
7622 * s-oscons-tmplt.c, socket.c: For the case of Vxworks, emulate
7623 gethostbyYYY using proprietary VxWorks API so that a uniform interface
7624 is available for the Ada side.
7625 * gcc-interface/Makefile.in: Remove g-sttsne-*
7626 * gcc-interface/Make-lang.in: Update dependencies.
7628 2010-06-14 Vincent Celier <celier@adacore.com>
7630 * gnatcmd.adb (Mapping_File): New function.
7632 2010-06-14 Javier Miranda <miranda@adacore.com>
7634 * sem_ch3.adb (Derive_Subprograms): Remove over-restrictive assertion.
7636 2010-06-14 Arnaud Charlet <charlet@adacore.com>
7638 * ali.adb: Fix typo.
7639 * s-auxdec-vms-alpha.adb, scng.ads: Minor reformatting.
7641 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7643 * sem_ch12.adb: Make Mark_Context transitive, and apply to subprogram
7646 * sem_ch8.adb (Find_Expanded_Name): If a candidate compilation unit in
7647 the context does not have a homonym of the selector, emit default
7650 2010-06-14 Robert Dewar <dewar@adacore.com>
7652 * sem.adb, sem_ch12.adb, sem_util.adb: Minor reformatting and
7655 2010-06-14 Arnaud Charlet <charlet@adacore.com>
7657 * lib-xref.ads: Doc updates:
7658 - Allocate 'Q' for #include entity kind
7660 - Allocate 'g' for regular macros
7661 - Allocate 'G' for function-like macros
7663 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7665 * sinfo.ads, sinfo.adb (Withed_Body): New attribute of a with_clause.
7666 Indicates that there is an instantiation in the current unit that
7667 loaded the body of the unit denoted by the with_clause.
7668 * sem_ch12.adb (Mark_Context): When instanting a generic body, check
7669 whether a with_clause in the current context denotes the unit that
7670 holds the generic declaration, and mark the with_clause accordingly.
7671 (Instantiate_Package_Body): call Mark_Context.
7672 * sem.adb (Process_Bodies_In_Context): Use Withed_Body to determine
7673 whether a given body should be traversed before the spec of the main
7676 2010-06-14 Ed Falis <falis@adacore.com>
7678 * sysdep.c: Fix 653 build against vThreads headers.
7680 2010-06-14 Robert Dewar <dewar@adacore.com>
7682 * sinfo.ads: Minor reformatting.
7684 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7686 * sem_ch6.adb (Analyze_Subprogram_Body): Do not check conformance when
7687 the spec has been generated for a body without spec that carries an
7688 Inline_Always pragma.
7690 2010-06-14 Arnaud Charlet <charlet@adacore.com>
7692 * lib-xref.ads: Documentation change: allocate 'Z' letter to C/C++
7695 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
7697 * exp_dbug.adb (Debug_Renaming_Declaration): Do not output any debug
7698 declaration for VMs, as those are useless and might lead to duplicated
7699 local variable names in the generated code.
7700 * gcc-interface/Make-lang.in: Update dependencies.
7702 2010-06-14 Robert Dewar <dewar@adacore.com>
7704 * opt.ads, sem.adb, sem_elab.adb: Minor reformatting
7706 2010-06-14 Robert Dewar <dewar@adacore.com>
7708 * exp_aggr.adb (Has_Address_Clause): Moved to Exp_Util, and there it
7709 is renamed as Has_Following_Address_Clause.
7710 * exp_ch3.adb (Needs_Simple_Initialization): Add Consider_IS argument
7711 to allow the caller to avoid Initialize_Scalars having an effect.
7712 (Expand_N_Object_Declaration): Do not do Initialize_Scalars stuff for
7713 scalars with an address clause specified.
7714 * exp_ch3.ads (Needs_Simple_Initialization): Add Consider_IS argument
7715 to allow the caller to avoid Initialize_Scalars having an effect.
7716 * exp_util.adb (Has_Following_Address_Clause): Moved here from Exp_Aggr
7717 (where it was called Has_Address_Clause).
7718 * exp_util.ads (Has_Following_Address_Clause): Moved here from Exp_Aggr
7719 (where it was called Has_Address_Clause).
7720 * freeze.adb (Warn_Overlay): Suppress message about overlaying causing
7721 problems for Initialize_Scalars (since we no longer initialize objects
7722 with an address clause.
7724 2010-06-14 Robert Dewar <dewar@adacore.com>
7726 * exp_prag.adb (Expand_Pragma_Check): Set Loc of generated code from
7729 2010-06-14 Gary Dismukes <dismukes@adacore.com>
7731 * sem_ch6.adb (Analyze_Subprogram_Body_Helper): Set Debug_Info_Needed
7732 on the entity of an implicitly generated postcondition procedure.
7734 2010-06-14 Thomas Quinot <quinot@adacore.com>
7736 * sem_ch7.adb (Preserve_Full_Attributes): Propagate
7737 Discriminant_Constraint elist from full view to private view.
7739 2010-06-14 Robert Dewar <dewar@adacore.com>
7741 * sem_res.adb: Minor reformatting.
7743 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7745 * sem.adb: New version of unit traversal.
7747 * sem_elab.adb (Check_Internal_Call): Do not place a call appearing
7748 within a generic unit in the table of delayed calls.
7750 2010-06-14 Robert Dewar <dewar@adacore.com>
7752 * gnatcmd.adb, sem_util.adb, exp_ch3.adb: Minor reformatting
7754 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7756 * sem_ch12.adb (Save_References): If an identifier has been rewritten
7757 during analysis as an explicit dereference, keep the reference implicit
7758 in the generic, but preserve the entity if global. This prevents
7759 malformed generic trees in the presence of some nested generics.
7761 2010-06-14 Sergey Rybin <rybin@adacore.com>
7763 * gnat_ugn.texi: For the GNAT driver, clarify the effect of calling the
7764 tool with '-files=' option. Also fix some small errors (wrong brackets)
7766 2010-06-14 Vincent Celier <celier@adacore.com>
7768 * gnatbind.adb: Call Scan_ALI with Directly_Scanned set to True for all
7769 the ALI files on the command line.
7771 * ali.adb (Scan_ALI): Set component Directly_Scanned of the unit(s) to
7772 the same value as the parameter of the same name.
7773 * ali.ads (Scan_ALI): New Boolean parameter Directly_Scanned, defaulted
7775 * bindgen.adb (Gen_Versions_Ada): Never emit version symbols for
7776 Stand-Alone Library interfaces. When binding Stand-Alone Libraries,
7777 emit version symbols only for the units of the library.
7778 (Gen_Versions_C): Ditto.
7780 2010-06-14 Gary Dismukes <dismukes@adacore.com>
7782 * sem_ch4.adb: Fix typo.
7784 2010-06-14 Vasiliy Fofanov <fofanov@adacore.com>
7786 * s-oscons-tmplt.c (IOV_MAX): redefine on Tru64 and VMS since the
7787 vector IO doesn't work at default value properly.
7789 2010-06-14 Doug Rupp <rupp@adacore.com>
7791 * s-stoele.adb: Remove unnecessary qualification of To_Address for VMS.
7793 2010-06-14 Vincent Celier <celier@adacore.com>
7795 * gnatcmd.adb (Check_Files): Do not invoke the tool with all the
7796 sources of the project if a switch -files= is used.
7798 2010-06-14 Thomas Quinot <quinot@adacore.com>
7800 * exp_attr.adb: Minor reformatting.
7802 2010-06-14 Gary Dismukes <dismukes@adacore.com>
7804 * gnat_ugn.texi: Minor typo fixes and wording changes.
7806 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7808 * sem_ch4.adb (Analyze_One_Call): If the call has been rewritten from a
7809 prefixed form, do not re-analyze first actual, which may need an
7810 implicit dereference.
7811 * sem_ch6.adb (Analyze_Procedure_Call): If the call is given in
7812 prefixed notation, the analysis will rewrite the node, and possible
7813 errors appear in the rewritten name of the node.
7814 * sem_res.adb: If a call is ambiguous because its first parameter is
7815 an overloaded call, report list of candidates, to clarify ambiguity of
7818 2010-06-14 Doug Rupp <rupp@adacore.com>
7820 * s-auxdec-vms-alpha.adb: New package body implementing legacy
7821 VAX instructions with Asm insertions.
7822 * s-auxdec-vms_64.ads: Inline VAX queue functions
7823 * s-stoele.adb: Resolve some ambiguities in To_Addresss with s-suxdec
7824 that show up only on VMS.
7825 * gcc-interface/Makefile.in: Provide translation for
7826 s-auxdec-vms-alpha.adb.
7828 2010-06-14 Olivier Hainque <hainque@adacore.com>
7830 * initialize.c (VxWorks section): Update comments.
7832 2010-06-14 Robert Dewar <dewar@adacore.com>
7834 * a-convec.adb, sem_prag.adb, checks.adb: Minor reformatting.
7836 2010-06-14 Eric Botcazou <ebotcazou@adacore.com>
7838 * init.c: Code clean up.
7840 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7842 * sem_ch13.adb (Analyze_Attribute_Definition_Clause, case Address): Do
7843 not insert address clause in table for later validation if type of
7844 entity is generic, to prevent possible spurious errors.
7846 * sem_ch8.adb: Code clean up.
7848 2010-06-14 Ben Brosgol <brosgol@adacore.com>
7850 * gnat_ugn.texi: Expanded @ovar macro inline to solve problem with
7851 texi2pdf and texi2html.
7852 Document how to change scheduling properties on HP-UX.
7854 2010-06-14 Thomas Quinot <quinot@adacore.com>
7856 * g-socket.ads: Remove misleading comments.
7858 2010-06-14 Jerome Lambourg <lambourg@adacore.com>
7860 * sem_prag.adb (Check_Duplicated_Export_Name): Remove check for
7861 CLI_Target as this prevents proper detection of exported names
7862 duplicates when the exported language is different to CIL.
7863 (Process_Interface_Name): Add check for CIL convention exports,
7864 replacing the old one from Check_Duplicated_Export_Name.
7866 2010-06-14 Matthew Heaney <heaney@adacore.com>
7868 * a-coinve.adb, a-convec.adb (operator "&"): Check both that new length
7869 and new last satisfy constraints.
7870 (Delete_Last): prevent overflow for subtraction of index values
7871 (To_Vector): prevent overflow for addition of index values
7873 2010-06-14 Ed Schonberg <schonberg@adacore.com>
7875 * sem_ch4.adb (Complete_Object_Operation): After analyzing the
7876 rewritten call, preserve the resulting type to prevent spurious errors,
7877 when the call is implicitly dereferenced in the context of an in-out
7880 * checks.adb (Apply_Discriminant_Check): If the target of the
7881 assignment is a renaming of a heap object, create constrained type for
7884 2010-06-14 Pascal Obry <obry@adacore.com>
7886 * prj-proc.adb: Fix copy of object directory for extending projects.
7888 2010-06-14 Jose Ruiz <ruiz@adacore.com>
7890 * init.c (__gnat_alternate_stack): Define this space for PowerPC linux
7891 (__gnat_install_handler, PowerPC linux): Activate the alternative
7894 2010-06-13 Gerald Pfeifer <gerald@pfeifer.com>
7896 * gnat_rm.texi: Move to GFDL version 1.3.
7897 * gnat-style.texi: Ditto.
7898 * gnat_ugn.texi: Ditto.
7900 2010-06-12 Kai Tietz <kai.tietz@onevision.com>
7903 * gcc-interface/Makefile.in: Add rules for multilib x86/x64
7906 2010-06-11 Alexandre Oliva <aoliva@redhat.com>
7908 * gcc-interface/utils.c (update_pointer_to): Initialize last.
7910 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
7912 * gcc-interface/ada-tree.h: Fix formatting nits.
7914 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7916 * gcc-interface/utils.c (init_gnat_to_gnu): Use typed GC
7918 (init_dummy_type): Likewise.
7919 (gnat_pushlevel): Likewise.
7921 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
7922 (Subprogram_Body_to_gnu): Likewise.
7923 (Compilation_Unit_to_gnu): Likewise.
7924 (start_stmt_group): Likewise.
7925 (extract_encoding): Likewise.
7926 (decode_name): Likewise.
7928 * gcc-interface/misc.c (gnat_printable_name): Likewise.
7930 * gcc-interface/decl.c (annotate_value): Likewise.
7932 * gcc-interface/ada-tree.h (struct lang_type): Add variable_size
7934 (struct lang_decl): Likewise.
7935 (SET_TYPE_LANG_SPECIFIC): Use typed GC allocation.
7936 (SET_DECL_LANG_SPECIFIC): Likewise.
7938 2010-06-04 Eric Botcazou <ebotcazou@adacore.com>
7940 * gnatlink.adb (gnatlink): Remove support for -fsjlj switch.
7941 * gcc-interface/lang-specs.h: Likewise.
7943 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
7946 * gcc-interface/decl.c (MAX_FIXED_MODE_SIZE): Removed.
7948 2010-06-01 Arnaud Charlet <charlet@adacore.com>
7950 * gnat_ugn.texi: Improve doc on -fdump-ada-spec, mention limitations.
7952 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
7954 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Task_Type>: Reuse the
7955 TYPE_DECL of the equivalent type instead of building a new one.
7957 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
7959 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust warning message.
7960 Fix nits in comments.
7961 * gcc-interface/misc.c (gnat_init_gcc_eh): Likewise.
7962 * gcc-interface/trans.c (gigi): Likewise.
7963 (Attribute_to_gnu): Likewise.
7964 (Case_Statement_to_gnu): Likewise.
7965 (gnat_to_gnu): Adjust warning message.
7966 * gcc-interface/utils.c (create_var_decl_1): Fix nits in comments.
7967 (build_vms_descriptor32): Likewise.
7969 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
7971 * gcc-interface/decl.c: Pretend to be a backend file by undefining
7972 IN_GCC_FRONTEND (still need rtl.h here).
7974 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7976 * gcc-interface/trans.c: Do not include rtl.h, insclude libfuncs.h.
7977 (gigi): Adjust call to set_stack_check_libfunc.
7979 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7981 * gcc-interface/utils.c: Do not include rtl.h.
7983 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
7985 * gcc-interface/utils.c: Do not include function.h, pointer-set.h,
7986 and gimple.h. Explain why rtl.h has to be included.
7987 (handle_vector_size_attribute): Call reconstruct_complex_type directly.
7988 * gcc-interface/targtyps.c: Do not include tm_p.h
7989 * gcc-interface/utils2.c: Do not include flags.h.
7990 * gcc-interface/trans.c: Do not include expr.h. Include rtl.h instead,
7991 and explain why it has to be included.
7992 * gcc-interface/misc.c: Do not include expr.h, libfuncs.h, cgraph.h,
7994 Include function.h and explain why. Explain why except.h is included.
7995 (enumerate_modes): Remove unused function.
7996 * gcc-interface/gigi.h (enumerate_modes): Remove prototype.
7997 * gcc-interface/Make-lang.in: Update dependencies.
7999 2010-05-25 Joseph Myers <joseph@codesourcery.com>
8001 * gcc-interface/misc.c (internal_error_function): Add context
8002 parameter. Use it to access show_column flag and instead of using
8003 global_dc. Call warn_if_plugins.
8004 * gcc-interface/Make-lang.in (ada/misc.o): Update dependencies.
8006 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
8008 * gcc-interface/misc.c (LANG_HOOKS_DEEP_UNSHARING): Redefine.
8009 * gcc-interface/trans.c (unshare_save_expr): Delete.
8010 (gigi): Do not unshare trees under SAVE_EXPRs here.
8012 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
8014 * gcc-interface/trans.c (call_to_gnu): Use build_call_vec instead of
8016 * gcc-interface/utils.c (build_function_stub): Likewise.
8018 2010-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
8020 * gcc-interface/misc.c (gnat_handle_option): Remove special logic
8021 for Wuninitialized without -O.
8023 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
8025 * gcc-interface/gigi.h (enum standard_datatypes): Add new value
8026 ADT_exception_data_name_id.
8027 (exception_data_name_id): New define.
8028 * gcc-interface/trans.c (gigi): Initialize it.
8029 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use the standard
8030 exception type for standard exception definitions. Do not make them
8032 <E_Record_Type>: Equate fields of types associated with an exception
8033 definition to those of the standard exception type.
8035 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
8037 * tracebak.c (__gnat_backtrace): Mark top_stack with ATTRIBUTE_UNUSED.
8039 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
8041 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Access_Type>: Tidy up
8042 code, improve comments and fix formatting nits.
8044 2010-05-12 Eric Botcazou <ebotcazou@adacore.com>
8046 * gcc-interface/utils.c (update_pointer_to): Return early if the old
8047 pointer already points to the new type. Chain the old pointer and its
8048 variants at the end of new pointer's chain after updating them.
8050 2010-05-10 Eric Botcazou <ebotcazou@adacore.com>
8052 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables
8053 built for interfaces.
8054 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Use
8055 imported_p instead of Is_Imported when considering constants.
8056 Do not promote alignment of exported objects.
8057 <E_Record_Subtype>: Strip all suffixes for dispatch table entities.
8059 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8061 * exp_disp.adb (Make_Tags): Mark the imported view of dispatch tables.
8062 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Variable>: Make imported
8063 constants really constant.
8064 <E_Record_Subtype>: Strip the suffix for dispatch table entities.
8066 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8068 * gcc-interface/decl.c (make_aligning_type): Declare the type.
8070 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8072 * gcc-interface/decl.c (gnat_to_gnu_entity): Create variables for size
8073 expressions of variant part of record types declared at library level.
8075 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8077 * gcc-interface/gigi.h (create_field_decl): Move PACKED parameter.
8078 * gcc-interface/utils.c (create_field_decl): Move PACKED parameter.
8079 (rest_of_record_type_compilation): Adjust call to create_field_decl.
8080 (make_descriptor_field): Likewise and pass correctly typed constants.
8081 (build_unc_object_type): Likewise.
8082 (unchecked_convert): Likewise.
8083 * gcc-interface/decl.c (elaborate_expression_2): New static function.
8084 (gnat_to_gnu_entity): Use it to make alignment factors explicit.
8085 Adjust call to create_field_decl.
8086 (make_aligning_type): Likewise.
8087 (make_packable_type): Likewise.
8088 (maybe_pad_type): Likewise.
8089 (gnat_to_gnu_field): Likewise.
8090 (components_to_record): Likewise.
8091 (create_field_decl_from): Likewise.
8092 (create_variant_part_from): Remove superfluous test.
8093 * gcc-interface/trans.c (gigi): Adjust call to create_field_decl.
8095 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
8097 * gcc-interface/gigi.h (build_unc_object_type): Add DEBUG_INFO_P param.
8098 (build_unc_object_type_from_ptr): Likewise.
8099 * gcc-interface/utils.c (build_unc_object_type): Add DEBUG_INFO_P param
8100 and pass it to create_type_decl. Declare the type. Simplify.
8101 (build_unc_object_type_from_ptr): Add DEBUG_INFO_P parameter and pass
8102 it to build_unc_object_type.
8103 * gcc-interface/decl.c (gnat_to_gnu_entity): Adjust to above change.
8104 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
8105 (gnat_to_gnu): Likewise.
8106 * gcc-interface/utils2.c (build_allocator): Likewise.
8108 2010-05-07 Eric Botcazou <ebotcazou@adacore.com>
8111 * gcc-interface/misc.c (gnat_handle_option): Fix long line.
8113 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8115 * gcc-interface/Makefile.in: Removed mips-sgi-irix5* support.
8117 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
8120 * gcc-interface/misc.c (gnat_handle_option): Add argument kind.
8122 2010-05-02 Giuseppe Scrivano <gscrivano@gnu.org>
8124 * gnathtml.pl: Use 755 as mask for new directories.
8126 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
8128 * gcc-interface/trans.c (gnat_gimplify_expr) <ADDR_EXPR>: Uniquize
8129 constant constructors before taking their address.
8131 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
8133 * exp_dbug.ads: Fix outdated description. Mention link between XVS
8135 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Subtype>: Set
8136 XVZ variable as unit size of XVS type.
8137 (maybe_pad_type): Likewise.
8139 2010-04-25 Eric Botcazou <ebotcazou@adacore.com>
8141 * gcc-interface/trans.c (gnat_to_gnu) <N_Assignment_Statement>: Do not
8142 use memmove if the array type is bit-packed.
8144 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
8146 * gcc-interface/misc.c (gnat_init): Remove second argument in call to
8147 build_common_tree_nodes.
8149 2010-04-18 Ozkan Sezer <sezeroz@gmail.com>
8151 * gsocket.h: Make sure that winsock2.h is included before windows.h.
8153 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8155 * gcc-interface/utils2.c (build_unary_op) <ATTR_ADDR_EXPR>: Do not
8158 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8160 * uintp.h (UI_Lt): Declare.
8161 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Type>: Do the size
8162 computation in sizetype.
8163 <E_Array_Subtype>: Use unified handling for all index types. Do not
8164 generate MAX_EXPR-based expressions, only COND_EXPR-based ones. Add
8166 (annotate_value): Change test for negative values.
8167 (validate_size): Apply test for negative values on GNAT nodes.
8168 (set_rm_size): Likewise.
8169 * gcc-interface/misc.c (gnat_init): Set unsigned types for sizetypes.
8170 * gcc-interface/utils.c (rest_of_record_type_compilation): Change test
8171 for negative values.
8172 (max_size) <MINUS_EXPR>: Do not reassociate a COND_EXPR on the LHS.
8173 (builtin_type_for_size): Adjust definition of signed_size_type_node.
8174 * gcc-interface/utils2.c (compare_arrays): Optimize comparison of
8175 lengths against zero.
8177 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8179 * back-end.adb (Call_Back_End): Pass Standard_Character to gigi.
8180 * gcc-interface/gigi.h (gigi): Add standard_character parameter.
8181 (CHAR_TYPE_SIZE, SHORT_TYPE_SIZE, INT_TYPE_SIZE, LONG_TYPE_SIZE,
8182 LONG_LONG_TYPE_SIZE, FLOAT_TYPE_SIZE, DOUBLE_TYPE_SIZE,
8183 LONG_DOUBLE_TYPE_SIZE, SIZE_TYPE): Delete.
8184 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Call
8186 * gcc-interface/misc.c (gnat_init): Set signedness of char as per
8187 flag_signed_char. Tag sizetype with "size_type" moniker.
8188 * gcc-interface/trans.c (gigi): Add standard_character parameter.
8189 Remove useless built-in types. Equate unsigned_char_type_node to
8190 Standard.Character. Use it instead of char_type_node throughout.
8191 (Attribute_to_gnu): Likewise.
8192 (gnat_to_gnu): Likewise.
8193 * gcc-interface/utils2.c (build_call_raise): Likewise.
8195 2010-04-17 Eric Botcazou <ebotcazou@adacore.com>
8197 * gcc-interface/gigi.h (enum standard_datatypes): Add new values
8198 ADT_sbitsize_one_node and ADT_sbitsize_unit_node.
8199 (sbitsize_one_node): New macro.
8200 (sbitsize_unit_node): Likewise.
8201 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Array_Subtype>: Fix
8202 latent bug in the computation of subrange_p. Fold wider_p predicate.
8203 (cannot_be_superflat_p): Use an explicitly signed 64-bit type to do
8204 the final comparison.
8205 (make_aligning_type): Build real negation and use sizetype throughout
8206 the offset computation.
8207 (maybe_pad_type): Do not issue the warning when the new size expression
8209 (annotate_value) <INTEGER_CST>: Simplify code handling negative values.
8210 * gcc-interface/misc.c (gnat_init): Initialize sbitsize_one_node and
8212 * gcc-interface/trans.c (Attribute_to_gnu) <Attr_Pool_Address>: Fold
8214 (gnat_to_gnu) <N_Free_Statement>: Likewise.
8215 * gcc-interface/utils.c (convert): Use sbitsize_unit_node.
8216 * gcc-interface/utils2.c (compare_arrays): Compute real lengths and use
8217 constants in sizetype. Remove dead code and tweak comments. Generate
8218 equality instead of inequality comparisons for zero length tests.
8220 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8222 * gcc-interface/gigi.h (gnat_init_decl_processing): Delete.
8223 * gcc-interface/decl.c (gnat_to_gnu_entity): Constify a few variables.
8224 <object>: Do not create the fake PARM_DECL if no debug info is needed.
8225 Do not create the corresponding VAR_DECL of a CONST_DECL for debugging
8226 purposes if no debug info is needed.
8227 Fix formatting. Reorder and add comments.
8228 * gcc-interface/trans.c (gnat_to_gnu) <N_Attribute_Reference>: Constify
8229 variable and remove obsolete comment.
8230 * gcc-interface/utils.c (convert_vms_descriptor64): Tweak comment.
8231 (convert_vms_descriptor32): Likewise.
8232 (convert): Remove dead code.
8233 <UNCONSTRAINED_ARRAY_REF>: Pass the field instead of its name to build
8234 the reference to the P_ARRAY pointer.
8235 <POINTER_TYPE>: Likewise.
8236 (maybe_unconstrained_array) <UNCONSTRAINED_ARRAY_TYPE>: Likewise.
8237 (gnat_init_decl_processing): Delete, move contents to...
8238 * gcc-interface/misc.c (gnat_init): ...here.
8240 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8242 * gcc-interface/trans.c (unchecked_conversion_nop): Handle function
8243 calls. Return true for conversion from a record subtype to its type.
8245 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8247 * gcc-interface/decl.c (gnat_to_gnu_entity): Use boolean_type_node in
8248 lieu of integer_type_node for boolean operations.
8249 (choices_to_gnu): Likewise.
8250 * gcc-interface/trans.c (Attribute_to_gnu): Likewise.
8251 (Loop_Statement_to_gnu): Likewise.
8252 (establish_gnat_vms_condition_handler): Likewise.
8253 (Exception_Handler_to_gnu_sjlj): Likewise.
8254 (gnat_to_gnu): Likewise.
8255 (build_unary_op_trapv): Likewise.
8256 (build_binary_op_trapv): Likewise.
8257 (emit_range_check): Likewise.
8258 (emit_index_check): Likewise.
8259 (convert_with_check): Likewise.
8260 * gcc-interface/utils.c (convert_vms_descriptor64): Likewise.
8261 (convert_vms_descriptor32): Likewise.
8262 (convert_vms_descriptor): Likewise.
8263 * gcc-interface/utils2.c (nonbinary_modular_operation): Likewise.
8264 (compare_arrays): Use boolean instead of integer constants.
8265 (build_binary_op) <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR,
8266 TRUTH_OR_EXPR, TRUTH_XOR_EXPR>: New case. Check that the result type
8268 <GE_EXPR, LE_EXPR, GT_EXPR, LT_EXPR>: Remove obsolete assertion.
8269 <EQ_EXPR, NE_EXPR>: Check that the result type is a boolean type.
8270 <PREINC/PREDECREMENT_EXPR, POSTINC/POSTDECREMENT_EXPR>: Delete.
8271 <TRUTH_NOT_EXPR>: Check that the result type is a boolean type.
8272 (build_unary_op): Use boolean_type_node in lieu of integer_type_node
8273 for boolean operations.
8274 (fill_vms_descriptor): Likewise. Fix formatting nits.
8276 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8278 * gcc-interface/ada-tree.def (LOOP_STMT): Change to 4-operand nodes.
8279 * gcc-interface/ada-tree.h (LOOP_STMT_TOP_COND, LOOP_STMT_BOT_COND):
8281 (LOOP_STMT_COND): ...this.
8282 (LOOP_STMT_BOTTOM_COND_P): New flag.
8283 (LOOP_STMT_TOP_UPDATE_P): Likewise.
8284 * gcc-interface/trans.c (can_equal_min_or_max_val_p): New function.
8285 (can_equal_min_val_p): New static inline function.
8286 (can_equal_max_val_p): Likewise.
8287 (Loop_Statement_to_gnu): Use build4 in lieu of build5 and adjust to
8288 new LOOP_STMT semantics. Use two different strategies depending on
8289 whether optimization is enabled to translate the loop.
8290 (gnat_gimplify_stmt) <LOOP_STMT>: Adjust to new LOOP_STMT semantics.
8292 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8294 * uintp.adb (UI_From_Dint): Remove useless code.
8295 (UI_From_Int): Likewise.
8296 * uintp.h: Reorder declarations.
8297 (UI_From_gnu): Declare.
8298 (UI_Base): Likewise.
8299 (Vector_Template): Likewise.
8300 (Vector_To_Uint): Likewise.
8303 * gcc-interface/gigi.h: Tweak comments.
8304 * gcc-interface/cuintp.c (UI_From_gnu): New global function.
8305 * gcc-interface/decl.c (maybe_pad_type): Do not warn if either size
8307 (annotate_value) <INTEGER_CST>: Call UI_From_gnu.
8308 * gcc-interface/trans.c (post_error_ne_num): Call post_error_ne.
8309 (post_error_ne_tree): Call UI_From_gnu and post_error_ne.
8310 * gcc-interface/utils.c (max_size) <tcc_binary>: Do not special-case
8313 2010-04-16 Eric Botcazou <ebotcazou@adacore.com>
8315 * gcc-interface/decl.c (make_type_from_size) <INTEGER_TYPE>: Just copy
8317 * gcc-interface/trans.c (smaller_packable_type_p): Rename into...
8318 (smaller_form_type_p): ...this. Change parameter and variable names.
8319 (call_to_gnu): Use the nominal type of the parameter to create the
8320 temporary if it's a smaller form of the actual type.
8321 (addressable_p): Return false if the actual type is integral and its
8322 size is greater than that of the expected type.
8324 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8326 * gcc-interface/cuintp.c (UI_To_gnu): Fix long line.
8327 * gcc-interface/gigi.h (MARK_VISITED): Skip objects of constant class.
8328 (process_attributes): Delete.
8329 (post_error_ne_num): Change parameter name.
8330 * gcc-interface/decl.c (gnat_to_gnu_entity): Do not force debug info
8331 with -g3. Remove a couple of obsolete lines. Minor tweaks.
8332 If type annotating mode, operate on trees to compute the adjustment to
8333 the sizes of tagged types. Fix long line.
8334 (cannot_be_superflat_p): Tweak head comment.
8335 (annotate_value): Fold local constant.
8336 (set_rm_size): Fix long line.
8337 * gcc-interface/trans.c (Identifier_to_gnu): Rework comments.
8338 (Attribute_to_gnu): Fix long line.
8339 <Attr_Size>: Remove useless assertion.
8340 Reorder statements. Use size_binop routine.
8341 (Loop_Statement_to_gnu): Use build5 in lieu of build_nt.
8342 Create local variables for the label and the test. Tweak comments.
8343 (Subprogram_Body_to_gnu): Reset cfun to NULL.
8344 (Compilation_Unit_to_gnu): Use the Sloc of the Unit node.
8345 (process_inlined_subprograms): Integrate into...
8346 (Compilation_Unit_to_gnu): ...this.
8347 (gnat_to_gnu): Fix long line.
8348 (post_error_ne_num): Change parameter name.
8349 * gcc-interface/utils.c (process_attributes): Static-ify.
8350 <ATTR_MACHINE_ATTRIBUTE>: Set input_location before proceeding.
8351 (create_type_decl): Add comment.
8352 (create_var_decl_1): Process the attributes after adding the VAR_DECL
8353 to the current binding level.
8354 (create_subprog_decl): Likewise for the FUNCTION_DECL.
8355 (end_subprog_body): Do not reset cfun to NULL.
8356 (build_vms_descriptor32): Fix long line.
8357 (build_vms_descriptor): Likewise.
8358 (handle_nonnull_attribute): Likewise.
8359 (convert_vms_descriptor64): Likewise.
8360 * gcc-interface/utils2.c (fill_vms_descriptor): Fix long line.
8361 (gnat_protect_expr): Fix thinko.
8363 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8365 * gcc-interface/trans.c (gigi): Set DECL_IGNORED_P on EH functions.
8366 (gnat_to_gnu) <N_Op_Eq>: Restore the value of input_location
8367 before translating the top-level node.
8368 (lvalue_required_p) <N_Function_Call>: Return 1 if !constant.
8369 <N_Object_Declaration>: Likewise.
8370 <N_Assignment_Statement>: Likewise.
8371 <N_Unchecked_Type_Conversion>: Likewise.
8372 (call_to_gnu): Remove kludge.
8373 (gnat_to_gnu) <N_Return_Statement>: When not optimizing, force labels
8374 associated with user returns to be preserved.
8375 (gnat_to_gnu): Add special code to deal with boolean rvalues.
8376 * gcc-interface/utils2.c (compare_arrays): Set input_location on all
8378 (build_unary_op) <ADDR_EXPR>: Call build_fold_addr_expr.
8379 <INDIRECT_REF>: Call build_fold_indirect_ref.
8381 2010-04-15 Joel Sherrill <joel.sherrill@oarcorp.com>
8383 * g-socket.adb: A target can have multiple missing errno's. This
8384 will result in multiple errno's being defined as -1. Because of this
8385 we can not use a case but must use a series of if's to avoid
8386 a duplicate case error in GNAT.Sockets.Resolve_Error.
8388 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8390 * gcc-interface/trans.c (call_to_gnu): Open a nesting level if this is
8391 a statement. Otherwise, if at top-level, push the processing of the
8392 elaboration routine. In the misaligned case, issue the error messages
8393 again on entry and create the temporary explicitly. Do not issue them
8395 For a function call, emit the range check if necessary.
8396 In the copy-in copy-out case, create the temporary for the return
8398 Do not unnecessarily convert by-ref parameters to the formal's type.
8399 Remove obsolete guards in conditions.
8400 (gnat_to_gnu) <N_Assignment_Statement>: For a function call, pass the
8401 target to call_to_gnu in all cases.
8402 (gnat_gimplify_expr) <ADDR_EXPR>: Remove handling of SAVE_EXPR.
8403 (addressable_p) <CONSTRUCTOR>: Return false if not static.
8404 <COMPOUND_EXPR>: New case.
8405 * gcc-interface/utils2.c (build_unary_op) <ADDR_EXPR>: Fold a compound
8406 expression if it has unconstrained array type.
8407 (gnat_mark_addressable) <COMPOUND_EXPR>: New case.
8408 (gnat_stabilize_reference) <COMPOUND_EXPR>: Stabilize operands on an
8411 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8413 * gcc-interface/trans.c (gigi): Do not start statement group.
8414 (Compilation_Unit_to_gnu): Set current_function_decl to NULL.
8415 Start statement group and push binding level here...
8416 (gnat_to_gnu) <N_Compilation_Unit>: ...and not here.
8417 Do not push fake contexts at top level. Remove redundant code.
8418 (call_to_gnu): Rename a local variable and constify another.
8419 * gcc-interface/utils.c (gnat_pushlevel): Fix formatting nits.
8420 (set_current_block_context): Set it as the group's block.
8421 (gnat_init_decl_processing): Delete unrelated init code.
8422 (end_subprog_body): Use NULL_TREE.
8424 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8426 * gcc-interface/trans.c (call_to_gnu): Do not unnecessarily force
8427 side-effects of actual parameters before the call.
8429 2010-04-15 Eric Botcazou <ebotcazou@adacore.com>
8431 * gcc-interface/decl.c (validate_size): Reorder, remove obsolete test
8433 (set_rm_size): Reorder and remove obsolete test.
8435 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
8437 * gcc-interface/gigi.h: Reorder declarations and tweak comments.
8438 (gigi): Adjust ATTRIBUTE_UNUSED markers.
8439 * gcc-interface/gadaint.h: New file.
8440 * gcc-interface/trans.c: Include it in lieu of adaint.h. Reorder.
8441 (__gnat_to_canonical_file_spec): Remove declaration.
8442 (number_names): Delete.
8443 (number_files): Likewise.
8445 * gcc-interface/Make-lang.in (ada/trans.o): Adjust dependencies to
8448 2010-04-14 Eric Botcazou <ebotcazou@adacore.com>
8450 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Class_Wide_Type>: Fix
8452 * gcc-interface/trans.c (process_freeze_entity): Use local copy of
8453 Ekind. Return early for class-wide types. Do not compute initializer
8454 unless necessary. Reuse the tree for an associated class-wide type
8455 only if processing its root type.
8457 2010-04-13 Joel Sherrill <joel.sherrill@oarcorp.com>
8459 * gsocket.h: Run-time can no longer be built without network
8460 OS headers available. Changing RTEMS GNAT build procedure to
8461 reflect this and letting run-time build use network .h files.
8463 2010-04-13 Duncan Sands <baldrick@free.fr>
8465 * gcc-interface/misc.c (gnat_eh_type_covers): Remove.
8466 * gcc-interface/trans.c (Exception_Handler_to_gnu_zcx): Update comment.
8468 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
8470 * gcc-interface/gigi.h (standard_datatypes): Add ADT_parent_name_id.
8471 (parent_name_id): New macro.
8472 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Record_Type>: Use it.
8473 * gcc-interface/trans.c (gigi): Initialize it.
8474 (lvalue_required_p) <N_Type_Conversion>: New case.
8475 <N_Qualified_Expression>: Likewise.
8476 <N_Allocator>: Likewise.
8477 * gcc-interface/utils.c (convert): Try to properly upcast tagged types.
8479 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
8481 * gcc-interface/ada-tree.h (TYPE_BY_REFERENCE_P): Delete.
8482 (DECL_CONST_ADDRESS_P): New macro.
8483 (SET_DECL_ORIGINAL_FIELD_TO_FIELD): Likewise.
8484 (SAME_FIELD_P): Likewise.
8485 * gcc-interface/decl.c (constructor_address_p): New static function.
8486 (gnat_to_gnu_entity) <object>: Set DECL_CONST_ADDRESS_P according to
8487 the return value of above function.
8488 (gnat_to_gnu_entity) <E_Record_Type>: Force BLKmode for all types
8489 passed by reference.
8490 <E_Record_Subtype>: Likewise.
8491 Set TREE_ADDRESSABLE on the type if it passed by reference.
8492 (make_packable_type): Use SET_DECL_ORIGINAL_FIELD_TO_FIELD.
8493 (create_field_decl_from): Likewise.
8494 (substitute_in_type): Likewise.
8495 (purpose_member_field): Use SAME_FIELD_P.
8496 * gcc-interface/misc.c (must_pass_by_ref): Test TREE_ADDRESSABLE.
8497 * gcc-interface/trans.c (lvalue_required_p): Add ADDRESS_OF_CONSTANT
8498 parameter and adjust recursive calls.
8499 <N_Explicit_Dereference>: New case.
8500 <N_Object_Declaration>: Return 1 if the object is of a class-wide type.
8501 Adjust calls to lvalue_required_p. Do not return the initializer of a
8502 DECL_CONST_ADDRESS_P constant if an lvalue is required for it.
8503 (call_to_gnu): Delay issuing error message for a misaligned actual and
8504 avoid the associated back-end assertion. Test TREE_ADDRESSABLE.
8505 (gnat_gimplify_expr) <ADDR_EXPR>: Handle non-static constructors.
8506 * gcc-interface/utils.c (make_dummy_type): Set TREE_ADDRESSABLE if the
8507 type is passed by reference.
8508 (convert) <CONSTRUCTOR>: Convert in-place in more cases.
8509 * gcc-interface/utils2.c (build_cond_expr): Drop TYPE_BY_REFERENCE_P.
8510 (build_simple_component_ref): Use SAME_FIELD_P.
8512 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
8514 * gcc-interface/trans.c (Identifier_to_gnu): Use boolean variable.
8515 (call_to_gnu): Test gigi's flag TYPE_BY_REFERENCE_P instead of calling
8516 front-end's predicate Is_By_Reference_Type. Use consistent order and
8517 remove ??? comment. Use original conversion in all cases, if any.
8518 * gcc-interface/utils.c (make_dummy_type): Minor tweak.
8519 (convert): Use local copy in more cases.
8520 <INDIRECT_REF>: Remove deactivated code.
8521 (unchecked_convert): Use a couple of local copies.
8523 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
8525 * gcc-interface/trans.c (lvalue_required_for_attribute_p): New static
8527 (lvalue_required_p) <N_Attribute_Reference>: Call it.
8528 (gnat_to_gnu) <N_Selected_Component>: Prevent build_component_ref from
8529 folding the result only if lvalue_required_for_attribute_p is true.
8530 * gcc-interface/utils.c (maybe_unconstrained_array): Pass correctly
8531 typed constant to build_component_ref.
8532 (unchecked_convert): Likewise.
8533 * gcc-interface/utils2.c (maybe_wrap_malloc): Likewise.
8534 (build_allocator): Likewise.
8536 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
8538 * gcc-interface/utils2.c (build_cond_expr): Take the address and
8539 dereference if the result type is passed by reference.
8541 2010-04-11 Eric Botcazou <ebotcazou@adacore.com>
8543 * gcc-interface/trans.c (Case_Statement_to_gnu): Bool-ify variable.
8544 (gnat_to_gnu) <N_Null_Statement>: When not optimizing, generate a
8545 goto to the next statement.
8547 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
8549 * gcc-interface/gigi.h (maybe_variable): Delete.
8550 (protect_multiple_eval): Likewise.
8551 (maybe_stabilize_reference): Likewise.
8552 (gnat_save_expr): Declare.
8553 (gnat_protect_expr): Likewise.
8554 (gnat_stabilize_reference): Likewise.
8555 * gcc-interface/decl.c (gnat_to_gnu_entity) <object>: Use
8556 gnat_stabilize_reference.
8557 (maybe_variable): Delete.
8558 (elaborate_expression_1): Use gnat_save_expr.
8559 * gcc-interface/trans.c (Attribute_to_gnu): Use gnat_protect_expr.
8560 (call_to_gnu): Pass NULL to gnat_stabilize_reference.
8561 (gnat_to_gnu) <N_Object_Declaration>: Use gnat_save_expr.
8562 <N_Slice>: Use gnat_protect_exp.
8563 <N_Selected_Component>: Pass NULL to gnat_stabilize_reference.
8564 <N_In>: Use gnat_protect_expr.
8565 Pass NULL to gnat_stabilize_reference.
8566 (build_unary_op_trapv): Use gnat_protect_expr.
8567 (build_binary_op_trapv): Likewise.
8568 (emit_range_check): Likewise.
8569 (emit_index_check): Likewise.
8570 (convert_with_check): Likewise.
8571 (protect_multiple_eval): Move to utils2.c file.
8572 (maybe_stabilize_reference): Merge into...
8573 (gnat_stabilize_reference): ...this. Move to utils2.c file.
8574 (gnat_stabilize_reference_1): Likewise.
8575 * gcc-interface/utils.c (convert_to_fat_pointer): Use gnat_protect_expr
8576 instead of protect_multiple_eval.
8577 * gcc-interface/utils2.c (compare_arrays): Likewise.
8578 (nonbinary_modular_operation): Likewise.
8579 (maybe_wrap_malloc): Likewise.
8580 (build_allocator): Likewise.
8581 (gnat_save_expr): New function.
8582 (gnat_protect_expr): Rename from protect_multiple_eval. Early return
8583 in common cases. Propagate TREE_READONLY onto dereferences.
8584 (gnat_stabilize_reference_1): Move from trans.c file.
8585 (gnat_stabilize_reference): Likewise.
8587 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
8589 * gcc-interface/gigi.h (gnat_mark_addressable): Rename parameter.
8590 * gcc-interface/decl.c (maybe_variable): Do not set TREE_STATIC on _REF
8591 node. Use the type of the operand to set TREE_READONLY.
8592 * gcc-interface/trans.c (Identifier_to_gnu): Do not set TREE_STATIC on
8593 _REF node. Do not overwrite TREE_READONLY.
8594 (call_to_gnu): Rename local variable and fix various nits. In the
8595 copy-in/copy-out case, build the SAVE_EXPR manually.
8596 (convert_with_check): Call protect_multiple_eval in lieu of save_expr
8597 and fold the computations.
8598 (protect_multiple_eval): Always save entire fat pointers.
8599 (maybe_stabilize_reference): Minor tweaks.
8600 (gnat_stabilize_reference_1): Likewise. Do not deal with tcc_constant,
8601 tcc_type and tcc_statement.
8602 * gcc-interface/utils.c (convert_to_fat_pointer): Call
8603 protect_multiple_eval in lieu of save_expr.
8604 (convert): Minor tweaks.
8605 (maybe_unconstrained_array): Do not set TREE_STATIC on _REF node.
8606 (builtin_type_for_size): Call gnat_type_for_size directly.
8607 * gcc-interface/utils2.c (contains_save_expr_p): Delete.
8608 (contains_null_expr): Likewise
8609 (gnat_build_constructor): Do not call it.
8610 (compare_arrays): Deal with all side-effects, use protect_multiple_eval
8611 instead of gnat_stabilize_reference to protect the operands.
8612 (nonbinary_modular_operation): Call protect_multiple_eval in lieu of
8614 (maybe_wrap_malloc): Likewise.
8615 (build_allocator): Likewise.
8616 (build_unary_op) <INDIRECT_REF>: Do not set TREE_STATIC on _REF node.
8617 (gnat_mark_addressable): Rename parameter.
8619 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
8621 * gcc-interface/ada-tree.h (TYPE_RETURNS_UNCONSTRAINED_P): Rename into.
8622 (TYPE_RETURN_UNCONSTRAINED_P): ...this.
8623 (TYPE_RETURNS_BY_REF_P): Rename into.
8624 (TYPE_RETURN_BY_DIRECT_REF_P): ...this.
8625 (TYPE_RETURNS_BY_TARGET_PTR_P): Delete.
8626 * gcc-interface/gigi.h (create_subprog_type): Adjust parameter names.
8627 (build_return_expr): Likewise.
8628 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Subprogram_Type>:
8629 Rename local variables. If the return Mechanism is By_Reference, pass
8630 return_by_invisible_ref_p to create_subprog_type instead of toggling
8631 TREE_ADDRESSABLE. Test return_by_invisible_ref_p in order to annotate
8632 the mechanism. Use regular return for contrained types with non-static
8633 size and return by invisible reference for unconstrained return types
8634 with default discriminants. Update comment.
8635 * gcc-interface/trans.c (Subprogram_Body_to_gnu): If the function
8636 returns by invisible reference, turn the RESULT_DECL into a pointer.
8637 Do not handle DECL_BY_REF_P in the CICO case here.
8638 (call_to_gnu): Remove code handling return by target pointer. For a
8639 function call, if the return type has non-constant size, generate the
8640 assignment with an INIT_EXPR.
8641 (gnat_to_gnu) <N_Return_Statement>: Remove dead code in the CICO case.
8642 If the function returns by invisible reference, build the copy return
8644 (add_decl_expr): Initialize the variable with an INIT_EXPR.
8645 * gcc-interface/utils.c (create_subprog_type): Adjust parameter names.
8646 Adjust for renaming of macros. Copy the node only when necessary.
8647 (create_subprog_decl): Do not toggle TREE_ADDRESSABLE on the return
8648 type, only change DECL_BY_REFERENCE on the RETURN_DECL.
8649 (convert_from_reference): Delete.
8650 (is_byref_result): Likewise.
8651 (gnat_genericize_r): Likewise.
8652 (gnat_genericize): Likewise.
8653 (end_subprog_body): Do not call gnat_genericize.
8654 * gcc-interface/utils2.c (build_binary_op) <INIT_EXPR>: New case.
8655 (build_return_expr): Adjust parameter names, logic and comment.
8657 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
8659 * exp_pakd.adb (Create_Packed_Array_Type): Always use a modular type
8660 if the size is small enough. Propagate the alignment if there is an
8661 alignment clause on the original array type.
8662 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Modular_Integer_Subtype>
8663 Deal with under-aligned packed array types. Copy the size onto the
8664 justified modular type and don't lay it out again. Likewise for the
8665 padding type built for other under-aligned subtypes.
8666 * gcc-interface/utils.c (finish_record_type): Do not set a default mode
8669 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
8671 * gcc-interface/decl.c (gnat_to_gnu_entity) <E_Procedure>: Set default
8672 alignment on the RETURN type built for the Copy-In Copy-Out mechanism.
8674 2010-04-07 Eric Botcazou <ebotcazou@adacore.com>
8676 * gcc-interface/trans.c (call_to_gnu): In the return-by-target-ptr case
8677 do not set the result type if there is a specified target and do not
8678 convert the result in any cases.
8679 (protect_multiple_eval): Make direct SAVE_EXPR for CALL_EXPR.
8680 (maybe_stabilize_reference) <COMPOUND_EXPR>: Merge with CALL_EXPR.
8682 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
8684 * gcc-interface/Makefile.in (SPARC/Solaris): Use sparcv8plus.
8686 2010-02-27 Eric Botcazou <ebotcazou@adacore.com>
8689 * gcc-interface/utils2.c (build_binary_op) <EQ_EXPR>: Assert that fat
8690 pointer base types are variant of each other. Apply special treatment
8691 for null to fat pointer types in all cases.
8693 2010-01-28 Pascal Obry <obry@adacore.com>
8695 * s-win32.ads: Add some missing constants.
8697 2010-01-28 Vincent Celier <celier@adacore.com>
8699 * prj-attr-pm.adb (Add_Attribute): Do nothing if To_Package is
8702 2010-01-28 Robert Dewar <dewar@adacore.com>
8704 * gnat_rm.texi: Minor correction
8706 2010-01-27 Pascal Obry <obry@adacore.com>
8708 * g-awk.adb: ensure that an AWK session is reusable.
8710 2010-01-27 Vasiliy Fofanov <fofanov@adacore.com>
8712 * g-regist.adb (For_Every_Key): Fix previous change.
8715 2010-01-27 Thomas Quinot <quinot@adacore.com>
8717 * lib-writ.ads: Current version of spec for new N (note) ALI lines
8719 2010-01-27 Yannick Moy <moy@adacore.com>
8721 * a-cdlili.adb (Insert): Correct exception message when cursor
8722 designates wrong list.
8724 2010-01-27 Vincent Celier <celier@adacore.com>
8726 * gnatcmd.adb: When there is only one main specified, the package
8727 support Switches (<main>) and attribute Switches is specified for the
8728 main, use these switches, instead of Default_Switches ("Ada").
8730 2010-01-27 Robert Dewar <dewar@adacore.com>
8732 * sem_prag.adb, par-prag.adb, snames.ads-tmpl: pragma Dimension initial
8734 * exp_disp.adb: Minor reformatting
8736 2010-01-27 Tristan Gingold <gingold@adacore.com>
8738 * seh_init.c: Use __ImageBase instead of _ImageBase.
8740 2010-01-27 Javier Miranda <miranda@adacore.com>
8742 * exp_disp.ads, exp_disp.adb (Expand_Interface_Thunk): Modify the
8743 profile of interface thunks. The type of the controlling formal is now
8744 the covered interface type (instead of the target tagged type).
8746 2010-01-27 Sergey Rybin <rybin@adacore.com>
8748 * gnat_rm.texi, gnat_ugn.texi: Update gnatcheck doc.
8750 2010-01-27 Robert Dewar <dewar@adacore.com>
8752 * sinput.ads, sinput.adb (Sloc_Range): Applies to all nodes, formal
8753 changed from Expr to N.
8755 2010-01-26 Thomas Quinot <quinot@adacore.com>
8757 * gnat_ugn.texi: Adjust documentation of -gnatz switches.
8758 * usage.adb: Replace line for -gnatz with two lines for -gnatzc and
8761 2010-01-26 Vincent Celier <celier@adacore.com>
8763 * prj-attr.adb: Add new attribute Library_Install_Name_Option
8764 Replace attribute Run_Path_Origin_Supported with Run_Path_Origin
8765 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process
8766 attributes Run_Path_Option and Library_Install_Name_Option.
8767 * prj.ads (Project_Configuration): Replace component
8768 Run_Path_Origin_Supported with component Run_Path_Origin. Add new
8769 component Library_Install_Name_Option.
8770 * snames.ads-tmpl: Add new standard name Library_Install_Name_Option
8771 Replace Run_Path_Origin_Supported with Run_Path_Origin
8773 2010-01-26 Ed Schonberg <schonberg@adacore.com>
8775 * sem_ch8.adb (Use_One_Package): Within an instance, an actual package
8776 is not hidden by a homograph declared in another actual package.
8778 2010-01-26 Robert Dewar <dewar@adacore.com>
8780 * par_sco.adb (Traverse_Declarations_Or_Statements): Only generate
8781 decisions for pragmas Assert, Check, Precondition, Postcondition if
8783 * scos.ads: Update comments.
8784 * get_scos.adb, put_scos.adb: Minor fix to code reading statement SCOs.
8785 Also remove obsolete code for CT (exit point) SCOs.
8787 2010-01-26 Thomas Quinot <quinot@adacore.com>
8789 * switch-c.adb: Fix handling of -gnatz*
8791 2010-01-26 Robert Dewar <dewar@adacore.com>
8793 * par_sco.adb (Traverse_Declarations_Or_Statements): Separate F/W
8794 qualifiers for FOR/WHILE loops
8795 * scos.ads: Use separate type letters F/W for for/while loops
8797 2010-01-26 Robert Dewar <dewar@adacore.com>
8799 * get_scos.adb (Get_SCOs): Implement new form of CS entries (multiple
8800 entries per line, one for each statement in the sequence).
8801 * par_sco.adb (Traverse_Declarations_Or_Statements): Increase array
8802 size from 100 to 10_000 for SC_Array to avoid any real possibility of
8803 overflow. Output decisions in for loops.
8804 Exclude labels from CS lines.
8805 * scos.ads: Clarify that label is not included in the entry point
8807 2010-01-26 Robert Dewar <dewar@adacore.com>
8809 * par_sco.adb (Traverse_Declarations_Or_Statments): Implement new
8810 format of statement sequence SCO entries (one location/statement).
8811 * put_scos.adb (Put_SCOs): Implement new format of CS lines
8812 * scos.ads: Update comments.
8813 * sem_eval.adb: Minor reformatting.
8815 2010-01-26 Robert Dewar <dewar@adacore.com>
8817 * par_sco.ads, par_sco.adb (Set_Statement_Entry): New handling of exits
8818 (Extend_Statement_Sequence): New procedures
8819 (Traverse_Declarations_Or_Statements): New handling for exits.
8821 2010-01-26 Robert Dewar <dewar@adacore.com>
8823 * par_sco.adb (Traverse_Declarations_Or_Statements): Add processing for
8826 2010-01-26 Robert Dewar <dewar@adacore.com>
8828 * par_sco.adb (Is_Logical_Operator): Exclude AND/OR/XOR
8829 * scos.ads: Clarify handling of logical operators
8831 2010-01-26 Arnaud Charlet <charlet@adacore.com>
8833 * s-tpoben.adb: Update comments.
8835 2010-01-26 Robert Dewar <dewar@adacore.com>
8837 * freeze.adb (Set_Small_Size): Don't set size if alignment clause
8840 2010-01-26 Robert Dewar <dewar@adacore.com>
8842 * scos.ads: Clean up documentation, remove obsolete XOR references
8843 2010-01-26 Vincent Celier <celier@adacore.com>
8845 * gnat_ugn.texi: Complete documentation on the restrictions for
8846 combined options in -gnatxxx switches.
8849 2010-01-26 Arnaud Charlet <charlet@adacore.com>
8851 * s-tpoben.adb (Initialize_Protection_Entries): If a PO is created from
8852 a controlled operation, abort is already deferred at this point, so we
8853 need to use Defer_Abort_Nestable.
8855 2010-01-26 Vincent Celier <celier@adacore.com>
8857 * prj-conf.adb (Get_Config_Switches): Check for a default language for
8858 a project extending a project with no languages.
8860 2010-01-26 Vincent Celier <celier@adacore.com>
8862 * switch-c.adb (Scan_Front_End_Switches): Take into account options
8863 that follow -gnatef.
8864 Allow -gnateG to be followed by other options.
8866 2010-01-26 Robert Dewar <dewar@adacore.com>
8868 * s-commun.ads, s-osprim-mingw.adb, s-stchop-vxworks.adb, sem_aggr.adb,
8869 s-vxwext.adb, sem_ch10.adb, sem_eval.adb, sem_prag.adb: Minor
8872 2010-01-26 Vasiliy Fofanov <fofanov@adacore.com>
8874 * g-regist.adb, g-regist.ads (For_Every_Key): New generic procedure
8875 that allows to iterate over all subkeys of a key.
8877 2010-01-26 Ed Falis <falis@adacore.com>
8879 * sysdep.c: enable NFS for VxWorks MILS
8880 * env.c: enable __gnat_environ for VxWorks MILS
8881 * gcc-interface/Makefile.in: Add VxWorks MILS target pairs.
8883 2010-01-25 Bob Duff <duff@adacore.com>
8885 * sem_aggr.adb (Resolve_Array_Aggregate): Check for the case where this
8886 is an internally-generated positional aggregate, and the bounds are
8887 already correctly set. We don't want to overwrite those bounds with
8888 bounds determined by context.
8890 2010-01-25 Robert Dewar <dewar@adacore.com>
8892 * g-sercom.ads, gnatcmd.adb, gnatlink.adb, a-ststio.adb, exp_ch6.adb,
8893 exp_ch9.adb, g-sechas.ads: Minor reformatting.
8895 2010-01-25 Thomas Quinot <quinot@adacore.com>
8897 * s-commun.adb (Last_Index): Count must be converted to SEO (a signed
8898 integer type) before subtracting 1, otherwise the computation may wrap
8899 (because size_t is modular) and cause the conversion to fail.
8901 2010-01-25 Ed Falis <falis@adacore.com>
8903 * sysdep.c, init.c: Adapt to support full run-time on VxWorks MILS.
8905 2010-01-25 Vincent Celier <celier@adacore.com>
8907 * prj-attr.adb: New attribute Run_Path_Origin_Required
8908 * prj-nmsc.adb (Process_Project_Level_Simple_Attributes): Process new
8909 attribute Run_Path_Origin_Required.
8910 * prj.ads (Project_Configuration): New component
8911 Run_Path_Origin_Supported.
8912 * snames.ads-tmpl: New standard name Run_Path_Origin_Required
8914 2010-01-25 Ed Schonberg <schonberg@adacore.com>
8916 * sem_aggr.adb (Resolve_Array_Aggregate): If the bounds in a choice
8917 have errors, do not continue resolution of the aggregate.
8918 * sem_eval.adb (Eval_Indexed_Component): Do not attempt to evaluate if
8919 the array type indicates an error.
8921 2010-01-25 Bob Duff <duff@adacore.com>
8923 * sinfo.ads: Minor comment fixes.
8925 2010-01-25 Bob Duff <duff@adacore.com>
8927 * exp_ch4.adb, exp_aggr.adb: Minor comment fixes and code clean up.
8929 2010-01-25 Arnaud Charlet <charlet@adacore.com>
8931 * gnatvsn.ads (Current_Year): Update.
8933 2010-01-25 Florian Villoing <villoing@adacore.com>
8935 * gnat_ugn.texi: Fix typo.
8937 2010-01-25 Thomas Quinot <quinot@adacore.com>
8939 * scos.ads: Update specification.
8941 2010-01-25 Ed Schonberg <schonberg@adacore.com>
8943 * sem_ch6.adb (Process_PPCs): If a postcondition is present and the
8944 enclosing subprogram has no previous spec, attach postcondition
8945 procedure to the defining entity for the body.
8947 2010-01-25 Ed Schonberg <schonberg@adacore.com>
8949 * exp_aggr.adb (Build_Record_Aggr_Code); Do not generate call to
8950 initialization procedure of the ancestor part of an extension aggregate
8951 if it is an interface type.
8953 2010-01-25 Vincent Celier <celier@adacore.com>
8955 * gnatlink.adb (Process_Binder_File): The directory for the shared
8956 version of libgcc in the run path options is found in the subdirectory
8957 indicated by __gnat_default_libgcc_subdir.
8958 * link.c: Declare new const char * __gnat_default_libgcc_subdir for
8961 2010-01-25 Ed Schonberg <schonberg@adacore.com>
8963 * sem_prag.adb: More flexible pragma Annotate.
8965 2010-01-22 Eric Botcazou <ebotcazou@adacore.com>
8967 * system-linux-armel.ads (Stack_Check_Probes): Set to True.
8968 * system-linux-armeb.ads (Stack_Check_Probes): Likewise.
8970 2010-01-18 Eric Botcazou <ebotcazou@adacore.com>
8972 * gcc-interface/utils.c (create_var_decl_1): Fix formatting nits.
8974 2010-01-18 Jan Hubicka <jh@suse.cz>
8977 * gcc-interface/utils.c (create_var_decl_1): Do not set COMMON flag for
8978 unit local variables.
8980 2010-01-17 Laurent GUERBY <laurent@guerby.net>
8982 * gcc-interface/Makefile.in: Fix typo in arm*-*-linux-gnueabi.
8984 2010-01-11 Mikael Pettersson <mikpe@it.uu.se>
8986 * gcc-interface/Makefile.in: Add arm*-*-linux-gnueabi.
8987 * system-linux-armeb.ads, system-linux-armel.ads: New files.
8989 2010-01-09 Simon Wright <simon@pushface.org>
8992 * gcc-interface/Makefile.in (gnatlib-shared-darwin): Add missing
8997 Copyright (C) 2010 Free Software Foundation, Inc.
8999 Copying and distribution of this file, with or without modification,
9000 are permitted in any medium without royalty provided the copyright
9001 notice and this notice are preserved.